@zohodesk/library-platform 1.2.0-exp.1 → 1.2.0-exp.3

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 (42) hide show
  1. package/es/.DS_Store +0 -0
  2. package/es/bc/sdk/ResourceNamesEnum.js +0 -1
  3. package/es/index.js +1 -1
  4. package/es/platform/.DS_Store +0 -0
  5. package/es/platform/components/index.js +0 -1
  6. package/es/platform/zlist/adapters/presenters/translators/fields/DateFieldTranslator.js +7 -3
  7. package/es/platform/zlist/adapters/presenters/translators/fields/DateTimeFieldTranslator.js +7 -3
  8. package/package.json +2 -3
  9. package/es/cc/component/Dispatch.js +0 -1
  10. package/es/cc/component/index.js +0 -3
  11. package/es/cc/one-unification/Constants.js +0 -24
  12. package/es/cc/one-unification/unified-navigation/ActionTypes.js +0 -1
  13. package/es/cc/one-unification/unified-navigation/CommonTypes.js +0 -1
  14. package/es/cc/one-unification/unified-navigation/ConfigTypes.js +0 -1
  15. package/es/cc/one-unification/unified-navigation/HandlerTypes.js +0 -1
  16. package/es/cc/one-unification/unified-navigation/Types.js +0 -1
  17. package/es/cc/one-unification/unified-navigation/UnifiedNavigation.d.js +0 -0
  18. package/es/cc/one-unification/unified-navigation/index.js +0 -1
  19. package/es/cc/smart-navigation/Constants.js +0 -8
  20. package/es/cc/smart-navigation/Events.js +0 -107
  21. package/es/cc/smart-navigation/Properties.js +0 -87
  22. package/es/cc/smart-navigation/index.js +0 -4
  23. package/es/library/behaviours/library-loader/adapters/controllers/LibraryLoaderController.js +0 -17
  24. package/es/library/behaviours/library-loader/adapters/gateways/LibraryLoaderAdapter.js +0 -29
  25. package/es/library/behaviours/library-loader/applications/usecases/LoadLibraryUseCase.js +0 -42
  26. package/es/library/behaviours/library-loader/domain/entities/interfaces/ILibraryLoader.js +0 -1
  27. package/es/library/behaviours/library-loader/frameworks/LibraryLoaderBehaviour.js +0 -26
  28. package/es/platform/components/smart-navigation/adapters/controllers/LoadScriptController.js +0 -0
  29. package/es/platform/components/smart-navigation/adapters/controllers/UiModelInitializeController.js +0 -0
  30. package/es/platform/components/smart-navigation/adapters/presenters/OneUnifiedNavigationTranslator.js +0 -248
  31. package/es/platform/components/smart-navigation/adapters/presenters/Present.js +0 -77
  32. package/es/platform/components/smart-navigation/adapters/presenters/SampleModel.js +0 -356
  33. package/es/platform/components/smart-navigation/adapters/resources/SmartNavigationResource.js +0 -96
  34. package/es/platform/components/smart-navigation/applications/usecases/NavigateModuleUseCase.js +0 -0
  35. package/es/platform/components/smart-navigation/frameworks/CustomElementRenderer.js +0 -22
  36. package/es/platform/components/smart-navigation/frameworks/SmartNavigation.js +0 -12
  37. package/es/platform/components/smart-navigation/frameworks/one-unification/OneUnificationEventHandlers.js +0 -156
  38. package/es/platform/components/smart-navigation/frameworks/one-unification/SmartNavigation.js +0 -83
  39. package/es/platform/components/smart-navigation/frameworks/one-unification/SmartNavigation.module.css +0 -3
  40. package/es/platform/components/smart-navigation/frameworks/one-unification/SmartNavigationEventHandlers.js +0 -173
  41. package/es/platform/components/smart-navigation/frameworks/one-unification/UnifiedNavigation.js +0 -48
  42. package/es/platform/components/smart-navigation/frameworks/one-unification/UnifiedNavigationActions.js +0 -144
@@ -1,144 +0,0 @@
1
- import { ONE_UNIFICATION } from "../../../../../cc/one-unification/Constants";
2
- /* Unified Navigation Actions Handler Types */
3
-
4
- export class UnifiedNavigationActions {
5
- static handle(actionMethod, data, dispatch) {
6
- const actionHandlers = {
7
- handleUIReady: this.handleUIReady,
8
- handleUIChange: this.handleUIChange,
9
- clickModule: this.clickModule,
10
- rightClickModule: this.rightClickModule,
11
- handleReorder: this.handleReorder,
12
- pinModule: this.pinModule,
13
- favouriteModule: this.favouriteModule,
14
- activateFilterOnModule: this.activateFilterOnModule,
15
- hideModule: this.hideModule,
16
- loadData: this.loadData,
17
- handleSearch: this.handleSearch,
18
- handleSwitcherAction: this.handleSwitcherAction,
19
- handlePrimaryAction: this.handlePrimaryAction,
20
- updateNavigationState: this.updateNavigationState
21
- };
22
- const handler = actionHandlers[actionMethod];
23
-
24
- if (handler) {
25
- handler.call(this, data, dispatch);
26
- }
27
- }
28
-
29
- static handleUIReady(_data, _dispatch) {}
30
-
31
- static handleUIChange(_data, _dispatch) {}
32
-
33
- static clickModule(data, dispatch) {
34
- const {
35
- action: actionName,
36
- ...restData
37
- } = data;
38
-
39
- if (!actionName) {
40
- dispatch({
41
- type: ONE_UNIFICATION.EVENTS.ITEM_CHANGE,
42
- payload: restData
43
- });
44
- return;
45
- }
46
-
47
- switch (actionName) {
48
- case 'add':
49
- dispatch({
50
- type: ONE_UNIFICATION.EVENTS.ITEM_ADD,
51
- payload: restData
52
- });
53
- break;
54
-
55
- case 'accordion-collapse':
56
- dispatch({
57
- type: ONE_UNIFICATION.EVENTS.ITEM_COLLAPSE,
58
- payload: restData
59
- });
60
- break;
61
-
62
- case 'accordion-expand':
63
- dispatch({
64
- type: ONE_UNIFICATION.EVENTS.ITEM_EXPAND,
65
- payload: restData
66
- });
67
- break;
68
-
69
- default:
70
- dispatch({
71
- type: ONE_UNIFICATION.EVENTS.CUSTOM_ACTION,
72
- payload: data
73
- });
74
- }
75
- }
76
-
77
- static rightClickModule(_data, _dispatch) {}
78
-
79
- static handleReorder(_data, _dispatch) {}
80
-
81
- static pinModule(_data, _dispatch) {}
82
-
83
- static favouriteModule(_data, _dispatch) {}
84
-
85
- static activateFilterOnModule(_data, _dispatch) {}
86
-
87
- static hideModule(_data, _dispatch) {}
88
-
89
- static loadData(data, dispatch) {
90
- dispatch({
91
- type: ONE_UNIFICATION.EVENTS.LOAD_DATA,
92
- payload: {
93
- data
94
- }
95
- });
96
- }
97
-
98
- static handleSearch(data, dispatch) {
99
- const {
100
- action,
101
- key,
102
- query
103
- } = data;
104
- dispatch({
105
- type: ONE_UNIFICATION.EVENTS.SEARCH,
106
- payload: {
107
- key,
108
- query
109
- }
110
- });
111
- }
112
-
113
- static handleSwitcherAction(data, dispatch) {
114
- const {
115
- action: actionName,
116
- switcherKey,
117
- optionKey
118
- } = data;
119
-
120
- if (actionName === 'switcher-select' && switcherKey === ONE_UNIFICATION.ELEMENTS.DEPARTMENT_SWITCHER) {
121
- dispatch({
122
- type: ONE_UNIFICATION.EVENTS.DEPARTMENT_SWITCH,
123
- payload: {
124
- id: optionKey
125
- }
126
- });
127
- }
128
- }
129
-
130
- static handlePrimaryAction(_data, _dispatch) {}
131
-
132
- static updateNavigationState(data, dispatch) {
133
- const {
134
- isInCollapsedState
135
- } = data;
136
- dispatch({
137
- type: ONE_UNIFICATION.EVENTS.NAVIGATION_STATE_CHANGE,
138
- payload: {
139
- isInCollapsedState
140
- }
141
- });
142
- }
143
-
144
- }