bitboss-ui 3.0.0-beta.73 → 3.0.0-beta.75

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 (345) hide show
  1. package/README.md +4 -2
  2. package/bin/bitboss-ui-mcp.mjs +101 -3
  3. package/bin/bitboss-ui.mjs +6 -1
  4. package/bin/cli.mjs +31 -5
  5. package/dist/ai/BbAvatar.md +86 -58
  6. package/dist/ai/BbBadge.md +5 -5
  7. package/dist/ai/BbBreadcrumbs.md +2 -2
  8. package/dist/ai/BbButton.md +2 -2
  9. package/dist/ai/BbCalendar.md +9 -5
  10. package/dist/ai/BbCheckboxGroup.md +5 -4
  11. package/dist/ai/BbColorInput.md +12 -0
  12. package/dist/ai/BbColorPalette.md +19 -15
  13. package/dist/ai/BbConfirmPortal.md +1 -1
  14. package/dist/ai/BbDatePicker.md +16 -3
  15. package/dist/ai/BbDatePickerInput.md +17 -1
  16. package/dist/ai/BbDialog.md +16 -4
  17. package/dist/ai/BbDropdown.md +175 -67
  18. package/dist/ai/BbDropdownButton.md +27 -8
  19. package/dist/ai/BbForm.md +4 -1
  20. package/dist/ai/BbHoverCardPortal.md +1 -1
  21. package/dist/ai/BbNumberInput.md +8 -4
  22. package/dist/ai/BbPopoverPortal.md +1 -1
  23. package/dist/ai/BbRadioGroup.md +4 -4
  24. package/dist/ai/BbSelect.md +79 -67
  25. package/dist/ai/BbSelectPopover.md +24 -5
  26. package/dist/ai/BbSwitchGroup.md +5 -4
  27. package/dist/ai/BbTable.md +59 -34
  28. package/dist/ai/BbTimePicker.md +16 -3
  29. package/dist/ai/BbTimePickerInput.md +15 -1
  30. package/dist/ai/BbToast.md +3 -2
  31. package/dist/ai/BbToastPortal.md +1 -1
  32. package/dist/ai/BbTree.md +5 -1
  33. package/dist/ai/CommonPopover.md +1 -0
  34. package/dist/ai/FlatListBox.md +1 -0
  35. package/dist/ai/GroupedListBox.md +1 -0
  36. package/dist/ai/ListBox.md +1 -0
  37. package/dist/ai/OptionsContainer.md +4 -4
  38. package/dist/ai/changelog.json +215 -6
  39. package/dist/ai/components.json +77 -43
  40. package/dist/ai/composables/useToast.md +2 -2
  41. package/dist/ai/design-tokens.json +60 -0
  42. package/dist/ai/guides/agent-contract.md +8 -4
  43. package/dist/ai/guides/design-tokens.md +33 -0
  44. package/dist/ai/guides/eslint-rules.md +1 -1
  45. package/dist/ai/guides/fetch-items-playbook.md +7 -11
  46. package/dist/ai/guides/inertia-helpers.md +613 -53
  47. package/dist/ai/guides/migration/adoption-checklist.md +5 -5
  48. package/dist/ai/guides/migration/components/bb-color-palette.md +11 -11
  49. package/dist/ai/guides/migration/components/bb-dropdown-button.md +1 -0
  50. package/dist/ai/guides/migration/components/bb-dropdown.md +1 -0
  51. package/dist/ai/guides/migration/components/bb-table.md +2 -1
  52. package/dist/ai/guides/migration/components/bb-toast.md +2 -2
  53. package/dist/ai/guides/migration/v2-to-v3.md +46 -5
  54. package/dist/ai/guides/migration/v3-beta-tooling.md +4 -0
  55. package/dist/ai/guides/passthrough.md +3 -3
  56. package/dist/ai/guides/preset-components.md +15 -2
  57. package/dist/ai/guides/reporting.md +49 -0
  58. package/dist/ai/helpers/inertia/manifest.json +33 -38
  59. package/dist/ai/helpers/inertia/useHasChanged.ts +25 -37
  60. package/dist/ai/helpers/inertia/useQuery.ts +24 -6
  61. package/dist/ai/helpers/inertia/utils.ts +552 -3
  62. package/dist/ai/index.md +2 -1
  63. package/dist/ai/manifest/common.json +1 -0
  64. package/dist/ai/manifest/components/BbAlert.tree.json +1 -1
  65. package/dist/ai/manifest/components/BbAvatar.json +5 -2
  66. package/dist/ai/manifest/components/BbAvatar.tree.json +32 -2
  67. package/dist/ai/manifest/components/BbCalendar.json +2 -2
  68. package/dist/ai/manifest/components/BbCarousel.json +0 -3
  69. package/dist/ai/manifest/components/BbCheckboxGroup.json +2 -2
  70. package/dist/ai/manifest/components/BbCheckboxGroup.tree.json +2 -0
  71. package/dist/ai/manifest/components/BbColorInput.json +5 -2
  72. package/dist/ai/manifest/components/BbColorPalette.json +7 -4
  73. package/dist/ai/manifest/components/BbColorPalette.removed.json +1 -2
  74. package/dist/ai/manifest/components/BbConfirmPortal.json +1 -1
  75. package/dist/ai/manifest/components/BbDatePicker.json +6 -3
  76. package/dist/ai/manifest/components/BbDatePickerInput.json +3 -0
  77. package/dist/ai/manifest/components/BbDialog.tree.json +7 -1
  78. package/dist/ai/manifest/components/BbDropdown.json +23 -17
  79. package/dist/ai/manifest/components/BbDropdown.removed.json +2 -1
  80. package/dist/ai/manifest/components/BbDropdown.tree.json +16 -5
  81. package/dist/ai/manifest/components/BbDropdownButton.json +15 -9
  82. package/dist/ai/manifest/components/BbDropdownButton.removed.json +2 -1
  83. package/dist/ai/manifest/components/BbDropdownButton.tree.json +2 -0
  84. package/dist/ai/manifest/components/BbForm.json +1 -1
  85. package/dist/ai/manifest/components/BbHoverCard.json +1 -1
  86. package/dist/ai/manifest/components/BbHoverCardPortal.json +1 -1
  87. package/dist/ai/manifest/components/BbNumberInput.json +1 -1
  88. package/dist/ai/manifest/components/BbOffCanvas.tree.json +2 -0
  89. package/dist/ai/manifest/components/BbPopover.json +1 -1
  90. package/dist/ai/manifest/components/BbPopoverPortal.json +1 -1
  91. package/dist/ai/manifest/components/BbRadioGroup.json +2 -2
  92. package/dist/ai/manifest/components/BbRadioGroup.tree.json +2 -0
  93. package/dist/ai/manifest/components/BbSelect.json +10 -7
  94. package/dist/ai/manifest/components/BbSelectPopover.json +7 -4
  95. package/dist/ai/manifest/components/BbSelectPopover.tree.json +5 -1
  96. package/dist/ai/manifest/components/BbSwitchGroup.json +2 -2
  97. package/dist/ai/manifest/components/BbSwitchGroup.tree.json +2 -0
  98. package/dist/ai/manifest/components/BbTable.json +6 -6
  99. package/dist/ai/manifest/components/BbTable.tree.json +16 -6
  100. package/dist/ai/manifest/components/BbTimePicker.json +7 -4
  101. package/dist/ai/manifest/components/BbTimePickerInput.json +5 -2
  102. package/dist/ai/manifest/components/BbToastPortal.json +1 -1
  103. package/dist/ai/manifest/components/BbTree.json +1 -1
  104. package/dist/ai/manifest/components/CommonPopover.json +2 -1
  105. package/dist/ai/manifest/components/FlatListBox.json +2 -1
  106. package/dist/ai/manifest/components/GroupedListBox.json +2 -1
  107. package/dist/ai/manifest/components/ListBox.json +2 -1
  108. package/dist/ai/manifest/components/OptionsContainer.json +6 -4
  109. package/dist/ai/manifest/index.json +2 -2
  110. package/dist/ai/manifest/meta.json +36 -3
  111. package/dist/ai/manifest/types.advanced.json +81 -80
  112. package/dist/ai/manifest/types.api.json +64 -65
  113. package/dist/ai/manifest/types.wrapper.json +155 -118
  114. package/dist/ai/recipes/inertia/layout-scaffold.md +3 -1
  115. package/dist/ai/recipes/nuxt/layout-scaffold.md +3 -1
  116. package/dist/ai/recipes/vue/layout-scaffold.md +3 -1
  117. package/dist/ai/source/BbAlert.md +16 -4
  118. package/dist/ai/source/BbAvatar.md +121 -9
  119. package/dist/ai/source/BbBadge.md +12 -5
  120. package/dist/ai/source/BbBreadcrumbs.md +56 -55
  121. package/dist/ai/source/BbButton.md +41 -25
  122. package/dist/ai/source/BbCalendar.md +22 -12
  123. package/dist/ai/source/BbCarousel.md +31 -28
  124. package/dist/ai/source/BbCheckboxGroup.md +15 -9
  125. package/dist/ai/source/BbColorInput.md +19 -0
  126. package/dist/ai/source/BbColorPalette.md +59 -12
  127. package/dist/ai/source/BbConfirm.md +7 -0
  128. package/dist/ai/source/BbConfirmPortal.md +9 -4
  129. package/dist/ai/source/BbDatePicker.md +71 -22
  130. package/dist/ai/source/BbDatePickerInput.md +72 -9
  131. package/dist/ai/source/BbDialog.md +45 -2
  132. package/dist/ai/source/BbDropdown.md +263 -63
  133. package/dist/ai/source/BbDropdownButton.md +27 -2
  134. package/dist/ai/source/BbDropdownGroup.md +121 -59
  135. package/dist/ai/source/BbForm.md +73 -6
  136. package/dist/ai/source/BbGallery.md +76 -55
  137. package/dist/ai/source/BbHost.md +12 -0
  138. package/dist/ai/source/BbHoverCard.md +7 -0
  139. package/dist/ai/source/BbHoverCardPortal.md +9 -5
  140. package/dist/ai/source/BbNumberInput.md +22 -16
  141. package/dist/ai/source/BbOffCanvas.md +48 -2
  142. package/dist/ai/source/BbPopover.md +7 -0
  143. package/dist/ai/source/BbPopoverPortal.md +9 -5
  144. package/dist/ai/source/BbRadio.md +4 -3
  145. package/dist/ai/source/BbRadioGroup.md +19 -10
  146. package/dist/ai/source/BbSelect.md +35 -20
  147. package/dist/ai/source/BbSelectPopover.md +116 -8
  148. package/dist/ai/source/BbSwitchGroup.md +11 -4
  149. package/dist/ai/source/BbTable.md +126 -32
  150. package/dist/ai/source/BbTag.md +10 -3
  151. package/dist/ai/source/BbTimePicker.md +69 -15
  152. package/dist/ai/source/BbTimePickerInput.md +45 -7
  153. package/dist/ai/source/BbToast.md +16 -2
  154. package/dist/ai/source/BbToastPortal.md +18 -6
  155. package/dist/ai/source/BbTree.md +1 -1
  156. package/dist/ai/source/CommonFieldInput.md +11 -5
  157. package/dist/ai/source/CommonPopover.md +28 -2
  158. package/dist/ai/source/FlatListBox.md +26 -5
  159. package/dist/ai/source/GroupedListBox.md +63 -11
  160. package/dist/ai/source/ListBox.md +4 -0
  161. package/dist/ai/source/OptionsContainer.md +29 -11
  162. package/dist/components/BbAlert/BbAlert.vue_vue_type_script_setup_true_lang.js +31 -26
  163. package/dist/components/BbAvatar/BbAvatar.vue.d.ts +1 -0
  164. package/dist/components/BbAvatar/BbAvatar.vue_vue_type_script_setup_true_lang.js +61 -43
  165. package/dist/components/BbAvatar/avatarIdentity.js +25 -0
  166. package/dist/components/BbAvatar/ptKeys.generated.d.ts +5 -1
  167. package/dist/components/BbAvatar/types.d.ts +24 -5
  168. package/dist/components/BbAvatar/types.js +5 -1
  169. package/dist/components/BbBadge/BadgeBodyContent.vue_vue_type_script_setup_true_lang.js +24 -23
  170. package/dist/components/BbBadge/BbBadge.vue_vue_type_script_setup_true_lang.js +80 -79
  171. package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue_vue_type_script_setup_true_lang.js +152 -158
  172. package/dist/components/BbButton/BbButton.vue_vue_type_script_setup_true_lang.js +100 -85
  173. package/dist/components/BbCalendar/BbCalendar.vue.d.ts +1 -1
  174. package/dist/components/BbCalendar/BbCalendar.vue_vue_type_script_setup_true_lang.js +235 -234
  175. package/dist/components/BbCalendar/types.d.ts +2 -2
  176. package/dist/components/BbCalendar/useDayGrid.js +120 -123
  177. package/dist/components/BbCalendar/useDayjsLocale.js +11 -8
  178. package/dist/components/BbCarousel/BbCarousel.vue_vue_type_script_setup_true_lang.js +7 -7
  179. package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue_vue_type_script_setup_true_lang.js +126 -122
  180. package/dist/components/BbCheckboxGroup/types.d.ts +7 -11
  181. package/dist/components/BbColorInput/BbColorInput.vue.d.ts +2 -0
  182. package/dist/components/BbColorInput/BbColorInput.vue_vue_type_script_setup_true_lang.js +148 -141
  183. package/dist/components/BbColorInput/types.d.ts +7 -0
  184. package/dist/components/BbColorPalette/BbColorPalette.vue.d.ts +2 -0
  185. package/dist/components/BbColorPalette/BbColorPalette.vue_vue_type_script_setup_true_lang.js +239 -223
  186. package/dist/components/BbColorPalette/types.d.ts +8 -1
  187. package/dist/components/BbConfirm/BbConfirmPortal.vue.d.ts +2 -4
  188. package/dist/components/BbConfirm/types.d.ts +5 -0
  189. package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +4 -2
  190. package/dist/components/BbDatePicker/BbDatePicker.vue_vue_type_script_setup_true_lang.js +160 -143
  191. package/dist/components/BbDatePicker/types.d.ts +9 -2
  192. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +3 -1
  193. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +483 -496
  194. package/dist/components/BbDatePickerInput/types.d.ts +7 -0
  195. package/dist/components/BbDialog/BbDialog.vue_vue_type_script_setup_true_lang.js +252 -236
  196. package/dist/components/BbDialog/leaveGhost.js +38 -0
  197. package/dist/components/BbDialog/overlayActions.js +34 -20
  198. package/dist/components/BbDropdown/AdaptiveDropdown.vue_vue_type_script_setup_true_lang.js +92 -87
  199. package/dist/components/BbDropdown/BbDropdown.vue.d.ts +3 -0
  200. package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +419 -368
  201. package/dist/components/BbDropdown/BbDropdownList.vue_vue_type_script_setup_true_lang.js +384 -340
  202. package/dist/components/BbDropdown/DropdownFailures.vue.js +4 -0
  203. package/dist/components/BbDropdown/DropdownFailures.vue_vue_type_script_setup_true_lang.js +24 -0
  204. package/dist/components/BbDropdown/DropdownPipelineResolver.vue_vue_type_script_setup_true_lang.js +133 -119
  205. package/dist/components/BbDropdown/DropdownRow.vue_vue_type_script_setup_true_lang.js +73 -45
  206. package/dist/components/BbDropdown/normalizeGroups.js +6 -2
  207. package/dist/components/BbDropdown/ptKeys.generated.d.ts +8 -0
  208. package/dist/components/BbDropdown/types.d.ts +73 -58
  209. package/dist/components/BbDropdown/types.js +1 -0
  210. package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +2 -0
  211. package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +93 -72
  212. package/dist/components/BbDropdownButton/ptKeys.generated.d.ts +48 -0
  213. package/dist/components/BbDropdownButton/types.d.ts +13 -2
  214. package/dist/components/BbDropdownButton/types.js +2 -0
  215. package/dist/components/BbForm/BbForm.vue.d.ts +2 -21
  216. package/dist/components/BbForm/BbForm.vue_vue_type_script_setup_true_lang.js +229 -227
  217. package/dist/components/BbForm/types.d.ts +31 -0
  218. package/dist/components/BbGallery/BbGallery.vue_vue_type_script_setup_true_lang.js +318 -296
  219. package/dist/components/BbHost/BbHost.vue_vue_type_script_setup_true_lang.js +7 -1
  220. package/dist/components/BbHoverCard/BbHoverCardPortal.vue.d.ts +2 -5
  221. package/dist/components/BbHoverCard/types.d.ts +5 -0
  222. package/dist/components/BbNumberInput/BbNumberInput.vue_vue_type_script_setup_true_lang.js +10 -6
  223. package/dist/components/BbNumberInput/numberDisplay.js +102 -106
  224. package/dist/components/BbNumberInput/types.d.ts +4 -3
  225. package/dist/components/BbOffCanvas/BbOffCanvas.vue_vue_type_script_setup_true_lang.js +425 -409
  226. package/dist/components/BbPopover/BbPopoverPortal.vue.d.ts +2 -5
  227. package/dist/components/BbPopover/types.d.ts +5 -0
  228. package/dist/components/BbRadio/types.d.ts +4 -3
  229. package/dist/components/BbRadioGroup/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +108 -106
  230. package/dist/components/BbRadioGroup/types.d.ts +4 -7
  231. package/dist/components/BbSelect/BbSelect.vue.d.ts +3 -1
  232. package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +167 -163
  233. package/dist/components/BbSelect/types.d.ts +23 -20
  234. package/dist/components/BbSelectPopover/BbSelectPopover.vue.d.ts +3 -1
  235. package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +680 -637
  236. package/dist/components/BbSelectPopover/types.d.ts +10 -4
  237. package/dist/components/BbSwitchGroup/BbSwitchGroup.vue_vue_type_script_setup_true_lang.js +159 -155
  238. package/dist/components/BbSwitchGroup/types.d.ts +3 -6
  239. package/dist/components/BbTable/BbTable.vue.d.ts +1 -3
  240. package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +1182 -1165
  241. package/dist/components/BbTable/BbTableDataRow.js +96 -96
  242. package/dist/components/BbTable/types.d.ts +11 -10
  243. package/dist/components/BbTag/BbTag.vue_vue_type_script_setup_true_lang.js +9 -3
  244. package/dist/components/BbTimePicker/BbTimePicker.vue.d.ts +4 -2
  245. package/dist/components/BbTimePicker/BbTimePicker.vue_vue_type_script_setup_true_lang.js +157 -140
  246. package/dist/components/BbTimePicker/types.d.ts +9 -2
  247. package/dist/components/BbTimePickerInput/BbTimePickerInput.vue.d.ts +3 -1
  248. package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +278 -268
  249. package/dist/components/BbTimePickerInput/types.d.ts +7 -0
  250. package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +12 -12
  251. package/dist/components/BbToast/BbToastPortal.vue.d.ts +2 -4
  252. package/dist/components/BbToast/types.d.ts +7 -2
  253. package/dist/components/BbTree/BbTreeLevel.vue_vue_type_script_setup_true_lang.js +56 -46
  254. package/dist/components/BbTree/types.d.ts +1 -1
  255. package/dist/components/CommonFieldInput/CommonFieldInput.vue_vue_type_script_setup_true_lang.js +36 -36
  256. package/dist/components/CommonPopover/CommonPopover.vue_vue_type_script_setup_true_lang.js +14 -2
  257. package/dist/components/CommonTimeSelector/useMeridiem.js +6 -6
  258. package/dist/components/FlatListBox/FlatListBox.vue_vue_type_script_setup_true_lang.js +115 -96
  259. package/dist/components/GroupedListBox/GroupedListBox.vue_vue_type_script_setup_true_lang.js +194 -166
  260. package/dist/components/ListBox/ListBox.vue_vue_type_script_setup_true_lang.js +7 -4
  261. package/dist/components/OptionsContainer/OptionsContainer.vue_vue_type_script_setup_true_lang.js +86 -77
  262. package/dist/composables/formSubmitLock.js +2 -1
  263. package/dist/composables/overlayRegistry.js +52 -42
  264. package/dist/composables/useActiveInactiveState.js +8 -4
  265. package/dist/composables/useBbDialog.js +5 -5
  266. package/dist/composables/useItemsGetter.js +34 -32
  267. package/dist/composables/useOpenModel.js +20 -0
  268. package/dist/composables/useOwnModel.js +16 -0
  269. package/dist/composables/useSegmentedFields.js +31 -20
  270. package/dist/deprecation/ai-deprecations.json.js +1 -1
  271. package/dist/i18n/currencyDigits.js +58 -0
  272. package/dist/i18n/locales/ar.json +2 -0
  273. package/dist/i18n/locales/cs.json +2 -0
  274. package/dist/i18n/locales/da.json +2 -0
  275. package/dist/i18n/locales/de-CH.json +2 -0
  276. package/dist/i18n/locales/de.json +2 -0
  277. package/dist/i18n/locales/el.json +2 -0
  278. package/dist/i18n/locales/en-GB.json +2 -0
  279. package/dist/i18n/locales/en.json +2 -0
  280. package/dist/i18n/locales/es-MX.json +2 -0
  281. package/dist/i18n/locales/es.json +2 -0
  282. package/dist/i18n/locales/fa.json +2 -0
  283. package/dist/i18n/locales/fi.json +2 -0
  284. package/dist/i18n/locales/fr.json +2 -0
  285. package/dist/i18n/locales/he.json +2 -0
  286. package/dist/i18n/locales/hu.json +2 -0
  287. package/dist/i18n/locales/it.json +2 -0
  288. package/dist/i18n/locales/ja.json +2 -0
  289. package/dist/i18n/locales/ko.json +2 -0
  290. package/dist/i18n/locales/nb.json +2 -0
  291. package/dist/i18n/locales/nl.json +2 -0
  292. package/dist/i18n/locales/pl.json +2 -0
  293. package/dist/i18n/locales/pt-BR.json +2 -0
  294. package/dist/i18n/locales/pt-PT.json +2 -0
  295. package/dist/i18n/locales/ro.json +2 -0
  296. package/dist/i18n/locales/ru.json +2 -0
  297. package/dist/i18n/locales/sv.json +2 -0
  298. package/dist/i18n/locales/tr.json +2 -0
  299. package/dist/i18n/locales/uk.json +2 -0
  300. package/dist/i18n/locales/zh-CN.json +2 -0
  301. package/dist/i18n/locales/zh-HK.json +2 -0
  302. package/dist/i18n/locales/zh-TW.json +2 -0
  303. package/dist/i18n/regionDates.js +250 -0
  304. package/dist/i18n/regionHints.js +30 -41
  305. package/dist/icon-scan.js +68 -61
  306. package/dist/index.d.ts +35 -31
  307. package/dist/llms-full.txt +1428 -400
  308. package/dist/llms-medium.txt +8 -4
  309. package/dist/llms.txt +4 -2
  310. package/dist/locale-blueprint.json +2 -0
  311. package/dist/styles.css +2 -2
  312. package/dist/types/ActionButton.d.ts +2 -1
  313. package/dist/types/CommonProps.d.ts +8 -0
  314. package/dist/types/Option.d.ts +10 -0
  315. package/dist/types/ptComponentMap.d.ts +3 -3
  316. package/dist/utilities/functions/hash.js +97 -64
  317. package/dist/utilities/functions/isEqual.js +33 -25
  318. package/dist/utilities/functions/slotContent.js +19 -0
  319. package/dist/utils/loadRetry.js +8 -0
  320. package/dist/utils/versionCheck.js +1 -1
  321. package/dist/vite-plugin.d.ts +2 -1
  322. package/dist/vite.js +11 -4
  323. package/llms.txt +4 -2
  324. package/package.json +3 -2
  325. package/scripts/README.md +3 -1
  326. package/scripts/lib/adoption-checklist.json +6 -5
  327. package/scripts/lib/agent-manifest.mjs +33 -6
  328. package/scripts/lib/agent-setup.mjs +90 -24
  329. package/scripts/lib/cldr-pins.ts +182 -0
  330. package/scripts/lib/engines-include.d.mts +5 -0
  331. package/scripts/lib/engines-include.mjs +40 -0
  332. package/scripts/lib/eslint-plugin.mjs +8 -2
  333. package/scripts/lib/hidden-label-placeholder.mjs +25 -5
  334. package/scripts/lib/idiom-scan.mjs +30 -3
  335. package/scripts/lib/legacy-agent-files.json +152 -0
  336. package/scripts/lib/mcp-config.mjs +74 -7
  337. package/scripts/lib/portal-names.mjs +78 -8
  338. package/scripts/lib/release-results.mjs +5 -2
  339. package/scripts/lib/report.mjs +340 -0
  340. package/scripts/lib/run-beat.mjs +14 -0
  341. package/scripts/lib/run-records.mjs +313 -0
  342. package/scripts/lib/selector-log.mjs +98 -0
  343. package/scripts/lib/ticket-beat.mjs +30 -0
  344. package/scripts/lib/validate-bb-markup.mjs +37 -2
  345. package/dist/ai/manifest/components/BbAvatar.removed.json +0 -6
@@ -3,41 +3,44 @@ import { useConfig as t } from "../../composables/useConfig.js";
3
3
  import { useConfigDefaults as n } from "../../composables/useConfigDefaults.js";
4
4
  import { useFormBinding as r } from "../../composables/useFormBinding.js";
5
5
  import { useLocale as i } from "../../composables/useLocale.js";
6
- import { useLogger as a } from "../../composables/useLogger.js";
7
- import { useMobile as o } from "../../composables/useMobile.js";
8
- import { SEGMENTED_CONTROL_NATIVE_ATTRS as s, formControlPtActive as c, usePassthrough as l, variantPt as u } from "../../composables/usePassthrough.js";
9
- import { fieldRuns as ee, useSegmentedFields as d } from "../../composables/useSegmentedFields.js";
6
+ import { useOpenProp as a } from "../../composables/useOpenModel.js";
7
+ import { useLogger as o } from "../../composables/useLogger.js";
8
+ import { useMobile as s } from "../../composables/useMobile.js";
9
+ import { SEGMENTED_CONTROL_NATIVE_ATTRS as c, formControlPtActive as l, usePassthrough as u, variantPt as d } from "../../composables/usePassthrough.js";
10
+ import { fieldRuns as f, useSegmentedFields as ee } from "../../composables/useSegmentedFields.js";
10
11
  import { removedPropsFor as te } from "../../deprecation/removedProps.js";
11
12
  import { formatOfType as ne, isCoarseType as re, isLabelType as ie, unitOfType as ae } from "../../types/DatePickerType.js";
12
- import { isoMondayOf as f, isoWeekOf as oe, isoWeekStart as se, isoWeeksInYear as ce, weekBoundAsDay as le } from "../../utilities/functions/isoWeek.js";
13
+ import { isoMondayOf as p, isoWeekOf as oe, isoWeekStart as se, isoWeeksInYear as ce, weekBoundAsDay as le } from "../../utilities/functions/isoWeek.js";
13
14
  import { toInnerValue as ue, toOuterValue as de } from "../../utilities/functions/convertDateValue.js";
14
15
  import { isEmpty as fe } from "../../utilities/functions/empty.js";
15
16
  import { hash as pe } from "../../utilities/functions/hash.js";
16
17
  import { isNotEmpty as me } from "../../utilities/functions/isNotEmpty.js";
17
- import { normalizeDateBound as he } from "../../utilities/functions/normalizeDateBound.js";
18
- import { isDateDisabled as ge } from "../../utilities/functions/isDateDisabled.js";
19
- import { warnRemovedAttrs as _e } from "../../utilities/functions/warnRemovedAttrs.js";
20
- import ve from "../../assets/svgs/calendar.svg_raw.js";
21
- import { calendars as ye, localeOf as be } from "../../utilities/calendar/index.js";
22
- import { foldDigits as xe } from "../../utilities/calendar/digits.js";
23
- import { formatDateOf as Se, intlLocaleOf as Ce, spokenDateOptionsOf as we, timeFieldsOf as Te, useDayjsLocale as Ee, weekSpanOf as De } from "../BbCalendar/useDayjsLocale.js";
24
- import Oe from "../BbDatePicker/BbDatePicker.vue.js";
25
- import { BB_DATE_PICKER_PT as ke, DATE_PICKER_CALENDAR_PARTS as Ae } from "../BbDatePicker/types.js";
26
- import je from "../BbIcon/BbIcon.vue.js";
27
- import Me from "../CommonField/CommonField.vue.js";
28
- import Ne from "../CommonFieldInput/CommonFieldInput.vue.js";
29
- import { useMeridiem as Pe } from "../CommonTimeSelector/useMeridiem.js";
30
- import { BB_DATE_PICKER_INPUT_PT as Fe } from "./types.js";
31
- import { dateLayoutFromHint as Ie, dateReadsRtl as Le, monthLayoutFromHint as Re } from "./dateFieldLayout.js";
32
- import { calendarFieldSpecs as ze, calendarFieldsOf as Be, eraHint as Ve, matchEra as He } from "./calendarFields.js";
33
- import { Fragment as Ue, computed as p, createBlock as We, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createSlots as Ge, createVNode as Ke, defineComponent as qe, guardReactiveProps as Je, mergeProps as _, normalizeClass as Ye, normalizeProps as Xe, normalizeStyle as Ze, onBeforeUnmount as Qe, onDeactivated as $e, openBlock as v, ref as y, renderList as et, renderSlot as b, toDisplayString as tt, toRaw as nt, unref as x, useAttrs as rt, useSlots as it, watch as at, withCtx as S, withDirectives as ot } from "vue";
34
- import C from "dayjs";
35
- import st from "dayjs/plugin/customParseFormat";
36
- import { formatCalendarDate as w, formatDigits as ct } from "virtual:bitboss-ui/calendars";
37
- import lt from "dayjs/plugin/isSameOrAfter";
38
- import ut from "dayjs/plugin/isSameOrBefore";
18
+ import { isNotNil as he } from "../../utilities/functions/isNotNil.js";
19
+ import { normalizeDateBound as ge } from "../../utilities/functions/normalizeDateBound.js";
20
+ import { isDateDisabled as _e } from "../../utilities/functions/isDateDisabled.js";
21
+ import { warnRemovedAttrs as ve } from "../../utilities/functions/warnRemovedAttrs.js";
22
+ import ye from "../../assets/svgs/calendar.svg_raw.js";
23
+ import { calendars as be, localeOf as xe } from "../../utilities/calendar/index.js";
24
+ import { foldDigits as Se } from "../../utilities/calendar/digits.js";
25
+ import { formatDateOf as Ce, intlLocaleOf as we, spokenClockOf as Te, spokenDateOptionsOf as Ee, useDayjsLocale as De, weekSpanOf as Oe } from "../BbCalendar/useDayjsLocale.js";
26
+ import { useHydrated as ke } from "../../composables/useHydrated.js";
27
+ import Ae from "../BbDatePicker/BbDatePicker.vue.js";
28
+ import { BB_DATE_PICKER_PT as je, DATE_PICKER_CALENDAR_PARTS as Me } from "../BbDatePicker/types.js";
29
+ import Ne from "../BbIcon/BbIcon.vue.js";
30
+ import Pe from "../CommonField/CommonField.vue.js";
31
+ import Fe from "../CommonFieldInput/CommonFieldInput.vue.js";
32
+ import { useMeridiem as Ie } from "../CommonTimeSelector/useMeridiem.js";
33
+ import { BB_DATE_PICKER_INPUT_PT as Le } from "./types.js";
34
+ import { dateLayoutFromHint as Re, dateReadsRtl as ze, monthLayoutFromHint as Be } from "./dateFieldLayout.js";
35
+ import { calendarFieldSpecs as Ve, calendarFieldsOf as He, eraHint as Ue, matchEra as We } from "./calendarFields.js";
36
+ import { Fragment as Ge, computed as m, createBlock as Ke, createCommentVNode as h, createElementBlock as g, createElementVNode as _, createSlots as qe, createVNode as Je, defineComponent as Ye, guardReactiveProps as Xe, mergeProps as v, normalizeClass as Ze, normalizeProps as Qe, normalizeStyle as $e, onBeforeUnmount as et, onDeactivated as tt, openBlock as y, ref as b, renderList as nt, renderSlot as x, toDisplayString as rt, toRaw as it, unref as S, useAttrs as at, useSlots as ot, watch as st, withCtx as C, withDirectives as ct } from "vue";
37
+ import w from "dayjs";
38
+ import lt from "dayjs/plugin/customParseFormat";
39
+ import { formatCalendarDate as T, formatDigits as ut } from "virtual:bitboss-ui/calendars";
40
+ import dt from "dayjs/plugin/isSameOrAfter";
41
+ import ft from "dayjs/plugin/isSameOrBefore";
39
42
  // src/components/BbDatePickerInput/BbDatePickerInput.vue?vue&type=script&setup=true&lang.ts
40
- var dt = ["dir"], ft = ["onClick"], pt = ["data-value"], mt = [
43
+ var pt = ["dir"], mt = ["onClick"], ht = ["data-value"], gt = [
41
44
  "id",
42
45
  "aria-describedby",
43
46
  "aria-disabled",
@@ -60,8 +63,8 @@ var dt = ["dir"], ft = ["onClick"], pt = ["data-value"], mt = [
60
63
  "onInput",
61
64
  "onKeydown",
62
65
  "onPaste"
63
- ], ht = ["onClick"], gt = ["onClick"], _t = ["aria-disabled", "disabled"], vt = ["id"], T = "YYYY-MM-DD", yt = "YYYY-MM-DDTHH:mm", bt = /*@__PURE__*/ qe({
64
- mixins: [u(Fe)],
66
+ ], _t = ["onClick"], vt = ["onClick"], yt = ["aria-disabled", "disabled"], bt = ["id"], E = "YYYY-MM-DD", xt = "YYYY-MM-DDTHH:mm", St = /*@__PURE__*/ Ye({
67
+ mixins: [d(Le)],
65
68
  inheritAttrs: !1,
66
69
  __name: "BbDatePickerInput",
67
70
  props: {
@@ -353,6 +356,7 @@ var dt = ["dir"], ft = ["onClick"], pt = ["data-value"], mt = [
353
356
  "pt:item:errors": {},
354
357
  "pt:item:open": {},
355
358
  "pt:item:loading": {},
359
+ open: { type: Boolean },
356
360
  pt: {},
357
361
  adaptive: {
358
362
  type: Boolean,
@@ -429,6 +433,7 @@ var dt = ["dir"], ft = ["onClick"], pt = ["data-value"], mt = [
429
433
  "show",
430
434
  "shown",
431
435
  "hide",
436
+ "update:open",
432
437
  "hidden",
433
438
  "active",
434
439
  "error",
@@ -437,184 +442,190 @@ var dt = ["dir"], ft = ["onClick"], pt = ["data-value"], mt = [
437
442
  "update:modelValue",
438
443
  "update:time"
439
444
  ],
440
- setup(u, { emit: qe }) {
441
- let bt = u, xt = qe, St = it(), { props: E, emit: D, showAsterisk: Ct, errors: wt, required: Tt, ariaRequired: Et, model: Dt, readonly: Ot, locked: kt } = r(bt, xt, {
445
+ setup(d, { emit: Ye }) {
446
+ let St = d, Ct = Ye, wt = ot(), { props: D, emit: O, showAsterisk: Tt, errors: Et, required: Dt, ariaRequired: Ot, model: kt, readonly: At, locked: jt } = r(St, Ct, {
442
447
  componentName: "BbDatePickerInput",
443
- identifierFallback: () => bt.label,
444
- leaveOn: "inactive"
445
- }), At = /^\d{4}-\d{2}-\d{2}(:append)?$/, jt = () => Object.keys(St).filter((e) => At.test(e)), O = t();
446
- process.env.NODE_ENV !== "production" && _e("BbDatePickerInput", te("BbDatePickerInput"), { fixedSlots: ["append:outer"] });
447
- let k = y(!1), Mt = y(!1), Nt = () => {
448
- Mt.value = !1;
449
- }, Pt = y(!1), Ft = () => {
450
- Pt.value = !0, D("show");
451
- }, It = () => {
452
- Pt.value = !1, D("hide");
453
- };
454
- $e(() => {
455
- k.value ? fn() : Nt();
456
- }), Qe(Nt);
457
- let Lt = p(() => E.persistentHint || Mt.value), Rt = p(() => me(E.modelValue)), A = n("BbDatePickerInput", E, {
448
+ identifierFallback: () => St.label,
449
+ leaveOn: "inactive",
450
+ emptyValue: () => null
451
+ }), Mt = /^\d{4}-\d{2}-\d{2}(:append)?$/, Nt = () => Object.keys(wt).filter((e) => Mt.test(e)), k = t();
452
+ process.env.NODE_ENV !== "production" && ve("BbDatePickerInput", te("BbDatePickerInput"), { fixedSlots: ["append:outer"] });
453
+ let Pt = b(!1), Ft = b(!1), It = () => {
454
+ Ft.value = !1;
455
+ }, Lt = b(!1), Rt = () => {
456
+ Lt.value = !0, O("show");
457
+ }, zt = () => {
458
+ Lt.value = !1, O("hide");
459
+ }, { model: Bt, set: Vt } = a(St, Ct);
460
+ tt(() => {
461
+ Pt.value ? _n() : It();
462
+ }), et(It);
463
+ let Ht = m(() => D.persistentHint || Ft.value), Ut = m(() => me(D.modelValue)), A = n("BbDatePickerInput", D, {
458
464
  labelMode: "outside",
459
465
  autocomplete: "off",
460
466
  compact: !1,
461
467
  reverse: !1,
462
468
  floating: !1
463
- }), zt = p(() => A.labelMode), Bt = [
469
+ }), Wt = m(() => A.labelMode), Gt = [
464
470
  "panel",
465
471
  "sheet",
466
- ...Ae
467
- ], j = l({
472
+ ...Me
473
+ ], j = u({
468
474
  component: "BbDatePickerInput",
469
- attrs: rt(),
470
- controlAttrs: s,
471
- props: E,
472
- parts: Fe.parts,
473
- states: Fe.states,
475
+ attrs: at(),
476
+ controlAttrs: c,
477
+ props: D,
478
+ parts: Le.parts,
479
+ states: Le.states,
474
480
  active: {
475
- ...c(E, () => Rt.value),
476
- open: () => Pt.value
481
+ ...l(D, () => Ut.value),
482
+ open: () => Lt.value
477
483
  },
478
484
  variant: {
479
- ...Fe.variant,
480
- current: () => E.variant ?? "outline"
485
+ ...Le.variant,
486
+ current: () => D.variant ?? "outline"
481
487
  }
482
- }), M = p(() => E.type === "datetime"), N = p(() => re(E.type)), Vt = p(() => A.floating || ie(E.type)), P = p(() => E.type === "week"), Ht = p(() => ae(E.type)), F = w ? p(() => {
483
- let { calendar: e } = be(O.locale);
484
- return e === "gregory" ? void 0 : ye[e];
485
- }) : null, Ut = p(() => ne(E.type, F?.value));
486
- C.extend(st), C.extend(lt), C.extend(ut), Ee();
487
- let { t: I } = i(), L = a(), Wt = y(null), Gt = (e) => `bdpi-description_${e}`, Kt = (e, t) => {
488
- let n = [e, Gt(t)].filter((e) => !!e?.trim()).flatMap((e) => e.split(/\s+/)).filter(Boolean);
488
+ }), M = m(() => D.type === "datetime"), N = m(() => re(D.type)), Kt = m(() => A.floating || ie(D.type)), P = m(() => D.type === "week"), qt = m(() => ae(D.type)), F = T ? m(() => {
489
+ let { calendar: e } = xe(k.locale);
490
+ return e === "gregory" ? void 0 : be[e];
491
+ }) : null, Jt = m(() => ne(D.type, F?.value));
492
+ w.extend(lt), w.extend(dt), w.extend(ft), De();
493
+ let { t: I } = i(), Yt = o(), L = b(null), Xt = (e) => `bdpi-description_${e}`, Zt = (e, t) => {
494
+ let n = [e, Xt(t)].filter((e) => !!e?.trim()).flatMap((e) => e.split(/\s+/)).filter(Boolean);
489
495
  return Array.from(new Set(n)).join(" ");
490
- }, { isMobile: qt } = o(), Jt = p(() => E.disableWriting === "mobile" ? !qt.value : E.disableWriting === "desktop" ? qt.value : !E.disableWriting), Yt = p(() => !Jt.value && !en.value && !E.disabled && !E.readonly), Xt = () => {
491
- Yt.value && !Pt.value && (Wt.value?.$el)?.querySelector(".bb-segmented-field__activator")?.click();
492
- }, Zt = (e) => {
496
+ }, { isMobile: Qt } = s(), $t = m(() => D.disableWriting === "mobile" ? !Qt.value : D.disableWriting === "desktop" ? Qt.value : !D.disableWriting), en = m(() => !$t.value && !on.value && !D.disabled && !D.readonly), tn = () => {
497
+ en.value && !Lt.value && (L.value?.$el)?.querySelector(".bb-segmented-field__activator")?.click();
498
+ }, nn = (e) => {
493
499
  let t = e.target;
494
- t?.closest(".bb-field-input__box") && (t.closest(".bb-segmented-field__activator, .bb-clearable-button, .bb-date-picker__panel, [role=\"dialog\"]") || Xt());
495
- }, Qt = (e) => e.key === "ArrowUp" || e.key === "ArrowDown" || e.key === "Backspace" || e.key === "Delete" || e.key.length === 1 && !e.ctrlKey && !e.metaKey && !e.altKey, $t = (e, t) => {
496
- if (Yt.value && (t.key === "Enter" || t.key === " ")) t.preventDefault(), Xt();
497
- else if (E.readonly && Qt(t)) t.preventDefault();
498
- else if (w && V.value?.eras.length && e.field === "year" && (t.key === "ArrowUp" || t.key === "ArrowDown")) {
500
+ t?.closest(".bb-field-input__box") && (t.closest(".bb-segmented-field__activator, .bb-clearable-button, .bb-date-picker__panel, [role=\"dialog\"]") || tn());
501
+ }, rn = (e) => e.key === "ArrowUp" || e.key === "ArrowDown" || e.key === "Backspace" || e.key === "Delete" || e.key.length === 1 && !e.ctrlKey && !e.metaKey && !e.altKey, an = (e, t) => {
502
+ if (en.value && (t.key === "Enter" || t.key === " ")) t.preventDefault(), tn();
503
+ else if (D.readonly && rn(t)) t.preventDefault();
504
+ else if (T && V.value?.eras.length && e.field === "year" && (t.key === "ArrowUp" || t.key === "ArrowDown")) {
499
505
  t.preventDefault();
500
- let n = q.value[e.segment], r = V.value.lastYearOf(n.era), i = n.year ? parseInt(n.year, 10) : 0, a = n.year ? Math.min(Math.max(i + (t.key === "ArrowUp" ? 1 : -1), 1), r) : 1;
501
- a !== i && (n.year = String(a), Y(), $({ finalize: !1 })), t.target.value = Jn(n.year);
502
- } else nr(e, t);
503
- }, en = p(() => E.disableCalendar === "mobile" ? qt.value : E.disableCalendar === "desktop" ? !qt.value : !!E.disableCalendar), tn = p(() => !!E.readonly || !Jt.value), nn = (e) => Jt.value ? In.value[e].kind === "enum" ? "none" : "numeric" : "none", rn = (e) => e.includes("T"), R = (e) => {
504
- if (P.value) return C(le(e, "min"), T, !0);
506
+ let n = J.value[e.segment], r = V.value.lastYearOf(n.era), i = n.year ? parseInt(n.year, 10) : 0, a = n.year ? Math.min(Math.max(i + (t.key === "ArrowUp" ? 1 : -1), 1), r) : 1;
507
+ a !== i && (n.year = String(a), X(), $({ finalize: !1 })), t.target.value = tr(n.year);
508
+ } else lr(e, t);
509
+ }, on = m(() => D.disableCalendar === "mobile" ? Qt.value : D.disableCalendar === "desktop" ? !Qt.value : !!D.disableCalendar), sn = m(() => !!D.readonly || !$t.value), cn = (e) => $t.value ? Hn.value[e].kind === "enum" ? "none" : "numeric" : "none", ln = (e) => e.includes("T"), R = (e) => {
510
+ if (P.value) return w(le(e, "min"), E, !0);
505
511
  if (N.value) {
506
- let t = C(e, Ut.value, !0);
507
- return t.isValid() ? t : C(e);
512
+ let t = w(e, Jt.value, !0);
513
+ return t.isValid() ? t : w(e);
508
514
  }
509
- return rn(e) ? C(e, yt, !0) : C(e, T, !0);
510
- }, z = p(() => he(E.min, E.type, "min", (e) => L.warn(`BbDatePickerInput: ${e}`), F?.value)), B = p(() => he(E.max, E.type, "max", (e) => L.warn(`BbDatePickerInput: ${e}`), F?.value));
511
- for (let [e, t] of [["min", E.min], ["max", E.max]]) t && (R(t).isValid() || L.throw(P.value ? `BbDatePickerInput: ${e} must be a week (YYYY-Www) or a date (YYYY-MM-DD) with type="week"` : N.value ? `BbDatePickerInput: ${e} must be a ${Ut.value} value (a longer date is accepted and rounded to the ${Ht.value}) with type="${E.type}"` : `BbDatePickerInput: ${e} must be in the format YYYY-MM-DD or YYYY-MM-DDTHH:mm`), (N.value || P.value) && (e === "min" ? z.value : B.value));
512
- let an = E.disableWriting !== !0 && E.disableWriting !== "desktop", on = E.disableCalendar !== !0 && E.disableCalendar !== "desktop", sn = E.disableWriting !== !0 && E.disableWriting !== "mobile", cn = E.disableCalendar !== !0 && E.disableCalendar !== "mobile";
513
- !an && !on && L.throw("BbDatePickerInput: desktop users would have no interaction method — disableWriting:true (or \"desktop\") and disableCalendar:true (or \"desktop\") cannot be combined."), !sn && !cn && 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.");
514
- let ln = p(() => ({
515
- floating: Vt.value,
516
- utc: E.utc,
517
- type: E.type,
515
+ return ln(e) ? w(e, xt, !0) : w(e, E, !0);
516
+ }, z = m(() => ge(D.min, D.type, "min", (e) => Yt.warn(`BbDatePickerInput: ${e}`), F?.value)), B = m(() => ge(D.max, D.type, "max", (e) => Yt.warn(`BbDatePickerInput: ${e}`), F?.value));
517
+ for (let [e, t] of [["min", D.min], ["max", D.max]]) t && (R(t).isValid() || Yt.throw(P.value ? `BbDatePickerInput: ${e} must be a week (YYYY-Www) or a date (YYYY-MM-DD) with type="week"` : N.value ? `BbDatePickerInput: ${e} must be a ${Jt.value} value (a longer date is accepted and rounded to the ${qt.value}) with type="${D.type}"` : `BbDatePickerInput: ${e} must be in the format YYYY-MM-DD or YYYY-MM-DDTHH:mm`), (N.value || P.value) && (e === "min" ? z.value : B.value));
518
+ let un = D.disableWriting !== !0 && D.disableWriting !== "desktop", dn = D.disableCalendar !== !0 && D.disableCalendar !== "desktop", fn = D.disableWriting !== !0 && D.disableWriting !== "mobile", pn = D.disableCalendar !== !0 && D.disableCalendar !== "mobile";
519
+ !un && !dn && Yt.throw("BbDatePickerInput: desktop users would have no interaction method — disableWriting:true (or \"desktop\") and disableCalendar:true (or \"desktop\") cannot be combined."), !fn && !pn && Yt.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.");
520
+ let mn = m(() => ({
521
+ floating: Kt.value,
522
+ utc: D.utc,
523
+ type: D.type,
518
524
  calendar: F?.value
519
- })), V = w ? p(() => {
520
- let { calendar: e, intl: t } = be(O.locale);
521
- if (e === "gregory" || E.type === "week") return null;
522
- let n = ye[e];
523
- return n ? Be(n, t, (e, t) => Se(e, O.locale, t)) : null;
524
- }) : null, H = (e) => de(e, ln.value), un = (e) => ue(e, ln.value), dn = () => {
525
- k.value || (Mt.value = !0, D("active"), k.value = !0, document.addEventListener("focusin", U), document.addEventListener("click", U));
525
+ })), V = T ? m(() => {
526
+ let { calendar: e, intl: t } = xe(k.locale);
527
+ if (e === "gregory" || D.type === "week") return null;
528
+ let n = be[e];
529
+ return n ? He(n, t, (e, t) => Ce(e, k.locale, t)) : null;
530
+ }) : null, H = (e) => de(e, mn.value), hn = (e) => ue(e, mn.value), gn = () => {
531
+ Pt.value || (Ft.value = !0, O("active"), Pt.value = !0, document.addEventListener("focusin", U), document.addEventListener("click", U, !0));
526
532
  }, U = (e) => {
527
533
  let t = e.target;
528
- t instanceof HTMLElement && Wt.value?.$el && (Wt.value.$el.contains(t) || fn());
529
- }, fn = () => {
530
- $({ finalize: !0 }), kr() && (Dr(), Y()), k.value = !1, Nt(), D("inactive"), document.removeEventListener("focusin", U), document.removeEventListener("click", U);
531
- }, pn = (e, t) => {
532
- let n = un(t);
534
+ t instanceof HTMLElement && L.value?.$el && (e.type === "focusin" && t.contains(L.value.$el) || L.value.$el.contains(t) || _n());
535
+ }, _n = () => {
536
+ $({ finalize: !0 }), Ir() && (Pr(), X()), Pt.value = !1, It(), O("inactive"), document.removeEventListener("focusin", U), document.removeEventListener("click", U, !0);
537
+ }, vn = (e, t) => {
538
+ let n = hn(t);
533
539
  if (!n.isValid()) return;
534
- let r = q.value[e];
535
- w && V.value ? Bn(r, n) : (r.day = n.format("DD"), r.month = n.format("MM"), r.year = n.format("YYYY"));
536
- }, mn = (e) => {
540
+ let r = J.value[e];
541
+ T && V.value ? qn(r, n) : (r.day = n.format("DD"), r.month = n.format("MM"), r.year = n.format("YYYY"));
542
+ }, yn = (e) => {
537
543
  let { week: t, year: n } = oe(e);
538
544
  return {
539
545
  week: String(t).padStart(2, "0"),
540
546
  year: String(n).padStart(4, "0")
541
547
  };
542
- }, hn = { "onUpdate:modelValue": (e) => {
543
- if (e === null && E.range && (e = []), !M.value) D("update:modelValue", e);
544
- else if (e === null || Array.isArray(e) && !e.length) q.value.start = J(), q.value.end = J(), Y(), Q(E.range ? [] : null);
548
+ }, bn = { "onUpdate:modelValue": (e) => {
549
+ if (e === null && D.range && (e = []), !M.value) O("update:modelValue", e);
550
+ else if (e === null || Array.isArray(e) && !e.length) J.value.start = Y(), J.value.end = Y(), X(), Q(D.range ? [] : null);
545
551
  else if (Array.isArray(e)) {
546
552
  let [t, n] = e;
547
- t ? pn("start", t) : q.value.start = J(), n ? pn("end", n) : q.value.end = J(), Y(), $({ finalize: !1 });
548
- } else pn("start", e), Y(), $({ finalize: !1 });
549
- } }, gn = (e) => {
550
- let t = q.value[e];
551
- return P.value ? !!(t.week && t.year && t.year.length === 4) : !!(t.day && t.month && (w ? _n(t) : t.year.length === 4));
552
- }, _n = (e) => {
553
+ t ? vn("start", t) : J.value.start = Y(), n ? vn("end", n) : J.value.end = Y(), X(), $({ finalize: !1 });
554
+ } else vn("start", e), X(), $({ finalize: !1 });
555
+ } }, xn = (e) => {
556
+ let t = J.value[e];
557
+ return P.value ? !!(t.week && t.year && t.year.length === 4) : !!(t.day && t.month && (T ? Sn(t) : t.year.length === 4));
558
+ }, Sn = (e) => {
553
559
  let t = V.value;
554
560
  return t ? t.eras.length && !e.era ? !1 : t.yearFullLength ? e.year.length === t.yearDigits : !!e.year : e.year.length === 4;
555
- }, vn = y("start"), yn = (e, t) => {
556
- vn.value = e.segment, rr(e), D("focus", t);
557
- }, bn = p(() => E.range ? gn(vn.value) ? vn.value : gn("end") ? "end" : "start" : "start"), xn = ({ unit: e, value: t }) => {
558
- let n = q.value[bn.value];
559
- e === "hour" ? fr(n, parseInt(t, 10)) : e === "meridiem" ? n.meridiem = W.label(t === "PM" ? "PM" : "AM") : n[e] = t, n.hour ||= E.ampm ? "12" : "00", E.ampm && !n.meridiem && (n.meridiem = W.am.value), n.minute ||= "00", E.seconds && !n.second && (n.second = "00"), Y(), $({ finalize: !1 });
560
- }, Sn = p(() => we(E.type)), Cn = (e) => {
561
- if (P.value) return I("datePicker.weekSpan", String(oe(e).week), De(f(e), O.locale)).value;
562
- let t = Se(e, O.locale, Sn.value);
563
- return M.value ? `${t} ${Se(e, O.locale, Te(!!E.ampm, !!E.seconds))}` : t;
564
- }, wn = (e) => {
565
- if (er(e) !== "complete") return null;
566
- let t = q.value[e];
561
+ }, Cn = b("start"), wn = (e, t) => {
562
+ Cn.value = e.segment, ur(e, t), O("focus", t);
563
+ }, Tn = m(() => D.range ? xn(Cn.value) ? Cn.value : xn("end") ? "end" : "start" : "start"), En = ({ unit: e, value: t }) => {
564
+ let n = J.value[Tn.value];
565
+ e === "hour" ? yr(n, parseInt(t, 10)) : e === "meridiem" ? n.meridiem = G.label(t === "PM" ? "PM" : "AM") : n[e] = t, n.hour ||= D.ampm ? "12" : "00", D.ampm && !n.meridiem && (n.meridiem = G.am.value), n.minute ||= "00", D.seconds && !n.second && (n.second = "00"), X(), $({ finalize: !1 });
566
+ }, Dn = m(() => Ee(D.type)), { isHydrated: On } = ke(), kn = (e) => {
567
+ if (P.value) return I("datePicker.weekSpan", String(oe(e).week), Oe(p(e), k.locale)).value;
568
+ let t = Ce(e, k.locale, Dn.value);
569
+ return M.value ? `${t} ${Te(e, k.locale, !!D.ampm, !!D.seconds, On.value)}` : t;
570
+ }, An = (e) => {
571
+ if (sr(e) !== "complete") return null;
572
+ let t = J.value[e];
567
573
  if (P.value) {
568
574
  let e = se(parseInt(t.year, 10), parseInt(t.week, 10));
569
575
  return e.isValid() ? e : null;
570
576
  }
571
- let n = G.value;
572
- if (w && V.value) {
573
- let e = V.value.dateOf(Rn(t), n), r = M.value ? jr(t) : null;
577
+ let n = K.value;
578
+ if (T && V.value) {
579
+ let e = V.value.dateOf(Gn(t), n), r = M.value ? Rr(t) : null;
574
580
  return !e || M.value && !r ? null : r ? e.hour(+r.hour).minute(+r.minute).second(+r.second) : e;
575
581
  }
576
- let 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 = T;
577
- M.value && (a += `T${Pr(e)}`, o += E.seconds ? "THH:mm:ss" : "THH:mm");
578
- let s = C(a, o, !0);
582
+ let 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;
583
+ M.value && (a += `T${Vr(e)}`, o += D.seconds ? "THH:mm:ss" : "THH:mm");
584
+ let s = w(a, o, !0);
579
585
  return s.isValid() ? s : null;
580
- }, Tn = p(() => {
581
- if (E.range) {
582
- let e = wn("start"), t = wn("end");
583
- return !e || !t ? I("datePickerInput.emptyRange").value : I("datePickerInput.changeSelectionRange", Cn(e), Cn(t)).value;
586
+ }, jn = m(() => {
587
+ if (D.range) {
588
+ let e = An("start"), t = An("end");
589
+ return !e || !t ? I("datePickerInput.emptyRange").value : I("datePickerInput.changeSelectionRange", kn(e), kn(t)).value;
584
590
  }
585
- let e = wn("start");
586
- return e ? I("datePickerInput.changeSelection", Cn(e)).value : I("datePickerInput.emptySelection").value;
587
- }), En = (e) => {
591
+ let e = An("start");
592
+ return e ? I("datePickerInput.changeSelection", kn(e)).value : I("datePickerInput.emptySelection").value;
593
+ }), W = (e) => {
588
594
  if (!e.isValid()) return !0;
589
595
  if (P.value) {
590
- let t = f(e), n = z.value, r = B.value;
591
- return n && t.isBefore(R(n), "day") || r && t.add(6, "day").isAfter(R(r), "day") ? !0 : typeof E.selectable == "function" && !E.selectable(H(t));
596
+ let t = p(e), n = z.value, r = B.value;
597
+ return n && t.isBefore(R(n), "day") || r && t.add(6, "day").isAfter(R(r), "day") ? !0 : typeof D.selectable == "function" && !D.selectable(H(t));
592
598
  }
593
599
  let t = !0;
594
- if (w && F.value && N.value) return ge(e, {
595
- min: E.min,
596
- max: E.max,
597
- selectable: E.selectable,
598
- type: E.type,
600
+ if (T && F.value && N.value) return _e(e, {
601
+ min: D.min,
602
+ max: D.max,
603
+ selectable: D.selectable,
604
+ type: D.type,
599
605
  calendar: F.value
600
606
  });
601
- let n = (e) => N.value ? Ht.value : M.value && rn(e) ? "minute" : "day", r = z.value, i = B.value;
602
- return r && (t &&= e.isSameOrAfter(R(r), n(r))), i && (t &&= e.isSameOrBefore(R(i), n(i))), typeof E.selectable == "function" && (t &&= E.selectable(H(e))), !t;
603
- }, Dn = () => {
604
- E.range ? (D("update:modelValue", []), M.value && (Z.value = [], D("update:time", []))) : (D("update:modelValue", null), M.value && (Z.value = null, D("update:time", null)));
605
- }, On = /* @__PURE__ */ new Set([
607
+ let n = (e) => N.value ? qt.value : M.value && ln(e) ? "minute" : "day", r = z.value, i = B.value;
608
+ return r && (t &&= e.isSameOrAfter(R(r), n(r))), i && (t &&= e.isSameOrBefore(R(i), n(i))), typeof D.selectable == "function" && (t &&= D.selectable(H(e))), !t;
609
+ }, Mn = m(() => {
610
+ let e = An("start"), t = [e, e && D.range ? An("end") : null].filter(he);
611
+ if (!t.some(W)) return kt.value;
612
+ let n = t.map(H);
613
+ return D.range ? n : n[0];
614
+ }), Nn = () => {
615
+ D.range ? (O("update:modelValue", []), M.value && (Hr.value = [], O("update:time", []))) : (O("update:modelValue", null), M.value && (Hr.value = null, O("update:time", null)));
616
+ }, Pn = /* @__PURE__ */ new Set([
606
617
  "hour",
607
618
  "minute",
608
619
  "second",
609
620
  "meridiem"
610
- ]), W = Pe(), kn = (e, t) => W.isPm(t) ? e === 12 ? 12 : e + 12 : e === 12 ? 0 : e, An = (e) => {
621
+ ]), G = Ie(), Fn = (e, t) => G.isPm(t) ? e === 12 ? 12 : e + 12 : e === 12 ? 0 : e, In = (e) => {
611
622
  let t = e >= 12 ? "PM" : "AM", n = e % 12;
612
623
  return n === 0 && (n = 12), {
613
624
  hour: String(n).padStart(2, "0"),
614
625
  meridiem: t
615
626
  };
616
- }, jn = p(() => {
617
- if (E.type === "year") return {
627
+ }, Ln = m(() => {
628
+ if (D.type === "year") return {
618
629
  order: ["year"],
619
630
  separator: "/"
620
631
  };
@@ -623,12 +634,12 @@ var dt = ["dir"], ft = ["onClick"], pt = ["data-value"], mt = [
623
634
  separator: " "
624
635
  };
625
636
  let e = I("datePickerInput.monthFormatSingle").value;
626
- if (E.type === "month") return Re(e) ?? {
637
+ if (D.type === "month") return Be(e) ?? {
627
638
  order: ["month", "year"],
628
639
  separator: "/"
629
640
  };
630
641
  let t = I("datePickerInput.dateFormatSingle").value;
631
- return Ie(t, e) ?? {
642
+ return Re(t, e) ?? {
632
643
  order: [
633
644
  "day",
634
645
  "month",
@@ -636,36 +647,36 @@ var dt = ["dir"], ft = ["onClick"], pt = ["data-value"], mt = [
636
647
  ],
637
648
  separator: "/"
638
649
  };
639
- }), Mn = p(() => {
640
- let e = jn.value.order;
641
- if (!w || !V.value?.eras.length) return e;
650
+ }), Rn = m(() => {
651
+ let e = Ln.value.order;
652
+ if (!T || !V.value?.eras.length) return e;
642
653
  let t = e.indexOf("year") + +!V.value.eraFirst;
643
654
  return [
644
655
  ...e.slice(0, t),
645
656
  "era",
646
657
  ...e.slice(t)
647
658
  ];
648
- }), G = p(() => new Set(Mn.value)), Nn = p(() => {
659
+ }), K = m(() => new Set(Rn.value)), zn = m(() => {
649
660
  if (!M.value) return [];
650
661
  let e = ["hour", "minute"];
651
- return E.seconds && e.push("second"), E.ampm && e.push("meridiem"), e;
652
- }), K = p(() => {
653
- let e = [...Mn.value, ...Nn.value], t = e.map((e) => ({
662
+ return D.seconds && e.push("second"), D.ampm && e.push("meridiem"), e;
663
+ }), q = m(() => {
664
+ let e = [...Rn.value, ...zn.value], t = e.map((e) => ({
654
665
  segment: "start",
655
666
  field: e
656
667
  }));
657
- if (!E.range) return t;
668
+ if (!D.range) return t;
658
669
  let n = e.map((e) => ({
659
670
  segment: "end",
660
671
  field: e
661
672
  }));
662
673
  return [...t, ...n];
663
- }), Pn = p(() => {
674
+ }), Bn = m(() => {
664
675
  let e = /* @__PURE__ */ new Set(), t = /* @__PURE__ */ new Set();
665
- return K.value.forEach((n, r) => {
676
+ return q.value.forEach((n, r) => {
666
677
  e.has(n.segment) || (e.add(n.segment), t.add(r));
667
678
  }), t;
668
- }), Fn = (e) => Pn.value.has(e), In = p(() => ({
679
+ }), Vn = (e) => Bn.value.has(e), Hn = m(() => ({
669
680
  era: {
670
681
  kind: "enum",
671
682
  maxLength: 0
@@ -703,7 +714,7 @@ var dt = ["dir"], ft = ["onClick"], pt = ["data-value"], mt = [
703
714
  requireFullLength: !0,
704
715
  label: "Year"
705
716
  },
706
- hour: E.ampm ? {
717
+ hour: D.ampm ? {
707
718
  kind: "numeric",
708
719
  maxLength: 2,
709
720
  max: 12,
@@ -735,25 +746,25 @@ var dt = ["dir"], ft = ["onClick"], pt = ["data-value"], mt = [
735
746
  autoAdvanceFrom: 6,
736
747
  label: "Second"
737
748
  },
738
- meridiem: W.fieldSpec.value,
739
- ...Ln?.value
740
- })), Ln = w ? p(() => V.value ? ze(V.value) : null) : null, Rn = (e) => ({
749
+ meridiem: G.fieldSpec.value,
750
+ ...Wn?.value
751
+ })), Un = (e) => Hn.value[e].kind === "numeric" ? void 0 : Hn.value[e].maxLength, Wn = T ? m(() => V.value ? Ve(V.value) : null) : null, Gn = (e) => ({
741
752
  era: e.era,
742
753
  year: e.year,
743
754
  month: e.month,
744
755
  day: e.day
745
- }), zn = /* @__PURE__ */ new WeakMap(), Bn = (e, t) => {
746
- zn.set(nt(e), t);
756
+ }), Kn = /* @__PURE__ */ new WeakMap(), qn = (e, t) => {
757
+ Kn.set(it(e), t);
747
758
  let n = V.value.fieldsOf(t);
748
- e.era = n.era, e.year = n.year, G.value.has("month") && (e.month = n.month), G.value.has("day") && (e.day = n.day);
749
- }, Vn = p(() => ee(K.value, (e) => e === "meridiem" ? "meridiem" : On.has(e) ? "time" : "date")), Hn = (e) => e.items.at(-1).index, Un = p(() => Le(Ce(O.locale))), Wn = (e) => e.kind === "meridiem" || e.kind === "date" && Un.value ? void 0 : "ltr", Gn = (e, t) => {
759
+ e.era = n.era, e.year = n.year, K.value.has("month") && (e.month = n.month), K.value.has("day") && (e.day = n.day);
760
+ }, Jn = m(() => f(q.value, (e) => e === "meridiem" ? "meridiem" : Pn.has(e) ? "time" : "date")), Yn = (e) => e.items.at(-1).index, Xn = m(() => ze(we(k.locale))), Zn = (e) => e.kind === "meridiem" || e.kind === "date" && Xn.value ? void 0 : "ltr", Qn = (e, t) => {
750
761
  if (e.segment !== t.segment) return "–";
751
762
  if (t.field === "meridiem") return "\xA0";
752
- let n = On.has(e.field), r = On.has(t.field);
753
- return n && r ? ":" : !n && r ? "\xA0" : w && (e.field === "era" && t.field === "year" || e.field === "year" && t.field === "era") ? V.value?.eraSeparator ?? " " : ct && Un.value ? `\u200F${jn.value.separator}` : jn.value.separator;
754
- }, { fields: q, fieldRefs: Kn, descriptorKey: qn, displayOf: Jn, emptyFieldGroup: J, getSizedValue: Yn, minChars: Xn, updateAllSizedValues: Y, isOwnField: Zn, focusField: Qn, focusFirstField: $n, segmentStatus: er, onFieldInput: tr, onFieldKeydown: nr, onFieldFocus: rr, onFieldBlur: ir, onFieldPaste: ar } = d({
755
- fieldOrder: K,
756
- specs: In,
763
+ let n = Pn.has(e.field), r = Pn.has(t.field);
764
+ return n && r ? ":" : !n && r ? "\xA0" : T && (e.field === "era" && t.field === "year" || e.field === "year" && t.field === "era") ? V.value?.eraSeparator ?? " " : ut && Xn.value ? `\u200F${Ln.value.separator}` : Ln.value.separator;
765
+ }, { fields: J, fieldRefs: $n, descriptorKey: er, displayOf: tr, emptyFieldGroup: Y, getSizedValue: nr, minChars: rr, updateAllSizedValues: X, isOwnField: ir, focusField: ar, focusFirstField: or, segmentStatus: sr, onFieldInput: cr, onFieldKeydown: lr, onFieldFocus: ur, onFieldBlur: dr, onFieldPaste: fr } = ee({
766
+ fieldOrder: q,
767
+ specs: Hn,
757
768
  segments: ["start", "end"],
758
769
  fieldKeys: [
759
770
  "era",
@@ -778,13 +789,13 @@ var dt = ["dir"], ft = ["onClick"], pt = ["data-value"], mt = [
778
789
  " "
779
790
  ],
780
791
  onDirty: () => $({ finalize: !1 }),
781
- numberingSystem: ct ? () => be(O.locale).numberingSystem : void 0
782
- }), or = (e, t) => {
783
- if (w && e.field === "era" && V.value) {
784
- let n = q.value[e.segment], r = t.target, i = xe(r.value), a = He(V.value, i, n.era), o = i.replace(/\D/g, "");
792
+ numberingSystem: ut ? () => xe(k.locale).numberingSystem : void 0
793
+ }), pr = (e, t) => {
794
+ if (T && e.field === "era" && V.value) {
795
+ let n = J.value[e.segment], r = t.target, i = Se(r.value), a = We(V.value, i, n.era), o = i.replace(/\D/g, "");
785
796
  if (a && a !== n.era) n.era = a, $({ finalize: !1 });
786
797
  else if (o && V.value.eraFirst) {
787
- n.era ||= V.value.fieldsOf(sr()).era, n.year = o.slice(0, In.value.year.maxLength), r.value = n.era, Y(), Qn({
798
+ n.era ||= V.value.fieldsOf(mr()).era, n.year = o.slice(0, Hn.value.year.maxLength), r.value = n.era, X(), ar({
788
799
  segment: e.segment,
789
800
  field: "year"
790
801
  }, { caretToEnd: !0 }), $({ finalize: !1 });
@@ -792,21 +803,21 @@ var dt = ["dir"], ft = ["onClick"], pt = ["data-value"], mt = [
792
803
  }
793
804
  }
794
805
  if (e.field === "meridiem") {
795
- let n = q.value[e.segment], r = W.match(t.target.value, n.meridiem);
806
+ let n = J.value[e.segment], r = G.match(t.target.value, n.meridiem);
796
807
  r && r !== n.meridiem && (n.meridiem = r, $({ finalize: !1 }));
797
808
  }
798
- tr(e, t);
809
+ cr(e, t);
799
810
  };
800
- W.onRelabel((e, t) => {
801
- for (let n of Object.values(q.value)) n.meridiem === e && (n.meridiem = t);
802
- Y();
811
+ G.onRelabel((e, t) => {
812
+ for (let n of Object.values(J.value)) n.meridiem === e && (n.meridiem = t);
813
+ X();
803
814
  });
804
- let sr = () => {
805
- let { min: e, max: t } = V.value.system.range, n = C().format(T);
806
- return C(n < e ? e : n > t ? t : n);
807
- }, cr = (e, t) => E.range ? `${t}-${e.segment}-${e.field}` : `${t}-${e.field}`, lr = (e) => {
808
- if (E.name) return E.range ? `${E.name}-${e.segment}-${e.field}` : `${E.name}-${e.field}`;
809
- }, ur = {
815
+ let mr = () => {
816
+ let { min: e, max: t } = V.value.system.range, n = w().format(E);
817
+ return w(n < e ? e : n > t ? t : n);
818
+ }, hr = (e, t) => D.range ? `${t}-${e.segment}-${e.field}` : `${t}-${e.field}`, gr = (e) => {
819
+ if (D.name) return D.range ? `${D.name}-${e.segment}-${e.field}` : `${D.name}-${e.field}`;
820
+ }, _r = {
810
821
  era: "datePickerInput.eraField",
811
822
  week: "datePickerInput.weekField",
812
823
  day: "datePickerInput.dayField",
@@ -816,23 +827,23 @@ var dt = ["dir"], ft = ["onClick"], pt = ["data-value"], mt = [
816
827
  minute: "datePickerInput.minuteField",
817
828
  second: "datePickerInput.secondField",
818
829
  meridiem: "datePickerInput.meridiemField"
819
- }, dr = (e) => {
820
- let t = I(ur[e.field]).value;
821
- return E.range ? I(e.segment === "start" ? "datePickerInput.startFieldLabel" : "datePickerInput.endFieldLabel", t).value : t;
822
- }, fr = (e, t) => {
823
- if (!E.ampm) {
830
+ }, vr = (e) => {
831
+ let t = I(_r[e.field]).value;
832
+ return D.range ? I(e.segment === "start" ? "datePickerInput.startFieldLabel" : "datePickerInput.endFieldLabel", t).value : t;
833
+ }, yr = (e, t) => {
834
+ if (!D.ampm) {
824
835
  e.hour = String(t).padStart(2, "0");
825
836
  return;
826
837
  }
827
- let n = An(t);
828
- e.hour = n.hour, e.meridiem = W.label(n.meridiem);
829
- }, pr = (e) => {
838
+ let n = In(t);
839
+ e.hour = n.hour, e.meridiem = G.label(n.meridiem);
840
+ }, br = (e) => {
830
841
  if (!e.hour) return 0;
831
842
  let t = parseInt(e.hour, 10);
832
- return E.ampm ? kn(t, e.meridiem || "AM") : t;
833
- }, mr = p(() => E.seconds ? "HH:mm:ss" : "HH:mm"), hr = (e) => e.format(mr.value), gr = /^(\d{1,2}):(\d{1,2})(?::(\d{1,2}))?$/, _r = (e) => {
843
+ return D.ampm ? Fn(t, e.meridiem || "AM") : t;
844
+ }, xr = m(() => D.seconds ? "HH:mm:ss" : "HH:mm"), Sr = (e) => e.format(xr.value), Cr = /^(\d{1,2}):(\d{1,2})(?::(\d{1,2}))?$/, wr = (e) => {
834
845
  if (!e) return null;
835
- let t = gr.exec(e);
846
+ let t = Cr.exec(e);
836
847
  if (!t) return null;
837
848
  let [, n, r, i] = t;
838
849
  return parseInt(n, 10) > 23 || parseInt(r, 10) > 59 || i && parseInt(i, 10) > 59 ? null : {
@@ -840,97 +851,97 @@ var dt = ["dir"], ft = ["onClick"], pt = ["data-value"], mt = [
840
851
  minute: r.padStart(2, "0"),
841
852
  second: (i ?? "").padStart(i ? 2 : 0, "0")
842
853
  };
843
- }, vr = (e, t) => {
854
+ }, Tr = (e, t) => {
844
855
  if (!M.value) return;
845
- let n = _r(t);
846
- n ? (fr(e, parseInt(n.hour, 10)), e.minute = n.minute, e.second = E.seconds ? n.second : "") : (e.hour = "", e.minute = "", e.second = "", e.meridiem = "");
847
- }, yr = p(() => E.seconds ? "datePickerInput.timeFormatSeconds" : "datePickerInput.timeFormat"), br = p(() => w && V.value?.eras.length ? Ve(V.value, xr.value, I("datePickerInput.dateFormatSingle").value, I("datePickerInput.eraField").value) : xr.value), xr = p(() => {
848
- if (E.type === "week" || E.type === "month" || E.type === "year") {
849
- let e = E.type;
850
- return I(E.range ? `datePickerInput.${e}FormatRange` : `datePickerInput.${e}FormatSingle`).value;
856
+ let n = wr(t);
857
+ n ? (yr(e, parseInt(n.hour, 10)), e.minute = n.minute, e.second = D.seconds ? n.second : "") : (e.hour = "", e.minute = "", e.second = "", e.meridiem = "");
858
+ }, Er = m(() => D.seconds ? "datePickerInput.timeFormatSeconds" : "datePickerInput.timeFormat"), Dr = m(() => T && V.value?.eras.length ? Ue(V.value, Or.value, I("datePickerInput.dateFormatSingle").value, I("datePickerInput.eraField").value) : Or.value), Or = m(() => {
859
+ if (D.type === "week" || D.type === "month" || D.type === "year") {
860
+ let e = D.type;
861
+ return I(D.range ? `datePickerInput.${e}FormatRange` : `datePickerInput.${e}FormatSingle`).value;
851
862
  }
852
- if (!M.value) return I(E.range ? "datePickerInput.dateFormatRange" : "datePickerInput.dateFormatSingle").value;
853
- let e = `${I("datePickerInput.dateFormatSingle").value} ${I(yr.value).value}`;
854
- return E.range ? `${e} – ${e}` : e;
855
- }), Sr = p(() => E.placeholder || br.value), Cr = p(() => K.value.every((e) => !q.value[e.segment][e.field])), wr = (e) => {
856
- if (!e) return J();
857
- let t = un(e);
858
- if (!t.isValid()) return J();
859
- let n = J();
863
+ if (!M.value) return I(D.range ? "datePickerInput.dateFormatRange" : "datePickerInput.dateFormatSingle").value;
864
+ let e = `${I("datePickerInput.dateFormatSingle").value} ${I(Er.value).value}`;
865
+ return D.range ? `${e} – ${e}` : e;
866
+ }), kr = m(() => D.placeholder || Dr.value), Ar = m(() => q.value.every((e) => !J.value[e.segment][e.field])), jr = (e) => {
867
+ if (!e) return Y();
868
+ let t = hn(e);
869
+ if (!t.isValid()) return Y();
870
+ let n = Y();
860
871
  return P.value ? {
861
872
  ...n,
862
- ...mn(t)
863
- } : (w && V.value ? Bn(n, t) : (G.value.has("day") && (n.day = t.format("DD")), G.value.has("month") && (n.month = t.format("MM")), n.year = t.format("YYYY")), M.value && !A.floating && (fr(n, t.hour()), n.minute = t.format("mm"), n.second = E.seconds ? t.format("ss") : ""), n);
864
- }, Tr = (e) => Array.isArray(E.time) ? E.time[e === "start" ? 0 : 1] : e === "start" ? E.time : void 0, Er = (e) => {
865
- if (!e) q.value = {
866
- start: J(),
867
- end: J()
873
+ ...yn(t)
874
+ } : (T && V.value ? qn(n, t) : (K.value.has("day") && (n.day = t.format("DD")), K.value.has("month") && (n.month = t.format("MM")), n.year = t.format("YYYY")), M.value && !A.floating && (yr(n, t.hour()), n.minute = t.format("mm"), n.second = D.seconds ? t.format("ss") : ""), n);
875
+ }, Mr = (e) => Array.isArray(D.time) ? D.time[e === "start" ? 0 : 1] : e === "start" ? D.time : void 0, Nr = (e) => {
876
+ if (!e) J.value = {
877
+ start: Y(),
878
+ end: Y()
868
879
  };
869
880
  else {
870
- if (E.range) {
881
+ if (D.range) {
871
882
  let [t, n] = Array.isArray(e) ? e : [];
872
- q.value = {
873
- start: wr(t),
874
- end: wr(n)
883
+ J.value = {
884
+ start: jr(t),
885
+ end: jr(n)
875
886
  };
876
- } else Array.isArray(e) ? q.value = {
877
- start: J(),
878
- end: J()
879
- } : q.value = {
880
- start: wr(e),
881
- end: J()
887
+ } else Array.isArray(e) ? J.value = {
888
+ start: Y(),
889
+ end: Y()
890
+ } : J.value = {
891
+ start: jr(e),
892
+ end: Y()
882
893
  };
883
894
  if (M.value && A.floating) for (let e of ["start", "end"]) {
884
- let t = q.value[e];
885
- t.day && vr(t, Tr(e));
895
+ let t = J.value[e];
896
+ t.day && Tr(t, Mr(e));
886
897
  }
887
898
  }
888
- }, Dr = () => {
889
- Er(E.modelValue);
899
+ }, Pr = () => {
900
+ Nr(D.modelValue);
890
901
  };
891
- Er(E.modelValue), Y(), w && at(V, () => {
892
- Er(E.modelValue), Y();
902
+ Nr(D.modelValue), X(), T && st(V, () => {
903
+ Nr(D.modelValue), X();
893
904
  });
894
- let Or = (e) => {
905
+ let Fr = (e) => {
895
906
  if (!M.value || A.floating) return;
896
907
  let t;
897
- t = e ? Array.isArray(e) ? e.map((e) => hr(un(e))) : hr(un(e)) : null, Z.value = t, D("update:time", t);
908
+ t = e ? Array.isArray(e) ? e.map((e) => Sr(hn(e))) : Sr(hn(e)) : null, Hr.value = t, O("update:time", t);
898
909
  };
899
- at(() => E.modelValue, (e) => {
910
+ st(() => D.modelValue, (e) => {
900
911
  if (e === null || Array.isArray(e) && e.length === 0) {
901
- Er(e), Y(), Or(e);
912
+ Nr(e), X(), Fr(e);
902
913
  return;
903
914
  }
904
915
  let t = document.activeElement;
905
- t && Zn(t) || (Er(e), Y(), Or(e));
906
- }), at(() => E.time, (e) => {
907
- if (!M.value || pe(e ?? null) === pe(Z.value ?? null)) return;
916
+ t && ir(t) || (Nr(e), X(), Fr(e));
917
+ }), st(() => D.time, (e) => {
918
+ if (!M.value || pe(e ?? null) === pe(Hr.value ?? null)) return;
908
919
  let t = document.activeElement;
909
- if (!(t && Zn(t))) {
920
+ if (!(t && ir(t))) {
910
921
  for (let e of ["start", "end"]) {
911
- if (e === "end" && !E.range) break;
912
- let t = Tr(e), n = q.value[e];
913
- t !== void 0 && vr(n, t);
922
+ if (e === "end" && !D.range) break;
923
+ let t = Mr(e), n = J.value[e];
924
+ t !== void 0 && Tr(n, t);
914
925
  }
915
- Y(), $({ finalize: !1 });
926
+ X(), $({ finalize: !1 });
916
927
  }
917
928
  });
918
- let kr = () => er("start") === "partial" ? !0 : E.range ? er("end") === "partial" : !1, Ar = (e) => {
919
- let t = q.value[e], n = G.value;
929
+ let Ir = () => sr("start") === "partial" ? !0 : D.range ? sr("end") === "partial" : !1, Lr = (e) => {
930
+ let t = J.value[e], n = K.value;
920
931
  if (P.value) {
921
932
  if (!t.week || !t.year) return null;
922
933
  let n = parseInt(t.year, 10), r = parseInt(t.week, 10);
923
934
  if (n < 1e3 || n > 9999 || r < 1) return null;
924
935
  let i = ce(n);
925
- r > i && (q.value[e].week = String(i).padStart(2, "0"));
936
+ r > i && (J.value[e].week = String(i).padStart(2, "0"));
926
937
  let a = se(n, Math.min(r, i));
927
938
  return a.isValid() ? a : null;
928
939
  }
929
940
  if (n.has("day") && !t.day || n.has("month") && !t.month || !t.year) return null;
930
- if (w && V.value) {
931
- let r = M.value ? jr(t) : null;
941
+ if (T && V.value) {
942
+ let r = M.value ? Rr(t) : null;
932
943
  if (M.value && !r) return null;
933
- let i = Rn(t), a = zn.get(nt(q.value[e]));
944
+ let i = Gn(t), a = Kn.get(it(J.value[e]));
934
945
  if (a && !V.value.eras.length && n.has("month")) {
935
946
  let e = V.value.fieldsOf(a), n = parseInt(t.year, 10) - parseInt(e.year, 10);
936
947
  n && parseInt(t.month, 10) === parseInt(e.month, 10) && (i = {
@@ -940,92 +951,92 @@ var dt = ["dir"], ft = ["onClick"], pt = ["data-value"], mt = [
940
951
  }
941
952
  let o = V.value.nearest(i, n);
942
953
  if (!o) return null;
943
- zn.set(nt(q.value[e]), o);
954
+ Kn.set(it(J.value[e]), o);
944
955
  let s = V.value.fieldsOf(o);
945
956
  for (let r of [
946
957
  "era",
947
958
  "year",
948
959
  "month",
949
960
  "day"
950
- ]) n.has(r) && (r === "era" ? t.era !== s.era : parseInt(t[r], 10) !== parseInt(s[r], 10)) && (q.value[e][r] = s[r]);
961
+ ]) n.has(r) && (r === "era" ? t.era !== s.era : parseInt(t[r], 10) !== parseInt(s[r], 10)) && (J.value[e][r] = s[r]);
951
962
  return r ? o.hour(+r.hour).minute(+r.minute).second(+r.second) : o;
952
963
  }
953
964
  let r = n.has("day") ? parseInt(t.day, 10) : 1, i = n.has("month") ? parseInt(t.month, 10) : 1, a = parseInt(t.year, 10);
954
965
  if (r < 1 || r > 31 || i < 1 || i > 12 || a < 1e3 || a > 9999) return null;
955
966
  let o = t.year.padStart(4, "0"), s = String(i).padStart(2, "0"), c = String(r).padStart(2, "0"), l = "", u = "";
956
967
  if (M.value) {
957
- let e = jr(t);
968
+ let e = Rr(t);
958
969
  if (!e) return null;
959
970
  l = `T${e.hour}:${e.minute}:${e.second}`, u = "THH:mm:ss";
960
971
  }
961
- let ee = `${o}-${s}-${c}${l}`, d = C(ee, T + u, !0);
962
- if (!d.isValid()) {
963
- let t = C(`${o}-${s}-01`, T, !0).endOf("month").date(), n = Math.min(r, t), i = `${o}-${s}-${String(n).padStart(2, "0")}${l}`;
964
- d = C(i, T + u, !0), q.value[e].day = String(n).padStart(2, "0");
972
+ let d = `${o}-${s}-${c}${l}`, f = w(d, E + u, !0);
973
+ if (!f.isValid()) {
974
+ let t = w(`${o}-${s}-01`, E, !0).endOf("month").date(), n = Math.min(r, t), i = `${o}-${s}-${String(n).padStart(2, "0")}${l}`;
975
+ f = w(i, E + u, !0), J.value[e].day = String(n).padStart(2, "0");
965
976
  }
966
- return d.isValid() ? d : null;
967
- }, jr = (e) => {
968
- if (E.ampm && e.hour) {
977
+ return f.isValid() ? f : null;
978
+ }, Rr = (e) => {
979
+ if (D.ampm && e.hour) {
969
980
  let t = parseInt(e.hour, 10);
970
981
  if (t < 1 || t > 12) return null;
971
982
  }
972
- let t = String(pr(e)).padStart(2, "0"), n = (e.minute || "0").padStart(2, "0"), r = ((E.seconds ? e.second : "") || "0").padStart(2, "0");
983
+ let t = String(br(e)).padStart(2, "0"), n = (e.minute || "0").padStart(2, "0"), r = ((D.seconds ? e.second : "") || "0").padStart(2, "0");
973
984
  return parseInt(t, 10) > 23 || parseInt(n, 10) > 59 || parseInt(r, 10) > 59 ? null : {
974
985
  hour: t,
975
986
  minute: n,
976
987
  second: r
977
988
  };
978
- }, Mr = (e) => {
979
- let t = J();
989
+ }, zr = (e) => {
990
+ let t = Y();
980
991
  return P.value ? {
981
992
  ...t,
982
- ...mn(e)
983
- } : (w && V.value ? Bn(t, e) : (G.value.has("day") && (t.day = e.format("DD")), G.value.has("month") && (t.month = e.format("MM")), t.year = e.format("YYYY")), M.value && (fr(t, e.hour()), t.minute = e.format("mm"), t.second = E.seconds ? e.format("ss") : ""), t);
984
- }, Nr = (e) => {
993
+ ...yn(e)
994
+ } : (T && V.value ? qn(t, e) : (K.value.has("day") && (t.day = e.format("DD")), K.value.has("month") && (t.month = e.format("MM")), t.year = e.format("YYYY")), M.value && (yr(t, e.hour()), t.minute = e.format("mm"), t.second = D.seconds ? e.format("ss") : ""), t);
995
+ }, Br = (e) => {
985
996
  if (P.value) {
986
- let t = f(e), n = z.value ? R(z.value) : null, r = B.value ? R(B.value) : null;
987
- return n && t.isBefore(n, "day") && (t = f(n), t.isBefore(n, "day") && (t = t.add(1, "week"))), r && t.add(6, "day").isAfter(r, "day") && (t = f(r), t.add(6, "day").isAfter(r, "day") && (t = t.subtract(1, "week"))), t.isSame(f(e), "day") || En(t) ? null : t;
997
+ let t = p(e), n = z.value ? R(z.value) : null, r = B.value ? R(B.value) : null;
998
+ return n && t.isBefore(n, "day") && (t = p(n), t.isBefore(n, "day") && (t = t.add(1, "week"))), r && t.add(6, "day").isAfter(r, "day") && (t = p(r), t.add(6, "day").isAfter(r, "day") && (t = t.subtract(1, "week"))), t.isSame(p(e), "day") || W(t) ? null : t;
988
999
  }
989
- let t = (t, n) => M.value && !n ? t.hour(e.hour()).minute(e.minute()).second(e.second()) : t, n = !!(w && F.value && N.value), r = n ? "day" : Ht.value, i = N.value ? r : M.value ? "minute" : "day", a = e, o = z.value, s = B.value;
1000
+ let t = (t, n) => M.value && !n ? t.hour(e.hour()).minute(e.minute()).second(e.second()) : t, n = !!(T && F.value && N.value), r = n ? "day" : qt.value, i = N.value ? r : M.value ? "minute" : "day", a = e, o = z.value, s = B.value;
990
1001
  if (o) {
991
- let e = rn(o), n = R(o);
1002
+ let e = ln(o), n = R(o);
992
1003
  a.isBefore(n, N.value ? r : M.value && e ? "minute" : "day") && (a = N.value ? n : t(n, e));
993
1004
  }
994
1005
  if (s) {
995
- let e = rn(s), i = R(s);
996
- a.isAfter(i, N.value ? r : M.value && e ? "minute" : "day") && (a = N.value ? n ? i : i.startOf(Ht.value) : t(i, e));
1006
+ let e = ln(s), i = R(s);
1007
+ a.isAfter(i, N.value ? r : M.value && e ? "minute" : "day") && (a = N.value ? n ? i : i.startOf(qt.value) : t(i, e));
997
1008
  }
998
- return a.isSame(e, i) || En(a) ? null : a;
999
- }, X = (e) => {
1000
- D("error", e);
1001
- }, Pr = (e) => {
1002
- let t = q.value[e], n = String(pr(t)).padStart(2, "0"), r = (t.minute || "0").padStart(2, "0");
1003
- return E.seconds ? `${n}:${r}:${(t.second || "0").padStart(2, "0")}` : `${n}:${r}`;
1004
- }, Z = y(void 0), Q = (e) => {
1005
- if (D("update:modelValue", e), !M.value) return;
1009
+ return a.isSame(e, i) || W(a) ? null : a;
1010
+ }, Z = (e) => {
1011
+ O("error", e);
1012
+ }, Vr = (e) => {
1013
+ let t = J.value[e], n = String(br(t)).padStart(2, "0"), r = (t.minute || "0").padStart(2, "0");
1014
+ return D.seconds ? `${n}:${r}:${(t.second || "0").padStart(2, "0")}` : `${n}:${r}`;
1015
+ }, Hr = b(void 0), Q = (e) => {
1016
+ if (O("update:modelValue", e), !M.value) return;
1006
1017
  let t;
1007
- t = e === null ? null : Array.isArray(e) ? e.map((e, t) => Pr(t === 0 ? "start" : "end")) : Pr("start"), Z.value = t, D("update:time", t);
1018
+ t = e === null ? null : Array.isArray(e) ? e.map((e, t) => Vr(t === 0 ? "start" : "end")) : Vr("start"), Hr.value = t, O("update:time", t);
1008
1019
  }, $ = (e = {}) => {
1009
- let t = !!e.finalize, n = er("start");
1010
- if (!E.range) {
1020
+ let t = !!e.finalize, n = sr("start");
1021
+ if (!D.range) {
1011
1022
  if (n === "empty") {
1012
1023
  Q(null);
1013
1024
  return;
1014
1025
  }
1015
1026
  if (n === "partial") return;
1016
- let e = Ar("start");
1027
+ let e = Lr("start");
1017
1028
  if (!e) return;
1018
- if (En(e)) {
1029
+ if (W(e)) {
1019
1030
  if (!t) return;
1020
- let n = H(e), r = Nr(e);
1031
+ let n = H(e), r = Br(e);
1021
1032
  if (r) {
1022
1033
  let e = H(r);
1023
- q.value.start = Mr(r), Q(e), X({
1034
+ J.value.start = zr(r), Q(e), Z({
1024
1035
  code: "disabled_date",
1025
1036
  original: n,
1026
1037
  normalized: e
1027
1038
  });
1028
- } else q.value.start = J(), Q(null), X({
1039
+ } else J.value.start = Y(), Q(null), Z({
1029
1040
  code: "disabled_date",
1030
1041
  original: n,
1031
1042
  normalized: null
@@ -1035,29 +1046,29 @@ var dt = ["dir"], ft = ["onClick"], pt = ["data-value"], mt = [
1035
1046
  Q(H(e));
1036
1047
  return;
1037
1048
  }
1038
- let r = er("end");
1049
+ let r = sr("end");
1039
1050
  if (n === "empty" && r === "empty") {
1040
1051
  Q([]);
1041
1052
  return;
1042
1053
  }
1043
1054
  if (n === "partial" || r === "partial" || n === "empty") return;
1044
- let i = Ar("start");
1055
+ let i = Lr("start");
1045
1056
  if (!i) return;
1046
- let a = r === "empty" ? null : Ar("end"), o = H(i), s = a ? H(a) : null, c = i, l = !1;
1047
- if (En(i)) {
1057
+ let a = r === "empty" ? null : Lr("end"), o = H(i), s = a ? H(a) : null, c = i, l = !1;
1058
+ if (W(i)) {
1048
1059
  if (!t) return;
1049
- let e = Nr(i), n = s ? [o, s] : [o];
1060
+ let e = Br(i), n = s ? [o, s] : [o];
1050
1061
  if (!e) {
1051
- q.value.start = J(), q.value.end = J(), Q([]), X({
1062
+ J.value.start = Y(), J.value.end = Y(), Q([]), Z({
1052
1063
  code: "disabled_range_start",
1053
1064
  original: n,
1054
1065
  normalized: []
1055
1066
  });
1056
1067
  return;
1057
1068
  }
1058
- if (c = e, l = !0, q.value.start = Mr(e), !a) {
1069
+ if (c = e, l = !0, J.value.start = zr(e), !a) {
1059
1070
  let t = [H(e)];
1060
- Q(t), X({
1071
+ Q(t), Z({
1061
1072
  code: "disabled_range_start",
1062
1073
  original: n,
1063
1074
  normalized: t
@@ -1069,261 +1080,237 @@ var dt = ["dir"], ft = ["onClick"], pt = ["data-value"], mt = [
1069
1080
  Q([H(c)]);
1070
1081
  return;
1071
1082
  }
1072
- let u = a, ee = !1;
1073
- if (En(a)) {
1083
+ let u = a, d = !1;
1084
+ if (W(a)) {
1074
1085
  if (!t) return;
1075
- let e = Nr(a), n = [o, s];
1086
+ let e = Br(a), n = [o, s];
1076
1087
  if (!e) {
1077
1088
  let e = [H(c)];
1078
- q.value.end = J(), Q(e), l && X({
1089
+ J.value.end = Y(), Q(e), l && Z({
1079
1090
  code: "disabled_range_start",
1080
1091
  original: n,
1081
1092
  normalized: e
1082
- }), X({
1093
+ }), Z({
1083
1094
  code: "disabled_range_end",
1084
1095
  original: n,
1085
1096
  normalized: e
1086
1097
  });
1087
1098
  return;
1088
1099
  }
1089
- u = e, ee = !0, q.value.end = Mr(e);
1100
+ u = e, d = !0, J.value.end = zr(e);
1090
1101
  }
1091
1102
  if (u.isBefore(c, M.value ? "second" : "day")) {
1092
1103
  if (!t) return;
1093
- let e = [H(c), H(u)], n = [H(u), H(c)], r = { ...q.value.start };
1094
- q.value.start = { ...q.value.end }, q.value.end = r, Y(), Q(n), l && X({
1104
+ let e = [H(c), H(u)], n = [H(u), H(c)], r = { ...J.value.start };
1105
+ J.value.start = { ...J.value.end }, J.value.end = r, X(), Q(n), l && Z({
1095
1106
  code: "disabled_range_start",
1096
1107
  original: [o, s],
1097
1108
  normalized: n
1098
- }), ee && X({
1109
+ }), d && Z({
1099
1110
  code: "disabled_range_end",
1100
1111
  original: [o, s],
1101
1112
  normalized: n
1102
- }), X({
1113
+ }), Z({
1103
1114
  code: "end_before_start",
1104
1115
  original: e,
1105
1116
  normalized: n
1106
1117
  });
1107
1118
  return;
1108
1119
  }
1109
- let d = [H(c), H(u)];
1110
- Q(d), l && X({
1120
+ let f = [H(c), H(u)];
1121
+ Q(f), l && Z({
1111
1122
  code: "disabled_range_start",
1112
1123
  original: s ? [o, s] : [o],
1113
- normalized: d
1114
- }), ee && X({
1124
+ normalized: f
1125
+ }), d && Z({
1115
1126
  code: "disabled_range_end",
1116
1127
  original: [o, s],
1117
- normalized: d
1128
+ normalized: f
1118
1129
  });
1119
1130
  };
1120
- return Qe(() => {
1121
- document.removeEventListener("focusin", U), document.removeEventListener("click", U);
1122
- }), (t, n) => (v(), We(Me, _({
1123
- id: u.id,
1131
+ return et(() => {
1132
+ document.removeEventListener("focusin", U), document.removeEventListener("click", U, !0);
1133
+ }), (t, n) => (y(), Ke(Pe, v({
1134
+ id: d.id,
1124
1135
  class: "bb-date-picker-input",
1125
- clearable: u.clearable && Rt.value,
1126
- compact: x(A).compact,
1127
- description: u.description,
1128
- disabled: u.disabled,
1129
- errors: x(wt),
1130
- "has-errors": u.hasErrors,
1131
- "has-value": Rt.value,
1132
- "has-warnings": u.hasWarnings,
1133
- "hide-label": u.hideLabel,
1134
- hint: u.hint,
1135
- "input-align": u.inputAlign,
1136
- label: u.label,
1137
- "label-align": u.labelAlign,
1138
- "label-mode": zt.value,
1139
- "label-position": u.labelPosition,
1140
- layout: x(A).layout,
1141
- loading: u.loading,
1142
- name: u.name,
1143
- passthrough: x(j),
1144
- readonly: x(Ot),
1145
- reverse: x(A).reverse,
1146
- "show-asterisk": x(Ct),
1147
- "show-hint": Lt.value,
1148
- warnings: u.warnings
1149
- }, x(j).forwardAttrs), Ge({
1150
- label: S((e) => [b(t.$slots, "label", Xe(Je(e)))]),
1151
- input: S(({ id: r, hasErrors: i, hasWarnings: a, ariaDescribedby: o }) => [Ke(Ne, {
1136
+ clearable: d.clearable && Ut.value,
1137
+ compact: S(A).compact,
1138
+ description: d.description,
1139
+ disabled: d.disabled,
1140
+ errors: S(Et),
1141
+ "has-errors": d.hasErrors,
1142
+ "has-value": Ut.value,
1143
+ "has-warnings": d.hasWarnings,
1144
+ "hide-label": d.hideLabel,
1145
+ hint: d.hint,
1146
+ "input-align": d.inputAlign,
1147
+ label: d.label,
1148
+ "label-align": d.labelAlign,
1149
+ "label-mode": Wt.value,
1150
+ "label-position": d.labelPosition,
1151
+ layout: S(A).layout,
1152
+ loading: d.loading,
1153
+ name: d.name,
1154
+ passthrough: S(j),
1155
+ readonly: S(At),
1156
+ reverse: S(A).reverse,
1157
+ "show-asterisk": S(Tt),
1158
+ "show-hint": Ht.value,
1159
+ warnings: d.warnings
1160
+ }, S(j).forwardAttrs), qe({
1161
+ label: C((e) => [x(t.$slots, "label", Qe(Xe(e)))]),
1162
+ input: C(({ id: r, hasErrors: i, hasWarnings: a, ariaDescribedby: o }) => [Je(Fe, {
1152
1163
  ref_key: "wrapper",
1153
- ref: Wt,
1154
- active: k.value,
1155
- "append:icon": x(E)["append:icon"],
1156
- class: Ye(["bb-date-picker-input__field", { "bb-date-picker-input__field--range": u.range }]),
1157
- clearable: u.clearable && !x(fe)(x(Dt)),
1158
- compact: x(A).compact,
1159
- disabled: u.disabled,
1164
+ ref: L,
1165
+ active: Pt.value,
1166
+ "append:icon": S(D)["append:icon"],
1167
+ class: Ze(["bb-date-picker-input__field", { "bb-date-picker-input__field--range": d.range }]),
1168
+ clearable: d.clearable && !S(fe)(S(kt)),
1169
+ compact: S(A).compact,
1170
+ disabled: d.disabled,
1160
1171
  "has-errors": i,
1161
- "has-value": Rt.value,
1172
+ "has-value": Ut.value,
1162
1173
  "has-warnings": a,
1163
- loading: u.loading,
1164
- passthrough: x(j),
1165
- "prepend:icon": x(E)["prepend:icon"],
1166
- readonly: x(Ot),
1167
- variant: u.variant,
1168
- onClick: Zt,
1169
- "onClick:clear": Dn,
1170
- onFocusin: dn
1171
- }, Ge({
1172
- "prepend:outer": S(() => [b(t.$slots, "prepend:outer")]),
1173
- prepend: S(() => [b(t.$slots, "prepend")]),
1174
- append: S(() => [en.value ? m("", !0) : (v(), We(Oe, {
1174
+ loading: d.loading,
1175
+ passthrough: S(j),
1176
+ "prepend:icon": S(D)["prepend:icon"],
1177
+ readonly: S(At),
1178
+ variant: d.variant,
1179
+ onClick: nn,
1180
+ "onClick:clear": Nn,
1181
+ onFocusin: gn
1182
+ }, qe({
1183
+ "prepend:outer": C(() => [x(t.$slots, "prepend:outer")]),
1184
+ prepend: C(() => [x(t.$slots, "prepend")]),
1185
+ append: C(() => [on.value ? h("", !0) : (y(), Ke(Ae, {
1175
1186
  key: 0,
1176
- "active-segment": bn.value,
1177
- adaptive: x(A).adaptive,
1178
- ampm: u.ampm,
1179
- anchor: Wt.value,
1180
- clearable: u.clearable,
1181
- disabled: u.disabled,
1182
- "first-day-of-week": u.firstDayOfWeek,
1183
- floating: x(A).floating,
1184
- label: Tn.value,
1185
- max: u.max,
1186
- min: u.min,
1187
- "model-value": x(Dt),
1188
- "number-of-months": u.numberOfMonths,
1189
- "off-canvas-props": u.offCanvasProps,
1190
- pt: x(j).forward(Bt, x(ke).states),
1191
- range: x(E).range,
1192
- readonly: x(Ot),
1193
- seconds: u.seconds,
1194
- selectable: u.selectable,
1195
- step: u.step,
1196
- time: u.time,
1197
- "transition-duration": u.transitionDuration,
1198
- type: u.type,
1199
- utc: u.utc,
1200
- onGridPick: hn["onUpdate:modelValue"],
1201
- onHidden: n[1] ||= (e) => x(D)("hidden"),
1202
- onHide: It,
1203
- onShow: Ft,
1204
- onShown: n[2] ||= (e) => x(D)("shown"),
1205
- onTimePick: xn
1206
- }, Ge({
1207
- activator: S(({ props: e }) => [g("button", _({
1208
- "aria-disabled": x(kt) || void 0,
1187
+ "active-segment": Tn.value,
1188
+ adaptive: S(A).adaptive,
1189
+ ampm: d.ampm,
1190
+ anchor: L.value,
1191
+ clearable: d.clearable,
1192
+ disabled: d.disabled,
1193
+ "first-day-of-week": d.firstDayOfWeek,
1194
+ floating: S(A).floating,
1195
+ label: jn.value,
1196
+ max: d.max,
1197
+ min: d.min,
1198
+ "model-value": Mn.value,
1199
+ "number-of-months": d.numberOfMonths,
1200
+ "off-canvas-props": d.offCanvasProps,
1201
+ open: S(Bt),
1202
+ pt: S(j).forward(Gt, S(je).states),
1203
+ range: S(D).range,
1204
+ readonly: S(At),
1205
+ seconds: d.seconds,
1206
+ selectable: d.selectable,
1207
+ step: d.step,
1208
+ time: d.time,
1209
+ "transition-duration": d.transitionDuration,
1210
+ type: d.type,
1211
+ utc: d.utc,
1212
+ onGridPick: bn["onUpdate:modelValue"],
1213
+ onHidden: n[1] ||= (e) => S(O)("hidden"),
1214
+ onHide: zt,
1215
+ onShow: Rt,
1216
+ onShown: n[2] ||= (e) => S(O)("shown"),
1217
+ onTimePick: En,
1218
+ "onUpdate:open": S(Vt)
1219
+ }, qe({
1220
+ activator: C(({ props: e }) => [_("button", v({
1221
+ "aria-disabled": S(jt) || void 0,
1209
1222
  class: "bb-segmented-field__activator",
1210
- disabled: u.disabled || u.readonly,
1223
+ disabled: d.disabled || d.readonly,
1211
1224
  type: "button"
1212
- }, _(e, x(j).activator)), [Ke(je, {
1225
+ }, v(e, S(j).activator)), [Je(Ne, {
1213
1226
  class: "bb-segmented-field__trigger-icon",
1214
- icon: x(ve)
1215
- }, null, 8, ["icon"])], 16, _t)]),
1216
- day: S((e) => [b(t.$slots, "day", Xe(Je(e)))]),
1217
- "day:append": S((e) => [b(t.$slots, "day:append", Xe(Je(e)))]),
1227
+ icon: S(ye)
1228
+ }, null, 8, ["icon"])], 16, yt)]),
1229
+ day: C((e) => [x(t.$slots, "day", Qe(Xe(e)))]),
1230
+ "day:append": C((e) => [x(t.$slots, "day:append", Qe(Xe(e)))]),
1218
1231
  _: 2
1219
- }, [et(jt(), (e) => ({
1232
+ }, [nt(Nt(), (e) => ({
1220
1233
  name: e,
1221
- fn: S((n) => [b(t.$slots, e, Xe(Je(n)))])
1222
- }))]), 1032, [
1223
- "active-segment",
1224
- "adaptive",
1225
- "ampm",
1226
- "anchor",
1227
- "clearable",
1228
- "disabled",
1229
- "first-day-of-week",
1230
- "floating",
1231
- "label",
1232
- "max",
1233
- "min",
1234
- "model-value",
1235
- "number-of-months",
1236
- "off-canvas-props",
1237
- "pt",
1238
- "range",
1239
- "readonly",
1240
- "seconds",
1241
- "selectable",
1242
- "step",
1243
- "time",
1244
- "transition-duration",
1245
- "type",
1246
- "utc",
1247
- "onGridPick"
1248
- ])), b(t.$slots, "append", {}, () => [t.$slots.suffix ? (v(), h("span", _({
1234
+ fn: C((n) => [x(t.$slots, e, Qe(Xe(n)))])
1235
+ }))]), 1032, /* @__PURE__ */ "active-segment.adaptive.ampm.anchor.clearable.disabled.first-day-of-week.floating.label.max.min.model-value.number-of-months.off-canvas-props.open.pt.range.readonly.seconds.selectable.step.time.transition-duration.type.utc.onGridPick.onUpdate:open".split("."))), x(t.$slots, "append", {}, () => [t.$slots.suffix ? (y(), g("span", v({
1249
1236
  key: 0,
1250
1237
  class: "bb-field-input__suffix"
1251
- }, x(j).suffix), [b(t.$slots, "suffix")], 16)) : m("", !0)])]),
1252
- "append:outer": S(() => [b(t.$slots, "append:outer")]),
1253
- default: S(() => [g("div", {
1254
- class: Ye(["bb-segmented-field__fields", {
1255
- "bb-segmented-field__fields--empty": Cr.value,
1256
- "bb-segmented-field__fields--range": u.range
1238
+ }, S(j).suffix), [x(t.$slots, "suffix")], 16)) : h("", !0)])]),
1239
+ "append:outer": C(() => [x(t.$slots, "append:outer")]),
1240
+ default: C(() => [_("div", {
1241
+ class: Ze(["bb-segmented-field__fields", {
1242
+ "bb-segmented-field__fields--empty": Ar.value,
1243
+ "bb-segmented-field__fields--range": d.range
1257
1244
  }]),
1258
- style: Ze({ "--fields-min-ch": x(Xn) })
1259
- }, [Cr.value ? (v(), h("span", {
1245
+ style: $e({ "--fields-min-ch": S(rr) })
1246
+ }, [Ar.value ? (y(), g("span", {
1260
1247
  key: 0,
1261
1248
  "aria-hidden": "true",
1262
1249
  class: "bb-segmented-field__placeholder",
1263
- onClick: n[0] ||= (...e) => x($n) && x($n)(...e)
1264
- }, tt(Sr.value), 1)) : m("", !0), (v(!0), h(Ue, null, et(Vn.value, (t, n) => (v(), h(Ue, { key: t.key }, [g("span", {
1265
- class: Ye(["bb-segmented-field__run", `bb-segmented-field__run--${t.kind}`]),
1266
- dir: Wn(t)
1267
- }, [(v(!0), h(Ue, null, et(t.items, ({ descriptor: n, index: a }, s) => (v(), h(Ue, { key: x(qn)(n) }, [
1268
- n.field === "week" ? (v(), h("span", {
1250
+ onClick: n[0] ||= (...e) => S(or) && S(or)(...e)
1251
+ }, rt(kr.value), 1)) : h("", !0), (y(!0), g(Ge, null, nt(Jn.value, (t, n) => (y(), g(Ge, { key: t.key }, [_("span", {
1252
+ class: Ze(["bb-segmented-field__run", `bb-segmented-field__run--${t.kind}`]),
1253
+ dir: Zn(t)
1254
+ }, [(y(!0), g(Ge, null, nt(t.items, ({ descriptor: n, index: a }, s) => (y(), g(Ge, { key: S(er)(n) }, [
1255
+ n.field === "week" ? (y(), g("span", {
1269
1256
  key: 0,
1270
1257
  "aria-hidden": "true",
1271
1258
  class: "bb-segmented-field__separator bb-segmented-field__week-prefix",
1272
- onClick: (e) => x(Qn)(n, { select: !0 })
1273
- }, "W", 8, ft)) : m("", !0),
1274
- g("span", {
1259
+ onClick: (e) => S(ar)(n, { select: !0 })
1260
+ }, "W", 8, mt)) : h("", !0),
1261
+ _("span", {
1275
1262
  class: "bb-segmented-field__field-sizer",
1276
- "data-value": x(Yn)(n)
1277
- }, [ot(g("input", _({
1278
- id: a === 0 ? r : cr(n, r),
1263
+ "data-value": S(nr)(n)
1264
+ }, [ct(_("input", v({
1265
+ id: a === 0 ? r : hr(n, r),
1279
1266
  ref_for: !0,
1280
- ref: (e) => x(Kn)[x(qn)(n)] = e,
1281
- "aria-describedby": Kt(o, r),
1282
- "aria-disabled": u.disabled || void 0,
1267
+ ref: (e) => S($n)[S(er)(n)] = e,
1268
+ "aria-describedby": Zt(o, r),
1269
+ "aria-disabled": d.disabled || void 0,
1283
1270
  "aria-invalid": i ? "true" : void 0,
1284
- "aria-label": dr(n),
1285
- "aria-readonly": tn.value || void 0,
1286
- autocomplete: x(A).autocomplete,
1287
- autofocus: u.autofocus && a === 0,
1271
+ "aria-label": vr(n),
1272
+ "aria-readonly": sn.value || void 0,
1273
+ autocomplete: S(A).autocomplete,
1274
+ autofocus: d.autofocus && a === 0,
1288
1275
  class: ["bb-segmented-field__input", [`bb-segmented-field__input--${n.field}`, `bb-segmented-field__input--${n.segment}`]],
1289
- disabled: u.disabled,
1290
- inputmode: nn(n.field),
1291
- maxlength: In.value[n.field].maxLength,
1292
- name: lr(n),
1293
- readonly: tn.value,
1294
- required: x(Tt),
1295
- "aria-required": x(Et),
1296
- tabindex: Fn(a) ? 0 : -1,
1276
+ disabled: d.disabled,
1277
+ inputmode: cn(n.field),
1278
+ maxlength: Un(n.field),
1279
+ name: gr(n),
1280
+ readonly: sn.value,
1281
+ required: S(Dt),
1282
+ "aria-required": S(Ot),
1283
+ tabindex: Vn(a) ? 0 : -1,
1297
1284
  type: "text",
1298
- value: x(Jn)(x(q)[n.segment][n.field]),
1299
- onBlur: (e) => x(ir)(n),
1300
- onFocus: (e) => yn(n, e),
1301
- onInput: (e) => or(n, e),
1302
- onKeydown: (e) => $t(n, e),
1303
- onPaste: (e) => x(ar)(n, e)
1304
- }, { ref_for: !0 }, _(x(j).controlAttrs, x(j).input)), null, 16, mt), [[x(e)]])], 8, pt),
1305
- s < t.items.length - 1 ? (v(), h("span", {
1285
+ value: S(tr)(S(J)[n.segment][n.field]),
1286
+ onBlur: (e) => S(dr)(n),
1287
+ onFocus: (e) => wn(n, e),
1288
+ onInput: (e) => pr(n, e),
1289
+ onKeydown: (e) => an(n, e),
1290
+ onPaste: (e) => S(fr)(n, e)
1291
+ }, { ref_for: !0 }, v(S(j).controlAttrs, S(j).input)), null, 16, gt), [[S(e)]])], 8, ht),
1292
+ s < t.items.length - 1 ? (y(), g("span", {
1306
1293
  key: 1,
1307
1294
  "aria-hidden": "true",
1308
1295
  class: "bb-segmented-field__separator",
1309
1296
  role: "presentation",
1310
- onClick: (e) => x(Qn)(K.value[a + 1], { select: !0 })
1311
- }, tt(Gn(K.value[a], K.value[a + 1])), 9, ht)) : m("", !0)
1312
- ], 64))), 128))], 10, dt), n < Vn.value.length - 1 ? (v(), h("span", {
1297
+ onClick: (e) => S(ar)(q.value[a + 1], { select: !0 })
1298
+ }, rt(Qn(q.value[a], q.value[a + 1])), 9, _t)) : h("", !0)
1299
+ ], 64))), 128))], 10, pt), n < Jn.value.length - 1 ? (y(), g("span", {
1313
1300
  key: 0,
1314
1301
  "aria-hidden": "true",
1315
- class: Ye(["bb-segmented-field__separator", { "bb-segmented-field__separator--range": K.value[Hn(t)].segment !== K.value[Hn(t) + 1].segment }]),
1302
+ class: Ze(["bb-segmented-field__separator", { "bb-segmented-field__separator--range": q.value[Yn(t)].segment !== q.value[Yn(t) + 1].segment }]),
1316
1303
  role: "presentation",
1317
- onClick: (e) => x(Qn)(K.value[Hn(t) + 1], { select: !0 })
1318
- }, tt(Gn(K.value[Hn(t)], K.value[Hn(t) + 1])), 11, gt)) : m("", !0)], 64))), 128))], 6), g("span", {
1319
- id: Gt(r),
1304
+ onClick: (e) => S(ar)(q.value[Yn(t) + 1], { select: !0 })
1305
+ }, rt(Qn(q.value[Yn(t)], q.value[Yn(t) + 1])), 11, vt)) : h("", !0)], 64))), 128))], 6), _("span", {
1306
+ id: Xt(r),
1320
1307
  class: "bb-date-picker-input__accessible-description",
1321
1308
  hidden: ""
1322
- }, tt(x(I)("datePickerInput.dateFormat")) + " " + tt(br.value), 9, vt)]),
1309
+ }, rt(S(I)("datePickerInput.dateFormat")) + " " + rt(Dr.value), 9, bt)]),
1323
1310
  _: 2
1324
1311
  }, [t.$slots.prefix ? {
1325
1312
  name: "prefix",
1326
- fn: S(() => [b(t.$slots, "prefix")]),
1313
+ fn: C(() => [x(t.$slots, "prefix")]),
1327
1314
  key: "0"
1328
1315
  } : void 0]), 1032, [
1329
1316
  "active",
@@ -1344,7 +1331,7 @@ var dt = ["dir"], ft = ["onClick"], pt = ["data-value"], mt = [
1344
1331
  _: 2
1345
1332
  }, [t.$slots.description ? {
1346
1333
  name: "description",
1347
- fn: S((e) => [b(t.$slots, "description", Xe(Je(e)))]),
1334
+ fn: C((e) => [x(t.$slots, "description", Qe(Xe(e)))]),
1348
1335
  key: "0"
1349
1336
  } : void 0]), 1040, [
1350
1337
  "id",
@@ -1375,4 +1362,4 @@ var dt = ["dir"], ft = ["onClick"], pt = ["data-value"], mt = [
1375
1362
  ]));
1376
1363
  }
1377
1364
  });
1378
- export { bt as default };
1365
+ export { St as default };