@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
package/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ # KetchUP Changelog
2
+
3
+ ## 24/06/2019 - Pre release
4
+
5
+ Migrated from Stencil@0.18.x to Stencil@1.0.7
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- const utils = require('./utils-e99921c1.js');
4
- const kupManager = require('./kup-manager-5c03da64.js');
3
+ const utils = require('./utils-8470184d.js');
4
+ const kupManager = require('./kup-manager-2fee8cf3.js');
5
5
 
6
6
  const dom = document.documentElement;
7
7
  // -------------
@@ -258,6 +258,31 @@ function matches(element, selector) {
258
258
  || element.msMatchesSelector;
259
259
  return nativeMatches.call(element, selector);
260
260
  }
261
+ /**
262
+ * Used to compute the estimated scroll width of elements. When an element is
263
+ * hidden due to display: none; being applied to a parent element, the width is
264
+ * returned as 0. However, the element will have a true width once no longer
265
+ * inside a display: none context. This method computes an estimated width when
266
+ * the element is hidden or returns the true width when the element is visble.
267
+ * @param {Element} element the element whose width to estimate
268
+ */
269
+ function estimateScrollWidth(element) {
270
+ // Check the offsetParent. If the element inherits display: none from any
271
+ // parent, the offsetParent property will be null (see
272
+ // https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/offsetParent).
273
+ // This check ensures we only clone the node when necessary.
274
+ var htmlEl = element;
275
+ if (htmlEl.offsetParent !== null) {
276
+ return htmlEl.scrollWidth;
277
+ }
278
+ var clone = htmlEl.cloneNode(true);
279
+ clone.style.setProperty('position', 'absolute');
280
+ clone.style.setProperty('transform', 'translate(-9999px, -9999px)');
281
+ document.documentElement.appendChild(clone);
282
+ var scrollWidth = clone.scrollWidth;
283
+ document.documentElement.removeChild(clone);
284
+ return scrollWidth;
285
+ }
261
286
 
262
287
  /**
263
288
  * @license
@@ -992,5 +1017,10 @@ var MDCRipple = /** @class */ (function (_super) {
992
1017
  return MDCRipple;
993
1018
  }(MDCComponent));
994
1019
 
1020
+ exports.MDCComponent = MDCComponent;
1021
+ exports.MDCFoundation = MDCFoundation;
995
1022
  exports.MDCRipple = MDCRipple;
996
1023
  exports.MDCRippleFoundation = MDCRippleFoundation;
1024
+ exports.applyPassive = applyPassive;
1025
+ exports.estimateScrollWidth = estimateScrollWidth;
1026
+ exports.matches = matches;
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- const index = require('./index-eb556444.js');
3
+ const index = require('./index-06b131ea.js');
4
4
  const fButtonDeclarations = require('./f-button-declarations-b611587f.js');
5
- const fImage = require('./f-image-12bab3b5.js');
5
+ const fImage = require('./f-image-0618c795.js');
6
6
 
7
7
  /*-------------------------------------------------*/
8
8
  /* C o m p o n e n t */
@@ -60,7 +60,7 @@ function renderButton(props) {
60
60
  const styleSpinnerContainer = {
61
61
  '--kup_button_spinner_height': propsFImage.sizeY,
62
62
  };
63
- return (index.h("button", { class: classObj, disabled: props.disabled, onBlur: props.onBlur, onClick: props.onClick, onFocus: props.onFocus, style: styleSpinnerContainer, type: "button" },
63
+ return (index.h("button", { class: classObj, disabled: props.disabled, onBlur: props.onBlur, onClick: props.onClick, onFocus: props.onFocus, style: styleSpinnerContainer, "aria-label": props.title, type: "button" },
64
64
  props.trailingIcon
65
65
  ? [
66
66
  index.h("span", { class: classLabelObj }, props.label),
@@ -95,7 +95,7 @@ function renderIconButton(props) {
95
95
  const iconOff = props.iconOff
96
96
  ? props.iconOff
97
97
  : props.icon + '_border';
98
- return (index.h("button", { class: classObj, disabled: props.disabled, onClick: props.onClick, style: styleSpinnerContainer, type: "button", value: props.checked ? 'on' : 'off' },
98
+ return (index.h("button", { class: classObj, disabled: props.disabled, onClick: props.onClick, style: styleSpinnerContainer, type: "button", value: props.checked ? 'on' : 'off', "aria-label": props.title },
99
99
  !props.showSpinner || props.disabled ? (index.h(fImage.FImage, Object.assign({}, propsFImage, { resource: props.toggable && !props.checked ? iconOff : props.icon, wrapperClass: `icon-button__icon kup-icon` }))) : null,
100
100
  props.toggable && !props.showSpinner ? (index.h(fImage.FImage, Object.assign({}, propsFImage, { resource: props.icon, wrapperClass: `icon-button__icon icon-button__icon--on kup-icon` }))) : null,
101
101
  props.showSpinner && !props.disabled ? (index.h("div", { class: "icon-button__spinner-container" },
@@ -0,0 +1,418 @@
1
+ 'use strict';
2
+
3
+ const kupManager = require('./kup-manager-2fee8cf3.js');
4
+ const index = require('./index-06b131ea.js');
5
+ const cellUtils = require('./cell-utils-d894e802.js');
6
+ const fCheckbox = require('./f-checkbox-57443ca3.js');
7
+ const fTextField = require('./f-text-field-7d31190f.js');
8
+ const utils = require('./utils-8470184d.js');
9
+ const fImage = require('./f-image-0618c795.js');
10
+ const fChip = require('./f-chip-ef81bf51.js');
11
+
12
+ /*-------------------------------------------------*/
13
+ /* C o m p o n e n t */
14
+ /*-------------------------------------------------*/
15
+ const FSwitch = (props) => {
16
+ return (index.h("div", Object.assign({ class: `f-switch ${props.danger ? 'kup-danger' : ''} ${props.info ? 'kup-info' : ''} ${props.secondary ? 'kup-secondary' : ''} ${props.success ? 'kup-success' : ''} ${props.warning ? 'kup-warning' : ''} ${props.wrapperClass ? props.wrapperClass : ''}` }, props.dataSet, { id: props.id, title: props.title }),
17
+ index.h("div", { class: `form-field ${props.leadingLabel ? 'form-field--align-end' : ''}` },
18
+ index.h("div", { class: `switch ${props.checked ? 'switch--checked' : ''} ${props.disabled ? 'switch--disabled' : ''}` },
19
+ index.h("div", { class: "switch__track" }),
20
+ index.h("div", { class: "switch__thumb-underlay" },
21
+ index.h("div", { class: "switch__thumb" },
22
+ index.h("input", { type: "checkbox", class: "switch__native-control", role: "switch", checked: props.checked, disabled: props.disabled, value: props.checked ? 'on' : 'off', onBlur: props.onBlur, onChange: props.onChange, onFocus: props.onFocus })))),
23
+ index.h("label", { onClick: props.onChange }, props.label))));
24
+ };
25
+
26
+ const dom = document.documentElement;
27
+ /*-------------------------------------------------*/
28
+ /* C o m p o n e n t */
29
+ /*-------------------------------------------------*/
30
+ const FCell = (props, children) => {
31
+ const cell = props.cell;
32
+ const column = props.column;
33
+ const row = props.row;
34
+ const shape = props.shape
35
+ ? props.shape
36
+ : cell.shape
37
+ ? cell.shape
38
+ : column.shape
39
+ ? column.shape
40
+ : null;
41
+ const hasObj = !dom.ketchup.objects.isEmptyKupObj(cell.obj);
42
+ const isEditable = cell.isEditable && props.editable ? true : false;
43
+ const valueToDisplay = props.previousValue !== cell.value ? cell.value : '';
44
+ const cellType = dom.ketchup.data.cell.getType(cell, shape);
45
+ const subcomponentProps = Object.assign({}, cell.data);
46
+ let cssClasses = cell.cssClass
47
+ ? cell.cssClass
48
+ : column.cssClass
49
+ ? column.cssClass
50
+ : '';
51
+ const classObj = {
52
+ 'f-cell': true,
53
+ [kupManager.FCellClasses.OBJ]: hasObj ? true : false,
54
+ [cellType + '-cell']: true,
55
+ [props.wrapperClass]: props.wrapperClass ? true : false,
56
+ [props.density]: props.density && cellType !== kupManager.FCellTypes.BAR ? true : false,
57
+ [cssClasses]: cssClasses ? true : false,
58
+ };
59
+ let content = valueToDisplay;
60
+ if (isEditable && kupManager.editableTypes.includes(cellType)) {
61
+ content = setEditableCell(cellType, classObj, cell, column, props);
62
+ }
63
+ else if (cell.data && kupManager.kupTypes.includes(cellType)) {
64
+ if (props.setSizes) {
65
+ setCellSizeKup(cellType, subcomponentProps, cell);
66
+ }
67
+ if (!props.renderKup) {
68
+ const lazyClass = 'cell-' + cellType + ' placeholder';
69
+ content = index.h("span", { class: lazyClass });
70
+ }
71
+ else {
72
+ content = setKupCell(cellType, classObj, subcomponentProps, cell, row, column, props);
73
+ }
74
+ }
75
+ else {
76
+ if (props.setSizes) {
77
+ setCellSize(cellType, subcomponentProps, cell, props);
78
+ }
79
+ content = setCell(cellType, subcomponentProps, content, classObj, cell, column, props);
80
+ }
81
+ let icon = null;
82
+ if (!isEditable && (column.icon || cell.icon) && content) {
83
+ const fProps = {
84
+ color: `rgba(var(${kupManager.KupThemeColorValues.TEXT}-rgb), 0.375)`,
85
+ resource: cell.icon ? cell.icon : column.icon,
86
+ sizeX: '1.25em',
87
+ sizeY: '1.25em',
88
+ wrapperClass: 'obj-icon',
89
+ };
90
+ icon = index.h(fImage.FImage, Object.assign({}, fProps));
91
+ }
92
+ let cellTitle = null;
93
+ if (dom.ketchup.debug.isDebug() && hasObj) {
94
+ cellTitle = cell.obj.t + '; ' + cell.obj.p + '; ' + cell.obj.k + ';';
95
+ }
96
+ else if (cell.title != null && cell.title.trim() != '') {
97
+ cellTitle = cell.title;
98
+ }
99
+ let infoEl = null;
100
+ if (cell.info) {
101
+ const info = Object.assign({}, cell.info);
102
+ if (!info.color) {
103
+ info.color = `var(${kupManager.KupThemeColorValues.INFO})`;
104
+ }
105
+ if (!info.icon) {
106
+ info.icon = 'info';
107
+ }
108
+ const fProps = {
109
+ color: info.color,
110
+ resource: info.icon,
111
+ sizeX: '1.25em',
112
+ sizeY: '1.25em',
113
+ title: info.message ? info.message : '',
114
+ wrapperClass: 'cell-info',
115
+ };
116
+ infoEl = index.h(fImage.FImage, Object.assign({}, fProps));
117
+ }
118
+ return (index.h("div", { class: classObj, "kup-get-cell-props": () => {
119
+ return props;
120
+ }, style: cell.style },
121
+ index.h("div", { class: "f-cell__content", style: cell.styleContent, title: cellTitle }, children && children.length > 0
122
+ ? children
123
+ : [props.indents, infoEl, icon, content])));
124
+ };
125
+ function setCellSize(cellType, subcomponentProps, cell, props) {
126
+ switch (cellType) {
127
+ case kupManager.FCellTypes.CHECKBOX:
128
+ case kupManager.FCellTypes.ICON:
129
+ if (!subcomponentProps.sizeX) {
130
+ subcomponentProps.sizeX = '18px';
131
+ }
132
+ if (!subcomponentProps.sizeY) {
133
+ subcomponentProps.sizeY = '18px';
134
+ }
135
+ if (cell.style) {
136
+ if (!cell.style.height) {
137
+ cell.style['minHeight'] = subcomponentProps.sizeY;
138
+ }
139
+ }
140
+ else {
141
+ cell.style = {
142
+ minHeight: subcomponentProps.sizeY,
143
+ };
144
+ }
145
+ break;
146
+ case kupManager.FCellTypes.IMAGE:
147
+ if (props.component.rootElement.tagName ===
148
+ kupManager.KupTagNames.BOX) {
149
+ if (!subcomponentProps.sizeY) {
150
+ subcomponentProps.sizeY = 'auto';
151
+ }
152
+ if (subcomponentProps.fit === undefined) {
153
+ subcomponentProps.fit = true;
154
+ }
155
+ }
156
+ else if (!subcomponentProps.sizeX) {
157
+ subcomponentProps.sizeX = 'auto';
158
+ }
159
+ if (!subcomponentProps.sizeY) {
160
+ subcomponentProps.sizeY = '64px';
161
+ }
162
+ break;
163
+ }
164
+ }
165
+ function setCellSizeKup(cellType, subcomponentProps, cell) {
166
+ switch (cellType) {
167
+ case kupManager.FCellTypes.BAR:
168
+ if (!subcomponentProps.sizeY) {
169
+ subcomponentProps.sizeY = '26px';
170
+ }
171
+ break;
172
+ case kupManager.FCellTypes.BUTTON:
173
+ let height = '';
174
+ if (subcomponentProps.label) {
175
+ height = '36px';
176
+ }
177
+ if (cell.style) {
178
+ if (!cell.style.height) {
179
+ cell.style['minHeight'] = height;
180
+ }
181
+ }
182
+ else {
183
+ cell.style = { minHeight: height };
184
+ }
185
+ break;
186
+ case kupManager.FCellTypes.CHART:
187
+ if (!subcomponentProps.sizeX) {
188
+ subcomponentProps.sizeX = '100%';
189
+ }
190
+ if (!subcomponentProps.sizeY) {
191
+ subcomponentProps.sizeY = '100%';
192
+ }
193
+ break;
194
+ case kupManager.FCellTypes.CHIP:
195
+ if (cell.style) {
196
+ if (!cell.style.height) {
197
+ cell.style['minHeight'] = '40px';
198
+ }
199
+ }
200
+ else {
201
+ cell.style = { minHeight: '40px' };
202
+ }
203
+ break;
204
+ case kupManager.FCellTypes.RADIO:
205
+ if (cell.style) {
206
+ if (!cell.style.height) {
207
+ cell.style['minHeight'] = '40px';
208
+ }
209
+ }
210
+ else {
211
+ cell.style = { minHeight: '40px' };
212
+ }
213
+ break;
214
+ }
215
+ }
216
+ function setEditableCell(cellType, classObj, cell, column, props) {
217
+ switch (cellType) {
218
+ case kupManager.FCellTypes.AUTOCOMPLETE:
219
+ return (index.h("kup-autocomplete", Object.assign({ initialValue: cell.value }, cell.data, { class: isFullWidth(props) ? 'kup-full-width' : '', "onkup-autocomplete-change": (e) => cellEvent(e, props, cellType, kupManager.FCellEvents.UPDATE), "onkup-autocomplete-input": (e) => cellEvent(e, props, cellType, kupManager.FCellEvents.INPUT), "onkup-autocomplete-iconclick": (e) => cellEvent(e, props, cellType, kupManager.FCellEvents.ICON_CLICK) })));
220
+ case kupManager.FCellTypes.CHECKBOX:
221
+ if (isAutoCentered(props)) {
222
+ classObj[kupManager.FCellClasses.C_CENTERED] = true;
223
+ }
224
+ return (index.h(fCheckbox.FCheckbox, Object.assign({}, cell.data, { onChange: (e) => cellEvent(e, props, cellType, kupManager.FCellEvents.UPDATE) })));
225
+ case kupManager.FCellTypes.COLOR_PICKER:
226
+ return (index.h("kup-color-picker", Object.assign({ initialValue: cell.value }, cell.data, { class: isFullWidth(props) ? 'kup-full-width' : '', disabled: false, "onkup-colorpicker-change": (e) => cellEvent(e, props, cellType, kupManager.FCellEvents.UPDATE) })));
227
+ case kupManager.FCellTypes.COMBOBOX:
228
+ return (index.h("kup-combobox", Object.assign({ initialValue: cell.value }, cell.data, { class: isFullWidth(props) ? 'kup-full-width' : '', "onkup-combobox-change": (e) => cellEvent(e, props, cellType, kupManager.FCellEvents.UPDATE), "onkup-combobox-input": (e) => cellEvent(e, props, cellType, kupManager.FCellEvents.INPUT), "onkup-combobox-iconclick": (e) => cellEvent(e, props, cellType, kupManager.FCellEvents.ICON_CLICK) })));
229
+ case kupManager.FCellTypes.DATE:
230
+ return (index.h("kup-date-picker", Object.assign({ initialValue: cell.value }, cell.data, { class: isFullWidth(props) ? 'kup-full-width' : '', "onkup-datepicker-change": (e) => cellEvent(e, props, cellType, kupManager.FCellEvents.UPDATE), "onkup-datepicker-input": (e) => cellEvent(e, props, cellType, kupManager.FCellEvents.INPUT) })));
231
+ case kupManager.FCellTypes.RATING:
232
+ return (index.h("kup-rating", Object.assign({}, cell.data, { disabled: false, "onkup-rating-click": (e) => cellEvent(e, props, cellType, kupManager.FCellEvents.UPDATE) })));
233
+ case kupManager.FCellTypes.SWITCH:
234
+ return (index.h(FSwitch, Object.assign({}, cell.data, { disabled: false, onChange: (e) => cellEvent(e, props, cellType, kupManager.FCellEvents.UPDATE) })));
235
+ case kupManager.FCellTypes.TIME:
236
+ return (index.h("kup-time-picker", Object.assign({ initialValue: cell.value }, cell.data, { class: isFullWidth(props) ? 'kup-full-width' : '', "onkup-timepicker-change": (e) => cellEvent(e, props, cellType, kupManager.FCellEvents.UPDATE), "onkup-timepicker-input": (e) => cellEvent(e, props, cellType, kupManager.FCellEvents.INPUT) })));
237
+ case kupManager.FCellTypes.NUMBER:
238
+ classObj[kupManager.FCellClasses.C_RIGHT_ALIGNED] = true;
239
+ case kupManager.FCellTypes.STRING:
240
+ return (index.h(fTextField.FTextField, Object.assign({}, cell.data, { icon: cell.icon ? cell.icon : column.icon ? column.icon : null, fullWidth: isFullWidth(props) ? true : false, inputType: cellType === kupManager.FCellTypes.NUMBER ? 'number' : null, value: cellType === kupManager.FCellTypes.NUMBER
241
+ ? utils.stringToNumber(cell.value).toString()
242
+ : cell.value, onChange: (e) => cellEvent(e, props, cellType, kupManager.FCellEvents.UPDATE), onInput: (e) => cellEvent(e, props, cellType, kupManager.FCellEvents.INPUT), onIconClick: (e) => cellEvent(e, props, cellType, kupManager.FCellEvents.ICON_CLICK) })));
243
+ }
244
+ }
245
+ function setCell(cellType, subcomponentProps, content, classObj, cell, column, props) {
246
+ switch (cellType) {
247
+ case kupManager.FCellTypes.AUTOCOMPLETE:
248
+ case kupManager.FCellTypes.COMBOBOX:
249
+ case kupManager.FCellTypes.DATE:
250
+ case kupManager.FCellTypes.DATETIME:
251
+ case kupManager.FCellTypes.TIME:
252
+ if (content && content != '') {
253
+ const cellValue = cellUtils.getCellValueForDisplay(column, cell);
254
+ return index.h("div", { class: "f-cell__text" }, cellValue);
255
+ }
256
+ return content;
257
+ case kupManager.FCellTypes.CHECKBOX:
258
+ if (isAutoCentered(props)) {
259
+ classObj[kupManager.FCellClasses.C_CENTERED] = true;
260
+ }
261
+ return (index.h(fImage.FImage, { resource: subcomponentProps.checked
262
+ ? 'check_box'
263
+ : 'check_box_outline_blank', sizeX: "18px", sizeY: "18px" }));
264
+ case kupManager.FCellTypes.EDITOR:
265
+ return index.h("div", { innerHTML: cell.value });
266
+ case kupManager.FCellTypes.ICON:
267
+ case kupManager.FCellTypes.IMAGE:
268
+ if (isAutoCentered(props)) {
269
+ classObj[kupManager.FCellClasses.C_CENTERED] = true;
270
+ }
271
+ if (subcomponentProps.badgeData) {
272
+ classObj[kupManager.FCellClasses.C_PADDED] = true;
273
+ }
274
+ return index.h(fImage.FImage, Object.assign({}, subcomponentProps));
275
+ case kupManager.FCellTypes.LINK:
276
+ return (index.h("a", { href: content, target: "_blank" }, cell.value));
277
+ case kupManager.FCellTypes.NUMBER:
278
+ if (content && content != '') {
279
+ const cellValueNumber = utils.stringToNumber(cell.value);
280
+ const cellValue = cellUtils.getCellValueForDisplay(column, cell);
281
+ if (cellValueNumber < 0) {
282
+ classObj[kupManager.FCellClasses.TEXT_DANGER] = true;
283
+ }
284
+ if (isAutoCentered(props)) {
285
+ classObj[kupManager.FCellClasses.C_RIGHT_ALIGNED] = true;
286
+ }
287
+ return index.h("div", { class: "f-cell__text" }, cellValue);
288
+ }
289
+ return index.h("div", { class: "f-cell__text" }, content);
290
+ case kupManager.FCellTypes.SWITCH:
291
+ if (isAutoCentered(props)) {
292
+ classObj[kupManager.FCellClasses.C_CENTERED] = true;
293
+ }
294
+ subcomponentProps['disabled'] = true;
295
+ return index.h(FSwitch, Object.assign({}, subcomponentProps));
296
+ default:
297
+ return index.h("div", { class: "f-cell__text" }, content);
298
+ }
299
+ }
300
+ function setKupCell(cellType, classObj, subcomponentProps, cell, row, column, props) {
301
+ switch (cellType) {
302
+ case kupManager.FCellTypes.BAR:
303
+ if (!subcomponentProps.data) {
304
+ return index.h("kup-image", Object.assign({}, subcomponentProps));
305
+ }
306
+ else {
307
+ const barStyle = {
308
+ height: subcomponentProps.sizeY,
309
+ width: '100%',
310
+ };
311
+ return (index.h("div", { style: barStyle },
312
+ index.h(fImage.FImage, Object.assign({}, subcomponentProps))));
313
+ }
314
+ case kupManager.FCellTypes.BUTTON:
315
+ if (isAutoCentered(props)) {
316
+ classObj[kupManager.FCellClasses.C_CENTERED] = true;
317
+ }
318
+ return (index.h("kup-button", Object.assign({}, subcomponentProps, { "onkup-button-click": (e) => cellEvent(e, props, cellType, kupManager.FCellEvents.CLICK) })));
319
+ case kupManager.FCellTypes.BUTTON_LIST:
320
+ if (isAutoCentered(props)) {
321
+ classObj[kupManager.FCellClasses.C_CENTERED] = true;
322
+ }
323
+ subcomponentProps['data-storage'] = {
324
+ cell: cell,
325
+ row: row,
326
+ column: column,
327
+ };
328
+ return index.h("kup-button-list", Object.assign({}, subcomponentProps));
329
+ case kupManager.FCellTypes.CHART:
330
+ if (isAutoCentered(props)) {
331
+ classObj[kupManager.FCellClasses.C_CENTERED] = true;
332
+ }
333
+ return index.h("kup-chart", Object.assign({}, subcomponentProps));
334
+ case kupManager.FCellTypes.CHIP:
335
+ return index.h(fChip.FChip, Object.assign({}, subcomponentProps));
336
+ case kupManager.FCellTypes.COLOR_PICKER:
337
+ return (index.h("kup-color-picker", Object.assign({}, subcomponentProps, { class: isFullWidth(props) ? 'kup-full-width' : '', disabled: true })));
338
+ case kupManager.FCellTypes.GAUGE:
339
+ return (index.h("kup-gauge", Object.assign({ value: utils.stringToNumber(cell.value), "width-component": "280px" }, subcomponentProps)));
340
+ case kupManager.FCellTypes.KNOB:
341
+ case kupManager.FCellTypes.PROGRESS_BAR:
342
+ return index.h("kup-progress-bar", Object.assign({}, subcomponentProps));
343
+ case kupManager.FCellTypes.RADIO:
344
+ if (isAutoCentered(props)) {
345
+ classObj[kupManager.FCellClasses.C_CENTERED] = true;
346
+ }
347
+ subcomponentProps['disabled'] = row.readOnly;
348
+ return index.h("kup-radio", Object.assign({}, subcomponentProps));
349
+ case kupManager.FCellTypes.RATING:
350
+ return index.h("kup-rating", Object.assign({}, subcomponentProps, { disabled: true }));
351
+ }
352
+ }
353
+ function cellEvent(e, props, cellType, cellEventName) {
354
+ const cell = props.cell;
355
+ const column = props.column;
356
+ const comp = props.component;
357
+ const row = props.row;
358
+ const isInputEvent = !!(e.target.tagName === 'INPUT');
359
+ let value = isInputEvent
360
+ ? e.target.value
361
+ : e.detail.value;
362
+ if (cellEventName === kupManager.FCellEvents.UPDATE) {
363
+ switch (cellType) {
364
+ case kupManager.FCellTypes.AUTOCOMPLETE:
365
+ case kupManager.FCellTypes.COMBOBOX:
366
+ case kupManager.FCellTypes.DATE:
367
+ case kupManager.FCellTypes.TIME:
368
+ if (cell.data) {
369
+ cell.data['initialValue'] = value;
370
+ }
371
+ break;
372
+ case kupManager.FCellTypes.CHECKBOX:
373
+ case kupManager.FCellTypes.SWITCH:
374
+ value = value === 'on' ? '0' : '1';
375
+ if (cell.data) {
376
+ cell.data.checked =
377
+ value === '0' ? false : true;
378
+ }
379
+ break;
380
+ }
381
+ if (cell.obj) {
382
+ cell.obj.k = value.toString();
383
+ }
384
+ cell.value = value.toString();
385
+ cell.displayedValue = null;
386
+ cell.displayedValue = cellUtils.getCellValueForDisplay(column, cell);
387
+ }
388
+ if (comp && comp.rootElement) {
389
+ const cellEvent = new CustomEvent(cellEventName, {
390
+ bubbles: true,
391
+ cancelable: true,
392
+ composed: true,
393
+ detail: {
394
+ comp: comp,
395
+ id: comp.rootElement.id,
396
+ cell: cell,
397
+ column: column,
398
+ event: e,
399
+ row: row,
400
+ type: cellType,
401
+ },
402
+ });
403
+ comp.rootElement.dispatchEvent(cellEvent);
404
+ try {
405
+ comp.refresh();
406
+ }
407
+ catch (error) { }
408
+ }
409
+ }
410
+ function isAutoCentered(props) {
411
+ return kupManager.autoCenterComps.includes(props.component.rootElement.tagName);
412
+ }
413
+ function isFullWidth(props) {
414
+ return kupManager.fullWidthFieldsComps.includes(props.component.rootElement.tagName);
415
+ }
416
+
417
+ exports.FCell = FCell;
418
+ exports.FSwitch = FSwitch;
@@ -0,0 +1,29 @@
1
+ 'use strict';
2
+
3
+ const index = require('./index-06b131ea.js');
4
+
5
+ /*-------------------------------------------------*/
6
+ /* C o m p o n e n t */
7
+ /*-------------------------------------------------*/
8
+ const FCheckbox = (props) => {
9
+ const indeterminateAttr = {
10
+ 'data-indeterminate': props.indeterminate ? true : false,
11
+ };
12
+ const classObj = {
13
+ checkbox: true,
14
+ 'checkbox--checked': props.checked && !props.indeterminate ? true : false,
15
+ 'checkbox--disabled': props.disabled ? true : false,
16
+ 'checkbox--indeterminate': props.indeterminate ? true : false,
17
+ };
18
+ return (index.h("div", Object.assign({ class: `f-checkbox ${props.danger ? 'kup-danger' : ''} ${props.info ? 'kup-info' : ''} ${props.secondary ? 'kup-secondary' : ''} ${props.success ? 'kup-success' : ''} ${props.warning ? 'kup-warning' : ''} ${props.wrapperClass ? props.wrapperClass : ''}` }, props.dataSet, { id: props.id, title: props.title }),
19
+ index.h("div", { class: `form-field ${props.leadingLabel ? 'form-field--align-end' : ''}` },
20
+ index.h("div", { class: classObj },
21
+ index.h("input", Object.assign({ type: "checkbox", class: "checkbox__native-control", checked: props.checked, disabled: props.disabled, onBlur: props.onBlur, onChange: props.onChange, onFocus: props.onFocus }, indeterminateAttr, { value: props.checked ? 'on' : 'off' })),
22
+ index.h("div", { class: "checkbox__background", onClick: props.onChange },
23
+ index.h("svg", { class: "checkbox__checkmark", viewBox: "0 0 24 24" },
24
+ index.h("path", { class: "checkbox__checkmark-path", fill: "none", d: "M1.73,12.91 8.1,19.28 22.79,4.59" })),
25
+ index.h("div", { class: "checkbox__mixedmark" }))),
26
+ props.label ? index.h("label", null, props.label) : undefined)));
27
+ };
28
+
29
+ exports.FCheckbox = FCheckbox;
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- const index = require('./index-eb556444.js');
4
- const fImage = require('./f-image-12bab3b5.js');
5
- const kupManager = require('./kup-manager-5c03da64.js');
3
+ const index = require('./index-06b131ea.js');
4
+ const fImage = require('./f-image-0618c795.js');
5
+ const kupManager = require('./kup-manager-2fee8cf3.js');
6
6
 
7
7
  /**
8
8
  * Types of the f-chip component.
@@ -76,7 +76,8 @@ function createChipList(props, isChoice, isFilter, isInput) {
76
76
  }
77
77
  }
78
78
  function createChip(chip) {
79
- let componentClass = `chip `;
79
+ const onlyIcon = !!(chip.icon && !chip.value);
80
+ let componentClass = `chip ${onlyIcon ? 'chip--only-icon' : ''}`;
80
81
  let iconEl = [];
81
82
  let iconClass = 'chip__icon chip__icon--leading';
82
83
  if (isFilter || isChoice) {
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- const index = require('./index-eb556444.js');
4
- const kupManager = require('./kup-manager-5c03da64.js');
3
+ const index = require('./index-06b131ea.js');
4
+ const kupManager = require('./kup-manager-2fee8cf3.js');
5
5
 
6
6
  /**
7
7
  * The type of a CSS step in CSS-drawing mode.