toku-ui 0.22.0 → 0.23.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/dist/components/TDialog/TDialog.d.ts +18 -34
- package/dist/components/TDialog/TDialog.d.ts.map +1 -1
- package/dist/components/TDialog/TDialog.types.d.ts +0 -1
- package/dist/components/TDialog/TDialog.types.d.ts.map +1 -1
- package/dist/composables/dialog.d.ts +10 -0
- package/dist/composables/dialog.d.ts.map +1 -0
- package/dist/composables/index.d.ts +1 -0
- package/dist/composables/index.d.ts.map +1 -1
- package/dist/index.es.js +1212 -1203
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +23 -23
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
-
import { Nullable } from '../../types';
|
|
3
2
|
export declare const TDialog: import("vue").DefineComponent<{
|
|
4
3
|
title: {
|
|
5
4
|
type: PropType<string>;
|
|
@@ -9,33 +8,28 @@ export declare const TDialog: import("vue").DefineComponent<{
|
|
|
9
8
|
type: PropType<string>;
|
|
10
9
|
required: true;
|
|
11
10
|
};
|
|
12
|
-
open: PropType<boolean | undefined>;
|
|
13
11
|
color: PropType<"primary" | "error" | "success" | "warning" | "info" | "in-process" | "in-process-dark" | undefined>;
|
|
14
12
|
icon: PropType<string | undefined>;
|
|
15
13
|
cancellable: PropType<boolean | undefined>;
|
|
16
|
-
cancelText:
|
|
17
|
-
|
|
18
|
-
default: string;
|
|
19
|
-
};
|
|
20
|
-
confirmText: {
|
|
21
|
-
type: PropType<string | undefined>;
|
|
22
|
-
default: string;
|
|
23
|
-
};
|
|
14
|
+
cancelText: PropType<string | undefined>;
|
|
15
|
+
confirmText: PropType<string | undefined>;
|
|
24
16
|
}, {
|
|
17
|
+
props: import("vue").ComputedRef<{
|
|
18
|
+
cancelText: string;
|
|
19
|
+
confirmText: string;
|
|
20
|
+
} & Readonly<Readonly<import("vue/types/common").LooseRequired<{
|
|
21
|
+
title: string;
|
|
22
|
+
message: string;
|
|
23
|
+
} & {
|
|
24
|
+
color?: "primary" | "error" | "success" | "warning" | "info" | "in-process" | "in-process-dark" | undefined;
|
|
25
|
+
icon?: string | undefined;
|
|
26
|
+
cancellable?: boolean | undefined;
|
|
27
|
+
cancelText?: string | undefined;
|
|
28
|
+
confirmText?: string | undefined;
|
|
29
|
+
}>>>>;
|
|
25
30
|
bodyClass: import("vue").ComputedRef<string>;
|
|
26
31
|
iconClass: import("vue").ComputedRef<string>;
|
|
27
32
|
iconColor: import("vue").ComputedRef<"error" | "success" | "warning" | "inProcess" | "inProcessDark" | "info" | "primary.main" | undefined>;
|
|
28
|
-
modal: import("vue").Ref<Nullable<import("vue").DefineComponent<{
|
|
29
|
-
open: PropType<boolean | undefined>;
|
|
30
|
-
featured: PropType<boolean | undefined>;
|
|
31
|
-
size: PropType<"large" | "medium" | "small" | undefined>;
|
|
32
|
-
destroyOnClose: PropType<boolean | undefined>;
|
|
33
|
-
}, () => JSX.Element, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, ("close" | "cancel")[], string, Readonly<import("vue").ExtractPropTypes<{
|
|
34
|
-
open: PropType<boolean | undefined>;
|
|
35
|
-
featured: PropType<boolean | undefined>;
|
|
36
|
-
size: PropType<"large" | "medium" | "small" | undefined>;
|
|
37
|
-
destroyOnClose: PropType<boolean | undefined>;
|
|
38
|
-
}>>, {}>>>;
|
|
39
33
|
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
40
34
|
title: {
|
|
41
35
|
type: PropType<string>;
|
|
@@ -45,20 +39,10 @@ export declare const TDialog: import("vue").DefineComponent<{
|
|
|
45
39
|
type: PropType<string>;
|
|
46
40
|
required: true;
|
|
47
41
|
};
|
|
48
|
-
open: PropType<boolean | undefined>;
|
|
49
42
|
color: PropType<"primary" | "error" | "success" | "warning" | "info" | "in-process" | "in-process-dark" | undefined>;
|
|
50
43
|
icon: PropType<string | undefined>;
|
|
51
44
|
cancellable: PropType<boolean | undefined>;
|
|
52
|
-
cancelText:
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
};
|
|
56
|
-
confirmText: {
|
|
57
|
-
type: PropType<string | undefined>;
|
|
58
|
-
default: string;
|
|
59
|
-
};
|
|
60
|
-
}>>, {
|
|
61
|
-
cancelText: string | undefined;
|
|
62
|
-
confirmText: string | undefined;
|
|
63
|
-
}>;
|
|
45
|
+
cancelText: PropType<string | undefined>;
|
|
46
|
+
confirmText: PropType<string | undefined>;
|
|
47
|
+
}>>, {}>;
|
|
64
48
|
//# sourceMappingURL=TDialog.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TDialog.d.ts","sourceRoot":"","sources":["../../../src/components/TDialog/TDialog.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,
|
|
1
|
+
{"version":3,"file":"TDialog.d.ts","sourceRoot":"","sources":["../../../src/components/TDialog/TDialog.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAA6B,MAAM,KAAK,CAAC;AAe1D,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QA8DlB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TDialog.types.d.ts","sourceRoot":"","sources":["../../../src/components/TDialog/TDialog.types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EACF,SAAS,GACT,OAAO,GACP,SAAS,GACT,SAAS,GACT,YAAY,GACZ,iBAAiB,GACjB,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"TDialog.types.d.ts","sourceRoot":"","sources":["../../../src/components/TDialog/TDialog.types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EACF,SAAS,GACT,OAAO,GACP,SAAS,GACT,SAAS,GACT,YAAY,GACZ,iBAAiB,GACjB,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { TDialogProps } from '../components/TDialog/TDialog.types';
|
|
2
|
+
interface DialogOptions extends TDialogProps {
|
|
3
|
+
onCancel?: () => void;
|
|
4
|
+
onConfirm?: () => void;
|
|
5
|
+
}
|
|
6
|
+
export declare const useDialog: () => {
|
|
7
|
+
open: ({ onCancel, onConfirm, ...options }: DialogOptions) => Promise<unknown>;
|
|
8
|
+
};
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=dialog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../src/composables/dialog.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AAEnE,UAAU,aAAc,SAAQ,YAAY;IAC1C,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB;AAED,eAAO,MAAM,SAAS;gDAC+B,aAAa;CAsBjE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/composables/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/composables/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC"}
|