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
@@ -0,0 +1,113 @@
1
+ import { __decorate } from 'tslib';
2
+ import { godown } from '@godown/element/decorators/godown.js';
3
+ import { part } from '@godown/element/decorators/part.js';
4
+ import { styles } from '@godown/element/decorators/styles.js';
5
+ import { htmlSlot } from '@godown/element/directives/html-slot.js';
6
+ import { htmlStyle } from '@godown/element/directives/html-style.js';
7
+ import iconChevronLeft from '@godown/f7-icon/icons/chevron-left.js';
8
+ import iconChevronRight from '@godown/f7-icon/icons/chevron-right.js';
9
+ import { css, html } from 'lit';
10
+ import { property } from 'lit/decorators.js';
11
+ import { GlobalStyle } from '../core/global-style.js';
12
+
13
+ const protoName = "carousel";
14
+ /**
15
+ * {@linkcode Carousel} make the content display as a carousel.
16
+ *
17
+ * When this component is `firstUpdated`,
18
+ * clone the first and last element and make the matching element visible when switching index.
19
+ *
20
+ * Child elements should maintain the same size.
21
+ *
22
+ * If no width, it will be the width of the first element.
23
+ *
24
+ * @category display
25
+ */
26
+ let Carousel = class Carousel extends GlobalStyle {
27
+ constructor() {
28
+ super(...arguments);
29
+ /**
30
+ * The index of the element is displayed for the first time.
31
+ */
32
+ this.index = 0;
33
+ /**
34
+ * If autoChange > 0, the rotation will be automated.
35
+ */
36
+ this.autoChange = 0;
37
+ }
38
+ render() {
39
+ return [
40
+ html `<div part="root"><i part="prev" @click="${this.prev}">${iconChevronLeft()}</i><div part="move-root" style="transform:${`translateX(-${this.index + 1}00%)`}">${htmlSlot()}</div><i part="next" @click="${this.next}">${iconChevronRight()}</i></div>`,
41
+ htmlStyle(`:host{width:${this.width};}`),
42
+ ];
43
+ }
44
+ async firstUpdated() {
45
+ await this.updateComplete;
46
+ if (this.children.length) {
47
+ this.width ||= `${this.firstElementChild.offsetWidth}px`;
48
+ this._cloneFirst?.remove();
49
+ this._cloneLast?.remove();
50
+ this._cloneLast = this.firstElementChild.cloneNode(true);
51
+ this._cloneFirst = this.lastElementChild.cloneNode(true);
52
+ this.appendChild(this._cloneLast);
53
+ this.insertBefore(this._cloneFirst, this.firstElementChild);
54
+ this.show(this.index);
55
+ }
56
+ if (this.autoChange) {
57
+ this.intervalID = window.setInterval(() => {
58
+ this.next();
59
+ }, this.autoChange);
60
+ }
61
+ }
62
+ disconnectedCallback() {
63
+ clearInterval(this.intervalID);
64
+ }
65
+ show(i) {
66
+ this.index = i;
67
+ }
68
+ next() {
69
+ if (this.index === this.childElementCount - 3) {
70
+ this._doTranslateX("0", true);
71
+ this.show(0);
72
+ }
73
+ else {
74
+ this.show(this.index + 1);
75
+ }
76
+ }
77
+ prev() {
78
+ if (this.index === 0) {
79
+ this._doTranslateX(`-${this.childElementCount - 1}00%`, true);
80
+ this.show(this.children.length - 3);
81
+ }
82
+ else {
83
+ this.show(this.index - 1);
84
+ }
85
+ }
86
+ _doTranslateX(xValue, noTransition) {
87
+ this._moveRoot.style.transform = `translateX(${xValue})`;
88
+ if (noTransition) {
89
+ this._moveRoot.style.transition = `none`;
90
+ }
91
+ this._moveRoot.getBoundingClientRect();
92
+ }
93
+ };
94
+ __decorate([
95
+ property({ type: Number })
96
+ ], Carousel.prototype, "index", void 0);
97
+ __decorate([
98
+ property({ type: Number })
99
+ ], Carousel.prototype, "autoChange", void 0);
100
+ __decorate([
101
+ property()
102
+ ], Carousel.prototype, "width", void 0);
103
+ __decorate([
104
+ part("move-root")
105
+ ], Carousel.prototype, "_moveRoot", void 0);
106
+ Carousel = __decorate([
107
+ godown(protoName),
108
+ styles(css `:host{display:block;transition:.3s}[part=root]{overflow:hidden}[part=move-root],[part=root]{width:100%;display:flex;position:relative;transition:inherit}[part=next],[part=prev]{height:100%;width:1.5em;z-index:1;position:absolute;display:flex;align-items:center;justify-content:center;-webkit-user-select:none;user-select:none}[part=prev]{left:0}[part=next]{right:0}slot::slotted(*){flex-shrink:0!important}`)
109
+ ], Carousel);
110
+ var Carousel$1 = Carousel;
111
+
112
+ export { Carousel$1 as default };
113
+ //# sourceMappingURL=carousel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"carousel.js","sources":["../src/components/carousel.ts"],"sourcesContent":null,"names":[],"mappings":";;;;;;;;;;;;AAYA,MAAM,SAAS,GAAG,UAAU,CAAC;AAE7B;;;;;;;;;;;AAWG;AAKH,IAAM,QAAQ,GAAd,MAAM,QAAS,SAAQ,WAAW,CAAA;AAAlC,IAAA,WAAA,GAAA;;AACE;;AAEG;QAEH,IAAK,CAAA,KAAA,GAAG,CAAC,CAAC;AACV;;AAEG;QAEH,IAAU,CAAA,UAAA,GAAG,CAAC,CAAC;KAiFhB;IAjEW,MAAM,GAAA;QACd,OAAO;YACL,IAAI,CAAA,CACuB,wCAAA,EAAA,IAAI,CAAC,IAAI,CAAK,EAAA,EAAA,eAAe,EAAE,CAAA,2CAAA,EACf,CAAe,YAAA,EAAA,IAAI,CAAC,KAAK,GAAG,CAAC,CAAA,IAAA,CAAM,CAAK,EAAA,EAAA,QAAQ,EAAE,CAAA,6BAAA,EAClE,IAAI,CAAC,IAAI,CAAA,EAAA,EAAK,gBAAgB,EAAE,CACtD,UAAA,CAAA;AACL,YAAA,SAAS,CAAC,CAAe,YAAA,EAAA,IAAI,CAAC,KAAK,IAAI,CAAC;SACzC,CAAC;KACH;AAES,IAAA,MAAM,YAAY,GAAA;QAC1B,MAAM,IAAI,CAAC,cAAc,CAAC;AAE1B,QAAA,IAAI,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE;YACxB,IAAI,CAAC,KAAK,KAAK,CAAI,EAAA,IAAI,CAAC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,CAAA,CAAA,CAAA;AAlBnB,QAAQ,GAAA,UAAA,CAAA;IAJb,MAAM,CAAC,SAAS,CAAC;AACjB,IAAA,MAAM,CACL,GAAG,CAAA,CAAA,sZAAA,CAAua,CAC3a;AACK,CAAA,EAAA,QAAQ,CA2Fb,CAAA;AAED,iBAAe,QAAQ;;;;"}
@@ -1,8 +1,10 @@
1
- import GodownOpenable from "../../proto/super-openable.js";
1
+ import SuperOpenable from "../core/super-openable.js";
2
2
  /**
3
- * {@linkcode Details} similar to details.
3
+ * {@linkcode Details} similar to <details>.
4
+ *
5
+ * @category display
4
6
  */
5
- export declare class Details extends GodownOpenable {
7
+ declare class Details extends SuperOpenable {
6
8
  /**
7
9
  * If it is true, the summary event scope will fill the element.
8
10
  */
@@ -0,0 +1 @@
1
+ {"version":3,"file":"details.d.ts","sourceRoot":"","sources":["../src/components/details.ts"],"names":[],"mappings":"AAQA,OAAO,aAAa,MAAM,2BAA2B,CAAC;AAMtD;;;;GAIG;AACH,cAIM,OAAQ,SAAQ,aAAa;IACjC;;OAEG;IAEH,IAAI,UAAS;IACb;;OAEG;IAEH,OAAO,SAAM;IAGb,GAAG,EAAE,mBAAmB,CAAC;IAEzB,SAAS,CAAC,MAAM;CAGjB;AAED,eAAe,OAAO,CAAC"}
@@ -0,0 +1,50 @@
1
+ import { __decorate } from 'tslib';
2
+ import { godown } from '@godown/element/decorators/godown.js';
3
+ import { styles } from '@godown/element/decorators/styles.js';
4
+ import { htmlSlot } from '@godown/element/directives/html-slot.js';
5
+ import svgCaretDown from '@godown/f7-icon/icons/chevron-down.js';
6
+ import { css, html } from 'lit';
7
+ import { property, query } from 'lit/decorators.js';
8
+ import { scopePrefix } from '../core/global-style.js';
9
+ import SuperOpenable from '../core/super-openable.js';
10
+
11
+ const protoName = "details";
12
+ const cssScope = scopePrefix(protoName);
13
+ /**
14
+ * {@linkcode Details} similar to <details>.
15
+ *
16
+ * @category display
17
+ */
18
+ let Details = class Details extends SuperOpenable {
19
+ constructor() {
20
+ super(...arguments);
21
+ /**
22
+ * If it is true, the summary event scope will fill the element.
23
+ */
24
+ this.fill = false;
25
+ /**
26
+ * Summary text.
27
+ */
28
+ this.summary = "";
29
+ }
30
+ render() {
31
+ return html `<dl part="root"><dt part="title" @click="${this._handelClick}"><span part="summary">${this.summary || htmlSlot("summary")} </span><span><i part="icon">${svgCaretDown()}</i></span></dt><dd part="details" @click="${this.fill ? () => this.toggle() : null}"><div style="min-height:0">${htmlSlot()}</div></dd></dl>`;
32
+ }
33
+ };
34
+ __decorate([
35
+ property({ type: Boolean })
36
+ ], Details.prototype, "fill", void 0);
37
+ __decorate([
38
+ property()
39
+ ], Details.prototype, "summary", void 0);
40
+ __decorate([
41
+ query("dd")
42
+ ], Details.prototype, "_dd", void 0);
43
+ Details = __decorate([
44
+ godown(protoName),
45
+ styles(css `:host{${cssScope}--icon-deg-open:0deg;${cssScope}--icon-deg-close:90deg;${cssScope}--icon-deg:0deg;${cssScope}--icon-space:0.3em;${cssScope}--summary-direction:row;${cssScope}--transition:.3s;height:-moz-fit-content;height:fit-content;display:block;transition:var(${cssScope}--transition)}dl{height:100%;position:relative;overflow:hidden}dt{height:100%;display:flex;flex-wrap:nowrap;justify-content:space-between;background:inherit;align-items:center;flex-direction:var(${cssScope}--summary-direction)}dd{display:grid;overflow:hidden;grid-template-rows:0fr;transition:var(${cssScope}--transition);transition-property:grid-template-rows}i{display:flex;-webkit-backface-visibility:hidden;backface-visibility:hidden;padding:var(${cssScope}--icon-space);transition:var(${cssScope}--transition);transform:rotate(var(${cssScope}--icon-deg))}:host([open]) dd{grid-template-rows:1fr}:host([float]) dd{top:100%;position:absolute}i{transform:rotate(var(${cssScope}--icon-deg-close))}:host([open]) i{transform:rotate(var(${cssScope}--icon-deg-open))}`)
46
+ ], Details);
47
+ var Details$1 = Details;
48
+
49
+ export { Details$1 as default };
50
+ //# sourceMappingURL=details.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"details.js","sources":["../src/components/details.ts"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mB,gBAAA,EAAA,QAAQ,CAAsB,mBAAA,EAAA,QAAQ,2BAA2B,QAAQ,CAAA,yFAAA,EAA4F,QAAQ,CAAA,mMAAA,EAAsM,QAAQ,CAAA,2FAAA,EAA8F,QAAQ,CAAA,8IAAA,EAAiJ,QAAQ,CAAgC,6BAAA,EAAA,QAAQ,CAAsC,mCAAA,EAAA,QAAQ,CAA4H,yHAAA,EAAA,QAAQ,CAA2D,wDAAA,EAAA,QAAQ,oBAAoB,CACrhC;AACK,CAAA,EAAA,OAAO,CA0BZ,CAAA;AAED,gBAAe,OAAO;;;;"}
@@ -0,0 +1,33 @@
1
+ import { HandlerEvent } from "@godown/element";
2
+ import SuperOpenable, { type Direction9 } from "../core/super-openable.js";
3
+ /**
4
+ * {@linkcode Dialog} similar to <dialog>.
5
+ *
6
+ * Like dialog, it listens for submit events and closes itself when the target method is "dialog".
7
+ *
8
+ * It listens for the keydown event and also closes itself when the {@linkcode key} contained in the key is pressed
9
+ *
10
+ * @category feedback
11
+ */
12
+ declare class Dialog extends SuperOpenable {
13
+ direction: Direction9;
14
+ /**
15
+ * Enable modal, blocking event penetration.
16
+ */
17
+ modal: boolean;
18
+ /**
19
+ * Close key.
20
+ */
21
+ key: string;
22
+ private _modalInvoke;
23
+ protected render(): import("lit").TemplateResult<1>;
24
+ showModal(): void;
25
+ private _submitEvent;
26
+ private _keydownEvent;
27
+ protected updated(): void;
28
+ protected _handleKeydown(e: KeyboardEvent): void;
29
+ protected _handelSubmit(e: HandlerEvent<HTMLFormElement>): void;
30
+ close(): void;
31
+ }
32
+ export default Dialog;
33
+ //# sourceMappingURL=dialog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../src/components/dialog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAQ/C,OAAO,aAAa,EAAE,EAAE,KAAK,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAK3E;;;;;;;;GAQG;AACH,cAIM,MAAO,SAAQ,aAAa;IAEhC,SAAS,EAAE,UAAU,CAAY;IACjC;;OAEG;IAEH,KAAK,UAAS;IACd;;OAEG;IAEH,GAAG,SAAY;IAEf,OAAO,CAAC,YAAY,CAAU;IAE9B,SAAS,CAAC,MAAM;IAIhB,SAAS;IAQT,OAAO,CAAC,YAAY,CAAiD;IACrE,OAAO,CAAC,aAAa,CAAiD;IAEtE,SAAS,CAAC,OAAO;IAYjB,SAAS,CAAC,cAAc,CAAC,CAAC,EAAE,aAAa;IAQzC,SAAS,CAAC,aAAa,CAAC,CAAC,EAAE,YAAY,CAAC,eAAe,CAAC;IAMxD,KAAK;CAON;AAED,eAAe,MAAM,CAAC"}
@@ -0,0 +1,92 @@
1
+ import { __decorate } from 'tslib';
2
+ import { godown } from '@godown/element/decorators/godown.js';
3
+ import { styles } from '@godown/element/decorators/styles.js';
4
+ import { htmlSlot } from '@godown/element/directives/html-slot.js';
5
+ import { css, html } from 'lit';
6
+ import { property } from 'lit/decorators.js';
7
+ import { scopePrefix, cssGlobalVars } from '../core/global-style.js';
8
+ import SuperOpenable from '../core/super-openable.js';
9
+
10
+ const protoName = "dialog";
11
+ const cssScope = scopePrefix(protoName);
12
+ /**
13
+ * {@linkcode Dialog} similar to <dialog>.
14
+ *
15
+ * Like dialog, it listens for submit events and closes itself when the target method is "dialog".
16
+ *
17
+ * It listens for the keydown event and also closes itself when the {@linkcode key} contained in the key is pressed
18
+ *
19
+ * @category feedback
20
+ */
21
+ let Dialog = class Dialog extends SuperOpenable {
22
+ constructor() {
23
+ super(...arguments);
24
+ this.direction = "center";
25
+ /**
26
+ * Enable modal, blocking event penetration.
27
+ */
28
+ this.modal = false;
29
+ /**
30
+ * Close key.
31
+ */
32
+ this.key = "Escape";
33
+ }
34
+ render() {
35
+ return html `<div part="root"><div part="modal"></div><div part="container" direction="${this.direction}">${htmlSlot()}</div></div>`;
36
+ }
37
+ showModal() {
38
+ if (!this.modal) {
39
+ this.modal = true;
40
+ this._modalInvoke = true;
41
+ }
42
+ this.show();
43
+ }
44
+ updated() {
45
+ if (this.open) {
46
+ this._submitEvent = this.events.add(this, "submit", this._handelSubmit);
47
+ if (this.key) {
48
+ this._keydownEvent = this.events.add(document, "keydown", this._handleKeydown.bind(this));
49
+ }
50
+ }
51
+ else {
52
+ this._submitEvent = this.events.remove(this, "submit", this._submitEvent);
53
+ this._keydownEvent = this.events.remove(document, "keydown", this._keydownEvent);
54
+ }
55
+ }
56
+ _handleKeydown(e) {
57
+ e.preventDefault();
58
+ const keys = this.key.split(/[\s,]/);
59
+ if (keys.includes(e.key) || keys.includes(e.code)) {
60
+ this.close();
61
+ }
62
+ }
63
+ _handelSubmit(e) {
64
+ if (e.target.method === "dialog") {
65
+ this.close();
66
+ }
67
+ }
68
+ close() {
69
+ if (this._modalInvoke) {
70
+ this.modal = false;
71
+ this._modalInvoke = false;
72
+ }
73
+ this.open = false;
74
+ }
75
+ };
76
+ __decorate([
77
+ property()
78
+ ], Dialog.prototype, "direction", void 0);
79
+ __decorate([
80
+ property({ type: Boolean, reflect: true })
81
+ ], Dialog.prototype, "modal", void 0);
82
+ __decorate([
83
+ property()
84
+ ], Dialog.prototype, "key", void 0);
85
+ Dialog = __decorate([
86
+ godown(protoName),
87
+ styles(css `:host{${cssScope}--background:none;${cssScope}--background-modal:var(${cssGlobalVars.background});${cssScope}--opacity-modal:0.2;background:var(${cssScope}--background);pointer-events:none;visibility:hidden;position:fixed;z-index:1;inset:0}:host([open]){visibility:visible}:host([open][modal]) [part=modal]{pointer-events:all;visibility:visible;opacity:var(${cssScope}--opacity-modal)}[part=modal]{visibility:hidden;opacity:0;width:100%;height:100%;position:absolute;background:var(${cssScope}--background-modal)}[part=root]{width:100%;height:100%;display:flex;position:relative;align-items:center;justify-content:center}[direction]{pointer-events:all;position:absolute}[direction^=top]{top:0}[direction^=bottom]{bottom:0}[direction$=right]{right:0}[direction$=left]{left:0}`)
88
+ ], Dialog);
89
+ var Dialog$1 = Dialog;
90
+
91
+ export { Dialog$1 as default };
92
+ //# sourceMappingURL=dialog.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dialog.js","sources":["../src/components/dialog.ts"],"sourcesContent":null,"names":[],"mappings":";;;;;;;;;AAUA,MAAM,SAAS,GAAG,QAAQ,CAAC;AAC3B,MAAM,QAAQ,GAAG,WAAW,CAAC,SAAS,CAAC,CAAC;AAExC;;;;;;;;AAQG;AAKH,IAAM,MAAM,GAAZ,MAAM,MAAO,SAAQ,aAAa,CAAA;AAAlC,IAAA,WAAA,GAAA;;QAEE,IAAS,CAAA,SAAA,GAAe,QAAQ,CAAC;AACjC;;AAEG;QAEH,IAAK,CAAA,KAAA,GAAG,KAAK,CAAC;AACd;;AAEG;QAEH,IAAG,CAAA,GAAA,GAAG,QAAQ,CAAC;KAuDhB;IAnDW,MAAM,GAAA;QACd,OAAO,IAAI,CAAA,CAAA,0EAAA,EAE0B,IAAI,CAAC,SAAS,CAAK,EAAA,EAAA,QAAQ,EAAE,CAAA,YAAA,CAC3D,CAAC;KACT;IAED,SAAS,GAAA;AACP,QAAA,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE;AACf,YAAA,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;AAClB,YAAA,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC;SAC1B;QACD,IAAI,CAAC,IAAI,EAAE,CAAC;KACb;IAKS,OAAO,GAAA;AACf,QAAA,IAAI,IAAI,CAAC,IAAI,EAAE;AACb,YAAA,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,CAAC,aAAa,CAAC,CAAC;AACxE,YAAA,IAAI,IAAI,CAAC,GAAG,EAAE;gBACZ,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,QAAQ,EAAE,SAAS,EAAE,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,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,MAAA,CAAA,SAAA,EAAA,OAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AAKd,UAAA,CAAA;AADC,IAAA,QAAQ,EAAE;AACI,CAAA,EAAA,MAAA,CAAA,SAAA,EAAA,KAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AAZX,MAAM,GAAA,UAAA,CAAA;IAJX,MAAM,CAAC,SAAS,CAAC;IACjB,MAAM,CACL,GAAG,CAAA,CAAA,MAAA,EAAS,QAAQ,CAAqB,kBAAA,EAAA,QAAQ,0BAA0B,aAAa,CAAC,UAAU,CAAK,EAAA,EAAA,QAAQ,sCAAsC,QAAQ,CAAA,0MAAA,EAA+M,QAAQ,CAAuH,kHAAA,EAAA,QAAQ,2RAAuS,CAC5xB;AACK,CAAA,EAAA,MAAM,CAmEX,CAAA;AAED,eAAe,MAAM;;;;"}
@@ -0,0 +1,17 @@
1
+ import { GlobalStyle } from "../core/global-style.js";
2
+ /**
3
+ * {@linkcode Divider} similar to <hr>.
4
+ *
5
+ * This component does not render content.
6
+ *
7
+ * @category layout
8
+ */
9
+ declare class Divider extends GlobalStyle {
10
+ /**
11
+ * Vertical display.
12
+ */
13
+ vertical: boolean;
14
+ connectedCallback(): void;
15
+ }
16
+ export default Divider;
17
+ //# sourceMappingURL=divider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"divider.d.ts","sourceRoot":"","sources":["../src/components/divider.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAItD;;;;;;GAMG;AACH,cAIM,OAAQ,SAAQ,WAAW;IAC/B;;OAEG;IAEH,QAAQ,UAAS;IAEjB,iBAAiB;CAGlB;AAED,eAAe,OAAO,CAAC"}
@@ -0,0 +1,37 @@
1
+ import { __decorate } from 'tslib';
2
+ import { godown, styles } from '@godown/element/decorators/index.js';
3
+ import { css } from 'lit';
4
+ import { property } from 'lit/decorators.js';
5
+ import { GlobalStyle } from '../core/global-style.js';
6
+
7
+ const protoName = "divider";
8
+ /**
9
+ * {@linkcode Divider} similar to <hr>.
10
+ *
11
+ * This component does not render content.
12
+ *
13
+ * @category layout
14
+ */
15
+ let Divider = class Divider extends GlobalStyle {
16
+ constructor() {
17
+ super(...arguments);
18
+ /**
19
+ * Vertical display.
20
+ */
21
+ this.vertical = false;
22
+ }
23
+ connectedCallback() {
24
+ this.createRenderRoot();
25
+ }
26
+ };
27
+ __decorate([
28
+ property({ type: Boolean, reflect: true })
29
+ ], Divider.prototype, "vertical", void 0);
30
+ Divider = __decorate([
31
+ godown(protoName),
32
+ styles(css `:host{width:100%;height:.05em;margin:auto;display:block;background:currentColor}:host([vertical]){width:.05em;height:max(1em,100%)}`)
33
+ ], Divider);
34
+ var Divider$1 = Divider;
35
+
36
+ export { Divider$1 as default };
37
+ //# sourceMappingURL=divider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"divider.js","sources":["../src/components/divider.ts"],"sourcesContent":null,"names":[],"mappings":";;;;;;AAMA,MAAM,SAAS,GAAG,SAAS,CAAC;AAE5B;;;;;;AAMG;AAKH,IAAM,OAAO,GAAb,MAAM,OAAQ,SAAQ,WAAW,CAAA;AAAjC,IAAA,WAAA,GAAA;;AACE;;AAEG;QAEH,IAAQ,CAAA,QAAA,GAAG,KAAK,CAAC;KAKlB;IAHC,iBAAiB,GAAA;QACf,IAAI,CAAC,gBAAgB,EAAE,CAAC;KACzB;CACF,CAAA;AALC,UAAA,CAAA;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;AAC1B,CAAA,EAAA,OAAA,CAAA,SAAA,EAAA,UAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AALb,OAAO,GAAA,UAAA,CAAA;IAJZ,MAAM,CAAC,SAAS,CAAC;AACjB,IAAA,MAAM,CACL,GAAG,CAAA,CAAA,mIAAA,CAAqI,CACzI;AACK,CAAA,EAAA,OAAO,CAUZ,CAAA;AAED,gBAAe,OAAO;;;;"}
@@ -1,9 +1,19 @@
1
- import { ListenerFunc } from "../../lib/event-coll.js";
2
- import { GodownElement } from "../../proto/godown-element.js";
1
+ import { EventListenerFunc } from "@godown/element/tools/events.js";
2
+ import { GlobalStyle } from "../core/global-style.js";
3
3
  /**
4
4
  * {@linkcode Dragbox} does not extend beyond the range of {@linkcode Dragbox.offsetsWidth} and {@linkcode Dragbox.offsetsHeight}.
5
+ *
6
+ * @category wrapper
5
7
  */
6
- export declare class Dragbox extends GodownElement {
8
+ declare class Dragbox extends GlobalStyle {
9
+ /**
10
+ * Width of (`this.offsetParent` or `document.body`).
11
+ */
12
+ get offsetsWidth(): number;
13
+ /**
14
+ * Height of (`this.offsetParent` or `document.body`).
15
+ */
16
+ get offsetsHeight(): number;
7
17
  drag: boolean;
8
18
  t: number;
9
19
  l: number;
@@ -20,8 +30,8 @@ export declare class Dragbox extends GodownElement {
20
30
  protected render(): import("lit").TemplateResult<1>;
21
31
  protected firstUpdated(): void;
22
32
  protected _handleDragStart(e: MouseEvent): void;
23
- mouseMoveEvent: ListenerFunc;
24
- mouseLeaveEvent: ListenerFunc;
33
+ _handleMouseMove: EventListenerFunc;
34
+ _handleMouseLeave: EventListenerFunc;
25
35
  protected _handleDragEnd(): void;
26
36
  protected _handleDrag(e: MouseEvent): void;
27
37
  reset(): void;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dragbox.d.ts","sourceRoot":"","sources":["../src/components/dragbox.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AAIpE,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAItD;;;;GAIG;AACH,cAIM,OAAQ,SAAQ,WAAW;IAC/B;;OAEG;IACH,IAAI,YAAY,IAAI,MAAM,CAEzB;IAED;;OAEG;IACH,IAAI,aAAa,IAAI,MAAM,CAE1B;IAED,IAAI,EAAE,OAAO,CAAC;IACd,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IAEH,CAAC,SAAU;IACX;;OAEG;IAEH,CAAC,SAAU;IAEX,SAAS,CAAC,MAAM;IAIhB,SAAS,CAAC,YAAY;IAItB,SAAS,CAAC,gBAAgB,CAAC,CAAC,EAAE,UAAU;IAUxC,gBAAgB,EAAE,iBAAiB,CAAC;IACpC,iBAAiB,EAAE,iBAAiB,CAAC;IAErC,SAAS,CAAC,cAAc;IAMxB,SAAS,CAAC,WAAW,CAAC,CAAC,EAAE,UAAU;IAuBnC,KAAK;CAWN;AAED,eAAe,OAAO,CAAC"}
@@ -1,14 +1,18 @@
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 { GodownElement } from "../../proto/godown-element.js";
1
+ import { __decorate } from 'tslib';
2
+ import { godown } from '@godown/element/decorators/godown.js';
3
+ import { styles } from '@godown/element/decorators/styles.js';
4
+ import { htmlSlot } from '@godown/element/directives/html-slot.js';
5
+ import { css, html } from 'lit';
6
+ import { property } from 'lit/decorators.js';
7
+ import { GlobalStyle } from '../core/global-style.js';
8
+
7
9
  const protoName = "dragbox";
8
10
  /**
9
11
  * {@linkcode Dragbox} does not extend beyond the range of {@linkcode Dragbox.offsetsWidth} and {@linkcode Dragbox.offsetsHeight}.
12
+ *
13
+ * @category wrapper
10
14
  */
11
- let Dragbox = class Dragbox extends GodownElement {
15
+ let Dragbox = class Dragbox extends GlobalStyle {
12
16
  constructor() {
13
17
  super(...arguments);
14
18
  /**
@@ -20,6 +24,18 @@ let Dragbox = class Dragbox extends GodownElement {
20
24
  */
21
25
  this.y = "auto";
22
26
  }
27
+ /**
28
+ * Width of (`this.offsetParent` or `document.body`).
29
+ */
30
+ get offsetsWidth() {
31
+ return this.offsetParent?.clientWidth ?? document.body.offsetWidth;
32
+ }
33
+ /**
34
+ * Height of (`this.offsetParent` or `document.body`).
35
+ */
36
+ get offsetsHeight() {
37
+ return this.offsetParent?.clientHeight ?? document.body.offsetHeight;
38
+ }
23
39
  render() {
24
40
  return html `<div @mousedown="${this._handleDragStart}" @mouseup="${this._handleDragEnd}">${htmlSlot()}</div>`;
25
41
  }
@@ -32,13 +48,13 @@ let Dragbox = class Dragbox extends GodownElement {
32
48
  this.t = this.offsetTop;
33
49
  this.l = this.offsetLeft;
34
50
  this.drag = true;
35
- this.mouseMoveEvent = this.addEvent(document, "mousemove", this._handleDrag.bind(this));
36
- this.mouseLeaveEvent = this.addEvent(document, "mouseleave", this._handleDragEnd.bind(this));
51
+ this._handleMouseMove = this.events.add(document, "mousemove", this._handleDrag.bind(this));
52
+ this._handleMouseLeave = this.events.add(document, "mouseleave", this._handleDragEnd.bind(this));
37
53
  }
38
54
  _handleDragEnd() {
39
55
  this.drag = false;
40
- this.removeEvent(document, "mousemove", this.mouseMoveEvent);
41
- this.removeEvent(document, "mouseleave", this.mouseLeaveEvent);
56
+ this.events.remove(document, "mousemove", this._handleMouseMove);
57
+ this.events.remove(document, "mouseleave", this._handleMouseLeave);
42
58
  }
43
59
  _handleDrag(e) {
44
60
  if (!this.drag) {
@@ -86,20 +102,9 @@ __decorate([
86
102
  ], Dragbox.prototype, "y", void 0);
87
103
  Dragbox = __decorate([
88
104
  godown(protoName),
89
- styles([
90
- css `
91
- :host {
92
- position: absolute;
93
- display: block;
94
- }
95
-
96
- :host(:active) {
97
- -webkit-user-select: none;
98
- user-select: none;
99
- }
100
- `,
101
- ])
105
+ styles(css `:host{position:absolute;display:block}:host(:active){-webkit-user-select:none;user-select:none}`)
102
106
  ], Dragbox);
103
- export { Dragbox };
104
- export default Dragbox;
105
- //# sourceMappingURL=dragbox.js.map
107
+ var Dragbox$1 = Dragbox;
108
+
109
+ export { Dragbox$1 as default };
110
+ //# sourceMappingURL=dragbox.js.map
@@ -0,0 +1 @@
1
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+FAAA,CAAiG,CACrG;AACK,CAAA,EAAA,OAAO,CA6FZ,CAAA;AAED,gBAAe,OAAO;;;;"}
@@ -0,0 +1,31 @@
1
+ import { GlobalStyle } from "../core/global-style.js";
2
+ /**
3
+ * {@linkcode Flex} provides flex layout.
4
+ *
5
+ * @category layout
6
+ */
7
+ declare class Flex extends GlobalStyle {
8
+ /**
9
+ * CSS property `flex-flow` (`flex-direction flex-wrap`).
10
+ */
11
+ flexFlow: string;
12
+ /**
13
+ * CSS property `gap`.
14
+ */
15
+ gap: string;
16
+ /**
17
+ * CSS property `justify-content`.
18
+ */
19
+ content: string;
20
+ /**
21
+ * CSS property `align-items`.
22
+ */
23
+ items: string;
24
+ /**
25
+ * If true, set flex-direction to "column".
26
+ */
27
+ vertical: boolean;
28
+ protected render(): import("lit").TemplateResult<1>[];
29
+ }
30
+ export default Flex;
31
+ //# sourceMappingURL=flex.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flex.d.ts","sourceRoot":"","sources":["../src/components/flex.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAItD;;;;GAIG;AACH,cAEM,IAAK,SAAQ,WAAW;IAC5B;;OAEG;IAEH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IAEH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IAEH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IAEH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IAEH,QAAQ,EAAE,OAAO,CAAC;IAElB,SAAS,CAAC,MAAM;CAgBjB;AAED,eAAe,IAAI,CAAC"}
@@ -0,0 +1,55 @@
1
+ import { __decorate } from 'tslib';
2
+ import { godown } from '@godown/element/decorators/godown.js';
3
+ import { styles } from '@godown/element/decorators/styles.js';
4
+ import { htmlSlot } from '@godown/element/directives/html-slot.js';
5
+ import { htmlStyle } from '@godown/element/directives/html-style.js';
6
+ import { joinRules } from '@godown/element/tools/css.js';
7
+ import { css } from 'lit';
8
+ import { property } from 'lit/decorators.js';
9
+ import { GlobalStyle } from '../core/global-style.js';
10
+
11
+ const protoName = "flex";
12
+ /**
13
+ * {@linkcode Flex} provides flex layout.
14
+ *
15
+ * @category layout
16
+ */
17
+ let Flex = class Flex extends GlobalStyle {
18
+ render() {
19
+ return [
20
+ htmlSlot(),
21
+ htmlStyle(joinRules({
22
+ ":host": {
23
+ gap: this.gap,
24
+ "flex-flow": this.flexFlow,
25
+ "flex-direction": this.vertical && "column",
26
+ "align-items": this.items,
27
+ "justify-content": this.content,
28
+ },
29
+ })),
30
+ ];
31
+ }
32
+ };
33
+ __decorate([
34
+ property({ attribute: "flex-flow" })
35
+ ], Flex.prototype, "flexFlow", void 0);
36
+ __decorate([
37
+ property()
38
+ ], Flex.prototype, "gap", void 0);
39
+ __decorate([
40
+ property()
41
+ ], Flex.prototype, "content", void 0);
42
+ __decorate([
43
+ property()
44
+ ], Flex.prototype, "items", void 0);
45
+ __decorate([
46
+ property({ type: Boolean })
47
+ ], Flex.prototype, "vertical", void 0);
48
+ Flex = __decorate([
49
+ godown(protoName),
50
+ styles(css `:host{display:flex}`)
51
+ ], Flex);
52
+ var Flex$1 = Flex;
53
+
54
+ export { Flex$1 as default };
55
+ //# sourceMappingURL=flex.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flex.js","sources":["../src/components/flex.ts"],"sourcesContent":null,"names":[],"mappings":";;;;;;;;;;AAUA,MAAM,SAAS,GAAG,MAAM,CAAC;AAEzB;;;;AAIG;AAGH,IAAM,IAAI,GAAV,MAAM,IAAK,SAAQ,WAAW,CAAA;IA2BlB,MAAM,GAAA;QACd,OAAO;AACL,YAAA,QAAQ,EAAE;YACV,SAAS,CACP,SAAS,CAAC;AACR,gBAAA,OAAO,EAAE;oBACP,GAAG,EAAE,IAAI,CAAC,GAAG;oBACb,WAAW,EAAE,IAAI,CAAC,QAAQ;AAC1B,oBAAA,gBAAgB,EAAE,IAAI,CAAC,QAAQ,IAAI,QAAQ;oBAC3C,aAAa,EAAE,IAAI,CAAC,KAAK;oBACzB,iBAAiB,EAAE,IAAI,CAAC,OAAO;AAChC,iBAAA;AACF,aAAA,CAAC,CACH;SACF,CAAC;KACH;CACF,CAAA;AAtCC,UAAA,CAAA;AADC,IAAA,QAAQ,CAAC,EAAE,SAAS,EAAE,WAAW,EAAE,CAAC;AACpB,CAAA,EAAA,IAAA,CAAA,SAAA,EAAA,UAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AAKjB,UAAA,CAAA;AADC,IAAA,QAAQ,EAAE;AACC,CAAA,EAAA,IAAA,CAAA,SAAA,EAAA,KAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AAKZ,UAAA,CAAA;AADC,IAAA,QAAQ,EAAE;AACK,CAAA,EAAA,IAAA,CAAA,SAAA,EAAA,SAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AAKhB,UAAA,CAAA;AADC,IAAA,QAAQ,EAAE;AACG,CAAA,EAAA,IAAA,CAAA,SAAA,EAAA,OAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AAKd,UAAA,CAAA;AADC,IAAA,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;AACV,CAAA,EAAA,IAAA,CAAA,SAAA,EAAA,UAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AAzBd,IAAI,GAAA,UAAA,CAAA;IAFT,MAAM,CAAC,SAAS,CAAC;AACjB,IAAA,MAAM,CAAC,GAAG,CAAA,CAAA,mBAAA,CAAqB,CAAC;AAC3B,CAAA,EAAA,IAAI,CA2CT,CAAA;AAED,aAAe,IAAI;;;;"}
@@ -1,11 +1,13 @@
1
- import { GodownElement } from "../../proto/godown-element.js";
1
+ import { GlobalStyle } from "../core/global-style.js";
2
2
  /**
3
3
  * {@linkcode Form} Gets child element key-value object,
4
4
  * which will be nested if the child element is the same as this element.
5
5
  *
6
6
  * @slot - Child elements.
7
+ *
8
+ * @category form
7
9
  */
8
- export declare class Form<T = object> extends GodownElement {
10
+ declare class Form<T = object> extends GlobalStyle {
9
11
  name: string;
10
12
  get value(): T;
11
13
  nameValue: () => [string, T];
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../src/components/form.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAItD;;;;;;;GAOG;AACH,cAIM,IAAI,CAAC,CAAC,GAAG,MAAM,CAAE,SAAQ,WAAW;IAExC,IAAI,SAAM;IACV,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"}