@antify/ui-module 1.7.3 → 1.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (364) hide show
  1. package/README.md +43 -52
  2. package/dist/module.d.mts +1 -251
  3. package/dist/module.d.ts +1 -251
  4. package/dist/module.json +1 -1
  5. package/dist/module.mjs +97 -418
  6. package/dist/runtime/composables/useUiClient.d.ts +2 -2
  7. package/dist/runtime/composables/useUiClient.mjs +1 -2
  8. package/dist/runtime/plugins/ui-module.mjs +3 -2
  9. package/dist/runtime/tailwind.config.d.ts +2 -3
  10. package/dist/runtime/tailwind.config.mjs +20 -204
  11. package/dist/types.d.mts +1 -1
  12. package/dist/types.d.ts +1 -1
  13. package/package.json +10 -41
  14. package/dist/runtime/components/AntAccordion.vue +0 -64
  15. package/dist/runtime/components/AntAccordionItem.vue +0 -81
  16. package/dist/runtime/components/AntAlert.vue +0 -146
  17. package/dist/runtime/components/AntCard.vue +0 -34
  18. package/dist/runtime/components/AntContent.vue +0 -16
  19. package/dist/runtime/components/AntDropdown.vue +0 -79
  20. package/dist/runtime/components/AntIcon.vue +0 -56
  21. package/dist/runtime/components/AntKeycap.vue +0 -45
  22. package/dist/runtime/components/AntListGroup.vue +0 -24
  23. package/dist/runtime/components/AntListGroupItem.vue +0 -83
  24. package/dist/runtime/components/AntModal.vue +0 -88
  25. package/dist/runtime/components/AntPagination.vue +0 -206
  26. package/dist/runtime/components/AntPopover.vue +0 -114
  27. package/dist/runtime/components/AntSkeleton.vue +0 -38
  28. package/dist/runtime/components/AntSpinner.vue +0 -101
  29. package/dist/runtime/components/AntTag.vue +0 -114
  30. package/dist/runtime/components/AntToast.vue +0 -119
  31. package/dist/runtime/components/AntToaster.vue +0 -51
  32. package/dist/runtime/components/AntTooltip.vue +0 -189
  33. package/dist/runtime/components/Main.mdx +0 -11
  34. package/dist/runtime/components/Main.stories.d.ts +0 -7
  35. package/dist/runtime/components/Main.stories.mjs +0 -8
  36. package/dist/runtime/components/__stories/AntAccordion.stories.d.ts +0 -9
  37. package/dist/runtime/components/__stories/AntAccordion.stories.mjs +0 -101
  38. package/dist/runtime/components/__stories/AntAlert.stories.d.ts +0 -11
  39. package/dist/runtime/components/__stories/AntAlert.stories.mjs +0 -81
  40. package/dist/runtime/components/__stories/AntCard.stories.d.ts +0 -7
  41. package/dist/runtime/components/__stories/AntCard.stories.mjs +0 -87
  42. package/dist/runtime/components/__stories/AntContent.stories.d.ts +0 -6
  43. package/dist/runtime/components/__stories/AntContent.stories.mjs +0 -26
  44. package/dist/runtime/components/__stories/AntDropdown.stories.d.ts +0 -6
  45. package/dist/runtime/components/__stories/AntDropdown.stories.mjs +0 -52
  46. package/dist/runtime/components/__stories/AntIcon.stories.d.ts +0 -8
  47. package/dist/runtime/components/__stories/AntIcon.stories.mjs +0 -93
  48. package/dist/runtime/components/__stories/AntKeycap.stories.d.ts +0 -9
  49. package/dist/runtime/components/__stories/AntKeycap.stories.mjs +0 -69
  50. package/dist/runtime/components/__stories/AntListGroup.stories.d.ts +0 -7
  51. package/dist/runtime/components/__stories/AntListGroup.stories.mjs +0 -36
  52. package/dist/runtime/components/__stories/AntListGroupItem.stories.d.ts +0 -10
  53. package/dist/runtime/components/__stories/AntListGroupItem.stories.mjs +0 -62
  54. package/dist/runtime/components/__stories/AntModal.stories.d.ts +0 -7
  55. package/dist/runtime/components/__stories/AntModal.stories.mjs +0 -78
  56. package/dist/runtime/components/__stories/AntPagination.stories.d.ts +0 -8
  57. package/dist/runtime/components/__stories/AntPagination.stories.mjs +0 -39
  58. package/dist/runtime/components/__stories/AntPopover.stories.d.ts +0 -6
  59. package/dist/runtime/components/__stories/AntPopover.stories.mjs +0 -47
  60. package/dist/runtime/components/__stories/AntSkeleton.stories.d.ts +0 -8
  61. package/dist/runtime/components/__stories/AntSkeleton.stories.mjs +0 -43
  62. package/dist/runtime/components/__stories/AntSpinner.stories.d.ts +0 -6
  63. package/dist/runtime/components/__stories/AntSpinner.stories.mjs +0 -34
  64. package/dist/runtime/components/__stories/AntTag.stories.d.ts +0 -7
  65. package/dist/runtime/components/__stories/AntTag.stories.mjs +0 -43
  66. package/dist/runtime/components/__stories/AntToast.stories.d.ts +0 -8
  67. package/dist/runtime/components/__stories/AntToast.stories.mjs +0 -66
  68. package/dist/runtime/components/__stories/AntToaster.stories.d.ts +0 -34
  69. package/dist/runtime/components/__stories/AntToaster.stories.mjs +0 -42
  70. package/dist/runtime/components/__stories/AntTooltip.stories.d.ts +0 -16
  71. package/dist/runtime/components/__stories/AntTooltip.stories.mjs +0 -241
  72. package/dist/runtime/components/__types/AntAccordion.types.d.ts +0 -4
  73. package/dist/runtime/components/__types/AntAccordion.types.mjs +0 -5
  74. package/dist/runtime/components/__types/AntIcon.types.d.ts +0 -8
  75. package/dist/runtime/components/__types/AntIcon.types.mjs +0 -9
  76. package/dist/runtime/components/__types/AntKeycap.types.d.ts +0 -4
  77. package/dist/runtime/components/__types/AntKeycap.types.mjs +0 -5
  78. package/dist/runtime/components/__types/AntListGroupItem.types.d.ts +0 -9
  79. package/dist/runtime/components/__types/AntListGroupItem.types.mjs +0 -10
  80. package/dist/runtime/components/__types/AntSpinner.types.d.ts +0 -10
  81. package/dist/runtime/components/__types/AntSpinner.types.mjs +0 -11
  82. package/dist/runtime/components/__types/AntTag.types.d.ts +0 -17
  83. package/dist/runtime/components/__types/AntTag.types.mjs +0 -19
  84. package/dist/runtime/components/__types/AntToaster.types.d.ts +0 -8
  85. package/dist/runtime/components/__types/AntToaster.types.mjs +0 -0
  86. package/dist/runtime/components/__types/index.d.ts +0 -7
  87. package/dist/runtime/components/__types/index.mjs +0 -7
  88. package/dist/runtime/components/buttons/AntActionButton.vue +0 -74
  89. package/dist/runtime/components/buttons/AntButton.vue +0 -257
  90. package/dist/runtime/components/buttons/AntCreateButton.vue +0 -54
  91. package/dist/runtime/components/buttons/AntDeleteButton.vue +0 -54
  92. package/dist/runtime/components/buttons/AntDuplicateButton.vue +0 -54
  93. package/dist/runtime/components/buttons/AntEditButton.vue +0 -54
  94. package/dist/runtime/components/buttons/AntSaveAndNewButton.vue +0 -56
  95. package/dist/runtime/components/buttons/AntSaveButton.vue +0 -55
  96. package/dist/runtime/components/buttons/__stories/AntActionButton.stories.d.ts +0 -11
  97. package/dist/runtime/components/buttons/__stories/AntActionButton.stories.mjs +0 -86
  98. package/dist/runtime/components/buttons/__stories/AntButton.stories.d.ts +0 -16
  99. package/dist/runtime/components/buttons/__stories/AntButton.stories.mjs +0 -313
  100. package/dist/runtime/components/buttons/__stories/AntCreateButton.stories.d.ts +0 -12
  101. package/dist/runtime/components/buttons/__stories/AntCreateButton.stories.mjs +0 -76
  102. package/dist/runtime/components/buttons/__stories/AntDeleteButton.stories.d.ts +0 -12
  103. package/dist/runtime/components/buttons/__stories/AntDeleteButton.stories.mjs +0 -76
  104. package/dist/runtime/components/buttons/__stories/AntDuplicateButton.stories.d.ts +0 -12
  105. package/dist/runtime/components/buttons/__stories/AntDuplicateButton.stories.mjs +0 -76
  106. package/dist/runtime/components/buttons/__stories/AntEditButton.stories.d.ts +0 -12
  107. package/dist/runtime/components/buttons/__stories/AntEditButton.stories.mjs +0 -76
  108. package/dist/runtime/components/buttons/__stories/AntSaveAndNewButton.stories.d.ts +0 -12
  109. package/dist/runtime/components/buttons/__stories/AntSaveAndNewButton.stories.mjs +0 -76
  110. package/dist/runtime/components/buttons/__stories/AntSaveButton.stories.d.ts +0 -12
  111. package/dist/runtime/components/buttons/__stories/AntSaveButton.stories.mjs +0 -76
  112. package/dist/runtime/components/buttons/__types/AntButton.types.d.ts +0 -4
  113. package/dist/runtime/components/buttons/__types/AntButton.types.mjs +0 -5
  114. package/dist/runtime/components/buttons/__types/index.d.ts +0 -1
  115. package/dist/runtime/components/buttons/__types/index.mjs +0 -1
  116. package/dist/runtime/components/crud/AntCrud.vue +0 -45
  117. package/dist/runtime/components/crud/AntCrudDetail.vue +0 -11
  118. package/dist/runtime/components/crud/AntCrudDetailActions.vue +0 -58
  119. package/dist/runtime/components/crud/AntCrudDetailNav.vue +0 -64
  120. package/dist/runtime/components/crud/AntCrudTableFilter.vue +0 -122
  121. package/dist/runtime/components/crud/AntCrudTableNav.vue +0 -149
  122. package/dist/runtime/components/crud/__stories/AntCrud.stories.d.ts +0 -6
  123. package/dist/runtime/components/crud/__stories/AntCrud.stories.mjs +0 -126
  124. package/dist/runtime/components/crud/__stories/AntCrudDetail.stories.d.ts +0 -7
  125. package/dist/runtime/components/crud/__stories/AntCrudDetail.stories.mjs +0 -80
  126. package/dist/runtime/components/crud/__stories/AntCrudDetailActions.stories.d.ts +0 -6
  127. package/dist/runtime/components/crud/__stories/AntCrudDetailActions.stories.mjs +0 -25
  128. package/dist/runtime/components/crud/__stories/AntCrudDetailNav.stories.d.ts +0 -6
  129. package/dist/runtime/components/crud/__stories/AntCrudDetailNav.stories.mjs +0 -41
  130. package/dist/runtime/components/crud/__stories/AntCrudTableFilter.stories.d.ts +0 -6
  131. package/dist/runtime/components/crud/__stories/AntCrudTableFilter.stories.mjs +0 -25
  132. package/dist/runtime/components/crud/__stories/AntCrudTableNav.stories.d.ts +0 -8
  133. package/dist/runtime/components/crud/__stories/AntCrudTableNav.stories.mjs +0 -56
  134. package/dist/runtime/components/dialogs/AntDeleteDialog.vue +0 -29
  135. package/dist/runtime/components/dialogs/AntDialog.vue +0 -147
  136. package/dist/runtime/components/dialogs/__stories/AndDeleteDialog.stories.d.ts +0 -6
  137. package/dist/runtime/components/dialogs/__stories/AndDeleteDialog.stories.mjs +0 -32
  138. package/dist/runtime/components/dialogs/__stories/AntDialog.stories.d.ts +0 -6
  139. package/dist/runtime/components/dialogs/__stories/AntDialog.stories.mjs +0 -60
  140. package/dist/runtime/components/forms/AntField.vue +0 -123
  141. package/dist/runtime/components/forms/AntFormGroup.vue +0 -36
  142. package/dist/runtime/components/forms/AntFormGroupLabel.vue +0 -5
  143. package/dist/runtime/components/forms/__stories/AntField.stories.d.ts +0 -6
  144. package/dist/runtime/components/forms/__stories/AntField.stories.mjs +0 -80
  145. package/dist/runtime/components/forms/__stories/AntFormGroup.stories.d.ts +0 -6
  146. package/dist/runtime/components/forms/__stories/AntFormGroup.stories.mjs +0 -33
  147. package/dist/runtime/components/forms/__stories/AntFormGroupLabel.stories.d.ts +0 -6
  148. package/dist/runtime/components/forms/__stories/AntFormGroupLabel.stories.mjs +0 -20
  149. package/dist/runtime/components/index.d.ts +0 -62
  150. package/dist/runtime/components/index.mjs +0 -124
  151. package/dist/runtime/components/inputs/AntCheckbox.vue +0 -182
  152. package/dist/runtime/components/inputs/AntCheckboxGroup.vue +0 -117
  153. package/dist/runtime/components/inputs/AntDateInput.vue +0 -104
  154. package/dist/runtime/components/inputs/AntNumberInput.vue +0 -157
  155. package/dist/runtime/components/inputs/AntPasswordInput.vue +0 -107
  156. package/dist/runtime/components/inputs/AntRadio.vue +0 -206
  157. package/dist/runtime/components/inputs/AntRadioGroup.vue +0 -127
  158. package/dist/runtime/components/inputs/AntRangeSlider.vue +0 -101
  159. package/dist/runtime/components/inputs/AntRichTextEditor.vue +0 -237
  160. package/dist/runtime/components/inputs/AntSearch.vue +0 -75
  161. package/dist/runtime/components/inputs/AntSelect.vue +0 -319
  162. package/dist/runtime/components/inputs/AntSwitch.vue +0 -192
  163. package/dist/runtime/components/inputs/AntSwitcher.vue +0 -196
  164. package/dist/runtime/components/inputs/AntTagInput.vue +0 -339
  165. package/dist/runtime/components/inputs/AntTextInput.vue +0 -75
  166. package/dist/runtime/components/inputs/AntTextarea.vue +0 -191
  167. package/dist/runtime/components/inputs/AntUnitInput.vue +0 -96
  168. package/dist/runtime/components/inputs/Elements/AntBaseInput.vue +0 -271
  169. package/dist/runtime/components/inputs/Elements/AntDropDown.vue +0 -189
  170. package/dist/runtime/components/inputs/Elements/AntInputDescription.vue +0 -58
  171. package/dist/runtime/components/inputs/Elements/AntInputLabel.vue +0 -62
  172. package/dist/runtime/components/inputs/Elements/AntInputLimiter.vue +0 -58
  173. package/dist/runtime/components/inputs/Elements/__stories/AntBaseInput.stories.d.ts +0 -11
  174. package/dist/runtime/components/inputs/Elements/__stories/AntBaseInput.stories.mjs +0 -234
  175. package/dist/runtime/components/inputs/Elements/__stories/AntInputDescription.stories.d.ts +0 -6
  176. package/dist/runtime/components/inputs/Elements/__stories/AntInputDescription.stories.mjs +0 -34
  177. package/dist/runtime/components/inputs/Elements/__stories/AntInputLabel.stories.d.ts +0 -7
  178. package/dist/runtime/components/inputs/Elements/__stories/AntInputLabel.stories.mjs +0 -46
  179. package/dist/runtime/components/inputs/Elements/__stories/AntInputLimiter.stories.d.ts +0 -6
  180. package/dist/runtime/components/inputs/Elements/__stories/AntInputLimiter.stories.mjs +0 -37
  181. package/dist/runtime/components/inputs/Elements/__types/AntBaseInput.types.d.ts +0 -17
  182. package/dist/runtime/components/inputs/Elements/__types/AntBaseInput.types.mjs +0 -18
  183. package/dist/runtime/components/inputs/Elements/__types/index.d.ts +0 -1
  184. package/dist/runtime/components/inputs/Elements/__types/index.mjs +0 -1
  185. package/dist/runtime/components/inputs/Elements/index.d.ts +0 -6
  186. package/dist/runtime/components/inputs/Elements/index.mjs +0 -12
  187. package/dist/runtime/components/inputs/__stories/AntCheckbox.stories.d.ts +0 -8
  188. package/dist/runtime/components/inputs/__stories/AntCheckbox.stories.mjs +0 -382
  189. package/dist/runtime/components/inputs/__stories/AntCheckboxGroup.stories.d.ts +0 -7
  190. package/dist/runtime/components/inputs/__stories/AntCheckboxGroup.stories.mjs +0 -84
  191. package/dist/runtime/components/inputs/__stories/AntDateInput.stories.d.ts +0 -8
  192. package/dist/runtime/components/inputs/__stories/AntDateInput.stories.mjs +0 -193
  193. package/dist/runtime/components/inputs/__stories/AntNumberInput.stories.d.ts +0 -10
  194. package/dist/runtime/components/inputs/__stories/AntNumberInput.stories.mjs +0 -246
  195. package/dist/runtime/components/inputs/__stories/AntPasswordInput.stories.d.ts +0 -8
  196. package/dist/runtime/components/inputs/__stories/AntPasswordInput.stories.mjs +0 -156
  197. package/dist/runtime/components/inputs/__stories/AntRadioGroup.stories.d.ts +0 -8
  198. package/dist/runtime/components/inputs/__stories/AntRadioGroup.stories.mjs +0 -251
  199. package/dist/runtime/components/inputs/__stories/AntRangeSlider.stories.d.ts +0 -7
  200. package/dist/runtime/components/inputs/__stories/AntRangeSlider.stories.mjs +0 -67
  201. package/dist/runtime/components/inputs/__stories/AntRichTextEditor.stories-old.d.ts +0 -0
  202. package/dist/runtime/components/inputs/__stories/AntRichTextEditor.stories-old.mjs +0 -0
  203. package/dist/runtime/components/inputs/__stories/AntSearch.stories.d.ts +0 -7
  204. package/dist/runtime/components/inputs/__stories/AntSearch.stories.mjs +0 -103
  205. package/dist/runtime/components/inputs/__stories/AntSelect.stories.d.ts +0 -13
  206. package/dist/runtime/components/inputs/__stories/AntSelect.stories.mjs +0 -255
  207. package/dist/runtime/components/inputs/__stories/AntSwitch.stories.d.ts +0 -8
  208. package/dist/runtime/components/inputs/__stories/AntSwitch.stories.mjs +0 -344
  209. package/dist/runtime/components/inputs/__stories/AntSwitcher.stories.d.ts +0 -8
  210. package/dist/runtime/components/inputs/__stories/AntSwitcher.stories.mjs +0 -235
  211. package/dist/runtime/components/inputs/__stories/AntTagInput.stories.d.ts +0 -9
  212. package/dist/runtime/components/inputs/__stories/AntTagInput.stories.mjs +0 -228
  213. package/dist/runtime/components/inputs/__stories/AntTextInput.stories.d.ts +0 -9
  214. package/dist/runtime/components/inputs/__stories/AntTextInput.stories.mjs +0 -225
  215. package/dist/runtime/components/inputs/__stories/AntTextarea.stories.d.ts +0 -9
  216. package/dist/runtime/components/inputs/__stories/AntTextarea.stories.mjs +0 -144
  217. package/dist/runtime/components/inputs/__stories/AntUnitInput.stories.d.ts +0 -9
  218. package/dist/runtime/components/inputs/__stories/AntUnitInput.stories.mjs +0 -116
  219. package/dist/runtime/components/inputs/__types/AntCheckbox.types.d.ts +0 -6
  220. package/dist/runtime/components/inputs/__types/AntCheckbox.types.mjs +0 -0
  221. package/dist/runtime/components/inputs/__types/AntDateInput.types.d.ts +0 -7
  222. package/dist/runtime/components/inputs/__types/AntDateInput.types.mjs +0 -8
  223. package/dist/runtime/components/inputs/__types/AntRadio.types.d.ts +0 -9
  224. package/dist/runtime/components/inputs/__types/AntRadio.types.mjs +0 -0
  225. package/dist/runtime/components/inputs/__types/AntSelect.types.d.ts +0 -4
  226. package/dist/runtime/components/inputs/__types/AntSelect.types.mjs +0 -0
  227. package/dist/runtime/components/inputs/__types/AntSwitcher.types.d.ts +0 -4
  228. package/dist/runtime/components/inputs/__types/AntSwitcher.types.mjs +0 -0
  229. package/dist/runtime/components/inputs/__types/AntTagInput.types.d.ts +0 -5
  230. package/dist/runtime/components/inputs/__types/AntTagInput.types.mjs +0 -6
  231. package/dist/runtime/components/inputs/__types/AntTextInput.types.d.ts +0 -6
  232. package/dist/runtime/components/inputs/__types/AntTextInput.types.mjs +0 -7
  233. package/dist/runtime/components/inputs/__types/index.d.ts +0 -7
  234. package/dist/runtime/components/inputs/__types/index.mjs +0 -7
  235. package/dist/runtime/components/layouts/AntNavLeftLayout.vue +0 -36
  236. package/dist/runtime/components/layouts/__stories/AntNavLeftLayout.stories.d.ts +0 -7
  237. package/dist/runtime/components/layouts/__stories/AntNavLeftLayout.stories.mjs +0 -68
  238. package/dist/runtime/components/navbar/AntNavbar.vue +0 -25
  239. package/dist/runtime/components/navbar/AntNavbarItem.vue +0 -78
  240. package/dist/runtime/components/navbar/__stories/AntNavbar.stories.d.ts +0 -6
  241. package/dist/runtime/components/navbar/__stories/AntNavbar.stories.mjs +0 -66
  242. package/dist/runtime/components/navbar/__types/NavbarItem.types.d.ts +0 -10
  243. package/dist/runtime/components/navbar/__types/NavbarItem.types.mjs +0 -0
  244. package/dist/runtime/components/navbar/__types/index.d.ts +0 -1
  245. package/dist/runtime/components/navbar/__types/index.mjs +0 -1
  246. package/dist/runtime/components/table/AntTable.vue +0 -218
  247. package/dist/runtime/components/table/AntTableSortButton.vue +0 -48
  248. package/dist/runtime/components/table/AntTd.vue +0 -81
  249. package/dist/runtime/components/table/AntTh.vue +0 -78
  250. package/dist/runtime/components/table/__stories/AntTable.stories.d.ts +0 -9
  251. package/dist/runtime/components/table/__stories/AntTable.stories.mjs +0 -273
  252. package/dist/runtime/components/table/__types/TableHeader.types.d.ts +0 -36
  253. package/dist/runtime/components/table/__types/TableHeader.types.mjs +0 -25
  254. package/dist/runtime/components/table/__types/index.d.ts +0 -1
  255. package/dist/runtime/components/table/__types/index.mjs +0 -1
  256. package/dist/runtime/components/tabs/AntTabItem.vue +0 -118
  257. package/dist/runtime/components/tabs/AntTabs.vue +0 -47
  258. package/dist/runtime/components/tabs/__stories/AntTabItem.stories.d.ts +0 -6
  259. package/dist/runtime/components/tabs/__stories/AntTabItem.stories.mjs +0 -32
  260. package/dist/runtime/components/tabs/__stories/AntTabs.stories.d.ts +0 -9
  261. package/dist/runtime/components/tabs/__stories/AntTabs.stories.mjs +0 -173
  262. package/dist/runtime/components/tabs/__types/AntTabItem.types.d.ts +0 -17
  263. package/dist/runtime/components/tabs/__types/AntTabItem.types.mjs +0 -6
  264. package/dist/runtime/components/tabs/__types/index.d.ts +0 -1
  265. package/dist/runtime/components/tabs/__types/index.mjs +0 -1
  266. package/dist/runtime/components/transitions/AntTransitionCollapseHeight.vue +0 -92
  267. package/dist/runtime/composables/useUi.d.ts +0 -20
  268. package/dist/runtime/composables/useUi.mjs +0 -31
  269. package/dist/runtime/composables/useValidator.d.ts +0 -1
  270. package/dist/runtime/composables/useValidator.mjs +0 -1
  271. package/dist/runtime/enums/Direction.enum.d.ts +0 -4
  272. package/dist/runtime/enums/Direction.enum.mjs +0 -5
  273. package/dist/runtime/enums/Grouped.enum.d.ts +0 -6
  274. package/dist/runtime/enums/Grouped.enum.mjs +0 -7
  275. package/dist/runtime/enums/Position.enum.d.ts +0 -12
  276. package/dist/runtime/enums/Position.enum.mjs +0 -14
  277. package/dist/runtime/enums/Size.enum.d.ts +0 -7
  278. package/dist/runtime/enums/Size.enum.mjs +0 -8
  279. package/dist/runtime/enums/State.enum.d.ts +0 -16
  280. package/dist/runtime/enums/State.enum.mjs +0 -18
  281. package/dist/runtime/enums/index.d.ts +0 -5
  282. package/dist/runtime/enums/index.mjs +0 -5
  283. package/dist/runtime/env.d.ts +0 -8
  284. package/dist/runtime/handler.d.ts +0 -1
  285. package/dist/runtime/handler.mjs +0 -5
  286. package/dist/runtime/plugins/toaster.d.ts +0 -22
  287. package/dist/runtime/plugins/toaster.mjs +0 -53
  288. package/dist/runtime/shims/vue.d.ts +0 -5
  289. package/dist/runtime/types.d.ts +0 -8
  290. package/dist/runtime/types.mjs +0 -8
  291. package/dist/runtime/utils/helper.d.ts +0 -4
  292. package/dist/runtime/utils/helper.mjs +0 -12
  293. package/dist/runtime/utils.d.ts +0 -20
  294. package/dist/runtime/utils.mjs +0 -41
  295. package/src/runtime/components/AntAccordion.vue +0 -64
  296. package/src/runtime/components/AntAccordionItem.vue +0 -119
  297. package/src/runtime/components/AntAlert.vue +0 -146
  298. package/src/runtime/components/AntCard.vue +0 -34
  299. package/src/runtime/components/AntContent.vue +0 -16
  300. package/src/runtime/components/AntDropdown.vue +0 -100
  301. package/src/runtime/components/AntIcon.vue +0 -56
  302. package/src/runtime/components/AntKeycap.vue +0 -45
  303. package/src/runtime/components/AntListGroup.vue +0 -24
  304. package/src/runtime/components/AntListGroupItem.vue +0 -83
  305. package/src/runtime/components/AntModal.vue +0 -130
  306. package/src/runtime/components/AntPagination.vue +0 -206
  307. package/src/runtime/components/AntPopover.vue +0 -135
  308. package/src/runtime/components/AntSkeleton.vue +0 -38
  309. package/src/runtime/components/AntSpinner.vue +0 -101
  310. package/src/runtime/components/AntTag.vue +0 -114
  311. package/src/runtime/components/AntToast.vue +0 -119
  312. package/src/runtime/components/AntToaster.vue +0 -70
  313. package/src/runtime/components/AntTooltip.vue +0 -189
  314. package/src/runtime/components/buttons/AntActionButton.vue +0 -74
  315. package/src/runtime/components/buttons/AntButton.vue +0 -257
  316. package/src/runtime/components/buttons/AntCreateButton.vue +0 -54
  317. package/src/runtime/components/buttons/AntDeleteButton.vue +0 -54
  318. package/src/runtime/components/buttons/AntDuplicateButton.vue +0 -54
  319. package/src/runtime/components/buttons/AntEditButton.vue +0 -54
  320. package/src/runtime/components/buttons/AntSaveAndNewButton.vue +0 -56
  321. package/src/runtime/components/buttons/AntSaveButton.vue +0 -55
  322. package/src/runtime/components/crud/AntCrud.vue +0 -69
  323. package/src/runtime/components/crud/AntCrudDetail.vue +0 -11
  324. package/src/runtime/components/crud/AntCrudDetailActions.vue +0 -58
  325. package/src/runtime/components/crud/AntCrudDetailNav.vue +0 -64
  326. package/src/runtime/components/crud/AntCrudTableFilter.vue +0 -122
  327. package/src/runtime/components/crud/AntCrudTableNav.vue +0 -149
  328. package/src/runtime/components/dialogs/AntDeleteDialog.vue +0 -29
  329. package/src/runtime/components/dialogs/AntDialog.vue +0 -181
  330. package/src/runtime/components/forms/AntField.vue +0 -123
  331. package/src/runtime/components/forms/AntFormGroup.vue +0 -36
  332. package/src/runtime/components/forms/AntFormGroupLabel.vue +0 -5
  333. package/src/runtime/components/inputs/AntCheckbox.vue +0 -201
  334. package/src/runtime/components/inputs/AntCheckboxGroup.vue +0 -117
  335. package/src/runtime/components/inputs/AntDateInput.vue +0 -104
  336. package/src/runtime/components/inputs/AntNumberInput.vue +0 -157
  337. package/src/runtime/components/inputs/AntPasswordInput.vue +0 -107
  338. package/src/runtime/components/inputs/AntRadio.vue +0 -214
  339. package/src/runtime/components/inputs/AntRadioGroup.vue +0 -127
  340. package/src/runtime/components/inputs/AntRangeSlider.vue +0 -121
  341. package/src/runtime/components/inputs/AntRichTextEditor.vue +0 -237
  342. package/src/runtime/components/inputs/AntSearch.vue +0 -75
  343. package/src/runtime/components/inputs/AntSelect.vue +0 -319
  344. package/src/runtime/components/inputs/AntSwitch.vue +0 -192
  345. package/src/runtime/components/inputs/AntSwitcher.vue +0 -196
  346. package/src/runtime/components/inputs/AntTagInput.vue +0 -339
  347. package/src/runtime/components/inputs/AntTextInput.vue +0 -75
  348. package/src/runtime/components/inputs/AntTextarea.vue +0 -191
  349. package/src/runtime/components/inputs/AntUnitInput.vue +0 -96
  350. package/src/runtime/components/inputs/Elements/AntBaseInput.vue +0 -319
  351. package/src/runtime/components/inputs/Elements/AntDropDown.vue +0 -189
  352. package/src/runtime/components/inputs/Elements/AntInputDescription.vue +0 -58
  353. package/src/runtime/components/inputs/Elements/AntInputLabel.vue +0 -62
  354. package/src/runtime/components/inputs/Elements/AntInputLimiter.vue +0 -58
  355. package/src/runtime/components/layouts/AntNavLeftLayout.vue +0 -36
  356. package/src/runtime/components/navbar/AntNavbar.vue +0 -25
  357. package/src/runtime/components/navbar/AntNavbarItem.vue +0 -78
  358. package/src/runtime/components/table/AntTable.vue +0 -218
  359. package/src/runtime/components/table/AntTableSortButton.vue +0 -48
  360. package/src/runtime/components/table/AntTd.vue +0 -81
  361. package/src/runtime/components/table/AntTh.vue +0 -78
  362. package/src/runtime/components/tabs/AntTabItem.vue +0 -118
  363. package/src/runtime/components/tabs/AntTabs.vue +0 -47
  364. package/src/runtime/components/transitions/AntTransitionCollapseHeight.vue +0 -96
@@ -1,126 +0,0 @@
1
- import { computed, ref, watch } from "vue";
2
- import AntTabs from "../../tabs/AntTabs.vue";
3
- import AntCrud from "../AntCrud.vue";
4
- import AntCrudTableNav from "../AntCrudTableNav.vue";
5
- import AntTable from "../../table/AntTable.vue";
6
- import AntCrudTableFilter from "../AntCrudTableFilter.vue";
7
- import AntCrudDetail from "../AntCrudDetail.vue";
8
- import { AntTableRowTypes } from "../../table/__types/TableHeader.types.mjs";
9
- const meta = {
10
- title: "Crud/Crud",
11
- component: AntCrud,
12
- parameters: {
13
- controls: { sort: "requiredFirst" },
14
- fullscreen: true
15
- },
16
- decorators: [() => ({ template: '<div class="h-screen"><story/></div>' })],
17
- argTypes: {}
18
- };
19
- export default meta;
20
- function generateTableData(amount) {
21
- const tableData = [];
22
- for (let i = 0; i < amount; i++) {
23
- tableData.push({
24
- name: "Lindsay Walton",
25
- title: "Front-end Developer",
26
- email: "lindsay.walton@gmail.com",
27
- streetAddress: "3670 New Road",
28
- city: "Birmingham",
29
- country: "United Kingdom"
30
- });
31
- }
32
- return tableData;
33
- }
34
- export const Docs = {
35
- render: (args) => ({
36
- components: {
37
- AntTabs,
38
- AntTable,
39
- AntCrudTableNav,
40
- AntCrud,
41
- AntCrudTableFilter,
42
- AntCrudDetail
43
- },
44
- setup() {
45
- const selectedDataItem = ref(null);
46
- const fullWidth = computed(() => selectedDataItem.value === null && args.showDetail === false);
47
- watch(() => args.showDetail, (showDetail) => {
48
- if (showDetail === false) {
49
- selectedDataItem.value = null;
50
- }
51
- });
52
- return {
53
- args,
54
- fullWidth,
55
- tableData: generateTableData(50),
56
- tableHeaders: [
57
- {
58
- title: "Name",
59
- identifier: "name",
60
- type: AntTableRowTypes.text,
61
- lightVersion: true
62
- },
63
- {
64
- title: "Title",
65
- identifier: "title",
66
- type: AntTableRowTypes.text,
67
- lightVersion: true
68
- },
69
- {
70
- title: "E-Mail",
71
- identifier: "email",
72
- type: AntTableRowTypes.text
73
- },
74
- {
75
- title: "Street Address",
76
- identifier: "streetAddress",
77
- type: AntTableRowTypes.text
78
- },
79
- {
80
- title: "City",
81
- identifier: "city",
82
- type: AntTableRowTypes.text
83
- },
84
- {
85
- title: "Country",
86
- identifier: "country",
87
- type: AntTableRowTypes.text
88
- }
89
- ]
90
- };
91
- },
92
- template: `
93
- <AntCrud v-bind="args" :show-detail="!fullWidth">
94
- <template #search-section>
95
- <AntCrudTableFilter
96
- :full-width="fullWidth"
97
- />
98
- </template>
99
-
100
- <template #table-section>
101
- <AntTable
102
- :data="tableData"
103
- :headers="tableHeaders"
104
- :show-light-version="!fullWidth"
105
- selectable-rows
106
- />
107
- </template>
108
-
109
- <template #table-nav-section>
110
- <AntCrudTableNav
111
- :pages="(1000000 * 20)"
112
- :count="1000000"
113
- :full-width="fullWidth"
114
- />
115
- </template>
116
-
117
- <AntCrudDetail>
118
- <div class="m-2.5 slot">
119
- SLOT
120
- </div>
121
- </AntCrudDetail>
122
- </AntCrud>
123
- `
124
- }),
125
- args: {}
126
- };
@@ -1,7 +0,0 @@
1
- import { type Meta, type StoryObj } from '@storybook/vue3';
2
- import AntCrudDetail from '../AntCrudDetail.vue';
3
- declare const meta: Meta<typeof AntCrudDetail>;
4
- export default meta;
5
- type Story = StoryObj<typeof AntCrudDetail>;
6
- export declare const Docs: Story;
7
- export declare const overflownContent: Story;
@@ -1,80 +0,0 @@
1
- import AntCrudDetail from "../AntCrudDetail.vue";
2
- import AntCrudDetailNav from "../AntCrudDetailNav.vue";
3
- import AntCrudDetailActions from "../AntCrudDetailActions.vue";
4
- const meta = {
5
- title: "Crud/Crud Detail",
6
- component: AntCrudDetail,
7
- parameters: { controls: { sort: "requiredFirst" } },
8
- decorators: [() => ({ template: '<div class="border border-dashed border-neutral-300 h-80"><story/></div>' })],
9
- argTypes: {}
10
- };
11
- export default meta;
12
- export const Docs = {
13
- render: (args) => ({
14
- components: {
15
- AntCrudDetail,
16
- AntCrudDetailNav,
17
- AntCrudDetailActions
18
- },
19
- setup() {
20
- return {
21
- args,
22
- overflowContent: false,
23
- tabItems: [
24
- {
25
- id: "1",
26
- label: "Tab"
27
- },
28
- {
29
- id: "2",
30
- label: "Tab"
31
- },
32
- {
33
- id: "3",
34
- label: "Tab"
35
- }
36
- ]
37
- };
38
- },
39
- template: `
40
- <AntCrudDetail v-bind="args">
41
- <template #header>
42
- <AntCrudDetailNav
43
- :tab-items="tabItems"
44
- :get-entity-name="() => 'Lorem ipsum'"
45
- />
46
- </template>
47
-
48
- <div
49
- class="m-2.5 slot"
50
- :class="{'h-96': overflowContent}"
51
- >
52
- SLOT
53
- </div>
54
-
55
- <template #footer>
56
- <AntCrudDetailActions/>
57
- </template>
58
- </AntCrudDetail>
59
- `
60
- }),
61
- args: {}
62
- };
63
- export const overflownContent = {
64
- render: (args, ctx) => ({
65
- // @ts-ignore
66
- components: Docs.render(args, ctx).components,
67
- setup() {
68
- return {
69
- // @ts-ignore
70
- ...Docs.render(args, ctx).setup(),
71
- overflowContent: true
72
- };
73
- },
74
- // @ts-ignore
75
- template: Docs.render(args, ctx).template
76
- }),
77
- args: {
78
- ...Docs.args
79
- }
80
- };
@@ -1,6 +0,0 @@
1
- import { type Meta, type StoryObj } from '@storybook/vue3';
2
- import AntCrudDetailActions from '../AntCrudDetailActions.vue';
3
- declare const meta: Meta<typeof AntCrudDetailActions>;
4
- export default meta;
5
- type Story = StoryObj<typeof AntCrudDetailActions>;
6
- export declare const Docs: Story;
@@ -1,25 +0,0 @@
1
- import AntTabs from "../../tabs/AntTabs.vue";
2
- import AntCrudDetailActions from "../AntCrudDetailActions.vue";
3
- const meta = {
4
- title: "Crud/Crud Detail Actions",
5
- component: AntCrudDetailActions,
6
- parameters: { controls: { sort: "requiredFirst" } },
7
- decorators: [() => ({ template: '<div class="border border-dashed border-neutral-300"><story/></div>' })],
8
- argTypes: {}
9
- };
10
- export default meta;
11
- export const Docs = {
12
- render: (args) => ({
13
- components: {
14
- AntTabs,
15
- AntCrudDetailActions
16
- },
17
- setup() {
18
- return {
19
- args
20
- };
21
- },
22
- template: '<AntCrudDetailActions v-bind="args"/>'
23
- }),
24
- args: {}
25
- };
@@ -1,6 +0,0 @@
1
- import { type Meta, type StoryObj } from '@storybook/vue3';
2
- import AntCrudDetailNav from '../AntCrudDetailNav.vue';
3
- declare const meta: Meta<typeof AntCrudDetailNav>;
4
- export default meta;
5
- type Story = StoryObj<typeof AntCrudDetailNav>;
6
- export declare const Docs: Story;
@@ -1,41 +0,0 @@
1
- import AntTabs from "../../tabs/AntTabs.vue";
2
- import AntCrudDetailNav from "../AntCrudDetailNav.vue";
3
- const meta = {
4
- title: "Crud/Crud Detail Nav",
5
- component: AntCrudDetailNav,
6
- parameters: { controls: { sort: "requiredFirst" } },
7
- decorators: [() => ({ template: '<div class="border border-dashed border-neutral-300"><story/></div>' })],
8
- argTypes: {}
9
- };
10
- export default meta;
11
- export const Docs = {
12
- render: (args) => ({
13
- components: {
14
- AntTabs,
15
- AntCrudDetailNav
16
- },
17
- setup() {
18
- return {
19
- args
20
- };
21
- },
22
- template: '<AntCrudDetailNav v-bind="args"/>'
23
- }),
24
- args: {
25
- getEntityName: () => "Lorem ipsum",
26
- tabItems: [
27
- {
28
- id: "1",
29
- label: "Main data"
30
- },
31
- {
32
- id: "2",
33
- label: "Related data"
34
- },
35
- {
36
- id: "3",
37
- label: "Related data"
38
- }
39
- ]
40
- }
41
- };
@@ -1,6 +0,0 @@
1
- import AntCrudTableFilter from '../AntCrudTableFilter.vue';
2
- import { type Meta, type StoryObj } from '@storybook/vue3';
3
- declare const meta: Meta<typeof AntCrudTableFilter>;
4
- export default meta;
5
- type Story = StoryObj<typeof AntCrudTableFilter>;
6
- export declare const Docs: Story;
@@ -1,25 +0,0 @@
1
- import AntCrudTableFilter from "../AntCrudTableFilter.vue";
2
- const meta = {
3
- title: "Crud/Crud Table Filter",
4
- component: AntCrudTableFilter,
5
- parameters: { controls: { sort: "requiredFirst" } },
6
- argTypes: {}
7
- };
8
- export default meta;
9
- export const Docs = {
10
- render: (args) => ({
11
- components: { AntCrudTableFilter },
12
- setup() {
13
- return { args };
14
- },
15
- template: `
16
- <div class="border border-neutral-300 border-dashed">
17
- <AntCrudTableFilter
18
- v-model:search="args.search"
19
- v-bind="args"
20
- />
21
- </div>
22
- `
23
- }),
24
- args: {}
25
- };
@@ -1,8 +0,0 @@
1
- import AntCrudTableNav from '../AntCrudTableNav.vue';
2
- import { type Meta, type StoryObj } from '@storybook/vue3';
3
- declare const meta: Meta<typeof AntCrudTableNav>;
4
- export default meta;
5
- type Story = StoryObj<typeof AntCrudTableNav>;
6
- export declare const Docs: Story;
7
- export declare const fullWidth: Story;
8
- export declare const skeleton: Story;
@@ -1,56 +0,0 @@
1
- import AntCrudTableNav from "../AntCrudTableNav.vue";
2
- const meta = {
3
- title: "Crud/Crud Table Nav",
4
- component: AntCrudTableNav,
5
- parameters: { controls: { sort: "requiredFirst" } },
6
- argTypes: {
7
- pageQuery: {
8
- description: "Which query parameter should be used, for writing the current page into it."
9
- }
10
- }
11
- };
12
- export default meta;
13
- export const Docs = {
14
- render: (args) => ({
15
- components: { AntCrudTableNav },
16
- setup() {
17
- return { args };
18
- },
19
- template: `
20
- <div class="dashed">
21
- <AntCrudTableNav v-bind="args"/>
22
- </div>
23
- `
24
- }),
25
- args: {
26
- count: 1000015
27
- }
28
- };
29
- export const fullWidth = {
30
- render: (args) => ({
31
- components: { AntCrudTableNav },
32
- setup() {
33
- return { args };
34
- },
35
- template: `
36
- <div class="p-4 flex gap-4">
37
- <AntCrudTableNav v-bind="args"/>
38
-
39
- <div v-if="!args.fullWidth" class="w-full">
40
- Another content
41
- </div>
42
- </div>
43
- `
44
- }),
45
- args: {
46
- ...Docs.args,
47
- fullWidth: false
48
- }
49
- };
50
- export const skeleton = {
51
- render: Docs.render,
52
- args: {
53
- ...Docs.args,
54
- skeleton: true
55
- }
56
- };
@@ -1,29 +0,0 @@
1
- <script setup lang="ts">
2
- import {InputState} from '../../enums';
3
- import AntDialog from './AntDialog.vue';
4
- import {useVModel} from '@vueuse/core';
5
-
6
- const emit = defineEmits(['update:open', 'close', 'confirm']);
7
- const props = defineProps<{
8
- open: boolean,
9
- entity: string
10
- }>();
11
-
12
- const _open = useVModel(props, 'open', emit);
13
- </script>
14
-
15
- <template>
16
- <AntDialog
17
- v-model:open="_open"
18
- :state="InputState.danger"
19
- title="Delete"
20
- confirm-text="Delete"
21
- data-e2e="delete-dialog"
22
- @confirm="() => $emit('confirm')"
23
- @close="() => $emit('close')"
24
- >
25
- <div>
26
- Do you really want to delete <span class="font-semibold">{{ entity }}</span>?
27
- </div>
28
- </AntDialog>
29
- </template>
@@ -1,147 +0,0 @@
1
- <script setup lang="ts">
2
- // TODO:: remove ts ignore
3
- // @ts-nocheck
4
- import {computed, ref, watch} from 'vue';
5
- import AntButton from '../buttons/AntButton.vue';
6
- import AntIcon from '../AntIcon.vue';
7
- import {
8
- faCheckCircle,
9
- faExclamationCircle,
10
- faExclamationTriangle,
11
- faInfoCircle,
12
- type IconDefinition,
13
- } from '@fortawesome/free-solid-svg-icons';
14
- import {State, InputState} from '../../enums';
15
- import {IconSize} from '../__types';
16
-
17
- const emit = defineEmits(['update:open', 'close', 'confirm']);
18
- const props = withDefaults(defineProps<{
19
- title?: string,
20
- open: boolean,
21
- confirmText?: string,
22
- cancelText?: string,
23
- showCancel?: boolean,
24
- state?: InputState
25
- }>(), {
26
- state: InputState.base,
27
- confirmText: 'Confirm',
28
- cancelText: 'Cancel',
29
- showCancel: true,
30
- });
31
-
32
- const openDialog = ref(props.open);
33
- const openBackground = ref(props.open);
34
- const icons = {
35
- [InputState.base]: null,
36
- [InputState.info]: faInfoCircle,
37
- [InputState.danger]: faExclamationCircle,
38
- [InputState.warning]: faExclamationTriangle,
39
- [InputState.success]: faCheckCircle,
40
- };
41
-
42
- const iconColor = computed(() => {
43
- const variants = {
44
- [InputState.base]: 'text-neutral-100-font',
45
- [InputState.danger]: 'text-danger-500',
46
- [InputState.info]: 'text-info-500',
47
- [InputState.success]: 'text-success-500',
48
- [InputState.warning]: 'text-warning-500',
49
- };
50
-
51
- return variants[props.state];
52
- });
53
-
54
- watch(() => props.open, (val) => {
55
- function onKeydown(e: KeyboardEvent) {
56
- if (e.key === 'Escape') {
57
- emit('update:open', false);
58
- }
59
- }
60
-
61
- if (val) {
62
- openBackground.value = true;
63
- setTimeout(() => openDialog.value = true, 100);
64
- document.addEventListener('keydown', onKeydown);
65
- } else {
66
- openDialog.value = false;
67
- setTimeout(() => openBackground.value = false, 100);
68
- document.removeEventListener('keydown', onKeydown);
69
- }
70
- });
71
-
72
- function closeDialog() {
73
- emit('update:open', false);
74
- emit('close');
75
- }
76
- function confirmDialog() {
77
- emit('update:open', false);
78
- emit('confirm');
79
- }
80
- </script>
81
-
82
- <template>
83
- <Transition name="fade">
84
- <div
85
- v-if="openBackground"
86
- class="absolute inset-0 flex items-center justify-center z-50 cursor-pointer overflow-hidden bg-black/50 backdrop-blur-sm"
87
- data-e2e="dialog"
88
- @click.self="closeDialog"
89
- >
90
- <Transition :name="'bounce'">
91
- <div
92
- v-if="openDialog"
93
- class="flex flex-col gap-px bg-neutral-300 overflow-hidden cursor-auto w-96 border border-neutral-300 rounded-md shadow-md"
94
- >
95
- <div
96
- v-if="title || $slots['title']"
97
- class="bg-neutral-100 p-2 flex items-center justify-between text-neutral-100-font text-sm font-semibold"
98
- >
99
- <slot name="title">
100
- {{ title }}
101
- </slot>
102
- </div>
103
-
104
- <div class="bg-white p-2 grow flex items-start gap-2 text-sm text-for-white-bg-font">
105
- <slot name="icon">
106
- <AntIcon
107
- v-if="icons[state]"
108
- :size="IconSize.xl3"
109
- :icon="icons[state] as unknown as IconDefinition"
110
- :color="iconColor"
111
- class="px-2.5 w-8 h-8"
112
- />
113
- </slot>
114
-
115
- <slot />
116
- </div>
117
-
118
- <div
119
- class="bg-neutral-100 p-2 gap-2 text-for-white-bg-font flex w-full justify-end"
120
- >
121
- <slot name="footer">
122
- <AntButton
123
- v-if="showCancel"
124
- :state="State.base"
125
- @click="closeDialog()"
126
- >
127
- {{ cancelText }}
128
- </AntButton>
129
-
130
- <AntButton
131
- :state="state === State.base ? State.primary : state as unknown as State"
132
- filled
133
- @click="confirmDialog()"
134
- >
135
- {{ confirmText }}
136
- </AntButton>
137
- </slot>
138
- </div>
139
- </div>
140
- </Transition>
141
- </div>
142
- </Transition>
143
- </template>
144
-
145
- <style scoped>
146
- .fade-leave-active{transition:opacity .5s ease}.fade-enter-active{transition:opacity .3s ease}.fade-enter-from,.fade-leave-to{opacity:0}.bounce-enter-active{animation:bounce-in .4s}.bounce-leave-active{animation:bounce-in .4s reverse}@keyframes bounce-in{0%{opacity:0;transform:scale(0)}50%{opacity:1;transform:scale(1.05)}to{opacity:1;transform:scale(1)}}
147
- </style>
@@ -1,6 +0,0 @@
1
- import { type Meta, type StoryObj } from '@storybook/vue3';
2
- import AntDeleteDialog from '../AntDeleteDialog.vue';
3
- declare const meta: Meta<typeof AntDeleteDialog>;
4
- export default meta;
5
- type Story = StoryObj<typeof AntDeleteDialog>;
6
- export declare const Docs: Story;
@@ -1,32 +0,0 @@
1
- import AntDeleteDialog from "../AntDeleteDialog.vue";
2
- import AntButton from "../../buttons/AntButton.vue";
3
- const meta = {
4
- title: "Components/Dialogs/Delete Dialog",
5
- component: AntDeleteDialog,
6
- parameters: { controls: { sort: "requiredFirst" } },
7
- argTypes: {}
8
- };
9
- export default meta;
10
- export const Docs = {
11
- render: (args) => ({
12
- components: { AntDeleteDialog, AntButton },
13
- setup() {
14
- return { args };
15
- },
16
- template: `
17
- <div class="h-96">
18
- <AntButton @click="() => args.open = true" state="danger">Delete</AntButton>
19
-
20
- <AntDeleteDialog
21
- v-model:open="args.open"
22
- :entity="args.entity"
23
- v-bind="args"
24
- />
25
- </div>
26
- `
27
- }),
28
- args: {
29
- open: false,
30
- entity: "Lorem ipsum"
31
- }
32
- };
@@ -1,6 +0,0 @@
1
- import AntDialog from '../AntDialog.vue';
2
- import { type Meta, type StoryObj } from '@storybook/vue3';
3
- declare const meta: Meta<typeof AntDialog>;
4
- export default meta;
5
- type Story = StoryObj<typeof AntDialog>;
6
- export declare const Docs: Story;
@@ -1,60 +0,0 @@
1
- import AntDialog from "../AntDialog.vue";
2
- import AntButton from "../../buttons/AntButton.vue";
3
- import { InputState } from "../../../enums/index.mjs";
4
- const meta = {
5
- title: "Components/Dialogs/Dialog",
6
- component: AntDialog,
7
- parameters: { controls: { sort: "requiredFirst" } },
8
- decorators: [() => ({ template: '<div class="border border-dashed border-neutral-300"><story/></div>' })],
9
- argTypes: {
10
- state: {
11
- control: { type: "select" },
12
- options: Object.values(InputState)
13
- },
14
- title: {
15
- control: "text",
16
- table: { type: { summary: "string|null" } }
17
- }
18
- }
19
- };
20
- export default meta;
21
- export const Docs = {
22
- render: (args) => ({
23
- components: { AntDialog, AntButton },
24
- setup() {
25
- return { args };
26
- },
27
- template: `
28
- <div
29
- class="h-96 flex items-center justify-center relative"
30
- >
31
- <div class="absolute inset-0">
32
- Lorem ipsum dolor sit amet, consetetur sadipscing elitr, <br/>
33
- sed diam nonumy eirmod tempor invidunt <br/>
34
- ut labore et dolore magna aliquyam erat, <br/>
35
- sed diam voluptua. At vero eos et accusam et <br/>
36
- justo duo dolores et ea rebum. Stet clita kasd
37
- </div>
38
-
39
- <div class="absolute bottom-0 right-0">
40
- Lorem ipsum dolor sit amet, consetetur sadipscing elitr, <br/>
41
- sed diam nonumy eirmod tempor invidunt <br/>
42
- ut labore et dolore magna aliquyam erat, <br/>
43
- sed diam voluptua. At vero eos et accusam et <br/>
44
- justo duo dolores et ea rebum. Stet clita kasd
45
- </div>
46
-
47
- <AntButton @click="args.open = true" state="primary">Open Dialog</AntButton>
48
-
49
- <AntDialog v-bind="args" v-model:open="args.open">
50
- Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et
51
- dolore
52
- </AntDialog>
53
- </div>
54
- `
55
- }),
56
- args: {
57
- open: false,
58
- title: "Lorem ipsum dolor"
59
- }
60
- };