@sme.up/ketchup 9.6.0 → 9.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (158) hide show
  1. package/dist/cjs/{f-button-623dfcc3.js → f-button-4c346ca8.js} +1 -1
  2. package/dist/cjs/{f-cell-9c718d83.js → f-cell-8f3d12fd.js} +5 -5
  3. package/dist/cjs/{f-chip-c8efad5b.js → f-chip-a6c800be.js} +2 -2
  4. package/dist/cjs/{f-image-b61cc967.js → f-image-40476fa6.js} +1 -1
  5. package/dist/cjs/{f-paginator-utils-67dbc14c.js → f-paginator-utils-c652ceaa.js} +6 -6
  6. package/dist/cjs/{f-text-field-a09b1705.js → f-text-field-1f77ef23.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 +91 -66
  11. package/dist/cjs/kup-box.cjs.entry.js +76 -14
  12. package/dist/cjs/kup-calendar.cjs.entry.js +8 -6
  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-editor.cjs.entry.js +1 -1
  19. package/dist/cjs/kup-family-tree.cjs.entry.js +3 -3
  20. package/dist/cjs/kup-grid.cjs.entry.js +1 -1
  21. package/dist/cjs/kup-iframe.cjs.entry.js +1 -1
  22. package/dist/cjs/kup-image-list.cjs.entry.js +6 -6
  23. package/dist/cjs/kup-lazy.cjs.entry.js +1 -1
  24. package/dist/cjs/kup-magic-box.cjs.entry.js +2 -2
  25. package/dist/cjs/{kup-manager-227c4be2.js → kup-manager-08f1585b.js} +54 -41
  26. package/dist/cjs/kup-nav-bar.cjs.entry.js +1 -1
  27. package/dist/cjs/kup-numeric-picker.cjs.entry.js +2 -2
  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/assets/index.js +4 -0
  35. package/dist/collection/assets/planner-example-4.js +4 -4
  36. package/dist/collection/assets/planner-example-5.js +3175 -0
  37. package/dist/collection/components/kup-box/kup-box-declarations.js +11 -0
  38. package/dist/collection/components/kup-box/kup-box-state.js +2 -0
  39. package/dist/collection/components/kup-box/kup-box.js +169 -9
  40. package/dist/collection/components/kup-calendar/kup-calendar.js +4 -2
  41. package/dist/collection/components/kup-card/built-in/kup-card-openai.js +29 -1
  42. package/dist/collection/components/kup-card/kup-card.css +7 -0
  43. package/dist/collection/components/kup-data-table/kup-data-table.js +14 -17
  44. package/dist/collection/managers/kup-openai/kup-openai.js +53 -40
  45. package/dist/components/kup-autocomplete2.js +99 -74
  46. package/dist/components/kup-box2.js +74 -8
  47. package/dist/components/kup-button-list.js +1 -1
  48. package/dist/components/kup-button.js +1 -1
  49. package/dist/components/kup-calendar.js +5 -3
  50. package/dist/components/kup-card.js +1 -1
  51. package/dist/components/kup-chart.js +1 -1
  52. package/dist/components/kup-checkbox.js +1 -1
  53. package/dist/components/kup-chip.js +1 -1
  54. package/dist/components/kup-color-picker.js +1 -1
  55. package/dist/components/kup-combobox.js +1 -1
  56. package/dist/components/kup-dashboard.js +1 -1
  57. package/dist/components/kup-data-table.js +1 -1
  58. package/dist/components/kup-date-picker.js +1 -1
  59. package/dist/components/kup-dialog.js +1 -1
  60. package/dist/components/kup-dropdown-button.js +1 -1
  61. package/dist/components/kup-family-tree.js +1 -1
  62. package/dist/components/kup-form.js +1 -1
  63. package/dist/components/kup-gauge.js +1 -1
  64. package/dist/components/kup-image-list.js +1 -1
  65. package/dist/components/kup-image.js +1 -1
  66. package/dist/components/kup-list.js +1 -1
  67. package/dist/components/kup-magic-box.js +1 -1
  68. package/dist/components/kup-manager.js +54 -41
  69. package/dist/components/kup-numeric-picker.js +1 -1
  70. package/dist/components/kup-planner.js +1 -1
  71. package/dist/components/kup-progress-bar.js +1 -1
  72. package/dist/components/kup-radio.js +1 -1
  73. package/dist/components/kup-rating.js +1 -1
  74. package/dist/components/kup-snackbar.js +1 -1
  75. package/dist/components/kup-spinner.js +1 -1
  76. package/dist/components/kup-switch.js +1 -1
  77. package/dist/components/kup-tab-bar.js +1 -1
  78. package/dist/components/kup-text-field.js +1 -1
  79. package/dist/components/kup-time-picker.js +1 -1
  80. package/dist/components/kup-tree.js +1 -1
  81. package/dist/esm/{f-button-121958b3.js → f-button-90a7ea86.js} +1 -1
  82. package/dist/esm/{f-cell-959b83db.js → f-cell-fdd338c5.js} +5 -5
  83. package/dist/esm/{f-chip-915ddf53.js → f-chip-4e6341a6.js} +2 -2
  84. package/dist/esm/{f-image-98371dac.js → f-image-5210f0b3.js} +1 -1
  85. package/dist/esm/{f-paginator-utils-f5f4c666.js → f-paginator-utils-3f179999.js} +3 -3
  86. package/dist/esm/{f-text-field-0df308e4.js → f-text-field-8429a853.js} +1 -1
  87. package/dist/esm/index.js +1 -1
  88. package/dist/esm/ketchup.js +1 -1
  89. package/dist/esm/kup-accordion.entry.js +2 -2
  90. package/dist/esm/kup-autocomplete_27.entry.js +91 -66
  91. package/dist/esm/kup-box.entry.js +76 -14
  92. package/dist/esm/kup-calendar.entry.js +8 -6
  93. package/dist/esm/kup-card-list.entry.js +1 -1
  94. package/dist/esm/kup-cell.entry.js +6 -6
  95. package/dist/esm/kup-dashboard.entry.js +4 -4
  96. package/dist/esm/kup-drawer.entry.js +1 -1
  97. package/dist/esm/kup-echart.entry.js +1 -1
  98. package/dist/esm/kup-editor.entry.js +1 -1
  99. package/dist/esm/kup-family-tree.entry.js +3 -3
  100. package/dist/esm/kup-grid.entry.js +1 -1
  101. package/dist/esm/kup-iframe.entry.js +1 -1
  102. package/dist/esm/kup-image-list.entry.js +6 -6
  103. package/dist/esm/kup-lazy.entry.js +1 -1
  104. package/dist/esm/kup-magic-box.entry.js +2 -2
  105. package/dist/esm/{kup-manager-33b051d6.js → kup-manager-8b39f876.js} +54 -41
  106. package/dist/esm/kup-nav-bar.entry.js +1 -1
  107. package/dist/esm/kup-numeric-picker.entry.js +2 -2
  108. package/dist/esm/kup-photo-frame.entry.js +1 -1
  109. package/dist/esm/kup-planner.entry.js +2 -2
  110. package/dist/esm/kup-probe.entry.js +1 -1
  111. package/dist/esm/kup-qlik.entry.js +1 -1
  112. package/dist/esm/kup-snackbar.entry.js +3 -3
  113. package/dist/esm/loader.js +1 -1
  114. package/dist/ketchup/index.esm.js +1 -1
  115. package/dist/ketchup/ketchup.esm.js +1 -1
  116. package/dist/ketchup/p-02820c2b.entry.js +1 -0
  117. package/dist/ketchup/{p-9d8d5070.entry.js → p-09d853c3.entry.js} +1 -1
  118. package/dist/ketchup/{p-81996620.entry.js → p-14e1a36b.entry.js} +1 -1
  119. package/dist/ketchup/{p-0a4595bd.entry.js → p-1936c6cd.entry.js} +1 -1
  120. package/dist/ketchup/{p-eb37ea7e.entry.js → p-318c9ecd.entry.js} +1 -1
  121. package/dist/ketchup/{p-e43d4ccc.js → p-35d503e2.js} +1 -1
  122. package/dist/ketchup/p-35dce86e.entry.js +1 -0
  123. package/dist/ketchup/{p-3ce8ce77.entry.js → p-4c20fefd.entry.js} +1 -1
  124. package/dist/ketchup/{p-9f31a129.entry.js → p-4eb70dd2.entry.js} +1 -1
  125. package/dist/ketchup/{p-3ff9a661.entry.js → p-5739cdc2.entry.js} +1 -1
  126. package/dist/ketchup/{p-41d6466e.entry.js → p-5ab3a88a.entry.js} +1 -1
  127. package/dist/ketchup/{p-7bda0684.js → p-5e16c9d3.js} +1 -1
  128. package/dist/ketchup/{p-a9b06bb8.js → p-6780a391.js} +1 -1
  129. package/dist/ketchup/{p-c1ade766.entry.js → p-67930d7c.entry.js} +1 -1
  130. package/dist/ketchup/{p-0dd0ae49.entry.js → p-6953f769.entry.js} +1 -1
  131. package/dist/ketchup/{p-babbffa4.entry.js → p-7d2fd8bd.entry.js} +1 -1
  132. package/dist/ketchup/{p-773bcc69.entry.js → p-8257141a.entry.js} +1 -1
  133. package/dist/ketchup/{p-9e63f56b.entry.js → p-82694fad.entry.js} +1 -1
  134. package/dist/ketchup/{p-ccc637ee.js → p-86f9b0d9.js} +1 -1
  135. package/dist/ketchup/{p-d5254caf.entry.js → p-8ea68d14.entry.js} +1 -1
  136. package/dist/ketchup/{p-4bf5e04f.entry.js → p-98c72335.entry.js} +1 -1
  137. package/dist/ketchup/{p-d15d1083.entry.js → p-ab8cac45.entry.js} +1 -1
  138. package/dist/ketchup/p-c089b961.js +1 -0
  139. package/dist/ketchup/{p-f0b882f4.entry.js → p-cdb24584.entry.js} +1 -1
  140. package/dist/ketchup/{p-ea625b2a.entry.js → p-d466d6d1.entry.js} +1 -1
  141. package/dist/ketchup/{p-b086727d.entry.js → p-ee30e274.entry.js} +1 -1
  142. package/dist/ketchup/{p-610a03d4.js → p-f31530fc.js} +2 -2
  143. package/dist/ketchup/{p-2f4055ba.entry.js → p-f353805e.entry.js} +1 -1
  144. package/dist/ketchup/p-f515308d.entry.js +9 -0
  145. package/dist/ketchup/{p-68e9379a.js → p-f9766625.js} +1 -1
  146. package/dist/types/components/kup-box/kup-box-declarations.d.ts +12 -0
  147. package/dist/types/components/kup-box/kup-box-state.d.ts +2 -0
  148. package/dist/types/components/kup-box/kup-box.d.ts +26 -1
  149. package/dist/types/components/kup-calendar/kup-calendar-declarations.d.ts +1 -0
  150. package/dist/types/components/kup-card/kup-card-declarations.d.ts +1 -0
  151. package/dist/types/components.d.ts +48 -6
  152. package/dist/types/managers/kup-openai/kup-openai-declarations.d.ts +7 -0
  153. package/dist/types/managers/kup-openai/kup-openai.d.ts +8 -12
  154. package/package.json +1 -1
  155. package/dist/ketchup/p-102866cd.js +0 -1
  156. package/dist/ketchup/p-6001882e.entry.js +0 -9
  157. package/dist/ketchup/p-662d2f9b.entry.js +0 -1
  158. package/dist/ketchup/p-d1268ac7.entry.js +0 -1
@@ -4471,7 +4471,7 @@ const kupThemeComponentCss$1 = kupThemeComponentCss;
4471
4471
  const fButtonCss = ".f-button{--kup_button_border_radius:var(--kup-button-border-radius, 4px);--kup_button_disabled_color:var( --kup-button-disabled-color, var(--kup-disabled-color) );--kup_button_font_family:var( --kup-button-font-family, var(--kup-font-family) );--kup_button_font_size:var(--kup-button-font-size, var(--kup-font-size));--kup_button_font_weight:var(--kup-button-font-weight, 400);--kup_button_height:var(--kup-button-height, 3em);--kup_button_padding:var(--kup-button-padding, 0 1.25em);--kup_button_primary_color:var( --kup-button-primary-color, var(--kup-primary-color) );--kup_button_primary_color_h:var( --kup-button-primary-color-h, var(--kup-primary-color-h) );--kup_button_primary_color_s:var( --kup-button-primary-color-s, var(--kup-primary-color-s) );--kup_button_primary_color_l:var( --kup-button-primary-color-l, var(--kup-primary-color-l) );--kup_button_primary_color_rgb:var( --kup-button-primary-color-rgb, var(--kup-primary-color-rgb) );--kup_button_text_on_primary_color:var( --kup-button-text-on-primary-color, var(--kup-text-on-primary-color) );--kup_button_text_transform:var(--kup-button-text-transform, uppercase);--kup-spinner-color:var(--kup_button_primary_color);font-size:var(--kup_button_font_size)}.f-button .button{-moz-osx-font-smoothing:grayscale;-webkit-appearance:none;-webkit-font-smoothing:antialiased;align-items:center;background-color:rgba(0,0,0,0);border:none;border-radius:var(--kup_button_border_radius);box-sizing:border-box;color:var(--kup_button_primary_color);cursor:pointer;display:inline-flex;font-family:var(--kup_button_font_family);font-size:.775em;font-weight:var(--kup_button_font_weight);height:var(--kup_button_height);justify-content:center;letter-spacing:0.0892857143em;line-height:inherit;min-width:64px;outline:none;overflow:visible;padding:var(--kup_button_padding);position:relative;text-decoration:none;text-transform:var(--kup_button_text_transform);transition:background-color 80ms linear,box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);user-select:none;vertical-align:middle}.f-button .button:hover{background-color:rgba(var(--kup_button_primary_color_rgb), 0.125)}.f-button .button:focus{background-color:rgba(var(--kup_button_primary_color_rgb), 0.175)}.f-button .button .button__icon{margin-left:-0.25em;margin-right:.75em}.f-button .button .button__label+.button__icon{margin-left:.75em;margin-right:-0.25em}.f-button .button.button--floating,.f-button .button.button--raised{--kup-spinner-color:var(--kup_button_text_on_primary_color)}.f-button .button.button--floating:not(.button--disabled),.f-button .button.button--raised:not(.button--disabled){--kup-spinner-border-color:hsl( var(--kup_button_primary_color_h), calc(var(--kup_button_primary_color_s) * 0.75), calc(var(--kup_button_primary_color_l) * 0.85) );background-color:var(--kup_button_primary_color);color:var(--kup_button_text_on_primary_color)}.f-button .button.button--floating:hover,.f-button .button.button--raised:hover{background-color:hsl(var(--kup_button_primary_color_h), calc(var(--kup_button_primary_color_s) * 0.93), calc(var(--kup_button_primary_color_l) * 1.07))}.f-button .button.button--floating:focus,.f-button .button.button--raised:focus{background-color:hsl(var(--kup_button_primary_color_h), calc(var(--kup_button_primary_color_s) * 0.88), calc(var(--kup_button_primary_color_l) * 1.12))}.f-button .button.button--floating.button--disabled,.f-button .button.button--raised.button--disabled{background-color:var(--kup-disabled-background-color);box-shadow:none}.f-button .button.button--floating{border-radius:24px;box-shadow:0 .215em .35em -1px rgba(var(--kup-text-color-rgb), 0.2),0 .43em .71em 0 rgba(var(--kup-text-color-rgb), 0.14),0 .07em 1.285em 0 rgba(var(--kup-text-color-rgb), 0.12);font-weight:500;font-size:1em;height:3.4em;width:auto;padding:0 1.5em}.f-button .button.button--floating.button--no-label{border-radius:50%;height:4em;padding:0;width:4em}.f-button .button.button--floating:hover,.f-button .button.button--floating:focus{box-shadow:0 5px 5px -3px rgba(var(--kup-text-color-rgb), 0.2),0 8px 10px 1px rgba(var(--kup-text-color-rgb), 0.14),0 3px 14px 2px rgba(var(--kup-text-color-rgb), 0.12)}.f-button .button.button--floating:active{box-shadow:0 7px 8px -4px rgba(var(--kup-text-color-rgb), 0.2),0 12px 17px 2px rgba(var(--kup-text-color-rgb), 0.14),0 5px 22px 4px rgba(var(--kup-text-color-rgb), 0.12)}.f-button .button.button--raised{box-shadow:0 3px 1px -2px rgba(var(--kup-text-color-rgb), 0.2),0 2px 2px 0 rgba(var(--kup-text-color-rgb), 0.14),0 1px 5px 0 rgba(var(--kup-text-color-rgb), 0.12)}.f-button .button.button--raised:focus,.f-button .button.button--raised:hover{box-shadow:0 2px 4px -1px rgba(var(--kup-text-color-rgb), 0.2),0 4px 5px 0 rgba(var(--kup-text-color-rgb), 0.14),0 1px 10px 0 rgba(var(--kup-text-color-rgb), 0.12)}.f-button .button.button--raised:active{box-shadow:0 5px 5px -3px rgba(var(--kup-text-color-rgb), 0.2),0 8px 10px 1px rgba(var(--kup-text-color-rgb), 0.14),0 3px 14px 2px rgba(var(--kup-text-color-rgb), 0.12)}.f-button .button.button--outlined{border-width:1px;border-style:solid}.f-button .button.button--outlined:not(.button--disabled){border-color:var(--kup_button_primary_color);background-color:rgba(0,0,0,0);color:var(--kup_button_primary_color)}.f-button .button.button--outlined:hover{background-color:rgba(var(--kup_button_primary_color_rgb), 0.125)}.f-button .button.button--outlined:focus{background-color:rgba(var(--kup_button_primary_color_rgb), 0.175)}.f-button .button.button--outlined.button--disabled{opacity:.75;border-color:var(--kup_button_disabled_color)}.f-button .button.button--no-label{min-width:unset;padding:0 .5em}.f-button .button.button--no-label .button__icon{margin:0}.f-button .button.button--disabled{color:var(--kup_button_disabled_color);cursor:auto;opacity:.75;pointer-events:none}.f-button .button .button__spinner-container{width:100%;height:var(--kup_button_spinner_height);left:0;position:absolute}.f-button .icon-button{background-color:rgba(0,0,0,0);display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;font-size:var(--kup_button_font_size);text-decoration:none;cursor:pointer;user-select:none;padding:.75em;border-radius:50%}.f-button .icon-button:hover,.f-button .icon-button:focus{background-color:rgba(var(--kup_button_primary_color_rgb), 0.125)}.f-button .icon-button .icon-button__icon{display:flex;margin:auto}.f-button .icon-button .icon-button__icon.icon-button__icon--on{display:none}.f-button .icon-button.button--disabled{opacity:.75;pointer-events:none}.f-button .icon-button .icon-button__spinner-container{width:var(--kup_button_spinner_width);height:var(--kup_button_spinner_height)}.f-button .button--with-spinner{opacity:.8;pointer-events:none}.f-button .content--hidden{visibility:hidden}.f-button.kup-full-height{height:100%}.f-button.kup-full-height .button{height:100%}.f-button.kup-full-width{width:100%}.f-button.kup-full-width .button{width:100%}.f-button.kup-large button{font-size:1.25em}.f-button.kup-shaped .button{border-radius:18px}.f-button.kup-shaped .button.button--floating{border-radius:50% 0}.f-button.kup-slim button{font-size:.675em}.f-button.kup-pulsating .icon-button--on:after{content:\"\";animation:pulsating 1250ms infinite;position:absolute;height:2px;width:2px;top:calc(50% - 1px);left:calc(50% - 1px);border-radius:50%}.f-button.kup-danger{--kup-button-primary-color:var(--kup-danger-color);--kup-button-primary-color-h:var(--kup-danger-color-h);--kup-button-primary-color-s:var(--kup-danger-color-s);--kup-button-primary-color-l:var(--kup-danger-color-l);--kup-button-primary-color-rgb:var(--kup-danger-color-rgb);--kup-button-text-on-primary-color:white}.f-button.kup-info{--kup-button-primary-color:var(--kup-info-color);--kup-button-primary-color-h:var(--kup-info-color-h);--kup-button-primary-color-s:var(--kup-info-color-s);--kup-button-primary-color-l:var(--kup-info-color-l);--kup-button-primary-color-rgb:var(--kup-info-color-rgb);--kup-button-text-on-primary-color:white}.f-button.kup-secondary{--kup-button-primary-color:var(--kup-secondary-color);--kup-button-primary-color-h:var(--kup-secondary-color-h);--kup-button-primary-color-s:var(--kup-secondary-color-s);--kup-button-primary-color-l:var(--kup-secondary-color-l);--kup-button-primary-color-rgb:var(--kup-secondary-color-rgb);--kup-button-text-on-primary-color:var(--kup-text-on-secondary-color)}.f-button.kup-success{--kup-button-primary-color:var(--kup-success-color);--kup-button-primary-color-h:var(--kup-success-color-h);--kup-button-primary-color-s:var(--kup-success-color-s);--kup-button-primary-color-l:var(--kup-success-color-l);--kup-button-primary-color-rgb:var(--kup-success-color-rgb);--kup-button-text-on-primary-color:white}.f-button.kup-warning{--kup-button-primary-color:var(--kup-warning-color);--kup-button-primary-color-h:var(--kup-warning-color-h);--kup-button-primary-color-s:var(--kup-warning-color-s);--kup-button-primary-color-l:var(--kup-warning-color-l);--kup-button-primary-color-rgb:var(--kup-warning-color-rgb);--kup-button-text-on-primary-color:white}@keyframes pulsating{0%{transform:scale(2);box-shadow:0 0 0 0 rgba(var(--kup_button_primary_color_rgb), 0.7)}70%{transform:scale(2.75);box-shadow:0 0 0 10px rgba(var(--kup_button_primary_color_rgb), 0)}100%{transform:scale(2);box-shadow:0 0 0 0 rgba(var(--kup_button_primary_color_rgb), 0)}}";
4472
4472
  const fButtonCss$1 = fButtonCss;
4473
4473
 
4474
- const fCellCss = ".f-cell{--kup_cell_background:var(--kup-cell-background);--kup_cell_font_family:var(--kup-cell-font-family);--kup_cell_font_family_monospace:var( --kup-cell-font-family-monospace, var(--kup-font-family-monospace) );--kup_cell_font_size:var(--kup-cell-font-size);--kup_cell_text_color:var(--kup-cell-text-color);background:var(--kup_cell_background);box-sizing:border-box;color:var(--kup_cell_text_color);display:flex;font-family:var(--kup_cell_font_family);font-size:var(--kup_cell_font_size);min-height:100%;width:100%;word-break:break-all;word-wrap:break-word}.f-cell .f-cell__content{align-items:center;display:flex;width:100%}.f-cell .f-cell__content img,.f-cell .f-cell__content .f-image{margin:0}.f-cell .f-cell__content .cell-info{padding:0 .5em 0 .25em}.f-cell .f-cell__content .obj-icon{padding:0 .5em 0 0}.f-cell .f-cell__text{overflow:hidden;text-overflow:ellipsis;word-break:normal}.f-cell.bar-cell .f-image--wrapper{height:100%;margin:auto;min-height:18px;overflow:hidden;position:relative;transition:color .2s ease;width:100%}.f-cell.editor-cell .f-cell__content{margin:0;overflow:hidden}.f-cell.editor-cell .f-cell__content>*{max-width:100%;word-break:normal}.f-cell.icon-cell .f-cell__content{min-height:18px;min-width:18px}.f-cell.number-cell .f-cell__content{--kup-textfield-font-family:var(--kup_cell_font_family_monospace);font-family:var(--kup_cell_font_family_monospace)}.f-cell.switch-cell{min-height:48px}.f-cell .mdc-text-field.mdc-text-field--fullwidth{padding:0px}.f-cell .f-checkbox .checkbox .checkbox__native-control{height:18px;width:18px}.f-cell kup-checkbox,.f-cell kup-image{display:flex}.f-cell kup-button{display:inline-block}.f-cell kup-chip{width:100%}.f-cell kup-button-list{display:flex;margin:auto}.f-cell kup-progress-bar{display:block}.f-cell .input-field{background:none;border:none;border-bottom:1px solid var(--kup-border-color);height:var(--kup_textfield_fullwidth_height) !important;outline:none;padding:4px;transition:border 125ms ease;width:100%}.f-cell .input-field:focus{border-bottom:1px solid var(--kup-primary-color)}.f-cell .input-checkbox:checked{accent-color:var(--kup-primary-color)}.f-cell.clickable{cursor:pointer}.f-cell.monospace{--kup-textfield-font-family:var(--kup_cell_font_family_monospace);font-family:var(--kup-font-family-monospace)}.f-cell.display-on-hover{opacity:0;transition:opacity .25s}.f-cell.display-on-hover:hover{opacity:1}.f-cell.expand-on-hover .f-cell__content{transition:transform 125ms}.f-cell.expand-on-hover:hover .f-cell__content{transform:scale(1.25)}.f-cell.obj{cursor:var(--kup-obj-cursor)}.f-cell.reduce-on-hover .f-cell__content{transition:transform 125ms}.f-cell.reduce-on-hover:hover .f-cell__content{transform:scale(0.75)}.f-cell.shaped{border-radius:4px}.f-cell.strong-text{--kup-textfield-font-weight:600;font-weight:600}.f-cell.underlined{text-decoration:underline}.f-cell.primary-text{--kup-textfield-color:var(--kup-primary-color) !important;color:var(--kup-primary-color) !important}.f-cell.secondary-text{--kup-textfield-color:var(--kup-secondary-color) !important;color:var(--kup-secondary-color) !important}.f-cell.success-text{--kup-textfield-color:var(--kup-success-color) !important;color:var(--kup-success-color) !important}.f-cell.warning-text{--kup-textfield-color:var(--kup-warning-color) !important;color:var(--kup-warning-color) !important}.f-cell.danger-text{--kup-textfield-color:var(--kup-danger-color) !important;color:var(--kup-danger-color) !important}.f-cell.purple-text{--kup-textfield-color:#8e15bf !important;color:#8e15bf !important}.f-cell.success-bg{background:var(--kup-success-color) !important;color:#fff !important}.f-cell.warning-bg{background:var(--kup-warning-color) !important}.f-cell.danger-bg{background:var(--kup-danger-color) !important;color:#fff !important}.f-cell.teal-bg{background:#00b4bc !important;color:#fff !important}.f-cell.orange-bg{background:#f59729 !important;color:#fff !important}.f-cell.green-bg{background:#00be67 !important;color:#fff !important}.f-cell.grey-bg{background:#8d8d8d !important;color:#fff !important}.f-cell.purple-bg{background:#b88acc !important;color:#fff !important}.f-cell.top-right-indicator{position:relative}.f-cell.top-right-indicator:after{content:\"\";border-width:0 0 .5em .5em;border-color:rgba(0,0,0,0) rgba(0,0,0,0) var(--kup-secondary-color) rgba(0,0,0,0);border-style:solid;transform:rotate(270deg);position:absolute;right:0;top:0}.f-cell.link .f-cell__content{color:#00e;cursor:pointer;text-decoration:underline}.f-cell.c-vertical-text .f-cell__content{width:auto;margin:auto;min-height:16px;min-width:16px;text-align:center;writing-mode:vertical-lr}.f-cell.c-right-aligned:not(.c-centered){--kup-textfield-text-align:right}.f-cell.c-right-aligned:not(.c-centered) .f-cell__content{justify-content:flex-end;margin:0;margin-left:auto;text-align:right}.f-cell.c-right-aligned:not(.c-centered) .f-cell__content img,.f-cell.c-right-aligned:not(.c-centered) .f-cell__content .f-image{margin-left:auto;margin-right:0}.f-cell.c-centered{--kup-textfield-text-align:center;justify-content:center}.f-cell.c-centered .f-cell__content{justify-content:center}.f-cell.c-centered .f-cell__content img,.f-cell.c-centered .f-cell__content .f-image{margin:auto}.f-cell.c-fitted .f-cell__content{max-width:max-content}.f-cell.c-round .f-cell__content{border-radius:50px}.f-cell.c-shaped .f-cell__content{border-radius:4px}.f-cell.c-padded .f-cell__content{padding:1em}.f-cell.c-hor-padded .f-cell__content{box-sizing:border-box;padding-left:.5em;padding-right:.5em}.f-cell.c-ver-padded .f-cell__content{box-sizing:border-box;padding-top:.5em;padding-bottom:.5em}.f-cell.c-success-bg .f-cell__content{background:var(--kup-success-color) !important;color:#fff !important}.f-cell.c-warning-bg .f-cell__content{background:var(--kup-warning-color) !important}.f-cell.c-danger-bg .f-cell__content{background:var(--kup-danger-color) !important;color:#fff !important}.f-cell.c-teal-bg .f-cell__content{background:#00b4bc !important;color:#fff !important}.f-cell.c-orange-bg .f-cell__content{background:#f59729 !important;color:#fff !important}.f-cell.c-green-bg .f-cell__content{background:#00be67 !important;color:#fff !important}.f-cell.c-grey-bg .f-cell__content{background:#8d8d8d !important;color:#fff !important}.f-cell.c-purple-bg .f-cell__content{background:#b88acc !important;color:#fff !important}.f-cell.dense{--kup-textfield-fullwidth-height:28px;--kup-textfield-fullwidth-padding:0px;--kup-checkbox-padding:0px;--kup-chip-margin:0 4px;padding:.2em .3125em}.f-cell.medium{--kup-textfield-fullwidth-height:36px;--kup-textfield-fullwidth-padding:0px;padding:.5em .3125em}.f-cell.wide{--kup-textfield-fullwidth-height:50px;--kup-textfield-fullwidth-padding:0px;padding:1em .3125em}";
4474
+ const fCellCss = ".f-cell{--kup_cell_background:var(--kup-cell-background);--kup_cell_font_family:var(--kup-cell-font-family);--kup_cell_font_family_monospace:var( --kup-cell-font-family-monospace, var(--kup-font-family-monospace) );--kup_cell_font_size:var(--kup-cell-font-size);--kup_cell_text_color:var(--kup-cell-text-color);background:var(--kup_cell_background);box-sizing:border-box;color:var(--kup_cell_text_color);display:flex;font-family:var(--kup_cell_font_family);font-size:var(--kup_cell_font_size);min-height:100%;width:100%;word-break:break-all;word-wrap:break-word}.f-cell .f-cell__content{align-items:center;display:flex;width:100%}.f-cell .f-cell__content img,.f-cell .f-cell__content .f-image{margin:0}.f-cell .f-cell__content .cell-info{padding:0 .5em 0 .25em}.f-cell .f-cell__content .obj-icon{padding:0 .5em 0 0}.f-cell .f-cell__text{overflow:hidden;text-overflow:ellipsis;word-break:normal}.f-cell.bar-cell .f-image--wrapper{height:100%;margin:auto;min-height:18px;overflow:hidden;position:relative;transition:color .2s ease;width:100%}.f-cell.editor-cell .f-cell__content{margin:0;overflow:hidden}.f-cell.editor-cell .f-cell__content>*{max-width:100%;word-break:normal}.f-cell.icon-cell .f-cell__content{min-height:18px;min-width:18px}.f-cell.number-cell .f-cell__content{--kup-textfield-font-family:var(--kup_cell_font_family_monospace);font-family:var(--kup_cell_font_family_monospace)}.f-cell.switch-cell{min-height:48px}.f-cell .mdc-text-field.mdc-text-field--fullwidth{padding:0px}.f-cell .f-checkbox .checkbox .checkbox__native-control{height:18px;width:18px}.f-cell kup-checkbox,.f-cell kup-image{display:flex}.f-cell kup-button{display:inline-block}.f-cell kup-chip{width:100%}.f-cell kup-button-list{display:flex;margin:auto}.f-cell kup-progress-bar{display:block}.f-cell .input-field{background:none;border:none;border-bottom:1px solid var(--kup-border-color);height:var(--kup_textfield_fullwidth_height) !important;outline:none;padding:4px;transition:border 125ms ease;width:100%}.f-cell .input-field:focus{border-bottom:1px solid var(--kup-primary-color)}.f-cell .input-checkbox:checked{accent-color:var(--kup-primary-color)}.f-cell.clickable{cursor:pointer}.f-cell.monospace{--kup-textfield-font-family:var(--kup_cell_font_family_monospace);font-family:var(--kup-font-family-monospace)}.f-cell.display-on-hover{opacity:0;transition:opacity .25s}.f-cell.display-on-hover:hover{opacity:1}.f-cell.expand-on-hover .f-cell__content{transition:transform 125ms}.f-cell.expand-on-hover:hover .f-cell__content{transform:scale(1.25)}.f-cell.obj{cursor:var(--kup-obj-cursor)}.f-cell.reduce-on-hover .f-cell__content{transition:transform 125ms}.f-cell.reduce-on-hover:hover .f-cell__content{transform:scale(0.75)}.f-cell.shaped{border-radius:4px}.f-cell.strong-text{--kup-textfield-font-weight:600;font-weight:600}.f-cell.underlined{text-decoration:underline}.f-cell.primary-text{--kup-textfield-color:var(--kup-primary-color) !important;color:var(--kup-primary-color) !important}.f-cell.secondary-text{--kup-textfield-color:var(--kup-secondary-color) !important;color:var(--kup-secondary-color) !important}.f-cell.success-text{--kup-textfield-color:var(--kup-success-color) !important;color:var(--kup-success-color) !important}.f-cell.warning-text{--kup-textfield-color:var(--kup-warning-color) !important;color:var(--kup-warning-color) !important}.f-cell.danger-text{--kup-textfield-color:var(--kup-danger-color) !important;color:var(--kup-danger-color) !important}.f-cell.purple-text{--kup-textfield-color:#8e15bf !important;color:#8e15bf !important}.f-cell.success-bg{background:var(--kup-success-color) !important;color:#fff !important}.f-cell.warning-bg{background:var(--kup-warning-color) !important}.f-cell.danger-bg{background:var(--kup-danger-color) !important;color:#fff !important}.f-cell.teal-bg{background:#00b4bc !important;color:#fff !important}.f-cell.orange-bg{background:#f59729 !important;color:#fff !important}.f-cell.green-bg{background:#00be67 !important;color:#fff !important}.f-cell.grey-bg{background:#8d8d8d !important;color:#fff !important}.f-cell.purple-bg{background:#b88acc !important;color:#fff !important}.f-cell.top-right-indicator{position:relative}.f-cell.top-right-indicator:after{content:\"\";border-width:0 0 .5em .5em;border-color:rgba(0,0,0,0) rgba(0,0,0,0) var(--kup-secondary-color) rgba(0,0,0,0);border-style:solid;transform:rotate(270deg);position:absolute;right:0;top:0}.f-cell.link .f-cell__content{color:#00e;cursor:pointer;text-decoration:underline}.f-cell.c-vertical-text .f-cell__content{width:auto;margin:auto;min-height:16px;min-width:16px;text-align:center;writing-mode:vertical-lr}.f-cell.c-right-aligned:not(.c-centered){--kup-textfield-text-align:right}.f-cell.c-right-aligned:not(.c-centered) .f-cell__content{justify-content:flex-end;margin:0;margin-left:auto;text-align:right}.f-cell.c-right-aligned:not(.c-centered) .f-cell__content img,.f-cell.c-right-aligned:not(.c-centered) .f-cell__content .f-image{margin-left:auto;margin-right:0}.f-cell.c-pre .f-cell__content{white-space:pre}.f-cell.c-centered{--kup-textfield-text-align:center;justify-content:center}.f-cell.c-centered .f-cell__content{justify-content:center}.f-cell.c-centered .f-cell__content img,.f-cell.c-centered .f-cell__content .f-image{margin:auto}.f-cell.c-fitted .f-cell__content{max-width:max-content}.f-cell.c-round .f-cell__content{border-radius:50px}.f-cell.c-shaped .f-cell__content{border-radius:4px}.f-cell.c-padded .f-cell__content{padding:1em}.f-cell.c-hor-padded .f-cell__content{box-sizing:border-box;padding-left:.5em;padding-right:.5em}.f-cell.c-ver-padded .f-cell__content{box-sizing:border-box;padding-top:.5em;padding-bottom:.5em}.f-cell.c-success-bg .f-cell__content{background:var(--kup-success-color) !important;color:#fff !important}.f-cell.c-warning-bg .f-cell__content{background:var(--kup-warning-color) !important}.f-cell.c-danger-bg .f-cell__content{background:var(--kup-danger-color) !important;color:#fff !important}.f-cell.c-teal-bg .f-cell__content{background:#00b4bc !important;color:#fff !important}.f-cell.c-orange-bg .f-cell__content{background:#f59729 !important;color:#fff !important}.f-cell.c-green-bg .f-cell__content{background:#00be67 !important;color:#fff !important}.f-cell.c-grey-bg .f-cell__content{background:#8d8d8d !important;color:#fff !important}.f-cell.c-purple-bg .f-cell__content{background:#b88acc !important;color:#fff !important}.f-cell.dense{--kup-textfield-fullwidth-height:28px;--kup-textfield-fullwidth-padding:0px;--kup-checkbox-padding:0px;--kup-chip-margin:0 4px;padding:.2em .3125em}.f-cell.medium{--kup-textfield-fullwidth-height:36px;--kup-textfield-fullwidth-padding:0px;padding:.5em .3125em}.f-cell.wide{--kup-textfield-fullwidth-height:50px;--kup-textfield-fullwidth-padding:0px;padding:1em .3125em}";
4475
4475
  const fCellCss$1 = fCellCss;
4476
4476
 
4477
4477
  const fCheckboxCss = ".f-checkbox{--kup_checkbox_font_family:var( --kup-checkbox-font-family, var(--kup-font-family) );--kup_checkbox_font_size:var(--kup-checkbox-font-size, var(--kup-font-size));--kup_checkbox_font_weight:var(--kup-checkbox-font-weight, 400);--kup_checkbox_disabled_checkmark_color:var( --kup-checkbox-disabled-checkmark-color, var(--kup-background-color) );--kup_checkbox_padding:var(--kup-checkbox-padding, 11px);--kup_checkbox_primary_color:var( --kup-checkbox-primary-color, var(--kup-primary-color) );--kup_checkbox_primary_color_rgb:var( --kup-checkbox-primary-color-rgb, var(--kup-primary-color-rgb) );--kup_checkbox_text_color:var( --kup-checkbox-text-color, var(--kup-text-color) );--kup_checkbox_text_color_rgb:var( --kup-checkbox-text-color-rgb, var(--kup-text-color-rgb) );--kup_checkbox_text_on_primary_color:var( --kup-checkbox-text-on-primary-color, var(--kup-text-on-primary-color) );--kup_checkbox_text_on_primary_color_rgb:var( --kup-checkbox-text-on-primary-color-rgb, var(--kup-text-on-primary-color-rgb) );font-family:var(--kup_checkbox_font_family);font-size:var(--kup_checkbox_font_size)}.f-checkbox .form-field{color:var(--kup_checkbox_text_color);line-height:1.25em;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;letter-spacing:0.0178571429em;text-decoration:inherit;align-items:center;vertical-align:middle;display:inline-flex}.f-checkbox .form-field label{font-size:.875em;margin-left:0px;margin-right:auto;order:0}.f-checkbox .form-field.form-field--align-end label{margin-left:auto;margin-right:0px;order:-1}.f-checkbox .checkbox{border-radius:50%;display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom;will-change:transform,opacity;z-index:0;padding:var(--kup_checkbox_padding);transition:background-color 125ms linear}.f-checkbox .checkbox:hover{background:rgba(var(--kup_checkbox_primary_color_rgb), 0.125)}.f-checkbox .checkbox .checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit;top:0;left:0;right:0;height:40px;width:40px}.f-checkbox .checkbox .checkbox__native-control:checked~.checkbox__background .checkbox__checkmark{transition:opacity 180ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 180ms 0ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.f-checkbox .checkbox .checkbox__checkmark-path{stroke:var(--kup_checkbox_text_on_primary_color);stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke-width:3.12px;transition:stroke-dashoffset 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.f-checkbox .checkbox .checkbox__background{position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid rgba(var(--kup_checkbox_text_color_rgb), 0.5);border-radius:2px;background-color:rgba(0,0,0,0);pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.f-checkbox .checkbox .checkbox__background .checkbox__checkmark{color:var(--kup_checkbox_text_on_primary_color);position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.f-checkbox .checkbox .checkbox__background .checkbox__mixedmark{position:absolute;top:6px;left:-1px;color:var(--kup_checkbox_text_on_primary_color);width:100%;height:0;border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.f-checkbox .checkbox.checkbox--checked .checkbox__background{background-color:var(--kup_checkbox_primary_color);border-color:var(--kup_checkbox_primary_color);opacity:1}.f-checkbox .checkbox.checkbox--checked .checkbox__checkmark-path{stroke-dashoffset:0}.f-checkbox .checkbox.checkbox--indeterminate .checkbox__background{background-color:var(--kup_checkbox_primary_color);border-color:var(--kup_checkbox_primary_color)}.f-checkbox .checkbox.checkbox--indeterminate .checkbox__mixedmark{border-color:var(--kup_checkbox_text_on_primary_color);transform:scaleX(1) rotate(0deg);opacity:1}.f-checkbox .checkbox.checkbox--indeterminate .checkbox__checkmark-path{stroke-dashoffset:0}.f-checkbox .checkbox.checkbox--disabled{pointer-events:none}.f-checkbox .checkbox.checkbox--disabled+label{pointer-events:none}.f-checkbox .checkbox.checkbox--disabled .checkbox__background{background-color:rgba(0,0,0,0);border-color:rgba(var(--kup_checkbox_text_color_rgb), 0.325)}.f-checkbox .checkbox.checkbox--disabled.checkbox--checked .checkbox__background{background-color:rgba(var(--kup_checkbox_text_color_rgb), 0.325);border-color:rgba(0,0,0,0)}.f-checkbox .checkbox.checkbox--disabled.checkbox--checked .checkbox__checkmark{color:var(--kup_checkbox_disabled_checkmark_color)}.f-checkbox .checkbox.checkbox--disabled.checkbox--checked .checkbox__mixedmark{color:var(--kup_checkbox_disabled_checkmark_color)}.f-checkbox.kup-danger{--kup-checkbox-primary-color:var(--kup-danger-color);--kup-checkbox-primary-color-rgb:var(--kup-danger-color-rgb);--kup-checkbox-text-on-primary-color:white;--kup-checkbox-text-on-primary-color-rgb:255, 255, 255}.f-checkbox.kup-info{--kup-checkbox-primary-color:var(--kup-info-color);--kup-checkbox-primary-color-rgb:var(--kup-info-color-rgb);--kup-checkbox-text-on-primary-color:white;--kup-checkbox-text-on-primary-color-rgb:255, 255, 255}.f-checkbox.kup-secondary{--kup-checkbox-primary-color:var(--kup-secondary-color);--kup-checkbox-primary-color-rgb:var(--kup-secondary-color-rgb);--kup-checkbox-text-on-primary-color:var(--kup-text-on-secondary-color);--kup-checkbox-text-on-primary-color-rgb:var( --kup-text-on-secondary-color-rgb )}.f-checkbox.kup-success{--kup-checkbox-primary-color:var(--kup-success-color);--kup-checkbox-primary-color-rgb:var(--kup-success-color-rgb);--kup-checkbox-text-on-primary-color:white;--kup-checkbox-text-on-primary-color-rgb:255, 255, 255}.f-checkbox.kup-warning{--kup-checkbox-primary-color:var(--kup-warning-color);--kup-checkbox-primary-color-rgb:var(--kup-warning-color-rgb);--kup-checkbox-text-on-primary-color:white;--kup-checkbox-text-on-primary-color-rgb:255, 255, 255}";
@@ -17614,7 +17614,7 @@ var __classPrivateFieldGet = (undefined && undefined.__classPrivateFieldGet) ||
17614
17614
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
17615
17615
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
17616
17616
  };
17617
- var _KupOpenAI_instances, _KupOpenAI_setError, _KupOpenAI_invalidPassword, _KupOpenAI_create, _KupOpenAI_connect, _KupOpenAI_disconnect;
17617
+ var _KupOpenAI_instances, _KupOpenAI_invalidPassword, _KupOpenAI_create, _KupOpenAI_connect, _KupOpenAI_disconnect;
17618
17618
  const dom$1 = document.documentElement;
17619
17619
  class KupOpenAI {
17620
17620
  /**
@@ -17623,15 +17623,31 @@ class KupOpenAI {
17623
17623
  constructor(url) {
17624
17624
  _KupOpenAI_instances.add(this);
17625
17625
  this.card = null;
17626
+ this.context = '';
17626
17627
  this.data = null;
17627
17628
  this.dialog = null;
17628
17629
  this.sessionInfo = null;
17629
17630
  this.url = null;
17631
+ this.getFunFromText = (text) => {
17632
+ const pattern = /#\[(?:F|C|A)\(([^)]*)\)\s*(?:\d\(([^)]*)\)\s*)?(?:INPUT\(([^)]*)\)\s*)?(?:SP\(([^)]*)\)\s*)?(?:P\(([^]*)\)\s*)?(?:CRO\(([^)]*)\)\s*)?(?:SS\(([^)]*)\)\s*)?(?:SERVER\(([^)]*)\)\s*)?(?:SG\(([^)]*)\)\s*)?(?:G\(([^)]*)\)\s*)?(?:NOTIFY\(([^)]*)\)\s*)?]\#/g;
17633
+ return [...text.matchAll(pattern)];
17634
+ };
17630
17635
  this.container = document.createElement('div');
17631
17636
  this.container.setAttribute('kup-openai', '');
17632
17637
  document.body.appendChild(this.container);
17633
17638
  this.url = url;
17634
17639
  }
17640
+ setError(message, _this, dontRefreshCard) {
17641
+ if (!_this) {
17642
+ _this = this;
17643
+ }
17644
+ dom$1.ketchup.debug.logMessage(_this, message, KupDebugCategory.ERROR);
17645
+ if (dontRefreshCard) {
17646
+ return;
17647
+ }
17648
+ _this.getCardOptions().state = 'error';
17649
+ _this.card.refresh();
17650
+ }
17635
17651
  getCardOptions() {
17636
17652
  if (!this.card.data) {
17637
17653
  this.card.data = {};
@@ -17644,27 +17660,24 @@ class KupOpenAI {
17644
17660
  }
17645
17661
  return this.card.data.options;
17646
17662
  }
17647
- /**
17648
- * Shows the component
17649
- * @param data
17650
- * @param options
17651
- */
17652
- show(data) {
17653
- this.data = data;
17654
- if (!this.card) {
17655
- __classPrivateFieldGet(this, _KupOpenAI_instances, "m", _KupOpenAI_create).call(this);
17663
+ async show(parameters) {
17664
+ this.context = parameters.context;
17665
+ this.data = parameters.dataset;
17666
+ if (parameters.onFunClick) {
17667
+ this.onFunClick = parameters.onFunClick;
17656
17668
  }
17669
+ if (this.card) {
17670
+ await this.hide();
17671
+ }
17672
+ __classPrivateFieldGet(this, _KupOpenAI_instances, "m", _KupOpenAI_create).call(this);
17657
17673
  }
17658
- /**
17659
- * Hides the component.
17660
- */
17661
- hide() {
17674
+ async hide() {
17662
17675
  if (this.card) {
17663
17676
  this.card.remove();
17664
17677
  this.card = null;
17665
17678
  this.dialog.remove();
17666
17679
  this.dialog = null;
17667
- __classPrivateFieldGet(this, _KupOpenAI_instances, "m", _KupOpenAI_disconnect).call(this);
17680
+ await __classPrivateFieldGet(this, _KupOpenAI_instances, "m", _KupOpenAI_disconnect).call(this);
17668
17681
  }
17669
17682
  }
17670
17683
  async auth(event) {
@@ -17684,13 +17697,13 @@ class KupOpenAI {
17684
17697
  });
17685
17698
  }
17686
17699
  catch (e) {
17687
- __classPrivateFieldGet(openAI, _KupOpenAI_instances, "m", _KupOpenAI_setError).call(openAI, e.message, openAI);
17700
+ openAI.setError(e.message, openAI);
17688
17701
  return;
17689
17702
  }
17690
17703
  if (response) {
17691
17704
  if (response.status != 200) {
17692
17705
  __classPrivateFieldGet(openAI, _KupOpenAI_instances, "m", _KupOpenAI_invalidPassword).call(openAI, event);
17693
- //this.#setError(await response.text());
17706
+ //this.setError(await response.text());
17694
17707
  return;
17695
17708
  }
17696
17709
  const responseJson = await response.json();
@@ -17705,6 +17718,10 @@ class KupOpenAI {
17705
17718
  openAI.card.refresh();
17706
17719
  }
17707
17720
  async chat(disableInteractivity, inputArea) {
17721
+ const openAI = dom$1.ketchup.openAI;
17722
+ if (!openAI.card) {
17723
+ return;
17724
+ }
17708
17725
  const communicate = async (question) => {
17709
17726
  if (!openAI.url) {
17710
17727
  return;
@@ -17721,6 +17738,7 @@ class KupOpenAI {
17721
17738
  'Content-Type': 'application/json',
17722
17739
  },
17723
17740
  body: JSON.stringify({
17741
+ context: openAI.sessionInfo.context,
17724
17742
  fileId: openAI.sessionInfo.fileId,
17725
17743
  threadId: openAI.sessionInfo.threadId,
17726
17744
  question: question,
@@ -17728,41 +17746,31 @@ class KupOpenAI {
17728
17746
  });
17729
17747
  }
17730
17748
  catch (e) {
17731
- __classPrivateFieldGet(this, _KupOpenAI_instances, "m", _KupOpenAI_setError).call(this, e.message, openAI);
17749
+ openAI.setError(e.message, openAI);
17732
17750
  }
17733
17751
  if (response) {
17734
17752
  if (response.status != 200) {
17735
- __classPrivateFieldGet(this, _KupOpenAI_instances, "m", _KupOpenAI_setError).call(this, await response.text(), openAI);
17753
+ openAI.setError(await response.text(), openAI);
17736
17754
  return;
17737
17755
  }
17738
17756
  const responseJson = await response.json();
17739
17757
  if (responseJson && responseJson.messages) {
17740
- responseMessages.push(...responseJson.messages);
17758
+ for (let i = 0; i < responseJson.messages.length; i++) {
17759
+ const m = responseJson.messages[i];
17760
+ m.funs = openAI.getFunFromText(m.text);
17761
+ responseMessages.push(m);
17762
+ }
17741
17763
  }
17742
17764
  }
17743
17765
  return responseMessages;
17744
17766
  };
17745
- const openAI = dom$1.ketchup.openAI;
17746
- if (!openAI.card) {
17747
- return;
17748
- }
17749
17767
  disableInteractivity(true);
17750
17768
  openAI.getCardOptions().messages = await communicate(await inputArea.getValue());
17751
17769
  openAI.card.refresh();
17752
17770
  disableInteractivity(false);
17753
17771
  }
17754
17772
  }
17755
- _KupOpenAI_instances = new WeakSet(), _KupOpenAI_setError = function _KupOpenAI_setError(message, _this, dontRefreshCard) {
17756
- if (!_this) {
17757
- _this = this;
17758
- }
17759
- dom$1.ketchup.debug.logMessage(_this, message, KupDebugCategory.ERROR);
17760
- if (dontRefreshCard) {
17761
- return;
17762
- }
17763
- _this.getCardOptions().state = 'error';
17764
- _this.card.refresh();
17765
- }, _KupOpenAI_invalidPassword = function _KupOpenAI_invalidPassword(event) {
17773
+ _KupOpenAI_instances = new WeakSet(), _KupOpenAI_invalidPassword = function _KupOpenAI_invalidPassword(event) {
17766
17774
  const field = event.detail.comp;
17767
17775
  field.helper = 'Invalid password.';
17768
17776
  field.rootElement.classList.add('kup-danger');
@@ -17802,20 +17810,24 @@ _KupOpenAI_instances = new WeakSet(), _KupOpenAI_setError = function _KupOpenAI_
17802
17810
  headers: {
17803
17811
  'Content-Type': 'application/json',
17804
17812
  },
17805
- body: JSON.stringify({ data: this.data }),
17813
+ body: JSON.stringify({
17814
+ context: this.context,
17815
+ data: this.data,
17816
+ }),
17806
17817
  });
17807
17818
  }
17808
17819
  catch (e) {
17809
- __classPrivateFieldGet(this, _KupOpenAI_instances, "m", _KupOpenAI_setError).call(this, e.message);
17820
+ this.setError(e.message);
17810
17821
  return;
17811
17822
  }
17812
17823
  if (response) {
17813
17824
  if (response.status != 200) {
17814
- __classPrivateFieldGet(this, _KupOpenAI_instances, "m", _KupOpenAI_setError).call(this, await response.text());
17825
+ this.setError(await response.text());
17815
17826
  return;
17816
17827
  }
17817
17828
  const responseJson = await response.json();
17818
17829
  this.sessionInfo = {
17830
+ context: this.context,
17819
17831
  fileId: responseJson.fileId,
17820
17832
  threadId: responseJson.threadId,
17821
17833
  };
@@ -17840,18 +17852,19 @@ _KupOpenAI_instances = new WeakSet(), _KupOpenAI_setError = function _KupOpenAI_
17840
17852
  'Content-Type': 'application/json',
17841
17853
  },
17842
17854
  body: JSON.stringify({
17855
+ context: this.sessionInfo.context,
17843
17856
  fileId: this.sessionInfo.fileId,
17844
17857
  threadId: this.sessionInfo.threadId,
17845
17858
  }),
17846
17859
  });
17847
17860
  }
17848
17861
  catch (e) {
17849
- __classPrivateFieldGet(this, _KupOpenAI_instances, "m", _KupOpenAI_setError).call(this, e.message, undefined, true);
17862
+ this.setError(e.message, undefined, true);
17850
17863
  }
17851
17864
  this.sessionInfo = null;
17852
17865
  if (response) {
17853
17866
  if (response.status != 200) {
17854
- __classPrivateFieldGet(this, _KupOpenAI_instances, "m", _KupOpenAI_setError).call(this, await response.text(), undefined, true);
17867
+ this.setError(await response.text(), undefined, true);
17855
17868
  }
17856
17869
  }
17857
17870
  };
@@ -1,6 +1,6 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, forceUpdate, h, Host } from '@stencil/core/internal/client';
2
2
  import { k as kupManagerInstance, M as KupDynamicPositionPlacement, Z as KupCardFamily } from './kup-manager.js';
3
- import { _ as FTextField, N as FTextFieldMDC, c as componentWrapperId, d as defineCustomElement$2, a as defineCustomElement$3, b as defineCustomElement$4, e as defineCustomElement$5, f as defineCustomElement$6, g as defineCustomElement$7, h as defineCustomElement$8, i as defineCustomElement$9, j as defineCustomElement$a, k as defineCustomElement$b, l as defineCustomElement$c, m as defineCustomElement$d, n as defineCustomElement$e, o as defineCustomElement$f, p as defineCustomElement$g, q as defineCustomElement$h, r as defineCustomElement$i, s as defineCustomElement$j, t as defineCustomElement$k, u as defineCustomElement$l, v as defineCustomElement$m, w as defineCustomElement$n, x as defineCustomElement$o, y as defineCustomElement$p, z as defineCustomElement$q, A as defineCustomElement$r, B as defineCustomElement$s } from './kup-autocomplete2.js';
3
+ import { Z as FTextField, N as FTextFieldMDC, c as componentWrapperId, d as defineCustomElement$2, a as defineCustomElement$3, b as defineCustomElement$4, e as defineCustomElement$5, f as defineCustomElement$6, g as defineCustomElement$7, h as defineCustomElement$8, i as defineCustomElement$9, j as defineCustomElement$a, k as defineCustomElement$b, l as defineCustomElement$c, m as defineCustomElement$d, n as defineCustomElement$e, o as defineCustomElement$f, p as defineCustomElement$g, q as defineCustomElement$h, r as defineCustomElement$i, s as defineCustomElement$j, t as defineCustomElement$k, u as defineCustomElement$l, v as defineCustomElement$m, w as defineCustomElement$n, x as defineCustomElement$o, y as defineCustomElement$p, z as defineCustomElement$q, A as defineCustomElement$r, B as defineCustomElement$s } from './kup-autocomplete2.js';
4
4
 
5
5
  /**
6
6
  * Props of the kup-numeric-picker component.
@@ -1,7 +1,7 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, forceUpdate, h, Host, getAssetPath } from '@stencil/core/internal/client';
2
2
  import { k as kupManagerInstance, m as getCellValueForDisplay, g as getProps, s as setProps, b as KupThemeIconValues, Q as KupLanguageSearch } from './kup-manager.js';
3
3
  import { K as KupPlannerGanttRowType, a as defaultStylingOptions, b as KupPlannerTaskAction, c as KupPlannerLastOnChangeReceived, d as defineCustomElement$9, e as KupPlannerProps } from './kup-task-list2.js';
4
- import { N as FTextFieldMDC, c as componentWrapperId, _ as FTextField, d as defineCustomElement$3, a as defineCustomElement$5, b as defineCustomElement$6, e as defineCustomElement$b, f as defineCustomElement$d, g as defineCustomElement$f, h as defineCustomElement$g, i as defineCustomElement$h, j as defineCustomElement$i, k as defineCustomElement$k, l as defineCustomElement$l, m as defineCustomElement$o, n as defineCustomElement$r, o as defineCustomElement$s, p as defineCustomElement$t, q as defineCustomElement$u, r as defineCustomElement$v, s as defineCustomElement$y, t as defineCustomElement$z, u as defineCustomElement$A, v as defineCustomElement$B, w as defineCustomElement$C, x as defineCustomElement$D, y as defineCustomElement$E, z as defineCustomElement$F, A as defineCustomElement$G, B as defineCustomElement$H } from './kup-autocomplete2.js';
4
+ import { N as FTextFieldMDC, c as componentWrapperId, Z as FTextField, d as defineCustomElement$3, a as defineCustomElement$5, b as defineCustomElement$6, e as defineCustomElement$b, f as defineCustomElement$d, g as defineCustomElement$f, h as defineCustomElement$g, i as defineCustomElement$h, j as defineCustomElement$i, k as defineCustomElement$k, l as defineCustomElement$l, m as defineCustomElement$o, n as defineCustomElement$r, o as defineCustomElement$s, p as defineCustomElement$t, q as defineCustomElement$u, r as defineCustomElement$v, s as defineCustomElement$y, t as defineCustomElement$z, u as defineCustomElement$A, v as defineCustomElement$B, w as defineCustomElement$C, x as defineCustomElement$D, y as defineCustomElement$E, z as defineCustomElement$F, A as defineCustomElement$G, B as defineCustomElement$H } from './kup-autocomplete2.js';
5
5
  import { K as KupDatesFormats } from './kup-dates.js';
6
6
  import { d as defineCustomElement$x } from './custom-task-list-header.js';
7
7
  import { d as defineCustomElement$w } from './custom-task-list-table.js';
@@ -1,4 +1,4 @@
1
- import { a9 as KupProgressBar$1, j as defineCustomElement$1 } from './kup-autocomplete2.js';
1
+ import { a8 as KupProgressBar$1, j as defineCustomElement$1 } from './kup-autocomplete2.js';
2
2
 
3
3
  const KupProgressBar = KupProgressBar$1;
4
4
  const defineCustomElement = defineCustomElement$1;
@@ -1,4 +1,4 @@
1
- import { aa as KupRadio$1, i as defineCustomElement$1 } from './kup-autocomplete2.js';
1
+ import { a9 as KupRadio$1, i as defineCustomElement$1 } from './kup-autocomplete2.js';
2
2
 
3
3
  const KupRadio = KupRadio$1;
4
4
  const defineCustomElement = defineCustomElement$1;
@@ -1,4 +1,4 @@
1
- import { ab as KupRating$1, h as defineCustomElement$1 } from './kup-autocomplete2.js';
1
+ import { aa as KupRating$1, h as defineCustomElement$1 } from './kup-autocomplete2.js';
2
2
 
3
3
  const KupRating = KupRating$1;
4
4
  const defineCustomElement = defineCustomElement$1;
@@ -1,6 +1,6 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, forceUpdate, h, Host } from '@stencil/core/internal/client';
2
2
  import { k as kupManagerInstance, g as getProps, s as setProps } from './kup-manager.js';
3
- import { c as componentWrapperId, S as FButton, d as defineCustomElement$2, a as defineCustomElement$3, b as defineCustomElement$4, e as defineCustomElement$5, f as defineCustomElement$6, g as defineCustomElement$7, h as defineCustomElement$8, i as defineCustomElement$9, j as defineCustomElement$a, k as defineCustomElement$b, l as defineCustomElement$c, m as defineCustomElement$d, n as defineCustomElement$e, o as defineCustomElement$f, p as defineCustomElement$g, q as defineCustomElement$h, r as defineCustomElement$i, s as defineCustomElement$j, t as defineCustomElement$k, u as defineCustomElement$l, v as defineCustomElement$m, w as defineCustomElement$n, x as defineCustomElement$o, y as defineCustomElement$p, z as defineCustomElement$q, A as defineCustomElement$r, B as defineCustomElement$s } from './kup-autocomplete2.js';
3
+ import { c as componentWrapperId, R as FButton, d as defineCustomElement$2, a as defineCustomElement$3, b as defineCustomElement$4, e as defineCustomElement$5, f as defineCustomElement$6, g as defineCustomElement$7, h as defineCustomElement$8, i as defineCustomElement$9, j as defineCustomElement$a, k as defineCustomElement$b, l as defineCustomElement$c, m as defineCustomElement$d, n as defineCustomElement$e, o as defineCustomElement$f, p as defineCustomElement$g, q as defineCustomElement$h, r as defineCustomElement$i, s as defineCustomElement$j, t as defineCustomElement$k, u as defineCustomElement$l, v as defineCustomElement$m, w as defineCustomElement$n, x as defineCustomElement$o, y as defineCustomElement$p, z as defineCustomElement$q, A as defineCustomElement$r, B as defineCustomElement$s } from './kup-autocomplete2.js';
4
4
 
5
5
  const snackbarClass = 'snackbar';
6
6
  /**
@@ -1,4 +1,4 @@
1
- import { ac as KupSpinner$1, g as defineCustomElement$1 } from './kup-autocomplete2.js';
1
+ import { ab as KupSpinner$1, g as defineCustomElement$1 } from './kup-autocomplete2.js';
2
2
 
3
3
  const KupSpinner = KupSpinner$1;
4
4
  const defineCustomElement = defineCustomElement$1;
@@ -1,4 +1,4 @@
1
- import { ad as KupSwitch$1, f as defineCustomElement$1 } from './kup-autocomplete2.js';
1
+ import { ac as KupSwitch$1, f as defineCustomElement$1 } from './kup-autocomplete2.js';
2
2
 
3
3
  const KupSwitch = KupSwitch$1;
4
4
  const defineCustomElement = defineCustomElement$1;
@@ -1,4 +1,4 @@
1
- import { ae as KupTabBar$1, e as defineCustomElement$1 } from './kup-autocomplete2.js';
1
+ import { ad as KupTabBar$1, e as defineCustomElement$1 } from './kup-autocomplete2.js';
2
2
 
3
3
  const KupTabBar = KupTabBar$1;
4
4
  const defineCustomElement = defineCustomElement$1;
@@ -1,4 +1,4 @@
1
- import { af as KupTextField$1, b as defineCustomElement$1 } from './kup-autocomplete2.js';
1
+ import { ae as KupTextField$1, b as defineCustomElement$1 } from './kup-autocomplete2.js';
2
2
 
3
3
  const KupTextField = KupTextField$1;
4
4
  const defineCustomElement = defineCustomElement$1;
@@ -1,4 +1,4 @@
1
- import { ag as KupTimePicker$1, a as defineCustomElement$1 } from './kup-autocomplete2.js';
1
+ import { af as KupTimePicker$1, a as defineCustomElement$1 } from './kup-autocomplete2.js';
2
2
 
3
3
  const KupTimePicker = KupTimePicker$1;
4
4
  const defineCustomElement = defineCustomElement$1;
@@ -1,4 +1,4 @@
1
- import { ah as KupTree$1, d as defineCustomElement$1 } from './kup-autocomplete2.js';
1
+ import { ag as KupTree$1, d as defineCustomElement$1 } from './kup-autocomplete2.js';
2
2
 
3
3
  const KupTree = KupTree$1;
4
4
  const defineCustomElement = defineCustomElement$1;
@@ -1,6 +1,6 @@
1
1
  import { h } from './index-bbef9f2a.js';
2
2
  import { F as FButtonStyling } from './f-button-declarations-9bdc6f26.js';
3
- import { F as FImage } from './f-image-98371dac.js';
3
+ import { F as FImage } from './f-image-5210f0b3.js';
4
4
 
5
5
  /*-------------------------------------------------*/
6
6
  /* C o m p o n e n t */
@@ -1,10 +1,10 @@
1
- import { a6 as editableTypes, a7 as kupTypes, c as KupThemeColorValues, a3 as FCellTypes, a8 as KupTagNames, F as FCellShapes, a9 as fullWidthFieldsComps, aa as FCellClasses, ab as autoCenterComps, ac as getCellValueForDisplay, ad as FCellEvents } from './kup-manager-33b051d6.js';
1
+ import { a6 as editableTypes, a7 as kupTypes, c as KupThemeColorValues, a3 as FCellTypes, a8 as KupTagNames, F as FCellShapes, a9 as fullWidthFieldsComps, aa as FCellClasses, ab as autoCenterComps, ac as getCellValueForDisplay, ad as FCellEvents } from './kup-manager-8b39f876.js';
2
2
  import { h, g as getAssetPath } from './index-bbef9f2a.js';
3
3
  import { F as FCheckbox } from './f-checkbox-fdf27ce9.js';
4
- import { F as FTextField } from './f-text-field-0df308e4.js';
5
- import { F as FImage } from './f-image-98371dac.js';
6
- import { F as FChipType, a as FChip } from './f-chip-915ddf53.js';
7
- import { F as FButton } from './f-button-121958b3.js';
4
+ import { F as FTextField } from './f-text-field-8429a853.js';
5
+ import { F as FImage } from './f-image-5210f0b3.js';
6
+ import { F as FChipType, a as FChip } from './f-chip-4e6341a6.js';
7
+ import { F as FButton } from './f-button-90a7ea86.js';
8
8
 
9
9
  /**
10
10
  * Props of the kup-list component.
@@ -1,6 +1,6 @@
1
1
  import { h } from './index-bbef9f2a.js';
2
- import { F as FImage } from './f-image-98371dac.js';
3
- import { a as KupThemeIconValues, l as KupLanguageGeneric, c as KupThemeColorValues } from './kup-manager-33b051d6.js';
2
+ import { F as FImage } from './f-image-5210f0b3.js';
3
+ import { a as KupThemeIconValues, l as KupLanguageGeneric, c as KupThemeColorValues } from './kup-manager-8b39f876.js';
4
4
 
5
5
  /**
6
6
  * Types of the f-chip component.
@@ -1,5 +1,5 @@
1
1
  import { h, g as getAssetPath } from './index-bbef9f2a.js';
2
- import { c as KupThemeColorValues } from './kup-manager-33b051d6.js';
2
+ import { c as KupThemeColorValues } from './kup-manager-8b39f876.js';
3
3
 
4
4
  /**
5
5
  * The type of a CSS step in CSS-drawing mode.
@@ -1,7 +1,7 @@
1
- import { B as Filters, E as FilterInterval, C as getValueForDisplay, A as getValueForDisplay2, ac as getCellValueForDisplay, u as getColumnByName, w as KupObjects, ae as KupData, af as compareCell, I as TotalMode, $ as SortMode, ag as KupLanguagePage, q as KupLanguageRow, l as KupLanguageGeneric } from './kup-manager-33b051d6.js';
1
+ import { B as Filters, E as FilterInterval, C as getValueForDisplay, A as getValueForDisplay2, ac as getCellValueForDisplay, u as getColumnByName, w as KupObjects, ae as KupData, af as compareCell, I as TotalMode, $ as SortMode, ag as KupLanguagePage, q as KupLanguageRow, l as KupLanguageGeneric } from './kup-manager-8b39f876.js';
2
2
  import { K as KupDatesFormats } from './kup-dates-172954df.js';
3
3
  import { h } from './index-bbef9f2a.js';
4
- import { F as FButton } from './f-button-121958b3.js';
4
+ import { F as FButton } from './f-button-90a7ea86.js';
5
5
  import { F as FButtonStyling } from './f-button-declarations-9bdc6f26.js';
6
6
 
7
7
  /**
@@ -1561,4 +1561,4 @@ function rowsPerPageChange(rowsNumber, max) {
1561
1561
  return null;
1562
1562
  }
1563
1563
 
1564
- export { FiltersColumnMenu as F, KupTreeExpansionMode as K, FiltersRows as a, FPaginator as b, calcTotals as c, pageChange as d, KupTreeProps as e, filterRows as f, groupRows as g, FPaginatorMode as h, normalizeRows as n, paginateRows as p, rowsPerPageChange as r, sortRows as s, treeMainColumnName as t };
1564
+ export { FiltersColumnMenu as F, KupTreeExpansionMode as K, FiltersRows as a, FPaginator as b, calcTotals as c, pageChange as d, KupTreeProps as e, filterRows as f, groupRows as g, normalizeRows as n, paginateRows as p, rowsPerPageChange as r, sortRows as s, treeMainColumnName as t };
@@ -1,5 +1,5 @@
1
1
  import { h, g as getAssetPath } from './index-bbef9f2a.js';
2
- import { a as KupThemeIconValues } from './kup-manager-33b051d6.js';
2
+ import { a as KupThemeIconValues } from './kup-manager-8b39f876.js';
3
3
 
4
4
  const dom = document.documentElement;
5
5
  /*-------------------------------------------------*/
package/dist/esm/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { K as KupManager } from './kup-manager-33b051d6.js';
1
+ import { K as KupManager } from './kup-manager-8b39f876.js';
2
2
  import './kup-dates-172954df.js';
3
3
  import './index-bbef9f2a.js';
4
4