@g1cloud/open-bluesea-core 1.0.0-alpha.4 → 1.0.0-alpha.6
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/BSAlertModal-ZEIUM0ut.js +4 -0
- package/dist/BSYesNoModal-Cs6mgXcP.js +4 -0
- package/dist/index.d.ts +1521 -42
- package/dist/open-bluesea-core.css +106 -2
- package/dist/open-bluesea-core.es.js +1122 -314
- package/dist/open-bluesea-core.umd.js +1128 -312
- package/package.json +2 -1
- package/dist/blueseaPlugin.d.ts +0 -43
- package/dist/component/basic/PageNavigation.model.d.ts +0 -5
- package/dist/component/input/DateInputLib.d.ts +0 -26
- package/dist/contextmenu/contextMenuPlugin.d.ts +0 -36
- package/dist/directive/vClickOutside.d.ts +0 -20
- package/dist/directive/vFocusOnLoad.d.ts +0 -3
- package/dist/directive/vTooltip.d.ts +0 -7
- package/dist/model/CommonTypes.d.ts +0 -29
- package/dist/model/DefaultImpl.d.ts +0 -7
- package/dist/model/FieldContext.d.ts +0 -14
- package/dist/notification/notificationPlugin.d.ts +0 -31
- package/dist/savepoint/SavePoint.d.ts +0 -46
- package/dist/util/componentUtil.d.ts +0 -11
- package/dist/util/debounceUtil.d.ts +0 -16
- package/dist/util/formatUtil.d.ts +0 -69
- package/dist/util/typeUtil.d.ts +0 -18
- package/dist/util/waitUtil.d.ts +0 -19
- package/dist/validator/FieldValidator.d.ts +0 -43
package/dist/index.d.ts
CHANGED
|
@@ -1,42 +1,1521 @@
|
|
|
1
|
-
import '
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
1
|
+
import { AllowedComponentProps } from 'vue';
|
|
2
|
+
import { App } from 'vue';
|
|
3
|
+
import { Component } from 'vue';
|
|
4
|
+
import { ComponentCustomProperties } from 'vue';
|
|
5
|
+
import { ComponentCustomProps } from 'vue';
|
|
6
|
+
import { ComponentInternalInstance } from 'vue';
|
|
7
|
+
import { ComponentOptionsBase } from 'vue';
|
|
8
|
+
import { ComponentOptionsMixin } from 'vue';
|
|
9
|
+
import { ComponentProvideOptions } from 'vue';
|
|
10
|
+
import { ComponentPublicInstance } from 'vue';
|
|
11
|
+
import { CreateComponentPublicInstanceWithMixins } from 'vue';
|
|
12
|
+
import { DebuggerEvent } from 'vue';
|
|
13
|
+
import { DefineComponent } from 'vue';
|
|
14
|
+
import { DirectiveBinding } from 'vue';
|
|
15
|
+
import { GlobalComponents } from 'vue';
|
|
16
|
+
import { GlobalDirectives } from 'vue';
|
|
17
|
+
import { InjectionKey } from 'vue';
|
|
18
|
+
import { nextTick } from 'vue';
|
|
19
|
+
import { ObjectDirective } from 'vue';
|
|
20
|
+
import { OnCleanup } from '@vue/reactivity';
|
|
21
|
+
import { Plugin as Plugin_2 } from 'vue';
|
|
22
|
+
import { PublicProps } from 'vue';
|
|
23
|
+
import { Raw } from 'vue';
|
|
24
|
+
import { Reactive } from 'vue';
|
|
25
|
+
import { Ref } from 'vue';
|
|
26
|
+
import { ShallowUnwrapRef } from 'vue';
|
|
27
|
+
import { Slot } from 'vue';
|
|
28
|
+
import { UnwrapRef } from 'vue';
|
|
29
|
+
import { VNode } from 'vue';
|
|
30
|
+
import { VNodeProps } from 'vue';
|
|
31
|
+
import { WatchOptions } from 'vue';
|
|
32
|
+
import { WatchStopHandle } from 'vue';
|
|
33
|
+
|
|
34
|
+
declare const __VLS_component: DefineComponent<__VLS_Props_3, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
35
|
+
click: (event: Event) => any;
|
|
36
|
+
keydown: (event: KeyboardEvent) => any;
|
|
37
|
+
requestClose: () => any;
|
|
38
|
+
}, string, PublicProps, Readonly<__VLS_Props_3> & Readonly<{
|
|
39
|
+
onClick?: ((event: Event) => any) | undefined;
|
|
40
|
+
onKeydown?: ((event: KeyboardEvent) => any) | undefined;
|
|
41
|
+
onRequestClose?: (() => any) | undefined;
|
|
42
|
+
}>, {
|
|
43
|
+
maxHeight: string;
|
|
44
|
+
popupDirection: "down" | "up" | "right" | "auto-down" | "auto-right";
|
|
45
|
+
popupAlign: "left" | "right" | "center" | "auto";
|
|
46
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
47
|
+
root: HTMLDivElement;
|
|
48
|
+
}, any>;
|
|
49
|
+
|
|
50
|
+
declare const __VLS_component_2: DefineComponent<__VLS_Props_10, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
51
|
+
"update:modelValue": (value: boolean) => any;
|
|
52
|
+
}, string, PublicProps, Readonly<__VLS_Props_10> & Readonly<{
|
|
53
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
54
|
+
}>, {
|
|
55
|
+
tabindex: number;
|
|
56
|
+
id: string;
|
|
57
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
58
|
+
field: HTMLInputElement;
|
|
59
|
+
}, HTMLSpanElement>;
|
|
60
|
+
|
|
61
|
+
declare const __VLS_component_3: DefineComponent<__VLS_Props_15, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_15> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
62
|
+
|
|
63
|
+
declare const __VLS_component_4: DefineComponent<__VLS_Props_18, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
64
|
+
closeModal: () => any;
|
|
65
|
+
}, string, PublicProps, Readonly<__VLS_Props_18> & Readonly<{
|
|
66
|
+
onCloseModal?: (() => any) | undefined;
|
|
67
|
+
}>, {
|
|
68
|
+
closeCaption: string;
|
|
69
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
70
|
+
modalBody: HTMLDivElement;
|
|
71
|
+
modalButtons: HTMLDivElement;
|
|
72
|
+
}, HTMLDivElement>;
|
|
73
|
+
|
|
74
|
+
declare type __VLS_PrettifyLocal<T> = {
|
|
75
|
+
[K in keyof T]: T[K];
|
|
76
|
+
} & {};
|
|
77
|
+
|
|
78
|
+
declare type __VLS_PrettifyLocal_2<T> = {
|
|
79
|
+
[K in keyof T]: T[K];
|
|
80
|
+
} & {};
|
|
81
|
+
|
|
82
|
+
declare type __VLS_PrettifyLocal_3<T> = {
|
|
83
|
+
[K in keyof T]: T[K];
|
|
84
|
+
} & {};
|
|
85
|
+
|
|
86
|
+
declare type __VLS_PrettifyLocal_4<T> = {
|
|
87
|
+
[K in keyof T]: T[K];
|
|
88
|
+
} & {};
|
|
89
|
+
|
|
90
|
+
declare type __VLS_PrettifyLocal_5<T> = {
|
|
91
|
+
[K in keyof T]: T[K];
|
|
92
|
+
} & {};
|
|
93
|
+
|
|
94
|
+
declare type __VLS_Props = {
|
|
95
|
+
caption?: string;
|
|
96
|
+
buttonColor?: string;
|
|
97
|
+
leftIcon?: string;
|
|
98
|
+
rightIcon?: string;
|
|
99
|
+
disabled?: boolean;
|
|
100
|
+
linkUrl?: string;
|
|
101
|
+
linkTarget?: string;
|
|
102
|
+
routePath?: string;
|
|
103
|
+
tooltip?: string;
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
declare type __VLS_Props_10 = {
|
|
107
|
+
id?: string;
|
|
108
|
+
name?: string;
|
|
109
|
+
label?: string;
|
|
110
|
+
modelValue?: boolean;
|
|
111
|
+
disabled?: boolean;
|
|
112
|
+
viewMode?: boolean;
|
|
113
|
+
tabindex?: number;
|
|
114
|
+
disableSavePoint?: boolean;
|
|
115
|
+
ignoreSavePoint?: boolean;
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
declare type __VLS_Props_11 = {
|
|
119
|
+
id?: string;
|
|
120
|
+
placeholder?: string;
|
|
121
|
+
name?: string;
|
|
122
|
+
modelValue?: string;
|
|
123
|
+
disabled?: boolean;
|
|
124
|
+
viewMode?: boolean;
|
|
125
|
+
required?: boolean;
|
|
126
|
+
width?: string;
|
|
127
|
+
resolution?: DateResolution;
|
|
128
|
+
endTime?: boolean;
|
|
129
|
+
displayFormat?: string | DisplayDateResolution;
|
|
130
|
+
timeZone?: TimeZone;
|
|
131
|
+
hidePopupExtraDate?: boolean;
|
|
132
|
+
tabindex?: number;
|
|
133
|
+
validationMessageRequired?: string;
|
|
134
|
+
extraValidationRules?: FieldValidationRule<string>[];
|
|
135
|
+
ignoreSavePoint?: boolean;
|
|
136
|
+
popupAlign?: "left" | "right" | "center" | "auto";
|
|
137
|
+
popupDirection?: "down" | "up" | "right" | "auto-down" | "auto-right";
|
|
138
|
+
popupStartYear?: string;
|
|
139
|
+
popupEndYear?: string;
|
|
140
|
+
hideErrorMessage?: boolean;
|
|
141
|
+
showErrorMessageOnDisabled?: boolean;
|
|
142
|
+
minDateValue?: string;
|
|
143
|
+
maxDateValue?: string;
|
|
144
|
+
};
|
|
145
|
+
|
|
146
|
+
declare type __VLS_Props_12 = {
|
|
147
|
+
modelValue?: string;
|
|
148
|
+
resolution: DateResolution;
|
|
149
|
+
displayFormat?: string | DisplayDateResolution;
|
|
150
|
+
timeZone?: TimeZone;
|
|
151
|
+
baseElement: HTMLElement | null;
|
|
152
|
+
popupAlign?: "left" | "right" | "center" | "auto";
|
|
153
|
+
popupDirection?: "down" | "up" | "right" | "auto-down" | "auto-right";
|
|
154
|
+
selectStartYear?: string;
|
|
155
|
+
selectEndYear?: string;
|
|
156
|
+
okButtonCaption?: string;
|
|
157
|
+
cancelButtonCaption?: string;
|
|
158
|
+
};
|
|
159
|
+
|
|
160
|
+
declare type __VLS_Props_13 = {
|
|
161
|
+
idFrom?: string;
|
|
162
|
+
idTo?: string;
|
|
163
|
+
placeholderFrom?: string;
|
|
164
|
+
placeholderTo?: string;
|
|
165
|
+
nameFrom?: string;
|
|
166
|
+
nameTo?: string;
|
|
167
|
+
fromValue?: string;
|
|
168
|
+
toValue?: string;
|
|
169
|
+
disabledFrom?: boolean;
|
|
170
|
+
disabledTo?: boolean;
|
|
171
|
+
viewMode?: boolean;
|
|
172
|
+
required?: boolean;
|
|
173
|
+
requiredFrom?: boolean;
|
|
174
|
+
requiredTo?: boolean;
|
|
175
|
+
width?: string;
|
|
176
|
+
resolution?: DateResolution;
|
|
177
|
+
displayFormat?: string | DisplayDateResolution;
|
|
178
|
+
timeZone?: TimeZone;
|
|
179
|
+
hidePopupExtraDate?: boolean;
|
|
180
|
+
tabindex?: number;
|
|
181
|
+
validateDateOrder?: boolean;
|
|
182
|
+
validationMessageRequired?: string;
|
|
183
|
+
validationMessageDateOrder?: string;
|
|
184
|
+
extraValidationRules?: FieldValidationRule<string>[];
|
|
185
|
+
ignoreSavePoint?: boolean;
|
|
186
|
+
popupDisplayFormat?: string | DisplayDateResolution;
|
|
187
|
+
popupAlign?: "left" | "right" | "center" | "auto";
|
|
188
|
+
popupDirection?: "down" | "up" | "auto";
|
|
189
|
+
popupStartYear?: string;
|
|
190
|
+
popupEndYear?: string;
|
|
191
|
+
hideErrorMessage?: boolean;
|
|
192
|
+
showErrorMessageOnDisabled?: boolean;
|
|
193
|
+
minDateValue?: string;
|
|
194
|
+
maxDateValue?: string;
|
|
195
|
+
};
|
|
196
|
+
|
|
197
|
+
declare type __VLS_Props_14 = {
|
|
198
|
+
from?: string;
|
|
199
|
+
to?: string;
|
|
200
|
+
disabledFrom?: boolean;
|
|
201
|
+
disabledTo?: boolean;
|
|
202
|
+
resolution: DateResolution;
|
|
203
|
+
displayFormat?: string | DisplayDateResolution;
|
|
204
|
+
timeZone?: TimeZone;
|
|
205
|
+
baseElement: HTMLElement | null;
|
|
206
|
+
selectStartYear?: string;
|
|
207
|
+
selectEndYear?: string;
|
|
208
|
+
okButtonCaption?: string;
|
|
209
|
+
cancelButtonCaption?: string;
|
|
210
|
+
};
|
|
211
|
+
|
|
212
|
+
declare type __VLS_Props_15 = {
|
|
213
|
+
title?: string;
|
|
214
|
+
hideTitle?: boolean;
|
|
215
|
+
cardBodyClass?: string | string[] | unknown;
|
|
216
|
+
};
|
|
217
|
+
|
|
218
|
+
declare type __VLS_Props_16 = {
|
|
219
|
+
title?: string;
|
|
220
|
+
message?: string;
|
|
221
|
+
okCaption?: string;
|
|
222
|
+
};
|
|
223
|
+
|
|
224
|
+
declare type __VLS_Props_17 = {
|
|
225
|
+
title?: string;
|
|
226
|
+
message?: string;
|
|
227
|
+
yesCaption?: string;
|
|
228
|
+
noCaption?: string;
|
|
229
|
+
};
|
|
230
|
+
|
|
231
|
+
declare type __VLS_Props_18 = {
|
|
232
|
+
title?: string;
|
|
233
|
+
hideMaximizeButton?: boolean;
|
|
234
|
+
hideCloseButton?: boolean;
|
|
235
|
+
closeCaption?: string;
|
|
236
|
+
autoFocus?: boolean;
|
|
237
|
+
};
|
|
238
|
+
|
|
239
|
+
declare type __VLS_Props_19 = {
|
|
240
|
+
menuItems?: MenuItem[];
|
|
241
|
+
popupId?: string;
|
|
242
|
+
baseElement?: HTMLElement | null;
|
|
243
|
+
left?: number;
|
|
244
|
+
top?: number;
|
|
245
|
+
zIndex?: number;
|
|
246
|
+
direction?: "auto-right";
|
|
247
|
+
};
|
|
248
|
+
|
|
249
|
+
declare type __VLS_Props_2 = {
|
|
250
|
+
totalCount?: number;
|
|
251
|
+
offset?: number;
|
|
252
|
+
limit?: number;
|
|
253
|
+
visiblePageCount?: number;
|
|
254
|
+
maxPage?: number;
|
|
255
|
+
};
|
|
256
|
+
|
|
257
|
+
declare type __VLS_Props_3 = {
|
|
258
|
+
popupId?: string;
|
|
259
|
+
maxHeight?: string;
|
|
260
|
+
baseElement?: HTMLElement | null | {
|
|
261
|
+
left: number;
|
|
262
|
+
top: number;
|
|
263
|
+
};
|
|
264
|
+
offsetFromBaseElement?: number;
|
|
265
|
+
extraClass?: string;
|
|
266
|
+
popupDirection?: "down" | "up" | "right" | "auto-down" | "auto-right";
|
|
267
|
+
popupAlign?: "left" | "right" | "center" | "auto";
|
|
268
|
+
zIndex?: number;
|
|
269
|
+
};
|
|
270
|
+
|
|
271
|
+
declare type __VLS_Props_4 = {
|
|
272
|
+
align?: "left" | "center" | "right";
|
|
273
|
+
content?: string;
|
|
274
|
+
target?: HTMLElement;
|
|
275
|
+
};
|
|
276
|
+
|
|
277
|
+
declare type __VLS_Props_5 = {
|
|
278
|
+
modelValue?: string;
|
|
279
|
+
initialYear?: number;
|
|
280
|
+
initialMonth?: number;
|
|
281
|
+
timeZone?: TimeZone;
|
|
282
|
+
showTimeZone?: boolean;
|
|
283
|
+
resolution?: DateResolution;
|
|
284
|
+
firstDay?: 0 | 1;
|
|
285
|
+
displayFormat?: string | DisplayDateResolution;
|
|
286
|
+
rangeType?: "from" | "to";
|
|
287
|
+
rangeValue?: string;
|
|
288
|
+
disabled?: boolean;
|
|
289
|
+
startYear?: string;
|
|
290
|
+
endYear?: string;
|
|
291
|
+
};
|
|
292
|
+
|
|
293
|
+
declare type __VLS_Props_6 = {
|
|
294
|
+
from?: string;
|
|
295
|
+
to?: string;
|
|
296
|
+
disabledFrom?: boolean;
|
|
297
|
+
disabledTo?: boolean;
|
|
298
|
+
timeZone?: string;
|
|
299
|
+
firstDay?: 0 | 1;
|
|
300
|
+
displayFormat?: string | DisplayDateResolution;
|
|
301
|
+
resolution?: DateResolution;
|
|
302
|
+
startYear?: string;
|
|
303
|
+
endYear?: string;
|
|
304
|
+
};
|
|
305
|
+
|
|
306
|
+
declare type __VLS_Props_7 = {
|
|
307
|
+
id?: string;
|
|
308
|
+
placeholder?: string;
|
|
309
|
+
name: string;
|
|
310
|
+
modelValue?: string;
|
|
311
|
+
maxlength?: number;
|
|
312
|
+
disabled?: boolean;
|
|
313
|
+
forceValidateWhenDisabled?: boolean;
|
|
314
|
+
viewMode?: boolean;
|
|
315
|
+
width?: string;
|
|
316
|
+
autocomplete?: string;
|
|
317
|
+
tabindex?: number;
|
|
318
|
+
inputType?: "text" | "password";
|
|
319
|
+
trimValue?: boolean;
|
|
320
|
+
prefix?: string | string[] | PrefixSuffix | PrefixSuffix[];
|
|
321
|
+
suffix?: string | string[] | PrefixSuffix | PrefixSuffix[];
|
|
322
|
+
required?: boolean;
|
|
323
|
+
minLength?: number;
|
|
324
|
+
maxLength?: number;
|
|
325
|
+
regExp?: string;
|
|
326
|
+
validationMessageRequired?: string;
|
|
327
|
+
validationMessageMinLength?: string;
|
|
328
|
+
validationMessageMaxLength?: string;
|
|
329
|
+
validationMessageBetweenLength?: string;
|
|
330
|
+
validationMessageRegExp?: string;
|
|
331
|
+
extraValidationRules?: FieldValidationRule<string>[];
|
|
332
|
+
ignoreSavePoint?: boolean;
|
|
333
|
+
hideErrorMessage?: boolean;
|
|
334
|
+
showErrorMessageOnDisabled?: boolean;
|
|
335
|
+
};
|
|
336
|
+
|
|
337
|
+
declare type __VLS_Props_8 = {
|
|
338
|
+
id?: string;
|
|
339
|
+
placeholder?: string;
|
|
340
|
+
name?: string;
|
|
341
|
+
modelValue?: number;
|
|
342
|
+
maxlength?: number;
|
|
343
|
+
disabled?: boolean;
|
|
344
|
+
viewMode?: boolean;
|
|
345
|
+
width?: string;
|
|
346
|
+
autocomplete?: string;
|
|
347
|
+
tabindex?: number;
|
|
348
|
+
prefix?: string | string[] | PrefixSuffix | PrefixSuffix[];
|
|
349
|
+
suffix?: string | string[] | PrefixSuffix | PrefixSuffix[];
|
|
350
|
+
format?: boolean;
|
|
351
|
+
formatInViewMode?: boolean;
|
|
352
|
+
formatOnBlur?: boolean;
|
|
353
|
+
required?: boolean;
|
|
354
|
+
minValue?: number;
|
|
355
|
+
maxValue?: number;
|
|
356
|
+
validationMessageRequired?: string;
|
|
357
|
+
validationMessageMinValue?: string;
|
|
358
|
+
validationMessageMaxValue?: string;
|
|
359
|
+
validationMessageBetweenValue?: string;
|
|
360
|
+
extraValidationRules?: FieldValidationRule<number | undefined>[];
|
|
361
|
+
ignoreSavePoint?: boolean;
|
|
362
|
+
hideErrorMessage?: boolean;
|
|
363
|
+
showErrorMessageOnDisabled?: boolean;
|
|
364
|
+
};
|
|
365
|
+
|
|
366
|
+
declare type __VLS_Props_9 = {
|
|
367
|
+
id?: string;
|
|
368
|
+
placeholder?: string;
|
|
369
|
+
name?: string;
|
|
370
|
+
modelValue?: string;
|
|
371
|
+
maxlength?: number;
|
|
372
|
+
disabled?: boolean;
|
|
373
|
+
viewMode?: boolean;
|
|
374
|
+
width?: string;
|
|
375
|
+
height?: string;
|
|
376
|
+
autocomplete?: string;
|
|
377
|
+
tabindex?: number;
|
|
378
|
+
trimValue?: boolean;
|
|
379
|
+
prefix?: string | string[] | PrefixSuffix | PrefixSuffix[];
|
|
380
|
+
suffix?: string | string[] | PrefixSuffix | PrefixSuffix[];
|
|
381
|
+
required?: boolean;
|
|
382
|
+
minLength?: number;
|
|
383
|
+
maxLength?: number;
|
|
384
|
+
validationMessageRequired?: string;
|
|
385
|
+
validationMessageMinLength?: string;
|
|
386
|
+
validationMessageMaxLength?: string;
|
|
387
|
+
validationMessageBetweenLength?: string;
|
|
388
|
+
extraValidationRules?: FieldValidationRule<string>[];
|
|
389
|
+
ignoreSavePoint?: boolean;
|
|
390
|
+
hideErrorMessage?: boolean;
|
|
391
|
+
showErrorMessageOnDisabled?: boolean;
|
|
392
|
+
};
|
|
393
|
+
|
|
394
|
+
declare function __VLS_template(): {
|
|
395
|
+
attrs: Partial<{}>;
|
|
396
|
+
slots: {
|
|
397
|
+
default?(_: {}): any;
|
|
398
|
+
};
|
|
399
|
+
refs: {
|
|
400
|
+
root: HTMLDivElement;
|
|
401
|
+
};
|
|
402
|
+
rootEl: any;
|
|
403
|
+
};
|
|
404
|
+
|
|
405
|
+
declare function __VLS_template_2(): {
|
|
406
|
+
attrs: Partial<{}>;
|
|
407
|
+
slots: {
|
|
408
|
+
default?(_: {
|
|
409
|
+
disabled: boolean | undefined;
|
|
410
|
+
}): any;
|
|
411
|
+
};
|
|
412
|
+
refs: {
|
|
413
|
+
field: HTMLInputElement;
|
|
414
|
+
};
|
|
415
|
+
rootEl: HTMLSpanElement;
|
|
416
|
+
};
|
|
417
|
+
|
|
418
|
+
declare function __VLS_template_3(): {
|
|
419
|
+
attrs: Partial<{}>;
|
|
420
|
+
slots: {
|
|
421
|
+
'title-right'?(_: {}): any;
|
|
422
|
+
default?(_: {}): any;
|
|
423
|
+
};
|
|
424
|
+
refs: {};
|
|
425
|
+
rootEl: HTMLDivElement;
|
|
426
|
+
};
|
|
427
|
+
|
|
428
|
+
declare function __VLS_template_4(): {
|
|
429
|
+
attrs: Partial<{}>;
|
|
430
|
+
slots: {
|
|
431
|
+
title?(_: {}): any;
|
|
432
|
+
'title-buttons'?(_: {}): any;
|
|
433
|
+
default?(_: {}): any;
|
|
434
|
+
buttons?(_: {}): any;
|
|
435
|
+
};
|
|
436
|
+
refs: {
|
|
437
|
+
modalBody: HTMLDivElement;
|
|
438
|
+
modalButtons: HTMLDivElement;
|
|
439
|
+
};
|
|
440
|
+
rootEl: HTMLDivElement;
|
|
441
|
+
};
|
|
442
|
+
|
|
443
|
+
declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
444
|
+
|
|
445
|
+
declare type __VLS_TemplateResult_2 = ReturnType<typeof __VLS_template_2>;
|
|
446
|
+
|
|
447
|
+
declare type __VLS_TemplateResult_3 = ReturnType<typeof __VLS_template_3>;
|
|
448
|
+
|
|
449
|
+
declare type __VLS_TemplateResult_4 = ReturnType<typeof __VLS_template_4>;
|
|
450
|
+
|
|
451
|
+
declare type __VLS_WithTemplateSlots<T, S> = T & {
|
|
452
|
+
new (): {
|
|
453
|
+
$slots: S;
|
|
454
|
+
};
|
|
455
|
+
};
|
|
456
|
+
|
|
457
|
+
declare type __VLS_WithTemplateSlots_2<T, S> = T & {
|
|
458
|
+
new (): {
|
|
459
|
+
$slots: S;
|
|
460
|
+
};
|
|
461
|
+
};
|
|
462
|
+
|
|
463
|
+
declare type __VLS_WithTemplateSlots_3<T, S> = T & {
|
|
464
|
+
new (): {
|
|
465
|
+
$slots: S;
|
|
466
|
+
};
|
|
467
|
+
};
|
|
468
|
+
|
|
469
|
+
declare type __VLS_WithTemplateSlots_4<T, S> = T & {
|
|
470
|
+
new (): {
|
|
471
|
+
$slots: S;
|
|
472
|
+
};
|
|
473
|
+
};
|
|
474
|
+
|
|
475
|
+
export declare const alarmEntries: Reactive<AlarmEntry[]>;
|
|
476
|
+
|
|
477
|
+
export declare type AlarmEntry = {
|
|
478
|
+
entryId: number;
|
|
479
|
+
component: Raw<Component>;
|
|
480
|
+
duration: number;
|
|
481
|
+
};
|
|
482
|
+
|
|
483
|
+
export declare class BlueseaConfig {
|
|
484
|
+
dateFormat: string;
|
|
485
|
+
dateFormatDay: string;
|
|
486
|
+
dateFormatMinute: string;
|
|
487
|
+
dateFormatSecond: string;
|
|
488
|
+
minDateValue: string;
|
|
489
|
+
maxDateValue: string;
|
|
490
|
+
timeZone: string;
|
|
491
|
+
componentConfig: ComponentConfig;
|
|
492
|
+
constructor(config?: BlueseaConfigRaw);
|
|
493
|
+
resolveDisplayDateFormat(format?: string | DisplayDateResolution): string;
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
export declare const BlueseaConfigKey: InjectionKey<BlueseaConfig>;
|
|
497
|
+
|
|
498
|
+
export declare type BlueseaConfigRaw = {
|
|
499
|
+
dateFormat?: string;
|
|
500
|
+
dateFormatDay?: string;
|
|
501
|
+
dateFormatMinute?: string;
|
|
502
|
+
dateFormatSecond?: string;
|
|
503
|
+
minDateValue?: string;
|
|
504
|
+
maxDateValue?: string;
|
|
505
|
+
timeZone?: string;
|
|
506
|
+
componentConfig?: ComponentConfig;
|
|
507
|
+
};
|
|
508
|
+
|
|
509
|
+
export declare const BlueseaPlugin: Plugin_2;
|
|
510
|
+
|
|
511
|
+
export declare const BSAlertModal: DefineComponent<__VLS_Props_16, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
512
|
+
click: () => any;
|
|
513
|
+
}, string, PublicProps, Readonly<__VLS_Props_16> & Readonly<{
|
|
514
|
+
onClick?: (() => any) | undefined;
|
|
515
|
+
}>, {
|
|
516
|
+
okCaption: string;
|
|
517
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
518
|
+
|
|
519
|
+
export declare const BSButton: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
520
|
+
buttonColor: string;
|
|
521
|
+
disabled: boolean;
|
|
522
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
523
|
+
|
|
524
|
+
export declare const BSCalendar: DefineComponent<__VLS_Props_5, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
525
|
+
"update:modelValue": (value?: string | undefined) => any;
|
|
526
|
+
}, string, PublicProps, Readonly<__VLS_Props_5> & Readonly<{
|
|
527
|
+
"onUpdate:modelValue"?: ((value?: string | undefined) => any) | undefined;
|
|
528
|
+
}>, {
|
|
529
|
+
resolution: DateResolution;
|
|
530
|
+
firstDay: 0 | 1;
|
|
531
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
532
|
+
|
|
533
|
+
export declare const BSCalendarRange: DefineComponent<__VLS_Props_6, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
534
|
+
"update:from": (value?: string | undefined) => any;
|
|
535
|
+
"update:to": (value?: string | undefined) => any;
|
|
536
|
+
}, string, PublicProps, Readonly<__VLS_Props_6> & Readonly<{
|
|
537
|
+
"onUpdate:from"?: ((value?: string | undefined) => any) | undefined;
|
|
538
|
+
"onUpdate:to"?: ((value?: string | undefined) => any) | undefined;
|
|
539
|
+
}>, {
|
|
540
|
+
firstDay: 0 | 1;
|
|
541
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
542
|
+
|
|
543
|
+
export declare const BSCardLayout: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
|
|
544
|
+
|
|
545
|
+
export declare const BSCheckbox: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
|
|
546
|
+
|
|
547
|
+
export declare const BSCheckboxGroup: <T, V>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
548
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
549
|
+
readonly "onUpdate:modelValue"?: ((value: V[]) => any) | undefined;
|
|
550
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onUpdate:modelValue"> & {
|
|
551
|
+
name?: string;
|
|
552
|
+
modelValue?: V[];
|
|
553
|
+
items?: T[];
|
|
554
|
+
valueProvider?: (item: T) => V;
|
|
555
|
+
labelProvider?: LabelProvider<T>;
|
|
556
|
+
keyProvider?: KeyProvider<T>;
|
|
557
|
+
enabledItemProvider?: EnabledItemProvider<T>;
|
|
558
|
+
tabindex?: number;
|
|
559
|
+
disabled?: boolean;
|
|
560
|
+
viewMode?: boolean;
|
|
561
|
+
required?: boolean;
|
|
562
|
+
validationMessageRequired?: string;
|
|
563
|
+
extraValidationRules?: FieldValidationRule<UnwrapRef<V[]>>[];
|
|
564
|
+
ignoreSavePoint?: boolean;
|
|
565
|
+
hideErrorMessage?: boolean;
|
|
566
|
+
showErrorMessageOnDisabled?: boolean;
|
|
567
|
+
} & Partial<{}>> & PublicProps;
|
|
568
|
+
expose(exposed: ShallowUnwrapRef< {}>): void;
|
|
569
|
+
attrs: any;
|
|
570
|
+
slots: {};
|
|
571
|
+
emit: (e: "update:modelValue", value: V[]) => void;
|
|
572
|
+
}>) => VNode & {
|
|
573
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
574
|
+
};
|
|
575
|
+
|
|
576
|
+
export declare const BSContextMenu: DefineComponent<__VLS_Props_19, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
577
|
+
requestClose: () => any;
|
|
578
|
+
menuClicked: (menu: MenuItem) => any;
|
|
579
|
+
}, string, PublicProps, Readonly<__VLS_Props_19> & Readonly<{
|
|
580
|
+
onRequestClose?: (() => any) | undefined;
|
|
581
|
+
onMenuClicked?: ((menu: MenuItem) => any) | undefined;
|
|
582
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
583
|
+
root: ({
|
|
584
|
+
$: ComponentInternalInstance;
|
|
585
|
+
$data: {};
|
|
586
|
+
$props: {
|
|
587
|
+
readonly popupId?: string | undefined;
|
|
588
|
+
readonly maxHeight?: string | undefined;
|
|
589
|
+
readonly baseElement?: (HTMLElement | null | {
|
|
590
|
+
left: number;
|
|
591
|
+
top: number;
|
|
592
|
+
}) | undefined;
|
|
593
|
+
readonly offsetFromBaseElement?: number | undefined;
|
|
594
|
+
readonly extraClass?: string | undefined;
|
|
595
|
+
readonly popupDirection?: "down" | "up" | "right" | "auto-down" | "auto-right" | undefined;
|
|
596
|
+
readonly popupAlign?: "left" | "right" | "center" | "auto" | undefined;
|
|
597
|
+
readonly zIndex?: number | undefined;
|
|
598
|
+
readonly onClick?: ((event: Event) => any) | undefined;
|
|
599
|
+
readonly onKeydown?: ((event: KeyboardEvent) => any) | undefined;
|
|
600
|
+
readonly onRequestClose?: (() => any) | undefined;
|
|
601
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
602
|
+
$attrs: {
|
|
603
|
+
[x: string]: unknown;
|
|
604
|
+
};
|
|
605
|
+
$refs: {
|
|
606
|
+
[x: string]: unknown;
|
|
607
|
+
} & {
|
|
608
|
+
root: HTMLDivElement;
|
|
609
|
+
};
|
|
610
|
+
$slots: Readonly<{
|
|
611
|
+
[name: string]: Slot<any> | undefined;
|
|
612
|
+
}>;
|
|
613
|
+
$root: ComponentPublicInstance | null;
|
|
614
|
+
$parent: ComponentPublicInstance | null;
|
|
615
|
+
$host: Element | null;
|
|
616
|
+
$emit: ((event: "click", event: Event) => void) & ((event: "keydown", event: KeyboardEvent) => void) & ((event: "requestClose") => void);
|
|
617
|
+
$el: any;
|
|
618
|
+
$options: ComponentOptionsBase<Readonly<{
|
|
619
|
+
popupId?: string;
|
|
620
|
+
maxHeight?: string;
|
|
621
|
+
baseElement?: HTMLElement | null | {
|
|
622
|
+
left: number;
|
|
623
|
+
top: number;
|
|
624
|
+
};
|
|
625
|
+
offsetFromBaseElement?: number;
|
|
626
|
+
extraClass?: string;
|
|
627
|
+
popupDirection?: "down" | "up" | "right" | "auto-down" | "auto-right";
|
|
628
|
+
popupAlign?: "left" | "right" | "center" | "auto";
|
|
629
|
+
zIndex?: number;
|
|
630
|
+
}> & Readonly<{
|
|
631
|
+
onClick?: ((event: Event) => any) | undefined;
|
|
632
|
+
onKeydown?: ((event: KeyboardEvent) => any) | undefined;
|
|
633
|
+
onRequestClose?: (() => any) | undefined;
|
|
634
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
635
|
+
click: (event: Event) => any;
|
|
636
|
+
keydown: (event: KeyboardEvent) => any;
|
|
637
|
+
requestClose: () => any;
|
|
638
|
+
}, string, {
|
|
639
|
+
maxHeight: string;
|
|
640
|
+
popupDirection: "down" | "up" | "right" | "auto-down" | "auto-right";
|
|
641
|
+
popupAlign: "left" | "right" | "center" | "auto";
|
|
642
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
643
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
644
|
+
created?: (() => void) | (() => void)[];
|
|
645
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
646
|
+
mounted?: (() => void) | (() => void)[];
|
|
647
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
648
|
+
updated?: (() => void) | (() => void)[];
|
|
649
|
+
activated?: (() => void) | (() => void)[];
|
|
650
|
+
deactivated?: (() => void) | (() => void)[];
|
|
651
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
652
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
653
|
+
destroyed?: (() => void) | (() => void)[];
|
|
654
|
+
unmounted?: (() => void) | (() => void)[];
|
|
655
|
+
renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
656
|
+
renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
657
|
+
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
658
|
+
};
|
|
659
|
+
$forceUpdate: () => void;
|
|
660
|
+
$nextTick: nextTick;
|
|
661
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
|
|
662
|
+
} & Readonly<{
|
|
663
|
+
maxHeight: string;
|
|
664
|
+
popupDirection: "down" | "up" | "right" | "auto-down" | "auto-right";
|
|
665
|
+
popupAlign: "left" | "right" | "center" | "auto";
|
|
666
|
+
}> & Omit<Readonly<{
|
|
667
|
+
popupId?: string;
|
|
668
|
+
maxHeight?: string;
|
|
669
|
+
baseElement?: HTMLElement | null | {
|
|
670
|
+
left: number;
|
|
671
|
+
top: number;
|
|
672
|
+
};
|
|
673
|
+
offsetFromBaseElement?: number;
|
|
674
|
+
extraClass?: string;
|
|
675
|
+
popupDirection?: "down" | "up" | "right" | "auto-down" | "auto-right";
|
|
676
|
+
popupAlign?: "left" | "right" | "center" | "auto";
|
|
677
|
+
zIndex?: number;
|
|
678
|
+
}> & Readonly<{
|
|
679
|
+
onClick?: ((event: Event) => any) | undefined;
|
|
680
|
+
onKeydown?: ((event: KeyboardEvent) => any) | undefined;
|
|
681
|
+
onRequestClose?: (() => any) | undefined;
|
|
682
|
+
}>, "maxHeight" | "popupDirection" | "popupAlign"> & ShallowUnwrapRef< {}> & {} & ComponentCustomProperties & {} & {
|
|
683
|
+
$slots: {
|
|
684
|
+
default?(_: {}): any;
|
|
685
|
+
};
|
|
686
|
+
}) | null;
|
|
687
|
+
}, any>;
|
|
688
|
+
|
|
689
|
+
export declare const BSContextMenuContainer: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
690
|
+
|
|
691
|
+
export declare class BSContextMenuPlugin {
|
|
692
|
+
contextMenuItems: Ref<MenuItem[] | undefined, MenuItem[] | undefined>;
|
|
693
|
+
position: Ref<MenuPosition | undefined, MenuPosition | undefined>;
|
|
694
|
+
options: Ref<ContextMenuOptions | undefined, ContextMenuOptions | undefined>;
|
|
695
|
+
showContextMenu(event: MousePosition, menus: MenuItem[], options?: ContextMenuOptions): void;
|
|
696
|
+
hideContextMenu(): void;
|
|
697
|
+
private markComponentRaw;
|
|
698
|
+
}
|
|
699
|
+
|
|
700
|
+
export declare const BSDateInput: DefineComponent<__VLS_Props_11, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
701
|
+
"update:modelValue": (value?: string | undefined) => any;
|
|
702
|
+
}, string, PublicProps, Readonly<__VLS_Props_11> & Readonly<{
|
|
703
|
+
"onUpdate:modelValue"?: ((value?: string | undefined) => any) | undefined;
|
|
704
|
+
}>, {
|
|
705
|
+
tabindex: number;
|
|
706
|
+
resolution: DateResolution;
|
|
707
|
+
width: string;
|
|
708
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
709
|
+
root: HTMLDivElement;
|
|
710
|
+
field: HTMLInputElement;
|
|
711
|
+
}, HTMLDivElement>;
|
|
712
|
+
|
|
713
|
+
export declare const BSDateInputPopup: DefineComponent<__VLS_Props_12, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
714
|
+
close: () => any;
|
|
715
|
+
"update:modelValue": (value?: string | undefined) => any;
|
|
716
|
+
}, string, PublicProps, Readonly<__VLS_Props_12> & Readonly<{
|
|
717
|
+
onClose?: (() => any) | undefined;
|
|
718
|
+
"onUpdate:modelValue"?: ((value?: string | undefined) => any) | undefined;
|
|
719
|
+
}>, {
|
|
720
|
+
okButtonCaption: string;
|
|
721
|
+
cancelButtonCaption: string;
|
|
722
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
723
|
+
|
|
724
|
+
export declare const BSDateRange: DefineComponent<__VLS_Props_13, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
725
|
+
"update:fromValue": (value?: string | undefined) => any;
|
|
726
|
+
"update:toValue": (value?: string | undefined) => any;
|
|
727
|
+
}, string, PublicProps, Readonly<__VLS_Props_13> & Readonly<{
|
|
728
|
+
"onUpdate:fromValue"?: ((value?: string | undefined) => any) | undefined;
|
|
729
|
+
"onUpdate:toValue"?: ((value?: string | undefined) => any) | undefined;
|
|
730
|
+
}>, {
|
|
731
|
+
tabindex: number;
|
|
732
|
+
resolution: DateResolution;
|
|
733
|
+
width: string;
|
|
734
|
+
validateDateOrder: boolean;
|
|
735
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
736
|
+
root: HTMLDivElement;
|
|
737
|
+
fieldFrom: HTMLInputElement;
|
|
738
|
+
fieldTo: HTMLInputElement;
|
|
739
|
+
}, HTMLDivElement>;
|
|
740
|
+
|
|
741
|
+
export declare const BSDateRangeInputPopup: DefineComponent<__VLS_Props_14, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
742
|
+
close: () => any;
|
|
743
|
+
"update:from": (value?: string | undefined) => any;
|
|
744
|
+
"update:to": (value?: string | undefined) => any;
|
|
745
|
+
}, string, PublicProps, Readonly<__VLS_Props_14> & Readonly<{
|
|
746
|
+
onClose?: (() => any) | undefined;
|
|
747
|
+
"onUpdate:from"?: ((value?: string | undefined) => any) | undefined;
|
|
748
|
+
"onUpdate:to"?: ((value?: string | undefined) => any) | undefined;
|
|
749
|
+
}>, {
|
|
750
|
+
okButtonCaption: string;
|
|
751
|
+
cancelButtonCaption: string;
|
|
752
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
753
|
+
|
|
754
|
+
export declare const BSLoadingIcon: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
755
|
+
|
|
756
|
+
export declare class BSModal {
|
|
757
|
+
modalItems: RegisteredModalItem[];
|
|
758
|
+
openModal(modalItem: ModalItem): RegisteredModalItem;
|
|
759
|
+
closeModal(modalItem: RegisteredModalItem | string): void;
|
|
760
|
+
closeAllModals(): void;
|
|
761
|
+
openAlert(title?: string, message?: string, clickHandler?: () => void | Promise<void>): RegisteredModalItem;
|
|
762
|
+
openYesNo(title?: string, message?: string, yesHandler?: () => void | Promise<void>, noHandler?: () => void | Promise<void>): RegisteredModalItem;
|
|
763
|
+
install(app: App): void;
|
|
764
|
+
}
|
|
765
|
+
|
|
766
|
+
export declare const BSModalContainer: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
767
|
+
modalContainer: HTMLDivElement;
|
|
768
|
+
}, HTMLDivElement>;
|
|
769
|
+
|
|
770
|
+
export declare const BSModalFrame: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
|
|
771
|
+
|
|
772
|
+
export declare const BSMultiSelect: <T, V>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal_5<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
773
|
+
props: __VLS_PrettifyLocal_5<Pick<Partial<{}> & Omit<{
|
|
774
|
+
readonly "onUpdate:modelValue"?: ((value?: V[] | undefined) => any) | undefined;
|
|
775
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onUpdate:modelValue"> & {
|
|
776
|
+
modelValue?: V[];
|
|
777
|
+
items?: T[] | Promise<T[]>;
|
|
778
|
+
name?: string;
|
|
779
|
+
valueProvider?: (item: T) => V;
|
|
780
|
+
labelProvider?: LabelProvider<T>;
|
|
781
|
+
selectedLabelProvider?: LabelProvider<T[]>;
|
|
782
|
+
keyProvider?: KeyProvider<T>;
|
|
783
|
+
placeholder?: string;
|
|
784
|
+
tabindex?: number;
|
|
785
|
+
disabled?: boolean;
|
|
786
|
+
viewMode?: boolean;
|
|
787
|
+
required?: boolean;
|
|
788
|
+
validationMessageRequired?: string;
|
|
789
|
+
extraValidationRules?: FieldValidationRule<UnwrapRef<V[]>>[];
|
|
790
|
+
ignoreSavePoint?: boolean;
|
|
791
|
+
popupAlign?: "left" | "right" | "center" | "auto";
|
|
792
|
+
popupDirection?: "down" | "up" | "right" | "auto-down" | "auto-right";
|
|
793
|
+
popupMaxHeight?: string;
|
|
794
|
+
showPopupSearch?: boolean | "auto";
|
|
795
|
+
hideErrorMessage?: boolean;
|
|
796
|
+
showErrorMessageOnDisabled?: boolean;
|
|
797
|
+
} & Partial<{}>> & PublicProps;
|
|
798
|
+
expose(exposed: ShallowUnwrapRef< {}>): void;
|
|
799
|
+
attrs: any;
|
|
800
|
+
slots: {};
|
|
801
|
+
emit: (e: "update:modelValue", value?: V[]) => void;
|
|
802
|
+
}>) => VNode & {
|
|
803
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
804
|
+
};
|
|
805
|
+
|
|
806
|
+
export declare const BSNotificationContainer: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
807
|
+
tooltip: CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
808
|
+
align?: "left" | "center" | "right";
|
|
809
|
+
content?: string;
|
|
810
|
+
target?: HTMLElement;
|
|
811
|
+
}> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
812
|
+
align: "left" | "center" | "right";
|
|
813
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
|
|
814
|
+
P: {};
|
|
815
|
+
B: {};
|
|
816
|
+
D: {};
|
|
817
|
+
C: {};
|
|
818
|
+
M: {};
|
|
819
|
+
Defaults: {};
|
|
820
|
+
}, Readonly<{
|
|
821
|
+
align?: "left" | "center" | "right";
|
|
822
|
+
content?: string;
|
|
823
|
+
target?: HTMLElement;
|
|
824
|
+
}> & Readonly<{}>, {}, {}, {}, {}, {
|
|
825
|
+
align: "left" | "center" | "right";
|
|
826
|
+
}> | null;
|
|
827
|
+
}, HTMLDivElement>;
|
|
828
|
+
|
|
829
|
+
export declare const BSNumberInput: DefineComponent<__VLS_Props_8, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
830
|
+
"update:modelValue": (value?: number | undefined) => any;
|
|
831
|
+
}, string, PublicProps, Readonly<__VLS_Props_8> & Readonly<{
|
|
832
|
+
"onUpdate:modelValue"?: ((value?: number | undefined) => any) | undefined;
|
|
833
|
+
}>, {
|
|
834
|
+
tabindex: number;
|
|
835
|
+
width: string;
|
|
836
|
+
format: boolean;
|
|
837
|
+
formatInViewMode: boolean;
|
|
838
|
+
formatOnBlur: boolean;
|
|
839
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
840
|
+
field: HTMLInputElement;
|
|
841
|
+
}, HTMLDivElement>;
|
|
842
|
+
|
|
843
|
+
export declare const BSPageNavigation: DefineComponent<__VLS_Props_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
844
|
+
offsetChanged: (offset: number, currentPageInfo: PageInfo) => any;
|
|
845
|
+
}, string, PublicProps, Readonly<__VLS_Props_2> & Readonly<{
|
|
846
|
+
onOffsetChanged?: ((offset: number, currentPageInfo: PageInfo) => any) | undefined;
|
|
847
|
+
}>, {
|
|
848
|
+
totalCount: number;
|
|
849
|
+
offset: number;
|
|
850
|
+
limit: number;
|
|
851
|
+
visiblePageCount: number;
|
|
852
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
853
|
+
|
|
854
|
+
export declare const BSPopup: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
855
|
+
|
|
856
|
+
export declare const BSRadioButton: <V>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal_2<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
857
|
+
props: __VLS_PrettifyLocal_2<Pick<Partial<{}> & Omit<{
|
|
858
|
+
readonly "onUpdate:modelValue"?: ((value?: V | undefined) => any) | undefined;
|
|
859
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onUpdate:modelValue"> & {
|
|
860
|
+
id?: string;
|
|
861
|
+
name?: string;
|
|
862
|
+
label?: string;
|
|
863
|
+
icon?: string;
|
|
864
|
+
modelValue?: V;
|
|
865
|
+
itemValue?: V;
|
|
866
|
+
disabled?: boolean;
|
|
867
|
+
viewMode?: boolean;
|
|
868
|
+
tabindex?: number;
|
|
869
|
+
} & Partial<{}>> & PublicProps;
|
|
870
|
+
expose(exposed: ShallowUnwrapRef< {}>): void;
|
|
871
|
+
attrs: any;
|
|
872
|
+
slots: {
|
|
873
|
+
default?(_: {
|
|
874
|
+
disabled: boolean | undefined;
|
|
875
|
+
}): any;
|
|
876
|
+
};
|
|
877
|
+
emit: (e: "update:modelValue", value?: V) => void;
|
|
878
|
+
}>) => VNode & {
|
|
879
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
880
|
+
};
|
|
881
|
+
|
|
882
|
+
export declare const BSRadioButtonGroup: <T, V>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal_3<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
883
|
+
props: __VLS_PrettifyLocal_3<Pick<Partial<{}> & Omit<{
|
|
884
|
+
readonly "onUpdate:modelValue"?: ((value?: V | undefined) => any) | undefined;
|
|
885
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onUpdate:modelValue"> & {
|
|
886
|
+
name?: string;
|
|
887
|
+
modelValue?: V;
|
|
888
|
+
items?: T[];
|
|
889
|
+
valueProvider?: (item: T) => V;
|
|
890
|
+
labelProvider?: LabelProvider<T>;
|
|
891
|
+
iconProvider?: IconProvider<T>;
|
|
892
|
+
keyProvider?: KeyProvider<T>;
|
|
893
|
+
enabledItemProvider?: EnabledItemProvider<T>;
|
|
894
|
+
tooltipProvider?: TooltipProvider<T>;
|
|
895
|
+
tabindex?: number;
|
|
896
|
+
disabled?: boolean;
|
|
897
|
+
viewMode?: boolean;
|
|
898
|
+
required?: boolean;
|
|
899
|
+
validationMessageRequired?: string;
|
|
900
|
+
extraValidationRules?: FieldValidationRule<UnwrapRef<V>>[];
|
|
901
|
+
ignoreSavePoint?: boolean;
|
|
902
|
+
hideErrorMessage?: boolean;
|
|
903
|
+
showErrorMessageOnDisabled?: boolean;
|
|
904
|
+
} & Partial<{}>> & PublicProps;
|
|
905
|
+
expose(exposed: ShallowUnwrapRef< {}>): void;
|
|
906
|
+
attrs: any;
|
|
907
|
+
slots: {};
|
|
908
|
+
emit: (e: "update:modelValue", value?: V) => void;
|
|
909
|
+
}>) => VNode & {
|
|
910
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
911
|
+
};
|
|
912
|
+
|
|
913
|
+
export declare const BSSelect: <T, V>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal_4<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
914
|
+
props: __VLS_PrettifyLocal_4<Pick<Partial<{}> & Omit<{
|
|
915
|
+
readonly "onUpdate:modelValue"?: ((value?: V | undefined) => any) | undefined;
|
|
916
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onUpdate:modelValue"> & {
|
|
917
|
+
modelValue?: V;
|
|
918
|
+
items?: T[] | Promise<T[]>;
|
|
919
|
+
name?: string;
|
|
920
|
+
valueProvider?: (item: T) => V;
|
|
921
|
+
labelProvider?: LabelProvider<T>;
|
|
922
|
+
selectedLabelProvider?: LabelProvider<T | undefined>;
|
|
923
|
+
placeholder?: string;
|
|
924
|
+
allowNull?: boolean;
|
|
925
|
+
nullLabel?: string;
|
|
926
|
+
disabled?: boolean;
|
|
927
|
+
viewMode?: boolean;
|
|
928
|
+
tabindex?: number;
|
|
929
|
+
required?: boolean;
|
|
930
|
+
validationMessageRequired?: string;
|
|
931
|
+
extraValidationRules?: FieldValidationRule<UnwrapRef<V>>[];
|
|
932
|
+
ignoreSavePoint?: boolean;
|
|
933
|
+
popupAlign?: "left" | "right" | "center" | "auto";
|
|
934
|
+
popupDirection?: "down" | "up" | "right" | "auto-down" | "auto-right";
|
|
935
|
+
popupMaxHeight?: string;
|
|
936
|
+
showPopupSearch?: boolean | "auto";
|
|
937
|
+
hideErrorMessage?: boolean;
|
|
938
|
+
showErrorMessageOnDisabled?: boolean;
|
|
939
|
+
} & Partial<{}>> & PublicProps;
|
|
940
|
+
expose(exposed: ShallowUnwrapRef< {}>): void;
|
|
941
|
+
attrs: any;
|
|
942
|
+
slots: {};
|
|
943
|
+
emit: (e: "update:modelValue", value?: V) => void;
|
|
944
|
+
}>) => VNode & {
|
|
945
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
946
|
+
};
|
|
947
|
+
|
|
948
|
+
export declare const BSTextArea: DefineComponent<__VLS_Props_9, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
949
|
+
"update:modelValue": (value: string) => any;
|
|
950
|
+
}, string, PublicProps, Readonly<__VLS_Props_9> & Readonly<{
|
|
951
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
952
|
+
}>, {
|
|
953
|
+
tabindex: number;
|
|
954
|
+
width: string;
|
|
955
|
+
trimValue: boolean;
|
|
956
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
957
|
+
field: HTMLTextAreaElement;
|
|
958
|
+
}, HTMLDivElement>;
|
|
959
|
+
|
|
960
|
+
export declare const BSTextInput: DefineComponent<__VLS_Props_7, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
961
|
+
"update:modelValue": (value: string) => any;
|
|
962
|
+
}, string, PublicProps, Readonly<__VLS_Props_7> & Readonly<{
|
|
963
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
964
|
+
}>, {
|
|
965
|
+
name: string;
|
|
966
|
+
tabindex: number;
|
|
967
|
+
width: string;
|
|
968
|
+
inputType: "text" | "password";
|
|
969
|
+
trimValue: boolean;
|
|
970
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
971
|
+
field: HTMLInputElement;
|
|
972
|
+
}, HTMLDivElement>;
|
|
973
|
+
|
|
974
|
+
export declare const BSTooltip: DefineComponent<__VLS_Props_4, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_4> & Readonly<{}>, {
|
|
975
|
+
align: "left" | "center" | "right";
|
|
976
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
977
|
+
|
|
978
|
+
export declare const BSYesNoModal: DefineComponent<__VLS_Props_17, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
979
|
+
clickNo: () => any;
|
|
980
|
+
clickYes: () => any;
|
|
981
|
+
}, string, PublicProps, Readonly<__VLS_Props_17> & Readonly<{
|
|
982
|
+
onClickNo?: (() => any) | undefined;
|
|
983
|
+
onClickYes?: (() => any) | undefined;
|
|
984
|
+
}>, {
|
|
985
|
+
yesCaption: string;
|
|
986
|
+
noCaption: string;
|
|
987
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
988
|
+
|
|
989
|
+
export declare type CalendarComponentConfig = {
|
|
990
|
+
startYear?: string;
|
|
991
|
+
endYear?: string;
|
|
992
|
+
};
|
|
993
|
+
|
|
994
|
+
export declare const cancelProvidedSavePoint: () => void;
|
|
995
|
+
|
|
996
|
+
export declare type ChildSavePoint = {
|
|
997
|
+
set(): void;
|
|
998
|
+
rollback(): void;
|
|
999
|
+
isModified(): boolean;
|
|
1000
|
+
};
|
|
1001
|
+
|
|
1002
|
+
export declare const closeAlarm: (entryId: number | AlarmEntry) => void;
|
|
1003
|
+
|
|
1004
|
+
export declare type ComponentConfig = {
|
|
1005
|
+
popup?: PopupComponentConfig;
|
|
1006
|
+
calendar?: CalendarComponentConfig;
|
|
1007
|
+
};
|
|
1008
|
+
|
|
1009
|
+
export declare const componentUtil: {
|
|
1010
|
+
handleExternalErrorMessage(showErrorMessage: boolean, errorMessage?: string, elementId?: string): void;
|
|
1011
|
+
generateNextId(prefix: string): string;
|
|
1012
|
+
generateNextName(prefix: string): string;
|
|
1013
|
+
isRelativeSize(size?: string): boolean;
|
|
1014
|
+
delayed<T>(func: () => T, millis?: number): void;
|
|
1015
|
+
trimStringValue(value?: string, trim?: boolean): string | undefined;
|
|
1016
|
+
getPrefixSuffixList(param: string | string[] | PrefixSuffix | PrefixSuffix[] | undefined): PrefixSuffix[];
|
|
1017
|
+
isCursorInElement(event: MouseEvent | DragEvent, element: HTMLElement): boolean;
|
|
1018
|
+
};
|
|
1019
|
+
|
|
1020
|
+
export declare type ContextMenuOptions = {
|
|
1021
|
+
zIndex?: number;
|
|
1022
|
+
onHideContextMenu?: () => void;
|
|
1023
|
+
};
|
|
1024
|
+
|
|
1025
|
+
export declare const ContextMenuPluginKey: unique symbol;
|
|
1026
|
+
|
|
1027
|
+
export declare const createContextMenuPlugin: () => BSContextMenuPlugin;
|
|
1028
|
+
|
|
1029
|
+
export declare const createModalPlugin: () => BSModal;
|
|
1030
|
+
|
|
1031
|
+
export declare type DateResolution = 'DAY' | 'HOUR' | 'MINUTE_30' | 'MINUTE_10' | 'MINUTE' | 'SECOND';
|
|
1032
|
+
|
|
1033
|
+
/**
|
|
1034
|
+
* debounce 함수를 생성한다.
|
|
1035
|
+
*
|
|
1036
|
+
* ```ts
|
|
1037
|
+
* // 함수를 만들 때 debounce 로 감싼다.
|
|
1038
|
+
* const debouncedFunc = debounce(() => {
|
|
1039
|
+
* ...
|
|
1040
|
+
* }, 500)()
|
|
1041
|
+
*
|
|
1042
|
+
* // 여러 번 호출하더라도, 마지막 호출만 실행된다.
|
|
1043
|
+
* debouncedFunc()
|
|
1044
|
+
* ```
|
|
1045
|
+
* @param func
|
|
1046
|
+
* @param wait
|
|
1047
|
+
*/
|
|
1048
|
+
export declare const debounce: <T>(func: (...args: any[]) => T, wait: number) => ((...args: any[]) => Promise<T>);
|
|
1049
|
+
|
|
1050
|
+
export declare const defaultKeyProvider: <T>(item: T) => string;
|
|
1051
|
+
|
|
1052
|
+
export declare const defaultLabelProvider: <T>(item: T) => string;
|
|
1053
|
+
|
|
1054
|
+
export declare type DisplayDateResolution = 'DAY' | 'MINUTE' | 'SECOND';
|
|
1055
|
+
|
|
1056
|
+
export declare const emptyKeyProvider: <T>(_item: T) => undefined;
|
|
1057
|
+
|
|
1058
|
+
export declare const emptyLabelProvider: <T>(_item: T) => undefined;
|
|
1059
|
+
|
|
1060
|
+
export declare type EnabledItemProvider<T> = (item: T) => boolean;
|
|
1061
|
+
|
|
1062
|
+
export declare const executeKeyProviderOrDefault: <T>(item: T, keyProvider: KeyProvider<T> | undefined, defaultKey: (item: T) => string) => string;
|
|
1063
|
+
|
|
1064
|
+
export declare const executeLabelProviderOrDefault: <T>(item: T, labelProvider: LabelProvider<T> | undefined, defaultLabel: (item: T) => string) => string;
|
|
1065
|
+
|
|
1066
|
+
export declare type FieldContext<T> = {
|
|
1067
|
+
iteration?: IterationContext<T>;
|
|
1068
|
+
locale?: LocaleName;
|
|
1069
|
+
};
|
|
1070
|
+
|
|
1071
|
+
declare type FieldValidationRule<T> = (value: T, phase: ValidationPhase, fieldContext?: FieldContext<any>) => Promise<ValidationError[] | undefined> | ValidationError[] | undefined;
|
|
1072
|
+
|
|
1073
|
+
/**
|
|
1074
|
+
* HTMLElement, Component(vue) 로부터 실제 HTMLElement 를 찾아온다.
|
|
1075
|
+
*
|
|
1076
|
+
* 예를 들어,
|
|
1077
|
+
* ```
|
|
1078
|
+
* const form = ref<HTMLElement>()
|
|
1079
|
+
* ```
|
|
1080
|
+
* 이렇게 선언하고 template 에서 ref 속성을 사용하면, html element 를 참조할 수 있다.
|
|
1081
|
+
* ```
|
|
1082
|
+
* <div ref="form">...</div>
|
|
1083
|
+
* ```
|
|
1084
|
+
* 그런데 이게 꼭 div 에만 적용되는 것은 아니다.
|
|
1085
|
+
* ```
|
|
1086
|
+
* <BSCardLayout ref="form">...</BSCardLayout>
|
|
1087
|
+
* ```
|
|
1088
|
+
* 이렇게 되면 form.value 는 실제로는 vue component 객체를 참조하기 때문에, `form.value.$el` 해야만 html element 를 가져올 수 있다.
|
|
1089
|
+
*
|
|
1090
|
+
* 이 함수는 이렇게 여러가지 경우에 따라 html element 를 가져오는 역할을 한다.
|
|
1091
|
+
* @param maybeElement
|
|
1092
|
+
*/
|
|
1093
|
+
export declare const findElement: (maybeElement: Ref<HTMLElement | Component | undefined | null> | undefined) => HTMLElement | undefined;
|
|
1094
|
+
|
|
1095
|
+
/**
|
|
1096
|
+
* 첫 번재 focusable 한 element 를 찾는다.
|
|
1097
|
+
* @param element
|
|
1098
|
+
*/
|
|
1099
|
+
export declare const findFirstFocusableElement: (element: HTMLElement) => HTMLElement | undefined;
|
|
1100
|
+
|
|
1101
|
+
export declare const findInputComponents: (maybeElement: Ref<HTMLElement | Component | undefined> | undefined) => HTMLElement[];
|
|
1102
|
+
|
|
1103
|
+
/**
|
|
1104
|
+
* 마지막 focusable 한 element 를 찾는다.
|
|
1105
|
+
* @param element
|
|
1106
|
+
*/
|
|
1107
|
+
export declare const findLastFocusableElement: (element: HTMLElement) => HTMLElement | undefined;
|
|
1108
|
+
|
|
1109
|
+
/**
|
|
1110
|
+
* 첫 번째 focusable 한 element 에 focus 를 옮긴다.
|
|
1111
|
+
* @param element
|
|
1112
|
+
* @return focusable 한 element 가 없어 수행하지 못했으면 false, 그렇지 않으면 true
|
|
1113
|
+
*/
|
|
1114
|
+
export declare const focusFirstElement: (element: HTMLElement) => boolean;
|
|
1115
|
+
|
|
1116
|
+
/**
|
|
1117
|
+
* 마지막 focusable 한 element 에 focus 를 옮긴다.
|
|
1118
|
+
* @param element
|
|
1119
|
+
* @return focusable 한 element 가 없어 수행하지 못했으면 false, 그렇지 않으면 true
|
|
1120
|
+
*/
|
|
1121
|
+
export declare const focusLastElement: (element: HTMLElement) => boolean;
|
|
1122
|
+
|
|
1123
|
+
export declare const formatUtil: {
|
|
1124
|
+
/**
|
|
1125
|
+
* 개행 문자('\r', '\n')를 '<br/>' 태그로 변경한다.
|
|
1126
|
+
* @param str 변경할 String
|
|
1127
|
+
* @return 개행문자가 '<br/>'로 변경된 String
|
|
1128
|
+
*/
|
|
1129
|
+
escapeNewLine(str?: string): string;
|
|
1130
|
+
/**
|
|
1131
|
+
* `str` 안의 `&<>"'` 문자를 escape 처리한다.
|
|
1132
|
+
* @param str 변경할 String
|
|
1133
|
+
*/
|
|
1134
|
+
escapeHtml(str?: string): string;
|
|
1135
|
+
/**
|
|
1136
|
+
* String 을 개행 문자('\r', '\n') 기준으로 나눈다.
|
|
1137
|
+
* @param str
|
|
1138
|
+
* @return 개행문자로 나누어진 string 의 array
|
|
1139
|
+
*/
|
|
1140
|
+
splitNewLine(str?: string): Array<string>;
|
|
1141
|
+
/**
|
|
1142
|
+
* ISO8601 형식의 string 을 주어진 format 으로 변환한다.
|
|
1143
|
+
* @param utcDate
|
|
1144
|
+
* @param format
|
|
1145
|
+
* @param displayTimeZone
|
|
1146
|
+
*/
|
|
1147
|
+
formatDateString(utcDate?: string, format?: string | DisplayDateResolution, displayTimeZone?: TimeZone): string;
|
|
1148
|
+
/**
|
|
1149
|
+
* 숫자에 구분점을 넣는다. 소수점 이하가 있는 경우도 처리한다.
|
|
1150
|
+
* * 12345 -> '12,345'
|
|
1151
|
+
* * 12345.12345 -> '12,345.12345'
|
|
1152
|
+
* * 0 -> '0'
|
|
1153
|
+
* * undefined -> null
|
|
1154
|
+
* * null -> null
|
|
1155
|
+
*
|
|
1156
|
+
* @param value
|
|
1157
|
+
* @return
|
|
1158
|
+
*/
|
|
1159
|
+
formatNumber(value?: number | string | null): string | null;
|
|
1160
|
+
formatNumberByCode(value?: number | string | null, locale?: string | "ko-KR"): string | null;
|
|
1161
|
+
/**
|
|
1162
|
+
* 통화단위와 표시위치를 받아 출력한다
|
|
1163
|
+
* @param value 값
|
|
1164
|
+
* @param currencyUnit 통화단위
|
|
1165
|
+
* @param prefix true 이면 withUnit을 앞에 붙이고, false 이면 뒤에 붙인다.
|
|
1166
|
+
*/
|
|
1167
|
+
formatPrice(value?: number | string | null, currencyUnit?: string | "", prefix?: boolean): string | null;
|
|
1168
|
+
/**
|
|
1169
|
+
* rate 를 받아 percent 를 출력한다.
|
|
1170
|
+
* * 0.1 -> 10%
|
|
1171
|
+
* * 0.55 -> 55%
|
|
1172
|
+
* * 0.551 -> 55.1%
|
|
1173
|
+
* @param value 비율 값
|
|
1174
|
+
* @param withUnit true 이면 % 를 붙이고, false 이면 붙이지 않는다.
|
|
1175
|
+
* @param decimalPlace 소숫점 n번째에서 반올림한다.
|
|
1176
|
+
*/
|
|
1177
|
+
formatPercent(value?: number | string | null, withUnit?: boolean, decimalPlace?: number): string | null;
|
|
1178
|
+
/**
|
|
1179
|
+
* 신용카드번호를 4자리 단위로 나누어 구분자를 넣는다.
|
|
1180
|
+
* @param value
|
|
1181
|
+
* @param separator 구분자
|
|
1182
|
+
*/
|
|
1183
|
+
formatCreditCardNo(value: string, separator?: string): string | undefined;
|
|
1184
|
+
/**
|
|
1185
|
+
* `HTML`태그가 포함된 문자열에서 text 만 남긴다.
|
|
1186
|
+
* @param textIncludedHTMLElement HTML 태그를 포함하는 문자열
|
|
1187
|
+
* @return HTML 태그가 제거된 문자열
|
|
1188
|
+
*/
|
|
1189
|
+
toPlainText(textIncludedHTMLElement?: string): string;
|
|
1190
|
+
};
|
|
1191
|
+
|
|
1192
|
+
export declare type FunctionProperties<T> = Pick<T, FunctionPropertyNames<T>>;
|
|
1193
|
+
|
|
1194
|
+
export declare type FunctionPropertyNames<T> = {
|
|
1195
|
+
[K in keyof T]: T[K] extends Function ? K : never;
|
|
1196
|
+
}[keyof T];
|
|
1197
|
+
|
|
1198
|
+
/**
|
|
1199
|
+
* Vue Component 로부터 root element 를 가져온다.
|
|
1200
|
+
* @param component
|
|
1201
|
+
*/
|
|
1202
|
+
export declare const getComponentRootElement: (component: Component) => HTMLElement | undefined;
|
|
1203
|
+
|
|
1204
|
+
/**
|
|
1205
|
+
* `element` 가 parent 로부터 몇 번째 child 인지 리턴한다.
|
|
1206
|
+
* parent 가 없으면 -1 을 리턴한다.
|
|
1207
|
+
* @param element
|
|
1208
|
+
*/
|
|
1209
|
+
export declare const getSelfIndex: (element: HTMLElement) => number;
|
|
1210
|
+
|
|
1211
|
+
export declare const hideLoading: () => void;
|
|
1212
|
+
|
|
1213
|
+
export declare const hideTooltip: () => void;
|
|
1214
|
+
|
|
1215
|
+
export declare type IconProvider<T> = (item: T) => string | undefined;
|
|
1216
|
+
|
|
1217
|
+
export declare class IllegalAccessError {
|
|
1218
|
+
}
|
|
1219
|
+
|
|
1220
|
+
export declare const isTooltipDisplayed: () => boolean;
|
|
1221
|
+
|
|
1222
|
+
export declare type IterationContext<T> = {
|
|
1223
|
+
componentName: string;
|
|
1224
|
+
record: T;
|
|
1225
|
+
recordKey?: string;
|
|
1226
|
+
recordIndex?: number;
|
|
1227
|
+
data: T[];
|
|
1228
|
+
};
|
|
1229
|
+
|
|
1230
|
+
export declare type KeyProvider<T> = (item: T) => string | undefined;
|
|
1231
|
+
|
|
1232
|
+
export declare type LabelProvider<T> = (item: T) => string | undefined;
|
|
1233
|
+
|
|
1234
|
+
export declare type LocaleName = string;
|
|
1235
|
+
|
|
1236
|
+
export declare type MenuItem = {
|
|
1237
|
+
type?: 'menu' | 'link' | 'route' | 'separator' | 'custom';
|
|
1238
|
+
menuId?: string;
|
|
1239
|
+
caption?: string;
|
|
1240
|
+
component?: Component;
|
|
1241
|
+
disabled?: boolean;
|
|
1242
|
+
handler?: () => void;
|
|
1243
|
+
href?: string;
|
|
1244
|
+
target?: string;
|
|
1245
|
+
children?: MenuItem[];
|
|
1246
|
+
};
|
|
1247
|
+
|
|
1248
|
+
export declare type MenuPosition = {
|
|
1249
|
+
x: number;
|
|
1250
|
+
y: number;
|
|
1251
|
+
};
|
|
1252
|
+
|
|
1253
|
+
export declare interface ModalHandle {
|
|
1254
|
+
maximized: boolean;
|
|
1255
|
+
close(): void;
|
|
1256
|
+
setDefaultStyle(modalStyle: ModalStyle): void;
|
|
1257
|
+
setDefaultPosition(modalPosition: ModalPosition): void;
|
|
1258
|
+
setDefaultStyleListener(listener?: ModalStyleChangeListener): void;
|
|
1259
|
+
setDefaultPositionListener(listener?: ModalPositionChangeListener): void;
|
|
1260
|
+
}
|
|
1261
|
+
|
|
1262
|
+
export declare const modalHandleKey = "BlueseaModalHandle";
|
|
1263
|
+
|
|
1264
|
+
export declare type ModalItem = {
|
|
1265
|
+
component: Component;
|
|
1266
|
+
pageId?: string;
|
|
1267
|
+
style?: ModalStyle;
|
|
1268
|
+
position?: ModalPosition;
|
|
1269
|
+
bind?: {
|
|
1270
|
+
[key: string]: any;
|
|
1271
|
+
};
|
|
1272
|
+
on?: {
|
|
1273
|
+
[key: string]: Function | Function[];
|
|
1274
|
+
};
|
|
1275
|
+
slots?: {
|
|
1276
|
+
[key: string]: string | {
|
|
1277
|
+
component: string | Component;
|
|
1278
|
+
bind?: {
|
|
1279
|
+
[key: string]: any;
|
|
1280
|
+
};
|
|
1281
|
+
on?: {
|
|
1282
|
+
[key: string]: Function | Function[];
|
|
1283
|
+
};
|
|
1284
|
+
};
|
|
1285
|
+
};
|
|
1286
|
+
};
|
|
1287
|
+
|
|
1288
|
+
export declare const modalPluginKey = "BlueseaModalPlugin";
|
|
1289
|
+
|
|
1290
|
+
export declare type ModalPosition = {
|
|
1291
|
+
vertical?: 'top' | 'middle' | 'bottom';
|
|
1292
|
+
horizontal?: 'left' | 'center' | 'right';
|
|
1293
|
+
offsetX?: number;
|
|
1294
|
+
offsetY?: number;
|
|
1295
|
+
};
|
|
1296
|
+
|
|
1297
|
+
export declare type ModalPositionChangeListener = (modalPosition: ModalPosition) => void;
|
|
1298
|
+
|
|
1299
|
+
export declare type ModalStyle = {
|
|
1300
|
+
width?: string;
|
|
1301
|
+
height?: string;
|
|
1302
|
+
minWidth?: string;
|
|
1303
|
+
maxWidth?: string;
|
|
1304
|
+
minHeight?: string;
|
|
1305
|
+
maxHeight?: string;
|
|
1306
|
+
resizable?: boolean;
|
|
1307
|
+
styleClass?: string;
|
|
1308
|
+
escToClose?: boolean;
|
|
1309
|
+
};
|
|
1310
|
+
|
|
1311
|
+
export declare type ModalStyleChangeListener = (modalStyle: ModalStyle) => void;
|
|
1312
|
+
|
|
1313
|
+
export declare type MousePosition = {
|
|
1314
|
+
clientX: number;
|
|
1315
|
+
clientY: number;
|
|
1316
|
+
};
|
|
1317
|
+
|
|
1318
|
+
export declare const NAMED_COLORS: Record<string, string>;
|
|
1319
|
+
|
|
1320
|
+
export declare type NonFunctionProperties<T> = Pick<T, NonFunctionPropertyNames<T>>;
|
|
1321
|
+
|
|
1322
|
+
export declare type NonFunctionPropertyNames<T> = {
|
|
1323
|
+
[K in keyof T]: T[K] extends Function ? never : K;
|
|
1324
|
+
}[keyof T];
|
|
1325
|
+
|
|
1326
|
+
export declare const notificationEntries: Reactive<NotificationEntry[]>;
|
|
1327
|
+
|
|
1328
|
+
export declare type NotificationEntry = {
|
|
1329
|
+
entryId: number;
|
|
1330
|
+
message: string;
|
|
1331
|
+
style: NotificationStyle;
|
|
1332
|
+
duration: number;
|
|
1333
|
+
};
|
|
1334
|
+
|
|
1335
|
+
export declare type NotificationStyle = 'error' | 'info';
|
|
1336
|
+
|
|
1337
|
+
/**
|
|
1338
|
+
* Array 의 filter 로 null/undefined 가 아닌 것을 걸러낼 때 사용한다.
|
|
1339
|
+
* ```ts
|
|
1340
|
+
* const array: (string | null)[] = ['test', null, 'sample', undefined]
|
|
1341
|
+
* const filtered: string[] = array.filter(notNull)
|
|
1342
|
+
* ```
|
|
1343
|
+
*/
|
|
1344
|
+
export declare function notNull<T>(value: T | null | undefined): value is T;
|
|
1345
|
+
|
|
1346
|
+
export declare type PageInfo = {
|
|
1347
|
+
offset?: number;
|
|
1348
|
+
limit?: number;
|
|
1349
|
+
totalCount?: number;
|
|
1350
|
+
};
|
|
1351
|
+
|
|
1352
|
+
export declare type PartialNonFunctionProperties<T> = Partial<NonFunctionProperties<T>>;
|
|
1353
|
+
|
|
1354
|
+
export declare type PopupComponentConfig = {
|
|
1355
|
+
container?: string | HTMLElement;
|
|
1356
|
+
hideOnScroll?: boolean;
|
|
1357
|
+
};
|
|
1358
|
+
|
|
1359
|
+
/**
|
|
1360
|
+
* BSTextInput 등의 prefix, suffix 타입
|
|
1361
|
+
*/
|
|
1362
|
+
export declare type PrefixSuffix = {
|
|
1363
|
+
type: 'text' | 'font-icon' | 'image-url';
|
|
1364
|
+
value: string;
|
|
1365
|
+
};
|
|
1366
|
+
|
|
1367
|
+
export declare const provideFieldContext: <T>(fieldContext: FieldContext<T>) => void;
|
|
1368
|
+
|
|
1369
|
+
export declare const provideModalHandle: (modalHandle: ModalHandle) => void;
|
|
1370
|
+
|
|
1371
|
+
export declare const provideSavePoint: () => SavePoint;
|
|
1372
|
+
|
|
1373
|
+
export declare type RawData<T> = PartialNonFunctionProperties<T>;
|
|
1374
|
+
|
|
1375
|
+
export declare type RegisteredModalItem = ModalItem & {
|
|
1376
|
+
modalId: string;
|
|
1377
|
+
modalHandle: ModalHandle;
|
|
1378
|
+
escToClose?: boolean;
|
|
1379
|
+
};
|
|
1380
|
+
|
|
1381
|
+
export declare interface SavePoint {
|
|
1382
|
+
registerField<T>(option: SavePointHandlerRegisterOption<T>): SavePointHandler<T>;
|
|
1383
|
+
unregisterField(field: Ref<HTMLElement | undefined>): void;
|
|
1384
|
+
addChild(child: ChildSavePoint): void;
|
|
1385
|
+
removeChild(child: ChildSavePoint): void;
|
|
1386
|
+
set(): void;
|
|
1387
|
+
setNextTick(): Promise<void>;
|
|
1388
|
+
rollback(): void;
|
|
1389
|
+
isModified(): boolean;
|
|
1390
|
+
}
|
|
1391
|
+
|
|
1392
|
+
export declare interface SavePointHandler<T> {
|
|
1393
|
+
saveValue(): void;
|
|
1394
|
+
getSavedValue(): T | undefined;
|
|
1395
|
+
rollbackValue(): void;
|
|
1396
|
+
isModified(currentValue: T): boolean;
|
|
1397
|
+
isFieldModified(): boolean;
|
|
1398
|
+
}
|
|
1399
|
+
|
|
1400
|
+
export declare type SavePointHandlerRegisterOption<T> = {
|
|
1401
|
+
field: Ref<HTMLElement | undefined>;
|
|
1402
|
+
} & SavePointValueProvider<T>;
|
|
1403
|
+
|
|
1404
|
+
export declare class SavePointImpl implements SavePoint {
|
|
1405
|
+
private fields;
|
|
1406
|
+
private children?;
|
|
1407
|
+
registerField<T>(option: SavePointHandlerRegisterOption<T>): SavePointHandler<T>;
|
|
1408
|
+
unregisterField(field: Ref<HTMLElement | undefined>): void;
|
|
1409
|
+
addChild(child: ChildSavePoint): void;
|
|
1410
|
+
removeChild(child: ChildSavePoint): void;
|
|
1411
|
+
set(): void;
|
|
1412
|
+
setNextTick(): Promise<void>;
|
|
1413
|
+
rollback(): void;
|
|
1414
|
+
isModified(): boolean;
|
|
1415
|
+
}
|
|
1416
|
+
|
|
1417
|
+
export declare type SavePointValueProvider<T> = {
|
|
1418
|
+
getCurrentValue: () => T;
|
|
1419
|
+
setCurrentValue: (value: T) => void;
|
|
1420
|
+
compare?: (savedValue: T, currentValue: T) => boolean;
|
|
1421
|
+
};
|
|
1422
|
+
|
|
1423
|
+
export declare const showAlarm: (component: Component, durationInMilliSeconds?: number) => void;
|
|
1424
|
+
|
|
1425
|
+
export declare const showLoading: () => void;
|
|
1426
|
+
|
|
1427
|
+
export declare const showLoadingIcon: Ref<boolean, boolean>;
|
|
1428
|
+
|
|
1429
|
+
export declare const showNotification: (message: string, style?: NotificationStyle, durationInMilliSeconds?: number) => void;
|
|
1430
|
+
|
|
1431
|
+
export declare const showTooltip: (content: string, target: HTMLElement) => void;
|
|
1432
|
+
|
|
1433
|
+
export declare type StoredFile = {
|
|
1434
|
+
fileUrl?: string;
|
|
1435
|
+
mediaType?: 'Image' | 'Video' | 'Youtube' | 'Unknown';
|
|
1436
|
+
thumbnailUrl?: string;
|
|
1437
|
+
altText?: string;
|
|
1438
|
+
width?: number;
|
|
1439
|
+
height?: number;
|
|
1440
|
+
imageNo?: number;
|
|
1441
|
+
file?: File;
|
|
1442
|
+
thumbnailFile?: File;
|
|
1443
|
+
};
|
|
1444
|
+
|
|
1445
|
+
export declare type TimeZone = string;
|
|
1446
|
+
|
|
1447
|
+
export declare type TooltipEntry = {
|
|
1448
|
+
content: string;
|
|
1449
|
+
target: HTMLElement;
|
|
1450
|
+
cursorInTooltip: boolean;
|
|
1451
|
+
};
|
|
1452
|
+
|
|
1453
|
+
export declare const tooltipEntry: Ref<TooltipEntry | undefined, TooltipEntry | undefined>;
|
|
1454
|
+
|
|
1455
|
+
export declare type TooltipProvider<T> = (item: T) => string | undefined;
|
|
1456
|
+
|
|
1457
|
+
export declare const tryUntil: (until: () => boolean | undefined, tryCall: () => void, intervalMilliseconds?: number, maxTrial?: number) => void;
|
|
1458
|
+
|
|
1459
|
+
/**
|
|
1460
|
+
* App 에 provide 된 BlueseaConfig 를 리턴한다.
|
|
1461
|
+
* @returns BlueseaConfig
|
|
1462
|
+
*/
|
|
1463
|
+
export declare const useBlueseaConfig: () => BlueseaConfig;
|
|
1464
|
+
|
|
1465
|
+
export declare const useContextMenu: () => BSContextMenuPlugin;
|
|
1466
|
+
|
|
1467
|
+
export declare const useContextMenuOptional: () => BSContextMenuPlugin | undefined;
|
|
1468
|
+
|
|
1469
|
+
export declare const useFieldContext: () => FieldContext<any> | undefined;
|
|
1470
|
+
|
|
1471
|
+
export declare const useModal: () => BSModal;
|
|
1472
|
+
|
|
1473
|
+
export declare const useModalHandle: () => ModalHandle;
|
|
1474
|
+
|
|
1475
|
+
export declare const useSavePoint: () => SavePoint | undefined;
|
|
1476
|
+
|
|
1477
|
+
declare type ValidationError = {
|
|
1478
|
+
code: string;
|
|
1479
|
+
message: string | undefined;
|
|
1480
|
+
};
|
|
1481
|
+
|
|
1482
|
+
declare type ValidationPhase = 'input' | 'change' | 'blur' | 'form';
|
|
1483
|
+
|
|
1484
|
+
/**
|
|
1485
|
+
* ```
|
|
1486
|
+
* v-click-outside="() => someFunction()"
|
|
1487
|
+
* v-click-outside="{enabled: true, handler: () => someFunction()}"
|
|
1488
|
+
* ```
|
|
1489
|
+
*/
|
|
1490
|
+
export declare const vClickOutside: ObjectDirective;
|
|
1491
|
+
|
|
1492
|
+
/**
|
|
1493
|
+
* element 아래에서 tab 을 계속 누를 때, focus 가 외부로 이동하지 않고 이 element 안에 머물러 있도록 만든다.
|
|
1494
|
+
* 즉, element 자식들 중 첫 번째 focusable 한 element 에서 shift-tab 누르면, 마지막 focusable 한 element 로 이동하고,
|
|
1495
|
+
* 마지막 focusable 한 element 에서 tab 누르면 첫 번째 focusable 한 element 로 이동한다.
|
|
1496
|
+
*/
|
|
1497
|
+
export declare const vFocusLoop: {
|
|
1498
|
+
mounted: (el: Element, _binding: DirectiveBinding) => Promise<void>;
|
|
1499
|
+
};
|
|
1500
|
+
|
|
1501
|
+
export declare const vFocusOnLoad: ObjectDirective;
|
|
1502
|
+
|
|
1503
|
+
export declare const vTooltip: ObjectDirective;
|
|
1504
|
+
|
|
1505
|
+
/**
|
|
1506
|
+
* 일정 시간동안 기다린다.
|
|
1507
|
+
* @param milliSec 기다리는 시간
|
|
1508
|
+
*/
|
|
1509
|
+
export declare const waitDuring: (milliSec?: number) => Promise<void>;
|
|
1510
|
+
|
|
1511
|
+
/**
|
|
1512
|
+
* 특정 조건이 완료될 때까지 여러 번 계속 시도한다.
|
|
1513
|
+
* @param condition 조건
|
|
1514
|
+
* @param intervalMilliseconds 시도 간격
|
|
1515
|
+
* @param maxTrial 최대 시도 수
|
|
1516
|
+
*/
|
|
1517
|
+
export declare const waitUntil: (condition: () => boolean, intervalMilliseconds?: number, maxTrial?: number) => Promise<void>;
|
|
1518
|
+
|
|
1519
|
+
export declare const withLoading: <T>(func: () => Promise<T>) => Promise<T>;
|
|
1520
|
+
|
|
1521
|
+
export { }
|