@nxgt/material-vue 0.23.4 → 0.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +30 -28
- package/dist/{Button-CVIR6uLK.js → Button-C1aaI0Gw.js} +95 -72
- package/dist/{HoverCardTrigger-iAL5ALrL.js → HoverCardTrigger-JtHn0IFQ.js} +2 -2
- package/dist/{camera-Gvg5N956.js → camera-BacVyXl0.js} +6 -6
- package/dist/{components-AScwCcds.js → components-DRBKkOqk.js} +15764 -13833
- package/dist/components.js +8 -8
- package/dist/composables.js +2 -2
- package/dist/dnd.js +1 -1
- package/dist/form-scope-VxlJuvFe.js +43 -0
- package/dist/{i18n-provider-BqWxpaKu.js → i18n-provider-D0oYv0XS.js} +1 -1
- package/dist/i18n.js +4 -4
- package/dist/{icon-button-DbEME76t.js → icon-button-B2FQtIHS.js} +34 -37
- package/dist/lib/components/ui/actions/button/has-text-content.d.ts +10 -0
- package/dist/lib/components/ui/actions/copy-button/copy-value.vue.d.ts +21 -0
- package/dist/lib/components/ui/actions/copy-button/index.d.ts +2 -0
- package/dist/lib/components/ui/collections/data-table/data-table-context.d.ts +6 -0
- package/dist/lib/components/ui/collections/data-table/data-table-pagination.vue.d.ts +2 -0
- package/dist/lib/components/ui/collections/data-table/data-table.vue.d.ts +17 -27
- package/dist/lib/components/ui/collections/data-table/index.d.ts +1 -1
- package/dist/lib/components/ui/collections/data-table/partials/data-table-body.vue.d.ts +10 -1
- package/dist/lib/components/ui/collections/data-table/partials/data-table-empty.vue.d.ts +13 -1
- package/dist/lib/components/ui/collections/data-table/partials/data-table-head.vue.d.ts +22 -0
- package/dist/lib/components/ui/collections/data-table/partials/data-table-skeleton-rows.vue.d.ts +10 -0
- package/dist/lib/components/ui/collections/data-table/use-data-table.d.ts +17 -0
- package/dist/lib/components/ui/collections/filter/partials/filter-field-slider-range.vue.d.ts +1 -4
- package/dist/lib/components/ui/collections/pagination/index.d.ts +5 -0
- package/dist/lib/components/ui/collections/pagination/pagination-bar.vue.d.ts +21 -0
- package/dist/lib/components/ui/collections/pagination/pagination-items.d.ts +2 -0
- package/dist/lib/components/ui/collections/pagination/pagination-link.vue.d.ts +18 -0
- package/dist/lib/components/ui/collections/tree/use-tree.d.ts +2 -0
- package/dist/lib/components/ui/dates/date-field/date-field.vue.d.ts +10 -1
- package/dist/lib/components/ui/dates/date-field/date-form-field.vue.d.ts +3 -1
- package/dist/lib/components/ui/dates/date-field/day-matcher.d.ts +26 -0
- package/dist/lib/components/ui/dates/date-field/index.d.ts +1 -0
- package/dist/lib/components/ui/dates/date-field/partials/date-field-content.vue.d.ts +2 -0
- package/dist/lib/components/ui/dates/date-range-field/date-range-field.utils.d.ts +11 -0
- package/dist/lib/components/ui/dates/date-range-field/date-range-field.vue.d.ts +26 -1
- package/dist/lib/components/ui/dates/date-range-field/date-range-form-field.vue.d.ts +3 -1
- package/dist/lib/components/ui/dates/date-range-field/index.d.ts +1 -0
- package/dist/lib/components/ui/dates/date-range-field/partials/date-range-calendar.vue.d.ts +5 -0
- package/dist/lib/components/ui/dates/date-range-field/partials/date-range-field-trigger.vue.d.ts +2 -0
- package/dist/lib/components/ui/dates/date-range-field/partials/date-range-presets.vue.d.ts +12 -0
- package/dist/lib/components/ui/dates/date-range-field/partials/date-range-times.vue.d.ts +13 -0
- package/dist/lib/components/ui/dates/date-range-field/use-date-range-presets.d.ts +23 -0
- package/dist/lib/components/ui/dates/time-picker/time-picker-utils.d.ts +7 -0
- package/dist/lib/components/ui/display/accordion-card/accordion-card.vue.d.ts +29 -1
- package/dist/lib/components/ui/display/avatar/Avatar.vue.d.ts +14 -3
- package/dist/lib/components/ui/display/avatar/index.d.ts +1 -0
- package/dist/lib/components/ui/display/cards/cards.gallery.d.ts +5 -9
- package/dist/lib/components/ui/display/markdown/index.d.ts +18 -0
- package/dist/lib/components/ui/display/qrcode/qrcode.vue.d.ts +5 -3
- package/dist/lib/components/ui/display/status-indicator/status-tone.d.ts +3 -0
- package/dist/lib/components/ui/feedback/confirmation-dialog/async-form-scope.d.ts +15 -0
- package/dist/lib/components/ui/feedback/confirmation-dialog/confirmation-dialog.vue.d.ts +37 -24
- package/dist/lib/components/ui/feedback/confirmation-dialog/index.d.ts +1 -1
- package/dist/lib/components/ui/feedback/confirmation-dialog/partials/confirmation-dialog-form-error.vue.d.ts +3 -0
- package/dist/lib/components/ui/feedback/skeleton/skeleton-text.vue.d.ts +1 -1
- package/dist/lib/components/ui/feedback/spinner/spinner.compound-variants.d.ts +4 -0
- package/dist/lib/components/ui/fields/attributes/form-schema.d.ts +24 -22
- package/dist/lib/components/ui/fields/contacts/consts.d.ts +1 -1
- package/dist/lib/components/ui/fields/inline-edit/index.d.ts +1 -0
- package/dist/lib/components/ui/fields/inline-edit/inline-edit-form-field.vue.d.ts +7 -0
- package/dist/lib/components/ui/fields/number-field/number-field.vue.d.ts +2 -0
- package/dist/lib/components/ui/fields/slider/partials/slider-field-row.vue.d.ts +32 -0
- package/dist/lib/components/ui/fields/slider/slider-field.vue.d.ts +22 -1
- package/dist/lib/components/ui/fields/slider/slider-form-field.vue.d.ts +13 -1
- package/dist/lib/components/ui/forms/form-scope-schema.d.ts +43 -0
- package/dist/lib/components/ui/forms/form-scope.vue.d.ts +33 -0
- package/dist/lib/components/ui/layout/doc/doc.vue.d.ts +5 -5
- package/dist/lib/components/ui/layout/doc/index.d.ts +8 -1
- package/dist/lib/components/ui/layout/doc/partials/default-doc-link.vue.d.ts +14 -0
- package/dist/lib/components/ui/layout/doc/partials/doc-copy-page.vue.d.ts +6 -0
- package/dist/lib/components/ui/layout/doc/partials/doc-link.vue.d.ts +3 -7
- package/dist/lib/components/ui/layout/doc/types.d.ts +6 -1
- package/dist/lib/components/ui/media/file-preview/file-preview-pdf.lazy.d.ts +8 -0
- package/dist/lib/components/ui/media/file-preview/file-preview.vue.d.ts +9 -0
- package/dist/lib/components/ui/media/file-preview/index.d.ts +3 -0
- package/dist/lib/components/ui/media/file-preview/partials/file-preview-body.vue.d.ts +21 -0
- package/dist/lib/components/ui/media/file-preview/partials/file-preview-card.vue.d.ts +15 -0
- package/dist/lib/components/ui/media/file-preview/partials/file-preview-download.vue.d.ts +11 -0
- package/dist/lib/components/ui/media/file-preview/partials/file-preview-media.vue.d.ts +17 -0
- package/dist/lib/components/ui/media/file-preview/partials/file-preview-pdf.vue.d.ts +21 -0
- package/dist/lib/components/ui/media/file-preview/partials/file-preview-status.vue.d.ts +22 -0
- package/dist/lib/components/ui/media/file-preview/partials/file-preview-text.vue.d.ts +16 -0
- package/dist/lib/components/ui/media/file-preview/types.d.ts +19 -0
- package/dist/lib/components/ui/media/file-preview/use-file-preview.d.ts +21 -0
- package/dist/lib/components/ui/media/file-preview/use-text-preview.d.ts +17 -0
- package/dist/lib/components/ui/media/files-form-field/files-form-field.vue.d.ts +29 -0
- package/dist/lib/components/ui/media/files-form-field/index.d.ts +2 -0
- package/dist/lib/components/ui/media/image-cropper/partials/image-cropper-canvas.vue.d.ts +1 -1
- package/dist/lib/components/ui/media/index.d.ts +2 -0
- package/dist/lib/components/ui/media/pdf-viewer/index.d.ts +6 -6
- package/dist/lib/components/ui/media/pdf-viewer/partials/pdf-page.vue.d.ts +1 -1
- package/dist/lib/components/ui/media/pdf-viewer/partials/pdf-reader-body.vue.d.ts +2 -2
- package/dist/lib/components/ui/media/pdf-viewer/pdf-reader.vue.d.ts +2 -2
- package/dist/lib/components/ui/media/upload/network-upload-field/use-image-preview.d.ts +9 -1
- package/dist/lib/components/ui/primitives/icon/icon-context.d.ts +1 -1
- package/dist/lib/components/ui/primitives/tabs/Tabs.vue.d.ts +3 -0
- package/dist/lib/components/ui/primitives/tabs/index.d.ts +1 -0
- package/dist/lib/components/ui/primitives/tabs/tabs-variant.d.ts +9 -0
- package/dist/lib/components/ui/selection/autocomplete/autocomplete-form-field.vue.d.ts +31 -5
- package/dist/lib/components/ui/selection/autocomplete/autocomplete-items.d.ts +23 -0
- package/dist/lib/components/ui/selection/autocomplete/autocomplete.vue.d.ts +48 -13
- package/dist/lib/components/ui/selection/autocomplete/filter-options.d.ts +2 -1
- package/dist/lib/components/ui/selection/autocomplete/partials/autocomplete-box.vue.d.ts +13 -1
- package/dist/lib/components/ui/selection/autocomplete/partials/autocomplete-list.vue.d.ts +17 -3
- package/dist/lib/components/ui/selection/autocomplete/use-autocomplete-items.d.ts +15 -0
- package/dist/lib/components/ui/selection/autocomplete/use-autocomplete-open.d.ts +15 -0
- package/dist/lib/components/ui/selection/autocomplete/use-autocomplete-texts.d.ts +14 -0
- package/dist/lib/components/ui/selection/autocomplete/use-autocomplete.d.ts +34 -0
- package/dist/lib/components/ui/selection/checkbox/Checkbox.vue.d.ts +21 -5
- package/dist/lib/components/ui/selection/checkbox/checkbox-form-field.vue.d.ts +17 -0
- package/dist/lib/components/ui/selection/checkbox/index.d.ts +2 -0
- package/dist/lib/components/ui/selection/index.d.ts +1 -0
- package/dist/lib/components/ui/selection/select-field/select-field.vue.d.ts +16 -1
- package/dist/lib/components/ui/selection/select-field/select-form-field.vue.d.ts +16 -2
- package/dist/lib/components/ui/selection/tree-select-field/index.d.ts +3 -0
- package/dist/lib/components/ui/selection/tree-select-field/partials/tree-select-panel.vue.d.ts +27 -0
- package/dist/lib/components/ui/selection/tree-select-field/partials/tree-select-trigger.vue.d.ts +28 -0
- package/dist/lib/components/ui/selection/tree-select-field/tree-select-field.vue.d.ts +8 -0
- package/dist/lib/components/ui/selection/tree-select-field/tree-select-form-field.vue.d.ts +8 -0
- package/dist/lib/components/ui/selection/tree-select-field/tree-select.utils.d.ts +29 -0
- package/dist/lib/components/ui/selection/tree-select-field/types.d.ts +28 -0
- package/dist/lib/components/ui/selection/tree-select-field/use-tree-select-field.d.ts +19 -0
- package/dist/lib/components/ui/widgets/charts/chart-container.vue.d.ts +1 -1
- package/dist/lib/components/ui/widgets/code-editor/code-editor-form-field.vue.d.ts +13 -0
- package/dist/lib/components/ui/widgets/code-editor/code-editor-options.d.ts +4 -1
- package/dist/lib/components/ui/widgets/code-editor/code-editor.vue.d.ts +7 -0
- package/dist/lib/components/ui/widgets/code-editor/index.d.ts +2 -0
- package/dist/lib/components/ui/widgets/code-editor/monaco-editor.vue.d.ts +3 -0
- package/dist/lib/i18n/resources/en/en.d.ts +40 -0
- package/dist/lib/i18n/resources/en/material.json.d.ts +43 -3
- package/dist/lib/i18n/resources/fr/fr.d.ts +40 -0
- package/dist/lib/i18n/resources/fr/material.json.d.ts +43 -3
- package/dist/lib/i18n/resources/resources.d.ts +80 -0
- package/dist/lib/i18n/translator.d.ts +1 -1
- package/dist/lib/nuxt/component-names.d.ts +1 -1
- package/dist/lib.js +2 -2
- package/dist/main.js +17 -17
- package/dist/map.js +4 -4
- package/dist/material-vue.css +1 -1
- package/dist/{pdf-outline-sidebar-oz9wdBhB.js → pdf-outline-sidebar-jJfhNjnN.js} +2 -2
- package/dist/{pdf-page-0rlq1Lo6.js → pdf-page-BW1hXzPu.js} +1 -1
- package/dist/{pdf-page-list-DfhjNHoI.js → pdf-page-list-D277RtWS.js} +2 -2
- package/dist/{pdf-reader-Dr8RVcs4.js → pdf-reader-BReUTsn_.js} +73 -71
- package/dist/{pdf-sidebar-VXPQbC_R.js → pdf-sidebar-Bk6PowY1.js} +3 -3
- package/dist/{pdf-thumbnail-sidebar-BpgXrVBj.js → pdf-thumbnail-sidebar-BcNDFsks.js} +3 -3
- package/dist/{pdf-toolbar-B6gRRcsv.js → pdf-toolbar-CHjaMhH9.js} +4 -4
- package/dist/pdf.js +2 -2
- package/dist/{sortable-provider-oEVjQiCl.js → sortable-provider-C83VBfGl.js} +2 -2
- package/dist/{stored-language-rjOMJkyX.js → stored-language-CC_vdcCN.js} +90 -6
- package/dist/{stx-player-DNADkQ31.js → stx-player-BMQ1D2Li.js} +20 -20
- package/dist/{translator-BCSJSO1-.js → translator-B-X_1taI.js} +1 -1
- package/dist/{use-heading-spy-d50_nxgR.js → use-heading-spy-C_ySuvTl.js} +1 -1
- package/dist/{use-material-translation-C5zPFhbk.js → use-material-translation-B6sIk0mF.js} +3 -3
- package/docs/components/README.md +2 -1
- package/docs/components/buttons-and-actions.md +19 -3
- package/docs/components/data-display.md +65 -11
- package/docs/components/data-table-filter-and-lists.md +94 -8
- package/docs/components/date-and-time.md +116 -9
- package/docs/components/feedback-and-status.md +57 -5
- package/docs/components/form-fields.md +21 -9
- package/docs/components/media-and-files.md +120 -6
- package/docs/components/navigation-and-layout.md +68 -7
- package/docs/components/primitives.md +25 -6
- package/docs/components/rich-widgets.md +21 -3
- package/docs/components/selection-and-choice.md +151 -22
- package/docs/guides/forms.md +16 -8
- package/docs/guides/i18n.md +50 -6
- package/docs/guides/ssr.md +2 -0
- package/docs/previews/buttons-actions-copybutton.webp +0 -0
- package/docs/previews/data-table-filter-lists-pagination.webp +0 -0
- package/docs/previews/date-time-daterangefield.webp +0 -0
- package/docs/previews/form-fields-slider.webp +0 -0
- package/docs/previews/media-files-filepreview.webp +0 -0
- package/docs/previews/navigation-layout-stepper.webp +0 -0
- package/docs/previews/selection-choice-checkbox.webp +0 -0
- package/docs/previews/selection-choice-treeselectfield.webp +0 -0
- package/docs/roadmap.md +47 -1
- package/docs/troubleshooting.md +213 -0
- package/lib/nuxt/component-names.ts +16 -0
- package/package.json +2 -2
package/dist/lib/components/ui/collections/filter/partials/filter-field-slider-range.vue.d.ts
CHANGED
|
@@ -2,11 +2,8 @@ import { FilterField, FilterValue } from '../types';
|
|
|
2
2
|
export type FilterFieldSliderRangeProps = {
|
|
3
3
|
field: FilterField;
|
|
4
4
|
value: FilterValue;
|
|
5
|
+
error?: string;
|
|
5
6
|
disabled?: boolean;
|
|
6
|
-
label?: string;
|
|
7
|
-
placeholder?: string;
|
|
8
|
-
error?: boolean;
|
|
9
|
-
helperText?: string;
|
|
10
7
|
class?: string;
|
|
11
8
|
};
|
|
12
9
|
declare const __VLS_export: import('vue').DefineComponent<FilterFieldSliderRangeProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
@@ -6,3 +6,8 @@ export { default as PaginationItem } from './PaginationItem.vue';
|
|
|
6
6
|
export { default as PaginationLast } from './PaginationLast.vue';
|
|
7
7
|
export { default as PaginationNext } from './PaginationNext.vue';
|
|
8
8
|
export { default as PaginationPrevious } from './PaginationPrevious.vue';
|
|
9
|
+
export type { PaginationBarProps } from './pagination-bar.vue';
|
|
10
|
+
export { default as PaginationBar } from './pagination-bar.vue';
|
|
11
|
+
export type { PaginationItemToken } from './pagination-items';
|
|
12
|
+
export { paginationItems } from './pagination-items';
|
|
13
|
+
export { default as PaginationLink } from './pagination-link.vue';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'vue';
|
|
2
|
+
export type PaginationBarProps = {
|
|
3
|
+
/** The current page, from 1. Controlled: bind it with `v-model:page`. */
|
|
4
|
+
page: number;
|
|
5
|
+
pageCount: number;
|
|
6
|
+
/** Pages shown on each side of the current one before an ellipsis. */
|
|
7
|
+
siblingCount?: number;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
class?: HTMLAttributes['class'];
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_export: import('vue').DefineComponent<PaginationBarProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
12
|
+
"update:page": (page: number) => any;
|
|
13
|
+
pageChange: (page: number) => any;
|
|
14
|
+
}, string, import('vue').PublicProps, Readonly<PaginationBarProps> & Readonly<{
|
|
15
|
+
"onUpdate:page"?: ((page: number) => any) | undefined;
|
|
16
|
+
onPageChange?: ((page: number) => any) | undefined;
|
|
17
|
+
}>, {
|
|
18
|
+
siblingCount: number;
|
|
19
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
20
|
+
declare const _default: typeof __VLS_export;
|
|
21
|
+
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'vue';
|
|
2
|
+
export type PaginationLinkProps = {
|
|
3
|
+
isActive?: boolean;
|
|
4
|
+
class?: HTMLAttributes['class'];
|
|
5
|
+
};
|
|
6
|
+
declare var __VLS_1: {};
|
|
7
|
+
type __VLS_Slots = {} & {
|
|
8
|
+
default?: (props: typeof __VLS_1) => any;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_base: import('vue').DefineComponent<PaginationLinkProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<PaginationLinkProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
export default _default;
|
|
14
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
15
|
+
new (): {
|
|
16
|
+
$slots: S;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -10,6 +10,8 @@ export declare function useTree(options: UseTreeOptions): {
|
|
|
10
10
|
selected: import('vue').ComputedRef<string[]>;
|
|
11
11
|
expanded: import('vue').ComputedRef<string[]>;
|
|
12
12
|
focusedId: import('vue').Ref<string | null, string | null>;
|
|
13
|
+
/** The row with `tabindex="0"`: `focusedId` while visible, else the first row. */
|
|
14
|
+
tabbableId: import('vue').ComputedRef<string | null>;
|
|
13
15
|
setFocusedId: (id: string) => void;
|
|
14
16
|
toggleExpanded: (id: string) => void;
|
|
15
17
|
select: (id: string) => void;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'vue';
|
|
2
|
+
import { DisabledDays } from './day-matcher';
|
|
2
3
|
export type DateFieldProps = {
|
|
3
4
|
modelValue?: Date;
|
|
4
5
|
placeholder?: string;
|
|
@@ -13,11 +14,19 @@ export type DateFieldProps = {
|
|
|
13
14
|
/** Names the trigger (`aria-label`); it wins over `label`. Needed with neither `label` nor `placeholder`. */
|
|
14
15
|
ariaLabel?: string;
|
|
15
16
|
ariaLabelledby?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Days that cannot be picked: a day, a list, a range, `{ before }`,
|
|
19
|
+
* `{ after }`, `{ dayOfWeek }`, a function, or a list of those (any that
|
|
20
|
+
* matches disables the day). `@nxgt/material`'s `disabledDays`.
|
|
21
|
+
*/
|
|
22
|
+
disabledDays?: DisabledDays;
|
|
16
23
|
};
|
|
17
24
|
declare const __VLS_export: import('vue').DefineComponent<DateFieldProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
18
25
|
"update:modelValue": (value?: Date | undefined) => any;
|
|
19
26
|
}, string, import('vue').PublicProps, Readonly<DateFieldProps> & Readonly<{
|
|
20
27
|
"onUpdate:modelValue"?: ((value?: Date | undefined) => any) | undefined;
|
|
21
|
-
}>, {
|
|
28
|
+
}>, {
|
|
29
|
+
disabledDays: DisabledDays;
|
|
30
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
22
31
|
declare const _default: typeof __VLS_export;
|
|
23
32
|
export default _default;
|
|
@@ -2,6 +2,8 @@ import { DateFieldProps } from './date-field.vue';
|
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
name: string;
|
|
4
4
|
} & Omit<DateFieldProps, 'modelValue' | 'error' | 'name'>;
|
|
5
|
-
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
5
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
6
|
+
disabledDays: import('./day-matcher').DisabledDays;
|
|
7
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
6
8
|
declare const _default: typeof __VLS_export;
|
|
7
9
|
export default _default;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { DateValue } from '@internationalized/date';
|
|
2
|
+
/**
|
|
3
|
+
* One day rule, with `@nxgt/material`'s shapes (react-day-picker's
|
|
4
|
+
* `Matcher`): `true` every day, a day, a list of days, a range (ends
|
|
5
|
+
* included), before or after a day (excluded), between two days, some days of
|
|
6
|
+
* the week (`0` is Sunday), or a function.
|
|
7
|
+
*/
|
|
8
|
+
export type DayMatcher = boolean | Date | Date[] | ((date: Date) => boolean) | {
|
|
9
|
+
from: Date | undefined;
|
|
10
|
+
to?: Date | undefined;
|
|
11
|
+
} | {
|
|
12
|
+
before: Date;
|
|
13
|
+
after: Date;
|
|
14
|
+
} | {
|
|
15
|
+
before: Date;
|
|
16
|
+
} | {
|
|
17
|
+
after: Date;
|
|
18
|
+
} | {
|
|
19
|
+
dayOfWeek: number | number[];
|
|
20
|
+
};
|
|
21
|
+
/** `disabledDays`: one rule, or a list where any rule that matches disables the day. */
|
|
22
|
+
export type DisabledDays = DayMatcher | DayMatcher[];
|
|
23
|
+
/** Whether `date` is one of `disabledDays`. */
|
|
24
|
+
export declare function isDayDisabled(date: Date, disabledDays?: DisabledDays): boolean;
|
|
25
|
+
/** Reka's `isDateDisabled` for a `disabledDays`, or nothing without one. */
|
|
26
|
+
export declare function toIsDateDisabled(disabledDays?: DisabledDays): ((value: DateValue) => boolean) | undefined;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export type { DateFieldProps } from './date-field.vue';
|
|
2
2
|
export { default as DateField } from './date-field.vue';
|
|
3
3
|
export { default as DateFormField } from './date-form-field.vue';
|
|
4
|
+
export type { DayMatcher, DisabledDays } from './day-matcher';
|
|
4
5
|
export { fromDateValue, toCalendarDate } from './to-calendar-date';
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { DisabledDays } from '../day-matcher';
|
|
1
2
|
type __VLS_Props = {
|
|
2
3
|
modelValue?: Date;
|
|
3
4
|
showTimePicker?: boolean;
|
|
4
5
|
disabled?: boolean;
|
|
6
|
+
disabledDays?: DisabledDays;
|
|
5
7
|
};
|
|
6
8
|
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
7
9
|
close: () => any;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { DateRangeRules } from '@nxgt/material-core/date-range';
|
|
2
|
+
import { DisabledDays } from '../date-field/day-matcher';
|
|
3
|
+
/**
|
|
4
|
+
* What a preset's range must respect: the field's day rule (`disabledDays`)
|
|
5
|
+
* and its first and last day (`minDate` / `maxDate`), as the calendar itself
|
|
6
|
+
* applies them.
|
|
7
|
+
*/
|
|
8
|
+
export declare function dateRangeRules(disabledDays: DisabledDays | undefined, bounds?: {
|
|
9
|
+
minDate?: Date;
|
|
10
|
+
maxDate?: Date;
|
|
11
|
+
}): DateRangeRules;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { DateRangePresetOption } from '@nxgt/material-core/date-range';
|
|
1
2
|
import { HTMLAttributes } from 'vue';
|
|
3
|
+
import { DisabledDays } from '../date-field/day-matcher';
|
|
2
4
|
export type DateRange = {
|
|
3
5
|
from?: Date;
|
|
4
6
|
to?: Date;
|
|
@@ -16,11 +18,34 @@ export type DateRangeFieldProps = {
|
|
|
16
18
|
/** Names the trigger (`aria-label`); it wins over `label`. Needed with neither `label` nor `placeholder`. */
|
|
17
19
|
ariaLabel?: string;
|
|
18
20
|
ariaLabelledby?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Days that cannot be picked: a day, a list, a range, `{ before }`,
|
|
23
|
+
* `{ after }`, `{ dayOfWeek }`, a function, or a list of those (any that
|
|
24
|
+
* matches disables the day). `@nxgt/material`'s `disabledDays`.
|
|
25
|
+
*/
|
|
26
|
+
disabledDays?: DisabledDays;
|
|
27
|
+
/** The first day that can be picked (Reka's `minValue`). */
|
|
28
|
+
minDate?: Date;
|
|
29
|
+
/** The last day that can be picked (Reka's `maxValue`). */
|
|
30
|
+
maxDate?: Date;
|
|
31
|
+
/**
|
|
32
|
+
* One-click ranges beside the calendar: built-in ids (`'today'`,
|
|
33
|
+
* `'last-7-days'`, … — `DATE_RANGE_PRESET_IDS` lists them all) and
|
|
34
|
+
* `{ label, range }` of your own, where `range` may be `(now) => range`.
|
|
35
|
+
*/
|
|
36
|
+
presets?: readonly DateRangePresetOption[];
|
|
37
|
+
/** A time of day on each end of the range, under the calendar. */
|
|
38
|
+
withTime?: boolean;
|
|
19
39
|
};
|
|
20
40
|
declare const __VLS_export: import('vue').DefineComponent<DateRangeFieldProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
21
41
|
"update:modelValue": (value?: DateRange | undefined) => any;
|
|
22
42
|
}, string, import('vue').PublicProps, Readonly<DateRangeFieldProps> & Readonly<{
|
|
23
43
|
"onUpdate:modelValue"?: ((value?: DateRange | undefined) => any) | undefined;
|
|
24
|
-
}>, {
|
|
44
|
+
}>, {
|
|
45
|
+
presets: readonly DateRangePresetOption[];
|
|
46
|
+
disabledDays: DisabledDays;
|
|
47
|
+
minDate: Date;
|
|
48
|
+
maxDate: Date;
|
|
49
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
25
50
|
declare const _default: typeof __VLS_export;
|
|
26
51
|
export default _default;
|
|
@@ -2,6 +2,8 @@ import { DateRangeFieldProps } from './date-range-field.vue';
|
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
name: string;
|
|
4
4
|
} & Omit<DateRangeFieldProps, 'modelValue' | 'error' | 'name'>;
|
|
5
|
-
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
5
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
6
|
+
disabledDays: import('..').DisabledDays;
|
|
7
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
6
8
|
declare const _default: typeof __VLS_export;
|
|
7
9
|
export default _default;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export { DATE_RANGE_PRESET_IDS, type DateRangePreset, type DateRangePresetId, type DateRangePresetOption, type DayRange, } from '@nxgt/material-core/date-range';
|
|
1
2
|
export type { DateRange, DateRangeFieldProps } from './date-range-field.vue';
|
|
2
3
|
export { default as DateRangeField } from './date-range-field.vue';
|
|
3
4
|
export { default as DateRangeFormField } from './date-range-form-field.vue';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { DateValue } from '@internationalized/date';
|
|
2
|
+
import { DisabledDays } from '../../date-field/day-matcher';
|
|
2
3
|
export type CalendarRange = {
|
|
3
4
|
start: DateValue | undefined;
|
|
4
5
|
end: DateValue | undefined;
|
|
@@ -6,6 +7,10 @@ export type CalendarRange = {
|
|
|
6
7
|
type __VLS_Props = {
|
|
7
8
|
modelValue: CalendarRange;
|
|
8
9
|
disabled?: boolean;
|
|
10
|
+
disabledDays?: DisabledDays;
|
|
11
|
+
/** The first and last day that can be picked. */
|
|
12
|
+
minValue?: DateValue;
|
|
13
|
+
maxValue?: DateValue;
|
|
9
14
|
};
|
|
10
15
|
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
11
16
|
"update:modelValue": (value: CalendarRange) => any;
|
package/dist/lib/components/ui/dates/date-range-field/partials/date-range-field-trigger.vue.d.ts
CHANGED
|
@@ -4,6 +4,8 @@ type __VLS_Props = {
|
|
|
4
4
|
placeholder?: string;
|
|
5
5
|
error?: boolean;
|
|
6
6
|
modelValue?: DateRange;
|
|
7
|
+
/** Each end shows its time too. */
|
|
8
|
+
withTime?: boolean;
|
|
7
9
|
};
|
|
8
10
|
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
9
11
|
declare const _default: typeof __VLS_export;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DayRange } from '@nxgt/material-core/date-range';
|
|
2
|
+
import { DateRangePresetItem } from '../use-date-range-presets';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
items: DateRangePresetItem[];
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
7
|
+
pick: (range: DayRange) => any;
|
|
8
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
9
|
+
onPick?: ((range: DayRange) => any) | undefined;
|
|
10
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DateRange } from '../date-range-field.vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
modelValue?: DateRange;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
6
|
+
done: () => any;
|
|
7
|
+
"update:modelValue": (value: DateRange) => any;
|
|
8
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
9
|
+
onDone?: (() => any) | undefined;
|
|
10
|
+
"onUpdate:modelValue"?: ((value: DateRange) => any) | undefined;
|
|
11
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { DateRangePresetOption, DateRangeRules, DayRange, PartialDayRange } from '@nxgt/material-core/date-range';
|
|
2
|
+
/** One entry of the preset list, resolved while the popover is open. */
|
|
3
|
+
export type DateRangePresetItem = {
|
|
4
|
+
key: string;
|
|
5
|
+
label: string;
|
|
6
|
+
range: DayRange;
|
|
7
|
+
/** Its range starts before `minDate`, ends after `maxDate`, or on a disabled day. */
|
|
8
|
+
disabled: boolean;
|
|
9
|
+
/** The field's value covers the same days. */
|
|
10
|
+
active: boolean;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* The presets a `DateRangeField` lists, each with its range, its label in the
|
|
14
|
+
* provider's language, and its state against the field's rules and value.
|
|
15
|
+
* "Now" is read again each time the popover opens.
|
|
16
|
+
*/
|
|
17
|
+
export declare function useDateRangePresets(options: {
|
|
18
|
+
presets: () => readonly DateRangePresetOption[] | undefined;
|
|
19
|
+
value: () => PartialDayRange | undefined;
|
|
20
|
+
rules: () => DateRangeRules;
|
|
21
|
+
withTime: () => boolean;
|
|
22
|
+
open: () => boolean;
|
|
23
|
+
}): import('vue').ComputedRef<DateRangePresetItem[]>;
|
|
@@ -1,3 +1,10 @@
|
|
|
1
1
|
export declare function parseHours(value: string, period: 'AM' | 'PM'): number;
|
|
2
2
|
export declare function parseMinutes(value?: string): number;
|
|
3
3
|
export declare function formatValue(value: number): string;
|
|
4
|
+
/** The half of the day `date` is in. */
|
|
5
|
+
export declare function periodOf(date: Date): 'AM' | 'PM';
|
|
6
|
+
/**
|
|
7
|
+
* `date` moved into `period`'s half of the day, at the same hour on the
|
|
8
|
+
* 12-hour clock; a date already in it is returned unchanged (as a copy).
|
|
9
|
+
*/
|
|
10
|
+
export declare function withPeriod(date: Date, period: 'AM' | 'PM'): Date;
|
|
@@ -11,7 +11,29 @@ export type AccordionCardProps = {
|
|
|
11
11
|
type?: 'single' | 'multiple';
|
|
12
12
|
collapsible?: boolean;
|
|
13
13
|
};
|
|
14
|
-
|
|
14
|
+
/** The slots are `@nxgt/material`'s render props (`renderHeader`) and nodes. */
|
|
15
|
+
type __VLS_Slots = {
|
|
16
|
+
/**
|
|
17
|
+
* Replaces the whole header: one element, which becomes the trigger
|
|
18
|
+
* (`as-child`) — so a `<button>`, as React's `renderHeader` returns.
|
|
19
|
+
*/
|
|
20
|
+
header?: (props: {
|
|
21
|
+
item: AccordionCardItem;
|
|
22
|
+
index: number;
|
|
23
|
+
title: string;
|
|
24
|
+
}) => unknown;
|
|
25
|
+
/** The header's title, beside the chevron. Defaults to `item.title`. */
|
|
26
|
+
title?: (props: {
|
|
27
|
+
item: AccordionCardItem;
|
|
28
|
+
index: number;
|
|
29
|
+
}) => unknown;
|
|
30
|
+
/** The panel's content. Defaults to `item.content`. */
|
|
31
|
+
content?: (props: {
|
|
32
|
+
item: AccordionCardItem;
|
|
33
|
+
index: number;
|
|
34
|
+
}) => unknown;
|
|
35
|
+
};
|
|
36
|
+
declare const __VLS_base: import('vue').DefineComponent<AccordionCardProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
15
37
|
"update:modelValue": (value: string | string[]) => any;
|
|
16
38
|
}, string, import('vue').PublicProps, Readonly<AccordionCardProps> & Readonly<{
|
|
17
39
|
"onUpdate:modelValue"?: ((value: string | string[]) => any) | undefined;
|
|
@@ -20,5 +42,11 @@ declare const __VLS_export: import('vue').DefineComponent<AccordionCardProps, {}
|
|
|
20
42
|
collapsible: boolean;
|
|
21
43
|
showIcon: boolean;
|
|
22
44
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
45
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
23
46
|
declare const _default: typeof __VLS_export;
|
|
24
47
|
export default _default;
|
|
48
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
49
|
+
new (): {
|
|
50
|
+
$slots: S;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
@@ -1,12 +1,23 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'vue';
|
|
2
|
-
|
|
2
|
+
import { StatusTone } from '../status-indicator/status-indicator.vue';
|
|
3
|
+
export type AvatarProps = {
|
|
3
4
|
class?: HTMLAttributes['class'];
|
|
5
|
+
/**
|
|
6
|
+
* Presence: a dot at the bottom right, named for a screen reader —
|
|
7
|
+
* `success` Online, `neutral` Offline, `warning` Away, `error` Busy,
|
|
8
|
+
* anything else Active. Absent, the avatar renders alone.
|
|
9
|
+
*/
|
|
10
|
+
status?: StatusTone;
|
|
11
|
+
/** Pulses the status dot. */
|
|
12
|
+
statusPulse?: boolean;
|
|
4
13
|
};
|
|
5
|
-
declare var __VLS_8: {};
|
|
14
|
+
declare var __VLS_8: {}, __VLS_16: {};
|
|
6
15
|
type __VLS_Slots = {} & {
|
|
7
16
|
default?: (props: typeof __VLS_8) => any;
|
|
17
|
+
} & {
|
|
18
|
+
default?: (props: typeof __VLS_16) => any;
|
|
8
19
|
};
|
|
9
|
-
declare const __VLS_base: import('vue').DefineComponent<
|
|
20
|
+
declare const __VLS_base: import('vue').DefineComponent<AvatarProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<AvatarProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
10
21
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
22
|
declare const _default: typeof __VLS_export;
|
|
12
23
|
export default _default;
|
|
@@ -325,26 +325,22 @@ export declare function cardsGallery(): {
|
|
|
325
325
|
Sparkles: import('@lucide/vue').LucideIcon;
|
|
326
326
|
Zap: import('@lucide/vue').LucideIcon;
|
|
327
327
|
Avatar: {
|
|
328
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
329
|
-
class?: import('vue').HTMLAttributes["class"];
|
|
330
|
-
}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
328
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('../avatar/Avatar.vue').AvatarProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
331
329
|
P: {};
|
|
332
330
|
B: {};
|
|
333
331
|
D: {};
|
|
334
332
|
C: {};
|
|
335
333
|
M: {};
|
|
336
334
|
Defaults: {};
|
|
337
|
-
}, Readonly<{
|
|
338
|
-
class?: import('vue').HTMLAttributes["class"];
|
|
339
|
-
}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
335
|
+
}, Readonly<import('../avatar/Avatar.vue').AvatarProps> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
340
336
|
__isFragment?: never;
|
|
341
337
|
__isTeleport?: never;
|
|
342
338
|
__isSuspense?: never;
|
|
343
|
-
} & import('vue').ComponentOptionsBase<Readonly<{
|
|
344
|
-
class?: import('vue').HTMLAttributes["class"];
|
|
345
|
-
}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
339
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('../avatar/Avatar.vue').AvatarProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
346
340
|
$slots: {
|
|
347
341
|
default?: (props: {}) => any;
|
|
342
|
+
} & {
|
|
343
|
+
default?: (props: {}) => any;
|
|
348
344
|
};
|
|
349
345
|
});
|
|
350
346
|
AvatarFallback: {
|
|
@@ -1,2 +1,20 @@
|
|
|
1
1
|
export type { MarkdownProps } from './markdown.vue';
|
|
2
2
|
export { default as Markdown } from './markdown.vue';
|
|
3
|
+
/**
|
|
4
|
+
* A mermaid chart (`chart`), rendered in the browser only: `mermaid` is
|
|
5
|
+
* imported on mount, never by this module, so the barrel stays SSR-safe.
|
|
6
|
+
*/
|
|
7
|
+
export declare const MermaidDiagram: import('vue').Component<import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
8
|
+
chart: string;
|
|
9
|
+
class?: string;
|
|
10
|
+
}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
11
|
+
P: {};
|
|
12
|
+
B: {};
|
|
13
|
+
D: {};
|
|
14
|
+
C: {};
|
|
15
|
+
M: {};
|
|
16
|
+
Defaults: {};
|
|
17
|
+
}, Readonly<{
|
|
18
|
+
chart: string;
|
|
19
|
+
class?: string;
|
|
20
|
+
}> & Readonly<{}>, {}, {}, {}, {}, {}>>;
|
|
@@ -14,9 +14,11 @@ export type QRCodeProps = {
|
|
|
14
14
|
'aria-label'?: string;
|
|
15
15
|
class?: HTMLAttributes['class'];
|
|
16
16
|
};
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
type __VLS_Slots = {
|
|
18
|
+
/** The logo, centred over the code on a white pad (React's `logo`). Use `level="H"`. */
|
|
19
|
+
logo?: () => unknown;
|
|
20
|
+
/** The same as `#logo`, kept for code written before it. */
|
|
21
|
+
default?: () => unknown;
|
|
20
22
|
};
|
|
21
23
|
declare const __VLS_base: import('vue').DefineComponent<QRCodeProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<QRCodeProps> & Readonly<{}>, {
|
|
22
24
|
size: number;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Component } from 'vue';
|
|
2
|
+
/**
|
|
3
|
+
* `FormScope`, loaded only by a dialog with `formOptions`: the others never
|
|
4
|
+
* reach vee-validate (the reason for its import boundary). A failed load is
|
|
5
|
+
* tried once more; a second failure shows a message in the form's place, and
|
|
6
|
+
* confirm stays disabled.
|
|
7
|
+
*/
|
|
8
|
+
export declare function asyncFormScope(loader?: () => Promise<Component | {
|
|
9
|
+
default: Component;
|
|
10
|
+
}>): import('vue').ComponentOptions<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions, any, any, any, string, {}, {}, string, {}, {}, {}, string, import('vue').ComponentProvideOptions> | import('vue').FunctionalComponent<any, {}, any, {}> | {
|
|
11
|
+
new (...args: any[]): any;
|
|
12
|
+
__isFragment?: never;
|
|
13
|
+
__isTeleport?: never;
|
|
14
|
+
__isSuspense?: never;
|
|
15
|
+
};
|
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
import { IconButtonProps } from '../../actions/icon-button/icon-button.vue';
|
|
2
|
-
|
|
2
|
+
import { FormScopeSchema, FormScopeSlotProps } from '../../forms/form-scope-schema';
|
|
3
|
+
/**
|
|
4
|
+
* A form inside the confirmation: `schema` (a Zod 4 schema, any Standard
|
|
5
|
+
* Schema, or a vee-validate typed schema) and its `defaultValues`. The
|
|
6
|
+
* `#form` slot renders the fields — `*-form-field` wrappers join the form —
|
|
7
|
+
* and `confirm` carries the schema's output, once the form is valid.
|
|
8
|
+
*/
|
|
9
|
+
export type ConfirmationDialogFormOptions<TInput extends Record<string, any> = Record<string, any>, TOutput extends Record<string, any> = TInput> = {
|
|
10
|
+
schema: FormScopeSchema<TInput, TOutput>;
|
|
11
|
+
defaultValues?: Partial<TInput>;
|
|
12
|
+
};
|
|
13
|
+
export type ConfirmationDialogProps<TInput extends Record<string, any> = Record<string, any>, TOutput extends Record<string, any> = TInput> = {
|
|
3
14
|
open?: boolean;
|
|
4
15
|
title?: string;
|
|
5
16
|
description?: string;
|
|
@@ -7,30 +18,32 @@ export type ConfirmationDialogProps = {
|
|
|
7
18
|
confirmText?: string;
|
|
8
19
|
variant?: IconButtonProps['variant'];
|
|
9
20
|
color?: IconButtonProps['color'];
|
|
21
|
+
formOptions?: ConfirmationDialogFormOptions<TInput, TOutput>;
|
|
10
22
|
};
|
|
11
|
-
declare
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
23
|
+
declare const __VLS_export: <TInput extends Record<string, any> = Record<string, any>, TOutput extends Record<string, any> = TInput>(__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<{
|
|
24
|
+
props: import('vue').PublicProps & __VLS_PrettifyLocal<ConfirmationDialogProps<TInput, TOutput> & {
|
|
25
|
+
onConfirm?: ((values?: TOutput | undefined) => any) | undefined;
|
|
26
|
+
"onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
27
|
+
}> & (typeof globalThis extends {
|
|
28
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
29
|
+
} ? P : {});
|
|
30
|
+
expose: (exposed: {}) => void;
|
|
31
|
+
attrs: any;
|
|
32
|
+
slots: {
|
|
33
|
+
default?: () => unknown;
|
|
34
|
+
trigger?: () => unknown;
|
|
35
|
+
icon?: () => unknown;
|
|
36
|
+
/** The fields of `formOptions`' form (React's `renderForm`). */
|
|
37
|
+
form?: (props: FormScopeSlotProps<TInput>) => unknown;
|
|
38
|
+
};
|
|
39
|
+
emit: ((evt: "confirm", values?: TOutput | undefined) => void) & ((evt: "update:open", open: boolean) => void);
|
|
40
|
+
}>) => import('vue').VNode & {
|
|
41
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
18
42
|
};
|
|
19
|
-
declare const __VLS_base: import('vue').DefineComponent<ConfirmationDialogProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
20
|
-
confirm: () => any;
|
|
21
|
-
"update:open": (open: boolean) => any;
|
|
22
|
-
}, string, import('vue').PublicProps, Readonly<ConfirmationDialogProps> & Readonly<{
|
|
23
|
-
onConfirm?: (() => any) | undefined;
|
|
24
|
-
"onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
25
|
-
}>, {
|
|
26
|
-
variant: "link" | "filled" | "tonal" | "outlined" | "ghost" | null;
|
|
27
|
-
color: "default" | "error" | "success" | "primary" | "secondary" | "info" | "warning" | null;
|
|
28
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
29
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
30
43
|
declare const _default: typeof __VLS_export;
|
|
31
44
|
export default _default;
|
|
32
|
-
type
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
};
|
|
45
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
46
|
+
[K in keyof T]: T[K];
|
|
47
|
+
} : {
|
|
48
|
+
[K in keyof T as K]: T[K];
|
|
49
|
+
}) & {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type { ConfirmationDialogProps } from './confirmation-dialog.vue';
|
|
1
|
+
export type { ConfirmationDialogFormOptions, ConfirmationDialogProps, } from './confirmation-dialog.vue';
|
|
2
2
|
export { default as ConfirmationDialog } from './confirmation-dialog.vue';
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -5,8 +5,8 @@ export type SkeletonTextProps = {
|
|
|
5
5
|
class?: HTMLAttributes['class'];
|
|
6
6
|
};
|
|
7
7
|
declare const __VLS_export: import('vue').DefineComponent<SkeletonTextProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<SkeletonTextProps> & Readonly<{}>, {
|
|
8
|
-
lines: number;
|
|
9
8
|
labelled: boolean;
|
|
9
|
+
lines: number;
|
|
10
10
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
11
11
|
declare const _default: typeof __VLS_export;
|
|
12
12
|
export default _default;
|