@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.
Files changed (165) hide show
  1. package/es/bc/column-chooser/EventHandlers.js +1 -2
  2. package/es/bc/sdk/ResourceNamesEnum.js +1 -0
  3. package/es/bc/zform/Properties.js +20 -0
  4. package/es/bc/zform/Symbol.js +3 -0
  5. package/es/bc/zrecord/Constants.js +2 -0
  6. package/es/cc/action-band/Properties.js +37 -0
  7. package/es/cc/action-band/constants/ExternalConstants.js +3 -1
  8. package/es/cc/component/Dispatch.js +1 -0
  9. package/es/cc/component/LifeCycleEventsEnum.js +1 -0
  10. package/es/cc/component/index.js +3 -0
  11. package/es/cc/fields/currency/Properties.js +9 -0
  12. package/es/cc/fields/decimal/Properties.js +9 -0
  13. package/es/cc/fields/email/Properties.js +9 -0
  14. package/es/cc/fields/lookup/Properties.js +10 -26
  15. package/es/cc/fields/multi-line/Properties.js +1 -0
  16. package/es/cc/fields/number/Properties.js +10 -1
  17. package/es/cc/fields/phone/Properties.js +9 -0
  18. package/es/cc/fields/text/Properties.js +2 -2
  19. package/es/cc/fields/url/Properties.js +9 -0
  20. package/es/cc/one-unification/Constants.js +24 -0
  21. package/es/cc/one-unification/unified-navigation/ActionTypes.js +1 -0
  22. package/es/cc/one-unification/unified-navigation/CommonTypes.js +1 -0
  23. package/es/cc/one-unification/unified-navigation/ConfigTypes.js +1 -0
  24. package/es/cc/one-unification/unified-navigation/HandlerTypes.js +1 -0
  25. package/es/cc/one-unification/unified-navigation/Types.js +1 -0
  26. package/es/cc/one-unification/unified-navigation/UnifiedNavigation.d.js +0 -0
  27. package/es/cc/one-unification/unified-navigation/index.js +1 -0
  28. package/es/cc/smart-navigation/Constants.js +8 -0
  29. package/es/cc/smart-navigation/Events.js +107 -0
  30. package/es/cc/smart-navigation/Properties.js +87 -0
  31. package/es/cc/smart-navigation/index.js +4 -0
  32. package/es/cc/table-column-chooser/Constants.js +2 -1
  33. package/es/cc/table-connected/SdkContract.js +22 -0
  34. package/es/cc/text/Properties.js +100 -0
  35. package/es/cc/textbox/Properties.js +1 -1
  36. package/es/index.js +8 -3
  37. package/es/library/behaviours/clip-wrap/applications/usecases/ClipWrapUpdateUseCase.js +19 -0
  38. package/es/library/behaviours/library-loader/adapters/controllers/LibraryLoaderController.js +17 -0
  39. package/es/library/behaviours/library-loader/adapters/gateways/LibraryLoaderAdapter.js +29 -0
  40. package/es/library/behaviours/library-loader/applications/usecases/LoadLibraryUseCase.js +42 -0
  41. package/es/library/behaviours/library-loader/domain/entities/interfaces/ILibraryLoader.js +1 -0
  42. package/es/library/behaviours/library-loader/frameworks/LibraryLoaderBehaviour.js +26 -0
  43. package/es/library/behaviours/search/adapters/controllers/UpdatePropertiesController.js +9 -4
  44. package/es/library/custom-component/adapters/gateways/event-manager/EventManager.js +4 -3
  45. package/es/library/custom-component/applications/usecases/DispatchUseCase.js +1 -0
  46. package/es/library/custom-component/applications/usecases/InitializeUseCase.js +1 -0
  47. package/es/library/custom-component/applications/usecases/MountUseCase.js +1 -0
  48. package/es/library/custom-component/applications/usecases/SetRefUseCase.js +7 -0
  49. package/es/library/custom-component/applications/usecases/UnmountUseCase.js +1 -0
  50. package/es/library/custom-component/applications/usecases/UpdatePropertyUseCase.js +1 -0
  51. package/es/library/custom-component/domain/entities/Component.js +1 -0
  52. package/es/library/custom-component/domain/entities/Logger.js +4 -9
  53. package/es/library/dot/components/form-fields/currency/frameworks/ui/CurrencyView.js +2 -0
  54. package/es/library/dot/components/form-fields/decimal/frameworks/ui/DecimalView.js +2 -0
  55. package/es/library/dot/components/form-fields/email/frameworks/ui/Email.js +1 -1
  56. package/es/library/dot/components/form-fields/email/frameworks/ui/EmailView.js +2 -0
  57. package/es/library/dot/components/form-fields/number/frameworks/ui/NumberView.js +2 -0
  58. package/es/library/dot/components/form-fields/phone/frameworks/ui/PhoneView.js +2 -0
  59. package/es/library/dot/components/form-fields/textarea/frameworks/ui/TextArea.js +1 -1
  60. package/es/library/dot/components/form-fields/textarea/frameworks/ui/TextAreaView.js +4 -2
  61. package/es/library/dot/components/form-fields/textbox/frameworks/ui/TextBoxView.js +2 -0
  62. package/es/library/dot/components/form-fields/url/frameworks/ui/UrlView.js +2 -0
  63. package/es/library/dot/components/table-list/frameworks/ui/sub-components/header/HeaderData.js +1 -1
  64. package/es/library/dot/legacy-to-new-arch/table-field-components/text-field/frameworks/ui/TextFieldView.js +20 -0
  65. package/es/library/dot/legacy-to-new-arch/text/frameworks/ui/Text.js +2 -2
  66. package/es/library/dot/legacy-to-new-arch/text/frameworks/ui/TextView.js +22 -1
  67. package/es/platform/app-context-behaviour/adapters/controllers/AbstractController.js +9 -0
  68. package/es/platform/app-context-behaviour/adapters/controllers/UpdatePropertiesController.js +32 -0
  69. package/es/platform/app-context-behaviour/adapters/gateway/Repository.js +22 -0
  70. package/es/platform/app-context-behaviour/adapters/gateway/Service.js +10 -0
  71. package/es/platform/app-context-behaviour/adapters/presenter/Presenter.js +16 -0
  72. package/es/platform/app-context-behaviour/applications/interfaces/UseCaseDependencies.js +1 -0
  73. package/es/platform/app-context-behaviour/applications/interfaces/gateways/IRepository.js +1 -0
  74. package/es/platform/app-context-behaviour/applications/interfaces/gateways/IService.js +1 -0
  75. package/es/platform/app-context-behaviour/applications/interfaces/input/UpdatePropertiesInputModel.js +1 -0
  76. package/es/platform/app-context-behaviour/applications/interfaces/output/BehaviourOutputModel.js +1 -0
  77. package/es/platform/app-context-behaviour/applications/interfaces/output/IPresenter.js +1 -0
  78. package/es/platform/app-context-behaviour/applications/usecases/AbstractUseCase.js +17 -0
  79. package/es/platform/app-context-behaviour/applications/usecases/UpdatePropertiesUsecase.js +25 -0
  80. package/es/platform/app-context-behaviour/domain/entities/AppContext.js +44 -0
  81. package/es/platform/app-context-behaviour/domain/entities/interfaces/IAppContext.js +1 -0
  82. package/es/platform/app-context-behaviour/frameworks/AppContextBehaviourFactory.js +2 -2
  83. package/es/platform/app-context-behaviour/frameworks/EventHandlerFactory.js +22 -0
  84. package/es/platform/client-actions/behaviour/zclient-actions/adapters/presenters/FilterUtils.js +11 -0
  85. package/es/platform/client-actions/behaviour/zclient-actions/adapters/resources/ClientActionsFetchSDK.js +76 -0
  86. package/es/platform/client-actions/behaviour/zclient-actions/applications/interfaces/ClientActionsAPIGatewayParams.js +1 -0
  87. package/es/platform/client-actions/behaviour/zclient-actions/applications/interfaces/ClientActionsFetchSDKParams.js +10 -0
  88. package/es/platform/client-actions/behaviour/zclient-actions/applications/interfaces/IClientActionsFetchSDK.js +0 -0
  89. package/es/platform/client-scripts/behaviour/zclient-scripts-fetch/adapters/resources/ClientScriptsFetchSDK.js +43 -0
  90. package/es/platform/client-scripts/behaviour/zclient-scripts-fetch/applications/interfaces/ClientScriptsAPIGatewayParams.js +1 -0
  91. package/es/platform/client-scripts/behaviour/zclient-scripts-fetch/applications/interfaces/ClientScriptsSDKFetchParams.js +1 -0
  92. package/es/platform/client-scripts/behaviour/zclient-scripts-fetch/applications/interfaces/IClientScriptsFetchSDK.js +0 -0
  93. package/es/platform/column-chooser/adapters/controllers/ColumnChooserOpenController.js +14 -6
  94. package/es/platform/column-chooser/adapters/controllers/ColumnChooserUpdateController.js +22 -0
  95. package/es/platform/column-chooser/adapters/gateways/Repository.js +12 -1
  96. package/es/platform/column-chooser/adapters/gateways/Service.js +2 -0
  97. package/es/platform/column-chooser/applications/interfaces/input/ColumnChooserUpdateInput.js +1 -0
  98. package/es/platform/column-chooser/applications/usecases/ColumnChooserSaveUseCase.js +8 -1
  99. package/es/platform/column-chooser/applications/usecases/ColumnChooserUpdateUseCase.js +35 -0
  100. package/es/platform/column-chooser/domain/entities/ColumnChooserImp.js +6 -0
  101. package/es/platform/column-chooser/frameworks/EventHandlersFactory.js +6 -4
  102. package/es/platform/components/index.js +1 -0
  103. package/es/platform/components/smart-action-band/adapters/presenters/ActionBandTranslator.js +70 -8
  104. package/es/platform/components/smart-action-band/adapters/presenters/utils/DefaultClientActions.js +32 -0
  105. package/es/platform/components/smart-action-band/frameworks/EventHandlersFactory.js +42 -1
  106. package/es/platform/components/smart-action-band/frameworks/SmartActionBandFactory.js +4 -1
  107. package/es/platform/components/smart-navigation/adapters/controllers/LoadScriptController.js +0 -0
  108. package/es/platform/components/smart-navigation/adapters/controllers/UiModelInitializeController.js +0 -0
  109. package/es/platform/components/smart-navigation/adapters/presenters/OneUnifiedNavigationTranslator.js +248 -0
  110. package/es/platform/components/smart-navigation/adapters/presenters/Present.js +77 -0
  111. package/es/platform/components/smart-navigation/adapters/presenters/SampleModel.js +356 -0
  112. package/es/platform/components/smart-navigation/adapters/resources/SmartNavigationResource.js +96 -0
  113. package/es/platform/components/smart-navigation/applications/usecases/NavigateModuleUseCase.js +0 -0
  114. package/es/platform/components/smart-navigation/frameworks/CustomElementRenderer.js +22 -0
  115. package/es/platform/components/smart-navigation/frameworks/SmartNavigation.js +12 -0
  116. package/es/platform/components/smart-navigation/frameworks/one-unification/OneUnificationEventHandlers.js +156 -0
  117. package/es/platform/components/smart-navigation/frameworks/one-unification/SmartNavigation.js +83 -0
  118. package/es/platform/components/smart-navigation/frameworks/one-unification/SmartNavigation.module.css +3 -0
  119. package/es/platform/components/smart-navigation/frameworks/one-unification/SmartNavigationEventHandlers.js +173 -0
  120. package/es/platform/components/smart-navigation/frameworks/one-unification/UnifiedNavigation.js +48 -0
  121. package/es/platform/components/smart-navigation/frameworks/one-unification/UnifiedNavigationActions.js +144 -0
  122. package/es/platform/components/table-connected/adapters/resources/SmartTableResource.js +52 -0
  123. package/es/platform/components/table-connected/frameworks/EventHandlersFactory.js +1 -7
  124. package/es/platform/components/table-connected/frameworks/ListSdkFactory.js +4 -2
  125. package/es/platform/data-source/http-template/fetchLookupFields.js +0 -6
  126. package/es/platform/data-source/http-template/getPageClientActions.js +23 -0
  127. package/es/platform/data-source/http-template/getSingleRecord.js +51 -0
  128. package/es/platform/data-source/index.js +2 -0
  129. package/es/platform/data-source/utils/validation-rules/FieldConditions.js +1 -1
  130. package/es/platform/sdk-behaviour/adapters/controllers/InitializeController.js +7 -2
  131. package/es/platform/sdk-behaviour/applications/usecases/CreateResourceInstanceUseCase.js +10 -1
  132. package/es/platform/zform/adapters/controllers/GetInitialRecordSuccessController.js +31 -0
  133. package/es/platform/zform/adapters/gateway/FormRepository.js +10 -2
  134. package/es/platform/zform/adapters/gateway/Service.js +2 -0
  135. package/es/platform/zform/adapters/presenter/FormTranslator.js +27 -15
  136. package/es/platform/zform/adapters/presenter/translators/SectionTranslator.js +1 -1
  137. package/es/platform/zform/adapters/presenter/translators/fields/CurrencyFieldTranslator.js +1 -0
  138. package/es/platform/zform/adapters/presenter/translators/fields/DecimalFieldTranslator.js +1 -0
  139. package/es/platform/zform/adapters/presenter/translators/fields/EmailFieldTranslator.js +1 -0
  140. package/es/platform/zform/adapters/presenter/translators/fields/LookUpFieldTranslator.js +11 -7
  141. package/es/platform/zform/adapters/presenter/translators/fields/NumberFieldTranslator.js +1 -0
  142. package/es/platform/zform/adapters/presenter/translators/fields/PhoneFieldTranslator.js +1 -0
  143. package/es/platform/zform/adapters/presenter/translators/fields/TextAreaFieldTranslator.js +1 -0
  144. package/es/platform/zform/adapters/presenter/translators/fields/TextFieldTranslator.js +1 -0
  145. package/es/platform/zform/adapters/presenter/translators/fields/URLFieldTranslator.js +1 -0
  146. package/es/platform/zform/adapters/presenter/utils/sanitizeHtmlString.js +2 -2
  147. package/es/platform/zform/applications/interfaces/input/GetInitialRecordSuccessUseCaseInputModel.js +1 -0
  148. package/es/platform/zform/applications/usecases/GetInitialRecordSuccessUseCase.js +132 -0
  149. package/es/platform/zform/applications/usecases/InitializeUseCase.js +54 -30
  150. package/es/platform/zform/applications/usecases/LookupFieldSuccessUseCase.js +5 -0
  151. package/es/platform/zform/applications/usecases/MyFormSuccessUseCase.js +12 -11
  152. package/es/platform/zform/applications/usecases/SubmitValidationCompletedUseCase.js +21 -8
  153. package/es/platform/zform/domain/ZField.js +7 -5
  154. package/es/platform/zform/domain/ZForm.js +97 -20
  155. package/es/platform/zform/frameworks/ui/EventHandlerFactory.js +23 -5
  156. package/es/platform/zform/frameworks/ui/ZFormBehaviourFactory.js +2 -0
  157. package/es/platform/zlist/adapters/presenters/TableTranslator.js +5 -4
  158. package/es/platform/zrecord/adapters/controllers/UpdateRecordController.js +30 -0
  159. package/es/platform/zrecord/adapters/gateways/Service.js +2 -0
  160. package/es/platform/zrecord/applications/interfaces/input/UpdateRecordInputModel.js +0 -0
  161. package/es/platform/zrecord/applications/usecases/UpdateRecordUseCase.js +30 -0
  162. package/es/platform/zrecord/frameworks/ActionsHandlersFactory.js +4 -1
  163. package/package.json +9 -11
  164. package/es/platform/components/table-connected/adapters/controllers/ColumnChooserOpenedController.js +0 -28
  165. package/es/platform/components/table-connected/adapters/controllers/ColumnChooserUpdateController.js +0 -31
@@ -1,2 +1 @@
1
- import { COLUMN_CHOOSER_BEHAVIOUR_OPENED } from "./Constants";
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,
@@ -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;
@@ -0,0 +1,3 @@
1
+ export { default as EventHandlers } from "./EventHandlers";
2
+ export { Behaviours } from "./Behaviour";
3
+ export { Dispatch } from "./Dispatch";
@@ -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
  currencySymbol: {
22
31
  required: false,
23
32
  typeMetadata: {
@@ -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,
@@ -9,6 +9,15 @@ export default { ...FieldProperties,
9
9
  }
10
10
  }
11
11
  },
12
+ maxLength: {
13
+ required: false,
14
+ // defaultValue: 255,
15
+ typeMetadata: {
16
+ schema: {
17
+ type: 'number'
18
+ }
19
+ }
20
+ },
12
21
  placeholder: {
13
22
  required: false,
14
23
  defaultValue: '',
@@ -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: true,
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
- // Accepts either object or string
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
  }
@@ -26,6 +26,7 @@ export default { ...FieldProperties,
26
26
  },
27
27
  maxLength: {
28
28
  required: false,
29
+ // defaultValue: 5000,
29
30
  typeMetadata: {
30
31
  schema: {
31
32
  type: 'number'
@@ -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,
@@ -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'
@@ -10,6 +10,15 @@ export default { ...FieldProperties,
10
10
  }
11
11
  }
12
12
  },
13
+ maxLength: {
14
+ required: false,
15
+ // defaultValue: 2083,
16
+ typeMetadata: {
17
+ schema: {
18
+ type: 'number'
19
+ }
20
+ }
21
+ },
13
22
  placeholder: {
14
23
  required: false,
15
24
  defaultValue: '',
@@ -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,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
+ };
@@ -0,0 +1,4 @@
1
+ export { Properties as SmartNavigationProperties } from "./Properties";
2
+ export * from "./Properties";
3
+ import * as _SmartNavigationConstants from "./Constants";
4
+ export { _SmartNavigationConstants as SmartNavigationConstants };
@@ -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
  };