@nubisco/ui 5.54.0 → 5.55.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (207) hide show
  1. package/dist/{AccordionItem--XeLRz2P.js → AccordionItem-BY-p8UkV.js} +1 -1
  2. package/dist/{AccordionItem-BYSH6dZK.cjs → AccordionItem-p0mYXIj8.cjs} +1 -1
  3. package/dist/{ActionGroup-Cn22xj1t.js → ActionGroup-CjRSKyOa.js} +1 -1
  4. package/dist/{ActionGroup-0rG92kFk.cjs → ActionGroup-DIMZhC7N.cjs} +1 -1
  5. package/dist/AiLabel-BDccQ2iQ.js +242 -0
  6. package/dist/AiLabel-jRrBTu6c.cjs +1 -0
  7. package/dist/{AiProvider-CLtCD_UR.cjs → AiProvider-CGB9EiSf.cjs} +1 -1
  8. package/dist/{AiProvider-gprbR5ts.js → AiProvider-CMbPWtU-.js} +2 -2
  9. package/dist/{BatchActions-Ckx8kyZt.js → BatchActions-Kr2S6CJI.js} +1 -1
  10. package/dist/{BatchActions-6IO5GRFm.cjs → BatchActions-jfvfpZeT.cjs} +1 -1
  11. package/dist/{Board-BdqGOVNF.js → Board-C3_cXRl6.js} +177 -176
  12. package/dist/Board-D6A-irdx.cjs +1 -0
  13. package/dist/{Breadcrumbs-BzyDVvEk.cjs → Breadcrumbs-0rRFiO31.cjs} +1 -1
  14. package/dist/{Breadcrumbs-Bc-acmPE.js → Breadcrumbs-DqagVknq.js} +1 -1
  15. package/dist/{Briefing-DwKWCOGm.cjs → Briefing-B-O-9bhN.cjs} +1 -1
  16. package/dist/{Briefing-BiEICh1u.js → Briefing-DNH-707q.js} +1 -1
  17. package/dist/{ChatMessage-1L_xCXZF.cjs → ChatMessage-B45Xhl8x.cjs} +1 -1
  18. package/dist/{ChatMessage-C2Ecm175.js → ChatMessage-BDOdvI4h.js} +1 -1
  19. package/dist/{ChatThread-B_F3xTdE.cjs → ChatThread-B7F1r4t4.cjs} +1 -1
  20. package/dist/{ChatThread-COdOb1rH.js → ChatThread-DqvsnVOr.js} +1 -1
  21. package/dist/CommandPalette-BaRqoURY.cjs +1 -0
  22. package/dist/CommandPalette-DWv1UV8r.js +294 -0
  23. package/dist/{Confirm-Baz2WG7b.cjs → Confirm-B5vMzPbN.cjs} +1 -1
  24. package/dist/{Confirm-CvMuXK9Q.js → Confirm-C4lT-6HD.js} +1 -1
  25. package/dist/{DataTable-B8THDBLS.js → DataTable-CcwD0PSJ.js} +2 -2
  26. package/dist/{DataTable-DeFzOlcP.cjs → DataTable-xEw-NvHM.cjs} +1 -1
  27. package/dist/{DatePicker-BrUXcNUj.js → DatePicker-3pCNky8d.js} +234 -230
  28. package/dist/DatePicker-BrMicYUx.cjs +1 -0
  29. package/dist/FloatingToolbar-BV-iGNxe.js +120 -0
  30. package/dist/FloatingToolbar-C8xB4BzH.cjs +1 -0
  31. package/dist/{ImagePicker-vhg7b-UL.cjs → ImagePicker-5qPI77Jo.cjs} +1 -1
  32. package/dist/{ImagePicker-LhpR7jjR.js → ImagePicker-BnHg403Q.js} +1 -1
  33. package/dist/InfoHint-CdluaJqE.cjs +1 -0
  34. package/dist/InfoHint-zMuSw_99.js +182 -0
  35. package/dist/{InlineLoading-CA0_IT29.cjs → InlineLoading-CqGrNWHf.cjs} +1 -1
  36. package/dist/{InlineLoading-Cknqq0vv.js → InlineLoading-_j2KKhNQ.js} +1 -1
  37. package/dist/Menu-CWxBEMC4.js +193 -0
  38. package/dist/Menu-D0TerdRm.cjs +1 -0
  39. package/dist/{MenuBarItem-yr5aizl3.js → MenuBarItem-BYh4YWR4.js} +1 -1
  40. package/dist/{MenuBarItem-DlnIAhRw.cjs → MenuBarItem-DTOqacvg.cjs} +1 -1
  41. package/dist/Modal-CmGFLEo4.cjs +1 -0
  42. package/dist/{Modal-CESCi2dE.js → Modal-DwL90AoV.js} +73 -69
  43. package/dist/NotificationCenter-EMlV-oPh.cjs +1 -0
  44. package/dist/{NotificationCenter-DkGc0ETD.js → NotificationCenter-YZnPMH7c.js} +217 -213
  45. package/dist/{OverflowMenu-BWZ7c8oI.js → OverflowMenu-DliuDrTK.js} +1 -1
  46. package/dist/{OverflowMenu-C8q28FrD.cjs → OverflowMenu-DuRgj1DU.cjs} +1 -1
  47. package/dist/{PageHeader-DElq_kdh.cjs → PageHeader-BoEdR_T5.cjs} +1 -1
  48. package/dist/{PageHeader-DOYN9sto.js → PageHeader-c6117xYf.js} +1 -1
  49. package/dist/{Pagination-9mPN8ych.cjs → Pagination-B3lmxggo.cjs} +1 -1
  50. package/dist/{Pagination-CxBHFwy0.js → Pagination-DwAc-4d9.js} +1 -1
  51. package/dist/Select-CDs-7QtW.js +619 -0
  52. package/dist/Select-CJqwMI69.cjs +1 -0
  53. package/dist/{SidebarCollapseToggle-DraqbhwM.js → SidebarCollapseToggle-C38R19gG.js} +1 -1
  54. package/dist/{SidebarCollapseToggle-CABmF-PC.cjs → SidebarCollapseToggle-DOck3Txy.cjs} +1 -1
  55. package/dist/SidebarMenuItem-DzJ_R2__.cjs +1 -0
  56. package/dist/SidebarMenuItem-E410HTei.js +302 -0
  57. package/dist/Spinner-BlzVODzE.js +161 -0
  58. package/dist/Spinner-Bpfgl-mN.cjs +1 -0
  59. package/dist/{Stat-BCvXYr-z.cjs → Stat-BByeMKkT.cjs} +1 -1
  60. package/dist/{Stat-No3RhGB3.js → Stat-DWliDbWE.js} +1 -1
  61. package/dist/Submenu-BkHGYo7X.js +168 -0
  62. package/dist/Submenu-CCQnBpln.cjs +1 -0
  63. package/dist/{SuggestionList-Cxy4jjjd.cjs → SuggestionList-C61Dj6en.cjs} +1 -1
  64. package/dist/{SuggestionList-Dv4yQAi-.js → SuggestionList-D48Ojcf3.js} +1 -1
  65. package/dist/Toaster-Dwjm0bsR.js +285 -0
  66. package/dist/Toaster-aJJvxlEr.cjs +1 -0
  67. package/dist/{UserMenu-CjmhyTwN.js → UserMenu-BTihjCKC.js} +94 -90
  68. package/dist/UserMenu-CHkbByFS.cjs +1 -0
  69. package/dist/{Walkthrough-DYYqtpwJ.js → Walkthrough-BqGB1yaX.js} +63 -59
  70. package/dist/Walkthrough-sGAypY5d.cjs +1 -0
  71. package/dist/all.cjs +1 -1
  72. package/dist/all.mjs +284 -283
  73. package/dist/components/AccordionItem.cjs +1 -1
  74. package/dist/components/AccordionItem.mjs +1 -1
  75. package/dist/components/ActionGroup.cjs +1 -1
  76. package/dist/components/ActionGroup.mjs +1 -1
  77. package/dist/components/AiLabel.cjs +1 -1
  78. package/dist/components/AiLabel.mjs +1 -1
  79. package/dist/components/AiLabel.vue.d.ts.map +1 -1
  80. package/dist/components/AiProvider.cjs +1 -1
  81. package/dist/components/AiProvider.mjs +1 -1
  82. package/dist/components/BatchActions.cjs +1 -1
  83. package/dist/components/BatchActions.mjs +1 -1
  84. package/dist/components/Board.cjs +1 -1
  85. package/dist/components/Board.mjs +1 -1
  86. package/dist/components/Board.vue.d.ts.map +1 -1
  87. package/dist/components/Breadcrumbs.cjs +1 -1
  88. package/dist/components/Breadcrumbs.mjs +1 -1
  89. package/dist/components/Briefing.cjs +1 -1
  90. package/dist/components/Briefing.mjs +1 -1
  91. package/dist/components/ChatMessage.cjs +1 -1
  92. package/dist/components/ChatMessage.mjs +1 -1
  93. package/dist/components/ChatThread.cjs +1 -1
  94. package/dist/components/ChatThread.mjs +1 -1
  95. package/dist/components/CommandPalette.cjs +1 -1
  96. package/dist/components/CommandPalette.mjs +1 -1
  97. package/dist/components/CommandPalette.vue.d.ts.map +1 -1
  98. package/dist/components/Confirm.cjs +1 -1
  99. package/dist/components/Confirm.mjs +1 -1
  100. package/dist/components/DataTable.cjs +1 -1
  101. package/dist/components/DataTable.mjs +1 -1
  102. package/dist/components/DatePicker.cjs +1 -1
  103. package/dist/components/DatePicker.mjs +1 -1
  104. package/dist/components/DatePicker.vue.d.ts.map +1 -1
  105. package/dist/components/FloatingToolbar.cjs +1 -1
  106. package/dist/components/FloatingToolbar.mjs +1 -1
  107. package/dist/components/FloatingToolbar.vue.d.ts.map +1 -1
  108. package/dist/components/ImagePicker.cjs +1 -1
  109. package/dist/components/ImagePicker.mjs +1 -1
  110. package/dist/components/InfoHint.cjs +1 -1
  111. package/dist/components/InfoHint.mjs +1 -1
  112. package/dist/components/InfoHint.vue.d.ts.map +1 -1
  113. package/dist/components/InlineLoading.cjs +1 -1
  114. package/dist/components/InlineLoading.mjs +1 -1
  115. package/dist/components/Menu.cjs +1 -1
  116. package/dist/components/Menu.mjs +1 -1
  117. package/dist/components/Menu.vue.d.ts.map +1 -1
  118. package/dist/components/MenuBarItem.cjs +1 -1
  119. package/dist/components/MenuBarItem.mjs +1 -1
  120. package/dist/components/Modal.cjs +1 -1
  121. package/dist/components/Modal.mjs +1 -1
  122. package/dist/components/Modal.vue.d.ts.map +1 -1
  123. package/dist/components/NotificationCenter.cjs +1 -1
  124. package/dist/components/NotificationCenter.mjs +1 -1
  125. package/dist/components/NotificationCenter.vue.d.ts.map +1 -1
  126. package/dist/components/OverflowMenu.cjs +1 -1
  127. package/dist/components/OverflowMenu.mjs +1 -1
  128. package/dist/components/PageHeader.cjs +1 -1
  129. package/dist/components/PageHeader.mjs +1 -1
  130. package/dist/components/Pagination.cjs +1 -1
  131. package/dist/components/Pagination.mjs +1 -1
  132. package/dist/components/Select.cjs +1 -1
  133. package/dist/components/Select.mjs +1 -1
  134. package/dist/components/Select.vue.d.ts.map +1 -1
  135. package/dist/components/SidebarCollapseToggle.cjs +1 -1
  136. package/dist/components/SidebarCollapseToggle.mjs +1 -1
  137. package/dist/components/SidebarMenuItem.cjs +1 -1
  138. package/dist/components/SidebarMenuItem.mjs +1 -1
  139. package/dist/components/SidebarMenuItem.vue.d.ts.map +1 -1
  140. package/dist/components/Spinner.cjs +1 -1
  141. package/dist/components/Spinner.mjs +1 -1
  142. package/dist/components/Spinner.vue.d.ts.map +1 -1
  143. package/dist/components/Stat.cjs +1 -1
  144. package/dist/components/Stat.mjs +1 -1
  145. package/dist/components/Submenu.cjs +1 -1
  146. package/dist/components/Submenu.mjs +1 -1
  147. package/dist/components/Submenu.vue.d.ts.map +1 -1
  148. package/dist/components/SuggestionList.cjs +1 -1
  149. package/dist/components/SuggestionList.mjs +1 -1
  150. package/dist/components/Toaster.cjs +1 -1
  151. package/dist/components/Toaster.mjs +1 -1
  152. package/dist/components/Toaster.vue.d.ts.map +1 -1
  153. package/dist/components/UserMenu.cjs +1 -1
  154. package/dist/components/UserMenu.mjs +1 -1
  155. package/dist/components/UserMenu.vue.d.ts.map +1 -1
  156. package/dist/components/Walkthrough.cjs +1 -1
  157. package/dist/components/Walkthrough.mjs +1 -1
  158. package/dist/components/Walkthrough.vue.d.ts.map +1 -1
  159. package/dist/composables/useConfirm.composable.cjs +1 -1
  160. package/dist/composables/useConfirm.composable.mjs +2 -2
  161. package/dist/composables/useTeleportReady.composable.cjs +1 -0
  162. package/dist/composables/useTeleportReady.composable.d.ts +30 -0
  163. package/dist/composables/useTeleportReady.composable.d.ts.map +1 -0
  164. package/dist/composables/useTeleportReady.composable.mjs +11 -0
  165. package/dist/index.cjs +1 -1
  166. package/dist/index.mjs +152 -151
  167. package/dist/main-BMIeIxGV.cjs +4 -0
  168. package/dist/{main-D6qY7QeE.js → main-BXz7vG2i.js} +167 -157
  169. package/dist/main.d.ts +10 -1
  170. package/dist/main.d.ts.map +1 -1
  171. package/dist/styles/AiLabel.css +1 -1
  172. package/dist/styles/FloatingToolbar.css +1 -1
  173. package/dist/styles/InfoHint.css +1 -1
  174. package/dist/styles/Modal.css +1 -1
  175. package/dist/styles/SidebarMenuItem.css +1 -1
  176. package/dist/styles/Spinner.css +1 -1
  177. package/dist/styles/Toaster.css +1 -1
  178. package/dist/styles/Walkthrough.css +1 -1
  179. package/dist/ui.css +8 -8
  180. package/package.json +1 -1
  181. package/dist/AiLabel-AGSSBanb.cjs +0 -1
  182. package/dist/AiLabel-D32aNf1F.js +0 -240
  183. package/dist/Board-DtOWyvKh.cjs +0 -1
  184. package/dist/CommandPalette-CC_Aj4Uh.cjs +0 -1
  185. package/dist/CommandPalette-zqTMjpm8.js +0 -290
  186. package/dist/DatePicker-B5YRb64p.cjs +0 -1
  187. package/dist/FloatingToolbar-BikX_AsP.js +0 -116
  188. package/dist/FloatingToolbar-DWVY8Fxo.cjs +0 -1
  189. package/dist/InfoHint-BEzkNQTM.cjs +0 -1
  190. package/dist/InfoHint-BlHxrTw6.js +0 -178
  191. package/dist/Menu-7EgnchVu.js +0 -189
  192. package/dist/Menu-Bs2Co1sl.cjs +0 -1
  193. package/dist/Modal-C_EWDvmH.cjs +0 -1
  194. package/dist/NotificationCenter-DxZgHQyt.cjs +0 -1
  195. package/dist/Select-7gJ3_fWh.js +0 -615
  196. package/dist/Select-Dg4HSHOu.cjs +0 -1
  197. package/dist/SidebarMenuItem-DQRQtqrp.js +0 -300
  198. package/dist/SidebarMenuItem-Dwk7vKN5.cjs +0 -1
  199. package/dist/Spinner-DYFhiTB1.js +0 -160
  200. package/dist/Spinner-j13gRoUF.cjs +0 -1
  201. package/dist/Submenu-BDs-yAqv.js +0 -164
  202. package/dist/Submenu-BLjx2kWl.cjs +0 -1
  203. package/dist/Toaster-ByObLDkk.js +0 -284
  204. package/dist/Toaster-CJAbZ9pv.cjs +0 -1
  205. package/dist/UserMenu-BjSO_Uml.cjs +0 -1
  206. package/dist/Walkthrough-DxAIdo3M.cjs +0 -1
  207. package/dist/main-Cs0FFBfV.cjs +0 -4
@@ -1,22 +1,23 @@
1
1
  import { t as e } from "./Button-DmJ_J3UO.js";
2
- import { useSurfaceLayer as t } from "./composables/useSurfaceLayer.composable.mjs";
3
- import { usePhoneLayout as n } from "./composables/usePhoneLayout.composable.mjs";
4
- import { useNbStrings as r } from "./composables/useNbStrings.composable.mjs";
5
- import { t as i } from "./Grid-BVIhOyQ1.js";
6
- import { t as a } from "./Label-xwHw_UbN.js";
7
- import { t as o } from "./Message-Bi70NgGd.js";
8
- import { n as s } from "./InputGroup.context-Dd4e6fGT.js";
9
- import { joinDescribedBy as c } from "./composables/useFieldMessage.composable.mjs";
10
- import { useMenuSurface as l } from "./composables/useMenuSurface.composable.mjs";
11
- import { useVisualViewportVar as ee } from "./composables/useVisualViewportVar.composable.mjs";
12
- import { Fragment as u, Teleport as te, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createTextVNode as g, createVNode as _, defineComponent as v, mergeProps as ne, nextTick as y, normalizeClass as b, onBeforeUnmount as re, openBlock as x, ref as S, renderList as ie, renderSlot as ae, toDisplayString as C, unref as w, useAttrs as oe, useId as se, watch as ce, withCtx as T, withModifiers as le } from "vue";
13
- import { regular as ue } from "@nubisco/ui/icons/caret-right";
14
- import { regular as de } from "@nubisco/ui/icons/caret-left";
15
- import { regular as fe } from "@nubisco/ui/icons/calendar";
16
- import { regular as pe } from "@nubisco/ui/icons/caret-double-left";
17
- import { regular as me } from "@nubisco/ui/icons/caret-double-right";
2
+ import { useTeleportReady as t } from "./composables/useTeleportReady.composable.mjs";
3
+ import { useSurfaceLayer as n } from "./composables/useSurfaceLayer.composable.mjs";
4
+ import { usePhoneLayout as r } from "./composables/usePhoneLayout.composable.mjs";
5
+ import { useNbStrings as i } from "./composables/useNbStrings.composable.mjs";
6
+ import { t as a } from "./Grid-BVIhOyQ1.js";
7
+ import { t as o } from "./Label-xwHw_UbN.js";
8
+ import { t as s } from "./Message-Bi70NgGd.js";
9
+ import { n as c } from "./InputGroup.context-Dd4e6fGT.js";
10
+ import { joinDescribedBy as l } from "./composables/useFieldMessage.composable.mjs";
11
+ import { useMenuSurface as ee } from "./composables/useMenuSurface.composable.mjs";
12
+ import { useVisualViewportVar as te } from "./composables/useVisualViewportVar.composable.mjs";
13
+ import { Fragment as u, Teleport as ne, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createTextVNode as g, createVNode as _, defineComponent as v, mergeProps as re, nextTick as y, normalizeClass as b, onBeforeUnmount as ie, openBlock as x, ref as S, renderList as ae, renderSlot as oe, toDisplayString as C, unref as w, useAttrs as se, useId as ce, watch as le, withCtx as T, withModifiers as ue } from "vue";
14
+ import { regular as de } from "@nubisco/ui/icons/caret-right";
15
+ import { regular as fe } from "@nubisco/ui/icons/caret-left";
16
+ import { regular as pe } from "@nubisco/ui/icons/calendar";
17
+ import { regular as me } from "@nubisco/ui/icons/caret-double-left";
18
+ import { regular as he } from "@nubisco/ui/icons/caret-double-right";
18
19
  //#region src/components/DatePicker.vue?vue&type=script&setup=true&lang.ts
19
- var he = { class: "nb-date-picker__col" }, ge = [
20
+ var ge = { class: "nb-date-picker__col" }, _e = [
20
21
  "id",
21
22
  "value",
22
23
  "placeholder",
@@ -26,10 +27,10 @@ var he = { class: "nb-date-picker__col" }, ge = [
26
27
  "name",
27
28
  "aria-invalid",
28
29
  "aria-describedby"
29
- ], _e = {
30
+ ], ve = {
30
31
  key: 0,
31
32
  class: "nb-date-picker__col"
32
- }, ve = [
33
+ }, ye = [
33
34
  "id",
34
35
  "aria-label",
35
36
  "value",
@@ -39,14 +40,14 @@ var he = { class: "nb-date-picker__col" }, ge = [
39
40
  "required",
40
41
  "aria-invalid",
41
42
  "aria-describedby"
42
- ], ye = {
43
+ ], be = {
43
44
  key: 0,
44
45
  class: "nb-date-picker__inner-header"
45
- }, be = ["for"], xe = {
46
+ }, xe = ["for"], Se = {
46
47
  key: 0,
47
48
  class: "nb-date-picker__asterisk",
48
49
  "aria-hidden": "true"
49
- }, Se = { class: "nb-date-picker__fluid-row" }, Ce = [
50
+ }, Ce = { class: "nb-date-picker__fluid-row" }, we = [
50
51
  "id",
51
52
  "value",
52
53
  "placeholder",
@@ -56,14 +57,14 @@ var he = { class: "nb-date-picker__col" }, ge = [
56
57
  "name",
57
58
  "aria-invalid",
58
59
  "aria-describedby"
59
- ], we = {
60
+ ], Te = {
60
61
  key: 0,
61
62
  class: "nb-date-picker__inner-header"
62
- }, Te = ["for"], Ee = {
63
+ }, Ee = ["for"], De = {
63
64
  key: 0,
64
65
  class: "nb-date-picker__asterisk",
65
66
  "aria-hidden": "true"
66
- }, De = { class: "nb-date-picker__fluid-row" }, Oe = [
67
+ }, Oe = { class: "nb-date-picker__fluid-row" }, ke = [
67
68
  "id",
68
69
  "aria-label",
69
70
  "value",
@@ -73,13 +74,13 @@ var he = { class: "nb-date-picker__col" }, ge = [
73
74
  "required",
74
75
  "aria-invalid",
75
76
  "aria-describedby"
76
- ], ke = ["aria-label"], Ae = { class: "nb-date-picker__cal-header" }, je = ["id"], Me = ["aria-labelledby"], Ne = { class: "nb-date-picker__cal-weekdays" }, Pe = ["abbr"], Fe = ["aria-selected", "aria-disabled"], Ie = [
77
+ ], Ae = ["aria-label"], je = { class: "nb-date-picker__cal-header" }, Me = ["id"], Ne = ["aria-labelledby"], Pe = { class: "nb-date-picker__cal-weekdays" }, Fe = ["abbr"], Ie = ["aria-selected", "aria-disabled"], Le = [
77
78
  "tabindex",
78
79
  "disabled",
79
80
  "aria-label",
80
81
  "data-date",
81
82
  "onClick"
82
- ], Le = /* @__PURE__ */ v({
83
+ ], Re = /* @__PURE__ */ v({
83
84
  inheritAttrs: !1,
84
85
  __name: "DatePicker",
85
86
  props: {
@@ -125,23 +126,23 @@ var he = { class: "nb-date-picker__col" }, ge = [
125
126
  "update:endValue",
126
127
  "change"
127
128
  ],
128
- setup(v, { expose: Le, emit: Re }) {
129
- let E = r(), D = v, { layerProps: ze } = t({ overlay: !0 }), O = Re, k = s(D, `nb-date-picker-${se()}`), A = k.grouped, j = k.id, Be = k.size, M = k.disabled, Ve = d(() => `${j.value}-end`), He = d(() => `${j.value}-helper`), Ue = d(() => `${j.value}-message`), We = d(() => `${j.value}-end-message`), Ge = d(() => `${j.value}-cal-title`), N = S(null), Ke = d(() => N.value !== null), P = S(!1), F = S(Q(/* @__PURE__ */ new Date())), qe = S(null), I = S(null), L = S(null), R = S(null);
130
- l(R);
131
- let { phone: Je } = n(), Ye = S(null);
132
- ee(() => P.value);
133
- let Xe = S({
129
+ setup(v, { expose: Re, emit: ze }) {
130
+ let Be = t(), E = i(), D = v, { layerProps: Ve } = n({ overlay: !0 }), O = ze, k = c(D, `nb-date-picker-${ce()}`), A = k.grouped, j = k.id, He = k.size, M = k.disabled, N = d(() => `${j.value}-end`), Ue = d(() => `${j.value}-helper`), We = d(() => `${j.value}-message`), Ge = d(() => `${j.value}-end-message`), Ke = d(() => `${j.value}-cal-title`), P = S(null), qe = d(() => P.value !== null), F = S(!1), I = S(Q(/* @__PURE__ */ new Date())), Je = S(null), Ye = S(null), L = S(null), R = S(null);
131
+ ee(R);
132
+ let { phone: Xe } = r(), Ze = S(null);
133
+ te(() => F.value);
134
+ let Qe = S({
134
135
  position: "fixed",
135
136
  top: "0px",
136
137
  left: "0px",
137
138
  zIndex: "9999"
138
- }), z = S("start"), B = d(() => D.locale || (typeof navigator < "u" ? navigator.language : "") || "en"), Ze = d(() => new Intl.DateTimeFormat(B.value).formatToParts(new Date(2e3, 0, 15)).map((e) => e.type === "day" ? "dd" : e.type === "month" ? "mm" : e.type === "year" ? "yyyy" : e.value).join(""));
139
+ }), z = S("start"), B = d(() => D.locale || (typeof navigator < "u" ? navigator.language : "") || "en"), $e = d(() => new Intl.DateTimeFormat(B.value).formatToParts(new Date(2e3, 0, 15)).map((e) => e.type === "day" ? "dd" : e.type === "month" ? "mm" : e.type === "year" ? "yyyy" : e.value).join(""));
139
140
  function V(e) {
140
141
  if (!e) return "";
141
142
  let t = /* @__PURE__ */ new Date(e + "T00:00:00");
142
143
  return isNaN(t.getTime()) ? e : t.toLocaleDateString(B.value);
143
144
  }
144
- function Qe(e) {
145
+ function et(e) {
145
146
  return (/* @__PURE__ */ new Date(e + "T00:00:00")).toLocaleDateString(B.value, {
146
147
  weekday: "long",
147
148
  year: "numeric",
@@ -149,7 +150,7 @@ var he = { class: "nb-date-picker__col" }, ge = [
149
150
  day: "numeric"
150
151
  });
151
152
  }
152
- let $e = d(() => V(D.modelValue ?? null)), et = d(() => V(D.endValue ?? null)), H = d(() => D.error ? {
153
+ let tt = d(() => V(D.modelValue ?? null)), nt = d(() => V(D.endValue ?? null)), H = d(() => D.error ? {
153
154
  variant: "error",
154
155
  text: D.error
155
156
  } : D.warning ? {
@@ -161,30 +162,30 @@ var he = { class: "nb-date-picker__col" }, ge = [
161
162
  } : D.endWarning ? {
162
163
  variant: "warning",
163
164
  text: D.endWarning
164
- } : null : null), tt = d(() => H.value ? H.value : D.helper ? {
165
+ } : null : null), rt = d(() => H.value ? H.value : D.helper ? {
165
166
  variant: "helper",
166
167
  text: D.helper
167
168
  } : null);
168
- function nt(e, t) {
169
- if (!(D.variant !== "default" || A)) return e ? t : D.helper ? He.value : void 0;
169
+ function it(e, t) {
170
+ if (!(D.variant !== "default" || A)) return e ? t : D.helper ? Ue.value : void 0;
170
171
  }
171
- let rt = oe(), it = d(() => c(rt["aria-describedby"], nt(H.value, Ue.value), k.describedBy.value)), at = d(() => c(nt(U.value, We.value), k.describedBy.value)), ot = d(() => k.status.value === "error"), st = d(() => k.status.value === "warning"), W = d(() => !!D.error || ot.value), ct = d(() => !W.value && (!!D.warning || st.value)), G = d(() => !!D.endError || ot.value), lt = d(() => !G.value && (!!D.endWarning || st.value)), ut = d(() => W.value ? !0 : void 0), dt = d(() => G.value ? !0 : void 0), ft = d(() => D.type === "range" && !!D.endLabel), pt = d(() => D.endLabel || D.endPlaceholder), mt = d(() => A ? D.endLabel || D.endPlaceholder || E.value.datePickerEndDate : void 0);
172
- function ht(e) {
172
+ let at = se(), ot = d(() => l(at["aria-describedby"], it(H.value, We.value), k.describedBy.value)), st = d(() => l(it(U.value, Ge.value), k.describedBy.value)), ct = d(() => k.status.value === "error"), lt = d(() => k.status.value === "warning"), W = d(() => !!D.error || ct.value), ut = d(() => !W.value && (!!D.warning || lt.value)), G = d(() => !!D.endError || ct.value), dt = d(() => !G.value && (!!D.endWarning || lt.value)), ft = d(() => W.value ? !0 : void 0), pt = d(() => G.value ? !0 : void 0), mt = d(() => D.type === "range" && !!D.endLabel), ht = d(() => D.endLabel || D.endPlaceholder), gt = d(() => A ? D.endLabel || D.endPlaceholder || E.value.datePickerEndDate : void 0);
173
+ function _t(e) {
173
174
  return D.min != null && e < D.min || D.max != null && e > D.max ? !0 : D.disabledDates ? typeof D.disabledDates == "function" ? D.disabledDates(e) : D.disabledDates.includes(e) : !1;
174
175
  }
175
- let gt = d(() => new Intl.DateTimeFormat(B.value).formatToParts(new Date(2e3, 0, 15)).map((e) => e.type).filter((e) => e === "day" || e === "month" || e === "year"));
176
- function _t(e, t, n) {
176
+ let vt = d(() => new Intl.DateTimeFormat(B.value).formatToParts(new Date(2e3, 0, 15)).map((e) => e.type).filter((e) => e === "day" || e === "month" || e === "year"));
177
+ function yt(e, t, n) {
177
178
  let r = new Date(e, t - 1, n);
178
179
  return r.getMonth() !== t - 1 || r.getDate() !== n ? null : (r.setFullYear(e), Q(r));
179
180
  }
180
- function vt(e) {
181
+ function bt(e) {
181
182
  let t = e.split(/[\s./-]+/).filter(Boolean);
182
183
  if (t.length !== 3) return null;
183
184
  let n = t[0].length === 4 ? [
184
185
  "year",
185
186
  "month",
186
187
  "day"
187
- ] : gt.value;
188
+ ] : vt.value;
188
189
  if (n.length !== 3) return null;
189
190
  let r = {
190
191
  day: 0,
@@ -196,51 +197,51 @@ var he = { class: "nb-date-picker__col" }, ge = [
196
197
  if (i === "year" ? a.length !== 4 : a.length > 2) return null;
197
198
  r[i] = Number(a);
198
199
  }
199
- return _t(r.year, r.month, r.day);
200
+ return yt(r.year, r.month, r.day);
200
201
  }
201
- function yt(e) {
202
+ function xt(e) {
202
203
  let t = e.trim();
203
204
  if (!t) return null;
204
205
  if (/^\d{4}-\d{2}-\d{2}$/.test(t)) {
205
206
  let e = /* @__PURE__ */ new Date(t + "T00:00:00");
206
207
  return isNaN(e.getTime()) ? null : t;
207
208
  }
208
- if (/^[\d\s./-]+$/.test(t)) return vt(t);
209
+ if (/^[\d\s./-]+$/.test(t)) return bt(t);
209
210
  let n = new Date(t);
210
211
  return isNaN(n.getTime()) ? null : Q(n);
211
212
  }
212
- function bt(e) {
213
- let t = e.target.value, n = yt(t);
214
- n && ht(n) || (n || t === "") && (O("update:modelValue", n), O("change", n));
215
- }
216
- function xt(e) {
217
- let t = e.target.value, n = yt(t);
218
- n && ht(n) || (n || t === "") && O("update:endValue", n);
219
- }
220
213
  function St(e) {
221
- N.value = e.target === L.value ? "end" : "start", D.type !== "simple" && !D.readonly && (z.value = N.value, P.value ? Tt() : K());
214
+ let t = e.target.value, n = xt(t);
215
+ n && _t(n) || (n || t === "") && (O("update:modelValue", n), O("change", n));
222
216
  }
223
- function Ct() {
224
- N.value = null;
217
+ function Ct(e) {
218
+ let t = e.target.value, n = xt(t);
219
+ n && _t(n) || (n || t === "") && O("update:endValue", n);
225
220
  }
226
221
  function wt(e) {
222
+ P.value = e.target === L.value ? "end" : "start", D.type !== "simple" && !D.readonly && (z.value = P.value, F.value ? Dt() : K());
223
+ }
224
+ function Tt() {
225
+ P.value = null;
226
+ }
227
+ function Et(e) {
227
228
  if (!(D.type === "simple" || D.readonly)) switch (e.key) {
228
229
  case "Escape":
229
- P.value && (q(), e.preventDefault());
230
+ F.value && (q(), e.preventDefault());
230
231
  break;
231
232
  case "ArrowDown":
232
- e.preventDefault(), P.value || K(), y(J);
233
+ e.preventDefault(), F.value || K(), y(J);
233
234
  break;
234
235
  case "Enter":
235
- P.value || (e.preventDefault(), K(), y(J));
236
+ F.value || (e.preventDefault(), K(), y(J));
236
237
  break;
237
238
  }
238
239
  }
239
- function Tt() {
240
- let e = qe.value?.querySelectorAll(".nb-date-picker__input-wrapper");
240
+ function Dt() {
241
+ let e = Je.value?.querySelectorAll(".nb-date-picker__input-wrapper");
241
242
  if (!e?.length) return;
242
243
  let t = (z.value === "end" && e.length > 1 ? e[1] : e[0]).getBoundingClientRect(), n = R.value?.offsetWidth ?? 0, r = R.value?.offsetHeight ?? 0, i = t.left, a = t.bottom + 4;
243
- n > 0 && (i = Math.max(8, Math.min(i, window.innerWidth - n - 8))), r > 0 && a + r > window.innerHeight - 8 && t.top - 4 - r >= 8 && (a = t.top - 4 - r), Xe.value = {
244
+ n > 0 && (i = Math.max(8, Math.min(i, window.innerWidth - n - 8))), r > 0 && a + r > window.innerHeight - 8 && t.top - 4 - r >= 8 && (a = t.top - 4 - r), Qe.value = {
244
245
  position: "fixed",
245
246
  top: `${a}px`,
246
247
  left: `${i}px`,
@@ -248,57 +249,57 @@ var he = { class: "nb-date-picker__col" }, ge = [
248
249
  };
249
250
  }
250
251
  function K() {
251
- if (M.value || D.readonly || D.type === "simple" || P.value) return;
252
- P.value = !0;
252
+ if (M.value || D.readonly || D.type === "simple" || F.value) return;
253
+ F.value = !0;
253
254
  let e = z.value === "end" && D.endValue ? D.endValue : D.modelValue, t = e ? /* @__PURE__ */ new Date(e + "T00:00:00") : /* @__PURE__ */ new Date();
254
- X.value = t.getFullYear(), Z.value = t.getMonth(), F.value = e || Q(/* @__PURE__ */ new Date()), Tt(), y(Tt);
255
+ X.value = t.getFullYear(), Z.value = t.getMonth(), I.value = e || Q(/* @__PURE__ */ new Date()), Dt(), y(Dt);
255
256
  }
256
257
  function q() {
257
- P.value && (P.value = !1, y(() => {
258
- z.value === "end" && L.value ? L.value.focus() : I.value?.focus();
258
+ F.value && (F.value = !1, y(() => {
259
+ z.value === "end" && L.value ? L.value.focus() : Ye.value?.focus();
259
260
  }));
260
261
  }
261
- function Et() {
262
- P.value ? q() : (z.value = "start", K(), y(J));
262
+ function Ot() {
263
+ F.value ? q() : (z.value = "start", K(), y(J));
263
264
  }
264
265
  function J() {
265
266
  y(() => {
266
- (R.value?.querySelector(`[data-date="${F.value}"]`))?.focus();
267
+ (R.value?.querySelector(`[data-date="${I.value}"]`))?.focus();
267
268
  });
268
269
  }
269
- function Dt(e) {
270
- ht(e) || (D.type === "range" ? z.value === "start" ? (O("update:modelValue", e), O("change", e), z.value = "end", F.value = e, y(() => L.value?.focus())) : (D.modelValue && e < D.modelValue ? (O("update:endValue", D.modelValue), O("update:modelValue", e), O("change", e)) : O("update:endValue", e), q()) : (O("update:modelValue", e), O("change", e), q()));
270
+ function kt(e) {
271
+ _t(e) || (D.type === "range" ? z.value === "start" ? (O("update:modelValue", e), O("change", e), z.value = "end", I.value = e, y(() => L.value?.focus())) : (D.modelValue && e < D.modelValue ? (O("update:endValue", D.modelValue), O("update:modelValue", e), O("change", e)) : O("update:endValue", e), q()) : (O("update:modelValue", e), O("change", e), q()));
271
272
  }
272
- function Ot(e) {
273
- let t = /* @__PURE__ */ new Date(F.value + "T00:00:00"), n = !0;
273
+ function At(e) {
274
+ let t = /* @__PURE__ */ new Date(I.value + "T00:00:00"), n = !0;
274
275
  switch (e.key) {
275
276
  case "ArrowRight":
276
- kt(t, 1);
277
+ jt(t, 1);
277
278
  break;
278
279
  case "ArrowLeft":
279
- kt(t, -1);
280
+ jt(t, -1);
280
281
  break;
281
282
  case "ArrowDown":
282
- kt(t, 7);
283
+ jt(t, 7);
283
284
  break;
284
285
  case "ArrowUp":
285
- kt(t, -7);
286
+ jt(t, -7);
286
287
  break;
287
288
  case "Home":
288
- At(t, "start");
289
+ Mt(t, "start");
289
290
  break;
290
291
  case "End":
291
- At(t, "end");
292
+ Mt(t, "end");
292
293
  break;
293
294
  case "PageUp":
294
- e.shiftKey ? jt(t, -12) : jt(t, -1);
295
+ e.shiftKey ? Nt(t, -12) : Nt(t, -1);
295
296
  break;
296
297
  case "PageDown":
297
- e.shiftKey ? jt(t, 12) : jt(t, 1);
298
+ e.shiftKey ? Nt(t, 12) : Nt(t, 1);
298
299
  break;
299
300
  case "Enter":
300
301
  case " ":
301
- e.preventDefault(), Dt(F.value);
302
+ e.preventDefault(), kt(I.value);
302
303
  return;
303
304
  case "Escape":
304
305
  q();
@@ -310,50 +311,50 @@ var he = { class: "nb-date-picker__col" }, ge = [
310
311
  }
311
312
  n && e.preventDefault();
312
313
  }
313
- function kt(e, t) {
314
+ function jt(e, t) {
314
315
  let n = new Date(e);
315
- n.setDate(n.getDate() + t), Mt(n);
316
+ n.setDate(n.getDate() + t), Pt(n);
316
317
  }
317
- function At(e, t) {
318
+ function Mt(e, t) {
318
319
  let n = e.getDay();
319
320
  D.weekStart === 1 && (n = n === 0 ? 6 : n - 1);
320
321
  let r = t === "start" ? -n : 6 - n, i = new Date(e);
321
- i.setDate(i.getDate() + r), Mt(i);
322
+ i.setDate(i.getDate() + r), Pt(i);
322
323
  }
323
- function jt(e, t) {
324
+ function Nt(e, t) {
324
325
  let n = new Date(e);
325
- n.setMonth(n.getMonth() + t), n.getDate() !== e.getDate() && n.setDate(0), Mt(n);
326
+ n.setMonth(n.getMonth() + t), n.getDate() !== e.getDate() && n.setDate(0), Pt(n);
326
327
  }
327
- function Mt(e) {
328
+ function Pt(e) {
328
329
  let t = Q(e);
329
- D.min != null && t < D.min || D.max != null && t > D.max || (F.value = t, X.value = e.getFullYear(), Z.value = e.getMonth(), J());
330
+ D.min != null && t < D.min || D.max != null && t > D.max || (I.value = t, X.value = e.getFullYear(), Z.value = e.getMonth(), J());
330
331
  }
331
- function Nt(e) {
332
- let t = e.target, n = qe.value?.contains(t) ?? !1, r = R.value?.contains(t) ?? !1, i = Ye.value?.contains(t) ?? !1;
332
+ function Ft(e) {
333
+ let t = e.target, n = Je.value?.contains(t) ?? !1, r = R.value?.contains(t) ?? !1, i = Ze.value?.contains(t) ?? !1;
333
334
  !n && !r && !i && q();
334
335
  }
335
336
  function Y() {
336
- P.value && Tt();
337
+ F.value && Dt();
337
338
  }
338
- ce(P, (e) => {
339
- e ? (document.addEventListener("mousedown", Nt), window.addEventListener("scroll", Y, !0), window.addEventListener("resize", Y)) : (document.removeEventListener("mousedown", Nt), window.removeEventListener("scroll", Y, !0), window.removeEventListener("resize", Y));
340
- }), re(() => {
341
- document.removeEventListener("mousedown", Nt), window.removeEventListener("scroll", Y, !0), window.removeEventListener("resize", Y);
339
+ le(F, (e) => {
340
+ e ? (document.addEventListener("mousedown", Ft), window.addEventListener("scroll", Y, !0), window.addEventListener("resize", Y)) : (document.removeEventListener("mousedown", Ft), window.removeEventListener("scroll", Y, !0), window.removeEventListener("resize", Y));
341
+ }), ie(() => {
342
+ document.removeEventListener("mousedown", Ft), window.removeEventListener("scroll", Y, !0), window.removeEventListener("resize", Y);
342
343
  });
343
344
  let X = S((/* @__PURE__ */ new Date()).getFullYear()), Z = S((/* @__PURE__ */ new Date()).getMonth());
344
- function Pt(e) {
345
+ function It(e) {
345
346
  let t = X.value * 12 + Z.value + e;
346
347
  X.value = Math.floor(t / 12), Z.value = (t % 12 + 12) % 12;
347
- let n = (/* @__PURE__ */ new Date(F.value + "T00:00:00")).getDate(), r = new Date(X.value, Z.value + 1, 0).getDate();
348
- F.value = Q(new Date(X.value, Z.value, Math.min(n, r))), J();
348
+ let n = (/* @__PURE__ */ new Date(I.value + "T00:00:00")).getDate(), r = new Date(X.value, Z.value + 1, 0).getDate();
349
+ I.value = Q(new Date(X.value, Z.value, Math.min(n, r))), J();
349
350
  }
350
- let Ft = () => Pt(-1), It = () => Pt(1), Lt = () => Pt(-12), Rt = () => Pt(12), zt = d(() => {
351
+ let Lt = () => It(-1), Rt = () => It(1), zt = () => It(-12), Bt = () => It(12), Vt = d(() => {
351
352
  let e = new Date(X.value, Z.value, 1).toLocaleDateString(B.value, {
352
353
  month: "long",
353
354
  year: "numeric"
354
355
  });
355
356
  return e.charAt(0).toUpperCase() + e.slice(1);
356
- }), Bt = d(() => {
357
+ }), Ht = d(() => {
357
358
  let e = [], t = new Date(2024, 0, D.weekStart === 0 ? 7 : 1);
358
359
  for (let n = 0; n < 7; n++) {
359
360
  let r = new Date(t);
@@ -369,7 +370,7 @@ var he = { class: "nb-date-picker__col" }, ge = [
369
370
  function Q(e) {
370
371
  return `${e.getFullYear()}-${String(e.getMonth() + 1).padStart(2, "0")}-${String(e.getDate()).padStart(2, "0")}`;
371
372
  }
372
- let Vt = d(() => Q(/* @__PURE__ */ new Date())), Ht = d(() => {
373
+ let Ut = d(() => Q(/* @__PURE__ */ new Date())), Wt = d(() => {
373
374
  let e = X.value, t = Z.value, n = new Date(e, t, 1), r = new Date(e, t + 1, 0), i = n.getDay();
374
375
  D.weekStart === 1 && (i = i === 0 ? 6 : i - 1);
375
376
  let a = [], o = D.modelValue ?? null, s = D.endValue ?? null, c = o && s ? o < s ? o : s : null, l = o && s ? o < s ? s : o : null;
@@ -380,59 +381,59 @@ var he = { class: "nb-date-picker__col" }, ge = [
380
381
  date: n,
381
382
  day: e.getDate(),
382
383
  inMonth: t,
383
- isToday: n === Vt.value,
384
+ isToday: n === Ut.value,
384
385
  isSelected: n === o || n === s,
385
386
  inRange: c != null && l != null && n > c && n < l,
386
387
  isRangeStart: n === c && l != null,
387
388
  isRangeEnd: n === l && c != null,
388
- isDisabled: ht(n)
389
+ isDisabled: _t(n)
389
390
  };
390
391
  }
391
392
  for (let n = i - 1; n >= 0; n--) a.push(ee(new Date(e, t, -n), !1));
392
393
  for (let n = 1; n <= r.getDate(); n++) a.push(ee(new Date(e, t, n), !0));
393
- let u = 7 - a.length % 7;
394
- if (u < 7) for (let n = 1; n <= u; n++) a.push(ee(new Date(e, t + 1, n), !1));
394
+ let te = 7 - a.length % 7;
395
+ if (te < 7) for (let n = 1; n <= te; n++) a.push(ee(new Date(e, t + 1, n), !1));
395
396
  return a;
396
- }), Ut = d(() => {
397
+ }), Gt = d(() => {
397
398
  let e = [];
398
- for (let t = 0; t < Ht.value.length; t += 7) e.push(Ht.value.slice(t, t + 7));
399
+ for (let t = 0; t < Wt.value.length; t += 7) e.push(Wt.value.slice(t, t + 7));
399
400
  return e;
400
- }), $ = d(() => D.variant === "fluid" ? "sm" : Be.value), Wt = d(() => [
401
+ }), $ = d(() => D.variant === "fluid" ? "sm" : He.value), Kt = d(() => [
401
402
  "nb-date-picker",
402
403
  `nb-date-picker--${D.variant}`,
403
- `nb-date-picker--${Be.value}`,
404
+ `nb-date-picker--${He.value}`,
404
405
  `nb-date-picker--${D.type}`,
405
406
  {
406
- "nb-date-picker--focused": Ke.value,
407
- "nb-date-picker--open": P.value,
407
+ "nb-date-picker--focused": qe.value,
408
+ "nb-date-picker--open": F.value,
408
409
  "nb-date-picker--error": W.value || G.value,
409
- "nb-date-picker--warning": !W.value && !G.value && (ct.value || lt.value),
410
+ "nb-date-picker--warning": !W.value && !G.value && (ut.value || dt.value),
410
411
  "nb-date-picker--disabled": M.value,
411
412
  "nb-date-picker--readonly": D.readonly
412
413
  }
413
- ]), Gt = d(() => ({
414
- "nb-date-picker__input-wrapper--focused": N.value === "start",
414
+ ]), qt = d(() => ({
415
+ "nb-date-picker__input-wrapper--focused": P.value === "start",
415
416
  "nb-date-picker__input-wrapper--error": W.value,
416
- "nb-date-picker__input-wrapper--warning": ct.value,
417
+ "nb-date-picker__input-wrapper--warning": ut.value,
417
418
  "nb-date-picker__input-wrapper--disabled": M.value,
418
419
  "nb-date-picker__input-wrapper--readonly": D.readonly
419
- })), Kt = d(() => ({
420
- "nb-date-picker__input-wrapper--focused": N.value === "end",
420
+ })), Jt = d(() => ({
421
+ "nb-date-picker__input-wrapper--focused": P.value === "end",
421
422
  "nb-date-picker__input-wrapper--error": G.value,
422
- "nb-date-picker__input-wrapper--warning": lt.value,
423
+ "nb-date-picker__input-wrapper--warning": dt.value,
423
424
  "nb-date-picker__input-wrapper--disabled": M.value,
424
425
  "nb-date-picker__input-wrapper--readonly": D.readonly
425
426
  }));
426
- return Le({
427
+ return Re({
427
428
  open: K,
428
429
  close: q,
429
- focus: () => I.value?.focus()
430
+ focus: () => Ye.value?.focus()
430
431
  }), (t, n) => (x(), m(u, null, [h("div", {
431
432
  ref_key: "rootRef",
432
- ref: qe,
433
- class: b(Wt.value)
433
+ ref: Je,
434
+ class: b(Kt.value)
434
435
  }, [v.variant === "default" ? (x(), m(u, { key: 0 }, [
435
- t.$slots.label && !w(A) ? ae(t.$slots, "label", { key: 0 }) : v.label && !ft.value && !w(A) ? (x(), f(a, {
436
+ t.$slots.label && !w(A) ? oe(t.$slots, "label", { key: 0 }) : v.label && !mt.value && !w(A) ? (x(), f(o, {
436
437
  key: 1,
437
438
  for: w(j),
438
439
  required: v.required,
@@ -445,12 +446,12 @@ var he = { class: "nb-date-picker__col" }, ge = [
445
446
  "required",
446
447
  "disabled"
447
448
  ])) : p("", !0),
448
- _(i, {
449
+ _(a, {
449
450
  dir: "row",
450
451
  gap: v.type === "range" ? "sm" : void 0,
451
452
  class: "nb-date-picker__fields"
452
453
  }, {
453
- default: T(() => [h("div", he, [ft.value && v.label && !w(A) ? (x(), f(a, {
454
+ default: T(() => [h("div", ge, [mt.value && v.label && !w(A) ? (x(), f(o, {
454
455
  key: 0,
455
456
  for: w(j),
456
457
  required: v.required,
@@ -462,43 +463,43 @@ var he = { class: "nb-date-picker__col" }, ge = [
462
463
  "for",
463
464
  "required",
464
465
  "disabled"
465
- ])) : p("", !0), h("div", { class: b(["nb-date-picker__input-wrapper", Gt.value]) }, [h("input", ne({
466
+ ])) : p("", !0), h("div", { class: b(["nb-date-picker__input-wrapper", qt.value]) }, [h("input", re({
466
467
  id: w(j),
467
468
  ref_key: "inputRef",
468
- ref: I
469
+ ref: Ye
469
470
  }, t.$attrs, {
470
471
  type: "text",
471
472
  class: "nb-date-picker__field",
472
- value: $e.value,
473
- placeholder: v.placeholder || Ze.value,
473
+ value: tt.value,
474
+ placeholder: v.placeholder || $e.value,
474
475
  disabled: w(M),
475
476
  readonly: v.readonly,
476
477
  required: v.required,
477
478
  name: v.name,
478
- "aria-invalid": ut.value,
479
- "aria-describedby": it.value,
480
- onInput: n[0] ||= (e) => bt(e),
481
- onFocus: St,
482
- onBlur: Ct,
483
- onKeydown: wt
484
- }), null, 16, ge), v.type === "simple" ? p("", !0) : (x(), f(e, {
479
+ "aria-invalid": ft.value,
480
+ "aria-describedby": ot.value,
481
+ onInput: n[0] ||= (e) => St(e),
482
+ onFocus: wt,
483
+ onBlur: Tt,
484
+ onKeydown: Et
485
+ }), null, 16, _e), v.type === "simple" ? p("", !0) : (x(), f(e, {
485
486
  key: 0,
486
487
  variant: "ghost",
487
- icon: w(fe),
488
+ icon: w(pe),
488
489
  size: $.value,
489
490
  class: "nb-date-picker__icon",
490
491
  disabled: w(M) || v.readonly,
491
492
  tabindex: "-1",
492
493
  label: v.modelValue ? w(E).datePickerChangeDate(V(v.modelValue)) : w(E).datePickerChooseDate,
493
- onClick: Et
494
+ onClick: Ot
494
495
  }, null, 8, [
495
496
  "icon",
496
497
  "size",
497
498
  "disabled",
498
499
  "label"
499
- ]))], 2)]), v.type === "range" ? (x(), m("div", _e, [ft.value && !w(A) ? (x(), f(a, {
500
+ ]))], 2)]), v.type === "range" ? (x(), m("div", ve, [mt.value && !w(A) ? (x(), f(o, {
500
501
  key: 0,
501
- for: Ve.value,
502
+ for: N.value,
502
503
  required: v.required,
503
504
  disabled: w(M)
504
505
  }, {
@@ -508,33 +509,33 @@ var he = { class: "nb-date-picker__col" }, ge = [
508
509
  "for",
509
510
  "required",
510
511
  "disabled"
511
- ])) : p("", !0), h("div", { class: b(["nb-date-picker__input-wrapper", Kt.value]) }, [h("input", {
512
- id: Ve.value,
512
+ ])) : p("", !0), h("div", { class: b(["nb-date-picker__input-wrapper", Jt.value]) }, [h("input", {
513
+ id: N.value,
513
514
  ref_key: "endInputRef",
514
515
  ref: L,
515
516
  type: "text",
516
- "aria-label": mt.value,
517
+ "aria-label": gt.value,
517
518
  class: "nb-date-picker__field",
518
- value: et.value,
519
- placeholder: v.endPlaceholder || Ze.value,
519
+ value: nt.value,
520
+ placeholder: v.endPlaceholder || $e.value,
520
521
  disabled: w(M),
521
522
  readonly: v.readonly,
522
523
  required: v.required,
523
- "aria-invalid": dt.value,
524
- "aria-describedby": at.value,
525
- onInput: n[1] ||= (e) => xt(e),
526
- onFocus: St,
527
- onBlur: Ct,
528
- onKeydown: wt
529
- }, null, 40, ve), _(e, {
524
+ "aria-invalid": pt.value,
525
+ "aria-describedby": st.value,
526
+ onInput: n[1] ||= (e) => Ct(e),
527
+ onFocus: wt,
528
+ onBlur: Tt,
529
+ onKeydown: Et
530
+ }, null, 40, ye), _(e, {
530
531
  variant: "ghost",
531
- icon: w(fe),
532
+ icon: w(pe),
532
533
  size: $.value,
533
534
  class: "nb-date-picker__icon",
534
535
  disabled: w(M) || v.readonly,
535
536
  tabindex: "-1",
536
537
  label: v.endValue ? w(E).datePickerChangeEndDate(V(v.endValue)) : w(E).datePickerChooseEndDate,
537
- onClick: Et
538
+ onClick: Ot
538
539
  }, null, 8, [
539
540
  "icon",
540
541
  "size",
@@ -543,80 +544,80 @@ var he = { class: "nb-date-picker__col" }, ge = [
543
544
  ])], 2)])) : p("", !0)]),
544
545
  _: 1
545
546
  }, 8, ["gap"]),
546
- H.value && !w(A) ? (x(), f(o, {
547
+ H.value && !w(A) ? (x(), f(s, {
547
548
  key: 2,
548
- id: Ue.value,
549
+ id: We.value,
549
550
  variant: H.value.variant,
550
551
  class: "nb-date-picker__message"
551
552
  }, {
552
553
  default: T(() => [g(C(H.value.text), 1)]),
553
554
  _: 1
554
555
  }, 8, ["id", "variant"])) : p("", !0),
555
- U.value && !w(A) ? (x(), f(o, {
556
+ U.value && !w(A) ? (x(), f(s, {
556
557
  key: 3,
557
- id: We.value,
558
+ id: Ge.value,
558
559
  variant: U.value.variant,
559
560
  class: "nb-date-picker__message"
560
561
  }, {
561
562
  default: T(() => [g(C(U.value.text), 1)]),
562
563
  _: 1
563
564
  }, 8, ["id", "variant"])) : p("", !0),
564
- !H.value && !U.value && v.helper && !w(A) ? (x(), f(o, {
565
+ !H.value && !U.value && v.helper && !w(A) ? (x(), f(s, {
565
566
  key: 4,
566
- id: He.value,
567
+ id: Ue.value,
567
568
  variant: "helper",
568
569
  class: "nb-date-picker__message"
569
570
  }, {
570
571
  default: T(() => [g(C(v.helper), 1)]),
571
572
  _: 1
572
573
  }, 8, ["id"])) : p("", !0)
573
- ], 64)) : v.variant === "fluid" ? (x(), f(i, {
574
+ ], 64)) : v.variant === "fluid" ? (x(), f(a, {
574
575
  key: 1,
575
576
  dir: "row",
576
577
  gap: v.type === "range" ? "sm" : void 0,
577
578
  class: "nb-date-picker__fields"
578
579
  }, {
579
- default: T(() => [h("div", { class: b(["nb-date-picker__input-wrapper nb-date-picker__input-wrapper--fluid", Gt.value]) }, [(v.label || t.$slots.label || tt.value) && !w(A) ? (x(), m("div", ye, [t.$slots.label ? ae(t.$slots, "label", { key: 0 }) : (x(), m("label", {
580
+ default: T(() => [h("div", { class: b(["nb-date-picker__input-wrapper nb-date-picker__input-wrapper--fluid", qt.value]) }, [(v.label || t.$slots.label || rt.value) && !w(A) ? (x(), m("div", be, [t.$slots.label ? oe(t.$slots, "label", { key: 0 }) : (x(), m("label", {
580
581
  key: 1,
581
582
  for: w(j),
582
583
  class: "nb-date-picker__inner-label"
583
- }, [g(C(v.label) + " ", 1), v.required ? (x(), m("span", xe, "*")) : p("", !0)], 8, be)), tt.value ? (x(), f(o, {
584
+ }, [g(C(v.label) + " ", 1), v.required ? (x(), m("span", Se, "*")) : p("", !0)], 8, xe)), rt.value ? (x(), f(s, {
584
585
  key: 2,
585
- variant: tt.value.variant,
586
+ variant: rt.value.variant,
586
587
  "icon-only": "",
587
588
  class: "nb-date-picker__inner-message"
588
589
  }, {
589
- default: T(() => [g(C(tt.value.text), 1)]),
590
+ default: T(() => [g(C(rt.value.text), 1)]),
590
591
  _: 1
591
- }, 8, ["variant"])) : p("", !0)])) : p("", !0), h("div", Se, [h("input", ne({
592
+ }, 8, ["variant"])) : p("", !0)])) : p("", !0), h("div", Ce, [h("input", re({
592
593
  id: w(j),
593
594
  ref_key: "inputRef",
594
- ref: I
595
+ ref: Ye
595
596
  }, t.$attrs, {
596
597
  type: "text",
597
598
  class: "nb-date-picker__field",
598
- value: $e.value,
599
- placeholder: v.placeholder || Ze.value,
599
+ value: tt.value,
600
+ placeholder: v.placeholder || $e.value,
600
601
  disabled: w(M),
601
602
  readonly: v.readonly,
602
603
  required: v.required,
603
604
  name: v.name,
604
- "aria-invalid": ut.value,
605
- "aria-describedby": it.value,
606
- onInput: n[2] ||= (e) => bt(e),
607
- onFocus: St,
608
- onBlur: Ct,
609
- onKeydown: wt
610
- }), null, 16, Ce), v.type === "simple" ? p("", !0) : (x(), f(e, {
605
+ "aria-invalid": ft.value,
606
+ "aria-describedby": ot.value,
607
+ onInput: n[2] ||= (e) => St(e),
608
+ onFocus: wt,
609
+ onBlur: Tt,
610
+ onKeydown: Et
611
+ }), null, 16, we), v.type === "simple" ? p("", !0) : (x(), f(e, {
611
612
  key: 0,
612
613
  variant: "ghost",
613
- icon: w(fe),
614
+ icon: w(pe),
614
615
  size: $.value,
615
616
  class: "nb-date-picker__icon",
616
617
  disabled: w(M) || v.readonly,
617
618
  tabindex: "-1",
618
619
  label: v.modelValue ? w(E).datePickerChangeDate(V(v.modelValue)) : w(E).datePickerChooseDate,
619
- onClick: Et
620
+ onClick: Ot
620
621
  }, null, 8, [
621
622
  "icon",
622
623
  "size",
@@ -624,11 +625,11 @@ var he = { class: "nb-date-picker__col" }, ge = [
624
625
  "label"
625
626
  ]))])], 2), v.type === "range" ? (x(), m("div", {
626
627
  key: 0,
627
- class: b(["nb-date-picker__input-wrapper nb-date-picker__input-wrapper--fluid", Kt.value])
628
- }, [(pt.value || U.value) && !w(A) ? (x(), m("div", we, [h("label", {
629
- for: Ve.value,
628
+ class: b(["nb-date-picker__input-wrapper nb-date-picker__input-wrapper--fluid", Jt.value])
629
+ }, [(ht.value || U.value) && !w(A) ? (x(), m("div", Te, [h("label", {
630
+ for: N.value,
630
631
  class: "nb-date-picker__inner-label"
631
- }, [g(C(pt.value) + " ", 1), v.required ? (x(), m("span", Ee, "*")) : p("", !0)], 8, Te), U.value ? (x(), f(o, {
632
+ }, [g(C(ht.value) + " ", 1), v.required ? (x(), m("span", De, "*")) : p("", !0)], 8, Ee), U.value ? (x(), f(s, {
632
633
  key: 0,
633
634
  variant: U.value.variant,
634
635
  "icon-only": "",
@@ -636,33 +637,33 @@ var he = { class: "nb-date-picker__col" }, ge = [
636
637
  }, {
637
638
  default: T(() => [g(C(U.value.text), 1)]),
638
639
  _: 1
639
- }, 8, ["variant"])) : p("", !0)])) : p("", !0), h("div", De, [h("input", {
640
- id: Ve.value,
640
+ }, 8, ["variant"])) : p("", !0)])) : p("", !0), h("div", Oe, [h("input", {
641
+ id: N.value,
641
642
  ref_key: "endInputRef",
642
643
  ref: L,
643
644
  type: "text",
644
- "aria-label": mt.value,
645
+ "aria-label": gt.value,
645
646
  class: "nb-date-picker__field",
646
- value: et.value,
647
- placeholder: v.endPlaceholder || Ze.value,
647
+ value: nt.value,
648
+ placeholder: v.endPlaceholder || $e.value,
648
649
  disabled: w(M),
649
650
  readonly: v.readonly,
650
651
  required: v.required,
651
- "aria-invalid": dt.value,
652
- "aria-describedby": at.value,
653
- onInput: n[3] ||= (e) => xt(e),
654
- onFocus: St,
655
- onBlur: Ct,
656
- onKeydown: wt
657
- }, null, 40, Oe), _(e, {
652
+ "aria-invalid": pt.value,
653
+ "aria-describedby": st.value,
654
+ onInput: n[3] ||= (e) => Ct(e),
655
+ onFocus: wt,
656
+ onBlur: Tt,
657
+ onKeydown: Et
658
+ }, null, 40, ke), _(e, {
658
659
  variant: "ghost",
659
- icon: w(fe),
660
+ icon: w(pe),
660
661
  size: $.value,
661
662
  class: "nb-date-picker__icon",
662
663
  disabled: w(M) || v.readonly,
663
664
  tabindex: "-1",
664
665
  label: v.endValue ? w(E).datePickerChangeEndDate(V(v.endValue)) : w(E).datePickerChooseEndDate,
665
- onClick: Et
666
+ onClick: Ot
666
667
  }, null, 8, [
667
668
  "icon",
668
669
  "size",
@@ -670,73 +671,76 @@ var he = { class: "nb-date-picker__col" }, ge = [
670
671
  "label"
671
672
  ])])], 2)) : p("", !0)]),
672
673
  _: 3
673
- }, 8, ["gap"])) : p("", !0)], 2), (x(), f(te, { to: "body" }, [P.value && w(Je) ? (x(), m("div", {
674
+ }, 8, ["gap"])) : p("", !0)], 2), (x(), f(ne, {
675
+ to: "body",
676
+ disabled: !w(Be)
677
+ }, [F.value && w(Xe) ? (x(), m("div", {
674
678
  key: 0,
675
679
  ref_key: "scrimRef",
676
- ref: Ye,
680
+ ref: Ze,
677
681
  class: "nb-date-picker__scrim",
678
682
  "aria-hidden": "true",
679
683
  onClick: q
680
- }, null, 512)) : p("", !0), P.value ? (x(), m("div", ne({
684
+ }, null, 512)) : p("", !0), F.value ? (x(), m("div", re({
681
685
  key: 1,
682
686
  ref_key: "calendarRef",
683
687
  ref: R,
684
688
  role: "dialog",
685
689
  "aria-modal": "true",
686
690
  "aria-label": v.label ? w(E).datePickerDialogFor(v.label) : w(E).datePickerDialog,
687
- class: ["nb-date-picker__calendar", { "nb-date-picker__calendar--sheet": w(Je) }]
688
- }, w(ze), {
689
- style: w(Je) ? void 0 : Xe.value,
690
- onKeydown: Ot,
691
- onMousedown: n[4] ||= le(() => {}, ["prevent"])
692
- }), [h("div", Ae, [
691
+ class: ["nb-date-picker__calendar", { "nb-date-picker__calendar--sheet": w(Xe) }]
692
+ }, w(Ve), {
693
+ style: w(Xe) ? void 0 : Qe.value,
694
+ onKeydown: At,
695
+ onMousedown: n[4] ||= ue(() => {}, ["prevent"])
696
+ }), [h("div", je, [
693
697
  _(e, {
694
698
  variant: "ghost",
695
- icon: w(pe),
699
+ icon: w(me),
696
700
  size: "sm",
697
701
  class: "nb-date-picker__cal-nav",
698
702
  label: w(E).datePickerPreviousYear,
699
- onClick: Lt
703
+ onClick: zt
700
704
  }, null, 8, ["icon", "label"]),
701
705
  _(e, {
702
706
  variant: "ghost",
703
- icon: w(de),
707
+ icon: w(fe),
704
708
  size: "sm",
705
709
  class: "nb-date-picker__cal-nav",
706
710
  label: w(E).datePickerPreviousMonth,
707
- onClick: Ft
711
+ onClick: Lt
708
712
  }, null, 8, ["icon", "label"]),
709
713
  h("span", {
710
- id: Ge.value,
714
+ id: Ke.value,
711
715
  class: "nb-date-picker__cal-title",
712
716
  "aria-live": "polite"
713
- }, C(zt.value), 9, je),
717
+ }, C(Vt.value), 9, Me),
714
718
  _(e, {
715
719
  variant: "ghost",
716
- icon: w(ue),
720
+ icon: w(de),
717
721
  size: "sm",
718
722
  class: "nb-date-picker__cal-nav",
719
723
  label: w(E).datePickerNextMonth,
720
- onClick: It
724
+ onClick: Rt
721
725
  }, null, 8, ["icon", "label"]),
722
726
  _(e, {
723
727
  variant: "ghost",
724
- icon: w(me),
728
+ icon: w(he),
725
729
  size: "sm",
726
730
  class: "nb-date-picker__cal-nav",
727
731
  label: w(E).datePickerNextYear,
728
- onClick: Rt
732
+ onClick: Bt
729
733
  }, null, 8, ["icon", "label"])
730
734
  ]), h("table", {
731
735
  role: "grid",
732
- "aria-labelledby": Ge.value,
736
+ "aria-labelledby": Ke.value,
733
737
  class: "nb-date-picker__cal-table"
734
- }, [h("thead", null, [h("tr", Ne, [(x(!0), m(u, null, ie(Bt.value, (e) => (x(), m("th", {
738
+ }, [h("thead", null, [h("tr", Pe, [(x(!0), m(u, null, ae(Ht.value, (e) => (x(), m("th", {
735
739
  key: e.narrow,
736
740
  scope: "col",
737
741
  class: "nb-date-picker__cal-weekday",
738
742
  abbr: e.full
739
- }, C(e.narrow), 9, Pe))), 128))])]), h("tbody", null, [(x(!0), m(u, null, ie(Ut.value, (e, t) => (x(), m("tr", { key: t }, [(x(!0), m(u, null, ie(e, (e) => (x(), m("td", {
743
+ }, C(e.narrow), 9, Fe))), 128))])]), h("tbody", null, [(x(!0), m(u, null, ae(Gt.value, (e, t) => (x(), m("tr", { key: t }, [(x(!0), m(u, null, ae(e, (e) => (x(), m("td", {
740
744
  key: e.key,
741
745
  role: "gridcell",
742
746
  "aria-selected": e.isSelected || void 0,
@@ -751,15 +755,15 @@ var he = { class: "nb-date-picker__col" }, ge = [
751
755
  "nb-date-picker__cal-day--range-start": e.isRangeStart,
752
756
  "nb-date-picker__cal-day--range-end": e.isRangeEnd,
753
757
  "nb-date-picker__cal-day--disabled": e.isDisabled,
754
- "nb-date-picker__cal-day--focused": e.date === F.value
758
+ "nb-date-picker__cal-day--focused": e.date === I.value
755
759
  }]),
756
- tabindex: e.date === F.value ? 0 : -1,
760
+ tabindex: e.date === I.value ? 0 : -1,
757
761
  disabled: e.isDisabled,
758
- "aria-label": Qe(e.date),
762
+ "aria-label": et(e.date),
759
763
  "data-date": e.date,
760
- onClick: (t) => Dt(e.date)
761
- }, C(e.day), 11, Ie)], 8, Fe))), 128))]))), 128))])], 8, Me)], 16, ke)) : p("", !0)]))], 64));
764
+ onClick: (t) => kt(e.date)
765
+ }, C(e.day), 11, Le)], 8, Ie))), 128))]))), 128))])], 8, Ne)], 16, Ae)) : p("", !0)], 8, ["disabled"]))], 64));
762
766
  }
763
767
  });
764
768
  //#endregion
765
- export { Le as t };
769
+ export { Re as t };