@zohodesk/library-platform 1.1.3-exp.2 → 1.1.3-temp-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 (43) hide show
  1. package/es/cc/table-list/Properties.js +9 -0
  2. package/es/cc/table-list/row/Properties.js +9 -0
  3. package/es/index.js +2 -1
  4. package/es/library/dot/components/table-list/frameworks/hooks/useTableRowReorder.js +17 -5
  5. package/es/library/dot/components/table-list/frameworks/ui/TableListView.js +35 -26
  6. package/es/library/dot/components/table-list/frameworks/ui/css/TableList.module.css +153 -56
  7. package/es/library/dot/components/table-list/frameworks/ui/sub-components/Header.js +22 -16
  8. package/es/library/dot/components/table-list/frameworks/ui/sub-components/Rows.js +7 -4
  9. package/es/library/dot/components/table-list/frameworks/ui/sub-components/header/MassAction.js +5 -13
  10. package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/Row.js +31 -34
  11. package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/RowSelection.js +3 -8
  12. package/es/library/dot/components/table-list/frameworks/utils/getHeaderClasses.js +37 -0
  13. package/es/library/dot/components/table-list/frameworks/utils/getTableListClassName.js +37 -0
  14. package/es/library/dot/components/table-list/frameworks/utils/reOrder.js +28 -14
  15. package/es/library/dot/legacy-to-new-arch/text-area/frameworks/ui/TextAreaView.js +1 -1
  16. package/es/platform/client-actions/components/action-event-mediator/frameworks/ui/ClientActionsAdapter.js +96 -0
  17. package/es/platform/client-actions/components/action-event-mediator/frameworks/ui/EventHandlersFactory.js +11 -3
  18. package/es/platform/client-actions/template-resolver/index.js +1 -0
  19. package/es/platform/client-actions/translators/context-resolver/index.js +6 -6
  20. package/es/platform/components/table-connected/frameworks/TableConnectedView.js +2 -0
  21. package/es/platform/zform/adapters/presenter/FormTranslator.js +6 -127
  22. package/es/platform/zform/adapters/presenter/translators/SectionTranslator.js +32 -0
  23. package/es/platform/zform/adapters/presenter/translators/fields/BooleanFieldTranslator.js +20 -0
  24. package/es/platform/zform/adapters/presenter/translators/fields/CurrencyFieldTranslator.js +30 -0
  25. package/es/platform/zform/adapters/presenter/translators/fields/DateFieldTranslator.js +21 -0
  26. package/es/platform/zform/adapters/presenter/translators/fields/DateTimeFieldTranslator.js +21 -0
  27. package/es/platform/zform/adapters/presenter/translators/fields/DecimalFieldTranslator.js +30 -0
  28. package/es/platform/zform/adapters/presenter/translators/fields/EmailFieldTranslator.js +30 -0
  29. package/es/platform/zform/adapters/presenter/translators/fields/LookUpFieldTranslator.js +30 -0
  30. package/es/platform/zform/adapters/presenter/translators/fields/MultiselectFieldTranslator.js +29 -0
  31. package/es/platform/zform/adapters/presenter/translators/fields/NumberFieldTranslator.js +30 -0
  32. package/es/platform/zform/adapters/presenter/translators/fields/PercentageFieldTranslator.js +30 -0
  33. package/es/platform/zform/adapters/presenter/translators/fields/PhoneFieldTranslator.js +30 -0
  34. package/es/platform/zform/adapters/presenter/translators/fields/PicklistFieldTranslator.js +29 -0
  35. package/es/platform/zform/adapters/presenter/translators/fields/TextAreaFieldTranslator.js +30 -0
  36. package/es/platform/zform/adapters/presenter/translators/fields/TextFieldTranslator.js +27 -0
  37. package/es/platform/zform/adapters/presenter/translators/fields/URLFieldTranslator.js +30 -0
  38. package/es/platform/zform/adapters/presenter/translators/fields/index.js +15 -0
  39. package/es/platform/zform/applications/usecases/MyFormSuccessUseCase.js +3 -1
  40. package/es/platform/zform/domain/ZField.js +66 -17
  41. package/es/platform/zform/domain/ZSection.js +20 -7
  42. package/es/platform/zlist/adapters/presenters/TableTranslator.js +3 -3
  43. package/package.json +3 -3
@@ -1,14 +1,18 @@
1
1
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2
2
 
3
3
  export default class ZSection {
4
+ // Optional field for description
5
+ // private visibility:boolean;
4
6
  constructor(_ref) {
5
7
  let {
6
8
  name,
7
9
  i18NLabel,
8
10
  isCustomSection,
11
+ description,
9
12
  id,
10
13
  fields,
11
- visibility
14
+ // visibility
15
+ isVisible
12
16
  } = _ref;
13
17
 
14
18
  _defineProperty(this, "name", void 0);
@@ -17,18 +21,23 @@ export default class ZSection {
17
21
 
18
22
  _defineProperty(this, "isCustomSection", void 0);
19
23
 
24
+ _defineProperty(this, "description", void 0);
25
+
20
26
  _defineProperty(this, "id", void 0);
21
27
 
22
28
  _defineProperty(this, "fields", void 0);
23
29
 
24
- _defineProperty(this, "visibility", void 0);
30
+ _defineProperty(this, "isVisible", void 0);
25
31
 
26
32
  this.name = name;
27
33
  this.i18NLabel = i18NLabel;
28
34
  this.isCustomSection = isCustomSection;
35
+ this.description = description || ''; // Default to empty string if not provided
36
+
29
37
  this.id = id;
30
- this.fields = fields;
31
- this.visibility = visibility;
38
+ this.fields = fields; // this.visibility=visibility;
39
+
40
+ this.isVisible = isVisible;
32
41
  }
33
42
 
34
43
  getName() {
@@ -40,7 +49,8 @@ export default class ZSection {
40
49
  }
41
50
 
42
51
  toggleVisibility() {
43
- this.visibility = !this.visibility;
52
+ // this.visibility=!this.visibility
53
+ this.isVisible = !this.isVisible;
44
54
  }
45
55
 
46
56
  appendField(field) {
@@ -74,7 +84,8 @@ export default class ZSection {
74
84
  }
75
85
 
76
86
  setVisibility(visibility) {
77
- this.visibility = visibility;
87
+ // this.visibility=visibility;
88
+ this.isVisible = visibility;
78
89
  }
79
90
 
80
91
  setFieldErrorMessage(fieldApiName, errorMessage) {
@@ -102,11 +113,13 @@ export default class ZSection {
102
113
  name: this.name,
103
114
  i18NLabel: this.i18NLabel,
104
115
  isCustomSection: this.isCustomSection,
116
+ description: this.description,
105
117
  id: this.id,
106
118
  fields: this.fields.map(field => {
107
119
  return field.toObject();
108
120
  }),
109
- visibility: this.visibility
121
+ // visibility:this.visibility
122
+ isVisible: this.isVisible
110
123
  };
111
124
  }
112
125
 
@@ -47,10 +47,10 @@ export default class TableTranslator {
47
47
  zfield,
48
48
  zclientAction
49
49
  } = fallbackToDefault(behaviours, {}); // FIX: behaviours should be available by default
50
- // const { sortBy, isReOrderLoading } = fallbackToDefault(zlist, {}); // FIX: zlist should be available by default
51
50
 
52
51
  const {
53
- sortBy
52
+ sortBy,
53
+ isReOrderLoading
54
54
  } = fallbackToDefault(zlist, {}); // FIX: zlist should be available by default
55
55
 
56
56
  const {
@@ -123,7 +123,7 @@ export default class TableTranslator {
123
123
  },
124
124
  keyboardControlsConfig,
125
125
  isLoading,
126
- // isReOrderLoading,
126
+ isReOrderLoading,
127
127
  emptyStateUiType: componentMapping.emptyState || '',
128
128
  data: fields.length ? data : {
129
129
  headers: EMPTY_ARRAY,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohodesk/library-platform",
3
- "version": "1.1.3-exp.2",
3
+ "version": "1.1.3-temp-1",
4
4
  "description": "",
5
5
  "main": "es/index.js",
6
6
  "files": [
@@ -44,7 +44,7 @@
44
44
  "@typescript-eslint/parser": "^7.11.0",
45
45
  "@zoho/SecurityJS": "5.0.2",
46
46
  "@zohodesk-private/css-variable-migrator": "^1.0.7",
47
- "@zohodesk-private/desk-components": "1.0.0-temp-53",
47
+ "@zohodesk-private/desk-components": "1.0.0-temp-53.3",
48
48
  "@zohodesk-private/node-plugins": "1.1.9",
49
49
  "@zohodesk/a11y": "2.2.6",
50
50
  "@zohodesk/codestandard-analytics": "0.0.2",
@@ -76,7 +76,7 @@
76
76
  "typescript": "4.9.5"
77
77
  },
78
78
  "peerDependencies": {
79
- "@zohodesk-private/desk-components": "1.0.0-temp-53",
79
+ "@zohodesk-private/desk-components": "1.0.0-temp-53.3",
80
80
  "@zohodesk/a11y": "2.2.6",
81
81
  "@zohodesk/components": "1.2.62",
82
82
  "@zohodesk/dot": "1.7.8",