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,252 @@
|
|
|
1
|
+
import { QSelectProps, QSelect, QSpinner, QItem, QItemSection, QIcon, ComponentConstructor } from 'quasar';
|
|
2
|
+
import { PropType, SlotsType, DefineComponent, ExtractPropTypes, Ref, WritableComputedRef, ComputedRef, Slot, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
import { t } from '../../composables/useI18n.ts';
|
|
4
|
+
type TModelValue = QSelectProps['modelValue'];
|
|
5
|
+
type TFilterFn = (inputValue: string, callback: (filterOptions?: any[]) => void) => void;
|
|
6
|
+
type TValueDisplayFn = (value: TModelValue) => string;
|
|
7
|
+
declare const _default: DefineComponent<ExtractPropTypes<{
|
|
8
|
+
modelValue: {
|
|
9
|
+
type: PropType<TModelValue>;
|
|
10
|
+
};
|
|
11
|
+
clearable: {
|
|
12
|
+
type: BooleanConstructor;
|
|
13
|
+
default: boolean;
|
|
14
|
+
};
|
|
15
|
+
dense: {
|
|
16
|
+
type: PropType<QSelectProps["dense"]>;
|
|
17
|
+
default: boolean;
|
|
18
|
+
};
|
|
19
|
+
disable: {
|
|
20
|
+
type: PropType<QSelectProps["disable"]>;
|
|
21
|
+
};
|
|
22
|
+
dropdownIcon: {
|
|
23
|
+
type: PropType<QSelectProps["dropdownIcon"]>;
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
26
|
+
emptyOption: {
|
|
27
|
+
type: BooleanConstructor;
|
|
28
|
+
default: boolean;
|
|
29
|
+
};
|
|
30
|
+
filterFn: {
|
|
31
|
+
type: PropType<TFilterFn>;
|
|
32
|
+
};
|
|
33
|
+
filterable: {
|
|
34
|
+
type: BooleanConstructor;
|
|
35
|
+
default: undefined;
|
|
36
|
+
};
|
|
37
|
+
label: {
|
|
38
|
+
type: PropType<QSelectProps["label"]>;
|
|
39
|
+
};
|
|
40
|
+
maxlength: {
|
|
41
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
42
|
+
};
|
|
43
|
+
maxValues: {
|
|
44
|
+
type: PropType<QSelectProps["maxValues"]>;
|
|
45
|
+
};
|
|
46
|
+
multiple: {
|
|
47
|
+
type: BooleanConstructor;
|
|
48
|
+
};
|
|
49
|
+
closeOnSelect: {
|
|
50
|
+
type: BooleanConstructor;
|
|
51
|
+
default: boolean;
|
|
52
|
+
};
|
|
53
|
+
noErrorIcon: {
|
|
54
|
+
type: PropType<QSelectProps["noErrorIcon"]>;
|
|
55
|
+
default: boolean;
|
|
56
|
+
};
|
|
57
|
+
options: {
|
|
58
|
+
type: () => any[];
|
|
59
|
+
default: () => never[];
|
|
60
|
+
};
|
|
61
|
+
optionLabel: {
|
|
62
|
+
type: StringConstructor;
|
|
63
|
+
default: string;
|
|
64
|
+
};
|
|
65
|
+
optionValue: {
|
|
66
|
+
type: StringConstructor;
|
|
67
|
+
default: string;
|
|
68
|
+
};
|
|
69
|
+
outlined: {
|
|
70
|
+
type: PropType<QSelectProps["outlined"]>;
|
|
71
|
+
default: boolean;
|
|
72
|
+
};
|
|
73
|
+
popupContentClass: {
|
|
74
|
+
type: PropType<QSelectProps["popupContentClass"]>;
|
|
75
|
+
};
|
|
76
|
+
readonly: {
|
|
77
|
+
type: BooleanConstructor;
|
|
78
|
+
};
|
|
79
|
+
rules: {
|
|
80
|
+
type: PropType<QSelectProps["rules"]>;
|
|
81
|
+
};
|
|
82
|
+
title: {
|
|
83
|
+
type: PropType<HTMLElement["title"]>;
|
|
84
|
+
};
|
|
85
|
+
useChips: {
|
|
86
|
+
type: PropType<QSelectProps["useChips"]>;
|
|
87
|
+
};
|
|
88
|
+
useInput: {
|
|
89
|
+
type: PropType<QSelectProps["useInput"]>;
|
|
90
|
+
};
|
|
91
|
+
valueDisplayFn: {
|
|
92
|
+
type: PropType<TValueDisplayFn>;
|
|
93
|
+
};
|
|
94
|
+
loading: {
|
|
95
|
+
type: PropType<QSelectProps["loading"]>;
|
|
96
|
+
};
|
|
97
|
+
smInput: {
|
|
98
|
+
type: BooleanConstructor;
|
|
99
|
+
default: boolean;
|
|
100
|
+
};
|
|
101
|
+
}>, {
|
|
102
|
+
t: t;
|
|
103
|
+
qSelectRef: Ref<QSelect | null, QSelect | null>;
|
|
104
|
+
innerValue: WritableComputedRef<any, any>;
|
|
105
|
+
computedEmitValue: ComputedRef<boolean>;
|
|
106
|
+
computedDisplayValue: ComputedRef<any>;
|
|
107
|
+
computedUseInput: ComputedRef<boolean | undefined>;
|
|
108
|
+
getSelectedItemLabelByIndex: (index: number) => any;
|
|
109
|
+
getSelectedItemOptionByIndex: (index: number) => any | undefined;
|
|
110
|
+
filter: (inputValue: string, doneFn: (callbackFn: () => void, afterFn?: (ref: QSelect) => void) => void, abortFn: () => void) => void;
|
|
111
|
+
computedPopupContentClass: ComputedRef<string>;
|
|
112
|
+
computedOptions: ComputedRef<any[]>;
|
|
113
|
+
slots: Readonly<{
|
|
114
|
+
prepend?: Slot<void | undefined> | undefined;
|
|
115
|
+
after?: Slot<void | undefined> | undefined;
|
|
116
|
+
append?: Slot<void | undefined> | undefined;
|
|
117
|
+
'chip-value-display'?: Slot<void | undefined> | undefined;
|
|
118
|
+
hint?: Slot<void | undefined> | undefined;
|
|
119
|
+
'no-option'?: Slot<void | undefined> | undefined;
|
|
120
|
+
option?: Slot<void | undefined> | undefined;
|
|
121
|
+
'value-display'?: Slot<void | undefined> | undefined;
|
|
122
|
+
}>;
|
|
123
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
124
|
+
'update:modelValue': (value: TModelValue) => true;
|
|
125
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
126
|
+
modelValue: {
|
|
127
|
+
type: PropType<TModelValue>;
|
|
128
|
+
};
|
|
129
|
+
clearable: {
|
|
130
|
+
type: BooleanConstructor;
|
|
131
|
+
default: boolean;
|
|
132
|
+
};
|
|
133
|
+
dense: {
|
|
134
|
+
type: PropType<QSelectProps["dense"]>;
|
|
135
|
+
default: boolean;
|
|
136
|
+
};
|
|
137
|
+
disable: {
|
|
138
|
+
type: PropType<QSelectProps["disable"]>;
|
|
139
|
+
};
|
|
140
|
+
dropdownIcon: {
|
|
141
|
+
type: PropType<QSelectProps["dropdownIcon"]>;
|
|
142
|
+
default: string;
|
|
143
|
+
};
|
|
144
|
+
emptyOption: {
|
|
145
|
+
type: BooleanConstructor;
|
|
146
|
+
default: boolean;
|
|
147
|
+
};
|
|
148
|
+
filterFn: {
|
|
149
|
+
type: PropType<TFilterFn>;
|
|
150
|
+
};
|
|
151
|
+
filterable: {
|
|
152
|
+
type: BooleanConstructor;
|
|
153
|
+
default: undefined;
|
|
154
|
+
};
|
|
155
|
+
label: {
|
|
156
|
+
type: PropType<QSelectProps["label"]>;
|
|
157
|
+
};
|
|
158
|
+
maxlength: {
|
|
159
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
160
|
+
};
|
|
161
|
+
maxValues: {
|
|
162
|
+
type: PropType<QSelectProps["maxValues"]>;
|
|
163
|
+
};
|
|
164
|
+
multiple: {
|
|
165
|
+
type: BooleanConstructor;
|
|
166
|
+
};
|
|
167
|
+
closeOnSelect: {
|
|
168
|
+
type: BooleanConstructor;
|
|
169
|
+
default: boolean;
|
|
170
|
+
};
|
|
171
|
+
noErrorIcon: {
|
|
172
|
+
type: PropType<QSelectProps["noErrorIcon"]>;
|
|
173
|
+
default: boolean;
|
|
174
|
+
};
|
|
175
|
+
options: {
|
|
176
|
+
type: () => any[];
|
|
177
|
+
default: () => never[];
|
|
178
|
+
};
|
|
179
|
+
optionLabel: {
|
|
180
|
+
type: StringConstructor;
|
|
181
|
+
default: string;
|
|
182
|
+
};
|
|
183
|
+
optionValue: {
|
|
184
|
+
type: StringConstructor;
|
|
185
|
+
default: string;
|
|
186
|
+
};
|
|
187
|
+
outlined: {
|
|
188
|
+
type: PropType<QSelectProps["outlined"]>;
|
|
189
|
+
default: boolean;
|
|
190
|
+
};
|
|
191
|
+
popupContentClass: {
|
|
192
|
+
type: PropType<QSelectProps["popupContentClass"]>;
|
|
193
|
+
};
|
|
194
|
+
readonly: {
|
|
195
|
+
type: BooleanConstructor;
|
|
196
|
+
};
|
|
197
|
+
rules: {
|
|
198
|
+
type: PropType<QSelectProps["rules"]>;
|
|
199
|
+
};
|
|
200
|
+
title: {
|
|
201
|
+
type: PropType<HTMLElement["title"]>;
|
|
202
|
+
};
|
|
203
|
+
useChips: {
|
|
204
|
+
type: PropType<QSelectProps["useChips"]>;
|
|
205
|
+
};
|
|
206
|
+
useInput: {
|
|
207
|
+
type: PropType<QSelectProps["useInput"]>;
|
|
208
|
+
};
|
|
209
|
+
valueDisplayFn: {
|
|
210
|
+
type: PropType<TValueDisplayFn>;
|
|
211
|
+
};
|
|
212
|
+
loading: {
|
|
213
|
+
type: PropType<QSelectProps["loading"]>;
|
|
214
|
+
};
|
|
215
|
+
smInput: {
|
|
216
|
+
type: BooleanConstructor;
|
|
217
|
+
default: boolean;
|
|
218
|
+
};
|
|
219
|
+
}>> & Readonly<{
|
|
220
|
+
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
221
|
+
}>, {
|
|
222
|
+
dense: boolean | undefined;
|
|
223
|
+
options: any[];
|
|
224
|
+
outlined: boolean | undefined;
|
|
225
|
+
readonly: boolean;
|
|
226
|
+
smInput: boolean;
|
|
227
|
+
noErrorIcon: boolean | undefined;
|
|
228
|
+
clearable: boolean;
|
|
229
|
+
multiple: boolean;
|
|
230
|
+
optionLabel: string;
|
|
231
|
+
optionValue: string;
|
|
232
|
+
dropdownIcon: string | undefined;
|
|
233
|
+
filterable: boolean;
|
|
234
|
+
emptyOption: boolean;
|
|
235
|
+
closeOnSelect: boolean;
|
|
236
|
+
}, SlotsType<{
|
|
237
|
+
prepend?: void | undefined;
|
|
238
|
+
after?: void | undefined;
|
|
239
|
+
append?: void | undefined;
|
|
240
|
+
'chip-value-display'?: void | undefined;
|
|
241
|
+
hint?: void | undefined;
|
|
242
|
+
'no-option'?: void | undefined;
|
|
243
|
+
option?: void | undefined;
|
|
244
|
+
'value-display'?: void | undefined;
|
|
245
|
+
}>, {
|
|
246
|
+
QSelect: ComponentConstructor<QSelect>;
|
|
247
|
+
QSpinner: ComponentConstructor<QSpinner>;
|
|
248
|
+
QItem: ComponentConstructor<QItem>;
|
|
249
|
+
QItemSection: ComponentConstructor<QItemSection>;
|
|
250
|
+
QIcon: ComponentConstructor<QIcon>;
|
|
251
|
+
}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
252
|
+
export default _default;
|
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
import { PropType, SlotsType, DefineComponent, ExtractPropTypes, Ref, WritableComputedRef, ComputedRef, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
import { QTable, QTh, QTd, QInnerLoading, QTableColumn, ComponentConstructor, QSelect, QPagination, QInput } from 'quasar';
|
|
3
|
+
import { t } from '../../composables/useI18n.ts';
|
|
4
|
+
import { Paginator, PaginationParameter, PaginationInfo } from './pagination';
|
|
5
|
+
export interface SelectionConditions {
|
|
6
|
+
itemSelectDisable: (data: any) => boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface TableColumn extends Partial<QTableColumn> {
|
|
9
|
+
name: string;
|
|
10
|
+
[key: string]: any;
|
|
11
|
+
}
|
|
12
|
+
declare const _default: DefineComponent<ExtractPropTypes<{
|
|
13
|
+
autoHeight: {
|
|
14
|
+
type: BooleanConstructor;
|
|
15
|
+
default: boolean;
|
|
16
|
+
};
|
|
17
|
+
autoScrollOnChangePage: {
|
|
18
|
+
type: BooleanConstructor;
|
|
19
|
+
default: boolean;
|
|
20
|
+
};
|
|
21
|
+
cellMaxWidth: {
|
|
22
|
+
type: NumberConstructor;
|
|
23
|
+
default: number;
|
|
24
|
+
};
|
|
25
|
+
cellMaxWidthSmall: {
|
|
26
|
+
type: NumberConstructor;
|
|
27
|
+
default: number;
|
|
28
|
+
};
|
|
29
|
+
columns: {
|
|
30
|
+
type: PropType<any[]>;
|
|
31
|
+
default: () => never[];
|
|
32
|
+
};
|
|
33
|
+
dense: {
|
|
34
|
+
type: BooleanConstructor;
|
|
35
|
+
default: boolean;
|
|
36
|
+
};
|
|
37
|
+
flat: {
|
|
38
|
+
type: BooleanConstructor;
|
|
39
|
+
default: boolean;
|
|
40
|
+
};
|
|
41
|
+
hidePagination: {
|
|
42
|
+
type: BooleanConstructor;
|
|
43
|
+
default: boolean;
|
|
44
|
+
};
|
|
45
|
+
loading: {
|
|
46
|
+
type: BooleanConstructor;
|
|
47
|
+
default: boolean;
|
|
48
|
+
};
|
|
49
|
+
rowKey: {
|
|
50
|
+
default: string;
|
|
51
|
+
};
|
|
52
|
+
rows: {
|
|
53
|
+
type: ArrayConstructor;
|
|
54
|
+
default: () => never[];
|
|
55
|
+
};
|
|
56
|
+
selected: {
|
|
57
|
+
type: ArrayConstructor;
|
|
58
|
+
default: null;
|
|
59
|
+
};
|
|
60
|
+
tableHeaderClass: {
|
|
61
|
+
type: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
|
|
62
|
+
};
|
|
63
|
+
tableClass: {
|
|
64
|
+
type: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
|
|
65
|
+
};
|
|
66
|
+
selectionConditions: {
|
|
67
|
+
type: () => SelectionConditions | null;
|
|
68
|
+
default: null;
|
|
69
|
+
};
|
|
70
|
+
}>, {
|
|
71
|
+
t: t;
|
|
72
|
+
JQTableRef: Ref<null, null>;
|
|
73
|
+
computedSelected: WritableComputedRef<unknown[], unknown[]>;
|
|
74
|
+
hasSlot: (slotName: string) => boolean;
|
|
75
|
+
computedTableHeaderClass: ComputedRef<string | Record<string, any> | unknown[] | undefined>;
|
|
76
|
+
computedSlotHeaderCellColumns: ComputedRef<any[]>;
|
|
77
|
+
computedSlotBodyCellColumns: ComputedRef<any[]>;
|
|
78
|
+
computedClickableColumns: ComputedRef<any[]>;
|
|
79
|
+
computedWhiteSpaceColumns: ComputedRef<any[]>;
|
|
80
|
+
computedLimitWidthColumns: ComputedRef<any[]>;
|
|
81
|
+
paginationInfo: Paginator;
|
|
82
|
+
getPaginationParam: () => PaginationParameter;
|
|
83
|
+
getNum: () => number;
|
|
84
|
+
setNum: (value?: number) => void;
|
|
85
|
+
setTotal: (value?: number) => void;
|
|
86
|
+
setSize: (value?: number) => void;
|
|
87
|
+
clacPagination: ComputedRef<{
|
|
88
|
+
rowsPerPage: number;
|
|
89
|
+
}>;
|
|
90
|
+
changeNum: () => void;
|
|
91
|
+
changeSize: () => void;
|
|
92
|
+
onPaginationChange: (data: any) => void;
|
|
93
|
+
formatColumnValue: (col: any, value: any) => any;
|
|
94
|
+
handleColumnClick: (col: any, row: any) => void;
|
|
95
|
+
isClickable: (col: any, value: any, row: any) => any;
|
|
96
|
+
getCellStyle: (col: any) => {
|
|
97
|
+
width?: undefined;
|
|
98
|
+
maxWidth?: undefined;
|
|
99
|
+
minWidth?: undefined;
|
|
100
|
+
} | {
|
|
101
|
+
width: string;
|
|
102
|
+
maxWidth: string;
|
|
103
|
+
minWidth: string;
|
|
104
|
+
};
|
|
105
|
+
getCellClass: (col: any) => string;
|
|
106
|
+
getCellLimitWidthStyle: (col: any) => {
|
|
107
|
+
'--cell-max-width-small': string;
|
|
108
|
+
'--cell-max-width'?: undefined;
|
|
109
|
+
} | {
|
|
110
|
+
'--cell-max-width': string;
|
|
111
|
+
'--cell-max-width-small'?: undefined;
|
|
112
|
+
} | {
|
|
113
|
+
'--cell-max-width-small'?: undefined;
|
|
114
|
+
'--cell-max-width'?: undefined;
|
|
115
|
+
};
|
|
116
|
+
getTooltipStyle: () => {
|
|
117
|
+
whiteSpace: string;
|
|
118
|
+
wordBreak: string;
|
|
119
|
+
overflowWrap: string;
|
|
120
|
+
};
|
|
121
|
+
getTooltipClass: (col?: any) => "j-tooltip--small" | "j-tooltip--large";
|
|
122
|
+
setEllipsisRef: (el: any, key: string) => void;
|
|
123
|
+
shouldShowTooltip: (key: string) => boolean;
|
|
124
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
125
|
+
autoHeight: {
|
|
126
|
+
type: BooleanConstructor;
|
|
127
|
+
default: boolean;
|
|
128
|
+
};
|
|
129
|
+
autoScrollOnChangePage: {
|
|
130
|
+
type: BooleanConstructor;
|
|
131
|
+
default: boolean;
|
|
132
|
+
};
|
|
133
|
+
cellMaxWidth: {
|
|
134
|
+
type: NumberConstructor;
|
|
135
|
+
default: number;
|
|
136
|
+
};
|
|
137
|
+
cellMaxWidthSmall: {
|
|
138
|
+
type: NumberConstructor;
|
|
139
|
+
default: number;
|
|
140
|
+
};
|
|
141
|
+
columns: {
|
|
142
|
+
type: PropType<any[]>;
|
|
143
|
+
default: () => never[];
|
|
144
|
+
};
|
|
145
|
+
dense: {
|
|
146
|
+
type: BooleanConstructor;
|
|
147
|
+
default: boolean;
|
|
148
|
+
};
|
|
149
|
+
flat: {
|
|
150
|
+
type: BooleanConstructor;
|
|
151
|
+
default: boolean;
|
|
152
|
+
};
|
|
153
|
+
hidePagination: {
|
|
154
|
+
type: BooleanConstructor;
|
|
155
|
+
default: boolean;
|
|
156
|
+
};
|
|
157
|
+
loading: {
|
|
158
|
+
type: BooleanConstructor;
|
|
159
|
+
default: boolean;
|
|
160
|
+
};
|
|
161
|
+
rowKey: {
|
|
162
|
+
default: string;
|
|
163
|
+
};
|
|
164
|
+
rows: {
|
|
165
|
+
type: ArrayConstructor;
|
|
166
|
+
default: () => never[];
|
|
167
|
+
};
|
|
168
|
+
selected: {
|
|
169
|
+
type: ArrayConstructor;
|
|
170
|
+
default: null;
|
|
171
|
+
};
|
|
172
|
+
tableHeaderClass: {
|
|
173
|
+
type: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
|
|
174
|
+
};
|
|
175
|
+
tableClass: {
|
|
176
|
+
type: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
|
|
177
|
+
};
|
|
178
|
+
selectionConditions: {
|
|
179
|
+
type: () => SelectionConditions | null;
|
|
180
|
+
default: null;
|
|
181
|
+
};
|
|
182
|
+
}>> & Readonly<{}>, {
|
|
183
|
+
flat: boolean;
|
|
184
|
+
dense: boolean;
|
|
185
|
+
loading: boolean;
|
|
186
|
+
selected: unknown[];
|
|
187
|
+
columns: any[];
|
|
188
|
+
autoHeight: boolean;
|
|
189
|
+
autoScrollOnChangePage: boolean;
|
|
190
|
+
cellMaxWidth: number;
|
|
191
|
+
cellMaxWidthSmall: number;
|
|
192
|
+
hidePagination: boolean;
|
|
193
|
+
rowKey: string;
|
|
194
|
+
rows: unknown[];
|
|
195
|
+
selectionConditions: SelectionConditions | null;
|
|
196
|
+
}, SlotsType<{
|
|
197
|
+
top?: void | undefined;
|
|
198
|
+
header?: any;
|
|
199
|
+
body?: any;
|
|
200
|
+
append?: void | undefined;
|
|
201
|
+
} & Record<`header-cell-${string}`, any> & Record<`body-cell-${string}`, any>>, {
|
|
202
|
+
Pagination: DefineComponent<ExtractPropTypes<{
|
|
203
|
+
paginationInfo: {
|
|
204
|
+
type: () => PaginationInfo;
|
|
205
|
+
default: () => {
|
|
206
|
+
page: number;
|
|
207
|
+
rowsPerPage: number;
|
|
208
|
+
rowsNumber: number;
|
|
209
|
+
};
|
|
210
|
+
};
|
|
211
|
+
}>, {
|
|
212
|
+
t: t;
|
|
213
|
+
internalInfo: {
|
|
214
|
+
totalPage: number;
|
|
215
|
+
currentPage: string | number;
|
|
216
|
+
page: number;
|
|
217
|
+
rowsPerPage: number;
|
|
218
|
+
rowsNumber: number;
|
|
219
|
+
};
|
|
220
|
+
rowNumbersArr: number[];
|
|
221
|
+
currentPagePlaceholder: ComputedRef<string>;
|
|
222
|
+
currentPageMask: ComputedRef<string>;
|
|
223
|
+
maxPage: ComputedRef<number>;
|
|
224
|
+
handleRowsPerPageChange: () => void;
|
|
225
|
+
handlePageChange: () => void;
|
|
226
|
+
paginationInput: () => void;
|
|
227
|
+
selectChange: () => void;
|
|
228
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "pagination"[], "pagination", PublicProps, Readonly< ExtractPropTypes<{
|
|
229
|
+
paginationInfo: {
|
|
230
|
+
type: () => PaginationInfo;
|
|
231
|
+
default: () => {
|
|
232
|
+
page: number;
|
|
233
|
+
rowsPerPage: number;
|
|
234
|
+
rowsNumber: number;
|
|
235
|
+
};
|
|
236
|
+
};
|
|
237
|
+
}>> & Readonly<{
|
|
238
|
+
onPagination?: ((...args: any[]) => any) | undefined;
|
|
239
|
+
}>, {
|
|
240
|
+
paginationInfo: PaginationInfo;
|
|
241
|
+
}, {}, {
|
|
242
|
+
QSelect: ComponentConstructor<QSelect>;
|
|
243
|
+
QPagination: ComponentConstructor<QPagination>;
|
|
244
|
+
QInput: ComponentConstructor<QInput>;
|
|
245
|
+
}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
246
|
+
QTable: ComponentConstructor<QTable>;
|
|
247
|
+
QTh: ComponentConstructor<QTh>;
|
|
248
|
+
QTd: ComponentConstructor<QTd>;
|
|
249
|
+
QInnerLoading: ComponentConstructor<QInnerLoading>;
|
|
250
|
+
}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
251
|
+
export default _default;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
export type PaginationParameter = Pick<Paginator, 'page' | 'rowsPerPage'>;
|
|
2
|
+
export interface Paginator {
|
|
3
|
+
page: number;
|
|
4
|
+
rowsPerPage: number;
|
|
5
|
+
rowsNumber: number;
|
|
6
|
+
}
|
|
7
|
+
export type UsePaginationOptions = {
|
|
8
|
+
page?: number;
|
|
9
|
+
rowsPerPage?: number;
|
|
10
|
+
rowsNumber?: number;
|
|
11
|
+
};
|
|
12
|
+
export type UsePaginationReturn = {
|
|
13
|
+
paginationInfo: Paginator;
|
|
14
|
+
getNum: () => number;
|
|
15
|
+
getPaginationParam: () => PaginationParameter;
|
|
16
|
+
setNum: (value?: number) => void;
|
|
17
|
+
setSize: (value?: number) => void;
|
|
18
|
+
setTotal: (value?: number) => void;
|
|
19
|
+
};
|
|
20
|
+
export declare const DEFAULT_ROWS_PER_PAGE = 15;
|
|
21
|
+
export declare const ROWS_PER_PAGE_OPTIONS: number[];
|
|
22
|
+
export declare function usePagination(options?: UsePaginationOptions): UsePaginationReturn;
|
|
23
|
+
rowsPerPage: number;
|
|
24
|
+
rowsNumber: number;
|
|
25
|
+
};
|
|
26
|
+
rowNumbersArr: number[];
|
|
27
|
+
currentPagePlaceholder: ComputedRef<string>;
|
|
28
|
+
currentPageMask: ComputedRef<string>;
|
|
29
|
+
maxPage: ComputedRef<number>;
|
|
30
|
+
handleRowsPerPageChange: () => void;
|
|
31
|
+
handlePageChange: () => void;
|
|
32
|
+
paginationInput: () => void;
|
|
33
|
+
selectChange: () => void;
|
|
34
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "pagination"[], "pagination", PublicProps, Readonly< ExtractPropTypes<{
|
|
35
|
+
paginationInfo: {
|
|
36
|
+
type: () => PaginationInfo;
|
|
37
|
+
default: () => {
|
|
38
|
+
page: number;
|
|
39
|
+
rowsPerPage: number;
|
|
40
|
+
rowsNumber: number;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
}>> & Readonly<{
|
|
44
|
+
onPagination?: ((...args: any[]) => any) | undefined;
|
|
45
|
+
}>, {
|
|
46
|
+
paginationInfo: PaginationInfo;
|
|
47
|
+
}, {}, {
|
|
48
|
+
QSelect: ComponentConstructor<QSelect>;
|
|
49
|
+
QPagination: ComponentConstructor<QPagination>;
|
|
50
|
+
QInput: ComponentConstructor<QInput>;
|
|
51
|
+
}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
52
|
+
export default _default;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { QTooltip, ComponentConstructor } from 'quasar';
|
|
2
|
+
import { DefineComponent, ExtractPropTypes, ComputedRef, ComponentOptionsMixin, PublicProps, Directive, ComponentProvideOptions } from 'vue';
|
|
3
|
+
declare const _default: DefineComponent<ExtractPropTypes<{
|
|
4
|
+
content: {
|
|
5
|
+
type: StringConstructor;
|
|
6
|
+
default: string;
|
|
7
|
+
};
|
|
8
|
+
contentStyle: {
|
|
9
|
+
type: StringConstructor;
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
lines: {
|
|
13
|
+
type: NumberConstructor;
|
|
14
|
+
default: number;
|
|
15
|
+
validator: (value: number) => boolean;
|
|
16
|
+
};
|
|
17
|
+
}>, {
|
|
18
|
+
toolTipClass: ComputedRef<string>;
|
|
19
|
+
ellipsisClass: ComputedRef<"ellipsis" | "ellipsis-multi">;
|
|
20
|
+
computedStyle: ComputedRef<string>;
|
|
21
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
22
|
+
content: {
|
|
23
|
+
type: StringConstructor;
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
26
|
+
contentStyle: {
|
|
27
|
+
type: StringConstructor;
|
|
28
|
+
default: string;
|
|
29
|
+
};
|
|
30
|
+
lines: {
|
|
31
|
+
type: NumberConstructor;
|
|
32
|
+
default: number;
|
|
33
|
+
validator: (value: number) => boolean;
|
|
34
|
+
};
|
|
35
|
+
}>> & Readonly<{}>, {
|
|
36
|
+
content: string;
|
|
37
|
+
lines: number;
|
|
38
|
+
contentStyle: string;
|
|
39
|
+
}, {}, {
|
|
40
|
+
QTooltip: ComponentConstructor<QTooltip>;
|
|
41
|
+
}, {
|
|
42
|
+
'j-q-tooltip': Directive;
|
|
43
|
+
}, string, ComponentProvideOptions, true, {}, any>;
|
|
44
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { Locale } from '../i18n';
|
|
3
|
+
import { QVueGlobals } from 'quasar';
|
|
4
|
+
export type { Locale };
|
|
5
|
+
export declare function setQuasarInstance($q: QVueGlobals): void;
|
|
6
|
+
export declare function t(key: string, variables?: Record<string, any>): string;
|
|
7
|
+
export declare function setLocale(locale: Locale): Promise<void>;
|
|
8
|
+
export declare function getLocale(): Locale;
|
|
9
|
+
export declare function useI18n(): {
|
|
10
|
+
t: typeof t;
|
|
11
|
+
locale: Ref<Locale, Locale>;
|
|
12
|
+
setLocale: typeof setLocale;
|
|
13
|
+
getLocale: typeof getLocale;
|
|
14
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r={isoName:"en-US",nativeName:"English (US)",label:{clear:"Clear",ok:"OK",cancel:"Cancel",close:"Close",set:"Set",select:"Select",reset:"Reset",remove:"Remove",update:"Update",create:"Create",search:"Search",filter:"Filter",refresh:"Refresh",expand:e=>e?`Expand "${e}"`:"Expand",collapse:e=>e?`Collapse "${e}"`:"Collapse"},date:{days:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),daysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),firstDayOfWeek:0,format24h:!1,pluralDay:"days",prevMonth:"Previous month",nextMonth:"Next month",prevYear:"Previous year",nextYear:"Next year",today:"Today",prevRangeYears:e=>`Previous ${e} years`,nextRangeYears:e=>`Next ${e} years`},table:{noData:"No data available",noResults:"No matching records found",loading:"Loading...",selectedRecords:e=>e===1?"1 record selected.":(e===0?"No":e)+" records selected.",recordsPerPage:"Records per page:",allRows:"All",pagination:(e,a,t)=>e+"-"+a+" of "+t,columns:"Columns"},pagination:{first:"First page",prev:"Previous page",next:"Next page",last:"Last page"},editor:{url:"URL",bold:"Bold",italic:"Italic",strikethrough:"Strikethrough",underline:"Underline",unorderedList:"Unordered List",orderedList:"Ordered List",subscript:"Subscript",superscript:"Superscript",hyperlink:"Hyperlink",toggleFullscreen:"Toggle Fullscreen",quote:"Quote",left:"Left align",center:"Center align",right:"Right align",justify:"Justify align",print:"Print",outdent:"Decrease indentation",indent:"Increase indentation",removeFormat:"Remove formatting",formatting:"Formatting",fontSize:"Font Size",align:"Align",hr:"Insert Horizontal Rule",undo:"Undo",redo:"Redo",heading1:"Heading 1",heading2:"Heading 2",heading3:"Heading 3",heading4:"Heading 4",heading5:"Heading 5",heading6:"Heading 6",paragraph:"Paragraph",code:"Code",size1:"Very small",size2:"A bit small",size3:"Normal",size4:"Medium-large",size5:"Big",size6:"Very big",size7:"Maximum",defaultFont:"Default Font",viewSource:"View Source"},tree:{noNodes:"No nodes available",noResults:"No matching nodes found"}};exports.default=r;
|