Skip to content

Commit

Permalink
Merge branch 'liferay:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
liferay-frontend authored Aug 23, 2023
2 parents 573294c + 07fa5bd commit 3f29932
Show file tree
Hide file tree
Showing 29 changed files with 1,928 additions and 255 deletions.
2 changes: 1 addition & 1 deletion modules/apps/export-import/export-import-api/bnd.bnd
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Bundle-Name: Liferay Export Import API
Bundle-SymbolicName: com.liferay.exportimport.api
Bundle-Version: 7.4.1
Bundle-Version: 7.5.0
Export-Package:\
com.liferay.exportimport.configuration,\
com.liferay.exportimport.constants,\
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version 2.3.0
version 2.4.0
Original file line number Diff line number Diff line change
Expand Up @@ -1092,13 +1092,7 @@ protected int processStartTag() throws Exception {
jspWriter.write(" /><span class=\"input-group-inset-item");
jspWriter.write(" input-group-inset-item-after\"><button class=\"");
jspWriter.write(" navbar-breakpoint-d-none btn btn-monospaced");
jspWriter.write(" btn-unstyled\">");

if (disabled) {
jspWriter.write(" disabled");
}

jspWriter.write(" type=\"button\">");
jspWriter.write(" btn-unstyled\" disabled type=\"button\">");

iconTag = new IconTag();

Expand All @@ -1109,13 +1103,7 @@ protected int processStartTag() throws Exception {
jspWriter.write("</button><button aria-label=\"");
jspWriter.write(LanguageUtil.get(resourceBundle, "search"));
jspWriter.write("\" class=\"btn btn-monospaced");
jspWriter.write(" btn-unstyled\"");

if (disabled) {
jspWriter.write(" disabled");
}

jspWriter.write(" type=\"submit\">");
jspWriter.write(" btn-unstyled\" disabled type=\"submit\">");

iconTag = new IconTag();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public default String getSearchFormMethod() {
}

public default String getSearchFormName() {
return null;
return "fm";
}

public default String getSearchInputName() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {ClayButtonWithIcon} from '@clayui/button';
import {FocusTrap} from '@clayui/core';
import {ClayInput} from '@clayui/form';
import {ManagementToolbar} from 'frontend-js-components-web';
import React, {useEffect, useRef} from 'react';
import React, {useEffect, useRef, useState} from 'react';

const SearchControls = ({
disabled,
Expand All @@ -22,17 +22,44 @@ const SearchControls = ({
searchValue,
}) => {
const searchInputRef = useRef();
const [searchDisabled, setSearchDisabled] = useState(true);

const onClick = () => {
setSearchDisabled(true);

const form = document.getElementById(`${searchFormName}_search`);

submitForm(form);
};

useEffect(() => {
if (searchMobile) {
searchInputRef.current.focus();
}
}, [searchMobile]);

useEffect(() => {
const onPageLoad = () => {
setSearchDisabled(false);
};

if (!disabled) {
if (document.readyState === 'complete') {
onPageLoad();
}
else {
window.addEventListener('load', onPageLoad);

return () => window.removeEventListener('load', onPageLoad);
}
}
}, [disabled]);

return (
<>
<ManagementToolbar.Search
action={searchActionURL}
id={`${searchFormName}_search`}
method={searchFormMethod}
name={searchFormName}
showMobile={searchMobile}
Expand Down Expand Up @@ -63,8 +90,9 @@ const SearchControls = ({
<ClayInput.GroupInsetItem after tag="span">
<ClayButtonWithIcon
aria-label={Liferay.Language.get('search')}
disabled={disabled}
disabled={searchDisabled}
displayType="unstyled"
onClick={onClick}
symbol="search"
title={Liferay.Language.get('search-for')}
type="submit"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,8 @@ definition {
ObjectAdmin.gotoRelationshipsTab();

CreateObject.addRelationshipAndSelectEntry(titleFieldName = "Entry D");

Refresh();
}

task ("When the admin user deletes the user's personal data and reactivates the user in Users and Organizations") {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,52 @@ definition {
}
}

macro createAndConfigureDataSetEntry {
DataSetAdmin.goToDataSetAdminPage();

DataSetAdmin.createDataSetEntryViaAPI(
dataSetName = ${dataSetName},
restApplication = ${restApplication},
restEndpoint = ${restEndpoint},
restSchema = ${restSchema});

Refresh();

DataSetAdmin.goToViews(dataSetName = ${dataSetName});

DataSetAdmin.createDataSetView(
description = ${dataSetViewDescription},
key_name = ${dataSetViewName});

DataSetAdmin.goToSpecificViewPage(
dataSetName = ${dataSetName},
key_viewName = ${dataSetViewName});

if (isSet(key_fieldList)) {
DataSetAdmin.goToTab(tabName = "Fields");

DataSetAdmin.addFields(key_fieldList = ${key_fieldList});

Button.clickSave();
}

if (isSet(key_ListItemsPerPage)) {
DataSetAdmin.goToTab(tabName = "Pagination");

Type(
key_label = "List of Items per Page",
locator1 = "Gmail#GMAIL_HTML_MODE_MESSAGE_QUICK_REPLY_FIELD",
value1 = ${key_ListItemsPerPage});

Type(
key_type = "Default Items per Page",
locator1 = "DataSet#EDIT_DATA_SET_VIEW",
value1 = ${key_DefaultItemsperPage});

Button.clickSave();
}
}

macro createASort {
LexiconEntry.gotoAdd();

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
definition {

macro addDataSetView {
PageEditor.gotoConfiguration(fragmentName = "Data Set");

Click.javaScriptClick(locator1 = "DataSet#SELECT_DATA_SET_VIEW");

SelectFrame(
key_title = "Select",
locator1 = "IFrame#MODAL_ANY");

Click.clickAtNotVisible(
key_radioOption = ${dataSetViewName},
locator1 = "CommerceEntry#RADIO_BUTTON");

Button.clickSave();
}

macro viewColumnTitle {
for (var key_colunmTitle : list ${key_colunmTitleList}) {
AssertElementPresent(
key_field = ${key_colunmTitle},
locator1 = "FrontendDataSet#TABLE_ITEM_COLUMN");
}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -159,12 +159,6 @@ definition {
value1 = ${key_filter});
}

macro viewColumn {
VerifyElementPresent(
key_field = ${key_field},
locator1 = "FrontendDataSet#TABLE_ITEM_COLUMN");
}

macro viewNoColumn {
AssertElementNotPresent(
key_field = ${key_field},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,15 @@
<td>//table[contains(@class,'table-list')]//tr[contains(@class,'orderable-table-row') and contains(.,'${key_nameField}')]//td[@class="drag-handle-cell"]//button[@aria-label="Drag Item"]</td>
<td></td>
</tr>

<!-- DATA SET FRAGMENT -->

<tr>
<td>SELECT_DATA_SET_VIEW</td>
<td>//input[contains(@class,'content-input')]</td>
<td></td>
</tr>

</tbody>
</table>
</body>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@
</tr>
<tr>
<td>FRAGMENT_SIDEBAR_COLLECTION_PANEL_EXPANDED</td>
<td>//*[contains(@class,'panel-header-link collapse-icon')][normalize-space()='${key_collectionName}']</td>
<td>//*[contains(@class,'mb-3') and contains(@class,'panel-header') and contains(@class,'panel-header-link')][normalize-space()='${key_collectionName}']</td>
<td></td>
</tr>
<tr>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,14 @@
<td>xpath=//div[contains(@class,'ddm-field') and contains(@data-field-name,'${key_fieldReference}')][${key_index}]</td>
<td></td>
</tr>

<!--CHECKBOX_WEB_CONTENT_ENTRY-->

<tr>
<td>SELECT_CHECKBOX_WC</td>
<td>//dd[contains(@class,'list-group-item list-group-item-flex') and contains(.,'${key_title}')]//div[@class="checkbox"]</td>
<td></td>
</tr>
</tbody>
</table>
</body>
Expand Down
Loading

0 comments on commit 3f29932

Please sign in to comment.