@zohodesk/library-platform 1.2.2-exp.1 → 1.2.2-exp.5
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-connected/SdkContract.js +3 -28
- package/es/cc/table-list/Events.js +8 -0
- package/es/cc/table-list/Properties.js +8 -9
- package/es/cc/table-list/row/Properties.js +6 -19
- 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/custom-component/frameworks/ui/DependencyFactory.js +1 -17
- 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/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/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/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/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/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/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/multi-select/frameworks/ui/MultiSelectView.js +21 -8
- package/es/library/dot/legacy-to-new-arch/radio-dropdown/frameworks/ui/RadioDropdownView.js +3 -1
- package/es/library/dot/legacy-to-new-arch/select/frameworks/ui/SelectView.js +18 -8
- 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/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/textbox/frameworks/ui/TextBoxView.js +11 -5
- package/es/library/json-schema-validator/Validator.js +338 -0
- package/es/library/json-schema-validator/__tests__/Validator.test.js +753 -0
- package/es/library/json-schema-validator/index.js +1 -0
- 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 +1 -58
- 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/client-actions-renderer/frameworks/ui/more-actions-renderer/MoreActionsRenderer.js +9 -0
- package/es/platform/client-actions/components/client-actions-renderer/frameworks/ui/more-actions-renderer/MoreActionsRendererView.js +81 -0
- 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/sdk/application/interfaces/gateways/AbstractResource.js +1 -1
- 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 -9
- package/es/library/custom-component/frameworks/json-schema-validator/Validator.js +0 -177
- package/es/library/custom-component/frameworks/json-schema-validator/__generated__/registry.js +0 -92
- package/es/library/custom-component/frameworks/json-schema-validator/__generated__/validators.js +0 -1
- package/es/library/custom-component/frameworks/json-schema-validator/__tests__/Validator.test.js +0 -478
- /package/es/{library/custom-component/frameworks/json-schema-validator/__generated__/registry.d.js → platform/client-actions/components/client-actions-renderer/domain/entities/ClientActionsRendererDatatype.js} +0 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
label: {
|
|
3
|
+
defaultValue: '',
|
|
4
|
+
required: false,
|
|
5
|
+
typeMetadata: {
|
|
6
|
+
schema: {
|
|
7
|
+
type: 'string'
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
actionLabel: {
|
|
12
|
+
defaultValue: 'Undo',
|
|
13
|
+
required: false,
|
|
14
|
+
typeMetadata: {
|
|
15
|
+
schema: {
|
|
16
|
+
type: 'string'
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
hasAction: {
|
|
21
|
+
defaultValue: false,
|
|
22
|
+
required: false,
|
|
23
|
+
typeMetadata: {
|
|
24
|
+
schema: {
|
|
25
|
+
type: 'boolean'
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
};
|
|
@@ -73,5 +73,33 @@ export default {
|
|
|
73
73
|
type: 'string'
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
+
},
|
|
77
|
+
iconName: {
|
|
78
|
+
defaultValue: '',
|
|
79
|
+
required: false,
|
|
80
|
+
typeMetadata: {
|
|
81
|
+
schema: {
|
|
82
|
+
type: 'string'
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
iconSize: {
|
|
87
|
+
defaultValue: '14',
|
|
88
|
+
required: false,
|
|
89
|
+
typeMetadata: {
|
|
90
|
+
schema: {
|
|
91
|
+
type: 'string'
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
iconPosition: {
|
|
96
|
+
defaultValue: 'right',
|
|
97
|
+
required: false,
|
|
98
|
+
typeMetadata: {
|
|
99
|
+
schema: {
|
|
100
|
+
type: 'string',
|
|
101
|
+
enum: ['left', 'right']
|
|
102
|
+
}
|
|
103
|
+
}
|
|
76
104
|
}
|
|
77
105
|
};
|
package/es/cc/date/Properties.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { clientScriptsSchema } from "../../platform/client-scripts/cc/zclient-scripts-execution/clientScriptsSchema";
|
|
1
2
|
export default {
|
|
2
3
|
id: {
|
|
3
4
|
defaultValue: '',
|
|
@@ -79,5 +80,19 @@ export default {
|
|
|
79
80
|
type: 'array'
|
|
80
81
|
}
|
|
81
82
|
}
|
|
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
|
+
}
|
|
82
97
|
}
|
|
83
98
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { clientScriptsSchema } from "../../../platform/client-scripts/cc/zclient-scripts-execution/clientScriptsSchema";
|
|
1
2
|
export default {
|
|
2
3
|
type: {
|
|
3
4
|
required: false,
|
|
@@ -193,10 +194,16 @@ export default {
|
|
|
193
194
|
}
|
|
194
195
|
},
|
|
195
196
|
clientScripts: {
|
|
197
|
+
required: false,
|
|
198
|
+
typeMetadata: {
|
|
199
|
+
schema: clientScriptsSchema
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
context: {
|
|
196
203
|
required: false,
|
|
197
204
|
typeMetadata: {
|
|
198
205
|
schema: {
|
|
199
|
-
type: '
|
|
206
|
+
type: 'object'
|
|
200
207
|
}
|
|
201
208
|
}
|
|
202
209
|
}
|
package/es/cc/form/Properties.js
CHANGED
|
@@ -52,5 +52,33 @@ export default {
|
|
|
52
52
|
enum: ["default", "pointer"]
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
|
+
},
|
|
56
|
+
iconName: {
|
|
57
|
+
required: false,
|
|
58
|
+
defaultValue: '',
|
|
59
|
+
typeMetadata: {
|
|
60
|
+
schema: {
|
|
61
|
+
type: "string"
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
iconSize: {
|
|
66
|
+
required: false,
|
|
67
|
+
defaultValue: '14',
|
|
68
|
+
typeMetadata: {
|
|
69
|
+
schema: {
|
|
70
|
+
type: "string"
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
iconPosition: {
|
|
75
|
+
required: false,
|
|
76
|
+
defaultValue: 'right',
|
|
77
|
+
typeMetadata: {
|
|
78
|
+
schema: {
|
|
79
|
+
type: "string",
|
|
80
|
+
enum: ['left', 'right']
|
|
81
|
+
}
|
|
82
|
+
}
|
|
55
83
|
}
|
|
56
84
|
};
|
package/es/cc/index.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import { clientScriptsSchema } from "../../platform/client-scripts/cc/zclient-scripts-execution/clientScriptsSchema";
|
|
1
2
|
export default {
|
|
2
3
|
label: {
|
|
3
4
|
required: false,
|
|
4
5
|
typeMetadata: {
|
|
5
6
|
schema: {
|
|
6
|
-
type:
|
|
7
|
+
type: 'string'
|
|
7
8
|
}
|
|
8
9
|
}
|
|
9
10
|
},
|
|
@@ -11,7 +12,7 @@ export default {
|
|
|
11
12
|
required: false,
|
|
12
13
|
typeMetadata: {
|
|
13
14
|
schema: {
|
|
14
|
-
type:
|
|
15
|
+
type: 'string'
|
|
15
16
|
}
|
|
16
17
|
}
|
|
17
18
|
},
|
|
@@ -20,7 +21,7 @@ export default {
|
|
|
20
21
|
defaultValue: [],
|
|
21
22
|
typeMetadata: {
|
|
22
23
|
schema: {
|
|
23
|
-
type:
|
|
24
|
+
type: 'array'
|
|
24
25
|
}
|
|
25
26
|
}
|
|
26
27
|
},
|
|
@@ -29,15 +30,21 @@ export default {
|
|
|
29
30
|
defaultValue: false,
|
|
30
31
|
typeMetadata: {
|
|
31
32
|
schema: {
|
|
32
|
-
type:
|
|
33
|
+
type: 'boolean'
|
|
33
34
|
}
|
|
34
35
|
}
|
|
35
36
|
},
|
|
36
37
|
clientScripts: {
|
|
38
|
+
required: false,
|
|
39
|
+
typeMetadata: {
|
|
40
|
+
schema: clientScriptsSchema
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
context: {
|
|
37
44
|
required: false,
|
|
38
45
|
typeMetadata: {
|
|
39
46
|
schema: {
|
|
40
|
-
type: '
|
|
47
|
+
type: 'object'
|
|
41
48
|
}
|
|
42
49
|
}
|
|
43
50
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { clientScriptsSchema } from "../../platform/client-scripts/cc/zclient-scripts-execution/clientScriptsSchema";
|
|
1
2
|
export default {
|
|
2
3
|
id: {
|
|
3
4
|
defaultValue: '',
|
|
@@ -92,10 +93,16 @@ export default {
|
|
|
92
93
|
}
|
|
93
94
|
},
|
|
94
95
|
clientScripts: {
|
|
96
|
+
required: false,
|
|
97
|
+
typeMetadata: {
|
|
98
|
+
schema: clientScriptsSchema
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
context: {
|
|
95
102
|
required: false,
|
|
96
103
|
typeMetadata: {
|
|
97
104
|
schema: {
|
|
98
|
-
type: '
|
|
105
|
+
type: 'object'
|
|
99
106
|
}
|
|
100
107
|
}
|
|
101
108
|
}
|
|
@@ -25,6 +25,22 @@ export default [{
|
|
|
25
25
|
type: 'string'
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
|
+
},
|
|
29
|
+
previousId: {
|
|
30
|
+
name: 'previousId',
|
|
31
|
+
typeMetadata: {
|
|
32
|
+
schema: {
|
|
33
|
+
type: 'string'
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
previousValue: {
|
|
38
|
+
name: 'previousValue',
|
|
39
|
+
typeMetadata: {
|
|
40
|
+
schema: {
|
|
41
|
+
type: 'string'
|
|
42
|
+
}
|
|
43
|
+
}
|
|
28
44
|
}
|
|
29
45
|
}
|
|
30
46
|
}, {
|
|
@@ -14,6 +14,7 @@ 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";
|
|
17
18
|
export default {
|
|
18
19
|
id: {
|
|
19
20
|
required: false,
|
|
@@ -108,10 +109,16 @@ export default {
|
|
|
108
109
|
}
|
|
109
110
|
},
|
|
110
111
|
clientScripts: {
|
|
112
|
+
required: false,
|
|
113
|
+
typeMetadata: {
|
|
114
|
+
schema: clientScriptsSchema
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
context: {
|
|
111
118
|
required: false,
|
|
112
119
|
typeMetadata: {
|
|
113
120
|
schema: {
|
|
114
|
-
type: '
|
|
121
|
+
type: 'object'
|
|
115
122
|
}
|
|
116
123
|
}
|
|
117
124
|
},
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { clientScriptsSchema } from "../../platform/client-scripts/cc/zclient-scripts-execution/clientScriptsSchema";
|
|
1
2
|
export default {
|
|
2
3
|
id: {
|
|
3
4
|
defaultValue: '',
|
|
@@ -84,10 +85,16 @@ export default {
|
|
|
84
85
|
}
|
|
85
86
|
},
|
|
86
87
|
clientScripts: {
|
|
88
|
+
required: false,
|
|
89
|
+
typeMetadata: {
|
|
90
|
+
schema: clientScriptsSchema
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
context: {
|
|
87
94
|
required: false,
|
|
88
95
|
typeMetadata: {
|
|
89
96
|
schema: {
|
|
90
|
-
type: '
|
|
97
|
+
type: 'object'
|
|
91
98
|
}
|
|
92
99
|
}
|
|
93
100
|
}
|
|
@@ -97,6 +97,15 @@ export default {
|
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
},
|
|
100
|
+
emptyStateMessage: {
|
|
101
|
+
defaultValue: "No results found",
|
|
102
|
+
required: false,
|
|
103
|
+
typeMetadata: {
|
|
104
|
+
schema: {
|
|
105
|
+
type: "string"
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
},
|
|
100
109
|
clearFilterLabel: {
|
|
101
110
|
defaultValue: "Clear Filter",
|
|
102
111
|
required: false,
|
|
@@ -1,30 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
type: 'object',
|
|
4
|
-
properties: {
|
|
5
|
-
conditions: {
|
|
6
|
-
type: 'array',
|
|
7
|
-
items: {
|
|
8
|
-
type: 'object',
|
|
9
|
-
properties: {
|
|
10
|
-
fieldName: {
|
|
11
|
-
type: 'string'
|
|
12
|
-
},
|
|
13
|
-
condition: {
|
|
14
|
-
type: 'string',
|
|
15
|
-
enum: ['is empty', 'is not empty', 'is', "isn't", 'starts with', 'ends with', 'contains', "doesn't contain", '=', '<>', '<', '<=', '>', '>=', 'is after', 'is before', 'between', 'not between']
|
|
16
|
-
},
|
|
17
|
-
value: {}
|
|
18
|
-
},
|
|
19
|
-
required: ['fieldName', 'condition', 'value']
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
pattern: {
|
|
23
|
-
type: 'string'
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
required: ['conditions', 'pattern']
|
|
27
|
-
};
|
|
1
|
+
import { SortOrder } from "../../bc/zlist/Types";
|
|
2
|
+
import { filterConfigSchema } from "../../bc/zrecord/Schemas";
|
|
28
3
|
export const SdkContracts = {
|
|
29
4
|
getRecordInputMeta: {
|
|
30
5
|
type: 'object',
|
|
@@ -192,7 +167,7 @@ export const SdkContracts = {
|
|
|
192
167
|
},
|
|
193
168
|
order: {
|
|
194
169
|
type: 'string',
|
|
195
|
-
enum: [
|
|
170
|
+
enum: [SortOrder.ASC, SortOrder.DES, SortOrder.NONE]
|
|
196
171
|
}
|
|
197
172
|
}
|
|
198
173
|
},
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
+
import { Alignment, Width, SortedBy } from "./data-types/Header";
|
|
2
|
+
import RowCursor from "./data-types/RowCursor";
|
|
1
3
|
import SelectionConfigProperties from "../../bc/list-selection/Properties";
|
|
2
|
-
|
|
3
|
-
type: 'array',
|
|
4
|
-
minItems: 0
|
|
5
|
-
};
|
|
4
|
+
import { actionsSchema } from "../../platform/client-actions/cc/action-event-mediator/Properties";
|
|
6
5
|
const TableListProperties = {
|
|
7
6
|
isReOrderLoading: {
|
|
8
7
|
required: false,
|
|
@@ -48,7 +47,7 @@ const TableListProperties = {
|
|
|
48
47
|
properties: {
|
|
49
48
|
order: {
|
|
50
49
|
type: 'string',
|
|
51
|
-
enum:
|
|
50
|
+
enum: Object.values(SortedBy)
|
|
52
51
|
},
|
|
53
52
|
name: {
|
|
54
53
|
type: 'string'
|
|
@@ -111,7 +110,7 @@ const TableListProperties = {
|
|
|
111
110
|
required: false,
|
|
112
111
|
defaultValue: {
|
|
113
112
|
hasActions: false,
|
|
114
|
-
columnWidth:
|
|
113
|
+
columnWidth: Width.XSmall
|
|
115
114
|
},
|
|
116
115
|
typeMetadata: {
|
|
117
116
|
schema: {
|
|
@@ -143,7 +142,7 @@ const TableListProperties = {
|
|
|
143
142
|
typeMetadata: {
|
|
144
143
|
schema: {
|
|
145
144
|
type: 'string',
|
|
146
|
-
enum:
|
|
145
|
+
enum: Object.values(RowCursor)
|
|
147
146
|
}
|
|
148
147
|
}
|
|
149
148
|
},
|
|
@@ -176,11 +175,11 @@ const TableListProperties = {
|
|
|
176
175
|
},
|
|
177
176
|
alignment: {
|
|
178
177
|
type: 'string',
|
|
179
|
-
enum:
|
|
178
|
+
enum: Object.values(Alignment)
|
|
180
179
|
},
|
|
181
180
|
sortOrder: {
|
|
182
181
|
type: 'string',
|
|
183
|
-
enum:
|
|
182
|
+
enum: Object.values(SortedBy)
|
|
184
183
|
}
|
|
185
184
|
},
|
|
186
185
|
required: ['id', 'name', 'text']
|
|
@@ -1,19 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
minItems: 0,
|
|
5
|
-
items: {
|
|
6
|
-
type: 'object',
|
|
7
|
-
properties: {
|
|
8
|
-
targetEventName: {
|
|
9
|
-
type: 'string'
|
|
10
|
-
},
|
|
11
|
-
clientScript: {
|
|
12
|
-
type: 'string'
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
};
|
|
1
|
+
import { Width } from "../data-types/Header";
|
|
2
|
+
import RowCursor from "../data-types/RowCursor";
|
|
3
|
+
import { clientScriptsSchema } from "../../../platform/client-scripts/cc/zclient-scripts-execution/clientScriptsSchema";
|
|
17
4
|
const TableRowProperties = {
|
|
18
5
|
isReorderEnabled: {
|
|
19
6
|
required: false,
|
|
@@ -102,7 +89,7 @@ const TableRowProperties = {
|
|
|
102
89
|
typeMetadata: {
|
|
103
90
|
schema: {
|
|
104
91
|
type: 'string',
|
|
105
|
-
enum:
|
|
92
|
+
enum: Object.values(RowCursor)
|
|
106
93
|
}
|
|
107
94
|
}
|
|
108
95
|
},
|
|
@@ -135,11 +122,11 @@ const TableRowProperties = {
|
|
|
135
122
|
},
|
|
136
123
|
rowActionsColumnWidth: {
|
|
137
124
|
required: false,
|
|
138
|
-
defaultValue:
|
|
125
|
+
defaultValue: Width.XSmall,
|
|
139
126
|
typeMetadata: {
|
|
140
127
|
schema: {
|
|
141
128
|
type: 'number',
|
|
142
|
-
enum:
|
|
129
|
+
enum: Object.values(Width)
|
|
143
130
|
}
|
|
144
131
|
}
|
|
145
132
|
},
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { clientScriptsSchema } from "../../platform/client-scripts/cc/zclient-scripts-execution/clientScriptsSchema";
|
|
1
2
|
export default {
|
|
2
3
|
id: {
|
|
3
4
|
required: false,
|
|
@@ -75,5 +76,19 @@ export default {
|
|
|
75
76
|
}
|
|
76
77
|
}
|
|
77
78
|
}
|
|
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
|
+
}
|
|
78
93
|
}
|
|
79
94
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { clientScriptsSchema } from "../../platform/client-scripts/cc/zclient-scripts-execution/clientScriptsSchema";
|
|
1
2
|
export default {
|
|
2
3
|
id: {
|
|
3
4
|
defaultValue: '',
|
|
@@ -92,10 +93,16 @@ export default {
|
|
|
92
93
|
}
|
|
93
94
|
},
|
|
94
95
|
clientScripts: {
|
|
96
|
+
required: false,
|
|
97
|
+
typeMetadata: {
|
|
98
|
+
schema: clientScriptsSchema
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
context: {
|
|
95
102
|
required: false,
|
|
96
103
|
typeMetadata: {
|
|
97
104
|
schema: {
|
|
98
|
-
type: '
|
|
105
|
+
type: 'object'
|
|
99
106
|
}
|
|
100
107
|
}
|
|
101
108
|
}
|
package/es/index.js
CHANGED
|
@@ -3,11 +3,10 @@ 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";
|
|
8
6
|
import ClientActionReordererRegistry from "./platform/client-actions/components/action-event-mediator/frameworks/ui/ClientActionReordererRegistry";
|
|
9
7
|
import ClientActionsFetchSDK from "./platform/client-actions/behaviour/zclient-actions/adapters/resources/ClientActionsFetchSDK";
|
|
10
|
-
import ClientScriptsFetchSDK from "./platform/client-scripts/behaviour/zclient-scripts-fetch/adapters/resources/ClientScriptsFetchSDK";
|
|
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
|
|
11
10
|
|
|
12
11
|
const SmartTableConstants = {
|
|
13
12
|
ExternalConstants
|
|
@@ -31,9 +30,7 @@ export { fetchClientActions } from "./platform/client-actions/components/action-
|
|
|
31
30
|
export { ZFormApiActionName } from "./bc/zform/Constants";
|
|
32
31
|
export { RecordApiActionName } from "./bc/zrecord/Constants";
|
|
33
32
|
export { transFormValidationRules } from "./platform/data-source/utils/validation-rules/TransFormValidationRules";
|
|
34
|
-
export { AdaptiveRowActionsRenderer };
|
|
35
33
|
export { ActionEventMediator };
|
|
36
|
-
export { RowActionsRenderer };
|
|
37
34
|
export { renderField } from "./library/dot/components/section/frameworks/ui/RenderField";
|
|
38
35
|
export { default as ResourceNamesEnum } from "./bc/sdk/ResourceNamesEnum";
|
|
39
36
|
import { FieldSectionEventMappingBehaviourFactory } from "./library/dot/components/section/frameworks/ui/Section";
|
|
@@ -44,4 +41,5 @@ export const Behaviours = {
|
|
|
44
41
|
export * from "./library/analytics";
|
|
45
42
|
export { ClientActionReordererRegistry };
|
|
46
43
|
export { ClientActionsFetchSDK };
|
|
47
|
-
export { ClientScriptsFetchSDK };
|
|
44
|
+
export { ClientScriptsFetchSDK };
|
|
45
|
+
export { ClientActionsRenderer };
|
|
@@ -2,30 +2,14 @@ import Presenter from "../../adapters/presenters/Presenter";
|
|
|
2
2
|
import Service from "../../adapters/gateways/service/Service";
|
|
3
3
|
import Controller from "../../adapters/controllers/Controller";
|
|
4
4
|
import Repository from "../../adapters/gateways/repository/Repository";
|
|
5
|
-
import Validator from "
|
|
5
|
+
import { Validator } from "../../../json-schema-validator";
|
|
6
6
|
import EventManager from "../../adapters/gateways/event-manager/EventManager";
|
|
7
|
-
// One-time registration of precompiled validators
|
|
8
|
-
let precompiledRegistered = false;
|
|
9
|
-
|
|
10
|
-
function ensurePrecompiledRegistered() {
|
|
11
|
-
if (precompiledRegistered) return;
|
|
12
|
-
precompiledRegistered = true;
|
|
13
|
-
|
|
14
|
-
try {
|
|
15
|
-
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
16
|
-
const registry = require("../json-schema-validator/__generated__/registry");
|
|
17
|
-
|
|
18
|
-
Validator.registerPrecompiled(registry.default || registry);
|
|
19
|
-
} catch (e) {// __generated__ not available (e.g., first build) — runtime fallback
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
7
|
|
|
23
8
|
class DependencyFactory {
|
|
24
9
|
static create(_ref, input) {
|
|
25
10
|
let {
|
|
26
11
|
updateState
|
|
27
12
|
} = _ref;
|
|
28
|
-
ensurePrecompiledRegistered();
|
|
29
13
|
const repository = new Repository();
|
|
30
14
|
const presenter = new Presenter({
|
|
31
15
|
updateState
|
|
@@ -14,6 +14,7 @@ import ListItem from "../../../../legacy-to-new-arch/list-item/frameworks/ui/Lis
|
|
|
14
14
|
import Ribbon from "../../../../legacy-to-new-arch/ribbon/frameworks/ui/Ribbon";
|
|
15
15
|
import Search from "../../../../legacy-to-new-arch/action-band-components/search/frameworks/ui/Search";
|
|
16
16
|
import SortDropdown from "../../../../legacy-to-new-arch/sort-dropdown/frameworks/ui/SortDropdown";
|
|
17
|
+
import ActionStatus from "../../../action-status/frameworks/ui/ActionStatus";
|
|
17
18
|
const ActionComponentMapping = {
|
|
18
19
|
['ActionIcon']: ActionIcon,
|
|
19
20
|
['Button']: Button,
|
|
@@ -29,6 +30,7 @@ const ActionComponentMapping = {
|
|
|
29
30
|
['HighlightedValue']: HighlightedValue,
|
|
30
31
|
['Ribbon']: Ribbon,
|
|
31
32
|
['Search']: Search,
|
|
32
|
-
['SortDropdown']: SortDropdown
|
|
33
|
+
['SortDropdown']: SortDropdown,
|
|
34
|
+
['ActionStatus']: ActionStatus
|
|
33
35
|
};
|
|
34
36
|
export default ActionComponentMapping;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { createCustomComponent } from "../../../../../custom-component";
|
|
2
|
+
import ActionStatusProperties from "../../../../../../cc/action-status/Properties";
|
|
3
|
+
import ActionStatusEvents from "../../../../../../cc/action-status/Events";
|
|
4
|
+
import ActionStatusView from "./ActionStatusView";
|
|
5
|
+
let ActionStatus = createCustomComponent({
|
|
6
|
+
name: "ActionStatus",
|
|
7
|
+
View: ActionStatusView,
|
|
8
|
+
properties: ActionStatusProperties,
|
|
9
|
+
events: ActionStatusEvents,
|
|
10
|
+
eventHandlers: {}
|
|
11
|
+
});
|
|
12
|
+
export default ActionStatus;
|