@cocoar/vue-ui 3.4.0-beta.8 → 4.0.0-beta.44

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 (250) hide show
  1. package/dist/compact-fonts.d.ts +1 -0
  2. package/dist/compact-fonts.d.ts.map +1 -0
  3. package/dist/compact-fonts.js +4 -0
  4. package/dist/components/_internal/keyboardInset.d.ts +9 -0
  5. package/dist/components/_internal/keyboardInset.d.ts.map +1 -0
  6. package/dist/components/_internal/pageScrollLock.d.ts +17 -0
  7. package/dist/components/_internal/pageScrollLock.d.ts.map +1 -0
  8. package/dist/components/_internal/useFocusTrap.d.ts +9 -0
  9. package/dist/components/_internal/useFocusTrap.d.ts.map +1 -0
  10. package/dist/components/_internal/useVisualViewport.d.ts +26 -0
  11. package/dist/components/_internal/useVisualViewport.d.ts.map +1 -0
  12. package/dist/components/badge/CoarBadge.vue.d.ts.map +1 -1
  13. package/dist/components/card/CoarCard.vue.d.ts.map +1 -1
  14. package/dist/components/checkbox/CoarCheckbox.vue.d.ts +2 -2
  15. package/dist/components/checkbox/CoarCheckbox.vue.d.ts.map +1 -1
  16. package/dist/components/code-block/CoarCodeBlock.vue.d.ts +1 -1
  17. package/dist/components/code-block/CoarCodeBlock.vue.d.ts.map +1 -1
  18. package/dist/components/data-list/CoarDataList.vue.d.ts.map +1 -1
  19. package/dist/components/date-time/_shared/use-plain-date-picker.d.ts +95 -0
  20. package/dist/components/date-time/_shared/use-plain-date-picker.d.ts.map +1 -0
  21. package/dist/components/date-time/_shared/use-plain-date-time-picker.d.ts +113 -0
  22. package/dist/components/date-time/_shared/use-plain-date-time-picker.d.ts.map +1 -0
  23. package/dist/components/date-time/_shared/use-zoned-date-time-picker.d.ts +132 -0
  24. package/dist/components/date-time/_shared/use-zoned-date-time-picker.d.ts.map +1 -0
  25. package/dist/components/date-time/plain-date-picker/CoarPlainDatePicker.vue.d.ts +23 -6
  26. package/dist/components/date-time/plain-date-picker/CoarPlainDatePicker.vue.d.ts.map +1 -1
  27. package/dist/components/date-time/plain-date-time-or-date-picker/CoarPlainDateTimeOrDatePicker.vue.d.ts +4 -0
  28. package/dist/components/date-time/plain-date-time-or-date-picker/CoarPlainDateTimeOrDatePicker.vue.d.ts.map +1 -1
  29. package/dist/components/date-time/plain-date-time-picker/CoarPlainDateTimePicker.vue.d.ts +23 -6
  30. package/dist/components/date-time/plain-date-time-picker/CoarPlainDateTimePicker.vue.d.ts.map +1 -1
  31. package/dist/components/date-time/scrollable-calendar/CoarScrollableCalendar.vue.d.ts.map +1 -1
  32. package/dist/components/date-time/time-picker/CoarTimePicker.vue.d.ts.map +1 -1
  33. package/dist/components/date-time/zoned-date-time-or-date-picker/CoarZonedDateTimeOrDatePicker.vue.d.ts +4 -0
  34. package/dist/components/date-time/zoned-date-time-or-date-picker/CoarZonedDateTimeOrDatePicker.vue.d.ts.map +1 -1
  35. package/dist/components/date-time/zoned-date-time-picker/CoarZonedDateTimePicker.vue.d.ts +23 -6
  36. package/dist/components/date-time/zoned-date-time-picker/CoarZonedDateTimePicker.vue.d.ts.map +1 -1
  37. package/dist/components/date-time/zoned-date-time-picker/CoarZonedDateTimePickerPanel.vue.d.ts.map +1 -1
  38. package/dist/components/dialog/CoarDialogFooter.vue.d.ts +20 -0
  39. package/dist/components/dialog/CoarDialogFooter.vue.d.ts.map +1 -0
  40. package/dist/components/dialog/CoarDialogShell.vue.d.ts +2 -0
  41. package/dist/components/dialog/CoarDialogShell.vue.d.ts.map +1 -1
  42. package/dist/components/dialog/CoarSheetShell.vue.d.ts +50 -0
  43. package/dist/components/dialog/CoarSheetShell.vue.d.ts.map +1 -0
  44. package/dist/components/dialog/dialog-types.d.ts +27 -0
  45. package/dist/components/dialog/dialog-types.d.ts.map +1 -1
  46. package/dist/components/dialog/dialogFooter.d.ts +21 -0
  47. package/dist/components/dialog/dialogFooter.d.ts.map +1 -0
  48. package/dist/components/dialog/index.d.ts +2 -1
  49. package/dist/components/dialog/index.d.ts.map +1 -1
  50. package/dist/components/dialog/useDialog.d.ts +6 -15
  51. package/dist/components/dialog/useDialog.d.ts.map +1 -1
  52. package/dist/components/dialog/useSheetDrag.d.ts +46 -0
  53. package/dist/components/dialog/useSheetDrag.d.ts.map +1 -0
  54. package/dist/components/form-field/CoarFormField.vue.d.ts +2 -2
  55. package/dist/components/form-field/CoarFormField.vue.d.ts.map +1 -1
  56. package/dist/components/form-field/constants.d.ts +6 -0
  57. package/dist/components/form-field/constants.d.ts.map +1 -1
  58. package/dist/components/icon/CoarIcon.vue.d.ts +3 -3
  59. package/dist/components/icon/CoarIcon.vue.d.ts.map +1 -1
  60. package/dist/components/icon/core-icons.d.ts +2 -0
  61. package/dist/components/icon/core-icons.d.ts.map +1 -1
  62. package/dist/components/input-frame/CoarInputFrame.vue.d.ts +17 -6
  63. package/dist/components/input-frame/CoarInputFrame.vue.d.ts.map +1 -1
  64. package/dist/components/input-frame/CoarInputFrameButton.vue.d.ts.map +1 -1
  65. package/dist/components/input-frame/types.d.ts +9 -0
  66. package/dist/components/input-frame/types.d.ts.map +1 -0
  67. package/dist/components/listbox/CoarListbox.vue.d.ts.map +1 -1
  68. package/dist/components/menu/CoarContextMenu.vue.d.ts.map +1 -1
  69. package/dist/components/menu/CoarMenuItem.vue.d.ts.map +1 -1
  70. package/dist/components/menu/CoarSubExpand.vue.d.ts.map +1 -1
  71. package/dist/components/menu/CoarSubFlyout.vue.d.ts.map +1 -1
  72. package/dist/components/menu/useContextMenu.d.ts +7 -20
  73. package/dist/components/menu/useContextMenu.d.ts.map +1 -1
  74. package/dist/components/number-input/CoarNumberInput.vue.d.ts +16 -1
  75. package/dist/components/number-input/CoarNumberInput.vue.d.ts.map +1 -1
  76. package/dist/components/otp-input/CoarOtpInput.vue.d.ts +2 -2
  77. package/dist/components/otp-input/CoarOtpInput.vue.d.ts.map +1 -1
  78. package/dist/components/overlay/CoarOverlayOutlet.vue.d.ts.map +1 -1
  79. package/dist/components/overlay/compact-context.d.ts +10 -0
  80. package/dist/components/overlay/compact-context.d.ts.map +1 -0
  81. package/dist/components/overlay/index.d.ts +3 -1
  82. package/dist/components/overlay/index.d.ts.map +1 -1
  83. package/dist/components/overlay/overlay-presets.d.ts +9 -0
  84. package/dist/components/overlay/overlay-presets.d.ts.map +1 -1
  85. package/dist/components/overlay/overlay-service.d.ts +12 -0
  86. package/dist/components/overlay/overlay-service.d.ts.map +1 -1
  87. package/dist/components/overlay/overlay-types.d.ts +6 -0
  88. package/dist/components/overlay/overlay-types.d.ts.map +1 -1
  89. package/dist/components/overlay/useCompactPresentationContext.d.ts +33 -0
  90. package/dist/components/overlay/useCompactPresentationContext.d.ts.map +1 -0
  91. package/dist/components/pagination/CoarPagination.vue.d.ts.map +1 -1
  92. package/dist/components/panel-layout/internal/CoarPaneDivider.vue.d.ts.map +1 -1
  93. package/dist/components/password-input/CoarPasswordInput.vue.d.ts +5 -1
  94. package/dist/components/password-input/CoarPasswordInput.vue.d.ts.map +1 -1
  95. package/dist/components/scrollbar/index.d.ts +1 -1
  96. package/dist/components/scrollbar/index.d.ts.map +1 -1
  97. package/dist/components/scrollbar/vScrollbar.d.ts +9 -0
  98. package/dist/components/scrollbar/vScrollbar.d.ts.map +1 -1
  99. package/dist/components/segmented-control/CoarSegmentedControl.vue.d.ts.map +1 -1
  100. package/dist/components/select/CoarMultiSelect.vue.d.ts.map +1 -1
  101. package/dist/components/select/CoarMultiSelectDropdownPanel.vue.d.ts.map +1 -1
  102. package/dist/components/select/CoarSelect.vue.d.ts +17 -3
  103. package/dist/components/select/CoarSelect.vue.d.ts.map +1 -1
  104. package/dist/components/select/CoarSelectDropdownPanel.vue.d.ts +7 -4
  105. package/dist/components/select/CoarSelectDropdownPanel.vue.d.ts.map +1 -1
  106. package/dist/components/select/CoarTagSelect.vue.d.ts.map +1 -1
  107. package/dist/components/select/CoarTagSelectDropdownPanel.vue.d.ts.map +1 -1
  108. package/dist/components/select/index.d.ts +1 -1
  109. package/dist/components/select/index.d.ts.map +1 -1
  110. package/dist/components/select/types.d.ts +13 -0
  111. package/dist/components/select/types.d.ts.map +1 -1
  112. package/dist/components/select/useSelectBase.d.ts +2 -1
  113. package/dist/components/select/useSelectBase.d.ts.map +1 -1
  114. package/dist/components/sidebar/CoarSidebarGroup.vue.d.ts.map +1 -1
  115. package/dist/components/switch/CoarSwitch.vue.d.ts +2 -2
  116. package/dist/components/switch/CoarSwitch.vue.d.ts.map +1 -1
  117. package/dist/components/tabs/CoarTabGroup.vue.d.ts.map +1 -1
  118. package/dist/components/tag/CoarTag.vue.d.ts.map +1 -1
  119. package/dist/components/text-input/CoarTextInput.vue.d.ts +16 -2
  120. package/dist/components/text-input/CoarTextInput.vue.d.ts.map +1 -1
  121. package/dist/components/theme-editor/CoarPaletteEditor.vue.d.ts +8 -2
  122. package/dist/components/theme-editor/CoarPaletteEditor.vue.d.ts.map +1 -1
  123. package/dist/components/theme-editor/color-preview.d.ts +22 -0
  124. package/dist/components/theme-editor/color-preview.d.ts.map +1 -0
  125. package/dist/components/theme-editor/font-preview.d.ts +46 -0
  126. package/dist/components/theme-editor/font-preview.d.ts.map +1 -0
  127. package/dist/components/theme-editor/scheme-values.d.ts +12 -0
  128. package/dist/components/theme-editor/scheme-values.d.ts.map +1 -0
  129. package/dist/components/theme-editor/theme-editor-state.d.ts +199 -183
  130. package/dist/components/theme-editor/theme-editor-state.d.ts.map +1 -1
  131. package/dist/components/theme-scope/CoarThemeScope.vue.d.ts.map +1 -1
  132. package/dist/components/tree/CoarTreeNode.vue.d.ts.map +1 -1
  133. package/dist/composables/useDragDrop.d.ts.map +1 -1
  134. package/dist/composables/useDragImage.d.ts +2 -14
  135. package/dist/composables/useDragImage.d.ts.map +1 -1
  136. package/dist/index.css +1 -1
  137. package/dist/index.d.ts +8 -4
  138. package/dist/index.d.ts.map +1 -1
  139. package/dist/index.js +6768 -4523
  140. package/dist/onest-fonts.d.ts +1 -0
  141. package/dist/onest-fonts.d.ts.map +1 -0
  142. package/dist/onest-fonts.js +4 -0
  143. package/dist/theme/color-contrast.d.ts +10 -0
  144. package/dist/theme/color-contrast.d.ts.map +1 -0
  145. package/dist/theme/compact-packages/calendar.d.ts +8 -0
  146. package/dist/theme/compact-packages/calendar.d.ts.map +1 -0
  147. package/dist/theme/compact-packages/data-grid.d.ts +8 -0
  148. package/dist/theme/compact-packages/data-grid.d.ts.map +1 -0
  149. package/dist/theme/compact-packages/document-viewer.d.ts +8 -0
  150. package/dist/theme/compact-packages/document-viewer.d.ts.map +1 -0
  151. package/dist/theme/compact-packages/map.d.ts +11 -0
  152. package/dist/theme/compact-packages/map.d.ts.map +1 -0
  153. package/dist/theme/compact-packages/markdown-editor.d.ts +8 -0
  154. package/dist/theme/compact-packages/markdown-editor.d.ts.map +1 -0
  155. package/dist/theme/compact-packages/markdown.d.ts +14 -0
  156. package/dist/theme/compact-packages/markdown.d.ts.map +1 -0
  157. package/dist/theme/compact-packages/mermaid.d.ts +8 -0
  158. package/dist/theme/compact-packages/mermaid.d.ts.map +1 -0
  159. package/dist/theme/compact-packages/page-builder.d.ts +8 -0
  160. package/dist/theme/compact-packages/page-builder.d.ts.map +1 -0
  161. package/dist/theme/compact-packages/script-editor.d.ts +8 -0
  162. package/dist/theme/compact-packages/script-editor.d.ts.map +1 -0
  163. package/dist/theme/compact-theme.d.ts +11 -0
  164. package/dist/theme/compact-theme.d.ts.map +1 -0
  165. package/dist/theme/enterprise-packages/calendar.d.ts +3 -0
  166. package/dist/theme/enterprise-packages/calendar.d.ts.map +1 -0
  167. package/dist/theme/enterprise-packages/document-viewer.d.ts +3 -0
  168. package/dist/theme/enterprise-packages/document-viewer.d.ts.map +1 -0
  169. package/dist/theme/enterprise-packages/map.d.ts +3 -0
  170. package/dist/theme/enterprise-packages/map.d.ts.map +1 -0
  171. package/dist/theme/enterprise-packages/markdown.d.ts +7 -0
  172. package/dist/theme/enterprise-packages/markdown.d.ts.map +1 -0
  173. package/dist/theme/enterprise-packages/mermaid.d.ts +3 -0
  174. package/dist/theme/enterprise-packages/mermaid.d.ts.map +1 -0
  175. package/dist/theme/enterprise-packages/page-builder.d.ts +3 -0
  176. package/dist/theme/enterprise-packages/page-builder.d.ts.map +1 -0
  177. package/dist/theme/enterprise-packages/script-editor.d.ts +7 -0
  178. package/dist/theme/enterprise-packages/script-editor.d.ts.map +1 -0
  179. package/dist/theme/enterprise-theme.d.ts +8 -0
  180. package/dist/theme/enterprise-theme.d.ts.map +1 -0
  181. package/dist/theme/palette-inputs.d.ts +34 -0
  182. package/dist/theme/palette-inputs.d.ts.map +1 -0
  183. package/dist/theme/role-derived-tokens.d.ts +3 -0
  184. package/dist/theme/role-derived-tokens.d.ts.map +1 -0
  185. package/dist/theme/role-input-defaults.d.ts +5 -0
  186. package/dist/theme/role-input-defaults.d.ts.map +1 -0
  187. package/dist/theme/role-theme-contract.d.ts +8 -0
  188. package/dist/theme/role-theme-contract.d.ts.map +1 -0
  189. package/dist/theme/role-theme.d.ts +40 -0
  190. package/dist/theme/role-theme.d.ts.map +1 -0
  191. package/package.json +15 -4
  192. package/skills/cocoar-vue-ui/SKILL.md +8 -1
  193. package/skills/cocoar-vue-ui/references/components/calendar/board.md +212 -0
  194. package/skills/cocoar-vue-ui/references/components/calendar/coar-calendar.md +32 -1
  195. package/skills/cocoar-vue-ui/references/components/calendar/day-view.md +21 -0
  196. package/skills/cocoar-vue-ui/references/components/calendar/index.md +26 -1
  197. package/skills/cocoar-vue-ui/references/components/calendar/mini-month.md +59 -0
  198. package/skills/cocoar-vue-ui/references/components/calendar/month-view.md +48 -1
  199. package/skills/cocoar-vue-ui/references/components/context-menu.md +1 -0
  200. package/skills/cocoar-vue-ui/references/components/data-grid.md +4 -0
  201. package/skills/cocoar-vue-ui/references/components/date-or-time-picker.md +30 -1
  202. package/skills/cocoar-vue-ui/references/components/date-picker.md +32 -1
  203. package/skills/cocoar-vue-ui/references/components/date-time-picker.md +28 -1
  204. package/skills/cocoar-vue-ui/references/components/dialog.md +188 -2
  205. package/skills/cocoar-vue-ui/references/components/document-viewer/coar-document-viewer.md +4 -0
  206. package/skills/cocoar-vue-ui/references/components/form-field.md +10 -6
  207. package/skills/cocoar-vue-ui/references/components/listbox.md +3 -1
  208. package/skills/cocoar-vue-ui/references/components/map/index.md +5 -1
  209. package/skills/cocoar-vue-ui/references/components/markdown-editor.md +10 -0
  210. package/skills/cocoar-vue-ui/references/components/markdown-form.md +9 -0
  211. package/skills/cocoar-vue-ui/references/components/markdown.md +10 -0
  212. package/skills/cocoar-vue-ui/references/components/menu.md +1 -1
  213. package/skills/cocoar-vue-ui/references/components/mermaid.md +11 -0
  214. package/skills/cocoar-vue-ui/references/components/number-input.md +81 -0
  215. package/skills/cocoar-vue-ui/references/components/object-editor.md +737 -0
  216. package/skills/cocoar-vue-ui/references/components/otp-input.md +1 -1
  217. package/skills/cocoar-vue-ui/references/components/pagination.md +1 -1
  218. package/skills/cocoar-vue-ui/references/components/password-input.md +32 -0
  219. package/skills/cocoar-vue-ui/references/components/script-editor.md +10 -0
  220. package/skills/cocoar-vue-ui/references/components/segmented-control.md +1 -1
  221. package/skills/cocoar-vue-ui/references/components/select.md +136 -2
  222. package/skills/cocoar-vue-ui/references/components/tabs.md +1 -1
  223. package/skills/cocoar-vue-ui/references/components/tag.md +1 -1
  224. package/skills/cocoar-vue-ui/references/components/text-input.md +189 -0
  225. package/skills/cocoar-vue-ui/references/components/zoned-date-time-picker.md +42 -1
  226. package/skills/cocoar-vue-ui/references/foundations/colors.md +32 -3
  227. package/skills/cocoar-vue-ui/references/foundations/compact-presentation.md +248 -0
  228. package/skills/cocoar-vue-ui/references/foundations/theming.md +98 -11
  229. package/skills/cocoar-vue-ui/references/foundations/typography.md +3 -0
  230. package/skills/cocoar-vue-ui/references/guide/getting-started.md +2 -2
  231. package/skills/cocoar-vue-ui/references/guide/migration-color-roles.md +28 -0
  232. package/skills/cocoar-vue-ui/references/guide/migration-object-editor-values.md +40 -0
  233. package/skills/cocoar-vue-ui/references/guide/mobile.md +126 -27
  234. package/skills/cocoar-vue-ui/references/guide/theming.md +25 -0
  235. package/styles/tokens/all.css +6 -0
  236. package/styles/tokens/code-block.css +2 -2
  237. package/styles/tokens/colors-primitives-dark.css +50 -50
  238. package/styles/tokens/colors-primitives-light.css +50 -50
  239. package/styles/tokens/colors-usage.css +132 -111
  240. package/styles/tokens/compact.css +4442 -0
  241. package/styles/tokens/components-shared.css +4 -4
  242. package/styles/tokens/derived.css +525 -0
  243. package/styles/tokens/menu.css +21 -21
  244. package/styles/tokens/mobile.css +2 -0
  245. package/styles/tokens/new-components.css +42 -33
  246. package/styles/tokens/select-overlay.css +12 -12
  247. package/styles/tokens/sidebar.css +12 -12
  248. package/styles/tokens/theme-none.css +99 -93
  249. package/styles/tokens/tooltip.css +4 -4
  250. package/styles/tokens/typography.css +19 -19
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=compact-fonts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compact-fonts.d.ts","sourceRoot":"","sources":["../src/compact-fonts.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,2BAA2B,CAAC;AACnC,OAAO,2BAA2B,CAAC;AACnC,OAAO,2BAA2B,CAAC;AACnC,OAAO,2BAA2B,CAAC"}
@@ -0,0 +1,4 @@
1
+ import "@fontsource/inter/400.css";
2
+ import "@fontsource/inter/700.css";
3
+ import "@fontsource/inter/500.css";
4
+ import "@fontsource/inter/600.css";
@@ -0,0 +1,9 @@
1
+ export declare const keyboardInset: Readonly<import('vue').Ref<number, number>>;
2
+ /**
3
+ * **Preview** — reports the bottom of the current layout viewport covered by a native
4
+ * overlay keyboard, in CSS px. This is occlusion, not the keyboard's physical height:
5
+ * report 0 when the WebView resizes above it, on dismissal, and when detaching the host.
6
+ * Browser visual-viewport occlusion is combined with this inset, never added to it.
7
+ */
8
+ export declare function setCoarKeyboardInset(bottomInset: number): void;
9
+ //# sourceMappingURL=keyboardInset.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"keyboardInset.d.ts","sourceRoot":"","sources":["../../../src/components/_internal/keyboardInset.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,aAAa,6CAAkB,CAAC;AAE7C;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI,CAK9D"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Page scroll lock for modal surfaces that cover the page from below (bottom sheets).
3
+ * Counted: the page is locked from the first `lockPageScroll()` until the last release.
4
+ *
5
+ * - `overflow: hidden` on `<html>` stops wheel, keyboard and scrollbar scrolling of the
6
+ * document; the scrollbar's width is added to the body's right padding so the page does
7
+ * not shift sideways.
8
+ * - iOS Safari (before 16) and app shells that scroll an inner container still scroll on
9
+ * touch, so a non-passive `touchmove` listener cancels every touch move that does not
10
+ * start inside an overlay (`.coar-overlay-host`): the sheet itself, and selects or
11
+ * pickers opened from it, keep scrolling.
12
+ *
13
+ * Without `position: fixed` on the body: it would jump the page to the top and back.
14
+ */
15
+ /** Locks page scroll and returns the release; calling the release twice is harmless. */
16
+ export declare function lockPageScroll(): () => void;
17
+ //# sourceMappingURL=pageScrollLock.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pageScrollLock.d.ts","sourceRoot":"","sources":["../../../src/components/_internal/pageScrollLock.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAqDH,wFAAwF;AACxF,wBAAgB,cAAc,IAAI,MAAM,IAAI,CAS3C"}
@@ -0,0 +1,9 @@
1
+ import { Ref } from 'vue';
2
+ /**
3
+ * Focus trap of a modal surface (dialog shell, sheet shell). On mount it remembers the
4
+ * focused element and moves focus into the container (`[autofocus]`, else the first
5
+ * focusable element, else the container itself); while mounted Tab and Shift+Tab wrap
6
+ * inside the container; on unmount focus returns to the remembered element.
7
+ */
8
+ export declare function useFocusTrap(containerRef: Ref<HTMLElement | null>): void;
9
+ //# sourceMappingURL=useFocusTrap.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useFocusTrap.d.ts","sourceRoot":"","sources":["../../../src/components/_internal/useFocusTrap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwC,KAAK,GAAG,EAAE,MAAM,KAAK,CAAC;AAWrE;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,YAAY,EAAE,GAAG,CAAC,WAAW,GAAG,IAAI,CAAC,QAiFjE"}
@@ -0,0 +1,26 @@
1
+ import { Ref } from 'vue';
2
+ /** What a surface docked to the bottom needs to know about the visual viewport. */
3
+ export interface VisualViewportMetrics {
4
+ /** Height of the visible part of the page in px. */
5
+ readonly height: number;
6
+ /**
7
+ * Distance in px from the bottom of the layout viewport (what `position: fixed;
8
+ * bottom: 0` docks to) up to the bottom of the visible part: the on-screen keyboard,
9
+ * or the part of the page that iOS panned away.
10
+ */
11
+ readonly bottomInset: number;
12
+ }
13
+ /**
14
+ * Metrics of a visual viewport, or `null` while it is pinch-zoomed: zoomed, the layout
15
+ * viewport is the right frame and following the visual one would shrink the surface.
16
+ */
17
+ export declare function visualViewportMetrics(layoutHeight: number, viewport: Pick<VisualViewport, 'height' | 'offsetTop' | 'scale'>, nativeInset?: number): VisualViewportMetrics | null;
18
+ /**
19
+ * Follows `window.visualViewport` while the calling component is mounted. `metrics` stays
20
+ * `null` during SSR, without a visual viewport or native inset, and while pinch-zoomed:
21
+ * the caller then keeps its CSS-only layout.
22
+ */
23
+ export declare function useVisualViewport(): {
24
+ metrics: Ref<VisualViewportMetrics | null>;
25
+ };
26
+ //# sourceMappingURL=useVisualViewport.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useVisualViewport.d.ts","sourceRoot":"","sources":["../../../src/components/_internal/useVisualViewport.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0C,KAAK,GAAG,EAAE,MAAM,KAAK,CAAC;AAGvE,mFAAmF;AACnF,MAAM,WAAW,qBAAqB;IACpC,oDAAoD;IACpD,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;CAC9B;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CACnC,YAAY,EAAE,MAAM,EACpB,QAAQ,EAAE,IAAI,CAAC,cAAc,EAAE,QAAQ,GAAG,WAAW,GAAG,OAAO,CAAC,EAChE,WAAW,SAAI,GACd,qBAAqB,GAAG,IAAI,CAa9B;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,IAAI;IAAE,OAAO,EAAE,GAAG,CAAC,qBAAqB,GAAG,IAAI,CAAC,CAAA;CAAE,CAoDlF"}
@@ -1 +1 @@
1
- {"version":3,"file":"CoarBadge.vue.d.ts","sourceRoot":"","sources":["../../../src/components/badge/CoarBadge.vue"],"names":[],"mappings":"AAiOA,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,WAAW,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,CAAC;AAC9F,MAAM,MAAM,SAAS,GAAG,IAAI,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,IAAI,CAAC;AAEtD,MAAM,WAAW,cAAc;IAC7B,kDAAkD;IAClD,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC1B,4BAA4B;IAC5B,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,kBAAkB;IAClB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,8CAA8C;IAC9C,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,gDAAgD;IAChD,GAAG,CAAC,EAAE,OAAO,CAAC;IACd;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,iDAAiD;IACjD,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;;aAhBW,MAAM,GAAG,MAAM;UAIlB,SAAS;aAFN,YAAY;WAId,OAAO;SAET,OAAO;SAKP,MAAM,GAAG,IAAI;cAER,OAAO;;AAgIpB,wBAQG"}
1
+ {"version":3,"file":"CoarBadge.vue.d.ts","sourceRoot":"","sources":["../../../src/components/badge/CoarBadge.vue"],"names":[],"mappings":"AAkOA,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,WAAW,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,CAAC;AAC9F,MAAM,MAAM,SAAS,GAAG,IAAI,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,IAAI,CAAC;AAEtD,MAAM,WAAW,cAAc;IAC7B,kDAAkD;IAClD,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC1B,4BAA4B;IAC5B,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,kBAAkB;IAClB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,8CAA8C;IAC9C,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,gDAAgD;IAChD,GAAG,CAAC,EAAE,OAAO,CAAC;IACd;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,iDAAiD;IACjD,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;;aAhBW,MAAM,GAAG,MAAM;UAIlB,SAAS;aAFN,YAAY;WAId,OAAO;SAET,OAAO;SAKP,MAAM,GAAG,IAAI;cAER,OAAO;;AAgIpB,wBAQG"}
@@ -1 +1 @@
1
- {"version":3,"file":"CoarCard.vue.d.ts","sourceRoot":"","sources":["../../../src/components/card/CoarCard.vue"],"names":[],"mappings":"AAmIA,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAC;AACvG,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;AAEnD,MAAM,WAAW,aAAa;IAC5B,sBAAsB;IACtB,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,6BAA6B;IAC7B,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,wCAAwC;IACxC,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Ac,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;aAzHT,WAAW;aAFX,WAAW;cAIV,OAAO;gBAEL,OAAO;wFA6HpB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -34,9 +34,9 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {},
34
34
  }>, {
35
35
  value: string;
36
36
  error: boolean;
37
- id: string;
38
- label: string;
39
37
  name: string;
38
+ label: string;
39
+ id: string;
40
40
  size: CoarCheckboxSize;
41
41
  required: boolean;
42
42
  disabled: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"CoarCheckbox.vue.d.ts","sourceRoot":"","sources":["../../../src/components/checkbox/CoarCheckbox.vue"],"names":[],"mappings":"AAudA,MAAM,MAAM,gBAAgB,GAAG,IAAI,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;AAEtD,MAAM,WAAW,iBAAiB;IAChC,gDAAgD;IAChD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,4EAA4E;IAC5E,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,4BAA4B;IAC5B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,mDAAmD;IACnD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iDAAiD;IACjD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,gDAAgD;IAChD,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,oBAAoB;IACpB,IAAI,CAAC,EAAE,gBAAgB,CAAC;IACxB,8CAA8C;IAC9C,aAAa,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;IACnC,wBAAwB;IACxB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,0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CAAC;AAiIrC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,WAAW,CAAC;;;;;;WAtIN,MAAM;WAVN,OAAO;UAQR,MAAM;WAlBL,MAAM;QAgBT,MAAM;UAJJ,gBAAgB;cAJZ,OAAO;cAJP,OAAO;mBAUF,QAAQ,GAAG,OAAO;mBAZlB,OAAO;cAIZ,OAAO;;;;AA+SpB,wBAUG"}
@@ -30,8 +30,8 @@ declare const _default: import('vue').DefineComponent<CoarCodeBlockProps, {
30
30
  isCollapsed: import('vue').Ref<boolean, boolean>;
31
31
  lines: import('vue').ComputedRef<number[]>;
32
32
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<CoarCodeBlockProps> & Readonly<{}>, {
33
- maxHeight: number;
34
33
  title: string;
34
+ maxHeight: number;
35
35
  variant: CodeBlockVariant;
36
36
  elevated: boolean;
37
37
  borderless: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"CoarCodeBlock.vue.d.ts","sourceRoot":"","sources":["../../../src/components/code-block/CoarCodeBlock.vue"],"names":[],"mappings":"AA+iBA,OAAO,qCAAqC,CAAC;AAC7C,OAAO,qCAAqC,CAAC;AAC7C,OAAO,8BAA8B,CAAC;AACtC,OAAO,+BAA+B,CAAC;AACvC,OAAO,+BAA+B,CAAC;AACvC,OAAO,+BAA+B,CAAC;AACvC,OAAO,iCAAiC,CAAC;AAEzC,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAC;AAE/F,MAAM,WAAW,kBAAkB;IACjC,2BAA2B;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,wCAAwC;IACxC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,sCAAsC;IACtC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,+CAA+C;IAC/C,WAAW,CA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A+C;IAC/C,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,uCAAuC;IACvC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,oCAAoC;IACpC,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,sDAAsD;IACtD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,4CAA4C;IAC5C,OAAO,CAAC,EAAE,gBAAgB,CAAC;IAC3B,oDAAoD;IACpD,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAiFD,iBAAe,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC,CASvC;;;;;;;WA3GS,MAAM;eAUF,MAAM;aAER,gBAAgB;cAIf,OAAO;gBAFL,OAAO;cAhBT,MAAM;iBAIH,OAAO;eAET,OAAO;cAER,OAAO;qBAEA,OAAO;;AA6U3B,wBASG"}
@@ -1 +1 @@
1
- {"version":3,"file":"CoarDataList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/data-list/CoarDataList.vue"],"names":[],"mappings":"AAqoDA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAQjE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,KAAK,EACV,mBAAmB,EACnB,sBAAsB,EACtB,qBAAqB,EAErB,0BAA0B,EAC1B,0BAA0B,EAC1B,qBAAqB,EACrB,yBAAyB,EACzB,4BAA4B,EAC5B,eAAe,EACf,kBAAkB,EAClB,uBAAuB,EACvB,wBAAwB,EAGxB,oBAAoB,EACpB,yBAAyB,EACzB,gBAAgB,EAChB,sBAAsB,EACtB,sBAAsB,EACvB,MAAM,SAAS,CAAC;AAEjB,MAAM,WAAW,iBAAiB,CAAC,CAAC,GAAG,OAAO;IAC5C,yFAAyF;IACzF,OAAO,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC;IAE7B,0BAA0B;IAC1B,KAAK,CAA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C;;;;;;mBAjyCK,SAAS,CAAC,EAAE;qBAAW,OAAO;;;;;;;;;;;;iBAy0BpD,MAAM;eACR,gBAAgB,GAAG,IAAI;mBACnB,eAAe,EAAE;mBACjB,eAAe,EAAE;2CAqdgE,CAAC,4BAA2B;oBACzG,OAAO,KAAK,EAAE,gBAAgB;QApiB7C,6DAA6D;;2BA3OrC,eAAe,UAAS,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,KAAK;+BA8MvD,MAAM,UAAU,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,KAAK;wBAM1D,eAAe;uCAMA,eAAe;MAqjBgB,GAAG,IAAI;WACpE,GAAG;;oBA9xCG,yBAAyB,CAAC,CAAC,CAAC,GAAG,OAAO;8BAC5B,0BAA0B,CAAC,CAAC,CAAC,GAAG,OAAO;iBACpD,OAAO;0BACE,OAAO;2BACN,OAAO;;oBAJd,yBAAyB,CAAC,CAAC,CAAC,GAAG,OAAO;8BAC5B,0BAA0B,CAAC,CAAC,CAAC,GAAG,OAAO;iBACpD,OAAO;0BACE,OAAO;2BACN,OAAO;;UA4xCrB;eAryC0B,SAAS,CAAC,EAAE;iBAAW,OAAO;wlBAqyCpB;EAEvC,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AA32CzE,wBA22C4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -0,0 +1,95 @@
1
+ import { Ref } from 'vue';
2
+ import { Temporal } from '@js-temporal/polyfill';
3
+ import { DateFormatConfig } from './types';
4
+ interface PlainDatePickerOptions {
5
+ readonly placeholder: string;
6
+ readonly locale?: string;
7
+ readonly dateFormat?: DateFormatConfig;
8
+ readonly min: Temporal.PlainDate | null;
9
+ readonly max: Temporal.PlainDate | null;
10
+ }
11
+ /**
12
+ * Internal value logic shared by presentations of the plain date picker.
13
+ * Pass reactive props (or getters) so options remain live. DOM, masking and overlay
14
+ * lifecycle belong to the presentation, not this composable.
15
+ */
16
+ export declare function usePlainDatePicker(modelValue: Ref<Temporal.PlainDate | null>, props: PlainDatePickerOptions): {
17
+ pickerBase: {
18
+ effectiveLocale: import('vue').ComputedRef<string>;
19
+ effectiveDateFormat: import('vue').ComputedRef<DateFormatConfig>;
20
+ separator: import('vue').ComputedRef<"." | "-" | "/">;
21
+ timezone: Readonly<Ref<string, string>>;
22
+ isOpen: Ref<boolean, boolean>;
23
+ open: () => void;
24
+ close: () => void;
25
+ toggle: () => void;
26
+ };
27
+ activeMonth: Ref<{
28
+ readonly era: string | undefined;
29
+ readonly eraYear: number | undefined;
30
+ readonly year: number;
31
+ readonly month: number;
32
+ readonly monthCode: string;
33
+ readonly calendarId: string;
34
+ readonly daysInMonth: number;
35
+ readonly daysInYear: number;
36
+ readonly monthsInYear: number;
37
+ readonly inLeapYear: boolean;
38
+ equals: (other: Temporal.PlainYearMonth | Temporal.PlainYearMonthLike | string) => boolean;
39
+ with: (yearMonthLike: Temporal.PlainYearMonthLike, options?: Temporal.AssignmentOptions) => Temporal.PlainYearMonth;
40
+ add: (durationLike: Temporal.Duration | Temporal.DurationLike | string, options?: Temporal.ArithmeticOptions) => Temporal.PlainYearMonth;
41
+ subtract: (durationLike: Temporal.Duration | Temporal.DurationLike | string, options?: Temporal.ArithmeticOptions) => Temporal.PlainYearMonth;
42
+ until: (other: Temporal.PlainYearMonth | Temporal.PlainYearMonthLike | string, options?: Temporal.DifferenceOptions<"year" | "month">) => Temporal.Duration;
43
+ since: (other: Temporal.PlainYearMonth | Temporal.PlainYearMonthLike | string, options?: Temporal.DifferenceOptions<"year" | "month">) => Temporal.Duration;
44
+ toPlainDate: (day: {
45
+ day: number;
46
+ }) => Temporal.PlainDate;
47
+ toLocaleString: (locales?: Temporal.LocalesArgument, options?: globalThis.Intl.DateTimeFormatOptions) => string;
48
+ toJSON: () => string;
49
+ toString: (options?: Temporal.ShowCalendarOption) => string;
50
+ valueOf: () => never;
51
+ readonly [Symbol.toStringTag]: "Temporal.PlainYearMonth";
52
+ }, Temporal.PlainYearMonth | {
53
+ readonly era: string | undefined;
54
+ readonly eraYear: number | undefined;
55
+ readonly year: number;
56
+ readonly month: number;
57
+ readonly monthCode: string;
58
+ readonly calendarId: string;
59
+ readonly daysInMonth: number;
60
+ readonly daysInYear: number;
61
+ readonly monthsInYear: number;
62
+ readonly inLeapYear: boolean;
63
+ equals: (other: Temporal.PlainYearMonth | Temporal.PlainYearMonthLike | string) => boolean;
64
+ with: (yearMonthLike: Temporal.PlainYearMonthLike, options?: Temporal.AssignmentOptions) => Temporal.PlainYearMonth;
65
+ add: (durationLike: Temporal.Duration | Temporal.DurationLike | string, options?: Temporal.ArithmeticOptions) => Temporal.PlainYearMonth;
66
+ subtract: (durationLike: Temporal.Duration | Temporal.DurationLike | string, options?: Temporal.ArithmeticOptions) => Temporal.PlainYearMonth;
67
+ until: (other: Temporal.PlainYearMonth | Temporal.PlainYearMonthLike | string, options?: Temporal.DifferenceOptions<"year" | "month">) => Temporal.Duration;
68
+ since: (other: Temporal.PlainYearMonth | Temporal.PlainYearMonthLike | string, options?: Temporal.DifferenceOptions<"year" | "month">) => Temporal.Duration;
69
+ toPlainDate: (day: {
70
+ day: number;
71
+ }) => Temporal.PlainDate;
72
+ toLocaleString: (locales?: Temporal.LocalesArgument, options?: globalThis.Intl.DateTimeFormatOptions) => string;
73
+ toJSON: () => string;
74
+ toString: (options?: Temporal.ShowCalendarOption) => string;
75
+ valueOf: () => never;
76
+ readonly [Symbol.toStringTag]: "Temporal.PlainYearMonth";
77
+ }>;
78
+ displayValue: Ref<string, string>;
79
+ inputPlaceholder: import('vue').ComputedRef<string>;
80
+ isPrevYearDisabled: import('vue').ComputedRef<boolean>;
81
+ isNextYearDisabled: import('vue').ComputedRef<boolean>;
82
+ today: import('vue').ComputedRef<Temporal.PlainDate>;
83
+ formatValue: (val: Temporal.PlainDate) => string;
84
+ parseValueFromInput: (text: string) => Temporal.PlainDate | null;
85
+ selectDate: (date: Temporal.PlainDate) => void;
86
+ selectMonth: (month: Temporal.PlainYearMonth) => void;
87
+ previousYear: () => void;
88
+ nextYear: () => void;
89
+ scrollToTodayMonth: () => void;
90
+ clearValue: () => void;
91
+ changeInput: (text: string) => void;
92
+ blurInput: () => void;
93
+ };
94
+ export {};
95
+ //# sourceMappingURL=use-plain-date-picker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-plain-date-picker.d.ts","sourceRoot":"","sources":["../../../../src/components/date-time/_shared/use-plain-date-picker.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,KAAK,GAAG,EAAE,MAAM,KAAK,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAGjD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,UAAU,sBAAsB;IAC9B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,UAAU,CAAC,EAAE,gBAAgB,CAAC;IACvC,QAAQ,CAAC,GAAG,EAAE,QAAQ,CAAC,SAAS,GAAG,IAAI,CAAC;IACxC,QAAQ,CAAC,GAAG,EAAE,QAAQ,CAAC,SAAS,GAAG,IAAI,CAAC;CACzC;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAChC,UAAU,EAAE,GAAG,CAAC,QAAQ,CAAC,SAAS,GAAG,IAAI,CAAC,EAC1C,KAAK,EAAE,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAkBH,QAAQ,CAAC,SAAS,KAAG,MAAM;gCAKlB,MAAM,KAAG,QAAQ,CAAC,SAAS,GAAG,IAAI;uBAgB3C,QAAQ,CAAC,SAAS;yBAIhB,QAAQ,CAAC,cAAc;;;;;wBAqBxB,MAAM;;EAqBlC"}
@@ -0,0 +1,113 @@
1
+ import { Ref } from 'vue';
2
+ import { Temporal } from '@js-temporal/polyfill';
3
+ import { DateFormatConfig, CoarTimeValue } from './types';
4
+ interface PlainDateTimePickerOptions {
5
+ readonly placeholder: string;
6
+ readonly locale?: string;
7
+ readonly dateFormat?: DateFormatConfig;
8
+ readonly min: Temporal.PlainDateTime | null;
9
+ readonly max: Temporal.PlainDateTime | null;
10
+ readonly use24Hour: boolean | 'auto';
11
+ readonly minuteStep: 1 | 5 | 10 | 15;
12
+ readonly defaultTime: CoarTimeValue;
13
+ }
14
+ /**
15
+ * Internal value logic shared by presentations of the plain date-time picker.
16
+ * Pass reactive props (or getters) so options remain live. DOM, masking and overlay
17
+ * lifecycle belong to the presentation, not this composable.
18
+ */
19
+ export declare function usePlainDateTimePicker(modelValue: Ref<Temporal.PlainDateTime | null>, props: PlainDateTimePickerOptions): {
20
+ pickerBase: {
21
+ effectiveLocale: import('vue').ComputedRef<string>;
22
+ effectiveDateFormat: import('vue').ComputedRef<DateFormatConfig>;
23
+ separator: import('vue').ComputedRef<"." | "-" | "/">;
24
+ timezone: Readonly<Ref<string, string>>;
25
+ isOpen: Ref<boolean, boolean>;
26
+ open: () => void;
27
+ close: () => void;
28
+ toggle: () => void;
29
+ };
30
+ activeMonth: Ref<{
31
+ readonly era: string | undefined;
32
+ readonly eraYear: number | undefined;
33
+ readonly year: number;
34
+ readonly month: number;
35
+ readonly monthCode: string;
36
+ readonly calendarId: string;
37
+ readonly daysInMonth: number;
38
+ readonly daysInYear: number;
39
+ readonly monthsInYear: number;
40
+ readonly inLeapYear: boolean;
41
+ equals: (other: Temporal.PlainYearMonth | Temporal.PlainYearMonthLike | string) => boolean;
42
+ with: (yearMonthLike: Temporal.PlainYearMonthLike, options?: Temporal.AssignmentOptions) => Temporal.PlainYearMonth;
43
+ add: (durationLike: Temporal.Duration | Temporal.DurationLike | string, options?: Temporal.ArithmeticOptions) => Temporal.PlainYearMonth;
44
+ subtract: (durationLike: Temporal.Duration | Temporal.DurationLike | string, options?: Temporal.ArithmeticOptions) => Temporal.PlainYearMonth;
45
+ until: (other: Temporal.PlainYearMonth | Temporal.PlainYearMonthLike | string, options?: Temporal.DifferenceOptions<"year" | "month">) => Temporal.Duration;
46
+ since: (other: Temporal.PlainYearMonth | Temporal.PlainYearMonthLike | string, options?: Temporal.DifferenceOptions<"year" | "month">) => Temporal.Duration;
47
+ toPlainDate: (day: {
48
+ day: number;
49
+ }) => Temporal.PlainDate;
50
+ toLocaleString: (locales?: Temporal.LocalesArgument, options?: globalThis.Intl.DateTimeFormatOptions) => string;
51
+ toJSON: () => string;
52
+ toString: (options?: Temporal.ShowCalendarOption) => string;
53
+ valueOf: () => never;
54
+ readonly [Symbol.toStringTag]: "Temporal.PlainYearMonth";
55
+ }, Temporal.PlainYearMonth | {
56
+ readonly era: string | undefined;
57
+ readonly eraYear: number | undefined;
58
+ readonly year: number;
59
+ readonly month: number;
60
+ readonly monthCode: string;
61
+ readonly calendarId: string;
62
+ readonly daysInMonth: number;
63
+ readonly daysInYear: number;
64
+ readonly monthsInYear: number;
65
+ readonly inLeapYear: boolean;
66
+ equals: (other: Temporal.PlainYearMonth | Temporal.PlainYearMonthLike | string) => boolean;
67
+ with: (yearMonthLike: Temporal.PlainYearMonthLike, options?: Temporal.AssignmentOptions) => Temporal.PlainYearMonth;
68
+ add: (durationLike: Temporal.Duration | Temporal.DurationLike | string, options?: Temporal.ArithmeticOptions) => Temporal.PlainYearMonth;
69
+ subtract: (durationLike: Temporal.Duration | Temporal.DurationLike | string, options?: Temporal.ArithmeticOptions) => Temporal.PlainYearMonth;
70
+ until: (other: Temporal.PlainYearMonth | Temporal.PlainYearMonthLike | string, options?: Temporal.DifferenceOptions<"year" | "month">) => Temporal.Duration;
71
+ since: (other: Temporal.PlainYearMonth | Temporal.PlainYearMonthLike | string, options?: Temporal.DifferenceOptions<"year" | "month">) => Temporal.Duration;
72
+ toPlainDate: (day: {
73
+ day: number;
74
+ }) => Temporal.PlainDate;
75
+ toLocaleString: (locales?: Temporal.LocalesArgument, options?: globalThis.Intl.DateTimeFormatOptions) => string;
76
+ toJSON: () => string;
77
+ toString: (options?: Temporal.ShowCalendarOption) => string;
78
+ valueOf: () => never;
79
+ readonly [Symbol.toStringTag]: "Temporal.PlainYearMonth";
80
+ }>;
81
+ pendingTime: Ref<{
82
+ readonly hours: number;
83
+ readonly minutes: number;
84
+ } | null, CoarTimeValue | {
85
+ readonly hours: number;
86
+ readonly minutes: number;
87
+ } | null>;
88
+ displayValue: Ref<string, string>;
89
+ effectiveUse24Hour: import('vue').ComputedRef<boolean>;
90
+ inputPlaceholder: import('vue').ComputedRef<string>;
91
+ selectedDate: import('vue').ComputedRef<Temporal.PlainDate | null>;
92
+ selectedTime: import('vue').ComputedRef<CoarTimeValue | null>;
93
+ minDate: import('vue').ComputedRef<Temporal.PlainDate | null>;
94
+ maxDate: import('vue').ComputedRef<Temporal.PlainDate | null>;
95
+ effectiveMinTime: import('vue').ComputedRef<CoarTimeValue | null>;
96
+ effectiveMaxTime: import('vue').ComputedRef<CoarTimeValue | null>;
97
+ isPrevYearDisabled: import('vue').ComputedRef<boolean>;
98
+ isNextYearDisabled: import('vue').ComputedRef<boolean>;
99
+ today: import('vue').ComputedRef<Temporal.PlainDate>;
100
+ formatValue: (val: Temporal.PlainDateTime) => string;
101
+ parseValueFromInput: (text: string) => Temporal.PlainDateTime | null;
102
+ selectDate: (date: Temporal.PlainDate) => void;
103
+ changeTime: (time: CoarTimeValue | null) => void;
104
+ selectMonth: (month: Temporal.PlainYearMonth) => void;
105
+ previousYear: () => void;
106
+ nextYear: () => void;
107
+ scrollToTodayMonth: () => void;
108
+ clearValue: () => void;
109
+ changeInput: (text: string) => void;
110
+ blurInput: () => void;
111
+ };
112
+ export {};
113
+ //# sourceMappingURL=use-plain-date-time-picker.d.ts.map
@@ -0,0 +1 @@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{ Ref } from 'vue';
2
+ import { Temporal } from '@js-temporal/polyfill';
3
+ import { DateFormatConfig, CoarTimeValue } from './types';
4
+ interface ZonedDateTimePickerOptions {
5
+ readonly placeholder: string;
6
+ readonly locale?: string;
7
+ readonly dateFormat?: DateFormatConfig;
8
+ readonly min: Temporal.ZonedDateTime | null;
9
+ readonly max: Temporal.ZonedDateTime | null;
10
+ readonly use24Hour: boolean | 'auto';
11
+ readonly minuteStep: 1 | 5 | 10 | 15;
12
+ readonly defaultTime: CoarTimeValue;
13
+ readonly timeZone: string | null;
14
+ }
15
+ /**
16
+ * Internal value logic shared by presentations of the zoned date-time picker.
17
+ * Pass reactive props (or getters) so options remain live. DOM, masking and overlay
18
+ * lifecycle belong to the presentation, not this composable.
19
+ */
20
+ export declare function useZonedDateTimePicker(modelValue: Ref<Temporal.ZonedDateTime | null>, props: ZonedDateTimePickerOptions): {
21
+ pickerBase: {
22
+ effectiveLocale: import('vue').ComputedRef<string>;
23
+ effectiveDateFormat: import('vue').ComputedRef<DateFormatConfig>;
24
+ separator: import('vue').ComputedRef<"." | "-" | "/">;
25
+ timezone: Readonly<Ref<string, string>>;
26
+ isOpen: Ref<boolean, boolean>;
27
+ open: () => void;
28
+ close: () => void;
29
+ toggle: () => void;
30
+ };
31
+ activeMonth: Ref<{
32
+ readonly era: string | undefined;
33
+ readonly eraYear: number | undefined;
34
+ readonly year: number;
35
+ readonly month: number;
36
+ readonly monthCode: string;
37
+ readonly calendarId: string;
38
+ readonly daysInMonth: number;
39
+ readonly daysInYear: number;
40
+ readonly monthsInYear: number;
41
+ readonly inLeapYear: boolean;
42
+ equals: (other: Temporal.PlainYearMonth | Temporal.PlainYearMonthLike | string) => boolean;
43
+ with: (yearMonthLike: Temporal.PlainYearMonthLike, options?: Temporal.AssignmentOptions) => Temporal.PlainYearMonth;
44
+ add: (durationLike: Temporal.Duration | Temporal.DurationLike | string, options?: Temporal.ArithmeticOptions) => Temporal.PlainYearMonth;
45
+ subtract: (durationLike: Temporal.Duration | Temporal.DurationLike | string, options?: Temporal.ArithmeticOptions) => Temporal.PlainYearMonth;
46
+ until: (other: Temporal.PlainYearMonth | Temporal.PlainYearMonthLike | string, options?: Temporal.DifferenceOptions<"year" | "month">) => Temporal.Duration;
47
+ since: (other: Temporal.PlainYearMonth | Temporal.PlainYearMonthLike | string, options?: Temporal.DifferenceOptions<"year" | "month">) => Temporal.Duration;
48
+ toPlainDate: (day: {
49
+ day: number;
50
+ }) => Temporal.PlainDate;
51
+ toLocaleString: (locales?: Temporal.LocalesArgument, options?: globalThis.Intl.DateTimeFormatOptions) => string;
52
+ toJSON: () => string;
53
+ toString: (options?: Temporal.ShowCalendarOption) => string;
54
+ valueOf: () => never;
55
+ readonly [Symbol.toStringTag]: "Temporal.PlainYearMonth";
56
+ }, Temporal.PlainYearMonth | {
57
+ readonly era: string | undefined;
58
+ readonly eraYear: number | undefined;
59
+ readonly year: number;
60
+ readonly month: number;
61
+ readonly monthCode: string;
62
+ readonly calendarId: string;
63
+ readonly daysInMonth: number;
64
+ readonly daysInYear: number;
65
+ readonly monthsInYear: number;
66
+ readonly inLeapYear: boolean;
67
+ equals: (other: Temporal.PlainYearMonth | Temporal.PlainYearMonthLike | string) => boolean;
68
+ with: (yearMonthLike: Temporal.PlainYearMonthLike, options?: Temporal.AssignmentOptions) => Temporal.PlainYearMonth;
69
+ add: (durationLike: Temporal.Duration | Temporal.DurationLike | string, options?: Temporal.ArithmeticOptions) => Temporal.PlainYearMonth;
70
+ subtract: (durationLike: Temporal.Duration | Temporal.DurationLike | string, options?: Temporal.ArithmeticOptions) => Temporal.PlainYearMonth;
71
+ until: (other: Temporal.PlainYearMonth | Temporal.PlainYearMonthLike | string, options?: Temporal.DifferenceOptions<"year" | "month">) => Temporal.Duration;
72
+ since: (other: Temporal.PlainYearMonth | Temporal.PlainYearMonthLike | string, options?: Temporal.DifferenceOptions<"year" | "month">) => Temporal.Duration;
73
+ toPlainDate: (day: {
74
+ day: number;
75
+ }) => Temporal.PlainDate;
76
+ toLocaleString: (locales?: Temporal.LocalesArgument, options?: globalThis.Intl.DateTimeFormatOptions) => string;
77
+ toJSON: () => string;
78
+ toString: (options?: Temporal.ShowCalendarOption) => string;
79
+ valueOf: () => never;
80
+ readonly [Symbol.toStringTag]: "Temporal.PlainYearMonth";
81
+ }>;
82
+ pendingTime: Ref<{
83
+ readonly hours: number;
84
+ readonly minutes: number;
85
+ } | null, CoarTimeValue | {
86
+ readonly hours: number;
87
+ readonly minutes: number;
88
+ } | null>;
89
+ displayTimeZone: Ref<string | null, string | null>;
90
+ displayValue: Ref<string, string>;
91
+ userTimeZone: import('vue').ComputedRef<string>;
92
+ valueTimeZone: import('vue').ComputedRef<string | null>;
93
+ effectiveDisplayTimeZone: import('vue').ComputedRef<string>;
94
+ effectiveDefaultTimeZone: import('vue').ComputedRef<string>;
95
+ locationDiffersFromUser: import('vue').ComputedRef<boolean>;
96
+ timeZonesDiffer: import('vue').ComputedRef<boolean>;
97
+ timezoneIndicatorState: import('vue').ComputedRef<"home" | "location" | "world">;
98
+ timezoneIndicatorClickable: import('vue').ComputedRef<boolean>;
99
+ currentTimeZoneDisplayName: import('vue').ComputedRef<string>;
100
+ valueTimeZoneLabel: import('vue').ComputedRef<string>;
101
+ allTimezones: string[];
102
+ effectiveUse24Hour: import('vue').ComputedRef<boolean>;
103
+ inputPlaceholder: import('vue').ComputedRef<string>;
104
+ workingTimeZone: import('vue').ComputedRef<string>;
105
+ valueInWorkingTz: import('vue').ComputedRef<Temporal.ZonedDateTime | null>;
106
+ selectedDate: import('vue').ComputedRef<Temporal.PlainDate | null>;
107
+ selectedTime: import('vue').ComputedRef<CoarTimeValue | null>;
108
+ minDate: import('vue').ComputedRef<Temporal.PlainDate | null>;
109
+ maxDate: import('vue').ComputedRef<Temporal.PlainDate | null>;
110
+ effectiveMinTime: import('vue').ComputedRef<CoarTimeValue | null>;
111
+ effectiveMaxTime: import('vue').ComputedRef<CoarTimeValue | null>;
112
+ isPrevYearDisabled: import('vue').ComputedRef<boolean>;
113
+ isNextYearDisabled: import('vue').ComputedRef<boolean>;
114
+ today: import('vue').ComputedRef<Temporal.PlainDate>;
115
+ formatValue: (val: Temporal.ZonedDateTime) => string;
116
+ formatValueInValueTz: () => string;
117
+ parseValueFromInput: (text: string) => Temporal.ZonedDateTime | null;
118
+ selectDate: (date: Temporal.PlainDate) => void;
119
+ changeTime: (time: CoarTimeValue | null) => void;
120
+ selectMonth: (month: Temporal.PlainYearMonth) => void;
121
+ previousYear: () => void;
122
+ nextYear: () => void;
123
+ scrollToTodayMonth: () => void;
124
+ selectDisplayTimezone: (tzId: string) => void;
125
+ changeValueTimezone: (newTzId: string) => void;
126
+ toggleDisplayTimezone: () => void;
127
+ clearValue: () => void;
128
+ changeInput: (text: string) => void;
129
+ blurInput: () => void;
130
+ };
131
+ export {};
132
+ //# sourceMappingURL=use-zoned-date-time-picker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-zoned-date-time-picker.d.ts","sourceRoot":"","sources":["../../../../src/components/date-time/_shared/use-zoned-date-time-picker.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,KAAK,GAAG,EAAE,MAAM,KAAK,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAUjD,OAAO,KAAK,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE/D,UAAU,0BAA0B;IAClC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,UAAU,CAAC,EAAE,gBAAgB,CAAC;IACvC,QAAQ,CAAC,GAAG,EAAE,QAAQ,CAAC,aAAa,GAAG,IAAI,CAAC;IAC5C,QAAQ,CAAC,GAAG,EAAE,QAAQ,CAAC,aAAa,GAAG,IAAI,CAAC;IAC5C,QAAQ,CAAC,SAAS,EAAE,OAAO,GAAG,MAAM,CAAC;IACrC,QAAQ,CAAC,UAAU,EAAE,CAAC,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,CAAC;IACrC,QAAQ,CAAC,WAAW,EAAE,aAAa,CAAC;IACpC,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;CAClC;AAED;;;;GAIG;AACH,wBAAgB,sBAAsB,CACpC,UAAU,EAAE,GAAG,CAAC,QAAQ,CAAC,aAAa,GAAG,IAAI,CAAC,EAC9C,KAAK,EAAE,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBA2FP,QAAQ,CAAC,aAAa,KAAG,MAAM;gCAOxB,MAAM;gCAOJ,MAAM,KAAG,QAAQ,CAAC,aAAa,GAAG,IAAI;uBAwC/C,QAAQ,CAAC,SAAS;uBAKlB,aAAa,GAAG,IAAI;yBAMlB,QAAQ,CAAC,cAAc;;;;kCAgBd,MAAM;mCAIL,MAAM;;;wBAoBjB,MAAM;;EA2BlC"}
@@ -1,5 +1,6 @@
1
1
  import { nextTick } from 'vue';
2
2
  import { Temporal } from '@js-temporal/polyfill';
3
+ import { CoarInputAppearance, CoarInputWidth } from '../../input-frame/types';
3
4
  import { DateFormatConfig, CoarDateMarker } from '../_shared/types';
4
5
  export type CoarPlainDatePickerSize = 'xs' | 's' | 'm' | 'l';
5
6
  type __VLS_Props = {
@@ -7,6 +8,10 @@ type __VLS_Props = {
7
8
  placeholder?: string;
8
9
  /** Size variant */
9
10
  size?: CoarPlainDatePickerSize;
11
+ /** `inline`: no border or surface until hovered or edited (Preview) */
12
+ appearance?: CoarInputAppearance;
13
+ /** `content`: as wide as the shown value or placeholder (Preview) */
14
+ width?: CoarInputWidth;
10
15
  /** Disabled state */
11
16
  disabled?: boolean;
12
17
  /** Readonly state */
@@ -55,6 +60,8 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {},
55
60
  onOpened?: (() => any) | undefined;
56
61
  }>, {
57
62
  error: boolean;
63
+ appearance: CoarInputAppearance;
64
+ width: CoarInputWidth;
58
65
  id: string;
59
66
  size: CoarPlainDatePickerSize;
60
67
  required: boolean;
@@ -82,8 +89,10 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {},
82
89
  readonly readonly?: boolean | undefined;
83
90
  readonly mobileSizing?: boolean | undefined;
84
91
  readonly active?: boolean | undefined;
85
- readonly borderless?: boolean | undefined;
92
+ readonly appearance?: CoarInputAppearance | undefined;
86
93
  readonly multiline?: boolean | undefined;
94
+ readonly segmentStart?: boolean | undefined;
95
+ readonly segmentEnd?: boolean | undefined;
87
96
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
88
97
  $attrs: import('vue').Attrs;
89
98
  $refs: {
@@ -104,17 +113,21 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {},
104
113
  readonly?: boolean;
105
114
  mobileSizing?: boolean;
106
115
  active?: boolean;
107
- borderless?: boolean;
116
+ appearance?: CoarInputAppearance;
108
117
  multiline?: boolean;
118
+ segmentStart?: boolean;
119
+ segmentEnd?: boolean;
109
120
  }> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
110
121
  error: boolean;
122
+ appearance: CoarInputAppearance;
111
123
  size: "xs" | "s" | "m" | "l";
112
124
  disabled: boolean;
113
- borderless: boolean;
114
125
  readonly: boolean;
115
126
  mobileSizing: boolean;
116
127
  active: boolean;
117
128
  multiline: boolean;
129
+ segmentStart: boolean;
130
+ segmentEnd: boolean;
118
131
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
119
132
  beforeCreate?: (() => void) | (() => void)[];
120
133
  created?: (() => void) | (() => void)[];
@@ -137,13 +150,15 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {},
137
150
  $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
138
151
  } & Readonly<{
139
152
  error: boolean;
153
+ appearance: CoarInputAppearance;
140
154
  size: "xs" | "s" | "m" | "l";
141
155
  disabled: boolean;
142
- borderless: boolean;
143
156
  readonly: boolean;
144
157
  mobileSizing: boolean;
145
158
  active: boolean;
146
159
  multiline: boolean;
160
+ segmentStart: boolean;
161
+ segmentEnd: boolean;
147
162
  }> & Omit<Readonly<{
148
163
  size?: "xs" | "s" | "m" | "l";
149
164
  error?: boolean;
@@ -151,9 +166,11 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {},
151
166
  readonly?: boolean;
152
167
  mobileSizing?: boolean;
153
168
  active?: boolean;
154
- borderless?: boolean;
169
+ appearance?: CoarInputAppearance;
155
170
  multiline?: boolean;
156
- }> & Readonly<{}>, "error" | "size" | "disabled" | "borderless" | "readonly" | "mobileSizing" | "active" | "multiline"> & {} & import('vue').ComponentCustomProperties & {} & {
171
+ segmentStart?: boolean;
172
+ segmentEnd?: boolean;
173
+ }> & Readonly<{}>, "error" | "appearance" | "size" | "disabled" | "readonly" | "mobileSizing" | "active" | "multiline" | "segmentStart" | "segmentEnd"> & {} & import('vue').ComponentCustomProperties & {} & {
157
174
  $slots: {
158
175
  leading?(_: {}): any;
159
176
  default?(_: {}): any;