@sme.up/ketchup 9.4.0 → 9.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (118) hide show
  1. package/dist/cjs/{f-button-4bef0f8e.js → f-button-033ed6d4.js} +1 -1
  2. package/dist/cjs/{f-cell-5e0a400e.js → f-cell-ef276797.js} +5 -5
  3. package/dist/cjs/{f-chip-9159b2a5.js → f-chip-d4e26a2b.js} +2 -2
  4. package/dist/cjs/{f-image-b9074ea8.js → f-image-33be7baf.js} +1 -1
  5. package/dist/cjs/{f-paginator-utils-bfa0fa70.js → f-paginator-utils-5a18cc19.js} +2 -2
  6. package/dist/cjs/{f-text-field-bd197af7.js → f-text-field-f03e97f8.js} +1 -1
  7. package/dist/cjs/index.cjs.js +1 -1
  8. package/dist/cjs/ketchup.cjs.js +1 -1
  9. package/dist/cjs/kup-accordion.cjs.entry.js +2 -2
  10. package/dist/cjs/kup-autocomplete_27.cjs.entry.js +18 -9
  11. package/dist/cjs/kup-box.cjs.entry.js +7 -7
  12. package/dist/cjs/kup-calendar.cjs.entry.js +4 -4
  13. package/dist/cjs/kup-card-list.cjs.entry.js +1 -1
  14. package/dist/cjs/kup-cell.cjs.entry.js +6 -6
  15. package/dist/cjs/kup-dashboard.cjs.entry.js +4 -4
  16. package/dist/cjs/kup-drawer.cjs.entry.js +1 -1
  17. package/dist/cjs/kup-echart.cjs.entry.js +1 -1
  18. package/dist/cjs/kup-family-tree.cjs.entry.js +3 -3
  19. package/dist/cjs/kup-grid.cjs.entry.js +1 -1
  20. package/dist/cjs/kup-iframe.cjs.entry.js +1 -1
  21. package/dist/cjs/kup-image-list.cjs.entry.js +6 -6
  22. package/dist/cjs/kup-lazy.cjs.entry.js +1 -1
  23. package/dist/cjs/kup-magic-box.cjs.entry.js +2 -2
  24. package/dist/cjs/{kup-manager-5106d5c6.js → kup-manager-f90f1b6d.js} +124 -0
  25. package/dist/cjs/kup-nav-bar.cjs.entry.js +1 -1
  26. package/dist/cjs/kup-numeric-picker.cjs.entry.js +2 -2
  27. package/dist/cjs/kup-openai-interface.cjs.entry.js +146 -0
  28. package/dist/cjs/kup-photo-frame.cjs.entry.js +1 -1
  29. package/dist/cjs/kup-planner.cjs.entry.js +2 -2
  30. package/dist/cjs/kup-probe.cjs.entry.js +1 -1
  31. package/dist/cjs/kup-qlik.cjs.entry.js +1 -1
  32. package/dist/cjs/kup-snackbar.cjs.entry.js +3 -3
  33. package/dist/cjs/loader.cjs.js +1 -1
  34. package/dist/collection/collection-manifest.json +1 -0
  35. package/dist/collection/components/kup-data-table/kup-data-table.js +11 -2
  36. package/dist/collection/components/kup-image/assets/svg/open-ai.svg +1 -0
  37. package/dist/collection/components/kup-openai-interface/kup-openai-interface-declarations.js +11 -0
  38. package/dist/collection/components/kup-openai-interface/kup-openai-interface.css +64 -0
  39. package/dist/collection/components/kup-openai-interface/kup-openai-interface.js +340 -0
  40. package/dist/collection/managers/kup-manager/kup-manager.js +124 -0
  41. package/dist/components/kup-autocomplete2.js +11 -2
  42. package/dist/components/kup-manager.js +124 -0
  43. package/dist/components/kup-openai-interface.d.ts +11 -0
  44. package/dist/components/kup-openai-interface.js +301 -0
  45. package/dist/esm/{f-button-4d7a0b09.js → f-button-ccde4447.js} +1 -1
  46. package/dist/esm/{f-cell-0bf956b8.js → f-cell-2ad41d52.js} +5 -5
  47. package/dist/esm/{f-chip-91249dc2.js → f-chip-3df1c255.js} +2 -2
  48. package/dist/esm/{f-image-d666df65.js → f-image-5434b351.js} +1 -1
  49. package/dist/esm/{f-paginator-utils-b5be40ee.js → f-paginator-utils-b90cdd2b.js} +2 -2
  50. package/dist/esm/{f-text-field-00a4d490.js → f-text-field-f0b81f8b.js} +1 -1
  51. package/dist/esm/index.js +1 -1
  52. package/dist/esm/ketchup.js +1 -1
  53. package/dist/esm/kup-accordion.entry.js +2 -2
  54. package/dist/esm/kup-autocomplete_27.entry.js +18 -9
  55. package/dist/esm/kup-box.entry.js +7 -7
  56. package/dist/esm/kup-calendar.entry.js +4 -4
  57. package/dist/esm/kup-card-list.entry.js +1 -1
  58. package/dist/esm/kup-cell.entry.js +6 -6
  59. package/dist/esm/kup-dashboard.entry.js +4 -4
  60. package/dist/esm/kup-drawer.entry.js +1 -1
  61. package/dist/esm/kup-echart.entry.js +1 -1
  62. package/dist/esm/kup-family-tree.entry.js +3 -3
  63. package/dist/esm/kup-grid.entry.js +1 -1
  64. package/dist/esm/kup-iframe.entry.js +1 -1
  65. package/dist/esm/kup-image-list.entry.js +6 -6
  66. package/dist/esm/kup-lazy.entry.js +1 -1
  67. package/dist/esm/kup-magic-box.entry.js +2 -2
  68. package/dist/esm/{kup-manager-7f0372fb.js → kup-manager-e33d8d8c.js} +124 -0
  69. package/dist/esm/kup-nav-bar.entry.js +1 -1
  70. package/dist/esm/kup-numeric-picker.entry.js +2 -2
  71. package/dist/esm/kup-openai-interface.entry.js +142 -0
  72. package/dist/esm/kup-photo-frame.entry.js +1 -1
  73. package/dist/esm/kup-planner.entry.js +2 -2
  74. package/dist/esm/kup-probe.entry.js +1 -1
  75. package/dist/esm/kup-qlik.entry.js +1 -1
  76. package/dist/esm/kup-snackbar.entry.js +3 -3
  77. package/dist/esm/loader.js +1 -1
  78. package/dist/ketchup/assets/svg/open-ai.svg +1 -0
  79. package/dist/ketchup/index.esm.js +1 -1
  80. package/dist/ketchup/ketchup.esm.js +1 -1
  81. package/dist/ketchup/{p-491c3cd0.entry.js → p-01aaf3e4.entry.js} +1 -1
  82. package/dist/ketchup/{p-378bbbcf.js → p-11e7be94.js} +1 -1
  83. package/dist/ketchup/{p-1180f9e0.entry.js → p-190d0bc5.entry.js} +1 -1
  84. package/dist/ketchup/{p-9fdd98be.entry.js → p-1a594e06.entry.js} +1 -1
  85. package/dist/ketchup/{p-bbc121a2.entry.js → p-1dbfcab5.entry.js} +1 -1
  86. package/dist/ketchup/{p-e4657f9b.entry.js → p-23e4caa1.entry.js} +2 -2
  87. package/dist/ketchup/p-2681d3a2.entry.js +1 -0
  88. package/dist/ketchup/{p-d5a9924b.entry.js → p-269a1dfe.entry.js} +1 -1
  89. package/dist/ketchup/{p-3ba32190.entry.js → p-2940b559.entry.js} +1 -1
  90. package/dist/ketchup/{p-91ee68b1.js → p-39ba3355.js} +1 -1
  91. package/dist/ketchup/{p-f0b3d110.entry.js → p-4725191c.entry.js} +1 -1
  92. package/dist/ketchup/{p-8e04781a.js → p-4afe8662.js} +1 -1
  93. package/dist/ketchup/{p-e8f5b996.entry.js → p-58798e2d.entry.js} +1 -1
  94. package/dist/ketchup/{p-1ecff2b9.entry.js → p-5b3d8636.entry.js} +1 -1
  95. package/dist/ketchup/{p-613ef7fa.entry.js → p-5fa089cd.entry.js} +1 -1
  96. package/dist/ketchup/{p-8c835b19.entry.js → p-645d881d.entry.js} +1 -1
  97. package/dist/ketchup/{p-466d3604.entry.js → p-6a8fcb02.entry.js} +1 -1
  98. package/dist/ketchup/p-6f108540.entry.js +1 -0
  99. package/dist/ketchup/{p-19be646f.entry.js → p-788da2d9.entry.js} +1 -1
  100. package/dist/ketchup/{p-31a3eb96.entry.js → p-7e5d8532.entry.js} +1 -1
  101. package/dist/ketchup/{p-1e77ddec.js → p-95b31ede.js} +1 -1
  102. package/dist/ketchup/{p-28dcc98b.js → p-9df95b9f.js} +1 -1
  103. package/dist/ketchup/{p-96678597.entry.js → p-a5229d3d.entry.js} +1 -1
  104. package/dist/ketchup/{p-f5b5b35d.entry.js → p-b104afb6.entry.js} +1 -1
  105. package/dist/ketchup/{p-abdbd35e.entry.js → p-b857aab2.entry.js} +1 -1
  106. package/dist/ketchup/{p-b51b1000.entry.js → p-c0c65349.entry.js} +1 -1
  107. package/dist/ketchup/{p-01401fba.entry.js → p-ddd25869.entry.js} +1 -1
  108. package/dist/ketchup/p-eea1ee1b.js +1 -0
  109. package/dist/ketchup/{p-6d51125a.js → p-f0e4e190.js} +1 -1
  110. package/dist/ketchup/{p-16c23ab7.entry.js → p-f81d7218.entry.js} +1 -1
  111. package/dist/types/components/kup-openai-interface/kup-openai-interface-declarations.d.ts +10 -0
  112. package/dist/types/components/kup-openai-interface/kup-openai-interface.d.ts +59 -0
  113. package/dist/types/components.d.ts +86 -0
  114. package/dist/types/managers/kup-manager/kup-manager-declarations.d.ts +15 -0
  115. package/dist/types/managers/kup-manager/kup-manager.d.ts +17 -1
  116. package/package.json +1 -1
  117. package/dist/ketchup/p-bfa85d01.js +0 -1
  118. package/dist/ketchup/p-d6aa3b78.entry.js +0 -1
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, d as getElement } from './index-59f83f91.js';
2
- import { k as kupManagerInstance, g as getProps, s as setProps, c as KupThemeColorValues, a as KupThemeIconValues } from './kup-manager-7f0372fb.js';
3
- import { F as FImage } from './f-image-d666df65.js';
2
+ import { k as kupManagerInstance, g as getProps, s as setProps, c as KupThemeColorValues, a as KupThemeIconValues } from './kup-manager-e33d8d8c.js';
3
+ import { F as FImage } from './f-image-5434b351.js';
4
4
  import { c as componentWrapperId } from './GenericVariables-d8d0541e.js';
5
5
  import { M as MDCRipple } from './component-879e99bf.js';
6
6
  import './kup-dates-15f89ea2.js';
@@ -1,17 +1,17 @@
1
1
  import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, d as getElement$1, g as getAssetPath } from './index-59f83f91.js';
2
- import { k as kupManagerInstance, g as getProps, s as setProps, a as KupThemeIconValues, b as KupDynamicPositionPlacement, c as KupThemeColorValues, d as KupDebugCategory, F as FCellShapes, e as FCellPadding, f as fillString, h as KupCardBuiltInClockElements, i as KupCardCSSClasses, j as KupLanguageTotals, l as KupLanguageGeneric, m as KupLanguageColumn, n as KupDataNewColumnTypes, o as KupCardSubEvents, p as KupCardIds, q as KupLanguageRow, r as KupCardFamily, t as KupCardProps, u as getColumnByName, v as formatToNumber, w as KupObjects, x as identify, G as GroupLabelDisplayMode, S as SelectionMode, y as KupLanguageGrouping, z as KupLanguageCheckbox, A as getValueForDisplay2, B as Filters, C as getValueForDisplay, D as KupLanguageSearch, E as FilterInterval, L as LoadMoreMode, P as PaginatorPos, H as ShowGrid, T as TotalLabel, I as TotalMode, J as kupDynamicPositionAttribute, M as KupPointerEventTypes, N as kupDraggableColumnAttr, O as kupDragActiveAttr, Q as KupDragEffect, R as kupDraggableCellAttr, U as KupDropEventTypes, V as FixedCellsCSSVarsBase, W as KupLanguageFontsize, X as KupLanguageDensity, Y as KupLanguageGrid, Z as KupDataTableProps, _ as FixedCellsClasses, $ as SortMode, a0 as iconColumn, a1 as keyColumn, a2 as fieldColumn, a3 as FCellTypes, a4 as addColumnValueFromRow, a5 as KupGlobalFilterMode } from './kup-manager-7f0372fb.js';
3
- import { F as FTextField } from './f-text-field-00a4d490.js';
2
+ import { k as kupManagerInstance, g as getProps, s as setProps, a as KupThemeIconValues, b as KupDynamicPositionPlacement, c as KupThemeColorValues, d as KupDebugCategory, F as FCellShapes, e as FCellPadding, f as fillString, h as KupCardBuiltInClockElements, i as KupCardCSSClasses, j as KupLanguageTotals, l as KupLanguageGeneric, m as KupLanguageColumn, n as KupDataNewColumnTypes, o as KupCardSubEvents, p as KupCardIds, q as KupLanguageRow, r as KupCardFamily, t as KupCardProps, u as getColumnByName, v as formatToNumber, w as KupObjects, x as identify, G as GroupLabelDisplayMode, S as SelectionMode, y as KupLanguageGrouping, z as KupLanguageCheckbox, A as getValueForDisplay2, B as Filters, C as getValueForDisplay, D as KupLanguageSearch, E as FilterInterval, L as LoadMoreMode, P as PaginatorPos, H as ShowGrid, T as TotalLabel, I as TotalMode, J as kupDynamicPositionAttribute, M as KupPointerEventTypes, N as kupDraggableColumnAttr, O as kupDragActiveAttr, Q as KupDragEffect, R as kupDraggableCellAttr, U as KupDropEventTypes, V as FixedCellsCSSVarsBase, W as KupLanguageFontsize, X as KupLanguageDensity, Y as KupLanguageGrid, Z as KupDataTableProps, _ as FixedCellsClasses, $ as SortMode, a0 as iconColumn, a1 as keyColumn, a2 as fieldColumn, a3 as FCellTypes, a4 as addColumnValueFromRow, a5 as KupGlobalFilterMode } from './kup-manager-e33d8d8c.js';
3
+ import { F as FTextField } from './f-text-field-f0b81f8b.js';
4
4
  import { F as FTextFieldMDC } from './f-text-field-mdc-c88bf688.js';
5
- import { I as ItemsDisplayMode, F as FCell, K as KupListRole, a as KupListProps, b as FProgressBar, c as FRadio, d as FRating, e as FSwitch } from './f-cell-0bf956b8.js';
5
+ import { I as ItemsDisplayMode, F as FCell, K as KupListRole, a as KupListProps, b as FProgressBar, c as FRadio, d as FRating, e as FSwitch } from './f-cell-2ad41d52.js';
6
6
  import { c as componentWrapperId } from './GenericVariables-d8d0541e.js';
7
- import { F as FImage } from './f-image-d666df65.js';
8
- import { F as FButton } from './f-button-4d7a0b09.js';
7
+ import { F as FImage } from './f-image-5434b351.js';
8
+ import { F as FButton } from './f-button-ccde4447.js';
9
9
  import { F as FButtonStyling } from './f-button-declarations-9bdc6f26.js';
10
10
  import { f as KupDateTimeFormatOptionsMonth, K as KupDatesFormats, d as KupDates, a as KupDatesNormalize } from './kup-dates-15f89ea2.js';
11
- import { F as FChipType, a as FChip } from './f-chip-91249dc2.js';
11
+ import { F as FChipType, a as FChip } from './f-chip-3df1c255.js';
12
12
  import { M as MDCRipple } from './component-879e99bf.js';
13
13
  import { F as FCheckbox } from './f-checkbox-43481de2.js';
14
- import { F as FiltersColumnMenu, a as FiltersRows, c as calcTotals, n as normalizeRows, p as paginateRows, f as filterRows, g as groupRows, s as sortRows, b as FPaginator, d as pageChange, r as rowsPerPageChange, t as treeMainColumnName, K as KupTreeExpansionMode, e as KupTreeProps } from './f-paginator-utils-b5be40ee.js';
14
+ import { F as FiltersColumnMenu, a as FiltersRows, c as calcTotals, n as normalizeRows, p as paginateRows, f as filterRows, g as groupRows, s as sortRows, b as FPaginator, d as pageChange, r as rowsPerPageChange, t as treeMainColumnName, K as KupTreeExpansionMode, e as KupTreeProps } from './f-paginator-utils-b90cdd2b.js';
15
15
 
16
16
  /**
17
17
  * Props of the kup-autocomplete component.
@@ -9104,11 +9104,20 @@ const KupDataTable = class {
9104
9104
  }
9105
9105
  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) => {
9106
9106
  __classPrivateFieldSet$2(this, _KupDataTable_customizeTopPanelRef, el, "f");
9107
- }, sizeX: "360px", sizeY: "300px" }, density, grid, fontsize, transpose, h("kup-switch", { class: "customize-element", checked: this.dragEnabled, label: __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").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: __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.EDITABLE), leadingLabel: true, "onkup-switch-change": () => (this.editableData = !this.editableData) }), h("kup-button", { title: __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.TOGGLE) +
9107
+ }, sizeX: "360px", sizeY: "300px" }, density, grid, fontsize, transpose, h("kup-switch", { class: "customize-element", checked: this.dragEnabled, label: __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").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: __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.EDITABLE), leadingLabel: true, "onkup-switch-change": () => (this.editableData = !this.editableData) }), h("div", { style: {
9108
+ display: 'grid',
9109
+ 'grid-template-columns': 'repeat(2, auto)',
9110
+ width: 'max-content',
9111
+ } }, h("kup-button", { title: __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.TOGGLE) +
9108
9112
  ' Magic Box ' +
9109
9113
  '(' +
9110
9114
  __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.EXPERIMENTAL_FEAT) +
9111
- ')', icon: "auto-fix", "onkup-button-click": () => __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").toggleMagicBox() }), totalsMatrix));
9115
+ ')', icon: "auto-fix", "onkup-button-click": () => __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").toggleMagicBox() }), __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").openAIInterface &&
9116
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").openAIInterface.url ? (h("kup-button", { title: __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.TOGGLE) +
9117
+ ' Open AI ' +
9118
+ '(' +
9119
+ __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.EXPERIMENTAL_FEAT) +
9120
+ ')', icon: "open-ai", "onkup-button-click": () => __classPrivateFieldGet$4(this, _KupDataTable_kupManager, "f").toggleOpenAI(this.data) })) : null), totalsMatrix));
9112
9121
  }
9113
9122
  render() {
9114
9123
  __classPrivateFieldSet$2(this, _KupDataTable_thRefs, [], "f");
@@ -1,16 +1,16 @@
1
1
  import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, d as getElement } from './index-59f83f91.js';
2
- import { k as kupManagerInstance, x as identify, g as getProps, s as setProps, u as getColumnByName, l as KupLanguageGeneric, a as KupThemeIconValues, d as KupDebugCategory, M as KupPointerEventTypes, Q as KupDragEffect, ak as kupDraggableAttr, U as KupDropEventTypes, D as KupLanguageSearch, $ as SortMode } from './kup-manager-7f0372fb.js';
3
- import { f as filterRows, p as paginateRows, s as sortRows, d as pageChange, r as rowsPerPageChange, h as FPaginatorMode, b as FPaginator } from './f-paginator-utils-b5be40ee.js';
4
- import { F as FImage } from './f-image-d666df65.js';
5
- import { a as FChip } from './f-chip-91249dc2.js';
2
+ import { k as kupManagerInstance, x as identify, g as getProps, s as setProps, u as getColumnByName, l as KupLanguageGeneric, a as KupThemeIconValues, d as KupDebugCategory, M as KupPointerEventTypes, Q as KupDragEffect, ak as kupDraggableAttr, U as KupDropEventTypes, D as KupLanguageSearch, $ as SortMode } from './kup-manager-e33d8d8c.js';
3
+ import { f as filterRows, p as paginateRows, s as sortRows, d as pageChange, r as rowsPerPageChange, h as FPaginatorMode, b as FPaginator } from './f-paginator-utils-b90cdd2b.js';
4
+ import { F as FImage } from './f-image-5434b351.js';
5
+ import { a as FChip } from './f-chip-3df1c255.js';
6
6
  import { c as componentWrapperId } from './GenericVariables-d8d0541e.js';
7
- import { F as FCell } from './f-cell-0bf956b8.js';
7
+ import { F as FCell } from './f-cell-2ad41d52.js';
8
8
  import { F as FTextFieldMDC } from './f-text-field-mdc-c88bf688.js';
9
9
  import './kup-dates-15f89ea2.js';
10
- import './f-button-4d7a0b09.js';
10
+ import './f-button-ccde4447.js';
11
11
  import './f-button-declarations-9bdc6f26.js';
12
12
  import './f-checkbox-43481de2.js';
13
- import './f-text-field-00a4d490.js';
13
+ import './f-text-field-f0b81f8b.js';
14
14
  import './component-879e99bf.js';
15
15
 
16
16
  /**
@@ -1,11 +1,11 @@
1
1
  import { r as registerInstance, c as createEvent, g as getAssetPath, f as forceUpdate, h as h$1, H as Host, d as getElement } from './index-59f83f91.js';
2
- import { k as kupManagerInstance, g as getProps, s as setProps, l as KupLanguageGeneric, u as getColumnByName } from './kup-manager-7f0372fb.js';
2
+ import { k as kupManagerInstance, g as getProps, s as setProps, l as KupLanguageGeneric, u as getColumnByName } from './kup-manager-e33d8d8c.js';
3
3
  import { c as componentWrapperId } from './GenericVariables-d8d0541e.js';
4
- import { F as FButton } from './f-button-4d7a0b09.js';
5
- import { a as FChip, F as FChipType } from './f-chip-91249dc2.js';
4
+ import { F as FButton } from './f-button-ccde4447.js';
5
+ import { a as FChip, F as FChipType } from './f-chip-3df1c255.js';
6
6
  import { e as KupDatesLocales } from './kup-dates-15f89ea2.js';
7
7
  import './f-button-declarations-9bdc6f26.js';
8
- import './f-image-d666df65.js';
8
+ import './f-image-5434b351.js';
9
9
 
10
10
  var n,l$1,u$1,i$1,t,r$1,o,f$1,e$1,c$1={},s=[],a$1=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function h(n,l){for(var u in l)n[u]=l[u];return n}function v$1(n){var l=n.parentNode;l&&l.removeChild(n);}function y(l,u,i){var t,r,o,f={};for(o in u)"key"==o?t=u[o]:"ref"==o?r=u[o]:f[o]=u[o];if(arguments.length>2&&(f.children=arguments.length>3?n.call(arguments,2):i),"function"==typeof l&&null!=l.defaultProps)for(o in l.defaultProps)void 0===f[o]&&(f[o]=l.defaultProps[o]);return p(l,f,t,r,null)}function p(n,i,t,r,o){var f={type:n,props:i,key:t,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==o?++u$1:o};return null==o&&null!=l$1.vnode&&l$1.vnode(f),f}function d(){return {current:null}}function _(n){return n.children}function k$1(n,l,u,i,t){var r;for(r in u)"children"===r||"key"===r||r in l||g$2(n,r,null,u[r],i);for(r in l)t&&"function"!=typeof l[r]||"children"===r||"key"===r||"value"===r||"checked"===r||u[r]===l[r]||g$2(n,r,l[r],u[r],i);}function b$1(n,l,u){"-"===l[0]?n.setProperty(l,null==u?"":u):n[l]=null==u?"":"number"!=typeof u||a$1.test(l)?u:u+"px";}function g$2(n,l,u,i,t){var r;n:if("style"===l)if("string"==typeof u)n.style.cssText=u;else {if("string"==typeof i&&(n.style.cssText=i=""),i)for(l in i)u&&l in u||b$1(n.style,l,"");if(u)for(l in u)i&&u[l]===i[l]||b$1(n.style,l,u[l]);}else if("o"===l[0]&&"n"===l[1])r=l!==(l=l.replace(/Capture$/,"")),l=l.toLowerCase()in n?l.toLowerCase().slice(2):l.slice(2),n.l||(n.l={}),n.l[l+r]=u,u?i||n.addEventListener(l,r?w$2:m$1,r):n.removeEventListener(l,r?w$2:m$1,r);else if("dangerouslySetInnerHTML"!==l){if(t)l=l.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==l&&"height"!==l&&"href"!==l&&"list"!==l&&"form"!==l&&"tabIndex"!==l&&"download"!==l&&l in n)try{n[l]=null==u?"":u;break n}catch(n){}"function"==typeof u||(null==u||!1===u&&-1==l.indexOf("-")?n.removeAttribute(l):n.setAttribute(l,u));}}function m$1(n){t=!0;try{return this.l[n.type+!1](l$1.event?l$1.event(n):n)}finally{t=!1;}}function w$2(n){t=!0;try{return this.l[n.type+!0](l$1.event?l$1.event(n):n)}finally{t=!1;}}function x$1(n,l){this.props=n,this.context=l;}function A(n,l){if(null==l)return n.__?A(n.__,n.__.__k.indexOf(n)+1):null;for(var u;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e)return u.__e;return "function"==typeof n.type?A(n):null}function P$1(n){var l,u;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,l=0;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e){n.__e=n.__c.base=u.__e;break}return P$1(n)}}function C$1(n){t?setTimeout(n):f$1(n);}function T$1(n){(!n.__d&&(n.__d=!0)&&r$1.push(n)&&!$$1.__r++||o!==l$1.debounceRendering)&&((o=l$1.debounceRendering)||C$1)($$1);}function $$1(){var n,l,u,i,t,o,f,e;for(r$1.sort(function(n,l){return n.__v.__b-l.__v.__b});n=r$1.shift();)n.__d&&(l=r$1.length,i=void 0,t=void 0,f=(o=(u=n).__v).__e,(e=u.__P)&&(i=[],(t=h({},o)).__v=o.__v+1,M(e,o,t,u.__n,void 0!==e.ownerSVGElement,null!=o.__h?[f]:null,i,null==f?A(o):f,o.__h),N(i,o),o.__e!=f&&P$1(o)),r$1.length>l&&r$1.sort(function(n,l){return n.__v.__b-l.__v.__b}));$$1.__r=0;}function H$1(n,l,u,i,t,r,o,f,e,a){var h,v,y,d,k,b,g,m=i&&i.__k||s,w=m.length;for(u.__k=[],h=0;h<l.length;h++)if(null!=(d=u.__k[h]=null==(d=l[h])||"boolean"==typeof d?null:"string"==typeof d||"number"==typeof d||"bigint"==typeof d?p(null,d,null,null,d):Array.isArray(d)?p(_,{children:d},null,null,null):d.__b>0?p(d.type,d.props,d.key,d.ref?d.ref:null,d.__v):d)){if(d.__=u,d.__b=u.__b+1,null===(y=m[h])||y&&d.key==y.key&&d.type===y.type)m[h]=void 0;else for(v=0;v<w;v++){if((y=m[v])&&d.key==y.key&&d.type===y.type){m[v]=void 0;break}y=null;}M(n,d,y=y||c$1,t,r,o,f,e,a),k=d.__e,(v=d.ref)&&y.ref!=v&&(g||(g=[]),y.ref&&g.push(y.ref,null,d),g.push(v,d.__c||k,d)),null!=k?(null==b&&(b=k),"function"==typeof d.type&&d.__k===y.__k?d.__d=e=I$1(d,e,n):e=z$1(n,d,y,m,k,e),"function"==typeof u.type&&(u.__d=e)):e&&y.__e==e&&e.parentNode!=n&&(e=A(y));}for(u.__e=b,h=w;h--;)null!=m[h]&&("function"==typeof u.type&&null!=m[h].__e&&m[h].__e==u.__d&&(u.__d=L$1(i).nextSibling),q(m[h],m[h]));if(g)for(h=0;h<g.length;h++)S(g[h],g[++h],g[++h]);}function I$1(n,l,u){for(var i,t=n.__k,r=0;t&&r<t.length;r++)(i=t[r])&&(i.__=n,l="function"==typeof i.type?I$1(i,l,u):z$1(u,i,i,t,i.__e,l));return l}function j$2(n,l){return l=l||[],null==n||"boolean"==typeof n||(Array.isArray(n)?n.some(function(n){j$2(n,l);}):l.push(n)),l}function z$1(n,l,u,i,t,r){var o,f,e;if(void 0!==l.__d)o=l.__d,l.__d=void 0;else if(null==u||t!=r||null==t.parentNode)n:if(null==r||r.parentNode!==n)n.appendChild(t),o=null;else {for(f=r,e=0;(f=f.nextSibling)&&e<i.length;e+=1)if(f==t)break n;n.insertBefore(t,r),o=r;}return void 0!==o?o:t.nextSibling}function L$1(n){var l,u,i;if(null==n.type||"string"==typeof n.type)return n.__e;if(n.__k)for(l=n.__k.length-1;l>=0;l--)if((u=n.__k[l])&&(i=L$1(u)))return i;return null}function M(n,u,i,t,r,o,f,e,c){var s,a,v,y,p,d,k,b,g,m,w,A,P,C,T,$=u.type;if(void 0!==u.constructor)return null;null!=i.__h&&(c=i.__h,e=u.__e=i.__e,u.__h=null,o=[e]),(s=l$1.__b)&&s(u);try{n:if("function"==typeof $){if(b=u.props,g=(s=$.contextType)&&t[s.__c],m=s?g?g.props.value:s.__:t,i.__c?k=(a=u.__c=i.__c).__=a.__E:("prototype"in $&&$.prototype.render?u.__c=a=new $(b,m):(u.__c=a=new x$1(b,m),a.constructor=$,a.render=B$1),g&&g.sub(a),a.props=b,a.state||(a.state={}),a.context=m,a.__n=t,v=a.__d=!0,a.__h=[],a._sb=[]),null==a.__s&&(a.__s=a.state),null!=$.getDerivedStateFromProps&&(a.__s==a.state&&(a.__s=h({},a.__s)),h(a.__s,$.getDerivedStateFromProps(b,a.__s))),y=a.props,p=a.state,a.__v=u,v)null==$.getDerivedStateFromProps&&null!=a.componentWillMount&&a.componentWillMount(),null!=a.componentDidMount&&a.__h.push(a.componentDidMount);else {if(null==$.getDerivedStateFromProps&&b!==y&&null!=a.componentWillReceiveProps&&a.componentWillReceiveProps(b,m),!a.__e&&null!=a.shouldComponentUpdate&&!1===a.shouldComponentUpdate(b,a.__s,m)||u.__v===i.__v){for(u.__v!==i.__v&&(a.props=b,a.state=a.__s,a.__d=!1),u.__e=i.__e,u.__k=i.__k,u.__k.forEach(function(n){n&&(n.__=u);}),w=0;w<a._sb.length;w++)a.__h.push(a._sb[w]);a._sb=[],a.__h.length&&f.push(a);break n}null!=a.componentWillUpdate&&a.componentWillUpdate(b,a.__s,m),null!=a.componentDidUpdate&&a.__h.push(function(){a.componentDidUpdate(y,p,d);});}if(a.context=m,a.props=b,a.__P=n,A=l$1.__r,P=0,"prototype"in $&&$.prototype.render){for(a.state=a.__s,a.__d=!1,A&&A(u),s=a.render(a.props,a.state,a.context),C=0;C<a._sb.length;C++)a.__h.push(a._sb[C]);a._sb=[];}else do{a.__d=!1,A&&A(u),s=a.render(a.props,a.state,a.context),a.state=a.__s;}while(a.__d&&++P<25);a.state=a.__s,null!=a.getChildContext&&(t=h(h({},t),a.getChildContext())),v||null==a.getSnapshotBeforeUpdate||(d=a.getSnapshotBeforeUpdate(y,p)),T=null!=s&&s.type===_&&null==s.key?s.props.children:s,H$1(n,Array.isArray(T)?T:[T],u,i,t,r,o,f,e,c),a.base=u.__e,u.__h=null,a.__h.length&&f.push(a),k&&(a.__E=a.__=null),a.__e=!1;}else null==o&&u.__v===i.__v?(u.__k=i.__k,u.__e=i.__e):u.__e=O(i.__e,u,i,t,r,o,f,c);(s=l$1.diffed)&&s(u);}catch(n){u.__v=null,(c||null!=o)&&(u.__e=e,u.__h=!!c,o[o.indexOf(e)]=null),l$1.__e(n,u,i);}}function N(n,u){l$1.__c&&l$1.__c(u,n),n.some(function(u){try{n=u.__h,u.__h=[],n.some(function(n){n.call(u);});}catch(n){l$1.__e(n,u.__v);}});}function O(l,u,i,t,r,o,f,e){var s,a,h,y=i.props,p=u.props,d=u.type,_=0;if("svg"===d&&(r=!0),null!=o)for(;_<o.length;_++)if((s=o[_])&&"setAttribute"in s==!!d&&(d?s.localName===d:3===s.nodeType)){l=s,o[_]=null;break}if(null==l){if(null===d)return document.createTextNode(p);l=r?document.createElementNS("http://www.w3.org/2000/svg",d):document.createElement(d,p.is&&p),o=null,e=!1;}if(null===d)y===p||e&&l.data===p||(l.data=p);else {if(o=o&&n.call(l.childNodes),a=(y=i.props||c$1).dangerouslySetInnerHTML,h=p.dangerouslySetInnerHTML,!e){if(null!=o)for(y={},_=0;_<l.attributes.length;_++)y[l.attributes[_].name]=l.attributes[_].value;(h||a)&&(h&&(a&&h.__html==a.__html||h.__html===l.innerHTML)||(l.innerHTML=h&&h.__html||""));}if(k$1(l,p,y,r,e),h)u.__k=[];else if(_=u.props.children,H$1(l,Array.isArray(_)?_:[_],u,i,t,r&&"foreignObject"!==d,o,f,o?o[0]:i.__k&&A(i,0),e),null!=o)for(_=o.length;_--;)null!=o[_]&&v$1(o[_]);e||("value"in p&&void 0!==(_=p.value)&&(_!==l.value||"progress"===d&&!_||"option"===d&&_!==y.value)&&g$2(l,"value",_,y.value,!1),"checked"in p&&void 0!==(_=p.checked)&&_!==l.checked&&g$2(l,"checked",_,y.checked,!1));}return l}function S(n,u,i){try{"function"==typeof n?n(u):n.current=u;}catch(n){l$1.__e(n,i);}}function q(n,u,i){var t,r;if(l$1.unmount&&l$1.unmount(n),(t=n.ref)&&(t.current&&t.current!==n.__e||S(t,null,u)),null!=(t=n.__c)){if(t.componentWillUnmount)try{t.componentWillUnmount();}catch(n){l$1.__e(n,u);}t.base=t.__P=null,n.__c=void 0;}if(t=n.__k)for(r=0;r<t.length;r++)t[r]&&q(t[r],u,i||"function"!=typeof n.type);i||null==n.__e||v$1(n.__e),n.__=n.__e=n.__d=void 0;}function B$1(n,l,u){return this.constructor(n,u)}function D$1(u,i,t){var r,o,f;l$1.__&&l$1.__(u,i),o=(r="function"==typeof t)?null:t&&t.__k||i.__k,f=[],M(i,u=(!r&&t||i).__k=y(_,null,[u]),o||c$1,c$1,void 0!==i.ownerSVGElement,!r&&t?[t]:o?null:i.firstChild?n.call(i.childNodes):null,f,!r&&t?t:o?o.__e:i.firstChild,r),N(f,u);}function G$1(n,l){var u={__c:l="__cC"+e$1++,__:n,Consumer:function(n,l){return n.children(l)},Provider:function(n){var u,i;return this.getChildContext||(u=[],(i={})[l]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(n){this.props.value!==n.value&&u.some(function(n){n.__e=!0,T$1(n);});},this.sub=function(n){u.push(n);var l=n.componentWillUnmount;n.componentWillUnmount=function(){u.splice(u.indexOf(n),1),l&&l.call(n);};}),n.children}};return u.Provider.__=u.Consumer.contextType=u}n=s.slice,l$1={__e:function(n,l,u,i){for(var t,r,o;l=l.__;)if((t=l.__c)&&!t.__)try{if((r=t.constructor)&&null!=r.getDerivedStateFromError&&(t.setState(r.getDerivedStateFromError(n)),o=t.__d),null!=t.componentDidCatch&&(t.componentDidCatch(n,i||{}),o=t.__d),o)return t.__E=t}catch(l){n=l;}throw n}},u$1=0,i$1=function(n){return null!=n&&void 0===n.constructor},t=!1,x$1.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=h({},this.state),"function"==typeof n&&(n=n(h({},u),this.props)),n&&h(u,n),null!=n&&this.__v&&(l&&this._sb.push(l),T$1(this));},x$1.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),T$1(this));},x$1.prototype.render=_,r$1=[],f$1="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,$$1.__r=0,e$1=0;
11
11
 
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, d as getElement } from './index-59f83f91.js';
2
- import { k as kupManagerInstance, g as getProps, s as setProps, r as KupCardFamily, ac as getCellValueForDisplay } from './kup-manager-7f0372fb.js';
2
+ import { k as kupManagerInstance, g as getProps, s as setProps, r as KupCardFamily, ac as getCellValueForDisplay } from './kup-manager-e33d8d8c.js';
3
3
  import { c as componentWrapperId } from './GenericVariables-d8d0541e.js';
4
4
  import './kup-dates-15f89ea2.js';
5
5
 
@@ -1,13 +1,13 @@
1
1
  import { r as registerInstance, f as forceUpdate, h, H as Host, d as getElement } from './index-59f83f91.js';
2
- import { k as kupManagerInstance, e as FCellPadding, g as getProps, s as setProps, Q as KupDragEffect, l as KupLanguageGeneric } from './kup-manager-7f0372fb.js';
2
+ import { k as kupManagerInstance, e as FCellPadding, g as getProps, s as setProps, Q as KupDragEffect, l as KupLanguageGeneric } from './kup-manager-e33d8d8c.js';
3
3
  import { c as componentWrapperId } from './GenericVariables-d8d0541e.js';
4
- import { F as FCell } from './f-cell-0bf956b8.js';
4
+ import { F as FCell } from './f-cell-2ad41d52.js';
5
5
  import './kup-dates-15f89ea2.js';
6
6
  import './f-checkbox-43481de2.js';
7
- import './f-text-field-00a4d490.js';
8
- import './f-image-d666df65.js';
9
- import './f-chip-91249dc2.js';
10
- import './f-button-4d7a0b09.js';
7
+ import './f-text-field-f0b81f8b.js';
8
+ import './f-image-5434b351.js';
9
+ import './f-chip-3df1c255.js';
10
+ import './f-button-ccde4447.js';
11
11
  import './f-button-declarations-9bdc6f26.js';
12
12
 
13
13
  /**
@@ -1,12 +1,12 @@
1
1
  import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, d as getElement } from './index-59f83f91.js';
2
- import { F as FButton } from './f-button-4d7a0b09.js';
2
+ import { F as FButton } from './f-button-ccde4447.js';
3
3
  import { F as FCheckbox } from './f-checkbox-43481de2.js';
4
- import { F as FTextField } from './f-text-field-00a4d490.js';
4
+ import { F as FTextField } from './f-text-field-f0b81f8b.js';
5
5
  import { F as FTextFieldMDC } from './f-text-field-mdc-c88bf688.js';
6
- import { k as kupManagerInstance, g as getProps, s as setProps, ah as KupLanguageDashboard, l as KupLanguageGeneric, Q as KupDragEffect, d as KupDebugCategory } from './kup-manager-7f0372fb.js';
6
+ import { k as kupManagerInstance, g as getProps, s as setProps, ah as KupLanguageDashboard, l as KupLanguageGeneric, Q as KupDragEffect, d as KupDebugCategory } from './kup-manager-e33d8d8c.js';
7
7
  import { c as componentWrapperId } from './GenericVariables-d8d0541e.js';
8
8
  import './f-button-declarations-9bdc6f26.js';
9
- import './f-image-d666df65.js';
9
+ import './f-image-5434b351.js';
10
10
  import './component-879e99bf.js';
11
11
  import './kup-dates-15f89ea2.js';
12
12
 
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, d as getElement } from './index-59f83f91.js';
2
- import { k as kupManagerInstance, g as getProps, s as setProps } from './kup-manager-7f0372fb.js';
2
+ import { k as kupManagerInstance, g as getProps, s as setProps } from './kup-manager-e33d8d8c.js';
3
3
  import { c as componentWrapperId } from './GenericVariables-d8d0541e.js';
4
4
  import './kup-dates-15f89ea2.js';
5
5
 
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, d as getElement, g as getAssetPath } from './index-59f83f91.js';
2
- import { k as kupManagerInstance, g as getProps, s as setProps, c as KupThemeColorValues, d as KupDebugCategory, u as getColumnByName, n as KupDataNewColumnTypes } from './kup-manager-7f0372fb.js';
2
+ import { k as kupManagerInstance, g as getProps, s as setProps, c as KupThemeColorValues, d as KupDebugCategory, u as getColumnByName, n as KupDataNewColumnTypes } from './kup-manager-e33d8d8c.js';
3
3
  import { c as componentWrapperId } from './GenericVariables-d8d0541e.js';
4
4
  import './kup-dates-15f89ea2.js';
5
5
 
@@ -1,8 +1,8 @@
1
1
  import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, d as getElement } from './index-59f83f91.js';
2
- import { F as FButton } from './f-button-4d7a0b09.js';
2
+ import { F as FButton } from './f-button-ccde4447.js';
3
3
  import { F as FButtonStyling } from './f-button-declarations-9bdc6f26.js';
4
- import { F as FImage } from './f-image-d666df65.js';
5
- import { k as kupManagerInstance, g as getProps, s as setProps, l as KupLanguageGeneric, M as KupPointerEventTypes } from './kup-manager-7f0372fb.js';
4
+ import { F as FImage } from './f-image-5434b351.js';
5
+ import { k as kupManagerInstance, g as getProps, s as setProps, l as KupLanguageGeneric, M as KupPointerEventTypes } from './kup-manager-e33d8d8c.js';
6
6
  import { c as componentWrapperId } from './GenericVariables-d8d0541e.js';
7
7
  import './kup-dates-15f89ea2.js';
8
8
 
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, f as forceUpdate, h, H as Host, d as getElement } from './index-59f83f91.js';
2
- import { k as kupManagerInstance, g as getProps, s as setProps, d as KupDebugCategory } from './kup-manager-7f0372fb.js';
2
+ import { k as kupManagerInstance, g as getProps, s as setProps, d as KupDebugCategory } from './kup-manager-e33d8d8c.js';
3
3
  import { c as componentWrapperId } from './GenericVariables-d8d0541e.js';
4
4
  import './kup-dates-15f89ea2.js';
5
5
 
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, d as getElement } from './index-59f83f91.js';
2
- import { k as kupManagerInstance, g as getProps, s as setProps, d as KupDebugCategory } from './kup-manager-7f0372fb.js';
2
+ import { k as kupManagerInstance, g as getProps, s as setProps, d as KupDebugCategory } from './kup-manager-e33d8d8c.js';
3
3
  import './kup-dates-15f89ea2.js';
4
4
 
5
5
  /**
@@ -1,15 +1,15 @@
1
1
  import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, d as getElement } from './index-59f83f91.js';
2
- import { k as kupManagerInstance, g as getProps, s as setProps, l as KupLanguageGeneric, e as FCellPadding } from './kup-manager-7f0372fb.js';
2
+ import { k as kupManagerInstance, g as getProps, s as setProps, l as KupLanguageGeneric, e as FCellPadding } from './kup-manager-e33d8d8c.js';
3
3
  import { c as componentWrapperId } from './GenericVariables-d8d0541e.js';
4
- import { F as FImage } from './f-image-d666df65.js';
5
- import { F as FButton } from './f-button-4d7a0b09.js';
4
+ import { F as FImage } from './f-image-5434b351.js';
5
+ import { F as FButton } from './f-button-ccde4447.js';
6
6
  import { F as FButtonStyling } from './f-button-declarations-9bdc6f26.js';
7
- import { F as FCell } from './f-cell-0bf956b8.js';
7
+ import { F as FCell } from './f-cell-2ad41d52.js';
8
8
  import { M as MDCRipple } from './component-879e99bf.js';
9
9
  import './kup-dates-15f89ea2.js';
10
10
  import './f-checkbox-43481de2.js';
11
- import './f-text-field-00a4d490.js';
12
- import './f-chip-91249dc2.js';
11
+ import './f-text-field-f0b81f8b.js';
12
+ import './f-chip-3df1c255.js';
13
13
 
14
14
  /**
15
15
  * Props of the kup-image-list component.
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, d as getElement } from './index-59f83f91.js';
2
- import { k as kupManagerInstance, g as getProps, s as setProps } from './kup-manager-7f0372fb.js';
2
+ import { k as kupManagerInstance, g as getProps, s as setProps } from './kup-manager-e33d8d8c.js';
3
3
  import { c as componentWrapperId } from './GenericVariables-d8d0541e.js';
4
4
  import './kup-dates-15f89ea2.js';
5
5
 
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, f as forceUpdate, h, H as Host, d as getElement } from './index-59f83f91.js';
2
- import { k as kupManagerInstance, g as getProps, s as setProps, l as KupLanguageGeneric, d as KupDebugCategory, ai as kupDropEvent, N as kupDraggableColumnAttr, aj as kupDraggableRowAttr, U as KupDropEventTypes, c as KupThemeColorValues } from './kup-manager-7f0372fb.js';
2
+ import { k as kupManagerInstance, g as getProps, s as setProps, l as KupLanguageGeneric, d as KupDebugCategory, ai as kupDropEvent, N as kupDraggableColumnAttr, aj as kupDraggableRowAttr, U as KupDropEventTypes, c as KupThemeColorValues } from './kup-manager-e33d8d8c.js';
3
3
  import { F as FButtonStyling } from './f-button-declarations-9bdc6f26.js';
4
- import { F as FImage } from './f-image-d666df65.js';
4
+ import { F as FImage } from './f-image-5434b351.js';
5
5
  import { c as componentWrapperId } from './GenericVariables-d8d0541e.js';
6
6
  import './kup-dates-15f89ea2.js';
7
7
 
@@ -17585,6 +17585,8 @@ class KupManager {
17585
17585
  */
17586
17586
  constructor(overrides) {
17587
17587
  let datesLocale = null, debugActive = null, debugAutoprint = null, debugLogLimit = null, dialogRestrictContainer = null, dialogZIndex = null, languageList = null, languageName = null, objectsList = null, scrollOnHoverDelay = null, scrollOnHoverStep = null, themeList = null, themeName = null, tooltipDelay = null, tooltipFCellCallbacks = null;
17588
+ /** POI VIA */
17589
+ this.openAIInterface = { url: 'https://kokosstaging.smeup.com' };
17588
17590
  if (overrides) {
17589
17591
  const assetsPath = overrides.assetsPath;
17590
17592
  const dates = overrides.dates;
@@ -17595,6 +17597,7 @@ class KupManager {
17595
17597
  const scrollOnHover = overrides.scrollOnHover;
17596
17598
  const theme = overrides.theme;
17597
17599
  const tooltip = overrides.tooltip;
17600
+ const openAIUrl = overrides.openAIUrl;
17598
17601
  if (assetsPath) {
17599
17602
  setAssetPath(assetsPath);
17600
17603
  }
@@ -17637,6 +17640,9 @@ class KupManager {
17637
17640
  ? tooltip.fCellCallbacks
17638
17641
  : null;
17639
17642
  }
17643
+ if (openAIUrl) {
17644
+ this.openAIInterface = { url: openAIUrl };
17645
+ }
17640
17646
  }
17641
17647
  this.data = new KupData();
17642
17648
  this.dates = new KupDates(datesLocale);
@@ -17645,6 +17651,7 @@ class KupManager {
17645
17651
  this.interact = new KupInteract(dialogZIndex, dialogRestrictContainer);
17646
17652
  this.language = new KupLanguage(languageList, languageName);
17647
17653
  this.magicBox = null;
17654
+ this.openAI = null;
17648
17655
  this.math = new KupMath();
17649
17656
  this.overrides = overrides ? overrides : null;
17650
17657
  this.objects = new KupObjects(objectsList);
@@ -17757,6 +17764,123 @@ class KupManager {
17757
17764
  this.hideMagicBox();
17758
17765
  }
17759
17766
  }
17767
+ /**
17768
+ * Creates OpenAI component interface.
17769
+ */
17770
+ async showOpenAI(data) {
17771
+ if (!this.openAIInterface || !this.openAIInterface.url) {
17772
+ return;
17773
+ }
17774
+ if (this.openAI) {
17775
+ return;
17776
+ }
17777
+ const response = await fetch(this.openAIInterface.url + '/api/init', {
17778
+ method: 'POST',
17779
+ headers: {
17780
+ 'Content-Type': 'application/json',
17781
+ },
17782
+ body: JSON.stringify({ data: data }),
17783
+ });
17784
+ console.log('kup-manager.showOpenAI() response', response);
17785
+ if (response) {
17786
+ if (response.status != 200) {
17787
+ this.debug.logMessage(this, await response.text(), KupDebugCategory.ERROR);
17788
+ return;
17789
+ }
17790
+ const responseJson = await response.json();
17791
+ this.openAIInterface.sessionInfo = {
17792
+ fileId: responseJson.fileId,
17793
+ threadId: responseJson.threadId,
17794
+ };
17795
+ }
17796
+ this.openAI = document.createElement('kup-openai-interface');
17797
+ this.openAI.id = 'kup-openai-interface';
17798
+ this.openAI.style.position = 'fixed';
17799
+ this.openAI.style.left = 'calc(50% - 250px)';
17800
+ this.openAI.style.top = 'calc(50% - 85px)';
17801
+ this.openAI.data = data;
17802
+ document.body.appendChild(this.openAI);
17803
+ }
17804
+ /**
17805
+ * Removes OpenAI component interface.
17806
+ */
17807
+ async hideOpenAI() {
17808
+ if (!this.openAI) {
17809
+ return;
17810
+ }
17811
+ this.openAI.remove();
17812
+ this.openAI = null;
17813
+ if (!this.openAIInterface || !this.openAIInterface.url) {
17814
+ return;
17815
+ }
17816
+ if (!this.openAIInterface.sessionInfo) {
17817
+ return;
17818
+ }
17819
+ const response = await fetch(this.openAIInterface.url + '/api/finalize', {
17820
+ method: 'POST',
17821
+ headers: {
17822
+ 'Content-Type': 'application/json',
17823
+ },
17824
+ body: JSON.stringify({
17825
+ fileId: this.openAIInterface.sessionInfo.fileId,
17826
+ threadId: this.openAIInterface.sessionInfo.threadId,
17827
+ }),
17828
+ });
17829
+ console.log('kup-manager.hideOpenAI() response', response);
17830
+ if (response) {
17831
+ if (response.status != 200) {
17832
+ this.debug.logMessage(this, await response.text(), KupDebugCategory.ERROR);
17833
+ return;
17834
+ }
17835
+ this.openAIInterface.sessionInfo = null;
17836
+ }
17837
+ }
17838
+ /**
17839
+ * Creates or removes OpenAI component interface depending on its existence.
17840
+ */
17841
+ toggleOpenAI(data) {
17842
+ if (!this.openAI) {
17843
+ this.showOpenAI(data);
17844
+ }
17845
+ else {
17846
+ this.hideOpenAI();
17847
+ }
17848
+ }
17849
+ async interactOpenAI(question) {
17850
+ if (!this.openAI) {
17851
+ return;
17852
+ }
17853
+ if (!this.openAIInterface || !this.openAIInterface.url) {
17854
+ return;
17855
+ }
17856
+ if (!this.openAIInterface.sessionInfo) {
17857
+ return;
17858
+ }
17859
+ const responseArray = [];
17860
+ const response = await fetch(this.openAIInterface.url + '/api/chat', {
17861
+ method: 'POST',
17862
+ headers: {
17863
+ 'Content-Type': 'application/json',
17864
+ },
17865
+ body: JSON.stringify({
17866
+ fileId: this.openAIInterface.sessionInfo.fileId,
17867
+ threadId: this.openAIInterface.sessionInfo.threadId,
17868
+ question: question,
17869
+ }),
17870
+ });
17871
+ console.log('kup-manager.interactOpenAI() response', response);
17872
+ if (response) {
17873
+ if (response.status != 200) {
17874
+ this.debug.logMessage(this, await response.text(), KupDebugCategory.ERROR);
17875
+ return;
17876
+ }
17877
+ const responseJson = await response.json();
17878
+ if (responseJson && responseJson.messages) {
17879
+ responseArray.push(...responseJson.messages);
17880
+ }
17881
+ }
17882
+ return responseArray;
17883
+ }
17760
17884
  /**
17761
17885
  * Sets both locale and language library-wide.
17762
17886
  * @param {KupDatesLocales} locale - The supported locale.
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, d as getElement } from './index-59f83f91.js';
2
- import { k as kupManagerInstance, g as getProps, s as setProps } from './kup-manager-7f0372fb.js';
2
+ import { k as kupManagerInstance, g as getProps, s as setProps } from './kup-manager-e33d8d8c.js';
3
3
  import { c as componentWrapperId } from './GenericVariables-d8d0541e.js';
4
4
  import './kup-dates-15f89ea2.js';
5
5
 
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, d as getElement } from './index-59f83f91.js';
2
- import { k as kupManagerInstance, b as KupDynamicPositionPlacement, r as KupCardFamily } from './kup-manager-7f0372fb.js';
2
+ import { k as kupManagerInstance, b as KupDynamicPositionPlacement, r as KupCardFamily } from './kup-manager-e33d8d8c.js';
3
3
  import { c as componentWrapperId } from './GenericVariables-d8d0541e.js';
4
- import { F as FTextField } from './f-text-field-00a4d490.js';
4
+ import { F as FTextField } from './f-text-field-f0b81f8b.js';
5
5
  import { F as FTextFieldMDC } from './f-text-field-mdc-c88bf688.js';
6
6
  import './kup-dates-15f89ea2.js';
7
7
  import './component-879e99bf.js';
@@ -0,0 +1,142 @@
1
+ import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, d as getElement } from './index-59f83f91.js';
2
+ import { k as kupManagerInstance, g as getProps, s as setProps } from './kup-manager-e33d8d8c.js';
3
+ import { c as componentWrapperId } from './GenericVariables-d8d0541e.js';
4
+ import { F as FImage } from './f-image-5434b351.js';
5
+ import './kup-dates-15f89ea2.js';
6
+
7
+ /**
8
+ * Props of the kup-openai-interface component.
9
+ * Used to export every prop in an object.
10
+ */
11
+ var KupOpenAiInterfaceProps;
12
+ (function (KupOpenAiInterfaceProps) {
13
+ KupOpenAiInterfaceProps["customStyle"] = "Custom style of the component.";
14
+ KupOpenAiInterfaceProps["data"] = "Sets the data that will be used for OpenAI comunication.";
15
+ KupOpenAiInterfaceProps["dialogTitle"] = "Sets the dialog title";
16
+ KupOpenAiInterfaceProps["label"] = "Sets the text area label";
17
+ })(KupOpenAiInterfaceProps || (KupOpenAiInterfaceProps = {}));
18
+
19
+ const kupOpenaiInterfaceCss = ":host{--kup_dialog_header_height:var(--kup-dialog-header-height, 2em);background-color:var(--kup-background-color);color:var(--kup-text-color);display:block;height:auto;min-width:500px;width:500px}.header{background-color:var(--kup-title-background-color);color:var(--kup-title-color);display:flex;flex-direction:row;height:var(--kup_dialog_header_height);position:relative;width:100%}.header__title{font-weight:bold;line-height:2em;padding-left:0.5em;padding-right:2em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.header__close.f-image{--kup-icon-color:var(--kup-title-color);cursor:pointer;margin-right:0;transition:opacity 0.25s;position:absolute;right:0;background:var(--kup-title-background-color);height:var(--kup_image_height);width:var(--kup_image_width)}.header__close.f-image:hover{opacity:0.5}.header__close.f-image .f-image__icon{height:var(--kup_image_height);width:var(--kup_image_width)}kup-text-field{padding-top:12px;padding-right:3px;padding-left:3px}kup-button{padding-top:8px;padding-left:3px;padding-bottom:2px}kup-data-table{padding-top:8px;padding-left:3px;padding-bottom:2px}";
20
+
21
+ var __classPrivateFieldGet = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
22
+ if (kind === "a" && !f)
23
+ throw new TypeError("Private accessor was defined without a getter");
24
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
25
+ throw new TypeError("Cannot read private member from an object whose class did not declare it");
26
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
27
+ };
28
+ var _KupOpenAiInterface_instances, _KupOpenAiInterface_openAiInteract, _KupOpenAiInterface_dataTableData;
29
+ const KupOpenAiInterface = class {
30
+ constructor(hostRef) {
31
+ registerInstance(this, hostRef);
32
+ this.kupReady = createEvent(this, "kup-openai-interface-ready", 6);
33
+ _KupOpenAiInterface_instances.add(this);
34
+ /*-------------------------------------------------*/
35
+ /* I n t e r n a l V a r i a b l e s */
36
+ /*-------------------------------------------------*/
37
+ this.dragHandler = null;
38
+ this.kupManager = kupManagerInstance();
39
+ this.textArea = null;
40
+ this.dataTable = null;
41
+ this.button = null;
42
+ this.messages = [];
43
+ this.customStyle = '';
44
+ this.data = null;
45
+ this.dialogTitle = 'Open AI integration';
46
+ this.label = 'Insert natural language request...';
47
+ }
48
+ /*-------------------------------------------------*/
49
+ /* P u b l i c M e t h o d s */
50
+ /*-------------------------------------------------*/
51
+ /**
52
+ * Used to retrieve component's props values.
53
+ * @param {boolean} descriptions - When provided and true, the result will be the list of props with their description.
54
+ * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
55
+ */
56
+ async getProps(descriptions) {
57
+ return getProps(this, KupOpenAiInterfaceProps, descriptions);
58
+ }
59
+ /**
60
+ * This method is used to trigger a new render of the component.
61
+ */
62
+ async refresh() {
63
+ forceUpdate(this);
64
+ }
65
+ /**
66
+ * Sets the props to the component.
67
+ * @param {GenericObject} props - Object containing props that will be set to the component.
68
+ */
69
+ async setProps(props) {
70
+ setProps(this, KupOpenAiInterfaceProps, props);
71
+ }
72
+ /*-------------------------------------------------*/
73
+ /* L i f e c y c l e H o o k s */
74
+ /*-------------------------------------------------*/
75
+ componentWillLoad() {
76
+ this.kupManager.debug.logLoad(this, false);
77
+ this.kupManager.language.register(this);
78
+ this.kupManager.theme.register(this);
79
+ }
80
+ componentDidLoad() {
81
+ this.dragHandler =
82
+ this.rootElement.shadowRoot.querySelector('#drag-handle');
83
+ this.kupManager.interact.dialogify(this.rootElement, this.dragHandler);
84
+ this.kupReady.emit({
85
+ comp: this,
86
+ id: this.rootElement.id,
87
+ });
88
+ this.kupManager.debug.logLoad(this, true);
89
+ }
90
+ componentWillRender() {
91
+ this.kupManager.debug.logRender(this, false);
92
+ }
93
+ componentDidRender() {
94
+ this.kupManager.debug.logRender(this, true);
95
+ }
96
+ render() {
97
+ const dataTableProps = {};
98
+ dataTableProps.data = __classPrivateFieldGet(this, _KupOpenAiInterface_instances, "m", _KupOpenAiInterface_dataTableData).call(this);
99
+ const textAreaProps = {};
100
+ textAreaProps.textArea = true;
101
+ textAreaProps.label = this.label;
102
+ const buttonProps = {};
103
+ buttonProps.label = 'Confirm';
104
+ buttonProps.icon = 'check';
105
+ buttonProps.showSpinner = false;
106
+ return (h(Host, null, h("style", null, this.kupManager.theme.setKupStyle(this.rootElement)), h("div", { id: componentWrapperId }, h("div", { class: "openai-interface-wrapper" }, h("div", { class: "actions", id: "drag-handle" }, h("div", { class: "header" }, this.dialogTitle ? (h("div", { class: "header__title" }, this.dialogTitle)) : null, h(FImage, { onClick: () => this.kupManager.hideOpenAI(), sizeX: "1.25em", sizeY: "1.25em", resource: "clear", wrapperClass: "header__close" })), h("kup-text-field", Object.assign({}, textAreaProps, { ref: (el) => (this.textArea = el) })), h("kup-button", Object.assign({}, buttonProps, { ref: (el) => (this.button = el), "onKup-button-click": () => __classPrivateFieldGet(this, _KupOpenAiInterface_instances, "m", _KupOpenAiInterface_openAiInteract).call(this) })), h("kup-data-table", Object.assign({}, dataTableProps, { ref: (el) => (this.dataTable = el) })))))));
107
+ }
108
+ disconnectedCallback() {
109
+ this.kupManager.language.unregister(this);
110
+ this.kupManager.theme.unregister(this);
111
+ }
112
+ get rootElement() { return getElement(this); }
113
+ };
114
+ _KupOpenAiInterface_instances = new WeakSet(), _KupOpenAiInterface_openAiInteract =
115
+ /*-------------------------------------------------*/
116
+ /* P r i v a t e M e t h o d s */
117
+ /*-------------------------------------------------*/
118
+ async function _KupOpenAiInterface_openAiInteract() {
119
+ this.button.showSpinner = true;
120
+ this.messages = await this.kupManager.interactOpenAI(await this.textArea.getValue());
121
+ this.dataTable.data = __classPrivateFieldGet(this, _KupOpenAiInterface_instances, "m", _KupOpenAiInterface_dataTableData).call(this);
122
+ this.button.showSpinner = false;
123
+ }, _KupOpenAiInterface_dataTableData = function _KupOpenAiInterface_dataTableData() {
124
+ const data = {};
125
+ data.columns = [{ name: 'mess', title: 'Message' }];
126
+ data.rows = [];
127
+ if (this.messages) {
128
+ for (let i = 0; i < this.messages.length; i++) {
129
+ const mess = this.messages[i];
130
+ if (mess) {
131
+ data.rows.push({
132
+ unselectable: true,
133
+ cells: { mess: { value: mess } },
134
+ });
135
+ }
136
+ }
137
+ }
138
+ return data;
139
+ };
140
+ KupOpenAiInterface.style = kupOpenaiInterfaceCss;
141
+
142
+ export { KupOpenAiInterface as kup_openai_interface };
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, d as getElement } from './index-59f83f91.js';
2
- import { k as kupManagerInstance, g as getProps, s as setProps } from './kup-manager-7f0372fb.js';
2
+ import { k as kupManagerInstance, g as getProps, s as setProps } from './kup-manager-e33d8d8c.js';
3
3
  import { c as componentWrapperId } from './GenericVariables-d8d0541e.js';
4
4
  import './kup-dates-15f89ea2.js';
5
5
 
@@ -1,9 +1,9 @@
1
1
  import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, d as getElement, g as getAssetPath } from './index-59f83f91.js';
2
- import { k as kupManagerInstance, ac as getCellValueForDisplay, g as getProps, s as setProps, a as KupThemeIconValues, D as KupLanguageSearch } from './kup-manager-7f0372fb.js';
2
+ import { k as kupManagerInstance, ac as getCellValueForDisplay, g as getProps, s as setProps, a as KupThemeIconValues, D as KupLanguageSearch } from './kup-manager-e33d8d8c.js';
3
3
  import { d as defaultStylingOptions, K as KupPlannerGanttRowType, a as KupPlannerTaskAction, b as KupPlannerLastOnChangeReceived, c as KupPlannerProps } from './kup-planner-declarations-b9345758.js';
4
4
  import { c as componentWrapperId } from './GenericVariables-d8d0541e.js';
5
5
  import { K as KupDatesFormats } from './kup-dates-15f89ea2.js';
6
- import { F as FTextField } from './f-text-field-00a4d490.js';
6
+ import { F as FTextField } from './f-text-field-f0b81f8b.js';
7
7
  import { F as FTextFieldMDC } from './f-text-field-mdc-c88bf688.js';
8
8
  import './component-879e99bf.js';
9
9
 
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, f as forceUpdate, h, H as Host, d as getElement } from './index-59f83f91.js';
2
- import { k as kupManagerInstance } from './kup-manager-7f0372fb.js';
2
+ import { k as kupManagerInstance } from './kup-manager-e33d8d8c.js';
3
3
  import { c as componentWrapperId } from './GenericVariables-d8d0541e.js';
4
4
  import './kup-dates-15f89ea2.js';
5
5