@limetech/lime-elements 35.0.0-next.2 → 35.0.0-next.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (231) hide show
  1. package/dist/cjs/checkbox.template-7f83d0b4.js +41 -0
  2. package/dist/cjs/{component-f7ef9087.js → component-66df95e7.js} +190 -132
  3. package/dist/cjs/{component-f532119f.js → component-67144c1c.js} +47 -3
  4. package/dist/cjs/{component-ed21410d.js → component-ae3bfacf.js} +367 -235
  5. package/dist/cjs/{component-2faaa141.js → component-cf490570.js} +213 -143
  6. package/dist/cjs/{component-10dbdd60.js → component-dd795ff0.js} +7 -5
  7. package/dist/cjs/{index-e63a89d7.js → index-43283636.js} +23 -0
  8. package/dist/cjs/lime-elements.cjs.js +3 -3
  9. package/dist/cjs/limel-badge.cjs.entry.js +3 -3
  10. package/dist/cjs/limel-banner.cjs.entry.js +1 -1
  11. package/dist/cjs/limel-button-group.cjs.entry.js +2 -2
  12. package/dist/cjs/limel-button.cjs.entry.js +2 -2
  13. package/dist/cjs/limel-checkbox.cjs.entry.js +131 -86
  14. package/dist/cjs/limel-chip-set.cjs.entry.js +234 -190
  15. package/dist/cjs/limel-circular-progress.cjs.entry.js +2 -2
  16. package/dist/cjs/limel-code-editor.cjs.entry.js +49 -22
  17. package/dist/cjs/limel-collapsible-section.cjs.entry.js +1 -1
  18. package/dist/cjs/limel-color-picker-palette_2.cjs.entry.js +1 -1
  19. package/dist/cjs/limel-color-picker.cjs.entry.js +1 -1
  20. package/dist/cjs/limel-config.cjs.entry.js +1 -1
  21. package/dist/cjs/limel-date-picker.cjs.entry.js +5 -5
  22. package/dist/cjs/limel-dialog.cjs.entry.js +8 -9
  23. package/dist/cjs/limel-file.cjs.entry.js +5 -5
  24. package/dist/cjs/limel-flatpickr-adapter.cjs.entry.js +1 -1
  25. package/dist/cjs/limel-flex-container.cjs.entry.js +5 -1
  26. package/dist/cjs/limel-form.cjs.entry.js +7547 -8994
  27. package/dist/cjs/limel-grid.cjs.entry.js +1 -1
  28. package/dist/cjs/limel-header.cjs.entry.js +1 -1
  29. package/dist/cjs/limel-icon-button.cjs.entry.js +5 -5
  30. package/dist/cjs/limel-icon.cjs.entry.js +1 -1
  31. package/dist/cjs/limel-input-field.cjs.entry.js +6 -6
  32. package/dist/cjs/limel-linear-progress.cjs.entry.js +3 -3
  33. package/dist/cjs/limel-list_3.cjs.entry.js +146 -84
  34. package/dist/cjs/limel-menu-list.cjs.entry.js +85 -69
  35. package/dist/cjs/limel-menu.cjs.entry.js +1 -1
  36. package/dist/cjs/limel-picker.cjs.entry.js +2 -2
  37. package/dist/cjs/limel-popover-surface.cjs.entry.js +2 -2
  38. package/dist/cjs/limel-progress-flow-item.cjs.entry.js +1 -1
  39. package/dist/cjs/limel-progress-flow.cjs.entry.js +1 -1
  40. package/dist/cjs/limel-select.cjs.entry.js +5 -5
  41. package/dist/cjs/limel-slider.cjs.entry.js +33 -6
  42. package/dist/cjs/limel-snackbar.cjs.entry.js +78 -72
  43. package/dist/cjs/limel-spinner.cjs.entry.js +1 -1
  44. package/dist/cjs/limel-switch.cjs.entry.js +497 -201
  45. package/dist/cjs/limel-tab-bar.cjs.entry.js +262 -185
  46. package/dist/cjs/limel-tab-panel.cjs.entry.js +1 -1
  47. package/dist/cjs/limel-table.cjs.entry.js +363 -11
  48. package/dist/cjs/limel-tooltip_2.cjs.entry.js +1 -1
  49. package/dist/cjs/loader.cjs.js +3 -3
  50. package/dist/collection/collection-manifest.json +2 -2
  51. package/dist/collection/components/badge/badge.css +9 -15
  52. package/dist/collection/components/badge/badge.js +2 -2
  53. package/dist/collection/components/button/button.css +333 -145
  54. package/dist/collection/components/button-group/button-group.css +30 -5
  55. package/dist/collection/components/checkbox/checkbox.css +46 -16
  56. package/dist/collection/components/checkbox/checkbox.template.js +22 -20
  57. package/dist/collection/components/chip-set/chip-set.css +367 -34
  58. package/dist/collection/components/circular-progress/circular-progress.css +2 -2
  59. package/dist/collection/components/code-editor/code-editor.css +8 -13
  60. package/dist/collection/components/dialog/dialog.css +153 -109
  61. package/dist/collection/components/flex-container/flex-container.js +10 -0
  62. package/dist/collection/components/form/form.css +5 -1
  63. package/dist/collection/components/form/templates/common.js +4 -1
  64. package/dist/collection/components/icon-button/icon-button.css +116 -59
  65. package/dist/collection/components/icon-button/icon-button.js +1 -0
  66. package/dist/collection/components/input-field/input-field.css +351 -29
  67. package/dist/collection/components/linear-progress/linear-progress.css +14 -2
  68. package/dist/collection/components/list/list.css +912 -89
  69. package/dist/collection/components/list/list.js +13 -6
  70. package/dist/collection/components/menu-list/menu-list.css +912 -89
  71. package/dist/collection/components/menu-surface/menu-surface.css +31 -7
  72. package/dist/collection/components/picker/picker.js +1 -1
  73. package/dist/collection/components/popover-surface/popover-surface.css +1 -0
  74. package/dist/collection/components/select/select.css +430 -20
  75. package/dist/collection/components/select/select.template.js +1 -1
  76. package/dist/collection/components/slider/slider.css +54 -2
  77. package/dist/collection/components/snackbar/snackbar.css +588 -301
  78. package/dist/collection/components/switch/switch.css +592 -222
  79. package/dist/collection/components/switch/switch.js +18 -12
  80. package/dist/collection/components/tab-bar/tab-bar.css +77 -48
  81. package/dist/collection/components/table/columns.js +1 -1
  82. package/dist/collection/components/table/selection.js +111 -0
  83. package/dist/collection/components/table/table-selection.js +125 -0
  84. package/dist/collection/components/table/table.css +134 -38
  85. package/dist/collection/components/table/table.js +212 -7
  86. package/dist/collection/style/functions.scss +3 -1
  87. package/dist/collection/style/internal/lime-theme.scss +30 -31
  88. package/dist/collection/style/internal/lime-typography.scss +55 -56
  89. package/dist/collection/style/internal/shared_input-select-picker.scss +1 -0
  90. package/dist/collection/style/internal/z-index.scss +2 -1
  91. package/dist/esm/checkbox.template-f429c5b6.js +39 -0
  92. package/dist/esm/{component-89e0ce26.js → component-19eb6e2b.js} +7 -5
  93. package/dist/esm/{component-2630c3d7.js → component-288691f3.js} +367 -235
  94. package/dist/esm/{component-d682c974.js → component-410aad5a.js} +44 -4
  95. package/dist/esm/{component-429e92ee.js → component-5b4ac85a.js} +213 -143
  96. package/dist/esm/{component-2eb4e07b.js → component-fffa3419.js} +191 -133
  97. package/dist/esm/{index-2316f345.js → index-4456d4ad.js} +23 -0
  98. package/dist/esm/lime-elements.js +3 -3
  99. package/dist/esm/limel-badge.entry.js +3 -3
  100. package/dist/esm/limel-banner.entry.js +1 -1
  101. package/dist/esm/limel-button-group.entry.js +2 -2
  102. package/dist/esm/limel-button.entry.js +2 -2
  103. package/dist/esm/limel-checkbox.entry.js +132 -87
  104. package/dist/esm/limel-chip-set.entry.js +234 -190
  105. package/dist/esm/limel-circular-progress.entry.js +2 -2
  106. package/dist/esm/limel-code-editor.entry.js +49 -22
  107. package/dist/esm/limel-collapsible-section.entry.js +1 -1
  108. package/dist/esm/limel-color-picker-palette_2.entry.js +1 -1
  109. package/dist/esm/limel-color-picker.entry.js +1 -1
  110. package/dist/esm/limel-config.entry.js +1 -1
  111. package/dist/esm/limel-date-picker.entry.js +5 -5
  112. package/dist/esm/limel-dialog.entry.js +8 -9
  113. package/dist/esm/limel-file.entry.js +5 -5
  114. package/dist/esm/limel-flatpickr-adapter.entry.js +1 -1
  115. package/dist/esm/limel-flex-container.entry.js +5 -1
  116. package/dist/esm/limel-form.entry.js +7550 -8997
  117. package/dist/esm/limel-grid.entry.js +1 -1
  118. package/dist/esm/limel-header.entry.js +1 -1
  119. package/dist/esm/limel-icon-button.entry.js +5 -5
  120. package/dist/esm/limel-icon.entry.js +1 -1
  121. package/dist/esm/limel-input-field.entry.js +6 -6
  122. package/dist/esm/limel-linear-progress.entry.js +4 -4
  123. package/dist/esm/limel-list_3.entry.js +147 -85
  124. package/dist/esm/limel-menu-list.entry.js +86 -70
  125. package/dist/esm/limel-menu.entry.js +1 -1
  126. package/dist/esm/limel-picker.entry.js +2 -2
  127. package/dist/esm/limel-popover-surface.entry.js +2 -2
  128. package/dist/esm/limel-progress-flow-item.entry.js +1 -1
  129. package/dist/esm/limel-progress-flow.entry.js +1 -1
  130. package/dist/esm/limel-select.entry.js +5 -5
  131. package/dist/esm/limel-slider.entry.js +34 -7
  132. package/dist/esm/limel-snackbar.entry.js +78 -72
  133. package/dist/esm/limel-spinner.entry.js +1 -1
  134. package/dist/esm/limel-switch.entry.js +497 -201
  135. package/dist/esm/limel-tab-bar.entry.js +262 -185
  136. package/dist/esm/limel-tab-panel.entry.js +1 -1
  137. package/dist/esm/limel-table.entry.js +363 -11
  138. package/dist/esm/limel-tooltip_2.entry.js +1 -1
  139. package/dist/esm/loader.js +3 -3
  140. package/dist/esm/polyfills/css-shim.js +1 -1
  141. package/dist/esm/{util-71a23335.js → util-f1bde91c.js} +1 -1
  142. package/dist/lime-elements/lime-elements.esm.js +1 -1
  143. package/dist/lime-elements/{p-a4c532a7.entry.js → p-00d485d8.entry.js} +1 -1
  144. package/dist/lime-elements/p-062a9599.entry.js +131 -0
  145. package/dist/lime-elements/{p-597cbe05.entry.js → p-0ea1cbf6.entry.js} +1 -1
  146. package/dist/lime-elements/p-1c284626.js +73 -0
  147. package/dist/lime-elements/{p-a2cf74c1.entry.js → p-255084bd.entry.js} +1 -1
  148. package/dist/lime-elements/{p-e881e98d.entry.js → p-2550ff27.entry.js} +1 -1
  149. package/dist/lime-elements/{p-13f0e4f4.entry.js → p-2a1d6f3d.entry.js} +1 -1
  150. package/dist/lime-elements/{p-31fecf5d.entry.js → p-3bef288b.entry.js} +1 -1
  151. package/dist/lime-elements/{p-58cbe99d.entry.js → p-3f440859.entry.js} +1 -1
  152. package/dist/lime-elements/p-3f5ba6f4.entry.js +1 -0
  153. package/dist/lime-elements/{p-4b5af81b.entry.js → p-41ec08c9.entry.js} +1 -1
  154. package/dist/lime-elements/{p-92146da6.js → p-44f9b6d5.js} +0 -0
  155. package/dist/lime-elements/{p-1fb5340d.entry.js → p-45689f25.entry.js} +1 -1
  156. package/dist/lime-elements/p-47ef0ebb.entry.js +1 -0
  157. package/dist/lime-elements/{p-076bd4dc.js → p-48d4ef20.js} +3 -3
  158. package/dist/lime-elements/p-4e9869f4.entry.js +126 -0
  159. package/dist/lime-elements/{p-6003f817.entry.js → p-549190f6.entry.js} +1 -1
  160. package/dist/lime-elements/p-555f774c.entry.js +82 -0
  161. package/dist/lime-elements/p-63516991.entry.js +1 -0
  162. package/dist/lime-elements/p-68c4e708.entry.js +16 -0
  163. package/dist/lime-elements/p-6acee2e5.entry.js +73 -0
  164. package/dist/lime-elements/p-6fc9a0be.entry.js +59 -0
  165. package/dist/lime-elements/{p-64549ba6.entry.js → p-70a4d004.entry.js} +3 -3
  166. package/dist/lime-elements/{p-468e940e.entry.js → p-75846313.entry.js} +1 -1
  167. package/dist/lime-elements/p-779d1567.entry.js +1 -0
  168. package/dist/lime-elements/p-7d4eb67f.entry.js +1 -0
  169. package/dist/lime-elements/{p-714fde78.entry.js → p-897a7f8a.entry.js} +1 -1
  170. package/dist/lime-elements/{p-fc30b8e3.entry.js → p-8a5ca741.entry.js} +1 -1
  171. package/dist/lime-elements/{p-8a2c1038.entry.js → p-9607b6f9.entry.js} +2 -2
  172. package/dist/lime-elements/p-9caf28bd.entry.js +1 -0
  173. package/dist/lime-elements/{p-152a6d5f.js → p-9faad6eb.js} +1 -1
  174. package/dist/lime-elements/{p-34c7872e.entry.js → p-a35e6b8a.entry.js} +1 -1
  175. package/dist/lime-elements/{p-041ae00c.entry.js → p-b808ba3d.entry.js} +1 -1
  176. package/dist/lime-elements/p-be2bd743.js +1 -0
  177. package/dist/lime-elements/p-be351178.entry.js +37 -0
  178. package/dist/lime-elements/p-c40f5030.entry.js +82 -0
  179. package/dist/lime-elements/p-c4e2eb42.entry.js +1 -0
  180. package/dist/lime-elements/{p-1876a96a.entry.js → p-c5168bda.entry.js} +1 -1
  181. package/dist/lime-elements/p-cbc43682.js +81 -0
  182. package/dist/lime-elements/{p-ace9affc.js → p-d0a7de87.js} +2 -2
  183. package/dist/lime-elements/{p-be56ffab.entry.js → p-d5f17adb.entry.js} +1 -1
  184. package/dist/lime-elements/p-d70f1c00.entry.js +59 -0
  185. package/dist/lime-elements/p-dbd61714.entry.js +1 -0
  186. package/dist/lime-elements/{p-8ad5e143.entry.js → p-dd62c71b.entry.js} +1 -1
  187. package/dist/lime-elements/p-dfba92de.js +126 -0
  188. package/dist/lime-elements/p-e55144ec.entry.js +1 -0
  189. package/dist/lime-elements/{p-dfe0a58b.entry.js → p-e6f39a71.entry.js} +1 -1
  190. package/dist/lime-elements/p-f777d8a3.entry.js +82 -0
  191. package/dist/lime-elements/style/functions.scss +3 -1
  192. package/dist/lime-elements/style/internal/lime-theme.scss +30 -31
  193. package/dist/lime-elements/style/internal/lime-typography.scss +55 -56
  194. package/dist/lime-elements/style/internal/shared_input-select-picker.scss +1 -0
  195. package/dist/lime-elements/style/internal/z-index.scss +2 -1
  196. package/dist/types/components/badge/badge.d.ts +1 -1
  197. package/dist/types/components/flex-container/flex-container.d.ts +7 -0
  198. package/dist/types/components/switch/switch.d.ts +2 -2
  199. package/dist/types/components/table/columns.d.ts +7 -0
  200. package/dist/types/components/table/selection.d.ts +79 -0
  201. package/dist/types/components/table/table-selection.d.ts +57 -0
  202. package/dist/types/components/table/table.d.ts +39 -7
  203. package/dist/types/components/table/table.types.d.ts +13 -0
  204. package/dist/types/components.d.ts +33 -1
  205. package/dist/types/stencil-public-runtime.d.ts +6 -4
  206. package/package.json +20 -20
  207. package/dist/cjs/checkbox.template-50eb8b76.js +0 -39
  208. package/dist/esm/checkbox.template-50f7c07b.js +0 -37
  209. package/dist/lime-elements/p-0ce9165f.entry.js +0 -1
  210. package/dist/lime-elements/p-0fd208f3.entry.js +0 -82
  211. package/dist/lime-elements/p-143705b1.entry.js +0 -1
  212. package/dist/lime-elements/p-250f55be.js +0 -1
  213. package/dist/lime-elements/p-31299106.js +0 -126
  214. package/dist/lime-elements/p-4932c029.entry.js +0 -1
  215. package/dist/lime-elements/p-510bb5a4.entry.js +0 -1
  216. package/dist/lime-elements/p-6215e45e.entry.js +0 -37
  217. package/dist/lime-elements/p-668795a7.js +0 -73
  218. package/dist/lime-elements/p-6cfb45a1.entry.js +0 -1
  219. package/dist/lime-elements/p-7476efe0.entry.js +0 -1
  220. package/dist/lime-elements/p-902347b9.js +0 -81
  221. package/dist/lime-elements/p-90f3e17c.entry.js +0 -37
  222. package/dist/lime-elements/p-96e44a1e.entry.js +0 -82
  223. package/dist/lime-elements/p-a77cbb08.entry.js +0 -1
  224. package/dist/lime-elements/p-b5faa40d.entry.js +0 -59
  225. package/dist/lime-elements/p-bc0dcf01.entry.js +0 -73
  226. package/dist/lime-elements/p-c35874db.entry.js +0 -1
  227. package/dist/lime-elements/p-c8c8a946.entry.js +0 -59
  228. package/dist/lime-elements/p-d2c74396.entry.js +0 -1
  229. package/dist/lime-elements/p-d48ad9f7.entry.js +0 -126
  230. package/dist/lime-elements/p-d93a3b07.entry.js +0 -16
  231. package/dist/lime-elements/p-f2c706b8.entry.js +0 -131
@@ -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 l}from"./p-44f9b6d5.js";import{t as e}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]||"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}
@@ -0,0 +1,126 @@
1
+ import{M as t,a as i}from"./p-48d4ef20.js";import{m as n,c as e}from"./p-dcc97cc2.js";import{n as s}from"./p-6e219bb4.js";import{g as r}from"./p-9faad6eb.js";
2
+ /**
3
+ * @license
4
+ * Copyright 2018 Google Inc.
5
+ *
6
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ * of this software and associated documentation files (the "Software"), to deal
8
+ * in the Software without restriction, including without limitation the rights
9
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ * copies of the Software, and to permit persons to whom the Software is
11
+ * furnished to do so, subject to the following conditions:
12
+ *
13
+ * The above copyright notice and this permission notice shall be included in
14
+ * all copies or substantial portions of the Software.
15
+ *
16
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22
+ * THE SOFTWARE.
23
+ */var o,u,h={ANCHOR:"mdc-menu-surface--anchor",ANIMATING_CLOSED:"mdc-menu-surface--animating-closed",ANIMATING_OPEN:"mdc-menu-surface--animating-open",FIXED:"mdc-menu-surface--fixed",IS_OPEN_BELOW:"mdc-menu-surface--is-open-below",OPEN:"mdc-menu-surface--open",ROOT:"mdc-menu-surface"},c={CLOSED_EVENT:"MDCMenuSurface:closed",CLOSING_EVENT:"MDCMenuSurface:closing",OPENED_EVENT:"MDCMenuSurface:opened",FOCUSABLE_ELEMENTS:["button:not(:disabled)",'[href]:not([aria-disabled="true"])',"input:not(:disabled)","select:not(:disabled)","textarea:not(:disabled)",'[tabindex]:not([tabindex="-1"]):not([aria-disabled="true"])'].join(", ")},f={TRANSITION_OPEN_DURATION:120,TRANSITION_CLOSE_DURATION:75,MARGIN_TO_EDGE:32,ANCHOR_TO_MENU_SURFACE_WIDTH_RATIO:.67,TOUCH_EVENT_WAIT_MS:30};!function(t){t[t.BOTTOM=1]="BOTTOM",t[t.CENTER=2]="CENTER",t[t.RIGHT=4]="RIGHT",t[t.FLIP_RTL=8]="FLIP_RTL"}(o||(o={})),function(t){t[t.TOP_LEFT=0]="TOP_LEFT",t[t.TOP_RIGHT=4]="TOP_RIGHT",t[t.BOTTOM_LEFT=1]="BOTTOM_LEFT",t[t.BOTTOM_RIGHT=5]="BOTTOM_RIGHT",t[t.TOP_START=8]="TOP_START",t[t.TOP_END=12]="TOP_END",t[t.BOTTOM_START=9]="BOTTOM_START",t[t.BOTTOM_END=13]="BOTTOM_END"}(u||(u={}));
24
+ /*! *****************************************************************************
25
+ Copyright (c) Microsoft Corporation.
26
+
27
+ Permission to use, copy, modify, and/or distribute this software for any
28
+ purpose with or without fee is hereby granted.
29
+
30
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
31
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
32
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
33
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
34
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
35
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
36
+ PERFORMANCE OF THIS SOFTWARE.
37
+ ***************************************************************************** */
38
+ var a=function(t,i){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])})(t,i)};function d(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}a(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}var l,m,b=function(){return(b=Object.assign||function(t){for(var i,n=1,e=arguments.length;n<e;n++)for(var s in i=arguments[n])Object.prototype.hasOwnProperty.call(i,s)&&(t[s]=i[s]);return t}).apply(this,arguments)},I={LIST_ITEM_ACTIVATED_CLASS:"mdc-list-item--activated",LIST_ITEM_CLASS:"mdc-list-item",LIST_ITEM_DISABLED_CLASS:"mdc-list-item--disabled",LIST_ITEM_SELECTED_CLASS:"mdc-list-item--selected",LIST_ITEM_TEXT_CLASS:"mdc-list-item__text",LIST_ITEM_PRIMARY_TEXT_CLASS:"mdc-list-item__primary-text",ROOT:"mdc-list"},E=((l={})[""+I.LIST_ITEM_ACTIVATED_CLASS]="mdc-list-item--activated",l[""+I.LIST_ITEM_CLASS]="mdc-list-item",l[""+I.LIST_ITEM_DISABLED_CLASS]="mdc-list-item--disabled",l[""+I.LIST_ITEM_SELECTED_CLASS]="mdc-list-item--selected",l[""+I.LIST_ITEM_PRIMARY_TEXT_CLASS]="mdc-list-item__primary-text",l[""+I.ROOT]="mdc-list",l),A=((m={})[""+I.LIST_ITEM_ACTIVATED_CLASS]="mdc-deprecated-list-item--activated",m[""+I.LIST_ITEM_CLASS]="mdc-deprecated-list-item",m[""+I.LIST_ITEM_DISABLED_CLASS]="mdc-deprecated-list-item--disabled",m[""+I.LIST_ITEM_SELECTED_CLASS]="mdc-deprecated-list-item--selected",m[""+I.LIST_ITEM_TEXT_CLASS]="mdc-deprecated-list-item__text",m[""+I.LIST_ITEM_PRIMARY_TEXT_CLASS]="mdc-deprecated-list-item__primary-text",m[""+I.ROOT]="mdc-deprecated-list",m),v={ACTION_EVENT:"MDCList:action",ARIA_CHECKED:"aria-checked",ARIA_CHECKED_CHECKBOX_SELECTOR:'[role="checkbox"][aria-checked="true"]',ARIA_CHECKED_RADIO_SELECTOR:'[role="radio"][aria-checked="true"]',ARIA_CURRENT:"aria-current",ARIA_DISABLED:"aria-disabled",ARIA_ORIENTATION:"aria-orientation",ARIA_ORIENTATION_HORIZONTAL:"horizontal",ARIA_ROLE_CHECKBOX_SELECTOR:'[role="checkbox"]',ARIA_SELECTED:"aria-selected",ARIA_INTERACTIVE_ROLES_SELECTOR:'[role="listbox"], [role="menu"]',ARIA_MULTI_SELECTABLE_SELECTOR:'[aria-multiselectable="true"]',CHECKBOX_RADIO_SELECTOR:'input[type="checkbox"], input[type="radio"]',CHECKBOX_SELECTOR:'input[type="checkbox"]',CHILD_ELEMENTS_TO_TOGGLE_TABINDEX:"\n ."+I.LIST_ITEM_CLASS+" button:not(:disabled),\n ."+I.LIST_ITEM_CLASS+" a,\n ."+A[I.LIST_ITEM_CLASS]+" button:not(:disabled),\n ."+A[I.LIST_ITEM_CLASS]+" a\n ",DEPRECATED_SELECTOR:".mdc-deprecated-list",FOCUSABLE_CHILD_ELEMENTS:"\n ."+I.LIST_ITEM_CLASS+" button:not(:disabled),\n ."+I.LIST_ITEM_CLASS+" a,\n ."+I.LIST_ITEM_CLASS+' input[type="radio"]:not(:disabled),\n .'+I.LIST_ITEM_CLASS+' input[type="checkbox"]:not(:disabled),\n .'+A[I.LIST_ITEM_CLASS]+" button:not(:disabled),\n ."+A[I.LIST_ITEM_CLASS]+" a,\n ."+A[I.LIST_ITEM_CLASS]+' input[type="radio"]:not(:disabled),\n .'+A[I.LIST_ITEM_CLASS]+' input[type="checkbox"]:not(:disabled)\n ',RADIO_SELECTOR:'input[type="radio"]',SELECTED_ITEM_SELECTOR:'[aria-selected="true"], [aria-current="true"]'},T={UNSET_INDEX:-1,TYPEAHEAD_BUFFER_CLEAR_TIMEOUT_MS:300},x=["input","button","textarea","select"],C=function(t){var i=t.target;if(i){var n=(""+i.tagName).toLowerCase();-1===x.indexOf(n)&&t.preventDefault()}};
39
+ /**
40
+ * @license
41
+ * Copyright 2018 Google Inc.
42
+ *
43
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
44
+ * of this software and associated documentation files (the "Software"), to deal
45
+ * in the Software without restriction, including without limitation the rights
46
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
47
+ * copies of the Software, and to permit persons to whom the Software is
48
+ * furnished to do so, subject to the following conditions:
49
+ *
50
+ * The above copyright notice and this permission notice shall be included in
51
+ * all copies or substantial portions of the Software.
52
+ *
53
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
54
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
55
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
56
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
57
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
58
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
59
+ * THE SOFTWARE.
60
+ */function _(t,i){var n,e=t.nextChar,s=t.focusItemAtIndex,r=t.sortedIndexByFirstChar,o=t.focusedItemIndex,u=t.skipFocus,h=t.isItemAtIndexDisabled;return clearTimeout(i.bufferClearTimeout),i.bufferClearTimeout=setTimeout((function(){p(i)}),T.TYPEAHEAD_BUFFER_CLEAR_TIMEOUT_MS),i.typeaheadBuffer=i.typeaheadBuffer+e,-1===(n=1===i.typeaheadBuffer.length?function(t,i,n,e){var s=e.typeaheadBuffer[0],r=t.get(s);if(!r)return-1;if(s===e.currentFirstChar&&r[e.sortedIndexCursor].index===i){e.sortedIndexCursor=(e.sortedIndexCursor+1)%r.length;var o=r[e.sortedIndexCursor].index;if(!n(o))return o}e.currentFirstChar=s;var u,h=-1;for(u=0;u<r.length;u++)if(!n(r[u].index)){h=u;break}for(;u<r.length;u++)if(r[u].index>i&&!n(r[u].index)){h=u;break}return-1!==h?(e.sortedIndexCursor=h,r[e.sortedIndexCursor].index):-1}(r,o,h,i):function(t,i,n){var e=t.get(n.typeaheadBuffer[0]);if(!e)return-1;var s=e[n.sortedIndexCursor];if(0===s.text.lastIndexOf(n.typeaheadBuffer,0)&&!i(s.index))return s.index;for(var r=(n.sortedIndexCursor+1)%e.length,o=-1;r!==n.sortedIndexCursor;){var u=e[r],h=0===u.text.lastIndexOf(n.typeaheadBuffer,0),c=!i(u.index);if(h&&c){o=r;break}r=(r+1)%e.length}return-1!==o?(n.sortedIndexCursor=o,e[n.sortedIndexCursor].index):-1}(r,h,i))||u||s(n),n}function O(t){return t.typeaheadBuffer.length>0}function p(t){t.typeaheadBuffer=""}function g(t,i){var n=t.event,e=t.isTargetListItem,r=t.focusedItemIndex,o=t.focusItemAtIndex,u=t.sortedIndexByFirstChar,h=t.isItemAtIndexDisabled,c="ArrowLeft"===s(n),f="ArrowUp"===s(n),a="ArrowRight"===s(n),d="ArrowDown"===s(n),l="Home"===s(n),m="End"===s(n),b="Enter"===s(n),I="Spacebar"===s(n);return n.ctrlKey||n.metaKey||c||f||a||d||l||m||b?-1:I||1!==n.key.length?I?(e&&C(n),e&&O(i)?_({focusItemAtIndex:o,focusedItemIndex:r,nextChar:" ",sortedIndexByFirstChar:u,skipFocus:!1,isItemAtIndexDisabled:h},i):-1):-1:(C(n),_({focusItemAtIndex:o,focusedItemIndex:r,nextChar:n.key.toLowerCase(),sortedIndexByFirstChar:u,skipFocus:!1,isItemAtIndexDisabled:h},i))}
61
+ /**
62
+ * @license
63
+ * Copyright 2018 Google Inc.
64
+ *
65
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
66
+ * of this software and associated documentation files (the "Software"), to deal
67
+ * in the Software without restriction, including without limitation the rights
68
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
69
+ * copies of the Software, and to permit persons to whom the Software is
70
+ * furnished to do so, subject to the following conditions:
71
+ *
72
+ * The above copyright notice and this permission notice shall be included in
73
+ * all copies or substantial portions of the Software.
74
+ *
75
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
76
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
77
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
78
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
79
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
80
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
81
+ * THE SOFTWARE.
82
+ */var y=function(t){function i(n){var e=t.call(this,b(b({},i.defaultAdapter),n))||this;return e.wrapFocus=!1,e.isVertical=!0,e.isSingleSelectionList=!1,e.selectedIndex=T.UNSET_INDEX,e.focusedItemIndex=T.UNSET_INDEX,e.useActivatedClass=!1,e.useSelectedAttr=!1,e.ariaCurrentAttrValue=null,e.isCheckboxList=!1,e.isRadioList=!1,e.hasTypeahead=!1,e.typeaheadState={bufferClearTimeout:0,currentFirstChar:"",sortedIndexCursor:0,typeaheadBuffer:""},e.sortedIndexByFirstChar=new Map,e}return d(i,t),Object.defineProperty(i,"strings",{get:function(){return v},enumerable:!1,configurable:!0}),Object.defineProperty(i,"cssClasses",{get:function(){return I},enumerable:!1,configurable:!0}),Object.defineProperty(i,"numbers",{get:function(){return T},enumerable:!1,configurable:!0}),Object.defineProperty(i,"defaultAdapter",{get:function(){return{addClassForElementIndex:function(){},focusItemAtIndex:function(){},getAttributeForElementIndex:function(){return null},getFocusedElementIndex:function(){return 0},getListItemCount:function(){return 0},hasCheckboxAtIndex:function(){return!1},hasRadioAtIndex:function(){return!1},isCheckboxCheckedAtIndex:function(){return!1},isFocusInsideList:function(){return!1},isRootFocused:function(){return!1},listItemAtIndexHasClass:function(){return!1},notifyAction:function(){},removeClassForElementIndex:function(){},setAttributeForElementIndex:function(){},setCheckedCheckboxOrRadioAtIndex:function(){},setTabIndexForListItemChildren:function(){},getPrimaryTextAtIndex:function(){return""}}},enumerable:!1,configurable:!0}),i.prototype.layout=function(){0!==this.adapter.getListItemCount()&&(this.adapter.hasCheckboxAtIndex(0)?this.isCheckboxList=!0:this.adapter.hasRadioAtIndex(0)?this.isRadioList=!0:this.maybeInitializeSingleSelection(),this.hasTypeahead&&(this.sortedIndexByFirstChar=this.typeaheadInitSortedIndex()))},i.prototype.getFocusedItemIndex=function(){return this.focusedItemIndex},i.prototype.setWrapFocus=function(t){this.wrapFocus=t},i.prototype.setVerticalOrientation=function(t){this.isVertical=t},i.prototype.setSingleSelection=function(t){this.isSingleSelectionList=t,t&&(this.maybeInitializeSingleSelection(),this.selectedIndex=this.getSelectedIndexFromDOM())},i.prototype.maybeInitializeSingleSelection=function(){var t=this.getSelectedIndexFromDOM();t!==T.UNSET_INDEX&&(this.adapter.listItemAtIndexHasClass(t,I.LIST_ITEM_ACTIVATED_CLASS)&&this.setUseActivatedClass(!0),this.isSingleSelectionList=!0,this.selectedIndex=t)},i.prototype.getSelectedIndexFromDOM=function(){for(var t=T.UNSET_INDEX,i=this.adapter.getListItemCount(),n=0;n<i;n++){var e=this.adapter.listItemAtIndexHasClass(n,I.LIST_ITEM_SELECTED_CLASS),s=this.adapter.listItemAtIndexHasClass(n,I.LIST_ITEM_ACTIVATED_CLASS);if(e||s){t=n;break}}return t},i.prototype.setHasTypeahead=function(t){this.hasTypeahead=t,t&&(this.sortedIndexByFirstChar=this.typeaheadInitSortedIndex())},i.prototype.isTypeaheadInProgress=function(){return this.hasTypeahead&&O(this.typeaheadState)},i.prototype.setUseActivatedClass=function(t){this.useActivatedClass=t},i.prototype.setUseSelectedAttribute=function(t){this.useSelectedAttr=t},i.prototype.getSelectedIndex=function(){return this.selectedIndex},i.prototype.setSelectedIndex=function(t,i){var n=(void 0===i?{}:i).forceUpdate;this.isIndexValid(t)&&(this.isCheckboxList?this.setCheckboxAtIndex(t):this.isRadioList?this.setRadioAtIndex(t):this.setSingleSelectionAtIndex(t,{forceUpdate:n}))},i.prototype.handleFocusIn=function(t){t>=0&&(this.focusedItemIndex=t,this.adapter.setAttributeForElementIndex(t,"tabindex","0"),this.adapter.setTabIndexForListItemChildren(t,"0"))},i.prototype.handleFocusOut=function(t){var i=this;t>=0&&(this.adapter.setAttributeForElementIndex(t,"tabindex","-1"),this.adapter.setTabIndexForListItemChildren(t,"-1")),setTimeout((function(){i.adapter.isFocusInsideList()||i.setTabindexToFirstSelectedOrFocusedItem()}),0)},i.prototype.handleKeydown=function(t,i,n){var e=this,r="ArrowLeft"===s(t),o="ArrowUp"===s(t),u="ArrowRight"===s(t),h="ArrowDown"===s(t),c="Home"===s(t),f="End"===s(t),a="Enter"===s(t),d="Spacebar"===s(t),l="A"===t.key||"a"===t.key;if(this.adapter.isRootFocused())o||f?(t.preventDefault(),this.focusLastElement()):(h||c)&&(t.preventDefault(),this.focusFirstElement()),this.hasTypeahead&&g({event:t,focusItemAtIndex:function(t){e.focusItemAtIndex(t)},focusedItemIndex:-1,isTargetListItem:i,sortedIndexByFirstChar:this.sortedIndexByFirstChar,isItemAtIndexDisabled:function(t){return e.adapter.listItemAtIndexHasClass(t,I.LIST_ITEM_DISABLED_CLASS)}},this.typeaheadState);else{var m=this.adapter.getFocusedElementIndex();if(!(-1===m&&(m=n)<0)){if(this.isVertical&&h||!this.isVertical&&u)C(t),this.focusNextElement(m);else if(this.isVertical&&o||!this.isVertical&&r)C(t),this.focusPrevElement(m);else if(c)C(t),this.focusFirstElement();else if(f)C(t),this.focusLastElement();else if(l&&t.ctrlKey&&this.isCheckboxList)t.preventDefault(),this.toggleAll(this.selectedIndex===T.UNSET_INDEX?[]:this.selectedIndex);else if((a||d)&&i){var b=t.target;if(b&&"A"===b.tagName&&a)return;if(C(t),this.adapter.listItemAtIndexHasClass(m,I.LIST_ITEM_DISABLED_CLASS))return;this.isTypeaheadInProgress()||(this.isSelectableList()&&this.setSelectedIndexOnAction(m),this.adapter.notifyAction(m))}this.hasTypeahead&&g({event:t,focusItemAtIndex:function(t){e.focusItemAtIndex(t)},focusedItemIndex:this.focusedItemIndex,isTargetListItem:i,sortedIndexByFirstChar:this.sortedIndexByFirstChar,isItemAtIndexDisabled:function(t){return e.adapter.listItemAtIndexHasClass(t,I.LIST_ITEM_DISABLED_CLASS)}},this.typeaheadState)}}},i.prototype.handleClick=function(t,i){t!==T.UNSET_INDEX&&(this.adapter.listItemAtIndexHasClass(t,I.LIST_ITEM_DISABLED_CLASS)||(this.isSelectableList()&&this.setSelectedIndexOnAction(t,i),this.adapter.notifyAction(t)))},i.prototype.focusNextElement=function(t){var i=t+1;if(i>=this.adapter.getListItemCount()){if(!this.wrapFocus)return t;i=0}return this.focusItemAtIndex(i),i},i.prototype.focusPrevElement=function(t){var i=t-1;if(i<0){if(!this.wrapFocus)return t;i=this.adapter.getListItemCount()-1}return this.focusItemAtIndex(i),i},i.prototype.focusFirstElement=function(){return this.focusItemAtIndex(0),0},i.prototype.focusLastElement=function(){var t=this.adapter.getListItemCount()-1;return this.focusItemAtIndex(t),t},i.prototype.focusInitialElement=function(){var t=this.getFirstSelectedOrFocusedItemIndex();return this.focusItemAtIndex(t),t},i.prototype.setEnabled=function(t,i){this.isIndexValid(t)&&(i?(this.adapter.removeClassForElementIndex(t,I.LIST_ITEM_DISABLED_CLASS),this.adapter.setAttributeForElementIndex(t,v.ARIA_DISABLED,"false")):(this.adapter.addClassForElementIndex(t,I.LIST_ITEM_DISABLED_CLASS),this.adapter.setAttributeForElementIndex(t,v.ARIA_DISABLED,"true")))},i.prototype.setSingleSelectionAtIndex=function(t,i){if(this.selectedIndex!==t||(void 0===i?{}:i).forceUpdate){var n=I.LIST_ITEM_SELECTED_CLASS;this.useActivatedClass&&(n=I.LIST_ITEM_ACTIVATED_CLASS),this.selectedIndex!==T.UNSET_INDEX&&this.adapter.removeClassForElementIndex(this.selectedIndex,n),this.setAriaForSingleSelectionAtIndex(t),this.setTabindexAtIndex(t),t!==T.UNSET_INDEX&&this.adapter.addClassForElementIndex(t,n),this.selectedIndex=t}},i.prototype.setAriaForSingleSelectionAtIndex=function(t){this.selectedIndex===T.UNSET_INDEX&&(this.ariaCurrentAttrValue=this.adapter.getAttributeForElementIndex(t,v.ARIA_CURRENT));var i=null!==this.ariaCurrentAttrValue,n=i?v.ARIA_CURRENT:v.ARIA_SELECTED;this.selectedIndex!==T.UNSET_INDEX&&this.adapter.setAttributeForElementIndex(this.selectedIndex,n,"false"),t!==T.UNSET_INDEX&&this.adapter.setAttributeForElementIndex(t,n,i?this.ariaCurrentAttrValue:"true")},i.prototype.getSelectionAttribute=function(){return this.useSelectedAttr?v.ARIA_SELECTED:v.ARIA_CHECKED},i.prototype.setRadioAtIndex=function(t){var i=this.getSelectionAttribute();this.adapter.setCheckedCheckboxOrRadioAtIndex(t,!0),this.selectedIndex!==T.UNSET_INDEX&&this.adapter.setAttributeForElementIndex(this.selectedIndex,i,"false"),this.adapter.setAttributeForElementIndex(t,i,"true"),this.selectedIndex=t},i.prototype.setCheckboxAtIndex=function(t){for(var i=this.getSelectionAttribute(),n=0;n<this.adapter.getListItemCount();n++){var e=!1;t.indexOf(n)>=0&&(e=!0),this.adapter.setCheckedCheckboxOrRadioAtIndex(n,e),this.adapter.setAttributeForElementIndex(n,i,e?"true":"false")}this.selectedIndex=t},i.prototype.setTabindexAtIndex=function(t){this.focusedItemIndex===T.UNSET_INDEX&&0!==t?this.adapter.setAttributeForElementIndex(0,"tabindex","-1"):this.focusedItemIndex>=0&&this.focusedItemIndex!==t&&this.adapter.setAttributeForElementIndex(this.focusedItemIndex,"tabindex","-1"),this.selectedIndex instanceof Array||this.selectedIndex===t||this.adapter.setAttributeForElementIndex(this.selectedIndex,"tabindex","-1"),t!==T.UNSET_INDEX&&this.adapter.setAttributeForElementIndex(t,"tabindex","0")},i.prototype.isSelectableList=function(){return this.isSingleSelectionList||this.isCheckboxList||this.isRadioList},i.prototype.setTabindexToFirstSelectedOrFocusedItem=function(){var t=this.getFirstSelectedOrFocusedItemIndex();this.setTabindexAtIndex(t)},i.prototype.getFirstSelectedOrFocusedItemIndex=function(){return this.isSelectableList()?"number"==typeof this.selectedIndex&&this.selectedIndex!==T.UNSET_INDEX?this.selectedIndex:this.selectedIndex instanceof Array&&this.selectedIndex.length>0?this.selectedIndex.reduce((function(t,i){return Math.min(t,i)})):0:Math.max(this.focusedItemIndex,0)},i.prototype.isIndexValid=function(t){var i=this;if(t instanceof Array){if(!this.isCheckboxList)throw new Error("MDCListFoundation: Array of index is only supported for checkbox based list");return 0===t.length||t.some((function(t){return i.isIndexInRange(t)}))}if("number"==typeof t){if(this.isCheckboxList)throw new Error("MDCListFoundation: Expected array of index for checkbox based list but got number: "+t);return this.isIndexInRange(t)||this.isSingleSelectionList&&t===T.UNSET_INDEX}return!1},i.prototype.isIndexInRange=function(t){var i=this.adapter.getListItemCount();return t>=0&&t<i},i.prototype.setSelectedIndexOnAction=function(t,i){void 0===i&&(i=!0),this.isCheckboxList?this.toggleCheckboxAtIndex(t,i):this.setSelectedIndex(t)},i.prototype.toggleCheckboxAtIndex=function(t,i){var n=this.getSelectionAttribute(),e=this.adapter.isCheckboxCheckedAtIndex(t);i&&this.adapter.setCheckedCheckboxOrRadioAtIndex(t,e=!e),this.adapter.setAttributeForElementIndex(t,n,e?"true":"false");var s=this.selectedIndex===T.UNSET_INDEX?[]:this.selectedIndex.slice();e?s.push(t):s=s.filter((function(i){return i!==t})),this.selectedIndex=s},i.prototype.focusItemAtIndex=function(t){this.adapter.focusItemAtIndex(t),this.focusedItemIndex=t},i.prototype.toggleAll=function(t){var i=this.adapter.getListItemCount();if(t.length===i)this.setCheckboxAtIndex([]);else{for(var n=[],e=0;e<i;e++)(!this.adapter.listItemAtIndexHasClass(e,I.LIST_ITEM_DISABLED_CLASS)||t.indexOf(e)>-1)&&n.push(e);this.setCheckboxAtIndex(n)}},i.prototype.typeaheadMatchItem=function(t,i,n){var e=this;return void 0===n&&(n=!1),_({focusItemAtIndex:function(t){e.focusItemAtIndex(t)},focusedItemIndex:i||this.focusedItemIndex,nextChar:t,sortedIndexByFirstChar:this.sortedIndexByFirstChar,skipFocus:n,isItemAtIndexDisabled:function(t){return e.adapter.listItemAtIndexHasClass(t,I.LIST_ITEM_DISABLED_CLASS)}},this.typeaheadState)},i.prototype.typeaheadInitSortedIndex=function(){return function(t,i){for(var n=new Map,e=0;e<t;e++){var s=i(e).trim();if(s){var r=s[0].toLowerCase();n.has(r)||n.set(r,[]),n.get(r).push({text:s.toLowerCase(),index:e})}}return n.forEach((function(t){t.sort((function(t,i){return t.index-i.index}))})),n}(this.adapter.getListItemCount(),this.adapter.getPrimaryTextAtIndex)},i.prototype.clearTypeaheadBuffer=function(){p(this.typeaheadState)},i}(t),S=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return d(i,t),Object.defineProperty(i.prototype,"vertical",{set:function(t){this.foundation.setVerticalOrientation(t)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"listElements",{get:function(){return Array.from(this.root.querySelectorAll("."+this.classNameMap[I.LIST_ITEM_CLASS]))},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"wrapFocus",{set:function(t){this.foundation.setWrapFocus(t)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"typeaheadInProgress",{get:function(){return this.foundation.isTypeaheadInProgress()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"hasTypeahead",{set:function(t){this.foundation.setHasTypeahead(t)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"singleSelection",{set:function(t){this.foundation.setSingleSelection(t)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"selectedIndex",{get:function(){return this.foundation.getSelectedIndex()},set:function(t){this.foundation.setSelectedIndex(t)},enumerable:!1,configurable:!0}),i.attachTo=function(t){return new i(t)},i.prototype.initialSyncWithDOM=function(){this.isEvolutionEnabled="evolution"in this.root.dataset,this.classNameMap=this.isEvolutionEnabled?E:n(this.root,v.DEPRECATED_SELECTOR)?A:Object.values(I).reduce((function(t,i){return t[i]=i,t}),{}),this.handleClick=this.handleClickEvent.bind(this),this.handleKeydown=this.handleKeydownEvent.bind(this),this.focusInEventListener=this.handleFocusInEvent.bind(this),this.focusOutEventListener=this.handleFocusOutEvent.bind(this),this.listen("keydown",this.handleKeydown),this.listen("click",this.handleClick),this.listen("focusin",this.focusInEventListener),this.listen("focusout",this.focusOutEventListener),this.layout(),this.initializeListType(),this.ensureFocusable()},i.prototype.destroy=function(){this.unlisten("keydown",this.handleKeydown),this.unlisten("click",this.handleClick),this.unlisten("focusin",this.focusInEventListener),this.unlisten("focusout",this.focusOutEventListener)},i.prototype.layout=function(){var t=this.root.getAttribute(v.ARIA_ORIENTATION);this.vertical=t!==v.ARIA_ORIENTATION_HORIZONTAL;var i=v.FOCUSABLE_CHILD_ELEMENTS,n=this.root.querySelectorAll("."+this.classNameMap[I.LIST_ITEM_CLASS]+":not([tabindex])");n.length&&Array.prototype.forEach.call(n,(function(t){t.setAttribute("tabindex","-1")}));var e=this.root.querySelectorAll(i);e.length&&Array.prototype.forEach.call(e,(function(t){t.setAttribute("tabindex","-1")})),this.isEvolutionEnabled&&this.foundation.setUseSelectedAttribute(!0),this.foundation.layout()},i.prototype.getPrimaryText=function(t){var i,n=t.querySelector("."+this.classNameMap[I.LIST_ITEM_PRIMARY_TEXT_CLASS]);if(this.isEvolutionEnabled||n)return null!==(i=null==n?void 0:n.textContent)&&void 0!==i?i:"";var e=t.querySelector("."+this.classNameMap[I.LIST_ITEM_TEXT_CLASS]);return e&&e.textContent||""},i.prototype.initializeListType=function(){var t=this;if(this.isInteractive=n(this.root,v.ARIA_INTERACTIVE_ROLES_SELECTOR),this.isEvolutionEnabled&&this.isInteractive){var i=Array.from(this.root.querySelectorAll(v.SELECTED_ITEM_SELECTOR),(function(i){return t.listElements.indexOf(i)}));n(this.root,v.ARIA_MULTI_SELECTABLE_SELECTOR)?this.selectedIndex=i:i.length>0&&(this.selectedIndex=i[0])}else{var e=this.root.querySelectorAll(v.ARIA_ROLE_CHECKBOX_SELECTOR),s=this.root.querySelector(v.ARIA_CHECKED_RADIO_SELECTOR);if(e.length){var r=this.root.querySelectorAll(v.ARIA_CHECKED_CHECKBOX_SELECTOR);this.selectedIndex=Array.from(r,(function(i){return t.listElements.indexOf(i)}))}else s&&(this.selectedIndex=this.listElements.indexOf(s))}},i.prototype.setEnabled=function(t,i){this.foundation.setEnabled(t,i)},i.prototype.typeaheadMatchItem=function(t,i){return this.foundation.typeaheadMatchItem(t,i,!0)},i.prototype.getDefaultFoundation=function(){var t=this;return new y({addClassForElementIndex:function(i,n){var e=t.listElements[i];e&&e.classList.add(t.classNameMap[n])},focusItemAtIndex:function(i){var n=t.listElements[i];n&&n.focus()},getAttributeForElementIndex:function(i,n){return t.listElements[i].getAttribute(n)},getFocusedElementIndex:function(){return t.listElements.indexOf(document.activeElement)},getListItemCount:function(){return t.listElements.length},getPrimaryTextAtIndex:function(i){return t.getPrimaryText(t.listElements[i])},hasCheckboxAtIndex:function(i){return!!t.listElements[i].querySelector(v.CHECKBOX_SELECTOR)},hasRadioAtIndex:function(i){return!!t.listElements[i].querySelector(v.RADIO_SELECTOR)},isCheckboxCheckedAtIndex:function(i){return t.listElements[i].querySelector(v.CHECKBOX_SELECTOR).checked},isFocusInsideList:function(){return t.root!==document.activeElement&&t.root.contains(document.activeElement)},isRootFocused:function(){return document.activeElement===t.root},listItemAtIndexHasClass:function(i,n){return t.listElements[i].classList.contains(t.classNameMap[n])},notifyAction:function(i){t.emit(v.ACTION_EVENT,{index:i},!0)},removeClassForElementIndex:function(i,n){var e=t.listElements[i];e&&e.classList.remove(t.classNameMap[n])},setAttributeForElementIndex:function(i,n,e){var s=t.listElements[i];s&&s.setAttribute(n,e)},setCheckedCheckboxOrRadioAtIndex:function(i,n){var e=t.listElements[i].querySelector(v.CHECKBOX_RADIO_SELECTOR);e.checked=n;var s=document.createEvent("Event");s.initEvent("change",!0,!0),e.dispatchEvent(s)},setTabIndexForListItemChildren:function(i,n){Array.prototype.forEach.call(t.listElements[i].querySelectorAll(v.CHILD_ELEMENTS_TO_TOGGLE_TABINDEX),(function(t){t.setAttribute("tabindex",n)}))}})},i.prototype.ensureFocusable=function(){if(this.isEvolutionEnabled&&this.isInteractive&&!this.root.querySelector("."+this.classNameMap[I.LIST_ITEM_CLASS]+'[tabindex="0"]')){var t=this.initialFocusIndex();-1!==t&&(this.listElements[t].tabIndex=0)}},i.prototype.initialFocusIndex=function(){if(this.selectedIndex instanceof Array&&this.selectedIndex.length>0)return this.selectedIndex[0];if("number"==typeof this.selectedIndex&&this.selectedIndex!==T.UNSET_INDEX)return this.selectedIndex;var t=this.root.querySelector("."+this.classNameMap[I.LIST_ITEM_CLASS]+":not(."+this.classNameMap[I.LIST_ITEM_DISABLED_CLASS]+")");return null===t?-1:this.getListItemIndex(t)},i.prototype.getListItemIndex=function(t){var i=e(t,"."+this.classNameMap[I.LIST_ITEM_CLASS]+", ."+this.classNameMap[I.ROOT]);return i&&n(i,"."+this.classNameMap[I.LIST_ITEM_CLASS])?this.listElements.indexOf(i):-1},i.prototype.handleFocusInEvent=function(t){var i=this.getListItemIndex(t.target);this.foundation.handleFocusIn(i)},i.prototype.handleFocusOutEvent=function(t){var i=this.getListItemIndex(t.target);this.foundation.handleFocusOut(i)},i.prototype.handleKeydownEvent=function(t){var i=this.getListItemIndex(t.target);this.foundation.handleKeydown(t,t.target.classList.contains(this.classNameMap[I.LIST_ITEM_CLASS]),i)},i.prototype.handleClickEvent=function(t){var i=this.getListItemIndex(t.target),e=!n(t.target,v.CHECKBOX_RADIO_SELECTOR);this.foundation.handleClick(i,e)},i}(i),R=function(t,i){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])})(t,i)};
83
+ /**
84
+ * @license
85
+ * Copyright 2018 Google Inc.
86
+ *
87
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
88
+ * of this software and associated documentation files (the "Software"), to deal
89
+ * in the Software without restriction, including without limitation the rights
90
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
91
+ * copies of the Software, and to permit persons to whom the Software is
92
+ * furnished to do so, subject to the following conditions:
93
+ *
94
+ * The above copyright notice and this permission notice shall be included in
95
+ * all copies or substantial portions of the Software.
96
+ *
97
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
98
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
99
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
100
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
101
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
102
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
103
+ * THE SOFTWARE.
104
+ */function L(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}R(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}var w=function(){return(w=Object.assign||function(t){for(var i,n=1,e=arguments.length;n<e;n++)for(var s in i=arguments[n])Object.prototype.hasOwnProperty.call(i,s)&&(t[s]=i[s]);return t}).apply(this,arguments)},D=function(t){function i(n){var e=t.call(this,w(w({},i.defaultAdapter),n))||this;return e.isSurfaceOpen=!1,e.isQuickOpen=!1,e.isHoistedElement=!1,e.isFixedPosition=!1,e.isHorizontallyCenteredOnViewport=!1,e.maxHeight=0,e.openAnimationEndTimerId=0,e.closeAnimationEndTimerId=0,e.animationRequestId=0,e.anchorCorner=u.TOP_START,e.originCorner=u.TOP_START,e.anchorMargin={top:0,right:0,bottom:0,left:0},e.position={x:0,y:0},e}return L(i,t),Object.defineProperty(i,"cssClasses",{get:function(){return h},enumerable:!1,configurable:!0}),Object.defineProperty(i,"strings",{get:function(){return c},enumerable:!1,configurable:!0}),Object.defineProperty(i,"numbers",{get:function(){return f},enumerable:!1,configurable:!0}),Object.defineProperty(i,"Corner",{get:function(){return u},enumerable:!1,configurable:!0}),Object.defineProperty(i,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},hasAnchor:function(){return!1},isElementInContainer:function(){return!1},isFocused:function(){return!1},isRtl:function(){return!1},getInnerDimensions:function(){return{height:0,width:0}},getAnchorDimensions:function(){return null},getWindowDimensions:function(){return{height:0,width:0}},getBodyDimensions:function(){return{height:0,width:0}},getWindowScroll:function(){return{x:0,y:0}},setPosition:function(){},setMaxHeight:function(){},setTransformOrigin:function(){},saveFocus:function(){},restoreFocus:function(){},notifyClose:function(){},notifyOpen:function(){},notifyClosing:function(){}}},enumerable:!1,configurable:!0}),i.prototype.init=function(){var t=i.cssClasses,n=t.ROOT,e=t.OPEN;if(!this.adapter.hasClass(n))throw new Error(n+" class required in root element.");this.adapter.hasClass(e)&&(this.isSurfaceOpen=!0)},i.prototype.destroy=function(){clearTimeout(this.openAnimationEndTimerId),clearTimeout(this.closeAnimationEndTimerId),cancelAnimationFrame(this.animationRequestId)},i.prototype.setAnchorCorner=function(t){this.anchorCorner=t},i.prototype.flipCornerHorizontally=function(){this.originCorner=this.originCorner^o.RIGHT},i.prototype.setAnchorMargin=function(t){this.anchorMargin.top=t.top||0,this.anchorMargin.right=t.right||0,this.anchorMargin.bottom=t.bottom||0,this.anchorMargin.left=t.left||0},i.prototype.setIsHoisted=function(t){this.isHoistedElement=t},i.prototype.setFixedPosition=function(t){this.isFixedPosition=t},i.prototype.isFixed=function(){return this.isFixedPosition},i.prototype.setAbsolutePosition=function(t,i){this.position.x=this.isFinite(t)?t:0,this.position.y=this.isFinite(i)?i:0},i.prototype.setIsHorizontallyCenteredOnViewport=function(t){this.isHorizontallyCenteredOnViewport=t},i.prototype.setQuickOpen=function(t){this.isQuickOpen=t},i.prototype.setMaxHeight=function(t){this.maxHeight=t},i.prototype.isOpen=function(){return this.isSurfaceOpen},i.prototype.open=function(){var t=this;this.isSurfaceOpen||(this.adapter.saveFocus(),this.isQuickOpen?(this.isSurfaceOpen=!0,this.adapter.addClass(i.cssClasses.OPEN),this.dimensions=this.adapter.getInnerDimensions(),this.autoposition(),this.adapter.notifyOpen()):(this.adapter.addClass(i.cssClasses.ANIMATING_OPEN),this.animationRequestId=requestAnimationFrame((function(){t.dimensions=t.adapter.getInnerDimensions(),t.autoposition(),t.adapter.addClass(i.cssClasses.OPEN),t.openAnimationEndTimerId=setTimeout((function(){t.openAnimationEndTimerId=0,t.adapter.removeClass(i.cssClasses.ANIMATING_OPEN),t.adapter.notifyOpen()}),f.TRANSITION_OPEN_DURATION)})),this.isSurfaceOpen=!0))},i.prototype.close=function(t){var n=this;if(void 0===t&&(t=!1),this.isSurfaceOpen){if(this.adapter.notifyClosing(),this.isQuickOpen)return this.isSurfaceOpen=!1,t||this.maybeRestoreFocus(),this.adapter.removeClass(i.cssClasses.OPEN),this.adapter.removeClass(i.cssClasses.IS_OPEN_BELOW),void this.adapter.notifyClose();this.adapter.addClass(i.cssClasses.ANIMATING_CLOSED),requestAnimationFrame((function(){n.adapter.removeClass(i.cssClasses.OPEN),n.adapter.removeClass(i.cssClasses.IS_OPEN_BELOW),n.closeAnimationEndTimerId=setTimeout((function(){n.closeAnimationEndTimerId=0,n.adapter.removeClass(i.cssClasses.ANIMATING_CLOSED),n.adapter.notifyClose()}),f.TRANSITION_CLOSE_DURATION)})),this.isSurfaceOpen=!1,t||this.maybeRestoreFocus()}},i.prototype.handleBodyClick=function(t){this.adapter.isElementInContainer(t.target)||this.close()},i.prototype.handleKeydown=function(t){("Escape"===t.key||27===t.keyCode)&&this.close()},i.prototype.autoposition=function(){var t;this.measurements=this.getAutoLayoutmeasurements();var n=this.getoriginCorner(),e=this.getMenuSurfaceMaxHeight(n),s=this.hasBit(n,o.BOTTOM)?"bottom":"top",r=this.hasBit(n,o.RIGHT)?"right":"left",u=this.getHorizontalOriginOffset(n),h=this.getVerticalOriginOffset(n),c=this.measurements,a=c.anchorSize,d=c.surfaceSize,l=((t={})[r]=u,t[s]=h,t);a.width/d.width>f.ANCHOR_TO_MENU_SURFACE_WIDTH_RATIO&&(r="center"),(this.isHoistedElement||this.isFixedPosition)&&this.adjustPositionForHoistedElement(l),this.adapter.setTransformOrigin(r+" "+s),this.adapter.setPosition(l),this.adapter.setMaxHeight(e?e+"px":""),this.hasBit(n,o.BOTTOM)||this.adapter.addClass(i.cssClasses.IS_OPEN_BELOW)},i.prototype.getAutoLayoutmeasurements=function(){var t=this.adapter.getAnchorDimensions(),i=this.adapter.getBodyDimensions(),n=this.adapter.getWindowDimensions(),e=this.adapter.getWindowScroll();return t||(t={top:this.position.y,right:this.position.x,bottom:this.position.y,left:this.position.x,width:0,height:0}),{anchorSize:t,bodySize:i,surfaceSize:this.dimensions,viewportDistance:{top:t.top,right:n.width-t.right,bottom:n.height-t.bottom,left:t.left},viewportSize:n,windowScroll:e}},i.prototype.getoriginCorner=function(){var t,n,e=this.originCorner,s=this.measurements,r=s.viewportDistance,u=s.anchorSize,h=s.surfaceSize,c=i.numbers.MARGIN_TO_EDGE;this.hasBit(this.anchorCorner,o.BOTTOM)?(t=r.top-c+this.anchorMargin.bottom,n=r.bottom-c-this.anchorMargin.bottom):(t=r.top-c+this.anchorMargin.top,n=r.bottom-c+u.height-this.anchorMargin.top),!(n-h.height>0)&&t>n&&(e=this.setBit(e,o.BOTTOM));var f,a,d,l=this.adapter.isRtl(),m=this.hasBit(this.anchorCorner,o.FLIP_RTL),b=this.hasBit(this.anchorCorner,o.RIGHT)||this.hasBit(e,o.RIGHT);(d=l&&m?!b:b)?(f=r.left+u.width+this.anchorMargin.right,a=r.right-this.anchorMargin.right):(f=r.left+this.anchorMargin.left,a=r.right+u.width-this.anchorMargin.left);var I=f-h.width>0,E=a-h.width>0,A=this.hasBit(e,o.FLIP_RTL)&&this.hasBit(e,o.RIGHT);return E&&A&&l||!I&&A?e=this.unsetBit(e,o.RIGHT):(I&&d&&l||I&&!d&&b||!E&&f>=a)&&(e=this.setBit(e,o.RIGHT)),e},i.prototype.getMenuSurfaceMaxHeight=function(t){if(this.maxHeight>0)return this.maxHeight;var n=this.measurements.viewportDistance,e=0,s=this.hasBit(t,o.BOTTOM),r=this.hasBit(this.anchorCorner,o.BOTTOM),u=i.numbers.MARGIN_TO_EDGE;return s?(e=n.top+this.anchorMargin.top-u,r||(e+=this.measurements.anchorSize.height)):(e=n.bottom-this.anchorMargin.bottom+this.measurements.anchorSize.height-u,r&&(e-=this.measurements.anchorSize.height)),e},i.prototype.getHorizontalOriginOffset=function(t){var i=this.measurements.anchorSize,n=this.hasBit(t,o.RIGHT),e=this.hasBit(this.anchorCorner,o.RIGHT);if(n){var s=e?i.width-this.anchorMargin.left:this.anchorMargin.right;return this.isHoistedElement||this.isFixedPosition?s-(this.measurements.viewportSize.width-this.measurements.bodySize.width):s}return e?i.width-this.anchorMargin.right:this.anchorMargin.left},i.prototype.getVerticalOriginOffset=function(t){var i=this.measurements.anchorSize,n=this.hasBit(t,o.BOTTOM),e=this.hasBit(this.anchorCorner,o.BOTTOM);return n?e?i.height-this.anchorMargin.top:-this.anchorMargin.bottom:e?i.height+this.anchorMargin.bottom:this.anchorMargin.top},i.prototype.adjustPositionForHoistedElement=function(t){var i,n,e=this.measurements,s=e.windowScroll,r=e.viewportDistance,o=e.surfaceSize,u=e.viewportSize,h=Object.keys(t);try{for(var c=function(t){var i="function"==typeof Symbol&&Symbol.iterator,n=i&&t[i],e=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&e>=t.length&&(t=void 0),{value:t&&t[e++],done:!t}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}
105
+ /**
106
+ * @license
107
+ * Copyright 2018 Google Inc.
108
+ *
109
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
110
+ * of this software and associated documentation files (the "Software"), to deal
111
+ * in the Software without restriction, including without limitation the rights
112
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
113
+ * copies of the Software, and to permit persons to whom the Software is
114
+ * furnished to do so, subject to the following conditions:
115
+ *
116
+ * The above copyright notice and this permission notice shall be included in
117
+ * all copies or substantial portions of the Software.
118
+ *
119
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
120
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
121
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
122
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
123
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
124
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
125
+ * THE SOFTWARE.
126
+ */(h),f=c.next();!f.done;f=c.next()){var a=f.value,d=t[a]||0;!this.isHorizontallyCenteredOnViewport||"left"!==a&&"right"!==a?(d+=r[a],this.isFixedPosition||("top"===a?d+=s.y:"bottom"===a?d-=s.y:"left"===a?d+=s.x:d-=s.x),t[a]=d):t[a]=(u.width-o.width)/2}}catch(t){i={error:t}}finally{try{f&&!f.done&&(n=c.return)&&n.call(c)}finally{if(i)throw i.error}}},i.prototype.maybeRestoreFocus=function(){var t=this,i=this.adapter.isFocused(),n=document.activeElement&&this.adapter.isElementInContainer(document.activeElement);(i||n)&&setTimeout((function(){t.adapter.restoreFocus()}),f.TOUCH_EVENT_WAIT_MS)},i.prototype.hasBit=function(t,i){return Boolean(t&i)},i.prototype.setBit=function(t,i){return t|i},i.prototype.unsetBit=function(t,i){return t^i},i.prototype.isFinite=function(t){return"number"==typeof t&&isFinite(t)},i}(t),F=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return L(i,t),i.attachTo=function(t){return new i(t)},i.prototype.initialSyncWithDOM=function(){var t=this,i=this.root.parentElement;this.anchorElement=i&&i.classList.contains(h.ANCHOR)?i:null,this.root.classList.contains(h.FIXED)&&this.setFixedPosition(!0),this.handleKeydown=function(i){t.foundation.handleKeydown(i)},this.handleBodyClick=function(i){t.foundation.handleBodyClick(i)},this.registerBodyClickListener=function(){document.body.addEventListener("click",t.handleBodyClick,{capture:!0})},this.deregisterBodyClickListener=function(){document.body.removeEventListener("click",t.handleBodyClick,{capture:!0})},this.listen("keydown",this.handleKeydown),this.listen(c.OPENED_EVENT,this.registerBodyClickListener),this.listen(c.CLOSED_EVENT,this.deregisterBodyClickListener)},i.prototype.destroy=function(){this.unlisten("keydown",this.handleKeydown),this.unlisten(c.OPENED_EVENT,this.registerBodyClickListener),this.unlisten(c.CLOSED_EVENT,this.deregisterBodyClickListener),t.prototype.destroy.call(this)},i.prototype.isOpen=function(){return this.foundation.isOpen()},i.prototype.open=function(){this.foundation.open()},i.prototype.close=function(t){void 0===t&&(t=!1),this.foundation.close(t)},Object.defineProperty(i.prototype,"quickOpen",{set:function(t){this.foundation.setQuickOpen(t)},enumerable:!1,configurable:!0}),i.prototype.setIsHoisted=function(t){this.foundation.setIsHoisted(t)},i.prototype.setMenuSurfaceAnchorElement=function(t){this.anchorElement=t},i.prototype.setFixedPosition=function(t){t?this.root.classList.add(h.FIXED):this.root.classList.remove(h.FIXED),this.foundation.setFixedPosition(t)},i.prototype.setAbsolutePosition=function(t,i){this.foundation.setAbsolutePosition(t,i),this.setIsHoisted(!0)},i.prototype.setAnchorCorner=function(t){this.foundation.setAnchorCorner(t)},i.prototype.setAnchorMargin=function(t){this.foundation.setAnchorMargin(t)},i.prototype.getDefaultFoundation=function(){var t=this;return new D({addClass:function(i){return t.root.classList.add(i)},removeClass:function(i){return t.root.classList.remove(i)},hasClass:function(i){return t.root.classList.contains(i)},hasAnchor:function(){return!!t.anchorElement},notifyClose:function(){return t.emit(D.strings.CLOSED_EVENT,{})},notifyClosing:function(){t.emit(D.strings.CLOSING_EVENT,{})},notifyOpen:function(){return t.emit(D.strings.OPENED_EVENT,{})},isElementInContainer:function(i){return t.root.contains(i)},isRtl:function(){return"rtl"===getComputedStyle(t.root).getPropertyValue("direction")},setTransformOrigin:function(i){var n=r(window,"transform")+"-origin";t.root.style.setProperty(n,i)},isFocused:function(){return document.activeElement===t.root},saveFocus:function(){t.previousFocus=document.activeElement},restoreFocus:function(){t.root.contains(document.activeElement)&&t.previousFocus&&t.previousFocus.focus&&t.previousFocus.focus()},getInnerDimensions:function(){return{width:t.root.offsetWidth,height:t.root.offsetHeight}},getAnchorDimensions:function(){return t.anchorElement?t.anchorElement.getBoundingClientRect():null},getWindowDimensions:function(){return{width:window.innerWidth,height:window.innerHeight}},getBodyDimensions:function(){return{width:document.body.clientWidth,height:document.body.clientHeight}},getWindowScroll:function(){return{x:window.pageXOffset,y:window.pageYOffset}},setPosition:function(i){var n=t.root;n.style.left="left"in i?i.left+"px":"",n.style.right="right"in i?i.right+"px":"",n.style.top="top"in i?i.top+"px":"",n.style.bottom="bottom"in i?i.bottom+"px":""},setMaxHeight:function(i){t.root.style.maxHeight=i}})},i}(i);export{u as C,D as M,y as a,F as b,I as c,S as d,T as n,v as s}
@@ -0,0 +1 @@
1
+ import{r as e,h as t}from"./p-44f9b6d5.js";let n=class{constructor(t){e(this,t),this.direction="horizontal",this.justify="space-between",this.align="center",this.reverse=!1}componentWillLoad(){console.warn("limel-flex-container is deprecated, please use CSS instead: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Flexible_Box_Layout/Basic_Concepts_of_Flexbox")}render(){return t("slot",null)}};n.style=":host(limel-flex-container){display:flex}:host(limel-flex-container[hidden]){display:none}:host(limel-flex-container[direction=horizontal]){flex-direction:row}:host(limel-flex-container[direction=horizontal][reverse]){flex-direction:row-reverse}:host(limel-flex-container[direction=vertical]){flex-direction:column}:host(limel-flex-container[direction=vertical][reverse]){flex-direction:column-reverse}:host(limel-flex-container[align=start]){align-items:flex-start}:host(limel-flex-container[align=end]){align-items:flex-end}:host(limel-flex-container[align=center]){align-items:center}:host(limel-flex-container[align=stretch]){align-items:stretch}:host(limel-flex-container[justify=start]){justify-content:flex-start}:host(limel-flex-container[justify=end]){justify-content:flex-end}:host(limel-flex-container[justify=center]){justify-content:center}:host(limel-flex-container[justify=space-between]){justify-content:space-between}:host(limel-flex-container[justify=space-around]){justify-content:space-around}:host(limel-flex-container[justify=space-evenly]){justify-content:space-evenly}:host(limel-flex-container[slot=button]){gap:0.5rem;width:100%;justify-content:flex-end}:host(limel-flex-container[slot=button][direction=horizontal][reverse]){justify-content:flex-start}";export{n as limel_flex_container}
@@ -1 +1 @@
1
- import{r as t,h as e,g as i}from"./p-92146da6.js";import{c as s}from"./p-6c094f3f.js";let l=class{constructor(e){t(this,e),this.maxlength=50,this.showTooltip=()=>{this.showTooltipTimeoutHandle=window.setTimeout((()=>{this.open=!0}),500)},this.hideTooltip=()=>{clearTimeout(this.showTooltipTimeoutHandle),this.open=!1},this.portalId=s(),this.tooltipId=s()}connectedCallback(){this.setOwnerAriaLabel(),this.addListeners()}disconnectedCallback(){this.removeListeners()}render(){const t=getComputedStyle(this.host).getPropertyValue("--tooltip-z-index");return e("div",{class:"trigger-anchor"},e("limel-portal",{visible:this.open,containerId:this.portalId,containerStyle:{"z-index":t,"pointer-events":"none"}},e("limel-tooltip-content",{label:this.label,helperLabel:this.helperLabel,maxlength:this.maxlength,role:"tooltip","aria-hidden":!this.open,id:this.tooltipId})))}setOwnerAriaLabel(){const t=this.getOwnerElement();null==t||t.setAttribute("aria-describedby",this.tooltipId)}addListeners(){const t=this.getOwnerElement();null==t||t.addEventListener("mouseover",this.showTooltip),null==t||t.addEventListener("mouseout",this.hideTooltip),null==t||t.addEventListener("click",this.hideTooltip)}removeListeners(){const t=this.getOwnerElement();null==t||t.removeEventListener("mouseover",this.showTooltip),null==t||t.removeEventListener("mouseout",this.hideTooltip),null==t||t.removeEventListener("click",this.hideTooltip)}getOwnerElement(){var t;let e=this.host;do{e=e.parentNode}while(e&&e.nodeType!==Node.DOCUMENT_FRAGMENT_NODE&&e.nodeType!==Node.DOCUMENT_NODE);return null===(t=e)||void 0===t?void 0:t.getElementById(this.elementId)}get host(){return i(this)}};l.style=".trigger-anchor{position:relative}";let o=class{constructor(e){t(this,e)}render(){let t=!1;this.helperLabel&&this.maxlength&&(t=this.label.length+this.helperLabel.length>this.maxlength);const i={};return this.maxlength&&(i.style={"--tooltip-max-width-of-text":`${this.maxlength}ch`}),[e("text",Object.assign({class:{"has-column-layout":t}},i),e("div",{class:"label"},this.label),e("div",{class:"helper-label"},this.helperLabel))]}};o.style=":host{animation:display-tooltip 0.2s ease;display:flex;border-radius:0.25rem;padding:0.25rem 0.5rem;background-color:rgb(var(--contrast-1300));box-shadow:var(--shadow-depth-16)}text{font-size:0.875rem;line-height:1.25;display:flex;column-gap:1rem}text.has-column-layout{display:table-cell;width:fit-content;max-width:min(var(--tooltip-max-width-of-text), 80vw)}text.has-column-layout .label{padding-bottom:0.5rem}text.has-column-layout .helper-label{padding-bottom:0.25rem}.label{color:rgb(var(--contrast-200))}.helper-label{color:rgb(var(--contrast-800))}.helper-label:empty{display:none}@keyframes display-tooltip{0%{opacity:0;transform:translate3d(0, 0, 0) scale(0.94)}100%{opacity:1;transform:translate3d(0, 0, 0) scale(1)}}";export{l as limel_tooltip,o as limel_tooltip_content}
1
+ import{r as t,h as e,g as i}from"./p-44f9b6d5.js";import{c as s}from"./p-6c094f3f.js";let l=class{constructor(e){t(this,e),this.maxlength=50,this.showTooltip=()=>{this.showTooltipTimeoutHandle=window.setTimeout((()=>{this.open=!0}),500)},this.hideTooltip=()=>{clearTimeout(this.showTooltipTimeoutHandle),this.open=!1},this.portalId=s(),this.tooltipId=s()}connectedCallback(){this.setOwnerAriaLabel(),this.addListeners()}disconnectedCallback(){this.removeListeners()}render(){const t=getComputedStyle(this.host).getPropertyValue("--tooltip-z-index");return e("div",{class:"trigger-anchor"},e("limel-portal",{visible:this.open,containerId:this.portalId,containerStyle:{"z-index":t,"pointer-events":"none"}},e("limel-tooltip-content",{label:this.label,helperLabel:this.helperLabel,maxlength:this.maxlength,role:"tooltip","aria-hidden":!this.open,id:this.tooltipId})))}setOwnerAriaLabel(){const t=this.getOwnerElement();null==t||t.setAttribute("aria-describedby",this.tooltipId)}addListeners(){const t=this.getOwnerElement();null==t||t.addEventListener("mouseover",this.showTooltip),null==t||t.addEventListener("mouseout",this.hideTooltip),null==t||t.addEventListener("click",this.hideTooltip)}removeListeners(){const t=this.getOwnerElement();null==t||t.removeEventListener("mouseover",this.showTooltip),null==t||t.removeEventListener("mouseout",this.hideTooltip),null==t||t.removeEventListener("click",this.hideTooltip)}getOwnerElement(){var t;let e=this.host;do{e=e.parentNode}while(e&&e.nodeType!==Node.DOCUMENT_FRAGMENT_NODE&&e.nodeType!==Node.DOCUMENT_NODE);return null===(t=e)||void 0===t?void 0:t.getElementById(this.elementId)}get host(){return i(this)}};l.style=".trigger-anchor{position:relative}";let o=class{constructor(e){t(this,e)}render(){let t=!1;this.helperLabel&&this.maxlength&&(t=this.label.length+this.helperLabel.length>this.maxlength);const i={};return this.maxlength&&(i.style={"--tooltip-max-width-of-text":`${this.maxlength}ch`}),[e("text",Object.assign({class:{"has-column-layout":t}},i),e("div",{class:"label"},this.label),e("div",{class:"helper-label"},this.helperLabel))]}};o.style=":host{animation:display-tooltip 0.2s ease;display:flex;border-radius:0.25rem;padding:0.25rem 0.5rem;background-color:rgb(var(--contrast-1300));box-shadow:var(--shadow-depth-16)}text{font-size:0.875rem;line-height:1.25;display:flex;column-gap:1rem}text.has-column-layout{display:table-cell;width:fit-content;max-width:min(var(--tooltip-max-width-of-text), 80vw)}text.has-column-layout .label{padding-bottom:0.5rem}text.has-column-layout .helper-label{padding-bottom:0.25rem}.label{color:rgb(var(--contrast-200))}.helper-label{color:rgb(var(--contrast-800))}.helper-label:empty{display:none}@keyframes display-tooltip{0%{opacity:0;transform:translate3d(0, 0, 0) scale(0.94)}100%{opacity:1;transform:translate3d(0, 0, 0) scale(1)}}";export{l as limel_tooltip,o as limel_tooltip_content}
@@ -0,0 +1,82 @@
1
+ import{r as i,c as t,h as o,g as e}from"./p-44f9b6d5.js";import{d as n}from"./p-c70b1ea3.js";import{c as a}from"./p-6c094f3f.js";import{M as d,a as c}from"./p-48d4ef20.js";import{m as r,c as l}from"./p-dcc97cc2.js";import{M as s}from"./p-cbc43682.js";import{A as m}from"./p-48105d44.js";
2
+ /**
3
+ * @license
4
+ * Copyright 2016 Google Inc.
5
+ *
6
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ * of this software and associated documentation files (the "Software"), to deal
8
+ * in the Software without restriction, including without limitation the rights
9
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ * copies of the Software, and to permit persons to whom the Software is
11
+ * furnished to do so, subject to the following conditions:
12
+ *
13
+ * The above copyright notice and this permission notice shall be included in
14
+ * all copies or substantial portions of the Software.
15
+ *
16
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22
+ * THE SOFTWARE.
23
+ */
24
+ /*! *****************************************************************************
25
+ Copyright (c) Microsoft Corporation.
26
+
27
+ Permission to use, copy, modify, and/or distribute this software for any
28
+ purpose with or without fee is hereby granted.
29
+
30
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
31
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
32
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
33
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
34
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
35
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
36
+ PERFORMANCE OF THIS SOFTWARE.
37
+ ***************************************************************************** */
38
+ var g=function(i,t){return(g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,t){i.__proto__=t}||function(i,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(i[o]=t[o])})(i,t)};function h(i,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=i}g(i,t),i.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}var u,f=function(){return(f=Object.assign||function(i){for(var t,o=1,e=arguments.length;o<e;o++)for(var n in t=arguments[o])Object.prototype.hasOwnProperty.call(t,n)&&(i[n]=t[n]);return i}).apply(this,arguments)},p=function(){function i(i,t){void 0===t&&(t={}),this.root=i,this.options=t,this.elFocusedBeforeTrapFocus=null}return i.prototype.trapFocus=function(){var i=this.getFocusableElements(this.root);if(0===i.length)throw new Error("FocusTrap: Element must have at least one focusable child.");this.elFocusedBeforeTrapFocus=document.activeElement instanceof HTMLElement?document.activeElement:null,this.wrapTabFocus(this.root),this.options.skipInitialFocus||this.focusInitialElement(i,this.options.initialFocusEl)},i.prototype.releaseFocus=function(){[].slice.call(this.root.querySelectorAll(".mdc-dom-focus-sentinel")).forEach((function(i){i.parentElement.removeChild(i)})),!this.options.skipRestoreFocus&&this.elFocusedBeforeTrapFocus&&this.elFocusedBeforeTrapFocus.focus()},i.prototype.wrapTabFocus=function(i){var t=this,o=this.createSentinel(),e=this.createSentinel();o.addEventListener("focus",(function(){var o=t.getFocusableElements(i);o.length>0&&o[o.length-1].focus()})),e.addEventListener("focus",(function(){var o=t.getFocusableElements(i);o.length>0&&o[0].focus()})),i.insertBefore(o,i.children[0]),i.appendChild(e)},i.prototype.focusInitialElement=function(i,t){var o=0;t&&(o=Math.max(i.indexOf(t),0)),i[o].focus()},i.prototype.getFocusableElements=function(i){return[].slice.call(i.querySelectorAll("[autofocus], [tabindex], a, input, textarea, select, button")).filter((function(i){var t="true"===i.getAttribute("aria-disabled")||null!=i.getAttribute("disabled")||null!=i.getAttribute("hidden")||"true"===i.getAttribute("aria-hidden"),o=i.tabIndex>=0&&i.getBoundingClientRect().width>0&&!i.classList.contains("mdc-dom-focus-sentinel")&&!t,e=!1;if(o){var n=getComputedStyle(i);e="none"===n.display||"hidden"===n.visibility}return o&&!e}))},i.prototype.createSentinel=function(){var i=document.createElement("div");return i.setAttribute("tabindex","0"),i.setAttribute("aria-hidden","true"),i.classList.add("mdc-dom-focus-sentinel"),i},i}(),_={CLOSING:"mdc-dialog--closing",OPEN:"mdc-dialog--open",OPENING:"mdc-dialog--opening",SCROLLABLE:"mdc-dialog--scrollable",SCROLL_LOCK:"mdc-dialog-scroll-lock",STACKED:"mdc-dialog--stacked",FULLSCREEN:"mdc-dialog--fullscreen",SCROLL_DIVIDER_HEADER:"mdc-dialog-scroll-divider-header",SCROLL_DIVIDER_FOOTER:"mdc-dialog-scroll-divider-footer",SURFACE_SCRIM_SHOWN:"mdc-dialog__surface-scrim--shown",SURFACE_SCRIM_SHOWING:"mdc-dialog__surface-scrim--showing",SURFACE_SCRIM_HIDING:"mdc-dialog__surface-scrim--hiding",SCRIM_HIDDEN:"mdc-dialog__scrim--hidden"},b={ACTION_ATTRIBUTE:"data-mdc-dialog-action",BUTTON_DEFAULT_ATTRIBUTE:"data-mdc-dialog-button-default",BUTTON_SELECTOR:".mdc-dialog__button",CLOSED_EVENT:"MDCDialog:closed",CLOSE_ACTION:"close",CLOSING_EVENT:"MDCDialog:closing",CONTAINER_SELECTOR:".mdc-dialog__container",CONTENT_SELECTOR:".mdc-dialog__content",DESTROY_ACTION:"destroy",INITIAL_FOCUS_ATTRIBUTE:"data-mdc-dialog-initial-focus",OPENED_EVENT:"MDCDialog:opened",OPENING_EVENT:"MDCDialog:opening",SCRIM_SELECTOR:".mdc-dialog__scrim",SUPPRESS_DEFAULT_PRESS_SELECTOR:["textarea",".mdc-menu .mdc-list-item",".mdc-menu .mdc-deprecated-list-item"].join(", "),SURFACE_SELECTOR:".mdc-dialog__surface"},x={DIALOG_ANIMATION_CLOSE_TIME_MS:75,DIALOG_ANIMATION_OPEN_TIME_MS:150};!function(i){i.POLL_SCROLL_POS="poll_scroll_position",i.POLL_LAYOUT_CHANGE="poll_layout_change"}(u||(u={}));var v=function(i){function t(o){var e=i.call(this,f(f({},t.defaultAdapter),o))||this;return e.dialogOpen=!1,e.isFullscreen=!1,e.animationFrame=0,e.animationTimer=0,e.escapeKeyAction=b.CLOSE_ACTION,e.scrimClickAction=b.CLOSE_ACTION,e.autoStackButtons=!0,e.areButtonsStacked=!1,e.suppressDefaultPressSelector=b.SUPPRESS_DEFAULT_PRESS_SELECTOR,e.animFrame=new m,e.contentScrollHandler=function(){e.handleScrollEvent()},e.windowResizeHandler=function(){e.layout()},e.windowOrientationChangeHandler=function(){e.layout()},e}return h(t,i),Object.defineProperty(t,"cssClasses",{get:function(){return _},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return b},enumerable:!1,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return x},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addBodyClass:function(){},addClass:function(){},areButtonsStacked:function(){return!1},clickDefaultButton:function(){},eventTargetMatches:function(){return!1},getActionFromEvent:function(){return""},getInitialFocusEl:function(){return null},hasClass:function(){return!1},isContentScrollable:function(){return!1},notifyClosed:function(){},notifyClosing:function(){},notifyOpened:function(){},notifyOpening:function(){},releaseFocus:function(){},removeBodyClass:function(){},removeClass:function(){},reverseButtons:function(){},trapFocus:function(){},registerContentEventHandler:function(){},deregisterContentEventHandler:function(){},isScrollableContentAtTop:function(){return!1},isScrollableContentAtBottom:function(){return!1},registerWindowEventHandler:function(){},deregisterWindowEventHandler:function(){}}},enumerable:!1,configurable:!0}),t.prototype.init=function(){this.adapter.hasClass(_.STACKED)&&this.setAutoStackButtons(!1),this.isFullscreen=this.adapter.hasClass(_.FULLSCREEN)},t.prototype.destroy=function(){this.animationTimer&&(clearTimeout(this.animationTimer),this.handleAnimationTimerEnd()),this.isFullscreen&&this.adapter.deregisterContentEventHandler("scroll",this.contentScrollHandler),this.animFrame.cancelAll(),this.adapter.deregisterWindowEventHandler("resize",this.windowResizeHandler),this.adapter.deregisterWindowEventHandler("orientationchange",this.windowOrientationChangeHandler)},t.prototype.open=function(i){var t=this;this.dialogOpen=!0,this.adapter.notifyOpening(),this.adapter.addClass(_.OPENING),this.isFullscreen&&this.adapter.registerContentEventHandler("scroll",this.contentScrollHandler),i&&i.isAboveFullscreenDialog&&this.adapter.addClass(_.SCRIM_HIDDEN),this.adapter.registerWindowEventHandler("resize",this.windowResizeHandler),this.adapter.registerWindowEventHandler("orientationchange",this.windowOrientationChangeHandler),this.runNextAnimationFrame((function(){t.adapter.addClass(_.OPEN),t.adapter.addBodyClass(_.SCROLL_LOCK),t.layout(),t.animationTimer=setTimeout((function(){t.handleAnimationTimerEnd(),t.adapter.trapFocus(t.adapter.getInitialFocusEl()),t.adapter.notifyOpened()}),x.DIALOG_ANIMATION_OPEN_TIME_MS)}))},t.prototype.close=function(i){var t=this;void 0===i&&(i=""),this.dialogOpen&&(this.dialogOpen=!1,this.adapter.notifyClosing(i),this.adapter.addClass(_.CLOSING),this.adapter.removeClass(_.OPEN),this.adapter.removeBodyClass(_.SCROLL_LOCK),this.isFullscreen&&this.adapter.deregisterContentEventHandler("scroll",this.contentScrollHandler),this.adapter.deregisterWindowEventHandler("resize",this.windowResizeHandler),this.adapter.deregisterWindowEventHandler("orientationchange",this.windowOrientationChangeHandler),cancelAnimationFrame(this.animationFrame),this.animationFrame=0,clearTimeout(this.animationTimer),this.animationTimer=setTimeout((function(){t.adapter.releaseFocus(),t.handleAnimationTimerEnd(),t.adapter.notifyClosed(i)}),x.DIALOG_ANIMATION_CLOSE_TIME_MS))},t.prototype.showSurfaceScrim=function(){var i=this;this.adapter.addClass(_.SURFACE_SCRIM_SHOWING),this.runNextAnimationFrame((function(){i.adapter.addClass(_.SURFACE_SCRIM_SHOWN)}))},t.prototype.hideSurfaceScrim=function(){this.adapter.removeClass(_.SURFACE_SCRIM_SHOWN),this.adapter.addClass(_.SURFACE_SCRIM_HIDING)},t.prototype.handleSurfaceScrimTransitionEnd=function(){this.adapter.removeClass(_.SURFACE_SCRIM_HIDING),this.adapter.removeClass(_.SURFACE_SCRIM_SHOWING)},t.prototype.isOpen=function(){return this.dialogOpen},t.prototype.getEscapeKeyAction=function(){return this.escapeKeyAction},t.prototype.setEscapeKeyAction=function(i){this.escapeKeyAction=i},t.prototype.getScrimClickAction=function(){return this.scrimClickAction},t.prototype.setScrimClickAction=function(i){this.scrimClickAction=i},t.prototype.getAutoStackButtons=function(){return this.autoStackButtons},t.prototype.setAutoStackButtons=function(i){this.autoStackButtons=i},t.prototype.getSuppressDefaultPressSelector=function(){return this.suppressDefaultPressSelector},t.prototype.setSuppressDefaultPressSelector=function(i){this.suppressDefaultPressSelector=i},t.prototype.layout=function(){var i=this;this.animFrame.request(u.POLL_LAYOUT_CHANGE,(function(){i.layoutInternal()}))},t.prototype.handleClick=function(i){if(this.adapter.eventTargetMatches(i.target,b.SCRIM_SELECTOR)&&""!==this.scrimClickAction)this.close(this.scrimClickAction);else{var t=this.adapter.getActionFromEvent(i);t&&this.close(t)}},t.prototype.handleKeydown=function(i){var t="Enter"===i.key||13===i.keyCode;if(t&&!this.adapter.getActionFromEvent(i)){var o=i.composedPath?i.composedPath()[0]:i.target,e=!this.suppressDefaultPressSelector||!this.adapter.eventTargetMatches(o,this.suppressDefaultPressSelector);t&&e&&this.adapter.clickDefaultButton()}},t.prototype.handleDocumentKeydown=function(i){("Escape"===i.key||27===i.keyCode)&&""!==this.escapeKeyAction&&this.close(this.escapeKeyAction)},t.prototype.handleScrollEvent=function(){var i=this;this.animFrame.request(u.POLL_SCROLL_POS,(function(){i.toggleScrollDividerHeader(),i.toggleScrollDividerFooter()}))},t.prototype.layoutInternal=function(){this.autoStackButtons&&this.detectStackedButtons(),this.toggleScrollableClasses()},t.prototype.handleAnimationTimerEnd=function(){this.animationTimer=0,this.adapter.removeClass(_.OPENING),this.adapter.removeClass(_.CLOSING)},t.prototype.runNextAnimationFrame=function(i){var t=this;cancelAnimationFrame(this.animationFrame),this.animationFrame=requestAnimationFrame((function(){t.animationFrame=0,clearTimeout(t.animationTimer),t.animationTimer=setTimeout(i,0)}))},t.prototype.detectStackedButtons=function(){this.adapter.removeClass(_.STACKED);var i=this.adapter.areButtonsStacked();i&&this.adapter.addClass(_.STACKED),i!==this.areButtonsStacked&&(this.adapter.reverseButtons(),this.areButtonsStacked=i)},t.prototype.toggleScrollableClasses=function(){this.adapter.removeClass(_.SCROLLABLE),this.adapter.isContentScrollable()&&(this.adapter.addClass(_.SCROLLABLE),this.isFullscreen&&(this.toggleScrollDividerHeader(),this.toggleScrollDividerFooter()))},t.prototype.toggleScrollDividerHeader=function(){this.adapter.isScrollableContentAtTop()?this.adapter.hasClass(_.SCROLL_DIVIDER_HEADER)&&this.adapter.removeClass(_.SCROLL_DIVIDER_HEADER):this.adapter.addClass(_.SCROLL_DIVIDER_HEADER)},t.prototype.toggleScrollDividerFooter=function(){this.adapter.isScrollableContentAtBottom()?this.adapter.hasClass(_.SCROLL_DIVIDER_FOOTER)&&this.adapter.removeClass(_.SCROLL_DIVIDER_FOOTER):this.adapter.addClass(_.SCROLL_DIVIDER_FOOTER)},t}(d),y=v.strings,w=function(i){function t(){return null!==i&&i.apply(this,arguments)||this}return h(t,i),Object.defineProperty(t.prototype,"isOpen",{get:function(){return this.foundation.isOpen()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"escapeKeyAction",{get:function(){return this.foundation.getEscapeKeyAction()},set:function(i){this.foundation.setEscapeKeyAction(i)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"scrimClickAction",{get:function(){return this.foundation.getScrimClickAction()},set:function(i){this.foundation.setScrimClickAction(i)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"autoStackButtons",{get:function(){return this.foundation.getAutoStackButtons()},set:function(i){this.foundation.setAutoStackButtons(i)},enumerable:!1,configurable:!0}),t.attachTo=function(i){return new t(i)},t.prototype.initialize=function(i){var t,o;void 0===i&&(i=function(i,t){return new p(i,t)});var e=this.root.querySelector(y.CONTAINER_SELECTOR);if(!e)throw new Error("Dialog component requires a "+y.CONTAINER_SELECTOR+" container element");this.container=e,this.content=this.root.querySelector(y.CONTENT_SELECTOR),this.buttons=[].slice.call(this.root.querySelectorAll(y.BUTTON_SELECTOR)),this.defaultButton=this.root.querySelector("["+y.BUTTON_DEFAULT_ATTRIBUTE+"]"),this.focusTrapFactory=i,this.buttonRipples=[];try{for(var n=function(i){var t="function"==typeof Symbol&&Symbol.iterator,o=t&&i[t],e=0;if(o)return o.call(i);if(i&&"number"==typeof i.length)return{next:function(){return i&&e>=i.length&&(i=void 0),{value:i&&i[e++],done:!i}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}
39
+ /**
40
+ * @license
41
+ * Copyright 2020 Google Inc.
42
+ *
43
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
44
+ * of this software and associated documentation files (the "Software"), to deal
45
+ * in the Software without restriction, including without limitation the rights
46
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
47
+ * copies of the Software, and to permit persons to whom the Software is
48
+ * furnished to do so, subject to the following conditions:
49
+ *
50
+ * The above copyright notice and this permission notice shall be included in
51
+ * all copies or substantial portions of the Software.
52
+ *
53
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
54
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
55
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
56
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
57
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
58
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
59
+ * THE SOFTWARE.
60
+ */(this.buttons),a=n.next();!a.done;a=n.next())this.buttonRipples.push(new s(a.value))}catch(i){t={error:i}}finally{try{a&&!a.done&&(o=n.return)&&o.call(n)}finally{if(t)throw t.error}}},t.prototype.initialSyncWithDOM=function(){var i=this;this.focusTrap=(0,this.focusTrapFactory)(this.container,{initialFocusEl:this.getInitialFocusEl()||void 0}),this.handleClick=this.foundation.handleClick.bind(this.foundation),this.handleKeydown=this.foundation.handleKeydown.bind(this.foundation),this.handleDocumentKeydown=this.foundation.handleDocumentKeydown.bind(this.foundation),this.handleOpening=function(){document.addEventListener("keydown",i.handleDocumentKeydown)},this.handleClosing=function(){document.removeEventListener("keydown",i.handleDocumentKeydown)},this.listen("click",this.handleClick),this.listen("keydown",this.handleKeydown),this.listen(y.OPENING_EVENT,this.handleOpening),this.listen(y.CLOSING_EVENT,this.handleClosing)},t.prototype.destroy=function(){this.unlisten("click",this.handleClick),this.unlisten("keydown",this.handleKeydown),this.unlisten(y.OPENING_EVENT,this.handleOpening),this.unlisten(y.CLOSING_EVENT,this.handleClosing),this.handleClosing(),this.buttonRipples.forEach((function(i){i.destroy()})),i.prototype.destroy.call(this)},t.prototype.layout=function(){this.foundation.layout()},t.prototype.open=function(){this.foundation.open()},t.prototype.close=function(i){void 0===i&&(i=""),this.foundation.close(i)},t.prototype.getDefaultFoundation=function(){var i=this;return new v({addBodyClass:function(i){return document.body.classList.add(i)},addClass:function(t){return i.root.classList.add(t)},areButtonsStacked:function(){return t=i.buttons,o=new Set,[].forEach.call(t,(function(i){return o.add(i.offsetTop)})),o.size>1;var t,o},clickDefaultButton:function(){i.defaultButton&&!i.defaultButton.disabled&&i.defaultButton.click()},eventTargetMatches:function(i,t){return!!i&&r(i,t)},getActionFromEvent:function(i){if(!i.target)return"";var t=l(i.target,"["+y.ACTION_ATTRIBUTE+"]");return t&&t.getAttribute(y.ACTION_ATTRIBUTE)},getInitialFocusEl:function(){return i.getInitialFocusEl()},hasClass:function(t){return i.root.classList.contains(t)},isContentScrollable:function(){return!!(t=i.content)&&t.scrollHeight>t.offsetHeight;var t},notifyClosed:function(t){return i.emit(y.CLOSED_EVENT,t?{action:t}:{})},notifyClosing:function(t){return i.emit(y.CLOSING_EVENT,t?{action:t}:{})},notifyOpened:function(){return i.emit(y.OPENED_EVENT,{})},notifyOpening:function(){return i.emit(y.OPENING_EVENT,{})},releaseFocus:function(){i.focusTrap.releaseFocus()},removeBodyClass:function(i){return document.body.classList.remove(i)},removeClass:function(t){return i.root.classList.remove(t)},reverseButtons:function(){i.buttons.reverse(),i.buttons.forEach((function(i){i.parentElement.appendChild(i)}))},trapFocus:function(){i.focusTrap.trapFocus()},registerContentEventHandler:function(t,o){i.content instanceof HTMLElement&&i.content.addEventListener(t,o)},deregisterContentEventHandler:function(t,o){i.content instanceof HTMLElement&&i.content.removeEventListener(t,o)},isScrollableContentAtTop:function(){return!!(t=i.content)&&0===t.scrollTop;var t},isScrollableContentAtBottom:function(){return!!(t=i.content)&&Math.ceil(t.scrollHeight-t.scrollTop)===t.clientHeight;var t},registerWindowEventHandler:function(i,t){window.addEventListener(i,t)},deregisterWindowEventHandler:function(i,t){window.removeEventListener(i,t)}})},t.prototype.getInitialFocusEl=function(){return this.root.querySelector("["+y.INITIAL_FOCUS_ATTRIBUTE+"]")},t}(c);
61
+ /**
62
+ * @license
63
+ * Copyright 2017 Google Inc.
64
+ *
65
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
66
+ * of this software and associated documentation files (the "Software"), to deal
67
+ * in the Software without restriction, including without limitation the rights
68
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
69
+ * copies of the Software, and to permit persons to whom the Software is
70
+ * furnished to do so, subject to the following conditions:
71
+ *
72
+ * The above copyright notice and this permission notice shall be included in
73
+ * all copies or substantial portions of the Software.
74
+ *
75
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
76
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
77
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
78
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
79
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
80
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
81
+ * THE SOFTWARE.
82
+ */let E=class{constructor(o){i(this,o),this.close=t(this,"close",7),this.closing=t(this,"closing",7),this.fullscreen=!1,this.open=!1,this.closingActions={escapeKey:!0,scrimClick:!0},this.showFooter=!0,this.handleMdcOpened=this.handleMdcOpened.bind(this),this.handleMdcClosed=this.handleMdcClosed.bind(this),this.handleMdcClosing=this.handleMdcClosing.bind(this)}connectedCallback(){this.initialize()}componentWillLoad(){this.id=a(),this.showFooter=!!this.host.querySelector('[slot="button"]')}componentDidLoad(){this.initialize()}initialize(){const i=this.host.shadowRoot.querySelector(".mdc-dialog");i&&(this.mdcDialog=new w(i),this.open&&this.mdcDialog.open(),this.mdcDialog.listen("MDCDialog:opened",this.handleMdcOpened),this.mdcDialog.listen("MDCDialog:closed",this.handleMdcClosed),this.mdcDialog.listen("MDCDialog:closing",this.handleMdcClosing),this.mdcDialog.scrimClickAction="",this.closingActions.scrimClick&&(this.mdcDialog.scrimClickAction="close"),this.mdcDialog.escapeKeyAction="",this.closingActions.escapeKey&&(this.mdcDialog.escapeKeyAction="close"))}disconnectedCallback(){this.mdcDialog.unlisten("MDCDialog:opened",this.handleMdcOpened),this.mdcDialog.unlisten("MDCDialog:closed",this.handleMdcClosed),this.mdcDialog.unlisten("MDCDialog:closing",this.handleMdcClosing),this.mdcDialog.destroy()}render(){return o("div",{class:{"mdc-dialog":!0,"full-screen":!!this.fullscreen},role:"alertdialog","aria-modal":"true","aria-labelledby":"limel-dialog-title-"+this.id,"aria-describedby":"limel-dialog-content-"+this.id},o("input",{hidden:!0,id:"initialFocusEl"}),o("div",{class:"mdc-dialog__container"},o("div",{class:"mdc-dialog__surface"},o("input",{type:"text",id:"initialFocusElement"}),this.renderHeading(),o("div",{class:"mdc-dialog__content scrollbox",id:"limel-dialog-content-"+this.id},o("slot",null)),this.renderFooter())),o("div",{class:"mdc-dialog__scrim"}))}watchHandler(i,t){t!==i&&this.mdcDialog&&(i?this.mdcDialog.open():this.mdcDialog.close())}handleMdcOpened(){setTimeout(n,100)}handleMdcClosed(){this.open&&this.close.emit(),this.open=!1}handleMdcClosing(){this.closing.emit()}isBadgeHeading(i){return"object"==typeof i&&!!i.title&&!!i.icon}renderHeading(){if(this.isBadgeHeading(this.heading)){const{title:i,subtitle:t,supportingText:e,icon:n}=this.heading;return o("limel-header",{icon:n,heading:i,subheading:t,supportingText:e})}return"string"==typeof this.heading?o("limel-header",{heading:this.heading}):null}renderFooter(){if(this.showFooter)return o("footer",{class:"mdc-dialog__actions"},o("slot",{name:"button"}))}get host(){return e(this)}static get watchers(){return{open:["watchHandler"]}}};E.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{--dialog-background-color:rgb(var(--contrast-100));--header-heading-color:var(--dialog-heading-title-color);--header-subheading-color:var(--dialog-heading-subtitle-color);--header-supporting-text-color:var(--dialog-heading-supporting-text-color);--header-icon-color:var(--dialog-heading-icon-color);--header-icon-background-color:var(--dialog-heading-icon-background-color)}.mdc-dialog .mdc-dialog__surface{background-color:#fff;background-color:var(--mdc-theme-surface, #fff)}.mdc-dialog .mdc-dialog__scrim{background-color:rgba(0, 0, 0, 0.32)}.mdc-dialog .mdc-dialog__surface-scrim{background-color:rgba(0, 0, 0, 0.32)}.mdc-dialog .mdc-dialog__title{color:rgba(0, 0, 0, 0.87)}.mdc-dialog .mdc-dialog__content{color:rgba(0, 0, 0, 0.6)}.mdc-dialog .mdc-dialog__close{color:#000;color:var(--mdc-theme-on-surface, #000)}.mdc-dialog .mdc-dialog__close .mdc-icon-button__ripple::before,.mdc-dialog .mdc-dialog__close .mdc-icon-button__ripple::after{background-color:#000;background-color:var(--mdc-ripple-color, var(--mdc-theme-on-surface, #000))}.mdc-dialog .mdc-dialog__close:hover .mdc-icon-button__ripple::before,.mdc-dialog .mdc-dialog__close.mdc-ripple-surface--hover .mdc-icon-button__ripple::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-dialog .mdc-dialog__close.mdc-ripple-upgraded--background-focused .mdc-icon-button__ripple::before,.mdc-dialog .mdc-dialog__close:not(.mdc-ripple-upgraded):focus .mdc-icon-button__ripple::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-dialog .mdc-dialog__close:not(.mdc-ripple-upgraded) .mdc-icon-button__ripple::after{transition:opacity 150ms linear}.mdc-dialog .mdc-dialog__close:not(.mdc-ripple-upgraded):active .mdc-icon-button__ripple::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-dialog .mdc-dialog__close.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-dialog.mdc-dialog--scrollable .mdc-dialog__title,.mdc-dialog.mdc-dialog--scrollable .mdc-dialog__actions,.mdc-dialog.mdc-dialog--scrollable.mdc-dialog-scroll-divider-footer .mdc-dialog__actions{border-color:rgba(0, 0, 0, 0.12)}.mdc-dialog.mdc-dialog--scrollable .mdc-dialog__title{border-bottom:1px solid rgba(0, 0, 0, 0.12);margin-bottom:0}.mdc-dialog.mdc-dialog-scroll-divider-header.mdc-dialog--fullscreen .mdc-dialog__header{box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)}.mdc-dialog .mdc-dialog__surface{border-radius:4px;border-radius:var(--mdc-shape-medium, 4px)}.mdc-dialog__surface{box-shadow:0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12)}.mdc-dialog__title{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-headline6-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.875rem;font-size:var(--mdc-typography-headline6-font-size, 0.875rem);line-height:0.875rem;line-height:var(--mdc-typography-headline6-line-height, 0.875rem);font-weight:500;font-weight:var(--mdc-typography-headline6-font-weight, 500);letter-spacing:0.0125em;letter-spacing:var(--mdc-typography-headline6-letter-spacing, 0.0125em);text-decoration:inherit;text-decoration:var(--mdc-typography-headline6-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-headline6-text-transform, inherit)}.mdc-dialog__content{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-body1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.8125rem;font-size:var(--mdc-typography-body1-font-size, 0.8125rem);line-height:1.5rem;line-height:var(--mdc-typography-body1-line-height, 1.5rem);font-weight:400;font-weight:var(--mdc-typography-body1-font-weight, 400);letter-spacing:0.03125em;letter-spacing:var(--mdc-typography-body1-letter-spacing, 0.03125em);text-decoration:inherit;text-decoration:var(--mdc-typography-body1-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-body1-text-transform, inherit)}.mdc-dialog__title-icon{}.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-dialog,.mdc-dialog__scrim{position:fixed;top:0;left:0;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:100%}.mdc-dialog{display:none;z-index:7;z-index:var(--mdc-dialog-z-index, 7)}.mdc-dialog .mdc-dialog__content{padding:20px 24px 20px 24px}.mdc-dialog .mdc-dialog__surface{min-width:280px}@media (max-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:calc(100vw - 32px)}}@media (min-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:560px}}.mdc-dialog .mdc-dialog__surface{max-height:calc(100% - 32px)}@media all and (-ms-high-contrast: none), (-ms-high-contrast: active){.mdc-dialog .mdc-dialog__container{}}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-width:none}@media (max-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px;width:560px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media (max-width: 720px) and (max-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 112px)}}@media (max-width: 720px) and (min-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:560px}}@media (max-width: 720px) and (max-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:calc(100vh - 160px)}}@media (max-width: 720px) and (min-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px}}@media (max-width: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media (max-width: 720px) and (max-height: 400px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{height:100%;max-height:100vh;max-width:100vw;width:100vw;border-radius:0}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{order:-1;left:-12px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__header{padding:0 16px 9px;justify-content:flex-start}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__title{margin-left:calc(16px - 2 * 12px)}}@media (max-width: 600px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{height:100%;max-height:100vh;max-width:100vw;width:100vw;border-radius:0}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{order:-1;left:-12px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__header{padding:0 16px 9px;justify-content:flex-start}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__title{margin-left:calc(16px - 2 * 12px)}}@media (min-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 400px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}.mdc-dialog.mdc-dialog__scrim--hidden .mdc-dialog__scrim{opacity:0}.mdc-dialog__scrim{opacity:0;z-index:-1}.mdc-dialog__container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;transform:scale(0.8);opacity:0;pointer-events:none}.mdc-dialog__surface{position:relative;display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;max-width:100%;max-height:100%;pointer-events:auto;overflow-y:auto}.mdc-dialog__surface .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}[dir=rtl] .mdc-dialog__surface,.mdc-dialog__surface[dir=rtl]{text-align:right;}@media screen and (forced-colors: active), (-ms-high-contrast: active){.mdc-dialog__surface{outline:2px solid windowText}}.mdc-dialog__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid transparent;border-radius:inherit;content:"";pointer-events:none}@media screen and (-ms-high-contrast: active), screen and (-ms-high-contrast: none){.mdc-dialog__surface::before{content:none}}.mdc-dialog__title{display:block;margin-top:0;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:0 24px 9px}.mdc-dialog__title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mdc-dialog__title,.mdc-dialog__title[dir=rtl]{text-align:right;}.mdc-dialog--scrollable .mdc-dialog__title{margin-bottom:1px;padding-bottom:15px}.mdc-dialog--fullscreen .mdc-dialog__header{align-items:baseline;border-bottom:1px solid transparent;display:inline-flex;justify-content:space-between;padding:0 24px 9px;z-index:1}.mdc-dialog--fullscreen .mdc-dialog__header .mdc-dialog__close{right:-12px}.mdc-dialog--fullscreen .mdc-dialog__title{margin-bottom:0;padding:0;border-bottom:0}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__title{border-bottom:0;margin-bottom:0}.mdc-dialog--fullscreen .mdc-dialog__close{top:5px}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top:1px solid transparent}.mdc-dialog__content{flex-grow:1;box-sizing:border-box;margin:0;overflow:auto;-webkit-overflow-scrolling:touch}.mdc-dialog__content>:first-child{margin-top:0}.mdc-dialog__content>:last-child{margin-bottom:0}.mdc-dialog__title+.mdc-dialog__content,.mdc-dialog__header+.mdc-dialog__content{padding-top:0}.mdc-dialog--scrollable .mdc-dialog__title+.mdc-dialog__content{padding-top:8px;padding-bottom:8px}.mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:6px 0 0}.mdc-dialog--scrollable .mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:0}.mdc-dialog__actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid transparent}.mdc-dialog--stacked .mdc-dialog__actions{flex-direction:column;align-items:flex-end}.mdc-dialog__button{margin-left:8px;margin-right:0;max-width:100%;text-align:right}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{margin-left:0;margin-right:8px;}.mdc-dialog__button:first-child{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button:first-child,.mdc-dialog__button:first-child[dir=rtl]{margin-left:0;margin-right:0;}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{text-align:left;}.mdc-dialog--stacked .mdc-dialog__button:not(:first-child){margin-top:12px}.mdc-dialog--open,.mdc-dialog--opening,.mdc-dialog--closing{display:flex}.mdc-dialog--opening .mdc-dialog__scrim{transition:opacity 150ms linear}.mdc-dialog--opening .mdc-dialog__container{transition:opacity 75ms linear, transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-dialog--closing .mdc-dialog__scrim,.mdc-dialog--closing .mdc-dialog__container{transition:opacity 75ms linear}.mdc-dialog--closing .mdc-dialog__container{transform:none}.mdc-dialog--open .mdc-dialog__scrim{opacity:1}.mdc-dialog--open .mdc-dialog__container{transform:none;opacity:1}.mdc-dialog--open.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim{opacity:1;z-index:1}.mdc-dialog--open.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{transition:opacity 75ms linear}.mdc-dialog--open.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim{transition:opacity 150ms linear}.mdc-dialog__surface-scrim{display:none;opacity:0;position:absolute;width:100%;height:100%}.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{display:block}.mdc-dialog-scroll-lock{overflow:hidden}.mdc-dialog{z-index:var(--dialog-z-index, 7)}@media (max-width: 16032px){.mdc-dialog .mdc-dialog__surface{max-width:calc(100vw - 32px)}}@media (min-width: 16032px){.mdc-dialog .mdc-dialog__surface{max-width:16000px}}@media (max-height: 16032px){.mdc-dialog.full-screen .mdc-dialog__surface{max-height:calc(100% - 32px)}}@media (min-height: 16032px){.mdc-dialog.full-screen .mdc-dialog__surface{max-height:16000px}}@media all and (-ms-high-contrast: none), (-ms-high-contrast: active){.mdc-dialog.full-screen .mdc-dialog__container{}}@media (-ms-high-contrast: none) and (min-height: 16032px), (-ms-high-contrast: active) and (min-height: 16032px){.mdc-dialog.full-screen .mdc-dialog__container{align-items:stretch;height:auto}}.mdc-dialog.full-screen .mdc-dialog__container{height:100%;width:100%}.mdc-dialog.full-screen .mdc-dialog__container .mdc-dialog__surface{height:100%;width:100%}.mdc-dialog .mdc-dialog__container{height:100%}.mdc-dialog .mdc-dialog__surface{width:var(--dialog-width, auto);height:var(--dialog-height, auto);background-color:var(--dialog-background-color);box-shadow:var(--shadow-depth-64)}.scrollbox{--dialog-background-color-transparent:rgba(var(--contrast-100), 0);--dialog-scroll-shadow-color:rgba(var(--color-black), 0.2);--dialog-scroll-shadow-color-transparent:rgba(var(--color-black), 0);background:linear-gradient(var(--dialog-background-color) 30%, var(--dialog-background-color-transparent)), linear-gradient(var(--dialog-background-color-transparent), var(--dialog-background-color) 70%) 0 100%, radial-gradient(farthest-side at 50% 0, var(--dialog-scroll-shadow-color), var(--dialog-scroll-shadow-color-transparent)), radial-gradient(farthest-side at 50% 100%, var(--dialog-scroll-shadow-color), var(--dialog-scroll-shadow-color-transparent)) 0 100%;background-repeat:no-repeat;background-color:var(--dialog-background-color);background-size:100% 2.5rem, 100% 2.5rem, 100% 0.875rem, 100% 0.875rem;background-attachment:local, local, scroll, scroll}#initialFocusElement{position:absolute;opacity:0;pointer-events:none;z-index:-1}slot[name=header]{display:none}slot[name=button]{display:flex;gap:0.5rem;width:100%;justify-content:flex-end}@media screen and (max-width: 760px){slot[name=button]{flex-direction:column-reverse}.mdc-dialog__actions{padding:1rem 1.5rem 1.5rem 1.5rem}}';export{E as limel_dialog}
@@ -5,6 +5,8 @@
5
5
  * without being explicitly called by outside code.
6
6
  */
7
7
 
8
+ @use 'sass:math';
9
+
8
10
  @function pxToRem($px) {
9
- @return #{$px/16}rem;
11
+ @return #{math.div($px, 16)}rem;
10
12
  }
@@ -10,37 +10,36 @@
10
10
  @use '../brand-colors';
11
11
  @use '../_theme-color-variables';
12
12
 
13
- @use '@material/theme' with
14
- (
15
- $primary: brand-colors.$lime-turquoise,
16
- $secondary: brand-colors.$lime-dark-grey,
17
- $background: #fff,
18
- $surface: #fff,
19
- $error: #b00020,
20
- $on-primary: #fff,
21
- $on-secondary: #fff,
22
- $on-surface: #000,
23
- $on-error: #fff,
24
- // $text-disabled-on-background: rgba(0, 0, 0, 0.38),
25
- // $text-hint-on-light: rgba(0, 0, 0, 0.38),
26
- // $text-primary-on-background: rgba(0, 0, 0, 0.87),
27
- // $text-secondary-on-background: rgba(0, 0, 0, 0.54),
28
- //
29
- // The following variables are also available to be set if needed
30
- // (note by Ads: they probably aren't available in MDC v11)
31
- //
32
- // $text-hint-on-background: rgba(0, 0, 0, 0.38),
33
- // $text-icon-on-background: rgba(0, 0, 0, 0.38),
34
- // $text-primary-on-light: rgba(0, 0, 0, 0.87),
35
- // $text-secondary-on-light: rgba(0, 0, 0, 0.54),
36
- // $text-disabled-on-light: rgba(0, 0, 0, 0.38),
37
- // $text-icon-on-light: rgba(0, 0, 0, 0.38),
38
- // $text-primary-on-dark: white,
39
- // $text-secondary-on-dark: rgba(255, 255, 255, 0.7),
40
- // $text-hint-on-dark: rgba(255, 255, 255, 0.5),
41
- // $text-disabled-on-dark: rgba(255, 255, 255, 0.5),
42
- // $text-icon-on-dark: rgba(255, 255, 255, 0.5),
43
- );
13
+ @use '@material/theme' with (
14
+ $primary: brand-colors.$lime-turquoise,
15
+ $secondary: brand-colors.$lime-dark-grey,
16
+ $background: #fff,
17
+ $surface: #fff,
18
+ $error: #b00020,
19
+ $on-primary: #fff,
20
+ $on-secondary: #fff,
21
+ $on-surface: #000,
22
+ $on-error: #fff,
23
+ // $text-disabled-on-background: rgba(0, 0, 0, 0.38),
24
+ // $text-hint-on-light: rgba(0, 0, 0, 0.38),
25
+ // $text-primary-on-background: rgba(0, 0, 0, 0.87),
26
+ // $text-secondary-on-background: rgba(0, 0, 0, 0.54),
27
+ //
28
+ // The following variables are also available to be set if needed
29
+ // (note by Ads: they probably aren't available in MDC v11)
30
+ //
31
+ // $text-hint-on-background: rgba(0, 0, 0, 0.38),
32
+ // $text-icon-on-background: rgba(0, 0, 0, 0.38),
33
+ // $text-primary-on-light: rgba(0, 0, 0, 0.87),
34
+ // $text-secondary-on-light: rgba(0, 0, 0, 0.54),
35
+ // $text-disabled-on-light: rgba(0, 0, 0, 0.38),
36
+ // $text-icon-on-light: rgba(0, 0, 0, 0.38),
37
+ // $text-primary-on-dark: white,
38
+ // $text-secondary-on-dark: rgba(255, 255, 255, 0.7),
39
+ // $text-hint-on-dark: rgba(255, 255, 255, 0.5),
40
+ // $text-disabled-on-dark: rgba(255, 255, 255, 0.5),
41
+ // $text-icon-on-dark: rgba(255, 255, 255, 0.5),
42
+ );
44
43
  @forward '@material/theme';
45
44
 
46
45
  @use './lime-typography';