@opendesign-plus-test/components 0.0.1-rc.2 → 0.0.1-rc.3

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.
@@ -0,0 +1,2 @@
1
+ declare const _default: import('../../vue/dist/vue.esm-bundler.js').DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, import('../../vue/dist/vue.esm-bundler.js').PublicProps>;
2
+ export default _default;
@@ -0,0 +1,13 @@
1
+ type __VLS_Props = {
2
+ visible?: boolean;
3
+ enableGrid?: boolean;
4
+ community: string;
5
+ aboutPathZh: string;
6
+ aboutPathEn: string;
7
+ };
8
+ declare const _default: import('../../vue/dist/vue.esm-bundler.js').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('../../vue/dist/vue.esm-bundler.js').ComponentOptionsMixin, import('../../vue/dist/vue.esm-bundler.js').ComponentOptionsMixin, {} & {
9
+ "update:visible": (value: boolean) => any;
10
+ }, string, import('../../vue/dist/vue.esm-bundler.js').PublicProps, Readonly<__VLS_Props> & Readonly<{
11
+ "onUpdate:visible"?: ((value: boolean) => any) | undefined;
12
+ }>, {}, {}, {}, {}, string, import('../../vue/dist/vue.esm-bundler.js').ComponentProvideOptions, false, {}, any>;
13
+ export default _default;
@@ -0,0 +1,28 @@
1
+ type __VLS_Props = {
2
+ visible?: boolean;
3
+ enableGrid?: boolean;
4
+ community: string;
5
+ aboutPathZh: string;
6
+ aboutPathEn: string;
7
+ };
8
+ declare function __VLS_template(): {
9
+ attrs: Partial<{}>;
10
+ slots: {
11
+ 'close-icon'?(_: {}): any;
12
+ };
13
+ refs: {};
14
+ rootEl: any;
15
+ };
16
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
17
+ declare const __VLS_component: import('../../vue/dist/vue.esm-bundler.js').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('../../vue/dist/vue.esm-bundler.js').ComponentOptionsMixin, import('../../vue/dist/vue.esm-bundler.js').ComponentOptionsMixin, {} & {
18
+ "update:visible": (value: boolean) => any;
19
+ }, string, import('../../vue/dist/vue.esm-bundler.js').PublicProps, Readonly<__VLS_Props> & Readonly<{
20
+ "onUpdate:visible"?: ((value: boolean) => any) | undefined;
21
+ }>, {}, {}, {}, {}, string, import('../../vue/dist/vue.esm-bundler.js').ComponentProvideOptions, false, {}, any>;
22
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
23
+ export default _default;
24
+ type __VLS_WithTemplateSlots<T, S> = T & {
25
+ new (): {
26
+ $slots: S;
27
+ };
28
+ };
@@ -0,0 +1,692 @@
1
+ export interface OHeaderSearchPropsT {
2
+ modelValue?: string;
3
+ placeholder?: string;
4
+ expandedPlaceholder?: string;
5
+ expandDirection?: 'left' | 'right';
6
+ clearable?: boolean;
7
+ historyItems?: string[];
8
+ maxHistoryCount?: number;
9
+ storeHistory?: boolean;
10
+ historyTitle?: string;
11
+ storageKey?: string;
12
+ hotItems?: string[];
13
+ hotTitle?: string;
14
+ recommendItems?: string[];
15
+ searchUrl?: string;
16
+ searchUrlOpenBlank?: boolean;
17
+ searchTextMobile?: string;
18
+ }
19
+ export interface OHeaderSearchEmitsT {
20
+ (e: 'update:modelValue', value: string): void;
21
+ (e: 'update:historyItems', value: string[]): void;
22
+ (e: 'clear'): void;
23
+ (e: 'search', value: string): void;
24
+ (e: 'delete-history', value: string[]): void;
25
+ (e: 'delete-history-item', value: string): void;
26
+ }
27
+ declare function __VLS_template(): {
28
+ attrs: Partial<{}>;
29
+ slots: {
30
+ 'input-prefix'?(_: {}): any;
31
+ 'input-suffix'?(_: {}): any;
32
+ drawer?(_: {
33
+ recommendItems: string[];
34
+ historyItems: string[];
35
+ hotItems: string[];
36
+ }): any;
37
+ 'recommend-header'?(_: {
38
+ recommend: string[];
39
+ }): any;
40
+ 'recommend-content'?(_: {
41
+ recommend: string[];
42
+ }): any;
43
+ 'history-header'?(_: {
44
+ history: string[];
45
+ }): any;
46
+ 'history-content'?(_: {
47
+ history: string[];
48
+ }): any;
49
+ 'hot-header'?(_: {
50
+ hot: string[];
51
+ }): any;
52
+ 'hot-content'?(_: {
53
+ hot: string[];
54
+ }): any;
55
+ };
56
+ refs: {
57
+ posWrapper: HTMLDivElement;
58
+ inputRef: ({
59
+ $: import('../../vue/dist/vue.esm-bundler.js').ComponentInternalInstance;
60
+ $data: {};
61
+ $props: Partial<{
62
+ color: "normal" | "primary" | "success" | "warning" | "danger";
63
+ type: "text" | "password";
64
+ disabled: boolean;
65
+ variant: "solid" | "outline" | "text";
66
+ clearable: boolean;
67
+ readonly: boolean;
68
+ inputOnOutlimit: boolean;
69
+ showPasswordEvent: "click" | "pointerdown";
70
+ autoWidth: boolean;
71
+ passwordPlaceholder: string;
72
+ }> & Omit<{
73
+ readonly type: "text" | "password";
74
+ readonly color: "normal" | "primary" | "success" | "warning" | "danger";
75
+ readonly variant: "text" | "solid" | "outline";
76
+ readonly disabled: boolean;
77
+ readonly clearable: boolean;
78
+ readonly readonly: boolean;
79
+ readonly inputOnOutlimit: boolean;
80
+ readonly showPasswordEvent: "click" | "pointerdown";
81
+ readonly autoWidth: boolean;
82
+ readonly passwordPlaceholder: string;
83
+ readonly size?: "small" | "large" | "medium" | undefined;
84
+ readonly round?: import('@opensig/opendesign').RoundT | undefined;
85
+ readonly placeholder?: string | undefined;
86
+ readonly defaultValue?: string | number | undefined;
87
+ readonly modelValue?: string | number | undefined;
88
+ readonly inputId?: string | undefined;
89
+ readonly minLength?: number | undefined;
90
+ readonly maxLength?: number | undefined;
91
+ readonly getLength?: ((val: string) => number) | undefined;
92
+ readonly format?: ((value: string) => string) | undefined;
93
+ readonly validate?: ((value: string) => boolean) | undefined;
94
+ readonly valueOnInvalidChange?: ((inputValue: string, lastValidInputValue: string) => string) | undefined;
95
+ readonly onInput?: ((evt: Event, value: string) => any) | undefined | undefined;
96
+ readonly onClear?: ((evt?: Event | undefined) => any) | undefined | undefined;
97
+ readonly onBlur?: ((evt: FocusEvent) => any) | undefined | undefined;
98
+ readonly onChange?: ((value: string) => any) | undefined | undefined;
99
+ readonly onFocus?: ((evt: FocusEvent) => any) | undefined | undefined;
100
+ readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined | undefined;
101
+ readonly onPressEnter?: ((evt: KeyboardEvent) => any) | undefined | undefined;
102
+ } & import('../../vue/dist/vue.esm-bundler.js').VNodeProps & import('../../vue/dist/vue.esm-bundler.js').AllowedComponentProps & import('../../vue/dist/vue.esm-bundler.js').ComponentCustomProps, "type" | "color" | "variant" | "disabled" | "clearable" | "readonly" | "inputOnOutlimit" | "showPasswordEvent" | "autoWidth" | "passwordPlaceholder">;
103
+ $attrs: {
104
+ [x: string]: unknown;
105
+ };
106
+ $refs: {
107
+ [x: string]: unknown;
108
+ };
109
+ $slots: Readonly<{
110
+ [name: string]: import('../../vue/dist/vue.esm-bundler.js').Slot<any> | undefined;
111
+ }>;
112
+ $root: import('../../vue/dist/vue.esm-bundler.js').ComponentPublicInstance | null;
113
+ $parent: import('../../vue/dist/vue.esm-bundler.js').ComponentPublicInstance | null;
114
+ $host: Element | null;
115
+ $emit: ((event: "input", evt: Event, value: string) => void) & ((event: "clear", evt?: Event | undefined) => void) & ((event: "blur", evt: FocusEvent) => void) & ((event: "change", value: string) => void) & ((event: "focus", evt: FocusEvent) => void) & ((event: "update:modelValue", value: string) => void) & ((event: "pressEnter", evt: KeyboardEvent) => void);
116
+ $el: any;
117
+ $options: import('../../vue/dist/vue.esm-bundler.js').ComponentOptionsBase<Readonly<import('../../vue/dist/vue.esm-bundler.js').ExtractPropTypes<{
118
+ size: {
119
+ type: import('../../vue/dist/vue.esm-bundler.js').PropType<import('@opensig/opendesign').SizeT>;
120
+ };
121
+ round: {
122
+ type: import('../../vue/dist/vue.esm-bundler.js').PropType<import('@opensig/opendesign').RoundT>;
123
+ };
124
+ color: {
125
+ type: import('../../vue/dist/vue.esm-bundler.js').PropType<import('@opensig/opendesign').Color2T>;
126
+ default: string;
127
+ };
128
+ variant: {
129
+ type: import('../../vue/dist/vue.esm-bundler.js').PropType<import('@opensig/opendesign').VariantT>;
130
+ default: string;
131
+ };
132
+ modelValue: {
133
+ type: (NumberConstructor | StringConstructor)[];
134
+ };
135
+ defaultValue: {
136
+ type: (NumberConstructor | StringConstructor)[];
137
+ };
138
+ type: {
139
+ type: import('../../vue/dist/vue.esm-bundler.js').PropType<"text" | "password">;
140
+ default: string;
141
+ };
142
+ placeholder: {
143
+ type: StringConstructor;
144
+ };
145
+ inputId: {
146
+ type: StringConstructor;
147
+ };
148
+ disabled: {
149
+ type: BooleanConstructor;
150
+ };
151
+ readonly: {
152
+ type: BooleanConstructor;
153
+ };
154
+ clearable: {
155
+ type: BooleanConstructor;
156
+ };
157
+ minLength: {
158
+ type: NumberConstructor;
159
+ };
160
+ maxLength: {
161
+ type: NumberConstructor;
162
+ };
163
+ getLength: {
164
+ type: import('../../vue/dist/vue.esm-bundler.js').PropType<(val: string) => number>;
165
+ };
166
+ inputOnOutlimit: {
167
+ type: BooleanConstructor;
168
+ default: boolean;
169
+ };
170
+ format: {
171
+ type: import('../../vue/dist/vue.esm-bundler.js').PropType<(value: string) => string>;
172
+ };
173
+ validate: {
174
+ type: import('../../vue/dist/vue.esm-bundler.js').PropType<(value: string) => boolean>;
175
+ };
176
+ valueOnInvalidChange: {
177
+ type: import('../../vue/dist/vue.esm-bundler.js').PropType<(inputValue: string, lastValidInputValue: string) => string>;
178
+ };
179
+ showPasswordEvent: {
180
+ type: import('../../vue/dist/vue.esm-bundler.js').PropType<"click" | "pointerdown">;
181
+ default: string;
182
+ };
183
+ autoWidth: {
184
+ type: BooleanConstructor;
185
+ };
186
+ passwordPlaceholder: {
187
+ type: StringConstructor;
188
+ default: string;
189
+ };
190
+ }>> & Readonly<{
191
+ onInput?: ((evt: Event, value: string) => any) | undefined;
192
+ onClear?: ((evt?: Event | undefined) => any) | undefined;
193
+ onBlur?: ((evt: FocusEvent) => any) | undefined;
194
+ onChange?: ((value: string) => any) | undefined;
195
+ onFocus?: ((evt: FocusEvent) => any) | undefined;
196
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
197
+ onPressEnter?: ((evt: KeyboardEvent) => any) | undefined;
198
+ }>, {
199
+ focus: () => void | undefined;
200
+ blur: () => void | undefined;
201
+ clear: () => void | undefined;
202
+ inputEl: () => HTMLInputElement | undefined;
203
+ togglePassword: () => void | undefined;
204
+ }, {}, {}, {}, import('../../vue/dist/vue.esm-bundler.js').ComponentOptionsMixin, import('../../vue/dist/vue.esm-bundler.js').ComponentOptionsMixin, {
205
+ input: (evt: Event, value: string) => any;
206
+ clear: (evt?: Event | undefined) => any;
207
+ blur: (evt: FocusEvent) => any;
208
+ change: (value: string) => any;
209
+ focus: (evt: FocusEvent) => any;
210
+ "update:modelValue": (value: string) => any;
211
+ pressEnter: (evt: KeyboardEvent) => any;
212
+ }, string, {
213
+ color: "normal" | "primary" | "success" | "warning" | "danger";
214
+ type: "text" | "password";
215
+ disabled: boolean;
216
+ variant: "solid" | "outline" | "text";
217
+ clearable: boolean;
218
+ readonly: boolean;
219
+ inputOnOutlimit: boolean;
220
+ showPasswordEvent: "click" | "pointerdown";
221
+ autoWidth: boolean;
222
+ passwordPlaceholder: string;
223
+ }, {}, string, {}, import('../../vue/dist/vue.esm-bundler.js').GlobalComponents, import('../../vue/dist/vue.esm-bundler.js').GlobalDirectives, string, import('../../vue/dist/vue.esm-bundler.js').ComponentProvideOptions> & {
224
+ beforeCreate?: (() => void) | (() => void)[];
225
+ created?: (() => void) | (() => void)[];
226
+ beforeMount?: (() => void) | (() => void)[];
227
+ mounted?: (() => void) | (() => void)[];
228
+ beforeUpdate?: (() => void) | (() => void)[];
229
+ updated?: (() => void) | (() => void)[];
230
+ activated?: (() => void) | (() => void)[];
231
+ deactivated?: (() => void) | (() => void)[];
232
+ beforeDestroy?: (() => void) | (() => void)[];
233
+ beforeUnmount?: (() => void) | (() => void)[];
234
+ destroyed?: (() => void) | (() => void)[];
235
+ unmounted?: (() => void) | (() => void)[];
236
+ renderTracked?: ((e: import('../../vue/dist/vue.esm-bundler.js').DebuggerEvent) => void) | ((e: import('../../vue/dist/vue.esm-bundler.js').DebuggerEvent) => void)[];
237
+ renderTriggered?: ((e: import('../../vue/dist/vue.esm-bundler.js').DebuggerEvent) => void) | ((e: import('../../vue/dist/vue.esm-bundler.js').DebuggerEvent) => void)[];
238
+ errorCaptured?: ((err: unknown, instance: import('../../vue/dist/vue.esm-bundler.js').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('../../vue/dist/vue.esm-bundler.js').ComponentPublicInstance | null, info: string) => boolean | void)[];
239
+ };
240
+ $forceUpdate: () => void;
241
+ $nextTick: typeof import('../../vue/dist/vue.esm-bundler.js').nextTick;
242
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('../../vue/dist/vue.esm-bundler.js').WatchOptions): import('../../vue/dist/vue.esm-bundler.js').WatchStopHandle;
243
+ } & Readonly<{
244
+ color: "normal" | "primary" | "success" | "warning" | "danger";
245
+ type: "text" | "password";
246
+ disabled: boolean;
247
+ variant: "solid" | "outline" | "text";
248
+ clearable: boolean;
249
+ readonly: boolean;
250
+ inputOnOutlimit: boolean;
251
+ showPasswordEvent: "click" | "pointerdown";
252
+ autoWidth: boolean;
253
+ passwordPlaceholder: string;
254
+ }> & Omit<Readonly<import('../../vue/dist/vue.esm-bundler.js').ExtractPropTypes<{
255
+ size: {
256
+ type: import('../../vue/dist/vue.esm-bundler.js').PropType<import('@opensig/opendesign').SizeT>;
257
+ };
258
+ round: {
259
+ type: import('../../vue/dist/vue.esm-bundler.js').PropType<import('@opensig/opendesign').RoundT>;
260
+ };
261
+ color: {
262
+ type: import('../../vue/dist/vue.esm-bundler.js').PropType<import('@opensig/opendesign').Color2T>;
263
+ default: string;
264
+ };
265
+ variant: {
266
+ type: import('../../vue/dist/vue.esm-bundler.js').PropType<import('@opensig/opendesign').VariantT>;
267
+ default: string;
268
+ };
269
+ modelValue: {
270
+ type: (NumberConstructor | StringConstructor)[];
271
+ };
272
+ defaultValue: {
273
+ type: (NumberConstructor | StringConstructor)[];
274
+ };
275
+ type: {
276
+ type: import('../../vue/dist/vue.esm-bundler.js').PropType<"text" | "password">;
277
+ default: string;
278
+ };
279
+ placeholder: {
280
+ type: StringConstructor;
281
+ };
282
+ inputId: {
283
+ type: StringConstructor;
284
+ };
285
+ disabled: {
286
+ type: BooleanConstructor;
287
+ };
288
+ readonly: {
289
+ type: BooleanConstructor;
290
+ };
291
+ clearable: {
292
+ type: BooleanConstructor;
293
+ };
294
+ minLength: {
295
+ type: NumberConstructor;
296
+ };
297
+ maxLength: {
298
+ type: NumberConstructor;
299
+ };
300
+ getLength: {
301
+ type: import('../../vue/dist/vue.esm-bundler.js').PropType<(val: string) => number>;
302
+ };
303
+ inputOnOutlimit: {
304
+ type: BooleanConstructor;
305
+ default: boolean;
306
+ };
307
+ format: {
308
+ type: import('../../vue/dist/vue.esm-bundler.js').PropType<(value: string) => string>;
309
+ };
310
+ validate: {
311
+ type: import('../../vue/dist/vue.esm-bundler.js').PropType<(value: string) => boolean>;
312
+ };
313
+ valueOnInvalidChange: {
314
+ type: import('../../vue/dist/vue.esm-bundler.js').PropType<(inputValue: string, lastValidInputValue: string) => string>;
315
+ };
316
+ showPasswordEvent: {
317
+ type: import('../../vue/dist/vue.esm-bundler.js').PropType<"click" | "pointerdown">;
318
+ default: string;
319
+ };
320
+ autoWidth: {
321
+ type: BooleanConstructor;
322
+ };
323
+ passwordPlaceholder: {
324
+ type: StringConstructor;
325
+ default: string;
326
+ };
327
+ }>> & Readonly<{
328
+ onInput?: ((evt: Event, value: string) => any) | undefined;
329
+ onClear?: ((evt?: Event | undefined) => any) | undefined;
330
+ onBlur?: ((evt: FocusEvent) => any) | undefined;
331
+ onChange?: ((value: string) => any) | undefined;
332
+ onFocus?: ((evt: FocusEvent) => any) | undefined;
333
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
334
+ onPressEnter?: ((evt: KeyboardEvent) => any) | undefined;
335
+ }>, "type" | "color" | "variant" | "disabled" | "clear" | "blur" | "focus" | "clearable" | "readonly" | "inputOnOutlimit" | "showPasswordEvent" | "autoWidth" | "passwordPlaceholder" | "inputEl" | "togglePassword"> & import('../../vue/dist/vue.esm-bundler.js').ShallowUnwrapRef<{
336
+ focus: () => void | undefined;
337
+ blur: () => void | undefined;
338
+ clear: () => void | undefined;
339
+ inputEl: () => HTMLInputElement | undefined;
340
+ togglePassword: () => void | undefined;
341
+ }> & {} & import('../../vue/dist/vue.esm-bundler.js').ComponentCustomProperties & {} & {
342
+ $slots: Readonly<{
343
+ default(): any;
344
+ prepend(): any;
345
+ append(): any;
346
+ prefix(): any;
347
+ suffix(): any;
348
+ }> & {
349
+ default(): any;
350
+ prepend(): any;
351
+ append(): any;
352
+ prefix(): any;
353
+ suffix(): any;
354
+ };
355
+ }) | null;
356
+ };
357
+ rootEl: HTMLDivElement;
358
+ };
359
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
360
+ declare const __VLS_component: import('../../vue/dist/vue.esm-bundler.js').DefineComponent<OHeaderSearchPropsT, {}, {}, {}, {}, import('../../vue/dist/vue.esm-bundler.js').ComponentOptionsMixin, import('../../vue/dist/vue.esm-bundler.js').ComponentOptionsMixin, {} & {
361
+ search: (value: string) => any;
362
+ clear: () => any;
363
+ "update:modelValue": (value: string) => any;
364
+ "update:historyItems": (value: string[]) => any;
365
+ "delete-history": (value: string[]) => any;
366
+ "delete-history-item": (value: string) => any;
367
+ }, string, import('../../vue/dist/vue.esm-bundler.js').PublicProps, Readonly<OHeaderSearchPropsT> & Readonly<{
368
+ onSearch?: ((value: string) => any) | undefined;
369
+ onClear?: (() => any) | undefined;
370
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
371
+ "onUpdate:historyItems"?: ((value: string[]) => any) | undefined;
372
+ "onDelete-history"?: ((value: string[]) => any) | undefined;
373
+ "onDelete-history-item"?: ((value: string) => any) | undefined;
374
+ }>, {
375
+ modelValue: string;
376
+ expandDirection: "left" | "right";
377
+ clearable: boolean;
378
+ historyItems: string[];
379
+ maxHistoryCount: number;
380
+ storeHistory: boolean;
381
+ storageKey: string;
382
+ hotItems: string[];
383
+ recommendItems: string[];
384
+ searchUrlOpenBlank: boolean;
385
+ }, {}, {}, {}, string, import('../../vue/dist/vue.esm-bundler.js').ComponentProvideOptions, false, {
386
+ posWrapper: HTMLDivElement;
387
+ inputRef: ({
388
+ $: import('../../vue/dist/vue.esm-bundler.js').ComponentInternalInstance;
389
+ $data: {};
390
+ $props: Partial<{
391
+ color: "normal" | "primary" | "success" | "warning" | "danger";
392
+ type: "text" | "password";
393
+ disabled: boolean;
394
+ variant: "solid" | "outline" | "text";
395
+ clearable: boolean;
396
+ readonly: boolean;
397
+ inputOnOutlimit: boolean;
398
+ showPasswordEvent: "click" | "pointerdown";
399
+ autoWidth: boolean;
400
+ passwordPlaceholder: string;
401
+ }> & Omit<{
402
+ readonly type: "text" | "password";
403
+ readonly color: "normal" | "primary" | "success" | "warning" | "danger";
404
+ readonly variant: "text" | "solid" | "outline";
405
+ readonly disabled: boolean;
406
+ readonly clearable: boolean;
407
+ readonly readonly: boolean;
408
+ readonly inputOnOutlimit: boolean;
409
+ readonly showPasswordEvent: "click" | "pointerdown";
410
+ readonly autoWidth: boolean;
411
+ readonly passwordPlaceholder: string;
412
+ readonly size?: "small" | "large" | "medium" | undefined;
413
+ readonly round?: import('@opensig/opendesign').RoundT | undefined;
414
+ readonly placeholder?: string | undefined;
415
+ readonly defaultValue?: string | number | undefined;
416
+ readonly modelValue?: string | number | undefined;
417
+ readonly inputId?: string | undefined;
418
+ readonly minLength?: number | undefined;
419
+ readonly maxLength?: number | undefined;
420
+ readonly getLength?: ((val: string) => number) | undefined;
421
+ readonly format?: ((value: string) => string) | undefined;
422
+ readonly validate?: ((value: string) => boolean) | undefined;
423
+ readonly valueOnInvalidChange?: ((inputValue: string, lastValidInputValue: string) => string) | undefined;
424
+ readonly onInput?: ((evt: Event, value: string) => any) | undefined | undefined;
425
+ readonly onClear?: ((evt?: Event | undefined) => any) | undefined | undefined;
426
+ readonly onBlur?: ((evt: FocusEvent) => any) | undefined | undefined;
427
+ readonly onChange?: ((value: string) => any) | undefined | undefined;
428
+ readonly onFocus?: ((evt: FocusEvent) => any) | undefined | undefined;
429
+ readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined | undefined;
430
+ readonly onPressEnter?: ((evt: KeyboardEvent) => any) | undefined | undefined;
431
+ } & import('../../vue/dist/vue.esm-bundler.js').VNodeProps & import('../../vue/dist/vue.esm-bundler.js').AllowedComponentProps & import('../../vue/dist/vue.esm-bundler.js').ComponentCustomProps, "type" | "color" | "variant" | "disabled" | "clearable" | "readonly" | "inputOnOutlimit" | "showPasswordEvent" | "autoWidth" | "passwordPlaceholder">;
432
+ $attrs: {
433
+ [x: string]: unknown;
434
+ };
435
+ $refs: {
436
+ [x: string]: unknown;
437
+ };
438
+ $slots: Readonly<{
439
+ [name: string]: import('../../vue/dist/vue.esm-bundler.js').Slot<any> | undefined;
440
+ }>;
441
+ $root: import('../../vue/dist/vue.esm-bundler.js').ComponentPublicInstance | null;
442
+ $parent: import('../../vue/dist/vue.esm-bundler.js').ComponentPublicInstance | null;
443
+ $host: Element | null;
444
+ $emit: ((event: "input", evt: Event, value: string) => void) & ((event: "clear", evt?: Event | undefined) => void) & ((event: "blur", evt: FocusEvent) => void) & ((event: "change", value: string) => void) & ((event: "focus", evt: FocusEvent) => void) & ((event: "update:modelValue", value: string) => void) & ((event: "pressEnter", evt: KeyboardEvent) => void);
445
+ $el: any;
446
+ $options: import('../../vue/dist/vue.esm-bundler.js').ComponentOptionsBase<Readonly<import('../../vue/dist/vue.esm-bundler.js').ExtractPropTypes<{
447
+ size: {
448
+ type: import('../../vue/dist/vue.esm-bundler.js').PropType<import('@opensig/opendesign').SizeT>;
449
+ };
450
+ round: {
451
+ type: import('../../vue/dist/vue.esm-bundler.js').PropType<import('@opensig/opendesign').RoundT>;
452
+ };
453
+ color: {
454
+ type: import('../../vue/dist/vue.esm-bundler.js').PropType<import('@opensig/opendesign').Color2T>;
455
+ default: string;
456
+ };
457
+ variant: {
458
+ type: import('../../vue/dist/vue.esm-bundler.js').PropType<import('@opensig/opendesign').VariantT>;
459
+ default: string;
460
+ };
461
+ modelValue: {
462
+ type: (NumberConstructor | StringConstructor)[];
463
+ };
464
+ defaultValue: {
465
+ type: (NumberConstructor | StringConstructor)[];
466
+ };
467
+ type: {
468
+ type: import('../../vue/dist/vue.esm-bundler.js').PropType<"text" | "password">;
469
+ default: string;
470
+ };
471
+ placeholder: {
472
+ type: StringConstructor;
473
+ };
474
+ inputId: {
475
+ type: StringConstructor;
476
+ };
477
+ disabled: {
478
+ type: BooleanConstructor;
479
+ };
480
+ readonly: {
481
+ type: BooleanConstructor;
482
+ };
483
+ clearable: {
484
+ type: BooleanConstructor;
485
+ };
486
+ minLength: {
487
+ type: NumberConstructor;
488
+ };
489
+ maxLength: {
490
+ type: NumberConstructor;
491
+ };
492
+ getLength: {
493
+ type: import('../../vue/dist/vue.esm-bundler.js').PropType<(val: string) => number>;
494
+ };
495
+ inputOnOutlimit: {
496
+ type: BooleanConstructor;
497
+ default: boolean;
498
+ };
499
+ format: {
500
+ type: import('../../vue/dist/vue.esm-bundler.js').PropType<(value: string) => string>;
501
+ };
502
+ validate: {
503
+ type: import('../../vue/dist/vue.esm-bundler.js').PropType<(value: string) => boolean>;
504
+ };
505
+ valueOnInvalidChange: {
506
+ type: import('../../vue/dist/vue.esm-bundler.js').PropType<(inputValue: string, lastValidInputValue: string) => string>;
507
+ };
508
+ showPasswordEvent: {
509
+ type: import('../../vue/dist/vue.esm-bundler.js').PropType<"click" | "pointerdown">;
510
+ default: string;
511
+ };
512
+ autoWidth: {
513
+ type: BooleanConstructor;
514
+ };
515
+ passwordPlaceholder: {
516
+ type: StringConstructor;
517
+ default: string;
518
+ };
519
+ }>> & Readonly<{
520
+ onInput?: ((evt: Event, value: string) => any) | undefined;
521
+ onClear?: ((evt?: Event | undefined) => any) | undefined;
522
+ onBlur?: ((evt: FocusEvent) => any) | undefined;
523
+ onChange?: ((value: string) => any) | undefined;
524
+ onFocus?: ((evt: FocusEvent) => any) | undefined;
525
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
526
+ onPressEnter?: ((evt: KeyboardEvent) => any) | undefined;
527
+ }>, {
528
+ focus: () => void | undefined;
529
+ blur: () => void | undefined;
530
+ clear: () => void | undefined;
531
+ inputEl: () => HTMLInputElement | undefined;
532
+ togglePassword: () => void | undefined;
533
+ }, {}, {}, {}, import('../../vue/dist/vue.esm-bundler.js').ComponentOptionsMixin, import('../../vue/dist/vue.esm-bundler.js').ComponentOptionsMixin, {
534
+ input: (evt: Event, value: string) => any;
535
+ clear: (evt?: Event | undefined) => any;
536
+ blur: (evt: FocusEvent) => any;
537
+ change: (value: string) => any;
538
+ focus: (evt: FocusEvent) => any;
539
+ "update:modelValue": (value: string) => any;
540
+ pressEnter: (evt: KeyboardEvent) => any;
541
+ }, string, {
542
+ color: "normal" | "primary" | "success" | "warning" | "danger";
543
+ type: "text" | "password";
544
+ disabled: boolean;
545
+ variant: "solid" | "outline" | "text";
546
+ clearable: boolean;
547
+ readonly: boolean;
548
+ inputOnOutlimit: boolean;
549
+ showPasswordEvent: "click" | "pointerdown";
550
+ autoWidth: boolean;
551
+ passwordPlaceholder: string;
552
+ }, {}, string, {}, import('../../vue/dist/vue.esm-bundler.js').GlobalComponents, import('../../vue/dist/vue.esm-bundler.js').GlobalDirectives, string, import('../../vue/dist/vue.esm-bundler.js').ComponentProvideOptions> & {
553
+ beforeCreate?: (() => void) | (() => void)[];
554
+ created?: (() => void) | (() => void)[];
555
+ beforeMount?: (() => void) | (() => void)[];
556
+ mounted?: (() => void) | (() => void)[];
557
+ beforeUpdate?: (() => void) | (() => void)[];
558
+ updated?: (() => void) | (() => void)[];
559
+ activated?: (() => void) | (() => void)[];
560
+ deactivated?: (() => void) | (() => void)[];
561
+ beforeDestroy?: (() => void) | (() => void)[];
562
+ beforeUnmount?: (() => void) | (() => void)[];
563
+ destroyed?: (() => void) | (() => void)[];
564
+ unmounted?: (() => void) | (() => void)[];
565
+ renderTracked?: ((e: import('../../vue/dist/vue.esm-bundler.js').DebuggerEvent) => void) | ((e: import('../../vue/dist/vue.esm-bundler.js').DebuggerEvent) => void)[];
566
+ renderTriggered?: ((e: import('../../vue/dist/vue.esm-bundler.js').DebuggerEvent) => void) | ((e: import('../../vue/dist/vue.esm-bundler.js').DebuggerEvent) => void)[];
567
+ errorCaptured?: ((err: unknown, instance: import('../../vue/dist/vue.esm-bundler.js').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('../../vue/dist/vue.esm-bundler.js').ComponentPublicInstance | null, info: string) => boolean | void)[];
568
+ };
569
+ $forceUpdate: () => void;
570
+ $nextTick: typeof import('../../vue/dist/vue.esm-bundler.js').nextTick;
571
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('../../vue/dist/vue.esm-bundler.js').WatchOptions): import('../../vue/dist/vue.esm-bundler.js').WatchStopHandle;
572
+ } & Readonly<{
573
+ color: "normal" | "primary" | "success" | "warning" | "danger";
574
+ type: "text" | "password";
575
+ disabled: boolean;
576
+ variant: "solid" | "outline" | "text";
577
+ clearable: boolean;
578
+ readonly: boolean;
579
+ inputOnOutlimit: boolean;
580
+ showPasswordEvent: "click" | "pointerdown";
581
+ autoWidth: boolean;
582
+ passwordPlaceholder: string;
583
+ }> & Omit<Readonly<import('../../vue/dist/vue.esm-bundler.js').ExtractPropTypes<{
584
+ size: {
585
+ type: import('../../vue/dist/vue.esm-bundler.js').PropType<import('@opensig/opendesign').SizeT>;
586
+ };
587
+ round: {
588
+ type: import('../../vue/dist/vue.esm-bundler.js').PropType<import('@opensig/opendesign').RoundT>;
589
+ };
590
+ color: {
591
+ type: import('../../vue/dist/vue.esm-bundler.js').PropType<import('@opensig/opendesign').Color2T>;
592
+ default: string;
593
+ };
594
+ variant: {
595
+ type: import('../../vue/dist/vue.esm-bundler.js').PropType<import('@opensig/opendesign').VariantT>;
596
+ default: string;
597
+ };
598
+ modelValue: {
599
+ type: (NumberConstructor | StringConstructor)[];
600
+ };
601
+ defaultValue: {
602
+ type: (NumberConstructor | StringConstructor)[];
603
+ };
604
+ type: {
605
+ type: import('../../vue/dist/vue.esm-bundler.js').PropType<"text" | "password">;
606
+ default: string;
607
+ };
608
+ placeholder: {
609
+ type: StringConstructor;
610
+ };
611
+ inputId: {
612
+ type: StringConstructor;
613
+ };
614
+ disabled: {
615
+ type: BooleanConstructor;
616
+ };
617
+ readonly: {
618
+ type: BooleanConstructor;
619
+ };
620
+ clearable: {
621
+ type: BooleanConstructor;
622
+ };
623
+ minLength: {
624
+ type: NumberConstructor;
625
+ };
626
+ maxLength: {
627
+ type: NumberConstructor;
628
+ };
629
+ getLength: {
630
+ type: import('../../vue/dist/vue.esm-bundler.js').PropType<(val: string) => number>;
631
+ };
632
+ inputOnOutlimit: {
633
+ type: BooleanConstructor;
634
+ default: boolean;
635
+ };
636
+ format: {
637
+ type: import('../../vue/dist/vue.esm-bundler.js').PropType<(value: string) => string>;
638
+ };
639
+ validate: {
640
+ type: import('../../vue/dist/vue.esm-bundler.js').PropType<(value: string) => boolean>;
641
+ };
642
+ valueOnInvalidChange: {
643
+ type: import('../../vue/dist/vue.esm-bundler.js').PropType<(inputValue: string, lastValidInputValue: string) => string>;
644
+ };
645
+ showPasswordEvent: {
646
+ type: import('../../vue/dist/vue.esm-bundler.js').PropType<"click" | "pointerdown">;
647
+ default: string;
648
+ };
649
+ autoWidth: {
650
+ type: BooleanConstructor;
651
+ };
652
+ passwordPlaceholder: {
653
+ type: StringConstructor;
654
+ default: string;
655
+ };
656
+ }>> & Readonly<{
657
+ onInput?: ((evt: Event, value: string) => any) | undefined;
658
+ onClear?: ((evt?: Event | undefined) => any) | undefined;
659
+ onBlur?: ((evt: FocusEvent) => any) | undefined;
660
+ onChange?: ((value: string) => any) | undefined;
661
+ onFocus?: ((evt: FocusEvent) => any) | undefined;
662
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
663
+ onPressEnter?: ((evt: KeyboardEvent) => any) | undefined;
664
+ }>, "type" | "color" | "variant" | "disabled" | "clear" | "blur" | "focus" | "clearable" | "readonly" | "inputOnOutlimit" | "showPasswordEvent" | "autoWidth" | "passwordPlaceholder" | "inputEl" | "togglePassword"> & import('../../vue/dist/vue.esm-bundler.js').ShallowUnwrapRef<{
665
+ focus: () => void | undefined;
666
+ blur: () => void | undefined;
667
+ clear: () => void | undefined;
668
+ inputEl: () => HTMLInputElement | undefined;
669
+ togglePassword: () => void | undefined;
670
+ }> & {} & import('../../vue/dist/vue.esm-bundler.js').ComponentCustomProperties & {} & {
671
+ $slots: Readonly<{
672
+ default(): any;
673
+ prepend(): any;
674
+ append(): any;
675
+ prefix(): any;
676
+ suffix(): any;
677
+ }> & {
678
+ default(): any;
679
+ prepend(): any;
680
+ append(): any;
681
+ prefix(): any;
682
+ suffix(): any;
683
+ };
684
+ }) | null;
685
+ }, HTMLDivElement>;
686
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
687
+ export default _default;
688
+ type __VLS_WithTemplateSlots<T, S> = T & {
689
+ new (): {
690
+ $slots: S;
691
+ };
692
+ };
@@ -0,0 +1,23 @@
1
+ export interface OPlusConfigProviderPropsT {
2
+ locale: 'zh' | 'en';
3
+ theme: 'light' | 'dark';
4
+ }
5
+ declare function __VLS_template(): {
6
+ attrs: Partial<{}>;
7
+ slots: {
8
+ default?(_: {}): any;
9
+ };
10
+ refs: {};
11
+ rootEl: any;
12
+ };
13
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
14
+ declare const __VLS_component: import('../../vue/dist/vue.esm-bundler.js').DefineComponent<OPlusConfigProviderPropsT, {}, {}, {}, {}, import('../../vue/dist/vue.esm-bundler.js').ComponentOptionsMixin, import('../../vue/dist/vue.esm-bundler.js').ComponentOptionsMixin, {}, string, import('../../vue/dist/vue.esm-bundler.js').PublicProps, Readonly<OPlusConfigProviderPropsT> & Readonly<{}>, {
15
+ theme: "light" | "dark";
16
+ }, {}, {}, {}, string, import('../../vue/dist/vue.esm-bundler.js').ComponentProvideOptions, false, {}, any>;
17
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
18
+ export default _default;
19
+ type __VLS_WithTemplateSlots<T, S> = T & {
20
+ new (): {
21
+ $slots: S;
22
+ };
23
+ };
@@ -0,0 +1,37 @@
1
+ interface SectionPropsT {
2
+ title?: string | Array<string>;
3
+ subtitle?: string;
4
+ full?: boolean;
5
+ headerJustifyCenter?: boolean;
6
+ footer?: string;
7
+ footerHref?: string;
8
+ }
9
+ declare function __VLS_template(): {
10
+ attrs: Partial<{}>;
11
+ slots: {
12
+ main?(_: {}): any;
13
+ header?(_: {}): any;
14
+ title?(_: {}): any;
15
+ subtitle?(_: {}): any;
16
+ default?(_: {}): any;
17
+ footer?(_: {}): any;
18
+ };
19
+ refs: {};
20
+ rootEl: HTMLDivElement;
21
+ };
22
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
23
+ declare const __VLS_component: import('../../vue/dist/vue.esm-bundler.js').DefineComponent<SectionPropsT, {}, {}, {}, {}, import('../../vue/dist/vue.esm-bundler.js').ComponentOptionsMixin, import('../../vue/dist/vue.esm-bundler.js').ComponentOptionsMixin, {}, string, import('../../vue/dist/vue.esm-bundler.js').PublicProps, Readonly<SectionPropsT> & Readonly<{}>, {
24
+ footer: string;
25
+ title: string | Array<string>;
26
+ subtitle: string;
27
+ full: boolean;
28
+ headerJustifyCenter: boolean;
29
+ footerHref: string;
30
+ }, {}, {}, {}, string, import('../../vue/dist/vue.esm-bundler.js').ComponentProvideOptions, false, {}, HTMLDivElement>;
31
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
32
+ export default _default;
33
+ type __VLS_WithTemplateSlots<T, S> = T & {
34
+ new (): {
35
+ $slots: S;
36
+ };
37
+ };
@@ -0,0 +1,28 @@
1
+ import { Component } from '../../vue/dist/vue.esm-bundler.js';
2
+ export interface OThemeSwitcherPropsT {
3
+ theme?: string;
4
+ type?: 'auto' | 'common' | 'mobile';
5
+ lightValue?: string;
6
+ darkValue?: string;
7
+ lightIcon?: Component;
8
+ darkIcon?: Component;
9
+ }
10
+ export interface OThemeSwitcherEmitsT {
11
+ (e: 'update:theme', value: string): void;
12
+ (e: 'change', val: string): void;
13
+ }
14
+ declare const _default: import('../../vue/dist/vue.esm-bundler.js').DefineComponent<OThemeSwitcherPropsT, {}, {}, {}, {}, import('../../vue/dist/vue.esm-bundler.js').ComponentOptionsMixin, import('../../vue/dist/vue.esm-bundler.js').ComponentOptionsMixin, {} & {
15
+ change: (val: string) => any;
16
+ "update:theme": (value: string) => any;
17
+ }, string, import('../../vue/dist/vue.esm-bundler.js').PublicProps, Readonly<OThemeSwitcherPropsT> & Readonly<{
18
+ onChange?: ((val: string) => any) | undefined;
19
+ "onUpdate:theme"?: ((value: string) => any) | undefined;
20
+ }>, {
21
+ type: "auto" | "common" | "mobile";
22
+ theme: string;
23
+ lightValue: string;
24
+ darkValue: string;
25
+ lightIcon: Component;
26
+ darkIcon: Component;
27
+ }, {}, {}, {}, string, import('../../vue/dist/vue.esm-bundler.js').ComponentProvideOptions, false, {}, HTMLDivElement>;
28
+ export default _default;
@@ -0,0 +1,12 @@
1
+ import { default as OBanner } from './components/OBanner.vue';
2
+ import { default as OCookieNotice } from './components/OCookieNotice.vue';
3
+ import { default as OCookieNoticeEl } from './components/OCookieNoticeEl.vue';
4
+ import { default as OHeaderSearch } from './components/OHeaderSearch.vue';
5
+ import { default as OPlusConfigProvider } from './components/OPlusConfigProvider.vue';
6
+ import { default as OSection } from './components/OSection.vue';
7
+ import { default as OThemeSwitcher } from './components/OThemeSwitcher.vue';
8
+ export { OBanner, OCookieNotice, OCookieNoticeEl, OHeaderSearch, OPlusConfigProvider, OSection, OThemeSwitcher };
9
+ declare const _default: {
10
+ install: (app: any) => void;
11
+ };
12
+ export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opendesign-plus-test/components",
3
- "version": "0.0.1-rc.2",
3
+ "version": "0.0.1-rc.3",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -25,8 +25,8 @@
25
25
  "@vueuse/core": "10.11.1",
26
26
  "aos": "^2.3.4",
27
27
  "vue": "^3.4.0",
28
- "@opendesign-plus/composables": "0.0.1-rc.6",
29
- "@opendesign-plus/styles": "0.0.1-rc.2"
28
+ "@opendesign-plus/styles": "0.0.1-rc.2",
29
+ "@opendesign-plus/composables": "0.0.1-rc.6"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@vitejs/plugin-vue": "^5.1.0",
@@ -36,6 +36,7 @@
36
36
  "unplugin-element-plus": "^0.11.2",
37
37
  "unplugin-icons": "^0.14.1",
38
38
  "vite": "^6.2.3",
39
+ "vite-plugin-dts": "^4.5.3",
39
40
  "vue-tsc": "2.2.8"
40
41
  },
41
42
  "scripts": {
package/vite.config.ts CHANGED
@@ -4,6 +4,7 @@ import Icons from 'unplugin-icons/vite';
4
4
  import path from 'path';
5
5
  import { FileSystemIconLoader } from 'unplugin-icons/loaders';
6
6
  import ElementPlus from 'unplugin-element-plus/vite';
7
+ import dts from 'vite-plugin-dts';
7
8
 
8
9
  export default defineConfig(({ mode }) => {
9
10
  const isLibraryMode = mode === 'library';
@@ -73,6 +74,9 @@ export default defineConfig(({ mode }) => {
73
74
  },
74
75
  },
75
76
  }) as any,
77
+ dts({
78
+ include: ['./src/components/*.vue', './src/index.ts']
79
+ }),
76
80
  Icons({
77
81
  compiler: 'vue3',
78
82
  customCollections: {