rtcpts 0.0.1
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/LICENSE +22 -0
- package/README.md +68 -0
- package/dist/charts-D71LM320.cjs +1 -0
- package/dist/charts-DFQ978tO.js +826 -0
- package/dist/charts.cjs.js +1 -0
- package/dist/charts.css +1 -0
- package/dist/charts.d.ts +7 -0
- package/dist/charts.es.js +9 -0
- package/dist/components/j-c-copy/index.d.ts +31 -0
- package/dist/components/j-c-duo-list-editor/index.d.ts +102 -0
- package/dist/components/j-c-editable-proxy/index.d.ts +146 -0
- package/dist/components/j-c-fallback/index.d.ts +56 -0
- package/dist/components/j-c-foldable-list/index.d.ts +66 -0
- package/dist/components/j-c-format-lookup/index.d.ts +65 -0
- package/dist/components/j-c-list-editor/index.d.ts +359 -0
- package/dist/components/j-c-more-menu/index.d.ts +220 -0
- package/dist/components/j-c-permission/index.d.ts +59 -0
- package/dist/components/j-c-tabs/index.d.ts +131 -0
- package/dist/components/j-c-title-line/index.d.ts +15 -0
- package/dist/components/j-c-tree/index.d.ts +16 -0
- package/dist/components/j-c-tree-select/index.d.ts +755 -0
- package/dist/components/j-ch-bar/index.d.ts +39 -0
- package/dist/components/j-ch-bar-line/index.d.ts +38 -0
- package/dist/components/j-ch-bubble/index.d.ts +43 -0
- package/dist/components/j-ch-line/index.d.ts +37 -0
- package/dist/components/j-ch-pie-doughnut/index.d.ts +49 -0
- package/dist/components/j-ch-radar/index.d.ts +38 -0
- package/dist/components/j-q-autocomplete/index.d.ts +71 -0
- package/dist/components/j-q-confirm/index.d.ts +48 -0
- package/dist/components/j-q-confirm-dialog/index.d.ts +65 -0
- package/dist/components/j-q-date/index.d.ts +199 -0
- package/dist/components/j-q-datetime/index.d.ts +166 -0
- package/dist/components/j-q-detail-list/index.d.ts +136 -0
- package/dist/components/j-q-dialog/file.d.ts +5 -0
- package/dist/components/j-q-dialog/form-rules.d.ts +17 -0
- package/dist/components/j-q-dialog/form.d.ts +4 -0
- package/dist/components/j-q-dialog/index.d.ts +53 -0
- package/dist/components/j-q-file/download.d.ts +2 -0
- package/dist/components/j-q-file/index.d.ts +82 -0
- package/dist/components/j-q-form-label/index.d.ts +79 -0
- package/dist/components/j-q-input/index.d.ts +194 -0
- package/dist/components/j-q-message/index.d.ts +19 -0
- package/dist/components/j-q-new-value/index.d.ts +117 -0
- package/dist/components/j-q-option-group/index.d.ts +133 -0
- package/dist/components/j-q-popover/index.d.ts +49 -0
- package/dist/components/j-q-search-form/index.d.ts +67 -0
- package/dist/components/j-q-select/index.d.ts +252 -0
- package/dist/components/j-q-table/index.d.ts +251 -0
- package/dist/components/j-q-table/pagination.d.ts +52 -0
- package/dist/components/j-q-tooltip/index.d.ts +44 -0
- package/dist/components/j-q-tooltip/tooltip.d.ts +3 -0
- package/dist/composables/useI18n.d.ts +14 -0
- package/dist/en-US-BfaBFOjR.cjs +1 -0
- package/dist/en-US-Di49EX5C.js +106 -0
- package/dist/i18n/en-US/index.d.ts +59 -0
- package/dist/i18n/index.d.ts +10 -0
- package/dist/i18n/zh-CN/index.d.ts +59 -0
- package/dist/index-BXXYZm9Q.cjs +1 -0
- package/dist/index-CHKEi8Wc.js +49 -0
- package/dist/index-EGZV35Ev.js +49 -0
- package/dist/index-zt6HltZK.cjs +1 -0
- package/dist/index.css +1 -0
- package/dist/index.d.ts +47 -0
- package/dist/rtcpt-styles.css +1 -0
- package/dist/rtcpt-styles.d.ts +1 -0
- package/dist/rtcpt-styles.js +1 -0
- package/dist/rtcpt.cjs.js +1 -0
- package/dist/rtcpt.es.js +5016 -0
- package/dist/types.d.ts +25 -0
- package/dist/utils/custom-svg.d.ts +3 -0
- package/dist/utils/icon-map.d.ts +9 -0
- package/dist/utils/init.d.ts +15 -0
- package/dist/utils/storage.d.ts +3 -0
- package/dist/utils/tool.d.ts +31 -0
- package/dist/zh-CN-BoRskSmh.js +111 -0
- package/dist/zh-CN-DWWgisNr.cjs +1 -0
- package/package.json +80 -0
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { Ref, DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
import { ChartDataset } from 'chart.js/auto';
|
|
3
|
+
type BarDataset = ChartDataset<'bar'>;
|
|
4
|
+
declare const _default: DefineComponent<ExtractPropTypes<{
|
|
5
|
+
labels: {
|
|
6
|
+
type: ArrayConstructor;
|
|
7
|
+
default: () => never[];
|
|
8
|
+
required: true;
|
|
9
|
+
};
|
|
10
|
+
datasets: {
|
|
11
|
+
type: () => BarDataset[];
|
|
12
|
+
required: true;
|
|
13
|
+
};
|
|
14
|
+
height: {
|
|
15
|
+
type: NumberConstructor;
|
|
16
|
+
default: number;
|
|
17
|
+
};
|
|
18
|
+
}>, {
|
|
19
|
+
barChartCanvas: Ref<HTMLCanvasElement | null, HTMLCanvasElement | null>;
|
|
20
|
+
chartContainer: Ref<HTMLDivElement | null, HTMLDivElement | null>;
|
|
21
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
22
|
+
labels: {
|
|
23
|
+
type: ArrayConstructor;
|
|
24
|
+
default: () => never[];
|
|
25
|
+
required: true;
|
|
26
|
+
};
|
|
27
|
+
datasets: {
|
|
28
|
+
type: () => BarDataset[];
|
|
29
|
+
required: true;
|
|
30
|
+
};
|
|
31
|
+
height: {
|
|
32
|
+
type: NumberConstructor;
|
|
33
|
+
default: number;
|
|
34
|
+
};
|
|
35
|
+
}>> & Readonly<{}>, {
|
|
36
|
+
labels: unknown[];
|
|
37
|
+
height: number;
|
|
38
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
39
|
+
export default _default;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { Ref, DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
import { ChartDataset } from 'chart.js/auto';
|
|
3
|
+
type MixedDataset = ChartDataset<any>;
|
|
4
|
+
declare const _default: DefineComponent<ExtractPropTypes<{
|
|
5
|
+
labels: {
|
|
6
|
+
type: ArrayConstructor;
|
|
7
|
+
default: () => never[];
|
|
8
|
+
required: true;
|
|
9
|
+
};
|
|
10
|
+
datasets: {
|
|
11
|
+
type: () => MixedDataset[];
|
|
12
|
+
required: true;
|
|
13
|
+
};
|
|
14
|
+
height: {
|
|
15
|
+
type: NumberConstructor;
|
|
16
|
+
default: number;
|
|
17
|
+
};
|
|
18
|
+
}>, {
|
|
19
|
+
mixedChartCanvas: Ref<HTMLCanvasElement | null, HTMLCanvasElement | null>;
|
|
20
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
21
|
+
labels: {
|
|
22
|
+
type: ArrayConstructor;
|
|
23
|
+
default: () => never[];
|
|
24
|
+
required: true;
|
|
25
|
+
};
|
|
26
|
+
datasets: {
|
|
27
|
+
type: () => MixedDataset[];
|
|
28
|
+
required: true;
|
|
29
|
+
};
|
|
30
|
+
height: {
|
|
31
|
+
type: NumberConstructor;
|
|
32
|
+
default: number;
|
|
33
|
+
};
|
|
34
|
+
}>> & Readonly<{}>, {
|
|
35
|
+
labels: unknown[];
|
|
36
|
+
height: number;
|
|
37
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
38
|
+
export default _default;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { Ref, DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
import { ChartDataset } from 'chart.js/auto';
|
|
3
|
+
type BubbleDataPoint = {
|
|
4
|
+
x: number;
|
|
5
|
+
y: number;
|
|
6
|
+
r: number;
|
|
7
|
+
};
|
|
8
|
+
type BubbleDataset = ChartDataset<'bubble', BubbleDataPoint[]>;
|
|
9
|
+
declare const _default: DefineComponent<ExtractPropTypes<{
|
|
10
|
+
labels: {
|
|
11
|
+
type: ArrayConstructor;
|
|
12
|
+
default: () => never[];
|
|
13
|
+
required: false;
|
|
14
|
+
};
|
|
15
|
+
datasets: {
|
|
16
|
+
type: () => BubbleDataset[];
|
|
17
|
+
required: true;
|
|
18
|
+
};
|
|
19
|
+
height: {
|
|
20
|
+
type: NumberConstructor;
|
|
21
|
+
default: number;
|
|
22
|
+
};
|
|
23
|
+
}>, {
|
|
24
|
+
bubbleChartCanvas: Ref<HTMLCanvasElement | null, HTMLCanvasElement | null>;
|
|
25
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
26
|
+
labels: {
|
|
27
|
+
type: ArrayConstructor;
|
|
28
|
+
default: () => never[];
|
|
29
|
+
required: false;
|
|
30
|
+
};
|
|
31
|
+
datasets: {
|
|
32
|
+
type: () => BubbleDataset[];
|
|
33
|
+
required: true;
|
|
34
|
+
};
|
|
35
|
+
height: {
|
|
36
|
+
type: NumberConstructor;
|
|
37
|
+
default: number;
|
|
38
|
+
};
|
|
39
|
+
}>> & Readonly<{}>, {
|
|
40
|
+
labels: unknown[];
|
|
41
|
+
height: number;
|
|
42
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
43
|
+
export default _default;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Ref, DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
import { ChartDataset } from 'chart.js/auto';
|
|
3
|
+
declare const _default: DefineComponent<ExtractPropTypes<{
|
|
4
|
+
labels: {
|
|
5
|
+
type: ArrayConstructor;
|
|
6
|
+
default: () => never[];
|
|
7
|
+
required: true;
|
|
8
|
+
};
|
|
9
|
+
datasets: {
|
|
10
|
+
type: () => ChartDataset<"line">[];
|
|
11
|
+
required: true;
|
|
12
|
+
};
|
|
13
|
+
height: {
|
|
14
|
+
type: NumberConstructor;
|
|
15
|
+
default: number;
|
|
16
|
+
};
|
|
17
|
+
}>, {
|
|
18
|
+
lineChartCanvas: Ref<HTMLCanvasElement | null, HTMLCanvasElement | null>;
|
|
19
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
20
|
+
labels: {
|
|
21
|
+
type: ArrayConstructor;
|
|
22
|
+
default: () => never[];
|
|
23
|
+
required: true;
|
|
24
|
+
};
|
|
25
|
+
datasets: {
|
|
26
|
+
type: () => ChartDataset<"line">[];
|
|
27
|
+
required: true;
|
|
28
|
+
};
|
|
29
|
+
height: {
|
|
30
|
+
type: NumberConstructor;
|
|
31
|
+
default: number;
|
|
32
|
+
};
|
|
33
|
+
}>> & Readonly<{}>, {
|
|
34
|
+
labels: unknown[];
|
|
35
|
+
height: number;
|
|
36
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
37
|
+
export default _default;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { Ref, DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
import { ChartDataset } from 'chart.js/auto';
|
|
3
|
+
type ChartType = 'pie' | 'doughnut';
|
|
4
|
+
declare const _default: DefineComponent<ExtractPropTypes<{
|
|
5
|
+
type: {
|
|
6
|
+
type: () => ChartType;
|
|
7
|
+
required: true;
|
|
8
|
+
validator: (value: string) => boolean;
|
|
9
|
+
};
|
|
10
|
+
labels: {
|
|
11
|
+
type: ArrayConstructor;
|
|
12
|
+
default: () => never[];
|
|
13
|
+
required: true;
|
|
14
|
+
};
|
|
15
|
+
datasets: {
|
|
16
|
+
type: () => ChartDataset<ChartType>[];
|
|
17
|
+
required: true;
|
|
18
|
+
};
|
|
19
|
+
height: {
|
|
20
|
+
type: NumberConstructor;
|
|
21
|
+
default: number;
|
|
22
|
+
};
|
|
23
|
+
}>, {
|
|
24
|
+
chartCanvas: Ref<HTMLCanvasElement | null, HTMLCanvasElement | null>;
|
|
25
|
+
chartContainer: Ref<HTMLDivElement | null, HTMLDivElement | null>;
|
|
26
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
27
|
+
type: {
|
|
28
|
+
type: () => ChartType;
|
|
29
|
+
required: true;
|
|
30
|
+
validator: (value: string) => boolean;
|
|
31
|
+
};
|
|
32
|
+
labels: {
|
|
33
|
+
type: ArrayConstructor;
|
|
34
|
+
default: () => never[];
|
|
35
|
+
required: true;
|
|
36
|
+
};
|
|
37
|
+
datasets: {
|
|
38
|
+
type: () => ChartDataset<ChartType>[];
|
|
39
|
+
required: true;
|
|
40
|
+
};
|
|
41
|
+
height: {
|
|
42
|
+
type: NumberConstructor;
|
|
43
|
+
default: number;
|
|
44
|
+
};
|
|
45
|
+
}>> & Readonly<{}>, {
|
|
46
|
+
labels: unknown[];
|
|
47
|
+
height: number;
|
|
48
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
49
|
+
export default _default;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { Ref, DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
import { ChartDataset } from 'chart.js/auto';
|
|
3
|
+
type RadarDataset = ChartDataset<'radar'>;
|
|
4
|
+
declare const _default: DefineComponent<ExtractPropTypes<{
|
|
5
|
+
labels: {
|
|
6
|
+
type: ArrayConstructor;
|
|
7
|
+
default: () => never[];
|
|
8
|
+
required: true;
|
|
9
|
+
};
|
|
10
|
+
datasets: {
|
|
11
|
+
type: () => RadarDataset[];
|
|
12
|
+
required: true;
|
|
13
|
+
};
|
|
14
|
+
height: {
|
|
15
|
+
type: NumberConstructor;
|
|
16
|
+
default: number;
|
|
17
|
+
};
|
|
18
|
+
}>, {
|
|
19
|
+
radarChartCanvas: Ref<HTMLCanvasElement | null, HTMLCanvasElement | null>;
|
|
20
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
21
|
+
labels: {
|
|
22
|
+
type: ArrayConstructor;
|
|
23
|
+
default: () => never[];
|
|
24
|
+
required: true;
|
|
25
|
+
};
|
|
26
|
+
datasets: {
|
|
27
|
+
type: () => RadarDataset[];
|
|
28
|
+
required: true;
|
|
29
|
+
};
|
|
30
|
+
height: {
|
|
31
|
+
type: NumberConstructor;
|
|
32
|
+
default: number;
|
|
33
|
+
};
|
|
34
|
+
}>> & Readonly<{}>, {
|
|
35
|
+
labels: unknown[];
|
|
36
|
+
height: number;
|
|
37
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
38
|
+
export default _default;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { PropType, DefineComponent, ExtractPropTypes, Ref, ComputedRef, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
import { QInput, ComponentConstructor } from 'quasar';
|
|
3
|
+
export interface HistoryItem {
|
|
4
|
+
id: number;
|
|
5
|
+
value: string;
|
|
6
|
+
}
|
|
7
|
+
declare const _default: DefineComponent<ExtractPropTypes<{
|
|
8
|
+
modelValue: {
|
|
9
|
+
type: PropType<string | null | undefined>;
|
|
10
|
+
required: true;
|
|
11
|
+
};
|
|
12
|
+
searchKey: {
|
|
13
|
+
type: StringConstructor;
|
|
14
|
+
required: true;
|
|
15
|
+
};
|
|
16
|
+
searchId: {
|
|
17
|
+
type: StringConstructor;
|
|
18
|
+
required: true;
|
|
19
|
+
};
|
|
20
|
+
label: {
|
|
21
|
+
type: StringConstructor;
|
|
22
|
+
default: string;
|
|
23
|
+
};
|
|
24
|
+
}>, {
|
|
25
|
+
inputRef: Ref<any, any>;
|
|
26
|
+
historyParams: {
|
|
27
|
+
maxLength: number;
|
|
28
|
+
width: Record<string, string>;
|
|
29
|
+
list: {
|
|
30
|
+
id: number;
|
|
31
|
+
value: string;
|
|
32
|
+
}[];
|
|
33
|
+
filterList: {
|
|
34
|
+
id: number;
|
|
35
|
+
value: string;
|
|
36
|
+
}[];
|
|
37
|
+
visible: boolean;
|
|
38
|
+
uniqueKey: string;
|
|
39
|
+
};
|
|
40
|
+
onFocus: () => void;
|
|
41
|
+
onBlur: () => void;
|
|
42
|
+
onClear: () => void;
|
|
43
|
+
onUpdateValue: (value: string | number | null) => void;
|
|
44
|
+
onSelectItem: (item: HistoryItem) => void;
|
|
45
|
+
saveHistory: (value: string) => void;
|
|
46
|
+
uniqueKey: ComputedRef<string>;
|
|
47
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "update:model-value"[], "update:model-value", PublicProps, Readonly< ExtractPropTypes<{
|
|
48
|
+
modelValue: {
|
|
49
|
+
type: PropType<string | null | undefined>;
|
|
50
|
+
required: true;
|
|
51
|
+
};
|
|
52
|
+
searchKey: {
|
|
53
|
+
type: StringConstructor;
|
|
54
|
+
required: true;
|
|
55
|
+
};
|
|
56
|
+
searchId: {
|
|
57
|
+
type: StringConstructor;
|
|
58
|
+
required: true;
|
|
59
|
+
};
|
|
60
|
+
label: {
|
|
61
|
+
type: StringConstructor;
|
|
62
|
+
default: string;
|
|
63
|
+
};
|
|
64
|
+
}>> & Readonly<{
|
|
65
|
+
"onUpdate:model-value"?: ((...args: any[]) => any) | undefined;
|
|
66
|
+
}>, {
|
|
67
|
+
label: string;
|
|
68
|
+
}, {}, {
|
|
69
|
+
QInput: ComponentConstructor<QInput>;
|
|
70
|
+
}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
71
|
+
export default _default;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { SlotsType, DefineComponent, ExtractPropTypes, ComputedRef, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
import { QPopupProxy, QCard, QCardSection, ComponentConstructor } from 'quasar';
|
|
3
|
+
declare const _default: DefineComponent<ExtractPropTypes<{
|
|
4
|
+
title: {
|
|
5
|
+
type: StringConstructor;
|
|
6
|
+
default: string;
|
|
7
|
+
};
|
|
8
|
+
confirmText: {
|
|
9
|
+
type: StringConstructor;
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
cancelText: {
|
|
13
|
+
type: StringConstructor;
|
|
14
|
+
default: string;
|
|
15
|
+
};
|
|
16
|
+
}>, {
|
|
17
|
+
popupRef: any;
|
|
18
|
+
handleCancel: () => void;
|
|
19
|
+
handleConfirm: () => void;
|
|
20
|
+
computedConfirmText: ComputedRef<string>;
|
|
21
|
+
computedCancelText: ComputedRef<string>;
|
|
22
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "confirm"[], "confirm", PublicProps, Readonly< ExtractPropTypes<{
|
|
23
|
+
title: {
|
|
24
|
+
type: StringConstructor;
|
|
25
|
+
default: string;
|
|
26
|
+
};
|
|
27
|
+
confirmText: {
|
|
28
|
+
type: StringConstructor;
|
|
29
|
+
default: string;
|
|
30
|
+
};
|
|
31
|
+
cancelText: {
|
|
32
|
+
type: StringConstructor;
|
|
33
|
+
default: string;
|
|
34
|
+
};
|
|
35
|
+
}>> & Readonly<{
|
|
36
|
+
onConfirm?: ((...args: any[]) => any) | undefined;
|
|
37
|
+
}>, {
|
|
38
|
+
title: string;
|
|
39
|
+
cancelText: string;
|
|
40
|
+
confirmText: string;
|
|
41
|
+
}, SlotsType<{
|
|
42
|
+
default: void;
|
|
43
|
+
}>, {
|
|
44
|
+
QPopupProxy: ComponentConstructor<QPopupProxy>;
|
|
45
|
+
QCard: ComponentConstructor<QCard>;
|
|
46
|
+
QCardSection: ComponentConstructor<QCardSection>;
|
|
47
|
+
}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
48
|
+
export default _default;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { QVueGlobals } from 'quasar';
|
|
2
|
+
export type ShowParams = {
|
|
3
|
+
title: string;
|
|
4
|
+
content: string;
|
|
5
|
+
confirmButtonText?: string;
|
|
6
|
+
cancelButtonText?: string;
|
|
7
|
+
showCancelButton?: boolean;
|
|
8
|
+
color?: string;
|
|
9
|
+
isDelete?: boolean;
|
|
10
|
+
};
|
|
11
|
+
export interface IGlobalConfirm {
|
|
12
|
+
show: (params: ShowParams) => Promise<boolean>;
|
|
13
|
+
setQuasarInstance: (instance: QVueGlobals) => void;
|
|
14
|
+
}
|
|
15
|
+
declare class GlobalConfirm implements IGlobalConfirm {
|
|
16
|
+
setQuasarInstance(instance: QVueGlobals): void;
|
|
17
|
+
show({ title, color, content, confirmButtonText, cancelButtonText, showCancelButton, isDelete }: ShowParams): Promise<boolean>;
|
|
18
|
+
}
|
|
19
|
+
declare const globalConfirm: GlobalConfirm;
|
|
20
|
+
export default globalConfirm;
|
|
21
|
+
, {
|
|
22
|
+
dialogRef: Ref<QDialog | undefined, QDialog | undefined>;
|
|
23
|
+
onDialogHide: () => void;
|
|
24
|
+
onOKClick(): void;
|
|
25
|
+
onCancelClick: () => void;
|
|
26
|
+
computedCancelText: ComputedRef<string>;
|
|
27
|
+
computedConfirmText: ComputedRef<string>;
|
|
28
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("hide" | "ok")[], "hide" | "ok", PublicProps, Readonly< ExtractPropTypes<{
|
|
29
|
+
title: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
default: string;
|
|
32
|
+
};
|
|
33
|
+
content: {
|
|
34
|
+
type: StringConstructor;
|
|
35
|
+
default: string;
|
|
36
|
+
};
|
|
37
|
+
confirmButtonText: {
|
|
38
|
+
type: StringConstructor;
|
|
39
|
+
default: string;
|
|
40
|
+
};
|
|
41
|
+
cancelButtonText: {
|
|
42
|
+
type: StringConstructor;
|
|
43
|
+
default: string;
|
|
44
|
+
};
|
|
45
|
+
isDelete: {
|
|
46
|
+
type: BooleanConstructor;
|
|
47
|
+
default: boolean;
|
|
48
|
+
};
|
|
49
|
+
}>> & Readonly<{
|
|
50
|
+
onHide?: ((...args: any[]) => any) | undefined;
|
|
51
|
+
onOk?: ((...args: any[]) => any) | undefined;
|
|
52
|
+
}>, {
|
|
53
|
+
title: string;
|
|
54
|
+
content: string;
|
|
55
|
+
confirmButtonText: string;
|
|
56
|
+
cancelButtonText: string;
|
|
57
|
+
isDelete: boolean;
|
|
58
|
+
}, {}, {
|
|
59
|
+
QDialog: ComponentConstructor<QDialog>;
|
|
60
|
+
QCard: ComponentConstructor<QCard>;
|
|
61
|
+
QCardSection: ComponentConstructor<QCardSection>;
|
|
62
|
+
QBtn: ComponentConstructor<QBtn>;
|
|
63
|
+
QIcon: ComponentConstructor<QIcon>;
|
|
64
|
+
}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
65
|
+
export default _default;
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
import { CSSProperties, PropType, SlotsType, DefineComponent, ExtractPropTypes, Ref, WritableComputedRef, ComputedRef, Slot, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
import { QDate, QDateProps, QField, QFieldProps, QIcon, QPopupProxy, ComponentConstructor } from 'quasar';
|
|
3
|
+
import { t } from '../../composables/useI18n.ts';
|
|
4
|
+
type TModelValue = QDateProps['modelValue'] | number | Date | {
|
|
5
|
+
from: number | string | Date;
|
|
6
|
+
to: number | string | Date;
|
|
7
|
+
};
|
|
8
|
+
type TValueDisplayFn = (value: TModelValue) => string | number | null | undefined;
|
|
9
|
+
declare const _default: DefineComponent<ExtractPropTypes<{
|
|
10
|
+
modelValue: {
|
|
11
|
+
type: PropType<TModelValue>;
|
|
12
|
+
};
|
|
13
|
+
clearable: {
|
|
14
|
+
type: BooleanConstructor;
|
|
15
|
+
default: boolean;
|
|
16
|
+
};
|
|
17
|
+
dense: {
|
|
18
|
+
type: PropType<QFieldProps["dense"]>;
|
|
19
|
+
default: boolean;
|
|
20
|
+
};
|
|
21
|
+
disable: {
|
|
22
|
+
type: PropType<QFieldProps["disable"]>;
|
|
23
|
+
};
|
|
24
|
+
readonly: {
|
|
25
|
+
type: BooleanConstructor;
|
|
26
|
+
default: boolean;
|
|
27
|
+
};
|
|
28
|
+
label: {
|
|
29
|
+
type: PropType<QFieldProps["label"]>;
|
|
30
|
+
};
|
|
31
|
+
locales: {
|
|
32
|
+
type: PropType<Intl.LocalesArgument>;
|
|
33
|
+
};
|
|
34
|
+
mask: {
|
|
35
|
+
type: PropType<QDateProps["mask"]>;
|
|
36
|
+
default: string;
|
|
37
|
+
};
|
|
38
|
+
options: {
|
|
39
|
+
type: PropType<QDateProps["options"]>;
|
|
40
|
+
};
|
|
41
|
+
outlined: {
|
|
42
|
+
type: PropType<QFieldProps["outlined"]>;
|
|
43
|
+
default: boolean;
|
|
44
|
+
};
|
|
45
|
+
popupInnerStyle: {
|
|
46
|
+
type: PropType<CSSProperties>;
|
|
47
|
+
};
|
|
48
|
+
range: {
|
|
49
|
+
type: PropType<QDateProps["range"]>;
|
|
50
|
+
};
|
|
51
|
+
rules: {
|
|
52
|
+
type: () => QFieldProps["rules"];
|
|
53
|
+
};
|
|
54
|
+
valueDisplayFn: {
|
|
55
|
+
type: PropType<TValueDisplayFn>;
|
|
56
|
+
};
|
|
57
|
+
}>, {
|
|
58
|
+
t: t;
|
|
59
|
+
fieldRef: Ref<QField | null, QField | null>;
|
|
60
|
+
handleClear: () => void;
|
|
61
|
+
handleClearClick: () => void;
|
|
62
|
+
computedValue: WritableComputedRef<string | {
|
|
63
|
+
from: string;
|
|
64
|
+
to: string;
|
|
65
|
+
} | null, string | {
|
|
66
|
+
from: string;
|
|
67
|
+
to: string;
|
|
68
|
+
} | null>;
|
|
69
|
+
computedValueDisplay: ComputedRef<string>;
|
|
70
|
+
popupVisible: Ref<boolean, boolean>;
|
|
71
|
+
hasPopupPrepend: ComputedRef<boolean>;
|
|
72
|
+
onHidePopup: (evt: Event) => void;
|
|
73
|
+
onRangeStart: (from: {
|
|
74
|
+
year: number;
|
|
75
|
+
month: number;
|
|
76
|
+
day: number;
|
|
77
|
+
}) => void;
|
|
78
|
+
onRangeEnd: (range: {
|
|
79
|
+
from: {
|
|
80
|
+
year: number;
|
|
81
|
+
month: number;
|
|
82
|
+
day: number;
|
|
83
|
+
};
|
|
84
|
+
to: {
|
|
85
|
+
year: number;
|
|
86
|
+
month: number;
|
|
87
|
+
day: number;
|
|
88
|
+
};
|
|
89
|
+
}) => void;
|
|
90
|
+
slots: Readonly<{
|
|
91
|
+
'popup-prepend': Slot<void>;
|
|
92
|
+
append: Slot<void>;
|
|
93
|
+
control: Slot<void>;
|
|
94
|
+
}>;
|
|
95
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
96
|
+
hide: (evt: Event) => true;
|
|
97
|
+
rangeStart: (from: {
|
|
98
|
+
year: number;
|
|
99
|
+
month: number;
|
|
100
|
+
day: number;
|
|
101
|
+
}) => true;
|
|
102
|
+
rangeEnd: (range: {
|
|
103
|
+
from: {
|
|
104
|
+
year: number;
|
|
105
|
+
month: number;
|
|
106
|
+
day: number;
|
|
107
|
+
};
|
|
108
|
+
to: {
|
|
109
|
+
year: number;
|
|
110
|
+
month: number;
|
|
111
|
+
day: number;
|
|
112
|
+
};
|
|
113
|
+
}) => true;
|
|
114
|
+
'update:modelValue': (value: any) => true;
|
|
115
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
116
|
+
modelValue: {
|
|
117
|
+
type: PropType<TModelValue>;
|
|
118
|
+
};
|
|
119
|
+
clearable: {
|
|
120
|
+
type: BooleanConstructor;
|
|
121
|
+
default: boolean;
|
|
122
|
+
};
|
|
123
|
+
dense: {
|
|
124
|
+
type: PropType<QFieldProps["dense"]>;
|
|
125
|
+
default: boolean;
|
|
126
|
+
};
|
|
127
|
+
disable: {
|
|
128
|
+
type: PropType<QFieldProps["disable"]>;
|
|
129
|
+
};
|
|
130
|
+
readonly: {
|
|
131
|
+
type: BooleanConstructor;
|
|
132
|
+
default: boolean;
|
|
133
|
+
};
|
|
134
|
+
label: {
|
|
135
|
+
type: PropType<QFieldProps["label"]>;
|
|
136
|
+
};
|
|
137
|
+
locales: {
|
|
138
|
+
type: PropType<Intl.LocalesArgument>;
|
|
139
|
+
};
|
|
140
|
+
mask: {
|
|
141
|
+
type: PropType<QDateProps["mask"]>;
|
|
142
|
+
default: string;
|
|
143
|
+
};
|
|
144
|
+
options: {
|
|
145
|
+
type: PropType<QDateProps["options"]>;
|
|
146
|
+
};
|
|
147
|
+
outlined: {
|
|
148
|
+
type: PropType<QFieldProps["outlined"]>;
|
|
149
|
+
default: boolean;
|
|
150
|
+
};
|
|
151
|
+
popupInnerStyle: {
|
|
152
|
+
type: PropType<CSSProperties>;
|
|
153
|
+
};
|
|
154
|
+
range: {
|
|
155
|
+
type: PropType<QDateProps["range"]>;
|
|
156
|
+
};
|
|
157
|
+
rules: {
|
|
158
|
+
type: () => QFieldProps["rules"];
|
|
159
|
+
};
|
|
160
|
+
valueDisplayFn: {
|
|
161
|
+
type: PropType<TValueDisplayFn>;
|
|
162
|
+
};
|
|
163
|
+
}>> & Readonly<{
|
|
164
|
+
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
165
|
+
onHide?: ((evt: Event) => any) | undefined;
|
|
166
|
+
onRangeStart?: ((from: {
|
|
167
|
+
year: number;
|
|
168
|
+
month: number;
|
|
169
|
+
day: number;
|
|
170
|
+
}) => any) | undefined;
|
|
171
|
+
onRangeEnd?: ((range: {
|
|
172
|
+
from: {
|
|
173
|
+
year: number;
|
|
174
|
+
month: number;
|
|
175
|
+
day: number;
|
|
176
|
+
};
|
|
177
|
+
to: {
|
|
178
|
+
year: number;
|
|
179
|
+
month: number;
|
|
180
|
+
day: number;
|
|
181
|
+
};
|
|
182
|
+
}) => any) | undefined;
|
|
183
|
+
}>, {
|
|
184
|
+
mask: string | undefined;
|
|
185
|
+
dense: boolean | undefined;
|
|
186
|
+
outlined: boolean | undefined;
|
|
187
|
+
readonly: boolean;
|
|
188
|
+
clearable: boolean;
|
|
189
|
+
}, SlotsType<{
|
|
190
|
+
'popup-prepend': void;
|
|
191
|
+
append: void;
|
|
192
|
+
control: void;
|
|
193
|
+
}>, {
|
|
194
|
+
QField: ComponentConstructor<QField>;
|
|
195
|
+
QPopupProxy: ComponentConstructor<QPopupProxy>;
|
|
196
|
+
QDate: ComponentConstructor<QDate>;
|
|
197
|
+
QIcon: ComponentConstructor<QIcon>;
|
|
198
|
+
}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
199
|
+
export default _default;
|