@xleddyl/443-components-vue 0.16.69 → 0.16.71

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. package/CATALOG.md +130 -127
  2. package/README.md +70 -16
  3. package/dist/components/core/Button.vue +67 -5
  4. package/dist/components/core/Button.vue.d.ts +9 -4
  5. package/dist/components/core/Form.vue +8 -2
  6. package/dist/components/core/Form.vue.d.ts +1 -0
  7. package/dist/components/core/Input.vue.d.ts +2 -2
  8. package/dist/components/data/RecordList.vue +29 -7
  9. package/dist/components/forms/ColorInput.vue.d.ts +2 -2
  10. package/dist/components/forms/DateInput.vue.d.ts +2 -2
  11. package/dist/components/forms/Fieldset.vue +16 -2
  12. package/dist/components/forms/Fieldset.vue.d.ts +3 -3
  13. package/dist/components/forms/NumberInput.vue.d.ts +2 -2
  14. package/dist/components/forms/PaletteSelect.vue.d.ts +4 -4
  15. package/dist/components/forms/PasswordInput.vue.d.ts +2 -2
  16. package/dist/components/forms/PinInput.vue.d.ts +2 -2
  17. package/dist/components/forms/Slider.vue.d.ts +2 -2
  18. package/dist/components/forms/TimeInput.vue.d.ts +2 -2
  19. package/dist/components/layout/Tabs.vue +10 -1
  20. package/dist/components/layout/ThemeSwitch.vue.d.ts +4 -0
  21. package/dist/components/overlays/CommandButton.vue +1 -0
  22. package/dist/components/overlays/ConfirmDialog.vue.d.ts +8 -2
  23. package/dist/components/overlays/ConfirmHost.vue.d.ts +8 -2
  24. package/dist/components/overlays/ContextMenu.vue.d.ts +2 -2
  25. package/dist/components/overlays/Drawer.vue +9 -1
  26. package/dist/components/overlays/Drawer.vue.d.ts +9 -0
  27. package/dist/components/overlays/Modal.vue +8 -0
  28. package/dist/components/overlays/Modal.vue.d.ts +9 -0
  29. package/dist/components/overlays/Tooltip.vue +3 -1
  30. package/dist/components/overlays/types.d.ts +1 -0
  31. package/dist/components/templates/AuthLogin.vue +4 -2
  32. package/dist/components/templates/FormDrawer.vue +14 -33
  33. package/dist/components/templates/FormDrawer.vue.d.ts +5 -1
  34. package/dist/components/templates/FormModal.vue +153 -0
  35. package/dist/components/templates/FormModal.vue.d.ts +303 -0
  36. package/dist/components/templates/FormPage.vue +1 -0
  37. package/dist/components/templates/SettingsModal.vue +63 -8
  38. package/dist/components/templates/SettingsModal.vue.d.ts +7 -0
  39. package/dist/components/templates/index.d.ts +1 -0
  40. package/dist/components/templates/index.mjs +1 -0
  41. package/dist/components/templates/types.d.ts +4 -2
  42. package/dist/composables/templates.d.ts +1 -0
  43. package/dist/composables/templates.mjs +1 -0
  44. package/dist/composables/useConfirm.mjs +11 -8
  45. package/dist/composables/useDirtyGuard.mjs +7 -47
  46. package/dist/composables/useForm.d.ts +4 -0
  47. package/dist/composables/useForm.mjs +9 -1
  48. package/dist/composables/useLeaveGuard.d.ts +19 -0
  49. package/dist/composables/useLeaveGuard.mjs +52 -0
  50. package/dist/composables/useRouteRecord.mjs +6 -5
  51. package/dist/grid/DataGrid.vue +124 -8
  52. package/dist/grid/DataGrid.vue.d.ts +7 -23
  53. package/dist/grid/cells/ButtonCell.vue +21 -1
  54. package/dist/grid/cells/ButtonCell.vue.d.ts +4 -0
  55. package/dist/grid/data-grid.css +7 -1
  56. package/dist/grid/types.d.ts +12 -0
  57. package/dist/internal/forms/form-overlay.d.ts +25 -0
  58. package/dist/internal/forms/form-overlay.mjs +31 -0
  59. package/dist/internal/forms/leave.d.ts +30 -0
  60. package/dist/internal/forms/leave.mjs +135 -0
  61. package/dist/internal/keys.d.ts +1 -0
  62. package/dist/internal/keys.mjs +1 -0
  63. package/dist/internal/layout/query.d.ts +4 -0
  64. package/dist/internal/layout/query.mjs +3 -0
  65. package/dist/internal/overlays/DialogFrame.vue +43 -5
  66. package/dist/internal/overlays/DialogFrame.vue.d.ts +11 -1
  67. package/dist/internal/overlays/HintTooltip.vue +65 -0
  68. package/dist/internal/overlays/HintTooltip.vue.d.ts +402 -0
  69. package/dist/internal/overlays/OverlayView.vue.d.ts +10 -4
  70. package/dist/styles/data/record-list.css +31 -1
  71. package/dist/styles/forms/fieldset.css +8 -0
  72. package/dist/styles/overlays/tooltip.css +11 -0
  73. package/dist/styles/templates/form-modal.css +16 -0
  74. package/dist/styles/templates.css +1 -0
  75. package/package.json +1 -1
@@ -14,6 +14,9 @@
14
14
  :trail="trail"
15
15
  :back-label="backLabel"
16
16
  :before-close="beforeClose"
17
+ :guard="guard"
18
+ :guard-title="guardTitle"
19
+ :guard-message="guardMessage"
17
20
  @navigate="(index) => emit('navigate', index)"
18
21
  @after-leave="emit('afterLeave')"
19
22
  >
@@ -34,6 +37,7 @@
34
37
  :key="formKey"
35
38
  class="k-form-drawer-form"
36
39
  :form="form"
40
+ @submitted="emit('submitted')"
37
41
  @invalid="openErrorTab"
38
42
  >
39
43
  <slot :tab="active" />
@@ -50,7 +54,8 @@
50
54
  icon="trash"
51
55
  size="sm"
52
56
  :disabled="loading || isSaving || deleteDisabled"
53
- :title="deleteHint"
57
+ :disabled-reason="deleteDisabled ? deleteHint : void 0"
58
+ :tooltip="deleteHint"
54
59
  @click="emit('delete')"
55
60
  >
56
61
  {{ deleteText }}
@@ -83,7 +88,6 @@
83
88
 
84
89
  <script setup>
85
90
  import { computed, useId, useTemplateRef } from "vue";
86
- import { useConfirm } from "../../composables/useConfirm";
87
91
  import { useLocale } from "../../composables/useLocale";
88
92
  import Button from "../core/Button.vue";
89
93
  import Form from "../core/Form.vue";
@@ -94,6 +98,7 @@ import {
94
98
  writeRouteValue
95
99
  } from "../../internal/layout/query";
96
100
  import { provideFormDisabled } from "../../internal/forms/disabled";
101
+ import { useFormOverlay } from "../../internal/forms/form-overlay";
97
102
  import { useRouterLike } from "../../internal/layout/route";
98
103
  import Drawer from "../overlays/Drawer.vue";
99
104
  const props = defineProps({
@@ -124,21 +129,16 @@ const props = defineProps({
124
129
  beforeClose: { type: Function, required: false },
125
130
  onCancel: { type: Function, required: false }
126
131
  });
127
- const emit = defineEmits(["delete", "navigate", "afterLeave"]);
132
+ const emit = defineEmits(["delete", "submitted", "navigate", "afterLeave"]);
128
133
  const open = defineModel("open", { type: Boolean, ...{ default: false } });
129
134
  const tab = defineModel("tab", { type: [String, Number] });
130
135
  const { t } = useLocale();
131
- const confirm = useConfirm();
132
136
  const drawer = useTemplateRef("drawer");
133
137
  const formId = useId();
134
- const formKeys = /* @__PURE__ */ new WeakMap();
135
- let nextFormKey = 0;
136
- const formKey = computed(() => {
137
- const form = props.form;
138
- if (!form) return void 0;
139
- if (!formKeys.has(form)) formKeys.set(form, nextFormKey++);
140
- return formKeys.get(form);
141
- });
138
+ const { formKey, isSaving, submitDisabled, submitText, cancelText, deleteText } = useFormOverlay(
139
+ props,
140
+ t
141
+ );
142
142
  provideFormDisabled(() => props.readonly);
143
143
  const router = useRouterLike();
144
144
  const routeLocation = useDefaultRouteLocation();
@@ -182,27 +182,8 @@ function openErrorTab() {
182
182
  const target = props.tabs?.find(hasError);
183
183
  if (target && target.value !== activeTab.value) activeTab.value = target.value;
184
184
  }
185
- const isDirty = computed(() => Boolean(props.form?.dirty.value));
186
- const isSaving = computed(() => Boolean(props.form?.submitting.value));
187
- const needsDirty = computed(() => props.requireDirty ?? !props.creating);
188
- const submitDisabled = computed(() => props.loading || needsDirty.value && !isDirty.value);
189
- const submitText = computed(
190
- () => props.submitLabel ?? (props.creating ? t("common.create") : t("common.save"))
191
- );
192
- const cancelText = computed(
193
- () => props.cancelLabel ?? (props.readonly ? t("common.dismiss") : t("common.cancel"))
194
- );
195
- const deleteText = computed(() => props.deleteLabel ?? t("common.delete"));
196
- async function confirmDiscard() {
197
- if (!props.guard || props.readonly || props.loading || !isDirty.value) return true;
198
- return confirm.discard({
199
- ...props.guardTitle ? { title: props.guardTitle } : {},
200
- ...props.guardMessage ? { description: props.guardMessage } : {}
201
- });
202
- }
203
- async function beforeClose(reason) {
204
- if (!await confirmDiscard()) return false;
205
- return props.beforeClose ? props.beforeClose(reason) : true;
185
+ function confirmDiscard() {
186
+ return drawer.value?.confirmLeave() ?? Promise.resolve(true);
206
187
  }
207
188
  async function cancel() {
208
189
  if (!props.onCancel) {
@@ -36,6 +36,7 @@ declare const __VLS_export: <S extends FormSchema, V extends object>(__VLS_props
36
36
  }) & {
37
37
  onDelete?: (() => any) | undefined;
38
38
  "onUpdate:open"?: ((value: boolean) => any) | undefined;
39
+ onSubmitted?: (() => any) | undefined;
39
40
  onNavigate?: ((index: number) => any) | undefined;
40
41
  onAfterLeave?: (() => any) | undefined;
41
42
  "onUpdate:tab"?: ((value: string | number | undefined) => any) | undefined;
@@ -55,6 +56,9 @@ declare const __VLS_export: <S extends FormSchema, V extends object>(__VLS_props
55
56
  readonly tabs?: TabItem[] | undefined;
56
57
  readonly trail?: string[] | undefined;
57
58
  readonly backLabel?: string | undefined;
59
+ readonly guard?: boolean | undefined;
60
+ readonly guardTitle?: string | undefined;
61
+ readonly guardMessage?: string | undefined;
58
62
  readonly open?: boolean | undefined;
59
63
  readonly tab?: TabItem["value"] | undefined;
60
64
  readonly key?: PropertyKey | undefined;
@@ -288,7 +292,7 @@ declare const __VLS_export: <S extends FormSchema, V extends object>(__VLS_props
288
292
  } & {
289
293
  footer?: (props: {}) => any;
290
294
  };
291
- emit: (((evt: "delete") => void) & ((evt: "navigate", index: number) => void) & ((evt: "afterLeave") => void)) & (((event: "update:open", value: boolean) => void) & ((event: "update:tab", value: string | number | undefined) => void));
295
+ emit: (((evt: "delete") => void) & ((evt: "submitted") => void) & ((evt: "navigate", index: number) => void) & ((evt: "afterLeave") => void)) & (((event: "update:open", value: boolean) => void) & ((event: "update:tab", value: string | number | undefined) => void));
292
296
  }>) => import("vue").VNode & {
293
297
  __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
294
298
  };
@@ -0,0 +1,153 @@
1
+ <template>
2
+ <Modal
3
+ ref="modal"
4
+ v-model:open="open"
5
+ class="k-form-modal"
6
+ :title="title"
7
+ :description="description"
8
+ :label="label"
9
+ :size="size"
10
+ :sheet="sheet"
11
+ :width="width"
12
+ :fill="fill"
13
+ :dismissible="dismissible"
14
+ :before-close="beforeClose"
15
+ :guard="guard"
16
+ :guard-title="guardTitle"
17
+ :guard-message="guardMessage"
18
+ @open="emit('open')"
19
+ @close="emit('close')"
20
+ @after-leave="emit('afterLeave')"
21
+ >
22
+ <template v-if="$slots['title-trailing']" #title-trailing>
23
+ <slot name="title-trailing" />
24
+ </template>
25
+ <template v-if="$slots.actions" #actions>
26
+ <slot name="actions" />
27
+ </template>
28
+
29
+ <slot v-if="loading" name="skeleton">
30
+ <SkeletonForm />
31
+ </slot>
32
+ <Form
33
+ v-else-if="form"
34
+ :id="formId"
35
+ ref="formRef"
36
+ :key="formKey"
37
+ class="k-form-modal-form"
38
+ :as="nested ? 'div' : 'form'"
39
+ :form="form"
40
+ @submitted="emit('submitted')"
41
+ >
42
+ <slot />
43
+ </Form>
44
+ <slot v-else />
45
+
46
+ <template v-if="form || $slots.footer" #footer>
47
+ <slot name="footer" :submit="submit" :cancel="cancel">
48
+ <Button
49
+ v-if="deletable && !readonly"
50
+ variant="ghost"
51
+ tone="danger"
52
+ icon="trash"
53
+ size="sm"
54
+ :disabled="loading || isSaving || deleteDisabled"
55
+ :disabled-reason="deleteDisabled ? deleteHint : void 0"
56
+ :tooltip="deleteHint"
57
+ @click="emit('delete')"
58
+ >
59
+ {{ deleteText }}
60
+ </Button>
61
+ <div class="k-form-modal-actions">
62
+ <Button
63
+ variant="ghost"
64
+ tone="neutral"
65
+ size="sm"
66
+ :disabled="isSaving"
67
+ @click="cancel"
68
+ >
69
+ {{ cancelText }}
70
+ </Button>
71
+ <Button
72
+ v-if="!readonly"
73
+ :type="nested ? 'button' : 'submit'"
74
+ :form="nested ? void 0 : formId"
75
+ size="sm"
76
+ :loading="isSaving"
77
+ :disabled="submitDisabled"
78
+ @click="nested ? submit() : void 0"
79
+ >
80
+ {{ submitText }}
81
+ </Button>
82
+ </div>
83
+ </slot>
84
+ </template>
85
+ </Modal>
86
+ </template>
87
+
88
+ <script setup>
89
+ import { useId, useTemplateRef } from "vue";
90
+ import { useLocale } from "../../composables/useLocale";
91
+ import { provideFormDisabled } from "../../internal/forms/disabled";
92
+ import { useFormOverlay } from "../../internal/forms/form-overlay";
93
+ import Button from "../core/Button.vue";
94
+ import Form from "../core/Form.vue";
95
+ import SkeletonForm from "../feedback/SkeletonForm.vue";
96
+ import Modal from "../overlays/Modal.vue";
97
+ const props = defineProps({
98
+ title: { type: String, required: false },
99
+ description: { type: String, required: false },
100
+ label: { type: String, required: false },
101
+ size: { type: String, required: false, default: "md" },
102
+ sheet: { type: Boolean, required: false, default: true },
103
+ width: { type: String, required: false },
104
+ fill: { type: Boolean, required: false },
105
+ dismissible: { type: Boolean, required: false, default: true },
106
+ form: { type: Object, required: false },
107
+ nested: { type: Boolean, required: false },
108
+ loading: { type: Boolean, required: false },
109
+ readonly: { type: Boolean, required: false },
110
+ creating: { type: Boolean, required: false },
111
+ requireDirty: { type: Boolean, required: false, default: void 0 },
112
+ deletable: { type: Boolean, required: false },
113
+ deleteDisabled: { type: Boolean, required: false },
114
+ deleteHint: { type: String, required: false },
115
+ submitLabel: { type: String, required: false },
116
+ cancelLabel: { type: String, required: false },
117
+ deleteLabel: { type: String, required: false },
118
+ guard: { type: Boolean, required: false, default: true },
119
+ guardTitle: { type: String, required: false },
120
+ guardMessage: { type: String, required: false },
121
+ beforeClose: { type: Function, required: false },
122
+ onCancel: { type: Function, required: false }
123
+ });
124
+ const emit = defineEmits(["delete", "submitted", "open", "close", "afterLeave"]);
125
+ const open = defineModel("open", { type: Boolean, ...{ default: false } });
126
+ const { t } = useLocale();
127
+ const modal = useTemplateRef("modal");
128
+ const formRef = useTemplateRef("formRef");
129
+ const formId = useId();
130
+ const { formKey, isSaving, submitDisabled, submitText, cancelText, deleteText } = useFormOverlay(
131
+ props,
132
+ t
133
+ );
134
+ provideFormDisabled(() => props.readonly);
135
+ function confirmDiscard() {
136
+ return modal.value?.confirmLeave() ?? Promise.resolve(true);
137
+ }
138
+ function submit() {
139
+ return formRef.value?.submit() ?? Promise.resolve(false);
140
+ }
141
+ async function cancel() {
142
+ if (!props.onCancel) {
143
+ await modal.value?.close();
144
+ return;
145
+ }
146
+ if (await confirmDiscard()) await props.onCancel();
147
+ }
148
+ defineExpose({
149
+ submit,
150
+ confirmDiscard,
151
+ close: () => modal.value?.close() ?? Promise.resolve(false)
152
+ });
153
+ </script>
@@ -0,0 +1,303 @@
1
+ import type { FormSchema, UseFormReturn } from '../../composables/useForm';
2
+ import type { DialogBeforeClose, ModalSize } from '../overlays/types';
3
+ declare const __VLS_export: <S extends FormSchema, V extends 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<{
4
+ props: import("vue").PublicProps & __VLS_PrettifyLocal<({
5
+ title?: string;
6
+ description?: string;
7
+ label?: string;
8
+ size?: ModalSize;
9
+ sheet?: boolean;
10
+ width?: string;
11
+ fill?: boolean;
12
+ dismissible?: boolean;
13
+ form?: UseFormReturn<S, V>;
14
+ nested?: boolean;
15
+ loading?: boolean;
16
+ readonly?: boolean;
17
+ creating?: boolean;
18
+ requireDirty?: boolean;
19
+ deletable?: boolean;
20
+ deleteDisabled?: boolean;
21
+ deleteHint?: string;
22
+ submitLabel?: string;
23
+ cancelLabel?: string;
24
+ deleteLabel?: string;
25
+ guard?: boolean;
26
+ guardTitle?: string;
27
+ guardMessage?: string;
28
+ beforeClose?: DialogBeforeClose;
29
+ onCancel?: () => unknown;
30
+ } & {
31
+ open?: boolean;
32
+ }) & {
33
+ onClose?: (() => any) | undefined;
34
+ onDelete?: (() => any) | undefined;
35
+ onOpen?: (() => any) | undefined;
36
+ "onUpdate:open"?: ((value: boolean) => any) | undefined;
37
+ onSubmitted?: (() => any) | undefined;
38
+ onAfterLeave?: (() => any) | undefined;
39
+ } & Partial<NonNullable<{
40
+ readonly title?: string | undefined | undefined;
41
+ readonly description?: string | undefined;
42
+ readonly label?: string | undefined;
43
+ readonly size?: ModalSize | undefined;
44
+ readonly dismissible?: boolean | undefined;
45
+ readonly hideClose?: boolean | undefined;
46
+ readonly closeLabel?: string | undefined;
47
+ readonly sheet?: boolean | undefined;
48
+ readonly flush?: boolean | undefined;
49
+ readonly fill?: boolean | undefined;
50
+ readonly loading?: boolean | undefined;
51
+ readonly beforeClose?: DialogBeforeClose | undefined;
52
+ readonly tabs?: import("../layout/types.ts").TabItem[] | undefined;
53
+ readonly trail?: string[] | undefined;
54
+ readonly backLabel?: string | undefined;
55
+ readonly guard?: boolean | undefined;
56
+ readonly guardTitle?: string | undefined;
57
+ readonly guardMessage?: string | undefined;
58
+ readonly width?: string | undefined;
59
+ readonly minHeight?: string | undefined;
60
+ readonly open?: boolean | undefined;
61
+ readonly tab?: import("../layout/types.ts").TabItem["value"] | undefined;
62
+ readonly key?: PropertyKey | undefined;
63
+ readonly prefix?: "k-modal" | "k-drawer" | undefined;
64
+ readonly style?: import("vue").StyleValue;
65
+ readonly results?: (string | number) | undefined;
66
+ readonly placeholder?: string | undefined | undefined;
67
+ readonly id?: string | undefined | undefined;
68
+ readonly onSelect?: ((payload: Event) => void) | undefined;
69
+ readonly dir?: string | undefined | undefined;
70
+ readonly contextmenu?: string | undefined | undefined;
71
+ readonly hidden?: "" | "hidden" | (boolean | "true" | "false") | "until-found" | undefined;
72
+ readonly class?: import("vue").ClassValue;
73
+ readonly role?: string | undefined | undefined;
74
+ readonly 'aria-label'?: string | undefined | undefined;
75
+ readonly 'aria-hidden'?: (boolean | "true" | "false") | undefined;
76
+ readonly onCopy?: ((payload: ClipboardEvent) => void) | undefined;
77
+ readonly onCut?: ((payload: ClipboardEvent) => void) | undefined;
78
+ readonly onPaste?: ((payload: ClipboardEvent) => void) | undefined;
79
+ readonly onCompositionend?: ((payload: CompositionEvent) => void) | undefined;
80
+ readonly onCompositionstart?: ((payload: CompositionEvent) => void) | undefined;
81
+ readonly onCompositionupdate?: ((payload: CompositionEvent) => void) | undefined;
82
+ readonly onDrag?: ((payload: DragEvent) => void) | undefined;
83
+ readonly onDragend?: ((payload: DragEvent) => void) | undefined;
84
+ readonly onDragenter?: ((payload: DragEvent) => void) | undefined;
85
+ readonly onDragexit?: ((payload: DragEvent) => void) | undefined;
86
+ readonly onDragleave?: ((payload: DragEvent) => void) | undefined;
87
+ readonly onDragover?: ((payload: DragEvent) => void) | undefined;
88
+ readonly onDragstart?: ((payload: DragEvent) => void) | undefined;
89
+ readonly onDrop?: ((payload: DragEvent) => void) | undefined;
90
+ readonly onFocus?: ((payload: FocusEvent) => void) | undefined;
91
+ readonly onFocusin?: ((payload: FocusEvent) => void) | undefined;
92
+ readonly onFocusout?: ((payload: FocusEvent) => void) | undefined;
93
+ readonly onBlur?: ((payload: FocusEvent) => void) | undefined;
94
+ readonly onChange?: ((payload: Event) => void) | undefined;
95
+ readonly onBeforeinput?: ((payload: InputEvent) => void) | undefined;
96
+ readonly onFormdata?: ((payload: FormDataEvent) => void) | undefined;
97
+ readonly onInput?: ((payload: InputEvent) => void) | undefined;
98
+ readonly onReset?: ((payload: Event) => void) | undefined;
99
+ readonly onSubmit?: ((payload: SubmitEvent) => void) | undefined;
100
+ readonly onInvalid?: ((payload: Event) => void) | undefined;
101
+ readonly onFullscreenchange?: ((payload: Event) => void) | undefined;
102
+ readonly onFullscreenerror?: ((payload: Event) => void) | undefined;
103
+ readonly onLoad?: ((payload: Event) => void) | undefined;
104
+ readonly onError?: ((payload: Event) => void) | undefined;
105
+ readonly onKeydown?: ((payload: KeyboardEvent) => void) | undefined;
106
+ readonly onKeypress?: ((payload: KeyboardEvent) => void) | undefined;
107
+ readonly onKeyup?: ((payload: KeyboardEvent) => void) | undefined;
108
+ readonly onDblclick?: ((payload: MouseEvent) => void) | undefined;
109
+ readonly onMousedown?: ((payload: MouseEvent) => void) | undefined;
110
+ readonly onMouseenter?: ((payload: MouseEvent) => void) | undefined;
111
+ readonly onMouseleave?: ((payload: MouseEvent) => void) | undefined;
112
+ readonly onMousemove?: ((payload: MouseEvent) => void) | undefined;
113
+ readonly onMouseout?: ((payload: MouseEvent) => void) | undefined;
114
+ readonly onMouseover?: ((payload: MouseEvent) => void) | undefined;
115
+ readonly onMouseup?: ((payload: MouseEvent) => void) | undefined;
116
+ readonly onAbort?: ((payload: UIEvent) => void) | undefined;
117
+ readonly onCanplay?: ((payload: Event) => void) | undefined;
118
+ readonly onCanplaythrough?: ((payload: Event) => void) | undefined;
119
+ readonly onDurationchange?: ((payload: Event) => void) | undefined;
120
+ readonly onEmptied?: ((payload: Event) => void) | undefined;
121
+ readonly onEncrypted?: ((payload: MediaEncryptedEvent) => void) | undefined;
122
+ readonly onEnded?: ((payload: Event) => void) | undefined;
123
+ readonly onLoadeddata?: ((payload: Event) => void) | undefined;
124
+ readonly onLoadedmetadata?: ((payload: Event) => void) | undefined;
125
+ readonly onLoadstart?: ((payload: Event) => void) | undefined;
126
+ readonly onPause?: ((payload: Event) => void) | undefined;
127
+ readonly onPlay?: ((payload: Event) => void) | undefined;
128
+ readonly onPlaying?: ((payload: Event) => void) | undefined;
129
+ readonly onProgress?: ((payload: ProgressEvent<EventTarget>) => void) | undefined;
130
+ readonly onRatechange?: ((payload: Event) => void) | undefined;
131
+ readonly onSeeked?: ((payload: Event) => void) | undefined;
132
+ readonly onSeeking?: ((payload: Event) => void) | undefined;
133
+ readonly onStalled?: ((payload: Event) => void) | undefined;
134
+ readonly onSuspend?: ((payload: Event) => void) | undefined;
135
+ readonly onTimeupdate?: ((payload: Event) => void) | undefined;
136
+ readonly onVolumechange?: ((payload: Event) => void) | undefined;
137
+ readonly onWaiting?: ((payload: Event) => void) | undefined;
138
+ readonly onScroll?: ((payload: Event) => void) | undefined;
139
+ readonly onScrollend?: ((payload: Event) => void) | undefined;
140
+ readonly onTouchcancel?: ((payload: TouchEvent) => void) | undefined;
141
+ readonly onTouchend?: ((payload: TouchEvent) => void) | undefined;
142
+ readonly onTouchmove?: ((payload: TouchEvent) => void) | undefined;
143
+ readonly onTouchstart?: ((payload: TouchEvent) => void) | undefined;
144
+ readonly onAuxclick?: ((payload: PointerEvent) => void) | undefined;
145
+ readonly onClick?: ((payload: PointerEvent) => void) | undefined;
146
+ readonly onContextmenu?: ((payload: PointerEvent) => void) | undefined;
147
+ readonly onGotpointercapture?: ((payload: PointerEvent) => void) | undefined;
148
+ readonly onLostpointercapture?: ((payload: PointerEvent) => void) | undefined;
149
+ readonly onPointerdown?: ((payload: PointerEvent) => void) | undefined;
150
+ readonly onPointermove?: ((payload: PointerEvent) => void) | undefined;
151
+ readonly onPointerup?: ((payload: PointerEvent) => void) | undefined;
152
+ readonly onPointercancel?: ((payload: PointerEvent) => void) | undefined;
153
+ readonly onPointerenter?: ((payload: PointerEvent) => void) | undefined;
154
+ readonly onPointerleave?: ((payload: PointerEvent) => void) | undefined;
155
+ readonly onPointerover?: ((payload: PointerEvent) => void) | undefined;
156
+ readonly onPointerout?: ((payload: PointerEvent) => void) | undefined;
157
+ readonly onBeforetoggle?: ((payload: ToggleEvent) => void) | undefined;
158
+ readonly onToggle?: ((payload: ToggleEvent) => void) | undefined;
159
+ readonly onWheel?: ((payload: WheelEvent) => void) | undefined;
160
+ readonly onAnimationcancel?: ((payload: AnimationEvent) => void) | undefined;
161
+ readonly onAnimationstart?: ((payload: AnimationEvent) => void) | undefined;
162
+ readonly onAnimationend?: ((payload: AnimationEvent) => void) | undefined;
163
+ readonly onAnimationiteration?: ((payload: AnimationEvent) => void) | undefined;
164
+ readonly onSecuritypolicyviolation?: ((payload: SecurityPolicyViolationEvent) => void) | undefined;
165
+ readonly onTransitioncancel?: ((payload: TransitionEvent) => void) | undefined;
166
+ readonly onTransitionend?: ((payload: TransitionEvent) => void) | undefined;
167
+ readonly onTransitionrun?: ((payload: TransitionEvent) => void) | undefined;
168
+ readonly onTransitionstart?: ((payload: TransitionEvent) => void) | undefined;
169
+ readonly innerHTML?: string | undefined | undefined;
170
+ readonly color?: string | undefined | undefined;
171
+ readonly lang?: string | undefined | undefined;
172
+ readonly tabindex?: (string | number) | undefined;
173
+ readonly 'aria-activedescendant'?: string | undefined | undefined;
174
+ readonly 'aria-atomic'?: (boolean | "true" | "false") | undefined;
175
+ readonly 'aria-autocomplete'?: "none" | "inline" | "list" | "both" | undefined | undefined;
176
+ readonly 'aria-busy'?: (boolean | "true" | "false") | undefined;
177
+ readonly 'aria-checked'?: (boolean | "true" | "false") | "mixed" | undefined;
178
+ readonly 'aria-colcount'?: (string | number) | undefined;
179
+ readonly 'aria-colindex'?: (string | number) | undefined;
180
+ readonly 'aria-colspan'?: (string | number) | undefined;
181
+ readonly 'aria-controls'?: string | undefined | undefined;
182
+ readonly 'aria-current'?: "page" | "time" | (boolean | "true" | "false") | "step" | "location" | "date" | undefined;
183
+ readonly 'aria-describedby'?: string | undefined | undefined;
184
+ readonly 'aria-details'?: string | undefined | undefined;
185
+ readonly 'aria-disabled'?: (boolean | "true" | "false") | undefined;
186
+ readonly 'aria-dropeffect'?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined | undefined;
187
+ readonly 'aria-errormessage'?: string | undefined | undefined;
188
+ readonly 'aria-expanded'?: (boolean | "true" | "false") | undefined;
189
+ readonly 'aria-flowto'?: string | undefined | undefined;
190
+ readonly 'aria-grabbed'?: (boolean | "true" | "false") | undefined;
191
+ readonly 'aria-haspopup'?: "grid" | "tree" | "dialog" | "menu" | (boolean | "true" | "false") | "listbox" | undefined;
192
+ readonly 'aria-invalid'?: (boolean | "true" | "false") | "grammar" | "spelling" | undefined;
193
+ readonly 'aria-keyshortcuts'?: string | undefined | undefined;
194
+ readonly 'aria-labelledby'?: string | undefined | undefined;
195
+ readonly 'aria-level'?: (string | number) | undefined;
196
+ readonly 'aria-live'?: "off" | "assertive" | "polite" | undefined | undefined;
197
+ readonly 'aria-modal'?: (boolean | "true" | "false") | undefined;
198
+ readonly 'aria-multiline'?: (boolean | "true" | "false") | undefined;
199
+ readonly 'aria-multiselectable'?: (boolean | "true" | "false") | undefined;
200
+ readonly 'aria-orientation'?: "horizontal" | "vertical" | undefined | undefined;
201
+ readonly 'aria-owns'?: string | undefined | undefined;
202
+ readonly 'aria-placeholder'?: string | undefined | undefined;
203
+ readonly 'aria-posinset'?: (string | number) | undefined;
204
+ readonly 'aria-pressed'?: (boolean | "true" | "false") | "mixed" | undefined;
205
+ readonly 'aria-readonly'?: (boolean | "true" | "false") | undefined;
206
+ readonly 'aria-relevant'?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined | undefined;
207
+ readonly 'aria-required'?: (boolean | "true" | "false") | undefined;
208
+ readonly 'aria-roledescription'?: string | undefined | undefined;
209
+ readonly 'aria-rowcount'?: (string | number) | undefined;
210
+ readonly 'aria-rowindex'?: (string | number) | undefined;
211
+ readonly 'aria-rowspan'?: (string | number) | undefined;
212
+ readonly 'aria-selected'?: (boolean | "true" | "false") | undefined;
213
+ readonly 'aria-setsize'?: (string | number) | undefined;
214
+ readonly 'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined | undefined;
215
+ readonly 'aria-valuemax'?: (string | number) | undefined;
216
+ readonly 'aria-valuemin'?: (string | number) | undefined;
217
+ readonly 'aria-valuenow'?: (string | number) | undefined;
218
+ readonly 'aria-valuetext'?: string | undefined | undefined;
219
+ readonly ref?: import("vue").VNodeRef | undefined;
220
+ readonly ref_for?: boolean | undefined | undefined;
221
+ readonly ref_key?: string | undefined | undefined;
222
+ readonly accesskey?: string | undefined | undefined;
223
+ readonly contenteditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
224
+ readonly draggable?: (boolean | "true" | "false") | undefined;
225
+ readonly enterkeyhint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined | undefined;
226
+ readonly enterKeyHint?: "search" | "done" | "previous" | "next" | "enter" | "go" | "send" | undefined;
227
+ readonly inert?: (boolean | "true" | "false") | undefined;
228
+ readonly spellcheck?: (boolean | "true" | "false") | undefined;
229
+ readonly translate?: "yes" | "no" | undefined | undefined;
230
+ readonly radiogroup?: string | undefined | undefined;
231
+ readonly about?: string | undefined | undefined;
232
+ readonly datatype?: string | undefined | undefined;
233
+ readonly inlist?: any;
234
+ readonly property?: string | undefined | undefined;
235
+ readonly resource?: string | undefined | undefined;
236
+ readonly typeof?: string | undefined | undefined;
237
+ readonly vocab?: string | undefined | undefined;
238
+ readonly autocapitalize?: string | undefined | undefined;
239
+ readonly autocorrect?: string | undefined | undefined;
240
+ readonly autosave?: string | undefined | undefined;
241
+ readonly itemprop?: string | undefined | undefined;
242
+ readonly itemscope?: (boolean | "true" | "false") | undefined;
243
+ readonly itemtype?: string | undefined | undefined;
244
+ readonly itemid?: string | undefined | undefined;
245
+ readonly itemref?: string | undefined | undefined;
246
+ readonly security?: string | undefined | undefined;
247
+ readonly unselectable?: "on" | "off" | undefined | undefined;
248
+ readonly inputmode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined | undefined;
249
+ readonly is?: string | undefined | undefined;
250
+ readonly exportparts?: string | undefined;
251
+ readonly part?: string | undefined;
252
+ readonly popover?: (import("../../index.ts").PopoverMode | "" | boolean) | undefined;
253
+ readonly onVnodeBeforeMount?: (((vnode: import("vue").VNode) => void) | ((vnode: import("vue").VNode) => void)[]) | undefined;
254
+ readonly onVnodeMounted?: (((vnode: import("vue").VNode) => void) | ((vnode: import("vue").VNode) => void)[]) | undefined;
255
+ readonly onVnodeBeforeUpdate?: (((vnode: import("vue").VNode, oldVNode: import("vue").VNode) => void) | ((vnode: import("vue").VNode, oldVNode: import("vue").VNode) => void)[]) | undefined;
256
+ readonly onVnodeUpdated?: (((vnode: import("vue").VNode, oldVNode: import("vue").VNode) => void) | ((vnode: import("vue").VNode, oldVNode: import("vue").VNode) => void)[]) | undefined;
257
+ readonly onVnodeBeforeUnmount?: (((vnode: import("vue").VNode) => void) | ((vnode: import("vue").VNode) => void)[]) | undefined;
258
+ readonly onVnodeUnmounted?: (((vnode: import("vue").VNode) => void) | ((vnode: import("vue").VNode) => void)[]) | undefined;
259
+ readonly onCancel?: ((payload: Event) => void) | undefined;
260
+ readonly rootClass?: unknown;
261
+ readonly closedby?: import("../../index.ts").DialogClosedBy | undefined;
262
+ readonly onClose?: (() => any) | undefined;
263
+ readonly onOpen?: (() => any) | undefined;
264
+ readonly "onUpdate:open"?: ((value: boolean) => any) | undefined;
265
+ readonly onNavigate?: ((index: number) => any) | undefined;
266
+ readonly onAfterLeave?: (() => any) | undefined;
267
+ readonly "onUpdate:tab"?: ((value: string | number | undefined) => any) | undefined;
268
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps>>> & (typeof globalThis extends {
269
+ __VLS_PROPS_FALLBACK: infer P;
270
+ } ? P : {});
271
+ expose: (exposed: import("vue").ShallowUnwrapRef<{
272
+ submit: () => Promise<boolean>;
273
+ confirmDiscard: () => Promise<boolean>;
274
+ close: () => Promise<boolean>;
275
+ }>) => void;
276
+ attrs: any;
277
+ slots: {
278
+ 'title-trailing'?: (props: {}) => any;
279
+ } & {
280
+ actions?: (props: {}) => any;
281
+ } & {
282
+ skeleton?: (props: {}) => any;
283
+ } & {
284
+ default?: (props: {}) => any;
285
+ } & {
286
+ default?: (props: {}) => any;
287
+ } & {
288
+ footer?: (props: {
289
+ submit: () => Promise<boolean>;
290
+ cancel: () => Promise<void>;
291
+ }) => any;
292
+ };
293
+ emit: (((evt: "close") => void) & ((evt: "delete") => void) & ((evt: "open") => void) & ((evt: "submitted") => void) & ((evt: "afterLeave") => void)) & ((event: "update:open", value: boolean) => void);
294
+ }>) => import("vue").VNode & {
295
+ __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
296
+ };
297
+ declare const _default: typeof __VLS_export;
298
+ export default _default;
299
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
300
+ [K in keyof T]: T[K];
301
+ } : {
302
+ [K in keyof T as K]: T[K];
303
+ }) & {};
@@ -26,6 +26,7 @@
26
26
  :id="formId"
27
27
  class="k-form-page-form"
28
28
  :form="form"
29
+ :guard="false"
29
30
  @submitted="emit('submitted')"
30
31
  @invalid="() => emit('invalid')"
31
32
  @reset="() => emit('reset')"