bitboss-ui 3.0.0-beta.63 → 3.0.0-beta.64

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 (377) hide show
  1. package/README.md +25 -20
  2. package/bin/bitboss-ui.mjs +73 -7
  3. package/dist/ai/BbAlert.md +10 -1
  4. package/dist/ai/BbBadge.md +35 -3
  5. package/dist/ai/BbBadgeButton.md +4 -2
  6. package/dist/ai/BbBaseButton.md +9 -3
  7. package/dist/ai/BbBreadcrumbs.md +2 -2
  8. package/dist/ai/BbButton.md +113 -8
  9. package/dist/ai/BbCheckbox.md +1 -1
  10. package/dist/ai/BbCheckboxGroup.md +94 -6
  11. package/dist/ai/BbColorInput.md +4 -1
  12. package/dist/ai/BbColorPalette.md +2 -1
  13. package/dist/ai/BbConfirm.md +7 -3
  14. package/dist/ai/BbDatePicker.md +2 -1
  15. package/dist/ai/BbDatePickerInput.md +4 -1
  16. package/dist/ai/BbDialog.md +12 -11
  17. package/dist/ai/BbDropdown.md +189 -38
  18. package/dist/ai/BbDropdownButton.md +27 -7
  19. package/dist/ai/BbForm.md +55 -22
  20. package/dist/ai/BbHost.md +2 -2
  21. package/dist/ai/BbHoverCard.md +7 -3
  22. package/dist/ai/BbIcon.md +12 -6
  23. package/dist/ai/BbIndicator.md +11 -1
  24. package/dist/ai/BbNumberInput.md +4 -1
  25. package/dist/ai/BbOffCanvas.md +37 -3
  26. package/dist/ai/BbPopover.md +2 -1
  27. package/dist/ai/BbRadio.md +1 -1
  28. package/dist/ai/BbRadioGroup.md +102 -10
  29. package/dist/ai/BbSelect.md +52 -17
  30. package/dist/ai/BbSelectPopover.md +93 -26
  31. package/dist/ai/BbSwitch.md +1 -1
  32. package/dist/ai/BbSwitchGroup.md +30 -3
  33. package/dist/ai/BbTable.md +17 -10
  34. package/dist/ai/BbTabs.md +8 -3
  35. package/dist/ai/BbTabsList.md +4 -1
  36. package/dist/ai/BbTag.md +5 -2
  37. package/dist/ai/BbTextInput.md +4 -1
  38. package/dist/ai/BbTextarea.md +4 -1
  39. package/dist/ai/BbTimePicker.md +2 -1
  40. package/dist/ai/BbTimePickerInput.md +4 -1
  41. package/dist/ai/BbToast.md +9 -3
  42. package/dist/ai/BbTooltip.md +71 -9
  43. package/dist/ai/ChipsBox.md +1 -1
  44. package/dist/ai/CommonField.md +1 -1
  45. package/dist/ai/OptionsContainer.md +42 -0
  46. package/dist/ai/changelog.json +416 -6
  47. package/dist/ai/components.json +50 -48
  48. package/dist/ai/composables/useConfirm.md +39 -1
  49. package/dist/ai/design-tokens.json +6 -6
  50. package/dist/ai/guides/agent-contract.md +2 -2
  51. package/dist/ai/guides/ai-router.md +24 -23
  52. package/dist/ai/guides/app-layout.md +5 -0
  53. package/dist/ai/guides/component-picker.md +9 -2
  54. package/dist/ai/guides/design-language.md +24 -24
  55. package/dist/ai/guides/design-tokens.md +15 -8
  56. package/dist/ai/guides/icons-policy.md +9 -2
  57. package/dist/ai/guides/inertia-helpers.md +79 -49
  58. package/dist/ai/guides/installation-and-plugin-setup.md +12 -2
  59. package/dist/ai/guides/migration/adoption-checklist.md +235 -0
  60. package/dist/ai/guides/migration/components/bb-checkbox-group.md +16 -15
  61. package/dist/ai/guides/migration/components/bb-dialog.md +9 -9
  62. package/dist/ai/guides/migration/components/bb-dropdown.md +7 -2
  63. package/dist/ai/guides/migration/components/bb-popover.md +4 -2
  64. package/dist/ai/guides/migration/components/bb-select.md +19 -0
  65. package/dist/ai/guides/migration/components/bb-table.md +1 -0
  66. package/dist/ai/guides/migration/components/bb-toast.md +4 -0
  67. package/dist/ai/guides/migration/components/bb-tooltip.md +15 -12
  68. package/dist/ai/guides/migration/components/use-confirm.md +25 -2
  69. package/dist/ai/guides/migration/v2-to-v3.md +163 -9
  70. package/dist/ai/guides/migration/v3-beta-css-classes.md +7 -3
  71. package/dist/ai/guides/options-items-playbook.md +2 -1
  72. package/dist/ai/guides/passthrough.md +147 -85
  73. package/dist/ai/guides/preset-components.md +140 -15
  74. package/dist/ai/helpers/definePreset.json +7 -0
  75. package/dist/ai/helpers/definePreset.ts +123 -11
  76. package/dist/ai/helpers/inertia/manifest.json +15 -9
  77. package/dist/ai/helpers/inertia/useConfirmOnRouteLeave.ts +4 -4
  78. package/dist/ai/helpers/inertia/usePaginatedResponseContext.ts +39 -24
  79. package/dist/ai/helpers/inertia/useRouteQuery.ts +10 -4
  80. package/dist/ai/index.md +1 -0
  81. package/dist/ai/manifest/common.json +0 -1
  82. package/dist/ai/manifest/components/BbAlert.json +7 -2
  83. package/dist/ai/manifest/components/BbBadge.json +13 -4
  84. package/dist/ai/manifest/components/BbBadge.tree.json +2 -0
  85. package/dist/ai/manifest/components/BbBadgeButton.json +4 -2
  86. package/dist/ai/manifest/components/BbBaseButton.json +4 -2
  87. package/dist/ai/manifest/components/BbBreadcrumbs.tree.json +1 -1
  88. package/dist/ai/manifest/components/BbButton.json +14 -3
  89. package/dist/ai/manifest/components/BbButton.tree.json +5 -1
  90. package/dist/ai/manifest/components/BbCheckboxGroup.json +13 -8
  91. package/dist/ai/manifest/components/BbCheckboxGroup.tree.json +11 -1
  92. package/dist/ai/manifest/components/BbColorInput.json +18 -15
  93. package/dist/ai/manifest/components/BbColorPalette.json +1 -1
  94. package/dist/ai/manifest/components/BbConfirm.json +4 -2
  95. package/dist/ai/manifest/components/BbConfirm.tree.json +1 -1
  96. package/dist/ai/manifest/components/BbDatePicker.json +1 -1
  97. package/dist/ai/manifest/components/BbDatePickerInput.json +17 -14
  98. package/dist/ai/manifest/components/BbDialog.tree.json +2 -1
  99. package/dist/ai/manifest/components/BbDropdown.json +24 -19
  100. package/dist/ai/manifest/components/BbDropdown.tree.json +9 -2
  101. package/dist/ai/manifest/components/BbDropdownButton.json +33 -20
  102. package/dist/ai/manifest/components/BbDropdownButton.tree.json +2 -2
  103. package/dist/ai/manifest/components/BbForm.json +2 -2
  104. package/dist/ai/manifest/components/BbHost.tree.json +1 -1
  105. package/dist/ai/manifest/components/BbHoverCard.json +1 -1
  106. package/dist/ai/manifest/components/BbIndicator.json +8 -2
  107. package/dist/ai/manifest/components/BbNumberInput.json +5 -2
  108. package/dist/ai/manifest/components/BbOffCanvas.json +2 -2
  109. package/dist/ai/manifest/components/BbOffCanvas.tree.json +1 -1
  110. package/dist/ai/manifest/components/BbPopover.json +1 -1
  111. package/dist/ai/manifest/components/BbRadioGroup.json +17 -12
  112. package/dist/ai/manifest/components/BbRadioGroup.tree.json +8 -1
  113. package/dist/ai/manifest/components/BbSelect.json +21 -18
  114. package/dist/ai/manifest/components/BbSelect.tree.json +2 -2
  115. package/dist/ai/manifest/components/BbSelectPopover.json +10 -10
  116. package/dist/ai/manifest/components/BbSelectPopover.tree.json +3 -2
  117. package/dist/ai/manifest/components/BbSwitchGroup.json +1 -1
  118. package/dist/ai/manifest/components/BbSwitchGroup.tree.json +3 -1
  119. package/dist/ai/manifest/components/BbTable.tree.json +14 -1
  120. package/dist/ai/manifest/components/BbTabs.json +9 -6
  121. package/dist/ai/manifest/components/BbTabs.tree.json +1 -1
  122. package/dist/ai/manifest/components/BbTabsList.json +6 -3
  123. package/dist/ai/manifest/components/BbTag.json +19 -16
  124. package/dist/ai/manifest/components/BbTag.tree.json +1 -1
  125. package/dist/ai/manifest/components/BbTextInput.json +6 -3
  126. package/dist/ai/manifest/components/BbTextarea.json +6 -3
  127. package/dist/ai/manifest/components/BbTimePicker.json +1 -1
  128. package/dist/ai/manifest/components/BbTimePickerInput.json +10 -7
  129. package/dist/ai/manifest/components/BbToast.json +7 -2
  130. package/dist/ai/manifest/components/BbToast.tree.json +4 -2
  131. package/dist/ai/manifest/components/BbTooltip.json +6 -5
  132. package/dist/ai/manifest/components/ChipsBox.tree.json +1 -1
  133. package/dist/ai/manifest/components/CommonField.json +1 -1
  134. package/dist/ai/manifest/components/OptionsContainer.json +3 -1
  135. package/dist/ai/manifest/components/OptionsContainer.tree.json +38 -0
  136. package/dist/ai/manifest/index.json +3 -3
  137. package/dist/ai/manifest/meta.json +5 -3
  138. package/dist/ai/manifest/types.advanced.json +5 -2
  139. package/dist/ai/manifest/types.api.json +9 -7
  140. package/dist/ai/recipes/inertia/layout-scaffold.md +19 -6
  141. package/dist/ai/recipes/inertia/records-workspace.md +49 -13
  142. package/dist/ai/recipes/nuxt/layout-scaffold.md +19 -6
  143. package/dist/ai/recipes/nuxt/records-workspace.md +42 -12
  144. package/dist/ai/recipes/vue/layout-scaffold.md +19 -6
  145. package/dist/ai/recipes/vue/records-workspace.md +42 -12
  146. package/dist/ai/source/BbAlert.md +94 -76
  147. package/dist/ai/source/BbBadge.md +174 -72
  148. package/dist/ai/source/BbBadgeButton.md +130 -65
  149. package/dist/ai/source/BbBaseButton.md +46 -124
  150. package/dist/ai/source/BbBaseCheckboxIcon.md +38 -0
  151. package/dist/ai/source/BbBaseRadioIcon.md +18 -0
  152. package/dist/ai/source/BbBaseSwitchIcon.md +51 -0
  153. package/dist/ai/source/BbButton.md +153 -36
  154. package/dist/ai/source/BbCheckboxGroup.md +142 -18
  155. package/dist/ai/source/BbColorInput.md +240 -204
  156. package/dist/ai/source/BbColorPalette.md +7 -4
  157. package/dist/ai/source/BbConfirm.md +34 -11
  158. package/dist/ai/source/BbConfirmPortal.md +24 -9
  159. package/dist/ai/source/BbDatePicker.md +11 -7
  160. package/dist/ai/source/BbDatePickerInput.md +306 -269
  161. package/dist/ai/source/BbDialog.md +49 -14
  162. package/dist/ai/source/BbDropdown.md +314 -197
  163. package/dist/ai/source/BbDropdownButton.md +197 -31
  164. package/dist/ai/source/BbDropdownGroup.md +274 -176
  165. package/dist/ai/source/BbForm.md +50 -6
  166. package/dist/ai/source/BbHoverCard.md +12 -5
  167. package/dist/ai/source/BbIcon.md +4 -3
  168. package/dist/ai/source/BbIndicator.md +73 -52
  169. package/dist/ai/source/BbNumberInput.md +293 -257
  170. package/dist/ai/source/BbOffCanvas.md +55 -29
  171. package/dist/ai/source/BbPopover.md +14 -10
  172. package/dist/ai/source/BbRadioGroup.md +413 -297
  173. package/dist/ai/source/BbSelect.md +549 -435
  174. package/dist/ai/source/BbSelectPopover.md +128 -33
  175. package/dist/ai/source/BbSwitchGroup.md +70 -10
  176. package/dist/ai/source/BbTable.md +369 -37
  177. package/dist/ai/source/BbTabs.md +115 -39
  178. package/dist/ai/source/BbTabsList.md +106 -38
  179. package/dist/ai/source/BbTabsPanels.md +96 -36
  180. package/dist/ai/source/BbTabsRoot.md +96 -36
  181. package/dist/ai/source/BbTag.md +267 -233
  182. package/dist/ai/source/BbTextInput.md +261 -225
  183. package/dist/ai/source/BbTextarea.md +251 -215
  184. package/dist/ai/source/BbTimePicker.md +11 -7
  185. package/dist/ai/source/BbTimePickerInput.md +257 -220
  186. package/dist/ai/source/BbToast.md +73 -32
  187. package/dist/ai/source/BbToastPortal.md +65 -30
  188. package/dist/ai/source/BbTooltip.md +148 -113
  189. package/dist/ai/source/CommonPopover.md +6 -1
  190. package/dist/ai/source/FlatListBox.md +19 -9
  191. package/dist/ai/source/GroupedListBox.md +19 -9
  192. package/dist/ai/source/OptionsContainer.md +25 -9
  193. package/dist/components/BbAlert/BbAlert.vue_vue_type_script_setup_true_lang.js +61 -36
  194. package/dist/components/BbAlert/types.d.ts +9 -5
  195. package/dist/components/BbAlert/types.js +8 -3
  196. package/dist/components/BbBadge/BadgeBodyContent.vue.d.ts +3 -3
  197. package/dist/components/BbBadge/BadgeBodyContent.vue_vue_type_script_setup_true_lang.js +26 -17
  198. package/dist/components/BbBadge/BbBadge.vue_vue_type_script_setup_true_lang.js +103 -50
  199. package/dist/components/BbBadge/BbBadgeButton.vue_vue_type_script_setup_true_lang.js +20 -15
  200. package/dist/components/BbBadge/badgeButtonContext.d.ts +12 -1
  201. package/dist/components/BbBadge/types.d.ts +45 -15
  202. package/dist/components/BbBadge/types.js +12 -3
  203. package/dist/components/BbBaseButton/BbBaseButton.vue_vue_type_script_setup_true_lang.js +89 -126
  204. package/dist/components/BbBaseButton/types.d.ts +23 -4
  205. package/dist/components/BbBaseButton/types.js +7 -1
  206. package/dist/components/BbBaseButton/useLinkState.d.ts +41 -0
  207. package/dist/components/BbBaseButton/useLinkState.js +70 -0
  208. package/dist/components/BbButton/BbButton.vue_vue_type_script_setup_true_lang.js +130 -74
  209. package/dist/components/BbButton/types.d.ts +50 -13
  210. package/dist/components/BbButton/types.js +10 -3
  211. package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue_vue_type_script_setup_true_lang.js +148 -95
  212. package/dist/components/BbCheckboxGroup/types.d.ts +34 -11
  213. package/dist/components/BbCheckboxGroup/types.js +9 -4
  214. package/dist/components/BbCollapsible/BbCollapsible.vue.d.ts +1 -1
  215. package/dist/components/BbColorInput/BbColorInput.vue_vue_type_script_setup_true_lang.js +134 -93
  216. package/dist/components/BbColorInput/types.d.ts +11 -4
  217. package/dist/components/BbColorInput/types.js +9 -3
  218. package/dist/components/BbConfirm/BbConfirm.vue_vue_type_script_setup_true_lang.js +82 -59
  219. package/dist/components/BbConfirm/types.d.ts +9 -4
  220. package/dist/components/BbConfirm/types.js +8 -3
  221. package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +1 -1
  222. package/dist/components/BbDatePicker/BbDatePicker.vue_vue_type_script_setup_true_lang.js +68 -67
  223. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +1 -1
  224. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +259 -215
  225. package/dist/components/BbDatePickerInput/types.d.ts +12 -5
  226. package/dist/components/BbDatePickerInput/types.js +9 -3
  227. package/dist/components/BbDialog/BbDialog.vue_vue_type_script_setup_true_lang.js +223 -219
  228. package/dist/components/BbDialog/useDialogStack.d.ts +1 -1
  229. package/dist/components/BbDropdown/AdaptiveDropdown.vue_vue_type_script_setup_true_lang.js +104 -89
  230. package/dist/components/BbDropdown/BbDropdown.vue.d.ts +1 -0
  231. package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +323 -285
  232. package/dist/components/BbDropdown/BbDropdownList.vue.d.ts +1 -0
  233. package/dist/components/BbDropdown/BbDropdownList.vue_vue_type_script_setup_true_lang.js +411 -319
  234. package/dist/components/BbDropdown/DropdownPipelineResolver.vue_vue_type_script_setup_true_lang.js +100 -98
  235. package/dist/components/BbDropdown/DropdownRow.vue.d.ts +4 -3
  236. package/dist/components/BbDropdown/DropdownRow.vue_vue_type_script_setup_true_lang.js +49 -28
  237. package/dist/components/BbDropdown/normalizeGroups.d.ts +6 -0
  238. package/dist/components/BbDropdown/normalizeGroups.js +21 -15
  239. package/dist/components/BbDropdown/types.d.ts +59 -12
  240. package/dist/components/BbDropdown/types.js +16 -3
  241. package/dist/components/BbDropdown/useDropdownContext.d.ts +6 -0
  242. package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +2 -1
  243. package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +179 -68
  244. package/dist/components/BbDropdownButton/types.d.ts +44 -16
  245. package/dist/components/BbDropdownButton/types.js +28 -3
  246. package/dist/components/BbForm/BbForm.vue_vue_type_script_setup_true_lang.js +111 -89
  247. package/dist/components/BbForm/formSchema.d.ts +13 -0
  248. package/dist/components/BbHoverCard/BbHoverCard.vue_vue_type_script_setup_true_lang.js +100 -100
  249. package/dist/components/BbIndicator/BbIndicator.vue_vue_type_script_setup_true_lang.js +40 -25
  250. package/dist/components/BbIndicator/types.d.ts +9 -5
  251. package/dist/components/BbIndicator/types.js +8 -3
  252. package/dist/components/BbNumberInput/BbNumberInput.vue_vue_type_script_setup_true_lang.js +243 -202
  253. package/dist/components/BbNumberInput/types.d.ts +12 -5
  254. package/dist/components/BbNumberInput/types.js +9 -3
  255. package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +1 -1
  256. package/dist/components/BbOffCanvas/BbOffCanvas.vue_vue_type_script_setup_true_lang.js +401 -399
  257. package/dist/components/BbOffCanvas/types.d.ts +6 -2
  258. package/dist/components/BbPopover/BbPopover.vue_vue_type_script_setup_true_lang.js +81 -80
  259. package/dist/components/BbRadioGroup/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +158 -105
  260. package/dist/components/BbRadioGroup/types.d.ts +21 -7
  261. package/dist/components/BbRadioGroup/types.js +9 -4
  262. package/dist/components/BbSelect/BbSelect.vue.d.ts +4 -3
  263. package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +181 -137
  264. package/dist/components/BbSelect/types.d.ts +36 -22
  265. package/dist/components/BbSelect/types.js +22 -3
  266. package/dist/components/BbSelectPopover/BbSelectPopover.vue.d.ts +4 -4
  267. package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +543 -532
  268. package/dist/components/BbSelectPopover/knownItems.d.ts +5 -0
  269. package/dist/components/BbSelectPopover/types.d.ts +46 -12
  270. package/dist/components/BbSmoothHeight/BbSmoothHeight.vue.d.ts +1 -1
  271. package/dist/components/BbSwitchGroup/BbSwitchGroup.vue_vue_type_script_setup_true_lang.js +2 -2
  272. package/dist/components/BbSwitchGroup/types.d.ts +14 -4
  273. package/dist/components/BbSwitchGroup/types.js +8 -3
  274. package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +1102 -995
  275. package/dist/components/BbTable/estimatedFloors.golden.d.ts +25 -0
  276. package/dist/components/BbTable/measuredFloors.d.ts +46 -0
  277. package/dist/components/BbTable/measuredFloors.js +322 -0
  278. package/dist/components/BbTable/measuredFloorsTestKit.d.ts +27 -0
  279. package/dist/components/BbTable/textRuler.d.ts +71 -0
  280. package/dist/components/BbTable/textRuler.js +121 -0
  281. package/dist/components/BbTable/utils.d.ts +113 -6
  282. package/dist/components/BbTable/utils.js +118 -65
  283. package/dist/components/BbTabs/BbTabs.vue_vue_type_script_setup_true_lang.js +53 -35
  284. package/dist/components/BbTabs/BbTabsList.vue_vue_type_script_setup_true_lang.js +62 -45
  285. package/dist/components/BbTabs/types.d.ts +26 -11
  286. package/dist/components/BbTabs/types.js +23 -8
  287. package/dist/components/BbTag/BbTag.vue_vue_type_script_setup_true_lang.js +205 -164
  288. package/dist/components/BbTag/types.d.ts +11 -4
  289. package/dist/components/BbTag/types.js +9 -3
  290. package/dist/components/BbTextInput/BbTextInput.vue_vue_type_script_setup_true_lang.js +98 -57
  291. package/dist/components/BbTextInput/types.d.ts +12 -5
  292. package/dist/components/BbTextInput/types.js +9 -3
  293. package/dist/components/BbTextarea/BbTextarea.vue_vue_type_script_setup_true_lang.js +137 -96
  294. package/dist/components/BbTextarea/types.d.ts +12 -5
  295. package/dist/components/BbTextarea/types.js +9 -3
  296. package/dist/components/BbTimePicker/BbTimePicker.vue_vue_type_script_setup_true_lang.js +105 -104
  297. package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +241 -197
  298. package/dist/components/BbTimePickerInput/types.d.ts +12 -5
  299. package/dist/components/BbTimePickerInput/types.js +9 -3
  300. package/dist/components/BbToast/BbToast.vue_vue_type_script_setup_true_lang.js +74 -32
  301. package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +47 -47
  302. package/dist/components/BbToast/types.d.ts +10 -5
  303. package/dist/components/BbToast/types.js +18 -3
  304. package/dist/components/BbTooltip/BbTooltip.vue_vue_type_script_setup_true_lang.js +85 -71
  305. package/dist/components/BbTooltip/types.d.ts +13 -8
  306. package/dist/components/BbTooltip/types.js +8 -3
  307. package/dist/components/CommonField/CommonField.vue.d.ts +1 -1
  308. package/dist/components/CommonPopover/CommonPopover.vue.d.ts +1 -1
  309. package/dist/components/CommonPopover/CommonPopover.vue_vue_type_script_setup_true_lang.js +69 -69
  310. package/dist/components/FlatListBox/FlatListBox.vue_vue_type_script_setup_true_lang.js +53 -50
  311. package/dist/components/GroupedListBox/GroupedListBox.vue_vue_type_script_setup_true_lang.js +146 -143
  312. package/dist/components/OptionsContainer/OptionsContainer.vue_vue_type_script_setup_true_lang.js +7 -2
  313. package/dist/components/OptionsContainer/types.d.ts +14 -3
  314. package/dist/composables/useBbFormContext.d.ts +4 -3
  315. package/dist/composables/useBbTabsContext.js +99 -85
  316. package/dist/composables/useChoiceIndicator.d.ts +58 -0
  317. package/dist/composables/useChoiceIndicator.js +197 -0
  318. package/dist/composables/useConfirm.d.ts +4 -4
  319. package/dist/composables/usePassthrough.d.ts +54 -1
  320. package/dist/composables/usePassthrough.js +100 -71
  321. package/dist/directives/bbTooltip.d.ts +12 -6
  322. package/dist/directives/createPopoverDirective.js +1 -1
  323. package/dist/index.d.ts +3 -1
  324. package/dist/llms-full.txt +2300 -543
  325. package/dist/llms-medium.txt +71 -53
  326. package/dist/llms.txt +2 -1
  327. package/dist/passthrough-deduper.js +6 -3
  328. package/dist/project-dts.d.ts +24 -0
  329. package/dist/project-dts.js +43 -17
  330. package/dist/styles.css +2 -2
  331. package/dist/types/AlertVariant.d.ts +14 -0
  332. package/dist/types/AlertVariant.js +9 -0
  333. package/dist/types/BadgeVariant.d.ts +14 -0
  334. package/dist/types/BadgeVariant.js +9 -0
  335. package/dist/types/ButtonVariant.d.ts +16 -0
  336. package/dist/types/ButtonVariant.js +11 -0
  337. package/dist/types/CheckboxVariant.d.ts +38 -0
  338. package/dist/types/CheckboxVariant.js +4 -0
  339. package/dist/types/CommonProps.d.ts +4 -3
  340. package/dist/types/Config.d.ts +7 -0
  341. package/dist/types/ConfirmVariant.d.ts +12 -0
  342. package/dist/types/ConfirmVariant.js +4 -0
  343. package/dist/types/DropdownItemVariant.d.ts +12 -0
  344. package/dist/types/DropdownItemVariant.js +4 -0
  345. package/dist/types/IndicatorVariant.d.ts +15 -0
  346. package/dist/types/IndicatorVariant.js +10 -0
  347. package/dist/types/InputVariant.d.ts +13 -0
  348. package/dist/types/InputVariant.js +8 -0
  349. package/dist/types/RadioVariant.d.ts +38 -0
  350. package/dist/types/RadioVariant.js +4 -0
  351. package/dist/types/TabsVariant.d.ts +13 -0
  352. package/dist/types/TabsVariant.js +8 -0
  353. package/dist/types/ToastVariant.d.ts +15 -0
  354. package/dist/types/ToastVariant.js +10 -0
  355. package/dist/types/TooltipVariant.d.ts +12 -0
  356. package/dist/types/TooltipVariant.js +4 -0
  357. package/dist/types/passthrough.d.ts +83 -15
  358. package/dist/types/passthrough.js +2 -2
  359. package/dist/types/ptComponentMap.d.ts +35 -23
  360. package/dist/utilities/functions/extractDomContainer.d.ts +20 -1
  361. package/dist/utilities/functions/extractDomContainer.js +8 -3
  362. package/dist/utils/focusVisibility.d.ts +6 -0
  363. package/dist/utils/focusVisibility.js +4 -1
  364. package/dist/utils/passthroughDeduper.d.ts +14 -0
  365. package/dist/utils/versionCheck.js +1 -1
  366. package/dist/vite-plugin.d.ts +64 -7
  367. package/dist/vite.js +385 -259
  368. package/llms.txt +2 -1
  369. package/package.json +3 -3
  370. package/scripts/lib/adoption-checklist.json +312 -0
  371. package/scripts/lib/eslint-plugin.d.ts +13 -0
  372. package/scripts/lib/eslint-plugin.mjs +75 -11
  373. package/scripts/lib/idiom-scan.mjs +65 -0
  374. package/scripts/lib/mcp-config.mjs +203 -9
  375. package/scripts/lib/migrate-fix.mjs +42 -1
  376. package/scripts/lib/project-variant-dts.mjs +18 -0
  377. package/scripts/lib/validate-bb-markup.mjs +99 -2
@@ -1,31 +1,31 @@
1
1
  import { useLogger as e } from "../../composables/useLogger.js";
2
2
  import { isEmpty as t } from "../../utilities/functions/empty.js";
3
3
  import { isNotEmpty as n } from "../../utilities/functions/isNotEmpty.js";
4
- import { SEGMENTED_CONTROL_NATIVE_ATTRS as r, formControlPtActive as i, usePassthrough as a } from "../../composables/usePassthrough.js";
5
- import { useConfig as o } from "../../composables/useConfig.js";
6
- import { hash as s } from "../../utilities/functions/hash.js";
7
- import { removedPropsFor as c } from "../../deprecation/removedProps.js";
8
- import { warnRemovedAttrs as l } from "../../utilities/functions/warnRemovedAttrs.js";
9
- import { useMobile as u } from "../../composables/useMobile.js";
10
- import { useLocale as d } from "../../composables/useLocale.js";
11
- import f from "../BbIcon/BbIcon.vue.js";
12
- import { formatOfType as ee, isCoarseType as te, unitOfType as ne } from "../../types/DatePickerType.js";
13
- import { toInnerValue as re, toOuterValue as ie } from "../../utilities/functions/convertDateValue.js";
14
- import { useMeridiem as ae } from "../CommonTimeSelector/useMeridiem.js";
15
- import { formatDateOf as oe, spokenDateOptionsOf as se, timeFieldsOf as ce, useDayjsLocale as le } from "../BbCalendar/useDayjsLocale.js";
16
- import { normalizeDateBound as ue } from "../../utilities/functions/normalizeDateBound.js";
17
- import { BB_DATE_PICKER_PT as de, DATE_PICKER_CALENDAR_PARTS as fe } from "../BbDatePicker/types.js";
18
- import pe from "../BbDatePicker/BbDatePicker.vue.js";
19
- import { vAutofocus as me } from "../../utilities/misc/autofocus.js";
20
- import he from "../CommonField/CommonField.vue.js";
21
- import { useFormBinding as ge } from "../../composables/useFormBinding.js";
22
- import _e from "../CommonFieldInput/CommonFieldInput.vue.js";
23
- import { useSegmentedFields as ve } from "../../composables/useSegmentedFields.js";
24
- import ye from "../../assets/svgs/calendar.svg_raw.js";
25
- import { BB_DATE_PICKER_INPUT_PT as be } from "./types.js";
4
+ import { SEGMENTED_CONTROL_NATIVE_ATTRS as r, formControlPtActive as i, usePassthrough as a, variantPt as o } from "../../composables/usePassthrough.js";
5
+ import { useConfig as s } from "../../composables/useConfig.js";
6
+ import { hash as c } from "../../utilities/functions/hash.js";
7
+ import { removedPropsFor as l } from "../../deprecation/removedProps.js";
8
+ import { warnRemovedAttrs as u } from "../../utilities/functions/warnRemovedAttrs.js";
9
+ import { useMobile as d } from "../../composables/useMobile.js";
10
+ import { useLocale as f } from "../../composables/useLocale.js";
11
+ import ee from "../BbIcon/BbIcon.vue.js";
12
+ import { formatOfType as te, isCoarseType as ne, unitOfType as re } from "../../types/DatePickerType.js";
13
+ import { toInnerValue as ie, toOuterValue as ae } from "../../utilities/functions/convertDateValue.js";
14
+ import { useMeridiem as oe } from "../CommonTimeSelector/useMeridiem.js";
15
+ import { formatDateOf as se, spokenDateOptionsOf as ce, timeFieldsOf as le, useDayjsLocale as ue } from "../BbCalendar/useDayjsLocale.js";
16
+ import { normalizeDateBound as de } from "../../utilities/functions/normalizeDateBound.js";
17
+ import { BB_DATE_PICKER_PT as fe, DATE_PICKER_CALENDAR_PARTS as pe } from "../BbDatePicker/types.js";
18
+ import me from "../BbDatePicker/BbDatePicker.vue.js";
19
+ import { vAutofocus as he } from "../../utilities/misc/autofocus.js";
20
+ import ge from "../CommonField/CommonField.vue.js";
21
+ import { useFormBinding as _e } from "../../composables/useFormBinding.js";
22
+ import ve from "../CommonFieldInput/CommonFieldInput.vue.js";
23
+ import { useSegmentedFields as ye } from "../../composables/useSegmentedFields.js";
24
+ import be from "../../assets/svgs/calendar.svg_raw.js";
25
+ import { BB_DATE_PICKER_INPUT_PT as p } from "./types.js";
26
26
  import { dateLayoutFromHint as xe, monthLayoutFromHint as Se } from "./dateFieldLayout.js";
27
- import { Fragment as Ce, computed as p, createBlock as we, createCommentVNode as Te, createElementBlock as m, createElementVNode as h, createSlots as Ee, createVNode as De, defineComponent as Oe, guardReactiveProps as g, mergeProps as _, normalizeClass as ke, normalizeProps as v, normalizeStyle as Ae, onBeforeUnmount as je, onDeactivated as Me, openBlock as y, ref as b, renderList as Ne, renderSlot as x, toDisplayString as S, unref as C, useAttrs as Pe, useSlots as Fe, watch as Ie, withCtx as w, withDirectives as Le } from "vue";
28
- import T from "dayjs";
27
+ import { Fragment as Ce, computed as m, createBlock as we, createCommentVNode as Te, createElementBlock as h, createElementVNode as g, createSlots as Ee, createVNode as De, defineComponent as Oe, guardReactiveProps as _, mergeProps as v, normalizeClass as ke, normalizeProps as y, normalizeStyle as Ae, onBeforeUnmount as je, onDeactivated as Me, openBlock as b, ref as x, renderList as Ne, renderSlot as S, toDisplayString as C, unref as w, useAttrs as Pe, useSlots as Fe, watch as Ie, withCtx as T, withDirectives as Le } from "vue";
28
+ import E from "dayjs";
29
29
  import Re from "dayjs/plugin/customParseFormat";
30
30
  import ze from "dayjs/plugin/isSameOrAfter";
31
31
  import Be from "dayjs/plugin/isSameOrBefore";
@@ -53,7 +53,8 @@ var Ve = ["data-value"], He = [
53
53
  "onInput",
54
54
  "onKeydown",
55
55
  "onPaste"
56
- ], Ue = ["onClick"], We = ["aria-disabled", "disabled"], Ge = ["id"], E = "YYYY-MM-DD", Ke = "YYYY-MM-DDTHH:mm", qe = /*@__PURE__*/ Oe({
56
+ ], Ue = ["onClick"], We = ["aria-disabled", "disabled"], Ge = ["id"], D = "YYYY-MM-DD", Ke = "YYYY-MM-DDTHH:mm", qe = /*@__PURE__*/ Oe({
57
+ mixins: [o(p)],
57
58
  inheritAttrs: !1,
58
59
  __name: "BbDatePickerInput",
59
60
  props: {
@@ -457,6 +458,45 @@ var Ve = ["data-value"], He = [
457
458
  "pt:item:rangeEnd": {},
458
459
  "pt:item:active": {},
459
460
  "pt:item:highlighted": {},
461
+ "pt:root:outline": {},
462
+ "pt:root:secondary": {},
463
+ "pt:root:ghost": {},
464
+ "pt:label:outline": {},
465
+ "pt:label:secondary": {},
466
+ "pt:label:ghost": {},
467
+ "pt:description:outline": {},
468
+ "pt:description:secondary": {},
469
+ "pt:description:ghost": {},
470
+ "pt:message:outline": {},
471
+ "pt:message:secondary": {},
472
+ "pt:message:ghost": {},
473
+ "pt:hint:outline": {},
474
+ "pt:hint:secondary": {},
475
+ "pt:hint:ghost": {},
476
+ "pt:box:outline": {},
477
+ "pt:box:secondary": {},
478
+ "pt:box:ghost": {},
479
+ "pt:input:outline": {},
480
+ "pt:input:secondary": {},
481
+ "pt:input:ghost": {},
482
+ "pt:icon:outline": {},
483
+ "pt:icon:secondary": {},
484
+ "pt:icon:ghost": {},
485
+ "pt:spinner:outline": {},
486
+ "pt:spinner:secondary": {},
487
+ "pt:spinner:ghost": {},
488
+ "pt:prefix:outline": {},
489
+ "pt:prefix:secondary": {},
490
+ "pt:prefix:ghost": {},
491
+ "pt:suffix:outline": {},
492
+ "pt:suffix:secondary": {},
493
+ "pt:suffix:ghost": {},
494
+ "pt:clear:outline": {},
495
+ "pt:clear:secondary": {},
496
+ "pt:clear:ghost": {},
497
+ "pt:activator:outline": {},
498
+ "pt:activator:secondary": {},
499
+ "pt:activator:ghost": {},
460
500
  pt: {},
461
501
  adaptive: {
462
502
  type: Boolean,
@@ -531,45 +571,49 @@ var Ve = ["data-value"], He = [
531
571
  "update:modelValue",
532
572
  "update:time"
533
573
  ],
534
- setup(Oe, { emit: qe }) {
535
- let Je = Oe, Ye = qe, Xe = Fe(), { props: D, emit: O, showAsterisk: Ze, errors: Qe, required: $e, ariaRequired: et, model: tt, readonly: nt, locked: rt } = ge(Je, Ye, {
574
+ setup(o, { emit: Oe }) {
575
+ let qe = o, Je = Oe, Ye = Fe(), { props: O, emit: k, showAsterisk: Xe, errors: Ze, required: Qe, ariaRequired: $e, model: et, readonly: tt, locked: nt } = _e(qe, Je, {
536
576
  componentName: "BbDatePickerInput",
537
- identifierFallback: () => Je.label,
577
+ identifierFallback: () => qe.label,
538
578
  leaveOn: "inactive"
539
- }), it = /^\d{4}-\d{2}-\d{2}(:append)?$/, at = () => Object.keys(Xe).filter((e) => it.test(e)), ot = o();
540
- process.env.NODE_ENV !== "production" && l("BbDatePickerInput", c("BbDatePickerInput"), { fixedSlots: ["append:outer"] });
541
- let k = b(!1), st = b(!1), ct = () => {
542
- st.value = !1;
543
- }, A = b(!1), lt = () => {
544
- A.value = !0, O("show");
545
- }, ut = () => {
546
- A.value = !1, O("hide");
579
+ }), rt = /^\d{4}-\d{2}-\d{2}(:append)?$/, it = () => Object.keys(Ye).filter((e) => rt.test(e)), at = s();
580
+ process.env.NODE_ENV !== "production" && u("BbDatePickerInput", l("BbDatePickerInput"), { fixedSlots: ["append:outer"] });
581
+ let A = x(!1), ot = x(!1), st = () => {
582
+ ot.value = !1;
583
+ }, j = x(!1), ct = () => {
584
+ j.value = !0, k("show");
585
+ }, lt = () => {
586
+ j.value = !1, k("hide");
547
587
  };
548
588
  Me(() => {
549
- k.value ? Lt() : ct();
550
- }), je(ct);
551
- let dt = p(() => D.persistentHint || st.value), j = p(() => n(D.modelValue)), ft = p(() => D.labelMode ?? ot.defaultInputLabelMode), pt = [
589
+ A.value ? Lt() : st();
590
+ }), je(st);
591
+ let ut = m(() => O.persistentHint || ot.value), M = m(() => n(O.modelValue)), dt = m(() => O.labelMode ?? at.defaultInputLabelMode), ft = [
552
592
  "panel",
553
593
  "sheet",
554
- ...fe
555
- ], M = a({
594
+ ...pe
595
+ ], N = a({
556
596
  component: "BbDatePickerInput",
557
597
  attrs: Pe(),
558
598
  controlAttrs: r,
559
- props: D,
560
- parts: be.parts,
561
- states: be.states,
599
+ props: O,
600
+ parts: p.parts,
601
+ states: p.states,
562
602
  active: {
563
- ...i(D, () => j.value),
564
- open: () => A.value
603
+ ...i(O, () => M.value),
604
+ open: () => j.value
605
+ },
606
+ variant: {
607
+ ...p.variant,
608
+ current: () => O.variant ?? "outline"
565
609
  }
566
- }), N = p(() => D.type === "datetime"), P = p(() => te(D.type)), mt = p(() => D.floating || P.value), F = p(() => ne(D.type)), ht = p(() => ee(D.type));
567
- T.extend(Re), T.extend(ze), T.extend(Be), le();
568
- let { t: I } = d(), L = e(), R = b(null), gt = (e) => `bdpi-description_${e}`, _t = (e, t) => {
569
- let n = [e, gt(t)].filter((e) => !!e?.trim()).flatMap((e) => e.split(/\s+/)).filter(Boolean);
610
+ }), P = m(() => O.type === "datetime"), F = m(() => ne(O.type)), pt = m(() => O.floating || F.value), I = m(() => re(O.type)), mt = m(() => te(O.type));
611
+ E.extend(Re), E.extend(ze), E.extend(Be), ue();
612
+ let { t: L } = f(), R = e(), z = x(null), ht = (e) => `bdpi-description_${e}`, gt = (e, t) => {
613
+ let n = [e, ht(t)].filter((e) => !!e?.trim()).flatMap((e) => e.split(/\s+/)).filter(Boolean);
570
614
  return Array.from(new Set(n)).join(" ");
571
- }, { isMobile: z } = u(), vt = p(() => D.disableWriting === "mobile" ? !z.value : D.disableWriting === "desktop" ? z.value : !D.disableWriting), yt = p(() => !vt.value && !wt.value && !D.disabled && !D.readonly), bt = () => {
572
- !yt.value || A.value || (R.value?.$el)?.querySelector(".bb-segmented-field__activator")?.click();
615
+ }, { isMobile: _t } = d(), vt = m(() => O.disableWriting === "mobile" ? !_t.value : O.disableWriting === "desktop" ? _t.value : !O.disableWriting), yt = m(() => !vt.value && !wt.value && !O.disabled && !O.readonly), bt = () => {
616
+ !yt.value || j.value || (z.value?.$el)?.querySelector(".bb-segmented-field__activator")?.click();
573
617
  }, xt = (e) => {
574
618
  let t = e.target;
575
619
  t?.closest(".bb-field-input__box") && (t.closest(".bb-segmented-field__activator, .bb-clearable-button, .bb-date-picker__panel, [role=\"dialog\"]") || bt());
@@ -578,47 +622,47 @@ var Ve = ["data-value"], He = [
578
622
  t.preventDefault(), bt();
579
623
  return;
580
624
  }
581
- if (D.readonly && St(t)) {
625
+ if (O.readonly && St(t)) {
582
626
  t.preventDefault();
583
627
  return;
584
628
  }
585
629
  gn(e, t);
586
- }, wt = p(() => D.disableCalendar === "mobile" ? z.value : D.disableCalendar === "desktop" ? !z.value : !!D.disableCalendar), Tt = p(() => !!D.readonly || !vt.value), Et = (e) => vt.value ? on.value[e].kind === "enum" ? "none" : "numeric" : "none", Dt = (e) => e.includes("T"), B = (e) => {
587
- if (P.value) {
588
- let t = T(e, ht.value, !0);
589
- return t.isValid() ? t : T(e);
630
+ }, wt = m(() => O.disableCalendar === "mobile" ? _t.value : O.disableCalendar === "desktop" ? !_t.value : !!O.disableCalendar), Tt = m(() => !!O.readonly || !vt.value), Et = (e) => vt.value ? on.value[e].kind === "enum" ? "none" : "numeric" : "none", Dt = (e) => e.includes("T"), B = (e) => {
631
+ if (F.value) {
632
+ let t = E(e, mt.value, !0);
633
+ return t.isValid() ? t : E(e);
590
634
  }
591
- return Dt(e) ? T(e, Ke, !0) : T(e, E, !0);
592
- }, Ot = p(() => ue(D.min, D.type, "min", (e) => L.warn(`BbDatePickerInput: ${e}`))), kt = p(() => ue(D.max, D.type, "max", (e) => L.warn(`BbDatePickerInput: ${e}`)));
593
- for (let [e, t] of [["min", D.min], ["max", D.max]]) if (t && (B(t).isValid() || L.throw(P.value ? `BbDatePickerInput: ${e} must be a ${ht.value} value (a longer date is accepted and rounded to the ${F.value}) with type="${D.type}"` : `BbDatePickerInput: ${e} must be in the format YYYY-MM-DD or YYYY-MM-DDTHH:mm`), P.value)) {
635
+ return Dt(e) ? E(e, Ke, !0) : E(e, D, !0);
636
+ }, Ot = m(() => de(O.min, O.type, "min", (e) => R.warn(`BbDatePickerInput: ${e}`))), kt = m(() => de(O.max, O.type, "max", (e) => R.warn(`BbDatePickerInput: ${e}`)));
637
+ for (let [e, t] of [["min", O.min], ["max", O.max]]) if (t && (B(t).isValid() || R.throw(F.value ? `BbDatePickerInput: ${e} must be a ${mt.value} value (a longer date is accepted and rounded to the ${I.value}) with type="${O.type}"` : `BbDatePickerInput: ${e} must be in the format YYYY-MM-DD or YYYY-MM-DDTHH:mm`), F.value)) {
594
638
  e === "min" ? Ot.value : kt.value;
595
639
  continue;
596
640
  }
597
- let At = D.disableWriting !== !0 && D.disableWriting !== "desktop", jt = D.disableCalendar !== !0 && D.disableCalendar !== "desktop", Mt = D.disableWriting !== !0 && D.disableWriting !== "mobile", Nt = D.disableCalendar !== !0 && D.disableCalendar !== "mobile";
598
- !At && !jt && L.throw("BbDatePickerInput: desktop users would have no interaction method — disableWriting:true (or \"desktop\") and disableCalendar:true (or \"desktop\") cannot be combined."), !Mt && !Nt && L.throw("BbDatePickerInput: mobile users would have no interaction method — combine disableWriting:\"mobile\" with disableCalendar:\"desktop\" to keep calendar interaction on mobile while staying keyboard-first on desktop.");
599
- let Pt = p(() => ({
600
- floating: mt.value,
601
- utc: D.utc,
602
- type: D.type
603
- })), V = (e) => ie(e, Pt.value), Ft = (e) => re(e, Pt.value), It = () => {
604
- k.value || (st.value = !0, O("active"), k.value = !0, document.addEventListener("focusin", H), document.addEventListener("click", H));
641
+ let At = O.disableWriting !== !0 && O.disableWriting !== "desktop", jt = O.disableCalendar !== !0 && O.disableCalendar !== "desktop", Mt = O.disableWriting !== !0 && O.disableWriting !== "mobile", Nt = O.disableCalendar !== !0 && O.disableCalendar !== "mobile";
642
+ !At && !jt && R.throw("BbDatePickerInput: desktop users would have no interaction method — disableWriting:true (or \"desktop\") and disableCalendar:true (or \"desktop\") cannot be combined."), !Mt && !Nt && R.throw("BbDatePickerInput: mobile users would have no interaction method — combine disableWriting:\"mobile\" with disableCalendar:\"desktop\" to keep calendar interaction on mobile while staying keyboard-first on desktop.");
643
+ let Pt = m(() => ({
644
+ floating: pt.value,
645
+ utc: O.utc,
646
+ type: O.type
647
+ })), V = (e) => ae(e, Pt.value), Ft = (e) => ie(e, Pt.value), It = () => {
648
+ A.value || (ot.value = !0, k("active"), A.value = !0, document.addEventListener("focusin", H), document.addEventListener("click", H));
605
649
  }, H = (e) => {
606
650
  let t = e.target;
607
- t instanceof HTMLElement && R.value?.$el && (R.value.$el.contains(t) || Lt());
651
+ t instanceof HTMLElement && z.value?.$el && (z.value.$el.contains(t) || Lt());
608
652
  }, Lt = () => {
609
- $({ finalize: !0 }), Vn() && (zn(), J()), k.value = !1, ct(), O("inactive"), document.removeEventListener("focusin", H), document.removeEventListener("click", H);
653
+ $({ finalize: !0 }), Vn() && (zn(), J()), A.value = !1, st(), k("inactive"), document.removeEventListener("focusin", H), document.removeEventListener("click", H);
610
654
  }, Rt = (e, t) => {
611
655
  let n = Ft(t);
612
656
  if (!n.isValid()) return;
613
657
  let r = K.value[e];
614
658
  r.day = n.format("DD"), r.month = n.format("MM"), r.year = n.format("YYYY");
615
659
  }, zt = { "onUpdate:modelValue": (e) => {
616
- if (e === null && D.range && (e = []), !N.value) {
617
- O("update:modelValue", e);
660
+ if (e === null && O.range && (e = []), !P.value) {
661
+ k("update:modelValue", e);
618
662
  return;
619
663
  }
620
664
  if (e === null || Array.isArray(e) && !e.length) {
621
- K.value.start = q(), K.value.end = q(), J(), Q(D.range ? [] : null);
665
+ K.value.start = q(), K.value.end = q(), J(), Q(O.range ? [] : null);
622
666
  return;
623
667
  }
624
668
  if (Array.isArray(e)) {
@@ -630,55 +674,55 @@ var Ve = ["data-value"], He = [
630
674
  } }, Bt = (e) => {
631
675
  let t = K.value[e];
632
676
  return !!(t.day && t.month && t.year && t.year.length === 4);
633
- }, Vt = b("start"), Ht = (e, t) => {
634
- Vt.value = e.segment, _n(e), O("focus", t);
635
- }, Ut = p(() => D.range ? Bt(Vt.value) ? Vt.value : Bt("end") ? "end" : "start" : "start"), Wt = ({ unit: e, value: t }) => {
677
+ }, Vt = x("start"), Ht = (e, t) => {
678
+ Vt.value = e.segment, _n(e), k("focus", t);
679
+ }, Ut = m(() => O.range ? Bt(Vt.value) ? Vt.value : Bt("end") ? "end" : "start" : "start"), Wt = ({ unit: e, value: t }) => {
636
680
  let n = K.value[Ut.value];
637
- e === "hour" ? Tn(n, parseInt(t, 10)) : e === "meridiem" ? n.meridiem = U.label(t === "PM" ? "PM" : "AM") : n[e] = t, n.hour || (D.ampm ? n.hour = "12" : n.hour = "00"), D.ampm && !n.meridiem && (n.meridiem = U.am.value), n.minute ||= "00", D.seconds && !n.second && (n.second = "00"), J(), $({ finalize: !1 });
638
- }, Gt = p(() => se(D.type)), Kt = (e) => {
639
- let t = oe(e, ot.locale, Gt.value);
640
- return N.value ? `${t} ${oe(e, ot.locale, ce(!!D.ampm, !!D.seconds))}` : t;
681
+ e === "hour" ? Tn(n, parseInt(t, 10)) : e === "meridiem" ? n.meridiem = U.label(t === "PM" ? "PM" : "AM") : n[e] = t, n.hour || (O.ampm ? n.hour = "12" : n.hour = "00"), O.ampm && !n.meridiem && (n.meridiem = U.am.value), n.minute ||= "00", O.seconds && !n.second && (n.second = "00"), J(), $({ finalize: !1 });
682
+ }, Gt = m(() => ce(O.type)), Kt = (e) => {
683
+ let t = se(e, at.locale, Gt.value);
684
+ return P.value ? `${t} ${se(e, at.locale, le(!!O.ampm, !!O.seconds))}` : t;
641
685
  }, qt = (e) => {
642
686
  if (Y(e) !== "complete") return null;
643
- let t = K.value[e], n = W.value, r = n.has("day") ? t.day.padStart(2, "0") : "01", i = n.has("month") ? t.month.padStart(2, "0") : "01", a = `${t.year.padStart(4, "0")}-${i}-${r}`, o = E;
644
- N.value && (a += `T${Gn(e)}`, o += D.seconds ? "THH:mm:ss" : "THH:mm");
645
- let s = T(a, o, !0);
687
+ let t = K.value[e], n = W.value, r = n.has("day") ? t.day.padStart(2, "0") : "01", i = n.has("month") ? t.month.padStart(2, "0") : "01", a = `${t.year.padStart(4, "0")}-${i}-${r}`, o = D;
688
+ P.value && (a += `T${Gn(e)}`, o += O.seconds ? "THH:mm:ss" : "THH:mm");
689
+ let s = E(a, o, !0);
646
690
  return s.isValid() ? s : null;
647
- }, Jt = p(() => {
648
- if (D.range) {
691
+ }, Jt = m(() => {
692
+ if (O.range) {
649
693
  let e = qt("start"), t = qt("end");
650
- return !e || !t ? I("datePickerInput.emptyRange").value : I("datePickerInput.changeSelectionRange", Kt(e), Kt(t)).value;
694
+ return !e || !t ? L("datePickerInput.emptyRange").value : L("datePickerInput.changeSelectionRange", Kt(e), Kt(t)).value;
651
695
  }
652
696
  let e = qt("start");
653
- return e ? I("datePickerInput.changeSelection", Kt(e)).value : I("datePickerInput.emptySelection").value;
697
+ return e ? L("datePickerInput.changeSelection", Kt(e)).value : L("datePickerInput.emptySelection").value;
654
698
  }), Yt = (e) => {
655
699
  if (!e.isValid()) return !0;
656
- let t = !0, n = (e) => P.value ? F.value : N.value && Dt(e) ? "minute" : "day", r = Ot.value, i = kt.value;
657
- return r && (t &&= e.isSameOrAfter(B(r), n(r))), i && (t &&= e.isSameOrBefore(B(i), n(i))), typeof D.selectable == "function" && (t &&= D.selectable(V(e))), !t;
700
+ let t = !0, n = (e) => F.value ? I.value : P.value && Dt(e) ? "minute" : "day", r = Ot.value, i = kt.value;
701
+ return r && (t &&= e.isSameOrAfter(B(r), n(r))), i && (t &&= e.isSameOrBefore(B(i), n(i))), typeof O.selectable == "function" && (t &&= O.selectable(V(e))), !t;
658
702
  }, Xt = () => {
659
- D.range ? (O("update:modelValue", []), N.value && (Z.value = [], O("update:time", []))) : (O("update:modelValue", null), N.value && (Z.value = null, O("update:time", null)));
703
+ O.range ? (k("update:modelValue", []), P.value && (Z.value = [], k("update:time", []))) : (k("update:modelValue", null), P.value && (Z.value = null, k("update:time", null)));
660
704
  }, Zt = /* @__PURE__ */ new Set([
661
705
  "hour",
662
706
  "minute",
663
707
  "second",
664
708
  "meridiem"
665
- ]), U = ae(), Qt = (e, t) => U.isPm(t) ? e === 12 ? 12 : e + 12 : e === 12 ? 0 : e, $t = (e) => {
709
+ ]), U = oe(), Qt = (e, t) => U.isPm(t) ? e === 12 ? 12 : e + 12 : e === 12 ? 0 : e, $t = (e) => {
666
710
  let t = e >= 12 ? "PM" : "AM", n = e % 12;
667
711
  return n === 0 && (n = 12), {
668
712
  hour: String(n).padStart(2, "0"),
669
713
  meridiem: t
670
714
  };
671
- }, en = p(() => {
672
- if (D.type === "year") return {
715
+ }, en = m(() => {
716
+ if (O.type === "year") return {
673
717
  order: ["year"],
674
718
  separator: "/"
675
719
  };
676
- let e = I("datePickerInput.monthFormatSingle").value;
677
- if (D.type === "month") return Se(e) ?? {
720
+ let e = L("datePickerInput.monthFormatSingle").value;
721
+ if (O.type === "month") return Se(e) ?? {
678
722
  order: ["month", "year"],
679
723
  separator: "/"
680
724
  };
681
- let t = I("datePickerInput.dateFormatSingle").value;
725
+ let t = L("datePickerInput.dateFormatSingle").value;
682
726
  return xe(t, e) ?? {
683
727
  order: [
684
728
  "day",
@@ -687,27 +731,27 @@ var Ve = ["data-value"], He = [
687
731
  ],
688
732
  separator: "/"
689
733
  };
690
- }), tn = p(() => en.value.order), W = p(() => new Set(tn.value)), nn = p(() => {
691
- if (!N.value) return [];
734
+ }), tn = m(() => en.value.order), W = m(() => new Set(tn.value)), nn = m(() => {
735
+ if (!P.value) return [];
692
736
  let e = ["hour", "minute"];
693
- return D.seconds && e.push("second"), D.ampm && e.push("meridiem"), e;
694
- }), G = p(() => {
737
+ return O.seconds && e.push("second"), O.ampm && e.push("meridiem"), e;
738
+ }), G = m(() => {
695
739
  let e = [...tn.value, ...nn.value], t = e.map((e) => ({
696
740
  segment: "start",
697
741
  field: e
698
742
  }));
699
- if (!D.range) return t;
743
+ if (!O.range) return t;
700
744
  let n = e.map((e) => ({
701
745
  segment: "end",
702
746
  field: e
703
747
  }));
704
748
  return [...t, ...n];
705
- }), rn = p(() => {
749
+ }), rn = m(() => {
706
750
  let e = /* @__PURE__ */ new Set(), t = /* @__PURE__ */ new Set();
707
751
  return G.value.forEach((n, r) => {
708
752
  e.has(n.segment) || (e.add(n.segment), t.add(r));
709
753
  }), t;
710
- }), an = (e) => rn.value.has(e), on = p(() => ({
754
+ }), an = (e) => rn.value.has(e), on = m(() => ({
711
755
  day: {
712
756
  kind: "numeric",
713
757
  maxLength: 2,
@@ -732,7 +776,7 @@ var Ve = ["data-value"], He = [
732
776
  requireFullLength: !0,
733
777
  label: "Year"
734
778
  },
735
- hour: D.ampm ? {
779
+ hour: O.ampm ? {
736
780
  kind: "numeric",
737
781
  maxLength: 2,
738
782
  max: 12,
@@ -770,7 +814,7 @@ var Ve = ["data-value"], He = [
770
814
  if (t.field === "meridiem") return "\xA0";
771
815
  let n = Zt.has(e.field), r = Zt.has(t.field);
772
816
  return n && r ? ":" : !n && r ? "\xA0" : en.value.separator;
773
- }, { fields: K, fieldRefs: cn, descriptorKey: ln, emptyFieldGroup: q, getSizedValue: un, minChars: dn, updateAllSizedValues: J, isOwnField: fn, focusField: pn, focusFirstField: mn, segmentStatus: Y, onFieldInput: hn, onFieldKeydown: gn, onFieldFocus: _n, onFieldBlur: vn, onFieldPaste: yn } = ve({
817
+ }, { fields: K, fieldRefs: cn, descriptorKey: ln, emptyFieldGroup: q, getSizedValue: un, minChars: dn, updateAllSizedValues: J, isOwnField: fn, focusField: pn, focusFirstField: mn, segmentStatus: Y, onFieldInput: hn, onFieldKeydown: gn, onFieldFocus: _n, onFieldBlur: vn, onFieldPaste: yn } = ye({
774
818
  fieldOrder: G,
775
819
  specs: on,
776
820
  segments: ["start", "end"],
@@ -806,8 +850,8 @@ var Ve = ["data-value"], He = [
806
850
  for (let n of Object.values(K.value)) n.meridiem === e && (n.meridiem = t);
807
851
  J();
808
852
  });
809
- let xn = (e, t) => D.range ? `${t}-${e.segment}-${e.field}` : `${t}-${e.field}`, Sn = (e) => {
810
- if (D.name) return D.range ? `${D.name}-${e.segment}-${e.field}` : `${D.name}-${e.field}`;
853
+ let xn = (e, t) => O.range ? `${t}-${e.segment}-${e.field}` : `${t}-${e.field}`, Sn = (e) => {
854
+ if (O.name) return O.range ? `${O.name}-${e.segment}-${e.field}` : `${O.name}-${e.field}`;
811
855
  }, Cn = {
812
856
  day: "datePickerInput.dayField",
813
857
  month: "datePickerInput.monthField",
@@ -817,10 +861,10 @@ var Ve = ["data-value"], He = [
817
861
  second: "datePickerInput.secondField",
818
862
  meridiem: "datePickerInput.meridiemField"
819
863
  }, wn = (e) => {
820
- let t = I(Cn[e.field]).value;
821
- return D.range ? I(e.segment === "start" ? "datePickerInput.startFieldLabel" : "datePickerInput.endFieldLabel", t).value : t;
864
+ let t = L(Cn[e.field]).value;
865
+ return O.range ? L(e.segment === "start" ? "datePickerInput.startFieldLabel" : "datePickerInput.endFieldLabel", t).value : t;
822
866
  }, Tn = (e, t) => {
823
- if (!D.ampm) {
867
+ if (!O.ampm) {
824
868
  e.hour = String(t).padStart(2, "0");
825
869
  return;
826
870
  }
@@ -829,8 +873,8 @@ var Ve = ["data-value"], He = [
829
873
  }, En = (e) => {
830
874
  if (!e.hour) return 0;
831
875
  let t = parseInt(e.hour, 10);
832
- return D.ampm ? Qt(t, e.meridiem || "AM") : t;
833
- }, Dn = p(() => D.seconds ? "HH:mm:ss" : "HH:mm"), On = (e) => e.format(Dn.value), kn = /^(\d{1,2}):(\d{1,2})(?::(\d{1,2}))?$/, An = (e) => {
876
+ return O.ampm ? Qt(t, e.meridiem || "AM") : t;
877
+ }, Dn = m(() => O.seconds ? "HH:mm:ss" : "HH:mm"), On = (e) => e.format(Dn.value), kn = /^(\d{1,2}):(\d{1,2})(?::(\d{1,2}))?$/, An = (e) => {
834
878
  if (!e) return null;
835
879
  let t = kn.exec(e);
836
880
  if (!t) return null;
@@ -841,28 +885,28 @@ var Ve = ["data-value"], He = [
841
885
  second: (i ?? "").padStart(i ? 2 : 0, "0")
842
886
  };
843
887
  }, jn = (e, t) => {
844
- if (!N.value) return;
888
+ if (!P.value) return;
845
889
  let n = An(t);
846
890
  if (!n) {
847
891
  e.hour = "", e.minute = "", e.second = "", e.meridiem = "";
848
892
  return;
849
893
  }
850
- Tn(e, parseInt(n.hour, 10)), e.minute = n.minute, e.second = D.seconds ? n.second : "";
851
- }, Mn = p(() => D.seconds ? "datePickerInput.timeFormatSeconds" : "datePickerInput.timeFormat"), Nn = p(() => {
852
- if (D.type === "month" || D.type === "year") {
853
- let e = D.type === "month" ? "month" : "year";
854
- return I(D.range ? `datePickerInput.${e}FormatRange` : `datePickerInput.${e}FormatSingle`).value;
894
+ Tn(e, parseInt(n.hour, 10)), e.minute = n.minute, e.second = O.seconds ? n.second : "";
895
+ }, Mn = m(() => O.seconds ? "datePickerInput.timeFormatSeconds" : "datePickerInput.timeFormat"), Nn = m(() => {
896
+ if (O.type === "month" || O.type === "year") {
897
+ let e = O.type === "month" ? "month" : "year";
898
+ return L(O.range ? `datePickerInput.${e}FormatRange` : `datePickerInput.${e}FormatSingle`).value;
855
899
  }
856
- if (!N.value) return I(D.range ? "datePickerInput.dateFormatRange" : "datePickerInput.dateFormatSingle").value;
857
- let e = `${I("datePickerInput.dateFormatSingle").value} ${I(Mn.value).value}`;
858
- return D.range ? `${e} – ${e}` : e;
859
- }), Pn = p(() => D.placeholder || Nn.value), Fn = p(() => G.value.every((e) => !K.value[e.segment][e.field])), In = (e) => {
900
+ if (!P.value) return L(O.range ? "datePickerInput.dateFormatRange" : "datePickerInput.dateFormatSingle").value;
901
+ let e = `${L("datePickerInput.dateFormatSingle").value} ${L(Mn.value).value}`;
902
+ return O.range ? `${e} – ${e}` : e;
903
+ }), Pn = m(() => O.placeholder || Nn.value), Fn = m(() => G.value.every((e) => !K.value[e.segment][e.field])), In = (e) => {
860
904
  if (!e) return q();
861
905
  let t = Ft(e);
862
906
  if (!t.isValid()) return q();
863
907
  let n = q();
864
- return W.value.has("day") && (n.day = t.format("DD")), W.value.has("month") && (n.month = t.format("MM")), n.year = t.format("YYYY"), N.value && !D.floating && (Tn(n, t.hour()), n.minute = t.format("mm"), n.second = D.seconds ? t.format("ss") : ""), n;
865
- }, Ln = (e) => Array.isArray(D.time) ? D.time[e === "start" ? 0 : 1] : e === "start" ? D.time : void 0, Rn = (e) => {
908
+ return W.value.has("day") && (n.day = t.format("DD")), W.value.has("month") && (n.month = t.format("MM")), n.year = t.format("YYYY"), P.value && !O.floating && (Tn(n, t.hour()), n.minute = t.format("mm"), n.second = O.seconds ? t.format("ss") : ""), n;
909
+ }, Ln = (e) => Array.isArray(O.time) ? O.time[e === "start" ? 0 : 1] : e === "start" ? O.time : void 0, Rn = (e) => {
866
910
  if (!e) {
867
911
  K.value = {
868
912
  start: q(),
@@ -870,7 +914,7 @@ var Ve = ["data-value"], He = [
870
914
  };
871
915
  return;
872
916
  }
873
- if (D.range) {
917
+ if (O.range) {
874
918
  let [t, n] = Array.isArray(e) ? e : [];
875
919
  K.value = {
876
920
  start: In(t),
@@ -883,85 +927,85 @@ var Ve = ["data-value"], He = [
883
927
  start: In(e),
884
928
  end: q()
885
929
  };
886
- if (N.value && D.floating) for (let e of ["start", "end"]) {
930
+ if (P.value && O.floating) for (let e of ["start", "end"]) {
887
931
  let t = K.value[e];
888
932
  t.day && jn(t, Ln(e));
889
933
  }
890
934
  }, zn = () => {
891
- Rn(D.modelValue);
935
+ Rn(O.modelValue);
892
936
  };
893
- Rn(D.modelValue), J();
937
+ Rn(O.modelValue), J();
894
938
  let Bn = (e) => {
895
- if (!N.value || D.floating) return;
939
+ if (!P.value || O.floating) return;
896
940
  let t;
897
- t = e ? Array.isArray(e) ? e.map((e) => On(Ft(e))) : On(Ft(e)) : null, Z.value = t, O("update:time", t);
941
+ t = e ? Array.isArray(e) ? e.map((e) => On(Ft(e))) : On(Ft(e)) : null, Z.value = t, k("update:time", t);
898
942
  };
899
- Ie(() => D.modelValue, (e) => {
943
+ Ie(() => O.modelValue, (e) => {
900
944
  if (e === null || Array.isArray(e) && e.length === 0) {
901
945
  Rn(e), J(), Bn(e);
902
946
  return;
903
947
  }
904
948
  let t = document.activeElement;
905
949
  t && fn(t) || (Rn(e), J(), Bn(e));
906
- }), Ie(() => D.time, (e) => {
907
- if (!N.value || s(e ?? null) === s(Z.value ?? null)) return;
950
+ }), Ie(() => O.time, (e) => {
951
+ if (!P.value || c(e ?? null) === c(Z.value ?? null)) return;
908
952
  let t = document.activeElement;
909
953
  if (!(t && fn(t))) {
910
954
  for (let e of ["start", "end"]) {
911
- if (e === "end" && !D.range) break;
955
+ if (e === "end" && !O.range) break;
912
956
  let t = Ln(e), n = K.value[e];
913
957
  t !== void 0 && jn(n, t);
914
958
  }
915
959
  J(), $({ finalize: !1 });
916
960
  }
917
961
  });
918
- let Vn = () => Y("start") === "partial" ? !0 : D.range ? Y("end") === "partial" : !1, Hn = (e) => {
962
+ let Vn = () => Y("start") === "partial" ? !0 : O.range ? Y("end") === "partial" : !1, Hn = (e) => {
919
963
  let t = K.value[e], n = W.value;
920
964
  if (n.has("day") && !t.day || n.has("month") && !t.month || !t.year) return null;
921
965
  let r = n.has("day") ? parseInt(t.day, 10) : 1, i = n.has("month") ? parseInt(t.month, 10) : 1, a = parseInt(t.year, 10);
922
966
  if (r < 1 || r > 31 || i < 1 || i > 12 || a < 1e3 || a > 9999) return null;
923
967
  let o = t.year.padStart(4, "0"), s = String(i).padStart(2, "0"), c = String(r).padStart(2, "0"), l = "", u = "";
924
- if (N.value) {
925
- if (D.ampm && t.hour) {
968
+ if (P.value) {
969
+ if (O.ampm && t.hour) {
926
970
  let e = parseInt(t.hour, 10);
927
971
  if (e < 1 || e > 12) return null;
928
972
  }
929
- let e = String(En(t)).padStart(2, "0"), n = (t.minute || "0").padStart(2, "0"), r = ((D.seconds ? t.second : "") || "0").padStart(2, "0");
973
+ let e = String(En(t)).padStart(2, "0"), n = (t.minute || "0").padStart(2, "0"), r = ((O.seconds ? t.second : "") || "0").padStart(2, "0");
930
974
  if (parseInt(e, 10) > 23 || parseInt(n, 10) > 59 || parseInt(r, 10) > 59) return null;
931
975
  l = `T${e}:${n}:${r}`, u = "THH:mm:ss";
932
976
  }
933
- let d = T(`${o}-${s}-${c}${l}`, E + u, !0);
977
+ let d = E(`${o}-${s}-${c}${l}`, D + u, !0);
934
978
  if (!d.isValid()) {
935
- let t = T(`${o}-${s}-01`, E, !0).endOf("month").date(), n = Math.min(r, t);
936
- d = T(`${o}-${s}-${String(n).padStart(2, "0")}${l}`, E + u, !0), K.value[e].day = String(n).padStart(2, "0");
979
+ let t = E(`${o}-${s}-01`, D, !0).endOf("month").date(), n = Math.min(r, t);
980
+ d = E(`${o}-${s}-${String(n).padStart(2, "0")}${l}`, D + u, !0), K.value[e].day = String(n).padStart(2, "0");
937
981
  }
938
982
  return d.isValid() ? d : null;
939
983
  }, Un = (e) => {
940
984
  let t = q();
941
- return W.value.has("day") && (t.day = e.format("DD")), W.value.has("month") && (t.month = e.format("MM")), t.year = e.format("YYYY"), N.value && (Tn(t, e.hour()), t.minute = e.format("mm"), t.second = D.seconds ? e.format("ss") : ""), t;
985
+ return W.value.has("day") && (t.day = e.format("DD")), W.value.has("month") && (t.month = e.format("MM")), t.year = e.format("YYYY"), P.value && (Tn(t, e.hour()), t.minute = e.format("mm"), t.second = O.seconds ? e.format("ss") : ""), t;
942
986
  }, Wn = (e) => {
943
- let t = (t, n) => N.value && !n ? t.hour(e.hour()).minute(e.minute()).second(e.second()) : t, n = P.value ? F.value : N.value ? "minute" : "day", r = e, i = Ot.value, a = kt.value;
987
+ let t = (t, n) => P.value && !n ? t.hour(e.hour()).minute(e.minute()).second(e.second()) : t, n = F.value ? I.value : P.value ? "minute" : "day", r = e, i = Ot.value, a = kt.value;
944
988
  if (i) {
945
989
  let e = Dt(i), n = B(i);
946
- r.isBefore(n, P.value ? F.value : N.value && e ? "minute" : "day") && (r = P.value ? n : t(n, e));
990
+ r.isBefore(n, F.value ? I.value : P.value && e ? "minute" : "day") && (r = F.value ? n : t(n, e));
947
991
  }
948
992
  if (a) {
949
993
  let e = Dt(a), n = B(a);
950
- r.isAfter(n, P.value ? F.value : N.value && e ? "minute" : "day") && (r = P.value ? n.startOf(F.value) : t(n, e));
994
+ r.isAfter(n, F.value ? I.value : P.value && e ? "minute" : "day") && (r = F.value ? n.startOf(I.value) : t(n, e));
951
995
  }
952
996
  return r.isSame(e, n) || Yt(r) ? null : r;
953
997
  }, X = (e) => {
954
- O("error", e);
998
+ k("error", e);
955
999
  }, Gn = (e) => {
956
1000
  let t = K.value[e], n = String(En(t)).padStart(2, "0"), r = (t.minute || "0").padStart(2, "0");
957
- return D.seconds ? `${n}:${r}:${(t.second || "0").padStart(2, "0")}` : `${n}:${r}`;
958
- }, Z = b(void 0), Q = (e) => {
959
- if (O("update:modelValue", e), !N.value) return;
1001
+ return O.seconds ? `${n}:${r}:${(t.second || "0").padStart(2, "0")}` : `${n}:${r}`;
1002
+ }, Z = x(void 0), Q = (e) => {
1003
+ if (k("update:modelValue", e), !P.value) return;
960
1004
  let t;
961
- t = e === null ? null : Array.isArray(e) ? e.map((e, t) => Gn(t === 0 ? "start" : "end")) : Gn("start"), Z.value = t, O("update:time", t);
1005
+ t = e === null ? null : Array.isArray(e) ? e.map((e, t) => Gn(t === 0 ? "start" : "end")) : Gn("start"), Z.value = t, k("update:time", t);
962
1006
  }, $ = (e = {}) => {
963
1007
  let t = !!e.finalize, n = Y("start");
964
- if (!D.range) {
1008
+ if (!O.range) {
965
1009
  if (n === "empty") {
966
1010
  Q(null);
967
1011
  return;
@@ -1042,7 +1086,7 @@ var Ve = ["data-value"], He = [
1042
1086
  }
1043
1087
  u = e, d = !0, K.value.end = Un(e);
1044
1088
  }
1045
- if (u.isBefore(c, N.value ? "second" : "day")) {
1089
+ if (u.isBefore(c, P.value ? "second" : "day")) {
1046
1090
  if (!t) return;
1047
1091
  let e = [V(c), V(u)], n = [V(u), V(c)], r = { ...K.value.start };
1048
1092
  K.value.start = { ...K.value.end }, K.value.end = r, J(), Q(n), l && X({
@@ -1073,75 +1117,75 @@ var Ve = ["data-value"], He = [
1073
1117
  };
1074
1118
  return je(() => {
1075
1119
  document.removeEventListener("focusin", H), document.removeEventListener("click", H);
1076
- }), (e, n) => (y(), we(he, _({
1120
+ }), (e, n) => (b(), we(ge, v({
1077
1121
  id: e.id,
1078
1122
  class: "bb-date-picker-input",
1079
- clearable: e.clearable && j.value,
1123
+ clearable: e.clearable && M.value,
1080
1124
  compact: e.compact,
1081
1125
  description: e.description,
1082
1126
  disabled: e.disabled,
1083
- errors: C(Qe),
1127
+ errors: w(Ze),
1084
1128
  "has-errors": e.hasErrors,
1085
- "has-value": j.value,
1129
+ "has-value": M.value,
1086
1130
  "has-warnings": e.hasWarnings,
1087
1131
  "hide-label": e.hideLabel,
1088
1132
  hint: e.hint,
1089
1133
  "input-align": e.inputAlign,
1090
1134
  label: e.label,
1091
1135
  "label-align": e.labelAlign,
1092
- "label-mode": ft.value,
1136
+ "label-mode": dt.value,
1093
1137
  "label-position": e.labelPosition,
1094
1138
  layout: e.layout,
1095
1139
  loading: e.loading,
1096
1140
  name: e.name,
1097
- passthrough: C(M),
1098
- readonly: C(nt),
1141
+ passthrough: w(N),
1142
+ readonly: w(tt),
1099
1143
  reverse: e.reverse,
1100
- "show-asterisk": C(Ze),
1101
- "show-hint": dt.value,
1144
+ "show-asterisk": w(Xe),
1145
+ "show-hint": ut.value,
1102
1146
  warnings: e.warnings
1103
- }, C(M).forwardAttrs), Ee({
1104
- label: w((t) => [x(e.$slots, "label", v(g(t)))]),
1105
- input: w(({ id: r, hasErrors: i, hasWarnings: a, ariaDescribedby: o }) => [De(_e, {
1147
+ }, w(N).forwardAttrs), Ee({
1148
+ label: T((t) => [S(e.$slots, "label", y(_(t)))]),
1149
+ input: T(({ id: r, hasErrors: i, hasWarnings: a, ariaDescribedby: o }) => [De(ve, {
1106
1150
  ref_key: "wrapper",
1107
- ref: R,
1108
- active: k.value,
1109
- "append:icon": C(D)["append:icon"],
1151
+ ref: z,
1152
+ active: A.value,
1153
+ "append:icon": w(O)["append:icon"],
1110
1154
  class: ke(["bb-date-picker-input__field", { "bb-date-picker-input__field--range": e.range }]),
1111
- clearable: e.clearable && !C(t)(C(tt)),
1155
+ clearable: e.clearable && !w(t)(w(et)),
1112
1156
  compact: e.compact,
1113
1157
  disabled: e.disabled,
1114
1158
  "has-errors": i,
1115
- "has-value": j.value,
1159
+ "has-value": M.value,
1116
1160
  "has-warnings": a,
1117
1161
  loading: e.loading,
1118
- passthrough: C(M),
1119
- "prepend:icon": C(D)["prepend:icon"],
1120
- readonly: C(nt),
1162
+ passthrough: w(N),
1163
+ "prepend:icon": w(O)["prepend:icon"],
1164
+ readonly: w(tt),
1121
1165
  variant: e.variant,
1122
1166
  onClick: xt,
1123
1167
  "onClick:clear": Xt,
1124
1168
  onFocusin: It
1125
1169
  }, Ee({
1126
- "prepend:outer": w(() => [x(e.$slots, "prepend:outer")]),
1127
- prepend: w(() => [x(e.$slots, "prepend")]),
1128
- append: w(() => [wt.value ? Te("", !0) : (y(), we(pe, {
1170
+ "prepend:outer": T(() => [S(e.$slots, "prepend:outer")]),
1171
+ prepend: T(() => [S(e.$slots, "prepend")]),
1172
+ append: T(() => [wt.value ? Te("", !0) : (b(), we(me, {
1129
1173
  key: 0,
1130
1174
  "active-segment": Ut.value,
1131
1175
  adaptive: e.adaptive,
1132
1176
  ampm: e.ampm,
1133
- anchor: R.value,
1177
+ anchor: z.value,
1134
1178
  disabled: e.disabled,
1135
1179
  "first-day-of-week": e.firstDayOfWeek,
1136
1180
  floating: e.floating,
1137
1181
  label: Jt.value,
1138
1182
  max: e.max,
1139
1183
  min: e.min,
1140
- "model-value": C(tt),
1184
+ "model-value": w(et),
1141
1185
  "off-canvas-props": e.offCanvasProps,
1142
- pt: C(M).forward(pt, C(de).states),
1186
+ pt: w(N).forward(ft, w(fe).states),
1143
1187
  range: e.range,
1144
- readonly: C(nt),
1188
+ readonly: w(tt),
1145
1189
  seconds: e.seconds,
1146
1190
  selectable: e.selectable,
1147
1191
  step: e.step,
@@ -1150,27 +1194,27 @@ var Ve = ["data-value"], He = [
1150
1194
  type: e.type,
1151
1195
  utc: e.utc,
1152
1196
  onGridPick: zt["onUpdate:modelValue"],
1153
- onHidden: n[1] ||= (e) => C(O)("hidden"),
1154
- onHide: ut,
1155
- onShow: lt,
1156
- onShown: n[2] ||= (e) => C(O)("shown"),
1197
+ onHidden: n[1] ||= (e) => w(k)("hidden"),
1198
+ onHide: lt,
1199
+ onShow: ct,
1200
+ onShown: n[2] ||= (e) => w(k)("shown"),
1157
1201
  onTimePick: Wt
1158
1202
  }, Ee({
1159
- activator: w(({ props: t }) => [h("button", _({
1160
- "aria-disabled": C(rt) || void 0,
1203
+ activator: T(({ props: t }) => [g("button", v({
1204
+ "aria-disabled": w(nt) || void 0,
1161
1205
  class: "bb-segmented-field__activator",
1162
1206
  disabled: e.disabled || e.readonly,
1163
1207
  type: "button"
1164
- }, _(t, C(M).activator)), [De(f, {
1208
+ }, v(t, w(N).activator)), [De(ee, {
1165
1209
  class: "bb-segmented-field__trigger-icon",
1166
- icon: C(ye)
1210
+ icon: w(be)
1167
1211
  }, null, 8, ["icon"])], 16, We)]),
1168
- day: w((t) => [x(e.$slots, "day", v(g(t)))]),
1169
- "day:append": w((t) => [x(e.$slots, "day:append", v(g(t)))]),
1212
+ day: T((t) => [S(e.$slots, "day", y(_(t)))]),
1213
+ "day:append": T((t) => [S(e.$slots, "day:append", y(_(t)))]),
1170
1214
  _: 2
1171
- }, [Ne(at(), (t) => ({
1215
+ }, [Ne(it(), (t) => ({
1172
1216
  name: t,
1173
- fn: w((n) => [x(e.$slots, t, v(g(n)))])
1217
+ fn: T((n) => [S(e.$slots, t, y(_(n)))])
1174
1218
  }))]), 1032, [
1175
1219
  "active-segment",
1176
1220
  "adaptive",
@@ -1195,30 +1239,30 @@ var Ve = ["data-value"], He = [
1195
1239
  "type",
1196
1240
  "utc",
1197
1241
  "onGridPick"
1198
- ])), x(e.$slots, "append", {}, () => [e.$slots.suffix ? (y(), m("span", _({
1242
+ ])), S(e.$slots, "append", {}, () => [e.$slots.suffix ? (b(), h("span", v({
1199
1243
  key: 0,
1200
1244
  class: "bb-field-input__suffix"
1201
- }, C(M).suffix), [x(e.$slots, "suffix")], 16)) : Te("", !0)])]),
1202
- "append:outer": w(() => [x(e.$slots, "append:outer")]),
1203
- default: w(() => [h("div", {
1245
+ }, w(N).suffix), [S(e.$slots, "suffix")], 16)) : Te("", !0)])]),
1246
+ "append:outer": T(() => [S(e.$slots, "append:outer")]),
1247
+ default: T(() => [g("div", {
1204
1248
  class: ke(["bb-segmented-field__fields", {
1205
1249
  "bb-segmented-field__fields--empty": Fn.value,
1206
1250
  "bb-segmented-field__fields--range": e.range
1207
1251
  }]),
1208
- style: Ae({ "--fields-min-ch": C(dn) })
1209
- }, [Fn.value ? (y(), m("span", {
1252
+ style: Ae({ "--fields-min-ch": w(dn) })
1253
+ }, [Fn.value ? (b(), h("span", {
1210
1254
  key: 0,
1211
1255
  "aria-hidden": "true",
1212
1256
  class: "bb-segmented-field__placeholder",
1213
- onClick: n[0] ||= (...e) => C(mn) && C(mn)(...e)
1214
- }, S(Pn.value), 1)) : Te("", !0), (y(!0), m(Ce, null, Ne(G.value, (t, n) => (y(), m(Ce, { key: C(ln)(t) }, [h("span", {
1257
+ onClick: n[0] ||= (...e) => w(mn) && w(mn)(...e)
1258
+ }, C(Pn.value), 1)) : Te("", !0), (b(!0), h(Ce, null, Ne(G.value, (t, n) => (b(), h(Ce, { key: w(ln)(t) }, [g("span", {
1215
1259
  class: "bb-segmented-field__field-sizer",
1216
- "data-value": C(un)(t)
1217
- }, [Le(h("input", _({
1260
+ "data-value": w(un)(t)
1261
+ }, [Le(g("input", v({
1218
1262
  id: n === 0 ? r : xn(t, r),
1219
1263
  ref_for: !0,
1220
- ref: (e) => C(cn)[C(ln)(t)] = e,
1221
- "aria-describedby": _t(o, r),
1264
+ ref: (e) => w(cn)[w(ln)(t)] = e,
1265
+ "aria-describedby": gt(o, r),
1222
1266
  "aria-disabled": e.disabled || void 0,
1223
1267
  "aria-invalid": i ? "true" : void 0,
1224
1268
  "aria-label": wn(t),
@@ -1231,31 +1275,31 @@ var Ve = ["data-value"], He = [
1231
1275
  maxlength: on.value[t.field].maxLength,
1232
1276
  name: Sn(t),
1233
1277
  readonly: Tt.value,
1234
- required: C($e),
1235
- "aria-required": C(et),
1278
+ required: w(Qe),
1279
+ "aria-required": w($e),
1236
1280
  tabindex: an(n) ? 0 : -1,
1237
1281
  type: "text",
1238
- value: C(K)[t.segment][t.field],
1239
- onBlur: (e) => C(vn)(t),
1282
+ value: w(K)[t.segment][t.field],
1283
+ onBlur: (e) => w(vn)(t),
1240
1284
  onFocus: (e) => Ht(t, e),
1241
1285
  onInput: (e) => bn(t, e),
1242
1286
  onKeydown: (e) => Ct(t, e),
1243
- onPaste: (e) => C(yn)(t, e)
1244
- }, _(C(M).controlAttrs, C(M).input)), null, 16, He), [[C(me)]])], 8, Ve), n < G.value.length - 1 ? (y(), m("span", {
1287
+ onPaste: (e) => w(yn)(t, e)
1288
+ }, v(w(N).controlAttrs, w(N).input)), null, 16, He), [[w(he)]])], 8, Ve), n < G.value.length - 1 ? (b(), h("span", {
1245
1289
  key: 0,
1246
1290
  "aria-hidden": "true",
1247
1291
  class: ke(["bb-segmented-field__separator", { "bb-segmented-field__separator--range": G.value[n].segment !== G.value[n + 1].segment }]),
1248
1292
  role: "presentation",
1249
- onClick: (e) => C(pn)(G.value[n + 1], { select: !0 })
1250
- }, S(sn(G.value[n], G.value[n + 1])), 11, Ue)) : Te("", !0)], 64))), 128))], 6), h("span", {
1251
- id: gt(r),
1293
+ onClick: (e) => w(pn)(G.value[n + 1], { select: !0 })
1294
+ }, C(sn(G.value[n], G.value[n + 1])), 11, Ue)) : Te("", !0)], 64))), 128))], 6), g("span", {
1295
+ id: ht(r),
1252
1296
  class: "bb-date-picker-input__accessible-description",
1253
1297
  hidden: ""
1254
- }, S(C(I)("datePickerInput.dateFormat")) + " " + S(Nn.value), 9, Ge)]),
1298
+ }, C(w(L)("datePickerInput.dateFormat")) + " " + C(Nn.value), 9, Ge)]),
1255
1299
  _: 2
1256
1300
  }, [e.$slots.prefix ? {
1257
1301
  name: "prefix",
1258
- fn: w(() => [x(e.$slots, "prefix")]),
1302
+ fn: T(() => [S(e.$slots, "prefix")]),
1259
1303
  key: "0"
1260
1304
  } : void 0]), 1032, [
1261
1305
  "active",
@@ -1276,7 +1320,7 @@ var Ve = ["data-value"], He = [
1276
1320
  _: 2
1277
1321
  }, [e.$slots.description ? {
1278
1322
  name: "description",
1279
- fn: w((t) => [x(e.$slots, "description", v(g(t)))]),
1323
+ fn: T((t) => [S(e.$slots, "description", y(_(t)))]),
1280
1324
  key: "0"
1281
1325
  } : void 0]), 1040, [
1282
1326
  "id",