@zohodesk/library-platform 1.1.11 → 1.1.12-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.
- package/es/cc/checkbox/Properties.js +2 -1
- package/es/cc/email/Properties.js +8 -0
- package/es/cc/fields/field/Types.js +31 -23
- package/es/cc/highlighted-value/Properties.js +18 -0
- package/es/cc/link/Properties.js +13 -3
- package/es/cc/radio-dropdown/Constants.js +6 -0
- package/es/cc/radio-dropdown/Data.js +1 -0
- package/es/cc/radio-dropdown/Events.js +42 -0
- package/es/cc/radio-dropdown/Properties.js +142 -0
- package/es/cc/radio-dropdown/index.js +4 -0
- package/es/cc/switch/Properties.js +2 -2
- package/es/cc/table-column-filter/Properties.js +9 -0
- package/es/cc/table-list/Properties.js +1 -35
- package/es/cc/tag/Constants.js +6 -0
- package/es/cc/tag/Data.js +14 -0
- package/es/cc/tag/EventHandlers.js +1 -0
- package/es/cc/tag/Events.js +26 -0
- package/es/cc/{tags/model/TagModel.js → tag/Model.js} +6 -2
- package/es/cc/tag/Properties.js +104 -0
- package/es/cc/tag/index.js +6 -0
- package/es/cc/tags/Data.js +0 -6
- package/es/cc/tags/model/index.js +1 -1
- package/es/cc/tags-list-dropdown/Constants.js +5 -0
- package/es/cc/tags-list-dropdown/Data.js +1 -0
- package/es/cc/tags-list-dropdown/Events.js +14 -0
- package/es/cc/tags-list-dropdown/Properties.js +96 -0
- package/es/cc/tags-list-dropdown/index.js +4 -0
- package/es/library/dot/components/form/frameworks/ui/css/Form.module.css +13 -13
- package/es/library/dot/components/form-fields/field/css/FieldItem.module.css +2 -2
- package/es/library/dot/components/section/frameworks/ui/css/Section.module.css +3 -3
- package/es/library/dot/components/table-list/frameworks/ui/css/TableList.module.css +21 -21
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/Row.js +3 -1
- package/es/library/dot/legacy-to-new-arch/breadcrumb/frameworks/ui/css/Breadcrumb.module.css +4 -4
- package/es/library/dot/legacy-to-new-arch/date/frameworks/ui/css/DateView.module.css +1 -1
- package/es/library/dot/legacy-to-new-arch/email/frameworks/ui/EmailView.js +4 -2
- package/es/library/dot/legacy-to-new-arch/highlighted-value/frameworks/ui/HighlightedValueView.js +6 -1
- package/es/library/dot/legacy-to-new-arch/index.js +1 -0
- package/es/library/dot/legacy-to-new-arch/label/frameworks/ui/css/Label.module.css +4 -4
- package/es/library/dot/legacy-to-new-arch/link/frameworks/ui/LinkView.js +4 -2
- package/es/library/dot/legacy-to-new-arch/multi-select/frameworks/ui/css/MultiSelectView.module.css +7 -7
- package/es/library/dot/legacy-to-new-arch/radio-dropdown/frameworks/ui/RadioDropdown.js +12 -0
- package/es/library/dot/legacy-to-new-arch/radio-dropdown/frameworks/ui/RadioDropdownView.js +124 -0
- package/es/library/dot/legacy-to-new-arch/radio-dropdown/frameworks/ui/css/RadioDropdown.module.css +23 -0
- package/es/library/dot/legacy-to-new-arch/select/frameworks/ui/css/Select.module.css +2 -2
- package/es/library/dot/legacy-to-new-arch/table-column-chooser/frameworks/ui/css/TableColumnChooserView.module.css +1 -1
- package/es/library/dot/legacy-to-new-arch/table-column-filter/frameworks/ui/TableColumnFilterView.js +2 -1
- package/es/library/dot/legacy-to-new-arch/table-field-components/checkbox-field/frameworks/ui/CheckboxField.js +12 -2
- package/es/library/dot/legacy-to-new-arch/table-field-components/checkbox-field/frameworks/ui/CheckboxFieldView.js +8 -5
- package/es/library/dot/legacy-to-new-arch/table-field-components/checkbox-field/frameworks/ui/EventHandlersFactory.js +3 -3
- package/es/library/dot/legacy-to-new-arch/table-field-components/email-field/frameworks/ui/EmailField.js +3 -3
- package/es/library/dot/legacy-to-new-arch/table-field-components/email-field/frameworks/ui/EmailFieldView.js +8 -6
- package/es/library/dot/legacy-to-new-arch/table-field-components/highlighted-value-field/frameworks/ui/EventHandlersFactory.js +26 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/highlighted-value-field/frameworks/ui/HighlightedValueField.js +23 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/highlighted-value-field/frameworks/ui/HighlightedValueFieldView.js +24 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/index.js +22 -5
- package/es/library/dot/legacy-to-new-arch/table-field-components/labeled-avatar-field/frameworks/ui/EventHandlersFactory.js +26 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/labeled-avatar-field/frameworks/ui/LabeledAvatarField.js +23 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/labeled-avatar-field/frameworks/ui/LabeledAvatarFieldView.js +22 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/link-field/frameworks/ui/EventHandlersFactory.js +26 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/link-field/frameworks/ui/LinkField.js +23 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/link-field/frameworks/ui/LinkFieldView.js +26 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/lookup-field/frameworks/ui/LookupFieldView.js +1 -1
- package/es/library/dot/legacy-to-new-arch/table-field-components/phone-field/frameworks/ui/PhoneFieldView.js +1 -1
- package/es/library/dot/legacy-to-new-arch/table-field-components/radio-dropdown-field/frameworks/ui/EventHandlersFactory.js +32 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/radio-dropdown-field/frameworks/ui/RadioDropdownField.js +32 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/radio-dropdown-field/frameworks/ui/RadioDropdownFieldView.js +43 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/radio-dropdown-field/frameworks/ui/css/RadioDropdownField.module.css +3 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/switch-field/frameworks/ui/EventHandlersFactory.js +3 -3
- package/es/library/dot/legacy-to-new-arch/table-field-components/switch-field/frameworks/ui/SwitchField.js +14 -4
- package/es/library/dot/legacy-to-new-arch/table-field-components/switch-field/frameworks/ui/SwitchFieldView.js +8 -4
- package/es/library/dot/legacy-to-new-arch/table-field-components/tag-field/frameworks/ui/EventHandlersFactory.js +26 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/tag-field/frameworks/ui/TagField.js +23 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/tag-field/frameworks/ui/TagFieldView.js +34 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/tags-field/frameworks/ui/EventHandlersFactory.js +26 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/tags-field/frameworks/ui/TagsField.js +23 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/tags-field/frameworks/ui/TagsFieldView.js +18 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/tags-list-dropdown-field/frameworks/ui/TagsListDropdownField.js +12 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/tags-list-dropdown-field/frameworks/ui/TagsListDropdownFieldView.js +24 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/text-field/frameworks/ui/EventHandlersFactory.js +26 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/text-field/frameworks/ui/TextField.js +23 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/text-field/frameworks/ui/TextFieldView.js +20 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/url-field/frameworks/ui/UrlFieldView.js +1 -1
- package/es/library/dot/legacy-to-new-arch/tag/frameworks/ui/Tag.js +11 -0
- package/es/library/dot/legacy-to-new-arch/tag/frameworks/ui/Tag.module.css +8 -0
- package/es/library/dot/legacy-to-new-arch/tag/frameworks/ui/TagView.js +96 -0
- package/es/library/dot/legacy-to-new-arch/tags-list-dropdown/frameworks/ui/TagContractAdapter.js +24 -0
- package/es/library/dot/legacy-to-new-arch/tags-list-dropdown/frameworks/ui/TagsListDropdown.js +12 -0
- package/es/library/dot/legacy-to-new-arch/tags-list-dropdown/frameworks/ui/TagsListDropdownView.js +42 -0
- package/es/library/dot/legacy-to-new-arch/text-area/frameworks/ui/css/TextAreaView.module.css +3 -3
- package/es/platform/client-actions/components/row-actions-renderer/frameworks/ui/RowActions/RowActionsRenderer.module.css +5 -5
- package/es/platform/data-source/http-template/getComponentMapping.js +17 -0
- package/es/platform/data-source/index.js +3 -1
- package/es/platform/zfield/applications/usecases/FetchSuccessUseCase.js +33 -0
- package/es/platform/zfield/domain/entities/fields-manager/FieldsManager.js +5 -0
- package/es/platform/zlist/adapters/presenters/TableTranslator.js +15 -2
- package/es/platform/zlist/adapters/presenters/translators/ColumnTranslator.js +48 -52
- package/es/platform/zlist/adapters/presenters/translators/FieldVariations.js +25 -0
- package/es/platform/zlist/adapters/presenters/translators/Row.js +3 -2
- package/es/platform/zlist/adapters/presenters/translators/RowsTranslator.js +3 -1
- package/es/platform/zlist/adapters/presenters/translators/fields/BooleanFieldTranslator.js +87 -12
- package/es/platform/zlist/adapters/presenters/translators/fields/CurrencyFieldTranslator.js +66 -11
- package/es/platform/zlist/adapters/presenters/translators/fields/DateFieldTranslator.js +16 -9
- package/es/platform/zlist/adapters/presenters/translators/fields/DateTimeFieldTranslator.js +16 -9
- package/es/platform/zlist/adapters/presenters/translators/fields/DecimalFieldTranslator.js +16 -9
- package/es/platform/zlist/adapters/presenters/translators/fields/EmailFieldTranslator.js +29 -9
- package/es/platform/zlist/adapters/presenters/translators/fields/FormulaFieldTranslator.js +23 -27
- package/es/platform/zlist/adapters/presenters/translators/fields/LookUpFieldTranslator.js +106 -17
- package/es/platform/zlist/adapters/presenters/translators/fields/MultiLineFieldTranslator.js +16 -9
- package/es/platform/zlist/adapters/presenters/translators/fields/MultiSelectFieldTranslator.js +100 -26
- package/es/platform/zlist/adapters/presenters/translators/fields/NumberFieldTranslator.js +16 -9
- package/es/platform/zlist/adapters/presenters/translators/fields/PercentageFieldTranslator.js +16 -9
- package/es/platform/zlist/adapters/presenters/translators/fields/PhoneFieldTranslator.js +16 -9
- package/es/platform/zlist/adapters/presenters/translators/fields/PickListFieldTranslator.js +167 -26
- package/es/platform/zlist/adapters/presenters/translators/fields/SingleLineFieldTranslator.js +16 -9
- package/es/platform/zlist/adapters/presenters/translators/fields/URLFieldTranslator.js +32 -9
- package/package.json +8 -8
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
const TagProperties = {
|
|
2
|
+
hasSearch: {
|
|
3
|
+
required: false,
|
|
4
|
+
defaultValue: false,
|
|
5
|
+
typeMetadata: {
|
|
6
|
+
schema: {
|
|
7
|
+
type: 'boolean'
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
searchPlaceholder: {
|
|
12
|
+
required: false,
|
|
13
|
+
defaultValue: 'Search',
|
|
14
|
+
typeMetadata: {
|
|
15
|
+
schema: {
|
|
16
|
+
type: 'string'
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
text: {
|
|
21
|
+
required: false,
|
|
22
|
+
defaultValue: '',
|
|
23
|
+
typeMetadata: {
|
|
24
|
+
schema: {
|
|
25
|
+
type: 'string'
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
dropdownHeading: {
|
|
30
|
+
required: false,
|
|
31
|
+
defaultValue: '',
|
|
32
|
+
typeMetadata: {
|
|
33
|
+
schema: {
|
|
34
|
+
type: 'string'
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
emptyMessage: {
|
|
39
|
+
required: false,
|
|
40
|
+
defaultValue: 'No tags found',
|
|
41
|
+
typeMetadata: {
|
|
42
|
+
schema: {
|
|
43
|
+
type: 'string'
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
tags: {
|
|
48
|
+
required: false,
|
|
49
|
+
defaultValue: [],
|
|
50
|
+
typeMetadata: {
|
|
51
|
+
schema: {
|
|
52
|
+
$schema: 'http://json-schema.org/draft-07/schema#',
|
|
53
|
+
definitions: {
|
|
54
|
+
TagsProperties: {
|
|
55
|
+
type: 'object',
|
|
56
|
+
properties: {
|
|
57
|
+
id: {
|
|
58
|
+
type: 'string'
|
|
59
|
+
},
|
|
60
|
+
label: {
|
|
61
|
+
type: 'string'
|
|
62
|
+
},
|
|
63
|
+
color: {
|
|
64
|
+
type: 'string'
|
|
65
|
+
},
|
|
66
|
+
imageSrc: {
|
|
67
|
+
type: 'string'
|
|
68
|
+
},
|
|
69
|
+
imageAltText: {
|
|
70
|
+
type: 'string'
|
|
71
|
+
},
|
|
72
|
+
iconName: {
|
|
73
|
+
type: 'string'
|
|
74
|
+
},
|
|
75
|
+
iconSize: {
|
|
76
|
+
type: 'string'
|
|
77
|
+
},
|
|
78
|
+
disabled: {
|
|
79
|
+
type: 'boolean'
|
|
80
|
+
},
|
|
81
|
+
tooltip: {
|
|
82
|
+
type: 'string'
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
required: ['label']
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
type: 'array',
|
|
89
|
+
items: {
|
|
90
|
+
$ref: '#/definitions/TagsProperties'
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
};
|
|
96
|
+
export default TagProperties;
|
|
@@ -3,17 +3,17 @@
|
|
|
3
3
|
}
|
|
4
4
|
|
|
5
5
|
.field {
|
|
6
|
-
margin-top:
|
|
6
|
+
margin-top: var(--zd_size5) ;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
.multiSelectField {
|
|
10
|
-
margin-top:
|
|
10
|
+
margin-top: var(--zd_size2)
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
.checkboxField {
|
|
14
14
|
composes: dInflex alignFstart from '~@zohodesk/components/es/common/common.module.css';
|
|
15
|
-
max-width: 100
|
|
16
|
-
gap:
|
|
15
|
+
max-width: 100% ;
|
|
16
|
+
gap: var(--zd_size8)
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
.cursor_pointer {
|
|
@@ -27,36 +27,36 @@
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
[dir=ltr] .footer {
|
|
30
|
-
padding-right:
|
|
30
|
+
padding-right: var(--zd_size32)
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
[dir=rtl] .footer {
|
|
34
|
-
padding-left:
|
|
34
|
+
padding-left: var(--zd_size32)
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
/* Sections layout */
|
|
38
38
|
|
|
39
39
|
.sectionsWrapper {
|
|
40
|
-
padding-bottom:
|
|
40
|
+
padding-bottom: var(--zd_size8)
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
.sectionsLayout, .sectionsTwoLayout {
|
|
44
|
-
margin: 0 auto
|
|
44
|
+
margin: 0 auto
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
.sectionsLayout {
|
|
48
|
-
max-width: var(--local-form-layout-max-width,
|
|
48
|
+
max-width: var(--local-form-layout-max-width, var(--zd_size1080))
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
.sectionsTwoLayout {
|
|
52
|
-
column-gap:
|
|
53
|
-
max-width: var(--local-form-layout-max-width,
|
|
52
|
+
column-gap: var(--zd_size8) ;
|
|
53
|
+
max-width: var(--local-form-layout-max-width, var(--zd_size1210))
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
.rightPanel {
|
|
57
57
|
height: var(--local-form-right-panel-height, 100%);
|
|
58
58
|
position: -webkit-sticky;
|
|
59
59
|
position: sticky;
|
|
60
|
-
top: 0;
|
|
61
|
-
padding:
|
|
60
|
+
top: 0 ;
|
|
61
|
+
padding: var(--zd_size8) 0
|
|
62
62
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
.fieldsContainer {
|
|
2
|
-
padding-top:
|
|
2
|
+
padding-top: var(--zd_size1)
|
|
3
3
|
}
|
|
4
4
|
|
|
5
5
|
[dir=ltr] .actionContainer {
|
|
6
|
-
margin-left:
|
|
6
|
+
margin-left: var(--zd_size8) ;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
[dir=rtl] .actionContainer {
|
|
10
|
-
margin-right:
|
|
10
|
+
margin-right: var(--zd_size8) ;
|
|
11
11
|
}
|
|
@@ -137,35 +137,35 @@
|
|
|
137
137
|
}
|
|
138
138
|
|
|
139
139
|
.loader {
|
|
140
|
-
padding:
|
|
140
|
+
padding: var(--zd_size40) 0
|
|
141
141
|
}
|
|
142
142
|
|
|
143
143
|
.wrapper {
|
|
144
|
-
height: 100
|
|
145
|
-
width: 100
|
|
144
|
+
height: 100% ;
|
|
145
|
+
width: 100% ;
|
|
146
146
|
z-index: 1;
|
|
147
147
|
position: relative
|
|
148
148
|
}
|
|
149
149
|
|
|
150
150
|
.hiddenDummyRow {
|
|
151
|
-
height:
|
|
152
|
-
width: 0;
|
|
151
|
+
height: var(--zd_size40) ;
|
|
152
|
+
width: 0 ;
|
|
153
153
|
position: absolute;
|
|
154
154
|
z-index: -100;
|
|
155
|
-
top: 0;
|
|
155
|
+
top: 0 ;
|
|
156
156
|
pointer-events: none;
|
|
157
157
|
}
|
|
158
158
|
|
|
159
159
|
[dir=ltr] .hiddenDummyRow {
|
|
160
|
-
left: 0;
|
|
160
|
+
left: 0 ;
|
|
161
161
|
}
|
|
162
162
|
|
|
163
163
|
[dir=rtl] .hiddenDummyRow {
|
|
164
|
-
right: 0;
|
|
164
|
+
right: 0 ;
|
|
165
165
|
}
|
|
166
166
|
|
|
167
167
|
.resizerSpace {
|
|
168
|
-
width: calc(var(--local_table_resizer_extra_space, 0) *
|
|
168
|
+
width: calc(var(--local_table_resizer_extra_space, 0) * var(--zd_size1));
|
|
169
169
|
flex-shrink: 0
|
|
170
170
|
}
|
|
171
171
|
|
|
@@ -174,32 +174,32 @@
|
|
|
174
174
|
}
|
|
175
175
|
|
|
176
176
|
[dir=ltr] .contentWrapper {
|
|
177
|
-
left: 0;
|
|
177
|
+
left: 0 ;
|
|
178
178
|
}
|
|
179
179
|
|
|
180
180
|
[dir=rtl] .contentWrapper {
|
|
181
|
-
right: 0;
|
|
181
|
+
right: 0 ;
|
|
182
182
|
}
|
|
183
183
|
|
|
184
184
|
.initialLoading {
|
|
185
|
-
height: calc(100% -
|
|
185
|
+
height: calc(100% - (var(--zd_size100)))
|
|
186
186
|
}
|
|
187
187
|
|
|
188
188
|
.emptyContent {
|
|
189
|
-
padding:
|
|
189
|
+
padding: var(--zd_size160) 0 var(--zd_size60)
|
|
190
190
|
}
|
|
191
191
|
|
|
192
192
|
.errorContent {
|
|
193
|
-
padding:
|
|
193
|
+
padding: var(--zd_size60) 0
|
|
194
194
|
}
|
|
195
195
|
|
|
196
196
|
.headerWithActions,
|
|
197
197
|
.fieldWithActions {
|
|
198
|
-
gap:
|
|
198
|
+
gap: var(--zd_size6)
|
|
199
199
|
}
|
|
200
200
|
|
|
201
201
|
.actions {
|
|
202
|
-
gap:
|
|
202
|
+
gap: var(--zd_size8)
|
|
203
203
|
}
|
|
204
204
|
|
|
205
205
|
.rowCursor_default {
|
|
@@ -244,7 +244,7 @@
|
|
|
244
244
|
}
|
|
245
245
|
|
|
246
246
|
.dragHandleContainer {
|
|
247
|
-
height: 100
|
|
247
|
+
height: 100% ;
|
|
248
248
|
opacity: 0;
|
|
249
249
|
visibility: hidden;
|
|
250
250
|
}
|
|
@@ -268,8 +268,8 @@
|
|
|
268
268
|
}
|
|
269
269
|
|
|
270
270
|
.rowDropIndicator {
|
|
271
|
-
width: 100
|
|
272
|
-
height:
|
|
271
|
+
width: 100% ;
|
|
272
|
+
height: var(--zd_size2) ;
|
|
273
273
|
/* css:theme-validation:ignore */
|
|
274
274
|
position: absolute;
|
|
275
275
|
z-index: 2;
|
|
@@ -277,11 +277,11 @@
|
|
|
277
277
|
}
|
|
278
278
|
|
|
279
279
|
.dropIndicatorTop {
|
|
280
|
-
top: 0;
|
|
280
|
+
top: 0 ;
|
|
281
281
|
}
|
|
282
282
|
|
|
283
283
|
.dropIndicatorBottom {
|
|
284
|
-
bottom: -
|
|
284
|
+
bottom: calc( var(--zd_size3) * -1 ) ;
|
|
285
285
|
}
|
|
286
286
|
|
|
287
287
|
.row {
|
|
@@ -10,6 +10,8 @@ import TableRowProperties from "../../../../../../../../cc/table-list/row/Proper
|
|
|
10
10
|
import TableRowConstants from "../../../../../../../../cc/table-list/row/Constants";
|
|
11
11
|
import { SortableHandle } from 'react-sortable-hoc'; // @ts-ignore
|
|
12
12
|
|
|
13
|
+
import arrowStyle from '@zohodesk/components/es/shared/ArrowIcon/ArrowIcon.module.css'; // @ts-ignore
|
|
14
|
+
|
|
13
15
|
import style from "../../css/TableList.module.css";
|
|
14
16
|
|
|
15
17
|
function RowView(_ref, ref) {
|
|
@@ -63,7 +65,7 @@ function RowView(_ref, ref) {
|
|
|
63
65
|
}
|
|
64
66
|
}),
|
|
65
67
|
customStyle: {
|
|
66
|
-
tableList: style.row
|
|
68
|
+
tableList: `${arrowStyle.transparentContainer} ${style.row}`,
|
|
67
69
|
$pointer: style[`rowCursor_${cursor}`]
|
|
68
70
|
}
|
|
69
71
|
}, renderReorderer({
|
package/es/library/dot/legacy-to-new-arch/breadcrumb/frameworks/ui/css/Breadcrumb.module.css
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
.wrapper, .itemContainer {
|
|
2
|
-
max-width: 100%
|
|
2
|
+
max-width: 100%
|
|
3
3
|
}
|
|
4
4
|
|
|
5
5
|
.itemContainer {
|
|
6
|
-
column-gap:
|
|
6
|
+
column-gap: var(--zd_size4) ;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
.separator {
|
|
10
10
|
--separator_fontSize: 14px;
|
|
11
|
-
margin: 0
|
|
11
|
+
margin: 0 var(--zd_size10) ;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
.buttonStyle {
|
|
15
15
|
--button_font_size: 14px;
|
|
16
16
|
--button_padding: 0px;
|
|
17
17
|
--button_letter_spacing: 0px;
|
|
18
|
-
max-width: 100
|
|
18
|
+
max-width: 100% ;
|
|
19
19
|
}
|
|
@@ -13,7 +13,8 @@ function EmailView(_ref, ref) {
|
|
|
13
13
|
let {
|
|
14
14
|
email,
|
|
15
15
|
isDotted,
|
|
16
|
-
weight
|
|
16
|
+
weight,
|
|
17
|
+
tooltip
|
|
17
18
|
} = state.properties;
|
|
18
19
|
return /*#__PURE__*/React.createElement(TableEmail, {
|
|
19
20
|
$method_getRef: ref,
|
|
@@ -27,7 +28,8 @@ function EmailView(_ref, ref) {
|
|
|
27
28
|
}
|
|
28
29
|
});
|
|
29
30
|
},
|
|
30
|
-
$data_email: email
|
|
31
|
+
$data_email: email,
|
|
32
|
+
$i18n_tooltip: tooltip
|
|
31
33
|
});
|
|
32
34
|
}
|
|
33
35
|
|
package/es/library/dot/legacy-to-new-arch/highlighted-value/frameworks/ui/HighlightedValueView.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import StatusBox from "@zohodesk-private/desk-components/es/table/StatusBox/StatusBox";
|
|
3
|
-
import
|
|
3
|
+
import HighlightedValueConstants from "../../../../../../cc/highlighted-value/Constants"; // @ts-ignore
|
|
4
|
+
|
|
4
5
|
import style from "./css/HighlightedValue.module.css";
|
|
5
6
|
|
|
6
7
|
function HighlightedValueView(_ref, ref) {
|
|
@@ -15,6 +16,8 @@ function HighlightedValueView(_ref, ref) {
|
|
|
15
16
|
text,
|
|
16
17
|
color,
|
|
17
18
|
tooltip,
|
|
19
|
+
weight,
|
|
20
|
+
isDotted,
|
|
18
21
|
cursor
|
|
19
22
|
} = state.properties;
|
|
20
23
|
return /*#__PURE__*/React.createElement(StatusBox, {
|
|
@@ -23,6 +26,8 @@ function HighlightedValueView(_ref, ref) {
|
|
|
23
26
|
},
|
|
24
27
|
$ui_color: color,
|
|
25
28
|
$i18n_text: text,
|
|
29
|
+
$ui_weight: weight,
|
|
30
|
+
$flag_wrapText: !isDotted,
|
|
26
31
|
$i18n_tooltip: tooltip,
|
|
27
32
|
customStyle: {
|
|
28
33
|
pointer: cursor === "default" && style.default
|
|
@@ -5,5 +5,6 @@ export { default as HighlightedValue } from "./highlighted-value/frameworks/ui/H
|
|
|
5
5
|
export { default as Link } from "./link/frameworks/ui/Link";
|
|
6
6
|
export { default as Switch } from "./switch/frameworks/ui/Switch";
|
|
7
7
|
export { default as Tags } from "./tags/frameworks/ui/Tags";
|
|
8
|
+
export { default as Tag } from "./tag/frameworks/ui/Tag";
|
|
8
9
|
export { default as Text } from "./text/frameworks/ui/Text";
|
|
9
10
|
export { default as ActionIcon } from "./action-icon/frameworks/ui/ActionIcon";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
.label {
|
|
2
2
|
--label_cursor: inherit
|
|
3
3
|
}[dir=ltr] .label {
|
|
4
|
-
padding-right:
|
|
4
|
+
padding-right: var(--zd_size6)
|
|
5
5
|
}[dir=rtl] .label {
|
|
6
|
-
padding-left:
|
|
6
|
+
padding-left: var(--zd_size6)
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
.mandatory::after {
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
[dir=ltr] .mandatory::after {
|
|
14
|
-
padding-left:
|
|
14
|
+
padding-left: var(--zd_size2)
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
[dir=rtl] .mandatory::after {
|
|
18
|
-
padding-right:
|
|
18
|
+
padding-right: var(--zd_size2)
|
|
19
19
|
}
|
|
@@ -11,11 +11,12 @@ function LinkView(_ref, ref) {
|
|
|
11
11
|
dispatch
|
|
12
12
|
} = helpers;
|
|
13
13
|
let {
|
|
14
|
-
|
|
14
|
+
text,
|
|
15
15
|
variant,
|
|
16
16
|
isDotted,
|
|
17
17
|
weight,
|
|
18
18
|
href,
|
|
19
|
+
tooltip,
|
|
19
20
|
opensNewTab
|
|
20
21
|
} = state.properties;
|
|
21
22
|
let target = opensNewTab ? '_blank' : '_self'; // Will be adopted with properties
|
|
@@ -24,12 +25,13 @@ function LinkView(_ref, ref) {
|
|
|
24
25
|
$customProps_link: {
|
|
25
26
|
ref
|
|
26
27
|
},
|
|
27
|
-
$data_text:
|
|
28
|
+
$data_text: text,
|
|
28
29
|
$data_url: href,
|
|
29
30
|
$data_target: target,
|
|
30
31
|
$ui_variant: variant,
|
|
31
32
|
$flag_wrapText: !isDotted,
|
|
32
33
|
$ui_weight: weight,
|
|
34
|
+
$i18n_tooltip: tooltip,
|
|
33
35
|
$event_onClick: () => {
|
|
34
36
|
dispatch({
|
|
35
37
|
type: LinkConstants.LINK_CLICKED
|
package/es/library/dot/legacy-to-new-arch/multi-select/frameworks/ui/css/MultiSelectView.module.css
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
.fieldActionsContainer {
|
|
2
|
-
margin-top:
|
|
2
|
+
margin-top: var(--zd_size4) ;
|
|
3
3
|
}
|
|
4
4
|
|
|
5
5
|
[dir=ltr] .optionActionsContainer {
|
|
6
|
-
margin-left:
|
|
6
|
+
margin-left: var(--zd_size4) ;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
[dir=rtl] .optionActionsContainer {
|
|
10
|
-
margin-right:
|
|
10
|
+
margin-right: var(--zd_size4) ;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
.custmInputWrapper {
|
|
14
14
|
position: absolute;
|
|
15
|
-
top: 0;
|
|
16
|
-
width: 100
|
|
15
|
+
top: 0 ;
|
|
16
|
+
width: 100% ;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
[dir=ltr] .custmInputWrapper {
|
|
20
|
-
left: 0;
|
|
20
|
+
left: 0 ;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
[dir=rtl] .custmInputWrapper {
|
|
24
|
-
right: 0;
|
|
24
|
+
right: 0 ;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
.clearIconContainer {
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { createCustomComponent } from "../../../../../custom-component";
|
|
2
|
+
import RadioDropdownProperties from "../../../../../../cc/radio-dropdown/Properties";
|
|
3
|
+
import RadioDropdownEvents from "../../../../../../cc/radio-dropdown/Events";
|
|
4
|
+
import RadioDropdownView from "./RadioDropdownView";
|
|
5
|
+
let RadioDropdown = createCustomComponent({
|
|
6
|
+
name: "RadioDropdown",
|
|
7
|
+
View: RadioDropdownView,
|
|
8
|
+
properties: RadioDropdownProperties,
|
|
9
|
+
events: RadioDropdownEvents,
|
|
10
|
+
eventHandlers: {}
|
|
11
|
+
});
|
|
12
|
+
export default RadioDropdown;
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import RadioDropdown from '@zohodesk-private/desk-components/es/RadioDropdown/RadioDropdown';
|
|
3
|
+
import HighlightedValue from '@zohodesk-private/desk-components/es/table/StatusBox/StatusBox';
|
|
4
|
+
import { Icon } from '@zohodesk/icons';
|
|
5
|
+
import Constants from "../../../../../../cc/radio-dropdown/Constants"; // @ts-ignore
|
|
6
|
+
|
|
7
|
+
import style from "./css/RadioDropdown.module.css";
|
|
8
|
+
let dropboxHeaderElementsOrder = ['heading', 'search'];
|
|
9
|
+
|
|
10
|
+
function RadioDropdownView(_ref, ref) {
|
|
11
|
+
let {
|
|
12
|
+
state,
|
|
13
|
+
helpers
|
|
14
|
+
} = _ref;
|
|
15
|
+
let {
|
|
16
|
+
dispatch
|
|
17
|
+
} = helpers;
|
|
18
|
+
let {
|
|
19
|
+
options,
|
|
20
|
+
hoverVariant,
|
|
21
|
+
color,
|
|
22
|
+
isDotted,
|
|
23
|
+
weight,
|
|
24
|
+
selectedId,
|
|
25
|
+
selectedValue,
|
|
26
|
+
dropdownHeading,
|
|
27
|
+
hasSearch,
|
|
28
|
+
searchPlaceholder,
|
|
29
|
+
emptyStateTitle,
|
|
30
|
+
isDisabled,
|
|
31
|
+
isReadOnly
|
|
32
|
+
} = state.properties;
|
|
33
|
+
|
|
34
|
+
function renderCustomTargetElement(_ref2) {
|
|
35
|
+
let {
|
|
36
|
+
handleTogglePopup,
|
|
37
|
+
selectedValue
|
|
38
|
+
} = _ref2;
|
|
39
|
+
return /*#__PURE__*/React.createElement(HighlightedValue, {
|
|
40
|
+
$ui_color: color,
|
|
41
|
+
$i18n_text: selectedValue,
|
|
42
|
+
$ui_weight: weight,
|
|
43
|
+
$flag_wrapText: !isDotted,
|
|
44
|
+
$i18n_tooltip: selectedValue,
|
|
45
|
+
$event_onClick: !isDisabled ? handleTogglePopup : undefined,
|
|
46
|
+
$render_rightChild: !isDisabled ? /*#__PURE__*/React.createElement(Icon, {
|
|
47
|
+
name: "ZD-down",
|
|
48
|
+
size: "7",
|
|
49
|
+
iconClass: style.downIcon
|
|
50
|
+
}) : undefined,
|
|
51
|
+
customStyle: isDisabled ? {
|
|
52
|
+
container: style.disabled
|
|
53
|
+
} : undefined
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
return /*#__PURE__*/React.createElement(RadioDropdown, {
|
|
58
|
+
getRef: ref,
|
|
59
|
+
options: options,
|
|
60
|
+
selectedId: selectedId,
|
|
61
|
+
selectedValue: selectedValue,
|
|
62
|
+
dropdownHeading: dropdownHeading,
|
|
63
|
+
hasSearch: hasSearch,
|
|
64
|
+
searchPlaceholder: searchPlaceholder,
|
|
65
|
+
emptyStateTitle: emptyStateTitle,
|
|
66
|
+
isDisabled: isDisabled,
|
|
67
|
+
isReadOnly: isReadOnly,
|
|
68
|
+
isAbsolutePositioningNeeded: true,
|
|
69
|
+
defaultPosition: "bottomRight",
|
|
70
|
+
dropboxSize: "large",
|
|
71
|
+
dropboxHeaderElementsOrder: dropboxHeaderElementsOrder,
|
|
72
|
+
isMultilineEnabled: true,
|
|
73
|
+
isFocusScopeEnabled: true,
|
|
74
|
+
hasListItemActiveStyle: false,
|
|
75
|
+
hasLoading: false,
|
|
76
|
+
hasDropboxGap: true,
|
|
77
|
+
renderCustomTargetElement: color !== 'none' ? renderCustomTargetElement : undefined,
|
|
78
|
+
customProps: {
|
|
79
|
+
dropdown: {
|
|
80
|
+
customProps: {
|
|
81
|
+
dropdown: {
|
|
82
|
+
customStyle: {
|
|
83
|
+
container: style.wrapper
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
targetElement: {
|
|
89
|
+
hoverVariant,
|
|
90
|
+
customProps: {
|
|
91
|
+
text: {
|
|
92
|
+
$flag_dotted: isDotted,
|
|
93
|
+
$ui_weight: weight
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
onChange: _ref3 => {
|
|
99
|
+
let {
|
|
100
|
+
id,
|
|
101
|
+
value,
|
|
102
|
+
secondaryValue
|
|
103
|
+
} = _ref3;
|
|
104
|
+
dispatch({
|
|
105
|
+
type: Constants.RADIO_DROPDOWN_VALUE_CHANGED,
|
|
106
|
+
payload: {
|
|
107
|
+
id,
|
|
108
|
+
value,
|
|
109
|
+
secondaryValue
|
|
110
|
+
}
|
|
111
|
+
});
|
|
112
|
+
},
|
|
113
|
+
onSearch: value => {
|
|
114
|
+
dispatch({
|
|
115
|
+
type: Constants.RADIO_DROPDOWN_SEARCHED,
|
|
116
|
+
payload: {
|
|
117
|
+
value
|
|
118
|
+
}
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export default RadioDropdownView;
|
package/es/library/dot/legacy-to-new-arch/radio-dropdown/frameworks/ui/css/RadioDropdown.module.css
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
|
|
2
|
+
.wrapper {
|
|
3
|
+
max-width: 100%
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.disabled {
|
|
7
|
+
opacity: 0.7;
|
|
8
|
+
cursor: not-allowed
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.downIcon {
|
|
12
|
+
flex-shrink: 0;
|
|
13
|
+
opacity: 0.4;
|
|
14
|
+
margin-top: var(--zd_size2)
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
[dir=ltr] .downIcon {
|
|
18
|
+
margin-left: var(--zd_size4)
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
[dir=rtl] .downIcon {
|
|
22
|
+
margin-right: var(--zd_size4)
|
|
23
|
+
}
|