@zohodesk/library-platform 1.2.2-exp.2 → 1.2.2-exp.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/cc/action-status/Constants.js +5 -0
- package/es/cc/action-status/Events.js +6 -0
- package/es/cc/action-status/Properties.js +29 -0
- package/es/cc/action-status/index.js +3 -0
- package/es/cc/button/Properties.js +28 -0
- package/es/cc/date/Properties.js +15 -0
- package/es/cc/fields/field/Events.js +8 -0
- package/es/cc/fields/field/Properties.js +8 -1
- package/es/cc/form/Properties.js +8 -0
- package/es/cc/highlighted-value/Properties.js +28 -0
- package/es/cc/index.js +1 -0
- package/es/cc/label/Properties.js +12 -5
- package/es/cc/multi-select/Properties.js +8 -1
- package/es/cc/radio-dropdown/Events.js +16 -0
- package/es/cc/section/Properties.js +8 -1
- package/es/cc/select/Properties.js +8 -1
- package/es/cc/table-column-filter/Properties.js +9 -0
- package/es/cc/table-list/Events.js +8 -0
- package/es/cc/textarea/Properties.js +15 -0
- package/es/cc/textbox/Properties.js +8 -1
- package/es/index.js +4 -6
- package/es/library/dot/components/action-location/frameworks/ui/ActionComponentMapping.js +3 -1
- package/es/library/dot/components/action-status/frameworks/ui/ActionStatus.js +12 -0
- package/es/library/dot/components/action-status/frameworks/ui/ActionStatusView.js +57 -0
- package/es/library/dot/components/action-status/frameworks/ui/css/ActionStatus.module.css +61 -0
- package/es/library/dot/components/form/adapters/presenter/TransformState.js +3 -1
- package/es/library/dot/components/form/frameworks/ui/FormView.js +6 -3
- package/es/library/dot/components/form/frameworks/ui/css/Form.module.css +13 -13
- package/es/library/dot/components/form/frameworks/ui/sub-components/Footer.js +16 -7
- package/es/library/dot/components/form/frameworks/ui/sub-components/Header.js +16 -7
- package/es/library/dot/components/form/frameworks/ui/sub-components/Sections.js +4 -2
- package/es/library/dot/components/form-fields/checkbox/frameworks/ui/CheckboxView.js +6 -3
- package/es/library/dot/components/form-fields/currency/frameworks/ui/CurrencyView.js +6 -3
- package/es/library/dot/components/form-fields/date/frameworks/ui/DateView.js +6 -3
- package/es/library/dot/components/form-fields/datetime/frameworks/ui/DateTimeView.js +6 -3
- package/es/library/dot/components/form-fields/decimal/frameworks/ui/DecimalView.js +6 -3
- package/es/library/dot/components/form-fields/email/frameworks/ui/EmailView.js +6 -3
- package/es/library/dot/components/form-fields/field/FieldItem.js +4 -2
- package/es/library/dot/components/form-fields/field/css/FieldItem.module.css +2 -2
- package/es/library/dot/components/form-fields/lookup/frameworks/ui/LookupView.js +6 -3
- package/es/library/dot/components/form-fields/multi-select/frameworks/ui/MultiSelectView.js +7 -4
- package/es/library/dot/components/form-fields/number/frameworks/ui/NumberView.js +6 -3
- package/es/library/dot/components/form-fields/percentage/frameworks/ui/PercentageView.js +7 -4
- package/es/library/dot/components/form-fields/phone/frameworks/ui/PhoneView.js +6 -3
- package/es/library/dot/components/form-fields/pick-list/frameworks/ui/PickListView.js +7 -4
- package/es/library/dot/components/form-fields/textarea/frameworks/ui/TextAreaView.js +6 -3
- package/es/library/dot/components/form-fields/textbox/frameworks/ui/TextBoxView.js +6 -3
- package/es/library/dot/components/form-fields/url/frameworks/ui/UrlView.js +6 -3
- package/es/library/dot/components/section/frameworks/ui/RenderField.js +3 -1
- package/es/library/dot/components/section/frameworks/ui/SectionView.js +11 -6
- package/es/library/dot/components/section/frameworks/ui/css/Section.module.css +3 -3
- package/es/library/dot/components/table-list/adapters/controllers/FieldChangeController.js +4 -2
- package/es/library/dot/components/table-list/frameworks/ui/TableListView.js +8 -4
- package/es/library/dot/components/table-list/frameworks/ui/css/TableList.module.css +25 -25
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/Header.js +6 -4
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/header/HeaderData.js +11 -6
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/header/MassAction.js +11 -5
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/Row.js +8 -4
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/RowActions.js +12 -5
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/RowData.js +12 -4
- package/es/library/dot/legacy-to-new-arch/breadcrumb/frameworks/ui/css/Breadcrumb.module.css +4 -4
- package/es/library/dot/legacy-to-new-arch/button/frameworks/ui/ButtonView.js +17 -2
- package/es/library/dot/legacy-to-new-arch/date/frameworks/ui/DateView.js +10 -4
- package/es/library/dot/legacy-to-new-arch/date/frameworks/ui/css/DateView.module.css +1 -1
- package/es/library/dot/legacy-to-new-arch/highlighted-value/frameworks/ui/HighlightedValueView.js +13 -2
- package/es/library/dot/legacy-to-new-arch/highlighted-value/frameworks/ui/css/HighlightedValue.module.css +4 -0
- package/es/library/dot/legacy-to-new-arch/label/frameworks/ui/LabelView.js +11 -5
- package/es/library/dot/legacy-to-new-arch/label/frameworks/ui/css/Label.module.css +4 -4
- package/es/library/dot/legacy-to-new-arch/multi-select/frameworks/ui/MultiSelectView.js +21 -8
- package/es/library/dot/legacy-to-new-arch/multi-select/frameworks/ui/css/MultiSelectView.module.css +7 -7
- package/es/library/dot/legacy-to-new-arch/radio-dropdown/frameworks/ui/RadioDropdownView.js +3 -1
- package/es/library/dot/legacy-to-new-arch/radio-dropdown/frameworks/ui/css/RadioDropdown.module.css +4 -4
- package/es/library/dot/legacy-to-new-arch/select/frameworks/ui/SelectView.js +18 -8
- package/es/library/dot/legacy-to-new-arch/select/frameworks/ui/css/Select.module.css +2 -2
- package/es/library/dot/legacy-to-new-arch/table-column-chooser/frameworks/ui/css/TableColumnChooserView.module.css +1 -1
- package/es/library/dot/legacy-to-new-arch/table-column-filter/frameworks/ui/EventHandlersFactory.js +26 -0
- package/es/library/dot/legacy-to-new-arch/table-column-filter/frameworks/ui/TableColumnFilter.js +19 -1
- package/es/library/dot/legacy-to-new-arch/table-column-filter/frameworks/ui/TableColumnFilterView.js +3 -1
- package/es/library/dot/legacy-to-new-arch/table-field-components/checkbox-field/frameworks/ui/EventHandlersFactory.js +2 -1
- package/es/library/dot/legacy-to-new-arch/table-field-components/highlighted-value-field/frameworks/ui/HighlightedValueFieldView.js +8 -2
- package/es/library/dot/legacy-to-new-arch/table-field-components/radio-dropdown-field/frameworks/ui/EventHandlersFactory.js +4 -2
- package/es/library/dot/legacy-to-new-arch/table-field-components/radio-dropdown-field/frameworks/ui/css/RadioDropdownField.module.css +1 -1
- package/es/library/dot/legacy-to-new-arch/table-field-components/switch-field/frameworks/ui/EventHandlersFactory.js +2 -1
- package/es/library/dot/legacy-to-new-arch/text-area/frameworks/ui/TextAreaView.js +10 -4
- package/es/library/dot/legacy-to-new-arch/text-area/frameworks/ui/css/TextAreaView.module.css +3 -3
- package/es/library/dot/legacy-to-new-arch/textbox/frameworks/ui/TextBoxView.js +11 -5
- package/es/platform/client-actions/behaviour/zclient-actions/adapters/resources/__test__/ClientActionsFetchSDK.test.js +183 -0
- package/es/platform/client-actions/cc/action-event-mediator/Properties.js +0 -43
- package/es/platform/client-actions/cc/client-actions-renderer/Properties.js +58 -0
- package/es/platform/client-actions/cc/client-actions-renderer/ViewMetaSchema.js +17 -0
- package/es/platform/client-actions/components/action-event-mediator/frameworks/ui/ClientActionsAdapter.js +1 -2
- package/es/platform/client-actions/components/client-actions-renderer/adapters/presenters/ClientActionsRendererTranslator.js +24 -0
- package/es/platform/client-actions/components/client-actions-renderer/domain/entities/ClientActionsRendererViewProps.js +1 -0
- package/es/platform/client-actions/components/client-actions-renderer/domain/entities/Context.js +1 -0
- package/es/platform/client-actions/components/client-actions-renderer/domain/entities/State.js +1 -0
- package/es/platform/client-actions/components/client-actions-renderer/frameworks/ui/client-actions-renderer/ClientActionsRenderer.js +11 -0
- package/es/platform/client-actions/components/client-actions-renderer/frameworks/ui/client-actions-renderer/ClientActionsRenderer.module.css +23 -0
- package/es/platform/client-actions/components/client-actions-renderer/frameworks/ui/client-actions-renderer/ClientActionsRendererView.js +25 -0
- package/es/platform/client-actions/components/client-actions-renderer/frameworks/ui/client-actions-renderer/views/DefaultActionsRendererView.js +66 -0
- package/es/platform/client-actions/components/{row-actions-renderer/frameworks/ui/MoreActions → client-actions-renderer/frameworks/ui/more-actions-renderer}/MoreActionsRenderer.js +3 -4
- package/es/platform/client-actions/components/{row-actions-renderer/frameworks/ui/MoreActions → client-actions-renderer/frameworks/ui/more-actions-renderer}/MoreActionsRendererView.js +32 -30
- package/es/platform/client-actions/components/interfaces/ActionViewModel.js +7 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-fetch/adapters/resources/__test__/ClientScriptsFetchSDK.test.js +163 -0
- package/es/platform/client-scripts/cc/zclient-scripts-execution/clientScriptsSchema.js +4 -1
- package/es/platform/components/form-connected/frameworks/FormConnectedView.js +2 -0
- package/es/platform/components/smart-action-band/adapters/presenters/ActionBandTranslator.js +7 -10
- package/es/platform/components/smart-action-band/frameworks/SmartActionBandView.js +17 -5
- package/es/platform/data-source/http-template/getAvailableFields.js +4 -2
- package/es/platform/zform/adapters/presenter/FormTranslator.js +8 -12
- package/es/platform/zform/adapters/presenter/translators/SectionTranslator.js +10 -14
- package/es/platform/zform/adapters/presenter/translators/fields/BooleanFieldTranslator.js +4 -2
- package/es/platform/zform/adapters/presenter/translators/fields/CurrencyFieldTranslator.js +2 -1
- package/es/platform/zform/adapters/presenter/translators/fields/DateFieldTranslator.js +4 -2
- package/es/platform/zform/adapters/presenter/translators/fields/DateTimeFieldTranslator.js +4 -2
- package/es/platform/zform/adapters/presenter/translators/fields/DecimalFieldTranslator.js +4 -2
- package/es/platform/zform/adapters/presenter/translators/fields/EmailFieldTranslator.js +4 -2
- package/es/platform/zform/adapters/presenter/translators/fields/LookUpFieldTranslator.js +4 -2
- package/es/platform/zform/adapters/presenter/translators/fields/MultiselectFieldTranslator.js +13 -8
- package/es/platform/zform/adapters/presenter/translators/fields/NumberFieldTranslator.js +4 -2
- package/es/platform/zform/adapters/presenter/translators/fields/PercentageFieldTranslator.js +4 -2
- package/es/platform/zform/adapters/presenter/translators/fields/PhoneFieldTranslator.js +4 -2
- package/es/platform/zform/adapters/presenter/translators/fields/PicklistFieldTranslator.js +15 -12
- package/es/platform/zform/adapters/presenter/translators/fields/TextAreaFieldTranslator.js +4 -2
- package/es/platform/zform/adapters/presenter/translators/fields/TextFieldTranslator.js +4 -2
- package/es/platform/zform/adapters/presenter/translators/fields/URLFieldTranslator.js +4 -2
- package/es/platform/zform/domain/interfaces/IZForm.js +2 -5
- package/es/platform/zform/domain/interfaces/ValidationEvents.js +4 -0
- package/es/platform/zlist/adapters/presenters/SelectionTranslator.js +2 -4
- package/es/platform/zlist/adapters/presenters/TableTranslator.js +6 -1
- package/es/platform/zlist/adapters/presenters/translators/ColumnTranslator.js +7 -1
- package/es/platform/zlist/adapters/presenters/translators/Header.js +7 -6
- package/es/platform/zlist/adapters/presenters/translators/Row.js +6 -5
- package/es/platform/zlist/adapters/presenters/translators/fields/DateFieldTranslator.js +7 -3
- package/es/platform/zlist/adapters/presenters/translators/fields/DateTimeFieldTranslator.js +7 -3
- package/package.json +19 -6
- package/es/.DS_Store +0 -0
- package/es/library/custom-component/frameworks/json-schema-validator/Validator.js +0 -1
- package/es/platform/.DS_Store +0 -0
- package/es/platform/client-actions/components/row-actions-renderer/frameworks/ui/AdaptiveRowActions/AdaptiveRowActionsRenderer.js +0 -12
- package/es/platform/client-actions/components/row-actions-renderer/frameworks/ui/AdaptiveRowActions/AdaptiveRowActionsRendererView.js +0 -42
- package/es/platform/client-actions/components/row-actions-renderer/frameworks/ui/RowActions/RowActionsRenderer.js +0 -12
- package/es/platform/client-actions/components/row-actions-renderer/frameworks/ui/RowActions/RowActionsRenderer.module.css +0 -23
- package/es/platform/client-actions/components/row-actions-renderer/frameworks/ui/RowActions/RowActionsRendererView.js +0 -37
- /package/es/platform/client-actions/components/{row-actions-renderer/domain/entities/interfaces/IState.js → client-actions-renderer/domain/entities/ClientActionsRendererDatatype.js} +0 -0
|
@@ -5,6 +5,7 @@ import ComponentRegistry from "../../../../../custom-component/frameworks/ui/Com
|
|
|
5
5
|
export function renderField(field, key, clientScripts) {
|
|
6
6
|
const {
|
|
7
7
|
type,
|
|
8
|
+
context,
|
|
8
9
|
...properties
|
|
9
10
|
} = field;
|
|
10
11
|
const Component = ComponentRegistry.get(type);
|
|
@@ -17,6 +18,7 @@ export function renderField(field, key, clientScripts) {
|
|
|
17
18
|
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
18
19
|
key: key
|
|
19
20
|
}, properties, {
|
|
20
|
-
clientScripts: clientScripts
|
|
21
|
+
clientScripts: clientScripts,
|
|
22
|
+
context: context
|
|
21
23
|
}));
|
|
22
24
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import RowActionsRenderer from "../../../../../../platform/client-actions/components/row-actions-renderer/frameworks/ui/RowActions/RowActionsRenderer";
|
|
3
2
|
import VelocityAnimationGroup from '@zohodesk/components/es/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup';
|
|
4
3
|
import Flex from '@zohodesk/layout/es/Flex/Flex';
|
|
5
4
|
import Section from '@zohodesk-private/desk-components/es/setup/SetupFormBox/SetupFormBox';
|
|
6
5
|
import FieldsLayout from '@zohodesk-private/desk-components/es/form/FieldsLayout/FieldsLayout';
|
|
7
6
|
import { renderField } from "./RenderField";
|
|
8
|
-
import { ActionViewGap } from "../../../../../../platform/client-actions/components/interfaces/ActionViewModel"; // @ts-ignore
|
|
7
|
+
import { ActionViewGap, Layout } from "../../../../../../platform/client-actions/components/interfaces/ActionViewModel"; // @ts-ignore
|
|
9
8
|
|
|
10
9
|
import style from "./css/Section.module.css";
|
|
10
|
+
import ClientActionsRenderer from "../../../../../../platform/client-actions/components/client-actions-renderer/frameworks/ui/client-actions-renderer/ClientActionsRenderer";
|
|
11
11
|
|
|
12
12
|
function SectionView(_ref, ref) {
|
|
13
13
|
let {
|
|
@@ -21,7 +21,8 @@ function SectionView(_ref, ref) {
|
|
|
21
21
|
fields,
|
|
22
22
|
titleActions,
|
|
23
23
|
headerActions,
|
|
24
|
-
clientScripts
|
|
24
|
+
clientScripts,
|
|
25
|
+
context
|
|
25
26
|
} = state.properties;
|
|
26
27
|
|
|
27
28
|
const renderActions = actions => {
|
|
@@ -30,10 +31,14 @@ function SectionView(_ref, ref) {
|
|
|
30
31
|
$ui_displayMode: "flex",
|
|
31
32
|
$ui_alignItems: "center",
|
|
32
33
|
$ui_className: style.actionContainer
|
|
33
|
-
}, /*#__PURE__*/React.createElement(
|
|
34
|
+
}, /*#__PURE__*/React.createElement(ClientActionsRenderer, {
|
|
34
35
|
actions: actions,
|
|
35
|
-
|
|
36
|
-
|
|
36
|
+
clientScripts: clientScripts,
|
|
37
|
+
context: context,
|
|
38
|
+
viewMeta: {
|
|
39
|
+
layout: Layout.HORIZONTAL,
|
|
40
|
+
gap: ActionViewGap.LARGE
|
|
41
|
+
}
|
|
37
42
|
}));
|
|
38
43
|
};
|
|
39
44
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
.fieldsContainer {
|
|
2
|
-
padding-top:
|
|
2
|
+
padding-top: 1px
|
|
3
3
|
}
|
|
4
4
|
|
|
5
5
|
[dir=ltr] .actionContainer {
|
|
6
|
-
margin-left:
|
|
6
|
+
margin-left: 8px;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
[dir=rtl] .actionContainer {
|
|
10
|
-
margin-right:
|
|
10
|
+
margin-right: 8px;
|
|
11
11
|
}
|
|
@@ -13,7 +13,8 @@ class FieldChangeController extends AbstractController {
|
|
|
13
13
|
} = state;
|
|
14
14
|
const {
|
|
15
15
|
fieldName,
|
|
16
|
-
value
|
|
16
|
+
value,
|
|
17
|
+
previousValue
|
|
17
18
|
} = action.payload;
|
|
18
19
|
const {
|
|
19
20
|
id
|
|
@@ -23,7 +24,8 @@ class FieldChangeController extends AbstractController {
|
|
|
23
24
|
payload: {
|
|
24
25
|
rowId: id,
|
|
25
26
|
fieldName,
|
|
26
|
-
value
|
|
27
|
+
value,
|
|
28
|
+
previousValue
|
|
27
29
|
}
|
|
28
30
|
});
|
|
29
31
|
}
|
|
@@ -44,7 +44,8 @@ function TableListView(_ref2, _ref) {
|
|
|
44
44
|
const {
|
|
45
45
|
headers,
|
|
46
46
|
rows,
|
|
47
|
-
clientScripts
|
|
47
|
+
clientScripts,
|
|
48
|
+
massActionsContext
|
|
48
49
|
} = data;
|
|
49
50
|
const {
|
|
50
51
|
hasActions: hasRowActions,
|
|
@@ -100,7 +101,8 @@ function TableListView(_ref2, _ref) {
|
|
|
100
101
|
hasRowActions,
|
|
101
102
|
rowActionsColumnWidth,
|
|
102
103
|
dispatch,
|
|
103
|
-
clientScripts
|
|
104
|
+
clientScripts,
|
|
105
|
+
massActionsContext
|
|
104
106
|
}), renderBody({
|
|
105
107
|
TableRef,
|
|
106
108
|
dispatch,
|
|
@@ -149,7 +151,8 @@ function renderHeader(_ref3) {
|
|
|
149
151
|
hasRowActions,
|
|
150
152
|
rowActionsColumnWidth,
|
|
151
153
|
dispatch,
|
|
152
|
-
clientScripts
|
|
154
|
+
clientScripts,
|
|
155
|
+
massActionsContext
|
|
153
156
|
} = _ref3;
|
|
154
157
|
return /*#__PURE__*/React.createElement(Header, {
|
|
155
158
|
isReorderEnabled: isReorderEnabled,
|
|
@@ -166,7 +169,8 @@ function renderHeader(_ref3) {
|
|
|
166
169
|
headers: headers,
|
|
167
170
|
isMultiline: isMultiline,
|
|
168
171
|
dispatch: dispatch,
|
|
169
|
-
clientScripts: clientScripts
|
|
172
|
+
clientScripts: clientScripts,
|
|
173
|
+
massActionsContext: massActionsContext
|
|
170
174
|
});
|
|
171
175
|
}
|
|
172
176
|
|
|
@@ -137,39 +137,39 @@
|
|
|
137
137
|
}
|
|
138
138
|
|
|
139
139
|
.paginationSpace {
|
|
140
|
-
padding-bottom:
|
|
140
|
+
padding-bottom: 70px;
|
|
141
141
|
}
|
|
142
142
|
|
|
143
143
|
.loader {
|
|
144
|
-
padding:
|
|
144
|
+
padding: 20px 0
|
|
145
145
|
}
|
|
146
146
|
|
|
147
147
|
.wrapper {
|
|
148
|
-
height: 100
|
|
149
|
-
width: 100
|
|
148
|
+
height: 100%;
|
|
149
|
+
width: 100%;
|
|
150
150
|
z-index: 1;
|
|
151
151
|
position: relative;
|
|
152
152
|
}
|
|
153
153
|
|
|
154
154
|
.hiddenDummyRow {
|
|
155
|
-
height:
|
|
156
|
-
width: 0
|
|
155
|
+
height: 40px;
|
|
156
|
+
width: 0;
|
|
157
157
|
position: absolute;
|
|
158
158
|
z-index: -100;
|
|
159
|
-
top: 0
|
|
159
|
+
top: 0;
|
|
160
160
|
pointer-events: none;
|
|
161
161
|
}
|
|
162
162
|
|
|
163
163
|
[dir=ltr] .hiddenDummyRow {
|
|
164
|
-
left: 0
|
|
164
|
+
left: 0;
|
|
165
165
|
}
|
|
166
166
|
|
|
167
167
|
[dir=rtl] .hiddenDummyRow {
|
|
168
|
-
right: 0
|
|
168
|
+
right: 0;
|
|
169
169
|
}
|
|
170
170
|
|
|
171
171
|
.resizerSpace {
|
|
172
|
-
width: calc(var(--local_table_resizer_extra_space, 0) *
|
|
172
|
+
width: calc(var(--local_table_resizer_extra_space, 0) * 1px);
|
|
173
173
|
flex-shrink: 0
|
|
174
174
|
}
|
|
175
175
|
|
|
@@ -178,32 +178,32 @@
|
|
|
178
178
|
}
|
|
179
179
|
|
|
180
180
|
[dir=ltr] .contentWrapper {
|
|
181
|
-
left: 0
|
|
181
|
+
left: 0;
|
|
182
182
|
}
|
|
183
183
|
|
|
184
184
|
[dir=rtl] .contentWrapper {
|
|
185
|
-
right: 0
|
|
185
|
+
right: 0;
|
|
186
186
|
}
|
|
187
187
|
|
|
188
188
|
.initialLoading {
|
|
189
|
-
height: calc(100% -
|
|
189
|
+
height: calc(100% - 100px)
|
|
190
190
|
}
|
|
191
191
|
|
|
192
192
|
.emptyContent {
|
|
193
|
-
padding:
|
|
193
|
+
padding: 160px 0 60px
|
|
194
194
|
}
|
|
195
195
|
|
|
196
196
|
.errorContent {
|
|
197
|
-
padding:
|
|
197
|
+
padding: 60px 0
|
|
198
198
|
}
|
|
199
199
|
|
|
200
200
|
.headerWithActions,
|
|
201
201
|
.fieldWithActions {
|
|
202
|
-
gap:
|
|
202
|
+
gap: 6px
|
|
203
203
|
}
|
|
204
204
|
|
|
205
205
|
.actions {
|
|
206
|
-
gap:
|
|
206
|
+
gap: 8px
|
|
207
207
|
}
|
|
208
208
|
|
|
209
209
|
.rowCursor_default {
|
|
@@ -248,7 +248,7 @@
|
|
|
248
248
|
}
|
|
249
249
|
|
|
250
250
|
.dragHandleContainer {
|
|
251
|
-
height: 100
|
|
251
|
+
height: 100%;
|
|
252
252
|
opacity: 0;
|
|
253
253
|
visibility: hidden;
|
|
254
254
|
}
|
|
@@ -272,8 +272,8 @@
|
|
|
272
272
|
}
|
|
273
273
|
|
|
274
274
|
.rowDropIndicator {
|
|
275
|
-
width: 100
|
|
276
|
-
height:
|
|
275
|
+
width: 100%;
|
|
276
|
+
height: 2px;
|
|
277
277
|
/* css:theme-validation:ignore */
|
|
278
278
|
position: absolute;
|
|
279
279
|
z-index: 2;
|
|
@@ -281,11 +281,11 @@
|
|
|
281
281
|
}
|
|
282
282
|
|
|
283
283
|
.dropIndicatorTop {
|
|
284
|
-
top: 0
|
|
284
|
+
top: 0;
|
|
285
285
|
}
|
|
286
286
|
|
|
287
287
|
.dropIndicatorBottom {
|
|
288
|
-
bottom:
|
|
288
|
+
bottom: -3px;
|
|
289
289
|
}
|
|
290
290
|
|
|
291
291
|
.row {
|
|
@@ -341,13 +341,13 @@
|
|
|
341
341
|
|
|
342
342
|
.pagination {
|
|
343
343
|
composes: posab from '~@zohodesk/components/lib/common/common.module.css';
|
|
344
|
-
bottom:
|
|
344
|
+
bottom: 20px;
|
|
345
345
|
}
|
|
346
346
|
|
|
347
347
|
[dir=ltr] .pagination {
|
|
348
|
-
right:
|
|
348
|
+
right: 30px;
|
|
349
349
|
}
|
|
350
350
|
|
|
351
351
|
[dir=rtl] .pagination {
|
|
352
|
-
left:
|
|
352
|
+
left: 30px;
|
|
353
353
|
}
|
|
@@ -26,7 +26,8 @@ function Header(_ref) {
|
|
|
26
26
|
headers,
|
|
27
27
|
isMultiline,
|
|
28
28
|
dispatch,
|
|
29
|
-
clientScripts
|
|
29
|
+
clientScripts,
|
|
30
|
+
massActionsContext
|
|
30
31
|
} = _ref;
|
|
31
32
|
|
|
32
33
|
if (headers.length <= 0) {
|
|
@@ -48,15 +49,16 @@ function Header(_ref) {
|
|
|
48
49
|
}
|
|
49
50
|
}, /*#__PURE__*/React.createElement(TableHeaderRow, {
|
|
50
51
|
$flag_autoHeight: isMultiline
|
|
51
|
-
}, renderReOrderColumn(isReorderEnabled), rendermassAction(isSelectionEnabled, isMultiline, actions, clientScripts), renderHeaders(headers, isMultiline, currentlyResizingColumn, isResizerEnabled, isFlexibleColumns, dispatch, clientScripts), renderActionColumn(hasRowActions, rowActionsColumnWidth), renderResizerExtraSpace(isCurrentlyResizing, resizerExtraWidth)));
|
|
52
|
+
}, renderReOrderColumn(isReorderEnabled), rendermassAction(isSelectionEnabled, isMultiline, actions, clientScripts, massActionsContext), renderHeaders(headers, isMultiline, currentlyResizingColumn, isResizerEnabled, isFlexibleColumns, dispatch, clientScripts), renderActionColumn(hasRowActions, rowActionsColumnWidth), renderResizerExtraSpace(isCurrentlyResizing, resizerExtraWidth)));
|
|
52
53
|
}
|
|
53
54
|
|
|
54
|
-
function rendermassAction(isSelectionEnabled, isMultiline, actions, clientScripts) {
|
|
55
|
+
function rendermassAction(isSelectionEnabled, isMultiline, actions, clientScripts, massActionsContext) {
|
|
55
56
|
return /*#__PURE__*/React.createElement(MassAction, {
|
|
56
57
|
isSelectionEnabled: isSelectionEnabled,
|
|
57
58
|
isMultiline: isMultiline,
|
|
58
59
|
actions: actions,
|
|
59
|
-
clientScripts: clientScripts
|
|
60
|
+
clientScripts: clientScripts,
|
|
61
|
+
context: massActionsContext
|
|
60
62
|
});
|
|
61
63
|
}
|
|
62
64
|
|
package/es/library/dot/components/table-list/frameworks/ui/sub-components/header/HeaderData.js
CHANGED
|
@@ -2,11 +2,11 @@ import React from 'react';
|
|
|
2
2
|
import TableHead from '@zohodesk-private/desk-components/es/table/TableHead/TableHead';
|
|
3
3
|
import TableHeading from '@zohodesk-private/desk-components/es/table/TableHeading/TableHeading';
|
|
4
4
|
import { AlignmentOfFlex } from "../../../../../../../../cc/table-list/data-types/Header";
|
|
5
|
-
import { ActionViewGap } from "../../../../../../../../platform/client-actions/components/interfaces/ActionViewModel";
|
|
5
|
+
import { ActionViewGap, Layout } from "../../../../../../../../platform/client-actions/components/interfaces/ActionViewModel";
|
|
6
6
|
import ColumnResizer from "./ColumnResizer"; // @ts-ignore
|
|
7
7
|
|
|
8
8
|
import style from "./../../css/TableList.module.css";
|
|
9
|
-
import
|
|
9
|
+
import ClientActionsRenderer from "../../../../../../../../platform/client-actions/components/client-actions-renderer/frameworks/ui/client-actions-renderer/ClientActionsRenderer";
|
|
10
10
|
|
|
11
11
|
function HeaderData(_ref) {
|
|
12
12
|
let {
|
|
@@ -26,7 +26,8 @@ function HeaderData(_ref) {
|
|
|
26
26
|
sortable,
|
|
27
27
|
width,
|
|
28
28
|
alignment,
|
|
29
|
-
actions
|
|
29
|
+
actions,
|
|
30
|
+
context
|
|
30
31
|
} = header;
|
|
31
32
|
const hasActions = Boolean(actions?.length);
|
|
32
33
|
return (
|
|
@@ -50,10 +51,14 @@ function HeaderData(_ref) {
|
|
|
50
51
|
}, /*#__PURE__*/React.createElement(TableHeading, {
|
|
51
52
|
$i18n_text: text,
|
|
52
53
|
$flag_wrapText: isMultiline
|
|
53
|
-
}), hasActions ? /*#__PURE__*/React.createElement(
|
|
54
|
+
}), hasActions ? /*#__PURE__*/React.createElement(ClientActionsRenderer, {
|
|
54
55
|
actions: actions,
|
|
55
|
-
|
|
56
|
-
|
|
56
|
+
clientScripts: clientScripts,
|
|
57
|
+
context: context,
|
|
58
|
+
viewMeta: {
|
|
59
|
+
layout: Layout.HORIZONTAL,
|
|
60
|
+
gap: ActionViewGap.SMALL
|
|
61
|
+
}
|
|
57
62
|
}) : null, /*#__PURE__*/React.createElement(ColumnResizer, {
|
|
58
63
|
isResizerEnabled: isResizerEnabled,
|
|
59
64
|
isResizing: isResizing,
|
package/es/library/dot/components/table-list/frameworks/ui/sub-components/header/MassAction.js
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import TableHeadFirstNode from '@zohodesk-private/desk-components/es/table/TableHeadFirstNode/TableHeadFirstNode';
|
|
3
|
-
import TableHeading from '@zohodesk-private/desk-components/es/table/TableHeading/TableHeading';
|
|
4
|
-
import AdaptiveRowActionsRenderer from "../../../../../../../../platform/client-actions/components/row-actions-renderer/frameworks/ui/AdaptiveRowActions/AdaptiveRowActionsRenderer"; // @ts-ignore
|
|
3
|
+
import TableHeading from '@zohodesk-private/desk-components/es/table/TableHeading/TableHeading'; // @ts-ignore
|
|
5
4
|
|
|
6
5
|
import style from "./../../css/TableList.module.css";
|
|
6
|
+
import ClientActionsRenderer from "../../../../../../../../platform/client-actions/components/client-actions-renderer/frameworks/ui/client-actions-renderer/ClientActionsRenderer";
|
|
7
|
+
import { Layout } from "../../../../../../../../platform/client-actions/components/interfaces/ActionViewModel";
|
|
7
8
|
|
|
8
9
|
function MassAction(_ref) {
|
|
9
10
|
let {
|
|
10
11
|
isSelectionEnabled,
|
|
11
12
|
isMultiline,
|
|
12
13
|
actions,
|
|
13
|
-
clientScripts
|
|
14
|
+
clientScripts,
|
|
15
|
+
context
|
|
14
16
|
} = _ref;
|
|
15
17
|
|
|
16
18
|
if (!isSelectionEnabled) {
|
|
@@ -36,9 +38,13 @@ function MassAction(_ref) {
|
|
|
36
38
|
customStyle: {
|
|
37
39
|
container: style.massActionHeader
|
|
38
40
|
}
|
|
39
|
-
}, /*#__PURE__*/React.createElement(
|
|
41
|
+
}, /*#__PURE__*/React.createElement(ClientActionsRenderer, {
|
|
40
42
|
actions: actions,
|
|
41
|
-
clientScripts: clientScripts
|
|
43
|
+
clientScripts: clientScripts,
|
|
44
|
+
context: context,
|
|
45
|
+
viewMeta: {
|
|
46
|
+
layout: Layout.HORIZONTAL
|
|
47
|
+
}
|
|
42
48
|
}));
|
|
43
49
|
}
|
|
44
50
|
|
|
@@ -47,7 +47,8 @@ function RowView(_ref, ref) {
|
|
|
47
47
|
} = state.properties;
|
|
48
48
|
const {
|
|
49
49
|
type,
|
|
50
|
-
actions
|
|
50
|
+
actions,
|
|
51
|
+
context
|
|
51
52
|
} = rowActionLocation;
|
|
52
53
|
return /*#__PURE__*/React.createElement(TableRow, {
|
|
53
54
|
key: id,
|
|
@@ -90,7 +91,8 @@ function RowView(_ref, ref) {
|
|
|
90
91
|
columnWidth: rowActionsColumnWidth,
|
|
91
92
|
type,
|
|
92
93
|
actions,
|
|
93
|
-
clientScripts
|
|
94
|
+
clientScripts,
|
|
95
|
+
context
|
|
94
96
|
}), isDroppable && /*#__PURE__*/React.createElement("div", {
|
|
95
97
|
className: `${style.rowDropIndicator} ${dropPosition === 'downward' && style.dropIndicatorTop} ${dropPosition === 'upward' && style.dropIndicatorBottom}`
|
|
96
98
|
}));
|
|
@@ -171,7 +173,8 @@ function renderRowActions(_ref6) {
|
|
|
171
173
|
columnWidth,
|
|
172
174
|
actions,
|
|
173
175
|
type,
|
|
174
|
-
clientScripts
|
|
176
|
+
clientScripts,
|
|
177
|
+
context
|
|
175
178
|
} = _ref6;
|
|
176
179
|
return /*#__PURE__*/React.createElement(RowActions, {
|
|
177
180
|
hasActions: hasActions,
|
|
@@ -179,7 +182,8 @@ function renderRowActions(_ref6) {
|
|
|
179
182
|
columnWidth: columnWidth,
|
|
180
183
|
type: type,
|
|
181
184
|
actions: actions,
|
|
182
|
-
clientScripts: clientScripts
|
|
185
|
+
clientScripts: clientScripts,
|
|
186
|
+
context: context
|
|
183
187
|
});
|
|
184
188
|
}
|
|
185
189
|
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import TableAction from '@zohodesk-private/desk-components/es/table/TableAction/TableAction';
|
|
3
|
-
import AdaptiveRowActionsRenderer from "../../../../../../../../platform/client-actions/components/row-actions-renderer/frameworks/ui/AdaptiveRowActions/AdaptiveRowActionsRenderer";
|
|
4
3
|
import { ActionViewGap } from "../../../../../../../../platform/client-actions/components/interfaces/ActionViewModel";
|
|
4
|
+
import ClientActionsRenderer from "../../../../../../../../platform/client-actions/components/client-actions-renderer/frameworks/ui/client-actions-renderer/ClientActionsRenderer";
|
|
5
|
+
import { Layout } from "../../../../../../../../platform/client-actions/components/interfaces/ActionViewModel";
|
|
5
6
|
export default function RowActions(_ref) {
|
|
6
7
|
let {
|
|
7
8
|
hasActions,
|
|
@@ -9,18 +10,24 @@ export default function RowActions(_ref) {
|
|
|
9
10
|
columnWidth,
|
|
10
11
|
type = '',
|
|
11
12
|
actions,
|
|
12
|
-
clientScripts
|
|
13
|
+
clientScripts,
|
|
14
|
+
context
|
|
13
15
|
} = _ref;
|
|
14
16
|
|
|
15
17
|
if (hasActions) {
|
|
16
18
|
return /*#__PURE__*/React.createElement(TableAction, {
|
|
17
19
|
$data_width: columnWidth,
|
|
18
20
|
$ui_alignItems: isMultiline ? 'start' : 'center'
|
|
19
|
-
}, /*#__PURE__*/React.createElement(
|
|
21
|
+
}, /*#__PURE__*/React.createElement(ClientActionsRenderer, {
|
|
20
22
|
actions: actions,
|
|
21
23
|
clientScripts: clientScripts,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
+
context: context,
|
|
25
|
+
viewMeta: {
|
|
26
|
+
layout: Layout.HORIZONTAL_WITH_MORE_ACTIONS,
|
|
27
|
+
gap: ActionViewGap.MEDIUM
|
|
28
|
+
},
|
|
29
|
+
instanceName: context.instanceName,
|
|
30
|
+
location: "row_actions"
|
|
24
31
|
}));
|
|
25
32
|
}
|
|
26
33
|
|
|
@@ -5,7 +5,9 @@ import { AlignmentOfFlex } from "../../../../../../../../cc/table-list/data-type
|
|
|
5
5
|
import FieldComponent from "../field/FieldComponent"; // @ts-ignore
|
|
6
6
|
|
|
7
7
|
import style from "./../../css/TableList.module.css";
|
|
8
|
-
import
|
|
8
|
+
import ClientActionsRenderer from "../../../../../../../../platform/client-actions/components/client-actions-renderer/frameworks/ui/client-actions-renderer/ClientActionsRenderer";
|
|
9
|
+
import ClientActionsTranslator from "../../../../../../../../platform/client-actions/translators/client-actions-translator";
|
|
10
|
+
import { Layout } from "../../../../../../../../platform/client-actions/components/interfaces/ActionViewModel";
|
|
9
11
|
export default function RowData(_ref) {
|
|
10
12
|
let {
|
|
11
13
|
field,
|
|
@@ -17,9 +19,11 @@ export default function RowData(_ref) {
|
|
|
17
19
|
let {
|
|
18
20
|
type,
|
|
19
21
|
actions,
|
|
22
|
+
context,
|
|
20
23
|
...props
|
|
21
24
|
} = field;
|
|
22
|
-
const
|
|
25
|
+
const resolvedActions = ClientActionsTranslator.transform(actions, context.instanceName, context.moduleName, context);
|
|
26
|
+
const hasActions = Boolean(resolvedActions?.length);
|
|
23
27
|
return /*#__PURE__*/React.createElement(TableData, {
|
|
24
28
|
$ui_align: hasActions ? null : alignment,
|
|
25
29
|
$data_width: width,
|
|
@@ -35,9 +39,13 @@ export default function RowData(_ref) {
|
|
|
35
39
|
}, /*#__PURE__*/React.createElement(FieldComponent, {
|
|
36
40
|
type: type,
|
|
37
41
|
fieldProps: props
|
|
38
|
-
}), hasActions ? /*#__PURE__*/React.createElement(
|
|
42
|
+
}), hasActions ? /*#__PURE__*/React.createElement(ClientActionsRenderer, {
|
|
39
43
|
actions: actions,
|
|
40
44
|
clientScripts: clientScripts,
|
|
41
|
-
|
|
45
|
+
context: context,
|
|
46
|
+
viewMeta: {
|
|
47
|
+
layout: Layout.HORIZONTAL,
|
|
48
|
+
gap: ActionViewGap.SMALL
|
|
49
|
+
}
|
|
42
50
|
}) : null);
|
|
43
51
|
}
|
package/es/library/dot/legacy-to-new-arch/breadcrumb/frameworks/ui/css/Breadcrumb.module.css
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
.wrapper, .itemContainer {
|
|
2
|
-
max-width: 100%
|
|
2
|
+
max-width: 100%
|
|
3
3
|
}
|
|
4
4
|
|
|
5
5
|
.itemContainer {
|
|
6
|
-
column-gap:
|
|
6
|
+
column-gap: 4px;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
.separator {
|
|
10
10
|
--separator_fontSize: 14px;
|
|
11
|
-
margin: 0
|
|
11
|
+
margin: 0 10px;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
.buttonStyle {
|
|
15
15
|
--button_font_size: 14px;
|
|
16
16
|
--button_padding: 0px;
|
|
17
17
|
--button_letter_spacing: 0px;
|
|
18
|
-
max-width: 100
|
|
18
|
+
max-width: 100%;
|
|
19
19
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import Button from '@zohodesk-private/dot-registry/es/Button/Button';
|
|
3
|
+
import Icon from "@zohodesk/icons/es/Icon";
|
|
3
4
|
import ButtonConstants from "../../../../../../cc/button/Constants";
|
|
4
5
|
|
|
5
6
|
function ButtonView(_ref, ref) {
|
|
@@ -18,11 +19,25 @@ function ButtonView(_ref, ref) {
|
|
|
18
19
|
isDisabled,
|
|
19
20
|
id,
|
|
20
21
|
status,
|
|
21
|
-
tooltip
|
|
22
|
+
tooltip,
|
|
23
|
+
iconName,
|
|
24
|
+
iconSize,
|
|
25
|
+
iconPosition
|
|
22
26
|
} = state.properties;
|
|
27
|
+
const iconElement = iconName ? /*#__PURE__*/React.createElement(Icon, {
|
|
28
|
+
name: iconName,
|
|
29
|
+
size: iconSize
|
|
30
|
+
}) : null;
|
|
31
|
+
const buttonText = iconElement ? /*#__PURE__*/React.createElement("span", {
|
|
32
|
+
style: {
|
|
33
|
+
display: 'inline-flex',
|
|
34
|
+
alignItems: 'center',
|
|
35
|
+
gap: '4px'
|
|
36
|
+
}
|
|
37
|
+
}, iconPosition === 'left' && iconElement, text, iconPosition !== 'left' && iconElement) : text;
|
|
23
38
|
return /*#__PURE__*/React.createElement(Button, {
|
|
24
39
|
getRef: ref,
|
|
25
|
-
text:
|
|
40
|
+
text: buttonText,
|
|
26
41
|
palette: palette,
|
|
27
42
|
size: size,
|
|
28
43
|
isRounded: isRounded,
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import DateWidget from '@zohodesk/components/es/DateTime/DateWidget';
|
|
3
3
|
import DateConstants from "../../../../../../cc/date/Constants";
|
|
4
|
-
import RowActionsRenderer from "../../../../../../platform/client-actions/components/row-actions-renderer/frameworks/ui/RowActions/RowActionsRenderer";
|
|
5
4
|
import { ActionViewGap } from "../../../../../../platform/client-actions/components/interfaces/ActionViewModel"; // @ts-ignore
|
|
6
5
|
|
|
7
6
|
import style from "./css/DateView.module.css";
|
|
7
|
+
import ClientActionsRenderer from "../../../../../../platform/client-actions/components/client-actions-renderer/frameworks/ui/client-actions-renderer/ClientActionsRenderer";
|
|
8
|
+
import { Layout } from "../../../../../../platform/client-actions/components/interfaces/ActionViewModel";
|
|
8
9
|
|
|
9
10
|
function DateView(_ref, ref) {
|
|
10
11
|
let {
|
|
@@ -24,17 +25,22 @@ function DateView(_ref, ref) {
|
|
|
24
25
|
isTimeIncluded,
|
|
25
26
|
timeZone,
|
|
26
27
|
actions,
|
|
27
|
-
clientScripts
|
|
28
|
+
clientScripts,
|
|
29
|
+
context
|
|
28
30
|
} = state.properties;
|
|
29
31
|
|
|
30
32
|
const renderRightFieldActions = () => {
|
|
31
33
|
if (!actions?.length) return null;
|
|
32
34
|
return /*#__PURE__*/React.createElement("div", {
|
|
33
35
|
className: style.actionContainer
|
|
34
|
-
}, /*#__PURE__*/React.createElement(
|
|
36
|
+
}, /*#__PURE__*/React.createElement(ClientActionsRenderer, {
|
|
35
37
|
actions: actions,
|
|
36
38
|
clientScripts: clientScripts,
|
|
37
|
-
|
|
39
|
+
context: context,
|
|
40
|
+
viewMeta: {
|
|
41
|
+
layout: Layout.HORIZONTAL,
|
|
42
|
+
gap: ActionViewGap.SMALL
|
|
43
|
+
}
|
|
38
44
|
}));
|
|
39
45
|
};
|
|
40
46
|
|
package/es/library/dot/legacy-to-new-arch/highlighted-value/frameworks/ui/HighlightedValueView.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import StatusBox from "@zohodesk-private/desk-components/es/table/StatusBox/StatusBox";
|
|
3
|
+
import Icon from "@zohodesk/icons/es/Icon";
|
|
3
4
|
import HighlightedValueConstants from "../../../../../../cc/highlighted-value/Constants"; // @ts-ignore
|
|
4
5
|
|
|
5
6
|
import style from "./css/HighlightedValue.module.css";
|
|
@@ -18,8 +19,15 @@ function HighlightedValueView(_ref, ref) {
|
|
|
18
19
|
tooltip,
|
|
19
20
|
weight,
|
|
20
21
|
isDotted,
|
|
21
|
-
cursor
|
|
22
|
+
cursor,
|
|
23
|
+
iconName,
|
|
24
|
+
iconSize,
|
|
25
|
+
iconPosition
|
|
22
26
|
} = state.properties;
|
|
27
|
+
const iconElement = iconName ? /*#__PURE__*/React.createElement(Icon, {
|
|
28
|
+
name: iconName,
|
|
29
|
+
size: iconSize
|
|
30
|
+
}) : null;
|
|
23
31
|
return /*#__PURE__*/React.createElement(StatusBox, {
|
|
24
32
|
$customProps_container: {
|
|
25
33
|
ref
|
|
@@ -29,8 +37,11 @@ function HighlightedValueView(_ref, ref) {
|
|
|
29
37
|
$ui_weight: weight,
|
|
30
38
|
$flag_wrapText: !isDotted,
|
|
31
39
|
$i18n_tooltip: tooltip,
|
|
40
|
+
$render_leftChild: iconPosition === 'left' ? iconElement : null,
|
|
41
|
+
$render_rightChild: iconPosition !== 'left' ? iconElement : null,
|
|
32
42
|
customStyle: {
|
|
33
|
-
pointer: cursor === "default" && style.default
|
|
43
|
+
pointer: cursor === "default" && style.default,
|
|
44
|
+
container: iconName ? style.gap : undefined
|
|
34
45
|
},
|
|
35
46
|
$event_onClick: () => {
|
|
36
47
|
dispatch({
|