@zohodesk/dot 1.0.0-temp-231.1 → 1.0.0-temp-229.2
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/README.md +12 -8
- package/assets/Appearance/dark/mode/Dot_DarkMode.module.css +10 -7
- package/assets/Appearance/light/mode/Dot_LightMode.module.css +16 -13
- package/assets/Appearance/pureDark/mode/Dot_PureDarkMode.module.css +8 -5
- package/es/DotProvider/libraryChunks/themes/component/blue/Blue_Dark_Component.js +1 -2
- package/es/DotProvider/libraryChunks/themes/component/blue/Blue_Light_Component.js +1 -2
- package/es/DotProvider/libraryChunks/themes/component/blue/Blue_PureDark_Component.js +1 -2
- package/es/DotProvider/libraryChunks/themes/component/green/Green_Dark_Component.js +1 -2
- package/es/DotProvider/libraryChunks/themes/component/green/Green_Light_Component.js +1 -2
- package/es/DotProvider/libraryChunks/themes/component/green/Green_PureDark_Component.js +1 -2
- package/es/DotProvider/libraryChunks/themes/component/orange/Orange_Dark_Component.js +1 -2
- package/es/DotProvider/libraryChunks/themes/component/orange/Orange_Light_Component.js +1 -2
- package/es/DotProvider/libraryChunks/themes/component/orange/Orange_PureDark_Component.js +1 -2
- package/es/DotProvider/libraryChunks/themes/component/red/Red_Dark_Component.js +1 -2
- package/es/DotProvider/libraryChunks/themes/component/red/Red_Light_Component.js +1 -2
- package/es/DotProvider/libraryChunks/themes/component/red/Red_PureDark_Component.js +1 -2
- package/es/DotProvider/libraryChunks/themes/component/yellow/Yellow_Dark_Component.js +1 -2
- package/es/DotProvider/libraryChunks/themes/component/yellow/Yellow_Light_Component.js +1 -2
- package/es/DotProvider/libraryChunks/themes/component/yellow/Yellow_PureDark_Component.js +1 -2
- package/es/DotProvider/libraryChunks/themes/dot/blue/Blue_Dark_Dot.js +0 -1
- package/es/DotProvider/libraryChunks/themes/dot/blue/Blue_Light_Dot.js +0 -1
- package/es/DotProvider/libraryChunks/themes/dot/blue/Blue_PureDark_Dot.js +0 -1
- package/es/DotProvider/libraryChunks/themes/dot/green/Green_Dark_Dot.js +0 -1
- package/es/DotProvider/libraryChunks/themes/dot/green/Green_Light_Dot.js +0 -1
- package/es/DotProvider/libraryChunks/themes/dot/green/Green_PureDark_Dot.js +0 -1
- package/es/DotProvider/libraryChunks/themes/dot/orange/Orange_Dark_Dot.js +0 -1
- package/es/DotProvider/libraryChunks/themes/dot/orange/Orange_Light_Dot.js +0 -1
- package/es/DotProvider/libraryChunks/themes/dot/orange/Orange_PureDark_Dot.js +0 -1
- package/es/DotProvider/libraryChunks/themes/dot/red/Red_Dark_Dot.js +0 -1
- package/es/DotProvider/libraryChunks/themes/dot/red/Red_Light_Dot.js +0 -1
- package/es/DotProvider/libraryChunks/themes/dot/red/Red_PureDark_Dot.js +0 -1
- package/es/DotProvider/libraryChunks/themes/dot/yellow/Yellow_Dark_Dot.js +0 -1
- package/es/DotProvider/libraryChunks/themes/dot/yellow/Yellow_Light_Dot.js +0 -1
- package/es/DotProvider/libraryChunks/themes/dot/yellow/Yellow_PureDark_Dot.js +0 -1
- package/es/DotProvider/libraryChunks/themes/variables/blue/Blue_Dark_Variables.js +2 -1
- package/es/DotProvider/libraryChunks/themes/variables/blue/Blue_Light_Variables.js +2 -1
- package/es/DotProvider/libraryChunks/themes/variables/blue/Blue_PureDark_Variables.js +2 -1
- package/es/DotProvider/libraryChunks/themes/variables/green/Green_Dark_Variables.js +2 -1
- package/es/DotProvider/libraryChunks/themes/variables/green/Green_Light_Variables.js +2 -1
- package/es/DotProvider/libraryChunks/themes/variables/green/Green_PureDark_Variables.js +2 -1
- package/es/DotProvider/libraryChunks/themes/variables/orange/Orange_Dark_Variables.js +2 -1
- package/es/DotProvider/libraryChunks/themes/variables/orange/Orange_Light_Variables.js +2 -1
- package/es/DotProvider/libraryChunks/themes/variables/orange/Orange_PureDark_Variables.js +2 -1
- package/es/DotProvider/libraryChunks/themes/variables/red/Red_Dark_Variables.js +2 -1
- package/es/DotProvider/libraryChunks/themes/variables/red/Red_Light_Variables.js +2 -1
- package/es/DotProvider/libraryChunks/themes/variables/red/Red_PureDark_Variables.js +2 -1
- package/es/DotProvider/libraryChunks/themes/variables/yellow/Yellow_Dark_Variables.js +2 -1
- package/es/DotProvider/libraryChunks/themes/variables/yellow/Yellow_Light_Variables.js +2 -1
- package/es/DotProvider/libraryChunks/themes/variables/yellow/Yellow_PureDark_Variables.js +2 -1
- package/es/common/dot_boxShadow.module.css +2 -0
- package/es/form/fields/SelectField/SelectField.js +4 -2
- package/es/form/fields/SelectField/props/defaultProps.js +1 -0
- package/es/form/fields/SelectField/props/propTypes.js +1 -0
- package/es/list/status/StatusDropdown/StatusDropdown.js +121 -79
- package/es/list/status/StatusDropdown/StatusDropdown.module.css +54 -7
- package/es/list/status/StatusDropdown/props/defaultProps.js +2 -1
- package/es/list/status/StatusDropdown/props/propTypes.js +2 -1
- package/lib/DotProvider/libraryChunks/themes/component/blue/Blue_Dark_Component.js +1 -3
- package/lib/DotProvider/libraryChunks/themes/component/blue/Blue_Light_Component.js +1 -3
- package/lib/DotProvider/libraryChunks/themes/component/blue/Blue_PureDark_Component.js +1 -3
- package/lib/DotProvider/libraryChunks/themes/component/green/Green_Dark_Component.js +1 -3
- package/lib/DotProvider/libraryChunks/themes/component/green/Green_Light_Component.js +1 -3
- package/lib/DotProvider/libraryChunks/themes/component/green/Green_PureDark_Component.js +1 -3
- package/lib/DotProvider/libraryChunks/themes/component/orange/Orange_Dark_Component.js +1 -3
- package/lib/DotProvider/libraryChunks/themes/component/orange/Orange_Light_Component.js +1 -3
- package/lib/DotProvider/libraryChunks/themes/component/orange/Orange_PureDark_Component.js +1 -3
- package/lib/DotProvider/libraryChunks/themes/component/red/Red_Dark_Component.js +1 -3
- package/lib/DotProvider/libraryChunks/themes/component/red/Red_Light_Component.js +1 -3
- package/lib/DotProvider/libraryChunks/themes/component/red/Red_PureDark_Component.js +1 -3
- package/lib/DotProvider/libraryChunks/themes/component/yellow/Yellow_Dark_Component.js +1 -3
- package/lib/DotProvider/libraryChunks/themes/component/yellow/Yellow_Light_Component.js +1 -3
- package/lib/DotProvider/libraryChunks/themes/component/yellow/Yellow_PureDark_Component.js +1 -3
- package/lib/DotProvider/libraryChunks/themes/dot/blue/Blue_Dark_Dot.js +0 -2
- package/lib/DotProvider/libraryChunks/themes/dot/blue/Blue_Light_Dot.js +0 -2
- package/lib/DotProvider/libraryChunks/themes/dot/blue/Blue_PureDark_Dot.js +0 -2
- package/lib/DotProvider/libraryChunks/themes/dot/green/Green_Dark_Dot.js +0 -2
- package/lib/DotProvider/libraryChunks/themes/dot/green/Green_Light_Dot.js +0 -2
- package/lib/DotProvider/libraryChunks/themes/dot/green/Green_PureDark_Dot.js +0 -2
- package/lib/DotProvider/libraryChunks/themes/dot/orange/Orange_Dark_Dot.js +0 -2
- package/lib/DotProvider/libraryChunks/themes/dot/orange/Orange_Light_Dot.js +0 -2
- package/lib/DotProvider/libraryChunks/themes/dot/orange/Orange_PureDark_Dot.js +0 -2
- package/lib/DotProvider/libraryChunks/themes/dot/red/Red_Dark_Dot.js +0 -2
- package/lib/DotProvider/libraryChunks/themes/dot/red/Red_Light_Dot.js +0 -2
- package/lib/DotProvider/libraryChunks/themes/dot/red/Red_PureDark_Dot.js +0 -2
- package/lib/DotProvider/libraryChunks/themes/dot/yellow/Yellow_Dark_Dot.js +0 -2
- package/lib/DotProvider/libraryChunks/themes/dot/yellow/Yellow_Light_Dot.js +0 -2
- package/lib/DotProvider/libraryChunks/themes/dot/yellow/Yellow_PureDark_Dot.js +0 -2
- package/lib/DotProvider/libraryChunks/themes/variables/blue/Blue_Dark_Variables.js +3 -1
- package/lib/DotProvider/libraryChunks/themes/variables/blue/Blue_Light_Variables.js +3 -1
- package/lib/DotProvider/libraryChunks/themes/variables/blue/Blue_PureDark_Variables.js +3 -1
- package/lib/DotProvider/libraryChunks/themes/variables/green/Green_Dark_Variables.js +3 -1
- package/lib/DotProvider/libraryChunks/themes/variables/green/Green_Light_Variables.js +3 -1
- package/lib/DotProvider/libraryChunks/themes/variables/green/Green_PureDark_Variables.js +3 -1
- package/lib/DotProvider/libraryChunks/themes/variables/orange/Orange_Dark_Variables.js +3 -1
- package/lib/DotProvider/libraryChunks/themes/variables/orange/Orange_Light_Variables.js +3 -1
- package/lib/DotProvider/libraryChunks/themes/variables/orange/Orange_PureDark_Variables.js +3 -1
- package/lib/DotProvider/libraryChunks/themes/variables/red/Red_Dark_Variables.js +3 -1
- package/lib/DotProvider/libraryChunks/themes/variables/red/Red_Light_Variables.js +3 -1
- package/lib/DotProvider/libraryChunks/themes/variables/red/Red_PureDark_Variables.js +3 -1
- package/lib/DotProvider/libraryChunks/themes/variables/yellow/Yellow_Dark_Variables.js +3 -1
- package/lib/DotProvider/libraryChunks/themes/variables/yellow/Yellow_Light_Variables.js +3 -1
- package/lib/DotProvider/libraryChunks/themes/variables/yellow/Yellow_PureDark_Variables.js +3 -1
- package/lib/common/dot_boxShadow.module.css +2 -0
- package/lib/form/fields/SelectField/SelectField.js +4 -2
- package/lib/form/fields/SelectField/props/defaultProps.js +1 -0
- package/lib/form/fields/SelectField/props/propTypes.js +1 -0
- package/lib/list/status/StatusDropdown/StatusDropdown.js +133 -81
- package/lib/list/status/StatusDropdown/StatusDropdown.module.css +54 -7
- package/lib/list/status/StatusDropdown/props/defaultProps.js +2 -1
- package/lib/list/status/StatusDropdown/props/propTypes.js +1 -1
- package/package.json +25 -23
- package/assets/Appearance/dark/themes/blue/blue_DotCTA_DarkModifyCategory.module.css +0 -13
- package/assets/Appearance/dark/themes/green/green_DotCTA_DarkModifyCategory.module.css +0 -13
- package/assets/Appearance/dark/themes/orange/orange_DotCTA_DarkModifyCategory.module.css +0 -13
- package/assets/Appearance/dark/themes/red/red_DotCTA_DarkModifyCategory.module.css +0 -13
- package/assets/Appearance/dark/themes/yellow/yellow_DotCTA_DarkModifyCategory.module.css +0 -13
- package/assets/Appearance/light/themes/blue/blue_DotCTA_LightModifyCategory.module.css +0 -13
- package/assets/Appearance/light/themes/green/green_DotCTA_LightModifyCategory.module.css +0 -13
- package/assets/Appearance/light/themes/orange/orange_DotCTA_LightModifyCategory.module.css +0 -13
- package/assets/Appearance/light/themes/red/red_DotCTA_LightModifyCategory.module.css +0 -13
- package/assets/Appearance/light/themes/yellow/yellow_DotCTA_LightModifyCategory.module.css +0 -13
- package/assets/Appearance/pureDark/themes/blue/blue_DotCTA_PureDarkModifyCategory.module.css +0 -13
- package/assets/Appearance/pureDark/themes/green/green_DotCTA_PureDarkModifyCategory.module.css +0 -13
- package/assets/Appearance/pureDark/themes/orange/orange_DotCTA_PureDarkModifyCategory.module.css +0 -13
- package/assets/Appearance/pureDark/themes/red/red_DotCTA_PureDarkModifyCategory.module.css +0 -13
- package/assets/Appearance/pureDark/themes/yellow/yellow_DotCTA_PureDarkModifyCategory.module.css +0 -13
|
@@ -13,6 +13,7 @@ import StatusListItem from "../StatusListItem/StatusListItem";
|
|
|
13
13
|
import commonStyle from '@zohodesk/components/es/common/common.module.css';
|
|
14
14
|
import ResponsiveDropBox from '@zohodesk/components/es/ResponsiveDropBox/ResponsiveDropBox';
|
|
15
15
|
import { ResponsiveReceiver } from '@zohodesk/components/es/Responsive/CustomResponsive';
|
|
16
|
+
import Flex from '@zohodesk/layout/es/Flex/Flex';
|
|
16
17
|
import { getUniqueId } from '@zohodesk/components/es/Provider/IdProvider';
|
|
17
18
|
import btnStyle from '@zohodesk/components/es/semantic/Button/semanticButton.module.css';
|
|
18
19
|
import style from "./StatusDropdown.module.css";
|
|
@@ -30,6 +31,11 @@ export class StatusDropdown extends React.Component {
|
|
|
30
31
|
this.searchList = this.searchList.bind(this);
|
|
31
32
|
this.handleScroll = this.handleScroll.bind(this);
|
|
32
33
|
this.emptySearchSVG = this.emptySearchSVG.bind(this);
|
|
34
|
+
this.getSearchA11y = this.getSearchA11y.bind(this);
|
|
35
|
+
this.getHeadingA11y = this.getHeadingA11y.bind(this);
|
|
36
|
+
this.getListItemA11y = this.getListItemA11y.bind(this);
|
|
37
|
+
this.getTextBoxIconCustomProps = this.getTextBoxIconCustomProps.bind(this);
|
|
38
|
+
this.handleListItemClick = this.handleListItemClick.bind(this);
|
|
33
39
|
this.getAriaId = getUniqueId(this);
|
|
34
40
|
}
|
|
35
41
|
|
|
@@ -124,6 +130,44 @@ export class StatusDropdown extends React.Component {
|
|
|
124
130
|
};
|
|
125
131
|
}
|
|
126
132
|
|
|
133
|
+
getSearchA11y() {
|
|
134
|
+
return {
|
|
135
|
+
ariaHaspopup: this.props.isSearch ? 'listbox' : 'menu',
|
|
136
|
+
ariaExpanded: this.props.isPopupReady,
|
|
137
|
+
role: 'combobox',
|
|
138
|
+
ariaActivedescendant: this.props.isPopupReady ? this.props.value : '',
|
|
139
|
+
ariaOwns: this.getAriaId()
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
getHeadingA11y() {
|
|
144
|
+
return {
|
|
145
|
+
role: 'heading'
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
getListItemA11y(isActive, listItemText) {
|
|
150
|
+
return {
|
|
151
|
+
role: this.props.isSearch ? 'option' : 'menuitem',
|
|
152
|
+
ariaSelected: isActive,
|
|
153
|
+
ariaLabel: listItemText
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
getTextBoxIconCustomProps() {
|
|
158
|
+
return {
|
|
159
|
+
TextBoxProps: {
|
|
160
|
+
'data-a11y-autofocus': true
|
|
161
|
+
}
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
handleListItemClick(item) {
|
|
166
|
+
return e => {
|
|
167
|
+
this.onSelect(item, e);
|
|
168
|
+
};
|
|
169
|
+
}
|
|
170
|
+
|
|
127
171
|
render() {
|
|
128
172
|
let {
|
|
129
173
|
options
|
|
@@ -179,10 +223,12 @@ export class StatusDropdown extends React.Component {
|
|
|
179
223
|
renderTargetElement,
|
|
180
224
|
renderFooterElement,
|
|
181
225
|
a11y = {},
|
|
182
|
-
customClass
|
|
226
|
+
customClass,
|
|
227
|
+
renderCustomDropBoxHeader
|
|
183
228
|
} = this.props;
|
|
184
229
|
const {
|
|
185
|
-
dropBoxClass = ''
|
|
230
|
+
dropBoxClass = '',
|
|
231
|
+
customDropBoxHeader = ''
|
|
186
232
|
} = customClass;
|
|
187
233
|
const {
|
|
188
234
|
tabIndex = 0,
|
|
@@ -195,6 +241,9 @@ export class StatusDropdown extends React.Component {
|
|
|
195
241
|
} = this.state;
|
|
196
242
|
let containerClass = `${className ? className : ''} ${isPopupReady ? activeStyle ? activeStyle : '' : showIconOnHover ? style.hoverIcon : ''} ${isDisabled ? commonStyle.disabled : isReadOnly ? style.readOnly : !isEditable ? style.cursorDefault : !showOnHover ? `${style.cursor} ${hoverStyle ? hoverStyle : ''}` : `${hoverStyle ? hoverStyle : ''} ${style.cursorDefault}`}`;
|
|
197
243
|
let ariaTitleId = this.getAriaId();
|
|
244
|
+
let textBoxA11y = this.getSearchA11y();
|
|
245
|
+
let headingA11y = this.getHeadingA11y();
|
|
246
|
+
let textBoxIconCustomProps = this.getTextBoxIconCustomProps();
|
|
198
247
|
return /*#__PURE__*/React.createElement("div", {
|
|
199
248
|
className: style.posRel,
|
|
200
249
|
onMouseEnter: showOnHover && !isDisabled && !isReadOnly && isEditable ? this.handleTogglePopup : undefined,
|
|
@@ -251,8 +300,8 @@ export class StatusDropdown extends React.Component {
|
|
|
251
300
|
isAnimate: true,
|
|
252
301
|
getRef: getContainerRef,
|
|
253
302
|
customClass: {
|
|
254
|
-
customDropBoxWrap: style.dropBoxContainer
|
|
255
|
-
customDropBox: dropBoxClass
|
|
303
|
+
customDropBoxWrap: `${style.dropBoxContainer} `,
|
|
304
|
+
customDropBox: `${dropBoxClass} ${renderCustomDropBoxHeader ? style.dropBoxWithCustomHeader : ''}`
|
|
256
305
|
},
|
|
257
306
|
needResponsive: needResponsive,
|
|
258
307
|
isResponsivePadding: true,
|
|
@@ -270,81 +319,74 @@ export class StatusDropdown extends React.Component {
|
|
|
270
319
|
isFetchingOptions: isFetchingOptions
|
|
271
320
|
}
|
|
272
321
|
}
|
|
273
|
-
},
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
}
|
|
285
|
-
},
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
}
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
title: searchErrorText || 'No results',
|
|
342
|
-
description: searchEmptyHint,
|
|
343
|
-
size: "small",
|
|
344
|
-
getEmptyState: this.emptySearchSVG
|
|
345
|
-
}) : /*#__PURE__*/React.createElement("div", {
|
|
346
|
-
className: style.loader
|
|
347
|
-
}, /*#__PURE__*/React.createElement(Loader, null))), renderFooterElement ? renderFooterElement : null));
|
|
322
|
+
}, (() => {
|
|
323
|
+
const dropdownContent = /*#__PURE__*/React.createElement(React.Fragment, null, isSearch ? /*#__PURE__*/React.createElement(Box, {
|
|
324
|
+
className: style.search
|
|
325
|
+
}, /*#__PURE__*/React.createElement(TextBoxIcon, {
|
|
326
|
+
placeHolder: placeHolderText,
|
|
327
|
+
onChange: this.handleChange,
|
|
328
|
+
value: searchString,
|
|
329
|
+
onClear: this.onSearchClear,
|
|
330
|
+
size: searchBoxSize,
|
|
331
|
+
customProps: textBoxIconCustomProps,
|
|
332
|
+
a11y: textBoxA11y,
|
|
333
|
+
dataId: `${dataId}_search`
|
|
334
|
+
})) : null, title && options.length != 0 && /*#__PURE__*/React.createElement(Box, {
|
|
335
|
+
className: style.title
|
|
336
|
+
}, /*#__PURE__*/React.createElement(DropDownHeading, {
|
|
337
|
+
htmlId: ariaTitleId,
|
|
338
|
+
text: title,
|
|
339
|
+
a11y: headingA11y
|
|
340
|
+
})), /*#__PURE__*/React.createElement(Box, {
|
|
341
|
+
scroll: "vertical",
|
|
342
|
+
flexible: true,
|
|
343
|
+
shrink: true,
|
|
344
|
+
dataId: `${dataId}_list`,
|
|
345
|
+
preventParentScroll: "vertical",
|
|
346
|
+
className: `${tabletMode ? style.responsivemaxHgt : style.maxHgt}`,
|
|
347
|
+
onScroll: this.handleScroll,
|
|
348
|
+
role: isSearch ? 'listbox' : 'menu',
|
|
349
|
+
tabindex: "-1",
|
|
350
|
+
isScrollAttribute: true
|
|
351
|
+
}, options.length != 0 && isDataLoaded ? /*#__PURE__*/React.createElement(React.Fragment, null, options.map((item, i) => {
|
|
352
|
+
const listItemText = item[keyName];
|
|
353
|
+
const isActive = value === listItemText;
|
|
354
|
+
return /*#__PURE__*/React.createElement(StatusListItem, {
|
|
355
|
+
key: item[idName] || i,
|
|
356
|
+
dataId: `dataid_${i}`,
|
|
357
|
+
value: listItemText,
|
|
358
|
+
id: item[idName],
|
|
359
|
+
active: isActive,
|
|
360
|
+
onClick: this.handleListItemClick(item),
|
|
361
|
+
index: i,
|
|
362
|
+
needTick: needTick,
|
|
363
|
+
needBorder: false,
|
|
364
|
+
bulletColor: item[statusColor],
|
|
365
|
+
title: listItemText,
|
|
366
|
+
needMultiLineText: needMultiLineText,
|
|
367
|
+
autoHover: true,
|
|
368
|
+
a11y: this.getListItemA11y(isActive, listItemText)
|
|
369
|
+
});
|
|
370
|
+
}), isFetchingOptions && /*#__PURE__*/React.createElement(Container, {
|
|
371
|
+
isCover: false,
|
|
372
|
+
align: "both"
|
|
373
|
+
}, /*#__PURE__*/React.createElement(Loader, null))) : isDataLoaded ? /*#__PURE__*/React.createElement(CommonEmptyState, {
|
|
374
|
+
className: style.svgWrapper,
|
|
375
|
+
title: searchErrorText || 'No results',
|
|
376
|
+
description: searchEmptyHint,
|
|
377
|
+
size: "small",
|
|
378
|
+
getEmptyState: this.emptySearchSVG
|
|
379
|
+
}) : /*#__PURE__*/React.createElement("div", {
|
|
380
|
+
className: style.loader
|
|
381
|
+
}, /*#__PURE__*/React.createElement(Loader, null))), renderFooterElement ? renderFooterElement : null);
|
|
382
|
+
return renderCustomDropBoxHeader ? /*#__PURE__*/React.createElement("div", {
|
|
383
|
+
className: style.dropBoxListContainer
|
|
384
|
+
}, /*#__PURE__*/React.createElement(Flex, {
|
|
385
|
+
$ui_className: `${customDropBoxHeader} ${style.customDropBoxHeaderContainer}`
|
|
386
|
+
}, renderCustomDropBoxHeader), /*#__PURE__*/React.createElement("div", {
|
|
387
|
+
className: style.dropdownOptions
|
|
388
|
+
}, dropdownContent)) : dropdownContent;
|
|
389
|
+
})());
|
|
348
390
|
}) : null);
|
|
349
391
|
}
|
|
350
392
|
|
|
@@ -1,83 +1,130 @@
|
|
|
1
1
|
.container {
|
|
2
2
|
max-width: 100% ;
|
|
3
3
|
}
|
|
4
|
+
|
|
5
|
+
.dropBoxListContainer {
|
|
6
|
+
border-radius: 7px;
|
|
7
|
+
padding: var(--zd_size10) ;
|
|
8
|
+
border: 1px solid var(--zdt_statusdropdown_wrapper_container_border);
|
|
9
|
+
background: var(--zdt_statusdropdown_wrapper_container_bg);
|
|
10
|
+
box-shadow: var(--zd_bs_statusdropdown_wrapper_container);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.dropdownOptions {
|
|
14
|
+
padding-inline: var(--zd_size1) ;
|
|
15
|
+
padding-block: var(--zd_size1) ;
|
|
16
|
+
background-color: var(--zdt_statusdropdown_wrapper_dropdown_bg);
|
|
17
|
+
border: 1px solid var(--zdt_statusdropdown_wrapper_container_border);
|
|
18
|
+
border-radius: 7px;
|
|
19
|
+
}
|
|
20
|
+
|
|
4
21
|
.posRel {
|
|
5
22
|
position: relative;
|
|
6
23
|
}
|
|
24
|
+
|
|
7
25
|
.maxHgt {
|
|
8
26
|
max-height: var(--zd_size265) ;
|
|
9
27
|
padding-block: var(--zd_size10) ;
|
|
10
|
-
padding-inline:0 ;
|
|
28
|
+
padding-inline: 0 ;
|
|
11
29
|
}
|
|
12
|
-
|
|
30
|
+
|
|
31
|
+
.responsivemaxHgt {
|
|
13
32
|
padding-block: var(--zd_size10) 0 ;
|
|
14
|
-
padding-inline:0 ;
|
|
33
|
+
padding-inline: 0 ;
|
|
15
34
|
}
|
|
35
|
+
|
|
16
36
|
.title {
|
|
17
37
|
padding-block-start: var(--zd_size6) ;
|
|
18
38
|
}
|
|
39
|
+
|
|
19
40
|
.default_arrow,
|
|
20
41
|
.overlay_arrow {
|
|
21
42
|
padding-inline: var(--zd_size5) 0 ;
|
|
22
|
-
padding-block:0 ;
|
|
43
|
+
padding-block: 0 ;
|
|
23
44
|
}
|
|
45
|
+
|
|
24
46
|
.overlay_arrow {
|
|
25
47
|
position: absolute;
|
|
26
48
|
top: 50% ;
|
|
27
49
|
transform: translateY(-50%) perspective(1px);
|
|
28
50
|
}
|
|
51
|
+
|
|
29
52
|
[dir=ltr] .overlay_arrow {
|
|
30
53
|
left: 100% ;
|
|
31
54
|
}
|
|
55
|
+
|
|
32
56
|
[dir=rtl] .overlay_arrow {
|
|
33
57
|
right: 100% ;
|
|
34
58
|
}
|
|
59
|
+
|
|
35
60
|
.hoverIcon .arrow {
|
|
36
61
|
opacity: 0;
|
|
37
62
|
visibility: hidden;
|
|
38
63
|
}
|
|
64
|
+
|
|
39
65
|
.hoverIcon:hover .arrow {
|
|
40
66
|
opacity: 1;
|
|
41
67
|
visibility: visible;
|
|
42
68
|
}
|
|
69
|
+
|
|
43
70
|
.value {
|
|
44
71
|
composes: dotted from '~@zohodesk/components/es/common/common.module.css';
|
|
45
72
|
}
|
|
73
|
+
|
|
46
74
|
.search {
|
|
47
75
|
padding-block: var(--zd_size6) 0 ;
|
|
48
|
-
padding-inline:var(--zd_size20) ;
|
|
76
|
+
padding-inline: var(--zd_size20) ;
|
|
49
77
|
}
|
|
78
|
+
|
|
50
79
|
.svgWrapper {
|
|
51
80
|
padding-block-end: var(--zd_size25) ;
|
|
52
81
|
}
|
|
82
|
+
|
|
53
83
|
.readOnly {
|
|
54
84
|
cursor: no-drop;
|
|
55
85
|
}
|
|
86
|
+
|
|
56
87
|
.cursorDefault {
|
|
57
88
|
cursor: default;
|
|
58
89
|
}
|
|
90
|
+
|
|
59
91
|
.cursor {
|
|
60
92
|
cursor: pointer;
|
|
61
93
|
}
|
|
94
|
+
|
|
62
95
|
[dir=ltr] .dropBoxContainer {
|
|
63
96
|
text-align: left;
|
|
64
97
|
}
|
|
98
|
+
|
|
65
99
|
[dir=rtl] .dropBoxContainer {
|
|
66
100
|
text-align: right;
|
|
67
101
|
}
|
|
102
|
+
|
|
68
103
|
.iconBox {
|
|
69
104
|
margin-inline-end: var(--zd_size4) ;
|
|
70
105
|
}
|
|
71
|
-
|
|
106
|
+
|
|
107
|
+
.iconBox>i {
|
|
72
108
|
display: block;
|
|
73
109
|
}
|
|
110
|
+
|
|
74
111
|
.loader {
|
|
75
112
|
width: var(--zd_size40) ;
|
|
76
113
|
margin: 0 auto ;
|
|
77
114
|
}
|
|
115
|
+
|
|
78
116
|
.seperatedLine {
|
|
79
117
|
height: var(--zd_size1) ;
|
|
80
118
|
margin-block: var(--zd_size9) var(--zd_size10) ;
|
|
81
|
-
margin-inline:0 ;
|
|
119
|
+
margin-inline: 0 ;
|
|
82
120
|
border-bottom: 1px solid var(--zdt_statusdropdown_line_border);
|
|
83
121
|
}
|
|
122
|
+
|
|
123
|
+
.customDropBoxHeaderContainer {
|
|
124
|
+
margin-block-end: var(--zd_size6) ;
|
|
125
|
+
margin-inline: var(--zd_size1) ;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.dropBoxWithCustomHeader {
|
|
129
|
+
border-radius: 7px;
|
|
130
|
+
}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
require("@zohodesk/components/assets/Appearance/dark/themes/blue/blue_ComponentTheme_DarkTheme.module.css");
|
|
4
|
-
|
|
5
|
-
require("@zohodesk/components/assets/Appearance/dark/themes/blue/blue_componentsCTA_DarkModifyCategory.module.css");
|
|
3
|
+
require("@zohodesk/components/assets/Appearance/dark/themes/blue/blue_ComponentTheme_DarkTheme.module.css");
|
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
require("@zohodesk/components/assets/Appearance/light/themes/blue/blue_ComponentTheme_LightTheme.module.css");
|
|
4
|
-
|
|
5
|
-
require("@zohodesk/components/assets/Appearance/light/themes/blue/blue_componentsCTA_LightModifyCategory.module.css");
|
|
3
|
+
require("@zohodesk/components/assets/Appearance/light/themes/blue/blue_ComponentTheme_LightTheme.module.css");
|
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
require("@zohodesk/components/assets/Appearance/pureDark/themes/blue/blue_ComponentTheme_PureDarkTheme.module.css");
|
|
4
|
-
|
|
5
|
-
require("@zohodesk/components/assets/Appearance/pureDark/themes/blue/blue_componentsCTA_PureDarkModifyCategory.module.css");
|
|
3
|
+
require("@zohodesk/components/assets/Appearance/pureDark/themes/blue/blue_ComponentTheme_PureDarkTheme.module.css");
|
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
require("@zohodesk/components/assets/Appearance/dark/themes/green/green_ComponentTheme_DarkTheme.module.css");
|
|
4
|
-
|
|
5
|
-
require("@zohodesk/components/assets/Appearance/dark/themes/green/green_componentsCTA_DarkModifyCategory.module.css");
|
|
3
|
+
require("@zohodesk/components/assets/Appearance/dark/themes/green/green_ComponentTheme_DarkTheme.module.css");
|
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
require("@zohodesk/components/assets/Appearance/light/themes/green/green_ComponentTheme_LightTheme.module.css");
|
|
4
|
-
|
|
5
|
-
require("@zohodesk/components/assets/Appearance/light/themes/green/green_componentsCTA_LightModifyCategory.module.css");
|
|
3
|
+
require("@zohodesk/components/assets/Appearance/light/themes/green/green_ComponentTheme_LightTheme.module.css");
|
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
require("@zohodesk/components/assets/Appearance/pureDark/themes/green/green_ComponentTheme_PureDarkTheme.module.css");
|
|
4
|
-
|
|
5
|
-
require("@zohodesk/components/assets/Appearance/pureDark/themes/green/green_componentsCTA_PureDarkModifyCategory.module.css");
|
|
3
|
+
require("@zohodesk/components/assets/Appearance/pureDark/themes/green/green_ComponentTheme_PureDarkTheme.module.css");
|
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
require("@zohodesk/components/assets/Appearance/dark/themes/orange/orange_ComponentTheme_DarkTheme.module.css");
|
|
4
|
-
|
|
5
|
-
require("@zohodesk/components/assets/Appearance/dark/themes/orange/orange_componentsCTA_DarkModifyCategory.module.css");
|
|
3
|
+
require("@zohodesk/components/assets/Appearance/dark/themes/orange/orange_ComponentTheme_DarkTheme.module.css");
|
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
require("@zohodesk/components/assets/Appearance/light/themes/orange/orange_ComponentTheme_LightTheme.module.css");
|
|
4
|
-
|
|
5
|
-
require("@zohodesk/components/assets/Appearance/light/themes/orange/orange_componentsCTA_LightModifyCategory.module.css");
|
|
3
|
+
require("@zohodesk/components/assets/Appearance/light/themes/orange/orange_ComponentTheme_LightTheme.module.css");
|
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
require("@zohodesk/components/assets/Appearance/pureDark/themes/orange/orange_ComponentTheme_PureDarkTheme.module.css");
|
|
4
|
-
|
|
5
|
-
require("@zohodesk/components/assets/Appearance/pureDark/themes/orange/orange_componentsCTA_PureDarkModifyCategory.module.css");
|
|
3
|
+
require("@zohodesk/components/assets/Appearance/pureDark/themes/orange/orange_ComponentTheme_PureDarkTheme.module.css");
|
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
require("@zohodesk/components/assets/Appearance/dark/themes/red/red_ComponentTheme_DarkTheme.module.css");
|
|
4
|
-
|
|
5
|
-
require("@zohodesk/components/assets/Appearance/dark/themes/red/red_componentsCTA_DarkModifyCategory.module.css");
|
|
3
|
+
require("@zohodesk/components/assets/Appearance/dark/themes/red/red_ComponentTheme_DarkTheme.module.css");
|
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
require("@zohodesk/components/assets/Appearance/light/themes/red/red_ComponentTheme_LightTheme.module.css");
|
|
4
|
-
|
|
5
|
-
require("@zohodesk/components/assets/Appearance/light/themes/red/red_componentsCTA_LightModifyCategory.module.css");
|
|
3
|
+
require("@zohodesk/components/assets/Appearance/light/themes/red/red_ComponentTheme_LightTheme.module.css");
|
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
require("@zohodesk/components/assets/Appearance/pureDark/themes/red/red_ComponentTheme_PureDarkTheme.module.css");
|
|
4
|
-
|
|
5
|
-
require("@zohodesk/components/assets/Appearance/pureDark/themes/red/red_componentsCTA_PureDarkModifyCategory.module.css");
|
|
3
|
+
require("@zohodesk/components/assets/Appearance/pureDark/themes/red/red_ComponentTheme_PureDarkTheme.module.css");
|
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
require("@zohodesk/components/assets/Appearance/dark/themes/yellow/yellow_ComponentTheme_DarkTheme.module.css");
|
|
4
|
-
|
|
5
|
-
require("@zohodesk/components/assets/Appearance/dark/themes/yellow/yellow_componentsCTA_DarkModifyCategory.module.css");
|
|
3
|
+
require("@zohodesk/components/assets/Appearance/dark/themes/yellow/yellow_ComponentTheme_DarkTheme.module.css");
|
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
require("@zohodesk/components/assets/Appearance/light/themes/yellow/yellow_ComponentTheme_LightTheme.module.css");
|
|
4
|
-
|
|
5
|
-
require("@zohodesk/components/assets/Appearance/light/themes/yellow/yellow_componentsCTA_LightModifyCategory.module.css");
|
|
3
|
+
require("@zohodesk/components/assets/Appearance/light/themes/yellow/yellow_ComponentTheme_LightTheme.module.css");
|
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
require("@zohodesk/components/assets/Appearance/pureDark/themes/yellow/yellow_ComponentTheme_PureDarkTheme.module.css");
|
|
4
|
-
|
|
5
|
-
require("@zohodesk/components/assets/Appearance/pureDark/themes/yellow/yellow_componentsCTA_PureDarkModifyCategory.module.css");
|
|
3
|
+
require("@zohodesk/components/assets/Appearance/pureDark/themes/yellow/yellow_ComponentTheme_PureDarkTheme.module.css");
|