@zohodesk/library-platform 1.1.13 → 1.2.0-exp.1
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/bc/column-chooser/EventHandlers.js +1 -2
- package/es/bc/sdk/ResourceNamesEnum.js +1 -0
- package/es/bc/zform/Properties.js +20 -0
- package/es/bc/zform/Symbol.js +3 -0
- package/es/bc/zrecord/Constants.js +2 -0
- package/es/cc/action-band/Properties.js +37 -0
- package/es/cc/action-band/constants/ExternalConstants.js +3 -1
- package/es/cc/component/Dispatch.js +1 -0
- package/es/cc/component/LifeCycleEventsEnum.js +1 -0
- package/es/cc/component/index.js +3 -0
- package/es/cc/fields/currency/Properties.js +9 -0
- package/es/cc/fields/decimal/Properties.js +9 -0
- package/es/cc/fields/email/Properties.js +9 -0
- package/es/cc/fields/lookup/Properties.js +10 -26
- package/es/cc/fields/multi-line/Properties.js +1 -0
- package/es/cc/fields/number/Properties.js +10 -1
- package/es/cc/fields/phone/Properties.js +9 -0
- package/es/cc/fields/text/Properties.js +2 -2
- package/es/cc/fields/url/Properties.js +9 -0
- package/es/cc/one-unification/Constants.js +24 -0
- package/es/cc/one-unification/unified-navigation/ActionTypes.js +1 -0
- package/es/cc/one-unification/unified-navigation/CommonTypes.js +1 -0
- package/es/cc/one-unification/unified-navigation/ConfigTypes.js +1 -0
- package/es/cc/one-unification/unified-navigation/HandlerTypes.js +1 -0
- package/es/cc/one-unification/unified-navigation/Types.js +1 -0
- package/es/cc/one-unification/unified-navigation/UnifiedNavigation.d.js +0 -0
- package/es/cc/one-unification/unified-navigation/index.js +1 -0
- package/es/cc/smart-navigation/Constants.js +8 -0
- package/es/cc/smart-navigation/Events.js +107 -0
- package/es/cc/smart-navigation/Properties.js +87 -0
- package/es/cc/smart-navigation/index.js +4 -0
- package/es/cc/table-column-chooser/Constants.js +2 -1
- package/es/cc/table-connected/SdkContract.js +22 -0
- package/es/cc/text/Properties.js +100 -0
- package/es/cc/textbox/Properties.js +1 -1
- package/es/index.js +8 -3
- package/es/library/behaviours/clip-wrap/applications/usecases/ClipWrapUpdateUseCase.js +19 -0
- package/es/library/behaviours/library-loader/adapters/controllers/LibraryLoaderController.js +17 -0
- package/es/library/behaviours/library-loader/adapters/gateways/LibraryLoaderAdapter.js +29 -0
- package/es/library/behaviours/library-loader/applications/usecases/LoadLibraryUseCase.js +42 -0
- package/es/library/behaviours/library-loader/domain/entities/interfaces/ILibraryLoader.js +1 -0
- package/es/library/behaviours/library-loader/frameworks/LibraryLoaderBehaviour.js +26 -0
- package/es/library/behaviours/search/adapters/controllers/UpdatePropertiesController.js +9 -4
- package/es/library/custom-component/adapters/gateways/event-manager/EventManager.js +4 -3
- package/es/library/custom-component/applications/usecases/DispatchUseCase.js +1 -0
- package/es/library/custom-component/applications/usecases/InitializeUseCase.js +1 -0
- package/es/library/custom-component/applications/usecases/MountUseCase.js +1 -0
- package/es/library/custom-component/applications/usecases/SetRefUseCase.js +7 -0
- package/es/library/custom-component/applications/usecases/UnmountUseCase.js +1 -0
- package/es/library/custom-component/applications/usecases/UpdatePropertyUseCase.js +1 -0
- package/es/library/custom-component/domain/entities/Component.js +1 -0
- package/es/library/custom-component/domain/entities/Logger.js +4 -9
- package/es/library/dot/components/form-fields/currency/frameworks/ui/CurrencyView.js +2 -0
- package/es/library/dot/components/form-fields/decimal/frameworks/ui/DecimalView.js +2 -0
- package/es/library/dot/components/form-fields/email/frameworks/ui/Email.js +1 -1
- package/es/library/dot/components/form-fields/email/frameworks/ui/EmailView.js +2 -0
- package/es/library/dot/components/form-fields/number/frameworks/ui/NumberView.js +2 -0
- package/es/library/dot/components/form-fields/phone/frameworks/ui/PhoneView.js +2 -0
- package/es/library/dot/components/form-fields/textarea/frameworks/ui/TextArea.js +1 -1
- package/es/library/dot/components/form-fields/textarea/frameworks/ui/TextAreaView.js +4 -2
- package/es/library/dot/components/form-fields/textbox/frameworks/ui/TextBoxView.js +2 -0
- package/es/library/dot/components/form-fields/url/frameworks/ui/UrlView.js +2 -0
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/header/HeaderData.js +1 -1
- package/es/library/dot/legacy-to-new-arch/table-field-components/text-field/frameworks/ui/TextFieldView.js +20 -0
- package/es/library/dot/legacy-to-new-arch/text/frameworks/ui/Text.js +2 -2
- package/es/library/dot/legacy-to-new-arch/text/frameworks/ui/TextView.js +22 -1
- package/es/platform/app-context-behaviour/adapters/controllers/AbstractController.js +9 -0
- package/es/platform/app-context-behaviour/adapters/controllers/UpdatePropertiesController.js +32 -0
- package/es/platform/app-context-behaviour/adapters/gateway/Repository.js +22 -0
- package/es/platform/app-context-behaviour/adapters/gateway/Service.js +10 -0
- package/es/platform/app-context-behaviour/adapters/presenter/Presenter.js +16 -0
- package/es/platform/app-context-behaviour/applications/interfaces/UseCaseDependencies.js +1 -0
- package/es/platform/app-context-behaviour/applications/interfaces/gateways/IRepository.js +1 -0
- package/es/platform/app-context-behaviour/applications/interfaces/gateways/IService.js +1 -0
- package/es/platform/app-context-behaviour/applications/interfaces/input/UpdatePropertiesInputModel.js +1 -0
- package/es/platform/app-context-behaviour/applications/interfaces/output/BehaviourOutputModel.js +1 -0
- package/es/platform/app-context-behaviour/applications/interfaces/output/IPresenter.js +1 -0
- package/es/platform/app-context-behaviour/applications/usecases/AbstractUseCase.js +17 -0
- package/es/platform/app-context-behaviour/applications/usecases/UpdatePropertiesUsecase.js +25 -0
- package/es/platform/app-context-behaviour/domain/entities/AppContext.js +44 -0
- package/es/platform/app-context-behaviour/domain/entities/interfaces/IAppContext.js +1 -0
- package/es/platform/app-context-behaviour/frameworks/AppContextBehaviourFactory.js +2 -2
- package/es/platform/app-context-behaviour/frameworks/EventHandlerFactory.js +22 -0
- package/es/platform/client-actions/behaviour/zclient-actions/adapters/presenters/FilterUtils.js +11 -0
- package/es/platform/client-actions/behaviour/zclient-actions/adapters/resources/ClientActionsFetchSDK.js +76 -0
- package/es/platform/client-actions/behaviour/zclient-actions/applications/interfaces/ClientActionsAPIGatewayParams.js +1 -0
- package/es/platform/client-actions/behaviour/zclient-actions/applications/interfaces/ClientActionsFetchSDKParams.js +10 -0
- package/es/platform/client-actions/behaviour/zclient-actions/applications/interfaces/IClientActionsFetchSDK.js +0 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-fetch/adapters/resources/ClientScriptsFetchSDK.js +43 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-fetch/applications/interfaces/ClientScriptsAPIGatewayParams.js +1 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-fetch/applications/interfaces/ClientScriptsSDKFetchParams.js +1 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-fetch/applications/interfaces/IClientScriptsFetchSDK.js +0 -0
- package/es/platform/column-chooser/adapters/controllers/ColumnChooserOpenController.js +14 -6
- package/es/platform/column-chooser/adapters/controllers/ColumnChooserUpdateController.js +22 -0
- package/es/platform/column-chooser/adapters/gateways/Repository.js +12 -1
- package/es/platform/column-chooser/adapters/gateways/Service.js +2 -0
- package/es/platform/column-chooser/applications/interfaces/input/ColumnChooserUpdateInput.js +1 -0
- package/es/platform/column-chooser/applications/usecases/ColumnChooserSaveUseCase.js +8 -1
- package/es/platform/column-chooser/applications/usecases/ColumnChooserUpdateUseCase.js +35 -0
- package/es/platform/column-chooser/domain/entities/ColumnChooserImp.js +6 -0
- package/es/platform/column-chooser/frameworks/EventHandlersFactory.js +6 -4
- package/es/platform/components/index.js +1 -0
- package/es/platform/components/smart-action-band/adapters/presenters/ActionBandTranslator.js +70 -8
- package/es/platform/components/smart-action-band/adapters/presenters/utils/DefaultClientActions.js +32 -0
- package/es/platform/components/smart-action-band/frameworks/EventHandlersFactory.js +42 -1
- package/es/platform/components/smart-action-band/frameworks/SmartActionBandFactory.js +4 -1
- package/es/platform/components/smart-navigation/adapters/controllers/LoadScriptController.js +0 -0
- package/es/platform/components/smart-navigation/adapters/controllers/UiModelInitializeController.js +0 -0
- package/es/platform/components/smart-navigation/adapters/presenters/OneUnifiedNavigationTranslator.js +248 -0
- package/es/platform/components/smart-navigation/adapters/presenters/Present.js +77 -0
- package/es/platform/components/smart-navigation/adapters/presenters/SampleModel.js +356 -0
- package/es/platform/components/smart-navigation/adapters/resources/SmartNavigationResource.js +96 -0
- package/es/platform/components/smart-navigation/applications/usecases/NavigateModuleUseCase.js +0 -0
- package/es/platform/components/smart-navigation/frameworks/CustomElementRenderer.js +22 -0
- package/es/platform/components/smart-navigation/frameworks/SmartNavigation.js +12 -0
- package/es/platform/components/smart-navigation/frameworks/one-unification/OneUnificationEventHandlers.js +156 -0
- package/es/platform/components/smart-navigation/frameworks/one-unification/SmartNavigation.js +83 -0
- package/es/platform/components/smart-navigation/frameworks/one-unification/SmartNavigation.module.css +3 -0
- package/es/platform/components/smart-navigation/frameworks/one-unification/SmartNavigationEventHandlers.js +173 -0
- package/es/platform/components/smart-navigation/frameworks/one-unification/UnifiedNavigation.js +48 -0
- package/es/platform/components/smart-navigation/frameworks/one-unification/UnifiedNavigationActions.js +144 -0
- package/es/platform/components/table-connected/adapters/resources/SmartTableResource.js +52 -0
- package/es/platform/components/table-connected/frameworks/EventHandlersFactory.js +1 -7
- package/es/platform/components/table-connected/frameworks/ListSdkFactory.js +4 -2
- package/es/platform/data-source/http-template/fetchLookupFields.js +0 -6
- package/es/platform/data-source/http-template/getPageClientActions.js +23 -0
- package/es/platform/data-source/http-template/getSingleRecord.js +51 -0
- package/es/platform/data-source/index.js +2 -0
- package/es/platform/data-source/utils/validation-rules/FieldConditions.js +1 -1
- package/es/platform/sdk-behaviour/adapters/controllers/InitializeController.js +7 -2
- package/es/platform/sdk-behaviour/applications/usecases/CreateResourceInstanceUseCase.js +10 -1
- package/es/platform/zform/adapters/controllers/GetInitialRecordSuccessController.js +31 -0
- package/es/platform/zform/adapters/gateway/FormRepository.js +10 -2
- package/es/platform/zform/adapters/gateway/Service.js +2 -0
- package/es/platform/zform/adapters/presenter/FormTranslator.js +27 -15
- package/es/platform/zform/adapters/presenter/translators/SectionTranslator.js +1 -1
- package/es/platform/zform/adapters/presenter/translators/fields/CurrencyFieldTranslator.js +1 -0
- package/es/platform/zform/adapters/presenter/translators/fields/DecimalFieldTranslator.js +1 -0
- package/es/platform/zform/adapters/presenter/translators/fields/EmailFieldTranslator.js +1 -0
- package/es/platform/zform/adapters/presenter/translators/fields/LookUpFieldTranslator.js +11 -7
- package/es/platform/zform/adapters/presenter/translators/fields/NumberFieldTranslator.js +1 -0
- package/es/platform/zform/adapters/presenter/translators/fields/PhoneFieldTranslator.js +1 -0
- package/es/platform/zform/adapters/presenter/translators/fields/TextAreaFieldTranslator.js +1 -0
- package/es/platform/zform/adapters/presenter/translators/fields/TextFieldTranslator.js +1 -0
- package/es/platform/zform/adapters/presenter/translators/fields/URLFieldTranslator.js +1 -0
- package/es/platform/zform/adapters/presenter/utils/sanitizeHtmlString.js +2 -2
- package/es/platform/zform/applications/interfaces/input/GetInitialRecordSuccessUseCaseInputModel.js +1 -0
- package/es/platform/zform/applications/usecases/GetInitialRecordSuccessUseCase.js +132 -0
- package/es/platform/zform/applications/usecases/InitializeUseCase.js +54 -30
- package/es/platform/zform/applications/usecases/LookupFieldSuccessUseCase.js +5 -0
- package/es/platform/zform/applications/usecases/MyFormSuccessUseCase.js +12 -11
- package/es/platform/zform/applications/usecases/SubmitValidationCompletedUseCase.js +21 -8
- package/es/platform/zform/domain/ZField.js +7 -5
- package/es/platform/zform/domain/ZForm.js +97 -20
- package/es/platform/zform/frameworks/ui/EventHandlerFactory.js +23 -5
- package/es/platform/zform/frameworks/ui/ZFormBehaviourFactory.js +2 -0
- package/es/platform/zlist/adapters/presenters/TableTranslator.js +5 -4
- package/es/platform/zrecord/adapters/controllers/UpdateRecordController.js +30 -0
- package/es/platform/zrecord/adapters/gateways/Service.js +2 -0
- package/es/platform/zrecord/applications/interfaces/input/UpdateRecordInputModel.js +0 -0
- package/es/platform/zrecord/applications/usecases/UpdateRecordUseCase.js +30 -0
- package/es/platform/zrecord/frameworks/ActionsHandlersFactory.js +4 -1
- package/package.json +9 -11
- package/es/platform/components/table-connected/adapters/controllers/ColumnChooserOpenedController.js +0 -28
- package/es/platform/components/table-connected/adapters/controllers/ColumnChooserUpdateController.js +0 -31
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { COLUMN_CHOOSER_SELECT_REQUESTED, COLUMN_CHOOSER_REORDER_REQUESTED, COLUMN_CHOOSER_SEARCH_REQUESTED, COLUMN_CHOOSER_SAVE_REQUESTED, COLUMN_CHOOSER_CLOSE_REQUESTED } from "../../cc/table-column-chooser/Constants";
|
|
1
|
+
import { COLUMN_CHOOSER_SELECT_REQUESTED, COLUMN_CHOOSER_REORDER_REQUESTED, COLUMN_CHOOSER_SEARCH_REQUESTED, COLUMN_CHOOSER_SAVE_REQUESTED, COLUMN_CHOOSER_CLOSE_REQUESTED, COLUMN_CHOOSER_OPEN_REQUESTED } from "../../cc/table-column-chooser/Constants";
|
|
@@ -2,6 +2,7 @@ var ResourceNamesEnum = /*#__PURE__*/function (ResourceNamesEnum) {
|
|
|
2
2
|
ResourceNamesEnum["APP"] = "app";
|
|
3
3
|
ResourceNamesEnum["SMART_TABLE"] = "smartTable";
|
|
4
4
|
ResourceNamesEnum["SMART_FORM"] = "smartForm";
|
|
5
|
+
ResourceNamesEnum["SMART_NAVIGATION"] = "smartNavigation";
|
|
5
6
|
ResourceNamesEnum["SMART_ACTION_BAND"] = "smartActionBand";
|
|
6
7
|
ResourceNamesEnum["CLIENT_ACTION"] = "clientAction";
|
|
7
8
|
return ResourceNamesEnum;
|
|
@@ -18,6 +18,26 @@ export default {
|
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
},
|
|
21
|
+
mode: {
|
|
22
|
+
required: false,
|
|
23
|
+
defaultValue: 'create',
|
|
24
|
+
typeMetadata: {
|
|
25
|
+
schema: {
|
|
26
|
+
type: 'string',
|
|
27
|
+
enum: ['create', 'edit'] /// , 'readonly'
|
|
28
|
+
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
recordId: {
|
|
33
|
+
required: false,
|
|
34
|
+
defaultValue: null,
|
|
35
|
+
typeMetadata: {
|
|
36
|
+
schema: {
|
|
37
|
+
type: ['string', 'null']
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
},
|
|
21
41
|
disableGetClientActions: {
|
|
22
42
|
required: false,
|
|
23
43
|
defaultValue: false,
|
package/es/bc/zform/Symbol.js
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
export const ZFORM_MY_LAYOUTS_REQUEST = 'ZFORM#MY_LAYOUTS_REQUEST';
|
|
2
2
|
export const ZFORM_MY_LAYOUTS_SUCCESS = 'ZFORM#MY_LAYOUTS_SUCCESS';
|
|
3
3
|
export const ZFORM_MY_LAYOUTS_FAILURE = 'ZFORM#MY_LAYOUTS_FAILURE';
|
|
4
|
+
export const ZFORM_INITIAL_RECORD_REQUEST = 'ZFORM#INITIAL_RECORD_REQUEST';
|
|
5
|
+
export const ZFORM_INITIAL_RECORD_SUCCESS = 'ZFORM#INITIAL_RECORD_SUCCESS';
|
|
6
|
+
export const ZFORM_INITIAL_RECORD_FAILURE = 'ZFORM#INITIAL_RECORD_FAILURE';
|
|
4
7
|
export const ZFORM_MY_FORM_REQUEST = 'ZFORM#MY_FORM_REQUEST';
|
|
5
8
|
export const ZFORM_MY_FORM_SUCCESS = 'ZFORM#MY_FORM_SUCCESS';
|
|
6
9
|
export const ZFORM_MY_FORM_FAILURE = 'ZFORM#MY_FORM_FAILURE';
|
|
@@ -16,10 +16,12 @@ export const RECORD_LOCAL_FILTER = 'RECORD#LOCAL_FILTER';
|
|
|
16
16
|
export const SET_RECORDS = 'RECORD#SET_RECORDS';
|
|
17
17
|
export const SET_RECORDS_SUCCESS = 'RECORD#SET_RECORDS_SUCCESS';
|
|
18
18
|
export const CREATE_RECORD = 'RECORD#CREATE_RECORD';
|
|
19
|
+
export const UPDATE_RECORD = 'RECORD#UPDATE_RECORD';
|
|
19
20
|
export const RECORD_MARK_AS_READ = 'RECORD#MARK_AS_READ';
|
|
20
21
|
export const RECORD_MARK_AS_UNREAD = 'RECORD#MARK_AS_UNREAD';
|
|
21
22
|
export class RecordApiActionName {
|
|
22
23
|
static GET_RECORDS = 'getRecords';
|
|
24
|
+
static GET_SINGLE_RECORD = 'getSingleRecord';
|
|
23
25
|
static MOVE_TO_TRASH = 'moveToTrash';
|
|
24
26
|
static MARK_AS_READ = 'markAsRead';
|
|
25
27
|
static MARK_AS_UNREAD = 'markAsUnRead';
|
|
@@ -39,6 +39,43 @@ export default {
|
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
|
+
columnChooserConfig: {
|
|
43
|
+
required: false,
|
|
44
|
+
defaultValue: {
|
|
45
|
+
isEnabled: false
|
|
46
|
+
},
|
|
47
|
+
typeMetadata: {
|
|
48
|
+
schema: {
|
|
49
|
+
type: 'object',
|
|
50
|
+
properties: {
|
|
51
|
+
isEnabled: {
|
|
52
|
+
type: 'boolean'
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
textOverflowConfig: {
|
|
59
|
+
required: false,
|
|
60
|
+
defaultValue: {
|
|
61
|
+
isEnabled: true,
|
|
62
|
+
mode: 'clip'
|
|
63
|
+
},
|
|
64
|
+
typeMetadata: {
|
|
65
|
+
schema: {
|
|
66
|
+
type: 'object',
|
|
67
|
+
properties: {
|
|
68
|
+
isEnabled: {
|
|
69
|
+
type: 'boolean'
|
|
70
|
+
},
|
|
71
|
+
mode: {
|
|
72
|
+
type: 'string',
|
|
73
|
+
enum: ['clip', 'wrap']
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
},
|
|
42
79
|
sortConfig: {
|
|
43
80
|
required: false,
|
|
44
81
|
defaultValue: {
|
|
@@ -3,5 +3,7 @@ export default {
|
|
|
3
3
|
SMART_ACTION_BAND_RELOAD_CLICKED: 'SMART_ACTION_BAND#RELOAD_CLICKED',
|
|
4
4
|
SMART_ACTION_BAND_SEARCH_ON_TYPE: 'SMART_ACTION_BAND#SEARCH_ON_TYPE',
|
|
5
5
|
SMART_ACTION_BAND_SEARCH_CLEARED: 'SMART_ACTION_BAND#SEARCH_CLEARED',
|
|
6
|
-
SMART_ACTION_BAND_SORT_APPLIED: 'SMART_ACTION_BAND#SORT_APPLIED'
|
|
6
|
+
SMART_ACTION_BAND_SORT_APPLIED: 'SMART_ACTION_BAND#SORT_APPLIED',
|
|
7
|
+
SMART_ACTION_BAND_COLUMN_CHOOSER_SAVED: 'SMART_ACTION_BAND#COLUMN_CHOOSER_SAVED',
|
|
8
|
+
SMART_ACTION_BAND_TEXT_OVERFLOW_UPDATED: 'SMART_ACTION_BAND#TEXT_OVERFLOW_UPDATED'
|
|
7
9
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
var LifeCycleEvents = /*#__PURE__*/function (LifeCycleEvents) {
|
|
2
2
|
LifeCycleEvents["MOUNT"] = "MOUNT";
|
|
3
3
|
LifeCycleEvents["STATE_UPDATED"] = "STATE_UPDATED";
|
|
4
|
+
LifeCycleEvents["ERROR_OCCURRED"] = "ERROR_OCCURRED";
|
|
4
5
|
LifeCycleEvents["UN_MOUNT"] = "UN_MOUNT";
|
|
5
6
|
LifeCycleEvents["UPDATE_PROPERTIES"] = "UPDATE_PROPERTIES";
|
|
6
7
|
return LifeCycleEvents;
|
|
@@ -9,36 +9,20 @@ export default { ...FieldProperties,
|
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
},
|
|
12
|
+
//schema is not defiend properly from server so handled like this
|
|
12
13
|
value: {
|
|
13
|
-
required:
|
|
14
|
+
required: false,
|
|
15
|
+
defaultValue: null,
|
|
16
|
+
typeMetadata: {
|
|
17
|
+
schema: {}
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
maxLength: {
|
|
21
|
+
required: false,
|
|
14
22
|
defaultValue: '',
|
|
15
23
|
typeMetadata: {
|
|
16
24
|
schema: {
|
|
17
|
-
|
|
18
|
-
anyOf: [{
|
|
19
|
-
// NOTE: object type is used in Table Lookup field translator
|
|
20
|
-
type: 'object',
|
|
21
|
-
properties: {
|
|
22
|
-
id: {
|
|
23
|
-
type: 'string'
|
|
24
|
-
},
|
|
25
|
-
name: {
|
|
26
|
-
type: 'string'
|
|
27
|
-
},
|
|
28
|
-
photoURL: {
|
|
29
|
-
type: ['string', 'null']
|
|
30
|
-
},
|
|
31
|
-
url: {
|
|
32
|
-
type: ['string', 'null']
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
required: ['id', 'name'],
|
|
36
|
-
additionalProperties: true
|
|
37
|
-
}, {
|
|
38
|
-
// NOTE: string type is used in Form Lookup field translator
|
|
39
|
-
type: 'string' // Allowing string type for backward compatibility or alternative usage
|
|
40
|
-
|
|
41
|
-
}]
|
|
25
|
+
type: 'number'
|
|
42
26
|
}
|
|
43
27
|
}
|
|
44
28
|
}
|
|
@@ -5,7 +5,7 @@ export default { ...FieldProperties,
|
|
|
5
5
|
defaultValue: '',
|
|
6
6
|
typeMetadata: {
|
|
7
7
|
schema: {
|
|
8
|
-
type: 'string'
|
|
8
|
+
type: ['string', 'number']
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
},
|
|
@@ -18,6 +18,15 @@ export default { ...FieldProperties,
|
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
},
|
|
21
|
+
maxLength: {
|
|
22
|
+
required: false,
|
|
23
|
+
// defaultValue: 255,
|
|
24
|
+
typeMetadata: {
|
|
25
|
+
schema: {
|
|
26
|
+
type: 'number'
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
},
|
|
21
30
|
ePHI: {
|
|
22
31
|
required: false,
|
|
23
32
|
defaultValue: false,
|
|
@@ -5,7 +5,7 @@ export default { ...FieldProperties,
|
|
|
5
5
|
defaultValue: '',
|
|
6
6
|
typeMetadata: {
|
|
7
7
|
schema: {
|
|
8
|
-
type: 'string'
|
|
8
|
+
type: ['string', 'number']
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
},
|
|
@@ -20,7 +20,7 @@ export default { ...FieldProperties,
|
|
|
20
20
|
},
|
|
21
21
|
maxLength: {
|
|
22
22
|
required: false,
|
|
23
|
-
defaultValue: 255,
|
|
23
|
+
// defaultValue: 255,
|
|
24
24
|
typeMetadata: {
|
|
25
25
|
schema: {
|
|
26
26
|
type: 'number'
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
const EVENTS = {
|
|
2
|
+
ACTION_TRIGGERED: 'ZUNIFY#ACTION_TRIGGERED',
|
|
3
|
+
UNIFIED_NAVIGATION_INITIALIZED: 'ZUNIFY#INITIALIZED',
|
|
4
|
+
LIBRARY_READY: 'ZUNIFY#LIBRARY_READY',
|
|
5
|
+
ZD_LIBRARY_READY: 'ZUNIFY#ZD_LIBRARY_READY',
|
|
6
|
+
ITEM_ADD: 'ZUNIFY#ITEM_ADD',
|
|
7
|
+
ITEM_CHANGE: 'ZUNIFY#ITEM_CHANGE',
|
|
8
|
+
CUSTOM_ACTION: 'ZUNIFY#CUSTOM_ACTION',
|
|
9
|
+
LOAD_DATA: 'ZUNIFY#LOAD_DATA',
|
|
10
|
+
SEARCH: 'ZUNIFY#SEARCH',
|
|
11
|
+
DEPARTMENT_SWITCH: 'ZUNIFY#DEPARTMENT_SWITCH',
|
|
12
|
+
NAVIGATION_STATE_CHANGE: 'ZUNIFY#NAVIGATION_STATE_CHANGE',
|
|
13
|
+
ITEM_COLLAPSE: 'ZUNIFY#ITEM_COLLAPSE',
|
|
14
|
+
ITEM_EXPAND: 'ZUNIFY#ITEM_EXPAND'
|
|
15
|
+
};
|
|
16
|
+
export const ONE_UNIFICATION = {
|
|
17
|
+
SCRIPT_ID: 'zunify-script',
|
|
18
|
+
ELEMENTS: {
|
|
19
|
+
SIDE_PANE: 'unified-navigation-side-panel',
|
|
20
|
+
TOP_BAR: 'unified-navigation-top-bar',
|
|
21
|
+
DEPARTMENT_SWITCHER: 'department-switcher'
|
|
22
|
+
},
|
|
23
|
+
EVENTS
|
|
24
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export const MODULE_CHANGE = 'SMART_NAVIGATION#MODULE_CHANGE';
|
|
2
|
+
export const MODULE_ADD = 'SMART_NAVIGATION#MODULE_ADD';
|
|
3
|
+
export const LOAD_DATA = 'SMART_NAVIGATION#LOAD_DATA';
|
|
4
|
+
export const SEARCH = 'SMART_NAVIGATION#SEARCH';
|
|
5
|
+
export const NAVIGATION_PANEL_EXPANDED = 'SMART_NAVIGATION#PANEL_EXPANDED';
|
|
6
|
+
export const NAVIGATION_PANEL_COLLAPSED = 'SMART_NAVIGATION#PANEL_COLLAPSED';
|
|
7
|
+
export const CUSTOM_ACTION = 'SMART_NAVIGATION#CUSTOM_ACTION_TRIGGERED';
|
|
8
|
+
export const DEPARTMENT_SWITCH = 'SMART_NAVIGATION#DEPARTMENT_SWITCH';
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { MODULE_CHANGE, MODULE_ADD, LOAD_DATA, SEARCH, NAVIGATION_PANEL_EXPANDED, NAVIGATION_PANEL_COLLAPSED, CUSTOM_ACTION, DEPARTMENT_SWITCH } from "./Constants";
|
|
2
|
+
const Events = [{
|
|
3
|
+
type: MODULE_CHANGE,
|
|
4
|
+
payload: {
|
|
5
|
+
type: 'object',
|
|
6
|
+
properties: {
|
|
7
|
+
selectedModule: {
|
|
8
|
+
type: 'object',
|
|
9
|
+
additionalProperties: true
|
|
10
|
+
},
|
|
11
|
+
moduleParentApiNames: {
|
|
12
|
+
type: 'array',
|
|
13
|
+
items: {
|
|
14
|
+
type: 'string'
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}, {
|
|
20
|
+
type: MODULE_ADD,
|
|
21
|
+
payload: {
|
|
22
|
+
type: 'object',
|
|
23
|
+
properties: {
|
|
24
|
+
newLink: {
|
|
25
|
+
type: 'object',
|
|
26
|
+
additionalProperties: true
|
|
27
|
+
},
|
|
28
|
+
currentModule: {
|
|
29
|
+
type: 'object',
|
|
30
|
+
additionalProperties: true
|
|
31
|
+
},
|
|
32
|
+
moduleParentApiNames: {
|
|
33
|
+
type: 'array',
|
|
34
|
+
items: {
|
|
35
|
+
type: 'string'
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}, {
|
|
41
|
+
type: LOAD_DATA,
|
|
42
|
+
payload: {
|
|
43
|
+
type: 'object',
|
|
44
|
+
properties: {
|
|
45
|
+
module: {
|
|
46
|
+
type: 'object',
|
|
47
|
+
additionalProperties: true
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}, {
|
|
52
|
+
type: SEARCH,
|
|
53
|
+
payload: {
|
|
54
|
+
type: 'object',
|
|
55
|
+
properties: {
|
|
56
|
+
currentModule: {
|
|
57
|
+
type: 'object',
|
|
58
|
+
additionalProperties: true
|
|
59
|
+
},
|
|
60
|
+
searchValue: {
|
|
61
|
+
type: 'string'
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}, {
|
|
66
|
+
type: NAVIGATION_PANEL_EXPANDED,
|
|
67
|
+
payload: {
|
|
68
|
+
type: 'object'
|
|
69
|
+
}
|
|
70
|
+
}, {
|
|
71
|
+
type: NAVIGATION_PANEL_COLLAPSED,
|
|
72
|
+
payload: {
|
|
73
|
+
type: 'object'
|
|
74
|
+
}
|
|
75
|
+
}, {
|
|
76
|
+
type: CUSTOM_ACTION,
|
|
77
|
+
payload: {
|
|
78
|
+
type: 'object',
|
|
79
|
+
properties: {
|
|
80
|
+
actionName: {
|
|
81
|
+
type: 'string'
|
|
82
|
+
},
|
|
83
|
+
currentModule: {
|
|
84
|
+
type: 'object',
|
|
85
|
+
additionalProperties: true
|
|
86
|
+
},
|
|
87
|
+
moduleParentApiNames: {
|
|
88
|
+
type: 'array',
|
|
89
|
+
items: {
|
|
90
|
+
type: 'string'
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}, {
|
|
96
|
+
type: DEPARTMENT_SWITCH,
|
|
97
|
+
payload: {
|
|
98
|
+
type: 'object',
|
|
99
|
+
properties: {
|
|
100
|
+
currentDepartment: {
|
|
101
|
+
type: 'object',
|
|
102
|
+
additionalProperties: true
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}];
|
|
107
|
+
export default Events;
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
export const Properties = {
|
|
2
|
+
iconMap: {
|
|
3
|
+
required: false,
|
|
4
|
+
defaultValue: {},
|
|
5
|
+
typeMetadata: {
|
|
6
|
+
schema: {
|
|
7
|
+
type: 'object'
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
selectedModule: {
|
|
12
|
+
required: true,
|
|
13
|
+
typeMetadata: {
|
|
14
|
+
schema: {
|
|
15
|
+
type: 'string'
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
modules: {
|
|
20
|
+
required: true,
|
|
21
|
+
typeMetadata: {
|
|
22
|
+
schema: {
|
|
23
|
+
type: 'array',
|
|
24
|
+
items: {
|
|
25
|
+
type: 'object'
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
views: {
|
|
31
|
+
required: true,
|
|
32
|
+
typeMetadata: {
|
|
33
|
+
schema: {
|
|
34
|
+
type: 'array',
|
|
35
|
+
items: {
|
|
36
|
+
type: 'object'
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
departments: {
|
|
42
|
+
required: true,
|
|
43
|
+
typeMetadata: {
|
|
44
|
+
schema: {
|
|
45
|
+
type: 'array',
|
|
46
|
+
items: {
|
|
47
|
+
type: 'object'
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
clientActions: {
|
|
53
|
+
required: true,
|
|
54
|
+
typeMetadata: {
|
|
55
|
+
schema: {
|
|
56
|
+
type: 'array',
|
|
57
|
+
items: {
|
|
58
|
+
type: 'object'
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
overLayModules: {
|
|
64
|
+
required: false,
|
|
65
|
+
defaultValue: [],
|
|
66
|
+
typeMetadata: {
|
|
67
|
+
schema: {
|
|
68
|
+
type: 'array',
|
|
69
|
+
items: {
|
|
70
|
+
type: 'string'
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
onDemandModules: {
|
|
76
|
+
required: false,
|
|
77
|
+
defaultValue: [],
|
|
78
|
+
typeMetadata: {
|
|
79
|
+
schema: {
|
|
80
|
+
type: 'array',
|
|
81
|
+
items: {
|
|
82
|
+
type: 'string'
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
};
|
|
@@ -3,4 +3,5 @@ export const COLUMN_CHOOSER_CLOSE_REQUESTED = 'COLUMN_CHOOSER#CLOSE_REQUESTED';
|
|
|
3
3
|
export const COLUMN_CHOOSER_SELECT_REQUESTED = 'COLUMN_CHOOSER#SELECT_REQUESTED';
|
|
4
4
|
export const COLUMN_CHOOSER_REORDER_REQUESTED = 'COLUMN_CHOOSER#REORDER_REQUESTED';
|
|
5
5
|
export const COLUMN_CHOOSER_SEARCH_REQUESTED = 'COLUMN_CHOOSER#SEARCH_REQUESTED';
|
|
6
|
-
export const COLUMN_CHOOSER_SAVE_REQUESTED = 'COLUMN_CHOOSER#SAVE_REQUESTED';
|
|
6
|
+
export const COLUMN_CHOOSER_SAVE_REQUESTED = 'COLUMN_CHOOSER#SAVE_REQUESTED';
|
|
7
|
+
export const COLUMN_CHOOSER_SAVED = 'COLUMN_CHOOSER#SAVED';
|
|
@@ -184,5 +184,27 @@ export const SdkContracts = {
|
|
|
184
184
|
type: 'string'
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
|
+
},
|
|
188
|
+
updateSelectedFieldsInputMeta: {
|
|
189
|
+
type: 'object',
|
|
190
|
+
properties: {
|
|
191
|
+
selectedFields: {
|
|
192
|
+
type: 'array',
|
|
193
|
+
items: {
|
|
194
|
+
type: 'string'
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
required: ['selectedFields']
|
|
199
|
+
},
|
|
200
|
+
updateTextOverflowInputMeta: {
|
|
201
|
+
type: 'object',
|
|
202
|
+
properties: {
|
|
203
|
+
mode: {
|
|
204
|
+
type: 'string',
|
|
205
|
+
enum: ['clip', 'wrap']
|
|
206
|
+
}
|
|
207
|
+
},
|
|
208
|
+
required: ['mode']
|
|
187
209
|
}
|
|
188
210
|
};
|