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,166 @@
|
|
|
1
|
+
import { PropType, SlotsType, DefineComponent, ExtractPropTypes, Ref, WritableComputedRef, ComputedRef, Slot, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
import { QDateProps, QField, QFieldProps, QPopupProxy, QDate, QInput, QBtn, QIcon, ComponentConstructor } from 'quasar';
|
|
3
|
+
import { t } from '../../composables/useI18n.ts';
|
|
4
|
+
export interface TimeParts {
|
|
5
|
+
h: number;
|
|
6
|
+
m: number;
|
|
7
|
+
s: number;
|
|
8
|
+
}
|
|
9
|
+
export interface DateTimeRangeValue {
|
|
10
|
+
from: string | null;
|
|
11
|
+
to: string | null;
|
|
12
|
+
}
|
|
13
|
+
export interface QDateRangeValue {
|
|
14
|
+
from: string;
|
|
15
|
+
to: string;
|
|
16
|
+
}
|
|
17
|
+
type TModelValue = DateTimeRangeValue | SingleDateTimeValue | number | Date;
|
|
18
|
+
type TValueDisplayFn = (value: TModelValue) => string | number | null | undefined;
|
|
19
|
+
type SingleDateTimeValue = string | null;
|
|
20
|
+
declare const _default: DefineComponent<ExtractPropTypes<{
|
|
21
|
+
modelValue: {
|
|
22
|
+
type: PropType<TModelValue>;
|
|
23
|
+
default: () => null;
|
|
24
|
+
};
|
|
25
|
+
clearable: {
|
|
26
|
+
type: BooleanConstructor;
|
|
27
|
+
default: boolean;
|
|
28
|
+
};
|
|
29
|
+
dense: {
|
|
30
|
+
type: BooleanConstructor;
|
|
31
|
+
default: boolean;
|
|
32
|
+
};
|
|
33
|
+
disable: BooleanConstructor;
|
|
34
|
+
readonly: BooleanConstructor;
|
|
35
|
+
label: StringConstructor;
|
|
36
|
+
options: PropType<QDateProps["options"]>;
|
|
37
|
+
outlined: {
|
|
38
|
+
type: BooleanConstructor;
|
|
39
|
+
default: boolean;
|
|
40
|
+
};
|
|
41
|
+
rules: () => QFieldProps["rules"];
|
|
42
|
+
valueDisplayFn: PropType<TValueDisplayFn>;
|
|
43
|
+
range: {
|
|
44
|
+
type: BooleanConstructor;
|
|
45
|
+
default: boolean;
|
|
46
|
+
};
|
|
47
|
+
endhhmmss: {
|
|
48
|
+
type: PropType<[string, string, string]>;
|
|
49
|
+
default: () => string[];
|
|
50
|
+
};
|
|
51
|
+
showTooltip: {
|
|
52
|
+
type: BooleanConstructor;
|
|
53
|
+
default: boolean;
|
|
54
|
+
};
|
|
55
|
+
}>, {
|
|
56
|
+
t: t;
|
|
57
|
+
fieldRef: Ref<QField | null, QField | null>;
|
|
58
|
+
popupVisible: Ref<boolean, boolean>;
|
|
59
|
+
handleClear: () => void;
|
|
60
|
+
handleClearClick: () => void;
|
|
61
|
+
handleFieldClick: () => void;
|
|
62
|
+
handleConfirm: () => boolean;
|
|
63
|
+
handleTimeWheel: (event: WheelEvent, parts: TimeParts, key: "h" | "m" | "s", max: number, modeKey: "from" | "to" | "single") => void;
|
|
64
|
+
computedValue: WritableComputedRef<TModelValue, TModelValue>;
|
|
65
|
+
computedValueDisplay: ComputedRef<string>;
|
|
66
|
+
currentRangeDate: Ref<string | {
|
|
67
|
+
from: string;
|
|
68
|
+
to: string;
|
|
69
|
+
}, string | QDateRangeValue | {
|
|
70
|
+
from: string;
|
|
71
|
+
to: string;
|
|
72
|
+
}>;
|
|
73
|
+
currentSingleDate: Ref<string, string>;
|
|
74
|
+
fromH: WritableComputedRef<string, string>;
|
|
75
|
+
fromM: WritableComputedRef<string, string>;
|
|
76
|
+
fromS: WritableComputedRef<string, string>;
|
|
77
|
+
toH: WritableComputedRef<string, string>;
|
|
78
|
+
toM: WritableComputedRef<string, string>;
|
|
79
|
+
toS: WritableComputedRef<string, string>;
|
|
80
|
+
singleH: WritableComputedRef<string, string>;
|
|
81
|
+
singleM: WritableComputedRef<string, string>;
|
|
82
|
+
singleS: WritableComputedRef<string, string>;
|
|
83
|
+
fromTimeParts: {
|
|
84
|
+
h: number;
|
|
85
|
+
m: number;
|
|
86
|
+
s: number;
|
|
87
|
+
};
|
|
88
|
+
toTimeParts: {
|
|
89
|
+
h: number;
|
|
90
|
+
m: number;
|
|
91
|
+
s: number;
|
|
92
|
+
};
|
|
93
|
+
singleTimeParts: {
|
|
94
|
+
h: number;
|
|
95
|
+
m: number;
|
|
96
|
+
s: number;
|
|
97
|
+
};
|
|
98
|
+
onHidePopup: (evt: Event) => void;
|
|
99
|
+
slots: Readonly<{
|
|
100
|
+
'popup-prepend': Slot<void>;
|
|
101
|
+
append: Slot<void>;
|
|
102
|
+
control: Slot<void>;
|
|
103
|
+
}>;
|
|
104
|
+
showScrollTooltip: Ref<boolean, boolean>;
|
|
105
|
+
closeTooltip: () => void;
|
|
106
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("update:modelValue" | "hide")[], "update:modelValue" | "hide", PublicProps, Readonly< ExtractPropTypes<{
|
|
107
|
+
modelValue: {
|
|
108
|
+
type: PropType<TModelValue>;
|
|
109
|
+
default: () => null;
|
|
110
|
+
};
|
|
111
|
+
clearable: {
|
|
112
|
+
type: BooleanConstructor;
|
|
113
|
+
default: boolean;
|
|
114
|
+
};
|
|
115
|
+
dense: {
|
|
116
|
+
type: BooleanConstructor;
|
|
117
|
+
default: boolean;
|
|
118
|
+
};
|
|
119
|
+
disable: BooleanConstructor;
|
|
120
|
+
readonly: BooleanConstructor;
|
|
121
|
+
label: StringConstructor;
|
|
122
|
+
options: PropType<QDateProps["options"]>;
|
|
123
|
+
outlined: {
|
|
124
|
+
type: BooleanConstructor;
|
|
125
|
+
default: boolean;
|
|
126
|
+
};
|
|
127
|
+
rules: () => QFieldProps["rules"];
|
|
128
|
+
valueDisplayFn: PropType<TValueDisplayFn>;
|
|
129
|
+
range: {
|
|
130
|
+
type: BooleanConstructor;
|
|
131
|
+
default: boolean;
|
|
132
|
+
};
|
|
133
|
+
endhhmmss: {
|
|
134
|
+
type: PropType<[string, string, string]>;
|
|
135
|
+
default: () => string[];
|
|
136
|
+
};
|
|
137
|
+
showTooltip: {
|
|
138
|
+
type: BooleanConstructor;
|
|
139
|
+
default: boolean;
|
|
140
|
+
};
|
|
141
|
+
}>> & Readonly<{
|
|
142
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
143
|
+
onHide?: ((...args: any[]) => any) | undefined;
|
|
144
|
+
}>, {
|
|
145
|
+
modelValue: TModelValue;
|
|
146
|
+
dense: boolean;
|
|
147
|
+
disable: boolean;
|
|
148
|
+
outlined: boolean;
|
|
149
|
+
readonly: boolean;
|
|
150
|
+
clearable: boolean;
|
|
151
|
+
range: boolean;
|
|
152
|
+
endhhmmss: [string, string, string];
|
|
153
|
+
showTooltip: boolean;
|
|
154
|
+
}, SlotsType<{
|
|
155
|
+
'popup-prepend': void;
|
|
156
|
+
append: void;
|
|
157
|
+
control: void;
|
|
158
|
+
}>, {
|
|
159
|
+
QField: ComponentConstructor<QField>;
|
|
160
|
+
QPopupProxy: ComponentConstructor<QPopupProxy>;
|
|
161
|
+
QDate: ComponentConstructor<QDate>;
|
|
162
|
+
QInput: ComponentConstructor<QInput>;
|
|
163
|
+
QBtn: ComponentConstructor<QBtn>;
|
|
164
|
+
QIcon: ComponentConstructor<QIcon>;
|
|
165
|
+
}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
166
|
+
export default _default;
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import { PropType, SlotsType, DefineComponent, ExtractPropTypes, ComputedRef, Slot, ComponentOptionsMixin, PublicProps, Directive, ComponentProvideOptions } from 'vue';
|
|
2
|
+
import { QIcon, QTooltip, ComponentConstructor } from 'quasar';
|
|
3
|
+
export interface DetailItem {
|
|
4
|
+
name: string;
|
|
5
|
+
label: string;
|
|
6
|
+
span?: number;
|
|
7
|
+
align?: 'left' | 'right' | 'center';
|
|
8
|
+
date?: boolean | string;
|
|
9
|
+
options?: Record<string, any>[];
|
|
10
|
+
findByKey?: string;
|
|
11
|
+
displayKey?: string;
|
|
12
|
+
tip?: string;
|
|
13
|
+
whiteSpace?: number;
|
|
14
|
+
onClick?: (value: string) => void;
|
|
15
|
+
clickable?: boolean | ((row: TDetailData) => boolean);
|
|
16
|
+
format: (value: any) => any;
|
|
17
|
+
visible?: boolean | ((row: TDetailData) => boolean);
|
|
18
|
+
}
|
|
19
|
+
type TDetailData = Record<string, any>;
|
|
20
|
+
declare const _default: DefineComponent<ExtractPropTypes<{
|
|
21
|
+
items: {
|
|
22
|
+
type: PropType<DetailItem[]>;
|
|
23
|
+
required: true;
|
|
24
|
+
};
|
|
25
|
+
data: {
|
|
26
|
+
type: PropType<TDetailData>;
|
|
27
|
+
required: true;
|
|
28
|
+
};
|
|
29
|
+
gutter: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
default: string;
|
|
32
|
+
};
|
|
33
|
+
layout: {
|
|
34
|
+
type: PropType<"vertical" | "horizontal-between" | "horizontal-left">;
|
|
35
|
+
default: string;
|
|
36
|
+
};
|
|
37
|
+
labelWidth: {
|
|
38
|
+
type: StringConstructor;
|
|
39
|
+
default: string;
|
|
40
|
+
};
|
|
41
|
+
}>, {
|
|
42
|
+
visibleItems: ComputedRef<DetailItem[]>;
|
|
43
|
+
getOptionClass: (item: DetailItem) => any;
|
|
44
|
+
computedSlotItems: ComputedRef<DetailItem[]>;
|
|
45
|
+
getDefaultValue: (item: DetailItem) => string;
|
|
46
|
+
slots: Readonly<{
|
|
47
|
+
[x: `item-value-${string}`]: Slot<{
|
|
48
|
+
value: any;
|
|
49
|
+
item: DetailItem;
|
|
50
|
+
data: TDetailData;
|
|
51
|
+
fieldName: string;
|
|
52
|
+
}>;
|
|
53
|
+
}>;
|
|
54
|
+
containerStyle: ComputedRef<{
|
|
55
|
+
'--label-width': string;
|
|
56
|
+
} | {
|
|
57
|
+
'--label-width'?: undefined;
|
|
58
|
+
}>;
|
|
59
|
+
isClickable: (item: DetailItem) => boolean;
|
|
60
|
+
handleClick: (item: DetailItem) => void;
|
|
61
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
62
|
+
items: {
|
|
63
|
+
type: PropType<DetailItem[]>;
|
|
64
|
+
required: true;
|
|
65
|
+
};
|
|
66
|
+
data: {
|
|
67
|
+
type: PropType<TDetailData>;
|
|
68
|
+
required: true;
|
|
69
|
+
};
|
|
70
|
+
gutter: {
|
|
71
|
+
type: StringConstructor;
|
|
72
|
+
default: string;
|
|
73
|
+
};
|
|
74
|
+
layout: {
|
|
75
|
+
type: PropType<"vertical" | "horizontal-between" | "horizontal-left">;
|
|
76
|
+
default: string;
|
|
77
|
+
};
|
|
78
|
+
labelWidth: {
|
|
79
|
+
type: StringConstructor;
|
|
80
|
+
default: string;
|
|
81
|
+
};
|
|
82
|
+
}>> & Readonly<{}>, {
|
|
83
|
+
layout: "vertical" | "horizontal-between" | "horizontal-left";
|
|
84
|
+
gutter: string;
|
|
85
|
+
labelWidth: string;
|
|
86
|
+
}, SlotsType<Record<`item-value-${string}`, {
|
|
87
|
+
value: any;
|
|
88
|
+
item: DetailItem;
|
|
89
|
+
data: TDetailData;
|
|
90
|
+
fieldName: string;
|
|
91
|
+
}>>, {
|
|
92
|
+
JQTooltip: DefineComponent<ExtractPropTypes<{
|
|
93
|
+
content: {
|
|
94
|
+
type: StringConstructor;
|
|
95
|
+
default: string;
|
|
96
|
+
};
|
|
97
|
+
contentStyle: {
|
|
98
|
+
type: StringConstructor;
|
|
99
|
+
default: string;
|
|
100
|
+
};
|
|
101
|
+
lines: {
|
|
102
|
+
type: NumberConstructor;
|
|
103
|
+
default: number;
|
|
104
|
+
validator: (value: number) => boolean;
|
|
105
|
+
};
|
|
106
|
+
}>, {
|
|
107
|
+
toolTipClass: ComputedRef<string>;
|
|
108
|
+
ellipsisClass: ComputedRef<"ellipsis" | "ellipsis-multi">;
|
|
109
|
+
computedStyle: ComputedRef<string>;
|
|
110
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
111
|
+
content: {
|
|
112
|
+
type: StringConstructor;
|
|
113
|
+
default: string;
|
|
114
|
+
};
|
|
115
|
+
contentStyle: {
|
|
116
|
+
type: StringConstructor;
|
|
117
|
+
default: string;
|
|
118
|
+
};
|
|
119
|
+
lines: {
|
|
120
|
+
type: NumberConstructor;
|
|
121
|
+
default: number;
|
|
122
|
+
validator: (value: number) => boolean;
|
|
123
|
+
};
|
|
124
|
+
}>> & Readonly<{}>, {
|
|
125
|
+
content: string;
|
|
126
|
+
lines: number;
|
|
127
|
+
contentStyle: string;
|
|
128
|
+
}, {}, {
|
|
129
|
+
QTooltip: ComponentConstructor<QTooltip>;
|
|
130
|
+
}, {
|
|
131
|
+
'j-q-tooltip': Directive;
|
|
132
|
+
}, string, ComponentProvideOptions, true, {}, any>;
|
|
133
|
+
QIcon: ComponentConstructor<QIcon>;
|
|
134
|
+
QTooltip: ComponentConstructor<QTooltip>;
|
|
135
|
+
}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
136
|
+
export default _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare function parseRuleString(ruleString: string): {
|
|
2
|
+
name: keyof ReturnType<typeof formRules> | '';
|
|
3
|
+
args: any[];
|
|
4
|
+
};
|
|
5
|
+
export declare function executeValidation(ruleName: keyof ReturnType<typeof formRules>, value: string, ruleArgs: any[] | undefined, t: any): true | string;
|
|
6
|
+
export declare function formRules(t: any): {
|
|
7
|
+
required: ((val?: any) => any)[];
|
|
8
|
+
arrMaxLength(max: number): ((val?: any) => any)[];
|
|
9
|
+
percentageRules(boundary?: ("left" | "right")[]): ((val?: any) => any)[];
|
|
10
|
+
file: ((val?: any) => any)[];
|
|
11
|
+
addressRules(types?: ("url" | "domain" | "ip" | "ip-port" | "path")[], required?: boolean): ((val?: any) => any)[];
|
|
12
|
+
email: ((val?: any) => any)[];
|
|
13
|
+
port: ((val?: any) => any)[];
|
|
14
|
+
rangeInt(min: number, max: number): ((val?: any) => any)[];
|
|
15
|
+
rangeNumber(min: number, max: number): ((val?: any) => any)[];
|
|
16
|
+
positiveInteger(includeZero?: boolean): ((val?: any) => any)[];
|
|
17
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare function val2Str<T>(value: T): string | T;
|
|
2
|
+
export declare function valSplit(input: string | null | undefined): any;
|
|
3
|
+
export declare function dataCvSize(size: any, unit: any, maxUnit?: any): any;
|
|
4
|
+
export declare function obj2Arr(data: string | any, keyToExtract: string): any;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
export declare function formRules(t?: any): {
|
|
2
|
+
required: ((val?: any) => any)[];
|
|
3
|
+
arrMaxLength(max: number): ((val?: any) => any)[];
|
|
4
|
+
percentageRules(boundary?: ("left" | "right")[]): ((val?: any) => any)[];
|
|
5
|
+
file: ((val?: any) => any)[];
|
|
6
|
+
addressRules(types?: ("url" | "domain" | "ip" | "ip-port" | "path")[], required?: boolean): ((val?: any) => any)[];
|
|
7
|
+
email: ((val?: any) => any)[];
|
|
8
|
+
port: ((val?: any) => any)[];
|
|
9
|
+
rangeInt(min: number, max: number): ((val?: any) => any)[];
|
|
10
|
+
rangeNumber(min: number, max: number): ((val?: any) => any)[];
|
|
11
|
+
positiveInteger(includeZero?: boolean): ((val?: any) => any)[];
|
|
12
|
+
};
|
|
13
|
+
interface DialogProviderOptions {
|
|
14
|
+
router?: any;
|
|
15
|
+
store?: any;
|
|
16
|
+
i18n?: any;
|
|
17
|
+
plugins?: any[];
|
|
18
|
+
iconMapFn?: (iconName: string) => any;
|
|
19
|
+
}
|
|
20
|
+
export type DialogPosition = 'standard' | 'right' | 'top' | 'bottom' | 'left';
|
|
21
|
+
export interface JQDialogRegisterProps {
|
|
22
|
+
allowFocusOutside?: boolean;
|
|
23
|
+
showFooter?: boolean;
|
|
24
|
+
showConfirm?: boolean;
|
|
25
|
+
component?: any;
|
|
26
|
+
content?: any;
|
|
27
|
+
componentBind?: Record<string, any>;
|
|
28
|
+
componentOn?: Record<string, any>;
|
|
29
|
+
closeOnEsc?: boolean;
|
|
30
|
+
closeOnMask?: boolean;
|
|
31
|
+
position?: DialogPosition;
|
|
32
|
+
showHeader?: boolean;
|
|
33
|
+
title?: string;
|
|
34
|
+
maxWidth?: string | number;
|
|
35
|
+
minHeight?: string | number;
|
|
36
|
+
}
|
|
37
|
+
export interface JQDialogExposed {
|
|
38
|
+
open: () => void;
|
|
39
|
+
close: () => void;
|
|
40
|
+
setLoading: (loading: boolean) => void;
|
|
41
|
+
changeCancelText: (text: string) => void;
|
|
42
|
+
changeConfirmText: (text: string) => void;
|
|
43
|
+
setShowConfirm: (show: boolean) => void;
|
|
44
|
+
bindShowConfirm: (source: {
|
|
45
|
+
value: boolean;
|
|
46
|
+
}) => void;
|
|
47
|
+
}
|
|
48
|
+
export declare const DialogProvider: {
|
|
49
|
+
configure(options: DialogProviderOptions): void;
|
|
50
|
+
register(props: JQDialogRegisterProps): Promise<any>;
|
|
51
|
+
destroy(dialogId: string): void;
|
|
52
|
+
};
|
|
53
|
+
export {};
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { PropType, SlotsType, DefineComponent, ExtractPropTypes, Ref, WritableComputedRef, ComputedRef, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
import { QField, QIcon, QBtn, QFieldProps, ComponentConstructor } from 'quasar';
|
|
3
|
+
import { t } from '../../composables/useI18n';
|
|
4
|
+
type TModelValue = File[];
|
|
5
|
+
type TChangeFnReturn = File[] | void;
|
|
6
|
+
type TChangeFn = (files: File[]) => TChangeFnReturn | Promise<TChangeFnReturn>;
|
|
7
|
+
declare const _default: DefineComponent<ExtractPropTypes<{
|
|
8
|
+
modelValue: {
|
|
9
|
+
type: PropType<TModelValue>;
|
|
10
|
+
};
|
|
11
|
+
accept: {
|
|
12
|
+
type: PropType<HTMLInputElement["accept"]>;
|
|
13
|
+
};
|
|
14
|
+
beforeHandle: {
|
|
15
|
+
type: PropType<TChangeFn>;
|
|
16
|
+
};
|
|
17
|
+
disable: {
|
|
18
|
+
type: PropType<QFieldProps["disable"]>;
|
|
19
|
+
};
|
|
20
|
+
maxlength: {
|
|
21
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
22
|
+
};
|
|
23
|
+
rules: {
|
|
24
|
+
type: () => QFieldProps["rules"];
|
|
25
|
+
};
|
|
26
|
+
maxFileSize: {
|
|
27
|
+
type: StringConstructor;
|
|
28
|
+
default: string;
|
|
29
|
+
};
|
|
30
|
+
}>, {
|
|
31
|
+
t: t;
|
|
32
|
+
fileInputRef: Ref<HTMLInputElement | null, HTMLInputElement | null>;
|
|
33
|
+
computedValue: WritableComputedRef<TModelValue, TModelValue>;
|
|
34
|
+
computedMaxlength: ComputedRef<number>;
|
|
35
|
+
isDragging: Ref<boolean, boolean>;
|
|
36
|
+
isMaxlength: ComputedRef<boolean>;
|
|
37
|
+
browseFile: () => void;
|
|
38
|
+
inputFile: (e: Event) => void;
|
|
39
|
+
dragenter: () => void;
|
|
40
|
+
dragover: () => void;
|
|
41
|
+
dragleave: () => void;
|
|
42
|
+
dropFile: (e: DragEvent) => void;
|
|
43
|
+
getFileSizeDisplay: (filer: File) => string;
|
|
44
|
+
deleteFile: (filer: File, index: number) => void;
|
|
45
|
+
hasSlotHint: ComputedRef<boolean>;
|
|
46
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
47
|
+
'update:modelValue': (value: TModelValue) => true;
|
|
48
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
49
|
+
modelValue: {
|
|
50
|
+
type: PropType<TModelValue>;
|
|
51
|
+
};
|
|
52
|
+
accept: {
|
|
53
|
+
type: PropType<HTMLInputElement["accept"]>;
|
|
54
|
+
};
|
|
55
|
+
beforeHandle: {
|
|
56
|
+
type: PropType<TChangeFn>;
|
|
57
|
+
};
|
|
58
|
+
disable: {
|
|
59
|
+
type: PropType<QFieldProps["disable"]>;
|
|
60
|
+
};
|
|
61
|
+
maxlength: {
|
|
62
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
63
|
+
};
|
|
64
|
+
rules: {
|
|
65
|
+
type: () => QFieldProps["rules"];
|
|
66
|
+
};
|
|
67
|
+
maxFileSize: {
|
|
68
|
+
type: StringConstructor;
|
|
69
|
+
default: string;
|
|
70
|
+
};
|
|
71
|
+
}>> & Readonly<{
|
|
72
|
+
"onUpdate:modelValue"?: ((value: TModelValue) => any) | undefined;
|
|
73
|
+
}>, {
|
|
74
|
+
maxFileSize: string;
|
|
75
|
+
}, SlotsType<{
|
|
76
|
+
hint: void;
|
|
77
|
+
}>, {
|
|
78
|
+
QField: ComponentConstructor<QField>;
|
|
79
|
+
QIcon: ComponentConstructor<QIcon>;
|
|
80
|
+
QBtn: ComponentConstructor<QBtn>;
|
|
81
|
+
}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
82
|
+
export default _default;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { PropType, SlotsType, DefineComponent, ExtractPropTypes, ComputedRef, Slot, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
import { QIcon, QTooltip, ComponentConstructor } from 'quasar';
|
|
3
|
+
type VueClass = string | Record<string, boolean> | (string | Record<string, boolean>)[];
|
|
4
|
+
declare const _default: DefineComponent<ExtractPropTypes<{
|
|
5
|
+
label: {
|
|
6
|
+
type: StringConstructor;
|
|
7
|
+
};
|
|
8
|
+
labelClass: {
|
|
9
|
+
type: PropType<VueClass>;
|
|
10
|
+
};
|
|
11
|
+
valueClass: {
|
|
12
|
+
type: PropType<VueClass>;
|
|
13
|
+
};
|
|
14
|
+
vertical: {
|
|
15
|
+
type: BooleanConstructor;
|
|
16
|
+
default: boolean;
|
|
17
|
+
};
|
|
18
|
+
horizontal: {
|
|
19
|
+
type: BooleanConstructor;
|
|
20
|
+
default: boolean;
|
|
21
|
+
};
|
|
22
|
+
required: {
|
|
23
|
+
type: BooleanConstructor;
|
|
24
|
+
default: boolean;
|
|
25
|
+
};
|
|
26
|
+
tip: {
|
|
27
|
+
type: StringConstructor;
|
|
28
|
+
default: string;
|
|
29
|
+
};
|
|
30
|
+
}>, {
|
|
31
|
+
directionClass: ComputedRef<"form-label--vertical" | "form-label--horizontal">;
|
|
32
|
+
showLabel: ComputedRef<true>;
|
|
33
|
+
slots: Readonly<{
|
|
34
|
+
default: Slot<void>;
|
|
35
|
+
'label-hint': Slot<void>;
|
|
36
|
+
'form-item-detail': Slot<void>;
|
|
37
|
+
label: Slot<void>;
|
|
38
|
+
}>;
|
|
39
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
40
|
+
label: {
|
|
41
|
+
type: StringConstructor;
|
|
42
|
+
};
|
|
43
|
+
labelClass: {
|
|
44
|
+
type: PropType<VueClass>;
|
|
45
|
+
};
|
|
46
|
+
valueClass: {
|
|
47
|
+
type: PropType<VueClass>;
|
|
48
|
+
};
|
|
49
|
+
vertical: {
|
|
50
|
+
type: BooleanConstructor;
|
|
51
|
+
default: boolean;
|
|
52
|
+
};
|
|
53
|
+
horizontal: {
|
|
54
|
+
type: BooleanConstructor;
|
|
55
|
+
default: boolean;
|
|
56
|
+
};
|
|
57
|
+
required: {
|
|
58
|
+
type: BooleanConstructor;
|
|
59
|
+
default: boolean;
|
|
60
|
+
};
|
|
61
|
+
tip: {
|
|
62
|
+
type: StringConstructor;
|
|
63
|
+
default: string;
|
|
64
|
+
};
|
|
65
|
+
}>> & Readonly<{}>, {
|
|
66
|
+
required: boolean;
|
|
67
|
+
horizontal: boolean;
|
|
68
|
+
vertical: boolean;
|
|
69
|
+
tip: string;
|
|
70
|
+
}, SlotsType<{
|
|
71
|
+
default: void;
|
|
72
|
+
'label-hint': void;
|
|
73
|
+
'form-item-detail': void;
|
|
74
|
+
label: void;
|
|
75
|
+
}>, {
|
|
76
|
+
QIcon: ComponentConstructor<QIcon>;
|
|
77
|
+
QTooltip: ComponentConstructor<QTooltip>;
|
|
78
|
+
}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
79
|
+
export default _default;
|