@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
|
@@ -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,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 };
|
|
@@ -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;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Flex from '@zohodesk/layout/es/Flex/Flex';
|
|
3
|
+
import ColoredTypography from '@zohodesk-private/desk-components/es/ColoredTypography/ColoredTypography';
|
|
4
|
+
import Button from '@zohodesk-private/dot-registry/es/Button/Button';
|
|
5
|
+
import { ActionStatusConstants } from "../../../../../../cc"; // @ts-ignore
|
|
6
|
+
|
|
7
|
+
import styles from "./css/ActionStatus.module.css";
|
|
8
|
+
|
|
9
|
+
function ActionStatusView(_ref, ref) {
|
|
10
|
+
let {
|
|
11
|
+
state,
|
|
12
|
+
helpers
|
|
13
|
+
} = _ref;
|
|
14
|
+
let {
|
|
15
|
+
dispatch
|
|
16
|
+
} = helpers;
|
|
17
|
+
let {
|
|
18
|
+
label,
|
|
19
|
+
actionLabel,
|
|
20
|
+
hasAction
|
|
21
|
+
} = state.properties;
|
|
22
|
+
return /*#__PURE__*/React.createElement(Flex, {
|
|
23
|
+
ref: ref,
|
|
24
|
+
$ui_displayMode: "inline",
|
|
25
|
+
$ui_alignItems: "center",
|
|
26
|
+
$ui_direction: "row",
|
|
27
|
+
$ui_className: styles.container,
|
|
28
|
+
$a11yAttributes_container: {
|
|
29
|
+
'role': 'status',
|
|
30
|
+
'aria-live': 'polite',
|
|
31
|
+
'aria-busy': true
|
|
32
|
+
}
|
|
33
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
34
|
+
className: styles.spinner,
|
|
35
|
+
"aria-hidden": "true"
|
|
36
|
+
}), label && /*#__PURE__*/React.createElement(ColoredTypography, {
|
|
37
|
+
$ui_size: "15",
|
|
38
|
+
$ui_weight: "regular",
|
|
39
|
+
$ui_color: "grey",
|
|
40
|
+
$flag_dotted: true,
|
|
41
|
+
$ui_className: styles.label
|
|
42
|
+
}, label), hasAction && /*#__PURE__*/React.createElement(Button, {
|
|
43
|
+
palette: "plainPrimary",
|
|
44
|
+
needAppearance: true,
|
|
45
|
+
text: actionLabel,
|
|
46
|
+
onClick: () => {
|
|
47
|
+
dispatch({
|
|
48
|
+
type: ActionStatusConstants.ACTION_STATUS_ACTION_CLICKED
|
|
49
|
+
});
|
|
50
|
+
},
|
|
51
|
+
customClass: {
|
|
52
|
+
customButton: styles.actionButton
|
|
53
|
+
}
|
|
54
|
+
}));
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export default ActionStatusView;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
@property --_fill {
|
|
2
|
+
syntax: '<angle>';
|
|
3
|
+
inherits: false;
|
|
4
|
+
initial-value: 0deg;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.container {
|
|
8
|
+
gap: 8px;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.spinner {
|
|
12
|
+
display: inline-block;
|
|
13
|
+
width: 16px;
|
|
14
|
+
height: 16px;
|
|
15
|
+
/* COLOR VARIABLES TO BE UPDATED PROPERLY USING COMMON COLORS */
|
|
16
|
+
flex-shrink: 0;
|
|
17
|
+
box-sizing: border-box;
|
|
18
|
+
border-radius: 50%;
|
|
19
|
+
border: 1px solid transparent;
|
|
20
|
+
background:
|
|
21
|
+
conic-gradient(var(--zdt_coloredtypography_grey_text) var(--_fill, 0deg),
|
|
22
|
+
var(--zdt_filterdropdown_clearbutton_bg) var(--_fill, 0deg)) content-box,
|
|
23
|
+
conic-gradient(var(--zdt_coloredtypography_grey_text) 0deg var(--_fill, 0deg),
|
|
24
|
+
transparent var(--_fill, 0deg) 360deg) border-box,
|
|
25
|
+
conic-gradient(transparent 0deg 4deg,
|
|
26
|
+
var(--zdt_coloredtypography_grey_text) 4deg 86deg,
|
|
27
|
+
transparent 86deg 94deg,
|
|
28
|
+
var(--zdt_coloredtypography_grey_text) 94deg 176deg,
|
|
29
|
+
transparent 176deg 184deg,
|
|
30
|
+
var(--zdt_coloredtypography_grey_text) 184deg 266deg,
|
|
31
|
+
transparent 266deg 274deg,
|
|
32
|
+
var(--zdt_coloredtypography_grey_text) 274deg 356deg,
|
|
33
|
+
transparent 356deg 360deg) border-box;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
[dir=ltr] .spinner {
|
|
37
|
+
animation: fill 9s linear infinite;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
[dir=rtl] .spinner {
|
|
41
|
+
animation: fill 9s linear infinite;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
@keyframes fill {
|
|
45
|
+
0% {
|
|
46
|
+
--_fill: 0deg;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
100% {
|
|
50
|
+
--_fill: 360deg;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.label {
|
|
55
|
+
line-height: 1.07;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.actionButton {
|
|
59
|
+
--button_font_size: 15px;
|
|
60
|
+
--button_text_transform: none;
|
|
61
|
+
}
|
|
@@ -47,7 +47,8 @@ export function TransformState(state) {
|
|
|
47
47
|
footerLeftActions,
|
|
48
48
|
footerRightActions,
|
|
49
49
|
rightPanel,
|
|
50
|
-
clientScripts
|
|
50
|
+
clientScripts,
|
|
51
|
+
context
|
|
51
52
|
} = state.properties; // const { values, errorMessages } = state.behaviours.form;
|
|
52
53
|
|
|
53
54
|
const updatedSections = updateFieldValues({
|
|
@@ -67,6 +68,7 @@ export function TransformState(state) {
|
|
|
67
68
|
footerLeftActions,
|
|
68
69
|
footerRightActions,
|
|
69
70
|
clientScripts,
|
|
71
|
+
context,
|
|
70
72
|
rightPanel
|
|
71
73
|
}
|
|
72
74
|
};
|
|
@@ -18,7 +18,8 @@ function FormView(_ref, ref) {
|
|
|
18
18
|
footerRightActions,
|
|
19
19
|
isHeaderEnabled,
|
|
20
20
|
isFooterEnabled,
|
|
21
|
-
clientScripts
|
|
21
|
+
clientScripts,
|
|
22
|
+
context
|
|
22
23
|
} = state.viewModel;
|
|
23
24
|
return /*#__PURE__*/React.createElement(Flex, {
|
|
24
25
|
$ui_displayMode: "flex",
|
|
@@ -32,7 +33,8 @@ function FormView(_ref, ref) {
|
|
|
32
33
|
hasHeader: isHeaderEnabled,
|
|
33
34
|
headerLeftActions: headerLeftActions,
|
|
34
35
|
headerRightActions: headerRightActions,
|
|
35
|
-
clientScripts: clientScripts
|
|
36
|
+
clientScripts: clientScripts,
|
|
37
|
+
context: context
|
|
36
38
|
}), /*#__PURE__*/React.createElement(MiddleSection, {
|
|
37
39
|
sections: sections,
|
|
38
40
|
isLoading: isLoading,
|
|
@@ -42,7 +44,8 @@ function FormView(_ref, ref) {
|
|
|
42
44
|
hasFooter: isFooterEnabled,
|
|
43
45
|
footerLeftActions: footerLeftActions,
|
|
44
46
|
footerRightActions: footerRightActions,
|
|
45
|
-
clientScripts: clientScripts
|
|
47
|
+
clientScripts: clientScripts,
|
|
48
|
+
context: context
|
|
46
49
|
}));
|
|
47
50
|
}
|
|
48
51
|
|