@zohodesk/library-platform 1.1.6 → 1.1.7-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 (97) hide show
  1. package/es/bc/sdk/ResourceNamesEnum.js +1 -0
  2. package/es/bc/zform/Properties.js +3 -26
  3. package/es/bc/zform/Symbol.js +2 -0
  4. package/es/cc/breadcrumb/Constants.js +7 -0
  5. package/es/cc/breadcrumb/Events.js +14 -0
  6. package/es/cc/breadcrumb/Properties.js +35 -0
  7. package/es/cc/breadcrumb/index.js +3 -0
  8. package/es/cc/fields/field/FormDefaultUIType.js +37 -0
  9. package/es/cc/fields/index.js +2 -1
  10. package/es/cc/form/Properties.js +54 -0
  11. package/es/cc/form-connected/Constants.js +8 -0
  12. package/es/cc/form-connected/Properties.js +95 -1
  13. package/es/cc/form-connected/SdkContract.js +159 -0
  14. package/es/cc/icon-button/Constants.js +7 -0
  15. package/es/cc/icon-button/Events.js +5 -0
  16. package/es/cc/icon-button/Properties.js +86 -0
  17. package/es/cc/icon-button/index.js +3 -0
  18. package/es/cc/index.js +1 -0
  19. package/es/cc/section/Properties.js +25 -0
  20. package/es/index.js +6 -1
  21. package/es/library/custom-component/adapters/gateways/event-manager/EventManager.js +2 -2
  22. package/es/library/dot/components/action-location/frameworks/ui/ActionComponentMapping.js +5 -1
  23. package/es/library/dot/components/form/adapters/presenter/TransformState.js +70 -3
  24. package/es/library/dot/components/form/frameworks/ui/DefaultComponentRegister.js +28 -0
  25. package/es/library/dot/components/form/frameworks/ui/Form.js +2 -0
  26. package/es/library/dot/components/form/frameworks/ui/FormView.js +47 -26
  27. package/es/library/dot/components/form/frameworks/ui/css/Form.module.css +8 -4
  28. package/es/library/dot/components/form/frameworks/ui/sub-components/Sections.js +9 -9
  29. package/es/library/dot/components/section/frameworks/ui/RenderField.js +19 -0
  30. package/es/library/dot/components/section/frameworks/ui/Section.js +13 -4
  31. package/es/library/dot/components/section/frameworks/ui/SectionView.js +7 -28
  32. package/es/library/dot/components/table-list/frameworks/ui/css/TableList.module.css +72 -40
  33. package/es/library/dot/components/table-list/frameworks/ui/sub-components/Header.js +7 -13
  34. package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/Row.js +2 -2
  35. package/es/library/dot/legacy-to-new-arch/breadcrumb/frameworks/ui/Breadcrumb.js +12 -0
  36. package/es/library/dot/legacy-to-new-arch/breadcrumb/frameworks/ui/BreadcrumbView.js +47 -0
  37. package/es/library/dot/legacy-to-new-arch/breadcrumb/frameworks/ui/css/Breadcrumb.module.css +19 -0
  38. package/es/library/dot/legacy-to-new-arch/breadcrumb/frameworks/ui/sub-components/BreadcrumbItem.js +58 -0
  39. package/es/library/dot/legacy-to-new-arch/icon-button/frameworks/ui/IconButton.js +12 -0
  40. package/es/library/dot/legacy-to-new-arch/icon-button/frameworks/ui/IconButtonView.js +43 -0
  41. package/es/platform/client-actions/cc/action-event-mediator/Properties.js +9 -0
  42. package/es/platform/client-actions/components/action-event-mediator/frameworks/ui/ActionEventMediatorView.js +3 -1
  43. package/es/platform/client-actions/components/row-actions-renderer/frameworks/ui/RowActionsRenderer.module.css +4 -0
  44. package/es/platform/client-actions/components/row-actions-renderer/frameworks/ui/RowActionsRendererView.js +5 -2
  45. package/es/platform/components/form-connected/adapters/resources/SmartFormResources.js +210 -0
  46. package/es/platform/components/form-connected/application/interfaces/ISmartFormResources.js +1 -0
  47. package/es/platform/components/form-connected/frameworks/EventHandlersFactory.js +16 -8
  48. package/es/platform/components/form-connected/frameworks/FormConnectedFactory.js +27 -3
  49. package/es/platform/components/form-connected/frameworks/FormConnectedView.js +14 -2
  50. package/es/platform/components/form-connected/frameworks/FormSdkFactory.js +33 -13
  51. package/es/platform/components/table-connected/adapters/resources/SmartTableResource.js +0 -52
  52. package/es/platform/components/table-connected/frameworks/EventHandlersFactory.js +4 -1
  53. package/es/platform/page/index.js +46 -0
  54. package/es/platform/sdk/adapters/gateways/Service.js +4 -0
  55. package/es/platform/sdk/application/interfaces/gateways/AbstractResource.js +52 -1
  56. package/es/platform/sdk/application/usecases/GetResourcesUseCase.js +15 -0
  57. package/es/platform/sdk/domain/entities/ResourceManager.js +4 -0
  58. package/es/platform/sdk/frameworks/Sdk.js +7 -0
  59. package/es/platform/sdk/frameworks/SdkRegistry.js +9 -0
  60. package/es/platform/zform/adapters/presenter/FormTranslator.js +90 -46
  61. package/es/platform/zform/adapters/presenter/translators/SectionTranslator.js +45 -26
  62. package/es/platform/zform/adapters/presenter/translators/interfaces/ComponentMapping.js +1 -0
  63. package/es/platform/zform/adapters/presenter/translators/interfaces/FieldContract.js +1 -0
  64. package/es/platform/zform/adapters/presenter/translators/interfaces/FormTranslatorState.js +1 -0
  65. package/es/platform/zform/adapters/presenter/translators/interfaces/SectionContract.js +1 -0
  66. package/es/platform/zform/adapters/presenter/utils/DefaultClientActions.js +59 -0
  67. package/es/platform/zform/applications/interfaces/input/DeleteFieldUseCaseInput.js +1 -0
  68. package/es/platform/zform/applications/interfaces/input/GetFieldValueUseCaseInput.js +1 -0
  69. package/es/platform/zform/applications/interfaces/input/HideFieldUseCaseInput.js +1 -0
  70. package/es/platform/zform/applications/interfaces/input/HideSectionUseCaseInput.js +1 -0
  71. package/es/platform/zform/applications/interfaces/input/InsertFieldUseCaseInput.js +1 -0
  72. package/es/platform/zform/applications/interfaces/input/SetFieldValueUseCaseInput.js +1 -0
  73. package/es/platform/zform/applications/interfaces/input/SetFieldsValuesUseCaseInput.js +1 -0
  74. package/es/platform/zform/applications/interfaces/input/ShowFieldUseCaseInput.js +1 -0
  75. package/es/platform/zform/applications/interfaces/input/ShowSectionUseCaseInput.js +1 -0
  76. package/es/platform/zform/applications/interfaces/input/SubmitUseCaseInput.js +1 -0
  77. package/es/platform/zform/applications/interfaces/input/UpdateFieldUseCaseInput.js +1 -0
  78. package/es/platform/zform/applications/usecases/DeleteFieldUseCase.js +22 -0
  79. package/es/platform/zform/applications/usecases/GetFieldValueUseCase.js +23 -0
  80. package/es/platform/zform/applications/usecases/HideFieldUseCase.js +19 -0
  81. package/es/platform/zform/applications/usecases/HideSectionUseCase.js +19 -0
  82. package/es/platform/zform/applications/usecases/InitializeUseCase.js +16 -0
  83. package/es/platform/zform/applications/usecases/InsertFieldUseCase.js +28 -0
  84. package/es/platform/zform/applications/usecases/SetFieldValueUseCase.js +44 -0
  85. package/es/platform/zform/applications/usecases/SetFieldsValuesUseCase.js +51 -0
  86. package/es/platform/zform/applications/usecases/ShowFieldUseCase.js +19 -0
  87. package/es/platform/zform/applications/usecases/ShowSectionUseCase.js +19 -0
  88. package/es/platform/zform/applications/usecases/SubmitUseCase.js +29 -0
  89. package/es/platform/zform/applications/usecases/UpdateFieldUseCase.js +22 -0
  90. package/es/platform/zform/domain/ZField.js +14 -0
  91. package/es/platform/zform/domain/ZForm.js +85 -3
  92. package/es/platform/zform/domain/ZSection.js +6 -0
  93. package/es/platform/zform/frameworks/ui/EventHandlerFactory.js +37 -15
  94. package/es/platform/zrecord/adapters/controllers/CreateRecordController.js +5 -1
  95. package/es/platform/zrecord/applications/usecases/CreateRecordUseCase.js +5 -3
  96. package/package.json +7 -6
  97. package/es/library/dot/components/section/adapters/presenter/TransFormState.js +0 -26
@@ -11,14 +11,16 @@ class CreateRecordUseCase extends AbstractUseCase {
11
11
  const {
12
12
  record,
13
13
  dispatch,
14
- moduleName
14
+ moduleName,
15
+ context
15
16
  } = input;
16
17
  const recordManager = repository.getRecordsManagerEntity();
17
18
  const recordEntity = RecordFactory.createSingleRecord(record);
18
19
  let meta = recordManager.createRecordMeta(recordEntity);
19
- dispatch(recordManager.createDataBrokerExecuteEvent({
20
+ dispatch(recordManager.createDataSourceExecuteEvent({
20
21
  record: recordEntity.toObject(),
21
- moduleName
22
+ moduleName,
23
+ ...context
22
24
  }, RecordApiActionName.CREATE_RECORD, meta));
23
25
  presenter.updateRecord(recordManager.toObject());
24
26
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohodesk/library-platform",
3
- "version": "1.1.6",
3
+ "version": "1.1.7-exp.1",
4
4
  "description": "",
5
5
  "main": "es/index.js",
6
6
  "files": [
@@ -16,9 +16,10 @@
16
16
  "cssVariableConvert": "react-cli variableConverter ./es ./es",
17
17
  "clean": "react-cli clean ./es",
18
18
  "build": "npm run clean && react-cli build:library:es",
19
+ "build:css": "npm run build && npm run rtl && npm run cssVariableConvert",
19
20
  "build:watch": "npm run clean && npm run build -- -w",
20
21
  "test": "jest",
21
- "prepare": "npm run clean && npm run build && npm run rtl && npm run cssVariableConvert",
22
+ "prepare": "npm run clean && npm run build:css",
22
23
  "publish:alpha": "npm publish --tag alpha",
23
24
  "publish:beta": "npm publish --tag beta",
24
25
  "publish:exp": "npm publish --tag experimental",
@@ -43,7 +44,7 @@
43
44
  "@types/react": "18.2.55",
44
45
  "@typescript-eslint/parser": "^7.11.0",
45
46
  "@zoho/SecurityJS": "5.0.2",
46
- "@zohodesk-private/css-variable-migrator": "^1.0.7",
47
+ "@zohodesk-private/css-variable-migrator": "^1.0.8",
47
48
  "@zohodesk-private/desk-components": "1.0.0-temp-53.3",
48
49
  "@zohodesk-private/node-plugins": "1.1.9",
49
50
  "@zohodesk/a11y": "2.2.6",
@@ -51,8 +52,8 @@
51
52
  "@zohodesk/codestandard-validator": "0.0.4",
52
53
  "@zohodesk/components": "1.2.62",
53
54
  "@zohodesk/dot": "1.7.8",
54
- "@zohodesk/eslint-plugin-architecturerules": "0.0.5-exp-3",
55
- "@zohodesk/eslint-plugin-no-hardcoding": "1.0.6",
55
+ "@zohodesk/eslint-plugin-architecturerules": "0.0.6-exp-4",
56
+ "@zohodesk/eslint-plugin-no-hardcoding": "1.0.6-platform-1",
56
57
  "@zohodesk/hooks": "2.0.5",
57
58
  "@zohodesk/icons": "1.0.72",
58
59
  "@zohodesk/layout": "3.1.0",
@@ -96,4 +97,4 @@
96
97
  "jsep": "0.3.5",
97
98
  "object-path-immutable": "4.1.2"
98
99
  }
99
- }
100
+ }
@@ -1,26 +0,0 @@
1
- /* eslint-disable @zohodesk/architecturerules/return-void */
2
- export default function TransFormState(state) {
3
- const {
4
- fields
5
- } = state.properties;
6
-
7
- if (Array.isArray(fields) === false) {
8
- return state;
9
- }
10
-
11
- const slotContract = fields.filter(field => field.isVisible).map(field => {
12
- const {
13
- type,
14
- ...properties
15
- } = field;
16
- return {
17
- type,
18
- properties
19
- };
20
- });
21
- return { ...state,
22
- properties: { ...state.properties,
23
- fields: slotContract
24
- }
25
- };
26
- }