@db-ux/ngx-core-components 3.1.20 → 4.0.1-0-540218c
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/CHANGELOG.md +16 -0
- package/fesm2022/db-ux-ngx-core-components.mjs +911 -767
- package/fesm2022/db-ux-ngx-core-components.mjs.map +1 -1
- package/index.d.ts +3241 -83
- package/package.json +4 -4
- package/components/accordion/accordion.d.ts +0 -30
- package/components/accordion/index.d.ts +0 -1
- package/components/accordion/model.d.ts +0 -41
- package/components/accordion-item/accordion-item.d.ts +0 -33
- package/components/accordion-item/index.d.ts +0 -1
- package/components/accordion-item/model.d.ts +0 -24
- package/components/badge/badge.d.ts +0 -27
- package/components/badge/index.d.ts +0 -1
- package/components/badge/model.d.ts +0 -16
- package/components/brand/brand.d.ts +0 -25
- package/components/brand/index.d.ts +0 -1
- package/components/brand/model.d.ts +0 -10
- package/components/button/button.d.ts +0 -39
- package/components/button/index.d.ts +0 -1
- package/components/button/model.d.ts +0 -40
- package/components/card/card.d.ts +0 -25
- package/components/card/index.d.ts +0 -1
- package/components/card/model.d.ts +0 -18
- package/components/checkbox/checkbox.d.ts +0 -64
- package/components/checkbox/index.d.ts +0 -1
- package/components/checkbox/model.d.ts +0 -10
- package/components/custom-select/custom-select.d.ts +0 -150
- package/components/custom-select/index.d.ts +0 -1
- package/components/custom-select/model.d.ts +0 -220
- package/components/custom-select-dropdown/custom-select-dropdown.d.ts +0 -20
- package/components/custom-select-dropdown/index.d.ts +0 -1
- package/components/custom-select-dropdown/model.d.ts +0 -15
- package/components/custom-select-form-field/custom-select-form-field.d.ts +0 -19
- package/components/custom-select-form-field/index.d.ts +0 -1
- package/components/custom-select-form-field/model.d.ts +0 -5
- package/components/custom-select-list/custom-select-list.d.ts +0 -21
- package/components/custom-select-list/index.d.ts +0 -1
- package/components/custom-select-list/model.d.ts +0 -8
- package/components/custom-select-list-item/custom-select-list-item.d.ts +0 -45
- package/components/custom-select-list-item/index.d.ts +0 -1
- package/components/custom-select-list-item/model.d.ts +0 -29
- package/components/divider/divider.d.ts +0 -23
- package/components/divider/index.d.ts +0 -1
- package/components/divider/model.d.ts +0 -18
- package/components/drawer/drawer.d.ts +0 -37
- package/components/drawer/index.d.ts +0 -1
- package/components/drawer/model.d.ts +0 -50
- package/components/header/MetaNavigation.directive.d.ts +0 -5
- package/components/header/Navigation.directive.d.ts +0 -5
- package/components/header/SecondaryAction.directive.d.ts +0 -5
- package/components/header/header.d.ts +0 -33
- package/components/header/index.d.ts +0 -1
- package/components/header/model.d.ts +0 -44
- package/components/icon/icon.d.ts +0 -23
- package/components/icon/index.d.ts +0 -1
- package/components/icon/model.d.ts +0 -10
- package/components/infotext/index.d.ts +0 -1
- package/components/infotext/infotext.d.ts +0 -25
- package/components/infotext/model.d.ts +0 -5
- package/components/input/index.d.ts +0 -1
- package/components/input/input.d.ts +0 -104
- package/components/input/model.d.ts +0 -64
- package/components/link/index.d.ts +0 -1
- package/components/link/link.d.ts +0 -32
- package/components/link/model.d.ts +0 -24
- package/components/navigation/index.d.ts +0 -1
- package/components/navigation/model.d.ts +0 -5
- package/components/navigation/navigation.d.ts +0 -20
- package/components/navigation-item/NavigationContent.directive.d.ts +0 -5
- package/components/navigation-item/index.d.ts +0 -1
- package/components/navigation-item/model.d.ts +0 -34
- package/components/navigation-item/navigation-item.d.ts +0 -46
- package/components/notification/index.d.ts +0 -1
- package/components/notification/model.d.ts +0 -57
- package/components/notification/notification.d.ts +0 -40
- package/components/page/index.d.ts +0 -1
- package/components/page/model.d.ts +0 -36
- package/components/page/page.d.ts +0 -27
- package/components/popover/index.d.ts +0 -1
- package/components/popover/model.d.ts +0 -17
- package/components/popover/popover.d.ts +0 -37
- package/components/radio/index.d.ts +0 -1
- package/components/radio/model.d.ts +0 -5
- package/components/radio/radio.d.ts +0 -47
- package/components/section/index.d.ts +0 -1
- package/components/section/model.d.ts +0 -5
- package/components/section/section.d.ts +0 -22
- package/components/select/index.d.ts +0 -1
- package/components/select/model.d.ts +0 -44
- package/components/select/select.d.ts +0 -83
- package/components/stack/index.d.ts +0 -1
- package/components/stack/model.d.ts +0 -34
- package/components/stack/stack.d.ts +0 -26
- package/components/switch/index.d.ts +0 -1
- package/components/switch/model.d.ts +0 -10
- package/components/switch/switch.d.ts +0 -51
- package/components/tab-item/index.d.ts +0 -1
- package/components/tab-item/model.d.ts +0 -24
- package/components/tab-item/tab-item.d.ts +0 -46
- package/components/tab-list/index.d.ts +0 -1
- package/components/tab-list/model.d.ts +0 -5
- package/components/tab-list/tab-list.d.ts +0 -20
- package/components/tab-panel/index.d.ts +0 -1
- package/components/tab-panel/model.d.ts +0 -10
- package/components/tab-panel/tab-panel.d.ts +0 -20
- package/components/tabs/index.d.ts +0 -1
- package/components/tabs/model.d.ts +0 -67
- package/components/tabs/tabs.d.ts +0 -47
- package/components/tag/index.d.ts +0 -1
- package/components/tag/model.d.ts +0 -47
- package/components/tag/tag.d.ts +0 -34
- package/components/textarea/index.d.ts +0 -1
- package/components/textarea/model.d.ts +0 -34
- package/components/textarea/textarea.d.ts +0 -84
- package/components/tooltip/index.d.ts +0 -1
- package/components/tooltip/model.d.ts +0 -20
- package/components/tooltip/tooltip.d.ts +0 -39
- package/shared/constants.d.ts +0 -88
- package/shared/model.d.ts +0 -522
- package/utils/document-click-listener.d.ts +0 -8
- package/utils/document-scroll-listener.d.ts +0 -9
- package/utils/floating-components.d.ts +0 -20
- package/utils/form-components.d.ts +0 -2
- package/utils/index.d.ts +0 -40
- package/utils/navigation.d.ts +0 -32
package/index.d.ts
CHANGED
|
@@ -1,83 +1,3241 @@
|
|
|
1
|
-
|
|
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
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { AfterViewInit, InputSignal, ElementRef, ModelSignal, Renderer2, OnDestroy } from '@angular/core';
|
|
3
|
+
import { IconTypes } from '@db-ux/core-foundations';
|
|
4
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
5
|
+
|
|
6
|
+
type GlobalProps = {
|
|
7
|
+
/**
|
|
8
|
+
* default slot
|
|
9
|
+
*/
|
|
10
|
+
children?: any;
|
|
11
|
+
/**
|
|
12
|
+
* React specific for adding className to the component.
|
|
13
|
+
*/
|
|
14
|
+
className?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Workaround for TypeScript using class for all components.
|
|
17
|
+
*/
|
|
18
|
+
class?: string | any;
|
|
19
|
+
/**
|
|
20
|
+
* [ID](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id) of the component, generated automatically for some components as a fallback if unset.
|
|
21
|
+
*/
|
|
22
|
+
id?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Before using please check for the [accessibility concerns](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/autofocus#accessibility_concerns)
|
|
25
|
+
*/
|
|
26
|
+
autofocus?: boolean | string;
|
|
27
|
+
};
|
|
28
|
+
type GlobalState = {
|
|
29
|
+
_id?: string;
|
|
30
|
+
};
|
|
31
|
+
declare const SemanticList: readonly ["adaptive", "neutral", "critical", "informational", "warning", "successful"];
|
|
32
|
+
type SemanticType = (typeof SemanticList)[number];
|
|
33
|
+
type SemanticProps = {
|
|
34
|
+
/**
|
|
35
|
+
* The semantic defines the default variants for most components.
|
|
36
|
+
*/
|
|
37
|
+
semantic?: SemanticType;
|
|
38
|
+
};
|
|
39
|
+
type IconProps = {
|
|
40
|
+
/**
|
|
41
|
+
* Define an icon by its identifier (like e.g. _user_, compare to [Icons](https://design-system.deutschebahn.com/core-web/review/main/foundations/icons/overview)) to get displayed in front of the elements content.
|
|
42
|
+
*/
|
|
43
|
+
icon?: IconTypes;
|
|
44
|
+
};
|
|
45
|
+
type ShowIconProps = {
|
|
46
|
+
/**
|
|
47
|
+
* Enables or disables the visibility of the icon. The default value depends on the component.
|
|
48
|
+
* For many components this property is optional to reflect Figma properties.
|
|
49
|
+
*/
|
|
50
|
+
showIcon?: boolean | string;
|
|
51
|
+
};
|
|
52
|
+
type ShowIconLeadingProps = {
|
|
53
|
+
/**
|
|
54
|
+
* Enables or disables the visibility of the leading icon.
|
|
55
|
+
* For many components this property is optional to reflect Figma properties.
|
|
56
|
+
*/
|
|
57
|
+
showIconLeading?: boolean | string;
|
|
58
|
+
};
|
|
59
|
+
type ShowIconTrailingProps = {
|
|
60
|
+
/**
|
|
61
|
+
* Enables or disables the visibility of the trailing icon.
|
|
62
|
+
* For many components this property is optional to reflect Figma properties.
|
|
63
|
+
*/
|
|
64
|
+
showIconTrailing?: boolean | string;
|
|
65
|
+
};
|
|
66
|
+
type IconLeadingProps = {
|
|
67
|
+
/**
|
|
68
|
+
* Define an icon by its identifier (like e.g. _user_, compare to [Icons](https://design-system.deutschebahn.com/core-web/review/main/foundations/icons/overview)) to get displayed in front of the elements content.
|
|
69
|
+
*/
|
|
70
|
+
iconLeading?: IconTypes;
|
|
71
|
+
};
|
|
72
|
+
type IconTrailingProps = {
|
|
73
|
+
/**
|
|
74
|
+
* Define an icon by its identifier (like e.g. _user_, compare to [Icons](https://design-system.deutschebahn.com/core-web/review/main/foundations/icons/overview)) to get displayed in front of the elements content.
|
|
75
|
+
*/
|
|
76
|
+
iconTrailing?: IconTypes;
|
|
77
|
+
};
|
|
78
|
+
declare const SpacingList: readonly ["medium", "small", "large", "none"];
|
|
79
|
+
type SpacingType = (typeof SpacingList)[number];
|
|
80
|
+
type SpacingProps = {
|
|
81
|
+
/**
|
|
82
|
+
* The spacing attribute changes the padding of the component.
|
|
83
|
+
*/
|
|
84
|
+
spacing?: SpacingType | string;
|
|
85
|
+
};
|
|
86
|
+
declare const MarginList: readonly ["medium", "small", "large", "none"];
|
|
87
|
+
type MarginType = (typeof MarginList)[number];
|
|
88
|
+
type MarginProps = {
|
|
89
|
+
/**
|
|
90
|
+
* The margin attribute changes the margin of the component.
|
|
91
|
+
*/
|
|
92
|
+
margin?: MarginType;
|
|
93
|
+
};
|
|
94
|
+
declare const PlacementHorizontalList: readonly ["left", "right", "left-start", "left-end", "right-start", "right-end"];
|
|
95
|
+
type PlacementHorizontalType = (typeof PlacementHorizontalList)[number];
|
|
96
|
+
declare const PlacementVerticalList: readonly ["top", "bottom", "top-start", "top-end", "bottom-start", "bottom-end"];
|
|
97
|
+
type PlacementVerticalType = (typeof PlacementVerticalList)[number];
|
|
98
|
+
declare const PlacementList: readonly ["left", "right", "left-start", "left-end", "right-start", "right-end", "top", "bottom", "top-start", "top-end", "bottom-start", "bottom-end"];
|
|
99
|
+
type PlacementType = (typeof PlacementList)[number];
|
|
100
|
+
type PlacementProps = {
|
|
101
|
+
/**
|
|
102
|
+
* The `placement` attributes values change the position to absolute and adds a transform based on the placement.
|
|
103
|
+
*/
|
|
104
|
+
placement?: PlacementType;
|
|
105
|
+
};
|
|
106
|
+
type NavigationBehaviorState = {
|
|
107
|
+
handleNavigationItemClick: (event: any) => void;
|
|
108
|
+
};
|
|
109
|
+
type GapProps = {
|
|
110
|
+
/**
|
|
111
|
+
* If the absolute element should have a gap between the parent element.
|
|
112
|
+
*/
|
|
113
|
+
gap?: boolean | string;
|
|
114
|
+
};
|
|
115
|
+
declare const GapSpacingList: readonly ["none", "3x-large", "2x-large", "x-large", "large", "medium", "small", "x-small", "2x-small", "3x-small"];
|
|
116
|
+
type GapSpacingType = (typeof GapSpacingList)[number];
|
|
117
|
+
type GapSpacingProps = {
|
|
118
|
+
/**
|
|
119
|
+
* Set the gap/spacing between elements
|
|
120
|
+
*/
|
|
121
|
+
gap?: GapSpacingType;
|
|
122
|
+
};
|
|
123
|
+
type OverflowProps = {
|
|
124
|
+
/**
|
|
125
|
+
* The overflow attribute sets a max-width and longer text will be dotted.
|
|
126
|
+
*/
|
|
127
|
+
overflow?: boolean | string;
|
|
128
|
+
};
|
|
129
|
+
type WrapProps = {
|
|
130
|
+
/**
|
|
131
|
+
* Determines whether the text should wrap when its parent container is too small, preventing overflow.
|
|
132
|
+
*/
|
|
133
|
+
wrap?: boolean | string;
|
|
134
|
+
};
|
|
135
|
+
declare const OrientationList: readonly ["horizontal", "vertical"];
|
|
136
|
+
type OrientationType = (typeof OrientationList)[number];
|
|
137
|
+
type OrientationProps = {
|
|
138
|
+
/**
|
|
139
|
+
* Change the orientation. Defaults to horizontal.
|
|
140
|
+
*/
|
|
141
|
+
orientation?: OrientationType;
|
|
142
|
+
};
|
|
143
|
+
declare const WidthList: readonly ["full", "auto"];
|
|
144
|
+
type WidthType = (typeof WidthList)[number];
|
|
145
|
+
type WidthProps = {
|
|
146
|
+
/**
|
|
147
|
+
* Width of the component. Auto width based on children size, full width based on parent elements width.
|
|
148
|
+
*/
|
|
149
|
+
width?: WidthType | string;
|
|
150
|
+
};
|
|
151
|
+
declare const MaxWidthList: readonly ["full", "medium", "large", "small"];
|
|
152
|
+
type MaxWidthType = (typeof MaxWidthList)[number];
|
|
153
|
+
type ContainerWidthProps = {
|
|
154
|
+
/**
|
|
155
|
+
* Set max width for the component
|
|
156
|
+
*/
|
|
157
|
+
width?: MaxWidthType;
|
|
158
|
+
};
|
|
159
|
+
declare const PopoverDelayList: readonly ["none", "slow", "fast"];
|
|
160
|
+
type PopoverDelayType = (typeof PopoverDelayList)[number];
|
|
161
|
+
declare const PopoverWidthList: readonly ["auto", "fixed"];
|
|
162
|
+
type PopoverWidthType = (typeof PopoverWidthList)[number];
|
|
163
|
+
type PopoverProps = {
|
|
164
|
+
/**
|
|
165
|
+
* Add a delay before showing the tooltip
|
|
166
|
+
*/
|
|
167
|
+
delay?: PopoverDelayType;
|
|
168
|
+
/**
|
|
169
|
+
* Disable animation
|
|
170
|
+
*/
|
|
171
|
+
animation?: boolean | string;
|
|
172
|
+
/**
|
|
173
|
+
* Use fixed with for default max-width
|
|
174
|
+
*/
|
|
175
|
+
width?: PopoverWidthType;
|
|
176
|
+
};
|
|
177
|
+
type NameProps = {
|
|
178
|
+
/**
|
|
179
|
+
* The name attribute gives the name of the element to group it.
|
|
180
|
+
*/
|
|
181
|
+
name?: string;
|
|
182
|
+
};
|
|
183
|
+
type NameState = {
|
|
184
|
+
_name?: string;
|
|
185
|
+
handleNameAttribute: () => void;
|
|
186
|
+
};
|
|
187
|
+
type ContentSlotProps = {
|
|
188
|
+
/**
|
|
189
|
+
* Default slot which is used to pass in additional content.
|
|
190
|
+
*/
|
|
191
|
+
content?: any;
|
|
192
|
+
};
|
|
193
|
+
declare const SizeList: readonly ["small", "medium"];
|
|
194
|
+
type SizeType = (typeof SizeList)[number];
|
|
195
|
+
type SizeProps = {
|
|
196
|
+
/**
|
|
197
|
+
* The size attribute changes the font-size and other related sizes of the component.
|
|
198
|
+
*/
|
|
199
|
+
size?: SizeType;
|
|
200
|
+
};
|
|
201
|
+
declare const EmphasisList: readonly ["weak", "strong"];
|
|
202
|
+
type EmphasisType = (typeof EmphasisList)[number];
|
|
203
|
+
type EmphasisProps = {
|
|
204
|
+
/**
|
|
205
|
+
* The emphasis attribute divides in between a weak or strong importance.
|
|
206
|
+
*/
|
|
207
|
+
emphasis?: EmphasisType;
|
|
208
|
+
};
|
|
209
|
+
declare const ValidationList: readonly ["invalid", "valid", "no-validation"];
|
|
210
|
+
type ValidationType = (typeof ValidationList)[number];
|
|
211
|
+
/**
|
|
212
|
+
* Properties to control the required state and its visual annotation for input components.
|
|
213
|
+
*/
|
|
214
|
+
type RequiredProps = {
|
|
215
|
+
/**
|
|
216
|
+
* When the required attribute specified, the user will be required to fill the form element before submitting the form.
|
|
217
|
+
* The form element will be marked semantically as required and by default also visually with an asterisk '*' next to the label (unless the property `showRequiredAsterisk` is also set with the value `false`).
|
|
218
|
+
*/
|
|
219
|
+
required?: boolean | string;
|
|
220
|
+
/**
|
|
221
|
+
* This attribute allows to specify whether a form field which is marked as required will show a visual indicator (an asterisk '*').
|
|
222
|
+
* It allows to prevent adding the visual indicator but still keep the field semantically required by setting its value to `false`.
|
|
223
|
+
* By default, its value is `true`, so the asterisk is shown when `required` is set.
|
|
224
|
+
*/
|
|
225
|
+
showRequiredAsterisk?: boolean | string;
|
|
226
|
+
};
|
|
227
|
+
type ShowLabelProps = {
|
|
228
|
+
/**
|
|
229
|
+
* Enables/disables the visibility of the label
|
|
230
|
+
*/
|
|
231
|
+
showLabel?: boolean | string;
|
|
232
|
+
};
|
|
233
|
+
type ValueProps = {
|
|
234
|
+
/**
|
|
235
|
+
* The value property is to receive results from the native form element.
|
|
236
|
+
*/
|
|
237
|
+
value?: any;
|
|
238
|
+
};
|
|
239
|
+
type BaseFormProps = {
|
|
240
|
+
/**
|
|
241
|
+
* The disabled attribute can be set to keep a user from clicking on the form element.
|
|
242
|
+
*/
|
|
243
|
+
disabled?: boolean | string;
|
|
244
|
+
/**
|
|
245
|
+
* The label attribute specifies the caption of the form element.
|
|
246
|
+
*/
|
|
247
|
+
label?: string;
|
|
248
|
+
/**
|
|
249
|
+
* The name attribute gives the name of the form control, as used in form submission and in the form element's elements object.
|
|
250
|
+
*/
|
|
251
|
+
name?: string;
|
|
252
|
+
};
|
|
253
|
+
type CustomFormProps = {
|
|
254
|
+
/**
|
|
255
|
+
* Overwrites auto handling for aria-describedby.
|
|
256
|
+
*/
|
|
257
|
+
ariaDescribedBy?: string;
|
|
258
|
+
/**
|
|
259
|
+
* Associates the control with a form element
|
|
260
|
+
*/
|
|
261
|
+
form?: string;
|
|
262
|
+
/**
|
|
263
|
+
* Marks an input element as invalid (red) / valid (green) / no-validation (grey). Overwrites the :user-valid selector.
|
|
264
|
+
*/
|
|
265
|
+
validation?: ValidationType;
|
|
266
|
+
};
|
|
267
|
+
type FormProps = CustomFormProps & BaseFormProps & RequiredProps & ShowLabelProps & ValueProps;
|
|
268
|
+
declare const FieldSizingList: readonly ["fixed", "content"];
|
|
269
|
+
type FieldSizingType = (typeof FieldSizingList)[number];
|
|
270
|
+
type FormTextProps = {
|
|
271
|
+
/**
|
|
272
|
+
* Maximum length (number of characters) of value
|
|
273
|
+
*/
|
|
274
|
+
maxLength?: number | string;
|
|
275
|
+
/**
|
|
276
|
+
* Minimum length (number of characters) of value
|
|
277
|
+
*/
|
|
278
|
+
minLength?: number | string;
|
|
279
|
+
/**
|
|
280
|
+
* Maximum length (number of characters) of value
|
|
281
|
+
*/
|
|
282
|
+
maxlength?: number | string;
|
|
283
|
+
/**
|
|
284
|
+
* Minimum length (number of characters) of value
|
|
285
|
+
*/
|
|
286
|
+
minlength?: number | string;
|
|
287
|
+
/**
|
|
288
|
+
* The disabled attribute can be set to keep a user from edit on the form element
|
|
289
|
+
*/
|
|
290
|
+
readOnly?: boolean | string;
|
|
291
|
+
/**
|
|
292
|
+
* The disabled attribute can be set to keep a user from edit on the form element
|
|
293
|
+
*/
|
|
294
|
+
readonly?: boolean | string;
|
|
295
|
+
/**
|
|
296
|
+
* Adds shrinkwrap for input and textarea: https://developer.mozilla.org/en-US/docs/Web/CSS/field-sizing
|
|
297
|
+
* Note: Only supported in Chromium browsers so far
|
|
298
|
+
*/
|
|
299
|
+
fieldSizing?: FieldSizingType;
|
|
300
|
+
};
|
|
301
|
+
type FormSizeProps = {
|
|
302
|
+
/**
|
|
303
|
+
* Size of the control
|
|
304
|
+
*/
|
|
305
|
+
size?: number;
|
|
306
|
+
};
|
|
307
|
+
type FormCheckProps = {
|
|
308
|
+
/**
|
|
309
|
+
* Define the radio or checkbox elements checked state
|
|
310
|
+
*/
|
|
311
|
+
checked?: boolean | string;
|
|
312
|
+
};
|
|
313
|
+
declare const LabelVariantList: readonly ["above", "floating"];
|
|
314
|
+
type LabelVariantType = (typeof LabelVariantList)[number];
|
|
315
|
+
declare const LabelVariantHorizontalList: readonly ["leading", "trailing"];
|
|
316
|
+
type LabelVariantHorizontalType = (typeof LabelVariantHorizontalList)[number];
|
|
317
|
+
declare const AutoCompleteList: readonly ["off", "on", "name", "honorific-prefix", "given-name", "additional-name", "family-name", "honorific-suffix", "nickname", "email", "username", "new-password", "current-password", "one-time-code", "organization-title", "organization", "street-address", "shipping", "billing", "address-line1", "address-line2", "address-line3", "address-level4", "address-level3", "address-level2", "address-level1", "country", "country-name", "postal-code", "cc-name", "cc-given-name", "cc-additional-name", "cc-family-name", "cc-number", "cc-exp", "cc-exp-month", "cc-exp-year", "cc-csc", "cc-type", "transaction-currency", "transaction-amount", "language", "bday", "bday-day", "bday-month", "bday-year", "sex", "tel", "tel-country-code", "tel-national", "tel-area-code", "tel-local", "tel-extension", "impp", "url", "photo", "webauthn"];
|
|
318
|
+
type AutoCompleteType = (typeof AutoCompleteList)[number];
|
|
319
|
+
type FormMessageProps = {
|
|
320
|
+
/**
|
|
321
|
+
* Change the variant of the label to float or hidden
|
|
322
|
+
*/
|
|
323
|
+
variant?: LabelVariantType;
|
|
324
|
+
/**
|
|
325
|
+
* Text that appears in the form control when it has no value set
|
|
326
|
+
*/
|
|
327
|
+
placeholder?: string;
|
|
328
|
+
/**
|
|
329
|
+
* Optional helper message for form components
|
|
330
|
+
*/
|
|
331
|
+
message?: string;
|
|
332
|
+
/**
|
|
333
|
+
* Helper message for valid form components
|
|
334
|
+
*/
|
|
335
|
+
validMessage?: string;
|
|
336
|
+
/**
|
|
337
|
+
* Helper message for invalid form components
|
|
338
|
+
*/
|
|
339
|
+
invalidMessage?: string;
|
|
340
|
+
/**
|
|
341
|
+
* Set/overwrite icon for helper message for form components
|
|
342
|
+
*/
|
|
343
|
+
messageIcon?: IconTypes;
|
|
344
|
+
/**
|
|
345
|
+
* See https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete
|
|
346
|
+
*/
|
|
347
|
+
autocomplete?: string | AutoCompleteType;
|
|
348
|
+
/**
|
|
349
|
+
* Enables or disables the visibility of the message.
|
|
350
|
+
*/
|
|
351
|
+
showMessage?: boolean | string;
|
|
352
|
+
};
|
|
353
|
+
type FromValidState = {
|
|
354
|
+
hasValidState: () => boolean;
|
|
355
|
+
handleValidation: () => void;
|
|
356
|
+
_invalidMessage?: string;
|
|
357
|
+
};
|
|
358
|
+
type FormState = {
|
|
359
|
+
_messageId?: string;
|
|
360
|
+
_validMessageId?: string;
|
|
361
|
+
_invalidMessageId?: string;
|
|
362
|
+
_descByIds?: string;
|
|
363
|
+
_value?: string;
|
|
364
|
+
_invalidMessage?: string;
|
|
365
|
+
/**
|
|
366
|
+
* https://www.davidmacd.com/blog/test-aria-describedby-errormessage-aria-live.html
|
|
367
|
+
* Currently VoiceOver isn't supporting changes from aria-describedby.
|
|
368
|
+
* This is an internal Fallback
|
|
369
|
+
*/
|
|
370
|
+
_voiceOverFallback?: string;
|
|
371
|
+
};
|
|
372
|
+
type InitializedState = {
|
|
373
|
+
initialized: boolean;
|
|
374
|
+
};
|
|
375
|
+
declare const LinkTargetList: readonly ["_self", "_blank", "_parent", "_top"];
|
|
376
|
+
type LinkTargetType = (typeof LinkTargetList)[number];
|
|
377
|
+
declare const LinkReferrerPolicyList: readonly ["no-referrer", "no-referrer-when-downgrade", "origin", "origin-when-cross-origin", "same-origin", "strict-origin", "strict-origin-when-cross-origin", "unsafe-url"];
|
|
378
|
+
type LinkReferrerPolicyType = (typeof LinkReferrerPolicyList)[number];
|
|
379
|
+
type LinkProps = {
|
|
380
|
+
/**
|
|
381
|
+
* Disables the link.
|
|
382
|
+
*/
|
|
383
|
+
disabled?: boolean | string;
|
|
384
|
+
/**
|
|
385
|
+
* The [URL that the hyperlink points to](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#href).
|
|
386
|
+
*/
|
|
387
|
+
href?: string;
|
|
388
|
+
/**
|
|
389
|
+
* Hints for the human [language of the linked page or document](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#hreflang).
|
|
390
|
+
*/
|
|
391
|
+
hreflang?: string;
|
|
392
|
+
/**
|
|
393
|
+
* Where to open the linked URL, as the name for a [browsing context](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#target).
|
|
394
|
+
*/
|
|
395
|
+
target?: LinkTargetType;
|
|
396
|
+
/**
|
|
397
|
+
* The relationship of the linked URL as space-separated link types.
|
|
398
|
+
*/
|
|
399
|
+
rel?: string;
|
|
400
|
+
/**
|
|
401
|
+
* Sets aria role based on [`aria-role`](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles).
|
|
402
|
+
*/
|
|
403
|
+
role?: string;
|
|
404
|
+
/**
|
|
405
|
+
* How much of the referrer to send when following the link.
|
|
406
|
+
*/
|
|
407
|
+
referrerpolicy?: LinkReferrerPolicyType;
|
|
408
|
+
};
|
|
409
|
+
type TextProps = {
|
|
410
|
+
/**
|
|
411
|
+
* Alternative for default slot/children.
|
|
412
|
+
*/
|
|
413
|
+
text?: string;
|
|
414
|
+
};
|
|
415
|
+
type GeneralEvent<T> = Event;
|
|
416
|
+
type GeneralKeyboardEvent<T> = KeyboardEvent;
|
|
417
|
+
type ClickEvent<T> = MouseEvent;
|
|
418
|
+
type ClickEventProps<T> = {
|
|
419
|
+
/**
|
|
420
|
+
* React specific onClick to pass to forward ref.
|
|
421
|
+
*/
|
|
422
|
+
onClick?: (event: ClickEvent<T>) => void;
|
|
423
|
+
};
|
|
424
|
+
type ClickEventState<T> = {
|
|
425
|
+
handleClick: (event: ClickEvent<T> | any) => void;
|
|
426
|
+
};
|
|
427
|
+
type ToggleEventProps = {
|
|
428
|
+
toggle?: (open: boolean) => void;
|
|
429
|
+
onToggle?: (open: boolean) => void;
|
|
430
|
+
};
|
|
431
|
+
type ToggleEventState<T> = {
|
|
432
|
+
handleToggle: (event?: ClickEvent<T> | any) => void;
|
|
433
|
+
};
|
|
434
|
+
type CloseEventProps<T> = {
|
|
435
|
+
/**
|
|
436
|
+
* Function to handle button click (close).
|
|
437
|
+
*/
|
|
438
|
+
onClose?: (event?: T) => void;
|
|
439
|
+
/**
|
|
440
|
+
* Function to handle button click (close).
|
|
441
|
+
*/
|
|
442
|
+
close?: (event?: T) => void;
|
|
443
|
+
};
|
|
444
|
+
type CloseEventState<T> = {
|
|
445
|
+
handleClose: (event?: T | void, forceClose?: boolean) => void;
|
|
446
|
+
};
|
|
447
|
+
declare const AlignmentList: readonly ["start", "center"];
|
|
448
|
+
type AlignmentType = (typeof AlignmentList)[number];
|
|
449
|
+
type AlignmentProps = {
|
|
450
|
+
/**
|
|
451
|
+
* Define the content alignment in full width
|
|
452
|
+
*/
|
|
453
|
+
alignment?: AlignmentType | string;
|
|
454
|
+
};
|
|
455
|
+
type ActiveProps = {
|
|
456
|
+
/**
|
|
457
|
+
* If the tab is checked/active.
|
|
458
|
+
*/
|
|
459
|
+
active?: boolean | string;
|
|
460
|
+
};
|
|
461
|
+
type InputEvent<T> = Event;
|
|
462
|
+
type InputEventProps<T> = {
|
|
463
|
+
input?: (event: InputEvent<T>) => void;
|
|
464
|
+
onInput?: (event: InputEvent<T>) => void;
|
|
465
|
+
};
|
|
466
|
+
type InputEventState<T> = {
|
|
467
|
+
handleInput: (event: InputEvent<T> | any) => void;
|
|
468
|
+
};
|
|
469
|
+
type ChangeEvent<T> = Event;
|
|
470
|
+
type ChangeEventProps<T> = {
|
|
471
|
+
change?: (event: ChangeEvent<T>) => void;
|
|
472
|
+
onChange?: (event: ChangeEvent<T>) => void;
|
|
473
|
+
};
|
|
474
|
+
type ChangeEventState<T> = {
|
|
475
|
+
handleChange: (event: ChangeEvent<T> | any) => void;
|
|
476
|
+
};
|
|
477
|
+
type InteractionEvent<T> = FocusEvent;
|
|
478
|
+
type FocusEventProps<T> = {
|
|
479
|
+
blur?: (event: InteractionEvent<T>) => void;
|
|
480
|
+
onBlur?: (event: InteractionEvent<T>) => void;
|
|
481
|
+
focus?: (event: InteractionEvent<T>) => void;
|
|
482
|
+
onFocus?: (event: InteractionEvent<T>) => void;
|
|
483
|
+
};
|
|
484
|
+
type FocusEventState<T> = {
|
|
485
|
+
handleBlur: (event: InteractionEvent<T> | any) => void;
|
|
486
|
+
handleFocus: (event: InteractionEvent<T> | any) => void;
|
|
487
|
+
};
|
|
488
|
+
type InnerCloseButtonProps = {
|
|
489
|
+
/**
|
|
490
|
+
* The closeButtonId attribute changes the id inside the close button.
|
|
491
|
+
*/
|
|
492
|
+
closeButtonId?: string;
|
|
493
|
+
/**
|
|
494
|
+
* The closeButtonText attribute changes the text inside the close button.
|
|
495
|
+
*/
|
|
496
|
+
closeButtonText?: string;
|
|
497
|
+
};
|
|
498
|
+
type NavigationBackButtonProps = {
|
|
499
|
+
/**
|
|
500
|
+
* The backButtonId attribute changes the id inside the back button.
|
|
501
|
+
*/
|
|
502
|
+
backButtonId?: string;
|
|
503
|
+
/**
|
|
504
|
+
* The backButtonText attribute changes the text inside the back button.
|
|
505
|
+
*/
|
|
506
|
+
backButtonText?: string;
|
|
507
|
+
};
|
|
508
|
+
type AriaControlsProps = {
|
|
509
|
+
/**
|
|
510
|
+
* Pass `aria-controls` to inner element
|
|
511
|
+
*/
|
|
512
|
+
controls?: string;
|
|
513
|
+
};
|
|
514
|
+
type ValueLabelType = {
|
|
515
|
+
value: string;
|
|
516
|
+
label?: string;
|
|
517
|
+
};
|
|
518
|
+
type DocumentScrollState = {
|
|
519
|
+
_documentScrollListenerCallbackId?: string;
|
|
520
|
+
handleDocumentScroll: (event: any, parent?: HTMLElement) => void;
|
|
521
|
+
_observer?: IntersectionObserver;
|
|
522
|
+
};
|
|
523
|
+
type PopoverState = {
|
|
524
|
+
handleEscape: (event: any) => void;
|
|
525
|
+
handleAutoPlacement: (parent?: HTMLElement) => void;
|
|
526
|
+
handleEnter: (parent?: HTMLElement) => void;
|
|
527
|
+
handleLeave: (event?: any) => void;
|
|
528
|
+
} & DocumentScrollState;
|
|
529
|
+
|
|
530
|
+
declare const uuid: () => string;
|
|
531
|
+
declare const addAttributeToChildren: (element: Element, attribute: {
|
|
532
|
+
key: string;
|
|
533
|
+
value: string;
|
|
534
|
+
}) => void;
|
|
535
|
+
type ClassNameArg = string | {
|
|
536
|
+
[key: string]: boolean | undefined;
|
|
537
|
+
} | undefined;
|
|
538
|
+
declare const cls: (...args: ClassNameArg[]) => string;
|
|
539
|
+
declare const isArrayOfStrings: (value: unknown) => value is string[];
|
|
540
|
+
declare const hasVoiceOver: () => boolean;
|
|
541
|
+
/**
|
|
542
|
+
* Determines if the current browser is Safari running on an iOS device.
|
|
543
|
+
*
|
|
544
|
+
* This function checks the user agent string to verify both iOS platform
|
|
545
|
+
* (iPad, iPhone, or iPod) and Safari browser, excluding other browsers
|
|
546
|
+
* such as Chrome, Firefox, Opera, and Edge on iOS.
|
|
547
|
+
*
|
|
548
|
+
* @returns {boolean} `true` if the browser is Safari on iOS, otherwise `false`.
|
|
549
|
+
*/
|
|
550
|
+
declare const isIOSSafari: () => boolean;
|
|
551
|
+
declare const delay: (fn: () => void, ms: number) => Promise<unknown>;
|
|
552
|
+
/**
|
|
553
|
+
* Some frameworks like stencil would not add "true" as value for a prop
|
|
554
|
+
* if it is used in a framework like angular e.g.: [disabled]="myDisabledProp"
|
|
555
|
+
* @param originBool Some boolean to convert to string
|
|
556
|
+
*/
|
|
557
|
+
declare const getBooleanAsString: (originBool?: boolean | string) => any;
|
|
558
|
+
declare const getBoolean: (originBool?: boolean | string, propertyName?: string) => boolean | undefined;
|
|
559
|
+
declare const getNumber: (originNumber?: number | string, alternativeNumber?: number | string) => number | undefined;
|
|
560
|
+
/**
|
|
561
|
+
* Retrieves the input value based on the provided value and input type.
|
|
562
|
+
*
|
|
563
|
+
* If the input type is "number" or "range", the value is processed as a number.
|
|
564
|
+
* Otherwise, the value is returned as-is.
|
|
565
|
+
*
|
|
566
|
+
* @param value - The input value, which can be a number, string, or undefined.
|
|
567
|
+
* @param inputType - The type of the input, such as "number", "range", or other string types.
|
|
568
|
+
* @returns The processed input value as a string, number, or undefined.
|
|
569
|
+
*/
|
|
570
|
+
declare const getInputValue: (value?: number | string, inputType?: string) => string | number | undefined;
|
|
571
|
+
declare const getHideProp: (show?: boolean | string) => any;
|
|
572
|
+
declare const stringPropVisible: (givenString?: string, showString?: boolean | string) => boolean;
|
|
573
|
+
declare const getSearchInput: (element: HTMLElement) => HTMLInputElement | null;
|
|
574
|
+
declare const getOptionKey: (option: {
|
|
575
|
+
id?: string;
|
|
576
|
+
value?: string | number | string[] | undefined;
|
|
577
|
+
}, prefix: string) => string;
|
|
578
|
+
declare const isKeyboardEvent: <T>(event?: ClickEvent<T> | GeneralKeyboardEvent<T>) => event is GeneralKeyboardEvent<T>;
|
|
579
|
+
|
|
580
|
+
type DBAccordionItemDefaultProps = {
|
|
581
|
+
/**
|
|
582
|
+
* Initial state for the accordion item
|
|
583
|
+
*/
|
|
584
|
+
defaultOpen?: boolean;
|
|
585
|
+
/**
|
|
586
|
+
* The disabled attribute can be set to keep a user from clicking on the element.
|
|
587
|
+
*/
|
|
588
|
+
disabled?: boolean | string;
|
|
589
|
+
/**
|
|
590
|
+
* Title of the accordion-item as slot
|
|
591
|
+
*/
|
|
592
|
+
headline?: any;
|
|
593
|
+
/**
|
|
594
|
+
* Title of the accordion-item as plain text
|
|
595
|
+
*/
|
|
596
|
+
headlinePlain?: string;
|
|
597
|
+
} & TextProps;
|
|
598
|
+
type DBAccordionItemProps = DBAccordionItemDefaultProps & GlobalProps & ToggleEventProps & NameProps;
|
|
599
|
+
type DBAccordionItemDefaultState = {
|
|
600
|
+
_open?: boolean;
|
|
601
|
+
};
|
|
602
|
+
type DBAccordionItemState = DBAccordionItemDefaultState & GlobalState & ToggleEventState<HTMLElement> & InitializedState & NameState;
|
|
603
|
+
|
|
604
|
+
declare const AccordionVariantList: readonly ["divider", "card"];
|
|
605
|
+
type AccordionVariantType = (typeof AccordionVariantList)[number];
|
|
606
|
+
declare const AccordionBehaviorList: readonly ["multiple", "single"];
|
|
607
|
+
type AccordionBehaviorType = (typeof AccordionBehaviorList)[number];
|
|
608
|
+
type DBAccordionDefaultProps = {
|
|
609
|
+
/**
|
|
610
|
+
* To allow multiple items open at the same time or only 1 item
|
|
611
|
+
*/
|
|
612
|
+
behavior?: AccordionBehaviorType;
|
|
613
|
+
/**
|
|
614
|
+
* The index of items which should be open when loading the accordion
|
|
615
|
+
*/
|
|
616
|
+
initOpenIndex?: number[];
|
|
617
|
+
/**
|
|
618
|
+
* Alternative to pass in a simple representation of accordion items
|
|
619
|
+
*/
|
|
620
|
+
items?: DBAccordionItemDefaultProps[] | string;
|
|
621
|
+
/**
|
|
622
|
+
* Set details name for exclusive accordions, see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details#name
|
|
623
|
+
*/
|
|
624
|
+
name?: string;
|
|
625
|
+
/**
|
|
626
|
+
* Informs about the changes in the internal state, which item is open
|
|
627
|
+
*/
|
|
628
|
+
onChange?: (openAccordionItemIds: string[]) => void;
|
|
629
|
+
/**
|
|
630
|
+
* Defines the display of the accordion and the items:
|
|
631
|
+
* "divider": with a dividing line between the items
|
|
632
|
+
* "card": w/o dividing line, but items are shown in the card variant
|
|
633
|
+
*/
|
|
634
|
+
variant?: AccordionVariantType;
|
|
635
|
+
};
|
|
636
|
+
type DBAccordionProps = DBAccordionDefaultProps & GlobalProps;
|
|
637
|
+
type DBAccordionDefaultState = {
|
|
638
|
+
_initOpenIndexDone: boolean;
|
|
639
|
+
_name?: string;
|
|
640
|
+
convertItems: () => DBAccordionItemDefaultProps[];
|
|
641
|
+
};
|
|
642
|
+
type DBAccordionState = DBAccordionDefaultState & GlobalState & InitializedState;
|
|
643
|
+
|
|
644
|
+
declare class DBAccordion implements AfterViewInit {
|
|
645
|
+
protected readonly cls: (...args: ClassNameArg[]) => string;
|
|
646
|
+
id: InputSignal<DBAccordionProps["id"]>;
|
|
647
|
+
name: InputSignal<DBAccordionProps["name"]>;
|
|
648
|
+
behavior: InputSignal<DBAccordionProps["behavior"]>;
|
|
649
|
+
initOpenIndex: InputSignal<DBAccordionProps["initOpenIndex"]>;
|
|
650
|
+
items: InputSignal<DBAccordionProps["items"]>;
|
|
651
|
+
className: InputSignal<DBAccordionProps["className"]>;
|
|
652
|
+
variant: InputSignal<DBAccordionProps["variant"]>;
|
|
653
|
+
_ref: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
654
|
+
_id: _angular_core.WritableSignal<string | undefined>;
|
|
655
|
+
_name: _angular_core.WritableSignal<string | undefined>;
|
|
656
|
+
initialized: _angular_core.WritableSignal<boolean>;
|
|
657
|
+
_initOpenIndexDone: _angular_core.WritableSignal<boolean>;
|
|
658
|
+
convertItems(): any;
|
|
659
|
+
trackByItem0(index: number, item: any): string;
|
|
660
|
+
constructor();
|
|
661
|
+
/**
|
|
662
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
663
|
+
* @param element the ref for the component
|
|
664
|
+
* @param customElementSelector the custom element like `my-component`
|
|
665
|
+
*/
|
|
666
|
+
private enableAttributePassing;
|
|
667
|
+
ngAfterViewInit(): void;
|
|
668
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DBAccordion, never>;
|
|
669
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DBAccordion, "db-accordion", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "behavior": { "alias": "behavior"; "required": false; "isSignal": true; }; "initOpenIndex": { "alias": "initOpenIndex"; "required": false; "isSignal": true; }; "items": { "alias": "items"; "required": false; "isSignal": true; }; "className": { "alias": "className"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
declare class DBAccordionItem implements AfterViewInit {
|
|
673
|
+
protected readonly cls: (...args: ClassNameArg[]) => string;
|
|
674
|
+
protected readonly getBooleanAsString: (originBool?: boolean | string) => any;
|
|
675
|
+
id: InputSignal<DBAccordionItemProps["id"]>;
|
|
676
|
+
defaultOpen: InputSignal<DBAccordionItemProps["defaultOpen"]>;
|
|
677
|
+
name: InputSignal<DBAccordionItemProps["name"]>;
|
|
678
|
+
className: InputSignal<DBAccordionItemProps["className"]>;
|
|
679
|
+
disabled: InputSignal<DBAccordionItemProps["disabled"]>;
|
|
680
|
+
headlinePlain: InputSignal<DBAccordionItemProps["headlinePlain"]>;
|
|
681
|
+
text: InputSignal<DBAccordionItemProps["text"]>;
|
|
682
|
+
toggle: _angular_core.OutputEmitterRef<boolean | void>;
|
|
683
|
+
_ref: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
684
|
+
_id: _angular_core.WritableSignal<string | undefined>;
|
|
685
|
+
_open: _angular_core.WritableSignal<boolean | undefined>;
|
|
686
|
+
_name: _angular_core.WritableSignal<string | undefined>;
|
|
687
|
+
initialized: _angular_core.WritableSignal<boolean>;
|
|
688
|
+
handleNameAttribute(): void;
|
|
689
|
+
handleToggle(event: ClickEvent<HTMLElement> | any): void;
|
|
690
|
+
constructor();
|
|
691
|
+
/**
|
|
692
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
693
|
+
* @param element the ref for the component
|
|
694
|
+
* @param customElementSelector the custom element like `my-component`
|
|
695
|
+
*/
|
|
696
|
+
private enableAttributePassing;
|
|
697
|
+
ngAfterViewInit(): void;
|
|
698
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DBAccordionItem, never>;
|
|
699
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DBAccordionItem, "db-accordion-item", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "defaultOpen": { "alias": "defaultOpen"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "className": { "alias": "className"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "headlinePlain": { "alias": "headlinePlain"; "required": false; "isSignal": true; }; "text": { "alias": "text"; "required": false; "isSignal": true; }; }, { "toggle": "toggle"; }, never, ["[headline]", "*"], true, never>;
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
declare const BadgePlacementList: readonly ["inline", "corner-top-left", "corner-top-right", "corner-center-left", "corner-center-right", "corner-bottom-left", "corner-bottom-right"];
|
|
703
|
+
type BadgePlacementType = (typeof BadgePlacementList)[number];
|
|
704
|
+
type DBBadgeDefaultProps = {
|
|
705
|
+
/**
|
|
706
|
+
* The `placement` attributes `corner-*` values change the position to absolute and adds a transform based on the placement.
|
|
707
|
+
*/
|
|
708
|
+
placement?: BadgePlacementType;
|
|
709
|
+
/**
|
|
710
|
+
* Describes the badge for a11y if you use placement attribute with `corner-*`
|
|
711
|
+
*/
|
|
712
|
+
label?: string;
|
|
713
|
+
};
|
|
714
|
+
type DBBadgeProps = DBBadgeDefaultProps & GlobalProps & SemanticProps & SizeProps & EmphasisProps & TextProps;
|
|
715
|
+
type DBBadgeDefaultState = {};
|
|
716
|
+
type DBBadgeState = DBBadgeDefaultState & GlobalState & InitializedState;
|
|
717
|
+
|
|
718
|
+
declare class DBBadge implements AfterViewInit {
|
|
719
|
+
protected readonly cls: (...args: ClassNameArg[]) => string;
|
|
720
|
+
protected readonly DEFAULT_LABEL: string;
|
|
721
|
+
placement: InputSignal<DBBadgeProps["placement"]>;
|
|
722
|
+
id: InputSignal<DBBadgeProps["id"]>;
|
|
723
|
+
className: InputSignal<DBBadgeProps["className"]>;
|
|
724
|
+
semantic: InputSignal<DBBadgeProps["semantic"]>;
|
|
725
|
+
size: InputSignal<DBBadgeProps["size"]>;
|
|
726
|
+
emphasis: InputSignal<DBBadgeProps["emphasis"]>;
|
|
727
|
+
label: InputSignal<DBBadgeProps["label"]>;
|
|
728
|
+
text: InputSignal<DBBadgeProps["text"]>;
|
|
729
|
+
_ref: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
730
|
+
initialized: _angular_core.WritableSignal<boolean>;
|
|
731
|
+
constructor();
|
|
732
|
+
/**
|
|
733
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
734
|
+
* @param element the ref for the component
|
|
735
|
+
* @param customElementSelector the custom element like `my-component`
|
|
736
|
+
*/
|
|
737
|
+
private enableAttributePassing;
|
|
738
|
+
ngAfterViewInit(): void;
|
|
739
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DBBadge, never>;
|
|
740
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DBBadge, "db-badge", never, { "placement": { "alias": "placement"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "className": { "alias": "className"; "required": false; "isSignal": true; }; "semantic": { "alias": "semantic"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "emphasis": { "alias": "emphasis"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "text": { "alias": "text"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
type DBBrandDefaultProps = {
|
|
744
|
+
/**
|
|
745
|
+
* @deprecated: Disable the default logo svg to pass in a custom `img`
|
|
746
|
+
*/
|
|
747
|
+
hideLogo?: boolean;
|
|
748
|
+
};
|
|
749
|
+
type DBBrandProps = DBBrandDefaultProps & GlobalProps & IconProps & ShowIconProps & TextProps;
|
|
750
|
+
type DBBrandDefaultState = {};
|
|
751
|
+
type DBBrandState = DBBrandDefaultState & GlobalState;
|
|
752
|
+
|
|
753
|
+
declare class DBBrand implements AfterViewInit {
|
|
754
|
+
protected readonly DEFAULT_ICON: string;
|
|
755
|
+
protected readonly getBooleanAsString: (originBool?: boolean | string) => any;
|
|
756
|
+
protected readonly cls: (...args: ClassNameArg[]) => string;
|
|
757
|
+
hideLogo: InputSignal<DBBrandProps["hideLogo"]>;
|
|
758
|
+
icon: InputSignal<DBBrandProps["icon"]>;
|
|
759
|
+
showIcon: InputSignal<DBBrandProps["showIcon"]>;
|
|
760
|
+
id: InputSignal<DBBrandProps["id"]>;
|
|
761
|
+
className: InputSignal<DBBrandProps["className"]>;
|
|
762
|
+
text: InputSignal<DBBrandProps["text"]>;
|
|
763
|
+
_ref: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
764
|
+
constructor();
|
|
765
|
+
/**
|
|
766
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
767
|
+
* @param element the ref for the component
|
|
768
|
+
* @param customElementSelector the custom element like `my-component`
|
|
769
|
+
*/
|
|
770
|
+
private enableAttributePassing;
|
|
771
|
+
ngAfterViewInit(): void;
|
|
772
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DBBrand, never>;
|
|
773
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DBBrand, "db-brand", never, { "hideLogo": { "alias": "hideLogo"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "showIcon": { "alias": "showIcon"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "className": { "alias": "className"; "required": false; "isSignal": true; }; "text": { "alias": "text"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
774
|
+
}
|
|
775
|
+
|
|
776
|
+
declare const ButtonVariantList: readonly ["outlined", "brand", "filled", "ghost"];
|
|
777
|
+
type ButtonVariantType = (typeof ButtonVariantList)[number];
|
|
778
|
+
declare const ButtonTypeList: readonly ["button", "reset", "submit"];
|
|
779
|
+
type ButtonTypeType = (typeof ButtonTypeList)[number];
|
|
780
|
+
type DBButtonDefaultProps = {
|
|
781
|
+
/**
|
|
782
|
+
* The disabled attribute can be set to [keep a user from clicking on the button](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#disabled).
|
|
783
|
+
*/
|
|
784
|
+
disabled?: boolean | string;
|
|
785
|
+
/**
|
|
786
|
+
* Associates the control with a form element
|
|
787
|
+
*/
|
|
788
|
+
form?: string;
|
|
789
|
+
/**
|
|
790
|
+
* The name attribute specifies a [name attributes value](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#name) for the button.
|
|
791
|
+
*/
|
|
792
|
+
name?: string;
|
|
793
|
+
/**
|
|
794
|
+
* Define the text next to the icon specified via the icon Property to get hidden.
|
|
795
|
+
*/
|
|
796
|
+
noText?: boolean | string;
|
|
797
|
+
/**
|
|
798
|
+
* The type attribute specifies the [type of button](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#type).
|
|
799
|
+
*/
|
|
800
|
+
type?: ButtonTypeType;
|
|
801
|
+
/**
|
|
802
|
+
* The value attribute specifies an initial [value for the button](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#value).
|
|
803
|
+
*/
|
|
804
|
+
value?: string;
|
|
805
|
+
/**
|
|
806
|
+
* Variant of the button. Use only 1 primary button on a page as CTA otherwise use one of the adaptive buttons.
|
|
807
|
+
*/
|
|
808
|
+
variant?: ButtonVariantType | string;
|
|
809
|
+
};
|
|
810
|
+
type DBButtonProps = DBButtonDefaultProps & GlobalProps & ClickEventProps<HTMLButtonElement> & IconProps & WidthProps & SizeProps & ShowIconProps & TextProps & ShowIconLeadingProps & ShowIconTrailingProps & IconLeadingProps & IconTrailingProps;
|
|
811
|
+
type DBButtonDefaultState = {
|
|
812
|
+
getButtonType: () => ButtonTypeType;
|
|
813
|
+
};
|
|
814
|
+
type DBButtonState = DBButtonDefaultState & GlobalState;
|
|
815
|
+
|
|
816
|
+
declare class DBButton implements AfterViewInit {
|
|
817
|
+
protected readonly cls: (...args: ClassNameArg[]) => string;
|
|
818
|
+
protected readonly getBoolean: (originBool?: boolean | string, propertyName?: string) => boolean | undefined;
|
|
819
|
+
protected readonly getBooleanAsString: (originBool?: boolean | string) => any;
|
|
820
|
+
type: InputSignal<DBButtonProps["type"]>;
|
|
821
|
+
id: InputSignal<DBButtonProps["id"]>;
|
|
822
|
+
className: InputSignal<DBButtonProps["className"]>;
|
|
823
|
+
disabled: InputSignal<DBButtonProps["disabled"]>;
|
|
824
|
+
iconLeading: InputSignal<DBButtonProps["iconLeading"]>;
|
|
825
|
+
icon: InputSignal<DBButtonProps["icon"]>;
|
|
826
|
+
showIconLeading: InputSignal<DBButtonProps["showIconLeading"]>;
|
|
827
|
+
showIcon: InputSignal<DBButtonProps["showIcon"]>;
|
|
828
|
+
iconTrailing: InputSignal<DBButtonProps["iconTrailing"]>;
|
|
829
|
+
showIconTrailing: InputSignal<DBButtonProps["showIconTrailing"]>;
|
|
830
|
+
size: InputSignal<DBButtonProps["size"]>;
|
|
831
|
+
width: InputSignal<DBButtonProps["width"]>;
|
|
832
|
+
variant: InputSignal<DBButtonProps["variant"]>;
|
|
833
|
+
noText: InputSignal<DBButtonProps["noText"]>;
|
|
834
|
+
name: InputSignal<DBButtonProps["name"]>;
|
|
835
|
+
form: InputSignal<DBButtonProps["form"]>;
|
|
836
|
+
value: InputSignal<DBButtonProps["value"]>;
|
|
837
|
+
text: InputSignal<DBButtonProps["text"]>;
|
|
838
|
+
click: _angular_core.OutputEmitterRef<void | MouseEvent>;
|
|
839
|
+
_ref: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
840
|
+
getButtonType(): "button" | "reset" | "submit" | undefined;
|
|
841
|
+
constructor();
|
|
842
|
+
/**
|
|
843
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
844
|
+
* @param element the ref for the component
|
|
845
|
+
* @param customElementSelector the custom element like `my-component`
|
|
846
|
+
*/
|
|
847
|
+
private enableAttributePassing;
|
|
848
|
+
ngAfterViewInit(): void;
|
|
849
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DBButton, never>;
|
|
850
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DBButton, "db-button", never, { "type": { "alias": "type"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "className": { "alias": "className"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "iconLeading": { "alias": "iconLeading"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "showIconLeading": { "alias": "showIconLeading"; "required": false; "isSignal": true; }; "showIcon": { "alias": "showIcon"; "required": false; "isSignal": true; }; "iconTrailing": { "alias": "iconTrailing"; "required": false; "isSignal": true; }; "showIconTrailing": { "alias": "showIconTrailing"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "noText": { "alias": "noText"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "form": { "alias": "form"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "text": { "alias": "text"; "required": false; "isSignal": true; }; }, { "click": "click"; }, never, ["*"], true, never>;
|
|
851
|
+
}
|
|
852
|
+
|
|
853
|
+
declare const CardBehaviorList: readonly ["static", "interactive"];
|
|
854
|
+
type CardBehaviorType = (typeof CardBehaviorList)[number];
|
|
855
|
+
declare const CardElevationLevelList: readonly ["1", "2", "3"];
|
|
856
|
+
type CardElevationLevelType = (typeof CardElevationLevelList)[number];
|
|
857
|
+
type DBCardDefaultProps = {
|
|
858
|
+
/**
|
|
859
|
+
* Makes the card interactive
|
|
860
|
+
*/
|
|
861
|
+
behavior?: CardBehaviorType;
|
|
862
|
+
/**
|
|
863
|
+
* Changes the elevation of the card which is equal to `basic-background-level`
|
|
864
|
+
*/
|
|
865
|
+
elevationLevel?: CardElevationLevelType;
|
|
866
|
+
};
|
|
867
|
+
type DBCardProps = DBCardDefaultProps & GlobalProps & ClickEventProps<HTMLElement> & SpacingProps;
|
|
868
|
+
type DBCardDefaultState = {};
|
|
869
|
+
type DBCardState = DBCardDefaultState & GlobalState & ClickEventState<HTMLElement>;
|
|
870
|
+
|
|
871
|
+
declare class DBCard implements AfterViewInit {
|
|
872
|
+
protected readonly cls: (...args: ClassNameArg[]) => string;
|
|
873
|
+
id: InputSignal<DBCardProps["id"]>;
|
|
874
|
+
className: InputSignal<DBCardProps["className"]>;
|
|
875
|
+
behavior: InputSignal<DBCardProps["behavior"]>;
|
|
876
|
+
elevationLevel: InputSignal<DBCardProps["elevationLevel"]>;
|
|
877
|
+
spacing: InputSignal<DBCardProps["spacing"]>;
|
|
878
|
+
click: _angular_core.OutputEmitterRef<void | MouseEvent>;
|
|
879
|
+
_ref: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
880
|
+
handleClick(event: ClickEvent<HTMLElement>): void;
|
|
881
|
+
constructor();
|
|
882
|
+
/**
|
|
883
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
884
|
+
* @param element the ref for the component
|
|
885
|
+
* @param customElementSelector the custom element like `my-component`
|
|
886
|
+
*/
|
|
887
|
+
private enableAttributePassing;
|
|
888
|
+
ngAfterViewInit(): void;
|
|
889
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DBCard, never>;
|
|
890
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DBCard, "db-card", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "className": { "alias": "className"; "required": false; "isSignal": true; }; "behavior": { "alias": "behavior"; "required": false; "isSignal": true; }; "elevationLevel": { "alias": "elevationLevel"; "required": false; "isSignal": true; }; "spacing": { "alias": "spacing"; "required": false; "isSignal": true; }; }, { "click": "click"; }, never, ["*"], true, never>;
|
|
891
|
+
}
|
|
892
|
+
|
|
893
|
+
type DBCheckboxDefaultProps = {
|
|
894
|
+
/**
|
|
895
|
+
* Define an [indeterminate](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement#indeterminate) state of a checkbox
|
|
896
|
+
*/
|
|
897
|
+
indeterminate?: boolean | string;
|
|
898
|
+
};
|
|
899
|
+
type DBCheckboxProps = DBCheckboxDefaultProps & GlobalProps & ChangeEventProps<HTMLInputElement> & FocusEventProps<HTMLInputElement> & FormProps & FormCheckProps & FormMessageProps & SizeProps;
|
|
900
|
+
type DBCheckboxDefaultState = {};
|
|
901
|
+
type DBCheckboxState = DBCheckboxDefaultState & GlobalState & ChangeEventState<HTMLInputElement> & FocusEventState<HTMLInputElement> & FormState & InitializedState & FromValidState;
|
|
902
|
+
|
|
903
|
+
declare class DBCheckbox implements AfterViewInit, ControlValueAccessor {
|
|
904
|
+
private renderer;
|
|
905
|
+
protected readonly cls: (...args: ClassNameArg[]) => string;
|
|
906
|
+
protected readonly getHideProp: (show?: boolean | string) => any;
|
|
907
|
+
protected readonly getBoolean: (originBool?: boolean | string, propertyName?: string) => boolean | undefined;
|
|
908
|
+
protected readonly stringPropVisible: (givenString?: string, showString?: boolean | string) => boolean;
|
|
909
|
+
protected readonly DEFAULT_VALID_MESSAGE: string;
|
|
910
|
+
id: InputSignal<DBCheckboxProps["id"]>;
|
|
911
|
+
invalidMessage: InputSignal<DBCheckboxProps["invalidMessage"]>;
|
|
912
|
+
message: InputSignal<DBCheckboxProps["message"]>;
|
|
913
|
+
showMessage: InputSignal<DBCheckboxProps["showMessage"]>;
|
|
914
|
+
indeterminate: InputSignal<DBCheckboxProps["indeterminate"]>;
|
|
915
|
+
checked: ModelSignal<DBCheckboxProps["checked"]>;
|
|
916
|
+
validMessage: InputSignal<DBCheckboxProps["validMessage"]>;
|
|
917
|
+
validation: InputSignal<DBCheckboxProps["validation"]>;
|
|
918
|
+
required: InputSignal<DBCheckboxProps["required"]>;
|
|
919
|
+
className: InputSignal<DBCheckboxProps["className"]>;
|
|
920
|
+
size: InputSignal<DBCheckboxProps["size"]>;
|
|
921
|
+
showRequiredAsterisk: InputSignal<DBCheckboxProps["showRequiredAsterisk"]>;
|
|
922
|
+
showLabel: InputSignal<DBCheckboxProps["showLabel"]>;
|
|
923
|
+
name: InputSignal<DBCheckboxProps["name"]>;
|
|
924
|
+
disabled: ModelSignal<DBCheckboxProps["disabled"]>;
|
|
925
|
+
value: InputSignal<DBCheckboxProps["value"]>;
|
|
926
|
+
ariaDescribedBy: InputSignal<DBCheckboxProps["ariaDescribedBy"]>;
|
|
927
|
+
label: InputSignal<DBCheckboxProps["label"]>;
|
|
928
|
+
messageIcon: InputSignal<DBCheckboxProps["messageIcon"]>;
|
|
929
|
+
change: _angular_core.OutputEmitterRef<void | Event>;
|
|
930
|
+
blur: _angular_core.OutputEmitterRef<void | FocusEvent>;
|
|
931
|
+
focus: _angular_core.OutputEmitterRef<void | FocusEvent>;
|
|
932
|
+
_ref: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
933
|
+
initialized: _angular_core.WritableSignal<boolean>;
|
|
934
|
+
_id: _angular_core.WritableSignal<string | undefined>;
|
|
935
|
+
_messageId: _angular_core.WritableSignal<string | undefined>;
|
|
936
|
+
_validMessageId: _angular_core.WritableSignal<string | undefined>;
|
|
937
|
+
_invalidMessageId: _angular_core.WritableSignal<string | undefined>;
|
|
938
|
+
_invalidMessage: _angular_core.WritableSignal<string | undefined>;
|
|
939
|
+
_descByIds: _angular_core.WritableSignal<string | undefined>;
|
|
940
|
+
_voiceOverFallback: _angular_core.WritableSignal<string | undefined>;
|
|
941
|
+
hasValidState(): boolean;
|
|
942
|
+
handleValidation(): void;
|
|
943
|
+
handleChange(event: ChangeEvent<HTMLInputElement>): void;
|
|
944
|
+
handleBlur(event: InteractionEvent<HTMLInputElement> | any): void;
|
|
945
|
+
handleFocus(event: InteractionEvent<HTMLInputElement> | any): void;
|
|
946
|
+
constructor(renderer: Renderer2);
|
|
947
|
+
/**
|
|
948
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
949
|
+
* @param element the ref for the component
|
|
950
|
+
* @param customElementSelector the custom element like `my-component`
|
|
951
|
+
*/
|
|
952
|
+
private enableAttributePassing;
|
|
953
|
+
writeValue(value: any): void;
|
|
954
|
+
propagateChange(_: any): void;
|
|
955
|
+
registerOnChange(onChange: any): void;
|
|
956
|
+
registerOnTouched(onTouched: any): void;
|
|
957
|
+
setDisabledState(disabled: boolean): void;
|
|
958
|
+
ngAfterViewInit(): void;
|
|
959
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DBCheckbox, never>;
|
|
960
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DBCheckbox, "db-checkbox", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "invalidMessage": { "alias": "invalidMessage"; "required": false; "isSignal": true; }; "message": { "alias": "message"; "required": false; "isSignal": true; }; "showMessage": { "alias": "showMessage"; "required": false; "isSignal": true; }; "indeterminate": { "alias": "indeterminate"; "required": false; "isSignal": true; }; "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "validMessage": { "alias": "validMessage"; "required": false; "isSignal": true; }; "validation": { "alias": "validation"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "className": { "alias": "className"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "showRequiredAsterisk": { "alias": "showRequiredAsterisk"; "required": false; "isSignal": true; }; "showLabel": { "alias": "showLabel"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "ariaDescribedBy": { "alias": "ariaDescribedBy"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "messageIcon": { "alias": "messageIcon"; "required": false; "isSignal": true; }; }, { "checked": "checkedChange"; "disabled": "disabledChange"; "change": "change"; "blur": "blur"; "focus": "focus"; }, never, ["*"], true, never>;
|
|
961
|
+
}
|
|
962
|
+
|
|
963
|
+
declare const CustomSelectDropdownWidthList: readonly ["fixed", "auto", "full"];
|
|
964
|
+
type CustomSelectDropdownWidthType = (typeof CustomSelectDropdownWidthList)[number];
|
|
965
|
+
type DBCustomSelectDropdownDefaultProps = {
|
|
966
|
+
/**
|
|
967
|
+
* Changes the behavior of the dropdown with.
|
|
968
|
+
* Default: fixed 328px
|
|
969
|
+
* Full: Based on the size of the form-field
|
|
970
|
+
* Auto: Based on the size of the largest list item
|
|
971
|
+
*/
|
|
972
|
+
width?: CustomSelectDropdownWidthType | string;
|
|
973
|
+
};
|
|
974
|
+
type DBCustomSelectDropdownProps = DBCustomSelectDropdownDefaultProps & GlobalProps;
|
|
975
|
+
type DBCustomSelectDropdownDefaultState = {};
|
|
976
|
+
type DBCustomSelectDropdownState = DBCustomSelectDropdownDefaultState & GlobalState;
|
|
977
|
+
|
|
978
|
+
type DBCustomSelectFormFieldDefaultProps = {};
|
|
979
|
+
type DBCustomSelectFormFieldProps = DBCustomSelectFormFieldDefaultProps & GlobalProps;
|
|
980
|
+
type DBCustomSelectFormFieldDefaultState = {};
|
|
981
|
+
type DBCustomSelectFormFieldState = DBCustomSelectFormFieldDefaultState & GlobalState;
|
|
982
|
+
|
|
983
|
+
declare const CustomSelectListItemTypeList: readonly ["checkbox", "radio"];
|
|
984
|
+
type CustomSelectListItemTypeType = (typeof CustomSelectListItemTypeList)[number];
|
|
985
|
+
type DBCustomSelectListItemExtraProps = {
|
|
986
|
+
/**
|
|
987
|
+
* If the item is a group title (only text)
|
|
988
|
+
*/
|
|
989
|
+
isGroupTitle?: boolean;
|
|
990
|
+
/**
|
|
991
|
+
* Show a divider on the bottom of the list item for visual grouping (don't use it on every item)
|
|
992
|
+
*/
|
|
993
|
+
showDivider?: boolean;
|
|
994
|
+
} & IconProps & ShowIconProps;
|
|
995
|
+
type DBCustomSelectListItemDefaultProps = {
|
|
996
|
+
/**
|
|
997
|
+
* Set the title of a group of items - disables radio/checkbox behavior
|
|
998
|
+
*/
|
|
999
|
+
groupTitle?: string;
|
|
1000
|
+
/**
|
|
1001
|
+
* Change the behavior of the item single(radio) or multiple(checkbox)
|
|
1002
|
+
*/
|
|
1003
|
+
type?: CustomSelectListItemTypeType;
|
|
1004
|
+
};
|
|
1005
|
+
type DBCustomSelectListItemProps = DBCustomSelectListItemDefaultProps & GlobalProps & BaseFormProps & ValueProps & FormCheckProps & ChangeEventProps<HTMLInputElement> & DBCustomSelectListItemExtraProps;
|
|
1006
|
+
type DBCustomSelectListItemDefaultState = {
|
|
1007
|
+
getIconTrailing: () => string | undefined;
|
|
1008
|
+
hasDivider?: boolean;
|
|
1009
|
+
};
|
|
1010
|
+
type DBCustomSelectListItemState = DBCustomSelectListItemDefaultState & ChangeEventState<HTMLInputElement> & GlobalState;
|
|
1011
|
+
|
|
1012
|
+
type CustomSelectOptionType = {
|
|
1013
|
+
/**
|
|
1014
|
+
* Disables this option
|
|
1015
|
+
*/
|
|
1016
|
+
disabled?: boolean;
|
|
1017
|
+
/**
|
|
1018
|
+
* Identifier for option
|
|
1019
|
+
*/
|
|
1020
|
+
id?: string;
|
|
1021
|
+
/**
|
|
1022
|
+
* If the value is different from the label you want to show to the user.
|
|
1023
|
+
*/
|
|
1024
|
+
label?: string;
|
|
1025
|
+
/**
|
|
1026
|
+
* The value for the option
|
|
1027
|
+
*/
|
|
1028
|
+
value?: string;
|
|
1029
|
+
} & DBCustomSelectListItemExtraProps;
|
|
1030
|
+
declare const SelectedTypeList: readonly ["amount", "text", "tag"];
|
|
1031
|
+
type SelectedTypeType = (typeof SelectedTypeList)[number];
|
|
1032
|
+
type DBCustomSelectEvents = {
|
|
1033
|
+
/**
|
|
1034
|
+
* Optional: if select-type="amount" when amount changes
|
|
1035
|
+
* @param amount The amount of selected checkboxes
|
|
1036
|
+
*/
|
|
1037
|
+
onAmountChange?: (amount: number) => void;
|
|
1038
|
+
/**
|
|
1039
|
+
* Optional: if select-type="amount" when amount changes
|
|
1040
|
+
* @param amount The amount of selected checkboxes
|
|
1041
|
+
*/
|
|
1042
|
+
amountChange?: (amount: number) => void;
|
|
1043
|
+
/**
|
|
1044
|
+
* Triggers after some option was clicked in dropdown
|
|
1045
|
+
* @param values the changed values
|
|
1046
|
+
*/
|
|
1047
|
+
onOptionSelected?: (values: string[]) => void;
|
|
1048
|
+
/**
|
|
1049
|
+
* Triggers after some option was clicked in dropdown
|
|
1050
|
+
* @param values the changed values
|
|
1051
|
+
*/
|
|
1052
|
+
optionSelected?: (values: string[]) => void;
|
|
1053
|
+
/**
|
|
1054
|
+
* Informs the user when dropdown was toggled.
|
|
1055
|
+
*/
|
|
1056
|
+
onDropdownToggle?: (event: GeneralEvent<HTMLDetailsElement>) => void;
|
|
1057
|
+
/**
|
|
1058
|
+
* Informs the user when dropdown was toggled.
|
|
1059
|
+
*/
|
|
1060
|
+
dropdownToggle?: (event: GeneralEvent<HTMLDetailsElement>) => void;
|
|
1061
|
+
/**
|
|
1062
|
+
* Informs the user when a search was performed.
|
|
1063
|
+
*/
|
|
1064
|
+
onSearch?: (event: InputEvent<HTMLInputElement>) => void;
|
|
1065
|
+
/**
|
|
1066
|
+
* Informs the user when a search was performed.
|
|
1067
|
+
*/
|
|
1068
|
+
search?: (event: InputEvent<HTMLInputElement>) => void;
|
|
1069
|
+
};
|
|
1070
|
+
type DBCustomSelectDefaultProps = {
|
|
1071
|
+
/**
|
|
1072
|
+
* Optional: if select-type="amount" change the shown text
|
|
1073
|
+
*/
|
|
1074
|
+
amountText?: string;
|
|
1075
|
+
/**
|
|
1076
|
+
* Overwrite the default aria-label (props.label) for the custom-select-list
|
|
1077
|
+
*/
|
|
1078
|
+
listLabel?: string;
|
|
1079
|
+
/**
|
|
1080
|
+
* Label for the clear selection button
|
|
1081
|
+
*/
|
|
1082
|
+
clearSelectionText?: string;
|
|
1083
|
+
/**
|
|
1084
|
+
* Changes the behavior of the dropdown with.
|
|
1085
|
+
* Default: fixed 328px
|
|
1086
|
+
* Auto: Based on the size of the form-field
|
|
1087
|
+
*/
|
|
1088
|
+
dropdownWidth?: CustomSelectDropdownWidthType | string;
|
|
1089
|
+
/**
|
|
1090
|
+
* Width of the component. Auto width based on children size, full width based on parent elements width.
|
|
1091
|
+
*/
|
|
1092
|
+
formFieldWidth?: WidthType | string;
|
|
1093
|
+
/**
|
|
1094
|
+
* Dropdown - hint if data has to be loaded
|
|
1095
|
+
*/
|
|
1096
|
+
loadingText?: string;
|
|
1097
|
+
/**
|
|
1098
|
+
* Change the button text for mobile close
|
|
1099
|
+
*/
|
|
1100
|
+
mobileCloseButtonText?: string;
|
|
1101
|
+
/**
|
|
1102
|
+
* Enables CustomSelect
|
|
1103
|
+
*/
|
|
1104
|
+
multiple?: boolean | string;
|
|
1105
|
+
/**
|
|
1106
|
+
* Dropdown - hint if there are no options
|
|
1107
|
+
*/
|
|
1108
|
+
noResultsText?: string;
|
|
1109
|
+
/**
|
|
1110
|
+
* Programmatically open the dropdown. May differ if you don't use onDropdownToggle.
|
|
1111
|
+
*/
|
|
1112
|
+
open?: boolean;
|
|
1113
|
+
/**
|
|
1114
|
+
* You should pass in the options as an array.
|
|
1115
|
+
*/
|
|
1116
|
+
options?: CustomSelectOptionType[];
|
|
1117
|
+
/**
|
|
1118
|
+
* The `placement` attributes values change the position to absolute and adds a transform based on the placement.
|
|
1119
|
+
*/
|
|
1120
|
+
placement?: PlacementVerticalType;
|
|
1121
|
+
/**
|
|
1122
|
+
* Optional: if you use selectedType=tag and options, you need to set the removeTagsTexts for screen reader users
|
|
1123
|
+
*/
|
|
1124
|
+
removeTagsTexts?: string[];
|
|
1125
|
+
/**
|
|
1126
|
+
* Optional: Change the filter function for the search input
|
|
1127
|
+
*/
|
|
1128
|
+
searchFilter?: (option: CustomSelectOptionType, filterText: string) => boolean;
|
|
1129
|
+
/**
|
|
1130
|
+
* Search label
|
|
1131
|
+
*/
|
|
1132
|
+
searchLabel?: string;
|
|
1133
|
+
/**
|
|
1134
|
+
* Search placeholder
|
|
1135
|
+
*/
|
|
1136
|
+
searchPlaceholder?: string;
|
|
1137
|
+
/**
|
|
1138
|
+
* Optional: Prefill the value of the search input
|
|
1139
|
+
*/
|
|
1140
|
+
searchValue?: string;
|
|
1141
|
+
/**
|
|
1142
|
+
* Select all checkbox label
|
|
1143
|
+
*/
|
|
1144
|
+
selectAllLabel?: string;
|
|
1145
|
+
/**
|
|
1146
|
+
* Optional: If you want to show a custom label for the selected values.
|
|
1147
|
+
* You need to define the empty state as well based on selected options.
|
|
1148
|
+
*/
|
|
1149
|
+
selectedLabels?: string;
|
|
1150
|
+
/**
|
|
1151
|
+
* Change the selected type for values shown in multi select
|
|
1152
|
+
*/
|
|
1153
|
+
selectedType?: SelectedTypeType;
|
|
1154
|
+
/**
|
|
1155
|
+
* Show clear selection button (default:true). Hide it if you have very small inputs e.g. in tables.
|
|
1156
|
+
*/
|
|
1157
|
+
showClearSelection?: boolean;
|
|
1158
|
+
/**
|
|
1159
|
+
* Dropdown - enable loading infotext and spinner
|
|
1160
|
+
*/
|
|
1161
|
+
showLoading?: boolean;
|
|
1162
|
+
/**
|
|
1163
|
+
* Dropdown - enable no options infotext
|
|
1164
|
+
*/
|
|
1165
|
+
showNoResults?: boolean;
|
|
1166
|
+
/**
|
|
1167
|
+
* Forces search in header.
|
|
1168
|
+
*/
|
|
1169
|
+
showSearch?: boolean;
|
|
1170
|
+
/**
|
|
1171
|
+
* Forces select all checkbox (only for multiple).
|
|
1172
|
+
*/
|
|
1173
|
+
showSelectAll?: boolean;
|
|
1174
|
+
/**
|
|
1175
|
+
* Optional: If you want to show a custom label based on the selected options.
|
|
1176
|
+
*/
|
|
1177
|
+
transformSelectedLabels?: (selectedOptions?: CustomSelectOptionType[]) => string;
|
|
1178
|
+
/**
|
|
1179
|
+
* Initial value for multi select
|
|
1180
|
+
*/
|
|
1181
|
+
values?: string[];
|
|
1182
|
+
};
|
|
1183
|
+
type DBCustomSelectProps = GlobalProps & CustomFormProps & BaseFormProps & RequiredProps & FormMessageProps & DBCustomSelectDefaultProps & DBCustomSelectEvents & DBCustomSelectFormFieldDefaultProps & IconProps & ShowIconProps & ShowLabelProps;
|
|
1184
|
+
type DBCustomSelectDefaultState = {
|
|
1185
|
+
_validity?: ValidationType;
|
|
1186
|
+
_values?: string[];
|
|
1187
|
+
_options?: CustomSelectOptionType[];
|
|
1188
|
+
_selectedOptions?: CustomSelectOptionType[];
|
|
1189
|
+
_hasNoOptions: boolean;
|
|
1190
|
+
_selectId?: string;
|
|
1191
|
+
_labelId?: string;
|
|
1192
|
+
_summaryId?: string;
|
|
1193
|
+
_placeholderId?: string;
|
|
1194
|
+
_selectedLabels?: string;
|
|
1195
|
+
_selectedLabelsId?: string;
|
|
1196
|
+
_infoTextId?: string;
|
|
1197
|
+
_internalChangeTimestamp: number;
|
|
1198
|
+
_documentClickListenerCallbackId?: string;
|
|
1199
|
+
_searchValue?: string;
|
|
1200
|
+
_userInteraction?: boolean;
|
|
1201
|
+
getNativeSelectValue: () => string;
|
|
1202
|
+
getOptionLabel: (option: CustomSelectOptionType) => string;
|
|
1203
|
+
getOptionChecked: (value?: string) => boolean;
|
|
1204
|
+
getTagRemoveLabel: (option: CustomSelectOptionType) => string;
|
|
1205
|
+
selectAllEnabled: boolean;
|
|
1206
|
+
searchEnabled: boolean;
|
|
1207
|
+
amountOptions: number;
|
|
1208
|
+
setDescById: (descId?: string) => void;
|
|
1209
|
+
handleTagRemove: (option: CustomSelectOptionType, event?: ClickEvent<HTMLButtonElement> | void) => void;
|
|
1210
|
+
handleSummaryFocus: () => void;
|
|
1211
|
+
handleSelect: (value?: string) => void;
|
|
1212
|
+
handleSelectAll: (event: any) => void;
|
|
1213
|
+
handleClearAll: (event: any) => void;
|
|
1214
|
+
handleDropdownToggle: (event: any) => void;
|
|
1215
|
+
handleDocumentClose: (event: any) => void;
|
|
1216
|
+
handleOpenByKeyboardFocus: () => void;
|
|
1217
|
+
handleFocusFirstDropdownCheckbox: (activeElement?: Element) => void;
|
|
1218
|
+
handleKeyboardPress: (event: any) => void;
|
|
1219
|
+
handleArrowDownUp: (event: any) => void;
|
|
1220
|
+
handleSearch: (event: any) => void;
|
|
1221
|
+
handleOptionSelected: (_values: string[]) => void;
|
|
1222
|
+
getSelectAllLabel: () => string;
|
|
1223
|
+
selectAllChecked: boolean;
|
|
1224
|
+
selectAllIndeterminate: boolean;
|
|
1225
|
+
handleAutoPlacement: () => void;
|
|
1226
|
+
};
|
|
1227
|
+
type DBCustomSelectState = DBCustomSelectDefaultState & GlobalState & FormState & FromValidState & CloseEventState<InteractionEvent<HTMLDetailsElement>> & DocumentScrollState;
|
|
1228
|
+
|
|
1229
|
+
declare class DBCustomSelect implements AfterViewInit, ControlValueAccessor {
|
|
1230
|
+
private renderer;
|
|
1231
|
+
protected readonly cls: (...args: ClassNameArg[]) => string;
|
|
1232
|
+
protected readonly getBooleanAsString: (originBool?: boolean | string) => any;
|
|
1233
|
+
protected readonly getHideProp: (show?: boolean | string) => any;
|
|
1234
|
+
protected readonly DEFAULT_LABEL: string;
|
|
1235
|
+
protected readonly getBoolean: (originBool?: boolean | string, propertyName?: string) => boolean | undefined;
|
|
1236
|
+
protected readonly getOptionKey: (option: {
|
|
1237
|
+
id?: string;
|
|
1238
|
+
value?: string | number | string[] | undefined;
|
|
1239
|
+
}, prefix: string) => string;
|
|
1240
|
+
protected readonly DEFAULT_MESSAGE: string;
|
|
1241
|
+
protected readonly DEFAULT_CLOSE_BUTTON: string;
|
|
1242
|
+
protected readonly stringPropVisible: (givenString?: string, showString?: boolean | string) => boolean;
|
|
1243
|
+
protected readonly DEFAULT_VALID_MESSAGE: string;
|
|
1244
|
+
id: InputSignal<DBCustomSelectProps["id"]>;
|
|
1245
|
+
invalidMessage: InputSignal<DBCustomSelectProps["invalidMessage"]>;
|
|
1246
|
+
message: InputSignal<DBCustomSelectProps["message"]>;
|
|
1247
|
+
showMessage: InputSignal<DBCustomSelectProps["showMessage"]>;
|
|
1248
|
+
ariaDescribedBy: InputSignal<DBCustomSelectProps["ariaDescribedBy"]>;
|
|
1249
|
+
showNoResults: InputSignal<DBCustomSelectProps["showNoResults"]>;
|
|
1250
|
+
showLoading: InputSignal<DBCustomSelectProps["showLoading"]>;
|
|
1251
|
+
multiple: InputSignal<DBCustomSelectProps["multiple"]>;
|
|
1252
|
+
showSelectAll: InputSignal<DBCustomSelectProps["showSelectAll"]>;
|
|
1253
|
+
showSearch: InputSignal<DBCustomSelectProps["showSearch"]>;
|
|
1254
|
+
values: ModelSignal<DBCustomSelectProps["values"]>;
|
|
1255
|
+
validation: InputSignal<DBCustomSelectProps["validation"]>;
|
|
1256
|
+
options: InputSignal<DBCustomSelectProps["options"]>;
|
|
1257
|
+
searchValue: InputSignal<DBCustomSelectProps["searchValue"]>;
|
|
1258
|
+
selectedLabels: InputSignal<DBCustomSelectProps["selectedLabels"]>;
|
|
1259
|
+
transformSelectedLabels: InputSignal<DBCustomSelectProps["transformSelectedLabels"]>;
|
|
1260
|
+
selectedType: InputSignal<DBCustomSelectProps["selectedType"]>;
|
|
1261
|
+
amountText: InputSignal<DBCustomSelectProps["amountText"]>;
|
|
1262
|
+
validMessage: InputSignal<DBCustomSelectProps["validMessage"]>;
|
|
1263
|
+
required: InputSignal<DBCustomSelectProps["required"]>;
|
|
1264
|
+
selectAllLabel: InputSignal<DBCustomSelectProps["selectAllLabel"]>;
|
|
1265
|
+
removeTagsTexts: InputSignal<DBCustomSelectProps["removeTagsTexts"]>;
|
|
1266
|
+
placement: InputSignal<DBCustomSelectProps["placement"]>;
|
|
1267
|
+
searchFilter: InputSignal<DBCustomSelectProps["searchFilter"]>;
|
|
1268
|
+
className: InputSignal<DBCustomSelectProps["className"]>;
|
|
1269
|
+
formFieldWidth: InputSignal<DBCustomSelectProps["formFieldWidth"]>;
|
|
1270
|
+
variant: InputSignal<DBCustomSelectProps["variant"]>;
|
|
1271
|
+
showRequiredAsterisk: InputSignal<DBCustomSelectProps["showRequiredAsterisk"]>;
|
|
1272
|
+
showLabel: InputSignal<DBCustomSelectProps["showLabel"]>;
|
|
1273
|
+
icon: InputSignal<DBCustomSelectProps["icon"]>;
|
|
1274
|
+
showIcon: InputSignal<DBCustomSelectProps["showIcon"]>;
|
|
1275
|
+
label: InputSignal<DBCustomSelectProps["label"]>;
|
|
1276
|
+
form: InputSignal<DBCustomSelectProps["form"]>;
|
|
1277
|
+
name: InputSignal<DBCustomSelectProps["name"]>;
|
|
1278
|
+
disabled: ModelSignal<DBCustomSelectProps["disabled"]>;
|
|
1279
|
+
open: InputSignal<DBCustomSelectProps["open"]>;
|
|
1280
|
+
dropdownWidth: InputSignal<DBCustomSelectProps["dropdownWidth"]>;
|
|
1281
|
+
searchLabel: InputSignal<DBCustomSelectProps["searchLabel"]>;
|
|
1282
|
+
searchPlaceholder: InputSignal<DBCustomSelectProps["searchPlaceholder"]>;
|
|
1283
|
+
listLabel: InputSignal<DBCustomSelectProps["listLabel"]>;
|
|
1284
|
+
loadingText: InputSignal<DBCustomSelectProps["loadingText"]>;
|
|
1285
|
+
noResultsText: InputSignal<DBCustomSelectProps["noResultsText"]>;
|
|
1286
|
+
mobileCloseButtonText: InputSignal<DBCustomSelectProps["mobileCloseButtonText"]>;
|
|
1287
|
+
showClearSelection: InputSignal<DBCustomSelectProps["showClearSelection"]>;
|
|
1288
|
+
clearSelectionText: InputSignal<DBCustomSelectProps["clearSelectionText"]>;
|
|
1289
|
+
placeholder: InputSignal<DBCustomSelectProps["placeholder"]>;
|
|
1290
|
+
messageIcon: InputSignal<DBCustomSelectProps["messageIcon"]>;
|
|
1291
|
+
amountChange: _angular_core.OutputEmitterRef<number | void>;
|
|
1292
|
+
dropdownToggle: _angular_core.OutputEmitterRef<void | Event>;
|
|
1293
|
+
optionSelected: _angular_core.OutputEmitterRef<void | string[]>;
|
|
1294
|
+
search: _angular_core.OutputEmitterRef<void | Event>;
|
|
1295
|
+
_ref: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
1296
|
+
selectRef: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
1297
|
+
detailsRef: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
1298
|
+
searchInputRef: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
1299
|
+
selectAllRef: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
1300
|
+
_id: _angular_core.WritableSignal<string | undefined>;
|
|
1301
|
+
_messageId: _angular_core.WritableSignal<string | undefined>;
|
|
1302
|
+
_validMessageId: _angular_core.WritableSignal<string | undefined>;
|
|
1303
|
+
_invalidMessageId: _angular_core.WritableSignal<string | undefined>;
|
|
1304
|
+
_invalidMessage: _angular_core.WritableSignal<string | undefined>;
|
|
1305
|
+
_selectId: _angular_core.WritableSignal<string | undefined>;
|
|
1306
|
+
_labelId: _angular_core.WritableSignal<string | undefined>;
|
|
1307
|
+
_summaryId: _angular_core.WritableSignal<string | undefined>;
|
|
1308
|
+
_placeholderId: _angular_core.WritableSignal<string | undefined>;
|
|
1309
|
+
_infoTextId: _angular_core.WritableSignal<string | undefined>;
|
|
1310
|
+
_validity: _angular_core.WritableSignal<"invalid" | "valid" | "no-validation" | undefined>;
|
|
1311
|
+
_userInteraction: _angular_core.WritableSignal<boolean | undefined>;
|
|
1312
|
+
_descByIds: _angular_core.WritableSignal<string | undefined>;
|
|
1313
|
+
_selectedLabels: _angular_core.WritableSignal<string | undefined>;
|
|
1314
|
+
_selectedLabelsId: _angular_core.WritableSignal<string | undefined>;
|
|
1315
|
+
_voiceOverFallback: _angular_core.WritableSignal<string | undefined>;
|
|
1316
|
+
_selectedOptions: _angular_core.WritableSignal<CustomSelectOptionType[] | undefined>;
|
|
1317
|
+
selectAllEnabled: _angular_core.WritableSignal<boolean>;
|
|
1318
|
+
searchEnabled: _angular_core.WritableSignal<boolean>;
|
|
1319
|
+
amountOptions: _angular_core.WritableSignal<number>;
|
|
1320
|
+
_values: _angular_core.WritableSignal<string[] | undefined>;
|
|
1321
|
+
_options: _angular_core.WritableSignal<CustomSelectOptionType[] | undefined>;
|
|
1322
|
+
_hasNoOptions: _angular_core.WritableSignal<boolean>;
|
|
1323
|
+
_documentClickListenerCallbackId: _angular_core.WritableSignal<string | undefined>;
|
|
1324
|
+
_internalChangeTimestamp: _angular_core.WritableSignal<number>;
|
|
1325
|
+
_documentScrollListenerCallbackId: _angular_core.WritableSignal<string | undefined>;
|
|
1326
|
+
_observer: _angular_core.WritableSignal<IntersectionObserver | undefined>;
|
|
1327
|
+
_searchValue: _angular_core.WritableSignal<string | undefined>;
|
|
1328
|
+
selectAllChecked: _angular_core.WritableSignal<boolean>;
|
|
1329
|
+
selectAllIndeterminate: _angular_core.WritableSignal<boolean>;
|
|
1330
|
+
handleDocumentScroll(event: any): void;
|
|
1331
|
+
hasValidState(): boolean;
|
|
1332
|
+
handleValidation(): void;
|
|
1333
|
+
handleDropdownToggle(event: GeneralEvent<HTMLDetailsElement>): void;
|
|
1334
|
+
getNativeSelectValue(): string;
|
|
1335
|
+
setDescById(descId?: string): void;
|
|
1336
|
+
getSelectAllLabel(): string;
|
|
1337
|
+
getOptionLabel(option: CustomSelectOptionType): string;
|
|
1338
|
+
getOptionChecked(value?: string): boolean | undefined;
|
|
1339
|
+
getTagRemoveLabel(option: CustomSelectOptionType): string;
|
|
1340
|
+
handleTagRemove(option: CustomSelectOptionType, event?: ClickEvent<HTMLButtonElement> | void): void;
|
|
1341
|
+
handleAutoPlacement(): void;
|
|
1342
|
+
handleArrowDownUp(event: any): void;
|
|
1343
|
+
handleKeyboardPress(event: any): void;
|
|
1344
|
+
handleClose(event?: InteractionEvent<HTMLDetailsElement> | void, forceClose?: boolean): void;
|
|
1345
|
+
handleDocumentClose(event: any): void;
|
|
1346
|
+
handleOptionSelected(values: string[]): void;
|
|
1347
|
+
handleSelect(value?: string): void;
|
|
1348
|
+
handleSelectAll(event: any): void;
|
|
1349
|
+
handleFocusFirstDropdownCheckbox(activeElement?: Element): void;
|
|
1350
|
+
handleOpenByKeyboardFocus(): void;
|
|
1351
|
+
handleSearch(valueOrEvent?: InputEvent<HTMLInputElement> | string | void): void;
|
|
1352
|
+
handleClearAll(event: any): void;
|
|
1353
|
+
handleSummaryFocus(): void;
|
|
1354
|
+
satisfyReact(event: any): void;
|
|
1355
|
+
trackByOption0(_: number, option: any): string;
|
|
1356
|
+
trackByOption1(index: number, option: any): string;
|
|
1357
|
+
trackByOption2(_: number, option: any): string;
|
|
1358
|
+
constructor(renderer: Renderer2);
|
|
1359
|
+
/**
|
|
1360
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
1361
|
+
* @param element the ref for the component
|
|
1362
|
+
* @param customElementSelector the custom element like `my-component`
|
|
1363
|
+
*/
|
|
1364
|
+
private enableAttributePassing;
|
|
1365
|
+
writeValue(value: any): void;
|
|
1366
|
+
propagateChange(_: any): void;
|
|
1367
|
+
registerOnChange(onChange: any): void;
|
|
1368
|
+
registerOnTouched(onTouched: any): void;
|
|
1369
|
+
setDisabledState(disabled: boolean): void;
|
|
1370
|
+
ngAfterViewInit(): void;
|
|
1371
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DBCustomSelect, never>;
|
|
1372
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DBCustomSelect, "db-custom-select", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "invalidMessage": { "alias": "invalidMessage"; "required": false; "isSignal": true; }; "message": { "alias": "message"; "required": false; "isSignal": true; }; "showMessage": { "alias": "showMessage"; "required": false; "isSignal": true; }; "ariaDescribedBy": { "alias": "ariaDescribedBy"; "required": false; "isSignal": true; }; "showNoResults": { "alias": "showNoResults"; "required": false; "isSignal": true; }; "showLoading": { "alias": "showLoading"; "required": false; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "showSelectAll": { "alias": "showSelectAll"; "required": false; "isSignal": true; }; "showSearch": { "alias": "showSearch"; "required": false; "isSignal": true; }; "values": { "alias": "values"; "required": false; "isSignal": true; }; "validation": { "alias": "validation"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; "searchValue": { "alias": "searchValue"; "required": false; "isSignal": true; }; "selectedLabels": { "alias": "selectedLabels"; "required": false; "isSignal": true; }; "transformSelectedLabels": { "alias": "transformSelectedLabels"; "required": false; "isSignal": true; }; "selectedType": { "alias": "selectedType"; "required": false; "isSignal": true; }; "amountText": { "alias": "amountText"; "required": false; "isSignal": true; }; "validMessage": { "alias": "validMessage"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "selectAllLabel": { "alias": "selectAllLabel"; "required": false; "isSignal": true; }; "removeTagsTexts": { "alias": "removeTagsTexts"; "required": false; "isSignal": true; }; "placement": { "alias": "placement"; "required": false; "isSignal": true; }; "searchFilter": { "alias": "searchFilter"; "required": false; "isSignal": true; }; "className": { "alias": "className"; "required": false; "isSignal": true; }; "formFieldWidth": { "alias": "formFieldWidth"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "showRequiredAsterisk": { "alias": "showRequiredAsterisk"; "required": false; "isSignal": true; }; "showLabel": { "alias": "showLabel"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "showIcon": { "alias": "showIcon"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "form": { "alias": "form"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "open": { "alias": "open"; "required": false; "isSignal": true; }; "dropdownWidth": { "alias": "dropdownWidth"; "required": false; "isSignal": true; }; "searchLabel": { "alias": "searchLabel"; "required": false; "isSignal": true; }; "searchPlaceholder": { "alias": "searchPlaceholder"; "required": false; "isSignal": true; }; "listLabel": { "alias": "listLabel"; "required": false; "isSignal": true; }; "loadingText": { "alias": "loadingText"; "required": false; "isSignal": true; }; "noResultsText": { "alias": "noResultsText"; "required": false; "isSignal": true; }; "mobileCloseButtonText": { "alias": "mobileCloseButtonText"; "required": false; "isSignal": true; }; "showClearSelection": { "alias": "showClearSelection"; "required": false; "isSignal": true; }; "clearSelectionText": { "alias": "clearSelectionText"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "messageIcon": { "alias": "messageIcon"; "required": false; "isSignal": true; }; }, { "values": "valuesChange"; "disabled": "disabledChange"; "amountChange": "amountChange"; "dropdownToggle": "dropdownToggle"; "optionSelected": "optionSelected"; "search": "search"; }, never, ["*"], true, never>;
|
|
1373
|
+
}
|
|
1374
|
+
|
|
1375
|
+
declare class DBCustomSelectDropdown implements AfterViewInit {
|
|
1376
|
+
protected readonly cls: (...args: ClassNameArg[]) => string;
|
|
1377
|
+
id: InputSignal<DBCustomSelectDropdownProps["id"]>;
|
|
1378
|
+
className: InputSignal<DBCustomSelectDropdownProps["className"]>;
|
|
1379
|
+
width: InputSignal<DBCustomSelectDropdownProps["width"]>;
|
|
1380
|
+
_ref: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
1381
|
+
constructor();
|
|
1382
|
+
/**
|
|
1383
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
1384
|
+
* @param element the ref for the component
|
|
1385
|
+
* @param customElementSelector the custom element like `my-component`
|
|
1386
|
+
*/
|
|
1387
|
+
private enableAttributePassing;
|
|
1388
|
+
ngAfterViewInit(): void;
|
|
1389
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DBCustomSelectDropdown, never>;
|
|
1390
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DBCustomSelectDropdown, "db-custom-select-dropdown", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "className": { "alias": "className"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
1391
|
+
}
|
|
1392
|
+
|
|
1393
|
+
declare class DBCustomSelectFormField implements AfterViewInit {
|
|
1394
|
+
protected readonly cls: (...args: ClassNameArg[]) => string;
|
|
1395
|
+
id: InputSignal<DBCustomSelectFormFieldProps["id"]>;
|
|
1396
|
+
className: InputSignal<DBCustomSelectFormFieldProps["className"]>;
|
|
1397
|
+
_ref: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
1398
|
+
constructor();
|
|
1399
|
+
/**
|
|
1400
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
1401
|
+
* @param element the ref for the component
|
|
1402
|
+
* @param customElementSelector the custom element like `my-component`
|
|
1403
|
+
*/
|
|
1404
|
+
private enableAttributePassing;
|
|
1405
|
+
ngAfterViewInit(): void;
|
|
1406
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DBCustomSelectFormField, never>;
|
|
1407
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DBCustomSelectFormField, "db-custom-select-form-field", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "className": { "alias": "className"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
1408
|
+
}
|
|
1409
|
+
|
|
1410
|
+
type DBCustomSelectListDefaultProps = {
|
|
1411
|
+
label?: string;
|
|
1412
|
+
multiple?: boolean;
|
|
1413
|
+
};
|
|
1414
|
+
type DBCustomSelectListProps = DBCustomSelectListDefaultProps & GlobalProps;
|
|
1415
|
+
type DBCustomSelectListDefaultState = {};
|
|
1416
|
+
type DBCustomSelectListState = DBCustomSelectListDefaultState & GlobalState;
|
|
1417
|
+
|
|
1418
|
+
declare class DBCustomSelectList implements AfterViewInit {
|
|
1419
|
+
protected readonly cls: (...args: ClassNameArg[]) => string;
|
|
1420
|
+
multiple: InputSignal<DBCustomSelectListProps["multiple"]>;
|
|
1421
|
+
label: InputSignal<DBCustomSelectListProps["label"]>;
|
|
1422
|
+
id: InputSignal<DBCustomSelectListProps["id"]>;
|
|
1423
|
+
className: InputSignal<DBCustomSelectListProps["className"]>;
|
|
1424
|
+
_ref: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
1425
|
+
constructor();
|
|
1426
|
+
/**
|
|
1427
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
1428
|
+
* @param element the ref for the component
|
|
1429
|
+
* @param customElementSelector the custom element like `my-component`
|
|
1430
|
+
*/
|
|
1431
|
+
private enableAttributePassing;
|
|
1432
|
+
ngAfterViewInit(): void;
|
|
1433
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DBCustomSelectList, never>;
|
|
1434
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DBCustomSelectList, "db-custom-select-list", never, { "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "className": { "alias": "className"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
1435
|
+
}
|
|
1436
|
+
|
|
1437
|
+
declare class DBCustomSelectListItem implements AfterViewInit, ControlValueAccessor {
|
|
1438
|
+
private renderer;
|
|
1439
|
+
protected readonly cls: (...args: ClassNameArg[]) => string;
|
|
1440
|
+
protected readonly getBooleanAsString: (originBool?: boolean | string) => any;
|
|
1441
|
+
protected readonly getBoolean: (originBool?: boolean | string, propertyName?: string) => boolean | undefined;
|
|
1442
|
+
id: InputSignal<DBCustomSelectListItemProps["id"]>;
|
|
1443
|
+
isGroupTitle: InputSignal<DBCustomSelectListItemProps["isGroupTitle"]>;
|
|
1444
|
+
showDivider: InputSignal<DBCustomSelectListItemProps["showDivider"]>;
|
|
1445
|
+
type: InputSignal<DBCustomSelectListItemProps["type"]>;
|
|
1446
|
+
checked: ModelSignal<DBCustomSelectListItemProps["checked"]>;
|
|
1447
|
+
className: InputSignal<DBCustomSelectListItemProps["className"]>;
|
|
1448
|
+
groupTitle: InputSignal<DBCustomSelectListItemProps["groupTitle"]>;
|
|
1449
|
+
icon: InputSignal<DBCustomSelectListItemProps["icon"]>;
|
|
1450
|
+
showIcon: InputSignal<DBCustomSelectListItemProps["showIcon"]>;
|
|
1451
|
+
name: InputSignal<DBCustomSelectListItemProps["name"]>;
|
|
1452
|
+
disabled: ModelSignal<DBCustomSelectListItemProps["disabled"]>;
|
|
1453
|
+
value: InputSignal<DBCustomSelectListItemProps["value"]>;
|
|
1454
|
+
label: InputSignal<DBCustomSelectListItemProps["label"]>;
|
|
1455
|
+
change: _angular_core.OutputEmitterRef<void | Event>;
|
|
1456
|
+
_ref: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
1457
|
+
_id: _angular_core.WritableSignal<string | undefined>;
|
|
1458
|
+
hasDivider: _angular_core.WritableSignal<boolean | undefined>;
|
|
1459
|
+
handleChange(event: ChangeEvent<HTMLInputElement>): void;
|
|
1460
|
+
getIconTrailing(): "check" | "x_placeholder" | undefined;
|
|
1461
|
+
constructor(renderer: Renderer2);
|
|
1462
|
+
/**
|
|
1463
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
1464
|
+
* @param element the ref for the component
|
|
1465
|
+
* @param customElementSelector the custom element like `my-component`
|
|
1466
|
+
*/
|
|
1467
|
+
private enableAttributePassing;
|
|
1468
|
+
writeValue(value: any): void;
|
|
1469
|
+
propagateChange(_: any): void;
|
|
1470
|
+
registerOnChange(onChange: any): void;
|
|
1471
|
+
registerOnTouched(onTouched: any): void;
|
|
1472
|
+
setDisabledState(disabled: boolean): void;
|
|
1473
|
+
ngAfterViewInit(): void;
|
|
1474
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DBCustomSelectListItem, never>;
|
|
1475
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DBCustomSelectListItem, "db-custom-select-list-item", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "isGroupTitle": { "alias": "isGroupTitle"; "required": false; "isSignal": true; }; "showDivider": { "alias": "showDivider"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "className": { "alias": "className"; "required": false; "isSignal": true; }; "groupTitle": { "alias": "groupTitle"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "showIcon": { "alias": "showIcon"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; }, { "checked": "checkedChange"; "disabled": "disabledChange"; "change": "change"; }, never, ["*"], true, never>;
|
|
1476
|
+
}
|
|
1477
|
+
|
|
1478
|
+
declare const DividerMarginList: readonly ["none", "_"];
|
|
1479
|
+
type DividerMarginType = (typeof DividerMarginList)[number];
|
|
1480
|
+
declare const DividerVariantList: readonly ["horizontal", "vertical"];
|
|
1481
|
+
type DividerVariantType = (typeof DividerVariantList)[number];
|
|
1482
|
+
type DBDividerDefaultProps = {
|
|
1483
|
+
/**
|
|
1484
|
+
* Removes the margin of the divider.
|
|
1485
|
+
*/
|
|
1486
|
+
margin?: DividerMarginType;
|
|
1487
|
+
/**
|
|
1488
|
+
* Changes the orientation of the divider.
|
|
1489
|
+
*/
|
|
1490
|
+
variant?: DividerVariantType;
|
|
1491
|
+
};
|
|
1492
|
+
type DBDividerProps = DBDividerDefaultProps & GlobalProps & EmphasisProps & MarginProps & WidthProps;
|
|
1493
|
+
type DBDividerDefaultState = {};
|
|
1494
|
+
type DBDividerState = DBDividerDefaultState & GlobalState;
|
|
1495
|
+
|
|
1496
|
+
declare class DBDivider implements AfterViewInit {
|
|
1497
|
+
protected readonly cls: (...args: ClassNameArg[]) => string;
|
|
1498
|
+
id: InputSignal<DBDividerProps["id"]>;
|
|
1499
|
+
margin: InputSignal<DBDividerProps["margin"]>;
|
|
1500
|
+
variant: InputSignal<DBDividerProps["variant"]>;
|
|
1501
|
+
emphasis: InputSignal<DBDividerProps["emphasis"]>;
|
|
1502
|
+
width: InputSignal<DBDividerProps["width"]>;
|
|
1503
|
+
className: InputSignal<DBDividerProps["className"]>;
|
|
1504
|
+
_ref: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
1505
|
+
constructor();
|
|
1506
|
+
/**
|
|
1507
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
1508
|
+
* @param element the ref for the component
|
|
1509
|
+
* @param customElementSelector the custom element like `my-component`
|
|
1510
|
+
*/
|
|
1511
|
+
private enableAttributePassing;
|
|
1512
|
+
ngAfterViewInit(): void;
|
|
1513
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DBDivider, never>;
|
|
1514
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DBDivider, "db-divider", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "margin": { "alias": "margin"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "emphasis": { "alias": "emphasis"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "className": { "alias": "className"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1515
|
+
}
|
|
1516
|
+
|
|
1517
|
+
declare const DrawerBackdropList: readonly ["none", "strong", "weak", "invisible"];
|
|
1518
|
+
type DrawerBackdropType = (typeof DrawerBackdropList)[number];
|
|
1519
|
+
declare const DrawerDirectionList: readonly ["left", "right", "up", "down"];
|
|
1520
|
+
type DrawerDirectionType = (typeof DrawerDirectionList)[number];
|
|
1521
|
+
declare const DrawerVariantList: readonly ["modal", "inside"];
|
|
1522
|
+
type DrawerVariantType = (typeof DrawerVariantList)[number];
|
|
1523
|
+
declare const DrawerPositionList: readonly ["fixed", "absolute"];
|
|
1524
|
+
type DrawerPositionType = (typeof DrawerPositionList)[number];
|
|
1525
|
+
type DBDrawerDefaultProps = {
|
|
1526
|
+
/**
|
|
1527
|
+
* The backdrop attribute changes the opacity of the backdrop.
|
|
1528
|
+
* The backdrop 'none' will use `dialog.show()` instead of `dialog.showModal()`
|
|
1529
|
+
*/
|
|
1530
|
+
backdrop?: DrawerBackdropType;
|
|
1531
|
+
/**
|
|
1532
|
+
* The direction attribute changes the position & animation of the drawer.
|
|
1533
|
+
* E.g. "left" slides from left screen border to the right.
|
|
1534
|
+
*/
|
|
1535
|
+
direction?: DrawerDirectionType;
|
|
1536
|
+
/**
|
|
1537
|
+
* Slot for changing the header of the drawer.
|
|
1538
|
+
*/
|
|
1539
|
+
drawerHeader?: any;
|
|
1540
|
+
/**
|
|
1541
|
+
* The open attribute opens or closes the drawer based on the state.
|
|
1542
|
+
*/
|
|
1543
|
+
open?: boolean | string;
|
|
1544
|
+
/**
|
|
1545
|
+
* The rounded attribute changes the border radius of the corners on the "end" of the drawer.
|
|
1546
|
+
* The "end" depends on which direction you use.
|
|
1547
|
+
*/
|
|
1548
|
+
rounded?: boolean | string;
|
|
1549
|
+
/**
|
|
1550
|
+
* Set the variant modal|inside. Defaults to modal.
|
|
1551
|
+
*/
|
|
1552
|
+
variant?: DrawerVariantType;
|
|
1553
|
+
/**
|
|
1554
|
+
* The position attribute changes the css-position (fixed or absolute) of the drawer.
|
|
1555
|
+
*
|
|
1556
|
+
* - `fixed` (default): Renders with `showModal()`, creating a true modal with a focus trap.
|
|
1557
|
+
* - `absolute`: Renders with `show()`, acting as a simple overlay **without** a focus trap.
|
|
1558
|
+
*/
|
|
1559
|
+
position?: DrawerPositionType;
|
|
1560
|
+
};
|
|
1561
|
+
type DBDrawerProps = DBDrawerDefaultProps & GlobalProps & CloseEventProps<ClickEvent<HTMLButtonElement | HTMLDialogElement> | GeneralKeyboardEvent<HTMLDialogElement>> & InnerCloseButtonProps & WidthProps & SpacingProps;
|
|
1562
|
+
type DBDrawerDefaultState = {
|
|
1563
|
+
handleDialogOpen: () => void;
|
|
1564
|
+
};
|
|
1565
|
+
type DBDrawerState = DBDrawerDefaultState & GlobalState & CloseEventState<ClickEvent<HTMLButtonElement | HTMLDialogElement> | GeneralKeyboardEvent<HTMLDialogElement>> & InitializedState;
|
|
1566
|
+
|
|
1567
|
+
declare class DBDrawer implements AfterViewInit {
|
|
1568
|
+
protected readonly cls: (...args: ClassNameArg[]) => string;
|
|
1569
|
+
protected readonly getBooleanAsString: (originBool?: boolean | string) => any;
|
|
1570
|
+
protected readonly DEFAULT_CLOSE_BUTTON: string;
|
|
1571
|
+
open: InputSignal<DBDrawerProps["open"]>;
|
|
1572
|
+
position: InputSignal<DBDrawerProps["position"]>;
|
|
1573
|
+
backdrop: InputSignal<DBDrawerProps["backdrop"]>;
|
|
1574
|
+
variant: InputSignal<DBDrawerProps["variant"]>;
|
|
1575
|
+
id: InputSignal<DBDrawerProps["id"]>;
|
|
1576
|
+
direction: InputSignal<DBDrawerProps["direction"]>;
|
|
1577
|
+
className: InputSignal<DBDrawerProps["className"]>;
|
|
1578
|
+
spacing: InputSignal<DBDrawerProps["spacing"]>;
|
|
1579
|
+
width: InputSignal<DBDrawerProps["width"]>;
|
|
1580
|
+
rounded: InputSignal<DBDrawerProps["rounded"]>;
|
|
1581
|
+
closeButtonId: InputSignal<DBDrawerProps["closeButtonId"]>;
|
|
1582
|
+
closeButtonText: InputSignal<DBDrawerProps["closeButtonText"]>;
|
|
1583
|
+
close: _angular_core.OutputEmitterRef<void | KeyboardEvent | MouseEvent | undefined>;
|
|
1584
|
+
_ref: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
1585
|
+
dialogContainerRef: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
1586
|
+
initialized: _angular_core.WritableSignal<boolean>;
|
|
1587
|
+
handleClose(event?: ClickEvent<HTMLButtonElement | HTMLDialogElement> | GeneralKeyboardEvent<HTMLDialogElement> | void, forceClose?: boolean): void;
|
|
1588
|
+
handleDialogOpen(): void;
|
|
1589
|
+
constructor();
|
|
1590
|
+
/**
|
|
1591
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
1592
|
+
* @param element the ref for the component
|
|
1593
|
+
* @param customElementSelector the custom element like `my-component`
|
|
1594
|
+
*/
|
|
1595
|
+
private enableAttributePassing;
|
|
1596
|
+
ngAfterViewInit(): void;
|
|
1597
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DBDrawer, never>;
|
|
1598
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DBDrawer, "db-drawer", never, { "open": { "alias": "open"; "required": false; "isSignal": true; }; "position": { "alias": "position"; "required": false; "isSignal": true; }; "backdrop": { "alias": "backdrop"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "direction": { "alias": "direction"; "required": false; "isSignal": true; }; "className": { "alias": "className"; "required": false; "isSignal": true; }; "spacing": { "alias": "spacing"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; "closeButtonId": { "alias": "closeButtonId"; "required": false; "isSignal": true; }; "closeButtonText": { "alias": "closeButtonText"; "required": false; "isSignal": true; }; }, { "close": "close"; }, never, ["[drawer-header]", "*"], true, never>;
|
|
1599
|
+
}
|
|
1600
|
+
|
|
1601
|
+
type DBHeaderDefaultProps = {
|
|
1602
|
+
/**
|
|
1603
|
+
* Slot to pass in the DBBrand component
|
|
1604
|
+
*/
|
|
1605
|
+
brand?: any;
|
|
1606
|
+
/**
|
|
1607
|
+
* Slot to pass in a meta navigation.
|
|
1608
|
+
* - Desktop: Above the regular header
|
|
1609
|
+
* - Mobile: Inside the drawer
|
|
1610
|
+
*/
|
|
1611
|
+
metaNavigation?: any;
|
|
1612
|
+
/**
|
|
1613
|
+
* Slot to pass one or more elements like DBButton (e.g. search) as primary action.
|
|
1614
|
+
* - Desktop: Shown next to the main-navigation
|
|
1615
|
+
* - Mobile: Shown next to the brand
|
|
1616
|
+
*/
|
|
1617
|
+
primaryAction?: any;
|
|
1618
|
+
/**
|
|
1619
|
+
* Slot to pass one or more elements like DBButton (e.g. profile, language, etc.) as secondary action.
|
|
1620
|
+
* - Desktop: Shown separated by divider at the end of the header
|
|
1621
|
+
* - Mobile: Shown inside the drawer at the bottom.
|
|
1622
|
+
*/
|
|
1623
|
+
secondaryAction?: any;
|
|
1624
|
+
/**
|
|
1625
|
+
* Open/closes the drawer for mobile header or if `forceMobile` is true.
|
|
1626
|
+
*/
|
|
1627
|
+
drawerOpen?: boolean | string;
|
|
1628
|
+
/**
|
|
1629
|
+
* Forces the header to use mobile layout for desktop as well.
|
|
1630
|
+
* You should only use this setting if you really can't provide a smaller navigation.
|
|
1631
|
+
* Overwrite size of the drawer with '--db-drawer-max-width: xxx'
|
|
1632
|
+
*/
|
|
1633
|
+
forceMobile?: boolean | string;
|
|
1634
|
+
/**
|
|
1635
|
+
* This attribute sets the label for the burger menu button for mobile headers.
|
|
1636
|
+
*/
|
|
1637
|
+
burgerMenuLabel?: string;
|
|
1638
|
+
};
|
|
1639
|
+
type DBHeaderProps = DBHeaderDefaultProps & GlobalProps & ToggleEventProps & ContainerWidthProps;
|
|
1640
|
+
type DBHeaderDefaultState = {
|
|
1641
|
+
forcedToMobile?: boolean;
|
|
1642
|
+
};
|
|
1643
|
+
type DBHeaderState = DBHeaderDefaultState & GlobalState & ToggleEventState<HTMLElement> & InitializedState & NavigationBehaviorState;
|
|
1644
|
+
|
|
1645
|
+
declare class DBHeader implements AfterViewInit {
|
|
1646
|
+
dbNavigation: any;
|
|
1647
|
+
dbMetaNavigation: any;
|
|
1648
|
+
dbSecondaryAction: any;
|
|
1649
|
+
protected readonly cls: (...args: ClassNameArg[]) => string;
|
|
1650
|
+
protected readonly getBoolean: (originBool?: boolean | string, propertyName?: string) => boolean | undefined;
|
|
1651
|
+
protected readonly DEFAULT_BURGER_MENU: string;
|
|
1652
|
+
forceMobile: InputSignal<DBHeaderProps["forceMobile"]>;
|
|
1653
|
+
drawerOpen: InputSignal<DBHeaderProps["drawerOpen"]>;
|
|
1654
|
+
className: InputSignal<DBHeaderProps["className"]>;
|
|
1655
|
+
id: InputSignal<DBHeaderProps["id"]>;
|
|
1656
|
+
width: InputSignal<DBHeaderProps["width"]>;
|
|
1657
|
+
burgerMenuLabel: InputSignal<DBHeaderProps["burgerMenuLabel"]>;
|
|
1658
|
+
toggle: _angular_core.OutputEmitterRef<boolean | void>;
|
|
1659
|
+
_ref: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
1660
|
+
initialized: _angular_core.WritableSignal<boolean>;
|
|
1661
|
+
forcedToMobile: _angular_core.WritableSignal<boolean | undefined>;
|
|
1662
|
+
handleToggle(event?: any): void;
|
|
1663
|
+
handleNavigationItemClick(event: unknown): void;
|
|
1664
|
+
constructor();
|
|
1665
|
+
/**
|
|
1666
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
1667
|
+
* @param element the ref for the component
|
|
1668
|
+
* @param customElementSelector the custom element like `my-component`
|
|
1669
|
+
*/
|
|
1670
|
+
private enableAttributePassing;
|
|
1671
|
+
ngAfterViewInit(): void;
|
|
1672
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DBHeader, never>;
|
|
1673
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DBHeader, "db-header", never, { "forceMobile": { "alias": "forceMobile"; "required": false; "isSignal": true; }; "drawerOpen": { "alias": "drawerOpen"; "required": false; "isSignal": true; }; "className": { "alias": "className"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "burgerMenuLabel": { "alias": "burgerMenuLabel"; "required": false; "isSignal": true; }; }, { "toggle": "toggle"; }, ["dbNavigation", "dbMetaNavigation", "dbSecondaryAction"], ["*", "*", "*", "*", "[brand]", "*", "[primary-action]", "*"], true, never>;
|
|
1674
|
+
}
|
|
1675
|
+
|
|
1676
|
+
declare class SecondaryActionDirective {
|
|
1677
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SecondaryActionDirective, never>;
|
|
1678
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<SecondaryActionDirective, "[dbSecondaryAction]", never, {}, {}, never, never, true, never>;
|
|
1679
|
+
}
|
|
1680
|
+
|
|
1681
|
+
declare class MetaNavigationDirective {
|
|
1682
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MetaNavigationDirective, never>;
|
|
1683
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<MetaNavigationDirective, "[dbMetaNavigation]", never, {}, {}, never, never, true, never>;
|
|
1684
|
+
}
|
|
1685
|
+
|
|
1686
|
+
declare class NavigationDirective {
|
|
1687
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NavigationDirective, never>;
|
|
1688
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<NavigationDirective, "[dbNavigation]", never, {}, {}, never, never, true, never>;
|
|
1689
|
+
}
|
|
1690
|
+
|
|
1691
|
+
declare const IconWeightList: readonly ["16", "20", "24", "32", "48", "64"];
|
|
1692
|
+
type IconWeightType = (typeof IconWeightList)[number];
|
|
1693
|
+
type DBIconDefaultProps = {
|
|
1694
|
+
variant?: string;
|
|
1695
|
+
weight?: IconWeightType;
|
|
1696
|
+
};
|
|
1697
|
+
type DBIconProps = DBIconDefaultProps & GlobalProps & IconProps & TextProps;
|
|
1698
|
+
type DBIconDefaultState = {};
|
|
1699
|
+
type DBIconState = DBIconDefaultState & GlobalState;
|
|
1700
|
+
|
|
1701
|
+
declare class DBIcon implements AfterViewInit {
|
|
1702
|
+
protected readonly cls: (...args: ClassNameArg[]) => string;
|
|
1703
|
+
id: InputSignal<DBIconProps["id"]>;
|
|
1704
|
+
className: InputSignal<DBIconProps["className"]>;
|
|
1705
|
+
icon: InputSignal<DBIconProps["icon"]>;
|
|
1706
|
+
weight: InputSignal<DBIconProps["weight"]>;
|
|
1707
|
+
variant: InputSignal<DBIconProps["variant"]>;
|
|
1708
|
+
text: InputSignal<DBIconProps["text"]>;
|
|
1709
|
+
_ref: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
1710
|
+
constructor();
|
|
1711
|
+
/**
|
|
1712
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
1713
|
+
* @param element the ref for the component
|
|
1714
|
+
* @param customElementSelector the custom element like `my-component`
|
|
1715
|
+
*/
|
|
1716
|
+
private enableAttributePassing;
|
|
1717
|
+
ngAfterViewInit(): void;
|
|
1718
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DBIcon, never>;
|
|
1719
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DBIcon, "db-icon", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "className": { "alias": "className"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "weight": { "alias": "weight"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "text": { "alias": "text"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
1720
|
+
}
|
|
1721
|
+
|
|
1722
|
+
type DBInfotextDefaultProps = {};
|
|
1723
|
+
type DBInfotextProps = DBInfotextDefaultProps & GlobalProps & SemanticProps & IconProps & SizeProps & ShowIconProps & TextProps;
|
|
1724
|
+
type DBInfotextDefaultState = {};
|
|
1725
|
+
type DBInfotextState = DBInfotextDefaultState & GlobalState;
|
|
1726
|
+
|
|
1727
|
+
declare class DBInfotext implements AfterViewInit {
|
|
1728
|
+
protected readonly cls: (...args: ClassNameArg[]) => string;
|
|
1729
|
+
protected readonly getBooleanAsString: (originBool?: boolean | string) => any;
|
|
1730
|
+
id: InputSignal<DBInfotextProps["id"]>;
|
|
1731
|
+
className: InputSignal<DBInfotextProps["className"]>;
|
|
1732
|
+
icon: InputSignal<DBInfotextProps["icon"]>;
|
|
1733
|
+
semantic: InputSignal<DBInfotextProps["semantic"]>;
|
|
1734
|
+
size: InputSignal<DBInfotextProps["size"]>;
|
|
1735
|
+
showIcon: InputSignal<DBInfotextProps["showIcon"]>;
|
|
1736
|
+
text: InputSignal<DBInfotextProps["text"]>;
|
|
1737
|
+
_ref: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
1738
|
+
constructor();
|
|
1739
|
+
/**
|
|
1740
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
1741
|
+
* @param element the ref for the component
|
|
1742
|
+
* @param customElementSelector the custom element like `my-component`
|
|
1743
|
+
*/
|
|
1744
|
+
private enableAttributePassing;
|
|
1745
|
+
ngAfterViewInit(): void;
|
|
1746
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DBInfotext, never>;
|
|
1747
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DBInfotext, "db-infotext", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "className": { "alias": "className"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "semantic": { "alias": "semantic"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "showIcon": { "alias": "showIcon"; "required": false; "isSignal": true; }; "text": { "alias": "text"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
1748
|
+
}
|
|
1749
|
+
|
|
1750
|
+
declare const InputTypeList: readonly ["color", "date", "datetime-local", "email", "file", "hidden", "month", "number", "password", "range", "search", "tel", "text", "time", "url", "week"];
|
|
1751
|
+
type InputTypeType = (typeof InputTypeList)[number];
|
|
1752
|
+
type DBInputDefaultProps = {
|
|
1753
|
+
/**
|
|
1754
|
+
* Set a [data list](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/datalist) via attribute instead of children.
|
|
1755
|
+
*/
|
|
1756
|
+
dataList?: string[] | ValueLabelType[];
|
|
1757
|
+
/**
|
|
1758
|
+
* Add a custom id to [data list](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/datalist) if you're using `dataList` attribute.
|
|
1759
|
+
*/
|
|
1760
|
+
dataListId?: string;
|
|
1761
|
+
/**
|
|
1762
|
+
* Allow selecting multiple files. https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input/file#multiple
|
|
1763
|
+
*/
|
|
1764
|
+
multiple?: boolean | string;
|
|
1765
|
+
/**
|
|
1766
|
+
* Maximum value
|
|
1767
|
+
*/
|
|
1768
|
+
max?: number | string;
|
|
1769
|
+
/**
|
|
1770
|
+
* Minimum value
|
|
1771
|
+
*/
|
|
1772
|
+
min?: number | string;
|
|
1773
|
+
/**
|
|
1774
|
+
* Pattern the value must match to be valid
|
|
1775
|
+
*/
|
|
1776
|
+
pattern?: string;
|
|
1777
|
+
/**
|
|
1778
|
+
* Type of form control
|
|
1779
|
+
*/
|
|
1780
|
+
type?: InputTypeType | string;
|
|
1781
|
+
/**
|
|
1782
|
+
* Sets [step value](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/step).
|
|
1783
|
+
*/
|
|
1784
|
+
step?: number | string;
|
|
1785
|
+
/**
|
|
1786
|
+
* Hint for the [enter key behavior](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/enterkeyhint) on virtual keyboards.
|
|
1787
|
+
*/
|
|
1788
|
+
enterkeyhint?: 'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send';
|
|
1789
|
+
/**
|
|
1790
|
+
* Hint for [virtual keyboard](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/inputmode) selection.
|
|
1791
|
+
*/
|
|
1792
|
+
inputmode?: 'none' | 'text' | 'decimal' | 'numeric' | 'tel' | 'search' | 'email' | 'url';
|
|
1793
|
+
/**
|
|
1794
|
+
* The size of the message infotext. Defaults to "small".
|
|
1795
|
+
*/
|
|
1796
|
+
messageSize?: SizeType;
|
|
1797
|
+
/**
|
|
1798
|
+
* The size of the valid message infotext. Defaults to "small".
|
|
1799
|
+
*/
|
|
1800
|
+
validMessageSize?: SizeType;
|
|
1801
|
+
/**
|
|
1802
|
+
* The size of the invalid message infotext. Defaults to "small".
|
|
1803
|
+
*/
|
|
1804
|
+
invalidMessageSize?: SizeType;
|
|
1805
|
+
};
|
|
1806
|
+
type DBInputProps = DBInputDefaultProps & GlobalProps & FormTextProps & InputEventProps<HTMLInputElement> & ChangeEventProps<HTMLInputElement> & FocusEventProps<HTMLInputElement> & FormProps & IconProps & IconTrailingProps & FormMessageProps & ShowIconProps & IconLeadingProps & ShowIconLeadingProps & ShowIconTrailingProps & FormSizeProps;
|
|
1807
|
+
type DBInputDefaultState = {
|
|
1808
|
+
_dataListId?: string;
|
|
1809
|
+
getDataList: () => ValueLabelType[];
|
|
1810
|
+
};
|
|
1811
|
+
type DBInputState = DBInputDefaultState & GlobalState & InputEventState<HTMLInputElement> & ChangeEventState<HTMLInputElement> & FocusEventState<HTMLInputElement> & FormState & FromValidState;
|
|
1812
|
+
|
|
1813
|
+
declare class DBInput implements AfterViewInit, ControlValueAccessor {
|
|
1814
|
+
private renderer;
|
|
1815
|
+
protected readonly cls: (...args: ClassNameArg[]) => string;
|
|
1816
|
+
protected readonly getHideProp: (show?: boolean | string) => any;
|
|
1817
|
+
protected readonly getBooleanAsString: (originBool?: boolean | string) => any;
|
|
1818
|
+
protected readonly DEFAULT_LABEL: string;
|
|
1819
|
+
protected readonly getBoolean: (originBool?: boolean | string, propertyName?: string) => boolean | undefined;
|
|
1820
|
+
protected readonly DEFAULT_PLACEHOLDER: string;
|
|
1821
|
+
protected readonly getNumber: (originNumber?: number | string, alternativeNumber?: number | string) => number | undefined;
|
|
1822
|
+
protected readonly getInputValue: (value?: number | string, inputType?: string) => string | number | undefined;
|
|
1823
|
+
protected readonly isIOSSafari: () => boolean;
|
|
1824
|
+
protected readonly stringPropVisible: (givenString?: string, showString?: boolean | string) => boolean;
|
|
1825
|
+
protected readonly DEFAULT_VALID_MESSAGE: string;
|
|
1826
|
+
id: InputSignal<DBInputProps["id"]>;
|
|
1827
|
+
invalidMessage: InputSignal<DBInputProps["invalidMessage"]>;
|
|
1828
|
+
dataListId: InputSignal<DBInputProps["dataListId"]>;
|
|
1829
|
+
message: InputSignal<DBInputProps["message"]>;
|
|
1830
|
+
showMessage: InputSignal<DBInputProps["showMessage"]>;
|
|
1831
|
+
value: ModelSignal<DBInputProps["value"]>;
|
|
1832
|
+
validMessage: InputSignal<DBInputProps["validMessage"]>;
|
|
1833
|
+
validation: InputSignal<DBInputProps["validation"]>;
|
|
1834
|
+
required: InputSignal<DBInputProps["required"]>;
|
|
1835
|
+
minLength: InputSignal<DBInputProps["minLength"]>;
|
|
1836
|
+
maxLength: InputSignal<DBInputProps["maxLength"]>;
|
|
1837
|
+
pattern: InputSignal<DBInputProps["pattern"]>;
|
|
1838
|
+
dataList: InputSignal<DBInputProps["dataList"]>;
|
|
1839
|
+
className: InputSignal<DBInputProps["className"]>;
|
|
1840
|
+
variant: InputSignal<DBInputProps["variant"]>;
|
|
1841
|
+
showLabel: InputSignal<DBInputProps["showLabel"]>;
|
|
1842
|
+
showIconLeading: InputSignal<DBInputProps["showIconLeading"]>;
|
|
1843
|
+
showIcon: InputSignal<DBInputProps["showIcon"]>;
|
|
1844
|
+
iconLeading: InputSignal<DBInputProps["iconLeading"]>;
|
|
1845
|
+
icon: InputSignal<DBInputProps["icon"]>;
|
|
1846
|
+
iconTrailing: InputSignal<DBInputProps["iconTrailing"]>;
|
|
1847
|
+
showRequiredAsterisk: InputSignal<DBInputProps["showRequiredAsterisk"]>;
|
|
1848
|
+
showIconTrailing: InputSignal<DBInputProps["showIconTrailing"]>;
|
|
1849
|
+
label: InputSignal<DBInputProps["label"]>;
|
|
1850
|
+
fieldSizing: InputSignal<DBInputProps["fieldSizing"]>;
|
|
1851
|
+
name: InputSignal<DBInputProps["name"]>;
|
|
1852
|
+
type: InputSignal<DBInputProps["type"]>;
|
|
1853
|
+
multiple: InputSignal<DBInputProps["multiple"]>;
|
|
1854
|
+
placeholder: InputSignal<DBInputProps["placeholder"]>;
|
|
1855
|
+
disabled: ModelSignal<DBInputProps["disabled"]>;
|
|
1856
|
+
step: InputSignal<DBInputProps["step"]>;
|
|
1857
|
+
maxlength: InputSignal<DBInputProps["maxlength"]>;
|
|
1858
|
+
minlength: InputSignal<DBInputProps["minlength"]>;
|
|
1859
|
+
max: InputSignal<DBInputProps["max"]>;
|
|
1860
|
+
min: InputSignal<DBInputProps["min"]>;
|
|
1861
|
+
readOnly: InputSignal<DBInputProps["readOnly"]>;
|
|
1862
|
+
readonly: InputSignal<DBInputProps["readonly"]>;
|
|
1863
|
+
form: InputSignal<DBInputProps["form"]>;
|
|
1864
|
+
size: InputSignal<DBInputProps["size"]>;
|
|
1865
|
+
autocomplete: InputSignal<DBInputProps["autocomplete"]>;
|
|
1866
|
+
autofocus: InputSignal<DBInputProps["autofocus"]>;
|
|
1867
|
+
enterkeyhint: InputSignal<DBInputProps["enterkeyhint"]>;
|
|
1868
|
+
inputmode: InputSignal<DBInputProps["inputmode"]>;
|
|
1869
|
+
ariaDescribedBy: InputSignal<DBInputProps["ariaDescribedBy"]>;
|
|
1870
|
+
messageSize: InputSignal<DBInputProps["messageSize"]>;
|
|
1871
|
+
messageIcon: InputSignal<DBInputProps["messageIcon"]>;
|
|
1872
|
+
validMessageSize: InputSignal<DBInputProps["validMessageSize"]>;
|
|
1873
|
+
invalidMessageSize: InputSignal<DBInputProps["invalidMessageSize"]>;
|
|
1874
|
+
input: _angular_core.OutputEmitterRef<void | Event>;
|
|
1875
|
+
change: _angular_core.OutputEmitterRef<void | Event>;
|
|
1876
|
+
blur: _angular_core.OutputEmitterRef<void | FocusEvent>;
|
|
1877
|
+
focus: _angular_core.OutputEmitterRef<void | FocusEvent>;
|
|
1878
|
+
_ref: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
1879
|
+
_id: _angular_core.WritableSignal<string | undefined>;
|
|
1880
|
+
_messageId: _angular_core.WritableSignal<string | undefined>;
|
|
1881
|
+
_validMessageId: _angular_core.WritableSignal<string | undefined>;
|
|
1882
|
+
_invalidMessageId: _angular_core.WritableSignal<string | undefined>;
|
|
1883
|
+
_invalidMessage: _angular_core.WritableSignal<string | undefined>;
|
|
1884
|
+
_dataListId: _angular_core.WritableSignal<string | undefined>;
|
|
1885
|
+
_descByIds: _angular_core.WritableSignal<string | undefined>;
|
|
1886
|
+
_value: _angular_core.WritableSignal<string | undefined>;
|
|
1887
|
+
_voiceOverFallback: _angular_core.WritableSignal<string | undefined>;
|
|
1888
|
+
hasValidState(): boolean;
|
|
1889
|
+
handleValidation(): void;
|
|
1890
|
+
handleInput(event: InputEvent<HTMLInputElement>): void;
|
|
1891
|
+
handleChange(event: ChangeEvent<HTMLInputElement>): void;
|
|
1892
|
+
handleBlur(event: InteractionEvent<HTMLInputElement> | any): void;
|
|
1893
|
+
handleFocus(event: InteractionEvent<HTMLInputElement> | any): void;
|
|
1894
|
+
getDataList(): ValueLabelType[];
|
|
1895
|
+
trackByOption0(_: number, option: any): string;
|
|
1896
|
+
constructor(renderer: Renderer2);
|
|
1897
|
+
/**
|
|
1898
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
1899
|
+
* @param element the ref for the component
|
|
1900
|
+
* @param customElementSelector the custom element like `my-component`
|
|
1901
|
+
*/
|
|
1902
|
+
private enableAttributePassing;
|
|
1903
|
+
writeValue(value: any): void;
|
|
1904
|
+
propagateChange(_: any): void;
|
|
1905
|
+
registerOnChange(onChange: any): void;
|
|
1906
|
+
registerOnTouched(onTouched: any): void;
|
|
1907
|
+
setDisabledState(disabled: boolean): void;
|
|
1908
|
+
ngAfterViewInit(): void;
|
|
1909
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DBInput, never>;
|
|
1910
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DBInput, "db-input", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "invalidMessage": { "alias": "invalidMessage"; "required": false; "isSignal": true; }; "dataListId": { "alias": "dataListId"; "required": false; "isSignal": true; }; "message": { "alias": "message"; "required": false; "isSignal": true; }; "showMessage": { "alias": "showMessage"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "validMessage": { "alias": "validMessage"; "required": false; "isSignal": true; }; "validation": { "alias": "validation"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "minLength": { "alias": "minLength"; "required": false; "isSignal": true; }; "maxLength": { "alias": "maxLength"; "required": false; "isSignal": true; }; "pattern": { "alias": "pattern"; "required": false; "isSignal": true; }; "dataList": { "alias": "dataList"; "required": false; "isSignal": true; }; "className": { "alias": "className"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "showLabel": { "alias": "showLabel"; "required": false; "isSignal": true; }; "showIconLeading": { "alias": "showIconLeading"; "required": false; "isSignal": true; }; "showIcon": { "alias": "showIcon"; "required": false; "isSignal": true; }; "iconLeading": { "alias": "iconLeading"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "iconTrailing": { "alias": "iconTrailing"; "required": false; "isSignal": true; }; "showRequiredAsterisk": { "alias": "showRequiredAsterisk"; "required": false; "isSignal": true; }; "showIconTrailing": { "alias": "showIconTrailing"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "fieldSizing": { "alias": "fieldSizing"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "step": { "alias": "step"; "required": false; "isSignal": true; }; "maxlength": { "alias": "maxlength"; "required": false; "isSignal": true; }; "minlength": { "alias": "minlength"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "readOnly": { "alias": "readOnly"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "form": { "alias": "form"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "autocomplete": { "alias": "autocomplete"; "required": false; "isSignal": true; }; "autofocus": { "alias": "autofocus"; "required": false; "isSignal": true; }; "enterkeyhint": { "alias": "enterkeyhint"; "required": false; "isSignal": true; }; "inputmode": { "alias": "inputmode"; "required": false; "isSignal": true; }; "ariaDescribedBy": { "alias": "ariaDescribedBy"; "required": false; "isSignal": true; }; "messageSize": { "alias": "messageSize"; "required": false; "isSignal": true; }; "messageIcon": { "alias": "messageIcon"; "required": false; "isSignal": true; }; "validMessageSize": { "alias": "validMessageSize"; "required": false; "isSignal": true; }; "invalidMessageSize": { "alias": "invalidMessageSize"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "disabled": "disabledChange"; "input": "input"; "change": "change"; "blur": "blur"; "focus": "focus"; }, never, ["*"], true, never>;
|
|
1911
|
+
}
|
|
1912
|
+
|
|
1913
|
+
declare const LinkVariantList: readonly ["adaptive", "brand", "inline"];
|
|
1914
|
+
type LinkVariantType = (typeof LinkVariantList)[number];
|
|
1915
|
+
declare const LinkSizeList: readonly ["medium", "small"];
|
|
1916
|
+
type LinkSizeType = (typeof LinkSizeList)[number];
|
|
1917
|
+
declare const LinkContentList: readonly ["external", "internal"];
|
|
1918
|
+
type LinkContentType = (typeof LinkContentList)[number];
|
|
1919
|
+
type DBLinkDefaultProps = {
|
|
1920
|
+
/**
|
|
1921
|
+
* Adds a different arrow after the link to indicate external or internal link
|
|
1922
|
+
*/
|
|
1923
|
+
content?: LinkContentType;
|
|
1924
|
+
/**
|
|
1925
|
+
* Change the size of the link
|
|
1926
|
+
*/
|
|
1927
|
+
size?: LinkSizeType;
|
|
1928
|
+
/**
|
|
1929
|
+
* Change the styling of the link. `inline` will remove the arrow. Defaults to adaptive.
|
|
1930
|
+
*/
|
|
1931
|
+
variant?: LinkVariantType;
|
|
1932
|
+
};
|
|
1933
|
+
type DBLinkProps = DBLinkDefaultProps & GlobalProps & ClickEventProps<HTMLAnchorElement> & LinkProps & ShowIconProps & TextProps & WrapProps;
|
|
1934
|
+
type DBLinkDefaultState = {};
|
|
1935
|
+
type DBLinkState = DBLinkDefaultState & GlobalState & ClickEventState<HTMLAnchorElement>;
|
|
1936
|
+
|
|
1937
|
+
declare class DBLink implements AfterViewInit {
|
|
1938
|
+
protected readonly cls: (...args: ClassNameArg[]) => string;
|
|
1939
|
+
protected readonly getBooleanAsString: (originBool?: boolean | string) => any;
|
|
1940
|
+
id: InputSignal<DBLinkProps["id"]>;
|
|
1941
|
+
className: InputSignal<DBLinkProps["className"]>;
|
|
1942
|
+
href: InputSignal<DBLinkProps["href"]>;
|
|
1943
|
+
target: InputSignal<DBLinkProps["target"]>;
|
|
1944
|
+
rel: InputSignal<DBLinkProps["rel"]>;
|
|
1945
|
+
role: InputSignal<DBLinkProps["role"]>;
|
|
1946
|
+
hreflang: InputSignal<DBLinkProps["hreflang"]>;
|
|
1947
|
+
disabled: InputSignal<DBLinkProps["disabled"]>;
|
|
1948
|
+
size: InputSignal<DBLinkProps["size"]>;
|
|
1949
|
+
showIcon: InputSignal<DBLinkProps["showIcon"]>;
|
|
1950
|
+
variant: InputSignal<DBLinkProps["variant"]>;
|
|
1951
|
+
content: InputSignal<DBLinkProps["content"]>;
|
|
1952
|
+
wrap: InputSignal<DBLinkProps["wrap"]>;
|
|
1953
|
+
text: InputSignal<DBLinkProps["text"]>;
|
|
1954
|
+
_ref: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
1955
|
+
constructor();
|
|
1956
|
+
/**
|
|
1957
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
1958
|
+
* @param element the ref for the component
|
|
1959
|
+
* @param customElementSelector the custom element like `my-component`
|
|
1960
|
+
*/
|
|
1961
|
+
private enableAttributePassing;
|
|
1962
|
+
ngAfterViewInit(): void;
|
|
1963
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DBLink, never>;
|
|
1964
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DBLink, "db-link", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "className": { "alias": "className"; "required": false; "isSignal": true; }; "href": { "alias": "href"; "required": false; "isSignal": true; }; "target": { "alias": "target"; "required": false; "isSignal": true; }; "rel": { "alias": "rel"; "required": false; "isSignal": true; }; "role": { "alias": "role"; "required": false; "isSignal": true; }; "hreflang": { "alias": "hreflang"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "showIcon": { "alias": "showIcon"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "content": { "alias": "content"; "required": false; "isSignal": true; }; "wrap": { "alias": "wrap"; "required": false; "isSignal": true; }; "text": { "alias": "text"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
1965
|
+
}
|
|
1966
|
+
|
|
1967
|
+
type DBNavigationDefaultProps = {};
|
|
1968
|
+
type DBNavigationProps = DBNavigationDefaultProps & GlobalProps;
|
|
1969
|
+
type DBNavigationDefaultState = {};
|
|
1970
|
+
type DBNavigationState = DBNavigationDefaultState & GlobalState;
|
|
1971
|
+
|
|
1972
|
+
declare class DBNavigation implements AfterViewInit {
|
|
1973
|
+
protected readonly cls: (...args: ClassNameArg[]) => string;
|
|
1974
|
+
id: InputSignal<DBNavigationProps["id"]>;
|
|
1975
|
+
className: InputSignal<DBNavigationProps["className"]>;
|
|
1976
|
+
_ref: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
1977
|
+
_id: _angular_core.WritableSignal<string | undefined>;
|
|
1978
|
+
constructor();
|
|
1979
|
+
/**
|
|
1980
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
1981
|
+
* @param element the ref for the component
|
|
1982
|
+
* @param customElementSelector the custom element like `my-component`
|
|
1983
|
+
*/
|
|
1984
|
+
private enableAttributePassing;
|
|
1985
|
+
ngAfterViewInit(): void;
|
|
1986
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DBNavigation, never>;
|
|
1987
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DBNavigation, "db-navigation", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "className": { "alias": "className"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
1988
|
+
}
|
|
1989
|
+
|
|
1990
|
+
type TriangleData = {
|
|
1991
|
+
itemRect: DOMRect;
|
|
1992
|
+
parentElementWidth: number;
|
|
1993
|
+
subNavigationHeight: number;
|
|
1994
|
+
padding: number;
|
|
1995
|
+
outsideVX: 'left' | 'right' | undefined;
|
|
1996
|
+
outsideVY: 'top' | 'bottom' | undefined;
|
|
1997
|
+
};
|
|
1998
|
+
declare const isEventTargetNavigationItem: (event: unknown) => boolean;
|
|
1999
|
+
declare class NavigationItemSafeTriangle {
|
|
2000
|
+
private readonly element;
|
|
2001
|
+
private readonly subNavigation;
|
|
2002
|
+
private readonly parentSubNavigation;
|
|
2003
|
+
private triangleData?;
|
|
2004
|
+
private initialized;
|
|
2005
|
+
private mouseX;
|
|
2006
|
+
private mouseY;
|
|
2007
|
+
constructor(element: HTMLElement | null, subNavigation: HTMLElement | null);
|
|
2008
|
+
private init;
|
|
2009
|
+
enableFollow(): void;
|
|
2010
|
+
disableFollow(): void;
|
|
2011
|
+
private getTriangleTipX;
|
|
2012
|
+
private getTriangleTipY;
|
|
2013
|
+
private hasMouseEnteredSubNavigation;
|
|
2014
|
+
private getTriangleCoordinates;
|
|
2015
|
+
followByMouseEvent(event: MouseEvent): void;
|
|
2016
|
+
}
|
|
2017
|
+
|
|
2018
|
+
type DBNavigationItemDefaultProps = {
|
|
2019
|
+
/**
|
|
2020
|
+
* Alternative indicator for active navigation item (bold font). In contrast to the use of aria-current="page" on the contained anchor, this does not guarantee correct a11y.
|
|
2021
|
+
*/
|
|
2022
|
+
active?: boolean;
|
|
2023
|
+
/**
|
|
2024
|
+
* The disabled attribute can be set to [keep a user from clicking on the item](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#disabled).
|
|
2025
|
+
*/
|
|
2026
|
+
disabled?: boolean | string;
|
|
2027
|
+
/**
|
|
2028
|
+
* React-specific property to pass in a slot for sub-navigation
|
|
2029
|
+
*/
|
|
2030
|
+
subNavigation?: any;
|
|
2031
|
+
/**
|
|
2032
|
+
* This is for mobile navigation only, if it is set the sub-navigation is a static overlay
|
|
2033
|
+
*/
|
|
2034
|
+
subNavigationExpanded?: boolean | string;
|
|
2035
|
+
};
|
|
2036
|
+
type DBNavigationItemProps = DBNavigationItemDefaultProps & GlobalProps & ClickEventProps<HTMLButtonElement> & IconProps & WidthProps & WrapProps & NavigationBackButtonProps & ShowIconProps & TextProps;
|
|
2037
|
+
type DBNavigationItemDefaultState = {
|
|
2038
|
+
handleBackClick: (event: ClickEvent<HTMLButtonElement>) => void;
|
|
2039
|
+
hasAreaPopup: boolean;
|
|
2040
|
+
isSubNavigationExpanded: boolean;
|
|
2041
|
+
subNavigationId: string;
|
|
2042
|
+
/**
|
|
2043
|
+
* Internal state property to show/hide sub-navigation button
|
|
2044
|
+
*/
|
|
2045
|
+
hasSubNavigation?: boolean;
|
|
2046
|
+
navigationItemSafeTriangle?: NavigationItemSafeTriangle;
|
|
2047
|
+
autoClose?: boolean;
|
|
2048
|
+
};
|
|
2049
|
+
type DBNavigationItemState = DBNavigationItemDefaultState & ClickEventState<HTMLButtonElement> & GlobalState & InitializedState & NavigationBehaviorState;
|
|
2050
|
+
|
|
2051
|
+
declare class DBNavigationItem implements AfterViewInit {
|
|
2052
|
+
dbNavigationContent: any;
|
|
2053
|
+
protected readonly cls: (...args: ClassNameArg[]) => string;
|
|
2054
|
+
protected readonly getBooleanAsString: (originBool?: boolean | string) => any;
|
|
2055
|
+
protected readonly getBoolean: (originBool?: boolean | string, propertyName?: string) => boolean | undefined;
|
|
2056
|
+
protected readonly DEFAULT_BACK: string;
|
|
2057
|
+
subNavigationExpanded: InputSignal<DBNavigationItemProps["subNavigationExpanded"]>;
|
|
2058
|
+
id: InputSignal<DBNavigationItemProps["id"]>;
|
|
2059
|
+
className: InputSignal<DBNavigationItemProps["className"]>;
|
|
2060
|
+
width: InputSignal<DBNavigationItemProps["width"]>;
|
|
2061
|
+
icon: InputSignal<DBNavigationItemProps["icon"]>;
|
|
2062
|
+
showIcon: InputSignal<DBNavigationItemProps["showIcon"]>;
|
|
2063
|
+
active: InputSignal<DBNavigationItemProps["active"]>;
|
|
2064
|
+
wrap: InputSignal<DBNavigationItemProps["wrap"]>;
|
|
2065
|
+
disabled: InputSignal<DBNavigationItemProps["disabled"]>;
|
|
2066
|
+
text: InputSignal<DBNavigationItemProps["text"]>;
|
|
2067
|
+
backButtonId: InputSignal<DBNavigationItemProps["backButtonId"]>;
|
|
2068
|
+
backButtonText: InputSignal<DBNavigationItemProps["backButtonText"]>;
|
|
2069
|
+
click: _angular_core.OutputEmitterRef<void | MouseEvent>;
|
|
2070
|
+
_ref: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
2071
|
+
initialized: _angular_core.WritableSignal<boolean>;
|
|
2072
|
+
hasAreaPopup: _angular_core.WritableSignal<boolean>;
|
|
2073
|
+
hasSubNavigation: _angular_core.WritableSignal<boolean | undefined>;
|
|
2074
|
+
isSubNavigationExpanded: _angular_core.WritableSignal<boolean>;
|
|
2075
|
+
autoClose: _angular_core.WritableSignal<boolean | undefined>;
|
|
2076
|
+
subNavigationId: _angular_core.WritableSignal<string>;
|
|
2077
|
+
navigationItemSafeTriangle: _angular_core.WritableSignal<NavigationItemSafeTriangle | undefined>;
|
|
2078
|
+
handleNavigationItemClick(event: any): void;
|
|
2079
|
+
handleClick(event: ClickEvent<HTMLButtonElement> | any): void;
|
|
2080
|
+
handleBackClick(event: ClickEvent<HTMLButtonElement> | any): void;
|
|
2081
|
+
constructor();
|
|
2082
|
+
/**
|
|
2083
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
2084
|
+
* @param element the ref for the component
|
|
2085
|
+
* @param customElementSelector the custom element like `my-component`
|
|
2086
|
+
*/
|
|
2087
|
+
private enableAttributePassing;
|
|
2088
|
+
ngAfterViewInit(): void;
|
|
2089
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DBNavigationItem, never>;
|
|
2090
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DBNavigationItem, "db-navigation-item", never, { "subNavigationExpanded": { "alias": "subNavigationExpanded"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "className": { "alias": "className"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "showIcon": { "alias": "showIcon"; "required": false; "isSignal": true; }; "active": { "alias": "active"; "required": false; "isSignal": true; }; "wrap": { "alias": "wrap"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "text": { "alias": "text"; "required": false; "isSignal": true; }; "backButtonId": { "alias": "backButtonId"; "required": false; "isSignal": true; }; "backButtonText": { "alias": "backButtonText"; "required": false; "isSignal": true; }; }, { "click": "click"; }, ["dbNavigationContent"], ["*", "*", "[sub-navigation]"], true, never>;
|
|
2091
|
+
}
|
|
2092
|
+
|
|
2093
|
+
declare class NavigationContentDirective {
|
|
2094
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NavigationContentDirective, never>;
|
|
2095
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<NavigationContentDirective, "[dbNavigationContent]", never, {}, {}, never, never, true, never>;
|
|
2096
|
+
}
|
|
2097
|
+
|
|
2098
|
+
declare const NotificationVariantList: readonly ["docked", "standalone", "overlay"];
|
|
2099
|
+
type NotificationVariantType = (typeof NotificationVariantList)[number];
|
|
2100
|
+
declare const NotificationLinkVariantList: readonly ["block", "inline"];
|
|
2101
|
+
type NotificationLinkVariantType = (typeof NotificationLinkVariantList)[number];
|
|
2102
|
+
declare const NotificationAriaLiveList: readonly ["assertive", "polite", "off"];
|
|
2103
|
+
type NotificationAriaLiveType = (typeof NotificationAriaLiveList)[number];
|
|
2104
|
+
type DBNotificationDefaultProps = {
|
|
2105
|
+
/**
|
|
2106
|
+
* The arialive attribute will lead to that the screenreader interrupts immediately
|
|
2107
|
+
* and reads out the notification if set to "assertive", while it will wait for the
|
|
2108
|
+
* user's idleness when set to "polite", compare to [aria-live](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-live)
|
|
2109
|
+
*/
|
|
2110
|
+
ariaLive?: NotificationAriaLiveType;
|
|
2111
|
+
/**
|
|
2112
|
+
* The closeable attribute shows/hides the close button on the top right.
|
|
2113
|
+
*/
|
|
2114
|
+
closeable?: boolean | string;
|
|
2115
|
+
/**
|
|
2116
|
+
* The headline attribute changes the text of the bold headline.
|
|
2117
|
+
*/
|
|
2118
|
+
headline?: string | any;
|
|
2119
|
+
/**
|
|
2120
|
+
* The slotImage can be set instead of an icon.
|
|
2121
|
+
*/
|
|
2122
|
+
image?: any;
|
|
2123
|
+
/**
|
|
2124
|
+
* The slotLink can be set for non overlay-notifications
|
|
2125
|
+
*/
|
|
2126
|
+
link?: any;
|
|
2127
|
+
/**
|
|
2128
|
+
* The linkVariant will be used if slotLink is set.
|
|
2129
|
+
*/
|
|
2130
|
+
linkVariant?: NotificationLinkVariantType;
|
|
2131
|
+
/**
|
|
2132
|
+
* Enables or disables the visibility of the headline.
|
|
2133
|
+
*/
|
|
2134
|
+
showHeadline?: boolean | string;
|
|
2135
|
+
/**
|
|
2136
|
+
* The timestamp attribute can be set for overlay notifications
|
|
2137
|
+
*/
|
|
2138
|
+
timestamp?: string;
|
|
2139
|
+
/**
|
|
2140
|
+
* Enables or disables the visibility of the timestamp.
|
|
2141
|
+
*/
|
|
2142
|
+
showTimestamp?: boolean | string;
|
|
2143
|
+
/**
|
|
2144
|
+
* The variant attribute changes the styling of the notification.
|
|
2145
|
+
* - The docked notifications are used e.g. between header and main content to show a global alert.
|
|
2146
|
+
* - The standalone notifications are used e.g. inside a form to show an alert for a specific field.
|
|
2147
|
+
* - The overlay notifications are used for absolute and floating notifications like snackbars etc.
|
|
2148
|
+
*/
|
|
2149
|
+
variant?: NotificationVariantType;
|
|
2150
|
+
};
|
|
2151
|
+
type DBNotificationProps = DBNotificationDefaultProps & GlobalProps & CloseEventProps<ClickEvent<HTMLButtonElement>> & IconProps & SemanticProps & InnerCloseButtonProps & PopoverProps & ShowIconProps & TextProps;
|
|
2152
|
+
type DBNotificationDefaultState = {};
|
|
2153
|
+
type DBNotificationState = DBNotificationDefaultState & GlobalState & CloseEventState<ClickEvent<HTMLButtonElement>>;
|
|
2154
|
+
|
|
2155
|
+
declare class DBNotification implements AfterViewInit {
|
|
2156
|
+
protected readonly cls: (...args: ClassNameArg[]) => string;
|
|
2157
|
+
protected readonly getBooleanAsString: (originBool?: boolean | string) => any;
|
|
2158
|
+
protected readonly stringPropVisible: (givenString?: string, showString?: boolean | string) => boolean;
|
|
2159
|
+
protected readonly getBoolean: (originBool?: boolean | string, propertyName?: string) => boolean | undefined;
|
|
2160
|
+
protected readonly DEFAULT_CLOSE_BUTTON: string;
|
|
2161
|
+
id: InputSignal<DBNotificationProps["id"]>;
|
|
2162
|
+
className: InputSignal<DBNotificationProps["className"]>;
|
|
2163
|
+
ariaLive: InputSignal<DBNotificationProps["ariaLive"]>;
|
|
2164
|
+
semantic: InputSignal<DBNotificationProps["semantic"]>;
|
|
2165
|
+
variant: InputSignal<DBNotificationProps["variant"]>;
|
|
2166
|
+
icon: InputSignal<DBNotificationProps["icon"]>;
|
|
2167
|
+
showIcon: InputSignal<DBNotificationProps["showIcon"]>;
|
|
2168
|
+
linkVariant: InputSignal<DBNotificationProps["linkVariant"]>;
|
|
2169
|
+
headline: InputSignal<DBNotificationProps["headline"]>;
|
|
2170
|
+
showHeadline: InputSignal<DBNotificationProps["showHeadline"]>;
|
|
2171
|
+
text: InputSignal<DBNotificationProps["text"]>;
|
|
2172
|
+
timestamp: InputSignal<DBNotificationProps["timestamp"]>;
|
|
2173
|
+
showTimestamp: InputSignal<DBNotificationProps["showTimestamp"]>;
|
|
2174
|
+
closeable: InputSignal<DBNotificationProps["closeable"]>;
|
|
2175
|
+
closeButtonId: InputSignal<DBNotificationProps["closeButtonId"]>;
|
|
2176
|
+
closeButtonText: InputSignal<DBNotificationProps["closeButtonText"]>;
|
|
2177
|
+
close: _angular_core.OutputEmitterRef<void | MouseEvent | undefined>;
|
|
2178
|
+
_ref: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
2179
|
+
handleClose(event?: ClickEvent<HTMLButtonElement> | void): void;
|
|
2180
|
+
constructor();
|
|
2181
|
+
/**
|
|
2182
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
2183
|
+
* @param element the ref for the component
|
|
2184
|
+
* @param customElementSelector the custom element like `my-component`
|
|
2185
|
+
*/
|
|
2186
|
+
private enableAttributePassing;
|
|
2187
|
+
ngAfterViewInit(): void;
|
|
2188
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DBNotification, never>;
|
|
2189
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DBNotification, "db-notification", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "className": { "alias": "className"; "required": false; "isSignal": true; }; "ariaLive": { "alias": "ariaLive"; "required": false; "isSignal": true; }; "semantic": { "alias": "semantic"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "showIcon": { "alias": "showIcon"; "required": false; "isSignal": true; }; "linkVariant": { "alias": "linkVariant"; "required": false; "isSignal": true; }; "headline": { "alias": "headline"; "required": false; "isSignal": true; }; "showHeadline": { "alias": "showHeadline"; "required": false; "isSignal": true; }; "text": { "alias": "text"; "required": false; "isSignal": true; }; "timestamp": { "alias": "timestamp"; "required": false; "isSignal": true; }; "showTimestamp": { "alias": "showTimestamp"; "required": false; "isSignal": true; }; "closeable": { "alias": "closeable"; "required": false; "isSignal": true; }; "closeButtonId": { "alias": "closeButtonId"; "required": false; "isSignal": true; }; "closeButtonText": { "alias": "closeButtonText"; "required": false; "isSignal": true; }; }, { "close": "close"; }, never, ["[image]", "*", "[link]"], true, never>;
|
|
2190
|
+
}
|
|
2191
|
+
|
|
2192
|
+
declare const PageVariantList: readonly ["auto", "fixed"];
|
|
2193
|
+
type PageVariantType = (typeof PageVariantList)[number];
|
|
2194
|
+
declare const PageDocumentOverflowList: readonly ["hidden", "auto"];
|
|
2195
|
+
type PageDocumentOverflowType = (typeof PageDocumentOverflowList)[number];
|
|
2196
|
+
type DBPageDefaultProps = {
|
|
2197
|
+
/**
|
|
2198
|
+
* The documentOverflow sets the overflow:hidden/auto to the root document
|
|
2199
|
+
*/
|
|
2200
|
+
documentOverflow?: PageDocumentOverflowType;
|
|
2201
|
+
/**
|
|
2202
|
+
* Set this to have a transition with opacity to avoid layout-shifts https://simonhearne.com/2021/layout-shifts-webfonts/
|
|
2203
|
+
*/
|
|
2204
|
+
fadeIn?: boolean | string;
|
|
2205
|
+
/**
|
|
2206
|
+
* The slot can be used for React to set a footer.
|
|
2207
|
+
*/
|
|
2208
|
+
footer?: any;
|
|
2209
|
+
/**
|
|
2210
|
+
* The slot can be used for React to set a header.
|
|
2211
|
+
*/
|
|
2212
|
+
header?: any;
|
|
2213
|
+
/**
|
|
2214
|
+
* Adds `class` to `<main>` element
|
|
2215
|
+
*/
|
|
2216
|
+
mainClass?: string;
|
|
2217
|
+
/**
|
|
2218
|
+
* The variant=fixed uses flex-box to make header and footer static
|
|
2219
|
+
*/
|
|
2220
|
+
variant?: PageVariantType;
|
|
2221
|
+
};
|
|
2222
|
+
type DBPageProps = DBPageDefaultProps & GlobalProps;
|
|
2223
|
+
type DBPageDefaultState = {
|
|
2224
|
+
fontsLoaded?: boolean;
|
|
2225
|
+
};
|
|
2226
|
+
type DBPageState = DBPageDefaultState & GlobalState;
|
|
2227
|
+
|
|
2228
|
+
declare class DBPage implements AfterViewInit, OnDestroy {
|
|
2229
|
+
protected readonly cls: (...args: ClassNameArg[]) => string;
|
|
2230
|
+
protected readonly getBooleanAsString: (originBool?: boolean | string) => any;
|
|
2231
|
+
fadeIn: InputSignal<DBPageProps["fadeIn"]>;
|
|
2232
|
+
documentOverflow: InputSignal<DBPageProps["documentOverflow"]>;
|
|
2233
|
+
variant: InputSignal<DBPageProps["variant"]>;
|
|
2234
|
+
id: InputSignal<DBPageProps["id"]>;
|
|
2235
|
+
className: InputSignal<DBPageProps["className"]>;
|
|
2236
|
+
mainClass: InputSignal<DBPageProps["mainClass"]>;
|
|
2237
|
+
_ref: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
2238
|
+
fontsLoaded: _angular_core.WritableSignal<boolean | undefined>;
|
|
2239
|
+
constructor();
|
|
2240
|
+
/**
|
|
2241
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
2242
|
+
* @param element the ref for the component
|
|
2243
|
+
* @param customElementSelector the custom element like `my-component`
|
|
2244
|
+
*/
|
|
2245
|
+
private enableAttributePassing;
|
|
2246
|
+
ngOnInit(): void;
|
|
2247
|
+
ngAfterViewInit(): void;
|
|
2248
|
+
ngOnDestroy(): void;
|
|
2249
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DBPage, never>;
|
|
2250
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DBPage, "db-page", never, { "fadeIn": { "alias": "fadeIn"; "required": false; "isSignal": true; }; "documentOverflow": { "alias": "documentOverflow"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "className": { "alias": "className"; "required": false; "isSignal": true; }; "mainClass": { "alias": "mainClass"; "required": false; "isSignal": true; }; }, {}, never, ["[header]", "*", "[footer]"], true, never>;
|
|
2251
|
+
}
|
|
2252
|
+
|
|
2253
|
+
type DBPopoverDefaultProps = {
|
|
2254
|
+
/**
|
|
2255
|
+
* Use open to disable the default hover/focus behavior to use it on click or other trigger.
|
|
2256
|
+
*/
|
|
2257
|
+
open?: boolean | string;
|
|
2258
|
+
/**
|
|
2259
|
+
* The trigger to open the popover e.g. a button
|
|
2260
|
+
*/
|
|
2261
|
+
trigger?: any;
|
|
2262
|
+
};
|
|
2263
|
+
type DBPopoverProps = DBPopoverDefaultProps & GlobalProps & SpacingProps & PlacementProps & GapProps & PopoverProps;
|
|
2264
|
+
type DBPopoverDefaultState = {
|
|
2265
|
+
isExpanded?: boolean;
|
|
2266
|
+
getTrigger: () => Element | null;
|
|
2267
|
+
};
|
|
2268
|
+
type DBPopoverState = DBPopoverDefaultState & GlobalState & PopoverState & InitializedState;
|
|
2269
|
+
|
|
2270
|
+
declare class DBPopover implements AfterViewInit {
|
|
2271
|
+
protected readonly cls: (...args: ClassNameArg[]) => string;
|
|
2272
|
+
protected readonly getBooleanAsString: (originBool?: boolean | string) => any;
|
|
2273
|
+
placement: InputSignal<DBPopoverProps["placement"]>;
|
|
2274
|
+
id: InputSignal<DBPopoverProps["id"]>;
|
|
2275
|
+
className: InputSignal<DBPopoverProps["className"]>;
|
|
2276
|
+
spacing: InputSignal<DBPopoverProps["spacing"]>;
|
|
2277
|
+
gap: InputSignal<DBPopoverProps["gap"]>;
|
|
2278
|
+
animation: InputSignal<DBPopoverProps["animation"]>;
|
|
2279
|
+
open: InputSignal<DBPopoverProps["open"]>;
|
|
2280
|
+
delay: InputSignal<DBPopoverProps["delay"]>;
|
|
2281
|
+
width: InputSignal<DBPopoverProps["width"]>;
|
|
2282
|
+
_ref: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
2283
|
+
initialized: _angular_core.WritableSignal<boolean>;
|
|
2284
|
+
isExpanded: _angular_core.WritableSignal<boolean | undefined>;
|
|
2285
|
+
_documentScrollListenerCallbackId: _angular_core.WritableSignal<string | undefined>;
|
|
2286
|
+
_observer: _angular_core.WritableSignal<IntersectionObserver | undefined>;
|
|
2287
|
+
handleEscape(event: any): void;
|
|
2288
|
+
handleAutoPlacement(): void;
|
|
2289
|
+
handleDocumentScroll(event: any): void;
|
|
2290
|
+
handleEnter(): void;
|
|
2291
|
+
handleLeave(event?: any): void;
|
|
2292
|
+
getTrigger(): Element | null;
|
|
2293
|
+
constructor();
|
|
2294
|
+
/**
|
|
2295
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
2296
|
+
* @param element the ref for the component
|
|
2297
|
+
* @param customElementSelector the custom element like `my-component`
|
|
2298
|
+
*/
|
|
2299
|
+
private enableAttributePassing;
|
|
2300
|
+
ngAfterViewInit(): void;
|
|
2301
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DBPopover, never>;
|
|
2302
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DBPopover, "db-popover", never, { "placement": { "alias": "placement"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "className": { "alias": "className"; "required": false; "isSignal": true; }; "spacing": { "alias": "spacing"; "required": false; "isSignal": true; }; "gap": { "alias": "gap"; "required": false; "isSignal": true; }; "animation": { "alias": "animation"; "required": false; "isSignal": true; }; "open": { "alias": "open"; "required": false; "isSignal": true; }; "delay": { "alias": "delay"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; }, {}, never, ["[trigger]", "*"], true, never>;
|
|
2303
|
+
}
|
|
2304
|
+
|
|
2305
|
+
type DBRadioDefaultProps = {};
|
|
2306
|
+
type DBRadioProps = DBRadioDefaultProps & GlobalProps & ChangeEventProps<HTMLInputElement> & FocusEventProps<HTMLInputElement> & FormProps & FormCheckProps & SizeProps;
|
|
2307
|
+
type DBRadioDefaultState = {};
|
|
2308
|
+
type DBRadioState = DBRadioDefaultState & GlobalState & ChangeEventState<HTMLInputElement> & FocusEventState<HTMLInputElement> & FormState & InitializedState;
|
|
2309
|
+
|
|
2310
|
+
declare class DBRadio implements AfterViewInit, ControlValueAccessor {
|
|
2311
|
+
private renderer;
|
|
2312
|
+
protected readonly getHideProp: (show?: boolean | string) => any;
|
|
2313
|
+
protected readonly cls: (...args: ClassNameArg[]) => string;
|
|
2314
|
+
protected readonly getBoolean: (originBool?: boolean | string, propertyName?: string) => boolean | undefined;
|
|
2315
|
+
id: InputSignal<DBRadioProps["id"]>;
|
|
2316
|
+
checked: InputSignal<DBRadioProps["checked"]>;
|
|
2317
|
+
size: InputSignal<DBRadioProps["size"]>;
|
|
2318
|
+
showLabel: InputSignal<DBRadioProps["showLabel"]>;
|
|
2319
|
+
showRequiredAsterisk: InputSignal<DBRadioProps["showRequiredAsterisk"]>;
|
|
2320
|
+
className: InputSignal<DBRadioProps["className"]>;
|
|
2321
|
+
validation: InputSignal<DBRadioProps["validation"]>;
|
|
2322
|
+
name: InputSignal<DBRadioProps["name"]>;
|
|
2323
|
+
disabled: ModelSignal<DBRadioProps["disabled"]>;
|
|
2324
|
+
value: ModelSignal<DBRadioProps["value"]>;
|
|
2325
|
+
required: InputSignal<DBRadioProps["required"]>;
|
|
2326
|
+
label: InputSignal<DBRadioProps["label"]>;
|
|
2327
|
+
change: _angular_core.OutputEmitterRef<void | Event>;
|
|
2328
|
+
blur: _angular_core.OutputEmitterRef<void | FocusEvent>;
|
|
2329
|
+
focus: _angular_core.OutputEmitterRef<void | FocusEvent>;
|
|
2330
|
+
_ref: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
2331
|
+
initialized: _angular_core.WritableSignal<boolean>;
|
|
2332
|
+
_id: _angular_core.WritableSignal<string | undefined>;
|
|
2333
|
+
handleChange(event: ChangeEvent<HTMLInputElement> | any): void;
|
|
2334
|
+
handleBlur(event: InteractionEvent<HTMLInputElement> | any): void;
|
|
2335
|
+
handleFocus(event: InteractionEvent<HTMLInputElement> | any): void;
|
|
2336
|
+
constructor(renderer: Renderer2);
|
|
2337
|
+
/**
|
|
2338
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
2339
|
+
* @param element the ref for the component
|
|
2340
|
+
* @param customElementSelector the custom element like `my-component`
|
|
2341
|
+
*/
|
|
2342
|
+
private enableAttributePassing;
|
|
2343
|
+
writeValue(value: any): void;
|
|
2344
|
+
propagateChange(_: any): void;
|
|
2345
|
+
registerOnChange(onChange: any): void;
|
|
2346
|
+
registerOnTouched(onTouched: any): void;
|
|
2347
|
+
setDisabledState(disabled: boolean): void;
|
|
2348
|
+
ngAfterViewInit(): void;
|
|
2349
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DBRadio, never>;
|
|
2350
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DBRadio, "db-radio", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "showLabel": { "alias": "showLabel"; "required": false; "isSignal": true; }; "showRequiredAsterisk": { "alias": "showRequiredAsterisk"; "required": false; "isSignal": true; }; "className": { "alias": "className"; "required": false; "isSignal": true; }; "validation": { "alias": "validation"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; }, { "disabled": "disabledChange"; "value": "valueChange"; "change": "change"; "blur": "blur"; "focus": "focus"; }, never, ["*"], true, never>;
|
|
2351
|
+
}
|
|
2352
|
+
|
|
2353
|
+
type DBSectionDefaultProps = {};
|
|
2354
|
+
type DBSectionProps = DBSectionDefaultProps & GlobalProps & SpacingProps & ContainerWidthProps;
|
|
2355
|
+
type DBSectionDefaultState = {};
|
|
2356
|
+
type DBSectionState = DBSectionDefaultState & GlobalState;
|
|
2357
|
+
|
|
2358
|
+
declare class DBSection implements AfterViewInit {
|
|
2359
|
+
protected readonly cls: (...args: ClassNameArg[]) => string;
|
|
2360
|
+
id: InputSignal<DBSectionProps["id"]>;
|
|
2361
|
+
className: InputSignal<DBSectionProps["className"]>;
|
|
2362
|
+
spacing: InputSignal<DBSectionProps["spacing"]>;
|
|
2363
|
+
width: InputSignal<DBSectionProps["width"]>;
|
|
2364
|
+
_ref: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
2365
|
+
_id: _angular_core.WritableSignal<string | undefined>;
|
|
2366
|
+
constructor();
|
|
2367
|
+
/**
|
|
2368
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
2369
|
+
* @param element the ref for the component
|
|
2370
|
+
* @param customElementSelector the custom element like `my-component`
|
|
2371
|
+
*/
|
|
2372
|
+
private enableAttributePassing;
|
|
2373
|
+
ngAfterViewInit(): void;
|
|
2374
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DBSection, never>;
|
|
2375
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DBSection, "db-section", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "className": { "alias": "className"; "required": false; "isSignal": true; }; "spacing": { "alias": "spacing"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
2376
|
+
}
|
|
2377
|
+
|
|
2378
|
+
type DBSelectDefaultProps = {
|
|
2379
|
+
/**
|
|
2380
|
+
* @deprecated
|
|
2381
|
+
* Enables multiple select, but it isn't styled, please use DBCustomSelect/db-custom-select instead
|
|
2382
|
+
*/
|
|
2383
|
+
multiple?: boolean;
|
|
2384
|
+
/**
|
|
2385
|
+
* If you don't/can't use children/slots you can pass in the options as an array.
|
|
2386
|
+
*/
|
|
2387
|
+
options?: DBSelectOptionType[];
|
|
2388
|
+
};
|
|
2389
|
+
type DBSelectOptionType = {
|
|
2390
|
+
/**
|
|
2391
|
+
* Identifier for option
|
|
2392
|
+
*/
|
|
2393
|
+
id?: string;
|
|
2394
|
+
/**
|
|
2395
|
+
* Disables this option
|
|
2396
|
+
*/
|
|
2397
|
+
disabled?: boolean;
|
|
2398
|
+
/**
|
|
2399
|
+
* Selects this option
|
|
2400
|
+
*/
|
|
2401
|
+
selected?: boolean;
|
|
2402
|
+
/**
|
|
2403
|
+
* If the value is different from the label you want to show to the user.
|
|
2404
|
+
*/
|
|
2405
|
+
label?: string;
|
|
2406
|
+
/**
|
|
2407
|
+
* If you want to use optgroup you can nest options here.
|
|
2408
|
+
*/
|
|
2409
|
+
options?: DBSelectOptionType[];
|
|
2410
|
+
/**
|
|
2411
|
+
* The main value you select, will be shown as default label if no label is set.
|
|
2412
|
+
*/
|
|
2413
|
+
value: string | string[] | number;
|
|
2414
|
+
};
|
|
2415
|
+
type DBSelectProps = GlobalProps & ClickEventProps<HTMLSelectElement> & ChangeEventProps<HTMLSelectElement> & FocusEventProps<HTMLSelectElement> & InputEventProps<HTMLSelectElement> & FormProps & IconProps & FormMessageProps & DBSelectDefaultProps & ShowIconProps & FormSizeProps;
|
|
2416
|
+
type DBSelectDefaultState = {
|
|
2417
|
+
_placeholderId: string;
|
|
2418
|
+
getOptionLabel: (option: DBSelectOptionType) => string;
|
|
2419
|
+
};
|
|
2420
|
+
type DBSelectState = DBSelectDefaultState & GlobalState & ClickEventState<HTMLSelectElement> & ChangeEventState<HTMLSelectElement> & FocusEventState<HTMLSelectElement> & InputEventState<HTMLSelectElement> & FormState & InitializedState & FromValidState;
|
|
2421
|
+
|
|
2422
|
+
declare class DBSelect implements AfterViewInit, ControlValueAccessor {
|
|
2423
|
+
private renderer;
|
|
2424
|
+
protected readonly cls: (...args: ClassNameArg[]) => string;
|
|
2425
|
+
protected readonly getHideProp: (show?: boolean | string) => any;
|
|
2426
|
+
protected readonly getBooleanAsString: (originBool?: boolean | string) => any;
|
|
2427
|
+
protected readonly DEFAULT_LABEL: string;
|
|
2428
|
+
protected readonly getBoolean: (originBool?: boolean | string, propertyName?: string) => boolean | undefined;
|
|
2429
|
+
protected readonly getOptionKey: (option: {
|
|
2430
|
+
id?: string;
|
|
2431
|
+
value?: string | number | string[] | undefined;
|
|
2432
|
+
}, prefix: string) => string;
|
|
2433
|
+
protected readonly stringPropVisible: (givenString?: string, showString?: boolean | string) => boolean;
|
|
2434
|
+
protected readonly DEFAULT_VALID_MESSAGE: string;
|
|
2435
|
+
id: InputSignal<DBSelectProps["id"]>;
|
|
2436
|
+
invalidMessage: InputSignal<DBSelectProps["invalidMessage"]>;
|
|
2437
|
+
message: InputSignal<DBSelectProps["message"]>;
|
|
2438
|
+
showMessage: InputSignal<DBSelectProps["showMessage"]>;
|
|
2439
|
+
placeholder: InputSignal<DBSelectProps["placeholder"]>;
|
|
2440
|
+
value: ModelSignal<DBSelectProps["value"]>;
|
|
2441
|
+
validMessage: InputSignal<DBSelectProps["validMessage"]>;
|
|
2442
|
+
validation: InputSignal<DBSelectProps["validation"]>;
|
|
2443
|
+
required: InputSignal<DBSelectProps["required"]>;
|
|
2444
|
+
className: InputSignal<DBSelectProps["className"]>;
|
|
2445
|
+
variant: InputSignal<DBSelectProps["variant"]>;
|
|
2446
|
+
showLabel: InputSignal<DBSelectProps["showLabel"]>;
|
|
2447
|
+
showRequiredAsterisk: InputSignal<DBSelectProps["showRequiredAsterisk"]>;
|
|
2448
|
+
icon: InputSignal<DBSelectProps["icon"]>;
|
|
2449
|
+
showIcon: InputSignal<DBSelectProps["showIcon"]>;
|
|
2450
|
+
label: InputSignal<DBSelectProps["label"]>;
|
|
2451
|
+
disabled: ModelSignal<DBSelectProps["disabled"]>;
|
|
2452
|
+
name: InputSignal<DBSelectProps["name"]>;
|
|
2453
|
+
size: InputSignal<DBSelectProps["size"]>;
|
|
2454
|
+
autocomplete: InputSignal<DBSelectProps["autocomplete"]>;
|
|
2455
|
+
multiple: InputSignal<DBSelectProps["multiple"]>;
|
|
2456
|
+
ariaDescribedBy: InputSignal<DBSelectProps["ariaDescribedBy"]>;
|
|
2457
|
+
options: InputSignal<DBSelectProps["options"]>;
|
|
2458
|
+
messageIcon: InputSignal<DBSelectProps["messageIcon"]>;
|
|
2459
|
+
click: _angular_core.OutputEmitterRef<void | MouseEvent>;
|
|
2460
|
+
input: _angular_core.OutputEmitterRef<void | Event>;
|
|
2461
|
+
change: _angular_core.OutputEmitterRef<void | Event>;
|
|
2462
|
+
blur: _angular_core.OutputEmitterRef<void | FocusEvent>;
|
|
2463
|
+
focus: _angular_core.OutputEmitterRef<void | FocusEvent>;
|
|
2464
|
+
_ref: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
2465
|
+
_id: _angular_core.WritableSignal<string | undefined>;
|
|
2466
|
+
_messageId: _angular_core.WritableSignal<string | undefined>;
|
|
2467
|
+
_validMessageId: _angular_core.WritableSignal<string | undefined>;
|
|
2468
|
+
_invalidMessageId: _angular_core.WritableSignal<string | undefined>;
|
|
2469
|
+
_invalidMessage: _angular_core.WritableSignal<string | undefined>;
|
|
2470
|
+
_placeholderId: _angular_core.WritableSignal<string>;
|
|
2471
|
+
_descByIds: _angular_core.WritableSignal<string | undefined>;
|
|
2472
|
+
_value: _angular_core.WritableSignal<string | undefined>;
|
|
2473
|
+
initialized: _angular_core.WritableSignal<boolean>;
|
|
2474
|
+
_voiceOverFallback: _angular_core.WritableSignal<string | undefined>;
|
|
2475
|
+
hasValidState(): boolean;
|
|
2476
|
+
handleValidation(): void;
|
|
2477
|
+
handleClick(event: ClickEvent<HTMLSelectElement> | any): void;
|
|
2478
|
+
handleInput(event: InputEvent<HTMLSelectElement> | any): void;
|
|
2479
|
+
handleChange(event: ChangeEvent<HTMLSelectElement> | any): void;
|
|
2480
|
+
handleBlur(event: InteractionEvent<HTMLSelectElement> | any): void;
|
|
2481
|
+
handleFocus(event: InteractionEvent<HTMLSelectElement> | any): void;
|
|
2482
|
+
getOptionLabel(option: DBSelectOptionType): string;
|
|
2483
|
+
trackByOptgroupOption0(_: number, optgroupOption: any): string;
|
|
2484
|
+
constructor(renderer: Renderer2);
|
|
2485
|
+
/**
|
|
2486
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
2487
|
+
* @param element the ref for the component
|
|
2488
|
+
* @param customElementSelector the custom element like `my-component`
|
|
2489
|
+
*/
|
|
2490
|
+
private enableAttributePassing;
|
|
2491
|
+
writeValue(value: any): void;
|
|
2492
|
+
propagateChange(_: any): void;
|
|
2493
|
+
registerOnChange(onChange: any): void;
|
|
2494
|
+
registerOnTouched(onTouched: any): void;
|
|
2495
|
+
setDisabledState(disabled: boolean): void;
|
|
2496
|
+
ngAfterViewInit(): void;
|
|
2497
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DBSelect, never>;
|
|
2498
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DBSelect, "db-select", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "invalidMessage": { "alias": "invalidMessage"; "required": false; "isSignal": true; }; "message": { "alias": "message"; "required": false; "isSignal": true; }; "showMessage": { "alias": "showMessage"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "validMessage": { "alias": "validMessage"; "required": false; "isSignal": true; }; "validation": { "alias": "validation"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "className": { "alias": "className"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "showLabel": { "alias": "showLabel"; "required": false; "isSignal": true; }; "showRequiredAsterisk": { "alias": "showRequiredAsterisk"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "showIcon": { "alias": "showIcon"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "autocomplete": { "alias": "autocomplete"; "required": false; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "ariaDescribedBy": { "alias": "ariaDescribedBy"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; "messageIcon": { "alias": "messageIcon"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "disabled": "disabledChange"; "click": "click"; "input": "input"; "change": "change"; "blur": "blur"; "focus": "focus"; }, never, ["*"], true, never>;
|
|
2499
|
+
}
|
|
2500
|
+
|
|
2501
|
+
declare const StackVariantList: readonly ["simple", "divider"];
|
|
2502
|
+
type StackVariantType = (typeof StackVariantList)[number];
|
|
2503
|
+
declare const StackDirectionList: readonly ["row", "column"];
|
|
2504
|
+
type StackDirectionType = (typeof StackDirectionList)[number];
|
|
2505
|
+
declare const StackAlignmentList: readonly ["stretch", "start", "end", "center"];
|
|
2506
|
+
type StackAlignmentType = (typeof StackAlignmentList)[number];
|
|
2507
|
+
declare const StackJustifyContentList: readonly ["space-between", "start", "end", "center"];
|
|
2508
|
+
type StackJustifyContentType = (typeof StackJustifyContentList)[number];
|
|
2509
|
+
type DBStackDefaultProps = {
|
|
2510
|
+
/**
|
|
2511
|
+
* Change variant of stack. To use variant="divider" add a DBDivider after each element
|
|
2512
|
+
*/
|
|
2513
|
+
variant?: StackVariantType;
|
|
2514
|
+
/**
|
|
2515
|
+
* Set the direction of the stack. Defaults to "column"
|
|
2516
|
+
*/
|
|
2517
|
+
direction?: StackDirectionType;
|
|
2518
|
+
/**
|
|
2519
|
+
* If the stack should wrap if parent is too small otherwise you get an overflow
|
|
2520
|
+
*/
|
|
2521
|
+
wrap?: boolean | string;
|
|
2522
|
+
/**
|
|
2523
|
+
* Represents css align-items
|
|
2524
|
+
*/
|
|
2525
|
+
alignment?: StackAlignmentType;
|
|
2526
|
+
/**
|
|
2527
|
+
* Represents css justify-content
|
|
2528
|
+
*/
|
|
2529
|
+
justifyContent?: StackJustifyContentType;
|
|
2530
|
+
};
|
|
2531
|
+
type DBStackProps = DBStackDefaultProps & GlobalProps & GapSpacingProps;
|
|
2532
|
+
type DBStackDefaultState = {};
|
|
2533
|
+
type DBStackState = DBStackDefaultState & GlobalState;
|
|
2534
|
+
|
|
2535
|
+
declare class DBStack implements AfterViewInit {
|
|
2536
|
+
protected readonly cls: (...args: ClassNameArg[]) => string;
|
|
2537
|
+
protected readonly getBooleanAsString: (originBool?: boolean | string) => any;
|
|
2538
|
+
id: InputSignal<DBStackProps["id"]>;
|
|
2539
|
+
className: InputSignal<DBStackProps["className"]>;
|
|
2540
|
+
gap: InputSignal<DBStackProps["gap"]>;
|
|
2541
|
+
variant: InputSignal<DBStackProps["variant"]>;
|
|
2542
|
+
direction: InputSignal<DBStackProps["direction"]>;
|
|
2543
|
+
alignment: InputSignal<DBStackProps["alignment"]>;
|
|
2544
|
+
justifyContent: InputSignal<DBStackProps["justifyContent"]>;
|
|
2545
|
+
wrap: InputSignal<DBStackProps["wrap"]>;
|
|
2546
|
+
_ref: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
2547
|
+
constructor();
|
|
2548
|
+
/**
|
|
2549
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
2550
|
+
* @param element the ref for the component
|
|
2551
|
+
* @param customElementSelector the custom element like `my-component`
|
|
2552
|
+
*/
|
|
2553
|
+
private enableAttributePassing;
|
|
2554
|
+
ngAfterViewInit(): void;
|
|
2555
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DBStack, never>;
|
|
2556
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DBStack, "db-stack", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "className": { "alias": "className"; "required": false; "isSignal": true; }; "gap": { "alias": "gap"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "direction": { "alias": "direction"; "required": false; "isSignal": true; }; "alignment": { "alias": "alignment"; "required": false; "isSignal": true; }; "justifyContent": { "alias": "justifyContent"; "required": false; "isSignal": true; }; "wrap": { "alias": "wrap"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
2557
|
+
}
|
|
2558
|
+
|
|
2559
|
+
type DBSwitchDefaultProps = {
|
|
2560
|
+
/**
|
|
2561
|
+
* Add additional icons to indicate active/inactive state.
|
|
2562
|
+
*/
|
|
2563
|
+
visualAid?: boolean | string;
|
|
2564
|
+
/**
|
|
2565
|
+
* Change the variant of the label to `trailing` or `leading`. Defaults to `trailing`
|
|
2566
|
+
*/
|
|
2567
|
+
variant?: LabelVariantHorizontalType;
|
|
2568
|
+
};
|
|
2569
|
+
type DBSwitchProps = GlobalProps & ChangeEventProps<HTMLInputElement> & FocusEventProps<HTMLInputElement> & FormProps & FormCheckProps & FormMessageProps & SizeProps & IconProps & IconTrailingProps & IconLeadingProps & DBSwitchDefaultProps;
|
|
2570
|
+
type DBSwitchDefaultState = {};
|
|
2571
|
+
type DBSwitchState = DBSwitchDefaultState & GlobalState & ChangeEventState<HTMLInputElement> & FocusEventState<HTMLInputElement> & FormState & FromValidState;
|
|
2572
|
+
|
|
2573
|
+
declare class DBSwitch implements AfterViewInit, ControlValueAccessor {
|
|
2574
|
+
private renderer;
|
|
2575
|
+
protected readonly getBooleanAsString: (originBool?: boolean | string) => any;
|
|
2576
|
+
protected readonly getHideProp: (show?: boolean | string) => any;
|
|
2577
|
+
protected readonly cls: (...args: ClassNameArg[]) => string;
|
|
2578
|
+
protected readonly getBoolean: (originBool?: boolean | string, propertyName?: string) => boolean | undefined;
|
|
2579
|
+
protected readonly stringPropVisible: (givenString?: string, showString?: boolean | string) => boolean;
|
|
2580
|
+
protected readonly DEFAULT_VALID_MESSAGE: string;
|
|
2581
|
+
protected readonly DEFAULT_INVALID_MESSAGE: string;
|
|
2582
|
+
id: InputSignal<DBSwitchProps["id"]>;
|
|
2583
|
+
validation: InputSignal<DBSwitchProps["validation"]>;
|
|
2584
|
+
required: InputSignal<DBSwitchProps["required"]>;
|
|
2585
|
+
message: InputSignal<DBSwitchProps["message"]>;
|
|
2586
|
+
showMessage: InputSignal<DBSwitchProps["showMessage"]>;
|
|
2587
|
+
validMessage: InputSignal<DBSwitchProps["validMessage"]>;
|
|
2588
|
+
invalidMessage: InputSignal<DBSwitchProps["invalidMessage"]>;
|
|
2589
|
+
checked: ModelSignal<DBSwitchProps["checked"]>;
|
|
2590
|
+
visualAid: InputSignal<DBSwitchProps["visualAid"]>;
|
|
2591
|
+
size: InputSignal<DBSwitchProps["size"]>;
|
|
2592
|
+
showLabel: InputSignal<DBSwitchProps["showLabel"]>;
|
|
2593
|
+
variant: InputSignal<DBSwitchProps["variant"]>;
|
|
2594
|
+
showRequiredAsterisk: InputSignal<DBSwitchProps["showRequiredAsterisk"]>;
|
|
2595
|
+
className: InputSignal<DBSwitchProps["className"]>;
|
|
2596
|
+
value: InputSignal<DBSwitchProps["value"]>;
|
|
2597
|
+
disabled: ModelSignal<DBSwitchProps["disabled"]>;
|
|
2598
|
+
name: InputSignal<DBSwitchProps["name"]>;
|
|
2599
|
+
iconLeading: InputSignal<DBSwitchProps["iconLeading"]>;
|
|
2600
|
+
icon: InputSignal<DBSwitchProps["icon"]>;
|
|
2601
|
+
iconTrailing: InputSignal<DBSwitchProps["iconTrailing"]>;
|
|
2602
|
+
label: InputSignal<DBSwitchProps["label"]>;
|
|
2603
|
+
messageIcon: InputSignal<DBSwitchProps["messageIcon"]>;
|
|
2604
|
+
blur: _angular_core.OutputEmitterRef<void | FocusEvent>;
|
|
2605
|
+
focus: _angular_core.OutputEmitterRef<void | FocusEvent>;
|
|
2606
|
+
_ref: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
2607
|
+
_id: _angular_core.WritableSignal<string | undefined>;
|
|
2608
|
+
_messageId: _angular_core.WritableSignal<string | undefined>;
|
|
2609
|
+
_validMessageId: _angular_core.WritableSignal<string | undefined>;
|
|
2610
|
+
_invalidMessageId: _angular_core.WritableSignal<string | undefined>;
|
|
2611
|
+
_invalidMessage: _angular_core.WritableSignal<string | undefined>;
|
|
2612
|
+
_descByIds: _angular_core.WritableSignal<string | undefined>;
|
|
2613
|
+
_voiceOverFallback: _angular_core.WritableSignal<string | undefined>;
|
|
2614
|
+
hasValidState(): boolean;
|
|
2615
|
+
handleValidation(): void;
|
|
2616
|
+
handleChange(event: ChangeEvent<HTMLInputElement>): void;
|
|
2617
|
+
handleBlur(event: InteractionEvent<HTMLInputElement>): void;
|
|
2618
|
+
handleFocus(event: InteractionEvent<HTMLInputElement>): void;
|
|
2619
|
+
constructor(renderer: Renderer2);
|
|
2620
|
+
/**
|
|
2621
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
2622
|
+
* @param element the ref for the component
|
|
2623
|
+
* @param customElementSelector the custom element like `my-component`
|
|
2624
|
+
*/
|
|
2625
|
+
private enableAttributePassing;
|
|
2626
|
+
writeValue(value: any): void;
|
|
2627
|
+
propagateChange(_: any): void;
|
|
2628
|
+
registerOnChange(onChange: any): void;
|
|
2629
|
+
registerOnTouched(onTouched: any): void;
|
|
2630
|
+
setDisabledState(disabled: boolean): void;
|
|
2631
|
+
ngAfterViewInit(): void;
|
|
2632
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DBSwitch, never>;
|
|
2633
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DBSwitch, "db-switch", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "validation": { "alias": "validation"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "message": { "alias": "message"; "required": false; "isSignal": true; }; "showMessage": { "alias": "showMessage"; "required": false; "isSignal": true; }; "validMessage": { "alias": "validMessage"; "required": false; "isSignal": true; }; "invalidMessage": { "alias": "invalidMessage"; "required": false; "isSignal": true; }; "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "visualAid": { "alias": "visualAid"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "showLabel": { "alias": "showLabel"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "showRequiredAsterisk": { "alias": "showRequiredAsterisk"; "required": false; "isSignal": true; }; "className": { "alias": "className"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "iconLeading": { "alias": "iconLeading"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "iconTrailing": { "alias": "iconTrailing"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "messageIcon": { "alias": "messageIcon"; "required": false; "isSignal": true; }; }, { "checked": "checkedChange"; "disabled": "disabledChange"; "blur": "blur"; "focus": "focus"; }, never, ["*"], true, never>;
|
|
2634
|
+
}
|
|
2635
|
+
|
|
2636
|
+
type DBTabItemDefaultProps = {
|
|
2637
|
+
/**
|
|
2638
|
+
* To control the component
|
|
2639
|
+
*/
|
|
2640
|
+
checked?: boolean | string;
|
|
2641
|
+
/**
|
|
2642
|
+
* The disabled attribute can be set to keep a user from clicking on the tab-item.
|
|
2643
|
+
*/
|
|
2644
|
+
disabled?: boolean | string;
|
|
2645
|
+
/**
|
|
2646
|
+
* The label of the tab-item, if you don't want to use children.
|
|
2647
|
+
*/
|
|
2648
|
+
label?: string;
|
|
2649
|
+
/**
|
|
2650
|
+
* Define the text next to the icon specified via the icon Property to get hidden.
|
|
2651
|
+
*/
|
|
2652
|
+
noText?: boolean | string;
|
|
2653
|
+
};
|
|
2654
|
+
type DBTabItemProps = GlobalProps & DBTabItemDefaultProps & IconProps & IconTrailingProps & IconLeadingProps & ShowIconLeadingProps & ShowIconTrailingProps & ActiveProps & ChangeEventProps<HTMLInputElement> & ShowIconProps & NameProps;
|
|
2655
|
+
type DBTabItemDefaultState = {
|
|
2656
|
+
_selected: boolean;
|
|
2657
|
+
};
|
|
2658
|
+
type DBTabItemState = DBTabItemDefaultState & GlobalState & ChangeEventState<HTMLInputElement> & InitializedState & NameState;
|
|
2659
|
+
|
|
2660
|
+
declare class DBTabItem implements AfterViewInit, ControlValueAccessor {
|
|
2661
|
+
private renderer;
|
|
2662
|
+
protected readonly cls: (...args: ClassNameArg[]) => string;
|
|
2663
|
+
protected readonly getBooleanAsString: (originBool?: boolean | string) => any;
|
|
2664
|
+
protected readonly getBoolean: (originBool?: boolean | string, propertyName?: string) => boolean | undefined;
|
|
2665
|
+
active: InputSignal<DBTabItemProps["active"]>;
|
|
2666
|
+
name: InputSignal<DBTabItemProps["name"]>;
|
|
2667
|
+
className: InputSignal<DBTabItemProps["className"]>;
|
|
2668
|
+
id: InputSignal<DBTabItemProps["id"]>;
|
|
2669
|
+
iconLeading: InputSignal<DBTabItemProps["iconLeading"]>;
|
|
2670
|
+
icon: InputSignal<DBTabItemProps["icon"]>;
|
|
2671
|
+
iconTrailing: InputSignal<DBTabItemProps["iconTrailing"]>;
|
|
2672
|
+
showIconLeading: InputSignal<DBTabItemProps["showIconLeading"]>;
|
|
2673
|
+
showIcon: InputSignal<DBTabItemProps["showIcon"]>;
|
|
2674
|
+
showIconTrailing: InputSignal<DBTabItemProps["showIconTrailing"]>;
|
|
2675
|
+
noText: InputSignal<DBTabItemProps["noText"]>;
|
|
2676
|
+
disabled: ModelSignal<DBTabItemProps["disabled"]>;
|
|
2677
|
+
checked: ModelSignal<DBTabItemProps["checked"]>;
|
|
2678
|
+
label: InputSignal<DBTabItemProps["label"]>;
|
|
2679
|
+
change: _angular_core.OutputEmitterRef<void | Event>;
|
|
2680
|
+
_ref: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
2681
|
+
_selected: _angular_core.WritableSignal<boolean>;
|
|
2682
|
+
_name: _angular_core.WritableSignal<string | undefined>;
|
|
2683
|
+
initialized: _angular_core.WritableSignal<boolean>;
|
|
2684
|
+
handleNameAttribute(): void;
|
|
2685
|
+
handleChange(event: any): void;
|
|
2686
|
+
constructor(renderer: Renderer2);
|
|
2687
|
+
/**
|
|
2688
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
2689
|
+
* @param element the ref for the component
|
|
2690
|
+
* @param customElementSelector the custom element like `my-component`
|
|
2691
|
+
*/
|
|
2692
|
+
private enableAttributePassing;
|
|
2693
|
+
writeValue(value: any): void;
|
|
2694
|
+
propagateChange(_: any): void;
|
|
2695
|
+
registerOnChange(onChange: any): void;
|
|
2696
|
+
registerOnTouched(onTouched: any): void;
|
|
2697
|
+
setDisabledState(disabled: boolean): void;
|
|
2698
|
+
ngAfterViewInit(): void;
|
|
2699
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DBTabItem, never>;
|
|
2700
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DBTabItem, "db-tab-item", never, { "active": { "alias": "active"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "className": { "alias": "className"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "iconLeading": { "alias": "iconLeading"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "iconTrailing": { "alias": "iconTrailing"; "required": false; "isSignal": true; }; "showIconLeading": { "alias": "showIconLeading"; "required": false; "isSignal": true; }; "showIcon": { "alias": "showIcon"; "required": false; "isSignal": true; }; "showIconTrailing": { "alias": "showIconTrailing"; "required": false; "isSignal": true; }; "noText": { "alias": "noText"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; }, { "disabled": "disabledChange"; "checked": "checkedChange"; "change": "change"; }, never, ["*"], true, never>;
|
|
2701
|
+
}
|
|
2702
|
+
|
|
2703
|
+
type DBTabListDefaultProps = {};
|
|
2704
|
+
type DBTabListProps = DBTabListDefaultProps & GlobalProps;
|
|
2705
|
+
type DBTabListDefaultState = {};
|
|
2706
|
+
type DBTabListState = DBTabListDefaultState & GlobalState;
|
|
2707
|
+
|
|
2708
|
+
declare class DBTabList implements AfterViewInit {
|
|
2709
|
+
protected readonly cls: (...args: ClassNameArg[]) => string;
|
|
2710
|
+
id: InputSignal<DBTabListProps["id"]>;
|
|
2711
|
+
className: InputSignal<DBTabListProps["className"]>;
|
|
2712
|
+
_ref: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
2713
|
+
_id: _angular_core.WritableSignal<string | undefined>;
|
|
2714
|
+
constructor();
|
|
2715
|
+
/**
|
|
2716
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
2717
|
+
* @param element the ref for the component
|
|
2718
|
+
* @param customElementSelector the custom element like `my-component`
|
|
2719
|
+
*/
|
|
2720
|
+
private enableAttributePassing;
|
|
2721
|
+
ngAfterViewInit(): void;
|
|
2722
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DBTabList, never>;
|
|
2723
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DBTabList, "db-tab-list", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "className": { "alias": "className"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
2724
|
+
}
|
|
2725
|
+
|
|
2726
|
+
type DBTabPanelDefaultProps = {
|
|
2727
|
+
/**
|
|
2728
|
+
* The content if you don't want to use children.
|
|
2729
|
+
*/
|
|
2730
|
+
content?: string;
|
|
2731
|
+
};
|
|
2732
|
+
type DBTabPanelProps = DBTabPanelDefaultProps & GlobalProps;
|
|
2733
|
+
type DBTabPanelDefaultState = {};
|
|
2734
|
+
type DBTabPanelState = DBTabPanelDefaultState & GlobalState;
|
|
2735
|
+
|
|
2736
|
+
declare class DBTabPanel implements AfterViewInit {
|
|
2737
|
+
protected readonly cls: (...args: ClassNameArg[]) => string;
|
|
2738
|
+
className: InputSignal<DBTabPanelProps["className"]>;
|
|
2739
|
+
id: InputSignal<DBTabPanelProps["id"]>;
|
|
2740
|
+
content: InputSignal<DBTabPanelProps["content"]>;
|
|
2741
|
+
_ref: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
2742
|
+
constructor();
|
|
2743
|
+
/**
|
|
2744
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
2745
|
+
* @param element the ref for the component
|
|
2746
|
+
* @param customElementSelector the custom element like `my-component`
|
|
2747
|
+
*/
|
|
2748
|
+
private enableAttributePassing;
|
|
2749
|
+
ngAfterViewInit(): void;
|
|
2750
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DBTabPanel, never>;
|
|
2751
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DBTabPanel, "db-tab-panel", never, { "className": { "alias": "className"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "content": { "alias": "content"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
2752
|
+
}
|
|
2753
|
+
|
|
2754
|
+
declare const TabsBehaviorList: readonly ["scrollbar", "arrows"];
|
|
2755
|
+
type TabsBehaviorType = (typeof TabsBehaviorList)[number];
|
|
2756
|
+
declare const TabsInitialSelectedModeList: readonly ["auto", "manually"];
|
|
2757
|
+
type TabsInitialSelectedModeType = (typeof TabsInitialSelectedModeList)[number];
|
|
2758
|
+
type DBSimpleTabProps = DBTabItemProps & DBTabPanelProps;
|
|
2759
|
+
type DBTabsDefaultProps = {
|
|
2760
|
+
/**
|
|
2761
|
+
* Change amount of distance if you click on an arrow, only available with behavior="arrows"
|
|
2762
|
+
*/
|
|
2763
|
+
arrowScrollDistance?: number | string;
|
|
2764
|
+
/**
|
|
2765
|
+
* Show a scrollbar or buttons with arrows to navigate for horizontal tabs with overflow visible
|
|
2766
|
+
*/
|
|
2767
|
+
behavior?: TabsBehaviorType;
|
|
2768
|
+
/**
|
|
2769
|
+
* Default behavior is auto selecting the first tab, change selected tab by index
|
|
2770
|
+
*/
|
|
2771
|
+
initialSelectedIndex?: number | string;
|
|
2772
|
+
/**
|
|
2773
|
+
* Default behavior is auto selecting the first tab, disable it with 'manually'
|
|
2774
|
+
*/
|
|
2775
|
+
initialSelectedMode?: TabsInitialSelectedModeType;
|
|
2776
|
+
/**
|
|
2777
|
+
* The name of the tab bar, is required for grouping multiple tabs together. Will overwrite names from children.
|
|
2778
|
+
*/
|
|
2779
|
+
name?: string;
|
|
2780
|
+
/**
|
|
2781
|
+
* Provide simple tabs with label + text as content
|
|
2782
|
+
*/
|
|
2783
|
+
tabs?: DBSimpleTabProps[] | string;
|
|
2784
|
+
};
|
|
2785
|
+
type DBTabsEventProps = {
|
|
2786
|
+
/**
|
|
2787
|
+
* Informs the user if the current tab index has changed.
|
|
2788
|
+
*/
|
|
2789
|
+
indexChange?: (index?: number) => void;
|
|
2790
|
+
/**
|
|
2791
|
+
* Informs the user if the current tab index has changed.
|
|
2792
|
+
*/
|
|
2793
|
+
onIndexChange?: (index?: number) => void;
|
|
2794
|
+
/**
|
|
2795
|
+
* Informs the user if another tab has been selected.
|
|
2796
|
+
*/
|
|
2797
|
+
onTabSelect?: (event?: InputEvent<HTMLElement>) => void;
|
|
2798
|
+
/**
|
|
2799
|
+
* Informs the user if another tab has been selected.
|
|
2800
|
+
*/
|
|
2801
|
+
tabSelect?: (event?: InputEvent<HTMLElement>) => void;
|
|
2802
|
+
};
|
|
2803
|
+
type DBTabsProps = DBTabsDefaultProps & GlobalProps & OrientationProps & WidthProps & AlignmentProps & DBTabsEventProps;
|
|
2804
|
+
type DBTabsDefaultState = {
|
|
2805
|
+
_name: string;
|
|
2806
|
+
scrollContainer?: Element | null;
|
|
2807
|
+
scroll: (left?: boolean) => void;
|
|
2808
|
+
showScrollLeft?: boolean;
|
|
2809
|
+
showScrollRight?: boolean;
|
|
2810
|
+
evaluateScrollButtons: (tabList: Element) => void;
|
|
2811
|
+
convertTabs: () => DBSimpleTabProps[];
|
|
2812
|
+
initTabList: () => void;
|
|
2813
|
+
initTabs: (init?: boolean) => void;
|
|
2814
|
+
handleChange: (event: InputEvent<HTMLElement>) => void;
|
|
2815
|
+
_resizeObserver?: ResizeObserver;
|
|
2816
|
+
};
|
|
2817
|
+
type DBTabsState = DBTabsDefaultState & GlobalState & InitializedState;
|
|
2818
|
+
|
|
2819
|
+
declare class DBTabs implements AfterViewInit, OnDestroy {
|
|
2820
|
+
protected readonly cls: (...args: ClassNameArg[]) => string;
|
|
2821
|
+
id: InputSignal<DBTabsProps["id"]>;
|
|
2822
|
+
name: InputSignal<DBTabsProps["name"]>;
|
|
2823
|
+
tabs: InputSignal<DBTabsProps["tabs"]>;
|
|
2824
|
+
arrowScrollDistance: InputSignal<DBTabsProps["arrowScrollDistance"]>;
|
|
2825
|
+
orientation: InputSignal<DBTabsProps["orientation"]>;
|
|
2826
|
+
behavior: InputSignal<DBTabsProps["behavior"]>;
|
|
2827
|
+
initialSelectedMode: InputSignal<DBTabsProps["initialSelectedMode"]>;
|
|
2828
|
+
initialSelectedIndex: InputSignal<DBTabsProps["initialSelectedIndex"]>;
|
|
2829
|
+
className: InputSignal<DBTabsProps["className"]>;
|
|
2830
|
+
alignment: InputSignal<DBTabsProps["alignment"]>;
|
|
2831
|
+
width: InputSignal<DBTabsProps["width"]>;
|
|
2832
|
+
indexChange: _angular_core.OutputEmitterRef<number | void | undefined>;
|
|
2833
|
+
tabSelect: _angular_core.OutputEmitterRef<void | Event | undefined>;
|
|
2834
|
+
_ref: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
2835
|
+
_id: _angular_core.WritableSignal<string | undefined>;
|
|
2836
|
+
_name: _angular_core.WritableSignal<string>;
|
|
2837
|
+
initialized: _angular_core.WritableSignal<boolean>;
|
|
2838
|
+
showScrollLeft: _angular_core.WritableSignal<boolean | undefined>;
|
|
2839
|
+
showScrollRight: _angular_core.WritableSignal<boolean | undefined>;
|
|
2840
|
+
scrollContainer: _angular_core.WritableSignal<Element | null | undefined>;
|
|
2841
|
+
_resizeObserver: _angular_core.WritableSignal<ResizeObserver | undefined>;
|
|
2842
|
+
convertTabs(): any;
|
|
2843
|
+
evaluateScrollButtons(tList: Element): void;
|
|
2844
|
+
scroll(left?: boolean): void;
|
|
2845
|
+
initTabList(): void;
|
|
2846
|
+
initTabs(init?: boolean): void;
|
|
2847
|
+
handleChange(event: InputEvent<HTMLElement>): void;
|
|
2848
|
+
trackByTab0(index: number, tab: any): string;
|
|
2849
|
+
trackByTab1(index: number, tab: any): string;
|
|
2850
|
+
constructor();
|
|
2851
|
+
/**
|
|
2852
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
2853
|
+
* @param element the ref for the component
|
|
2854
|
+
* @param customElementSelector the custom element like `my-component`
|
|
2855
|
+
*/
|
|
2856
|
+
private enableAttributePassing;
|
|
2857
|
+
ngAfterViewInit(): void;
|
|
2858
|
+
ngOnDestroy(): void;
|
|
2859
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DBTabs, never>;
|
|
2860
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DBTabs, "db-tabs", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "tabs": { "alias": "tabs"; "required": false; "isSignal": true; }; "arrowScrollDistance": { "alias": "arrowScrollDistance"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "behavior": { "alias": "behavior"; "required": false; "isSignal": true; }; "initialSelectedMode": { "alias": "initialSelectedMode"; "required": false; "isSignal": true; }; "initialSelectedIndex": { "alias": "initialSelectedIndex"; "required": false; "isSignal": true; }; "className": { "alias": "className"; "required": false; "isSignal": true; }; "alignment": { "alias": "alignment"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; }, { "indexChange": "indexChange"; "tabSelect": "tabSelect"; }, never, ["*"], true, never>;
|
|
2861
|
+
}
|
|
2862
|
+
|
|
2863
|
+
declare const TagBehaviorList: readonly ["static", "removable"];
|
|
2864
|
+
type TagBehaviorType = (typeof TagBehaviorList)[number];
|
|
2865
|
+
type DBTagEventsProps = {
|
|
2866
|
+
/**
|
|
2867
|
+
* If "removeButton" attribute is set this function will be called when user clicks cancel button inside the tag.
|
|
2868
|
+
*/
|
|
2869
|
+
onRemove?: (event?: ClickEvent<HTMLButtonElement> | void) => void;
|
|
2870
|
+
/**
|
|
2871
|
+
* If "removeButton" attribute is set this function will be called when user clicks cancel button inside the tag.
|
|
2872
|
+
*/
|
|
2873
|
+
remove?: (event?: ClickEvent<HTMLButtonElement> | void) => void;
|
|
2874
|
+
};
|
|
2875
|
+
type DBTagDefaultProps = {
|
|
2876
|
+
/**
|
|
2877
|
+
* Defines the behavior of the component:
|
|
2878
|
+
* - static: default behavior without remove button
|
|
2879
|
+
* - removable: add a remove button at the end of the tag
|
|
2880
|
+
*/
|
|
2881
|
+
behavior?: TagBehaviorType | string;
|
|
2882
|
+
/**
|
|
2883
|
+
* Define the text next to the icon specified via the icon Property to get hidden.
|
|
2884
|
+
*/
|
|
2885
|
+
noText?: boolean | string;
|
|
2886
|
+
/**
|
|
2887
|
+
* The removeButton attribute shows the cancel button.
|
|
2888
|
+
*/
|
|
2889
|
+
removeButton?: string;
|
|
2890
|
+
/**
|
|
2891
|
+
* Enable/Disable icon for checkbox/radio inside tag.
|
|
2892
|
+
*/
|
|
2893
|
+
showCheckState?: boolean | string;
|
|
2894
|
+
/**
|
|
2895
|
+
* Alternative for children to set content as property.
|
|
2896
|
+
*/
|
|
2897
|
+
text?: string;
|
|
2898
|
+
/**
|
|
2899
|
+
* If "interactive" is set to true, you can pass a value to the underlying checkbox or radio input.
|
|
2900
|
+
*/
|
|
2901
|
+
value?: string;
|
|
2902
|
+
};
|
|
2903
|
+
type DBTagProps = DBTagDefaultProps & GlobalProps & IconProps & SemanticProps & OverflowProps & EmphasisProps & ShowIconProps & ContentSlotProps & DBTagEventsProps;
|
|
2904
|
+
type DBTagDefaultState = {
|
|
2905
|
+
getRemoveButtonText: () => string;
|
|
2906
|
+
handleRemove: (event?: ClickEvent<HTMLButtonElement> | void) => void;
|
|
2907
|
+
};
|
|
2908
|
+
type DBTagState = DBTagDefaultState & GlobalState;
|
|
2909
|
+
|
|
2910
|
+
declare class DBTag implements AfterViewInit {
|
|
2911
|
+
protected readonly cls: (...args: ClassNameArg[]) => string;
|
|
2912
|
+
protected readonly getBooleanAsString: (originBool?: boolean | string) => any;
|
|
2913
|
+
removeButton: InputSignal<DBTagProps["removeButton"]>;
|
|
2914
|
+
id: InputSignal<DBTagProps["id"]>;
|
|
2915
|
+
className: InputSignal<DBTagProps["className"]>;
|
|
2916
|
+
semantic: InputSignal<DBTagProps["semantic"]>;
|
|
2917
|
+
emphasis: InputSignal<DBTagProps["emphasis"]>;
|
|
2918
|
+
icon: InputSignal<DBTagProps["icon"]>;
|
|
2919
|
+
showCheckState: InputSignal<DBTagProps["showCheckState"]>;
|
|
2920
|
+
showIcon: InputSignal<DBTagProps["showIcon"]>;
|
|
2921
|
+
noText: InputSignal<DBTagProps["noText"]>;
|
|
2922
|
+
overflow: InputSignal<DBTagProps["overflow"]>;
|
|
2923
|
+
text: InputSignal<DBTagProps["text"]>;
|
|
2924
|
+
behavior: InputSignal<DBTagProps["behavior"]>;
|
|
2925
|
+
remove: _angular_core.OutputEmitterRef<void | MouseEvent | undefined>;
|
|
2926
|
+
_ref: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
2927
|
+
handleRemove(event?: ClickEvent<HTMLButtonElement> | void): void;
|
|
2928
|
+
getRemoveButtonText(): string | undefined;
|
|
2929
|
+
constructor();
|
|
2930
|
+
/**
|
|
2931
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
2932
|
+
* @param element the ref for the component
|
|
2933
|
+
* @param customElementSelector the custom element like `my-component`
|
|
2934
|
+
*/
|
|
2935
|
+
private enableAttributePassing;
|
|
2936
|
+
ngAfterViewInit(): void;
|
|
2937
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DBTag, never>;
|
|
2938
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DBTag, "db-tag", never, { "removeButton": { "alias": "removeButton"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "className": { "alias": "className"; "required": false; "isSignal": true; }; "semantic": { "alias": "semantic"; "required": false; "isSignal": true; }; "emphasis": { "alias": "emphasis"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "showCheckState": { "alias": "showCheckState"; "required": false; "isSignal": true; }; "showIcon": { "alias": "showIcon"; "required": false; "isSignal": true; }; "noText": { "alias": "noText"; "required": false; "isSignal": true; }; "overflow": { "alias": "overflow"; "required": false; "isSignal": true; }; "text": { "alias": "text"; "required": false; "isSignal": true; }; "behavior": { "alias": "behavior"; "required": false; "isSignal": true; }; }, { "remove": "remove"; }, never, ["[content]", "*"], true, never>;
|
|
2939
|
+
}
|
|
2940
|
+
|
|
2941
|
+
declare const TextareaResizeList: readonly ["none", "both", "horizontal", "vertical"];
|
|
2942
|
+
type TextareaResizeType = (typeof TextareaResizeList)[number];
|
|
2943
|
+
declare const TextareaWrapList: readonly ["hard", "soft", "off"];
|
|
2944
|
+
type TextareaWrapType = (typeof TextareaWrapList)[number];
|
|
2945
|
+
type DBTextareaDefaultProps = {
|
|
2946
|
+
/**
|
|
2947
|
+
* The visible width of the text control, in average character widths. If it is specified, it must be a positive integer
|
|
2948
|
+
*/
|
|
2949
|
+
cols?: number | string;
|
|
2950
|
+
/**
|
|
2951
|
+
* In most browsers, textareas are resizable — you'll notice the drag handle in the right-hand corner, you can control it with this
|
|
2952
|
+
*/
|
|
2953
|
+
resize?: TextareaResizeType;
|
|
2954
|
+
/**
|
|
2955
|
+
* Show/Hides drag handle in the right-hand corner - default: true
|
|
2956
|
+
*/
|
|
2957
|
+
showResizer?: boolean | string;
|
|
2958
|
+
/**
|
|
2959
|
+
* The number of visible text lines for the control. If it is specified, it must be a positive integer
|
|
2960
|
+
*/
|
|
2961
|
+
rows?: number | string;
|
|
2962
|
+
/**
|
|
2963
|
+
* Specifies whether the textarea is subject to spell checking by the underlying browser/OS
|
|
2964
|
+
*/
|
|
2965
|
+
spellCheck?: boolean;
|
|
2966
|
+
/**
|
|
2967
|
+
* Indicates how the control should wrap the value for form submission.
|
|
2968
|
+
*/
|
|
2969
|
+
wrap?: TextareaWrapType;
|
|
2970
|
+
};
|
|
2971
|
+
type DBTextareaProps = DBTextareaDefaultProps & ChangeEventProps<HTMLTextAreaElement> & InputEventProps<HTMLTextAreaElement> & FocusEventProps<HTMLTextAreaElement> & FormProps & GlobalProps & FormTextProps & FormMessageProps;
|
|
2972
|
+
type DBTextareaDefaultState = {};
|
|
2973
|
+
type DBTextareaState = DBTextareaDefaultState & ChangeEventState<HTMLTextAreaElement> & InputEventState<HTMLTextAreaElement> & FocusEventState<HTMLTextAreaElement> & FormState & GlobalState & FromValidState;
|
|
2974
|
+
|
|
2975
|
+
declare class DBTextarea implements AfterViewInit, ControlValueAccessor {
|
|
2976
|
+
private renderer;
|
|
2977
|
+
protected readonly cls: (...args: ClassNameArg[]) => string;
|
|
2978
|
+
protected readonly getHideProp: (show?: boolean | string) => any;
|
|
2979
|
+
protected readonly DEFAULT_LABEL: string;
|
|
2980
|
+
protected readonly getBoolean: (originBool?: boolean | string, propertyName?: string) => boolean | undefined;
|
|
2981
|
+
protected readonly getNumber: (originNumber?: number | string, alternativeNumber?: number | string) => number | undefined;
|
|
2982
|
+
protected readonly DEFAULT_PLACEHOLDER: string;
|
|
2983
|
+
protected readonly DEFAULT_ROWS: number;
|
|
2984
|
+
protected readonly stringPropVisible: (givenString?: string, showString?: boolean | string) => boolean;
|
|
2985
|
+
protected readonly DEFAULT_VALID_MESSAGE: string;
|
|
2986
|
+
id: InputSignal<DBTextareaProps["id"]>;
|
|
2987
|
+
invalidMessage: InputSignal<DBTextareaProps["invalidMessage"]>;
|
|
2988
|
+
message: InputSignal<DBTextareaProps["message"]>;
|
|
2989
|
+
showMessage: InputSignal<DBTextareaProps["showMessage"]>;
|
|
2990
|
+
value: ModelSignal<DBTextareaProps["value"]>;
|
|
2991
|
+
validMessage: InputSignal<DBTextareaProps["validMessage"]>;
|
|
2992
|
+
validation: InputSignal<DBTextareaProps["validation"]>;
|
|
2993
|
+
required: InputSignal<DBTextareaProps["required"]>;
|
|
2994
|
+
minLength: InputSignal<DBTextareaProps["minLength"]>;
|
|
2995
|
+
maxLength: InputSignal<DBTextareaProps["maxLength"]>;
|
|
2996
|
+
className: InputSignal<DBTextareaProps["className"]>;
|
|
2997
|
+
variant: InputSignal<DBTextareaProps["variant"]>;
|
|
2998
|
+
showRequiredAsterisk: InputSignal<DBTextareaProps["showRequiredAsterisk"]>;
|
|
2999
|
+
showLabel: InputSignal<DBTextareaProps["showLabel"]>;
|
|
3000
|
+
label: InputSignal<DBTextareaProps["label"]>;
|
|
3001
|
+
fieldSizing: InputSignal<DBTextareaProps["fieldSizing"]>;
|
|
3002
|
+
resize: InputSignal<DBTextareaProps["resize"]>;
|
|
3003
|
+
showResizer: InputSignal<DBTextareaProps["showResizer"]>;
|
|
3004
|
+
disabled: ModelSignal<DBTextareaProps["disabled"]>;
|
|
3005
|
+
readOnly: InputSignal<DBTextareaProps["readOnly"]>;
|
|
3006
|
+
readonly: InputSignal<DBTextareaProps["readonly"]>;
|
|
3007
|
+
form: InputSignal<DBTextareaProps["form"]>;
|
|
3008
|
+
maxlength: InputSignal<DBTextareaProps["maxlength"]>;
|
|
3009
|
+
minlength: InputSignal<DBTextareaProps["minlength"]>;
|
|
3010
|
+
name: InputSignal<DBTextareaProps["name"]>;
|
|
3011
|
+
wrap: InputSignal<DBTextareaProps["wrap"]>;
|
|
3012
|
+
spellCheck: InputSignal<DBTextareaProps["spellCheck"]>;
|
|
3013
|
+
autocomplete: InputSignal<DBTextareaProps["autocomplete"]>;
|
|
3014
|
+
ariaDescribedBy: InputSignal<DBTextareaProps["ariaDescribedBy"]>;
|
|
3015
|
+
placeholder: InputSignal<DBTextareaProps["placeholder"]>;
|
|
3016
|
+
rows: InputSignal<DBTextareaProps["rows"]>;
|
|
3017
|
+
cols: InputSignal<DBTextareaProps["cols"]>;
|
|
3018
|
+
messageIcon: InputSignal<DBTextareaProps["messageIcon"]>;
|
|
3019
|
+
input: _angular_core.OutputEmitterRef<void | Event>;
|
|
3020
|
+
change: _angular_core.OutputEmitterRef<void | Event>;
|
|
3021
|
+
blur: _angular_core.OutputEmitterRef<void | FocusEvent>;
|
|
3022
|
+
focus: _angular_core.OutputEmitterRef<void | FocusEvent>;
|
|
3023
|
+
_ref: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
3024
|
+
_id: _angular_core.WritableSignal<string | undefined>;
|
|
3025
|
+
_messageId: _angular_core.WritableSignal<string | undefined>;
|
|
3026
|
+
_validMessageId: _angular_core.WritableSignal<string | undefined>;
|
|
3027
|
+
_invalidMessageId: _angular_core.WritableSignal<string | undefined>;
|
|
3028
|
+
_invalidMessage: _angular_core.WritableSignal<string | undefined>;
|
|
3029
|
+
_descByIds: _angular_core.WritableSignal<string | undefined>;
|
|
3030
|
+
_value: _angular_core.WritableSignal<string | undefined>;
|
|
3031
|
+
_voiceOverFallback: _angular_core.WritableSignal<string | undefined>;
|
|
3032
|
+
hasValidState(): boolean;
|
|
3033
|
+
handleValidation(): void;
|
|
3034
|
+
handleInput(event: InputEvent<HTMLTextAreaElement>): void;
|
|
3035
|
+
handleChange(event: ChangeEvent<HTMLTextAreaElement>): void;
|
|
3036
|
+
handleBlur(event: InteractionEvent<HTMLTextAreaElement> | any): void;
|
|
3037
|
+
handleFocus(event: InteractionEvent<HTMLTextAreaElement> | any): void;
|
|
3038
|
+
constructor(renderer: Renderer2);
|
|
3039
|
+
/**
|
|
3040
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
3041
|
+
* @param element the ref for the component
|
|
3042
|
+
* @param customElementSelector the custom element like `my-component`
|
|
3043
|
+
*/
|
|
3044
|
+
private enableAttributePassing;
|
|
3045
|
+
writeValue(value: any): void;
|
|
3046
|
+
propagateChange(_: any): void;
|
|
3047
|
+
registerOnChange(onChange: any): void;
|
|
3048
|
+
registerOnTouched(onTouched: any): void;
|
|
3049
|
+
setDisabledState(disabled: boolean): void;
|
|
3050
|
+
ngAfterViewInit(): void;
|
|
3051
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DBTextarea, never>;
|
|
3052
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DBTextarea, "db-textarea", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "invalidMessage": { "alias": "invalidMessage"; "required": false; "isSignal": true; }; "message": { "alias": "message"; "required": false; "isSignal": true; }; "showMessage": { "alias": "showMessage"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "validMessage": { "alias": "validMessage"; "required": false; "isSignal": true; }; "validation": { "alias": "validation"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "minLength": { "alias": "minLength"; "required": false; "isSignal": true; }; "maxLength": { "alias": "maxLength"; "required": false; "isSignal": true; }; "className": { "alias": "className"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "showRequiredAsterisk": { "alias": "showRequiredAsterisk"; "required": false; "isSignal": true; }; "showLabel": { "alias": "showLabel"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "fieldSizing": { "alias": "fieldSizing"; "required": false; "isSignal": true; }; "resize": { "alias": "resize"; "required": false; "isSignal": true; }; "showResizer": { "alias": "showResizer"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "readOnly": { "alias": "readOnly"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "form": { "alias": "form"; "required": false; "isSignal": true; }; "maxlength": { "alias": "maxlength"; "required": false; "isSignal": true; }; "minlength": { "alias": "minlength"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "wrap": { "alias": "wrap"; "required": false; "isSignal": true; }; "spellCheck": { "alias": "spellCheck"; "required": false; "isSignal": true; }; "autocomplete": { "alias": "autocomplete"; "required": false; "isSignal": true; }; "ariaDescribedBy": { "alias": "ariaDescribedBy"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "rows": { "alias": "rows"; "required": false; "isSignal": true; }; "cols": { "alias": "cols"; "required": false; "isSignal": true; }; "messageIcon": { "alias": "messageIcon"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "disabled": "disabledChange"; "input": "input"; "change": "change"; "blur": "blur"; "focus": "focus"; }, never, never, true, never>;
|
|
3053
|
+
}
|
|
3054
|
+
|
|
3055
|
+
declare const TooltipVariantList: readonly ["description", "label"];
|
|
3056
|
+
type TooltipVariantType = (typeof TooltipVariantList)[number];
|
|
3057
|
+
type DBTooltipDefaultProps = {
|
|
3058
|
+
/**
|
|
3059
|
+
* Show/Hides arrow
|
|
3060
|
+
*/
|
|
3061
|
+
showArrow?: boolean | string;
|
|
3062
|
+
/**
|
|
3063
|
+
* Change the behavior of the tooltip:
|
|
3064
|
+
* - description: Adds `aria-describedby` to parent
|
|
3065
|
+
* - label: Adds `aria-labelledby` to parent
|
|
3066
|
+
*/
|
|
3067
|
+
variant?: TooltipVariantType;
|
|
3068
|
+
};
|
|
3069
|
+
type DBTooltipProps = DBTooltipDefaultProps & GlobalProps & EmphasisProps & PlacementProps & PopoverProps;
|
|
3070
|
+
type DBTooltipDefaultState = {
|
|
3071
|
+
getParent: () => HTMLElement;
|
|
3072
|
+
};
|
|
3073
|
+
type DBTooltipState = DBTooltipDefaultState & GlobalState & ClickEventState<HTMLElement> & PopoverState & InitializedState & DocumentScrollState;
|
|
3074
|
+
|
|
3075
|
+
declare class DBTooltip implements AfterViewInit {
|
|
3076
|
+
protected readonly cls: (...args: ClassNameArg[]) => string;
|
|
3077
|
+
protected readonly getBooleanAsString: (originBool?: boolean | string) => any;
|
|
3078
|
+
id: InputSignal<DBTooltipProps["id"]>;
|
|
3079
|
+
variant: InputSignal<DBTooltipProps["variant"]>;
|
|
3080
|
+
placement: InputSignal<DBTooltipProps["placement"]>;
|
|
3081
|
+
className: InputSignal<DBTooltipProps["className"]>;
|
|
3082
|
+
emphasis: InputSignal<DBTooltipProps["emphasis"]>;
|
|
3083
|
+
animation: InputSignal<DBTooltipProps["animation"]>;
|
|
3084
|
+
delay: InputSignal<DBTooltipProps["delay"]>;
|
|
3085
|
+
width: InputSignal<DBTooltipProps["width"]>;
|
|
3086
|
+
showArrow: InputSignal<DBTooltipProps["showArrow"]>;
|
|
3087
|
+
_ref: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
3088
|
+
_id: _angular_core.WritableSignal<string | undefined>;
|
|
3089
|
+
initialized: _angular_core.WritableSignal<boolean>;
|
|
3090
|
+
_documentScrollListenerCallbackId: _angular_core.WritableSignal<string | undefined>;
|
|
3091
|
+
_observer: _angular_core.WritableSignal<IntersectionObserver | undefined>;
|
|
3092
|
+
handleClick(event: ClickEvent<HTMLElement>): void;
|
|
3093
|
+
handleEscape(event: any): void;
|
|
3094
|
+
getParent(): any;
|
|
3095
|
+
handleAutoPlacement(parent?: HTMLElement): void;
|
|
3096
|
+
handleDocumentScroll(event: any, parent?: HTMLElement): void;
|
|
3097
|
+
handleLeave(): void;
|
|
3098
|
+
handleEnter(parent?: HTMLElement): void;
|
|
3099
|
+
constructor();
|
|
3100
|
+
/**
|
|
3101
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
3102
|
+
* @param element the ref for the component
|
|
3103
|
+
* @param customElementSelector the custom element like `my-component`
|
|
3104
|
+
*/
|
|
3105
|
+
private enableAttributePassing;
|
|
3106
|
+
ngAfterViewInit(): void;
|
|
3107
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DBTooltip, never>;
|
|
3108
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DBTooltip, "db-tooltip", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "placement": { "alias": "placement"; "required": false; "isSignal": true; }; "className": { "alias": "className"; "required": false; "isSignal": true; }; "emphasis": { "alias": "emphasis"; "required": false; "isSignal": true; }; "animation": { "alias": "animation"; "required": false; "isSignal": true; }; "delay": { "alias": "delay"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "showArrow": { "alias": "showArrow"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
3109
|
+
}
|
|
3110
|
+
|
|
3111
|
+
declare const DEFAULT_ID: string;
|
|
3112
|
+
declare const DEFAULT_LABEL: string;
|
|
3113
|
+
declare const DEFAULT_PLACEHOLDER: string;
|
|
3114
|
+
declare const DEFAULT_MESSAGE: string;
|
|
3115
|
+
declare const DEFAULT_LABEL_ID_SUFFIX: string;
|
|
3116
|
+
declare const DEFAULT_SELECT_ID_SUFFIX: string;
|
|
3117
|
+
declare const DEFAULT_MESSAGE_ID_SUFFIX: string;
|
|
3118
|
+
declare const DEFAULT_VALID_MESSAGE_ID_SUFFIX: string;
|
|
3119
|
+
declare const DEFAULT_INVALID_MESSAGE_ID_SUFFIX: string;
|
|
3120
|
+
declare const DEFAULT_PLACEHOLDER_ID_SUFFIX: string;
|
|
3121
|
+
declare const DEFAULT_DATALIST_ID_SUFFIX: string;
|
|
3122
|
+
declare const DEFAULT_VALID_MESSAGE: string;
|
|
3123
|
+
declare const DEFAULT_INVALID_MESSAGE: string;
|
|
3124
|
+
declare const DEFAULT_REMOVE: string;
|
|
3125
|
+
declare const DEFAULT_BACK: string;
|
|
3126
|
+
declare const DEFAULT_SELECTED: string;
|
|
3127
|
+
declare const DEFAULT_BURGER_MENU: string;
|
|
3128
|
+
declare const DEFAULT_ICON: string;
|
|
3129
|
+
declare const DEFAULT_ROWS: number;
|
|
3130
|
+
declare const DEFAULT_CLOSE_BUTTON: string;
|
|
3131
|
+
declare const DENSITY_CONST: string;
|
|
3132
|
+
declare const COLOR_CONST: string;
|
|
3133
|
+
declare enum DENSITY {
|
|
3134
|
+
'FUNCTIONAL' = "functional",
|
|
3135
|
+
'REGULAR' = "regular",
|
|
3136
|
+
'EXPRESSIVE' = "expressive"
|
|
3137
|
+
}
|
|
3138
|
+
declare const DENSITIES: DENSITY[];
|
|
3139
|
+
declare enum COLOR_SIMPLE {
|
|
3140
|
+
'PRIMARY' = "primary"
|
|
3141
|
+
}
|
|
3142
|
+
declare enum COLOR {
|
|
3143
|
+
'NEUTRAL_BG_LEVEL_1' = "neutral-bg-basic-level-1",
|
|
3144
|
+
'NEUTRAL_BG_LEVEL_2' = "neutral-bg-basic-level-2",
|
|
3145
|
+
'NEUTRAL_BG_LEVEL_3' = "neutral-bg-basic-level-3",
|
|
3146
|
+
'NEUTRAL_BG_TRANSPARENT_SEMI' = "neutral-bg-basic-transparent-semi",
|
|
3147
|
+
'NEUTRAL_BG_TRANSPARENT_FULL' = "neutral-bg-basic-transparent-full",
|
|
3148
|
+
'BRAND_BG_LEVEL_1' = "brand-bg-basic-level-1",
|
|
3149
|
+
'BRAND_BG_LEVEL_2' = "brand-bg-basic-level-2",
|
|
3150
|
+
'BRAND_BG_LEVEL_3' = "brand-bg-basic-level-3",
|
|
3151
|
+
'BRAND_BG_TRANSPARENT_SEMI' = "brand-bg-basic-transparent-semi",
|
|
3152
|
+
'BRAND_BG_TRANSPARENT_FULL' = "brand-bg-basic-transparent-full",
|
|
3153
|
+
'SUCCESSFUL_BG_LEVEL_1' = "successful-bg-basic-level-1",
|
|
3154
|
+
'SUCCESSFUL_BG_LEVEL_2' = "successful-bg-basic-level-2",
|
|
3155
|
+
'SUCCESSFUL_BG_LEVEL_3' = "successful-bg-basic-level-3",
|
|
3156
|
+
'SUCCESSFUL_BG_TRANSPARENT_SEMI' = "successful-bg-basic-transparent-semi",
|
|
3157
|
+
'SUCCESSFUL_BG_TRANSPARENT_FULL' = "successful-bg-basic-transparent-full",
|
|
3158
|
+
'CRITICAL_BG_LEVEL_1' = "critical-bg-basic-level-1",
|
|
3159
|
+
'CRITICAL_BG_LEVEL_2' = "critical-bg-basic-level-2",
|
|
3160
|
+
'CRITICAL_BG_LEVEL_3' = "critical-bg-basic-level-3",
|
|
3161
|
+
'CRITICAL_BG_TRANSPARENT_SEMI' = "critical-bg-basic-transparent-semi",
|
|
3162
|
+
'CRITICAL_BG_TRANSPARENT_Full' = "critical-bg-basic-transparent-full",
|
|
3163
|
+
'WARNING_BG_LEVEL_1' = "warning-bg-basic-level-1",
|
|
3164
|
+
'WARNING_BG_LEVEL_2' = "warning-bg-basic-level-2",
|
|
3165
|
+
'WARNING_BG_LEVEL_3' = "warning-bg-basic-level-3",
|
|
3166
|
+
'WARNING_BG_TRANSPARENT_SEMI' = "warning-bg-basic-transparent-semi",
|
|
3167
|
+
'WARNING_BG_TRANSPARENT_FULL' = "warning-bg-basic-transparent-full",
|
|
3168
|
+
'INFORMATIONAL_BG_LEVEL_1' = "informational-bg-basic-level-1",
|
|
3169
|
+
'INFORMATIONAL_BG_LEVEL_2' = "informational-bg-basic-level-2",
|
|
3170
|
+
'INFORMATIONAL_BG_LEVEL_3' = "informational-bg-basic-level-3",
|
|
3171
|
+
'INFORMATIONAL_BG_TRANSPARENT_SEMI' = "informational-bg-basic-transparent-semi",
|
|
3172
|
+
'INFORMATIONAL_BG_TRANSPARENT_FULL' = "informational-bg-basic-transparent-full"
|
|
3173
|
+
}
|
|
3174
|
+
declare const COLORS: COLOR[];
|
|
3175
|
+
declare const COLORS_SIMPLE: COLOR_SIMPLE[];
|
|
3176
|
+
declare enum SEMANTIC {
|
|
3177
|
+
'CRITICAL' = "critical",
|
|
3178
|
+
'INFORMATIONAL' = "informational",
|
|
3179
|
+
'WARNING' = "warning",
|
|
3180
|
+
'SUCCESSFUL' = "successful"
|
|
3181
|
+
}
|
|
3182
|
+
declare const SEMANTICS: SEMANTIC[];
|
|
3183
|
+
declare const DEFAULT_VIEWPORT: {
|
|
3184
|
+
width: number;
|
|
3185
|
+
height: number;
|
|
3186
|
+
};
|
|
3187
|
+
declare const DESKTOP_VIEWPORT: {
|
|
3188
|
+
width: number;
|
|
3189
|
+
height: number;
|
|
3190
|
+
};
|
|
3191
|
+
/**
|
|
3192
|
+
* Use those viewports if your component has a css media-query otherwise use the DEFAULT_VIEWPORT
|
|
3193
|
+
*/
|
|
3194
|
+
declare const TESTING_VIEWPORTS: {
|
|
3195
|
+
width: number;
|
|
3196
|
+
height: number;
|
|
3197
|
+
name: string;
|
|
3198
|
+
}[];
|
|
3199
|
+
|
|
3200
|
+
declare class DocumentClickListener {
|
|
3201
|
+
private static callbacks;
|
|
3202
|
+
private static _instance;
|
|
3203
|
+
private static runCallbacks;
|
|
3204
|
+
constructor();
|
|
3205
|
+
addCallback(callback: (event: any) => void): string;
|
|
3206
|
+
removeCallback(id: string): void;
|
|
3207
|
+
}
|
|
3208
|
+
|
|
3209
|
+
declare class DocumentScrollListener {
|
|
3210
|
+
private static callbacks;
|
|
3211
|
+
private static _instance;
|
|
3212
|
+
private static runCallbacks;
|
|
3213
|
+
private ticking;
|
|
3214
|
+
constructor();
|
|
3215
|
+
addCallback(callback: (event: any) => void): string;
|
|
3216
|
+
removeCallback(id: string): void;
|
|
3217
|
+
}
|
|
3218
|
+
|
|
3219
|
+
interface DBDataOutsidePair {
|
|
3220
|
+
vx?: 'left' | 'right';
|
|
3221
|
+
vy?: 'top' | 'bottom';
|
|
3222
|
+
}
|
|
3223
|
+
declare const handleDataOutside: (el: HTMLElement) => DBDataOutsidePair;
|
|
3224
|
+
declare const handleFixedDropdown: (element: HTMLElement, parent: HTMLElement, placement: string) => void;
|
|
3225
|
+
declare const getFloatingProps: (element: HTMLElement, parent: HTMLElement, placement: string) => {
|
|
3226
|
+
top: number;
|
|
3227
|
+
bottom: number;
|
|
3228
|
+
right: number;
|
|
3229
|
+
height: number;
|
|
3230
|
+
width: number;
|
|
3231
|
+
left: number;
|
|
3232
|
+
childHeight: number;
|
|
3233
|
+
childWidth: number;
|
|
3234
|
+
correctedPlacement: string;
|
|
3235
|
+
innerWidth: number;
|
|
3236
|
+
innerHeight: number;
|
|
3237
|
+
};
|
|
3238
|
+
declare const handleFixedPopover: (element: HTMLElement, parent: HTMLElement, placement: string) => void;
|
|
3239
|
+
|
|
3240
|
+
export { AccordionBehaviorList, AccordionVariantList, AlignmentList, AutoCompleteList, BadgePlacementList, ButtonTypeList, ButtonVariantList, COLOR, COLORS, COLORS_SIMPLE, COLOR_CONST, COLOR_SIMPLE, CardBehaviorList, CardElevationLevelList, CustomSelectDropdownWidthList, CustomSelectListItemTypeList, DBAccordion, DBAccordionItem, DBBadge, DBBrand, DBButton, DBCard, DBCheckbox, DBCustomSelect, DBCustomSelectDropdown, DBCustomSelectFormField, DBCustomSelectList, DBCustomSelectListItem, DBDivider, DBDrawer, DBHeader, DBIcon, DBInfotext, DBInput, DBLink, DBNavigation, DBNavigationItem, DBNotification, DBPage, DBPopover, DBRadio, DBSection, DBSelect, DBStack, DBSwitch, DBTabItem, DBTabList, DBTabPanel, DBTabs, DBTag, DBTextarea, DBTooltip, DEFAULT_BACK, DEFAULT_BURGER_MENU, DEFAULT_CLOSE_BUTTON, DEFAULT_DATALIST_ID_SUFFIX, DEFAULT_ICON, DEFAULT_ID, DEFAULT_INVALID_MESSAGE, DEFAULT_INVALID_MESSAGE_ID_SUFFIX, DEFAULT_LABEL, DEFAULT_LABEL_ID_SUFFIX, DEFAULT_MESSAGE, DEFAULT_MESSAGE_ID_SUFFIX, DEFAULT_PLACEHOLDER, DEFAULT_PLACEHOLDER_ID_SUFFIX, DEFAULT_REMOVE, DEFAULT_ROWS, DEFAULT_SELECTED, DEFAULT_SELECT_ID_SUFFIX, DEFAULT_VALID_MESSAGE, DEFAULT_VALID_MESSAGE_ID_SUFFIX, DEFAULT_VIEWPORT, DENSITIES, DENSITY, DENSITY_CONST, DESKTOP_VIEWPORT, DividerMarginList, DividerVariantList, DocumentClickListener, DocumentScrollListener, DrawerBackdropList, DrawerDirectionList, DrawerPositionList, DrawerVariantList, EmphasisList, FieldSizingList, GapSpacingList, IconWeightList, InputTypeList, LabelVariantHorizontalList, LabelVariantList, LinkContentList, LinkReferrerPolicyList, LinkSizeList, LinkTargetList, LinkVariantList, MarginList, MaxWidthList, MetaNavigationDirective, NavigationContentDirective, NavigationDirective, NavigationItemSafeTriangle, NotificationAriaLiveList, NotificationLinkVariantList, NotificationVariantList, OrientationList, PageDocumentOverflowList, PageVariantList, PlacementHorizontalList, PlacementList, PlacementVerticalList, PopoverDelayList, PopoverWidthList, SEMANTIC, SEMANTICS, SecondaryActionDirective, SelectedTypeList, SemanticList, SizeList, SpacingList, StackAlignmentList, StackDirectionList, StackJustifyContentList, StackVariantList, TESTING_VIEWPORTS, TabsBehaviorList, TabsInitialSelectedModeList, TagBehaviorList, TextareaResizeList, TextareaWrapList, TooltipVariantList, ValidationList, WidthList, addAttributeToChildren, cls, delay, getBoolean, getBooleanAsString, getFloatingProps, getHideProp, getInputValue, getNumber, getOptionKey, getSearchInput, handleDataOutside, handleFixedDropdown, handleFixedPopover, hasVoiceOver, isArrayOfStrings, isEventTargetNavigationItem, isIOSSafari, isKeyboardEvent, stringPropVisible, uuid };
|
|
3241
|
+
export type { AccordionBehaviorType, AccordionVariantType, ActiveProps, AlignmentProps, AlignmentType, AriaControlsProps, AutoCompleteType, BadgePlacementType, BaseFormProps, ButtonTypeType, ButtonVariantType, CardBehaviorType, CardElevationLevelType, ChangeEvent, ChangeEventProps, ChangeEventState, ClassNameArg, ClickEvent, ClickEventProps, ClickEventState, CloseEventProps, CloseEventState, ContainerWidthProps, ContentSlotProps, CustomFormProps, CustomSelectDropdownWidthType, CustomSelectListItemTypeType, CustomSelectOptionType, DBAccordionDefaultProps, DBAccordionDefaultState, DBAccordionItemDefaultProps, DBAccordionItemDefaultState, DBAccordionItemProps, DBAccordionItemState, DBAccordionProps, DBAccordionState, DBBadgeDefaultProps, DBBadgeDefaultState, DBBadgeProps, DBBadgeState, DBBrandDefaultProps, DBBrandDefaultState, DBBrandProps, DBBrandState, DBButtonDefaultProps, DBButtonDefaultState, DBButtonProps, DBButtonState, DBCardDefaultProps, DBCardDefaultState, DBCardProps, DBCardState, DBCheckboxDefaultProps, DBCheckboxDefaultState, DBCheckboxProps, DBCheckboxState, DBCustomSelectDefaultProps, DBCustomSelectDefaultState, DBCustomSelectDropdownDefaultProps, DBCustomSelectDropdownDefaultState, DBCustomSelectDropdownProps, DBCustomSelectDropdownState, DBCustomSelectEvents, DBCustomSelectFormFieldDefaultProps, DBCustomSelectFormFieldDefaultState, DBCustomSelectFormFieldProps, DBCustomSelectFormFieldState, DBCustomSelectListDefaultProps, DBCustomSelectListDefaultState, DBCustomSelectListItemDefaultProps, DBCustomSelectListItemDefaultState, DBCustomSelectListItemExtraProps, DBCustomSelectListItemProps, DBCustomSelectListItemState, DBCustomSelectListProps, DBCustomSelectListState, DBCustomSelectProps, DBCustomSelectState, DBDataOutsidePair, DBDividerDefaultProps, DBDividerDefaultState, DBDividerProps, DBDividerState, DBDrawerDefaultProps, DBDrawerDefaultState, DBDrawerProps, DBDrawerState, DBHeaderDefaultProps, DBHeaderDefaultState, DBHeaderProps, DBHeaderState, DBIconDefaultProps, DBIconDefaultState, DBIconProps, DBIconState, DBInfotextDefaultProps, DBInfotextDefaultState, DBInfotextProps, DBInfotextState, DBInputDefaultProps, DBInputDefaultState, DBInputProps, DBInputState, DBLinkDefaultProps, DBLinkDefaultState, DBLinkProps, DBLinkState, DBNavigationDefaultProps, DBNavigationDefaultState, DBNavigationItemDefaultProps, DBNavigationItemDefaultState, DBNavigationItemProps, DBNavigationItemState, DBNavigationProps, DBNavigationState, DBNotificationDefaultProps, DBNotificationDefaultState, DBNotificationProps, DBNotificationState, DBPageDefaultProps, DBPageDefaultState, DBPageProps, DBPageState, DBPopoverDefaultProps, DBPopoverDefaultState, DBPopoverProps, DBPopoverState, DBRadioDefaultProps, DBRadioDefaultState, DBRadioProps, DBRadioState, DBSectionDefaultProps, DBSectionDefaultState, DBSectionProps, DBSectionState, DBSelectDefaultProps, DBSelectDefaultState, DBSelectOptionType, DBSelectProps, DBSelectState, DBSimpleTabProps, DBStackDefaultProps, DBStackDefaultState, DBStackProps, DBStackState, DBSwitchDefaultProps, DBSwitchDefaultState, DBSwitchProps, DBSwitchState, DBTabItemDefaultProps, DBTabItemDefaultState, DBTabItemProps, DBTabItemState, DBTabListDefaultProps, DBTabListDefaultState, DBTabListProps, DBTabListState, DBTabPanelDefaultProps, DBTabPanelDefaultState, DBTabPanelProps, DBTabPanelState, DBTabsDefaultProps, DBTabsDefaultState, DBTabsEventProps, DBTabsProps, DBTabsState, DBTagDefaultProps, DBTagDefaultState, DBTagEventsProps, DBTagProps, DBTagState, DBTextareaDefaultProps, DBTextareaDefaultState, DBTextareaProps, DBTextareaState, DBTooltipDefaultProps, DBTooltipDefaultState, DBTooltipProps, DBTooltipState, DividerMarginType, DividerVariantType, DocumentScrollState, DrawerBackdropType, DrawerDirectionType, DrawerPositionType, DrawerVariantType, EmphasisProps, EmphasisType, FieldSizingType, FocusEventProps, FocusEventState, FormCheckProps, FormMessageProps, FormProps, FormSizeProps, FormState, FormTextProps, FromValidState, GapProps, GapSpacingProps, GapSpacingType, GeneralEvent, GeneralKeyboardEvent, GlobalProps, GlobalState, IconLeadingProps, IconProps, IconTrailingProps, IconWeightType, InitializedState, InnerCloseButtonProps, InputEvent, InputEventProps, InputEventState, InputTypeType, InteractionEvent, LabelVariantHorizontalType, LabelVariantType, LinkContentType, LinkProps, LinkReferrerPolicyType, LinkSizeType, LinkTargetType, LinkVariantType, MarginProps, MarginType, MaxWidthType, NameProps, NameState, NavigationBackButtonProps, NavigationBehaviorState, NotificationAriaLiveType, NotificationLinkVariantType, NotificationVariantType, OrientationProps, OrientationType, OverflowProps, PageDocumentOverflowType, PageVariantType, PlacementHorizontalType, PlacementProps, PlacementType, PlacementVerticalType, PopoverDelayType, PopoverProps, PopoverState, PopoverWidthType, RequiredProps, SelectedTypeType, SemanticProps, SemanticType, ShowIconLeadingProps, ShowIconProps, ShowIconTrailingProps, ShowLabelProps, SizeProps, SizeType, SpacingProps, SpacingType, StackAlignmentType, StackDirectionType, StackJustifyContentType, StackVariantType, TabsBehaviorType, TabsInitialSelectedModeType, TagBehaviorType, TextProps, TextareaResizeType, TextareaWrapType, ToggleEventProps, ToggleEventState, TooltipVariantType, TriangleData, ValidationType, ValueLabelType, ValueProps, WidthProps, WidthType, WrapProps };
|