@sme.up/ketchup 5.2.1-SNAPSHOT → 6.1.0-SNAPSHOT

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (195) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/dist/cjs/{cell-utils-d96b2993.js → cell-utils-a78d6fac.js} +2 -2
  3. package/dist/cjs/{component-d1496215.js → component-72a5b626.js} +30 -0
  4. package/dist/cjs/{f-button-2b9b99b1.js → f-button-ac179257.js} +1 -1
  5. package/dist/cjs/{f-cell-8351cb84.js → f-cell-69294bca.js} +37 -37
  6. package/dist/cjs/{f-chip-df59e1b0.js → f-chip-b00897d7.js} +4 -3
  7. package/dist/cjs/{f-image-12bab3b5.js → f-image-89f25556.js} +1 -1
  8. package/dist/cjs/f-paginator-utils-8fa501b3.js +1898 -0
  9. package/dist/cjs/{f-text-field-e7c35b5b.js → f-text-field-e1e45ade.js} +1 -1
  10. package/dist/cjs/{f-text-field-mdc-a67f5dfe.js → f-text-field-mdc-85997738.js} +23 -305
  11. package/dist/cjs/ketchup.cjs.js +2 -2
  12. package/dist/cjs/kup-accordion.cjs.entry.js +4 -4
  13. package/dist/cjs/{kup-autocomplete_27.cjs.entry.js → kup-autocomplete_25.cjs.entry.js} +1493 -5418
  14. package/dist/cjs/{kup-echart.cjs.entry.js → kup-box_2.cjs.entry.js} +17101 -14787
  15. package/dist/cjs/kup-calendar.cjs.entry.js +41 -33
  16. package/dist/cjs/kup-cell.cjs.entry.js +7 -7
  17. package/dist/cjs/kup-dash-list.cjs.entry.js +3 -3
  18. package/dist/cjs/kup-dash_2.cjs.entry.js +2 -2
  19. package/dist/cjs/kup-drawer.cjs.entry.js +11 -4
  20. package/dist/cjs/kup-field.cjs.entry.js +1 -1
  21. package/dist/cjs/kup-form-editor.cjs.entry.js +404 -0
  22. package/dist/cjs/kup-iframe.cjs.entry.js +2 -2
  23. package/dist/cjs/kup-image-list.cjs.entry.js +228 -0
  24. package/dist/cjs/kup-lazy.cjs.entry.js +2 -2
  25. package/dist/cjs/kup-magic-box.cjs.entry.js +3 -3
  26. package/dist/cjs/kup-manager-7a941909.js +16703 -0
  27. package/dist/cjs/kup-nav-bar.cjs.entry.js +2 -2
  28. package/dist/cjs/kup-numeric-picker.cjs.entry.js +4 -4
  29. package/dist/cjs/kup-photo-frame.cjs.entry.js +4 -4
  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 +5 -5
  33. package/dist/cjs/loader.cjs.js +2 -2
  34. package/dist/cjs/{utils-e99921c1.js → utils-6287d878.js} +1 -1
  35. package/dist/collection/assets/card.js +4 -5
  36. package/dist/collection/assets/data-table.js +0 -79
  37. package/dist/collection/assets/form-editor.js +338 -0
  38. package/dist/collection/assets/image-list.js +624 -0
  39. package/dist/collection/assets/index.js +8 -0
  40. package/dist/collection/assets/kupdata.js +0 -3
  41. package/dist/collection/assets/kuptooltip.js +53 -7
  42. package/dist/collection/assets/tree.js +0 -128
  43. package/dist/collection/collection-manifest.json +7 -6
  44. package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +1 -1
  45. package/dist/collection/components/kup-box/kup-box-declarations.js +0 -4
  46. package/dist/collection/components/kup-box/kup-box.js +7 -135
  47. package/dist/collection/components/kup-card/built-in/kup-card-clock.js +1 -1
  48. package/dist/collection/components/kup-card/built-in/kup-card-column-drop-menu.js +1 -2
  49. package/dist/collection/components/kup-card/kup-card.css +26 -8
  50. package/dist/collection/components/kup-card/kup-card.js +1 -2
  51. package/dist/collection/components/kup-card/standard/kup-card-standard.js +14 -6
  52. package/dist/collection/components/kup-combobox/kup-combobox.js +1 -1
  53. package/dist/collection/components/kup-data-table/kup-data-table-declarations.js +1 -3
  54. package/dist/collection/components/kup-data-table/kup-data-table.js +19 -136
  55. package/dist/collection/components/kup-drawer/kup-drawer.css +1 -0
  56. package/dist/collection/components/kup-drawer/kup-drawer.js +8 -1
  57. package/dist/collection/components/kup-form-editor/kup-form-editor-declarations.js +23 -0
  58. package/dist/collection/components/kup-form-editor/kup-form-editor.css +80 -0
  59. package/dist/collection/components/kup-form-editor/kup-form-editor.js +561 -0
  60. package/dist/collection/components/kup-image-list/kup-image-list-declarations.js +10 -0
  61. package/dist/collection/components/kup-image-list/kup-image-list.css +166 -0
  62. package/dist/collection/components/kup-image-list/kup-image-list.js +432 -0
  63. package/dist/collection/components/kup-photo-frame/kup-photo-frame.css +3 -13
  64. package/dist/collection/components/kup-photo-frame/kup-photo-frame.js +1 -1
  65. package/dist/collection/components/kup-snackbar/kup-snackbar.css +4 -0
  66. package/dist/collection/components/kup-tab-bar/kup-tab-bar.js +18 -19
  67. package/dist/collection/components/kup-time-picker/kup-time-picker.js +2 -2
  68. package/dist/collection/components/kup-tree/kup-tree-declarations.js +0 -4
  69. package/dist/collection/components/kup-tree/kup-tree.css +10 -3
  70. package/dist/collection/components/kup-tree/kup-tree.js +65 -140
  71. package/dist/collection/f-components/f-cell/f-cell.js +7 -7
  72. package/dist/collection/f-components/f-chip/f-chip.js +2 -1
  73. package/dist/collection/managers/kup-data/kup-data-node-helper.js +24 -0
  74. package/dist/collection/managers/kup-data/kup-data.js +4 -1
  75. package/dist/collection/managers/kup-dynamic-position/kup-dynamic-position.js +4 -2
  76. package/dist/collection/managers/kup-interact/kup-interact.js +1 -22
  77. package/dist/collection/managers/kup-language/kup-language-declarations.js +2 -0
  78. package/dist/collection/managers/kup-manager/kup-manager.js +21 -2
  79. package/dist/collection/managers/kup-theme/kup-theme-declarations.js +5 -0
  80. package/dist/collection/managers/kup-tooltip/kup-tooltip.js +53 -20
  81. package/dist/collection/types/GenericTypes.js +2 -0
  82. package/dist/collection/utils/kup-column-menu/kup-column-menu.js +7 -11
  83. package/dist/esm/{cell-utils-f4bdbbc8.js → cell-utils-964da6b5.js} +3 -3
  84. package/dist/esm/{component-c4eb6153.js → component-b1bedf1d.js} +27 -2
  85. package/dist/esm/{f-button-54a49fd8.js → f-button-871a544b.js} +1 -1
  86. package/dist/esm/{f-cell-d5dac50b.js → f-cell-521ef17a.js} +38 -38
  87. package/dist/esm/{f-chip-a3035b4b.js → f-chip-1dda722f.js} +5 -4
  88. package/dist/esm/{f-image-d32465e3.js → f-image-c468d8ae.js} +1 -1
  89. package/dist/esm/f-paginator-utils-7dff8ff0.js +1884 -0
  90. package/dist/esm/{f-text-field-c25cc63f.js → f-text-field-d6c61c73.js} +1 -1
  91. package/dist/esm/{f-text-field-mdc-9fbbefc3.js → f-text-field-mdc-d42d3f9e.js} +2 -284
  92. package/dist/esm/ketchup.js +2 -2
  93. package/dist/esm/kup-accordion.entry.js +5 -5
  94. package/dist/esm/{kup-autocomplete_27.entry.js → kup-autocomplete_25.entry.js} +1445 -5368
  95. package/dist/esm/{kup-echart.entry.js → kup-box_2.entry.js} +17101 -14788
  96. package/dist/esm/kup-calendar.entry.js +42 -34
  97. package/dist/esm/kup-cell.entry.js +7 -7
  98. package/dist/esm/kup-dash-list.entry.js +3 -3
  99. package/dist/esm/kup-dash_2.entry.js +2 -2
  100. package/dist/esm/kup-drawer.entry.js +11 -4
  101. package/dist/esm/kup-field.entry.js +1 -1
  102. package/dist/esm/kup-form-editor.entry.js +400 -0
  103. package/dist/esm/kup-iframe.entry.js +2 -2
  104. package/dist/esm/kup-image-list.entry.js +224 -0
  105. package/dist/esm/kup-lazy.entry.js +2 -2
  106. package/dist/esm/kup-magic-box.entry.js +3 -3
  107. package/dist/esm/kup-manager-58b075b4.js +16686 -0
  108. package/dist/esm/kup-nav-bar.entry.js +2 -2
  109. package/dist/esm/kup-numeric-picker.entry.js +5 -5
  110. package/dist/esm/kup-photo-frame.entry.js +4 -4
  111. package/dist/esm/kup-probe.entry.js +1 -1
  112. package/dist/esm/kup-qlik.entry.js +1 -1
  113. package/dist/esm/kup-snackbar.entry.js +5 -5
  114. package/dist/esm/loader.js +2 -2
  115. package/dist/esm/polyfills/css-shim.js +1 -1
  116. package/dist/esm/{tslib.es6-8f2d44b6.js → tslib.es6-3eea2234.js} +1 -1
  117. package/dist/esm/{utils-f24319a0.js → utils-d7e4b3c2.js} +2 -2
  118. package/dist/ketchup/ketchup.esm.js +1 -1
  119. package/dist/ketchup/{p-7a74ad17.js → p-1ae66cc5.js} +1 -1
  120. package/dist/ketchup/{p-e6709c26.entry.js → p-3c11e615.entry.js} +1 -1
  121. package/dist/ketchup/{p-669bde31.js → p-44ec4f03.js} +1 -1
  122. package/dist/ketchup/p-4ffbc3ff.js +1 -0
  123. package/dist/ketchup/p-5264a3e6.entry.js +1 -0
  124. package/dist/ketchup/{p-e8e3c9da.entry.js → p-65974e48.entry.js} +1 -1
  125. package/dist/ketchup/p-65b46587.entry.js +40 -0
  126. package/dist/ketchup/{p-09d708c4.entry.js → p-6dff70f8.entry.js} +1 -1
  127. package/dist/ketchup/{p-34748c91.js → p-7454cb92.js} +1 -1
  128. package/dist/ketchup/{p-a0b1d769.js → p-79b0730b.js} +1 -1
  129. package/dist/ketchup/p-7eff4eee.js +1 -0
  130. package/dist/ketchup/p-80968627.entry.js +1 -0
  131. package/dist/ketchup/{p-8c44c3b9.js → p-81605f08.js} +4 -5
  132. package/dist/ketchup/p-8cdf61a4.js +1 -0
  133. package/dist/ketchup/{p-8418e8fa.entry.js → p-954cc340.entry.js} +1 -1
  134. package/dist/ketchup/p-976244f9.entry.js +9 -0
  135. package/dist/ketchup/{p-4173422f.entry.js → p-99e0d768.entry.js} +1 -1
  136. package/dist/ketchup/{p-41741c28.entry.js → p-a0f6e25c.entry.js} +1 -1
  137. package/dist/ketchup/p-a203f78b.js +45 -0
  138. package/dist/ketchup/{p-9a61d8dc.entry.js → p-a615a92b.entry.js} +1 -1
  139. package/dist/ketchup/p-aca0e54b.js +30 -0
  140. package/dist/ketchup/p-b8939a8b.entry.js +1 -0
  141. package/dist/ketchup/p-bfc3bac7.js +1 -0
  142. package/dist/ketchup/p-c5ce8951.entry.js +1 -0
  143. package/dist/ketchup/{p-bb8844bf.entry.js → p-d2ee56dd.entry.js} +1 -1
  144. package/dist/ketchup/p-db71436b.entry.js +27 -0
  145. package/dist/ketchup/{p-40f97429.js → p-e0035c58.js} +1 -1
  146. package/dist/ketchup/p-e1039cf2.entry.js +1 -0
  147. package/dist/ketchup/{p-44192f30.entry.js → p-ea10176c.entry.js} +1 -1
  148. package/dist/ketchup/{p-67842f1e.entry.js → p-f09f2f98.entry.js} +1 -1
  149. package/dist/ketchup/{p-203d6295.entry.js → p-f71a1675.entry.js} +1 -1
  150. package/dist/ketchup/{p-11e72a8c.entry.js → p-fac1a08b.entry.js} +1 -1
  151. package/dist/types/components/kup-box/kup-box-declarations.d.ts +3 -5
  152. package/dist/types/components/kup-box/kup-box.d.ts +0 -22
  153. package/dist/types/components/kup-data-table/kup-data-table-declarations.d.ts +2 -4
  154. package/dist/types/components/kup-data-table/kup-data-table.d.ts +1 -19
  155. package/dist/types/components/kup-form-editor/kup-form-editor-declarations.d.ts +79 -0
  156. package/dist/types/components/kup-form-editor/kup-form-editor.d.ts +72 -0
  157. package/dist/types/components/kup-image-list/kup-image-list-declarations.d.ts +14 -0
  158. package/dist/types/components/kup-image-list/kup-image-list.d.ts +56 -0
  159. package/dist/types/components/kup-tab-bar/kup-tab-bar-declarations.d.ts +3 -9
  160. package/dist/types/components/kup-tab-bar/kup-tab-bar.d.ts +6 -6
  161. package/dist/types/components/kup-tree/kup-tree-declarations.d.ts +1 -5
  162. package/dist/types/components/kup-tree/kup-tree.d.ts +1 -24
  163. package/dist/types/components.d.ts +121 -231
  164. package/dist/types/managers/kup-data/kup-data-declarations.d.ts +1 -0
  165. package/dist/types/managers/kup-data/kup-data-node-helper.d.ts +7 -0
  166. package/dist/types/managers/kup-data/kup-data.d.ts +1 -0
  167. package/dist/types/managers/kup-language/kup-language-declarations.d.ts +2 -0
  168. package/dist/types/managers/kup-manager/kup-manager-declarations.d.ts +4 -0
  169. package/dist/types/managers/kup-manager/kup-manager.d.ts +12 -0
  170. package/dist/types/managers/kup-tooltip/kup-tooltip-declarations.d.ts +3 -3
  171. package/dist/types/managers/kup-tooltip/kup-tooltip.d.ts +17 -6
  172. package/dist/types/types/GenericTypes.d.ts +2 -0
  173. package/dist/types/utils/kup-column-menu/kup-column-menu.d.ts +1 -3
  174. package/package.json +15 -14
  175. package/dist/cjs/kup-manager-5c03da64.js +0 -8795
  176. package/dist/collection/assets/tooltip.js +0 -73
  177. package/dist/collection/components/kup-tooltip/kup-tooltip-declarations.js +0 -20
  178. package/dist/collection/components/kup-tooltip/kup-tooltip.css +0 -149
  179. package/dist/collection/components/kup-tooltip/kup-tooltip.js +0 -1205
  180. package/dist/collection/utils/helpers.js +0 -38
  181. package/dist/esm/kup-manager-9316a184.js +0 -8778
  182. package/dist/ketchup/p-12773ca8.js +0 -9
  183. package/dist/ketchup/p-44f8da2a.js +0 -1
  184. package/dist/ketchup/p-4f56932b.js +0 -1
  185. package/dist/ketchup/p-7ba8fa4a.entry.js +0 -39
  186. package/dist/ketchup/p-7de0d7e1.js +0 -1
  187. package/dist/ketchup/p-96bf19aa.entry.js +0 -1
  188. package/dist/ketchup/p-b0ddcce9.entry.js +0 -9
  189. package/dist/ketchup/p-b6c21223.entry.js +0 -27
  190. package/dist/ketchup/p-c58a2a81.entry.js +0 -1
  191. package/dist/ketchup/p-ca3d585b.entry.js +0 -1
  192. package/dist/ketchup/p-ecb7069b.js +0 -135
  193. package/dist/types/components/kup-tooltip/kup-tooltip-declarations.d.ts +0 -93
  194. package/dist/types/components/kup-tooltip/kup-tooltip.d.ts +0 -142
  195. package/dist/types/utils/helpers.d.ts +0 -4
@@ -1 +1 @@
1
- import{e as n,d as t}from"./p-12773ca8.js";const u=document.documentElement;var r;function i(n){if(n)for(let t=0;t<n.length;t++)n[t].id=t.toString()}function e(n){const t={hour:"2-digit",minute:"2-digit",hour12:!1};return 1==n&&(t.second="2-digit"),new Intl.DateTimeFormat(u.ketchup.dates.getLocale()+"-u-hc-h23",t).formatToParts(new Date).map((n=>{switch(n.type){case"hour":return"HH";case"minute":return"mm";case"second":return"ss";default:return n.value}})).join("")}function c(n,t){return null!=n&&""!=n.trim()&&!!o(h(n,t))}function o(n){return!isNaN(n)}function s(n){return n&&null!=n&&""!=n.trim()||(n="0"),u.ketchup.math.numberify(n)}function a(n){let t="";return"P"==(n=n.toUpperCase())?t=" %":"VE"==n?t=" €":"VL"==n?t=" £":"VV"==n&&(t=" $"),t}function f(n,t,r){if(null==n||isNaN(n))return"";let i=function(n,t){return null==n?"":I(n,t,u.ketchup.dates.getLocale(),!0)}(n,t);return i+=a(r),i}function l(n,t,u){return f(s(n),t,u)}function h(n,t){return d(n,t,m(u.ketchup.dates.getLocale()))}function g(n,t){return d(n,t,".")}function d(n,t,r){if(null==n||""==n.trim())return"";let i=n,e=a(t);""!=e&&(n=n.replace(e,""));let c=null;return c="."==r?/,/g:/\./g,n=n.replace(c,""),"."!=r&&(n=n.replace(/,/g,".")),null==u.ketchup.math.numberify(n)||isNaN(u.ketchup.math.numberify(n))?i:I(s(n),-1,"en-US",!1)}function m(n){return function(n){return Intl.NumberFormat(n).formatToParts(1000.1).find((n=>"decimal"===n.type)).value}(n)}function I(n,t,u,r){return null==n&&(n=0),null!=t&&-1!=t||(t=function(n){if(Math.floor(n)===n)return 0;let t=n.toString().split(".")[1];return t&&t.length?t.length:0}(n)),Number(n).toLocaleString(u,t>-1?{minimumFractionDigits:t,maximumFractionDigits:t,useGrouping:r}:{useGrouping:r})}function w(n,t){const r={hour:"2-digit",minute:"2-digit",hour12:!1};return 1==t&&(r.second="2-digit"),n.toLocaleTimeString(u.ketchup.dates.getLocale()+"-u-hc-h23",r)}function N(n,t){let r=e(t);return u.ketchup.dates.isValid(n,r,!0)}function p(n){return D(n,t.ISO_DATE_TIME,!0)}function D(t,r,i){let c=e(i);return u.ketchup.dates.isValid(t,c)?u.ketchup.dates.format(u.ketchup.dates.normalize(t,n.TIME),r):""}function b(t,r,i){const e={hour:"2-digit",minute:"2-digit",hour12:!1};return 1==r&&(e.second="2-digit"),function(n,t,r,i){if(null==i)return t.toLocaleTimeString(u.ketchup.dates.getLocale()+"-u-hc-h23",r);switch(i){case"I13":case"I12":break;case"I11":case"I14":case"I1H":case"I1M":case"I21":case"I22":case"I23":case"I24":case"I2H":case"I2D":case"I2M":return n}return t.toLocaleTimeString(u.ketchup.dates.getLocale()+"-u-hc-h23",r)}(t,u.ketchup.dates.toDate(u.ketchup.dates.normalize(t,n.TIME)),e,i)}function H(t){return u.ketchup.dates.toDate(u.ketchup.dates.normalize(t,n.TIMESTAMP)).toLocaleString(u.ketchup.dates.getLocale()+"-u-hc-h23",{day:"2-digit",month:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1})}function V(n,t){if(null==n)return"";const r=new Date;r.setDate(1),r.setMonth(n-1);const i={month:t};return new Intl.DateTimeFormat(u.ketchup.dates.getLocale(),i).format(r)}function j(n){null!=n&&""!=n.trim()||(n=r.LONG);for(var t=[],u=0;u<12;u++)t[u]=V(u+1,n);return t}function M(n,t,u){let r={};if(u)r=t;else for(const u in t)Object.prototype.hasOwnProperty.call(t,u)&&(r[u]=n[u]);return r}function k(n,t,u){for(const r in u)t[r]?n[r]=u[r]:n.rootElement[r]=u[r]}!function(n){n.NUMERIC="numeric",n.DIGIT2="2-digit",n.LONG="long",n.SHORT="short",n.NARROW="narrow"}(r||(r={}));export{r as D,p as a,c as b,h as c,s as d,o as e,D as f,M as g,i as h,N as i,j,l as k,w as l,b as m,f as n,H as o,m as p,k as s,g as u}
1
+ import{r as n,d as t}from"./p-aca0e54b.js";const u=document.documentElement;var r;function i(n){if(n)for(let t=0;t<n.length;t++)n[t].id=t.toString()}function e(n){const t={hour:"2-digit",minute:"2-digit",hour12:!1};return 1==n&&(t.second="2-digit"),new Intl.DateTimeFormat(u.ketchup.dates.getLocale()+"-u-hc-h23",t).formatToParts(new Date).map((n=>{switch(n.type){case"hour":return"HH";case"minute":return"mm";case"second":return"ss";default:return n.value}})).join("")}function c(n,t){return null!=n&&""!=n.trim()&&!!o(h(n,t))}function o(n){return!isNaN(n)}function s(n){return n&&null!=n&&""!=n.trim()||(n="0"),u.ketchup.math.numberify(n)}function a(n){let t="";return"P"==(n=n.toUpperCase())?t=" %":"VE"==n?t=" €":"VL"==n?t=" £":"VV"==n&&(t=" $"),t}function f(n,t,r){if(null==n||isNaN(n))return"";let i=function(n,t){return null==n?"":I(n,t,u.ketchup.dates.getLocale(),!0)}(n,t);return i+=a(r),i}function l(n,t,u){return f(s(n),t,u)}function h(n,t){return d(n,t,m(u.ketchup.dates.getLocale()))}function g(n,t){return d(n,t,".")}function d(n,t,r){if(null==n||""==n.trim())return"";let i=n,e=a(t);""!=e&&(n=n.replace(e,""));let c=null;return c="."==r?/,/g:/\./g,n=n.replace(c,""),"."!=r&&(n=n.replace(/,/g,".")),null==u.ketchup.math.numberify(n)||isNaN(u.ketchup.math.numberify(n))?i:I(s(n),-1,"en-US",!1)}function m(n){return function(n){return Intl.NumberFormat(n).formatToParts(1000.1).find((n=>"decimal"===n.type)).value}(n)}function I(n,t,u,r){return null==n&&(n=0),null!=t&&-1!=t||(t=function(n){if(Math.floor(n)===n)return 0;let t=n.toString().split(".")[1];return t&&t.length?t.length:0}(n)),Number(n).toLocaleString(u,t>-1?{minimumFractionDigits:t,maximumFractionDigits:t,useGrouping:r}:{useGrouping:r})}function w(n,t){const r={hour:"2-digit",minute:"2-digit",hour12:!1};return 1==t&&(r.second="2-digit"),n.toLocaleTimeString(u.ketchup.dates.getLocale()+"-u-hc-h23",r)}function N(n,t){let r=e(t);return u.ketchup.dates.isValid(n,r,!0)}function p(n){return D(n,t.ISO_DATE_TIME,!0)}function D(t,r,i){let c=e(i);return u.ketchup.dates.isValid(t,c)?u.ketchup.dates.format(u.ketchup.dates.normalize(t,n.TIME),r):""}function b(t,r,i){const e={hour:"2-digit",minute:"2-digit",hour12:!1};return 1==r&&(e.second="2-digit"),function(n,t,r,i){if(null==i)return t.toLocaleTimeString(u.ketchup.dates.getLocale()+"-u-hc-h23",r);switch(i){case"I13":case"I12":break;case"I11":case"I14":case"I1H":case"I1M":case"I21":case"I22":case"I23":case"I24":case"I2H":case"I2D":case"I2M":return n}return t.toLocaleTimeString(u.ketchup.dates.getLocale()+"-u-hc-h23",r)}(t,u.ketchup.dates.toDate(u.ketchup.dates.normalize(t,n.TIME)),e,i)}function H(t){return u.ketchup.dates.toDate(u.ketchup.dates.normalize(t,n.TIMESTAMP)).toLocaleString(u.ketchup.dates.getLocale()+"-u-hc-h23",{day:"2-digit",month:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1})}function V(n,t){if(null==n)return"";const r=new Date;r.setDate(1),r.setMonth(n-1);const i={month:t};return new Intl.DateTimeFormat(u.ketchup.dates.getLocale(),i).format(r)}function j(n){null!=n&&""!=n.trim()||(n=r.LONG);for(var t=[],u=0;u<12;u++)t[u]=V(u+1,n);return t}function M(n,t,u){let r={};if(u)r=t;else for(const u in t)Object.prototype.hasOwnProperty.call(t,u)&&(r[u]=n[u]);return r}function k(n,t,u){for(const r in u)t[r]?n[r]=u[r]:n.rootElement[r]=u[r]}!function(n){n.NUMERIC="numeric",n.DIGIT2="2-digit",n.LONG="long",n.SHORT="short",n.NARROW="narrow"}(r||(r={}));export{r as D,j as a,N as b,w as c,b as d,H as e,D as f,M as g,s as h,i,p as j,c as k,h as l,g as m,f as n,o,m as p,k as s,l as u}
@@ -0,0 +1 @@
1
+ import{r as t,c as e,f as i,h as o,H as s,g as r}from"./p-34b74425.js";import{k as h}from"./p-aca0e54b.js";import{g as a,s as n}from"./p-e0035c58.js";import{c as p}from"./p-97e8ea42.js";var f;!function(t){t.customStyle="Custom style of the component.",t.placeholderAttrs="Html attributes of the picture before the component enters the viewport.",t.resourceAttrs="Html attributes of the picture after the component enters the viewport."}(f||(f={}));var c,l,d,m,u,w,b=function(t,e,i,o){if("a"===i&&!o)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?o:"a"===i?o.call(t):o?o.value:e.get(t)},v=function(t,e,i,o,s){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!s:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===o?s.call(t,i):s?s.value=i:e.set(t,i),i};const k=class{constructor(i){t(this,i),this.kupPhotoFramePlaceholderLoad=e(this,"kup-photoframe-placeholderload",6),this.kupPhotoFrameResourceLoad=e(this,"kup-photoframe-resourceload",6),this.isInViewport=!1,this.customStyle="",this.placeholderAttrs={},this.resourceAttrs={},this.threshold=.25,c.set(this,null),l.set(this,h()),d.set(this,null),m.set(this,null),u.set(this,!1),w.set(this,null)}async getProps(t){return a(this,f,t)}async refresh(){i(this)}async setProps(t){n(this,f,t)}setObserver(){v(this,c,new IntersectionObserver((t=>{t.forEach((t=>{t.isIntersecting&&(this.isInViewport=!0,b(this,c,"f").unobserve(this.rootElement))}))}),{threshold:this.threshold}),"f")}componentWillLoad(){b(this,l,"f").debug.logLoad(this,!1),b(this,l,"f").theme.register(this),this.setObserver()}componentDidLoad(){b(this,l,"f").debug.logLoad(this,!0)}componentWillRender(){b(this,l,"f").debug.logRender(this,!1)}componentDidRender(){b(this,l,"f").debug.logRender(this,!0)}render(){return this.isInViewport&&!b(this,u,"f")&&v(this,u,!0,"f"),o(s,null,o("style",null,b(this,l,"f").theme.setKupStyle(this.rootElement)),o("div",{id:p,ref:t=>{v(this,w,t,"f")}},o("img",Object.assign({},this.placeholderAttrs,{class:"placeholder",ref:t=>v(this,d,t,"f"),onLoad:()=>{b(this,d,"f").naturalWidth>b(this,d,"f").naturalHeight?b(this,w,"f").classList.add("horizontal"):b(this,w,"f").classList.add("vertical"),b(this,c,"f").observe(this.rootElement),b(this,d,"f").classList.add("placeholder--loaded"),this.kupPhotoFramePlaceholderLoad.emit({comp:this,id:this.rootElement.id})}})),b(this,u,"f")?o("img",Object.assign({},this.resourceAttrs,{class:"resource",ref:t=>v(this,m,t,"f"),onLoad:()=>{b(this,m,"f").classList.add("resource--fade-in"),b(this,d,"f").classList.add("placeholder--fade-out"),this.kupPhotoFrameResourceLoad.emit({comp:this,id:this.rootElement.id})}})):null))}disconnectedCallback(){b(this,l,"f").theme.unregister(this),b(this,c,"f").unobserve(this.rootElement)}get rootElement(){return r(this)}};c=new WeakMap,l=new WeakMap,d=new WeakMap,m=new WeakMap,u=new WeakMap,w=new WeakMap,k.style=":host{--kup_photoframe_border:var(\n --kup-photoframe-border,\n 1px inset var(--kup-border-color)\n );--kup_photoframe_fade_out_time:var(--kup-photoframe-fade-out-time, 3000ms);border:var(--kup_photoframe_border);display:block;height:100%;position:relative;width:100%}#kup-component{position:relative;height:100%;width:100%}img{max-height:100%;max-width:100%}.horizontal img{width:100%}.vertical img{height:100%}.placeholder{opacity:1;transition:opacity var(--kup_photoframe_fade_out_time) ease-out;z-index:1}.placeholder--fade-out{opacity:0}.resource{left:0;position:absolute;top:0;z-index:-1}:host(.kup-fit) img{height:100%;object-fit:cover;width:100%}";export{k as kup_photo_frame}
@@ -1 +1 @@
1
- import{r as t,c as i,f as s,h as e,H as o,g as l}from"./p-34b74425.js";import{k as a,j as h}from"./p-12773ca8.js";import{c as n}from"./p-97e8ea42.js";var u;!function(t){t.customStyle="Custom style of the component.",t.data="Effective data to pass to the component.",t.label="The text of the label. If set to empty or has only white space chars, the label will be removed.",t.labelPos="Sets the label's position, left right or top.",t.showSubmit="Sets whether the submit button must be displayed or not.",t.submitLabel="Sets the submit button's label.",t.submitPos="Sets the submit button's position, top right bottom or left.",t.type="The type of the FLD"}(u||(u={}));const r=class{constructor(s){t(this,s),this.kupChange=i(this,"kup-field-change",6),this.kupSubmit=i(this,"kup-field-submit",6),this.customStyle="",this.data={},this.label="",this.labelPos="left",this.showSubmit=!1,this.submitLabel="",this.submitPos="right",this.type=void 0,this.kupManager=a(),this.currentValue=null,this.previousValue=null,this.onChangeInstance=this.onChange.bind(this),this.onSubmitInstance=this.onSubmit.bind(this)}onChange(t){const{value:i,info:s}=t.detail;this.kupChange.emit({originalEvent:t,oldValue:this.currentValue,value:i,info:s}),this.previousValue=this.currentValue,this.currentValue=i}onSubmit(t){this.kupSubmit.emit({originalEvent:t,oldValue:this.previousValue,value:this.currentValue,info:{obj:t.detail.info&&t.detail.info.obj?t.detail.info.obj:void 0}})}async getCurrentValue(){return this.currentValue}async getProps(t){let i={};if(t)i=u;else for(const t in u)Object.prototype.hasOwnProperty.call(u,t)&&(i[t]=this[t]);return i}async refresh(){s(this)}componentWillLoad(){this.kupManager.debug.logLoad(this,!1),this.kupManager.theme.register(this)}componentDidLoad(){this.kupManager.debug.logLoad(this,!0)}componentWillRender(){this.kupManager.debug.logRender(this,!1)}componentDidRender(){this.kupManager.debug.logRender(this,!0)}render(){let t=[],i=null,s=null,l="",a=Object.assign({},this.data);this.label.trim().length&&(l+=" label-"+this.labelPos,i=e("label",{class:"kup-field__label kup-field--"+this.labelPos},this.label)),this.showSubmit&&(l+=" submit-"+this.submitPos,s=e("kup-button",{class:"kup-field__submit",label:this.submitLabel,"onkup-button-click":this.onSubmitInstance}));const u="top"===this.labelPos,r="left"===this.labelPos,p="right"===this.labelPos,b="top"===this.submitPos,c="left"===this.submitPos,m="right"===this.submitPos,f="bottom"===this.submitPos;let d;if((u||b)&&t.push(e("div",{class:"kup-field__top-container"},u&&i?i:null,b&&s?s:null)),r&&i&&t.push(i),c&&s&&t.push(s),void 0===this.type)this.kupManager.debug.logMessage(this,"Type (state) is undefined!",h.WARNING);else switch(this.type.toLowerCase()){case"cmb":d="kup-combobox",a.onKupComboboxChange=this.onChangeInstance;break;case"itx":d="kup-text-field",a.onkupTextFieldChange=this.onChangeInstance;break;case"rad":d="kup-radio",a.onkupRadioChange=this.onChangeInstance}return t.push(e(d,Object.assign({class:"kup-field__component"},a))),p&&i&&t.push(i),(m||f)&&s&&t.push(s),e(o,null,e("style",null,this.kupManager.theme.setKupStyle(this.rootElement)),e("div",{id:n,class:l},t))}disconnectedCallback(){this.kupManager.theme.unregister(this)}get rootElement(){return l(this)}};r.style=":host{display:block;font-size:var(--kup-font-size)}label{color:var(--kup-text-color);font-family:var(--kup-font-family);font-size:1em}.kup-field__component{display:inline-block}.label-top.submit-top label{float:left;margin:auto auto 1em auto}.label-top.submit-top kup-button{float:right;margin:auto auto 1em auto}.label-right label{display:inline-block;margin:auto auto auto 1em}.submit-right kup-button{display:inline-block;margin:auto auto auto 1em}.label-left label{display:inline-block;margin:auto 1em auto auto}.submit-left kup-button{display:inline-block;margin:auto 1em auto auto}.submit-bottom kup-button{display:block;margin:1em auto auto auto}";export{r as kup_field}
1
+ import{r as t,c as i,f as s,h as e,H as o,g as l}from"./p-34b74425.js";import{k as a,c as h}from"./p-aca0e54b.js";import{c as n}from"./p-97e8ea42.js";var u;!function(t){t.customStyle="Custom style of the component.",t.data="Effective data to pass to the component.",t.label="The text of the label. If set to empty or has only white space chars, the label will be removed.",t.labelPos="Sets the label's position, left right or top.",t.showSubmit="Sets whether the submit button must be displayed or not.",t.submitLabel="Sets the submit button's label.",t.submitPos="Sets the submit button's position, top right bottom or left.",t.type="The type of the FLD"}(u||(u={}));const r=class{constructor(s){t(this,s),this.kupChange=i(this,"kup-field-change",6),this.kupSubmit=i(this,"kup-field-submit",6),this.customStyle="",this.data={},this.label="",this.labelPos="left",this.showSubmit=!1,this.submitLabel="",this.submitPos="right",this.type=void 0,this.kupManager=a(),this.currentValue=null,this.previousValue=null,this.onChangeInstance=this.onChange.bind(this),this.onSubmitInstance=this.onSubmit.bind(this)}onChange(t){const{value:i,info:s}=t.detail;this.kupChange.emit({originalEvent:t,oldValue:this.currentValue,value:i,info:s}),this.previousValue=this.currentValue,this.currentValue=i}onSubmit(t){this.kupSubmit.emit({originalEvent:t,oldValue:this.previousValue,value:this.currentValue,info:{obj:t.detail.info&&t.detail.info.obj?t.detail.info.obj:void 0}})}async getCurrentValue(){return this.currentValue}async getProps(t){let i={};if(t)i=u;else for(const t in u)Object.prototype.hasOwnProperty.call(u,t)&&(i[t]=this[t]);return i}async refresh(){s(this)}componentWillLoad(){this.kupManager.debug.logLoad(this,!1),this.kupManager.theme.register(this)}componentDidLoad(){this.kupManager.debug.logLoad(this,!0)}componentWillRender(){this.kupManager.debug.logRender(this,!1)}componentDidRender(){this.kupManager.debug.logRender(this,!0)}render(){let t=[],i=null,s=null,l="",a=Object.assign({},this.data);this.label.trim().length&&(l+=" label-"+this.labelPos,i=e("label",{class:"kup-field__label kup-field--"+this.labelPos},this.label)),this.showSubmit&&(l+=" submit-"+this.submitPos,s=e("kup-button",{class:"kup-field__submit",label:this.submitLabel,"onkup-button-click":this.onSubmitInstance}));const u="top"===this.labelPos,r="left"===this.labelPos,b="right"===this.labelPos,p="top"===this.submitPos,c="left"===this.submitPos,m="right"===this.submitPos,f="bottom"===this.submitPos;let d;if((u||p)&&t.push(e("div",{class:"kup-field__top-container"},u&&i?i:null,p&&s?s:null)),r&&i&&t.push(i),c&&s&&t.push(s),void 0===this.type)this.kupManager.debug.logMessage(this,"Type (state) is undefined!",h.WARNING);else switch(this.type.toLowerCase()){case"cmb":d="kup-combobox",a.onKupComboboxChange=this.onChangeInstance;break;case"itx":d="kup-text-field",a.onkupTextFieldChange=this.onChangeInstance;break;case"rad":d="kup-radio",a.onkupRadioChange=this.onChangeInstance}return t.push(e(d,Object.assign({class:"kup-field__component"},a))),b&&i&&t.push(i),(m||f)&&s&&t.push(s),e(o,null,e("style",null,this.kupManager.theme.setKupStyle(this.rootElement)),e("div",{id:n,class:l},t))}disconnectedCallback(){this.kupManager.theme.unregister(this)}get rootElement(){return l(this)}};r.style=":host{display:block;font-size:var(--kup-font-size)}label{color:var(--kup-text-color);font-family:var(--kup-font-family);font-size:1em}.kup-field__component{display:inline-block}.label-top.submit-top label{float:left;margin:auto auto 1em auto}.label-top.submit-top kup-button{float:right;margin:auto auto 1em auto}.label-right label{display:inline-block;margin:auto auto auto 1em}.submit-right kup-button{display:inline-block;margin:auto auto auto 1em}.label-left label{display:inline-block;margin:auto 1em auto auto}.submit-left kup-button{display:inline-block;margin:auto 1em auto auto}.submit-bottom kup-button{display:block;margin:1em auto auto auto}";export{r as kup_field}
@@ -1 +1 @@
1
- import{r as t,c as i,f as s,h as e,H as h,g as o}from"./p-34b74425.js";import{k as r,K as l,x as n}from"./p-12773ca8.js";import{c as u}from"./p-97e8ea42.js";import{F as c}from"./p-669bde31.js";import{F as a}from"./p-ecb7069b.js";import"./p-a0b1d769.js";import"./p-8c44c3b9.js";var p;!function(t){t.customStyle="Custom style of the component.",t.data="Props of the sub-components.",t.decimals="Defaults at false. When set to true, the component has decimals.",t.disabled="Defaults at false. When set to true, the component is disabled.",t.initialValue="Sets the initial value of the component",t.maxDecimals="when set, the component allows you to enter decimals with a maximum of characters.",t.maxIntegers="When set, the component allows you to enter integer numbers with a maximum of characters.",t.maxLength="When set, the component allows you to enter numbers with a maximum of characters, including decimals.",t.negative="Defaults at false. When set to true, the component has negative number."}(p||(p={}));const m=class{constructor(s){t(this,s),this.kupBlur=i(this,"kup-numericpicker-blur",6),this.kupChange=i(this,"kup-numericpicker-change",6),this.kupClick=i(this,"kup-numericpicker-click",6),this.kupFocus=i(this,"kup-numericpicker-focus",6),this.kupInput=i(this,"kup-numericpicker-input",6),this.kupIconClick=i(this,"kup-numericpicker-iconclick",6),this.kupItemClick=i(this,"kup-numericpicker-itemclick",6),this.kupTextFieldSubmit=i(this,"kup-numericpicker-textfieldsubmit",6),this.kupClearIconClick=i(this,"kup-numericpicker-cleariconclick",6),this.stateSwitcher=!1,this.value="",this.customStyle="",this.data=null,this.decimals=!1,this.disabled=!1,this.initialValue="",this.maxDecimals=null,this.maxIntegers=null,this.maxLength=null,this.negative=!1,this.kupManager=r(),this.textfieldEl=null,this.pickerContainerEl=null,this.pickerEl={value:(new Date).toISOString(),date:new Date},this.clickCb=null}onKupPickerItemClick(t){this.setPickerValueSelected(t),this.kupChange.emit({comp:this,id:this.rootElement.id,value:this.value}),this.kupItemClick.emit({comp:this,id:this.rootElement.id,value:this.value}),this.setFocus()}onKupClearIconClick(){this.setPickerValueSelected(""),this.kupChange.emit({comp:this,id:this.rootElement.id,value:this.value}),this.kupClearIconClick.emit({comp:this,id:this.rootElement.id})}onKupBlur(){this.kupBlur.emit({id:this.rootElement.id,value:this.value,comp:this})}onKupChange(t){this.refreshPickerValue(t.target.value,this.kupChange)}onKupClick(){this.kupClick.emit({comp:this,id:this.rootElement.id,value:this.value})}onKupFocus(){this.kupFocus.emit({comp:this,id:this.rootElement.id,value:this.value})}onKupInput(t){this.refreshPickerValue(t.target.value,this.kupInput,!0)}onkupTextFieldSubmit(t){"Enter"===t.key&&this.refreshPickerValue(t.target.value,this.kupTextFieldSubmit)}onKupIconClick(){this.isPickerOpened()?this.closePicker():this.openPicker(),this.kupIconClick.emit({comp:this,id:this.rootElement.id,value:this.value})}listenKeyup(t){this.isPickerOpened()&&("Escape"===t.key&&this.closePicker(),"Enter"===t.key&&this.setPickerValueSelected())}async getValue(){return this.value}async getProps(t){let i={};if(t)i=p;else for(const t in p)Object.prototype.hasOwnProperty.call(p,t)&&(i[t]=this[t]);return i}async refresh(){s(this)}async setFocus(){null!=this.textfieldEl&&this.textfieldEl.focus()}async setValue(t){this.value=t}refreshPickerValue(t,i,s){let e=this.kupManager.math.numberify(t,!0);if(e){let t=e.toString();const h=t.indexOf(".");let o=h>-1?t.substring(0,h):t,r=h>-1?t.substring(h+1):"";for(this.maxIntegers&&o.length>this.maxIntegers&&(o=o.substring(o.length-this.maxIntegers)),this.maxDecimals&&r.length>this.maxDecimals&&(r=r.substring(0,this.maxDecimals));this.maxLength&&o.length+r.length>this.maxLength;)r.length>1?r=r.substring(0,r.length-1):o.length>1&&(o=o.substring(1));t=h>-1?`${o}.${r}`:o,1!=s&&this.setValue(t),null!=i&&i.emit({id:this.rootElement.id,value:t})}}setPickerValueSelected(t){1!=this.disabled&&(null==t&&(t=this.getPickerValueSelected()),this.closePicker(),null!=t&&this.setValue(t))}getPickerValueSelected(){return this.pickerEl.value}getValueForPickerComponent(){return this.value}openPicker(){const t=this.textfieldEl;this.pickerContainerEl.menuVisible=!0;const i=this.pickerContainerEl.style;i.height="auto",i.minWidth=this.textfieldEl.parentElement.clientWidth+"px",null!=t&&t.classList.add("toggled"),this.kupManager.dynamicPosition.isRegistered(this.pickerContainerEl)?this.kupManager.dynamicPosition.changeAnchor(this.pickerContainerEl,this.textfieldEl.parentElement):this.kupManager.dynamicPosition.register(this.pickerContainerEl,this.textfieldEl.parentElement,0,l.AUTO,!0),this.kupManager.dynamicPosition.start(this.pickerContainerEl),this.clickCb||(this.clickCb={cb:()=>{this.closePicker()},el:this.pickerContainerEl}),this.kupManager.addClickCallback(this.clickCb,!0)}closePicker(){if(this.kupManager.removeClickCallback(this.clickCb),!this.isPickerOpened())return;let t=this.textfieldEl;null!=t&&t.classList.remove("toggled"),this.pickerContainerEl.menuVisible=!1,this.kupManager.dynamicPosition.stop(this.pickerContainerEl)}isPickerOpened(){return 1==this.pickerContainerEl.menuVisible}getTextFieldId(){return this.textfieldEl.id}prepTextfield(){this.decimals||this.maxIntegers||(this.maxIntegers=17),!this.decimals||this.maxIntegers||this.maxDecimals||(this.maxIntegers=15,this.maxDecimals=2);const t=this.rootElement.classList.contains("kup-full-height"),i=this.rootElement.classList.contains("kup-full-width"),s=Object.assign({},this.data["kup-text-field"]);return s.icon||(s.icon="calculator"),s.icon&&(s.trailingIcon=!0),e(c,Object.assign({},s,{disabled:this.disabled,fullHeight:t,fullWidth:i,id:this.rootElement.id+"_text-field",value:this.kupManager.math.numbers.toLocaleString(this.value),onBlur:()=>this.onKupBlur(),onChange:t=>this.onKupChange(t),onClearIconClick:()=>this.onKupClearIconClick(),onClick:()=>this.onKupClick(),onFocus:()=>this.onKupFocus(),onIconClick:()=>this.onKupIconClick(),onKeyDown:t=>this.onkupTextFieldSubmit(t),onInput:t=>this.onKupInput(t)}),this.prepPicker())}prepPicker(){return e("kup-card",{ref:t=>this.pickerContainerEl=t,data:{options:{decimals:this.decimals,initialValue:this.value,maxDecimals:this.maxDecimals,maxIntegers:this.maxIntegers,maxLength:this.maxLength,negative:this.negative,resetStatus:!0}},layoutFamily:n.BUILT_IN,layoutNumber:5,sizeX:"300px",sizeY:"auto",isMenu:!0,"onkup-card-click":t=>{null!=t.detail.value&&this.onKupPickerItemClick(t.detail.value)}})}componentWillLoad(){this.kupManager.dates.register(this),this.kupManager.debug.logLoad(this,!1),this.kupManager.theme.register(this),this.value=this.initialValue,this.data||(this.data={"kup-text-field":{}})}componentDidLoad(){this.kupManager.debug.logLoad(this,!0)}componentWillRender(){this.kupManager.debug.logRender(this,!1)}componentDidRender(){const t=this.rootElement.shadowRoot;if(t){const i=t.querySelector(".f-text-field");i&&(this.textfieldEl=i.querySelector("input"),a(i))}this.kupManager.debug.logRender(this,!0)}render(){return e(h,null,e("style",null,this.kupManager.theme.setKupStyle(this.rootElement)),e("div",{id:u},this.prepTextfield()))}disconnectedCallback(){this.kupManager.dates.unregister(this),this.kupManager.theme.unregister(this),this.pickerContainerEl&&this.pickerContainerEl.remove()}get rootElement(){return o(this)}};m.style=":host{display:block;font-size:var(--kup-font-size)}.f-text-field{position:relative}:host(.kup-full-height){height:100%}:host(.kup-full-height) #kup-component{height:100%}:host(.kup-full-width){width:100%}:host(.kup-full-width) #kup-component{width:100%}:host(.kup-danger){--kup-textfield-primary-color:var(--kup-danger-color);--kup-textfield-primary-color-rgb:var(--kup-danger-color-rgb)}:host(.kup-info){--kup-textfield-primary-color:var(--kup-info-color);--kup-textfield-primary-color-rgb:var(--kup-info-color-rgb)}:host(.kup-secondary){--kup-textfield-primary-color:var(--kup-secondary-color);--kup-textfield-primary-color-rgb:var(--kup-secondary-color-rgb)}:host(.kup-success){--kup-textfield-primary-color:var(--kup-success-color);--kup-textfield-primary-color-rgb:var(--kup-success-color-rgb)}:host(.kup-warning){--kup-textfield-primary-color:var(--kup-warning-color);--kup-textfield-primary-color-rgb:var(--kup-warning-color-rgb)}";export{m as kup_numeric_picker}
1
+ import{r as t,c as i,f as s,h as e,H as h,g as o}from"./p-34b74425.js";import{k as r,K as l,o as n}from"./p-aca0e54b.js";import{c as u}from"./p-97e8ea42.js";import{F as c}from"./p-44ec4f03.js";import{F as a}from"./p-a203f78b.js";import"./p-79b0730b.js";import"./p-81605f08.js";var p;!function(t){t.customStyle="Custom style of the component.",t.data="Props of the sub-components.",t.decimals="Defaults at false. When set to true, the component has decimals.",t.disabled="Defaults at false. When set to true, the component is disabled.",t.initialValue="Sets the initial value of the component",t.maxDecimals="when set, the component allows you to enter decimals with a maximum of characters.",t.maxIntegers="When set, the component allows you to enter integer numbers with a maximum of characters.",t.maxLength="When set, the component allows you to enter numbers with a maximum of characters, including decimals.",t.negative="Defaults at false. When set to true, the component has negative number."}(p||(p={}));const m=class{constructor(s){t(this,s),this.kupBlur=i(this,"kup-numericpicker-blur",6),this.kupChange=i(this,"kup-numericpicker-change",6),this.kupClick=i(this,"kup-numericpicker-click",6),this.kupFocus=i(this,"kup-numericpicker-focus",6),this.kupInput=i(this,"kup-numericpicker-input",6),this.kupIconClick=i(this,"kup-numericpicker-iconclick",6),this.kupItemClick=i(this,"kup-numericpicker-itemclick",6),this.kupTextFieldSubmit=i(this,"kup-numericpicker-textfieldsubmit",6),this.kupClearIconClick=i(this,"kup-numericpicker-cleariconclick",6),this.stateSwitcher=!1,this.value="",this.customStyle="",this.data=null,this.decimals=!1,this.disabled=!1,this.initialValue="",this.maxDecimals=null,this.maxIntegers=null,this.maxLength=null,this.negative=!1,this.kupManager=r(),this.textfieldEl=null,this.pickerContainerEl=null,this.pickerEl={value:(new Date).toISOString(),date:new Date},this.clickCb=null}onKupPickerItemClick(t){this.setPickerValueSelected(t),this.kupChange.emit({comp:this,id:this.rootElement.id,value:this.value}),this.kupItemClick.emit({comp:this,id:this.rootElement.id,value:this.value}),this.setFocus()}onKupClearIconClick(){this.setPickerValueSelected(""),this.kupChange.emit({comp:this,id:this.rootElement.id,value:this.value}),this.kupClearIconClick.emit({comp:this,id:this.rootElement.id})}onKupBlur(){this.kupBlur.emit({id:this.rootElement.id,value:this.value,comp:this})}onKupChange(t){this.refreshPickerValue(t.target.value,this.kupChange)}onKupClick(){this.kupClick.emit({comp:this,id:this.rootElement.id,value:this.value})}onKupFocus(){this.kupFocus.emit({comp:this,id:this.rootElement.id,value:this.value})}onKupInput(t){this.refreshPickerValue(t.target.value,this.kupInput,!0)}onkupTextFieldSubmit(t){"Enter"===t.key&&this.refreshPickerValue(t.target.value,this.kupTextFieldSubmit)}onKupIconClick(){this.isPickerOpened()?this.closePicker():this.openPicker(),this.kupIconClick.emit({comp:this,id:this.rootElement.id,value:this.value})}listenKeyup(t){this.isPickerOpened()&&("Escape"===t.key&&this.closePicker(),"Enter"===t.key&&this.setPickerValueSelected())}async getValue(){return this.value}async getProps(t){let i={};if(t)i=p;else for(const t in p)Object.prototype.hasOwnProperty.call(p,t)&&(i[t]=this[t]);return i}async refresh(){s(this)}async setFocus(){null!=this.textfieldEl&&this.textfieldEl.focus()}async setValue(t){this.value=t}refreshPickerValue(t,i,s){let e=this.kupManager.math.numberify(t,!0);if(e){let t=e.toString();const h=t.indexOf(".");let o=h>-1?t.substring(0,h):t,r=h>-1?t.substring(h+1):"";for(this.maxIntegers&&o.length>this.maxIntegers&&(o=o.substring(o.length-this.maxIntegers)),this.maxDecimals&&r.length>this.maxDecimals&&(r=r.substring(0,this.maxDecimals));this.maxLength&&o.length+r.length>this.maxLength;)r.length>1?r=r.substring(0,r.length-1):o.length>1&&(o=o.substring(1));t=h>-1?`${o}.${r}`:o,1!=s&&this.setValue(t),null!=i&&i.emit({id:this.rootElement.id,value:t})}}setPickerValueSelected(t){1!=this.disabled&&(null==t&&(t=this.getPickerValueSelected()),this.closePicker(),null!=t&&this.setValue(t))}getPickerValueSelected(){return this.pickerEl.value}getValueForPickerComponent(){return this.value}openPicker(){const t=this.textfieldEl;this.pickerContainerEl.menuVisible=!0;const i=this.pickerContainerEl.style;i.height="auto",i.minWidth=this.textfieldEl.parentElement.clientWidth+"px",null!=t&&t.classList.add("toggled"),this.kupManager.dynamicPosition.isRegistered(this.pickerContainerEl)?this.kupManager.dynamicPosition.changeAnchor(this.pickerContainerEl,this.textfieldEl.parentElement):this.kupManager.dynamicPosition.register(this.pickerContainerEl,this.textfieldEl.parentElement,0,l.AUTO,!0),this.kupManager.dynamicPosition.start(this.pickerContainerEl),this.clickCb||(this.clickCb={cb:()=>{this.closePicker()},el:this.pickerContainerEl}),this.kupManager.addClickCallback(this.clickCb,!0)}closePicker(){if(this.kupManager.removeClickCallback(this.clickCb),!this.isPickerOpened())return;let t=this.textfieldEl;null!=t&&t.classList.remove("toggled"),this.pickerContainerEl.menuVisible=!1,this.kupManager.dynamicPosition.stop(this.pickerContainerEl)}isPickerOpened(){return 1==this.pickerContainerEl.menuVisible}getTextFieldId(){return this.textfieldEl.id}prepTextfield(){this.decimals||this.maxIntegers||(this.maxIntegers=17),!this.decimals||this.maxIntegers||this.maxDecimals||(this.maxIntegers=15,this.maxDecimals=2);const t=this.rootElement.classList.contains("kup-full-height"),i=this.rootElement.classList.contains("kup-full-width"),s=Object.assign({},this.data["kup-text-field"]);return s.icon||(s.icon="calculator"),s.icon&&(s.trailingIcon=!0),e(c,Object.assign({},s,{disabled:this.disabled,fullHeight:t,fullWidth:i,id:this.rootElement.id+"_text-field",value:this.kupManager.math.numbers.toLocaleString(this.value),onBlur:()=>this.onKupBlur(),onChange:t=>this.onKupChange(t),onClearIconClick:()=>this.onKupClearIconClick(),onClick:()=>this.onKupClick(),onFocus:()=>this.onKupFocus(),onIconClick:()=>this.onKupIconClick(),onKeyDown:t=>this.onkupTextFieldSubmit(t),onInput:t=>this.onKupInput(t)}),this.prepPicker())}prepPicker(){return e("kup-card",{ref:t=>this.pickerContainerEl=t,data:{options:{decimals:this.decimals,initialValue:this.value,maxDecimals:this.maxDecimals,maxIntegers:this.maxIntegers,maxLength:this.maxLength,negative:this.negative,resetStatus:!0}},layoutFamily:n.BUILT_IN,layoutNumber:5,sizeX:"300px",sizeY:"auto",isMenu:!0,"onkup-card-click":t=>{null!=t.detail.value&&this.onKupPickerItemClick(t.detail.value)}})}componentWillLoad(){this.kupManager.dates.register(this),this.kupManager.debug.logLoad(this,!1),this.kupManager.theme.register(this),this.value=this.initialValue,this.data||(this.data={"kup-text-field":{}})}componentDidLoad(){this.kupManager.debug.logLoad(this,!0)}componentWillRender(){this.kupManager.debug.logRender(this,!1)}componentDidRender(){const t=this.rootElement.shadowRoot;if(t){const i=t.querySelector(".f-text-field");i&&(this.textfieldEl=i.querySelector("input"),a(i))}this.kupManager.debug.logRender(this,!0)}render(){return e(h,null,e("style",null,this.kupManager.theme.setKupStyle(this.rootElement)),e("div",{id:u},this.prepTextfield()))}disconnectedCallback(){this.kupManager.dates.unregister(this),this.kupManager.theme.unregister(this),this.pickerContainerEl&&this.pickerContainerEl.remove()}get rootElement(){return o(this)}};m.style=":host{display:block;font-size:var(--kup-font-size)}.f-text-field{position:relative}:host(.kup-full-height){height:100%}:host(.kup-full-height) #kup-component{height:100%}:host(.kup-full-width){width:100%}:host(.kup-full-width) #kup-component{width:100%}:host(.kup-danger){--kup-textfield-primary-color:var(--kup-danger-color);--kup-textfield-primary-color-rgb:var(--kup-danger-color-rgb)}:host(.kup-info){--kup-textfield-primary-color:var(--kup-info-color);--kup-textfield-primary-color-rgb:var(--kup-info-color-rgb)}:host(.kup-secondary){--kup-textfield-primary-color:var(--kup-secondary-color);--kup-textfield-primary-color-rgb:var(--kup-secondary-color-rgb)}:host(.kup-success){--kup-textfield-primary-color:var(--kup-success-color);--kup-textfield-primary-color-rgb:var(--kup-success-color-rgb)}:host(.kup-warning){--kup-textfield-primary-color:var(--kup-warning-color);--kup-textfield-primary-color-rgb:var(--kup-warning-color-rgb)}";export{m as kup_numeric_picker}
@@ -1 +1 @@
1
- import{r as i,h as t,g as h}from"./p-34b74425.js";import{k as o}from"./p-12773ca8.js";const e=class{constructor(t){i(this,t),this.appid="",this.app=!1,this.grid=[],this.debug=!1,this.fluid=!1,this.bordered=!1,this.defobjsize="400px",this.kupManager=o(),this.divlist=[]}getObjects(i){let t;return new Promise((h=>{i.rows.forEach((i=>{i.columns.forEach((i=>{t=!1,i.noSelections&&(t=i.noSelections),this.app.getObject(i.obj,i.obj,{noInteraction:!1,noSelections:t})}))})),h(!0)}))}doSelection(i){return new Promise((t=>{i.selections&&i.selections.forEach((i=>{this.app.field(i.field).selectValues(i.values,!1,!0)})),t(!0)}))}setRender(i){return new Promise((h=>{this.divlist=[],i.rows.forEach((i=>{let h=[];i.columns.forEach((i=>{let o="qvobject ";this.bordered&&(o+="bordered "),o=o+"width-"+i.colDim+" size-"+i.size,h.push(t("div",""!=i.obj?{id:i.obj,class:o}:{class:o}))})),this.divlist.push(t("div",{class:"kup-qlik-row"},h))})),h(!0)}))}componentWillLoad(){this.kupManager.debug.logLoad(this,!1)}componentDidLoad(){this.kupManager.debug.logLoad(this,!0)}componentWillRender(){this.kupManager.debug.logRender(this,!1),this.setRender(this.grid)}render(){let i=null,h=null;return i=this.fluid?{"kup-qlik-container-fluid":!0}:{"kup-qlik-container":!0},h={"--lyo_obj-height":this.defobjsize},t("div",{class:i,style:h},this.divlist)}componentDidRender(){this.debug&&console.log("Grid",this.grid),this.qlik&&(""==this.appid||this.app?this.debug&&console.log("App already open:",this.app):this.app=this.qlik.openApp(this.appid,this.config),this.app&&this.getObjects(this.grid).then((()=>{this.doSelection(this.grid)}))),this.kupManager.debug.logRender(this,!0)}get rootElement(){return h(this)}};e.style=".kup-qlik-container-fluid{width:100%}.kup-qlik-container{width:100%}@media (min-width: 576px){.kup-qlik-container{width:576px}.kup-qlik-row>.qvobject{flex:0 0 auto;min-width:100px;margin:0px auto 5px auto}}@media (min-width: 768px){.kup-qlik-container{width:768px}.kup-qlik-row>.qvobject{flex:0 0 auto;min-width:100px;margin:0px auto 5px auto}}@media (min-width: 992px){.kup-qlik-container{width:992px}.kup-qlik-row>.qvobject{flex:0 0 auto;min-width:100px;margin:0px auto 5px auto}}@media (min-width: 1200px){.kup-qlik-container{width:1200px}.kup-qlik-row>.qvobject{flex:0 0 auto;min-width:100px;margin:0px auto 5px auto}}.kup-qlik-row{display:flex;display:ms-flexbox;flex-wrap:wrap;-ms-flex-wrap:wrap;margin-bottom:5px}.kup-qlik-row .size-M{height:var(--lyo_obj-height)}.kup-qlik-row .size-S{height:calc(var(--lyo_obj-height)/2)}.kup-qlik-row .size-XS{height:calc(var(--lyo_obj-height)/3)}.kup-qlik-row .size-L{height:calc(var(--lyo_obj-height)*2)}.kup-qlik-row .size-XL{height:calc(var(--lyo_obj-height)*3)}.kup-qlik-row .bordered{border:1px solid var(--kup-border-color, #969696)}.kup-qlik-row .width-1{width:8.3333%}.kup-qlik-row .width-2{width:16.6666%}.kup-qlik-row .width-3{width:25%}.kup-qlik-row .width-4{width:33.3333%}.kup-qlik-row .width-5{width:41.6666%}.kup-qlik-row .width-6{width:50%}.kup-qlik-row .width-7{width:58.3333%}.kup-qlik-row .width-8{width:66.6666%}.kup-qlik-row .width-9{width:75%}.kup-qlik-row .width-10{width:83.3333%}.kup-qlik-row .width-11{width:91.6666%}.kup-qlik-row .width-12{width:100%}";export{e as kup_qlik}
1
+ import{r as i,h as t,g as h}from"./p-34b74425.js";import{k as o}from"./p-aca0e54b.js";const e=class{constructor(t){i(this,t),this.appid="",this.app=!1,this.grid=[],this.debug=!1,this.fluid=!1,this.bordered=!1,this.defobjsize="400px",this.kupManager=o(),this.divlist=[]}getObjects(i){let t;return new Promise((h=>{i.rows.forEach((i=>{i.columns.forEach((i=>{t=!1,i.noSelections&&(t=i.noSelections),this.app.getObject(i.obj,i.obj,{noInteraction:!1,noSelections:t})}))})),h(!0)}))}doSelection(i){return new Promise((t=>{i.selections&&i.selections.forEach((i=>{this.app.field(i.field).selectValues(i.values,!1,!0)})),t(!0)}))}setRender(i){return new Promise((h=>{this.divlist=[],i.rows.forEach((i=>{let h=[];i.columns.forEach((i=>{let o="qvobject ";this.bordered&&(o+="bordered "),o=o+"width-"+i.colDim+" size-"+i.size,h.push(t("div",""!=i.obj?{id:i.obj,class:o}:{class:o}))})),this.divlist.push(t("div",{class:"kup-qlik-row"},h))})),h(!0)}))}componentWillLoad(){this.kupManager.debug.logLoad(this,!1)}componentDidLoad(){this.kupManager.debug.logLoad(this,!0)}componentWillRender(){this.kupManager.debug.logRender(this,!1),this.setRender(this.grid)}render(){let i=null,h=null;return i=this.fluid?{"kup-qlik-container-fluid":!0}:{"kup-qlik-container":!0},h={"--lyo_obj-height":this.defobjsize},t("div",{class:i,style:h},this.divlist)}componentDidRender(){this.debug&&console.log("Grid",this.grid),this.qlik&&(""==this.appid||this.app?this.debug&&console.log("App already open:",this.app):this.app=this.qlik.openApp(this.appid,this.config),this.app&&this.getObjects(this.grid).then((()=>{this.doSelection(this.grid)}))),this.kupManager.debug.logRender(this,!0)}get rootElement(){return h(this)}};e.style=".kup-qlik-container-fluid{width:100%}.kup-qlik-container{width:100%}@media (min-width: 576px){.kup-qlik-container{width:576px}.kup-qlik-row>.qvobject{flex:0 0 auto;min-width:100px;margin:0px auto 5px auto}}@media (min-width: 768px){.kup-qlik-container{width:768px}.kup-qlik-row>.qvobject{flex:0 0 auto;min-width:100px;margin:0px auto 5px auto}}@media (min-width: 992px){.kup-qlik-container{width:992px}.kup-qlik-row>.qvobject{flex:0 0 auto;min-width:100px;margin:0px auto 5px auto}}@media (min-width: 1200px){.kup-qlik-container{width:1200px}.kup-qlik-row>.qvobject{flex:0 0 auto;min-width:100px;margin:0px auto 5px auto}}.kup-qlik-row{display:flex;display:ms-flexbox;flex-wrap:wrap;-ms-flex-wrap:wrap;margin-bottom:5px}.kup-qlik-row .size-M{height:var(--lyo_obj-height)}.kup-qlik-row .size-S{height:calc(var(--lyo_obj-height)/2)}.kup-qlik-row .size-XS{height:calc(var(--lyo_obj-height)/3)}.kup-qlik-row .size-L{height:calc(var(--lyo_obj-height)*2)}.kup-qlik-row .size-XL{height:calc(var(--lyo_obj-height)*3)}.kup-qlik-row .bordered{border:1px solid var(--kup-border-color, #969696)}.kup-qlik-row .width-1{width:8.3333%}.kup-qlik-row .width-2{width:16.6666%}.kup-qlik-row .width-3{width:25%}.kup-qlik-row .width-4{width:33.3333%}.kup-qlik-row .width-5{width:41.6666%}.kup-qlik-row .width-6{width:50%}.kup-qlik-row .width-7{width:58.3333%}.kup-qlik-row .width-8{width:66.6666%}.kup-qlik-row .width-9{width:75%}.kup-qlik-row .width-10{width:83.3333%}.kup-qlik-row .width-11{width:91.6666%}.kup-qlik-row .width-12{width:100%}";export{e as kup_qlik}
@@ -1 +1 @@
1
- import{r as t,f as s,h as i,H as e,g as h}from"./p-34b74425.js";import{k as o}from"./p-12773ca8.js";import{c as l}from"./p-97e8ea42.js";const n=class{constructor(s){t(this,s),this.content=null,this.customStyle="",this.features={debug:!1,language:!1,longCycleProp:!1,longCycleVar:!1,objects:!1,objectsFunction:!1,theme:!1},this.kupManager=o(),this.startTime=performance.now(),this.featuresStartTime=null,this.endTime=null}async printLifecycleTime(){const t=this.endTime-this.featuresStartTime,s=this.endTime-this.startTime;return this.content="Full lifecycle of this probe ("+this.rootElement.tagName+"#"+this.rootElement.id+") took "+s+"ms, while features took "+t+"ms.",{id:this.rootElement.id,fullTime:s,featuresTime:t}}async refresh(){s(this)}longCycleProp(){}longCycleVar(){}longCycleObjects(){for(let t=0;t<1e6;t++)this.kupManager.objects.isNumber({t:"NR",p:"",k:""})}longCycleObjectsFunction(){}componentWillLoad(){this.featuresStartTime=performance.now(),this.features.debug&&this.kupManager.debug.logLoad(this,!1),this.features.language&&this.kupManager.language.register(this),this.features.longCycleProp&&this.longCycleProp(),this.features.longCycleVar&&this.longCycleVar(),this.features.objects&&this.longCycleObjects(),this.features.objectsFunction&&this.longCycleObjectsFunction(),this.features.theme&&this.kupManager.theme.register(this)}componentDidLoad(){this.features.debug&&this.kupManager.debug.logLoad(this,!0),this.endTime=performance.now()}componentWillRender(){this.features.debug&&this.kupManager.debug.logRender(this,!1)}componentDidRender(){this.features.debug&&this.kupManager.debug.logRender(this,!0)}render(){let t=null;return this.features.theme&&(t=this.kupManager.theme.setKupStyle(this.rootElement)),i(e,null,t?i("style",null,t):null,i("div",{id:l},this.content))}disconnectedCallback(){this.features.language&&this.kupManager.language.unregister(this),this.features.theme&&this.kupManager.theme.unregister(this)}get rootElement(){return h(this)}};export{n as kup_probe}
1
+ import{r as t,f as s,h as i,H as e,g as h}from"./p-34b74425.js";import{k as o}from"./p-aca0e54b.js";import{c as l}from"./p-97e8ea42.js";const n=class{constructor(s){t(this,s),this.content=null,this.customStyle="",this.features={debug:!1,language:!1,longCycleProp:!1,longCycleVar:!1,objects:!1,objectsFunction:!1,theme:!1},this.kupManager=o(),this.startTime=performance.now(),this.featuresStartTime=null,this.endTime=null}async printLifecycleTime(){const t=this.endTime-this.featuresStartTime,s=this.endTime-this.startTime;return this.content="Full lifecycle of this probe ("+this.rootElement.tagName+"#"+this.rootElement.id+") took "+s+"ms, while features took "+t+"ms.",{id:this.rootElement.id,fullTime:s,featuresTime:t}}async refresh(){s(this)}longCycleProp(){}longCycleVar(){}longCycleObjects(){for(let t=0;t<1e6;t++)this.kupManager.objects.isNumber({t:"NR",p:"",k:""})}longCycleObjectsFunction(){}componentWillLoad(){this.featuresStartTime=performance.now(),this.features.debug&&this.kupManager.debug.logLoad(this,!1),this.features.language&&this.kupManager.language.register(this),this.features.longCycleProp&&this.longCycleProp(),this.features.longCycleVar&&this.longCycleVar(),this.features.objects&&this.longCycleObjects(),this.features.objectsFunction&&this.longCycleObjectsFunction(),this.features.theme&&this.kupManager.theme.register(this)}componentDidLoad(){this.features.debug&&this.kupManager.debug.logLoad(this,!0),this.endTime=performance.now()}componentWillRender(){this.features.debug&&this.kupManager.debug.logRender(this,!1)}componentDidRender(){this.features.debug&&this.kupManager.debug.logRender(this,!0)}render(){let t=null;return this.features.theme&&(t=this.kupManager.theme.setKupStyle(this.rootElement)),i(e,null,t?i("style",null,t):null,i("div",{id:l},this.content))}disconnectedCallback(){this.features.language&&this.kupManager.language.unregister(this),this.features.theme&&this.kupManager.theme.unregister(this)}get rootElement(){return h(this)}};export{n as kup_probe}
@@ -2,6 +2,7 @@ import { KupBadge } from '../kup-badge/kup-badge';
2
2
  import { KupEventPayload } from '../../types/GenericTypes';
3
3
  import { FCellShapes } from '../../f-components/f-cell/f-cell-declarations';
4
4
  import { KupDataCell, KupDataColumn, KupDataRow, KupDataRowAction } from '../../managers/kup-data/kup-data-declarations';
5
+ import type { PointerEvent } from '@interactjs/types/index';
5
6
  /**
6
7
  * Props of the kup-box component.
7
8
  * Used to export every prop in an object.
@@ -28,15 +29,11 @@ export declare enum KupBoxProps {
28
29
  selectBox = "Automatically selects the box at the specified index.",
29
30
  selectedRowsState = "Multiple selection.",
30
31
  showSelection = "If enabled, highlights the selected box/boxes.",
31
- showTooltipOnRightClick = "If set to true, displays tooltip on right click; if set to false, displays tooltip on mouseOver.",
32
32
  sortBy = "If sorting is enabled, specifies which column to sort.",
33
33
  sortEnabled = "Enable sorting.",
34
34
  stateId = "",
35
35
  store = "",
36
- swipeDisabled = "Disable swipe.",
37
- tooltipDetailTimeout = "Defines the timeout for tooltip detail.",
38
- tooltipEnabled = "Enable show tooltip.",
39
- tooltipLoadTimeout = "Defines the timeout for tooltip load."
36
+ swipeDisabled = "Disable swipe."
40
37
  }
41
38
  export interface KupBoxData {
42
39
  columns?: KupDataColumn[];
@@ -89,6 +86,7 @@ export interface KupBoxEventHandlerDetails {
89
86
  boxObject: HTMLElement;
90
87
  cell: KupDataCell;
91
88
  column: KupDataColumn;
89
+ originalEvent: PointerEvent;
92
90
  row: KupBoxRow;
93
91
  }
94
92
  export interface KupBoxClickEventPayload extends KupEventPayload {
@@ -132,11 +132,6 @@ export declare class KupBox {
132
132
  * @default true
133
133
  */
134
134
  showSelection: boolean;
135
- /**
136
- * If set to true, displays tooltip on right click; if set to false, displays tooltip on mouseOver.
137
- * @default true
138
- */
139
- showTooltipOnRightClick: boolean;
140
135
  /**
141
136
  * If sorting is enabled, specifies which column to sort
142
137
  * @default undefined
@@ -154,21 +149,6 @@ export declare class KupBox {
154
149
  * @default false
155
150
  */
156
151
  swipeDisabled: boolean;
157
- /**
158
- * Defines the timeout for tooltip detail
159
- * @default undefined
160
- */
161
- tooltipDetailTimeout: number;
162
- /**
163
- * Enable show tooltip
164
- * @default true
165
- */
166
- tooltipEnabled: boolean;
167
- /**
168
- * Defines the timeout for tooltip load
169
- * @default undefined
170
- */
171
- tooltipLoadTimeout: number;
172
152
  /**
173
153
  * Instance of the KupManager class.
174
154
  */
@@ -177,7 +157,6 @@ export declare class KupBox {
177
157
  private visibleColumns;
178
158
  private rows;
179
159
  private filteredRows;
180
- private tooltip;
181
160
  private globalFilterTimeout;
182
161
  private boxContainer;
183
162
  private sectionRef;
@@ -280,7 +259,6 @@ export declare class KupBox {
280
259
  [index: string]: string;
281
260
  };
282
261
  };
283
- renderTooltip(): any;
284
262
  didLoadInteractables(): void;
285
263
  didRenderInteractables(): void;
286
264
  componentWillLoad(): void;
@@ -51,7 +51,6 @@ export declare enum KupDataTableProps {
51
51
  showGroups = "When set to true enables the column grouping.",
52
52
  showHeader = "Enables rendering of the table header.",
53
53
  showLoadMore = "If set to true, displays the button to load more records.",
54
- showTooltipOnRightClick = "If set to true, displays tooltip on right click; if set to false, displays tooltip on mouseOver.",
55
54
  sort = "Defines the current sorting options.",
56
55
  stateId = "",
57
56
  store = "",
@@ -59,9 +58,8 @@ export declare enum KupDataTableProps {
59
58
  sortEnabled = "When set to true enables the sorting of the columns by clicking on the column header.",
60
59
  tableHeight = "Sets the height of the table.",
61
60
  tableWidth = "Sets the width of the table.",
62
- tooltipDetailTimeout = "Defines the timeout for tooltip detail",
63
- tooltipEnabled = "Enable show tooltip",
64
- totals = "Defines the current totals options."
61
+ totals = "Defines the current totals options.",
62
+ transpose = "Transposes the data of the data table."
65
63
  }
66
64
  export interface KupDataTableDataset {
67
65
  columns?: KupDataColumn[];
@@ -207,10 +207,6 @@ export declare class KupDataTable {
207
207
  * If set to true, displays the button to load more records.
208
208
  */
209
209
  showLoadMore: boolean;
210
- /**
211
- * If set to true, displays tooltip on right click; if set to false, displays tooltip on mouseOver.
212
- */
213
- showTooltipOnRightClick: boolean;
214
210
  /**
215
211
  * Defines the current sorting options.
216
212
  */
@@ -232,18 +228,6 @@ export declare class KupDataTable {
232
228
  * Sets the width of the table.
233
229
  */
234
230
  tableWidth: string;
235
- /**
236
- * Defines the timeout for tooltip detail
237
- */
238
- tooltipDetailTimeout: number;
239
- /**
240
- * Enable show tooltip
241
- */
242
- tooltipEnabled: boolean;
243
- /**
244
- * Defines the timeout for tooltip load
245
- */
246
- tooltipLoadTimeout: number;
247
231
  /**
248
232
  * Defines the current totals options
249
233
  */
@@ -273,6 +257,7 @@ export declare class KupDataTable {
273
257
  recalculateRowsAndUndoSelections(): void;
274
258
  controlFixedRowsColumns(): void;
275
259
  recalculateData(): void;
260
+ private initialized;
276
261
  private rows;
277
262
  private rowsLength;
278
263
  private paginatedRows;
@@ -291,7 +276,6 @@ export declare class KupDataTable {
291
276
  */
292
277
  private theadRef;
293
278
  private tableRef;
294
- private tooltip;
295
279
  /**
296
280
  * contains the original data, used in transposed function
297
281
  * @private
@@ -530,7 +514,6 @@ export declare class KupDataTable {
530
514
  private onSelectAll;
531
515
  private openTotalMenu;
532
516
  private closeTotalMenu;
533
- private closeMenuAndTooltip;
534
517
  private isOpenedTotalMenuForColumn;
535
518
  private groupRows;
536
519
  getInternalState(): Promise<{
@@ -565,7 +548,6 @@ export declare class KupDataTable {
565
548
  private composeHeaderCellClassAndStyle;
566
549
  private renderHeader;
567
550
  private renderStickyHeader;
568
- renderTooltip(): any;
569
551
  areTotalsSelected(column: KupDataColumn): boolean;
570
552
  onTotalsChange(event: any, column: any): void;
571
553
  private totalMenuPosition;
@@ -0,0 +1,79 @@
1
+ import { KupEventPayload } from '../../types/GenericTypes';
2
+ /**
3
+ * Props of the kup-form-editor component.
4
+ * Used to export every prop in an object.
5
+ */
6
+ export declare enum KupFormEditorProps {
7
+ customStyle = "Custom style of the component.",
8
+ data = "The data of the component."
9
+ }
10
+ export interface KupFormEditorEventPayload extends KupEventPayload {
11
+ data: KupForm;
12
+ }
13
+ export declare enum KupFormEditorDragTypes {
14
+ Components = "1",
15
+ Sections = "2"
16
+ }
17
+ export declare enum KupFormEditorLabels {
18
+ Loaded = "Loaded",
19
+ Reset = "Reset",
20
+ Save = "Save",
21
+ Components = "Components",
22
+ Sections = "Sections",
23
+ Column = "Column"
24
+ }
25
+ /**
26
+ * Extend html element properties for Form Editor
27
+ */
28
+ export interface KupFormEditorElement extends HTMLDivElement {
29
+ kupData: KupFormEditorData;
30
+ }
31
+ /**
32
+ * Additional kupData for html element.
33
+ */
34
+ export interface KupFormEditorData {
35
+ parent?: KupForm | KupSection;
36
+ form?: KupForm;
37
+ section?: KupSection;
38
+ componnent?: KupComponent;
39
+ }
40
+ export interface KupVariableEntity {
41
+ name: string;
42
+ type?: string;
43
+ value: string;
44
+ }
45
+ export interface KupDynamismEntity {
46
+ event: string;
47
+ exec?: string;
48
+ targets?: string[];
49
+ variables?: KupVariableEntity[];
50
+ }
51
+ export interface KupEntity {
52
+ id: string;
53
+ loaded: boolean;
54
+ }
55
+ export interface KupComponentEntity extends KupEntity {
56
+ fun: string;
57
+ evaluatedFun?: string;
58
+ title: string;
59
+ type: string;
60
+ variables?: KupVariableEntity[];
61
+ timer?: ReturnType<typeof setTimeout>;
62
+ }
63
+ export interface KupForm extends KupComponentEntity {
64
+ layout: string;
65
+ sections: KupSection[];
66
+ }
67
+ export interface KupWidget extends KupComponentEntity {
68
+ config?: any;
69
+ data?: any;
70
+ dynamisms?: KupDynamismEntity[];
71
+ options?: any;
72
+ }
73
+ export declare type KupComponent = KupForm | KupWidget;
74
+ export interface KupSection extends KupEntity {
75
+ components?: KupComponent[];
76
+ dim?: string;
77
+ layout?: string;
78
+ sections?: KupSection[];
79
+ }
@@ -0,0 +1,72 @@
1
+ import { EventEmitter } from '../../stencil-public-runtime';
2
+ import { GenericObject } from '../../types/GenericTypes';
3
+ import { KupForm, KupFormEditorElement, KupFormEditorEventPayload, KupSection } from './kup-form-editor-declarations';
4
+ export declare class KupFormEditor {
5
+ /**
6
+ * References the root HTML element of the component (<kup-text-field>).
7
+ */
8
+ rootElement: HTMLElement;
9
+ /**
10
+ * Force render component by internal event.
11
+ */
12
+ resetInternalData: boolean;
13
+ /**
14
+ * Custom style of the component.
15
+ * @default ""
16
+ * @see https://ketchup.smeup.com/ketchup-showcase/#/customization
17
+ */
18
+ customStyle: string;
19
+ /**
20
+ * The data of the component.
21
+ * @default false
22
+ */
23
+ data: KupForm;
24
+ /**
25
+ * Instance of the KupManager class.
26
+ */
27
+ private kupManager;
28
+ /**
29
+ * Draggable type of Form (Components or Sections).
30
+ */
31
+ private dragType;
32
+ /**
33
+ * Internal data of the component.
34
+ */
35
+ private internalData;
36
+ /**
37
+ * Internal data backup of the component for refresh when changed content by drag&drop.
38
+ */
39
+ private internalDataBackup;
40
+ kupSave: EventEmitter<KupFormEditorEventPayload>;
41
+ onKupSave(): void;
42
+ dataChanged(): void;
43
+ /**
44
+ * Used to retrieve component's props values.
45
+ * @param {boolean} descriptions - When provided and true, the result will be the list of props with their description.
46
+ * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
47
+ */
48
+ getProps(descriptions?: boolean): Promise<GenericObject>;
49
+ /**
50
+ * This method is used to trigger a new render of the component.
51
+ */
52
+ refresh(): Promise<void>;
53
+ /**
54
+ * Sets the props to the component.
55
+ * @param {GenericObject} props - Object containing props that will be set to the component.
56
+ */
57
+ setProps(props: GenericObject): Promise<void>;
58
+ buildHeader(): any;
59
+ buildForm(form: KupForm, parent: KupForm | KupSection): any;
60
+ buildSectionHeader(section: KupSection, parent: KupForm | KupSection): any;
61
+ buildSection(section: KupSection, parent: KupForm | KupSection): any;
62
+ didRenderInteractables(): void;
63
+ dropped(parent: KupFormEditorElement, child: KupFormEditorElement): void;
64
+ resetData(form?: KupForm): void;
65
+ unregisterInteractables(): void;
66
+ componentWillLoad(): void;
67
+ componentDidLoad(): void;
68
+ componentWillRender(): void;
69
+ componentDidRender(): void;
70
+ render(): any;
71
+ disconnectedCallback(): void;
72
+ }
@@ -0,0 +1,14 @@
1
+ import { KupDataNode } from '../../managers/kup-data/kup-data-declarations';
2
+ import { KupEventPayload } from '../../types/GenericTypes';
3
+ /**
4
+ * Props of the kup-image-list component.
5
+ * Used to export every prop in an object.
6
+ */
7
+ export declare enum KupImageListProps {
8
+ customStyle = "Custom style of the component.",
9
+ data = "Actual data of the component",
10
+ ripple = "When enabled displays Material's ripple effect on clicked items."
11
+ }
12
+ export interface KupImageListEventPayload extends KupEventPayload {
13
+ node: KupDataNode;
14
+ }
@@ -0,0 +1,56 @@
1
+ import { EventEmitter } from '../../stencil-public-runtime';
2
+ import { GenericObject } from '../../types/GenericTypes';
3
+ import { KupImageListEventPayload } from './kup-image-list-declarations';
4
+ import { KupDataNode } from '../../managers/kup-data/kup-data-declarations';
5
+ export declare class KupImageList {
6
+ #private;
7
+ /**
8
+ * References the root HTML element of the component (<kup-image-list>).
9
+ */
10
+ rootElement: HTMLElement;
11
+ currentNode: KupDataNode;
12
+ navigationBarToggled: boolean;
13
+ /**
14
+ * Custom style of the component.
15
+ * @default ""
16
+ * @see https://ketchup.smeup.com/ketchup-showcase/#/customization
17
+ */
18
+ customStyle: string;
19
+ /**
20
+ * Actual data of the component.
21
+ * @default []
22
+ */
23
+ data: KupDataNode[];
24
+ /**
25
+ * When enabled displays Material's ripple effect on clicked items.
26
+ * @default true
27
+ */
28
+ ripple: boolean;
29
+ kupClick: EventEmitter<KupImageListEventPayload>;
30
+ onKupClick(node: KupDataNode): void;
31
+ kupContextMenu: EventEmitter<KupImageListEventPayload>;
32
+ onKupContextMenu(e: MouseEvent, node: KupDataNode): void;
33
+ kupDblClick: EventEmitter<KupImageListEventPayload>;
34
+ onKupDblClick(node: KupDataNode): void;
35
+ /**
36
+ * Used to retrieve component's props values.
37
+ * @param {boolean} descriptions - When provided and true, the result will be the list of props with their description.
38
+ * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
39
+ */
40
+ getProps(descriptions?: boolean): Promise<GenericObject>;
41
+ /**
42
+ * This method is used to trigger a new render of the component.
43
+ */
44
+ refresh(): Promise<void>;
45
+ /**
46
+ * Sets the props to the component.
47
+ * @param {GenericObject} props - Object containing props that will be set to the component.
48
+ */
49
+ setProps(props: GenericObject): Promise<void>;
50
+ componentWillLoad(): void;
51
+ componentDidLoad(): void;
52
+ componentWillRender(): void;
53
+ componentDidRender(): void;
54
+ render(): any;
55
+ disconnectedCallback(): void;
56
+ }
@@ -1,3 +1,4 @@
1
+ import { KupDataNode } from '../../managers/kup-data/kup-data-declarations';
1
2
  import { KupEventPayload } from '../../types/GenericTypes';
2
3
  /**
3
4
  * Props of the kup-tab-bar component.
@@ -11,17 +12,10 @@ export declare enum KupTabBarProps {
11
12
  /**
12
13
  * The object of a single radio.
13
14
  */
14
- export interface KupTabBarData {
15
- value: string;
15
+ export interface KupTabBarNode extends KupDataNode {
16
16
  active?: boolean;
17
- icon?: string;
18
- text?: string;
19
- title?: string;
20
17
  }
21
18
  export interface KupTabBarEventPayload extends KupEventPayload {
19
+ node: KupTabBarNode;
22
20
  index: number;
23
- el: EventTarget;
24
- }
25
- export interface KupTabBarClickEventPayload extends KupTabBarEventPayload {
26
- value: string;
27
21
  }
@@ -1,5 +1,5 @@
1
1
  import { EventEmitter } from '../../stencil-public-runtime';
2
- import { KupTabBarClickEventPayload, KupTabBarData, KupTabBarEventPayload } from './kup-tab-bar-declarations';
2
+ import { KupTabBarNode, KupTabBarEventPayload } from './kup-tab-bar-declarations';
3
3
  import { GenericObject } from '../../types/GenericTypes';
4
4
  export declare class KupTabBar {
5
5
  /**
@@ -17,7 +17,7 @@ export declare class KupTabBar {
17
17
  * List of elements.
18
18
  * @default null
19
19
  */
20
- data: KupTabBarData[];
20
+ data: KupTabBarNode[];
21
21
  /**
22
22
  * When enabled displays Material's ripple effect on item headers.
23
23
  * @default true
@@ -38,14 +38,14 @@ export declare class KupTabBar {
38
38
  /**
39
39
  * Triggered when the tab is clicked.
40
40
  */
41
- kupClick: EventEmitter<KupTabBarClickEventPayload>;
41
+ kupClick: EventEmitter<KupTabBarEventPayload>;
42
42
  /**
43
43
  * Triggered when the tab is focused.
44
44
  */
45
45
  kupFocus: EventEmitter<KupTabBarEventPayload>;
46
- onKupBlur(i: number, e: Event): void;
47
- onKupClick(i: number, e: Event): void;
48
- onKupFocus(i: number, e: Event): void;
46
+ onKupBlur(i: number, node: KupTabBarNode): void;
47
+ onKupClick(i: number, node: KupTabBarNode): void;
48
+ onKupFocus(i: number, node: KupTabBarNode): void;
49
49
  applyRipple(): void;
50
50
  /**
51
51
  * Used to retrieve component's props values.
@@ -32,10 +32,6 @@ export declare enum KupTreeProps {
32
32
  showIcons = "Shows the icons of the nodes.",
33
33
  stateId = "",
34
34
  store = "",
35
- showTooltipOnRightClick = "If set to true, displays tooltip on right click; if set to false, displays tooltip on mouseOver.",
36
- tooltipDetailTimeout = "Defines the timeout for tooltip detail",
37
- tooltipEnabled = "Enable show tooltip",
38
- tooltipLoadTimeout = "Defines the timeout for tooltip load",
39
35
  totals = "Defines the current totals options.",
40
36
  useDynamicExpansion = "When the component must use the dynamic expansion feature to open its nodes, it means that not all the nodes of the tree have been passed inside the data property. Therefore, when expanding a node, the tree must emit an event (or run a given callback) and wait for the child nodes to be downloaded from the server."
41
37
  }
@@ -62,7 +58,7 @@ export interface KupTreeEventHandlerDetails {
62
58
  row: KupDataRow;
63
59
  td: HTMLElement;
64
60
  th: HTMLElement;
65
- tr: HTMLTableRowElement;
61
+ tr: HTMLElement;
66
62
  }
67
63
  export declare enum KupTreeExpansionMode {
68
64
  DROPDOWN = "dropdown",