nuance-ui 0.1.38 → 0.1.39
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.
- package/dist/module.json +1 -1
- package/dist/runtime/components/action-icon/action-icon-group.d.vue.ts +2 -2
- package/dist/runtime/components/action-icon/action-icon-group.vue.d.ts +2 -2
- package/dist/runtime/components/action-icon/action-icon-section.d.vue.ts +2 -2
- package/dist/runtime/components/action-icon/action-icon-section.vue.d.ts +2 -2
- package/dist/runtime/components/action-icon/action-icon.d.vue.ts +2 -2
- package/dist/runtime/components/action-icon/action-icon.vue.d.ts +2 -2
- package/dist/runtime/components/alert.d.vue.ts +3 -3
- package/dist/runtime/components/alert.vue.d.ts +3 -3
- package/dist/runtime/components/app-shell/app-shell-aside.d.vue.ts +2 -2
- package/dist/runtime/components/app-shell/app-shell-aside.vue.d.ts +2 -2
- package/dist/runtime/components/app-shell/app-shell-footer.d.vue.ts +2 -2
- package/dist/runtime/components/app-shell/app-shell-footer.vue.d.ts +2 -2
- package/dist/runtime/components/app-shell/app-shell-header.d.vue.ts +2 -2
- package/dist/runtime/components/app-shell/app-shell-header.vue.d.ts +2 -2
- package/dist/runtime/components/app-shell/app-shell-main.d.vue.ts +2 -2
- package/dist/runtime/components/app-shell/app-shell-main.vue.d.ts +2 -2
- package/dist/runtime/components/app-shell/app-shell-navbar.d.vue.ts +2 -2
- package/dist/runtime/components/app-shell/app-shell-navbar.vue.d.ts +2 -2
- package/dist/runtime/components/app-shell/app-shell-section.d.vue.ts +2 -2
- package/dist/runtime/components/app-shell/app-shell-section.vue.d.ts +2 -2
- package/dist/runtime/components/app-shell/app-shell.d.vue.ts +2 -2
- package/dist/runtime/components/app-shell/app-shell.vue.d.ts +2 -2
- package/dist/runtime/components/avatar/avatar-group.d.vue.ts +2 -2
- package/dist/runtime/components/avatar/avatar-group.vue.d.ts +2 -2
- package/dist/runtime/components/avatar/avatar.d.vue.ts +2 -2
- package/dist/runtime/components/avatar/avatar.vue.d.ts +2 -2
- package/dist/runtime/components/badge.d.vue.ts +4 -4
- package/dist/runtime/components/badge.vue +45 -24
- package/dist/runtime/components/badge.vue.d.ts +4 -4
- package/dist/runtime/components/box.d.vue.ts +2 -2
- package/dist/runtime/components/box.vue.d.ts +2 -2
- package/dist/runtime/components/breadcrumbs.d.vue.ts +4 -4
- package/dist/runtime/components/breadcrumbs.vue.d.ts +4 -4
- package/dist/runtime/components/button/button-group.d.vue.ts +2 -2
- package/dist/runtime/components/button/button-group.vue.d.ts +2 -2
- package/dist/runtime/components/button/button.d.vue.ts +8 -8
- package/dist/runtime/components/button/button.module.css +1 -1
- package/dist/runtime/components/button/button.vue.d.ts +8 -8
- package/dist/runtime/components/button/unstyled-button.d.vue.ts +2 -2
- package/dist/runtime/components/button/unstyled-button.vue +2 -2
- package/dist/runtime/components/button/unstyled-button.vue.d.ts +2 -2
- package/dist/runtime/components/calendar/calendar.d.vue.ts +20 -8
- package/dist/runtime/components/calendar/calendar.vue +1 -1
- package/dist/runtime/components/calendar/calendar.vue.d.ts +20 -8
- package/dist/runtime/components/calendar/lib/context.d.ts +1 -1
- package/dist/runtime/components/calendar/lib/use-calendar-selection.js +5 -4
- package/dist/runtime/components/calendar/model.d.ts +3 -2
- package/dist/runtime/components/calendar/ui/core/calendar-cell.d.vue.ts +2 -2
- package/dist/runtime/components/calendar/ui/core/calendar-cell.vue +22 -13
- package/dist/runtime/components/calendar/ui/core/calendar-cell.vue.d.ts +2 -2
- package/dist/runtime/components/calendar/ui/core/calendar-header.d.vue.ts +2 -2
- package/dist/runtime/components/calendar/ui/core/calendar-header.vue +22 -17
- package/dist/runtime/components/calendar/ui/core/calendar-header.vue.d.ts +2 -2
- package/dist/runtime/components/calendar/ui/core/calendar-root.d.vue.ts +19 -9
- package/dist/runtime/components/calendar/ui/core/calendar-root.vue +6 -7
- package/dist/runtime/components/calendar/ui/core/calendar-root.vue.d.ts +19 -9
- package/dist/runtime/components/calendar/ui/levels/calendar-decade.d.vue.ts +1 -1
- package/dist/runtime/components/calendar/ui/levels/calendar-decade.vue.d.ts +1 -1
- package/dist/runtime/components/calendar/ui/levels/calendar-month.d.vue.ts +3 -3
- package/dist/runtime/components/calendar/ui/levels/calendar-month.vue +9 -16
- package/dist/runtime/components/calendar/ui/levels/calendar-month.vue.d.ts +3 -3
- package/dist/runtime/components/calendar/ui/levels/calendar-year.d.vue.ts +1 -1
- package/dist/runtime/components/calendar/ui/levels/calendar-year.vue +9 -5
- package/dist/runtime/components/calendar/ui/levels/calendar-year.vue.d.ts +1 -1
- package/dist/runtime/components/card/card-section.d.vue.ts +2 -2
- package/dist/runtime/components/card/card-section.vue.d.ts +2 -2
- package/dist/runtime/components/card/card.d.vue.ts +2 -2
- package/dist/runtime/components/card/card.vue.d.ts +2 -2
- package/dist/runtime/components/checkbox/checkbox-card.d.vue.ts +2 -2
- package/dist/runtime/components/checkbox/checkbox-card.vue.d.ts +2 -2
- package/dist/runtime/components/checkbox/checkbox-group.d.vue.ts +5 -5
- package/dist/runtime/components/checkbox/checkbox-group.vue.d.ts +5 -5
- package/dist/runtime/components/checkbox/checkbox-indicator.d.vue.ts +2 -2
- package/dist/runtime/components/checkbox/checkbox-indicator.vue.d.ts +2 -2
- package/dist/runtime/components/checkbox/checkbox.d.vue.ts +2 -2
- package/dist/runtime/components/checkbox/checkbox.vue.d.ts +2 -2
- package/dist/runtime/components/chip/chip-group.d.vue.ts +10 -6
- package/dist/runtime/components/chip/chip-group.vue.d.ts +10 -6
- package/dist/runtime/components/chip/chip.d.vue.ts +2 -2
- package/dist/runtime/components/chip/chip.vue.d.ts +2 -2
- package/dist/runtime/components/combobox/combobox-dropdown.d.vue.ts +2 -2
- package/dist/runtime/components/combobox/combobox-dropdown.vue.d.ts +2 -2
- package/dist/runtime/components/combobox/combobox-empty.d.vue.ts +2 -2
- package/dist/runtime/components/combobox/combobox-empty.vue.d.ts +2 -2
- package/dist/runtime/components/combobox/combobox-group.d.vue.ts +10 -6
- package/dist/runtime/components/combobox/combobox-group.vue.d.ts +10 -6
- package/dist/runtime/components/combobox/combobox-option-list.d.vue.ts +2 -2
- package/dist/runtime/components/combobox/combobox-option-list.vue.d.ts +2 -2
- package/dist/runtime/components/combobox/combobox-option.d.vue.ts +8 -4
- package/dist/runtime/components/combobox/combobox-option.vue.d.ts +8 -4
- package/dist/runtime/components/combobox/combobox-options-dropdown.d.vue.ts +10 -7
- package/dist/runtime/components/combobox/combobox-options-dropdown.vue +1 -3
- package/dist/runtime/components/combobox/combobox-options-dropdown.vue.d.ts +10 -7
- package/dist/runtime/components/combobox/combobox-root.d.vue.ts +2 -2
- package/dist/runtime/components/combobox/combobox-root.vue +2 -2
- package/dist/runtime/components/combobox/combobox-root.vue.d.ts +2 -2
- package/dist/runtime/components/combobox/combobox-target.d.vue.ts +2 -2
- package/dist/runtime/components/combobox/combobox-target.vue +1 -1
- package/dist/runtime/components/combobox/combobox-target.vue.d.ts +2 -2
- package/dist/runtime/components/container.d.vue.ts +2 -2
- package/dist/runtime/components/container.vue.d.ts +2 -2
- package/dist/runtime/components/date-time-picker.d.vue.ts +47 -0
- package/dist/runtime/components/date-time-picker.vue +151 -0
- package/dist/runtime/components/date-time-picker.vue.d.ts +47 -0
- package/dist/runtime/components/dialog/index.d.ts +4 -4
- package/dist/runtime/components/dialog/{dialog-close-button.d.vue.ts → ui/dialog-close-button.d.vue.ts} +3 -3
- package/dist/runtime/components/dialog/{dialog-close-button.vue → ui/dialog-close-button.vue} +2 -2
- package/dist/runtime/components/dialog/{dialog-close-button.vue.d.ts → ui/dialog-close-button.vue.d.ts} +3 -3
- package/dist/runtime/components/dialog/{dialog-header.d.vue.ts → ui/dialog-header.d.vue.ts} +3 -3
- package/dist/runtime/components/dialog/{dialog-header.vue → ui/dialog-header.vue} +1 -1
- package/dist/runtime/components/dialog/{dialog-header.vue.d.ts → ui/dialog-header.vue.d.ts} +3 -3
- package/dist/runtime/components/dialog/{dialog-root.d.vue.ts → ui/dialog-root.d.vue.ts} +5 -5
- package/dist/runtime/components/dialog/{dialog-root.vue → ui/dialog-root.vue} +5 -5
- package/dist/runtime/components/dialog/{dialog-root.vue.d.ts → ui/dialog-root.vue.d.ts} +5 -5
- package/dist/runtime/components/dialog/{dialog-title.d.vue.ts → ui/dialog-title.d.vue.ts} +3 -3
- package/dist/runtime/components/dialog/{dialog-title.vue → ui/dialog-title.vue} +2 -2
- package/dist/runtime/components/dialog/{dialog-title.vue.d.ts → ui/dialog-title.vue.d.ts} +3 -3
- package/dist/runtime/components/dialog/ui/dialog.module.css +1 -0
- package/dist/runtime/components/drawer/drawer-close-button.d.vue.ts +2 -2
- package/dist/runtime/components/drawer/drawer-close-button.vue +1 -1
- package/dist/runtime/components/drawer/drawer-close-button.vue.d.ts +2 -2
- package/dist/runtime/components/drawer/drawer-header.d.vue.ts +2 -2
- package/dist/runtime/components/drawer/drawer-header.vue +1 -1
- package/dist/runtime/components/drawer/drawer-header.vue.d.ts +2 -2
- package/dist/runtime/components/drawer/drawer-root.d.vue.ts +2 -2
- package/dist/runtime/components/drawer/drawer-root.vue +3 -3
- package/dist/runtime/components/drawer/drawer-root.vue.d.ts +2 -2
- package/dist/runtime/components/drawer/drawer-title.d.vue.ts +2 -2
- package/dist/runtime/components/drawer/drawer-title.vue +2 -2
- package/dist/runtime/components/drawer/drawer-title.vue.d.ts +2 -2
- package/dist/runtime/components/drawer/drawer.module.css +1 -1
- package/dist/runtime/components/file-upload.d.vue.ts +9 -5
- package/dist/runtime/components/file-upload.vue.d.ts +9 -5
- package/dist/runtime/components/index.d.ts +1 -0
- package/dist/runtime/components/input/date-picker.d.vue.ts +44 -0
- package/dist/runtime/components/input/date-picker.vue +174 -0
- package/dist/runtime/components/input/date-picker.vue.d.ts +44 -0
- package/dist/runtime/components/input/email-input.d.vue.ts +6 -6
- package/dist/runtime/components/input/email-input.vue +9 -5
- package/dist/runtime/components/input/email-input.vue.d.ts +6 -6
- package/dist/runtime/components/input/index.d.ts +2 -1
- package/dist/runtime/components/input/lib/input-wrapper.context.d.ts +2 -2
- package/dist/runtime/components/input/lib/input-wrapper.context.js +1 -2
- package/dist/runtime/components/input/number-input.d.vue.ts +5 -5
- package/dist/runtime/components/input/number-input.vue +19 -18
- package/dist/runtime/components/input/number-input.vue.d.ts +5 -5
- package/dist/runtime/components/input/password-input.d.vue.ts +6 -6
- package/dist/runtime/components/input/password-input.vue +8 -1
- package/dist/runtime/components/input/password-input.vue.d.ts +6 -6
- package/dist/runtime/components/input/text-input.d.vue.ts +21 -11
- package/dist/runtime/components/input/text-input.vue +34 -15
- package/dist/runtime/components/input/text-input.vue.d.ts +21 -11
- package/dist/runtime/components/input/types/index.d.ts +2 -0
- package/dist/runtime/components/input/ui/button-input.d.vue.ts +42 -0
- package/dist/runtime/components/input/ui/button-input.vue +103 -0
- package/dist/runtime/components/input/ui/button-input.vue.d.ts +42 -0
- package/dist/runtime/components/input/ui/input-base.d.vue.ts +11 -63
- package/dist/runtime/components/input/ui/input-base.vue +55 -78
- package/dist/runtime/components/input/ui/input-base.vue.d.ts +11 -63
- package/dist/runtime/components/input/ui/input-inline.d.vue.ts +5 -5
- package/dist/runtime/components/input/ui/input-inline.vue +2 -6
- package/dist/runtime/components/input/ui/input-inline.vue.d.ts +5 -5
- package/dist/runtime/components/input/ui/input-label.vue +2 -5
- package/dist/runtime/components/input/ui/input-wrapper.d.vue.ts +5 -5
- package/dist/runtime/components/input/ui/input-wrapper.vue +11 -5
- package/dist/runtime/components/input/ui/input-wrapper.vue.d.ts +5 -5
- package/dist/runtime/components/input/ui/spin-input.d.vue.ts +25 -0
- package/dist/runtime/components/input/ui/spin-input.vue +155 -0
- package/dist/runtime/components/input/ui/spin-input.vue.d.ts +25 -0
- package/dist/runtime/components/link/link-button.d.vue.ts +4 -4
- package/dist/runtime/components/link/link-button.vue.d.ts +4 -4
- package/dist/runtime/components/link/link.d.vue.ts +2 -2
- package/dist/runtime/components/link/link.vue +1 -1
- package/dist/runtime/components/link/link.vue.d.ts +2 -2
- package/dist/runtime/components/modal/modal-close-button.d.vue.ts +2 -2
- package/dist/runtime/components/modal/modal-close-button.vue +1 -1
- package/dist/runtime/components/modal/modal-close-button.vue.d.ts +2 -2
- package/dist/runtime/components/modal/modal-header.d.vue.ts +2 -2
- package/dist/runtime/components/modal/modal-header.vue +1 -1
- package/dist/runtime/components/modal/modal-header.vue.d.ts +2 -2
- package/dist/runtime/components/modal/modal-root.d.vue.ts +2 -2
- package/dist/runtime/components/modal/modal-root.vue +3 -3
- package/dist/runtime/components/modal/modal-root.vue.d.ts +2 -2
- package/dist/runtime/components/modal/modal-title.d.vue.ts +2 -2
- package/dist/runtime/components/modal/modal-title.vue +2 -2
- package/dist/runtime/components/modal/modal-title.vue.d.ts +2 -2
- package/dist/runtime/components/nav-link/nav-icon-link.d.vue.ts +2 -2
- package/dist/runtime/components/nav-link/nav-icon-link.vue.d.ts +2 -2
- package/dist/runtime/components/nav-link/nav-link.d.vue.ts +5 -5
- package/dist/runtime/components/nav-link/nav-link.vue.d.ts +5 -5
- package/dist/runtime/components/paper.d.vue.ts +2 -2
- package/dist/runtime/components/paper.vue.d.ts +2 -2
- package/dist/runtime/components/popover/lib/use-popover.d.ts +1 -0
- package/dist/runtime/components/popover/lib/use-popover.js +2 -1
- package/dist/runtime/components/popover/popover-dropdown.vue +2 -0
- package/dist/runtime/components/popover/popover-target.d.vue.ts +7 -3
- package/dist/runtime/components/popover/popover-target.vue +10 -2
- package/dist/runtime/components/popover/popover-target.vue.d.ts +7 -3
- package/dist/runtime/components/popover/popover.vue +1 -1
- package/dist/runtime/components/progress/progress-label.d.vue.ts +2 -2
- package/dist/runtime/components/progress/progress-label.vue.d.ts +2 -2
- package/dist/runtime/components/progress/progress-root.d.vue.ts +2 -2
- package/dist/runtime/components/progress/progress-root.vue.d.ts +2 -2
- package/dist/runtime/components/progress/progress-section.d.vue.ts +2 -2
- package/dist/runtime/components/progress/progress-section.vue.d.ts +2 -2
- package/dist/runtime/components/renderless/renderless.d.vue.ts +2 -2
- package/dist/runtime/components/renderless/renderless.vue.d.ts +2 -2
- package/dist/runtime/components/roving-focus/roving-focus-item.d.vue.ts +2 -2
- package/dist/runtime/components/roving-focus/roving-focus-item.vue.d.ts +2 -2
- package/dist/runtime/components/roving-focus/roving-focus.d.vue.ts +2 -2
- package/dist/runtime/components/roving-focus/roving-focus.vue.d.ts +2 -2
- package/dist/runtime/components/select/select.d.vue.ts +12 -8
- package/dist/runtime/components/select/select.vue +9 -11
- package/dist/runtime/components/select/select.vue.d.ts +12 -8
- package/dist/runtime/components/table/table.d.vue.ts +10 -6
- package/dist/runtime/components/table/table.vue +1 -1
- package/dist/runtime/components/table/table.vue.d.ts +10 -6
- package/dist/runtime/components/tabs/tabs-list.d.vue.ts +2 -2
- package/dist/runtime/components/tabs/tabs-list.vue +1 -1
- package/dist/runtime/components/tabs/tabs-list.vue.d.ts +2 -2
- package/dist/runtime/components/tabs/tabs-panel.d.vue.ts +2 -2
- package/dist/runtime/components/tabs/tabs-panel.vue.d.ts +2 -2
- package/dist/runtime/components/tabs/tabs-root.d.vue.ts +2 -2
- package/dist/runtime/components/tabs/tabs-root.vue.d.ts +2 -2
- package/dist/runtime/components/tabs/tabs-tab.d.vue.ts +4 -4
- package/dist/runtime/components/tabs/tabs-tab.vue.d.ts +4 -4
- package/dist/runtime/components/text.d.vue.ts +2 -2
- package/dist/runtime/components/text.vue +1 -1
- package/dist/runtime/components/text.vue.d.ts +2 -2
- package/dist/runtime/components/textarea.d.vue.ts +11 -9
- package/dist/runtime/components/textarea.vue +42 -30
- package/dist/runtime/components/textarea.vue.d.ts +11 -9
- package/dist/runtime/components/time-picker/index.d.ts +6 -0
- package/dist/runtime/components/time-picker/index.js +5 -0
- package/dist/runtime/components/time-picker/lib/clamp-time.d.ts +13 -0
- package/dist/runtime/components/time-picker/lib/clamp-time.js +23 -0
- package/dist/runtime/components/time-picker/lib/get-parsed-time.d.ts +16 -0
- package/dist/runtime/components/time-picker/lib/get-parsed-time.js +26 -0
- package/dist/runtime/components/time-picker/lib/get-time-string.d.ts +13 -0
- package/dist/runtime/components/time-picker/lib/get-time-string.js +41 -0
- package/dist/runtime/components/time-picker/lib/pad-time.d.ts +1 -0
- package/dist/runtime/components/time-picker/lib/pad-time.js +3 -0
- package/dist/runtime/components/time-picker/lib/split-time-string.d.ts +5 -0
- package/dist/runtime/components/time-picker/lib/split-time-string.js +4 -0
- package/dist/runtime/components/time-picker/lib/use-time-picker.d.ts +29 -0
- package/dist/runtime/components/time-picker/lib/use-time-picker.js +103 -0
- package/dist/runtime/components/time-picker/model.d.ts +17 -0
- package/dist/runtime/components/time-picker/model.js +0 -0
- package/dist/runtime/components/time-picker/time-picker.d.vue.ts +88 -0
- package/dist/runtime/components/time-picker/time-picker.vue +313 -0
- package/dist/runtime/components/time-picker/time-picker.vue.d.ts +88 -0
- package/dist/runtime/components/title.d.vue.ts +2 -2
- package/dist/runtime/components/title.vue +1 -1
- package/dist/runtime/components/title.vue.d.ts +2 -2
- package/dist/runtime/components/tree/_ui/tree-root.d.vue.ts +2 -2
- package/dist/runtime/components/tree/_ui/tree-root.vue.d.ts +2 -2
- package/dist/runtime/components/visually-hidden/visually-hidden-input.d.vue.ts +10 -6
- package/dist/runtime/components/visually-hidden/visually-hidden-input.vue.d.ts +10 -6
- package/dist/runtime/components/visually-hidden/visually-hidden.d.vue.ts +2 -2
- package/dist/runtime/components/visually-hidden/visually-hidden.vue.d.ts +2 -2
- package/dist/runtime/composals/use-date-config.d.ts +11 -1
- package/dist/runtime/composals/use-date-config.js +8 -5
- package/dist/runtime/helpers/date/create-months.d.ts +1 -7
- package/dist/runtime/helpers/date/create-months.js +1 -1
- package/dist/runtime/helpers/date/get-days-between.js +4 -1
- package/dist/runtime/types/index.d.ts +1 -1
- package/package.json +18 -18
- package/dist/runtime/components/dialog/dialog.module.css +0 -1
- package/dist/runtime/components/input/input.d.vue.ts +0 -38
- package/dist/runtime/components/input/input.vue +0 -47
- package/dist/runtime/components/input/input.vue.d.ts +0 -38
- /package/dist/runtime/components/dialog/{types/index.d.ts → model.d.ts} +0 -0
- /package/dist/runtime/components/dialog/{types/index.js → model.js} +0 -0
|
@@ -3,9 +3,9 @@ export interface ComboboxOptionListProps extends BoxProps {
|
|
|
3
3
|
/** Id of the element that labels the options list */
|
|
4
4
|
labelledBy?: string;
|
|
5
5
|
}
|
|
6
|
-
declare var
|
|
6
|
+
declare var __VLS_8: {};
|
|
7
7
|
type __VLS_Slots = {} & {
|
|
8
|
-
default?: (props: typeof
|
|
8
|
+
default?: (props: typeof __VLS_8) => any;
|
|
9
9
|
};
|
|
10
10
|
declare const __VLS_base: import("vue").DefineComponent<ComboboxOptionListProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ComboboxOptionListProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
11
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -3,9 +3,9 @@ export interface ComboboxOptionListProps extends BoxProps {
|
|
|
3
3
|
/** Id of the element that labels the options list */
|
|
4
4
|
labelledBy?: string;
|
|
5
5
|
}
|
|
6
|
-
declare var
|
|
6
|
+
declare var __VLS_8: {};
|
|
7
7
|
type __VLS_Slots = {} & {
|
|
8
|
-
default?: (props: typeof
|
|
8
|
+
default?: (props: typeof __VLS_8) => any;
|
|
9
9
|
};
|
|
10
10
|
declare const __VLS_base: import("vue").DefineComponent<ComboboxOptionListProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ComboboxOptionListProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
11
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -5,8 +5,10 @@ export interface ComboboxOptionProps<Value extends string = string, Ext extends
|
|
|
5
5
|
checked: boolean;
|
|
6
6
|
selected?: boolean;
|
|
7
7
|
}
|
|
8
|
-
declare const __VLS_export: <Value extends string = string, Ext extends ComboboxItemExt = object>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>,
|
|
9
|
-
props: __VLS_PrettifyLocal<ComboboxOptionProps<Value, Ext>> &
|
|
8
|
+
declare const __VLS_export: <Value extends string = string, Ext extends ComboboxItemExt = object>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
9
|
+
props: import("vue").PublicProps & __VLS_PrettifyLocal<ComboboxOptionProps<Value, Ext>> & (typeof globalThis extends {
|
|
10
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
11
|
+
} ? P : {});
|
|
10
12
|
expose: (exposed: {}) => void;
|
|
11
13
|
attrs: any;
|
|
12
14
|
slots: {
|
|
@@ -18,6 +20,8 @@ declare const __VLS_export: <Value extends string = string, Ext extends Combobox
|
|
|
18
20
|
};
|
|
19
21
|
declare const _default: typeof __VLS_export;
|
|
20
22
|
export default _default;
|
|
21
|
-
type __VLS_PrettifyLocal<T> = {
|
|
23
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
24
|
+
[K in keyof T]: T[K];
|
|
25
|
+
} : {
|
|
22
26
|
[K in keyof T as K]: T[K];
|
|
23
|
-
} & {};
|
|
27
|
+
}) & {};
|
|
@@ -5,8 +5,10 @@ export interface ComboboxOptionProps<Value extends string = string, Ext extends
|
|
|
5
5
|
checked: boolean;
|
|
6
6
|
selected?: boolean;
|
|
7
7
|
}
|
|
8
|
-
declare const __VLS_export: <Value extends string = string, Ext extends ComboboxItemExt = object>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>,
|
|
9
|
-
props: __VLS_PrettifyLocal<ComboboxOptionProps<Value, Ext>> &
|
|
8
|
+
declare const __VLS_export: <Value extends string = string, Ext extends ComboboxItemExt = object>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
9
|
+
props: import("vue").PublicProps & __VLS_PrettifyLocal<ComboboxOptionProps<Value, Ext>> & (typeof globalThis extends {
|
|
10
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
11
|
+
} ? P : {});
|
|
10
12
|
expose: (exposed: {}) => void;
|
|
11
13
|
attrs: any;
|
|
12
14
|
slots: {
|
|
@@ -18,6 +20,8 @@ declare const __VLS_export: <Value extends string = string, Ext extends Combobox
|
|
|
18
20
|
};
|
|
19
21
|
declare const _default: typeof __VLS_export;
|
|
20
22
|
export default _default;
|
|
21
|
-
type __VLS_PrettifyLocal<T> = {
|
|
23
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
24
|
+
[K in keyof T]: T[K];
|
|
25
|
+
} : {
|
|
22
26
|
[K in keyof T as K]: T[K];
|
|
23
|
-
} & {};
|
|
27
|
+
}) & {};
|
|
@@ -10,28 +10,31 @@ export interface ComboboxOptionsDropdownProps<Value extends string = string, Ext
|
|
|
10
10
|
filterOptions?: boolean;
|
|
11
11
|
nothingFoundMessage?: string;
|
|
12
12
|
labelId: string | undefined;
|
|
13
|
-
ariaLabel: string | undefined;
|
|
14
13
|
withCheckIcon?: boolean;
|
|
15
14
|
iconPosition?: 'left' | 'right';
|
|
16
15
|
checkIcon?: string;
|
|
17
16
|
}
|
|
18
|
-
declare const __VLS_export: <Value extends string = string, Ext extends ComboboxItemExt = object>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>,
|
|
19
|
-
props: __VLS_PrettifyLocal<(ComboboxOptionsDropdownProps<Value, Ext> & {
|
|
17
|
+
declare const __VLS_export: <Value extends string = string, Ext extends ComboboxItemExt = object>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
18
|
+
props: import("vue").PublicProps & __VLS_PrettifyLocal<(ComboboxOptionsDropdownProps<Value, Ext> & {
|
|
20
19
|
search?: string | undefined;
|
|
21
20
|
modelValue?: ComboboxItem<Value, Ext> | ComboboxItem<Value, Ext>[] | null;
|
|
22
21
|
}) & {
|
|
23
22
|
"onUpdate:modelValue"?: ((value: ComboboxItem<Value, Ext> | ComboboxItem<Value, Ext>[] | null | undefined) => any) | undefined;
|
|
24
23
|
"onUpdate:search"?: ((value: string | undefined) => any) | undefined;
|
|
25
|
-
}> &
|
|
24
|
+
}> & (typeof globalThis extends {
|
|
25
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
26
|
+
} ? P : {});
|
|
26
27
|
expose: (exposed: {}) => void;
|
|
27
28
|
attrs: any;
|
|
28
29
|
slots: {};
|
|
29
|
-
emit: ((
|
|
30
|
+
emit: ((event: "update:modelValue", value: ComboboxItem<Value, Ext> | ComboboxItem<Value, Ext>[] | null | undefined) => void) & ((event: "update:search", value: string | undefined) => void);
|
|
30
31
|
}>) => import("vue").VNode & {
|
|
31
32
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
32
33
|
};
|
|
33
34
|
declare const _default: typeof __VLS_export;
|
|
34
35
|
export default _default;
|
|
35
|
-
type __VLS_PrettifyLocal<T> = {
|
|
36
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
37
|
+
[K in keyof T]: T[K];
|
|
38
|
+
} : {
|
|
36
39
|
[K in keyof T as K]: T[K];
|
|
37
|
-
} & {};
|
|
40
|
+
}) & {};
|
|
@@ -9,7 +9,6 @@ import { defaultOptionsFilter, isEmptyComboboxData, isOptionsGroup, isValueCheck
|
|
|
9
9
|
const {
|
|
10
10
|
data,
|
|
11
11
|
labelId,
|
|
12
|
-
ariaLabel,
|
|
13
12
|
nothingFoundMessage = "\u041D\u0435\u0442 \u0432\u0430\u0440\u0438\u0430\u043D\u0442\u043E\u0432",
|
|
14
13
|
withCheckIcon = true,
|
|
15
14
|
filterOptions = true,
|
|
@@ -27,7 +26,6 @@ const {
|
|
|
27
26
|
filterOptions: { type: Boolean, required: false },
|
|
28
27
|
nothingFoundMessage: { type: String, required: false },
|
|
29
28
|
labelId: { type: null, required: true },
|
|
30
|
-
ariaLabel: { type: null, required: true },
|
|
31
29
|
withCheckIcon: { type: Boolean, required: false },
|
|
32
30
|
iconPosition: { type: String, required: false },
|
|
33
31
|
checkIcon: { type: String, required: false }
|
|
@@ -44,7 +42,7 @@ const filteredData = computed(() => typeof search.value === "string" ? (filter |
|
|
|
44
42
|
|
|
45
43
|
<template>
|
|
46
44
|
<ComboboxDropdown data-composed>
|
|
47
|
-
<ComboboxOptionList :labelled-by='labelId'
|
|
45
|
+
<ComboboxOptionList :labelled-by='labelId' v-bind='$attrs'>
|
|
48
46
|
<template
|
|
49
47
|
v-for='item in filteredData'
|
|
50
48
|
:key='isOptionsGroup(item) ? item.group : item?.value'
|
|
@@ -10,28 +10,31 @@ export interface ComboboxOptionsDropdownProps<Value extends string = string, Ext
|
|
|
10
10
|
filterOptions?: boolean;
|
|
11
11
|
nothingFoundMessage?: string;
|
|
12
12
|
labelId: string | undefined;
|
|
13
|
-
ariaLabel: string | undefined;
|
|
14
13
|
withCheckIcon?: boolean;
|
|
15
14
|
iconPosition?: 'left' | 'right';
|
|
16
15
|
checkIcon?: string;
|
|
17
16
|
}
|
|
18
|
-
declare const __VLS_export: <Value extends string = string, Ext extends ComboboxItemExt = object>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>,
|
|
19
|
-
props: __VLS_PrettifyLocal<(ComboboxOptionsDropdownProps<Value, Ext> & {
|
|
17
|
+
declare const __VLS_export: <Value extends string = string, Ext extends ComboboxItemExt = object>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
18
|
+
props: import("vue").PublicProps & __VLS_PrettifyLocal<(ComboboxOptionsDropdownProps<Value, Ext> & {
|
|
20
19
|
search?: string | undefined;
|
|
21
20
|
modelValue?: ComboboxItem<Value, Ext> | ComboboxItem<Value, Ext>[] | null;
|
|
22
21
|
}) & {
|
|
23
22
|
"onUpdate:modelValue"?: ((value: ComboboxItem<Value, Ext> | ComboboxItem<Value, Ext>[] | null | undefined) => any) | undefined;
|
|
24
23
|
"onUpdate:search"?: ((value: string | undefined) => any) | undefined;
|
|
25
|
-
}> &
|
|
24
|
+
}> & (typeof globalThis extends {
|
|
25
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
26
|
+
} ? P : {});
|
|
26
27
|
expose: (exposed: {}) => void;
|
|
27
28
|
attrs: any;
|
|
28
29
|
slots: {};
|
|
29
|
-
emit: ((
|
|
30
|
+
emit: ((event: "update:modelValue", value: ComboboxItem<Value, Ext> | ComboboxItem<Value, Ext>[] | null | undefined) => void) & ((event: "update:search", value: string | undefined) => void);
|
|
30
31
|
}>) => import("vue").VNode & {
|
|
31
32
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
32
33
|
};
|
|
33
34
|
declare const _default: typeof __VLS_export;
|
|
34
35
|
export default _default;
|
|
35
|
-
type __VLS_PrettifyLocal<T> = {
|
|
36
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
37
|
+
[K in keyof T]: T[K];
|
|
38
|
+
} : {
|
|
36
39
|
[K in keyof T as K]: T[K];
|
|
37
|
-
} & {};
|
|
40
|
+
}) & {};
|
|
@@ -20,9 +20,9 @@ type __VLS_ModelProps = {
|
|
|
20
20
|
'open'?: boolean;
|
|
21
21
|
};
|
|
22
22
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
23
|
-
declare var
|
|
23
|
+
declare var __VLS_8: {};
|
|
24
24
|
type __VLS_Slots = {} & {
|
|
25
|
-
default?: (props: typeof
|
|
25
|
+
default?: (props: typeof __VLS_8) => any;
|
|
26
26
|
};
|
|
27
27
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
28
28
|
select: (args_0: number) => any;
|
|
@@ -15,12 +15,12 @@ const {
|
|
|
15
15
|
loop: { type: Boolean, required: false },
|
|
16
16
|
scrollBehavior: { type: null, required: false },
|
|
17
17
|
size: { type: String, required: false },
|
|
18
|
-
dropdownPadding: { type:
|
|
18
|
+
dropdownPadding: { type: String, required: false },
|
|
19
19
|
readOnly: { type: Boolean, required: false },
|
|
20
20
|
placement: { type: null, required: false },
|
|
21
21
|
offset: { type: [Number, Object, Function], required: false },
|
|
22
22
|
keepMounted: { type: Boolean, required: false },
|
|
23
|
-
width: { type: null, required: false },
|
|
23
|
+
width: { type: [String, null], required: false },
|
|
24
24
|
withArrow: { type: Boolean, required: false },
|
|
25
25
|
arrowSize: { type: Number, required: false },
|
|
26
26
|
arrowOffset: { type: Number, required: false },
|
|
@@ -20,9 +20,9 @@ type __VLS_ModelProps = {
|
|
|
20
20
|
'open'?: boolean;
|
|
21
21
|
};
|
|
22
22
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
23
|
-
declare var
|
|
23
|
+
declare var __VLS_8: {};
|
|
24
24
|
type __VLS_Slots = {} & {
|
|
25
|
-
default?: (props: typeof
|
|
25
|
+
default?: (props: typeof __VLS_8) => any;
|
|
26
26
|
};
|
|
27
27
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
28
28
|
select: (args_0: number) => any;
|
|
@@ -14,9 +14,9 @@ export interface ComboboxTargetProps {
|
|
|
14
14
|
/** Input autocomplete attribute */
|
|
15
15
|
autoComplete?: string;
|
|
16
16
|
}
|
|
17
|
-
declare var
|
|
17
|
+
declare var __VLS_9: {};
|
|
18
18
|
type __VLS_Slots = {} & {
|
|
19
|
-
default?: (props: typeof
|
|
19
|
+
default?: (props: typeof __VLS_9) => any;
|
|
20
20
|
};
|
|
21
21
|
declare const __VLS_base: import("vue").DefineComponent<ComboboxTargetProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ComboboxTargetProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
22
22
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -14,9 +14,9 @@ export interface ComboboxTargetProps {
|
|
|
14
14
|
/** Input autocomplete attribute */
|
|
15
15
|
autoComplete?: string;
|
|
16
16
|
}
|
|
17
|
-
declare var
|
|
17
|
+
declare var __VLS_9: {};
|
|
18
18
|
type __VLS_Slots = {} & {
|
|
19
|
-
default?: (props: typeof
|
|
19
|
+
default?: (props: typeof __VLS_9) => any;
|
|
20
20
|
};
|
|
21
21
|
declare const __VLS_base: import("vue").DefineComponent<ComboboxTargetProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ComboboxTargetProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
22
22
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -4,9 +4,9 @@ export interface ContainerProps extends BoxProps {
|
|
|
4
4
|
size?: NuanceSize | string | number;
|
|
5
5
|
fluid?: boolean;
|
|
6
6
|
}
|
|
7
|
-
declare var
|
|
7
|
+
declare var __VLS_8: {};
|
|
8
8
|
type __VLS_Slots = {} & {
|
|
9
|
-
default?: (props: typeof
|
|
9
|
+
default?: (props: typeof __VLS_8) => any;
|
|
10
10
|
};
|
|
11
11
|
declare const __VLS_base: import("vue").DefineComponent<ContainerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ContainerProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
12
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -4,9 +4,9 @@ export interface ContainerProps extends BoxProps {
|
|
|
4
4
|
size?: NuanceSize | string | number;
|
|
5
5
|
fluid?: boolean;
|
|
6
6
|
}
|
|
7
|
-
declare var
|
|
7
|
+
declare var __VLS_8: {};
|
|
8
8
|
type __VLS_Slots = {} & {
|
|
9
|
-
default?: (props: typeof
|
|
9
|
+
default?: (props: typeof __VLS_8) => any;
|
|
10
10
|
};
|
|
11
11
|
declare const __VLS_base: import("vue").DefineComponent<ContainerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ContainerProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
12
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type { Format } from '@formkit/tempo';
|
|
2
|
+
import type { CalendarProps } from './calendar/calendar.vue.js';
|
|
3
|
+
import type { ButtonInputProps } from './input/ui/button-input.vue.js';
|
|
4
|
+
import type { TimePickerProps } from './time-picker/time-picker.vue.js';
|
|
5
|
+
/**
|
|
6
|
+
* - presets
|
|
7
|
+
* - separate props for time-picker, calendar, input
|
|
8
|
+
* - clearable
|
|
9
|
+
*/
|
|
10
|
+
export interface DatePickerProps extends ButtonInputProps, Pick<TimePickerProps, 'withSeconds'> {
|
|
11
|
+
/** Tempo format for date value @default `DD.MM.YYYY HH:mm` */
|
|
12
|
+
format?: Format;
|
|
13
|
+
calendarProps?: Partial<Omit<CalendarProps, 'numberOfMonths' | 'mode'>>;
|
|
14
|
+
timePickerProps?: Omit<Partial<TimePickerProps>, 'withSeconds' | 'name'>;
|
|
15
|
+
clearable?: boolean;
|
|
16
|
+
}
|
|
17
|
+
type __VLS_Props = DatePickerProps;
|
|
18
|
+
type __VLS_ModelProps = {
|
|
19
|
+
/** ISO string */
|
|
20
|
+
modelValue?: string | Date;
|
|
21
|
+
};
|
|
22
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
23
|
+
declare var __VLS_21: {}, __VLS_29: {}, __VLS_40: {}, __VLS_43: {}, __VLS_46: {};
|
|
24
|
+
type __VLS_Slots = {} & {
|
|
25
|
+
leftSection?: (props: typeof __VLS_21) => any;
|
|
26
|
+
} & {
|
|
27
|
+
rightSection?: (props: typeof __VLS_29) => any;
|
|
28
|
+
} & {
|
|
29
|
+
label?: (props: typeof __VLS_40) => any;
|
|
30
|
+
} & {
|
|
31
|
+
error?: (props: typeof __VLS_43) => any;
|
|
32
|
+
} & {
|
|
33
|
+
description?: (props: typeof __VLS_46) => any;
|
|
34
|
+
};
|
|
35
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
36
|
+
"update:modelValue": (value: string | Date | undefined) => any;
|
|
37
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
38
|
+
"onUpdate:modelValue"?: ((value: string | Date | undefined) => any) | undefined;
|
|
39
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
40
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
41
|
+
declare const _default: typeof __VLS_export;
|
|
42
|
+
export default _default;
|
|
43
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
44
|
+
new (): {
|
|
45
|
+
$slots: S;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { format } from "@formkit/tempo";
|
|
3
|
+
import { useDatesConfig } from "@nui/composals";
|
|
4
|
+
import { computed } from "vue";
|
|
5
|
+
import ActionIcon from "./action-icon/action-icon.vue";
|
|
6
|
+
import Calendar from "./calendar/calendar.vue";
|
|
7
|
+
import ButtonInput from "./input/ui/button-input.vue";
|
|
8
|
+
import PopoverDropdown from "./popover/popover-dropdown.vue";
|
|
9
|
+
import PopoverTarget from "./popover/popover-target.vue";
|
|
10
|
+
import Popover from "./popover/popover.vue";
|
|
11
|
+
import { splitTimeString } from "./time-picker";
|
|
12
|
+
import TimePicker from "./time-picker/time-picker.vue";
|
|
13
|
+
const {
|
|
14
|
+
format: lFormat,
|
|
15
|
+
calendarProps,
|
|
16
|
+
timePickerProps,
|
|
17
|
+
rightSectionPE = "all",
|
|
18
|
+
withSeconds = false,
|
|
19
|
+
clearable = false,
|
|
20
|
+
...props
|
|
21
|
+
} = defineProps({
|
|
22
|
+
format: { type: [String, Object], required: false },
|
|
23
|
+
calendarProps: { type: Object, required: false },
|
|
24
|
+
timePickerProps: { type: Object, required: false },
|
|
25
|
+
clearable: { type: Boolean, required: false },
|
|
26
|
+
multiline: { type: Boolean, required: false },
|
|
27
|
+
name: { type: String, required: false },
|
|
28
|
+
error: { type: String, required: false },
|
|
29
|
+
description: { type: String, required: false },
|
|
30
|
+
label: { type: String, required: false },
|
|
31
|
+
required: { type: Boolean, required: false },
|
|
32
|
+
id: { type: [String, null], required: false },
|
|
33
|
+
radius: { type: String, required: false },
|
|
34
|
+
size: { type: String, required: false },
|
|
35
|
+
variant: { type: String, required: false },
|
|
36
|
+
resize: { type: void 0, required: false },
|
|
37
|
+
leftSectionPE: { type: null, required: false },
|
|
38
|
+
rightSectionPE: { type: null, required: false },
|
|
39
|
+
classes: { type: Object, required: false },
|
|
40
|
+
readonly: { type: Boolean, required: false },
|
|
41
|
+
disabled: { type: Boolean, required: false },
|
|
42
|
+
withSeconds: { type: Boolean, required: false }
|
|
43
|
+
});
|
|
44
|
+
const model = defineModel({ type: [String, Date] });
|
|
45
|
+
const date = computed({
|
|
46
|
+
get: () => model.value ? format(model.value, "YYYY-MM-DD") : "",
|
|
47
|
+
set: (value) => {
|
|
48
|
+
if (!value)
|
|
49
|
+
return model.value = "";
|
|
50
|
+
const current = model.value ? new Date(model.value) : null;
|
|
51
|
+
const newDate = new Date(value);
|
|
52
|
+
if (current) {
|
|
53
|
+
newDate.setHours(current.getHours());
|
|
54
|
+
newDate.setMinutes(current.getMinutes());
|
|
55
|
+
newDate.setSeconds(current.getSeconds());
|
|
56
|
+
newDate.setMilliseconds(current.getMilliseconds());
|
|
57
|
+
} else {
|
|
58
|
+
newDate.setHours(0, 0, 0, 0);
|
|
59
|
+
}
|
|
60
|
+
model.value = newDate.toISOString();
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
const time = computed({
|
|
64
|
+
get: () => model.value ? format(model.value, "HH:mm:ss") : "",
|
|
65
|
+
set: (value) => {
|
|
66
|
+
if (!value) {
|
|
67
|
+
if (model.value) {
|
|
68
|
+
const current = new Date(model.value);
|
|
69
|
+
current.setHours(0, 0, 0, 0);
|
|
70
|
+
model.value = current.toISOString();
|
|
71
|
+
}
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
const date2 = model.value ? new Date(model.value) : /* @__PURE__ */ new Date();
|
|
75
|
+
const { hours, minutes, seconds } = splitTimeString(value);
|
|
76
|
+
date2.setHours(hours ?? 0, minutes ?? 0, seconds ?? 0, 0);
|
|
77
|
+
model.value = date2.toISOString();
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
const config = useDatesConfig(calendarProps?.config);
|
|
81
|
+
const visible = computed(() => {
|
|
82
|
+
if (!model.value)
|
|
83
|
+
return null;
|
|
84
|
+
const _format = lFormat ?? withSeconds ? "DD.MM.YYYY HH:mm:ss" : "DD.MM.YYYY HH:mm";
|
|
85
|
+
return format({ date: model.value, format: _format, ...config });
|
|
86
|
+
});
|
|
87
|
+
const isClearable = computed(() => clearable && !props.disabled && !props.readonly && !!model.value);
|
|
88
|
+
</script>
|
|
89
|
+
|
|
90
|
+
<template>
|
|
91
|
+
<Popover>
|
|
92
|
+
<PopoverTarget>
|
|
93
|
+
<ButtonInput v-bind='props' :right-section-p-e>
|
|
94
|
+
<template #leftSection>
|
|
95
|
+
<slot name='leftSection'>
|
|
96
|
+
<Icon name='gravity-ui:calendar' />
|
|
97
|
+
</slot>
|
|
98
|
+
</template>
|
|
99
|
+
|
|
100
|
+
<template
|
|
101
|
+
v-if='!$slots.rightSection && isClearable || !!$slots.rightSection'
|
|
102
|
+
#rightSection
|
|
103
|
+
>
|
|
104
|
+
<slot name='rightSection'>
|
|
105
|
+
<ActionIcon
|
|
106
|
+
icon='gravity-ui:xmark'
|
|
107
|
+
variant='subtle'
|
|
108
|
+
color='gray'
|
|
109
|
+
size='sm'
|
|
110
|
+
@click.stop='model = ""'
|
|
111
|
+
/>
|
|
112
|
+
</slot>
|
|
113
|
+
</template>
|
|
114
|
+
|
|
115
|
+
<template #default>
|
|
116
|
+
{{ visible }}
|
|
117
|
+
</template>
|
|
118
|
+
|
|
119
|
+
<template v-if='!!$slots.label' #label>
|
|
120
|
+
<slot name='label' />
|
|
121
|
+
</template>
|
|
122
|
+
<template v-if='!!$slots.error' #error>
|
|
123
|
+
<slot name='error' />
|
|
124
|
+
</template>
|
|
125
|
+
<template v-if='!!$slots.description' #description>
|
|
126
|
+
<slot name='description' />
|
|
127
|
+
</template>
|
|
128
|
+
</ButtonInput>
|
|
129
|
+
</PopoverTarget>
|
|
130
|
+
<PopoverDropdown>
|
|
131
|
+
<Calendar
|
|
132
|
+
v-model:value='date'
|
|
133
|
+
v-bind='calendarProps'
|
|
134
|
+
/>
|
|
135
|
+
<TimePicker
|
|
136
|
+
v-model='time'
|
|
137
|
+
v-bind='timePickerProps'
|
|
138
|
+
:with-seconds
|
|
139
|
+
:clearable
|
|
140
|
+
/>
|
|
141
|
+
</PopoverDropdown>
|
|
142
|
+
</Popover>
|
|
143
|
+
</template>
|
|
144
|
+
|
|
145
|
+
<style lang="postcss" module>
|
|
146
|
+
.list {
|
|
147
|
+
display: flex;
|
|
148
|
+
flex-wrap: wrap;
|
|
149
|
+
gap: .25rem;
|
|
150
|
+
}
|
|
151
|
+
</style>
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type { Format } from '@formkit/tempo';
|
|
2
|
+
import type { CalendarProps } from './calendar/calendar.vue.js';
|
|
3
|
+
import type { ButtonInputProps } from './input/ui/button-input.vue.js';
|
|
4
|
+
import type { TimePickerProps } from './time-picker/time-picker.vue.js';
|
|
5
|
+
/**
|
|
6
|
+
* - presets
|
|
7
|
+
* - separate props for time-picker, calendar, input
|
|
8
|
+
* - clearable
|
|
9
|
+
*/
|
|
10
|
+
export interface DatePickerProps extends ButtonInputProps, Pick<TimePickerProps, 'withSeconds'> {
|
|
11
|
+
/** Tempo format for date value @default `DD.MM.YYYY HH:mm` */
|
|
12
|
+
format?: Format;
|
|
13
|
+
calendarProps?: Partial<Omit<CalendarProps, 'numberOfMonths' | 'mode'>>;
|
|
14
|
+
timePickerProps?: Omit<Partial<TimePickerProps>, 'withSeconds' | 'name'>;
|
|
15
|
+
clearable?: boolean;
|
|
16
|
+
}
|
|
17
|
+
type __VLS_Props = DatePickerProps;
|
|
18
|
+
type __VLS_ModelProps = {
|
|
19
|
+
/** ISO string */
|
|
20
|
+
modelValue?: string | Date;
|
|
21
|
+
};
|
|
22
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
23
|
+
declare var __VLS_21: {}, __VLS_29: {}, __VLS_40: {}, __VLS_43: {}, __VLS_46: {};
|
|
24
|
+
type __VLS_Slots = {} & {
|
|
25
|
+
leftSection?: (props: typeof __VLS_21) => any;
|
|
26
|
+
} & {
|
|
27
|
+
rightSection?: (props: typeof __VLS_29) => any;
|
|
28
|
+
} & {
|
|
29
|
+
label?: (props: typeof __VLS_40) => any;
|
|
30
|
+
} & {
|
|
31
|
+
error?: (props: typeof __VLS_43) => any;
|
|
32
|
+
} & {
|
|
33
|
+
description?: (props: typeof __VLS_46) => any;
|
|
34
|
+
};
|
|
35
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
36
|
+
"update:modelValue": (value: string | Date | undefined) => any;
|
|
37
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
38
|
+
"onUpdate:modelValue"?: ((value: string | Date | undefined) => any) | undefined;
|
|
39
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
40
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
41
|
+
declare const _default: typeof __VLS_export;
|
|
42
|
+
export default _default;
|
|
43
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
44
|
+
new (): {
|
|
45
|
+
$slots: S;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export type * from './dialog-header.vue';
|
|
2
|
-
export type * from './dialog-root.vue';
|
|
3
|
-
export type * from './dialog-title.vue';
|
|
4
1
|
export { useDialogState } from './lib.js';
|
|
5
|
-
export type * from './
|
|
2
|
+
export type * from './model';
|
|
3
|
+
export type * from './ui/dialog-header.vue';
|
|
4
|
+
export type * from './ui/dialog-root.vue';
|
|
5
|
+
export type * from './ui/dialog-title.vue';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { ActionIconProps } from '
|
|
2
|
-
declare var
|
|
1
|
+
import type { ActionIconProps } from '../../action-icon/index.js';
|
|
2
|
+
declare var __VLS_10: {};
|
|
3
3
|
type __VLS_Slots = {} & {
|
|
4
|
-
default?: (props: typeof
|
|
4
|
+
default?: (props: typeof __VLS_10) => any;
|
|
5
5
|
};
|
|
6
6
|
declare const __VLS_base: import("vue").DefineComponent<ActionIconProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ActionIconProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
7
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
package/dist/runtime/components/dialog/{dialog-close-button.vue → ui/dialog-close-button.vue}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
-
import ActionIcon from "
|
|
3
|
-
import { useDialogState } from "
|
|
2
|
+
import ActionIcon from "../../action-icon/action-icon.vue";
|
|
3
|
+
import { useDialogState } from "../lib";
|
|
4
4
|
const { variant = "subtle", icon = "gravity-ui:xmark", ...props } = defineProps({
|
|
5
5
|
size: { type: null, required: false },
|
|
6
6
|
variant: { type: String, required: false },
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { ActionIconProps } from '
|
|
2
|
-
declare var
|
|
1
|
+
import type { ActionIconProps } from '../../action-icon/index.js';
|
|
2
|
+
declare var __VLS_10: {};
|
|
3
3
|
type __VLS_Slots = {} & {
|
|
4
|
-
default?: (props: typeof
|
|
4
|
+
default?: (props: typeof __VLS_10) => any;
|
|
5
5
|
};
|
|
6
6
|
declare const __VLS_base: import("vue").DefineComponent<ActionIconProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ActionIconProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
7
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { BoxProps } from '
|
|
1
|
+
import type { BoxProps } from '../../box.vue.js';
|
|
2
2
|
export interface DialogHeaderProps extends BoxProps {
|
|
3
3
|
}
|
|
4
|
-
declare var
|
|
4
|
+
declare var __VLS_8: {};
|
|
5
5
|
type __VLS_Slots = {} & {
|
|
6
|
-
default?: (props: typeof
|
|
6
|
+
default?: (props: typeof __VLS_8) => any;
|
|
7
7
|
};
|
|
8
8
|
declare const __VLS_base: import("vue").DefineComponent<DialogHeaderProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DialogHeaderProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
9
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { BoxProps } from '
|
|
1
|
+
import type { BoxProps } from '../../box.vue.js';
|
|
2
2
|
export interface DialogHeaderProps extends BoxProps {
|
|
3
3
|
}
|
|
4
|
-
declare var
|
|
4
|
+
declare var __VLS_8: {};
|
|
5
5
|
type __VLS_Slots = {} & {
|
|
6
|
-
default?: (props: typeof
|
|
6
|
+
default?: (props: typeof __VLS_8) => any;
|
|
7
7
|
};
|
|
8
8
|
declare const __VLS_base: import("vue").DefineComponent<DialogHeaderProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DialogHeaderProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
9
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { NuanceRadius, NuanceShadow, NuanceSize, NuanceSpacing } from '@nui/types';
|
|
2
2
|
import type { CSSProperties } from 'vue';
|
|
3
|
-
import type { BoxProps } from '
|
|
4
|
-
import type { TransitionName } from '
|
|
5
|
-
import type { DialogModel } from '
|
|
3
|
+
import type { BoxProps } from '../../box.vue.js';
|
|
4
|
+
import type { TransitionName } from '../../transition/index.js';
|
|
5
|
+
import type { DialogModel } from '../model.js';
|
|
6
6
|
export interface DialogRootProps extends BoxProps {
|
|
7
7
|
/** If set, the dialog is closed when user clicks on the overlay @default `true` */
|
|
8
8
|
closeOnClickOutside?: boolean;
|
|
@@ -31,9 +31,9 @@ type __VLS_ModelProps = {
|
|
|
31
31
|
'open'?: DialogModel['open'];
|
|
32
32
|
};
|
|
33
33
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
34
|
-
declare var
|
|
34
|
+
declare var __VLS_31: {};
|
|
35
35
|
type __VLS_Slots = {} & {
|
|
36
|
-
default?: (props: typeof
|
|
36
|
+
default?: (props: typeof __VLS_31) => any;
|
|
37
37
|
};
|
|
38
38
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
39
39
|
close: () => any;
|