@pixelium/web-vue 0.0.3-beta → 0.0.4

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 (79) hide show
  1. package/dist/index.d.ts +10 -1
  2. package/dist/pixelium-vue.cjs +2 -2
  3. package/dist/pixelium-vue.css +1 -1
  4. package/dist/pixelium-vue.js +563 -558
  5. package/dist/pixelium-vue.umd.cjs +2 -2
  6. package/es/alert/draw.d.ts +6 -0
  7. package/es/alert/index.d.ts +29 -0
  8. package/es/alert/type.d.ts +83 -0
  9. package/es/aside/index.css +1 -0
  10. package/es/aside/index.js +1 -1
  11. package/es/auto-complete/index.css +2 -2
  12. package/es/auto-complete/index.js +2 -2
  13. package/es/badge/draw.d.ts +1 -0
  14. package/es/badge/index.d.ts +25 -0
  15. package/es/badge/type.d.ts +69 -0
  16. package/es/button/index.css +1 -8
  17. package/es/button/index.js +4 -4
  18. package/es/button-group/index.js +2 -2
  19. package/es/checkbox/index.js +2 -2
  20. package/es/checkbox-group/index.js +1 -1
  21. package/es/col/index.js +1 -1
  22. package/es/container/index.css +1 -0
  23. package/es/dialog/dialog-wrapped.d.ts +52 -0
  24. package/es/dialog/dialog.d.ts +51 -0
  25. package/es/dialog/index.d.ts +5 -0
  26. package/es/dialog/type.d.ts +308 -0
  27. package/es/footer/index.css +1 -0
  28. package/es/form-item/index.css +0 -3
  29. package/es/form-item/index.js +1 -1
  30. package/es/grid-item/index.js +1 -1
  31. package/es/header/index.css +1 -0
  32. package/es/index.css +1 -1
  33. package/es/index.js +9 -8
  34. package/es/input/index.css +2 -2
  35. package/es/input/index.js +2 -2
  36. package/es/input-group/index.js +2 -2
  37. package/es/input-group-label/index.js +2 -2
  38. package/es/input-number/index.css +2 -2
  39. package/es/input-number/index.js +2 -2
  40. package/es/input-tag/index.css +2 -2
  41. package/es/input-tag/index.js +2 -2
  42. package/es/link/index.css +1 -6
  43. package/es/main/index.css +4 -0
  44. package/es/main/index.d.ts +4 -1
  45. package/es/main/index.js +7 -3
  46. package/es/main/type.d.ts +7 -0
  47. package/es/message-box/index.js +1 -1
  48. package/es/popconfirm/index.d.ts +31 -0
  49. package/es/popconfirm/type.d.ts +199 -0
  50. package/es/popup-portal/index.d.ts +15 -0
  51. package/es/popup-portal/type.d.ts +3 -0
  52. package/es/popup-wrapper/use-popup-wrapper-manager.d.ts +1 -0
  53. package/es/progress/draw.d.ts +6 -0
  54. package/es/progress/index.d.ts +31 -0
  55. package/es/progress/type.d.ts +67 -0
  56. package/es/radio/index.js +1 -1
  57. package/es/radio-group/index.js +1 -1
  58. package/es/select/index.css +2 -2
  59. package/es/select/index.js +2 -2
  60. package/es/share/hook/use-dark-mode.js +3 -3
  61. package/es/share/hook/use-polling.d.ts +2 -0
  62. package/es/share/hook/use-watch-global-css-var.js +2 -2
  63. package/es/share/style/index.css +5 -0
  64. package/es/share/util/locale.d.ts +50 -0
  65. package/es/slider/index.css +3 -0
  66. package/es/slider/index.js +1 -1
  67. package/es/switch/index.js +1 -1
  68. package/es/textarea/index.css +2 -2
  69. package/es/textarea/index.js +1 -1
  70. package/package.json +1 -1
  71. package/coverage/base.css +0 -224
  72. package/coverage/block-navigation.js +0 -87
  73. package/coverage/coverage-final.json +0 -106
  74. package/coverage/favicon.png +0 -0
  75. package/coverage/index.html +0 -926
  76. package/coverage/prettify.css +0 -1
  77. package/coverage/prettify.js +0 -2
  78. package/coverage/sort-arrow-sprite.png +0 -0
  79. package/coverage/sorter.js +0 -210
@@ -0,0 +1,6 @@
1
+ import type { RgbaColor } from '../share/type';
2
+ import type { AlertProps } from './type';
3
+ export declare function getBackgroundColor(variant: AlertProps['variant'], type: AlertProps['type'], palette: RgbaColor[] | null): RgbaColor | null;
4
+ export declare function getBorderColor(variant: AlertProps['variant'], type: AlertProps['type'], palette: RgbaColor[] | null): RgbaColor | null;
5
+ export declare const drawBorder: (ctx: CanvasRenderingContext2D, width: number, height: number, center: [number, number][], borderRadius: number[], rad: [number, number][], borderColor: RgbaColor, pixelSize: number) => void;
6
+ export declare const getTextColorWithPalette: (palette: RgbaColor[] | null, type: AlertProps["variant"]) => string | undefined;
@@ -0,0 +1,29 @@
1
+ import type { AlertProps } from './type';
2
+ declare var __VLS_1: {}, __VLS_28: {}, __VLS_30: {};
3
+ type __VLS_Slots = {} & {
4
+ icon?: (props: typeof __VLS_1) => any;
5
+ } & {
6
+ title?: (props: typeof __VLS_28) => any;
7
+ } & {
8
+ default?: (props: typeof __VLS_30) => any;
9
+ };
10
+ declare const __VLS_component: import("vue").DefineComponent<AlertProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
11
+ close: (e: MouseEvent) => any;
12
+ }, string, import("vue").PublicProps, Readonly<AlertProps> & Readonly<{
13
+ onClose?: ((e: MouseEvent) => any) | undefined;
14
+ }>, {
15
+ type: "info" | "success" | "warning" | "error" | "loading" | "normal" | "sakura";
16
+ variant: "primary" | "plain";
17
+ shape: "rect" | "round";
18
+ closable: boolean;
19
+ textAlign: "start" | "center" | "end";
20
+ iconPlacement: "start" | "text-leading";
21
+ showIcon: boolean;
22
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
23
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
24
+ export default _default;
25
+ type __VLS_WithSlots<T, S> = T & {
26
+ new (): {
27
+ $slots: S;
28
+ };
29
+ };
@@ -0,0 +1,83 @@
1
+ import type { NumberOrPercentage } from '../share/type';
2
+ export type AlertProps = {
3
+ /**
4
+ * @property {NumberOrPercentage | NumberOrPercentage[]} [borderRadius]
5
+ * @version 0.0.4
6
+ */
7
+ borderRadius?: NumberOrPercentage | NumberOrPercentage[];
8
+ /**
9
+ * @property {'rect' | 'round'} [shape='rect']
10
+ * @version 0.0.4
11
+ */
12
+ shape?: 'rect' | 'round';
13
+ /**
14
+ * @property {'primary' | 'plain'} [variant='plain']
15
+ * @version 0.0.4
16
+ */
17
+ variant?: 'primary' | 'plain';
18
+ /**
19
+ * @property {'info' | 'success' | 'warning' | 'error' | 'loading' | 'normal' | 'sakura'} [type='primary']
20
+ * @version 0.0.4
21
+ */
22
+ type?: 'info' | 'success' | 'warning' | 'error' | 'loading' | 'normal' | 'sakura';
23
+ /**
24
+ * @property {'start' | 'center' | 'end'} [textAlign='start']
25
+ * @version 0.0.4
26
+ */
27
+ textAlign?: 'start' | 'center' | 'end';
28
+ /**
29
+ * @property {string} [title]
30
+ * @version 0.0.4
31
+ */
32
+ title?: string;
33
+ /**
34
+ * @property {string} [color]
35
+ * @version 0.0.4
36
+ */
37
+ color?: string;
38
+ /**
39
+ * @property {boolean} [closable=false]
40
+ * @version 0.0.4
41
+ */
42
+ closable?: boolean;
43
+ /**
44
+ * @property {'start' | 'text-leading'} [iconPlacement='text-leading']
45
+ * @version 0.0.4
46
+ */
47
+ iconPlacement?: 'start' | 'text-leading';
48
+ /**
49
+ * @property {boolean} [showIcon='true']
50
+ * @version 0.0.4
51
+ */
52
+ showIcon?: boolean;
53
+ /**
54
+ * @property {boolean} [pollSizeChange=false]
55
+ * @version 0.0.4
56
+ */
57
+ pollSizeChange?: boolean;
58
+ };
59
+ export type AlertEvents = {
60
+ /**
61
+ * @event close
62
+ * @version 0.0.4
63
+ * @param {MouseEvent} e
64
+ */
65
+ close: [e: MouseEvent];
66
+ };
67
+ export type AlertSlots = {
68
+ /**
69
+ * @slot default
70
+ * @version 0.0.4
71
+ */
72
+ default: {};
73
+ /**
74
+ * @slot title
75
+ * @version 0.0.4
76
+ */
77
+ title: {};
78
+ /**
79
+ * @slot icon
80
+ * @version 0.0.4
81
+ */
82
+ icon: {};
83
+ };
@@ -4,6 +4,7 @@
4
4
  background-color: var(--px-neutral-1);
5
5
  color: var(--px-neutral-10);
6
6
  width: 300px;
7
+ box-sizing: border-box;
7
8
  }
8
9
  .px-aside__bordered {
9
10
  border-right: 2px solid var(--px-neutral-3);
package/es/aside/index.js CHANGED
@@ -21,7 +21,7 @@ var aside_default = /* @__PURE__ */ defineComponent({
21
21
  setup(__props) {
22
22
  var _instance$parent;
23
23
  const instance = getCurrentInstance();
24
- const asideCounter = ref((instance === null || instance === void 0 || (_instance$parent = instance.parent) === null || _instance$parent === void 0 ? void 0 : _instance$parent.type.name) === "Container").value ? inject(CONTAINER_PROVIDE) : void 0;
24
+ const asideCounter = ref((instance === null || instance === void 0 || (_instance$parent = instance.parent) === null || _instance$parent === void 0 ? void 0 : _instance$parent.type.name) === "Container").value ? inject(CONTAINER_PROVIDE, void 0) : void 0;
25
25
  onMounted(() => {
26
26
  if (asideCounter) asideCounter.value += 1;
27
27
  });
@@ -13,6 +13,7 @@
13
13
  height: var(--auto-complete-size);
14
14
  cursor: text;
15
15
  transition: 0.25s all;
16
+ flex-grow: 1;
16
17
  }
17
18
  .px-auto-complete.px-auto-complete {
18
19
  font-size: 14px;
@@ -46,8 +47,7 @@
46
47
  padding: 0;
47
48
  }
48
49
  .px-auto-complete-inner:focus-visible {
49
- outline-color: var(--px-neutral-10);
50
- outline-offset: var(--px-bit);
50
+ outline: none;
51
51
  }
52
52
  .px-auto-complete-inner:disabled {
53
53
  color: var(--px-neutral-10);
@@ -97,8 +97,8 @@ var auto_complete_default = /* @__PURE__ */ defineComponent({
97
97
  ref(false),
98
98
  ref(false)
99
99
  ];
100
- const inputGroupProvide = inject(INPUT_GROUP_PROVIDE);
101
- const formItemProvide = inject(FORM_ITEM_PROVIDE);
100
+ const inputGroupProvide = inject(INPUT_GROUP_PROVIDE, void 0);
101
+ const formItemProvide = inject(FORM_ITEM_PROVIDE, void 0);
102
102
  const borderRadiusComputed = createProvideComputed("borderRadius", [innerInputGroup.value && inputGroupProvide, props]);
103
103
  const sizeComputed = createProvideComputed("size", () => [
104
104
  innerInputGroup.value && inputGroupProvide,
@@ -0,0 +1 @@
1
+ export declare const drawBorder: (ctx: CanvasRenderingContext2D, width: number, height: number, center: [number, number][], borderRadius: number[], rad: [number, number][], borderColor: string, pixelSize: number) => void;
@@ -0,0 +1,25 @@
1
+ import type { BadgeProps } from './type';
2
+ declare var __VLS_1: {}, __VLS_3: {};
3
+ type __VLS_Slots = {} & {
4
+ default?: (props: typeof __VLS_1) => any;
5
+ } & {
6
+ content?: (props: typeof __VLS_3) => any;
7
+ };
8
+ declare const __VLS_component: import("vue").DefineComponent<BadgeProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<BadgeProps> & Readonly<{}>, {
9
+ value: number | string;
10
+ theme: "primary" | "sakura" | "success" | "warning" | "danger";
11
+ pollSizeChange: boolean;
12
+ offset: number | [number, number] | {
13
+ x?: number;
14
+ y?: number;
15
+ };
16
+ visible: boolean;
17
+ dot: boolean;
18
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
19
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
20
+ export default _default;
21
+ type __VLS_WithSlots<T, S> = T & {
22
+ new (): {
23
+ $slots: S;
24
+ };
25
+ };
@@ -0,0 +1,69 @@
1
+ import type { RestAttrs } from '../share/type';
2
+ export type BadgeProps = {
3
+ /**
4
+ * @property {number | string} [value='']
5
+ * @version 0.0.4
6
+ */
7
+ value?: number | string;
8
+ /**
9
+ * @property {number} [max]
10
+ * @version 0.0.4
11
+ */
12
+ max?: number;
13
+ /**
14
+ * @property {boolean} [dot=false]
15
+ * @version 0.0.4
16
+ */
17
+ dot?: boolean;
18
+ /**
19
+ * @property {'primary' | 'sakura' | 'success' | 'warning' | 'danger'} [theme='danger']
20
+ * @version 0.0.4
21
+ */
22
+ theme?: 'primary' | 'sakura' | 'success' | 'warning' | 'danger';
23
+ /**
24
+ * @property {boolean} [visible=true]
25
+ * @version 0.0.4
26
+ */
27
+ visible?: boolean;
28
+ /**
29
+ * @property {number | [number, number] | { x?: number; y?: number }} [offset=0]
30
+ * @version 0.0.4
31
+ */
32
+ offset?: number | [number, number] | {
33
+ x?: number;
34
+ y?: number;
35
+ };
36
+ /**
37
+ * @property {string} [color]
38
+ * @version 0.0.4
39
+ */
40
+ color?: string;
41
+ /**
42
+ * @property {string} [borderColor]
43
+ * @version 0.0.4
44
+ */
45
+ borderColor?: string;
46
+ /**
47
+ * @property {RestAttrs} [contentProps]
48
+ * @version 0.0.4
49
+ */
50
+ contentProps?: RestAttrs;
51
+ /**
52
+ * @property {boolean} [pollSizeChange=false]
53
+ * @version 0.0.4
54
+ */
55
+ pollSizeChange?: boolean;
56
+ };
57
+ export type BadgeSlots = {
58
+ /**
59
+ * @slot default
60
+ * @version 0.0.4
61
+ */
62
+ default: {};
63
+ /**
64
+ * @slot content
65
+ * @param {string | string} value
66
+ * @version 0.0.4
67
+ */
68
+ content: {};
69
+ };
@@ -25,8 +25,7 @@
25
25
  transition: 0.25s;
26
26
  z-index: 0;
27
27
  box-sizing: border-box;
28
- }
29
- .px-button.px-button {
28
+ outline-offset: var(--px-bit);
30
29
  font-size: 14px;
31
30
  }
32
31
  .px-button.px-button__small.px-button__inner {
@@ -101,7 +100,6 @@
101
100
  }
102
101
  .px-button.px-button__primary:focus-visible {
103
102
  outline-color: var(--px-primary-6);
104
- outline-offset: var(--px-bit);
105
103
  }
106
104
  .px-button.px-button__primary.px-button__plain {
107
105
  --text-color: var(--px-primary-6);
@@ -151,7 +149,6 @@
151
149
  }
152
150
  .px-button.px-button__sakura:focus-visible {
153
151
  outline-color: var(--px-sakura-6);
154
- outline-offset: var(--px-bit);
155
152
  }
156
153
  .px-button.px-button__sakura.px-button__plain {
157
154
  --text-color: var(--px-sakura-6);
@@ -201,7 +198,6 @@
201
198
  }
202
199
  .px-button.px-button__success:focus-visible {
203
200
  outline-color: var(--px-success-6);
204
- outline-offset: var(--px-bit);
205
201
  }
206
202
  .px-button.px-button__success.px-button__plain {
207
203
  --text-color: var(--px-success-6);
@@ -251,7 +247,6 @@
251
247
  }
252
248
  .px-button.px-button__warning:focus-visible {
253
249
  outline-color: var(--px-warning-6);
254
- outline-offset: var(--px-bit);
255
250
  }
256
251
  .px-button.px-button__warning.px-button__plain {
257
252
  --text-color: var(--px-warning-6);
@@ -301,7 +296,6 @@
301
296
  }
302
297
  .px-button.px-button__danger:focus-visible {
303
298
  outline-color: var(--px-danger-6);
304
- outline-offset: var(--px-bit);
305
299
  }
306
300
  .px-button.px-button__danger.px-button__plain {
307
301
  --text-color: var(--px-danger-6);
@@ -354,7 +348,6 @@
354
348
  }
355
349
  .px-button.px-button__info:focus-visible {
356
350
  outline-color: var(--px-neutral-10);
357
- outline-offset: var(--px-bit);
358
351
  }
359
352
  .px-button.px-button__info.px-button__disabled {
360
353
  --text-color: var(--px-neutral-7);
@@ -57,10 +57,10 @@ var button_default = /* @__PURE__ */ defineComponent({
57
57
  ref(false),
58
58
  ref(false)
59
59
  ];
60
- const buttonGroupProvide = inject(BUTTON_GROUP_PROVIDE);
61
- const inputGroupProvide = inject(INPUT_GROUP_PROVIDE);
62
- const formProps = inject(FORM_PROVIDE);
63
- const formItemProvide = inject(FORM_ITEM_PROVIDE);
60
+ const buttonGroupProvide = inject(BUTTON_GROUP_PROVIDE, void 0);
61
+ const inputGroupProvide = inject(INPUT_GROUP_PROVIDE, void 0);
62
+ const formProps = inject(FORM_PROVIDE, void 0);
63
+ const formItemProvide = inject(FORM_ITEM_PROVIDE, void 0);
64
64
  const borderRadiusComputed = createProvideComputed("borderRadius", [
65
65
  innerButtonGroup.value && buttonGroupProvide,
66
66
  innerInputGroup.value && inputGroupProvide,
@@ -22,8 +22,8 @@ var button_group_default = /* @__PURE__ */ defineComponent({
22
22
  },
23
23
  setup(__props) {
24
24
  const props = __props;
25
- const formProvide = inject(FORM_PROVIDE);
26
- const formItemProvide = inject(FORM_ITEM_PROVIDE);
25
+ const formProvide = inject(FORM_PROVIDE, void 0);
26
+ const formItemProvide = inject(FORM_ITEM_PROVIDE, void 0);
27
27
  const sizeComputed = createProvideComputed("size", () => [
28
28
  props.size && props,
29
29
  formItemProvide,
@@ -60,8 +60,8 @@ var checkbox_default = /* @__PURE__ */ defineComponent({
60
60
  defaultField: "defaultValue",
61
61
  transform: (val) => !!val
62
62
  });
63
- const formItemProvide = inject(FORM_ITEM_PROVIDE);
64
- const checkboxGroupProvide = inject(CHECKBOX_GROUP_PROVIDE);
63
+ const formItemProvide = inject(FORM_ITEM_PROVIDE, void 0);
64
+ const checkboxGroupProvide = inject(CHECKBOX_GROUP_PROVIDE, void 0);
65
65
  const sizeComputed = createProvideComputed("size", () => [
66
66
  checkboxGroupProvide,
67
67
  props.size && props,
@@ -35,7 +35,7 @@ var checkbox_group_default = /* @__PURE__ */ defineComponent({
35
35
  },
36
36
  defaultField: "defaultValue"
37
37
  });
38
- const formItemProvide = inject(FORM_ITEM_PROVIDE);
38
+ const formItemProvide = inject(FORM_ITEM_PROVIDE, void 0);
39
39
  const disabledComputed = createProvideComputed("disabled", [formItemProvide, props], "or");
40
40
  const readonlyComputed = createProvideComputed("readonly", [formItemProvide, props], "or");
41
41
  const getKey = (option) => {
package/es/col/index.js CHANGED
@@ -22,7 +22,7 @@ var col_default = /* @__PURE__ */ defineComponent({
22
22
  return props.span[widthType.value] || 24;
23
23
  });
24
24
  const instance = getCurrentInstance();
25
- const gutter = ref((instance === null || instance === void 0 || (_instance$parent = instance.parent) === null || _instance$parent === void 0 ? void 0 : _instance$parent.type.name) === "Row").value && inject("px-row-provide") || ref({
25
+ const gutter = ref((instance === null || instance === void 0 || (_instance$parent = instance.parent) === null || _instance$parent === void 0 ? void 0 : _instance$parent.type.name) === "Row").value && inject("px-row-provide", void 0) || ref({
26
26
  x: 0,
27
27
  y: 0
28
28
  });
@@ -2,6 +2,7 @@
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  flex: 1;
5
+ box-sizing: border-box;
5
6
  }
6
7
  .px-container.px-container__has-aside {
7
8
  flex-direction: row;
@@ -0,0 +1,52 @@
1
+ import type { DialogExpose, DialogProps } from './type';
2
+ type __VLS_Props = DialogProps & {
3
+ onBeforeOk?: () => Promise<boolean | void> | boolean | void;
4
+ };
5
+ declare var __VLS_11: {}, __VLS_14: {}, __VLS_17: {}, __VLS_20: {};
6
+ type __VLS_Slots = {} & {
7
+ title?: (props: typeof __VLS_11) => any;
8
+ } & {
9
+ icon?: (props: typeof __VLS_14) => any;
10
+ } & {
11
+ default?: (props: typeof __VLS_17) => any;
12
+ } & {
13
+ footer?: (props: typeof __VLS_20) => any;
14
+ };
15
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, DialogExpose, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
16
+ cancel: (event: MouseEvent | KeyboardEvent) => any;
17
+ close: () => any;
18
+ open: () => any;
19
+ "update:visible": (visible: boolean) => any;
20
+ beforeOk: () => any;
21
+ ok: (event: MouseEvent) => any;
22
+ afterOpen: () => any;
23
+ afterClose: () => any;
24
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
25
+ onCancel?: ((event: MouseEvent | KeyboardEvent) => any) | undefined;
26
+ onClose?: (() => any) | undefined;
27
+ onOpen?: (() => any) | undefined;
28
+ "onUpdate:visible"?: ((visible: boolean) => any) | undefined;
29
+ onBeforeOk?: (() => any) | undefined;
30
+ onOk?: ((event: MouseEvent) => any) | undefined;
31
+ onAfterOpen?: (() => any) | undefined;
32
+ onAfterClose?: (() => any) | undefined;
33
+ }>, {
34
+ loading: boolean;
35
+ title: string;
36
+ mask: boolean;
37
+ closable: boolean;
38
+ visible: boolean | null;
39
+ defaultVisible: boolean | null;
40
+ destroyOnHide: boolean;
41
+ maskClosable: boolean;
42
+ escToClose: boolean;
43
+ showCancel: boolean;
44
+ showFooter: boolean;
45
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
46
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
47
+ export default _default;
48
+ type __VLS_WithSlots<T, S> = T & {
49
+ new (): {
50
+ $slots: S;
51
+ };
52
+ };
@@ -0,0 +1,51 @@
1
+ import type { DialogProps } from './type';
2
+ type __VLS_Props = Omit<DialogProps, 'defaultVisible' | 'root'> & {
3
+ onBeforeOk?: () => Promise<boolean | void> | boolean | void;
4
+ };
5
+ declare var __VLS_23: {}, __VLS_25: {}, __VLS_32: {}, __VLS_34: {};
6
+ type __VLS_Slots = {} & {
7
+ icon?: (props: typeof __VLS_23) => any;
8
+ } & {
9
+ title?: (props: typeof __VLS_25) => any;
10
+ } & {
11
+ default?: (props: typeof __VLS_32) => any;
12
+ } & {
13
+ footer?: (props: typeof __VLS_34) => any;
14
+ };
15
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
16
+ cancel: (event: MouseEvent | KeyboardEvent) => any;
17
+ close: () => any;
18
+ open: () => any;
19
+ "update:visible": (visible: boolean) => any;
20
+ beforeOk: () => any;
21
+ ok: (event: MouseEvent) => any;
22
+ afterOpen: () => any;
23
+ afterClose: () => any;
24
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
25
+ onCancel?: ((event: MouseEvent | KeyboardEvent) => any) | undefined;
26
+ onClose?: (() => any) | undefined;
27
+ onOpen?: (() => any) | undefined;
28
+ "onUpdate:visible"?: ((visible: boolean) => any) | undefined;
29
+ onBeforeOk?: (() => any) | undefined;
30
+ onOk?: ((event: MouseEvent) => any) | undefined;
31
+ onAfterOpen?: (() => any) | undefined;
32
+ onAfterClose?: (() => any) | undefined;
33
+ }>, {
34
+ loading: boolean;
35
+ title: string;
36
+ mask: boolean;
37
+ closable: boolean;
38
+ visible: boolean | null;
39
+ destroyOnHide: boolean;
40
+ maskClosable: boolean;
41
+ escToClose: boolean;
42
+ showCancel: boolean;
43
+ showFooter: boolean;
44
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
45
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
46
+ export default _default;
47
+ type __VLS_WithSlots<T, S> = T & {
48
+ new (): {
49
+ $slots: S;
50
+ };
51
+ };
@@ -0,0 +1,5 @@
1
+ import type { DialogOptions, DialogReturn, DialogEvents } from './type';
2
+ import type { EmitEvent } from '../share/type';
3
+ import DialogWrapped from './dialog-wrapped.ts';
4
+ declare const _default: typeof DialogWrapped & { [key in DialogOptions["type"] & string]: (options: (Omit<DialogOptions, "type"> & Omit<EmitEvent<DialogEvents>, "update:visible">) | string) => DialogReturn; };
5
+ export default _default;