@db-ux/v-core-components 2.0.0-0-custom-select-16b8cce → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/accordion/accordion.vue.d.ts +33 -8
- package/dist/components/accordion/model.d.ts +2 -2
- package/dist/components/accordion-item/accordion-item.vue.d.ts +40 -8
- package/dist/components/accordion-item/model.d.ts +5 -5
- package/dist/components/badge/badge.vue.d.ts +30 -8
- package/dist/components/badge/model.d.ts +2 -2
- package/dist/components/brand/brand.vue.d.ts +27 -6
- package/dist/components/button/button.vue.d.ts +54 -15
- package/dist/components/button/model.d.ts +11 -7
- package/dist/components/card/card.vue.d.ts +30 -9
- package/dist/components/checkbox/checkbox.vue.d.ts +83 -20
- package/dist/components/checkbox/model.d.ts +3 -3
- package/dist/components/custom-select/custom-select.vue.d.ts +221 -22
- package/dist/components/custom-select/model.d.ts +49 -29
- package/dist/components/custom-select-dropdown/custom-select-dropdown.vue.d.ts +20 -5
- package/dist/components/custom-select-form-field/custom-select-form-field.vue.d.ts +18 -4
- package/dist/components/custom-select-list/custom-select-list.vue.d.ts +20 -4
- package/dist/components/custom-select-list-item/custom-select-list-item.vue.d.ts +53 -12
- package/dist/components/divider/divider.vue.d.ts +3 -3
- package/dist/components/drawer/drawer.vue.d.ts +47 -13
- package/dist/components/drawer/model.d.ts +2 -2
- package/dist/components/header/header.vue.d.ts +57 -13
- package/dist/components/header/model.d.ts +2 -2
- package/dist/components/icon/icon.vue.d.ts +25 -7
- package/dist/components/infotext/infotext.vue.d.ts +28 -8
- package/dist/components/input/input.vue.d.ts +131 -33
- package/dist/components/input/model.d.ts +3 -3
- package/dist/components/link/link.vue.d.ts +48 -14
- package/dist/components/navigation/navigation.vue.d.ts +21 -4
- package/dist/components/navigation-item/model.d.ts +6 -3
- package/dist/components/navigation-item/navigation-item.vue.d.ts +76 -12
- package/dist/components/notification/model.d.ts +3 -3
- package/dist/components/notification/notification.vue.d.ts +58 -17
- package/dist/components/page/model.d.ts +1 -1
- package/dist/components/page/page.vue.d.ts +32 -9
- package/dist/components/popover/model.d.ts +1 -1
- package/dist/components/popover/popover.vue.d.ts +40 -13
- package/dist/components/radio/radio.vue.d.ts +56 -17
- package/dist/components/section/section.vue.d.ts +24 -6
- package/dist/components/select/model.d.ts +2 -2
- package/dist/components/select/select.vue.d.ts +106 -24
- package/dist/components/stack/model.d.ts +1 -1
- package/dist/components/stack/stack.vue.d.ts +31 -10
- package/dist/components/switch/model.d.ts +2 -2
- package/dist/components/switch/switch.vue.d.ts +67 -21
- package/dist/components/tab-item/model.d.ts +6 -6
- package/dist/components/tab-item/tab-item.vue.d.ts +52 -14
- package/dist/components/tab-list/tab-list.vue.d.ts +20 -4
- package/dist/components/tab-panel/tab-panel.vue.d.ts +20 -4
- package/dist/components/tabs/model.d.ts +11 -3
- package/dist/components/tabs/tabs.vue.d.ts +60 -15
- package/dist/components/tag/model.d.ts +9 -5
- package/dist/components/tag/tag.vue.d.ts +49 -15
- package/dist/components/textarea/model.d.ts +4 -4
- package/dist/components/textarea/textarea.vue.d.ts +24 -23
- package/dist/components/tooltip/model.d.ts +1 -1
- package/dist/components/tooltip/tooltip.vue.d.ts +37 -11
- package/dist/db-ux.es.js +1969 -1812
- package/dist/db-ux.umd.js +1 -1
- package/dist/shared/model.d.ts +56 -31
- package/dist/utils/document-click-listener.d.ts +8 -0
- package/dist/utils/index.d.ts +5 -28
- package/package.json +8 -7
package/dist/shared/model.d.ts
CHANGED
|
@@ -23,7 +23,7 @@ export type GlobalProps = {
|
|
|
23
23
|
/**
|
|
24
24
|
* Before using please check for the [accessibility concerns](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/autofocus#accessibility_concerns)
|
|
25
25
|
*/
|
|
26
|
-
autofocus?: boolean;
|
|
26
|
+
autofocus?: boolean | string;
|
|
27
27
|
};
|
|
28
28
|
export type GlobalState = {
|
|
29
29
|
_id?: string;
|
|
@@ -47,7 +47,7 @@ export type ShowIconProps = {
|
|
|
47
47
|
* Enables or disables the visibility of the icon. The default value depends on the component.
|
|
48
48
|
* For many components this property is optional to reflect Figma properties.
|
|
49
49
|
*/
|
|
50
|
-
showIcon?: boolean;
|
|
50
|
+
showIcon?: boolean | string;
|
|
51
51
|
};
|
|
52
52
|
export type IconAfterProps = {
|
|
53
53
|
/**
|
|
@@ -90,7 +90,7 @@ export type GapProps = {
|
|
|
90
90
|
/**
|
|
91
91
|
* If the absolute element should have a gap between the parent element.
|
|
92
92
|
*/
|
|
93
|
-
gap?: boolean;
|
|
93
|
+
gap?: boolean | string;
|
|
94
94
|
};
|
|
95
95
|
export declare const GapSpacingList: readonly ["none", "3x-large", "2x-large", "x-large", "large", "medium", "small", "x-small", "2x-small", "3x-small"];
|
|
96
96
|
export type GapSpacingType = (typeof GapSpacingList)[number];
|
|
@@ -104,7 +104,7 @@ export type OverflowProps = {
|
|
|
104
104
|
/**
|
|
105
105
|
* The overflow attribute sets a max-width and longer text will be dotted.
|
|
106
106
|
*/
|
|
107
|
-
overflow?: boolean;
|
|
107
|
+
overflow?: boolean | string;
|
|
108
108
|
};
|
|
109
109
|
export declare const OrientationList: readonly ["horizontal", "vertical"];
|
|
110
110
|
export type OrientationType = (typeof OrientationList)[number];
|
|
@@ -142,7 +142,7 @@ export type PopoverProps = {
|
|
|
142
142
|
/**
|
|
143
143
|
* Disable animation
|
|
144
144
|
*/
|
|
145
|
-
animation?: boolean;
|
|
145
|
+
animation?: boolean | string;
|
|
146
146
|
/**
|
|
147
147
|
* Use fixed with for default max-width
|
|
148
148
|
*/
|
|
@@ -151,6 +151,16 @@ export type PopoverProps = {
|
|
|
151
151
|
export type PopoverState = {
|
|
152
152
|
handleAutoPlacement: () => void;
|
|
153
153
|
};
|
|
154
|
+
export type NameProps = {
|
|
155
|
+
/**
|
|
156
|
+
* The name attribute gives the name of the element to group it.
|
|
157
|
+
*/
|
|
158
|
+
name?: string;
|
|
159
|
+
};
|
|
160
|
+
export type NameState = {
|
|
161
|
+
_name?: string;
|
|
162
|
+
handleNameAttribute: () => void;
|
|
163
|
+
};
|
|
154
164
|
export type ContentSlotProps = {
|
|
155
165
|
/**
|
|
156
166
|
* Default slot which is used to pass in additional content.
|
|
@@ -173,27 +183,19 @@ export type EmphasisProps = {
|
|
|
173
183
|
*/
|
|
174
184
|
emphasis?: EmphasisType;
|
|
175
185
|
};
|
|
176
|
-
export declare const TagEmphasisList: readonly ["weak", "strong", "origin"];
|
|
177
|
-
export type TagEmphasisType = (typeof TagEmphasisList)[number];
|
|
178
|
-
export type TagEmphasisProps = {
|
|
179
|
-
/**
|
|
180
|
-
* The emphasis attribute divides in between a weak, strong or origin appearance.
|
|
181
|
-
*/
|
|
182
|
-
emphasis?: TagEmphasisType;
|
|
183
|
-
};
|
|
184
186
|
export declare const ValidationList: readonly ["invalid", "valid", "no-validation"];
|
|
185
187
|
export type ValidationType = (typeof ValidationList)[number];
|
|
186
188
|
export type RequiredProps = {
|
|
187
189
|
/**
|
|
188
190
|
* When the required attribute specified, the user will be required to fill the form element before submitting the form.
|
|
189
191
|
*/
|
|
190
|
-
required?: boolean;
|
|
192
|
+
required?: boolean | string;
|
|
191
193
|
};
|
|
192
194
|
export type ShowLabelProps = {
|
|
193
195
|
/**
|
|
194
196
|
* Enables/disables the visibility of the label
|
|
195
197
|
*/
|
|
196
|
-
showLabel?: boolean;
|
|
198
|
+
showLabel?: boolean | string;
|
|
197
199
|
};
|
|
198
200
|
export type ValueProps = {
|
|
199
201
|
/**
|
|
@@ -205,7 +207,7 @@ export type BaseFormProps = {
|
|
|
205
207
|
/**
|
|
206
208
|
* The disabled attribute can be set to keep a user from clicking on the form element.
|
|
207
209
|
*/
|
|
208
|
-
disabled?: boolean;
|
|
210
|
+
disabled?: boolean | string;
|
|
209
211
|
/**
|
|
210
212
|
* The label attribute specifies the caption of the form element.
|
|
211
213
|
*/
|
|
@@ -234,15 +236,27 @@ export type FormTextProps = {
|
|
|
234
236
|
/**
|
|
235
237
|
* Maximum length (number of characters) of value
|
|
236
238
|
*/
|
|
237
|
-
maxLength?: number;
|
|
239
|
+
maxLength?: number | string;
|
|
238
240
|
/**
|
|
239
241
|
* Minimum length (number of characters) of value
|
|
240
242
|
*/
|
|
241
|
-
minLength?: number;
|
|
243
|
+
minLength?: number | string;
|
|
244
|
+
/**
|
|
245
|
+
* Maximum length (number of characters) of value
|
|
246
|
+
*/
|
|
247
|
+
maxlength?: number | string;
|
|
248
|
+
/**
|
|
249
|
+
* Minimum length (number of characters) of value
|
|
250
|
+
*/
|
|
251
|
+
minlength?: number | string;
|
|
252
|
+
/**
|
|
253
|
+
* The disabled attribute can be set to keep a user from edit on the form element
|
|
254
|
+
*/
|
|
255
|
+
readOnly?: boolean | string;
|
|
242
256
|
/**
|
|
243
257
|
* The disabled attribute can be set to keep a user from edit on the form element
|
|
244
258
|
*/
|
|
245
|
-
|
|
259
|
+
readonly?: boolean | string;
|
|
246
260
|
};
|
|
247
261
|
export type FormSizeProps = {
|
|
248
262
|
/**
|
|
@@ -254,7 +268,7 @@ export type FormCheckProps = {
|
|
|
254
268
|
/**
|
|
255
269
|
* Define the radio or checkbox elements checked state
|
|
256
270
|
*/
|
|
257
|
-
checked?: boolean;
|
|
271
|
+
checked?: boolean | string;
|
|
258
272
|
};
|
|
259
273
|
export declare const LabelVariantList: readonly ["above", "floating"];
|
|
260
274
|
export type LabelVariantType = (typeof LabelVariantList)[number];
|
|
@@ -292,7 +306,12 @@ export type FormMessageProps = {
|
|
|
292
306
|
/**
|
|
293
307
|
* Enables or disables the visibility of the message.
|
|
294
308
|
*/
|
|
295
|
-
showMessage?: boolean;
|
|
309
|
+
showMessage?: boolean | string;
|
|
310
|
+
};
|
|
311
|
+
export type FromValidState = {
|
|
312
|
+
hasValidState: () => boolean;
|
|
313
|
+
handleValidation: () => void;
|
|
314
|
+
_invalidMessage?: string;
|
|
296
315
|
};
|
|
297
316
|
export type FormState = {
|
|
298
317
|
_messageId?: string;
|
|
@@ -300,6 +319,7 @@ export type FormState = {
|
|
|
300
319
|
_invalidMessageId?: string;
|
|
301
320
|
_descByIds?: string;
|
|
302
321
|
_value?: string;
|
|
322
|
+
_invalidMessage?: string;
|
|
303
323
|
/**
|
|
304
324
|
* https://www.davidmacd.com/blog/test-aria-describedby-errormessage-aria-live.html
|
|
305
325
|
* Currently VoiceOver isn't supporting changes from aria-describedby.
|
|
@@ -324,7 +344,7 @@ export type LinkProps = {
|
|
|
324
344
|
/**
|
|
325
345
|
* Disables the link.
|
|
326
346
|
*/
|
|
327
|
-
disabled?: boolean;
|
|
347
|
+
disabled?: boolean | string;
|
|
328
348
|
/**
|
|
329
349
|
* The [URL that the hyperlink points to](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#href).
|
|
330
350
|
*/
|
|
@@ -356,7 +376,7 @@ export type LinkProps = {
|
|
|
356
376
|
/**
|
|
357
377
|
* Sets aria role based on [`aria-selected`](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-selected).
|
|
358
378
|
*/
|
|
359
|
-
selected?: boolean;
|
|
379
|
+
selected?: boolean | string;
|
|
360
380
|
};
|
|
361
381
|
export type TextProps = {
|
|
362
382
|
/**
|
|
@@ -372,19 +392,24 @@ export type ClickEventProps<T> = {
|
|
|
372
392
|
onClick?: (event: ClickEvent<T>) => void;
|
|
373
393
|
};
|
|
374
394
|
export type ClickEventState<T> = {
|
|
375
|
-
handleClick: (event: ClickEvent<T>) => void;
|
|
395
|
+
handleClick: (event: ClickEvent<T> | any) => void;
|
|
376
396
|
};
|
|
377
397
|
export type ToggleEventProps = {
|
|
378
|
-
|
|
398
|
+
toggle?: (open: boolean | any) => void;
|
|
399
|
+
onToggle?: (open: boolean | any) => void;
|
|
379
400
|
};
|
|
380
401
|
export type ToggleEventState<T> = {
|
|
381
|
-
|
|
402
|
+
handleToggle: (event?: ClickEvent<T> | any) => void;
|
|
382
403
|
};
|
|
383
404
|
export type CloseEventProps = {
|
|
384
405
|
/**
|
|
385
406
|
* Function to handle button click (close).
|
|
386
407
|
*/
|
|
387
408
|
onClose?: (event?: any) => void;
|
|
409
|
+
/**
|
|
410
|
+
* Function to handle button click (close).
|
|
411
|
+
*/
|
|
412
|
+
close?: (event?: any) => void;
|
|
388
413
|
};
|
|
389
414
|
export type CloseEventState = {
|
|
390
415
|
handleClose: (event: any) => void;
|
|
@@ -401,7 +426,7 @@ export type ActiveProps = {
|
|
|
401
426
|
/**
|
|
402
427
|
* If the tab is checked/active.
|
|
403
428
|
*/
|
|
404
|
-
active?: boolean;
|
|
429
|
+
active?: boolean | string;
|
|
405
430
|
};
|
|
406
431
|
export type InputEvent<T> = Event;
|
|
407
432
|
export type InputEventProps<T> = {
|
|
@@ -409,7 +434,7 @@ export type InputEventProps<T> = {
|
|
|
409
434
|
onInput?: (event: InputEvent<T>) => void;
|
|
410
435
|
};
|
|
411
436
|
export type InputEventState<T> = {
|
|
412
|
-
handleInput: (event: InputEvent<T>) => void;
|
|
437
|
+
handleInput: (event: InputEvent<T> | any) => void;
|
|
413
438
|
};
|
|
414
439
|
export type ChangeEvent<T> = Event;
|
|
415
440
|
export type ChangeEventProps<T> = {
|
|
@@ -417,7 +442,7 @@ export type ChangeEventProps<T> = {
|
|
|
417
442
|
onChange?: (event: ChangeEvent<T>) => void;
|
|
418
443
|
};
|
|
419
444
|
export type ChangeEventState<T> = {
|
|
420
|
-
handleChange: (event: ChangeEvent<T>) => void;
|
|
445
|
+
handleChange: (event: ChangeEvent<T> | any) => void;
|
|
421
446
|
};
|
|
422
447
|
export type InteractionEvent<T> = FocusEvent;
|
|
423
448
|
export type FocusEventProps<T> = {
|
|
@@ -427,8 +452,8 @@ export type FocusEventProps<T> = {
|
|
|
427
452
|
onFocus?: (event: InteractionEvent<T>) => void;
|
|
428
453
|
};
|
|
429
454
|
export type FocusEventState<T> = {
|
|
430
|
-
handleBlur: (event: InteractionEvent<T>) => void;
|
|
431
|
-
handleFocus: (event: InteractionEvent<T>) => void;
|
|
455
|
+
handleBlur: (event: InteractionEvent<T> | any) => void;
|
|
456
|
+
handleFocus: (event: InteractionEvent<T> | any) => void;
|
|
432
457
|
};
|
|
433
458
|
export type InnerCloseButtonProps = {
|
|
434
459
|
/**
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -28,32 +28,9 @@ export declare const delay: (fn: () => void, ms: number) => Promise<unknown>;
|
|
|
28
28
|
* if it is used in a framework like angular e.g.: [disabled]="myDisabledProp"
|
|
29
29
|
* @param originBool Some boolean to convert to string
|
|
30
30
|
*/
|
|
31
|
-
export declare const getBooleanAsString: (originBool?: boolean) => any;
|
|
32
|
-
export declare const
|
|
33
|
-
export declare const
|
|
31
|
+
export declare const getBooleanAsString: (originBool?: boolean | string) => any;
|
|
32
|
+
export declare const getBoolean: (originBool?: boolean | string, propertyName?: string) => boolean | undefined;
|
|
33
|
+
export declare const getNumber: (originNumber?: number | string, alternativeNumber?: number | string) => number | undefined;
|
|
34
|
+
export declare const getHideProp: (show?: boolean | string) => any;
|
|
35
|
+
export declare const stringPropVisible: (givenString?: string, showString?: boolean | string) => boolean;
|
|
34
36
|
export declare const getSearchInput: (element: HTMLElement) => HTMLInputElement | null;
|
|
35
|
-
declare const _default: {
|
|
36
|
-
getSearchInput: (element: HTMLElement) => HTMLInputElement | null;
|
|
37
|
-
cls: (...args: ClassNameArg[]) => string;
|
|
38
|
-
addAttributeToChildren: (element: Element, attribute: {
|
|
39
|
-
key: string;
|
|
40
|
-
value: string;
|
|
41
|
-
}) => void;
|
|
42
|
-
uuid: () => string;
|
|
43
|
-
visibleInVX: (el: Element) => boolean;
|
|
44
|
-
visibleInVY: (el: Element) => boolean;
|
|
45
|
-
isInView: (el: Element) => {
|
|
46
|
-
outTop: boolean;
|
|
47
|
-
outBottom: boolean;
|
|
48
|
-
outLeft: boolean;
|
|
49
|
-
outRight: boolean;
|
|
50
|
-
};
|
|
51
|
-
handleDataOutside: (el: Element) => DBDataOutsidePair;
|
|
52
|
-
isArrayOfStrings: (value: unknown) => value is string[];
|
|
53
|
-
hasVoiceOver: () => boolean;
|
|
54
|
-
delay: (fn: () => void, ms: number) => Promise<unknown>;
|
|
55
|
-
getBooleanAsString: (originBool?: boolean | undefined) => any;
|
|
56
|
-
getHideProp: (show?: boolean | undefined) => any;
|
|
57
|
-
stringPropVisible: (givenString?: string | undefined, showString?: boolean | undefined) => string | boolean | undefined;
|
|
58
|
-
};
|
|
59
|
-
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@db-ux/v-core-components",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Vue components for @db-ux/core-components",
|
|
6
6
|
"repository": {
|
|
@@ -33,15 +33,16 @@
|
|
|
33
33
|
"mv:package.json": "cpr package.json ../../build-outputs/vue/package.json -o",
|
|
34
34
|
"mv:readme": "cpr README.md ../../build-outputs/vue/README.md -o",
|
|
35
35
|
"postbuild": "npm-run-all -p mv:*",
|
|
36
|
-
"test:components": "playwright test -c playwright.config.ts"
|
|
36
|
+
"test:components": "playwright test -c playwright.config.ts",
|
|
37
|
+
"test:components:ui": "playwright test -c playwright.config.ts --ui"
|
|
37
38
|
},
|
|
38
39
|
"devDependencies": {
|
|
39
|
-
"@playwright/experimental-ct-vue": "1.
|
|
40
|
-
"@vitejs/plugin-vue": "^5.2.
|
|
40
|
+
"@playwright/experimental-ct-vue": "1.51.1",
|
|
41
|
+
"@vitejs/plugin-vue": "^5.2.3",
|
|
41
42
|
"replace-in-file": "^8.3.0",
|
|
42
43
|
"tsx": "^4.19.3",
|
|
43
44
|
"typescript": "^5.4.5",
|
|
44
|
-
"vite": "^6.2.
|
|
45
|
+
"vite": "^6.2.6",
|
|
45
46
|
"vue": "^3.5.13",
|
|
46
47
|
"vue-tsc": "^2.2.8"
|
|
47
48
|
},
|
|
@@ -52,7 +53,7 @@
|
|
|
52
53
|
"sideEffects": false,
|
|
53
54
|
"source": "src/index.ts",
|
|
54
55
|
"dependencies": {
|
|
55
|
-
"@db-ux/core-components": "2.0.
|
|
56
|
-
"@db-ux/core-foundations": "2.0.
|
|
56
|
+
"@db-ux/core-components": "2.0.1",
|
|
57
|
+
"@db-ux/core-foundations": "2.0.1"
|
|
57
58
|
}
|
|
58
59
|
}
|