godown 3.13.4 → 3.14.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (278) hide show
  1. package/build/alert.js +1 -1
  2. package/build/avatar.js +1 -1
  3. package/build/badge.js +1 -1
  4. package/build/breath.js +1 -1
  5. package/build/button.js +1 -1
  6. package/build/card.js +1 -1
  7. package/build/carousel.js +1 -1
  8. package/build/chip.js +1 -1
  9. package/build/details.js +1 -1
  10. package/build/dialog.js +1 -1
  11. package/build/divider.js +1 -1
  12. package/build/dragbox.js +1 -1
  13. package/build/flex.js +1 -1
  14. package/build/form.js +1 -1
  15. package/build/godown.iife.js +16 -16
  16. package/build/godown.iife.js.map +1 -1
  17. package/build/godown.umd.js +16 -16
  18. package/build/godown.umd.js.map +1 -1
  19. package/build/grid.js +1 -1
  20. package/build/heading.js +1 -1
  21. package/build/index.d.ts +1 -1
  22. package/build/index.d.ts.map +1 -1
  23. package/build/index.js +1 -1
  24. package/build/input.js +1 -1
  25. package/build/internal/global-style.d.ts.map +1 -1
  26. package/build/internal/global-style.js +1 -1
  27. package/build/internal/global-style.js.map +1 -1
  28. package/build/internal/icons/caret-down.d.ts.map +1 -1
  29. package/build/internal/icons/caret-down.js +1 -1
  30. package/build/internal/icons/caret-down.js.map +1 -1
  31. package/build/internal/icons/caret-left.d.ts.map +1 -1
  32. package/build/internal/icons/caret-left.js +1 -1
  33. package/build/internal/icons/caret-left.js.map +1 -1
  34. package/build/internal/icons/caret-right.d.ts.map +1 -1
  35. package/build/internal/icons/caret-right.js +1 -1
  36. package/build/internal/icons/caret-right.js.map +1 -1
  37. package/build/internal/icons/eye-slash.d.ts.map +1 -1
  38. package/build/internal/icons/eye-slash.js +1 -1
  39. package/build/internal/icons/eye-slash.js.map +1 -1
  40. package/build/internal/popover.d.ts +1 -1
  41. package/build/internal/popover.d.ts.map +1 -1
  42. package/build/internal/popover.js +1 -1
  43. package/build/internal/popover.js.map +1 -1
  44. package/build/internal/reset-style.d.ts.map +1 -1
  45. package/build/internal/reset-style.js +2 -2
  46. package/build/internal/reset-style.js.map +1 -1
  47. package/build/internal/ring.d.ts.map +1 -1
  48. package/build/internal/ring.js +1 -1
  49. package/build/internal/ring.js.map +1 -1
  50. package/build/internal/super-input.d.ts.map +1 -1
  51. package/build/internal/super-input.js +2 -2
  52. package/build/internal/super-input.js.map +1 -1
  53. package/build/internal/utils.d.ts.map +1 -1
  54. package/build/internal/utils.js +1 -1
  55. package/build/internal/utils.js.map +1 -1
  56. package/build/layout.js +1 -1
  57. package/build/link.js +1 -1
  58. package/build/popover.js +1 -1
  59. package/build/progress.js +1 -1
  60. package/build/range.js +1 -1
  61. package/build/rotate.js +1 -1
  62. package/build/router.js +1 -1
  63. package/build/select.js +1 -1
  64. package/build/skeleton.js +1 -1
  65. package/build/split.js +1 -1
  66. package/build/switch.js +1 -1
  67. package/build/tabs.js +1 -1
  68. package/build/text.js +1 -1
  69. package/build/time.js +1 -1
  70. package/build/tooltip.js +1 -1
  71. package/build/typewriter.js +1 -1
  72. package/build/web-components/alert/component.d.ts.map +1 -1
  73. package/build/web-components/alert/component.js +1 -1
  74. package/build/web-components/alert/component.js.map +1 -1
  75. package/build/web-components/alert/definition.d.ts.map +1 -1
  76. package/build/web-components/alert/definition.js +1 -1
  77. package/build/web-components/alert/definition.js.map +1 -1
  78. package/build/web-components/avatar/component.d.ts.map +1 -1
  79. package/build/web-components/avatar/component.js +1 -1
  80. package/build/web-components/avatar/component.js.map +1 -1
  81. package/build/web-components/avatar/definition.d.ts.map +1 -1
  82. package/build/web-components/avatar/definition.js +1 -1
  83. package/build/web-components/avatar/definition.js.map +1 -1
  84. package/build/web-components/badge/component.d.ts.map +1 -1
  85. package/build/web-components/badge/component.js +2 -2
  86. package/build/web-components/badge/component.js.map +1 -1
  87. package/build/web-components/badge/definition.d.ts.map +1 -1
  88. package/build/web-components/badge/definition.js +1 -1
  89. package/build/web-components/badge/definition.js.map +1 -1
  90. package/build/web-components/breath/component.d.ts.map +1 -1
  91. package/build/web-components/breath/component.js +1 -1
  92. package/build/web-components/breath/component.js.map +1 -1
  93. package/build/web-components/breath/definition.d.ts.map +1 -1
  94. package/build/web-components/breath/definition.js +1 -1
  95. package/build/web-components/breath/definition.js.map +1 -1
  96. package/build/web-components/button/component.d.ts.map +1 -1
  97. package/build/web-components/button/component.js +1 -1
  98. package/build/web-components/button/component.js.map +1 -1
  99. package/build/web-components/button/definition.d.ts.map +1 -1
  100. package/build/web-components/button/definition.js +1 -1
  101. package/build/web-components/button/definition.js.map +1 -1
  102. package/build/web-components/card/component.d.ts.map +1 -1
  103. package/build/web-components/card/component.js +1 -1
  104. package/build/web-components/card/component.js.map +1 -1
  105. package/build/web-components/card/definition.d.ts.map +1 -1
  106. package/build/web-components/card/definition.js +1 -1
  107. package/build/web-components/card/definition.js.map +1 -1
  108. package/build/web-components/carousel/component.d.ts.map +1 -1
  109. package/build/web-components/carousel/component.js +2 -2
  110. package/build/web-components/carousel/component.js.map +1 -1
  111. package/build/web-components/carousel/definition.d.ts.map +1 -1
  112. package/build/web-components/carousel/definition.js +1 -1
  113. package/build/web-components/carousel/definition.js.map +1 -1
  114. package/build/web-components/chip/component.d.ts.map +1 -1
  115. package/build/web-components/chip/component.js +1 -1
  116. package/build/web-components/chip/component.js.map +1 -1
  117. package/build/web-components/chip/definition.d.ts.map +1 -1
  118. package/build/web-components/chip/definition.js +1 -1
  119. package/build/web-components/chip/definition.js.map +1 -1
  120. package/build/web-components/details/component.d.ts.map +1 -1
  121. package/build/web-components/details/component.js +1 -1
  122. package/build/web-components/details/component.js.map +1 -1
  123. package/build/web-components/details/definition.d.ts.map +1 -1
  124. package/build/web-components/details/definition.js +1 -1
  125. package/build/web-components/details/definition.js.map +1 -1
  126. package/build/web-components/dialog/component.d.ts.map +1 -1
  127. package/build/web-components/dialog/component.js +1 -1
  128. package/build/web-components/dialog/component.js.map +1 -1
  129. package/build/web-components/dialog/definition.d.ts.map +1 -1
  130. package/build/web-components/dialog/definition.js +1 -1
  131. package/build/web-components/dialog/definition.js.map +1 -1
  132. package/build/web-components/divider/component.d.ts.map +1 -1
  133. package/build/web-components/divider/component.js +1 -1
  134. package/build/web-components/divider/component.js.map +1 -1
  135. package/build/web-components/divider/definition.d.ts.map +1 -1
  136. package/build/web-components/divider/definition.js +1 -1
  137. package/build/web-components/divider/definition.js.map +1 -1
  138. package/build/web-components/dragbox/component.d.ts.map +1 -1
  139. package/build/web-components/dragbox/component.js +2 -2
  140. package/build/web-components/dragbox/component.js.map +1 -1
  141. package/build/web-components/dragbox/definition.d.ts.map +1 -1
  142. package/build/web-components/dragbox/definition.js +1 -1
  143. package/build/web-components/dragbox/definition.js.map +1 -1
  144. package/build/web-components/flex/component.d.ts.map +1 -1
  145. package/build/web-components/flex/component.js +2 -2
  146. package/build/web-components/flex/component.js.map +1 -1
  147. package/build/web-components/flex/definition.d.ts.map +1 -1
  148. package/build/web-components/flex/definition.js +1 -1
  149. package/build/web-components/flex/definition.js.map +1 -1
  150. package/build/web-components/form/component.d.ts.map +1 -1
  151. package/build/web-components/form/component.js +2 -2
  152. package/build/web-components/form/component.js.map +1 -1
  153. package/build/web-components/form/definition.d.ts.map +1 -1
  154. package/build/web-components/form/definition.js +1 -1
  155. package/build/web-components/form/definition.js.map +1 -1
  156. package/build/web-components/grid/component.d.ts.map +1 -1
  157. package/build/web-components/grid/component.js +2 -2
  158. package/build/web-components/grid/component.js.map +1 -1
  159. package/build/web-components/grid/definition.d.ts.map +1 -1
  160. package/build/web-components/grid/definition.js +1 -1
  161. package/build/web-components/grid/definition.js.map +1 -1
  162. package/build/web-components/heading/component.d.ts.map +1 -1
  163. package/build/web-components/heading/component.js +2 -2
  164. package/build/web-components/heading/component.js.map +1 -1
  165. package/build/web-components/heading/definition.d.ts.map +1 -1
  166. package/build/web-components/heading/definition.js +1 -1
  167. package/build/web-components/heading/definition.js.map +1 -1
  168. package/build/web-components/input/component.d.ts.map +1 -1
  169. package/build/web-components/input/component.js +1 -1
  170. package/build/web-components/input/component.js.map +1 -1
  171. package/build/web-components/input/definition.d.ts.map +1 -1
  172. package/build/web-components/input/definition.js +1 -1
  173. package/build/web-components/input/definition.js.map +1 -1
  174. package/build/web-components/layout/component.d.ts.map +1 -1
  175. package/build/web-components/layout/component.js +2 -2
  176. package/build/web-components/layout/component.js.map +1 -1
  177. package/build/web-components/layout/definition.d.ts.map +1 -1
  178. package/build/web-components/layout/definition.js +1 -1
  179. package/build/web-components/layout/definition.js.map +1 -1
  180. package/build/web-components/link/component.d.ts.map +1 -1
  181. package/build/web-components/link/component.js +2 -2
  182. package/build/web-components/link/component.js.map +1 -1
  183. package/build/web-components/link/definition.d.ts.map +1 -1
  184. package/build/web-components/link/definition.js +1 -1
  185. package/build/web-components/link/definition.js.map +1 -1
  186. package/build/web-components/popover/component.d.ts.map +1 -1
  187. package/build/web-components/popover/component.js +2 -2
  188. package/build/web-components/popover/component.js.map +1 -1
  189. package/build/web-components/popover/definition.d.ts.map +1 -1
  190. package/build/web-components/popover/definition.js +1 -1
  191. package/build/web-components/popover/definition.js.map +1 -1
  192. package/build/web-components/progress/component.d.ts.map +1 -1
  193. package/build/web-components/progress/component.js +1 -1
  194. package/build/web-components/progress/component.js.map +1 -1
  195. package/build/web-components/progress/definition.d.ts.map +1 -1
  196. package/build/web-components/progress/definition.js +1 -1
  197. package/build/web-components/progress/definition.js.map +1 -1
  198. package/build/web-components/range/component.d.ts.map +1 -1
  199. package/build/web-components/range/component.js +1 -1
  200. package/build/web-components/range/component.js.map +1 -1
  201. package/build/web-components/range/definition.d.ts.map +1 -1
  202. package/build/web-components/range/definition.js +1 -1
  203. package/build/web-components/range/definition.js.map +1 -1
  204. package/build/web-components/rotate/component.d.ts.map +1 -1
  205. package/build/web-components/rotate/component.js +1 -1
  206. package/build/web-components/rotate/component.js.map +1 -1
  207. package/build/web-components/rotate/definition.d.ts.map +1 -1
  208. package/build/web-components/rotate/definition.js +1 -1
  209. package/build/web-components/rotate/definition.js.map +1 -1
  210. package/build/web-components/router/component.d.ts.map +1 -1
  211. package/build/web-components/router/component.js +2 -2
  212. package/build/web-components/router/component.js.map +1 -1
  213. package/build/web-components/router/definition.d.ts.map +1 -1
  214. package/build/web-components/router/definition.js +1 -1
  215. package/build/web-components/router/definition.js.map +1 -1
  216. package/build/web-components/select/component.d.ts.map +1 -1
  217. package/build/web-components/select/component.js +2 -2
  218. package/build/web-components/select/component.js.map +1 -1
  219. package/build/web-components/select/definition.d.ts.map +1 -1
  220. package/build/web-components/select/definition.js +1 -1
  221. package/build/web-components/select/definition.js.map +1 -1
  222. package/build/web-components/skeleton/component.d.ts.map +1 -1
  223. package/build/web-components/skeleton/component.js +1 -1
  224. package/build/web-components/skeleton/component.js.map +1 -1
  225. package/build/web-components/skeleton/definition.d.ts.map +1 -1
  226. package/build/web-components/skeleton/definition.js +1 -1
  227. package/build/web-components/skeleton/definition.js.map +1 -1
  228. package/build/web-components/split/component.d.ts.map +1 -1
  229. package/build/web-components/split/component.js +1 -1
  230. package/build/web-components/split/component.js.map +1 -1
  231. package/build/web-components/split/definition.d.ts.map +1 -1
  232. package/build/web-components/split/definition.js +1 -1
  233. package/build/web-components/split/definition.js.map +1 -1
  234. package/build/web-components/switch/component.d.ts.map +1 -1
  235. package/build/web-components/switch/component.js +1 -1
  236. package/build/web-components/switch/component.js.map +1 -1
  237. package/build/web-components/switch/definition.d.ts.map +1 -1
  238. package/build/web-components/switch/definition.js +1 -1
  239. package/build/web-components/switch/definition.js.map +1 -1
  240. package/build/web-components/tabs/component.d.ts +10 -3
  241. package/build/web-components/tabs/component.d.ts.map +1 -1
  242. package/build/web-components/tabs/component.js +1 -1
  243. package/build/web-components/tabs/component.js.map +1 -1
  244. package/build/web-components/tabs/definition.d.ts.map +1 -1
  245. package/build/web-components/tabs/definition.js +1 -1
  246. package/build/web-components/tabs/definition.js.map +1 -1
  247. package/build/web-components/text/component.d.ts.map +1 -1
  248. package/build/web-components/text/component.js +1 -1
  249. package/build/web-components/text/component.js.map +1 -1
  250. package/build/web-components/text/definition.d.ts.map +1 -1
  251. package/build/web-components/text/definition.js +1 -1
  252. package/build/web-components/text/definition.js.map +1 -1
  253. package/build/web-components/time/component.d.ts.map +1 -1
  254. package/build/web-components/time/component.js +1 -1
  255. package/build/web-components/time/component.js.map +1 -1
  256. package/build/web-components/time/definition.d.ts.map +1 -1
  257. package/build/web-components/time/definition.js +1 -1
  258. package/build/web-components/time/definition.js.map +1 -1
  259. package/build/web-components/tooltip/component.d.ts.map +1 -1
  260. package/build/web-components/tooltip/component.js +1 -1
  261. package/build/web-components/tooltip/component.js.map +1 -1
  262. package/build/web-components/tooltip/definition.d.ts.map +1 -1
  263. package/build/web-components/tooltip/definition.js +1 -1
  264. package/build/web-components/tooltip/definition.js.map +1 -1
  265. package/build/web-components/typewriter/component.d.ts.map +1 -1
  266. package/build/web-components/typewriter/component.js +1 -1
  267. package/build/web-components/typewriter/component.js.map +1 -1
  268. package/build/web-components/typewriter/definition.d.ts.map +1 -1
  269. package/build/web-components/typewriter/definition.js +1 -1
  270. package/build/web-components/typewriter/definition.js.map +1 -1
  271. package/custom-elements.json +1 -1
  272. package/package.json +4 -4
  273. package/src/index.ts +1 -1
  274. package/src/internal/popover.ts +8 -12
  275. package/src/internal/ring.ts +3 -1
  276. package/src/web-components/breath/component.ts +3 -1
  277. package/src/web-components/tabs/component.ts +19 -6
  278. package/web-types.json +7 -2
@@ -1 +1 @@
1
- {"mappings":"AACA,cAAc,sBAAiC,KAAM;AAGrD,SAAS,mBAAkC,gCAAiC;;;;;;AAS5E,cAsCM,aAAa,YAAY;CAC7B,AAWA,WAAW,SAAS,UAAU,WAAW;CAEzC,AACA;CAEA,AACA;CAEA,AACA;CAEA,AACA;CAEA,UAAU,UAAU,eAAe;AAKpC;AAED,eAAe;AACf,SAAS","names":[],"sources":["../../../../src/web-components/text/component.ts"],"sourcesContent":["import { godown, htmlSlot, styles } from \"@godown/element\";\nimport { type TemplateResult, css, html } from \"lit\";\nimport { property } from \"lit/decorators.js\";\n\nimport { GlobalStyle, cssGlobalVars } from \"../../internal/global-style.js\";\n\nconst protoName = \"text\";\n\n/**\n * {@linkcode Text} renders text.\n *\n * @category display\n */\n@godown(protoName)\n@styles(css`\n :host([clip]) {\n background: var(${cssGlobalVars.backgroundClip});\n display: inline-block;\n color: transparent;\n -webkit-text-fill-color: transparent;\n background-clip: text;\n -webkit-background-clip: text;\n }\n\n :host([nowrap]) {\n white-space: nowrap;\n }\n\n :host([italic]) {\n font-style: italic;\n }\n\n :host([truncate]),\n :host([truncate]) ::slotted(*) {\n max-width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n :host([strikethrough]) {\n text-decoration: line-through;\n }\n\n :host([underline=\"\"]),\n :host([underline=\"always\"]),\n :host(:hover[underline=\"hover\"]),\n :host(:active[underline=\"active\"]),\n :host(:focus[underline=\"focus\"]) {\n text-decoration: underline;\n }\n`)\nclass Text extends GlobalStyle {\n @property({\n converter: {\n fromAttribute(value) {\n return value === \"\" ? true : value;\n },\n toAttribute(value) {\n return value === false ? null : value === true ? \"\" : value;\n },\n },\n reflect: true,\n })\n underline: \"none\" | \"hover\" | \"active\" | \"always\" | boolean = \"none\";\n\n @property({ type: Boolean, reflect: true })\n nowrap = false;\n\n @property({ type: Boolean, reflect: true })\n italic = false;\n\n @property({ type: Boolean, reflect: true })\n truncate = false;\n\n @property({ type: Boolean, reflect: true })\n clip = false;\n\n protected render(): TemplateResult<1> {\n return html`\n <p part=\"root\">${htmlSlot()}</p>\n `;\n }\n}\n\nexport default Text;\nexport { Text };\n"],"version":3,"file":"component.d.ts"}
1
+ {"mappings":"AACA,cAAc,sBAAiC;AAG/C,SAAS,mBAAkC;;;;;;AAS3C,cAsCM,aAAa,YAAY;CAC7B,AAWA,WAAW,SAAS,UAAU,WAAW;CAEzC,AACA;CAEA,AACA;CAEA,AACA;CAEA,AACA;CAEA,UAAU,UAAU,eAAe;;AAOrC,eAAe;AACf,SAAS","names":[],"sources":["../../../../src/web-components/text/component.ts"],"sourcesContent":["import { godown, htmlSlot, styles } from \"@godown/element\";\nimport { type TemplateResult, css, html } from \"lit\";\nimport { property } from \"lit/decorators.js\";\n\nimport { GlobalStyle, cssGlobalVars } from \"../../internal/global-style.js\";\n\nconst protoName = \"text\";\n\n/**\n * {@linkcode Text} renders text.\n *\n * @category display\n */\n@godown(protoName)\n@styles(css`\n :host([clip]) {\n background: var(${cssGlobalVars.backgroundClip});\n display: inline-block;\n color: transparent;\n -webkit-text-fill-color: transparent;\n background-clip: text;\n -webkit-background-clip: text;\n }\n\n :host([nowrap]) {\n white-space: nowrap;\n }\n\n :host([italic]) {\n font-style: italic;\n }\n\n :host([truncate]),\n :host([truncate]) ::slotted(*) {\n max-width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n :host([strikethrough]) {\n text-decoration: line-through;\n }\n\n :host([underline=\"\"]),\n :host([underline=\"always\"]),\n :host(:hover[underline=\"hover\"]),\n :host(:active[underline=\"active\"]),\n :host(:focus[underline=\"focus\"]) {\n text-decoration: underline;\n }\n`)\nclass Text extends GlobalStyle {\n @property({\n converter: {\n fromAttribute(value) {\n return value === \"\" ? true : value;\n },\n toAttribute(value) {\n return value === false ? null : value === true ? \"\" : value;\n },\n },\n reflect: true,\n })\n underline: \"none\" | \"hover\" | \"active\" | \"always\" | boolean = \"none\";\n\n @property({ type: Boolean, reflect: true })\n nowrap = false;\n\n @property({ type: Boolean, reflect: true })\n italic = false;\n\n @property({ type: Boolean, reflect: true })\n truncate = false;\n\n @property({ type: Boolean, reflect: true })\n clip = false;\n\n protected render(): TemplateResult<1> {\n return html`\n <p part=\"root\">${htmlSlot()}</p>\n `;\n }\n}\n\nexport default Text;\nexport { Text };\n"],"version":3,"file":"component.d.ts"}
@@ -1,2 +1,2 @@
1
- import{godown,styles,htmlSlot}from"@godown/element";import{css,html}from"lit";import{property}from"lit/decorators.js";import{cssGlobalVars,GlobalStyle}from"../../internal/global-style.js";import _decorate from"@oxc-project/runtime/helpers/decorate";import"../../internal/reset-style.js";import"sharekit";const protoName=`text`;let Text=class e extends GlobalStyle{constructor(...e){super(...e),this.underline=`none`,this.nowrap=!1,this.italic=!1,this.truncate=!1,this.clip=!1}render(){return html`<p part="root">${htmlSlot()}</p>`}};_decorate([property({converter:{fromAttribute(e){return e===``?!0:e},toAttribute(e){return e===!1?null:e===!0?``:e}},reflect:!0})],Text.prototype,`underline`,void 0),_decorate([property({type:Boolean,reflect:!0})],Text.prototype,`nowrap`,void 0),_decorate([property({type:Boolean,reflect:!0})],Text.prototype,`italic`,void 0),_decorate([property({type:Boolean,reflect:!0})],Text.prototype,`truncate`,void 0),_decorate([property({type:Boolean,reflect:!0})],Text.prototype,`clip`,void 0),Text=_decorate([godown(protoName),styles(css`:host([clip]){background:var(${cssGlobalVars.backgroundClip});display:inline-block;color:transparent;-webkit-text-fill-color:transparent;background-clip:text;-webkit-background-clip:text}:host([nowrap]){white-space:nowrap}:host([italic]){font-style:italic}:host([truncate]),:host([truncate]) ::slotted(*){max-width:100%;overflow:hidden;text-overflow:ellipsis}:host([strikethrough]){text-decoration:line-through}:host([underline=""]),:host([underline="always"]),:host(:hover[underline="hover"]),:host(:active[underline="active"]),:host(:focus[underline="focus"]){text-decoration:underline}`)],Text);var Text$1=Text;export{Text,Text$1 as default};
1
+ import{godown as e,styles as t,htmlSlot as n}from"@godown/element";import{css as r,html as i}from"lit";import{property as a}from"lit/decorators.js";import{cssGlobalVars as o,GlobalStyle as s}from"../../internal/global-style.js";import c from"@oxc-project/runtime/helpers/decorate";const l=`text`;let u=class e extends s{constructor(...e){super(...e),this.underline=`none`,this.nowrap=!1,this.italic=!1,this.truncate=!1,this.clip=!1}render(){return i`<p part="root">${n()}</p>`}};c([a({converter:{fromAttribute(e){return e===``?!0:e},toAttribute(e){return e===!1?null:e===!0?``:e}},reflect:!0})],u.prototype,`underline`,void 0),c([a({type:Boolean,reflect:!0})],u.prototype,`nowrap`,void 0),c([a({type:Boolean,reflect:!0})],u.prototype,`italic`,void 0),c([a({type:Boolean,reflect:!0})],u.prototype,`truncate`,void 0),c([a({type:Boolean,reflect:!0})],u.prototype,`clip`,void 0),u=c([e(`text`),t(r`:host([clip]){background:var(${o.backgroundClip});display:inline-block;color:transparent;-webkit-text-fill-color:transparent;background-clip:text;-webkit-background-clip:text}:host([nowrap]){white-space:nowrap}:host([italic]){font-style:italic}:host([truncate]),:host([truncate]) ::slotted(*){max-width:100%;overflow:hidden;text-overflow:ellipsis}:host([strikethrough]){text-decoration:line-through}:host([underline=""]),:host([underline="always"]),:host(:hover[underline="hover"]),:host(:active[underline="active"]),:host(:focus[underline="focus"]){text-decoration:underline}`)],u);var d=u;export{u as Text,d as default};
2
2
  //# sourceMappingURL=component.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"component.js","sources":["../../../src/web-components/text/component.ts"],"sourcesContent":["import { godown, htmlSlot, styles } from \"@godown/element\";\nimport { type TemplateResult, css, html } from \"lit\";\nimport { property } from \"lit/decorators.js\";\n\nimport { GlobalStyle, cssGlobalVars } from \"../../internal/global-style.js\";\n\nconst protoName = \"text\";\n\n/**\n * {@linkcode Text} renders text.\n *\n * @category display\n */\n@godown(protoName)\n@styles(css`\n :host([clip]) {\n background: var(${cssGlobalVars.backgroundClip});\n display: inline-block;\n color: transparent;\n -webkit-text-fill-color: transparent;\n background-clip: text;\n -webkit-background-clip: text;\n }\n\n :host([nowrap]) {\n white-space: nowrap;\n }\n\n :host([italic]) {\n font-style: italic;\n }\n\n :host([truncate]),\n :host([truncate]) ::slotted(*) {\n max-width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n :host([strikethrough]) {\n text-decoration: line-through;\n }\n\n :host([underline=\"\"]),\n :host([underline=\"always\"]),\n :host(:hover[underline=\"hover\"]),\n :host(:active[underline=\"active\"]),\n :host(:focus[underline=\"focus\"]) {\n text-decoration: underline;\n }\n`)\nclass Text extends GlobalStyle {\n @property({\n converter: {\n fromAttribute(value) {\n return value === \"\" ? true : value;\n },\n toAttribute(value) {\n return value === false ? null : value === true ? \"\" : value;\n },\n },\n reflect: true,\n })\n underline: \"none\" | \"hover\" | \"active\" | \"always\" | boolean = \"none\";\n\n @property({ type: Boolean, reflect: true })\n nowrap = false;\n\n @property({ type: Boolean, reflect: true })\n italic = false;\n\n @property({ type: Boolean, reflect: true })\n truncate = false;\n\n @property({ type: Boolean, reflect: true })\n clip = false;\n\n protected render(): TemplateResult<1> {\n return html`\n <p part=\"root\">${htmlSlot()}</p>\n `;\n }\n}\n\nexport default Text;\nexport { Text };\n"],"names":["Text","value"],"mappings":"gTAMA,MAAM,UAAY,OAOlB,IAAA,KAAA,MAsCMA,UAAa,WAAY,oCAY7B,UAA8D,YAG9D,OAAS,QAGT,OAAS,QAGT,SAAW,QAGX,KAAO,GAEG,QAA4B,CACpC,MAAO,KAAI,CAAA,eACM,EAAE,UAAU,CAAC,IAC9B,CAAC,AACF,CACF,aA9BE,SAAS,CACR,UAAW,CACT,cAAcC,EAAO,CACnB,OAAOA,IAAU,GAAK,GAAOA,CAC9B,EACD,YAAYA,EAAO,CACjB,OAAOA,IAAU,GAAQ,KAAOA,IAAU,GAAO,GAAKA,CACvD,CACF,EACD,QAAS,EACV,EAAC,AAAA,EAAA,KAAA,UAAA,YAAA,IAAA,GAAA,YAGD,SAAS,CAAE,KAAM,QAAS,QAAS,EAAM,EAAC,AAAA,EAAA,KAAA,UAAA,SAAA,IAAA,GAAA,YAG1C,SAAS,CAAE,KAAM,QAAS,QAAS,EAAM,EAAC,AAAA,EAAA,KAAA,UAAA,SAAA,IAAA,GAAA,YAG1C,SAAS,CAAE,KAAM,QAAS,QAAS,EAAM,EAAC,AAAA,EAAA,KAAA,UAAA,WAAA,IAAA,GAAA,YAG1C,SAAS,CAAE,KAAM,QAAS,QAAS,EAAM,EAAC,AAAA,EAAA,KAAA,UAAA,OAAA,IAAA,GAAA,CA7D5C,KAAA,UAAA,CAAA,OAAO,UAAU,CACjB,OAAO,GAAG,CAAC,6BAEQ,EAAE,cAAc,eAAe,ghBAkCnD,CAAC,CAAC,AAAA,EAAA,KAAA,CAkCF,IAAA,OAAe"}
1
+ {"version":3,"file":"component.js","sources":["../../../src/web-components/text/component.ts"],"sourcesContent":["import { godown, htmlSlot, styles } from \"@godown/element\";\nimport { type TemplateResult, css, html } from \"lit\";\nimport { property } from \"lit/decorators.js\";\n\nimport { GlobalStyle, cssGlobalVars } from \"../../internal/global-style.js\";\n\nconst protoName = \"text\";\n\n/**\n * {@linkcode Text} renders text.\n *\n * @category display\n */\n@godown(protoName)\n@styles(css`\n :host([clip]) {\n background: var(${cssGlobalVars.backgroundClip});\n display: inline-block;\n color: transparent;\n -webkit-text-fill-color: transparent;\n background-clip: text;\n -webkit-background-clip: text;\n }\n\n :host([nowrap]) {\n white-space: nowrap;\n }\n\n :host([italic]) {\n font-style: italic;\n }\n\n :host([truncate]),\n :host([truncate]) ::slotted(*) {\n max-width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n :host([strikethrough]) {\n text-decoration: line-through;\n }\n\n :host([underline=\"\"]),\n :host([underline=\"always\"]),\n :host(:hover[underline=\"hover\"]),\n :host(:active[underline=\"active\"]),\n :host(:focus[underline=\"focus\"]) {\n text-decoration: underline;\n }\n`)\nclass Text extends GlobalStyle {\n @property({\n converter: {\n fromAttribute(value) {\n return value === \"\" ? true : value;\n },\n toAttribute(value) {\n return value === false ? null : value === true ? \"\" : value;\n },\n },\n reflect: true,\n })\n underline: \"none\" | \"hover\" | \"active\" | \"always\" | boolean = \"none\";\n\n @property({ type: Boolean, reflect: true })\n nowrap = false;\n\n @property({ type: Boolean, reflect: true })\n italic = false;\n\n @property({ type: Boolean, reflect: true })\n truncate = false;\n\n @property({ type: Boolean, reflect: true })\n clip = false;\n\n protected render(): TemplateResult<1> {\n return html`\n <p part=\"root\">${htmlSlot()}</p>\n `;\n }\n}\n\nexport default Text;\nexport { Text };\n"],"names":["protoName","Text","GlobalStyle","htmlSlot","property","value","godown","styles","cssGlobalVars","Text$1"],"mappings":"yRAMA,MAAMA,EAAY,OAOlB,IAAAC,EAAA,MAsCMA,UAAaC,CAAY,oCAY7B,UAA8D,YAG9D,OAAS,QAGT,OAAS,QAGT,SAAW,QAGX,KAAO,GAEG,QAA4B,CACpC,MAAO,EAAI,kBACQC,IAAW,WA3B/BC,EAAS,CACR,UAAW,CACT,cAAc,EAAO,CACnB,OAAOC,IAAU,GAAK,GAAOA,GAE/B,YAAY,EAAO,CACjB,OAAOA,IAAU,GAAQ,KAAOA,IAAU,GAAO,GAAKA,IAG1D,QAAS,yCAIVD,EAAS,CAAE,KAAM,QAAS,QAAS,sCAGnCA,EAAS,CAAE,KAAM,QAAS,QAAS,sCAGnCA,EAAS,CAAE,KAAM,QAAS,QAAS,wCAGnCA,EAAS,CAAE,KAAM,QAAS,QAAS,sCA7DrCE,EAAO,QACPC,EAAO,CAAG,gCAEWC,EAAc,eAAe,uhBAoEnD,IAAAC,EAAeR"}
@@ -1 +1 @@
1
- {"mappings":"AAAA,OAAO,UAAU,gBAAiB;AAIlC,eAAe;eAEA;WACH,sBAAsB;EAC9B,eAAe;CAChB;AACF","names":[],"sources":["../../../../src/web-components/text/definition.ts"],"sourcesContent":["import Text from \"./component.js\";\n\nText.define();\n\nexport default Text;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"godown-text\": Text;\n }\n}\n"],"version":3,"file":"definition.d.ts"}
1
+ {"mappings":"AAAA,OAAO,UAAU;AAIjB,eAAe;eAEA;WACH,sBAAsB;EAC9B,eAAe","names":[],"sources":["../../../../src/web-components/text/definition.ts"],"sourcesContent":["import Text from \"./component.js\";\n\nText.define();\n\nexport default Text;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"godown-text\": Text;\n }\n}\n"],"version":3,"file":"definition.d.ts"}
@@ -1,2 +1,2 @@
1
- import Text from"./component.js";import"@godown/element";import"lit";import"lit/decorators.js";import"../../internal/global-style.js";import"../../internal/reset-style.js";import"sharekit";import"@oxc-project/runtime/helpers/decorate";Text.define();export{Text as default};
1
+ import e from"./component.js";e.define();export{e as default};
2
2
  //# sourceMappingURL=definition.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"definition.js","sources":["../../../src/web-components/text/definition.ts"],"sourcesContent":["import Text from \"./component.js\";\n\nText.define();\n\nexport default Text;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"godown-text\": Text;\n }\n}\n"],"names":[],"mappings":"2OAEA,KAAK,QAAQ"}
1
+ {"version":3,"file":"definition.js","sources":["../../../src/web-components/text/definition.ts"],"sourcesContent":["import Text from \"./component.js\";\n\nText.define();\n\nexport default Text;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"godown-text\": Text;\n }\n}\n"],"names":["Text"],"mappings":"8BAEAA,EAAK"}
@@ -1 +1 @@
1
- {"mappings":"AAEA,cAAc,qBAAqB,sBAA4B,KAAM;AAGrE,OAAO,UAAU,sBAAuB;;;;;;;AAUxC,cACM,aAAa,KAAK;;;;CAItB,AACA;;;;CAKA,AACA;;;;CAKA,AACA,MAAM;;;;CAKN,AACA;;;;CAKA,AACA;CAEA,UAAU;CAEV,UAAU,UAAU,eAAe;CAMnC,UAAU,QAAQA,mBAAmB;AAWtC;AAED,eAAe;AACf,SAAS","names":["changedProperties: PropertyValues"],"sources":["../../../../src/web-components/time/component.ts"],"sourcesContent":["import { godown } from \"@godown/element\";\nimport fmtime from \"fmtime\";\nimport { type PropertyValues, type TemplateResult, html } from \"lit\";\nimport { property } from \"lit/decorators.js\";\n\nimport Text from \"../text/component.js\";\n\nconst protoName = \"time\";\n\n/**\n * {@linkcode Time} renders a formatting time.\n *\n * @fires time - Fires when the time changes.\n * @category display\n */\n@godown(protoName)\nclass Time extends Text {\n /**\n * Escape symbol.\n */\n @property()\n escape = \"%\";\n\n /**\n * Format strings.\n */\n @property()\n format = \"YYYY-MM-DD hh:mm:ss\";\n\n /**\n * Time.\n */\n @property({ type: Object })\n time: Date = new Date();\n\n /**\n * If there is a value, update every gap or timeout.\n */\n @property({ type: Number })\n timeout: number;\n\n /**\n * The number of milliseconds that change with each update.\n */\n @property({ type: Number })\n gap: number;\n\n protected timeoutId: number;\n\n protected render(): TemplateResult<1> {\n return html`\n <p part=\"root\">${fmtime(this.format, this.time, this.escape)}</p>\n `;\n }\n\n protected updated(changedProperties: PropertyValues): void {\n if (changedProperties.has(\"timeout\") && this.timeout) {\n this.timeouts.remove(this.timeoutId);\n this.timeoutId = this.timeouts.add(\n setInterval(() => {\n this.dispatchCustomEvent(\"time\", this.time);\n this.time = new Date(this.time.getTime() + (this.gap || this.timeout));\n }, Math.abs(this.timeout)),\n );\n }\n }\n}\n\nexport default Time;\nexport { Time };\n"],"version":3,"file":"component.d.ts"}
1
+ {"mappings":"AAEA,cAAc,qBAAqB,sBAA4B;AAG/D,OAAO,UAAU;;;;;;;AAUjB,cACM,aAAa,KAAK;;;;CAItB,AACA;;;;CAKA,AACA;;;;CAKA,AACA,MAAM;;;;CAKN,AACA;;;;CAKA,AACA;CAEA,UAAU;CAEV,UAAU,UAAU,eAAe;CAMnC,UAAU,QAAQ,mBAAmB;;AAavC,eAAe;AACf,SAAS","names":[],"sources":["../../../../src/web-components/time/component.ts"],"sourcesContent":["import { godown } from \"@godown/element\";\nimport fmtime from \"fmtime\";\nimport { type PropertyValues, type TemplateResult, html } from \"lit\";\nimport { property } from \"lit/decorators.js\";\n\nimport Text from \"../text/component.js\";\n\nconst protoName = \"time\";\n\n/**\n * {@linkcode Time} renders a formatting time.\n *\n * @fires time - Fires when the time changes.\n * @category display\n */\n@godown(protoName)\nclass Time extends Text {\n /**\n * Escape symbol.\n */\n @property()\n escape = \"%\";\n\n /**\n * Format strings.\n */\n @property()\n format = \"YYYY-MM-DD hh:mm:ss\";\n\n /**\n * Time.\n */\n @property({ type: Object })\n time: Date = new Date();\n\n /**\n * If there is a value, update every gap or timeout.\n */\n @property({ type: Number })\n timeout: number;\n\n /**\n * The number of milliseconds that change with each update.\n */\n @property({ type: Number })\n gap: number;\n\n protected timeoutId: number;\n\n protected render(): TemplateResult<1> {\n return html`\n <p part=\"root\">${fmtime(this.format, this.time, this.escape)}</p>\n `;\n }\n\n protected updated(changedProperties: PropertyValues): void {\n if (changedProperties.has(\"timeout\") && this.timeout) {\n this.timeouts.remove(this.timeoutId);\n this.timeoutId = this.timeouts.add(\n setInterval(() => {\n this.dispatchCustomEvent(\"time\", this.time);\n this.time = new Date(this.time.getTime() + (this.gap || this.timeout));\n }, Math.abs(this.timeout)),\n );\n }\n }\n}\n\nexport default Time;\nexport { Time };\n"],"version":3,"file":"component.d.ts"}
@@ -1,2 +1,2 @@
1
- import{godown}from"@godown/element";import fmtime from"fmtime";import{html}from"lit";import{property}from"lit/decorators.js";import Text from"../text/component.js";import _decorate from"@oxc-project/runtime/helpers/decorate";import"../../internal/global-style.js";import"../../internal/reset-style.js";import"sharekit";const protoName=`time`;let Time=class e extends Text{constructor(...e){super(...e),this.escape=`%`,this.format=`YYYY-MM-DD hh:mm:ss`,this.time=new Date}render(){return html`<p part="root">${fmtime(this.format,this.time,this.escape)}</p>`}updated(e){e.has(`timeout`)&&this.timeout&&(this.timeouts.remove(this.timeoutId),this.timeoutId=this.timeouts.add(setInterval(()=>{this.dispatchCustomEvent(`time`,this.time),this.time=new Date(this.time.getTime()+(this.gap||this.timeout))},Math.abs(this.timeout))))}};_decorate([property()],Time.prototype,`escape`,void 0),_decorate([property()],Time.prototype,`format`,void 0),_decorate([property({type:Object})],Time.prototype,`time`,void 0),_decorate([property({type:Number})],Time.prototype,`timeout`,void 0),_decorate([property({type:Number})],Time.prototype,`gap`,void 0),Time=_decorate([godown(protoName)],Time);var Time$1=Time;export{Time,Time$1 as default};
1
+ import{godown as e}from"@godown/element";import t from"fmtime";import{html as n}from"lit";import{property as r}from"lit/decorators.js";import i from"../text/component.js";import a from"@oxc-project/runtime/helpers/decorate";const o=`time`;let s=class e extends i{constructor(...e){super(...e),this.escape=`%`,this.format=`YYYY-MM-DD hh:mm:ss`,this.time=new Date}render(){return n`<p part="root">${t(this.format,this.time,this.escape)}</p>`}updated(e){e.has(`timeout`)&&this.timeout&&(this.timeouts.remove(this.timeoutId),this.timeoutId=this.timeouts.add(setInterval(()=>{this.dispatchCustomEvent(`time`,this.time),this.time=new Date(this.time.getTime()+(this.gap||this.timeout))},Math.abs(this.timeout))))}};a([r()],s.prototype,`escape`,void 0),a([r()],s.prototype,`format`,void 0),a([r({type:Object})],s.prototype,`time`,void 0),a([r({type:Number})],s.prototype,`timeout`,void 0),a([r({type:Number})],s.prototype,`gap`,void 0),s=a([e(`time`)],s);var c=s;export{s as Time,c as default};
2
2
  //# sourceMappingURL=component.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"component.js","sources":["../../../src/web-components/time/component.ts"],"sourcesContent":["import { godown } from \"@godown/element\";\nimport fmtime from \"fmtime\";\nimport { type PropertyValues, type TemplateResult, html } from \"lit\";\nimport { property } from \"lit/decorators.js\";\n\nimport Text from \"../text/component.js\";\n\nconst protoName = \"time\";\n\n/**\n * {@linkcode Time} renders a formatting time.\n *\n * @fires time - Fires when the time changes.\n * @category display\n */\n@godown(protoName)\nclass Time extends Text {\n /**\n * Escape symbol.\n */\n @property()\n escape = \"%\";\n\n /**\n * Format strings.\n */\n @property()\n format = \"YYYY-MM-DD hh:mm:ss\";\n\n /**\n * Time.\n */\n @property({ type: Object })\n time: Date = new Date();\n\n /**\n * If there is a value, update every gap or timeout.\n */\n @property({ type: Number })\n timeout: number;\n\n /**\n * The number of milliseconds that change with each update.\n */\n @property({ type: Number })\n gap: number;\n\n protected timeoutId: number;\n\n protected render(): TemplateResult<1> {\n return html`\n <p part=\"root\">${fmtime(this.format, this.time, this.escape)}</p>\n `;\n }\n\n protected updated(changedProperties: PropertyValues): void {\n if (changedProperties.has(\"timeout\") && this.timeout) {\n this.timeouts.remove(this.timeoutId);\n this.timeoutId = this.timeouts.add(\n setInterval(() => {\n this.dispatchCustomEvent(\"time\", this.time);\n this.time = new Date(this.time.getTime() + (this.gap || this.timeout));\n }, Math.abs(this.timeout)),\n );\n }\n }\n}\n\nexport default Time;\nexport { Time };\n"],"names":["Time","changedProperties: PropertyValues","changedProperties"],"mappings":"+TAOA,MAAM,UAAY,OAQlB,IAAA,KAAA,MACMA,UAAa,IAAK,oCAKtB,OAAS,SAMT,OAAS,sBAMT,KAAA,KAAa,IAAI,KAgBP,QAA4B,CACpC,MAAO,KAAI,CAAC,eACK,EAAE,OAAO,KAAK,OAAQ,KAAK,KAAM,KAAK,OAAO,CAAC,IAC/D,CAAC,AACF,CAES,QAAQC,EAAyC,CACrDC,EAAkB,IAAI,UAAU,EAAI,KAAK,UAC3C,KAAK,SAAS,OAAO,KAAK,UAAU,CACpC,KAAK,UAAY,KAAK,SAAS,IAC7B,YAAY,IAAM,CAChB,KAAK,oBAAoB,OAAQ,KAAK,KAAK,CAC3C,KAAK,KAAO,IAAI,KAAK,KAAK,KAAK,SAAS,EAAI,KAAK,KAAO,KAAK,SAC9D,EAAE,KAAK,IAAI,KAAK,QAAQ,CAAC,CAC3B,CAEJ,CACF,aA9CE,UAAU,AAAA,EAAA,KAAA,UAAA,SAAA,OAAA,YAMV,UAAU,AAAA,EAAA,KAAA,UAAA,SAAA,OAAA,YAMV,SAAS,CAAE,KAAM,MAAQ,EAAC,AAAA,EAAA,KAAA,UAAA,OAAA,OAAA,YAM1B,SAAS,CAAE,KAAM,MAAQ,EAAC,AAAA,EAAA,KAAA,UAAA,UAAA,OAAA,YAM1B,SAAS,CAAE,KAAM,MAAQ,EAAC,AAAA,EAAA,KAAA,UAAA,MAAA,OAAA,CA7B5B,KAAA,UAAA,CAAA,OAAO,UAAU,AAAA,EAAA,KAAA,CAqDlB,IAAA,OAAe"}
1
+ {"version":3,"file":"component.js","sources":["../../../src/web-components/time/component.ts"],"sourcesContent":["import { godown } from \"@godown/element\";\nimport fmtime from \"fmtime\";\nimport { type PropertyValues, type TemplateResult, html } from \"lit\";\nimport { property } from \"lit/decorators.js\";\n\nimport Text from \"../text/component.js\";\n\nconst protoName = \"time\";\n\n/**\n * {@linkcode Time} renders a formatting time.\n *\n * @fires time - Fires when the time changes.\n * @category display\n */\n@godown(protoName)\nclass Time extends Text {\n /**\n * Escape symbol.\n */\n @property()\n escape = \"%\";\n\n /**\n * Format strings.\n */\n @property()\n format = \"YYYY-MM-DD hh:mm:ss\";\n\n /**\n * Time.\n */\n @property({ type: Object })\n time: Date = new Date();\n\n /**\n * If there is a value, update every gap or timeout.\n */\n @property({ type: Number })\n timeout: number;\n\n /**\n * The number of milliseconds that change with each update.\n */\n @property({ type: Number })\n gap: number;\n\n protected timeoutId: number;\n\n protected render(): TemplateResult<1> {\n return html`\n <p part=\"root\">${fmtime(this.format, this.time, this.escape)}</p>\n `;\n }\n\n protected updated(changedProperties: PropertyValues): void {\n if (changedProperties.has(\"timeout\") && this.timeout) {\n this.timeouts.remove(this.timeoutId);\n this.timeoutId = this.timeouts.add(\n setInterval(() => {\n this.dispatchCustomEvent(\"time\", this.time);\n this.time = new Date(this.time.getTime() + (this.gap || this.timeout));\n }, Math.abs(this.timeout)),\n );\n }\n }\n}\n\nexport default Time;\nexport { Time };\n"],"names":["protoName","Time","Text","fmtime","changedProperties","_decorate","property","godown","Time$1"],"mappings":"gOAOA,MAAMA,EAAY,OAQlB,IAAAC,EAAA,MACMA,UAAaC,CAAK,oCAKtB,OAAS,SAMT,OAAS,sBAMT,KAAA,KAAa,IAAI,KAgBP,QAA4B,CACpC,MAAO,EAAI,kBACQC,EAAO,KAAK,OAAQ,KAAK,KAAM,KAAK,QAAQ,MAIvD,QAAQ,EAAyC,CACrDC,EAAkB,IAAI,YAAc,KAAK,UAC3C,KAAK,SAAS,OAAO,KAAK,WAC1B,KAAK,UAAY,KAAK,SAAS,IAC7B,gBAAkB,CAChB,KAAK,oBAAoB,OAAQ,KAAK,MACtC,KAAK,KAAO,IAAI,KAAK,KAAK,KAAK,WAAa,KAAK,KAAO,KAAK,WAC5D,KAAK,IAAI,KAAK,cA1CtBC,EAAA,CAAAC,KAAAL,EAAA,UAAA,SAAA,QAMAI,EAAA,CAAAC,KAAAL,EAAA,UAAA,SAAA,QAMAI,EAAA,CAAAC,EAAS,CAAE,KAAM,UAAAL,EAAA,UAAA,OAAA,QAMjBI,EAAA,CAAAC,EAAS,CAAE,KAAM,UAAAL,EAAA,UAAA,UAAA,QAMjBI,EAAA,CAAAC,EAAS,CAAE,KAAM,UAAAL,EAAA,UAAA,MAAA,aA7BnBM,EAAO,SAAAN,GAqDR,IAAAO,EAAeP"}
@@ -1 +1 @@
1
- {"mappings":"AAAA,OAAO,UAAU,gBAAiB;AAIlC,eAAe;eAEA;WACH,sBAAsB;EAC9B,eAAe;CAChB;AACF","names":[],"sources":["../../../../src/web-components/time/definition.ts"],"sourcesContent":["import Time from \"./component.js\";\n\nTime.define();\n\nexport default Time;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"godown-time\": Time;\n }\n}\n"],"version":3,"file":"definition.d.ts"}
1
+ {"mappings":"AAAA,OAAO,UAAU;AAIjB,eAAe;eAEA;WACH,sBAAsB;EAC9B,eAAe","names":[],"sources":["../../../../src/web-components/time/definition.ts"],"sourcesContent":["import Time from \"./component.js\";\n\nTime.define();\n\nexport default Time;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"godown-time\": Time;\n }\n}\n"],"version":3,"file":"definition.d.ts"}
@@ -1,2 +1,2 @@
1
- import Time from"./component.js";import"@godown/element";import"fmtime";import"lit";import"lit/decorators.js";import"../text/component.js";import"../../internal/global-style.js";import"../../internal/reset-style.js";import"sharekit";import"@oxc-project/runtime/helpers/decorate";Time.define();export{Time as default};
1
+ import e from"./component.js";e.define();export{e as default};
2
2
  //# sourceMappingURL=definition.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"definition.js","sources":["../../../src/web-components/time/definition.ts"],"sourcesContent":["import Time from \"./component.js\";\n\nTime.define();\n\nexport default Time;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"godown-time\": Time;\n }\n}\n"],"names":[],"mappings":"uRAEA,KAAK,QAAQ"}
1
+ {"version":3,"file":"definition.js","sources":["../../../src/web-components/time/definition.ts"],"sourcesContent":["import Time from \"./component.js\";\n\nTime.define();\n\nexport default Time;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"godown-time\": Time;\n }\n}\n"],"names":["Time"],"mappings":"8BAEAA,EAAK"}
@@ -1 +1 @@
1
- {"mappings":"AACA,cAAc,sBAA4B,KAAM;AAGhD,OAAO,aAAa,yBAA0B;;;;;;;;;;;;;AAgB9C,cACM,gBAAgB,QAAQ;CAC5B,QAAQ;CACR,MAAM,SAAS;CAEf,AACA;CAEA,AACA;CAEA,UAAU,UAAU,eAAe;CAmBnC;CACA;CAEA;AAeD;AAED,eAAe;AACf,SAAS","names":[],"sources":["../../../../src/web-components/tooltip/component.ts"],"sourcesContent":["import { godown, htmlSlot } from \"@godown/element\";\nimport { type TemplateResult, html } from \"lit\";\nimport { property } from \"lit/decorators.js\";\n\nimport Popover from \"../popover/component.js\";\n\nconst protoName = \"tooltip\";\n\n/**\n * {@linkcode Tooltip} is similar to {@linkcode Popover}.\n *\n * It listens for the mouseenter event and displays the tip or popover after a specified delay.\n *\n * When it is clicked or the mouseleave event occurs followed by another delay, closes the tip.\n *\n * @fires toggle - Fired when the popover is toggled.\n * @slot tip - Tip content.\n * @slot - Tip trigger.\n * @category feedback\n */\n@godown(protoName)\nclass Tooltip extends Popover {\n action: \"hide\";\n span: \"span\" | \"isolated\";\n\n @property()\n tip: string;\n\n @property({ type: Number })\n delay = 300;\n\n protected render(): TemplateResult<1> {\n return html`\n <div part=\"root\">\n <div\n part=\"trigger\"\n @click=${this.hide}\n >\n ${htmlSlot()}\n </div>\n <div\n part=\"popover\"\n popover=\"manual\"\n >\n ${htmlSlot(\"tip\", this.tip)}\n </div>\n </div>\n `;\n }\n\n _hoverTimeout: number;\n _leaveTimeout: number;\n\n connectedCallback(): void {\n super.connectedCallback();\n this.events.add(this, \"mouseenter\", () => {\n clearTimeout(this._leaveTimeout);\n this._hoverTimeout = setTimeout(() => {\n this.show();\n }, this.delay);\n });\n this.events.add(this, \"mouseleave\", () => {\n clearTimeout(this._hoverTimeout);\n this._leaveTimeout = setTimeout(() => {\n this.hide();\n }, this.delay);\n });\n }\n}\n\nexport default Tooltip;\nexport { Tooltip };\n"],"version":3,"file":"component.d.ts"}
1
+ {"mappings":"AACA,cAAc,sBAA4B;AAG1C,OAAO,aAAa;;;;;;;;;;;;;AAgBpB,cACM,gBAAgB,QAAQ;CAC5B,QAAQ;CACR,MAAM,SAAS;CAEf,AACA;CAEA,AACA;CAEA,UAAU,UAAU,eAAe;CAmBnC;CACA;CAEA;;AAiBF,eAAe;AACf,SAAS","names":[],"sources":["../../../../src/web-components/tooltip/component.ts"],"sourcesContent":["import { godown, htmlSlot } from \"@godown/element\";\nimport { type TemplateResult, html } from \"lit\";\nimport { property } from \"lit/decorators.js\";\n\nimport Popover from \"../popover/component.js\";\n\nconst protoName = \"tooltip\";\n\n/**\n * {@linkcode Tooltip} is similar to {@linkcode Popover}.\n *\n * It listens for the mouseenter event and displays the tip or popover after a specified delay.\n *\n * When it is clicked or the mouseleave event occurs followed by another delay, closes the tip.\n *\n * @fires toggle - Fired when the popover is toggled.\n * @slot tip - Tip content.\n * @slot - Tip trigger.\n * @category feedback\n */\n@godown(protoName)\nclass Tooltip extends Popover {\n action: \"hide\";\n span: \"span\" | \"isolated\";\n\n @property()\n tip: string;\n\n @property({ type: Number })\n delay = 300;\n\n protected render(): TemplateResult<1> {\n return html`\n <div part=\"root\">\n <div\n part=\"trigger\"\n @click=${this.hide}\n >\n ${htmlSlot()}\n </div>\n <div\n part=\"popover\"\n popover=\"manual\"\n >\n ${htmlSlot(\"tip\", this.tip)}\n </div>\n </div>\n `;\n }\n\n _hoverTimeout: number;\n _leaveTimeout: number;\n\n connectedCallback(): void {\n super.connectedCallback();\n this.events.add(this, \"mouseenter\", () => {\n clearTimeout(this._leaveTimeout);\n this._hoverTimeout = setTimeout(() => {\n this.show();\n }, this.delay);\n });\n this.events.add(this, \"mouseleave\", () => {\n clearTimeout(this._hoverTimeout);\n this._leaveTimeout = setTimeout(() => {\n this.hide();\n }, this.delay);\n });\n }\n}\n\nexport default Tooltip;\nexport { Tooltip };\n"],"version":3,"file":"component.d.ts"}
@@ -1,2 +1,2 @@
1
- import{godown,htmlSlot}from"@godown/element";import{html}from"lit";import{property}from"lit/decorators.js";import{Popover}from"../popover/component.js";import _decorate from"@oxc-project/runtime/helpers/decorate";import"../../internal/global-style.js";import"../../internal/reset-style.js";import"sharekit";import"../../internal/popover.js";import"../../internal/utils.js";const protoName=`tooltip`;let Tooltip=class e extends Popover{constructor(...e){super(...e),this.delay=300}render(){return html`<div part="root"> <div part="trigger" @click=${this.hide}> ${htmlSlot()} </div> <div part="popover" popover="manual"> ${htmlSlot(`tip`,this.tip)} </div> </div>`}connectedCallback(){super.connectedCallback(),this.events.add(this,`mouseenter`,()=>{clearTimeout(this._leaveTimeout),this._hoverTimeout=setTimeout(()=>{this.show()},this.delay)}),this.events.add(this,`mouseleave`,()=>{clearTimeout(this._hoverTimeout),this._leaveTimeout=setTimeout(()=>{this.hide()},this.delay)})}};_decorate([property()],Tooltip.prototype,`tip`,void 0),_decorate([property({type:Number})],Tooltip.prototype,`delay`,void 0),Tooltip=_decorate([godown(protoName)],Tooltip);var Tooltip$1=Tooltip;export{Tooltip,Tooltip$1 as default};
1
+ import{godown as e,htmlSlot as t}from"@godown/element";import{html as n}from"lit";import{property as r}from"lit/decorators.js";import{Popover as i}from"../popover/component.js";import a from"@oxc-project/runtime/helpers/decorate";const o=`tooltip`;let s=class e extends i{constructor(...e){super(...e),this.delay=300}render(){return n`<div part="root"> <div part="trigger" @click=${this.hide}> ${t()} </div> <div part="popover" popover="manual"> ${t(`tip`,this.tip)} </div> </div>`}connectedCallback(){super.connectedCallback(),this.events.add(this,`mouseenter`,()=>{clearTimeout(this._leaveTimeout),this._hoverTimeout=setTimeout(()=>{this.show()},this.delay)}),this.events.add(this,`mouseleave`,()=>{clearTimeout(this._hoverTimeout),this._leaveTimeout=setTimeout(()=>{this.hide()},this.delay)})}};a([r()],s.prototype,`tip`,void 0),a([r({type:Number})],s.prototype,`delay`,void 0),s=a([e(`tooltip`)],s);var c=s;export{s as Tooltip,c as default};
2
2
  //# sourceMappingURL=component.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"component.js","sources":["../../../src/web-components/tooltip/component.ts"],"sourcesContent":["import { godown, htmlSlot } from \"@godown/element\";\nimport { type TemplateResult, html } from \"lit\";\nimport { property } from \"lit/decorators.js\";\n\nimport Popover from \"../popover/component.js\";\n\nconst protoName = \"tooltip\";\n\n/**\n * {@linkcode Tooltip} is similar to {@linkcode Popover}.\n *\n * It listens for the mouseenter event and displays the tip or popover after a specified delay.\n *\n * When it is clicked or the mouseleave event occurs followed by another delay, closes the tip.\n *\n * @fires toggle - Fired when the popover is toggled.\n * @slot tip - Tip content.\n * @slot - Tip trigger.\n * @category feedback\n */\n@godown(protoName)\nclass Tooltip extends Popover {\n action: \"hide\";\n span: \"span\" | \"isolated\";\n\n @property()\n tip: string;\n\n @property({ type: Number })\n delay = 300;\n\n protected render(): TemplateResult<1> {\n return html`\n <div part=\"root\">\n <div\n part=\"trigger\"\n @click=${this.hide}\n >\n ${htmlSlot()}\n </div>\n <div\n part=\"popover\"\n popover=\"manual\"\n >\n ${htmlSlot(\"tip\", this.tip)}\n </div>\n </div>\n `;\n }\n\n _hoverTimeout: number;\n _leaveTimeout: number;\n\n connectedCallback(): void {\n super.connectedCallback();\n this.events.add(this, \"mouseenter\", () => {\n clearTimeout(this._leaveTimeout);\n this._hoverTimeout = setTimeout(() => {\n this.show();\n }, this.delay);\n });\n this.events.add(this, \"mouseleave\", () => {\n clearTimeout(this._hoverTimeout);\n this._leaveTimeout = setTimeout(() => {\n this.hide();\n }, this.delay);\n });\n }\n}\n\nexport default Tooltip;\nexport { Tooltip };\n"],"names":["Tooltip"],"mappings":"qXAMA,MAAM,UAAY,UAclB,IAAA,QAAA,MACMA,UAAgB,OAAQ,oCAQ5B,MAAQ,IAEE,QAA4B,CACpC,MAAO,KAAI,CAAC,6CAIC,EAAE,KAAK,KAAK,EAEnB,EAAE,UAAU,CAAC,8CAMb,EAAE,SAAS,MAAO,KAAK,IAAI,CAAC,cAGlC,CAAC,AACF,CAKD,mBAA0B,CACxB,MAAM,mBAAmB,CACzB,KAAK,OAAO,IAAI,KAAM,aAAc,IAAM,CACxC,aAAa,KAAK,cAAc,CAChC,KAAK,cAAgB,WAAW,IAAM,CACpC,KAAK,MAAM,AACZ,EAAE,KAAK,MAAM,AACf,EAAC,CACF,KAAK,OAAO,IAAI,KAAM,aAAc,IAAM,CACxC,aAAa,KAAK,cAAc,CAChC,KAAK,cAAgB,WAAW,IAAM,CACpC,KAAK,MAAM,AACZ,EAAE,KAAK,MAAM,AACf,EAAC,AACH,CACF,aA3CE,UAAU,AAAA,EAAA,QAAA,UAAA,MAAA,OAAA,YAGV,SAAS,CAAE,KAAM,MAAQ,EAAC,AAAA,EAAA,QAAA,UAAA,QAAA,OAAA,CAR5B,QAAA,UAAA,CAAA,OAAO,UAAU,AAAA,EAAA,QAAA,CAkDlB,IAAA,UAAe"}
1
+ {"version":3,"file":"component.js","sources":["../../../src/web-components/tooltip/component.ts"],"sourcesContent":["import { godown, htmlSlot } from \"@godown/element\";\nimport { type TemplateResult, html } from \"lit\";\nimport { property } from \"lit/decorators.js\";\n\nimport Popover from \"../popover/component.js\";\n\nconst protoName = \"tooltip\";\n\n/**\n * {@linkcode Tooltip} is similar to {@linkcode Popover}.\n *\n * It listens for the mouseenter event and displays the tip or popover after a specified delay.\n *\n * When it is clicked or the mouseleave event occurs followed by another delay, closes the tip.\n *\n * @fires toggle - Fired when the popover is toggled.\n * @slot tip - Tip content.\n * @slot - Tip trigger.\n * @category feedback\n */\n@godown(protoName)\nclass Tooltip extends Popover {\n action: \"hide\";\n span: \"span\" | \"isolated\";\n\n @property()\n tip: string;\n\n @property({ type: Number })\n delay = 300;\n\n protected render(): TemplateResult<1> {\n return html`\n <div part=\"root\">\n <div\n part=\"trigger\"\n @click=${this.hide}\n >\n ${htmlSlot()}\n </div>\n <div\n part=\"popover\"\n popover=\"manual\"\n >\n ${htmlSlot(\"tip\", this.tip)}\n </div>\n </div>\n `;\n }\n\n _hoverTimeout: number;\n _leaveTimeout: number;\n\n connectedCallback(): void {\n super.connectedCallback();\n this.events.add(this, \"mouseenter\", () => {\n clearTimeout(this._leaveTimeout);\n this._hoverTimeout = setTimeout(() => {\n this.show();\n }, this.delay);\n });\n this.events.add(this, \"mouseleave\", () => {\n clearTimeout(this._hoverTimeout);\n this._leaveTimeout = setTimeout(() => {\n this.hide();\n }, this.delay);\n });\n }\n}\n\nexport default Tooltip;\nexport { Tooltip };\n"],"names":["protoName","Tooltip","Popover","htmlSlot","_decorate","property","godown","Tooltip$1"],"mappings":"sOAMA,MAAMA,EAAY,UAclB,IAAAC,EAAA,MACMA,UAAgBC,CAAQ,oCAQ5B,MAAQ,IAEE,QAA4B,CACpC,MAAO,EAAI,gDAII,KAAK,KAAK,IAEjBC,IAAW,gDAMXA,EAAS,MAAO,KAAK,KAAK,gBASpC,mBAA0B,CACxB,MAAM,oBACN,KAAK,OAAO,IAAI,KAAM,iBAAoB,CACxC,aAAa,KAAK,eAClB,KAAK,cAAgB,eAAiB,CACpC,KAAK,QACJ,KAAK,SAEV,KAAK,OAAO,IAAI,KAAM,iBAAoB,CACxC,aAAa,KAAK,eAClB,KAAK,cAAgB,eAAiB,CACpC,KAAK,QACJ,KAAK,WAxCXC,EAAA,CAAAC,KAAAJ,EAAA,UAAA,MAAA,QAGAG,EAAA,CAAAC,EAAS,CAAE,KAAM,UAAAJ,EAAA,UAAA,QAAA,aARnBK,EAAO,YAAAL,GAkDR,IAAAM,EAAeN"}
@@ -1 +1 @@
1
- {"mappings":"AAAA,OAAO,aAAa,gBAAiB;AAIrC,eAAe;eAEA;WACH,sBAAsB;EAC9B,kBAAkB;CACnB;AACF","names":[],"sources":["../../../../src/web-components/tooltip/definition.ts"],"sourcesContent":["import Tooltip from \"./component.js\";\n\nTooltip.define();\n\nexport default Tooltip;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"godown-tooltip\": Tooltip;\n }\n}\n"],"version":3,"file":"definition.d.ts"}
1
+ {"mappings":"AAAA,OAAO,aAAa;AAIpB,eAAe;eAEA;WACH,sBAAsB;EAC9B,kBAAkB","names":[],"sources":["../../../../src/web-components/tooltip/definition.ts"],"sourcesContent":["import Tooltip from \"./component.js\";\n\nTooltip.define();\n\nexport default Tooltip;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"godown-tooltip\": Tooltip;\n }\n}\n"],"version":3,"file":"definition.d.ts"}
@@ -1,2 +1,2 @@
1
- import Tooltip from"./component.js";import"@godown/element";import"lit";import"lit/decorators.js";import"../popover/component.js";import"../../internal/global-style.js";import"../../internal/reset-style.js";import"sharekit";import"../../internal/popover.js";import"../../internal/utils.js";import"@oxc-project/runtime/helpers/decorate";Tooltip.define();export{Tooltip as default};
1
+ import e from"./component.js";e.define();export{e as default};
2
2
  //# sourceMappingURL=definition.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"definition.js","sources":["../../../src/web-components/tooltip/definition.ts"],"sourcesContent":["import Tooltip from \"./component.js\";\n\nTooltip.define();\n\nexport default Tooltip;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"godown-tooltip\": Tooltip;\n }\n}\n"],"names":[],"mappings":"gVAEA,QAAQ,QAAQ"}
1
+ {"version":3,"file":"definition.js","sources":["../../../src/web-components/tooltip/definition.ts"],"sourcesContent":["import Tooltip from \"./component.js\";\n\nTooltip.define();\n\nexport default Tooltip;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"godown-tooltip\": Tooltip;\n }\n}\n"],"names":["Tooltip"],"mappings":"8BAEAA,EAAQ"}
@@ -1 +1 @@
1
- {"mappings":"AACA,cAAc,uBAAuB,sBAAiC,KAAM;AAG5E,SAAS,mBAAgC,gCAAiC;AAC1E,SAAS,cAAc,UAAW;;;;;;AAUlC,cA8BM,mBAAmB,YAAY;;;;CAInC,AACA;;;;CAKA,AACA;;;;CAKA,AACA;;;;CAKA,AACA;;;;CAKA,AACA;;;;CAKA,AACA;CAEA,AACA;CAEA,UAAU;CAEV,UACU,IAAI;CACd,UAAU,SAAS;;;;CAKnB,IAAI;CAIJ,UAAU,UAAU,eAAe;CAenC;CAKA,UAAU;CAOV,UAAU,QAAQA,mBAAmB;CAMrC,MAAMC;CAcN;CAIA;AAGD;AAED,eAAe;AACf,SAAS","names":["changedProperties: PropertyValueMap<this>","at: number"],"sources":["../../../../src/web-components/typewriter/component.ts"],"sourcesContent":["import { attr, godown, htmlSlot, styles } from \"@godown/element\";\nimport { type PropertyValueMap, type TemplateResult, css, html } from \"lit\";\nimport { property, query, state } from \"lit/decorators.js\";\n\nimport { GlobalStyle, scopePrefix } from \"../../internal/global-style.js\";\nimport { Ranger } from \"sharekit\";\n\nconst protoName = \"typewriter\";\nconst cssScope = scopePrefix(protoName);\n\n/**\n * {@linkcode Typewriter} renders a typewriter effect to text.\n *\n * @category effect\n */\n@godown(protoName)\n@styles(css`\n :host {\n ${cssScope}--cursor-width: .05em;\n }\n\n :host,\n :host([contents]) [part=\"root\"] {\n display: inline-block;\n }\n\n i {\n border-right: var(${cssScope}--cursor-width) solid;\n margin-left: 0.02em;\n animation: s 1.5s steps(1) infinite;\n }\n\n @keyframes s {\n 0% {\n border-color: currentColor;\n }\n 50% {\n border-color: transparent;\n }\n }\n\n slot {\n display: none;\n }\n`)\nclass Typewriter extends GlobalStyle {\n /**\n * Raw text.\n */\n @property()\n content = \"\";\n\n /**\n * If true, hide the cursor\n */\n @property({ type: Boolean })\n ended = false;\n\n /**\n * Maximum random time.\n */\n @property({ type: Number })\n max = 100;\n\n /**\n * Minimum random time.\n */\n @property({ type: Number })\n min = 50;\n\n /**\n * Fixed time.\n */\n @property({ type: Number })\n delay = 0;\n\n /**\n * The index at the beginning.\n */\n @property({ type: Number })\n index = 0;\n\n @state()\n contentInternal = \"\";\n\n protected timeoutID: number;\n\n @query(\"i\")\n protected _i: HTMLElement;\n protected _ranger: Ranger;\n\n /**\n * {@linkcode Typewriter.content} length.\n */\n get len(): number {\n return this.content.length;\n }\n\n protected render(): TemplateResult<1> {\n return html`\n <div\n part=\"root\"\n ${attr(this.observedRecord)}\n >\n ${htmlSlot()} ${this.contentInternal}\n <i\n part=\"cursor\"\n ?hidden=\"${this.ended}\"\n ></i>\n </div>\n `;\n }\n\n connectedCallback(): void {\n super.connectedCallback();\n this._ranger = new Ranger(this.min, this.max);\n }\n\n protected firstUpdated(): void {\n this.content ||= this._slot?.assignedNodes()[0]?.textContent.trim() || \"\";\n if (!this.ended && this.len) {\n this.write();\n }\n }\n\n protected updated(changedProperties: PropertyValueMap<this>): void {\n if (changedProperties.has(\"index\")) {\n this.dispatchCustomEvent(this.index === this.len ? \"done\" : \"write\", this.contentInternal);\n }\n }\n\n write(at: number = this.index): void {\n this.contentInternal = this.content.slice(0, at + 1);\n const timeout = this.delay || this._ranger.random();\n this.timeoutID = this.timeouts.add(\n setTimeout(() => {\n const nx = at + 1;\n if (nx <= this.len) {\n this.index = nx;\n this.write();\n }\n }, timeout),\n );\n }\n\n stop(): void {\n clearTimeout(this.timeoutID);\n }\n\n end(): void {\n this.ended = true;\n }\n}\n\nexport default Typewriter;\nexport { Typewriter };\n"],"version":3,"file":"component.d.ts"}
1
+ {"mappings":"AACA,cAAc,uBAAuB,sBAAiC;AAGtE,SAAS,mBAAgC;AACzC,SAAS,cAAc;;;;;;AAUvB,cA8BM,mBAAmB,YAAY;;;;CAInC,AACA;;;;CAKA,AACA;;;;CAKA,AACA;;;;CAKA,AACA;;;;CAKA,AACA;;;;CAKA,AACA;CAEA,AACA;CAEA,UAAU;CAEV,UACU,IAAI;CACd,UAAU,SAAS;;;;CAKnB,IAAI;CAIJ,UAAU,UAAU,eAAe;CAenC;CAKA,UAAU;CAOV,UAAU,QAAQ,mBAAmB;CAMrC,MAAM;CAcN;CAIA;;AAKF,eAAe;AACf,SAAS","names":[],"sources":["../../../../src/web-components/typewriter/component.ts"],"sourcesContent":["import { attr, godown, htmlSlot, styles } from \"@godown/element\";\nimport { type PropertyValueMap, type TemplateResult, css, html } from \"lit\";\nimport { property, query, state } from \"lit/decorators.js\";\n\nimport { GlobalStyle, scopePrefix } from \"../../internal/global-style.js\";\nimport { Ranger } from \"sharekit\";\n\nconst protoName = \"typewriter\";\nconst cssScope = scopePrefix(protoName);\n\n/**\n * {@linkcode Typewriter} renders a typewriter effect to text.\n *\n * @category effect\n */\n@godown(protoName)\n@styles(css`\n :host {\n ${cssScope}--cursor-width: .05em;\n }\n\n :host,\n :host([contents]) [part=\"root\"] {\n display: inline-block;\n }\n\n i {\n border-right: var(${cssScope}--cursor-width) solid;\n margin-left: 0.02em;\n animation: s 1.5s steps(1) infinite;\n }\n\n @keyframes s {\n 0% {\n border-color: currentColor;\n }\n 50% {\n border-color: transparent;\n }\n }\n\n slot {\n display: none;\n }\n`)\nclass Typewriter extends GlobalStyle {\n /**\n * Raw text.\n */\n @property()\n content = \"\";\n\n /**\n * If true, hide the cursor\n */\n @property({ type: Boolean })\n ended = false;\n\n /**\n * Maximum random time.\n */\n @property({ type: Number })\n max = 100;\n\n /**\n * Minimum random time.\n */\n @property({ type: Number })\n min = 50;\n\n /**\n * Fixed time.\n */\n @property({ type: Number })\n delay = 0;\n\n /**\n * The index at the beginning.\n */\n @property({ type: Number })\n index = 0;\n\n @state()\n contentInternal = \"\";\n\n protected timeoutID: number;\n\n @query(\"i\")\n protected _i: HTMLElement;\n protected _ranger: Ranger;\n\n /**\n * {@linkcode Typewriter.content} length.\n */\n get len(): number {\n return this.content.length;\n }\n\n protected render(): TemplateResult<1> {\n return html`\n <div\n part=\"root\"\n ${attr(this.observedRecord)}\n >\n ${htmlSlot()} ${this.contentInternal}\n <i\n part=\"cursor\"\n ?hidden=\"${this.ended}\"\n ></i>\n </div>\n `;\n }\n\n connectedCallback(): void {\n super.connectedCallback();\n this._ranger = new Ranger(this.min, this.max);\n }\n\n protected firstUpdated(): void {\n this.content ||= this._slot?.assignedNodes()[0]?.textContent.trim() || \"\";\n if (!this.ended && this.len) {\n this.write();\n }\n }\n\n protected updated(changedProperties: PropertyValueMap<this>): void {\n if (changedProperties.has(\"index\")) {\n this.dispatchCustomEvent(this.index === this.len ? \"done\" : \"write\", this.contentInternal);\n }\n }\n\n write(at: number = this.index): void {\n this.contentInternal = this.content.slice(0, at + 1);\n const timeout = this.delay || this._ranger.random();\n this.timeoutID = this.timeouts.add(\n setTimeout(() => {\n const nx = at + 1;\n if (nx <= this.len) {\n this.index = nx;\n this.write();\n }\n }, timeout),\n );\n }\n\n stop(): void {\n clearTimeout(this.timeoutID);\n }\n\n end(): void {\n this.ended = true;\n }\n}\n\nexport default Typewriter;\nexport { Typewriter };\n"],"version":3,"file":"component.d.ts"}
@@ -1,2 +1,2 @@
1
- import{godown,styles,attr,htmlSlot}from"@godown/element";import{css,html}from"lit";import{property,state,query}from"lit/decorators.js";import{scopePrefix,GlobalStyle}from"../../internal/global-style.js";import{Ranger}from"sharekit";import _decorate from"@oxc-project/runtime/helpers/decorate";import"../../internal/reset-style.js";const protoName=`typewriter`,cssScope=scopePrefix(protoName);let Typewriter=class e extends GlobalStyle{constructor(...e){super(...e),this.content=``,this.ended=!1,this.max=100,this.min=50,this.delay=0,this.index=0,this.contentInternal=``}get len(){return this.content.length}render(){return html`<div part="root" ${attr(this.observedRecord)}> ${htmlSlot()} ${this.contentInternal} <i part="cursor" ?hidden="${this.ended}"></i> </div>`}connectedCallback(){super.connectedCallback(),this._ranger=new Ranger(this.min,this.max)}firstUpdated(){this.content||=this._slot?.assignedNodes()[0]?.textContent.trim()||``,!this.ended&&this.len&&this.write()}updated(e){e.has(`index`)&&this.dispatchCustomEvent(this.index===this.len?`done`:`write`,this.contentInternal)}write(e=this.index){this.contentInternal=this.content.slice(0,e+1);let g=this.delay||this._ranger.random();this.timeoutID=this.timeouts.add(setTimeout(()=>{let g=e+1;g<=this.len&&(this.index=g,this.write())},g))}stop(){clearTimeout(this.timeoutID)}end(){this.ended=!0}};_decorate([property()],Typewriter.prototype,`content`,void 0),_decorate([property({type:Boolean})],Typewriter.prototype,`ended`,void 0),_decorate([property({type:Number})],Typewriter.prototype,`max`,void 0),_decorate([property({type:Number})],Typewriter.prototype,`min`,void 0),_decorate([property({type:Number})],Typewriter.prototype,`delay`,void 0),_decorate([property({type:Number})],Typewriter.prototype,`index`,void 0),_decorate([state()],Typewriter.prototype,`contentInternal`,void 0),_decorate([query(`i`)],Typewriter.prototype,`_i`,void 0),Typewriter=_decorate([godown(protoName),styles(css`:host{${cssScope}--cursor-width:.05em}:host,:host([contents]) [part=root]{display:inline-block}i{border-right:var(${cssScope}--cursor-width) solid;margin-left:.02em;animation:s 1.5s steps(1) infinite}@keyframes s{0%{border-color:currentColor}50%{border-color:transparent}}slot{display:none}`)],Typewriter);var Typewriter$1=Typewriter;export{Typewriter,Typewriter$1 as default};
1
+ import{godown as e,styles as t,attr as n,htmlSlot as r}from"@godown/element";import{css as i,html as a}from"lit";import{property as o,state as s,query as c}from"lit/decorators.js";import{scopePrefix as l,GlobalStyle as u}from"../../internal/global-style.js";import{Ranger as d}from"sharekit";import f from"@oxc-project/runtime/helpers/decorate";const p=`typewriter`,m=l(p);let h=class e extends u{constructor(...e){super(...e),this.content=``,this.ended=!1,this.max=100,this.min=50,this.delay=0,this.index=0,this.contentInternal=``}get len(){return this.content.length}render(){return a`<div part="root" ${n(this.observedRecord)}> ${r()} ${this.contentInternal} <i part="cursor" ?hidden="${this.ended}"></i> </div>`}connectedCallback(){super.connectedCallback(),this._ranger=new d(this.min,this.max)}firstUpdated(){this.content||=this._slot?.assignedNodes()[0]?.textContent.trim()||``,!this.ended&&this.len&&this.write()}updated(e){e.has(`index`)&&this.dispatchCustomEvent(this.index===this.len?`done`:`write`,this.contentInternal)}write(e=this.index){this.contentInternal=this.content.slice(0,e+1);let t=this.delay||this._ranger.random();this.timeoutID=this.timeouts.add(setTimeout(()=>{let t=e+1;t<=this.len&&(this.index=t,this.write())},t))}stop(){clearTimeout(this.timeoutID)}end(){this.ended=!0}};f([o()],h.prototype,`content`,void 0),f([o({type:Boolean})],h.prototype,`ended`,void 0),f([o({type:Number})],h.prototype,`max`,void 0),f([o({type:Number})],h.prototype,`min`,void 0),f([o({type:Number})],h.prototype,`delay`,void 0),f([o({type:Number})],h.prototype,`index`,void 0),f([s()],h.prototype,`contentInternal`,void 0),f([c(`i`)],h.prototype,`_i`,void 0),h=f([e(p),t(i`:host{${m}--cursor-width:.05em}:host,:host([contents]) [part=root]{display:inline-block}i{border-right:var(${m}--cursor-width) solid;margin-left:.02em;animation:s 1.5s steps(1) infinite}@keyframes s{0%{border-color:currentColor}50%{border-color:transparent}}slot{display:none}`)],h);var g=h;export{h as Typewriter,g as default};
2
2
  //# sourceMappingURL=component.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"component.js","sources":["../../../src/web-components/typewriter/component.ts"],"sourcesContent":["import { attr, godown, htmlSlot, styles } from \"@godown/element\";\nimport { type PropertyValueMap, type TemplateResult, css, html } from \"lit\";\nimport { property, query, state } from \"lit/decorators.js\";\n\nimport { GlobalStyle, scopePrefix } from \"../../internal/global-style.js\";\nimport { Ranger } from \"sharekit\";\n\nconst protoName = \"typewriter\";\nconst cssScope = scopePrefix(protoName);\n\n/**\n * {@linkcode Typewriter} renders a typewriter effect to text.\n *\n * @category effect\n */\n@godown(protoName)\n@styles(css`\n :host {\n ${cssScope}--cursor-width: .05em;\n }\n\n :host,\n :host([contents]) [part=\"root\"] {\n display: inline-block;\n }\n\n i {\n border-right: var(${cssScope}--cursor-width) solid;\n margin-left: 0.02em;\n animation: s 1.5s steps(1) infinite;\n }\n\n @keyframes s {\n 0% {\n border-color: currentColor;\n }\n 50% {\n border-color: transparent;\n }\n }\n\n slot {\n display: none;\n }\n`)\nclass Typewriter extends GlobalStyle {\n /**\n * Raw text.\n */\n @property()\n content = \"\";\n\n /**\n * If true, hide the cursor\n */\n @property({ type: Boolean })\n ended = false;\n\n /**\n * Maximum random time.\n */\n @property({ type: Number })\n max = 100;\n\n /**\n * Minimum random time.\n */\n @property({ type: Number })\n min = 50;\n\n /**\n * Fixed time.\n */\n @property({ type: Number })\n delay = 0;\n\n /**\n * The index at the beginning.\n */\n @property({ type: Number })\n index = 0;\n\n @state()\n contentInternal = \"\";\n\n protected timeoutID: number;\n\n @query(\"i\")\n protected _i: HTMLElement;\n protected _ranger: Ranger;\n\n /**\n * {@linkcode Typewriter.content} length.\n */\n get len(): number {\n return this.content.length;\n }\n\n protected render(): TemplateResult<1> {\n return html`\n <div\n part=\"root\"\n ${attr(this.observedRecord)}\n >\n ${htmlSlot()} ${this.contentInternal}\n <i\n part=\"cursor\"\n ?hidden=\"${this.ended}\"\n ></i>\n </div>\n `;\n }\n\n connectedCallback(): void {\n super.connectedCallback();\n this._ranger = new Ranger(this.min, this.max);\n }\n\n protected firstUpdated(): void {\n this.content ||= this._slot?.assignedNodes()[0]?.textContent.trim() || \"\";\n if (!this.ended && this.len) {\n this.write();\n }\n }\n\n protected updated(changedProperties: PropertyValueMap<this>): void {\n if (changedProperties.has(\"index\")) {\n this.dispatchCustomEvent(this.index === this.len ? \"done\" : \"write\", this.contentInternal);\n }\n }\n\n write(at: number = this.index): void {\n this.contentInternal = this.content.slice(0, at + 1);\n const timeout = this.delay || this._ranger.random();\n this.timeoutID = this.timeouts.add(\n setTimeout(() => {\n const nx = at + 1;\n if (nx <= this.len) {\n this.index = nx;\n this.write();\n }\n }, timeout),\n );\n }\n\n stop(): void {\n clearTimeout(this.timeoutID);\n }\n\n end(): void {\n this.ended = true;\n }\n}\n\nexport default Typewriter;\nexport { Typewriter };\n"],"names":["Typewriter","changedProperties: PropertyValueMap<this>","changedProperties","at: number","at","timeout","nx"],"mappings":"2UAOA,MAAM,UAAY,aACZ,SAAW,YAAY,UAAU,CAOvC,IAAA,WAAA,MA8BMA,UAAmB,WAAY,oCAKnC,QAAU,QAMV,MAAQ,QAMR,IAAM,SAMN,IAAM,QAMN,MAAQ,OAMR,MAAQ,OAGR,gBAAkB,GAWlB,IAAI,KAAc,CAChB,OAAO,KAAK,QAAQ,MACrB,CAES,QAA4B,CACpC,MAAO,KAAI,CAAA,iBAGP,EAAE,KAAK,KAAK,eAAe,CAAA,EAE3B,EAAE,UAAU,CAAC,CAAC,EAAE,KAAK,gBAAA,2BAGV,EAAE,KAAK,MAAM,aAG5B,CAAC,AACF,CAED,mBAA0B,CACxB,MAAM,mBAAmB,CACzB,KAAK,QAAU,IAAI,OAAO,KAAK,IAAK,KAAK,IAC1C,CAES,cAAqB,CAC7B,KAAK,UAAY,KAAK,OAAO,eAAe,CAAC,IAAI,YAAY,MAAM,EAAI,GACnE,CAAC,KAAK,OAAS,KAAK,KACtB,KAAK,OAAO,AAEf,CAES,QAAQC,EAAiD,CAC7DC,EAAkB,IAAI,QAAQ,EAChC,KAAK,oBAAoB,KAAK,QAAU,KAAK,IAAM,OAAS,QAAS,KAAK,gBAAgB,AAE7F,CAED,MAAMC,EAAa,KAAK,MAAa,CACnC,KAAK,gBAAkB,KAAK,QAAQ,MAAM,EAAGC,EAAK,EAAE,CACpD,IAAMC,EAAU,KAAK,OAAS,KAAK,QAAQ,QAAQ,CACnD,KAAK,UAAY,KAAK,SAAS,IAC7B,WAAW,IAAM,CACf,IAAMC,EAAKF,EAAK,EACZE,GAAM,KAAK,MACb,KAAK,MAAQA,EACb,KAAK,OAAO,CAEf,EAAED,EAAQ,CACZ,AACF,CAED,MAAa,CACX,aAAa,KAAK,UAAU,AAC7B,CAED,KAAY,CACV,KAAK,MAAQ,EACd,CACF,aAvGE,UAAU,AAAA,EAAA,WAAA,UAAA,UAAA,OAAA,YAMV,SAAS,CAAE,KAAM,OAAS,EAAC,AAAA,EAAA,WAAA,UAAA,QAAA,OAAA,YAM3B,SAAS,CAAE,KAAM,MAAQ,EAAC,AAAA,EAAA,WAAA,UAAA,MAAA,OAAA,YAM1B,SAAS,CAAE,KAAM,MAAQ,EAAC,AAAA,EAAA,WAAA,UAAA,MAAA,OAAA,YAM1B,SAAS,CAAE,KAAM,MAAQ,EAAC,AAAA,EAAA,WAAA,UAAA,QAAA,OAAA,YAM1B,SAAS,CAAE,KAAM,MAAQ,EAAC,AAAA,EAAA,WAAA,UAAA,QAAA,OAAA,YAG1B,OAAO,AAAA,EAAA,WAAA,UAAA,kBAAA,OAAA,CAKP,UAAA,CAAA,MAAM,IAAI,AAAA,EAAA,WAAA,UAAA,KAAA,OAAA,CAxEZ,WAAA,UAAA,CAAA,OAAO,UAAU,CACjB,OAAO,GAAG,CAAC,MAER,EAAE,SAAS,iGASO,EAAE,SAAS,qKAiBjC,CAAC,CAAC,AAAA,EAAA,WAAA,CA8GF,IAAA,aAAe"}
1
+ {"version":3,"file":"component.js","sources":["../../../src/web-components/typewriter/component.ts"],"sourcesContent":["import { attr, godown, htmlSlot, styles } from \"@godown/element\";\nimport { type PropertyValueMap, type TemplateResult, css, html } from \"lit\";\nimport { property, query, state } from \"lit/decorators.js\";\n\nimport { GlobalStyle, scopePrefix } from \"../../internal/global-style.js\";\nimport { Ranger } from \"sharekit\";\n\nconst protoName = \"typewriter\";\nconst cssScope = scopePrefix(protoName);\n\n/**\n * {@linkcode Typewriter} renders a typewriter effect to text.\n *\n * @category effect\n */\n@godown(protoName)\n@styles(css`\n :host {\n ${cssScope}--cursor-width: .05em;\n }\n\n :host,\n :host([contents]) [part=\"root\"] {\n display: inline-block;\n }\n\n i {\n border-right: var(${cssScope}--cursor-width) solid;\n margin-left: 0.02em;\n animation: s 1.5s steps(1) infinite;\n }\n\n @keyframes s {\n 0% {\n border-color: currentColor;\n }\n 50% {\n border-color: transparent;\n }\n }\n\n slot {\n display: none;\n }\n`)\nclass Typewriter extends GlobalStyle {\n /**\n * Raw text.\n */\n @property()\n content = \"\";\n\n /**\n * If true, hide the cursor\n */\n @property({ type: Boolean })\n ended = false;\n\n /**\n * Maximum random time.\n */\n @property({ type: Number })\n max = 100;\n\n /**\n * Minimum random time.\n */\n @property({ type: Number })\n min = 50;\n\n /**\n * Fixed time.\n */\n @property({ type: Number })\n delay = 0;\n\n /**\n * The index at the beginning.\n */\n @property({ type: Number })\n index = 0;\n\n @state()\n contentInternal = \"\";\n\n protected timeoutID: number;\n\n @query(\"i\")\n protected _i: HTMLElement;\n protected _ranger: Ranger;\n\n /**\n * {@linkcode Typewriter.content} length.\n */\n get len(): number {\n return this.content.length;\n }\n\n protected render(): TemplateResult<1> {\n return html`\n <div\n part=\"root\"\n ${attr(this.observedRecord)}\n >\n ${htmlSlot()} ${this.contentInternal}\n <i\n part=\"cursor\"\n ?hidden=\"${this.ended}\"\n ></i>\n </div>\n `;\n }\n\n connectedCallback(): void {\n super.connectedCallback();\n this._ranger = new Ranger(this.min, this.max);\n }\n\n protected firstUpdated(): void {\n this.content ||= this._slot?.assignedNodes()[0]?.textContent.trim() || \"\";\n if (!this.ended && this.len) {\n this.write();\n }\n }\n\n protected updated(changedProperties: PropertyValueMap<this>): void {\n if (changedProperties.has(\"index\")) {\n this.dispatchCustomEvent(this.index === this.len ? \"done\" : \"write\", this.contentInternal);\n }\n }\n\n write(at: number = this.index): void {\n this.contentInternal = this.content.slice(0, at + 1);\n const timeout = this.delay || this._ranger.random();\n this.timeoutID = this.timeouts.add(\n setTimeout(() => {\n const nx = at + 1;\n if (nx <= this.len) {\n this.index = nx;\n this.write();\n }\n }, timeout),\n );\n }\n\n stop(): void {\n clearTimeout(this.timeoutID);\n }\n\n end(): void {\n this.ended = true;\n }\n}\n\nexport default Typewriter;\nexport { Typewriter };\n"],"names":["protoName","cssScope","scopePrefix","Typewriter","GlobalStyle","attr","htmlSlot","Ranger","changedProperties","at","timeout","nx","_decorate","property","state","query","godown","styles","Typewriter$1"],"mappings":"yVAOA,MAAMA,EAAY,aACZC,EAAWC,EAAYF,GAO7B,IAAAG,EAAA,MA8BMA,UAAmBC,CAAY,oCAKnC,QAAU,QAMV,MAAQ,QAMR,IAAM,SAMN,IAAM,QAMN,MAAQ,OAMR,MAAQ,OAGR,gBAAkB,GAWlB,IAAI,KAAc,CAChB,OAAO,KAAK,QAAQ,OAGZ,QAA4B,CACpC,MAAO,EAAI,oBAGLC,EAAK,KAAK,gBAAA,IAEVC,IAAW,GAAG,KAAK,gBAAA,6BAGR,KAAK,MAAM,eAM9B,mBAA0B,CACxB,MAAM,oBACN,KAAK,QAAU,IAAIC,EAAO,KAAK,IAAK,KAAK,KAGjC,cAAqB,CAC7B,KAAK,UAAY,KAAK,OAAO,gBAAgB,IAAI,YAAY,QAAU,GACnE,CAAC,KAAK,OAAS,KAAK,KACtB,KAAK,QAIC,QAAQ,EAAiD,CAC7DC,EAAkB,IAAI,UACxB,KAAK,oBAAoB,KAAK,QAAU,KAAK,IAAM,OAAS,QAAS,KAAK,iBAI9E,MAAM,EAAa,KAAK,MAAa,CACnC,KAAK,gBAAkB,KAAK,QAAQ,MAAM,EAAGC,EAAK,GAClD,IAAMC,EAAU,KAAK,OAAS,KAAK,QAAQ,SAC3C,KAAK,UAAY,KAAK,SAAS,IAC7B,eAAiB,CACf,IAAMC,EAAKF,EAAK,EACZE,GAAM,KAAK,MACb,KAAK,MAAQA,EACb,KAAK,UAEND,IAIP,MAAa,CACX,aAAa,KAAK,WAGpB,KAAY,CACV,KAAK,MAAQ,KArGdE,EAAA,CAAAC,KAAAV,EAAA,UAAA,UAAA,QAMAS,EAAA,CAAAC,EAAS,CAAE,KAAM,WAAAV,EAAA,UAAA,QAAA,QAMjBS,EAAA,CAAAC,EAAS,CAAE,KAAM,UAAAV,EAAA,UAAA,MAAA,QAMjBS,EAAA,CAAAC,EAAS,CAAE,KAAM,UAAAV,EAAA,UAAA,MAAA,QAMjBS,EAAA,CAAAC,EAAS,CAAE,KAAM,UAAAV,EAAA,UAAA,QAAA,QAMjBS,EAAA,CAAAC,EAAS,CAAE,KAAM,UAAAV,EAAA,UAAA,QAAA,QAGjBS,EAAA,CAAAE,KAAAX,EAAA,UAAA,kBAAA,WAKAY,EAAM,MAAAZ,EAAA,UAAA,KAAA,aAxERa,EAAOhB,GACPiB,EAAO,CAAG,SAELhB,EAAS,mGASSA,EAAS,4KA+HjC,IAAAiB,EAAef"}
@@ -1 +1 @@
1
- {"mappings":"AAAA,OAAO,gBAAgB,gBAAiB;AAIxC,eAAe;eAEA;WACH,sBAAsB;EAC9B,qBAAqB;CACtB;AACF","names":[],"sources":["../../../../src/web-components/typewriter/definition.ts"],"sourcesContent":["import Typewriter from \"./component.js\";\n\nTypewriter.define();\n\nexport default Typewriter;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"godown-typewriter\": Typewriter;\n }\n}\n"],"version":3,"file":"definition.d.ts"}
1
+ {"mappings":"AAAA,OAAO,gBAAgB;AAIvB,eAAe;eAEA;WACH,sBAAsB;EAC9B,qBAAqB","names":[],"sources":["../../../../src/web-components/typewriter/definition.ts"],"sourcesContent":["import Typewriter from \"./component.js\";\n\nTypewriter.define();\n\nexport default Typewriter;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"godown-typewriter\": Typewriter;\n }\n}\n"],"version":3,"file":"definition.d.ts"}
@@ -1,2 +1,2 @@
1
- import Typewriter from"./component.js";import"@godown/element";import"lit";import"lit/decorators.js";import"../../internal/global-style.js";import"../../internal/reset-style.js";import"sharekit";import"@oxc-project/runtime/helpers/decorate";Typewriter.define();export{Typewriter as default};
1
+ import e from"./component.js";e.define();export{e as default};
2
2
  //# sourceMappingURL=definition.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"definition.js","sources":["../../../src/web-components/typewriter/definition.ts"],"sourcesContent":["import Typewriter from \"./component.js\";\n\nTypewriter.define();\n\nexport default Typewriter;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"godown-typewriter\": Typewriter;\n }\n}\n"],"names":[],"mappings":"iPAEA,WAAW,QAAQ"}
1
+ {"version":3,"file":"definition.js","sources":["../../../src/web-components/typewriter/definition.ts"],"sourcesContent":["import Typewriter from \"./component.js\";\n\nTypewriter.define();\n\nexport default Typewriter;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"godown-typewriter\": Typewriter;\n }\n}\n"],"names":["Typewriter"],"mappings":"8BAEAA,EAAW"}