@epam/uui 5.8.1 → 5.8.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/assets/styles/effects.scss +2 -2
- package/assets/styles/inputs.scss +0 -4
- package/components/buttons/Button.d.ts +3 -6
- package/components/buttons/Button.d.ts.map +1 -1
- package/components/buttons/IconButton.d.ts +3 -7
- package/components/buttons/IconButton.d.ts.map +1 -1
- package/components/buttons/LinkButton.d.ts +5 -12
- package/components/buttons/LinkButton.d.ts.map +1 -1
- package/components/buttons/TabButton.d.ts +3 -12
- package/components/buttons/TabButton.d.ts.map +1 -1
- package/components/buttons/VerticalTabButton.d.ts +1 -9
- package/components/buttons/VerticalTabButton.d.ts.map +1 -1
- package/components/datePickers/DatePicker.d.ts.map +1 -1
- package/components/datePickers/DatePickerHeader.d.ts.map +1 -1
- package/components/datePickers/RangeDatePickerInput.d.ts.map +1 -1
- package/components/datePickers/types.d.ts +17 -9
- package/components/datePickers/types.d.ts.map +1 -1
- package/components/filters/FiltersPanel.d.ts +8 -4
- package/components/filters/FiltersPanel.d.ts.map +1 -1
- package/components/inputs/Checkbox.d.ts +3 -2
- package/components/inputs/Checkbox.d.ts.map +1 -1
- package/components/inputs/NumericInput.d.ts +3 -2
- package/components/inputs/NumericInput.d.ts.map +1 -1
- package/components/inputs/RadioInput.d.ts.map +1 -1
- package/components/inputs/Switch.d.ts +3 -2
- package/components/inputs/Switch.d.ts.map +1 -1
- package/components/inputs/TextArea.d.ts +3 -2
- package/components/inputs/TextArea.d.ts.map +1 -1
- package/components/inputs/timePicker/TimePicker.d.ts +2 -47
- package/components/inputs/timePicker/TimePicker.d.ts.map +1 -1
- package/components/inputs/timePicker/TimePickerBody.d.ts +2 -13
- package/components/inputs/timePicker/TimePickerBody.d.ts.map +1 -1
- package/components/inputs/timePicker/index.d.ts +1 -0
- package/components/inputs/timePicker/index.d.ts.map +1 -1
- package/components/inputs/timePicker/types.d.ts +63 -0
- package/components/inputs/timePicker/types.d.ts.map +1 -0
- package/components/layout/LabeledInput.d.ts +3 -2
- package/components/layout/LabeledInput.d.ts.map +1 -1
- package/components/overlays/DropdownMenu.d.ts.map +1 -1
- package/components/overlays/Modals.d.ts +1 -1
- package/components/overlays/Modals.d.ts.map +1 -1
- package/components/pickers/DataPickerBody.d.ts +8 -3
- package/components/pickers/DataPickerBody.d.ts.map +1 -1
- package/components/pickers/DataPickerCell.d.ts +3 -3
- package/components/pickers/DataPickerCell.d.ts.map +1 -1
- package/components/pickers/DataPickerFooter.d.ts +6 -2
- package/components/pickers/DataPickerFooter.d.ts.map +1 -1
- package/components/pickers/DataPickerHeader.d.ts.map +1 -1
- package/components/pickers/DataPickerRow.d.ts +9 -4
- package/components/pickers/DataPickerRow.d.ts.map +1 -1
- package/components/pickers/MobileDropdownWrapper.d.ts.map +1 -1
- package/components/pickers/PickerInput.d.ts +7 -2
- package/components/pickers/PickerInput.d.ts.map +1 -1
- package/components/pickers/PickerItem.d.ts +7 -2
- package/components/pickers/PickerItem.d.ts.map +1 -1
- package/components/pickers/PickerList.d.ts +7 -2
- package/components/pickers/PickerList.d.ts.map +1 -1
- package/components/pickers/PickerModal.d.ts.map +1 -1
- package/components/pickers/PickerToggler.d.ts +2 -0
- package/components/pickers/PickerToggler.d.ts.map +1 -1
- package/components/pickers/PickerTogglerTag.d.ts +8 -2
- package/components/pickers/PickerTogglerTag.d.ts.map +1 -1
- package/components/pickers/highlight.d.ts +1 -0
- package/components/pickers/highlight.d.ts.map +1 -1
- package/components/pickers/types.d.ts +2 -0
- package/components/pickers/types.d.ts.map +1 -1
- package/components/tables/DataRowsContainer/DataRowsGroups.d.ts.map +1 -1
- package/components/tables/DataRowsContainer/utils.d.ts.map +1 -1
- package/components/typography/RichTextView.d.ts +3 -2
- package/components/typography/RichTextView.d.ts.map +1 -1
- package/components/typography/Text.d.ts.map +1 -1
- package/components/widgets/Badge.d.ts +5 -16
- package/components/widgets/Badge.d.ts.map +1 -1
- package/components/widgets/CountIndicator.d.ts.map +1 -1
- package/components/widgets/DataRowAddons.d.ts.map +1 -1
- package/components/widgets/Tag.d.ts +8 -26
- package/components/widgets/Tag.d.ts.map +1 -1
- package/helpers/textLayout.d.ts.map +1 -1
- package/helpers/useColumnsWithFilters.d.ts +1 -1
- package/helpers/useColumnsWithFilters.d.ts.map +1 -1
- package/icons/icons.d.ts +1 -0
- package/icons/icons.d.ts.map +1 -1
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -1
- package/index.esm.js +438 -333
- package/index.esm.js.map +1 -1
- package/index.js +437 -331
- package/index.js.map +1 -1
- package/package.json +5 -5
- package/readme.md +6 -1
- package/settings.d.ts +193 -0
- package/settings.d.ts.map +1 -0
- package/stats.html +1 -19
- package/styles.css +2965 -3557
- package/styles.css.map +1 -1
package/index.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as uuiComponents from '@epam/uui-components';
|
|
2
|
-
import { Clickable, IconContainer, RadioInput as RadioInput$1, TextInput as TextInput$1, ControlGroup as ControlGroup$1, NumericInput as NumericInput$1, TextArea as TextArea$1, Dropdown as Dropdown$1, Anchor as Anchor$1, FlexRow as FlexRow$1, FlexSpacer, Text as Text$1, FlexCell as FlexCell$1, VPanel, ScrollBars as ScrollBars$1, AvatarStack as AvatarStack$1, Spinner as Spinner$1, Paginator as Paginator$1, DragHandle, Blocker as Blocker$1, PickerBodyBase, DataPickerRow as DataPickerRow$1, Avatar, usePickerModal, handleDataSourceKeyboard, PickerToggler as PickerToggler$1, usePickerInput, usePickerList, Calendar as Calendar$1, YearSelection, MonthSelection, AdaptivePanel, ModalBlocker as ModalBlocker$1, ModalWindow as ModalWindow$1, Snackbar as Snackbar$1, InputAddon as InputAddon$1, Slider as Slider$1, CalendarPresets as CalendarPresets$1, Day, uuiDaySelection, DataTableCell as DataTableCell$1, DataTableRow as DataTableRow$1, DataTableHeaderCell as DataTableHeaderCell$1, DataTableHeaderRow as DataTableHeaderRow$1, useColumnsConfiguration, Accordion as Accordion$1, DataTableSelectionProvider, DataTableFocusProvider, Burger as Burger$1, Button as Button$1, DropSpot as DropSpot$1, UploadFileToggler, ErrorCatch } from '@epam/uui-components';
|
|
2
|
+
import { Clickable, IconContainer, RadioInput as RadioInput$1, TextInput as TextInput$1, ControlGroup as ControlGroup$1, NumericInput as NumericInput$1, TextArea as TextArea$1, Dropdown as Dropdown$1, Anchor as Anchor$1, FlexRow as FlexRow$1, FlexSpacer, useDocumentDir, Text as Text$1, FlexCell as FlexCell$1, VPanel, ScrollBars as ScrollBars$1, AvatarStack as AvatarStack$1, Spinner as Spinner$1, Paginator as Paginator$1, DragHandle, Blocker as Blocker$1, PickerBodyBase, DataPickerRow as DataPickerRow$1, Avatar, usePickerModal, handleDataSourceKeyboard, PickerToggler as PickerToggler$1, usePickerInput, usePickerList, Calendar as Calendar$1, YearSelection, MonthSelection, AdaptivePanel, ModalBlocker as ModalBlocker$1, ModalWindow as ModalWindow$1, Snackbar as Snackbar$1, InputAddon as InputAddon$1, Slider as Slider$1, CalendarPresets as CalendarPresets$1, Day, uuiDaySelection, DataTableCell as DataTableCell$1, DataTableRow as DataTableRow$1, DataTableHeaderCell as DataTableHeaderCell$1, DataTableHeaderRow as DataTableHeaderRow$1, useColumnsConfiguration, Accordion as Accordion$1, DataTableSelectionProvider, DataTableFocusProvider, Burger as Burger$1, Button as Button$1, DropSpot as DropSpot$1, UploadFileToggler, ErrorCatch } from '@epam/uui-components';
|
|
3
3
|
export { Avatar, FlexSpacer, IconContainer } from '@epam/uui-components';
|
|
4
4
|
import { withMods, devLogger, uuiElement, cx as cx$1, uuiMarkers, IEditableDebouncer, UuiContext, uuiMod, directionMode, useVirtualList, useScrollShadows, i18n as i18n$1, Lens, isMobile, usePrevious, useUuiContext, useForceUpdate, getSeparatedValue, useArrayDataSource, orderBy, getOrderBetween, isFocusReceiverInsideFocusLock, mobilePopperModifier, uuiDataTableHeaderCell, DndActor, useColumnsConfig, uuiScrollShadows, Form as Form$1, useForm as useForm$1, formatBytes, useUuiError } from '@epam/uui-core';
|
|
5
5
|
import * as React from 'react';
|
|
@@ -281,16 +281,187 @@ const systemIcons = {
|
|
|
281
281
|
info: ForwardRef$L,
|
|
282
282
|
};
|
|
283
283
|
|
|
284
|
-
|
|
284
|
+
const settings = {
|
|
285
|
+
sizes: {
|
|
286
|
+
defaults: {
|
|
287
|
+
button: '36',
|
|
288
|
+
checkbox: '18',
|
|
289
|
+
countIndicator: '24',
|
|
290
|
+
dataPickerCell: '36',
|
|
291
|
+
linkButton: '36',
|
|
292
|
+
numericInput: '36',
|
|
293
|
+
pickerToggler: '36',
|
|
294
|
+
pickerItem: '36',
|
|
295
|
+
radioInput: '18',
|
|
296
|
+
switch: '18',
|
|
297
|
+
tabButton: '48',
|
|
298
|
+
tag: '36',
|
|
299
|
+
text: '36',
|
|
300
|
+
textInput: '36',
|
|
301
|
+
rangeDatePicker: '36',
|
|
302
|
+
datePicker: '36',
|
|
303
|
+
},
|
|
304
|
+
tag: {
|
|
305
|
+
countIndicator: {
|
|
306
|
+
18: '12',
|
|
307
|
+
24: '18',
|
|
308
|
+
30: '18',
|
|
309
|
+
36: '18',
|
|
310
|
+
42: '24',
|
|
311
|
+
48: '24',
|
|
312
|
+
},
|
|
313
|
+
},
|
|
314
|
+
mobileDropdownWrapper: {
|
|
315
|
+
linkButton: '48',
|
|
316
|
+
},
|
|
317
|
+
pickerInput: {
|
|
318
|
+
height: 300,
|
|
319
|
+
width: 360,
|
|
320
|
+
rowSize: {
|
|
321
|
+
mobile: '48',
|
|
322
|
+
modal: '36',
|
|
323
|
+
padding: {
|
|
324
|
+
modal: '24',
|
|
325
|
+
default: '12',
|
|
326
|
+
},
|
|
327
|
+
},
|
|
328
|
+
},
|
|
329
|
+
pickerToggler: {
|
|
330
|
+
tag: {
|
|
331
|
+
24: '18',
|
|
332
|
+
30: '24',
|
|
333
|
+
36: '30',
|
|
334
|
+
42: '36',
|
|
335
|
+
48: '42',
|
|
336
|
+
60: '48',
|
|
337
|
+
},
|
|
338
|
+
},
|
|
339
|
+
dataPickerHeader: {
|
|
340
|
+
text: {
|
|
341
|
+
fontWeight: '600',
|
|
342
|
+
size: '48',
|
|
343
|
+
},
|
|
344
|
+
},
|
|
345
|
+
dataPickerBody: {
|
|
346
|
+
flexCell: {
|
|
347
|
+
default: '36',
|
|
348
|
+
},
|
|
349
|
+
searchInput: {
|
|
350
|
+
mobile: '48',
|
|
351
|
+
},
|
|
352
|
+
},
|
|
353
|
+
pickerItem: {
|
|
354
|
+
avatar: {
|
|
355
|
+
rest: {
|
|
356
|
+
24: '18',
|
|
357
|
+
30: '24',
|
|
358
|
+
36: '30',
|
|
359
|
+
42: '36',
|
|
360
|
+
48: '36', // no design
|
|
361
|
+
},
|
|
362
|
+
multiline: {
|
|
363
|
+
24: '30',
|
|
364
|
+
30: '30',
|
|
365
|
+
36: '36',
|
|
366
|
+
42: '42',
|
|
367
|
+
48: '48', // no design
|
|
368
|
+
},
|
|
369
|
+
},
|
|
370
|
+
},
|
|
371
|
+
dataPickerCell: {
|
|
372
|
+
isBoldIcon: {
|
|
373
|
+
24: true,
|
|
374
|
+
},
|
|
375
|
+
padding: {
|
|
376
|
+
default: '12',
|
|
377
|
+
},
|
|
378
|
+
paddingLeft: {
|
|
379
|
+
default: '24',
|
|
380
|
+
},
|
|
381
|
+
text: {
|
|
382
|
+
24: '24',
|
|
383
|
+
30: '30',
|
|
384
|
+
36: '36',
|
|
385
|
+
42: '42',
|
|
386
|
+
48: '48',
|
|
387
|
+
60: '48',
|
|
388
|
+
},
|
|
389
|
+
},
|
|
390
|
+
dataPickerRow: {
|
|
391
|
+
padding: {
|
|
392
|
+
default: '24',
|
|
393
|
+
},
|
|
394
|
+
dataPickerCell: {
|
|
395
|
+
default: '36',
|
|
396
|
+
},
|
|
397
|
+
},
|
|
398
|
+
dataPickerFooter: {
|
|
399
|
+
flexRowPadding: '12',
|
|
400
|
+
switch: {
|
|
401
|
+
24: '12',
|
|
402
|
+
30: '18',
|
|
403
|
+
36: '18',
|
|
404
|
+
42: '24',
|
|
405
|
+
48: '24',
|
|
406
|
+
},
|
|
407
|
+
linkButton: {
|
|
408
|
+
24: '24',
|
|
409
|
+
30: '30',
|
|
410
|
+
36: '36',
|
|
411
|
+
42: '42',
|
|
412
|
+
48: '48',
|
|
413
|
+
mobile: '48',
|
|
414
|
+
},
|
|
415
|
+
},
|
|
416
|
+
rowAddons: {
|
|
417
|
+
checkbox: {
|
|
418
|
+
24: '12',
|
|
419
|
+
30: '18',
|
|
420
|
+
36: '18',
|
|
421
|
+
42: '18',
|
|
422
|
+
48: '18',
|
|
423
|
+
60: '18',
|
|
424
|
+
},
|
|
425
|
+
indentUnit: {
|
|
426
|
+
24: 6,
|
|
427
|
+
30: 12,
|
|
428
|
+
36: 12,
|
|
429
|
+
42: 24,
|
|
430
|
+
48: 24,
|
|
431
|
+
60: 24,
|
|
432
|
+
default: 24,
|
|
433
|
+
},
|
|
434
|
+
indentWidth: {
|
|
435
|
+
24: 12,
|
|
436
|
+
30: 18,
|
|
437
|
+
36: 18,
|
|
438
|
+
42: 24,
|
|
439
|
+
48: 24,
|
|
440
|
+
60: 24,
|
|
441
|
+
default: 12,
|
|
442
|
+
},
|
|
443
|
+
},
|
|
444
|
+
text: {
|
|
445
|
+
18: { lineHeight: 12, fontSize: 10 },
|
|
446
|
+
24: { lineHeight: 18, fontSize: 12 },
|
|
447
|
+
30: { lineHeight: 18, fontSize: 14 },
|
|
448
|
+
36: { lineHeight: 18, fontSize: 14 },
|
|
449
|
+
42: { lineHeight: 24, fontSize: 16 },
|
|
450
|
+
48: { lineHeight: 24, fontSize: 16 },
|
|
451
|
+
60: { lineHeight: 30, fontSize: 24 },
|
|
452
|
+
},
|
|
453
|
+
},
|
|
454
|
+
};
|
|
455
|
+
|
|
456
|
+
var css$1s = {"uui-typography":"ld8rtn","hero-header":"H5P0eY","promo-header":"coXgkD","uui-critical":"-z-8xi","uui-info":"N4nSXY","uui-success":"_8pw9ry","uui-warning":"F1QbVh","uui-highlight":"fuIDUL","uui-typography-size-12":"O9Ei-t","uui-typography-size-14":"yKFPf9","uui-typography-size-16":"_6OsXeH","root":"uDhGA1","uuiTypography":"ld8rtn","heroHeader":"H5P0eY","promoHeader":"coXgkD","uuiCritical":"-z-8xi","uuiInfo":"N4nSXY","uuiSuccess":"_8pw9ry","uuiWarning":"F1QbVh","uuiHighlight":"fuIDUL","uuiTypographySize12":"O9Ei-t","uuiTypographySize14":"yKFPf9","uuiTypographySize16":"_6OsXeH"};
|
|
285
457
|
|
|
286
|
-
const DEFAULT_SIZE$8 = '36';
|
|
287
458
|
function applyButtonMods(mods) {
|
|
288
459
|
return [
|
|
289
460
|
css$1s.root,
|
|
290
461
|
'uui-button',
|
|
291
462
|
`uui-fill-${mods.fill || 'solid'}`,
|
|
292
463
|
`uui-color-${mods.color || 'primary'}`,
|
|
293
|
-
`uui-size-${mods.size ||
|
|
464
|
+
`uui-size-${mods.size || settings.sizes.defaults.button}`,
|
|
294
465
|
];
|
|
295
466
|
}
|
|
296
467
|
const Button = /* @__PURE__ */withMods(uuiComponents.Button, applyButtonMods, () => {
|
|
@@ -300,7 +471,7 @@ const Button = /* @__PURE__ */withMods(uuiComponents.Button, applyButtonMods, ()
|
|
|
300
471
|
};
|
|
301
472
|
});
|
|
302
473
|
|
|
303
|
-
var css$1r = {"root":"
|
|
474
|
+
var css$1r = {"root":"F68pSy"};
|
|
304
475
|
|
|
305
476
|
function applyIconButtonMods(props) {
|
|
306
477
|
return ['uui-icon_button', `uui-color-${props.color || 'neutral'}`, css$1r.root];
|
|
@@ -317,7 +488,6 @@ const IconButton = /* @__PURE__ */withMods(uuiComponents.IconButton, applyIconBu
|
|
|
317
488
|
}
|
|
318
489
|
return {
|
|
319
490
|
dropdownIcon: props.dropdownIcon || systemIcons.foldingArrow,
|
|
320
|
-
size: props.size && Number(props.size),
|
|
321
491
|
};
|
|
322
492
|
});
|
|
323
493
|
|
|
@@ -338,15 +508,14 @@ function getIconClass(props) {
|
|
|
338
508
|
return [classList['has-left-icon'] ? 'uui-has-left-icon' : 'uui-no-left-icon', classList['has-right-icon'] ? 'uui-has-right-icon' : 'uui-no-right-icon'];
|
|
339
509
|
}
|
|
340
510
|
|
|
341
|
-
var css$1q = {"uui-typography":"
|
|
511
|
+
var css$1q = {"uui-typography":"hFJIef","hero-header":"VIUAa7","promo-header":"gylDmP","uui-critical":"SZ4R-X","uui-info":"BKG7RR","uui-success":"X76j1W","uui-warning":"DxRZlc","uui-highlight":"RPTkd5","uui-typography-size-12":"DtICEZ","uui-typography-size-14":"b4gopb","uui-typography-size-16":"rQM7Xz","root":"ajngK-","uuiTypography":"hFJIef","heroHeader":"VIUAa7","promoHeader":"gylDmP","uuiCritical":"SZ4R-X","uuiInfo":"BKG7RR","uuiSuccess":"X76j1W","uuiWarning":"DxRZlc","uuiHighlight":"RPTkd5","uuiTypographySize12":"DtICEZ","uuiTypographySize14":"b4gopb","uuiTypographySize16":"rQM7Xz"};
|
|
342
512
|
|
|
343
|
-
const DEFAULT_SIZE$7 = '36';
|
|
344
513
|
const DEFAULT_COLOR = 'primary';
|
|
345
514
|
function applyLinkButtonMods(mods) {
|
|
346
515
|
return [
|
|
347
516
|
'uui-link_button',
|
|
348
517
|
css$1q.root,
|
|
349
|
-
`uui-size-${mods.size ||
|
|
518
|
+
`uui-size-${mods.size || settings.sizes.defaults.linkButton}`,
|
|
350
519
|
...getIconClass(mods),
|
|
351
520
|
`uui-color-${mods.color || DEFAULT_COLOR}`,
|
|
352
521
|
];
|
|
@@ -370,25 +539,25 @@ const LinkButton = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
370
539
|
props.isDropdown && (React.createElement(IconContainer, { icon: DropdownIcon, flipY: props.isOpen }))));
|
|
371
540
|
});
|
|
372
541
|
|
|
373
|
-
var css$1p = {"root":"
|
|
542
|
+
var css$1p = {"root":"sp1Ayu"};
|
|
374
543
|
|
|
375
544
|
const CountIndicator = /* @__PURE__ */forwardRef((props, ref) => {
|
|
376
545
|
return (React__default.createElement("div", { ref: ref, className: cx([
|
|
377
546
|
css$1p.root,
|
|
378
547
|
'uui-count_indicator',
|
|
379
|
-
|
|
548
|
+
`uui-size-${props.size || settings.sizes.defaults.countIndicator}`,
|
|
380
549
|
props.color && `uui-color-${props.color}`,
|
|
381
550
|
props.cx,
|
|
382
551
|
]) }, props.caption));
|
|
383
552
|
});
|
|
384
553
|
|
|
385
|
-
var css$1o = {"uui-typography":"
|
|
554
|
+
var css$1o = {"uui-typography":"uXTdvI","hero-header":"IJmAat","promo-header":"vr-XAu","uui-critical":"mjxb91","uui-info":"_1eKrdY","uui-success":"vFtlNU","uui-warning":"VsmJq8","uui-highlight":"w5EfFa","uui-typography-size-12":"V6xUS7","uui-typography-size-14":"mdA7W8","uui-typography-size-16":"tOv9Gr","root":"_3rpgrD","withNotify":"RkTRVR","uuiTypography":"uXTdvI","heroHeader":"IJmAat","promoHeader":"vr-XAu","uuiCritical":"mjxb91","uuiInfo":"_1eKrdY","uuiSuccess":"vFtlNU","uuiWarning":"VsmJq8","uuiHighlight":"w5EfFa","uuiTypographySize12":"V6xUS7","uuiTypographySize14":"mdA7W8","uuiTypographySize16":"tOv9Gr"};
|
|
386
555
|
|
|
387
556
|
const TabButton = /* @__PURE__ */React__default.forwardRef((props, ref) => {
|
|
388
557
|
const styles = [
|
|
389
558
|
css$1o.root,
|
|
390
559
|
'uui-tab-button',
|
|
391
|
-
|
|
560
|
+
`uui-size-${props.size || settings.sizes.defaults.tabButton}`,
|
|
392
561
|
props.withNotify && css$1o.withNotify,
|
|
393
562
|
...getIconClass(props),
|
|
394
563
|
props.cx,
|
|
@@ -397,14 +566,14 @@ const TabButton = /* @__PURE__ */React__default.forwardRef((props, ref) => {
|
|
|
397
566
|
const ClearIcon = props.clearIcon ? props.clearIcon : systemIcons.clear;
|
|
398
567
|
return (React__default.createElement(Clickable, Object.assign({}, props, { rawProps: Object.assign({ role: 'tab', 'aria-haspopup': props.isDropdown, 'aria-expanded': props.isOpen }, props.rawProps), cx: styles, ref: ref }),
|
|
399
568
|
props.icon && props.iconPosition !== 'right' && (React__default.createElement(IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
400
|
-
props.caption && (React__default.createElement("div", { className: cx$1(uuiElement.caption
|
|
401
|
-
props.count !== undefined && props.count !== null && (React__default.createElement(CountIndicator, { color:
|
|
569
|
+
props.caption && (React__default.createElement("div", { className: cx$1(uuiElement.caption) }, props.caption)),
|
|
570
|
+
props.count !== undefined && props.count !== null && (React__default.createElement(CountIndicator, { color: "neutral", size: "18", caption: props.count })),
|
|
402
571
|
props.icon && props.iconPosition === 'right' && (React__default.createElement(IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
403
572
|
props.isDropdown && (React__default.createElement(IconContainer, { icon: DropdownIcon, flipY: props.isOpen })),
|
|
404
573
|
props.onClear && !props.isDisabled && (React__default.createElement(IconContainer, { cx: uuiMarkers.clickable, icon: ClearIcon, onClick: props.onClear }))));
|
|
405
574
|
});
|
|
406
575
|
|
|
407
|
-
var css$1n = {"uui-typography":"
|
|
576
|
+
var css$1n = {"uui-typography":"yOf2Q6","hero-header":"EU-RVc","promo-header":"_6ArztN","uui-critical":"EItrsX","uui-info":"d0DXMc","uui-success":"_9QsShS","uui-warning":"_5DAN2R","uui-highlight":"sJYu8a","uui-typography-size-12":"AAIWuM","uui-typography-size-14":"ERAFSD","uui-typography-size-16":"loYJEF","root":"_5JbrAf","uuiTypography":"yOf2Q6","heroHeader":"EU-RVc","promoHeader":"_6ArztN","uuiCritical":"EItrsX","uuiInfo":"d0DXMc","uuiSuccess":"_9QsShS","uuiWarning":"_5DAN2R","uuiHighlight":"sJYu8a","uuiTypographySize12":"AAIWuM","uuiTypographySize14":"ERAFSD","uuiTypographySize16":"loYJEF"};
|
|
408
577
|
|
|
409
578
|
function applyVerticalTabButtonMods() {
|
|
410
579
|
return [css$1n.root];
|
|
@@ -426,12 +595,12 @@ var SvgContentMinusOutline = function SvgContentMinusOutline(props, ref) {
|
|
|
426
595
|
};
|
|
427
596
|
var ForwardRef$B = /*#__PURE__*/forwardRef(SvgContentMinusOutline);
|
|
428
597
|
|
|
429
|
-
var css$1m = {"uui-typography":"
|
|
598
|
+
var css$1m = {"uui-typography":"LrllBd","hero-header":"a7VigR","promo-header":"fSL2M8","uui-critical":"ktemsX","uui-info":"opYXMn","uui-success":"qDH7cI","uui-warning":"NxG3aW","uui-highlight":"LukO4n","uui-typography-size-12":"SsLLAL","uui-typography-size-14":"n52cvF","uui-typography-size-16":"_5oElyx","root":"BliEJO","mode-cell":"uXQ9tQ","uuiTypography":"LrllBd","heroHeader":"a7VigR","promoHeader":"fSL2M8","uuiCritical":"ktemsX","uuiInfo":"opYXMn","uuiSuccess":"qDH7cI","uuiWarning":"NxG3aW","uuiHighlight":"LukO4n","uuiTypographySize12":"SsLLAL","uuiTypographySize14":"n52cvF","uuiTypographySize16":"_5oElyx","modeCell":"uXQ9tQ"};
|
|
430
599
|
|
|
431
600
|
function applyCheckboxMods(mods) {
|
|
432
601
|
return [
|
|
433
602
|
css$1m.root,
|
|
434
|
-
|
|
603
|
+
`uui-size-${mods.size || settings.sizes.defaults.checkbox}`,
|
|
435
604
|
css$1m['mode-' + (mods.mode || 'form')],
|
|
436
605
|
'uui-color-primary',
|
|
437
606
|
];
|
|
@@ -446,8 +615,6 @@ const applyUUICheckboxProps = (props) => {
|
|
|
446
615
|
};
|
|
447
616
|
const Checkbox = /* @__PURE__ */withMods(uuiComponents.Checkbox, applyCheckboxMods, applyUUICheckboxProps);
|
|
448
617
|
|
|
449
|
-
var css$1l = {"uui-typography":"_7R0jjV","hero-header":"d78dAh","promo-header":"DwzoS-","uui-critical":"O6RJqn","uui-info":"_2ntH2f","uui-success":"BEQ-hZ","uui-warning":"i9ALqx","uui-highlight":"_70hDuG","uui-typography-size-12":"hpkc1P","uui-typography-size-14":"xUyQUh","uui-typography-size-16":"VQhXYY","root":"_2YQlTt","size-18":"EB22NN","size-12":"L20e7v","uuiTypography":"_7R0jjV","heroHeader":"d78dAh","promoHeader":"DwzoS-","uuiCritical":"O6RJqn","uuiInfo":"_2ntH2f","uuiSuccess":"BEQ-hZ","uuiWarning":"i9ALqx","uuiHighlight":"_70hDuG","uuiTypographySize12":"hpkc1P","uuiTypographySize14":"xUyQUh","uuiTypographySize16":"VQhXYY","size18":"EB22NN","size12":"L20e7v"};
|
|
450
|
-
|
|
451
618
|
var _path$A;
|
|
452
619
|
function _extends$A() { _extends$A = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$A.apply(this, arguments); }
|
|
453
620
|
var SvgRadioDotFill = function SvgRadioDotFill(props, ref) {
|
|
@@ -463,21 +630,25 @@ var SvgRadioDotFill = function SvgRadioDotFill(props, ref) {
|
|
|
463
630
|
};
|
|
464
631
|
var ForwardRef$A = /*#__PURE__*/forwardRef(SvgRadioDotFill);
|
|
465
632
|
|
|
633
|
+
var css$1l = {"uui-typography":"qVY5g8","hero-header":"XJcDdZ","promo-header":"YFkpng","uui-critical":"Ik3yZi","uui-info":"Lj3WFm","uui-success":"tWHloI","uui-warning":"aHLVVk","uui-highlight":"Z189yi","uui-typography-size-12":"Q0cAtS","uui-typography-size-14":"iB6dBl","uui-typography-size-16":"Gkbwsp","root":"JLDNGD","uuiTypography":"qVY5g8","heroHeader":"XJcDdZ","promoHeader":"YFkpng","uuiCritical":"Ik3yZi","uuiInfo":"Lj3WFm","uuiSuccess":"tWHloI","uuiWarning":"aHLVVk","uuiHighlight":"Z189yi","uuiTypographySize12":"Q0cAtS","uuiTypographySize14":"iB6dBl","uuiTypographySize16":"Gkbwsp"};
|
|
634
|
+
|
|
466
635
|
function applyRadioInputMods(mods) {
|
|
467
636
|
return [
|
|
468
637
|
css$1l.root,
|
|
469
|
-
|
|
638
|
+
`uui-size-${mods.size || settings.sizes.defaults.radioInput}`,
|
|
470
639
|
'uui-radio-input-container',
|
|
471
640
|
'uui-color-primary',
|
|
472
641
|
];
|
|
473
642
|
}
|
|
474
643
|
const RadioInput = /* @__PURE__ */withMods(RadioInput$1, applyRadioInputMods, (props) => ({ icon: props.icon ? props.icon : ForwardRef$A }));
|
|
475
644
|
|
|
476
|
-
var css$1k = {"root":"
|
|
645
|
+
var css$1k = {"root":"bZvSg8"};
|
|
477
646
|
|
|
478
647
|
function applySwitchMods(mods) {
|
|
479
648
|
return [
|
|
480
|
-
css$1k.root,
|
|
649
|
+
css$1k.root,
|
|
650
|
+
`uui-size-${mods.size || settings.sizes.defaults.switch}`,
|
|
651
|
+
'uui-color-primary',
|
|
481
652
|
];
|
|
482
653
|
}
|
|
483
654
|
const Switch = /* @__PURE__ */withMods(uuiComponents.Switch, applySwitchMods);
|
|
@@ -539,14 +710,13 @@ var EditMode;
|
|
|
539
710
|
EditMode["INLINE"] = "inline";
|
|
540
711
|
})(EditMode || (EditMode = {}));
|
|
541
712
|
|
|
542
|
-
var textInputCss = {"uui-typography":"
|
|
713
|
+
var textInputCss = {"uui-typography":"BDieXP","hero-header":"sxjgyf","promo-header":"Bb-9U7","uui-critical":"Mcd18r","uui-info":"abvCOZ","uui-success":"_9fs8qv","uui-warning":"QmKfcL","uui-highlight":"_8OzzlG","uui-typography-size-12":"Xw4U2v","uui-typography-size-14":"O9IOO7","uui-typography-size-16":"dnuuH2","root":"D-EgvO","mode-form":"fDb-xU","mode-inline":"_9OlmhC","mode-cell":"yTP4fT","uuiTypography":"BDieXP","heroHeader":"sxjgyf","promoHeader":"Bb-9U7","uuiCritical":"Mcd18r","uuiInfo":"abvCOZ","uuiSuccess":"_9fs8qv","uuiWarning":"QmKfcL","uuiHighlight":"_8OzzlG","uuiTypographySize12":"Xw4U2v","uuiTypographySize14":"O9IOO7","uuiTypographySize16":"dnuuH2","modeForm":"fDb-xU","modeInline":"_9OlmhC","modeCell":"yTP4fT"};
|
|
543
714
|
|
|
544
|
-
const DEFAULT_SIZE$6 = '36';
|
|
545
715
|
const DEFAULT_MODE$3 = EditMode.FORM;
|
|
546
716
|
function applyTextInputMods(mods) {
|
|
547
717
|
return [
|
|
548
718
|
textInputCss.root,
|
|
549
|
-
|
|
719
|
+
`uui-size-${mods.size || settings.sizes.defaults.textInput}`,
|
|
550
720
|
textInputCss['mode-' + (mods.mode || DEFAULT_MODE$3)],
|
|
551
721
|
];
|
|
552
722
|
}
|
|
@@ -566,7 +736,7 @@ const SearchInput = /* @__PURE__ */React__default.forwardRef((props, ref) => {
|
|
|
566
736
|
} })));
|
|
567
737
|
});
|
|
568
738
|
|
|
569
|
-
var css$1j = {"root":"
|
|
739
|
+
var css$1j = {"root":"POlyAL"};
|
|
570
740
|
|
|
571
741
|
const ControlGroup = /* @__PURE__ */withMods(ControlGroup$1, () => [css$1j.root]);
|
|
572
742
|
|
|
@@ -575,16 +745,14 @@ function MultiSwitchComponent(props, ref) {
|
|
|
575
745
|
}
|
|
576
746
|
const MultiSwitch = /* @__PURE__ */React.forwardRef(MultiSwitchComponent);
|
|
577
747
|
|
|
578
|
-
var css$1i = {"uui-typography":"
|
|
748
|
+
var css$1i = {"uui-typography":"b-2ec6","hero-header":"L-DNHF","promo-header":"bT5sJk","uui-critical":"GwhCRw","uui-info":"HToS-H","uui-success":"Gd1LHH","uui-warning":"kI6aqz","uui-highlight":"IPVNSb","uui-typography-size-12":"A09BUu","uui-typography-size-14":"tg7yJE","uui-typography-size-16":"DQjr4U","root":"DGB71W","mode-form":"_5aF7lb","mode-cell":"_9S-m3y","uuiTypography":"b-2ec6","heroHeader":"L-DNHF","promoHeader":"bT5sJk","uuiCritical":"GwhCRw","uuiInfo":"HToS-H","uuiSuccess":"Gd1LHH","uuiWarning":"kI6aqz","uuiHighlight":"IPVNSb","uuiTypographySize12":"A09BUu","uuiTypographySize14":"tg7yJE","uuiTypographySize16":"DQjr4U","modeForm":"_5aF7lb","modeCell":"_9S-m3y"};
|
|
579
749
|
|
|
580
|
-
const DEFAULT_SIZE$5 = '36';
|
|
581
750
|
const DEFAULT_MODE$2 = EditMode.FORM;
|
|
582
751
|
function applyNumericInputMods(mods) {
|
|
583
752
|
return [
|
|
584
753
|
textInputCss.root,
|
|
585
754
|
css$1i.root,
|
|
586
|
-
|
|
587
|
-
textInputCss['size-' + (mods.size || DEFAULT_SIZE$5)],
|
|
755
|
+
`uui-size-${mods.size || settings.sizes.defaults.numericInput}`,
|
|
588
756
|
textInputCss['mode-' + (mods.mode || DEFAULT_MODE$2)],
|
|
589
757
|
];
|
|
590
758
|
}
|
|
@@ -598,21 +766,20 @@ const NumericInput = /* @__PURE__ */withMods(NumericInput$1, applyNumericInputMo
|
|
|
598
766
|
};
|
|
599
767
|
});
|
|
600
768
|
|
|
601
|
-
var css$1h = {"uui-typography":"
|
|
769
|
+
var css$1h = {"uui-typography":"bgpj9K","hero-header":"oUKCQk","promo-header":"tKVeeT","uui-critical":"aHsX4g","uui-info":"-lxJpQ","uui-success":"apS7XP","uui-warning":"_0nsOc-","uui-highlight":"Wdpz-8","uui-typography-size-12":"ujHdcE","uui-typography-size-14":"Mrku9Y","uui-typography-size-16":"bnkCgA","root":"ZtaLYc","mode-form":"_1kNhbR","mode-cell":"lLzvOZ","mode-inline":"_2WNKed","size-24":"JoJql6","size-30":"ixUr0v","size-36":"_3pUOFW","size-42":"GWY9GO","size-48":"VlKjHe","uuiTypography":"bgpj9K","heroHeader":"oUKCQk","promoHeader":"tKVeeT","uuiCritical":"aHsX4g","uuiInfo":"-lxJpQ","uuiSuccess":"apS7XP","uuiWarning":"_0nsOc-","uuiHighlight":"Wdpz-8","uuiTypographySize12":"ujHdcE","uuiTypographySize14":"Mrku9Y","uuiTypographySize16":"bnkCgA","modeForm":"_1kNhbR","modeCell":"lLzvOZ","modeInline":"_2WNKed","size24":"JoJql6","size30":"ixUr0v","size36":"_3pUOFW","size42":"GWY9GO","size48":"VlKjHe"};
|
|
602
770
|
|
|
603
|
-
const DEFAULT_SIZE$
|
|
771
|
+
const DEFAULT_SIZE$3 = '36';
|
|
604
772
|
const DEFAULT_MODE$1 = EditMode.FORM;
|
|
605
773
|
function applyTextAreaMods(mods) {
|
|
606
774
|
return [
|
|
607
775
|
css$1h.root,
|
|
608
|
-
css$1h['size-' + (mods.size || DEFAULT_SIZE$
|
|
776
|
+
css$1h['size-' + (mods.size || DEFAULT_SIZE$3)],
|
|
609
777
|
css$1h['mode-' + (mods.mode || DEFAULT_MODE$1)],
|
|
610
778
|
];
|
|
611
779
|
}
|
|
612
780
|
const TextArea = /* @__PURE__ */withMods(TextArea$1, applyTextAreaMods, (props) => {
|
|
613
781
|
return {
|
|
614
782
|
autoSize: props.mode === EditMode.CELL ? true : props.autoSize,
|
|
615
|
-
maxLength: props.mode === EditMode.CELL ? undefined : props.maxLength,
|
|
616
783
|
};
|
|
617
784
|
});
|
|
618
785
|
|
|
@@ -700,7 +867,7 @@ var SvgNotificationInfoFill = function SvgNotificationInfoFill(props, ref) {
|
|
|
700
867
|
};
|
|
701
868
|
var ForwardRef$w = /*#__PURE__*/forwardRef(SvgNotificationInfoFill);
|
|
702
869
|
|
|
703
|
-
var css$1g = {"uui-typography":"
|
|
870
|
+
var css$1g = {"uui-typography":"mD2F4V","hero-header":"_9PeOlW","promo-header":"okPukj","uui-critical":"jDXVMK","uui-info":"Vi6ciD","uui-success":"_5TMAUJ","uui-warning":"_7wGRzM","uui-highlight":"mfXTAc","uui-typography-size-12":"SBZ--v","uui-typography-size-14":"naXJlJ","uui-typography-size-16":"E4mL-P","root":"zqwWms","icon-wrapper":"_8l4Rj9","alert-wrapper":"juUWKq","size-48":"lcRR2c","size-36":"DI-dMB","action-wrapper":"EQ-1Xl","action-icon":"NnHKMQ","action-link":"-yPQWq","close-icon":"aR8bAy","main-path":"vehcvf","content":"_2r22hd","uuiTypography":"mD2F4V","heroHeader":"_9PeOlW","promoHeader":"okPukj","uuiCritical":"jDXVMK","uuiInfo":"Vi6ciD","uuiSuccess":"_5TMAUJ","uuiWarning":"_7wGRzM","uuiHighlight":"mfXTAc","uuiTypographySize12":"SBZ--v","uuiTypographySize14":"naXJlJ","uuiTypographySize16":"E4mL-P","iconWrapper":"_8l4Rj9","alertWrapper":"juUWKq","size48":"lcRR2c","size36":"DI-dMB","actionWrapper":"EQ-1Xl","actionIcon":"NnHKMQ","actionLink":"-yPQWq","closeIcon":"aR8bAy","mainPath":"vehcvf"};
|
|
704
871
|
|
|
705
872
|
const Alert = /* @__PURE__ */React.forwardRef((props, ref) => (React.createElement("div", Object.assign({ role: "alert", ref: ref, className: cx('uui-alert', css$1g.root, css$1g.alertWrapper, props.color && `uui-color-${props.color}`, props.cx, (props.size === '36' ? css$1g.size36 : css$1g.size48)) }, props.rawProps),
|
|
706
873
|
React.createElement("div", { className: css$1g.mainPath },
|
|
@@ -717,7 +884,7 @@ const ErrorAlert = /* @__PURE__ */React.forwardRef((props, ref) => React.createE
|
|
|
717
884
|
|
|
718
885
|
const Dropdown = /* @__PURE__ */withMods(Dropdown$1);
|
|
719
886
|
|
|
720
|
-
var css$1f = {"root":"
|
|
887
|
+
var css$1f = {"root":"Sp3ZzV"};
|
|
721
888
|
|
|
722
889
|
function applyDropdownContainerMods(mods) {
|
|
723
890
|
return [
|
|
@@ -728,7 +895,7 @@ function applyDropdownContainerMods(mods) {
|
|
|
728
895
|
}
|
|
729
896
|
const DropdownContainer = /* @__PURE__ */withMods(uuiComponents.DropdownContainer, applyDropdownContainerMods);
|
|
730
897
|
|
|
731
|
-
var css$1e = {"uui-typography":"
|
|
898
|
+
var css$1e = {"uui-typography":"woop3H","hero-header":"fmCz04","promo-header":"cGXH6X","uui-critical":"_7WrJ-c","uui-info":"K80tZ4","uui-success":"CCLtPn","uui-warning":"pkRxb0","uui-highlight":"KufE25","uui-typography-size-12":"SL2APC","uui-typography-size-14":"_3QCMf5","uui-typography-size-16":"w7NL6D","submenu-root-item":"-I7u-D","icon-after":"Mag4Zs","icon-check":"cYpE80","splitter-root":"hMYMyr","splitter":"q1OV-9","header-root":"amrGxS","item-root":"PDGJA7","icon":"rWRhy-","link":"THdAwf","indent":"xquR-o","selected-mark":"yiUoRe","uuiTypography":"woop3H","heroHeader":"fmCz04","promoHeader":"cGXH6X","uuiCritical":"_7WrJ-c","uuiInfo":"K80tZ4","uuiSuccess":"CCLtPn","uuiWarning":"pkRxb0","uuiHighlight":"KufE25","uuiTypographySize12":"SL2APC","uuiTypographySize14":"_3QCMf5","uuiTypographySize16":"w7NL6D","submenuRootItem":"-I7u-D","iconAfter":"Mag4Zs","iconCheck":"cYpE80","splitterRoot":"hMYMyr","headerRoot":"amrGxS","itemRoot":"PDGJA7","selectedMark":"yiUoRe"};
|
|
732
899
|
|
|
733
900
|
var IDropdownControlKeys;
|
|
734
901
|
(function (IDropdownControlKeys) {
|
|
@@ -823,7 +990,8 @@ function DropdownSubMenu(props) {
|
|
|
823
990
|
name: 'offset',
|
|
824
991
|
options: {
|
|
825
992
|
offset: ({ placement }) => {
|
|
826
|
-
if (placement === 'right-start'
|
|
993
|
+
if (placement === 'right-start'
|
|
994
|
+
|| placement === 'left-start') {
|
|
827
995
|
return [-6, 0];
|
|
828
996
|
}
|
|
829
997
|
else {
|
|
@@ -833,7 +1001,8 @@ function DropdownSubMenu(props) {
|
|
|
833
1001
|
},
|
|
834
1002
|
},
|
|
835
1003
|
];
|
|
836
|
-
|
|
1004
|
+
const dir = useDocumentDir();
|
|
1005
|
+
return (React__default.createElement(Dropdown$1, { openOnHover: props.openOnHover || true, closeOnMouseLeave: "boundary", openDelay: 400, closeDelay: 400, placement: dir === 'rtl' ? 'left-start' : 'right-start', modifiers: subMenuModifiers, renderBody: (dropdownProps) => React__default.createElement(DropdownMenuBody, Object.assign({ closeOnKey: IDropdownControlKeys.LEFT_ARROW }, props, dropdownProps)), renderTarget: (_a) => {
|
|
837
1006
|
var { toggleDropdownOpening } = _a, targetProps = __rest(_a, ["toggleDropdownOpening"]);
|
|
838
1007
|
return (React__default.createElement(DropdownMenuButton, Object.assign({ cx: cx$1(css$1e.submenuRootItem), icon: systemIcons.foldingArrow, iconPosition: "right", isDropdown: true, toggleDropdownOpening: toggleDropdownOpening }, props, targetProps)));
|
|
839
1008
|
} }));
|
|
@@ -859,7 +1028,7 @@ function DropdownMenuSwitchButton(props) {
|
|
|
859
1028
|
React__default.createElement(Switch, { value: isSelected, tabIndex: -1, onValueChange: onHandleValueChange })));
|
|
860
1029
|
}
|
|
861
1030
|
|
|
862
|
-
var css$1d = {"uui-typography":"
|
|
1031
|
+
var css$1d = {"uui-typography":"FveBYs","hero-header":"IcrkFS","promo-header":"aua6DV","uui-critical":"_8lGj4W","uui-info":"S3-mBt","uui-success":"Vmdwl1","uui-warning":"YVJWYb","uui-highlight":"_9iqJxW","uui-typography-size-12":"jBEdeh","uui-typography-size-14":"DXcqra","uui-typography-size-16":"hTvlxe","root":"K3Z0q8","mode-block":"_8YHwjE","mode-inline":"xDDW4U","padding-0":"HsgsK8","padding-6":"_0s2rP8","padding-12":"VhdlEW","padding-18":"uNmNDq","uuiTypography":"FveBYs","heroHeader":"IcrkFS","promoHeader":"aua6DV","uuiCritical":"_8lGj4W","uuiInfo":"S3-mBt","uuiSuccess":"Vmdwl1","uuiWarning":"YVJWYb","uuiHighlight":"_9iqJxW","uuiTypographySize12":"jBEdeh","uuiTypographySize14":"DXcqra","uuiTypographySize16":"hTvlxe","modeBlock":"_8YHwjE","modeInline":"xDDW4U","padding0":"HsgsK8","padding6":"_0s2rP8","padding12":"VhdlEW","padding18":"uNmNDq"};
|
|
863
1032
|
|
|
864
1033
|
const getMode = (mode) => {
|
|
865
1034
|
return mode || 'block';
|
|
@@ -875,7 +1044,7 @@ const Accordion = /* @__PURE__ */withMods(uuiComponents.Accordion, applyAccordio
|
|
|
875
1044
|
dropdownIcon: mods.dropdownIcon !== null && systemIcons.foldingArrow,
|
|
876
1045
|
}));
|
|
877
1046
|
|
|
878
|
-
var css$1c = {"uui-typography":"
|
|
1047
|
+
var css$1c = {"uui-typography":"XN2dKc","hero-header":"_657qu0","promo-header":"x540cD","uui-critical":"_3iZDgS","uui-info":"UI6rQL","uui-success":"th5Df-","uui-warning":"igHdGp","uui-highlight":"mPaMxV","uui-typography-size-12":"WRvg0U","uui-typography-size-14":"vtCi-Y","uui-typography-size-16":"Xfnkvl","root":"-dGVJG","border-top":"NpmHzx","border-bottom":"c2QZo4","top-shadow":"n8yNrO","size-24":"uw-hi-","size-30":"YkcDgU","size-36":"F2CGkQ","size-42":"GTOw-y","size-48":"uynXTq","padding-6":"bSlTCM","padding-12":"R0jZLu","padding-18":"RZB40m","padding-24":"yceNTJ","margin-24":"PrTBEE","margin-12":"knBEF6","vPadding-12":"Z0ujWd","vPadding-18":"_7PDmoH","vPadding-24":"uZkD6A","vPadding-36":"_1ErRtO","vPadding-48":"IhrMqc","spacing-6":"FGbk-C","spacing-12":"tzKBSQ","spacing-18":"zRKOl7","uui-surface-main":"j4jUlg","uuiTypography":"XN2dKc","heroHeader":"_657qu0","promoHeader":"x540cD","uuiCritical":"_3iZDgS","uuiInfo":"UI6rQL","uuiSuccess":"th5Df-","uuiWarning":"igHdGp","uuiHighlight":"mPaMxV","uuiTypographySize12":"WRvg0U","uuiTypographySize14":"vtCi-Y","uuiTypographySize16":"Xfnkvl","borderTop":"NpmHzx","borderBottom":"c2QZo4","topShadow":"n8yNrO","size24":"uw-hi-","size30":"YkcDgU","size36":"F2CGkQ","size42":"GTOw-y","size48":"uynXTq","padding6":"bSlTCM","padding12":"R0jZLu","padding18":"RZB40m","padding24":"yceNTJ","margin24":"PrTBEE","margin12":"knBEF6","vPadding12":"Z0ujWd","vPadding18":"_7PDmoH","vPadding24":"uZkD6A","vPadding36":"_1ErRtO","vPadding48":"IhrMqc","spacing6":"FGbk-C","spacing12":"tzKBSQ","spacing18":"zRKOl7","uuiSurfaceMain":"j4jUlg"};
|
|
879
1048
|
|
|
880
1049
|
const FlexCell = /* @__PURE__ */withMods(FlexCell$1, () => [css$1c.flexCell]);
|
|
881
1050
|
|
|
@@ -899,7 +1068,7 @@ const FlexRow = /* @__PURE__ */withMods(FlexRow$1, (props) => {
|
|
|
899
1068
|
];
|
|
900
1069
|
});
|
|
901
1070
|
|
|
902
|
-
var css$1b = {"root":"
|
|
1071
|
+
var css$1b = {"root":"UQr8nu","margin-24":"_7Zgwa1","padding-12":"_9qqR7v","padding-24":"oKFtJl","shadow":"PHtZYV","uui-surface-main":"E6nrFi","margin24":"_7Zgwa1","padding12":"_9qqR7v","padding24":"oKFtJl","uuiSurfaceMain":"E6nrFi"};
|
|
903
1072
|
|
|
904
1073
|
const Panel = /* @__PURE__ */withMods(VPanel, (props) => [
|
|
905
1074
|
'uui-panel',
|
|
@@ -909,7 +1078,7 @@ const Panel = /* @__PURE__ */withMods(VPanel, (props) => [
|
|
|
909
1078
|
props.background && css$1b[`uui-${props.background}`],
|
|
910
1079
|
]);
|
|
911
1080
|
|
|
912
|
-
var css$1a = {"root":"
|
|
1081
|
+
var css$1a = {"root":"JOJyjI"};
|
|
913
1082
|
|
|
914
1083
|
function applyTooltipMods(mods) {
|
|
915
1084
|
return [
|
|
@@ -919,18 +1088,18 @@ function applyTooltipMods(mods) {
|
|
|
919
1088
|
}
|
|
920
1089
|
const Tooltip = /* @__PURE__ */withMods(uuiComponents.Tooltip, applyTooltipMods);
|
|
921
1090
|
|
|
922
|
-
var css$19 = {"uui-typography":"
|
|
1091
|
+
var css$19 = {"uui-typography":"kGc7P6","hero-header":"Pji5be","promo-header":"HPHtGX","uui-critical":"zKLAAP","uui-info":"DMPhIx","uui-success":"U8a-ve","uui-warning":"ECKJHv","uui-highlight":"PuMqwO","uui-typography-size-12":"_9ktqw9","uui-typography-size-14":"fhsTop","uui-typography-size-16":"KpKhgG","root":"_0iQvMW","size-24":"Vb-zHX","size-30":"DkItdg","size-36":"fGgf-V","size-42":"wTkiu5","size-48":"-EewIj","uuiTypography":"kGc7P6","heroHeader":"Pji5be","promoHeader":"HPHtGX","uuiCritical":"zKLAAP","uuiInfo":"DMPhIx","uuiSuccess":"U8a-ve","uuiWarning":"ECKJHv","uuiHighlight":"PuMqwO","uuiTypographySize12":"_9ktqw9","uuiTypographySize14":"fhsTop","uuiTypographySize16":"KpKhgG","size24":"Vb-zHX","size30":"DkItdg","size36":"fGgf-V","size42":"wTkiu5","size48":"-EewIj"};
|
|
923
1092
|
|
|
924
|
-
const DEFAULT_SIZE$
|
|
1093
|
+
const DEFAULT_SIZE$2 = '36';
|
|
925
1094
|
function applyLabeledInputMods(mods) {
|
|
926
|
-
return [css$19.root, css$19['size-' + (mods.size || DEFAULT_SIZE$
|
|
1095
|
+
return [css$19.root, css$19['size-' + (mods.size || DEFAULT_SIZE$2)]];
|
|
927
1096
|
}
|
|
928
1097
|
const LabeledInput = /* @__PURE__ */withMods(uuiComponents.LabeledInput, applyLabeledInputMods, (props) => ({
|
|
929
1098
|
Tooltip: props.Tooltip || Tooltip,
|
|
930
1099
|
infoIcon: props.infoIcon || (['24', '30'].includes(props.size) ? ForwardRef$w : ForwardRef$L),
|
|
931
1100
|
}));
|
|
932
1101
|
|
|
933
|
-
var css$18 = {"root":"
|
|
1102
|
+
var css$18 = {"root":"pRmkuc"};
|
|
934
1103
|
|
|
935
1104
|
function RadioGroup(props) {
|
|
936
1105
|
const direction = props.direction || 'vertical';
|
|
@@ -945,7 +1114,7 @@ function RadioGroup(props) {
|
|
|
945
1114
|
})));
|
|
946
1115
|
}
|
|
947
1116
|
|
|
948
|
-
var css$17 = {"root":"
|
|
1117
|
+
var css$17 = {"root":"_3Nsdyu"};
|
|
949
1118
|
|
|
950
1119
|
function applyScrollBarsMods() {
|
|
951
1120
|
return [
|
|
@@ -954,27 +1123,27 @@ function applyScrollBarsMods() {
|
|
|
954
1123
|
}
|
|
955
1124
|
const ScrollBars = /* @__PURE__ */withMods(ScrollBars$1, applyScrollBarsMods);
|
|
956
1125
|
|
|
957
|
-
var css$16 = {"scroll-container":"
|
|
1126
|
+
var css$16 = {"scroll-container":"OinerQ","list-container":"MtpUcD","scrollContainer":"OinerQ","listContainer":"MtpUcD"};
|
|
958
1127
|
|
|
959
|
-
var css$15 = {"root":"
|
|
1128
|
+
var css$15 = {"root":"iXtWAQ"};
|
|
960
1129
|
|
|
961
1130
|
const AvatarStack = /* @__PURE__ */withMods(AvatarStack$1, () => [css$15.root]);
|
|
962
1131
|
|
|
963
|
-
var css$14 = {"uui-typography":"
|
|
1132
|
+
var css$14 = {"uui-typography":"T2UujR","hero-header":"azZQ4Z","promo-header":"_3CgTW7","uui-critical":"_3Gx58g","uui-info":"CgtI-0","uui-success":"qGmuWY","uui-warning":"aXUlXq","uui-highlight":"VmsLKo","uui-typography-size-12":"bwTuFg","uui-typography-size-14":"xCffrX","uui-typography-size-16":"ECyTyh","root":"JIvAxA","size-18":"pwyaMo","size-24":"zwyU2W","size-30":"mGO8FZ","size-36":"stTc6I","size-42":"ksakSi","size-48":"ZKyuWg","uuiTypography":"T2UujR","heroHeader":"azZQ4Z","promoHeader":"_3CgTW7","uuiCritical":"_3Gx58g","uuiInfo":"CgtI-0","uuiSuccess":"qGmuWY","uuiWarning":"aXUlXq","uuiHighlight":"VmsLKo","uuiTypographySize12":"bwTuFg","uuiTypographySize14":"xCffrX","uuiTypographySize16":"ECyTyh","size18":"pwyaMo","size24":"zwyU2W","size30":"mGO8FZ","size36":"stTc6I","size42":"ksakSi","size48":"ZKyuWg"};
|
|
964
1133
|
|
|
965
|
-
const DEFAULT_SIZE$
|
|
1134
|
+
const DEFAULT_SIZE$1 = '36';
|
|
966
1135
|
const DEFAULT_FILL = 'solid';
|
|
967
1136
|
function applyBadgeMods(mods) {
|
|
968
1137
|
return [
|
|
969
1138
|
'uui-badge',
|
|
970
1139
|
css$14.root,
|
|
971
|
-
css$14['size-' + (mods.size || DEFAULT_SIZE$
|
|
1140
|
+
css$14['size-' + (mods.size || DEFAULT_SIZE$1)],
|
|
972
1141
|
`uui-fill-${mods.fill || DEFAULT_FILL}`,
|
|
973
1142
|
`uui-color-${mods.color || 'info'}`,
|
|
974
1143
|
mods.indicator && mods.fill === 'outline' && 'uui-indicator',
|
|
975
1144
|
];
|
|
976
1145
|
}
|
|
977
|
-
const mapCountIndicatorSizes
|
|
1146
|
+
const mapCountIndicatorSizes = {
|
|
978
1147
|
18: '12',
|
|
979
1148
|
24: '18',
|
|
980
1149
|
30: '18',
|
|
@@ -988,26 +1157,17 @@ const Badge = /* @__PURE__ */React__default.forwardRef((props, ref) => {
|
|
|
988
1157
|
return (React__default.createElement(Clickable, Object.assign({}, props, { rawProps: Object.assign({ 'aria-haspopup': props.isDropdown, 'aria-expanded': props.isOpen }, props.rawProps), cx: styles, ref: ref }),
|
|
989
1158
|
props.icon && props.iconPosition !== 'right' && (React__default.createElement(IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
990
1159
|
props.caption && (React__default.createElement("div", { className: uuiElement.caption }, props.caption)),
|
|
991
|
-
props.count !== undefined && props.count !== null && (React__default.createElement(CountIndicator, { key: "count-indicator", color: null, size: mapCountIndicatorSizes
|
|
1160
|
+
props.count !== undefined && props.count !== null && (React__default.createElement(CountIndicator, { key: "count-indicator", color: null, size: mapCountIndicatorSizes[props.size || DEFAULT_SIZE$1], caption: props.count })),
|
|
992
1161
|
props.icon && props.iconPosition === 'right' && (React__default.createElement(IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
993
1162
|
props.isDropdown && (React__default.createElement(IconContainer, { icon: DropdownIcon, flipY: props.isOpen }))));
|
|
994
1163
|
});
|
|
995
1164
|
|
|
996
|
-
var css$13 = {"uui-typography":"
|
|
1165
|
+
var css$13 = {"uui-typography":"wmdLNz","hero-header":"PMgqo3","promo-header":"HIA-q8","uui-critical":"FA7h3v","uui-info":"Z4akPK","uui-success":"SYtI69","uui-warning":"Lf1smi","uui-highlight":"uQDRKL","uui-typography-size-12":"lXOX1s","uui-typography-size-14":"r4xT3b","uui-typography-size-16":"LyPNQj","root":"SG-yO6","uuiTypography":"wmdLNz","heroHeader":"PMgqo3","promoHeader":"HIA-q8","uuiCritical":"FA7h3v","uuiInfo":"Z4akPK","uuiSuccess":"SYtI69","uuiWarning":"Lf1smi","uuiHighlight":"uQDRKL","uuiTypographySize12":"lXOX1s","uuiTypographySize14":"r4xT3b","uuiTypographySize16":"LyPNQj"};
|
|
997
1166
|
|
|
998
|
-
const DEFAULT_SIZE$1 = '36';
|
|
999
|
-
const mapCountIndicatorSizes = {
|
|
1000
|
-
18: '12',
|
|
1001
|
-
24: '18',
|
|
1002
|
-
30: '18',
|
|
1003
|
-
36: '18',
|
|
1004
|
-
42: '24',
|
|
1005
|
-
48: '24',
|
|
1006
|
-
};
|
|
1007
1167
|
function applyTagMods(props) {
|
|
1008
1168
|
return [
|
|
1009
|
-
css$13['size-' + (props.size || DEFAULT_SIZE$1)],
|
|
1010
1169
|
css$13.root,
|
|
1170
|
+
`uui-size-${props.size || settings.sizes.defaults.tag}`,
|
|
1011
1171
|
`uui-color-${props.color || 'neutral'}`,
|
|
1012
1172
|
`uui-fill-${props.fill || 'solid'}`,
|
|
1013
1173
|
'uui-tag',
|
|
@@ -1020,20 +1180,20 @@ const Tag = /* @__PURE__ */React__default.forwardRef((props, ref) => {
|
|
|
1020
1180
|
return (React__default.createElement(Clickable, Object.assign({}, props, { rawProps: Object.assign({ 'aria-haspopup': props.isDropdown, 'aria-expanded': props.isOpen }, props.rawProps), cx: styles, ref: ref }),
|
|
1021
1181
|
props.icon && props.iconPosition !== 'right' && (React__default.createElement(IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
1022
1182
|
props.caption && (React__default.createElement("div", { className: uuiElement.caption }, props.caption)),
|
|
1023
|
-
props.count !== undefined && props.count !== null && (React__default.createElement(CountIndicator, { color: (!props.color || props.color === 'neutral') ? 'white' : props.color, size:
|
|
1183
|
+
props.count !== undefined && props.count !== null && (React__default.createElement(CountIndicator, { color: (!props.color || props.color === 'neutral') ? 'white' : props.color, size: settings.sizes.tag.countIndicator[(props.size || settings.sizes.defaults.tag)], caption: props.count })),
|
|
1024
1184
|
props.icon && props.iconPosition === 'right' && (React__default.createElement(IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
1025
1185
|
props.isDropdown && (React__default.createElement(IconContainer, { icon: DropdownIcon, flipY: props.isOpen })),
|
|
1026
1186
|
props.onClear && !props.isDisabled && (React__default.createElement(IconContainer, { cx: uuiMarkers.clickable, icon: ClearIcon, onClick: props.onClear }))));
|
|
1027
1187
|
});
|
|
1028
1188
|
|
|
1029
|
-
var css$12 = {"root":"
|
|
1189
|
+
var css$12 = {"root":"mqhNw3","uui-spinner":"natHGJ","uuiSpinner":"natHGJ"};
|
|
1030
1190
|
|
|
1031
1191
|
function applySpinnerMods() {
|
|
1032
1192
|
return [css$12.root, 'uui-spinner'];
|
|
1033
1193
|
}
|
|
1034
1194
|
const Spinner = /* @__PURE__ */withMods(Spinner$1, applySpinnerMods);
|
|
1035
1195
|
|
|
1036
|
-
var css$11 = {"root":"
|
|
1196
|
+
var css$11 = {"root":"QChuWn","spacer":"IUdufa","mode-ghost":"J6zRqP","size-24":"rA68Q6","size-30":"_2XrvPZ","navigation-size-24":"XgH3p8","navigation-size-30":"G7vmE3","modeGhost":"J6zRqP","size24":"rA68Q6","size30":"_2XrvPZ","navigationSize24":"XgH3p8","navigationSize30":"G7vmE3"};
|
|
1037
1197
|
|
|
1038
1198
|
var _path$v;
|
|
1039
1199
|
function _extends$v() { _extends$v = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$v.apply(this, arguments); }
|
|
@@ -1084,14 +1244,14 @@ function Paginator(props) {
|
|
|
1084
1244
|
return React__default.createElement(Paginator$1, Object.assign({}, props, { render: renderPaginator }));
|
|
1085
1245
|
}
|
|
1086
1246
|
|
|
1087
|
-
var css$10 = {"root":"
|
|
1247
|
+
var css$10 = {"root":"WURx1G","progress-bar":"_4YqBQd","progressBar-indeterminate":"qUpEkY","size-12":"UQvqgi","size-18":"_8kDVy2","size-24":"QTSfvD","progressBar":"_4YqBQd","progressBarIndeterminate":"qUpEkY","size12":"UQvqgi","size18":"_8kDVy2","size24":"QTSfvD"};
|
|
1088
1248
|
|
|
1089
1249
|
const IndeterminateBar = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
1090
1250
|
return (React.createElement("div", { ref: ref, className: cx('uui-indeterminate_bar', props.cx, css$10.root, css$10[`size-${props.size || 12}`]) },
|
|
1091
1251
|
React.createElement("div", { className: cx(css$10.progressBar) })));
|
|
1092
1252
|
});
|
|
1093
1253
|
|
|
1094
|
-
var css$$ = {"root":"
|
|
1254
|
+
var css$$ = {"root":"_2Cy7Se","striped":"xvUPqr","animate-stripes":"zYBNYV","size-12":"CfW1PW","size-18":"vC9Apv","size-24":"nA--hr","animateStripes":"zYBNYV","size12":"CfW1PW","size18":"vC9Apv","size24":"nA--hr"};
|
|
1095
1255
|
|
|
1096
1256
|
const DEFAULT_SIZE = '12';
|
|
1097
1257
|
function applyProgressBarMods(mods) {
|
|
@@ -1106,14 +1266,14 @@ const ProgressBar = /* @__PURE__ */withMods(uuiComponents.ProgressBar, applyProg
|
|
|
1106
1266
|
hideLabel: props.hideLabel || props.striped,
|
|
1107
1267
|
}));
|
|
1108
1268
|
|
|
1109
|
-
var css$_ = {"root":"
|
|
1269
|
+
var css$_ = {"root":"RRz6ki"};
|
|
1110
1270
|
|
|
1111
1271
|
const IndicatorBar = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
1112
1272
|
const { progress } = props;
|
|
1113
1273
|
return progress || progress === 0 ? (React.createElement(ProgressBar, { ref: ref, progress: progress, cx: cx(css$_.root, props.cx), hideLabel: true })) : (React.createElement(IndeterminateBar, { ref: ref, cx: cx(css$_.root, props.cx) }));
|
|
1114
1274
|
});
|
|
1115
1275
|
|
|
1116
|
-
var css$Z = {"root":"
|
|
1276
|
+
var css$Z = {"root":"rnQAgz","size-12":"fAn-jQ","size-18":"bvGEw6","size-24":"g52I-f","size12":"fAn-jQ","size18":"bvGEw6","size24":"g52I-f"};
|
|
1117
1277
|
|
|
1118
1278
|
const StatusIndicator = /* @__PURE__ */forwardRef((props, ref) => {
|
|
1119
1279
|
return (React__default.createElement("div", { ref: ref, className: cx([
|
|
@@ -1128,46 +1288,21 @@ const StatusIndicator = /* @__PURE__ */forwardRef((props, ref) => {
|
|
|
1128
1288
|
React__default.createElement("p", { className: "uui-status_indicator_caption" }, props.caption)));
|
|
1129
1289
|
});
|
|
1130
1290
|
|
|
1131
|
-
var css$Y = {"drag-handle":"
|
|
1291
|
+
var css$Y = {"drag-handle":"fckJAU","icon-container":"J7E2RC","dragHandle":"fckJAU","iconContainer":"J7E2RC"};
|
|
1132
1292
|
|
|
1133
1293
|
function DataRowAddons(props) {
|
|
1134
1294
|
var _a, _b;
|
|
1135
1295
|
const row = props.rowProps;
|
|
1136
|
-
const additionalItemSize = +props.size < 30 ? '12' : '18';
|
|
1137
1296
|
const getIndent = () => {
|
|
1138
|
-
|
|
1139
|
-
case '24':
|
|
1140
|
-
return (row.indent - 1) * 6;
|
|
1141
|
-
case '30':
|
|
1142
|
-
case '36':
|
|
1143
|
-
return (row.indent - 1) * 12;
|
|
1144
|
-
case '42':
|
|
1145
|
-
case '48':
|
|
1146
|
-
case '60':
|
|
1147
|
-
return (row.indent - 1) * 24;
|
|
1148
|
-
default:
|
|
1149
|
-
return (row.indent - 1) * 24;
|
|
1150
|
-
}
|
|
1297
|
+
return (row.indent - 1) * settings.sizes.rowAddons.indentUnit[props.size || 'default'];
|
|
1151
1298
|
};
|
|
1152
1299
|
const getWidth = () => {
|
|
1153
|
-
|
|
1154
|
-
case '24':
|
|
1155
|
-
return '12px';
|
|
1156
|
-
case '30':
|
|
1157
|
-
case '36':
|
|
1158
|
-
return '18px';
|
|
1159
|
-
case '42':
|
|
1160
|
-
case '48':
|
|
1161
|
-
case '60':
|
|
1162
|
-
return '24px';
|
|
1163
|
-
default:
|
|
1164
|
-
return '12px';
|
|
1165
|
-
}
|
|
1300
|
+
return settings.sizes.rowAddons.indentWidth[props.size || 'default'];
|
|
1166
1301
|
};
|
|
1167
1302
|
return (React__default.createElement(React__default.Fragment, null,
|
|
1168
1303
|
((_a = row.dnd) === null || _a === void 0 ? void 0 : _a.srcData) && React__default.createElement(DragHandle, { key: "dh", cx: css$Y.dragHandle }),
|
|
1169
|
-
((_b = row === null || row === void 0 ? void 0 : row.checkbox) === null || _b === void 0 ? void 0 : _b.isVisible) && (React__default.createElement(Checkbox, { key: "cb", cx: "uui-dr_addons-checkbox", tabIndex: props.tabIndex, size:
|
|
1170
|
-
row.indent > 0 && (React__default.createElement("div", { key: "fold", className: "uui-dr_addons-indent", style: {
|
|
1304
|
+
((_b = row === null || row === void 0 ? void 0 : row.checkbox) === null || _b === void 0 ? void 0 : _b.isVisible) && (React__default.createElement(Checkbox, { key: "cb", cx: "uui-dr_addons-checkbox", tabIndex: props.tabIndex, size: settings.sizes.rowAddons.checkbox[props.size], value: row.isChecked, indeterminate: !row.isChecked && row.isChildrenChecked, onValueChange: () => { var _a; return (_a = row.onCheck) === null || _a === void 0 ? void 0 : _a.call(row, row); }, isDisabled: row.checkbox.isDisabled, isInvalid: row.checkbox.isInvalid })),
|
|
1305
|
+
row.indent > 0 && (React__default.createElement("div", { key: "fold", className: "uui-dr_addons-indent", style: { marginInlineStart: getIndent(), width: getWidth() } }, row.isFoldable && (React__default.createElement(IconContainer, { rawProps: {
|
|
1171
1306
|
'aria-label': row.isFolded ? 'Unfold' : 'Fold',
|
|
1172
1307
|
role: 'button',
|
|
1173
1308
|
}, key: "icon", icon: ForwardRef$P, cx: [
|
|
@@ -1175,7 +1310,7 @@ function DataRowAddons(props) {
|
|
|
1175
1310
|
], rotate: row.isFolded ? '90ccw' : '0', onClick: () => row.onFold(row) }))))));
|
|
1176
1311
|
}
|
|
1177
1312
|
|
|
1178
|
-
var css$X = {"root":"
|
|
1313
|
+
var css$X = {"root":"_9gfLAf"};
|
|
1179
1314
|
|
|
1180
1315
|
const Blocker = /* @__PURE__ */withMods(Blocker$1, () => [css$X.root], (cmpProps) => ({ renderSpinner: cmpProps.renderSpinner || (() => React__default.createElement(Spinner, null)) }));
|
|
1181
1316
|
|
|
@@ -1216,7 +1351,7 @@ const VirtualListView = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
1216
1351
|
React.createElement(Blocker, { isEnabled: props.isLoading })));
|
|
1217
1352
|
});
|
|
1218
1353
|
|
|
1219
|
-
var css$W = {"root":"
|
|
1354
|
+
var css$W = {"root":"_0x6h91"};
|
|
1220
1355
|
|
|
1221
1356
|
function CheckboxGroup(props) {
|
|
1222
1357
|
const currentValue = props.value || [];
|
|
@@ -1378,7 +1513,7 @@ const TREE_SHAKEABLE_INIT = () => (Object.assign(Object.assign({}, i18n$1), { da
|
|
|
1378
1513
|
} }));
|
|
1379
1514
|
const i18n = /* @__PURE__ */TREE_SHAKEABLE_INIT();
|
|
1380
1515
|
|
|
1381
|
-
var css$V = {"uui-typography":"
|
|
1516
|
+
var css$V = {"uui-typography":"_9FBXWI","hero-header":"dQmGPL","promo-header":"OHSr4R","uui-critical":"QDcjtw","uui-info":"cKR3s8","uui-success":"SYGNCp","uui-warning":"ipZaQ1","uui-highlight":"XRJxXs","uui-typography-size-12":"uOSImV","uui-typography-size-14":"EXF3SG","uui-typography-size-16":"RXft5S","modal":"-UIpdY","search-wrapper":"TZspgz","body":"oaejDL","checkbox":"sROd5F","no-found-size-24":"_6w4-yv","no-found-size-30":"XiGl1n","no-found-size-36":"NjVGaH","no-found-size-42":"HivZGS","uuiTypography":"_9FBXWI","heroHeader":"dQmGPL","promoHeader":"OHSr4R","uuiCritical":"QDcjtw","uuiInfo":"cKR3s8","uuiSuccess":"SYGNCp","uuiWarning":"ipZaQ1","uuiHighlight":"XRJxXs","uuiTypographySize12":"uOSImV","uuiTypographySize14":"EXF3SG","uuiTypographySize16":"RXft5S","searchWrapper":"TZspgz","noFoundSize24":"_6w4-yv","noFoundSize30":"XiGl1n","noFoundSize36":"NjVGaH","noFoundSize42":"HivZGS"};
|
|
1382
1517
|
|
|
1383
1518
|
class DataPickerBody extends PickerBodyBase {
|
|
1384
1519
|
constructor() {
|
|
@@ -1390,29 +1525,23 @@ class DataPickerBody extends PickerBodyBase {
|
|
|
1390
1525
|
if (this.props.renderNotFound) {
|
|
1391
1526
|
return this.props.renderNotFound();
|
|
1392
1527
|
}
|
|
1393
|
-
|
|
1394
|
-
|
|
1528
|
+
// TODO: need fix sizes, how to use variables
|
|
1529
|
+
return (React__default.createElement(FlexCell$1, { cx: css$V[`no-found-size-${this.props.searchSize || settings.sizes.dataPickerBody.flexCell.default}`], grow: 1, textAlign: "center" },
|
|
1530
|
+
React__default.createElement(Text, { size: this.props.searchSize }, i18n.dataPickerBody.noRecordsMessage)));
|
|
1395
1531
|
}
|
|
1396
1532
|
render() {
|
|
1397
|
-
const searchSize = isMobile() ? '
|
|
1533
|
+
const searchSize = (isMobile() ? settings.sizes.dataPickerBody.searchInput['mobile'] : this.props.searchSize);
|
|
1398
1534
|
return (React__default.createElement(React__default.Fragment, null,
|
|
1399
1535
|
this.showSearch() && (React__default.createElement("div", { key: "search", className: css$V.searchWrapper },
|
|
1400
1536
|
React__default.createElement(FlexCell$1, { grow: 1 },
|
|
1401
|
-
React__default.createElement(SearchInput, Object.assign({ ref: this.searchRef, placeholder: i18n.dataPickerBody.searchPlaceholder }, this.searchLens.toProps(), { onKeyDown: this.searchKeyDown, size: searchSize, debounceDelay: this.props.searchDebounceDelay }))))),
|
|
1537
|
+
React__default.createElement(SearchInput, Object.assign({ ref: this.searchRef, placeholder: i18n.dataPickerBody.searchPlaceholder }, this.searchLens.toProps(), { onKeyDown: this.searchKeyDown, size: searchSize, debounceDelay: this.props.searchDebounceDelay, rawProps: { dir: 'auto' } }))))),
|
|
1402
1538
|
React__default.createElement(FlexRow, { key: "body", cx: cx$1('uui-pickerInput-body', css$V[this.props.editMode], css$V[this.props.selectionMode]), rawProps: { style: { maxHeight: this.props.maxHeight, maxWidth: this.props.maxWidth } } }, this.props.rowsCount > 0 ? (React__default.createElement(VirtualList, Object.assign({}, this.lens.toProps(), { rows: this.props.rows, rawProps: this.props.rawProps, rowsCount: this.props.rowsCount, isLoading: this.props.isReloading }))) : (this.renderNotFound()))));
|
|
1403
1539
|
}
|
|
1404
1540
|
}
|
|
1405
1541
|
|
|
1406
|
-
const switchSizes = {
|
|
1407
|
-
24: '12',
|
|
1408
|
-
36: '18',
|
|
1409
|
-
42: '24',
|
|
1410
|
-
48: '24',
|
|
1411
|
-
};
|
|
1412
1542
|
function DataPickerFooterImpl(props) {
|
|
1413
1543
|
const { clearSelection, view, showSelected, selectionMode, } = props;
|
|
1414
|
-
const size = isMobile() ? '
|
|
1415
|
-
const switchSize = switchSizes[size];
|
|
1544
|
+
const size = settings.sizes.dataPickerFooter.linkButton[isMobile() ? 'mobile' : props.size];
|
|
1416
1545
|
const hasSelection = view.getSelectedRowsCount() > 0;
|
|
1417
1546
|
const rowsCount = view.getListProps().rowsCount;
|
|
1418
1547
|
const isEmptyRowsAndHasNoSelection = (rowsCount === 0 && !hasSelection);
|
|
@@ -1422,8 +1551,8 @@ function DataPickerFooterImpl(props) {
|
|
|
1422
1551
|
const selectAllText = i18n.pickerInput.selectAllButton;
|
|
1423
1552
|
// show always for multi picker and for single only in case if search not disabled.
|
|
1424
1553
|
const shouldShowFooter = isSinglePicker ? !props.disableClear : true;
|
|
1425
|
-
return shouldShowFooter && (React__default.createElement(FlexRow, { padding:
|
|
1426
|
-
!isSinglePicker && (React__default.createElement(Switch, { size:
|
|
1554
|
+
return shouldShowFooter && (React__default.createElement(FlexRow, { size: props.size, padding: settings.sizes.dataPickerFooter.flexRowPadding },
|
|
1555
|
+
!isSinglePicker && (React__default.createElement(Switch, { size: settings.sizes.dataPickerFooter.switch[props.size], value: showSelected.value, isDisabled: !hasSelection, onValueChange: showSelected.onValueChange, label: i18n.pickerInput.showOnlySelectedLabel })),
|
|
1427
1556
|
React__default.createElement(FlexSpacer, null),
|
|
1428
1557
|
React__default.createElement(FlexCell, { width: "auto", alignSelf: "center" },
|
|
1429
1558
|
view.selectAll && (React__default.createElement(LinkButton, { size: size, caption: hasSelection ? clearAllText : selectAllText, onClick: hasSelection ? clearSelection : () => view.selectAll.onValueChange(true), rawProps: {
|
|
@@ -1435,12 +1564,12 @@ function DataPickerFooterImpl(props) {
|
|
|
1435
1564
|
}
|
|
1436
1565
|
const DataPickerFooter = /* @__PURE__ */React__default.memo(DataPickerFooterImpl);
|
|
1437
1566
|
|
|
1438
|
-
var css$U = {"header":"
|
|
1567
|
+
var css$U = {"header":"AsG0MA","close":"Ou-LuF"};
|
|
1439
1568
|
|
|
1440
1569
|
const DataPickerHeaderImpl = (props) => {
|
|
1441
1570
|
const title = props.title && typeof props.title === 'string' ? props.title.charAt(0).toUpperCase() + props.title.slice(1) : '';
|
|
1442
1571
|
return (React__default.createElement(FlexRow, { alignItems: "center", borderBottom: true, cx: css$U.header },
|
|
1443
|
-
React__default.createElement(Text, { size:
|
|
1572
|
+
React__default.createElement(Text, { size: settings.sizes.dataPickerHeader.text.size, fontWeight: settings.sizes.dataPickerHeader.text.fontWeight }, title),
|
|
1444
1573
|
React__default.createElement(IconButton, { icon: ForwardRef$Q, onClick: () => { var _a; return (_a = props.close) === null || _a === void 0 ? void 0 : _a.call(props); }, cx: css$U.close })));
|
|
1445
1574
|
};
|
|
1446
1575
|
const DataPickerHeader = /* @__PURE__ */React__default.memo(DataPickerHeaderImpl);
|
|
@@ -1460,7 +1589,7 @@ var SvgNotificationDoneFill = function SvgNotificationDoneFill(props, ref) {
|
|
|
1460
1589
|
};
|
|
1461
1590
|
var ForwardRef$t = /*#__PURE__*/forwardRef(SvgNotificationDoneFill);
|
|
1462
1591
|
|
|
1463
|
-
var css$T = {"uui-typography":"
|
|
1592
|
+
var css$T = {"uui-typography":"QPvcag","hero-header":"V-2MJd","promo-header":"IRXp7i","uui-critical":"_9WOb4K","uui-info":"yIWp6o","uui-success":"IQ8TlX","uui-warning":"Uq-FqP","uui-highlight":"_7k0OGv","uui-typography-size-12":"GkKY2C","uui-typography-size-14":"jkheim","uui-typography-size-16":"qCCFk-","root":"_0pY31x","align-widgets-top":"GCMWEK","size-24":"j-qjNr","size-30":"PgPihl","size-36":"a-XyqO","size-42":"_99dhi-","size-48":"_6Nwsx-","size-60":"Fnm9tr","align-widgets-center":"Olw4c9","icon-wrapper":"FkoW6u","padding-12":"q9FHNi","padding-24":"ALqXhk","padding-left-12":"_6CzVO-","padding-left-24":"_62zeHj","icon-container":"ML5ptz","loading-cell":"SKhMde","content-wrapper":"ekv0n-","render-item":"a-9dwU","icon-default":"OLhNfN","selected-mark":"UWu3kk","uuiTypography":"QPvcag","heroHeader":"V-2MJd","promoHeader":"IRXp7i","uuiCritical":"_9WOb4K","uuiInfo":"yIWp6o","uuiSuccess":"IQ8TlX","uuiWarning":"Uq-FqP","uuiHighlight":"_7k0OGv","uuiTypographySize12":"GkKY2C","uuiTypographySize14":"jkheim","uuiTypographySize16":"qCCFk-","alignWidgetsTop":"GCMWEK","size24":"j-qjNr","size30":"PgPihl","size36":"a-XyqO","size42":"_99dhi-","size48":"_6Nwsx-","size60":"Fnm9tr","alignWidgetsCenter":"Olw4c9","iconWrapper":"FkoW6u","padding12":"q9FHNi","padding24":"ALqXhk","paddingLeft12":"_6CzVO-","paddingLeft24":"_62zeHj","iconContainer":"ML5ptz","loadingCell":"SKhMde","contentWrapper":"ekv0n-","renderItem":"a-9dwU","iconDefault":"OLhNfN","selectedMark":"UWu3kk"};
|
|
1464
1593
|
|
|
1465
1594
|
function DataPickerCell(props) {
|
|
1466
1595
|
const ref = React.useRef();
|
|
@@ -1468,18 +1597,18 @@ function DataPickerCell(props) {
|
|
|
1468
1597
|
if (props.rowProps.isLoading) {
|
|
1469
1598
|
content = (
|
|
1470
1599
|
// remove `css.loadingCell` after` removing `margin: 0 3px 3px 0` from `TextPlaceholder` `loadingWord` class styles.
|
|
1471
|
-
React.createElement(Text, { key: "t", size:
|
|
1600
|
+
React.createElement(Text, { key: "t", size: settings.sizes.dataPickerCell.text[props.size], cx: css$T.loadingCell },
|
|
1472
1601
|
React.createElement(TextPlaceholder, null)));
|
|
1473
1602
|
}
|
|
1474
1603
|
else if (props.rowProps.isUnknown) {
|
|
1475
|
-
content = (React.createElement(Text, { key: "t", size:
|
|
1604
|
+
content = (React.createElement(Text, { key: "t", size: settings.sizes.dataPickerCell.text[props.size] }, "Unknown"));
|
|
1476
1605
|
}
|
|
1477
1606
|
else {
|
|
1478
1607
|
content = (React.createElement("div", { key: `${props.rowProps.id}`, className: css$T.renderItem },
|
|
1479
1608
|
props.renderItem(props.rowProps.value, props.rowProps),
|
|
1480
1609
|
React.createElement(FlexSpacer, null),
|
|
1481
1610
|
(props.rowProps.isChildrenSelected || props.rowProps.isSelected) && (React.createElement("div", { className: cx$1(css$T.iconWrapper, uuiMod.selected) },
|
|
1482
|
-
React.createElement(IconContainer, { icon: props.size
|
|
1611
|
+
React.createElement(IconContainer, { icon: settings.sizes.dataPickerCell.isBoldIcon[props.size] ? ForwardRef$t : ForwardRef$O, cx: props.rowProps.isChildrenSelected ? css$T.iconDefault : css$T.selectedMark, rawProps: { 'aria-label': props.rowProps.isChildrenSelected
|
|
1483
1612
|
? 'Child is selected'
|
|
1484
1613
|
: 'Selected' } })))));
|
|
1485
1614
|
}
|
|
@@ -1488,22 +1617,22 @@ function DataPickerCell(props) {
|
|
|
1488
1617
|
css$T.root,
|
|
1489
1618
|
props.cx,
|
|
1490
1619
|
'data-picker-cell',
|
|
1491
|
-
css$T['size-' + (props.size ||
|
|
1492
|
-
css$T[`padding-${props.padding ||
|
|
1493
|
-
css$T[`padding-left-${props.padding ||
|
|
1620
|
+
css$T['size-' + (props.size || settings.sizes.defaults.dataPickerCell)],
|
|
1621
|
+
css$T[`padding-${props.padding || settings.sizes.dataPickerCell.padding.default}`],
|
|
1622
|
+
css$T[`padding-left-${props.padding || settings.sizes.dataPickerCell.paddingLeft.default}`],
|
|
1494
1623
|
css$T[`align-widgets-${props.alignActions || 'top'}`],
|
|
1495
1624
|
] },
|
|
1496
1625
|
React.createElement(DataRowAddons, Object.assign({}, props)),
|
|
1497
1626
|
getWrappedContent()));
|
|
1498
1627
|
}
|
|
1499
1628
|
|
|
1500
|
-
var css$S = {"uui-typography":"
|
|
1629
|
+
var css$S = {"uui-typography":"FmfIHs","hero-header":"oZ31-c","promo-header":"HVdrMv","uui-critical":"Fs3Ykm","uui-info":"_4O9Tu2","uui-success":"PJbLww","uui-warning":"WZVvL7","uui-highlight":"-rbQhx","uui-typography-size-12":"GCZtz5","uui-typography-size-14":"GmO0xR","uui-typography-size-16":"wErLjb","picker-row":"rMUqY3","uuiTypography":"FmfIHs","heroHeader":"oZ31-c","promoHeader":"HVdrMv","uuiCritical":"Fs3Ykm","uuiInfo":"_4O9Tu2","uuiSuccess":"PJbLww","uuiWarning":"WZVvL7","uuiHighlight":"-rbQhx","uuiTypographySize12":"GCZtz5","uuiTypographySize14":"GmO0xR","uuiTypographySize16":"wErLjb","pickerRow":"rMUqY3"};
|
|
1501
1630
|
|
|
1502
1631
|
class DataPickerRow extends React.Component {
|
|
1503
1632
|
constructor() {
|
|
1504
1633
|
super(...arguments);
|
|
1505
1634
|
this.renderContent = () => {
|
|
1506
|
-
return (React.createElement(DataPickerCell, { key: "name", size: this.props.size ||
|
|
1635
|
+
return (React.createElement(DataPickerCell, { key: "name", size: this.props.size || settings.sizes.dataPickerRow.dataPickerCell.default, padding: this.props.padding || settings.sizes.dataPickerRow.padding.default, rowProps: this.props, alignActions: this.props.alignActions || 'top', renderItem: this.props.renderItem }));
|
|
1507
1636
|
};
|
|
1508
1637
|
}
|
|
1509
1638
|
render() {
|
|
@@ -1511,7 +1640,7 @@ class DataPickerRow extends React.Component {
|
|
|
1511
1640
|
}
|
|
1512
1641
|
}
|
|
1513
1642
|
|
|
1514
|
-
var css$R = {"uui-typography":"
|
|
1643
|
+
var css$R = {"uui-typography":"Qf8B0c","hero-header":"ZUCnrK","promo-header":"Gjl-nV","uui-critical":"_2My7iB","uui-info":"dBZXW3","uui-success":"L3Ezme","uui-warning":"oJtLyh","uui-highlight":"MDZtHx","uui-typography-size-12":"_0djMrO","uui-typography-size-14":"mR0uSv","uui-typography-size-16":"l3--Bo","done":"GyrnDl","container":"bZwlMZ","uuiTypography":"Qf8B0c","heroHeader":"ZUCnrK","promoHeader":"Gjl-nV","uuiCritical":"_2My7iB","uuiInfo":"dBZXW3","uuiSuccess":"L3Ezme","uuiWarning":"oJtLyh","uuiHighlight":"MDZtHx","uuiTypographySize12":"_0djMrO","uuiTypographySize14":"mR0uSv","uuiTypographySize16":"l3--Bo"};
|
|
1515
1644
|
|
|
1516
1645
|
const MobileDropdownWrapper = (props) => {
|
|
1517
1646
|
const isMobileView = isMobile();
|
|
@@ -1520,7 +1649,7 @@ const MobileDropdownWrapper = (props) => {
|
|
|
1520
1649
|
return (React__default.createElement(DropdownContainer, Object.assign({}, props, { maxWidth: maxWidth, maxHeight: maxHeight, cx: [css$R.container, props.cx] }),
|
|
1521
1650
|
isMobileView && React__default.createElement(DataPickerHeader, { title: props.title, close: props.onClose }),
|
|
1522
1651
|
props.children,
|
|
1523
|
-
isMobileView && React__default.createElement(LinkButton, { caption: i18n.pickerInput.doneButton, onClick: () => { var _a; return (_a = props.onClose) === null || _a === void 0 ? void 0 : _a.call(props); }, cx: css$R.done, size:
|
|
1652
|
+
isMobileView && React__default.createElement(LinkButton, { caption: i18n.pickerInput.doneButton, onClick: () => { var _a; return (_a = props.onClose) === null || _a === void 0 ? void 0 : _a.call(props); }, cx: css$R.done, size: settings.sizes.mobileDropdownWrapper.linkButton })));
|
|
1524
1653
|
};
|
|
1525
1654
|
|
|
1526
1655
|
var _path$s, _path2$4;
|
|
@@ -1545,9 +1674,7 @@ var SvgSearchWithBackground = function SvgSearchWithBackground(props, ref) {
|
|
|
1545
1674
|
};
|
|
1546
1675
|
var ForwardRef$s = /*#__PURE__*/forwardRef(SvgSearchWithBackground);
|
|
1547
1676
|
|
|
1548
|
-
var css$Q = {"uui-typography":"
|
|
1549
|
-
|
|
1550
|
-
var css$P = {"root":"TC66y3","multiline":"kZoRp1","vertical-padding-24":"-B6FX9","vertical-padding-30":"ErfYor","vertical-padding-36":"Ia-BnH","vertical-padding-42":"UFucnT","vertical-padding-48":"f0fi33","text":"yfLZxM","verticalPadding24":"-B6FX9","verticalPadding30":"ErfYor","verticalPadding36":"Ia-BnH","verticalPadding42":"UFucnT","verticalPadding48":"f0fi33"};
|
|
1677
|
+
var css$Q = {"uui-typography":"PpWSdk","hero-header":"wlL7bh","promo-header":"wGYonH","uui-critical":"KEOKF3","uui-info":"c8AeQl","uui-success":"_1a3CQh","uui-warning":"OJoCt9","uui-highlight":"_07fBEq","uui-typography-size-12":"mVqxTU","uui-typography-size-14":"aCQS1s","uui-typography-size-16":"_6Cfv7R","sub-header-wrapper":"_6RH-ER","switch":"eMwUNU","no-found-modal-container":"jkfRir","no-found-modal-container-icon":"_6E0Vdv","no-found-modal-container-text":"_0H-n0R","uuiTypography":"PpWSdk","heroHeader":"wlL7bh","promoHeader":"wGYonH","uuiCritical":"KEOKF3","uuiInfo":"c8AeQl","uuiSuccess":"_1a3CQh","uuiWarning":"OJoCt9","uuiHighlight":"_07fBEq","uuiTypographySize12":"mVqxTU","uuiTypographySize14":"aCQS1s","uuiTypographySize16":"_6Cfv7R","subHeaderWrapper":"_6RH-ER","$switch$":"eMwUNU","noFoundModalContainer":"jkfRir","noFoundModalContainerIcon":"_6E0Vdv","noFoundModalContainerText":"_0H-n0R"};
|
|
1551
1678
|
|
|
1552
1679
|
const mergeHighlightRanges = (ranges) => {
|
|
1553
1680
|
const mergedRanges = [];
|
|
@@ -1614,11 +1741,12 @@ const getHighlightedSearchMatches = (str, search) => {
|
|
|
1614
1741
|
return getDecoratedText(str, ranges);
|
|
1615
1742
|
};
|
|
1616
1743
|
|
|
1617
|
-
|
|
1744
|
+
var css$P = {"root":"mmYa0s","multiline":"xLOCRX","vertical-padding-24":"nOaCUi","vertical-padding-30":"pd-lzg","vertical-padding-36":"s5d-Kk","vertical-padding-42":"U3tr3Q","vertical-padding-48":"tXY3s-","text":"YPdGp9","verticalPadding24":"nOaCUi","verticalPadding30":"pd-lzg","verticalPadding36":"s5d-Kk","verticalPadding42":"U3tr3Q","verticalPadding48":"tXY3s-"};
|
|
1745
|
+
|
|
1618
1746
|
function PickerItem(props) {
|
|
1619
1747
|
var _a;
|
|
1620
1748
|
const { highlightSearchMatches = true, size, avatarUrl, isLoading, isDisabled, icon, cx, } = props;
|
|
1621
|
-
const itemSize = size ||
|
|
1749
|
+
const itemSize = size || settings.sizes.defaults.pickerItem;
|
|
1622
1750
|
const isMultiline = !!(props.title && props.subtitle);
|
|
1623
1751
|
const { search } = (_a = props.dataSourceState) !== null && _a !== void 0 ? _a : {};
|
|
1624
1752
|
const title = highlightSearchMatches ? getHighlightedSearchMatches(props.title, search) : props.title;
|
|
@@ -1632,7 +1760,7 @@ function PickerItem(props) {
|
|
|
1632
1760
|
subtitle && (React.createElement(Text, { size: itemSize, color: isDisabled ? 'disabled' : 'secondary', cx: css$P.text }, isLoading ? React.createElement(TextPlaceholder, { wordsCount: 2 }) : subtitle))))));
|
|
1633
1761
|
}
|
|
1634
1762
|
function getAvatarSize(size, isMultiline) {
|
|
1635
|
-
return isMultiline ?
|
|
1763
|
+
return settings.sizes.pickerItem.avatar[isMultiline ? 'multiline' : 'rest'][size];
|
|
1636
1764
|
}
|
|
1637
1765
|
|
|
1638
1766
|
function PickerModal(props) {
|
|
@@ -1681,34 +1809,18 @@ function PickerModal(props) {
|
|
|
1681
1809
|
listView: view,
|
|
1682
1810
|
rows: dataRows,
|
|
1683
1811
|
searchPosition: 'body',
|
|
1684
|
-
}, e), autoFocus: true, placeholder: i18n.pickerModal.searchPlaceholder }))),
|
|
1812
|
+
}, e), autoFocus: true, placeholder: i18n.pickerModal.searchPlaceholder, rawProps: { dir: 'auto' } }))),
|
|
1685
1813
|
!isSingleSelect() && (React__default.createElement(Switch, Object.assign({ cx: css$Q.switch, size: "18" }, getFooterProps().showSelected, { isDisabled: view.getSelectedRowsCount() < 1, label: "Show only selected" }))),
|
|
1686
1814
|
props.renderFilter && React__default.createElement(FlexCell, { grow: 2 }, props.renderFilter(dataSourceStateLens.prop('filter').toProps()))),
|
|
1687
1815
|
React__default.createElement(DataPickerBody, Object.assign({}, getListProps(), { value: getDataSourceState(), onValueChange: handleDataSourceValueChange, search: dataSourceStateLens.prop('search').toProps(), showSearch: false, rows: rows, renderNotFound: renderNotFound, editMode: "modal" })),
|
|
1688
1816
|
React__default.createElement(ModalFooter, { padding: "24", vPadding: "24" }, props.renderFooter ? props.renderFooter(getFooterProps()) : renderFooter()))));
|
|
1689
1817
|
}
|
|
1690
1818
|
|
|
1691
|
-
var css$O = {"tooltip":"
|
|
1692
|
-
|
|
1693
|
-
const getPickerTogglerButtonSize = (propSize) => {
|
|
1694
|
-
switch (propSize) {
|
|
1695
|
-
case '48':
|
|
1696
|
-
return '42';
|
|
1697
|
-
case '42':
|
|
1698
|
-
return '36';
|
|
1699
|
-
case '36':
|
|
1700
|
-
return '30';
|
|
1701
|
-
case '30':
|
|
1702
|
-
return '24';
|
|
1703
|
-
case '24':
|
|
1704
|
-
return '18';
|
|
1705
|
-
default:
|
|
1706
|
-
return '30';
|
|
1707
|
-
}
|
|
1708
|
-
};
|
|
1819
|
+
var css$O = {"tooltip":"jDCW6F"};
|
|
1820
|
+
|
|
1709
1821
|
const PickerTogglerTag = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
1710
1822
|
var _a;
|
|
1711
|
-
const tagProps = Object.assign(Object.assign({}, props), { tabIndex: -1, size:
|
|
1823
|
+
const tagProps = Object.assign(Object.assign({}, props), { tabIndex: -1, size: settings.sizes.pickerToggler.tag[props.size], caption: ((_a = props.rowProps) === null || _a === void 0 ? void 0 : _a.isLoading) ? React.createElement(TextPlaceholder, null) : props.caption });
|
|
1712
1824
|
if (props.isCollapsed) {
|
|
1713
1825
|
const collapsedRows = props.collapsedRows.map((row) => { var _a; return (_a = row.value) === null || _a === void 0 ? void 0 : _a.name; }).join(', ');
|
|
1714
1826
|
return (React.createElement(Tooltip, { key: "selected", content: collapsedRows, closeDelay: 150, closeOnMouseLeave: "boundary", cx: css$O.tooltip },
|
|
@@ -1719,20 +1831,20 @@ const PickerTogglerTag = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
1719
1831
|
}
|
|
1720
1832
|
});
|
|
1721
1833
|
|
|
1722
|
-
var css$N = {"uui-typography":"
|
|
1834
|
+
var css$N = {"uui-typography":"k8B2ZT","hero-header":"T8-IyF","promo-header":"JJhriO","uui-critical":"JBgIwn","uui-info":"wZXcpZ","uui-success":"WW-7EP","uui-warning":"jvhKKc","uui-highlight":"n3o8D-","uui-typography-size-12":"sesXow","uui-typography-size-14":"EawdDj","uui-typography-size-16":"xWlrEo","root":"i9olSn","mode-form":"xKiAUk","mode-cell":"GgJkaZ","mode-inline":"qlO6lT","uuiTypography":"k8B2ZT","heroHeader":"T8-IyF","promoHeader":"JJhriO","uuiCritical":"JBgIwn","uuiInfo":"wZXcpZ","uuiSuccess":"WW-7EP","uuiWarning":"jvhKKc","uuiHighlight":"n3o8D-","uuiTypographySize12":"sesXow","uuiTypographySize14":"EawdDj","uuiTypographySize16":"xWlrEo","modeForm":"xKiAUk","modeCell":"GgJkaZ","modeInline":"qlO6lT"};
|
|
1723
1835
|
|
|
1724
|
-
const defaultSize$1 = '36';
|
|
1725
1836
|
const defaultMode$1 = EditMode.FORM;
|
|
1726
1837
|
function applyPickerTogglerMods(mods) {
|
|
1727
1838
|
return [
|
|
1728
1839
|
css$N.root,
|
|
1729
|
-
|
|
1840
|
+
'uui-picker_toggler',
|
|
1841
|
+
`uui-size-${mods.size || settings.sizes.defaults.pickerToggler}`,
|
|
1730
1842
|
css$N['mode-' + (mods.mode || defaultMode$1)],
|
|
1731
1843
|
];
|
|
1732
1844
|
}
|
|
1733
1845
|
function PickerTogglerComponent(props, ref) {
|
|
1734
1846
|
const renderItem = (itemProps) => {
|
|
1735
|
-
const itemPropsWithSize = Object.assign(Object.assign({}, itemProps), { size: props.size });
|
|
1847
|
+
const itemPropsWithSize = Object.assign(Object.assign({}, itemProps), { size: (props.size || settings.sizes.defaults.pickerToggler) });
|
|
1736
1848
|
if (!!props.renderItem) {
|
|
1737
1849
|
return props.renderItem(itemPropsWithSize);
|
|
1738
1850
|
}
|
|
@@ -1742,8 +1854,6 @@ function PickerTogglerComponent(props, ref) {
|
|
|
1742
1854
|
}
|
|
1743
1855
|
const PickerToggler = /* @__PURE__ */React.forwardRef(PickerTogglerComponent);
|
|
1744
1856
|
|
|
1745
|
-
const pickerHeight$1 = 300;
|
|
1746
|
-
const pickerWidth = 360;
|
|
1747
1857
|
function PickerInputComponent(_a, ref) {
|
|
1748
1858
|
var { highlightSearchMatches = true } = _a, props = __rest(_a, ["highlightSearchMatches"]);
|
|
1749
1859
|
const toggleModalOpening = () => {
|
|
@@ -1780,9 +1890,9 @@ function PickerInputComponent(_a, ref) {
|
|
|
1780
1890
|
};
|
|
1781
1891
|
const getRowSize = () => {
|
|
1782
1892
|
if (isMobile()) {
|
|
1783
|
-
return
|
|
1893
|
+
return settings.sizes.pickerInput.rowSize.mobile;
|
|
1784
1894
|
}
|
|
1785
|
-
return props.editMode === 'modal' ?
|
|
1895
|
+
return props.editMode === 'modal' ? settings.sizes.pickerInput.rowSize.modal : props.size;
|
|
1786
1896
|
};
|
|
1787
1897
|
const getSubtitle = ({ path }, { search }) => {
|
|
1788
1898
|
if (!search)
|
|
@@ -1797,12 +1907,12 @@ function PickerInputComponent(_a, ref) {
|
|
|
1797
1907
|
return (React__default.createElement(PickerItem, Object.assign({ title: getName(item), size: getRowSize(), dataSourceState: dsState, highlightSearchMatches: highlightSearchMatches }, (flattenSearchResults ? { subtitle: getSubtitle(rowProps, dataSourceState) } : {}), rowProps)));
|
|
1798
1908
|
};
|
|
1799
1909
|
const renderRow = (rowProps, dsState) => {
|
|
1800
|
-
return props.renderRow ? (props.renderRow(rowProps, dsState)) : (React__default.createElement(DataPickerRow, Object.assign({}, rowProps, { key: rowProps.rowKey, size: getRowSize(), padding: props.editMode === 'modal' ?
|
|
1910
|
+
return props.renderRow ? (props.renderRow(rowProps, dsState)) : (React__default.createElement(DataPickerRow, Object.assign({}, rowProps, { key: rowProps.rowKey, size: getRowSize(), padding: (props.editMode === 'modal' ? settings.sizes.pickerInput.rowSize.padding.modal : settings.sizes.pickerInput.rowSize.padding.default), renderItem: (item, itemProps) => renderRowItem(item, itemProps, dsState) })));
|
|
1801
1911
|
};
|
|
1802
1912
|
const renderBody = (bodyProps, rows) => {
|
|
1803
1913
|
const renderedDataRows = rows.map((row) => renderRow(row, dataSourceState));
|
|
1804
|
-
const bodyHeight = isMobile() ? document.documentElement.clientHeight : props.dropdownHeight ||
|
|
1805
|
-
const minBodyWidth = props.minBodyWidth ||
|
|
1914
|
+
const bodyHeight = isMobile() ? document.documentElement.clientHeight : props.dropdownHeight || settings.sizes.pickerInput.height;
|
|
1915
|
+
const minBodyWidth = props.minBodyWidth || settings.sizes.pickerInput.width;
|
|
1806
1916
|
return (React__default.createElement(MobileDropdownWrapper, { title: props.entityName, onClose: () => toggleBodyOpening(false), cx: [props.bodyCx], onKeyDown: bodyProps.onKeyDown, width: bodyProps.togglerWidth > minBodyWidth ? bodyProps.togglerWidth : minBodyWidth, focusLock: getSearchPosition() === 'body' },
|
|
1807
1917
|
React__default.createElement(DataPickerBody, Object.assign({}, bodyProps, { rows: renderedDataRows, maxHeight: bodyHeight, searchSize: props.size, editMode: "dropdown", selectionMode: props.selectionMode, renderNotFound: props.renderNotFound
|
|
1808
1918
|
? () => props.renderNotFound({
|
|
@@ -1821,7 +1931,7 @@ function PickerInputComponent(_a, ref) {
|
|
|
1821
1931
|
}
|
|
1822
1932
|
const PickerInput = /* @__PURE__ */React__default.forwardRef(PickerInputComponent);
|
|
1823
1933
|
|
|
1824
|
-
var css$M = {"row":"
|
|
1934
|
+
var css$M = {"row":"Zax1QT"};
|
|
1825
1935
|
|
|
1826
1936
|
function PickerListItem(props) {
|
|
1827
1937
|
var _a;
|
|
@@ -1842,7 +1952,7 @@ function PickerListItem(props) {
|
|
|
1842
1952
|
return (React__default.createElement("div", Object.assign({ role: "option", "aria-selected": props.isSelectable ? props.isSelected : undefined, "aria-busy": props.isLoading, "aria-posinset": props.index + 1 }, (((_a = props.checkbox) === null || _a === void 0 ? void 0 : _a.isVisible) && { 'aria-checked': props.isChecked }), { className: css$M.row }), component));
|
|
1843
1953
|
}
|
|
1844
1954
|
|
|
1845
|
-
var css$L = {"root":"
|
|
1955
|
+
var css$L = {"root":"OyxxD0"};
|
|
1846
1956
|
|
|
1847
1957
|
function PickerList(props) {
|
|
1848
1958
|
const { context, view, onlySelectedView, getName, getEntityName, appendLastSelected, getSelectedIdsArray, buildRowsList, getMaxDefaultItems, dataSourceState, getModalTogglerCaption, } = usePickerList(props);
|
|
@@ -1882,7 +1992,7 @@ const UUI_FILTERS_PANEL_ADD_BUTTON_BODY = 'uui-filters-panel-add-button-body';
|
|
|
1882
1992
|
const UUI_FILTERS_PANEL_ITEM_BODY = 'uui-filters-panel-item-body';
|
|
1883
1993
|
const UUI_FILTERS_PANEL_ITEM_TOGGLER = 'uui-filters-panel-item-toggler';
|
|
1884
1994
|
|
|
1885
|
-
var css$K = {"uui-typography":"
|
|
1995
|
+
var css$K = {"uui-typography":"i2XOFE","hero-header":"vMErKD","promo-header":"cdKKLT","uui-critical":"sY32OM","uui-info":"AUiJ3L","uui-success":"i3ZUkD","uui-warning":"Qs2S37","uui-highlight":"dU180z","uui-typography-size-12":"QJ3448","uui-typography-size-14":"_7X3a0-","uui-typography-size-16":"LnT9-R","root":"LQYu-U","title-wrapper":"Wg5toh","title":"qbn6Ho","text-wrapper":"yU-Dd3","selection":"_6koK89","postfix":"_1PTpqV","selected":"MqLtEt","uuiTypography":"i2XOFE","heroHeader":"vMErKD","promoHeader":"cdKKLT","uuiCritical":"sY32OM","uuiInfo":"AUiJ3L","uuiSuccess":"i3ZUkD","uuiWarning":"Qs2S37","uuiHighlight":"dU180z","uuiTypographySize12":"QJ3448","uuiTypographySize14":"_7X3a0-","uuiTypographySize16":"LnT9-R","titleWrapper":"Wg5toh","textWrapper":"yU-Dd3"};
|
|
1886
1996
|
|
|
1887
1997
|
const defaultSize = '36';
|
|
1888
1998
|
const FilterPanelItemToggler = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
@@ -1975,7 +2085,7 @@ function FilterPickerBody(_a) {
|
|
|
1975
2085
|
return renderBody(Object.assign(Object.assign(Object.assign({}, getPickerBodyProps(rows)), getListProps()), { showSearch: (_b = props.showSearch) !== null && _b !== void 0 ? _b : true }), rows);
|
|
1976
2086
|
}
|
|
1977
2087
|
|
|
1978
|
-
var css$J = {"container":"
|
|
2088
|
+
var css$J = {"container":"kmqeUs"};
|
|
1979
2089
|
|
|
1980
2090
|
const defaultFormat = 'MMM D, YYYY';
|
|
1981
2091
|
const valueFormat = 'YYYY-MM-DD';
|
|
@@ -2112,8 +2222,11 @@ const uuiHeader = {
|
|
|
2112
2222
|
navIconRight: 'uui-datepickerheader-nav-icon-right',
|
|
2113
2223
|
navIconLeft: 'uui-datepickerheader-nav-icon-left',
|
|
2114
2224
|
};
|
|
2115
|
-
const
|
|
2116
|
-
|
|
2225
|
+
const MIN_SOBER_YEAR = 1000;
|
|
2226
|
+
const MAX_SOBER_YEAR = 2200;
|
|
2227
|
+
const isYearWithinSoberRange = (value) => {
|
|
2228
|
+
const year = value.year();
|
|
2229
|
+
return year >= MIN_SOBER_YEAR && year <= MAX_SOBER_YEAR;
|
|
2117
2230
|
};
|
|
2118
2231
|
function DatePickerHeader({ navIconLeft, navIconRight, value: { month, view }, onValueChange, }) {
|
|
2119
2232
|
const onSetMonth = (newMonth) => {
|
|
@@ -2175,8 +2288,8 @@ function DatePickerHeader({ navIconLeft, navIconRight, value: { month, view }, o
|
|
|
2175
2288
|
: '';
|
|
2176
2289
|
return `${monthSubstr} ${month.year()}`;
|
|
2177
2290
|
}, [view, month]);
|
|
2178
|
-
const disablePrev = view === 'YEAR_SELECTION' && !
|
|
2179
|
-
const disableNext = view === 'YEAR_SELECTION' && !
|
|
2291
|
+
const disablePrev = view === 'YEAR_SELECTION' && !isYearWithinSoberRange(getPrevYearsList(month));
|
|
2292
|
+
const disableNext = view === 'YEAR_SELECTION' && !isYearWithinSoberRange(getNextYearsList(month));
|
|
2180
2293
|
return (React.createElement("div", { className: cx(css$J.container, uuiHeader.container, cx) },
|
|
2181
2294
|
React.createElement("header", { className: uuiHeader.header },
|
|
2182
2295
|
React.createElement(Button, { icon: navIconLeft || ForwardRef$v, color: "secondary", fill: "ghost", cx: uuiHeader.navIconLeft, onClick: () => onLeftNavigationArrow(), isDisabled: disablePrev }),
|
|
@@ -2184,14 +2297,14 @@ function DatePickerHeader({ navIconLeft, navIconRight, value: { month, view }, o
|
|
|
2184
2297
|
React.createElement(Button, { icon: navIconRight || ForwardRef$u, color: "secondary", fill: "ghost", cx: uuiHeader.navIconRight, onClick: () => onRightNavigationArrow(), isDisabled: disableNext }))));
|
|
2185
2298
|
}
|
|
2186
2299
|
|
|
2187
|
-
var css$I = {"uui-typography":"
|
|
2300
|
+
var css$I = {"uui-typography":"PZUczH","hero-header":"vM0FWE","promo-header":"_2YnTFn","uui-critical":"wmBMsX","uui-info":"oiBb-t","uui-success":"LXdAp5","uui-warning":"U0neg8","uui-highlight":"m1OC19","uui-typography-size-12":"GjGb0a","uui-typography-size-14":"Jw29EE","uui-typography-size-16":"W0307i","root":"jrlB--","uuiTypography":"PZUczH","heroHeader":"vM0FWE","promoHeader":"_2YnTFn","uuiCritical":"wmBMsX","uuiInfo":"oiBb-t","uuiSuccess":"LXdAp5","uuiWarning":"U0neg8","uuiHighlight":"m1OC19","uuiTypographySize12":"GjGb0a","uuiTypographySize14":"Jw29EE","uuiTypographySize16":"W0307i"};
|
|
2188
2301
|
|
|
2189
2302
|
function applyDateSelectionMods() {
|
|
2190
2303
|
return [css$I.root];
|
|
2191
2304
|
}
|
|
2192
2305
|
const Calendar = /* @__PURE__ */withMods(Calendar$1, applyDateSelectionMods);
|
|
2193
2306
|
|
|
2194
|
-
var css$H = {"uui-typography":"
|
|
2307
|
+
var css$H = {"uui-typography":"vVbiUM","hero-header":"M5YX6y","promo-header":"_0SWykw","uui-critical":"rgxNZ1","uui-info":"DYswsY","uui-success":"_7GZb06","uui-warning":"xzZPvC","uui-highlight":"NZDHql","uui-typography-size-12":"h7ec6o","uui-typography-size-14":"iE4MUa","uui-typography-size-16":"WJR4YD","root":"zN6NtQ","uuiTypography":"vVbiUM","heroHeader":"M5YX6y","promoHeader":"_0SWykw","uuiCritical":"rgxNZ1","uuiInfo":"DYswsY","uuiSuccess":"_7GZb06","uuiWarning":"xzZPvC","uuiHighlight":"NZDHql","uuiTypographySize12":"h7ec6o","uuiTypographySize14":"iE4MUa","uuiTypographySize16":"WJR4YD"};
|
|
2195
2308
|
|
|
2196
2309
|
const uuiDatePickerBody = {
|
|
2197
2310
|
wrapper: 'uui-datepickerBody-wrapper',
|
|
@@ -2279,7 +2392,7 @@ function FilterDatePickerBody(props) {
|
|
|
2279
2392
|
} })))));
|
|
2280
2393
|
}
|
|
2281
2394
|
|
|
2282
|
-
var css$G = {"uui-typography":"
|
|
2395
|
+
var css$G = {"uui-typography":"zwIz0B","hero-header":"A3OLrk","promo-header":"qb4RXH","uui-critical":"VODMfm","uui-info":"f7rYM9","uui-success":"jwMDng","uui-warning":"_-5UKYH","uui-highlight":"_6ZR2XF","uui-typography-size-12":"wLtJVt","uui-typography-size-14":"M30Nhp","uui-typography-size-16":"yU4qLl","dropdown-container":"r2qPAd","date-input":"FcHsRd","date-input-group":"uyNxar","separator":"Z8JIJv","mode-form":"fcqDvF","mode-cell":"QfcnjY","uuiTypography":"zwIz0B","heroHeader":"A3OLrk","promoHeader":"qb4RXH","uuiCritical":"VODMfm","uuiInfo":"f7rYM9","uuiSuccess":"jwMDng","uuiWarning":"_-5UKYH","uuiHighlight":"_6ZR2XF","uuiTypographySize12":"wLtJVt","uuiTypographySize14":"M30Nhp","uuiTypographySize16":"yU4qLl","dropdownContainer":"r2qPAd","dateInput":"FcHsRd","dateInputGroup":"uyNxar","modeForm":"fcqDvF","modeCell":"QfcnjY"};
|
|
2283
2396
|
|
|
2284
2397
|
const RangeDatePickerInput = /* @__PURE__ */forwardRef(({ isDisabled, isInvalid, isReadonly, size, disableClear, rawProps, value, inFocus, format, onValueChange, onBlur, onFocusInput, onBlurInput, onClick, getPlaceholder, filter, id, cx: classes, }, ref) => {
|
|
2285
2398
|
const [inputValue, setInputValue] = useState(toCustomDateRangeFormat(value, format));
|
|
@@ -2305,14 +2418,14 @@ const RangeDatePickerInput = /* @__PURE__ */forwardRef(({ isDisabled, isInvalid,
|
|
|
2305
2418
|
}
|
|
2306
2419
|
};
|
|
2307
2420
|
const clearAllowed = !disableClear && inputValue.from && inputValue.to;
|
|
2308
|
-
return (React__default.createElement("div", { ref: ref, className: cx$1(classes, css$G.dateInputGroup, isDisabled && uuiMod.disabled, isReadonly && uuiMod.readonly, isInvalid && uuiMod.invalid, inFocus && uuiMod.focus), onClick: (event) => {
|
|
2421
|
+
return (React__default.createElement("div", { ref: ref, className: cx$1(classes, css$G.dateInputGroup, 'uui-range-date-picker', isDisabled && uuiMod.disabled, isReadonly && uuiMod.readonly, isInvalid && uuiMod.invalid, inFocus && uuiMod.focus), onClick: (event) => {
|
|
2309
2422
|
if (!isDisabled) {
|
|
2310
2423
|
onClick === null || onClick === void 0 ? void 0 : onClick(event);
|
|
2311
2424
|
}
|
|
2312
2425
|
}, onBlur: onBlur },
|
|
2313
|
-
React__default.createElement(TextInput, { icon: systemIcons.calendar, cx: cx$1(css$G.dateInput,
|
|
2426
|
+
React__default.createElement(TextInput, { icon: systemIcons.calendar, cx: cx$1(css$G.dateInput, inFocus === 'from' && uuiMod.focus), size: size || settings.sizes.defaults.rangeDatePicker, placeholder: getPlaceholder ? getPlaceholder('from') : i18n.rangeDatePicker.pickerPlaceholderFrom, value: inputValue.from || undefined, onValueChange: (v) => onInputChange(v || '', 'from'), onFocus: (event) => handleFocus(event, 'from'), onBlur: (event) => handleBlur(event, 'from'), isInvalid: isInvalid, isDisabled: isDisabled, isReadonly: isReadonly, isDropdown: false, rawProps: rawProps === null || rawProps === void 0 ? void 0 : rawProps.from, id: id }),
|
|
2314
2427
|
React__default.createElement("div", { className: css$G.separator }),
|
|
2315
|
-
React__default.createElement(TextInput, { cx: cx$1(css$G.dateInput,
|
|
2428
|
+
React__default.createElement(TextInput, { cx: cx$1(css$G.dateInput, inFocus === 'to' && uuiMod.focus), placeholder: getPlaceholder ? getPlaceholder('to') : i18n.rangeDatePicker.pickerPlaceholderTo, size: size || settings.sizes.defaults.rangeDatePicker, value: inputValue.to || undefined, onCancel: clearAllowed ? () => {
|
|
2316
2429
|
onValueChange(defaultRangeValue);
|
|
2317
2430
|
} : undefined, onValueChange: (v) => onInputChange(v || '', 'to'), onFocus: (e) => handleFocus(e, 'to'), onBlur: (e) => handleBlur(e, 'to'), isInvalid: isInvalid, isDisabled: isDisabled, isReadonly: isReadonly, isDropdown: false, rawProps: rawProps === null || rawProps === void 0 ? void 0 : rawProps.to })));
|
|
2318
2431
|
});
|
|
@@ -2370,7 +2483,7 @@ function FilterRangeDatePickerBody(props) {
|
|
|
2370
2483
|
React__default.createElement(LinkButton, { isDisabled: !value.from && !value.to, caption: i18n.pickerModal.clearAllButton, onClick: () => onValueChange(defaultRangeValue) })))));
|
|
2371
2484
|
}
|
|
2372
2485
|
|
|
2373
|
-
var css$F = {"container":"
|
|
2486
|
+
var css$F = {"container":"OUGe-z"};
|
|
2374
2487
|
|
|
2375
2488
|
function FilterNumericBody(props) {
|
|
2376
2489
|
var _a, _b;
|
|
@@ -2455,7 +2568,7 @@ function FilterItemBody(props) {
|
|
|
2455
2568
|
|
|
2456
2569
|
var _path$r;
|
|
2457
2570
|
function _extends$r() { _extends$r = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$r.apply(this, arguments); }
|
|
2458
|
-
var
|
|
2571
|
+
var SvgActionDeleteOutline = function SvgActionDeleteOutline(props, ref) {
|
|
2459
2572
|
return /*#__PURE__*/React.createElement("svg", _extends$r({
|
|
2460
2573
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2461
2574
|
width: 24,
|
|
@@ -2463,14 +2576,12 @@ var SvgActionDeleteForeverFill = function SvgActionDeleteForeverFill(props, ref)
|
|
|
2463
2576
|
viewBox: "0 0 24 24",
|
|
2464
2577
|
ref: ref
|
|
2465
2578
|
}, props), _path$r || (_path$r = /*#__PURE__*/React.createElement("path", {
|
|
2466
|
-
|
|
2467
|
-
d: "M7 21c-1.1 0-2-.9-2-2V8h14v11c0 1.1-.9 2-2 2H7zm8-17h5v2H4V4h5V3h6v1zM9.4 18.5l2.6-2.6 2.6 2.6 1.4-1.4-2.6-2.6 2.6-2.6-1.4-1.4-2.6 2.6-2.6-2.6L8 11.9l2.6 2.6L8 17.1l1.4 1.4z",
|
|
2468
|
-
clipRule: "evenodd"
|
|
2579
|
+
d: "M9 3v1H4v2h1v13a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V6h1V4h-5V3H9zM7 6h10v13H7V6zm2 2v9h2V8H9zm4 0v9h2V8h-2z"
|
|
2469
2580
|
})));
|
|
2470
2581
|
};
|
|
2471
|
-
var ForwardRef$r = /*#__PURE__*/forwardRef(
|
|
2582
|
+
var ForwardRef$r = /*#__PURE__*/forwardRef(SvgActionDeleteOutline);
|
|
2472
2583
|
|
|
2473
|
-
var css$E = {"uui-typography":"
|
|
2584
|
+
var css$E = {"uui-typography":"vzDDyE","hero-header":"_5Ygzwk","promo-header":"xOKDYO","uui-critical":"OYmRHZ","uui-info":"Zf6K9-","uui-success":"G3TnMO","uui-warning":"opVz99","uui-highlight":"LJZU2F","uui-typography-size-12":"PmHW-X","uui-typography-size-14":"-nd0gb","uui-typography-size-16":"_7gd4Mn","header":"W1sfOj","removeButton":"XnVLLa","with-search":"ws0jAn","uuiTypography":"vzDDyE","heroHeader":"_5Ygzwk","promoHeader":"xOKDYO","uuiCritical":"OYmRHZ","uuiInfo":"Zf6K9-","uuiSuccess":"G3TnMO","uuiWarning":"opVz99","uuiHighlight":"LJZU2F","uuiTypographySize12":"PmHW-X","uuiTypographySize14":"-nd0gb","uuiTypographySize16":"_7gd4Mn","withSearch":"ws0jAn"};
|
|
2474
2585
|
|
|
2475
2586
|
function useView(props, value) {
|
|
2476
2587
|
const forceUpdate = useForceUpdate();
|
|
@@ -2792,7 +2903,7 @@ function FiltersToolbarImpl(props) {
|
|
|
2792
2903
|
}
|
|
2793
2904
|
const FiltersPanel = /* @__PURE__ */React__default.memo(FiltersToolbarImpl);
|
|
2794
2905
|
|
|
2795
|
-
var css$D = {"divider":"-
|
|
2906
|
+
var css$D = {"divider":"gLsq-B","dropdownDeleteIcon":"Nt0O38","presetsWrapper":"yNKxfT","addPresetContainer":"-UACv-","dropContainer":"-V7pyg"};
|
|
2796
2907
|
|
|
2797
2908
|
var _path$p;
|
|
2798
2909
|
function _extends$p() { _extends$p = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$p.apply(this, arguments); }
|
|
@@ -2905,22 +3016,7 @@ var SvgContentLinkOutline = function SvgContentLinkOutline(props, ref) {
|
|
|
2905
3016
|
};
|
|
2906
3017
|
var ForwardRef$j = /*#__PURE__*/forwardRef(SvgContentLinkOutline);
|
|
2907
3018
|
|
|
2908
|
-
var
|
|
2909
|
-
function _extends$i() { _extends$i = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$i.apply(this, arguments); }
|
|
2910
|
-
var SvgActionDeleteOutline = function SvgActionDeleteOutline(props, ref) {
|
|
2911
|
-
return /*#__PURE__*/React.createElement("svg", _extends$i({
|
|
2912
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2913
|
-
width: 24,
|
|
2914
|
-
height: 24,
|
|
2915
|
-
viewBox: "0 0 24 24",
|
|
2916
|
-
ref: ref
|
|
2917
|
-
}, props), _path$i || (_path$i = /*#__PURE__*/React.createElement("path", {
|
|
2918
|
-
d: "M9 3v1H4v2h1v13a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V6h1V4h-5V3H9zM7 6h10v13H7V6zm2 2v9h2V8H9zm4 0v9h2V8h-2z"
|
|
2919
|
-
})));
|
|
2920
|
-
};
|
|
2921
|
-
var ForwardRef$i = /*#__PURE__*/forwardRef(SvgActionDeleteOutline);
|
|
2922
|
-
|
|
2923
|
-
var css$C = {"delete-button":"V609Tt","tab-button":"fzjDwT","targetOpen":"FRmgAg","deleteButton":"V609Tt","tabButton":"fzjDwT"};
|
|
3019
|
+
var css$C = {"delete-button":"hdJ6GI","tab-button":"OXjbnu","targetOpen":"_9oJSVN","deleteButton":"hdJ6GI","tabButton":"OXjbnu"};
|
|
2924
3020
|
|
|
2925
3021
|
function PresetActionsDropdown(props) {
|
|
2926
3022
|
const { uuiNotifications } = useUuiContext();
|
|
@@ -2970,7 +3066,7 @@ function PresetActionsDropdown(props) {
|
|
|
2970
3066
|
React__default.createElement(DropdownMenuButton, { key: `${props.preset.id}-copyLink`, icon: ForwardRef$j, caption: "Copy Link", onClick: copyUrlToClipboard }),
|
|
2971
3067
|
!isReadonlyPreset && (React__default.createElement(React__default.Fragment, null,
|
|
2972
3068
|
React__default.createElement(DropdownMenuSplitter, { key: "delete-splitter" }),
|
|
2973
|
-
React__default.createElement(DropdownMenuButton, { icon: ForwardRef$
|
|
3069
|
+
React__default.createElement(DropdownMenuButton, { icon: ForwardRef$r, caption: "Delete", cx: css$C.deleteButton, onClick: deleteHandler })))));
|
|
2974
3070
|
};
|
|
2975
3071
|
const renderTarget = useCallback((dropdownProps) => {
|
|
2976
3072
|
return (React__default.createElement(IconButton, Object.assign({ cx: [css$C.tabButton, dropdownProps.isOpen && css$C.targetOpen], color: props.preset.id === props.activePresetId ? 'primary' : 'neutral' }, dropdownProps, { icon: ForwardRef$p, size: "18" })));
|
|
@@ -2978,7 +3074,7 @@ function PresetActionsDropdown(props) {
|
|
|
2978
3074
|
return (React__default.createElement(Dropdown, { renderBody: renderBody, renderTarget: renderTarget, placement: "bottom-end", modifiers: [{ name: 'offset', options: { offset: [0, 22] } }] }));
|
|
2979
3075
|
}
|
|
2980
3076
|
|
|
2981
|
-
var css$B = {"preset-input-cell":"
|
|
3077
|
+
var css$B = {"preset-input-cell":"IWGqcV","preset-input":"MA5x-k","presetInputCell":"IWGqcV","presetInput":"MA5x-k"};
|
|
2982
3078
|
|
|
2983
3079
|
const UUI_PRESETS_PANEL_ADD_BUTTON = 'uui-presets-panel-add-button';
|
|
2984
3080
|
const UUI_PRESETS_PANEL_MORE_BUTTON = 'uui-presets-panel-more-button';
|
|
@@ -3011,7 +3107,7 @@ function PresetInput(props) {
|
|
|
3011
3107
|
React__default.createElement(TextInput, { cx: css$B.presetInput, onValueChange: setPresetCaption, value: presetCaption, onCancel: cancelActionHandler, onAccept: acceptActionHandler, onBlur: newPresetOnBlurHandler, autoFocus: true, maxLength: 50, isReadonly: readonly })));
|
|
3012
3108
|
}
|
|
3013
3109
|
|
|
3014
|
-
var css$A = {"preset":"
|
|
3110
|
+
var css$A = {"preset":"_5td9-7","activePreset":"G0EzZC"};
|
|
3015
3111
|
|
|
3016
3112
|
function Preset(props) {
|
|
3017
3113
|
const [isRenamePreset, setIsRenamePreset] = useState(false);
|
|
@@ -3032,6 +3128,23 @@ function Preset(props) {
|
|
|
3032
3128
|
return (React__default.createElement(FlexCell, { key: props.preset.id, alignSelf: "center", width: "auto" }, isRenamePreset ? (React__default.createElement(PresetInput, { onCancel: cancelRenamePreset, onSuccess: handlePresetRename, preset: props.preset })) : (React__default.createElement(TabButton, { caption: props.preset.name, onClick: !isPresetActive && choosePresetHandler, cx: [css$A.preset, isPresetActive && css$A.activePreset, UUI_PRESETS_PANEL_PRESET], size: "60", withNotify: isPresetActive && props.hasPresetChanged(props.preset), icon: () => React__default.createElement(PresetActionsDropdown, Object.assign({ renamePreset: setPresetForRename }, props)), iconPosition: "right", isLinkActive: isPresetActive }))));
|
|
3033
3129
|
}
|
|
3034
3130
|
|
|
3131
|
+
var _path$i;
|
|
3132
|
+
function _extends$i() { _extends$i = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$i.apply(this, arguments); }
|
|
3133
|
+
var SvgActionDeleteForeverFill = function SvgActionDeleteForeverFill(props, ref) {
|
|
3134
|
+
return /*#__PURE__*/React.createElement("svg", _extends$i({
|
|
3135
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3136
|
+
width: 24,
|
|
3137
|
+
height: 24,
|
|
3138
|
+
viewBox: "0 0 24 24",
|
|
3139
|
+
ref: ref
|
|
3140
|
+
}, props), _path$i || (_path$i = /*#__PURE__*/React.createElement("path", {
|
|
3141
|
+
fillRule: "evenodd",
|
|
3142
|
+
d: "M7 21c-1.1 0-2-.9-2-2V8h14v11c0 1.1-.9 2-2 2H7zm8-17h5v2H4V4h5V3h6v1zM9.4 18.5l2.6-2.6 2.6 2.6 1.4-1.4-2.6-2.6 2.6-2.6-1.4-1.4-2.6 2.6-2.6-2.6L8 11.9l2.6 2.6L8 17.1l1.4 1.4z",
|
|
3143
|
+
clipRule: "evenodd"
|
|
3144
|
+
})));
|
|
3145
|
+
};
|
|
3146
|
+
var ForwardRef$i = /*#__PURE__*/forwardRef(SvgActionDeleteForeverFill);
|
|
3147
|
+
|
|
3035
3148
|
function PresetsPanel(props) {
|
|
3036
3149
|
const [isAddingPreset, setIsAddingPreset] = useState(false);
|
|
3037
3150
|
const setAddingPreset = useCallback(() => {
|
|
@@ -3054,7 +3167,7 @@ function PresetsPanel(props) {
|
|
|
3054
3167
|
return (React__default.createElement(Dropdown, { key: "more", renderTarget: (props) => (React__default.createElement(FlexRow, null,
|
|
3055
3168
|
React__default.createElement("div", { className: css$D.divider }),
|
|
3056
3169
|
React__default.createElement(Button, Object.assign({ cx: UUI_PRESETS_PANEL_MORE_BUTTON, fill: "ghost", color: "secondary", caption: `${(hiddenItems === null || hiddenItems === void 0 ? void 0 : hiddenItems.length) || ''} more` }, props)))), renderBody: (propsBody) => (React__default.createElement(DropdownMenuBody, Object.assign({ minWidth: 230 }, propsBody),
|
|
3057
|
-
React__default.createElement(ScrollBars$1, null, hiddenItems.map((hiddenItem) => (React__default.createElement(DropdownMenuButton, { key: hiddenItem.preset.id, onClick: () => onPresetDropdownSelect(hiddenItem), caption: hiddenItem.preset.name, icon: !hiddenItem.preset.isReadonly && ForwardRef$
|
|
3170
|
+
React__default.createElement(ScrollBars$1, null, hiddenItems.map((hiddenItem) => (React__default.createElement(DropdownMenuButton, { key: hiddenItem.preset.id, onClick: () => onPresetDropdownSelect(hiddenItem), caption: hiddenItem.preset.name, icon: !hiddenItem.preset.isReadonly && ForwardRef$i, iconPosition: "right", cx: css$D.dropdownDeleteIcon, onIconClick: !hiddenItem.preset.isReadonly && (() => props.deletePreset(hiddenItem.preset)) })))))) }));
|
|
3058
3171
|
};
|
|
3059
3172
|
const getPresetPriority = (preset, index) => {
|
|
3060
3173
|
return preset.id === props.activePresetId ? 100499 : 1000 - index;
|
|
@@ -3113,25 +3226,16 @@ const useColumnsWithFilters = (initialColumns, filters) => {
|
|
|
3113
3226
|
return columns;
|
|
3114
3227
|
};
|
|
3115
3228
|
|
|
3116
|
-
var css$z = {"line-height-12":"
|
|
3229
|
+
var css$z = {"line-height-12":"SERcjn","line-height-18":"fVVpJt","line-height-24":"e31M2V","line-height-30":"_7brrSE","font-size-10":"WZNxfT","font-size-12":"E7iJ4o","font-size-14":"Ifvwrz","font-size-16":"PnsCR0","font-size-18":"H23nLx","font-size-24":"F3wBjK","v-padding-2":"ivMo0H","v-padding-3":"MZKUHG","v-padding-5":"cq8iGt","v-padding-6":"udVog9","v-padding-8":"_9v03ys","v-padding-9":"Rgl-tJ","v-padding-11":"woY0ZX","v-padding-12":"CKAMMY","v-padding-14":"Z4s4B9","v-padding-15":"pK54Mg","v-padding-17":"cZN17b","v-padding-18":"FKqMog","v-padding-23":"_2LR3zd","v-padding-24":"Qbs5Zp","lineHeight12":"SERcjn","lineHeight18":"fVVpJt","lineHeight24":"e31M2V","lineHeight30":"_7brrSE","fontSize10":"WZNxfT","fontSize12":"E7iJ4o","fontSize14":"Ifvwrz","fontSize16":"PnsCR0","fontSize18":"H23nLx","fontSize24":"F3wBjK","vPadding2":"ivMo0H","vPadding3":"MZKUHG","vPadding5":"cq8iGt","vPadding6":"udVog9","vPadding8":"_9v03ys","vPadding9":"Rgl-tJ","vPadding11":"woY0ZX","vPadding12":"CKAMMY","vPadding14":"Z4s4B9","vPadding15":"pK54Mg","vPadding17":"cZN17b","vPadding18":"FKqMog","vPadding23":"_2LR3zd","vPadding24":"Qbs5Zp"};
|
|
3117
3230
|
|
|
3118
|
-
const defaultTextSettings = {
|
|
3119
|
-
18: { lineHeight: 12, fontSize: 10 },
|
|
3120
|
-
24: { lineHeight: 18, fontSize: 12 },
|
|
3121
|
-
30: { lineHeight: 18, fontSize: 14 },
|
|
3122
|
-
36: { lineHeight: 18, fontSize: 14 },
|
|
3123
|
-
42: { lineHeight: 24, fontSize: 16 },
|
|
3124
|
-
48: { lineHeight: 24, fontSize: 16 },
|
|
3125
|
-
60: { lineHeight: 30, fontSize: 24 },
|
|
3126
|
-
};
|
|
3127
3231
|
function getTextClasses(props, border) {
|
|
3128
3232
|
if (props.size === 'none') {
|
|
3129
3233
|
return [css$z['line-height-' + props.lineHeight], css$z['font-size-' + props.fontSize]];
|
|
3130
3234
|
}
|
|
3131
3235
|
const setting = {
|
|
3132
3236
|
size: props.size,
|
|
3133
|
-
lineHeight: props.lineHeight ||
|
|
3134
|
-
fontSize: props.fontSize ||
|
|
3237
|
+
lineHeight: props.lineHeight || settings.sizes.text[props.size].lineHeight,
|
|
3238
|
+
fontSize: props.fontSize || settings.sizes.text[props.size].fontSize,
|
|
3135
3239
|
};
|
|
3136
3240
|
const vPadding = (+setting.size - +setting.lineHeight - (border ? 2 : 0)) / 2;
|
|
3137
3241
|
return [
|
|
@@ -3139,11 +3243,11 @@ function getTextClasses(props, border) {
|
|
|
3139
3243
|
];
|
|
3140
3244
|
}
|
|
3141
3245
|
|
|
3142
|
-
var css$y = {"root":"
|
|
3246
|
+
var css$y = {"root":"JnRYe7"};
|
|
3143
3247
|
|
|
3144
3248
|
function applyTextMods(mods) {
|
|
3145
3249
|
const textClasses = getTextClasses({
|
|
3146
|
-
size: mods.size ||
|
|
3250
|
+
size: mods.size || settings.sizes.defaults.text,
|
|
3147
3251
|
lineHeight: mods.lineHeight,
|
|
3148
3252
|
fontSize: mods.fontSize,
|
|
3149
3253
|
}, false);
|
|
@@ -3158,7 +3262,7 @@ function applyTextMods(mods) {
|
|
|
3158
3262
|
}
|
|
3159
3263
|
const Text = /* @__PURE__ */withMods(uuiComponents.Text, applyTextMods);
|
|
3160
3264
|
|
|
3161
|
-
var css$x = {"root":"
|
|
3265
|
+
var css$x = {"root":"-pFXyW","loading-word":"_33mFUf","animated-loading":"QsQbkF","skeleton_loading":"g0m5MF","loadingWord":"_33mFUf","animatedLoading":"QsQbkF","skeletonLoading":"g0m5MF"};
|
|
3162
3266
|
|
|
3163
3267
|
const TextPlaceholder = (props) => {
|
|
3164
3268
|
const pattern = ' ';
|
|
@@ -3177,7 +3281,7 @@ const TextPlaceholder = (props) => {
|
|
|
3177
3281
|
|
|
3178
3282
|
const RichTextView = /* @__PURE__ */withMods(uuiComponents.RichTextView, (mods) => ['uui-typography', `uui-typography-size-${mods.size || '14'}`]);
|
|
3179
3283
|
|
|
3180
|
-
var css$w = {"uui-typography":"
|
|
3284
|
+
var css$w = {"uui-typography":"mgtRF-","hero-header":"FgrSLR","promo-header":"e2eyni","uui-critical":"UkPE8T","uui-info":"vqlymL","uui-success":"cdBn7N","uui-warning":"jXeE4L","uui-highlight":"MQoNxi","uui-typography-size-12":"lD82jb","uui-typography-size-14":"_3adTiR","uui-typography-size-16":"R6UFzo","root":"aD2RH7","modal-blocker":"SavMY-","animateModalBlocker":"GhEbZP","modal":"GGXsWK","modal-footer":"xww5AU","modal-header":"gL8j2F","uuiTypography":"mgtRF-","heroHeader":"FgrSLR","promoHeader":"e2eyni","uuiCritical":"UkPE8T","uuiInfo":"vqlymL","uuiSuccess":"cdBn7N","uuiWarning":"jXeE4L","uuiHighlight":"MQoNxi","uuiTypographySize12":"lD82jb","uuiTypographySize14":"_3adTiR","uuiTypographySize16":"R6UFzo","modalBlocker":"SavMY-","modalFooter":"xww5AU","modalHeader":"gL8j2F"};
|
|
3181
3285
|
|
|
3182
3286
|
const ModalBlocker = /* @__PURE__ */withMods(ModalBlocker$1, () => [css$w.modalBlocker]);
|
|
3183
3287
|
const ModalWindow = /* @__PURE__ */withMods(ModalWindow$1, () => [css$w.root, css$w.modal], (props) => {
|
|
@@ -3196,19 +3300,19 @@ const ModalWindow = /* @__PURE__ */withMods(ModalWindow$1, () => [css$w.root, cs
|
|
|
3196
3300
|
maxHeight }),
|
|
3197
3301
|
};
|
|
3198
3302
|
});
|
|
3199
|
-
class ModalHeader extends
|
|
3303
|
+
class ModalHeader extends React__default.Component {
|
|
3200
3304
|
render() {
|
|
3201
|
-
return (
|
|
3202
|
-
this.props.title && (
|
|
3305
|
+
return (React__default.createElement(FlexRow, { padding: this.props.padding || '24', vPadding: "12", borderBottom: this.props.borderBottom, cx: [css$w.root, css$w.modalHeader, this.props.cx], columnGap: "12", rawProps: this.props.rawProps },
|
|
3306
|
+
this.props.title && (React__default.createElement(Text, { size: "48", fontSize: "18", fontWeight: "600" }, this.props.title)),
|
|
3203
3307
|
this.props.children,
|
|
3204
|
-
this.props.onClose &&
|
|
3205
|
-
this.props.onClose && (
|
|
3206
|
-
|
|
3308
|
+
this.props.onClose && React__default.createElement(FlexSpacer, null),
|
|
3309
|
+
this.props.onClose && (React__default.createElement(FlexCell, { shrink: 0, width: "auto" },
|
|
3310
|
+
React__default.createElement(IconButton, { rawProps: { 'aria-label': 'Close modal' }, icon: ForwardRef$Q, onClick: this.props.onClose })))));
|
|
3207
3311
|
}
|
|
3208
3312
|
}
|
|
3209
|
-
class ModalFooter extends
|
|
3313
|
+
class ModalFooter extends React__default.Component {
|
|
3210
3314
|
render() {
|
|
3211
|
-
return (
|
|
3315
|
+
return (React__default.createElement(FlexRow, { columnGap: this.props.columnGap || '12', cx: [
|
|
3212
3316
|
css$w.root,
|
|
3213
3317
|
css$w.modalFooter,
|
|
3214
3318
|
this.props.cx,
|
|
@@ -3231,7 +3335,7 @@ var SvgNotificationHelpFill = function SvgNotificationHelpFill(props, ref) {
|
|
|
3231
3335
|
};
|
|
3232
3336
|
var ForwardRef$h = /*#__PURE__*/forwardRef(SvgNotificationHelpFill);
|
|
3233
3337
|
|
|
3234
|
-
var css$v = {"uui-typography":"
|
|
3338
|
+
var css$v = {"uui-typography":"-y5UyA","hero-header":"pf6CuY","promo-header":"Nv-toi","uui-critical":"DU4TPW","uui-info":"MXHu4z","uui-success":"RnAK8T","uui-warning":"_1luZCq","uui-highlight":"DBxaW-","uui-typography-size-12":"pdSxez","uui-typography-size-14":"M-rS41","uui-typography-size-16":"rUSMXd","root":"XzGlMG","icon-wrapper":"vPks8V","action-wrapper":"_6SKJtB","action-link":"hwCYkH","close-icon":"TuYQSp","main-path":"_5xv-K2","content":"ZN-MDY","close-wrapper":"SCO0Ao","notification-wrapper":"VPR2Mi","clear-button":"PjFcxe","uuiTypography":"-y5UyA","heroHeader":"pf6CuY","promoHeader":"Nv-toi","uuiCritical":"DU4TPW","uuiInfo":"MXHu4z","uuiSuccess":"RnAK8T","uuiWarning":"_1luZCq","uuiHighlight":"DBxaW-","uuiTypographySize12":"pdSxez","uuiTypographySize14":"M-rS41","uuiTypographySize16":"rUSMXd","iconWrapper":"vPks8V","actionWrapper":"_6SKJtB","actionLink":"hwCYkH","closeIcon":"TuYQSp","mainPath":"_5xv-K2","closeWrapper":"SCO0Ao","notificationWrapper":"VPR2Mi","clearButton":"PjFcxe"};
|
|
3235
3339
|
|
|
3236
3340
|
const NotificationCard = /* @__PURE__ */React__default.forwardRef((props, ref) => {
|
|
3237
3341
|
const notificationCardNode = React__default.useRef(null);
|
|
@@ -3307,6 +3411,64 @@ function useReliableForceUpdate() {
|
|
|
3307
3411
|
return red[1];
|
|
3308
3412
|
}
|
|
3309
3413
|
|
|
3414
|
+
var css$u = {"root":"whuI-d","timepicker-input":"Du-izy","ltr-always":"MfDtNi","timepickerInput":"Du-izy","ltrAlways":"MfDtNi"};
|
|
3415
|
+
|
|
3416
|
+
const uuiTimePicker = {
|
|
3417
|
+
container: 'uui-timepicker-container',
|
|
3418
|
+
iconUp: 'uui-timepicker-icon-up',
|
|
3419
|
+
iconDown: 'uui-timepicker-icon-down',
|
|
3420
|
+
input: 'uui-timepicker-input',
|
|
3421
|
+
elementContainer: 'uui-timepicker-item',
|
|
3422
|
+
};
|
|
3423
|
+
const MIN_MINUTES = 0;
|
|
3424
|
+
const MAX_MINUTES = 59;
|
|
3425
|
+
const FORMAT_12H = 12;
|
|
3426
|
+
function TimePickerBody(props) {
|
|
3427
|
+
const MIN_HOURS = props.format === FORMAT_12H ? 1 : 0;
|
|
3428
|
+
const MAX_HOURS = props.format || FORMAT_12H;
|
|
3429
|
+
const setValue = (newTime) => {
|
|
3430
|
+
props.onValueChange({ hours: newTime.hour(), minutes: newTime.minute() });
|
|
3431
|
+
};
|
|
3432
|
+
const onHoursChange = (newHours) => {
|
|
3433
|
+
setValue(uuiDayjs.dayjs().set(props.value).hour(newHours));
|
|
3434
|
+
};
|
|
3435
|
+
const onMinutesChange = (newMinutes) => {
|
|
3436
|
+
setValue(uuiDayjs.dayjs().set(props.value).minute(newMinutes));
|
|
3437
|
+
};
|
|
3438
|
+
const onTimeTypeChange = () => {
|
|
3439
|
+
setValue(uuiDayjs.dayjs().set(props.value).add(12, 'h'));
|
|
3440
|
+
};
|
|
3441
|
+
const handleMinutesUpClick = () => {
|
|
3442
|
+
const minutesStep = props.minutesStep || 5;
|
|
3443
|
+
const value = uuiDayjs.dayjs().set(props.value);
|
|
3444
|
+
const minutesToAdd = minutesStep - (value.minute() % minutesStep);
|
|
3445
|
+
onMinutesChange(value.add(minutesToAdd, 'm').minute());
|
|
3446
|
+
};
|
|
3447
|
+
const handleMinutesDownClick = () => {
|
|
3448
|
+
const minutesStep = props.minutesStep || 5;
|
|
3449
|
+
const value = uuiDayjs.dayjs().set(props.value);
|
|
3450
|
+
const minutesToSubtract = value.minute() % minutesStep === 0 ? minutesStep : value.minute() % minutesStep;
|
|
3451
|
+
onMinutesChange(value.subtract(minutesToSubtract, 'm').minute());
|
|
3452
|
+
};
|
|
3453
|
+
return (React.createElement("div", Object.assign({ className: cx$1(css$u.root, uuiTimePicker.container, props.cx), ref: props.forwardedRef }, props.rawProps),
|
|
3454
|
+
React.createElement("div", { className: css$u.ltrAlways },
|
|
3455
|
+
React.createElement("div", { className: uuiTimePicker.elementContainer },
|
|
3456
|
+
React.createElement(IconContainer, { size: 18, rawProps: { 'aria-label': 'Increment hours' }, cx: uuiTimePicker.iconUp, icon: ForwardRef$P, onClick: () => onHoursChange(uuiDayjs.dayjs().set(props.value).add(1, 'h').hour()) }),
|
|
3457
|
+
React.createElement(NumericInput$1, { cx: uuiTimePicker.input, onValueChange: onHoursChange, value: +(uuiDayjs.dayjs()
|
|
3458
|
+
.set(props.value)
|
|
3459
|
+
.format(MAX_HOURS === FORMAT_12H ? 'hh' : 'HH')), min: MIN_HOURS, max: MAX_HOURS }),
|
|
3460
|
+
React.createElement(IconContainer, { size: 18, rawProps: { 'aria-label': 'Decrement hours' }, cx: uuiTimePicker.iconDown, icon: ForwardRef$P, onClick: () => onHoursChange(uuiDayjs.dayjs().set(props.value).subtract(1, 'h').hour()) })),
|
|
3461
|
+
React.createElement("div", { className: uuiTimePicker.elementContainer },
|
|
3462
|
+
React.createElement(IconContainer, { size: 18, rawProps: { 'aria-label': 'Increment minutes' }, cx: uuiTimePicker.iconUp, icon: ForwardRef$P, onClick: handleMinutesUpClick }),
|
|
3463
|
+
React.createElement(NumericInput$1, { cx: uuiTimePicker.input, onValueChange: onMinutesChange, value: +uuiDayjs.dayjs().set(props.value).format('m'), min: MIN_MINUTES, max: MAX_MINUTES }),
|
|
3464
|
+
React.createElement(IconContainer, { size: 18, rawProps: { 'aria-label': 'Decrement minutes' }, cx: uuiTimePicker.iconDown, icon: ForwardRef$P, onClick: handleMinutesDownClick }))),
|
|
3465
|
+
MAX_HOURS === FORMAT_12H && (React.createElement("div", { className: uuiTimePicker.elementContainer },
|
|
3466
|
+
React.createElement(IconContainer, { size: 18, cx: uuiTimePicker.iconUp, icon: ForwardRef$P, onClick: onTimeTypeChange }),
|
|
3467
|
+
React.createElement(TextInput$1, { cx: uuiTimePicker.input, onValueChange: () => {
|
|
3468
|
+
}, isReadonly: true, value: uuiDayjs.dayjs().set(props.value).format('A') }),
|
|
3469
|
+
React.createElement(IconContainer, { size: 18, cx: uuiTimePicker.iconDown, icon: ForwardRef$P, onClick: onTimeTypeChange })))));
|
|
3470
|
+
}
|
|
3471
|
+
|
|
3310
3472
|
const getMeridian = (newValue, format) => {
|
|
3311
3473
|
if (format === 'hh:mm A') {
|
|
3312
3474
|
if (newValue.toLowerCase().includes('p') && newValue.toLowerCase().includes('a')) {
|
|
@@ -3353,8 +3515,6 @@ const formatTime = (hours, minutes, meridian, format) => {
|
|
|
3353
3515
|
return meridianResult ? time.concat(` ${meridianResult}`) : time;
|
|
3354
3516
|
};
|
|
3355
3517
|
|
|
3356
|
-
var css$u = {"root":"_1a2pjz","timepicker-input":"skdcbb","timepickerInput":"skdcbb"};
|
|
3357
|
-
|
|
3358
3518
|
const DEFAULT_MODE = EditMode.FORM;
|
|
3359
3519
|
const valueToTimeString = (value, format) => {
|
|
3360
3520
|
if (value === null)
|
|
@@ -3444,62 +3604,7 @@ function TimePicker(props) {
|
|
|
3444
3604
|
return (React__default.createElement(Dropdown, { renderTarget: (targetProps) => (props.renderTarget ? props.renderTarget(targetProps) : renderInput(targetProps)), renderBody: (bodyProps) => !props.isDisabled && !props.isReadonly && renderBody(bodyProps), onValueChange: !props.isDisabled && !props.isReadonly ? onToggle : null, value: state.isOpen, modifiers: [{ name: 'offset', options: { offset: [0, 6] } }], forwardedRef: props.forwardedRef }));
|
|
3445
3605
|
}
|
|
3446
3606
|
|
|
3447
|
-
|
|
3448
|
-
container: 'uui-timepicker-container',
|
|
3449
|
-
iconUp: 'uui-timepicker-icon-up',
|
|
3450
|
-
iconDown: 'uui-timepicker-icon-down',
|
|
3451
|
-
input: 'uui-timepicker-input',
|
|
3452
|
-
elementContainer: 'uui-timepicker-item',
|
|
3453
|
-
};
|
|
3454
|
-
const MIN_MINUTES = 0;
|
|
3455
|
-
const MAX_MINUTES = 59;
|
|
3456
|
-
const FORMAT_12H = 12;
|
|
3457
|
-
function TimePickerBody(props) {
|
|
3458
|
-
const MIN_HOURS = props.format === FORMAT_12H ? 1 : 0;
|
|
3459
|
-
const MAX_HOURS = props.format || FORMAT_12H;
|
|
3460
|
-
const setValue = (newTime) => {
|
|
3461
|
-
props.onValueChange({ hours: newTime.hour(), minutes: newTime.minute() });
|
|
3462
|
-
};
|
|
3463
|
-
const onHoursChange = (newHours) => {
|
|
3464
|
-
setValue(uuiDayjs.dayjs().set(props.value).hour(newHours));
|
|
3465
|
-
};
|
|
3466
|
-
const onMinutesChange = (newMinutes) => {
|
|
3467
|
-
setValue(uuiDayjs.dayjs().set(props.value).minute(newMinutes));
|
|
3468
|
-
};
|
|
3469
|
-
const onTimeTypeChange = () => {
|
|
3470
|
-
setValue(uuiDayjs.dayjs().set(props.value).add(12, 'h'));
|
|
3471
|
-
};
|
|
3472
|
-
const handleMinutesUpClick = () => {
|
|
3473
|
-
const minutesStep = props.minutesStep || 5;
|
|
3474
|
-
const value = uuiDayjs.dayjs().set(props.value);
|
|
3475
|
-
const minutesToAdd = minutesStep - (value.minute() % minutesStep);
|
|
3476
|
-
onMinutesChange(value.add(minutesToAdd, 'm').minute());
|
|
3477
|
-
};
|
|
3478
|
-
const handleMinutesDownClick = () => {
|
|
3479
|
-
const minutesStep = props.minutesStep || 5;
|
|
3480
|
-
const value = uuiDayjs.dayjs().set(props.value);
|
|
3481
|
-
const minutesToSubtract = value.minute() % minutesStep === 0 ? minutesStep : value.minute() % minutesStep;
|
|
3482
|
-
onMinutesChange(value.subtract(minutesToSubtract, 'm').minute());
|
|
3483
|
-
};
|
|
3484
|
-
return (React.createElement("div", Object.assign({ className: cx$1(css$u.root, uuiTimePicker.container, props.cx), ref: props.forwardedRef }, props.rawProps),
|
|
3485
|
-
React.createElement("div", { className: uuiTimePicker.elementContainer },
|
|
3486
|
-
React.createElement(IconContainer, { size: 18, rawProps: { 'aria-label': 'Increment hours' }, cx: uuiTimePicker.iconUp, icon: ForwardRef$P, onClick: () => onHoursChange(uuiDayjs.dayjs().set(props.value).add(1, 'h').hour()) }),
|
|
3487
|
-
React.createElement(NumericInput$1, { cx: uuiTimePicker.input, onValueChange: onHoursChange, value: +(uuiDayjs.dayjs()
|
|
3488
|
-
.set(props.value)
|
|
3489
|
-
.format(MAX_HOURS === FORMAT_12H ? 'hh' : 'HH')), min: MIN_HOURS, max: MAX_HOURS }),
|
|
3490
|
-
React.createElement(IconContainer, { size: 18, rawProps: { 'aria-label': 'Decrement hours' }, cx: uuiTimePicker.iconDown, icon: ForwardRef$P, onClick: () => onHoursChange(uuiDayjs.dayjs().set(props.value).subtract(1, 'h').hour()) })),
|
|
3491
|
-
React.createElement("div", { className: uuiTimePicker.elementContainer },
|
|
3492
|
-
React.createElement(IconContainer, { size: 18, rawProps: { 'aria-label': 'Increment minutes' }, cx: uuiTimePicker.iconUp, icon: ForwardRef$P, onClick: handleMinutesUpClick }),
|
|
3493
|
-
React.createElement(NumericInput$1, { cx: uuiTimePicker.input, onValueChange: onMinutesChange, value: +uuiDayjs.dayjs().set(props.value).format('m'), min: MIN_MINUTES, max: MAX_MINUTES }),
|
|
3494
|
-
React.createElement(IconContainer, { size: 18, rawProps: { 'aria-label': 'Decrement minutes' }, cx: uuiTimePicker.iconDown, icon: ForwardRef$P, onClick: handleMinutesDownClick })),
|
|
3495
|
-
MAX_HOURS === FORMAT_12H && (React.createElement("div", { className: uuiTimePicker.elementContainer },
|
|
3496
|
-
React.createElement(IconContainer, { size: 18, cx: uuiTimePicker.iconUp, icon: ForwardRef$P, onClick: onTimeTypeChange }),
|
|
3497
|
-
React.createElement(TextInput$1, { cx: uuiTimePicker.input, onValueChange: () => {
|
|
3498
|
-
}, isReadonly: true, value: uuiDayjs.dayjs().set(props.value).format('A') }),
|
|
3499
|
-
React.createElement(IconContainer, { size: 18, cx: uuiTimePicker.iconDown, icon: ForwardRef$P, onClick: onTimeTypeChange })))));
|
|
3500
|
-
}
|
|
3501
|
-
|
|
3502
|
-
var css$t = {"root":"_1tTUIl"};
|
|
3607
|
+
var css$t = {"root":"_8Vnxuz"};
|
|
3503
3608
|
|
|
3504
3609
|
function applyInputAddonMods() {
|
|
3505
3610
|
return [
|
|
@@ -3508,7 +3613,7 @@ function applyInputAddonMods() {
|
|
|
3508
3613
|
}
|
|
3509
3614
|
const InputAddon = /* @__PURE__ */withMods(InputAddon$1, applyInputAddonMods);
|
|
3510
3615
|
|
|
3511
|
-
var css$s = {"root":"
|
|
3616
|
+
var css$s = {"root":"ECPfU6"};
|
|
3512
3617
|
|
|
3513
3618
|
function applySliderMods() {
|
|
3514
3619
|
return [css$s.root, 'uui-color-neutral'];
|
|
@@ -3562,7 +3667,7 @@ function DatePickerComponent(props, ref) {
|
|
|
3562
3667
|
const allowClear = !props.disableClear && !!inputValue;
|
|
3563
3668
|
return (React__default.createElement(TextInput, Object.assign({}, renderProps, {
|
|
3564
3669
|
// fixes a bug with body open, it skips unwanted prevent default
|
|
3565
|
-
onClick: () => { }, isDropdown: false, cx: cx$1(props.inputCx, isBodyOpen && uuiMod.focus), icon: props.mode !== EditMode.CELL && systemIcons.calendar ? systemIcons.calendar : undefined, iconPosition: props.iconPosition || 'left', placeholder: props.placeholder ? props.placeholder : format, size: props.size ||
|
|
3670
|
+
onClick: () => { }, isDropdown: false, cx: cx$1(props.inputCx, isBodyOpen && uuiMod.focus), icon: props.mode !== EditMode.CELL && systemIcons.calendar ? systemIcons.calendar : undefined, iconPosition: props.iconPosition || 'left', placeholder: props.placeholder ? props.placeholder : format, size: props.size || settings.sizes.defaults.datePicker, value: inputValue || undefined, onValueChange: (v) => {
|
|
3566
3671
|
setInputValue(v || '');
|
|
3567
3672
|
}, onCancel: allowClear ? () => {
|
|
3568
3673
|
if (!props.disableClear && !!inputValue) {
|
|
@@ -3591,14 +3696,14 @@ function DatePickerComponent(props, ref) {
|
|
|
3591
3696
|
}
|
|
3592
3697
|
const DatePicker = /* @__PURE__ */React__default.forwardRef(DatePickerComponent);
|
|
3593
3698
|
|
|
3594
|
-
var css$r = {"uui-typography":"
|
|
3699
|
+
var css$r = {"uui-typography":"wLARps","hero-header":"jAq1DI","promo-header":"bnKLnk","uui-critical":"_5-sSsO","uui-info":"qRKYyl","uui-success":"morok5","uui-warning":"l6594V","uui-highlight":"WxZM2L","uui-typography-size-12":"egpev-","uui-typography-size-14":"kacBZ0","uui-typography-size-16":"NvfHqC","root":"kFUmzz","uuiTypography":"wLARps","heroHeader":"jAq1DI","promoHeader":"bnKLnk","uuiCritical":"_5-sSsO","uuiInfo":"qRKYyl","uuiSuccess":"morok5","uuiWarning":"l6594V","uuiHighlight":"WxZM2L","uuiTypographySize12":"egpev-","uuiTypographySize14":"kacBZ0","uuiTypographySize16":"NvfHqC"};
|
|
3595
3700
|
|
|
3596
3701
|
function applyCalendarPresetsMods() {
|
|
3597
3702
|
return [css$r.root];
|
|
3598
3703
|
}
|
|
3599
3704
|
const CalendarPresets = /* @__PURE__ */withMods(CalendarPresets$1, applyCalendarPresetsMods, () => ({}));
|
|
3600
3705
|
|
|
3601
|
-
var css$q = {"uui-typography":"
|
|
3706
|
+
var css$q = {"uui-typography":"ksJB49","hero-header":"qcL0m8","promo-header":"_9tkvF6","uui-critical":"XAYpKH","uui-info":"RkQp32","uui-success":"-vDXje","uui-warning":"H4gEVZ","uui-highlight":"_-8tDjf","uui-typography-size-12":"pjhitz","uui-typography-size-14":"nOOySy","uui-typography-size-16":"qnKJn0","root":"ehGqM-","container":"hJFEvd","day-selection":"EiQ1ge","from-picker":"VLc2Jx","to-picker":"_5EYohA","bodes-wrapper":"gosv7C","blocker":"gqPqtC","uuiTypography":"ksJB49","heroHeader":"qcL0m8","promoHeader":"_9tkvF6","uuiCritical":"XAYpKH","uuiInfo":"RkQp32","uuiSuccess":"-vDXje","uuiWarning":"H4gEVZ","uuiHighlight":"_-8tDjf","uuiTypographySize12":"pjhitz","uuiTypographySize14":"nOOySy","uuiTypographySize16":"qnKJn0","daySelection":"EiQ1ge","fromPicker":"VLc2Jx","toPicker":"_5EYohA","bodesWrapper":"gosv7C"};
|
|
3602
3707
|
|
|
3603
3708
|
const uuiRangeDatePickerBody = {
|
|
3604
3709
|
inRange: 'uui-range-datepicker-in-range',
|
|
@@ -3842,7 +3947,7 @@ function RangeDatePickerComponent(props, ref) {
|
|
|
3842
3947
|
}
|
|
3843
3948
|
const RangeDatePicker = /* @__PURE__ */React__default.forwardRef(RangeDatePickerComponent);
|
|
3844
3949
|
|
|
3845
|
-
var css$p = {"root":"
|
|
3950
|
+
var css$p = {"root":"jGY3hn","blocker":"-mJmr6","marker":"zjiTrZ","top":"a267wA","bottom":"yam2vK","left":"mheuyY","right":"aKAsOX","inside":"_0QQQFL"};
|
|
3846
3951
|
|
|
3847
3952
|
function DropMarker(props) {
|
|
3848
3953
|
return props.isDndInProgress
|
|
@@ -3857,7 +3962,7 @@ function DropMarker(props) {
|
|
|
3857
3962
|
: null;
|
|
3858
3963
|
}
|
|
3859
3964
|
|
|
3860
|
-
var css$o = {"uui-typography":"
|
|
3965
|
+
var css$o = {"uui-typography":"cKVLUA","hero-header":"ChpSA6","promo-header":"hy4psS","uui-critical":"cS-9-Z","uui-info":"pfZGlf","uui-success":"uvI46p","uui-warning":"pW8GLy","uui-highlight":"_3SMfoR","uui-typography-size-12":"ebifGW","uui-typography-size-14":"_4rzHqL","uui-typography-size-16":"_8s1IKv","cell":"ZGMzPJ","wrapper":"B7mhJb","align-widgets-top":"Br23fz","size-24":"_1yV1GD","size-30":"XAG9da","size-36":"DTCHf-","size-42":"n2DN-p","size-48":"z-y-XY","size-60":"RRvv7Y","align-widgets-center":"HK2PY4","padding-6":"zH0iWg","padding-12":"_8sGipC","padding-24":"GtPrHm","padding-left-12":"YSLJW4","padding-left-24":"-tRYl3","padding-right-12":"qR81ew","padding-right-24":"ZZbpJq","loading-cell":"nFHZxj","uuiTypography":"cKVLUA","heroHeader":"ChpSA6","promoHeader":"hy4psS","uuiCritical":"cS-9-Z","uuiInfo":"pfZGlf","uuiSuccess":"uvI46p","uuiWarning":"pW8GLy","uuiHighlight":"_3SMfoR","uuiTypographySize12":"ebifGW","uuiTypographySize14":"_4rzHqL","uuiTypographySize16":"_8s1IKv","alignWidgetsTop":"Br23fz","size24":"_1yV1GD","size30":"XAG9da","size36":"DTCHf-","size42":"n2DN-p","size48":"z-y-XY","size60":"RRvv7Y","alignWidgetsCenter":"HK2PY4","padding6":"zH0iWg","padding12":"_8sGipC","padding24":"GtPrHm","paddingLeft12":"YSLJW4","paddingLeft24":"-tRYl3","paddingRight12":"qR81ew","paddingRight24":"ZZbpJq","loadingCell":"nFHZxj"};
|
|
3861
3966
|
|
|
3862
3967
|
function DataTableCell(props) {
|
|
3863
3968
|
props = Object.assign({}, props);
|
|
@@ -3905,7 +4010,7 @@ function DataTableCell(props) {
|
|
|
3905
4010
|
return React.createElement(DataTableCell$1, Object.assign({}, props));
|
|
3906
4011
|
}
|
|
3907
4012
|
|
|
3908
|
-
var css$n = {"uui-typography":"
|
|
4013
|
+
var css$n = {"uui-typography":"_3Ns6hL","hero-header":"oKiRak","promo-header":"JQL8VU","uui-critical":"pt4kjH","uui-info":"Eudec3","uui-success":"bNfpQm","uui-warning":"xmM-bI","uui-highlight":"zagrly","uui-typography-size-12":"HbD7Rg","uui-typography-size-14":"Rqf04x","uui-typography-size-16":"SgKCdR","root":"OhKVuy","size-24":"-Awctv","size-30":"_30Fdzc","size-36":"qzRyIX","size-48":"miV1Zy","size-60":"qlWXEu","uuiTypography":"_3Ns6hL","heroHeader":"oKiRak","promoHeader":"JQL8VU","uuiCritical":"pt4kjH","uuiInfo":"Eudec3","uuiSuccess":"bNfpQm","uuiWarning":"xmM-bI","uuiHighlight":"zagrly","uuiTypographySize12":"HbD7Rg","uuiTypographySize14":"Rqf04x","uuiTypographySize16":"SgKCdR","size24":"-Awctv","size30":"_30Fdzc","size36":"qzRyIX","size48":"miV1Zy","size60":"qlWXEu"};
|
|
3909
4014
|
|
|
3910
4015
|
// Here we define a single instance of the renderCell function to make DataTableRow#shouldComponentUpdate work.
|
|
3911
4016
|
// As we need our mods to style the cell properly, we extract them from DataTableCellProps.rowProps, which is a hack, but it's reliable enough.
|
|
@@ -3921,7 +4026,7 @@ const DataTableRow = /* @__PURE__ */withMods(DataTableRow$1, ({ borderBottom = t
|
|
|
3921
4026
|
];
|
|
3922
4027
|
}, () => propsMods);
|
|
3923
4028
|
|
|
3924
|
-
var css$m = {"uui-typography":"
|
|
4029
|
+
var css$m = {"uui-typography":"_7A2nce","hero-header":"ZX6qq6","promo-header":"c2X2ox","uui-critical":"E9d5Hl","uui-info":"D3rE4T","uui-success":"V23pqQ","uui-warning":"QXAIDp","uui-highlight":"HDC-OY","uui-typography-size-12":"_4VG0OR","uui-typography-size-14":"MrVC8V","uui-typography-size-16":"wjN5tq","sorting-panel-container":"lwNSrO","sort-active":"_4t0KHA","uuiTypography":"_7A2nce","heroHeader":"ZX6qq6","promoHeader":"c2X2ox","uuiCritical":"E9d5Hl","uuiInfo":"D3rE4T","uuiSuccess":"V23pqQ","uuiWarning":"QXAIDp","uuiHighlight":"HDC-OY","uuiTypographySize12":"_4VG0OR","uuiTypographySize14":"MrVC8V","uuiTypographySize16":"wjN5tq","sortingPanelContainer":"lwNSrO","sortActive":"_4t0KHA"};
|
|
3925
4030
|
|
|
3926
4031
|
var _path$g;
|
|
3927
4032
|
function _extends$g() { _extends$g = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$g.apply(this, arguments); }
|
|
@@ -4051,7 +4156,7 @@ var SvgNavigationExpandAllOutline = function SvgNavigationExpandAllOutline(props
|
|
|
4051
4156
|
};
|
|
4052
4157
|
var ForwardRef$a = /*#__PURE__*/forwardRef(SvgNavigationExpandAllOutline);
|
|
4053
4158
|
|
|
4054
|
-
var css$l = {"uui-typography":"
|
|
4159
|
+
var css$l = {"uui-typography":"rYAD05","hero-header":"BhBLqn","promo-header":"_1QT8Em","uui-critical":"dDtRLc","uui-info":"nrwD3p","uui-success":"WaEn6A","uui-warning":"Gb78YR","uui-highlight":"DkYmRT","uui-typography-size-12":"MEMzFi","uui-typography-size-14":"eOOfsV","uui-typography-size-16":"jj-ZPi","cell":"YJOxEE","column-gap-12":"yWA1Sc","caption-wrapper":"bCn1MX","column-gap-24":"ZwgoDk","first-column-12":"UCmZOj","last-column-12":"YX6Xcw","first-column-24":"kSTRLt","last-column-24":"-SOlVy","sort-icon":"uC8F1K","dropdown-icon":"rKjLsg","infoIcon":"vRhRN5","resizable":"_5PUQ6d","size-24":"fjjmnC","size-30":"r3yvl0","size-36":"_1Mx9Qy","size-42":"_6U6Xuv","size-48":"rBHZQQ","padding-left-24":"LBlNED","padding-right-24":"Xhnh7S","align-right":"wQolNF","align-center":"cJVT6x","caption":"-TOdsq","checkbox":"NcOajL","icon":"S6us3O","fold-all-icon":"SURbOi","cell-tooltip":"Mg1KB0","upper-case":"d1HUWo","font-size-14":"N3T-2O","resize-mark":"_5QZVdw","resize-mark-6":"-XtSWE","resize-mark-12":"xZhz9K","pinned-right":"_08PPtb","draggable":"DRcKAI","ghost":"JTgZ2K","is-dragged-out":"_7lEmNo","dnd-marker-left":"m1rpFc","dnd-marker-right":"u-p6vP","cell-tooltip-wrapper":"Kv-rBi","cell-tooltip-text":"BslpFr","uuiTypography":"rYAD05","heroHeader":"BhBLqn","promoHeader":"_1QT8Em","uuiCritical":"dDtRLc","uuiInfo":"nrwD3p","uuiSuccess":"WaEn6A","uuiWarning":"Gb78YR","uuiHighlight":"DkYmRT","uuiTypographySize12":"MEMzFi","uuiTypographySize14":"eOOfsV","uuiTypographySize16":"jj-ZPi","columnGap12":"yWA1Sc","captionWrapper":"bCn1MX","columnGap24":"ZwgoDk","firstColumn12":"UCmZOj","lastColumn12":"YX6Xcw","firstColumn24":"kSTRLt","lastColumn24":"-SOlVy","sortIcon":"uC8F1K","dropdownIcon":"rKjLsg","size24":"fjjmnC","size30":"r3yvl0","size36":"_1Mx9Qy","size42":"_6U6Xuv","size48":"rBHZQQ","paddingLeft24":"LBlNED","paddingRight24":"Xhnh7S","alignRight":"wQolNF","alignCenter":"cJVT6x","foldAllIcon":"SURbOi","cellTooltip":"Mg1KB0","upperCase":"d1HUWo","fontSize14":"N3T-2O","resizeMark":"_5QZVdw","resizeMark6":"-XtSWE","resizeMark12":"xZhz9K","pinnedRight":"_08PPtb","isDraggedOut":"_7lEmNo","dndMarkerLeft":"m1rpFc","dndMarkerRight":"u-p6vP","cellTooltipWrapper":"Kv-rBi","cellTooltipText":"BslpFr"};
|
|
4055
4160
|
|
|
4056
4161
|
class DataTableHeaderCell extends React.Component {
|
|
4057
4162
|
constructor() {
|
|
@@ -4133,14 +4238,14 @@ var SvgActionSettingsFill = function SvgActionSettingsFill(props, ref) {
|
|
|
4133
4238
|
};
|
|
4134
4239
|
var ForwardRef$9 = /*#__PURE__*/forwardRef(SvgActionSettingsFill);
|
|
4135
4240
|
|
|
4136
|
-
var css$k = {"uui-typography":"
|
|
4241
|
+
var css$k = {"uui-typography":"-BKU3e","hero-header":"QrAFAe","promo-header":"hxhjSi","uui-critical":"_8Z33jb","uui-info":"lp8BnU","uui-success":"_8qfG2h","uui-warning":"tdSwsi","uui-highlight":"Ymuedf","uui-typography-size-12":"xCFS5N","uui-typography-size-14":"qy4YG0","uui-typography-size-16":"pK8B77","header-cell":"hIWf9I","truncate":"YLlZwq","uuiTypography":"-BKU3e","heroHeader":"QrAFAe","promoHeader":"hxhjSi","uuiCritical":"_8Z33jb","uuiInfo":"lp8BnU","uuiSuccess":"_8qfG2h","uuiWarning":"tdSwsi","uuiHighlight":"Ymuedf","uuiTypographySize12":"xCFS5N","uuiTypographySize14":"qy4YG0","uuiTypographySize16":"pK8B77","headerCell":"hIWf9I"};
|
|
4137
4242
|
|
|
4138
4243
|
const DataTableHeaderRow = /* @__PURE__ */withMods(DataTableHeaderRow$1, (props) => [css$k.root, 'uui-dt-vars', props.size === '48' && css$k.truncate], (mods) => ({
|
|
4139
4244
|
renderCell: (props) => React.createElement(DataTableHeaderCell, Object.assign({}, props, { size: mods.size, textCase: mods.textCase || 'normal', key: props.column.key, columnsGap: mods.columnsGap })),
|
|
4140
4245
|
renderConfigButton: () => React.createElement(IconButton, { key: "configuration", onClick: mods.onConfigButtonClick, cx: "config-icon", color: "neutral", icon: ForwardRef$9 }),
|
|
4141
4246
|
}));
|
|
4142
4247
|
|
|
4143
|
-
var styles$1 = {"uui-typography":"
|
|
4248
|
+
var styles$1 = {"uui-typography":"PVeqnx","hero-header":"_7WdazM","promo-header":"UNkJbb","uui-critical":"JzJQdG","uui-info":"k7c7Ma","uui-success":"zoRfJa","uui-warning":"zYAa9b","uui-highlight":"gvYwY4","uui-typography-size-12":"S6wBGo","uui-typography-size-14":"_0ykmZC","uui-typography-size-16":"TOH62m","main-panel":"DQ-ClI","group-title":"znCQEX","group-title-text":"qs-6dF","group-title-badge":"cWE-ix","group-items":"rROjO0","no-data":"rEYY88","h-divider":"ZNGIU7","search-area":"LjrZRB","subgroup-accordion":"wdM3sF","subgroup-title":"ima-XA","uuiTypography":"PVeqnx","heroHeader":"_7WdazM","promoHeader":"UNkJbb","uuiCritical":"JzJQdG","uuiInfo":"k7c7Ma","uuiSuccess":"zoRfJa","uuiWarning":"zYAa9b","uuiHighlight":"gvYwY4","uuiTypographySize12":"S6wBGo","uuiTypographySize14":"_0ykmZC","uuiTypographySize16":"TOH62m","mainPanel":"DQ-ClI","groupTitle":"znCQEX","groupTitleText":"qs-6dF","groupTitleBadge":"cWE-ix","groupItems":"rROjO0","noData":"rEYY88","hDivider":"ZNGIU7","searchArea":"LjrZRB","subgroupAccordion":"wdM3sF","subgroupTitle":"ima-XA"};
|
|
4144
4249
|
|
|
4145
4250
|
var _path$8;
|
|
4146
4251
|
function _extends$8() { _extends$8 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$8.apply(this, arguments); }
|
|
@@ -4197,7 +4302,7 @@ var SvgTableGroupColumnRightFill = function SvgTableGroupColumnRightFill(props,
|
|
|
4197
4302
|
};
|
|
4198
4303
|
var ForwardRef$6 = /*#__PURE__*/forwardRef(SvgTableGroupColumnRightFill);
|
|
4199
4304
|
|
|
4200
|
-
var css$j = {"unpin-icon":"
|
|
4305
|
+
var css$j = {"unpin-icon":"iSyZ04","pin-toggler-icon":"qwn4ik","unpinIcon":"iSyZ04","pinTogglerIcon":"qwn4ik"};
|
|
4201
4306
|
|
|
4202
4307
|
function PinIconButton(props) {
|
|
4203
4308
|
const i18nLocal = i18n.tables.columnsConfigurationModal;
|
|
@@ -4256,7 +4361,7 @@ var SvgActionDragIndicator18 = function SvgActionDragIndicator18(props, ref) {
|
|
|
4256
4361
|
};
|
|
4257
4362
|
var ForwardRef$5 = /*#__PURE__*/forwardRef(SvgActionDragIndicator18);
|
|
4258
4363
|
|
|
4259
|
-
var styles = {"uui-typography":"
|
|
4364
|
+
var styles = {"uui-typography":"VMlQRF","hero-header":"sa5pDW","promo-header":"_55UOzx","uui-critical":"xX4u7n","uui-info":"_64EqGS","uui-success":"OLFHpN","uui-warning":"FMcOSG","uui-highlight":"_6oEgbS","uui-typography-size-12":"a1lKkW","uui-typography-size-14":"J30Yid","uui-typography-size-16":"F2Wg6e","row-wrapper":"xeGy3R","not-pinned":"cRf0cs","pin-icon-button":"_2LTon6","checkbox":"FnGRD-","drag-handle":"PHeX9j","dnd-disabled":"dHUUk2","uuiTypography":"VMlQRF","heroHeader":"sa5pDW","promoHeader":"_55UOzx","uuiCritical":"xX4u7n","uuiInfo":"_64EqGS","uuiSuccess":"OLFHpN","uuiWarning":"FMcOSG","uuiHighlight":"_6oEgbS","uuiTypographySize12":"a1lKkW","uuiTypographySize14":"J30Yid","uuiTypographySize16":"F2Wg6e","rowWrapper":"xeGy3R","notPinned":"cRf0cs","pinIconButton":"_2LTon6","dragHandle":"PHeX9j","dndDisabled":"dHUUk2"};
|
|
4260
4365
|
|
|
4261
4366
|
const ColumnRow = /* @__PURE__ */React.memo(function ColumnRow(props) {
|
|
4262
4367
|
const { column } = props;
|
|
@@ -4365,7 +4470,7 @@ function SubGroup(props) {
|
|
|
4365
4470
|
return null;
|
|
4366
4471
|
}
|
|
4367
4472
|
|
|
4368
|
-
var css$i = {"listContainer":"
|
|
4473
|
+
var css$i = {"listContainer":"u1wm8I","header":"t91xdE","group":"nINsxm","stickyHeader":"nd98ix"};
|
|
4369
4474
|
|
|
4370
4475
|
const getChildrenAndRest = (row, rows) => {
|
|
4371
4476
|
const firstNotChildIndex = rows.findIndex((other) => other.depth < row.depth || (row.depth === other.depth && other.isPinned));
|
|
@@ -4431,7 +4536,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
4431
4536
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4432
4537
|
ref: ref
|
|
4433
4538
|
}, props), /*#__PURE__*/React.createElement("g", {
|
|
4434
|
-
clipPath: "url(#
|
|
4539
|
+
clipPath: "url(#hehich6bfuegojv77_a)"
|
|
4435
4540
|
}, _path$4 || (_path$4 = /*#__PURE__*/React.createElement("path", {
|
|
4436
4541
|
d: "M150.585 1.535C49.483-11.495 27.481 61.805 45.725 97.481c10.581 20.69-39.64 70.792 17.744 81.468 27.538 5.123 36-13.341 62.433-10.655 35.4 3.6 148.167-4.73 88.349-78.915-31.713-39.335 1.026-79.506-63.666-87.844Z",
|
|
4437
4542
|
fill: "#F5F6FA"
|
|
@@ -4452,7 +4557,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
4452
4557
|
d: "M86.786 22.982c-2.55 0-4.965 2.07-4.965 4.552V120.6c0 2.484 2.4 4.572 4.965 4.572h88.101c2.582 0 4.986-2.089 4.986-4.572V27.534c0-2.464-2.418-4.552-4.986-4.552h-88.1Zm-5.793 4.552c0-3.022 2.874-5.38 5.793-5.38h88.101c2.935 0 5.814 2.374 5.814 5.38V120.6c0 3.021-2.86 5.4-5.814 5.4h-88.1c-2.94 0-5.794-2.381-5.794-5.4V27.534Z",
|
|
4453
4558
|
fill: "#1D1E26"
|
|
4454
4559
|
})), /*#__PURE__*/React.createElement("mask", {
|
|
4455
|
-
id: "
|
|
4560
|
+
id: "hehichxv7wkbti1n_b",
|
|
4456
4561
|
style: {
|
|
4457
4562
|
maskType: "alpha"
|
|
4458
4563
|
},
|
|
@@ -4465,7 +4570,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
4465
4570
|
d: "M174.887 125.586h-88.1c-2.752 0-5.38-2.234-5.38-4.986V27.534c0-2.752 2.644-4.966 5.38-4.966h88.1c2.752 0 5.4 2.23 5.4 4.966V120.6c0 2.752-2.632 4.986-5.4 4.986Z",
|
|
4466
4571
|
fill: "#9BDEFF"
|
|
4467
4572
|
}))), _g || (_g = /*#__PURE__*/React.createElement("g", {
|
|
4468
|
-
mask: "url(#
|
|
4573
|
+
mask: "url(#hehichxv7wkbti1n_b)",
|
|
4469
4574
|
fillRule: "evenodd",
|
|
4470
4575
|
clipRule: "evenodd"
|
|
4471
4576
|
}, /*#__PURE__*/React.createElement("path", {
|
|
@@ -4551,7 +4656,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
4551
4656
|
d: "M24.73 96.184a.414.414 0 0 1 .581.06l48.646 59.751a.413.413 0 1 1-.642.523L24.67 96.766a.414.414 0 0 1 .06-.582Z",
|
|
4552
4657
|
fill: "#fff"
|
|
4553
4658
|
}))), _defs || (_defs = /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
|
|
4554
|
-
id: "
|
|
4659
|
+
id: "hehich6bfuegojv77_a"
|
|
4555
4660
|
}, /*#__PURE__*/React.createElement("path", {
|
|
4556
4661
|
fill: "#fff",
|
|
4557
4662
|
transform: "translate(.552)",
|
|
@@ -4560,7 +4665,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
4560
4665
|
};
|
|
4561
4666
|
var ForwardRef$4 = /*#__PURE__*/forwardRef(SvgEmptyTable);
|
|
4562
4667
|
|
|
4563
|
-
var css$h = {"sticky-header":"
|
|
4668
|
+
var css$h = {"sticky-header":"WhowUn","table":"ENVPNh","no-results":"MK3nTP","no-results-icon":"_1FktTF","no-results-title":"_5quJg4","stickyHeader":"WhowUn","noResults":"MK3nTP","noResultsIcon":"_1FktTF","noResultsTitle":"_5quJg4"};
|
|
4564
4669
|
|
|
4565
4670
|
const DEFAULT_HEADER_SIZE = '36';
|
|
4566
4671
|
const DEFAULT_COLUMN_GAP = '24';
|
|
@@ -4613,9 +4718,9 @@ function DataTable(props) {
|
|
|
4613
4718
|
} }))));
|
|
4614
4719
|
}
|
|
4615
4720
|
|
|
4616
|
-
var css$g = {"root":"
|
|
4721
|
+
var css$g = {"root":"_3Sbr-A"};
|
|
4617
4722
|
|
|
4618
|
-
var css$f = {"root":"
|
|
4723
|
+
var css$f = {"root":"cJl3AE","burger-content":"_0yRkln","burgerContent":"_0yRkln"};
|
|
4619
4724
|
|
|
4620
4725
|
var _path$3;
|
|
4621
4726
|
function _extends$3() { _extends$3 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$3.apply(this, arguments); }
|
|
@@ -4658,7 +4763,7 @@ var SvgNavigationArrowDownOutline = function SvgNavigationArrowDownOutline(props
|
|
|
4658
4763
|
};
|
|
4659
4764
|
var ForwardRef$2 = /*#__PURE__*/forwardRef(SvgNavigationArrowDownOutline);
|
|
4660
4765
|
|
|
4661
|
-
var css$e = {"uui-typography":"
|
|
4766
|
+
var css$e = {"uui-typography":"LIiF6u","hero-header":"WAgNsS","promo-header":"_5nKK-y","uui-critical":"qSM23U","uui-info":"-Pv4KZ","uui-success":"IbA3L2","uui-warning":"DtSG2S","uui-highlight":"_4XeAJs","uui-typography-size-12":"ebmc86","uui-typography-size-14":"CKc8SQ","uui-typography-size-16":"JVoRt0","root":"Ovv3JE","button-primary":"k5jHHd","button-secondary":"UXfHz7","hasIcon":"ji0nqt","dropdown":"nTL43C","uuiTypography":"LIiF6u","heroHeader":"WAgNsS","promoHeader":"_5nKK-y","uuiCritical":"qSM23U","uuiInfo":"-Pv4KZ","uuiSuccess":"IbA3L2","uuiWarning":"DtSG2S","uuiHighlight":"_4XeAJs","uuiTypographySize12":"ebmc86","uuiTypographySize14":"CKc8SQ","uuiTypographySize16":"JVoRt0","buttonPrimary":"k5jHHd","buttonSecondary":"UXfHz7"};
|
|
4662
4767
|
|
|
4663
4768
|
const BurgerButton = /* @__PURE__ */withMods(Button$1, (props) => [
|
|
4664
4769
|
css$e.root,
|
|
@@ -4669,13 +4774,13 @@ const BurgerButton = /* @__PURE__ */withMods(Button$1, (props) => [
|
|
|
4669
4774
|
props.icon && css$e.hasIcon,
|
|
4670
4775
|
], () => ({ dropdownIcon: ForwardRef$2, dropdownIconPosition: 'left', role: 'menuitem' }));
|
|
4671
4776
|
|
|
4672
|
-
var css$d = {"search-input":"
|
|
4777
|
+
var css$d = {"search-input":"iT5G8E","searchInput":"iT5G8E"};
|
|
4673
4778
|
|
|
4674
4779
|
function BurgerSearch(props) {
|
|
4675
4780
|
return (React.createElement(TextInput$1, { cx: cx(css$d.searchInput, 'uui-main_menu-burger-search'), iconPosition: "left", icon: ForwardRef$N, placeholder: props.placeholder, value: props.value, onValueChange: props.onValueChange, onCancel: props.onCancel, cancelIcon: props.value && ForwardRef$Q }));
|
|
4676
4781
|
}
|
|
4677
4782
|
|
|
4678
|
-
var css$c = {"root":"
|
|
4783
|
+
var css$c = {"root":"_6qDBP6","group-header":"D8A0OF","group-name":"nqE2Io","line":"Y3tpLt","groupHeader":"D8A0OF","groupName":"nqE2Io"};
|
|
4679
4784
|
|
|
4680
4785
|
function BurgerGroupHeader(props) {
|
|
4681
4786
|
return (React.createElement("div", { className: cx(css$c.root, css$c.groupHeader, 'uui-burger-group-header') },
|
|
@@ -4683,7 +4788,7 @@ function BurgerGroupHeader(props) {
|
|
|
4683
4788
|
React.createElement("span", { className: css$c.groupName }, props.caption)));
|
|
4684
4789
|
}
|
|
4685
4790
|
|
|
4686
|
-
var css$b = {"uui-typography":"
|
|
4791
|
+
var css$b = {"uui-typography":"oXthX-","hero-header":"qLI3P3","promo-header":"a5Xd4d","uui-critical":"XpeJkP","uui-info":"_0d0VPN","uui-success":"_43xIIH","uui-warning":"s91TVN","uui-highlight":"BStF3i","uui-typography-size-12":"N48h5J","uui-typography-size-14":"mrkU7M","uui-typography-size-16":"MQYoTk","root":"rKDc2a","type-primary":"_2bSado","type-secondary":"QXOOqW","uuiTypography":"oXthX-","heroHeader":"qLI3P3","promoHeader":"a5Xd4d","uuiCritical":"XpeJkP","uuiInfo":"_0d0VPN","uuiSuccess":"_43xIIH","uuiWarning":"s91TVN","uuiHighlight":"BStF3i","uuiTypographySize12":"N48h5J","uuiTypographySize14":"mrkU7M","uuiTypographySize16":"MQYoTk","typePrimary":"_2bSado","typeSecondary":"QXOOqW"};
|
|
4687
4792
|
|
|
4688
4793
|
const MainMenuButton = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
4689
4794
|
const { type } = props, clickableProps = __rest(props, ["type"]);
|
|
@@ -4699,7 +4804,7 @@ const MainMenuButton = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
4699
4804
|
props.isDropdown && (React.createElement(IconContainer, { icon: ForwardRef$P, flipY: props.isOpen }))));
|
|
4700
4805
|
});
|
|
4701
4806
|
|
|
4702
|
-
var css$a = {"dropdown-body":"
|
|
4807
|
+
var css$a = {"dropdown-body":"zDv92E","dropdownBody":"zDv92E"};
|
|
4703
4808
|
|
|
4704
4809
|
class MainMenuDropdown extends React.Component {
|
|
4705
4810
|
render() {
|
|
@@ -4754,12 +4859,12 @@ var SvgNavigationGlobalMenuOutlineOutline = function SvgNavigationGlobalMenuOutl
|
|
|
4754
4859
|
};
|
|
4755
4860
|
var ForwardRef$1 = /*#__PURE__*/forwardRef(SvgNavigationGlobalMenuOutlineOutline);
|
|
4756
4861
|
|
|
4757
|
-
var css$9 = {"global-menu-btn":"-
|
|
4862
|
+
var css$9 = {"global-menu-btn":"-me6R2","global-menu-icon":"_2qa9h9","globalMenuBtn":"-me6R2","globalMenuIcon":"_2qa9h9"};
|
|
4758
4863
|
|
|
4759
4864
|
const GlobalMenu = /* @__PURE__ */React.forwardRef((props, ref) => (React.createElement("button", Object.assign({ ref: ref, id: "global_menu_toggle", className: cx(css$9.globalMenuBtn, props.cx) }, props.rawProps),
|
|
4760
4865
|
React.createElement(IconContainer, { size: 36, icon: ForwardRef$1, cx: css$9.globalMenuIcon }))));
|
|
4761
4866
|
|
|
4762
|
-
var css$8 = {"container":"
|
|
4867
|
+
var css$8 = {"container":"IoiT-g","open":"NOb2-K"};
|
|
4763
4868
|
|
|
4764
4869
|
const MainMenuAvatar = /* @__PURE__ */React.forwardRef((props, ref) => (React.createElement("button", { ref: ref, className: cx(css$8.container, props.isDropdown && css$8.dropdown, props.isOpen && css$8.open, props.onClick && uuiMarkers.clickable, props.cx), onClick: props.onClick },
|
|
4765
4870
|
React.createElement(Avatar, { size: "36", img: props.avatarUrl }),
|
|
@@ -4767,18 +4872,18 @@ const MainMenuAvatar = /* @__PURE__ */React.forwardRef((props, ref) => (React.cr
|
|
|
4767
4872
|
props.isDropdown && (React.createElement("div", null,
|
|
4768
4873
|
React.createElement(IconContainer, { size: 18, icon: ForwardRef$P, flipY: props.isOpen }))))));
|
|
4769
4874
|
|
|
4770
|
-
var css$7 = {"search-input":"
|
|
4875
|
+
var css$7 = {"search-input":"QBcIMG","searchInput":"QBcIMG"};
|
|
4771
4876
|
|
|
4772
4877
|
const MainMenuSearch = /* @__PURE__ */React.forwardRef((props, ref) => (React.createElement(IEditableDebouncer, Object.assign({}, props, { render: (iEditable) => {
|
|
4773
4878
|
var _a;
|
|
4774
4879
|
return (React.createElement(TextInput$1, Object.assign({ iconPosition: "left", icon: ForwardRef$N, cancelIcon: ((_a = props.value) === null || _a === void 0 ? void 0 : _a.length) > 0 && ForwardRef$Q }, props, iEditable, { ref: ref, cx: cx$1(css$7.searchInput, props.cx) }, props.rawProps)));
|
|
4775
4880
|
} }))));
|
|
4776
4881
|
|
|
4777
|
-
var css$6 = {"container":"
|
|
4882
|
+
var css$6 = {"container":"p-Mo66"};
|
|
4778
4883
|
|
|
4779
4884
|
const MainMenuIcon = /* @__PURE__ */React.forwardRef((props, ref) => (React.createElement(IconButton, Object.assign({ ref: ref, icon: props.icon, cx: cx$1(props.cx, css$6.container) }, props))));
|
|
4780
4885
|
|
|
4781
|
-
var css$5 = {"root":"
|
|
4886
|
+
var css$5 = {"root":"ehgEX7"};
|
|
4782
4887
|
|
|
4783
4888
|
const Anchor = /* @__PURE__ */withMods(Anchor$1, () => [css$5.root]);
|
|
4784
4889
|
|
|
@@ -4836,7 +4941,7 @@ var SvgFileCloudUploadFill = function SvgFileCloudUploadFill(props, ref) {
|
|
|
4836
4941
|
};
|
|
4837
4942
|
var ForwardRef = /*#__PURE__*/forwardRef(SvgFileCloudUploadFill);
|
|
4838
4943
|
|
|
4839
|
-
var css$4 = {"root":"
|
|
4944
|
+
var css$4 = {"root":"PnNPNO","drop-start":"qQEZHe","drop-over":"HXYhr-","link":"BeNoTM","drop-area":"vF-eOy","drop-caption":"SSs9Ft","icon-blue":"RB9UzS","dropStart":"qQEZHe","dropOver":"HXYhr-","dropArea":"vF-eOy","dropCaption":"SSs9Ft","iconBlue":"RB9UzS"};
|
|
4840
4945
|
|
|
4841
4946
|
function DropSpot(props) {
|
|
4842
4947
|
const getInfoText = typeof props.infoText === 'string'
|
|
@@ -4854,9 +4959,9 @@ function DropSpot(props) {
|
|
|
4854
4959
|
return React.createElement(DropSpot$1, { render: renderAttachmentArea, onFilesDropped: props.onUploadFiles });
|
|
4855
4960
|
}
|
|
4856
4961
|
|
|
4857
|
-
var css$3 = {"uui-typography":"
|
|
4962
|
+
var css$3 = {"uui-typography":"_1YQLmI","hero-header":"ciTRKm","promo-header":"Bt8Fqo","uui-critical":"aAvxap","uui-info":"kdzoK-","uui-success":"Tiuhbn","uui-warning":"v1mwLw","uui-highlight":"O4gcMB","uui-typography-size-12":"l-B1-x","uui-typography-size-14":"oh2sBj","uui-typography-size-16":"IVhjfl","root":"OyN-QF","file-name":"b8vI19","default-color":"n-Nrec","doc-color":"mUe3hr","xls-color":"MgHB34","pdf-color":"blYswp","movie-color":"aOcvPQ","img-color":"_5zM0A-","mov-color":"KzoYdf","error-block":"wyPdLl","icons-block":"CQe2J2","uuiTypography":"_1YQLmI","heroHeader":"ciTRKm","promoHeader":"Bt8Fqo","uuiCritical":"aAvxap","uuiInfo":"kdzoK-","uuiSuccess":"Tiuhbn","uuiWarning":"v1mwLw","uuiHighlight":"O4gcMB","uuiTypographySize12":"l-B1-x","uuiTypographySize14":"oh2sBj","uuiTypographySize16":"IVhjfl","fileName":"b8vI19","defaultColor":"n-Nrec","docColor":"mUe3hr","xlsColor":"MgHB34","pdfColor":"blYswp","movieColor":"aOcvPQ","imgColor":"_5zM0A-","movColor":"KzoYdf","errorBlock":"wyPdLl","iconsBlock":"CQe2J2"};
|
|
4858
4963
|
|
|
4859
|
-
var css$2 = {"root":"
|
|
4964
|
+
var css$2 = {"root":"HGkmFw"};
|
|
4860
4965
|
|
|
4861
4966
|
const SvgCircleProgress = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
4862
4967
|
const outsetRadius = props.size / 2 - 1;
|
|
@@ -4981,7 +5086,7 @@ const getErrorPageConfig = () => ({
|
|
|
4981
5086
|
},
|
|
4982
5087
|
});
|
|
4983
5088
|
|
|
4984
|
-
var css$1 = {"container":"
|
|
5089
|
+
var css$1 = {"container":"RTlZa2"};
|
|
4985
5090
|
|
|
4986
5091
|
const ErrorPage = (props) => {
|
|
4987
5092
|
const isMobileScreen = isMobile();
|
|
@@ -4992,7 +5097,7 @@ const ErrorPage = (props) => {
|
|
|
4992
5097
|
React__default.createElement("div", { className: "uui-error-subtitle" }, props.subtitle))));
|
|
4993
5098
|
};
|
|
4994
5099
|
|
|
4995
|
-
var css = {"recovery-spinner":"
|
|
5100
|
+
var css = {"recovery-spinner":"Yss-PI","recovery-message":"_5MizJV","modal-blocker":"KFzo04","modalFadeIn":"yAs-vW","recoverySpinner":"Yss-PI","recoveryMessage":"_5MizJV","modalBlocker":"KFzo04"};
|
|
4996
5101
|
|
|
4997
5102
|
function ErrorHandler(props) {
|
|
4998
5103
|
const { uuiNotifications, uuiModals, uuiApi } = useUuiContext();
|
|
@@ -5043,5 +5148,5 @@ function ErrorHandler(props) {
|
|
|
5043
5148
|
errorType === 'recovery' && renderRecoveryBlocker(errorInfo)));
|
|
5044
5149
|
}
|
|
5045
5150
|
|
|
5046
|
-
export { Accordion, Alert, Anchor, AvatarStack, Badge, Blocker, Burger, BurgerButton, BurgerGroupHeader, BurgerSearch, Button, Calendar, Checkbox, CheckboxGroup, ClearNotification, ColumnHeaderDropdown, ColumnsConfigurationModal, ConfirmationModal, ControlGroup, CountIndicator, DataPickerBody, DataPickerFooter, DataPickerHeader, DataPickerRow, DataRowAddons, DataRowsContainer, DataTable, DataTableCell, DataTableHeaderCell, DataTableHeaderRow, DataTableRow, DatePicker, DatePickerBody, DatePickerComponent, DropMarker, DropSpot, Dropdown, DropdownContainer, DropdownMenuBody, DropdownMenuButton, DropdownMenuHeader, DropdownMenuSplitter, DropdownMenuSwitchButton, DropdownSubMenu, ErrorAlert, ErrorHandler, ErrorNotification, ErrorPage, FileCard, FilterItemBody, FiltersPanel, FlexCell, FlexRow, Form, GlobalMenu, HintAlert, HintNotification, IDropdownControlKeys, IconButton, IndeterminateBar, IndicatorBar, InputAddon, LabeledInput, LinkButton, MainMenu, MainMenuAvatar, MainMenuButton, MainMenuDropdown, MainMenuIcon, MainMenuSearch, MobileDropdownWrapper, ModalBlocker, ModalFooter, ModalHeader, ModalWindow, MultiSwitch, NotificationCard, NumericInput, Paginator, Panel, PickerInput, PickerItem, PickerList, PickerListItem, PickerModal, PickerToggler, PickerTogglerTag, PresetsPanel, ProgressBar, RadioGroup, RadioInput, RangeDatePicker, RangeDatePickerBody, RangeDatePickerInput, RichTextView, ScrollBars, SearchInput, Slider, Snackbar, Spinner, StatusIndicator, SuccessAlert, SuccessNotification, SvgCircleProgress, Switch, TabButton, Tag, Text, TextArea, TextInput, TextPlaceholder, TimePicker, TimePickerBody, Tooltip, VerticalTabButton, VirtualList, WarningAlert, WarningNotification, applyDateSelectionMods, defaultPredicates, getErrorPageConfig, getHighlightRanges, getHighlightedSearchMatches, getRecoveryMessageConfig, getTextClasses, i18n, propsMods, rangeDatePickerPresets, renderCell, renderDropMarkers, useColumnsWithFilters, useForm, uuiDatePickerBody, uuiRangeDatePickerBody, uuiTimePicker };
|
|
5151
|
+
export { Accordion, Alert, Anchor, AvatarStack, Badge, Blocker, Burger, BurgerButton, BurgerGroupHeader, BurgerSearch, Button, Calendar, Checkbox, CheckboxGroup, ClearNotification, ColumnHeaderDropdown, ColumnsConfigurationModal, ConfirmationModal, ControlGroup, CountIndicator, DataPickerBody, DataPickerFooter, DataPickerHeader, DataPickerRow, DataRowAddons, DataRowsContainer, DataTable, DataTableCell, DataTableHeaderCell, DataTableHeaderRow, DataTableRow, DatePicker, DatePickerBody, DatePickerComponent, DropMarker, DropSpot, Dropdown, DropdownContainer, DropdownMenuBody, DropdownMenuButton, DropdownMenuHeader, DropdownMenuSplitter, DropdownMenuSwitchButton, DropdownSubMenu, ErrorAlert, ErrorHandler, ErrorNotification, ErrorPage, FileCard, FilterItemBody, FiltersPanel, FlexCell, FlexRow, Form, GlobalMenu, HintAlert, HintNotification, IDropdownControlKeys, IconButton, IndeterminateBar, IndicatorBar, InputAddon, LabeledInput, LinkButton, MainMenu, MainMenuAvatar, MainMenuButton, MainMenuDropdown, MainMenuIcon, MainMenuSearch, MobileDropdownWrapper, ModalBlocker, ModalFooter, ModalHeader, ModalWindow, MultiSwitch, NotificationCard, NumericInput, Paginator, Panel, PickerInput, PickerItem, PickerList, PickerListItem, PickerModal, PickerToggler, PickerTogglerTag, PresetsPanel, ProgressBar, RadioGroup, RadioInput, RangeDatePicker, RangeDatePickerBody, RangeDatePickerInput, RichTextView, ScrollBars, SearchInput, Slider, Snackbar, Spinner, StatusIndicator, SuccessAlert, SuccessNotification, SvgCircleProgress, Switch, TabButton, Tag, Text, TextArea, TextInput, TextPlaceholder, TimePicker, TimePickerBody, Tooltip, VerticalTabButton, VirtualList, WarningAlert, WarningNotification, applyDateSelectionMods, defaultPredicates, getErrorPageConfig, getHighlightRanges, getHighlightedSearchMatches, getRecoveryMessageConfig, getTextClasses, i18n, propsMods, rangeDatePickerPresets, renderCell, renderDropMarkers, settings, useColumnsWithFilters, useForm, uuiDatePickerBody, uuiRangeDatePickerBody, uuiTimePicker };
|
|
5047
5152
|
//# sourceMappingURL=index.esm.js.map
|