@aurodesignsystem-dev/auro-formkit 0.0.0-pr1594.2 → 0.0.0-pr1595.0
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/components/bibtemplate/dist/auro-bibtemplate.d.ts +11 -0
- package/components/bibtemplate/dist/index.js +13 -0
- package/components/bibtemplate/dist/registered.js +13 -0
- package/components/checkbox/demo/api.md +17 -11
- package/components/checkbox/demo/customize.min.js +23 -6
- package/components/checkbox/demo/getting-started.min.js +23 -6
- package/components/checkbox/demo/index.min.js +23 -6
- package/components/checkbox/dist/auro-checkbox-group.d.ts +8 -0
- package/components/checkbox/dist/auro-checkbox.d.ts +4 -0
- package/components/checkbox/dist/index.js +23 -6
- package/components/checkbox/dist/registered.js +23 -6
- package/components/combobox/demo/api.md +24 -16
- package/components/combobox/demo/customize.min.js +405 -121
- package/components/combobox/demo/getting-started.min.js +405 -121
- package/components/combobox/demo/index.min.js +405 -121
- package/components/combobox/dist/auro-combobox.d.ts +29 -0
- package/components/combobox/dist/index.js +320 -107
- package/components/combobox/dist/registered.js +320 -107
- package/components/counter/demo/api.md +33 -15
- package/components/counter/demo/customize.min.js +201 -64
- package/components/counter/demo/index.min.js +201 -64
- package/components/counter/dist/auro-counter-button.d.ts +4 -0
- package/components/counter/dist/auro-counter-group.d.ts +23 -0
- package/components/counter/dist/auro-counter.d.ts +7 -0
- package/components/counter/dist/index.js +201 -64
- package/components/counter/dist/registered.js +201 -64
- package/components/datepicker/demo/api.md +55 -49
- package/components/datepicker/demo/customize.min.js +483 -131
- package/components/datepicker/demo/index.min.js +483 -131
- package/components/datepicker/dist/auro-calendar-cell.d.ts +55 -0
- package/components/datepicker/dist/auro-calendar-month.d.ts +9 -1
- package/components/datepicker/dist/auro-calendar.d.ts +16 -0
- package/components/datepicker/dist/auro-datepicker.d.ts +63 -10
- package/components/datepicker/dist/index.js +483 -131
- package/components/datepicker/dist/registered.js +483 -131
- package/components/dropdown/demo/api.md +25 -22
- package/components/dropdown/demo/customize.min.js +106 -37
- package/components/dropdown/demo/getting-started.min.js +232 -79
- package/components/dropdown/demo/index.min.js +106 -37
- package/components/dropdown/dist/auro-dropdown.d.ts +33 -4
- package/components/dropdown/dist/auro-dropdownBib.d.ts +17 -5
- package/components/dropdown/dist/index.js +106 -37
- package/components/dropdown/dist/registered.js +106 -37
- package/components/form/demo/customize.min.js +1448 -455
- package/components/form/demo/getting-started.min.js +1448 -455
- package/components/form/demo/index.min.js +1448 -455
- package/components/form/demo/registerDemoDeps.min.js +1448 -455
- package/components/helptext/dist/auro-helptext.d.ts +8 -7
- package/components/helptext/dist/index.js +7 -2
- package/components/helptext/dist/registered.js +7 -2
- package/components/input/demo/api.md +30 -30
- package/components/input/demo/customize.min.js +126 -42
- package/components/input/demo/getting-started.min.js +126 -42
- package/components/input/demo/index.min.js +126 -42
- package/components/input/dist/base-input.d.ts +67 -22
- package/components/input/dist/index.js +126 -42
- package/components/input/dist/registered.js +126 -42
- package/components/layoutElement/dist/auroElement.d.ts +10 -17
- package/components/layoutElement/dist/index.js +20 -20
- package/components/layoutElement/dist/registered.js +20 -20
- package/components/menu/demo/api.md +30 -27
- package/components/menu/demo/index.min.js +105 -34
- package/components/menu/dist/auro-menu.d.ts +24 -13
- package/components/menu/dist/auro-menuoption.d.ts +26 -0
- package/components/menu/dist/index.js +105 -34
- package/components/menu/dist/registered.js +105 -34
- package/components/radio/demo/api.md +8 -7
- package/components/radio/demo/customize.min.js +20 -7
- package/components/radio/demo/getting-started.min.js +20 -7
- package/components/radio/demo/index.min.js +20 -7
- package/components/radio/dist/auro-radio-group.d.ts +7 -0
- package/components/radio/dist/auro-radio.d.ts +1 -0
- package/components/radio/dist/index.js +20 -7
- package/components/radio/dist/registered.js +20 -7
- package/components/select/demo/api.md +18 -15
- package/components/select/demo/customize.min.js +255 -78
- package/components/select/demo/getting-started.min.js +255 -78
- package/components/select/demo/index.min.js +255 -78
- package/components/select/dist/auro-select.d.ts +17 -0
- package/components/select/dist/index.js +170 -64
- package/components/select/dist/registered.js +170 -64
- package/custom-elements.json +2573 -2680
- package/package.json +1 -1
|
@@ -11,32 +11,34 @@ The `auro-dropdown` element provides a way to place content in a bib that can be
|
|
|
11
11
|
|---------------------------|---------------------------|--------------------------------------------------|------------------|--------------------------------------------------|
|
|
12
12
|
| `a11yRole` | | `string` | | The value for the role attribute of the trigger element. |
|
|
13
13
|
| `appearance` | `appearance` | `'default' \| 'inverse'` | "'default'" | Defines whether the component will be on lighter or darker backgrounds. |
|
|
14
|
-
| `autoPlacement` | `
|
|
14
|
+
| `autoPlacement` | `autoplacement` | `boolean` | | If declared, bib's position will be automatically calculated where to appear. |
|
|
15
15
|
| `chevron` | `chevron` | `boolean` | | If declared, the dropdown displays a chevron on the right. |
|
|
16
|
-
| `desktopModal` | `
|
|
17
|
-
| `disableEventShow` | `
|
|
18
|
-
| `disableKeyboardHandling` | `
|
|
16
|
+
| `desktopModal` | `desktopmodal` | `boolean` | | If declared, the dropdown will behave as a modal dialog when in a desktop viewport size. |
|
|
17
|
+
| `disableEventShow` | `disableeventshow` | `boolean` | | If declared, the dropdown will only show by calling the API .show() public method. |
|
|
18
|
+
| `disableKeyboardHandling` | `disablekeyboardhandling` | `boolean` | | If declared, the dropdown will not handle keyboard events and will require the consumer to manage this behavior. |
|
|
19
19
|
| `disabled` | `disabled` | `boolean` | | If declared, the dropdown is not interactive. |
|
|
20
|
+
| `dropdownWidth` | `dropdownwidth` | `number` | | Sets the width of the dropdown bib in pixels. |
|
|
20
21
|
| `error` | `error` | `boolean` | | If declared, will apply error UI to the dropdown. |
|
|
21
|
-
| `errorMessage` | `
|
|
22
|
-
| `focusShow` | `
|
|
23
|
-
| `fullscreenBreakpoint` | `
|
|
24
|
-
| `hoverToggle` | `
|
|
25
|
-
| `isBibFullscreen` | `
|
|
22
|
+
| `errorMessage` | `errormessage` | `string` | "undefined" | Contains the help text message for the current validity error. |
|
|
23
|
+
| `focusShow` | `focusshow` | `boolean` | | If declared, the bib will display when focus is applied to the trigger. |
|
|
24
|
+
| `fullscreenBreakpoint` | `fullscreenbreakpoint` | `'xs' \| 'sm' \| 'md' \| 'lg' \| 'xl' \| 'disabled'` | "'sm'" | Defines the screen size breakpoint at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.<br /><br />When expanded, the dropdown will automatically display in fullscreen mode<br />if the screen size is equal to or smaller than the selected breakpoint. |
|
|
25
|
+
| `hoverToggle` | `hovertoggle` | `boolean` | | If declared, the trigger will toggle the dropdown on mouseover/mouseout. |
|
|
26
|
+
| `isBibFullscreen` | `isbibfullscreen` | `boolean` | false | If true, the dropdown bib is taking the fullscreen when it's open. |
|
|
26
27
|
| `isPopoverVisible` | `open` | `boolean` | false | If true, the dropdown bib is displayed. |
|
|
27
28
|
| `layout` | `layout` | `'classic' \| 'emphasized' \| 'snowflake'` | "'classic'" | Sets the layout of the dropdown. |
|
|
28
|
-
| `matchWidth` | `
|
|
29
|
-
| `noFlip` | `
|
|
30
|
-
| `noHideOnThisFocusLoss` | `
|
|
31
|
-
| `noToggle` | `
|
|
29
|
+
| `matchWidth` | `matchwidth` | `boolean` | false | If declared, the popover and trigger will be set to the same width. |
|
|
30
|
+
| `noFlip` | `noflip` | `boolean` | | If declared, the bib will NOT flip to an alternate position<br />when there isn't enough space in the specified `placement`. |
|
|
31
|
+
| `noHideOnThisFocusLoss` | `nohideonthisfocusloss` | `boolean` | false | If declared, the dropdown will not hide when moving focus outside the element. |
|
|
32
|
+
| `noToggle` | `notoggle` | `boolean` | | If declared, the trigger will only show the dropdown bib. |
|
|
32
33
|
| `offset` | `offset` | `number` | "0" | Gap between the trigger element and bib. |
|
|
33
|
-
| `onDark` | `
|
|
34
|
-
| `onSlotChange` | `
|
|
34
|
+
| `onDark` | `ondark` | `boolean` | | DEPRECATED - use `appearance="inverse"` instead. |
|
|
35
|
+
| `onSlotChange` | `onslotchange` | | | If declared, and a function is set, that function will execute when the slot content is updated. |
|
|
35
36
|
| `placement` | `placement` | `'top' \| 'right' \| 'bottom' \| 'left' \| 'bottom-start' \| 'top-start' \| 'top-end' \| 'right-start' \| 'right-end' \| 'bottom-end' \| 'left-start' \| 'left-end'` | "'bottom-start'" | Position where the bib should appear relative to the trigger. |
|
|
36
|
-
| `shape` |
|
|
37
|
+
| `shape` | `shape` | `'box' \| 'classic' \| 'pill' \| 'pill-left' \| 'pill-right' \| 'rounded' \| 'snowflake'` | "undefined" | Sets the shape of the dropdown. |
|
|
37
38
|
| `shift` | `shift` | `boolean` | | If declared, the dropdown will shift its position to avoid being cut off by the viewport. |
|
|
38
39
|
| `simple` | `simple` | `boolean` | | If declared, applies a border around the trigger slot. |
|
|
39
|
-
| `size` |
|
|
40
|
+
| `size` | `size` | `'xs' \| 'sm' \| 'md' \| 'lg' \| 'xl'` | "undefined" | Sets the size of the dropdown. |
|
|
41
|
+
| `tabIndex` | `tabindex` | `number` | | Sets the tabindex applied to the dropdown trigger for keyboard focus order. |
|
|
40
42
|
|
|
41
43
|
## Methods
|
|
42
44
|
|
|
@@ -49,11 +51,11 @@ The `auro-dropdown` element provides a way to place content in a bib that can be
|
|
|
49
51
|
|
|
50
52
|
## Events
|
|
51
53
|
|
|
52
|
-
| Event | Type
|
|
53
|
-
|
|
54
|
-
| `auroDropdown-idAdded` | `
|
|
55
|
-
| `auroDropdown-toggled` |
|
|
56
|
-
| `auroDropdown-triggerClick` | `CustomEvent<any>`
|
|
54
|
+
| Event | Type | Description |
|
|
55
|
+
|-----------------------------|-------------------------------|--------------------------------------------------|
|
|
56
|
+
| `auroDropdown-idAdded` | `CustomEvent<{ id: string }>` | Notifies consumers that the unique ID for the dropdown bib has been generated. |
|
|
57
|
+
| `auroDropdown-toggled` | | Notifies that the visibility of the dropdown bib has changed. |
|
|
58
|
+
| `auroDropdown-triggerClick` | `CustomEvent<any>` | Notifies that the trigger has been clicked. |
|
|
57
59
|
|
|
58
60
|
## Slots
|
|
59
61
|
|
|
@@ -71,4 +73,5 @@ The `auro-dropdown` element provides a way to place content in a bib that can be
|
|
|
71
73
|
| `helpText` | The helpText content container. |
|
|
72
74
|
| `size` | The size of the dropdown bib. (height, width, maxHeight, maxWidth only) |
|
|
73
75
|
| `trigger` | The trigger content container. |
|
|
76
|
+
| `wrapper` | The trigger wrapper element surrounding the trigger content and chevron. |
|
|
74
77
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
@@ -3191,8 +3191,11 @@ const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
|
|
|
3191
3191
|
];
|
|
3192
3192
|
|
|
3193
3193
|
/**
|
|
3194
|
+
* The `auro-dropdownbib` element renders the dropdown's bib as a dialog/popover container and manages its fullscreen and modal display.
|
|
3194
3195
|
* @prop { String } fullscreenBreakpoint - Defines the screen size breakpoint (`lg`, `md`, `sm`, or `xs`) at which the dropdown switches to fullscreen mode on mobile. When expanded, the dropdown will automatically display in fullscreen mode if the screen size is equal to or smaller than the selected breakpoint.
|
|
3195
3196
|
* @csspart bibContainer - Apply css to the bib container.
|
|
3197
|
+
* @event auro-dropdownbib-connected - Notifies that the dropdown bib has connected to the DOM, passing a reference to the element in the event detail.
|
|
3198
|
+
* @event auro-bib-cancel - Notifies that the bib was cancelled (e.g. via the ESC key) so parent components can close it.
|
|
3196
3199
|
*/
|
|
3197
3200
|
|
|
3198
3201
|
class AuroDropdownBib extends i {
|
|
@@ -3207,9 +3210,17 @@ class AuroDropdownBib extends i {
|
|
|
3207
3210
|
|
|
3208
3211
|
AuroLibraryRuntimeUtils$1.prototype.handleComponentTagRename(this, 'auro-dropdownbib');
|
|
3209
3212
|
|
|
3210
|
-
this.shape = "rounded";
|
|
3211
3213
|
this.matchWidth = false;
|
|
3212
3214
|
this.hasActiveDescendant = false;
|
|
3215
|
+
|
|
3216
|
+
this.initializeArchitectureDefaults();
|
|
3217
|
+
}
|
|
3218
|
+
|
|
3219
|
+
// The `shape` default is set in a helper (not the constructor body) so the CEM
|
|
3220
|
+
// analyzer keeps its `@type` union instead of inferring `string` from a
|
|
3221
|
+
// constructor-literal assignment. See AlaskaAirlines/discussions#653.
|
|
3222
|
+
initializeArchitectureDefaults() {
|
|
3223
|
+
this.shape = "rounded";
|
|
3213
3224
|
}
|
|
3214
3225
|
|
|
3215
3226
|
static get styles() {
|
|
@@ -3228,6 +3239,7 @@ class AuroDropdownBib extends i {
|
|
|
3228
3239
|
*/
|
|
3229
3240
|
isFullscreen: {
|
|
3230
3241
|
type: Boolean,
|
|
3242
|
+
attribute: 'isfullscreen',
|
|
3231
3243
|
reflect: true
|
|
3232
3244
|
},
|
|
3233
3245
|
|
|
@@ -3253,6 +3265,7 @@ class AuroDropdownBib extends i {
|
|
|
3253
3265
|
*/
|
|
3254
3266
|
matchWidth: {
|
|
3255
3267
|
type: Boolean,
|
|
3268
|
+
attribute: 'matchwidth',
|
|
3256
3269
|
reflect: true
|
|
3257
3270
|
},
|
|
3258
3271
|
|
|
@@ -3268,11 +3281,18 @@ class AuroDropdownBib extends i {
|
|
|
3268
3281
|
* A reference to the associated bib template element.
|
|
3269
3282
|
*/
|
|
3270
3283
|
bibTemplate: {
|
|
3271
|
-
type: Object
|
|
3284
|
+
type: Object,
|
|
3285
|
+
attribute: 'bibtemplate'
|
|
3272
3286
|
},
|
|
3273
3287
|
|
|
3288
|
+
/**
|
|
3289
|
+
* Sets the shape of the dropdown bib.
|
|
3290
|
+
* @type {'box' | 'classic' | 'pill' | 'rounded' | 'snowflake'}
|
|
3291
|
+
* @default 'rounded'
|
|
3292
|
+
*/
|
|
3274
3293
|
shape: {
|
|
3275
3294
|
type: String,
|
|
3295
|
+
attribute: "shape",
|
|
3276
3296
|
reflect: true
|
|
3277
3297
|
},
|
|
3278
3298
|
|
|
@@ -3284,7 +3304,8 @@ class AuroDropdownBib extends i {
|
|
|
3284
3304
|
* @private
|
|
3285
3305
|
*/
|
|
3286
3306
|
dialogLabel: {
|
|
3287
|
-
type: String
|
|
3307
|
+
type: String,
|
|
3308
|
+
attribute: 'dialoglabel'
|
|
3288
3309
|
},
|
|
3289
3310
|
|
|
3290
3311
|
/**
|
|
@@ -3295,7 +3316,8 @@ class AuroDropdownBib extends i {
|
|
|
3295
3316
|
* @private
|
|
3296
3317
|
*/
|
|
3297
3318
|
dialogRole: {
|
|
3298
|
-
type: String
|
|
3319
|
+
type: String,
|
|
3320
|
+
attribute: 'dialogrole'
|
|
3299
3321
|
},
|
|
3300
3322
|
|
|
3301
3323
|
/**
|
|
@@ -3303,7 +3325,8 @@ class AuroDropdownBib extends i {
|
|
|
3303
3325
|
* @private
|
|
3304
3326
|
*/
|
|
3305
3327
|
hasActiveDescendant: {
|
|
3306
|
-
type: Boolean
|
|
3328
|
+
type: Boolean,
|
|
3329
|
+
attribute: 'hasactivedescendant'
|
|
3307
3330
|
}
|
|
3308
3331
|
};
|
|
3309
3332
|
}
|
|
@@ -3654,6 +3677,8 @@ class AuroHelpText extends i {
|
|
|
3654
3677
|
super();
|
|
3655
3678
|
|
|
3656
3679
|
this.error = false;
|
|
3680
|
+
|
|
3681
|
+
/** @type {'default' | 'inverse'} */
|
|
3657
3682
|
this.appearance = "default";
|
|
3658
3683
|
this.onDark = false;
|
|
3659
3684
|
this.hasTextContent = false;
|
|
@@ -3674,8 +3699,8 @@ class AuroHelpText extends i {
|
|
|
3674
3699
|
return {
|
|
3675
3700
|
|
|
3676
3701
|
/**
|
|
3677
|
-
*
|
|
3678
|
-
* @
|
|
3702
|
+
* The appearance of the help text, either default (for light backgrounds) or inverse (for dark backgrounds).
|
|
3703
|
+
* @type {'default' | 'inverse'}
|
|
3679
3704
|
* @default 'default'
|
|
3680
3705
|
*/
|
|
3681
3706
|
appearance: {
|
|
@@ -3688,6 +3713,7 @@ class AuroHelpText extends i {
|
|
|
3688
3713
|
*/
|
|
3689
3714
|
slotNodes: {
|
|
3690
3715
|
type: Boolean,
|
|
3716
|
+
attribute: 'slotnodes',
|
|
3691
3717
|
},
|
|
3692
3718
|
|
|
3693
3719
|
/**
|
|
@@ -3695,6 +3721,7 @@ class AuroHelpText extends i {
|
|
|
3695
3721
|
*/
|
|
3696
3722
|
hasTextContent: {
|
|
3697
3723
|
type: Boolean,
|
|
3724
|
+
attribute: 'hastextcontent',
|
|
3698
3725
|
},
|
|
3699
3726
|
|
|
3700
3727
|
/**
|
|
@@ -3710,6 +3737,7 @@ class AuroHelpText extends i {
|
|
|
3710
3737
|
*/
|
|
3711
3738
|
onDark: {
|
|
3712
3739
|
type: Boolean,
|
|
3740
|
+
attribute: 'ondark',
|
|
3713
3741
|
reflect: true
|
|
3714
3742
|
}
|
|
3715
3743
|
};
|
|
@@ -3780,39 +3808,39 @@ class AuroHelpText extends i {
|
|
|
3780
3808
|
}
|
|
3781
3809
|
}
|
|
3782
3810
|
|
|
3783
|
-
var formkitVersion = '
|
|
3811
|
+
var formkitVersion = '202608291822';
|
|
3784
3812
|
|
|
3813
|
+
/**
|
|
3814
|
+
* AuroElement is the shared base class for layout-aware Auro form components.
|
|
3815
|
+
*
|
|
3816
|
+
* It defines the common `layout`, `shape`, `size`, and `ondark` reactive
|
|
3817
|
+
* properties and the architecture helpers (`renderLayout`, `resetShapeClasses`,
|
|
3818
|
+
* `resetLayoutClasses`) that subclasses use to render a chosen layout and apply
|
|
3819
|
+
* the matching `shape-*` / `layout-*` wrapper classes. Subclasses supply their
|
|
3820
|
+
* own default and valid value set for `layout`, `shape`, and `size`.
|
|
3821
|
+
*/
|
|
3785
3822
|
class AuroElement extends i {
|
|
3786
3823
|
static get properties() {
|
|
3787
3824
|
return {
|
|
3788
3825
|
|
|
3789
3826
|
/**
|
|
3790
|
-
*
|
|
3791
|
-
* @default {'default'}
|
|
3827
|
+
* When true, renders the component styled for use on a dark background.
|
|
3792
3828
|
*/
|
|
3793
|
-
layout: {
|
|
3794
|
-
type: String,
|
|
3795
|
-
attribute: "layout",
|
|
3796
|
-
reflect: true
|
|
3797
|
-
},
|
|
3798
|
-
|
|
3799
|
-
shape: {
|
|
3800
|
-
type: String,
|
|
3801
|
-
attribute: "shape",
|
|
3802
|
-
reflect: true
|
|
3803
|
-
},
|
|
3804
|
-
|
|
3805
|
-
size: {
|
|
3806
|
-
type: String,
|
|
3807
|
-
attribute: "size",
|
|
3808
|
-
reflect: true
|
|
3809
|
-
},
|
|
3810
|
-
|
|
3811
3829
|
onDark: {
|
|
3812
3830
|
type: Boolean,
|
|
3813
3831
|
attribute: "ondark",
|
|
3814
3832
|
reflect: true
|
|
3815
3833
|
}
|
|
3834
|
+
|
|
3835
|
+
// NOTE: `layout`, `shape`, and `size` are intentionally NOT declared here.
|
|
3836
|
+
// Their valid value sets differ per component, and the CEM analyzer roots
|
|
3837
|
+
// an inherited property's `type` in the class that declares it — a base
|
|
3838
|
+
// declaration would force every subclass's `@type` to be discarded and
|
|
3839
|
+
// emitted as plain `string`. Each subclass declares its own `layout` /
|
|
3840
|
+
// `shape` / `size` with an exact `@type` union instead. AuroElement still
|
|
3841
|
+
// consumes `this.layout` / `this.shape` / `this.size` in its render and
|
|
3842
|
+
// architecture helpers below (subclasses guarantee the reactive props).
|
|
3843
|
+
// See AlaskaAirlines/discussions#653.
|
|
3816
3844
|
};
|
|
3817
3845
|
}
|
|
3818
3846
|
|
|
@@ -3898,6 +3926,7 @@ class AuroElement extends i {
|
|
|
3898
3926
|
* @slot helpText - Defines the content of the helpText.
|
|
3899
3927
|
* @slot trigger - Defines the content of the trigger.
|
|
3900
3928
|
* @csspart trigger - The trigger content container.
|
|
3929
|
+
* @csspart wrapper - The trigger wrapper element surrounding the trigger content and chevron.
|
|
3901
3930
|
* @csspart chevron - The collapsed/expanded state icon container.
|
|
3902
3931
|
* @csspart size - The size of the dropdown bib. (height, width, maxHeight, maxWidth only)
|
|
3903
3932
|
* @csspart helpText - The helpText content container.
|
|
@@ -3922,7 +3951,7 @@ class AuroDropdown extends AuroElement {
|
|
|
3922
3951
|
|
|
3923
3952
|
/**
|
|
3924
3953
|
* When true, the dropdown skips its generic focus restoration on close.
|
|
3925
|
-
* Set by consumers (
|
|
3954
|
+
* Set by consumers (for example combobox) that manage their own focus routing
|
|
3926
3955
|
* via setClearBtnFocus / setInputFocus / keyboard strategy.
|
|
3927
3956
|
* Separate from noHideOnThisFocusLoss (which controls auto-close behavior).
|
|
3928
3957
|
* @private
|
|
@@ -4091,7 +4120,7 @@ class AuroDropdown extends AuroElement {
|
|
|
4091
4120
|
/**
|
|
4092
4121
|
* Focus the trigger content. When the trigger wrapper itself is focusable
|
|
4093
4122
|
* (has tabindex), focus it directly. Otherwise, focus the first focusable
|
|
4094
|
-
* element slotted into the trigger slot (
|
|
4123
|
+
* element slotted into the trigger slot (for example the auro-input).
|
|
4095
4124
|
* @private
|
|
4096
4125
|
*/
|
|
4097
4126
|
focusTrigger() {
|
|
@@ -4188,6 +4217,7 @@ class AuroDropdown extends AuroElement {
|
|
|
4188
4217
|
*/
|
|
4189
4218
|
autoPlacement: {
|
|
4190
4219
|
type: Boolean,
|
|
4220
|
+
attribute: 'autoplacement',
|
|
4191
4221
|
reflect: true
|
|
4192
4222
|
},
|
|
4193
4223
|
|
|
@@ -4196,6 +4226,7 @@ class AuroDropdown extends AuroElement {
|
|
|
4196
4226
|
*/
|
|
4197
4227
|
desktopModal: {
|
|
4198
4228
|
type: Boolean,
|
|
4229
|
+
attribute: 'desktopmodal',
|
|
4199
4230
|
reflect: true
|
|
4200
4231
|
},
|
|
4201
4232
|
|
|
@@ -4204,6 +4235,7 @@ class AuroDropdown extends AuroElement {
|
|
|
4204
4235
|
*/
|
|
4205
4236
|
disableEventShow: {
|
|
4206
4237
|
type: Boolean,
|
|
4238
|
+
attribute: 'disableeventshow',
|
|
4207
4239
|
reflect: true
|
|
4208
4240
|
},
|
|
4209
4241
|
|
|
@@ -4237,14 +4269,16 @@ class AuroDropdown extends AuroElement {
|
|
|
4237
4269
|
*/
|
|
4238
4270
|
disableKeyboardHandling: {
|
|
4239
4271
|
type: Boolean,
|
|
4272
|
+
attribute: 'disablekeyboardhandling',
|
|
4240
4273
|
reflect: true
|
|
4241
4274
|
},
|
|
4242
4275
|
|
|
4243
4276
|
/**
|
|
4244
|
-
*
|
|
4277
|
+
* Sets the width of the dropdown bib in pixels.
|
|
4245
4278
|
*/
|
|
4246
4279
|
dropdownWidth: {
|
|
4247
|
-
type: Number
|
|
4280
|
+
type: Number,
|
|
4281
|
+
attribute: 'dropdownwidth'
|
|
4248
4282
|
},
|
|
4249
4283
|
|
|
4250
4284
|
/**
|
|
@@ -4269,7 +4303,8 @@ class AuroDropdown extends AuroElement {
|
|
|
4269
4303
|
* Contains the help text message for the current validity error.
|
|
4270
4304
|
*/
|
|
4271
4305
|
errorMessage: {
|
|
4272
|
-
type: String
|
|
4306
|
+
type: String,
|
|
4307
|
+
attribute: 'errormessage'
|
|
4273
4308
|
},
|
|
4274
4309
|
|
|
4275
4310
|
/**
|
|
@@ -4277,6 +4312,7 @@ class AuroDropdown extends AuroElement {
|
|
|
4277
4312
|
*/
|
|
4278
4313
|
focusShow: {
|
|
4279
4314
|
type: Boolean,
|
|
4315
|
+
attribute: 'focusshow',
|
|
4280
4316
|
reflect: true
|
|
4281
4317
|
},
|
|
4282
4318
|
|
|
@@ -4294,6 +4330,7 @@ class AuroDropdown extends AuroElement {
|
|
|
4294
4330
|
*/
|
|
4295
4331
|
isBibFullscreen: {
|
|
4296
4332
|
type: Boolean,
|
|
4333
|
+
attribute: 'isbibfullscreen',
|
|
4297
4334
|
reflect: true
|
|
4298
4335
|
},
|
|
4299
4336
|
|
|
@@ -4302,6 +4339,7 @@ class AuroDropdown extends AuroElement {
|
|
|
4302
4339
|
*/
|
|
4303
4340
|
hoverToggle: {
|
|
4304
4341
|
type: Boolean,
|
|
4342
|
+
attribute: 'hovertoggle',
|
|
4305
4343
|
reflect: true
|
|
4306
4344
|
},
|
|
4307
4345
|
|
|
@@ -4309,7 +4347,8 @@ class AuroDropdown extends AuroElement {
|
|
|
4309
4347
|
* @private
|
|
4310
4348
|
*/
|
|
4311
4349
|
hasTriggerContent: {
|
|
4312
|
-
type: Boolean
|
|
4350
|
+
type: Boolean,
|
|
4351
|
+
attribute: 'hastriggercontent'
|
|
4313
4352
|
},
|
|
4314
4353
|
|
|
4315
4354
|
/**
|
|
@@ -4322,6 +4361,7 @@ class AuroDropdown extends AuroElement {
|
|
|
4322
4361
|
*/
|
|
4323
4362
|
fullscreenBreakpoint: {
|
|
4324
4363
|
type: String,
|
|
4364
|
+
attribute: "fullscreenbreakpoint",
|
|
4325
4365
|
reflect: true
|
|
4326
4366
|
},
|
|
4327
4367
|
|
|
@@ -4332,6 +4372,27 @@ class AuroDropdown extends AuroElement {
|
|
|
4332
4372
|
*/
|
|
4333
4373
|
layout: {
|
|
4334
4374
|
type: String,
|
|
4375
|
+
attribute: "layout",
|
|
4376
|
+
reflect: true
|
|
4377
|
+
},
|
|
4378
|
+
|
|
4379
|
+
/**
|
|
4380
|
+
* Sets the shape of the dropdown.
|
|
4381
|
+
* @type {'box' | 'classic' | 'pill' | 'pill-left' | 'pill-right' | 'rounded' | 'snowflake'}
|
|
4382
|
+
*/
|
|
4383
|
+
shape: {
|
|
4384
|
+
type: String,
|
|
4385
|
+
attribute: "shape",
|
|
4386
|
+
reflect: true
|
|
4387
|
+
},
|
|
4388
|
+
|
|
4389
|
+
/**
|
|
4390
|
+
* Sets the size of the dropdown.
|
|
4391
|
+
* @type {'xs' | 'sm' | 'md' | 'lg' | 'xl'}
|
|
4392
|
+
*/
|
|
4393
|
+
size: {
|
|
4394
|
+
type: String,
|
|
4395
|
+
attribute: "size",
|
|
4335
4396
|
reflect: true
|
|
4336
4397
|
},
|
|
4337
4398
|
|
|
@@ -4341,6 +4402,7 @@ class AuroDropdown extends AuroElement {
|
|
|
4341
4402
|
*/
|
|
4342
4403
|
parentBorder: {
|
|
4343
4404
|
type: Boolean,
|
|
4405
|
+
attribute: 'parentborder',
|
|
4344
4406
|
reflect: true
|
|
4345
4407
|
},
|
|
4346
4408
|
|
|
@@ -4349,6 +4411,7 @@ class AuroDropdown extends AuroElement {
|
|
|
4349
4411
|
*/
|
|
4350
4412
|
matchWidth: {
|
|
4351
4413
|
type: Boolean,
|
|
4414
|
+
attribute: 'matchwidth',
|
|
4352
4415
|
reflect: true
|
|
4353
4416
|
},
|
|
4354
4417
|
|
|
@@ -4358,6 +4421,7 @@ class AuroDropdown extends AuroElement {
|
|
|
4358
4421
|
*/
|
|
4359
4422
|
noFlip: {
|
|
4360
4423
|
type: Boolean,
|
|
4424
|
+
attribute: 'noflip',
|
|
4361
4425
|
reflect: true
|
|
4362
4426
|
},
|
|
4363
4427
|
|
|
@@ -4374,6 +4438,7 @@ class AuroDropdown extends AuroElement {
|
|
|
4374
4438
|
*/
|
|
4375
4439
|
noHideOnThisFocusLoss: {
|
|
4376
4440
|
type: Boolean,
|
|
4441
|
+
attribute: 'nohideonthisfocusloss',
|
|
4377
4442
|
reflect: true
|
|
4378
4443
|
},
|
|
4379
4444
|
|
|
@@ -4382,6 +4447,7 @@ class AuroDropdown extends AuroElement {
|
|
|
4382
4447
|
*/
|
|
4383
4448
|
noToggle: {
|
|
4384
4449
|
type: Boolean,
|
|
4450
|
+
attribute: 'notoggle',
|
|
4385
4451
|
reflect: true
|
|
4386
4452
|
},
|
|
4387
4453
|
|
|
@@ -4399,6 +4465,7 @@ class AuroDropdown extends AuroElement {
|
|
|
4399
4465
|
*/
|
|
4400
4466
|
onDark: {
|
|
4401
4467
|
type: Boolean,
|
|
4468
|
+
attribute: 'ondark',
|
|
4402
4469
|
reflect: true
|
|
4403
4470
|
},
|
|
4404
4471
|
|
|
@@ -4407,6 +4474,7 @@ class AuroDropdown extends AuroElement {
|
|
|
4407
4474
|
*/
|
|
4408
4475
|
onSlotChange: {
|
|
4409
4476
|
type: Function,
|
|
4477
|
+
attribute: 'onslotchange',
|
|
4410
4478
|
reflect: false
|
|
4411
4479
|
},
|
|
4412
4480
|
|
|
@@ -4421,10 +4489,11 @@ class AuroDropdown extends AuroElement {
|
|
|
4421
4489
|
},
|
|
4422
4490
|
|
|
4423
4491
|
/**
|
|
4424
|
-
*
|
|
4492
|
+
* Sets the tabindex applied to the dropdown trigger for keyboard focus order.
|
|
4425
4493
|
*/
|
|
4426
4494
|
tabIndex: {
|
|
4427
|
-
type: Number
|
|
4495
|
+
type: Number,
|
|
4496
|
+
attribute: 'tabindex'
|
|
4428
4497
|
},
|
|
4429
4498
|
|
|
4430
4499
|
/**
|
|
@@ -4648,7 +4717,7 @@ class AuroDropdown extends AuroElement {
|
|
|
4648
4717
|
/**
|
|
4649
4718
|
* @description Let subscribers know that the dropdown ID ha been generated and added.
|
|
4650
4719
|
* @event auroDropdown-idAdded
|
|
4651
|
-
* @type {
|
|
4720
|
+
* @type {CustomEvent<{ id: string }>} - Detail carries the generated ID of the dropdown bib element.
|
|
4652
4721
|
*/
|
|
4653
4722
|
this.dispatchEvent(new CustomEvent('auroDropdown-idAdded', {detail: {id: this.floater.element.id}}));
|
|
4654
4723
|
|