@epam/uui 5.8.1 → 5.9.0-beta.0
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/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/FilterPickerBody.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/tables/DataTableCell.d.ts +1 -1
- package/components/tables/DataTableCell.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 +2 -2
- package/components/widgets/CountIndicator.d.ts.map +1 -1
- package/components/widgets/DataRowAddons.d.ts.map +1 -1
- package/components/widgets/StatusIndicator.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 +2 -0
- package/index.d.ts.map +1 -1
- package/index.esm.js +463 -330
- package/index.esm.js.map +1 -1
- package/index.js +462 -328
- package/index.js.map +1 -1
- package/package.json +5 -5
- package/readme.md +6 -1
- package/settings.d.ts +3 -0
- package/settings.d.ts.map +1 -0
- package/settings.types.d.ts +139 -0
- package/settings.types.d.ts.map +1 -0
- package/stats.html +1 -19
- package/styles.css +3085 -4054
- 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,226 @@ const systemIcons = {
|
|
|
281
281
|
info: ForwardRef$L,
|
|
282
282
|
};
|
|
283
283
|
|
|
284
|
-
|
|
284
|
+
const settings = {
|
|
285
|
+
sizes: {
|
|
286
|
+
defaults: {
|
|
287
|
+
badge: '36',
|
|
288
|
+
button: '36',
|
|
289
|
+
checkbox: '18',
|
|
290
|
+
countIndicator: '24',
|
|
291
|
+
dataPickerCell: '36',
|
|
292
|
+
linkButton: '36',
|
|
293
|
+
numericInput: '36',
|
|
294
|
+
pickerToggler: '36',
|
|
295
|
+
pickerItem: '36',
|
|
296
|
+
radioInput: '18',
|
|
297
|
+
switch: '18',
|
|
298
|
+
tabButton: '48',
|
|
299
|
+
tag: '36',
|
|
300
|
+
text: '36',
|
|
301
|
+
textArea: '36',
|
|
302
|
+
textInput: '36',
|
|
303
|
+
rangeDatePicker: '36',
|
|
304
|
+
datePicker: '36',
|
|
305
|
+
labeledInput: '36',
|
|
306
|
+
statusIndicator: '24',
|
|
307
|
+
},
|
|
308
|
+
tag: {
|
|
309
|
+
countIndicator: {
|
|
310
|
+
18: '12',
|
|
311
|
+
24: '18',
|
|
312
|
+
30: '18',
|
|
313
|
+
36: '18',
|
|
314
|
+
42: '24',
|
|
315
|
+
48: '24',
|
|
316
|
+
},
|
|
317
|
+
},
|
|
318
|
+
mobileDropdownWrapper: {
|
|
319
|
+
linkButton: '48',
|
|
320
|
+
},
|
|
321
|
+
pickerInput: {
|
|
322
|
+
height: 300,
|
|
323
|
+
width: 360,
|
|
324
|
+
rowSize: {
|
|
325
|
+
mobile: '48',
|
|
326
|
+
modal: '36',
|
|
327
|
+
padding: {
|
|
328
|
+
modal: '24',
|
|
329
|
+
default: '12',
|
|
330
|
+
},
|
|
331
|
+
},
|
|
332
|
+
},
|
|
333
|
+
pickerToggler: {
|
|
334
|
+
tag: {
|
|
335
|
+
24: '18',
|
|
336
|
+
30: '24',
|
|
337
|
+
36: '30',
|
|
338
|
+
42: '36',
|
|
339
|
+
48: '42',
|
|
340
|
+
60: '48',
|
|
341
|
+
},
|
|
342
|
+
},
|
|
343
|
+
dataPickerHeader: {
|
|
344
|
+
text: {
|
|
345
|
+
fontWeight: '600',
|
|
346
|
+
size: '48',
|
|
347
|
+
},
|
|
348
|
+
},
|
|
349
|
+
dataPickerBody: {
|
|
350
|
+
flexCell: {
|
|
351
|
+
default: '36',
|
|
352
|
+
},
|
|
353
|
+
searchInput: {
|
|
354
|
+
mobile: '48',
|
|
355
|
+
},
|
|
356
|
+
},
|
|
357
|
+
pickerItem: {
|
|
358
|
+
avatar: {
|
|
359
|
+
rest: {
|
|
360
|
+
24: '18',
|
|
361
|
+
30: '24',
|
|
362
|
+
36: '30',
|
|
363
|
+
42: '36',
|
|
364
|
+
48: '36', // no design
|
|
365
|
+
},
|
|
366
|
+
multiline: {
|
|
367
|
+
24: '30',
|
|
368
|
+
30: '30',
|
|
369
|
+
36: '36',
|
|
370
|
+
42: '42',
|
|
371
|
+
48: '48', // no design
|
|
372
|
+
},
|
|
373
|
+
},
|
|
374
|
+
},
|
|
375
|
+
dataPickerCell: {
|
|
376
|
+
isBoldIcon: {
|
|
377
|
+
24: true,
|
|
378
|
+
},
|
|
379
|
+
padding: {
|
|
380
|
+
default: '12',
|
|
381
|
+
},
|
|
382
|
+
paddingLeft: {
|
|
383
|
+
default: '24',
|
|
384
|
+
},
|
|
385
|
+
text: {
|
|
386
|
+
24: '24',
|
|
387
|
+
30: '30',
|
|
388
|
+
36: '36',
|
|
389
|
+
42: '42',
|
|
390
|
+
48: '48',
|
|
391
|
+
60: '48',
|
|
392
|
+
},
|
|
393
|
+
icon: {
|
|
394
|
+
24: '12',
|
|
395
|
+
30: '18',
|
|
396
|
+
36: '18',
|
|
397
|
+
42: '24',
|
|
398
|
+
48: '24',
|
|
399
|
+
60: '24',
|
|
400
|
+
},
|
|
401
|
+
},
|
|
402
|
+
dataPickerRow: {
|
|
403
|
+
padding: {
|
|
404
|
+
default: '24',
|
|
405
|
+
},
|
|
406
|
+
dataPickerCell: {
|
|
407
|
+
default: '36',
|
|
408
|
+
},
|
|
409
|
+
},
|
|
410
|
+
dataPickerFooter: {
|
|
411
|
+
flexRowPadding: '12',
|
|
412
|
+
switch: {
|
|
413
|
+
24: '12',
|
|
414
|
+
30: '18',
|
|
415
|
+
36: '36',
|
|
416
|
+
42: '24',
|
|
417
|
+
48: '24',
|
|
418
|
+
},
|
|
419
|
+
linkButton: {
|
|
420
|
+
24: '24',
|
|
421
|
+
30: '30',
|
|
422
|
+
36: '36',
|
|
423
|
+
42: '42',
|
|
424
|
+
48: '48',
|
|
425
|
+
mobile: '48',
|
|
426
|
+
},
|
|
427
|
+
},
|
|
428
|
+
rowAddons: {
|
|
429
|
+
checkbox: {
|
|
430
|
+
24: '12',
|
|
431
|
+
30: '18',
|
|
432
|
+
36: '18',
|
|
433
|
+
42: '18',
|
|
434
|
+
48: '18',
|
|
435
|
+
60: '18',
|
|
436
|
+
},
|
|
437
|
+
icon: {
|
|
438
|
+
24: '12',
|
|
439
|
+
30: '18',
|
|
440
|
+
36: '18',
|
|
441
|
+
42: '24',
|
|
442
|
+
48: '24',
|
|
443
|
+
60: '24',
|
|
444
|
+
},
|
|
445
|
+
indentUnit: {
|
|
446
|
+
24: 6,
|
|
447
|
+
30: 12,
|
|
448
|
+
36: 12,
|
|
449
|
+
42: 24,
|
|
450
|
+
48: 24,
|
|
451
|
+
60: 24,
|
|
452
|
+
default: 24,
|
|
453
|
+
},
|
|
454
|
+
indentWidth: {
|
|
455
|
+
24: 12,
|
|
456
|
+
30: 18,
|
|
457
|
+
36: 18,
|
|
458
|
+
42: 24,
|
|
459
|
+
48: 24,
|
|
460
|
+
60: 24,
|
|
461
|
+
default: 12,
|
|
462
|
+
},
|
|
463
|
+
},
|
|
464
|
+
text: {
|
|
465
|
+
18: { lineHeight: 12, fontSize: 10 },
|
|
466
|
+
24: { lineHeight: 18, fontSize: 12 },
|
|
467
|
+
30: { lineHeight: 18, fontSize: 14 },
|
|
468
|
+
36: { lineHeight: 18, fontSize: 14 },
|
|
469
|
+
42: { lineHeight: 24, fontSize: 16 },
|
|
470
|
+
48: { lineHeight: 24, fontSize: 16 },
|
|
471
|
+
60: { lineHeight: 30, fontSize: 24 },
|
|
472
|
+
},
|
|
473
|
+
filterPickerBody: {
|
|
474
|
+
pickerItem: '36',
|
|
475
|
+
dataPickerRow: '36',
|
|
476
|
+
dataPickerFooter: '36',
|
|
477
|
+
searchSize: '36',
|
|
478
|
+
},
|
|
479
|
+
labeledInput: {
|
|
480
|
+
fillIcon: ['24', '30'],
|
|
481
|
+
},
|
|
482
|
+
badge: {
|
|
483
|
+
countIndicator: {
|
|
484
|
+
18: '12',
|
|
485
|
+
24: '18',
|
|
486
|
+
30: '18',
|
|
487
|
+
36: '18',
|
|
488
|
+
42: '24',
|
|
489
|
+
48: '24',
|
|
490
|
+
},
|
|
491
|
+
},
|
|
492
|
+
},
|
|
493
|
+
};
|
|
494
|
+
|
|
495
|
+
var css$1s = {"uui-typography":"kgTbKY","hero-header":"pwjn8u","promo-header":"cECO0u","uui-critical":"NIsivg","uui-info":"uSAmM9","uui-success":"Sdsxow","uui-warning":"_7G0dB4","uui-highlight":"JkUw6P","uui-typography-size-12":"UCNsuY","uui-typography-size-14":"cOz3UF","uui-typography-size-16":"FEvWnM","root":"GJnngF","uuiTypography":"kgTbKY","heroHeader":"pwjn8u","promoHeader":"cECO0u","uuiCritical":"NIsivg","uuiInfo":"uSAmM9","uuiSuccess":"Sdsxow","uuiWarning":"_7G0dB4","uuiHighlight":"JkUw6P","uuiTypographySize12":"UCNsuY","uuiTypographySize14":"cOz3UF","uuiTypographySize16":"FEvWnM"};
|
|
285
496
|
|
|
286
|
-
const DEFAULT_SIZE$8 = '36';
|
|
287
497
|
function applyButtonMods(mods) {
|
|
288
498
|
return [
|
|
289
499
|
css$1s.root,
|
|
290
500
|
'uui-button',
|
|
291
501
|
`uui-fill-${mods.fill || 'solid'}`,
|
|
292
502
|
`uui-color-${mods.color || 'primary'}`,
|
|
293
|
-
`uui-size-${mods.size ||
|
|
503
|
+
`uui-size-${mods.size || settings.sizes.defaults.button}`,
|
|
294
504
|
];
|
|
295
505
|
}
|
|
296
506
|
const Button = /* @__PURE__ */withMods(uuiComponents.Button, applyButtonMods, () => {
|
|
@@ -300,7 +510,7 @@ const Button = /* @__PURE__ */withMods(uuiComponents.Button, applyButtonMods, ()
|
|
|
300
510
|
};
|
|
301
511
|
});
|
|
302
512
|
|
|
303
|
-
var css$1r = {"root":"
|
|
513
|
+
var css$1r = {"root":"_34-QuP"};
|
|
304
514
|
|
|
305
515
|
function applyIconButtonMods(props) {
|
|
306
516
|
return ['uui-icon_button', `uui-color-${props.color || 'neutral'}`, css$1r.root];
|
|
@@ -317,7 +527,6 @@ const IconButton = /* @__PURE__ */withMods(uuiComponents.IconButton, applyIconBu
|
|
|
317
527
|
}
|
|
318
528
|
return {
|
|
319
529
|
dropdownIcon: props.dropdownIcon || systemIcons.foldingArrow,
|
|
320
|
-
size: props.size && Number(props.size),
|
|
321
530
|
};
|
|
322
531
|
});
|
|
323
532
|
|
|
@@ -338,15 +547,14 @@ function getIconClass(props) {
|
|
|
338
547
|
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
548
|
}
|
|
340
549
|
|
|
341
|
-
var css$1q = {"uui-typography":"
|
|
550
|
+
var css$1q = {"uui-typography":"slGgB-","hero-header":"qrwVD-","promo-header":"D6zV-Q","uui-critical":"Df9Mte","uui-info":"UMQHkk","uui-success":"lZWcy7","uui-warning":"AGd-to","uui-highlight":"w1Ij7C","uui-typography-size-12":"F6DYPj","uui-typography-size-14":"bSrnR0","uui-typography-size-16":"kKecjt","root":"_5MCudS","uuiTypography":"slGgB-","heroHeader":"qrwVD-","promoHeader":"D6zV-Q","uuiCritical":"Df9Mte","uuiInfo":"UMQHkk","uuiSuccess":"lZWcy7","uuiWarning":"AGd-to","uuiHighlight":"w1Ij7C","uuiTypographySize12":"F6DYPj","uuiTypographySize14":"bSrnR0","uuiTypographySize16":"kKecjt"};
|
|
342
551
|
|
|
343
|
-
const DEFAULT_SIZE$7 = '36';
|
|
344
552
|
const DEFAULT_COLOR = 'primary';
|
|
345
553
|
function applyLinkButtonMods(mods) {
|
|
346
554
|
return [
|
|
347
555
|
'uui-link_button',
|
|
348
556
|
css$1q.root,
|
|
349
|
-
`uui-size-${mods.size ||
|
|
557
|
+
`uui-size-${mods.size || settings.sizes.defaults.linkButton}`,
|
|
350
558
|
...getIconClass(mods),
|
|
351
559
|
`uui-color-${mods.color || DEFAULT_COLOR}`,
|
|
352
560
|
];
|
|
@@ -370,25 +578,25 @@ const LinkButton = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
370
578
|
props.isDropdown && (React.createElement(IconContainer, { icon: DropdownIcon, flipY: props.isOpen }))));
|
|
371
579
|
});
|
|
372
580
|
|
|
373
|
-
var css$1p = {"root":"
|
|
581
|
+
var css$1p = {"root":"UlrdES"};
|
|
374
582
|
|
|
375
583
|
const CountIndicator = /* @__PURE__ */forwardRef((props, ref) => {
|
|
376
584
|
return (React__default.createElement("div", { ref: ref, className: cx([
|
|
377
585
|
css$1p.root,
|
|
378
586
|
'uui-count_indicator',
|
|
379
|
-
|
|
587
|
+
`uui-size-${props.size || settings.sizes.defaults.countIndicator}`,
|
|
380
588
|
props.color && `uui-color-${props.color}`,
|
|
381
589
|
props.cx,
|
|
382
590
|
]) }, props.caption));
|
|
383
591
|
});
|
|
384
592
|
|
|
385
|
-
var css$1o = {"uui-typography":"
|
|
593
|
+
var css$1o = {"uui-typography":"tSGEkP","hero-header":"mQxoqy","promo-header":"-qVaep","uui-critical":"ZOz2jY","uui-info":"_74oldI","uui-success":"_0-ddFN","uui-warning":"K85u-t","uui-highlight":"D6hc5r","uui-typography-size-12":"q00ACF","uui-typography-size-14":"jFRO-G","uui-typography-size-16":"Y6TL5x","root":"_2Opey7","withNotify":"dw6vHz","uuiTypography":"tSGEkP","heroHeader":"mQxoqy","promoHeader":"-qVaep","uuiCritical":"ZOz2jY","uuiInfo":"_74oldI","uuiSuccess":"_0-ddFN","uuiWarning":"K85u-t","uuiHighlight":"D6hc5r","uuiTypographySize12":"q00ACF","uuiTypographySize14":"jFRO-G","uuiTypographySize16":"Y6TL5x"};
|
|
386
594
|
|
|
387
595
|
const TabButton = /* @__PURE__ */React__default.forwardRef((props, ref) => {
|
|
388
596
|
const styles = [
|
|
389
597
|
css$1o.root,
|
|
390
598
|
'uui-tab-button',
|
|
391
|
-
|
|
599
|
+
`uui-size-${props.size || settings.sizes.defaults.tabButton}`,
|
|
392
600
|
props.withNotify && css$1o.withNotify,
|
|
393
601
|
...getIconClass(props),
|
|
394
602
|
props.cx,
|
|
@@ -397,14 +605,14 @@ const TabButton = /* @__PURE__ */React__default.forwardRef((props, ref) => {
|
|
|
397
605
|
const ClearIcon = props.clearIcon ? props.clearIcon : systemIcons.clear;
|
|
398
606
|
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
607
|
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:
|
|
608
|
+
props.caption && (React__default.createElement("div", { className: cx$1(uuiElement.caption) }, props.caption)),
|
|
609
|
+
props.count !== undefined && props.count !== null && (React__default.createElement(CountIndicator, { color: "neutral", size: "18", caption: props.count })),
|
|
402
610
|
props.icon && props.iconPosition === 'right' && (React__default.createElement(IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
403
611
|
props.isDropdown && (React__default.createElement(IconContainer, { icon: DropdownIcon, flipY: props.isOpen })),
|
|
404
612
|
props.onClear && !props.isDisabled && (React__default.createElement(IconContainer, { cx: uuiMarkers.clickable, icon: ClearIcon, onClick: props.onClear }))));
|
|
405
613
|
});
|
|
406
614
|
|
|
407
|
-
var css$1n = {"uui-typography":"
|
|
615
|
+
var css$1n = {"uui-typography":"ZkEKdL","hero-header":"rfZo4Z","promo-header":"wVhJty","uui-critical":"cFUiet","uui-info":"f6bLd-","uui-success":"rKCEVr","uui-warning":"ZmyOlv","uui-highlight":"_2DE9cg","uui-typography-size-12":"opvITi","uui-typography-size-14":"lptD0v","uui-typography-size-16":"PucnSG","root":"zC0nrQ","uuiTypography":"ZkEKdL","heroHeader":"rfZo4Z","promoHeader":"wVhJty","uuiCritical":"cFUiet","uuiInfo":"f6bLd-","uuiSuccess":"rKCEVr","uuiWarning":"ZmyOlv","uuiHighlight":"_2DE9cg","uuiTypographySize12":"opvITi","uuiTypographySize14":"lptD0v","uuiTypographySize16":"PucnSG"};
|
|
408
616
|
|
|
409
617
|
function applyVerticalTabButtonMods() {
|
|
410
618
|
return [css$1n.root];
|
|
@@ -426,12 +634,12 @@ var SvgContentMinusOutline = function SvgContentMinusOutline(props, ref) {
|
|
|
426
634
|
};
|
|
427
635
|
var ForwardRef$B = /*#__PURE__*/forwardRef(SvgContentMinusOutline);
|
|
428
636
|
|
|
429
|
-
var css$1m = {"uui-typography":"
|
|
637
|
+
var css$1m = {"uui-typography":"J6G3v4","hero-header":"vkqli-","promo-header":"_7BtCD9","uui-critical":"dRcG6Q","uui-info":"_3durSx","uui-success":"_9eQgT-","uui-warning":"xmA39f","uui-highlight":"CvAPgR","uui-typography-size-12":"yA607R","uui-typography-size-14":"tWF-PJ","uui-typography-size-16":"SGSIG9","root":"t7aosk","mode-cell":"CDrE04","uuiTypography":"J6G3v4","heroHeader":"vkqli-","promoHeader":"_7BtCD9","uuiCritical":"dRcG6Q","uuiInfo":"_3durSx","uuiSuccess":"_9eQgT-","uuiWarning":"xmA39f","uuiHighlight":"CvAPgR","uuiTypographySize12":"yA607R","uuiTypographySize14":"tWF-PJ","uuiTypographySize16":"SGSIG9","modeCell":"CDrE04"};
|
|
430
638
|
|
|
431
639
|
function applyCheckboxMods(mods) {
|
|
432
640
|
return [
|
|
433
641
|
css$1m.root,
|
|
434
|
-
|
|
642
|
+
`uui-size-${mods.size || settings.sizes.defaults.checkbox}`,
|
|
435
643
|
css$1m['mode-' + (mods.mode || 'form')],
|
|
436
644
|
'uui-color-primary',
|
|
437
645
|
];
|
|
@@ -446,8 +654,6 @@ const applyUUICheckboxProps = (props) => {
|
|
|
446
654
|
};
|
|
447
655
|
const Checkbox = /* @__PURE__ */withMods(uuiComponents.Checkbox, applyCheckboxMods, applyUUICheckboxProps);
|
|
448
656
|
|
|
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
657
|
var _path$A;
|
|
452
658
|
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
659
|
var SvgRadioDotFill = function SvgRadioDotFill(props, ref) {
|
|
@@ -463,21 +669,25 @@ var SvgRadioDotFill = function SvgRadioDotFill(props, ref) {
|
|
|
463
669
|
};
|
|
464
670
|
var ForwardRef$A = /*#__PURE__*/forwardRef(SvgRadioDotFill);
|
|
465
671
|
|
|
672
|
+
var css$1l = {"uui-typography":"QwweiY","hero-header":"IEYohZ","promo-header":"ZIvzhh","uui-critical":"_1hRvty","uui-info":"_1PxguZ","uui-success":"jTqvfv","uui-warning":"o5O6hP","uui-highlight":"g1Qc-P","uui-typography-size-12":"CF-01G","uui-typography-size-14":"s5zTNZ","uui-typography-size-16":"OG4Koh","root":"bJmX0C","uuiTypography":"QwweiY","heroHeader":"IEYohZ","promoHeader":"ZIvzhh","uuiCritical":"_1hRvty","uuiInfo":"_1PxguZ","uuiSuccess":"jTqvfv","uuiWarning":"o5O6hP","uuiHighlight":"g1Qc-P","uuiTypographySize12":"CF-01G","uuiTypographySize14":"s5zTNZ","uuiTypographySize16":"OG4Koh"};
|
|
673
|
+
|
|
466
674
|
function applyRadioInputMods(mods) {
|
|
467
675
|
return [
|
|
468
676
|
css$1l.root,
|
|
469
|
-
|
|
677
|
+
`uui-size-${mods.size || settings.sizes.defaults.radioInput}`,
|
|
470
678
|
'uui-radio-input-container',
|
|
471
679
|
'uui-color-primary',
|
|
472
680
|
];
|
|
473
681
|
}
|
|
474
682
|
const RadioInput = /* @__PURE__ */withMods(RadioInput$1, applyRadioInputMods, (props) => ({ icon: props.icon ? props.icon : ForwardRef$A }));
|
|
475
683
|
|
|
476
|
-
var css$1k = {"root":"
|
|
684
|
+
var css$1k = {"root":"cfxkwl"};
|
|
477
685
|
|
|
478
686
|
function applySwitchMods(mods) {
|
|
479
687
|
return [
|
|
480
|
-
css$1k.root,
|
|
688
|
+
css$1k.root,
|
|
689
|
+
`uui-size-${mods.size || settings.sizes.defaults.switch}`,
|
|
690
|
+
'uui-color-primary',
|
|
481
691
|
];
|
|
482
692
|
}
|
|
483
693
|
const Switch = /* @__PURE__ */withMods(uuiComponents.Switch, applySwitchMods);
|
|
@@ -539,14 +749,13 @@ var EditMode;
|
|
|
539
749
|
EditMode["INLINE"] = "inline";
|
|
540
750
|
})(EditMode || (EditMode = {}));
|
|
541
751
|
|
|
542
|
-
var textInputCss = {"uui-typography":"
|
|
752
|
+
var textInputCss = {"uui-typography":"EVxlPO","hero-header":"YWtpq2","promo-header":"_6ZztpG","uui-critical":"pUGj-F","uui-info":"EWGtWC","uui-success":"toq-nB","uui-warning":"qVFznf","uui-highlight":"hmi-Mj","uui-typography-size-12":"IEF8kl","uui-typography-size-14":"fHwASS","uui-typography-size-16":"S-11WL","root":"Tf0fZP","mode-form":"P-hwGB","mode-inline":"SavHIW","mode-cell":"Gr86QX","uuiTypography":"EVxlPO","heroHeader":"YWtpq2","promoHeader":"_6ZztpG","uuiCritical":"pUGj-F","uuiInfo":"EWGtWC","uuiSuccess":"toq-nB","uuiWarning":"qVFznf","uuiHighlight":"hmi-Mj","uuiTypographySize12":"IEF8kl","uuiTypographySize14":"fHwASS","uuiTypographySize16":"S-11WL","modeForm":"P-hwGB","modeInline":"SavHIW","modeCell":"Gr86QX"};
|
|
543
753
|
|
|
544
|
-
const DEFAULT_SIZE$6 = '36';
|
|
545
754
|
const DEFAULT_MODE$3 = EditMode.FORM;
|
|
546
755
|
function applyTextInputMods(mods) {
|
|
547
756
|
return [
|
|
548
757
|
textInputCss.root,
|
|
549
|
-
|
|
758
|
+
`uui-size-${mods.size || settings.sizes.defaults.textInput}`,
|
|
550
759
|
textInputCss['mode-' + (mods.mode || DEFAULT_MODE$3)],
|
|
551
760
|
];
|
|
552
761
|
}
|
|
@@ -566,7 +775,7 @@ const SearchInput = /* @__PURE__ */React__default.forwardRef((props, ref) => {
|
|
|
566
775
|
} })));
|
|
567
776
|
});
|
|
568
777
|
|
|
569
|
-
var css$1j = {"root":"
|
|
778
|
+
var css$1j = {"root":"h023l9"};
|
|
570
779
|
|
|
571
780
|
const ControlGroup = /* @__PURE__ */withMods(ControlGroup$1, () => [css$1j.root]);
|
|
572
781
|
|
|
@@ -575,16 +784,14 @@ function MultiSwitchComponent(props, ref) {
|
|
|
575
784
|
}
|
|
576
785
|
const MultiSwitch = /* @__PURE__ */React.forwardRef(MultiSwitchComponent);
|
|
577
786
|
|
|
578
|
-
var css$1i = {"uui-typography":"
|
|
787
|
+
var css$1i = {"uui-typography":"WIcHtf","hero-header":"vBqsSd","promo-header":"_0yPjet","uui-critical":"ERJeZM","uui-info":"vBMc7u","uui-success":"h6wdpc","uui-warning":"WTY21-","uui-highlight":"YVbDXW","uui-typography-size-12":"l1yQh6","uui-typography-size-14":"LayhbI","uui-typography-size-16":"C9qpV-","root":"MjJwVd","mode-form":"W6KE3M","mode-cell":"kpoN6e","uuiTypography":"WIcHtf","heroHeader":"vBqsSd","promoHeader":"_0yPjet","uuiCritical":"ERJeZM","uuiInfo":"vBMc7u","uuiSuccess":"h6wdpc","uuiWarning":"WTY21-","uuiHighlight":"YVbDXW","uuiTypographySize12":"l1yQh6","uuiTypographySize14":"LayhbI","uuiTypographySize16":"C9qpV-","modeForm":"W6KE3M","modeCell":"kpoN6e"};
|
|
579
788
|
|
|
580
|
-
const DEFAULT_SIZE$5 = '36';
|
|
581
789
|
const DEFAULT_MODE$2 = EditMode.FORM;
|
|
582
790
|
function applyNumericInputMods(mods) {
|
|
583
791
|
return [
|
|
584
792
|
textInputCss.root,
|
|
585
793
|
css$1i.root,
|
|
586
|
-
|
|
587
|
-
textInputCss['size-' + (mods.size || DEFAULT_SIZE$5)],
|
|
794
|
+
`uui-size-${mods.size || settings.sizes.defaults.numericInput}`,
|
|
588
795
|
textInputCss['mode-' + (mods.mode || DEFAULT_MODE$2)],
|
|
589
796
|
];
|
|
590
797
|
}
|
|
@@ -598,21 +805,20 @@ const NumericInput = /* @__PURE__ */withMods(NumericInput$1, applyNumericInputMo
|
|
|
598
805
|
};
|
|
599
806
|
});
|
|
600
807
|
|
|
601
|
-
var css$1h = {"uui-typography":"
|
|
808
|
+
var css$1h = {"uui-typography":"v6VOAV","hero-header":"kWu3-t","promo-header":"gduC8T","uui-critical":"rdr-Nq","uui-info":"YSiX87","uui-success":"_7bIPDY","uui-warning":"hQmX94","uui-highlight":"oPC5hp","uui-typography-size-12":"xT2BNF","uui-typography-size-14":"_044iCu","uui-typography-size-16":"W3qiOJ","root":"ZuikGS","mode-form":"DvG6CK","mode-cell":"D2gdfr","mode-inline":"pDRNrA","uuiTypography":"v6VOAV","heroHeader":"kWu3-t","promoHeader":"gduC8T","uuiCritical":"rdr-Nq","uuiInfo":"YSiX87","uuiSuccess":"_7bIPDY","uuiWarning":"hQmX94","uuiHighlight":"oPC5hp","uuiTypographySize12":"xT2BNF","uuiTypographySize14":"_044iCu","uuiTypographySize16":"W3qiOJ","modeForm":"DvG6CK","modeCell":"D2gdfr","modeInline":"pDRNrA"};
|
|
602
809
|
|
|
603
|
-
const DEFAULT_SIZE$4 = '36';
|
|
604
810
|
const DEFAULT_MODE$1 = EditMode.FORM;
|
|
605
811
|
function applyTextAreaMods(mods) {
|
|
606
812
|
return [
|
|
607
813
|
css$1h.root,
|
|
608
|
-
|
|
814
|
+
'uui-textarea',
|
|
815
|
+
'uui-size-' + (mods.size || settings.sizes.defaults.textArea),
|
|
609
816
|
css$1h['mode-' + (mods.mode || DEFAULT_MODE$1)],
|
|
610
817
|
];
|
|
611
818
|
}
|
|
612
819
|
const TextArea = /* @__PURE__ */withMods(TextArea$1, applyTextAreaMods, (props) => {
|
|
613
820
|
return {
|
|
614
821
|
autoSize: props.mode === EditMode.CELL ? true : props.autoSize,
|
|
615
|
-
maxLength: props.mode === EditMode.CELL ? undefined : props.maxLength,
|
|
616
822
|
};
|
|
617
823
|
});
|
|
618
824
|
|
|
@@ -700,7 +906,7 @@ var SvgNotificationInfoFill = function SvgNotificationInfoFill(props, ref) {
|
|
|
700
906
|
};
|
|
701
907
|
var ForwardRef$w = /*#__PURE__*/forwardRef(SvgNotificationInfoFill);
|
|
702
908
|
|
|
703
|
-
var css$1g = {"uui-typography":"
|
|
909
|
+
var css$1g = {"uui-typography":"VfoFTP","hero-header":"i-tetx","promo-header":"-PJXux","uui-critical":"DJEVoG","uui-info":"QjTwGC","uui-success":"jrX-gO","uui-warning":"DBPmzV","uui-highlight":"l8PwcW","uui-typography-size-12":"_1ilLU1","uui-typography-size-14":"S6YgXL","uui-typography-size-16":"Y4OdSO","root":"XLkyv3","icon-wrapper":"o0mZ8P","alert-wrapper":"UhMB70","size-48":"ais6i5","size-36":"cTEr5a","action-wrapper":"VtsTi1","action-icon":"sXn1q-","action-link":"-K6YLo","close-icon":"rcOPra","main-path":"PHszuJ","content":"_0DsTHi","uuiTypography":"VfoFTP","heroHeader":"i-tetx","promoHeader":"-PJXux","uuiCritical":"DJEVoG","uuiInfo":"QjTwGC","uuiSuccess":"jrX-gO","uuiWarning":"DBPmzV","uuiHighlight":"l8PwcW","uuiTypographySize12":"_1ilLU1","uuiTypographySize14":"S6YgXL","uuiTypographySize16":"Y4OdSO","iconWrapper":"o0mZ8P","alertWrapper":"UhMB70","size48":"ais6i5","size36":"cTEr5a","actionWrapper":"VtsTi1","actionIcon":"sXn1q-","actionLink":"-K6YLo","closeIcon":"rcOPra","mainPath":"PHszuJ"};
|
|
704
910
|
|
|
705
911
|
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
912
|
React.createElement("div", { className: css$1g.mainPath },
|
|
@@ -717,7 +923,7 @@ const ErrorAlert = /* @__PURE__ */React.forwardRef((props, ref) => React.createE
|
|
|
717
923
|
|
|
718
924
|
const Dropdown = /* @__PURE__ */withMods(Dropdown$1);
|
|
719
925
|
|
|
720
|
-
var css$1f = {"root":"
|
|
926
|
+
var css$1f = {"root":"O5PvX-"};
|
|
721
927
|
|
|
722
928
|
function applyDropdownContainerMods(mods) {
|
|
723
929
|
return [
|
|
@@ -728,7 +934,7 @@ function applyDropdownContainerMods(mods) {
|
|
|
728
934
|
}
|
|
729
935
|
const DropdownContainer = /* @__PURE__ */withMods(uuiComponents.DropdownContainer, applyDropdownContainerMods);
|
|
730
936
|
|
|
731
|
-
var css$1e = {"uui-typography":"
|
|
937
|
+
var css$1e = {"uui-typography":"dbMCz-","hero-header":"v1c1Ji","promo-header":"fgFIPq","uui-critical":"OayjL2","uui-info":"t6Vqb-","uui-success":"_1Y19ke","uui-warning":"-kj0ie","uui-highlight":"GucUd9","uui-typography-size-12":"TY-byk","uui-typography-size-14":"uxITyk","uui-typography-size-16":"tNmjv8","submenu-root-item":"Q8LdQv","icon-after":"kUHfYR","icon-check":"HfXLYB","splitter-root":"_0Ax8cE","splitter":"XAfCxP","header-root":"jtyCxk","item-root":"AEXTmF","icon":"fYf6f5","link":"pni0sc","indent":"Hn4nrr","selected-mark":"w3kZuj","uuiTypography":"dbMCz-","heroHeader":"v1c1Ji","promoHeader":"fgFIPq","uuiCritical":"OayjL2","uuiInfo":"t6Vqb-","uuiSuccess":"_1Y19ke","uuiWarning":"-kj0ie","uuiHighlight":"GucUd9","uuiTypographySize12":"TY-byk","uuiTypographySize14":"uxITyk","uuiTypographySize16":"tNmjv8","submenuRootItem":"Q8LdQv","iconAfter":"kUHfYR","iconCheck":"HfXLYB","splitterRoot":"_0Ax8cE","headerRoot":"jtyCxk","itemRoot":"AEXTmF","selectedMark":"w3kZuj"};
|
|
732
938
|
|
|
733
939
|
var IDropdownControlKeys;
|
|
734
940
|
(function (IDropdownControlKeys) {
|
|
@@ -833,7 +1039,8 @@ function DropdownSubMenu(props) {
|
|
|
833
1039
|
},
|
|
834
1040
|
},
|
|
835
1041
|
];
|
|
836
|
-
|
|
1042
|
+
const dir = useDocumentDir();
|
|
1043
|
+
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
1044
|
var { toggleDropdownOpening } = _a, targetProps = __rest(_a, ["toggleDropdownOpening"]);
|
|
838
1045
|
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
1046
|
} }));
|
|
@@ -859,7 +1066,7 @@ function DropdownMenuSwitchButton(props) {
|
|
|
859
1066
|
React__default.createElement(Switch, { value: isSelected, tabIndex: -1, onValueChange: onHandleValueChange })));
|
|
860
1067
|
}
|
|
861
1068
|
|
|
862
|
-
var css$1d = {"uui-typography":"
|
|
1069
|
+
var css$1d = {"uui-typography":"abCLlj","hero-header":"hwxaq8","promo-header":"EJy9Kn","uui-critical":"RgrKD0","uui-info":"yIloAV","uui-success":"CqCq90","uui-warning":"Kl26jK","uui-highlight":"_2whJx7","uui-typography-size-12":"ZfJOTF","uui-typography-size-14":"IwoeOc","uui-typography-size-16":"_11U-1G","root":"dQPgYB","mode-block":"kwX1M7","mode-inline":"ViadGa","padding-0":"nCA-fQ","padding-6":"TakObJ","padding-12":"_8AKo-A","padding-18":"dBvDRE","uuiTypography":"abCLlj","heroHeader":"hwxaq8","promoHeader":"EJy9Kn","uuiCritical":"RgrKD0","uuiInfo":"yIloAV","uuiSuccess":"CqCq90","uuiWarning":"Kl26jK","uuiHighlight":"_2whJx7","uuiTypographySize12":"ZfJOTF","uuiTypographySize14":"IwoeOc","uuiTypographySize16":"_11U-1G","modeBlock":"kwX1M7","modeInline":"ViadGa","padding0":"nCA-fQ","padding6":"TakObJ","padding12":"_8AKo-A","padding18":"dBvDRE"};
|
|
863
1070
|
|
|
864
1071
|
const getMode = (mode) => {
|
|
865
1072
|
return mode || 'block';
|
|
@@ -875,7 +1082,7 @@ const Accordion = /* @__PURE__ */withMods(uuiComponents.Accordion, applyAccordio
|
|
|
875
1082
|
dropdownIcon: mods.dropdownIcon !== null && systemIcons.foldingArrow,
|
|
876
1083
|
}));
|
|
877
1084
|
|
|
878
|
-
var css$1c = {"uui-typography":"
|
|
1085
|
+
var css$1c = {"uui-typography":"QSt9vg","hero-header":"M9qaGD","promo-header":"Jd7v0J","uui-critical":"TKtdjU","uui-info":"wDy-SE","uui-success":"U7rp-B","uui-warning":"M1k-jl","uui-highlight":"faOr5N","uui-typography-size-12":"_5oy-ks","uui-typography-size-14":"JUUAWw","uui-typography-size-16":"_4KXcSl","root":"xENfMD","border-top":"bHCvsv","border-bottom":"eUJzqa","top-shadow":"ywpq0i","size-24":"-bSs2t","size-30":"t3YaIx","size-36":"i39kYA","size-42":"yUWdJt","size-48":"TZKkYs","padding-6":"UPuYF-","padding-12":"AWhzAs","padding-18":"D9ho-V","padding-24":"S1zNDY","margin-24":"qOXfsz","margin-12":"k1r-qL","vPadding-12":"qLJILw","vPadding-18":"pn2C-x","vPadding-24":"O9gKDU","vPadding-36":"N0oOQs","vPadding-48":"dLJY6N","spacing-6":"G-Pg8t","spacing-12":"NKp6hg","spacing-18":"FhYC-0","uui-surface-main":"U-8VbG","uuiTypography":"QSt9vg","heroHeader":"M9qaGD","promoHeader":"Jd7v0J","uuiCritical":"TKtdjU","uuiInfo":"wDy-SE","uuiSuccess":"U7rp-B","uuiWarning":"M1k-jl","uuiHighlight":"faOr5N","uuiTypographySize12":"_5oy-ks","uuiTypographySize14":"JUUAWw","uuiTypographySize16":"_4KXcSl","borderTop":"bHCvsv","borderBottom":"eUJzqa","topShadow":"ywpq0i","size24":"-bSs2t","size30":"t3YaIx","size36":"i39kYA","size42":"yUWdJt","size48":"TZKkYs","padding6":"UPuYF-","padding12":"AWhzAs","padding18":"D9ho-V","padding24":"S1zNDY","margin24":"qOXfsz","margin12":"k1r-qL","vPadding12":"qLJILw","vPadding18":"pn2C-x","vPadding24":"O9gKDU","vPadding36":"N0oOQs","vPadding48":"dLJY6N","spacing6":"G-Pg8t","spacing12":"NKp6hg","spacing18":"FhYC-0","uuiSurfaceMain":"U-8VbG"};
|
|
879
1086
|
|
|
880
1087
|
const FlexCell = /* @__PURE__ */withMods(FlexCell$1, () => [css$1c.flexCell]);
|
|
881
1088
|
|
|
@@ -899,7 +1106,7 @@ const FlexRow = /* @__PURE__ */withMods(FlexRow$1, (props) => {
|
|
|
899
1106
|
];
|
|
900
1107
|
});
|
|
901
1108
|
|
|
902
|
-
var css$1b = {"root":"
|
|
1109
|
+
var css$1b = {"root":"oaWGbp","margin-24":"_3YIhVQ","padding-12":"bv-73v","padding-24":"d5a-vk","shadow":"FaIDq-","uui-surface-main":"UDKHb5","margin24":"_3YIhVQ","padding12":"bv-73v","padding24":"d5a-vk","uuiSurfaceMain":"UDKHb5"};
|
|
903
1110
|
|
|
904
1111
|
const Panel = /* @__PURE__ */withMods(VPanel, (props) => [
|
|
905
1112
|
'uui-panel',
|
|
@@ -909,7 +1116,7 @@ const Panel = /* @__PURE__ */withMods(VPanel, (props) => [
|
|
|
909
1116
|
props.background && css$1b[`uui-${props.background}`],
|
|
910
1117
|
]);
|
|
911
1118
|
|
|
912
|
-
var css$1a = {"root":"
|
|
1119
|
+
var css$1a = {"root":"-mb7aG"};
|
|
913
1120
|
|
|
914
1121
|
function applyTooltipMods(mods) {
|
|
915
1122
|
return [
|
|
@@ -919,18 +1126,21 @@ function applyTooltipMods(mods) {
|
|
|
919
1126
|
}
|
|
920
1127
|
const Tooltip = /* @__PURE__ */withMods(uuiComponents.Tooltip, applyTooltipMods);
|
|
921
1128
|
|
|
922
|
-
var css$19 = {"uui-typography":"
|
|
1129
|
+
var css$19 = {"uui-typography":"W2R8os","hero-header":"_0Bg5G1","promo-header":"_6br4Cl","uui-critical":"b3ikKS","uui-info":"cSgcn4","uui-success":"K36pxN","uui-warning":"syK6kh","uui-highlight":"U3bOQi","uui-typography-size-12":"GJAwrA","uui-typography-size-14":"HupQFw","uui-typography-size-16":"EUsRWN","root":"_9zjBqr","uuiTypography":"W2R8os","heroHeader":"_0Bg5G1","promoHeader":"_6br4Cl","uuiCritical":"b3ikKS","uuiInfo":"cSgcn4","uuiSuccess":"K36pxN","uuiWarning":"syK6kh","uuiHighlight":"U3bOQi","uuiTypographySize12":"GJAwrA","uuiTypographySize14":"HupQFw","uuiTypographySize16":"EUsRWN"};
|
|
923
1130
|
|
|
924
|
-
const DEFAULT_SIZE$3 = '36';
|
|
925
1131
|
function applyLabeledInputMods(mods) {
|
|
926
|
-
return [
|
|
1132
|
+
return [
|
|
1133
|
+
'uui-labeled-input',
|
|
1134
|
+
css$19.root,
|
|
1135
|
+
'uui-size-' + (mods.size || settings.sizes.defaults.labeledInput),
|
|
1136
|
+
];
|
|
927
1137
|
}
|
|
928
1138
|
const LabeledInput = /* @__PURE__ */withMods(uuiComponents.LabeledInput, applyLabeledInputMods, (props) => ({
|
|
929
1139
|
Tooltip: props.Tooltip || Tooltip,
|
|
930
|
-
infoIcon: props.infoIcon || (
|
|
1140
|
+
infoIcon: props.infoIcon || (settings.sizes.labeledInput.fillIcon.includes(props.size) ? ForwardRef$w : ForwardRef$L),
|
|
931
1141
|
}));
|
|
932
1142
|
|
|
933
|
-
var css$18 = {"root":"
|
|
1143
|
+
var css$18 = {"root":"sLMUIO"};
|
|
934
1144
|
|
|
935
1145
|
function RadioGroup(props) {
|
|
936
1146
|
const direction = props.direction || 'vertical';
|
|
@@ -945,7 +1155,7 @@ function RadioGroup(props) {
|
|
|
945
1155
|
})));
|
|
946
1156
|
}
|
|
947
1157
|
|
|
948
|
-
var css$17 = {"root":"
|
|
1158
|
+
var css$17 = {"root":"UHoGxD"};
|
|
949
1159
|
|
|
950
1160
|
function applyScrollBarsMods() {
|
|
951
1161
|
return [
|
|
@@ -954,60 +1164,42 @@ function applyScrollBarsMods() {
|
|
|
954
1164
|
}
|
|
955
1165
|
const ScrollBars = /* @__PURE__ */withMods(ScrollBars$1, applyScrollBarsMods);
|
|
956
1166
|
|
|
957
|
-
var css$16 = {"scroll-container":"
|
|
1167
|
+
var css$16 = {"scroll-container":"jvabmI","list-container":"FkRcKD","scrollContainer":"jvabmI","listContainer":"FkRcKD"};
|
|
958
1168
|
|
|
959
|
-
var css$15 = {"root":"
|
|
1169
|
+
var css$15 = {"root":"HX2JbG"};
|
|
960
1170
|
|
|
961
1171
|
const AvatarStack = /* @__PURE__ */withMods(AvatarStack$1, () => [css$15.root]);
|
|
962
1172
|
|
|
963
|
-
var css$14 = {"uui-typography":"
|
|
1173
|
+
var css$14 = {"uui-typography":"Be4LbF","hero-header":"kvi1PD","promo-header":"TvyWBo","uui-critical":"Xwt6A1","uui-info":"CSDRjI","uui-success":"lNouK-","uui-warning":"kl86oz","uui-highlight":"yuhvbc","uui-typography-size-12":"_5fI9rw","uui-typography-size-14":"vRUu6J","uui-typography-size-16":"rCGl-N","root":"h-Y7xa","uuiTypography":"Be4LbF","heroHeader":"kvi1PD","promoHeader":"TvyWBo","uuiCritical":"Xwt6A1","uuiInfo":"CSDRjI","uuiSuccess":"lNouK-","uuiWarning":"kl86oz","uuiHighlight":"yuhvbc","uuiTypographySize12":"_5fI9rw","uuiTypographySize14":"vRUu6J","uuiTypographySize16":"rCGl-N"};
|
|
964
1174
|
|
|
965
|
-
const DEFAULT_SIZE$2 = '36';
|
|
966
1175
|
const DEFAULT_FILL = 'solid';
|
|
967
1176
|
function applyBadgeMods(mods) {
|
|
968
1177
|
return [
|
|
969
1178
|
'uui-badge',
|
|
970
1179
|
css$14.root,
|
|
971
|
-
|
|
1180
|
+
`uui-size-${mods.size || settings.sizes.defaults.badge}`,
|
|
972
1181
|
`uui-fill-${mods.fill || DEFAULT_FILL}`,
|
|
973
1182
|
`uui-color-${mods.color || 'info'}`,
|
|
974
1183
|
mods.indicator && mods.fill === 'outline' && 'uui-indicator',
|
|
975
1184
|
];
|
|
976
1185
|
}
|
|
977
|
-
const mapCountIndicatorSizes$1 = {
|
|
978
|
-
18: '12',
|
|
979
|
-
24: '18',
|
|
980
|
-
30: '18',
|
|
981
|
-
36: '18',
|
|
982
|
-
42: '24',
|
|
983
|
-
48: '24',
|
|
984
|
-
};
|
|
985
1186
|
const Badge = /* @__PURE__ */React__default.forwardRef((props, ref) => {
|
|
986
1187
|
const styles = [applyBadgeMods(props), props.cx];
|
|
987
1188
|
const DropdownIcon = props.dropdownIcon ? props.dropdownIcon : systemIcons.foldingArrow;
|
|
988
1189
|
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
1190
|
props.icon && props.iconPosition !== 'right' && (React__default.createElement(IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
990
1191
|
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:
|
|
1192
|
+
props.count !== undefined && props.count !== null && (React__default.createElement(CountIndicator, { key: "count-indicator", color: null, size: settings.sizes.badge.countIndicator[props.size || settings.sizes.defaults.badge], caption: props.count })),
|
|
992
1193
|
props.icon && props.iconPosition === 'right' && (React__default.createElement(IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
993
1194
|
props.isDropdown && (React__default.createElement(IconContainer, { icon: DropdownIcon, flipY: props.isOpen }))));
|
|
994
1195
|
});
|
|
995
1196
|
|
|
996
|
-
var css$13 = {"uui-typography":"
|
|
1197
|
+
var css$13 = {"uui-typography":"RIt1Ou","hero-header":"vxVOsl","promo-header":"_1yb12y","uui-critical":"_8xbl9N","uui-info":"LCj0SF","uui-success":"CoKfob","uui-warning":"aUzCKk","uui-highlight":"IeF390","uui-typography-size-12":"a5TqgA","uui-typography-size-14":"_2yiG3v","uui-typography-size-16":"zTp1T1","root":"NlNK8d","uuiTypography":"RIt1Ou","heroHeader":"vxVOsl","promoHeader":"_1yb12y","uuiCritical":"_8xbl9N","uuiInfo":"LCj0SF","uuiSuccess":"CoKfob","uuiWarning":"aUzCKk","uuiHighlight":"IeF390","uuiTypographySize12":"a5TqgA","uuiTypographySize14":"_2yiG3v","uuiTypographySize16":"zTp1T1"};
|
|
997
1198
|
|
|
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
1199
|
function applyTagMods(props) {
|
|
1008
1200
|
return [
|
|
1009
|
-
css$13['size-' + (props.size || DEFAULT_SIZE$1)],
|
|
1010
1201
|
css$13.root,
|
|
1202
|
+
`uui-size-${props.size || settings.sizes.defaults.tag}`,
|
|
1011
1203
|
`uui-color-${props.color || 'neutral'}`,
|
|
1012
1204
|
`uui-fill-${props.fill || 'solid'}`,
|
|
1013
1205
|
'uui-tag',
|
|
@@ -1020,20 +1212,20 @@ const Tag = /* @__PURE__ */React__default.forwardRef((props, ref) => {
|
|
|
1020
1212
|
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
1213
|
props.icon && props.iconPosition !== 'right' && (React__default.createElement(IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
1022
1214
|
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:
|
|
1215
|
+
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
1216
|
props.icon && props.iconPosition === 'right' && (React__default.createElement(IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
1025
1217
|
props.isDropdown && (React__default.createElement(IconContainer, { icon: DropdownIcon, flipY: props.isOpen })),
|
|
1026
1218
|
props.onClear && !props.isDisabled && (React__default.createElement(IconContainer, { cx: uuiMarkers.clickable, icon: ClearIcon, onClick: props.onClear }))));
|
|
1027
1219
|
});
|
|
1028
1220
|
|
|
1029
|
-
var css$12 = {"root":"
|
|
1221
|
+
var css$12 = {"root":"Q-5tu4","uui-spinner":"e8TPU8","uuiSpinner":"e8TPU8"};
|
|
1030
1222
|
|
|
1031
1223
|
function applySpinnerMods() {
|
|
1032
1224
|
return [css$12.root, 'uui-spinner'];
|
|
1033
1225
|
}
|
|
1034
1226
|
const Spinner = /* @__PURE__ */withMods(Spinner$1, applySpinnerMods);
|
|
1035
1227
|
|
|
1036
|
-
var css$11 = {"root":"
|
|
1228
|
+
var css$11 = {"root":"eRhWqv","spacer":"-pYmM7","mode-ghost":"-gaql9","size-24":"_4jqALg","size-30":"g652-8","navigation-size-24":"ypIWcv","navigation-size-30":"PvbsDd","modeGhost":"-gaql9","size24":"_4jqALg","size30":"g652-8","navigationSize24":"ypIWcv","navigationSize30":"PvbsDd"};
|
|
1037
1229
|
|
|
1038
1230
|
var _path$v;
|
|
1039
1231
|
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 +1276,14 @@ function Paginator(props) {
|
|
|
1084
1276
|
return React__default.createElement(Paginator$1, Object.assign({}, props, { render: renderPaginator }));
|
|
1085
1277
|
}
|
|
1086
1278
|
|
|
1087
|
-
var css$10 = {"root":"
|
|
1279
|
+
var css$10 = {"root":"PWFeIt","progress-bar":"_88B2Jb","progressBar-indeterminate":"_7RM-8C","size-12":"_6TmTcl","size-18":"uQ-feK","size-24":"-wBxeM","progressBar":"_88B2Jb","progressBarIndeterminate":"_7RM-8C","size12":"_6TmTcl","size18":"uQ-feK","size24":"-wBxeM"};
|
|
1088
1280
|
|
|
1089
1281
|
const IndeterminateBar = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
1090
1282
|
return (React.createElement("div", { ref: ref, className: cx('uui-indeterminate_bar', props.cx, css$10.root, css$10[`size-${props.size || 12}`]) },
|
|
1091
1283
|
React.createElement("div", { className: cx(css$10.progressBar) })));
|
|
1092
1284
|
});
|
|
1093
1285
|
|
|
1094
|
-
var css$$ = {"root":"
|
|
1286
|
+
var css$$ = {"root":"_98UyNW","striped":"IZ3IMn","animate-stripes":"_1g95Ag","size-12":"gmrSh1","size-18":"att51j","size-24":"_71eZ3k","animateStripes":"_1g95Ag","size12":"gmrSh1","size18":"att51j","size24":"_71eZ3k"};
|
|
1095
1287
|
|
|
1096
1288
|
const DEFAULT_SIZE = '12';
|
|
1097
1289
|
function applyProgressBarMods(mods) {
|
|
@@ -1106,76 +1298,51 @@ const ProgressBar = /* @__PURE__ */withMods(uuiComponents.ProgressBar, applyProg
|
|
|
1106
1298
|
hideLabel: props.hideLabel || props.striped,
|
|
1107
1299
|
}));
|
|
1108
1300
|
|
|
1109
|
-
var css$_ = {"root":"
|
|
1301
|
+
var css$_ = {"root":"KazOg0"};
|
|
1110
1302
|
|
|
1111
1303
|
const IndicatorBar = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
1112
1304
|
const { progress } = props;
|
|
1113
1305
|
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
1306
|
});
|
|
1115
1307
|
|
|
1116
|
-
var css$Z = {"root":"
|
|
1308
|
+
var css$Z = {"root":"lqmCF-"};
|
|
1117
1309
|
|
|
1118
1310
|
const StatusIndicator = /* @__PURE__ */forwardRef((props, ref) => {
|
|
1119
1311
|
return (React__default.createElement("div", { ref: ref, className: cx([
|
|
1120
1312
|
css$Z.root,
|
|
1121
|
-
|
|
1313
|
+
`uui-size-${props.size || settings.sizes.defaults.statusIndicator}`,
|
|
1122
1314
|
'uui-status_indicator',
|
|
1123
1315
|
`uui-color-${props.color || 'neutral'}`,
|
|
1124
1316
|
`uui-fill-${props.fill || 'solid'}`,
|
|
1125
1317
|
props.cx,
|
|
1126
1318
|
]) },
|
|
1127
|
-
React__default.createElement("div", { className: "uui-
|
|
1128
|
-
React__default.createElement("p", { className: "uui-
|
|
1319
|
+
React__default.createElement("div", { className: "uui-status_indicator-dot" }),
|
|
1320
|
+
React__default.createElement("p", { className: "uui-status_indicator-caption" }, props.caption)));
|
|
1129
1321
|
});
|
|
1130
1322
|
|
|
1131
|
-
var css$Y = {"drag-handle":"
|
|
1323
|
+
var css$Y = {"drag-handle":"xkJyH4","icon-container":"ZPCFJH","dragHandle":"xkJyH4","iconContainer":"ZPCFJH"};
|
|
1132
1324
|
|
|
1133
1325
|
function DataRowAddons(props) {
|
|
1134
1326
|
var _a, _b;
|
|
1135
1327
|
const row = props.rowProps;
|
|
1136
|
-
const additionalItemSize = +props.size < 30 ? '12' : '18';
|
|
1137
1328
|
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
|
-
}
|
|
1329
|
+
return (row.indent - 1) * settings.sizes.rowAddons.indentUnit[props.size || 'default'];
|
|
1151
1330
|
};
|
|
1152
1331
|
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
|
-
}
|
|
1332
|
+
return settings.sizes.rowAddons.indentWidth[props.size || 'default'];
|
|
1166
1333
|
};
|
|
1167
1334
|
return (React__default.createElement(React__default.Fragment, null,
|
|
1168
1335
|
((_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:
|
|
1336
|
+
((_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 })),
|
|
1337
|
+
row.indent > 0 && (React__default.createElement("div", { key: "fold", className: cx('uui-dr_addons-indent', `uui-size-${props.size}`), style: { marginInlineStart: getIndent(), width: getWidth() } }, row.isFoldable && (React__default.createElement(IconContainer, { rawProps: {
|
|
1171
1338
|
'aria-label': row.isFolded ? 'Unfold' : 'Fold',
|
|
1172
1339
|
role: 'button',
|
|
1173
1340
|
}, key: "icon", icon: ForwardRef$P, cx: [
|
|
1174
1341
|
uuiElement.foldingArrow, uuiMarkers.clickable, css$Y.iconContainer,
|
|
1175
|
-
], rotate: row.isFolded ? '90ccw' : '0', onClick: () => row.onFold(row) }))))));
|
|
1342
|
+
], rotate: row.isFolded ? '90ccw' : '0', onClick: () => row.onFold(row), size: settings.sizes.rowAddons.icon[props.size] }))))));
|
|
1176
1343
|
}
|
|
1177
1344
|
|
|
1178
|
-
var css$X = {"root":"
|
|
1345
|
+
var css$X = {"root":"qGrcIa"};
|
|
1179
1346
|
|
|
1180
1347
|
const Blocker = /* @__PURE__ */withMods(Blocker$1, () => [css$X.root], (cmpProps) => ({ renderSpinner: cmpProps.renderSpinner || (() => React__default.createElement(Spinner, null)) }));
|
|
1181
1348
|
|
|
@@ -1216,7 +1383,7 @@ const VirtualListView = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
1216
1383
|
React.createElement(Blocker, { isEnabled: props.isLoading })));
|
|
1217
1384
|
});
|
|
1218
1385
|
|
|
1219
|
-
var css$W = {"root":"
|
|
1386
|
+
var css$W = {"root":"mhIIsQ"};
|
|
1220
1387
|
|
|
1221
1388
|
function CheckboxGroup(props) {
|
|
1222
1389
|
const currentValue = props.value || [];
|
|
@@ -1378,7 +1545,7 @@ const TREE_SHAKEABLE_INIT = () => (Object.assign(Object.assign({}, i18n$1), { da
|
|
|
1378
1545
|
} }));
|
|
1379
1546
|
const i18n = /* @__PURE__ */TREE_SHAKEABLE_INIT();
|
|
1380
1547
|
|
|
1381
|
-
var css$V = {"uui-typography":"
|
|
1548
|
+
var css$V = {"uui-typography":"i3xHmX","hero-header":"dRJFfY","promo-header":"tbGsNh","uui-critical":"J-N1Z2","uui-info":"_2k9F5t","uui-success":"_9dakSV","uui-warning":"Kioboq","uui-highlight":"to1TWs","uui-typography-size-12":"Dh9X0R","uui-typography-size-14":"yIRXbO","uui-typography-size-16":"_7WHW7z","modal":"_2okuuV","search-wrapper":"eyJGVM","checkbox":"JGUDp4","no-found-size-24":"H55sdI","no-found-size-30":"LJACaY","no-found-size-36":"cvPKvs","no-found-size-42":"_1X-dlT","uuiTypography":"i3xHmX","heroHeader":"dRJFfY","promoHeader":"tbGsNh","uuiCritical":"J-N1Z2","uuiInfo":"_2k9F5t","uuiSuccess":"_9dakSV","uuiWarning":"Kioboq","uuiHighlight":"to1TWs","uuiTypographySize12":"Dh9X0R","uuiTypographySize14":"yIRXbO","uuiTypographySize16":"_7WHW7z","searchWrapper":"eyJGVM","noFoundSize24":"H55sdI","noFoundSize30":"LJACaY","noFoundSize36":"cvPKvs","noFoundSize42":"_1X-dlT"};
|
|
1382
1549
|
|
|
1383
1550
|
class DataPickerBody extends PickerBodyBase {
|
|
1384
1551
|
constructor() {
|
|
@@ -1390,29 +1557,23 @@ class DataPickerBody extends PickerBodyBase {
|
|
|
1390
1557
|
if (this.props.renderNotFound) {
|
|
1391
1558
|
return this.props.renderNotFound();
|
|
1392
1559
|
}
|
|
1393
|
-
|
|
1394
|
-
|
|
1560
|
+
// TODO: need fix sizes, how to use variables
|
|
1561
|
+
return (React__default.createElement(FlexCell$1, { cx: css$V[`no-found-size-${this.props.searchSize || settings.sizes.dataPickerBody.flexCell.default}`], grow: 1, textAlign: "center" },
|
|
1562
|
+
React__default.createElement(Text, { size: this.props.searchSize }, i18n.dataPickerBody.noRecordsMessage)));
|
|
1395
1563
|
}
|
|
1396
1564
|
render() {
|
|
1397
|
-
const searchSize = isMobile() ? '
|
|
1565
|
+
const searchSize = (isMobile() ? settings.sizes.dataPickerBody.searchInput['mobile'] : this.props.searchSize);
|
|
1398
1566
|
return (React__default.createElement(React__default.Fragment, null,
|
|
1399
1567
|
this.showSearch() && (React__default.createElement("div", { key: "search", className: css$V.searchWrapper },
|
|
1400
1568
|
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 }))))),
|
|
1402
|
-
React__default.createElement(FlexRow, { key: "body", cx: cx$1('uui-
|
|
1569
|
+
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' } }))))),
|
|
1570
|
+
React__default.createElement(FlexRow, { key: "body", cx: cx$1('uui-picker_input-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
1571
|
}
|
|
1404
1572
|
}
|
|
1405
1573
|
|
|
1406
|
-
const switchSizes = {
|
|
1407
|
-
24: '12',
|
|
1408
|
-
36: '18',
|
|
1409
|
-
42: '24',
|
|
1410
|
-
48: '24',
|
|
1411
|
-
};
|
|
1412
1574
|
function DataPickerFooterImpl(props) {
|
|
1413
1575
|
const { clearSelection, view, showSelected, selectionMode, } = props;
|
|
1414
|
-
const size = isMobile() ? '
|
|
1415
|
-
const switchSize = switchSizes[size];
|
|
1576
|
+
const size = settings.sizes.dataPickerFooter.linkButton[isMobile() ? 'mobile' : props.size];
|
|
1416
1577
|
const hasSelection = view.getSelectedRowsCount() > 0;
|
|
1417
1578
|
const rowsCount = view.getListProps().rowsCount;
|
|
1418
1579
|
const isEmptyRowsAndHasNoSelection = (rowsCount === 0 && !hasSelection);
|
|
@@ -1422,8 +1583,8 @@ function DataPickerFooterImpl(props) {
|
|
|
1422
1583
|
const selectAllText = i18n.pickerInput.selectAllButton;
|
|
1423
1584
|
// show always for multi picker and for single only in case if search not disabled.
|
|
1424
1585
|
const shouldShowFooter = isSinglePicker ? !props.disableClear : true;
|
|
1425
|
-
return shouldShowFooter && (React__default.createElement(FlexRow, { padding:
|
|
1426
|
-
!isSinglePicker && (React__default.createElement(Switch, { size:
|
|
1586
|
+
return shouldShowFooter && (React__default.createElement(FlexRow, { padding: settings.sizes.dataPickerFooter.flexRowPadding },
|
|
1587
|
+
!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
1588
|
React__default.createElement(FlexSpacer, null),
|
|
1428
1589
|
React__default.createElement(FlexCell, { width: "auto", alignSelf: "center" },
|
|
1429
1590
|
view.selectAll && (React__default.createElement(LinkButton, { size: size, caption: hasSelection ? clearAllText : selectAllText, onClick: hasSelection ? clearSelection : () => view.selectAll.onValueChange(true), rawProps: {
|
|
@@ -1435,12 +1596,12 @@ function DataPickerFooterImpl(props) {
|
|
|
1435
1596
|
}
|
|
1436
1597
|
const DataPickerFooter = /* @__PURE__ */React__default.memo(DataPickerFooterImpl);
|
|
1437
1598
|
|
|
1438
|
-
var css$U = {"header":"
|
|
1599
|
+
var css$U = {"header":"cn9Dkg","close":"mOSiUL"};
|
|
1439
1600
|
|
|
1440
1601
|
const DataPickerHeaderImpl = (props) => {
|
|
1441
1602
|
const title = props.title && typeof props.title === 'string' ? props.title.charAt(0).toUpperCase() + props.title.slice(1) : '';
|
|
1442
1603
|
return (React__default.createElement(FlexRow, { alignItems: "center", borderBottom: true, cx: css$U.header },
|
|
1443
|
-
React__default.createElement(Text, { size:
|
|
1604
|
+
React__default.createElement(Text, { size: settings.sizes.dataPickerHeader.text.size, fontWeight: settings.sizes.dataPickerHeader.text.fontWeight }, title),
|
|
1444
1605
|
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
1606
|
};
|
|
1446
1607
|
const DataPickerHeader = /* @__PURE__ */React__default.memo(DataPickerHeaderImpl);
|
|
@@ -1460,7 +1621,7 @@ var SvgNotificationDoneFill = function SvgNotificationDoneFill(props, ref) {
|
|
|
1460
1621
|
};
|
|
1461
1622
|
var ForwardRef$t = /*#__PURE__*/forwardRef(SvgNotificationDoneFill);
|
|
1462
1623
|
|
|
1463
|
-
var css$T = {"uui-typography":"
|
|
1624
|
+
var css$T = {"uui-typography":"aastYs","hero-header":"J3MJSH","promo-header":"U6gp6k","uui-critical":"WCgdfG","uui-info":"E7FzEu","uui-success":"zPqK2x","uui-warning":"volmX9","uui-highlight":"YeONYa","uui-typography-size-12":"DMgYDT","uui-typography-size-14":"KFyche","uui-typography-size-16":"s0pcsr","root":"t3vNeY","align-widgets-top":"oe8-Mh","align-widgets-center":"yIGbhj","padding-12":"K3wW-t","padding-24":"k0dASH","padding-left-12":"J6pHmU","padding-left-24":"Fd3-HK","icon-container":"W-you5","loading-cell":"nQ90wV","content-wrapper":"CLQT3c","render-item":"FqgjTc","icon-wrapper":"YCSGeN","icon-default":"_7hWYCw","selected-mark":"GHuOX0","uuiTypography":"aastYs","heroHeader":"J3MJSH","promoHeader":"U6gp6k","uuiCritical":"WCgdfG","uuiInfo":"E7FzEu","uuiSuccess":"zPqK2x","uuiWarning":"volmX9","uuiHighlight":"YeONYa","uuiTypographySize12":"DMgYDT","uuiTypographySize14":"KFyche","uuiTypographySize16":"s0pcsr","alignWidgetsTop":"oe8-Mh","alignWidgetsCenter":"yIGbhj","padding12":"K3wW-t","padding24":"k0dASH","paddingLeft12":"J6pHmU","paddingLeft24":"Fd3-HK","iconContainer":"W-you5","loadingCell":"nQ90wV","contentWrapper":"CLQT3c","renderItem":"FqgjTc","iconWrapper":"YCSGeN","iconDefault":"_7hWYCw","selectedMark":"GHuOX0"};
|
|
1464
1625
|
|
|
1465
1626
|
function DataPickerCell(props) {
|
|
1466
1627
|
const ref = React.useRef();
|
|
@@ -1468,18 +1629,18 @@ function DataPickerCell(props) {
|
|
|
1468
1629
|
if (props.rowProps.isLoading) {
|
|
1469
1630
|
content = (
|
|
1470
1631
|
// remove `css.loadingCell` after` removing `margin: 0 3px 3px 0` from `TextPlaceholder` `loadingWord` class styles.
|
|
1471
|
-
React.createElement(Text, { key: "t", size:
|
|
1632
|
+
React.createElement(Text, { key: "t", size: settings.sizes.dataPickerCell.text[props.size], cx: css$T.loadingCell },
|
|
1472
1633
|
React.createElement(TextPlaceholder, null)));
|
|
1473
1634
|
}
|
|
1474
1635
|
else if (props.rowProps.isUnknown) {
|
|
1475
|
-
content = (React.createElement(Text, { key: "t", size:
|
|
1636
|
+
content = (React.createElement(Text, { key: "t", size: settings.sizes.dataPickerCell.text[props.size] }, "Unknown"));
|
|
1476
1637
|
}
|
|
1477
1638
|
else {
|
|
1478
1639
|
content = (React.createElement("div", { key: `${props.rowProps.id}`, className: css$T.renderItem },
|
|
1479
1640
|
props.renderItem(props.rowProps.value, props.rowProps),
|
|
1480
1641
|
React.createElement(FlexSpacer, null),
|
|
1481
1642
|
(props.rowProps.isChildrenSelected || props.rowProps.isSelected) && (React.createElement("div", { className: cx$1(css$T.iconWrapper, uuiMod.selected) },
|
|
1482
|
-
React.createElement(IconContainer, {
|
|
1643
|
+
React.createElement(IconContainer, { size: settings.sizes.dataPickerCell.icon[props.size], 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
1644
|
? 'Child is selected'
|
|
1484
1645
|
: 'Selected' } })))));
|
|
1485
1646
|
}
|
|
@@ -1488,22 +1649,22 @@ function DataPickerCell(props) {
|
|
|
1488
1649
|
css$T.root,
|
|
1489
1650
|
props.cx,
|
|
1490
1651
|
'data-picker-cell',
|
|
1491
|
-
|
|
1492
|
-
css$T[`padding-${props.padding ||
|
|
1493
|
-
css$T[`padding-left-${props.padding ||
|
|
1652
|
+
'uui-size-' + (props.size || settings.sizes.defaults.dataPickerCell),
|
|
1653
|
+
css$T[`padding-${props.padding || settings.sizes.dataPickerCell.padding.default}`],
|
|
1654
|
+
css$T[`padding-left-${props.padding || settings.sizes.dataPickerCell.paddingLeft.default}`],
|
|
1494
1655
|
css$T[`align-widgets-${props.alignActions || 'top'}`],
|
|
1495
1656
|
] },
|
|
1496
|
-
React.createElement(DataRowAddons, Object.assign({}, props)),
|
|
1657
|
+
React.createElement(DataRowAddons, Object.assign({ size: props.size || settings.sizes.defaults.dataPickerCell }, props)),
|
|
1497
1658
|
getWrappedContent()));
|
|
1498
1659
|
}
|
|
1499
1660
|
|
|
1500
|
-
var css$S = {"uui-typography":"
|
|
1661
|
+
var css$S = {"uui-typography":"MzhO-L","hero-header":"OkOy3j","promo-header":"IYKpP1","uui-critical":"zkUPjG","uui-info":"cj3n7j","uui-success":"X-x9R3","uui-warning":"maler3","uui-highlight":"FVDBeP","uui-typography-size-12":"NfmE6h","uui-typography-size-14":"Je5Hoc","uui-typography-size-16":"QGfR-F","picker-row":"_8rLt-3","uuiTypography":"MzhO-L","heroHeader":"OkOy3j","promoHeader":"IYKpP1","uuiCritical":"zkUPjG","uuiInfo":"cj3n7j","uuiSuccess":"X-x9R3","uuiWarning":"maler3","uuiHighlight":"FVDBeP","uuiTypographySize12":"NfmE6h","uuiTypographySize14":"Je5Hoc","uuiTypographySize16":"QGfR-F","pickerRow":"_8rLt-3"};
|
|
1501
1662
|
|
|
1502
1663
|
class DataPickerRow extends React.Component {
|
|
1503
1664
|
constructor() {
|
|
1504
1665
|
super(...arguments);
|
|
1505
1666
|
this.renderContent = () => {
|
|
1506
|
-
return (React.createElement(DataPickerCell, { key: "name", size: this.props.size ||
|
|
1667
|
+
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
1668
|
};
|
|
1508
1669
|
}
|
|
1509
1670
|
render() {
|
|
@@ -1511,7 +1672,7 @@ class DataPickerRow extends React.Component {
|
|
|
1511
1672
|
}
|
|
1512
1673
|
}
|
|
1513
1674
|
|
|
1514
|
-
var css$R = {"uui-typography":"
|
|
1675
|
+
var css$R = {"uui-typography":"jXYnbk","hero-header":"aZzDO3","promo-header":"tbnPtl","uui-critical":"kq1Lr9","uui-info":"EFfc8C","uui-success":"S4zvix","uui-warning":"eGkXim","uui-highlight":"_-62WwO","uui-typography-size-12":"P3-Q9a","uui-typography-size-14":"daaR0v","uui-typography-size-16":"iH3C-R","done":"_-6D6H0","container":"FXcRQU","uuiTypography":"jXYnbk","heroHeader":"aZzDO3","promoHeader":"tbnPtl","uuiCritical":"kq1Lr9","uuiInfo":"EFfc8C","uuiSuccess":"S4zvix","uuiWarning":"eGkXim","uuiHighlight":"_-62WwO","uuiTypographySize12":"P3-Q9a","uuiTypographySize14":"daaR0v","uuiTypographySize16":"iH3C-R"};
|
|
1515
1676
|
|
|
1516
1677
|
const MobileDropdownWrapper = (props) => {
|
|
1517
1678
|
const isMobileView = isMobile();
|
|
@@ -1520,7 +1681,7 @@ const MobileDropdownWrapper = (props) => {
|
|
|
1520
1681
|
return (React__default.createElement(DropdownContainer, Object.assign({}, props, { maxWidth: maxWidth, maxHeight: maxHeight, cx: [css$R.container, props.cx] }),
|
|
1521
1682
|
isMobileView && React__default.createElement(DataPickerHeader, { title: props.title, close: props.onClose }),
|
|
1522
1683
|
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:
|
|
1684
|
+
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
1685
|
};
|
|
1525
1686
|
|
|
1526
1687
|
var _path$s, _path2$4;
|
|
@@ -1545,9 +1706,7 @@ var SvgSearchWithBackground = function SvgSearchWithBackground(props, ref) {
|
|
|
1545
1706
|
};
|
|
1546
1707
|
var ForwardRef$s = /*#__PURE__*/forwardRef(SvgSearchWithBackground);
|
|
1547
1708
|
|
|
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"};
|
|
1709
|
+
var css$Q = {"uui-typography":"_0-imMu","hero-header":"_1uegdy","promo-header":"FhoIW-","uui-critical":"vHcW6R","uui-info":"u7yM2G","uui-success":"qmo2w9","uui-warning":"_8elNQw","uui-highlight":"AEgcyU","uui-typography-size-12":"gfUnlm","uui-typography-size-14":"Fuku2z","uui-typography-size-16":"XXnTFK","sub-header-wrapper":"yFZx7d","switch":"_3kag3Q","no-found-modal-container":"Q17NjQ","no-found-modal-container-icon":"i86p-1","no-found-modal-container-text":"zM0YiF","uuiTypography":"_0-imMu","heroHeader":"_1uegdy","promoHeader":"FhoIW-","uuiCritical":"vHcW6R","uuiInfo":"u7yM2G","uuiSuccess":"qmo2w9","uuiWarning":"_8elNQw","uuiHighlight":"AEgcyU","uuiTypographySize12":"gfUnlm","uuiTypographySize14":"Fuku2z","uuiTypographySize16":"XXnTFK","subHeaderWrapper":"yFZx7d","$switch$":"_3kag3Q","noFoundModalContainer":"Q17NjQ","noFoundModalContainerIcon":"i86p-1","noFoundModalContainerText":"zM0YiF"};
|
|
1551
1710
|
|
|
1552
1711
|
const mergeHighlightRanges = (ranges) => {
|
|
1553
1712
|
const mergedRanges = [];
|
|
@@ -1614,11 +1773,12 @@ const getHighlightedSearchMatches = (str, search) => {
|
|
|
1614
1773
|
return getDecoratedText(str, ranges);
|
|
1615
1774
|
};
|
|
1616
1775
|
|
|
1617
|
-
|
|
1776
|
+
var css$P = {"root":"_6plSLi","multiline":"trt2YH","vertical-padding-24":"l-TTMg","vertical-padding-30":"BtAzcu","vertical-padding-36":"oUhr-u","vertical-padding-42":"u50Mdt","vertical-padding-48":"dSAmDZ","text":"R-ernm","verticalPadding24":"l-TTMg","verticalPadding30":"BtAzcu","verticalPadding36":"oUhr-u","verticalPadding42":"u50Mdt","verticalPadding48":"dSAmDZ"};
|
|
1777
|
+
|
|
1618
1778
|
function PickerItem(props) {
|
|
1619
1779
|
var _a;
|
|
1620
1780
|
const { highlightSearchMatches = true, size, avatarUrl, isLoading, isDisabled, icon, cx, } = props;
|
|
1621
|
-
const itemSize = size ||
|
|
1781
|
+
const itemSize = size || settings.sizes.defaults.pickerItem;
|
|
1622
1782
|
const isMultiline = !!(props.title && props.subtitle);
|
|
1623
1783
|
const { search } = (_a = props.dataSourceState) !== null && _a !== void 0 ? _a : {};
|
|
1624
1784
|
const title = highlightSearchMatches ? getHighlightedSearchMatches(props.title, search) : props.title;
|
|
@@ -1632,7 +1792,7 @@ function PickerItem(props) {
|
|
|
1632
1792
|
subtitle && (React.createElement(Text, { size: itemSize, color: isDisabled ? 'disabled' : 'secondary', cx: css$P.text }, isLoading ? React.createElement(TextPlaceholder, { wordsCount: 2 }) : subtitle))))));
|
|
1633
1793
|
}
|
|
1634
1794
|
function getAvatarSize(size, isMultiline) {
|
|
1635
|
-
return isMultiline ?
|
|
1795
|
+
return settings.sizes.pickerItem.avatar[isMultiline ? 'multiline' : 'rest'][size];
|
|
1636
1796
|
}
|
|
1637
1797
|
|
|
1638
1798
|
function PickerModal(props) {
|
|
@@ -1681,34 +1841,18 @@ function PickerModal(props) {
|
|
|
1681
1841
|
listView: view,
|
|
1682
1842
|
rows: dataRows,
|
|
1683
1843
|
searchPosition: 'body',
|
|
1684
|
-
}, e), autoFocus: true, placeholder: i18n.pickerModal.searchPlaceholder }))),
|
|
1844
|
+
}, e), autoFocus: true, placeholder: i18n.pickerModal.searchPlaceholder, rawProps: { dir: 'auto' } }))),
|
|
1685
1845
|
!isSingleSelect() && (React__default.createElement(Switch, Object.assign({ cx: css$Q.switch, size: "18" }, getFooterProps().showSelected, { isDisabled: view.getSelectedRowsCount() < 1, label: "Show only selected" }))),
|
|
1686
1846
|
props.renderFilter && React__default.createElement(FlexCell, { grow: 2 }, props.renderFilter(dataSourceStateLens.prop('filter').toProps()))),
|
|
1687
1847
|
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
1848
|
React__default.createElement(ModalFooter, { padding: "24", vPadding: "24" }, props.renderFooter ? props.renderFooter(getFooterProps()) : renderFooter()))));
|
|
1689
1849
|
}
|
|
1690
1850
|
|
|
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
|
-
};
|
|
1851
|
+
var css$O = {"tooltip":"_2L4mKc"};
|
|
1852
|
+
|
|
1709
1853
|
const PickerTogglerTag = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
1710
1854
|
var _a;
|
|
1711
|
-
const tagProps = Object.assign(Object.assign({}, props), { tabIndex: -1, size:
|
|
1855
|
+
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
1856
|
if (props.isCollapsed) {
|
|
1713
1857
|
const collapsedRows = props.collapsedRows.map((row) => { var _a; return (_a = row.value) === null || _a === void 0 ? void 0 : _a.name; }).join(', ');
|
|
1714
1858
|
return (React.createElement(Tooltip, { key: "selected", content: collapsedRows, closeDelay: 150, closeOnMouseLeave: "boundary", cx: css$O.tooltip },
|
|
@@ -1719,20 +1863,20 @@ const PickerTogglerTag = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
1719
1863
|
}
|
|
1720
1864
|
});
|
|
1721
1865
|
|
|
1722
|
-
var css$N = {"uui-typography":"
|
|
1866
|
+
var css$N = {"uui-typography":"-Q61zN","hero-header":"cRxYIW","promo-header":"DUuVo3","uui-critical":"Ii0hMt","uui-info":"_26tfB1","uui-success":"Avcc7B","uui-warning":"jIqYaG","uui-highlight":"-XMVjm","uui-typography-size-12":"ieLg6D","uui-typography-size-14":"sDhxdp","uui-typography-size-16":"-LqHdJ","root":"XbgBlb","mode-form":"xHEkiu","mode-cell":"JNslCa","mode-inline":"CssQFI","uuiTypography":"-Q61zN","heroHeader":"cRxYIW","promoHeader":"DUuVo3","uuiCritical":"Ii0hMt","uuiInfo":"_26tfB1","uuiSuccess":"Avcc7B","uuiWarning":"jIqYaG","uuiHighlight":"-XMVjm","uuiTypographySize12":"ieLg6D","uuiTypographySize14":"sDhxdp","uuiTypographySize16":"-LqHdJ","modeForm":"xHEkiu","modeCell":"JNslCa","modeInline":"CssQFI"};
|
|
1723
1867
|
|
|
1724
|
-
const defaultSize$1 = '36';
|
|
1725
1868
|
const defaultMode$1 = EditMode.FORM;
|
|
1726
1869
|
function applyPickerTogglerMods(mods) {
|
|
1727
1870
|
return [
|
|
1728
1871
|
css$N.root,
|
|
1729
|
-
|
|
1872
|
+
'uui-picker_toggler',
|
|
1873
|
+
`uui-size-${mods.size || settings.sizes.defaults.pickerToggler}`,
|
|
1730
1874
|
css$N['mode-' + (mods.mode || defaultMode$1)],
|
|
1731
1875
|
];
|
|
1732
1876
|
}
|
|
1733
1877
|
function PickerTogglerComponent(props, ref) {
|
|
1734
1878
|
const renderItem = (itemProps) => {
|
|
1735
|
-
const itemPropsWithSize = Object.assign(Object.assign({}, itemProps), { size: props.size });
|
|
1879
|
+
const itemPropsWithSize = Object.assign(Object.assign({}, itemProps), { size: (props.size || settings.sizes.defaults.pickerToggler) });
|
|
1736
1880
|
if (!!props.renderItem) {
|
|
1737
1881
|
return props.renderItem(itemPropsWithSize);
|
|
1738
1882
|
}
|
|
@@ -1742,8 +1886,6 @@ function PickerTogglerComponent(props, ref) {
|
|
|
1742
1886
|
}
|
|
1743
1887
|
const PickerToggler = /* @__PURE__ */React.forwardRef(PickerTogglerComponent);
|
|
1744
1888
|
|
|
1745
|
-
const pickerHeight$1 = 300;
|
|
1746
|
-
const pickerWidth = 360;
|
|
1747
1889
|
function PickerInputComponent(_a, ref) {
|
|
1748
1890
|
var { highlightSearchMatches = true } = _a, props = __rest(_a, ["highlightSearchMatches"]);
|
|
1749
1891
|
const toggleModalOpening = () => {
|
|
@@ -1780,9 +1922,9 @@ function PickerInputComponent(_a, ref) {
|
|
|
1780
1922
|
};
|
|
1781
1923
|
const getRowSize = () => {
|
|
1782
1924
|
if (isMobile()) {
|
|
1783
|
-
return
|
|
1925
|
+
return settings.sizes.pickerInput.rowSize.mobile;
|
|
1784
1926
|
}
|
|
1785
|
-
return props.editMode === 'modal' ?
|
|
1927
|
+
return props.editMode === 'modal' ? settings.sizes.pickerInput.rowSize.modal : props.size;
|
|
1786
1928
|
};
|
|
1787
1929
|
const getSubtitle = ({ path }, { search }) => {
|
|
1788
1930
|
if (!search)
|
|
@@ -1797,12 +1939,12 @@ function PickerInputComponent(_a, ref) {
|
|
|
1797
1939
|
return (React__default.createElement(PickerItem, Object.assign({ title: getName(item), size: getRowSize(), dataSourceState: dsState, highlightSearchMatches: highlightSearchMatches }, (flattenSearchResults ? { subtitle: getSubtitle(rowProps, dataSourceState) } : {}), rowProps)));
|
|
1798
1940
|
};
|
|
1799
1941
|
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' ?
|
|
1942
|
+
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
1943
|
};
|
|
1802
1944
|
const renderBody = (bodyProps, rows) => {
|
|
1803
1945
|
const renderedDataRows = rows.map((row) => renderRow(row, dataSourceState));
|
|
1804
|
-
const bodyHeight = isMobile() ? document.documentElement.clientHeight : props.dropdownHeight ||
|
|
1805
|
-
const minBodyWidth = props.minBodyWidth ||
|
|
1946
|
+
const bodyHeight = isMobile() ? document.documentElement.clientHeight : props.dropdownHeight || settings.sizes.pickerInput.height;
|
|
1947
|
+
const minBodyWidth = props.minBodyWidth || settings.sizes.pickerInput.width;
|
|
1806
1948
|
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
1949
|
React__default.createElement(DataPickerBody, Object.assign({}, bodyProps, { rows: renderedDataRows, maxHeight: bodyHeight, searchSize: props.size, editMode: "dropdown", selectionMode: props.selectionMode, renderNotFound: props.renderNotFound
|
|
1808
1950
|
? () => props.renderNotFound({
|
|
@@ -1821,7 +1963,7 @@ function PickerInputComponent(_a, ref) {
|
|
|
1821
1963
|
}
|
|
1822
1964
|
const PickerInput = /* @__PURE__ */React__default.forwardRef(PickerInputComponent);
|
|
1823
1965
|
|
|
1824
|
-
var css$M = {"row":"
|
|
1966
|
+
var css$M = {"row":"PxhG4T"};
|
|
1825
1967
|
|
|
1826
1968
|
function PickerListItem(props) {
|
|
1827
1969
|
var _a;
|
|
@@ -1842,7 +1984,7 @@ function PickerListItem(props) {
|
|
|
1842
1984
|
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
1985
|
}
|
|
1844
1986
|
|
|
1845
|
-
var css$L = {"root":"
|
|
1987
|
+
var css$L = {"root":"rCA8z7"};
|
|
1846
1988
|
|
|
1847
1989
|
function PickerList(props) {
|
|
1848
1990
|
const { context, view, onlySelectedView, getName, getEntityName, appendLastSelected, getSelectedIdsArray, buildRowsList, getMaxDefaultItems, dataSourceState, getModalTogglerCaption, } = usePickerList(props);
|
|
@@ -1882,7 +2024,7 @@ const UUI_FILTERS_PANEL_ADD_BUTTON_BODY = 'uui-filters-panel-add-button-body';
|
|
|
1882
2024
|
const UUI_FILTERS_PANEL_ITEM_BODY = 'uui-filters-panel-item-body';
|
|
1883
2025
|
const UUI_FILTERS_PANEL_ITEM_TOGGLER = 'uui-filters-panel-item-toggler';
|
|
1884
2026
|
|
|
1885
|
-
var css$K = {"uui-typography":"
|
|
2027
|
+
var css$K = {"uui-typography":"_3TlYGr","hero-header":"WHJZ5B","promo-header":"_0N8W-g","uui-critical":"_3geZyG","uui-info":"Sl4uHf","uui-success":"JkGacq","uui-warning":"TGl6F4","uui-highlight":"MgCNrl","uui-typography-size-12":"FvyhcU","uui-typography-size-14":"-XJFYg","uui-typography-size-16":"BCXcXX","root":"iYFnzl","title-wrapper":"WS3ZBk","title":"gzoudC","text-wrapper":"FNLG6-","selection":"bIAQr2","postfix":"_17O2vI","selected":"LuANrS","uuiTypography":"_3TlYGr","heroHeader":"WHJZ5B","promoHeader":"_0N8W-g","uuiCritical":"_3geZyG","uuiInfo":"Sl4uHf","uuiSuccess":"JkGacq","uuiWarning":"TGl6F4","uuiHighlight":"MgCNrl","uuiTypographySize12":"FvyhcU","uuiTypographySize14":"-XJFYg","uuiTypographySize16":"BCXcXX","titleWrapper":"WS3ZBk","textWrapper":"FNLG6-"};
|
|
1886
2028
|
|
|
1887
2029
|
const defaultSize = '36';
|
|
1888
2030
|
const FilterPanelItemToggler = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
@@ -1949,7 +2091,7 @@ function FilterPickerBody(_a) {
|
|
|
1949
2091
|
};
|
|
1950
2092
|
const renderItem = (item, rowProps, dsState) => {
|
|
1951
2093
|
const { flattenSearchResults } = view.getConfig();
|
|
1952
|
-
return (React.createElement(PickerItem, Object.assign({ title: getName(item), highlightSearchMatches: highlightSearchMatches }, (flattenSearchResults ? { subtitle: getSubtitle(rowProps, dsState) } : {}), { dataSourceState: dsState, size:
|
|
2094
|
+
return (React.createElement(PickerItem, Object.assign({ title: getName(item), highlightSearchMatches: highlightSearchMatches }, (flattenSearchResults ? { subtitle: getSubtitle(rowProps, dsState) } : {}), { dataSourceState: dsState, size: settings.sizes.filterPickerBody.pickerItem }, rowProps)));
|
|
1953
2095
|
};
|
|
1954
2096
|
const onSelect = (row) => {
|
|
1955
2097
|
handleDataSourceValueChange((currentDataSourceState) => (Object.assign(Object.assign({}, currentDataSourceState), { search: '', selectedId: row.id })));
|
|
@@ -1958,24 +2100,24 @@ function FilterPickerBody(_a) {
|
|
|
1958
2100
|
if (rowProps.isSelectable && isSingleSelect() && props.editMode !== 'modal') {
|
|
1959
2101
|
rowProps.onSelect = onSelect;
|
|
1960
2102
|
}
|
|
1961
|
-
return props.renderRow ? (props.renderRow(rowProps, dataSourceState)) : (React.createElement(DataPickerRow, Object.assign({}, rowProps, { key: rowProps.rowKey, size:
|
|
2103
|
+
return props.renderRow ? (props.renderRow(rowProps, dataSourceState)) : (React.createElement(DataPickerRow, Object.assign({}, rowProps, { key: rowProps.rowKey, size: settings.sizes.filterPickerBody.dataPickerRow, padding: "12", renderItem: (item, itemProps) => renderItem(item, itemProps, dsState) })));
|
|
1962
2104
|
};
|
|
1963
2105
|
const renderFooter = () => {
|
|
1964
|
-
return React.createElement(DataPickerFooter, Object.assign({}, getFooterProps(), { size:
|
|
2106
|
+
return React.createElement(DataPickerFooter, Object.assign({}, getFooterProps(), { size: settings.sizes.filterPickerBody.dataPickerFooter }));
|
|
1965
2107
|
};
|
|
1966
2108
|
const renderBody = (bodyProps, rows) => {
|
|
1967
2109
|
const renderedDataRows = rows.map((props) => renderRow(props, dataSourceState));
|
|
1968
2110
|
const maxHeight = isMobile() ? document.documentElement.clientHeight : props.maxBodyHeight || pickerHeight;
|
|
1969
2111
|
const maxWidth = isMobile() ? undefined : 360;
|
|
1970
2112
|
return (React.createElement(React.Fragment, null,
|
|
1971
|
-
React.createElement(DataPickerBody, Object.assign({}, bodyProps, { selectionMode: props.selectionMode, rows: renderedDataRows, maxHeight: maxHeight, maxWidth: maxWidth, searchSize:
|
|
2113
|
+
React.createElement(DataPickerBody, Object.assign({}, bodyProps, { selectionMode: props.selectionMode, rows: renderedDataRows, maxHeight: maxHeight, maxWidth: maxWidth, searchSize: settings.sizes.filterPickerBody.searchSize, editMode: "dropdown" })),
|
|
1972
2114
|
renderFooter()));
|
|
1973
2115
|
};
|
|
1974
2116
|
const rows = getRows();
|
|
1975
2117
|
return renderBody(Object.assign(Object.assign(Object.assign({}, getPickerBodyProps(rows)), getListProps()), { showSearch: (_b = props.showSearch) !== null && _b !== void 0 ? _b : true }), rows);
|
|
1976
2118
|
}
|
|
1977
2119
|
|
|
1978
|
-
var css$J = {"container":"
|
|
2120
|
+
var css$J = {"container":"ajmk49"};
|
|
1979
2121
|
|
|
1980
2122
|
const defaultFormat = 'MMM D, YYYY';
|
|
1981
2123
|
const valueFormat = 'YYYY-MM-DD';
|
|
@@ -2184,14 +2326,14 @@ function DatePickerHeader({ navIconLeft, navIconRight, value: { month, view }, o
|
|
|
2184
2326
|
React.createElement(Button, { icon: navIconRight || ForwardRef$u, color: "secondary", fill: "ghost", cx: uuiHeader.navIconRight, onClick: () => onRightNavigationArrow(), isDisabled: disableNext }))));
|
|
2185
2327
|
}
|
|
2186
2328
|
|
|
2187
|
-
var css$I = {"uui-typography":"
|
|
2329
|
+
var css$I = {"uui-typography":"l-4QT3","hero-header":"bfYUSo","promo-header":"tsSmKC","uui-critical":"Attoil","uui-info":"uQXTkO","uui-success":"NR5a65","uui-warning":"_33fWpc","uui-highlight":"-Q9guB","uui-typography-size-12":"UPRsc7","uui-typography-size-14":"rFlvkk","uui-typography-size-16":"_454r6J","root":"B9Ziuc","uuiTypography":"l-4QT3","heroHeader":"bfYUSo","promoHeader":"tsSmKC","uuiCritical":"Attoil","uuiInfo":"uQXTkO","uuiSuccess":"NR5a65","uuiWarning":"_33fWpc","uuiHighlight":"-Q9guB","uuiTypographySize12":"UPRsc7","uuiTypographySize14":"rFlvkk","uuiTypographySize16":"_454r6J"};
|
|
2188
2330
|
|
|
2189
2331
|
function applyDateSelectionMods() {
|
|
2190
2332
|
return [css$I.root];
|
|
2191
2333
|
}
|
|
2192
2334
|
const Calendar = /* @__PURE__ */withMods(Calendar$1, applyDateSelectionMods);
|
|
2193
2335
|
|
|
2194
|
-
var css$H = {"uui-typography":"
|
|
2336
|
+
var css$H = {"uui-typography":"FTnaO1","hero-header":"hXVfe0","promo-header":"e5MhkM","uui-critical":"lMZLgH","uui-info":"J1cKl1","uui-success":"mo-UX1","uui-warning":"_6l8K6Y","uui-highlight":"-rhCKF","uui-typography-size-12":"S3CQEQ","uui-typography-size-14":"_3Red7A","uui-typography-size-16":"_0bRJn9","root":"KHoIwI","uuiTypography":"FTnaO1","heroHeader":"hXVfe0","promoHeader":"e5MhkM","uuiCritical":"lMZLgH","uuiInfo":"J1cKl1","uuiSuccess":"mo-UX1","uuiWarning":"_6l8K6Y","uuiHighlight":"-rhCKF","uuiTypographySize12":"S3CQEQ","uuiTypographySize14":"_3Red7A","uuiTypographySize16":"_0bRJn9"};
|
|
2195
2337
|
|
|
2196
2338
|
const uuiDatePickerBody = {
|
|
2197
2339
|
wrapper: 'uui-datepickerBody-wrapper',
|
|
@@ -2279,7 +2421,7 @@ function FilterDatePickerBody(props) {
|
|
|
2279
2421
|
} })))));
|
|
2280
2422
|
}
|
|
2281
2423
|
|
|
2282
|
-
var css$G = {"uui-typography":"
|
|
2424
|
+
var css$G = {"uui-typography":"FOF7cC","hero-header":"LUICKP","promo-header":"oT7fOi","uui-critical":"GbcPNE","uui-info":"H0nA1z","uui-success":"iQNQE9","uui-warning":"r0moKQ","uui-highlight":"g9vAm1","uui-typography-size-12":"_6LsSwi","uui-typography-size-14":"pdKAlp","uui-typography-size-16":"_29O7Ru","dropdown-container":"ohfYAn","date-input":"iI-kXw","date-input-group":"GgCdzf","separator":"BzGhM4","mode-form":"NSZPr6","mode-cell":"_2uz-EG","uuiTypography":"FOF7cC","heroHeader":"LUICKP","promoHeader":"oT7fOi","uuiCritical":"GbcPNE","uuiInfo":"H0nA1z","uuiSuccess":"iQNQE9","uuiWarning":"r0moKQ","uuiHighlight":"g9vAm1","uuiTypographySize12":"_6LsSwi","uuiTypographySize14":"pdKAlp","uuiTypographySize16":"_29O7Ru","dropdownContainer":"ohfYAn","dateInput":"iI-kXw","dateInputGroup":"GgCdzf","modeForm":"NSZPr6","modeCell":"_2uz-EG"};
|
|
2283
2425
|
|
|
2284
2426
|
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
2427
|
const [inputValue, setInputValue] = useState(toCustomDateRangeFormat(value, format));
|
|
@@ -2305,14 +2447,14 @@ const RangeDatePickerInput = /* @__PURE__ */forwardRef(({ isDisabled, isInvalid,
|
|
|
2305
2447
|
}
|
|
2306
2448
|
};
|
|
2307
2449
|
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) => {
|
|
2450
|
+
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
2451
|
if (!isDisabled) {
|
|
2310
2452
|
onClick === null || onClick === void 0 ? void 0 : onClick(event);
|
|
2311
2453
|
}
|
|
2312
2454
|
}, onBlur: onBlur },
|
|
2313
|
-
React__default.createElement(TextInput, { icon: systemIcons.calendar, cx: cx$1(css$G.dateInput,
|
|
2455
|
+
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
2456
|
React__default.createElement("div", { className: css$G.separator }),
|
|
2315
|
-
React__default.createElement(TextInput, { cx: cx$1(css$G.dateInput,
|
|
2457
|
+
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
2458
|
onValueChange(defaultRangeValue);
|
|
2317
2459
|
} : 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
2460
|
});
|
|
@@ -2370,7 +2512,7 @@ function FilterRangeDatePickerBody(props) {
|
|
|
2370
2512
|
React__default.createElement(LinkButton, { isDisabled: !value.from && !value.to, caption: i18n.pickerModal.clearAllButton, onClick: () => onValueChange(defaultRangeValue) })))));
|
|
2371
2513
|
}
|
|
2372
2514
|
|
|
2373
|
-
var css$F = {"container":"
|
|
2515
|
+
var css$F = {"container":"ZRV5uX"};
|
|
2374
2516
|
|
|
2375
2517
|
function FilterNumericBody(props) {
|
|
2376
2518
|
var _a, _b;
|
|
@@ -2470,7 +2612,7 @@ var SvgActionDeleteForeverFill = function SvgActionDeleteForeverFill(props, ref)
|
|
|
2470
2612
|
};
|
|
2471
2613
|
var ForwardRef$r = /*#__PURE__*/forwardRef(SvgActionDeleteForeverFill);
|
|
2472
2614
|
|
|
2473
|
-
var css$E = {"uui-typography":"
|
|
2615
|
+
var css$E = {"uui-typography":"_-2YgRX","hero-header":"SPlct2","promo-header":"zE6WCx","uui-critical":"fPvS8H","uui-info":"_32ZuQi","uui-success":"GnUawe","uui-warning":"IP8PNT","uui-highlight":"aDIH6L","uui-typography-size-12":"SCVvHo","uui-typography-size-14":"PTz88B","uui-typography-size-16":"_6GdzX9","header":"DmCeqw","removeButton":"o49OZI","with-search":"AYX4tT","uuiTypography":"_-2YgRX","heroHeader":"SPlct2","promoHeader":"zE6WCx","uuiCritical":"fPvS8H","uuiInfo":"_32ZuQi","uuiSuccess":"GnUawe","uuiWarning":"IP8PNT","uuiHighlight":"aDIH6L","uuiTypographySize12":"SCVvHo","uuiTypographySize14":"PTz88B","uuiTypographySize16":"_6GdzX9","withSearch":"AYX4tT"};
|
|
2474
2616
|
|
|
2475
2617
|
function useView(props, value) {
|
|
2476
2618
|
const forceUpdate = useForceUpdate();
|
|
@@ -2758,8 +2900,7 @@ function FiltersToolbarImpl(props) {
|
|
|
2758
2900
|
return orderBy(selectedFilters, (f) => { var _a, _b; return (_b = (_a = tableState.filtersConfig) === null || _a === void 0 ? void 0 : _a[f.field]) === null || _b === void 0 ? void 0 : _b.order; });
|
|
2759
2901
|
}, [filters, tableState.filtersConfig]);
|
|
2760
2902
|
const renderAddFilterToggler = useCallback((togglerProps) => {
|
|
2761
|
-
|
|
2762
|
-
return (React__default.createElement(Button, { size: (_a = props.size) !== null && _a !== void 0 ? _a : '36', onClick: togglerProps.onClick, ref: togglerProps.ref, caption: i18n.filterToolbar.addCaption, icon: ForwardRef$q, iconPosition: "left", fill: "ghost", color: "primary", cx: UUI_FILTERS_PANEL_ADD_BUTTON }));
|
|
2903
|
+
return (React__default.createElement(Button, { size: props.size, onClick: togglerProps.onClick, ref: togglerProps.ref, caption: i18n.filterToolbar.addCaption, icon: ForwardRef$q, iconPosition: "left", fill: "ghost", color: "primary", cx: UUI_FILTERS_PANEL_ADD_BUTTON }));
|
|
2763
2904
|
}, []);
|
|
2764
2905
|
const getRowOptions = useCallback((item) => ({
|
|
2765
2906
|
isDisabled: item.isAlwaysVisible,
|
|
@@ -2792,7 +2933,7 @@ function FiltersToolbarImpl(props) {
|
|
|
2792
2933
|
}
|
|
2793
2934
|
const FiltersPanel = /* @__PURE__ */React__default.memo(FiltersToolbarImpl);
|
|
2794
2935
|
|
|
2795
|
-
var css$D = {"divider":"
|
|
2936
|
+
var css$D = {"divider":"GvqtQn","dropdownDeleteIcon":"_7JDToK","presetsWrapper":"_0heZFq","addPresetContainer":"homTNo","dropContainer":"_1KPCgB"};
|
|
2796
2937
|
|
|
2797
2938
|
var _path$p;
|
|
2798
2939
|
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); }
|
|
@@ -2920,7 +3061,7 @@ var SvgActionDeleteOutline = function SvgActionDeleteOutline(props, ref) {
|
|
|
2920
3061
|
};
|
|
2921
3062
|
var ForwardRef$i = /*#__PURE__*/forwardRef(SvgActionDeleteOutline);
|
|
2922
3063
|
|
|
2923
|
-
var css$C = {"delete-button":"
|
|
3064
|
+
var css$C = {"delete-button":"zF3qpi","tab-button":"-aEbrH","targetOpen":"gyk-RJ","deleteButton":"zF3qpi","tabButton":"-aEbrH"};
|
|
2924
3065
|
|
|
2925
3066
|
function PresetActionsDropdown(props) {
|
|
2926
3067
|
const { uuiNotifications } = useUuiContext();
|
|
@@ -2978,7 +3119,7 @@ function PresetActionsDropdown(props) {
|
|
|
2978
3119
|
return (React__default.createElement(Dropdown, { renderBody: renderBody, renderTarget: renderTarget, placement: "bottom-end", modifiers: [{ name: 'offset', options: { offset: [0, 22] } }] }));
|
|
2979
3120
|
}
|
|
2980
3121
|
|
|
2981
|
-
var css$B = {"preset-input-cell":"
|
|
3122
|
+
var css$B = {"preset-input-cell":"nn3Ce5","preset-input":"tX5e7U","presetInputCell":"nn3Ce5","presetInput":"tX5e7U"};
|
|
2982
3123
|
|
|
2983
3124
|
const UUI_PRESETS_PANEL_ADD_BUTTON = 'uui-presets-panel-add-button';
|
|
2984
3125
|
const UUI_PRESETS_PANEL_MORE_BUTTON = 'uui-presets-panel-more-button';
|
|
@@ -3011,7 +3152,7 @@ function PresetInput(props) {
|
|
|
3011
3152
|
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
3153
|
}
|
|
3013
3154
|
|
|
3014
|
-
var css$A = {"preset":"
|
|
3155
|
+
var css$A = {"preset":"-gukT9","activePreset":"c-nxV0"};
|
|
3015
3156
|
|
|
3016
3157
|
function Preset(props) {
|
|
3017
3158
|
const [isRenamePreset, setIsRenamePreset] = useState(false);
|
|
@@ -3113,25 +3254,16 @@ const useColumnsWithFilters = (initialColumns, filters) => {
|
|
|
3113
3254
|
return columns;
|
|
3114
3255
|
};
|
|
3115
3256
|
|
|
3116
|
-
var css$z = {"line-height-12":"
|
|
3257
|
+
var css$z = {"line-height-12":"UaosY9","line-height-18":"yESbz3","line-height-24":"EWYR6a","line-height-30":"B-rq4o","font-size-10":"p2zbbr","font-size-12":"Ekl28H","font-size-14":"_7eyPpb","font-size-16":"ogKbW1","font-size-18":"zis9li","font-size-24":"BhQL1p","v-padding-2":"TTTcFo","v-padding-3":"G1fDXv","v-padding-5":"EZLy7V","v-padding-6":"BZpBfX","v-padding-8":"ijdgod","v-padding-9":"tXfJS4","v-padding-11":"htK8e8","v-padding-12":"iR-iGl","v-padding-14":"ZF1etr","v-padding-15":"_0K8pKw","v-padding-17":"SWy6UK","v-padding-18":"A7tZ0G","v-padding-23":"-lcRcX","v-padding-24":"u-g1IE","lineHeight12":"UaosY9","lineHeight18":"yESbz3","lineHeight24":"EWYR6a","lineHeight30":"B-rq4o","fontSize10":"p2zbbr","fontSize12":"Ekl28H","fontSize14":"_7eyPpb","fontSize16":"ogKbW1","fontSize18":"zis9li","fontSize24":"BhQL1p","vPadding2":"TTTcFo","vPadding3":"G1fDXv","vPadding5":"EZLy7V","vPadding6":"BZpBfX","vPadding8":"ijdgod","vPadding9":"tXfJS4","vPadding11":"htK8e8","vPadding12":"iR-iGl","vPadding14":"ZF1etr","vPadding15":"_0K8pKw","vPadding17":"SWy6UK","vPadding18":"A7tZ0G","vPadding23":"-lcRcX","vPadding24":"u-g1IE"};
|
|
3117
3258
|
|
|
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
3259
|
function getTextClasses(props, border) {
|
|
3128
3260
|
if (props.size === 'none') {
|
|
3129
3261
|
return [css$z['line-height-' + props.lineHeight], css$z['font-size-' + props.fontSize]];
|
|
3130
3262
|
}
|
|
3131
3263
|
const setting = {
|
|
3132
3264
|
size: props.size,
|
|
3133
|
-
lineHeight: props.lineHeight ||
|
|
3134
|
-
fontSize: props.fontSize ||
|
|
3265
|
+
lineHeight: props.lineHeight || settings.sizes.text[props.size].lineHeight,
|
|
3266
|
+
fontSize: props.fontSize || settings.sizes.text[props.size].fontSize,
|
|
3135
3267
|
};
|
|
3136
3268
|
const vPadding = (+setting.size - +setting.lineHeight - (border ? 2 : 0)) / 2;
|
|
3137
3269
|
return [
|
|
@@ -3139,11 +3271,11 @@ function getTextClasses(props, border) {
|
|
|
3139
3271
|
];
|
|
3140
3272
|
}
|
|
3141
3273
|
|
|
3142
|
-
var css$y = {"root":"
|
|
3274
|
+
var css$y = {"root":"II5XgO"};
|
|
3143
3275
|
|
|
3144
3276
|
function applyTextMods(mods) {
|
|
3145
3277
|
const textClasses = getTextClasses({
|
|
3146
|
-
size: mods.size ||
|
|
3278
|
+
size: mods.size || settings.sizes.defaults.text,
|
|
3147
3279
|
lineHeight: mods.lineHeight,
|
|
3148
3280
|
fontSize: mods.fontSize,
|
|
3149
3281
|
}, false);
|
|
@@ -3158,7 +3290,7 @@ function applyTextMods(mods) {
|
|
|
3158
3290
|
}
|
|
3159
3291
|
const Text = /* @__PURE__ */withMods(uuiComponents.Text, applyTextMods);
|
|
3160
3292
|
|
|
3161
|
-
var css$x = {"root":"
|
|
3293
|
+
var css$x = {"root":"_4Lr7eh","loading-word":"_29QUt7","animated-loading":"Pz4xvi","skeleton_loading":"UJteK6","loadingWord":"_29QUt7","animatedLoading":"Pz4xvi","skeletonLoading":"UJteK6"};
|
|
3162
3294
|
|
|
3163
3295
|
const TextPlaceholder = (props) => {
|
|
3164
3296
|
const pattern = ' ';
|
|
@@ -3177,7 +3309,7 @@ const TextPlaceholder = (props) => {
|
|
|
3177
3309
|
|
|
3178
3310
|
const RichTextView = /* @__PURE__ */withMods(uuiComponents.RichTextView, (mods) => ['uui-typography', `uui-typography-size-${mods.size || '14'}`]);
|
|
3179
3311
|
|
|
3180
|
-
var css$w = {"uui-typography":"
|
|
3312
|
+
var css$w = {"uui-typography":"_3DH2Vu","hero-header":"rIX-In","promo-header":"mBL29y","uui-critical":"jHUDOR","uui-info":"XDodtT","uui-success":"TTIJyZ","uui-warning":"DsybPa","uui-highlight":"h2IQay","uui-typography-size-12":"ogdbZo","uui-typography-size-14":"jl9uxE","uui-typography-size-16":"cs5b-s","root":"_5UQAAj","modal-blocker":"nns9QO","animateModalBlocker":"HN18qu","modal":"OoMJb8","modal-footer":"d59uA0","modal-header":"lj7oRW","uuiTypography":"_3DH2Vu","heroHeader":"rIX-In","promoHeader":"mBL29y","uuiCritical":"jHUDOR","uuiInfo":"XDodtT","uuiSuccess":"TTIJyZ","uuiWarning":"DsybPa","uuiHighlight":"h2IQay","uuiTypographySize12":"ogdbZo","uuiTypographySize14":"jl9uxE","uuiTypographySize16":"cs5b-s","modalBlocker":"nns9QO","modalFooter":"d59uA0","modalHeader":"lj7oRW"};
|
|
3181
3313
|
|
|
3182
3314
|
const ModalBlocker = /* @__PURE__ */withMods(ModalBlocker$1, () => [css$w.modalBlocker]);
|
|
3183
3315
|
const ModalWindow = /* @__PURE__ */withMods(ModalWindow$1, () => [css$w.root, css$w.modal], (props) => {
|
|
@@ -3196,19 +3328,19 @@ const ModalWindow = /* @__PURE__ */withMods(ModalWindow$1, () => [css$w.root, cs
|
|
|
3196
3328
|
maxHeight }),
|
|
3197
3329
|
};
|
|
3198
3330
|
});
|
|
3199
|
-
class ModalHeader extends
|
|
3331
|
+
class ModalHeader extends React__default.Component {
|
|
3200
3332
|
render() {
|
|
3201
|
-
return (
|
|
3202
|
-
this.props.title && (
|
|
3333
|
+
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 },
|
|
3334
|
+
this.props.title && (React__default.createElement(Text, { size: "48", fontSize: "18", fontWeight: "600" }, this.props.title)),
|
|
3203
3335
|
this.props.children,
|
|
3204
|
-
this.props.onClose &&
|
|
3205
|
-
this.props.onClose && (
|
|
3206
|
-
|
|
3336
|
+
this.props.onClose && React__default.createElement(FlexSpacer, null),
|
|
3337
|
+
this.props.onClose && (React__default.createElement(FlexCell, { shrink: 0, width: "auto" },
|
|
3338
|
+
React__default.createElement(IconButton, { rawProps: { 'aria-label': 'Close modal' }, icon: ForwardRef$Q, onClick: this.props.onClose })))));
|
|
3207
3339
|
}
|
|
3208
3340
|
}
|
|
3209
|
-
class ModalFooter extends
|
|
3341
|
+
class ModalFooter extends React__default.Component {
|
|
3210
3342
|
render() {
|
|
3211
|
-
return (
|
|
3343
|
+
return (React__default.createElement(FlexRow, { columnGap: this.props.columnGap || '12', cx: [
|
|
3212
3344
|
css$w.root,
|
|
3213
3345
|
css$w.modalFooter,
|
|
3214
3346
|
this.props.cx,
|
|
@@ -3231,7 +3363,7 @@ var SvgNotificationHelpFill = function SvgNotificationHelpFill(props, ref) {
|
|
|
3231
3363
|
};
|
|
3232
3364
|
var ForwardRef$h = /*#__PURE__*/forwardRef(SvgNotificationHelpFill);
|
|
3233
3365
|
|
|
3234
|
-
var css$v = {"uui-typography":"
|
|
3366
|
+
var css$v = {"uui-typography":"IwiFdr","hero-header":"m7YZCl","promo-header":"Mm1DWd","uui-critical":"Jb87-g","uui-info":"Hhiri-","uui-success":"W7Om7c","uui-warning":"e6ulZo","uui-highlight":"Ao7WMT","uui-typography-size-12":"f3ZgJf","uui-typography-size-14":"EoSa97","uui-typography-size-16":"UhQ-8n","root":"_0thES6","icon-wrapper":"_14l7qG","action-wrapper":"rDYbVa","action-link":"giDtjz","close-icon":"qhJ3fI","main-path":"NCnklW","content":"gDvddi","close-wrapper":"eCT1RA","notification-wrapper":"qwoCB3","clear-button":"wJg9HW","uuiTypography":"IwiFdr","heroHeader":"m7YZCl","promoHeader":"Mm1DWd","uuiCritical":"Jb87-g","uuiInfo":"Hhiri-","uuiSuccess":"W7Om7c","uuiWarning":"e6ulZo","uuiHighlight":"Ao7WMT","uuiTypographySize12":"f3ZgJf","uuiTypographySize14":"EoSa97","uuiTypographySize16":"UhQ-8n","iconWrapper":"_14l7qG","actionWrapper":"rDYbVa","actionLink":"giDtjz","closeIcon":"qhJ3fI","mainPath":"NCnklW","closeWrapper":"eCT1RA","notificationWrapper":"qwoCB3","clearButton":"wJg9HW"};
|
|
3235
3367
|
|
|
3236
3368
|
const NotificationCard = /* @__PURE__ */React__default.forwardRef((props, ref) => {
|
|
3237
3369
|
const notificationCardNode = React__default.useRef(null);
|
|
@@ -3307,6 +3439,64 @@ function useReliableForceUpdate() {
|
|
|
3307
3439
|
return red[1];
|
|
3308
3440
|
}
|
|
3309
3441
|
|
|
3442
|
+
var css$u = {"root":"G335hP","timepicker-input":"U6Vn1r","ltr-always":"HAs03H","timepickerInput":"U6Vn1r","ltrAlways":"HAs03H"};
|
|
3443
|
+
|
|
3444
|
+
const uuiTimePicker = {
|
|
3445
|
+
container: 'uui-timepicker-container',
|
|
3446
|
+
iconUp: 'uui-timepicker-icon-up',
|
|
3447
|
+
iconDown: 'uui-timepicker-icon-down',
|
|
3448
|
+
input: 'uui-timepicker-input',
|
|
3449
|
+
elementContainer: 'uui-timepicker-item',
|
|
3450
|
+
};
|
|
3451
|
+
const MIN_MINUTES = 0;
|
|
3452
|
+
const MAX_MINUTES = 59;
|
|
3453
|
+
const FORMAT_12H = 12;
|
|
3454
|
+
function TimePickerBody(props) {
|
|
3455
|
+
const MIN_HOURS = props.format === FORMAT_12H ? 1 : 0;
|
|
3456
|
+
const MAX_HOURS = props.format || FORMAT_12H;
|
|
3457
|
+
const setValue = (newTime) => {
|
|
3458
|
+
props.onValueChange({ hours: newTime.hour(), minutes: newTime.minute() });
|
|
3459
|
+
};
|
|
3460
|
+
const onHoursChange = (newHours) => {
|
|
3461
|
+
setValue(uuiDayjs.dayjs().set(props.value).hour(newHours));
|
|
3462
|
+
};
|
|
3463
|
+
const onMinutesChange = (newMinutes) => {
|
|
3464
|
+
setValue(uuiDayjs.dayjs().set(props.value).minute(newMinutes));
|
|
3465
|
+
};
|
|
3466
|
+
const onTimeTypeChange = () => {
|
|
3467
|
+
setValue(uuiDayjs.dayjs().set(props.value).add(12, 'h'));
|
|
3468
|
+
};
|
|
3469
|
+
const handleMinutesUpClick = () => {
|
|
3470
|
+
const minutesStep = props.minutesStep || 5;
|
|
3471
|
+
const value = uuiDayjs.dayjs().set(props.value);
|
|
3472
|
+
const minutesToAdd = minutesStep - (value.minute() % minutesStep);
|
|
3473
|
+
onMinutesChange(value.add(minutesToAdd, 'm').minute());
|
|
3474
|
+
};
|
|
3475
|
+
const handleMinutesDownClick = () => {
|
|
3476
|
+
const minutesStep = props.minutesStep || 5;
|
|
3477
|
+
const value = uuiDayjs.dayjs().set(props.value);
|
|
3478
|
+
const minutesToSubtract = value.minute() % minutesStep === 0 ? minutesStep : value.minute() % minutesStep;
|
|
3479
|
+
onMinutesChange(value.subtract(minutesToSubtract, 'm').minute());
|
|
3480
|
+
};
|
|
3481
|
+
return (React.createElement("div", Object.assign({ className: cx$1(css$u.root, uuiTimePicker.container, props.cx), ref: props.forwardedRef }, props.rawProps),
|
|
3482
|
+
React.createElement("div", { className: css$u.ltrAlways },
|
|
3483
|
+
React.createElement("div", { className: uuiTimePicker.elementContainer },
|
|
3484
|
+
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()) }),
|
|
3485
|
+
React.createElement(NumericInput$1, { cx: uuiTimePicker.input, onValueChange: onHoursChange, value: +(uuiDayjs.dayjs()
|
|
3486
|
+
.set(props.value)
|
|
3487
|
+
.format(MAX_HOURS === FORMAT_12H ? 'hh' : 'HH')), min: MIN_HOURS, max: MAX_HOURS }),
|
|
3488
|
+
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()) })),
|
|
3489
|
+
React.createElement("div", { className: uuiTimePicker.elementContainer },
|
|
3490
|
+
React.createElement(IconContainer, { size: 18, rawProps: { 'aria-label': 'Increment minutes' }, cx: uuiTimePicker.iconUp, icon: ForwardRef$P, onClick: handleMinutesUpClick }),
|
|
3491
|
+
React.createElement(NumericInput$1, { cx: uuiTimePicker.input, onValueChange: onMinutesChange, value: +uuiDayjs.dayjs().set(props.value).format('m'), min: MIN_MINUTES, max: MAX_MINUTES }),
|
|
3492
|
+
React.createElement(IconContainer, { size: 18, rawProps: { 'aria-label': 'Decrement minutes' }, cx: uuiTimePicker.iconDown, icon: ForwardRef$P, onClick: handleMinutesDownClick }))),
|
|
3493
|
+
MAX_HOURS === FORMAT_12H && (React.createElement("div", { className: uuiTimePicker.elementContainer },
|
|
3494
|
+
React.createElement(IconContainer, { size: 18, cx: uuiTimePicker.iconUp, icon: ForwardRef$P, onClick: onTimeTypeChange }),
|
|
3495
|
+
React.createElement(TextInput$1, { cx: uuiTimePicker.input, onValueChange: () => {
|
|
3496
|
+
}, isReadonly: true, value: uuiDayjs.dayjs().set(props.value).format('A') }),
|
|
3497
|
+
React.createElement(IconContainer, { size: 18, cx: uuiTimePicker.iconDown, icon: ForwardRef$P, onClick: onTimeTypeChange })))));
|
|
3498
|
+
}
|
|
3499
|
+
|
|
3310
3500
|
const getMeridian = (newValue, format) => {
|
|
3311
3501
|
if (format === 'hh:mm A') {
|
|
3312
3502
|
if (newValue.toLowerCase().includes('p') && newValue.toLowerCase().includes('a')) {
|
|
@@ -3353,8 +3543,6 @@ const formatTime = (hours, minutes, meridian, format) => {
|
|
|
3353
3543
|
return meridianResult ? time.concat(` ${meridianResult}`) : time;
|
|
3354
3544
|
};
|
|
3355
3545
|
|
|
3356
|
-
var css$u = {"root":"_1a2pjz","timepicker-input":"skdcbb","timepickerInput":"skdcbb"};
|
|
3357
|
-
|
|
3358
3546
|
const DEFAULT_MODE = EditMode.FORM;
|
|
3359
3547
|
const valueToTimeString = (value, format) => {
|
|
3360
3548
|
if (value === null)
|
|
@@ -3444,62 +3632,7 @@ function TimePicker(props) {
|
|
|
3444
3632
|
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
3633
|
}
|
|
3446
3634
|
|
|
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"};
|
|
3635
|
+
var css$t = {"root":"vroRlt"};
|
|
3503
3636
|
|
|
3504
3637
|
function applyInputAddonMods() {
|
|
3505
3638
|
return [
|
|
@@ -3508,7 +3641,7 @@ function applyInputAddonMods() {
|
|
|
3508
3641
|
}
|
|
3509
3642
|
const InputAddon = /* @__PURE__ */withMods(InputAddon$1, applyInputAddonMods);
|
|
3510
3643
|
|
|
3511
|
-
var css$s = {"root":"
|
|
3644
|
+
var css$s = {"root":"YXBt13"};
|
|
3512
3645
|
|
|
3513
3646
|
function applySliderMods() {
|
|
3514
3647
|
return [css$s.root, 'uui-color-neutral'];
|
|
@@ -3562,7 +3695,7 @@ function DatePickerComponent(props, ref) {
|
|
|
3562
3695
|
const allowClear = !props.disableClear && !!inputValue;
|
|
3563
3696
|
return (React__default.createElement(TextInput, Object.assign({}, renderProps, {
|
|
3564
3697
|
// 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 ||
|
|
3698
|
+
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
3699
|
setInputValue(v || '');
|
|
3567
3700
|
}, onCancel: allowClear ? () => {
|
|
3568
3701
|
if (!props.disableClear && !!inputValue) {
|
|
@@ -3591,14 +3724,14 @@ function DatePickerComponent(props, ref) {
|
|
|
3591
3724
|
}
|
|
3592
3725
|
const DatePicker = /* @__PURE__ */React__default.forwardRef(DatePickerComponent);
|
|
3593
3726
|
|
|
3594
|
-
var css$r = {"uui-typography":"
|
|
3727
|
+
var css$r = {"uui-typography":"JcbUiM","hero-header":"weTZAG","promo-header":"GsaB7N","uui-critical":"dvPBdh","uui-info":"_1y-naF","uui-success":"_8Z90q7","uui-warning":"_4R7ZW4","uui-highlight":"_-7KZqB","uui-typography-size-12":"-cdw4l","uui-typography-size-14":"_2ze0Jz","uui-typography-size-16":"OhX93z","root":"Z6U357","uuiTypography":"JcbUiM","heroHeader":"weTZAG","promoHeader":"GsaB7N","uuiCritical":"dvPBdh","uuiInfo":"_1y-naF","uuiSuccess":"_8Z90q7","uuiWarning":"_4R7ZW4","uuiHighlight":"_-7KZqB","uuiTypographySize12":"-cdw4l","uuiTypographySize14":"_2ze0Jz","uuiTypographySize16":"OhX93z"};
|
|
3595
3728
|
|
|
3596
3729
|
function applyCalendarPresetsMods() {
|
|
3597
3730
|
return [css$r.root];
|
|
3598
3731
|
}
|
|
3599
3732
|
const CalendarPresets = /* @__PURE__ */withMods(CalendarPresets$1, applyCalendarPresetsMods, () => ({}));
|
|
3600
3733
|
|
|
3601
|
-
var css$q = {"uui-typography":"
|
|
3734
|
+
var css$q = {"uui-typography":"_9LwvVG","hero-header":"ufknGm","promo-header":"_4hqgAz","uui-critical":"fkpNp-","uui-info":"Ai4Da4","uui-success":"_3bV472","uui-warning":"s7xK14","uui-highlight":"X7ktr8","uui-typography-size-12":"eOfCtq","uui-typography-size-14":"WdE57w","uui-typography-size-16":"M1ru2B","root":"OOYaY-","container":"P6vO6D","day-selection":"a4CILI","from-picker":"v2gZXR","to-picker":"VrV4sL","bodes-wrapper":"zGSq1i","blocker":"XWLdSe","uuiTypography":"_9LwvVG","heroHeader":"ufknGm","promoHeader":"_4hqgAz","uuiCritical":"fkpNp-","uuiInfo":"Ai4Da4","uuiSuccess":"_3bV472","uuiWarning":"s7xK14","uuiHighlight":"X7ktr8","uuiTypographySize12":"eOfCtq","uuiTypographySize14":"WdE57w","uuiTypographySize16":"M1ru2B","daySelection":"a4CILI","fromPicker":"v2gZXR","toPicker":"VrV4sL","bodesWrapper":"zGSq1i"};
|
|
3602
3735
|
|
|
3603
3736
|
const uuiRangeDatePickerBody = {
|
|
3604
3737
|
inRange: 'uui-range-datepicker-in-range',
|
|
@@ -3842,7 +3975,7 @@ function RangeDatePickerComponent(props, ref) {
|
|
|
3842
3975
|
}
|
|
3843
3976
|
const RangeDatePicker = /* @__PURE__ */React__default.forwardRef(RangeDatePickerComponent);
|
|
3844
3977
|
|
|
3845
|
-
var css$p = {"root":"
|
|
3978
|
+
var css$p = {"root":"RM9R44","blocker":"_1L8Uq-","marker":"_4sQ2wh","top":"IejB3A","bottom":"_0iLSc4","left":"_34jcDg","right":"YJRjck","inside":"e29U-g"};
|
|
3846
3979
|
|
|
3847
3980
|
function DropMarker(props) {
|
|
3848
3981
|
return props.isDndInProgress
|
|
@@ -3857,12 +3990,12 @@ function DropMarker(props) {
|
|
|
3857
3990
|
: null;
|
|
3858
3991
|
}
|
|
3859
3992
|
|
|
3860
|
-
var css$o = {"uui-typography":"
|
|
3993
|
+
var css$o = {"uui-typography":"h0-j-9","hero-header":"BCV7uj","promo-header":"R1zQpZ","uui-critical":"I-Hv8Q","uui-info":"b5-42j","uui-success":"_4JI6nS","uui-warning":"nPS-rr","uui-highlight":"YGYepi","uui-typography-size-12":"OObUXp","uui-typography-size-14":"y4Owr9","uui-typography-size-16":"ngP3EG","cell":"di-kv5","wrapper":"T4v908","align-widgets-top":"B45RPC","align-widgets-center":"OmjFWc","padding-6":"iGSMp-","padding-12":"x4VN9G","padding-24":"Ia2lgL","padding-left-12":"_471Cm4","padding-left-24":"e3rJq5","padding-right-12":"wES7dI","padding-right-24":"_7yJq0D","loading-cell":"aVsvPq","uuiTypography":"h0-j-9","heroHeader":"BCV7uj","promoHeader":"R1zQpZ","uuiCritical":"I-Hv8Q","uuiInfo":"b5-42j","uuiSuccess":"_4JI6nS","uuiWarning":"nPS-rr","uuiHighlight":"YGYepi","uuiTypographySize12":"OObUXp","uuiTypographySize14":"y4Owr9","uuiTypographySize16":"ngP3EG","alignWidgetsTop":"B45RPC","alignWidgetsCenter":"OmjFWc","padding6":"iGSMp-","padding12":"x4VN9G","padding24":"Ia2lgL","paddingLeft12":"_471Cm4","paddingLeft24":"e3rJq5","paddingRight12":"wES7dI","paddingRight24":"_7yJq0D","loadingCell":"aVsvPq"};
|
|
3861
3994
|
|
|
3862
|
-
function DataTableCell(
|
|
3863
|
-
props = Object.assign({},
|
|
3995
|
+
function DataTableCell(initialProps) {
|
|
3996
|
+
const props = Object.assign({}, initialProps);
|
|
3864
3997
|
if (props.isFirstColumn) {
|
|
3865
|
-
props.addons = React.createElement(DataRowAddons, Object.assign({}, props));
|
|
3998
|
+
props.addons = React.createElement(DataRowAddons, Object.assign({ size: props.size }, props));
|
|
3866
3999
|
}
|
|
3867
4000
|
props.renderPlaceholder = props.renderPlaceholder
|
|
3868
4001
|
|| (() => (
|
|
@@ -3895,7 +4028,7 @@ function DataTableCell(props) {
|
|
|
3895
4028
|
'data-table-cell',
|
|
3896
4029
|
props.cx,
|
|
3897
4030
|
css$o.cell,
|
|
3898
|
-
|
|
4031
|
+
'uui-size-' + (props.size || '36'),
|
|
3899
4032
|
css$o[`padding-${getPaddings().padding}`],
|
|
3900
4033
|
props.isFirstColumn && css$o[`padding-left-${getPaddings().sidePadding}`],
|
|
3901
4034
|
props.isLastColumn && css$o[`padding-right-${getPaddings().sidePadding}`],
|
|
@@ -3905,7 +4038,7 @@ function DataTableCell(props) {
|
|
|
3905
4038
|
return React.createElement(DataTableCell$1, Object.assign({}, props));
|
|
3906
4039
|
}
|
|
3907
4040
|
|
|
3908
|
-
var css$n = {"uui-typography":"
|
|
4041
|
+
var css$n = {"uui-typography":"vj79Sf","hero-header":"_4mbgbC","promo-header":"Mt0EvQ","uui-critical":"_2ygwSH","uui-info":"_13l-El","uui-success":"bPS7KW","uui-warning":"S23G53","uui-highlight":"SPEVJg","uui-typography-size-12":"gWYZnh","uui-typography-size-14":"k-MA3s","uui-typography-size-16":"yipM0P","root":"nge1rK","size-24":"_0r2qOb","size-30":"gEmJUd","size-36":"DGRpyr","size-48":"_4xOj-E","size-60":"GfqxDL","uuiTypography":"vj79Sf","heroHeader":"_4mbgbC","promoHeader":"Mt0EvQ","uuiCritical":"_2ygwSH","uuiInfo":"_13l-El","uuiSuccess":"bPS7KW","uuiWarning":"S23G53","uuiHighlight":"SPEVJg","uuiTypographySize12":"gWYZnh","uuiTypographySize14":"k-MA3s","uuiTypographySize16":"yipM0P","size24":"_0r2qOb","size30":"gEmJUd","size36":"DGRpyr","size48":"_4xOj-E","size60":"GfqxDL"};
|
|
3909
4042
|
|
|
3910
4043
|
// Here we define a single instance of the renderCell function to make DataTableRow#shouldComponentUpdate work.
|
|
3911
4044
|
// 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 +4054,7 @@ const DataTableRow = /* @__PURE__ */withMods(DataTableRow$1, ({ borderBottom = t
|
|
|
3921
4054
|
];
|
|
3922
4055
|
}, () => propsMods);
|
|
3923
4056
|
|
|
3924
|
-
var css$m = {"uui-typography":"
|
|
4057
|
+
var css$m = {"uui-typography":"YqSDBG","hero-header":"tlYUaF","promo-header":"xxFaJv","uui-critical":"N1EH54","uui-info":"FHi-kR","uui-success":"m1-AuT","uui-warning":"fGPvfB","uui-highlight":"gFd-oD","uui-typography-size-12":"FvqmBn","uui-typography-size-14":"eKE0au","uui-typography-size-16":"_4dhvCv","sorting-panel-container":"FdBWuI","sort-active":"upqV48","uuiTypography":"YqSDBG","heroHeader":"tlYUaF","promoHeader":"xxFaJv","uuiCritical":"N1EH54","uuiInfo":"FHi-kR","uuiSuccess":"m1-AuT","uuiWarning":"fGPvfB","uuiHighlight":"gFd-oD","uuiTypographySize12":"FvqmBn","uuiTypographySize14":"eKE0au","uuiTypographySize16":"_4dhvCv","sortingPanelContainer":"FdBWuI","sortActive":"upqV48"};
|
|
3925
4058
|
|
|
3926
4059
|
var _path$g;
|
|
3927
4060
|
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 +4184,7 @@ var SvgNavigationExpandAllOutline = function SvgNavigationExpandAllOutline(props
|
|
|
4051
4184
|
};
|
|
4052
4185
|
var ForwardRef$a = /*#__PURE__*/forwardRef(SvgNavigationExpandAllOutline);
|
|
4053
4186
|
|
|
4054
|
-
var css$l = {"uui-typography":"
|
|
4187
|
+
var css$l = {"uui-typography":"w8-1dZ","hero-header":"nddqVp","promo-header":"_55MWJQ","uui-critical":"WWB7br","uui-info":"JAR9PE","uui-success":"E5JIHL","uui-warning":"DAeRI4","uui-highlight":"Jf62KX","uui-typography-size-12":"_7vGl-l","uui-typography-size-14":"DXdPjY","uui-typography-size-16":"-MsAgG","cell":"Kffcvj","column-gap-12":"ZeM-tw","caption-wrapper":"S7S0At","column-gap-24":"_1wjuaa","first-column-12":"_1RuB-d","last-column-12":"LErGTt","first-column-24":"jRJknP","last-column-24":"Si0cyP","sort-icon":"_3CYlMr","dropdown-icon":"mwaVVX","infoIcon":"ryLSem","resizable":"_2wCH-8","size-24":"UYov4Z","size-30":"_5fPzlC","size-36":"Ko08PH","size-42":"PBdEYz","size-48":"MMekuP","padding-left-24":"_8SQh0h","padding-right-24":"_7Q-2t6","align-right":"-kYpR9","align-center":"_15ejrq","caption":"xEuZKq","checkbox":"SqUmsH","icon":"wNubqm","fold-all-icon":"XA7U8X","cell-tooltip":"lvUMKP","upper-case":"_6Egejg","font-size-14":"gw8H8l","resize-mark":"cpVp9-","resize-mark-6":"hdEfrQ","resize-mark-12":"K1tAuR","pinned-right":"e2eLfb","draggable":"l4BRy1","ghost":"N51WzQ","is-dragged-out":"_0XmGc5","dnd-marker-left":"pDe0l8","dnd-marker-right":"CzZQp6","cell-tooltip-wrapper":"_3mDszx","cell-tooltip-text":"GMbn9h","uuiTypography":"w8-1dZ","heroHeader":"nddqVp","promoHeader":"_55MWJQ","uuiCritical":"WWB7br","uuiInfo":"JAR9PE","uuiSuccess":"E5JIHL","uuiWarning":"DAeRI4","uuiHighlight":"Jf62KX","uuiTypographySize12":"_7vGl-l","uuiTypographySize14":"DXdPjY","uuiTypographySize16":"-MsAgG","columnGap12":"ZeM-tw","captionWrapper":"S7S0At","columnGap24":"_1wjuaa","firstColumn12":"_1RuB-d","lastColumn12":"LErGTt","firstColumn24":"jRJknP","lastColumn24":"Si0cyP","sortIcon":"_3CYlMr","dropdownIcon":"mwaVVX","size24":"UYov4Z","size30":"_5fPzlC","size36":"Ko08PH","size42":"PBdEYz","size48":"MMekuP","paddingLeft24":"_8SQh0h","paddingRight24":"_7Q-2t6","alignRight":"-kYpR9","alignCenter":"_15ejrq","foldAllIcon":"XA7U8X","cellTooltip":"lvUMKP","upperCase":"_6Egejg","fontSize14":"gw8H8l","resizeMark":"cpVp9-","resizeMark6":"hdEfrQ","resizeMark12":"K1tAuR","pinnedRight":"e2eLfb","isDraggedOut":"_0XmGc5","dndMarkerLeft":"pDe0l8","dndMarkerRight":"CzZQp6","cellTooltipWrapper":"_3mDszx","cellTooltipText":"GMbn9h"};
|
|
4055
4188
|
|
|
4056
4189
|
class DataTableHeaderCell extends React.Component {
|
|
4057
4190
|
constructor() {
|
|
@@ -4133,14 +4266,14 @@ var SvgActionSettingsFill = function SvgActionSettingsFill(props, ref) {
|
|
|
4133
4266
|
};
|
|
4134
4267
|
var ForwardRef$9 = /*#__PURE__*/forwardRef(SvgActionSettingsFill);
|
|
4135
4268
|
|
|
4136
|
-
var css$k = {"uui-typography":"
|
|
4269
|
+
var css$k = {"uui-typography":"AA-t0p","hero-header":"C-n7o4","promo-header":"YBDR8k","uui-critical":"_84kOpg","uui-info":"TJz7rk","uui-success":"Af9Jg0","uui-warning":"BBW713","uui-highlight":"jBFalk","uui-typography-size-12":"lTegXo","uui-typography-size-14":"Ki5hdq","uui-typography-size-16":"scGBNq","header-cell":"WRZwDr","truncate":"frOwWG","uuiTypography":"AA-t0p","heroHeader":"C-n7o4","promoHeader":"YBDR8k","uuiCritical":"_84kOpg","uuiInfo":"TJz7rk","uuiSuccess":"Af9Jg0","uuiWarning":"BBW713","uuiHighlight":"jBFalk","uuiTypographySize12":"lTegXo","uuiTypographySize14":"Ki5hdq","uuiTypographySize16":"scGBNq","headerCell":"WRZwDr"};
|
|
4137
4270
|
|
|
4138
4271
|
const DataTableHeaderRow = /* @__PURE__ */withMods(DataTableHeaderRow$1, (props) => [css$k.root, 'uui-dt-vars', props.size === '48' && css$k.truncate], (mods) => ({
|
|
4139
4272
|
renderCell: (props) => React.createElement(DataTableHeaderCell, Object.assign({}, props, { size: mods.size, textCase: mods.textCase || 'normal', key: props.column.key, columnsGap: mods.columnsGap })),
|
|
4140
4273
|
renderConfigButton: () => React.createElement(IconButton, { key: "configuration", onClick: mods.onConfigButtonClick, cx: "config-icon", color: "neutral", icon: ForwardRef$9 }),
|
|
4141
4274
|
}));
|
|
4142
4275
|
|
|
4143
|
-
var styles$1 = {"uui-typography":"
|
|
4276
|
+
var styles$1 = {"uui-typography":"pZMfN7","hero-header":"_7njzCw","promo-header":"caKn7H","uui-critical":"y-Coli","uui-info":"A1ufj3","uui-success":"vAU02x","uui-warning":"_2lc2s2","uui-highlight":"-HC24T","uui-typography-size-12":"hQ7YCA","uui-typography-size-14":"pGNXq1","uui-typography-size-16":"VvLpHw","main-panel":"fTtM02","group-title":"YIvKDX","group-title-text":"RMjD6v","group-title-badge":"fLCoKX","group-items":"L1Ufae","no-data":"WxJGsv","h-divider":"XnTqM3","search-area":"_9q8-Jz","subgroup-accordion":"o1cgHm","subgroup-title":"-Ezt-W","uuiTypography":"pZMfN7","heroHeader":"_7njzCw","promoHeader":"caKn7H","uuiCritical":"y-Coli","uuiInfo":"A1ufj3","uuiSuccess":"vAU02x","uuiWarning":"_2lc2s2","uuiHighlight":"-HC24T","uuiTypographySize12":"hQ7YCA","uuiTypographySize14":"pGNXq1","uuiTypographySize16":"VvLpHw","mainPanel":"fTtM02","groupTitle":"YIvKDX","groupTitleText":"RMjD6v","groupTitleBadge":"fLCoKX","groupItems":"L1Ufae","noData":"WxJGsv","hDivider":"XnTqM3","searchArea":"_9q8-Jz","subgroupAccordion":"o1cgHm","subgroupTitle":"-Ezt-W"};
|
|
4144
4277
|
|
|
4145
4278
|
var _path$8;
|
|
4146
4279
|
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 +4330,7 @@ var SvgTableGroupColumnRightFill = function SvgTableGroupColumnRightFill(props,
|
|
|
4197
4330
|
};
|
|
4198
4331
|
var ForwardRef$6 = /*#__PURE__*/forwardRef(SvgTableGroupColumnRightFill);
|
|
4199
4332
|
|
|
4200
|
-
var css$j = {"unpin-icon":"
|
|
4333
|
+
var css$j = {"unpin-icon":"Vw-lB8","pin-toggler-icon":"_75jUzv","unpinIcon":"Vw-lB8","pinTogglerIcon":"_75jUzv"};
|
|
4201
4334
|
|
|
4202
4335
|
function PinIconButton(props) {
|
|
4203
4336
|
const i18nLocal = i18n.tables.columnsConfigurationModal;
|
|
@@ -4256,7 +4389,7 @@ var SvgActionDragIndicator18 = function SvgActionDragIndicator18(props, ref) {
|
|
|
4256
4389
|
};
|
|
4257
4390
|
var ForwardRef$5 = /*#__PURE__*/forwardRef(SvgActionDragIndicator18);
|
|
4258
4391
|
|
|
4259
|
-
var styles = {"uui-typography":"
|
|
4392
|
+
var styles = {"uui-typography":"_6s52l4","hero-header":"_43iSoZ","promo-header":"nfUwlD","uui-critical":"uI4VbI","uui-info":"eKD0k-","uui-success":"Ypiysp","uui-warning":"r3Yr29","uui-highlight":"kb4HaE","uui-typography-size-12":"_7NENeq","uui-typography-size-14":"NXff1Y","uui-typography-size-16":"EO3qMs","row-wrapper":"Jd-0mV","not-pinned":"oDmiQt","pin-icon-button":"P7bduE","checkbox":"eyGTXF","drag-handle":"EiKomx","dnd-disabled":"wPCERC","uuiTypography":"_6s52l4","heroHeader":"_43iSoZ","promoHeader":"nfUwlD","uuiCritical":"uI4VbI","uuiInfo":"eKD0k-","uuiSuccess":"Ypiysp","uuiWarning":"r3Yr29","uuiHighlight":"kb4HaE","uuiTypographySize12":"_7NENeq","uuiTypographySize14":"NXff1Y","uuiTypographySize16":"EO3qMs","rowWrapper":"Jd-0mV","notPinned":"oDmiQt","pinIconButton":"P7bduE","dragHandle":"EiKomx","dndDisabled":"wPCERC"};
|
|
4260
4393
|
|
|
4261
4394
|
const ColumnRow = /* @__PURE__ */React.memo(function ColumnRow(props) {
|
|
4262
4395
|
const { column } = props;
|
|
@@ -4365,7 +4498,7 @@ function SubGroup(props) {
|
|
|
4365
4498
|
return null;
|
|
4366
4499
|
}
|
|
4367
4500
|
|
|
4368
|
-
var css$i = {"listContainer":"
|
|
4501
|
+
var css$i = {"listContainer":"pVBm-U","header":"GuMLAd","group":"ggY2M2","stickyHeader":"_6T-m8c"};
|
|
4369
4502
|
|
|
4370
4503
|
const getChildrenAndRest = (row, rows) => {
|
|
4371
4504
|
const firstNotChildIndex = rows.findIndex((other) => other.depth < row.depth || (row.depth === other.depth && other.isPinned));
|
|
@@ -4431,7 +4564,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
4431
4564
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4432
4565
|
ref: ref
|
|
4433
4566
|
}, props), /*#__PURE__*/React.createElement("g", {
|
|
4434
|
-
clipPath: "url(#
|
|
4567
|
+
clipPath: "url(#ec5d0i3dz3ai0vpru_a)"
|
|
4435
4568
|
}, _path$4 || (_path$4 = /*#__PURE__*/React.createElement("path", {
|
|
4436
4569
|
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
4570
|
fill: "#F5F6FA"
|
|
@@ -4452,7 +4585,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
4452
4585
|
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
4586
|
fill: "#1D1E26"
|
|
4454
4587
|
})), /*#__PURE__*/React.createElement("mask", {
|
|
4455
|
-
id: "
|
|
4588
|
+
id: "ec5d0ihssmn4h9ojd_b",
|
|
4456
4589
|
style: {
|
|
4457
4590
|
maskType: "alpha"
|
|
4458
4591
|
},
|
|
@@ -4465,7 +4598,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
4465
4598
|
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
4599
|
fill: "#9BDEFF"
|
|
4467
4600
|
}))), _g || (_g = /*#__PURE__*/React.createElement("g", {
|
|
4468
|
-
mask: "url(#
|
|
4601
|
+
mask: "url(#ec5d0ihssmn4h9ojd_b)",
|
|
4469
4602
|
fillRule: "evenodd",
|
|
4470
4603
|
clipRule: "evenodd"
|
|
4471
4604
|
}, /*#__PURE__*/React.createElement("path", {
|
|
@@ -4551,7 +4684,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
4551
4684
|
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
4685
|
fill: "#fff"
|
|
4553
4686
|
}))), _defs || (_defs = /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
|
|
4554
|
-
id: "
|
|
4687
|
+
id: "ec5d0i3dz3ai0vpru_a"
|
|
4555
4688
|
}, /*#__PURE__*/React.createElement("path", {
|
|
4556
4689
|
fill: "#fff",
|
|
4557
4690
|
transform: "translate(.552)",
|
|
@@ -4560,7 +4693,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
4560
4693
|
};
|
|
4561
4694
|
var ForwardRef$4 = /*#__PURE__*/forwardRef(SvgEmptyTable);
|
|
4562
4695
|
|
|
4563
|
-
var css$h = {"sticky-header":"
|
|
4696
|
+
var css$h = {"sticky-header":"ql6CDh","table":"jc2piE","no-results":"zqpXo6","no-results-icon":"GzIC6g","no-results-title":"K6mIq3","stickyHeader":"ql6CDh","noResults":"zqpXo6","noResultsIcon":"GzIC6g","noResultsTitle":"K6mIq3"};
|
|
4564
4697
|
|
|
4565
4698
|
const DEFAULT_HEADER_SIZE = '36';
|
|
4566
4699
|
const DEFAULT_COLUMN_GAP = '24';
|
|
@@ -4613,9 +4746,9 @@ function DataTable(props) {
|
|
|
4613
4746
|
} }))));
|
|
4614
4747
|
}
|
|
4615
4748
|
|
|
4616
|
-
var css$g = {"root":"
|
|
4749
|
+
var css$g = {"root":"WvOMtu"};
|
|
4617
4750
|
|
|
4618
|
-
var css$f = {"root":"
|
|
4751
|
+
var css$f = {"root":"OWDVDi","burger-content":"_-6oujp","burgerContent":"_-6oujp"};
|
|
4619
4752
|
|
|
4620
4753
|
var _path$3;
|
|
4621
4754
|
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 +4791,7 @@ var SvgNavigationArrowDownOutline = function SvgNavigationArrowDownOutline(props
|
|
|
4658
4791
|
};
|
|
4659
4792
|
var ForwardRef$2 = /*#__PURE__*/forwardRef(SvgNavigationArrowDownOutline);
|
|
4660
4793
|
|
|
4661
|
-
var css$e = {"uui-typography":"
|
|
4794
|
+
var css$e = {"uui-typography":"Z9ZLIz","hero-header":"Bm4iJg","promo-header":"_9mTQ47","uui-critical":"MciZl4","uui-info":"h4pkFQ","uui-success":"rfkbnq","uui-warning":"OCAEfM","uui-highlight":"IC2pn5","uui-typography-size-12":"gltzSy","uui-typography-size-14":"Ga9Zo8","uui-typography-size-16":"kob8T7","root":"Y33mAP","button-primary":"Dieh4k","button-secondary":"_-11ao5","hasIcon":"_1BfLKU","dropdown":"_5hWQOR","uuiTypography":"Z9ZLIz","heroHeader":"Bm4iJg","promoHeader":"_9mTQ47","uuiCritical":"MciZl4","uuiInfo":"h4pkFQ","uuiSuccess":"rfkbnq","uuiWarning":"OCAEfM","uuiHighlight":"IC2pn5","uuiTypographySize12":"gltzSy","uuiTypographySize14":"Ga9Zo8","uuiTypographySize16":"kob8T7","buttonPrimary":"Dieh4k","buttonSecondary":"_-11ao5"};
|
|
4662
4795
|
|
|
4663
4796
|
const BurgerButton = /* @__PURE__ */withMods(Button$1, (props) => [
|
|
4664
4797
|
css$e.root,
|
|
@@ -4669,13 +4802,13 @@ const BurgerButton = /* @__PURE__ */withMods(Button$1, (props) => [
|
|
|
4669
4802
|
props.icon && css$e.hasIcon,
|
|
4670
4803
|
], () => ({ dropdownIcon: ForwardRef$2, dropdownIconPosition: 'left', role: 'menuitem' }));
|
|
4671
4804
|
|
|
4672
|
-
var css$d = {"search-input":"
|
|
4805
|
+
var css$d = {"search-input":"C-mGuz","searchInput":"C-mGuz"};
|
|
4673
4806
|
|
|
4674
4807
|
function BurgerSearch(props) {
|
|
4675
4808
|
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
4809
|
}
|
|
4677
4810
|
|
|
4678
|
-
var css$c = {"root":"
|
|
4811
|
+
var css$c = {"root":"-JoUR6","group-header":"xB6F39","group-name":"xF4Y4E","line":"-l49ww","groupHeader":"xB6F39","groupName":"xF4Y4E"};
|
|
4679
4812
|
|
|
4680
4813
|
function BurgerGroupHeader(props) {
|
|
4681
4814
|
return (React.createElement("div", { className: cx(css$c.root, css$c.groupHeader, 'uui-burger-group-header') },
|
|
@@ -4683,7 +4816,7 @@ function BurgerGroupHeader(props) {
|
|
|
4683
4816
|
React.createElement("span", { className: css$c.groupName }, props.caption)));
|
|
4684
4817
|
}
|
|
4685
4818
|
|
|
4686
|
-
var css$b = {"uui-typography":"
|
|
4819
|
+
var css$b = {"uui-typography":"_-4Ah1G","hero-header":"-BGu34","promo-header":"qKKcEp","uui-critical":"lWw2le","uui-info":"fj8K7g","uui-success":"eDXAMN","uui-warning":"hXhFWM","uui-highlight":"_2WfDNE","uui-typography-size-12":"vlYzR4","uui-typography-size-14":"tc8XyH","uui-typography-size-16":"HhP0ab","root":"eMZ-fj","type-primary":"ZYLG2T","type-secondary":"hJjmtB","uuiTypography":"_-4Ah1G","heroHeader":"-BGu34","promoHeader":"qKKcEp","uuiCritical":"lWw2le","uuiInfo":"fj8K7g","uuiSuccess":"eDXAMN","uuiWarning":"hXhFWM","uuiHighlight":"_2WfDNE","uuiTypographySize12":"vlYzR4","uuiTypographySize14":"tc8XyH","uuiTypographySize16":"HhP0ab","typePrimary":"ZYLG2T","typeSecondary":"hJjmtB"};
|
|
4687
4820
|
|
|
4688
4821
|
const MainMenuButton = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
4689
4822
|
const { type } = props, clickableProps = __rest(props, ["type"]);
|
|
@@ -4699,7 +4832,7 @@ const MainMenuButton = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
4699
4832
|
props.isDropdown && (React.createElement(IconContainer, { icon: ForwardRef$P, flipY: props.isOpen }))));
|
|
4700
4833
|
});
|
|
4701
4834
|
|
|
4702
|
-
var css$a = {"dropdown-body":"
|
|
4835
|
+
var css$a = {"dropdown-body":"kEjoAi","dropdownBody":"kEjoAi"};
|
|
4703
4836
|
|
|
4704
4837
|
class MainMenuDropdown extends React.Component {
|
|
4705
4838
|
render() {
|
|
@@ -4754,12 +4887,12 @@ var SvgNavigationGlobalMenuOutlineOutline = function SvgNavigationGlobalMenuOutl
|
|
|
4754
4887
|
};
|
|
4755
4888
|
var ForwardRef$1 = /*#__PURE__*/forwardRef(SvgNavigationGlobalMenuOutlineOutline);
|
|
4756
4889
|
|
|
4757
|
-
var css$9 = {"global-menu-btn":"
|
|
4890
|
+
var css$9 = {"global-menu-btn":"_83k2cJ","global-menu-icon":"TFfFrA","globalMenuBtn":"_83k2cJ","globalMenuIcon":"TFfFrA"};
|
|
4758
4891
|
|
|
4759
4892
|
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
4893
|
React.createElement(IconContainer, { size: 36, icon: ForwardRef$1, cx: css$9.globalMenuIcon }))));
|
|
4761
4894
|
|
|
4762
|
-
var css$8 = {"container":"
|
|
4895
|
+
var css$8 = {"container":"_7VtDbQ","open":"TQoCRV"};
|
|
4763
4896
|
|
|
4764
4897
|
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
4898
|
React.createElement(Avatar, { size: "36", img: props.avatarUrl }),
|
|
@@ -4767,18 +4900,18 @@ const MainMenuAvatar = /* @__PURE__ */React.forwardRef((props, ref) => (React.cr
|
|
|
4767
4900
|
props.isDropdown && (React.createElement("div", null,
|
|
4768
4901
|
React.createElement(IconContainer, { size: 18, icon: ForwardRef$P, flipY: props.isOpen }))))));
|
|
4769
4902
|
|
|
4770
|
-
var css$7 = {"search-input":"
|
|
4903
|
+
var css$7 = {"search-input":"DEZGfn","searchInput":"DEZGfn"};
|
|
4771
4904
|
|
|
4772
4905
|
const MainMenuSearch = /* @__PURE__ */React.forwardRef((props, ref) => (React.createElement(IEditableDebouncer, Object.assign({}, props, { render: (iEditable) => {
|
|
4773
4906
|
var _a;
|
|
4774
4907
|
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
4908
|
} }))));
|
|
4776
4909
|
|
|
4777
|
-
var css$6 = {"container":"
|
|
4910
|
+
var css$6 = {"container":"AvedBl"};
|
|
4778
4911
|
|
|
4779
4912
|
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
4913
|
|
|
4781
|
-
var css$5 = {"root":"
|
|
4914
|
+
var css$5 = {"root":"xRcoFY"};
|
|
4782
4915
|
|
|
4783
4916
|
const Anchor = /* @__PURE__ */withMods(Anchor$1, () => [css$5.root]);
|
|
4784
4917
|
|
|
@@ -4836,7 +4969,7 @@ var SvgFileCloudUploadFill = function SvgFileCloudUploadFill(props, ref) {
|
|
|
4836
4969
|
};
|
|
4837
4970
|
var ForwardRef = /*#__PURE__*/forwardRef(SvgFileCloudUploadFill);
|
|
4838
4971
|
|
|
4839
|
-
var css$4 = {"root":"
|
|
4972
|
+
var css$4 = {"root":"yo-YRJ","drop-start":"Ptv6xS","drop-over":"QHVPB3","link":"CYPPR5","drop-area":"GBh2eT","drop-caption":"nwuxjQ","icon-blue":"_-6cPoV","dropStart":"Ptv6xS","dropOver":"QHVPB3","dropArea":"GBh2eT","dropCaption":"nwuxjQ","iconBlue":"_-6cPoV"};
|
|
4840
4973
|
|
|
4841
4974
|
function DropSpot(props) {
|
|
4842
4975
|
const getInfoText = typeof props.infoText === 'string'
|
|
@@ -4854,9 +4987,9 @@ function DropSpot(props) {
|
|
|
4854
4987
|
return React.createElement(DropSpot$1, { render: renderAttachmentArea, onFilesDropped: props.onUploadFiles });
|
|
4855
4988
|
}
|
|
4856
4989
|
|
|
4857
|
-
var css$3 = {"uui-typography":"
|
|
4990
|
+
var css$3 = {"uui-typography":"_5pkolN","hero-header":"WM1gSA","promo-header":"-bKQB6","uui-critical":"FbRJ1a","uui-info":"HNFyMk","uui-success":"_0KNygM","uui-warning":"HoDROB","uui-highlight":"tvqMav","uui-typography-size-12":"bKBdSg","uui-typography-size-14":"f73FQc","uui-typography-size-16":"d2Oy-s","root":"SrXFlq","file-name":"FmENYa","default-color":"gKWQIs","doc-color":"rICyjn","xls-color":"_83ikN7","pdf-color":"_7K7AME","movie-color":"_0TPx5O","img-color":"QSWDUU","mov-color":"JLrfih","error-block":"xlC1aN","icons-block":"vKBgfZ","uuiTypography":"_5pkolN","heroHeader":"WM1gSA","promoHeader":"-bKQB6","uuiCritical":"FbRJ1a","uuiInfo":"HNFyMk","uuiSuccess":"_0KNygM","uuiWarning":"HoDROB","uuiHighlight":"tvqMav","uuiTypographySize12":"bKBdSg","uuiTypographySize14":"f73FQc","uuiTypographySize16":"d2Oy-s","fileName":"FmENYa","defaultColor":"gKWQIs","docColor":"rICyjn","xlsColor":"_83ikN7","pdfColor":"_7K7AME","movieColor":"_0TPx5O","imgColor":"QSWDUU","movColor":"JLrfih","errorBlock":"xlC1aN","iconsBlock":"vKBgfZ"};
|
|
4858
4991
|
|
|
4859
|
-
var css$2 = {"root":"
|
|
4992
|
+
var css$2 = {"root":"_3XlPR2"};
|
|
4860
4993
|
|
|
4861
4994
|
const SvgCircleProgress = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
4862
4995
|
const outsetRadius = props.size / 2 - 1;
|
|
@@ -4981,7 +5114,7 @@ const getErrorPageConfig = () => ({
|
|
|
4981
5114
|
},
|
|
4982
5115
|
});
|
|
4983
5116
|
|
|
4984
|
-
var css$1 = {"container":"
|
|
5117
|
+
var css$1 = {"container":"Nf1RjC"};
|
|
4985
5118
|
|
|
4986
5119
|
const ErrorPage = (props) => {
|
|
4987
5120
|
const isMobileScreen = isMobile();
|
|
@@ -4992,7 +5125,7 @@ const ErrorPage = (props) => {
|
|
|
4992
5125
|
React__default.createElement("div", { className: "uui-error-subtitle" }, props.subtitle))));
|
|
4993
5126
|
};
|
|
4994
5127
|
|
|
4995
|
-
var css = {"recovery-spinner":"
|
|
5128
|
+
var css = {"recovery-spinner":"ne7DP2","recovery-message":"y4IL88","modal-blocker":"cat94J","modalFadeIn":"lfTsnX","recoverySpinner":"ne7DP2","recoveryMessage":"y4IL88","modalBlocker":"cat94J"};
|
|
4996
5129
|
|
|
4997
5130
|
function ErrorHandler(props) {
|
|
4998
5131
|
const { uuiNotifications, uuiModals, uuiApi } = useUuiContext();
|
|
@@ -5043,5 +5176,5 @@ function ErrorHandler(props) {
|
|
|
5043
5176
|
errorType === 'recovery' && renderRecoveryBlocker(errorInfo)));
|
|
5044
5177
|
}
|
|
5045
5178
|
|
|
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 };
|
|
5179
|
+
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
5180
|
//# sourceMappingURL=index.esm.js.map
|