godown 2.7.7 → 3.0.0-canary.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 (498) hide show
  1. package/README.md +44 -80
  2. package/alert.d.ts +2 -3
  3. package/alert.d.ts.map +1 -1
  4. package/alert.js +5 -4
  5. package/alert.js.map +1 -1
  6. package/avatar.d.ts +2 -3
  7. package/avatar.d.ts.map +1 -1
  8. package/avatar.js +5 -4
  9. package/avatar.js.map +1 -1
  10. package/breath.d.ts +9 -0
  11. package/breath.d.ts.map +1 -0
  12. package/breath.js +6 -0
  13. package/breath.js.map +1 -0
  14. package/button.d.ts +2 -3
  15. package/button.d.ts.map +1 -1
  16. package/button.js +5 -4
  17. package/button.js.map +1 -1
  18. package/card.d.ts +2 -3
  19. package/card.d.ts.map +1 -1
  20. package/card.js +5 -4
  21. package/card.js.map +1 -1
  22. package/carousel.d.ts +2 -3
  23. package/carousel.d.ts.map +1 -1
  24. package/carousel.js +5 -4
  25. package/carousel.js.map +1 -1
  26. package/components/alert.d.ts +50 -0
  27. package/components/alert.d.ts.map +1 -0
  28. package/components/alert.js +167 -0
  29. package/components/alert.js.map +1 -0
  30. package/components/avatar.d.ts +26 -0
  31. package/components/avatar.d.ts.map +1 -0
  32. package/components/avatar.js +62 -0
  33. package/components/avatar.js.map +1 -0
  34. package/components/breath.d.ts +34 -0
  35. package/components/breath.d.ts.map +1 -0
  36. package/components/breath.js +80 -0
  37. package/components/breath.js.map +1 -0
  38. package/{web-components/button → components}/button.d.ts +6 -5
  39. package/components/button.d.ts.map +1 -0
  40. package/components/button.js +167 -0
  41. package/components/button.js.map +1 -0
  42. package/components/card.d.ts +20 -0
  43. package/components/card.d.ts.map +1 -0
  44. package/components/card.js +55 -0
  45. package/components/card.js.map +1 -0
  46. package/components/carousel.d.ts +40 -0
  47. package/components/carousel.d.ts.map +1 -0
  48. package/components/carousel.js +113 -0
  49. package/components/carousel.js.map +1 -0
  50. package/{web-components/details → components}/details.d.ts +5 -3
  51. package/components/details.d.ts.map +1 -0
  52. package/components/details.js +50 -0
  53. package/components/details.js.map +1 -0
  54. package/components/dialog.d.ts +33 -0
  55. package/components/dialog.d.ts.map +1 -0
  56. package/components/dialog.js +92 -0
  57. package/components/dialog.js.map +1 -0
  58. package/components/divider.d.ts +17 -0
  59. package/components/divider.d.ts.map +1 -0
  60. package/components/divider.js +37 -0
  61. package/components/divider.js.map +1 -0
  62. package/{web-components/wrapper → components}/dragbox.d.ts +15 -5
  63. package/components/dragbox.d.ts.map +1 -0
  64. package/{web-components/wrapper → components}/dragbox.js +32 -27
  65. package/components/dragbox.js.map +1 -0
  66. package/components/flex.d.ts +31 -0
  67. package/components/flex.d.ts.map +1 -0
  68. package/components/flex.js +55 -0
  69. package/components/flex.js.map +1 -0
  70. package/{web-components/form → components}/form.d.ts +4 -2
  71. package/components/form.d.ts.map +1 -0
  72. package/{web-components/form → components}/form.js +16 -17
  73. package/components/form.js.map +1 -0
  74. package/components/grid.d.ts +31 -0
  75. package/components/grid.d.ts.map +1 -0
  76. package/components/grid.js +56 -0
  77. package/components/grid.js.map +1 -0
  78. package/components/input.d.ts +20 -0
  79. package/components/input.d.ts.map +1 -0
  80. package/components/input.js +54 -0
  81. package/components/input.js.map +1 -0
  82. package/components/layout.d.ts +29 -0
  83. package/components/layout.d.ts.map +1 -0
  84. package/components/layout.js +48 -0
  85. package/components/layout.js.map +1 -0
  86. package/components/link.d.ts +20 -0
  87. package/components/link.d.ts.map +1 -0
  88. package/components/link.js +43 -0
  89. package/components/link.js.map +1 -0
  90. package/{web-components/progress → components}/progress.d.ts +5 -3
  91. package/components/progress.d.ts.map +1 -0
  92. package/components/progress.js +68 -0
  93. package/components/progress.js.map +1 -0
  94. package/components/range.d.ts +60 -0
  95. package/components/range.d.ts.map +1 -0
  96. package/components/range.js +193 -0
  97. package/components/range.js.map +1 -0
  98. package/{web-components/wrapper → components}/rotate.d.ts +4 -8
  99. package/components/rotate.d.ts.map +1 -0
  100. package/components/rotate.js +57 -0
  101. package/components/rotate.js.map +1 -0
  102. package/components/router.d.ts +121 -0
  103. package/components/router.d.ts.map +1 -0
  104. package/components/router.js +251 -0
  105. package/components/router.js.map +1 -0
  106. package/components/select.d.ts +50 -0
  107. package/components/select.d.ts.map +1 -0
  108. package/components/select.js +211 -0
  109. package/components/select.js.map +1 -0
  110. package/{web-components/skeleton → components}/skeleton.d.ts +6 -6
  111. package/components/skeleton.d.ts.map +1 -0
  112. package/components/skeleton.js +56 -0
  113. package/components/skeleton.js.map +1 -0
  114. package/components/split.d.ts +32 -0
  115. package/components/split.d.ts.map +1 -0
  116. package/components/split.js +121 -0
  117. package/components/split.js.map +1 -0
  118. package/{web-components/input/switch-input.d.ts → components/switch.d.ts} +9 -10
  119. package/components/switch.d.ts.map +1 -0
  120. package/components/switch.js +93 -0
  121. package/components/switch.js.map +1 -0
  122. package/{web-components/text → components}/text.d.ts +5 -3
  123. package/components/text.d.ts.map +1 -0
  124. package/components/text.js +44 -0
  125. package/components/text.js.map +1 -0
  126. package/{web-components/text → components}/time.d.ts +5 -3
  127. package/components/time.d.ts.map +1 -0
  128. package/{web-components/text → components}/time.js +18 -21
  129. package/components/time.js.map +1 -0
  130. package/components/tooltip.d.ts +38 -0
  131. package/components/tooltip.d.ts.map +1 -0
  132. package/components/tooltip.js +67 -0
  133. package/components/tooltip.js.map +1 -0
  134. package/{web-components/text → components}/typewriter.d.ts +5 -3
  135. package/components/typewriter.d.ts.map +1 -0
  136. package/{web-components/text → components}/typewriter.js +24 -48
  137. package/components/typewriter.js.map +1 -0
  138. package/core/global-style.d.ts +21 -0
  139. package/core/global-style.d.ts.map +1 -0
  140. package/core/global-style.js +46 -0
  141. package/core/global-style.js.map +1 -0
  142. package/core/super-anchor.d.ts +15 -0
  143. package/core/super-anchor.d.ts.map +1 -0
  144. package/core/super-anchor.js +39 -0
  145. package/core/super-anchor.js.map +1 -0
  146. package/core/super-input.d.ts +39 -0
  147. package/core/super-input.d.ts.map +1 -0
  148. package/core/super-input.js +115 -0
  149. package/core/super-input.js.map +1 -0
  150. package/{proto → core}/super-openable.d.ts +4 -8
  151. package/core/super-openable.d.ts.map +1 -0
  152. package/{proto → core}/super-openable.js +10 -15
  153. package/core/super-openable.js.map +1 -0
  154. package/custom-elements.json +1 -0
  155. package/details.d.ts +2 -3
  156. package/details.d.ts.map +1 -1
  157. package/details.js +5 -4
  158. package/details.js.map +1 -1
  159. package/dialog.d.ts +2 -3
  160. package/dialog.d.ts.map +1 -1
  161. package/dialog.js +5 -4
  162. package/dialog.js.map +1 -1
  163. package/divider.d.ts +2 -3
  164. package/divider.d.ts.map +1 -1
  165. package/divider.js +5 -4
  166. package/divider.js.map +1 -1
  167. package/dragbox.d.ts +2 -3
  168. package/dragbox.d.ts.map +1 -1
  169. package/dragbox.js +5 -4
  170. package/dragbox.js.map +1 -1
  171. package/flex.d.ts +8 -0
  172. package/flex.d.ts.map +1 -0
  173. package/flex.js +6 -0
  174. package/flex.js.map +1 -0
  175. package/form.d.ts +2 -3
  176. package/form.d.ts.map +1 -1
  177. package/form.js +5 -4
  178. package/form.js.map +1 -1
  179. package/grid.d.ts +8 -0
  180. package/grid.d.ts.map +1 -0
  181. package/grid.js +6 -0
  182. package/grid.js.map +1 -0
  183. package/index.d.ts +28 -32
  184. package/index.d.ts.map +1 -1
  185. package/index.js +57 -33
  186. package/index.js.map +1 -1
  187. package/input.d.ts +3 -3
  188. package/input.d.ts.map +1 -1
  189. package/input.js +5 -4
  190. package/input.js.map +1 -1
  191. package/layout.d.ts +3 -3
  192. package/layout.d.ts.map +1 -1
  193. package/layout.js +5 -4
  194. package/layout.js.map +1 -1
  195. package/link.d.ts +3 -3
  196. package/link.d.ts.map +1 -1
  197. package/link.js +5 -4
  198. package/link.js.map +1 -1
  199. package/package.json +42 -81
  200. package/progress.d.ts +3 -3
  201. package/progress.d.ts.map +1 -1
  202. package/progress.js +5 -4
  203. package/progress.js.map +1 -1
  204. package/range.d.ts +9 -0
  205. package/range.d.ts.map +1 -0
  206. package/range.js +6 -0
  207. package/range.js.map +1 -0
  208. package/rotate.d.ts +3 -3
  209. package/rotate.d.ts.map +1 -1
  210. package/rotate.js +5 -4
  211. package/rotate.js.map +1 -1
  212. package/router.d.ts +3 -3
  213. package/router.d.ts.map +1 -1
  214. package/router.js +5 -4
  215. package/router.js.map +1 -1
  216. package/select.d.ts +9 -0
  217. package/select.d.ts.map +1 -0
  218. package/select.js +6 -0
  219. package/select.js.map +1 -0
  220. package/skeleton.d.ts +3 -3
  221. package/skeleton.d.ts.map +1 -1
  222. package/skeleton.js +5 -4
  223. package/skeleton.js.map +1 -1
  224. package/split.d.ts +9 -0
  225. package/split.d.ts.map +1 -0
  226. package/split.js +6 -0
  227. package/split.js.map +1 -0
  228. package/switch.d.ts +9 -0
  229. package/switch.d.ts.map +1 -0
  230. package/switch.js +6 -0
  231. package/switch.js.map +1 -0
  232. package/text.d.ts +3 -3
  233. package/text.d.ts.map +1 -1
  234. package/text.js +5 -4
  235. package/text.js.map +1 -1
  236. package/time.d.ts +3 -3
  237. package/time.d.ts.map +1 -1
  238. package/time.js +5 -4
  239. package/time.js.map +1 -1
  240. package/tooltip.d.ts +3 -3
  241. package/tooltip.d.ts.map +1 -1
  242. package/tooltip.js +5 -4
  243. package/tooltip.js.map +1 -1
  244. package/typewriter.d.ts +2 -3
  245. package/typewriter.d.ts.map +1 -1
  246. package/typewriter.js +5 -4
  247. package/typewriter.js.map +1 -1
  248. package/vscode.css-custom-data.json +1 -0
  249. package/vscode.html-custom-data.json +1 -0
  250. package/web-types.json +1 -0
  251. package/_deps.d.ts +0 -4
  252. package/_deps.d.ts.map +0 -1
  253. package/_deps.js +0 -4
  254. package/_deps.js.map +0 -1
  255. package/avatar-group.d.ts +0 -9
  256. package/avatar-group.d.ts.map +0 -1
  257. package/avatar-group.js +0 -5
  258. package/avatar-group.js.map +0 -1
  259. package/components.json +0 -194
  260. package/conf.d.ts +0 -12
  261. package/conf.d.ts.map +0 -1
  262. package/conf.js +0 -24
  263. package/conf.js.map +0 -1
  264. package/decorators/godown.d.ts +0 -4
  265. package/decorators/godown.d.ts.map +0 -1
  266. package/decorators/godown.js +0 -9
  267. package/decorators/godown.js.map +0 -1
  268. package/decorators/part.d.ts +0 -7
  269. package/decorators/part.d.ts.map +0 -1
  270. package/decorators/part.js +0 -8
  271. package/decorators/part.js.map +0 -1
  272. package/decorators/styles.d.ts +0 -3
  273. package/decorators/styles.d.ts.map +0 -1
  274. package/decorators/styles.js +0 -8
  275. package/decorators/styles.js.map +0 -1
  276. package/flex-flow.d.ts +0 -9
  277. package/flex-flow.d.ts.map +0 -1
  278. package/flex-flow.js +0 -5
  279. package/flex-flow.js.map +0 -1
  280. package/grid-flow.d.ts +0 -9
  281. package/grid-flow.d.ts.map +0 -1
  282. package/grid-flow.js +0 -5
  283. package/grid-flow.js.map +0 -1
  284. package/label-input.d.ts +0 -9
  285. package/label-input.d.ts.map +0 -1
  286. package/label-input.js +0 -5
  287. package/label-input.js.map +0 -1
  288. package/lib/css.d.ts +0 -13
  289. package/lib/css.d.ts.map +0 -1
  290. package/lib/css.js +0 -29
  291. package/lib/css.js.map +0 -1
  292. package/lib/directives.d.ts +0 -25
  293. package/lib/directives.d.ts.map +0 -1
  294. package/lib/directives.js +0 -40
  295. package/lib/directives.js.map +0 -1
  296. package/lib/event-coll.d.ts +0 -13
  297. package/lib/event-coll.d.ts.map +0 -1
  298. package/lib/event-coll.js +0 -45
  299. package/lib/event-coll.js.map +0 -1
  300. package/lib/icons.d.ts +0 -25
  301. package/lib/icons.d.ts.map +0 -1
  302. package/lib/icons.js +0 -73
  303. package/lib/icons.js.map +0 -1
  304. package/lib/jsx.d.ts +0 -4
  305. package/lib/jsx.d.ts.map +0 -1
  306. package/lib/jsx.js +0 -52
  307. package/lib/jsx.js.map +0 -1
  308. package/lib/route-tree.d.ts +0 -28
  309. package/lib/route-tree.d.ts.map +0 -1
  310. package/lib/route-tree.js +0 -141
  311. package/lib/route-tree.js.map +0 -1
  312. package/lib/utils.d.ts +0 -10
  313. package/lib/utils.d.ts.map +0 -1
  314. package/lib/utils.js +0 -71
  315. package/lib/utils.js.map +0 -1
  316. package/overbreath.d.ts +0 -9
  317. package/overbreath.d.ts.map +0 -1
  318. package/overbreath.js +0 -5
  319. package/overbreath.js.map +0 -1
  320. package/proto/godown-config.d.ts +0 -41
  321. package/proto/godown-config.d.ts.map +0 -1
  322. package/proto/godown-config.js +0 -27
  323. package/proto/godown-config.js.map +0 -1
  324. package/proto/godown-element.d.ts +0 -125
  325. package/proto/godown-element.d.ts.map +0 -1
  326. package/proto/godown-element.js +0 -204
  327. package/proto/godown-element.js.map +0 -1
  328. package/proto/super-a.d.ts +0 -30
  329. package/proto/super-a.d.ts.map +0 -1
  330. package/proto/super-a.js +0 -141
  331. package/proto/super-a.js.map +0 -1
  332. package/proto/super-input.d.ts +0 -44
  333. package/proto/super-input.d.ts.map +0 -1
  334. package/proto/super-input.js +0 -119
  335. package/proto/super-input.js.map +0 -1
  336. package/proto/super-openable.d.ts.map +0 -1
  337. package/proto/super-openable.js.map +0 -1
  338. package/range-input.d.ts +0 -9
  339. package/range-input.d.ts.map +0 -1
  340. package/range-input.js +0 -5
  341. package/range-input.js.map +0 -1
  342. package/react/create.d.ts +0 -5
  343. package/react/create.d.ts.map +0 -1
  344. package/react/create.js +0 -16
  345. package/react/create.js.map +0 -1
  346. package/react/index.d.ts +0 -65
  347. package/react/index.d.ts.map +0 -1
  348. package/react/index.js +0 -132
  349. package/react/index.js.map +0 -1
  350. package/router-link.d.ts +0 -9
  351. package/router-link.d.ts.map +0 -1
  352. package/router-link.js +0 -5
  353. package/router-link.js.map +0 -1
  354. package/search-input.d.ts +0 -9
  355. package/search-input.d.ts.map +0 -1
  356. package/search-input.js +0 -5
  357. package/search-input.js.map +0 -1
  358. package/select-input.d.ts +0 -9
  359. package/select-input.d.ts.map +0 -1
  360. package/select-input.js +0 -5
  361. package/select-input.js.map +0 -1
  362. package/split-input.d.ts +0 -9
  363. package/split-input.d.ts.map +0 -1
  364. package/split-input.js +0 -5
  365. package/split-input.js.map +0 -1
  366. package/styles/colors/presets.d.ts +0 -13
  367. package/styles/colors/presets.d.ts.map +0 -1
  368. package/styles/colors/presets.js +0 -6
  369. package/styles/colors/presets.js.map +0 -1
  370. package/styles/colors/presetsRGB.d.ts +0 -16
  371. package/styles/colors/presetsRGB.d.ts.map +0 -1
  372. package/styles/colors/presetsRGB.js +0 -134
  373. package/styles/colors/presetsRGB.js.map +0 -1
  374. package/styles/global.d.ts +0 -18
  375. package/styles/global.d.ts.map +0 -1
  376. package/styles/global.js +0 -78
  377. package/styles/global.js.map +0 -1
  378. package/styles/inputStyle.d.ts +0 -3
  379. package/styles/inputStyle.d.ts.map +0 -1
  380. package/styles/inputStyle.js +0 -59
  381. package/styles/inputStyle.js.map +0 -1
  382. package/switch-input.d.ts +0 -9
  383. package/switch-input.d.ts.map +0 -1
  384. package/switch-input.js +0 -5
  385. package/switch-input.js.map +0 -1
  386. package/web-components/alert/alert.d.ts +0 -36
  387. package/web-components/alert/alert.d.ts.map +0 -1
  388. package/web-components/alert/alert.js +0 -161
  389. package/web-components/alert/alert.js.map +0 -1
  390. package/web-components/avatar/avatar-group.d.ts +0 -21
  391. package/web-components/avatar/avatar-group.d.ts.map +0 -1
  392. package/web-components/avatar/avatar-group.js +0 -86
  393. package/web-components/avatar/avatar-group.js.map +0 -1
  394. package/web-components/avatar/avatar.d.ts +0 -28
  395. package/web-components/avatar/avatar.d.ts.map +0 -1
  396. package/web-components/avatar/avatar.js +0 -120
  397. package/web-components/avatar/avatar.js.map +0 -1
  398. package/web-components/button/button.d.ts.map +0 -1
  399. package/web-components/button/button.js +0 -256
  400. package/web-components/button/button.js.map +0 -1
  401. package/web-components/card/card.d.ts +0 -9
  402. package/web-components/card/card.d.ts.map +0 -1
  403. package/web-components/card/card.js +0 -75
  404. package/web-components/card/card.js.map +0 -1
  405. package/web-components/carousel/carousel.d.ts +0 -29
  406. package/web-components/carousel/carousel.d.ts.map +0 -1
  407. package/web-components/carousel/carousel.js +0 -185
  408. package/web-components/carousel/carousel.js.map +0 -1
  409. package/web-components/details/details.d.ts.map +0 -1
  410. package/web-components/details/details.js +0 -124
  411. package/web-components/details/details.js.map +0 -1
  412. package/web-components/dialog/dialog.d.ts +0 -31
  413. package/web-components/dialog/dialog.d.ts.map +0 -1
  414. package/web-components/dialog/dialog.js +0 -143
  415. package/web-components/dialog/dialog.js.map +0 -1
  416. package/web-components/divider/divider.d.ts +0 -13
  417. package/web-components/divider/divider.d.ts.map +0 -1
  418. package/web-components/divider/divider.js +0 -95
  419. package/web-components/divider/divider.js.map +0 -1
  420. package/web-components/form/form.d.ts.map +0 -1
  421. package/web-components/form/form.js.map +0 -1
  422. package/web-components/input/input.d.ts +0 -37
  423. package/web-components/input/input.d.ts.map +0 -1
  424. package/web-components/input/input.js +0 -152
  425. package/web-components/input/input.js.map +0 -1
  426. package/web-components/input/label-input.d.ts +0 -15
  427. package/web-components/input/label-input.d.ts.map +0 -1
  428. package/web-components/input/label-input.js +0 -96
  429. package/web-components/input/label-input.js.map +0 -1
  430. package/web-components/input/range-input.d.ts +0 -53
  431. package/web-components/input/range-input.d.ts.map +0 -1
  432. package/web-components/input/range-input.js +0 -316
  433. package/web-components/input/range-input.js.map +0 -1
  434. package/web-components/input/search-input.d.ts +0 -42
  435. package/web-components/input/search-input.d.ts.map +0 -1
  436. package/web-components/input/search-input.js +0 -214
  437. package/web-components/input/search-input.js.map +0 -1
  438. package/web-components/input/select-input.d.ts +0 -36
  439. package/web-components/input/select-input.d.ts.map +0 -1
  440. package/web-components/input/select-input.js +0 -210
  441. package/web-components/input/select-input.js.map +0 -1
  442. package/web-components/input/split-input.d.ts +0 -29
  443. package/web-components/input/split-input.d.ts.map +0 -1
  444. package/web-components/input/split-input.js +0 -184
  445. package/web-components/input/split-input.js.map +0 -1
  446. package/web-components/input/switch-input.d.ts.map +0 -1
  447. package/web-components/input/switch-input.js +0 -189
  448. package/web-components/input/switch-input.js.map +0 -1
  449. package/web-components/layout/flex-flow.d.ts +0 -17
  450. package/web-components/layout/flex-flow.d.ts.map +0 -1
  451. package/web-components/layout/flex-flow.js +0 -73
  452. package/web-components/layout/flex-flow.js.map +0 -1
  453. package/web-components/layout/grid-flow.d.ts +0 -14
  454. package/web-components/layout/grid-flow.d.ts.map +0 -1
  455. package/web-components/layout/grid-flow.js +0 -56
  456. package/web-components/layout/grid-flow.js.map +0 -1
  457. package/web-components/layout/layout.d.ts +0 -18
  458. package/web-components/layout/layout.d.ts.map +0 -1
  459. package/web-components/layout/layout.js +0 -76
  460. package/web-components/layout/layout.js.map +0 -1
  461. package/web-components/link/link.d.ts +0 -10
  462. package/web-components/link/link.d.ts.map +0 -1
  463. package/web-components/link/link.js +0 -17
  464. package/web-components/link/link.js.map +0 -1
  465. package/web-components/link/router-link.d.ts +0 -19
  466. package/web-components/link/router-link.d.ts.map +0 -1
  467. package/web-components/link/router-link.js +0 -60
  468. package/web-components/link/router-link.js.map +0 -1
  469. package/web-components/progress/progress.d.ts.map +0 -1
  470. package/web-components/progress/progress.js +0 -107
  471. package/web-components/progress/progress.js.map +0 -1
  472. package/web-components/router/router.d.ts +0 -86
  473. package/web-components/router/router.d.ts.map +0 -1
  474. package/web-components/router/router.js +0 -246
  475. package/web-components/router/router.js.map +0 -1
  476. package/web-components/skeleton/skeleton.d.ts.map +0 -1
  477. package/web-components/skeleton/skeleton.js +0 -130
  478. package/web-components/skeleton/skeleton.js.map +0 -1
  479. package/web-components/text/overbreath.d.ts +0 -22
  480. package/web-components/text/overbreath.d.ts.map +0 -1
  481. package/web-components/text/overbreath.js +0 -132
  482. package/web-components/text/overbreath.js.map +0 -1
  483. package/web-components/text/text.d.ts.map +0 -1
  484. package/web-components/text/text.js +0 -94
  485. package/web-components/text/text.js.map +0 -1
  486. package/web-components/text/time.d.ts.map +0 -1
  487. package/web-components/text/time.js.map +0 -1
  488. package/web-components/text/typewriter.d.ts.map +0 -1
  489. package/web-components/text/typewriter.js.map +0 -1
  490. package/web-components/tooltip/tooltip.d.ts +0 -30
  491. package/web-components/tooltip/tooltip.d.ts.map +0 -1
  492. package/web-components/tooltip/tooltip.js +0 -123
  493. package/web-components/tooltip/tooltip.js.map +0 -1
  494. package/web-components/wrapper/dragbox.d.ts.map +0 -1
  495. package/web-components/wrapper/dragbox.js.map +0 -1
  496. package/web-components/wrapper/rotate.d.ts.map +0 -1
  497. package/web-components/wrapper/rotate.js +0 -92
  498. package/web-components/wrapper/rotate.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"carousel.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/carousel/carousel.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAI9D;;GAEG;AACH,qBAuEa,QAAS,SAAQ,aAAa;IACzC;;OAEG;IACyB,KAAK,SAAK;IACtC;;OAEG;IACyB,UAAU,SAAK;IAC3C;;OAEG;IACS,KAAK,SAAM;IAEJ,SAAS,EAAE,WAAW,CAAC;IAC1C,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,WAAW,EAAE,CAAM;IAE3B,SAAS,CAAC,MAAM;IAchB,SAAS,CAAC,YAAY;IAwBtB,oBAAoB;IAIpB,IAAI,CAAC,CAAC,EAAE,MAAM;IAMd,IAAI;IAWJ,IAAI;CAUL;AAED,eAAe,QAAQ,CAAC"}
@@ -1,185 +0,0 @@
1
- import { __decorate } from "tslib";
2
- import { css, html, property } from "../../_deps.js";
3
- import { godown } from "../../decorators/godown.js";
4
- import { part } from "../../decorators/part.js";
5
- import { styles } from "../../decorators/styles.js";
6
- import { htmlSlot } from "../../lib/directives.js";
7
- import { htmlStyle } from "../../lib/directives.js";
8
- import { svgArrow } from "../../lib/icons.js";
9
- import { GodownElement } from "../../proto/godown-element.js";
10
- const protoName = "carousel";
11
- /**
12
- * {@linkcode Carousel} rotates child elements.
13
- */
14
- let Carousel = class Carousel extends GodownElement {
15
- constructor() {
16
- super(...arguments);
17
- /**
18
- * The index of the element is displayed for the first time.
19
- */
20
- this.index = 0;
21
- /**
22
- * If autoChange > 0, the rotation will be automated.
23
- */
24
- this.autoChange = 0;
25
- /**
26
- * Width.
27
- */
28
- this.width = "";
29
- this._clone = [];
30
- }
31
- render() {
32
- const style = this.width && `:host{width:${this.width.split(";")[0]};}`;
33
- return html `<div part="root">
34
- <a part="prev" class="prev" @click="${this.prev}">
35
- <i>${svgArrow()}</i>
36
- </a>
37
- <div part="move-root">${htmlSlot()}</div>
38
- <a part="next" class="next" @click="${this.next}">
39
- <i>${svgArrow()}</i>
40
- </a>
41
- ${htmlStyle(style)}
42
- </div>`;
43
- }
44
- firstUpdated() {
45
- if (this.assigned.length) {
46
- if (!this.width) {
47
- this.width = `${this.assigned[0].offsetWidth}px`;
48
- }
49
- if (this._clone.length) {
50
- this._clone.forEach((element) => element.remove());
51
- this._clone = [];
52
- }
53
- const last = this.assigned[0].cloneNode(true);
54
- const first = this.assigned[this.assigned.length - 1].cloneNode(true);
55
- first.style.marginLeft = "-100%";
56
- this._clone.push(first, last);
57
- this.appendChild(last);
58
- this.insertBefore(first, this.firstElementChild);
59
- this.show(this.index);
60
- }
61
- if (this.autoChange) {
62
- this.intervalID = setInterval(() => {
63
- this.next();
64
- }, this.autoChange);
65
- }
66
- }
67
- disconnectedCallback() {
68
- clearInterval(this.intervalID);
69
- }
70
- show(i) {
71
- this.index = i;
72
- this._moveRoot.style.transform = `translateX(-${i}00%)`;
73
- this._moveRoot.style.transition = "inherit";
74
- }
75
- next() {
76
- if (this.index === this.assigned.length - 3) {
77
- this._moveRoot.style.transform = `translateX(100%)`;
78
- this._moveRoot.style.transition = "none";
79
- this._moveRoot.getBoundingClientRect();
80
- this.show(0);
81
- }
82
- else {
83
- this.show(this.index + 1);
84
- }
85
- }
86
- prev() {
87
- if (this.index === 0) {
88
- this._moveRoot.style.transform = `translateX(-${this.assigned.length - 2}00%)`;
89
- this._moveRoot.style.transition = `none`;
90
- this._moveRoot.getBoundingClientRect();
91
- this.show(this.assigned.length - 3);
92
- }
93
- else {
94
- this.show(this.index - 1);
95
- }
96
- }
97
- };
98
- __decorate([
99
- property({ type: Number })
100
- ], Carousel.prototype, "index", void 0);
101
- __decorate([
102
- property({ type: Number })
103
- ], Carousel.prototype, "autoChange", void 0);
104
- __decorate([
105
- property()
106
- ], Carousel.prototype, "width", void 0);
107
- __decorate([
108
- part("move-root")
109
- ], Carousel.prototype, "_moveRoot", void 0);
110
- Carousel = __decorate([
111
- godown(protoName),
112
- styles([
113
- css `
114
- :host {
115
- display: block;
116
- transition: all 0.2s;
117
- }
118
-
119
- [part="root"] {
120
- overflow: hidden;
121
- }
122
-
123
- div {
124
- width: 100%;
125
- display: flex;
126
- position: relative;
127
- transition: inherit;
128
- }
129
-
130
- a {
131
- position: absolute;
132
- height: 100%;
133
- width: -moz-fit-content;
134
- width: fit-content;
135
- z-index: 1;
136
- display: flex;
137
- align-items: center;
138
- }
139
-
140
- [part="prev"] {
141
- left: 0;
142
- }
143
-
144
- [part="prev"] svg {
145
- transform: rotate(180deg);
146
- }
147
-
148
- [part="next"] {
149
- right: 0;
150
- }
151
-
152
- i {
153
- position: relative;
154
- display: flex;
155
- align-items: center;
156
- justify-content: center;
157
- transition: 0.3s;
158
- width: 2em;
159
- height: 100%;
160
- }
161
-
162
- svg {
163
- flex: 1;
164
- max-height: 100%;
165
- max-width: 100%;
166
- }
167
-
168
- a:hover i {
169
- background-color: #0000001a;
170
- width: 2.2em;
171
- }
172
-
173
- i svg path {
174
- stroke-width: 4;
175
- }
176
-
177
- slot::slotted(*) {
178
- flex-shrink: 0 !important;
179
- }
180
- `,
181
- ])
182
- ], Carousel);
183
- export { Carousel };
184
- export default Carousel;
185
- //# sourceMappingURL=carousel.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"carousel.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/carousel/carousel.ts"],"names":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AY;AAEJ;IAAlB,IAAI,CAAC,WAAW,CAAC;2CAAwB;AAd/B,QAAQ;IAvEpB,MAAM,CAAC,SAAS,CAAC;IACjB,MAAM,CAAC;QACN,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmEF;KACF,CAAC;GACW,QAAQ,CAuFpB;;AAED,eAAe,QAAQ,CAAC","sourcesContent":["import { css, html, property } from \"../../_deps.js\";\nimport { godown } from \"../../decorators/godown.js\";\nimport { part } from \"../../decorators/part.js\";\nimport { styles } from \"../../decorators/styles.js\";\nimport { htmlSlot } from \"../../lib/directives.js\";\nimport { htmlStyle } from \"../../lib/directives.js\";\nimport { svgArrow } from \"../../lib/icons.js\";\nimport { GodownElement } from \"../../proto/godown-element.js\";\n\nconst protoName = \"carousel\";\n\n/**\n * {@linkcode Carousel} rotates child elements.\n */\n@godown(protoName)\n@styles([\n css`\n :host {\n display: block;\n transition: all 0.2s;\n }\n\n [part=\"root\"] {\n overflow: hidden;\n }\n\n div {\n width: 100%;\n display: flex;\n position: relative;\n transition: inherit;\n }\n\n a {\n position: absolute;\n height: 100%;\n width: -moz-fit-content;\n width: fit-content;\n z-index: 1;\n display: flex;\n align-items: center;\n }\n\n [part=\"prev\"] {\n left: 0;\n }\n\n [part=\"prev\"] svg {\n transform: rotate(180deg);\n }\n\n [part=\"next\"] {\n right: 0;\n }\n\n i {\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n transition: 0.3s;\n width: 2em;\n height: 100%;\n }\n\n svg {\n flex: 1;\n max-height: 100%;\n max-width: 100%;\n }\n\n a:hover i {\n background-color: #0000001a;\n width: 2.2em;\n }\n\n i svg path {\n stroke-width: 4;\n }\n\n slot::slotted(*) {\n flex-shrink: 0 !important;\n }\n `,\n])\nexport class Carousel extends GodownElement {\n /**\n * The index of the element is displayed for the first time.\n */\n @property({ type: Number }) index = 0;\n /**\n * If autoChange > 0, the rotation will be automated.\n */\n @property({ type: Number }) autoChange = 0;\n /**\n * Width.\n */\n @property() width = \"\";\n\n @part(\"move-root\") _moveRoot: HTMLElement;\n intervalID: number;\n _clone: HTMLElement[] = [];\n\n protected render() {\n const style = this.width && `:host{width:${this.width.split(\";\")[0]};}`;\n return html`<div part=\"root\">\n <a part=\"prev\" class=\"prev\" @click=\"${this.prev}\">\n <i>${svgArrow()}</i>\n </a>\n <div part=\"move-root\">${htmlSlot()}</div>\n <a part=\"next\" class=\"next\" @click=\"${this.next}\">\n <i>${svgArrow()}</i>\n </a>\n ${htmlStyle(style)}\n </div>`;\n }\n\n protected firstUpdated() {\n if (this.assigned.length) {\n if (!this.width) {\n this.width = `${this.assigned[0].offsetWidth}px`;\n }\n if (this._clone.length) {\n this._clone.forEach((element) => element.remove());\n this._clone = [];\n }\n const last = this.assigned[0].cloneNode(true) as HTMLElement;\n const first = this.assigned[this.assigned.length - 1].cloneNode(true) as HTMLElement;\n first.style.marginLeft = \"-100%\";\n this._clone.push(first, last);\n this.appendChild(last);\n this.insertBefore(first, this.firstElementChild);\n this.show(this.index);\n }\n if (this.autoChange) {\n this.intervalID = setInterval(() => {\n this.next();\n }, this.autoChange);\n }\n }\n\n disconnectedCallback() {\n clearInterval(this.intervalID);\n }\n\n show(i: number) {\n this.index = i;\n this._moveRoot.style.transform = `translateX(-${i}00%)`;\n this._moveRoot.style.transition = \"inherit\";\n }\n\n next() {\n if (this.index === this.assigned.length - 3) {\n this._moveRoot.style.transform = `translateX(100%)`;\n this._moveRoot.style.transition = \"none\";\n this._moveRoot.getBoundingClientRect();\n this.show(0);\n } else {\n this.show(this.index + 1);\n }\n }\n\n prev() {\n if (this.index === 0) {\n this._moveRoot.style.transform = `translateX(-${this.assigned.length - 2}00%)`;\n this._moveRoot.style.transition = `none`;\n this._moveRoot.getBoundingClientRect();\n this.show(this.assigned.length - 3);\n } else {\n this.show(this.index - 1);\n }\n }\n}\n\nexport default Carousel;\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"details.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/details/details.ts"],"names":[],"mappings":"AAKA,OAAO,cAAc,MAAM,+BAA+B,CAAC;AAO3D;;GAEG;AACH,qBAyEa,OAAQ,SAAQ,cAAc;IACzC;;OAEG;IAC0B,IAAI,UAAS;IAC1C;;OAEG;IACS,OAAO,SAAM;IAEZ,GAAG,EAAE,mBAAmB,CAAC;IAEtC,SAAS,CAAC,MAAM;CAWjB;AAED,eAAe,OAAO,CAAC"}
@@ -1,124 +0,0 @@
1
- import { __decorate } from "tslib";
2
- import { css, html, property, query } from "../../_deps.js";
3
- import { godown } from "../../decorators/godown.js";
4
- import { styles } from "../../decorators/styles.js";
5
- import { htmlSlot } from "../../lib/directives.js";
6
- import { svgDeltaSmooth } from "../../lib/icons.js";
7
- import GodownOpenable from "../../proto/super-openable.js";
8
- import { createScope } from "../../styles/global.js";
9
- const protoName = "details";
10
- const cssScope = createScope(protoName);
11
- /**
12
- * {@linkcode Details} similar to details.
13
- */
14
- let Details = class Details extends GodownOpenable {
15
- constructor() {
16
- super(...arguments);
17
- /**
18
- * If it is true, the summary event scope will fill the element.
19
- */
20
- this.fill = false;
21
- /**
22
- * Summary text.
23
- */
24
- this.summary = "";
25
- }
26
- render() {
27
- return html `<dl part="root">
28
- <dt part="title" @click="${this._handelClick}">
29
- <span part="summary"> ${this.summary || htmlSlot("summary")} </span>
30
- <i part="open">${svgDeltaSmooth()}</i>
31
- </dt>
32
- <dd part="details" @click=${this.fill ? () => this.toggle() : null}>
33
- <section part="slot">${htmlSlot()}</section>
34
- </dd>
35
- </dl>`;
36
- }
37
- };
38
- __decorate([
39
- property({ type: Boolean })
40
- ], Details.prototype, "fill", void 0);
41
- __decorate([
42
- property()
43
- ], Details.prototype, "summary", void 0);
44
- __decorate([
45
- query("dd")
46
- ], Details.prototype, "_dd", void 0);
47
- Details = __decorate([
48
- godown(protoName),
49
- styles([
50
- css `
51
- :host {
52
- --${cssScope}--icon-deg-open: -90deg;
53
- --${cssScope}--icon-deg: 0deg;
54
- --${cssScope}--summary-direction: row;
55
- --${cssScope}--transition: .3s;
56
- height: -moz-fit-content;
57
- height: fit-content;
58
- display: block;
59
- transition: var(--${cssScope}--transition);
60
- }
61
-
62
- span {
63
- display: inline-flex;
64
- align-items: center;
65
- white-space: nowrap;
66
- }
67
-
68
- dl {
69
- height: 100%;
70
- position: relative;
71
- overflow: hidden;
72
- }
73
-
74
- dt {
75
- height: 100%;
76
- display: flex;
77
- flex-wrap: nowrap;
78
- justify-content: space-between;
79
- background: inherit;
80
- align-items: center;
81
- flex-direction: var(--${cssScope}--summary-direction);
82
- }
83
-
84
- dd {
85
- display: grid;
86
- overflow: hidden;
87
- grid-template-rows: 0fr;
88
- transition: var(--${cssScope}--transition);
89
- transition-property:grid-template-rows;
90
- }
91
-
92
- section {
93
- min-height: 0;
94
- overflow: hidden;
95
- }
96
-
97
- i {
98
- height: 1em;
99
- width: 1em;
100
- display: flex;
101
- -webkit-backface-visibility: hidden;
102
- backface-visibility: hidden;
103
- transform: rotate(var(--${cssScope}--icon-deg));
104
- transition: var(--${cssScope}--transition);
105
- }
106
-
107
- :host([open]) dd {
108
- grid-template-rows: 1fr;
109
- }
110
-
111
- :host([float]) dd {
112
- top: 100%;
113
- position: absolute;
114
- }
115
-
116
- :host([open]) i {
117
- transform: rotate(var(--${cssScope}--icon-deg-open));
118
- }
119
- `,
120
- ])
121
- ], Details);
122
- export { Details };
123
- export default Details;
124
- //# sourceMappingURL=details.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"details.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/details/details.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,4B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;GACW,OAAO,CAuBnB;;AAED,eAAe,OAAO,CAAC","sourcesContent":["import { css, html, property, query } from \"../../_deps.js\";\nimport { godown } from \"../../decorators/godown.js\";\nimport { styles } from \"../../decorators/styles.js\";\nimport { htmlSlot } from \"../../lib/directives.js\";\nimport { svgDeltaSmooth } from \"../../lib/icons.js\";\nimport GodownOpenable from \"../../proto/super-openable.js\";\nimport { createScope } from \"../../styles/global.js\";\n\nconst protoName = \"details\";\n\nconst cssScope = createScope(protoName);\n\n/**\n * {@linkcode Details} similar to details.\n */\n@godown(protoName)\n@styles([\n css`\n :host {\n --${cssScope}--icon-deg-open: -90deg;\n --${cssScope}--icon-deg: 0deg;\n --${cssScope}--summary-direction: row;\n --${cssScope}--transition: .3s;\n height: -moz-fit-content;\n height: fit-content;\n display: block;\n transition: var(--${cssScope}--transition);\n }\n\n span {\n display: inline-flex;\n align-items: center;\n white-space: nowrap;\n }\n\n dl {\n height: 100%;\n position: relative;\n overflow: hidden;\n }\n\n dt {\n height: 100%;\n display: flex;\n flex-wrap: nowrap;\n justify-content: space-between;\n background: inherit;\n align-items: center;\n flex-direction: var(--${cssScope}--summary-direction);\n }\n\n dd {\n display: grid;\n overflow: hidden;\n grid-template-rows: 0fr;\n transition: var(--${cssScope}--transition);\n transition-property:grid-template-rows;\n }\n\n section {\n min-height: 0;\n overflow: hidden;\n }\n\n i {\n height: 1em;\n width: 1em;\n display: flex;\n -webkit-backface-visibility: hidden;\n backface-visibility: hidden;\n transform: rotate(var(--${cssScope}--icon-deg));\n transition: var(--${cssScope}--transition);\n }\n\n :host([open]) dd {\n grid-template-rows: 1fr;\n }\n\n :host([float]) dd {\n top: 100%;\n position: absolute;\n }\n\n :host([open]) i {\n transform: rotate(var(--${cssScope}--icon-deg-open));\n }\n `,\n])\nexport class Details extends GodownOpenable {\n /**\n * If it is true, the summary event scope will fill the element.\n */\n @property({ type: Boolean }) fill = false;\n /**\n * Summary text.\n */\n @property() summary = \"\";\n\n @query(\"dd\") _dd: HTMLDataListElement;\n\n protected render() {\n return html`<dl part=\"root\">\n <dt part=\"title\" @click=\"${this._handelClick}\">\n <span part=\"summary\"> ${this.summary || htmlSlot(\"summary\")} </span>\n <i part=\"open\">${svgDeltaSmooth()}</i>\n </dt>\n <dd part=\"details\" @click=${this.fill ? () => this.toggle() : null}>\n <section part=\"slot\">${htmlSlot()}</section>\n </dd>\n </dl>`;\n }\n}\n\nexport default Details;\n"]}
@@ -1,31 +0,0 @@
1
- import GodownSuperOpenable, { type Direction9 } from "../../proto/super-openable.js";
2
- /**
3
- * {@linkcode Dialog} similar to dialog.
4
- */
5
- export declare class Dialog extends GodownSuperOpenable {
6
- direction: Direction9;
7
- /**
8
- * Enable modal.
9
- */
10
- modal: boolean;
11
- /**
12
- * @deprecated
13
- */
14
- scale: boolean;
15
- /**
16
- * @deprecated
17
- */
18
- gap: number;
19
- /**
20
- * Exit key, which can be multiple.
21
- */
22
- key: string;
23
- protected render(): import("lit").TemplateResult<1>;
24
- connectedCallback(): void;
25
- showModal(): void;
26
- protected _handelWheel(e: WheelEvent): void;
27
- protected _handleKeydown(e: KeyboardEvent): void;
28
- protected _handelSubmit(e: SubmitEvent): void;
29
- }
30
- export default Dialog;
31
- //# sourceMappingURL=dialog.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dialog.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/dialog/dialog.ts"],"names":[],"mappings":"AAIA,OAAO,mBAAmB,EAAE,EAAE,KAAK,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAMrF;;GAEG;AACH,qBA4Ea,MAAO,SAAQ,mBAAmB;IAC7C,SAAS,EAAE,UAAU,CAAY;IACjC;;OAEG;IACyC,KAAK,UAAS;IAC1D;;OAEG;IACH,KAAK,EAAE,OAAO,CAAC;IACf;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACyB,GAAG,SAAY;IAE3C,SAAS,CAAC,MAAM;IAIhB,iBAAiB;IAQjB,SAAS;IAKT,SAAS,CAAC,YAAY,CAAC,CAAC,EAAE,UAAU;IAMpC,SAAS,CAAC,cAAc,CAAC,CAAC,EAAE,aAAa;IAOzC,SAAS,CAAC,aAAa,CAAC,CAAC,EAAE,WAAW;CAKvC;AAED,eAAe,MAAM,CAAC"}
@@ -1,143 +0,0 @@
1
- import { __decorate } from "tslib";
2
- import { css, html, property } from "../../_deps.js";
3
- import { godown } from "../../decorators/godown.js";
4
- import { styles } from "../../decorators/styles.js";
5
- import { htmlSlot } from "../../lib/directives.js";
6
- import GodownSuperOpenable from "../../proto/super-openable.js";
7
- import { createScope, cssGlobalVars } from "../../styles/global.js";
8
- const protoName = "dialog";
9
- const cssScope = createScope(protoName);
10
- /**
11
- * {@linkcode Dialog} similar to dialog.
12
- */
13
- let Dialog = class Dialog extends GodownSuperOpenable {
14
- constructor() {
15
- super(...arguments);
16
- this.direction = "center";
17
- /**
18
- * Enable modal.
19
- */
20
- this.modal = false;
21
- /**
22
- * Exit key, which can be multiple.
23
- */
24
- this.key = "Escape";
25
- }
26
- render() {
27
- return html `<div part="root" class="${this.direction}">${htmlSlot()}</div>`;
28
- }
29
- connectedCallback() {
30
- super.connectedCallback();
31
- this.addEvent(this, "submit", this._handelSubmit);
32
- if (this.key) {
33
- this.addEvent(document, "keydown", this._handleKeydown.bind(this));
34
- }
35
- }
36
- showModal() {
37
- this.modal = true;
38
- this.show();
39
- }
40
- _handelWheel(e) {
41
- if (this.modal) {
42
- e.preventDefault();
43
- }
44
- }
45
- _handleKeydown(e) {
46
- const keys = this.key.split(/[\s;]/);
47
- if (keys.includes(e.key) || keys.includes(e.code)) {
48
- this.close();
49
- }
50
- }
51
- _handelSubmit(e) {
52
- if (e.target.method === "dialog") {
53
- this.close();
54
- }
55
- }
56
- };
57
- __decorate([
58
- property({ type: Boolean, reflect: true })
59
- ], Dialog.prototype, "modal", void 0);
60
- __decorate([
61
- property({ type: String })
62
- ], Dialog.prototype, "key", void 0);
63
- Dialog = __decorate([
64
- godown(protoName),
65
- styles([
66
- css `
67
- :host {
68
- --${cssScope}--background: none;
69
- --${cssScope}--background-modal: rgb(var(--${cssGlobalVars.backgroundRGB}) / 15%);
70
- background: var(--${cssScope}--background);
71
- height: 100%;
72
- width: 100%;
73
- position: fixed;
74
- inset:0;
75
- display: flex;
76
- visibility: hidden;
77
- transition: all 0.3s;
78
- pointer-events: none;
79
- }
80
-
81
- :host([open]) {
82
- visibility: visible;
83
- }
84
-
85
- :host([open][modal]) {
86
- pointer-events: all;
87
- background: var(--${cssScope}--background-modal);
88
- }
89
-
90
- :host([open]) div {
91
- opacity: 1;
92
- }
93
-
94
- div {
95
- height: 100%;
96
- width: 100%;
97
- display: flex;
98
- opacity: 0;
99
- position: relative;
100
- }
101
-
102
- slot {
103
- display: block;
104
- width: -moz-fit-content;
105
- width: fit-content;
106
- height: -moz-fit-content;
107
- height: fit-content;
108
- margin: auto;
109
- transition: inherit;
110
- pointer-events: all;
111
- position: absolute;
112
- }
113
-
114
- [class^="top"] slot {
115
- top: 0;
116
- }
117
-
118
- [class^="bottom"] slot {
119
- bottom: 0;
120
- }
121
-
122
- [class$="right"] slot {
123
- right: 0%;
124
- }
125
-
126
- [class$="left"] slot {
127
- left: 0%;
128
- }
129
-
130
- div[class$="center"],
131
- .top,
132
- .left,
133
- .right,
134
- .bottom {
135
- align-items: center;
136
- justify-content: center;
137
- }
138
- `,
139
- ])
140
- ], Dialog);
141
- export { Dialog };
142
- export default Dialog;
143
- //# sourceMappingURL=dialog.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dialog.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/dialog/dialog.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC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AC,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC;YAClD,IAAI,CAAC,KAAK,EAAE,CAAC;QACf,CAAC;IACH,CAAC;IAES,aAAa,CAAC,CAAc;QACpC,IAAK,CAAC,CAAC,MAA0B,CAAC,MAAM,KAAK,QAAQ,EAAE,CAAC;YACtD,IAAI,CAAC,KAAK,EAAE,CAAC;QACf,CAAC;IACH,CAAC;CACF,CAAA;AAjD6C;IAA3C,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;qCAAe;AAY9B;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;mCAAgB;AAjBhC,MAAM;IA5ElB,MAAM,CAAC,SAAS,CAAC;IACjB,MAAM,CAAC;QACN,GAAG,CAAA;;UAEK,QAAQ;UACR,QAAQ,iCAAiC,aAAa,CAAC,aAAa;0BACpD,QAAQ;;;;;;;;;;;;;;;;;0BAiBR,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmD/B;KACF,CAAC;GACW,MAAM,CAsDlB;;AAED,eAAe,MAAM,CAAC","sourcesContent":["import { css, html, property } from \"../../_deps.js\";\nimport { godown } from \"../../decorators/godown.js\";\nimport { styles } from \"../../decorators/styles.js\";\nimport { htmlSlot } from \"../../lib/directives.js\";\nimport GodownSuperOpenable, { type Direction9 } from \"../../proto/super-openable.js\";\nimport { createScope, cssGlobalVars } from \"../../styles/global.js\";\n\nconst protoName = \"dialog\";\nconst cssScope = createScope(protoName);\n\n/**\n * {@linkcode Dialog} similar to dialog.\n */\n@godown(protoName)\n@styles([\n css`\n :host {\n --${cssScope}--background: none;\n --${cssScope}--background-modal: rgb(var(--${cssGlobalVars.backgroundRGB}) / 15%);\n background: var(--${cssScope}--background);\n height: 100%;\n width: 100%;\n position: fixed;\n inset:0;\n display: flex;\n visibility: hidden;\n transition: all 0.3s;\n pointer-events: none;\n }\n\n :host([open]) {\n visibility: visible;\n }\n\n :host([open][modal]) {\n pointer-events: all;\n background: var(--${cssScope}--background-modal);\n }\n\n :host([open]) div {\n opacity: 1;\n }\n\n div {\n height: 100%;\n width: 100%;\n display: flex;\n opacity: 0;\n position: relative;\n }\n\n slot {\n display: block;\n width: -moz-fit-content;\n width: fit-content;\n height: -moz-fit-content;\n height: fit-content;\n margin: auto;\n transition: inherit;\n pointer-events: all;\n position: absolute;\n }\n\n [class^=\"top\"] slot {\n top: 0;\n }\n\n [class^=\"bottom\"] slot {\n bottom: 0;\n }\n\n [class$=\"right\"] slot {\n right: 0%;\n }\n\n [class$=\"left\"] slot {\n left: 0%;\n }\n\n div[class$=\"center\"],\n .top,\n .left,\n .right,\n .bottom {\n align-items: center;\n justify-content: center;\n }\n `,\n])\nexport class Dialog extends GodownSuperOpenable {\n direction: Direction9 = \"center\";\n /**\n * Enable modal.\n */\n @property({ type: Boolean, reflect: true }) modal = false;\n /**\n * @deprecated\n */\n scale: boolean;\n /**\n * @deprecated\n */\n gap: number;\n /**\n * Exit key, which can be multiple.\n */\n @property({ type: String }) key = \"Escape\";\n\n protected render() {\n return html`<div part=\"root\" class=\"${this.direction}\">${htmlSlot()}</div>`;\n }\n\n connectedCallback() {\n super.connectedCallback();\n this.addEvent(this, \"submit\", this._handelSubmit);\n if (this.key) {\n this.addEvent(document, \"keydown\", this._handleKeydown.bind(this));\n }\n }\n\n showModal() {\n this.modal = true;\n this.show();\n }\n\n protected _handelWheel(e: WheelEvent) {\n if (this.modal) {\n e.preventDefault();\n }\n }\n\n protected _handleKeydown(e: KeyboardEvent) {\n const keys = this.key.split(/[\\s;]/);\n if (keys.includes(e.key) || keys.includes(e.code)) {\n this.close();\n }\n }\n\n protected _handelSubmit(e: SubmitEvent) {\n if ((e.target as HTMLFormElement).method === \"dialog\") {\n this.close();\n }\n }\n}\n\nexport default Dialog;\n"]}
@@ -1,13 +0,0 @@
1
- import { GodownElement } from "../../proto/godown-element.js";
2
- /**
3
- * {@linkcode Divider} similar to hr.
4
- */
5
- export declare class Divider extends GodownElement {
6
- /**
7
- * Enable vertical.
8
- */
9
- vertical: boolean;
10
- protected render(): import("lit").TemplateResult<1>;
11
- }
12
- export default Divider;
13
- //# sourceMappingURL=divider.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"divider.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/divider/divider.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAM9D;;GAEG;AACH,qBAyDa,OAAQ,SAAQ,aAAa;IACxC;;OAEG;IACyC,QAAQ,UAAS;IAE7D,SAAS,CAAC,MAAM;CAYjB;AAED,eAAe,OAAO,CAAC"}
@@ -1,95 +0,0 @@
1
- import { __decorate } from "tslib";
2
- import { css, html, property } from "../../_deps.js";
3
- import { godown } from "../../decorators/godown.js";
4
- import { styles } from "../../decorators/styles.js";
5
- import { ifValue } from "../../lib/directives.js";
6
- import { htmlSlot } from "../../lib/directives.js";
7
- import { GodownElement } from "../../proto/godown-element.js";
8
- import { createScope } from "../../styles/global.js";
9
- const protoName = "divider";
10
- const cssScope = createScope(protoName);
11
- /**
12
- * {@linkcode Divider} similar to hr.
13
- */
14
- let Divider = class Divider extends GodownElement {
15
- constructor() {
16
- super(...arguments);
17
- /**
18
- * Enable vertical.
19
- */
20
- this.vertical = false;
21
- }
22
- render() {
23
- const hasElement = this.childElementCount || this.textContent;
24
- return html `<div part="root" class="${this.vertical ? "vertical" : "horizontal"}">
25
- ${ifValue(hasElement, html `<hr part="before" class="before" />
26
- ${htmlSlot()}
27
- <hr part="after" class="after" />`, html `<hr part="cross" />`)}
28
- </div>`;
29
- }
30
- };
31
- __decorate([
32
- property({ type: Boolean, reflect: true })
33
- ], Divider.prototype, "vertical", void 0);
34
- Divider = __decorate([
35
- godown(protoName),
36
- styles(css `
37
- :host {
38
- --${cssScope}--before-length: auto;
39
- --${cssScope}--after-length: auto;
40
- --${cssScope}--breadth: .05em;
41
- display: block;
42
- background: none;
43
- margin: auto;
44
- }
45
- :host([vertical]) {
46
- width: -moz-fit-content;
47
- width: fit-content;
48
- height: 100%;
49
- }
50
- div {
51
- display: flex;
52
- align-items: center;
53
- border-radius: inherit;
54
- width: 100%;
55
- }
56
-
57
- hr {
58
- border-radius: inherit;
59
- margin: 0;
60
- border: 0;
61
- flex: 1;
62
- background: currentColor;
63
- }
64
- .horizontal {
65
- display: flex;
66
- }
67
-
68
- .vertical {
69
- display: flex;
70
- height: 100%;
71
- flex-direction: column;
72
- }
73
- .horizontal hr {
74
- height: var(--${cssScope}--breadth);
75
- }
76
- .horizontal .before {
77
- max-width: var(--${cssScope}--before-length);
78
- }
79
- .horizontal .after {
80
- max-width: var(--${cssScope}--after-length);
81
- }
82
- .vertical hr {
83
- width: var(--${cssScope}--breadth);
84
- }
85
- .vertical .before {
86
- max-height: var(--${cssScope}--before-length);
87
- }
88
- .vertical .after {
89
- max-height: var(--${cssScope}--after-length);
90
- }
91
- `)
92
- ], Divider);
93
- export { Divider };
94
- export default Divider;
95
- //# sourceMappingURL=divider.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"divider.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/divider/divider.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAErD,MAAM,SAAS,GAAG,SAAS,CAAC;AAC5B,MAAM,QAAQ,GAAG,WAAW,CAAC,SAAS,CAAC,CAAC;AAExC;;GAEG;AA0DI,IAAM,OAAO,GAAb,MAAM,OAAQ,SAAQ,aAAa;IAAnC;;QACL;;WAEG;QACyC,aAAQ,GAAG,KAAK,CAAC;IAc/D,CAAC;IAZW,MAAM;QACd,MAAM,UAAU,GAAG,IAAI,CAAC,iBAAiB,IAAI,IAAI,CAAC,WAAW,CAAC;QAC9D,OAAO,IAAI,CAAA,2BAA2B,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,YAAY;QAC3E,OAAO,CACP,UAAU,EACV,IAAI,CAAA;YACA,QAAQ,EAAE;4CACsB,EACpC,IAAI,CAAA,qBAAqB,CAC1B;WACI,CAAC;IACV,CAAC;CACF,CAAA;AAd6C;IAA3C,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;yCAAkB;AAJlD,OAAO;IAzDnB,MAAM,CAAC,SAAS,CAAC;IACjB,MAAM,CAAC,GAAG,CAAA;;QAEH,QAAQ;QACR,QAAQ;QACR,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAkCI,QAAQ;;;uBAGL,QAAQ;;;uBAGR,QAAQ;;;mBAGZ,QAAQ;;;wBAGH,QAAQ;;;wBAGR,QAAQ;;CAE/B,CAAC;GACW,OAAO,CAkBnB;;AAED,eAAe,OAAO,CAAC","sourcesContent":["import { css, html, property } from \"../../_deps.js\";\nimport { godown } from \"../../decorators/godown.js\";\nimport { styles } from \"../../decorators/styles.js\";\nimport { ifValue } from \"../../lib/directives.js\";\nimport { htmlSlot } from \"../../lib/directives.js\";\nimport { GodownElement } from \"../../proto/godown-element.js\";\nimport { createScope } from \"../../styles/global.js\";\n\nconst protoName = \"divider\";\nconst cssScope = createScope(protoName);\n\n/**\n * {@linkcode Divider} similar to hr.\n */\n@godown(protoName)\n@styles(css`\n :host {\n --${cssScope}--before-length: auto;\n --${cssScope}--after-length: auto;\n --${cssScope}--breadth: .05em;\n display: block;\n background: none;\n margin: auto;\n }\n :host([vertical]) {\n width: -moz-fit-content;\n width: fit-content;\n height: 100%;\n }\n div {\n display: flex;\n align-items: center;\n border-radius: inherit;\n width: 100%;\n }\n\n hr {\n border-radius: inherit;\n margin: 0;\n border: 0;\n flex: 1;\n background: currentColor;\n }\n .horizontal {\n display: flex;\n }\n\n .vertical {\n display: flex;\n height: 100%;\n flex-direction: column;\n }\n .horizontal hr {\n height: var(--${cssScope}--breadth);\n }\n .horizontal .before {\n max-width: var(--${cssScope}--before-length);\n }\n .horizontal .after {\n max-width: var(--${cssScope}--after-length);\n }\n .vertical hr {\n width: var(--${cssScope}--breadth);\n }\n .vertical .before {\n max-height: var(--${cssScope}--before-length);\n }\n .vertical .after {\n max-height: var(--${cssScope}--after-length);\n }\n`)\nexport class Divider extends GodownElement {\n /**\n * Enable vertical.\n */\n @property({ type: Boolean, reflect: true }) vertical = false;\n\n protected render() {\n const hasElement = this.childElementCount || this.textContent;\n return html`<div part=\"root\" class=\"${this.vertical ? \"vertical\" : \"horizontal\"}\">\n ${ifValue(\n hasElement,\n html`<hr part=\"before\" class=\"before\" />\n ${htmlSlot()}\n <hr part=\"after\" class=\"after\" />`,\n html`<hr part=\"cross\" />`,\n )}\n </div>`;\n }\n}\n\nexport default Divider;\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"form.d.ts","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["web-components/form/form.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAG9D;;;;;GAKG;AACH,qBAQa,IAAI,CAAC,CAAC,GAAG,MAAM,CAAE,SAAQ,aAAa;IACrC,IAAI,SAAM;IACtB,IAAI,KAAK,IAAI,CAAC,CAEb;IAED,SAAS,QAiBI,CAAC,MAAM,EAAE,CAAC,CAAC,CAjBG;IAE3B,SAAS,CAAC,MAAM;IAIhB,KAAK;IAWL,SAAS,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC;IAIxB,MAAM,CAAC,UAAU,CACf,QAAQ,EAAE,CAAC,OAAO,GAAG;QACnB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,KAAK,CAAC,EAAE,OAAO,CAAC;QAChB,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACrC,CAAC,EAAE,GACH,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;CAoBvB;AAED,eAAe,IAAI,CAAC"}