@synergy-design-system/components 1.7.0 → 1.8.0

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 (196) hide show
  1. package/README.md +8 -0
  2. package/dist/chunks/chunk.2IBWQADW.js +12 -0
  3. package/dist/chunks/chunk.2IBWQADW.js.map +7 -0
  4. package/dist/chunks/chunk.2KKPNUPU.js +110 -0
  5. package/dist/chunks/chunk.2KKPNUPU.js.map +7 -0
  6. package/dist/chunks/{chunk.Q7X5NOPZ.js → chunk.2XCLA4MQ.js} +2 -2
  7. package/dist/chunks/{chunk.AMTCNRDE.js → chunk.2Z2GYRLO.js} +2 -2
  8. package/dist/chunks/{chunk.4MYR27GF.js → chunk.35PHCFSV.js} +7 -7
  9. package/dist/chunks/{chunk.MFFJYORB.js → chunk.4CBN5LPQ.js} +4 -4
  10. package/dist/chunks/{chunk.OJREQD2D.js → chunk.4ZGN7AEC.js} +8 -8
  11. package/dist/chunks/{chunk.6V3HOZNE.js → chunk.5TFG753C.js} +2 -2
  12. package/dist/chunks/{chunk.ULMZHWWW.js → chunk.6PWB7EUW.js} +2 -2
  13. package/dist/chunks/{chunk.SMSP5C6C.js → chunk.A2WGLZOL.js} +2 -2
  14. package/dist/chunks/{chunk.XXF35USM.js → chunk.AJWDVZRI.js} +22 -98
  15. package/dist/chunks/chunk.AJWDVZRI.js.map +7 -0
  16. package/dist/chunks/{chunk.VZ7S7YYN.js → chunk.AVTU2BGE.js} +2 -2
  17. package/dist/chunks/{chunk.Z4NKFCKY.js → chunk.AWZ4FSAL.js} +10 -10
  18. package/dist/chunks/{chunk.7EGCXNF2.js → chunk.B75SET3J.js} +4 -4
  19. package/dist/chunks/{chunk.5THN2K5Q.js → chunk.BGPAHVPK.js} +2 -2
  20. package/dist/chunks/{chunk.PMTVLWNZ.js → chunk.COKV3ZN7.js} +2 -2
  21. package/dist/chunks/{chunk.5OPODPPZ.js → chunk.CUU2VBEZ.js} +2 -2
  22. package/dist/chunks/{chunk.XSXBQCWN.js → chunk.DAROCSFO.js} +4 -4
  23. package/dist/chunks/{chunk.HKCTVD3U.js → chunk.ERNEIORV.js} +4 -4
  24. package/dist/chunks/{chunk.USYR7G7Z.js → chunk.F3YEAZYJ.js} +2 -2
  25. package/dist/chunks/{chunk.IRT2DA6R.js → chunk.G66TSLVT.js} +10 -10
  26. package/dist/chunks/{chunk.NAX6WP3D.js → chunk.GUQN6XL4.js} +4 -4
  27. package/dist/chunks/chunk.GZVDP7WZ.js +541 -0
  28. package/dist/chunks/chunk.GZVDP7WZ.js.map +7 -0
  29. package/dist/chunks/{chunk.SBEIXLRW.js → chunk.HNRD7DBS.js} +2 -2
  30. package/dist/chunks/{chunk.LWXCBEHD.js → chunk.HW5TASOL.js} +5 -5
  31. package/dist/chunks/{chunk.TUYEX4KP.js → chunk.JBHQJWOB.js} +5 -5
  32. package/dist/chunks/{chunk.HG5QC5EW.js → chunk.JSO3PKB4.js} +2 -2
  33. package/dist/chunks/{chunk.RA2WSKQT.js → chunk.K4ELZCXB.js} +2 -2
  34. package/dist/chunks/{chunk.JAKJHV44.js → chunk.KA7L2PMA.js} +8 -8
  35. package/dist/chunks/{chunk.EI34C7LC.js → chunk.MB3YZTYP.js} +5 -5
  36. package/dist/chunks/{chunk.7KSU2SUD.js → chunk.MRAXEK5D.js} +2 -2
  37. package/dist/chunks/{chunk.SXW2KV3B.js → chunk.NAAFLDZ3.js} +2 -2
  38. package/dist/chunks/chunk.NV7W5R6V.js +173 -0
  39. package/dist/chunks/chunk.NV7W5R6V.js.map +7 -0
  40. package/dist/chunks/{chunk.7VOPIPHW.js → chunk.NWWHBSV7.js} +2 -2
  41. package/dist/chunks/{chunk.KP7SYG4K.js → chunk.OJUBVHIK.js} +2 -2
  42. package/dist/chunks/{chunk.BQG5LF7J.js → chunk.QAUTITK3.js} +2 -2
  43. package/dist/chunks/{chunk.DJOAQ4JU.js → chunk.QNDC5KWA.js} +43 -2
  44. package/dist/chunks/{chunk.CYN675Z6.js → chunk.RS4Z4KDT.js} +5 -5
  45. package/dist/chunks/{chunk.VQWUZKDS.js → chunk.RVFNEWM3.js} +2 -2
  46. package/dist/chunks/{chunk.GOVLCQY5.js → chunk.UG5FC6UD.js} +2 -2
  47. package/dist/chunks/{chunk.GMUVD5B2.js → chunk.UVYPEAQZ.js} +5 -5
  48. package/dist/chunks/chunk.UYD2OVFV.js +83 -0
  49. package/dist/chunks/chunk.UYD2OVFV.js.map +7 -0
  50. package/dist/chunks/{chunk.GHMKOVA3.js → chunk.WDX7XUUK.js} +3 -3
  51. package/dist/chunks/{chunk.GHMKOVA3.js.map → chunk.WDX7XUUK.js.map} +1 -1
  52. package/dist/chunks/{chunk.B6AKFQJS.js → chunk.WP6T5CG2.js} +2 -2
  53. package/dist/chunks/{chunk.3ZHSSMBL.js → chunk.XI6MSNHF.js} +3 -3
  54. package/dist/chunks/{chunk.5BOEKFIJ.js → chunk.Y4QKFZLK.js} +7 -7
  55. package/dist/components/button/button.component.js +11 -11
  56. package/dist/components/button/button.custom.styles.js +1 -1
  57. package/dist/components/button/button.js +12 -12
  58. package/dist/components/button/button.styles.js +1 -1
  59. package/dist/components/button-group/button-group.component.js +3 -3
  60. package/dist/components/button-group/button-group.js +4 -4
  61. package/dist/components/button-group/button-group.styles.js +1 -1
  62. package/dist/components/checkbox/checkbox.component.js +10 -10
  63. package/dist/components/checkbox/checkbox.custom.styles.js +1 -1
  64. package/dist/components/checkbox/checkbox.js +11 -11
  65. package/dist/components/checkbox/checkbox.styles.js +3 -3
  66. package/dist/components/divider/divider.component.js +4 -4
  67. package/dist/components/divider/divider.custom.styles.js +1 -1
  68. package/dist/components/divider/divider.js +5 -5
  69. package/dist/components/divider/divider.styles.js +1 -1
  70. package/dist/components/drawer/drawer.component.d.ts +109 -0
  71. package/dist/components/drawer/drawer.component.js +28 -0
  72. package/dist/components/drawer/drawer.component.js.map +7 -0
  73. package/dist/components/drawer/drawer.custom.styles.d.ts +2 -0
  74. package/dist/components/drawer/drawer.custom.styles.js +8 -0
  75. package/dist/components/drawer/drawer.custom.styles.js.map +7 -0
  76. package/dist/components/drawer/drawer.d.ts +8 -0
  77. package/dist/components/drawer/drawer.js +29 -0
  78. package/dist/components/drawer/drawer.js.map +7 -0
  79. package/dist/components/drawer/drawer.styles.d.ts +2 -0
  80. package/dist/components/drawer/drawer.styles.js +10 -0
  81. package/dist/components/drawer/drawer.styles.js.map +7 -0
  82. package/dist/components/icon/icon.component.js +6 -6
  83. package/dist/components/icon/icon.custom.styles.js +1 -1
  84. package/dist/components/icon/icon.js +7 -7
  85. package/dist/components/icon/icon.styles.js +1 -1
  86. package/dist/components/icon/library.default.js +1 -1
  87. package/dist/components/icon/library.js +1 -1
  88. package/dist/components/icon/library.system.js +1 -1
  89. package/dist/components/icon-button/icon-button.component.js +7 -7
  90. package/dist/components/icon-button/icon-button.custom.styles.js +1 -1
  91. package/dist/components/icon-button/icon-button.js +8 -8
  92. package/dist/components/icon-button/icon-button.styles.js +1 -1
  93. package/dist/components/input/input.component.js +10 -10
  94. package/dist/components/input/input.custom.styles.js +1 -1
  95. package/dist/components/input/input.js +11 -11
  96. package/dist/components/input/input.styles.js +1 -1
  97. package/dist/components/optgroup/optgroup.component.js +5 -5
  98. package/dist/components/optgroup/optgroup.js +6 -6
  99. package/dist/components/optgroup/optgroup.styles.js +1 -1
  100. package/dist/components/option/option.component.js +7 -7
  101. package/dist/components/option/option.custom.styles.js +1 -1
  102. package/dist/components/option/option.js +8 -8
  103. package/dist/components/option/option.styles.js +1 -1
  104. package/dist/components/popup/popup.component.js +3 -3
  105. package/dist/components/popup/popup.styles.js +1 -1
  106. package/dist/components/radio/radio.component.js +7 -7
  107. package/dist/components/radio/radio.custom.styles.js +1 -1
  108. package/dist/components/radio/radio.js +8 -8
  109. package/dist/components/radio/radio.styles.js +1 -1
  110. package/dist/components/radio-button/radio-button.component.js +4 -4
  111. package/dist/components/radio-button/radio-button.js +5 -5
  112. package/dist/components/radio-button/radio-button.styles.js +1 -1
  113. package/dist/components/radio-group/radio-group.component.js +7 -7
  114. package/dist/components/radio-group/radio-group.custom.styles.js +1 -1
  115. package/dist/components/radio-group/radio-group.js +8 -8
  116. package/dist/components/radio-group/radio-group.styles.js +1 -1
  117. package/dist/components/select/select.component.js +15 -14
  118. package/dist/components/select/select.custom.styles.js +1 -1
  119. package/dist/components/select/select.js +16 -15
  120. package/dist/components/select/select.styles.js +1 -1
  121. package/dist/components/spinner/spinner.component.js +3 -3
  122. package/dist/components/spinner/spinner.styles.js +1 -1
  123. package/dist/components/switch/switch.component.js +5 -5
  124. package/dist/components/switch/switch.custom.styles.js +1 -1
  125. package/dist/components/switch/switch.js +6 -6
  126. package/dist/components/switch/switch.styles.js +1 -1
  127. package/dist/components/tag/tag.component.js +8 -8
  128. package/dist/components/tag/tag.custom.styles.js +1 -1
  129. package/dist/components/tag/tag.js +9 -9
  130. package/dist/components/tag/tag.styles.js +1 -1
  131. package/dist/components/textarea/textarea.component.js +6 -6
  132. package/dist/components/textarea/textarea.custom.styles.js +1 -1
  133. package/dist/components/textarea/textarea.js +7 -7
  134. package/dist/components/textarea/textarea.styles.js +1 -1
  135. package/dist/custom-elements.json +411 -1
  136. package/dist/events/events.d.ts +2 -0
  137. package/dist/events/syn-initial-focus.d.ts +6 -0
  138. package/dist/events/syn-request-close.d.ts +8 -0
  139. package/dist/internal/active-elements.d.ts +15 -0
  140. package/dist/internal/modal.d.ts +21 -0
  141. package/dist/internal/string.d.ts +2 -0
  142. package/dist/internal/tabbable.d.ts +9 -0
  143. package/dist/synergy-autoloader.js +1 -1
  144. package/dist/synergy.d.ts +1 -0
  145. package/dist/synergy.js +78 -70
  146. package/dist/themes/utility.css +29 -0
  147. package/dist/translations/de.js +1 -1
  148. package/dist/translations/en.js +1 -1
  149. package/dist/utilities/animation-registry.js +2 -2
  150. package/dist/utilities/base-path.js +1 -1
  151. package/dist/utilities/form.js +3 -3
  152. package/dist/utilities/icon-library.js +1 -1
  153. package/dist/utilities/localize.js +1 -1
  154. package/dist/vscode.html-custom-data.json +42 -0
  155. package/dist/web-types.json +132 -1
  156. package/package.json +4 -3
  157. package/dist/chunks/chunk.XXF35USM.js.map +0 -7
  158. /package/dist/chunks/{chunk.Q7X5NOPZ.js.map → chunk.2XCLA4MQ.js.map} +0 -0
  159. /package/dist/chunks/{chunk.AMTCNRDE.js.map → chunk.2Z2GYRLO.js.map} +0 -0
  160. /package/dist/chunks/{chunk.4MYR27GF.js.map → chunk.35PHCFSV.js.map} +0 -0
  161. /package/dist/chunks/{chunk.MFFJYORB.js.map → chunk.4CBN5LPQ.js.map} +0 -0
  162. /package/dist/chunks/{chunk.OJREQD2D.js.map → chunk.4ZGN7AEC.js.map} +0 -0
  163. /package/dist/chunks/{chunk.6V3HOZNE.js.map → chunk.5TFG753C.js.map} +0 -0
  164. /package/dist/chunks/{chunk.ULMZHWWW.js.map → chunk.6PWB7EUW.js.map} +0 -0
  165. /package/dist/chunks/{chunk.SMSP5C6C.js.map → chunk.A2WGLZOL.js.map} +0 -0
  166. /package/dist/chunks/{chunk.VZ7S7YYN.js.map → chunk.AVTU2BGE.js.map} +0 -0
  167. /package/dist/chunks/{chunk.Z4NKFCKY.js.map → chunk.AWZ4FSAL.js.map} +0 -0
  168. /package/dist/chunks/{chunk.7EGCXNF2.js.map → chunk.B75SET3J.js.map} +0 -0
  169. /package/dist/chunks/{chunk.5THN2K5Q.js.map → chunk.BGPAHVPK.js.map} +0 -0
  170. /package/dist/chunks/{chunk.PMTVLWNZ.js.map → chunk.COKV3ZN7.js.map} +0 -0
  171. /package/dist/chunks/{chunk.5OPODPPZ.js.map → chunk.CUU2VBEZ.js.map} +0 -0
  172. /package/dist/chunks/{chunk.XSXBQCWN.js.map → chunk.DAROCSFO.js.map} +0 -0
  173. /package/dist/chunks/{chunk.HKCTVD3U.js.map → chunk.ERNEIORV.js.map} +0 -0
  174. /package/dist/chunks/{chunk.USYR7G7Z.js.map → chunk.F3YEAZYJ.js.map} +0 -0
  175. /package/dist/chunks/{chunk.IRT2DA6R.js.map → chunk.G66TSLVT.js.map} +0 -0
  176. /package/dist/chunks/{chunk.NAX6WP3D.js.map → chunk.GUQN6XL4.js.map} +0 -0
  177. /package/dist/chunks/{chunk.SBEIXLRW.js.map → chunk.HNRD7DBS.js.map} +0 -0
  178. /package/dist/chunks/{chunk.LWXCBEHD.js.map → chunk.HW5TASOL.js.map} +0 -0
  179. /package/dist/chunks/{chunk.TUYEX4KP.js.map → chunk.JBHQJWOB.js.map} +0 -0
  180. /package/dist/chunks/{chunk.HG5QC5EW.js.map → chunk.JSO3PKB4.js.map} +0 -0
  181. /package/dist/chunks/{chunk.RA2WSKQT.js.map → chunk.K4ELZCXB.js.map} +0 -0
  182. /package/dist/chunks/{chunk.JAKJHV44.js.map → chunk.KA7L2PMA.js.map} +0 -0
  183. /package/dist/chunks/{chunk.EI34C7LC.js.map → chunk.MB3YZTYP.js.map} +0 -0
  184. /package/dist/chunks/{chunk.7KSU2SUD.js.map → chunk.MRAXEK5D.js.map} +0 -0
  185. /package/dist/chunks/{chunk.SXW2KV3B.js.map → chunk.NAAFLDZ3.js.map} +0 -0
  186. /package/dist/chunks/{chunk.7VOPIPHW.js.map → chunk.NWWHBSV7.js.map} +0 -0
  187. /package/dist/chunks/{chunk.KP7SYG4K.js.map → chunk.OJUBVHIK.js.map} +0 -0
  188. /package/dist/chunks/{chunk.BQG5LF7J.js.map → chunk.QAUTITK3.js.map} +0 -0
  189. /package/dist/chunks/{chunk.DJOAQ4JU.js.map → chunk.QNDC5KWA.js.map} +0 -0
  190. /package/dist/chunks/{chunk.CYN675Z6.js.map → chunk.RS4Z4KDT.js.map} +0 -0
  191. /package/dist/chunks/{chunk.VQWUZKDS.js.map → chunk.RVFNEWM3.js.map} +0 -0
  192. /package/dist/chunks/{chunk.GOVLCQY5.js.map → chunk.UG5FC6UD.js.map} +0 -0
  193. /package/dist/chunks/{chunk.GMUVD5B2.js.map → chunk.UVYPEAQZ.js.map} +0 -0
  194. /package/dist/chunks/{chunk.B6AKFQJS.js.map → chunk.WP6T5CG2.js.map} +0 -0
  195. /package/dist/chunks/{chunk.3ZHSSMBL.js.map → chunk.XI6MSNHF.js.map} +0 -0
  196. /package/dist/chunks/{chunk.5BOEKFIJ.js.map → chunk.Y4QKFZLK.js.map} +0 -0
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/internal/synergy-element.ts"],
4
- "sourcesContent": ["// ---------------------------------------------------------------------\n// \uD83D\uDD12 AUTOGENERATED BY VENDORISM\n// Removing this comment will prevent it from being managed by it.\n// ---------------------------------------------------------------------\n\n/* eslint-disable */\nimport { LitElement } from 'lit';\nimport { property } from 'lit/decorators.js';\n\n// Match event type name strings that are registered on GlobalEventHandlersEventMap...\ntype EventTypeRequiresDetail<T> = T extends keyof GlobalEventHandlersEventMap\n ? // ...where the event detail is an object...\n GlobalEventHandlersEventMap[T] extends CustomEvent<Record<PropertyKey, unknown>>\n ? // ...that is non-empty...\n GlobalEventHandlersEventMap[T] extends CustomEvent<Record<PropertyKey, never>>\n ? never\n : // ...and has at least one non-optional property\n Partial<GlobalEventHandlersEventMap[T]['detail']> extends GlobalEventHandlersEventMap[T]['detail']\n ? never\n : T\n : never\n : never;\n\n// The inverse of the above (match any type that doesn't match EventTypeRequiresDetail)\ntype EventTypeDoesNotRequireDetail<T> = T extends keyof GlobalEventHandlersEventMap\n ? GlobalEventHandlersEventMap[T] extends CustomEvent<Record<PropertyKey, unknown>>\n ? GlobalEventHandlersEventMap[T] extends CustomEvent<Record<PropertyKey, never>>\n ? T\n : Partial<GlobalEventHandlersEventMap[T]['detail']> extends GlobalEventHandlersEventMap[T]['detail']\n ? T\n : never\n : T\n : T;\n\n// `keyof EventTypesWithRequiredDetail` lists all registered event types that require detail\ntype EventTypesWithRequiredDetail = {\n [EventType in keyof GlobalEventHandlersEventMap as EventTypeRequiresDetail<EventType>]: true;\n};\n\n// `keyof EventTypesWithoutRequiredDetail` lists all registered event types that do NOT require detail\ntype EventTypesWithoutRequiredDetail = {\n [EventType in keyof GlobalEventHandlersEventMap as EventTypeDoesNotRequireDetail<EventType>]: true;\n};\n\n// Helper to make a specific property of an object non-optional\ntype WithRequired<T, K extends keyof T> = T & { [P in K]-?: T[P] };\n\n// Given an event name string, get a valid type for the options to initialize the event that is more restrictive than\n// just CustomEventInit when appropriate (validate the type of the event detail, and require it to be provided if the\n// event requires it)\ntype SynEventInit<T> = T extends keyof GlobalEventHandlersEventMap\n ? GlobalEventHandlersEventMap[T] extends CustomEvent<Record<PropertyKey, unknown>>\n ? GlobalEventHandlersEventMap[T] extends CustomEvent<Record<PropertyKey, never>>\n ? CustomEventInit<GlobalEventHandlersEventMap[T]['detail']>\n : Partial<GlobalEventHandlersEventMap[T]['detail']> extends GlobalEventHandlersEventMap[T]['detail']\n ? CustomEventInit<GlobalEventHandlersEventMap[T]['detail']>\n : WithRequired<CustomEventInit<GlobalEventHandlersEventMap[T]['detail']>, 'detail'>\n : CustomEventInit\n : CustomEventInit;\n\n// Given an event name string, get the type of the event\ntype GetCustomEventType<T> = T extends keyof GlobalEventHandlersEventMap\n ? GlobalEventHandlersEventMap[T] extends CustomEvent<unknown>\n ? GlobalEventHandlersEventMap[T]\n : CustomEvent<unknown>\n : CustomEvent<unknown>;\n\n// `keyof ValidEventTypeMap` is equivalent to `keyof GlobalEventHandlersEventMap` but gives a nicer error message\ntype ValidEventTypeMap = EventTypesWithRequiredDetail | EventTypesWithoutRequiredDetail;\n\nexport default class SynergyElement extends LitElement {\n // Make localization attributes reactive\n @property() dir: string;\n @property() lang: string;\n\n /** Emits a custom event with more convenient defaults. */\n emit<T extends string & keyof EventTypesWithoutRequiredDetail>(\n name: EventTypeDoesNotRequireDetail<T>,\n options?: SynEventInit<T> | undefined\n ): GetCustomEventType<T>;\n emit<T extends string & keyof EventTypesWithRequiredDetail>(\n name: EventTypeRequiresDetail<T>,\n options: SynEventInit<T>\n ): GetCustomEventType<T>;\n emit<T extends string & keyof ValidEventTypeMap>(\n name: T,\n options?: SynEventInit<T> | undefined\n ): GetCustomEventType<T> {\n const event = new CustomEvent(name, {\n bubbles: true,\n cancelable: false,\n composed: true,\n detail: {},\n ...options\n });\n\n this.dispatchEvent(event);\n\n return event as GetCustomEventType<T>;\n }\n\n /* eslint-disable */\n // @ts-expect-error This is auto-injected at build time.\n static version = \"1.7.0\";\n \n\n static define(name: string, elementConstructor = this, options: ElementDefinitionOptions = {}) {\n const currentlyRegisteredConstructor = customElements.get(name) as\n | CustomElementConstructor\n | typeof SynergyElement;\n\n if (!currentlyRegisteredConstructor) {\n customElements.define(name, class extends elementConstructor {} as unknown as CustomElementConstructor, options);\n return;\n }\n\n let newVersion = ' (unknown version)';\n let existingVersion = newVersion;\n\n if ('version' in elementConstructor && elementConstructor.version) {\n newVersion = ' v' + elementConstructor.version;\n }\n\n if ('version' in currentlyRegisteredConstructor && currentlyRegisteredConstructor.version) {\n existingVersion = ' v' + currentlyRegisteredConstructor.version;\n }\n\n // Need to make sure we're not working with null or empty strings before doing version comparisons.\n if (newVersion && existingVersion && newVersion === existingVersion) {\n // If versions match, we don't need to warn anyone. Carry on.\n return;\n }\n\n console.warn(\n `Attempted to register <${name}>${newVersion}, but <${name}>${existingVersion} has already been registered.`\n );\n }\n\n static dependencies: Record<string, typeof SynergyElement> = {};\n\n constructor() {\n super();\n Object.entries((this.constructor as typeof SynergyElement).dependencies).forEach(([name, component]) => {\n (this.constructor as typeof SynergyElement).define(name, component);\n });\n }\n}\n\nexport interface SynergyFormControl extends SynergyElement {\n // Form attributes\n name: string;\n value: unknown;\n disabled?: boolean;\n defaultValue?: unknown;\n defaultChecked?: boolean;\n form?: string;\n\n // Constraint validation attributes\n pattern?: string;\n min?: number | string | Date;\n max?: number | string | Date;\n step?: number | 'any';\n required?: boolean;\n minlength?: number;\n maxlength?: number;\n\n // Form validation properties\n readonly validity: ValidityState;\n readonly validationMessage: string;\n\n // Form validation methods\n checkValidity: () => boolean;\n getForm: () => HTMLFormElement | null;\n reportValidity: () => boolean;\n setCustomValidity: (message: string) => void;\n}\n"],
4
+ "sourcesContent": ["// ---------------------------------------------------------------------\n// \uD83D\uDD12 AUTOGENERATED BY VENDORISM\n// Removing this comment will prevent it from being managed by it.\n// ---------------------------------------------------------------------\n\n/* eslint-disable */\nimport { LitElement } from 'lit';\nimport { property } from 'lit/decorators.js';\n\n// Match event type name strings that are registered on GlobalEventHandlersEventMap...\ntype EventTypeRequiresDetail<T> = T extends keyof GlobalEventHandlersEventMap\n ? // ...where the event detail is an object...\n GlobalEventHandlersEventMap[T] extends CustomEvent<Record<PropertyKey, unknown>>\n ? // ...that is non-empty...\n GlobalEventHandlersEventMap[T] extends CustomEvent<Record<PropertyKey, never>>\n ? never\n : // ...and has at least one non-optional property\n Partial<GlobalEventHandlersEventMap[T]['detail']> extends GlobalEventHandlersEventMap[T]['detail']\n ? never\n : T\n : never\n : never;\n\n// The inverse of the above (match any type that doesn't match EventTypeRequiresDetail)\ntype EventTypeDoesNotRequireDetail<T> = T extends keyof GlobalEventHandlersEventMap\n ? GlobalEventHandlersEventMap[T] extends CustomEvent<Record<PropertyKey, unknown>>\n ? GlobalEventHandlersEventMap[T] extends CustomEvent<Record<PropertyKey, never>>\n ? T\n : Partial<GlobalEventHandlersEventMap[T]['detail']> extends GlobalEventHandlersEventMap[T]['detail']\n ? T\n : never\n : T\n : T;\n\n// `keyof EventTypesWithRequiredDetail` lists all registered event types that require detail\ntype EventTypesWithRequiredDetail = {\n [EventType in keyof GlobalEventHandlersEventMap as EventTypeRequiresDetail<EventType>]: true;\n};\n\n// `keyof EventTypesWithoutRequiredDetail` lists all registered event types that do NOT require detail\ntype EventTypesWithoutRequiredDetail = {\n [EventType in keyof GlobalEventHandlersEventMap as EventTypeDoesNotRequireDetail<EventType>]: true;\n};\n\n// Helper to make a specific property of an object non-optional\ntype WithRequired<T, K extends keyof T> = T & { [P in K]-?: T[P] };\n\n// Given an event name string, get a valid type for the options to initialize the event that is more restrictive than\n// just CustomEventInit when appropriate (validate the type of the event detail, and require it to be provided if the\n// event requires it)\ntype SynEventInit<T> = T extends keyof GlobalEventHandlersEventMap\n ? GlobalEventHandlersEventMap[T] extends CustomEvent<Record<PropertyKey, unknown>>\n ? GlobalEventHandlersEventMap[T] extends CustomEvent<Record<PropertyKey, never>>\n ? CustomEventInit<GlobalEventHandlersEventMap[T]['detail']>\n : Partial<GlobalEventHandlersEventMap[T]['detail']> extends GlobalEventHandlersEventMap[T]['detail']\n ? CustomEventInit<GlobalEventHandlersEventMap[T]['detail']>\n : WithRequired<CustomEventInit<GlobalEventHandlersEventMap[T]['detail']>, 'detail'>\n : CustomEventInit\n : CustomEventInit;\n\n// Given an event name string, get the type of the event\ntype GetCustomEventType<T> = T extends keyof GlobalEventHandlersEventMap\n ? GlobalEventHandlersEventMap[T] extends CustomEvent<unknown>\n ? GlobalEventHandlersEventMap[T]\n : CustomEvent<unknown>\n : CustomEvent<unknown>;\n\n// `keyof ValidEventTypeMap` is equivalent to `keyof GlobalEventHandlersEventMap` but gives a nicer error message\ntype ValidEventTypeMap = EventTypesWithRequiredDetail | EventTypesWithoutRequiredDetail;\n\nexport default class SynergyElement extends LitElement {\n // Make localization attributes reactive\n @property() dir: string;\n @property() lang: string;\n\n /** Emits a custom event with more convenient defaults. */\n emit<T extends string & keyof EventTypesWithoutRequiredDetail>(\n name: EventTypeDoesNotRequireDetail<T>,\n options?: SynEventInit<T> | undefined\n ): GetCustomEventType<T>;\n emit<T extends string & keyof EventTypesWithRequiredDetail>(\n name: EventTypeRequiresDetail<T>,\n options: SynEventInit<T>\n ): GetCustomEventType<T>;\n emit<T extends string & keyof ValidEventTypeMap>(\n name: T,\n options?: SynEventInit<T> | undefined\n ): GetCustomEventType<T> {\n const event = new CustomEvent(name, {\n bubbles: true,\n cancelable: false,\n composed: true,\n detail: {},\n ...options\n });\n\n this.dispatchEvent(event);\n\n return event as GetCustomEventType<T>;\n }\n\n /* eslint-disable */\n // @ts-expect-error This is auto-injected at build time.\n static version = \"1.8.0\";\n \n\n static define(name: string, elementConstructor = this, options: ElementDefinitionOptions = {}) {\n const currentlyRegisteredConstructor = customElements.get(name) as\n | CustomElementConstructor\n | typeof SynergyElement;\n\n if (!currentlyRegisteredConstructor) {\n customElements.define(name, class extends elementConstructor {} as unknown as CustomElementConstructor, options);\n return;\n }\n\n let newVersion = ' (unknown version)';\n let existingVersion = newVersion;\n\n if ('version' in elementConstructor && elementConstructor.version) {\n newVersion = ' v' + elementConstructor.version;\n }\n\n if ('version' in currentlyRegisteredConstructor && currentlyRegisteredConstructor.version) {\n existingVersion = ' v' + currentlyRegisteredConstructor.version;\n }\n\n // Need to make sure we're not working with null or empty strings before doing version comparisons.\n if (newVersion && existingVersion && newVersion === existingVersion) {\n // If versions match, we don't need to warn anyone. Carry on.\n return;\n }\n\n console.warn(\n `Attempted to register <${name}>${newVersion}, but <${name}>${existingVersion} has already been registered.`\n );\n }\n\n static dependencies: Record<string, typeof SynergyElement> = {};\n\n constructor() {\n super();\n Object.entries((this.constructor as typeof SynergyElement).dependencies).forEach(([name, component]) => {\n (this.constructor as typeof SynergyElement).define(name, component);\n });\n }\n}\n\nexport interface SynergyFormControl extends SynergyElement {\n // Form attributes\n name: string;\n value: unknown;\n disabled?: boolean;\n defaultValue?: unknown;\n defaultChecked?: boolean;\n form?: string;\n\n // Constraint validation attributes\n pattern?: string;\n min?: number | string | Date;\n max?: number | string | Date;\n step?: number | 'any';\n required?: boolean;\n minlength?: number;\n maxlength?: number;\n\n // Form validation properties\n readonly validity: ValidityState;\n readonly validationMessage: string;\n\n // Form validation methods\n checkValidity: () => boolean;\n getForm: () => HTMLFormElement | null;\n reportValidity: () => boolean;\n setCustomValidity: (message: string) => void;\n}\n"],
5
5
  "mappings": ";;;;;;AAMA,SAAS,kBAAkB;AAC3B,SAAS,gBAAgB;AA+DzB,IAAqB,iBAArB,cAA4C,WAAW;AAAA,EAcrD,KACE,MACA,SACuB;AACvB,UAAM,QAAQ,IAAI,YAAY,MAAM;AAAA,MAClC,SAAS;AAAA,MACT,YAAY;AAAA,MACZ,UAAU;AAAA,MACV,QAAQ,CAAC;AAAA,OACN,QACJ;AAED,SAAK,cAAc,KAAK;AAExB,WAAO;AAAA,EACT;AAAA,EAOA,OAAO,OAAO,MAAc,qBAAqB,MAAM,UAAoC,CAAC,GAAG;AAC7F,UAAM,iCAAiC,eAAe,IAAI,IAAI;AAI9D,QAAI,CAAC,gCAAgC;AACnC,qBAAe,OAAO,MAAM,cAAc,mBAAmB;AAAA,MAAC,GAA0C,OAAO;AAC/G;AAAA,IACF;AAEA,QAAI,aAAa;AACjB,QAAI,kBAAkB;AAEtB,QAAI,aAAa,sBAAsB,mBAAmB,SAAS;AACjE,mBAAa,OAAO,mBAAmB;AAAA,IACzC;AAEA,QAAI,aAAa,kCAAkC,+BAA+B,SAAS;AACzF,wBAAkB,OAAO,+BAA+B;AAAA,IAC1D;AAGA,QAAI,cAAc,mBAAmB,eAAe,iBAAiB;AAEnE;AAAA,IACF;AAEA,YAAQ;AAAA,MACN,0BAA0B,IAAI,IAAI,UAAU,UAAU,IAAI,IAAI,eAAe;AAAA,IAC/E;AAAA,EACF;AAAA,EAIA,cAAc;AACZ,UAAM;AACN,WAAO,QAAS,KAAK,YAAsC,YAAY,EAAE,QAAQ,CAAC,CAAC,MAAM,SAAS,MAAM;AACtG,MAAC,KAAK,YAAsC,OAAO,MAAM,SAAS;AAAA,IACpE,CAAC;AAAA,EACH;AACF;AAAA;AAAA;AA5EqB,eAiCZ,UAAU;AAjCE,eAoEZ,eAAsD,CAAC;AAlElD;AAAA,EAAX,SAAS;AAAA,GAFS,eAEP;AACA;AAAA,EAAX,SAAS;AAAA,GAHS,eAGP;",
6
6
  "names": []
7
7
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SynDivider
3
- } from "./chunk.HKCTVD3U.js";
3
+ } from "./chunk.ERNEIORV.js";
4
4
 
5
5
  // src/components/divider/divider.ts
6
6
  var divider_default = SynDivider;
@@ -9,4 +9,4 @@ SynDivider.define("syn-divider");
9
9
  export {
10
10
  divider_default
11
11
  };
12
- //# sourceMappingURL=chunk.B6AKFQJS.js.map
12
+ //# sourceMappingURL=chunk.WP6T5CG2.js.map
@@ -3,12 +3,12 @@ import {
3
3
  } from "./chunk.JN7CLMQZ.js";
4
4
  import {
5
5
  SynergyElement
6
- } from "./chunk.GHMKOVA3.js";
6
+ } from "./chunk.WDX7XUUK.js";
7
7
  import {
8
8
  __decorateClass,
9
9
  __spreadProps,
10
10
  __spreadValues
11
- } from "./chunk.DJOAQ4JU.js";
11
+ } from "./chunk.QNDC5KWA.js";
12
12
 
13
13
  // src/components/popup/popup.component.ts
14
14
  import { arrow, autoUpdate, computePosition, flip, offset, platform, shift, size } from "@floating-ui/dom";
@@ -331,4 +331,4 @@ __decorateClass([
331
331
  export {
332
332
  SynPopup
333
333
  };
334
- //# sourceMappingURL=chunk.3ZHSSMBL.js.map
334
+ //# sourceMappingURL=chunk.XI6MSNHF.js.map
@@ -3,22 +3,22 @@ import {
3
3
  } from "./chunk.WFAJR3FN.js";
4
4
  import {
5
5
  checkbox_styles_default
6
- } from "./chunk.MFFJYORB.js";
6
+ } from "./chunk.4CBN5LPQ.js";
7
7
  import {
8
8
  FormControlController
9
- } from "./chunk.AMTCNRDE.js";
9
+ } from "./chunk.2Z2GYRLO.js";
10
10
  import {
11
11
  SynIcon
12
- } from "./chunk.4MYR27GF.js";
12
+ } from "./chunk.35PHCFSV.js";
13
13
  import {
14
14
  watch
15
- } from "./chunk.VZ7S7YYN.js";
15
+ } from "./chunk.AVTU2BGE.js";
16
16
  import {
17
17
  SynergyElement
18
- } from "./chunk.GHMKOVA3.js";
18
+ } from "./chunk.WDX7XUUK.js";
19
19
  import {
20
20
  __decorateClass
21
- } from "./chunk.DJOAQ4JU.js";
21
+ } from "./chunk.QNDC5KWA.js";
22
22
 
23
23
  // src/components/checkbox/checkbox.component.ts
24
24
  import { classMap } from "lit/directives/class-map.js";
@@ -221,4 +221,4 @@ __decorateClass([
221
221
  export {
222
222
  SynCheckbox
223
223
  };
224
- //# sourceMappingURL=chunk.5BOEKFIJ.js.map
224
+ //# sourceMappingURL=chunk.Y4QKFZLK.js.map
@@ -1,25 +1,25 @@
1
1
  import {
2
2
  SynButton
3
- } from "../../chunks/chunk.Z4NKFCKY.js";
4
- import "../../chunks/chunk.SBEIXLRW.js";
3
+ } from "../../chunks/chunk.AWZ4FSAL.js";
4
+ import "../../chunks/chunk.HNRD7DBS.js";
5
5
  import "../../chunks/chunk.N2I6HVX3.js";
6
6
  import "../../chunks/chunk.XGXFE6IF.js";
7
7
  import "../../chunks/chunk.LAB4YJYE.js";
8
8
  import "../../chunks/chunk.A3SKDWCT.js";
9
- import "../../chunks/chunk.OJ4KOC7R.js";
10
- import "../../chunks/chunk.K55MKNUR.js";
11
- import "../../chunks/chunk.AMTCNRDE.js";
12
- import "../../chunks/chunk.4MYR27GF.js";
13
- import "../../chunks/chunk.RSONAU45.js";
14
- import "../../chunks/chunk.PJO6TM3T.js";
9
+ import "../../chunks/chunk.2Z2GYRLO.js";
10
+ import "../../chunks/chunk.35PHCFSV.js";
15
11
  import "../../chunks/chunk.JRXQK6LG.js";
16
12
  import "../../chunks/chunk.6C4JXZZN.js";
17
13
  import "../../chunks/chunk.5AAIHRMI.js";
18
- import "../../chunks/chunk.VZ7S7YYN.js";
19
- import "../../chunks/chunk.GHMKOVA3.js";
14
+ import "../../chunks/chunk.RSONAU45.js";
15
+ import "../../chunks/chunk.PJO6TM3T.js";
16
+ import "../../chunks/chunk.AVTU2BGE.js";
20
17
  import "../../chunks/chunk.C7624ITA.js";
18
+ import "../../chunks/chunk.OJ4KOC7R.js";
19
+ import "../../chunks/chunk.K55MKNUR.js";
20
+ import "../../chunks/chunk.WDX7XUUK.js";
21
21
  import "../../chunks/chunk.O7USYXBT.js";
22
- import "../../chunks/chunk.DJOAQ4JU.js";
22
+ import "../../chunks/chunk.QNDC5KWA.js";
23
23
  export {
24
24
  SynButton as default
25
25
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  button_custom_styles_default
3
3
  } from "../../chunks/chunk.K55MKNUR.js";
4
- import "../../chunks/chunk.DJOAQ4JU.js";
4
+ import "../../chunks/chunk.QNDC5KWA.js";
5
5
  export {
6
6
  button_custom_styles_default as default
7
7
  };
@@ -1,26 +1,26 @@
1
1
  import {
2
2
  button_default
3
- } from "../../chunks/chunk.Q7X5NOPZ.js";
4
- import "../../chunks/chunk.Z4NKFCKY.js";
5
- import "../../chunks/chunk.SBEIXLRW.js";
3
+ } from "../../chunks/chunk.2XCLA4MQ.js";
4
+ import "../../chunks/chunk.AWZ4FSAL.js";
5
+ import "../../chunks/chunk.HNRD7DBS.js";
6
6
  import "../../chunks/chunk.N2I6HVX3.js";
7
7
  import "../../chunks/chunk.XGXFE6IF.js";
8
8
  import "../../chunks/chunk.LAB4YJYE.js";
9
9
  import "../../chunks/chunk.A3SKDWCT.js";
10
- import "../../chunks/chunk.OJ4KOC7R.js";
11
- import "../../chunks/chunk.K55MKNUR.js";
12
- import "../../chunks/chunk.AMTCNRDE.js";
13
- import "../../chunks/chunk.4MYR27GF.js";
14
- import "../../chunks/chunk.RSONAU45.js";
15
- import "../../chunks/chunk.PJO6TM3T.js";
10
+ import "../../chunks/chunk.2Z2GYRLO.js";
11
+ import "../../chunks/chunk.35PHCFSV.js";
16
12
  import "../../chunks/chunk.JRXQK6LG.js";
17
13
  import "../../chunks/chunk.6C4JXZZN.js";
18
14
  import "../../chunks/chunk.5AAIHRMI.js";
19
- import "../../chunks/chunk.VZ7S7YYN.js";
20
- import "../../chunks/chunk.GHMKOVA3.js";
15
+ import "../../chunks/chunk.RSONAU45.js";
16
+ import "../../chunks/chunk.PJO6TM3T.js";
17
+ import "../../chunks/chunk.AVTU2BGE.js";
21
18
  import "../../chunks/chunk.C7624ITA.js";
19
+ import "../../chunks/chunk.OJ4KOC7R.js";
20
+ import "../../chunks/chunk.K55MKNUR.js";
21
+ import "../../chunks/chunk.WDX7XUUK.js";
22
22
  import "../../chunks/chunk.O7USYXBT.js";
23
- import "../../chunks/chunk.DJOAQ4JU.js";
23
+ import "../../chunks/chunk.QNDC5KWA.js";
24
24
  export {
25
25
  button_default as default
26
26
  };
@@ -3,7 +3,7 @@ import {
3
3
  } from "../../chunks/chunk.OJ4KOC7R.js";
4
4
  import "../../chunks/chunk.K55MKNUR.js";
5
5
  import "../../chunks/chunk.O7USYXBT.js";
6
- import "../../chunks/chunk.DJOAQ4JU.js";
6
+ import "../../chunks/chunk.QNDC5KWA.js";
7
7
  export {
8
8
  button_styles_default as default
9
9
  };
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  SynButtonGroup
3
- } from "../../chunks/chunk.EI34C7LC.js";
3
+ } from "../../chunks/chunk.MB3YZTYP.js";
4
+ import "../../chunks/chunk.WDX7XUUK.js";
4
5
  import "../../chunks/chunk.4ZURABYO.js";
5
- import "../../chunks/chunk.GHMKOVA3.js";
6
6
  import "../../chunks/chunk.O7USYXBT.js";
7
- import "../../chunks/chunk.DJOAQ4JU.js";
7
+ import "../../chunks/chunk.QNDC5KWA.js";
8
8
  export {
9
9
  SynButtonGroup as default
10
10
  };
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  button_group_default
3
- } from "../../chunks/chunk.RA2WSKQT.js";
4
- import "../../chunks/chunk.EI34C7LC.js";
3
+ } from "../../chunks/chunk.K4ELZCXB.js";
4
+ import "../../chunks/chunk.MB3YZTYP.js";
5
+ import "../../chunks/chunk.WDX7XUUK.js";
5
6
  import "../../chunks/chunk.4ZURABYO.js";
6
- import "../../chunks/chunk.GHMKOVA3.js";
7
7
  import "../../chunks/chunk.O7USYXBT.js";
8
- import "../../chunks/chunk.DJOAQ4JU.js";
8
+ import "../../chunks/chunk.QNDC5KWA.js";
9
9
  export {
10
10
  button_group_default as default
11
11
  };
@@ -2,7 +2,7 @@ import {
2
2
  button_group_styles_default
3
3
  } from "../../chunks/chunk.4ZURABYO.js";
4
4
  import "../../chunks/chunk.O7USYXBT.js";
5
- import "../../chunks/chunk.DJOAQ4JU.js";
5
+ import "../../chunks/chunk.QNDC5KWA.js";
6
6
  export {
7
7
  button_group_styles_default as default
8
8
  };
@@ -1,21 +1,21 @@
1
1
  import {
2
2
  SynCheckbox
3
- } from "../../chunks/chunk.5BOEKFIJ.js";
3
+ } from "../../chunks/chunk.Y4QKFZLK.js";
4
4
  import "../../chunks/chunk.WFAJR3FN.js";
5
- import "../../chunks/chunk.MFFJYORB.js";
6
- import "../../chunks/chunk.AMTCNRDE.js";
7
- import "../../chunks/chunk.4MYR27GF.js";
8
- import "../../chunks/chunk.RSONAU45.js";
9
- import "../../chunks/chunk.PJO6TM3T.js";
5
+ import "../../chunks/chunk.4CBN5LPQ.js";
6
+ import "../../chunks/chunk.2XZKXVMR.js";
7
+ import "../../chunks/chunk.2Z2GYRLO.js";
8
+ import "../../chunks/chunk.35PHCFSV.js";
10
9
  import "../../chunks/chunk.JRXQK6LG.js";
11
10
  import "../../chunks/chunk.6C4JXZZN.js";
12
11
  import "../../chunks/chunk.5AAIHRMI.js";
13
- import "../../chunks/chunk.VZ7S7YYN.js";
14
- import "../../chunks/chunk.GHMKOVA3.js";
12
+ import "../../chunks/chunk.RSONAU45.js";
13
+ import "../../chunks/chunk.PJO6TM3T.js";
14
+ import "../../chunks/chunk.AVTU2BGE.js";
15
15
  import "../../chunks/chunk.C7624ITA.js";
16
+ import "../../chunks/chunk.WDX7XUUK.js";
16
17
  import "../../chunks/chunk.O7USYXBT.js";
17
- import "../../chunks/chunk.2XZKXVMR.js";
18
- import "../../chunks/chunk.DJOAQ4JU.js";
18
+ import "../../chunks/chunk.QNDC5KWA.js";
19
19
  export {
20
20
  SynCheckbox as default
21
21
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  checkbox_custom_styles_default
3
3
  } from "../../chunks/chunk.2XZKXVMR.js";
4
- import "../../chunks/chunk.DJOAQ4JU.js";
4
+ import "../../chunks/chunk.QNDC5KWA.js";
5
5
  export {
6
6
  checkbox_custom_styles_default as default
7
7
  };
@@ -1,22 +1,22 @@
1
1
  import {
2
2
  checkbox_default
3
- } from "../../chunks/chunk.7KSU2SUD.js";
4
- import "../../chunks/chunk.5BOEKFIJ.js";
3
+ } from "../../chunks/chunk.MRAXEK5D.js";
4
+ import "../../chunks/chunk.Y4QKFZLK.js";
5
5
  import "../../chunks/chunk.WFAJR3FN.js";
6
- import "../../chunks/chunk.MFFJYORB.js";
7
- import "../../chunks/chunk.AMTCNRDE.js";
8
- import "../../chunks/chunk.4MYR27GF.js";
9
- import "../../chunks/chunk.RSONAU45.js";
10
- import "../../chunks/chunk.PJO6TM3T.js";
6
+ import "../../chunks/chunk.4CBN5LPQ.js";
7
+ import "../../chunks/chunk.2XZKXVMR.js";
8
+ import "../../chunks/chunk.2Z2GYRLO.js";
9
+ import "../../chunks/chunk.35PHCFSV.js";
11
10
  import "../../chunks/chunk.JRXQK6LG.js";
12
11
  import "../../chunks/chunk.6C4JXZZN.js";
13
12
  import "../../chunks/chunk.5AAIHRMI.js";
14
- import "../../chunks/chunk.VZ7S7YYN.js";
15
- import "../../chunks/chunk.GHMKOVA3.js";
13
+ import "../../chunks/chunk.RSONAU45.js";
14
+ import "../../chunks/chunk.PJO6TM3T.js";
15
+ import "../../chunks/chunk.AVTU2BGE.js";
16
16
  import "../../chunks/chunk.C7624ITA.js";
17
+ import "../../chunks/chunk.WDX7XUUK.js";
17
18
  import "../../chunks/chunk.O7USYXBT.js";
18
- import "../../chunks/chunk.2XZKXVMR.js";
19
- import "../../chunks/chunk.DJOAQ4JU.js";
19
+ import "../../chunks/chunk.QNDC5KWA.js";
20
20
  export {
21
21
  checkbox_default as default
22
22
  };
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  checkbox_styles_default
3
- } from "../../chunks/chunk.MFFJYORB.js";
4
- import "../../chunks/chunk.O7USYXBT.js";
3
+ } from "../../chunks/chunk.4CBN5LPQ.js";
5
4
  import "../../chunks/chunk.2XZKXVMR.js";
6
- import "../../chunks/chunk.DJOAQ4JU.js";
5
+ import "../../chunks/chunk.O7USYXBT.js";
6
+ import "../../chunks/chunk.QNDC5KWA.js";
7
7
  export {
8
8
  checkbox_styles_default as default
9
9
  };
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  SynDivider
3
- } from "../../chunks/chunk.HKCTVD3U.js";
3
+ } from "../../chunks/chunk.ERNEIORV.js";
4
4
  import "../../chunks/chunk.PGCXJ2PT.js";
5
5
  import "../../chunks/chunk.FA6V2WD6.js";
6
- import "../../chunks/chunk.VZ7S7YYN.js";
7
- import "../../chunks/chunk.GHMKOVA3.js";
6
+ import "../../chunks/chunk.AVTU2BGE.js";
7
+ import "../../chunks/chunk.WDX7XUUK.js";
8
8
  import "../../chunks/chunk.O7USYXBT.js";
9
- import "../../chunks/chunk.DJOAQ4JU.js";
9
+ import "../../chunks/chunk.QNDC5KWA.js";
10
10
  export {
11
11
  SynDivider as default
12
12
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  divider_custom_styles_default
3
3
  } from "../../chunks/chunk.FA6V2WD6.js";
4
- import "../../chunks/chunk.DJOAQ4JU.js";
4
+ import "../../chunks/chunk.QNDC5KWA.js";
5
5
  export {
6
6
  divider_custom_styles_default as default
7
7
  };
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  divider_default
3
- } from "../../chunks/chunk.B6AKFQJS.js";
4
- import "../../chunks/chunk.HKCTVD3U.js";
3
+ } from "../../chunks/chunk.WP6T5CG2.js";
4
+ import "../../chunks/chunk.ERNEIORV.js";
5
5
  import "../../chunks/chunk.PGCXJ2PT.js";
6
6
  import "../../chunks/chunk.FA6V2WD6.js";
7
- import "../../chunks/chunk.VZ7S7YYN.js";
8
- import "../../chunks/chunk.GHMKOVA3.js";
7
+ import "../../chunks/chunk.AVTU2BGE.js";
8
+ import "../../chunks/chunk.WDX7XUUK.js";
9
9
  import "../../chunks/chunk.O7USYXBT.js";
10
- import "../../chunks/chunk.DJOAQ4JU.js";
10
+ import "../../chunks/chunk.QNDC5KWA.js";
11
11
  export {
12
12
  divider_default as default
13
13
  };
@@ -3,7 +3,7 @@ import {
3
3
  } from "../../chunks/chunk.PGCXJ2PT.js";
4
4
  import "../../chunks/chunk.FA6V2WD6.js";
5
5
  import "../../chunks/chunk.O7USYXBT.js";
6
- import "../../chunks/chunk.DJOAQ4JU.js";
6
+ import "../../chunks/chunk.QNDC5KWA.js";
7
7
  export {
8
8
  divider_styles_default as default
9
9
  };
@@ -0,0 +1,109 @@
1
+ import Modal from '../../internal/modal.js';
2
+ import SynergyElement from '../../internal/synergy-element.js';
3
+ import SynIconButton from '../icon-button/icon-button.component.js';
4
+ import type { CSSResultGroup } from 'lit';
5
+ /**
6
+ * @summary Drawers slide in from a container to expose additional options and information.
7
+ * @documentation https://synergy.style/components/drawer
8
+ * @status stable
9
+ * @since 2.0
10
+ *
11
+ * @dependency syn-icon-button
12
+ *
13
+ * @slot - The drawer's main content.
14
+ * @slot label - The drawer's label. Alternatively, you can use the `label` attribute.
15
+ * @slot header-actions - Optional actions to add to the header. Works best with `<syn-icon-button>`.
16
+ * @slot footer - The drawer's footer, usually one or more buttons representing various options.
17
+ *
18
+ * @event syn-show - Emitted when the drawer opens.
19
+ * @event syn-after-show - Emitted after the drawer opens and all animations are complete.
20
+ * @event syn-hide - Emitted when the drawer closes.
21
+ * @event syn-after-hide - Emitted after the drawer closes and all animations are complete.
22
+ * @event syn-initial-focus - Emitted when the drawer opens and is ready to receive focus. Calling
23
+ * `event.preventDefault()` will prevent focusing and allow you to set it on a different element, such as an input.
24
+ * @event {{ source: 'close-button' | 'keyboard' | 'overlay' }} syn-request-close - Emitted when the user attempts to
25
+ * close the drawer by clicking the close button, clicking the overlay, or pressing escape. Calling
26
+ * `event.preventDefault()` will keep the drawer open. Avoid using this unless closing the drawer will result in
27
+ * destructive behavior such as data loss.
28
+ *
29
+ * @csspart base - The component's base wrapper.
30
+ * @csspart overlay - The overlay that covers the screen behind the drawer.
31
+ * @csspart panel - The drawer's panel (where the drawer and its content are rendered).
32
+ * @csspart header - The drawer's header. This element wraps the title and header actions.
33
+ * @csspart header-actions - Optional actions to add to the header. Works best with `<syn-icon-button>`.
34
+ * @csspart title - The drawer's title.
35
+ * @csspart close-button - The close button, an `<syn-icon-button>`.
36
+ * @csspart close-button__base - The close button's exported `base` part.
37
+ * @csspart body - The drawer's body.
38
+ * @csspart footer - The drawer's footer.
39
+ *
40
+ * @cssproperty --size - The preferred size of the drawer. This will be applied to the drawer's width or height
41
+ * depending on its `placement`. Note that the drawer will shrink to accommodate smaller screens.
42
+ * @cssproperty --header-spacing - The amount of padding to use for the header.
43
+ * @cssproperty --body-spacing - The amount of padding to use for the body.
44
+ * @cssproperty --footer-spacing - The amount of padding to use for the footer.
45
+ *
46
+ * @animation drawer.showTop - The animation to use when showing a drawer with `top` placement.
47
+ * @animation drawer.showEnd - The animation to use when showing a drawer with `end` placement.
48
+ * @animation drawer.showBottom - The animation to use when showing a drawer with `bottom` placement.
49
+ * @animation drawer.showStart - The animation to use when showing a drawer with `start` placement.
50
+ * @animation drawer.hideTop - The animation to use when hiding a drawer with `top` placement.
51
+ * @animation drawer.hideEnd - The animation to use when hiding a drawer with `end` placement.
52
+ * @animation drawer.hideBottom - The animation to use when hiding a drawer with `bottom` placement.
53
+ * @animation drawer.hideStart - The animation to use when hiding a drawer with `start` placement.
54
+ * @animation drawer.denyClose - The animation to use when a request to close the drawer is denied.
55
+ * @animation drawer.overlay.show - The animation to use when showing the drawer's overlay.
56
+ * @animation drawer.overlay.hide - The animation to use when hiding the drawer's overlay.
57
+ *
58
+ * @property modal - Exposes the internal modal utility that controls focus trapping. To temporarily disable focus
59
+ * trapping and allow third-party modals spawned from an active Synergy modal, call `modal.activateExternal()` when
60
+ * the third-party modal opens. Upon closing, call `modal.deactivateExternal()` to restore Synergy's focus trapping.
61
+ */
62
+ export default class SynDrawer extends SynergyElement {
63
+ static styles: CSSResultGroup;
64
+ static dependencies: {
65
+ 'syn-icon-button': typeof SynIconButton;
66
+ };
67
+ private readonly hasSlotController;
68
+ private readonly localize;
69
+ private originalTrigger;
70
+ modal: Modal;
71
+ drawer: HTMLElement;
72
+ panel: HTMLElement;
73
+ overlay: HTMLElement;
74
+ /**
75
+ * Indicates whether or not the drawer is open. You can toggle this attribute to show and hide the drawer, or you can
76
+ * use the `show()` and `hide()` methods and this attribute will reflect the drawer's open state.
77
+ */
78
+ open: boolean;
79
+ /**
80
+ * The drawer's label as displayed in the header. You should always include a relevant label even when using
81
+ * `no-header`, as it is required for proper accessibility. If you need to display HTML, use the `label` slot instead.
82
+ */
83
+ label: string;
84
+ /** The direction from which the drawer will open. */
85
+ placement: 'top' | 'end' | 'bottom' | 'start';
86
+ /**
87
+ * By default, the drawer slides out of its containing block (usually the viewport). To make the drawer slide out of
88
+ * its parent element, set this attribute and add `position: relative` to the parent.
89
+ */
90
+ contained: boolean;
91
+ /**
92
+ * Removes the header. This will also remove the default close button, so please ensure you provide an easy,
93
+ * accessible way for users to dismiss the drawer.
94
+ */
95
+ noHeader: boolean;
96
+ firstUpdated(): void;
97
+ disconnectedCallback(): void;
98
+ private requestClose;
99
+ private addOpenListeners;
100
+ private removeOpenListeners;
101
+ private handleDocumentKeyDown;
102
+ handleOpenChange(): Promise<void>;
103
+ handleNoModalChange(): void;
104
+ /** Shows the drawer. */
105
+ show(): Promise<void>;
106
+ /** Hides the drawer */
107
+ hide(): Promise<void>;
108
+ render(): import("lit").TemplateResult<1>;
109
+ }
@@ -0,0 +1,28 @@
1
+ import {
2
+ SynDrawer
3
+ } from "../../chunks/chunk.GZVDP7WZ.js";
4
+ import "../../chunks/chunk.2KKPNUPU.js";
5
+ import "../../chunks/chunk.QAUTITK3.js";
6
+ import "../../chunks/chunk.DAROCSFO.js";
7
+ import "../../chunks/chunk.2FN5DTS6.js";
8
+ import "../../chunks/chunk.OJF7KL44.js";
9
+ import "../../chunks/chunk.NV7W5R6V.js";
10
+ import "../../chunks/chunk.UYD2OVFV.js";
11
+ import "../../chunks/chunk.XGXFE6IF.js";
12
+ import "../../chunks/chunk.LAB4YJYE.js";
13
+ import "../../chunks/chunk.A3SKDWCT.js";
14
+ import "../../chunks/chunk.35PHCFSV.js";
15
+ import "../../chunks/chunk.JRXQK6LG.js";
16
+ import "../../chunks/chunk.6C4JXZZN.js";
17
+ import "../../chunks/chunk.5AAIHRMI.js";
18
+ import "../../chunks/chunk.RSONAU45.js";
19
+ import "../../chunks/chunk.PJO6TM3T.js";
20
+ import "../../chunks/chunk.AVTU2BGE.js";
21
+ import "../../chunks/chunk.C7624ITA.js";
22
+ import "../../chunks/chunk.WDX7XUUK.js";
23
+ import "../../chunks/chunk.O7USYXBT.js";
24
+ import "../../chunks/chunk.QNDC5KWA.js";
25
+ export {
26
+ SynDrawer as default
27
+ };
28
+ //# sourceMappingURL=drawer.component.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [],
5
+ "mappings": "",
6
+ "names": []
7
+ }
@@ -0,0 +1,2 @@
1
+ declare const _default: import("lit").CSSResult;
2
+ export default _default;
@@ -0,0 +1,8 @@
1
+ import {
2
+ drawer_custom_styles_default
3
+ } from "../../chunks/chunk.UYD2OVFV.js";
4
+ import "../../chunks/chunk.QNDC5KWA.js";
5
+ export {
6
+ drawer_custom_styles_default as default
7
+ };
8
+ //# sourceMappingURL=drawer.custom.styles.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [],
5
+ "mappings": "",
6
+ "names": []
7
+ }
@@ -0,0 +1,8 @@
1
+ import SynDrawer from './drawer.component.js';
2
+ export * from './drawer.component.js';
3
+ export default SynDrawer;
4
+ declare global {
5
+ interface HTMLElementTagNameMap {
6
+ 'syn-drawer': SynDrawer;
7
+ }
8
+ }
@@ -0,0 +1,29 @@
1
+ import {
2
+ drawer_default
3
+ } from "../../chunks/chunk.2IBWQADW.js";
4
+ import "../../chunks/chunk.GZVDP7WZ.js";
5
+ import "../../chunks/chunk.2KKPNUPU.js";
6
+ import "../../chunks/chunk.QAUTITK3.js";
7
+ import "../../chunks/chunk.DAROCSFO.js";
8
+ import "../../chunks/chunk.2FN5DTS6.js";
9
+ import "../../chunks/chunk.OJF7KL44.js";
10
+ import "../../chunks/chunk.NV7W5R6V.js";
11
+ import "../../chunks/chunk.UYD2OVFV.js";
12
+ import "../../chunks/chunk.XGXFE6IF.js";
13
+ import "../../chunks/chunk.LAB4YJYE.js";
14
+ import "../../chunks/chunk.A3SKDWCT.js";
15
+ import "../../chunks/chunk.35PHCFSV.js";
16
+ import "../../chunks/chunk.JRXQK6LG.js";
17
+ import "../../chunks/chunk.6C4JXZZN.js";
18
+ import "../../chunks/chunk.5AAIHRMI.js";
19
+ import "../../chunks/chunk.RSONAU45.js";
20
+ import "../../chunks/chunk.PJO6TM3T.js";
21
+ import "../../chunks/chunk.AVTU2BGE.js";
22
+ import "../../chunks/chunk.C7624ITA.js";
23
+ import "../../chunks/chunk.WDX7XUUK.js";
24
+ import "../../chunks/chunk.O7USYXBT.js";
25
+ import "../../chunks/chunk.QNDC5KWA.js";
26
+ export {
27
+ drawer_default as default
28
+ };
29
+ //# sourceMappingURL=drawer.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [],
5
+ "mappings": "",
6
+ "names": []
7
+ }
@@ -0,0 +1,2 @@
1
+ declare const _default: import("lit").CSSResult;
2
+ export default _default;