@limetech/lime-elements 35.0.0-next.9 → 35.0.1-next.2

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 (299) hide show
  1. package/dist/cjs/{_arrayIncludesWith-36a6fafb.js → _arrayIncludesWith-29083f83.js} +5 -4
  2. package/dist/cjs/{_assignValue-c9fc3712.js → _assignValue-7c18d8d6.js} +1 -1
  3. package/dist/cjs/_defineProperty-8f56146d.js +13 -0
  4. package/dist/cjs/{_defineProperty-8351e789.js → _getNative-60328036.js} +0 -9
  5. package/dist/cjs/checkbox.template-b6c6562c.js +43 -0
  6. package/dist/cjs/{component-f7ef9087.js → component-66df95e7.js} +190 -132
  7. package/dist/cjs/{component-f532119f.js → component-67144c1c.js} +47 -3
  8. package/dist/cjs/{component-ed21410d.js → component-ae3bfacf.js} +367 -235
  9. package/dist/cjs/{component-2faaa141.js → component-cf490570.js} +213 -143
  10. package/dist/cjs/{component-10dbdd60.js → component-dd795ff0.js} +7 -5
  11. package/dist/cjs/{dateFormatter-26eac73a.js → dateFormatter-05d80b12.js} +37 -31
  12. package/dist/cjs/identity-6dc34885.js +44 -0
  13. package/dist/cjs/{index-e63a89d7.js → index-2a28697b.js} +27 -1
  14. package/dist/cjs/{isEqual-e3b9c27c.js → isEqual-d2a13a24.js} +13 -55
  15. package/dist/cjs/lime-elements.cjs.js +3 -3
  16. package/dist/cjs/limel-badge.cjs.entry.js +4 -4
  17. package/dist/cjs/limel-banner.cjs.entry.js +2 -2
  18. package/dist/cjs/limel-button-group.cjs.entry.js +3 -3
  19. package/dist/cjs/limel-button.cjs.entry.js +3 -3
  20. package/dist/cjs/limel-checkbox.cjs.entry.js +136 -90
  21. package/dist/cjs/limel-chip-set.cjs.entry.js +235 -191
  22. package/dist/cjs/limel-circular-progress.cjs.entry.js +3 -3
  23. package/dist/cjs/limel-code-editor.cjs.entry.js +51 -24
  24. package/dist/cjs/limel-collapsible-section.cjs.entry.js +2 -2
  25. package/dist/cjs/limel-color-picker-palette_2.cjs.entry.js +7 -6
  26. package/dist/cjs/limel-color-picker.cjs.entry.js +2 -2
  27. package/dist/cjs/limel-config.cjs.entry.js +2 -2
  28. package/dist/cjs/limel-date-picker.cjs.entry.js +8 -8
  29. package/dist/cjs/limel-dialog.cjs.entry.js +35 -19
  30. package/dist/cjs/limel-file.cjs.entry.js +11 -9
  31. package/dist/cjs/limel-flatpickr-adapter.cjs.entry.js +987 -669
  32. package/dist/cjs/limel-flex-container.cjs.entry.js +6 -2
  33. package/dist/cjs/limel-form.cjs.entry.js +19985 -20009
  34. package/dist/cjs/limel-grid.cjs.entry.js +2 -2
  35. package/dist/cjs/limel-header.cjs.entry.js +2 -2
  36. package/dist/cjs/limel-icon-button.cjs.entry.js +6 -6
  37. package/dist/cjs/limel-icon.cjs.entry.js +2 -2
  38. package/dist/cjs/limel-input-field.cjs.entry.js +12 -10
  39. package/dist/cjs/limel-linear-progress.cjs.entry.js +4 -4
  40. package/dist/cjs/limel-list_3.cjs.entry.js +154 -91
  41. package/dist/cjs/limel-menu-list.cjs.entry.js +87 -74
  42. package/dist/cjs/limel-menu.cjs.entry.js +6 -5
  43. package/dist/cjs/limel-picker.cjs.entry.js +6 -8
  44. package/dist/cjs/limel-popover-surface.cjs.entry.js +3 -3
  45. package/dist/cjs/limel-progress-flow-item.cjs.entry.js +2 -2
  46. package/dist/cjs/limel-progress-flow.cjs.entry.js +2 -2
  47. package/dist/cjs/limel-select.cjs.entry.js +6 -6
  48. package/dist/cjs/limel-slider.cjs.entry.js +34 -7
  49. package/dist/cjs/limel-snackbar.cjs.entry.js +79 -73
  50. package/dist/cjs/limel-spinner.cjs.entry.js +2 -2
  51. package/dist/cjs/limel-switch.cjs.entry.js +498 -202
  52. package/dist/cjs/limel-tab-bar.cjs.entry.js +269 -190
  53. package/dist/cjs/limel-tab-panel.cjs.entry.js +2 -2
  54. package/dist/cjs/limel-table.cjs.entry.js +79 -17
  55. package/dist/cjs/limel-tooltip_2.cjs.entry.js +3 -3
  56. package/dist/cjs/loader.cjs.js +3 -3
  57. package/dist/cjs/{moment-d287c0ed.js → moment-5cfac5cd.js} +94 -79
  58. package/dist/cjs/{pickBy-88b0430a.js → pickBy-3ef47bf2.js} +6 -5
  59. package/dist/cjs/{zipObject-4050a45f.js → zipObject-93a471fa.js} +1 -1
  60. package/dist/collection/collection-manifest.json +2 -2
  61. package/dist/collection/components/badge/badge.css +9 -15
  62. package/dist/collection/components/badge/badge.js +2 -2
  63. package/dist/collection/components/button/button.css +333 -145
  64. package/dist/collection/components/button-group/button-group.css +30 -5
  65. package/dist/collection/components/checkbox/checkbox.css +71 -20
  66. package/dist/collection/components/checkbox/checkbox.js +5 -4
  67. package/dist/collection/components/checkbox/checkbox.template.js +24 -20
  68. package/dist/collection/components/chip-set/chip-set.css +367 -34
  69. package/dist/collection/components/circular-progress/circular-progress.css +2 -2
  70. package/dist/collection/components/code-editor/code-editor.css +8 -13
  71. package/dist/collection/components/date-picker/flatpickr-adapter/flatpickr-adapter.css +1 -1
  72. package/dist/collection/components/dialog/dialog.css +153 -109
  73. package/dist/collection/components/dialog/dialog.js +36 -11
  74. package/dist/collection/components/file/icon-background-colors.js +2 -1
  75. package/dist/collection/components/file/icon-fill-colors.js +2 -1
  76. package/dist/collection/components/file/icons.js +1 -1
  77. package/dist/collection/components/flex-container/flex-container.js +10 -0
  78. package/dist/collection/components/form/fields/schema-field.js +0 -1
  79. package/dist/collection/components/form/form.css +5 -1
  80. package/dist/collection/components/form/form.js +34 -0
  81. package/dist/collection/components/form/form.types.js +0 -1
  82. package/dist/collection/components/form/templates/common.js +4 -1
  83. package/dist/collection/components/icon-button/icon-button.css +116 -59
  84. package/dist/collection/components/icon-button/icon-button.js +1 -0
  85. package/dist/collection/components/input-field/input-field.css +344 -29
  86. package/dist/collection/components/input-field/input-field.js +5 -3
  87. package/dist/collection/components/linear-progress/linear-progress.css +14 -2
  88. package/dist/collection/components/list/list-renderer.js +1 -4
  89. package/dist/collection/components/list/list.css +938 -93
  90. package/dist/collection/components/list/list.js +13 -6
  91. package/dist/collection/components/menu-list/menu-list-renderer.js +1 -4
  92. package/dist/collection/components/menu-list/menu-list.css +938 -93
  93. package/dist/collection/components/menu-surface/menu-surface.css +31 -7
  94. package/dist/collection/components/picker/picker.js +6 -7
  95. package/dist/collection/components/popover-surface/popover-surface.css +1 -0
  96. package/dist/collection/components/select/select.css +424 -17
  97. package/dist/collection/components/select/select.template.js +1 -1
  98. package/dist/collection/components/slider/slider.css +49 -2
  99. package/dist/collection/components/snackbar/snackbar.css +588 -301
  100. package/dist/collection/components/switch/switch.css +592 -222
  101. package/dist/collection/components/switch/switch.js +18 -12
  102. package/dist/collection/components/tab-bar/tab-bar.css +77 -48
  103. package/dist/collection/components/table/table.css +219 -165
  104. package/dist/collection/components/table/table.js +99 -15
  105. package/dist/collection/components/table/table.types.js +0 -1
  106. package/dist/collection/style/functions.scss +3 -1
  107. package/dist/collection/style/internal/lime-theme.scss +30 -31
  108. package/dist/collection/style/internal/lime-typography.scss +55 -56
  109. package/dist/esm/{_arrayIncludesWith-b5d3fd9e.js → _arrayIncludesWith-969bccda.js} +4 -3
  110. package/dist/esm/{_assignValue-08fe10bc.js → _assignValue-fb2bf80a.js} +1 -1
  111. package/dist/esm/_defineProperty-2105cb48.js +11 -0
  112. package/dist/esm/{_defineProperty-8c869077.js → _getNative-93d6bfe9.js} +1 -9
  113. package/dist/esm/checkbox.template-2f1bbc98.js +41 -0
  114. package/dist/esm/{component-89e0ce26.js → component-19eb6e2b.js} +7 -5
  115. package/dist/esm/{component-2630c3d7.js → component-288691f3.js} +367 -235
  116. package/dist/esm/{component-d682c974.js → component-410aad5a.js} +44 -4
  117. package/dist/esm/{component-429e92ee.js → component-5b4ac85a.js} +213 -143
  118. package/dist/esm/{component-834d85a1.js → component-fffa3419.js} +190 -132
  119. package/dist/esm/{dateFormatter-c9b41548.js → dateFormatter-2cad0292.js} +37 -31
  120. package/dist/esm/identity-87aa3962.js +41 -0
  121. package/dist/esm/{index-2316f345.js → index-11cd0b60.js} +27 -1
  122. package/dist/esm/{isArrayLike-dd37ba9a.js → isArrayLike-385e0f31.js} +1 -1
  123. package/dist/esm/{isEqual-4f22635f.js → isEqual-c5a636a4.js} +3 -43
  124. package/dist/esm/lime-elements.js +3 -3
  125. package/dist/esm/limel-badge.entry.js +4 -4
  126. package/dist/esm/limel-banner.entry.js +2 -2
  127. package/dist/esm/limel-button-group.entry.js +3 -3
  128. package/dist/esm/limel-button.entry.js +3 -3
  129. package/dist/esm/limel-checkbox.entry.js +136 -90
  130. package/dist/esm/limel-chip-set.entry.js +235 -191
  131. package/dist/esm/limel-circular-progress.entry.js +3 -3
  132. package/dist/esm/limel-code-editor.entry.js +51 -24
  133. package/dist/esm/limel-collapsible-section.entry.js +2 -2
  134. package/dist/esm/limel-color-picker-palette_2.entry.js +7 -6
  135. package/dist/esm/limel-color-picker.entry.js +2 -2
  136. package/dist/esm/limel-config.entry.js +2 -2
  137. package/dist/esm/limel-date-picker.entry.js +8 -8
  138. package/dist/esm/limel-dialog.entry.js +35 -19
  139. package/dist/esm/limel-file.entry.js +11 -9
  140. package/dist/esm/limel-flatpickr-adapter.entry.js +988 -670
  141. package/dist/esm/limel-flex-container.entry.js +6 -2
  142. package/dist/esm/limel-form.entry.js +19966 -19990
  143. package/dist/esm/limel-grid.entry.js +2 -2
  144. package/dist/esm/limel-header.entry.js +2 -2
  145. package/dist/esm/limel-icon-button.entry.js +6 -6
  146. package/dist/esm/limel-icon.entry.js +2 -2
  147. package/dist/esm/limel-input-field.entry.js +12 -10
  148. package/dist/esm/limel-linear-progress.entry.js +4 -4
  149. package/dist/esm/limel-list_3.entry.js +154 -91
  150. package/dist/esm/limel-menu-list.entry.js +87 -74
  151. package/dist/esm/limel-menu.entry.js +6 -5
  152. package/dist/esm/limel-picker.entry.js +6 -8
  153. package/dist/esm/limel-popover-surface.entry.js +3 -3
  154. package/dist/esm/limel-progress-flow-item.entry.js +2 -2
  155. package/dist/esm/limel-progress-flow.entry.js +2 -2
  156. package/dist/esm/limel-select.entry.js +6 -6
  157. package/dist/esm/limel-slider.entry.js +34 -7
  158. package/dist/esm/limel-snackbar.entry.js +79 -73
  159. package/dist/esm/limel-spinner.entry.js +2 -2
  160. package/dist/esm/limel-switch.entry.js +498 -202
  161. package/dist/esm/limel-tab-bar.entry.js +269 -190
  162. package/dist/esm/limel-tab-panel.entry.js +2 -2
  163. package/dist/esm/limel-table.entry.js +80 -18
  164. package/dist/esm/limel-tooltip_2.entry.js +3 -3
  165. package/dist/esm/loader.js +3 -3
  166. package/dist/esm/{moment-8dadd938.js → moment-367e51c5.js} +94 -79
  167. package/dist/esm/{pickBy-8a849e46.js → pickBy-d359eb12.js} +4 -3
  168. package/dist/esm/polyfills/css-shim.js +1 -1
  169. package/dist/esm/{zipObject-22e88ce9.js → zipObject-2bb1968e.js} +1 -1
  170. package/dist/lime-elements/lime-elements.esm.js +1 -1
  171. package/dist/lime-elements/p-101af376.entry.js +1 -0
  172. package/dist/lime-elements/p-1a9a961a.entry.js +11 -0
  173. package/dist/lime-elements/p-1c284626.js +73 -0
  174. package/dist/lime-elements/p-1ede893b.js +1 -0
  175. package/dist/lime-elements/p-2639edf9.entry.js +73 -0
  176. package/dist/lime-elements/p-2754e134.entry.js +1 -0
  177. package/dist/lime-elements/p-2da6e2a3.entry.js +1 -0
  178. package/dist/lime-elements/p-36ecbd03.entry.js +1 -0
  179. package/dist/lime-elements/p-3af5f9ad.js +3 -0
  180. package/dist/lime-elements/p-404e1465.entry.js +1 -0
  181. package/dist/lime-elements/p-42b67933.entry.js +1 -0
  182. package/dist/lime-elements/p-440454ed.entry.js +1 -0
  183. package/dist/lime-elements/{p-076bd4dc.js → p-48d4ef20.js} +3 -3
  184. package/dist/lime-elements/p-4c3358cb.js +1 -0
  185. package/dist/lime-elements/p-4d5a874a.entry.js +1 -0
  186. package/dist/lime-elements/p-53e01330.entry.js +1 -0
  187. package/dist/lime-elements/p-5908c21d.entry.js +1 -0
  188. package/dist/lime-elements/p-5fdb83c9.js +1 -0
  189. package/dist/lime-elements/p-63e25a0a.entry.js +1 -0
  190. package/dist/lime-elements/p-669626e5.js +1 -0
  191. package/dist/lime-elements/p-6966b5df.entry.js +1 -0
  192. package/dist/lime-elements/p-6e7809a6.entry.js +1 -0
  193. package/dist/lime-elements/p-705334c1.entry.js +1 -0
  194. package/dist/lime-elements/p-71efe2ca.entry.js +37 -0
  195. package/dist/lime-elements/p-7cda574b.js +1 -0
  196. package/dist/lime-elements/p-83ea517b.entry.js +1 -0
  197. package/dist/lime-elements/p-84f933f7.entry.js +16 -0
  198. package/dist/lime-elements/p-8827628d.entry.js +131 -0
  199. package/dist/lime-elements/{p-8ad5e143.entry.js → p-94899019.entry.js} +1 -1
  200. package/dist/lime-elements/p-95f275ab.entry.js +1 -0
  201. package/dist/lime-elements/p-97d6c4a6.entry.js +1 -0
  202. package/dist/lime-elements/{p-7f43b0c4.js → p-9acf7b5d.js} +1 -1
  203. package/dist/lime-elements/p-a465084b.entry.js +82 -0
  204. package/dist/lime-elements/p-a5af84a7.entry.js +1 -0
  205. package/dist/lime-elements/p-ad8cb388.js +1 -0
  206. package/dist/lime-elements/p-ade76f1d.js +1 -0
  207. package/dist/lime-elements/p-af0ec482.entry.js +16 -0
  208. package/dist/lime-elements/{p-090bc949.js → p-b28128d2.js} +1 -1
  209. package/dist/lime-elements/p-b91dc1ef.entry.js +1 -0
  210. package/dist/lime-elements/p-b95e80c9.entry.js +1 -0
  211. package/dist/lime-elements/p-bd8c9384.entry.js +1 -0
  212. package/dist/lime-elements/p-c7953a05.entry.js +82 -0
  213. package/dist/lime-elements/p-c80acfb2.entry.js +59 -0
  214. package/dist/lime-elements/p-cbc43682.js +81 -0
  215. package/dist/lime-elements/{p-ace9affc.js → p-d0a7de87.js} +2 -2
  216. package/dist/lime-elements/p-d1ee4501.entry.js +37 -0
  217. package/dist/lime-elements/p-d74fa89e.entry.js +1 -0
  218. package/dist/lime-elements/{p-e1928c0e.js → p-d76f896d.js} +1 -1
  219. package/dist/lime-elements/p-dfba92de.js +126 -0
  220. package/dist/lime-elements/p-dfbe015e.entry.js +1 -0
  221. package/dist/lime-elements/p-e80dd2ff.entry.js +1 -0
  222. package/dist/lime-elements/p-e83dddcd.entry.js +126 -0
  223. package/dist/lime-elements/p-e98d76e8.entry.js +59 -0
  224. package/dist/lime-elements/{p-92146da6.js → p-e9a95b8f.js} +1 -1
  225. package/dist/lime-elements/p-ed65468d.entry.js +1 -0
  226. package/dist/lime-elements/p-f0c9dadd.entry.js +1 -0
  227. package/dist/lime-elements/p-f9bfbeb3.entry.js +82 -0
  228. package/dist/lime-elements/p-fa607ed3.js +1 -0
  229. package/dist/lime-elements/style/functions.scss +3 -1
  230. package/dist/lime-elements/style/internal/lime-theme.scss +30 -31
  231. package/dist/lime-elements/style/internal/lime-typography.scss +55 -56
  232. package/dist/types/components/badge/badge.d.ts +1 -1
  233. package/dist/types/components/checkbox/checkbox.d.ts +3 -2
  234. package/dist/types/components/checkbox/checkbox.template.d.ts +1 -0
  235. package/dist/types/components/dialog/dialog.d.ts +11 -5
  236. package/dist/types/components/dialog/dialog.types.d.ts +4 -0
  237. package/dist/types/components/flex-container/flex-container.d.ts +7 -0
  238. package/dist/types/components/form/fields/array-field.d.ts +0 -1
  239. package/dist/types/components/form/fields/object-field.d.ts +2 -2
  240. package/dist/types/components/form/form.d.ts +8 -1
  241. package/dist/types/components/form/form.types.d.ts +6 -0
  242. package/dist/types/components/picker/picker.d.ts +2 -1
  243. package/dist/types/components/switch/switch.d.ts +2 -2
  244. package/dist/types/components/table/table.d.ts +10 -1
  245. package/dist/types/components/table/table.types.d.ts +13 -0
  246. package/dist/types/components.d.ts +23 -7
  247. package/dist/types/stencil-public-runtime.d.ts +6 -4
  248. package/package.json +31 -44
  249. package/dist/cjs/checkbox.template-50eb8b76.js +0 -39
  250. package/dist/esm/checkbox.template-50f7c07b.js +0 -37
  251. package/dist/lime-elements/p-041ae00c.entry.js +0 -1
  252. package/dist/lime-elements/p-0ce9165f.entry.js +0 -1
  253. package/dist/lime-elements/p-0fd208f3.entry.js +0 -82
  254. package/dist/lime-elements/p-143705b1.entry.js +0 -1
  255. package/dist/lime-elements/p-1876a96a.entry.js +0 -1
  256. package/dist/lime-elements/p-1a64b531.js +0 -1
  257. package/dist/lime-elements/p-1fb5340d.entry.js +0 -1
  258. package/dist/lime-elements/p-250f55be.js +0 -1
  259. package/dist/lime-elements/p-29f054cc.entry.js +0 -37
  260. package/dist/lime-elements/p-31fecf5d.entry.js +0 -1
  261. package/dist/lime-elements/p-34c7872e.entry.js +0 -1
  262. package/dist/lime-elements/p-379955f4.js +0 -1
  263. package/dist/lime-elements/p-3ae6bb75.entry.js +0 -82
  264. package/dist/lime-elements/p-3ae6dfba.entry.js +0 -73
  265. package/dist/lime-elements/p-426d11b4.js +0 -1
  266. package/dist/lime-elements/p-440084ea.js +0 -1
  267. package/dist/lime-elements/p-468e940e.entry.js +0 -16
  268. package/dist/lime-elements/p-4932c029.entry.js +0 -1
  269. package/dist/lime-elements/p-4b5af81b.entry.js +0 -1
  270. package/dist/lime-elements/p-510bb5a4.entry.js +0 -1
  271. package/dist/lime-elements/p-58cbe99d.entry.js +0 -1
  272. package/dist/lime-elements/p-597cbe05.entry.js +0 -1
  273. package/dist/lime-elements/p-6003f817.entry.js +0 -1
  274. package/dist/lime-elements/p-668795a7.js +0 -73
  275. package/dist/lime-elements/p-714fde78.entry.js +0 -1
  276. package/dist/lime-elements/p-7476efe0.entry.js +0 -1
  277. package/dist/lime-elements/p-887d5bda.entry.js +0 -1
  278. package/dist/lime-elements/p-8a2c1038.entry.js +0 -16
  279. package/dist/lime-elements/p-902347b9.js +0 -81
  280. package/dist/lime-elements/p-90c6fa15.js +0 -126
  281. package/dist/lime-elements/p-90f3e17c.entry.js +0 -37
  282. package/dist/lime-elements/p-a2cf74c1.entry.js +0 -1
  283. package/dist/lime-elements/p-a397bab7.js +0 -3
  284. package/dist/lime-elements/p-a4c532a7.entry.js +0 -1
  285. package/dist/lime-elements/p-be56ffab.entry.js +0 -1
  286. package/dist/lime-elements/p-c306c953.entry.js +0 -1
  287. package/dist/lime-elements/p-c35874db.entry.js +0 -1
  288. package/dist/lime-elements/p-c8c8a946.entry.js +0 -59
  289. package/dist/lime-elements/p-ca664c9f.entry.js +0 -1
  290. package/dist/lime-elements/p-d2c74396.entry.js +0 -1
  291. package/dist/lime-elements/p-d48ad9f7.entry.js +0 -126
  292. package/dist/lime-elements/p-d93a3b07.entry.js +0 -16
  293. package/dist/lime-elements/p-df8faeb4.entry.js +0 -59
  294. package/dist/lime-elements/p-dfe0a58b.entry.js +0 -1
  295. package/dist/lime-elements/p-e275f502.entry.js +0 -37
  296. package/dist/lime-elements/p-e881e98d.entry.js +0 -1
  297. package/dist/lime-elements/p-f2c706b8.entry.js +0 -131
  298. package/dist/lime-elements/p-f83213b8.js +0 -1
  299. package/dist/lime-elements/p-fc30b8e3.entry.js +0 -1
@@ -0,0 +1,37 @@
1
+ import{r,h as e,g as n}from"./p-e9a95b8f.js";import{M as a,a as i}from"./p-48d4ef20.js";import{g as t}from"./p-9faad6eb.js";
2
+ /*! *****************************************************************************
3
+ Copyright (c) Microsoft Corporation.
4
+
5
+ Permission to use, copy, modify, and/or distribute this software for any
6
+ purpose with or without fee is hereby granted.
7
+
8
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
9
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
10
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
11
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
+ PERFORMANCE OF THIS SOFTWARE.
15
+ ***************************************************************************** */var s=function(r,e){return(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,e){r.__proto__=e}||function(r,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n])})(r,e)};function o(r,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=r}s(r,e),r.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var c=function(){return(c=Object.assign||function(r){for(var e,n=1,a=arguments.length;n<a;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i]);return r}).apply(this,arguments)},l={CLOSED_CLASS:"mdc-linear-progress--closed",CLOSED_ANIMATION_OFF_CLASS:"mdc-linear-progress--closed-animation-off",INDETERMINATE_CLASS:"mdc-linear-progress--indeterminate",REVERSED_CLASS:"mdc-linear-progress--reversed",ANIMATION_READY_CLASS:"mdc-linear-progress--animation-ready"},m={ARIA_HIDDEN:"aria-hidden",ARIA_VALUEMAX:"aria-valuemax",ARIA_VALUEMIN:"aria-valuemin",ARIA_VALUENOW:"aria-valuenow",BUFFER_BAR_SELECTOR:".mdc-linear-progress__buffer-bar",FLEX_BASIS:"flex-basis",PRIMARY_BAR_SELECTOR:".mdc-linear-progress__primary-bar"},d=function(r){function e(n){var a=r.call(this,c(c({},e.defaultAdapter),n))||this;return a.observer=null,a}return o(e,r),Object.defineProperty(e,"cssClasses",{get:function(){return l},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return m},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},attachResizeObserver:function(){return null},forceLayout:function(){},getWidth:function(){return 0},hasClass:function(){return!1},setBufferBarStyle:function(){return null},setPrimaryBarStyle:function(){return null},setStyle:function(){},removeAttribute:function(){},removeClass:function(){},setAttribute:function(){}}},enumerable:!1,configurable:!0}),e.prototype.init=function(){var r=this;this.determinate=!this.adapter.hasClass(l.INDETERMINATE_CLASS),this.adapter.addClass(l.ANIMATION_READY_CLASS),this.progress=0,this.buffer=1,this.observer=this.adapter.attachResizeObserver((function(e){var n,a;if(!r.determinate)try{for(var i=function(r){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&r[e],a=0;if(n)return n.call(r);if(r&&"number"==typeof r.length)return{next:function(){return r&&a>=r.length&&(r=void 0),{value:r&&r[a++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}
16
+ /**
17
+ * @license
18
+ * Copyright 2017 Google Inc.
19
+ *
20
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
21
+ * of this software and associated documentation files (the "Software"), to deal
22
+ * in the Software without restriction, including without limitation the rights
23
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
24
+ * copies of the Software, and to permit persons to whom the Software is
25
+ * furnished to do so, subject to the following conditions:
26
+ *
27
+ * The above copyright notice and this permission notice shall be included in
28
+ * all copies or substantial portions of the Software.
29
+ *
30
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
31
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
32
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
33
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
34
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
35
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
36
+ * THE SOFTWARE.
37
+ */(e),t=i.next();!t.done;t=i.next()){var s=t.value;s.contentRect&&r.calculateAndSetDimensions(s.contentRect.width)}}catch(r){n={error:r}}finally{try{t&&!t.done&&(a=i.return)&&a.call(i)}finally{if(n)throw n.error}}})),!this.determinate&&this.observer&&this.calculateAndSetDimensions(this.adapter.getWidth())},e.prototype.setDeterminate=function(r){if(this.determinate=r,this.determinate)return this.adapter.removeClass(l.INDETERMINATE_CLASS),this.adapter.setAttribute(m.ARIA_VALUENOW,this.progress.toString()),this.adapter.setAttribute(m.ARIA_VALUEMAX,"1"),this.adapter.setAttribute(m.ARIA_VALUEMIN,"0"),this.setPrimaryBarProgress(this.progress),void this.setBufferBarProgress(this.buffer);this.observer&&this.calculateAndSetDimensions(this.adapter.getWidth()),this.adapter.addClass(l.INDETERMINATE_CLASS),this.adapter.removeAttribute(m.ARIA_VALUENOW),this.adapter.removeAttribute(m.ARIA_VALUEMAX),this.adapter.removeAttribute(m.ARIA_VALUEMIN),this.setPrimaryBarProgress(1),this.setBufferBarProgress(1)},e.prototype.isDeterminate=function(){return this.determinate},e.prototype.setProgress=function(r){this.progress=r,this.determinate&&(this.setPrimaryBarProgress(r),this.adapter.setAttribute(m.ARIA_VALUENOW,r.toString()))},e.prototype.getProgress=function(){return this.progress},e.prototype.setBuffer=function(r){this.buffer=r,this.determinate&&this.setBufferBarProgress(r)},e.prototype.getBuffer=function(){return this.buffer},e.prototype.open=function(){this.adapter.removeClass(l.CLOSED_CLASS),this.adapter.removeClass(l.CLOSED_ANIMATION_OFF_CLASS),this.adapter.removeAttribute(m.ARIA_HIDDEN)},e.prototype.close=function(){this.adapter.addClass(l.CLOSED_CLASS),this.adapter.setAttribute(m.ARIA_HIDDEN,"true")},e.prototype.isClosed=function(){return this.adapter.hasClass(l.CLOSED_CLASS)},e.prototype.handleTransitionEnd=function(){this.adapter.hasClass(l.CLOSED_CLASS)&&this.adapter.addClass(l.CLOSED_ANIMATION_OFF_CLASS)},e.prototype.destroy=function(){r.prototype.destroy.call(this),this.observer&&this.observer.disconnect()},e.prototype.restartAnimation=function(){this.adapter.removeClass(l.ANIMATION_READY_CLASS),this.adapter.forceLayout(),this.adapter.addClass(l.ANIMATION_READY_CLASS)},e.prototype.setPrimaryBarProgress=function(r){var e="scaleX("+r+")",n="undefined"!=typeof window?t(window,"transform"):"transform";this.adapter.setPrimaryBarStyle(n,e)},e.prototype.setBufferBarProgress=function(r){this.adapter.setBufferBarStyle(m.FLEX_BASIS,100*r+"%")},e.prototype.calculateAndSetDimensions=function(r){var e=.8367142*r,n=2.00611057*r,a=.37651913*r,i=.84386165*r,t=1.60277782*r;this.adapter.setStyle("--mdc-linear-progress-primary-half",e+"px"),this.adapter.setStyle("--mdc-linear-progress-primary-half-neg",-e+"px"),this.adapter.setStyle("--mdc-linear-progress-primary-full",n+"px"),this.adapter.setStyle("--mdc-linear-progress-primary-full-neg",-n+"px"),this.adapter.setStyle("--mdc-linear-progress-secondary-quarter",a+"px"),this.adapter.setStyle("--mdc-linear-progress-secondary-quarter-neg",-a+"px"),this.adapter.setStyle("--mdc-linear-progress-secondary-half",i+"px"),this.adapter.setStyle("--mdc-linear-progress-secondary-half-neg",-i+"px"),this.adapter.setStyle("--mdc-linear-progress-secondary-full",t+"px"),this.adapter.setStyle("--mdc-linear-progress-secondary-full-neg",-t+"px"),this.restartAnimation()},e}(a),f=function(r){function e(){return null!==r&&r.apply(this,arguments)||this}return o(e,r),e.attachTo=function(r){return new e(r)},Object.defineProperty(e.prototype,"determinate",{set:function(r){this.foundation.setDeterminate(r)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"progress",{set:function(r){this.foundation.setProgress(r)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"buffer",{set:function(r){this.foundation.setBuffer(r)},enumerable:!1,configurable:!0}),e.prototype.open=function(){this.foundation.open()},e.prototype.close=function(){this.foundation.close()},e.prototype.initialSyncWithDOM=function(){var r=this;this.root.addEventListener("transitionend",(function(){r.foundation.handleTransitionEnd()}))},e.prototype.getDefaultFoundation=function(){var r=this;return new d({addClass:function(e){r.root.classList.add(e)},forceLayout:function(){r.root.getBoundingClientRect()},setBufferBarStyle:function(e,n){var a=r.root.querySelector(d.strings.BUFFER_BAR_SELECTOR);a&&a.style.setProperty(e,n)},setPrimaryBarStyle:function(e,n){var a=r.root.querySelector(d.strings.PRIMARY_BAR_SELECTOR);a&&a.style.setProperty(e,n)},hasClass:function(e){return r.root.classList.contains(e)},removeAttribute:function(e){r.root.removeAttribute(e)},removeClass:function(e){r.root.classList.remove(e)},setAttribute:function(e,n){r.root.setAttribute(e,n)},setStyle:function(e,n){r.root.style.setProperty(e,n)},attachResizeObserver:function(e){var n=window.ResizeObserver;if(n){var a=new n(e);return a.observe(r.root),a}return null},getWidth:function(){return r.root.offsetWidth}})},e}(i);const g=class{constructor(e){r(this,e),this.value=0,this.indeterminate=!1}connectedCallback(){this.initialize()}componentDidLoad(){this.initialize()}initialize(){const r=this.host.shadowRoot.querySelector(".mdc-linear-progress");r&&(this.mdcLinearProgress=new f(r),this.mdcLinearProgress.progress=this.value)}disconnectedCallback(){this.mdcLinearProgress&&this.mdcLinearProgress.destroy()}render(){return e("div",{role:"progressbar",class:{"mdc-linear-progress":!0,"mdc-linear-progress--indeterminate":this.indeterminate},"aria-label":"Progress Bar","aria-valuemin":"0","aria-valuemax":"1","aria-valuenow":this.value},e("div",{class:"mdc-linear-progress__buffer"},e("div",{class:"mdc-linear-progress__buffer-bar"})),e("div",{class:"mdc-linear-progress__bar mdc-linear-progress__primary-bar"},e("span",{class:"mdc-linear-progress__bar-inner"})),e("div",{class:"mdc-linear-progress__bar mdc-linear-progress__secondary-bar"},e("span",{class:"mdc-linear-progress__bar-inner"})))}watchValue(r){this.mdcLinearProgress&&(this.mdcLinearProgress.progress=r)}get host(){return n(this)}static get watchers(){return{value:["watchValue"]}}};g.style=":host{--mdc-theme-primary:var(\n --lime-primary-color,\n rgb(var(--color-teal-default))\n );--mdc-theme-secondary:var(\n --lime-secondary-color,\n rgb(var(--contrast-1100))\n );--mdc-theme-on-primary:var(\n --lime-on-primary-color,\n rgb(var(--contrast-100))\n );--mdc-theme-on-secondary:var(\n --lime-on-secondary-color,\n rgb(var(--contrast-100))\n );--mdc-theme-text-disabled-on-background:var(\n --lime-text-disabled-on-background-color,\n rgba(var(--contrast-1700), 0.38)\n );--mdc-theme-text-primary-on-background:var(\n --lime-text-primary-on-background-color,\n rgba(var(--contrast-1700), 0.87)\n );--mdc-theme-text-secondary-on-background:var(\n --lime-text-secondary-on-background-color,\n rgba(var(--contrast-1700), 0.54)\n );--lime-error-text-color:rgb(var(--color-red-darker));--mdc-theme-surface:var(\n --lime-surface-background-color,\n rgb(var(--contrast-100))\n );--mdc-theme-on-surface:var(\n --lime-on-surface-color,\n var(--lime-text-primary-on-background-color)\n )}@keyframes mdc-linear-progress-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%);transform:translateX(var(--mdc-linear-progress-primary-half, 83.67142%))}100%{transform:translateX(200.611057%);transform:translateX(var(--mdc-linear-progress-primary-full, 200.611057%))}}@keyframes mdc-linear-progress-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%);transform:translateX(var(--mdc-linear-progress-secondary-quarter, 37.651913%))}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%);transform:translateX(var(--mdc-linear-progress-secondary-half, 84.386165%))}100%{transform:translateX(160.277782%);transform:translateX(var(--mdc-linear-progress-secondary-full, 160.277782%))}}@keyframes mdc-linear-progress-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.205028, 0.057051, 0.57661, 0.453971);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.152313, 0.196432, 0.648374, 1.004315);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.257759, -0.003163, 0.211762, 1.38179);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-buffering{from{transform:rotate(180deg) translateX(-10px)}}@keyframes mdc-linear-progress-primary-indeterminate-translate-reverse{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(-83.67142%);transform:translateX(var(--mdc-linear-progress-primary-half-neg, -83.67142%))}100%{transform:translateX(-200.611057%);transform:translateX(var(--mdc-linear-progress-primary-full-neg, -200.611057%))}}@keyframes mdc-linear-progress-secondary-indeterminate-translate-reverse{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(-37.651913%);transform:translateX(var(--mdc-linear-progress-secondary-quarter-neg, -37.651913%))}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(-84.386165%);transform:translateX(var(--mdc-linear-progress-secondary-half-neg, -84.386165%))}100%{transform:translateX(-160.277782%);transform:translateX(var(--mdc-linear-progress-secondary-full-neg, -160.277782%))}}@keyframes mdc-linear-progress-buffering-reverse{from{transform:translateX(-10px)}}.mdc-linear-progress{position:relative;width:100%;height:4px;transform:translateZ(0);outline:1px solid transparent;overflow:hidden;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-linear-progress__bar{position:absolute;width:100%;height:100%;animation:none;transform-origin:top left;transition:transform 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-linear-progress__bar-inner{display:inline-block;position:absolute;width:100%;animation:none;border-top:4px solid}.mdc-linear-progress__buffer{display:flex;position:absolute;width:100%;height:100%}.mdc-linear-progress__buffer-dots{background-repeat:repeat-x;background-size:10px 4px;flex:auto;transform:rotate(180deg);animation:mdc-linear-progress-buffering 250ms infinite linear}.mdc-linear-progress__buffer-bar{flex:0 1 100%;transition:flex-basis 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-linear-progress__primary-bar{transform:scaleX(0)}.mdc-linear-progress__secondary-bar{display:none}.mdc-linear-progress--indeterminate .mdc-linear-progress__bar{transition:none}.mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{left:-145.166611%}.mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{left:-54.888891%;display:block}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation:mdc-linear-progress-primary-indeterminate-translate 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-primary-indeterminate-scale 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation:mdc-linear-progress-secondary-indeterminate-translate 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-secondary-indeterminate-scale 2s infinite linear}[dir=rtl] .mdc-linear-progress,.mdc-linear-progress[dir=rtl]{}[dir=rtl] .mdc-linear-progress:not([dir=ltr]) .mdc-linear-progress__bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]) .mdc-linear-progress__bar{right:0;-webkit-transform-origin:center right;transform-origin:center right}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation-name:mdc-linear-progress-primary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation-name:mdc-linear-progress-secondary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress:not([dir=ltr]) .mdc-linear-progress__buffer-dots,.mdc-linear-progress[dir=rtl]:not([dir=ltr]) .mdc-linear-progress__buffer-dots{animation:mdc-linear-progress-buffering-reverse 250ms infinite linear;transform:rotate(0)}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{right:-145.166611%;left:auto}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{right:-54.888891%;left:auto}.mdc-linear-progress--closed{opacity:0}.mdc-linear-progress--closed-animation-off .mdc-linear-progress__buffer-dots{animation:none}.mdc-linear-progress--closed-animation-off.mdc-linear-progress--indeterminate .mdc-linear-progress__bar,.mdc-linear-progress--closed-animation-off.mdc-linear-progress--indeterminate .mdc-linear-progress__bar .mdc-linear-progress__bar-inner{animation:none}.mdc-linear-progress__bar-inner{border-color:#26a69a;border-color:var(--mdc-theme-primary, #26a69a)}.mdc-linear-progress__buffer-dots{background-image:url(\"data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='none slice'%3E%3Ccircle cx='1' cy='1' r='1' fill='%23e6e6e6'/%3E%3C/svg%3E\")}.mdc-linear-progress__buffer-bar{background-color:#e6e6e6}.mdc-linear-progress{text-align:left}.mdc-linear-progress__buffer-dots{background-image:url(\"data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='none slice'%3E%3Ccircle cx='1' cy='1' r='1' fill='var(--background-color, rgba(var(--contrast-800), 0.5))'/%3E%3C/svg%3E\")}.mdc-linear-progress__buffer-bar{background-color:var(--background-color, rgba(var(--contrast-800), 0.5))}";export{g as limel_linear_progress}
@@ -0,0 +1 @@
1
+ import{a as r}from"./p-b28128d2.js";function o(o,n){return function(r,o,n){for(var t=-1,a=r.length,f=o.length,i={};++t<a;)n(i,r[t],t<f?o[t]:void 0);return i}(o||[],n||[],r)}export{o as z}
@@ -0,0 +1 @@
1
+ import{r as e,c as t,h as r,g as s}from"./p-e9a95b8f.js";const o=class{constructor(r){e(this,r),this.interact=t(this,"interact",7),this.item=null,this.disabled=!1,this.readonly=!1,this.handleClick=()=>{this.interact.emit()}}render(){var e;if(this.item)return[r("button",{tabindex:"0",title:this.getToolTipText(),type:"button",class:{step:!0,selected:null===(e=this.item)||void 0===e?void 0:e.selected,disabled:this.isDisabled(),readonly:this.readonly},onClick:this.handleClick,disabled:this.isDisabled()},this.renderIcon(),r("span",{class:"text"},this.item.text),this.renderDivider()),this.renderSecondaryText()]}isDisabled(){var e;return(null===(e=this.item)||void 0===e?void 0:e.disabled)||this.readonly||this.disabled}getToolTipText(){return this.item.secondaryText?[this.item.text,this.item.secondaryText].join(" · "):this.item.text}renderSecondaryText(){var e;if(null===(e=this.item)||void 0===e?void 0:e.secondaryText)return r("div",{class:"secondary-text"},this.item.secondaryText)}renderIcon(){if(this.item.icon)return r("limel-icon",{name:this.item.icon,size:"small",class:"icon"})}renderDivider(){if(!this.item.isOffProgress)return r("div",{class:"divider"})}get element(){return s(this)}};o.style='.flow-item{--step-background:var(\n --progress-flow-step-background-color,\n rgb(var(--contrast-600))\n );--step-background--selected:var(\n --progress-flow-step-background-color--selected,\n var(--mdc-theme-primary)\n );--step-background--passed:var(\n --progress-flow-step-background-color--passed,\n var(--step-background--selected)\n );--step-text:var(\n --progress-flow-step-text-color,\n rgb(var(--contrast-1200))\n );--step-text--selected:var(\n --progress-flow-step-text-color--selected,\n var(--mdc-theme-on-primary)\n );--step-text--passed:var(\n --progress-flow-step-text-color--passed,\n var(--step-text--selected)\n );--step-divider-color:var(\n --progress-flow-step-divider-color,\n rgb(var(--contrast-100))\n );position:relative;width:100%;display:flex;flex-direction:column;align-items:stretch}.flow-item:not(.off-progress-item,.last) .divider:after{content:""}.flow-item.off-progress-item{padding-left:0.5rem}.flow-item.first-off-progress-item{padding-left:1rem}.step{transition:background-color 0.2s ease, box-shadow 0.2s ease;display:flex;justify-content:center;align-items:center;position:relative;width:100%;height:var(--step-height);border:none;font-size:0.875rem}.step.disabled{opacity:0.75;cursor:not-allowed}.step.disabled.readonly{opacity:1;cursor:default}.step:focus{outline:none}.step:focus-visible{box-shadow:var(--shadow-depth-8-focused)}.flow-item:not(.off-progress-item,.first) .step{padding-left:calc(var(--step-height) / 2)}.flow-item:not(.selected) .step:not(.disabled){cursor:pointer}.flow-item:not(.selected) .step:not(.disabled):hover{box-shadow:var(--button-shadow-normal)}.flow-item:not(.selected) .step:not(.disabled):active{box-shadow:var(--button-shadow-pressed)}.off-progress-item .step{border-radius:0.25rem;padding:0 0.75rem}.off-progress-item .step .icon{margin-left:0}.flow-item.first .step{border-top-left-radius:var(--step-height);border-bottom-left-radius:var(--step-height);padding-left:1.25rem}.flow-item.last .step{border-top-right-radius:var(--step-height);border-bottom-right-radius:var(--step-height);padding-right:1.25rem}.divider{display:flex;align-items:center;justify-content:center;width:var(--step-height);height:var(--step-height);position:absolute;z-index:1;right:calc(var(--step-height) / 2 * -1);overflow:hidden}.divider:after{position:absolute;display:block;box-sizing:border-box;transition:background-color 0.2s ease;width:100%;height:100%;right:calc(var(--step-height) / 5);transform:rotate(45deg);border-style:solid;border-width:0.125rem 0.125rem 0 0;border-radius:0 0.5rem 0 0;border-color:var(--step-divider-color)}.flow-item.last .divider{width:0}.text,.secondary-text{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:var(--max-text-width);z-index:2}.secondary-text{font-size:0.75rem;margin:auto;padding-left:calc(var(--step-height) / 2)}.icon{margin:0 0.5rem 0 0.25rem;z-index:2}.step:after{pointer-events:none;box-sizing:border-box;z-index:2;position:absolute;right:var(--selected-indicator-right);background-color:var(--step-divider-color);width:0.375rem;height:0.375rem;border-radius:50%;opacity:0.7}.last .step:after{right:0.5rem}.flow-item:not(.off-progress-item) .step.selected:after{content:""}.step{color:var(--step-text);background-color:var(--step-background)}.step .icon{color:var(--progress-flow-icon-color, var(--step-text))}.flow-item.selected .step{color:var(--step-text--selected);background-color:var(--step-background--selected)}.flow-item.selected .step .divider:after{background-color:var(--step-background--selected)}.flow-item.selected .step .icon{color:var(--step-text--selected)}.flow-item.passed .step{color:var(--step-text--passed);background-color:var(--step-background--passed)}.flow-item.passed .step .divider:after{background-color:var(--step-background--passed)}.flow-item.passed .step .icon{color:var(--step-text--passed)}.divider:after{border-color:var(--step-divider-color);background-color:var(--step-background)}';export{o as limel_progress_flow_item}
@@ -0,0 +1,16 @@
1
+ import{r as t,c as i,h as s,g as n}from"./p-e9a95b8f.js";import{i as e}from"./p-0534b23b.js";import{T as h,b as r,E as o,c as l,d as a,a as c,A as u,e as d,f as m,g as f}from"./p-216ffe20.js";import{c as p}from"./p-6c094f3f.js";function v(t){return"function"==typeof t?t():t}function y(){var t={};return t.promise=new Promise((function(i,s){t.resolve=i,t.reject=s})),t}function g(t){var i=null,s=null,n=new Promise((function(t,n){i=t,s=n}));return t&&t.then((function(t){i&&i(t)}),(function(t){s&&s(t)})),{promise:n,resolve:function(t){i&&i(t)},reject:function(t){s&&s(t)},cancel:function(){i=null,s=null}}}
2
+ /*! *****************************************************************************
3
+ Copyright (c) Microsoft Corporation. All rights reserved.
4
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use
5
+ this file except in compliance with the License. You may obtain a copy of the
6
+ License at http://www.apache.org/licenses/LICENSE-2.0
7
+
8
+ THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
9
+ KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
10
+ WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
11
+ MERCHANTABLITY OR NON-INFRINGEMENT.
12
+
13
+ See the Apache Version 2.0 License for specific language governing permissions
14
+ and limitations under the License.
15
+ ***************************************************************************** */
16
+ var b=function(){return(b=Object.assign||function(t){for(var i,s=1,n=arguments.length;s<n;s++)for(var e in i=arguments[s])Object.prototype.hasOwnProperty.call(i,e)&&(t[e]=i[e]);return t}).apply(this,arguments)},w={key:function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return null},onlyResolvesLast:!0},C=function(){function t(t){this.config=t,this.debounceSingleton=null,this.debounceCache={}}return t.prototype._createDebouncedFunction=function(){var t,i,s=function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=void 0,e=void 0,h=void 0,r=[];return function(){var l=v(i),a=(new Date).getTime(),c=!n||a-n>l;n=a;for(var u=arguments.length,d=Array(u),m=0;m<u;m++)d[m]=arguments[m];if(c&&s.leading)return s.accumulate?Promise.resolve(t.call(this,[d])).then((function(t){return t[0]})):Promise.resolve(t.call.apply(t,[this].concat(d)));if(e?clearTimeout(h):e=y(),r.push(d),h=setTimeout(o.bind(this),l),s.accumulate){var f=r.length-1;return e.promise.then((function(t){return t[f]}))}return e.promise};function o(){var i=e;clearTimeout(h),Promise.resolve(s.accumulate?t.call(this,r):t.apply(this,r[r.length-1])).then(i.resolve,i.reject),r=[],e=null}}(this.config.func,this.config.wait,this.config.options);return this.config.options.onlyResolvesLast&&(t=s,i=null,s=function(){for(var s=[],n=0;n<arguments.length;n++)s[n]=arguments[n];i&&i();var e=g(t.apply(void 0,s));return i=e.cancel,e.promise}),{func:s}},t.prototype.getDebouncedFunction=function(t){var i,s=(i=this.config.options).key.apply(i,t);return null==s?(this.debounceSingleton||(this.debounceSingleton=this._createDebouncedFunction()),this.debounceSingleton):(this.debounceCache[s]||(this.debounceCache[s]=this._createDebouncedFunction()),this.debounceCache[s])},t}();const D=class{constructor(s){t(this,s),this.change=i(this,"change",7),this.interact=i(this,"interact",7),this.action=i(this,"action",7),this.disabled=!1,this.readonly=!1,this.required=!1,this.multiple=!1,this.delimiter=null,this.actions=[],this.actionPosition="bottom",this.actionScrollBehavior="sticky",this.badgeIcons=!0,this.textValue="",this.loading=!1,this.chips=[],this.chipSetEditMode=!1,this.handleTextInput=this.handleTextInput.bind(this),this.handleInputKeyDown=this.handleInputKeyDown.bind(this),this.handleDropdownKeyDown=this.handleDropdownKeyDown.bind(this),this.handleInputFieldFocus=this.handleInputFieldFocus.bind(this),this.handleChange=this.handleChange.bind(this),this.handleInteract=this.handleInteract.bind(this),this.handleListChange=this.handleListChange.bind(this),this.handleActionListChange=this.handleActionListChange.bind(this),this.handleStopEditAndBlur=this.handleStopEditAndBlur.bind(this),this.createDebouncedSearcher=this.createDebouncedSearcher.bind(this),this.handleCloseMenu=this.handleCloseMenu.bind(this),this.onListKeyDown=this.onListKeyDown.bind(this),this.portalId=p()}componentWillLoad(){this.chips=this.createChips(this.value)}componentDidLoad(){this.createDebouncedSearcher(this.searcher),this.chipSet=this.host.shadowRoot.querySelector("limel-chip-set")}async componentWillUpdate(){this.chipSetEditMode=!1,this.chipSet&&(this.chipSetEditMode=await this.chipSet.getEditMode())}render(){this.chips.forEach((t=>{"iconBackgroundColor"in t&&t.iconBackgroundColor&&(t.iconFillColor="rgb(var(--color-white))")}));const t={};return this.multiple||(t.maxItems=1),[s("limel-chip-set",Object.assign({type:"input",label:this.label,helperText:this.helperText,leadingIcon:this.leadingIcon,value:this.chips,disabled:this.disabled,delimiter:this.renderDelimiter(),readonly:this.readonly,required:this.required,searchLabel:this.searchLabel,onInput:this.handleTextInput,onKeyDown:this.handleInputKeyDown,onChange:this.handleChange,onInteract:this.handleInteract,onStartEdit:this.handleInputFieldFocus,onStopEdit:this.handleStopEditAndBlur,emptyInputOnBlur:!1,clearAllButton:this.multiple},t)),this.renderDropdown()]}onChangeValue(){this.chips=this.createChips(this.value)}createDebouncedSearcher(t){var i,s,n;"function"==typeof t&&(this.debouncedSearch=(i=t,500,s=b({},w,undefined),n=new C({func:i,wait:500,options:s}),function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return n.getDebouncedFunction(t).func.apply(void 0,t)}))}renderDelimiter(){return this.multiple?this.delimiter:null}createChips(t){return t?this.multiple?t.map(this.createChip):[this.createChip(t)]:[]}createChip(t){return{id:`${t.value}`,text:t.text,removable:!0,icon:t.icon,iconBackgroundColor:t.iconColor,value:t}}renderDropdown(){const t=this.getDropdownContent(),i=[];if(this.shouldShowDropDownContent()){const s=this.getActionContent();"top"===this.actionPosition&&i.push(s),t&&i.push(t),"bottom"===this.actionPosition&&i.push(s)}return this.renderPortal(i)}getActionContent(){var t,i;return 0===(null!==(i=null===(t=this.actions)||void 0===t?void 0:t.length)&&void 0!==i?i:0)?null:[s("limel-list",{class:{"static-actions-list":!0,"is-on-top":"top"===this.actionPosition,"is-at-bottom":"bottom"===this.actionPosition,"has-position-sticky":"sticky"===this.actionScrollBehavior},badgeIcons:!0,type:"selectable",onChange:this.handleActionListChange,items:this.actions.map(this.removeUnusedPropertiesOnAction)})]}removeUnusedPropertiesOnAction(t){return Object.assign(Object.assign({},t),{actions:[]})}shouldShowDropDownContent(){return!this.isFull()&&!!this.chipSetEditMode}getDropdownContent(){if(this.shouldShowDropDownContent())return this.loading?this.renderSpinner():this.items&&this.items.length?this.renderListResult():this.renderEmptyMessage()}isFull(){return!this.multiple&&!!this.value}renderSpinner(){return s("div",{style:{width:"100%",display:"flex","align-items":"center","justify-content":"center",padding:"1rem 0"}},s("limel-spinner",{limeBranded:!1}))}renderEmptyMessage(){if(this.emptyResultMessage)return s("p",{style:{color:"rgb(var(--contrast-1100))","text-align":"center",margin:"0.5rem 1rem"}},this.emptyResultMessage)}renderListResult(){const t=this.items.some((t=>"icon"in t&&!!t.icon));return s("limel-list",{badgeIcons:t&&this.badgeIcons,onChange:this.handleListChange,onKeyDown:this.onListKeyDown,type:"selectable",items:this.items})}onListKeyDown(t){const i=[h,r,o].includes(t.key),s=[l,a,c].includes(t.keyCode);(i||s)&&this.chipSet.setFocus()}renderPortal(t=[]){const i=getComputedStyle(this.host).getPropertyValue("--dropdown-z-index");return s("limel-portal",{visible:t.length>0,containerId:this.portalId,inheritParentWidth:!0,containerStyle:{"z-index":i}},s("limel-menu-surface",{open:t.length>0,allowClicksElement:this.host,style:{"--mdc-menu-min-width":"100%","max-height":"inherit",display:"flex"},onDismiss:this.handleCloseMenu},t))}handleStopEditAndBlur(){const t=this.host.shadowRoot.activeElement||document.activeElement,i=document.querySelector(`#${this.portalId}`);e(t,this.host)||e(t,i)||this.clearInputField()}async handleTextInput(t){t.stopPropagation();const i=t.detail;this.textValue=i,this.loading=!0;const s=""===i?this.searcher:this.debouncedSearch,n=await s(i);this.handleSearchResult(i,n)}handleListChange(t){var i;if(t.stopPropagation(),!this.value||this.value!==t.detail){let i=t.detail;this.multiple&&(i=[...this.value,t.detail]),this.change.emit(i),this.items=[]}this.multiple&&(null===(i=this.chipSet)||void 0===i||i.setFocus(!0))}handleActionListChange(t){t.stopPropagation(),t.detail&&(this.action.emit(t.detail.value),this.items=[])}async handleInputFieldFocus(){this.loading=!0;const t=this.textValue,i=await this.searcher(t);this.handleSearchResult(t,i)}handleChange(t){t.stopPropagation();let i=null;this.multiple&&(i=t.detail.map((t=>this.value.find((i=>`${i.value}`===t.id))))),this.change.emit(i)}handleInteract(t){t.stopPropagation(),this.interact.emit(t.detail?t.detail.value:t.detail)}handleInputKeyDown(t){const i=!(t.key!==h&&t.keyCode!==l||t.altKey||t.metaKey||t.shiftKey),s=t.key===u||t.keyCode===d,n=t.key===m||t.keyCode===f;if(!i&&!s&&!n)return;const e=document.querySelector(` #${this.portalId} limel-list`);e&&(t.preventDefault(),i||n?e.shadowRoot.querySelector(".mdc-deprecated-list-item:first-child").focus():s&&e.shadowRoot.querySelector(".mdc-deprecated-list-item:last-child").focus())}handleDropdownKeyDown(t){(t.key===r||t.keyCode===a)&&(t.preventDefault(),this.textValue="",this.chipSet.setFocus(!0))}handleSearchResult(t,i){if(t===this.textValue){if(this.items=i,this.multiple){const t=this.value;this.items=i.filter((i=>!t.includes(i)))}this.loading=!1}}handleCloseMenu(){this.clearInputField()}clearInputField(){this.chipSet.emptyInput(),this.textValue="",this.handleSearchResult("",[])}get host(){return n(this)}static get watchers(){return{value:["onChangeValue"],searcher:["createDebouncedSearcher"]}}};D.style=":host{position:relative;display:block}:host([hidden]){display:none}";export{D as limel_picker}
@@ -0,0 +1,131 @@
1
+ import{r as t,c as n,h as r,g as i}from"./p-e9a95b8f.js";import{u as e,f as o,h as c,i as a}from"./p-ade76f1d.js";import{M as s,a as l}from"./p-48d4ef20.js";import{a as u,b as d,M as f}from"./p-cbc43682.js";import{m as h}from"./p-dcc97cc2.js";import{a as m,b,c as p,i as g,d as v}from"./p-fa607ed3.js";import{a as _}from"./p-669626e5.js";import"./p-eda23c05.js";import"./p-c93050d6.js";import"./p-4c3358cb.js";import"./p-0b1af919.js";import"./p-858c6b82.js";import"./p-9acf7b5d.js";import"./p-5fdb83c9.js";var y=p((function(t,n){return g(t)?function(t,n,r,i){var e=-1,a=m,s=!0,l=t.length,u=[],d=n.length;if(!l)return u;n.length>=200&&(a=c,s=!1,n=new o(n));t:for(;++e<l;){var f=t[e],h=f;if(f=0!==f?f:0,s&&h==h){for(var b=d;b--;)if(n[b]===h)continue t;u.push(f)}else a(n,h,i)||u.push(f)}return u}(t,v(n,1,g,!0)):[]})),w=function(t,n){return(w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])})(t,n)};
2
+ /*! *****************************************************************************
3
+ Copyright (c) Microsoft Corporation.
4
+
5
+ Permission to use, copy, modify, and/or distribute this software for any
6
+ purpose with or without fee is hereby granted.
7
+
8
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
9
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
10
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
11
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
+ PERFORMANCE OF THIS SOFTWARE.
15
+ ***************************************************************************** */function x(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}w(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}var C=function(){return(C=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++)for(var e in n=arguments[r])Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e]);return t}).apply(this,arguments)};function O(t){var n="function"==typeof Symbol&&Symbol.iterator,r=n&&t[n],i=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}
16
+ /*! *****************************************************************************
17
+ Copyright (c) Microsoft Corporation.
18
+
19
+ Permission to use, copy, modify, and/or distribute this software for any
20
+ purpose with or without fee is hereby granted.
21
+
22
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
23
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
24
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
25
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
26
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
27
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
28
+ PERFORMANCE OF THIS SOFTWARE.
29
+ ***************************************************************************** */var T=function(t,n){return(T=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])})(t,n)};function S(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}T(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}var E,A=function(){return(A=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++)for(var e in n=arguments[r])Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e]);return t}).apply(this,arguments)},k={ANIMATING:"mdc-tab-scroller--animating",SCROLL_AREA_SCROLL:"mdc-tab-scroller__scroll-area--scroll",SCROLL_TEST:"mdc-tab-scroller__test"},j={AREA_SELECTOR:".mdc-tab-scroller__scroll-area",CONTENT_SELECTOR:".mdc-tab-scroller__scroll-content"},R=function(t){this.adapter=t},I=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return S(n,t),n.prototype.getScrollPositionRTL=function(){var t=this.adapter.getScrollAreaScrollLeft(),n=this.calculateScrollEdges().right;return Math.round(n-t)},n.prototype.scrollToRTL=function(t){var n=this.calculateScrollEdges(),r=this.adapter.getScrollAreaScrollLeft(),i=this.clampScrollValue(n.right-t);return{finalScrollPosition:i,scrollDelta:i-r}},n.prototype.incrementScrollRTL=function(t){var n=this.adapter.getScrollAreaScrollLeft(),r=this.clampScrollValue(n-t);return{finalScrollPosition:r,scrollDelta:r-n}},n.prototype.getAnimatingScrollPosition=function(t){return t},n.prototype.calculateScrollEdges=function(){return{left:0,right:this.adapter.getScrollContentOffsetWidth()-this.adapter.getScrollAreaOffsetWidth()}},n.prototype.clampScrollValue=function(t){var n=this.calculateScrollEdges();return Math.min(Math.max(n.left,t),n.right)},n}(R),L=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return S(n,t),n.prototype.getScrollPositionRTL=function(t){var n=this.adapter.getScrollAreaScrollLeft();return Math.round(t-n)},n.prototype.scrollToRTL=function(t){var n=this.adapter.getScrollAreaScrollLeft(),r=this.clampScrollValue(-t);return{finalScrollPosition:r,scrollDelta:r-n}},n.prototype.incrementScrollRTL=function(t){var n=this.adapter.getScrollAreaScrollLeft(),r=this.clampScrollValue(n-t);return{finalScrollPosition:r,scrollDelta:r-n}},n.prototype.getAnimatingScrollPosition=function(t,n){return t-n},n.prototype.calculateScrollEdges=function(){var t=this.adapter.getScrollContentOffsetWidth();return{left:this.adapter.getScrollAreaOffsetWidth()-t,right:0}},n.prototype.clampScrollValue=function(t){var n=this.calculateScrollEdges();return Math.max(Math.min(n.right,t),n.left)},n}(R),z=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return S(n,t),n.prototype.getScrollPositionRTL=function(t){var n=this.adapter.getScrollAreaScrollLeft();return Math.round(n-t)},n.prototype.scrollToRTL=function(t){var n=this.adapter.getScrollAreaScrollLeft(),r=this.clampScrollValue(t);return{finalScrollPosition:r,scrollDelta:n-r}},n.prototype.incrementScrollRTL=function(t){var n=this.adapter.getScrollAreaScrollLeft(),r=this.clampScrollValue(n+t);return{finalScrollPosition:r,scrollDelta:n-r}},n.prototype.getAnimatingScrollPosition=function(t,n){return t+n},n.prototype.calculateScrollEdges=function(){return{left:this.adapter.getScrollContentOffsetWidth()-this.adapter.getScrollAreaOffsetWidth(),right:0}},n.prototype.clampScrollValue=function(t){var n=this.calculateScrollEdges();return Math.min(Math.max(n.right,t),n.left)},n}(R),D=function(t){function n(r){var i=t.call(this,A(A({},n.defaultAdapter),r))||this;return i.isAnimating=!1,i}return S(n,t),Object.defineProperty(n,"cssClasses",{get:function(){return k},enumerable:!1,configurable:!0}),Object.defineProperty(n,"strings",{get:function(){return j},enumerable:!1,configurable:!0}),Object.defineProperty(n,"defaultAdapter",{get:function(){return{eventTargetMatchesSelector:function(){return!1},addClass:function(){},removeClass:function(){},addScrollAreaClass:function(){},setScrollAreaStyleProperty:function(){},setScrollContentStyleProperty:function(){},getScrollContentStyleValue:function(){return""},setScrollAreaScrollLeft:function(){},getScrollAreaScrollLeft:function(){return 0},getScrollContentOffsetWidth:function(){return 0},getScrollAreaOffsetWidth:function(){return 0},computeScrollAreaClientRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},computeScrollContentClientRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},computeHorizontalScrollbarHeight:function(){return 0}}},enumerable:!1,configurable:!0}),n.prototype.init=function(){var t=this.adapter.computeHorizontalScrollbarHeight();this.adapter.setScrollAreaStyleProperty("margin-bottom",-t+"px"),this.adapter.addScrollAreaClass(n.cssClasses.SCROLL_AREA_SCROLL)},n.prototype.getScrollPosition=function(){if(this.isRTL())return this.computeCurrentScrollPositionRTL();var t=this.calculateCurrentTranslateX();return this.adapter.getScrollAreaScrollLeft()-t},n.prototype.handleInteraction=function(){this.isAnimating&&this.stopScrollAnimation()},n.prototype.handleTransitionEnd=function(t){this.isAnimating&&this.adapter.eventTargetMatchesSelector(t.target,n.strings.CONTENT_SELECTOR)&&(this.isAnimating=!1,this.adapter.removeClass(n.cssClasses.ANIMATING))},n.prototype.incrementScroll=function(t){0!==t&&this.animate(this.getIncrementScrollOperation(t))},n.prototype.incrementScrollImmediate=function(t){if(0!==t){var n=this.getIncrementScrollOperation(t);0!==n.scrollDelta&&(this.stopScrollAnimation(),this.adapter.setScrollAreaScrollLeft(n.finalScrollPosition))}},n.prototype.scrollTo=function(t){this.isRTL()?this.scrollToImplRTL(t):this.scrollToImpl(t)},n.prototype.getRTLScroller=function(){return this.rtlScrollerInstance||(this.rtlScrollerInstance=this.rtlScrollerFactory()),this.rtlScrollerInstance},n.prototype.calculateCurrentTranslateX=function(){var t=this.adapter.getScrollContentStyleValue("transform");if("none"===t)return 0;var n=/\((.+?)\)/.exec(t);if(!n)return 0;var r=function(t,n){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var i,e,o=r.call(t),c=[];try{for(;(void 0===n||n-- >0)&&!(i=o.next()).done;)c.push(i.value)}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}return c}
30
+ /**
31
+ * @license
32
+ * Copyright 2018 Google Inc.
33
+ *
34
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
35
+ * of this software and associated documentation files (the "Software"), to deal
36
+ * in the Software without restriction, including without limitation the rights
37
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
38
+ * copies of the Software, and to permit persons to whom the Software is
39
+ * furnished to do so, subject to the following conditions:
40
+ *
41
+ * The above copyright notice and this permission notice shall be included in
42
+ * all copies or substantial portions of the Software.
43
+ *
44
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
45
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
46
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
47
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
48
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
49
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
50
+ * THE SOFTWARE.
51
+ */(n[1].split(","),6);return parseFloat(r[4])},n.prototype.clampScrollValue=function(t){var n=this.calculateScrollEdges();return Math.min(Math.max(n.left,t),n.right)},n.prototype.computeCurrentScrollPositionRTL=function(){var t=this.calculateCurrentTranslateX();return this.getRTLScroller().getScrollPositionRTL(t)},n.prototype.calculateScrollEdges=function(){return{left:0,right:this.adapter.getScrollContentOffsetWidth()-this.adapter.getScrollAreaOffsetWidth()}},n.prototype.scrollToImpl=function(t){var n=this.getScrollPosition(),r=this.clampScrollValue(t);this.animate({finalScrollPosition:r,scrollDelta:r-n})},n.prototype.scrollToImplRTL=function(t){var n=this.getRTLScroller().scrollToRTL(t);this.animate(n)},n.prototype.getIncrementScrollOperation=function(t){if(this.isRTL())return this.getRTLScroller().incrementScrollRTL(t);var n=this.getScrollPosition(),r=this.clampScrollValue(t+n);return{finalScrollPosition:r,scrollDelta:r-n}},n.prototype.animate=function(t){var r=this;0!==t.scrollDelta&&(this.stopScrollAnimation(),this.adapter.setScrollAreaScrollLeft(t.finalScrollPosition),this.adapter.setScrollContentStyleProperty("transform","translateX("+t.scrollDelta+"px)"),this.adapter.computeScrollAreaClientRect(),requestAnimationFrame((function(){r.adapter.addClass(n.cssClasses.ANIMATING),r.adapter.setScrollContentStyleProperty("transform","none")})),this.isAnimating=!0)},n.prototype.stopScrollAnimation=function(){this.isAnimating=!1;var t=this.getAnimatingScrollPosition();this.adapter.removeClass(n.cssClasses.ANIMATING),this.adapter.setScrollContentStyleProperty("transform","translateX(0px)"),this.adapter.setScrollAreaScrollLeft(t)},n.prototype.getAnimatingScrollPosition=function(){var t=this.calculateCurrentTranslateX(),n=this.adapter.getScrollAreaScrollLeft();return this.isRTL()?this.getRTLScroller().getAnimatingScrollPosition(n,t):n-t},n.prototype.rtlScrollerFactory=function(){var t=this.adapter.getScrollAreaScrollLeft();this.adapter.setScrollAreaScrollLeft(t-1);var n=this.adapter.getScrollAreaScrollLeft();if(n<0)return this.adapter.setScrollAreaScrollLeft(t),new L(this.adapter);var r=this.adapter.computeScrollAreaClientRect(),i=this.adapter.computeScrollContentClientRect(),e=Math.round(i.right-r.right);return this.adapter.setScrollAreaScrollLeft(t),e===n?new z(this.adapter):new I(this.adapter)},n.prototype.isRTL=function(){return"rtl"===this.adapter.getScrollContentStyleValue("direction")},n}(s),M=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return S(n,t),n.attachTo=function(t){return new n(t)},n.prototype.initialize=function(){this.area=this.root.querySelector(D.strings.AREA_SELECTOR),this.content=this.root.querySelector(D.strings.CONTENT_SELECTOR)},n.prototype.initialSyncWithDOM=function(){var t=this;this.handleInteraction=function(){t.foundation.handleInteraction()},this.handleTransitionEnd=function(n){t.foundation.handleTransitionEnd(n)},this.area.addEventListener("wheel",this.handleInteraction,u()),this.area.addEventListener("touchstart",this.handleInteraction,u()),this.area.addEventListener("pointerdown",this.handleInteraction,u()),this.area.addEventListener("mousedown",this.handleInteraction,u()),this.area.addEventListener("keydown",this.handleInteraction,u()),this.content.addEventListener("transitionend",this.handleTransitionEnd)},n.prototype.destroy=function(){t.prototype.destroy.call(this),this.area.removeEventListener("wheel",this.handleInteraction,u()),this.area.removeEventListener("touchstart",this.handleInteraction,u()),this.area.removeEventListener("pointerdown",this.handleInteraction,u()),this.area.removeEventListener("mousedown",this.handleInteraction,u()),this.area.removeEventListener("keydown",this.handleInteraction,u()),this.content.removeEventListener("transitionend",this.handleTransitionEnd)},n.prototype.getDefaultFoundation=function(){var t=this;return new D({eventTargetMatchesSelector:function(t,n){return h(t,n)},addClass:function(n){t.root.classList.add(n)},removeClass:function(n){t.root.classList.remove(n)},addScrollAreaClass:function(n){t.area.classList.add(n)},setScrollAreaStyleProperty:function(n,r){t.area.style.setProperty(n,r)},setScrollContentStyleProperty:function(n,r){t.content.style.setProperty(n,r)},getScrollContentStyleValue:function(n){return window.getComputedStyle(t.content).getPropertyValue(n)},setScrollAreaScrollLeft:function(n){return t.area.scrollLeft=n},getScrollAreaScrollLeft:function(){return t.area.scrollLeft},getScrollContentOffsetWidth:function(){return t.content.offsetWidth},getScrollAreaOffsetWidth:function(){return t.area.offsetWidth},computeScrollAreaClientRect:function(){return t.area.getBoundingClientRect()},computeScrollContentClientRect:function(){return t.content.getBoundingClientRect()},computeHorizontalScrollbarHeight:function(){return function(t,n){if(void 0===n&&(n=!0),n&&void 0!==E)return E;var r=t.createElement("div");r.classList.add(k.SCROLL_TEST),t.body.appendChild(r);var i=r.offsetHeight-r.clientHeight;return t.body.removeChild(r),n&&(E=i),i}
52
+ /**
53
+ * @license
54
+ * Copyright 2018 Google Inc.
55
+ *
56
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
57
+ * of this software and associated documentation files (the "Software"), to deal
58
+ * in the Software without restriction, including without limitation the rights
59
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
60
+ * copies of the Software, and to permit persons to whom the Software is
61
+ * furnished to do so, subject to the following conditions:
62
+ *
63
+ * The above copyright notice and this permission notice shall be included in
64
+ * all copies or substantial portions of the Software.
65
+ *
66
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
67
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
68
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
69
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
70
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
71
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
72
+ * THE SOFTWARE.
73
+ */(document)}})},n.prototype.getScrollPosition=function(){return this.foundation.getScrollPosition()},n.prototype.getScrollContentWidth=function(){return this.content.offsetWidth},n.prototype.incrementScroll=function(t){this.foundation.incrementScroll(t)},n.prototype.scrollTo=function(t){this.foundation.scrollTo(t)},n}(l),N=function(t,n){return(N=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])})(t,n)};function P(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}N(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}var W=function(){return(W=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++)for(var e in n=arguments[r])Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e]);return t}).apply(this,arguments)},Y=function(t,n){return(Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])})(t,n)};
74
+ /*! *****************************************************************************
75
+ Copyright (c) Microsoft Corporation.
76
+
77
+ Permission to use, copy, modify, and/or distribute this software for any
78
+ purpose with or without fee is hereby granted.
79
+
80
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
81
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
82
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
83
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
84
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
85
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
86
+ PERFORMANCE OF THIS SOFTWARE.
87
+ ***************************************************************************** */function B(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}Y(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}var K=function(){return(K=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++)for(var e in n=arguments[r])Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e]);return t}).apply(this,arguments)},H={ACTIVE:"mdc-tab-indicator--active",FADE:"mdc-tab-indicator--fade",NO_TRANSITION:"mdc-tab-indicator--no-transition"},V={CONTENT_SELECTOR:".mdc-tab-indicator__content"},F=function(t){function n(r){return t.call(this,K(K({},n.defaultAdapter),r))||this}return B(n,t),Object.defineProperty(n,"cssClasses",{get:function(){return H},enumerable:!1,configurable:!0}),Object.defineProperty(n,"strings",{get:function(){return V},enumerable:!1,configurable:!0}),Object.defineProperty(n,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},computeContentClientRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},setContentStyleProperty:function(){}}},enumerable:!1,configurable:!0}),n.prototype.computeContentClientRect=function(){return this.adapter.computeContentClientRect()},n}(s),X=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return B(n,t),n.prototype.activate=function(){this.adapter.addClass(F.cssClasses.ACTIVE)},n.prototype.deactivate=function(){this.adapter.removeClass(F.cssClasses.ACTIVE)},n}(F),G=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return B(n,t),n.prototype.activate=function(t){if(t){var n=this.computeContentClientRect(),r=t.width/n.width,i=t.left-n.left;this.adapter.addClass(F.cssClasses.NO_TRANSITION),this.adapter.setContentStyleProperty("transform","translateX("+i+"px) scaleX("+r+")"),this.computeContentClientRect(),this.adapter.removeClass(F.cssClasses.NO_TRANSITION),this.adapter.addClass(F.cssClasses.ACTIVE),this.adapter.setContentStyleProperty("transform","")}else this.adapter.addClass(F.cssClasses.ACTIVE)},n.prototype.deactivate=function(){this.adapter.removeClass(F.cssClasses.ACTIVE)},n}(F),q=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return B(n,t),n.attachTo=function(t){return new n(t)},n.prototype.initialize=function(){this.content=this.root.querySelector(F.strings.CONTENT_SELECTOR)},n.prototype.computeContentClientRect=function(){return this.foundation.computeContentClientRect()},n.prototype.getDefaultFoundation=function(){var t=this,n={addClass:function(n){return t.root.classList.add(n)},removeClass:function(n){return t.root.classList.remove(n)},computeContentClientRect:function(){return t.content.getBoundingClientRect()},setContentStyleProperty:function(n,r){t.content.style.setProperty(n,r)}};return this.root.classList.contains(F.cssClasses.FADE)?new X(n):new G(n)},n.prototype.activate=function(t){this.foundation.activate(t)},n.prototype.deactivate=function(){this.foundation.deactivate()},n}(l),U={ACTIVE:"mdc-tab--active"},J={ARIA_SELECTED:"aria-selected",CONTENT_SELECTOR:".mdc-tab__content",INTERACTED_EVENT:"MDCTab:interacted",RIPPLE_SELECTOR:".mdc-tab__ripple",TABINDEX:"tabIndex",TAB_INDICATOR_SELECTOR:".mdc-tab-indicator"},Q=function(t){function n(r){var i=t.call(this,W(W({},n.defaultAdapter),r))||this;return i.focusOnActivate=!0,i}return P(n,t),Object.defineProperty(n,"cssClasses",{get:function(){return U},enumerable:!1,configurable:!0}),Object.defineProperty(n,"strings",{get:function(){return J},enumerable:!1,configurable:!0}),Object.defineProperty(n,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},setAttr:function(){},activateIndicator:function(){},deactivateIndicator:function(){},notifyInteracted:function(){},getOffsetLeft:function(){return 0},getOffsetWidth:function(){return 0},getContentOffsetLeft:function(){return 0},getContentOffsetWidth:function(){return 0},focus:function(){}}},enumerable:!1,configurable:!0}),n.prototype.handleClick=function(){this.adapter.notifyInteracted()},n.prototype.isActive=function(){return this.adapter.hasClass(U.ACTIVE)},n.prototype.setFocusOnActivate=function(t){this.focusOnActivate=t},n.prototype.activate=function(t){this.adapter.addClass(U.ACTIVE),this.adapter.setAttr(J.ARIA_SELECTED,"true"),this.adapter.setAttr(J.TABINDEX,"0"),this.adapter.activateIndicator(t),this.focusOnActivate&&this.adapter.focus()},n.prototype.deactivate=function(){this.isActive()&&(this.adapter.removeClass(U.ACTIVE),this.adapter.setAttr(J.ARIA_SELECTED,"false"),this.adapter.setAttr(J.TABINDEX,"-1"),this.adapter.deactivateIndicator())},n.prototype.computeDimensions=function(){var t=this.adapter.getOffsetWidth(),n=this.adapter.getOffsetLeft(),r=this.adapter.getContentOffsetWidth(),i=this.adapter.getContentOffsetLeft();return{contentLeft:n+i,contentRight:n+i+r,rootLeft:n,rootRight:n+t}},n}(s),Z=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return P(n,t),n.attachTo=function(t){return new n(t)},n.prototype.initialize=function(t,n){void 0===t&&(t=function(t,n){return new f(t,n)}),void 0===n&&(n=function(t){return new q(t)}),this.id=this.root.id;var r=new d(f.createAdapter(this));this.ripple=t(this.root,r);var i=this.root.querySelector(Q.strings.TAB_INDICATOR_SELECTOR);this.tabIndicator=n(i),this.content=this.root.querySelector(Q.strings.CONTENT_SELECTOR)},n.prototype.initialSyncWithDOM=function(){var t=this;this.handleClick=function(){t.foundation.handleClick()},this.listen("click",this.handleClick)},n.prototype.destroy=function(){this.unlisten("click",this.handleClick),this.ripple.destroy(),t.prototype.destroy.call(this)},n.prototype.getDefaultFoundation=function(){var t=this;return new Q({setAttr:function(n,r){return t.root.setAttribute(n,r)},addClass:function(n){return t.root.classList.add(n)},removeClass:function(n){return t.root.classList.remove(n)},hasClass:function(n){return t.root.classList.contains(n)},activateIndicator:function(n){t.tabIndicator.activate(n)},deactivateIndicator:function(){t.tabIndicator.deactivate()},notifyInteracted:function(){return t.emit(Q.strings.INTERACTED_EVENT,{tabId:t.id},!0)},getOffsetLeft:function(){return t.root.offsetLeft},getOffsetWidth:function(){return t.root.offsetWidth},getContentOffsetLeft:function(){return t.content.offsetLeft},getContentOffsetWidth:function(){return t.content.offsetWidth},focus:function(){return t.root.focus()}})},Object.defineProperty(n.prototype,"active",{get:function(){return this.foundation.isActive()},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"focusOnActivate",{set:function(t){this.foundation.setFocusOnActivate(t)},enumerable:!1,configurable:!0}),n.prototype.activate=function(t){this.foundation.activate(t)},n.prototype.deactivate=function(){this.foundation.deactivate()},n.prototype.computeIndicatorClientRect=function(){return this.tabIndicator.computeContentClientRect()},n.prototype.computeDimensions=function(){return this.foundation.computeDimensions()},n.prototype.focus=function(){this.root.focus()},n}(l),$={ARROW_LEFT_KEY:"ArrowLeft",ARROW_RIGHT_KEY:"ArrowRight",END_KEY:"End",ENTER_KEY:"Enter",HOME_KEY:"Home",SPACE_KEY:"Space",TAB_ACTIVATED_EVENT:"MDCTabBar:activated",TAB_SCROLLER_SELECTOR:".mdc-tab-scroller",TAB_SELECTOR:".mdc-tab"},tt={ARROW_LEFT_KEYCODE:37,ARROW_RIGHT_KEYCODE:39,END_KEYCODE:35,ENTER_KEYCODE:13,EXTRA_SCROLL_AMOUNT:20,HOME_KEYCODE:36,SPACE_KEYCODE:32},nt=new Set;
88
+ /**
89
+ * @license
90
+ * Copyright 2018 Google Inc.
91
+ *
92
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
93
+ * of this software and associated documentation files (the "Software"), to deal
94
+ * in the Software without restriction, including without limitation the rights
95
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
96
+ * copies of the Software, and to permit persons to whom the Software is
97
+ * furnished to do so, subject to the following conditions:
98
+ *
99
+ * The above copyright notice and this permission notice shall be included in
100
+ * all copies or substantial portions of the Software.
101
+ *
102
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
103
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
104
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
105
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
106
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
107
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
108
+ * THE SOFTWARE.
109
+ */nt.add($.ARROW_LEFT_KEY),nt.add($.ARROW_RIGHT_KEY),nt.add($.END_KEY),nt.add($.HOME_KEY),nt.add($.ENTER_KEY),nt.add($.SPACE_KEY);var rt=new Map;rt.set(tt.ARROW_LEFT_KEYCODE,$.ARROW_LEFT_KEY),rt.set(tt.ARROW_RIGHT_KEYCODE,$.ARROW_RIGHT_KEY),rt.set(tt.END_KEYCODE,$.END_KEY),rt.set(tt.HOME_KEYCODE,$.HOME_KEY),rt.set(tt.ENTER_KEYCODE,$.ENTER_KEY),rt.set(tt.SPACE_KEYCODE,$.SPACE_KEY);var it=function(t){function n(r){var i=t.call(this,C(C({},n.defaultAdapter),r))||this;return i.useAutomaticActivation=!1,i}return x(n,t),Object.defineProperty(n,"strings",{get:function(){return $},enumerable:!1,configurable:!0}),Object.defineProperty(n,"numbers",{get:function(){return tt},enumerable:!1,configurable:!0}),Object.defineProperty(n,"defaultAdapter",{get:function(){return{scrollTo:function(){},incrementScroll:function(){},getScrollPosition:function(){return 0},getScrollContentWidth:function(){return 0},getOffsetWidth:function(){return 0},isRTL:function(){return!1},setActiveTab:function(){},activateTabAtIndex:function(){},deactivateTabAtIndex:function(){},focusTabAtIndex:function(){},getTabIndicatorClientRectAtIndex:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},getTabDimensionsAtIndex:function(){return{rootLeft:0,rootRight:0,contentLeft:0,contentRight:0}},getPreviousActiveTabIndex:function(){return-1},getFocusedTabIndex:function(){return-1},getIndexOfTabById:function(){return-1},getTabListLength:function(){return 0},notifyTabActivated:function(){}}},enumerable:!1,configurable:!0}),n.prototype.setUseAutomaticActivation=function(t){this.useAutomaticActivation=t},n.prototype.activateTab=function(t){var n,r=this.adapter.getPreviousActiveTabIndex();this.indexIsInRange(t)&&t!==r&&(-1!==r&&(this.adapter.deactivateTabAtIndex(r),n=this.adapter.getTabIndicatorClientRectAtIndex(r)),this.adapter.activateTabAtIndex(t,n),this.scrollIntoView(t),this.adapter.notifyTabActivated(t))},n.prototype.handleKeyDown=function(t){var n=this.getKeyFromEvent(t);if(void 0!==n)if(this.isActivationKey(n)||t.preventDefault(),this.useAutomaticActivation){if(this.isActivationKey(n))return;var r=this.determineTargetFromKey(this.adapter.getPreviousActiveTabIndex(),n);this.adapter.setActiveTab(r),this.scrollIntoView(r)}else{var i=this.adapter.getFocusedTabIndex();this.isActivationKey(n)?this.adapter.setActiveTab(i):(r=this.determineTargetFromKey(i,n),this.adapter.focusTabAtIndex(r),this.scrollIntoView(r))}},n.prototype.handleTabInteraction=function(t){this.adapter.setActiveTab(this.adapter.getIndexOfTabById(t.detail.tabId))},n.prototype.scrollIntoView=function(t){this.indexIsInRange(t)&&(0!==t?t!==this.adapter.getTabListLength()-1?this.isRTL()?this.scrollIntoViewImplRTL(t):this.scrollIntoViewImpl(t):this.adapter.scrollTo(this.adapter.getScrollContentWidth()):this.adapter.scrollTo(0))},n.prototype.determineTargetFromKey=function(t,n){var r=this.isRTL(),i=this.adapter.getTabListLength()-1,e=t;return n===$.END_KEY?e=i:n===$.ARROW_LEFT_KEY&&!r||n===$.ARROW_RIGHT_KEY&&r?e-=1:n===$.ARROW_RIGHT_KEY&&!r||n===$.ARROW_LEFT_KEY&&r?e+=1:e=0,e<0?e=i:e>i&&(e=0),e},n.prototype.calculateScrollIncrement=function(t,n,r,i){var e=this.adapter.getTabDimensionsAtIndex(n),o=e.contentLeft-r-i+tt.EXTRA_SCROLL_AMOUNT;return n<t?Math.min(e.contentRight-r-tt.EXTRA_SCROLL_AMOUNT,0):Math.max(o,0)},n.prototype.calculateScrollIncrementRTL=function(t,n,r,i,e){var o=this.adapter.getTabDimensionsAtIndex(n),c=e-o.contentLeft-r-tt.EXTRA_SCROLL_AMOUNT;return n>t?Math.max(e-o.contentRight-r-i+tt.EXTRA_SCROLL_AMOUNT,0):Math.min(c,0)},n.prototype.findAdjacentTabIndexClosestToEdge=function(t,n,r,i){var e=n.rootLeft-r,o=n.rootRight-r-i,c=e+o;return e<0||c<0?t-1:o>0||c>0?t+1:-1},n.prototype.findAdjacentTabIndexClosestToEdgeRTL=function(t,n,r,i,e){var o=e-n.rootLeft-i-r,c=e-n.rootRight-r,a=o+c;return o>0||a>0?t+1:c<0||a<0?t-1:-1},n.prototype.getKeyFromEvent=function(t){return nt.has(t.key)?t.key:rt.get(t.keyCode)},n.prototype.isActivationKey=function(t){return t===$.SPACE_KEY||t===$.ENTER_KEY},n.prototype.indexIsInRange=function(t){return t>=0&&t<this.adapter.getTabListLength()},n.prototype.isRTL=function(){return this.adapter.isRTL()},n.prototype.scrollIntoViewImpl=function(t){var n=this.adapter.getScrollPosition(),r=this.adapter.getOffsetWidth(),i=this.adapter.getTabDimensionsAtIndex(t),e=this.findAdjacentTabIndexClosestToEdge(t,i,n,r);if(this.indexIsInRange(e)){var o=this.calculateScrollIncrement(t,e,n,r);this.adapter.incrementScroll(o)}},n.prototype.scrollIntoViewImplRTL=function(t){var n=this.adapter.getScrollPosition(),r=this.adapter.getOffsetWidth(),i=this.adapter.getTabDimensionsAtIndex(t),e=this.adapter.getScrollContentWidth(),o=this.findAdjacentTabIndexClosestToEdgeRTL(t,i,n,r,e);if(this.indexIsInRange(o)){var c=this.calculateScrollIncrementRTL(t,o,n,r,e);this.adapter.incrementScroll(c)}},n}(s),et=it.strings,ot=0,ct=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return x(n,t),n.attachTo=function(t){return new n(t)},Object.defineProperty(n.prototype,"focusOnActivate",{set:function(t){var n,r;try{for(var i=O(this.tabList),e=i.next();!e.done;e=i.next())e.value.focusOnActivate=t}catch(t){n={error:t}}finally{try{e&&!e.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"useAutomaticActivation",{set:function(t){this.foundation.setUseAutomaticActivation(t)},enumerable:!1,configurable:!0}),n.prototype.initialize=function(t,n){void 0===t&&(t=function(t){return new Z(t)}),void 0===n&&(n=function(t){return new M(t)}),this.tabList=this.instantiateTabs(t),this.tabScroller=this.instantiatetabScroller(n)},n.prototype.initialSyncWithDOM=function(){var t=this;this.handleTabInteraction=function(n){t.foundation.handleTabInteraction(n)},this.handleKeyDown=function(n){t.foundation.handleKeyDown(n)},this.listen(Q.strings.INTERACTED_EVENT,this.handleTabInteraction),this.listen("keydown",this.handleKeyDown);for(var n=0;n<this.tabList.length;n++)if(this.tabList[n].active){this.scrollIntoView(n);break}},n.prototype.destroy=function(){var n,r;t.prototype.destroy.call(this),this.unlisten(Q.strings.INTERACTED_EVENT,this.handleTabInteraction),this.unlisten("keydown",this.handleKeyDown);try{for(var i=O(this.tabList),e=i.next();!e.done;e=i.next())e.value.destroy()}catch(t){n={error:t}}finally{try{e&&!e.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}this.tabScroller&&this.tabScroller.destroy()},n.prototype.getDefaultFoundation=function(){var t=this;return new it({scrollTo:function(n){t.tabScroller.scrollTo(n)},incrementScroll:function(n){t.tabScroller.incrementScroll(n)},getScrollPosition:function(){return t.tabScroller.getScrollPosition()},getScrollContentWidth:function(){return t.tabScroller.getScrollContentWidth()},getOffsetWidth:function(){return t.root.offsetWidth},isRTL:function(){return"rtl"===window.getComputedStyle(t.root).getPropertyValue("direction")},setActiveTab:function(n){t.foundation.activateTab(n)},activateTabAtIndex:function(n,r){t.tabList[n].activate(r)},deactivateTabAtIndex:function(n){t.tabList[n].deactivate()},focusTabAtIndex:function(n){t.tabList[n].focus()},getTabIndicatorClientRectAtIndex:function(n){return t.tabList[n].computeIndicatorClientRect()},getTabDimensionsAtIndex:function(n){return t.tabList[n].computeDimensions()},getPreviousActiveTabIndex:function(){for(var n=0;n<t.tabList.length;n++)if(t.tabList[n].active)return n;return-1},getFocusedTabIndex:function(){var n=t.getTabElements(),r=document.activeElement;return n.indexOf(r)},getIndexOfTabById:function(n){for(var r=0;r<t.tabList.length;r++)if(t.tabList[r].id===n)return r;return-1},getTabListLength:function(){return t.tabList.length},notifyTabActivated:function(n){return t.emit(et.TAB_ACTIVATED_EVENT,{index:n},!0)}})},n.prototype.activateTab=function(t){this.foundation.activateTab(t)},n.prototype.scrollIntoView=function(t){this.foundation.scrollIntoView(t)},n.prototype.getTabElements=function(){return[].slice.call(this.root.querySelectorAll(et.TAB_SELECTOR))},n.prototype.instantiateTabs=function(t){return this.getTabElements().map((function(n){return n.id=n.id||"mdc-tab-"+ ++ot,t(n)}))},n.prototype.instantiatetabScroller=function(t){var n=this.root.querySelector(et.TAB_SCROLLER_SELECTOR);return n?t(n):null},n}(l);
110
+ /**
111
+ * @license
112
+ * Copyright 2018 Google Inc.
113
+ *
114
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
115
+ * of this software and associated documentation files (the "Software"), to deal
116
+ * in the Software without restriction, including without limitation the rights
117
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
118
+ * copies of the Software, and to permit persons to whom the Software is
119
+ * furnished to do so, subject to the following conditions:
120
+ *
121
+ * The above copyright notice and this permission notice shall be included in
122
+ * all copies or substantial portions of the Software.
123
+ *
124
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
125
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
126
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
127
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
128
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
129
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
130
+ * THE SOFTWARE.
131
+ */const{TAB_ACTIVATED_EVENT:at}=$,st=class{constructor(r){t(this,r),this.changeTab=n(this,"changeTab",7),this.tabs=[],this.canScrollLeft=!1,this.canScrollRight=!1,this.setupMdc=!1,this.handleTabActivated=this.handleTabActivated.bind(this),this.handleScroll=this.handleScroll.bind(this),this.handleLeftScrollClick=this.handleLeftScrollClick.bind(this),this.handleRightScrollClick=this.handleRightScrollClick.bind(this),this.renderTab=this.renderTab.bind(this)}connectedCallback(){this.setup()}componentDidLoad(){this.setup()}componentDidUpdate(){this.setupMdc&&(this.setup(),this.setupMdc=!1)}disconnectedCallback(){this.tearDown()}render(){return r("div",{class:"mdc-tab-bar",role:"tablist"},r("div",{class:{"mdc-tab-scroller":!0,"can-scroll-left":this.canScrollLeft,"can-scroll-right":this.canScrollRight}},r("div",{class:"mdc-tab-scroller__scroll-area lime-hide-scrollbars"},r("div",{class:"mdc-tab-scroller__scroll-content"},this.tabs.map(this.renderTab))),r("div",{class:"scroll-fade left"}),r("div",{class:"scroll-button left"},r("limel-icon-button",{icon:"angle_left",elevated:!0,tabindex:"-1","aria-hidden":"true",disabled:!this.canScrollLeft,onClick:this.handleLeftScrollClick})),r("div",{class:"scroll-fade right"}),r("div",{class:"scroll-button right"},r("limel-icon-button",{icon:"angle_right",elevated:!0,tabindex:"-1","aria-hidden":"true",disabled:!this.canScrollRight,onClick:this.handleRightScrollClick}))))}tabsChanged(t=[],n=[]){const r=t.map((t=>t.id)),i=n.map((t=>t.id));a(r,i)||(this.setupMdc=!0,this.tearDown())}handleWindowResize(){this.handleScroll()}setup(){const t=this.host.shadowRoot.querySelector(".mdc-tab-bar");t&&(this.mdcTabBar=new ct(t),this.mdcTabBar.focusOnActivate=!0,this.mdcTabBar.useAutomaticActivation=!0,this.scrollArea=t.querySelector(".mdc-tab-scroller__scroll-area"),this.scrollContent=t.querySelector(".mdc-tab-scroller__scroll-content"),this.setupListeners(),setTimeout(this.handleScroll,0))}tearDown(){this.scrollArea&&this.scrollArea.removeEventListener("scroll",this.handleScroll),this.mdcTabBar&&(this.mdcTabBar.unlisten(at,this.handleTabActivated),this.mdcTabBar.destroy())}setupListeners(){this.mdcTabBar.listen(at,this.handleTabActivated),this.scrollArea.addEventListener("scroll",this.handleScroll,{passive:!0})}handleTabActivated(t){const n=function(t,n){const r=t.findIndex((t=>!0===t.active)),i=[...t];return-1!==r&&(i[r]=Object.assign(Object.assign({},t[r]),{active:!1})),i[n]=Object.assign(Object.assign({},t[n]),{active:!0}),i}(this.tabs,t.detail.index);y(n,this.tabs).sort(this.sortByInactive).forEach((t=>{this.changeTab.emit(t)})),this.tabs=n}sortByInactive(t,n){return Number(t.active)-Number(n.active)}handleScroll(){const t=this.scrollArea.scrollLeft,n=Math.floor(this.scrollContent.getBoundingClientRect().width-this.scrollArea.getBoundingClientRect().width-t);this.canScrollLeft=t>40,this.canScrollRight=n>40}handleLeftScrollClick(){this.scrollArea.scroll({left:this.scrollArea.scrollLeft-150,behavior:"smooth"})}handleRightScrollClick(){this.scrollArea.scroll({left:this.scrollArea.scrollLeft+150,behavior:"smooth"})}renderIcon(t){if(!t.icon)return;const n={color:""};return t.iconColor&&(n.color=t.iconColor),r("limel-icon",{class:"mdc-tab__icon",name:t.icon,style:n,size:"small","aria-hidden":"true"})}renderTab(t){return r("button",{class:{"mdc-tab":!0,"mdc-tab--active":!!t.active},role:"tab","aria-selected":t.active?"true":"false",tabindex:t.active?0:-1},r("span",{class:"mdc-tab__content"},this.renderIcon(t),r("span",{class:"mdc-tab__text-label"},t.text),t.badge?r("limel-badge",{label:t.badge}):""),r("span",{class:{"mdc-tab-indicator":!0,"mdc-tab-indicator--active":!!t.active}},r("span",{class:"mdc-tab-indicator__content mdc-tab-indicator__content--underline"})),r("span",{class:"mdc-tab__ripple"}))}get host(){return i(this)}static get watchers(){return{tabs:["tabsChanged"]}}};st.style=":host{--mdc-theme-primary:var(\n --lime-primary-color,\n rgb(var(--color-teal-default))\n );--mdc-theme-secondary:var(\n --lime-secondary-color,\n rgb(var(--contrast-1100))\n );--mdc-theme-on-primary:var(\n --lime-on-primary-color,\n rgb(var(--contrast-100))\n );--mdc-theme-on-secondary:var(\n --lime-on-secondary-color,\n rgb(var(--contrast-100))\n );--mdc-theme-text-disabled-on-background:var(\n --lime-text-disabled-on-background-color,\n rgba(var(--contrast-1700), 0.38)\n );--mdc-theme-text-primary-on-background:var(\n --lime-text-primary-on-background-color,\n rgba(var(--contrast-1700), 0.87)\n );--mdc-theme-text-secondary-on-background:var(\n --lime-text-secondary-on-background-color,\n rgba(var(--contrast-1700), 0.54)\n );--lime-error-text-color:rgb(var(--color-red-darker));--mdc-theme-surface:var(\n --lime-surface-background-color,\n rgb(var(--contrast-100))\n );--mdc-theme-on-surface:var(\n --lime-on-surface-color,\n var(--lime-text-primary-on-background-color)\n )}.mdc-tab-bar{width:100%}.mdc-tab{height:48px}.mdc-tab--stacked{height:72px}.mdc-tab-scroller{overflow-y:hidden}.mdc-tab-scroller.mdc-tab-scroller--animating .mdc-tab-scroller__scroll-content{transition:250ms transform cubic-bezier(0.4, 0, 0.2, 1)}.mdc-tab-scroller__test{position:absolute;top:-9999px;width:100px;height:100px;overflow-x:scroll}.mdc-tab-scroller__scroll-area{-webkit-overflow-scrolling:touch;display:flex;overflow-x:hidden}.mdc-tab-scroller__scroll-area::-webkit-scrollbar,.mdc-tab-scroller__test::-webkit-scrollbar{display:none}.mdc-tab-scroller__scroll-area--scroll{overflow-x:scroll}.mdc-tab-scroller__scroll-content{position:relative;display:flex;flex:1 0 auto;transform:none;will-change:transform}.mdc-tab-scroller--align-start .mdc-tab-scroller__scroll-content{justify-content:flex-start}.mdc-tab-scroller--align-end .mdc-tab-scroller__scroll-content{justify-content:flex-end}.mdc-tab-scroller--align-center .mdc-tab-scroller__scroll-content{justify-content:center}.mdc-tab-scroller--animating .mdc-tab-scroller__scroll-area{-webkit-overflow-scrolling:auto}.mdc-tab-indicator .mdc-tab-indicator__content--underline{border-color:#26a69a;border-color:var(--mdc-theme-primary, #26a69a)}.mdc-tab-indicator .mdc-tab-indicator__content--icon{color:#575756;color:var(--mdc-theme-secondary, #575756)}.mdc-tab-indicator .mdc-tab-indicator__content--underline{border-top-width:2px}.mdc-tab-indicator .mdc-tab-indicator__content--icon{height:34px;font-size:34px}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator__content--icon{align-self:center;margin:0 auto}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}.mdc-tab-indicator .mdc-tab-indicator__content{transition:250ms transform cubic-bezier(0.4, 0, 0.2, 1)}.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition:150ms opacity linear}.mdc-tab-indicator--active.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition-delay:100ms}.mdc-tab{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-button-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.875rem;font-size:var(--mdc-typography-button-font-size, 0.875rem);line-height:2.25rem;line-height:var(--mdc-typography-button-line-height, 2.25rem);font-weight:500;font-weight:var(--mdc-typography-button-font-weight, 500);letter-spacing:0.0892857143em;letter-spacing:var(--mdc-typography-button-letter-spacing, 0.0892857143em);text-decoration:none;text-decoration:var(--mdc-typography-button-text-decoration, none);text-transform:none;text-transform:var(--mdc-typography-button-text-transform, none);position:relative}.mdc-tab .mdc-tab__text-label{color:rgba(0, 0, 0, 0.6)}.mdc-tab .mdc-tab__icon{color:rgba(0, 0, 0, 0.54);fill:currentColor}.mdc-tab__content{position:relative}.mdc-tab__icon{width:24px;height:24px;font-size:24px}.mdc-tab--active .mdc-tab__text-label{color:#26a69a;color:var(--mdc-theme-primary, #26a69a)}.mdc-tab--active .mdc-tab__icon{color:#26a69a;color:var(--mdc-theme-primary, #26a69a);fill:currentColor}.mdc-tab{background:none}.mdc-tab{min-width:90px;padding-right:24px;padding-left:24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;margin:0;padding-top:0;padding-bottom:0;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;-webkit-appearance:none;z-index:1}.mdc-tab::-moz-focus-inner{padding:0;border:0}.mdc-tab--min-width{flex:0 1 auto}.mdc-tab__content{display:flex;align-items:center;justify-content:center;height:inherit;pointer-events:none}.mdc-tab__text-label{transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.mdc-tab__icon{transition:150ms color linear;z-index:2}.mdc-tab--stacked .mdc-tab__content{flex-direction:column;align-items:center;justify-content:center}.mdc-tab--stacked .mdc-tab__text-label{padding-top:6px;padding-bottom:4px}.mdc-tab--active .mdc-tab__text-label,.mdc-tab--active .mdc-tab__icon{transition-delay:100ms}.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label{padding-left:8px;padding-right:0}[dir=rtl] .mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label,.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label[dir=rtl]{padding-left:0;padding-right:8px;}@keyframes mdc-ripple-fg-radius-in{from{animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transform:translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1)}to{transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}}@keyframes mdc-ripple-fg-opacity-in{from{animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity, 0)}}@keyframes mdc-ripple-fg-opacity-out{from{animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity, 0)}to{opacity:0}}.mdc-tab{--mdc-ripple-fg-size:0;--mdc-ripple-left:0;--mdc-ripple-top:0;--mdc-ripple-fg-scale:1;--mdc-ripple-fg-translate-end:0;--mdc-ripple-fg-translate-start:0;-webkit-tap-highlight-color:rgba(0, 0, 0, 0)}.mdc-tab .mdc-tab__ripple::before,.mdc-tab .mdc-tab__ripple::after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:\"\"}.mdc-tab .mdc-tab__ripple::before{transition:opacity 15ms linear, background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index, 1)}.mdc-tab .mdc-tab__ripple::after{z-index:0;z-index:var(--mdc-ripple-z-index, 0)}.mdc-tab.mdc-ripple-upgraded .mdc-tab__ripple::before{transform:scale(var(--mdc-ripple-fg-scale, 1))}.mdc-tab.mdc-ripple-upgraded .mdc-tab__ripple::after{top:0;left:0;transform:scale(0);transform-origin:center center}.mdc-tab.mdc-ripple-upgraded--unbounded .mdc-tab__ripple::after{top:var(--mdc-ripple-top, 0);left:var(--mdc-ripple-left, 0)}.mdc-tab.mdc-ripple-upgraded--foreground-activation .mdc-tab__ripple::after{animation:mdc-ripple-fg-radius-in 225ms forwards, mdc-ripple-fg-opacity-in 75ms forwards}.mdc-tab.mdc-ripple-upgraded--foreground-deactivation .mdc-tab__ripple::after{animation:mdc-ripple-fg-opacity-out 150ms;transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}.mdc-tab .mdc-tab__ripple::before,.mdc-tab .mdc-tab__ripple::after{top:calc(50% - 100%);left:calc(50% - 100%);width:200%;height:200%}.mdc-tab.mdc-ripple-upgraded .mdc-tab__ripple::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-tab .mdc-tab__ripple::before,.mdc-tab .mdc-tab__ripple::after{background-color:#26a69a;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #26a69a))}.mdc-tab:hover .mdc-tab__ripple::before,.mdc-tab.mdc-ripple-surface--hover .mdc-tab__ripple::before{opacity:0.08;opacity:var(--mdc-ripple-hover-opacity, 0.08)}.mdc-tab.mdc-ripple-upgraded--background-focused .mdc-tab__ripple::before,.mdc-tab:not(.mdc-ripple-upgraded):focus .mdc-tab__ripple::before{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-focus-opacity, 0.24)}.mdc-tab:not(.mdc-ripple-upgraded) .mdc-tab__ripple::after{transition:opacity 150ms linear}.mdc-tab:not(.mdc-ripple-upgraded):active .mdc-tab__ripple::after{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-tab.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-tab__ripple{position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden;will-change:transform, opacity}.scroll-fade,.scroll-button{position:absolute;transition-property:transform;transition-duration:0.3s;transition-timing-function:ease-out}.scroll-fade{top:0;height:100%;width:4.0625rem;pointer-events:none}.scroll-fade.left{transform:translate3d(-4.0625rem, 0, 0);left:0;background:linear-gradient(270deg, rgba(var(--contrast-300), 0) 0%, rgba(var(--contrast-300), 0.8) 40%, rgba(var(--contrast-300), 0.8) 100%)}.scroll-fade.right{transform:translate3d(4.0625rem, 0, 0);right:0;background:linear-gradient(90deg, rgba(var(--contrast-300), 0) 0%, rgba(var(--contrast-300), 0.8) 40%, rgba(var(--contrast-300), 0.8) 100%)}.scroll-button{--icon-background-color:rgb(var(--contrast-100));top:0.25rem}.scroll-button.left{transform:translate3d(-4.0625rem, 0, 0);left:0.25rem}.scroll-button.right{transform:translate3d(4.0625rem, 0, 0);right:0.25rem}.scroll-button:hover{transform:translate3d(0, 0, 0)}.mdc-tab-scroller{position:relative;overflow:hidden}.mdc-tab-scroller.can-scroll-left .scroll-fade.left,.mdc-tab-scroller.can-scroll-left .scroll-button.left,.mdc-tab-scroller.can-scroll-right .scroll-fade.right,.mdc-tab-scroller.can-scroll-right .scroll-button.right{transform:translate3d(0, 0, 0)}.mdc-tab-scroller.can-scroll-left:not(.can-scroll-right) .scroll-button.right,.mdc-tab-scroller.can-scroll-right:not(.can-scroll-left) .scroll-button.left{opacity:0.5;transition-delay:0.5s}.lime-hide-scrollbars{scrollbar-width:none;-ms-overflow-style:none}.mdc-tab-scroller__scroll-content{padding:0.5rem 0.75rem 0 0.75rem;background-color:rgb(var(--contrast-300))}:host{display:block;position:relative}:host(.has-tabs-with-equal-width) .mdc-tab{flex:1 0 auto}.mdc-tab-indicator .mdc-tab-indicator__content{border:none}.mdc-tab__ripple{box-sizing:border-box;border-radius:0.625rem;border-style:solid;border-color:transparent;border-width:0.25rem;opacity:0.7}.mdc-tab__ripple:before,.mdc-tab__ripple:after{transition:background-color 0.5s ease}.mdc-tab{border-radius:0;letter-spacing:normal;padding-right:1.25rem;padding-left:1.25rem;min-width:2.5rem;background-color:transparent;flex:0 0 auto}.mdc-tab:not(.mdc-tab--active){--badge-background-color:rgb(var(--contrast-600))}.mdc-tab:not(.mdc-tab--active):after{content:\"\";display:block;background-color:rgb(var(--contrast-600));width:0.125rem;height:1rem;margin:auto;position:absolute;top:0;bottom:0;border-radius:1rem;right:-0.125rem}.mdc-tab:not(.mdc-tab--active):last-of-type:after{display:none}.mdc-tab--active{border-radius:0.625rem 0.625rem 0 0;background-color:rgb(var(--contrast-100));z-index:2}.mdc-tab--active:before,.mdc-tab--active:after{content:\"\";display:block;width:0.75rem;height:0.75rem;position:absolute;bottom:0;background-color:rgb(var(--contrast-100));-webkit-mask-image:url(\"data:image/svg+xml; utf8, <svg xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd' stroke-linejoin='round' stroke-miterlimit='2' clip-rule='evenodd' viewBox='0 0 50 50'><defs/><path d='M0 0c0 27.594 22.406 50 50 50H0V0z'/></svg>\");mask-image:url(\"data:image/svg+xml; utf8, <svg xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd' stroke-linejoin='round' stroke-miterlimit='2' clip-rule='evenodd' viewBox='0 0 50 50'><defs/><path d='M0 0c0 27.594 22.406 50 50 50H0V0z'/></svg>\")}.mdc-tab--active:before{left:-0.75rem;transform:rotateY(180deg)}.mdc-tab--active:after{right:-0.75rem}.mdc-tab--active .mdc-ripple-upgraded--background-focused:before{background-color:transparent;transition:background-color 1s ease}.mdc-tab__content{gap:0.375rem}.mdc-tab__text-label{padding-left:0 !important}";export{st as limel_tab_bar}
@@ -1 +1 @@
1
- import{r,c as o,h as a,g as l}from"./p-92146da6.js";import{t as e}from"./p-3bf54a4c.js";import{c as t}from"./p-6c094f3f.js";import{M as i}from"./p-668795a7.js";import"./p-076bd4dc.js";import"./p-902347b9.js";import"./p-dcc97cc2.js";import"./p-ace9affc.js";const g="ms_word_copyrighted",c="ms_powerpoint_copyrighted",s={msg:"ms_outlook_copyrighted",ics:"tear_off_calendar",ical:"tear_off_calendar",icalendar:"tear_off_calendar",ifb:"tear_off_calendar",email:"email",eml:"email",oft:"email",ost:"email",emlx:"email",html:"internet",xml:"internet",txt:"text_box",rtf:"text_box",dot:g,doc:g,docx:g,dotx:g,docm:g,dotm:g,odt:"overview_pages_2",pages:"overview_pages_2",pdf:"PDF_2",ppt:c,pot:c,pps:c,pptx:c,pptm:c,potx:c,potm:c,ppam:c,ppsx:c,ppsm:c,sldx:c,sldm:c,odp:"presentation_filled",key:"presentation_filled",xls:"ms_excel_copyrighted",xlsx:"ms_excel_copyrighted",csv:"data_sheet",numbers:"data_sheet",jpg:"camera",jpeg:"camera",heic:"camera",bmp:"picture",png:"picture",gif:"picture",psd:"adobe_photoshop_copyrighted",ai:"adobe_illustrator_copyrighted",svg:"vector",svgz:"vector",ep:"vector",eps:"vector",sketch:"vector",mp3:"audio_wave",wav:"audio_wave",wma:"audio_wave",ogg:"audio_wave",avi:"video_file",flv:"video_file",h264:"video_file",mov:"video_file",mp4:"video_file",mwv:"video_file",zip:"condom_package","7z":"condom_package",rar:"condom_package",json:"json",yaml:"database",sql:"database",db:"database",dbf:"database"},d="rgb(var(--color-glaucous-dark))",h={msg:"rgb(var(--color-yellow-dark))",ics:"rgb(var(--color-cyan-dark))",ical:"rgb(var(--color-cyan-dark))",icalendar:"rgb(var(--color-cyan-dark))",ifb:"rgb(var(--color-cyan-dark))",email:"rgb(var(--color-gray-dark))",eml:"rgb(var(--color-gray-dark))",oft:"rgb(var(--color-gray-dark))",ost:"rgb(var(--color-gray-dark))",emlx:"rgb(var(--color-gray-dark))",html:"rgb(var(--color-blue-dark))",xml:"rgb(var(--color-blue-dark))",txt:"rgb(var(--color-yellow-darker))",rtf:"rgb(var(--color-yellow-darker))",dot:"rgb(var(--color-sky-dark))",doc:"rgb(var(--color-sky-dark))",docx:"rgb(var(--color-sky-dark))",dotx:"rgb(var(--color-sky-dark))",docm:"rgb(var(--color-sky-dark))",dotm:"rgb(var(--color-sky-dark))",odt:"rgb(var(--color-orange-dark))",pages:"rgb(var(--color-orange-dark))",pdf:"rgb(var(--color-red-dark))",ppt:"rgb(var(--color-coral-dark))",pot:"rgb(var(--color-coral-dark))",pps:"rgb(var(--color-coral-dark))",pptx:"rgb(var(--color-coral-dark))",pptm:"rgb(var(--color-coral-dark))",potx:"rgb(var(--color-coral-dark))",potm:"rgb(var(--color-coral-dark))",ppam:"rgb(var(--color-coral-dark))",ppsx:"rgb(var(--color-coral-dark))",ppsm:"rgb(var(--color-coral-dark))",sldx:"rgb(var(--color-coral-dark))",sldm:"rgb(var(--color-coral-dark))",odp:"rgb(var(--color-blue-dark))",key:"rgb(var(--color-blue-dark))",xls:"rgb(var(--color-green-dark))",xlsx:"rgb(var(--color-green-dark))",csv:"rgb(var(--color-gray-dark))",numbers:"rgb(var(--color-green-dark))",bmp:"rgb(var(--color-lime-dark))",jpg:"rgb(var(--color-lime-dark))",jpeg:"rgb(var(--color-lime-dark))",heic:"rgb(var(--color-lime-dark))",png:"rgb(var(--color-lime-dark))",gif:"rgb(var(--color-lime-dark))",psd:"rgb(var(--color-blue-dark))",ai:"rgb(var(--color-orange-dark))",svg:"rgb(var(--color-magenta-dark))",svgz:"rgb(var(--color-magenta-dark))",ep:"rgb(var(--color-magenta-dark))",eps:"rgb(var(--color-magenta-dark))",sketch:"rgb(var(--color-magenta-dark))",mp3:"rgb(var(--color-indigo-dark))",wav:"rgb(var(--color-indigo-dark))",wma:"rgb(var(--color-indigo-dark))",ogg:"rgb(var(--color-indigo-dark))",flv:"rgb(var(--color-red-dark))",h264:"rgb(var(--color-red-dark))",mov:"rgb(var(--color-red-dark))",mp4:"rgb(var(--color-red-dark))",mwv:"rgb(var(--color-red-dark))",zip:"rgb(var(--color-brown-default))","7z":"rgb(var(--color-brown-default))",rar:"rgb(var(--color-brown-default))",json:d,yaml:d,sql:d,db:d,dbf:d},n="rgba(var(--color-coral-lighter), 0.4)",v="rgba(var(--color-sky-lighter), 0.4)",b="rgba(var(--color-glaucous-lighter), 0.4)",p={msg:"rgba(var(--color-yellow-lighter), 0.4)",ics:"rgba(var(--color-cyan-lighter), 0.4)",ical:"rgba(var(--color-cyan-lighter), 0.4)",icalendar:"rgba(var(--color-cyan-lighter), 0.4)",ifb:"rgba(var(--color-cyan-lighter), 0.4)",email:"rgba(var(--color-gray-lighter), 0.4)",eml:"rgba(var(--color-gray-lighter), 0.4)",oft:"rgba(var(--color-gray-lighter), 0.4)",ost:"rgba(var(--color-gray-lighter), 0.4)",emlx:"rgba(var(--color-gray-lighter), 0.4)",html:"rgba(var(--color-blue-lighter), 0.4)",xml:"rgba(var(--color-blue-lighter), 0.4)",txt:"rgba(var(--color-yellow-lighter), 0.4)",rtf:"rgba(var(--color-yellow-lighter), 0.4)",dot:v,doc:v,docx:v,dotx:v,docm:v,dotm:v,odt:"rgba(var(--color-orange-lighter), 0.4)",pages:"rgba(var(--color-orange-lighter), 0.4)",pdf:"rgba(var(--color-red-lighter), 0.4)",ppt:n,pot:n,pps:n,pptx:n,pptm:n,potx:n,potm:n,ppam:n,ppsx:n,ppsm:n,sldx:n,sldm:n,odp:"rgba(var(--color-blue-lighter), 0.4)",key:"rgba(var(--color-blue-lighter), 0.4)",xls:"rgba(var(--color-green-lighter), 0.4)",xlsx:"rgba(var(--color-green-lighter), 0.4)",csv:"rgba(var(--color-gray-lighter), 0.4)",numbers:"rgba(var(--color-green-lighter), 0.4)",bmp:"rgba(var(--color-lime-lighter), 0.4)",jpg:"rgba(var(--color-lime-lighter), 0.4)",jpeg:"rgba(var(--color-lime-lighter), 0.4)",heic:"rgba(var(--color-lime-lighter), 0.4)",png:"rgba(var(--color-lime-lighter), 0.4)",gif:"rgba(var(--color-lime-lighter), 0.4)",psd:"rgba(var(--color-blue-lighter), 0.4)",ai:"rgba(var(--color-orange-lighter), 0.4)",svg:"rgba(var(--color-magenta-lighter), 0.4)",svgz:"rgba(var(--color-magenta-lighter), 0.4)",ep:"rgba(var(--color-magenta-lighter), 0.4)",eps:"rgba(var(--color-magenta-lighter), 0.4)",sketch:"rgba(var(--color-magenta-lighter), 0.4)",mp3:"rgba(var(--color-indigo-lighter), 0.4)",wav:"rgba(var(--color-indigo-lighter), 0.4)",wma:"rgba(var(--color-indigo-lighter), 0.4)",ogg:"rgba(var(--color-indigo-lighter), 0.4)",flv:"rgba(var(--color-red-lighter), 0.4)",h264:"rgba(var(--color-red-lighter), 0.4)",mov:"rgba(var(--color-red-lighter), 0.4)",mp4:"rgba(var(--color-red-lighter), 0.4)",mwv:"rgba(var(--color-red-lighter), 0.4)",zip:"rgba(var(--color-orange-lighter), 0.4)","7z":"rgba(var(--color-orange-lighter), 0.4)",rar:"rgba(var(--color-orange-lighter), 0.4)",json:b,yaml:b,sql:b,db:b,dbf:b};function m(r){if(null==r?void 0:r.icon)return r.icon;const o=u(r);return o?function(r){return s[r]||"file"}(o):void 0}function k(r){if(null==r?void 0:r.iconColor)return r.iconColor;const o=u(r);return o?function(r){return h[r]||"rgb(var(--color-gray-dark))"}(o):void 0}function f(r){if(null==r?void 0:r.iconBackgroundColor)return r.iconBackgroundColor;const o=u(r);return o?function(r){return p[r]||"rgba(var(--color-gray-lighter), 0.4)"}(o):void 0}function u(r){if(r)return r.filename.split(".").pop()}const y={id:null,text:null,removable:!0};let _=class{constructor(a){r(this,a),this.change=o(this,"change",7),this.interact=o(this,"interact",7),this.required=!1,this.disabled=!1,this.readonly=!1,this.accept="*",this.language="en",this.isDraggingOverDropZone=!1,this.fileInputId=t(),this.handleDragEnter=r=>{this.isDraggingOverDropZone=!0,this.preventAndStop(r)},this.handleDragLeave=()=>{this.isDraggingOverDropZone=!1},this.handleFileDrop=r=>{this.preventAndStop(r),this.isDraggingOverDropZone=!1,this.handleFile(r.dataTransfer.files[0])},this.handleFileSelection=this.handleFileSelection.bind(this),this.handleFileChange=this.handleFileChange.bind(this),this.handleChipSetChange=this.handleChipSetChange.bind(this),this.handleFileDrop=this.handleFileDrop.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleKeyUp=this.handleKeyUp.bind(this),this.handleChipInteract=this.handleChipInteract.bind(this)}connectedCallback(){this.initialize()}componentDidLoad(){this.fileInput=this.element.shadowRoot.getElementById(this.fileInputId),this.chipSet=this.element.shadowRoot.querySelector("limel-chip-set"),this.initialize()}initialize(){this.chipSet&&(this.mdcTextField=new i(this.chipSet.shadowRoot.querySelector(".mdc-text-field")))}disconnectedCallback(){this.mdcTextField&&this.mdcTextField.destroy()}render(){return[a("input",{hidden:!0,id:this.fileInputId,onChange:this.handleFileChange,type:"file",accept:this.accept,disabled:this.disabled||this.readonly}),a("limel-chip-set",{class:{"is-file-picker":!0,"shows-dropzone":!0,"highlight-dropzone":this.isDraggingOverDropZone},disabled:this.disabled,readonly:this.readonly,label:this.label,leadingIcon:"upload_to_cloud",language:this.language,onChange:this.handleChipSetChange,onClick:this.handleFileSelection,onInteract:this.handleChipInteract,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,required:this.required,type:"input",value:this.chipArray,title:this.getTranslation("drag-and-drop-tips"),onDragEnter:this.handleDragEnter,onDragOver:this.preventAndStop,onDragLeave:this.handleDragLeave,onDrop:this.handleFileDrop})]}get chipArray(){return this.value?[Object.assign(Object.assign({},y),{text:this.value.filename,id:this.value.id,icon:m(this.value),iconFillColor:k(this.value),iconBackgroundColor:f(this.value),href:this.value.href,iconTitle:(r=this.value,(null==r?void 0:r.icon)?r.icon:u(r))})]:[];var r}handleKeyDown(r){"Tab"!==r.code&&"Backspace"!==r.code&&"Enter"!==r.code&&(r.preventDefault(),r.stopPropagation())}handleKeyUp(r){"Enter"!==r.code||this.value||this.fileInput.click()}handleFileSelection(r){r.stopPropagation(),r.preventDefault(),this.value||this.fileInput.click()}handleFileChange(r){this.fileInput.files.length>0&&(r.stopPropagation(),this.handleFile(this.fileInput.files[0]))}handleFile(r){const o={id:t(),filename:r.name,contentType:r.type,size:r.size,fileContent:r};this.change.emit(o),this.chipSet.blur(),this.mdcTextField.valid=!0}handleChipSetChange(r){r.stopPropagation();const o=r.detail.length?null:r.detail[0];this.chipSet.blur(),o||(this.fileInput.value="",this.change.emit(o),this.required&&(this.mdcTextField.valid=!1))}handleChipInteract(r){r.stopPropagation(),r.preventDefault(),this.interact.emit(r.detail.id)}preventAndStop(r){r.stopPropagation(),r.preventDefault()}getTranslation(r){return e.get(`file.${r}`,this.language)}get element(){return l(this)}};_.style=":host{--icon-background-color:rgb(var(--contrast-400));--icon-color:rgb(var(--contrast-1100))}";export{_ as limel_file}
1
+ import{r,c as o,h as a,g as e}from"./p-e9a95b8f.js";import{t as l}from"./p-3bf54a4c.js";import{c as t}from"./p-6c094f3f.js";import{M as i}from"./p-1c284626.js";import"./p-48d4ef20.js";import"./p-cbc43682.js";import"./p-dcc97cc2.js";import"./p-d0a7de87.js";const g="ms_word_copyrighted",c="ms_powerpoint_copyrighted",s={msg:"ms_outlook_copyrighted",ics:"tear_off_calendar",ical:"tear_off_calendar",icalendar:"tear_off_calendar",ifb:"tear_off_calendar",email:"email",eml:"email",oft:"email",ost:"email",emlx:"email",html:"internet",xml:"internet",txt:"text_box",rtf:"text_box",dot:g,doc:g,docx:g,dotx:g,docm:g,dotm:g,odt:"overview_pages_2",pages:"overview_pages_2",pdf:"PDF_2",ppt:c,pot:c,pps:c,pptx:c,pptm:c,potx:c,potm:c,ppam:c,ppsx:c,ppsm:c,sldx:c,sldm:c,odp:"presentation_filled",key:"presentation_filled",xls:"ms_excel_copyrighted",xlsx:"ms_excel_copyrighted",csv:"data_sheet",numbers:"data_sheet",jpg:"camera",jpeg:"camera",heic:"camera",bmp:"picture",png:"picture",gif:"picture",psd:"adobe_photoshop_copyrighted",ai:"adobe_illustrator_copyrighted",svg:"vector",svgz:"vector",ep:"vector",eps:"vector",sketch:"vector",mp3:"audio_wave",wav:"audio_wave",wma:"audio_wave",ogg:"audio_wave",avi:"video_file",flv:"video_file",h264:"video_file",mov:"video_file",mp4:"video_file",mwv:"video_file",zip:"condom_package","7z":"condom_package",rar:"condom_package",json:"json",yaml:"database",sql:"database",db:"database",dbf:"database"},d="rgb(var(--color-glaucous-dark))",h={msg:"rgb(var(--color-yellow-dark))",ics:"rgb(var(--color-cyan-dark))",ical:"rgb(var(--color-cyan-dark))",icalendar:"rgb(var(--color-cyan-dark))",ifb:"rgb(var(--color-cyan-dark))",email:"rgb(var(--color-gray-dark))",eml:"rgb(var(--color-gray-dark))",oft:"rgb(var(--color-gray-dark))",ost:"rgb(var(--color-gray-dark))",emlx:"rgb(var(--color-gray-dark))",html:"rgb(var(--color-blue-dark))",xml:"rgb(var(--color-blue-dark))",txt:"rgb(var(--color-yellow-darker))",rtf:"rgb(var(--color-yellow-darker))",dot:"rgb(var(--color-sky-dark))",doc:"rgb(var(--color-sky-dark))",docx:"rgb(var(--color-sky-dark))",dotx:"rgb(var(--color-sky-dark))",docm:"rgb(var(--color-sky-dark))",dotm:"rgb(var(--color-sky-dark))",odt:"rgb(var(--color-orange-dark))",pages:"rgb(var(--color-orange-dark))",pdf:"rgb(var(--color-red-dark))",ppt:"rgb(var(--color-coral-dark))",pot:"rgb(var(--color-coral-dark))",pps:"rgb(var(--color-coral-dark))",pptx:"rgb(var(--color-coral-dark))",pptm:"rgb(var(--color-coral-dark))",potx:"rgb(var(--color-coral-dark))",potm:"rgb(var(--color-coral-dark))",ppam:"rgb(var(--color-coral-dark))",ppsx:"rgb(var(--color-coral-dark))",ppsm:"rgb(var(--color-coral-dark))",sldx:"rgb(var(--color-coral-dark))",sldm:"rgb(var(--color-coral-dark))",odp:"rgb(var(--color-blue-dark))",key:"rgb(var(--color-blue-dark))",xls:"rgb(var(--color-green-dark))",xlsx:"rgb(var(--color-green-dark))",csv:"rgb(var(--color-gray-dark))",numbers:"rgb(var(--color-green-dark))",bmp:"rgb(var(--color-lime-dark))",jpg:"rgb(var(--color-lime-dark))",jpeg:"rgb(var(--color-lime-dark))",heic:"rgb(var(--color-lime-dark))",png:"rgb(var(--color-lime-dark))",gif:"rgb(var(--color-lime-dark))",psd:"rgb(var(--color-blue-dark))",ai:"rgb(var(--color-orange-dark))",svg:"rgb(var(--color-magenta-dark))",svgz:"rgb(var(--color-magenta-dark))",ep:"rgb(var(--color-magenta-dark))",eps:"rgb(var(--color-magenta-dark))",sketch:"rgb(var(--color-magenta-dark))",mp3:"rgb(var(--color-indigo-dark))",wav:"rgb(var(--color-indigo-dark))",wma:"rgb(var(--color-indigo-dark))",ogg:"rgb(var(--color-indigo-dark))",flv:"rgb(var(--color-red-dark))",h264:"rgb(var(--color-red-dark))",mov:"rgb(var(--color-red-dark))",mp4:"rgb(var(--color-red-dark))",mwv:"rgb(var(--color-red-dark))",zip:"rgb(var(--color-brown-default))","7z":"rgb(var(--color-brown-default))",rar:"rgb(var(--color-brown-default))",json:d,yaml:d,sql:d,db:d,dbf:d},n="rgba(var(--color-coral-lighter), 0.4)",v="rgba(var(--color-sky-lighter), 0.4)",b="rgba(var(--color-glaucous-lighter), 0.4)",p={msg:"rgba(var(--color-yellow-lighter), 0.4)",ics:"rgba(var(--color-cyan-lighter), 0.4)",ical:"rgba(var(--color-cyan-lighter), 0.4)",icalendar:"rgba(var(--color-cyan-lighter), 0.4)",ifb:"rgba(var(--color-cyan-lighter), 0.4)",email:"rgba(var(--color-gray-lighter), 0.4)",eml:"rgba(var(--color-gray-lighter), 0.4)",oft:"rgba(var(--color-gray-lighter), 0.4)",ost:"rgba(var(--color-gray-lighter), 0.4)",emlx:"rgba(var(--color-gray-lighter), 0.4)",html:"rgba(var(--color-blue-lighter), 0.4)",xml:"rgba(var(--color-blue-lighter), 0.4)",txt:"rgba(var(--color-yellow-lighter), 0.4)",rtf:"rgba(var(--color-yellow-lighter), 0.4)",dot:v,doc:v,docx:v,dotx:v,docm:v,dotm:v,odt:"rgba(var(--color-orange-lighter), 0.4)",pages:"rgba(var(--color-orange-lighter), 0.4)",pdf:"rgba(var(--color-red-lighter), 0.4)",ppt:n,pot:n,pps:n,pptx:n,pptm:n,potx:n,potm:n,ppam:n,ppsx:n,ppsm:n,sldx:n,sldm:n,odp:"rgba(var(--color-blue-lighter), 0.4)",key:"rgba(var(--color-blue-lighter), 0.4)",xls:"rgba(var(--color-green-lighter), 0.4)",xlsx:"rgba(var(--color-green-lighter), 0.4)",csv:"rgba(var(--color-gray-lighter), 0.4)",numbers:"rgba(var(--color-green-lighter), 0.4)",bmp:"rgba(var(--color-lime-lighter), 0.4)",jpg:"rgba(var(--color-lime-lighter), 0.4)",jpeg:"rgba(var(--color-lime-lighter), 0.4)",heic:"rgba(var(--color-lime-lighter), 0.4)",png:"rgba(var(--color-lime-lighter), 0.4)",gif:"rgba(var(--color-lime-lighter), 0.4)",psd:"rgba(var(--color-blue-lighter), 0.4)",ai:"rgba(var(--color-orange-lighter), 0.4)",svg:"rgba(var(--color-magenta-lighter), 0.4)",svgz:"rgba(var(--color-magenta-lighter), 0.4)",ep:"rgba(var(--color-magenta-lighter), 0.4)",eps:"rgba(var(--color-magenta-lighter), 0.4)",sketch:"rgba(var(--color-magenta-lighter), 0.4)",mp3:"rgba(var(--color-indigo-lighter), 0.4)",wav:"rgba(var(--color-indigo-lighter), 0.4)",wma:"rgba(var(--color-indigo-lighter), 0.4)",ogg:"rgba(var(--color-indigo-lighter), 0.4)",flv:"rgba(var(--color-red-lighter), 0.4)",h264:"rgba(var(--color-red-lighter), 0.4)",mov:"rgba(var(--color-red-lighter), 0.4)",mp4:"rgba(var(--color-red-lighter), 0.4)",mwv:"rgba(var(--color-red-lighter), 0.4)",zip:"rgba(var(--color-orange-lighter), 0.4)","7z":"rgba(var(--color-orange-lighter), 0.4)",rar:"rgba(var(--color-orange-lighter), 0.4)",json:b,yaml:b,sql:b,db:b,dbf:b};function m(r){if(null==r?void 0:r.icon)return r.icon;const o=u(r);return o?function(r){return s[r.toLowerCase()]||"file"}(o):void 0}function k(r){if(null==r?void 0:r.iconColor)return r.iconColor;const o=u(r);return o?function(r){return h[r.toLowerCase()]||"rgb(var(--color-gray-dark))"}(o):void 0}function f(r){if(null==r?void 0:r.iconBackgroundColor)return r.iconBackgroundColor;const o=u(r);return o?function(r){return p[r.toLowerCase()]||"rgba(var(--color-gray-lighter), 0.4)"}(o):void 0}function u(r){if(r)return r.filename.split(".").pop()}const y={id:null,text:null,removable:!0},_=class{constructor(a){r(this,a),this.change=o(this,"change",7),this.interact=o(this,"interact",7),this.required=!1,this.disabled=!1,this.readonly=!1,this.accept="*",this.language="en",this.isDraggingOverDropZone=!1,this.fileInputId=t(),this.handleDragEnter=r=>{this.isDraggingOverDropZone=!0,this.preventAndStop(r)},this.handleDragLeave=()=>{this.isDraggingOverDropZone=!1},this.handleFileDrop=r=>{this.preventAndStop(r),this.isDraggingOverDropZone=!1,this.handleFile(r.dataTransfer.files[0])},this.handleFileSelection=this.handleFileSelection.bind(this),this.handleFileChange=this.handleFileChange.bind(this),this.handleChipSetChange=this.handleChipSetChange.bind(this),this.handleFileDrop=this.handleFileDrop.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleKeyUp=this.handleKeyUp.bind(this),this.handleChipInteract=this.handleChipInteract.bind(this)}connectedCallback(){this.initialize()}componentDidLoad(){this.fileInput=this.element.shadowRoot.getElementById(this.fileInputId),this.chipSet=this.element.shadowRoot.querySelector("limel-chip-set"),this.initialize()}initialize(){this.chipSet&&(this.mdcTextField=new i(this.chipSet.shadowRoot.querySelector(".mdc-text-field")))}disconnectedCallback(){this.mdcTextField&&this.mdcTextField.destroy()}render(){return[a("input",{hidden:!0,id:this.fileInputId,onChange:this.handleFileChange,type:"file",accept:this.accept,disabled:this.disabled||this.readonly}),a("limel-chip-set",{class:{"is-file-picker":!0,"shows-dropzone":!0,"highlight-dropzone":this.isDraggingOverDropZone},disabled:this.disabled,readonly:this.readonly,label:this.label,leadingIcon:"upload_to_cloud",language:this.language,onChange:this.handleChipSetChange,onClick:this.handleFileSelection,onInteract:this.handleChipInteract,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,required:this.required,type:"input",value:this.chipArray,title:this.getTranslation("drag-and-drop-tips"),onDragEnter:this.handleDragEnter,onDragOver:this.preventAndStop,onDragLeave:this.handleDragLeave,onDrop:this.handleFileDrop})]}get chipArray(){return this.value?[Object.assign(Object.assign({},y),{text:this.value.filename,id:this.value.id,icon:m(this.value),iconFillColor:k(this.value),iconBackgroundColor:f(this.value),href:this.value.href,iconTitle:(r=this.value,(null==r?void 0:r.icon)?r.icon:u(r))})]:[];var r}handleKeyDown(r){"Tab"!==r.code&&"Backspace"!==r.code&&"Enter"!==r.code&&(r.preventDefault(),r.stopPropagation())}handleKeyUp(r){"Enter"!==r.code||this.value||this.fileInput.click()}handleFileSelection(r){r.stopPropagation(),r.preventDefault(),this.value||this.fileInput.click()}handleFileChange(r){this.fileInput.files.length>0&&(r.stopPropagation(),this.handleFile(this.fileInput.files[0]))}handleFile(r){const o={id:t(),filename:r.name,contentType:r.type,size:r.size,fileContent:r};this.change.emit(o),this.chipSet.blur(),this.mdcTextField.valid=!0}handleChipSetChange(r){r.stopPropagation();const o=r.detail.length?null:r.detail[0];this.chipSet.blur(),o||(this.fileInput.value="",this.change.emit(o),this.required&&(this.mdcTextField.valid=!1))}handleChipInteract(r){r.stopPropagation(),r.preventDefault(),this.interact.emit(r.detail.id)}preventAndStop(r){r.stopPropagation(),r.preventDefault()}getTranslation(r){return l.get(`file.${r}`,this.language)}get element(){return e(this)}};_.style=":host{--icon-background-color:rgb(var(--contrast-400));--icon-color:rgb(var(--contrast-1100))}";export{_ as limel_file}
@@ -0,0 +1 @@
1
+ import{r as i,c,h as e}from"./p-e9a95b8f.js";import{c as r}from"./p-6c094f3f.js";const t=class{constructor(e){i(this,e),this.change=c(this,"change",7),this.value=[],this.disabled=!1,this.radioGroupName=r(),this.renderButton=this.renderButton.bind(this),this.onChange=this.onChange.bind(this),this.renderContent=this.renderContent.bind(this)}componentWillLoad(){var i;this.selectedButtonId=null===(i=this.value.find((i=>i.selected)))||void 0===i?void 0:i.id}render(){return e("div",{class:{"mdc-chip-set":!0,disabled:this.disabled,"mdc-chip-set--choice":!0},role:"grid"},this.value.map(this.renderButton))}renderButton(i){const c=`b${i.id}`,r={"mdc-chip":!0,"mdc-chip--selected":this.isButtonChecked(i)};return e("div",{class:r,role:"row"},e("span",{role:"gridcell"},e("input",{type:"radio",name:this.radioGroupName,checked:this.isButtonChecked(i),id:c,onChange:this.onChange}),e("label",{htmlFor:c},this.renderContent(i))))}renderContent(i){return i.icon?this.renderIcon(i):this.renderLabel(i)}isButtonChecked(i){return i.id===this.selectedButtonId}renderLabel(i){return e("span",{class:"mdc-chip__text"},i.title)}renderIcon(i){const c=`i${i.id}`;return[e("limel-icon",{id:c,class:"mdc-chip__icon","aria-label":i.title,name:i.icon,size:"small",badge:!0}),e("limel-tooltip",{elementId:c,label:i.title})]}onChange(i){i.stopPropagation(),this.selectedButtonId=i.target.id.substr(1);const c=this.value.find((i=>i.id===this.selectedButtonId));this.change.emit(c)}};t.style=':host{--mdc-theme-primary:var(\n --lime-primary-color,\n rgb(var(--color-teal-default))\n );--mdc-theme-secondary:var(\n --lime-secondary-color,\n rgb(var(--contrast-1100))\n );--mdc-theme-on-primary:var(\n --lime-on-primary-color,\n rgb(var(--contrast-100))\n );--mdc-theme-on-secondary:var(\n --lime-on-secondary-color,\n rgb(var(--contrast-100))\n );--mdc-theme-text-disabled-on-background:var(\n --lime-text-disabled-on-background-color,\n rgba(var(--contrast-1700), 0.38)\n );--mdc-theme-text-primary-on-background:var(\n --lime-text-primary-on-background-color,\n rgba(var(--contrast-1700), 0.87)\n );--mdc-theme-text-secondary-on-background:var(\n --lime-text-secondary-on-background-color,\n rgba(var(--contrast-1700), 0.54)\n );--lime-error-text-color:rgb(var(--color-red-darker));--mdc-theme-surface:var(\n --lime-surface-background-color,\n rgb(var(--contrast-100))\n );--mdc-theme-on-surface:var(\n --lime-on-surface-color,\n var(--lime-text-primary-on-background-color)\n )}.mdc-touch-target-wrapper{display:inline}.mdc-deprecated-chip-trailing-action__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mdc-deprecated-chip-trailing-action{border:none;display:inline-flex;position:relative;align-items:center;justify-content:center;box-sizing:border-box;padding:0;outline:none;cursor:pointer;-webkit-appearance:none;background:none}.mdc-deprecated-chip-trailing-action .mdc-deprecated-chip-trailing-action__icon{height:18px;width:18px;font-size:18px}.mdc-deprecated-chip-trailing-action .mdc-deprecated-chip-trailing-action{color:#000;color:var(--mdc-theme-on-surface, #000)}.mdc-deprecated-chip-trailing-action .mdc-deprecated-chip-trailing-action__touch{width:26px}.mdc-deprecated-chip-trailing-action .mdc-deprecated-chip-trailing-action__icon{fill:currentColor;color:inherit}@keyframes mdc-ripple-fg-radius-in{from{animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transform:translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1)}to{transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}}@keyframes mdc-ripple-fg-opacity-in{from{animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity, 0)}}@keyframes mdc-ripple-fg-opacity-out{from{animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity, 0)}to{opacity:0}}.mdc-deprecated-chip-trailing-action{--mdc-ripple-fg-size:0;--mdc-ripple-left:0;--mdc-ripple-top:0;--mdc-ripple-fg-scale:1;--mdc-ripple-fg-translate-end:0;--mdc-ripple-fg-translate-start:0;-webkit-tap-highlight-color:rgba(0, 0, 0, 0);will-change:transform, opacity}.mdc-deprecated-chip-trailing-action .mdc-deprecated-chip-trailing-action__ripple::before,.mdc-deprecated-chip-trailing-action .mdc-deprecated-chip-trailing-action__ripple::after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:""}.mdc-deprecated-chip-trailing-action .mdc-deprecated-chip-trailing-action__ripple::before{transition:opacity 15ms linear, background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index, 1)}.mdc-deprecated-chip-trailing-action .mdc-deprecated-chip-trailing-action__ripple::after{z-index:0;z-index:var(--mdc-ripple-z-index, 0)}.mdc-deprecated-chip-trailing-action.mdc-ripple-upgraded .mdc-deprecated-chip-trailing-action__ripple::before{transform:scale(var(--mdc-ripple-fg-scale, 1))}.mdc-deprecated-chip-trailing-action.mdc-ripple-upgraded .mdc-deprecated-chip-trailing-action__ripple::after{top:0;left:0;transform:scale(0);transform-origin:center center}.mdc-deprecated-chip-trailing-action.mdc-ripple-upgraded--unbounded .mdc-deprecated-chip-trailing-action__ripple::after{top:var(--mdc-ripple-top, 0);left:var(--mdc-ripple-left, 0)}.mdc-deprecated-chip-trailing-action.mdc-ripple-upgraded--foreground-activation .mdc-deprecated-chip-trailing-action__ripple::after{animation:mdc-ripple-fg-radius-in 225ms forwards, mdc-ripple-fg-opacity-in 75ms forwards}.mdc-deprecated-chip-trailing-action.mdc-ripple-upgraded--foreground-deactivation .mdc-deprecated-chip-trailing-action__ripple::after{animation:mdc-ripple-fg-opacity-out 150ms;transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}.mdc-deprecated-chip-trailing-action .mdc-deprecated-chip-trailing-action__ripple::before,.mdc-deprecated-chip-trailing-action .mdc-deprecated-chip-trailing-action__ripple::after{top:calc(50% - 50%);left:calc(50% - 50%);width:100%;height:100%}.mdc-deprecated-chip-trailing-action.mdc-ripple-upgraded .mdc-deprecated-chip-trailing-action__ripple::before,.mdc-deprecated-chip-trailing-action.mdc-ripple-upgraded .mdc-deprecated-chip-trailing-action__ripple::after{top:var(--mdc-ripple-top, calc(50% - 50%));left:var(--mdc-ripple-left, calc(50% - 50%));width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-deprecated-chip-trailing-action.mdc-ripple-upgraded .mdc-deprecated-chip-trailing-action__ripple::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-deprecated-chip-trailing-action .mdc-deprecated-chip-trailing-action__ripple::before,.mdc-deprecated-chip-trailing-action .mdc-deprecated-chip-trailing-action__ripple::after{background-color:#000;background-color:var(--mdc-ripple-color, var(--mdc-theme-on-surface, #000))}.mdc-deprecated-chip-trailing-action:hover .mdc-deprecated-chip-trailing-action__ripple::before,.mdc-deprecated-chip-trailing-action.mdc-ripple-surface--hover .mdc-deprecated-chip-trailing-action__ripple::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-deprecated-chip-trailing-action.mdc-ripple-upgraded--background-focused .mdc-deprecated-chip-trailing-action__ripple::before,.mdc-deprecated-chip-trailing-action:not(.mdc-ripple-upgraded):focus .mdc-deprecated-chip-trailing-action__ripple::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-deprecated-chip-trailing-action:not(.mdc-ripple-upgraded) .mdc-deprecated-chip-trailing-action__ripple::after{transition:opacity 150ms linear}.mdc-deprecated-chip-trailing-action:not(.mdc-ripple-upgraded):active .mdc-deprecated-chip-trailing-action__ripple::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-deprecated-chip-trailing-action.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-deprecated-chip-trailing-action .mdc-deprecated-chip-trailing-action__ripple{position:absolute;box-sizing:content-box;width:100%;height:100%;overflow:hidden}.mdc-chip__icon--leading{color:rgba(0, 0, 0, 0.54)}.mdc-deprecated-chip-trailing-action{color:#000}.mdc-chip__icon--trailing{color:rgba(0, 0, 0, 0.54)}.mdc-chip__icon--trailing:hover{color:rgba(0, 0, 0, 0.62)}.mdc-chip__icon--trailing:focus{color:rgba(0, 0, 0, 0.87)}.mdc-chip__icon.mdc-chip__icon--leading:not(.mdc-chip__icon--leading-hidden){width:20px;height:20px;font-size:20px}.mdc-deprecated-chip-trailing-action__icon{height:18px;width:18px;font-size:18px}.mdc-chip__icon.mdc-chip__icon--trailing{width:18px;height:18px;font-size:18px}.mdc-deprecated-chip-trailing-action{margin-left:4px;margin-right:-4px}[dir=rtl] .mdc-deprecated-chip-trailing-action,.mdc-deprecated-chip-trailing-action[dir=rtl]{margin-left:-4px;margin-right:4px;}.mdc-chip__icon--trailing{margin-left:4px;margin-right:-4px}[dir=rtl] .mdc-chip__icon--trailing,.mdc-chip__icon--trailing[dir=rtl]{margin-left:-4px;margin-right:4px;}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:0;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1);background-color:#fff;background-color:var(--mdc-elevation-overlay-color, #fff)}.mdc-chip{border-radius:16px;background-color:#e0e0e0;color:rgba(0, 0, 0, 0.87);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.8125rem;font-size:var(--mdc-typography-body2-font-size, 0.8125rem);line-height:1.625rem;line-height:var(--mdc-typography-body2-line-height, 1.625rem);font-weight:400;font-weight:var(--mdc-typography-body2-font-weight, 400);letter-spacing:0.0178571429em;letter-spacing:var(--mdc-typography-body2-letter-spacing, 0.0178571429em);text-decoration:inherit;text-decoration:var(--mdc-typography-body2-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-body2-text-transform, inherit);height:32px;position:relative;display:inline-flex;align-items:center;box-sizing:border-box;padding:0 12px;border-width:0;outline:none;cursor:pointer;-webkit-appearance:none}.mdc-chip .mdc-chip__ripple{border-radius:16px}.mdc-chip:hover{color:rgba(0, 0, 0, 0.87)}.mdc-chip.mdc-chip--selected .mdc-chip__checkmark,.mdc-chip .mdc-chip__icon--leading:not(.mdc-chip__icon--leading-hidden){margin-left:-4px;margin-right:4px}[dir=rtl] .mdc-chip.mdc-chip--selected .mdc-chip__checkmark,[dir=rtl] .mdc-chip .mdc-chip__icon--leading:not(.mdc-chip__icon--leading-hidden),.mdc-chip.mdc-chip--selected .mdc-chip__checkmark[dir=rtl],.mdc-chip .mdc-chip__icon--leading:not(.mdc-chip__icon--leading-hidden)[dir=rtl]{margin-left:4px;margin-right:-4px;}.mdc-chip .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-chip::-moz-focus-inner{padding:0;border:0}.mdc-chip:hover{color:#000;color:var(--mdc-theme-on-surface, #000)}.mdc-chip .mdc-chip__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-chip--exit{transition:opacity 75ms cubic-bezier(0.4, 0, 0.2, 1), width 150ms cubic-bezier(0, 0, 0.2, 1), padding 100ms linear, margin 100ms linear;opacity:0}.mdc-chip__overflow{text-overflow:ellipsis;overflow:hidden}.mdc-chip__text{white-space:nowrap}.mdc-chip__icon{border-radius:50%;outline:none;vertical-align:middle}.mdc-chip__checkmark{height:20px}.mdc-chip__checkmark-path{transition:stroke-dashoffset 150ms 50ms cubic-bezier(0.4, 0, 0.6, 1);stroke-width:2px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-chip__primary-action:focus{outline:none}.mdc-chip--selected .mdc-chip__checkmark-path{stroke-dashoffset:0}.mdc-chip__icon--leading,.mdc-chip__icon--trailing{position:relative}.mdc-chip-set--choice .mdc-chip.mdc-chip--selected{color:#26a69a;color:var(--mdc-theme-primary, #26a69a)}.mdc-chip-set--choice .mdc-chip.mdc-chip--selected .mdc-chip__icon--leading{color:rgba(38, 166, 154, 0.54)}.mdc-chip-set--choice .mdc-chip.mdc-chip--selected:hover{color:#26a69a;color:var(--mdc-theme-primary, #26a69a)}.mdc-chip-set--choice .mdc-chip .mdc-chip__checkmark-path{stroke:#26a69a;stroke:var(--mdc-theme-primary, #26a69a)}.mdc-chip-set--choice .mdc-chip--selected{background-color:#fff;background-color:var(--mdc-theme-surface, #fff)}.mdc-chip__checkmark-svg{width:0;height:20px;transition:width 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-chip--selected .mdc-chip__checkmark-svg{width:20px}.mdc-chip-set--filter .mdc-chip__icon--leading{transition:opacity 75ms linear;transition-delay:-50ms;opacity:1}.mdc-chip-set--filter .mdc-chip__icon--leading+.mdc-chip__checkmark{transition:opacity 75ms linear;transition-delay:80ms;opacity:0}.mdc-chip-set--filter .mdc-chip__icon--leading+.mdc-chip__checkmark .mdc-chip__checkmark-svg{transition:width 0ms}.mdc-chip-set--filter .mdc-chip--selected .mdc-chip__icon--leading{opacity:0}.mdc-chip-set--filter .mdc-chip--selected .mdc-chip__icon--leading+.mdc-chip__checkmark{width:0;opacity:1}.mdc-chip-set--filter .mdc-chip__icon--leading-hidden.mdc-chip__icon--leading{width:0;opacity:0}.mdc-chip-set--filter .mdc-chip__icon--leading-hidden.mdc-chip__icon--leading+.mdc-chip__checkmark{width:20px}.mdc-chip{--mdc-ripple-fg-size:0;--mdc-ripple-left:0;--mdc-ripple-top:0;--mdc-ripple-fg-scale:1;--mdc-ripple-fg-translate-end:0;--mdc-ripple-fg-translate-start:0;-webkit-tap-highlight-color:rgba(0, 0, 0, 0);will-change:transform, opacity}.mdc-chip .mdc-chip__ripple::before,.mdc-chip .mdc-chip__ripple::after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:""}.mdc-chip .mdc-chip__ripple::before{transition:opacity 15ms linear, background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index, 1)}.mdc-chip .mdc-chip__ripple::after{z-index:0;z-index:var(--mdc-ripple-z-index, 0)}.mdc-chip.mdc-ripple-upgraded .mdc-chip__ripple::before{transform:scale(var(--mdc-ripple-fg-scale, 1))}.mdc-chip.mdc-ripple-upgraded .mdc-chip__ripple::after{top:0;left:0;transform:scale(0);transform-origin:center center}.mdc-chip.mdc-ripple-upgraded--unbounded .mdc-chip__ripple::after{top:var(--mdc-ripple-top, 0);left:var(--mdc-ripple-left, 0)}.mdc-chip.mdc-ripple-upgraded--foreground-activation .mdc-chip__ripple::after{animation:mdc-ripple-fg-radius-in 225ms forwards, mdc-ripple-fg-opacity-in 75ms forwards}.mdc-chip.mdc-ripple-upgraded--foreground-deactivation .mdc-chip__ripple::after{animation:mdc-ripple-fg-opacity-out 150ms;transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}.mdc-chip .mdc-chip__ripple::before,.mdc-chip .mdc-chip__ripple::after{top:calc(50% - 100%);left:calc(50% - 100%);width:200%;height:200%}.mdc-chip.mdc-ripple-upgraded .mdc-chip__ripple::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-chip .mdc-chip__ripple::before,.mdc-chip .mdc-chip__ripple::after{background-color:rgba(0, 0, 0, 0.87);background-color:var(--mdc-ripple-color, rgba(0, 0, 0, 0.87))}.mdc-chip:hover .mdc-chip__ripple::before,.mdc-chip.mdc-ripple-surface--hover .mdc-chip__ripple::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-chip.mdc-ripple-upgraded--background-focused .mdc-chip__ripple::before,.mdc-chip.mdc-ripple-upgraded:focus-within .mdc-chip__ripple::before,.mdc-chip:not(.mdc-ripple-upgraded):focus .mdc-chip__ripple::before,.mdc-chip:not(.mdc-ripple-upgraded):focus-within .mdc-chip__ripple::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-chip:not(.mdc-ripple-upgraded) .mdc-chip__ripple::after{transition:opacity 150ms linear}.mdc-chip:not(.mdc-ripple-upgraded):active .mdc-chip__ripple::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-chip.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-chip .mdc-chip__ripple{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;overflow:hidden}.mdc-chip-set--choice .mdc-chip.mdc-chip--selected .mdc-chip__ripple::before{opacity:0.16;opacity:var(--mdc-ripple-selected-opacity, 0.16)}.mdc-chip-set--choice .mdc-chip.mdc-chip--selected .mdc-chip__ripple::before,.mdc-chip-set--choice .mdc-chip.mdc-chip--selected .mdc-chip__ripple::after{background-color:#26a69a;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #26a69a))}.mdc-chip-set--choice .mdc-chip.mdc-chip--selected:hover .mdc-chip__ripple::before,.mdc-chip-set--choice .mdc-chip.mdc-chip--selected.mdc-ripple-surface--hover .mdc-chip__ripple::before{opacity:0.24;opacity:var(--mdc-ripple-hover-opacity, 0.24)}.mdc-chip-set--choice .mdc-chip.mdc-chip--selected.mdc-ripple-upgraded--background-focused .mdc-chip__ripple::before,.mdc-chip-set--choice .mdc-chip.mdc-chip--selected.mdc-ripple-upgraded:focus-within .mdc-chip__ripple::before,.mdc-chip-set--choice .mdc-chip.mdc-chip--selected:not(.mdc-ripple-upgraded):focus .mdc-chip__ripple::before,.mdc-chip-set--choice .mdc-chip.mdc-chip--selected:not(.mdc-ripple-upgraded):focus-within .mdc-chip__ripple::before{transition-duration:75ms;opacity:0.4;opacity:var(--mdc-ripple-focus-opacity, 0.4)}.mdc-chip-set--choice .mdc-chip.mdc-chip--selected:not(.mdc-ripple-upgraded) .mdc-chip__ripple::after{transition:opacity 150ms linear}.mdc-chip-set--choice .mdc-chip.mdc-chip--selected:not(.mdc-ripple-upgraded):active .mdc-chip__ripple::after{transition-duration:75ms;opacity:0.4;opacity:var(--mdc-ripple-press-opacity, 0.4)}.mdc-chip-set--choice .mdc-chip.mdc-chip--selected.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.4)}@keyframes mdc-chip-entry{from{transform:scale(0.8);opacity:0.4}to{transform:scale(1);opacity:1}}.mdc-chip-set{padding:4px;display:flex;flex-wrap:wrap;box-sizing:border-box}.mdc-chip-set .mdc-chip{margin:4px}.mdc-chip-set .mdc-chip--touch{margin-top:8px;margin-bottom:8px}.mdc-chip-set--input .mdc-chip{animation:mdc-chip-entry 100ms cubic-bezier(0, 0, 0.2, 1)}.mdc-chip{transition:background-color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease-out;max-width:100%;min-width:2rem;padding:0 0.0625rem;display:inline-grid;grid-auto-flow:column;background-color:transparent;margin:0.125rem !important;font-size:0.875rem}.mdc-chip:hover{box-shadow:var(--button-shadow-hovered)}.mdc-chip:active{box-shadow:var(--button-shadow-inset-pressed);transform:translate3d(0, 0.05rem, 0)}.mdc-chip:not(:last-child):after{content:"";display:block;height:1rem;width:0.125rem;border-radius:0.25rem;background-color:rgb(var(--contrast-600));position:absolute;right:-0.1875rem;top:0;bottom:0;margin:auto}.mdc-chip label{cursor:pointer;transition:color 0.2s ease}.mdc-chip input[type=radio]{width:0;position:absolute;opacity:0}.mdc-chip input[type=radio]:focus-visible+label:after{content:"";display:block;position:absolute;top:0;right:0;bottom:0;left:0;border-radius:3.75rem;box-shadow:var(--shadow-depth-8-focused);z-index:1}.mdc-chip span[role=gridcell]{min-width:0}.mdc-chip span[role=gridcell]:focus-within{outline:none;color:var(--mdc-theme-primary)}.mdc-chip span[role=gridcell]:only-child .mdc-chip__text{padding-left:0.75rem}.mdc-chip span[role=gridcell]:first-child .mdc-chip__text{padding-left:0.75rem}.mdc-chip:hover{background-color:rgb(var(--contrast-100))}.mdc-chip.mdc-chip--selected{box-shadow:var(--button-shadow-inset)}.mdc-chip.mdc-chip--selected:active{box-shadow:var(--button-shadow-inset-pressed)}.mdc-chip-set--choice .mdc-chip.mdc-chip--selected{color:rgb(var(--contrast-1300))}.mdc-chip__text{overflow:hidden;text-overflow:ellipsis;display:block;padding:0 0.75rem 0 0.25rem}.mdc-chip-set{align-items:center;border-radius:3.75rem;background-color:rgb(var(--contrast-400));padding:0;width:max-content;max-width:100%;flex-wrap:nowrap}.mdc-chip-set.disabled{cursor:not-allowed;pointer-events:none;opacity:0.4}';export{t as limel_button_group}
@@ -0,0 +1 @@
1
+ import{r as e,c as o,h as r}from"./p-e9a95b8f.js";import{d as t}from"./p-c70b1ea3.js";import{E as n,a}from"./p-216ffe20.js";const i=class{constructor(i){e(this,i),this.open=o(this,"open",7),this.close=o(this,"close",7),this.action=o(this,"action",7),this.isOpen=!1,this.onClick=()=>{this.handleInteraction()},this.handleKeyDown=e=>{(e.key===n||e.keyCode===a)&&(e.stopPropagation(),e.preventDefault(),this.handleInteraction())},this.handleInteraction=()=>{this.isOpen=!this.isOpen,this.isOpen?(this.open.emit(),setTimeout(t,100)):this.close.emit()},this.renderActions=()=>{if(this.actions)return r("div",{class:"section__header__actions"},this.actions.map(this.renderActionButton))},this.renderActionButton=e=>r("limel-icon-button",{icon:e.icon,label:e.label,disabled:e.disabled,onClick:this.handleActionClick(e)}),this.handleActionClick=e=>o=>{o.stopPropagation(),this.action.emit(e)}}render(){return r("section",{class:this.isOpen?"open":""},r("header",{class:"section__header",onClick:this.onClick,onKeyDown:this.handleKeyDown,tabindex:"0"},r("div",{class:"section__header__expand-icon"},r("div",{class:"expand-icon__line"}),r("div",{class:"expand-icon__line"}),r("div",{class:"expand-icon__line"}),r("div",{class:"expand-icon__line"})),r("h2",{class:"section__header__title mdc-typography mdc-typography--headline2"},this.header),r("div",{class:"section__header__divider-line"}),this.renderActions()),r("div",{class:"section__body"},r("slot",null)))}};i.style=':host{--mdc-theme-primary:var(\n --lime-primary-color,\n rgb(var(--color-teal-default))\n );--mdc-theme-secondary:var(\n --lime-secondary-color,\n rgb(var(--contrast-1100))\n );--mdc-theme-on-primary:var(\n --lime-on-primary-color,\n rgb(var(--contrast-100))\n );--mdc-theme-on-secondary:var(\n --lime-on-secondary-color,\n rgb(var(--contrast-100))\n );--mdc-theme-text-disabled-on-background:var(\n --lime-text-disabled-on-background-color,\n rgba(var(--contrast-1700), 0.38)\n );--mdc-theme-text-primary-on-background:var(\n --lime-text-primary-on-background-color,\n rgba(var(--contrast-1700), 0.87)\n );--mdc-theme-text-secondary-on-background:var(\n --lime-text-secondary-on-background-color,\n rgba(var(--contrast-1700), 0.54)\n );--lime-error-text-color:rgb(var(--color-red-darker));--mdc-theme-surface:var(\n --lime-surface-background-color,\n rgb(var(--contrast-100))\n );--mdc-theme-on-surface:var(\n --lime-on-surface-color,\n var(--lime-text-primary-on-background-color)\n )}:host{--border-radius-of-header:0.75rem;display:block}:host([hidden]){display:none}:host([disabled]){pointer-events:none}.section__header{transition:background-color 0.4s ease, border-radius 0.1s ease;cursor:pointer;align-items:center;display:flex;justify-content:space-between;padding-left:0.625rem;padding-right:0.625rem;height:3.75rem;background-color:var(--closed-header-background-color, rgb(var(--contrast-200)));border-radius:var(--border-radius-of-header)}section.open .section__header{background-color:var(--open-header-background-color, rgb(var(--contrast-100)));border-radius:var(--border-radius-of-header) var(--border-radius-of-header) 0 0}section.open .section__header:hover{background-color:var(--open-header-background-color, rgb(var(--contrast-300)))}.section__header:hover{background-color:var(--open-header-background-color, rgb(var(--contrast-300)))}.section__header:focus{outline:none}.section__header:focus-visible{box-shadow:var(--shadow-depth-8-focused)}.section__header__title{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-headline2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:1rem;font-size:var(--mdc-typography-headline2-font-size, 1rem);line-height:0.875rem;line-height:var(--mdc-typography-headline2-line-height, 0.875rem);font-weight:300;font-weight:var(--mdc-typography-headline2-font-weight, 300);letter-spacing:-0.0083333333em;letter-spacing:var(--mdc-typography-headline2-letter-spacing, -0.0083333333em);text-decoration:inherit;text-decoration:var(--mdc-typography-headline2-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-headline2-text-transform, inherit);justify-self:flex-start;padding-right:0.75rem;user-select:none;padding-right:0.5rem;height:auto;max-height:3rem;line-height:1.2rem;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.section__header__divider-line{transition:opacity 0.3s ease 0.3s;flex-grow:1;height:0.125rem;border-radius:0.0625rem;background-color:var(--header-stroke-color, rgb(var(--contrast-900)));margin-right:0.5rem;opacity:0}section.open .section__header__divider-line{opacity:0.16}.section__header__actions{justify-self:flex-end;flex-shrink:0}@keyframes fade-in-section__body{0%{opacity:0}100%{opacity:1}}.section__body{animation:fade-in-section__body 0.3s ease-in forwards;background-color:var(--body-background-color, var(--contrast-100));padding-left:var(--body-padding, 1.25rem);padding-right:var(--body-padding, 1.25rem);margin-bottom:1.5rem;border-radius:0 0 var(--border-radius-of-header) var(--border-radius-of-header);display:none;opacity:0}section.open .section__body{display:block}.section__body:before,.section__body:after{content:" ";display:table}.section__body:after{clear:both}.section__header__expand-icon{position:relative;height:1.875rem;margin:0 1rem 0 0.5rem;width:0.75rem;flex-shrink:0}.expand-icon__line{position:absolute;top:0;right:0;bottom:0;left:0;margin:auto;width:100%;border-radius:1rem;height:0.125rem;background-color:var(--header-stroke-color, rgb(var(--contrast-900)))}.expand-icon__line:first-of-type,.expand-icon__line:last-of-type{transition:opacity 0.2s ease 0.1s, transform 0.4s ease 0.3s}.expand-icon__line:first-of-type{transform:rotate3d(0, 0, 1, 90deg)}.expand-icon__line:last-of-type{transform:rotate3d(0, 0, 1, -90deg)}.expand-icon__line:nth-of-type(2),.expand-icon__line:nth-of-type(3){transition:opacity 0.2s ease, transform 0.18s ease}.section__header:hover .expand-icon__line:first-of-type{transform:rotate3d(0, 0, 1, 0deg)}.section__header:hover .expand-icon__line:last-of-type{transform:rotate3d(0, 0, 1, 0deg)}.section__header:hover .expand-icon__line:nth-of-type(2),.section__header:hover .expand-icon__line:nth-of-type(3){transition:opacity 0.5s ease 0.4s, transform 0.7s cubic-bezier(0.85, 0.11, 0.14, 1.35) 0.2s}.section__header:hover .expand-icon__line:nth-of-type(2){transform:translate3d(0, -0.5rem, 0);opacity:0.4}.section__header:hover .expand-icon__line:nth-of-type(3){transform:translate3d(0, 0.5rem, 0);opacity:0.4}section.open .section__header .expand-icon__line:first-of-type,section.open .section__header .expand-icon__line:last-of-type{transition:opacity 0.2s ease 0.1s, transform 0.4s ease 0.3s}section.open .section__header .expand-icon__line:first-of-type{transform:rotate3d(0, 0, 1, 0deg)}section.open .section__header .expand-icon__line:last-of-type{transform:rotate3d(0, 0, 1, 0deg)}section.open .section__header .expand-icon__line:nth-of-type(2),section.open .section__header .expand-icon__line:nth-of-type(3){transition:opacity 1s ease, transform 0.4s ease}section.open .section__header .expand-icon__line:nth-of-type(2){transform:translate3d(0, -1rem, 0);opacity:0}section.open .section__header .expand-icon__line:nth-of-type(3){transform:translate3d(0, 1rem, 0);opacity:0}section.open .section__header:hover .expand-icon__line:first-of-type,section.open .section__header:hover .expand-icon__line:last-of-type{transition:opacity 0.2s ease 0.4s, transform 0.4s cubic-bezier(0.85, 0.11, 0.14, 1.35) 0.2s}section.open .section__header:hover .expand-icon__line:first-of-type{transform:rotate3d(0, 0, 1, 45deg)}section.open .section__header:hover .expand-icon__line:last-of-type{transform:rotate3d(0, 0, 1, -45deg)}';export{i as limel_collapsible_section}
@@ -1 +1 @@
1
- import{i as n}from"./p-eda23c05.js";var r=/^(?:0|[1-9]\d*)$/;function t(n,t){var u=typeof n;return!!(t=null==t?9007199254740991:t)&&("number"==u||"symbol"!=u&&r.test(n))&&n>-1&&n%1==0&&n<t}function u(n){return"number"==typeof n&&n>-1&&n%1==0&&n<=9007199254740991}function e(r){return null!=r&&u(r.length)&&!n(r)}export{u as a,t as b,e as i}
1
+ import{i as n}from"./p-eda23c05.js";var r=/^(?:0|[1-9]\d*)$/;function t(n,t){var u=typeof n;return!!(t=null==t?9007199254740991:t)&&("number"==u||"symbol"!=u&&r.test(n))&&n>-1&&n%1==0&&n<t}function u(n){return"number"==typeof n&&n>-1&&n%1==0&&n<=9007199254740991}function e(r){return null!=r&&u(r.length)&&!n(r)}export{t as a,e as b,u as i}