@zohodesk/library-platform 1.2.0-exp.4 → 1.2.0-exp.45
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/.DS_Store +0 -0
- package/es/bc/sort-by/SortOrderEnum.js +8 -0
- package/es/cc/date/Properties.js +0 -15
- package/es/cc/fields/field/Properties.js +1 -8
- package/es/cc/flex-container/Properties.js +79 -0
- package/es/cc/flex-container/Types.js +39 -0
- package/es/cc/flex-container/index.js +2 -0
- package/es/cc/form/Properties.js +0 -8
- package/es/cc/label/Properties.js +5 -12
- package/es/cc/multi-select/Properties.js +1 -8
- package/es/cc/section/Properties.js +1 -8
- package/es/cc/select/Properties.js +1 -8
- package/es/cc/tags/model/TagModel.js +26 -0
- package/es/cc/textarea/Properties.js +0 -15
- package/es/cc/textbox/Properties.js +1 -8
- package/es/flex-layout/.DS_Store +0 -0
- package/es/index.js +6 -4
- package/es/library/behaviours/sort-by/adapters/controllers/SortBy.js +28 -0
- package/es/library/behaviours/sort-by/applications/usecases/SortBy.js +28 -0
- package/es/library/behaviours/sort-by/frameworks/ui/DemoBehaviour.js +20 -0
- package/es/library/custom-component/domain/entities/SlotValidator.js +84 -0
- package/es/library/custom-component/frameworks/ui/CustomComponentFactory.js +56 -0
- package/es/library/dot/components/form/adapters/presenter/TransformState.js +1 -3
- package/es/library/dot/components/form/frameworks/ui/FormView.js +3 -6
- package/es/library/dot/components/form/frameworks/ui/sub-components/Footer.js +6 -16
- package/es/library/dot/components/form/frameworks/ui/sub-components/Header.js +6 -16
- package/es/library/dot/components/form/frameworks/ui/sub-components/Sections.js +2 -4
- package/es/library/dot/components/form-fields/checkbox/frameworks/ui/CheckboxView.js +3 -6
- package/es/library/dot/components/form-fields/currency/frameworks/ui/CurrencyView.js +3 -6
- package/es/library/dot/components/form-fields/date/frameworks/ui/DateView.js +3 -6
- package/es/library/dot/components/form-fields/datetime/frameworks/ui/DateTimeView.js +3 -6
- package/es/library/dot/components/form-fields/decimal/frameworks/ui/DecimalView.js +3 -6
- package/es/library/dot/components/form-fields/email/frameworks/ui/EmailView.js +3 -6
- package/es/library/dot/components/form-fields/field/FieldItem.js +2 -4
- package/es/library/dot/components/form-fields/lookup/frameworks/ui/LookupView.js +3 -6
- package/es/library/dot/components/form-fields/multi-select/frameworks/ui/MultiSelectView.js +4 -7
- package/es/library/dot/components/form-fields/number/frameworks/ui/NumberView.js +3 -6
- package/es/library/dot/components/form-fields/percentage/frameworks/ui/PercentageView.js +4 -7
- package/es/library/dot/components/form-fields/phone/frameworks/ui/PhoneView.js +3 -6
- package/es/library/dot/components/form-fields/pick-list/frameworks/ui/PickListView.js +4 -7
- package/es/library/dot/components/form-fields/textarea/frameworks/ui/TextAreaView.js +3 -6
- package/es/library/dot/components/form-fields/textbox/frameworks/ui/TextBoxView.js +3 -6
- package/es/library/dot/components/form-fields/url/frameworks/ui/UrlView.js +3 -6
- package/es/library/dot/components/part-wrapper/POC_DOCUMENT.md +648 -0
- package/es/library/dot/components/part-wrapper/domain/entities/interfaces/Properties.js +52 -0
- package/es/library/dot/components/part-wrapper/frameworks/ui/PartWrapper.js +24 -0
- package/es/library/dot/components/part-wrapper/frameworks/ui/PartWrapperFactory.js +27 -0
- package/es/library/dot/components/part-wrapper/frameworks/ui/PartWrapperView.js +45 -0
- package/es/library/dot/components/part-wrapper/frameworks/ui/css/PartWrapper.module.css +16 -0
- package/es/library/dot/components/part-wrapper/poc/index.js +9 -0
- package/es/library/dot/components/part-wrapper/poc/layouts/POCFormLayout.js +130 -0
- package/es/library/dot/components/part-wrapper/poc/layouts/POCMixedLayout.js +128 -0
- package/es/library/dot/components/part-wrapper/poc/layouts/POCTableCellLayout.js +105 -0
- package/es/library/dot/components/part-wrapper/poc/layouts/css/poc-form-layout.module.css +46 -0
- package/es/library/dot/components/part-wrapper/poc/layouts/css/poc-mixed-layout.module.css +89 -0
- package/es/library/dot/components/part-wrapper/poc/layouts/css/poc-table-cell-layout.module.css +70 -0
- package/es/library/dot/components/section/frameworks/ui/RenderField.js +1 -3
- package/es/library/dot/components/section/frameworks/ui/SectionView.js +8 -14
- package/es/library/dot/components/table-list/adapters/controllers/SortByController.js +25 -0
- package/es/library/dot/components/table-list/adapters/controllers/SortedController.js +18 -0
- package/es/library/dot/components/table-list/frameworks/ui/TableListView.js +4 -8
- package/es/library/dot/components/table-list/frameworks/ui/handlers/HandleSortClick.js +12 -0
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/Header.js +4 -6
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/header/HeaderData.js +5 -11
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/header/MassAction.js +5 -11
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/Row.js +4 -8
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/RowActions.js +5 -12
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/RowData.js +4 -12
- package/es/library/dot/legacy-to-new-arch/date/frameworks/ui/DateView.js +4 -10
- package/es/library/dot/legacy-to-new-arch/flex-container/frameworks/ui/FlexContainer.js +11 -0
- package/es/library/dot/legacy-to-new-arch/flex-container/frameworks/ui/FlexContainerView.js +37 -0
- package/es/library/dot/legacy-to-new-arch/label/frameworks/ui/LabelView.js +5 -11
- package/es/library/dot/legacy-to-new-arch/multi-select/frameworks/ui/MultiSelectView.js +8 -21
- package/es/library/dot/legacy-to-new-arch/select/frameworks/ui/SelectView.js +8 -18
- package/es/library/dot/legacy-to-new-arch/text-area/frameworks/ui/TextAreaView.js +4 -10
- package/es/library/dot/legacy-to-new-arch/textbox/frameworks/ui/TextBoxView.js +4 -10
- package/es/library/poc-slot-usage/employee-card/adapters/presenters/EmployeeCardStateMapper.js +14 -0
- package/es/library/poc-slot-usage/employee-card/applications/usecases/BuildEmployeeCardUseCase.js +25 -0
- package/es/library/poc-slot-usage/employee-card/domain/entities/EmployeeCardSlots.js +68 -0
- package/es/library/poc-slot-usage/employee-card/frameworks/ui/EmployeeCard.js +13 -0
- package/es/library/poc-slot-usage/employee-card/frameworks/ui/EmployeeCardView.js +42 -0
- package/es/library/poc-slot-usage/flex-container/adapters/presenters/FlexContainerStateMapper.js +8 -0
- package/es/library/poc-slot-usage/flex-container/applications/usecases/BuildFlexContainerUseCase.js +44 -0
- package/es/library/poc-slot-usage/flex-container/domain/entities/FlexContainerSlots.js +18 -0
- package/es/library/poc-slot-usage/flex-container/frameworks/ui/FlexContainer.js +5 -0
- package/es/library/poc-slot-usage/flex-container/frameworks/ui/FlexContainerView.js +40 -0
- package/es/library/poc-slot-usage/index.js +7 -0
- package/es/library/poc-slot-usage/mismatched-card/applications/usecases/BuildMismatchedCardUseCase.js +23 -0
- package/es/library/poc-slot-usage/mismatched-card/domain/entities/MismatchedCardSlots.js +39 -0
- package/es/library/poc-slot-usage/mismatched-card/frameworks/ui/MismatchedCard.js +9 -0
- package/es/library/poc-slot-usage/mismatched-card/frameworks/ui/MismatchedCardView.js +39 -0
- package/es/library/poc-slot-usage/product-action/applications/usecases/BuildProductActionUseCase.js +21 -0
- package/es/library/poc-slot-usage/product-action/frameworks/ui/ProductAction.js +5 -0
- package/es/library/poc-slot-usage/product-action/frameworks/ui/ProductActionView.js +24 -0
- package/es/library/poc-slot-usage/product-body/applications/usecases/BuildProductBodyUseCase.js +21 -0
- package/es/library/poc-slot-usage/product-body/frameworks/ui/ProductBody.js +5 -0
- package/es/library/poc-slot-usage/product-body/frameworks/ui/ProductBodyView.js +20 -0
- package/es/library/poc-slot-usage/product-card/adapters/presenters/ProductCardStateMapper.js +8 -0
- package/es/library/poc-slot-usage/product-card/applications/usecases/BuildProductCardUseCase.js +34 -0
- package/es/library/poc-slot-usage/product-card/domain/entities/ProductCardSlots.js +70 -0
- package/es/library/poc-slot-usage/product-card/frameworks/ui/ProductCard.js +5 -0
- package/es/library/poc-slot-usage/product-card/frameworks/ui/ProductCardView.js +40 -0
- package/es/library/poc-slot-usage/product-title/applications/usecases/BuildProductTitleUseCase.js +21 -0
- package/es/library/poc-slot-usage/product-title/frameworks/ui/ProductTitle.js +5 -0
- package/es/library/poc-slot-usage/product-title/frameworks/ui/ProductTitleView.js +20 -0
- package/es/platform/client-actions/cc/action-event-mediator/Properties.js +43 -0
- package/es/platform/client-actions/components/action-event-mediator/frameworks/ui/ClientActionsAdapter.js +2 -1
- package/es/platform/client-scripts/cc/zclient-scripts-execution/clientScriptsSchema.js +1 -4
- package/es/platform/components/form-connected/frameworks/FormConnectedView.js +0 -2
- package/es/platform/components/smart-action-band/adapters/presenters/ActionBandTranslator.js +10 -7
- package/es/platform/components/smart-action-band/frameworks/SmartActionBandView.js +5 -18
- package/es/platform/components/table-connected/adapters/controllers/ColumnChooserOpenedController.js +28 -0
- package/es/platform/components/table-connected/adapters/controllers/ColumnChooserUpdateController.js +31 -0
- package/es/platform/zform/adapters/presenter/FormTranslator.js +12 -8
- package/es/platform/zform/adapters/presenter/translators/SectionTranslator.js +14 -10
- package/es/platform/zform/adapters/presenter/translators/fields/BooleanFieldTranslator.js +2 -4
- package/es/platform/zform/adapters/presenter/translators/fields/CurrencyFieldTranslator.js +1 -2
- package/es/platform/zform/adapters/presenter/translators/fields/DateFieldTranslator.js +2 -4
- package/es/platform/zform/adapters/presenter/translators/fields/DateTimeFieldTranslator.js +2 -4
- package/es/platform/zform/adapters/presenter/translators/fields/DecimalFieldTranslator.js +2 -4
- package/es/platform/zform/adapters/presenter/translators/fields/EmailFieldTranslator.js +2 -4
- package/es/platform/zform/adapters/presenter/translators/fields/LookUpFieldTranslator.js +2 -4
- package/es/platform/zform/adapters/presenter/translators/fields/MultiselectFieldTranslator.js +8 -13
- package/es/platform/zform/adapters/presenter/translators/fields/NumberFieldTranslator.js +2 -4
- package/es/platform/zform/adapters/presenter/translators/fields/PercentageFieldTranslator.js +2 -4
- package/es/platform/zform/adapters/presenter/translators/fields/PhoneFieldTranslator.js +2 -4
- package/es/platform/zform/adapters/presenter/translators/fields/PicklistFieldTranslator.js +12 -11
- package/es/platform/zform/adapters/presenter/translators/fields/TextAreaFieldTranslator.js +2 -4
- package/es/platform/zform/adapters/presenter/translators/fields/TextFieldTranslator.js +2 -4
- package/es/platform/zform/adapters/presenter/translators/fields/URLFieldTranslator.js +2 -4
- package/es/platform/zlist/adapters/gateways/SortBy.js +38 -0
- package/es/platform/zlist/adapters/presenters/SelectionTranslator.js +4 -2
- package/es/platform/zlist/adapters/presenters/TableTranslator.js +1 -6
- package/es/platform/zlist/adapters/presenters/translators/ColumnTranslator.js +1 -7
- package/es/platform/zlist/adapters/presenters/translators/Header.js +6 -7
- package/es/platform/zlist/adapters/presenters/translators/Row.js +5 -6
- package/es/platform/zlist/adapters/presenters/translators/fields/DateFieldTranslator.js +3 -7
- package/es/platform/zlist/adapters/presenters/translators/fields/DateTimeFieldTranslator.js +3 -7
- package/es/platform/zlist/domain/entities/SortBy.js +58 -0
- package/es/platform/zlist/domain/entities/interfaces/ISortBy.js +1 -0
- package/es/to-do-app/ToDo.js +10 -0
- package/es/to-do-app/cc/button/Constants.js +0 -0
- package/es/to-do-app/cc/button/Events.js +0 -0
- package/es/to-do-app/cc/button/Properties.js +4 -0
- package/es/to-do-app/cc/button/index.js +0 -0
- package/es/to-do-app/cc/textbox/Constants.js +7 -0
- package/es/to-do-app/cc/textbox/Events.js +20 -0
- package/es/to-do-app/cc/textbox/Properties.js +51 -0
- package/es/to-do-app/cc/textbox/index.js +3 -0
- package/es/to-do-app/component/textbox/framework/TextBox.js +30 -0
- package/es/to-do-app/component/textbox/framework/TextBoxView.js +42 -0
- package/package.json +2 -2
- package/es/platform/client-actions/behaviour/zclient-actions/adapters/resources/__test__/ClientActionsFetchSDK.test.js +0 -183
- package/es/platform/client-actions/cc/client-actions-renderer/Properties.js +0 -58
- package/es/platform/client-actions/cc/client-actions-renderer/ViewMetaSchema.js +0 -17
- package/es/platform/client-actions/components/client-actions-renderer/adapters/presenters/ClientActionsRendererTranslator.js +0 -24
- package/es/platform/client-actions/components/client-actions-renderer/domain/entities/State.js +0 -8
- package/es/platform/client-actions/components/client-actions-renderer/frameworks/ui/client-actions-renderer/ClientActionsRenderer.js +0 -11
- package/es/platform/client-actions/components/client-actions-renderer/frameworks/ui/client-actions-renderer/ClientActionsRenderer.module.css +0 -23
- package/es/platform/client-actions/components/client-actions-renderer/frameworks/ui/client-actions-renderer/ClientActionsRendererView.js +0 -25
- package/es/platform/client-actions/components/client-actions-renderer/frameworks/ui/client-actions-renderer/views/DefaultActionsRendererView.js +0 -66
- package/es/platform/client-actions/components/client-actions-renderer/frameworks/ui/more-actions-renderer/MoreActionsRenderer.js +0 -9
- package/es/platform/client-actions/components/client-actions-renderer/frameworks/ui/more-actions-renderer/MoreActionsRendererView.js +0 -81
- package/es/platform/client-scripts/behaviour/zclient-scripts-fetch/adapters/resources/__test__/ClientScriptsFetchSDK.test.js +0 -163
- /package/es/{platform/client-actions/components/client-actions-renderer/domain/entities/ClientActionsRendererDatatype.js → library/behaviours/sort-by/applications/interfaces/output/SortByOutputModel.js} +0 -0
- /package/es/{platform/client-actions/components/client-actions-renderer/domain/entities/ClientActionsRendererViewProps.js → library/dot/components/part-wrapper/applications/interfaces/State.js} +0 -0
- /package/es/platform/{client-actions/components/client-actions-renderer/domain/entities/Context.js → zlist/applications/interfaces/gateways/ISortBy.js} +0 -0
package/es/.DS_Store
ADDED
|
Binary file
|
package/es/cc/date/Properties.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { clientScriptsSchema } from "../../platform/client-scripts/cc/zclient-scripts-execution/clientScriptsSchema";
|
|
2
1
|
export default {
|
|
3
2
|
id: {
|
|
4
3
|
defaultValue: '',
|
|
@@ -80,19 +79,5 @@ export default {
|
|
|
80
79
|
type: 'array'
|
|
81
80
|
}
|
|
82
81
|
}
|
|
83
|
-
},
|
|
84
|
-
clientScripts: {
|
|
85
|
-
required: false,
|
|
86
|
-
typeMetadata: {
|
|
87
|
-
schema: clientScriptsSchema
|
|
88
|
-
}
|
|
89
|
-
},
|
|
90
|
-
context: {
|
|
91
|
-
required: false,
|
|
92
|
-
typeMetadata: {
|
|
93
|
-
schema: {
|
|
94
|
-
type: 'object'
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
82
|
}
|
|
98
83
|
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { clientScriptsSchema } from "../../../platform/client-scripts/cc/zclient-scripts-execution/clientScriptsSchema";
|
|
2
1
|
export default {
|
|
3
2
|
type: {
|
|
4
3
|
required: false,
|
|
@@ -194,16 +193,10 @@ export default {
|
|
|
194
193
|
}
|
|
195
194
|
},
|
|
196
195
|
clientScripts: {
|
|
197
|
-
required: false,
|
|
198
|
-
typeMetadata: {
|
|
199
|
-
schema: clientScriptsSchema
|
|
200
|
-
}
|
|
201
|
-
},
|
|
202
|
-
context: {
|
|
203
196
|
required: false,
|
|
204
197
|
typeMetadata: {
|
|
205
198
|
schema: {
|
|
206
|
-
type: '
|
|
199
|
+
type: 'array'
|
|
207
200
|
}
|
|
208
201
|
}
|
|
209
202
|
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
tagName: {
|
|
3
|
+
defaultValue: 'div',
|
|
4
|
+
required: false,
|
|
5
|
+
typeMetadata: {
|
|
6
|
+
schema: {
|
|
7
|
+
type: 'string'
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
className: {
|
|
12
|
+
defaultValue: '',
|
|
13
|
+
required: false,
|
|
14
|
+
typeMetadata: {
|
|
15
|
+
schema: {
|
|
16
|
+
type: 'string'
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
isInline: {
|
|
21
|
+
defaultValue: false,
|
|
22
|
+
required: false,
|
|
23
|
+
typeMetadata: {
|
|
24
|
+
schema: {
|
|
25
|
+
type: 'boolean'
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
direction: {
|
|
30
|
+
defaultValue: 'row',
|
|
31
|
+
required: false,
|
|
32
|
+
typeMetadata: {
|
|
33
|
+
schema: {
|
|
34
|
+
type: 'string',
|
|
35
|
+
enum: ['row', 'column', 'rowReverse', 'columnReverse']
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
alignItems: {
|
|
40
|
+
defaultValue: '',
|
|
41
|
+
required: false,
|
|
42
|
+
typeMetadata: {
|
|
43
|
+
schema: {
|
|
44
|
+
type: 'string',
|
|
45
|
+
enum: ['start', 'center', 'end', 'baseline', 'stretch']
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
justifyContent: {
|
|
50
|
+
defaultValue: '',
|
|
51
|
+
required: false,
|
|
52
|
+
typeMetadata: {
|
|
53
|
+
schema: {
|
|
54
|
+
type: 'string',
|
|
55
|
+
enum: ['start', 'center', 'end', 'spaceBetween', 'spaceAround', 'spaceEvenly']
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
alignContent: {
|
|
60
|
+
defaultValue: '',
|
|
61
|
+
required: false,
|
|
62
|
+
typeMetadata: {
|
|
63
|
+
schema: {
|
|
64
|
+
type: 'string',
|
|
65
|
+
enum: ['start', 'center', 'end', 'spaceBetween', 'spaceAround', 'spaceEvenly']
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
wrap: {
|
|
70
|
+
defaultValue: 'nowrap',
|
|
71
|
+
required: false,
|
|
72
|
+
typeMetadata: {
|
|
73
|
+
schema: {
|
|
74
|
+
type: 'string',
|
|
75
|
+
enum: ['wrap', 'nowrap', 'wrapReverse']
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export let Direction = /*#__PURE__*/function (Direction) {
|
|
2
|
+
Direction["Row"] = "row";
|
|
3
|
+
Direction["Column"] = "column";
|
|
4
|
+
Direction["RowReverse"] = "rowReverse";
|
|
5
|
+
Direction["ColumnReverse"] = "columnReverse";
|
|
6
|
+
return Direction;
|
|
7
|
+
}({});
|
|
8
|
+
export let AlignItems = /*#__PURE__*/function (AlignItems) {
|
|
9
|
+
AlignItems["Start"] = "start";
|
|
10
|
+
AlignItems["Center"] = "center";
|
|
11
|
+
AlignItems["End"] = "end";
|
|
12
|
+
AlignItems["Baseline"] = "baseline";
|
|
13
|
+
AlignItems["Stretch"] = "stretch";
|
|
14
|
+
return AlignItems;
|
|
15
|
+
}({});
|
|
16
|
+
export let JustifyContent = /*#__PURE__*/function (JustifyContent) {
|
|
17
|
+
JustifyContent["Start"] = "start";
|
|
18
|
+
JustifyContent["Center"] = "center";
|
|
19
|
+
JustifyContent["End"] = "end";
|
|
20
|
+
JustifyContent["SpaceBetween"] = "spaceBetween";
|
|
21
|
+
JustifyContent["SpaceAround"] = "spaceAround";
|
|
22
|
+
JustifyContent["SpaceEvenly"] = "spaceEvenly";
|
|
23
|
+
return JustifyContent;
|
|
24
|
+
}({});
|
|
25
|
+
export let AlignContent = /*#__PURE__*/function (AlignContent) {
|
|
26
|
+
AlignContent["Start"] = "start";
|
|
27
|
+
AlignContent["Center"] = "center";
|
|
28
|
+
AlignContent["End"] = "end";
|
|
29
|
+
AlignContent["SpaceBetween"] = "spaceBetween";
|
|
30
|
+
AlignContent["SpaceAround"] = "spaceAround";
|
|
31
|
+
AlignContent["Stretch"] = "stretch";
|
|
32
|
+
return AlignContent;
|
|
33
|
+
}({});
|
|
34
|
+
export let Wrap = /*#__PURE__*/function (Wrap) {
|
|
35
|
+
Wrap["Wrap"] = "wrap";
|
|
36
|
+
Wrap["NoWrap"] = "nowrap";
|
|
37
|
+
Wrap["WrapReverse"] = "wrapReverse";
|
|
38
|
+
return Wrap;
|
|
39
|
+
}({});
|
package/es/cc/form/Properties.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { clientScriptsSchema } from "../../platform/client-scripts/cc/zclient-scripts-execution/clientScriptsSchema";
|
|
2
1
|
export default {
|
|
3
2
|
label: {
|
|
4
3
|
required: false,
|
|
5
4
|
typeMetadata: {
|
|
6
5
|
schema: {
|
|
7
|
-
type:
|
|
6
|
+
type: "string"
|
|
8
7
|
}
|
|
9
8
|
}
|
|
10
9
|
},
|
|
@@ -12,7 +11,7 @@ export default {
|
|
|
12
11
|
required: false,
|
|
13
12
|
typeMetadata: {
|
|
14
13
|
schema: {
|
|
15
|
-
type:
|
|
14
|
+
type: "string"
|
|
16
15
|
}
|
|
17
16
|
}
|
|
18
17
|
},
|
|
@@ -21,7 +20,7 @@ export default {
|
|
|
21
20
|
defaultValue: [],
|
|
22
21
|
typeMetadata: {
|
|
23
22
|
schema: {
|
|
24
|
-
type:
|
|
23
|
+
type: "array"
|
|
25
24
|
}
|
|
26
25
|
}
|
|
27
26
|
},
|
|
@@ -30,21 +29,15 @@ export default {
|
|
|
30
29
|
defaultValue: false,
|
|
31
30
|
typeMetadata: {
|
|
32
31
|
schema: {
|
|
33
|
-
type:
|
|
32
|
+
type: "boolean"
|
|
34
33
|
}
|
|
35
34
|
}
|
|
36
35
|
},
|
|
37
36
|
clientScripts: {
|
|
38
|
-
required: false,
|
|
39
|
-
typeMetadata: {
|
|
40
|
-
schema: clientScriptsSchema
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
context: {
|
|
44
37
|
required: false,
|
|
45
38
|
typeMetadata: {
|
|
46
39
|
schema: {
|
|
47
|
-
type: '
|
|
40
|
+
type: 'array'
|
|
48
41
|
}
|
|
49
42
|
}
|
|
50
43
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { clientScriptsSchema } from "../../platform/client-scripts/cc/zclient-scripts-execution/clientScriptsSchema";
|
|
2
1
|
export default {
|
|
3
2
|
id: {
|
|
4
3
|
defaultValue: '',
|
|
@@ -93,16 +92,10 @@ export default {
|
|
|
93
92
|
}
|
|
94
93
|
},
|
|
95
94
|
clientScripts: {
|
|
96
|
-
required: false,
|
|
97
|
-
typeMetadata: {
|
|
98
|
-
schema: clientScriptsSchema
|
|
99
|
-
}
|
|
100
|
-
},
|
|
101
|
-
context: {
|
|
102
95
|
required: false,
|
|
103
96
|
typeMetadata: {
|
|
104
97
|
schema: {
|
|
105
|
-
type: '
|
|
98
|
+
type: 'array'
|
|
106
99
|
}
|
|
107
100
|
}
|
|
108
101
|
}
|
|
@@ -14,7 +14,6 @@ import PercentProperties from "../fields/percent/Properties";
|
|
|
14
14
|
import PhoneProperties from "../fields/phone/Properties";
|
|
15
15
|
import PickListProperties from "../fields/pick-list/Properties";
|
|
16
16
|
import UrlProperties from "../fields/url/Properties";
|
|
17
|
-
import { clientScriptsSchema } from "../../platform/client-scripts/cc/zclient-scripts-execution/clientScriptsSchema";
|
|
18
17
|
export default {
|
|
19
18
|
id: {
|
|
20
19
|
required: false,
|
|
@@ -109,16 +108,10 @@ export default {
|
|
|
109
108
|
}
|
|
110
109
|
},
|
|
111
110
|
clientScripts: {
|
|
112
|
-
required: false,
|
|
113
|
-
typeMetadata: {
|
|
114
|
-
schema: clientScriptsSchema
|
|
115
|
-
}
|
|
116
|
-
},
|
|
117
|
-
context: {
|
|
118
111
|
required: false,
|
|
119
112
|
typeMetadata: {
|
|
120
113
|
schema: {
|
|
121
|
-
type: '
|
|
114
|
+
type: 'array'
|
|
122
115
|
}
|
|
123
116
|
}
|
|
124
117
|
},
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { clientScriptsSchema } from "../../platform/client-scripts/cc/zclient-scripts-execution/clientScriptsSchema";
|
|
2
1
|
export default {
|
|
3
2
|
id: {
|
|
4
3
|
defaultValue: '',
|
|
@@ -85,16 +84,10 @@ export default {
|
|
|
85
84
|
}
|
|
86
85
|
},
|
|
87
86
|
clientScripts: {
|
|
88
|
-
required: false,
|
|
89
|
-
typeMetadata: {
|
|
90
|
-
schema: clientScriptsSchema
|
|
91
|
-
}
|
|
92
|
-
},
|
|
93
|
-
context: {
|
|
94
87
|
required: false,
|
|
95
88
|
typeMetadata: {
|
|
96
89
|
schema: {
|
|
97
|
-
type: '
|
|
90
|
+
type: 'array'
|
|
98
91
|
}
|
|
99
92
|
}
|
|
100
93
|
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
function TagModel(_ref) {
|
|
2
|
+
let {
|
|
3
|
+
id,
|
|
4
|
+
label,
|
|
5
|
+
color,
|
|
6
|
+
imageSrc,
|
|
7
|
+
imageAltText,
|
|
8
|
+
iconName,
|
|
9
|
+
disabled,
|
|
10
|
+
size,
|
|
11
|
+
tooltip
|
|
12
|
+
} = _ref;
|
|
13
|
+
return {
|
|
14
|
+
id,
|
|
15
|
+
label,
|
|
16
|
+
color,
|
|
17
|
+
imageSrc,
|
|
18
|
+
imageAltText,
|
|
19
|
+
iconName,
|
|
20
|
+
disabled,
|
|
21
|
+
size,
|
|
22
|
+
tooltip
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export default TagModel;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { clientScriptsSchema } from "../../platform/client-scripts/cc/zclient-scripts-execution/clientScriptsSchema";
|
|
2
1
|
export default {
|
|
3
2
|
id: {
|
|
4
3
|
required: false,
|
|
@@ -76,19 +75,5 @@ export default {
|
|
|
76
75
|
}
|
|
77
76
|
}
|
|
78
77
|
}
|
|
79
|
-
},
|
|
80
|
-
clientScripts: {
|
|
81
|
-
required: false,
|
|
82
|
-
typeMetadata: {
|
|
83
|
-
schema: clientScriptsSchema
|
|
84
|
-
}
|
|
85
|
-
},
|
|
86
|
-
context: {
|
|
87
|
-
required: false,
|
|
88
|
-
typeMetadata: {
|
|
89
|
-
schema: {
|
|
90
|
-
type: 'object'
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
78
|
}
|
|
94
79
|
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { clientScriptsSchema } from "../../platform/client-scripts/cc/zclient-scripts-execution/clientScriptsSchema";
|
|
2
1
|
export default {
|
|
3
2
|
id: {
|
|
4
3
|
defaultValue: '',
|
|
@@ -93,16 +92,10 @@ export default {
|
|
|
93
92
|
}
|
|
94
93
|
},
|
|
95
94
|
clientScripts: {
|
|
96
|
-
required: false,
|
|
97
|
-
typeMetadata: {
|
|
98
|
-
schema: clientScriptsSchema
|
|
99
|
-
}
|
|
100
|
-
},
|
|
101
|
-
context: {
|
|
102
95
|
required: false,
|
|
103
96
|
typeMetadata: {
|
|
104
97
|
schema: {
|
|
105
|
-
type: '
|
|
98
|
+
type: 'array'
|
|
106
99
|
}
|
|
107
100
|
}
|
|
108
101
|
}
|
|
Binary file
|
package/es/index.js
CHANGED
|
@@ -3,10 +3,11 @@ import * as CCNamespace from "./cc"; // Import only the ExternalConstants
|
|
|
3
3
|
|
|
4
4
|
import ExternalConstants from "./cc/table-connected/constants/ExternalConstants";
|
|
5
5
|
import ActionEventMediator from "./platform/client-actions/components/action-event-mediator/frameworks/ui/ActionEventMediator";
|
|
6
|
+
import RowActionsRenderer from "./platform/client-actions/components/row-actions-renderer/frameworks/ui/RowActions/RowActionsRenderer";
|
|
7
|
+
import AdaptiveRowActionsRenderer from "./platform/client-actions/components/row-actions-renderer/frameworks/ui/AdaptiveRowActions/AdaptiveRowActionsRenderer";
|
|
6
8
|
import ClientActionReordererRegistry from "./platform/client-actions/components/action-event-mediator/frameworks/ui/ClientActionReordererRegistry";
|
|
7
9
|
import ClientActionsFetchSDK from "./platform/client-actions/behaviour/zclient-actions/adapters/resources/ClientActionsFetchSDK";
|
|
8
|
-
import ClientScriptsFetchSDK from "./platform/client-scripts/behaviour/zclient-scripts-fetch/adapters/resources/ClientScriptsFetchSDK";
|
|
9
|
-
import ClientActionsRenderer from "./platform/client-actions/components/client-actions-renderer/frameworks/ui/client-actions-renderer/ClientActionsRenderer"; // Rebuild SmartTableConstants without Events
|
|
10
|
+
import ClientScriptsFetchSDK from "./platform/client-scripts/behaviour/zclient-scripts-fetch/adapters/resources/ClientScriptsFetchSDK"; // Rebuild SmartTableConstants without Events
|
|
10
11
|
|
|
11
12
|
const SmartTableConstants = {
|
|
12
13
|
ExternalConstants
|
|
@@ -30,7 +31,9 @@ export { fetchClientActions } from "./platform/client-actions/components/action-
|
|
|
30
31
|
export { ZFormApiActionName } from "./bc/zform/Constants";
|
|
31
32
|
export { RecordApiActionName } from "./bc/zrecord/Constants";
|
|
32
33
|
export { transFormValidationRules } from "./platform/data-source/utils/validation-rules/TransFormValidationRules";
|
|
34
|
+
export { AdaptiveRowActionsRenderer };
|
|
33
35
|
export { ActionEventMediator };
|
|
36
|
+
export { RowActionsRenderer };
|
|
34
37
|
export { renderField } from "./library/dot/components/section/frameworks/ui/RenderField";
|
|
35
38
|
export { default as ResourceNamesEnum } from "./bc/sdk/ResourceNamesEnum";
|
|
36
39
|
import { FieldSectionEventMappingBehaviourFactory } from "./library/dot/components/section/frameworks/ui/Section";
|
|
@@ -41,5 +44,4 @@ export const Behaviours = {
|
|
|
41
44
|
export * from "./library/analytics";
|
|
42
45
|
export { ClientActionReordererRegistry };
|
|
43
46
|
export { ClientActionsFetchSDK };
|
|
44
|
-
export { ClientScriptsFetchSDK };
|
|
45
|
-
export { ClientActionsRenderer };
|
|
47
|
+
export { ClientScriptsFetchSDK };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import AbstractController from "./AbstractController";
|
|
2
|
+
|
|
3
|
+
class SortByController extends AbstractController {
|
|
4
|
+
handle(event) {
|
|
5
|
+
const {
|
|
6
|
+
sortByUseCase
|
|
7
|
+
} = this.service;
|
|
8
|
+
let {
|
|
9
|
+
state,
|
|
10
|
+
updateState,
|
|
11
|
+
action,
|
|
12
|
+
dispatch
|
|
13
|
+
} = event;
|
|
14
|
+
let {
|
|
15
|
+
id,
|
|
16
|
+
name
|
|
17
|
+
} = action.payload;
|
|
18
|
+
sortByUseCase.updateDependencies(state, updateState);
|
|
19
|
+
sortByUseCase.execute({
|
|
20
|
+
id,
|
|
21
|
+
name,
|
|
22
|
+
dispatch
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export default SortByController;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { SORTBY_SORTED } from "../../../../../bc/sort-by/Constants";
|
|
2
|
+
import AbstractUseCase from "./AbstractUseCase";
|
|
3
|
+
|
|
4
|
+
class SortBy extends AbstractUseCase {
|
|
5
|
+
execute(input) {
|
|
6
|
+
const {
|
|
7
|
+
id,
|
|
8
|
+
name,
|
|
9
|
+
dispatch
|
|
10
|
+
} = input;
|
|
11
|
+
const {
|
|
12
|
+
repository,
|
|
13
|
+
presenter
|
|
14
|
+
} = this.dependencies;
|
|
15
|
+
const sortBy = repository.getSortByEntity();
|
|
16
|
+
sortBy.doSorting(id, name);
|
|
17
|
+
presenter.updateSortBy(sortBy.toObject());
|
|
18
|
+
dispatch({
|
|
19
|
+
type: SORTBY_SORTED,
|
|
20
|
+
payload: {
|
|
21
|
+
sortBy: sortBy.toObject()
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export default SortBy;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import Properties from "../../../../../bc/sort-by/Properties";
|
|
2
|
+
|
|
3
|
+
// REVIEW: Class never used
|
|
4
|
+
class DemoBehaviour {
|
|
5
|
+
static create() {
|
|
6
|
+
return {
|
|
7
|
+
name: 'demo_behaviour',
|
|
8
|
+
setInitialState: () => ({}),
|
|
9
|
+
properties: Properties,
|
|
10
|
+
eventHandlers: {
|
|
11
|
+
"DEMO": () => {
|
|
12
|
+
alert('demo');
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export default DemoBehaviour;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { ErrorCodes } from "../../../../cc/component/ErrorStructure";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* SlotValidator validates slot component types against allowedComponentTypes restrictions.
|
|
5
|
+
* Supports wildcard '*' to allow all component types.
|
|
6
|
+
* Non-breaking validation - errors don't disrupt component flow.
|
|
7
|
+
*/
|
|
8
|
+
export default class SlotValidator {
|
|
9
|
+
/**
|
|
10
|
+
* Validates that all components in slots respect the allowedComponentTypes restrictions
|
|
11
|
+
* @param slots - Array of slot definitions with component type restrictions
|
|
12
|
+
* @returns SlotValidationResult with validation status and errors
|
|
13
|
+
*/
|
|
14
|
+
static validateSlots() {
|
|
15
|
+
let slots = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
16
|
+
const errors = [];
|
|
17
|
+
slots.forEach(slot => {
|
|
18
|
+
const {
|
|
19
|
+
name: slotName,
|
|
20
|
+
elements = [],
|
|
21
|
+
allowedComponentTypes = ['*']
|
|
22
|
+
} = slot; // If allowedComponentTypes contains '*', all components are allowed
|
|
23
|
+
|
|
24
|
+
const allowAllComponents = allowedComponentTypes.includes('*');
|
|
25
|
+
elements.forEach(element => {
|
|
26
|
+
const {
|
|
27
|
+
type: componentType,
|
|
28
|
+
name: elementName
|
|
29
|
+
} = element; // Skip validation if wildcard is specified
|
|
30
|
+
|
|
31
|
+
if (!allowAllComponents && !allowedComponentTypes.includes(componentType)) {
|
|
32
|
+
errors.push({
|
|
33
|
+
message: `Component type '${componentType}' is not allowed in slot '${slotName}'. Allowed types: ${allowedComponentTypes.join(', ')}`,
|
|
34
|
+
slotName,
|
|
35
|
+
elementName,
|
|
36
|
+
componentType
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
});
|
|
41
|
+
return {
|
|
42
|
+
isValid: errors.length === 0,
|
|
43
|
+
errors
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Throws a structured error if slot validation fails
|
|
48
|
+
* Error is non-breaking to allow other components to continue rendering
|
|
49
|
+
* @param slots - Array of slot definitions
|
|
50
|
+
* @throws ErrorStructure with non-breaking error flag
|
|
51
|
+
*/
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
static validateAndThrowIfInvalid() {
|
|
55
|
+
let slots = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
56
|
+
const validationResult = SlotValidator.validateSlots(slots);
|
|
57
|
+
|
|
58
|
+
if (!validationResult.isValid) {
|
|
59
|
+
// Non-breaking error - component continues to render
|
|
60
|
+
const error = {
|
|
61
|
+
code: ErrorCodes.PROPERTY_VALIDATION_FAILED,
|
|
62
|
+
message: 'Slot component type validation failed',
|
|
63
|
+
errorDetails: {
|
|
64
|
+
isBreaking: false,
|
|
65
|
+
// Important: allows other components to continue
|
|
66
|
+
slotValidationErrors: validationResult.errors
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
throw error;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Returns true if wildcard is defined, allowing all component types
|
|
74
|
+
* @param allowedComponentTypes - Array of allowed component types
|
|
75
|
+
* @returns boolean
|
|
76
|
+
*/
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
static hasWildcardPermission() {
|
|
80
|
+
let allowedComponentTypes = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
81
|
+
return allowedComponentTypes.includes('*') || allowedComponentTypes.length === 0;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import React, { useState, useRef, useEffect, forwardRef } from 'react';
|
|
2
|
+
import DependencyFactory from "./DependencyFactory";
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
function Component(props) {
|
|
6
|
+
const [state, setState] = useState(null);
|
|
7
|
+
const elementRef = useRef(null);
|
|
8
|
+
const {
|
|
9
|
+
controller,
|
|
10
|
+
presenter,
|
|
11
|
+
eventManager
|
|
12
|
+
} = DependencyFactory.create({
|
|
13
|
+
updateState: newState => {
|
|
14
|
+
// Hack initial render
|
|
15
|
+
if (state == null) {
|
|
16
|
+
setState(newState);
|
|
17
|
+
} else {
|
|
18
|
+
setState(() => newState);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
const helpers = {
|
|
23
|
+
updateState: controller.updateState.bind(controller),
|
|
24
|
+
updateProperties: controller.updateProperties.bind(controller),
|
|
25
|
+
dispatch: controller.dispatch.bind(controller)
|
|
26
|
+
};
|
|
27
|
+
useEffect(() => {
|
|
28
|
+
controller.initialize({ ...input,
|
|
29
|
+
newProps: props,
|
|
30
|
+
helpers
|
|
31
|
+
});
|
|
32
|
+
eventManager.name = input.name;
|
|
33
|
+
controller.mount();
|
|
34
|
+
return () => {
|
|
35
|
+
controller.unmount();
|
|
36
|
+
};
|
|
37
|
+
}, []);
|
|
38
|
+
useEffect(() => {
|
|
39
|
+
controller.updateProperties(props);
|
|
40
|
+
}, [props]);
|
|
41
|
+
const View = /*#__PURE__*/forwardRef(input.View);
|
|
42
|
+
|
|
43
|
+
if (state?.error) {
|
|
44
|
+
console.log(state.error);
|
|
45
|
+
return /*#__PURE__*/React.createElement("div", null, "error");
|
|
46
|
+
} else {
|
|
47
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
48
|
+
ref: eventManager.setElement.bind(eventManager),
|
|
49
|
+
helpers: helpers,
|
|
50
|
+
state: state
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
;
|
|
56
|
+
export default Component;
|
|
@@ -47,8 +47,7 @@ export function TransformState(state) {
|
|
|
47
47
|
footerLeftActions,
|
|
48
48
|
footerRightActions,
|
|
49
49
|
rightPanel,
|
|
50
|
-
clientScripts
|
|
51
|
-
context
|
|
50
|
+
clientScripts
|
|
52
51
|
} = state.properties; // const { values, errorMessages } = state.behaviours.form;
|
|
53
52
|
|
|
54
53
|
const updatedSections = updateFieldValues({
|
|
@@ -68,7 +67,6 @@ export function TransformState(state) {
|
|
|
68
67
|
footerLeftActions,
|
|
69
68
|
footerRightActions,
|
|
70
69
|
clientScripts,
|
|
71
|
-
context,
|
|
72
70
|
rightPanel
|
|
73
71
|
}
|
|
74
72
|
};
|