@zohodesk/library-platform 1.1.6-temp-1 → 1.1.7
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/sdk/ResourceNamesEnum.js +1 -0
- package/es/bc/zform/Symbol.js +1 -0
- package/es/cc/breadcrumb/Constants.js +7 -0
- package/es/cc/breadcrumb/Events.js +14 -0
- package/es/cc/breadcrumb/Properties.js +35 -0
- package/es/cc/breadcrumb/index.js +3 -0
- package/es/cc/fields/index.js +2 -1
- package/es/cc/form-connected/SdkContract.js +159 -0
- package/es/cc/icon-button/Constants.js +7 -0
- package/es/cc/icon-button/Events.js +5 -0
- package/es/cc/icon-button/Properties.js +86 -0
- package/es/cc/icon-button/index.js +3 -0
- package/es/cc/section/Properties.js +9 -0
- package/es/cc/switch/Properties.js +2 -2
- package/es/library/dot/components/action-location/frameworks/ui/ActionComponentMapping.js +5 -1
- package/es/library/dot/components/form/adapters/presenter/TransformState.js +32 -2
- package/es/library/dot/components/form/frameworks/ui/sub-components/Sections.js +4 -2
- package/es/library/dot/components/section/frameworks/ui/SectionView.js +3 -5
- package/es/library/dot/components/table-list/frameworks/ui/css/TableList.module.css +72 -40
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/Header.js +1 -1
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/Row.js +2 -2
- package/es/library/dot/legacy-to-new-arch/breadcrumb/frameworks/ui/Breadcrumb.js +12 -0
- package/es/library/dot/legacy-to-new-arch/breadcrumb/frameworks/ui/BreadcrumbView.js +47 -0
- package/es/library/dot/legacy-to-new-arch/breadcrumb/frameworks/ui/css/Breadcrumb.module.css +19 -0
- package/es/library/dot/legacy-to-new-arch/breadcrumb/frameworks/ui/sub-components/BreadcrumbItem.js +58 -0
- package/es/library/dot/legacy-to-new-arch/icon-button/frameworks/ui/IconButton.js +12 -0
- package/es/library/dot/legacy-to-new-arch/icon-button/frameworks/ui/IconButtonView.js +43 -0
- package/es/library/dot/legacy-to-new-arch/switch/frameworks/ui/SwitchView.js +5 -5
- package/es/library/dot/legacy-to-new-arch/table-field-components/switch-field/frameworks/ui/SwitchFieldView.js +1 -0
- package/es/platform/client-actions/components/row-actions-renderer/frameworks/ui/RowActionsRenderer.module.css +4 -0
- package/es/platform/client-actions/components/row-actions-renderer/frameworks/ui/RowActionsRendererView.js +1 -1
- package/es/platform/components/form-connected/adapters/resources/SmartFormResources.js +210 -0
- package/es/platform/components/form-connected/application/interfaces/ISmartFormResources.js +1 -0
- package/es/platform/components/form-connected/frameworks/EventHandlersFactory.js +13 -6
- package/es/platform/components/form-connected/frameworks/FormConnectedFactory.js +27 -4
- package/es/platform/components/form-connected/frameworks/FormSdkFactory.js +33 -13
- package/es/platform/components/table-connected/adapters/resources/SmartTableResource.js +0 -52
- package/es/platform/sdk/application/interfaces/gateways/AbstractResource.js +52 -1
- package/es/platform/sdk/frameworks/Sdk.js +7 -0
- package/es/platform/zform/adapters/presenter/translators/SectionTranslator.js +13 -3
- package/es/platform/zform/applications/interfaces/input/DeleteFieldUseCaseInput.js +1 -0
- package/es/platform/zform/applications/interfaces/input/GetFieldValueUseCaseInput.js +1 -0
- package/es/platform/zform/applications/interfaces/input/HideFieldUseCaseInput.js +1 -0
- package/es/platform/zform/applications/interfaces/input/HideSectionUseCaseInput.js +1 -0
- package/es/platform/zform/applications/interfaces/input/InsertFieldUseCaseInput.js +1 -0
- package/es/platform/zform/applications/interfaces/input/SetFieldValueUseCaseInput.js +1 -0
- package/es/platform/zform/applications/interfaces/input/SetFieldsValuesUseCaseInput.js +1 -0
- package/es/platform/zform/applications/interfaces/input/ShowFieldUseCaseInput.js +1 -0
- package/es/platform/zform/applications/interfaces/input/ShowSectionUseCaseInput.js +1 -0
- package/es/platform/zform/applications/interfaces/input/SubmitUseCaseInput.js +1 -0
- package/es/platform/zform/applications/interfaces/input/UpdateFieldUseCaseInput.js +1 -0
- package/es/platform/zform/applications/usecases/DeleteFieldUseCase.js +22 -0
- package/es/platform/zform/applications/usecases/GetFieldValueUseCase.js +23 -0
- package/es/platform/zform/applications/usecases/HideFieldUseCase.js +19 -0
- package/es/platform/zform/applications/usecases/HideSectionUseCase.js +19 -0
- package/es/platform/zform/applications/usecases/InsertFieldUseCase.js +28 -0
- package/es/platform/zform/applications/usecases/SetFieldValueUseCase.js +44 -0
- package/es/platform/zform/applications/usecases/SetFieldsValuesUseCase.js +51 -0
- package/es/platform/zform/applications/usecases/ShowFieldUseCase.js +19 -0
- package/es/platform/zform/applications/usecases/ShowSectionUseCase.js +19 -0
- package/es/platform/zform/applications/usecases/SubmitUseCase.js +29 -0
- package/es/platform/zform/applications/usecases/UpdateFieldUseCase.js +22 -0
- package/es/platform/zform/domain/ZField.js +14 -0
- package/es/platform/zform/domain/ZForm.js +85 -3
- package/es/platform/zrecord/adapters/controllers/CreateRecordController.js +5 -1
- package/es/platform/zrecord/applications/usecases/CreateRecordUseCase.js +5 -3
- package/package.json +18 -19
|
@@ -1,45 +1,60 @@
|
|
|
1
1
|
/* Default: no special styles */
|
|
2
2
|
.tableListRow {
|
|
3
|
-
/* */
|
|
3
|
+
/* Variable:Ignore */
|
|
4
|
+
--local-tableList-row-paddingLeft: var(--zd_size24);
|
|
4
5
|
}
|
|
5
6
|
|
|
6
7
|
/* Keyboard + Reorder + Selection */
|
|
7
8
|
.tableListRow-kbdReorderSelection {
|
|
8
|
-
|
|
9
|
-
--local-tableList-selectionColumn-
|
|
10
|
-
|
|
9
|
+
/* Variable:Ignore */
|
|
10
|
+
--local-tableList-selectionColumn-width: var(--zd_size56);
|
|
11
|
+
/* Variable:Ignore */
|
|
12
|
+
--local-tableList-selectionColumn-left: var(--zd_size24);
|
|
13
|
+
/* Variable:Ignore */
|
|
14
|
+
--local-tableList-reorder-left: var(--zd_size8);
|
|
11
15
|
}
|
|
12
16
|
|
|
13
17
|
/* Keyboard + Reorder, no Selection */
|
|
14
18
|
.tableListRow-kbdReorder {
|
|
15
|
-
|
|
19
|
+
/* Variable:Ignore */
|
|
20
|
+
--local-tableList-reorder-left: var(--zd_size8);
|
|
16
21
|
}
|
|
17
22
|
|
|
18
23
|
/* Keyboard + Selection, no Reorder */
|
|
19
24
|
.tableListRow-kbdSelection {
|
|
20
|
-
|
|
21
|
-
--local-tableList-
|
|
22
|
-
|
|
23
|
-
--local-tableList-selectionColumn-
|
|
25
|
+
/* Variable:Ignore */
|
|
26
|
+
--local-tableList-row-paddingLeft: var(--zd_size8);
|
|
27
|
+
/* Variable:Ignore */
|
|
28
|
+
--local-tableList-selectionColumn-width: var(--zd_size72);
|
|
29
|
+
/* Variable:Ignore */
|
|
30
|
+
--local-tableList-selectionColumn-left: var(--zd_size8);
|
|
31
|
+
/* Variable:Ignore */
|
|
32
|
+
--local-tableList-selectionColumn-paddingRight: var(--zd_size8);
|
|
24
33
|
--local-tableList-selectionColumn-justifyContent: center;
|
|
25
34
|
}
|
|
26
35
|
|
|
27
36
|
/* Keyboard only */
|
|
28
37
|
.tableListRow-kbd {
|
|
29
|
-
/* */
|
|
38
|
+
/* Variable:Ignore */
|
|
39
|
+
--local-tableList-row-paddingLeft: var(--zd_size24);
|
|
30
40
|
}
|
|
31
41
|
|
|
32
42
|
/* Reorder + Selection, no Keyboard */
|
|
33
43
|
.tableListRow-reorderSelection {
|
|
34
|
-
|
|
35
|
-
--local-tableList-selectionColumn-
|
|
36
|
-
|
|
37
|
-
--local-tableList-
|
|
44
|
+
/* Variable:Ignore */
|
|
45
|
+
--local-tableList-selectionColumn-width: var(--zd_size56);
|
|
46
|
+
/* Variable:Ignore */
|
|
47
|
+
--local-tableList-selectionColumn-left: var(--zd_size24);
|
|
48
|
+
/* Variable:Ignore */
|
|
49
|
+
--local-tableList-selectionColumn-paddingRight: var(--zd_size16);
|
|
50
|
+
/* Variable:Ignore */
|
|
51
|
+
--local-tableList-reorder-paddingLeft: var(--zd_size8);
|
|
38
52
|
}
|
|
39
53
|
|
|
40
54
|
/* Reorder only */
|
|
41
55
|
.tableListRow-reorder {
|
|
42
|
-
|
|
56
|
+
/* Variable:Ignore */
|
|
57
|
+
--local-tableList-reorder-paddingLeft: var(--zd_size8);
|
|
43
58
|
}
|
|
44
59
|
|
|
45
60
|
/* Selection only */
|
|
@@ -49,52 +64,71 @@
|
|
|
49
64
|
|
|
50
65
|
/* Default: no special styles */
|
|
51
66
|
.tableListHeader {
|
|
52
|
-
/* */
|
|
67
|
+
/* Variable:Ignore */
|
|
68
|
+
--local-tableList-header-paddingLeft: var(--zd_size24);
|
|
53
69
|
}
|
|
54
70
|
|
|
55
71
|
/* Keyboard + Reorder + Selection */
|
|
56
72
|
.tableListHeader-kbdReorderSelection {
|
|
57
|
-
|
|
58
|
-
--local-tableList-
|
|
59
|
-
|
|
60
|
-
--local-tableList-
|
|
73
|
+
/* Variable:Ignore */
|
|
74
|
+
--local-tableList-reorderHeader-paddingRight: var(--zd_size8);
|
|
75
|
+
/* Variable:Ignore */
|
|
76
|
+
--local-tableList-massActionHeader-left: var(--zd_size24);
|
|
77
|
+
/* Variable:Ignore */
|
|
78
|
+
--local-tableList-reorderHeader-left: var(--zd_size8);
|
|
79
|
+
/* Variable:Ignore */
|
|
80
|
+
--local-tableList-reorderHeader-width: var(--zd_size16);
|
|
61
81
|
|
|
62
|
-
|
|
63
|
-
--local-tableList-massActionHeader-paddingRight:
|
|
64
|
-
|
|
82
|
+
/* Variable:Ignore */
|
|
83
|
+
--local-tableList-massActionHeader-paddingRight: var(--zd_size24);
|
|
84
|
+
/* Variable:Ignore */
|
|
85
|
+
--local-tableList-massActionHeader-width: var(--zd_size56);
|
|
65
86
|
}
|
|
66
87
|
|
|
67
88
|
/* Keyboard + Reorder, no Selection */
|
|
68
89
|
.tableListHeader-kbdReorder {
|
|
69
|
-
|
|
70
|
-
--local-tableList-reorderHeader-
|
|
71
|
-
|
|
90
|
+
/* Variable:Ignore */
|
|
91
|
+
--local-tableList-reorderHeader-left: var(--zd_size8);
|
|
92
|
+
/* Variable:Ignore */
|
|
93
|
+
--local-tableList-reorderHeader-paddingRight: var(--zd_size8);
|
|
94
|
+
/* Variable:Ignore */
|
|
95
|
+
--local-tableList-reorderHeader-width: var(--zd_size16);
|
|
72
96
|
}
|
|
73
97
|
|
|
74
98
|
/* Reorder only */
|
|
75
99
|
.tableListHeader-reorder {
|
|
76
|
-
|
|
100
|
+
/* Variable:Ignore */
|
|
101
|
+
--local-tableList-reorderHeader-width: var(--zd_size24);
|
|
77
102
|
}
|
|
78
103
|
|
|
79
104
|
/* Keyboard + Selection, no Reorder */
|
|
80
105
|
.tableListHeader-kbdSelection {
|
|
81
|
-
|
|
82
|
-
--local-tableList-
|
|
83
|
-
|
|
84
|
-
--local-tableList-massActionHeader-
|
|
106
|
+
/* Variable:Ignore */
|
|
107
|
+
--local-tableList-header-paddingLeft: var(--zd_size8);
|
|
108
|
+
/* Variable:Ignore */
|
|
109
|
+
--local-tableList-massActionHeader-left: var(--zd_size8);
|
|
110
|
+
/* Variable:Ignore */
|
|
111
|
+
--local-tableList-massActionHeader-paddingRight: var(--zd_size8);
|
|
112
|
+
/* Variable:Ignore */
|
|
113
|
+
--local-tableList-massActionHeader-width: var(--zd_size72);
|
|
85
114
|
}
|
|
86
115
|
|
|
87
116
|
/* Keyboard only */
|
|
88
117
|
.tableListHeader-kbd {
|
|
89
|
-
|
|
118
|
+
/* Variable:Ignore */
|
|
119
|
+
--local-tableList-header-paddingLeft: var(--zd_size24);
|
|
90
120
|
}
|
|
91
121
|
|
|
92
122
|
/* Reorder + Selection, no Keyboard */
|
|
93
123
|
.tableListHeader-reorderSelection {
|
|
94
|
-
|
|
95
|
-
--local-tableList-
|
|
96
|
-
|
|
97
|
-
--local-tableList-massActionHeader-
|
|
124
|
+
/* Variable:Ignore */
|
|
125
|
+
--local-tableList-reorderHeader-width: var(--zd_size24);
|
|
126
|
+
/* Variable:Ignore */
|
|
127
|
+
--local-tableList-massActionHeader-left: var(--zd_size24);
|
|
128
|
+
/* Variable:Ignore */
|
|
129
|
+
--local-tableList-massActionHeader-paddingRight: var(--zd_size24);
|
|
130
|
+
/* Variable:Ignore */
|
|
131
|
+
--local-tableList-massActionHeader-width: var(--zd_size56);
|
|
98
132
|
}
|
|
99
133
|
|
|
100
134
|
/* Selection only */
|
|
@@ -206,12 +240,12 @@
|
|
|
206
240
|
|
|
207
241
|
[dir=ltr] .dragHandleWrapper {
|
|
208
242
|
left: var(--local-tableList-reorder-left, 0);
|
|
209
|
-
padding: 0
|
|
243
|
+
padding: 0 0 0 var(--local-tableList-reorder-paddingLeft, 0);
|
|
210
244
|
}
|
|
211
245
|
|
|
212
246
|
[dir=rtl] .dragHandleWrapper {
|
|
213
247
|
right: var(--local-tableList-reorder-left, 0);
|
|
214
|
-
padding: 0 var(--local-tableList-reorder-paddingLeft, 0) 0
|
|
248
|
+
padding: 0 var(--local-tableList-reorder-paddingLeft, 0) 0 0;
|
|
215
249
|
}
|
|
216
250
|
|
|
217
251
|
.rowDropIndicator {
|
|
@@ -242,13 +276,11 @@
|
|
|
242
276
|
|
|
243
277
|
[dir=ltr] .tableListSelectContainer {
|
|
244
278
|
left: var(--local-tableList-selectionColumn-left, 0);
|
|
245
|
-
padding-left: var(--local-tableList-selectionColumn-paddingLeft, 0);
|
|
246
279
|
padding-right: var(--local-tableList-selectionColumn-paddingRight, 0);
|
|
247
280
|
}
|
|
248
281
|
|
|
249
282
|
[dir=rtl] .tableListSelectContainer {
|
|
250
283
|
right: var(--local-tableList-selectionColumn-left, 0);
|
|
251
|
-
padding-right: var(--local-tableList-selectionColumn-paddingLeft, 0);
|
|
252
284
|
padding-left: var(--local-tableList-selectionColumn-paddingRight, 0);
|
|
253
285
|
}
|
|
254
286
|
|
|
@@ -38,7 +38,7 @@ function Header(_ref) {
|
|
|
38
38
|
});
|
|
39
39
|
return /*#__PURE__*/React.createElement(TableHeader, {
|
|
40
40
|
$flag_isColumnsFlexible: isFlexibleColumns,
|
|
41
|
-
$flag_padding:
|
|
41
|
+
$flag_padding: false,
|
|
42
42
|
$flag_hasHighlighter: isKeyboardControlsEnabled,
|
|
43
43
|
customStyle: {
|
|
44
44
|
tableHeader: `${style.header} ${style[headerClasses]}`
|
|
@@ -49,7 +49,7 @@ function RowView(_ref, ref) {
|
|
|
49
49
|
key: id,
|
|
50
50
|
ref: ref,
|
|
51
51
|
testId: id,
|
|
52
|
-
$flag_padding:
|
|
52
|
+
$flag_padding: false,
|
|
53
53
|
$flag_active: isSelected,
|
|
54
54
|
$flag_hasHighlighter: isKeyboardControlsEnabled,
|
|
55
55
|
$flag_isHighlighted: isFocussed,
|
|
@@ -60,7 +60,7 @@ function RowView(_ref, ref) {
|
|
|
60
60
|
}
|
|
61
61
|
}),
|
|
62
62
|
customStyle: {
|
|
63
|
-
tableList:
|
|
63
|
+
tableList: style.row,
|
|
64
64
|
$pointer: style[`rowCursor_${cursor}`]
|
|
65
65
|
}
|
|
66
66
|
}, renderReorderer({
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { createCustomComponent } from "../../../../../custom-component";
|
|
2
|
+
import BreadcrumbProperties from "../../../../../../cc/breadcrumb/Properties";
|
|
3
|
+
import BreadcrumbEvents from "../../../../../../cc/breadcrumb/Events";
|
|
4
|
+
import BreadcrumbView from "./BreadcrumbView";
|
|
5
|
+
let Breadcrumb = createCustomComponent({
|
|
6
|
+
name: "Breadcrumb",
|
|
7
|
+
View: BreadcrumbView,
|
|
8
|
+
properties: BreadcrumbProperties,
|
|
9
|
+
events: BreadcrumbEvents,
|
|
10
|
+
eventHandlers: {}
|
|
11
|
+
});
|
|
12
|
+
export default Breadcrumb;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import Separator from "@zohodesk/dot/es/Separator/Separator";
|
|
3
|
+
import BreadcrumbItem from "./sub-components/BreadcrumbItem"; // @ts-ignore
|
|
4
|
+
|
|
5
|
+
import style from "./css/Breadcrumb.module.css";
|
|
6
|
+
|
|
7
|
+
function BreadcrumbView(_ref, ref) {
|
|
8
|
+
let {
|
|
9
|
+
state,
|
|
10
|
+
helpers
|
|
11
|
+
} = _ref;
|
|
12
|
+
const {
|
|
13
|
+
dispatch
|
|
14
|
+
} = helpers;
|
|
15
|
+
const {
|
|
16
|
+
items
|
|
17
|
+
} = state.properties;
|
|
18
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
19
|
+
ref: ref,
|
|
20
|
+
className: style.wrapper
|
|
21
|
+
}, /*#__PURE__*/React.createElement(Separator, {
|
|
22
|
+
type: "slash",
|
|
23
|
+
shrink: true,
|
|
24
|
+
customClass: {
|
|
25
|
+
customSeparator: style.separator
|
|
26
|
+
}
|
|
27
|
+
}, items.map(_ref2 => {
|
|
28
|
+
let {
|
|
29
|
+
id,
|
|
30
|
+
text,
|
|
31
|
+
isLink,
|
|
32
|
+
iconName,
|
|
33
|
+
isActive
|
|
34
|
+
} = _ref2;
|
|
35
|
+
return /*#__PURE__*/React.createElement(BreadcrumbItem, {
|
|
36
|
+
key: id,
|
|
37
|
+
id: id,
|
|
38
|
+
text: text,
|
|
39
|
+
isLink: isLink,
|
|
40
|
+
iconName: iconName,
|
|
41
|
+
isActive: isActive,
|
|
42
|
+
dispatch: dispatch
|
|
43
|
+
});
|
|
44
|
+
})));
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export default BreadcrumbView;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
.wrapper, .itemContainer {
|
|
2
|
+
max-width: 100%
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.itemContainer {
|
|
6
|
+
column-gap: var(--zd_size4) ;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.separator {
|
|
10
|
+
--separator_fontSize: 14px;
|
|
11
|
+
margin: 0 var(--zd_size10) ;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.buttonStyle {
|
|
15
|
+
--button_font_size: 14px;
|
|
16
|
+
--button_padding: 0px;
|
|
17
|
+
--button_letter_spacing: 0px;
|
|
18
|
+
max-width: 100% ;
|
|
19
|
+
}
|
package/es/library/dot/legacy-to-new-arch/breadcrumb/frameworks/ui/sub-components/BreadcrumbItem.js
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import Icon from "@zohodesk/icons/es/Icon";
|
|
3
|
+
import Flex from "@zohodesk/layout/es/Flex/Flex";
|
|
4
|
+
import Typography from "@zohodesk/components/es/Typography/Typography";
|
|
5
|
+
import Button from "@zohodesk/components/es/Button/Button";
|
|
6
|
+
import BreadcrumbConstants from "../../../../../../../cc/breadcrumb/Constants"; // @ts-ignore
|
|
7
|
+
|
|
8
|
+
import style from "./../css/Breadcrumb.module.css";
|
|
9
|
+
|
|
10
|
+
function BreadcrumbItem(_ref) {
|
|
11
|
+
let {
|
|
12
|
+
id,
|
|
13
|
+
text,
|
|
14
|
+
isLink,
|
|
15
|
+
iconName,
|
|
16
|
+
iconSize = '14',
|
|
17
|
+
isActive,
|
|
18
|
+
dispatch
|
|
19
|
+
} = _ref;
|
|
20
|
+
|
|
21
|
+
const renderTitle = (text, isLink, isActive) => {
|
|
22
|
+
return isLink ? /*#__PURE__*/React.createElement(Button, {
|
|
23
|
+
text: text,
|
|
24
|
+
title: text,
|
|
25
|
+
palette: 'plainPrimary',
|
|
26
|
+
isBold: false,
|
|
27
|
+
customClass: {
|
|
28
|
+
customButton: style.buttonStyle
|
|
29
|
+
}
|
|
30
|
+
}) : /*#__PURE__*/React.createElement(Typography, {
|
|
31
|
+
$ui_size: isActive ? '16' : '14',
|
|
32
|
+
$ui_weight: isActive ? 'semibold' : 'regular',
|
|
33
|
+
$flag_dotted: true,
|
|
34
|
+
$i18n_dataTitle: text,
|
|
35
|
+
$ui_tagName: 'span'
|
|
36
|
+
}, text);
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
const renderIcon = (iconName, iconSize) => /*#__PURE__*/React.createElement(Icon, {
|
|
40
|
+
name: iconName,
|
|
41
|
+
size: iconSize
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
return /*#__PURE__*/React.createElement(Flex, {
|
|
45
|
+
key: id,
|
|
46
|
+
$ui_displayMode: "inline",
|
|
47
|
+
$ui_alignItems: "center",
|
|
48
|
+
$ui_className: style.itemContainer,
|
|
49
|
+
$event_onClick: () => dispatch({
|
|
50
|
+
type: BreadcrumbConstants.BREADCRUMB_ITEM_CLICKED,
|
|
51
|
+
payload: {
|
|
52
|
+
id
|
|
53
|
+
}
|
|
54
|
+
})
|
|
55
|
+
}, !isLink && iconName && renderIcon(iconName, iconSize), renderTitle(text, isLink, isActive));
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export default BreadcrumbItem;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { createCustomComponent } from "../../../../../custom-component";
|
|
2
|
+
import IconButtonProperties from "../../../../../../cc/icon-button/Properties";
|
|
3
|
+
import IconButtonEvents from "../../../../../../cc/icon-button/Events";
|
|
4
|
+
import IconButtonView from "./IconButtonView";
|
|
5
|
+
let IconButton = createCustomComponent({
|
|
6
|
+
name: "IconButton",
|
|
7
|
+
View: IconButtonView,
|
|
8
|
+
properties: IconButtonProperties,
|
|
9
|
+
events: IconButtonEvents,
|
|
10
|
+
eventHandlers: {}
|
|
11
|
+
});
|
|
12
|
+
export default IconButton;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import IconButton from '@zohodesk/dot/es/IconButton/IconButton';
|
|
3
|
+
import IconButtonConstants from "../../../../../../cc/icon-button/Constants";
|
|
4
|
+
|
|
5
|
+
function IconButtonView(_ref, ref) {
|
|
6
|
+
let {
|
|
7
|
+
state,
|
|
8
|
+
helpers
|
|
9
|
+
} = _ref;
|
|
10
|
+
const {
|
|
11
|
+
dispatch
|
|
12
|
+
} = helpers;
|
|
13
|
+
const {
|
|
14
|
+
palette,
|
|
15
|
+
iconSize,
|
|
16
|
+
size,
|
|
17
|
+
iconName,
|
|
18
|
+
isActive,
|
|
19
|
+
isDisabled,
|
|
20
|
+
hoverType,
|
|
21
|
+
title,
|
|
22
|
+
isBold
|
|
23
|
+
} = state.properties;
|
|
24
|
+
return /*#__PURE__*/React.createElement(IconButton, {
|
|
25
|
+
eleRef: ref,
|
|
26
|
+
palette: palette,
|
|
27
|
+
iconSize: iconSize,
|
|
28
|
+
size: size,
|
|
29
|
+
iconName: iconName,
|
|
30
|
+
isActive: isActive,
|
|
31
|
+
isDisabled: isDisabled,
|
|
32
|
+
hoverType: hoverType,
|
|
33
|
+
title: title,
|
|
34
|
+
isBold: isBold,
|
|
35
|
+
onClick: () => {
|
|
36
|
+
dispatch({
|
|
37
|
+
type: IconButtonConstants.ICON_BUTTON_CLICKED
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export default IconButtonView;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import Switch from '@zohodesk
|
|
2
|
+
import Switch from '@zohodesk/components/es/Switch/Switch';
|
|
3
3
|
import { useUniqueId } from '@zohodesk/components/es/Provider/IdProvider';
|
|
4
4
|
import { SwitchConstants } from "../../../../../../cc";
|
|
5
5
|
|
|
@@ -21,14 +21,14 @@ function SwitchView(_ref, ref) {
|
|
|
21
21
|
let id = getId();
|
|
22
22
|
return /*#__PURE__*/React.createElement(Switch, {
|
|
23
23
|
customProps: {
|
|
24
|
-
|
|
25
|
-
ref
|
|
24
|
+
SwitchProps: {
|
|
25
|
+
eleRef: ref
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
id: id,
|
|
29
29
|
size: size,
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
checked: checked,
|
|
31
|
+
disabled: disabled,
|
|
32
32
|
title: tooltip,
|
|
33
33
|
onChange: () => {
|
|
34
34
|
dispatch({
|
|
@@ -17,7 +17,7 @@ function RowActionsRendererView(_ref, ref) {
|
|
|
17
17
|
ref: ref,
|
|
18
18
|
$ui_displayMode: "inline",
|
|
19
19
|
$ui_alignItems: "center",
|
|
20
|
-
$ui_className: `${gap !== ActionViewGap.NONE ? style[`gap_${gap}`] : ''}`
|
|
20
|
+
$ui_className: `${style.wrapper} ${gap !== ActionViewGap.NONE ? style[`gap_${gap}`] : ''}`
|
|
21
21
|
}, actions.map((action, index) => {
|
|
22
22
|
return /*#__PURE__*/React.createElement(DynamicActionComponent, {
|
|
23
23
|
action: action,
|