@nuxt/ui 3.0.0-alpha.9 → 3.0.0-beta.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 (289) hide show
  1. package/.nuxt/ui/accordion.ts +2 -2
  2. package/.nuxt/ui/alert.ts +122 -95
  3. package/.nuxt/ui/avatar-group.ts +14 -2
  4. package/.nuxt/ui/avatar.ts +16 -4
  5. package/.nuxt/ui/badge.ts +139 -93
  6. package/.nuxt/ui/breadcrumb.ts +5 -5
  7. package/.nuxt/ui/button-group.ts +13 -0
  8. package/.nuxt/ui/button.ts +167 -136
  9. package/.nuxt/ui/calendar.ts +103 -0
  10. package/.nuxt/ui/card.ts +27 -1
  11. package/.nuxt/ui/carousel.ts +7 -5
  12. package/.nuxt/ui/checkbox.ts +45 -27
  13. package/.nuxt/ui/chip.ts +44 -15
  14. package/.nuxt/ui/color-picker.ts +47 -0
  15. package/.nuxt/ui/command-palette.ts +28 -18
  16. package/.nuxt/ui/container.ts +1 -1
  17. package/.nuxt/ui/context-menu.ts +64 -46
  18. package/.nuxt/ui/drawer.ts +83 -15
  19. package/.nuxt/ui/dropdown-menu.ts +65 -47
  20. package/.nuxt/ui/form-field.ts +15 -7
  21. package/.nuxt/ui/index.ts +5 -1
  22. package/.nuxt/ui/input-menu.ts +150 -116
  23. package/.nuxt/ui/input-number.ts +102 -71
  24. package/.nuxt/ui/input.ts +111 -76
  25. package/.nuxt/ui/kbd.ts +18 -6
  26. package/.nuxt/ui/link.ts +3 -3
  27. package/.nuxt/ui/modal.ts +8 -7
  28. package/.nuxt/ui/navigation-menu.ts +244 -131
  29. package/.nuxt/ui/pin-input.ts +77 -51
  30. package/.nuxt/ui/popover.ts +2 -2
  31. package/.nuxt/ui/progress.ts +111 -72
  32. package/.nuxt/ui/radio-group.ts +45 -22
  33. package/.nuxt/ui/select-menu.ts +122 -86
  34. package/.nuxt/ui/select.ts +120 -84
  35. package/.nuxt/ui/separator.ts +60 -31
  36. package/.nuxt/ui/skeleton.ts +1 -1
  37. package/.nuxt/ui/slideover.ts +17 -9
  38. package/.nuxt/ui/slider.ts +61 -38
  39. package/.nuxt/ui/stepper.ts +202 -0
  40. package/.nuxt/ui/switch.ts +40 -22
  41. package/.nuxt/ui/table.ts +48 -31
  42. package/.nuxt/ui/tabs.ts +100 -72
  43. package/.nuxt/ui/textarea.ts +111 -76
  44. package/.nuxt/ui/toast.ts +53 -33
  45. package/.nuxt/ui/toaster.ts +31 -15
  46. package/.nuxt/ui/tooltip.ts +2 -2
  47. package/.nuxt/ui/tree.ts +154 -0
  48. package/.nuxt/ui.css +92 -0
  49. package/README.md +19 -8
  50. package/cli/commands/make/component.mjs +12 -0
  51. package/cli/package.json +2 -2
  52. package/cli/templates.mjs +27 -22
  53. package/dist/module.cjs +9 -171
  54. package/dist/module.d.cts +5 -15
  55. package/dist/module.d.mts +5 -15
  56. package/dist/module.d.ts +5 -15
  57. package/dist/module.json +2 -2
  58. package/dist/module.mjs +12 -168
  59. package/dist/runtime/components/Accordion.vue +8 -39
  60. package/dist/runtime/components/Alert.vue +22 -21
  61. package/dist/runtime/components/App.vue +9 -15
  62. package/dist/runtime/components/Avatar.vue +33 -21
  63. package/dist/runtime/components/AvatarGroup.vue +5 -7
  64. package/dist/runtime/components/Badge.vue +10 -8
  65. package/dist/runtime/components/Breadcrumb.vue +5 -31
  66. package/dist/runtime/components/Button.vue +5 -8
  67. package/dist/runtime/components/ButtonGroup.vue +5 -7
  68. package/dist/runtime/components/Calendar.vue +194 -0
  69. package/dist/runtime/components/Card.vue +10 -9
  70. package/dist/runtime/components/Carousel.vue +15 -10
  71. package/dist/runtime/components/Checkbox.vue +32 -38
  72. package/dist/runtime/components/Chip.vue +6 -8
  73. package/dist/runtime/components/Collapsible.vue +10 -11
  74. package/dist/runtime/components/ColorPicker.vue +297 -0
  75. package/dist/runtime/components/CommandPalette.vue +111 -97
  76. package/dist/runtime/components/Container.vue +4 -7
  77. package/dist/runtime/components/ContextMenu.vue +16 -69
  78. package/dist/runtime/components/ContextMenuContent.vue +12 -10
  79. package/dist/runtime/components/Drawer.vue +23 -12
  80. package/dist/runtime/components/DropdownMenu.vue +18 -59
  81. package/dist/runtime/components/DropdownMenuContent.vue +12 -10
  82. package/dist/runtime/components/Form.vue +65 -34
  83. package/dist/runtime/components/FormField.vue +22 -13
  84. package/dist/runtime/components/Icon.vue +1 -1
  85. package/dist/runtime/components/Input.vue +15 -7
  86. package/dist/runtime/components/InputMenu.vue +95 -104
  87. package/dist/runtime/components/InputNumber.vue +14 -9
  88. package/dist/runtime/components/Kbd.vue +5 -6
  89. package/dist/runtime/components/Link.vue +5 -8
  90. package/dist/runtime/components/LinkBase.vue +1 -1
  91. package/dist/runtime/components/Modal.vue +51 -38
  92. package/dist/runtime/components/NavigationMenu.vue +129 -114
  93. package/dist/runtime/components/OverlayProvider.vue +29 -0
  94. package/dist/runtime/components/Pagination.vue +6 -9
  95. package/dist/runtime/components/PinInput.vue +10 -11
  96. package/dist/runtime/components/Popover.vue +16 -18
  97. package/dist/runtime/components/Progress.vue +28 -12
  98. package/dist/runtime/components/RadioGroup.vue +9 -12
  99. package/dist/runtime/components/Select.vue +60 -34
  100. package/dist/runtime/components/SelectMenu.vue +160 -165
  101. package/dist/runtime/components/Separator.vue +6 -5
  102. package/dist/runtime/components/Skeleton.vue +4 -7
  103. package/dist/runtime/components/Slideover.vue +51 -37
  104. package/dist/runtime/components/Slider.vue +8 -7
  105. package/dist/runtime/components/Stepper.vue +170 -0
  106. package/dist/runtime/components/Switch.vue +19 -23
  107. package/dist/runtime/components/Table.vue +146 -31
  108. package/dist/runtime/components/Tabs.vue +12 -31
  109. package/dist/runtime/components/Textarea.vue +17 -8
  110. package/dist/runtime/components/Toast.vue +36 -25
  111. package/dist/runtime/components/Toaster.vue +10 -11
  112. package/dist/runtime/components/Tooltip.vue +9 -12
  113. package/dist/runtime/components/Tree.vue +196 -0
  114. package/dist/runtime/composables/defineShortcuts.d.ts +1 -1
  115. package/dist/runtime/composables/defineShortcuts.js +2 -2
  116. package/dist/runtime/composables/useFormField.d.ts +7 -3
  117. package/dist/runtime/composables/useFormField.js +18 -8
  118. package/dist/runtime/composables/useLocale.js +1 -1
  119. package/dist/runtime/composables/useOverlay.d.ts +30 -0
  120. package/dist/runtime/composables/useOverlay.js +71 -0
  121. package/dist/runtime/composables/useToast.d.ts +4 -3
  122. package/dist/runtime/composables/useToast.js +20 -6
  123. package/dist/runtime/index.css +1 -1
  124. package/dist/runtime/keyframes.css +1 -1
  125. package/dist/runtime/locale/ar.js +9 -1
  126. package/dist/runtime/locale/az.js +54 -0
  127. package/dist/runtime/locale/bn.js +54 -0
  128. package/dist/runtime/locale/cs.js +9 -1
  129. package/dist/runtime/locale/da.d.ts +2 -0
  130. package/dist/runtime/locale/da.js +54 -0
  131. package/dist/runtime/locale/de.js +11 -3
  132. package/dist/runtime/locale/el.d.ts +2 -0
  133. package/dist/runtime/locale/el.js +54 -0
  134. package/dist/runtime/locale/en.js +9 -1
  135. package/dist/runtime/locale/es.js +9 -1
  136. package/dist/runtime/locale/et.d.ts +2 -0
  137. package/dist/runtime/locale/et.js +54 -0
  138. package/dist/runtime/locale/fa_ir.js +9 -1
  139. package/dist/runtime/locale/fi.d.ts +2 -0
  140. package/dist/runtime/locale/fi.js +54 -0
  141. package/dist/runtime/locale/fr.js +9 -1
  142. package/dist/runtime/locale/he.d.ts +2 -0
  143. package/dist/runtime/locale/he.js +53 -0
  144. package/dist/runtime/locale/hi.d.ts +2 -0
  145. package/dist/runtime/locale/hi.js +54 -0
  146. package/dist/runtime/locale/hu.d.ts +2 -0
  147. package/dist/runtime/locale/hu.js +54 -0
  148. package/dist/runtime/locale/id.d.ts +2 -0
  149. package/dist/runtime/locale/id.js +54 -0
  150. package/dist/runtime/locale/index.d.ts +25 -3
  151. package/dist/runtime/locale/index.js +25 -3
  152. package/dist/runtime/locale/it.js +9 -1
  153. package/dist/runtime/locale/ja.d.ts +2 -0
  154. package/dist/runtime/locale/ja.js +54 -0
  155. package/dist/runtime/locale/km.d.ts +2 -0
  156. package/dist/runtime/locale/km.js +54 -0
  157. package/dist/runtime/locale/ko.d.ts +2 -0
  158. package/dist/runtime/locale/ko.js +54 -0
  159. package/dist/runtime/locale/nb_no.d.ts +2 -0
  160. package/dist/runtime/locale/nb_no.js +54 -0
  161. package/dist/runtime/locale/nl.d.ts +2 -0
  162. package/dist/runtime/locale/nl.js +54 -0
  163. package/dist/runtime/locale/pl.js +9 -1
  164. package/dist/runtime/locale/pt.d.ts +2 -0
  165. package/dist/runtime/locale/pt.js +54 -0
  166. package/dist/runtime/locale/pt_br.d.ts +2 -0
  167. package/dist/runtime/locale/pt_br.js +54 -0
  168. package/dist/runtime/locale/ru.js +9 -1
  169. package/dist/runtime/locale/sk.d.ts +2 -0
  170. package/dist/runtime/locale/sk.js +54 -0
  171. package/dist/runtime/locale/sv.d.ts +2 -0
  172. package/dist/runtime/locale/sv.js +54 -0
  173. package/dist/runtime/locale/th.d.ts +2 -0
  174. package/dist/runtime/locale/th.js +54 -0
  175. package/dist/runtime/locale/tr.d.ts +2 -0
  176. package/dist/runtime/locale/tr.js +54 -0
  177. package/dist/runtime/locale/uk.d.ts +2 -0
  178. package/dist/runtime/locale/uk.js +54 -0
  179. package/dist/runtime/locale/vi.d.ts +2 -0
  180. package/dist/runtime/locale/vi.js +54 -0
  181. package/dist/runtime/locale/zh_cn.d.ts +2 -0
  182. package/dist/runtime/locale/{zh_hans.js → zh_cn.js} +10 -2
  183. package/dist/runtime/locale/zh_tw.d.ts +2 -0
  184. package/dist/runtime/locale/{zh_hant.js → zh_tw.js} +16 -8
  185. package/dist/runtime/plugins/colors.js +8 -5
  186. package/dist/runtime/types/form.d.ts +24 -15
  187. package/dist/runtime/types/form.js +2 -2
  188. package/dist/runtime/types/index.d.ts +5 -0
  189. package/dist/runtime/types/index.js +5 -0
  190. package/dist/runtime/types/locale.d.ts +8 -0
  191. package/dist/runtime/types/utils.d.ts +7 -3
  192. package/dist/runtime/utils/form.d.ts +4 -4
  193. package/dist/runtime/utils/form.js +6 -8
  194. package/dist/runtime/utils/index.d.ts +1 -1
  195. package/dist/runtime/utils/index.js +15 -2
  196. package/dist/runtime/utils/tv.d.ts +1 -0
  197. package/dist/runtime/utils/tv.js +4 -0
  198. package/dist/runtime/vue/components/Icon.vue +2 -2
  199. package/dist/runtime/vue/components/Link.vue +87 -23
  200. package/dist/runtime/vue/composables/useAppConfig.d.ts +1 -0
  201. package/dist/runtime/vue/composables/useAppConfig.js +2 -0
  202. package/dist/runtime/vue/plugins/head.d.ts +1 -1
  203. package/dist/runtime/vue/plugins/head.js +3 -3
  204. package/dist/runtime/vue/stubs.d.ts +19 -0
  205. package/dist/runtime/vue/stubs.js +37 -0
  206. package/dist/shared/{ui.d52SSCwA.mjs → ui.DSPu6Y8j.mjs} +905 -401
  207. package/dist/shared/{ui.BPnAe4QS.cjs → ui.DfK2RX6G.cjs} +908 -401
  208. package/dist/unplugin.cjs +62 -26
  209. package/dist/unplugin.d.cts +13 -1
  210. package/dist/unplugin.d.mts +13 -1
  211. package/dist/unplugin.d.ts +13 -1
  212. package/dist/unplugin.mjs +61 -25
  213. package/dist/vite.cjs +3 -2
  214. package/dist/vite.d.cts +2 -0
  215. package/dist/vite.d.mts +2 -0
  216. package/dist/vite.d.ts +2 -0
  217. package/dist/vite.mjs +3 -2
  218. package/package.json +103 -67
  219. package/dist/chunks/component-meta.cjs +0 -77249
  220. package/dist/chunks/component-meta.mjs +0 -77247
  221. package/dist/client/devtools/200.html +0 -1
  222. package/dist/client/devtools/404.html +0 -1
  223. package/dist/client/devtools/_fonts/rP2Wp2ywxg089UriCZaSExd86J3t9jz86MvyyKK58UfivUw4aw-SK92LTmKP0.woff2 +0 -0
  224. package/dist/client/devtools/_fonts/rP2Wp2ywxg089UriCZaSExd86J3t9jz86MvyyKy58UfivUw-9uYm8d48E4.woff2 +0 -0
  225. package/dist/client/devtools/_fonts/rP2Yp2ywxg089UriI5-g4vlH9VoD8Cmcqbu0-K6z9mXg-VNw7NHvqnp.woff2 +0 -0
  226. package/dist/client/devtools/_fonts/rP2Yp2ywxg089UriI5-g4vlH9VoD8Cmcqbu6-K6z9mXgjU0-EkYdMs3MAX.woff2 +0 -0
  227. package/dist/client/devtools/_fonts/rP2rp2ywxg089UriCZaSExd86J3t9jz86Mvy4qCRAL19DksVat-7DW3w-R7n06NbhGy.woff +0 -0
  228. package/dist/client/devtools/_fonts/rP2rp2ywxg089UriCZaSExd86J3t9jz86Mvy4qCRAL19DksVat-JDG3w-leGNfkTmsj.woff +0 -0
  229. package/dist/client/devtools/_fonts/rP2rp2ywxg089UriCZaSExd86J3t9jz86Mvy4qCRAL19DksVat-JDW3w-ciElMF03ku.woff +0 -0
  230. package/dist/client/devtools/_fonts/rP2rp2ywxg089UriCZaSExd86J3t9jz86Mvy4qCRAL19DksVat8JCm3w-sB722Uoa0f.woff +0 -0
  231. package/dist/client/devtools/_fonts/rP2rp2ywxg089UriCZaSExd86J3t9jz86Mvy4qCRAL19DksVat8JDW3w-PBDI1JDjwV.woff +0 -0
  232. package/dist/client/devtools/_fonts/rP2rp2ywxg089UriCZaSExd86J3t9jz86Mvy4qCRAL19DksVat8gCm3w-0q1hqVn09O.woff +0 -0
  233. package/dist/client/devtools/_fonts/rP2rp2ywxg089UriCZaSExd86J3t9jz86Mvy4qCRAL19DksVat9XCm3w-ByvzuLy2fa.woff +0 -0
  234. package/dist/client/devtools/_fonts/rP2rp2ywxg089UriCZaSExd86J3t9jz86Mvy4qCRAL19DksVat9uCm3w-5TKCIs6EEw.woff +0 -0
  235. package/dist/client/devtools/_fonts/rP2rp2ywxg089UriCZaSExd86J3t9jz86Mvy4qCRAL19DksVat_XDW3w-r2swRDGfn2.woff +0 -0
  236. package/dist/client/devtools/_fonts/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwAC5thTQ-ldB60l5U8r.woff +0 -0
  237. package/dist/client/devtools/_fonts/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwAIpthTQ-wbFKGFDrgo.woff +0 -0
  238. package/dist/client/devtools/_fonts/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwAIpxhTQ-LLUBv5jskj.woff +0 -0
  239. package/dist/client/devtools/_fonts/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwARZthTQ-F71RdTRbNg.woff +0 -0
  240. package/dist/client/devtools/_fonts/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwA_JxhTQ-6nh65gZkc0.woff +0 -0
  241. package/dist/client/devtools/_fonts/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwAfJthTQ-aMoWEJLmTt.woff +0 -0
  242. package/dist/client/devtools/_fonts/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwAkJxhTQ-WMBvmLOgKm.woff +0 -0
  243. package/dist/client/devtools/_fonts/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwAop1hTQ-utGC2hnWq2.woff +0 -0
  244. package/dist/client/devtools/_fonts/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwAopxhTQ-YpyTieVa5B.woff +0 -0
  245. package/dist/client/devtools/_nuxt/BDC8ywlR.js +0 -1
  246. package/dist/client/devtools/_nuxt/BT004Uxp.js +0 -53
  247. package/dist/client/devtools/_nuxt/C1H2Soz3.js +0 -1
  248. package/dist/client/devtools/_nuxt/builds/latest.json +0 -1
  249. package/dist/client/devtools/_nuxt/builds/meta/f98c13ea-d751-4b37-8ce3-94e99708745f.json +0 -1
  250. package/dist/client/devtools/_nuxt/entry.Bx6WJjrx.css +0 -1
  251. package/dist/client/devtools/_nuxt/error-404.Cq4qshcf.css +0 -1
  252. package/dist/client/devtools/_nuxt/error-500.ax1aM34m.css +0 -1
  253. package/dist/client/devtools/favicon.svg +0 -1
  254. package/dist/client/devtools/index.html +0 -1
  255. package/dist/devtools/runtime/DevtoolsRenderer.vue +0 -53
  256. package/dist/devtools/runtime/examples/AvatarGroupExample.vue +0 -7
  257. package/dist/devtools/runtime/examples/ButtonGroupExample.vue +0 -8
  258. package/dist/devtools/runtime/examples/CardExample.vue +0 -13
  259. package/dist/devtools/runtime/examples/CarouselExample.vue +0 -13
  260. package/dist/devtools/runtime/examples/ChipExample.vue +0 -5
  261. package/dist/devtools/runtime/examples/CollapsibleExample.vue +0 -8
  262. package/dist/devtools/runtime/examples/CommandPaletteExample.vue +0 -29
  263. package/dist/devtools/runtime/examples/ContainerExample.vue +0 -5
  264. package/dist/devtools/runtime/examples/ContextMenuExample.vue +0 -5
  265. package/dist/devtools/runtime/examples/DrawerExample.vue +0 -8
  266. package/dist/devtools/runtime/examples/DropdownMenuExample.vue +0 -5
  267. package/dist/devtools/runtime/examples/FormExample.vue +0 -30
  268. package/dist/devtools/runtime/examples/FormFieldExample.vue +0 -5
  269. package/dist/devtools/runtime/examples/LinkExample.vue +0 -5
  270. package/dist/devtools/runtime/examples/ModalExample.vue +0 -8
  271. package/dist/devtools/runtime/examples/PopoverExample.vue +0 -8
  272. package/dist/devtools/runtime/examples/SkeletonExample.vue +0 -3
  273. package/dist/devtools/runtime/examples/SlideoverExample.vue +0 -8
  274. package/dist/devtools/runtime/examples/ToasterExample.vue +0 -11
  275. package/dist/devtools/runtime/examples/TooltipExample.vue +0 -5
  276. package/dist/runtime/components/ModalProvider.vue +0 -12
  277. package/dist/runtime/components/SlideoverProvider.vue +0 -12
  278. package/dist/runtime/composables/extendDevtoolsMeta.d.ts +0 -7
  279. package/dist/runtime/composables/extendDevtoolsMeta.js +0 -2
  280. package/dist/runtime/composables/useModal.d.ts +0 -17
  281. package/dist/runtime/composables/useModal.js +0 -46
  282. package/dist/runtime/composables/useSlideover.d.ts +0 -17
  283. package/dist/runtime/composables/useSlideover.js +0 -46
  284. package/dist/runtime/plugins/modal.d.ts +0 -2
  285. package/dist/runtime/plugins/modal.js +0 -10
  286. package/dist/runtime/plugins/slideover.d.ts +0 -2
  287. package/dist/runtime/plugins/slideover.js +0 -10
  288. /package/dist/runtime/locale/{zh_hans.d.ts → az.d.ts} +0 -0
  289. /package/dist/runtime/locale/{zh_hant.d.ts → bn.d.ts} +0 -0
@@ -0,0 +1,54 @@
1
+ import { defineLocale } from "../composables/defineLocale.js";
2
+ export default defineLocale({
3
+ name: "Portugu\xEAs (Brasil)",
4
+ code: "pt-BR",
5
+ messages: {
6
+ inputMenu: {
7
+ noMatch: "Nenhum dado correspondente",
8
+ noData: "Nenhum dado",
9
+ create: 'Criar "{label}"'
10
+ },
11
+ calendar: {
12
+ prevYear: "Ano anterior",
13
+ nextYear: "Pr\xF3ximo ano",
14
+ prevMonth: "M\xEAs anterior",
15
+ nextMonth: "Pr\xF3ximo m\xEAs"
16
+ },
17
+ inputNumber: {
18
+ increment: "Incrementar",
19
+ decrement: "Decrementar"
20
+ },
21
+ commandPalette: {
22
+ placeholder: "Digite um comando ou pesquise...",
23
+ noMatch: "Nenhum dado correspondente",
24
+ noData: "Nenhum dado",
25
+ close: "Fechar"
26
+ },
27
+ selectMenu: {
28
+ noMatch: "Nenhum dado correspondente",
29
+ noData: "Nenhum dado",
30
+ create: 'Criar "{label}"',
31
+ search: "Pesquisar..."
32
+ },
33
+ toast: {
34
+ close: "Fechar"
35
+ },
36
+ carousel: {
37
+ prev: "Anterior",
38
+ next: "Pr\xF3ximo",
39
+ goto: "Ir para a slide {slide}"
40
+ },
41
+ modal: {
42
+ close: "Fechar"
43
+ },
44
+ slideover: {
45
+ close: "Fechar"
46
+ },
47
+ alert: {
48
+ close: "Fechar"
49
+ },
50
+ table: {
51
+ noData: "Nenhum dado"
52
+ }
53
+ }
54
+ });
@@ -8,11 +8,18 @@ export default defineLocale({
8
8
  noData: "\u041D\u0435\u0442 \u0434\u0430\u043D\u043D\u044B\u0445",
9
9
  create: '\u0421\u043E\u0437\u0434\u0430\u0442\u044C "{label}"'
10
10
  },
11
+ calendar: {
12
+ prevYear: "\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0438\u0439 \u0433\u043E\u0434",
13
+ nextYear: "\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0439 \u0433\u043E\u0434",
14
+ prevMonth: "\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0438\u0439 \u043C\u0435\u0441\u044F\u0446",
15
+ nextMonth: "\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0439 \u043C\u0435\u0441\u044F\u0446"
16
+ },
11
17
  inputNumber: {
12
18
  increment: "\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C",
13
19
  decrement: "\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C"
14
20
  },
15
21
  commandPalette: {
22
+ placeholder: "\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043A\u043E\u043C\u0430\u043D\u0434\u0443 \u0438\u043B\u0438 \u0432\u044B\u043F\u043E\u043B\u043D\u0438\u0442\u0435 \u043F\u043E\u0438\u0441\u043A...",
16
23
  noMatch: "\u0421\u043E\u0432\u043F\u0430\u0434\u0435\u043D\u0438\u0439 \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u043E",
17
24
  noData: "\u041D\u0435\u0442 \u0434\u0430\u043D\u043D\u044B\u0445",
18
25
  close: "\u0417\u0430\u043A\u0440\u044B\u0442\u044C"
@@ -20,7 +27,8 @@ export default defineLocale({
20
27
  selectMenu: {
21
28
  noMatch: "\u0421\u043E\u0432\u043F\u0430\u0434\u0435\u043D\u0438\u0439 \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u043E",
22
29
  noData: "\u041D\u0435\u0442 \u0434\u0430\u043D\u043D\u044B\u0445",
23
- create: '\u0421\u043E\u0437\u0434\u0430\u0442\u044C "{label}"'
30
+ create: '\u0421\u043E\u0437\u0434\u0430\u0442\u044C "{label}"',
31
+ search: "\u041F\u043E\u0438\u0441\u043A..."
24
32
  },
25
33
  toast: {
26
34
  close: "\u0417\u0430\u043A\u0440\u044B\u0442\u044C"
@@ -0,0 +1,2 @@
1
+ declare const _default: import("../types").Locale;
2
+ export default _default;
@@ -0,0 +1,54 @@
1
+ import { defineLocale } from "../composables/defineLocale.js";
2
+ export default defineLocale({
3
+ name: "Sloven\u010Dina",
4
+ code: "sk",
5
+ messages: {
6
+ inputMenu: {
7
+ noMatch: "\u017Diadna zhoda",
8
+ noData: "\u017Diadne d\xE1ta",
9
+ create: 'Vytvori\u0165 "{label}"'
10
+ },
11
+ calendar: {
12
+ prevYear: "Predch\xE1dzaj\xFAci rok",
13
+ nextYear: "Nasleduj\xFAci rok",
14
+ prevMonth: "Predch\xE1dzaj\xFAci mesiac",
15
+ nextMonth: "Nasleduj\xFAci mesiac"
16
+ },
17
+ inputNumber: {
18
+ increment: "Zv\xFD\u0161i\u0165",
19
+ decrement: "Zn\xED\u017Ei\u0165"
20
+ },
21
+ commandPalette: {
22
+ placeholder: "Zadajte pr\xEDkaz alebo vyh\u013Eadajte...",
23
+ noMatch: "\u017Diadna zhoda",
24
+ noData: "\u017Diadne d\xE1ta",
25
+ close: "Zatvori\u0165"
26
+ },
27
+ selectMenu: {
28
+ noMatch: "\u017Diadna zhoda",
29
+ noData: "\u017Diadne d\xE1ta",
30
+ create: 'Vytvori\u0165 "{label}"',
31
+ search: "H\u013Eada\u0165..."
32
+ },
33
+ toast: {
34
+ close: "Zatvori\u0165"
35
+ },
36
+ carousel: {
37
+ prev: "Predch\xE1dzaj\xFAci",
38
+ next: "Nasleduj\xFAci",
39
+ goto: "Prejs\u0165 na {slide}"
40
+ },
41
+ modal: {
42
+ close: "Zatvori\u0165"
43
+ },
44
+ slideover: {
45
+ close: "Zatvori\u0165"
46
+ },
47
+ alert: {
48
+ close: "Zatvori\u0165"
49
+ },
50
+ table: {
51
+ noData: "\u017Diadne d\xE1ta"
52
+ }
53
+ }
54
+ });
@@ -0,0 +1,2 @@
1
+ declare const _default: import("../types").Locale;
2
+ export default _default;
@@ -0,0 +1,54 @@
1
+ import { defineLocale } from "../composables/defineLocale.js";
2
+ export default defineLocale({
3
+ name: "Svenska",
4
+ code: "sv",
5
+ messages: {
6
+ inputMenu: {
7
+ noMatch: "Inga matchande data",
8
+ noData: "Inga data",
9
+ create: 'Skapa "{label}"'
10
+ },
11
+ calendar: {
12
+ prevYear: "F\xF6reg\xE5ende \xE5r",
13
+ nextYear: "N\xE4sta \xE5r",
14
+ prevMonth: "F\xF6reg\xE5ende m\xE5nad",
15
+ nextMonth: "N\xE4sta m\xE5nad"
16
+ },
17
+ inputNumber: {
18
+ increment: "\xD6ka",
19
+ decrement: "Minska"
20
+ },
21
+ commandPalette: {
22
+ placeholder: "Skriv ett kommando eller s\xF6k...",
23
+ noMatch: "Inga matchande data",
24
+ noData: "Inga data",
25
+ close: "St\xE4ng"
26
+ },
27
+ selectMenu: {
28
+ noMatch: "Inga matchande data",
29
+ noData: "Inga data",
30
+ create: 'Skapa "{label}"',
31
+ search: "S\xF6k..."
32
+ },
33
+ toast: {
34
+ close: "St\xE4ng"
35
+ },
36
+ carousel: {
37
+ prev: "F\xF6reg\xE5ende",
38
+ next: "N\xE4sta",
39
+ goto: "G\xE5 till {slide}"
40
+ },
41
+ modal: {
42
+ close: "St\xE4ng"
43
+ },
44
+ slideover: {
45
+ close: "St\xE4ng"
46
+ },
47
+ alert: {
48
+ close: "St\xE4ng"
49
+ },
50
+ table: {
51
+ noData: "Inga data"
52
+ }
53
+ }
54
+ });
@@ -0,0 +1,2 @@
1
+ declare const _default: import("../types").Locale;
2
+ export default _default;
@@ -0,0 +1,54 @@
1
+ import { defineLocale } from "../composables/defineLocale.js";
2
+ export default defineLocale({
3
+ name: "\u0E44\u0E17\u0E22",
4
+ code: "th",
5
+ messages: {
6
+ inputMenu: {
7
+ noMatch: "\u0E44\u0E21\u0E48\u0E1E\u0E1A\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E15\u0E23\u0E07\u0E01\u0E31\u0E19",
8
+ noData: "\u0E44\u0E21\u0E48\u0E21\u0E35\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25",
9
+ create: '\u0E2A\u0E23\u0E49\u0E32\u0E07 "{label}"'
10
+ },
11
+ calendar: {
12
+ prevYear: "\u0E1B\u0E35\u0E01\u0E48\u0E2D\u0E19\u0E2B\u0E19\u0E49\u0E32",
13
+ nextYear: "\u0E1B\u0E35\u0E16\u0E31\u0E14\u0E44\u0E1B",
14
+ prevMonth: "\u0E40\u0E14\u0E37\u0E2D\u0E19\u0E01\u0E48\u0E2D\u0E19\u0E2B\u0E19\u0E49\u0E32",
15
+ nextMonth: "\u0E40\u0E14\u0E37\u0E2D\u0E19\u0E16\u0E31\u0E14\u0E44\u0E1B"
16
+ },
17
+ inputNumber: {
18
+ increment: "\u0E40\u0E1E\u0E34\u0E48\u0E21",
19
+ decrement: "\u0E25\u0E14"
20
+ },
21
+ commandPalette: {
22
+ placeholder: "\u0E1E\u0E34\u0E21\u0E1E\u0E4C\u0E04\u0E33\u0E2A\u0E31\u0E48\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E04\u0E49\u0E19\u0E2B\u0E32...",
23
+ noMatch: "\u0E44\u0E21\u0E48\u0E1E\u0E1A\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E15\u0E23\u0E07\u0E01\u0E31\u0E19",
24
+ noData: "\u0E44\u0E21\u0E48\u0E21\u0E35\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25",
25
+ close: "\u0E1B\u0E34\u0E14"
26
+ },
27
+ selectMenu: {
28
+ noMatch: "\u0E44\u0E21\u0E48\u0E1E\u0E1A\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E15\u0E23\u0E07\u0E01\u0E31\u0E19",
29
+ noData: "\u0E44\u0E21\u0E48\u0E21\u0E35\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25",
30
+ create: '\u0E2A\u0E23\u0E49\u0E32\u0E07 "{label}"',
31
+ search: "\u0E04\u0E49\u0E19\u0E2B\u0E32..."
32
+ },
33
+ toast: {
34
+ close: "\u0E1B\u0E34\u0E14"
35
+ },
36
+ carousel: {
37
+ prev: "\u0E22\u0E49\u0E2D\u0E19\u0E01\u0E25\u0E31\u0E1A",
38
+ next: "\u0E16\u0E31\u0E14\u0E44\u0E1B",
39
+ goto: "\u0E44\u0E1B\u0E17\u0E35\u0E48 {slide}"
40
+ },
41
+ modal: {
42
+ close: "\u0E1B\u0E34\u0E14"
43
+ },
44
+ slideover: {
45
+ close: "\u0E1B\u0E34\u0E14"
46
+ },
47
+ alert: {
48
+ close: "\u0E1B\u0E34\u0E14"
49
+ },
50
+ table: {
51
+ noData: "\u0E44\u0E21\u0E48\u0E21\u0E35\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25"
52
+ }
53
+ }
54
+ });
@@ -0,0 +1,2 @@
1
+ declare const _default: import("../types").Locale;
2
+ export default _default;
@@ -0,0 +1,54 @@
1
+ import { defineLocale } from "../composables/defineLocale.js";
2
+ export default defineLocale({
3
+ name: "T\xFCrk\xE7e",
4
+ code: "tr",
5
+ messages: {
6
+ inputMenu: {
7
+ noMatch: "E\u015Fle\u015Fen veri yok",
8
+ noData: "Veri yok",
9
+ create: '"{label}" olu\u015Ftur'
10
+ },
11
+ calendar: {
12
+ prevYear: "\xD6nceki y\u0131l",
13
+ nextYear: "Sonraki y\u0131l",
14
+ prevMonth: "\xD6nceki ay",
15
+ nextMonth: "Sonraki ay"
16
+ },
17
+ inputNumber: {
18
+ increment: "Artt\u0131r",
19
+ decrement: "Azalt"
20
+ },
21
+ commandPalette: {
22
+ placeholder: "Bir komut yaz\u0131n veya arama yap\u0131n...",
23
+ noMatch: "E\u015Fle\u015Fen veri yok",
24
+ noData: "Veri yok",
25
+ close: "Kapat"
26
+ },
27
+ selectMenu: {
28
+ noMatch: "E\u015Fle\u015Fen veri yok",
29
+ noData: "Veri yok",
30
+ create: '"{label}" olu\u015Ftur',
31
+ search: "Ara..."
32
+ },
33
+ toast: {
34
+ close: "Kapat"
35
+ },
36
+ carousel: {
37
+ prev: "\xD6nceki",
38
+ next: "Sonraki",
39
+ goto: "{slide}. slayda git"
40
+ },
41
+ modal: {
42
+ close: "Kapat"
43
+ },
44
+ slideover: {
45
+ close: "Kapat"
46
+ },
47
+ alert: {
48
+ close: "Kapat"
49
+ },
50
+ table: {
51
+ noData: "Veri yok"
52
+ }
53
+ }
54
+ });
@@ -0,0 +1,2 @@
1
+ declare const _default: import("../types").Locale;
2
+ export default _default;
@@ -0,0 +1,54 @@
1
+ import { defineLocale } from "../composables/defineLocale.js";
2
+ export default defineLocale({
3
+ name: "\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430",
4
+ code: "uk",
5
+ messages: {
6
+ inputMenu: {
7
+ noMatch: "\u0417\u0431\u0456\u0433\u0456\u0432 \u043D\u0435 \u0437\u043D\u0430\u0439\u0434\u0435\u043D\u043E",
8
+ noData: "\u041D\u0435\u043C\u0430\u0454 \u0434\u0430\u043D\u0438\u0445",
9
+ create: '\u0421\u0442\u0432\u043E\u0440\u0438\u0442\u0438 "{label}"'
10
+ },
11
+ calendar: {
12
+ prevYear: "\u041F\u043E\u043F\u0435\u0440\u0435\u0434\u043D\u0456\u0439 \u0440\u0456\u043A",
13
+ nextYear: "\u041D\u0430\u0441\u0442\u0443\u043F\u043D\u0438\u0439 \u0440\u0456\u043A",
14
+ prevMonth: "\u041F\u043E\u043F\u0435\u0440\u0435\u0434\u043D\u0456\u0439 \u043C\u0456\u0441\u044F\u0446\u044C",
15
+ nextMonth: "\u041D\u0430\u0441\u0442\u0443\u043F\u043D\u0438\u0439 \u043C\u0456\u0441\u044F\u0446\u044C"
16
+ },
17
+ inputNumber: {
18
+ increment: "\u0417\u0431\u0456\u043B\u044C\u0448\u0438\u0442\u0438",
19
+ decrement: "\u0417\u043C\u0435\u043D\u0448\u0438\u0442\u0438"
20
+ },
21
+ commandPalette: {
22
+ placeholder: "\u0412\u0432\u0435\u0434\u0456\u0442\u044C \u043A\u043E\u043C\u0430\u043D\u0434\u0443 \u0430\u0431\u043E \u0448\u0443\u043A\u0430\u0439\u0442\u0435...",
23
+ noMatch: "\u0417\u0431\u0456\u0433\u0456\u0432 \u043D\u0435 \u0437\u043D\u0430\u0439\u0434\u0435\u043D\u043E",
24
+ noData: "\u041D\u0435\u043C\u0430\u0454 \u0434\u0430\u043D\u0438\u0445",
25
+ close: "\u0417\u0430\u043A\u0440\u0438\u0442\u0438"
26
+ },
27
+ selectMenu: {
28
+ noMatch: "\u0417\u0431\u0456\u0433\u0456\u0432 \u043D\u0435 \u0437\u043D\u0430\u0439\u0434\u0435\u043D\u043E",
29
+ noData: "\u041D\u0435\u043C\u0430\u0454 \u0434\u0430\u043D\u0438\u0445",
30
+ create: '\u0421\u0442\u0432\u043E\u0440\u0438\u0442\u0438 "{label}"',
31
+ search: "\u041F\u043E\u0448\u0443\u043A..."
32
+ },
33
+ toast: {
34
+ close: "\u0417\u0430\u043A\u0440\u0438\u0442\u0438"
35
+ },
36
+ carousel: {
37
+ prev: "\u041D\u0430\u0437\u0430\u0434",
38
+ next: "\u0414\u0430\u043B\u0456",
39
+ goto: "\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u0434\u043E {slide}"
40
+ },
41
+ modal: {
42
+ close: "\u0417\u0430\u043A\u0440\u0438\u0442\u0438"
43
+ },
44
+ slideover: {
45
+ close: "\u0417\u0430\u043A\u0440\u0438\u0442\u0438"
46
+ },
47
+ alert: {
48
+ close: "\u0417\u0430\u043A\u0440\u0438\u0442\u0438"
49
+ },
50
+ table: {
51
+ noData: "\u041D\u0435\u043C\u0430\u0454 \u0434\u0430\u043D\u0438\u0445"
52
+ }
53
+ }
54
+ });
@@ -0,0 +1,2 @@
1
+ declare const _default: import("../types").Locale;
2
+ export default _default;
@@ -0,0 +1,54 @@
1
+ import { defineLocale } from "../composables/defineLocale.js";
2
+ export default defineLocale({
3
+ name: "Ti\u1EBFng Vi\u1EC7t",
4
+ code: "vi",
5
+ messages: {
6
+ inputMenu: {
7
+ noMatch: "Kh\xF4ng c\xF3 k\u1EBFt qu\u1EA3 ph\xF9 h\u1EE3p",
8
+ noData: "Kh\xF4ng c\xF3 d\u1EEF li\u1EC7u",
9
+ create: 'T\u1EA1o "{label}"'
10
+ },
11
+ calendar: {
12
+ prevYear: "N\u0103m tr\u01B0\u1EDBc",
13
+ nextYear: "N\u0103m sau",
14
+ prevMonth: "Th\xE1ng tr\u01B0\u1EDBc",
15
+ nextMonth: "Th\xE1ng sau"
16
+ },
17
+ inputNumber: {
18
+ increment: "T\u0103ng",
19
+ decrement: "Gi\u1EA3m"
20
+ },
21
+ commandPalette: {
22
+ placeholder: "Nh\u1EADp l\u1EC7nh ho\u1EB7c t\xECm ki\u1EBFm...",
23
+ noMatch: "Kh\xF4ng c\xF3 k\u1EBFt qu\u1EA3 ph\xF9 h\u1EE3p",
24
+ noData: "Kh\xF4ng c\xF3 d\u1EEF li\u1EC7u",
25
+ close: "\u0110\xF3ng"
26
+ },
27
+ selectMenu: {
28
+ noMatch: "Kh\xF4ng c\xF3 k\u1EBFt qu\u1EA3 ph\xF9 h\u1EE3p",
29
+ noData: "Kh\xF4ng c\xF3 d\u1EEF li\u1EC7u",
30
+ create: 'T\u1EA1o "{label}"',
31
+ search: "T\xECm ki\u1EBFm..."
32
+ },
33
+ toast: {
34
+ close: "\u0110\xF3ng"
35
+ },
36
+ carousel: {
37
+ prev: "Tr\u01B0\u1EDBc",
38
+ next: "Sau",
39
+ goto: "\u0110i t\u1EDBi \xF4 {slide}"
40
+ },
41
+ modal: {
42
+ close: "\u0110\xF3ng"
43
+ },
44
+ slideover: {
45
+ close: "\u0110\xF3ng"
46
+ },
47
+ alert: {
48
+ close: "\u0110\xF3ng"
49
+ },
50
+ table: {
51
+ noData: "Kh\xF4ng c\xF3 d\u1EEF li\u1EC7u"
52
+ }
53
+ }
54
+ });
@@ -0,0 +1,2 @@
1
+ declare const _default: import("../types").Locale;
2
+ export default _default;
@@ -1,18 +1,25 @@
1
1
  import { defineLocale } from "../composables/defineLocale.js";
2
2
  export default defineLocale({
3
3
  name: "\u7B80\u4F53\u4E2D\u6587",
4
- code: "zh-Hans",
4
+ code: "zh-CN",
5
5
  messages: {
6
6
  inputMenu: {
7
7
  noMatch: "\u6CA1\u6709\u5339\u914D\u7684\u6570\u636E",
8
8
  noData: "\u6CA1\u6709\u6570\u636E",
9
9
  create: '\u521B\u5EFA "{label}"'
10
10
  },
11
+ calendar: {
12
+ prevYear: "\u53BB\u5E74",
13
+ nextYear: "\u660E\u5E74",
14
+ prevMonth: "\u4E0A\u4E2A\u6708",
15
+ nextMonth: "\u4E0B\u4E2A\u6708"
16
+ },
11
17
  inputNumber: {
12
18
  increment: "\u589E\u52A0",
13
19
  decrement: "\u51CF\u5C11"
14
20
  },
15
21
  commandPalette: {
22
+ placeholder: "\u8F93\u5165\u547D\u4EE4\u6216\u641C\u7D22...",
16
23
  noMatch: "\u6CA1\u6709\u5339\u914D\u7684\u6570\u636E",
17
24
  noData: "\u6CA1\u6709\u6570\u636E",
18
25
  close: "\u5173\u95ED"
@@ -20,7 +27,8 @@ export default defineLocale({
20
27
  selectMenu: {
21
28
  noMatch: "\u6CA1\u6709\u5339\u914D\u7684\u6570\u636E",
22
29
  noData: "\u6CA1\u6709\u6570\u636E",
23
- create: '\u521B\u5EFA "{label}"'
30
+ create: '\u521B\u5EFA "{label}"',
31
+ search: "\u641C\u7D22..."
24
32
  },
25
33
  toast: {
26
34
  close: "\u5173\u95ED"
@@ -0,0 +1,2 @@
1
+ declare const _default: import("../types").Locale;
2
+ export default _default;
@@ -1,26 +1,34 @@
1
1
  import { defineLocale } from "../composables/defineLocale.js";
2
2
  export default defineLocale({
3
- name: "\u7E41\u4F53\u4E2D\u6587",
4
- code: "zh-Hant",
3
+ name: "\u7E41\u9AD4\u4E2D\u6587",
4
+ code: "zh-TW",
5
5
  messages: {
6
6
  inputMenu: {
7
- noMatch: "\u6C92\u6709\u5339\u914D\u7684\u8CC7\u6599",
7
+ noMatch: "\u6C92\u6709\u76F8\u7B26\u7684\u8CC7\u6599",
8
8
  noData: "\u6C92\u6709\u8CC7\u6599",
9
- create: '\u5275\u5EFA "{label}"'
9
+ create: "\u5EFA\u7ACB\u300C{label}\u300D"
10
+ },
11
+ calendar: {
12
+ prevYear: "\u53BB\u5E74",
13
+ nextYear: "\u660E\u5E74",
14
+ prevMonth: "\u4E0A\u500B\u6708",
15
+ nextMonth: "\u4E0B\u500B\u6708"
10
16
  },
11
17
  inputNumber: {
12
18
  increment: "\u589E\u52A0",
13
- decrement: "\u51CF\u5C11"
19
+ decrement: "\u6E1B\u5C11"
14
20
  },
15
21
  commandPalette: {
16
- noMatch: "\u6C92\u6709\u5339\u914D\u7684\u8CC7\u6599",
22
+ placeholder: "\u8F38\u5165\u547D\u4EE4\u6216\u641C\u5C0B...",
23
+ noMatch: "\u6C92\u6709\u76F8\u7B26\u7684\u8CC7\u6599",
17
24
  noData: "\u6C92\u6709\u8CC7\u6599",
18
25
  close: "\u95DC\u9589"
19
26
  },
20
27
  selectMenu: {
21
- noMatch: "\u6C92\u6709\u5339\u914D\u7684\u8CC7\u6599",
28
+ noMatch: "\u6C92\u6709\u76F8\u7B26\u7684\u8CC7\u6599",
22
29
  noData: "\u6C92\u6709\u8CC7\u6599",
23
- create: '\u5275\u5EFA "{label}"'
30
+ create: "\u5EFA\u7ACB\u300C{label}\u300D",
31
+ search: "\u641C\u5C0B..."
24
32
  },
25
33
  toast: {
26
34
  close: "\u95DC\u9589"
@@ -5,20 +5,23 @@ export default defineNuxtPlugin(() => {
5
5
  const nuxtApp = useNuxtApp();
6
6
  const shades = [50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950];
7
7
  function generateShades(key, value) {
8
- return `${shades.map((shade) => `--ui-color-${key}-${shade}: var(--color-${value}-${shade});`).join("\n ")}`;
8
+ return `${shades.map((shade) => `--ui-color-${key}-${shade}: var(--color-${value === "neutral" ? "old-neutral" : value}-${shade});`).join("\n ")}`;
9
9
  }
10
10
  function generateColor(key, shade) {
11
11
  return `--ui-${key}: var(--ui-color-${key}-${shade});`;
12
12
  }
13
13
  const root = computed(() => {
14
14
  const { neutral, ...colors } = appConfig.ui.colors;
15
- return `:root {
15
+ return `@layer base {
16
+ :root {
16
17
  ${Object.entries(appConfig.ui.colors).map(([key, value]) => generateShades(key, value)).join("\n ")}
17
-
18
+ }
19
+ :root, .light {
18
20
  ${Object.keys(colors).map((key) => generateColor(key, 500)).join("\n ")}
19
- }
20
- .dark {
21
+ }
22
+ .dark {
21
23
  ${Object.keys(colors).map((key) => generateColor(key, 400)).join("\n ")}
24
+ }
22
25
  }`;
23
26
  });
24
27
  const headData = {
@@ -1,26 +1,31 @@
1
- import type { v1 } from '@standard-schema/spec';
2
- import type { ComputedRef, Ref } from 'vue';
1
+ import type { StandardSchemaV1 } from '@standard-schema/spec';
2
+ import type { ComputedRef, DeepReadonly, Ref } from 'vue';
3
3
  import type { ZodSchema } from 'zod';
4
4
  import type { Schema as JoiSchema } from 'joi';
5
5
  import type { ObjectSchema as YupObjectSchema } from 'yup';
6
6
  import type { GenericSchema as ValibotSchema, GenericSchemaAsync as ValibotSchemaAsync, SafeParser as ValibotSafeParser, SafeParserAsync as ValibotSafeParserAsync } from 'valibot';
7
7
  import type { GetObjectField } from './utils';
8
8
  import type { Struct as SuperstructSchema } from 'superstruct';
9
- export interface Form<T> {
9
+ export interface Form<T extends object> {
10
10
  validate(opts?: {
11
- name: string | string[];
12
- silent?: false;
11
+ name?: keyof T | (keyof T)[];
12
+ silent?: boolean;
13
13
  nested?: boolean;
14
+ transform?: boolean;
14
15
  }): Promise<T | false>;
15
16
  clear(path?: string): void;
16
17
  errors: Ref<FormError[]>;
17
- setErrors(errs: FormError[], path?: string): void;
18
- getErrors(path?: string): FormError[];
18
+ setErrors(errs: FormError[], name?: keyof T): void;
19
+ getErrors(name?: keyof T): FormError[];
19
20
  submit(): Promise<void>;
20
21
  disabled: ComputedRef<boolean>;
22
+ dirty: ComputedRef<boolean>;
23
+ dirtyFields: DeepReadonly<Set<keyof T>>;
24
+ touchedFields: DeepReadonly<Set<keyof T>>;
25
+ blurredFields: DeepReadonly<Set<keyof T>>;
21
26
  }
22
- export type FormSchema<T extends Record<string, any>> = ZodSchema | YupObjectSchema<T> | ValibotSchema | ValibotSchemaAsync | ValibotSafeParser<any, any> | ValibotSafeParserAsync<any, any> | JoiSchema<T> | SuperstructSchema<any, any> | v1.StandardSchema;
23
- export type FormInputEvents = 'input' | 'blur' | 'change';
27
+ export type FormSchema<T extends object> = ZodSchema | YupObjectSchema<T> | ValibotSchema | ValibotSchemaAsync | ValibotSafeParser<any, any> | ValibotSafeParserAsync<any, any> | JoiSchema<T> | SuperstructSchema<any, any> | StandardSchemaV1;
28
+ export type FormInputEvents = 'input' | 'blur' | 'change' | 'focus';
24
29
  export interface FormError<P extends string = string> {
25
30
  name: P;
26
31
  message: string;
@@ -33,7 +38,7 @@ export type FormSubmitEvent<T> = SubmitEvent & {
33
38
  };
34
39
  export type FormValidationError = {
35
40
  errors: FormErrorWithId[];
36
- childrens: FormValidationError[];
41
+ children?: FormValidationError[];
37
42
  };
38
43
  export type FormErrorEvent = SubmitEvent & FormValidationError;
39
44
  export type FormEventType = FormInputEvents;
@@ -46,11 +51,12 @@ export type FormChildDetachEvent = {
46
51
  type: 'detach';
47
52
  formId: string | number;
48
53
  };
49
- export type FormInputEvent = {
54
+ export type FormInputEvent<T extends object> = {
50
55
  type: FormEventType;
51
- name?: string;
56
+ name: keyof T;
57
+ eager?: boolean;
52
58
  };
53
- export type FormEvent = FormInputEvent | FormChildAttachEvent | FormChildDetachEvent;
59
+ export type FormEvent<T extends object> = FormInputEvent<T> | FormChildAttachEvent | FormChildDetachEvent;
54
60
  export interface FormInjectedOptions {
55
61
  disabled?: boolean;
56
62
  validateOnInputDelay?: number;
@@ -62,6 +68,9 @@ export interface FormFieldInjectedOptions<T> {
62
68
  eagerValidation?: boolean;
63
69
  validateOnInputDelay?: number;
64
70
  errorPattern?: RegExp;
71
+ hint?: string;
72
+ description?: string;
73
+ ariaId: string;
65
74
  }
66
75
  export interface ValidateReturnSchema<T> {
67
76
  result: T;
@@ -70,6 +79,6 @@ export interface ValidateReturnSchema<T> {
70
79
  export declare class FormValidationException extends Error {
71
80
  formId: string | number;
72
81
  errors: FormErrorWithId[];
73
- childrens: FormValidationException[];
74
- constructor(formId: string | number, errors: FormErrorWithId[], childErrors: FormValidationException[]);
82
+ children?: FormValidationException[];
83
+ constructor(formId: string | number, errors: FormErrorWithId[], childErrors?: FormValidationException[]);
75
84
  }
@@ -1,12 +1,12 @@
1
1
  export class FormValidationException extends Error {
2
2
  formId;
3
3
  errors;
4
- childrens;
4
+ children;
5
5
  constructor(formId, errors, childErrors) {
6
6
  super("Form validation exception");
7
7
  this.formId = formId;
8
8
  this.errors = errors;
9
- this.childrens = childErrors;
9
+ this.children = childErrors;
10
10
  Object.setPrototypeOf(this, FormValidationException.prototype);
11
11
  }
12
12
  }