@sme.up/ketchup 4.2.0-SNAPSHOT → 4.3.0-SNAPSHOT

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.
Files changed (104) hide show
  1. package/dist/cjs/{cell-utils-1d44a3f0.js → cell-utils-dc0884a3.js} +2 -2
  2. package/dist/cjs/{f-button-a5788453.js → f-button-2ba74fb5.js} +1 -1
  3. package/dist/cjs/{f-cell-eba6f39e.js → f-cell-fe60a08d.js} +31 -27
  4. package/dist/cjs/{f-chip-ce69b7d2.js → f-chip-90d95d22.js} +2 -2
  5. package/dist/cjs/{f-image-e03842eb.js → f-image-d3bd4e08.js} +1 -1
  6. package/dist/cjs/ketchup.cjs.js +1 -1
  7. package/dist/cjs/kup-accordion.cjs.entry.js +3 -3
  8. package/dist/cjs/kup-autocomplete_28.cjs.entry.js +1024 -633
  9. package/dist/cjs/kup-calendar.cjs.entry.js +6 -6
  10. package/dist/cjs/kup-cell.cjs.entry.js +6 -6
  11. package/dist/cjs/kup-dash-list.cjs.entry.js +3 -3
  12. package/dist/cjs/kup-dash_2.cjs.entry.js +2 -2
  13. package/dist/cjs/kup-drawer.cjs.entry.js +2 -2
  14. package/dist/cjs/kup-field.cjs.entry.js +1 -1
  15. package/dist/cjs/kup-iframe.cjs.entry.js +2 -2
  16. package/dist/cjs/kup-lazy.cjs.entry.js +2 -2
  17. package/dist/cjs/kup-magic-box.cjs.entry.js +3 -3
  18. package/dist/cjs/{kup-manager-75f1a2cd.js → kup-manager-1a2688ca.js} +20 -1
  19. package/dist/cjs/kup-nav-bar.cjs.entry.js +2 -2
  20. package/dist/cjs/kup-probe.cjs.entry.js +1 -1
  21. package/dist/cjs/kup-qlik.cjs.entry.js +1 -1
  22. package/dist/cjs/kup-snackbar.cjs.entry.js +4 -4
  23. package/dist/cjs/loader.cjs.js +1 -1
  24. package/dist/cjs/{utils-b3ec89fe.js → utils-0cc466b9.js} +1 -59
  25. package/dist/collection/components/kup-card/builtin/kup-card-builtin.js +20 -0
  26. package/dist/collection/components/kup-card/builtin/kup-card-calendar.js +458 -0
  27. package/dist/collection/components/kup-card/builtin/kup-card-clock.js +321 -0
  28. package/dist/collection/components/kup-card/free/kup-card-free.js +13 -0
  29. package/dist/collection/components/kup-card/kup-card-declarations.js +19 -0
  30. package/dist/collection/components/kup-card/kup-card.css +502 -3
  31. package/dist/collection/components/kup-card/kup-card.js +18 -9
  32. package/dist/collection/components/kup-data-table/kup-data-table.css +0 -38
  33. package/dist/collection/components/kup-data-table/kup-data-table.js +21 -10
  34. package/dist/collection/components/kup-date-picker/kup-date-picker.css +0 -82
  35. package/dist/collection/components/kup-date-picker/kup-date-picker.js +35 -309
  36. package/dist/collection/components/kup-text-field/kup-text-field.css +1 -0
  37. package/dist/collection/components/kup-time-picker/kup-time-picker.css +1 -0
  38. package/dist/collection/components/kup-time-picker/kup-time-picker.js +51 -241
  39. package/dist/collection/f-components/f-cell/f-cell.js +26 -22
  40. package/dist/collection/utils/kup-search/kup-search.js +0 -1
  41. package/dist/esm/{cell-utils-9a2914fc.js → cell-utils-8f512ea9.js} +2 -2
  42. package/dist/esm/{f-button-55a9ed88.js → f-button-30dbcaa9.js} +1 -1
  43. package/dist/esm/{f-cell-ac520cb2.js → f-cell-95c186c6.js} +31 -27
  44. package/dist/esm/{f-chip-babf1740.js → f-chip-c0e9c0ff.js} +2 -2
  45. package/dist/esm/{f-image-70ca9dfe.js → f-image-3bc8b24f.js} +1 -1
  46. package/dist/esm/ketchup.js +1 -1
  47. package/dist/esm/kup-accordion.entry.js +3 -3
  48. package/dist/esm/kup-autocomplete_28.entry.js +1053 -662
  49. package/dist/esm/kup-calendar.entry.js +6 -6
  50. package/dist/esm/kup-cell.entry.js +6 -6
  51. package/dist/esm/kup-dash-list.entry.js +3 -3
  52. package/dist/esm/kup-dash_2.entry.js +2 -2
  53. package/dist/esm/kup-drawer.entry.js +2 -2
  54. package/dist/esm/kup-field.entry.js +1 -1
  55. package/dist/esm/kup-iframe.entry.js +2 -2
  56. package/dist/esm/kup-lazy.entry.js +2 -2
  57. package/dist/esm/kup-magic-box.entry.js +3 -3
  58. package/dist/esm/{kup-manager-bba32828.js → kup-manager-7fc234da.js} +21 -2
  59. package/dist/esm/kup-nav-bar.entry.js +2 -2
  60. package/dist/esm/kup-probe.entry.js +1 -1
  61. package/dist/esm/kup-qlik.entry.js +1 -1
  62. package/dist/esm/kup-snackbar.entry.js +4 -4
  63. package/dist/esm/loader.js +1 -1
  64. package/dist/esm/{utils-cfcbe33f.js → utils-6c73709d.js} +2 -58
  65. package/dist/ketchup/ketchup.esm.js +1 -1
  66. package/dist/ketchup/{p-1ce9a037.js → p-15321eae.js} +1 -1
  67. package/dist/ketchup/{p-daf03877.entry.js → p-1baf1205.entry.js} +1 -1
  68. package/dist/ketchup/p-1c6178e4.entry.js +1 -0
  69. package/dist/ketchup/{p-52038ccb.js → p-44375e49.js} +1 -1
  70. package/dist/ketchup/{p-d58dbf0e.js → p-5a5f2a53.js} +1 -1
  71. package/dist/ketchup/{p-4748be4b.js → p-61faaa38.js} +2 -2
  72. package/dist/ketchup/{p-69a705ae.entry.js → p-62816d0b.entry.js} +1 -1
  73. package/dist/ketchup/{p-ff7d590e.entry.js → p-65adc15b.entry.js} +1 -1
  74. package/dist/ketchup/p-7e23ea7c.entry.js +1 -0
  75. package/dist/ketchup/{p-5faf7715.entry.js → p-a378ba56.entry.js} +1 -1
  76. package/dist/ketchup/{p-74259992.entry.js → p-a878016f.entry.js} +1 -1
  77. package/dist/ketchup/{p-d6ce1ac6.entry.js → p-a96e6e32.entry.js} +1 -1
  78. package/dist/ketchup/{p-6cc8264d.entry.js → p-ad32821e.entry.js} +1 -1
  79. package/dist/ketchup/{p-03ae1be9.entry.js → p-af4a6191.entry.js} +1 -1
  80. package/dist/ketchup/{p-a7687c0e.entry.js → p-c18c7bb0.entry.js} +5 -5
  81. package/dist/ketchup/{p-62208488.entry.js → p-ca0ca27f.entry.js} +1 -1
  82. package/dist/ketchup/{p-e90934b5.entry.js → p-ccda584a.entry.js} +1 -1
  83. package/dist/ketchup/p-d4aa4922.js +1 -0
  84. package/dist/ketchup/{p-40df35de.entry.js → p-dbb6998b.entry.js} +1 -1
  85. package/dist/ketchup/{p-06c209a5.js → p-de83f2f6.js} +1 -1
  86. package/dist/ketchup/p-ec3a3db9.js +1 -0
  87. package/dist/ketchup/p-ecccb3a4.entry.js +45 -0
  88. package/dist/types/components/kup-card/builtin/kup-card-builtin.d.ts +14 -0
  89. package/dist/types/components/kup-card/builtin/kup-card-calendar.d.ts +2 -0
  90. package/dist/types/components/kup-card/builtin/kup-card-clock.d.ts +2 -0
  91. package/dist/types/components/kup-card/free/kup-card-free.d.ts +8 -0
  92. package/dist/types/components/kup-card/kup-card-declarations.d.ts +74 -0
  93. package/dist/types/components/kup-card/kup-card.d.ts +3 -3
  94. package/dist/types/components/kup-data-table/kup-data-table-declarations.d.ts +0 -5
  95. package/dist/types/components/kup-data-table/kup-data-table.d.ts +1 -2
  96. package/dist/types/components/kup-date-picker/kup-date-picker.d.ts +0 -10
  97. package/dist/types/components/kup-time-picker/kup-time-picker.d.ts +2 -9
  98. package/dist/types/components.d.ts +2 -2
  99. package/package.json +1 -1
  100. package/dist/ketchup/p-1e2c3497.js +0 -1
  101. package/dist/ketchup/p-5db41fae.entry.js +0 -45
  102. package/dist/ketchup/p-756aa8b1.entry.js +0 -1
  103. package/dist/ketchup/p-ea387b49.entry.js +0 -1
  104. package/dist/ketchup/p-f6bff949.js +0 -1
@@ -1,14 +1,14 @@
1
- import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, g as getElement, a as getAssetPath } from './index-e0e67c23.js';
2
- import { k as kupManagerInstance, K as KupDynamicPositionPlacement, a as KupThemeIconValues, b as KupThemeColorValues, c as KupDatesFormats, d as KupDatesNormalize, e as KupObjects, f as KupDebugCategory, g as KupLanguageGeneric, h as KupPointerEventTypes, i as KupDragEffect, j as kupDraggableCellAttr, l as KupDropEventTypes, m as KupLanguageSearch, n as KupCardSubEvents, o as KupCardIds, p as KupCardCSSClasses, q as KupLanguageRow, r as KupLanguageColumn, s as KupCardFamily, t as KupCardProps, u as KupDates, v as KupLanguageGrouping, w as KupLanguageCheckbox, x as kupDraggableColumnAttr, y as kupDragActiveAttr, z as KupLanguageTotals, A as KupLanguageFontsize, B as KupLanguageDensity, C as KupLanguageGrid, D as kupDynamicPositionAttribute, E as KupLanguagePage } from './kup-manager-bba32828.js';
3
- import { F as FTextField, a as FCell, b as FCheckbox, c as FCellPadding } from './f-cell-ac520cb2.js';
1
+ import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, g as getElement$1, a as getAssetPath } from './index-e0e67c23.js';
2
+ import { k as kupManagerInstance, K as KupDynamicPositionPlacement, a as KupThemeIconValues, b as KupThemeColorValues, c as KupDatesFormats, d as KupDatesNormalize, e as KupObjects, f as KupDebugCategory, g as KupLanguageGeneric, h as KupPointerEventTypes, i as KupDragEffect, j as kupDraggableCellAttr, l as KupDropEventTypes, m as KupLanguageSearch, n as KupCardBuiltinClockElements, o as KupCardCSSClasses, p as KupCardSubEvents, q as KupCardIds, r as KupLanguageRow, s as KupLanguageColumn, t as KupCardFamily, u as KupCardProps, v as KupDates, w as KupLanguageGrouping, x as KupLanguageCheckbox, y as kupDraggableColumnAttr, z as kupDragActiveAttr, A as KupLanguageTotals, B as KupLanguageFontsize, C as KupLanguageDensity, D as KupLanguageGrid, E as kupDynamicPositionAttribute, F as KupLanguagePage } from './kup-manager-7fc234da.js';
3
+ import { F as FTextField, a as FCell, b as FCheckbox, c as FCellPadding } from './f-cell-95c186c6.js';
4
4
  import { _ as __extends, a as __assign } from './tslib.es6-e6137777.js';
5
5
  import { M as MDCFoundation, a as MDCComponent, e as estimateScrollWidth, b as applyPassive, c as MDCRipple, m as matches, d as MDCRippleFoundation } from './component-d2803feb.js';
6
- import { g as getProps, s as setProps, i as isValidFormattedStringTime, f as formattedStringToCustomUnformattedStringTime, a as formattedStringToDefaultUnformattedStringTimestamp, b as isValidFormattedStringNumber, c as formattedStringToUnformattedStringNumber, u as unformattedStringNumberToNumber, d as stringToNumber, e as isNumber, n as numeral, h as isEmpty, j as deepEqual, k as identify, l as numberToFormattedStringNumber, m as getMonthsAsStringByLocale, o as getDaysOfWeekAsStringByLocale, p as fillString, D as DateTimeFormatOptionsMonth, q as unformattedStringToFormattedStringNumber, r as formatTime, t as unformattedStringToFormattedStringTime } from './utils-cfcbe33f.js';
6
+ import { g as getProps, s as setProps, i as isValidFormattedStringTime, f as formattedStringToCustomUnformattedStringTime, a as formattedStringToDefaultUnformattedStringTimestamp, b as isValidFormattedStringNumber, c as formattedStringToUnformattedStringNumber, u as unformattedStringNumberToNumber, d as stringToNumber, e as isNumber, n as numeral, h as isEmpty, j as deepEqual, k as identify, l as getMonthsAsStringByLocale, D as DateTimeFormatOptionsMonth, m as numberToFormattedStringNumber, o as unformattedStringToFormattedStringNumber, p as formatTime, q as unformattedStringToFormattedStringTime } from './utils-6c73709d.js';
7
7
  import { c as componentWrapperId } from './GenericVariables-6dfdd433.js';
8
- import { F as FImage } from './f-image-70ca9dfe.js';
9
- import { g as getValueForDisplay, a as getValueForDisplay2, b as getCellValueForDisplay, c as getColumnByName, d as compareValues, e as compareCell, f as formatToNumber } from './cell-utils-9a2914fc.js';
10
- import { F as FChip, a as FChipType } from './f-chip-babf1740.js';
11
- import { F as FButton } from './f-button-55a9ed88.js';
8
+ import { F as FImage } from './f-image-3bc8b24f.js';
9
+ import { g as getValueForDisplay, a as getValueForDisplay2, b as getCellValueForDisplay, c as getColumnByName, d as compareValues, e as compareCell, f as formatToNumber } from './cell-utils-8f512ea9.js';
10
+ import { F as FChip, a as FChipType } from './f-chip-c0e9c0ff.js';
11
+ import { F as FButton } from './f-button-30dbcaa9.js';
12
12
  import { F as FButtonStyling } from './f-button-declarations-fd4965d1.js';
13
13
 
14
14
  /**
@@ -2971,7 +2971,7 @@ let KupAutocomplete = class {
2971
2971
  }
2972
2972
  this.kupManager.theme.unregister(this);
2973
2973
  }
2974
- get rootElement() { return getElement(this); }
2974
+ get rootElement() { return getElement$1(this); }
2975
2975
  };
2976
2976
  KupAutocomplete.style = kupAutocompleteCss;
2977
2977
 
@@ -3084,7 +3084,7 @@ let KupBadge = class {
3084
3084
  disconnectedCallback() {
3085
3085
  this.kupManager.theme.unregister(this);
3086
3086
  }
3087
- get rootElement() { return getElement(this); }
3087
+ get rootElement() { return getElement$1(this); }
3088
3088
  };
3089
3089
  KupBadge.style = kupBadgeCss;
3090
3090
 
@@ -3302,7 +3302,7 @@ var KupGlobalFilterMode;
3302
3302
  KupGlobalFilterMode["HIGHLIGHT"] = "highlight";
3303
3303
  })(KupGlobalFilterMode || (KupGlobalFilterMode = {}));
3304
3304
 
3305
- const dom$4 = document.documentElement;
3305
+ const dom$6 = document.documentElement;
3306
3306
  /**
3307
3307
  * Filtering algorithms.
3308
3308
  * @module Filters
@@ -3318,16 +3318,16 @@ class Filters {
3318
3318
  return comp.rootElement.tagName === 'KUP-TREE';
3319
3319
  }
3320
3320
  isObjFiltrableByInterval(obj) {
3321
- if (dom$4.ketchup.objects.isDate(obj)) {
3321
+ if (dom$6.ketchup.objects.isDate(obj)) {
3322
3322
  return true;
3323
3323
  }
3324
- if (dom$4.ketchup.objects.isTime(obj)) {
3324
+ if (dom$6.ketchup.objects.isTime(obj)) {
3325
3325
  return true;
3326
3326
  }
3327
- if (dom$4.ketchup.objects.isTimestamp(obj)) {
3327
+ if (dom$6.ketchup.objects.isTimestamp(obj)) {
3328
3328
  return true;
3329
3329
  }
3330
- if (dom$4.ketchup.objects.isNumber(obj)) {
3330
+ if (dom$6.ketchup.objects.isNumber(obj)) {
3331
3331
  return true;
3332
3332
  }
3333
3333
  return false;
@@ -3337,17 +3337,17 @@ class Filters {
3337
3337
  if (newValue == null || newValue == '' || smeupObj == null) {
3338
3338
  return newValue;
3339
3339
  }
3340
- if (dom$4.ketchup.objects.isDate(smeupObj)) {
3341
- if (dom$4.ketchup.dates.isValid(value, KupDatesFormats.ISO_DATE)) {
3340
+ if (dom$6.ketchup.objects.isDate(smeupObj)) {
3341
+ if (dom$6.ketchup.dates.isValid(value, KupDatesFormats.ISO_DATE)) {
3342
3342
  return newValue;
3343
3343
  }
3344
- if (dom$4.ketchup.dates.isValid(value)) {
3345
- return dom$4.ketchup.dates.format(dom$4.ketchup.dates.normalize(value, KupDatesNormalize.DATE), KupDatesFormats.ISO_DATE);
3344
+ if (dom$6.ketchup.dates.isValid(value)) {
3345
+ return dom$6.ketchup.dates.format(dom$6.ketchup.dates.normalize(value, KupDatesNormalize.DATE), KupDatesFormats.ISO_DATE);
3346
3346
  }
3347
3347
  }
3348
- else if (dom$4.ketchup.objects.isTime(smeupObj)) {
3349
- let manageSeconds = dom$4.ketchup.objects.isTimeWithSeconds(smeupObj);
3350
- if (dom$4.ketchup.dates.isValid(value, manageSeconds
3348
+ else if (dom$6.ketchup.objects.isTime(smeupObj)) {
3349
+ let manageSeconds = dom$6.ketchup.objects.isTimeWithSeconds(smeupObj);
3350
+ if (dom$6.ketchup.dates.isValid(value, manageSeconds
3351
3351
  ? KupDatesFormats.ISO_TIME
3352
3352
  : KupDatesFormats.ISO_TIME_WITHOUT_SECONDS)) {
3353
3353
  return newValue;
@@ -3358,15 +3358,15 @@ class Filters {
3358
3358
  : KupDatesFormats.ISO_TIME_WITHOUT_SECONDS, manageSeconds);
3359
3359
  }
3360
3360
  }
3361
- else if (dom$4.ketchup.objects.isTimestamp(smeupObj)) {
3362
- if (dom$4.ketchup.dates.isValid(value, KupDatesFormats.ISO_DATE_TIME)) {
3361
+ else if (dom$6.ketchup.objects.isTimestamp(smeupObj)) {
3362
+ if (dom$6.ketchup.dates.isValid(value, KupDatesFormats.ISO_DATE_TIME)) {
3363
3363
  return newValue;
3364
3364
  }
3365
3365
  if (isValidFormattedStringTime(value, true)) {
3366
3366
  return formattedStringToDefaultUnformattedStringTimestamp(value);
3367
3367
  }
3368
3368
  }
3369
- else if (dom$4.ketchup.objects.isNumber(smeupObj)) {
3369
+ else if (dom$6.ketchup.objects.isNumber(smeupObj)) {
3370
3370
  if (isValidFormattedStringNumber(value, smeupObj ? smeupObj.p : '')) {
3371
3371
  return formattedStringToUnformattedStringNumber(value, smeupObj ? smeupObj.p : '');
3372
3372
  }
@@ -3489,7 +3489,7 @@ class Filters {
3489
3489
  to = interval[FilterInterval.TO];
3490
3490
  }
3491
3491
  let checkByRegularExpression = true;
3492
- if (dom$4.ketchup.objects.isNumber(obj)) {
3492
+ if (dom$6.ketchup.objects.isNumber(obj)) {
3493
3493
  value = unformattedStringNumberToNumber(value, obj ? obj.p : '');
3494
3494
  let valueNumber = stringToNumber(value);
3495
3495
  if (from != '') {
@@ -3517,30 +3517,30 @@ class Filters {
3517
3517
  }
3518
3518
  }
3519
3519
  }
3520
- if (dom$4.ketchup.objects.isDate(obj) ||
3521
- dom$4.ketchup.objects.isTime(obj) ||
3522
- dom$4.ketchup.objects.isTimestamp(obj)) {
3520
+ if (dom$6.ketchup.objects.isDate(obj) ||
3521
+ dom$6.ketchup.objects.isTime(obj) ||
3522
+ dom$6.ketchup.objects.isTimestamp(obj)) {
3523
3523
  let valueDate = null;
3524
3524
  let defaultFormat = KupDatesFormats.ISO_DATE;
3525
- if (dom$4.ketchup.objects.isDate(obj)) {
3525
+ if (dom$6.ketchup.objects.isDate(obj)) {
3526
3526
  defaultFormat = KupDatesFormats.ISO_DATE;
3527
3527
  }
3528
- else if (dom$4.ketchup.objects.isTime(obj)) {
3529
- defaultFormat = dom$4.ketchup.objects.isTimeWithSeconds(obj)
3528
+ else if (dom$6.ketchup.objects.isTime(obj)) {
3529
+ defaultFormat = dom$6.ketchup.objects.isTimeWithSeconds(obj)
3530
3530
  ? KupDatesFormats.ISO_TIME
3531
3531
  : KupDatesFormats.ISO_TIME_WITHOUT_SECONDS;
3532
3532
  }
3533
- else if (dom$4.ketchup.objects.isTimestamp(obj)) {
3533
+ else if (dom$6.ketchup.objects.isTimestamp(obj)) {
3534
3534
  defaultFormat = KupDatesFormats.ISO_DATE_TIME;
3535
3535
  }
3536
- if (dom$4.ketchup.dates.isValid(value, defaultFormat, true)) {
3537
- valueDate = dom$4.ketchup.dates.toDate(value, defaultFormat);
3536
+ if (dom$6.ketchup.dates.isValid(value, defaultFormat, true)) {
3537
+ valueDate = dom$6.ketchup.dates.toDate(value, defaultFormat);
3538
3538
  }
3539
3539
  if (from != '') {
3540
3540
  if (valueDate != null &&
3541
- dom$4.ketchup.dates.isValid(from, defaultFormat, true)) {
3541
+ dom$6.ketchup.dates.isValid(from, defaultFormat, true)) {
3542
3542
  checkByRegularExpression = false;
3543
- let fromDate = dom$4.ketchup.dates.toDate(from, defaultFormat);
3543
+ let fromDate = dom$6.ketchup.dates.toDate(from, defaultFormat);
3544
3544
  if (valueDate < fromDate) {
3545
3545
  return false;
3546
3546
  }
@@ -3551,9 +3551,9 @@ class Filters {
3551
3551
  }
3552
3552
  if (to != '') {
3553
3553
  if (valueDate != null &&
3554
- dom$4.ketchup.dates.isValid(to, defaultFormat, true)) {
3554
+ dom$6.ketchup.dates.isValid(to, defaultFormat, true)) {
3555
3555
  checkByRegularExpression = false;
3556
- let toDate = dom$4.ketchup.dates.toDate(to, defaultFormat);
3556
+ let toDate = dom$6.ketchup.dates.toDate(to, defaultFormat);
3557
3557
  if (valueDate > toDate) {
3558
3558
  return false;
3559
3559
  }
@@ -3562,9 +3562,9 @@ class Filters {
3562
3562
  filterValue = to;
3563
3563
  }
3564
3564
  }
3565
- if (!dom$4.ketchup.dates.isValid(filterValue, defaultFormat) &&
3566
- !dom$4.ketchup.dates.isValid(filterValue)) {
3567
- value = dom$4.ketchup.dates.format(value);
3565
+ if (!dom$6.ketchup.dates.isValid(filterValue, defaultFormat) &&
3566
+ !dom$6.ketchup.dates.isValid(filterValue)) {
3567
+ value = dom$6.ketchup.dates.format(value);
3568
3568
  }
3569
3569
  }
3570
3570
  if (checkByRegularExpression) {
@@ -4001,9 +4001,9 @@ var KupTreeExpansionMode;
4001
4001
  KupTreeExpansionMode["NODE"] = "node";
4002
4002
  })(KupTreeExpansionMode || (KupTreeExpansionMode = {}));
4003
4003
 
4004
- const dom$3 = document.documentElement;
4005
- const kupObjects = dom$3.ketchup
4006
- ? dom$3.ketchup.objects
4004
+ const dom$5 = document.documentElement;
4005
+ const kupObjects = dom$5.ketchup
4006
+ ? dom$5.ketchup.objects
4007
4007
  : new KupObjects();
4008
4008
  /**
4009
4009
  * Filtering algorithms related to data-table rows.
@@ -4252,7 +4252,7 @@ class FiltersRows extends Filters {
4252
4252
  }
4253
4253
  }
4254
4254
 
4255
- const dom$2 = document.documentElement;
4255
+ const dom$4 = document.documentElement;
4256
4256
  function sortRows(rows = [], sort = []) {
4257
4257
  if (!rows || rows.length === 0) {
4258
4258
  return [];
@@ -4486,7 +4486,7 @@ function updateGroupTotal(groupRow, totals, addedRow, distinctObj) {
4486
4486
  const currentTotalValue = groupRow.group.totals[key] || 0;
4487
4487
  const cell = addedRow.cells[key];
4488
4488
  if (cell) {
4489
- let _isNumber = dom$2.ketchup.objects.isNumber(cell.obj);
4489
+ let _isNumber = dom$4.ketchup.objects.isNumber(cell.obj);
4490
4490
  const totalMode = totals[key];
4491
4491
  switch (totalMode) {
4492
4492
  case TotalMode.COUNT:
@@ -4595,19 +4595,19 @@ function updateGroupTotal(groupRow, totals, addedRow, distinctObj) {
4595
4595
  parent = parent.group.parent;
4596
4596
  }
4597
4597
  }
4598
- else if (dom$2.ketchup.objects.isDate(cell.obj)) {
4598
+ else if (dom$4.ketchup.objects.isDate(cell.obj)) {
4599
4599
  const momentValue = cell.obj
4600
- ? dom$2.ketchup.objects.parseDate(cell.obj)
4601
- : dom$2.ketchup.dates.toDayjs(cell.value);
4602
- if (dom$2.ketchup.dates.isValid(momentValue)) {
4603
- const cellValue = dom$2.ketchup.dates.toDate(momentValue);
4600
+ ? dom$4.ketchup.objects.parseDate(cell.obj)
4601
+ : dom$4.ketchup.dates.toDayjs(cell.value);
4602
+ if (dom$4.ketchup.dates.isValid(momentValue)) {
4603
+ const cellValue = dom$4.ketchup.dates.toDate(momentValue);
4604
4604
  const currentTotalValue = groupRow.group.totals[key];
4605
4605
  if (currentTotalValue) {
4606
4606
  let moments = [];
4607
4607
  moments.push(cellValue);
4608
- moments.push(dom$2.ketchup.dates.format(currentTotalValue));
4608
+ moments.push(dom$4.ketchup.dates.format(currentTotalValue));
4609
4609
  groupRow.group.totals[key] =
4610
- dom$2.ketchup.dates.format(dom$2.ketchup.dates.min(moments));
4610
+ dom$4.ketchup.dates.format(dom$4.ketchup.dates.min(moments));
4611
4611
  }
4612
4612
  else {
4613
4613
  groupRow.group.totals[key] = cellValue;
@@ -4619,9 +4619,9 @@ function updateGroupTotal(groupRow, totals, addedRow, distinctObj) {
4619
4619
  if (currentParentMin) {
4620
4620
  let moments = [];
4621
4621
  moments.push(cellValue);
4622
- moments.push(dom$2.ketchup.dates.format(currentParentMin));
4622
+ moments.push(dom$4.ketchup.dates.format(currentParentMin));
4623
4623
  parent.group.totals[key] =
4624
- dom$2.ketchup.dates.format(dom$2.ketchup.dates.min(moments));
4624
+ dom$4.ketchup.dates.format(dom$4.ketchup.dates.min(moments));
4625
4625
  }
4626
4626
  else {
4627
4627
  // first round
@@ -4658,19 +4658,19 @@ function updateGroupTotal(groupRow, totals, addedRow, distinctObj) {
4658
4658
  parent = parent.group.parent;
4659
4659
  }
4660
4660
  }
4661
- else if (dom$2.ketchup.objects.isDate(cell.obj)) {
4661
+ else if (dom$4.ketchup.objects.isDate(cell.obj)) {
4662
4662
  const momentValue = cell.obj
4663
- ? dom$2.ketchup.objects.parseDate(cell.obj)
4664
- : dom$2.ketchup.dates.toDayjs(cell.value);
4665
- if (dom$2.ketchup.dates.isValid(momentValue)) {
4666
- const cellValue = dom$2.ketchup.dates.toDate(momentValue);
4663
+ ? dom$4.ketchup.objects.parseDate(cell.obj)
4664
+ : dom$4.ketchup.dates.toDayjs(cell.value);
4665
+ if (dom$4.ketchup.dates.isValid(momentValue)) {
4666
+ const cellValue = dom$4.ketchup.dates.toDate(momentValue);
4667
4667
  const currentTotalValue = groupRow.group.totals[key];
4668
4668
  if (currentTotalValue) {
4669
4669
  let moments = [];
4670
4670
  moments.push(cellValue);
4671
- moments.push(dom$2.ketchup.dates.format(currentTotalValue));
4671
+ moments.push(dom$4.ketchup.dates.format(currentTotalValue));
4672
4672
  groupRow.group.totals[key] =
4673
- dom$2.ketchup.dates.format(dom$2.ketchup.dates.max(moments));
4673
+ dom$4.ketchup.dates.format(dom$4.ketchup.dates.max(moments));
4674
4674
  }
4675
4675
  else {
4676
4676
  groupRow.group.totals[key] = cellValue;
@@ -4682,9 +4682,9 @@ function updateGroupTotal(groupRow, totals, addedRow, distinctObj) {
4682
4682
  if (currentParentMin) {
4683
4683
  let moments = [];
4684
4684
  moments.push(cellValue);
4685
- moments.push(dom$2.ketchup.dates.format(currentParentMin));
4685
+ moments.push(dom$4.ketchup.dates.format(currentParentMin));
4686
4686
  parent.group.totals[key] =
4687
- dom$2.ketchup.dates.format(dom$2.ketchup.dates.max(moments));
4687
+ dom$4.ketchup.dates.format(dom$4.ketchup.dates.max(moments));
4688
4688
  }
4689
4689
  else {
4690
4690
  // first round
@@ -4857,7 +4857,7 @@ function calcTotals(rows = [], totals = {}) {
4857
4857
  if (cell) {
4858
4858
  if (totals[key] === TotalMode.DISTINCT) {
4859
4859
  let cellValue;
4860
- if (dom$2.ketchup.objects.isNumber(cell.obj)) {
4860
+ if (dom$4.ketchup.objects.isNumber(cell.obj)) {
4861
4861
  cellValue = numeral(stringToNumber(cell.value)).value();
4862
4862
  }
4863
4863
  else {
@@ -4874,7 +4874,7 @@ function calcTotals(rows = [], totals = {}) {
4874
4874
  distinctList.push(cellValue);
4875
4875
  }
4876
4876
  }
4877
- else if (dom$2.ketchup.objects.isNumber(cell.obj)) {
4877
+ else if (dom$4.ketchup.objects.isNumber(cell.obj)) {
4878
4878
  const cellValue = numeral(stringToNumber(cell.value));
4879
4879
  let currentFooterValue = footerRow[key];
4880
4880
  switch (true) {
@@ -4904,21 +4904,21 @@ function calcTotals(rows = [], totals = {}) {
4904
4904
  }
4905
4905
  // TODO DRY the MIN and MAX functions
4906
4906
  }
4907
- else if (dom$2.ketchup.objects.isDate(cell.obj)) {
4907
+ else if (dom$4.ketchup.objects.isDate(cell.obj)) {
4908
4908
  const momentValue = cell.obj
4909
- ? dom$2.ketchup.objects.parseDate(cell.obj)
4910
- : dom$2.ketchup.dates.toDayjs(cell.value);
4911
- if (dom$2.ketchup.dates.isValid(momentValue)) {
4912
- const cellValue = dom$2.ketchup.dates.toDate(momentValue);
4909
+ ? dom$4.ketchup.objects.parseDate(cell.obj)
4910
+ : dom$4.ketchup.dates.toDayjs(cell.value);
4911
+ if (dom$4.ketchup.dates.isValid(momentValue)) {
4912
+ const cellValue = dom$4.ketchup.dates.toDate(momentValue);
4913
4913
  const currentFooterValue = footerRow[key];
4914
4914
  switch (true) {
4915
4915
  case totals[key] === TotalMode.MIN:
4916
4916
  if (currentFooterValue) {
4917
4917
  let moments = [];
4918
4918
  moments.push(cellValue);
4919
- moments.push(dom$2.ketchup.dates.format(currentFooterValue));
4919
+ moments.push(dom$4.ketchup.dates.format(currentFooterValue));
4920
4920
  footerRow[key] =
4921
- dom$2.ketchup.dates.format(dom$2.ketchup.dates.min(moments));
4921
+ dom$4.ketchup.dates.format(dom$4.ketchup.dates.min(moments));
4922
4922
  }
4923
4923
  else {
4924
4924
  footerRow[key] = cellValue;
@@ -4928,9 +4928,9 @@ function calcTotals(rows = [], totals = {}) {
4928
4928
  if (currentFooterValue) {
4929
4929
  let moments = [];
4930
4930
  moments.push(cellValue);
4931
- moments.push(dom$2.ketchup.dates.format(currentFooterValue));
4931
+ moments.push(dom$4.ketchup.dates.format(currentFooterValue));
4932
4932
  footerRow[key] =
4933
- dom$2.ketchup.dates.format(dom$2.ketchup.dates.max(moments));
4933
+ dom$4.ketchup.dates.format(dom$4.ketchup.dates.max(moments));
4934
4934
  }
4935
4935
  else {
4936
4936
  footerRow[key] = cellValue;
@@ -6344,7 +6344,7 @@ let KupBox = class {
6344
6344
  document.removeEventListener('click', this.clickFunction.bind(this));
6345
6345
  this.kupDidUnload.emit({ comp: this, id: this.rootElement.id });
6346
6346
  }
6347
- get rootElement() { return getElement(this); }
6347
+ get rootElement() { return getElement$1(this); }
6348
6348
  static get watchers() { return {
6349
6349
  "pageSize": ["rowsPerPageHandler", "recalculateRows"],
6350
6350
  "globalFilterValue": ["recalculateRows"],
@@ -6597,7 +6597,7 @@ let KupButton = class {
6597
6597
  disconnectedCallback() {
6598
6598
  this.kupManager.theme.unregister(this);
6599
6599
  }
6600
- get rootElement() { return getElement(this); }
6600
+ get rootElement() { return getElement$1(this); }
6601
6601
  };
6602
6602
  KupButton.style = kupButtonCss;
6603
6603
 
@@ -6889,10 +6889,822 @@ let KupButtonList = class {
6889
6889
  disconnectedCallback() {
6890
6890
  this.kupManager.theme.unregister(this);
6891
6891
  }
6892
- get rootElement() { return getElement(this); }
6892
+ get rootElement() { return getElement$1(this); }
6893
6893
  };
6894
6894
  KupButtonList.style = kupButtonListCss;
6895
6895
 
6896
+ /**
6897
+ * Props of the kup-date-picker component.
6898
+ * Used to export every prop in an object.
6899
+ */
6900
+ var KupDatePickerProps;
6901
+ (function (KupDatePickerProps) {
6902
+ KupDatePickerProps["customStyle"] = "Custom style of the component.";
6903
+ KupDatePickerProps["data"] = "Props of the sub-components.";
6904
+ KupDatePickerProps["disabled"] = "Defaults at false. When set to true, the component is disabled.";
6905
+ KupDatePickerProps["firstDayIndex"] = "First day number (0 - sunday, 1 - monday, ...)";
6906
+ KupDatePickerProps["initialValue"] = "Sets the initial value of the component";
6907
+ })(KupDatePickerProps || (KupDatePickerProps = {}));
6908
+ var SourceEvent;
6909
+ (function (SourceEvent) {
6910
+ SourceEvent["DATE"] = "date";
6911
+ SourceEvent["MONTH"] = "month";
6912
+ SourceEvent["YEAR"] = "year";
6913
+ })(SourceEvent || (SourceEvent = {}));
6914
+
6915
+ const dom$3 = document.documentElement;
6916
+ function prepareCalendar(component) {
6917
+ const el = component.rootElement;
6918
+ if (!el.kupData)
6919
+ el.kupData = {};
6920
+ if (component.data && component.data.options) {
6921
+ const opts = component.data.options;
6922
+ if (opts.resetStatus) {
6923
+ el.kupData = {};
6924
+ const obj = opts.initialValue;
6925
+ if (opts.initialValue) {
6926
+ if (obj && obj.k)
6927
+ setValue$1(component, new Date(obj.k));
6928
+ else
6929
+ setValue$1(component, new Date(opts.initialValue));
6930
+ }
6931
+ if (opts.firstDayIndex)
6932
+ el.kupData.firstDayIndex = opts.firstDayIndex;
6933
+ opts.resetStatus = false;
6934
+ }
6935
+ }
6936
+ if (!el.kupData.value)
6937
+ setValue$1(component, new Date());
6938
+ const months = getMonthsAsStringByLocale();
6939
+ const curYear = getYear(component);
6940
+ const curMonth = getMonth(component);
6941
+ const yearRange = getInitEndYear(curYear);
6942
+ const initYear = yearRange.initYear;
6943
+ const endYear = yearRange.endYear;
6944
+ let changeViewButtonLabel = 'not-set';
6945
+ switch (getView(component)) {
6946
+ case SourceEvent.DATE: {
6947
+ changeViewButtonLabel =
6948
+ months[curMonth] + ', ' + curYear.toString();
6949
+ break;
6950
+ }
6951
+ case SourceEvent.MONTH: {
6952
+ changeViewButtonLabel = curYear.toString();
6953
+ break;
6954
+ }
6955
+ case SourceEvent.YEAR: {
6956
+ changeViewButtonLabel =
6957
+ initYear.toString() + ' - ' + endYear.toString();
6958
+ break;
6959
+ }
6960
+ }
6961
+ const prevButtonProp = {
6962
+ icon: 'chevron_left',
6963
+ wrapperClass: 'prev-page',
6964
+ onClick: () => prevPage(component),
6965
+ };
6966
+ const prevButtonComp = h(FButton, Object.assign({}, prevButtonProp));
6967
+ const nextButtonProp = {
6968
+ icon: 'chevron_right',
6969
+ wrapperClass: 'next-page',
6970
+ onClick: () => nextPage(component),
6971
+ };
6972
+ const nextButtonComp = h(FButton, Object.assign({}, nextButtonProp));
6973
+ const changeViewButtonProp = {
6974
+ wrapperClass: 'change-view-button',
6975
+ styling: FButtonStyling.FLAT,
6976
+ label: changeViewButtonLabel,
6977
+ onClick: () => changeView(component),
6978
+ id: 'change-view-button',
6979
+ };
6980
+ //text-transform:capitalize
6981
+ return (h("div", { id: component.rootElement.id + '_calendar' },
6982
+ h("div", { class: "section-1" },
6983
+ h("div", { class: "sub-1 nav" },
6984
+ prevButtonComp,
6985
+ h(FButton, Object.assign({}, changeViewButtonProp)),
6986
+ nextButtonComp)),
6987
+ h("div", { class: "section-2" }, createCalendar(component))));
6988
+ }
6989
+ function setValue$1(component, value) {
6990
+ const el = component.rootElement;
6991
+ el.kupData.value = value;
6992
+ el.kupData.day = el.kupData.value.getDate();
6993
+ el.kupData.month = el.kupData.value.getMonth();
6994
+ el.kupData.year = el.kupData.value.getFullYear();
6995
+ }
6996
+ function getValue$1(component) {
6997
+ const el = component.rootElement;
6998
+ if (el.kupData.value == null)
6999
+ setValue$1(component, new Date());
7000
+ return el.kupData.value;
7001
+ }
7002
+ function getDay(component) {
7003
+ const el = component.rootElement;
7004
+ if (el.kupData.day != null)
7005
+ return el.kupData.day;
7006
+ return null;
7007
+ }
7008
+ function getMonth(component) {
7009
+ const el = component.rootElement;
7010
+ if (el.kupData.month != null)
7011
+ return el.kupData.month;
7012
+ return null;
7013
+ }
7014
+ function getYear(component) {
7015
+ const el = component.rootElement;
7016
+ if (el.kupData.year != null)
7017
+ return el.kupData.year;
7018
+ return null;
7019
+ }
7020
+ function setDay(component, value) {
7021
+ const el = component.rootElement;
7022
+ el.kupData.day = value;
7023
+ }
7024
+ function setMonth(component, value) {
7025
+ const el = component.rootElement;
7026
+ el.kupData.month = value;
7027
+ }
7028
+ function setYear(component, value) {
7029
+ const el = component.rootElement;
7030
+ el.kupData.year = value;
7031
+ }
7032
+ function getFirstDayIndex(component) {
7033
+ const el = component.rootElement;
7034
+ if (el.kupData.firstDayIndex)
7035
+ return el.kupData.firstDayIndex;
7036
+ return 1;
7037
+ }
7038
+ function getView(component) {
7039
+ const el = component.rootElement;
7040
+ if (el.kupData.calendarView)
7041
+ return el.kupData.calendarView;
7042
+ return SourceEvent.DATE;
7043
+ }
7044
+ function setView(component, value) {
7045
+ const el = component.rootElement;
7046
+ el.kupData.calendarView = value;
7047
+ }
7048
+ function createCalendar(component) {
7049
+ switch (getView(component)) {
7050
+ case SourceEvent.DATE: {
7051
+ return createDaysCalendar(component);
7052
+ }
7053
+ case SourceEvent.MONTH: {
7054
+ return createMonthsCalendar(component);
7055
+ }
7056
+ case SourceEvent.YEAR: {
7057
+ return createYearsCalendar(component);
7058
+ }
7059
+ }
7060
+ }
7061
+ function createDaysCalendar(component) {
7062
+ const days = getDaysOfWeekAsStringByLocale(getFirstDayIndex(component));
7063
+ const selectedDate = getValue$1(component);
7064
+ const selectedDay = getDay(component);
7065
+ const selectedMonth = getMonth(component);
7066
+ const selectedYear = getYear(component);
7067
+ const thead = [];
7068
+ const tbody = [];
7069
+ for (let index = 0; index < days.length; index++) {
7070
+ thead.push(h("th", null,
7071
+ h("span", { class: "item-text" }, days[index])));
7072
+ }
7073
+ const firstMonthDay = new Date(selectedYear, selectedMonth, 1);
7074
+ const lastMonthDay = new Date(selectedYear, selectedMonth + 1, 0);
7075
+ const finish = false;
7076
+ let currentDayIndex = getFirstDayIndex(component);
7077
+ const firstMonthDayIndex = firstMonthDay.getDay();
7078
+ let row = [];
7079
+ let daysForRowAdded = 0;
7080
+ while (!finish) {
7081
+ if (currentDayIndex == firstMonthDayIndex) {
7082
+ break;
7083
+ }
7084
+ row.push(h("td", { class: "item empty" }));
7085
+ currentDayIndex++;
7086
+ daysForRowAdded++;
7087
+ if (currentDayIndex > 6) {
7088
+ currentDayIndex = 0;
7089
+ }
7090
+ }
7091
+ let dayCount = 1;
7092
+ while (dayCount <= lastMonthDay.getDate()) {
7093
+ for (let i = daysForRowAdded; i < 7; i++) {
7094
+ let dayClass = 'item';
7095
+ let dataIndex = {
7096
+ 'data-index': selectedYear.toString() +
7097
+ '-' +
7098
+ fillString((selectedMonth + 1).toString(), '0', 2, true) +
7099
+ '-' +
7100
+ fillString(dayCount.toString(), '0', 2, true),
7101
+ };
7102
+ if ((selectedDay != null && dayCount === selectedDay) ||
7103
+ (dayCount === selectedDate.getDate() &&
7104
+ selectedMonth === selectedDate.getMonth() &&
7105
+ selectedYear === selectedDate.getFullYear())) {
7106
+ dayClass += ' selected';
7107
+ }
7108
+ row.push(h("td", { class: dayClass },
7109
+ h("span", Object.assign({}, dataIndex, { class: "item-number", onClick: () => {
7110
+ onCalendarItemClick(component, dataIndex['data-index']);
7111
+ } }), dayCount)));
7112
+ dayCount++;
7113
+ if (dayCount > lastMonthDay.getDate()) {
7114
+ break;
7115
+ }
7116
+ }
7117
+ if (row.length > 0) {
7118
+ tbody.push(h("tr", null, row));
7119
+ row = [];
7120
+ }
7121
+ daysForRowAdded = 0;
7122
+ }
7123
+ return (h("table", { class: "calendar" },
7124
+ h("thead", null, thead),
7125
+ h("tbody", null, tbody)));
7126
+ }
7127
+ function createMonthsCalendar(component) {
7128
+ const months = getMonthsAsStringByLocale(DateTimeFormatOptionsMonth.SHORT);
7129
+ let selectedDay = getDay(component);
7130
+ const selectedMonth = getMonth(component);
7131
+ const selectedYear = getYear(component);
7132
+ if (selectedDay == null)
7133
+ selectedDay = 1;
7134
+ const tbody = [];
7135
+ let row = [];
7136
+ let monthCount = 0;
7137
+ while (monthCount < 12) {
7138
+ for (let i = 0; i < 4; i++) {
7139
+ let monthClass = 'item';
7140
+ const dataIndex = {
7141
+ 'data-index': selectedYear.toString() +
7142
+ '-' +
7143
+ fillString((monthCount + 1).toString(), '0', 2, true) +
7144
+ '-' +
7145
+ fillString(selectedDay.toString(), '0', 2, true),
7146
+ };
7147
+ if (monthCount === selectedMonth) {
7148
+ monthClass += ' selected';
7149
+ }
7150
+ row.push(h("td", { class: monthClass },
7151
+ h("span", Object.assign({}, dataIndex, { class: "item-number", onClick: () => {
7152
+ onCalendarMonthYearItemClick(component, dataIndex['data-index']);
7153
+ } }), months[monthCount])));
7154
+ monthCount++;
7155
+ }
7156
+ if (row.length > 0) {
7157
+ tbody.push(h("tr", null, row));
7158
+ row = [];
7159
+ }
7160
+ }
7161
+ return (h("table", { class: "calendar" },
7162
+ h("tbody", null, tbody)));
7163
+ }
7164
+ function createYearsCalendar(component) {
7165
+ let selectedDay = getDay(component);
7166
+ const selectedMonth = getMonth(component);
7167
+ const selectedYear = getYear(component);
7168
+ if (selectedDay == null)
7169
+ selectedDay = 1;
7170
+ const yearRange = getInitEndYear(selectedYear);
7171
+ const initYear = yearRange.initYear;
7172
+ const endYear = yearRange.endYear;
7173
+ const tbody = [];
7174
+ let row = [];
7175
+ let yearCount = initYear;
7176
+ while (yearCount <= endYear) {
7177
+ for (let i = 0; i < 4; i++) {
7178
+ let yearClass = 'item';
7179
+ let dataIndex = {
7180
+ 'data-index': yearCount.toString() +
7181
+ '-' +
7182
+ fillString((selectedMonth + 1).toString(), '0', 2, true) +
7183
+ '-' +
7184
+ fillString(selectedDay.toString(), '0', 2, true),
7185
+ };
7186
+ if (yearCount === selectedYear) {
7187
+ yearClass += ' selected';
7188
+ }
7189
+ row.push(h("td", { class: yearClass },
7190
+ h("span", Object.assign({}, dataIndex, { class: "item-number", onClick: () => {
7191
+ onCalendarMonthYearItemClick(component, dataIndex['data-index']);
7192
+ } }), yearCount)));
7193
+ yearCount++;
7194
+ }
7195
+ if (row.length > 0) {
7196
+ tbody.push(h("tr", null, row));
7197
+ row = [];
7198
+ }
7199
+ }
7200
+ return (h("table", { class: "calendar" },
7201
+ h("tbody", null, tbody)));
7202
+ }
7203
+ function getDaysOfWeekAsStringByLocale(firstDayIndex) {
7204
+ const thisWeekDays = thisWeek(firstDayIndex);
7205
+ const monday = thisWeekDays.startDate;
7206
+ const days = [];
7207
+ for (var i = 0; i < 7; i++) {
7208
+ var date = new Date(monday.toISOString());
7209
+ date.setDate(date.getDate() + i);
7210
+ days[i] = getDayAsStringByLocale(date);
7211
+ }
7212
+ return days;
7213
+ }
7214
+ function thisWeek(firstDayIndex) {
7215
+ const firstDay = firstDayThisWeek(firstDayIndex);
7216
+ return {
7217
+ startDate: firstDay,
7218
+ endDate: offsetDate(firstDay, 6),
7219
+ };
7220
+ }
7221
+ function firstDayThisWeek(firstDayIndex) {
7222
+ const d = new Date();
7223
+ const day = d.getDay();
7224
+ // dayIndex0
7225
+ d.setDate(d.getDate() - day);
7226
+ // dayIndexX
7227
+ d.setDate(d.getDate() + firstDayIndex);
7228
+ return d;
7229
+ }
7230
+ const offsetDate = (base, count) => {
7231
+ const date = new Date(base);
7232
+ date.setDate(base.getDate() + count);
7233
+ return date;
7234
+ };
7235
+ function getDayAsStringByLocale(date) {
7236
+ if (date == null) {
7237
+ return '';
7238
+ }
7239
+ const options = {
7240
+ weekday: 'narrow',
7241
+ /** weekday: 'narrow' 'short' 'long' */
7242
+ };
7243
+ const dateTimeFormat = new Intl.DateTimeFormat(dom$3.ketchup.dates.getLocale(), options);
7244
+ return dateTimeFormat.format(date);
7245
+ }
7246
+ function fillString(stringIn, stringForFill, finalLen, addBefore) {
7247
+ const initSize = stringIn.length;
7248
+ let stringOut = '';
7249
+ for (let i = initSize; i < finalLen; i += stringForFill.length) {
7250
+ stringOut += stringForFill;
7251
+ }
7252
+ if (addBefore) {
7253
+ return stringOut + stringIn;
7254
+ }
7255
+ else {
7256
+ return stringIn + stringOut;
7257
+ }
7258
+ }
7259
+ function prevPage(component) {
7260
+ let mm = getMonth(component);
7261
+ let yy = getYear(component);
7262
+ if (getView(component) == SourceEvent.DATE) {
7263
+ if (mm < 1) {
7264
+ mm = 11;
7265
+ yy--;
7266
+ }
7267
+ else {
7268
+ mm--;
7269
+ }
7270
+ }
7271
+ if (getView(component) == SourceEvent.MONTH) {
7272
+ yy--;
7273
+ }
7274
+ if (getView(component) == SourceEvent.YEAR) {
7275
+ let yearRange = getInitEndYear(yy);
7276
+ yy = yearRange.initYear - 1;
7277
+ }
7278
+ setDay(component, null);
7279
+ setMonth(component, mm);
7280
+ setYear(component, yy);
7281
+ refresh(component);
7282
+ }
7283
+ function nextPage(component) {
7284
+ let mm = getMonth(component);
7285
+ let yy = getYear(component);
7286
+ if (getView(component) == SourceEvent.DATE) {
7287
+ if (mm > 10) {
7288
+ mm = 0;
7289
+ yy++;
7290
+ }
7291
+ else {
7292
+ mm++;
7293
+ }
7294
+ }
7295
+ if (getView(component) == SourceEvent.MONTH) {
7296
+ yy++;
7297
+ }
7298
+ if (getView(component) == SourceEvent.YEAR) {
7299
+ const yearRange = getInitEndYear(yy);
7300
+ yy = yearRange.endYear + 1;
7301
+ }
7302
+ setDay(component, null);
7303
+ setMonth(component, mm);
7304
+ setYear(component, yy);
7305
+ refresh(component);
7306
+ }
7307
+ function getInitEndYear(curYear) {
7308
+ const initYear = curYear - (curYear % 10);
7309
+ const endYear = initYear + 16 - 1;
7310
+ return { initYear: initYear, endYear: endYear };
7311
+ }
7312
+ function changeView(component) {
7313
+ setDay(component, null);
7314
+ switch (getView(component)) {
7315
+ case SourceEvent.DATE: {
7316
+ setView(component, SourceEvent.MONTH);
7317
+ break;
7318
+ }
7319
+ case SourceEvent.MONTH: {
7320
+ setView(component, SourceEvent.YEAR);
7321
+ break;
7322
+ }
7323
+ case SourceEvent.YEAR: {
7324
+ setView(component, SourceEvent.DATE);
7325
+ break;
7326
+ }
7327
+ }
7328
+ refresh(component);
7329
+ }
7330
+ function refresh(component) {
7331
+ component.refresh();
7332
+ }
7333
+ function onCalendarMonthYearItemClick(component, value) {
7334
+ let d;
7335
+ if (dom$3.ketchup.dates.isValid(value, KupDatesFormats.ISO_DATE)) {
7336
+ d = new Date(value);
7337
+ }
7338
+ else {
7339
+ d = new Date();
7340
+ }
7341
+ setMonth(component, d.getMonth());
7342
+ setYear(component, d.getFullYear());
7343
+ switch (getView(component)) {
7344
+ case SourceEvent.MONTH: {
7345
+ setView(component, SourceEvent.DATE);
7346
+ break;
7347
+ }
7348
+ case SourceEvent.YEAR: {
7349
+ setView(component, SourceEvent.MONTH);
7350
+ break;
7351
+ }
7352
+ }
7353
+ refresh(component);
7354
+ }
7355
+ function onCalendarItemClick(component, value) {
7356
+ let d;
7357
+ if (dom$3.ketchup.dates.isValid(value, KupDatesFormats.ISO_DATE)) {
7358
+ d = new Date(value);
7359
+ }
7360
+ else {
7361
+ d = new Date();
7362
+ }
7363
+ setValue$1(component, d);
7364
+ component.onKupClick(component.rootElement.id, value);
7365
+ refresh(component);
7366
+ }
7367
+
7368
+ const dom$2 = document.documentElement;
7369
+ function prepareClock(component) {
7370
+ const el = component.rootElement;
7371
+ el.kupData = {};
7372
+ if (component.data && component.data.options) {
7373
+ const opts = component.data.options;
7374
+ const obj = opts.initialValue;
7375
+ if (opts.initialValue) {
7376
+ if (obj && obj.k)
7377
+ el.kupData.value = obj.k;
7378
+ else
7379
+ el.kupData.value = opts.initialValue;
7380
+ }
7381
+ if (opts.manageSeconds != null)
7382
+ el.kupData.manageSeconds = opts.manageSeconds;
7383
+ if (opts.hoursActive != null)
7384
+ el.kupData.hoursActive = opts.hoursActive;
7385
+ if (opts.minutesActive != null)
7386
+ el.kupData.minutesActive = opts.minutesActive;
7387
+ if (opts.secondsActive != null)
7388
+ el.kupData.secondsActive = opts.secondsActive;
7389
+ }
7390
+ else {
7391
+ el.kupData.hoursActive = true;
7392
+ }
7393
+ return prepTimeArea(component);
7394
+ }
7395
+ function isManageSeconds(component) {
7396
+ const el = component.rootElement;
7397
+ if (el.kupData.manageSeconds != null)
7398
+ return el.kupData.manageSeconds;
7399
+ return false;
7400
+ }
7401
+ function getValue(component) {
7402
+ const el = component.rootElement;
7403
+ if (el.kupData.value)
7404
+ return el.kupData.value;
7405
+ return '';
7406
+ }
7407
+ function setValue(component, value) {
7408
+ const el = component.rootElement;
7409
+ el.kupData.value = value;
7410
+ }
7411
+ function getHoursActive(component) {
7412
+ const el = component.rootElement;
7413
+ if (el.kupData.hoursActive != null)
7414
+ return el.kupData.hoursActive;
7415
+ return false;
7416
+ }
7417
+ function getMinutesActive(component) {
7418
+ const el = component.rootElement;
7419
+ if (el.kupData.minutesActive != null)
7420
+ return el.kupData.minutesActive;
7421
+ return false;
7422
+ }
7423
+ function getSecondsActive(component) {
7424
+ const el = component.rootElement;
7425
+ if (el.kupData.secondsActive != null)
7426
+ return el.kupData.secondsActive;
7427
+ return false;
7428
+ }
7429
+ function setElement(component, elem) {
7430
+ if (elem) {
7431
+ const el = component.rootElement;
7432
+ el.kupData[elem.id] = elem;
7433
+ }
7434
+ }
7435
+ function getElement(component, elemId) {
7436
+ return component.rootElement.shadowRoot.getElementById(elemId);
7437
+ }
7438
+ function prepTimeArea(component) {
7439
+ return (h("div", { id: "clock-div", onBlur: (e) => {
7440
+ if (!isRelatedTargetInThisComponent(e, component)) {
7441
+ onKupBlur(component);
7442
+ }
7443
+ } }, createClock(component)));
7444
+ }
7445
+ function onKupClockItemClick(e, component, value) {
7446
+ if (e != null) {
7447
+ if (value == null) {
7448
+ value = e.detail.selected.value;
7449
+ }
7450
+ }
7451
+ setClockValueSelected(component, value);
7452
+ component.onKupClick(component.rootElement.id, value);
7453
+ }
7454
+ function setClockValueSelected(component, newValue) {
7455
+ if (newValue == null) {
7456
+ newValue = getValue(component);
7457
+ }
7458
+ if (newValue == null) {
7459
+ return;
7460
+ }
7461
+ setValue(component, newValue);
7462
+ }
7463
+ function isRelatedTargetInThisComponent(e, component) {
7464
+ if (!e.relatedTarget) {
7465
+ return false;
7466
+ }
7467
+ let id = e.relatedTarget.id;
7468
+ if (id == null || id.trim() == '') {
7469
+ return false;
7470
+ }
7471
+ if (id == getElement(component, KupCardBuiltinClockElements.CLOCK).id) {
7472
+ return true;
7473
+ }
7474
+ let idConc = '#clock-div#confirm#';
7475
+ return idConc.indexOf('#' + id + '#') >= 0;
7476
+ }
7477
+ function onKupBlur(component) {
7478
+ component.onKupClick(component.rootElement.id, getValue(component));
7479
+ }
7480
+ function createClock(component) {
7481
+ let selectedTime;
7482
+ if (getValue(component)) {
7483
+ selectedTime = dom$2.ketchup.dates.toDate(getValue(component), isManageSeconds(component)
7484
+ ? KupDatesFormats.ISO_TIME
7485
+ : KupDatesFormats.ISO_TIME_WITHOUT_SECONDS);
7486
+ }
7487
+ else {
7488
+ selectedTime = new Date();
7489
+ }
7490
+ let hh = selectedTime.getHours().toString();
7491
+ let mm = selectedTime.getMinutes().toString();
7492
+ if (hh.length === 1) {
7493
+ hh = '0' + hh;
7494
+ }
7495
+ if (mm.length === 1) {
7496
+ mm = '0' + mm;
7497
+ }
7498
+ let ss = '';
7499
+ if (isManageSeconds(component)) {
7500
+ ss = selectedTime.getSeconds().toString();
7501
+ if (ss.length === 1) {
7502
+ ss = '0' + ss;
7503
+ }
7504
+ }
7505
+ let seconds;
7506
+ let time = [
7507
+ h("span", { id: KupCardBuiltinClockElements.HOURS, class: `h ${getHoursActive(component) ? KupCardCSSClasses.VISIBLE : ''}`, ref: (el) => {
7508
+ setElement(component, el);
7509
+ }, onClick: () => {
7510
+ setClockViewActive(component, true, false, false);
7511
+ switchView(component, KupCardBuiltinClockElements.HOURS, KupCardBuiltinClockElements.HOURSCIRCLE);
7512
+ }, innerHTML: hh }),
7513
+ ':',
7514
+ h("span", { id: KupCardBuiltinClockElements.MINUTES, class: `m ${getMinutesActive(component) ? KupCardCSSClasses.VISIBLE : ''}`, ref: (el) => {
7515
+ setElement(component, el);
7516
+ }, onClick: () => {
7517
+ setClockViewActive(component, false, true, false);
7518
+ switchView(component, KupCardBuiltinClockElements.MINUTES, KupCardBuiltinClockElements.MINUTESCIRCLE);
7519
+ }, innerHTML: mm }),
7520
+ ];
7521
+ if (isManageSeconds(component)) {
7522
+ seconds = (h("div", { id: KupCardBuiltinClockElements.SECONDSCIRCLE, class: `circle seconds ${getSecondsActive(component) ? KupCardCSSClasses.VISIBLE : ''}`, ref: (el) => {
7523
+ setElement(component, el);
7524
+ } },
7525
+ buildClock(60, 101, 115, 115, 'sec unit', 0, 5, ss, component),
7526
+ h("div", { class: "mid" })));
7527
+ time.push(':', h("span", { id: KupCardBuiltinClockElements.SECONDS, class: `s ${getSecondsActive(component) ? KupCardCSSClasses.VISIBLE : ''}`, ref: (el) => {
7528
+ setElement(component, el);
7529
+ }, onClick: () => {
7530
+ setClockViewActive(component, false, false, true);
7531
+ switchView(component, KupCardBuiltinClockElements.SECONDS, KupCardBuiltinClockElements.SECONDSCIRCLE);
7532
+ }, innerHTML: ss }));
7533
+ }
7534
+ const confirmButtonProp = {
7535
+ label: 'Ok',
7536
+ styling: FButtonStyling.FLAT,
7537
+ onClick: (e) => {
7538
+ setTimeFromClock(e, component);
7539
+ },
7540
+ };
7541
+ return (h("div", { class: "clock", id: KupCardBuiltinClockElements.CLOCK, ref: (el) => {
7542
+ setElement(component, el);
7543
+ } },
7544
+ h("div", { class: "top" }, time),
7545
+ h("div", { id: KupCardBuiltinClockElements.HOURSCIRCLE, class: `circle hours ${getHoursActive(component) ? KupCardCSSClasses.VISIBLE : ''}`, ref: (el) => {
7546
+ setElement(component, el);
7547
+ } },
7548
+ buildClock(12, 101, 105, 105, 'hour', 0, 1, hh, component),
7549
+ buildClock(12, 64, 110, 110, 'hour2', 12, 1, hh, component),
7550
+ h("div", { class: "mid" })),
7551
+ h("div", { id: KupCardBuiltinClockElements.MINUTESCIRCLE, class: `circle minutes ${getMinutesActive(component) ? KupCardCSSClasses.VISIBLE : ''}`, ref: (el) => {
7552
+ setElement(component, el);
7553
+ } },
7554
+ buildClock(60, 101, 115, 115, 'min unit', 0, 5, mm, component),
7555
+ h("div", { class: "mid" })),
7556
+ seconds,
7557
+ h("div", { class: "actions" },
7558
+ h(FButton, Object.assign({}, confirmButtonProp)))));
7559
+ }
7560
+ function setClockViewActive(component, hoursAct, minutesAct, secondsAct) {
7561
+ const el = component.rootElement;
7562
+ el.kupData.hoursActive = hoursAct;
7563
+ el.kupData.minutesActive = minutesAct;
7564
+ el.kupData.secondsActive = secondsAct;
7565
+ }
7566
+ function switchView(component, elId, elCircleId) {
7567
+ getElement(component, KupCardBuiltinClockElements.HOURS).classList.remove(KupCardCSSClasses.VISIBLE);
7568
+ getElement(component, KupCardBuiltinClockElements.HOURSCIRCLE).classList.remove(KupCardCSSClasses.VISIBLE);
7569
+ getElement(component, KupCardBuiltinClockElements.MINUTES).classList.remove(KupCardCSSClasses.VISIBLE);
7570
+ getElement(component, KupCardBuiltinClockElements.MINUTESCIRCLE).classList.remove(KupCardCSSClasses.VISIBLE);
7571
+ if (isManageSeconds(component)) {
7572
+ getElement(component, KupCardBuiltinClockElements.SECONDS).classList.remove(KupCardCSSClasses.VISIBLE);
7573
+ getElement(component, KupCardBuiltinClockElements.SECONDSCIRCLE).classList.remove(KupCardCSSClasses.VISIBLE);
7574
+ }
7575
+ getElement(component, elId).classList.add(KupCardCSSClasses.VISIBLE);
7576
+ getElement(component, elCircleId).classList.add(KupCardCSSClasses.VISIBLE);
7577
+ }
7578
+ function buildClock(num, radius, offsetX, offsetY, className, add, separator, selectedValue, component) {
7579
+ let x, y;
7580
+ const divsArray = [];
7581
+ for (let n = 0; n < num; n++) {
7582
+ x = radius * Math.cos((n / num) * 2 * Math.PI);
7583
+ y = radius * Math.sin((n / num) * 2 * Math.PI);
7584
+ let text;
7585
+ let dataValue = {};
7586
+ let style = {};
7587
+ if (separator == 1) {
7588
+ if (n + 3 > 12) {
7589
+ text = n + 3 - 12 + add + '';
7590
+ }
7591
+ else {
7592
+ let calc = n + 3 + add;
7593
+ if (calc !== 24) {
7594
+ text = n + 3 + add + '';
7595
+ }
7596
+ else {
7597
+ text = '00';
7598
+ }
7599
+ }
7600
+ dataValue['data-value'] = text;
7601
+ }
7602
+ else {
7603
+ if (n % separator == 0) {
7604
+ if (n + 15 >= 60) {
7605
+ dataValue['data-value'] = n + 15 - 60 + '';
7606
+ text = n + 15 - 60 + add + '';
7607
+ }
7608
+ else {
7609
+ dataValue['data-value'] = n + 15 + '';
7610
+ text = n + 15 + add + '';
7611
+ }
7612
+ }
7613
+ else {
7614
+ if (n + 15 >= 60) {
7615
+ dataValue['data-value'] = n + 15 - 60 + '';
7616
+ text = '⋅';
7617
+ }
7618
+ else {
7619
+ dataValue['data-value'] = n + 15 + '';
7620
+ text = '\u00B7';
7621
+ }
7622
+ }
7623
+ }
7624
+ style['left'] = x + offsetX + 'px';
7625
+ style['top'] = y + offsetY + 'px';
7626
+ if (dataValue['data-value'].length === 1) {
7627
+ dataValue['data-value'] = '0' + dataValue['data-value'];
7628
+ }
7629
+ let elClass = className;
7630
+ if (dataValue['data-value'] === selectedValue) {
7631
+ elClass += ' selected';
7632
+ }
7633
+ let div = (h("div", Object.assign({ class: elClass, style: style }, dataValue, { onClick: (e) => setClockTime(e, component) }), text));
7634
+ divsArray.push(div);
7635
+ }
7636
+ return divsArray;
7637
+ }
7638
+ function setTimeFromClock(e, component) {
7639
+ const hoursEl = getElement(component, KupCardBuiltinClockElements.HOURS);
7640
+ const minutesEl = getElement(component, KupCardBuiltinClockElements.MINUTES);
7641
+ const secondsEl = getElement(component, KupCardBuiltinClockElements.SECONDS);
7642
+ let text = hoursEl.innerText + ':' + minutesEl.innerText;
7643
+ if (isManageSeconds(component)) {
7644
+ text += ':' + secondsEl.innerText;
7645
+ }
7646
+ onKupClockItemClick(e, component, text);
7647
+ }
7648
+ function setClockTime(e, component) {
7649
+ const hoursEl = getElement(component, KupCardBuiltinClockElements.HOURS);
7650
+ const minutesEl = getElement(component, KupCardBuiltinClockElements.MINUTES);
7651
+ const hoursCircleEl = getElement(component, KupCardBuiltinClockElements.HOURSCIRCLE);
7652
+ const minutesCircleEl = getElement(component, KupCardBuiltinClockElements.MINUTESCIRCLE);
7653
+ const secondsEl = getElement(component, KupCardBuiltinClockElements.SECONDS);
7654
+ const secondsCircleEl = getElement(component, KupCardBuiltinClockElements.SECONDSCIRCLE);
7655
+ let time = e.target.getAttribute('data-value');
7656
+ if (getHoursActive(component)) {
7657
+ hoursEl.innerText = time;
7658
+ hoursCircleEl.querySelector('.selected').classList.remove('selected');
7659
+ setClockViewActive(component, false, true, false);
7660
+ switchView(component, KupCardBuiltinClockElements.MINUTES, KupCardBuiltinClockElements.MINUTESCIRCLE);
7661
+ }
7662
+ else if (getMinutesActive(component)) {
7663
+ minutesEl.innerText = time;
7664
+ minutesCircleEl.querySelector('.selected').classList.remove('selected');
7665
+ if (isManageSeconds(component)) {
7666
+ setClockViewActive(component, false, false, true);
7667
+ switchView(component, KupCardBuiltinClockElements.SECONDS, KupCardBuiltinClockElements.SECONDSCIRCLE);
7668
+ }
7669
+ else {
7670
+ setTimeFromClock(e, component);
7671
+ setClockViewActive(component, true, false, false);
7672
+ switchView(component, KupCardBuiltinClockElements.HOURS, KupCardBuiltinClockElements.HOURSCIRCLE);
7673
+ }
7674
+ }
7675
+ else {
7676
+ secondsEl.innerText = time;
7677
+ secondsCircleEl.querySelector('.selected').classList.remove('selected');
7678
+ setTimeFromClock(e, component);
7679
+ setClockViewActive(component, true, false, false);
7680
+ switchView(component, KupCardBuiltinClockElements.HOURS, KupCardBuiltinClockElements.HOURSCIRCLE);
7681
+ }
7682
+ e.target.classList.add('selected');
7683
+ }
7684
+
7685
+ /**
7686
+ * 1st builtin card layout, calendar view.
7687
+ * @param {KupCard} component - Card component.
7688
+ * @returns {VNode} 1st builtin layout virtual node.
7689
+ */
7690
+ function create1$5(component) {
7691
+ return (h("div", { class: `builtin-layout-${component.layoutNumber} ${KupCardCSSClasses.BUILTIN_CARD}` }, prepareCalendar(component)));
7692
+ }
7693
+ /**
7694
+ * 2st builtin card layout, time view.
7695
+ * @param {KupCard} component - Card component.
7696
+ * @returns {VNode} 2st builtin layout virtual node.
7697
+ */
7698
+ function create2$4(component) {
7699
+ return (h("div", { class: `builtin-layout-${component.layoutNumber} ${KupCardCSSClasses.BUILTIN_CARD}` }, prepareClock(component)));
7700
+ }
7701
+
7702
+ const builtinLayouts = /*#__PURE__*/Object.freeze({
7703
+ __proto__: null,
7704
+ create1: create1$5,
7705
+ create2: create2$4
7706
+ });
7707
+
6896
7708
  /**
6897
7709
  * Component IDs.
6898
7710
  */
@@ -7115,7 +7927,7 @@ function layoutSpecificEvents(component, e) {
7115
7927
  * @param {KupCard} component - Card component.
7116
7928
  * @returns {VNode} 1st collapsible layout virtual node.
7117
7929
  */
7118
- function create1$3(component) {
7930
+ function create1$4(component) {
7119
7931
  //Chips
7120
7932
  const chipArray = component.data['chip']
7121
7933
  ? component.data['chip']
@@ -7190,7 +8002,7 @@ function create2$3(component) {
7190
8002
 
7191
8003
  const collapsibleLayouts = /*#__PURE__*/Object.freeze({
7192
8004
  __proto__: null,
7193
- create1: create1$3,
8005
+ create1: create1$4,
7194
8006
  create2: create2$3
7195
8007
  });
7196
8008
 
@@ -7200,7 +8012,7 @@ const dom$1 = document.documentElement;
7200
8012
  * @param {KupCard} component - Card component.
7201
8013
  * @returns {VNode} 1st standard layout virtual node.
7202
8014
  */
7203
- function create1$2(component) {
8015
+ function create1$3(component) {
7204
8016
  //Title, subtitle and description
7205
8017
  const textArray = component.data['text']
7206
8018
  ? component.data['text']
@@ -7424,7 +8236,7 @@ function getVisibleColumn(data) {
7424
8236
 
7425
8237
  const dialogLayouts = /*#__PURE__*/Object.freeze({
7426
8238
  __proto__: null,
7427
- create1: create1$2,
8239
+ create1: create1$3,
7428
8240
  create2: create2$2,
7429
8241
  create3: create3$2,
7430
8242
  create4: create4$2,
@@ -7432,6 +8244,22 @@ const dialogLayouts = /*#__PURE__*/Object.freeze({
7432
8244
  create6: create6$2
7433
8245
  });
7434
8246
 
8247
+ /**
8248
+ * 1st free card layout, only slots.
8249
+ * @param {KupCard} component - Card component.
8250
+ * @returns {VNode} 1st standard layout virtual node.
8251
+ */
8252
+ function create1$2(component) {
8253
+ //Slot list
8254
+ const slots = Array.prototype.slice.call(component.rootElement.children, 0);
8255
+ return (h("div", { class: `free-layout-${component.layoutNumber}` }, slots.length > 0 ? compList(slots, 'slot') : null));
8256
+ }
8257
+
8258
+ const freeLayouts = /*#__PURE__*/Object.freeze({
8259
+ __proto__: null,
8260
+ create1: create1$2
8261
+ });
8262
+
7435
8263
  /**
7436
8264
  * 1st scalable card layout, column of 2 texts.
7437
8265
  * @param {KupCard} component - Card component.
@@ -8469,7 +9297,7 @@ const standardLayouts = /*#__PURE__*/Object.freeze({
8469
9297
  create15: create15
8470
9298
  });
8471
9299
 
8472
- const kupCardCss = ".collapsible-layout-1{color:var(--kup-text-color);box-shadow:0px 0px 7.5px 0px rgba(128, 128, 128, 0.5);display:flex;height:100%;overflow:hidden;width:100%;box-sizing:border-box;position:relative}.collapsible-layout-1 .section-1{background-color:var(--color-0);display:flex;flex:0 0 10%;max-width:10%}.collapsible-layout-1 .section-2{box-sizing:border-box;height:100%;display:flex;flex:0 0 90%;flex-direction:column;max-width:90%}.collapsible-layout-1 .section-2 .sub-1{min-height:1.5em;display:flex;padding:0.6rem 0.8em 0;font-weight:bold;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.collapsible-layout-1 .section-2 .sub-1 div{font-size:1em}.collapsible-layout-1 .section-2 .sub-1 .left{text-align:left;width:80%}.collapsible-layout-1 .section-2 .sub-1 .right{text-align:right;width:20%}.collapsible-layout-1 .section-2 .sub-2{text-align:left;padding:0.6em 0.8em;font-size:0.875em}.collapsible-layout-2{color:var(--kup-text-color);box-shadow:rgba(0, 0, 0, 0.2) 0px 2px 1px -1px, rgba(0, 0, 0, 0.14) 0px 1px 1px 0px, rgba(0, 0, 0, 0.12) 0px 1px 3px 0px;border-radius:4px;display:flex;height:100%;overflow:hidden;width:100%;box-sizing:border-box;position:relative}.collapsible-layout-2 .section-1{box-sizing:border-box;height:100%;display:flex;flex-direction:column;max-width:100%;width:100%}.collapsible-layout-2 .section-1 .sub-1{text-align:left;padding:0.6em 0.8em 0;font-size:1em;font-weight:bold;max-width:75%}.collapsible-layout-2 .section-1 .sub-2{text-align:left;padding:0.6em 0.8em;max-width:75%}.collapsible-layout-2 .section-1 .sub-2 div{font-size:0.875em}.collapsible-layout-2 .section-1 .sub-3{color:var(--color-0);text-align:center;position:absolute;top:1em;right:1em;max-width:25%;text-overflow:ellipsis;overflow:hidden;max-height:calc(24px + 2.25em);padding:0 1em}.collapsible-layout-2 .section-1 .sub-3 kup-image{margin:auto}.collapsible-layout-2 .section-1 .sub-3 div{font-size:1.25em}.collapsible-card .collapsible-trigger{display:none;position:absolute;bottom:0;left:0;height:50px;width:100%}.collapsible-card .collapsible-trigger kup-button{margin:auto;width:48px}.collapsible-card .collapsible-wrapper{overflow:auto}.collapsible-card.collapsible-active{padding-bottom:50px}.collapsible-card.collapsible-active .collapsible-trigger{display:block}.dialog-layout-1{background-color:var(--kup-background-color);box-shadow:0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12);color:var(--kup-text-color);display:flex;flex-direction:column;height:100%;width:100%;overflow:auto}.dialog-layout-1 .section-1{display:grid;grid-gap:0.5em;grid-template-columns:repeat(2, auto);grid-template-rows:repeat(auto-fill, 1.25em);height:100%;padding:0.5em;overflow:auto;touch-action:none}.dialog-layout-1 .section-1 .text{min-width:max-content}.dialog-layout-1 .section-1 .text:not(.label){font-weight:bold}.dialog-layout-2{background-color:var(--kup-background-color);box-shadow:0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12);display:flex;flex-direction:column;height:100%;width:100%}.dialog-layout-2 .section-1{text-align:center;touch-action:none;padding-bottom:1em}.dialog-layout-2 .section-1 .text{padding-top:0.75em}.dialog-layout-2 .section-1 .text:not(.label){font-weight:bold}.dialog-layout-2 .section-2{border-top:1px solid var(--kup-border-color);display:grid;grid-gap:0.5em;grid-template-columns:repeat(2, auto);grid-template-rows:repeat(auto-fill, 1.25em);height:100%;padding:0.5em;overflow:auto;touch-action:none}.dialog-layout-2 .section-2 .text{min-width:max-content}.dialog-layout-2 .section-2 .text:not(.label){font-weight:bold}.dialog-layout-3{background-color:var(--kup-background-color);border-radius:4px;box-sizing:border-box;box-shadow:0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12);display:flex;overflow:visible;flex-direction:column;height:100%;position:relative;width:100%}.dialog-layout-3 kup-button{margin-left:0}.dialog-layout-3 .section-1{background-color:var(--kup-background-color);display:flex;justify-content:flex-start;align-items:center;box-sizing:border-box;box-shadow:0px 1px 3px 0px var(--kup-text-color);height:52px;width:100%;text-align:right;touch-action:none}.dialog-layout-3 .section-1 kup-button{margin-right:0.25em}.dialog-layout-3 .section-2{height:100%;width:100%;overflow:auto;max-height:50vh}.dialog-layout-3 ::slotted(.text){color:var(--kup-text-color);font-family:var(--kup-font-family-monospace);white-space:nowrap;border-bottom:1px solid var(--kup-border-color);line-height:1.75em}.dialog-layout-4{background-color:var(--kup-background-color);box-shadow:0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12);display:flex;flex-direction:column;height:100%;width:100%}.dialog-layout-4 .section-1{display:flex;justify-content:space-evenly}.dialog-layout-4 .section-2{height:100%;overflow:auto;padding:0.25em;touch-action:none}.dialog-layout-5{background-color:var(--kup-background-color);box-shadow:0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12);display:flex;flex-direction:column;height:100%;width:100%}.dialog-layout-5 .section-1{display:flex;justify-content:space-evenly}.dialog-layout-5 .section-2{height:100%;overflow:auto}.dialog-layout-6{background-color:var(--kup-background-color);box-shadow:0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12);display:flex;flex-direction:column;height:100%;max-height:95vh;max-width:95vw;width:100%}.dialog-layout-6 .section-1{display:flex;height:100%;justify-content:space-evenly;overflow:auto}.dialog-layout-6 kup-data-table{width:100%}#drag-handle{-ms-touch-action:none;touch-action:none}#drag-handle:not(.header-bar){display:flex;height:100%}#drag-handle:not(.header-bar) .f-image{margin:auto}#drag-handle.header-bar{background-color:var(--kup-title-background-color);color:var(--kup-title-color);display:flex;flex-direction:row;height:2em;position:relative;width:100%}#drag-handle.header-bar .dialog-title{font-weight:bold;line-height:2em;padding-left:0.5em;padding-right:2em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#drag-handle.header-bar #dialog-close{cursor:pointer;margin-right:0;transition:opacity 0.25s;position:absolute;right:0;background:var(--kup-title-background-color)}#drag-handle.header-bar #dialog-close:hover{opacity:0.5}.scalable-layout-1 .descr{font-size:70%;width:100%}.scalable-layout-1 .value{font-size:220%}.scalable-layout-2 #image1 img{object-fit:contain}.scalable-layout-2 .scalable-element{display:grid;grid-template-columns:1fr 1fr 0.5fr 0.5fr}.scalable-layout-2 .icon{margin:auto;font-size:150%;margin-right:5%}.scalable-layout-2 .value-int{font-size:250%}.scalable-layout-2 .value-dec,.scalable-layout-2 .unit{font-size:130%;margin-top:auto;margin-bottom:10%}.scalable-layout-2 .value-dec{margin-left:2%}.scalable-layout-2 .unit{margin-left:4%}.scalable-layout-3 .descr{font-size:70%;width:100%}.scalable-layout-3 .value{font-size:220%}.scalable-layout-4 #image1 img{object-fit:contain}.scalable-layout-4 .scalable-element{display:grid;grid-template-columns:1fr 5fr}.scalable-layout-4 .icon{font-size:150%;margin:auto 5% auto auto}.scalable-layout-4 .value-and-unit{display:flex;color:var(--color-0)}.scalable-layout-4 .value-and-unit .value-int{font-size:250%}.scalable-layout-4 .value-and-unit .value-dec,.scalable-layout-4 .value-and-unit .unit{font-size:130%;margin-top:auto;margin-bottom:10%}.scalable-layout-4 .value-and-unit .value-dec{margin-left:2%}.scalable-layout-4 .value-and-unit .unit{margin-left:4%}.scalable-layout-4 .descr{margin-left:4%;text-align:left;font-size:80%;width:100%;min-width:max-content}.scalable-layout-5 #image1 img{object-fit:contain}.scalable-layout-5 .scalable-element{display:flex}.scalable-layout-5 .text-wrapper{margin-right:10px}.scalable-layout-5 .icon{font-size:150%;margin:auto;margin-bottom:0.35em}.scalable-layout-5 .value{font-size:200%}.scalable-layout-5 .descr{text-align:right;font-size:65%;width:100%;min-width:max-content;position:relative;bottom:-10%}.scalable-layout-6 #image1 img{object-fit:contain}.scalable-layout-6 .scalable-element{display:flex;justify-content:space-between}.scalable-layout-6 .text-wrapper{margin-left:1em}.scalable-layout-6 .icon{font-size:150%;margin:auto}.scalable-layout-6 .value{font-size:220%;text-align:right}.scalable-layout-6 .descr{font-size:80%;text-align:right;width:100%;min-width:max-content}.scalable-layout-7 #image1 img{object-fit:contain}.scalable-layout-7 .scalable-element{display:flex}.scalable-layout-7 .text-wrapper{margin-right:0.5em}.scalable-layout-7 .icon{font-size:150%;margin:auto;margin-top:0.35em}.scalable-layout-7 .value{font-size:200%}.scalable-layout-7 .descr{text-align:right;font-size:65%;width:100%;min-width:max-content;position:relative;bottom:10%}.scalable-layout-8 #image1 img{object-fit:contain}.scalable-layout-8 .scalable-element{align-items:center;display:grid;grid-template-columns:0.25fr 1.25fr 0.25fr}.scalable-layout-8 .icon{margin-right:4%;font-size:75%}.scalable-layout-8 .value{margin:0 10%;font-size:250%}.scalable-layout-8 .descr{font-size:60%;text-align:left}.scalable-card{align-items:center;box-shadow:0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12);border-radius:4px;display:flex;font-size:calc(var(--kup-font-size) * var(--kup_card_multiplier));height:100%;justify-content:center;position:relative;text-align:center;word-break:normal;width:100%}.standard-layout-1{background-color:var(--kup-background-color);border-radius:4px;box-sizing:border-box;box-shadow:0 2px 1px -1px rgba(128, 128, 128, 0.1), 0 1px 1px 0 rgba(128, 128, 128, 0.1), 0 1px 3px 0 rgba(128, 128, 128, 0.6);display:flex;flex-direction:column;height:100%;position:relative;width:100%;overflow:auto}.standard-layout-1 kup-button{margin-right:0}.standard-layout-1 #image1 img{object-fit:cover}.standard-layout-1.has-actions{padding-bottom:52px}.standard-layout-1.has-actions .section-2 .sub-2.description{padding-bottom:0}.standard-layout-1 .section-1{height:60%;width:100%}.standard-layout-1 .section-2{height:40%;width:100%;overflow:auto}.standard-layout-1 .section-2 .sub-2.title{color:var(--kup-text-color);padding:0 1em;padding-top:1em;text-align:left}.standard-layout-1 .section-2 .sub-2.title div{font-size:1.25em;font-weight:500;letter-spacing:0.0125em}.standard-layout-1 .section-2 .sub-2.subtitle{opacity:0.6;padding:0 1em;padding-bottom:1em;text-align:left}.standard-layout-1 .section-2 .sub-2.subtitle div{font-size:0.875em;font-weight:500;letter-spacing:0.0071428571em;line-height:1.375em}.standard-layout-1 .section-2 .sub-2.description{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;opacity:0.6;padding:0 1em;padding-bottom:1em;text-align:left}.standard-layout-1 .section-2 .sub-2.description div{font-size:0.875em;font-weight:400;letter-spacing:0.0178571429em;line-height:1.25em}.standard-layout-1 .section-3{display:flex;justify-content:flex-end;align-items:center;box-sizing:border-box;position:absolute;left:0;bottom:0;padding:2px 1em;height:52px;width:100%;text-align:right}.standard-layout-1 .section-3 kup-button{margin-left:0.25em}.standard-layout-2{background-color:var(--kup-background-color);border-radius:4px;box-sizing:border-box;box-shadow:0 2px 1px -1px rgba(128, 128, 128, 0.1), 0 1px 1px 0 rgba(128, 128, 128, 0.1), 0 1px 3px 0 rgba(128, 128, 128, 0.6);display:flex;flex-direction:column;height:100%;position:relative;width:100%;overflow:auto}.standard-layout-2 kup-button{margin-right:0}.standard-layout-2 #image1 img{object-fit:cover}.standard-layout-2.has-actions{padding-bottom:52px}.standard-layout-2.has-actions .section-3 .sub-3.description{padding-bottom:0}.standard-layout-2 .section-1{width:100%}.standard-layout-2 .section-1 .sub-1.title{color:var(--kup-text-color);padding:0 1em;padding-top:1em;text-align:left}.standard-layout-2 .section-1 .sub-1.title div{font-size:1.25em;font-weight:500;letter-spacing:0.0125em}.standard-layout-2 .section-1 .sub-1.subtitle{opacity:0.6;padding:0 1em;padding-bottom:1em;text-align:left}.standard-layout-2 .section-1 .sub-1.subtitle div{font-size:0.875em;font-weight:500;letter-spacing:0.0071428571em;line-height:1.375em}.standard-layout-2 .section-2{height:75%;width:100%}.standard-layout-2 .section-3{width:100%;overflow:auto}.standard-layout-2 .section-3 .sub-3.description{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;opacity:0.6;padding:0 1em 8px;padding-top:1em;text-align:left}.standard-layout-2 .section-3 .sub-3.description div{font-size:0.875em;font-weight:400;letter-spacing:0.0178571429em;line-height:1.25em}.standard-layout-2 .section-4{display:flex;justify-content:flex-end;align-items:center;box-sizing:border-box;position:absolute;left:0;bottom:0;padding:2px 1em;height:52px;width:100%;text-align:right}.standard-layout-2 .section-4 kup-button{margin-left:0.25em}.standard-layout-3{background-color:var(--kup-background-color);border-radius:4px;box-sizing:border-box;box-shadow:0 2px 1px -1px rgba(128, 128, 128, 0.1), 0 1px 1px 0 rgba(128, 128, 128, 0.1), 0 1px 3px 0 rgba(128, 128, 128, 0.6);display:flex;flex-direction:column;height:100%;position:relative;width:100%;overflow:auto}.standard-layout-3 kup-button{margin-right:0}.standard-layout-3 #image1 img{object-fit:cover}.standard-layout-3.has-actions{padding-bottom:52px}.standard-layout-3.has-actions .section-2 .sub-2.description{padding-bottom:0}.standard-layout-3 .section-1{height:75%;width:100%}.standard-layout-3 .section-1 .media{position:relative;height:100%;width:100%}.standard-layout-3 .section-1 .text-on-media{position:absolute;bottom:0;left:0}.standard-layout-3 .section-1 .sub-1.title{color:white;padding:0 1em;padding-top:1em;text-align:left}.standard-layout-3 .section-1 .sub-1.title div{font-size:1.25em;font-weight:500;letter-spacing:0.0125em}.standard-layout-3 .section-1 .sub-1.subtitle{color:white;opacity:0.6;padding:0 1em;padding-bottom:1em;text-align:left}.standard-layout-3 .section-1 .sub-1.subtitle div{font-size:0.875em;font-weight:500;letter-spacing:0.0071428571em;line-height:1.375em}.standard-layout-3 .section-2{width:100%;overflow:auto}.standard-layout-3 .section-2 .sub-2.description{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;opacity:0.6;padding:0 1em 8px;padding-top:1em;text-align:left}.standard-layout-3 .section-2 .sub-2.description div{font-size:0.875em;font-weight:400;letter-spacing:0.0178571429em;line-height:1.25em}.standard-layout-3 .section-3{display:flex;justify-content:flex-end;align-items:center;box-sizing:border-box;position:absolute;left:0;bottom:0;padding:2px 1em;height:52px;width:100%;text-align:right}.standard-layout-3 .section-3 kup-button{margin-left:0.25em}.standard-layout-4{background-color:var(--kup-background-color);border-radius:4px;box-sizing:border-box;box-shadow:0 2px 1px -1px rgba(128, 128, 128, 0.1), 0 1px 1px 0 rgba(128, 128, 128, 0.1), 0 1px 3px 0 rgba(128, 128, 128, 0.6);display:flex;flex-direction:column;height:100%;position:relative;width:100%;overflow:auto}.standard-layout-4 kup-button{margin-right:0}.standard-layout-4 #image1 img{object-fit:cover}.standard-layout-4.has-actions{padding-bottom:52px}.standard-layout-4.has-actions .section-3 .sub-3.description{padding-bottom:0}.standard-layout-4 .section-1{display:flex;height:100%;width:100%}.standard-layout-4 .section-1 .sub-1.image{width:33%}.standard-layout-4 .section-1 .sub-1.text{width:77%}.standard-layout-4 .section-1 .sub-1.title{color:var(--kup-text-color);padding:0 1em;padding-top:1em;text-align:left}.standard-layout-4 .section-1 .sub-1.title div{font-size:1.25em;font-weight:500;letter-spacing:0.0125em}.standard-layout-4 .section-1 .sub-1.subtitle{opacity:0.6;padding:0 1em;padding-bottom:1em;text-align:left}.standard-layout-4 .section-1 .sub-1.subtitle div{font-size:0.875em;font-weight:500;letter-spacing:0.0071428571em;line-height:1.375em}.standard-layout-4 .section-2{display:flex;justify-content:flex-end;align-items:center;box-sizing:border-box;position:absolute;left:0;bottom:0;padding:2px 1em;height:52px;width:100%;text-align:right}.standard-layout-4 .section-2 kup-button{margin-left:0.25em}.standard-layout-5{background-color:var(--kup-background-color);color:var(--kup-text-color);box-shadow:0px 0px 7.5px 0px rgba(128, 128, 128, 0.5);height:100%;overflow:hidden;width:100%}.standard-layout-5 .section-1{background-color:var(--color-0);height:3%}.standard-layout-5 .section-2{display:flex;height:53%}.standard-layout-5 .section-3{display:flex;height:24%}.standard-layout-5 .section-4{display:flex;height:20%;background-color:var(--color-1)}.standard-layout-5 .sub-2{box-sizing:border-box;display:flex;flex-direction:column;flex-wrap:wrap;justify-content:center}.standard-layout-5 .sub-2.icon{min-height:20px;flex:0 0 10%;max-width:10%}.standard-layout-5 .sub-2.icon #image1{box-sizing:border-box;margin:auto;padding:0 20%}.standard-layout-5 .sub-2.icon #image1 img{object-fit:contain}.standard-layout-5 .sub-2.text{flex:0 0 70%;max-width:70%;margin:auto;height:100%;flex-wrap:nowrap;padding:1em;text-align:left}.standard-layout-5 .sub-2.image{box-sizing:border-box;flex:0 0 20%;padding:1.5vh 0;max-width:20%}.standard-layout-5 .sub-2.image #image2{box-sizing:border-box;margin:auto;padding:0 10%}.standard-layout-5 .sub-2.image #image2 img{object-fit:contain}.standard-layout-5 .sub-2 .desc-text{overflow:auto}.standard-layout-5 .sub-2 .alt-text{color:var(--kup-primary-color)}.standard-layout-5 .sub-3{box-sizing:border-box}.standard-layout-5 .sub-3.progress-bar{margin:auto;padding:0 5%;vertical-align:2px;width:80%}.standard-layout-5 .sub-3.button{margin:auto;text-align:center;width:20%}.standard-layout-5 .sub-3 kup-button{margin:auto}.standard-layout-5 .sub-4{box-sizing:border-box;margin:auto}.standard-layout-5 .sub-4.text{width:50%;font-size:0.875em}.standard-layout-5 .sub-4 div{padding:0 5%}.standard-layout-5 .sub-4 .alt-text{color:var(--color-0);font-size:1em}.standard-layout-5 .alt-text{font-weight:bold}@media screen and (max-width: 767px){.standard-layout-5 .sub-2.image{display:none}.standard-layout-5 .sub-2.icon{flex-basis:30%;max-width:30%}}.standard-layout-6{background-color:var(--kup-background-color);color:var(--kup-text-color);box-shadow:0px 0px 7.5px 0px rgba(128, 128, 128, 0.5);display:flex;height:100%;overflow:hidden;width:100%}.standard-layout-6 .section-1{background-color:var(--color-0);display:flex;flex:0 0 10%;max-width:10%}.standard-layout-6 .section-1 .alt-text{color:var(--kup_card_dynamic_color_0);height:100%;text-align:center;writing-mode:vertical-lr;margin:auto;font-size:1.25em}.standard-layout-6 .section-2{box-sizing:border-box;height:100%;display:flex;flex:0 0 90%;flex-direction:column;max-width:90%}.standard-layout-6 .section-2 .sub-2{margin:auto;text-align:center}.standard-layout-6 .section-2 .sub-2 kup-progress-bar{margin-bottom:1em}.standard-layout-6 kup-button{position:absolute;bottom:2%;right:2%}.standard-layout-7{background-color:var(--kup-background-color);color:var(--kup-text-color);box-shadow:0px 0px 7.5px 0px rgba(128, 128, 128, 0.5);display:flex;flex-direction:column;height:100%;overflow:hidden;width:100%}.standard-layout-7 #image1 img{margin:auto;object-fit:contain}.standard-layout-7 .section-1{background-color:var(--color-0);height:5%;width:100%}.standard-layout-7 .section-2{height:80%;width:100%;text-align:center;padding:25px 25%;box-sizing:border-box}.standard-layout-7 .section-2 .sub-2{margin:auto}.standard-layout-7 .section-2 .sub-2.image{box-sizing:border-box;height:65%}.standard-layout-7 .section-2 .sub-2.text{font-size:1.4em;letter-spacing:1.2px;padding-top:1em;height:35%}.standard-layout-7 .section-3{display:flex;height:15%;width:100%}.standard-layout-7 .section-3 .alt-text{margin:auto;opacity:0.75;width:50%}.standard-layout-7 .section-3 .alt-text:nth-child(1){margin-left:1em;text-align:left}.standard-layout-7 .section-3 .alt-text:nth-child(2){margin-right:1em;text-align:right}.standard-layout-8{background-color:var(--kup-background-color);color:var(--kup-text-color);box-shadow:0px 0px 7.5px 0px rgba(128, 128, 128, 0.5);display:flex;flex-direction:column;height:100%;overflow:hidden;width:100%;box-sizing:border-box;position:relative}.standard-layout-8 .background{background-color:var(--color-0);content:\"\";height:100%;width:100%;opacity:0.1;pointer-events:none;position:absolute;top:0;left:0;z-index:1}.standard-layout-8 .section-1{box-sizing:border-box;display:flex;flex-direction:column;max-width:100%;overflow:auto;height:auto}.standard-layout-8 .section-1 .sub-1{text-align:left;padding:0.6em 0.8em 0;font-size:1em;font-weight:bold;max-width:75%}.standard-layout-8 .section-1 .sub-2{text-align:left;padding:0.6em 0.8em;font-size:0.875em;max-width:75%}.standard-layout-8 .section-1 .sub-3{color:var(--color-0);font-weight:bold;text-align:center;font-size:1.2em;position:absolute;top:1em;right:1em;max-width:25%;text-overflow:ellipsis;max-height:calc(24px + 2.25em);padding:0 1em;overflow:hidden}.standard-layout-8 .section-1 .sub-3 kup-image{margin:auto}.standard-layout-8 .section-2{display:flex;height:auto;overflow:auto}.standard-layout-9{background-color:var(--kup-background-color);color:var(--kup-text-color);box-shadow:0px 0px 7.5px 0px rgba(128, 128, 128, 0.5);display:flex;flex-direction:row;height:100%;overflow:hidden;width:100%;box-sizing:border-box;position:relative}.standard-layout-9 #image1 img{object-fit:contain}.standard-layout-9 .section-1{margin-top:auto;margin-right:18px;margin-bottom:auto;white-space:nowrap}.standard-layout-9 .section-2{display:flex;height:100%;margin-top:auto;margin-bottom:auto;width:100%;overflow:hidden}.standard-layout-9 .sub-2{display:flex;flex-direction:row}.standard-layout-9 .text{text-align:left}.standard-layout-9 .text-wrapper{display:flex;flex-direction:column}.standard-layout-9 .icon{margin:auto;padding:0 1.25em}.standard-layout-9 .description{font-size:1.5em;letter-spacing:1px;padding-left:1.25em;padding-top:0.25em}.standard-layout-9 .title{font-size:2.75em;font-weight:bold}.standard-layout-9 .subtitle{font-size:1.5em;opacity:0.75}.standard-layout-10{background-color:var(--kup-background-color);color:var(--kup-text-color);box-shadow:0px 0px 7.5px 0px rgba(128, 128, 128, 0.5);display:flex;flex-direction:row;height:100%;overflow:hidden;width:100%;box-sizing:border-box;position:relative}.standard-layout-10 #image1 img{object-fit:contain}.standard-layout-10 .section-1{display:flex;height:100%;margin-top:auto;margin-bottom:auto;width:100%;overflow:hidden}.standard-layout-10 .section-2{margin-top:auto;margin-left:18px;margin-bottom:auto;white-space:nowrap}.standard-layout-10 .sub-2{display:flex;flex-direction:row-reverse}.standard-layout-10 .text{text-align:right}.standard-layout-10 .text-wrapper{display:flex;flex-direction:column}.standard-layout-10 .icon{margin:auto;padding:0 1.25em}.standard-layout-10 .description{font-size:1.5em;letter-spacing:1px;padding-right:1.25em;padding-top:0.25em}.standard-layout-10 .title{font-size:2.75em;font-weight:bold}.standard-layout-10 .subtitle{font-size:1.5em;opacity:0.75}.standard-layout-11{background-color:var(--kup-background-color);color:var(--kup-text-color);box-shadow:0px 0px 7.5px 0px rgba(128, 128, 128, 0.5);display:flex;flex-direction:row;height:100%;overflow:hidden;width:100%;box-sizing:border-box;position:relative}.standard-layout-11 #image1 img{object-fit:contain}.standard-layout-11 .section-1{display:flex;height:100%;margin-top:auto;margin-bottom:auto;min-width:6em;max-width:6em;overflow:hidden;transition:0.25s ease-in}.standard-layout-11 .section-2{display:flex;height:100%;margin-top:auto;margin-bottom:auto;width:100%;overflow:hidden}.standard-layout-11 .sub-1{background-color:var(--color-0);height:100%;text-align:center;writing-mode:vertical-lr;min-width:6em;display:flex;transition:width 0.25s ease-in}.standard-layout-11 .sub-1 div{font-size:1.25em}.standard-layout-11 .sub-2{display:flex;flex-direction:row}.standard-layout-11 .text:not(.description){text-align:left}.standard-layout-11 .text-wrapper{display:flex;flex-direction:column}.standard-layout-11 .icon{margin:auto;padding:0 1.25em}.standard-layout-11 .description{font-size:1.5em;letter-spacing:1px;margin:auto;color:var(--kup_card_dynamic_color_0)}.standard-layout-11 .title{font-size:2.75em;font-weight:bold;margin-top:auto}.standard-layout-11 .subtitle{font-size:1.5em;opacity:0.75;margin-bottom:auto}.standard-layout-12{background-color:var(--kup-background-color);box-shadow:var(--kup-box-shadow);color:var(--kup-text-color);min-width:200px;min-width:-moz-max-content;min-width:-webkit-max-content;}.standard-layout-12 .section-1{display:inline-flex;border-bottom:1px solid var(--kup-border-color);width:100%}.standard-layout-12 .section-1 kup-button{margin:0}.standard-layout-12 .section-2{display:flex;flex-direction:column}.standard-layout-12 .section-2.has-content{border-bottom:1px solid var(--kup-border-color);padding:0.5em 0.5em}.standard-layout-12 .section-2 kup-date-picker:first-of-type,.standard-layout-12 .section-2 kup-time-picker:first-of-type{margin-bottom:0.5em}.standard-layout-12 .section-3{backface-visibility:hidden;display:flex;flex-direction:column;max-height:20vh;overflow:auto}.standard-layout-12 .section-3 kup-checkbox{margin-left:0;margin-right:auto}.standard-layout-13{background-color:var(--kup-background-color);border-radius:4px;box-sizing:border-box;box-shadow:0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12);display:flex;flex-direction:column;height:100%;position:relative;width:100%;overflow:auto}.standard-layout-13 kup-button{margin-left:0}.standard-layout-13 .section-1{background-color:var(--kup-background-color);display:flex;justify-content:flex-start;align-items:center;box-sizing:border-box;box-shadow:0px 1px 3px 0px var(--kup-text-color);height:52px;width:100%;text-align:right}.standard-layout-13 .section-1 kup-button{margin-right:0.25em}.standard-layout-13 .section-2{height:100%;width:100%;overflow:auto;max-height:50vh}.standard-layout-13 .text{color:var(--kup-text-color);font-family:var(--kup-font-family-monospace);white-space:nowrap;border-bottom:1px solid var(--kup-border-color);line-height:1.75em}.standard-layout-14{background-color:var(--kup-background-color);box-shadow:var(--kup-box-shadow);color:var(--kup-text-color);min-width:200px;min-width:-moz-max-content;min-width:-webkit-max-content;}.standard-layout-14 .section-1{display:flex;padding:1em}.standard-layout-14 .section-1 .sub-1{width:100%}.standard-layout-14 .section-1 .sub-spinner{height:88px;width:88px;margin:0 10px}.standard-layout-14 .section-1 .f-image{margin:0 0.5em 0 0}.standard-layout-14 .section-1 .title{font-size:1.25em;margin-top:-0.5em;padding:0 0.25em 0.25em}.standard-layout-14 .section-1 .title .label{cursor:pointer;padding-right:0.25em}.standard-layout-14 .section-1 .title .label:hover{text-decoration:underline}.standard-layout-14 .section-1 .info{display:flex;padding:0 0.25em 0.25em;width:100%}.standard-layout-14 .section-1 .info .label{color:rgba(var(--kup-text-color-rgb), 0.75);margin-right:0.75em;min-width:max-content;width:auto}.standard-layout-14 .section-1 .info .value{width:100%}.standard-layout-14 .sub-button{display:inline-flex;width:100%}.standard-layout-14 .sub-button kup-button{margin:0}.standard-layout-14 .sub-checkbox{backface-visibility:hidden;display:flex;flex-direction:column;max-height:20vh;overflow:auto}.standard-layout-14 .sub-checkbox kup-checkbox{margin-left:0;margin-right:auto}.standard-layout-14 .sub-chip{max-width:25vw;overflow:auto;box-shadow:0 3px 2px -2px var(--kup-border-color)}.standard-layout-14 .sub-field{display:flex;flex-direction:column}.standard-layout-14 .sub-field.has-content{border-bottom:1px solid var(--kup-border-color);padding:0.5em 0.5em}.standard-layout-14 .sub-field kup-date-picker:first-of-type,.standard-layout-14 .sub-field kup-time-picker:first-of-type{margin-bottom:0.5em}.standard-layout-14 .sub-spinner{height:100px}.standard-layout-14 .sub-autocomplete{padding-top:1em}.standard-layout-14 .sub-autocomplete kup-autocomplete{margin:auto;padding:0.5em 0;width:max-content}.standard-layout-14 .sub-switch{display:flex;justify-content:space-evenly;padding:2em}.standard-layout-14 .sub-tree{max-height:25vh;overflow:auto}.standard-layout-14 #apply{display:none}.standard-layout-14 #apply.visible{display:block}.standard-layout-14 #open-in-new,.standard-layout-14 #search,.standard-layout-14 #new{margin:0;display:inline-flex}.standard-layout-15{outline:none;display:block;font-size:var(--kup-font-size);background:var(--kup-background-color);color:var(--kup-text-color);box-shadow:var(--kup-box-shadow);border-radius:3px;min-width:350px;max-width:700px}.standard-layout-15 .section-1{box-sizing:border-box;display:flex;padding:1em}.standard-layout-15 .section-1 .sub-1{width:100%}.standard-layout-15 .section-1 .sub-spinner{height:88px;width:88px;margin:0 10px}.standard-layout-15 .section-1 .f-image{margin:0 0.5em 0 0}.standard-layout-15 .section-1 .title{font-size:1.25em;padding:0 0.25em 0.25em;text-align:left}.standard-layout-15 .section-1 .title .label{cursor:pointer;padding-right:0.25em}.standard-layout-15 .section-1 .title .label:hover{text-decoration:underline}.standard-layout-15 .section-1 .info{display:flex;padding:0 0.25em 0.25em;width:100%}.standard-layout-15 .section-1 .info .label{color:rgba(var(--kup-text-color-rgb), 0.75);margin-right:0.75em;min-width:max-content;width:auto}.standard-layout-15 .section-1 .info .value{width:100%}.standard-layout-15 .section-2{border-top:1px solid var(--kup-border-color);box-sizing:border-box;height:180px;opacity:1;overflow:auto;transition:height 250ms ease-out, opacity 250ms ease-out}.standard-layout-15 .section-2 .info{box-sizing:border-box;height:100%;padding:1.25em}.standard-layout-15 .section-2 .detail-row{display:flex;justify-content:space-between}.standard-layout-15 .section-2 .detail-row:not(:last-child){margin-bottom:6px}.standard-layout-15 .section-2 .detail-row__label{color:rgba(var(--kup-text-color-rgb), 0.5);margin-top:0.175em;max-width:320px}.standard-layout-15 .section-2 .detail-row__value{color:var(--kup-text-color);font-size:120%;max-width:320px}.standard-layout-15 .section-2 kup-tree{text-align:left}.standard-layout-15 .section-3{border-top:1px solid var(--kup-border-color);display:flex;justify-content:flex-end;padding:6px;padding-top:2px;padding-bottom:2px}.standard-layout-15 .section-3 kup-button{margin:auto 0}.standard-layout-15 #open-in-new,.standard-layout-15 #search,.standard-layout-15 #new{margin:0;display:inline-flex}:host{--kup_card_ripple_color:var(\n --kup-card-ripple-color,\n var(--kup-primary-color)\n );display:block;font-size:var(--kup-font-size);height:var(--kup_card_height);min-height:var(--kup_card_height);min-width:var(--kup_card_width);outline:none;position:relative;width:var(--kup_card_width)}:host([is-menu]) #kup-component{animation:fade-in 0.25s ease-out;display:none}:host([menu-visible]) #kup-component{display:block}#kup-component{height:100%;width:100%}.mdc-ripple-surface{cursor:pointer;flex-direction:column;display:flex;height:100%;position:relative}.mdc-ripple-surface:before,.mdc-ripple-surface:after{background-color:var(--kup_card_ripple_color)}.card-view{animation:fade-in 0.25s ease-out;display:none;height:100%;width:100%}.card-view.visible{display:block}";
9300
+ const kupCardCss = ".builtin-layout-1{padding:0.5em}.builtin-layout-1 .section-1{box-sizing:border-box;height:5em;overflow:auto;padding-bottom:1em;width:100%}.builtin-layout-1 .section-1 .sub-1{display:flex;flex-direction:row;justify-content:center}.builtin-layout-1 .section-2{height:calc(100% - 60px);overflow:auto;width:100%}.builtin-layout-1 .prev-page{margin-left:auto}.builtin-layout-1 .change-view-button{margin:auto;width:12em;text-align:center}.builtin-layout-1 #change-view-button button{text-transform:capitalize}.builtin-layout-1 .next-page{margin-right:auto}.builtin-layout-1 .calendar{border-collapse:collapse;width:100%}.builtin-layout-1 thead{border-bottom:1px solid var(--kup-border-color)}.builtin-layout-1 .item-text{color:rgba(var(--kup-text-color-rgb), 0.5)}.builtin-layout-1 .item{text-align:center}.builtin-layout-1 .item:not(.selected) .item-number:hover{background-color:var(--kup-hover-background-color)}.builtin-layout-1 .item.selected .item-number,.builtin-layout-1 .item.selected .item-number:hover{background-color:rgba(var(--kup-primary-color-rgb), 0.175)}.builtin-layout-1 .item-number{border-radius:50%;cursor:pointer;display:flex;justify-content:center;line-height:2.5em;margin:auto;width:2.5em;transition:background-color 0.25s;text-transform:capitalize}.builtin-layout-2 .clock{box-shadow:var(--kup-box-shadow);width:300px;height:450px;background-color:var(--kup-background-color);position:relative;font-family:var(--kup-font-family)}.builtin-layout-2 .top{background-color:var(--kup-primary-color);color:var(--kup-text-on-primary-color);height:100px;line-height:100px;font-size:50px;text-align:center}.builtin-layout-2 .top span{cursor:pointer;opacity:0.75;transition:0.25s ease-in-out}.builtin-layout-2 .top .visible{opacity:1}.builtin-layout-2 .circle{user-select:none;background-color:rgba(var(--kup-text-color-rgb), 0.1);width:250px;height:250px;border-radius:1000px;position:relative;top:25px;left:25px;box-sizing:border-box;display:none}.builtin-layout-2 .circle.visible{display:block}.builtin-layout-2 .mid{position:absolute;left:calc(50% - 0px);top:calc(50% - 0px);width:2px;height:2px;border-radius:10px;background-color:var(--kup-text-color)}.builtin-layout-2 .hour{position:absolute;height:40px;line-height:40px;width:40px;border-radius:40px;text-align:center}.builtin-layout-2 .hour.selected{z-index:2}.builtin-layout-2 .hour.selected::after{content:\"\";z-index:-1;background-color:rgba(var(--kup-primary-color-rgb), 0.5);height:1px;width:100%;position:absolute;transform:rotate(-90deg);transform-origin:100% 0%;top:50%;width:101px;right:50%}.builtin-layout-2 .hour2{z-index:2;position:absolute;height:30px;line-height:30px;width:30px;border-radius:40px;text-align:center;font-size:14px}.builtin-layout-2 .hour2.selected::after{content:\"\";background-color:rgba(var(--kup-primary-color-rgb), 0.5);height:1px;width:100%;position:absolute;transform:rotate(-90deg);transform-origin:100% 0%;top:50%;width:64px;right:50%;z-index:-1}.builtin-layout-2 .unit{position:absolute;height:20px;line-height:20px;width:20px;border-radius:40px;text-align:center;font-size:12px}.builtin-layout-2 .unit.selected::after{content:\"\";background-color:rgba(var(--kup-primary-color-rgb), 0.5);height:1px;width:100%;position:absolute;transform:rotate(-90deg);transform-origin:100% 0%;top:50%;width:101px;right:50%}.builtin-layout-2 .hour,.builtin-layout-2 .hour2,.builtin-layout-2 .unit{cursor:pointer;transition:background-color 0.25s}.builtin-layout-2 .hour:hover,.builtin-layout-2 .hour2:hover,.builtin-layout-2 .unit:hover{background-color:rgba(var(--kup-primary-color-rgb), 0.275)}.builtin-layout-2 .hour.selected,.builtin-layout-2 .hour2.selected,.builtin-layout-2 .unit.selected{background-color:var(--kup-primary-color);color:var(--kup-text-on-primary-color)}.builtin-layout-2 .actions{color:var(--kup-primary-color);font-weight:bold;font-size:20px;display:flex;justify-content:flex-end;position:absolute;width:100%;box-sizing:border-box;bottom:10px}.builtin-layout-2 .action{display:inline-block;width:100px;text-align:center;height:37.5px;line-height:37.5px;margin-right:10px;cursor:pointer;border-radius:2px}.builtin-layout-2 .clock .actions .action:hover{background-color:rgba(0, 0, 0, 0.1)}.builtin-layout-2 .clock .actions .action:visible{background-color:rgba(0, 0, 0, 0.3)}.builtin-layout-2 .hour:nth-child(12):after{transform:rotate(330deg)}.builtin-layout-2 .hour:nth-child(11):after{transform:rotate(300deg)}.builtin-layout-2 .hour:nth-child(10):after{transform:rotate(270deg)}.builtin-layout-2 .hour:nth-child(9):after{transform:rotate(240deg)}.builtin-layout-2 .hour:nth-child(8):after{transform:rotate(210deg)}.builtin-layout-2 .hour:nth-child(7):after{transform:rotate(180deg)}.builtin-layout-2 .hour:nth-child(6):after{transform:rotate(150deg)}.builtin-layout-2 .hour:nth-child(5):after{transform:rotate(120deg)}.builtin-layout-2 .hour:nth-child(4):after{transform:rotate(90deg)}.builtin-layout-2 .hour:nth-child(3):after{transform:rotate(60deg)}.builtin-layout-2 .hour:nth-child(2):after{transform:rotate(30deg)}.builtin-layout-2 .hour:nth-child(1):after{transform:rotate(0deg)}.builtin-layout-2 .hour2:nth-child(24):after{transform:rotate(690deg)}.builtin-layout-2 .hour2:nth-child(23):after{transform:rotate(660deg)}.builtin-layout-2 .hour2:nth-child(22):after{transform:rotate(630deg)}.builtin-layout-2 .hour2:nth-child(21):after{transform:rotate(600deg)}.builtin-layout-2 .hour2:nth-child(20):after{transform:rotate(570deg)}.builtin-layout-2 .hour2:nth-child(19):after{transform:rotate(540deg)}.builtin-layout-2 .hour2:nth-child(18):after{transform:rotate(510deg)}.builtin-layout-2 .hour2:nth-child(17):after{transform:rotate(480deg)}.builtin-layout-2 .hour2:nth-child(16):after{transform:rotate(450deg)}.builtin-layout-2 .hour2:nth-child(15):after{transform:rotate(420deg)}.builtin-layout-2 .hour2:nth-child(14):after{transform:rotate(390deg)}.builtin-layout-2 .hour2:nth-child(13):after{transform:rotate(360deg)}.builtin-layout-2 .unit:nth-child(60):after{transform:rotate(354deg)}.builtin-layout-2 .unit:nth-child(59):after{transform:rotate(348deg)}.builtin-layout-2 .unit:nth-child(58):after{transform:rotate(342deg)}.builtin-layout-2 .unit:nth-child(57):after{transform:rotate(336deg)}.builtin-layout-2 .unit:nth-child(56):after{transform:rotate(330deg)}.builtin-layout-2 .unit:nth-child(55):after{transform:rotate(324deg)}.builtin-layout-2 .unit:nth-child(54):after{transform:rotate(318deg)}.builtin-layout-2 .unit:nth-child(53):after{transform:rotate(312deg)}.builtin-layout-2 .unit:nth-child(52):after{transform:rotate(306deg)}.builtin-layout-2 .unit:nth-child(51):after{transform:rotate(300deg)}.builtin-layout-2 .unit:nth-child(50):after{transform:rotate(294deg)}.builtin-layout-2 .unit:nth-child(49):after{transform:rotate(288deg)}.builtin-layout-2 .unit:nth-child(48):after{transform:rotate(282deg)}.builtin-layout-2 .unit:nth-child(47):after{transform:rotate(276deg)}.builtin-layout-2 .unit:nth-child(46):after{transform:rotate(270deg)}.builtin-layout-2 .unit:nth-child(45):after{transform:rotate(264deg)}.builtin-layout-2 .unit:nth-child(44):after{transform:rotate(258deg)}.builtin-layout-2 .unit:nth-child(43):after{transform:rotate(252deg)}.builtin-layout-2 .unit:nth-child(42):after{transform:rotate(246deg)}.builtin-layout-2 .unit:nth-child(41):after{transform:rotate(240deg)}.builtin-layout-2 .unit:nth-child(40):after{transform:rotate(234deg)}.builtin-layout-2 .unit:nth-child(39):after{transform:rotate(228deg)}.builtin-layout-2 .unit:nth-child(38):after{transform:rotate(222deg)}.builtin-layout-2 .unit:nth-child(37):after{transform:rotate(216deg)}.builtin-layout-2 .unit:nth-child(36):after{transform:rotate(210deg)}.builtin-layout-2 .unit:nth-child(35):after{transform:rotate(204deg)}.builtin-layout-2 .unit:nth-child(34):after{transform:rotate(198deg)}.builtin-layout-2 .unit:nth-child(33):after{transform:rotate(192deg)}.builtin-layout-2 .unit:nth-child(32):after{transform:rotate(186deg)}.builtin-layout-2 .unit:nth-child(31):after{transform:rotate(180deg)}.builtin-layout-2 .unit:nth-child(30):after{transform:rotate(174deg)}.builtin-layout-2 .unit:nth-child(29):after{transform:rotate(168deg)}.builtin-layout-2 .unit:nth-child(28):after{transform:rotate(162deg)}.builtin-layout-2 .unit:nth-child(27):after{transform:rotate(156deg)}.builtin-layout-2 .unit:nth-child(26):after{transform:rotate(150deg)}.builtin-layout-2 .unit:nth-child(25):after{transform:rotate(144deg)}.builtin-layout-2 .unit:nth-child(24):after{transform:rotate(138deg)}.builtin-layout-2 .unit:nth-child(23):after{transform:rotate(132deg)}.builtin-layout-2 .unit:nth-child(22):after{transform:rotate(126deg)}.builtin-layout-2 .unit:nth-child(21):after{transform:rotate(120deg)}.builtin-layout-2 .unit:nth-child(20):after{transform:rotate(114deg)}.builtin-layout-2 .unit:nth-child(19):after{transform:rotate(108deg)}.builtin-layout-2 .unit:nth-child(18):after{transform:rotate(102deg)}.builtin-layout-2 .unit:nth-child(17):after{transform:rotate(96deg)}.builtin-layout-2 .unit:nth-child(16):after{transform:rotate(90deg)}.builtin-layout-2 .unit:nth-child(15):after{transform:rotate(84deg)}.builtin-layout-2 .unit:nth-child(14):after{transform:rotate(78deg)}.builtin-layout-2 .unit:nth-child(13):after{transform:rotate(72deg)}.builtin-layout-2 .unit:nth-child(12):after{transform:rotate(66deg)}.builtin-layout-2 .unit:nth-child(11):after{transform:rotate(60deg)}.builtin-layout-2 .unit:nth-child(10):after{transform:rotate(54deg)}.builtin-layout-2 .unit:nth-child(9):after{transform:rotate(48deg)}.builtin-layout-2 .unit:nth-child(8):after{transform:rotate(42deg)}.builtin-layout-2 .unit:nth-child(7):after{transform:rotate(36deg)}.builtin-layout-2 .unit:nth-child(6):after{transform:rotate(30deg)}.builtin-layout-2 .unit:nth-child(5):after{transform:rotate(24deg)}.builtin-layout-2 .unit:nth-child(4):after{transform:rotate(18deg)}.builtin-layout-2 .unit:nth-child(3):after{transform:rotate(12deg)}.builtin-layout-2 .unit:nth-child(2):after{transform:rotate(6deg)}.builtin-layout-2 .unit:nth-child(1):after{transform:rotate(0deg)}.builtin-card{background-color:var(--kup-background-color);border-radius:4px;box-sizing:border-box;box-shadow:0 2px 1px -1px rgba(128, 128, 128, 0.1), 0 1px 1px 0 rgba(128, 128, 128, 0.1), 0 1px 3px 0 rgba(128, 128, 128, 0.6);display:flex;flex-direction:column;height:100%;position:relative;width:100%;overflow:auto}.collapsible-layout-1{color:var(--kup-text-color);box-shadow:0px 0px 7.5px 0px rgba(128, 128, 128, 0.5);display:flex;height:100%;overflow:hidden;width:100%;box-sizing:border-box;position:relative}.collapsible-layout-1 .section-1{background-color:var(--color-0);display:flex;flex:0 0 10%;max-width:10%}.collapsible-layout-1 .section-2{box-sizing:border-box;height:100%;display:flex;flex:0 0 90%;flex-direction:column;max-width:90%}.collapsible-layout-1 .section-2 .sub-1{min-height:1.5em;display:flex;padding:0.6rem 0.8em 0;font-weight:bold;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.collapsible-layout-1 .section-2 .sub-1 div{font-size:1em}.collapsible-layout-1 .section-2 .sub-1 .left{text-align:left;width:80%}.collapsible-layout-1 .section-2 .sub-1 .right{text-align:right;width:20%}.collapsible-layout-1 .section-2 .sub-2{text-align:left;padding:0.6em 0.8em;font-size:0.875em}.collapsible-layout-2{color:var(--kup-text-color);box-shadow:rgba(0, 0, 0, 0.2) 0px 2px 1px -1px, rgba(0, 0, 0, 0.14) 0px 1px 1px 0px, rgba(0, 0, 0, 0.12) 0px 1px 3px 0px;border-radius:4px;display:flex;height:100%;overflow:hidden;width:100%;box-sizing:border-box;position:relative}.collapsible-layout-2 .section-1{box-sizing:border-box;height:100%;display:flex;flex-direction:column;max-width:100%;width:100%}.collapsible-layout-2 .section-1 .sub-1{text-align:left;padding:0.6em 0.8em 0;font-size:1em;font-weight:bold;max-width:75%}.collapsible-layout-2 .section-1 .sub-2{text-align:left;padding:0.6em 0.8em;max-width:75%}.collapsible-layout-2 .section-1 .sub-2 div{font-size:0.875em}.collapsible-layout-2 .section-1 .sub-3{color:var(--color-0);text-align:center;position:absolute;top:1em;right:1em;max-width:25%;text-overflow:ellipsis;overflow:hidden;max-height:calc(24px + 2.25em);padding:0 1em}.collapsible-layout-2 .section-1 .sub-3 kup-image{margin:auto}.collapsible-layout-2 .section-1 .sub-3 div{font-size:1.25em}.collapsible-card .collapsible-trigger{display:none;position:absolute;bottom:0;left:0;height:50px;width:100%}.collapsible-card .collapsible-trigger kup-button{margin:auto;width:48px}.collapsible-card .collapsible-wrapper{overflow:auto}.collapsible-card.collapsible-active{padding-bottom:50px}.collapsible-card.collapsible-active .collapsible-trigger{display:block}.dialog-layout-1{background-color:var(--kup-background-color);box-shadow:0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12);color:var(--kup-text-color);display:flex;flex-direction:column;height:100%;width:100%;overflow:auto}.dialog-layout-1 .section-1{display:grid;grid-gap:0.5em;grid-template-columns:repeat(2, auto);grid-template-rows:repeat(auto-fill, 1.25em);height:100%;padding:0.5em;overflow:auto;touch-action:none}.dialog-layout-1 .section-1 .text{min-width:max-content}.dialog-layout-1 .section-1 .text:not(.label){font-weight:bold}.dialog-layout-2{background-color:var(--kup-background-color);box-shadow:0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12);display:flex;flex-direction:column;height:100%;width:100%}.dialog-layout-2 .section-1{text-align:center;touch-action:none;padding-bottom:1em}.dialog-layout-2 .section-1 .text{padding-top:0.75em}.dialog-layout-2 .section-1 .text:not(.label){font-weight:bold}.dialog-layout-2 .section-2{border-top:1px solid var(--kup-border-color);display:grid;grid-gap:0.5em;grid-template-columns:repeat(2, auto);grid-template-rows:repeat(auto-fill, 1.25em);height:100%;padding:0.5em;overflow:auto;touch-action:none}.dialog-layout-2 .section-2 .text{min-width:max-content}.dialog-layout-2 .section-2 .text:not(.label){font-weight:bold}.dialog-layout-3{background-color:var(--kup-background-color);border-radius:4px;box-sizing:border-box;box-shadow:0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12);display:flex;overflow:visible;flex-direction:column;height:100%;position:relative;width:100%}.dialog-layout-3 kup-button{margin-left:0}.dialog-layout-3 .section-1{background-color:var(--kup-background-color);display:flex;justify-content:flex-start;align-items:center;box-sizing:border-box;box-shadow:0px 1px 3px 0px var(--kup-text-color);height:52px;width:100%;text-align:right;touch-action:none}.dialog-layout-3 .section-1 kup-button{margin-right:0.25em}.dialog-layout-3 .section-2{height:100%;width:100%;overflow:auto;max-height:50vh}.dialog-layout-3 ::slotted(.text){color:var(--kup-text-color);font-family:var(--kup-font-family-monospace);white-space:nowrap;border-bottom:1px solid var(--kup-border-color);line-height:1.75em}.dialog-layout-4{background-color:var(--kup-background-color);box-shadow:0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12);display:flex;flex-direction:column;height:100%;width:100%}.dialog-layout-4 .section-1{display:flex;justify-content:space-evenly}.dialog-layout-4 .section-2{height:100%;overflow:auto;padding:0.25em;touch-action:none}.dialog-layout-5{background-color:var(--kup-background-color);box-shadow:0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12);display:flex;flex-direction:column;height:100%;width:100%}.dialog-layout-5 .section-1{display:flex;justify-content:space-evenly}.dialog-layout-5 .section-2{height:100%;overflow:auto}.dialog-layout-6{background-color:var(--kup-background-color);box-shadow:0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12);display:flex;flex-direction:column;height:100%;max-height:95vh;max-width:95vw;width:100%}.dialog-layout-6 .section-1{display:flex;height:100%;justify-content:space-evenly;overflow:auto}.dialog-layout-6 kup-data-table{width:100%}#drag-handle{-ms-touch-action:none;touch-action:none}#drag-handle:not(.header-bar){display:flex;height:100%}#drag-handle:not(.header-bar) .f-image{margin:auto}#drag-handle.header-bar{background-color:var(--kup-title-background-color);color:var(--kup-title-color);display:flex;flex-direction:row;height:2em;position:relative;width:100%}#drag-handle.header-bar .dialog-title{font-weight:bold;line-height:2em;padding-left:0.5em;padding-right:2em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#drag-handle.header-bar #dialog-close{cursor:pointer;margin-right:0;transition:opacity 0.25s;position:absolute;right:0;background:var(--kup-title-background-color)}#drag-handle.header-bar #dialog-close:hover{opacity:0.5}.free-layout-1{background:var(--kup-background-color);box-shadow:var(--kup-box-shadow);box-sizing:border-box;overflow:auto;padding:1em}.scalable-layout-1 .descr{font-size:70%;width:100%}.scalable-layout-1 .value{font-size:220%}.scalable-layout-2 #image1 img{object-fit:contain}.scalable-layout-2 .scalable-element{display:grid;grid-template-columns:1fr 1fr 0.5fr 0.5fr}.scalable-layout-2 .icon{margin:auto;font-size:150%;margin-right:5%}.scalable-layout-2 .value-int{font-size:250%}.scalable-layout-2 .value-dec,.scalable-layout-2 .unit{font-size:130%;margin-top:auto;margin-bottom:10%}.scalable-layout-2 .value-dec{margin-left:2%}.scalable-layout-2 .unit{margin-left:4%}.scalable-layout-3 .descr{font-size:70%;width:100%}.scalable-layout-3 .value{font-size:220%}.scalable-layout-4 #image1 img{object-fit:contain}.scalable-layout-4 .scalable-element{display:grid;grid-template-columns:1fr 5fr}.scalable-layout-4 .icon{font-size:150%;margin:auto 5% auto auto}.scalable-layout-4 .value-and-unit{display:flex;color:var(--color-0)}.scalable-layout-4 .value-and-unit .value-int{font-size:250%}.scalable-layout-4 .value-and-unit .value-dec,.scalable-layout-4 .value-and-unit .unit{font-size:130%;margin-top:auto;margin-bottom:10%}.scalable-layout-4 .value-and-unit .value-dec{margin-left:2%}.scalable-layout-4 .value-and-unit .unit{margin-left:4%}.scalable-layout-4 .descr{margin-left:4%;text-align:left;font-size:80%;width:100%;min-width:max-content}.scalable-layout-5 #image1 img{object-fit:contain}.scalable-layout-5 .scalable-element{display:flex}.scalable-layout-5 .text-wrapper{margin-right:10px}.scalable-layout-5 .icon{font-size:150%;margin:auto;margin-bottom:0.35em}.scalable-layout-5 .value{font-size:200%}.scalable-layout-5 .descr{text-align:right;font-size:65%;width:100%;min-width:max-content;position:relative;bottom:-10%}.scalable-layout-6 #image1 img{object-fit:contain}.scalable-layout-6 .scalable-element{display:flex;justify-content:space-between}.scalable-layout-6 .text-wrapper{margin-left:1em}.scalable-layout-6 .icon{font-size:150%;margin:auto}.scalable-layout-6 .value{font-size:220%;text-align:right}.scalable-layout-6 .descr{font-size:80%;text-align:right;width:100%;min-width:max-content}.scalable-layout-7 #image1 img{object-fit:contain}.scalable-layout-7 .scalable-element{display:flex}.scalable-layout-7 .text-wrapper{margin-right:0.5em}.scalable-layout-7 .icon{font-size:150%;margin:auto;margin-top:0.35em}.scalable-layout-7 .value{font-size:200%}.scalable-layout-7 .descr{text-align:right;font-size:65%;width:100%;min-width:max-content;position:relative;bottom:10%}.scalable-layout-8 #image1 img{object-fit:contain}.scalable-layout-8 .scalable-element{align-items:center;display:grid;grid-template-columns:0.25fr 1.25fr 0.25fr}.scalable-layout-8 .icon{margin-right:4%;font-size:75%}.scalable-layout-8 .value{margin:0 10%;font-size:250%}.scalable-layout-8 .descr{font-size:60%;text-align:left}.scalable-card{align-items:center;box-shadow:0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12);border-radius:4px;display:flex;font-size:calc(var(--kup-font-size) * var(--kup_card_multiplier));height:100%;justify-content:center;position:relative;text-align:center;word-break:normal;width:100%}.standard-layout-1{background-color:var(--kup-background-color);border-radius:4px;box-sizing:border-box;box-shadow:0 2px 1px -1px rgba(128, 128, 128, 0.1), 0 1px 1px 0 rgba(128, 128, 128, 0.1), 0 1px 3px 0 rgba(128, 128, 128, 0.6);display:flex;flex-direction:column;height:100%;position:relative;width:100%;overflow:auto}.standard-layout-1 kup-button{margin-right:0}.standard-layout-1 #image1 img{object-fit:cover}.standard-layout-1.has-actions{padding-bottom:52px}.standard-layout-1.has-actions .section-2 .sub-2.description{padding-bottom:0}.standard-layout-1 .section-1{height:60%;width:100%}.standard-layout-1 .section-2{height:40%;width:100%;overflow:auto}.standard-layout-1 .section-2 .sub-2.title{color:var(--kup-text-color);padding:0 1em;padding-top:1em;text-align:left}.standard-layout-1 .section-2 .sub-2.title div{font-size:1.25em;font-weight:500;letter-spacing:0.0125em}.standard-layout-1 .section-2 .sub-2.subtitle{opacity:0.6;padding:0 1em;padding-bottom:1em;text-align:left}.standard-layout-1 .section-2 .sub-2.subtitle div{font-size:0.875em;font-weight:500;letter-spacing:0.0071428571em;line-height:1.375em}.standard-layout-1 .section-2 .sub-2.description{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;opacity:0.6;padding:0 1em;padding-bottom:1em;text-align:left}.standard-layout-1 .section-2 .sub-2.description div{font-size:0.875em;font-weight:400;letter-spacing:0.0178571429em;line-height:1.25em}.standard-layout-1 .section-3{display:flex;justify-content:flex-end;align-items:center;box-sizing:border-box;position:absolute;left:0;bottom:0;padding:2px 1em;height:52px;width:100%;text-align:right}.standard-layout-1 .section-3 kup-button{margin-left:0.25em}.standard-layout-2{background-color:var(--kup-background-color);border-radius:4px;box-sizing:border-box;box-shadow:0 2px 1px -1px rgba(128, 128, 128, 0.1), 0 1px 1px 0 rgba(128, 128, 128, 0.1), 0 1px 3px 0 rgba(128, 128, 128, 0.6);display:flex;flex-direction:column;height:100%;position:relative;width:100%;overflow:auto}.standard-layout-2 kup-button{margin-right:0}.standard-layout-2 #image1 img{object-fit:cover}.standard-layout-2.has-actions{padding-bottom:52px}.standard-layout-2.has-actions .section-3 .sub-3.description{padding-bottom:0}.standard-layout-2 .section-1{width:100%}.standard-layout-2 .section-1 .sub-1.title{color:var(--kup-text-color);padding:0 1em;padding-top:1em;text-align:left}.standard-layout-2 .section-1 .sub-1.title div{font-size:1.25em;font-weight:500;letter-spacing:0.0125em}.standard-layout-2 .section-1 .sub-1.subtitle{opacity:0.6;padding:0 1em;padding-bottom:1em;text-align:left}.standard-layout-2 .section-1 .sub-1.subtitle div{font-size:0.875em;font-weight:500;letter-spacing:0.0071428571em;line-height:1.375em}.standard-layout-2 .section-2{height:75%;width:100%}.standard-layout-2 .section-3{width:100%;overflow:auto}.standard-layout-2 .section-3 .sub-3.description{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;opacity:0.6;padding:0 1em 8px;padding-top:1em;text-align:left}.standard-layout-2 .section-3 .sub-3.description div{font-size:0.875em;font-weight:400;letter-spacing:0.0178571429em;line-height:1.25em}.standard-layout-2 .section-4{display:flex;justify-content:flex-end;align-items:center;box-sizing:border-box;position:absolute;left:0;bottom:0;padding:2px 1em;height:52px;width:100%;text-align:right}.standard-layout-2 .section-4 kup-button{margin-left:0.25em}.standard-layout-3{background-color:var(--kup-background-color);border-radius:4px;box-sizing:border-box;box-shadow:0 2px 1px -1px rgba(128, 128, 128, 0.1), 0 1px 1px 0 rgba(128, 128, 128, 0.1), 0 1px 3px 0 rgba(128, 128, 128, 0.6);display:flex;flex-direction:column;height:100%;position:relative;width:100%;overflow:auto}.standard-layout-3 kup-button{margin-right:0}.standard-layout-3 #image1 img{object-fit:cover}.standard-layout-3.has-actions{padding-bottom:52px}.standard-layout-3.has-actions .section-2 .sub-2.description{padding-bottom:0}.standard-layout-3 .section-1{height:75%;width:100%}.standard-layout-3 .section-1 .media{position:relative;height:100%;width:100%}.standard-layout-3 .section-1 .text-on-media{position:absolute;bottom:0;left:0}.standard-layout-3 .section-1 .sub-1.title{color:white;padding:0 1em;padding-top:1em;text-align:left}.standard-layout-3 .section-1 .sub-1.title div{font-size:1.25em;font-weight:500;letter-spacing:0.0125em}.standard-layout-3 .section-1 .sub-1.subtitle{color:white;opacity:0.6;padding:0 1em;padding-bottom:1em;text-align:left}.standard-layout-3 .section-1 .sub-1.subtitle div{font-size:0.875em;font-weight:500;letter-spacing:0.0071428571em;line-height:1.375em}.standard-layout-3 .section-2{width:100%;overflow:auto}.standard-layout-3 .section-2 .sub-2.description{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;opacity:0.6;padding:0 1em 8px;padding-top:1em;text-align:left}.standard-layout-3 .section-2 .sub-2.description div{font-size:0.875em;font-weight:400;letter-spacing:0.0178571429em;line-height:1.25em}.standard-layout-3 .section-3{display:flex;justify-content:flex-end;align-items:center;box-sizing:border-box;position:absolute;left:0;bottom:0;padding:2px 1em;height:52px;width:100%;text-align:right}.standard-layout-3 .section-3 kup-button{margin-left:0.25em}.standard-layout-4{background-color:var(--kup-background-color);border-radius:4px;box-sizing:border-box;box-shadow:0 2px 1px -1px rgba(128, 128, 128, 0.1), 0 1px 1px 0 rgba(128, 128, 128, 0.1), 0 1px 3px 0 rgba(128, 128, 128, 0.6);display:flex;flex-direction:column;height:100%;position:relative;width:100%;overflow:auto}.standard-layout-4 kup-button{margin-right:0}.standard-layout-4 #image1 img{object-fit:cover}.standard-layout-4.has-actions{padding-bottom:52px}.standard-layout-4.has-actions .section-3 .sub-3.description{padding-bottom:0}.standard-layout-4 .section-1{display:flex;height:100%;width:100%}.standard-layout-4 .section-1 .sub-1.image{width:33%}.standard-layout-4 .section-1 .sub-1.text{width:77%}.standard-layout-4 .section-1 .sub-1.title{color:var(--kup-text-color);padding:0 1em;padding-top:1em;text-align:left}.standard-layout-4 .section-1 .sub-1.title div{font-size:1.25em;font-weight:500;letter-spacing:0.0125em}.standard-layout-4 .section-1 .sub-1.subtitle{opacity:0.6;padding:0 1em;padding-bottom:1em;text-align:left}.standard-layout-4 .section-1 .sub-1.subtitle div{font-size:0.875em;font-weight:500;letter-spacing:0.0071428571em;line-height:1.375em}.standard-layout-4 .section-2{display:flex;justify-content:flex-end;align-items:center;box-sizing:border-box;position:absolute;left:0;bottom:0;padding:2px 1em;height:52px;width:100%;text-align:right}.standard-layout-4 .section-2 kup-button{margin-left:0.25em}.standard-layout-5{background-color:var(--kup-background-color);color:var(--kup-text-color);box-shadow:0px 0px 7.5px 0px rgba(128, 128, 128, 0.5);height:100%;overflow:hidden;width:100%}.standard-layout-5 .section-1{background-color:var(--color-0);height:3%}.standard-layout-5 .section-2{display:flex;height:53%}.standard-layout-5 .section-3{display:flex;height:24%}.standard-layout-5 .section-4{display:flex;height:20%;background-color:var(--color-1)}.standard-layout-5 .sub-2{box-sizing:border-box;display:flex;flex-direction:column;flex-wrap:wrap;justify-content:center}.standard-layout-5 .sub-2.icon{min-height:20px;flex:0 0 10%;max-width:10%}.standard-layout-5 .sub-2.icon #image1{box-sizing:border-box;margin:auto;padding:0 20%}.standard-layout-5 .sub-2.icon #image1 img{object-fit:contain}.standard-layout-5 .sub-2.text{flex:0 0 70%;max-width:70%;margin:auto;height:100%;flex-wrap:nowrap;padding:1em;text-align:left}.standard-layout-5 .sub-2.image{box-sizing:border-box;flex:0 0 20%;padding:1.5vh 0;max-width:20%}.standard-layout-5 .sub-2.image #image2{box-sizing:border-box;margin:auto;padding:0 10%}.standard-layout-5 .sub-2.image #image2 img{object-fit:contain}.standard-layout-5 .sub-2 .desc-text{overflow:auto}.standard-layout-5 .sub-2 .alt-text{color:var(--kup-primary-color)}.standard-layout-5 .sub-3{box-sizing:border-box}.standard-layout-5 .sub-3.progress-bar{margin:auto;padding:0 5%;vertical-align:2px;width:80%}.standard-layout-5 .sub-3.button{margin:auto;text-align:center;width:20%}.standard-layout-5 .sub-3 kup-button{margin:auto}.standard-layout-5 .sub-4{box-sizing:border-box;margin:auto}.standard-layout-5 .sub-4.text{width:50%;font-size:0.875em}.standard-layout-5 .sub-4 div{padding:0 5%}.standard-layout-5 .sub-4 .alt-text{color:var(--color-0);font-size:1em}.standard-layout-5 .alt-text{font-weight:bold}@media screen and (max-width: 767px){.standard-layout-5 .sub-2.image{display:none}.standard-layout-5 .sub-2.icon{flex-basis:30%;max-width:30%}}.standard-layout-6{background-color:var(--kup-background-color);color:var(--kup-text-color);box-shadow:0px 0px 7.5px 0px rgba(128, 128, 128, 0.5);display:flex;height:100%;overflow:hidden;width:100%}.standard-layout-6 .section-1{background-color:var(--color-0);display:flex;flex:0 0 10%;max-width:10%}.standard-layout-6 .section-1 .alt-text{color:var(--kup_card_dynamic_color_0);height:100%;text-align:center;writing-mode:vertical-lr;margin:auto;font-size:1.25em}.standard-layout-6 .section-2{box-sizing:border-box;height:100%;display:flex;flex:0 0 90%;flex-direction:column;max-width:90%}.standard-layout-6 .section-2 .sub-2{margin:auto;text-align:center}.standard-layout-6 .section-2 .sub-2 kup-progress-bar{margin-bottom:1em}.standard-layout-6 kup-button{position:absolute;bottom:2%;right:2%}.standard-layout-7{background-color:var(--kup-background-color);color:var(--kup-text-color);box-shadow:0px 0px 7.5px 0px rgba(128, 128, 128, 0.5);display:flex;flex-direction:column;height:100%;overflow:hidden;width:100%}.standard-layout-7 #image1 img{margin:auto;object-fit:contain}.standard-layout-7 .section-1{background-color:var(--color-0);height:5%;width:100%}.standard-layout-7 .section-2{height:80%;width:100%;text-align:center;padding:25px 25%;box-sizing:border-box}.standard-layout-7 .section-2 .sub-2{margin:auto}.standard-layout-7 .section-2 .sub-2.image{box-sizing:border-box;height:65%}.standard-layout-7 .section-2 .sub-2.text{font-size:1.4em;letter-spacing:1.2px;padding-top:1em;height:35%}.standard-layout-7 .section-3{display:flex;height:15%;width:100%}.standard-layout-7 .section-3 .alt-text{margin:auto;opacity:0.75;width:50%}.standard-layout-7 .section-3 .alt-text:nth-child(1){margin-left:1em;text-align:left}.standard-layout-7 .section-3 .alt-text:nth-child(2){margin-right:1em;text-align:right}.standard-layout-8{background-color:var(--kup-background-color);color:var(--kup-text-color);box-shadow:0px 0px 7.5px 0px rgba(128, 128, 128, 0.5);display:flex;flex-direction:column;height:100%;overflow:hidden;width:100%;box-sizing:border-box;position:relative}.standard-layout-8 .background{background-color:var(--color-0);content:\"\";height:100%;width:100%;opacity:0.1;pointer-events:none;position:absolute;top:0;left:0;z-index:1}.standard-layout-8 .section-1{box-sizing:border-box;display:flex;flex-direction:column;max-width:100%;overflow:auto;height:auto}.standard-layout-8 .section-1 .sub-1{text-align:left;padding:0.6em 0.8em 0;font-size:1em;font-weight:bold;max-width:75%}.standard-layout-8 .section-1 .sub-2{text-align:left;padding:0.6em 0.8em;font-size:0.875em;max-width:75%}.standard-layout-8 .section-1 .sub-3{color:var(--color-0);font-weight:bold;text-align:center;font-size:1.2em;position:absolute;top:1em;right:1em;max-width:25%;text-overflow:ellipsis;max-height:calc(24px + 2.25em);padding:0 1em;overflow:hidden}.standard-layout-8 .section-1 .sub-3 kup-image{margin:auto}.standard-layout-8 .section-2{display:flex;height:auto;overflow:auto}.standard-layout-9{background-color:var(--kup-background-color);color:var(--kup-text-color);box-shadow:0px 0px 7.5px 0px rgba(128, 128, 128, 0.5);display:flex;flex-direction:row;height:100%;overflow:hidden;width:100%;box-sizing:border-box;position:relative}.standard-layout-9 #image1 img{object-fit:contain}.standard-layout-9 .section-1{margin-top:auto;margin-right:18px;margin-bottom:auto;white-space:nowrap}.standard-layout-9 .section-2{display:flex;height:100%;margin-top:auto;margin-bottom:auto;width:100%;overflow:hidden}.standard-layout-9 .sub-2{display:flex;flex-direction:row}.standard-layout-9 .text{text-align:left}.standard-layout-9 .text-wrapper{display:flex;flex-direction:column}.standard-layout-9 .icon{margin:auto;padding:0 1.25em}.standard-layout-9 .description{font-size:1.5em;letter-spacing:1px;padding-left:1.25em;padding-top:0.25em}.standard-layout-9 .title{font-size:2.75em;font-weight:bold}.standard-layout-9 .subtitle{font-size:1.5em;opacity:0.75}.standard-layout-10{background-color:var(--kup-background-color);color:var(--kup-text-color);box-shadow:0px 0px 7.5px 0px rgba(128, 128, 128, 0.5);display:flex;flex-direction:row;height:100%;overflow:hidden;width:100%;box-sizing:border-box;position:relative}.standard-layout-10 #image1 img{object-fit:contain}.standard-layout-10 .section-1{display:flex;height:100%;margin-top:auto;margin-bottom:auto;width:100%;overflow:hidden}.standard-layout-10 .section-2{margin-top:auto;margin-left:18px;margin-bottom:auto;white-space:nowrap}.standard-layout-10 .sub-2{display:flex;flex-direction:row-reverse}.standard-layout-10 .text{text-align:right}.standard-layout-10 .text-wrapper{display:flex;flex-direction:column}.standard-layout-10 .icon{margin:auto;padding:0 1.25em}.standard-layout-10 .description{font-size:1.5em;letter-spacing:1px;padding-right:1.25em;padding-top:0.25em}.standard-layout-10 .title{font-size:2.75em;font-weight:bold}.standard-layout-10 .subtitle{font-size:1.5em;opacity:0.75}.standard-layout-11{background-color:var(--kup-background-color);color:var(--kup-text-color);box-shadow:0px 0px 7.5px 0px rgba(128, 128, 128, 0.5);display:flex;flex-direction:row;height:100%;overflow:hidden;width:100%;box-sizing:border-box;position:relative}.standard-layout-11 #image1 img{object-fit:contain}.standard-layout-11 .section-1{display:flex;height:100%;margin-top:auto;margin-bottom:auto;min-width:6em;max-width:6em;overflow:hidden;transition:0.25s ease-in}.standard-layout-11 .section-2{display:flex;height:100%;margin-top:auto;margin-bottom:auto;width:100%;overflow:hidden}.standard-layout-11 .sub-1{background-color:var(--color-0);height:100%;text-align:center;writing-mode:vertical-lr;min-width:6em;display:flex;transition:width 0.25s ease-in}.standard-layout-11 .sub-1 div{font-size:1.25em}.standard-layout-11 .sub-2{display:flex;flex-direction:row}.standard-layout-11 .text:not(.description){text-align:left}.standard-layout-11 .text-wrapper{display:flex;flex-direction:column}.standard-layout-11 .icon{margin:auto;padding:0 1.25em}.standard-layout-11 .description{font-size:1.5em;letter-spacing:1px;margin:auto;color:var(--kup_card_dynamic_color_0)}.standard-layout-11 .title{font-size:2.75em;font-weight:bold;margin-top:auto}.standard-layout-11 .subtitle{font-size:1.5em;opacity:0.75;margin-bottom:auto}.standard-layout-12{background-color:var(--kup-background-color);box-shadow:var(--kup-box-shadow);color:var(--kup-text-color);min-width:200px;min-width:-moz-max-content;min-width:-webkit-max-content;}.standard-layout-12 .section-1{display:inline-flex;border-bottom:1px solid var(--kup-border-color);width:100%}.standard-layout-12 .section-1 kup-button{margin:0}.standard-layout-12 .section-2{display:flex;flex-direction:column}.standard-layout-12 .section-2.has-content{border-bottom:1px solid var(--kup-border-color);padding:0.5em 0.5em}.standard-layout-12 .section-2 kup-date-picker:first-of-type,.standard-layout-12 .section-2 kup-time-picker:first-of-type{margin-bottom:0.5em}.standard-layout-12 .section-3{backface-visibility:hidden;display:flex;flex-direction:column;max-height:20vh;overflow:auto}.standard-layout-12 .section-3 kup-checkbox{margin-left:0;margin-right:auto}.standard-layout-13{background-color:var(--kup-background-color);border-radius:4px;box-sizing:border-box;box-shadow:0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12);display:flex;flex-direction:column;height:100%;position:relative;width:100%;overflow:auto}.standard-layout-13 kup-button{margin-left:0}.standard-layout-13 .section-1{background-color:var(--kup-background-color);display:flex;justify-content:flex-start;align-items:center;box-sizing:border-box;box-shadow:0px 1px 3px 0px var(--kup-text-color);height:52px;width:100%;text-align:right}.standard-layout-13 .section-1 kup-button{margin-right:0.25em}.standard-layout-13 .section-2{height:100%;width:100%;overflow:auto;max-height:50vh}.standard-layout-13 .text{color:var(--kup-text-color);font-family:var(--kup-font-family-monospace);white-space:nowrap;border-bottom:1px solid var(--kup-border-color);line-height:1.75em}.standard-layout-14{background-color:var(--kup-background-color);box-shadow:var(--kup-box-shadow);color:var(--kup-text-color);min-width:200px;min-width:-moz-max-content;min-width:-webkit-max-content;}.standard-layout-14 .section-1{display:flex;padding:1em}.standard-layout-14 .section-1 .sub-1{width:100%}.standard-layout-14 .section-1 .sub-spinner{height:88px;width:88px;margin:0 10px}.standard-layout-14 .section-1 .f-image{margin:0 0.5em 0 0}.standard-layout-14 .section-1 .title{font-size:1.25em;margin-top:-0.5em;padding:0 0.25em 0.25em}.standard-layout-14 .section-1 .title .label{cursor:pointer;padding-right:0.25em}.standard-layout-14 .section-1 .title .label:hover{text-decoration:underline}.standard-layout-14 .section-1 .info{display:flex;padding:0 0.25em 0.25em;width:100%}.standard-layout-14 .section-1 .info .label{color:rgba(var(--kup-text-color-rgb), 0.75);margin-right:0.75em;min-width:max-content;width:auto}.standard-layout-14 .section-1 .info .value{width:100%}.standard-layout-14 .sub-button{display:inline-flex;width:100%}.standard-layout-14 .sub-button kup-button{margin:0}.standard-layout-14 .sub-checkbox{backface-visibility:hidden;display:flex;flex-direction:column;max-height:20vh;overflow:auto}.standard-layout-14 .sub-checkbox kup-checkbox{margin-left:0;margin-right:auto}.standard-layout-14 .sub-chip{max-width:25vw;overflow:auto;box-shadow:0 3px 2px -2px var(--kup-border-color)}.standard-layout-14 .sub-field{display:flex;flex-direction:column}.standard-layout-14 .sub-field.has-content{border-bottom:1px solid var(--kup-border-color);padding:0.5em 0.5em}.standard-layout-14 .sub-field kup-date-picker:first-of-type,.standard-layout-14 .sub-field kup-time-picker:first-of-type{margin-bottom:0.5em}.standard-layout-14 .sub-spinner{height:100px}.standard-layout-14 .sub-autocomplete{padding-top:1em}.standard-layout-14 .sub-autocomplete kup-autocomplete{margin:auto;padding:0.5em 0;width:max-content}.standard-layout-14 .sub-switch{display:flex;justify-content:space-evenly;padding:2em}.standard-layout-14 .sub-tree{max-height:25vh;overflow:auto}.standard-layout-14 #apply{display:none}.standard-layout-14 #apply.visible{display:block}.standard-layout-14 #open-in-new,.standard-layout-14 #search,.standard-layout-14 #new{margin:0;display:inline-flex}.standard-layout-15{outline:none;display:block;font-size:var(--kup-font-size);background:var(--kup-background-color);color:var(--kup-text-color);box-shadow:var(--kup-box-shadow);border-radius:3px;min-width:350px;max-width:700px}.standard-layout-15 .section-1{box-sizing:border-box;display:flex;padding:1em}.standard-layout-15 .section-1 .sub-1{width:100%}.standard-layout-15 .section-1 .sub-spinner{height:88px;width:88px;margin:0 10px}.standard-layout-15 .section-1 .f-image{margin:0 0.5em 0 0}.standard-layout-15 .section-1 .title{font-size:1.25em;padding:0 0.25em 0.25em;text-align:left}.standard-layout-15 .section-1 .title .label{cursor:pointer;padding-right:0.25em}.standard-layout-15 .section-1 .title .label:hover{text-decoration:underline}.standard-layout-15 .section-1 .info{display:flex;padding:0 0.25em 0.25em;width:100%}.standard-layout-15 .section-1 .info .label{color:rgba(var(--kup-text-color-rgb), 0.75);margin-right:0.75em;min-width:max-content;width:auto}.standard-layout-15 .section-1 .info .value{width:100%}.standard-layout-15 .section-2{border-top:1px solid var(--kup-border-color);box-sizing:border-box;height:180px;opacity:1;overflow:auto;transition:height 250ms ease-out, opacity 250ms ease-out}.standard-layout-15 .section-2 .info{box-sizing:border-box;height:100%;padding:1.25em}.standard-layout-15 .section-2 .detail-row{display:flex;justify-content:space-between}.standard-layout-15 .section-2 .detail-row:not(:last-child){margin-bottom:6px}.standard-layout-15 .section-2 .detail-row__label{color:rgba(var(--kup-text-color-rgb), 0.5);margin-top:0.175em;max-width:320px}.standard-layout-15 .section-2 .detail-row__value{color:var(--kup-text-color);font-size:120%;max-width:320px}.standard-layout-15 .section-2 kup-tree{text-align:left}.standard-layout-15 .section-3{border-top:1px solid var(--kup-border-color);display:flex;justify-content:flex-end;padding:6px;padding-top:2px;padding-bottom:2px}.standard-layout-15 .section-3 kup-button{margin:auto 0}.standard-layout-15 #open-in-new,.standard-layout-15 #search,.standard-layout-15 #new{margin:0;display:inline-flex}:host{--kup_card_ripple_color:var(\n --kup-card-ripple-color,\n var(--kup-primary-color)\n );display:block;font-size:var(--kup-font-size);height:var(--kup_card_height);min-height:var(--kup_card_height);min-width:var(--kup_card_width);outline:none;position:relative;width:var(--kup_card_width)}:host([is-menu]){display:none;animation:fade-in 0.25s ease-out}:host([menu-visible]){display:block}#kup-component{height:100%;width:100%}.mdc-ripple-surface{cursor:pointer;flex-direction:column;display:flex;height:100%;position:relative}.mdc-ripple-surface:before,.mdc-ripple-surface:after{background-color:var(--kup_card_ripple_color)}.card-view{animation:fade-in 0.25s ease-out;display:none;height:100%;width:100%}.card-view.visible{display:block}";
8473
9301
 
8474
9302
  let KupCard = class {
8475
9303
  constructor(hostRef) {
@@ -8543,10 +9371,11 @@ let KupCard = class {
8543
9371
  */
8544
9372
  this.scalingActive = false;
8545
9373
  }
8546
- onKupClick(id) {
9374
+ onKupClick(id, value) {
8547
9375
  this.kupClick.emit({
8548
9376
  comp: this,
8549
9377
  id: id,
9378
+ value: value,
8550
9379
  });
8551
9380
  }
8552
9381
  onKupClose(id) {
@@ -8617,7 +9446,7 @@ let KupCard = class {
8617
9446
  const link = links[index];
8618
9447
  link.onclick = (e) => {
8619
9448
  e.stopPropagation();
8620
- this.onKupClick(link.id);
9449
+ this.onKupClick(link.id, null);
8621
9450
  };
8622
9451
  }
8623
9452
  }
@@ -8653,12 +9482,18 @@ let KupCard = class {
8653
9482
  const method = 'create' + this.layoutNumber;
8654
9483
  try {
8655
9484
  switch (family) {
9485
+ case KupCardFamily.BUILTIN: {
9486
+ return builtinLayouts[method](this);
9487
+ }
8656
9488
  case KupCardFamily.COLLAPSIBLE: {
8657
9489
  return collapsibleLayouts[method](this);
8658
9490
  }
8659
9491
  case KupCardFamily.DIALOG: {
8660
9492
  return dialogLayouts[method](this);
8661
9493
  }
9494
+ case KupCardFamily.FREE: {
9495
+ return freeLayouts[method](this);
9496
+ }
8662
9497
  case KupCardFamily.SCALABLE: {
8663
9498
  return scalableLayouts[method](this);
8664
9499
  }
@@ -8851,14 +9686,14 @@ let KupCard = class {
8851
9686
  this.kupManager.debug.logRender(this, true);
8852
9687
  }
8853
9688
  render() {
8854
- if (!this.data) {
9689
+ if (!this.data && this.rootElement.children.length < 1) {
8855
9690
  return;
8856
9691
  }
8857
9692
  const style = {
8858
9693
  '--kup_card_height': this.sizeY ? this.sizeY : '100%',
8859
9694
  '--kup_card_width': this.sizeX ? this.sizeX : '100%',
8860
9695
  };
8861
- return (h(Host, { style: style }, h("style", null, this.kupManager.theme.setKupStyle(this.rootElement)), h("div", { id: componentWrapperId, onClick: () => this.onKupClick(null) }, this.getLayout())));
9696
+ return (h(Host, { style: style }, h("style", null, this.kupManager.theme.setKupStyle(this.rootElement)), h("div", { id: componentWrapperId, onClick: () => this.onKupClick(null, null) }, this.getLayout())));
8862
9697
  }
8863
9698
  disconnectedCallback() {
8864
9699
  this.kupManager.interact.unregister([this.rootElement]);
@@ -8866,7 +9701,7 @@ let KupCard = class {
8866
9701
  this.kupManager.resize.unobserve(this.rootElement);
8867
9702
  this.kupManager.theme.unregister(this);
8868
9703
  }
8869
- get rootElement() { return getElement(this); }
9704
+ get rootElement() { return getElement$1(this); }
8870
9705
  };
8871
9706
  KupCard.style = kupCardCss;
8872
9707
 
@@ -9516,7 +10351,7 @@ let KupChart = class {
9516
10351
  this.kupManager.theme.unregister(this);
9517
10352
  this.kupManager.resize.unobserve(this.rootElement);
9518
10353
  }
9519
- get rootElement() { return getElement(this); }
10354
+ get rootElement() { return getElement$1(this); }
9520
10355
  static get watchers() { return {
9521
10356
  "data": ["identifyRows"]
9522
10357
  }; }
@@ -9709,7 +10544,7 @@ let KupCheckbox = class {
9709
10544
  disconnectedCallback() {
9710
10545
  this.kupManager.theme.unregister(this);
9711
10546
  }
9712
- get rootElement() { return getElement(this); }
10547
+ get rootElement() { return getElement$1(this); }
9713
10548
  };
9714
10549
  KupCheckbox.style = kupCheckboxCss;
9715
10550
 
@@ -9933,7 +10768,7 @@ let KupChip = class {
9933
10768
  disconnectedCallback() {
9934
10769
  this.kupManager.theme.unregister(this);
9935
10770
  }
9936
- get rootElement() { return getElement(this); }
10771
+ get rootElement() { return getElement$1(this); }
9937
10772
  };
9938
10773
  KupChip.style = kupChipCss;
9939
10774
 
@@ -11174,7 +12009,7 @@ let KupColorPicker = class {
11174
12009
  this.kupManager.language.unregister(this);
11175
12010
  this.kupManager.theme.unregister(this);
11176
12011
  }
11177
- get rootElement() { return getElement(this); }
12012
+ get rootElement() { return getElement$1(this); }
11178
12013
  };
11179
12014
  KupColorPicker.style = kupColorPickerCss;
11180
12015
 
@@ -11522,7 +12357,7 @@ let KupCombobox = class {
11522
12357
  }
11523
12358
  this.kupManager.theme.unregister(this);
11524
12359
  }
11525
- get rootElement() { return getElement(this); }
12360
+ get rootElement() { return getElement$1(this); }
11526
12361
  };
11527
12362
  KupCombobox.style = kupComboboxCss;
11528
12363
 
@@ -12290,7 +13125,7 @@ class KupColumnMenu {
12290
13125
  }
12291
13126
  }
12292
13127
 
12293
- const kupDataTableCss = ":host{--kup_datatable_background_color:var(\n --kup-datatable-background-color,\n var(--kup-background-color)\n );--kup_datatable_border:var(\n --kup-datatable-border,\n 1px solid var(--kup-border-color)\n );--kup_datatable_color:var(--kup-datatable-color, var(--kup-text-color));--kup_datatable_font_family:var(\n --kup-datatable-font-family,\n var(--kup-font-family)\n );--kup_datatable_font_family_monospace:var(\n --kup-datatable-font-family-monospace,\n var(--kup-font-family-monospace)\n );--kup_datatable_font_size:var(\n --kup-datatable-font-size,\n var(--kup-font-size)\n );--kup_datatable_th_border:var(\n --kup-datatable-th-border,\n 1px solid var(--kup-border-color)\n );--kup_datatable_th_resize_handle_width:var(\n --kup-datatable-th-resize-handle-width,\n 3px\n );display:block;font-family:var(--kup_datatable_font_family);font-size:var(--kup_datatable_font_size);position:relative}:host([kup-toolbar]) .settings-trigger{height:12px}:host([kup-toolbar]) .customize-panel{visibility:visible}:host([force-one-line]) .f-cell__text{white-space:nowrap}table{background-color:var(--kup_datatable_background_color);border-spacing:0;border-collapse:separate;color:var(--kup_datatable_color);min-width:intrinsic;min-width:-moz-max-content;min-width:-webkit-max-content;text-align:left;width:100%}table.auto-width{min-width:auto;width:0}table>tbody>tr.focus td:first-of-type,table>tbody>tr[kup-drag-over] td:first-of-type{box-shadow:inset 4px 0px 0px 0px var(--kup-secondary-color)}table>tbody>tr>td:first-of-type,table>tbody>tr>td.placeholder~td:not(.placeholder){border-left:var(--kup_datatable_border)}table>tbody>tr>td:last-of-type{border-right:var(--kup_datatable_border)}table>tbody>tr:last-of-type>td{border-bottom:var(--kup_datatable_border)}table.border-top>tbody>tr:first-of-type>td{border-top:var(--kup_datatable_border)}table.row-separation>tbody>tr>td{border-bottom:var(--kup_datatable_border)}table.column-separation>tbody>tr>td{border-right:var(--kup_datatable_border)}table.noGrid,table.noGrid td{border:none}table tfoot td{border-bottom:var(--kup_datatable_border);border-right:var(--kup_datatable_border);box-sizing:border-box;height:36px;text-align:right;font-weight:bold;padding:0.5em 0.3125em}table tfoot td:hover{background-color:var(--kup_datatable_background_color)}table tfoot td:first-of-type{border-left:var(--kup_datatable_border)}#global-filter{margin:0.5em 0px;min-width:140px;width:100%}.kup-icon:not(.f-image){background-color:var(--kup-title-color);margin:0 0.25em;height:1.25em;width:1.25em}.kup-icon:not(.f-image).kup-ascending-icon,.kup-icon:not(.f-image).kup-descending-icon,.kup-icon:not(.f-image).kup-key-icon,.kup-icon:not(.f-image).kup-filter-remove-icon{height:auto}.kup-icon:not(.f-image).kup-collapsed-icon,.kup-icon:not(.f-image).kup-expanded-icon{float:left}.kup-icon:not(.f-image).kup-filter-remove-icon,.kup-icon:not(.f-image).kup-key-icon{margin:0 0.25em}.below-wrapper{backface-visibility:hidden;height:auto;overflow:auto}.below-wrapper.custom-size{overflow:unset}.below-wrapper:not(.custom-size){overflow-x:auto}.density-dense tbody>tr.group td{padding-top:0.25em;padding-bottom:0.25em}.density-wide tbody>tr.group>td{padding-top:0.75em;padding-bottom:0.75em}.fontsize-small{font-size:calc(var(--kup_datatable_font_size) * 0.75);transition:font-size 0.1s}.fontsize-small .group-cell-content>span:before{font-size:calc(var(--kup_datatable_font_size) * 1) !important}.fontsize-big{font-size:calc(var(--kup_datatable_font_size) * 1.25);transition:font-size 0.1s}.fontsize-big .group-cell-content>span:before{font-size:calc(var(--kup_datatable_font_size) * 1.5) !important}th{background-color:var(--kup-title-background-color);border:var(--kup_datatable_th_border);border-left:0 none;border-bottom-width:2px;box-sizing:border-box;top:0;touch-action:none;transition:background-color 0.25s ease;user-select:none}th:first-of-type{border-left:var(--kup_datatable_th_border)}.header-cell__content{color:var(--kup-title-color);display:flex;justify-content:space-between;padding:0.5em 0.3125em;text-overflow:ellipsis;white-space:nowrap}.header-cell--centered .header-cell__content{justify-content:center}.header-cell--is-number .header-cell__content{justify-content:flex-end}.header-cell__title{overflow:hidden;text-overflow:ellipsis;user-select:none}.header-cell__icons{display:flex}.header-cell__drag-handler{background:rgba(var(--kup-title-color-rgb), 0.25);height:100%;position:absolute;right:0;top:0;touch-action:none;user-select:none;width:var(--kup_datatable_th_resize_handle_width)}.header-cell__drag-handler:hover{background:rgba(var(--kup-title-color-rgb), 0.5)}.header-cell--sortable{cursor:pointer}.header-cell--is-icon{width:30px}tbody{cursor:auto}tbody td{height:0;padding:0}tbody td>*{border:none !important}tbody tr kup-button{max-width:max-content}tbody tr[kup-draggable]{opacity:0.5}tbody tr.selected td{background-color:rgba(var(--kup-primary-color-rgb), 0.175)}tbody tr:hover:not(.group):not(.selected) td{color:var(--kup-hover-color);background-color:var(--kup-hover-background-color)}tbody tr.group{background:var(--kup-title-background-color);border-top:var(--kup_datatable_border);color:var(--kup-title-color);font-weight:bold;cursor:pointer}tbody tr.group.group-label{border-bottom:none}tbody tr.group.group-total{border-top:none;line-height:0.5em}tbody tr.group>td{padding:0.5em 0}tbody tr.group>td .group-cell-content .indent{float:left;margin-left:0.25em}tbody tr.group>td .group-cell-content>span{display:inline-flex;outline:none;margin-left:0.25em}tbody tr.group>td.total{text-align:right;padding:0.5em 0.3125em}tbody tr.group>td.total.negative-number{color:var(--kup-danger-color)}tbody tr>td{box-sizing:border-box;transition:box-shadow 0.1s}tbody tr>td .row-expander{margin-right:0.5em}tbody tr>td .row-action{margin-right:0.2em}tbody tr [row-select-cell]{min-height:40px}tbody tr td[row-action-cell]{width:calc(3em * var(--kup_datatable_row_actions))}tbody tr td[row-action-cell] .f-image{cursor:pointer;margin-left:0.75em;display:inline-block;opacity:1;transition:0.25s ease-in-out}tbody tr td[row-action-cell] .f-image:hover{opacity:0.5}.above-wrapper{display:flex;width:100%}.kup-icon.overlay-action{display:none;position:absolute;top:0.5em;left:calc(50% - 0.625em)}th:hover .kup-icon.overlay-action{display:block}thead th{position:relative}th.obj:hover span:not(.overlay-action){opacity:0.5}.hidden span{color:transparent;position:relative;text-overflow:ellipsis;transition:color 200ms}.hidden span:hover{color:var(--kup_datatable_color)}.totals-value{font-weight:bold}.settings-trigger{cursor:pointer;display:block;width:32px;height:0;border-top-left-radius:25px 30px;border-top-right-radius:25px 30px;background-color:var(--kup-border-color);transition:height 0.25s}.settings-trigger.toggled{background-color:var(--kup-primary-color)}.settings-trigger.toggled .f-image__icon{background:var(--kup-text-on-primary-color) !important}.customize-panel{visibility:hidden;background:var(--kup_datatable_background_color);box-shadow:var(--kup-box-shadow);min-width:200px;width:fit-content;transition:height 0.25s}.customize-panel kup-switch{text-align:center}.customize-element{padding:0 1em 1em 1em}.customize-element:nth-child(1){padding-top:1em}.kup-menu{animation:fade-in 0.25s ease-out;background-color:var(--kup-background-color);box-shadow:var(--kup-box-shadow);color:var(--kup-text-color);display:none;max-height:33vh;overflow:auto;position:relative;transform:none;transform-origin:unset;transition:height 0.2s;will-change:unset}.kup-menu.visible{display:block}.indent{display:inline-block;height:1em;width:2em}.indent~kup-image,.indent~kup-button{margin:0;vertical-align:middle}.indent~kup-image{display:inline-block}.indent~kup-button,.indent~kup-checkbox{display:inline-block}.kup-icon.kup-ascending-icon{-webkit-mask:var(--kup-ascending-icon);mask:var(--kup-ascending-icon)}.kup-icon.kup-collapsed-icon{-webkit-mask:var(--kup-collapsed-icon);mask:var(--kup-collapsed-icon)}.kup-icon.kup-descending-icon{-webkit-mask:var(--kup-descending-icon);mask:var(--kup-descending-icon)}.kup-icon.kup-expanded-icon{-webkit-mask:var(--kup-expanded-icon);mask:var(--kup-expanded-icon)}.kup-icon.kup-filter-remove-icon{-webkit-mask:var(--kup-filter-remove-icon);mask:var(--kup-filter-remove-icon)}.kup-icon.kup-key-icon{-webkit-mask:var(--kup-key-icon);mask:var(--kup-key-icon)}.paginator-wrapper{display:flex;flex-flow:wrap;min-width:max-content}.paginator-tabs{width:100%}.paginator-tabs kup-paginator{display:inline-flex}.paginator-tabs kup-button{position:relative;height:100%;margin-left:0.25em;float:right}.paginator-tabs .load-more-button{margin:0.5em 0px 0px}sticky-header{display:none}.persistent-header~sticky-header{background:var(--kup-title-background-color);border-bottom:2px solid var(--kup-border-color);box-shadow:0px 0px 7.5px 0px rgba(128, 128, 128, 0.5);color:var(--kup-title-color);display:block;opacity:0;overflow:hidden;pointer-events:none;position:fixed;top:0;transition:opacity 0.25s ease-in-out;z-index:10}.persistent-header~sticky-header.activated{opacity:1;pointer-events:all}.persistent-header~sticky-header[hidden]{display:none}.persistent-header~sticky-header tr-sticky{display:inline-flex}.persistent-header~sticky-header th-sticky{box-sizing:border-box;display:inline-flex;padding:0 0.3125em}.persistent-header~sticky-header th-sticky .header-cell__content{width:100%}.fixed-column,.fixed-row{background-color:var(--kup_datatable_background_color);color:var(--kup-text-color);position:sticky}thead .fixed-column,thead .fixed-row,tfoot .fixed-column,tfoot .fixed-row{z-index:10}table.custom-size th{position:sticky;top:0;z-index:10}table.custom-size th.fixed-column{z-index:11}tr:hover .fixed-row,tr:hover .fixed-column{color:var(--kup-hover-color);background-color:var(--kup-hover-background-color)}tr.selected .fixed-column,tr.selected .fixed-row{background-color:var(--kup_datatable_background_color);background-image:linear-gradient(to right, rgba(var(--kup-primary-color-rgb), 0.175) 0%, rgba(var(--kup-primary-color-rgb), 0.175) 0.1%, rgba(var(--kup-primary-color-rgb), 0.175))}.fixed-row{top:0;z-index:4}.fixed-column{left:0;z-index:6}.fixed-column.fixed-row{z-index:8}thead tr .fixed-column,thead tr:hover:not(.group):not(.selected) .fixed-column{background-color:var(--kup-title-background-color);color:var(--kup-title-color)}tfoot tr:hover:not(.group):not(.selected) .fixed-row,tfoot tr:hover:not(.group):not(.selected) .fixed-column{color:var(--kup-text-color);background-color:var(--kup_datatable_background_color)}:host([drag-enabled]) tr{touch-action:none}th[kup-drag-over]{background-color:rgba(var(--kup-success-color-rgb), 0.25)}th[kup-draggable]{cursor:grabbing !important;opacity:0.5}.droparea{animation:fade-in 0.25s ease-out;background:var(--kup_datatable_background_color);border-radius:8px;box-shadow:var(--kup-box-shadow);display:none;padding:1em 0.5em}.droparea--visible{display:flex}.droparea__groups{border:2px dashed var(--kup-text-color)}.droparea__remove{border:2px dashed var(--kup-danger-color)}.droparea__groups,.droparea__remove{background:var(--kup_datatable_background_color);box-shadow:var(--kup-box-shadow);display:block;height:50px;margin:0 0.5em;opacity:0.5;position:relative;transition:opacity 0.25s;width:50px}.droparea__groups .f-image,.droparea__remove .f-image{width:100%;position:absolute}.droparea__groups .f-image:first-of-type,.droparea__remove .f-image:first-of-type{opacity:1}.droparea__groups .f-image:last-of-type,.droparea__remove .f-image:last-of-type{opacity:0}.droparea__groups[kup-drag-over],.droparea__remove[kup-drag-over]{opacity:1}.droparea__groups[kup-drag-over] .f-image:first-of-type,.droparea__remove[kup-drag-over] .f-image:first-of-type{opacity:0}.droparea__groups[kup-drag-over] .f-image:last-of-type,.droparea__remove[kup-drag-over] .f-image:last-of-type{opacity:1}:host(.kup-cross-selection) #kup-component th.selected{box-shadow:inset 0px 4px 0px 0px var(--kup-secondary-color)}:host(.kup-cross-selection) #kup-component td.selected{background-color:rgba(var(--kup-text-color-rgb), 0.075)}:host(.kup-cross-selection) #kup-component td.selected.fixed-column,:host(.kup-cross-selection) #kup-component td.selected.fixed-row{background-color:var(--kup_datatable_background_color);background-image:linear-gradient(to right, rgba(var(--kup-text-color-rgb), 0.075) 0%, rgba(var(--kup-text-color-rgb), 0.075) 0.1%, rgba(var(--kup-text-color-rgb), 0.075))}:host(.kup-cross-selection) #kup-component tr.selected td{background-color:rgba(var(--kup-text-color-rgb), 0.075)}:host(.kup-cross-selection) #kup-component tr.selected td:first-of-type{box-shadow:inset 4px 0px 0px 0px var(--kup-secondary-color)}:host(.kup-cross-selection) #kup-component tr.selected td.selected{background-color:rgba(var(--kup-text-color-rgb), 0.15)}:host(.kup-cross-selection) #kup-component tr.selected td.fixed-column,:host(.kup-cross-selection) #kup-component tr.selected td.fixed-row{background-color:var(--kup_datatable_background_color);background-image:linear-gradient(to right, rgba(var(--kup-text-color-rgb), 0.075) 0%, rgba(var(--kup-text-color-rgb), 0.075) 0.1%, rgba(var(--kup-text-color-rgb), 0.075))}:host(.kup-cross-selection) #kup-component tr.selected td.fixed-column.selected,:host(.kup-cross-selection) #kup-component tr.selected td.fixed-row.selected{background-image:linear-gradient(to right, rgba(var(--kup-text-color-rgb), 0.15) 0%, rgba(var(--kup-text-color-rgb), 0.15) 0.1%, rgba(var(--kup-text-color-rgb), 0.15))}:host(.kup-layout-fixed) #kup-component table{table-layout:fixed;width:100%}tr.clickable{cursor:pointer}";
13128
+ const kupDataTableCss = ":host{--kup_datatable_background_color:var(\n --kup-datatable-background-color,\n var(--kup-background-color)\n );--kup_datatable_border:var(\n --kup-datatable-border,\n 1px solid var(--kup-border-color)\n );--kup_datatable_color:var(--kup-datatable-color, var(--kup-text-color));--kup_datatable_font_family:var(\n --kup-datatable-font-family,\n var(--kup-font-family)\n );--kup_datatable_font_family_monospace:var(\n --kup-datatable-font-family-monospace,\n var(--kup-font-family-monospace)\n );--kup_datatable_font_size:var(\n --kup-datatable-font-size,\n var(--kup-font-size)\n );--kup_datatable_th_border:var(\n --kup-datatable-th-border,\n 1px solid var(--kup-border-color)\n );--kup_datatable_th_resize_handle_width:var(\n --kup-datatable-th-resize-handle-width,\n 3px\n );display:block;font-family:var(--kup_datatable_font_family);font-size:var(--kup_datatable_font_size);position:relative}:host([kup-toolbar]) .settings-trigger{height:12px}:host([kup-toolbar]) .customize-panel{visibility:visible}:host([force-one-line]) .f-cell__text{white-space:nowrap}table{background-color:var(--kup_datatable_background_color);border-spacing:0;border-collapse:separate;color:var(--kup_datatable_color);min-width:intrinsic;min-width:-moz-max-content;min-width:-webkit-max-content;text-align:left;width:100%}table.auto-width{min-width:auto;width:0}table>tbody>tr.focus td:first-of-type,table>tbody>tr[kup-drag-over] td:first-of-type{box-shadow:inset 4px 0px 0px 0px var(--kup-secondary-color)}table>tbody>tr>td:first-of-type,table>tbody>tr>td.placeholder~td:not(.placeholder){border-left:var(--kup_datatable_border)}table>tbody>tr>td:last-of-type{border-right:var(--kup_datatable_border)}table>tbody>tr:last-of-type>td{border-bottom:var(--kup_datatable_border)}table.border-top>tbody>tr:first-of-type>td{border-top:var(--kup_datatable_border)}table.row-separation>tbody>tr>td{border-bottom:var(--kup_datatable_border)}table.column-separation>tbody>tr>td{border-right:var(--kup_datatable_border)}table.noGrid,table.noGrid td{border:none}table tfoot td{border-bottom:var(--kup_datatable_border);border-right:var(--kup_datatable_border);box-sizing:border-box;height:36px;text-align:right;font-weight:bold;padding:0.5em 0.3125em}table tfoot td:hover{background-color:var(--kup_datatable_background_color)}table tfoot td:first-of-type{border-left:var(--kup_datatable_border)}#global-filter{margin:0.5em 0px;min-width:140px;width:100%}.kup-icon:not(.f-image){background-color:var(--kup-title-color);margin:0 0.25em;height:1.25em;width:1.25em}.kup-icon:not(.f-image).kup-ascending-icon,.kup-icon:not(.f-image).kup-descending-icon,.kup-icon:not(.f-image).kup-key-icon,.kup-icon:not(.f-image).kup-filter-remove-icon{height:auto}.kup-icon:not(.f-image).kup-collapsed-icon,.kup-icon:not(.f-image).kup-expanded-icon{float:left}.kup-icon:not(.f-image).kup-filter-remove-icon,.kup-icon:not(.f-image).kup-key-icon{margin:0 0.25em}.below-wrapper{backface-visibility:hidden;height:auto;overflow:auto}.below-wrapper.custom-size{overflow:unset}.below-wrapper:not(.custom-size){overflow-x:auto}.density-dense tbody>tr.group td{padding-top:0.25em;padding-bottom:0.25em}.density-wide tbody>tr.group>td{padding-top:0.75em;padding-bottom:0.75em}.fontsize-small{font-size:calc(var(--kup_datatable_font_size) * 0.75);transition:font-size 0.1s}.fontsize-small .group-cell-content>span:before{font-size:calc(var(--kup_datatable_font_size) * 1) !important}.fontsize-big{font-size:calc(var(--kup_datatable_font_size) * 1.25);transition:font-size 0.1s}.fontsize-big .group-cell-content>span:before{font-size:calc(var(--kup_datatable_font_size) * 1.5) !important}th{background-color:var(--kup-title-background-color);border:var(--kup_datatable_th_border);border-left:0 none;border-bottom-width:2px;box-sizing:border-box;top:0;touch-action:none;transition:background-color 0.25s ease;user-select:none}th:first-of-type{border-left:var(--kup_datatable_th_border)}.header-cell__content{color:var(--kup-title-color);display:flex;justify-content:space-between;padding:0.5em 0.3125em;text-overflow:ellipsis;white-space:nowrap}.header-cell--centered .header-cell__content{justify-content:center}.header-cell--is-number .header-cell__content{justify-content:flex-end}.header-cell__title{overflow:hidden;text-overflow:ellipsis;user-select:none}.header-cell__icons{display:flex}.header-cell__drag-handler{background:rgba(var(--kup-title-color-rgb), 0.25);height:100%;position:absolute;right:0;top:0;touch-action:none;user-select:none;width:var(--kup_datatable_th_resize_handle_width)}.header-cell__drag-handler:hover{background:rgba(var(--kup-title-color-rgb), 0.5)}.header-cell--sortable{cursor:pointer}.header-cell--is-icon{width:30px}tbody{cursor:auto}tbody td{height:0;padding:0}tbody td>*{border:none !important}tbody tr kup-button{max-width:max-content}tbody tr[kup-draggable]{opacity:0.5}tbody tr.selected td{background-color:rgba(var(--kup-primary-color-rgb), 0.175)}tbody tr:hover:not(.group):not(.selected) td{color:var(--kup-hover-color);background-color:var(--kup-hover-background-color)}tbody tr.group{background:var(--kup-title-background-color);border-top:var(--kup_datatable_border);color:var(--kup-title-color);font-weight:bold;cursor:pointer}tbody tr.group.group-label{border-bottom:none}tbody tr.group.group-total{border-top:none;line-height:0.5em}tbody tr.group>td{padding:0.5em 0}tbody tr.group>td .group-cell-content .indent{float:left;margin-left:0.25em}tbody tr.group>td .group-cell-content>span{display:inline-flex;outline:none;margin-left:0.25em}tbody tr.group>td.total{text-align:right;padding:0.5em 0.3125em}tbody tr.group>td.total.negative-number{color:var(--kup-danger-color)}tbody tr>td{box-sizing:border-box;transition:box-shadow 0.1s}tbody tr>td .row-expander{margin-right:0.5em}tbody tr>td .row-action{margin-right:0.2em}tbody tr [row-select-cell]{min-height:40px}tbody tr td[row-action-cell]{width:calc(3em * var(--kup_datatable_row_actions))}tbody tr td[row-action-cell] .f-image{cursor:pointer;margin-left:0.75em;display:inline-block;opacity:1;transition:0.25s ease-in-out}tbody tr td[row-action-cell] .f-image:hover{opacity:0.5}.above-wrapper{display:flex;width:100%}.kup-icon.overlay-action{display:none;position:absolute;top:0.5em;left:calc(50% - 0.625em)}th:hover .kup-icon.overlay-action{display:block}thead th{position:relative}th.obj:hover span:not(.overlay-action){opacity:0.5}.hidden span{color:transparent;position:relative;text-overflow:ellipsis;transition:color 200ms}.hidden span:hover{color:var(--kup_datatable_color)}.totals-value{font-weight:bold}.settings-trigger{cursor:pointer;display:block;width:32px;height:0;border-top-left-radius:25px 30px;border-top-right-radius:25px 30px;background-color:var(--kup-border-color);transition:height 0.25s}.settings-trigger.toggled{background-color:var(--kup-primary-color)}.settings-trigger.toggled .f-image__icon{background:var(--kup-text-on-primary-color) !important}.indent{display:inline-block;height:1em;width:2em}.indent~kup-image,.indent~kup-button{margin:0;vertical-align:middle}.indent~kup-image{display:inline-block}.indent~kup-button,.indent~kup-checkbox{display:inline-block}.kup-icon.kup-ascending-icon{-webkit-mask:var(--kup-ascending-icon);mask:var(--kup-ascending-icon)}.kup-icon.kup-collapsed-icon{-webkit-mask:var(--kup-collapsed-icon);mask:var(--kup-collapsed-icon)}.kup-icon.kup-descending-icon{-webkit-mask:var(--kup-descending-icon);mask:var(--kup-descending-icon)}.kup-icon.kup-expanded-icon{-webkit-mask:var(--kup-expanded-icon);mask:var(--kup-expanded-icon)}.kup-icon.kup-filter-remove-icon{-webkit-mask:var(--kup-filter-remove-icon);mask:var(--kup-filter-remove-icon)}.kup-icon.kup-key-icon{-webkit-mask:var(--kup-key-icon);mask:var(--kup-key-icon)}.paginator-wrapper{display:flex;flex-flow:wrap;min-width:max-content}.paginator-tabs{width:100%}.paginator-tabs kup-paginator{display:inline-flex}.paginator-tabs kup-button{position:relative;height:100%;margin-left:0.25em;float:right}.paginator-tabs .load-more-button{margin:0.5em 0px 0px}sticky-header{display:none}.persistent-header~sticky-header{background:var(--kup-title-background-color);border-bottom:2px solid var(--kup-border-color);box-shadow:0px 0px 7.5px 0px rgba(128, 128, 128, 0.5);color:var(--kup-title-color);display:block;opacity:0;overflow:hidden;pointer-events:none;position:fixed;top:0;transition:opacity 0.25s ease-in-out;z-index:10}.persistent-header~sticky-header.activated{opacity:1;pointer-events:all}.persistent-header~sticky-header[hidden]{display:none}.persistent-header~sticky-header tr-sticky{display:inline-flex}.persistent-header~sticky-header th-sticky{box-sizing:border-box;display:inline-flex;padding:0 0.3125em}.persistent-header~sticky-header th-sticky .header-cell__content{width:100%}.fixed-column,.fixed-row{background-color:var(--kup_datatable_background_color);color:var(--kup-text-color);position:sticky}thead .fixed-column,thead .fixed-row,tfoot .fixed-column,tfoot .fixed-row{z-index:10}table.custom-size th{position:sticky;top:0;z-index:10}table.custom-size th.fixed-column{z-index:11}tr:hover .fixed-row,tr:hover .fixed-column{color:var(--kup-hover-color);background-color:var(--kup-hover-background-color)}tr.selected .fixed-column,tr.selected .fixed-row{background-color:var(--kup_datatable_background_color);background-image:linear-gradient(to right, rgba(var(--kup-primary-color-rgb), 0.175) 0%, rgba(var(--kup-primary-color-rgb), 0.175) 0.1%, rgba(var(--kup-primary-color-rgb), 0.175))}.fixed-row{top:0;z-index:4}.fixed-column{left:0;z-index:6}.fixed-column.fixed-row{z-index:8}thead tr .fixed-column,thead tr:hover:not(.group):not(.selected) .fixed-column{background-color:var(--kup-title-background-color);color:var(--kup-title-color)}tfoot tr:hover:not(.group):not(.selected) .fixed-row,tfoot tr:hover:not(.group):not(.selected) .fixed-column{color:var(--kup-text-color);background-color:var(--kup_datatable_background_color)}:host([drag-enabled]) tr{touch-action:none}th[kup-drag-over]{background-color:rgba(var(--kup-success-color-rgb), 0.25)}th[kup-draggable]{cursor:grabbing !important;opacity:0.5}.droparea{animation:fade-in 0.25s ease-out;background:var(--kup_datatable_background_color);border-radius:8px;box-shadow:var(--kup-box-shadow);display:none;padding:1em 0.5em}.droparea--visible{display:flex}.droparea__groups{border:2px dashed var(--kup-text-color)}.droparea__remove{border:2px dashed var(--kup-danger-color)}.droparea__groups,.droparea__remove{background:var(--kup_datatable_background_color);box-shadow:var(--kup-box-shadow);display:block;height:50px;margin:0 0.5em;opacity:0.5;position:relative;transition:opacity 0.25s;width:50px}.droparea__groups .f-image,.droparea__remove .f-image{width:100%;position:absolute}.droparea__groups .f-image:first-of-type,.droparea__remove .f-image:first-of-type{opacity:1}.droparea__groups .f-image:last-of-type,.droparea__remove .f-image:last-of-type{opacity:0}.droparea__groups[kup-drag-over],.droparea__remove[kup-drag-over]{opacity:1}.droparea__groups[kup-drag-over] .f-image:first-of-type,.droparea__remove[kup-drag-over] .f-image:first-of-type{opacity:0}.droparea__groups[kup-drag-over] .f-image:last-of-type,.droparea__remove[kup-drag-over] .f-image:last-of-type{opacity:1}:host(.kup-cross-selection) #kup-component th.selected{box-shadow:inset 0px 4px 0px 0px var(--kup-secondary-color)}:host(.kup-cross-selection) #kup-component td.selected{background-color:rgba(var(--kup-text-color-rgb), 0.075)}:host(.kup-cross-selection) #kup-component td.selected.fixed-column,:host(.kup-cross-selection) #kup-component td.selected.fixed-row{background-color:var(--kup_datatable_background_color);background-image:linear-gradient(to right, rgba(var(--kup-text-color-rgb), 0.075) 0%, rgba(var(--kup-text-color-rgb), 0.075) 0.1%, rgba(var(--kup-text-color-rgb), 0.075))}:host(.kup-cross-selection) #kup-component tr.selected td{background-color:rgba(var(--kup-text-color-rgb), 0.075)}:host(.kup-cross-selection) #kup-component tr.selected td:first-of-type{box-shadow:inset 4px 0px 0px 0px var(--kup-secondary-color)}:host(.kup-cross-selection) #kup-component tr.selected td.selected{background-color:rgba(var(--kup-text-color-rgb), 0.15)}:host(.kup-cross-selection) #kup-component tr.selected td.fixed-column,:host(.kup-cross-selection) #kup-component tr.selected td.fixed-row{background-color:var(--kup_datatable_background_color);background-image:linear-gradient(to right, rgba(var(--kup-text-color-rgb), 0.075) 0%, rgba(var(--kup-text-color-rgb), 0.075) 0.1%, rgba(var(--kup-text-color-rgb), 0.075))}:host(.kup-cross-selection) #kup-component tr.selected td.fixed-column.selected,:host(.kup-cross-selection) #kup-component tr.selected td.fixed-row.selected{background-image:linear-gradient(to right, rgba(var(--kup-text-color-rgb), 0.15) 0%, rgba(var(--kup-text-color-rgb), 0.15) 0.1%, rgba(var(--kup-text-color-rgb), 0.15))}:host(.kup-layout-fixed) #kup-component table{table-layout:fixed;width:100%}tr.clickable{cursor:pointer}";
12294
13129
 
12295
13130
  let KupDataTable = class {
12296
13131
  constructor(hostRef) {
@@ -12573,6 +13408,7 @@ let KupDataTable = class {
12573
13408
  this.removeDropareaRef = null;
12574
13409
  this.groupsDropareaRef = null;
12575
13410
  this.clickCb = null;
13411
+ this.clickCbCustomPanel = null;
12576
13412
  /**
12577
13413
  * Reference to the row detail card.
12578
13414
  */
@@ -13565,11 +14401,9 @@ let KupDataTable = class {
13565
14401
  }
13566
14402
  }
13567
14403
  customizePanelPosition() {
13568
- if (this.customizeTopButtonRef) {
13569
- this.kupManager.dynamicPosition.register(this.customizeTopPanelRef, this.customizeTopButtonRef);
13570
- }
13571
- if (this.customizeBottomButtonRef) {
13572
- this.kupManager.dynamicPosition.register(this.customizeBottomPanelRef, this.customizeBottomButtonRef);
14404
+ if (this.customizeTopButtonRef &&
14405
+ !this.kupManager.dynamicPosition.isRegistered(this.customizeTopPanelRef)) {
14406
+ this.kupManager.dynamicPosition.register(this.customizeTopPanelRef, this.customizeTopButtonRef, 0, KupDynamicPositionPlacement.BOTTOM, true);
13573
14407
  }
13574
14408
  }
13575
14409
  rowsPointLength() {
@@ -15280,19 +16114,28 @@ let KupDataTable = class {
15280
16114
  }
15281
16115
  }
15282
16116
  openCustomSettings() {
15283
- this.customizeTopPanelRef.classList.add('visible');
16117
+ this.customizeTopPanelRef.menuVisible = true;
15284
16118
  this.customizeTopButtonRef.classList.add('toggled');
15285
16119
  this.kupManager.dynamicPosition.start(this.customizeTopPanelRef);
15286
16120
  this.openedCustomSettings = true;
16121
+ if (!this.clickCbCustomPanel) {
16122
+ this.clickCbCustomPanel = {
16123
+ cb: () => {
16124
+ this.closeCustomSettings();
16125
+ },
16126
+ el: this.customizeTopPanelRef,
16127
+ };
16128
+ }
16129
+ this.kupManager.addClickCallback(this.clickCbCustomPanel, true);
15287
16130
  }
15288
16131
  closeCustomSettings() {
15289
16132
  this.customizeTopButtonRef.classList.remove('toggled');
15290
16133
  if (this.customizeTopPanelRef == null) {
15291
16134
  return;
15292
16135
  }
15293
- this.customizeTopPanelRef.classList.remove('visible');
15294
- this.kupManager.dynamicPosition.stop(this.customizeTopPanelRef);
16136
+ this.customizeTopPanelRef.menuVisible = false;
15295
16137
  this.openedCustomSettings = false;
16138
+ this.kupManager.removeClickCallback(this.clickCbCustomPanel);
15296
16139
  }
15297
16140
  renderPaginator(top) {
15298
16141
  return (h("div", { class: "paginator-wrapper" }, h("div", { class: "paginator-tabs" }, !this.lazyLoadRows &&
@@ -15313,9 +16156,9 @@ let KupDataTable = class {
15313
16156
  totalsMatrix = this.renderTotalsMatrix();
15314
16157
  }
15315
16158
  }
15316
- return (h("div", { class: "kup-menu customize-panel", ref: (el) => {
16159
+ return (h("kup-card", { customStyle: "::slotted(kup-switch) { width: max-content !important; } ::slotted(*) { margin: auto !important; } ::slotted(.customize-element) { margin: auto !important; padding: 0 1em 1em 1em !important; width: max-content !important; } ::slotted(.customize-element):nth-child(1) { padding-top: 1em !important; }", isMenu: true, layoutFamily: KupCardFamily.FREE, ref: (el) => {
15317
16160
  this.customizeTopPanelRef = el;
15318
- } }, density, grid, fontsize, transpose, h("kup-switch", { class: "customize-element", checked: this.dragEnabled, label: this.kupManager.language.translate(KupLanguageGeneric.DRAG_AND_DROP), leadingLabel: true, "onkup-switch-change": () => (this.dragEnabled = !this.dragEnabled) }), h("kup-switch", { class: "customize-element", checked: this.editableData, label: this.kupManager.language.translate(KupLanguageGeneric.EDITABLE), leadingLabel: true, "onkup-switch-change": () => (this.editableData = !this.editableData) }), h("kup-button", { title: this.kupManager.language.translate(KupLanguageGeneric.TOGGLE) +
16161
+ }, sizeX: "360px", sizeY: "300px" }, density, grid, fontsize, transpose, h("kup-switch", { class: "customize-element", checked: this.dragEnabled, label: this.kupManager.language.translate(KupLanguageGeneric.DRAG_AND_DROP), leadingLabel: true, "onkup-switch-change": () => (this.dragEnabled = !this.dragEnabled) }), h("kup-switch", { class: "customize-element", checked: this.editableData, label: this.kupManager.language.translate(KupLanguageGeneric.EDITABLE), leadingLabel: true, "onkup-switch-change": () => (this.editableData = !this.editableData) }), h("kup-button", { title: this.kupManager.language.translate(KupLanguageGeneric.TOGGLE) +
15319
16162
  ' Magic Box ' +
15320
16163
  '(' +
15321
16164
  this.kupManager.language.translate(KupLanguageGeneric.EXPERIMENTAL_FEAT) +
@@ -15676,6 +16519,9 @@ let KupDataTable = class {
15676
16519
  if (dynamicPositionElements.length > 0) {
15677
16520
  this.kupManager.dynamicPosition.unregister(Array.prototype.slice.call(dynamicPositionElements));
15678
16521
  }
16522
+ if (this.customizeTopPanelRef) {
16523
+ this.customizeTopPanelRef.remove();
16524
+ }
15679
16525
  if (this.columnMenuCard) {
15680
16526
  this.columnMenuCard.remove();
15681
16527
  }
@@ -15685,7 +16531,7 @@ let KupDataTable = class {
15685
16531
  this.kupManager.resize.unobserve(this.rootElement);
15686
16532
  this.kupDidUnload.emit({ comp: this, id: this.rootElement.id });
15687
16533
  }
15688
- get rootElement() { return getElement(this); }
16534
+ get rootElement() { return getElement$1(this); }
15689
16535
  static get watchers() { return {
15690
16536
  "rowsPerPage": ["rowsPerPageHandler", "recalculateRows"],
15691
16537
  "expandGroups": ["expandGroupsHandler"],
@@ -15704,26 +16550,7 @@ let KupDataTable = class {
15704
16550
  };
15705
16551
  KupDataTable.style = kupDataTableCss;
15706
16552
 
15707
- /**
15708
- * Props of the kup-date-picker component.
15709
- * Used to export every prop in an object.
15710
- */
15711
- var KupDatePickerProps;
15712
- (function (KupDatePickerProps) {
15713
- KupDatePickerProps["customStyle"] = "Custom style of the component.";
15714
- KupDatePickerProps["data"] = "Props of the sub-components.";
15715
- KupDatePickerProps["disabled"] = "Defaults at false. When set to true, the component is disabled.";
15716
- KupDatePickerProps["firstDayIndex"] = "First day number (0 - sunday, 1 - monday, ...)";
15717
- KupDatePickerProps["initialValue"] = "Sets the initial value of the component";
15718
- })(KupDatePickerProps || (KupDatePickerProps = {}));
15719
- var SourceEvent;
15720
- (function (SourceEvent) {
15721
- SourceEvent["DATE"] = "date";
15722
- SourceEvent["MONTH"] = "month";
15723
- SourceEvent["YEAR"] = "year";
15724
- })(SourceEvent || (SourceEvent = {}));
15725
-
15726
- const kupDatePickerCss = ":host{display:block;font-size:var(--kup-font-size)}#date-picker-div{outline:none;pointer-events:all;background-color:var(--kup-background-color);box-shadow:var(--kup-box-shadow);color:var(--kup-text-color);display:none;overflow:hidden;padding:10px;box-sizing:border-box;flex-direction:column;justify-content:center;height:22em;width:22em;position:absolute;z-index:1}#date-picker-div.visible{display:block}#date-picker-div.dynamic-position-active{display:flex}#date-picker-div .section-1{box-sizing:border-box;height:5em;overflow:auto;padding-bottom:1em;width:100%}#date-picker-div .section-1 .sub-1{display:flex;flex-direction:row;justify-content:center}#date-picker-div .section-2{height:calc(100% - 60px);overflow:auto;width:100%}#date-picker-div #prev-page{margin-left:auto}#date-picker-div #change-view-button{margin:auto;width:12em;text-align:center}#date-picker-div #next-page{margin-right:auto}#date-picker-div #calendar{border-collapse:collapse;width:100%}#date-picker-div thead{border-bottom:1px solid var(--kup-border-color)}#date-picker-div .item-text{color:rgba(var(--kup-text-color-rgb), 0.5)}#date-picker-div .item{text-align:center}#date-picker-div .item:not(.selected) .item-number:hover{background-color:var(--kup-hover-background-color)}#date-picker-div .item.selected .item-number,#date-picker-div .item.selected .item-number:hover{background-color:rgba(var(--kup-primary-color-rgb), 0.175)}#date-picker-div .item-number{border-radius:50%;cursor:pointer;display:flex;justify-content:center;line-height:2.5em;margin:auto;width:2.5em;transition:background-color 0.25s;text-transform:capitalize}.f-text-field{position:relative}:host(.kup-full-height){height:100%}:host(.kup-full-height) #kup-component{height:100%}:host(.kup-full-width){width:100%}:host(.kup-full-width) #kup-component{width:100%}:host(.kup-danger){--kup-textfield-primary-color:var(--kup-danger-color);--kup-textfield-primary-color-rgb:var(--kup-danger-color-rgb)}:host(.kup-info){--kup-textfield-primary-color:var(--kup-info-color);--kup-textfield-primary-color-rgb:var(--kup-info-color-rgb)}:host(.kup-secondary){--kup-textfield-primary-color:var(--kup-secondary-color);--kup-textfield-primary-color-rgb:var(--kup-secondary-color-rgb)}:host(.kup-success){--kup-textfield-primary-color:var(--kup-success-color);--kup-textfield-primary-color-rgb:var(--kup-success-color-rgb)}:host(.kup-warning){--kup-textfield-primary-color:var(--kup-warning-color);--kup-textfield-primary-color-rgb:var(--kup-warning-color-rgb)}";
16553
+ const kupDatePickerCss = ":host{display:block;font-size:var(--kup-font-size)}.f-text-field{position:relative}:host(.kup-full-height){height:100%}:host(.kup-full-height) #kup-component{height:100%}:host(.kup-full-width){width:100%}:host(.kup-full-width) #kup-component{width:100%}:host(.kup-danger){--kup-textfield-primary-color:var(--kup-danger-color);--kup-textfield-primary-color-rgb:var(--kup-danger-color-rgb)}:host(.kup-info){--kup-textfield-primary-color:var(--kup-info-color);--kup-textfield-primary-color-rgb:var(--kup-info-color-rgb)}:host(.kup-secondary){--kup-textfield-primary-color:var(--kup-secondary-color);--kup-textfield-primary-color-rgb:var(--kup-secondary-color-rgb)}:host(.kup-success){--kup-textfield-primary-color:var(--kup-success-color);--kup-textfield-primary-color-rgb:var(--kup-success-color-rgb)}:host(.kup-warning){--kup-textfield-primary-color:var(--kup-warning-color);--kup-textfield-primary-color-rgb:var(--kup-warning-color-rgb)}";
15727
16554
 
15728
16555
  let KupDatePicker = class {
15729
16556
  constructor(hostRef) {
@@ -15779,14 +16606,12 @@ let KupDatePicker = class {
15779
16606
  * Instance of the KupManager class.
15780
16607
  */
15781
16608
  this.kupManager = kupManagerInstance();
15782
- this.calendarView = SourceEvent.DATE;
15783
16609
  this.textfieldEl = null;
15784
16610
  this.pickerContainerEl = null;
15785
16611
  this.pickerEl = {
15786
16612
  value: new Date().toISOString(),
15787
16613
  date: new Date(),
15788
16614
  };
15789
- this.pickerOpened = false;
15790
16615
  this.clickCb = null;
15791
16616
  }
15792
16617
  onKupDatePickerItemClick(value) {
@@ -15801,6 +16626,7 @@ let KupDatePicker = class {
15801
16626
  id: this.rootElement.id,
15802
16627
  value: this.value,
15803
16628
  });
16629
+ this.setFocus();
15804
16630
  }
15805
16631
  onKupClearIconClick() {
15806
16632
  this.setPickerValueSelected('');
@@ -15814,19 +16640,6 @@ let KupDatePicker = class {
15814
16640
  id: this.rootElement.id,
15815
16641
  });
15816
16642
  }
15817
- onKupDatePickerMonthYearItemClick(value) {
15818
- switch (this.calendarView) {
15819
- case SourceEvent.MONTH: {
15820
- this.calendarView = SourceEvent.DATE;
15821
- break;
15822
- }
15823
- case SourceEvent.YEAR: {
15824
- this.calendarView = SourceEvent.MONTH;
15825
- break;
15826
- }
15827
- }
15828
- this.refreshPickerComponentValue(value);
15829
- }
15830
16643
  onKupBlur() {
15831
16644
  this.kupBlur.emit({
15832
16645
  id: this.rootElement.id,
@@ -16002,20 +16815,22 @@ let KupDatePicker = class {
16002
16815
  return this.value;
16003
16816
  }
16004
16817
  openPicker() {
16005
- this.calendarView = SourceEvent.DATE;
16006
- let textfieldEl = this.textfieldEl;
16007
- let containerEl = this.pickerContainerEl;
16008
- this.pickerOpened = true;
16818
+ const textfieldEl = this.textfieldEl;
16819
+ this.pickerContainerEl.menuVisible = true;
16820
+ const elStyle = this.pickerContainerEl.style;
16821
+ elStyle.height = 'auto';
16822
+ elStyle.minWidth = this.textfieldEl.parentElement.clientWidth + 'px';
16009
16823
  this.refreshPickerComponentValue(this.getValueForPickerComponent());
16010
16824
  if (textfieldEl != null) {
16011
16825
  textfieldEl.classList.add('toggled');
16012
16826
  }
16013
- if (containerEl != null) {
16014
- containerEl.classList.add('visible');
16015
- const elStyle = containerEl.style;
16016
- elStyle.height = 'auto';
16017
- elStyle.minWidth = textfieldEl.clientWidth + 'px';
16827
+ if (this.kupManager.dynamicPosition.isRegistered(this.pickerContainerEl)) {
16828
+ this.kupManager.dynamicPosition.changeAnchor(this.pickerContainerEl, this.textfieldEl.parentElement);
16018
16829
  }
16830
+ else {
16831
+ this.kupManager.dynamicPosition.register(this.pickerContainerEl, this.textfieldEl.parentElement, 0, KupDynamicPositionPlacement.AUTO, true);
16832
+ }
16833
+ this.kupManager.dynamicPosition.start(this.pickerContainerEl);
16019
16834
  if (!this.clickCb) {
16020
16835
  this.clickCb = {
16021
16836
  cb: () => {
@@ -16032,22 +16847,21 @@ let KupDatePicker = class {
16032
16847
  return;
16033
16848
  }
16034
16849
  let textfieldEl = this.textfieldEl;
16035
- let containerEl = this.pickerContainerEl;
16036
- this.pickerOpened = false;
16037
16850
  if (textfieldEl != null) {
16038
16851
  textfieldEl.classList.remove('toggled');
16039
16852
  }
16040
- if (containerEl != null) {
16041
- containerEl.classList.remove('visible');
16042
- }
16853
+ this.pickerContainerEl.menuVisible = false;
16854
+ this.kupManager.dynamicPosition.stop(this.pickerContainerEl);
16043
16855
  }
16044
16856
  isPickerOpened() {
16045
- return this.pickerOpened;
16857
+ return this.pickerContainerEl.menuVisible == true;
16046
16858
  }
16047
16859
  getTextFieldId() {
16048
16860
  return this.textfieldEl.id;
16049
16861
  }
16050
16862
  prepTextfield(initialValue) {
16863
+ const fullHeight = this.rootElement.classList.contains('kup-full-height');
16864
+ const fullWidth = this.rootElement.classList.contains('kup-full-width');
16051
16865
  const textfieldData = Object.assign({}, this.data['kup-text-field']);
16052
16866
  if (!textfieldData.icon) {
16053
16867
  textfieldData.icon = 'calendar';
@@ -16055,7 +16869,7 @@ let KupDatePicker = class {
16055
16869
  if (textfieldData.icon) {
16056
16870
  textfieldData.trailingIcon = true;
16057
16871
  }
16058
- return (h(FTextField, Object.assign({}, textfieldData, { disabled: this.disabled, id: this.rootElement.id + '_text-field', value: initialValue, onBlur: () => this.onKupBlur(), onChange: (e) => this.onKupChange(e), onClearIconClick: () => this.onKupClearIconClick(), onClick: () => this.onKupClick(), onFocus: () => this.onKupFocus(), onIconClick: () => this.onKupIconClick(), onKeyDown: (e) => this.onkupTextFieldSubmit(e), onInput: (e) => this.onKupInput(e) }), this.prepDatePicker()));
16872
+ return (h(FTextField, Object.assign({}, textfieldData, { disabled: this.disabled, fullHeight: fullHeight, fullWidth: fullWidth, id: this.rootElement.id + '_text-field', value: initialValue, onBlur: () => this.onKupBlur(), onChange: (e) => this.onKupChange(e), onClearIconClick: () => this.onKupClearIconClick(), onClick: () => this.onKupClick(), onFocus: () => this.onKupFocus(), onIconClick: () => this.onKupIconClick(), onKeyDown: (e) => this.onkupTextFieldSubmit(e), onInput: (e) => this.onKupInput(e) }), this.prepDatePicker()));
16059
16873
  }
16060
16874
  getInitEndYear(curYear) {
16061
16875
  let initYear = curYear - (curYear % 10);
@@ -16077,254 +16891,17 @@ let KupDatePicker = class {
16077
16891
  return idConc.indexOf('#' + id + '#') >= 0;
16078
16892
  }
16079
16893
  prepDatePicker() {
16080
- let date = this.pickerEl.date;
16081
- let months = getMonthsAsStringByLocale();
16082
- let curYear = date.getFullYear();
16083
- let yearRange = this.getInitEndYear(curYear);
16084
- let initYear = yearRange.initYear;
16085
- let endYear = yearRange.endYear;
16086
- let changeViewButtonLabel = 'not-set';
16087
- switch (this.calendarView) {
16088
- case SourceEvent.DATE: {
16089
- changeViewButtonLabel =
16090
- months[date.getMonth()] + ', ' + curYear.toString();
16091
- break;
16092
- }
16093
- case SourceEvent.MONTH: {
16094
- changeViewButtonLabel = curYear.toString();
16095
- break;
16096
- }
16097
- case SourceEvent.YEAR: {
16098
- changeViewButtonLabel =
16099
- initYear.toString() + ' - ' + endYear.toString();
16100
- break;
16101
- }
16102
- }
16103
- let prevButtonComp = null;
16104
- let nextButtonComp = null;
16105
- prevButtonComp = (h("kup-button", { id: "prev-page", icon: "chevron_left", "onkup-button-click": () => this.prevPage() }));
16106
- nextButtonComp = (h("kup-button", { id: "next-page", icon: "chevron_right", "onkup-button-click": () => this.nextPage() }));
16107
- return (h("div", { id: "date-picker-div", ref: (el) => (this.pickerContainerEl = el) }, h("div", { class: "section-1" }, h("div", { class: "sub-1 nav" }, prevButtonComp, h("kup-button", { customStyle: "#kup-component button {text-transform:capitalize}", id: "change-view-button", styling: FButtonStyling.FLAT, label: changeViewButtonLabel, "onkup-button-click": () => this.changeView() }), nextButtonComp)), h("div", { class: "section-2" }, this.createCalendar())));
16108
- }
16109
- createCalendar() {
16110
- switch (this.calendarView) {
16111
- case SourceEvent.DATE: {
16112
- return this.createDaysCalendar();
16113
- }
16114
- case SourceEvent.MONTH: {
16115
- return this.createMonthsCalendar();
16116
- }
16117
- case SourceEvent.YEAR: {
16118
- return this.createYearsCalendar();
16119
- }
16120
- }
16121
- }
16122
- createDaysCalendar() {
16123
- let days = getDaysOfWeekAsStringByLocale(this.firstDayIndex);
16124
- let date = this.pickerEl.date;
16125
- let selecteDate = new Date(date);
16126
- let thead = [];
16127
- let tbody = [];
16128
- for (let index = 0; index < days.length; index++) {
16129
- thead.push(h("th", null, h("span", { class: "item-text" }, days[index])));
16130
- }
16131
- let firstMonthDay = new Date(date.getFullYear(), date.getMonth(), 1);
16132
- let lastMonthDay = new Date(date.getFullYear(), date.getMonth() + 1, 0);
16133
- let finish = false;
16134
- let currentDayIndex = this.firstDayIndex;
16135
- let firstMonthDayIndex = firstMonthDay.getDay();
16136
- let row = [];
16137
- let daysForRowAdded = 0;
16138
- while (!finish) {
16139
- if (currentDayIndex == firstMonthDayIndex) {
16140
- break;
16141
- }
16142
- row.push(h("td", { class: "item empty" }));
16143
- currentDayIndex++;
16144
- daysForRowAdded++;
16145
- if (currentDayIndex > 6) {
16146
- currentDayIndex = 0;
16147
- }
16148
- }
16149
- let dayCount = 1;
16150
- while (dayCount <= lastMonthDay.getDate()) {
16151
- for (let i = daysForRowAdded; i < 7; i++) {
16152
- let dayClass = 'item';
16153
- let dataIndex = {
16154
- 'data-index': date.getFullYear().toString() +
16155
- '-' +
16156
- fillString((date.getMonth() + 1).toString(), '0', 2, true) +
16157
- '-' +
16158
- fillString(dayCount.toString(), '0', 2, true),
16159
- };
16160
- if (dayCount === selecteDate.getDate() &&
16161
- date.getMonth() === selecteDate.getMonth() &&
16162
- date.getFullYear() === selecteDate.getFullYear()) {
16163
- dayClass += ' selected';
16164
- }
16165
- row.push(h("td", { class: dayClass }, h("span", Object.assign({}, dataIndex, { class: "item-number", onClick: () => {
16166
- this.onKupDatePickerItemClick(dataIndex['data-index']);
16167
- } }), dayCount)));
16168
- dayCount++;
16169
- if (dayCount > lastMonthDay.getDate()) {
16170
- break;
16171
- }
16172
- }
16173
- if (row.length > 0) {
16174
- tbody.push(h("tr", null, row));
16175
- row = [];
16176
- }
16177
- daysForRowAdded = 0;
16178
- }
16179
- return (h("table", { id: "calendar" }, h("thead", null, thead), h("tbody", null, tbody)));
16180
- }
16181
- createMonthsCalendar() {
16182
- let months = getMonthsAsStringByLocale(DateTimeFormatOptionsMonth.SHORT);
16183
- let date = this.pickerEl.date;
16184
- let selecteDate;
16185
- if (this.value == null || this.value.trim() == '') {
16186
- selecteDate = new Date();
16187
- }
16188
- else {
16189
- selecteDate = new Date(this.value);
16190
- }
16191
- let tbody = [];
16192
- let row = [];
16193
- let monthCount = 0;
16194
- while (monthCount < 12) {
16195
- for (let i = 0; i < 4; i++) {
16196
- let monthClass = 'item';
16197
- let dataIndex = {
16198
- 'data-index': date.getFullYear().toString() +
16199
- '-' +
16200
- fillString((monthCount + 1).toString(), '0', 2, true) +
16201
- '-' +
16202
- fillString(date.getDate().toString(), '0', 2, true),
16203
- };
16204
- if (monthCount === selecteDate.getMonth() &&
16205
- date.getFullYear() == selecteDate.getFullYear()) {
16206
- monthClass += ' selected';
16207
- }
16208
- row.push(h("td", { class: monthClass }, h("span", Object.assign({}, dataIndex, { class: "item-number", onClick: () => {
16209
- this.onKupDatePickerMonthYearItemClick(dataIndex['data-index']);
16210
- } }), months[monthCount])));
16211
- monthCount++;
16212
- }
16213
- if (row.length > 0) {
16214
- tbody.push(h("tr", null, row));
16215
- row = [];
16216
- }
16217
- }
16218
- return (h("table", { id: "calendar" }, h("tbody", null, tbody)));
16219
- }
16220
- createYearsCalendar() {
16221
- let date = this.pickerEl.date;
16222
- let curYear = date.getFullYear();
16223
- let yearRange = this.getInitEndYear(curYear);
16224
- let initYear = yearRange.initYear;
16225
- let endYear = yearRange.endYear;
16226
- let selecteDate;
16227
- if (this.value == null || this.value.trim() == '') {
16228
- selecteDate = new Date();
16229
- }
16230
- else {
16231
- selecteDate = new Date(this.value);
16232
- }
16233
- let tbody = [];
16234
- let row = [];
16235
- let yearCount = initYear;
16236
- while (yearCount <= endYear) {
16237
- for (let i = 0; i < 4; i++) {
16238
- let yearClass = 'item';
16239
- let dataIndex = {
16240
- 'data-index': yearCount.toString() +
16241
- '-' +
16242
- fillString((date.getMonth() + 1).toString(), '0', 2, true) +
16243
- '-' +
16244
- fillString(date.getDate().toString(), '0', 2, true),
16245
- };
16246
- if (yearCount === selecteDate.getFullYear()) {
16247
- yearClass += ' selected';
16248
- }
16249
- row.push(h("td", { class: yearClass }, h("span", Object.assign({}, dataIndex, { class: "item-number", onClick: () => {
16250
- this.onKupDatePickerMonthYearItemClick(dataIndex['data-index']);
16251
- } }), yearCount)));
16252
- yearCount++;
16253
- }
16254
- if (row.length > 0) {
16255
- tbody.push(h("tr", null, row));
16256
- row = [];
16257
- }
16258
- }
16259
- return (h("table", { id: "calendar" }, h("tbody", null, tbody)));
16260
- }
16261
- changeView() {
16262
- switch (this.calendarView) {
16263
- case SourceEvent.DATE: {
16264
- this.calendarView = SourceEvent.MONTH;
16265
- break;
16266
- }
16267
- case SourceEvent.MONTH: {
16268
- this.calendarView = SourceEvent.YEAR;
16269
- break;
16270
- }
16271
- case SourceEvent.YEAR: {
16272
- this.calendarView = SourceEvent.DATE;
16273
- }
16274
- }
16275
- this.refresh();
16276
- }
16277
- prevPage() {
16278
- let date = this.pickerEl.date;
16279
- let yy = date.getFullYear();
16280
- let mm = date.getMonth();
16281
- if (this.calendarView == SourceEvent.DATE) {
16282
- if (mm < 1) {
16283
- mm = 11;
16284
- yy--;
16285
- }
16286
- else {
16287
- mm--;
16288
- }
16289
- }
16290
- if (this.calendarView == SourceEvent.MONTH) {
16291
- yy--;
16292
- }
16293
- if (this.calendarView == SourceEvent.YEAR) {
16294
- let yearRange = this.getInitEndYear(yy);
16295
- yy = yearRange.initYear - 1;
16296
- }
16297
- date.setFullYear(yy);
16298
- date.setMonth(mm);
16299
- this.pickerEl.value = date.toISOString();
16300
- this.pickerEl.date = date;
16301
- this.refresh();
16302
- }
16303
- nextPage() {
16304
- let date = this.pickerEl.date;
16305
- let yy = date.getFullYear();
16306
- let mm = date.getMonth();
16307
- if (this.calendarView == SourceEvent.DATE) {
16308
- if (mm > 10) {
16309
- mm = 0;
16310
- yy++;
16311
- }
16312
- else {
16313
- mm++;
16314
- }
16315
- }
16316
- if (this.calendarView == SourceEvent.MONTH) {
16317
- yy++;
16318
- }
16319
- if (this.calendarView == SourceEvent.YEAR) {
16320
- let yearRange = this.getInitEndYear(yy);
16321
- yy = yearRange.endYear + 1;
16322
- }
16323
- date.setFullYear(yy);
16324
- date.setMonth(mm);
16325
- this.pickerEl.value = date.toISOString();
16326
- this.pickerEl.date = date;
16327
- this.refresh();
16894
+ const data = {
16895
+ options: {
16896
+ initialValue: this.value,
16897
+ firstDayIndex: this.firstDayIndex,
16898
+ resetStatus: true,
16899
+ },
16900
+ };
16901
+ return (h("kup-card", { ref: (el) => (this.pickerContainerEl = el), data: data, "layout-family": "builtin", "layout-number": "1", "size-x": "300px", "size-y": "300px", "is-menu": true, "onkup-card-click": (ev) => {
16902
+ if (ev.detail.value != null && ev.detail.value != '')
16903
+ this.onKupDatePickerItemClick(ev.detail.value);
16904
+ } }));
16328
16905
  }
16329
16906
  getDateForOutput() {
16330
16907
  if (this.value == null || this.value.trim() == '') {
@@ -16365,24 +16942,15 @@ let KupDatePicker = class {
16365
16942
  this.kupManager.debug.logRender(this, true);
16366
16943
  }
16367
16944
  render() {
16368
- const hostClass = {};
16369
- if (this.data &&
16370
- this.data['kup-text-field'] &&
16371
- this.data['kup-text-field']['className'] &&
16372
- this.data['kup-text-field']['className'].indexOf('kup-full-height') > -1) {
16373
- hostClass['kup-full-height'] = true;
16374
- }
16375
- if (this.data &&
16376
- this.data['kup-text-field'] &&
16377
- this.data['kup-text-field']['fullWidth']) {
16378
- hostClass['kup-full-width'] = true;
16379
- }
16380
- return (h(Host, { class: hostClass }, h("style", null, this.kupManager.theme.setKupStyle(this.rootElement)), h("div", { id: componentWrapperId }, this.prepTextfield(this.getDateForOutput()))));
16945
+ return (h(Host, null, h("style", null, this.kupManager.theme.setKupStyle(this.rootElement)), h("div", { id: componentWrapperId }, this.prepTextfield(this.getDateForOutput()))));
16381
16946
  }
16382
16947
  disconnectedCallback() {
16383
16948
  this.kupManager.theme.unregister(this);
16949
+ if (this.pickerContainerEl) {
16950
+ this.pickerContainerEl.remove();
16951
+ }
16384
16952
  }
16385
- get rootElement() { return getElement(this); }
16953
+ get rootElement() { return getElement$1(this); }
16386
16954
  static get watchers() { return {
16387
16955
  "firstDayIndex": ["watchFirstDayIndex"]
16388
16956
  }; }
@@ -16754,7 +17322,7 @@ let KupDropdownButton = class {
16754
17322
  }
16755
17323
  this.kupManager.theme.unregister(this);
16756
17324
  }
16757
- get rootElement() { return getElement(this); }
17325
+ get rootElement() { return getElement$1(this); }
16758
17326
  };
16759
17327
  KupDropdownButton.style = kupDropdownButtonCss;
16760
17328
 
@@ -17564,7 +18132,7 @@ let KupGauge = class {
17564
18132
  disconnectedCallback() {
17565
18133
  this.kupManager.theme.unregister(this);
17566
18134
  }
17567
- get rootElement() { return getElement(this); }
18135
+ get rootElement() { return getElement$1(this); }
17568
18136
  };
17569
18137
  KupGauge.style = kupGaugeCss;
17570
18138
 
@@ -18182,7 +18750,7 @@ let KupImage = class {
18182
18750
  this.kupManager.theme.unregister(this);
18183
18751
  }
18184
18752
  static get assetsDirs() { return ["assets/svg"]; }
18185
- get rootElement() { return getElement(this); }
18753
+ get rootElement() { return getElement$1(this); }
18186
18754
  };
18187
18755
  KupImage.style = kupImageCss;
18188
18756
 
@@ -18690,7 +19258,7 @@ let KupList = class {
18690
19258
  disconnectedCallback() {
18691
19259
  this.kupManager.theme.unregister(this);
18692
19260
  }
18693
- get rootElement() { return getElement(this); }
19261
+ get rootElement() { return getElement$1(this); }
18694
19262
  static get watchers() { return {
18695
19263
  "filter": ["watchFilter"]
18696
19264
  }; }
@@ -18901,7 +19469,7 @@ let KupPaginator = class {
18901
19469
  disconnectedCallback() {
18902
19470
  this.kupManager.language.unregister(this);
18903
19471
  }
18904
- get rootElement() { return getElement(this); }
19472
+ get rootElement() { return getElement$1(this); }
18905
19473
  };
18906
19474
  KupPaginator.style = kupPaginatorCss;
18907
19475
 
@@ -19106,7 +19674,7 @@ let KupProgressBar = class {
19106
19674
  disconnectedCallback() {
19107
19675
  this.kupManager.theme.unregister(this);
19108
19676
  }
19109
- get rootElement() { return getElement(this); }
19677
+ get rootElement() { return getElement$1(this); }
19110
19678
  };
19111
19679
  KupProgressBar.style = kupProgressBarCss;
19112
19680
 
@@ -19275,7 +19843,7 @@ let KupRadio = class {
19275
19843
  disconnectedCallback() {
19276
19844
  this.kupManager.theme.unregister(this);
19277
19845
  }
19278
- get rootElement() { return getElement(this); }
19846
+ get rootElement() { return getElement$1(this); }
19279
19847
  };
19280
19848
  KupRadio.style = kupRadioCss;
19281
19849
 
@@ -19422,7 +19990,7 @@ let KupRating = class {
19422
19990
  disconnectedCallback() {
19423
19991
  this.kupManager.theme.unregister(this);
19424
19992
  }
19425
- get rootElement() { return getElement(this); }
19993
+ get rootElement() { return getElement$1(this); }
19426
19994
  static get watchers() { return {
19427
19995
  "value": ["onValueChanged"],
19428
19996
  "maxValue": ["onValueChanged"]
@@ -19656,7 +20224,7 @@ let KupSpinner = class {
19656
20224
  this.kupManager.theme.unregister(this);
19657
20225
  }
19658
20226
  static get assetsDirs() { return ["assets"]; }
19659
- get rootElement() { return getElement(this); }
20227
+ get rootElement() { return getElement$1(this); }
19660
20228
  };
19661
20229
  KupSpinner.style = kupSpinnerCss;
19662
20230
 
@@ -19845,7 +20413,7 @@ let KupSwitch = class {
19845
20413
  disconnectedCallback() {
19846
20414
  this.kupManager.theme.unregister(this);
19847
20415
  }
19848
- get rootElement() { return getElement(this); }
20416
+ get rootElement() { return getElement$1(this); }
19849
20417
  };
19850
20418
  KupSwitch.style = kupSwitchCss;
19851
20419
 
@@ -20041,7 +20609,7 @@ let KupTabBar = class {
20041
20609
  this.kupManager.scrollOnHover.unregister(this.scrollArea);
20042
20610
  this.kupManager.theme.unregister(this);
20043
20611
  }
20044
- get rootElement() { return getElement(this); }
20612
+ get rootElement() { return getElement$1(this); }
20045
20613
  static get watchers() { return {
20046
20614
  "ripple": ["applyRipple"]
20047
20615
  }; }
@@ -20419,7 +20987,7 @@ let KupTextField = class {
20419
20987
  disconnectedCallback() {
20420
20988
  this.kupManager.theme.unregister(this);
20421
20989
  }
20422
- get rootElement() { return getElement(this); }
20990
+ get rootElement() { return getElement$1(this); }
20423
20991
  };
20424
20992
  KupTextField.style = kupTextFieldCss;
20425
20993
 
@@ -20438,7 +21006,7 @@ var KupTimePickerProps;
20438
21006
  KupTimePickerProps["timeMinutesStep"] = "Minutes step";
20439
21007
  })(KupTimePickerProps || (KupTimePickerProps = {}));
20440
21008
 
20441
- const kupTimePickerCss = ":host{display:block;font-size:var(--kup-font-size)}#time-picker-div{display:none;outline:none;position:absolute;z-index:1}#time-picker-div.visible{display:block}.clock{box-shadow:var(--kup-box-shadow);width:300px;height:450px;background-color:var(--kup-background-color);position:relative;font-family:var(--kup-font-family)}.top{background-color:var(--kup-primary-color);color:var(--kup-text-on-primary-color);height:100px;line-height:100px;font-size:50px;text-align:center}.top span{cursor:pointer;opacity:0.75;transition:0.25s ease-in-out}.top .active{opacity:1}.circle{user-select:none;background-color:rgba(var(--kup-text-color-rgb), 0.1);width:250px;height:250px;border-radius:1000px;position:relative;top:25px;left:25px;box-sizing:border-box;display:none}.circle.active{display:block}.mid{position:absolute;left:calc(50% - 0px);top:calc(50% - 0px);width:2px;height:2px;border-radius:10px;background-color:var(--kup-text-color)}.hour{position:absolute;height:40px;line-height:40px;width:40px;border-radius:40px;text-align:center}.hour.selected{z-index:2}.hour.selected::after{content:\"\";z-index:-1;background-color:rgba(var(--kup-primary-color-rgb), 0.5);height:1px;width:100%;position:absolute;transform:rotate(-90deg);transform-origin:100% 0%;top:50%;width:101px;right:50%}.hour2{z-index:2;position:absolute;height:30px;line-height:30px;width:30px;border-radius:40px;text-align:center;font-size:14px}.hour2.selected::after{content:\"\";background-color:rgba(var(--kup-primary-color-rgb), 0.5);height:1px;width:100%;position:absolute;transform:rotate(-90deg);transform-origin:100% 0%;top:50%;width:64px;right:50%;z-index:-1}.unit{position:absolute;height:20px;line-height:20px;width:20px;border-radius:40px;text-align:center;font-size:12px}.unit.selected::after{content:\"\";background-color:rgba(var(--kup-primary-color-rgb), 0.5);height:1px;width:100%;position:absolute;transform:rotate(-90deg);transform-origin:100% 0%;top:50%;width:101px;right:50%}.hour,.hour2,.unit{cursor:pointer;transition:background-color 0.25s}.hour:hover,.hour2:hover,.unit:hover{background-color:rgba(var(--kup-primary-color-rgb), 0.275)}.hour.selected,.hour2.selected,.unit.selected{background-color:var(--kup-primary-color);color:var(--kup-text-on-primary-color)}.actions{color:var(--kup-primary-color);font-weight:bold;font-size:20px;display:flex;justify-content:flex-end;position:absolute;width:100%;box-sizing:border-box;bottom:10px}.action{display:inline-block;width:100px;text-align:center;height:37.5px;line-height:37.5px;margin-right:10px;cursor:pointer;border-radius:2px}.clock .actions .action:hover{background-color:rgba(0, 0, 0, 0.1)}.clock .actions .action:active{background-color:rgba(0, 0, 0, 0.3)}.hour:nth-child(12):after{transform:rotate(330deg)}.hour:nth-child(11):after{transform:rotate(300deg)}.hour:nth-child(10):after{transform:rotate(270deg)}.hour:nth-child(9):after{transform:rotate(240deg)}.hour:nth-child(8):after{transform:rotate(210deg)}.hour:nth-child(7):after{transform:rotate(180deg)}.hour:nth-child(6):after{transform:rotate(150deg)}.hour:nth-child(5):after{transform:rotate(120deg)}.hour:nth-child(4):after{transform:rotate(90deg)}.hour:nth-child(3):after{transform:rotate(60deg)}.hour:nth-child(2):after{transform:rotate(30deg)}.hour:nth-child(1):after{transform:rotate(0deg)}.hour2:nth-child(24):after{transform:rotate(690deg)}.hour2:nth-child(23):after{transform:rotate(660deg)}.hour2:nth-child(22):after{transform:rotate(630deg)}.hour2:nth-child(21):after{transform:rotate(600deg)}.hour2:nth-child(20):after{transform:rotate(570deg)}.hour2:nth-child(19):after{transform:rotate(540deg)}.hour2:nth-child(18):after{transform:rotate(510deg)}.hour2:nth-child(17):after{transform:rotate(480deg)}.hour2:nth-child(16):after{transform:rotate(450deg)}.hour2:nth-child(15):after{transform:rotate(420deg)}.hour2:nth-child(14):after{transform:rotate(390deg)}.hour2:nth-child(13):after{transform:rotate(360deg)}.unit:nth-child(60):after{transform:rotate(354deg)}.unit:nth-child(59):after{transform:rotate(348deg)}.unit:nth-child(58):after{transform:rotate(342deg)}.unit:nth-child(57):after{transform:rotate(336deg)}.unit:nth-child(56):after{transform:rotate(330deg)}.unit:nth-child(55):after{transform:rotate(324deg)}.unit:nth-child(54):after{transform:rotate(318deg)}.unit:nth-child(53):after{transform:rotate(312deg)}.unit:nth-child(52):after{transform:rotate(306deg)}.unit:nth-child(51):after{transform:rotate(300deg)}.unit:nth-child(50):after{transform:rotate(294deg)}.unit:nth-child(49):after{transform:rotate(288deg)}.unit:nth-child(48):after{transform:rotate(282deg)}.unit:nth-child(47):after{transform:rotate(276deg)}.unit:nth-child(46):after{transform:rotate(270deg)}.unit:nth-child(45):after{transform:rotate(264deg)}.unit:nth-child(44):after{transform:rotate(258deg)}.unit:nth-child(43):after{transform:rotate(252deg)}.unit:nth-child(42):after{transform:rotate(246deg)}.unit:nth-child(41):after{transform:rotate(240deg)}.unit:nth-child(40):after{transform:rotate(234deg)}.unit:nth-child(39):after{transform:rotate(228deg)}.unit:nth-child(38):after{transform:rotate(222deg)}.unit:nth-child(37):after{transform:rotate(216deg)}.unit:nth-child(36):after{transform:rotate(210deg)}.unit:nth-child(35):after{transform:rotate(204deg)}.unit:nth-child(34):after{transform:rotate(198deg)}.unit:nth-child(33):after{transform:rotate(192deg)}.unit:nth-child(32):after{transform:rotate(186deg)}.unit:nth-child(31):after{transform:rotate(180deg)}.unit:nth-child(30):after{transform:rotate(174deg)}.unit:nth-child(29):after{transform:rotate(168deg)}.unit:nth-child(28):after{transform:rotate(162deg)}.unit:nth-child(27):after{transform:rotate(156deg)}.unit:nth-child(26):after{transform:rotate(150deg)}.unit:nth-child(25):after{transform:rotate(144deg)}.unit:nth-child(24):after{transform:rotate(138deg)}.unit:nth-child(23):after{transform:rotate(132deg)}.unit:nth-child(22):after{transform:rotate(126deg)}.unit:nth-child(21):after{transform:rotate(120deg)}.unit:nth-child(20):after{transform:rotate(114deg)}.unit:nth-child(19):after{transform:rotate(108deg)}.unit:nth-child(18):after{transform:rotate(102deg)}.unit:nth-child(17):after{transform:rotate(96deg)}.unit:nth-child(16):after{transform:rotate(90deg)}.unit:nth-child(15):after{transform:rotate(84deg)}.unit:nth-child(14):after{transform:rotate(78deg)}.unit:nth-child(13):after{transform:rotate(72deg)}.unit:nth-child(12):after{transform:rotate(66deg)}.unit:nth-child(11):after{transform:rotate(60deg)}.unit:nth-child(10):after{transform:rotate(54deg)}.unit:nth-child(9):after{transform:rotate(48deg)}.unit:nth-child(8):after{transform:rotate(42deg)}.unit:nth-child(7):after{transform:rotate(36deg)}.unit:nth-child(6):after{transform:rotate(30deg)}.unit:nth-child(5):after{transform:rotate(24deg)}.unit:nth-child(4):after{transform:rotate(18deg)}.unit:nth-child(3):after{transform:rotate(12deg)}.unit:nth-child(2):after{transform:rotate(6deg)}.unit:nth-child(1):after{transform:rotate(0deg)}.f-text-field{position:relative}:host(.kup-full-height){height:100%}:host(.kup-full-height) #kup-component{height:100%}:host(.kup-full-width){width:100%}:host(.kup-full-width) #kup-component{width:100%}:host(.kup-danger){--kup-textfield-primary-color:var(--kup-danger-color);--kup-textfield-primary-color-rgb:var(--kup-danger-color-rgb);--kup-list-primary-color:var(--kup-danger-color);--kup-list-primary-color-rgb:var(--kup-danger-color-rgb)}:host(.kup-info){--kup-textfield-primary-color:var(--kup-info-color);--kup-textfield-primary-color-rgb:var(--kup-info-color-rgb);--kup-list-primary-color:var(--kup-info-color);--kup-list-primary-color-rgb:var(--kup-info-color-rgb)}:host(.kup-secondary){--kup-textfield-primary-color:var(--kup-secondary-color);--kup-textfield-primary-color-rgb:var(--kup-secondary-color-rgb);--kup-list-primary-color:var(--kup-secondary-color);--kup-list-primary-color-rgb:var(--kup-secondary-color-rgb)}:host(.kup-success){--kup-textfield-primary-color:var(--kup-success-color);--kup-textfield-primary-color-rgb:var(--kup-success-color-rgb);--kup-list-primary-color:var(--kup-success-color);--kup-list-primary-color-rgb:var(--kup-success-color-rgb)}:host(.kup-warning){--kup-textfield-primary-color:var(--kup-warning-color);--kup-textfield-primary-color-rgb:var(--kup-warning-color-rgb);--kup-list-primary-color:var(--kup-warning-color);--kup-list-primary-color-rgb:var(--kup-warning-color-rgb)}";
21009
+ const kupTimePickerCss = ":host{display:block;font-size:var(--kup-font-size);width:max-content}#time-picker-div{display:none;outline:none;position:absolute;z-index:1}#time-picker-div.visible{display:block}.clock{box-shadow:var(--kup-box-shadow);width:300px;height:450px;background-color:var(--kup-background-color);position:relative;font-family:var(--kup-font-family)}.top{background-color:var(--kup-primary-color);color:var(--kup-text-on-primary-color);height:100px;line-height:100px;font-size:50px;text-align:center}.top span{cursor:pointer;opacity:0.75;transition:0.25s ease-in-out}.top .active{opacity:1}.circle{user-select:none;background-color:rgba(var(--kup-text-color-rgb), 0.1);width:250px;height:250px;border-radius:1000px;position:relative;top:25px;left:25px;box-sizing:border-box;display:none}.circle.active{display:block}.mid{position:absolute;left:calc(50% - 0px);top:calc(50% - 0px);width:2px;height:2px;border-radius:10px;background-color:var(--kup-text-color)}.hour{position:absolute;height:40px;line-height:40px;width:40px;border-radius:40px;text-align:center}.hour.selected{z-index:2}.hour.selected::after{content:\"\";z-index:-1;background-color:rgba(var(--kup-primary-color-rgb), 0.5);height:1px;width:100%;position:absolute;transform:rotate(-90deg);transform-origin:100% 0%;top:50%;width:101px;right:50%}.hour2{z-index:2;position:absolute;height:30px;line-height:30px;width:30px;border-radius:40px;text-align:center;font-size:14px}.hour2.selected::after{content:\"\";background-color:rgba(var(--kup-primary-color-rgb), 0.5);height:1px;width:100%;position:absolute;transform:rotate(-90deg);transform-origin:100% 0%;top:50%;width:64px;right:50%;z-index:-1}.unit{position:absolute;height:20px;line-height:20px;width:20px;border-radius:40px;text-align:center;font-size:12px}.unit.selected::after{content:\"\";background-color:rgba(var(--kup-primary-color-rgb), 0.5);height:1px;width:100%;position:absolute;transform:rotate(-90deg);transform-origin:100% 0%;top:50%;width:101px;right:50%}.hour,.hour2,.unit{cursor:pointer;transition:background-color 0.25s}.hour:hover,.hour2:hover,.unit:hover{background-color:rgba(var(--kup-primary-color-rgb), 0.275)}.hour.selected,.hour2.selected,.unit.selected{background-color:var(--kup-primary-color);color:var(--kup-text-on-primary-color)}.actions{color:var(--kup-primary-color);font-weight:bold;font-size:20px;display:flex;justify-content:flex-end;position:absolute;width:100%;box-sizing:border-box;bottom:10px}.action{display:inline-block;width:100px;text-align:center;height:37.5px;line-height:37.5px;margin-right:10px;cursor:pointer;border-radius:2px}.clock .actions .action:hover{background-color:rgba(0, 0, 0, 0.1)}.clock .actions .action:active{background-color:rgba(0, 0, 0, 0.3)}.hour:nth-child(12):after{transform:rotate(330deg)}.hour:nth-child(11):after{transform:rotate(300deg)}.hour:nth-child(10):after{transform:rotate(270deg)}.hour:nth-child(9):after{transform:rotate(240deg)}.hour:nth-child(8):after{transform:rotate(210deg)}.hour:nth-child(7):after{transform:rotate(180deg)}.hour:nth-child(6):after{transform:rotate(150deg)}.hour:nth-child(5):after{transform:rotate(120deg)}.hour:nth-child(4):after{transform:rotate(90deg)}.hour:nth-child(3):after{transform:rotate(60deg)}.hour:nth-child(2):after{transform:rotate(30deg)}.hour:nth-child(1):after{transform:rotate(0deg)}.hour2:nth-child(24):after{transform:rotate(690deg)}.hour2:nth-child(23):after{transform:rotate(660deg)}.hour2:nth-child(22):after{transform:rotate(630deg)}.hour2:nth-child(21):after{transform:rotate(600deg)}.hour2:nth-child(20):after{transform:rotate(570deg)}.hour2:nth-child(19):after{transform:rotate(540deg)}.hour2:nth-child(18):after{transform:rotate(510deg)}.hour2:nth-child(17):after{transform:rotate(480deg)}.hour2:nth-child(16):after{transform:rotate(450deg)}.hour2:nth-child(15):after{transform:rotate(420deg)}.hour2:nth-child(14):after{transform:rotate(390deg)}.hour2:nth-child(13):after{transform:rotate(360deg)}.unit:nth-child(60):after{transform:rotate(354deg)}.unit:nth-child(59):after{transform:rotate(348deg)}.unit:nth-child(58):after{transform:rotate(342deg)}.unit:nth-child(57):after{transform:rotate(336deg)}.unit:nth-child(56):after{transform:rotate(330deg)}.unit:nth-child(55):after{transform:rotate(324deg)}.unit:nth-child(54):after{transform:rotate(318deg)}.unit:nth-child(53):after{transform:rotate(312deg)}.unit:nth-child(52):after{transform:rotate(306deg)}.unit:nth-child(51):after{transform:rotate(300deg)}.unit:nth-child(50):after{transform:rotate(294deg)}.unit:nth-child(49):after{transform:rotate(288deg)}.unit:nth-child(48):after{transform:rotate(282deg)}.unit:nth-child(47):after{transform:rotate(276deg)}.unit:nth-child(46):after{transform:rotate(270deg)}.unit:nth-child(45):after{transform:rotate(264deg)}.unit:nth-child(44):after{transform:rotate(258deg)}.unit:nth-child(43):after{transform:rotate(252deg)}.unit:nth-child(42):after{transform:rotate(246deg)}.unit:nth-child(41):after{transform:rotate(240deg)}.unit:nth-child(40):after{transform:rotate(234deg)}.unit:nth-child(39):after{transform:rotate(228deg)}.unit:nth-child(38):after{transform:rotate(222deg)}.unit:nth-child(37):after{transform:rotate(216deg)}.unit:nth-child(36):after{transform:rotate(210deg)}.unit:nth-child(35):after{transform:rotate(204deg)}.unit:nth-child(34):after{transform:rotate(198deg)}.unit:nth-child(33):after{transform:rotate(192deg)}.unit:nth-child(32):after{transform:rotate(186deg)}.unit:nth-child(31):after{transform:rotate(180deg)}.unit:nth-child(30):after{transform:rotate(174deg)}.unit:nth-child(29):after{transform:rotate(168deg)}.unit:nth-child(28):after{transform:rotate(162deg)}.unit:nth-child(27):after{transform:rotate(156deg)}.unit:nth-child(26):after{transform:rotate(150deg)}.unit:nth-child(25):after{transform:rotate(144deg)}.unit:nth-child(24):after{transform:rotate(138deg)}.unit:nth-child(23):after{transform:rotate(132deg)}.unit:nth-child(22):after{transform:rotate(126deg)}.unit:nth-child(21):after{transform:rotate(120deg)}.unit:nth-child(20):after{transform:rotate(114deg)}.unit:nth-child(19):after{transform:rotate(108deg)}.unit:nth-child(18):after{transform:rotate(102deg)}.unit:nth-child(17):after{transform:rotate(96deg)}.unit:nth-child(16):after{transform:rotate(90deg)}.unit:nth-child(15):after{transform:rotate(84deg)}.unit:nth-child(14):after{transform:rotate(78deg)}.unit:nth-child(13):after{transform:rotate(72deg)}.unit:nth-child(12):after{transform:rotate(66deg)}.unit:nth-child(11):after{transform:rotate(60deg)}.unit:nth-child(10):after{transform:rotate(54deg)}.unit:nth-child(9):after{transform:rotate(48deg)}.unit:nth-child(8):after{transform:rotate(42deg)}.unit:nth-child(7):after{transform:rotate(36deg)}.unit:nth-child(6):after{transform:rotate(30deg)}.unit:nth-child(5):after{transform:rotate(24deg)}.unit:nth-child(4):after{transform:rotate(18deg)}.unit:nth-child(3):after{transform:rotate(12deg)}.unit:nth-child(2):after{transform:rotate(6deg)}.unit:nth-child(1):after{transform:rotate(0deg)}.f-text-field{position:relative}:host(.kup-full-height){height:100%}:host(.kup-full-height) #kup-component{height:100%}:host(.kup-full-width){width:100%}:host(.kup-full-width) #kup-component{width:100%}:host(.kup-danger){--kup-textfield-primary-color:var(--kup-danger-color);--kup-textfield-primary-color-rgb:var(--kup-danger-color-rgb);--kup-list-primary-color:var(--kup-danger-color);--kup-list-primary-color-rgb:var(--kup-danger-color-rgb)}:host(.kup-info){--kup-textfield-primary-color:var(--kup-info-color);--kup-textfield-primary-color-rgb:var(--kup-info-color-rgb);--kup-list-primary-color:var(--kup-info-color);--kup-list-primary-color-rgb:var(--kup-info-color-rgb)}:host(.kup-secondary){--kup-textfield-primary-color:var(--kup-secondary-color);--kup-textfield-primary-color-rgb:var(--kup-secondary-color-rgb);--kup-list-primary-color:var(--kup-secondary-color);--kup-list-primary-color-rgb:var(--kup-secondary-color-rgb)}:host(.kup-success){--kup-textfield-primary-color:var(--kup-success-color);--kup-textfield-primary-color-rgb:var(--kup-success-color-rgb);--kup-list-primary-color:var(--kup-success-color);--kup-list-primary-color-rgb:var(--kup-success-color-rgb)}:host(.kup-warning){--kup-textfield-primary-color:var(--kup-warning-color);--kup-textfield-primary-color-rgb:var(--kup-warning-color-rgb);--kup-list-primary-color:var(--kup-warning-color);--kup-list-primary-color-rgb:var(--kup-warning-color-rgb)}";
20442
21010
 
20443
21011
  let KupTimePicker = class {
20444
21012
  constructor(hostRef) {
@@ -20511,10 +21079,9 @@ let KupTimePicker = class {
20511
21079
  this.hoursActive = true;
20512
21080
  this.minutesActive = false;
20513
21081
  this.secondsActive = false;
21082
+ this.textFieldContainerEl = undefined;
20514
21083
  this.textfieldEl = undefined;
20515
- this.pickerContainerEl = undefined;
20516
- this.pickerEl = undefined;
20517
- this.pickerOpened = false;
21084
+ this.pickerKupEl = undefined;
20518
21085
  this.clickCb = null;
20519
21086
  }
20520
21087
  onKupTimePickerItemClick(e, value) {
@@ -20534,6 +21101,7 @@ let KupTimePicker = class {
20534
21101
  id: this.rootElement.id,
20535
21102
  value: this.value,
20536
21103
  });
21104
+ this.setFocus();
20537
21105
  }
20538
21106
  onKupClearIconClick() {
20539
21107
  this.setPickerValueSelected('');
@@ -20655,7 +21223,7 @@ let KupTimePicker = class {
20655
21223
  */
20656
21224
  async setFocus() {
20657
21225
  if (this.textfieldEl != null) {
20658
- this.textfieldEl.setFocus();
21226
+ this.textfieldEl.focus();
20659
21227
  }
20660
21228
  }
20661
21229
  /**
@@ -20716,61 +21284,61 @@ let KupTimePicker = class {
20716
21284
  return this.value;
20717
21285
  }
20718
21286
  openPicker() {
20719
- let textfieldEl = this.textfieldEl;
20720
- let containerEl = this.pickerContainerEl;
20721
- this.pickerOpened = true;
20722
- this.setClockViewActive(true, false, false);
20723
- if (textfieldEl != null) {
20724
- textfieldEl.classList.add('toggled');
21287
+ const elStyle = this.pickerKupEl.style;
21288
+ elStyle.height = 'auto';
21289
+ elStyle.minWidth = this.textFieldContainerEl.clientWidth + 'px';
21290
+ this.pickerKupEl.menuVisible = true;
21291
+ if (this.textfieldEl != null) {
21292
+ this.textfieldEl.classList.add('toggled');
21293
+ }
21294
+ if (this.kupManager.dynamicPosition.isRegistered(this.pickerKupEl)) {
21295
+ this.kupManager.dynamicPosition.changeAnchor(this.pickerKupEl, this.textFieldContainerEl);
20725
21296
  }
20726
- if (containerEl != null) {
20727
- containerEl.classList.add('visible');
20728
- const elStyle = containerEl.style;
20729
- elStyle.height = 'auto';
20730
- elStyle.minWidth = textfieldEl.clientWidth + 'px';
21297
+ else {
21298
+ this.kupManager.dynamicPosition.register(this.pickerKupEl, this.textFieldContainerEl, 0, KupDynamicPositionPlacement.AUTO, true);
20731
21299
  }
21300
+ this.kupManager.dynamicPosition.start(this.pickerKupEl);
20732
21301
  if (!this.clickCb) {
20733
21302
  this.clickCb = {
20734
21303
  cb: () => {
20735
21304
  this.closePicker();
20736
21305
  },
20737
- el: this.pickerContainerEl,
21306
+ el: this.pickerKupEl,
20738
21307
  };
20739
21308
  }
20740
21309
  this.kupManager.addClickCallback(this.clickCb, true);
20741
- this.refresh();
20742
21310
  }
20743
21311
  closePicker() {
21312
+ this.pickerKupEl.menuVisible = false;
21313
+ this.kupManager.removeClickCallback(this.clickCb);
20744
21314
  let textfieldEl = this.textfieldEl;
20745
- let containerEl = this.pickerContainerEl;
20746
- this.pickerOpened = false;
20747
21315
  if (textfieldEl != null) {
20748
21316
  textfieldEl.classList.remove('toggled');
20749
- textfieldEl.emitSubmitEventOnEnter = true;
20750
- }
20751
- if (containerEl != null) {
20752
- containerEl.classList.remove('visible');
20753
21317
  }
21318
+ this.pickerKupEl.menuVisible = false;
21319
+ this.kupManager.dynamicPosition.stop(this.pickerKupEl);
20754
21320
  this.kupManager.removeClickCallback(this.clickCb);
20755
21321
  }
20756
21322
  isPickerOpened() {
20757
- return this.pickerOpened;
21323
+ return this.pickerKupEl.menuVisible == true;
20758
21324
  }
20759
21325
  getTextFieldId() {
20760
21326
  return this.textfieldEl.id;
20761
21327
  }
20762
21328
  getPickerElId() {
20763
- return this.pickerEl.id;
21329
+ return this.pickerKupEl.id;
20764
21330
  }
20765
21331
  prepTextfield(initialValue) {
20766
- let textfieldData = Object.assign({}, this.data['kup-text-field']);
20767
- if (!textfieldData['icon']) {
20768
- textfieldData['icon'] = 'access_time';
21332
+ const fullHeight = this.rootElement.classList.contains('kup-full-height');
21333
+ const fullWidth = this.rootElement.classList.contains('kup-full-width');
21334
+ const textfieldData = Object.assign({}, this.data['kup-text-field']);
21335
+ if (!textfieldData.icon) {
21336
+ textfieldData.icon = 'access_time';
20769
21337
  }
20770
- if (textfieldData['icon']) {
20771
- textfieldData['trailingIcon'] = true;
21338
+ if (textfieldData.icon) {
21339
+ textfieldData.trailingIcon = true;
20772
21340
  }
20773
- let comp = (h(FTextField, Object.assign({}, textfieldData, { disabled: this.disabled, id: this.rootElement.id + '_text-field', value: initialValue, onChange: (e) => this.onKupChange(e), onClick: () => this.onKupClick(), onFocus: () => this.onKupFocus(), onInput: (e) => this.onKupInput(e), onIconClick: () => this.onKupIconClick(), onKeyDown: (e) => this.onKupTextFieldSubmit(e), onClearIconClick: () => this.onKupClearIconClick() }), this.prepTimePicker()));
21341
+ let comp = (h(FTextField, Object.assign({}, textfieldData, { disabled: this.disabled, fullHeight: fullHeight, fullWidth: fullWidth, id: this.rootElement.id + '_text-field', value: initialValue, onChange: (e) => this.onKupChange(e), onClick: () => this.onKupClick(), onFocus: () => this.onKupFocus(), onInput: (e) => this.onKupInput(e), onIconClick: () => this.onKupIconClick(), onKeyDown: (e) => this.onKupTextFieldSubmit(e), onClearIconClick: () => this.onKupClearIconClick() }), this.prepTimePicker()));
20774
21342
  return comp;
20775
21343
  }
20776
21344
  isRelatedTargetInThisComponent(e) {
@@ -20790,183 +21358,25 @@ let KupTimePicker = class {
20790
21358
  let idConc = '#time-picker-div#confirm#';
20791
21359
  return idConc.indexOf('#' + id + '#') >= 0;
20792
21360
  }
20793
- setTimeFromClock(e) {
20794
- let text = this.hoursEl.innerText + ':' + this.minutesEl.innerText;
20795
- if (this.manageSeconds) {
20796
- text += ':' + this.secondsEl.innerText;
20797
- }
20798
- this.onKupTimePickerItemClick(e, text);
20799
- }
20800
- createClock() {
20801
- let selectedTime;
20802
- if (this.value) {
20803
- selectedTime = this.kupManager.dates.toDate(this.value, this.manageSeconds
20804
- ? KupDatesFormats.ISO_TIME
20805
- : KupDatesFormats.ISO_TIME_WITHOUT_SECONDS);
20806
- }
20807
- else {
20808
- selectedTime = new Date();
20809
- }
20810
- let hh = selectedTime.getHours().toString();
20811
- let mm = selectedTime.getMinutes().toString();
20812
- if (hh.length === 1) {
20813
- hh = '0' + hh;
20814
- }
20815
- if (mm.length === 1) {
20816
- mm = '0' + mm;
20817
- }
20818
- let ss = '';
20819
- if (this.manageSeconds) {
20820
- ss = selectedTime.getSeconds().toString();
20821
- if (ss.length === 1) {
20822
- ss = '0' + ss;
20823
- }
20824
- }
20825
- let seconds;
20826
- let time = [
20827
- h("span", { class: "h", ref: (el) => (this.hoursEl = el), onClick: () => {
20828
- this.setClockViewActive(true, false, false);
20829
- this.switchView(this.hoursEl, this.hoursCircleEl);
20830
- }, innerHTML: hh }),
20831
- ':',
20832
- h("span", { class: "m", ref: (el) => (this.minutesEl = el), onClick: () => {
20833
- this.setClockViewActive(false, true, false);
20834
- this.switchView(this.minutesEl, this.minutesCircleEl);
20835
- }, innerHTML: mm }),
20836
- ];
20837
- if (this.manageSeconds) {
20838
- seconds = (h("div", { class: "circle seconds", ref: (el) => (this.secondsCircleEl = el) }, this.buildClock(60, 101, 115, 115, 'sec unit', 0, 5, ss), h("div", { class: "mid" })));
20839
- time.push(':', h("span", { class: "s", ref: (el) => (this.secondsEl = el), onClick: () => {
20840
- this.setClockViewActive(false, false, true);
20841
- this.switchView(this.secondsEl, this.secondsCircleEl);
20842
- }, innerHTML: ss }));
20843
- }
20844
- return (h("div", { class: "clock", id: this.rootElement.id + '_clock', ref: (el) => (this.pickerEl = el) }, h("div", { class: "top" }, time), h("div", { class: "circle hours", ref: (el) => (this.hoursCircleEl = el) }, this.buildClock(12, 101, 105, 105, 'hour', 0, 1, hh), this.buildClock(12, 64, 110, 110, 'hour2', 12, 1, hh), h("div", { class: "mid" })), h("div", { class: "circle minutes", ref: (el) => (this.minutesCircleEl = el) }, this.buildClock(60, 101, 115, 115, 'min unit', 0, 5, mm), h("div", { class: "mid" })), seconds, h("div", { class: "actions" }, h("kup-button", { "onkup-button-click": (e) => {
20845
- this.setTimeFromClock(e);
20846
- }, id: "confirm", styling: FButtonStyling.FLAT, label: "Ok" }))));
20847
- }
20848
- switchView(el, elCircle) {
20849
- this.hoursEl.classList.remove('active');
20850
- this.hoursCircleEl.classList.remove('active');
20851
- this.minutesEl.classList.remove('active');
20852
- this.minutesCircleEl.classList.remove('active');
20853
- if (this.secondsEl) {
20854
- this.secondsEl.classList.remove('active');
20855
- this.secondsCircleEl.classList.remove('active');
20856
- }
20857
- el.classList.add('active');
20858
- elCircle.classList.add('active');
20859
- }
20860
- setClockViewActive(hoursActive, minutesActive, secondsActive) {
20861
- this.hoursActive = hoursActive;
20862
- this.minutesActive = minutesActive;
20863
- this.secondsActive = secondsActive;
20864
- }
20865
- buildClock(num, radius, offsetX, offsetY, className, add, separator, selectedValue) {
20866
- let x, y;
20867
- let divsArray = [];
20868
- for (var n = 0; n < num; n++) {
20869
- x = radius * Math.cos((n / num) * 2 * Math.PI);
20870
- y = radius * Math.sin((n / num) * 2 * Math.PI);
20871
- let text;
20872
- let dataValue = {};
20873
- let style = {};
20874
- if (separator == 1) {
20875
- if (n + 3 > 12) {
20876
- text = n + 3 - 12 + add + '';
20877
- }
20878
- else {
20879
- let calc = n + 3 + add;
20880
- if (calc !== 24) {
20881
- text = n + 3 + add + '';
20882
- }
20883
- else {
20884
- text = '00';
20885
- }
20886
- }
20887
- dataValue['data-value'] = text;
20888
- }
20889
- else {
20890
- if (n % separator == 0) {
20891
- if (n + 15 >= 60) {
20892
- dataValue['data-value'] = n + 15 - 60 + '';
20893
- text = n + 15 - 60 + add + '';
20894
- }
20895
- else {
20896
- dataValue['data-value'] = n + 15 + '';
20897
- text = n + 15 + add + '';
20898
- }
20899
- }
20900
- else {
20901
- if (n + 15 >= 60) {
20902
- dataValue['data-value'] = n + 15 - 60 + '';
20903
- text = '⋅';
20904
- }
20905
- else {
20906
- dataValue['data-value'] = n + 15 + '';
20907
- text = '\u00B7';
20908
- }
20909
- }
20910
- }
20911
- style['left'] = x + offsetX + 'px';
20912
- style['top'] = y + offsetY + 'px';
20913
- if (dataValue['data-value'].length === 1) {
20914
- dataValue['data-value'] = '0' + dataValue['data-value'];
20915
- }
20916
- let elClass = className;
20917
- if (dataValue['data-value'] === selectedValue) {
20918
- elClass += ' selected';
20919
- }
20920
- let div = (h("div", Object.assign({ class: elClass, style: style }, dataValue, { onClick: (e) => this.setClockTime(e) }), text));
20921
- divsArray.push(div);
20922
- }
20923
- return divsArray;
20924
- }
20925
- setClockTime(e) {
20926
- let time = e.target.getAttribute('data-value');
20927
- if (this.hoursActive) {
20928
- this.hoursEl.innerText = time;
20929
- this.hoursCircleEl
20930
- .querySelector('.selected')
20931
- .classList.remove('selected');
20932
- this.setClockViewActive(false, true, false);
20933
- this.switchView(this.minutesEl, this.minutesCircleEl);
20934
- }
20935
- else if (this.minutesActive) {
20936
- this.minutesEl.innerText = time;
20937
- this.minutesCircleEl
20938
- .querySelector('.selected')
20939
- .classList.remove('selected');
20940
- if (this.manageSeconds) {
20941
- this.setClockViewActive(false, false, true);
20942
- this.switchView(this.secondsEl, this.secondsCircleEl);
20943
- }
20944
- else {
20945
- this.setTimeFromClock(e);
20946
- }
20947
- }
20948
- else {
20949
- this.secondsEl.innerText = time;
20950
- this.secondsCircleEl
20951
- .querySelector('.selected')
20952
- .classList.remove('selected');
20953
- this.setTimeFromClock(e);
20954
- }
20955
- e.target.classList.add('selected');
20956
- }
20957
21361
  prepTimePicker() {
20958
- let widget = undefined;
20959
21362
  if (this.clockVariant) {
20960
- widget = this.createClock();
21363
+ const data = {
21364
+ options: {
21365
+ initialValue: this.value,
21366
+ manageSeconds: this.manageSeconds,
21367
+ hoursActive: this.hoursActive,
21368
+ minutesActive: this.minutesActive,
21369
+ secondsActive: this.secondsActive,
21370
+ },
21371
+ };
21372
+ return (h("kup-card", { ref: (el) => (this.pickerKupEl = el), data: data, "layout-family": "builtin", "layout-number": "2", "size-x": "300px", "size-y": "450px", "is-menu": true, "onkup-card-click": (ev) => {
21373
+ if (ev.detail.value != null && ev.detail.value != '')
21374
+ this.onKupTimePickerItemClick(ev, ev.detail.value);
21375
+ } }));
20961
21376
  }
20962
21377
  else {
20963
- widget = (h("kup-list", { data: this.createTimeListData(this.value), "is-menu": true, "menu-visible": true, "onkup-list-click": (e) => this.onKupTimePickerItemClick(e, e.detail.selected.value), id: this.rootElement.id + '_list', ref: (el) => (this.pickerEl = el) }));
21378
+ return (h("kup-list", { ref: (el) => (this.pickerKupEl = el), data: this.createTimeListData(this.value), "is-menu": true, "onkup-list-click": (e) => this.onKupTimePickerItemClick(e, e.detail.selected.value), id: this.rootElement.id + '_list' }));
20964
21379
  }
20965
- return (h("div", { id: "time-picker-div", ref: (el) => (this.pickerContainerEl = el), onBlur: (e) => {
20966
- if (!this.isRelatedTargetInThisComponent(e)) {
20967
- this.onKupBlur();
20968
- }
20969
- } }, widget));
20970
21380
  }
20971
21381
  createTimeListData(value) {
20972
21382
  let listData = [];
@@ -21036,42 +21446,23 @@ let KupTimePicker = class {
21036
21446
  if (root) {
21037
21447
  const f = root.querySelector('.f-text-field');
21038
21448
  if (f) {
21449
+ this.textFieldContainerEl = f;
21039
21450
  this.textfieldEl = f.querySelector('input');
21040
21451
  FTextFieldMDC(f);
21041
21452
  }
21042
21453
  }
21043
- if (this.clockVariant) {
21044
- if (this.hoursActive) {
21045
- this.switchView(this.hoursEl, this.hoursCircleEl);
21046
- }
21047
- else if (this.minutesActive) {
21048
- this.switchView(this.minutesEl, this.minutesCircleEl);
21049
- }
21050
- else if (this.secondsActive) {
21051
- this.switchView(this.secondsEl, this.secondsCircleEl);
21052
- }
21053
- }
21054
21454
  this.kupManager.debug.logRender(this, true);
21055
21455
  }
21056
21456
  render() {
21057
- let hostClass = {};
21058
- if (this.data &&
21059
- this.data['kup-text-field'] &&
21060
- this.data['kup-text-field']['className'] &&
21061
- this.data['kup-text-field']['className'].indexOf('kup-full-height') > -1) {
21062
- hostClass['kup-full-height'] = true;
21063
- }
21064
- if (this.data &&
21065
- this.data['kup-text-field'] &&
21066
- this.data['kup-text-field']['fullWidth']) {
21067
- hostClass['kup-full-width'] = true;
21068
- }
21069
- return (h(Host, { class: hostClass }, h("style", null, this.kupManager.theme.setKupStyle(this.rootElement)), h("div", { id: componentWrapperId }, this.prepTextfield(this.getTimeForOutput()))));
21457
+ return (h(Host, null, h("style", null, this.kupManager.theme.setKupStyle(this.rootElement)), h("div", { id: componentWrapperId }, this.prepTextfield(this.getTimeForOutput()))));
21070
21458
  }
21071
21459
  disconnectedCallback() {
21072
21460
  this.kupManager.theme.unregister(this);
21461
+ if (this.pickerKupEl) {
21462
+ this.pickerKupEl.remove();
21463
+ }
21073
21464
  }
21074
- get rootElement() { return getElement(this); }
21465
+ get rootElement() { return getElement$1(this); }
21075
21466
  static get watchers() { return {
21076
21467
  "timeMinutesStep": ["watchTimeMinutesStep"]
21077
21468
  }; }
@@ -21727,7 +22118,7 @@ let KupTooltip = class {
21727
22118
  this.kupManager.dynamicPosition.unregister(Array.prototype.slice.call(dynamicPositionElements));
21728
22119
  }
21729
22120
  }
21730
- get rootElement() { return getElement(this); }
22121
+ get rootElement() { return getElement$1(this); }
21731
22122
  static get watchers() { return {
21732
22123
  "relatedObject": ["onElementChanged"],
21733
22124
  "data": ["onDataChanged"],
@@ -23281,7 +23672,7 @@ let KupTree = class {
23281
23672
  }
23282
23673
  this.kupDidUnload.emit({ comp: this, id: this.rootElement.id });
23283
23674
  }
23284
- get rootElement() { return getElement(this); }
23675
+ get rootElement() { return getElement$1(this); }
23285
23676
  static get watchers() { return {
23286
23677
  "data": ["enrichDataWhenChanged"],
23287
23678
  "expanded": ["enrichStructureStateWhenChanged"],