@limetech/lime-elements 36.0.0 → 36.1.0-dev.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 (270) 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 +24 -3
  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 +22 -53
  10. package/dist/cjs/limel-circular-progress.cjs.entry.js +10 -15
  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 +3 -11
  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 +326 -327
  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-input-field.cjs.entry.js +28 -61
  29. package/dist/cjs/limel-linear-progress.cjs.entry.js +1 -7
  30. package/dist/cjs/limel-list_2.cjs.entry.js +9 -18
  31. package/dist/cjs/limel-menu-list.cjs.entry.js +6 -13
  32. package/dist/cjs/limel-picker.cjs.entry.js +14 -39
  33. package/dist/cjs/limel-popover_4.cjs.entry.js +14 -13
  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 +8 -25
  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 +27 -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 +4 -2
  50. package/dist/collection/components/badge/badge.css +13 -0
  51. package/dist/collection/components/badge/badge.js +60 -28
  52. package/dist/collection/components/banner/banner.js +88 -83
  53. package/dist/collection/components/button/button.css +4 -1
  54. package/dist/collection/components/button/button.js +148 -160
  55. package/dist/collection/components/button-group/button-group.js +81 -79
  56. package/dist/collection/components/checkbox/checkbox.js +172 -176
  57. package/dist/collection/components/checkbox/checkbox.template.js +15 -23
  58. package/dist/collection/components/chip-set/chip-set.css +4 -0
  59. package/dist/collection/components/chip-set/chip-set.js +486 -528
  60. package/dist/collection/components/circular-progress/circular-progress.css +27 -5
  61. package/dist/collection/components/circular-progress/circular-progress.js +129 -113
  62. package/dist/collection/components/code-editor/code-editor.js +178 -182
  63. package/dist/collection/components/collapsible-section/collapsible-section.js +120 -124
  64. package/dist/collection/components/color-picker/color-picker-palette.js +102 -92
  65. package/dist/collection/components/color-picker/color-picker.js +143 -131
  66. package/dist/collection/components/config/config.js +21 -17
  67. package/dist/collection/components/date-picker/date-picker.js +254 -261
  68. package/dist/collection/components/date-picker/flatpickr-adapter/flatpickr-adapter.css +595 -166
  69. package/dist/collection/components/date-picker/flatpickr-adapter/flatpickr-adapter.js +150 -143
  70. package/dist/collection/components/date-picker/pickers/QuarterPicker.js +1 -3
  71. package/dist/collection/components/dialog/dialog.js +134 -142
  72. package/dist/collection/components/dock/dock-button/dock-button.js +138 -141
  73. package/dist/collection/components/dock/dock.js +204 -232
  74. package/dist/collection/components/file/file.js +187 -191
  75. package/dist/collection/components/flex-container/flex-container.js +96 -102
  76. package/dist/collection/components/form/form.js +158 -150
  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/input-field/input-field.css +9 -8
  82. package/dist/collection/components/input-field/input-field.js +482 -523
  83. package/dist/collection/components/linear-progress/linear-progress.js +57 -61
  84. package/dist/collection/components/list/list-renderer.js +3 -12
  85. package/dist/collection/components/list/list.js +167 -164
  86. package/dist/collection/components/list/radio-button/radio-button.template.js +2 -8
  87. package/dist/collection/components/menu/menu.js +183 -195
  88. package/dist/collection/components/menu-list/menu-list-renderer.js +2 -9
  89. package/dist/collection/components/menu-list/menu-list.js +149 -146
  90. package/dist/collection/components/menu-surface/menu-surface.js +69 -64
  91. package/dist/collection/components/picker/picker.js +412 -427
  92. package/dist/collection/components/popover/popover.js +79 -74
  93. package/dist/collection/components/popover-surface/popover-surface.css +4 -0
  94. package/dist/collection/components/popover-surface/popover-surface.js +34 -25
  95. package/dist/collection/components/portal/portal.js +145 -158
  96. package/dist/collection/components/progress-flow/progress-flow-item/progress-flow-item.js +90 -94
  97. package/dist/collection/components/progress-flow/progress-flow.js +93 -101
  98. package/dist/collection/components/select/select.js +206 -211
  99. package/dist/collection/components/select/select.template.js +9 -23
  100. package/dist/collection/components/shortcut/shortcut.css +91 -0
  101. package/dist/collection/components/shortcut/shortcut.js +194 -0
  102. package/dist/collection/components/slider/slider.js +233 -264
  103. package/dist/collection/components/snackbar/snackbar.js +175 -169
  104. package/dist/collection/components/spinner/spinner.js +56 -85
  105. package/dist/collection/components/split-button/split-button.css +75 -0
  106. package/dist/collection/components/split-button/split-button.js +168 -0
  107. package/dist/collection/components/switch/switch.js +117 -129
  108. package/dist/collection/components/tab-bar/tab-bar.js +87 -92
  109. package/dist/collection/components/tab-panel/tab-panel.js +64 -61
  110. package/dist/collection/components/table/table.js +447 -457
  111. package/dist/collection/components/tooltip/tooltip-content.js +70 -61
  112. package/dist/collection/components/tooltip/tooltip.js +96 -91
  113. package/dist/collection/icons/angle_left.svg +593 -0
  114. package/dist/collection/icons/angle_right.svg +593 -0
  115. package/dist/collection/icons/external_link.svg +593 -0
  116. package/dist/collection/icons/high_importance.svg +593 -0
  117. package/dist/collection/icons/unit-test.svg +593 -0
  118. package/dist/collection/style/internal/z-index.scss +0 -7
  119. package/dist/collection/translations/da.js +1 -0
  120. package/dist/collection/translations/en.js +1 -0
  121. package/dist/collection/translations/fi.js +1 -0
  122. package/dist/collection/translations/nl.js +1 -0
  123. package/dist/collection/translations/no.js +1 -0
  124. package/dist/collection/translations/sv.js +1 -0
  125. package/dist/esm/{checkbox.template-2f1bbc98.js → checkbox.template-fc7fcd06.js} +1 -1
  126. package/dist/esm/{index-11cd0b60.js → index-cdfd351d.js} +424 -246
  127. package/dist/esm/lime-elements.js +3 -3
  128. package/dist/esm/limel-badge.entry.js +24 -3
  129. package/dist/esm/limel-banner.entry.js +3 -1
  130. package/dist/esm/limel-button-group.entry.js +3 -8
  131. package/dist/esm/{limel-button.entry.js → limel-button_2.entry.js} +117 -22
  132. package/dist/esm/limel-checkbox.entry.js +10 -26
  133. package/dist/esm/limel-chip-set.entry.js +22 -53
  134. package/dist/esm/limel-circular-progress.entry.js +10 -15
  135. package/dist/esm/limel-code-editor.entry.js +110 -97
  136. package/dist/esm/limel-collapsible-section.entry.js +4 -5
  137. package/dist/esm/limel-color-picker-palette.entry.js +5 -1
  138. package/dist/esm/limel-color-picker.entry.js +8 -2
  139. package/dist/esm/limel-config.entry.js +2 -1
  140. package/dist/esm/limel-date-picker.entry.js +15 -33
  141. package/dist/esm/limel-dialog.entry.js +3 -11
  142. package/dist/esm/limel-dock-button.entry.js +5 -15
  143. package/dist/esm/limel-dock.entry.js +8 -40
  144. package/dist/esm/limel-file.entry.js +10 -24
  145. package/dist/esm/limel-flatpickr-adapter.entry.js +149 -48
  146. package/dist/esm/limel-flex-container.entry.js +1 -13
  147. package/dist/esm/limel-form.entry.js +326 -327
  148. package/dist/esm/limel-grid.entry.js +1 -1
  149. package/dist/esm/limel-header.entry.js +5 -1
  150. package/dist/esm/limel-icon-button.entry.js +3 -8
  151. package/dist/esm/limel-icon.entry.js +4 -1
  152. package/dist/esm/limel-input-field.entry.js +28 -61
  153. package/dist/esm/limel-linear-progress.entry.js +1 -7
  154. package/dist/esm/limel-list_2.entry.js +9 -18
  155. package/dist/esm/limel-menu-list.entry.js +6 -13
  156. package/dist/esm/limel-picker.entry.js +14 -39
  157. package/dist/esm/limel-popover_4.entry.js +14 -13
  158. package/dist/esm/limel-portal.entry.js +63 -73
  159. package/dist/esm/limel-progress-flow-item.entry.js +4 -13
  160. package/dist/esm/limel-progress-flow.entry.js +4 -20
  161. package/dist/esm/limel-select.entry.js +8 -25
  162. package/dist/esm/limel-shortcut.entry.js +48 -0
  163. package/dist/esm/limel-slider.entry.js +12 -33
  164. package/dist/esm/limel-snackbar.entry.js +7 -5
  165. package/dist/esm/limel-spinner.entry.js +1 -7
  166. package/dist/esm/limel-split-button.entry.js +23 -0
  167. package/dist/esm/limel-switch.entry.js +6 -19
  168. package/dist/esm/limel-tab-bar.entry.js +2 -5
  169. package/dist/esm/limel-tab-panel.entry.js +2 -5
  170. package/dist/esm/limel-table.entry.js +16 -28
  171. package/dist/esm/loader.js +3 -3
  172. package/dist/esm/polyfills/css-shim.js +1 -1
  173. package/dist/esm/{translations-682e905e.js → translations-0d0ee941.js} +6 -0
  174. package/dist/lime-elements/lime-elements.esm.js +1 -1
  175. package/dist/lime-elements/p-059e0a64.entry.js +1 -0
  176. package/dist/lime-elements/{p-440454ed.entry.js → p-06f2f6b4.entry.js} +1 -1
  177. package/dist/lime-elements/{p-71efe2ca.entry.js → p-0dbde06f.entry.js} +1 -1
  178. package/dist/lime-elements/p-12a7453b.entry.js +73 -0
  179. package/dist/lime-elements/p-15c2eb16.entry.js +1 -0
  180. package/dist/lime-elements/{p-c80acfb2.entry.js → p-15ca0d70.entry.js} +4 -4
  181. package/dist/lime-elements/{p-ed65468d.entry.js → p-16eb9071.entry.js} +1 -1
  182. package/dist/lime-elements/{p-1ede893b.js → p-1af8258b.js} +1 -1
  183. package/dist/lime-elements/p-246862ec.js +1 -0
  184. package/dist/lime-elements/p-28dffd9e.entry.js +1 -0
  185. package/dist/lime-elements/p-334b5f82.entry.js +37 -0
  186. package/dist/lime-elements/p-36a3b897.entry.js +1 -0
  187. package/dist/lime-elements/p-4b426b7e.entry.js +11 -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-a5af84a7.entry.js → p-5338663b.entry.js} +1 -1
  191. package/dist/lime-elements/p-5ce60a32.entry.js +126 -0
  192. package/dist/lime-elements/p-5f13035a.entry.js +1 -0
  193. package/dist/lime-elements/{p-42b67933.entry.js → p-600464a9.entry.js} +1 -1
  194. package/dist/lime-elements/p-6534e16a.entry.js +1 -0
  195. package/dist/lime-elements/p-6a4a5ddd.entry.js +1 -0
  196. package/dist/lime-elements/p-6c38b505.entry.js +1 -0
  197. package/dist/lime-elements/p-744c21f8.entry.js +1 -0
  198. package/dist/lime-elements/p-75d01713.entry.js +1 -0
  199. package/dist/lime-elements/p-768b7cbb.entry.js +1 -0
  200. package/dist/lime-elements/{p-6e7809a6.entry.js → p-82cd7bb6.entry.js} +1 -1
  201. package/dist/lime-elements/p-84a137a7.entry.js +1 -0
  202. package/dist/lime-elements/p-8715eac0.entry.js +1 -0
  203. package/dist/lime-elements/{p-8827628d.entry.js → p-8fb83e83.entry.js} +2 -2
  204. package/dist/lime-elements/p-90961075.entry.js +1 -0
  205. package/dist/lime-elements/p-9984b31c.entry.js +1 -0
  206. package/dist/lime-elements/p-9bd76629.entry.js +59 -0
  207. package/dist/lime-elements/p-9f19e0c1.entry.js +1 -0
  208. package/dist/lime-elements/p-ace4e596.entry.js +1 -0
  209. package/dist/lime-elements/p-cad7cda1.entry.js +16 -0
  210. package/dist/lime-elements/{p-104c89e8.entry.js → p-cfaa685f.entry.js} +1 -1
  211. package/dist/lime-elements/{p-94899019.entry.js → p-d1187867.entry.js} +1 -1
  212. package/dist/lime-elements/{p-aa66620a.entry.js → p-d3ebc657.entry.js} +2 -2
  213. package/dist/lime-elements/p-d4e788e1.js +2 -0
  214. package/dist/lime-elements/p-d512656b.entry.js +1 -0
  215. package/dist/lime-elements/p-d8e5a9ee.entry.js +1 -0
  216. package/dist/lime-elements/p-dcd2a664.entry.js +16 -0
  217. package/dist/lime-elements/p-de161bb5.entry.js +1 -0
  218. package/dist/lime-elements/p-e4bca82b.entry.js +1 -0
  219. package/dist/lime-elements/{p-c15da26d.entry.js → p-e7bb664f.entry.js} +1 -1
  220. package/dist/lime-elements/p-ef04b849.entry.js +82 -0
  221. package/dist/lime-elements/style/internal/z-index.scss +0 -7
  222. package/dist/loader/package.json +1 -0
  223. package/dist/types/components/badge/badge.d.ts +12 -4
  224. package/dist/types/components/circular-progress/circular-progress.d.ts +5 -0
  225. package/dist/types/components/picker/picker.d.ts +2 -2
  226. package/dist/types/components/shortcut/shortcut.d.ts +57 -0
  227. package/dist/types/components/split-button/split-button.d.ts +45 -0
  228. package/dist/types/components/tab-bar/tab.types.d.ts +1 -1
  229. package/dist/types/components.d.ts +328 -70
  230. package/dist/types/stencil-public-runtime.d.ts +20 -4
  231. package/dist/types/translations/da.d.ts +1 -0
  232. package/dist/types/translations/en.d.ts +1 -0
  233. package/dist/types/translations/fi.d.ts +1 -0
  234. package/dist/types/translations/nl.d.ts +1 -0
  235. package/dist/types/translations/no.d.ts +1 -0
  236. package/dist/types/translations/sv.d.ts +1 -0
  237. package/package.json +24 -24
  238. package/dist/cjs/limel-menu.cjs.entry.js +0 -137
  239. package/dist/esm/limel-menu.entry.js +0 -133
  240. package/dist/lime-elements/p-009de50e.entry.js +0 -1
  241. package/dist/lime-elements/p-0ba0c38a.entry.js +0 -11
  242. package/dist/lime-elements/p-1390fdcb.entry.js +0 -126
  243. package/dist/lime-elements/p-19f72dab.entry.js +0 -1
  244. package/dist/lime-elements/p-2639edf9.entry.js +0 -73
  245. package/dist/lime-elements/p-2fc4f4ff.entry.js +0 -1
  246. package/dist/lime-elements/p-3bf54a4c.js +0 -1
  247. package/dist/lime-elements/p-3cf4aae0.entry.js +0 -1
  248. package/dist/lime-elements/p-4dc07252.entry.js +0 -82
  249. package/dist/lime-elements/p-53e01330.entry.js +0 -1
  250. package/dist/lime-elements/p-5ef52589.entry.js +0 -1
  251. package/dist/lime-elements/p-63e25a0a.entry.js +0 -1
  252. package/dist/lime-elements/p-653faf47.entry.js +0 -1
  253. package/dist/lime-elements/p-6b1bc80f.entry.js +0 -1
  254. package/dist/lime-elements/p-93cd2268.entry.js +0 -1
  255. package/dist/lime-elements/p-93f42a32.entry.js +0 -1
  256. package/dist/lime-elements/p-95f275ab.entry.js +0 -1
  257. package/dist/lime-elements/p-995bbd2a.entry.js +0 -1
  258. package/dist/lime-elements/p-a465084b.entry.js +0 -82
  259. package/dist/lime-elements/p-b0046fcd.entry.js +0 -1
  260. package/dist/lime-elements/p-b0e54dc2.entry.js +0 -1
  261. package/dist/lime-elements/p-c544c05b.entry.js +0 -16
  262. package/dist/lime-elements/p-c59cbd68.entry.js +0 -1
  263. package/dist/lime-elements/p-cb8db8c2.entry.js +0 -37
  264. package/dist/lime-elements/p-d74fa89e.entry.js +0 -1
  265. package/dist/lime-elements/p-e98d76e8.entry.js +0 -59
  266. package/dist/lime-elements/p-e9a95b8f.js +0 -1
  267. package/dist/lime-elements/p-f0c9dadd.entry.js +0 -1
  268. package/dist/lime-elements/p-f0e872b6.entry.js +0 -16
  269. package/dist/lime-elements/p-f41567a1.entry.js +0 -1
  270. package/dist/lime-elements/p-f5df4d4f.entry.js +0 -1
@@ -1,5 +1,5 @@
1
1
  import { MDCLinearProgress } from '@material/linear-progress';
2
- import { Component, Element, h, Prop, Watch } from '@stencil/core';
2
+ import { h } from '@stencil/core';
3
3
  /**
4
4
  * @exampleComponent limel-example-linear-progress
5
5
  * @exampleComponent limel-example-linear-progress-color
@@ -7,13 +7,7 @@ import { Component, Element, h, Prop, Watch } from '@stencil/core';
7
7
  */
8
8
  export class LinearProgress {
9
9
  constructor() {
10
- /**
11
- * The value of the progress bar. Should be between `0` and `1`.
12
- */
13
10
  this.value = 0;
14
- /**
15
- * Puts the progress bar in an indeterminate state
16
- */
17
11
  this.indeterminate = false;
18
12
  }
19
13
  connectedCallback() {
@@ -40,13 +34,7 @@ export class LinearProgress {
40
34
  'mdc-linear-progress': true,
41
35
  'mdc-linear-progress--indeterminate': this.indeterminate,
42
36
  };
43
- return (h("div", { role: "progressbar", class: classList, "aria-label": "Progress Bar", "aria-valuemin": "0", "aria-valuemax": "1", "aria-valuenow": this.value },
44
- h("div", { class: "mdc-linear-progress__buffer" },
45
- h("div", { class: "mdc-linear-progress__buffer-bar" })),
46
- h("div", { class: "mdc-linear-progress__bar mdc-linear-progress__primary-bar" },
47
- h("span", { class: "mdc-linear-progress__bar-inner" })),
48
- h("div", { class: "mdc-linear-progress__bar mdc-linear-progress__secondary-bar" },
49
- h("span", { class: "mdc-linear-progress__bar-inner" }))));
37
+ return (h("div", { role: "progressbar", class: classList, "aria-label": "Progress Bar", "aria-valuemin": "0", "aria-valuemax": "1", "aria-valuenow": this.value }, h("div", { class: "mdc-linear-progress__buffer" }, h("div", { class: "mdc-linear-progress__buffer-bar" })), h("div", { class: "mdc-linear-progress__bar mdc-linear-progress__primary-bar" }, h("span", { class: "mdc-linear-progress__bar-inner" })), h("div", { class: "mdc-linear-progress__bar mdc-linear-progress__secondary-bar" }, h("span", { class: "mdc-linear-progress__bar-inner" }))));
50
38
  }
51
39
  watchValue(newValue) {
52
40
  if (!this.mdcLinearProgress) {
@@ -56,53 +44,61 @@ export class LinearProgress {
56
44
  }
57
45
  static get is() { return "limel-linear-progress"; }
58
46
  static get encapsulation() { return "shadow"; }
59
- static get originalStyleUrls() { return {
60
- "$": ["linear-progress.scss"]
61
- }; }
62
- static get styleUrls() { return {
63
- "$": ["linear-progress.css"]
64
- }; }
65
- static get properties() { return {
66
- "value": {
67
- "type": "number",
68
- "mutable": false,
69
- "complexType": {
70
- "original": "number",
71
- "resolved": "number",
72
- "references": {}
73
- },
74
- "required": false,
75
- "optional": false,
76
- "docs": {
77
- "tags": [],
78
- "text": "The value of the progress bar. Should be between `0` and `1`."
79
- },
80
- "attribute": "value",
81
- "reflect": false,
82
- "defaultValue": "0"
83
- },
84
- "indeterminate": {
85
- "type": "boolean",
86
- "mutable": false,
87
- "complexType": {
88
- "original": "boolean",
89
- "resolved": "boolean",
90
- "references": {}
91
- },
92
- "required": false,
93
- "optional": false,
94
- "docs": {
95
- "tags": [],
96
- "text": "Puts the progress bar in an indeterminate state"
47
+ static get originalStyleUrls() {
48
+ return {
49
+ "$": ["linear-progress.scss"]
50
+ };
51
+ }
52
+ static get styleUrls() {
53
+ return {
54
+ "$": ["linear-progress.css"]
55
+ };
56
+ }
57
+ static get properties() {
58
+ return {
59
+ "value": {
60
+ "type": "number",
61
+ "mutable": false,
62
+ "complexType": {
63
+ "original": "number",
64
+ "resolved": "number",
65
+ "references": {}
66
+ },
67
+ "required": false,
68
+ "optional": false,
69
+ "docs": {
70
+ "tags": [],
71
+ "text": "The value of the progress bar. Should be between `0` and `1`."
72
+ },
73
+ "attribute": "value",
74
+ "reflect": false,
75
+ "defaultValue": "0"
97
76
  },
98
- "attribute": "indeterminate",
99
- "reflect": false,
100
- "defaultValue": "false"
101
- }
102
- }; }
77
+ "indeterminate": {
78
+ "type": "boolean",
79
+ "mutable": false,
80
+ "complexType": {
81
+ "original": "boolean",
82
+ "resolved": "boolean",
83
+ "references": {}
84
+ },
85
+ "required": false,
86
+ "optional": false,
87
+ "docs": {
88
+ "tags": [],
89
+ "text": "Puts the progress bar in an indeterminate state"
90
+ },
91
+ "attribute": "indeterminate",
92
+ "reflect": false,
93
+ "defaultValue": "false"
94
+ }
95
+ };
96
+ }
103
97
  static get elementRef() { return "host"; }
104
- static get watchers() { return [{
105
- "propName": "value",
106
- "methodName": "watchValue"
107
- }]; }
98
+ static get watchers() {
99
+ return [{
100
+ "propName": "value",
101
+ "methodName": "watchValue"
102
+ }];
103
+ }
108
104
  }
@@ -61,12 +61,7 @@ export class ListRenderer {
61
61
  if (index === this.applyTabIndexToItemAtIndex) {
62
62
  attributes.tabindex = '0';
63
63
  }
64
- return (h("li", Object.assign({ class: classNames, "aria-disabled": item.disabled ? 'true' : 'false', "aria-selected": item.selected ? 'true' : 'false', "data-index": index }, attributes),
65
- item.icon ? this.renderIcon(this.config, item) : null,
66
- this.getPrimaryComponent(item),
67
- this.renderText(item),
68
- this.twoLines && this.avatarList ? this.renderDivider() : null,
69
- this.renderActionMenu(item.actions)));
64
+ return (h("li", Object.assign({ class: classNames, "aria-disabled": item.disabled ? 'true' : 'false', "aria-selected": item.selected ? 'true' : 'false', "data-index": index }, attributes), item.icon ? this.renderIcon(this.config, item) : null, this.getPrimaryComponent(item), this.renderText(item), this.twoLines && this.avatarList ? this.renderDivider() : null, this.renderActionMenu(item.actions)));
70
65
  };
71
66
  this.hasPrimaryComponent = (item) => {
72
67
  var _a;
@@ -82,10 +77,7 @@ export class ListRenderer {
82
77
  if (this.isSimpleItem(item)) {
83
78
  return (h("span", { class: "mdc-deprecated-list-item__text" }, item.text));
84
79
  }
85
- return (h("div", { class: "mdc-deprecated-list-item__text" },
86
- h("div", { class: "mdc-deprecated-list-item__primary-command-text" },
87
- h("div", { class: "mdc-deprecated-list-item__primary-text" }, item.text)),
88
- h("div", { class: "mdc-deprecated-list-item__secondary-text" }, item.secondaryText)));
80
+ return (h("div", { class: "mdc-deprecated-list-item__text" }, h("div", { class: "mdc-deprecated-list-item__primary-command-text" }, h("div", { class: "mdc-deprecated-list-item__primary-text" }, item.text)), h("div", { class: "mdc-deprecated-list-item__secondary-text" }, item.secondaryText)));
89
81
  };
90
82
  this.isSimpleItem = (item) => {
91
83
  return !('secondaryText' in item);
@@ -123,8 +115,7 @@ export class ListRenderer {
123
115
  if (!actions || actions.length === 0) {
124
116
  return;
125
117
  }
126
- return (h("limel-menu", { class: "mdc-deprecated-list-item__meta", items: actions, openDirection: "left-start" },
127
- h("limel-icon-button", { class: "action-menu-trigger", slot: "trigger", icon: "menu_2" })));
118
+ return (h("limel-menu", { class: "mdc-deprecated-list-item__meta", items: actions, openDirection: "left-start" }, h("limel-icon-button", { class: "action-menu-trigger", slot: "trigger", icon: "menu_2" })));
128
119
  };
129
120
  this.renderVariantListItem = (config, item, index) => {
130
121
  let itemTemplate;
@@ -1,7 +1,7 @@
1
1
  import { MDCList } from '@material/list';
2
2
  import { MDCRipple } from '@material/ripple';
3
3
  import { strings as listStrings } from '@material/list/constants';
4
- import { Component, Element, Event, h, Host, Prop, Watch, } from '@stencil/core';
4
+ import { h, Host, } from '@stencil/core';
5
5
  import { ListRenderer } from './list-renderer';
6
6
  const { ACTION_EVENT } = listStrings;
7
7
  /**
@@ -22,18 +22,6 @@ const { ACTION_EVENT } = listStrings;
22
22
  */
23
23
  export class List {
24
24
  constructor() {
25
- /**
26
- * Size of the icons in the list
27
- */
28
- this.iconSize = 'small';
29
- /**
30
- * By default, lists will display 3 lines of text, and then truncate the rest.
31
- * Consumers can increase or decrease this number by specifying
32
- * `maxLinesSecondaryText`. If consumer enters zero or negative
33
- * numbers we default to 1; and if they type decimals we round up.
34
- */
35
- // eslint-disable-next-line no-magic-numbers
36
- this.maxLinesSecondaryText = 3;
37
25
  this.listRenderer = new ListRenderer();
38
26
  this.setup = () => {
39
27
  this.setupList();
@@ -111,6 +99,11 @@ export class List {
111
99
  this.isListItem = (item) => {
112
100
  return !('separator' in item);
113
101
  };
102
+ this.items = undefined;
103
+ this.badgeIcons = undefined;
104
+ this.iconSize = 'small';
105
+ this.type = undefined;
106
+ this.maxLinesSecondaryText = 3;
114
107
  }
115
108
  connectedCallback() {
116
109
  this.setup();
@@ -162,168 +155,178 @@ export class List {
162
155
  }
163
156
  static get is() { return "limel-list"; }
164
157
  static get encapsulation() { return "shadow"; }
165
- static get originalStyleUrls() { return {
166
- "$": ["list.scss"]
167
- }; }
168
- static get styleUrls() { return {
169
- "$": ["list.css"]
170
- }; }
171
- static get properties() { return {
172
- "items": {
173
- "type": "unknown",
174
- "mutable": false,
175
- "complexType": {
176
- "original": "Array<ListItem | ListSeparator>",
177
- "resolved": "(ListItem<any> | ListSeparator)[]",
178
- "references": {
179
- "Array": {
180
- "location": "global"
181
- },
182
- "ListItem": {
183
- "location": "import",
184
- "path": "@limetech/lime-elements"
185
- },
186
- "ListSeparator": {
187
- "location": "import",
188
- "path": "@limetech/lime-elements"
158
+ static get originalStyleUrls() {
159
+ return {
160
+ "$": ["list.scss"]
161
+ };
162
+ }
163
+ static get styleUrls() {
164
+ return {
165
+ "$": ["list.css"]
166
+ };
167
+ }
168
+ static get properties() {
169
+ return {
170
+ "items": {
171
+ "type": "unknown",
172
+ "mutable": false,
173
+ "complexType": {
174
+ "original": "Array<ListItem | ListSeparator>",
175
+ "resolved": "(ListSeparator | ListItem<any>)[]",
176
+ "references": {
177
+ "Array": {
178
+ "location": "global"
179
+ },
180
+ "ListItem": {
181
+ "location": "import",
182
+ "path": "@limetech/lime-elements"
183
+ },
184
+ "ListSeparator": {
185
+ "location": "import",
186
+ "path": "@limetech/lime-elements"
187
+ }
189
188
  }
189
+ },
190
+ "required": false,
191
+ "optional": false,
192
+ "docs": {
193
+ "tags": [],
194
+ "text": "List of items to display"
190
195
  }
191
196
  },
192
- "required": false,
193
- "optional": false,
194
- "docs": {
195
- "tags": [],
196
- "text": "List of items to display"
197
- }
198
- },
199
- "badgeIcons": {
200
- "type": "boolean",
201
- "mutable": false,
202
- "complexType": {
203
- "original": "boolean",
204
- "resolved": "boolean",
205
- "references": {}
206
- },
207
- "required": false,
208
- "optional": false,
209
- "docs": {
210
- "tags": [],
211
- "text": "Set to `true` if the list should display larger icons with a background"
197
+ "badgeIcons": {
198
+ "type": "boolean",
199
+ "mutable": false,
200
+ "complexType": {
201
+ "original": "boolean",
202
+ "resolved": "boolean",
203
+ "references": {}
204
+ },
205
+ "required": false,
206
+ "optional": false,
207
+ "docs": {
208
+ "tags": [],
209
+ "text": "Set to `true` if the list should display larger icons with a background"
210
+ },
211
+ "attribute": "badge-icons",
212
+ "reflect": false
212
213
  },
213
- "attribute": "badge-icons",
214
- "reflect": false
215
- },
216
- "iconSize": {
217
- "type": "string",
218
- "mutable": false,
219
- "complexType": {
220
- "original": "IconSize",
221
- "resolved": "\"large\" | \"medium\" | \"small\" | \"x-small\"",
222
- "references": {
223
- "IconSize": {
224
- "location": "import",
225
- "path": "@limetech/lime-elements"
214
+ "iconSize": {
215
+ "type": "string",
216
+ "mutable": false,
217
+ "complexType": {
218
+ "original": "IconSize",
219
+ "resolved": "\"large\" | \"medium\" | \"small\" | \"x-small\"",
220
+ "references": {
221
+ "IconSize": {
222
+ "location": "import",
223
+ "path": "@limetech/lime-elements"
224
+ }
226
225
  }
227
- }
228
- },
229
- "required": false,
230
- "optional": false,
231
- "docs": {
232
- "tags": [],
233
- "text": "Size of the icons in the list"
226
+ },
227
+ "required": false,
228
+ "optional": false,
229
+ "docs": {
230
+ "tags": [],
231
+ "text": "Size of the icons in the list"
232
+ },
233
+ "attribute": "icon-size",
234
+ "reflect": false,
235
+ "defaultValue": "'small'"
234
236
  },
235
- "attribute": "icon-size",
236
- "reflect": false,
237
- "defaultValue": "'small'"
238
- },
239
- "type": {
240
- "type": "string",
241
- "mutable": false,
242
- "complexType": {
243
- "original": "ListType",
244
- "resolved": "\"checkbox\" | \"radio\" | \"selectable\"",
245
- "references": {
246
- "ListType": {
247
- "location": "import",
248
- "path": "@limetech/lime-elements"
237
+ "type": {
238
+ "type": "string",
239
+ "mutable": false,
240
+ "complexType": {
241
+ "original": "ListType",
242
+ "resolved": "\"checkbox\" | \"radio\" | \"selectable\"",
243
+ "references": {
244
+ "ListType": {
245
+ "location": "import",
246
+ "path": "@limetech/lime-elements"
247
+ }
249
248
  }
250
- }
249
+ },
250
+ "required": false,
251
+ "optional": false,
252
+ "docs": {
253
+ "tags": [],
254
+ "text": "The type of the list, omit to get a regular list. Available types are:\n`selectable`: regular list with single selection.\n`radio`: radio button list with single selection.\n`checkbox`: checkbox list with multiple selection."
255
+ },
256
+ "attribute": "type",
257
+ "reflect": false
251
258
  },
252
- "required": false,
253
- "optional": false,
254
- "docs": {
255
- "tags": [],
256
- "text": "The type of the list, omit to get a regular list. Available types are:\n`selectable`: regular list with single selection.\n`radio`: radio button list with single selection.\n`checkbox`: checkbox list with multiple selection."
257
- },
258
- "attribute": "type",
259
- "reflect": false
260
- },
261
- "maxLinesSecondaryText": {
262
- "type": "number",
263
- "mutable": false,
264
- "complexType": {
265
- "original": "number",
266
- "resolved": "number",
267
- "references": {}
268
- },
269
- "required": false,
270
- "optional": false,
271
- "docs": {
272
- "tags": [],
273
- "text": "By default, lists will display 3 lines of text, and then truncate the rest.\nConsumers can increase or decrease this number by specifying\n`maxLinesSecondaryText`. If consumer enters zero or negative\nnumbers we default to 1; and if they type decimals we round up."
274
- },
275
- "attribute": "max-lines-secondary-text",
276
- "reflect": false,
277
- "defaultValue": "3"
278
- }
279
- }; }
280
- static get events() { return [{
281
- "method": "change",
282
- "name": "change",
283
- "bubbles": true,
284
- "cancelable": true,
285
- "composed": true,
286
- "docs": {
287
- "tags": [],
288
- "text": "Fired when a new value has been selected from the list. Only fired if selectable is set to true"
289
- },
290
- "complexType": {
291
- "original": "ListItem | ListItem[]",
292
- "resolved": "ListItem<any> | ListItem<any>[]",
293
- "references": {
294
- "ListItem": {
295
- "location": "import",
296
- "path": "@limetech/lime-elements"
259
+ "maxLinesSecondaryText": {
260
+ "type": "number",
261
+ "mutable": false,
262
+ "complexType": {
263
+ "original": "number",
264
+ "resolved": "number",
265
+ "references": {}
266
+ },
267
+ "required": false,
268
+ "optional": false,
269
+ "docs": {
270
+ "tags": [],
271
+ "text": "By default, lists will display 3 lines of text, and then truncate the rest.\nConsumers can increase or decrease this number by specifying\n`maxLinesSecondaryText`. If consumer enters zero or negative\nnumbers we default to 1; and if they type decimals we round up."
272
+ },
273
+ "attribute": "max-lines-secondary-text",
274
+ "reflect": false,
275
+ "defaultValue": "3"
276
+ }
277
+ };
278
+ }
279
+ static get events() {
280
+ return [{
281
+ "method": "change",
282
+ "name": "change",
283
+ "bubbles": true,
284
+ "cancelable": true,
285
+ "composed": true,
286
+ "docs": {
287
+ "tags": [],
288
+ "text": "Fired when a new value has been selected from the list. Only fired if selectable is set to true"
289
+ },
290
+ "complexType": {
291
+ "original": "ListItem | ListItem[]",
292
+ "resolved": "ListItem<any> | ListItem<any>[]",
293
+ "references": {
294
+ "ListItem": {
295
+ "location": "import",
296
+ "path": "@limetech/lime-elements"
297
+ }
297
298
  }
298
299
  }
299
- }
300
- }, {
301
- "method": "select",
302
- "name": "select",
303
- "bubbles": true,
304
- "cancelable": true,
305
- "composed": true,
306
- "docs": {
307
- "tags": [],
308
- "text": "Fired when an action has been selected from the action menu of a list item"
309
- },
310
- "complexType": {
311
- "original": "ListItem | ListItem[]",
312
- "resolved": "ListItem<any> | ListItem<any>[]",
313
- "references": {
314
- "ListItem": {
315
- "location": "import",
316
- "path": "@limetech/lime-elements"
300
+ }, {
301
+ "method": "select",
302
+ "name": "select",
303
+ "bubbles": true,
304
+ "cancelable": true,
305
+ "composed": true,
306
+ "docs": {
307
+ "tags": [],
308
+ "text": "Fired when an action has been selected from the action menu of a list item"
309
+ },
310
+ "complexType": {
311
+ "original": "ListItem | ListItem[]",
312
+ "resolved": "ListItem<any> | ListItem<any>[]",
313
+ "references": {
314
+ "ListItem": {
315
+ "location": "import",
316
+ "path": "@limetech/lime-elements"
317
+ }
317
318
  }
318
319
  }
319
- }
320
- }]; }
320
+ }];
321
+ }
321
322
  static get elementRef() { return "element"; }
322
- static get watchers() { return [{
323
- "propName": "type",
324
- "methodName": "handleType"
325
- }, {
326
- "propName": "items",
327
- "methodName": "itemsChanged"
328
- }]; }
323
+ static get watchers() {
324
+ return [{
325
+ "propName": "type",
326
+ "methodName": "handleType"
327
+ }, {
328
+ "propName": "items",
329
+ "methodName": "itemsChanged"
330
+ }];
331
+ }
329
332
  }
@@ -1,13 +1,7 @@
1
1
  import { h } from '@stencil/core';
2
2
  export const RadioButtonTemplate = (props) => {
3
- return (h("div", { class: "mdc-form-field" },
4
- h("div", { class: `
3
+ return (h("div", { class: "mdc-form-field" }, h("div", { class: `
5
4
  mdc-radio
6
5
  ${props.disabled ? 'mdc-radio--disabled' : ''}
7
- ` },
8
- h("input", { class: "mdc-radio__native-control", type: "radio", id: props.id, checked: props.checked, disabled: props.disabled, onChange: props.onChange }),
9
- h("div", { class: "mdc-radio__background" },
10
- h("div", { class: "mdc-radio__outer-circle" }),
11
- h("div", { class: "mdc-radio__inner-circle" }))),
12
- h("label", { class: `${props.disabled ? 'disabled' : ''}`, htmlFor: props.id }, props.label)));
6
+ ` }, h("input", { class: "mdc-radio__native-control", type: "radio", id: props.id, checked: props.checked, disabled: props.disabled, onChange: props.onChange }), h("div", { class: "mdc-radio__background" }, h("div", { class: "mdc-radio__outer-circle" }), h("div", { class: "mdc-radio__inner-circle" }))), h("label", { class: `${props.disabled ? 'disabled' : ''}`, htmlFor: props.id }, props.label)));
13
7
  };