@nordhealth/components 1.13.1 → 1.14.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (162) hide show
  1. package/custom-elements.json +1903 -1874
  2. package/lib/{AutocompleteMixin-ca948bdb.js → AutocompleteMixin-370de2be.js} +2 -2
  3. package/lib/{AutocompleteMixin-ca948bdb.js.map → AutocompleteMixin-370de2be.js.map} +1 -1
  4. package/lib/Avatar.js +1 -1
  5. package/lib/Avatar.js.map +1 -1
  6. package/lib/Badge.js +1 -1
  7. package/lib/Badge.js.map +1 -1
  8. package/lib/Banner.js +1 -1
  9. package/lib/Banner.js.map +1 -1
  10. package/lib/Button.js +1 -1
  11. package/lib/Button.js.map +1 -1
  12. package/lib/{Calendar-c2dc6905.js → Calendar-7905498d.js} +2 -2
  13. package/lib/{Calendar-c2dc6905.js.map → Calendar-7905498d.js.map} +1 -1
  14. package/lib/Calendar.js +1 -1
  15. package/lib/Card.js +1 -1
  16. package/lib/Card.js.map +1 -1
  17. package/lib/Checkbox.js +1 -1
  18. package/lib/Checkbox.js.map +1 -1
  19. package/lib/CommandMenu.js +1 -1
  20. package/lib/CommandMenu.js.map +1 -1
  21. package/lib/CommandMenuAction.js +1 -1
  22. package/lib/CommandMenuAction.js.map +1 -1
  23. package/lib/{Component-5a0a26a0.js → Component-49a41387.js} +2 -2
  24. package/lib/Component-49a41387.js.map +1 -0
  25. package/lib/DatePicker.js +1 -1
  26. package/lib/DatePicker.js.map +1 -1
  27. package/lib/DateSelectEvent.js.map +1 -1
  28. package/lib/DirectionController-8b298382.js.map +1 -1
  29. package/lib/Divider.js +1 -1
  30. package/lib/Divider.js.map +1 -1
  31. package/lib/DraftComponentMixin-9e4b7b34.js.map +1 -1
  32. package/lib/Dropdown.js +1 -1
  33. package/lib/Dropdown.js.map +1 -1
  34. package/lib/DropdownGroup.js +1 -1
  35. package/lib/DropdownGroup.js.map +1 -1
  36. package/lib/DropdownItem.js +1 -1
  37. package/lib/DropdownItem.js.map +1 -1
  38. package/lib/EmptyState.js +1 -1
  39. package/lib/EmptyState.js.map +1 -1
  40. package/lib/EventController-d99ebeef.js.map +1 -1
  41. package/lib/Fieldset.js +1 -1
  42. package/lib/Fieldset.js.map +1 -1
  43. package/lib/{FocusableMixin-175ea4d7.js → FocusableMixin-99db12c1.js} +2 -2
  44. package/lib/{FocusableMixin-175ea4d7.js.map → FocusableMixin-99db12c1.js.map} +1 -1
  45. package/lib/{FormAssociatedMixin-d0d98a92.js → FormAssociatedMixin-f6e5b3cd.js} +2 -2
  46. package/lib/{FormAssociatedMixin-d0d98a92.js.map → FormAssociatedMixin-f6e5b3cd.js.map} +1 -1
  47. package/lib/{FormField-d3767c2e.js → FormField-72062bf1.js} +2 -2
  48. package/lib/FormField-72062bf1.js.map +1 -0
  49. package/lib/Header.js +1 -1
  50. package/lib/Header.js.map +1 -1
  51. package/lib/Icon.js +1 -1
  52. package/lib/Icon.js.map +1 -1
  53. package/lib/Input.js +1 -1
  54. package/lib/Input.js.map +1 -1
  55. package/lib/{InputMixin-9334d385.js → InputMixin-158f63fb.js} +2 -2
  56. package/lib/{InputMixin-9334d385.js.map → InputMixin-158f63fb.js.map} +1 -1
  57. package/lib/KeyboardController.js.map +1 -1
  58. package/lib/Layout.js +1 -1
  59. package/lib/Layout.js.map +1 -1
  60. package/lib/LightDismissController-a2645ae6.js.map +1 -1
  61. package/lib/{LightDomController-6d26dea2.js → LightDomController-9a6e398f.js} +2 -2
  62. package/lib/{LightDomController-6d26dea2.js.map → LightDomController-9a6e398f.js.map} +1 -1
  63. package/lib/LocalizeController.js.map +1 -1
  64. package/lib/Modal.js +1 -1
  65. package/lib/Modal.js.map +1 -1
  66. package/lib/NavGroup.js +1 -1
  67. package/lib/NavGroup.js.map +1 -1
  68. package/lib/NavItem.js +1 -1
  69. package/lib/NavItem.js.map +1 -1
  70. package/lib/Navigation.js +1 -1
  71. package/lib/Navigation.js.map +1 -1
  72. package/lib/Popout.js +1 -1
  73. package/lib/Popout.js.map +1 -1
  74. package/lib/ProgressBar.js +1 -1
  75. package/lib/ProgressBar.js.map +1 -1
  76. package/lib/Qrcode.js +2 -2
  77. package/lib/Qrcode.js.map +1 -1
  78. package/lib/Radio.js +1 -1
  79. package/lib/Radio.js.map +1 -1
  80. package/lib/Select.js +1 -1
  81. package/lib/Select.js.map +1 -1
  82. package/lib/SelectEvent.js.map +1 -1
  83. package/lib/ShortcutController-87615e31.js.map +1 -1
  84. package/lib/Skeleton.js +1 -1
  85. package/lib/Skeleton.js.map +1 -1
  86. package/lib/SlotController-ea6eff46.js.map +1 -1
  87. package/lib/Spinner.js +1 -1
  88. package/lib/Spinner.js.map +1 -1
  89. package/lib/Stack.js +1 -1
  90. package/lib/Stack.js.map +1 -1
  91. package/lib/Tab.js +1 -1
  92. package/lib/Tab.js.map +1 -1
  93. package/lib/TabGroup.js +1 -1
  94. package/lib/TabGroup.js.map +1 -1
  95. package/lib/TabPanel.js +1 -1
  96. package/lib/TabPanel.js.map +1 -1
  97. package/lib/Table.js +1 -1
  98. package/lib/Table.js.map +1 -1
  99. package/lib/{TextField-f48e2e5c.js → TextField-c34519d4.js} +2 -2
  100. package/lib/{TextField-f48e2e5c.js.map → TextField-c34519d4.js.map} +1 -1
  101. package/lib/Textarea.js +1 -1
  102. package/lib/Textarea.js.map +1 -1
  103. package/lib/Toast.js +1 -1
  104. package/lib/Toast.js.map +1 -1
  105. package/lib/ToastGroup.js +1 -1
  106. package/lib/ToastGroup.js.map +1 -1
  107. package/lib/Toggle.js +1 -1
  108. package/lib/Toggle.js.map +1 -1
  109. package/lib/Tooltip.js +1 -1
  110. package/lib/Tooltip.js.map +1 -1
  111. package/lib/VisuallyHidden.js +1 -1
  112. package/lib/VisuallyHidden.js.map +1 -1
  113. package/lib/bundle.js +18 -18
  114. package/lib/bundle.js.map +1 -1
  115. package/lib/class-map-cd6c8cbd.js +7 -0
  116. package/lib/{class-map-f1b6f1fa.js.map → class-map-cd6c8cbd.js.map} +1 -1
  117. package/lib/collection-800f5002.js.map +1 -1
  118. package/lib/cond-0a8d4554.js +2 -0
  119. package/lib/{cond-97c45476.js.map → cond-0a8d4554.js.map} +1 -1
  120. package/lib/dates-a8de5b83.js.map +1 -1
  121. package/lib/directive-de55b00a.js.map +1 -1
  122. package/lib/events-731d0007.js.map +1 -1
  123. package/lib/fsm-50373df9.js.map +1 -1
  124. package/lib/{if-defined-fe1a64e3.js → if-defined-f43b1487.js} +2 -2
  125. package/lib/{if-defined-fe1a64e3.js.map → if-defined-f43b1487.js.map} +1 -1
  126. package/lib/index.js +1 -1
  127. package/lib/lit-element-79bc2e0e.js +24 -0
  128. package/lib/lit-element-79bc2e0e.js.map +1 -0
  129. package/lib/month-view.js +1 -1
  130. package/lib/month-view.js.map +1 -1
  131. package/lib/number-c3ab3e95.js.map +1 -1
  132. package/lib/observe-a9c6dfb6.js.map +1 -1
  133. package/lib/positioning-3bbd3548.js +2 -0
  134. package/lib/positioning-3bbd3548.js.map +1 -0
  135. package/lib/property-03f59dce.js.map +1 -1
  136. package/lib/query-2d22378e.js.map +1 -1
  137. package/lib/query-assigned-elements-e6cbac30.js +12 -0
  138. package/lib/{query-assigned-elements-ef860822.js.map → query-assigned-elements-e6cbac30.js.map} +1 -1
  139. package/lib/{ref-57ff8ffc.js → ref-697b28b5.js} +5 -5
  140. package/lib/ref-697b28b5.js.map +1 -0
  141. package/lib/repeat-e7acc0bd.js +7 -0
  142. package/lib/repeat-e7acc0bd.js.map +1 -0
  143. package/lib/src/button/Button.test.d.ts +2 -0
  144. package/lib/src/dropdown/Dropdown.d.ts +5 -0
  145. package/lib/state-70f38ceb.js.map +1 -1
  146. package/lib/tinykeys.module-84e6cc41.js.map +1 -1
  147. package/lib/translation.js.map +1 -1
  148. package/lib/{unsafe-html-61a04601.js → unsafe-html-be8023cd.js} +3 -3
  149. package/lib/{unsafe-html-61a04601.js.map → unsafe-html-be8023cd.js.map} +1 -1
  150. package/package.json +24 -21
  151. package/lib/Component-5a0a26a0.js.map +0 -1
  152. package/lib/FormField-d3767c2e.js.map +0 -1
  153. package/lib/class-map-f1b6f1fa.js +0 -7
  154. package/lib/cond-97c45476.js +0 -2
  155. package/lib/lit-element-67e6cd99.js +0 -24
  156. package/lib/lit-element-67e6cd99.js.map +0 -1
  157. package/lib/positioning-b660767c.js +0 -2
  158. package/lib/positioning-b660767c.js.map +0 -1
  159. package/lib/query-assigned-elements-ef860822.js +0 -12
  160. package/lib/ref-57ff8ffc.js.map +0 -1
  161. package/lib/repeat-084c4167.js +0 -7
  162. package/lib/repeat-084c4167.js.map +0 -1
@@ -0,0 +1,7 @@
1
+ import{x as t}from"./lit-element-79bc2e0e.js";import{e,i as s,t as i}from"./directive-de55b00a.js";
2
+ /**
3
+ * @license
4
+ * Copyright 2018 Google LLC
5
+ * SPDX-License-Identifier: BSD-3-Clause
6
+ */const n=e(class extends s{constructor(t){var e;if(super(t),t.type!==i.ATTRIBUTE||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(e,[s]){var i,n;if(void 0===this.nt){this.nt=new Set,void 0!==e.strings&&(this.st=new Set(e.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in s)s[t]&&!(null===(i=this.st)||void 0===i?void 0:i.has(t))&&this.nt.add(t);return this.render(s)}const r=e.element.classList;this.nt.forEach((t=>{t in s||(r.remove(t),this.nt.delete(t))}));for(const t in s){const e=!!s[t];e===this.nt.has(t)||(null===(n=this.st)||void 0===n?void 0:n.has(t))||(e?(r.add(t),this.nt.add(t)):(r.remove(t),this.nt.delete(t)))}return t}});export{n as o};
7
+ //# sourceMappingURL=class-map-cd6c8cbd.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"class-map-f1b6f1fa.js","sources":["../node_modules/lit-html/directives/class-map.js"],"sourcesContent":["import{noChange as t}from\"../lit-html.js\";import{directive as i,Directive as s,PartType as r}from\"../directive.js\";\n/**\n * @license\n * Copyright 2018 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */const o=i(class extends s{constructor(t){var i;if(super(t),t.type!==r.ATTRIBUTE||\"class\"!==t.name||(null===(i=t.strings)||void 0===i?void 0:i.length)>2)throw Error(\"`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.\")}render(t){return\" \"+Object.keys(t).filter((i=>t[i])).join(\" \")+\" \"}update(i,[s]){var r,o;if(void 0===this.et){this.et=new Set,void 0!==i.strings&&(this.st=new Set(i.strings.join(\" \").split(/\\s/).filter((t=>\"\"!==t))));for(const t in s)s[t]&&!(null===(r=this.st)||void 0===r?void 0:r.has(t))&&this.et.add(t);return this.render(s)}const e=i.element.classList;this.et.forEach((t=>{t in s||(e.remove(t),this.et.delete(t))}));for(const t in s){const i=!!s[t];i===this.et.has(t)||(null===(o=this.st)||void 0===o?void 0:o.has(t))||(i?(e.add(t),this.et.add(t)):(e.remove(t),this.et.delete(t)))}return t}});export{o as classMap};\n//# sourceMappingURL=class-map.js.map\n"],"names":["o","i","s","constructor","t","super","type","r","ATTRIBUTE","name","strings","length","Error","render","Object","keys","filter","join","update","this","et","Set","st","split","has","add","e","element","classList","forEach","remove","delete"],"mappings":";;;;;GAKQ,MAACA,EAAEC,EAAE,cAAcC,EAAEC,YAAYC,GAAG,IAAIH,EAAE,GAAGI,MAAMD,GAAGA,EAAEE,OAAOC,EAAEC,WAAW,UAAUJ,EAAEK,OAAO,QAAQR,EAAEG,EAAEM,eAAU,IAAST,OAAE,EAAOA,EAAEU,QAAQ,EAAE,MAAMC,MAAM,sGAAsGC,OAAOT,GAAG,MAAM,IAAIU,OAAOC,KAAKX,GAAGY,QAAQf,GAAGG,EAAEH,KAAKgB,KAAK,KAAK,IAAIC,OAAOjB,GAAGC,IAAI,IAAIK,EAAEP,EAAE,QAAG,IAASmB,KAAKC,GAAG,CAACD,KAAKC,GAAG,IAAIC,SAAI,IAASpB,EAAES,UAAUS,KAAKG,GAAG,IAAID,IAAIpB,EAAES,QAAQO,KAAK,KAAKM,MAAM,MAAMP,QAAQZ,GAAG,KAAKA,MAAM,IAAI,MAAMA,KAAKF,EAAEA,EAAEE,MAAM,QAAQG,EAAEY,KAAKG,UAAK,IAASf,OAAE,EAAOA,EAAEiB,IAAIpB,KAAKe,KAAKC,GAAGK,IAAIrB,GAAG,OAAOe,KAAKN,OAAOX,GAAG,MAAMwB,EAAEzB,EAAE0B,QAAQC,UAAUT,KAAKC,GAAGS,SAASzB,IAAIA,KAAKF,IAAIwB,EAAEI,OAAO1B,GAAGe,KAAKC,GAAGW,OAAO3B,OAAO,IAAI,MAAMA,KAAKF,EAAE,CAAC,MAAMD,IAAIC,EAAEE,GAAGH,IAAIkB,KAAKC,GAAGI,IAAIpB,KAAK,QAAQJ,EAAEmB,KAAKG,UAAK,IAAStB,OAAE,EAAOA,EAAEwB,IAAIpB,MAAMH,GAAGyB,EAAED,IAAIrB,GAAGe,KAAKC,GAAGK,IAAIrB,KAAKsB,EAAEI,OAAO1B,GAAGe,KAAKC,GAAGW,OAAO3B,KAAK,OAAOA"}
1
+ {"version":3,"file":"class-map-cd6c8cbd.js","sources":["../node_modules/lit-html/directives/class-map.js"],"sourcesContent":["import{noChange as t}from\"../lit-html.js\";import{directive as i,Directive as s,PartType as r}from\"../directive.js\";\n/**\n * @license\n * Copyright 2018 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */const o=i(class extends s{constructor(t){var i;if(super(t),t.type!==r.ATTRIBUTE||\"class\"!==t.name||(null===(i=t.strings)||void 0===i?void 0:i.length)>2)throw Error(\"`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.\")}render(t){return\" \"+Object.keys(t).filter((i=>t[i])).join(\" \")+\" \"}update(i,[s]){var r,o;if(void 0===this.nt){this.nt=new Set,void 0!==i.strings&&(this.st=new Set(i.strings.join(\" \").split(/\\s/).filter((t=>\"\"!==t))));for(const t in s)s[t]&&!(null===(r=this.st)||void 0===r?void 0:r.has(t))&&this.nt.add(t);return this.render(s)}const e=i.element.classList;this.nt.forEach((t=>{t in s||(e.remove(t),this.nt.delete(t))}));for(const t in s){const i=!!s[t];i===this.nt.has(t)||(null===(o=this.st)||void 0===o?void 0:o.has(t))||(i?(e.add(t),this.nt.add(t)):(e.remove(t),this.nt.delete(t)))}return t}});export{o as classMap};\n//# sourceMappingURL=class-map.js.map\n"],"names":["o","i","s","constructor","t","super","type","r","ATTRIBUTE","name","strings","length","Error","render","Object","keys","filter","join","update","this","nt","Set","st","split","has","add","e","element","classList","forEach","remove","delete"],"mappings":";;;;;GAKQ,MAACA,EAAEC,EAAE,cAAcC,EAAEC,YAAYC,GAAG,IAAIH,EAAE,GAAGI,MAAMD,GAAGA,EAAEE,OAAOC,EAAEC,WAAW,UAAUJ,EAAEK,OAAO,QAAQR,EAAEG,EAAEM,eAAU,IAAST,OAAE,EAAOA,EAAEU,QAAQ,EAAE,MAAMC,MAAM,qGAAqG,CAACC,OAAOT,GAAG,MAAM,IAAIU,OAAOC,KAAKX,GAAGY,QAAQf,GAAGG,EAAEH,KAAKgB,KAAK,KAAK,GAAG,CAACC,OAAOjB,GAAGC,IAAI,IAAIK,EAAEP,EAAE,QAAG,IAASmB,KAAKC,GAAG,CAACD,KAAKC,GAAG,IAAIC,SAAI,IAASpB,EAAES,UAAUS,KAAKG,GAAG,IAAID,IAAIpB,EAAES,QAAQO,KAAK,KAAKM,MAAM,MAAMP,QAAQZ,GAAG,KAAKA,MAAM,IAAI,MAAMA,KAAKF,EAAEA,EAAEE,MAAM,QAAQG,EAAEY,KAAKG,UAAK,IAASf,OAAE,EAAOA,EAAEiB,IAAIpB,KAAKe,KAAKC,GAAGK,IAAIrB,GAAG,OAAOe,KAAKN,OAAOX,EAAE,CAAC,MAAMwB,EAAEzB,EAAE0B,QAAQC,UAAUT,KAAKC,GAAGS,SAASzB,IAAIA,KAAKF,IAAIwB,EAAEI,OAAO1B,GAAGe,KAAKC,GAAGW,OAAO3B,GAAI,IAAG,IAAI,MAAMA,KAAKF,EAAE,CAAC,MAAMD,IAAIC,EAAEE,GAAGH,IAAIkB,KAAKC,GAAGI,IAAIpB,KAAK,QAAQJ,EAAEmB,KAAKG,UAAK,IAAStB,OAAE,EAAOA,EAAEwB,IAAIpB,MAAMH,GAAGyB,EAAED,IAAIrB,GAAGe,KAAKC,GAAGK,IAAIrB,KAAKsB,EAAEI,OAAO1B,GAAGe,KAAKC,GAAGW,OAAO3B,IAAI,CAAC,OAAOA,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"collection-800f5002.js","sources":["../src/common/collection.ts"],"sourcesContent":["/**\n * Groups an array objects by property value\n * @param array the collection of objects to group\n * @param key the property to group by\n * @returns a Map keyed by property value, where values are are an array of objects with that property value.\n */\nexport function groupBy<TObject extends Record<any, any>, TKey extends keyof TObject>(\n array: Array<TObject>,\n key: TKey\n) {\n const grouped = new Map<TObject[TKey], TObject[]>()\n\n for (const item of array) {\n const value = item[key]\n const collection = grouped.get(value) ?? []\n\n if (!grouped.has(value)) {\n grouped.set(value, [])\n }\n collection.push(item)\n grouped.set(value, collection)\n }\n\n return grouped\n}\n\n/**\n * Split an array into chunks of the given size\n * @param array\n * @param chunkSize\n * @returns\n */\nexport function chunk<T>(array: T[], chunkSize: number): T[][] {\n const result = []\n\n for (let i = 0; i < array.length; i += chunkSize) {\n result.push(array.slice(i, i + chunkSize))\n }\n\n return result\n}\n\n/**\n * maps over an array, starting at the given offset and wrapping around.\n * @param array\n * @param startingOffset\n * @param mapFn\n * @returns\n */\nexport function mapWithOffset<T, U>(array: T[], startingOffset: number, mapFn: (item: T, i: number) => U): U[] {\n return array.map((_, i) => {\n const adjustedIndex = (i + startingOffset) % array.length\n return mapFn(array[adjustedIndex], adjustedIndex)\n })\n}\n"],"names":["groupBy","array","key","grouped","Map","item","value","collection","_a","get","has","set","push","chunk","chunkSize","result","i","length","slice","mapWithOffset","startingOffset","mapFn","map","_","adjustedIndex"],"mappings":"AAMgB,SAAAA,EACdC,EACAC,SAEA,MAAMC,EAAU,IAAIC,IAEpB,IAAK,MAAMC,KAAQJ,EAAO,CACxB,MAAMK,EAAQD,EAAKH,GACbK,EAAmC,QAAtBC,EAAAL,EAAQM,IAAIH,UAAU,IAAAE,EAAAA,EAAA,GAEpCL,EAAQO,IAAIJ,IACfH,EAAQQ,IAAIL,EAAO,IAErBC,EAAWK,KAAKP,GAChBF,EAAQQ,IAAIL,EAAOC,GAGrB,OAAOJ,EASO,SAAAU,EAASZ,EAAYa,GACnC,MAAMC,EAAS,GAEf,IAAK,IAAIC,EAAI,EAAGA,EAAIf,EAAMgB,OAAQD,GAAKF,EACrCC,EAAOH,KAAKX,EAAMiB,MAAMF,EAAGA,EAAIF,IAGjC,OAAOC,WAUOI,EAAoBlB,EAAYmB,EAAwBC,GACtE,OAAOpB,EAAMqB,KAAI,CAACC,EAAGP,KACnB,MAAMQ,GAAiBR,EAAII,GAAkBnB,EAAMgB,OACnD,OAAOI,EAAMpB,EAAMuB,GAAgBA"}
1
+ {"version":3,"file":"collection-800f5002.js","sources":["../src/common/collection.ts"],"sourcesContent":["/**\n * Groups an array objects by property value\n * @param array the collection of objects to group\n * @param key the property to group by\n * @returns a Map keyed by property value, where values are are an array of objects with that property value.\n */\nexport function groupBy<TObject extends Record<any, any>, TKey extends keyof TObject>(\n array: Array<TObject>,\n key: TKey\n) {\n const grouped = new Map<TObject[TKey], TObject[]>()\n\n for (const item of array) {\n const value = item[key]\n const collection = grouped.get(value) ?? []\n\n if (!grouped.has(value)) {\n grouped.set(value, [])\n }\n collection.push(item)\n grouped.set(value, collection)\n }\n\n return grouped\n}\n\n/**\n * Split an array into chunks of the given size\n * @param array\n * @param chunkSize\n * @returns\n */\nexport function chunk<T>(array: T[], chunkSize: number): T[][] {\n const result = []\n\n for (let i = 0; i < array.length; i += chunkSize) {\n result.push(array.slice(i, i + chunkSize))\n }\n\n return result\n}\n\n/**\n * maps over an array, starting at the given offset and wrapping around.\n * @param array\n * @param startingOffset\n * @param mapFn\n * @returns\n */\nexport function mapWithOffset<T, U>(array: T[], startingOffset: number, mapFn: (item: T, i: number) => U): U[] {\n return array.map((_, i) => {\n const adjustedIndex = (i + startingOffset) % array.length\n return mapFn(array[adjustedIndex], adjustedIndex)\n })\n}\n"],"names":["groupBy","array","key","grouped","Map","item","value","collection","_a","get","has","set","push","chunk","chunkSize","result","i","length","slice","mapWithOffset","startingOffset","mapFn","map","_","adjustedIndex"],"mappings":"AAMgB,SAAAA,EACdC,EACAC,SAEA,MAAMC,EAAU,IAAIC,IAEpB,IAAK,MAAMC,KAAQJ,EAAO,CACxB,MAAMK,EAAQD,EAAKH,GACbK,EAAmC,QAAtBC,EAAAL,EAAQM,IAAIH,UAAU,IAAAE,EAAAA,EAAA,GAEpCL,EAAQO,IAAIJ,IACfH,EAAQQ,IAAIL,EAAO,IAErBC,EAAWK,KAAKP,GAChBF,EAAQQ,IAAIL,EAAOC,EACpB,CAED,OAAOJ,CACT,CAQgB,SAAAU,EAASZ,EAAYa,GACnC,MAAMC,EAAS,GAEf,IAAK,IAAIC,EAAI,EAAGA,EAAIf,EAAMgB,OAAQD,GAAKF,EACrCC,EAAOH,KAAKX,EAAMiB,MAAMF,EAAGA,EAAIF,IAGjC,OAAOC,CACT,UASgBI,EAAoBlB,EAAYmB,EAAwBC,GACtE,OAAOpB,EAAMqB,KAAI,CAACC,EAAGP,KACnB,MAAMQ,GAAiBR,EAAII,GAAkBnB,EAAMgB,OACnD,OAAOI,EAAMpB,EAAMuB,GAAgBA,EAAc,GAErD"}
@@ -0,0 +1,2 @@
1
+ import{b as e}from"./lit-element-79bc2e0e.js";function t(t,r=t,n=e){return t?r:n}export{t as c};
2
+ //# sourceMappingURL=cond-0a8d4554.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"cond-97c45476.js","sources":["../src/common/directives/cond.ts"],"sourcesContent":["import { nothing } from \"lit\"\n\n// NOTE: the below generic versions cannot be used until this bug is fixed: https://github.com/runem/lit-analyzer/issues/207\n// since lit-analyzer does not understand the use of nothing\n\n// /**\n// * if value is truthy, return it, otherwise return nothing\n// */\n// export function cond<T>(value: T): NonNullable<T> | typeof nothing\n\n// /**\n// * if condition is truthy, return trueCase, otherwise return nothing\n// */\n// export function cond<T>(condition: unknown, trueCase: T): T | typeof nothing\n\n// /**\n// * condition is true, so always return trueCase\n// */\n// export function cond<T>(condition: true, trueCase: T): T\n\n// /**\n// * condition is false, to will always return nothing\n// */\n// export function cond<T>(condition: false, trueCase: T): typeof nothing\n\n// /**\n// * if condition is truthy, return trueCase, otherwise return falseCase\n// */\n// export function cond<T, F>(condition: unknown, trueCase: T, falseCase: F): T | F\n\n// /**\n// * condition is true, so always return trueCase\n// */\n// export function cond<T, F>(condition: true, trueCase: T, falseCase: F): T\n\n// /**\n// * condition is false, so always return falseCase\n// */\n// export function cond<T, F>(condition: false, trueCase: T, falseCase: F): F\n\n/**\n * if value is truthy, return it, otherwise return nothing\n */\nexport function cond(value: any): typeof value | typeof nothing\n\n/**\n * if condition is truthy, return trueCase, otherwise return nothing\n */\nexport function cond(condition: unknown, trueCase: any): typeof trueCase | typeof nothing\n\n/**\n * condition is true, so always return trueCase\n */\nexport function cond(condition: true, trueCase: any): typeof trueCase\n\n/**\n * condition is false, to will always return nothing\n */\nexport function cond(condition: false, trueCase: any): typeof nothing\n\n/**\n * if condition is truthy, return trueCase, otherwise return falseCase\n */\nexport function cond(condition: unknown, trueCase: any, falseCase: any): typeof trueCase | typeof falseCase\n\n/**\n * condition is true, so always return trueCase\n */\nexport function cond(condition: true, trueCase: any, falseCase: any): typeof trueCase\n\n/**\n * condition is false, so always return falseCase\n */\nexport function cond(condition: false, trueCase: any, falseCase: any): typeof falseCase\n\nexport function cond(condition: unknown, trueCase: any = condition, falseCase: any = nothing) {\n return condition ? trueCase : falseCase\n}\n"],"names":["cond","condition","trueCase","falseCase","nothing"],"mappings":"8CA2EM,SAAUA,EAAKC,EAAoBC,EAAgBD,EAAWE,EAAiBC,GACnF,OAAOH,EAAYC,EAAWC"}
1
+ {"version":3,"file":"cond-0a8d4554.js","sources":["../src/common/directives/cond.ts"],"sourcesContent":["import { nothing } from \"lit\"\n\n// NOTE: the below generic versions cannot be used until this bug is fixed: https://github.com/runem/lit-analyzer/issues/207\n// since lit-analyzer does not understand the use of nothing\n\n// /**\n// * if value is truthy, return it, otherwise return nothing\n// */\n// export function cond<T>(value: T): NonNullable<T> | typeof nothing\n\n// /**\n// * if condition is truthy, return trueCase, otherwise return nothing\n// */\n// export function cond<T>(condition: unknown, trueCase: T): T | typeof nothing\n\n// /**\n// * condition is true, so always return trueCase\n// */\n// export function cond<T>(condition: true, trueCase: T): T\n\n// /**\n// * condition is false, to will always return nothing\n// */\n// export function cond<T>(condition: false, trueCase: T): typeof nothing\n\n// /**\n// * if condition is truthy, return trueCase, otherwise return falseCase\n// */\n// export function cond<T, F>(condition: unknown, trueCase: T, falseCase: F): T | F\n\n// /**\n// * condition is true, so always return trueCase\n// */\n// export function cond<T, F>(condition: true, trueCase: T, falseCase: F): T\n\n// /**\n// * condition is false, so always return falseCase\n// */\n// export function cond<T, F>(condition: false, trueCase: T, falseCase: F): F\n\n/**\n * if value is truthy, return it, otherwise return nothing\n */\nexport function cond(value: any): typeof value | typeof nothing\n\n/**\n * if condition is truthy, return trueCase, otherwise return nothing\n */\nexport function cond(condition: unknown, trueCase: any): typeof trueCase | typeof nothing\n\n/**\n * condition is true, so always return trueCase\n */\nexport function cond(condition: true, trueCase: any): typeof trueCase\n\n/**\n * condition is false, to will always return nothing\n */\nexport function cond(condition: false, trueCase: any): typeof nothing\n\n/**\n * if condition is truthy, return trueCase, otherwise return falseCase\n */\nexport function cond(condition: unknown, trueCase: any, falseCase: any): typeof trueCase | typeof falseCase\n\n/**\n * condition is true, so always return trueCase\n */\nexport function cond(condition: true, trueCase: any, falseCase: any): typeof trueCase\n\n/**\n * condition is false, so always return falseCase\n */\nexport function cond(condition: false, trueCase: any, falseCase: any): typeof falseCase\n\nexport function cond(condition: unknown, trueCase: any = condition, falseCase: any = nothing) {\n return condition ? trueCase : falseCase\n}\n"],"names":["cond","condition","trueCase","falseCase","nothing"],"mappings":"8CA2EM,SAAUA,EAAKC,EAAoBC,EAAgBD,EAAWE,EAAiBC,GACnF,OAAOH,EAAYC,EAAWC,CAChC"}
@@ -1 +1 @@
1
- {"version":3,"file":"dates-a8de5b83.js","sources":["../src/common/dates.ts"],"sourcesContent":["const ISO_DATE_FORMAT = /^(\\d{4})-(\\d{2})-(\\d{2})$/\n\nexport const enum DaysOfWeek {\n Sunday = 0,\n Monday = 1,\n Tuesday = 2,\n Wednesday = 3,\n Thursday = 4,\n Friday = 5,\n Saturday = 6,\n}\n\nexport function createDate(year: string, month: string, day: string): Date | undefined {\n const dayInt = parseInt(day, 10)\n const monthInt = parseInt(month, 10)\n const yearInt = parseInt(year, 10)\n\n const isValid =\n Number.isInteger(yearInt) && // all parts should be integers\n Number.isInteger(monthInt) &&\n Number.isInteger(dayInt) &&\n monthInt > 0 && // month must be 1-12\n monthInt <= 12 &&\n dayInt > 0 && // day must be 1-31\n dayInt <= 31 &&\n yearInt > 0\n\n if (isValid) {\n const date = new Date(yearInt, monthInt - 1, dayInt)\n // this handles values where year is 0-99, which JS \"helpfully\" interprets as 1900-1999\n date.setFullYear(yearInt)\n\n return date\n }\n\n return undefined\n}\n\n/**\n * @param value date string in ISO format YYYY-MM-DD\n */\nexport function parseISODate(value: string): Date | undefined {\n if (!value) {\n return undefined\n }\n\n const matches = value.match(ISO_DATE_FORMAT)\n\n if (matches) {\n return createDate(matches[1], matches[2], matches[3])\n }\n\n return undefined\n}\n\n/**\n * print date in format YYYY-MM-DD\n * @param date\n */\nexport function printISODate(date: Date): string {\n if (!date) {\n return \"\"\n }\n\n const d = date.getDate().toString(10)\n const m = (date.getMonth() + 1).toString(10)\n const y = date.getFullYear().toString(10)\n\n return `${y.padStart(4, \"0\")}-${m.padStart(2, \"0\")}-${d.padStart(2, \"0\")}`\n}\n\nfunction today() {\n const date = new Date()\n return new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate(), 0, 0, 0, 0))\n}\n\nexport function getDayNames(locale: string, weekday: Exclude<Intl.DateTimeFormatOptions[\"weekday\"], undefined>) {\n const days = []\n const options = { weekday }\n const day = today()\n\n for (let i = 0; i < 7; i++) {\n days[day.getDay()] = day.toLocaleDateString(locale, options)\n day.setDate(day.getDate() + 1)\n }\n\n return days\n}\n\nexport function getMonthNames(locale: string, month: Exclude<Intl.DateTimeFormatOptions[\"month\"], undefined>) {\n const months = []\n const options = { month }\n\n // set to first of the month, so that all dates are valid\n const day = today()\n day.setDate(1)\n\n for (let i = 0; i < 12; i++) {\n months[day.getMonth()] = day.toLocaleDateString(locale, options)\n day.setMonth(day.getMonth() + 1)\n }\n\n return months\n}\n\n/**\n * Compare if two dates are in the same month of the same year.\n */\nexport function isEqualMonth(a?: Date, b?: Date): boolean {\n if (a == null || b == null) {\n return false\n }\n\n return a.getFullYear() === b.getFullYear() && a.getMonth() === b.getMonth()\n}\n\n/**\n * Compare if two dates are equal in terms of day, month, and year\n */\nexport function isEqual(a?: Date, b?: Date): boolean {\n if (a == null || b == null) {\n return false\n }\n\n return isEqualMonth(a, b) && a.getDate() === b.getDate()\n}\n\nexport function addDays(date: Date, days: number): Date {\n const d = new Date(date)\n d.setDate(d.getDate() + days)\n return d\n}\n\nexport function addMonths(date: Date, months: number): Date {\n const d = new Date(date)\n d.setMonth(date.getMonth() + months)\n return d\n}\n\nexport function addYears(date: Date, years: number): Date {\n const d = new Date(date)\n d.setFullYear(date.getFullYear() + years)\n return d\n}\n\nexport function startOfWeek(date: Date, firstDayOfWeek: DaysOfWeek = DaysOfWeek.Monday): Date {\n const d = new Date(date)\n const day = d.getDay()\n const diff = (day < firstDayOfWeek ? 7 : 0) + day - firstDayOfWeek\n\n d.setDate(d.getDate() - diff)\n return d\n}\n\nexport function endOfWeek(date: Date, firstDayOfWeek: DaysOfWeek = DaysOfWeek.Monday): Date {\n const d = new Date(date)\n const day = d.getDay()\n const diff = (day < firstDayOfWeek ? -7 : 0) + 6 - (day - firstDayOfWeek)\n\n d.setDate(d.getDate() + diff)\n return d\n}\n\nexport function startOfMonth(date: Date): Date {\n const d = new Date(date.getFullYear(), date.getMonth(), 1)\n d.setFullYear(date.getFullYear())\n return d\n}\n\nexport function endOfMonth(date: Date): Date {\n const d = new Date(date.getFullYear(), date.getMonth() + 1, 0)\n d.setFullYear(date.getFullYear())\n return d\n}\n\nexport function setMonth(date: Date, month: number): Date {\n const d = new Date(date)\n d.setMonth(month)\n return d\n}\n\nexport function setYear(date: Date, year: number): Date {\n const d = new Date(date)\n d.setFullYear(year)\n return d\n}\n\n/**\n * Ensures date is within range, returns min or max if out of bounds\n */\nexport function clamp(date: Date, min?: Date, max?: Date): Date {\n const time = date.getTime()\n\n if (min && min instanceof Date && time < min.getTime()) {\n return min\n }\n\n if (max && max instanceof Date && time > max.getTime()) {\n return max\n }\n\n return date\n}\n\n/**\n * Check if date is within a min and max\n */\nexport function inRange(date: Date, min?: Date, max?: Date): boolean {\n return clamp(date, min, max) === date\n}\n\n/**\n * given start and end date, return an (inclusive) array of all dates in between\n * @param start\n * @param end\n */\nfunction getDaysInRange(start: Date, end: Date): Date[] {\n const days: Date[] = []\n let current = start\n\n while (!isEqual(current, end)) {\n days.push(current)\n current = addDays(current, 1)\n }\n\n days.push(current)\n\n return days\n}\n\n/**\n * given a date, return an array of dates from a calendar perspective\n * @param date\n * @param firstDayOfWeek\n */\nexport function getViewOfMonth(date: Date, firstDayOfWeek: DaysOfWeek = DaysOfWeek.Monday): Date[] {\n const start = startOfWeek(startOfMonth(date), firstDayOfWeek)\n const end = endOfWeek(endOfMonth(date), firstDayOfWeek)\n\n return getDaysInRange(start, end)\n}\n"],"names":["ISO_DATE_FORMAT","createDate","year","month","day","dayInt","parseInt","monthInt","yearInt","Number","isInteger","date","Date","setFullYear","parseISODate","value","matches","match","printISODate","d","getDate","toString","m","getMonth","getFullYear","padStart","today","UTC","getDayNames","locale","weekday","days","options","i","getDay","toLocaleDateString","setDate","getMonthNames","months","setMonth","isEqualMonth","a","b","isEqual","addDays","startOfWeek","firstDayOfWeek","diff","endOfWeek","startOfMonth","endOfMonth","setYear","clamp","min","max","time","getTime","inRange","getViewOfMonth","start","end","current","push","getDaysInRange"],"mappings":"AAAA,MAAMA,EAAkB,qCAYRC,EAAWC,EAAcC,EAAeC,GACtD,MAAMC,EAASC,SAASF,EAAK,IACvBG,EAAWD,SAASH,EAAO,IAC3BK,EAAUF,SAASJ,EAAM,IAY/B,GATEO,OAAOC,UAAUF,IACjBC,OAAOC,UAAUH,IACjBE,OAAOC,UAAUL,IACjBE,EAAW,GACXA,GAAY,IACZF,EAAS,GACTA,GAAU,IACVG,EAAU,EAEC,CACX,MAAMG,EAAO,IAAIC,KAAKJ,EAASD,EAAW,EAAGF,GAI7C,OAFAM,EAAKE,YAAYL,GAEVG,GASL,SAAUG,EAAaC,GAC3B,IAAKA,EACH,OAGF,MAAMC,EAAUD,EAAME,MAAMjB,GAE5B,OAAIgB,EACKf,EAAWe,EAAQ,GAAIA,EAAQ,GAAIA,EAAQ,SADpD,EAWI,SAAUE,EAAaP,GAC3B,IAAKA,EACH,MAAO,GAGT,MAAMQ,EAAIR,EAAKS,UAAUC,SAAS,IAC5BC,GAAKX,EAAKY,WAAa,GAAGF,SAAS,IAGzC,MAAO,GAFGV,EAAKa,cAAcH,SAAS,IAE1BI,SAAS,EAAG,QAAQH,EAAEG,SAAS,EAAG,QAAQN,EAAEM,SAAS,EAAG,OAGtE,SAASC,IACP,MAAMf,EAAO,IAAIC,KACjB,OAAO,IAAIA,KAAKA,KAAKe,IAAIhB,EAAKa,cAAeb,EAAKY,WAAYZ,EAAKS,UAAW,EAAG,EAAG,EAAG,IAGzE,SAAAQ,EAAYC,EAAgBC,GAC1C,MAAMC,EAAO,GACPC,EAAU,CAAEF,WACZ1B,EAAMsB,IAEZ,IAAK,IAAIO,EAAI,EAAGA,EAAI,EAAGA,IACr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,GAExD,OADAJ,EAAEN,YAAYF,EAAKa,eACZL,EAGH,SAAU+B,EAAWvC,GACzB,MAAMQ,EAAI,IAAIP,KAAKD,EAAKa,cAAeb,EAAKY,WAAa,EAAG,GAE5D,OADAJ,EAAEN,YAAYF,EAAKa,eACZL,EAGO,SAAAoB,EAAS5B,EAAYR,GACnC,MAAMgB,EAAI,IAAIP,KAAKD,GAEnB,OADAQ,EAAEoB,SAASpC,GACJgB,EAGO,SAAAgC,EAAQxC,EAAYT,GAClC,MAAMiB,EAAI,IAAIP,KAAKD,GAEnB,OADAQ,EAAEN,YAAYX,GACPiB,WAMOiC,EAAMzC,EAAY0C,EAAYC,GAC5C,MAAMC,EAAO5C,EAAK6C,UAElB,OAAIH,GAAOA,aAAezC,MAAQ2C,EAAOF,EAAIG,UACpCH,EAGLC,GAAOA,aAAe1C,MAAQ2C,EAAOD,EAAIE,UACpCF,EAGF3C,WAMO8C,EAAQ9C,EAAY0C,EAAYC,GAC9C,OAAOF,EAAMzC,EAAM0C,EAAKC,KAAS3C,EA2BnB,SAAA+C,EAAe/C,EAAYmC,EAA8C,GAIvF,OAvBF,SAAwBa,EAAaC,GACnC,MAAM7B,EAAe,GACrB,IAAI8B,EAAUF,EAEd,MAAQhB,EAAQkB,EAASD,IACvB7B,EAAK+B,KAAKD,GACVA,EAAUjB,EAAQiB,EAAS,GAK7B,OAFA9B,EAAK+B,KAAKD,GAEH9B,EAYAgC,CAHOlB,EAAYI,EAAatC,GAAOmC,GAClCE,EAAUE,EAAWvC,GAAOmC"}
1
+ {"version":3,"file":"dates-a8de5b83.js","sources":["../src/common/dates.ts"],"sourcesContent":["const ISO_DATE_FORMAT = /^(\\d{4})-(\\d{2})-(\\d{2})$/\n\nexport const enum DaysOfWeek {\n Sunday = 0,\n Monday = 1,\n Tuesday = 2,\n Wednesday = 3,\n Thursday = 4,\n Friday = 5,\n Saturday = 6,\n}\n\nexport function createDate(year: string, month: string, day: string): Date | undefined {\n const dayInt = parseInt(day, 10)\n const monthInt = parseInt(month, 10)\n const yearInt = parseInt(year, 10)\n\n const isValid =\n Number.isInteger(yearInt) && // all parts should be integers\n Number.isInteger(monthInt) &&\n Number.isInteger(dayInt) &&\n monthInt > 0 && // month must be 1-12\n monthInt <= 12 &&\n dayInt > 0 && // day must be 1-31\n dayInt <= 31 &&\n yearInt > 0\n\n if (isValid) {\n const date = new Date(yearInt, monthInt - 1, dayInt)\n // this handles values where year is 0-99, which JS \"helpfully\" interprets as 1900-1999\n date.setFullYear(yearInt)\n\n return date\n }\n\n return undefined\n}\n\n/**\n * @param value date string in ISO format YYYY-MM-DD\n */\nexport function parseISODate(value: string): Date | undefined {\n if (!value) {\n return undefined\n }\n\n const matches = value.match(ISO_DATE_FORMAT)\n\n if (matches) {\n return createDate(matches[1], matches[2], matches[3])\n }\n\n return undefined\n}\n\n/**\n * print date in format YYYY-MM-DD\n * @param date\n */\nexport function printISODate(date: Date): string {\n if (!date) {\n return \"\"\n }\n\n const d = date.getDate().toString(10)\n const m = (date.getMonth() + 1).toString(10)\n const y = date.getFullYear().toString(10)\n\n return `${y.padStart(4, \"0\")}-${m.padStart(2, \"0\")}-${d.padStart(2, \"0\")}`\n}\n\nfunction today() {\n const date = new Date()\n return new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate(), 0, 0, 0, 0))\n}\n\nexport function getDayNames(locale: string, weekday: Exclude<Intl.DateTimeFormatOptions[\"weekday\"], undefined>) {\n const days = []\n const options = { weekday }\n const day = today()\n\n for (let i = 0; i < 7; i++) {\n days[day.getDay()] = day.toLocaleDateString(locale, options)\n day.setDate(day.getDate() + 1)\n }\n\n return days\n}\n\nexport function getMonthNames(locale: string, month: Exclude<Intl.DateTimeFormatOptions[\"month\"], undefined>) {\n const months = []\n const options = { month }\n\n // set to first of the month, so that all dates are valid\n const day = today()\n day.setDate(1)\n\n for (let i = 0; i < 12; i++) {\n months[day.getMonth()] = day.toLocaleDateString(locale, options)\n day.setMonth(day.getMonth() + 1)\n }\n\n return months\n}\n\n/**\n * Compare if two dates are in the same month of the same year.\n */\nexport function isEqualMonth(a?: Date, b?: Date): boolean {\n if (a == null || b == null) {\n return false\n }\n\n return a.getFullYear() === b.getFullYear() && a.getMonth() === b.getMonth()\n}\n\n/**\n * Compare if two dates are equal in terms of day, month, and year\n */\nexport function isEqual(a?: Date, b?: Date): boolean {\n if (a == null || b == null) {\n return false\n }\n\n return isEqualMonth(a, b) && a.getDate() === b.getDate()\n}\n\nexport function addDays(date: Date, days: number): Date {\n const d = new Date(date)\n d.setDate(d.getDate() + days)\n return d\n}\n\nexport function addMonths(date: Date, months: number): Date {\n const d = new Date(date)\n d.setMonth(date.getMonth() + months)\n return d\n}\n\nexport function addYears(date: Date, years: number): Date {\n const d = new Date(date)\n d.setFullYear(date.getFullYear() + years)\n return d\n}\n\nexport function startOfWeek(date: Date, firstDayOfWeek: DaysOfWeek = DaysOfWeek.Monday): Date {\n const d = new Date(date)\n const day = d.getDay()\n const diff = (day < firstDayOfWeek ? 7 : 0) + day - firstDayOfWeek\n\n d.setDate(d.getDate() - diff)\n return d\n}\n\nexport function endOfWeek(date: Date, firstDayOfWeek: DaysOfWeek = DaysOfWeek.Monday): Date {\n const d = new Date(date)\n const day = d.getDay()\n const diff = (day < firstDayOfWeek ? -7 : 0) + 6 - (day - firstDayOfWeek)\n\n d.setDate(d.getDate() + diff)\n return d\n}\n\nexport function startOfMonth(date: Date): Date {\n const d = new Date(date.getFullYear(), date.getMonth(), 1)\n d.setFullYear(date.getFullYear())\n return d\n}\n\nexport function endOfMonth(date: Date): Date {\n const d = new Date(date.getFullYear(), date.getMonth() + 1, 0)\n d.setFullYear(date.getFullYear())\n return d\n}\n\nexport function setMonth(date: Date, month: number): Date {\n const d = new Date(date)\n d.setMonth(month)\n return d\n}\n\nexport function setYear(date: Date, year: number): Date {\n const d = new Date(date)\n d.setFullYear(year)\n return d\n}\n\n/**\n * Ensures date is within range, returns min or max if out of bounds\n */\nexport function clamp(date: Date, min?: Date, max?: Date): Date {\n const time = date.getTime()\n\n if (min && min instanceof Date && time < min.getTime()) {\n return min\n }\n\n if (max && max instanceof Date && time > max.getTime()) {\n return max\n }\n\n return date\n}\n\n/**\n * Check if date is within a min and max\n */\nexport function inRange(date: Date, min?: Date, max?: Date): boolean {\n return clamp(date, min, max) === date\n}\n\n/**\n * given start and end date, return an (inclusive) array of all dates in between\n * @param start\n * @param end\n */\nfunction getDaysInRange(start: Date, end: Date): Date[] {\n const days: Date[] = []\n let current = start\n\n while (!isEqual(current, end)) {\n days.push(current)\n current = addDays(current, 1)\n }\n\n days.push(current)\n\n return days\n}\n\n/**\n * given a date, return an array of dates from a calendar perspective\n * @param date\n * @param firstDayOfWeek\n */\nexport function getViewOfMonth(date: Date, firstDayOfWeek: DaysOfWeek = DaysOfWeek.Monday): Date[] {\n const start = startOfWeek(startOfMonth(date), firstDayOfWeek)\n const end = endOfWeek(endOfMonth(date), firstDayOfWeek)\n\n return getDaysInRange(start, end)\n}\n"],"names":["ISO_DATE_FORMAT","createDate","year","month","day","dayInt","parseInt","monthInt","yearInt","Number","isInteger","date","Date","setFullYear","parseISODate","value","matches","match","printISODate","d","getDate","toString","m","getMonth","getFullYear","padStart","today","UTC","getDayNames","locale","weekday","days","options","i","getDay","toLocaleDateString","setDate","getMonthNames","months","setMonth","isEqualMonth","a","b","isEqual","addDays","startOfWeek","firstDayOfWeek","diff","endOfWeek","startOfMonth","endOfMonth","setYear","clamp","min","max","time","getTime","inRange","getViewOfMonth","start","end","current","push","getDaysInRange"],"mappings":"AAAA,MAAMA,EAAkB,qCAYRC,EAAWC,EAAcC,EAAeC,GACtD,MAAMC,EAASC,SAASF,EAAK,IACvBG,EAAWD,SAASH,EAAO,IAC3BK,EAAUF,SAASJ,EAAM,IAY/B,GATEO,OAAOC,UAAUF,IACjBC,OAAOC,UAAUH,IACjBE,OAAOC,UAAUL,IACjBE,EAAW,GACXA,GAAY,IACZF,EAAS,GACTA,GAAU,IACVG,EAAU,EAEC,CACX,MAAMG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zC,EAAY0C,EAAYC,GAC5C,MAAMC,EAAO5C,EAAK6C,UAElB,OAAIH,GAAOA,aAAezC,MAAQ2C,EAAOF,EAAIG,UACpCH,EAGLC,GAAOA,aAAe1C,MAAQ2C,EAAOD,EAAIE,UACpCF,EAGF3C,CACT,UAKgB8C,EAAQ9C,EAAY0C,EAAYC,GAC9C,OAAOF,EAAMzC,EAAM0C,EAAKC,KAAS3C,CACnC,CA0BgB,SAAA+C,EAAe/C,EAAYmC,EAA8C,GAIvF,OAvBF,SAAwBa,EAAaC,GACnC,MAAM7B,EAAe,GACrB,IAAI8B,EAAUF,EAEd,MAAQhB,EAAQkB,EAASD,IACvB7B,EAAK+B,KAAKD,GACVA,EAAUjB,EAAQiB,EAAS,GAK7B,OAFA9B,EAAK+B,KAAKD,GAEH9B,CACT,CAWSgC,CAHOlB,EAAYI,EAAatC,GAAOmC,GAClCE,EAAUE,EAAWvC,GAAOmC,GAG1C"}
@@ -1 +1 @@
1
- {"version":3,"file":"directive-de55b00a.js","sources":["../node_modules/lit-html/directive.js"],"sourcesContent":["/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nconst t={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},e=t=>(...e)=>({_$litDirective$:t,values:e});class i{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}export{i as Directive,t as PartType,e as directive};\n//# sourceMappingURL=directive.js.map\n"],"names":["t","ATTRIBUTE","CHILD","PROPERTY","BOOLEAN_ATTRIBUTE","EVENT","ELEMENT","e","_$litDirective$","values","i","constructor","_$AU","this","_$AM","_$AT","_$Ct","_$Ci","_$AS","update","render"],"mappings":";;;;;AAKK,MAACA,EAAE,CAACC,UAAU,EAAEC,MAAM,EAAEC,SAAS,EAAEC,kBAAkB,EAAEC,MAAM,EAAEC,QAAQ,GAAGC,EAAEP,GAAG,IAAIO,KAAC,CAAKC,gBAAgBR,EAAES,OAAOF,IAAI,MAAMG,EAAEC,YAAYX,IAAQY,WAAO,OAAOC,KAAKC,KAAKF,KAAKG,KAAKf,EAAEO,EAAEG,GAAGG,KAAKG,KAAKhB,EAAEa,KAAKC,KAAKP,EAAEM,KAAKI,KAAKP,EAAEQ,KAAKlB,EAAEO,GAAG,OAAOM,KAAKM,OAAOnB,EAAEO,GAAGY,OAAOnB,EAAEO,GAAG,OAAOM,KAAKO,UAAUb"}
1
+ {"version":3,"file":"directive-de55b00a.js","sources":["../node_modules/lit-html/directive.js"],"sourcesContent":["/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nconst t={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},e=t=>(...e)=>({_$litDirective$:t,values:e});class i{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}export{i as Directive,t as PartType,e as directive};\n//# sourceMappingURL=directive.js.map\n"],"names":["t","ATTRIBUTE","CHILD","PROPERTY","BOOLEAN_ATTRIBUTE","EVENT","ELEMENT","e","_$litDirective$","values","i","constructor","_$AU","this","_$AM","_$AT","_$Ct","_$Ci","_$AS","update","render"],"mappings":";;;;;AAKK,MAACA,EAAE,CAACC,UAAU,EAAEC,MAAM,EAAEC,SAAS,EAAEC,kBAAkB,EAAEC,MAAM,EAAEC,QAAQ,GAAGC,EAAEP,GAAG,IAAIO,KAAC,CAAKC,gBAAgBR,EAAES,OAAOF,IAAI,MAAMG,EAAEC,YAAYX,GAAE,CAAMY,WAAO,OAAOC,KAAKC,KAAKF,IAAI,CAACG,KAAKf,EAAEO,EAAEG,GAAGG,KAAKG,KAAKhB,EAAEa,KAAKC,KAAKP,EAAEM,KAAKI,KAAKP,CAAC,CAACQ,KAAKlB,EAAEO,GAAG,OAAOM,KAAKM,OAAOnB,EAAEO,EAAE,CAACY,OAAOnB,EAAEO,GAAG,OAAOM,KAAKO,UAAUb,EAAE"}
@@ -1 +1 @@
1
- {"version":3,"file":"events-731d0007.js","sources":["../src/common/events.ts"],"sourcesContent":["/**\n * A base class for events which defaults to bubbling and composed\n */\nexport class NordEvent extends Event {\n constructor(type: string, eventInitDict?: EventInit) {\n super(type, {\n bubbles: true,\n composed: true,\n ...eventInitDict,\n })\n }\n}\n"],"names":["NordEvent","Event","constructor","type","eventInitDict","super","bubbles","composed"],"mappings":"AAGM,MAAOA,UAAkBC,MAC7BC,YAAYC,EAAcC,GACxBC,MAAMF,EAAM,CACVG,SAAS,EACTC,UAAU,KACPH"}
1
+ {"version":3,"file":"events-731d0007.js","sources":["../src/common/events.ts"],"sourcesContent":["/**\n * A base class for events which defaults to bubbling and composed\n */\nexport class NordEvent extends Event {\n constructor(type: string, eventInitDict?: EventInit) {\n super(type, {\n bubbles: true,\n composed: true,\n ...eventInitDict,\n })\n }\n}\n"],"names":["NordEvent","Event","constructor","type","eventInitDict","super","bubbles","composed"],"mappings":"AAGM,MAAOA,UAAkBC,MAC7BC,YAAYC,EAAcC,GACxBC,MAAMF,EAAM,CACVG,SAAS,EACTC,UAAU,KACPH,GAEN"}
@@ -1 +1 @@
1
- {"version":3,"file":"fsm-50373df9.js","sources":["../src/common/fsm.ts"],"sourcesContent":["type EventsFromTransitions<T> = { [Prop in keyof T]: keyof T[Prop] }[keyof T]\n\nexport function fsm<\n TTransitions extends Record<TStates, Partial<Record<TEvents, TStates>>>,\n TStates extends keyof TTransitions,\n TEvents extends EventsFromTransitions<TTransitions>\n>(config: TTransitions) {\n return {\n transition(currentState: TStates, event: TEvents) {\n const nextState = config[currentState][event] as TStates\n return nextState || currentState\n },\n }\n}\n\nexport type Machine = ReturnType<typeof fsm>\n\nexport type States<T extends Machine | Machine[\"transition\"]> = T extends Machine\n ? Parameters<T[\"transition\"]>[0]\n : T extends Machine[\"transition\"]\n ? Parameters<T>[0]\n : never\n\nexport type Events<T extends Machine | Machine[\"transition\"]> = T extends Machine\n ? Parameters<T[\"transition\"]>[1]\n : T extends Machine[\"transition\"]\n ? Parameters<T>[1]\n : never\n"],"names":["fsm","config","transition","currentState","event"],"mappings":"AAEM,SAAUA,EAIdC,GACA,MAAO,CACLC,WAAU,CAACC,EAAuBC,IACdH,EAAOE,GAAcC,IACnBD"}
1
+ {"version":3,"file":"fsm-50373df9.js","sources":["../src/common/fsm.ts"],"sourcesContent":["type EventsFromTransitions<T> = { [Prop in keyof T]: keyof T[Prop] }[keyof T]\n\nexport function fsm<\n TTransitions extends Record<TStates, Partial<Record<TEvents, TStates>>>,\n TStates extends keyof TTransitions,\n TEvents extends EventsFromTransitions<TTransitions>\n>(config: TTransitions) {\n return {\n transition(currentState: TStates, event: TEvents) {\n const nextState = config[currentState][event] as TStates\n return nextState || currentState\n },\n }\n}\n\nexport type Machine = ReturnType<typeof fsm>\n\nexport type States<T extends Machine | Machine[\"transition\"]> = T extends Machine\n ? Parameters<T[\"transition\"]>[0]\n : T extends Machine[\"transition\"]\n ? Parameters<T>[0]\n : never\n\nexport type Events<T extends Machine | Machine[\"transition\"]> = T extends Machine\n ? Parameters<T[\"transition\"]>[1]\n : T extends Machine[\"transition\"]\n ? Parameters<T>[1]\n : never\n"],"names":["fsm","config","transition","currentState","event"],"mappings":"AAEM,SAAUA,EAIdC,GACA,MAAO,CACLC,WAAU,CAACC,EAAuBC,IACdH,EAAOE,GAAcC,IACnBD,EAG1B"}
@@ -1,7 +1,7 @@
1
- import{w as e}from"./lit-element-67e6cd99.js";
1
+ import{b as e}from"./lit-element-79bc2e0e.js";
2
2
  /**
3
3
  * @license
4
4
  * Copyright 2018 Google LLC
5
5
  * SPDX-License-Identifier: BSD-3-Clause
6
6
  */const t=t=>null!=t?t:e;export{t as l};
7
- //# sourceMappingURL=if-defined-fe1a64e3.js.map
7
+ //# sourceMappingURL=if-defined-f43b1487.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"if-defined-fe1a64e3.js","sources":["../node_modules/lit-html/directives/if-defined.js"],"sourcesContent":["import{nothing as t}from\"../lit-html.js\";\n/**\n * @license\n * Copyright 2018 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */const l=l=>null!=l?l:t;export{l as ifDefined};\n//# sourceMappingURL=if-defined.js.map\n"],"names":["l","t"],"mappings":";;;;;GAKQ,MAACA,EAAEA,GAAG,MAAMA,EAAEA,EAAEC"}
1
+ {"version":3,"file":"if-defined-f43b1487.js","sources":["../node_modules/lit-html/directives/if-defined.js"],"sourcesContent":["import{nothing as t}from\"../lit-html.js\";\n/**\n * @license\n * Copyright 2018 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */const l=l=>null!=l?l:t;export{l as ifDefined};\n//# sourceMappingURL=if-defined.js.map\n"],"names":["l","t"],"mappings":";;;;;GAKQ,MAACA,EAAEA,GAAG,MAAMA,EAAEA,EAAEC"}
package/lib/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export{default as Badge}from"./Badge.js";export{default as Button}from"./Button.js";export{default as Card}from"./Card.js";export{default as Input}from"./Input.js";export{default as Icon}from"./Icon.js";export{default as CommandMenu}from"./CommandMenu.js";export{default as CommandMenuAction}from"./CommandMenuAction.js";export{default as Select}from"./Select.js";export{default as Stack}from"./Stack.js";export{default as Spinner}from"./Spinner.js";export{default as Table}from"./Table.js";export{default as VisuallyHidden}from"./VisuallyHidden.js";export{default as Textarea}from"./Textarea.js";export{C as Calendar}from"./Calendar-c2dc6905.js";export{default as DatePicker}from"./DatePicker.js";export{default as Checkbox}from"./Checkbox.js";export{default as Tooltip}from"./Tooltip.js";export{default as Fieldset}from"./Fieldset.js";export{default as Radio}from"./Radio.js";export{default as Header}from"./Header.js";export{default as NavGroup}from"./NavGroup.js";export{default as NavItem}from"./NavItem.js";export{default as Navigation}from"./Navigation.js";export{default as Layout}from"./Layout.js";export{default as EmptyState}from"./EmptyState.js";export{default as Banner}from"./Banner.js";export{default as Avatar}from"./Avatar.js";export{default as ProgressBar}from"./ProgressBar.js";export{default as Popout}from"./Popout.js";export{default as Dropdown}from"./Dropdown.js";export{default as DropdownItem}from"./DropdownItem.js";export{default as DropdownGroup}from"./DropdownGroup.js";export{isTranslationRegistered,registerTranslation}from"./translation.js";export{default as TabGroup}from"./TabGroup.js";export{default as Tab}from"./Tab.js";export{default as TabPanel}from"./TabPanel.js";export{default as Toggle}from"./Toggle.js";export{default as Modal}from"./Modal.js";export{default as Skeleton}from"./Skeleton.js";export{default as Toast}from"./Toast.js";export{default as ToastGroup}from"./ToastGroup.js";export{default as Divider}from"./Divider.js";export{default as Qrcode}from"./Qrcode.js";import"./query-assigned-elements-ef860822.js";import"./lit-element-67e6cd99.js";import"./property-03f59dce.js";import"./Component-5a0a26a0.js";import"./ref-57ff8ffc.js";import"./directive-de55b00a.js";import"./EventController-d99ebeef.js";import"./LightDomController-6d26dea2.js";import"./cond-97c45476.js";import"./FocusableMixin-175ea4d7.js";import"./InputMixin-9334d385.js";import"./SlotController-ea6eff46.js";import"./if-defined-fe1a64e3.js";import"./class-map-f1b6f1fa.js";import"./unsafe-html-61a04601.js";import"./FormAssociatedMixin-d0d98a92.js";import"./events-731d0007.js";import"./TextField-f48e2e5c.js";import"./AutocompleteMixin-ca948bdb.js";import"./FormField-d3767c2e.js";import"./state-70f38ceb.js";import"./observe-a9c6dfb6.js";import"./repeat-084c4167.js";import"./collection-800f5002.js";import"./number-c3ab3e95.js";import"./LightDismissController-a2645ae6.js";import"./ShortcutController-87615e31.js";import"./tinykeys.module-84e6cc41.js";import"./KeyboardController.js";import"./SelectEvent.js";import"./LocalizeController.js";import"./DirectionController-8b298382.js";import"./query-2d22378e.js";import"./dates-a8de5b83.js";import"./month-view.js";import"./DateSelectEvent.js";import"./interface-close-small-44ababc3.js";import"./date-adapter.js";import"./positioning-b660767c.js";import"./fsm-50373df9.js";import"./en-us.js";import"./localization.js";import"./localization2.js";import"./localization3.js";import"./localization4.js";import"./DraftComponentMixin-9e4b7b34.js";
1
+ export{default as Badge}from"./Badge.js";export{default as Button}from"./Button.js";export{default as Card}from"./Card.js";export{default as Input}from"./Input.js";export{default as Icon}from"./Icon.js";export{default as CommandMenu}from"./CommandMenu.js";export{default as CommandMenuAction}from"./CommandMenuAction.js";export{default as Select}from"./Select.js";export{default as Stack}from"./Stack.js";export{default as Spinner}from"./Spinner.js";export{default as Table}from"./Table.js";export{default as VisuallyHidden}from"./VisuallyHidden.js";export{default as Textarea}from"./Textarea.js";export{C as Calendar}from"./Calendar-7905498d.js";export{default as DatePicker}from"./DatePicker.js";export{default as Checkbox}from"./Checkbox.js";export{default as Tooltip}from"./Tooltip.js";export{default as Fieldset}from"./Fieldset.js";export{default as Radio}from"./Radio.js";export{default as Header}from"./Header.js";export{default as NavGroup}from"./NavGroup.js";export{default as NavItem}from"./NavItem.js";export{default as Navigation}from"./Navigation.js";export{default as Layout}from"./Layout.js";export{default as EmptyState}from"./EmptyState.js";export{default as Banner}from"./Banner.js";export{default as Avatar}from"./Avatar.js";export{default as ProgressBar}from"./ProgressBar.js";export{default as Popout}from"./Popout.js";export{default as Dropdown}from"./Dropdown.js";export{default as DropdownItem}from"./DropdownItem.js";export{default as DropdownGroup}from"./DropdownGroup.js";export{isTranslationRegistered,registerTranslation}from"./translation.js";export{default as TabGroup}from"./TabGroup.js";export{default as Tab}from"./Tab.js";export{default as TabPanel}from"./TabPanel.js";export{default as Toggle}from"./Toggle.js";export{default as Modal}from"./Modal.js";export{default as Skeleton}from"./Skeleton.js";export{default as Toast}from"./Toast.js";export{default as ToastGroup}from"./ToastGroup.js";export{default as Divider}from"./Divider.js";export{default as Qrcode}from"./Qrcode.js";import"./query-assigned-elements-e6cbac30.js";import"./lit-element-79bc2e0e.js";import"./property-03f59dce.js";import"./Component-49a41387.js";import"./ref-697b28b5.js";import"./directive-de55b00a.js";import"./EventController-d99ebeef.js";import"./LightDomController-9a6e398f.js";import"./cond-0a8d4554.js";import"./FocusableMixin-99db12c1.js";import"./InputMixin-158f63fb.js";import"./SlotController-ea6eff46.js";import"./if-defined-f43b1487.js";import"./class-map-cd6c8cbd.js";import"./unsafe-html-be8023cd.js";import"./FormAssociatedMixin-f6e5b3cd.js";import"./events-731d0007.js";import"./TextField-c34519d4.js";import"./AutocompleteMixin-370de2be.js";import"./FormField-72062bf1.js";import"./state-70f38ceb.js";import"./observe-a9c6dfb6.js";import"./repeat-e7acc0bd.js";import"./collection-800f5002.js";import"./number-c3ab3e95.js";import"./LightDismissController-a2645ae6.js";import"./ShortcutController-87615e31.js";import"./tinykeys.module-84e6cc41.js";import"./KeyboardController.js";import"./SelectEvent.js";import"./LocalizeController.js";import"./DirectionController-8b298382.js";import"./query-2d22378e.js";import"./dates-a8de5b83.js";import"./month-view.js";import"./DateSelectEvent.js";import"./interface-close-small-44ababc3.js";import"./date-adapter.js";import"./positioning-3bbd3548.js";import"./fsm-50373df9.js";import"./en-us.js";import"./localization.js";import"./localization2.js";import"./localization3.js";import"./localization4.js";import"./DraftComponentMixin-9e4b7b34.js";
2
2
  //# sourceMappingURL=index.js.map
@@ -0,0 +1,24 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2019 Google LLC
4
+ * SPDX-License-Identifier: BSD-3-Clause
5
+ */
6
+ const t=window,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s=Symbol(),i=new WeakMap;class n{constructor(t,e,i){if(this._$cssResult$=!0,i!==s)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const s=this.t;if(e&&void 0===t){const e=void 0!==s&&1===s.length;e&&(t=i.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&i.set(s,t))}return t}toString(){return this.cssText}}const o=(t,...e)=>{const i=1===t.length?t[0]:e.reduce(((e,s,i)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[i+1]),t[0]);return new n(i,t,s)},r=e?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return(t=>new n("string"==typeof t?t:t+"",void 0,s))(e)})(t):t
7
+ /**
8
+ * @license
9
+ * Copyright 2017 Google LLC
10
+ * SPDX-License-Identifier: BSD-3-Clause
11
+ */;var l;const h=window,a=h.trustedTypes,d=a?a.emptyScript:"",c=h.reactiveElementPolyfillSupport,u={toAttribute(t,e){switch(e){case Boolean:t=t?d:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let s=t;switch(e){case Boolean:s=null!==t;break;case Number:s=null===t?null:Number(t);break;case Object:case Array:try{s=JSON.parse(t)}catch(t){s=null}}return s}},p=(t,e)=>e!==t&&(e==e||t==t),$={attribute:!0,type:String,converter:u,reflect:!1,hasChanged:p};class v extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var e;null!==(e=this.h)&&void 0!==e||(this.h=[]),this.h.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,s)=>{const i=this._$Ep(s,e);void 0!==i&&(this._$Ev.set(i,s),t.push(i))})),t}static createProperty(t,e=$){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const s="symbol"==typeof t?Symbol():"__"+t,i=this.getPropertyDescriptor(t,s,e);void 0!==i&&Object.defineProperty(this.prototype,t,i)}}static getPropertyDescriptor(t,e,s){return{get(){return this[e]},set(i){const n=this[t];this[e]=i,this.requestUpdate(t,n,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||$}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const s of e)this.createProperty(s,t[s])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const t of s)e.unshift(r(t))}else void 0!==t&&e.push(r(t));return e}static _$Ep(t,e){const s=e.attribute;return!1===s?void 0:"string"==typeof s?s:"string"==typeof t?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,s;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(s=t.hostConnected)||void 0===s||s.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var s;const i=null!==(s=this.shadowRoot)&&void 0!==s?s:this.attachShadow(this.constructor.shadowRootOptions);return((s,i)=>{e?s.adoptedStyleSheets=i.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):i.forEach((e=>{const i=document.createElement("style"),n=t.litNonce;void 0!==n&&i.setAttribute("nonce",n),i.textContent=e.cssText,s.appendChild(i)}))})(i,this.constructor.elementStyles),i}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$EO(t,e,s=$){var i;const n=this.constructor._$Ep(t,s);if(void 0!==n&&!0===s.reflect){const o=(void 0!==(null===(i=s.converter)||void 0===i?void 0:i.toAttribute)?s.converter:u).toAttribute(e,s.type);this._$El=t,null==o?this.removeAttribute(n):this.setAttribute(n,o),this._$El=null}}_$AK(t,e){var s;const i=this.constructor,n=i._$Ev.get(t);if(void 0!==n&&this._$El!==n){const t=i.getPropertyOptions(n),o="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(s=t.converter)||void 0===s?void 0:s.fromAttribute)?t.converter:u;this._$El=n,this[n]=o.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,s){let i=!0;void 0!==t&&(((s=s||this.constructor.getPropertyOptions(t)).hasChanged||p)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===s.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,s))):i=!1),!this.isUpdatePending&&i&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,e)=>this[e]=t)),this._$Ei=void 0);let e=!1;const s=this._$AL;try{e=this.shouldUpdate(s),e?(this.willUpdate(s),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(s)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(s)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$EO(e,this[e],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}
12
+ /**
13
+ * @license
14
+ * Copyright 2017 Google LLC
15
+ * SPDX-License-Identifier: BSD-3-Clause
16
+ */
17
+ var _;v.finalized=!0,v.elementProperties=new Map,v.elementStyles=[],v.shadowRootOptions={mode:"open"},null==c||c({ReactiveElement:v}),(null!==(l=h.reactiveElementVersions)&&void 0!==l?l:h.reactiveElementVersions=[]).push("1.4.0");const A=window,f=A.trustedTypes,y=f?f.createPolicy("lit-html",{createHTML:t=>t}):void 0,m=`lit$${(Math.random()+"").slice(9)}$`,g="?"+m,E=`<${g}>`,S=document,b=(t="")=>S.createComment(t),C=t=>null===t||"object"!=typeof t&&"function"!=typeof t,w=Array.isArray,P=t=>w(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),x=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,U=/-->/g,H=/>/g,N=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),O=/'/g,T=/"/g,R=/^(?:script|style|textarea|title)$/i,M=(t=>(e,...s)=>({_$litType$:t,strings:e,values:s}))(1),k=Symbol.for("lit-noChange"),L=Symbol.for("lit-nothing"),B=new WeakMap,z=(t,e,s)=>{var i,n;const o=null!==(i=null==s?void 0:s.renderBefore)&&void 0!==i?i:e;let r=o._$litPart$;if(void 0===r){const t=null!==(n=null==s?void 0:s.renderBefore)&&void 0!==n?n:null;o._$litPart$=r=new q(e.insertBefore(b(),t),t,void 0,null!=s?s:{})}return r._$AI(t),r},D=S.createTreeWalker(S,129,null,!1),I=(t,e)=>{const s=t.length-1,i=[];let n,o=2===e?"<svg>":"",r=x;for(let e=0;e<s;e++){const s=t[e];let l,h,a=-1,d=0;for(;d<s.length&&(r.lastIndex=d,h=r.exec(s),null!==h);)d=r.lastIndex,r===x?"!--"===h[1]?r=U:void 0!==h[1]?r=H:void 0!==h[2]?(R.test(h[2])&&(n=RegExp("</"+h[2],"g")),r=N):void 0!==h[3]&&(r=N):r===N?">"===h[0]?(r=null!=n?n:x,a=-1):void 0===h[1]?a=-2:(a=r.lastIndex-h[2].length,l=h[1],r=void 0===h[3]?N:'"'===h[3]?T:O):r===T||r===O?r=N:r===U||r===H?r=x:(r=N,n=void 0);const c=r===N&&t[e+1].startsWith("/>")?" ":"";o+=r===x?s+E:a>=0?(i.push(l),s.slice(0,a)+"$lit$"+s.slice(a)+m+c):s+m+(-2===a?(i.push(void 0),e):c)}const l=o+(t[s]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==y?y.createHTML(l):l,i]};class j{constructor({strings:t,_$litType$:e},s){let i;this.parts=[];let n=0,o=0;const r=t.length-1,l=this.parts,[h,a]=I(t,e);if(this.el=j.createElement(h,s),D.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(i=D.nextNode())&&l.length<r;){if(1===i.nodeType){if(i.hasAttributes()){const t=[];for(const e of i.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(m)){const s=a[o++];if(t.push(e),void 0!==s){const t=i.getAttribute(s.toLowerCase()+"$lit$").split(m),e=/([.?@])?(.*)/.exec(s);l.push({type:1,index:n,name:e[2],strings:t,ctor:"."===e[1]?K:"?"===e[1]?F:"@"===e[1]?G:J})}else l.push({type:6,index:n})}for(const e of t)i.removeAttribute(e)}if(R.test(i.tagName)){const t=i.textContent.split(m),e=t.length-1;if(e>0){i.textContent=f?f.emptyScript:"";for(let s=0;s<e;s++)i.append(t[s],b()),D.nextNode(),l.push({type:2,index:++n});i.append(t[e],b())}}}else if(8===i.nodeType)if(i.data===g)l.push({type:2,index:n});else{let t=-1;for(;-1!==(t=i.data.indexOf(m,t+1));)l.push({type:7,index:n}),t+=m.length-1}n++}}static createElement(t,e){const s=S.createElement("template");return s.innerHTML=t,s}}function V(t,e,s=t,i){var n,o,r,l;if(e===k)return e;let h=void 0!==i?null===(n=s._$Cl)||void 0===n?void 0:n[i]:s._$Cu;const a=C(e)?void 0:e._$litDirective$;return(null==h?void 0:h.constructor)!==a&&(null===(o=null==h?void 0:h._$AO)||void 0===o||o.call(h,!1),void 0===a?h=void 0:(h=new a(t),h._$AT(t,s,i)),void 0!==i?(null!==(r=(l=s)._$Cl)&&void 0!==r?r:l._$Cl=[])[i]=h:s._$Cu=h),void 0!==h&&(e=V(t,h._$AS(t,e.values),h,i)),e}class W{constructor(t,e){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var e;const{el:{content:s},parts:i}=this._$AD,n=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:S).importNode(s,!0);D.currentNode=n;let o=D.nextNode(),r=0,l=0,h=i[0];for(;void 0!==h;){if(r===h.index){let e;2===h.type?e=new q(o,o.nextSibling,this,t):1===h.type?e=new h.ctor(o,h.name,h.strings,this,t):6===h.type&&(e=new Q(o,this,t)),this.v.push(e),h=i[++l]}r!==(null==h?void 0:h.index)&&(o=D.nextNode(),r++)}return n}m(t){let e=0;for(const s of this.v)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}}class q{constructor(t,e,s,i){var n;this.type=2,this._$AH=L,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=i,this._$C_=null===(n=null==i?void 0:i.isConnected)||void 0===n||n}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$C_}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=V(this,t,e),C(t)?t===L||null==t||""===t?(this._$AH!==L&&this._$AR(),this._$AH=L):t!==this._$AH&&t!==k&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.k(t):P(t)?this.O(t):this.$(t)}S(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.S(t))}$(t){this._$AH!==L&&C(this._$AH)?this._$AA.nextSibling.data=t:this.k(S.createTextNode(t)),this._$AH=t}T(t){var e;const{values:s,_$litType$:i}=t,n="number"==typeof i?this._$AC(t):(void 0===i.el&&(i.el=j.createElement(i.h,this.options)),i);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===n)this._$AH.m(s);else{const t=new W(n,this),e=t.p(this.options);t.m(s),this.k(e),this._$AH=t}}_$AC(t){let e=B.get(t.strings);return void 0===e&&B.set(t.strings,e=new j(t)),e}O(t){w(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,i=0;for(const n of t)i===e.length?e.push(s=new q(this.S(b()),this.S(b()),this,this.options)):s=e[i],s._$AI(n),i++;i<e.length&&(this._$AR(s&&s._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){var s;for(null===(s=this._$AP)||void 0===s||s.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$C_=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class J{constructor(t,e,s,i,n){this.type=1,this._$AH=L,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=n,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=L}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,s,i){const n=this.strings;let o=!1;if(void 0===n)t=V(this,t,e,0),o=!C(t)||t!==this._$AH&&t!==k,o&&(this._$AH=t);else{const i=t;let r,l;for(t=n[0],r=0;r<n.length-1;r++)l=V(this,i[s+r],e,r),l===k&&(l=this._$AH[r]),o||(o=!C(l)||l!==this._$AH[r]),l===L?t=L:t!==L&&(t+=(null!=l?l:"")+n[r+1]),this._$AH[r]=l}o&&!i&&this.P(t)}P(t){t===L?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class K extends J{constructor(){super(...arguments),this.type=3}P(t){this.element[this.name]=t===L?void 0:t}}const Z=f?f.emptyScript:"";class F extends J{constructor(){super(...arguments),this.type=4}P(t){t&&t!==L?this.element.setAttribute(this.name,Z):this.element.removeAttribute(this.name)}}class G extends J{constructor(t,e,s,i,n){super(t,e,s,i,n),this.type=5}_$AI(t,e=this){var s;if((t=null!==(s=V(this,t,e,0))&&void 0!==s?s:L)===k)return;const i=this._$AH,n=t===L&&i!==L||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,o=t!==L&&(i===L||n);n&&this.element.removeEventListener(this.name,this,i),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,s;"function"==typeof this._$AH?this._$AH.call(null!==(s=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==s?s:this.element,t):this._$AH.handleEvent(t)}}class Q{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){V(this,t)}}const X={A:"$lit$",M:m,C:g,L:1,R:I,D:W,V:P,I:V,H:q,N:J,U:F,B:G,F:K,W:Q},Y=A.litHtmlPolyfillSupport;
18
+ /**
19
+ * @license
20
+ * Copyright 2017 Google LLC
21
+ * SPDX-License-Identifier: BSD-3-Clause
22
+ */
23
+ var tt,et;null==Y||Y(j,q),(null!==(_=A.litHtmlVersions)&&void 0!==_?_:A.litHtmlVersions=[]).push("2.3.0");class st extends v{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const s=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=s.firstChild),s}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=z(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return k}}st.finalized=!0,st._$litElement$=!0,null===(tt=globalThis.litElementHydrateSupport)||void 0===tt||tt.call(globalThis,{LitElement:st});const it=globalThis.litElementPolyfillSupport;null==it||it({LitElement:st}),(null!==(et=globalThis.litElementVersions)&&void 0!==et?et:globalThis.litElementVersions=[]).push("3.2.2");export{z as A,L as b,o as i,st as s,k as x,M as y,X as z};
24
+ //# sourceMappingURL=lit-element-79bc2e0e.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lit-element-79bc2e0e.js","sources":["../node_modules/@lit/reactive-element/css-tag.js","../node_modules/@lit/reactive-element/reactive-element.js","../node_modules/lit-html/lit-html.js","../node_modules/lit-element/lit-element.js"],"sourcesContent":["/**\n * @license\n * Copyright 2019 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nconst t=window,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow)&&\"adoptedStyleSheets\"in Document.prototype&&\"replace\"in CSSStyleSheet.prototype,s=Symbol(),n=new WeakMap;class o{constructor(t,e,n){if(this._$cssResult$=!0,n!==s)throw Error(\"CSSResult is not constructable. Use `unsafeCSS` or `css` instead.\");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const s=this.t;if(e&&void 0===t){const e=void 0!==s&&1===s.length;e&&(t=n.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&n.set(s,t))}return t}toString(){return this.cssText}}const r=t=>new o(\"string\"==typeof t?t:t+\"\",void 0,s),i=(t,...e)=>{const n=1===t.length?t[0]:e.reduce(((e,s,n)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if(\"number\"==typeof t)return t;throw Error(\"Value passed to 'css' function must be a 'css' function result: \"+t+\". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.\")})(s)+t[n+1]),t[0]);return new o(n,t,s)},S=(s,n)=>{e?s.adoptedStyleSheets=n.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):n.forEach((e=>{const n=document.createElement(\"style\"),o=t.litNonce;void 0!==o&&n.setAttribute(\"nonce\",o),n.textContent=e.cssText,s.appendChild(n)}))},c=e?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e=\"\";for(const s of t.cssRules)e+=s.cssText;return r(e)})(t):t;export{o as CSSResult,S as adoptStyles,i as css,c as getCompatibleStyle,e as supportsAdoptingStyleSheets,r as unsafeCSS};\n//# sourceMappingURL=css-tag.js.map\n","import{getCompatibleStyle as t,adoptStyles as i}from\"./css-tag.js\";export{CSSResult,adoptStyles,css,getCompatibleStyle,supportsAdoptingStyleSheets,unsafeCSS}from\"./css-tag.js\";\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */var s;const e=window,r=e.trustedTypes,h=r?r.emptyScript:\"\",o=e.reactiveElementPolyfillSupport,n={toAttribute(t,i){switch(i){case Boolean:t=t?h:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,i){let s=t;switch(i){case Boolean:s=null!==t;break;case Number:s=null===t?null:Number(t);break;case Object:case Array:try{s=JSON.parse(t)}catch(t){s=null}}return s}},a=(t,i)=>i!==t&&(i==i||t==t),l={attribute:!0,type:String,converter:n,reflect:!1,hasChanged:a};class d extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var i;null!==(i=this.h)&&void 0!==i||(this.h=[]),this.h.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((i,s)=>{const e=this._$Ep(s,i);void 0!==e&&(this._$Ev.set(e,s),t.push(e))})),t}static createProperty(t,i=l){if(i.state&&(i.attribute=!1),this.finalize(),this.elementProperties.set(t,i),!i.noAccessor&&!this.prototype.hasOwnProperty(t)){const s=\"symbol\"==typeof t?Symbol():\"__\"+t,e=this.getPropertyDescriptor(t,s,i);void 0!==e&&Object.defineProperty(this.prototype,t,e)}}static getPropertyDescriptor(t,i,s){return{get(){return this[i]},set(e){const r=this[t];this[i]=e,this.requestUpdate(t,r,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||l}static finalize(){if(this.hasOwnProperty(\"finalized\"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty(\"properties\")){const t=this.properties,i=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const s of i)this.createProperty(s,t[s])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(i){const s=[];if(Array.isArray(i)){const e=new Set(i.flat(1/0).reverse());for(const i of e)s.unshift(t(i))}else void 0!==i&&s.push(t(i));return s}static _$Ep(t,i){const s=i.attribute;return!1===s?void 0:\"string\"==typeof s?s:\"string\"==typeof t?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var i,s;(null!==(i=this._$ES)&&void 0!==i?i:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(s=t.hostConnected)||void 0===s||s.call(t))}removeController(t){var i;null===(i=this._$ES)||void 0===i||i.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,i)=>{this.hasOwnProperty(i)&&(this._$Ei.set(i,this[i]),delete this[i])}))}createRenderRoot(){var t;const s=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return i(s,this.constructor.elementStyles),s}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostConnected)||void 0===i?void 0:i.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostDisconnected)||void 0===i?void 0:i.call(t)}))}attributeChangedCallback(t,i,s){this._$AK(t,s)}_$EO(t,i,s=l){var e;const r=this.constructor._$Ep(t,s);if(void 0!==r&&!0===s.reflect){const h=(void 0!==(null===(e=s.converter)||void 0===e?void 0:e.toAttribute)?s.converter:n).toAttribute(i,s.type);this._$El=t,null==h?this.removeAttribute(r):this.setAttribute(r,h),this._$El=null}}_$AK(t,i){var s;const e=this.constructor,r=e._$Ev.get(t);if(void 0!==r&&this._$El!==r){const t=e.getPropertyOptions(r),h=\"function\"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(s=t.converter)||void 0===s?void 0:s.fromAttribute)?t.converter:n;this._$El=r,this[r]=h.fromAttribute(i,t.type),this._$El=null}}requestUpdate(t,i,s){let e=!0;void 0!==t&&(((s=s||this.constructor.getPropertyOptions(t)).hasChanged||a)(this[t],i)?(this._$AL.has(t)||this._$AL.set(t,i),!0===s.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,s))):e=!1),!this.isUpdatePending&&e&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,i)=>this[i]=t)),this._$Ei=void 0);let i=!1;const s=this._$AL;try{i=this.shouldUpdate(s),i?(this.willUpdate(s),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostUpdate)||void 0===i?void 0:i.call(t)})),this.update(s)):this._$Ek()}catch(t){throw i=!1,this._$Ek(),t}i&&this._$AE(s)}willUpdate(t){}_$AE(t){var i;null===(i=this._$ES)||void 0===i||i.forEach((t=>{var i;return null===(i=t.hostUpdated)||void 0===i?void 0:i.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,i)=>this._$EO(i,this[i],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}d.finalized=!0,d.elementProperties=new Map,d.elementStyles=[],d.shadowRootOptions={mode:\"open\"},null==o||o({ReactiveElement:d}),(null!==(s=e.reactiveElementVersions)&&void 0!==s?s:e.reactiveElementVersions=[]).push(\"1.4.0\");export{d as ReactiveElement,n as defaultConverter,a as notEqual};\n//# sourceMappingURL=reactive-element.js.map\n","/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nvar t;const i=window,s=i.trustedTypes,e=s?s.createPolicy(\"lit-html\",{createHTML:t=>t}):void 0,o=`lit$${(Math.random()+\"\").slice(9)}$`,n=\"?\"+o,l=`<${n}>`,h=document,r=(t=\"\")=>h.createComment(t),d=t=>null===t||\"object\"!=typeof t&&\"function\"!=typeof t,u=Array.isArray,c=t=>u(t)||\"function\"==typeof(null==t?void 0:t[Symbol.iterator]),v=/<(?:(!--|\\/[^a-zA-Z])|(\\/?[a-zA-Z][^>\\s]*)|(\\/?$))/g,a=/-->/g,f=/>/g,_=RegExp(\">|[ \\t\\n\\f\\r](?:([^\\\\s\\\"'>=/]+)([ \\t\\n\\f\\r]*=[ \\t\\n\\f\\r]*(?:[^ \\t\\n\\f\\r\\\"'`<>=]|(\\\"|')|))|$)\",\"g\"),m=/'/g,p=/\"/g,$=/^(?:script|style|textarea|title)$/i,g=t=>(i,...s)=>({_$litType$:t,strings:i,values:s}),y=g(1),w=g(2),x=Symbol.for(\"lit-noChange\"),b=Symbol.for(\"lit-nothing\"),T=new WeakMap,A=(t,i,s)=>{var e,o;const n=null!==(e=null==s?void 0:s.renderBefore)&&void 0!==e?e:i;let l=n._$litPart$;if(void 0===l){const t=null!==(o=null==s?void 0:s.renderBefore)&&void 0!==o?o:null;n._$litPart$=l=new S(i.insertBefore(r(),t),t,void 0,null!=s?s:{})}return l._$AI(t),l},E=h.createTreeWalker(h,129,null,!1),C=(t,i)=>{const s=t.length-1,n=[];let h,r=2===i?\"<svg>\":\"\",d=v;for(let i=0;i<s;i++){const s=t[i];let e,u,c=-1,g=0;for(;g<s.length&&(d.lastIndex=g,u=d.exec(s),null!==u);)g=d.lastIndex,d===v?\"!--\"===u[1]?d=a:void 0!==u[1]?d=f:void 0!==u[2]?($.test(u[2])&&(h=RegExp(\"</\"+u[2],\"g\")),d=_):void 0!==u[3]&&(d=_):d===_?\">\"===u[0]?(d=null!=h?h:v,c=-1):void 0===u[1]?c=-2:(c=d.lastIndex-u[2].length,e=u[1],d=void 0===u[3]?_:'\"'===u[3]?p:m):d===p||d===m?d=_:d===a||d===f?d=v:(d=_,h=void 0);const y=d===_&&t[i+1].startsWith(\"/>\")?\" \":\"\";r+=d===v?s+l:c>=0?(n.push(e),s.slice(0,c)+\"$lit$\"+s.slice(c)+o+y):s+o+(-2===c?(n.push(void 0),i):y)}const u=r+(t[s]||\"<?>\")+(2===i?\"</svg>\":\"\");if(!Array.isArray(t)||!t.hasOwnProperty(\"raw\"))throw Error(\"invalid template strings array\");return[void 0!==e?e.createHTML(u):u,n]};class P{constructor({strings:t,_$litType$:i},e){let l;this.parts=[];let h=0,d=0;const u=t.length-1,c=this.parts,[v,a]=C(t,i);if(this.el=P.createElement(v,e),E.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(l=E.nextNode())&&c.length<u;){if(1===l.nodeType){if(l.hasAttributes()){const t=[];for(const i of l.getAttributeNames())if(i.endsWith(\"$lit$\")||i.startsWith(o)){const s=a[d++];if(t.push(i),void 0!==s){const t=l.getAttribute(s.toLowerCase()+\"$lit$\").split(o),i=/([.?@])?(.*)/.exec(s);c.push({type:1,index:h,name:i[2],strings:t,ctor:\".\"===i[1]?R:\"?\"===i[1]?H:\"@\"===i[1]?I:M})}else c.push({type:6,index:h})}for(const i of t)l.removeAttribute(i)}if($.test(l.tagName)){const t=l.textContent.split(o),i=t.length-1;if(i>0){l.textContent=s?s.emptyScript:\"\";for(let s=0;s<i;s++)l.append(t[s],r()),E.nextNode(),c.push({type:2,index:++h});l.append(t[i],r())}}}else if(8===l.nodeType)if(l.data===n)c.push({type:2,index:h});else{let t=-1;for(;-1!==(t=l.data.indexOf(o,t+1));)c.push({type:7,index:h}),t+=o.length-1}h++}}static createElement(t,i){const s=h.createElement(\"template\");return s.innerHTML=t,s}}function V(t,i,s=t,e){var o,n,l,h;if(i===x)return i;let r=void 0!==e?null===(o=s._$Cl)||void 0===o?void 0:o[e]:s._$Cu;const u=d(i)?void 0:i._$litDirective$;return(null==r?void 0:r.constructor)!==u&&(null===(n=null==r?void 0:r._$AO)||void 0===n||n.call(r,!1),void 0===u?r=void 0:(r=new u(t),r._$AT(t,s,e)),void 0!==e?(null!==(l=(h=s)._$Cl)&&void 0!==l?l:h._$Cl=[])[e]=r:s._$Cu=r),void 0!==r&&(i=V(t,r._$AS(t,i.values),r,e)),i}class N{constructor(t,i){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var i;const{el:{content:s},parts:e}=this._$AD,o=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:h).importNode(s,!0);E.currentNode=o;let n=E.nextNode(),l=0,r=0,d=e[0];for(;void 0!==d;){if(l===d.index){let i;2===d.type?i=new S(n,n.nextSibling,this,t):1===d.type?i=new d.ctor(n,d.name,d.strings,this,t):6===d.type&&(i=new L(n,this,t)),this.v.push(i),d=e[++r]}l!==(null==d?void 0:d.index)&&(n=E.nextNode(),l++)}return o}m(t){let i=0;for(const s of this.v)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++}}class S{constructor(t,i,s,e){var o;this.type=2,this._$AH=b,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=s,this.options=e,this._$C_=null===(o=null==e?void 0:e.isConnected)||void 0===o||o}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$C_}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=V(this,t,i),d(t)?t===b||null==t||\"\"===t?(this._$AH!==b&&this._$AR(),this._$AH=b):t!==this._$AH&&t!==x&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.k(t):c(t)?this.O(t):this.$(t)}S(t,i=this._$AB){return this._$AA.parentNode.insertBefore(t,i)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.S(t))}$(t){this._$AH!==b&&d(this._$AH)?this._$AA.nextSibling.data=t:this.k(h.createTextNode(t)),this._$AH=t}T(t){var i;const{values:s,_$litType$:e}=t,o=\"number\"==typeof e?this._$AC(t):(void 0===e.el&&(e.el=P.createElement(e.h,this.options)),e);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===o)this._$AH.m(s);else{const t=new N(o,this),i=t.p(this.options);t.m(s),this.k(i),this._$AH=t}}_$AC(t){let i=T.get(t.strings);return void 0===i&&T.set(t.strings,i=new P(t)),i}O(t){u(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let s,e=0;for(const o of t)e===i.length?i.push(s=new S(this.S(r()),this.S(r()),this,this.options)):s=i[e],s._$AI(o),e++;e<i.length&&(this._$AR(s&&s._$AB.nextSibling,e),i.length=e)}_$AR(t=this._$AA.nextSibling,i){var s;for(null===(s=this._$AP)||void 0===s||s.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$C_=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class M{constructor(t,i,s,e,o){this.type=1,this._$AH=b,this._$AN=void 0,this.element=t,this.name=i,this._$AM=e,this.options=o,s.length>2||\"\"!==s[0]||\"\"!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=b}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,s,e){const o=this.strings;let n=!1;if(void 0===o)t=V(this,t,i,0),n=!d(t)||t!==this._$AH&&t!==x,n&&(this._$AH=t);else{const e=t;let l,h;for(t=o[0],l=0;l<o.length-1;l++)h=V(this,e[s+l],i,l),h===x&&(h=this._$AH[l]),n||(n=!d(h)||h!==this._$AH[l]),h===b?t=b:t!==b&&(t+=(null!=h?h:\"\")+o[l+1]),this._$AH[l]=h}n&&!e&&this.P(t)}P(t){t===b?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:\"\")}}class R extends M{constructor(){super(...arguments),this.type=3}P(t){this.element[this.name]=t===b?void 0:t}}const k=s?s.emptyScript:\"\";class H extends M{constructor(){super(...arguments),this.type=4}P(t){t&&t!==b?this.element.setAttribute(this.name,k):this.element.removeAttribute(this.name)}}class I extends M{constructor(t,i,s,e,o){super(t,i,s,e,o),this.type=5}_$AI(t,i=this){var s;if((t=null!==(s=V(this,t,i,0))&&void 0!==s?s:b)===x)return;const e=this._$AH,o=t===b&&e!==b||t.capture!==e.capture||t.once!==e.once||t.passive!==e.passive,n=t!==b&&(e===b||o);o&&this.element.removeEventListener(this.name,this,e),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,s;\"function\"==typeof this._$AH?this._$AH.call(null!==(s=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==s?s:this.element,t):this._$AH.handleEvent(t)}}class L{constructor(t,i,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){V(this,t)}}const z={A:\"$lit$\",M:o,C:n,L:1,R:C,D:N,V:c,I:V,H:S,N:M,U:H,B:I,F:R,W:L},Z=i.litHtmlPolyfillSupport;null==Z||Z(P,S),(null!==(t=i.litHtmlVersions)&&void 0!==t?t:i.litHtmlVersions=[]).push(\"2.3.0\");export{z as _$LH,y as html,x as noChange,b as nothing,A as render,w as svg};\n//# sourceMappingURL=lit-html.js.map\n","import{ReactiveElement as t}from\"@lit/reactive-element\";export*from\"@lit/reactive-element\";import{render as e,noChange as i}from\"lit-html\";export*from\"lit-html\";\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */var l,o;const r=t;class s extends t{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=e(i,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return i}}s.finalized=!0,s._$litElement$=!0,null===(l=globalThis.litElementHydrateSupport)||void 0===l||l.call(globalThis,{LitElement:s});const n=globalThis.litElementPolyfillSupport;null==n||n({LitElement:s});const h={_$AK:(t,e,i)=>{t._$AK(e,i)},_$AL:t=>t._$AL};(null!==(o=globalThis.litElementVersions)&&void 0!==o?o:globalThis.litElementVersions=[]).push(\"3.2.2\");export{s as LitElement,r as UpdatingElement,h as _$LE};\n//# sourceMappingURL=lit-element.js.map\n"],"names":["t","window","e","ShadowRoot","ShadyCSS","nativeShadow","Document","prototype","CSSStyleSheet","s","Symbol","n","WeakMap","o","constructor","this","_$cssResult$","Error","cssText","styleSheet","length","get","replaceSync","set","toString","i","reduce","c","cssRules","r","trustedTypes","h","emptyScript","reactiveElementPolyfillSupport","toAttribute","Boolean","Object","Array","JSON","stringify","fromAttribute","Number","parse","a","l","attribute","type","String","converter","reflect","hasChanged","d","HTMLElement","super","_$Ei","Map","isUpdatePending","hasUpdated","_$El","u","static","push","observedAttributes","finalize","elementProperties","forEach","_$Ep","_$Ev","state","noAccessor","hasOwnProperty","getPropertyDescriptor","defineProperty","requestUpdate","configurable","enumerable","finalized","getPrototypeOf","properties","getOwnPropertyNames","getOwnPropertySymbols","createProperty","elementStyles","finalizeStyles","styles","isArray","Set","flat","reverse","unshift","toLowerCase","_$E_","Promise","enableUpdating","_$AL","_$Eg","addController","_$ES","renderRoot","isConnected","hostConnected","call","removeController","splice","indexOf","createRenderRoot","shadowRoot","attachShadow","shadowRootOptions","adoptedStyleSheets","map","document","createElement","litNonce","setAttribute","textContent","appendChild","connectedCallback","disconnectedCallback","hostDisconnected","attributeChangedCallback","_$AK","_$EO","removeAttribute","getPropertyOptions","has","_$EC","_$Ej","async","reject","scheduleUpdate","performUpdate","shouldUpdate","willUpdate","hostUpdate","update","_$Ek","_$AE","hostUpdated","firstUpdated","updated","updateComplete","getUpdateComplete","mode","ReactiveElement","reactiveElementVersions","createPolicy","createHTML","Math","random","slice","createComment","iterator","v","f","_","RegExp","m","p","$","y","_$litType$","strings","values","g","x","for","b","T","A","renderBefore","_$litPart$","S","insertBefore","_$AI","E","createTreeWalker","C","lastIndex","exec","test","startsWith","P","parts","el","currentNode","content","firstChild","remove","append","childNodes","nextNode","nodeType","hasAttributes","getAttributeNames","endsWith","getAttribute","split","index","name","ctor","R","H","I","M","tagName","data","innerHTML","V","_$Cl","_$Cu","_$litDirective$","_$AO","_$AT","_$AS","N","_$AN","_$AD","_$AM","parentNode","_$AU","creationScope","importNode","nextSibling","L","_$AH","_$AA","_$AB","options","_$C_","startNode","endNode","_$AR","k","O","createTextNode","_$AC","_$AP","setConnected","element","fill","arguments","capture","once","passive","removeEventListener","addEventListener","handleEvent","host","z","D","U","B","F","W","Z","litHtmlPolyfillSupport","litHtmlVersions","renderOptions","_$Do","render","_$litElement$","globalThis","litElementHydrateSupport","LitElement","litElementPolyfillSupport","litElementVersions"],"mappings":";;;;;AAKA,MAAMA,EAAEC,OAAOC,EAAEF,EAAEG,kBAAa,IAASH,EAAEI,UAAUJ,EAAEI,SAASC,eAAe,uBAAuBC,SAASC,WAAW,YAAYC,cAAcD,UAAUE,EAAEC,SAASC,EAAE,IAAIC,QAAQ,MAAMC,EAAEC,YAAYd,EAAEE,EAAES,GAAG,GAAGI,KAAKC,cAAa,EAAGL,IAAIF,EAAE,MAAMQ,MAAM,qEAAqEF,KAAKG,QAAQlB,EAAEe,KAAKf,EAAEE,CAAC,CAAKiB,iBAAa,IAAInB,EAAEe,KAAKF,EAAE,MAAMJ,EAAEM,KAAKf,EAAE,GAAGE,QAAG,IAASF,EAAE,CAAC,MAAME,OAAE,IAASO,GAAG,IAAIA,EAAEW,OAAOlB,IAAIF,EAAEW,EAAEU,IAAIZ,SAAI,IAAST,KAAKe,KAAKF,EAAEb,EAAE,IAAIQ,eAAec,YAAYP,KAAKG,SAAShB,GAAGS,EAAEY,IAAId,EAAET,GAAG,CAAC,OAAOA,CAAC,CAACwB,WAAW,OAAOT,KAAKG,OAAO,EAAO,MAAgDO,EAAE,CAACzB,KAAKE,KAAK,MAAMS,EAAE,IAAIX,EAAEoB,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,EAAEE,EAAE,MAAMuB,EAAE4B,MAAMoD,mBAAmB,OAAO,QAAQzG,GAAGE,EAAEa,KAAKmP,eAAexF,oBAAe,IAAS1K,IAAIE,EAAEwK,aAAajJ,EAAEkK,YAAYlK,CAAC,CAAC8G,OAAOvI,GAAG,MAAMyB,EAAEV,KAAKqP,SAASrP,KAAK0C,aAAa1C,KAAKmP,cAAc/J,YAAYpF,KAAKoF,aAAa9C,MAAMkF,OAAOvI,GAAGe,KAAKoP,KAAKjQ,EAAEuB,EAAEV,KAAKmF,WAAWnF,KAAKmP,cAAc,CAAC7I,oBAAoB,IAAIrH,EAAEqD,MAAMgE,oBAAoB,QAAQrH,EAAEe,KAAKoP,YAAO,IAASnQ,GAAGA,EAAE8O,cAAa,EAAG,CAACxH,uBAAuB,IAAItH,EAAEqD,MAAMiE,uBAAuB,QAAQtH,EAAEe,KAAKoP,YAAO,IAASnQ,GAAGA,EAAE8O,cAAa,EAAG,CAACsB,SAAS,OAAO3O,CAAC,EAAEhB,GAAEmE,WAAU,EAAGnE,GAAE4P,eAAc,EAAG,QAAQzN,GAAE0N,WAAWC,gCAA2B,IAAS3N,IAAGA,GAAEyD,KAAKiK,WAAW,CAACE,WAAW/P,KAAI,MAAME,GAAE2P,WAAWG,0BAA0B,MAAM9P,IAAGA,GAAE,CAAC6P,WAAW/P,MAA0D,QAAQI,GAAEyP,WAAWI,0BAAqB,IAAS7P,GAAEA,GAAEyP,WAAWI,mBAAmB,IAAI7M,KAAK"}
package/lib/month-view.js CHANGED
@@ -1,2 +1,2 @@
1
- import{$ as a}from"./lit-element-67e6cd99.js";import{o as e}from"./class-map-f1b6f1fa.js";import{m as t,c as d}from"./collection-800f5002.js";import{n as o,b as s,o as n,i as r}from"./dates-a8de5b83.js";import{c as i}from"./cond-97c45476.js";import"./directive-de55b00a.js";const l=({focusedDay:t,today:d,day:n,onDaySelect:r,onKeyboardNavigation:l,disabled:c,inRange:b,isSelected:m,dateFormatter:u})=>{const y=o(n,d),f=s(n,t),$=o(n,t),p=!b;return a`<button class="${e({"n-calendar-day":!0,"is-outside":p,"is-month":f,"is-disabled":c})}" tabindex="${$?0:-1}" @click="${()=>r(n)}" @keydown="${l}" aria-disabled="${i(c,"true")}" ?disabled="${p}" type="button" aria-pressed="${m?"true":"false"}" aria-current="${i(y,"date")}" aria-label="${u.format(n)}"><span aria-hidden="true">${n.getDate()}</span></button>`};function c({onFocusIn:e,onFocusOut:s,selectedDate:i,focusedDate:c,labelledById:b,dayNames:m,dayNamesShort:u,firstDayOfWeek:y,min:f,max:$,dateFormatter:p,isDateDisabled:D,onDateSelect:h,onKeyboardNavigation:g}){const j=new Date,v=n(c,y);return a`<table class="n-calendar-table" aria-labelledby="${b}" @focusin="${e}" @focusout="${function(a){const e=a.currentTarget,t=a.relatedTarget;t&&!e.contains(t)&&s(a)}}"><thead><tr>${t(m,y,((e,t)=>a`<th class="n-calendar-table-header" scope="col"><span aria-hidden="true">${u[t]}</span><nord-visually-hidden>${e}</nord-visually-hidden></th>`))}</tr></thead><tbody>${d(v,7).map((e=>a`<tr class="n-calendar-row">${e.map((e=>a`<td class="n-calendar-cell">${l({day:e,today:j,focusedDay:c,isSelected:o(e,i),disabled:D(e),inRange:r(e,f,$),onDaySelect:h,dateFormatter:p,onKeyboardNavigation:g})}</td>`))}</tr>`))}</tbody></table>`}export{l as dayView,c as monthView};
1
+ import{y as a}from"./lit-element-79bc2e0e.js";import{o as e}from"./class-map-cd6c8cbd.js";import{m as t,c as d}from"./collection-800f5002.js";import{n as o,b as s,o as n,i as r}from"./dates-a8de5b83.js";import{c as i}from"./cond-0a8d4554.js";import"./directive-de55b00a.js";const l=({focusedDay:t,today:d,day:n,onDaySelect:r,onKeyboardNavigation:l,disabled:c,inRange:b,isSelected:m,dateFormatter:u})=>{const y=o(n,d),$=s(n,t),f=o(n,t),p=!b;return a`<button class="${e({"n-calendar-day":!0,"is-outside":p,"is-month":$,"is-disabled":c})}" tabindex="${f?0:-1}" @click="${()=>r(n)}" @keydown="${l}" aria-disabled="${i(c,"true")}" ?disabled="${p}" type="button" aria-pressed="${m?"true":"false"}" aria-current="${i(y,"date")}" aria-label="${u.format(n)}"><span aria-hidden="true">${n.getDate()}</span></button>`};function c({onFocusIn:e,onFocusOut:s,selectedDate:i,focusedDate:c,labelledById:b,dayNames:m,dayNamesShort:u,firstDayOfWeek:y,min:$,max:f,dateFormatter:p,isDateDisabled:D,onDateSelect:h,onKeyboardNavigation:g}){const j=new Date,v=n(c,y);return a`<table class="n-calendar-table" aria-labelledby="${b}" @focusin="${e}" @focusout="${function(a){const e=a.currentTarget,t=a.relatedTarget;t&&!e.contains(t)&&s(a)}}"><thead><tr>${t(m,y,((e,t)=>a`<th class="n-calendar-table-header" scope="col"><span aria-hidden="true">${u[t]}</span><nord-visually-hidden>${e}</nord-visually-hidden></th>`))}</tr></thead><tbody>${d(v,7).map((e=>a`<tr class="n-calendar-row">${e.map((e=>a`<td class="n-calendar-cell">${l({day:e,today:j,focusedDay:c,isSelected:o(e,i),disabled:D(e),inRange:r(e,$,f),onDaySelect:h,dateFormatter:p,onKeyboardNavigation:g})}</td>`))}</tr>`))}</tbody></table>`}export{l as dayView,c as monthView};
2
2
  //# sourceMappingURL=month-view.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"month-view.js","sources":["../src/calendar/month-view.ts"],"sourcesContent":["import { html } from \"lit\"\nimport { classMap } from \"lit/directives/class-map.js\"\nimport { chunk, mapWithOffset } from \"../common/collection.js\"\nimport { DaysOfWeek, getViewOfMonth, inRange as dateInRange, isEqual, isEqualMonth } from \"../common/dates.js\"\nimport { cond } from \"../common/directives/cond.js\"\nimport { DateDisabledPredicate } from \"./Calendar.js\"\n\nexport type DatePickerDayProps = {\n focusedDay: Date\n today: Date\n day: Date\n disabled: boolean\n inRange: boolean\n isSelected: boolean\n dateFormatter: Intl.DateTimeFormat\n onDaySelect: (day: Date) => void\n onKeyboardNavigation: (event: KeyboardEvent) => void\n}\n\nexport const dayView = ({\n focusedDay,\n today,\n day,\n onDaySelect,\n onKeyboardNavigation,\n disabled,\n inRange,\n isSelected,\n dateFormatter,\n}: DatePickerDayProps) => {\n const isToday = isEqual(day, today)\n const isMonth = isEqualMonth(day, focusedDay)\n const isFocused = isEqual(day, focusedDay)\n const isOutsideRange = !inRange\n\n return html`\n <button\n class=${classMap({\n \"n-calendar-day\": true,\n \"is-outside\": isOutsideRange,\n \"is-month\": isMonth,\n \"is-disabled\": disabled,\n })}\n tabindex=${isFocused ? 0 : -1}\n @click=${() => onDaySelect(day)}\n @keydown=${onKeyboardNavigation}\n aria-disabled=${cond(disabled, \"true\")}\n ?disabled=${isOutsideRange}\n type=\"button\"\n aria-pressed=${isSelected ? \"true\" : \"false\"}\n aria-current=${cond(isToday, \"date\")}\n aria-label=${dateFormatter.format(day)}\n >\n <span aria-hidden=\"true\">${day.getDate()}</span>\n </button>\n `\n}\n\ntype MonthViewArgs = {\n selectedDate: Date | undefined\n focusedDate: Date\n labelledById: string\n dayNames: string[]\n dayNamesShort: string[]\n firstDayOfWeek: DaysOfWeek\n min?: Date\n max?: Date\n dateFormatter: Intl.DateTimeFormat\n isDateDisabled: DateDisabledPredicate\n onDateSelect: DatePickerDayProps[\"onDaySelect\"]\n onFocusIn: EventListener\n onFocusOut: EventListener\n onKeyboardNavigation: DatePickerDayProps[\"onKeyboardNavigation\"]\n}\n\nexport function monthView({\n onFocusIn,\n onFocusOut,\n selectedDate,\n focusedDate,\n labelledById,\n dayNames,\n dayNamesShort,\n firstDayOfWeek,\n min,\n max,\n dateFormatter,\n isDateDisabled,\n onDateSelect,\n onKeyboardNavigation,\n}: MonthViewArgs) {\n const today = new Date()\n const days = getViewOfMonth(focusedDate, firstDayOfWeek)\n\n function handleFocusOut(e: FocusEvent) {\n const table = e.currentTarget as Node\n const relatedTarget = e.relatedTarget as Node\n\n if (relatedTarget && !table.contains(relatedTarget)) {\n onFocusOut(e)\n }\n }\n\n return html`\n <table class=\"n-calendar-table\" aria-labelledby=${labelledById} @focusin=${onFocusIn} @focusout=${handleFocusOut}>\n <thead>\n <tr>\n ${mapWithOffset(\n dayNames,\n firstDayOfWeek,\n (dayName, i) =>\n html`\n <th class=\"n-calendar-table-header\" scope=\"col\">\n <span aria-hidden=\"true\">${dayNamesShort[i]}</span>\n <nord-visually-hidden>${dayName}</nord-visually-hidden>\n </th>\n `\n )}\n </tr>\n </thead>\n <tbody>\n ${chunk(days, 7).map(\n week =>\n html`<tr class=\"n-calendar-row\">\n ${week.map(\n day =>\n html`<td class=\"n-calendar-cell\">\n ${dayView({\n day,\n today,\n focusedDay: focusedDate,\n isSelected: isEqual(day, selectedDate),\n disabled: isDateDisabled(day),\n inRange: dateInRange(day, min, max),\n onDaySelect: onDateSelect,\n dateFormatter,\n onKeyboardNavigation,\n })}\n </td>`\n )}\n </tr>`\n )}\n </tbody>\n </table>\n `\n}\n"],"names":["dayView","focusedDay","today","day","onDaySelect","onKeyboardNavigation","disabled","inRange","isSelected","dateFormatter","isToday","isEqual","isMonth","isEqualMonth","isFocused","isOutsideRange","html","classMap","cond","format","getDate","monthView","onFocusIn","onFocusOut","selectedDate","focusedDate","labelledById","dayNames","dayNamesShort","firstDayOfWeek","min","max","isDateDisabled","onDateSelect","Date","days","getViewOfMonth","e","table","currentTarget","relatedTarget","contains","mapWithOffset","dayName","i","chunk","map","week","dateInRange"],"mappings":"kRAmBa,MAAAA,EAAU,EACrBC,aACAC,QACAC,MACAC,cACAC,uBACAC,WACAC,UACAC,aACAC,oBAEA,MAAMC,EAAUC,EAAQR,EAAKD,GACvBU,EAAUC,EAAaV,EAAKF,GAC5Ba,EAAYH,EAAQR,EAAKF,GACzBc,GAAkBR,EAExB,OAAOS,CAAI,kBAECC,EAAS,CACf,kBAAkB,EAClB,aAAcF,EACd,WAAYH,EACZ,cAAeN,kBAENQ,EAAY,GAAK,cACnB,IAAMV,EAAYD,iBAChBE,qBACKa,EAAKZ,EAAU,uBACnBS,kCAEGP,EAAa,OAAS,0BACtBU,EAAKR,EAAS,wBAChBD,EAAcU,OAAOhB,gCAEPA,EAAIiB,6BAsBrB,SAAAC,GAAUC,UACxBA,EAASC,WACTA,EAAUC,aACVA,EAAYC,YACZA,EAAWC,aACXA,EAAYC,SACZA,EAAQC,cACRA,EAAaC,eACbA,EAAcC,IACdA,EAAGC,IACHA,EAAGtB,cACHA,EAAauB,eACbA,EAAcC,aACdA,EAAY5B,qBACZA,IAEA,MAAMH,EAAQ,IAAIgC,KACZC,EAAOC,EAAeX,EAAaI,GAWzC,OAAOb,CAAI,oDACyCU,gBAAyBJ,iBAV7E,SAAwBe,GACtB,MAAMC,EAAQD,EAAEE,cACVC,EAAgBH,EAAEG,cAEpBA,IAAkBF,EAAMG,SAASD,IACnCjB,EAAWc,mBAQLK,EACAf,EACAE,GACA,CAACc,EAASC,IACR5B,CAAI,4EAE2BY,EAAcgB,kCACjBD,wDAOhCE,EAAMV,EAAM,GAAGW,KACfC,GACE/B,CAAI,8BACA+B,EAAKD,KACL3C,GACEa,CAAI,+BACAhB,EAAQ,CACRG,MACAD,QACAD,WAAYwB,EACZjB,WAAYG,EAAQR,EAAKqB,GACzBlB,SAAU0B,EAAe7B,GACzBI,QAASyC,EAAY7C,EAAK2B,EAAKC,GAC/B3B,YAAa6B,EACbxB,gBACAJ"}
1
+ {"version":3,"file":"month-view.js","sources":["../src/calendar/month-view.ts"],"sourcesContent":["import { html } from \"lit\"\nimport { classMap } from \"lit/directives/class-map.js\"\nimport { chunk, mapWithOffset } from \"../common/collection.js\"\nimport { DaysOfWeek, getViewOfMonth, inRange as dateInRange, isEqual, isEqualMonth } from \"../common/dates.js\"\nimport { cond } from \"../common/directives/cond.js\"\nimport { DateDisabledPredicate } from \"./Calendar.js\"\n\nexport type DatePickerDayProps = {\n focusedDay: Date\n today: Date\n day: Date\n disabled: boolean\n inRange: boolean\n isSelected: boolean\n dateFormatter: Intl.DateTimeFormat\n onDaySelect: (day: Date) => void\n onKeyboardNavigation: (event: KeyboardEvent) => void\n}\n\nexport const dayView = ({\n focusedDay,\n today,\n day,\n onDaySelect,\n onKeyboardNavigation,\n disabled,\n inRange,\n isSelected,\n dateFormatter,\n}: DatePickerDayProps) => {\n const isToday = isEqual(day, today)\n const isMonth = isEqualMonth(day, focusedDay)\n const isFocused = isEqual(day, focusedDay)\n const isOutsideRange = !inRange\n\n return html`\n <button\n class=${classMap({\n \"n-calendar-day\": true,\n \"is-outside\": isOutsideRange,\n \"is-month\": isMonth,\n \"is-disabled\": disabled,\n })}\n tabindex=${isFocused ? 0 : -1}\n @click=${() => onDaySelect(day)}\n @keydown=${onKeyboardNavigation}\n aria-disabled=${cond(disabled, \"true\")}\n ?disabled=${isOutsideRange}\n type=\"button\"\n aria-pressed=${isSelected ? \"true\" : \"false\"}\n aria-current=${cond(isToday, \"date\")}\n aria-label=${dateFormatter.format(day)}\n >\n <span aria-hidden=\"true\">${day.getDate()}</span>\n </button>\n `\n}\n\ntype MonthViewArgs = {\n selectedDate: Date | undefined\n focusedDate: Date\n labelledById: string\n dayNames: string[]\n dayNamesShort: string[]\n firstDayOfWeek: DaysOfWeek\n min?: Date\n max?: Date\n dateFormatter: Intl.DateTimeFormat\n isDateDisabled: DateDisabledPredicate\n onDateSelect: DatePickerDayProps[\"onDaySelect\"]\n onFocusIn: EventListener\n onFocusOut: EventListener\n onKeyboardNavigation: DatePickerDayProps[\"onKeyboardNavigation\"]\n}\n\nexport function monthView({\n onFocusIn,\n onFocusOut,\n selectedDate,\n focusedDate,\n labelledById,\n dayNames,\n dayNamesShort,\n firstDayOfWeek,\n min,\n max,\n dateFormatter,\n isDateDisabled,\n onDateSelect,\n onKeyboardNavigation,\n}: MonthViewArgs) {\n const today = new Date()\n const days = getViewOfMonth(focusedDate, firstDayOfWeek)\n\n function handleFocusOut(e: FocusEvent) {\n const table = e.currentTarget as Node\n const relatedTarget = e.relatedTarget as Node\n\n if (relatedTarget && !table.contains(relatedTarget)) {\n onFocusOut(e)\n }\n }\n\n return html`\n <table class=\"n-calendar-table\" aria-labelledby=${labelledById} @focusin=${onFocusIn} @focusout=${handleFocusOut}>\n <thead>\n <tr>\n ${mapWithOffset(\n dayNames,\n firstDayOfWeek,\n (dayName, i) =>\n html`\n <th class=\"n-calendar-table-header\" scope=\"col\">\n <span aria-hidden=\"true\">${dayNamesShort[i]}</span>\n <nord-visually-hidden>${dayName}</nord-visually-hidden>\n </th>\n `\n )}\n </tr>\n </thead>\n <tbody>\n ${chunk(days, 7).map(\n week =>\n html`<tr class=\"n-calendar-row\">\n ${week.map(\n day =>\n html`<td class=\"n-calendar-cell\">\n ${dayView({\n day,\n today,\n focusedDay: focusedDate,\n isSelected: isEqual(day, selectedDate),\n disabled: isDateDisabled(day),\n inRange: dateInRange(day, min, max),\n onDaySelect: onDateSelect,\n dateFormatter,\n onKeyboardNavigation,\n })}\n </td>`\n )}\n </tr>`\n )}\n </tbody>\n </table>\n `\n}\n"],"names":["dayView","focusedDay","today","day","onDaySelect","onKeyboardNavigation","disabled","inRange","isSelected","dateFormatter","isToday","isEqual","isMonth","isEqualMonth","isFocused","isOutsideRange","html","classMap","cond","format","getDate","monthView","onFocusIn","onFocusOut","selectedDate","focusedDate","labelledById","dayNames","dayNamesShort","firstDayOfWeek","min","max","isDateDisabled","onDateSelect","Date","days","getViewOfMonth","e","table","currentTarget","relatedTarget","contains","mapWithOffset","dayName","i","chunk","map","week","dateInRange"],"mappings":"kRAmBa,MAAAA,EAAU,EACrBC,aACAC,QACAC,MACAC,cACAC,uBACAC,WACAC,UACAC,aACAC,oBAEA,MAAMC,EAAUC,EAAQR,EAAKD,GACvBU,EAAUC,EAAaV,EAAKF,GAC5Ba,EAAYH,EAAQR,EAAKF,GACzBc,GAAkBR,EAExB,OAAOS,CAAI,kBAECC,EAAS,CACf,kBAAkB,EAClB,aAAcF,EACd,WAAYH,EACZ,cAAeN,kBAENQ,EAAY,GAAK,cACnB,IAAMV,EAAYD,iBAChBE,qBACKa,EAAKZ,EAAU,uBACnBS,kCAEGP,EAAa,OAAS,0BACtBU,EAAKR,EAAS,wBAChBD,EAAcU,OAAOhB,gCAEPA,EAAIiB,2BAElC,EAoBa,SAAAC,GAAUC,UACxBA,EAASC,WACTA,EAAUC,aACVA,EAAYC,YACZA,EAAWC,aACXA,EAAYC,SACZA,EAAQC,cACRA,EAAaC,eACbA,EAAcC,IACdA,EAAGC,IACHA,EAAGtB,cACHA,EAAauB,eACbA,EAAcC,aACdA,EAAY5B,qBACZA,IAEA,MAAMH,EAAQ,IAAIgC,KACZC,EAAOC,EAAeX,EAAaI,GAWzC,OAAOb,CAAI,oDACyCU,gBAAyBJ,iBAV7E,SAAwBe,GACtB,MAAMC,EAAQD,EAAEE,cACVC,EAAgBH,EAAEG,cAEpBA,IAAkBF,EAAMG,SAASD,IACnCjB,EAAWc,EAEd,iBAMSK,EACAf,EACAE,GACA,CAACc,EAASC,IACR5B,CAAI,4EAE2BY,EAAcgB,kCACjBD,wDAOhCE,EAAMV,EAAM,GAAGW,KACfC,GACE/B,CAAI,8BACA+B,EAAKD,KACL3C,GACEa,CAAI,+BACAhB,EAAQ,CACRG,MACAD,QACAD,WAAYwB,EACZjB,WAAYG,EAAQR,EAAKqB,GACzBlB,SAAU0B,EAAe7B,GACzBI,QAASyC,EAAY7C,EAAK2B,EAAKC,GAC/B3B,YAAa6B,EACbxB,gBACAJ,4DAStB"}
@@ -1 +1 @@
1
- {"version":3,"file":"number-c3ab3e95.js","sources":["../src/common/number.ts"],"sourcesContent":["/**\n * Wraps a value so that it always falls within min/max,\n * where a value greater than max gets set to min, and vice versa\n */\nexport function wrap(val: number, min: number, max: number) {\n if (val > max) return min\n if (val < min) return max\n return val\n}\n\nexport function range(from: number, to: number) {\n const result: number[] = []\n\n for (let i = from; i <= to; i++) {\n result.push(i)\n }\n\n return result\n}\n\nexport function clamp(value: number, min: number, max: number) {\n return Math.max(min, Math.min(value, max))\n}\n"],"names":["wrap","val","min","max","range","from","to","result","i","push","clamp","value","Math"],"mappings":"SAIgBA,EAAKC,EAAaC,EAAaC,GAC7C,OAAIF,EAAME,EAAYD,EAClBD,EAAMC,EAAYC,EACfF,EAGO,SAAAG,EAAMC,EAAcC,GAClC,MAAMC,EAAmB,GAEzB,IAAK,IAAIC,EAAIH,EAAMG,GAAKF,EAAIE,IAC1BD,EAAOE,KAAKD,GAGd,OAAOD,WAGOG,EAAMC,EAAeT,EAAaC,GAChD,OAAOS,KAAKT,IAAID,EAAKU,KAAKV,IAAIS,EAAOR"}
1
+ {"version":3,"file":"number-c3ab3e95.js","sources":["../src/common/number.ts"],"sourcesContent":["/**\n * Wraps a value so that it always falls within min/max,\n * where a value greater than max gets set to min, and vice versa\n */\nexport function wrap(val: number, min: number, max: number) {\n if (val > max) return min\n if (val < min) return max\n return val\n}\n\nexport function range(from: number, to: number) {\n const result: number[] = []\n\n for (let i = from; i <= to; i++) {\n result.push(i)\n }\n\n return result\n}\n\nexport function clamp(value: number, min: number, max: number) {\n return Math.max(min, Math.min(value, max))\n}\n"],"names":["wrap","val","min","max","range","from","to","result","i","push","clamp","value","Math"],"mappings":"SAIgBA,EAAKC,EAAaC,EAAaC,GAC7C,OAAIF,EAAME,EAAYD,EAClBD,EAAMC,EAAYC,EACfF,CACT,CAEgB,SAAAG,EAAMC,EAAcC,GAClC,MAAMC,EAAmB,GAEzB,IAAK,IAAIC,EAAIH,EAAMG,GAAKF,EAAIE,IAC1BD,EAAOE,KAAKD,GAGd,OAAOD,CACT,UAEgBG,EAAMC,EAAeT,EAAaC,GAChD,OAAOS,KAAKT,IAAID,EAAKU,KAAKV,IAAIS,EAAOR,GACvC"}
@@ -1 +1 @@
1
- {"version":3,"file":"observe-a9c6dfb6.js","sources":["../src/common/decorators/observe.ts"],"sourcesContent":["import { ReactiveController, ReactiveElement } from \"lit\"\n\ntype ObserveFunction = (oldValue: any, newValue: any, name: PropertyKey) => void\ntype ObserveLifecycle = \"update\" | \"updated\"\n\nclass PropertyObserverController<T extends ReactiveElement, TKey extends keyof T> implements ReactiveController {\n private _value?: T[TKey]\n\n constructor(private host: T, private key: TKey, private cb: ObserveFunction, private lifecycle: ObserveLifecycle) {\n host.addController(this)\n }\n\n hostUpdate() {\n if (this.lifecycle === \"update\") {\n this.handle()\n }\n }\n\n hostUpdated() {\n if (this.lifecycle === \"updated\") {\n this.handle()\n }\n }\n\n private handle() {\n const { key, _value, host } = this\n const newValue = host[key]\n\n if (_value !== newValue) {\n this._value = newValue\n this.cb.call(host, _value, newValue, key)\n }\n }\n}\n\nexport function observe(propertyName: string, lifecycle: ObserveLifecycle = \"update\") {\n return function decorator(target: any, methodName: string) {\n const proto = target.constructor as typeof ReactiveElement\n\n proto.addInitializer(el => {\n type Key = keyof typeof el\n const cb = el[methodName as Key] as ObserveFunction\n\n // since we can't get strong typing here, we can add a runtime check\n // this will get stripped out in prod, and should only ever happen in dev anyway\n if (process.env.NODE_ENV === \"development\") {\n if (!(propertyName in el)) {\n throw new TypeError(\n `@observe: property '${propertyName}' does not exist.\\nPossible properties: ${Object.keys(target)\n .map(p => `'${p}'`)\n .join(\", \")}`\n )\n }\n }\n\n el.addController(new PropertyObserverController(el, propertyName as Key, cb, lifecycle))\n })\n }\n}\n"],"names":["PropertyObserverController","constructor","host","key","cb","lifecycle","this","addController","hostUpdate","handle","hostUpdated","_value","newValue","call","observe","propertyName","target","methodName","addInitializer","el"],"mappings":"AAKA,MAAMA,EAGJC,YAAoBC,EAAiBC,EAAmBC,EAA6BC,GAAjEC,KAAIJ,KAAJA,EAAiBI,KAAGH,IAAHA,EAAmBG,KAAEF,GAAFA,EAA6BE,KAASD,UAATA,EACnFH,EAAKK,cAAcD,MAGrBE,aACyB,WAAnBF,KAAKD,WACPC,KAAKG,SAITC,cACyB,YAAnBJ,KAAKD,WACPC,KAAKG,SAIDA,SACN,MAAMN,IAAEA,EAAGQ,OAAEA,EAAMT,KAAEA,GAASI,KACxBM,EAAWV,EAAKC,GAElBQ,IAAWC,IACbN,KAAKK,OAASC,EACdN,KAAKF,GAAGS,KAAKX,EAAMS,EAAQC,EAAUT,cAK3BW,EAAQC,EAAsBV,EAA8B,UAC1E,OAAO,SAAmBW,EAAaC,GACvBD,EAAOf,YAEfiB,gBAAeC,IAEnB,MAAMf,EAAKe,EAAGF,GAcdE,EAAGZ,cAAc,IAAIP,EAA2BmB,EAAIJ,EAAqBX,EAAIC"}
1
+ {"version":3,"file":"observe-a9c6dfb6.js","sources":["../src/common/decorators/observe.ts"],"sourcesContent":["import { ReactiveController, ReactiveElement } from \"lit\"\n\ntype ObserveFunction = (oldValue: any, newValue: any, name: PropertyKey) => void\ntype ObserveLifecycle = \"update\" | \"updated\"\n\nclass PropertyObserverController<T extends ReactiveElement, TKey extends keyof T> implements ReactiveController {\n private _value?: T[TKey]\n\n constructor(private host: T, private key: TKey, private cb: ObserveFunction, private lifecycle: ObserveLifecycle) {\n host.addController(this)\n }\n\n hostUpdate() {\n if (this.lifecycle === \"update\") {\n this.handle()\n }\n }\n\n hostUpdated() {\n if (this.lifecycle === \"updated\") {\n this.handle()\n }\n }\n\n private handle() {\n const { key, _value, host } = this\n const newValue = host[key]\n\n if (_value !== newValue) {\n this._value = newValue\n this.cb.call(host, _value, newValue, key)\n }\n }\n}\n\nexport function observe(propertyName: string, lifecycle: ObserveLifecycle = \"update\") {\n return function decorator(target: any, methodName: string) {\n const proto = target.constructor as typeof ReactiveElement\n\n proto.addInitializer(el => {\n type Key = keyof typeof el\n const cb = el[methodName as Key] as ObserveFunction\n\n // since we can't get strong typing here, we can add a runtime check\n // this will get stripped out in prod, and should only ever happen in dev anyway\n if (process.env.NODE_ENV === \"development\") {\n if (!(propertyName in el)) {\n throw new TypeError(\n `@observe: property '${propertyName}' does not exist.\\nPossible properties: ${Object.keys(target)\n .map(p => `'${p}'`)\n .join(\", \")}`\n )\n }\n }\n\n el.addController(new PropertyObserverController(el, propertyName as Key, cb, lifecycle))\n })\n }\n}\n"],"names":["PropertyObserverController","constructor","host","key","cb","lifecycle","this","addController","hostUpdate","handle","hostUpdated","_value","newValue","call","observe","propertyName","target","methodName","addInitializer","el"],"mappings":"AAKA,MAAMA,EAGJC,YAAoBC,EAAiBC,EAAmBC,EAA6BC,GAAjEC,KAAIJ,KAAJA,EAAiBI,KAAGH,IAAHA,EAAmBG,KAAEF,GAAFA,EAA6BE,KAASD,UAATA,EACnFH,EAAKK,cAAcD,KACpB,CAEDE,aACyB,WAAnBF,KAAKD,WACPC,KAAKG,QAER,CAEDC,cACyB,YAAnBJ,KAAKD,WACPC,KAAKG,QAER,CAEOA,SACN,MAAMN,IAAEA,EAAGQ,OAAEA,EAAMT,KAAEA,GAASI,KACxBM,EAAWV,EAAKC,GAElBQ,IAAWC,IACbN,KAAKK,OAASC,EACdN,KAAKF,GAAGS,KAAKX,EAAMS,EAAQC,EAAUT,GAExC,WAGaW,EAAQC,EAAsBV,EAA8B,UAC1E,OAAO,SAAmBW,EAAaC,GACvBD,EAAOf,YAEfiB,gBAAeC,IAEnB,MAAMf,EAAKe,EAAGF,GAcdE,EAAGZ,cAAc,IAAIP,EAA2BmB,EAAIJ,EAAqBX,EAAIC,GAAW,GAE5F,CACF"}
@@ -0,0 +1,2 @@
1
+ function t(t){return t.split("-")[0]}function e(t){return t.split("-")[1]}function n(e){return["top","bottom"].includes(t(e))?"x":"y"}function o(t){return"y"===t?"height":"width"}function i(i,r,l){let{reference:s,floating:c}=i;const a=s.x+s.width/2-c.width/2,f=s.y+s.height/2-c.height/2,u=n(r),d=o(u),h=s[d]/2-c[d]/2,m="x"===u;let g;switch(t(r)){case"top":g={x:a,y:s.y-c.height};break;case"bottom":g={x:a,y:s.y+s.height};break;case"right":g={x:s.x+s.width,y:f};break;case"left":g={x:s.x-c.width,y:f};break;default:g={x:s.x,y:s.y}}switch(e(r)){case"start":g[u]-=h*(l&&m?-1:1);break;case"end":g[u]+=h*(l&&m?-1:1)}return g}function r(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}async function l(t,e){var n;void 0===e&&(e={});const{x:o,y:i,platform:l,rects:s,elements:c,strategy:a}=t,{boundary:f="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:h=!1,padding:m=0}=e,g=function(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}(m),p=c[h?"floating"===d?"reference":"floating":d],y=r(await l.getClippingRect({element:null==(n=await(null==l.isElement?void 0:l.isElement(p)))||n?p:p.contextElement||await(null==l.getDocumentElement?void 0:l.getDocumentElement(c.floating)),boundary:f,rootBoundary:u,strategy:a})),w=r(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({rect:"floating"===d?{...s.floating,x:o,y:i}:s.reference,offsetParent:await(null==l.getOffsetParent?void 0:l.getOffsetParent(c.floating)),strategy:a}):s[d]);return{top:y.top-w.top+g.top,bottom:w.bottom-y.bottom+g.bottom,left:y.left-w.left+g.left,right:w.right-y.right+g.right}}const s=Math.min,c=Math.max;function a(t,e,n){return c(t,s(e,n))}const f={left:"right",right:"left",bottom:"top",top:"bottom"};function u(t){return t.replace(/left|right|bottom|top/g,(t=>f[t]))}const d={start:"end",end:"start"};function h(t){return t.replace(/start|end/g,(t=>d[t]))}const m=["top","right","bottom","left"];const g=function(i){return void 0===i&&(i={}),{name:"flip",options:i,async fn(r){var s;const{placement:c,middlewareData:a,rects:f,initialPlacement:d,platform:m,elements:g}=r,{mainAxis:p=!0,crossAxis:y=!0,fallbackPlacements:w,fallbackStrategy:x="bestFit",flipAlignment:b=!0,...v}=i,R=t(c),L=w||(R===d||!b?[u(d)]:function(t){const e=u(t);return[h(t),e,h(e)]}(d)),T=[d,...L],A=await l(r,v),k=[];let E=(null==(s=a.flip)?void 0:s.overflows)||[];if(p&&k.push(A[R]),y){const{main:t,cross:i}=function(t,i,r){void 0===r&&(r=!1);const l=e(t),s=n(t),c=o(s);let a="x"===s?l===(r?"end":"start")?"right":"left":"start"===l?"bottom":"top";return i.reference[c]>i.floating[c]&&(a=u(a)),{main:a,cross:u(a)}}(c,f,await(null==m.isRTL?void 0:m.isRTL(g.floating)));k.push(A[t],A[i])}if(E=[...E,{placement:c,overflows:k}],!k.every((t=>t<=0))){var H,P;const t=(null!=(H=null==(P=a.flip)?void 0:P.index)?H:0)+1,e=T[t];if(e)return{data:{index:t,overflows:E},reset:{placement:e}};let n="bottom";switch(x){case"bestFit":{var D;const t=null==(D=E.map((t=>[t,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:D[0].placement;t&&(n=t);break}case"initialPlacement":n=d}if(c!==n)return{reset:{placement:n}}}return{}}}};function p(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function y(t){return m.some((e=>t[e]>=0))}const w=function(t){let{strategy:e="referenceHidden",...n}=void 0===t?{}:t;return{name:"hide",async fn(t){const{rects:o}=t;switch(e){case"referenceHidden":{const e=p(await l(t,{...n,elementContext:"reference"}),o.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:y(e)}}}case"escaped":{const e=p(await l(t,{...n,altBoundary:!0}),o.floating);return{data:{escapedOffsets:e,escaped:y(e)}}}default:return{}}}}};const x=function(o){return void 0===o&&(o=0),{name:"offset",options:o,async fn(i){const{x:r,y:l}=i,s=await async function(o,i){const{placement:r,platform:l,elements:s}=o,c=await(null==l.isRTL?void 0:l.isRTL(s.floating)),a=t(r),f=e(r),u="x"===n(r),d=["left","top"].includes(a)?-1:1,h=c&&u?-1:1,m="function"==typeof i?i(o):i;let{mainAxis:g,crossAxis:p,alignmentAxis:y}="number"==typeof m?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...m};return f&&"number"==typeof y&&(p="end"===f?-1*y:y),u?{x:p*h,y:g*d}:{x:g*d,y:p*h}}(i,o);return{x:r+s.x,y:l+s.y,data:s}}}};const b=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(o){const{x:i,y:r,placement:s}=o,{mainAxis:c=!0,crossAxis:f=!1,limiter:u={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...d}=e,h={x:i,y:r},m=await l(o,d),g=n(t(s)),p="x"===g?"y":"x";let y=h[g],w=h[p];if(c){const t="y"===g?"bottom":"right";y=a(y+m["y"===g?"top":"left"],y,y-m[t])}if(f){const t="y"===p?"bottom":"right";w=a(w+m["y"===p?"top":"left"],w,w-m[t])}const x=u.fn({...o,[g]:y,[p]:w});return{...x,data:{x:x.x-i,y:x.y-r}}}}};function v(t){return t&&t.document&&t.location&&t.alert&&t.setInterval}function R(t){if(null==t)return window;if(!v(t)){const e=t.ownerDocument;return e&&e.defaultView||window}return t}function L(t){return R(t).getComputedStyle(t)}function T(t){return v(t)?"":t?(t.nodeName||"").toLowerCase():""}function A(){const t=navigator.userAgentData;return null!=t&&t.brands?t.brands.map((t=>t.brand+"/"+t.version)).join(" "):navigator.userAgent}function k(t){return t instanceof R(t).HTMLElement}function E(t){return t instanceof R(t).Element}function H(t){if("undefined"==typeof ShadowRoot)return!1;return t instanceof R(t).ShadowRoot||t instanceof ShadowRoot}function P(t){const{overflow:e,overflowX:n,overflowY:o}=L(t);return/auto|scroll|overlay|hidden/.test(e+o+n)}function D(t){return["table","td","th"].includes(T(t))}function W(t){const e=/firefox/i.test(A()),n=L(t);return"none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||["transform","perspective"].includes(n.willChange)||e&&"filter"===n.willChange||e&&!!n.filter&&"none"!==n.filter}function C(){return!/^((?!chrome|android).)*safari/i.test(A())}const O=Math.min,N=Math.max,S=Math.round;function V(t,e,n){var o,i,r,l;void 0===e&&(e=!1),void 0===n&&(n=!1);const s=t.getBoundingClientRect();let c=1,a=1;e&&k(t)&&(c=t.offsetWidth>0&&S(s.width)/t.offsetWidth||1,a=t.offsetHeight>0&&S(s.height)/t.offsetHeight||1);const f=E(t)?R(t):window,u=!C()&&n,d=(s.left+(u&&null!=(o=null==(i=f.visualViewport)?void 0:i.offsetLeft)?o:0))/c,h=(s.top+(u&&null!=(r=null==(l=f.visualViewport)?void 0:l.offsetTop)?r:0))/a,m=s.width/c,g=s.height/a;return{width:m,height:g,top:h,right:d+m,bottom:h+g,left:d,x:d,y:h}}function B(t){return(e=t,(e instanceof R(e).Node?t.ownerDocument:t.document)||window.document).documentElement;var e}function M(t){return E(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function z(t){return V(B(t)).left+M(t).scrollLeft}function F(t,e,n){const o=k(e),i=B(e),r=V(t,o&&function(t){const e=V(t);return S(e.width)!==t.offsetWidth||S(e.height)!==t.offsetHeight}(e),"fixed"===n);let l={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if(o||!o&&"fixed"!==n)if(("body"!==T(e)||P(i))&&(l=M(e)),k(e)){const t=V(e,!0);s.x=t.x+e.clientLeft,s.y=t.y+e.clientTop}else i&&(s.x=z(i));return{x:r.left+l.scrollLeft-s.x,y:r.top+l.scrollTop-s.y,width:r.width,height:r.height}}function j(t){return"html"===T(t)?t:t.assignedSlot||t.parentNode||(H(t)?t.host:null)||B(t)}function X(t){return k(t)&&"fixed"!==L(t).position?function(t){let{offsetParent:e}=t,n=t,o=!1;for(;n&&n!==e;){const{assignedSlot:t}=n;if(t){let i=t.offsetParent;if("contents"===L(t).display){const e=t.hasAttribute("style"),o=t.style.display;t.style.display=L(n).display,i=t.offsetParent,t.style.display=o,e||t.removeAttribute("style")}n=t,e!==i&&(e=i,o=!0)}else if(H(n)&&n.host&&o)break;n=H(n)&&n.host||n.parentNode}return e}(t):null}function Y(t){const e=R(t);let n=X(t);for(;n&&D(n)&&"static"===L(n).position;)n=X(n);return n&&("html"===T(n)||"body"===T(n)&&"static"===L(n).position&&!W(n))?e:n||function(t){let e=j(t);for(H(e)&&(e=e.host);k(e)&&!["html","body"].includes(T(e));){if(W(e))return e;{const t=e.parentNode;e=H(t)?t.host:t}}return null}(t)||e}function $(t){if(k(t))return{width:t.offsetWidth,height:t.offsetHeight};const e=V(t);return{width:e.width,height:e.height}}function q(t){const e=j(t);return["html","body","#document"].includes(T(e))?t.ownerDocument.body:k(e)&&P(e)?e:q(e)}function I(t,e){var n;void 0===e&&(e=[]);const o=q(t),i=o===(null==(n=t.ownerDocument)?void 0:n.body),r=R(o),l=i?[r].concat(r.visualViewport||[],P(o)?o:[]):o,s=e.concat(l);return i?s:s.concat(I(l))}function G(t,e,n){return"viewport"===e?r(function(t,e){const n=R(t),o=B(t),i=n.visualViewport;let r=o.clientWidth,l=o.clientHeight,s=0,c=0;if(i){r=i.width,l=i.height;const t=C();(t||!t&&"fixed"===e)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:r,height:l,x:s,y:c}}(t,n)):E(e)?function(t,e){const n=V(t,!1,"fixed"===e),o=n.top+t.clientTop,i=n.left+t.clientLeft;return{top:o,left:i,x:i,y:o,right:i+t.clientWidth,bottom:o+t.clientHeight,width:t.clientWidth,height:t.clientHeight}}(e,n):r(function(t){var e;const n=B(t),o=M(t),i=null==(e=t.ownerDocument)?void 0:e.body,r=N(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),l=N(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0);let s=-o.scrollLeft+z(t);const c=-o.scrollTop;return"rtl"===L(i||n).direction&&(s+=N(n.clientWidth,i?i.clientWidth:0)-r),{width:r,height:l,x:s,y:c}}(B(t)))}function J(t){const e=I(t),n=["absolute","fixed"].includes(L(t).position)&&k(t)?Y(t):t;return E(n)?e.filter((t=>E(t)&&function(t,e){const n=null==e.getRootNode?void 0:e.getRootNode();if(t.contains(e))return!0;if(n&&H(n)){let n=e;do{if(n&&t===n)return!0;n=n.parentNode||n.host}while(n)}return!1}(t,n)&&"body"!==T(t))):[]}const K={getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const r=[..."clippingAncestors"===n?J(e):[].concat(n),o],l=r[0],s=r.reduce(((t,n)=>{const o=G(e,n,i);return t.top=N(o.top,t.top),t.right=O(o.right,t.right),t.bottom=O(o.bottom,t.bottom),t.left=N(o.left,t.left),t}),G(e,l,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:n,strategy:o}=t;const i=k(n),r=B(n);if(n===r)return e;let l={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if((i||!i&&"fixed"!==o)&&(("body"!==T(n)||P(r))&&(l=M(n)),k(n))){const t=V(n,!0);s.x=t.x+n.clientLeft,s.y=t.y+n.clientTop}return{...e,x:e.x-l.scrollLeft+s.x,y:e.y-l.scrollTop+s.y}},isElement:E,getDimensions:$,getOffsetParent:Y,getDocumentElement:B,getElementRects:t=>{let{reference:e,floating:n,strategy:o}=t;return{reference:F(e,Y(n),o),floating:{...$(n),x:0,y:0}}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>"rtl"===L(t).direction};function Q(t,e,n,o){void 0===o&&(o={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:l=!0,animationFrame:s=!1}=o,c=i&&!s,a=r&&!s,f=c||a?[...E(t)?I(t):[],...I(e)]:[];f.forEach((t=>{c&&t.addEventListener("scroll",n,{passive:!0}),a&&t.addEventListener("resize",n)}));let u,d=null;if(l){let o=!0;d=new ResizeObserver((()=>{o||n(),o=!1})),E(t)&&!s&&d.observe(t),d.observe(e)}let h=s?V(t):null;return s&&function e(){const o=V(t);!h||o.x===h.x&&o.y===h.y&&o.width===h.width&&o.height===h.height||n();h=o,u=requestAnimationFrame(e)}(),n(),()=>{var t;f.forEach((t=>{c&&t.removeEventListener("scroll",n),a&&t.removeEventListener("resize",n)})),null==(t=d)||t.disconnect(),d=null,s&&cancelAnimationFrame(u)}}const U=(t,e,n)=>(async(t,e,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:l=[],platform:s}=n,c=await(null==s.isRTL?void 0:s.isRTL(e));let a=await s.getElementRects({reference:t,floating:e,strategy:r}),{x:f,y:u}=i(a,o,c),d=o,h={},m=0;for(let n=0;n<l.length;n++){const{name:g,fn:p}=l[n],{x:y,y:w,data:x,reset:b}=await p({x:f,y:u,initialPlacement:o,placement:d,strategy:r,middlewareData:h,rects:a,platform:s,elements:{reference:t,floating:e}});f=null!=y?y:f,u=null!=w?w:u,h={...h,[g]:{...h[g],...x}},b&&m<=50&&(m++,"object"==typeof b&&(b.placement&&(d=b.placement),b.rects&&(a=!0===b.rects?await s.getElementRects({reference:t,floating:e,strategy:r}):b.rects),({x:f,y:u}=i(a,d,c))),n=-1)}return{x:f,y:u,placement:d,strategy:r,middlewareData:h}})(t,e,{platform:K,...n}),Z={"inline-start-start":"left-start","inline-start-end":"left-end","inline-end-start":"right-start","inline-end-end":"right-end","block-start-start":"top-start","block-start-end":"top-end","block-end-start":"bottom-start","block-end-end":"bottom-end"},_={"inline-start-start":"right-start","inline-start-end":"right-end","inline-end-start":"left-start","inline-end-end":"left-end","block-start-start":"top-start","block-start-end":"top-end","block-end-start":"bottom-start","block-end-end":"bottom-end"},tt={"block-end":"bottom","block-start":"top","inline-start":"left","inline-end":"right"};function et(t,e,n){if(null!=e&&null!=n){const o=`${t}-${e}`;return"ltr"===n?Z[o]:_[o]}return tt[t]}export{Q as a,U as c,g as f,w as h,et as l,x as o,b as s};
2
+ //# sourceMappingURL=positioning-3bbd3548.js.map