@aurodesignsystem-dev/auro-formkit 0.0.0-pr1594.2 → 0.0.0-pr1595.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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 +26 -18
- package/components/combobox/demo/customize.min.js +426 -126
- package/components/combobox/demo/getting-started.min.js +426 -126
- package/components/combobox/demo/index.min.js +426 -126
- package/components/combobox/dist/auro-combobox.d.ts +38 -21
- package/components/combobox/dist/index.js +338 -111
- package/components/combobox/dist/registered.js +338 -111
- package/components/counter/demo/api.md +34 -16
- package/components/counter/demo/customize.min.js +204 -64
- package/components/counter/demo/index.min.js +204 -64
- package/components/counter/dist/auro-counter-button.d.ts +4 -0
- package/components/counter/dist/auro-counter-group.d.ts +27 -4
- package/components/counter/dist/auro-counter.d.ts +7 -0
- package/components/counter/dist/index.js +204 -64
- package/components/counter/dist/registered.js +204 -64
- package/components/datepicker/demo/api.md +55 -49
- package/components/datepicker/demo/customize.min.js +515 -134
- package/components/datepicker/demo/index.min.js +515 -134
- package/components/datepicker/dist/auro-calendar-cell.d.ts +58 -4
- package/components/datepicker/dist/auro-calendar-month.d.ts +10 -4
- package/components/datepicker/dist/auro-calendar.d.ts +25 -6
- package/components/datepicker/dist/auro-datepicker.d.ts +70 -22
- package/components/datepicker/dist/index.js +515 -134
- package/components/datepicker/dist/registered.js +515 -134
- package/components/dropdown/demo/api.md +25 -22
- package/components/dropdown/demo/customize.min.js +107 -37
- package/components/dropdown/demo/getting-started.min.js +245 -82
- package/components/dropdown/demo/index.min.js +107 -37
- package/components/dropdown/dist/auro-dropdown.d.ts +34 -8
- package/components/dropdown/dist/auro-dropdownBib.d.ts +17 -5
- package/components/dropdown/dist/index.js +107 -37
- package/components/dropdown/dist/registered.js +107 -37
- package/components/form/demo/customize.min.js +1518 -466
- package/components/form/demo/getting-started.min.js +1518 -466
- package/components/form/demo/index.min.js +1518 -466
- package/components/form/demo/registerDemoDeps.min.js +1518 -466
- 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 +138 -45
- package/components/input/demo/getting-started.min.js +138 -45
- package/components/input/demo/index.min.js +138 -45
- package/components/input/dist/base-input.d.ts +79 -25
- package/components/input/dist/index.js +138 -45
- package/components/input/dist/registered.js +138 -45
- 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 +31 -27
- package/components/menu/demo/index.min.js +108 -35
- package/components/menu/dist/auro-menu.d.ts +26 -21
- package/components/menu/dist/auro-menuoption.d.ts +27 -1
- package/components/menu/dist/index.js +108 -35
- package/components/menu/dist/registered.js +108 -35
- package/components/radio/demo/api.md +8 -7
- package/components/radio/demo/customize.min.js +21 -7
- package/components/radio/demo/getting-started.min.js +21 -7
- package/components/radio/demo/index.min.js +21 -7
- package/components/radio/dist/auro-radio-group.d.ts +8 -3
- package/components/radio/dist/auro-radio.d.ts +1 -0
- package/components/radio/dist/index.js +21 -7
- package/components/radio/dist/registered.js +21 -7
- package/components/select/demo/api.md +18 -15
- package/components/select/demo/customize.min.js +259 -79
- package/components/select/demo/getting-started.min.js +259 -79
- package/components/select/demo/index.min.js +259 -79
- package/components/select/dist/auro-select.d.ts +17 -0
- package/components/select/dist/index.js +171 -64
- package/components/select/dist/registered.js +171 -64
- package/custom-elements.json +1189 -1336
- package/package.json +1 -1
|
@@ -3218,8 +3218,11 @@ const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
|
|
|
3218
3218
|
];
|
|
3219
3219
|
|
|
3220
3220
|
/**
|
|
3221
|
+
* The `auro-dropdownbib` element renders the dropdown's bib as a dialog/popover container and manages its fullscreen and modal display.
|
|
3221
3222
|
* @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.
|
|
3222
3223
|
* @csspart bibContainer - Apply css to the bib container.
|
|
3224
|
+
* @event auro-dropdownbib-connected - Notifies that the dropdown bib has connected to the DOM, passing a reference to the element in the event detail.
|
|
3225
|
+
* @event auro-bib-cancel - Notifies that the bib was cancelled (e.g. via the ESC key) so parent components can close it.
|
|
3223
3226
|
*/
|
|
3224
3227
|
|
|
3225
3228
|
class AuroDropdownBib extends i {
|
|
@@ -3234,9 +3237,17 @@ class AuroDropdownBib extends i {
|
|
|
3234
3237
|
|
|
3235
3238
|
AuroLibraryRuntimeUtils$1.prototype.handleComponentTagRename(this, 'auro-dropdownbib');
|
|
3236
3239
|
|
|
3237
|
-
this.shape = "rounded";
|
|
3238
3240
|
this.matchWidth = false;
|
|
3239
3241
|
this.hasActiveDescendant = false;
|
|
3242
|
+
|
|
3243
|
+
this.initializeArchitectureDefaults();
|
|
3244
|
+
}
|
|
3245
|
+
|
|
3246
|
+
// The `shape` default is set in a helper (not the constructor body) so the CEM
|
|
3247
|
+
// analyzer keeps its `@type` union instead of inferring `string` from a
|
|
3248
|
+
// constructor-literal assignment. See AlaskaAirlines/discussions#653.
|
|
3249
|
+
initializeArchitectureDefaults() {
|
|
3250
|
+
this.shape = "rounded";
|
|
3240
3251
|
}
|
|
3241
3252
|
|
|
3242
3253
|
static get styles() {
|
|
@@ -3255,6 +3266,7 @@ class AuroDropdownBib extends i {
|
|
|
3255
3266
|
*/
|
|
3256
3267
|
isFullscreen: {
|
|
3257
3268
|
type: Boolean,
|
|
3269
|
+
attribute: 'isfullscreen',
|
|
3258
3270
|
reflect: true
|
|
3259
3271
|
},
|
|
3260
3272
|
|
|
@@ -3280,6 +3292,7 @@ class AuroDropdownBib extends i {
|
|
|
3280
3292
|
*/
|
|
3281
3293
|
matchWidth: {
|
|
3282
3294
|
type: Boolean,
|
|
3295
|
+
attribute: 'matchwidth',
|
|
3283
3296
|
reflect: true
|
|
3284
3297
|
},
|
|
3285
3298
|
|
|
@@ -3295,11 +3308,18 @@ class AuroDropdownBib extends i {
|
|
|
3295
3308
|
* A reference to the associated bib template element.
|
|
3296
3309
|
*/
|
|
3297
3310
|
bibTemplate: {
|
|
3298
|
-
type: Object
|
|
3311
|
+
type: Object,
|
|
3312
|
+
attribute: 'bibtemplate'
|
|
3299
3313
|
},
|
|
3300
3314
|
|
|
3315
|
+
/**
|
|
3316
|
+
* Sets the shape of the dropdown bib.
|
|
3317
|
+
* @type {'box' | 'classic' | 'pill' | 'rounded' | 'snowflake'}
|
|
3318
|
+
* @default 'rounded'
|
|
3319
|
+
*/
|
|
3301
3320
|
shape: {
|
|
3302
3321
|
type: String,
|
|
3322
|
+
attribute: "shape",
|
|
3303
3323
|
reflect: true
|
|
3304
3324
|
},
|
|
3305
3325
|
|
|
@@ -3311,7 +3331,8 @@ class AuroDropdownBib extends i {
|
|
|
3311
3331
|
* @private
|
|
3312
3332
|
*/
|
|
3313
3333
|
dialogLabel: {
|
|
3314
|
-
type: String
|
|
3334
|
+
type: String,
|
|
3335
|
+
attribute: 'dialoglabel'
|
|
3315
3336
|
},
|
|
3316
3337
|
|
|
3317
3338
|
/**
|
|
@@ -3322,7 +3343,8 @@ class AuroDropdownBib extends i {
|
|
|
3322
3343
|
* @private
|
|
3323
3344
|
*/
|
|
3324
3345
|
dialogRole: {
|
|
3325
|
-
type: String
|
|
3346
|
+
type: String,
|
|
3347
|
+
attribute: 'dialogrole'
|
|
3326
3348
|
},
|
|
3327
3349
|
|
|
3328
3350
|
/**
|
|
@@ -3330,7 +3352,8 @@ class AuroDropdownBib extends i {
|
|
|
3330
3352
|
* @private
|
|
3331
3353
|
*/
|
|
3332
3354
|
hasActiveDescendant: {
|
|
3333
|
-
type: Boolean
|
|
3355
|
+
type: Boolean,
|
|
3356
|
+
attribute: 'hasactivedescendant'
|
|
3334
3357
|
}
|
|
3335
3358
|
};
|
|
3336
3359
|
}
|
|
@@ -3681,6 +3704,8 @@ class AuroHelpText extends i {
|
|
|
3681
3704
|
super();
|
|
3682
3705
|
|
|
3683
3706
|
this.error = false;
|
|
3707
|
+
|
|
3708
|
+
/** @type {'default' | 'inverse'} */
|
|
3684
3709
|
this.appearance = "default";
|
|
3685
3710
|
this.onDark = false;
|
|
3686
3711
|
this.hasTextContent = false;
|
|
@@ -3701,8 +3726,8 @@ class AuroHelpText extends i {
|
|
|
3701
3726
|
return {
|
|
3702
3727
|
|
|
3703
3728
|
/**
|
|
3704
|
-
*
|
|
3705
|
-
* @
|
|
3729
|
+
* The appearance of the help text, either default (for light backgrounds) or inverse (for dark backgrounds).
|
|
3730
|
+
* @type {'default' | 'inverse'}
|
|
3706
3731
|
* @default 'default'
|
|
3707
3732
|
*/
|
|
3708
3733
|
appearance: {
|
|
@@ -3715,6 +3740,7 @@ class AuroHelpText extends i {
|
|
|
3715
3740
|
*/
|
|
3716
3741
|
slotNodes: {
|
|
3717
3742
|
type: Boolean,
|
|
3743
|
+
attribute: 'slotnodes',
|
|
3718
3744
|
},
|
|
3719
3745
|
|
|
3720
3746
|
/**
|
|
@@ -3722,6 +3748,7 @@ class AuroHelpText extends i {
|
|
|
3722
3748
|
*/
|
|
3723
3749
|
hasTextContent: {
|
|
3724
3750
|
type: Boolean,
|
|
3751
|
+
attribute: 'hastextcontent',
|
|
3725
3752
|
},
|
|
3726
3753
|
|
|
3727
3754
|
/**
|
|
@@ -3737,6 +3764,7 @@ class AuroHelpText extends i {
|
|
|
3737
3764
|
*/
|
|
3738
3765
|
onDark: {
|
|
3739
3766
|
type: Boolean,
|
|
3767
|
+
attribute: 'ondark',
|
|
3740
3768
|
reflect: true
|
|
3741
3769
|
}
|
|
3742
3770
|
};
|
|
@@ -3807,39 +3835,39 @@ class AuroHelpText extends i {
|
|
|
3807
3835
|
}
|
|
3808
3836
|
}
|
|
3809
3837
|
|
|
3810
|
-
var formkitVersion = '
|
|
3838
|
+
var formkitVersion = '202608300032';
|
|
3811
3839
|
|
|
3840
|
+
/**
|
|
3841
|
+
* AuroElement is the shared base class for layout-aware Auro form components.
|
|
3842
|
+
*
|
|
3843
|
+
* It defines the common `layout`, `shape`, `size`, and `ondark` reactive
|
|
3844
|
+
* properties and the architecture helpers (`renderLayout`, `resetShapeClasses`,
|
|
3845
|
+
* `resetLayoutClasses`) that subclasses use to render a chosen layout and apply
|
|
3846
|
+
* the matching `shape-*` / `layout-*` wrapper classes. Subclasses supply their
|
|
3847
|
+
* own default and valid value set for `layout`, `shape`, and `size`.
|
|
3848
|
+
*/
|
|
3812
3849
|
class AuroElement extends i {
|
|
3813
3850
|
static get properties() {
|
|
3814
3851
|
return {
|
|
3815
3852
|
|
|
3816
3853
|
/**
|
|
3817
|
-
*
|
|
3818
|
-
* @default {'default'}
|
|
3854
|
+
* When true, renders the component styled for use on a dark background.
|
|
3819
3855
|
*/
|
|
3820
|
-
layout: {
|
|
3821
|
-
type: String,
|
|
3822
|
-
attribute: "layout",
|
|
3823
|
-
reflect: true
|
|
3824
|
-
},
|
|
3825
|
-
|
|
3826
|
-
shape: {
|
|
3827
|
-
type: String,
|
|
3828
|
-
attribute: "shape",
|
|
3829
|
-
reflect: true
|
|
3830
|
-
},
|
|
3831
|
-
|
|
3832
|
-
size: {
|
|
3833
|
-
type: String,
|
|
3834
|
-
attribute: "size",
|
|
3835
|
-
reflect: true
|
|
3836
|
-
},
|
|
3837
|
-
|
|
3838
3856
|
onDark: {
|
|
3839
3857
|
type: Boolean,
|
|
3840
3858
|
attribute: "ondark",
|
|
3841
3859
|
reflect: true
|
|
3842
3860
|
}
|
|
3861
|
+
|
|
3862
|
+
// NOTE: `layout`, `shape`, and `size` are intentionally NOT declared here.
|
|
3863
|
+
// Their valid value sets differ per component, and the CEM analyzer roots
|
|
3864
|
+
// an inherited property's `type` in the class that declares it — a base
|
|
3865
|
+
// declaration would force every subclass's `@type` to be discarded and
|
|
3866
|
+
// emitted as plain `string`. Each subclass declares its own `layout` /
|
|
3867
|
+
// `shape` / `size` with an exact `@type` union instead. AuroElement still
|
|
3868
|
+
// consumes `this.layout` / `this.shape` / `this.size` in its render and
|
|
3869
|
+
// architecture helpers below (subclasses guarantee the reactive props).
|
|
3870
|
+
// See AlaskaAirlines/discussions#653.
|
|
3843
3871
|
};
|
|
3844
3872
|
}
|
|
3845
3873
|
|
|
@@ -3925,6 +3953,7 @@ class AuroElement extends i {
|
|
|
3925
3953
|
* @slot helpText - Defines the content of the helpText.
|
|
3926
3954
|
* @slot trigger - Defines the content of the trigger.
|
|
3927
3955
|
* @csspart trigger - The trigger content container.
|
|
3956
|
+
* @csspart wrapper - The trigger wrapper element surrounding the trigger content and chevron.
|
|
3928
3957
|
* @csspart chevron - The collapsed/expanded state icon container.
|
|
3929
3958
|
* @csspart size - The size of the dropdown bib. (height, width, maxHeight, maxWidth only)
|
|
3930
3959
|
* @csspart helpText - The helpText content container.
|
|
@@ -3949,7 +3978,7 @@ class AuroDropdown extends AuroElement {
|
|
|
3949
3978
|
|
|
3950
3979
|
/**
|
|
3951
3980
|
* When true, the dropdown skips its generic focus restoration on close.
|
|
3952
|
-
* Set by consumers (
|
|
3981
|
+
* Set by consumers (for example combobox) that manage their own focus routing
|
|
3953
3982
|
* via setClearBtnFocus / setInputFocus / keyboard strategy.
|
|
3954
3983
|
* Separate from noHideOnThisFocusLoss (which controls auto-close behavior).
|
|
3955
3984
|
* @private
|
|
@@ -4118,7 +4147,7 @@ class AuroDropdown extends AuroElement {
|
|
|
4118
4147
|
/**
|
|
4119
4148
|
* Focus the trigger content. When the trigger wrapper itself is focusable
|
|
4120
4149
|
* (has tabindex), focus it directly. Otherwise, focus the first focusable
|
|
4121
|
-
* element slotted into the trigger slot (
|
|
4150
|
+
* element slotted into the trigger slot (for example the auro-input).
|
|
4122
4151
|
* @private
|
|
4123
4152
|
*/
|
|
4124
4153
|
focusTrigger() {
|
|
@@ -4215,6 +4244,7 @@ class AuroDropdown extends AuroElement {
|
|
|
4215
4244
|
*/
|
|
4216
4245
|
autoPlacement: {
|
|
4217
4246
|
type: Boolean,
|
|
4247
|
+
attribute: 'autoplacement',
|
|
4218
4248
|
reflect: true
|
|
4219
4249
|
},
|
|
4220
4250
|
|
|
@@ -4223,6 +4253,7 @@ class AuroDropdown extends AuroElement {
|
|
|
4223
4253
|
*/
|
|
4224
4254
|
desktopModal: {
|
|
4225
4255
|
type: Boolean,
|
|
4256
|
+
attribute: 'desktopmodal',
|
|
4226
4257
|
reflect: true
|
|
4227
4258
|
},
|
|
4228
4259
|
|
|
@@ -4231,6 +4262,7 @@ class AuroDropdown extends AuroElement {
|
|
|
4231
4262
|
*/
|
|
4232
4263
|
disableEventShow: {
|
|
4233
4264
|
type: Boolean,
|
|
4265
|
+
attribute: 'disableeventshow',
|
|
4234
4266
|
reflect: true
|
|
4235
4267
|
},
|
|
4236
4268
|
|
|
@@ -4264,14 +4296,16 @@ class AuroDropdown extends AuroElement {
|
|
|
4264
4296
|
*/
|
|
4265
4297
|
disableKeyboardHandling: {
|
|
4266
4298
|
type: Boolean,
|
|
4299
|
+
attribute: 'disablekeyboardhandling',
|
|
4267
4300
|
reflect: true
|
|
4268
4301
|
},
|
|
4269
4302
|
|
|
4270
4303
|
/**
|
|
4271
|
-
*
|
|
4304
|
+
* Sets the width of the dropdown bib in pixels.
|
|
4272
4305
|
*/
|
|
4273
4306
|
dropdownWidth: {
|
|
4274
|
-
type: Number
|
|
4307
|
+
type: Number,
|
|
4308
|
+
attribute: 'dropdownwidth'
|
|
4275
4309
|
},
|
|
4276
4310
|
|
|
4277
4311
|
/**
|
|
@@ -4296,7 +4330,8 @@ class AuroDropdown extends AuroElement {
|
|
|
4296
4330
|
* Contains the help text message for the current validity error.
|
|
4297
4331
|
*/
|
|
4298
4332
|
errorMessage: {
|
|
4299
|
-
type: String
|
|
4333
|
+
type: String,
|
|
4334
|
+
attribute: 'errormessage'
|
|
4300
4335
|
},
|
|
4301
4336
|
|
|
4302
4337
|
/**
|
|
@@ -4304,6 +4339,7 @@ class AuroDropdown extends AuroElement {
|
|
|
4304
4339
|
*/
|
|
4305
4340
|
focusShow: {
|
|
4306
4341
|
type: Boolean,
|
|
4342
|
+
attribute: 'focusshow',
|
|
4307
4343
|
reflect: true
|
|
4308
4344
|
},
|
|
4309
4345
|
|
|
@@ -4321,6 +4357,7 @@ class AuroDropdown extends AuroElement {
|
|
|
4321
4357
|
*/
|
|
4322
4358
|
isBibFullscreen: {
|
|
4323
4359
|
type: Boolean,
|
|
4360
|
+
attribute: 'isbibfullscreen',
|
|
4324
4361
|
reflect: true
|
|
4325
4362
|
},
|
|
4326
4363
|
|
|
@@ -4329,6 +4366,7 @@ class AuroDropdown extends AuroElement {
|
|
|
4329
4366
|
*/
|
|
4330
4367
|
hoverToggle: {
|
|
4331
4368
|
type: Boolean,
|
|
4369
|
+
attribute: 'hovertoggle',
|
|
4332
4370
|
reflect: true
|
|
4333
4371
|
},
|
|
4334
4372
|
|
|
@@ -4336,7 +4374,8 @@ class AuroDropdown extends AuroElement {
|
|
|
4336
4374
|
* @private
|
|
4337
4375
|
*/
|
|
4338
4376
|
hasTriggerContent: {
|
|
4339
|
-
type: Boolean
|
|
4377
|
+
type: Boolean,
|
|
4378
|
+
attribute: false
|
|
4340
4379
|
},
|
|
4341
4380
|
|
|
4342
4381
|
/**
|
|
@@ -4349,6 +4388,7 @@ class AuroDropdown extends AuroElement {
|
|
|
4349
4388
|
*/
|
|
4350
4389
|
fullscreenBreakpoint: {
|
|
4351
4390
|
type: String,
|
|
4391
|
+
attribute: "fullscreenbreakpoint",
|
|
4352
4392
|
reflect: true
|
|
4353
4393
|
},
|
|
4354
4394
|
|
|
@@ -4359,6 +4399,27 @@ class AuroDropdown extends AuroElement {
|
|
|
4359
4399
|
*/
|
|
4360
4400
|
layout: {
|
|
4361
4401
|
type: String,
|
|
4402
|
+
attribute: "layout",
|
|
4403
|
+
reflect: true
|
|
4404
|
+
},
|
|
4405
|
+
|
|
4406
|
+
/**
|
|
4407
|
+
* Sets the shape of the dropdown.
|
|
4408
|
+
* @type {'box' | 'classic' | 'pill' | 'pill-left' | 'pill-right' | 'rounded' | 'snowflake'}
|
|
4409
|
+
*/
|
|
4410
|
+
shape: {
|
|
4411
|
+
type: String,
|
|
4412
|
+
attribute: "shape",
|
|
4413
|
+
reflect: true
|
|
4414
|
+
},
|
|
4415
|
+
|
|
4416
|
+
/**
|
|
4417
|
+
* Sets the size of the dropdown.
|
|
4418
|
+
* @type {'xs' | 'sm' | 'md' | 'lg' | 'xl'}
|
|
4419
|
+
*/
|
|
4420
|
+
size: {
|
|
4421
|
+
type: String,
|
|
4422
|
+
attribute: "size",
|
|
4362
4423
|
reflect: true
|
|
4363
4424
|
},
|
|
4364
4425
|
|
|
@@ -4368,6 +4429,7 @@ class AuroDropdown extends AuroElement {
|
|
|
4368
4429
|
*/
|
|
4369
4430
|
parentBorder: {
|
|
4370
4431
|
type: Boolean,
|
|
4432
|
+
attribute: 'parentborder',
|
|
4371
4433
|
reflect: true
|
|
4372
4434
|
},
|
|
4373
4435
|
|
|
@@ -4376,6 +4438,7 @@ class AuroDropdown extends AuroElement {
|
|
|
4376
4438
|
*/
|
|
4377
4439
|
matchWidth: {
|
|
4378
4440
|
type: Boolean,
|
|
4441
|
+
attribute: 'matchwidth',
|
|
4379
4442
|
reflect: true
|
|
4380
4443
|
},
|
|
4381
4444
|
|
|
@@ -4385,6 +4448,7 @@ class AuroDropdown extends AuroElement {
|
|
|
4385
4448
|
*/
|
|
4386
4449
|
noFlip: {
|
|
4387
4450
|
type: Boolean,
|
|
4451
|
+
attribute: 'noflip',
|
|
4388
4452
|
reflect: true
|
|
4389
4453
|
},
|
|
4390
4454
|
|
|
@@ -4401,6 +4465,7 @@ class AuroDropdown extends AuroElement {
|
|
|
4401
4465
|
*/
|
|
4402
4466
|
noHideOnThisFocusLoss: {
|
|
4403
4467
|
type: Boolean,
|
|
4468
|
+
attribute: 'nohideonthisfocusloss',
|
|
4404
4469
|
reflect: true
|
|
4405
4470
|
},
|
|
4406
4471
|
|
|
@@ -4409,6 +4474,7 @@ class AuroDropdown extends AuroElement {
|
|
|
4409
4474
|
*/
|
|
4410
4475
|
noToggle: {
|
|
4411
4476
|
type: Boolean,
|
|
4477
|
+
attribute: 'notoggle',
|
|
4412
4478
|
reflect: true
|
|
4413
4479
|
},
|
|
4414
4480
|
|
|
@@ -4426,14 +4492,17 @@ class AuroDropdown extends AuroElement {
|
|
|
4426
4492
|
*/
|
|
4427
4493
|
onDark: {
|
|
4428
4494
|
type: Boolean,
|
|
4495
|
+
attribute: 'ondark',
|
|
4429
4496
|
reflect: true
|
|
4430
4497
|
},
|
|
4431
4498
|
|
|
4432
4499
|
/**
|
|
4433
4500
|
* If declared, and a function is set, that function will execute when the slot content is updated.
|
|
4501
|
+
* @type {() => void}
|
|
4434
4502
|
*/
|
|
4435
4503
|
onSlotChange: {
|
|
4436
4504
|
type: Function,
|
|
4505
|
+
attribute: 'onslotchange',
|
|
4437
4506
|
reflect: false
|
|
4438
4507
|
},
|
|
4439
4508
|
|
|
@@ -4448,10 +4517,11 @@ class AuroDropdown extends AuroElement {
|
|
|
4448
4517
|
},
|
|
4449
4518
|
|
|
4450
4519
|
/**
|
|
4451
|
-
*
|
|
4520
|
+
* Sets the tabindex applied to the dropdown trigger for keyboard focus order.
|
|
4452
4521
|
*/
|
|
4453
4522
|
tabIndex: {
|
|
4454
|
-
type: Number
|
|
4523
|
+
type: Number,
|
|
4524
|
+
attribute: 'tabindex'
|
|
4455
4525
|
},
|
|
4456
4526
|
|
|
4457
4527
|
/**
|
|
@@ -4675,7 +4745,7 @@ class AuroDropdown extends AuroElement {
|
|
|
4675
4745
|
/**
|
|
4676
4746
|
* @description Let subscribers know that the dropdown ID ha been generated and added.
|
|
4677
4747
|
* @event auroDropdown-idAdded
|
|
4678
|
-
* @type {
|
|
4748
|
+
* @type {CustomEvent<{ id: string }>} - Detail carries the generated ID of the dropdown bib element.
|
|
4679
4749
|
*/
|
|
4680
4750
|
this.dispatchEvent(new CustomEvent('auroDropdown-idAdded', {detail: {id: this.floater.element.id}}));
|
|
4681
4751
|
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
* @slot helpText - Defines the content of the helpText.
|
|
7
7
|
* @slot trigger - Defines the content of the trigger.
|
|
8
8
|
* @csspart trigger - The trigger content container.
|
|
9
|
+
* @csspart wrapper - The trigger wrapper element surrounding the trigger content and chevron.
|
|
9
10
|
* @csspart chevron - The collapsed/expanded state icon container.
|
|
10
11
|
* @csspart size - The size of the dropdown bib. (height, width, maxHeight, maxWidth only)
|
|
11
12
|
* @csspart helpText - The helpText content container.
|
|
@@ -42,6 +43,7 @@ export class AuroDropdown extends AuroElement {
|
|
|
42
43
|
*/
|
|
43
44
|
autoPlacement: {
|
|
44
45
|
type: BooleanConstructor;
|
|
46
|
+
attribute: string;
|
|
45
47
|
reflect: boolean;
|
|
46
48
|
};
|
|
47
49
|
/**
|
|
@@ -49,6 +51,7 @@ export class AuroDropdown extends AuroElement {
|
|
|
49
51
|
*/
|
|
50
52
|
desktopModal: {
|
|
51
53
|
type: BooleanConstructor;
|
|
54
|
+
attribute: string;
|
|
52
55
|
reflect: boolean;
|
|
53
56
|
};
|
|
54
57
|
/**
|
|
@@ -56,6 +59,7 @@ export class AuroDropdown extends AuroElement {
|
|
|
56
59
|
*/
|
|
57
60
|
disableEventShow: {
|
|
58
61
|
type: BooleanConstructor;
|
|
62
|
+
attribute: string;
|
|
59
63
|
reflect: boolean;
|
|
60
64
|
};
|
|
61
65
|
/**
|
|
@@ -85,13 +89,15 @@ export class AuroDropdown extends AuroElement {
|
|
|
85
89
|
*/
|
|
86
90
|
disableKeyboardHandling: {
|
|
87
91
|
type: BooleanConstructor;
|
|
92
|
+
attribute: string;
|
|
88
93
|
reflect: boolean;
|
|
89
94
|
};
|
|
90
95
|
/**
|
|
91
|
-
*
|
|
96
|
+
* Sets the width of the dropdown bib in pixels.
|
|
92
97
|
*/
|
|
93
98
|
dropdownWidth: {
|
|
94
99
|
type: NumberConstructor;
|
|
100
|
+
attribute: string;
|
|
95
101
|
};
|
|
96
102
|
/**
|
|
97
103
|
* The unique ID for the dropdown bib element.
|
|
@@ -114,12 +120,14 @@ export class AuroDropdown extends AuroElement {
|
|
|
114
120
|
*/
|
|
115
121
|
errorMessage: {
|
|
116
122
|
type: StringConstructor;
|
|
123
|
+
attribute: string;
|
|
117
124
|
};
|
|
118
125
|
/**
|
|
119
126
|
* If declared, the bib will display when focus is applied to the trigger.
|
|
120
127
|
*/
|
|
121
128
|
focusShow: {
|
|
122
129
|
type: BooleanConstructor;
|
|
130
|
+
attribute: string;
|
|
123
131
|
reflect: boolean;
|
|
124
132
|
};
|
|
125
133
|
/**
|
|
@@ -135,6 +143,7 @@ export class AuroDropdown extends AuroElement {
|
|
|
135
143
|
*/
|
|
136
144
|
isBibFullscreen: {
|
|
137
145
|
type: BooleanConstructor;
|
|
146
|
+
attribute: string;
|
|
138
147
|
reflect: boolean;
|
|
139
148
|
};
|
|
140
149
|
/**
|
|
@@ -142,6 +151,7 @@ export class AuroDropdown extends AuroElement {
|
|
|
142
151
|
*/
|
|
143
152
|
hoverToggle: {
|
|
144
153
|
type: BooleanConstructor;
|
|
154
|
+
attribute: string;
|
|
145
155
|
reflect: boolean;
|
|
146
156
|
};
|
|
147
157
|
/**
|
|
@@ -149,6 +159,7 @@ export class AuroDropdown extends AuroElement {
|
|
|
149
159
|
*/
|
|
150
160
|
hasTriggerContent: {
|
|
151
161
|
type: BooleanConstructor;
|
|
162
|
+
attribute: boolean;
|
|
152
163
|
};
|
|
153
164
|
/**
|
|
154
165
|
* Defines the screen size breakpoint at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
|
|
@@ -165,12 +176,23 @@ export class AuroDropdown extends AuroElement {
|
|
|
165
176
|
* @default 'classic'
|
|
166
177
|
*/
|
|
167
178
|
layout: "classic" | "emphasized" | "snowflake";
|
|
179
|
+
/**
|
|
180
|
+
* Sets the shape of the dropdown.
|
|
181
|
+
* @type {'box' | 'classic' | 'pill' | 'pill-left' | 'pill-right' | 'rounded' | 'snowflake'}
|
|
182
|
+
*/
|
|
183
|
+
shape: "box" | "classic" | "pill" | "pill-left" | "pill-right" | "rounded" | "snowflake";
|
|
184
|
+
/**
|
|
185
|
+
* Sets the size of the dropdown.
|
|
186
|
+
* @type {'xs' | 'sm' | 'md' | 'lg' | 'xl'}
|
|
187
|
+
*/
|
|
188
|
+
size: "xs" | "sm" | "md" | "lg" | "xl";
|
|
168
189
|
/**
|
|
169
190
|
* Defines if the trigger should size based on the parent element providing the border UI.
|
|
170
191
|
* @private
|
|
171
192
|
*/
|
|
172
193
|
parentBorder: {
|
|
173
194
|
type: BooleanConstructor;
|
|
195
|
+
attribute: string;
|
|
174
196
|
reflect: boolean;
|
|
175
197
|
};
|
|
176
198
|
/**
|
|
@@ -178,6 +200,7 @@ export class AuroDropdown extends AuroElement {
|
|
|
178
200
|
*/
|
|
179
201
|
matchWidth: {
|
|
180
202
|
type: BooleanConstructor;
|
|
203
|
+
attribute: string;
|
|
181
204
|
reflect: boolean;
|
|
182
205
|
};
|
|
183
206
|
/**
|
|
@@ -186,6 +209,7 @@ export class AuroDropdown extends AuroElement {
|
|
|
186
209
|
*/
|
|
187
210
|
noFlip: {
|
|
188
211
|
type: BooleanConstructor;
|
|
212
|
+
attribute: string;
|
|
189
213
|
reflect: boolean;
|
|
190
214
|
};
|
|
191
215
|
/**
|
|
@@ -200,6 +224,7 @@ export class AuroDropdown extends AuroElement {
|
|
|
200
224
|
*/
|
|
201
225
|
noHideOnThisFocusLoss: {
|
|
202
226
|
type: BooleanConstructor;
|
|
227
|
+
attribute: string;
|
|
203
228
|
reflect: boolean;
|
|
204
229
|
};
|
|
205
230
|
/**
|
|
@@ -207,6 +232,7 @@ export class AuroDropdown extends AuroElement {
|
|
|
207
232
|
*/
|
|
208
233
|
noToggle: {
|
|
209
234
|
type: BooleanConstructor;
|
|
235
|
+
attribute: string;
|
|
210
236
|
reflect: boolean;
|
|
211
237
|
};
|
|
212
238
|
/**
|
|
@@ -222,15 +248,14 @@ export class AuroDropdown extends AuroElement {
|
|
|
222
248
|
*/
|
|
223
249
|
onDark: {
|
|
224
250
|
type: BooleanConstructor;
|
|
251
|
+
attribute: string;
|
|
225
252
|
reflect: boolean;
|
|
226
253
|
};
|
|
227
254
|
/**
|
|
228
255
|
* If declared, and a function is set, that function will execute when the slot content is updated.
|
|
256
|
+
* @type {() => void}
|
|
229
257
|
*/
|
|
230
|
-
onSlotChange:
|
|
231
|
-
type: FunctionConstructor;
|
|
232
|
-
reflect: boolean;
|
|
233
|
-
};
|
|
258
|
+
onSlotChange: () => void;
|
|
234
259
|
/**
|
|
235
260
|
* Position where the bib should appear relative to the trigger.
|
|
236
261
|
* @type {'top' | 'right' | 'bottom' | 'left' | 'bottom-start' | 'top-start' | 'top-end' | 'right-start' | 'right-end' | 'bottom-end' | 'left-start' | 'left-end'}
|
|
@@ -238,10 +263,11 @@ export class AuroDropdown extends AuroElement {
|
|
|
238
263
|
*/
|
|
239
264
|
placement: "top" | "right" | "bottom" | "left" | "bottom-start" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-end" | "left-start" | "left-end";
|
|
240
265
|
/**
|
|
241
|
-
*
|
|
266
|
+
* Sets the tabindex applied to the dropdown trigger for keyboard focus order.
|
|
242
267
|
*/
|
|
243
268
|
tabIndex: {
|
|
244
269
|
type: NumberConstructor;
|
|
270
|
+
attribute: string;
|
|
245
271
|
};
|
|
246
272
|
/**
|
|
247
273
|
* Accessible label for the dropdown bib dialog element.
|
|
@@ -269,7 +295,7 @@ export class AuroDropdown extends AuroElement {
|
|
|
269
295
|
noHideOnThisFocusLoss: boolean;
|
|
270
296
|
/**
|
|
271
297
|
* When true, the dropdown skips its generic focus restoration on close.
|
|
272
|
-
* Set by consumers (
|
|
298
|
+
* Set by consumers (for example combobox) that manage their own focus routing
|
|
273
299
|
* via setClearBtnFocus / setInputFocus / keyboard strategy.
|
|
274
300
|
* Separate from noHideOnThisFocusLoss (which controls auto-close behavior).
|
|
275
301
|
* @private
|
|
@@ -377,7 +403,7 @@ export class AuroDropdown extends AuroElement {
|
|
|
377
403
|
/**
|
|
378
404
|
* Focus the trigger content. When the trigger wrapper itself is focusable
|
|
379
405
|
* (has tabindex), focus it directly. Otherwise, focus the first focusable
|
|
380
|
-
* element slotted into the trigger slot (
|
|
406
|
+
* element slotted into the trigger slot (for example the auro-input).
|
|
381
407
|
* @private
|
|
382
408
|
*/
|
|
383
409
|
private focusTrigger;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
+
* The `auro-dropdownbib` element renders the dropdown's bib as a dialog/popover container and manages its fullscreen and modal display.
|
|
2
3
|
* @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.
|
|
3
4
|
* @csspart bibContainer - Apply css to the bib container.
|
|
5
|
+
* @event auro-dropdownbib-connected - Notifies that the dropdown bib has connected to the DOM, passing a reference to the element in the event detail.
|
|
6
|
+
* @event auro-bib-cancel - Notifies that the bib was cancelled (e.g. via the ESC key) so parent components can close it.
|
|
4
7
|
*/
|
|
5
8
|
export class AuroDropdownBib extends LitElement {
|
|
6
9
|
static get styles(): import("lit").CSSResult[];
|
|
@@ -10,6 +13,7 @@ export class AuroDropdownBib extends LitElement {
|
|
|
10
13
|
*/
|
|
11
14
|
isFullscreen: {
|
|
12
15
|
type: BooleanConstructor;
|
|
16
|
+
attribute: string;
|
|
13
17
|
reflect: boolean;
|
|
14
18
|
};
|
|
15
19
|
/**
|
|
@@ -32,6 +36,7 @@ export class AuroDropdownBib extends LitElement {
|
|
|
32
36
|
*/
|
|
33
37
|
matchWidth: {
|
|
34
38
|
type: BooleanConstructor;
|
|
39
|
+
attribute: string;
|
|
35
40
|
reflect: boolean;
|
|
36
41
|
};
|
|
37
42
|
/**
|
|
@@ -46,11 +51,14 @@ export class AuroDropdownBib extends LitElement {
|
|
|
46
51
|
*/
|
|
47
52
|
bibTemplate: {
|
|
48
53
|
type: ObjectConstructor;
|
|
54
|
+
attribute: string;
|
|
49
55
|
};
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
56
|
+
/**
|
|
57
|
+
* Sets the shape of the dropdown bib.
|
|
58
|
+
* @type {'box' | 'classic' | 'pill' | 'rounded' | 'snowflake'}
|
|
59
|
+
* @default 'rounded'
|
|
60
|
+
*/
|
|
61
|
+
shape: "box" | "classic" | "pill" | "rounded" | "snowflake";
|
|
54
62
|
/**
|
|
55
63
|
* Accessible label for the dialog element, used when displayed as a modal.
|
|
56
64
|
* Applied via aria-labelledby on a visually hidden element rather than
|
|
@@ -60,6 +68,7 @@ export class AuroDropdownBib extends LitElement {
|
|
|
60
68
|
*/
|
|
61
69
|
dialogLabel: {
|
|
62
70
|
type: StringConstructor;
|
|
71
|
+
attribute: string;
|
|
63
72
|
};
|
|
64
73
|
/**
|
|
65
74
|
* Overrides the native role of the dialog element.
|
|
@@ -70,6 +79,7 @@ export class AuroDropdownBib extends LitElement {
|
|
|
70
79
|
*/
|
|
71
80
|
dialogRole: {
|
|
72
81
|
type: StringConstructor;
|
|
82
|
+
attribute: string;
|
|
73
83
|
};
|
|
74
84
|
/**
|
|
75
85
|
* Tracks whether a menu option is currently highlighted.
|
|
@@ -77,15 +87,17 @@ export class AuroDropdownBib extends LitElement {
|
|
|
77
87
|
*/
|
|
78
88
|
hasActiveDescendant: {
|
|
79
89
|
type: BooleanConstructor;
|
|
90
|
+
attribute: string;
|
|
80
91
|
};
|
|
81
92
|
};
|
|
82
93
|
/**
|
|
83
94
|
* @private
|
|
84
95
|
*/
|
|
85
96
|
private _mobileBreakpointName;
|
|
86
|
-
shape: string;
|
|
87
97
|
matchWidth: boolean;
|
|
88
98
|
hasActiveDescendant: boolean;
|
|
99
|
+
initializeArchitectureDefaults(): void;
|
|
100
|
+
shape: string | undefined;
|
|
89
101
|
set mobileFullscreenBreakpoint(value: string | undefined);
|
|
90
102
|
get mobileFullscreenBreakpoint(): string | undefined;
|
|
91
103
|
updated(changedProperties: any): void;
|