@sme.up/ketchup 5.2.1-SNAPSHOT → 6.2.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 (231) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/dist/cjs/{cell-utils-d96b2993.js → cell-utils-d894e802.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-414b3bc3.js} +4 -4
  5. package/dist/cjs/f-cell-c8983ec7.js +418 -0
  6. package/dist/cjs/f-checkbox-57443ca3.js +29 -0
  7. package/dist/cjs/{f-chip-df59e1b0.js → f-chip-ef81bf51.js} +5 -4
  8. package/dist/cjs/{f-image-12bab3b5.js → f-image-0618c795.js} +2 -2
  9. package/dist/cjs/f-paginator-utils-c9dd5173.js +1898 -0
  10. package/dist/cjs/{f-text-field-e7c35b5b.js → f-text-field-7d31190f.js} +3 -3
  11. package/dist/cjs/{f-text-field-mdc-a67f5dfe.js → f-text-field-mdc-85997738.js} +23 -305
  12. package/dist/cjs/{index-eb556444.js → index-06b131ea.js} +6 -4
  13. package/dist/cjs/ketchup.cjs.js +3 -3
  14. package/dist/cjs/kup-accordion.cjs.entry.js +5 -5
  15. package/dist/cjs/{kup-autocomplete_27.cjs.entry.js → kup-autocomplete_25.cjs.entry.js} +1833 -5745
  16. package/dist/cjs/{kup-echart.cjs.entry.js → kup-box_2.cjs.entry.js} +17113 -14788
  17. package/dist/cjs/kup-calendar.cjs.entry.js +42 -34
  18. package/dist/cjs/kup-cell.cjs.entry.js +10 -9
  19. package/dist/cjs/kup-dash-list.cjs.entry.js +4 -4
  20. package/dist/cjs/kup-dash_2.cjs.entry.js +4 -7
  21. package/dist/cjs/kup-dashboard.cjs.entry.js +379 -0
  22. package/dist/cjs/kup-drawer.cjs.entry.js +12 -5
  23. package/dist/cjs/kup-field.cjs.entry.js +2 -2
  24. package/dist/cjs/kup-form.cjs.entry.js +469 -0
  25. package/dist/cjs/kup-iframe.cjs.entry.js +3 -3
  26. package/dist/cjs/kup-image-list.cjs.entry.js +229 -0
  27. package/dist/cjs/kup-lazy.cjs.entry.js +3 -3
  28. package/dist/cjs/kup-magic-box.cjs.entry.js +4 -4
  29. package/dist/cjs/kup-manager-2fee8cf3.js +17021 -0
  30. package/dist/cjs/kup-nav-bar.cjs.entry.js +3 -3
  31. package/dist/cjs/kup-numeric-picker.cjs.entry.js +5 -5
  32. package/dist/cjs/kup-photo-frame.cjs.entry.js +7 -9
  33. package/dist/cjs/kup-probe.cjs.entry.js +2 -2
  34. package/dist/cjs/kup-qlik.cjs.entry.js +2 -2
  35. package/dist/cjs/kup-snackbar.cjs.entry.js +6 -6
  36. package/dist/cjs/loader.cjs.js +3 -3
  37. package/dist/cjs/{utils-e99921c1.js → utils-8470184d.js} +1 -1
  38. package/dist/collection/assets/card.js +4 -5
  39. package/dist/collection/assets/dashboard.js +113 -0
  40. package/dist/collection/assets/data-table.js +15 -79
  41. package/dist/collection/assets/form.js +179 -0
  42. package/dist/collection/assets/grid.js +17 -0
  43. package/dist/collection/assets/image-list.js +624 -0
  44. package/dist/collection/assets/index.js +16 -4
  45. package/dist/collection/assets/kupdata.js +0 -3
  46. package/dist/collection/assets/kuptooltip.js +53 -7
  47. package/dist/collection/assets/tree.js +0 -128
  48. package/dist/collection/collection-manifest.json +8 -6
  49. package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +136 -130
  50. package/dist/collection/components/kup-box/kup-box-declarations.js +0 -4
  51. package/dist/collection/components/kup-box/kup-box.js +20 -137
  52. package/dist/collection/components/kup-card/built-in/kup-card-clock.js +1 -1
  53. package/dist/collection/components/kup-card/built-in/kup-card-column-drop-menu.js +1 -2
  54. package/dist/collection/components/kup-card/kup-card.css +26 -8
  55. package/dist/collection/components/kup-card/kup-card.js +1 -2
  56. package/dist/collection/components/kup-card/standard/kup-card-standard.js +14 -6
  57. package/dist/collection/components/kup-combobox/kup-combobox.js +17 -14
  58. package/dist/collection/components/kup-dashboard/kup-dashboard-declarations.js +10 -0
  59. package/dist/collection/components/kup-dashboard/kup-dashboard.css +81 -0
  60. package/dist/collection/components/kup-dashboard/kup-dashboard.js +560 -0
  61. package/dist/collection/components/kup-data-table/kup-data-table-declarations.js +1 -3
  62. package/dist/collection/components/kup-data-table/kup-data-table.js +19 -136
  63. package/dist/collection/components/kup-drawer/kup-drawer.css +6 -8
  64. package/dist/collection/components/kup-drawer/kup-drawer.js +8 -1
  65. package/dist/collection/components/kup-form/kup-form-declarations.js +19 -0
  66. package/dist/collection/components/kup-form/kup-form.css +86 -0
  67. package/dist/collection/components/kup-form/kup-form.js +668 -0
  68. package/dist/collection/components/kup-grid/kup-grid.js +1 -4
  69. package/dist/collection/components/kup-image-list/kup-image-list-declarations.js +10 -0
  70. package/dist/collection/components/kup-image-list/kup-image-list.css +166 -0
  71. package/dist/collection/components/kup-image-list/kup-image-list.js +432 -0
  72. package/dist/collection/components/kup-list/kup-list-helper.js +9 -3
  73. package/dist/collection/components/kup-photo-frame/kup-photo-frame.css +2 -9
  74. package/dist/collection/components/kup-photo-frame/kup-photo-frame.js +3 -5
  75. package/dist/collection/components/kup-snackbar/kup-snackbar.css +4 -0
  76. package/dist/collection/components/kup-tab-bar/kup-tab-bar.js +18 -19
  77. package/dist/collection/components/kup-text-field/kup-text-field-declarations.js +3 -0
  78. package/dist/collection/components/kup-text-field/kup-text-field.js +27 -0
  79. package/dist/collection/components/kup-time-picker/kup-time-picker.js +2 -8
  80. package/dist/collection/components/kup-tree/kup-tree-declarations.js +0 -4
  81. package/dist/collection/components/kup-tree/kup-tree.css +10 -3
  82. package/dist/collection/components/kup-tree/kup-tree.js +73 -142
  83. package/dist/collection/f-components/f-button/f-button.js +2 -2
  84. package/dist/collection/f-components/f-cell/f-cell-declarations.js +5 -1
  85. package/dist/collection/f-components/f-cell/f-cell.js +41 -121
  86. package/dist/collection/f-components/f-chip/f-chip.js +2 -1
  87. package/dist/collection/f-components/f-text-field/f-text-field.js +1 -1
  88. package/dist/collection/managers/kup-data/kup-data-node-helper.js +24 -0
  89. package/dist/collection/managers/kup-data/kup-data.js +98 -1
  90. package/dist/collection/managers/kup-dynamic-position/kup-dynamic-position.js +4 -2
  91. package/dist/collection/managers/kup-interact/kup-interact.js +1 -22
  92. package/dist/collection/managers/kup-language/kup-language-declarations.js +13 -0
  93. package/dist/collection/managers/kup-manager/kup-manager.js +21 -2
  94. package/dist/collection/managers/kup-objects/kup-objects.js +10 -0
  95. package/dist/collection/managers/kup-theme/kup-theme-declarations.js +21 -1
  96. package/dist/collection/managers/kup-tooltip/kup-tooltip.js +53 -20
  97. package/dist/collection/types/GenericTypes.js +3 -0
  98. package/dist/collection/utils/kup-column-menu/kup-column-menu.js +7 -11
  99. package/dist/esm/{cell-utils-f4bdbbc8.js → cell-utils-7fc84d4e.js} +3 -3
  100. package/dist/esm/{component-c4eb6153.js → component-b1bedf1d.js} +27 -2
  101. package/dist/esm/{f-button-54a49fd8.js → f-button-2f6cc296.js} +4 -4
  102. package/dist/esm/f-cell-4428481c.js +415 -0
  103. package/dist/esm/f-checkbox-c51c4a75.js +27 -0
  104. package/dist/esm/{f-chip-a3035b4b.js → f-chip-b39eb49a.js} +6 -5
  105. package/dist/esm/{f-image-d32465e3.js → f-image-b08ebeb2.js} +2 -2
  106. package/dist/esm/f-paginator-utils-4fda6086.js +1884 -0
  107. package/dist/esm/{f-text-field-c25cc63f.js → f-text-field-184a5fb3.js} +3 -3
  108. package/dist/esm/{f-text-field-mdc-9fbbefc3.js → f-text-field-mdc-d42d3f9e.js} +2 -284
  109. package/dist/esm/{index-baeab1ac.js → index-ad6ab214.js} +6 -4
  110. package/dist/esm/ketchup.js +3 -3
  111. package/dist/esm/kup-accordion.entry.js +6 -6
  112. package/dist/esm/{kup-autocomplete_27.entry.js → kup-autocomplete_25.entry.js} +1775 -5685
  113. package/dist/esm/{kup-echart.entry.js → kup-box_2.entry.js} +17113 -14789
  114. package/dist/esm/kup-calendar.entry.js +43 -35
  115. package/dist/esm/kup-cell.entry.js +9 -8
  116. package/dist/esm/kup-dash-list.entry.js +4 -4
  117. package/dist/esm/kup-dash_2.entry.js +4 -7
  118. package/dist/esm/kup-dashboard.entry.js +375 -0
  119. package/dist/esm/kup-drawer.entry.js +12 -5
  120. package/dist/esm/kup-field.entry.js +2 -2
  121. package/dist/esm/kup-form.entry.js +465 -0
  122. package/dist/esm/kup-iframe.entry.js +3 -3
  123. package/dist/esm/kup-image-list.entry.js +225 -0
  124. package/dist/esm/kup-lazy.entry.js +3 -3
  125. package/dist/esm/kup-magic-box.entry.js +4 -4
  126. package/dist/esm/kup-manager-3325b2d8.js +17000 -0
  127. package/dist/esm/kup-nav-bar.entry.js +3 -3
  128. package/dist/esm/kup-numeric-picker.entry.js +6 -6
  129. package/dist/esm/kup-photo-frame.entry.js +7 -9
  130. package/dist/esm/kup-probe.entry.js +2 -2
  131. package/dist/esm/kup-qlik.entry.js +2 -2
  132. package/dist/esm/kup-snackbar.entry.js +6 -6
  133. package/dist/esm/loader.js +3 -3
  134. package/dist/esm/polyfills/css-shim.js +1 -1
  135. package/dist/esm/{tslib.es6-8f2d44b6.js → tslib.es6-3eea2234.js} +1 -1
  136. package/dist/esm/{utils-f24319a0.js → utils-6373a07e.js} +2 -2
  137. package/dist/ketchup/ketchup.esm.js +1 -1
  138. package/dist/ketchup/p-006bc4d0.entry.js +1 -0
  139. package/dist/ketchup/p-0741da57.js +1 -0
  140. package/dist/ketchup/{p-669bde31.js → p-13e08580.js} +1 -1
  141. package/dist/ketchup/p-153697fb.entry.js +1 -0
  142. package/dist/ketchup/{p-9a61d8dc.entry.js → p-175edb62.entry.js} +1 -1
  143. package/dist/ketchup/{p-11e72a8c.entry.js → p-1db1d42b.entry.js} +1 -1
  144. package/dist/ketchup/{p-67842f1e.entry.js → p-30820f8f.entry.js} +1 -1
  145. package/dist/ketchup/p-35325834.entry.js +9 -0
  146. package/dist/ketchup/p-359e8bec.entry.js +40 -0
  147. package/dist/ketchup/{p-09d708c4.entry.js → p-3c7c92c0.entry.js} +1 -1
  148. package/dist/ketchup/p-41cf8703.entry.js +1 -0
  149. package/dist/ketchup/{p-e6709c26.entry.js → p-6127fccf.entry.js} +1 -1
  150. package/dist/ketchup/{p-203d6295.entry.js → p-6b82e4e2.entry.js} +1 -1
  151. package/dist/ketchup/p-704e60eb.js +30 -0
  152. package/dist/ketchup/{p-4f56932b.js → p-70660fe2.js} +1 -1
  153. package/dist/ketchup/{p-44192f30.entry.js → p-762c0382.entry.js} +1 -1
  154. package/dist/ketchup/{p-c58a2a81.entry.js → p-76947316.entry.js} +1 -1
  155. package/dist/ketchup/{p-a0b1d769.js → p-79b0730b.js} +1 -1
  156. package/dist/ketchup/{p-bb8844bf.entry.js → p-8103b80a.entry.js} +1 -1
  157. package/dist/ketchup/{p-8c44c3b9.js → p-81605f08.js} +4 -5
  158. package/dist/ketchup/p-9fa457d4.entry.js +1 -0
  159. package/dist/ketchup/{p-e8e3c9da.entry.js → p-a0ce8075.entry.js} +1 -1
  160. package/dist/ketchup/p-a203f78b.js +45 -0
  161. package/dist/ketchup/p-a804fe83.entry.js +27 -0
  162. package/dist/ketchup/{p-34748c91.js → p-ca9fd099.js} +1 -1
  163. package/dist/ketchup/p-caabb9ab.entry.js +1 -0
  164. package/dist/ketchup/p-cc3abf84.entry.js +1 -0
  165. package/dist/ketchup/p-cd5cfa7c.js +1 -0
  166. package/dist/ketchup/p-d2e76960.entry.js +1 -0
  167. package/dist/ketchup/p-d3b542b3.js +2 -0
  168. package/dist/ketchup/p-d7004ae4.js +1 -0
  169. package/dist/ketchup/{p-40f97429.js → p-d95c904b.js} +1 -1
  170. package/dist/ketchup/p-ddce3430.js +1 -0
  171. package/dist/ketchup/p-ee580b3a.entry.js +1 -0
  172. package/dist/ketchup/p-f49cb68e.js +1 -0
  173. package/dist/types/components/kup-autocomplete/kup-autocomplete.d.ts +1 -16
  174. package/dist/types/components/kup-box/kup-box-declarations.d.ts +3 -5
  175. package/dist/types/components/kup-box/kup-box.d.ts +0 -22
  176. package/dist/types/components/kup-dashboard/kup-dashboard-declarations.d.ts +61 -0
  177. package/dist/types/components/kup-dashboard/kup-dashboard.d.ts +75 -0
  178. package/dist/types/components/kup-data-table/kup-data-table-declarations.d.ts +2 -4
  179. package/dist/types/components/kup-data-table/kup-data-table.d.ts +1 -19
  180. package/dist/types/components/kup-form/kup-form-declarations.d.ts +48 -0
  181. package/dist/types/components/kup-form/kup-form.d.ts +68 -0
  182. package/dist/types/components/kup-image-list/kup-image-list-declarations.d.ts +14 -0
  183. package/dist/types/components/kup-image-list/kup-image-list.d.ts +56 -0
  184. package/dist/types/components/kup-tab-bar/kup-tab-bar-declarations.d.ts +3 -9
  185. package/dist/types/components/kup-tab-bar/kup-tab-bar.d.ts +6 -6
  186. package/dist/types/components/kup-text-field/kup-text-field-declarations.d.ts +3 -0
  187. package/dist/types/components/kup-text-field/kup-text-field.d.ts +5 -0
  188. package/dist/types/components/kup-time-picker/kup-time-picker.d.ts +0 -6
  189. package/dist/types/components/kup-tree/kup-tree-declarations.d.ts +3 -5
  190. package/dist/types/components/kup-tree/kup-tree.d.ts +1 -24
  191. package/dist/types/components.d.ts +512 -369
  192. package/dist/types/f-components/f-cell/f-cell-declarations.d.ts +4 -1
  193. package/dist/types/f-components/f-text-field/f-text-field-declarations.d.ts +1 -0
  194. package/dist/types/managers/kup-data/kup-data-declarations.d.ts +1 -0
  195. package/dist/types/managers/kup-data/kup-data-node-helper.d.ts +7 -0
  196. package/dist/types/managers/kup-data/kup-data.d.ts +3 -0
  197. package/dist/types/managers/kup-language/kup-language-declarations.d.ts +13 -1
  198. package/dist/types/managers/kup-manager/kup-manager-declarations.d.ts +4 -0
  199. package/dist/types/managers/kup-manager/kup-manager.d.ts +12 -0
  200. package/dist/types/managers/kup-objects/kup-objects.d.ts +6 -0
  201. package/dist/types/managers/kup-tooltip/kup-tooltip-declarations.d.ts +3 -3
  202. package/dist/types/managers/kup-tooltip/kup-tooltip.d.ts +17 -6
  203. package/dist/types/types/GenericTypes.d.ts +3 -0
  204. package/dist/types/utils/kup-column-menu/kup-column-menu.d.ts +1 -3
  205. package/package.json +15 -14
  206. package/dist/cjs/f-cell-8351cb84.js +0 -653
  207. package/dist/cjs/kup-manager-5c03da64.js +0 -8795
  208. package/dist/collection/assets/tooltip.js +0 -73
  209. package/dist/collection/components/kup-tooltip/kup-tooltip-declarations.js +0 -20
  210. package/dist/collection/components/kup-tooltip/kup-tooltip.css +0 -149
  211. package/dist/collection/components/kup-tooltip/kup-tooltip.js +0 -1205
  212. package/dist/collection/utils/helpers.js +0 -38
  213. package/dist/esm/f-cell-d5dac50b.js +0 -650
  214. package/dist/esm/kup-manager-9316a184.js +0 -8778
  215. package/dist/ketchup/p-12773ca8.js +0 -9
  216. package/dist/ketchup/p-34b74425.js +0 -1
  217. package/dist/ketchup/p-4173422f.entry.js +0 -1
  218. package/dist/ketchup/p-41741c28.entry.js +0 -1
  219. package/dist/ketchup/p-44f8da2a.js +0 -1
  220. package/dist/ketchup/p-7a74ad17.js +0 -1
  221. package/dist/ketchup/p-7ba8fa4a.entry.js +0 -39
  222. package/dist/ketchup/p-7de0d7e1.js +0 -1
  223. package/dist/ketchup/p-8418e8fa.entry.js +0 -1
  224. package/dist/ketchup/p-96bf19aa.entry.js +0 -1
  225. package/dist/ketchup/p-b0ddcce9.entry.js +0 -9
  226. package/dist/ketchup/p-b6c21223.entry.js +0 -27
  227. package/dist/ketchup/p-ca3d585b.entry.js +0 -1
  228. package/dist/ketchup/p-ecb7069b.js +0 -135
  229. package/dist/types/components/kup-tooltip/kup-tooltip-declarations.d.ts +0 -93
  230. package/dist/types/components/kup-tooltip/kup-tooltip.d.ts +0 -142
  231. package/dist/types/utils/helpers.d.ts +0 -4
@@ -5,6 +5,7 @@
5
5
  display: block;
6
6
  left: 0;
7
7
  outline: none;
8
+ pointer-events: none;
8
9
  position: fixed;
9
10
  transition: opacity 0.15s cubic-bezier(0, 0, 0.2, 1) 0ms, transform 0.15s cubic-bezier(0, 0, 0.2, 1) 0ms, -webkit-transform 0.15s cubic-bezier(0, 0, 0.2, 1) 0ms;
10
11
  width: 100%;
@@ -37,6 +38,7 @@
37
38
  }
38
39
  .snackbar__text {
39
40
  padding: 14px 16px;
41
+ pointer-events: all;
40
42
  white-space: nowrap;
41
43
  }
42
44
  .snackbar__buttons {
@@ -49,11 +51,13 @@
49
51
  display: flex;
50
52
  justify-content: flex-end;
51
53
  margin-right: 8px;
54
+ pointer-events: all;
52
55
  width: 100%;
53
56
  }
54
57
  .snackbar__close {
55
58
  --kup-button-font-size: 11px;
56
59
  margin-left: 8px;
60
+ pointer-events: all;
57
61
  }
58
62
 
59
63
  @keyframes snackbar-show {
@@ -44,15 +44,15 @@ export class KupTabBar {
44
44
  */
45
45
  this.scrollArea = null;
46
46
  }
47
- onKupBlur(i, e) {
47
+ onKupBlur(i, node) {
48
48
  this.kupBlur.emit({
49
49
  comp: this,
50
50
  id: this.rootElement.id,
51
51
  index: i,
52
- el: e.target,
52
+ node: node,
53
53
  });
54
54
  }
55
- onKupClick(i, e) {
55
+ onKupClick(i, node) {
56
56
  for (let i = 0; i < this.data.length; i++) {
57
57
  this.data[i].active = false;
58
58
  }
@@ -62,16 +62,15 @@ export class KupTabBar {
62
62
  comp: this,
63
63
  id: this.rootElement.id,
64
64
  index: i,
65
- el: e.target,
66
- value: this.data[i].value,
65
+ node: node,
67
66
  });
68
67
  }
69
- onKupFocus(i, e) {
68
+ onKupFocus(i, node) {
70
69
  this.kupFocus.emit({
71
70
  comp: this,
72
71
  id: this.rootElement.id,
73
72
  index: i,
74
- el: e.target,
73
+ node: node,
75
74
  });
76
75
  }
77
76
  /*-------------------------------------------------*/
@@ -166,17 +165,17 @@ export class KupTabBar {
166
165
  }
167
166
  const tabBar = [];
168
167
  for (let i = 0; i < this.data.length; i++) {
169
- const data = this.data[i];
168
+ const node = this.data[i];
170
169
  const tabClass = {
171
170
  tab: true,
172
- 'tab--active': data.active ? true : false,
171
+ 'tab--active': node.active ? true : false,
173
172
  'mdc-ripple-surface': this.ripple ? true : false,
174
173
  };
175
- const tabEl = (h("button", { class: tabClass, role: "tab", "aria-selected": this.data[i].active ? true : false, tabIndex: i, title: data.title ? data.title : null, onBlur: (e) => this.onKupBlur(i, e), onClick: (e) => this.onKupClick(i, e), onFocus: (e) => this.onKupFocus(i, e) },
174
+ const tabEl = (h("button", { class: tabClass, role: "tab", "aria-selected": this.data[i].active ? true : false, tabIndex: i, title: node.title ? node.title : null, onBlur: () => this.onKupBlur(i, node), onClick: () => this.onKupClick(i, node), onFocus: () => this.onKupFocus(i, node) },
176
175
  h("span", { class: "tab__content" },
177
- data.icon ? (h(FImage, { color: `var(${KupThemeColorValues.PRIMARY})`, resource: data.icon, sizeX: "24px", sizeY: "24px", wrapperClass: "tab__icon" })) : null,
178
- h("span", { class: "tab__text-label" }, this.data[i].text)),
179
- h("span", { class: `tab-indicator ${data.active ? ' tab-indicator--active' : ''}` },
176
+ node.icon ? (h(FImage, { color: `var(${KupThemeColorValues.PRIMARY})`, resource: node.icon, sizeX: "24px", sizeY: "24px", wrapperClass: "tab__icon" })) : null,
177
+ node.value ? (h("span", { class: "tab__text-label" }, this.data[i].value)) : null),
178
+ h("span", { class: `tab-indicator ${node.active ? ' tab-indicator--active' : ''}` },
180
179
  h("span", { class: "tab-indicator__content tab-indicator__content--underline" }))));
181
180
  tabBar.push(tabEl);
182
181
  }
@@ -230,10 +229,10 @@ export class KupTabBar {
230
229
  "type": "unknown",
231
230
  "mutable": false,
232
231
  "complexType": {
233
- "original": "KupTabBarData[]",
234
- "resolved": "KupTabBarData[]",
232
+ "original": "KupTabBarNode[]",
233
+ "resolved": "KupTabBarNode[]",
235
234
  "references": {
236
- "KupTabBarData": {
235
+ "KupTabBarNode": {
237
236
  "location": "import",
238
237
  "path": "./kup-tab-bar-declarations"
239
238
  }
@@ -306,10 +305,10 @@ export class KupTabBar {
306
305
  "text": "Triggered when the tab is clicked."
307
306
  },
308
307
  "complexType": {
309
- "original": "KupTabBarClickEventPayload",
310
- "resolved": "KupTabBarClickEventPayload",
308
+ "original": "KupTabBarEventPayload",
309
+ "resolved": "KupTabBarEventPayload",
311
310
  "references": {
312
- "KupTabBarClickEventPayload": {
311
+ "KupTabBarEventPayload": {
313
312
  "location": "import",
314
313
  "path": "./kup-tab-bar-declarations"
315
314
  }
@@ -17,7 +17,10 @@ export var KupTextFieldProps;
17
17
  KupTextFieldProps["isClearable"] = "Enables a clear trailing icon.";
18
18
  KupTextFieldProps["label"] = "When set, its content will be shown as a label.";
19
19
  KupTextFieldProps["leadingLabel"] = "When set to true, the label will be on the left of the component.";
20
+ KupTextFieldProps["max"] = "The HTML max attribute specifies the maximum value for the input element. Works with the following input types: number, range, date, datetime-local, month, time and week.";
20
21
  KupTextFieldProps["maxLength"] = "When set, the helper will display a character counter.";
22
+ KupTextFieldProps["min"] = "The HTML min attribute specifies the minimum value for the input element. Works with the following input types: number, range, date, datetime-local, month, time and week.";
23
+ KupTextFieldProps["name"] = "The HTML name attribute used for form autocomplete.";
21
24
  KupTextFieldProps["outlined"] = "When set to true, the component will be rendered as an outlined field.";
22
25
  KupTextFieldProps["readOnly"] = "Sets the component to read only state, making it not editable, but interactable. Used in combobox component when it behaves as a select.";
23
26
  KupTextFieldProps["step"] = "The HTML step of the input element. It has effect only with number input type.";
@@ -102,6 +102,11 @@ export class KupTextField {
102
102
  * @default null
103
103
  */
104
104
  this.min = null;
105
+ /**
106
+ * The HTML name attribute used for form autocomplete.
107
+ * @default null
108
+ */
109
+ this.name = null;
105
110
  /**
106
111
  * When set to true, the component will be rendered as an outlined field.
107
112
  * @default false
@@ -305,6 +310,7 @@ export class KupTextField {
305
310
  max: this.max,
306
311
  maxLength: this.maxLength,
307
312
  min: this.min,
313
+ name: this.name,
308
314
  outlined: this.outlined,
309
315
  readOnly: this.readOnly,
310
316
  secondary: this.rootElement.classList.contains('kup-secondary')
@@ -689,6 +695,27 @@ export class KupTextField {
689
695
  "reflect": false,
690
696
  "defaultValue": "null"
691
697
  },
698
+ "name": {
699
+ "type": "string",
700
+ "mutable": false,
701
+ "complexType": {
702
+ "original": "string",
703
+ "resolved": "string",
704
+ "references": {}
705
+ },
706
+ "required": false,
707
+ "optional": false,
708
+ "docs": {
709
+ "tags": [{
710
+ "name": "default",
711
+ "text": "null"
712
+ }],
713
+ "text": "The HTML name attribute used for form autocomplete."
714
+ },
715
+ "attribute": "name",
716
+ "reflect": false,
717
+ "defaultValue": "null"
718
+ },
692
719
  "outlined": {
693
720
  "type": "boolean",
694
721
  "mutable": false,
@@ -61,12 +61,6 @@ export class KupTimePicker {
61
61
  * Instance of the KupManager class.
62
62
  */
63
63
  this.kupManager = kupManagerInstance();
64
- this.hoursEl = undefined;
65
- this.minutesEl = undefined;
66
- this.secondsEl = undefined;
67
- this.hoursCircleEl = undefined;
68
- this.minutesCircleEl = undefined;
69
- this.secondsCircleEl = undefined;
70
64
  this.hoursActive = true;
71
65
  this.minutesActive = false;
72
66
  this.secondsActive = false;
@@ -78,7 +72,7 @@ export class KupTimePicker {
78
72
  onKupTimePickerItemClick(e, value) {
79
73
  if (e != null) {
80
74
  if (value == null) {
81
- value = e.detail.selected.value;
75
+ value = e.detail.selected.id;
82
76
  }
83
77
  }
84
78
  this.setPickerValueSelected(value);
@@ -366,7 +360,7 @@ export class KupTimePicker {
366
360
  } }));
367
361
  }
368
362
  else {
369
- return (h("kup-list", { ref: (el) => (this.pickerKupEl = el), data: this.createTimeListData(this.value), "is-menu": true, "onkup-list-click": (e) => this.onKupTimePickerItemClick(e, e.detail.selected.value), id: this.rootElement.id + '_list' }));
363
+ return (h("kup-list", { ref: (el) => (this.pickerKupEl = el), data: this.createTimeListData(this.value), "is-menu": true, "onkup-list-click": (e) => this.onKupTimePickerItemClick(e, e.detail.selected.id), id: this.rootElement.id + '_list' }));
370
364
  }
371
365
  }
372
366
  createTimeListData(value) {
@@ -30,10 +30,6 @@ export var KupTreeProps;
30
30
  KupTreeProps["showIcons"] = "Shows the icons of the nodes.";
31
31
  KupTreeProps["stateId"] = "";
32
32
  KupTreeProps["store"] = "";
33
- KupTreeProps["showTooltipOnRightClick"] = "If set to true, displays tooltip on right click; if set to false, displays tooltip on mouseOver.";
34
- KupTreeProps["tooltipDetailTimeout"] = "Defines the timeout for tooltip detail";
35
- KupTreeProps["tooltipEnabled"] = "Enable show tooltip";
36
- KupTreeProps["tooltipLoadTimeout"] = "Defines the timeout for tooltip load";
37
33
  KupTreeProps["totals"] = "Defines the current totals options.";
38
34
  KupTreeProps["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.";
39
35
  })(KupTreeProps || (KupTreeProps = {}));
@@ -2,6 +2,7 @@
2
2
  * @prop --kup-tree-border: Sets border of the component.
3
3
  * @prop --kup-tree-color: Sets text color of the component.
4
4
  * @prop --kup-tree-color-rgb: Sets text color RGB values of the component (used for shaders).
5
+ * @prop --kup-tree-filter-background-color: Sets the background color of the global filter.
5
6
  * @prop --kup-tree-font-family: Sets font family of the component.
6
7
  * @prop --kup-tree-font-family-monospace: Sets monospace font family of the component (for number cells).
7
8
  * @prop --kup-tree-font-size: Sets font size of the component.
@@ -17,6 +18,7 @@
17
18
  --kup_tree_color: var(--kup-tree-color, var(--kup-text-color));
18
19
  --kup_tree_color_rgb: var(--kup-tree-color-rgb, var(--kup-text-color-rgb));
19
20
  --kup_tree_font_family: var(--kup-tree-font-family, var(--kup-font-family));
21
+ --kup_tree_filter_background_color: var(--kup-tree-filter-background-color, var(--kup-background-color));
20
22
  --kup_tree_font_family_monospace: var(
21
23
  --kup-tree-font-family-monospace,
22
24
  var(--kup-font-family-monospace)
@@ -79,9 +81,6 @@
79
81
  .wrapper {
80
82
  overflow-x: auto;
81
83
  }
82
- .wrapper #global-filter {
83
- margin-bottom: 1em;
84
- }
85
84
  .wrapper .kup-tree {
86
85
  border-collapse: collapse;
87
86
  width: max-content;
@@ -185,6 +184,14 @@
185
184
  border-bottom: solid 1px var(--kup-border-color);
186
185
  }
187
186
 
187
+ #global-filter {
188
+ background: var(--kup_tree_filter_background_color);
189
+ margin-bottom: 1em;
190
+ position: sticky;
191
+ top: 0;
192
+ z-index: 1;
193
+ }
194
+
188
195
  .first-node .cell-content {
189
196
  font-weight: bold;
190
197
  }
@@ -5,7 +5,6 @@ import { MDCRipple } from '@material/ripple';
5
5
  import { kupManagerInstance, } from '../../managers/kup-manager/kup-manager';
6
6
  import { calcTotals, normalizeRows, } from '../kup-data-table/kup-data-table-helper';
7
7
  import { KupTreeState } from './kup-tree-state';
8
- import { setTooltip, unsetTooltip } from '../../utils/helpers';
9
8
  import { getColumnByName } from '../../utils/cell-utils';
10
9
  import { getProps, numberToFormattedStringNumber, setProps, } from '../../utils/utils';
11
10
  import { KupColumnMenu } from '../../utils/kup-column-menu/kup-column-menu';
@@ -20,6 +19,7 @@ import { KupPointerEventTypes } from '../../managers/kup-interact/kup-interact-d
20
19
  import { FCellPadding, } from '../../f-components/f-cell/f-cell-declarations';
21
20
  import { FCell } from '../../f-components/f-cell/f-cell';
22
21
  import { KupDebugCategory } from '../../managers/kup-debug/kup-debug-declarations';
22
+ import { FTextFieldMDC } from '../../f-components/f-text-field/f-text-field-mdc';
23
23
  export class KupTree {
24
24
  constructor() {
25
25
  /*-------------------------------------------------*/
@@ -163,14 +163,6 @@ export class KupTree {
163
163
  * @see dynamicExpansionCallback
164
164
  */
165
165
  this.useDynamicExpansion = false;
166
- /**
167
- * If set to true, displays tooltip on right click; if set to false, displays tooltip on mouseOver.
168
- */
169
- this.showTooltipOnRightClick = true;
170
- /**
171
- * Enable show tooltip
172
- */
173
- this.tooltipEnabled = true;
174
166
  /*-------------------------------------------------*/
175
167
  /* I n t e r n a l V a r i a b l e s */
176
168
  /*-------------------------------------------------*/
@@ -198,7 +190,6 @@ export class KupTree {
198
190
  if (this.store && this.stateId) {
199
191
  const state = this.store.getState(this.stateId);
200
192
  if (state != null) {
201
- console.log('Initialize with state for stateId ' + this.stateId, state);
202
193
  this.density = state.density;
203
194
  this.showFilters = state.showFilters;
204
195
  this.showFooter = state.showFooter;
@@ -245,7 +236,6 @@ export class KupTree {
245
236
  return;
246
237
  }
247
238
  if (somethingChanged) {
248
- console.log('Persisting state for stateId ' + this.stateId + ': ', this.state);
249
239
  this.store.persistState(this.stateId, this.state);
250
240
  }
251
241
  }
@@ -390,7 +380,7 @@ export class KupTree {
390
380
  }
391
381
  this.columnMenuCard.setAttribute('data-column', column);
392
382
  this.columnMenuCard.data = this.columnMenuInstance.prepData(this, getColumnByName(this.getVisibleColumns(), column));
393
- this.columnMenuInstance.open(this, column, this.tooltip);
383
+ this.columnMenuInstance.open(this, column);
394
384
  this.columnMenuInstance.reposition(this, this.columnMenuCard);
395
385
  this.kupTreeColumnMenu.emit({
396
386
  comp: this,
@@ -550,16 +540,52 @@ export class KupTree {
550
540
  openTotalMenu(column) {
551
541
  this.openedTotalMenu = column.name;
552
542
  }
553
- closeMenuAndTooltip() {
554
- unsetTooltip(this.tooltip);
555
- }
556
543
  onTotalMenuOpen(column) {
557
- this.closeMenuAndTooltip();
558
544
  this.closeTotalMenu();
559
545
  this.openTotalMenu(column);
560
546
  }
561
- getEventDetails(el) {
562
- const isHeader = !!el.closest('thead'), isBody = !!el.closest('tbody'), isFooter = !!el.closest('tfoot'), td = el.closest('td'), th = el.closest('th'), tr = el.closest('tr'), filterRemove = el.closest('th .filter-remove');
547
+ getEventDetails(path, e) {
548
+ let isHeader, isBody, isFooter, td, th, tr, filterRemove;
549
+ if (path) {
550
+ for (let i = path.length - 1; i >= 0; i--) {
551
+ let p = path[i];
552
+ if (!p.tagName) {
553
+ continue;
554
+ }
555
+ switch (p.tagName.toUpperCase()) {
556
+ case 'THEAD': {
557
+ isHeader = true;
558
+ break;
559
+ }
560
+ case 'TBODY': {
561
+ isBody = true;
562
+ break;
563
+ }
564
+ case 'TFOOT': {
565
+ isFooter = true;
566
+ break;
567
+ }
568
+ case 'TD': {
569
+ td = p;
570
+ break;
571
+ }
572
+ case 'TH': {
573
+ th = p;
574
+ break;
575
+ }
576
+ case 'TR': {
577
+ tr = p;
578
+ break;
579
+ }
580
+ default: {
581
+ if (p.classList.contains(KupThemeIconValues.FILTER_REMOVE.replace('--', ''))) {
582
+ filterRemove = p;
583
+ }
584
+ break;
585
+ }
586
+ }
587
+ }
588
+ }
563
589
  let cell = null, column = null, row = null;
564
590
  if (isBody) {
565
591
  if (td) {
@@ -590,6 +616,7 @@ export class KupTree {
590
616
  cell: cell ? cell : null,
591
617
  column: column ? column : null,
592
618
  filterRemove: filterRemove ? filterRemove : null,
619
+ originalEvent: e,
593
620
  row: row ? row : null,
594
621
  td: td ? td : null,
595
622
  th: th ? th : null,
@@ -598,7 +625,7 @@ export class KupTree {
598
625
  }
599
626
  contextMenuHandler(e) {
600
627
  e.preventDefault();
601
- const details = this.getEventDetails(e.target);
628
+ const details = this.getEventDetails(this.getEventPath(e.target), e);
602
629
  if (details.area === 'header') {
603
630
  if (details.th && details.column) {
604
631
  this.openColumnMenu(details.column.name);
@@ -614,9 +641,20 @@ export class KupTree {
614
641
  }
615
642
  return details;
616
643
  }
644
+ getEventPath(currentEl) {
645
+ const path = [];
646
+ while (currentEl &&
647
+ currentEl !== this.rootElement &&
648
+ currentEl !== document.body) {
649
+ path.push(currentEl);
650
+ currentEl = currentEl.parentNode
651
+ ? currentEl.parentNode
652
+ : currentEl.host;
653
+ }
654
+ return path;
655
+ }
617
656
  // When a TreeNode can be selected
618
657
  hdlTreeNodeClick(e, treeNodeData, treeNodePath, auto) {
619
- unsetTooltip(this.tooltip);
620
658
  if (this.expansionMode.toLowerCase() ===
621
659
  KupTreeExpansionMode.DROPDOWN ||
622
660
  (this.expansionMode.toLowerCase() === KupTreeExpansionMode.NODE &&
@@ -647,7 +685,6 @@ export class KupTree {
647
685
  }
648
686
  // When a TreeNode must be expanded or closed.
649
687
  hdlTreeNodeExpanderClick(treeNodeData, treeNodePath, ctrlKey) {
650
- unsetTooltip(this.tooltip);
651
688
  // If the node is expandable
652
689
  if (treeNodeData.expandable) {
653
690
  // Always composes the tree node path as an array
@@ -828,34 +865,6 @@ export class KupTree {
828
865
  return h("span", { style: iconStyle, class: CSSClass });
829
866
  }
830
867
  }
831
- /**
832
- * Controls if current cell needs a tooltip and eventually adds it.
833
- * @todo When the option forceOneLine is active, there is a problem with the current implementation of the tooltip. See documentation in the mauer wiki for better understanding.
834
- */
835
- getToolTipEventHandlers(treeNodeData, cell, hasTooltip) {
836
- let eventHandlers = undefined;
837
- if (hasTooltip) {
838
- if (this.showTooltipOnRightClick) {
839
- eventHandlers = {
840
- onContextMenu: (ev) => {
841
- ev.preventDefault();
842
- setTooltip(ev, treeNodeData.id, null, cell, this.tooltip);
843
- },
844
- };
845
- }
846
- else {
847
- eventHandlers = {
848
- onMouseEnter: (ev) => {
849
- setTooltip(ev, treeNodeData.id, null, cell, this.tooltip);
850
- },
851
- onMouseLeave: () => {
852
- unsetTooltip(this.tooltip);
853
- },
854
- };
855
- }
856
- }
857
- return eventHandlers;
858
- }
859
868
  getCellStyle(colName, cellStyle) {
860
869
  // Controls if there are columns with a specified width
861
870
  if (this.sizedColumns) {
@@ -881,14 +890,6 @@ export class KupTree {
881
890
  }
882
891
  return cellStyle;
883
892
  }
884
- renderTooltip() {
885
- if (this.tooltipEnabled == false) {
886
- return null;
887
- }
888
- return (h("kup-tooltip", { class: "tree-tooltip", owner: this.rootElement.tagName, loadTimeout: this.showTooltipOnRightClick == true
889
- ? 0
890
- : this.tooltipLoadTimeout, detailTimeout: this.tooltipDetailTimeout, ref: (el) => (this.tooltip = el) }));
891
- }
892
893
  /**
893
894
  * Renders the header of the tree when it must be displayed as a table.
894
895
  * @returns An array of table header cells.
@@ -1039,7 +1040,7 @@ export class KupTree {
1039
1040
  row: treeNodeData,
1040
1041
  setSizes: true,
1041
1042
  };
1042
- treeNodeCells.push(h("td", { class: `grid-cell` },
1043
+ treeNodeCells.push(h("td", { class: `grid-cell`, "data-cell": cell, "data-column": column.name },
1043
1044
  h(FCell, Object.assign({}, cellProps))));
1044
1045
  }
1045
1046
  else {
@@ -1047,9 +1048,9 @@ export class KupTree {
1047
1048
  }
1048
1049
  }
1049
1050
  }
1050
- const _hasTooltip = !this.kupManager.objects.isEmptyKupObj(treeNodeData.obj);
1051
1051
  let title = undefined;
1052
- if (_hasTooltip && this.kupManager.debug.isDebug()) {
1052
+ if (!this.kupManager.objects.isEmptyKupObj(treeNodeData.obj) &&
1053
+ this.kupManager.debug.isDebug()) {
1053
1054
  title =
1054
1055
  treeNodeData.obj.t +
1055
1056
  '; ' +
@@ -1058,10 +1059,6 @@ export class KupTree {
1058
1059
  treeNodeData.obj.k +
1059
1060
  ';';
1060
1061
  }
1061
- const cell = {
1062
- obj: treeNodeData.obj,
1063
- value: treeNodeData.value,
1064
- };
1065
1062
  let treeNodeCell = null;
1066
1063
  if (this.isTreeColumnVisible()) {
1067
1064
  let content = '';
@@ -1071,7 +1068,7 @@ export class KupTree {
1071
1068
  else {
1072
1069
  content = (h("span", { ref: (el) => this.contentRefs.push(el), class: "cell-content", title: this.preventXScroll ? treeNodeData.value : null }, treeNodeData.value));
1073
1070
  }
1074
- treeNodeCell = (h("td", Object.assign({ class: {
1071
+ treeNodeCell = (h("td", { class: {
1075
1072
  'first-node': treeNodeDepth === 0 ? true : false,
1076
1073
  'mdc-ripple-surface': this.ripple &&
1077
1074
  !this.showColumns &&
@@ -1079,7 +1076,7 @@ export class KupTree {
1079
1076
  'is-obj': !this.kupManager.objects.isEmptyKupObj(treeNodeData.obj),
1080
1077
  }, style: treeNodeData.style || null, title: title, onDblClick: () => {
1081
1078
  this.onKupTreeNodeDblClick(treeNodeData, treeNodePath);
1082
- } }, this.getToolTipEventHandlers(treeNodeData, cell, _hasTooltip)), this.asAccordion && !treeNodeDepth
1079
+ } }, this.asAccordion && !treeNodeDepth
1083
1080
  ? [
1084
1081
  treeNodeIcon,
1085
1082
  content,
@@ -1094,7 +1091,7 @@ export class KupTree {
1094
1091
  'kup-tree__node--first': treeNodeDepth ? false : true,
1095
1092
  'kup-tree__node--selected': !treeNodeData.disabled &&
1096
1093
  treeNodePath === this.selectedNodeString,
1097
- }, "data-tree-path": treeNodePath }, treeNodeOptions),
1094
+ }, "data-row": treeNodeData, "data-tree-path": treeNodePath }, treeNodeOptions),
1098
1095
  treeNodeCell,
1099
1096
  treeNodeCells));
1100
1097
  }
@@ -1112,7 +1109,7 @@ export class KupTree {
1112
1109
  // must do this
1113
1110
  // otherwise does not fire the watcher
1114
1111
  const totalsCopy = Object.assign({}, this.totals);
1115
- const value = event.detail.selected.value;
1112
+ const value = event.detail.selected.id;
1116
1113
  if (value === TotalLabel.CANC) {
1117
1114
  if (this.totals && this.totals[column.name]) {
1118
1115
  delete totalsCopy[column.name];
@@ -1376,6 +1373,12 @@ export class KupTree {
1376
1373
  }
1377
1374
  }
1378
1375
  }
1376
+ if (root) {
1377
+ const fs = root.querySelectorAll('.f-text-field');
1378
+ for (let index = 0; index < fs.length; index++) {
1379
+ FTextFieldMDC(fs[index]);
1380
+ }
1381
+ }
1379
1382
  if (this.preventXScroll) {
1380
1383
  this.setEllipsis();
1381
1384
  }
@@ -1390,7 +1393,6 @@ export class KupTree {
1390
1393
  }
1391
1394
  render() {
1392
1395
  this.contentRefs = [];
1393
- const tooltip = this.renderTooltip();
1394
1396
  this.sizedColumns = this.getSizedColumns();
1395
1397
  let wrapperClass = 'density-medium';
1396
1398
  switch (this.density) {
@@ -1429,9 +1431,9 @@ export class KupTree {
1429
1431
  return (h(Host, null,
1430
1432
  h("style", null, this.kupManager.theme.setKupStyle(this.rootElement)),
1431
1433
  h("div", { id: componentWrapperId, class: wrapperClass },
1434
+ filterField,
1432
1435
  h("div", { class: "wrapper", ref: (el) => (this.treeWrapperRef =
1433
1436
  el) },
1434
- filterField,
1435
1437
  h("table", { class: "kup-tree", "data-show-columns": this.showColumns, onContextMenu: (e) => {
1436
1438
  e.preventDefault();
1437
1439
  } },
@@ -1443,8 +1445,7 @@ export class KupTree {
1443
1445
  (this.showFooter || this.hasTotals()) &&
1444
1446
  this.columns
1445
1447
  ? this.renderFooter()
1446
- : null)),
1447
- tooltip)));
1448
+ : null)))));
1448
1449
  }
1449
1450
  disconnectedCallback() {
1450
1451
  this.kupManager.language.register(this);
@@ -2043,76 +2044,6 @@ export class KupTree {
2043
2044
  "reflect": false,
2044
2045
  "defaultValue": "false"
2045
2046
  },
2046
- "showTooltipOnRightClick": {
2047
- "type": "boolean",
2048
- "mutable": false,
2049
- "complexType": {
2050
- "original": "boolean",
2051
- "resolved": "boolean",
2052
- "references": {}
2053
- },
2054
- "required": false,
2055
- "optional": false,
2056
- "docs": {
2057
- "tags": [],
2058
- "text": "If set to true, displays tooltip on right click; if set to false, displays tooltip on mouseOver."
2059
- },
2060
- "attribute": "show-tooltip-on-right-click",
2061
- "reflect": false,
2062
- "defaultValue": "true"
2063
- },
2064
- "tooltipDetailTimeout": {
2065
- "type": "number",
2066
- "mutable": false,
2067
- "complexType": {
2068
- "original": "number",
2069
- "resolved": "number",
2070
- "references": {}
2071
- },
2072
- "required": false,
2073
- "optional": false,
2074
- "docs": {
2075
- "tags": [],
2076
- "text": "Defines the timeout for tooltip detail"
2077
- },
2078
- "attribute": "tooltip-detail-timeout",
2079
- "reflect": false
2080
- },
2081
- "tooltipEnabled": {
2082
- "type": "boolean",
2083
- "mutable": false,
2084
- "complexType": {
2085
- "original": "boolean",
2086
- "resolved": "boolean",
2087
- "references": {}
2088
- },
2089
- "required": false,
2090
- "optional": false,
2091
- "docs": {
2092
- "tags": [],
2093
- "text": "Enable show tooltip"
2094
- },
2095
- "attribute": "tooltip-enabled",
2096
- "reflect": false,
2097
- "defaultValue": "true"
2098
- },
2099
- "tooltipLoadTimeout": {
2100
- "type": "number",
2101
- "mutable": false,
2102
- "complexType": {
2103
- "original": "number",
2104
- "resolved": "number",
2105
- "references": {}
2106
- },
2107
- "required": false,
2108
- "optional": false,
2109
- "docs": {
2110
- "tags": [],
2111
- "text": "Defines the timeout for tooltip load"
2112
- },
2113
- "attribute": "tooltip-load-timeout",
2114
- "reflect": false
2115
- },
2116
2047
  "totals": {
2117
2048
  "type": "unknown",
2118
2049
  "mutable": true,
@@ -58,7 +58,7 @@ function renderButton(props) {
58
58
  const styleSpinnerContainer = {
59
59
  '--kup_button_spinner_height': propsFImage.sizeY,
60
60
  };
61
- return (h("button", { class: classObj, disabled: props.disabled, onBlur: props.onBlur, onClick: props.onClick, onFocus: props.onFocus, style: styleSpinnerContainer, type: "button" },
61
+ return (h("button", { class: classObj, disabled: props.disabled, onBlur: props.onBlur, onClick: props.onClick, onFocus: props.onFocus, style: styleSpinnerContainer, "aria-label": props.title, type: "button" },
62
62
  props.trailingIcon
63
63
  ? [
64
64
  h("span", { class: classLabelObj }, props.label),
@@ -93,7 +93,7 @@ function renderIconButton(props) {
93
93
  const iconOff = props.iconOff
94
94
  ? props.iconOff
95
95
  : props.icon + '_border';
96
- return (h("button", { class: classObj, disabled: props.disabled, onClick: props.onClick, style: styleSpinnerContainer, type: "button", value: props.checked ? 'on' : 'off' },
96
+ return (h("button", { class: classObj, disabled: props.disabled, onClick: props.onClick, style: styleSpinnerContainer, type: "button", value: props.checked ? 'on' : 'off', "aria-label": props.title },
97
97
  !props.showSpinner || props.disabled ? (h(FImage, Object.assign({}, propsFImage, { resource: props.toggable && !props.checked ? iconOff : props.icon, wrapperClass: `icon-button__icon kup-icon` }))) : null,
98
98
  props.toggable && !props.showSpinner ? (h(FImage, Object.assign({}, propsFImage, { resource: props.icon, wrapperClass: `icon-button__icon icon-button__icon--on kup-icon` }))) : null,
99
99
  props.showSpinner && !props.disabled ? (h("div", { class: "icon-button__spinner-container" },