@limetech/lime-elements 36.1.0-next.9 → 36.1.1

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 (277) hide show
  1. package/dist/cjs/{checkbox.template-b6c6562c.js → checkbox.template-ac867c17.js} +1 -1
  2. package/dist/cjs/{index-2a28697b.js → index-287e25e0.js} +424 -246
  3. package/dist/cjs/lime-elements.cjs.js +3 -3
  4. package/dist/cjs/limel-badge.cjs.entry.js +2 -1
  5. package/dist/cjs/limel-banner.cjs.entry.js +3 -1
  6. package/dist/cjs/limel-button-group.cjs.entry.js +3 -8
  7. package/dist/cjs/{limel-button.cjs.entry.js → limel-button_2.cjs.entry.js} +117 -21
  8. package/dist/cjs/limel-checkbox.cjs.entry.js +10 -26
  9. package/dist/cjs/limel-chip-set.cjs.entry.js +21 -52
  10. package/dist/cjs/{limel-linear-progress.cjs.entry.js → limel-circular-progress_2.cjs.entry.js} +34 -7
  11. package/dist/cjs/limel-code-editor.cjs.entry.js +110 -97
  12. package/dist/cjs/limel-collapsible-section.cjs.entry.js +4 -5
  13. package/dist/cjs/limel-color-picker-palette.cjs.entry.js +5 -1
  14. package/dist/cjs/limel-color-picker.cjs.entry.js +8 -2
  15. package/dist/cjs/limel-config.cjs.entry.js +2 -1
  16. package/dist/cjs/limel-date-picker.cjs.entry.js +15 -33
  17. package/dist/cjs/limel-dialog.cjs.entry.js +4 -12
  18. package/dist/cjs/limel-dock-button.cjs.entry.js +5 -15
  19. package/dist/cjs/limel-dock.cjs.entry.js +8 -40
  20. package/dist/cjs/limel-file.cjs.entry.js +10 -24
  21. package/dist/cjs/limel-flatpickr-adapter.cjs.entry.js +149 -48
  22. package/dist/cjs/limel-flex-container.cjs.entry.js +1 -13
  23. package/dist/cjs/limel-form.cjs.entry.js +327 -326
  24. package/dist/cjs/limel-grid.cjs.entry.js +1 -1
  25. package/dist/cjs/limel-header.cjs.entry.js +5 -1
  26. package/dist/cjs/limel-icon-button.cjs.entry.js +3 -8
  27. package/dist/cjs/limel-icon.cjs.entry.js +4 -1
  28. package/dist/cjs/limel-info-tile.cjs.entry.js +96 -0
  29. package/dist/cjs/limel-input-field.cjs.entry.js +27 -60
  30. package/dist/cjs/limel-list_2.cjs.entry.js +10 -21
  31. package/dist/cjs/limel-menu-list.cjs.entry.js +7 -14
  32. package/dist/cjs/limel-picker.cjs.entry.js +14 -39
  33. package/dist/cjs/limel-popover_4.cjs.entry.js +13 -12
  34. package/dist/cjs/limel-portal.cjs.entry.js +63 -73
  35. package/dist/cjs/limel-progress-flow-item.cjs.entry.js +4 -13
  36. package/dist/cjs/limel-progress-flow.cjs.entry.js +4 -20
  37. package/dist/cjs/limel-select.cjs.entry.js +19 -31
  38. package/dist/cjs/limel-shortcut.cjs.entry.js +52 -0
  39. package/dist/cjs/limel-slider.cjs.entry.js +12 -33
  40. package/dist/cjs/limel-snackbar.cjs.entry.js +7 -5
  41. package/dist/cjs/limel-spinner.cjs.entry.js +1 -7
  42. package/dist/cjs/limel-split-button.cjs.entry.js +35 -0
  43. package/dist/cjs/limel-switch.cjs.entry.js +6 -19
  44. package/dist/cjs/limel-tab-bar.cjs.entry.js +2 -5
  45. package/dist/cjs/limel-tab-panel.cjs.entry.js +2 -5
  46. package/dist/cjs/limel-table.cjs.entry.js +16 -28
  47. package/dist/cjs/loader.cjs.js +3 -3
  48. package/dist/cjs/{translations-5a8d7f6c.js → translations-ca7279bc.js} +6 -0
  49. package/dist/collection/collection-manifest.json +5 -2
  50. package/dist/collection/components/badge/badge.js +35 -26
  51. package/dist/collection/components/banner/banner.js +88 -83
  52. package/dist/collection/components/button/button.css +4 -1
  53. package/dist/collection/components/button/button.js +148 -160
  54. package/dist/collection/components/button-group/button-group.js +81 -79
  55. package/dist/collection/components/checkbox/checkbox.js +172 -176
  56. package/dist/collection/components/checkbox/checkbox.template.js +15 -23
  57. package/dist/collection/components/chip-set/chip-set.js +486 -528
  58. package/dist/collection/components/circular-progress/circular-progress.css +27 -5
  59. package/dist/collection/components/circular-progress/circular-progress.js +129 -113
  60. package/dist/collection/components/code-editor/code-editor.js +178 -182
  61. package/dist/collection/components/collapsible-section/collapsible-section.js +120 -124
  62. package/dist/collection/components/color-picker/color-picker-palette.js +102 -92
  63. package/dist/collection/components/color-picker/color-picker.js +143 -131
  64. package/dist/collection/components/config/config.js +21 -17
  65. package/dist/collection/components/date-picker/date-picker.js +254 -261
  66. package/dist/collection/components/date-picker/flatpickr-adapter/flatpickr-adapter.css +591 -166
  67. package/dist/collection/components/date-picker/flatpickr-adapter/flatpickr-adapter.js +150 -143
  68. package/dist/collection/components/date-picker/pickers/QuarterPicker.js +1 -3
  69. package/dist/collection/components/dialog/dialog.css +7 -1
  70. package/dist/collection/components/dialog/dialog.js +134 -142
  71. package/dist/collection/components/dock/dock-button/dock-button.js +138 -141
  72. package/dist/collection/components/dock/dock.js +204 -233
  73. package/dist/collection/components/file/file.js +187 -191
  74. package/dist/collection/components/flex-container/flex-container.js +96 -102
  75. package/dist/collection/components/form/form.js +158 -150
  76. package/dist/collection/components/form/widgets/code-editor.js +2 -0
  77. package/dist/collection/components/grid/grid.js +11 -7
  78. package/dist/collection/components/header/header.js +89 -87
  79. package/dist/collection/components/icon/icon.js +79 -66
  80. package/dist/collection/components/icon-button/icon-button.js +85 -85
  81. package/dist/collection/components/info-tile/info-tile.css +310 -0
  82. package/dist/collection/components/info-tile/info-tile.js +295 -0
  83. package/dist/collection/components/info-tile/info-tile.types.js +1 -0
  84. package/dist/collection/components/input-field/input-field.css +3 -0
  85. package/dist/collection/components/input-field/input-field.js +482 -523
  86. package/dist/collection/components/linear-progress/linear-progress.js +57 -61
  87. package/dist/collection/components/list/list-renderer.js +3 -12
  88. package/dist/collection/components/list/list.css +11 -116
  89. package/dist/collection/components/list/list.js +167 -166
  90. package/dist/collection/components/list/radio-button/radio-button.template.js +2 -8
  91. package/dist/collection/components/menu/menu.js +183 -195
  92. package/dist/collection/components/menu-list/menu-list-renderer.js +2 -9
  93. package/dist/collection/components/menu-list/menu-list.css +11 -116
  94. package/dist/collection/components/menu-list/menu-list.js +149 -146
  95. package/dist/collection/components/menu-surface/menu-surface.js +69 -64
  96. package/dist/collection/components/picker/picker.js +412 -427
  97. package/dist/collection/components/popover/popover.js +79 -74
  98. package/dist/collection/components/popover-surface/popover-surface.js +34 -25
  99. package/dist/collection/components/portal/portal.js +145 -158
  100. package/dist/collection/components/progress-flow/progress-flow-item/progress-flow-item.js +90 -94
  101. package/dist/collection/components/progress-flow/progress-flow.js +93 -101
  102. package/dist/collection/components/select/select.css +8 -7
  103. package/dist/collection/components/select/select.js +206 -211
  104. package/dist/collection/components/select/select.template.js +17 -26
  105. package/dist/collection/components/shortcut/shortcut.css +91 -0
  106. package/dist/collection/components/shortcut/shortcut.js +161 -0
  107. package/dist/collection/components/slider/slider.js +233 -264
  108. package/dist/collection/components/snackbar/snackbar.js +175 -169
  109. package/dist/collection/components/spinner/spinner.js +56 -85
  110. package/dist/collection/components/split-button/split-button.css +84 -0
  111. package/dist/collection/components/split-button/split-button.js +176 -0
  112. package/dist/collection/components/switch/switch.js +117 -129
  113. package/dist/collection/components/tab-bar/tab-bar.js +87 -92
  114. package/dist/collection/components/tab-panel/tab-panel.js +64 -61
  115. package/dist/collection/components/table/table.js +447 -457
  116. package/dist/collection/components/tooltip/tooltip-content.js +70 -61
  117. package/dist/collection/components/tooltip/tooltip.js +96 -91
  118. package/dist/collection/global/shared-types/link.types.js +1 -0
  119. package/dist/collection/style/internal/z-index.scss +0 -5
  120. package/dist/collection/translations/da.js +1 -0
  121. package/dist/collection/translations/en.js +1 -0
  122. package/dist/collection/translations/fi.js +1 -0
  123. package/dist/collection/translations/nl.js +1 -0
  124. package/dist/collection/translations/no.js +1 -0
  125. package/dist/collection/translations/sv.js +1 -0
  126. package/dist/esm/{checkbox.template-2f1bbc98.js → checkbox.template-fc7fcd06.js} +1 -1
  127. package/dist/esm/{index-11cd0b60.js → index-cdfd351d.js} +424 -246
  128. package/dist/esm/lime-elements.js +3 -3
  129. package/dist/esm/limel-badge.entry.js +2 -1
  130. package/dist/esm/limel-banner.entry.js +3 -1
  131. package/dist/esm/limel-button-group.entry.js +3 -8
  132. package/dist/esm/{limel-button.entry.js → limel-button_2.entry.js} +117 -22
  133. package/dist/esm/limel-checkbox.entry.js +10 -26
  134. package/dist/esm/limel-chip-set.entry.js +21 -52
  135. package/dist/esm/{limel-linear-progress.entry.js → limel-circular-progress_2.entry.js} +34 -8
  136. package/dist/esm/limel-code-editor.entry.js +110 -97
  137. package/dist/esm/limel-collapsible-section.entry.js +4 -5
  138. package/dist/esm/limel-color-picker-palette.entry.js +5 -1
  139. package/dist/esm/limel-color-picker.entry.js +8 -2
  140. package/dist/esm/limel-config.entry.js +2 -1
  141. package/dist/esm/limel-date-picker.entry.js +15 -33
  142. package/dist/esm/limel-dialog.entry.js +4 -12
  143. package/dist/esm/limel-dock-button.entry.js +5 -15
  144. package/dist/esm/limel-dock.entry.js +8 -40
  145. package/dist/esm/limel-file.entry.js +10 -24
  146. package/dist/esm/limel-flatpickr-adapter.entry.js +149 -48
  147. package/dist/esm/limel-flex-container.entry.js +1 -13
  148. package/dist/esm/limel-form.entry.js +327 -326
  149. package/dist/esm/limel-grid.entry.js +1 -1
  150. package/dist/esm/limel-header.entry.js +5 -1
  151. package/dist/esm/limel-icon-button.entry.js +3 -8
  152. package/dist/esm/limel-icon.entry.js +4 -1
  153. package/dist/esm/limel-info-tile.entry.js +92 -0
  154. package/dist/esm/limel-input-field.entry.js +27 -60
  155. package/dist/esm/limel-list_2.entry.js +10 -21
  156. package/dist/esm/limel-menu-list.entry.js +7 -14
  157. package/dist/esm/limel-picker.entry.js +14 -39
  158. package/dist/esm/limel-popover_4.entry.js +13 -12
  159. package/dist/esm/limel-portal.entry.js +63 -73
  160. package/dist/esm/limel-progress-flow-item.entry.js +4 -13
  161. package/dist/esm/limel-progress-flow.entry.js +4 -20
  162. package/dist/esm/limel-select.entry.js +19 -31
  163. package/dist/esm/limel-shortcut.entry.js +48 -0
  164. package/dist/esm/limel-slider.entry.js +12 -33
  165. package/dist/esm/limel-snackbar.entry.js +7 -5
  166. package/dist/esm/limel-spinner.entry.js +1 -7
  167. package/dist/esm/limel-split-button.entry.js +31 -0
  168. package/dist/esm/limel-switch.entry.js +6 -19
  169. package/dist/esm/limel-tab-bar.entry.js +2 -5
  170. package/dist/esm/limel-tab-panel.entry.js +2 -5
  171. package/dist/esm/limel-table.entry.js +16 -28
  172. package/dist/esm/loader.js +3 -3
  173. package/dist/esm/polyfills/css-shim.js +1 -1
  174. package/dist/esm/{translations-682e905e.js → translations-0d0ee941.js} +6 -0
  175. package/dist/lime-elements/lime-elements.esm.js +1 -1
  176. package/dist/lime-elements/p-059e0a64.entry.js +1 -0
  177. package/dist/lime-elements/{p-440454ed.entry.js → p-06f2f6b4.entry.js} +1 -1
  178. package/dist/lime-elements/p-12a7453b.entry.js +73 -0
  179. package/dist/lime-elements/p-1386d86d.entry.js +82 -0
  180. package/dist/lime-elements/p-15c2eb16.entry.js +1 -0
  181. package/dist/lime-elements/{p-c80acfb2.entry.js → p-15ca0d70.entry.js} +4 -4
  182. package/dist/lime-elements/{p-ed65468d.entry.js → p-16eb9071.entry.js} +1 -1
  183. package/dist/lime-elements/{p-1ede893b.js → p-1af8258b.js} +1 -1
  184. package/dist/lime-elements/{p-71efe2ca.entry.js → p-21058db5.entry.js} +4 -3
  185. package/dist/lime-elements/p-246862ec.js +1 -0
  186. package/dist/lime-elements/p-36a3b897.entry.js +1 -0
  187. package/dist/lime-elements/p-37fe095f.entry.js +1 -0
  188. package/dist/lime-elements/p-4eda8b67.entry.js +82 -0
  189. package/dist/lime-elements/{p-9af0704c.entry.js → p-4fb4e89b.entry.js} +1 -1
  190. package/dist/lime-elements/p-4fc38050.entry.js +1 -0
  191. package/dist/lime-elements/{p-a5af84a7.entry.js → p-5338663b.entry.js} +1 -1
  192. package/dist/lime-elements/p-5ce60a32.entry.js +126 -0
  193. package/dist/lime-elements/p-5f13035a.entry.js +1 -0
  194. package/dist/lime-elements/p-5f29f099.entry.js +16 -0
  195. package/dist/lime-elements/p-600464a9.entry.js +1 -0
  196. package/dist/lime-elements/p-6534e16a.entry.js +1 -0
  197. package/dist/lime-elements/p-6a4a5ddd.entry.js +1 -0
  198. package/dist/lime-elements/p-6c38b505.entry.js +1 -0
  199. package/dist/lime-elements/p-75d01713.entry.js +1 -0
  200. package/dist/lime-elements/p-768b7cbb.entry.js +1 -0
  201. package/dist/lime-elements/{p-6e7809a6.entry.js → p-82cd7bb6.entry.js} +1 -1
  202. package/dist/lime-elements/p-84a137a7.entry.js +1 -0
  203. package/dist/lime-elements/{p-aa66620a.entry.js → p-8ab597a8.entry.js} +2 -2
  204. package/dist/lime-elements/{p-8827628d.entry.js → p-8fb83e83.entry.js} +2 -2
  205. package/dist/lime-elements/p-90961075.entry.js +1 -0
  206. package/dist/lime-elements/p-9984b31c.entry.js +1 -0
  207. package/dist/lime-elements/p-9bd76629.entry.js +59 -0
  208. package/dist/lime-elements/p-cad7cda1.entry.js +16 -0
  209. package/dist/lime-elements/{p-104c89e8.entry.js → p-cfaa685f.entry.js} +1 -1
  210. package/dist/lime-elements/{p-94899019.entry.js → p-d1187867.entry.js} +1 -1
  211. package/dist/lime-elements/p-d4e788e1.js +2 -0
  212. package/dist/lime-elements/p-d512656b.entry.js +1 -0
  213. package/dist/lime-elements/p-d8e5a9ee.entry.js +1 -0
  214. package/dist/lime-elements/p-de161bb5.entry.js +1 -0
  215. package/dist/lime-elements/p-e4bca82b.entry.js +1 -0
  216. package/dist/lime-elements/p-e6f84d68.entry.js +1 -0
  217. package/dist/lime-elements/{p-c15da26d.entry.js → p-e7bb664f.entry.js} +1 -1
  218. package/dist/lime-elements/p-e88f7922.entry.js +1 -0
  219. package/dist/lime-elements/p-ec4c075d.entry.js +1 -0
  220. package/dist/lime-elements/p-f1ed857b.entry.js +37 -0
  221. package/dist/lime-elements/p-f33cfcb8.entry.js +11 -0
  222. package/dist/lime-elements/style/internal/z-index.scss +0 -5
  223. package/dist/loader/package.json +1 -0
  224. package/dist/types/components/circular-progress/circular-progress.d.ts +5 -0
  225. package/dist/types/components/dock/dock.d.ts +0 -1
  226. package/dist/types/components/info-tile/info-tile.d.ts +87 -0
  227. package/dist/types/components/info-tile/info-tile.types.d.ts +23 -0
  228. package/dist/types/components/picker/picker.d.ts +2 -2
  229. package/dist/types/components/shortcut/shortcut.d.ts +42 -0
  230. package/dist/types/components/split-button/split-button.d.ts +46 -0
  231. package/dist/types/components.d.ts +403 -67
  232. package/dist/types/global/shared-types/link.types.d.ts +25 -0
  233. package/dist/types/interface.d.ts +2 -0
  234. package/dist/types/stencil-public-runtime.d.ts +20 -4
  235. package/dist/types/translations/da.d.ts +1 -0
  236. package/dist/types/translations/en.d.ts +1 -0
  237. package/dist/types/translations/fi.d.ts +1 -0
  238. package/dist/types/translations/nl.d.ts +1 -0
  239. package/dist/types/translations/no.d.ts +1 -0
  240. package/dist/types/translations/sv.d.ts +1 -0
  241. package/package.json +21 -20
  242. package/dist/cjs/limel-circular-progress.cjs.entry.js +0 -44
  243. package/dist/cjs/limel-menu.cjs.entry.js +0 -137
  244. package/dist/esm/limel-circular-progress.entry.js +0 -40
  245. package/dist/esm/limel-menu.entry.js +0 -133
  246. package/dist/lime-elements/p-009de50e.entry.js +0 -1
  247. package/dist/lime-elements/p-19f72dab.entry.js +0 -1
  248. package/dist/lime-elements/p-2639edf9.entry.js +0 -73
  249. package/dist/lime-elements/p-2fc4f4ff.entry.js +0 -1
  250. package/dist/lime-elements/p-3b0c9885.entry.js +0 -37
  251. package/dist/lime-elements/p-3bf54a4c.js +0 -1
  252. package/dist/lime-elements/p-3cf4aae0.entry.js +0 -1
  253. package/dist/lime-elements/p-3f388717.entry.js +0 -11
  254. package/dist/lime-elements/p-41e902ac.entry.js +0 -126
  255. package/dist/lime-elements/p-4dc07252.entry.js +0 -82
  256. package/dist/lime-elements/p-53e01330.entry.js +0 -1
  257. package/dist/lime-elements/p-5ef52589.entry.js +0 -1
  258. package/dist/lime-elements/p-629862f4.entry.js +0 -1
  259. package/dist/lime-elements/p-63e25a0a.entry.js +0 -1
  260. package/dist/lime-elements/p-6b1bc80f.entry.js +0 -1
  261. package/dist/lime-elements/p-93cd2268.entry.js +0 -1
  262. package/dist/lime-elements/p-95f275ab.entry.js +0 -1
  263. package/dist/lime-elements/p-9917f042.entry.js +0 -16
  264. package/dist/lime-elements/p-995bbd2a.entry.js +0 -1
  265. package/dist/lime-elements/p-a465084b.entry.js +0 -82
  266. package/dist/lime-elements/p-b0046fcd.entry.js +0 -1
  267. package/dist/lime-elements/p-b0e54dc2.entry.js +0 -1
  268. package/dist/lime-elements/p-b4de3380.entry.js +0 -1
  269. package/dist/lime-elements/p-c59cbd68.entry.js +0 -1
  270. package/dist/lime-elements/p-d74fa89e.entry.js +0 -1
  271. package/dist/lime-elements/p-e98d76e8.entry.js +0 -59
  272. package/dist/lime-elements/p-e9a95b8f.js +0 -1
  273. package/dist/lime-elements/p-eec907ac.entry.js +0 -1
  274. package/dist/lime-elements/p-f0c9dadd.entry.js +0 -1
  275. package/dist/lime-elements/p-f0e872b6.entry.js +0 -16
  276. package/dist/lime-elements/p-f41567a1.entry.js +0 -1
  277. package/dist/lime-elements/p-f5df4d4f.entry.js +0 -1
@@ -1,6 +1,6 @@
1
1
  import { MDCChipSet, } from '@material/chips/deprecated';
2
2
  import { MDCTextField } from '@material/textfield';
3
- import { Component, Element, Event, h, Method, Prop, State, Watch, } from '@stencil/core';
3
+ import { h, } from '@stencil/core';
4
4
  import { handleKeyboardEvent } from './chip-set-input-helpers';
5
5
  import translate from '../../global/translations';
6
6
  import { getHref, getTarget } from '../../util/link-helper';
@@ -19,56 +19,6 @@ const INPUT_FIELD_TABINDEX = 1;
19
19
  */
20
20
  export class ChipSet {
21
21
  constructor() {
22
- /**
23
- * List of chips for the set
24
- */
25
- this.value = [];
26
- /**
27
- * True if the chip set should be disabled
28
- */
29
- this.disabled = false;
30
- /**
31
- * For chip-sets of type `input`, set to `true` to disable adding and
32
- * removing chips, but allow interaction with existing chips in the set.
33
- * For any other types, setting either `readonly` or `disabled` disables
34
- * the chip-set.
35
- */
36
- this.readonly = false;
37
- /**
38
- * For chip-sets of type `input`. Value to use for the `type` attribute on the
39
- * input field inside the chip-set.
40
- */
41
- this.inputType = 'text';
42
- /**
43
- * True if the control requires a value
44
- */
45
- this.required = false;
46
- /**
47
- * Whether the input field should be emptied when the chip-set loses focus.
48
- */
49
- this.emptyInputOnBlur = true;
50
- /**
51
- * Whether the "Clear all" buttons should be shown
52
- */
53
- this.clearAllButton = true;
54
- /**
55
- * For chip-sets of type `input`. When the value is null, no leading icon is used.
56
- * Leading icon to show to the far left in the text field
57
- */
58
- this.leadingIcon = null;
59
- /**
60
- * For chip-set of type `input`. Sets delimiters between chips.
61
- */
62
- this.delimiter = null;
63
- /**
64
- * Defines the language for translations.
65
- * Will translate the translatable strings on the components. For example, the clear all chips label.
66
- */
67
- this.language = 'en';
68
- this.editMode = false;
69
- this.textValue = '';
70
- this.blurred = false;
71
- this.inputChipIndexSelected = null;
72
22
  this.handleKeyDown = handleKeyboardEvent;
73
23
  this.dropZoneTip = () => {
74
24
  return translate.get('file.drag-and-drop-tips', this.language);
@@ -98,6 +48,25 @@ export class ChipSet {
98
48
  this.removeChipLabel = () => {
99
49
  return translate.get('chip-set.remove-chip', this.language);
100
50
  };
51
+ this.value = [];
52
+ this.type = undefined;
53
+ this.label = undefined;
54
+ this.helperText = undefined;
55
+ this.disabled = false;
56
+ this.readonly = false;
57
+ this.inputType = 'text';
58
+ this.maxItems = undefined;
59
+ this.required = false;
60
+ this.searchLabel = undefined;
61
+ this.emptyInputOnBlur = true;
62
+ this.clearAllButton = true;
63
+ this.leadingIcon = null;
64
+ this.delimiter = null;
65
+ this.language = 'en';
66
+ this.editMode = false;
67
+ this.textValue = '';
68
+ this.blurred = false;
69
+ this.inputChipIndexSelected = null;
101
70
  this.renderChip = this.renderChip.bind(this);
102
71
  this.renderInputChip = this.renderInputChip.bind(this);
103
72
  this.isFull = this.isFull.bind(this);
@@ -185,10 +154,7 @@ export class ChipSet {
185
154
  if (chipSetLabel) {
186
155
  classes['chip-set--with-label'] = true;
187
156
  }
188
- return (h("div", { class: classes, role: "grid" },
189
- chipSetLabel,
190
- this.value.map(this.renderChip),
191
- this.renderHelperLine()));
157
+ return (h("div", { class: classes, role: "grid" }, chipSetLabel, this.value.map(this.renderChip), this.renderHelperLine()));
192
158
  }
193
159
  handleChangeChips() {
194
160
  this.syncEmptyInput();
@@ -226,26 +192,18 @@ export class ChipSet {
226
192
  'has-chips mdc-text-field--label-floating': this.value.length !== 0,
227
193
  'has-leading-icon': this.leadingIcon !== null,
228
194
  'has-clear-all-button': this.clearAllButton,
229
- }, onClick: this.handleTextFieldFocus },
230
- this.value.map(this.renderInputChip),
231
- h("input", { tabIndex: INPUT_FIELD_TABINDEX, type: this.inputType, id: "input-element", disabled: this.readonly || this.disabled, class: {
232
- 'mdc-text-field__input': true,
233
- hidden: this.inputHidden(),
234
- }, value: this.textValue, onBlur: this.handleInputBlur, onFocus: this.handleTextFieldFocus, onKeyDown: this.handleKeyDown, onInput: this.handleTextInput,
235
- // Some browsers emit a change event on input elements, we need to stop
236
- // that event from propagating since we are emitting our own change event
237
- onChange: this.inputFieldOnChange, placeholder: this.isFull() ? '' : this.searchLabel, readonly: this.isFull() }),
238
- h("div", { class: {
239
- 'mdc-notched-outline': true,
240
- 'mdc-notched-outline--upgraded': true,
241
- 'mdc-text-field--required': this.required,
242
- 'lime-notched-outline--notched': !!(this.value.length || this.editMode),
243
- }, "dropzone-tip": this.dropZoneTip() },
244
- h("div", { class: "mdc-notched-outline__leading" }),
245
- this.renderLabel(),
246
- h("div", { class: "mdc-notched-outline__trailing" })),
247
- this.renderLeadingIcon(),
248
- this.renderClearAllChipsButton()),
195
+ }, onClick: this.handleTextFieldFocus }, this.value.map(this.renderInputChip), h("input", { tabIndex: INPUT_FIELD_TABINDEX, type: this.inputType, id: "input-element", disabled: this.readonly || this.disabled, class: {
196
+ 'mdc-text-field__input': true,
197
+ hidden: this.inputHidden(),
198
+ }, value: this.textValue, onBlur: this.handleInputBlur, onFocus: this.handleTextFieldFocus, onKeyDown: this.handleKeyDown, onInput: this.handleTextInput,
199
+ // Some browsers emit a change event on input elements, we need to stop
200
+ // that event from propagating since we are emitting our own change event
201
+ onChange: this.inputFieldOnChange, placeholder: this.isFull() ? '' : this.searchLabel, readonly: this.isFull() }), h("div", { class: {
202
+ 'mdc-notched-outline': true,
203
+ 'mdc-notched-outline--upgraded': true,
204
+ 'mdc-text-field--required': this.required,
205
+ 'lime-notched-outline--notched': !!(this.value.length || this.editMode),
206
+ }, "dropzone-tip": this.dropZoneTip() }, h("div", { class: "mdc-notched-outline__leading" }), this.renderLabel(), h("div", { class: "mdc-notched-outline__trailing" })), this.renderLeadingIcon(), this.renderClearAllChipsButton()),
249
207
  this.renderHelperLine(),
250
208
  ];
251
209
  }
@@ -260,8 +218,7 @@ export class ChipSet {
260
218
  if (!this.label) {
261
219
  return;
262
220
  }
263
- return (h("div", { class: "mdc-notched-outline__notch" },
264
- h("label", { class: labelClassList, htmlFor: "input-element" }, this.label)));
221
+ return (h("div", { class: "mdc-notched-outline__notch" }, h("label", { class: labelClassList, htmlFor: "input-element" }, this.label)));
265
222
  }
266
223
  isFull() {
267
224
  return !!this.maxItems && this.value.length >= this.maxItems;
@@ -358,9 +315,7 @@ export class ChipSet {
358
315
  return this.renderDefaultChip(chip);
359
316
  }
360
317
  renderDefaultChip(chip) {
361
- return (h("div", { class: `mdc-chip ${chip.selected ? SELECTED_CHIP_CLASS : ''}`, role: "row", id: `${chip.id}` },
362
- chip.icon ? this.renderChipIcon(chip) : null,
363
- chip.text ? this.renderChipLabel(chip) : null));
318
+ return (h("div", { class: `mdc-chip ${chip.selected ? SELECTED_CHIP_CLASS : ''}`, role: "row", id: `${chip.id}` }, chip.icon ? this.renderChipIcon(chip) : null, chip.text ? this.renderChipLabel(chip) : null));
364
319
  }
365
320
  renderChipLabel(chip) {
366
321
  const attributes = {};
@@ -368,17 +323,10 @@ export class ChipSet {
368
323
  attributes.href = getHref(chip.href);
369
324
  attributes.target = getTarget(chip.href);
370
325
  }
371
- return (h("span", { role: "gridcell" },
372
- h("a", Object.assign({ role: "button", tabindex: this.disabled ? '-1' : '0', class: "mdc-chip__text" }, attributes), chip.text)));
326
+ return (h("span", { role: "gridcell" }, h("a", Object.assign({ role: "button", tabindex: this.disabled ? '-1' : '0', class: "mdc-chip__text" }, attributes), chip.text)));
373
327
  }
374
328
  renderFilterChip(chip) {
375
- return (h("div", { class: `mdc-chip ${chip.selected ? SELECTED_CHIP_CLASS : ''}`, role: "row", id: `${chip.id}` },
376
- h("span", { class: "mdc-chip__checkmark" },
377
- h("svg", { class: "mdc-chip__checkmark-svg", viewBox: "-2 -3 30 30" },
378
- h("path", { class: "mdc-chip__checkmark-path", fill: "none", stroke: "black", d: "M1.73,12.91 8.1,19.28 22.79,4.59" }))),
379
- h("span", { role: "gridcell" },
380
- h("span", { role: "checkbox", tabindex: this.disabled ? '-1' : '0', "aria-checked": "false", class: "mdc-chip__text" }, chip.text)),
381
- this.renderBadge(chip)));
329
+ return (h("div", { class: `mdc-chip ${chip.selected ? SELECTED_CHIP_CLASS : ''}`, role: "row", id: `${chip.id}` }, h("span", { class: "mdc-chip__checkmark" }, h("svg", { class: "mdc-chip__checkmark-svg", viewBox: "-2 -3 30 30" }, h("path", { class: "mdc-chip__checkmark-path", fill: "none", stroke: "black", d: "M1.73,12.91 8.1,19.28 22.79,4.59" }))), h("span", { role: "gridcell" }, h("span", { role: "checkbox", tabindex: this.disabled ? '-1' : '0', "aria-checked": "false", class: "mdc-chip__text" }, chip.text)), this.renderBadge(chip)));
382
330
  }
383
331
  renderInputChip(chip, index) {
384
332
  return [
@@ -386,10 +334,7 @@ export class ChipSet {
386
334
  'mdc-chip': true,
387
335
  'mdc-chip--selected': this.inputChipIndexSelected === index,
388
336
  disabled: this.disabled,
389
- }, role: "row", id: `${chip.id}`, onClick: this.catchInputChipClicks },
390
- chip.icon ? this.renderChipIcon(chip) : null,
391
- this.renderChipLabel(chip),
392
- this.renderChipRemoveButton(chip)),
337
+ }, role: "row", id: `${chip.id}`, onClick: this.catchInputChipClicks }, chip.icon ? this.renderChipIcon(chip) : null, this.renderChipLabel(chip), this.renderChipRemoveButton(chip)),
393
338
  this.renderDelimiter(),
394
339
  ];
395
340
  }
@@ -410,8 +355,7 @@ export class ChipSet {
410
355
  if (!this.leadingIcon) {
411
356
  return;
412
357
  }
413
- return (h("i", { class: "mdc-text-field__icon search-icon" },
414
- h("limel-icon", { name: this.leadingIcon })));
358
+ return (h("i", { class: "mdc-text-field__icon search-icon" }, h("limel-icon", { name: this.leadingIcon })));
415
359
  }
416
360
  renderChipRemoveButton(chip) {
417
361
  if (!chip.removable || this.readonly || this.disabled) {
@@ -451,450 +395,464 @@ export class ChipSet {
451
395
  }
452
396
  static get is() { return "limel-chip-set"; }
453
397
  static get encapsulation() { return "shadow"; }
454
- static get originalStyleUrls() { return {
455
- "$": ["chip-set.scss"]
456
- }; }
457
- static get styleUrls() { return {
458
- "$": ["chip-set.css"]
459
- }; }
460
- static get properties() { return {
461
- "value": {
462
- "type": "unknown",
463
- "mutable": false,
464
- "complexType": {
465
- "original": "Chip[]",
466
- "resolved": "Chip<any>[]",
467
- "references": {
468
- "Chip": {
469
- "location": "import",
470
- "path": "@limetech/lime-elements"
471
- }
472
- }
473
- },
474
- "required": false,
475
- "optional": false,
476
- "docs": {
477
- "tags": [],
478
- "text": "List of chips for the set"
479
- },
480
- "defaultValue": "[]"
481
- },
482
- "type": {
483
- "type": "string",
484
- "mutable": false,
485
- "complexType": {
486
- "original": "'choice' | 'filter' | 'input'",
487
- "resolved": "\"choice\" | \"filter\" | \"input\"",
488
- "references": {}
489
- },
490
- "required": false,
491
- "optional": true,
492
- "docs": {
493
- "tags": [],
494
- "text": "Type of chip set\n\n- `choice` renders a set of selectable chips where only one is selectable. The `removable` property is ignored\n- `filter` renders a set of selectable chips where all are selectable. The `icon` property is ignored\n- `input` renders a set of chips that can be used in conjunction with an input field\n\nIf no type is set, a basic set of chips without additional functionality will be rendered"
495
- },
496
- "attribute": "type",
497
- "reflect": true
498
- },
499
- "label": {
500
- "type": "string",
501
- "mutable": false,
502
- "complexType": {
503
- "original": "string",
504
- "resolved": "string",
505
- "references": {}
506
- },
507
- "required": false,
508
- "optional": false,
509
- "docs": {
510
- "tags": [],
511
- "text": "Label for the chip-set"
512
- },
513
- "attribute": "label",
514
- "reflect": true
515
- },
516
- "helperText": {
517
- "type": "string",
518
- "mutable": false,
519
- "complexType": {
520
- "original": "string",
521
- "resolved": "string",
522
- "references": {}
523
- },
524
- "required": false,
525
- "optional": false,
526
- "docs": {
527
- "tags": [],
528
- "text": "Optional helper text to display below the chipset.\nWhen type is `input`, the helper text is displayed below the\ninput field when it has focus.\nWhen type is not `input`, the helper text is always displayed\nif the device is touch screen; otherwise it is shown when chip-set\nis hovered or focused using keyboard navigation."
529
- },
530
- "attribute": "helper-text",
531
- "reflect": true
532
- },
533
- "disabled": {
534
- "type": "boolean",
535
- "mutable": false,
536
- "complexType": {
537
- "original": "boolean",
538
- "resolved": "boolean",
539
- "references": {}
540
- },
541
- "required": false,
542
- "optional": false,
543
- "docs": {
544
- "tags": [],
545
- "text": "True if the chip set should be disabled"
546
- },
547
- "attribute": "disabled",
548
- "reflect": true,
549
- "defaultValue": "false"
550
- },
551
- "readonly": {
552
- "type": "boolean",
553
- "mutable": false,
554
- "complexType": {
555
- "original": "boolean",
556
- "resolved": "boolean",
557
- "references": {}
558
- },
559
- "required": false,
560
- "optional": false,
561
- "docs": {
562
- "tags": [],
563
- "text": "For chip-sets of type `input`, set to `true` to disable adding and\nremoving chips, but allow interaction with existing chips in the set.\nFor any other types, setting either `readonly` or `disabled` disables\nthe chip-set."
564
- },
565
- "attribute": "readonly",
566
- "reflect": true,
567
- "defaultValue": "false"
568
- },
569
- "inputType": {
570
- "type": "string",
571
- "mutable": false,
572
- "complexType": {
573
- "original": "'search' | 'text'",
574
- "resolved": "\"search\" | \"text\"",
575
- "references": {}
576
- },
577
- "required": false,
578
- "optional": false,
579
- "docs": {
580
- "tags": [],
581
- "text": "For chip-sets of type `input`. Value to use for the `type` attribute on the\ninput field inside the chip-set."
582
- },
583
- "attribute": "input-type",
584
- "reflect": true,
585
- "defaultValue": "'text'"
586
- },
587
- "maxItems": {
588
- "type": "number",
589
- "mutable": false,
590
- "complexType": {
591
- "original": "number",
592
- "resolved": "number",
593
- "references": {}
594
- },
595
- "required": false,
596
- "optional": false,
597
- "docs": {
598
- "tags": [],
599
- "text": "For chip-sets of type `input`. Limits the maximum number of chips.\nWhen the value is `0` or not set, no limit is applied."
600
- },
601
- "attribute": "max-items",
602
- "reflect": true
603
- },
604
- "required": {
605
- "type": "boolean",
606
- "mutable": false,
607
- "complexType": {
608
- "original": "boolean",
609
- "resolved": "boolean",
610
- "references": {}
611
- },
612
- "required": false,
613
- "optional": false,
614
- "docs": {
615
- "tags": [],
616
- "text": "True if the control requires a value"
617
- },
618
- "attribute": "required",
619
- "reflect": true,
620
- "defaultValue": "false"
621
- },
622
- "searchLabel": {
623
- "type": "string",
624
- "mutable": false,
625
- "complexType": {
626
- "original": "string",
627
- "resolved": "string",
628
- "references": {}
629
- },
630
- "required": false,
631
- "optional": false,
632
- "docs": {
633
- "tags": [],
634
- "text": "Search label to display when type is `input` and component is in search mode"
635
- },
636
- "attribute": "search-label",
637
- "reflect": true
638
- },
639
- "emptyInputOnBlur": {
640
- "type": "boolean",
641
- "mutable": false,
642
- "complexType": {
643
- "original": "boolean",
644
- "resolved": "boolean",
645
- "references": {}
646
- },
647
- "required": false,
648
- "optional": false,
649
- "docs": {
650
- "tags": [],
651
- "text": "Whether the input field should be emptied when the chip-set loses focus."
652
- },
653
- "attribute": "empty-input-on-blur",
654
- "reflect": true,
655
- "defaultValue": "true"
656
- },
657
- "clearAllButton": {
658
- "type": "boolean",
659
- "mutable": false,
660
- "complexType": {
661
- "original": "boolean",
662
- "resolved": "boolean",
663
- "references": {}
664
- },
665
- "required": false,
666
- "optional": false,
667
- "docs": {
668
- "tags": [],
669
- "text": "Whether the \"Clear all\" buttons should be shown"
670
- },
671
- "attribute": "clear-all-button",
672
- "reflect": false,
673
- "defaultValue": "true"
674
- },
675
- "leadingIcon": {
676
- "type": "string",
677
- "mutable": false,
678
- "complexType": {
679
- "original": "string",
680
- "resolved": "string",
681
- "references": {}
682
- },
683
- "required": false,
684
- "optional": false,
685
- "docs": {
686
- "tags": [],
687
- "text": "For chip-sets of type `input`. When the value is null, no leading icon is used.\nLeading icon to show to the far left in the text field"
688
- },
689
- "attribute": "leading-icon",
690
- "reflect": true,
691
- "defaultValue": "null"
692
- },
693
- "delimiter": {
694
- "type": "string",
695
- "mutable": false,
696
- "complexType": {
697
- "original": "string",
698
- "resolved": "string",
699
- "references": {}
700
- },
701
- "required": false,
702
- "optional": false,
703
- "docs": {
704
- "tags": [],
705
- "text": "For chip-set of type `input`. Sets delimiters between chips."
706
- },
707
- "attribute": "delimiter",
708
- "reflect": true,
709
- "defaultValue": "null"
710
- },
711
- "language": {
712
- "type": "string",
713
- "mutable": false,
714
- "complexType": {
715
- "original": "Languages",
716
- "resolved": "\"da\" | \"en\" | \"fi\" | \"nb\" | \"nl\" | \"no\" | \"sv\"",
717
- "references": {
718
- "Languages": {
719
- "location": "import",
720
- "path": "@limetech/lime-elements"
398
+ static get originalStyleUrls() {
399
+ return {
400
+ "$": ["chip-set.scss"]
401
+ };
402
+ }
403
+ static get styleUrls() {
404
+ return {
405
+ "$": ["chip-set.css"]
406
+ };
407
+ }
408
+ static get properties() {
409
+ return {
410
+ "value": {
411
+ "type": "unknown",
412
+ "mutable": false,
413
+ "complexType": {
414
+ "original": "Chip[]",
415
+ "resolved": "Chip<any>[]",
416
+ "references": {
417
+ "Chip": {
418
+ "location": "import",
419
+ "path": "@limetech/lime-elements"
420
+ }
721
421
  }
722
- }
723
- },
724
- "required": false,
725
- "optional": false,
726
- "docs": {
727
- "tags": [],
728
- "text": "Defines the language for translations.\nWill translate the translatable strings on the components. For example, the clear all chips label."
729
- },
730
- "attribute": "language",
731
- "reflect": false,
732
- "defaultValue": "'en'"
733
- }
734
- }; }
735
- static get states() { return {
736
- "editMode": {},
737
- "textValue": {},
738
- "blurred": {},
739
- "inputChipIndexSelected": {}
740
- }; }
741
- static get events() { return [{
742
- "method": "interact",
743
- "name": "interact",
744
- "bubbles": true,
745
- "cancelable": true,
746
- "composed": true,
747
- "docs": {
748
- "tags": [],
749
- "text": "Dispatched when a chip is interacted with"
750
- },
751
- "complexType": {
752
- "original": "Chip",
753
- "resolved": "Chip<any>",
754
- "references": {
755
- "Chip": {
756
- "location": "import",
757
- "path": "@limetech/lime-elements"
422
+ },
423
+ "required": false,
424
+ "optional": false,
425
+ "docs": {
426
+ "tags": [],
427
+ "text": "List of chips for the set"
428
+ },
429
+ "defaultValue": "[]"
430
+ },
431
+ "type": {
432
+ "type": "string",
433
+ "mutable": false,
434
+ "complexType": {
435
+ "original": "'choice' | 'filter' | 'input'",
436
+ "resolved": "\"choice\" | \"filter\" | \"input\"",
437
+ "references": {}
438
+ },
439
+ "required": false,
440
+ "optional": true,
441
+ "docs": {
442
+ "tags": [],
443
+ "text": "Type of chip set\n\n- `choice` renders a set of selectable chips where only one is selectable. The `removable` property is ignored\n- `filter` renders a set of selectable chips where all are selectable. The `icon` property is ignored\n- `input` renders a set of chips that can be used in conjunction with an input field\n\nIf no type is set, a basic set of chips without additional functionality will be rendered"
444
+ },
445
+ "attribute": "type",
446
+ "reflect": true
447
+ },
448
+ "label": {
449
+ "type": "string",
450
+ "mutable": false,
451
+ "complexType": {
452
+ "original": "string",
453
+ "resolved": "string",
454
+ "references": {}
455
+ },
456
+ "required": false,
457
+ "optional": false,
458
+ "docs": {
459
+ "tags": [],
460
+ "text": "Label for the chip-set"
461
+ },
462
+ "attribute": "label",
463
+ "reflect": true
464
+ },
465
+ "helperText": {
466
+ "type": "string",
467
+ "mutable": false,
468
+ "complexType": {
469
+ "original": "string",
470
+ "resolved": "string",
471
+ "references": {}
472
+ },
473
+ "required": false,
474
+ "optional": false,
475
+ "docs": {
476
+ "tags": [],
477
+ "text": "Optional helper text to display below the chipset.\nWhen type is `input`, the helper text is displayed below the\ninput field when it has focus.\nWhen type is not `input`, the helper text is always displayed\nif the device is touch screen; otherwise it is shown when chip-set\nis hovered or focused using keyboard navigation."
478
+ },
479
+ "attribute": "helper-text",
480
+ "reflect": true
481
+ },
482
+ "disabled": {
483
+ "type": "boolean",
484
+ "mutable": false,
485
+ "complexType": {
486
+ "original": "boolean",
487
+ "resolved": "boolean",
488
+ "references": {}
489
+ },
490
+ "required": false,
491
+ "optional": false,
492
+ "docs": {
493
+ "tags": [],
494
+ "text": "True if the chip set should be disabled"
495
+ },
496
+ "attribute": "disabled",
497
+ "reflect": true,
498
+ "defaultValue": "false"
499
+ },
500
+ "readonly": {
501
+ "type": "boolean",
502
+ "mutable": false,
503
+ "complexType": {
504
+ "original": "boolean",
505
+ "resolved": "boolean",
506
+ "references": {}
507
+ },
508
+ "required": false,
509
+ "optional": false,
510
+ "docs": {
511
+ "tags": [],
512
+ "text": "For chip-sets of type `input`, set to `true` to disable adding and\nremoving chips, but allow interaction with existing chips in the set.\nFor any other types, setting either `readonly` or `disabled` disables\nthe chip-set."
513
+ },
514
+ "attribute": "readonly",
515
+ "reflect": true,
516
+ "defaultValue": "false"
517
+ },
518
+ "inputType": {
519
+ "type": "string",
520
+ "mutable": false,
521
+ "complexType": {
522
+ "original": "'search' | 'text'",
523
+ "resolved": "\"search\" | \"text\"",
524
+ "references": {}
525
+ },
526
+ "required": false,
527
+ "optional": false,
528
+ "docs": {
529
+ "tags": [],
530
+ "text": "For chip-sets of type `input`. Value to use for the `type` attribute on the\ninput field inside the chip-set."
531
+ },
532
+ "attribute": "input-type",
533
+ "reflect": true,
534
+ "defaultValue": "'text'"
535
+ },
536
+ "maxItems": {
537
+ "type": "number",
538
+ "mutable": false,
539
+ "complexType": {
540
+ "original": "number",
541
+ "resolved": "number",
542
+ "references": {}
543
+ },
544
+ "required": false,
545
+ "optional": false,
546
+ "docs": {
547
+ "tags": [],
548
+ "text": "For chip-sets of type `input`. Limits the maximum number of chips.\nWhen the value is `0` or not set, no limit is applied."
549
+ },
550
+ "attribute": "max-items",
551
+ "reflect": true
552
+ },
553
+ "required": {
554
+ "type": "boolean",
555
+ "mutable": false,
556
+ "complexType": {
557
+ "original": "boolean",
558
+ "resolved": "boolean",
559
+ "references": {}
560
+ },
561
+ "required": false,
562
+ "optional": false,
563
+ "docs": {
564
+ "tags": [],
565
+ "text": "True if the control requires a value"
566
+ },
567
+ "attribute": "required",
568
+ "reflect": true,
569
+ "defaultValue": "false"
570
+ },
571
+ "searchLabel": {
572
+ "type": "string",
573
+ "mutable": false,
574
+ "complexType": {
575
+ "original": "string",
576
+ "resolved": "string",
577
+ "references": {}
578
+ },
579
+ "required": false,
580
+ "optional": false,
581
+ "docs": {
582
+ "tags": [],
583
+ "text": "Search label to display when type is `input` and component is in search mode"
584
+ },
585
+ "attribute": "search-label",
586
+ "reflect": true
587
+ },
588
+ "emptyInputOnBlur": {
589
+ "type": "boolean",
590
+ "mutable": false,
591
+ "complexType": {
592
+ "original": "boolean",
593
+ "resolved": "boolean",
594
+ "references": {}
595
+ },
596
+ "required": false,
597
+ "optional": false,
598
+ "docs": {
599
+ "tags": [],
600
+ "text": "Whether the input field should be emptied when the chip-set loses focus."
601
+ },
602
+ "attribute": "empty-input-on-blur",
603
+ "reflect": true,
604
+ "defaultValue": "true"
605
+ },
606
+ "clearAllButton": {
607
+ "type": "boolean",
608
+ "mutable": false,
609
+ "complexType": {
610
+ "original": "boolean",
611
+ "resolved": "boolean",
612
+ "references": {}
613
+ },
614
+ "required": false,
615
+ "optional": false,
616
+ "docs": {
617
+ "tags": [],
618
+ "text": "Whether the \"Clear all\" buttons should be shown"
619
+ },
620
+ "attribute": "clear-all-button",
621
+ "reflect": false,
622
+ "defaultValue": "true"
623
+ },
624
+ "leadingIcon": {
625
+ "type": "string",
626
+ "mutable": false,
627
+ "complexType": {
628
+ "original": "string",
629
+ "resolved": "string",
630
+ "references": {}
631
+ },
632
+ "required": false,
633
+ "optional": false,
634
+ "docs": {
635
+ "tags": [],
636
+ "text": "For chip-sets of type `input`. When the value is null, no leading icon is used.\nLeading icon to show to the far left in the text field"
637
+ },
638
+ "attribute": "leading-icon",
639
+ "reflect": true,
640
+ "defaultValue": "null"
641
+ },
642
+ "delimiter": {
643
+ "type": "string",
644
+ "mutable": false,
645
+ "complexType": {
646
+ "original": "string",
647
+ "resolved": "string",
648
+ "references": {}
649
+ },
650
+ "required": false,
651
+ "optional": false,
652
+ "docs": {
653
+ "tags": [],
654
+ "text": "For chip-set of type `input`. Sets delimiters between chips."
655
+ },
656
+ "attribute": "delimiter",
657
+ "reflect": true,
658
+ "defaultValue": "null"
659
+ },
660
+ "language": {
661
+ "type": "string",
662
+ "mutable": false,
663
+ "complexType": {
664
+ "original": "Languages",
665
+ "resolved": "\"da\" | \"en\" | \"fi\" | \"nb\" | \"nl\" | \"no\" | \"sv\"",
666
+ "references": {
667
+ "Languages": {
668
+ "location": "import",
669
+ "path": "@limetech/lime-elements"
670
+ }
758
671
  }
759
- }
672
+ },
673
+ "required": false,
674
+ "optional": false,
675
+ "docs": {
676
+ "tags": [],
677
+ "text": "Defines the language for translations.\nWill translate the translatable strings on the components. For example, the clear all chips label."
678
+ },
679
+ "attribute": "language",
680
+ "reflect": false,
681
+ "defaultValue": "'en'"
760
682
  }
761
- }, {
762
- "method": "change",
763
- "name": "change",
764
- "bubbles": true,
765
- "cancelable": true,
766
- "composed": true,
767
- "docs": {
768
- "tags": [],
769
- "text": "Dispatched when a chip is selected/deselected"
770
- },
771
- "complexType": {
772
- "original": "Chip | Chip[]",
773
- "resolved": "Chip<any> | Chip<any>[]",
774
- "references": {
775
- "Chip": {
776
- "location": "import",
777
- "path": "@limetech/lime-elements"
683
+ };
684
+ }
685
+ static get states() {
686
+ return {
687
+ "editMode": {},
688
+ "textValue": {},
689
+ "blurred": {},
690
+ "inputChipIndexSelected": {}
691
+ };
692
+ }
693
+ static get events() {
694
+ return [{
695
+ "method": "interact",
696
+ "name": "interact",
697
+ "bubbles": true,
698
+ "cancelable": true,
699
+ "composed": true,
700
+ "docs": {
701
+ "tags": [],
702
+ "text": "Dispatched when a chip is interacted with"
703
+ },
704
+ "complexType": {
705
+ "original": "Chip",
706
+ "resolved": "Chip<any>",
707
+ "references": {
708
+ "Chip": {
709
+ "location": "import",
710
+ "path": "@limetech/lime-elements"
711
+ }
778
712
  }
779
713
  }
780
- }
781
- }, {
782
- "method": "startEdit",
783
- "name": "startEdit",
784
- "bubbles": true,
785
- "cancelable": true,
786
- "composed": true,
787
- "docs": {
788
- "tags": [],
789
- "text": "Emitted when an input chip set has received focus and editing in the text field has started"
790
- },
791
- "complexType": {
792
- "original": "void",
793
- "resolved": "void",
794
- "references": {}
795
- }
796
- }, {
797
- "method": "stopEdit",
798
- "name": "stopEdit",
799
- "bubbles": true,
800
- "cancelable": true,
801
- "composed": true,
802
- "docs": {
803
- "tags": [],
804
- "text": "Emitted when an input chip set has lost focus and editing in the text field has ended"
805
- },
806
- "complexType": {
807
- "original": "void",
808
- "resolved": "void",
809
- "references": {}
810
- }
811
- }, {
812
- "method": "input",
813
- "name": "input",
814
- "bubbles": true,
815
- "cancelable": true,
816
- "composed": true,
817
- "docs": {
818
- "tags": [],
819
- "text": "Dispatched when the input is changed for type `input`"
820
- },
821
- "complexType": {
822
- "original": "string",
823
- "resolved": "string",
824
- "references": {}
825
- }
826
- }]; }
827
- static get methods() { return {
828
- "getEditMode": {
829
- "complexType": {
830
- "signature": "() => Promise<boolean>",
831
- "parameters": [],
832
- "references": {
833
- "Promise": {
834
- "location": "global"
835
- }
714
+ }, {
715
+ "method": "change",
716
+ "name": "change",
717
+ "bubbles": true,
718
+ "cancelable": true,
719
+ "composed": true,
720
+ "docs": {
721
+ "tags": [],
722
+ "text": "Dispatched when a chip is selected/deselected"
836
723
  },
837
- "return": "Promise<boolean>"
838
- },
839
- "docs": {
840
- "text": "Used to find out whether the chip-set is in edit mode.",
841
- "tags": [{
842
- "name": "returns",
843
- "text": "`true` if the chip-set is in edit mode, `false` otherwise."
844
- }]
845
- }
846
- },
847
- "setFocus": {
848
- "complexType": {
849
- "signature": "(emptyInput?: boolean) => Promise<void>",
850
- "parameters": [{
851
- "tags": [{
852
- "name": "param",
853
- "text": "emptyInput if `true`, any text in the input is discarded"
854
- }],
855
- "text": "if `true`, any text in the input is discarded"
856
- }],
857
- "references": {
858
- "Promise": {
859
- "location": "global"
724
+ "complexType": {
725
+ "original": "Chip | Chip[]",
726
+ "resolved": "Chip<any> | Chip<any>[]",
727
+ "references": {
728
+ "Chip": {
729
+ "location": "import",
730
+ "path": "@limetech/lime-elements"
731
+ }
860
732
  }
733
+ }
734
+ }, {
735
+ "method": "startEdit",
736
+ "name": "startEdit",
737
+ "bubbles": true,
738
+ "cancelable": true,
739
+ "composed": true,
740
+ "docs": {
741
+ "tags": [],
742
+ "text": "Emitted when an input chip set has received focus and editing in the text field has started"
861
743
  },
862
- "return": "Promise<void>"
744
+ "complexType": {
745
+ "original": "void",
746
+ "resolved": "void",
747
+ "references": {}
748
+ }
749
+ }, {
750
+ "method": "stopEdit",
751
+ "name": "stopEdit",
752
+ "bubbles": true,
753
+ "cancelable": true,
754
+ "composed": true,
755
+ "docs": {
756
+ "tags": [],
757
+ "text": "Emitted when an input chip set has lost focus and editing in the text field has ended"
758
+ },
759
+ "complexType": {
760
+ "original": "void",
761
+ "resolved": "void",
762
+ "references": {}
763
+ }
764
+ }, {
765
+ "method": "input",
766
+ "name": "input",
767
+ "bubbles": true,
768
+ "cancelable": true,
769
+ "composed": true,
770
+ "docs": {
771
+ "tags": [],
772
+ "text": "Dispatched when the input is changed for type `input`"
773
+ },
774
+ "complexType": {
775
+ "original": "string",
776
+ "resolved": "string",
777
+ "references": {}
778
+ }
779
+ }];
780
+ }
781
+ static get methods() {
782
+ return {
783
+ "getEditMode": {
784
+ "complexType": {
785
+ "signature": "() => Promise<boolean>",
786
+ "parameters": [],
787
+ "references": {
788
+ "Promise": {
789
+ "location": "global"
790
+ }
791
+ },
792
+ "return": "Promise<boolean>"
793
+ },
794
+ "docs": {
795
+ "text": "Used to find out whether the chip-set is in edit mode.",
796
+ "tags": [{
797
+ "name": "returns",
798
+ "text": "`true` if the chip-set is in edit mode, `false` otherwise."
799
+ }]
800
+ }
863
801
  },
864
- "docs": {
865
- "text": "Used to set focus to the chip-set input field.",
866
- "tags": [{
867
- "name": "param",
868
- "text": "emptyInput if `true`, any text in the input is discarded"
869
- }, {
870
- "name": "returns",
871
- "text": "does not return anything, but methods have to be async"
872
- }]
873
- }
874
- },
875
- "emptyInput": {
876
- "complexType": {
877
- "signature": "() => Promise<void>",
878
- "parameters": [],
879
- "references": {
880
- "Promise": {
881
- "location": "global"
882
- }
802
+ "setFocus": {
803
+ "complexType": {
804
+ "signature": "(emptyInput?: boolean) => Promise<void>",
805
+ "parameters": [{
806
+ "tags": [{
807
+ "name": "param",
808
+ "text": "emptyInput if `true`, any text in the input is discarded"
809
+ }],
810
+ "text": "if `true`, any text in the input is discarded"
811
+ }],
812
+ "references": {
813
+ "Promise": {
814
+ "location": "global"
815
+ }
816
+ },
817
+ "return": "Promise<void>"
883
818
  },
884
- "return": "Promise<void>"
819
+ "docs": {
820
+ "text": "Used to set focus to the chip-set input field.",
821
+ "tags": [{
822
+ "name": "param",
823
+ "text": "emptyInput if `true`, any text in the input is discarded"
824
+ }, {
825
+ "name": "returns",
826
+ "text": "does not return anything, but methods have to be async"
827
+ }]
828
+ }
885
829
  },
886
- "docs": {
887
- "text": "Used to empty the input field. Used in conjunction with `emptyInputOnBlur` to let the\nconsumer control when the input is emptied.",
888
- "tags": [{
889
- "name": "returns",
890
- "text": "does not return anything, but methods have to be async"
891
- }]
830
+ "emptyInput": {
831
+ "complexType": {
832
+ "signature": "() => Promise<void>",
833
+ "parameters": [],
834
+ "references": {
835
+ "Promise": {
836
+ "location": "global"
837
+ }
838
+ },
839
+ "return": "Promise<void>"
840
+ },
841
+ "docs": {
842
+ "text": "Used to empty the input field. Used in conjunction with `emptyInputOnBlur` to let the\nconsumer control when the input is emptied.",
843
+ "tags": [{
844
+ "name": "returns",
845
+ "text": "does not return anything, but methods have to be async"
846
+ }]
847
+ }
892
848
  }
893
- }
894
- }; }
849
+ };
850
+ }
895
851
  static get elementRef() { return "host"; }
896
- static get watchers() { return [{
897
- "propName": "value",
898
- "methodName": "handleChangeChips"
899
- }]; }
852
+ static get watchers() {
853
+ return [{
854
+ "propName": "value",
855
+ "methodName": "handleChangeChips"
856
+ }];
857
+ }
900
858
  }