@aurodesignsystem/auro-formkit 2.1.0 → 2.2.0-beta.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/CHANGELOG.md +18 -2
- package/components/bibtemplate/dist/index.js +2 -2
- package/components/bibtemplate/dist/registered.js +2 -2
- package/components/checkbox/README.md +1 -1
- package/components/checkbox/demo/readme.md +1 -1
- package/components/combobox/README.md +1 -1
- package/components/combobox/demo/api.md +122 -19
- package/components/combobox/demo/api.min.js +160 -24
- package/components/combobox/demo/index.min.js +160 -24
- package/components/combobox/demo/readme.md +1 -1
- package/components/combobox/dist/auro-combobox.d.ts +42 -0
- package/components/combobox/dist/index.js +160 -24
- package/components/combobox/dist/registered.js +160 -24
- package/components/counter/README.md +1 -1
- package/components/counter/demo/api.md +113 -10
- package/components/counter/demo/api.min.js +178 -47
- package/components/counter/demo/index.min.js +178 -47
- package/components/counter/demo/readme.md +1 -1
- package/components/counter/dist/auro-counter-group.d.ts +55 -17
- package/components/counter/dist/index.js +178 -47
- package/components/counter/dist/registered.js +178 -47
- package/components/datepicker/README.md +1 -1
- package/components/datepicker/demo/api.md +61 -0
- package/components/datepicker/demo/api.min.js +162 -25
- package/components/datepicker/demo/index.min.js +162 -25
- package/components/datepicker/demo/readme.md +1 -1
- package/components/datepicker/dist/auro-datepicker.d.ts +42 -0
- package/components/datepicker/dist/index.js +162 -25
- package/components/datepicker/dist/registered.js +162 -25
- package/components/dropdown/README.md +1 -1
- package/components/dropdown/demo/api.md +166 -19
- package/components/dropdown/demo/api.min.js +106 -22
- package/components/dropdown/demo/index.min.js +106 -22
- package/components/dropdown/demo/readme.md +1 -1
- package/components/dropdown/dist/auro-dropdown.d.ts +63 -7
- package/components/dropdown/dist/index.js +106 -22
- package/components/dropdown/dist/registered.js +106 -22
- package/components/form/README.md +1 -1
- package/components/form/demo/readme.md +1 -1
- package/components/input/README.md +1 -1
- package/components/input/demo/readme.md +1 -1
- package/components/menu/README.md +1 -1
- package/components/menu/demo/readme.md +1 -1
- package/components/radio/README.md +1 -1
- package/components/radio/demo/readme.md +1 -1
- package/components/select/README.md +2 -1
- package/components/select/demo/api.md +142 -17
- package/components/select/demo/api.min.js +160 -24
- package/components/select/demo/index.md +14 -0
- package/components/select/demo/index.min.js +160 -24
- package/components/select/demo/readme.md +2 -1
- package/components/select/dist/auro-select.d.ts +42 -0
- package/components/select/dist/index.js +160 -24
- package/components/select/dist/registered.js +160 -24
- package/package.json +1 -1
|
@@ -3150,7 +3150,7 @@ class AuroDropdownBib extends r$1 {
|
|
|
3150
3150
|
|
|
3151
3151
|
var dropdownVersion$1 = '3.0.0';
|
|
3152
3152
|
|
|
3153
|
-
var styleCss$1$3 = i$5`:host{position:relative;display:inline-block;max-width:100%}:host([fluid]){display:block}#bibSizer{position:absolute;z-index:-1;opacity:0;pointer-events:none}.label{font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-text-body-size-default, 1rem);transition:font-size .3s cubic-bezier(0.215, 0.61, 0.355, 1);white-space:normal}.label[hasTrigger=false]{font-size:var(--ds-text-body-size-default, 1rem)}.trigger{position:relative;display:flex;align-items:center}.trigger[showBorder]{border-width:1px;border-style:solid;cursor:pointer;outline-style:solid;outline-width:1px}@media(hover: hover){.trigger:hover{cursor:pointer}}.triggerContentWrapper{overflow:hidden;flex:1;text-overflow:ellipsis;white-space:nowrap}#showStateIcon{display:flex;overflow:hidden;height:100%;align-items:center;margin-left:var(--ds-size-100, 0.5rem)}#showStateIcon [auro-icon]{height:var(--ds-size-300, 1.5rem);line-height:var(--ds-size-300, 1.5rem)}#showStateIcon[data-expanded=true] [auro-icon]{transform:rotate(-180deg)}:host([matchwidth]) #bibSizer{width:100%}:host([disabled]){pointer-events:none}:host([inset]) .trigger{padding:var(--ds-size-150, 0.75rem) var(--ds-size-200, 1rem)}:host([common]) .trigger,:host([inset][bordered]) .trigger{padding:var(--ds-size-200, 1rem) var(--ds-size-150, 0.75rem)}:host([common]) .trigger,:host([rounded]) .trigger{border-radius:var(--ds-border-radius, 0.375rem)}`;
|
|
3153
|
+
var styleCss$1$3 = i$5`:host{position:relative;display:inline-block;max-width:100%}:host([fluid]){display:block}#bibSizer{position:absolute;z-index:-1;opacity:0;pointer-events:none}.label{font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-text-body-size-default, 1rem);transition:font-size .3s cubic-bezier(0.215, 0.61, 0.355, 1);white-space:normal}.label[hasTrigger=false]{font-size:var(--ds-text-body-size-default, 1rem)}.trigger{position:relative;display:flex;align-items:center}.trigger[showBorder]{border-width:1px;border-style:solid;cursor:pointer;outline-style:solid;outline-width:1px}@media(hover: hover){.trigger:hover{cursor:pointer}}.triggerContentWrapper{overflow:hidden;flex:1;text-overflow:ellipsis;white-space:nowrap}#showStateIcon{display:flex;overflow:hidden;height:100%;align-items:center;margin-left:var(--ds-size-100, 0.5rem)}#showStateIcon [auro-icon]{height:var(--ds-size-300, 1.5rem);line-height:var(--ds-size-300, 1.5rem)}#showStateIcon[data-expanded=true] [auro-icon]{transform:rotate(-180deg)}:host([matchwidth]) #bibSizer{width:100%}:host([disabled]){pointer-events:none}:host([inset]) .trigger{padding:var(--ds-size-150, 0.75rem) var(--ds-size-200, 1rem)}:host([common]) .trigger,:host([inset][bordered]) .trigger{padding:var(--ds-size-200, 1rem) var(--ds-size-150, 0.75rem)}:host([inset][bordered][labeled]) .trigger{padding:var(--ds-size-100, 0.5rem) var(--ds-size-150, 0.75rem)}:host([common]) .trigger,:host([rounded]) .trigger{border-radius:var(--ds-border-radius, 0.375rem)}`;
|
|
3154
3154
|
|
|
3155
3155
|
var colorCss$1$3 = i$5`.label{color:var(--ds-auro-dropdown-label-text-color)}.trigger{border-color:var(--ds-auro-dropdown-trigger-border-color);background-color:var(--ds-auro-dropdown-trigger-container-color);color:var(--ds-auro-dropdown-trigger-text-color);outline-color:var(--ds-auro-dropdown-trigger-outline-color)}.trigger:focus-within,.trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-active-default, #0074c8);--ds-auro-dropdown-trigger-outline-color: var(--ds-color-border-active-default, #0074c8)}.trigger:focus-within:not(:active){--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-ui-focus-default, #2c67b5);--ds-auro-dropdown-trigger-outline-color: var(--ds-color-border-ui-focus-default, #2c67b5)}.trigger:hover{--ds-auro-dropdown-trigger-container-color: var(--ds-color-container-ui-secondary-hover-default, rgba(0, 0, 0, 0.03))}:host([disabled]){--ds-auro-dropdown-trigger-text-color: var(--ds-color-text-ui-disabled-default, #adadad);--ds-auro-dropdown-label-text-color: var(--ds-color-text-ui-disabled-default, #adadad)}:host([common]),:host([bordered]){--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-primary-default, #585e67)}:host([common]) .trigger:active,:host([common]) .trigger:focus-within,:host([bordered]) .trigger:active,:host([bordered]) .trigger:focus-within{--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-ui-focus-default, #2c67b5)}:host([error]){--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-error-default, #cc1816)}:host([error]) .trigger{outline:solid 1px var(--ds-auro-dropdown-trigger-border-color)}:host([error]) .trigger:focus-within,:host([error]) .trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-active-default, #0074c8)}:host([error]) .trigger:active{box-shadow:none;outline:none}:host([disabled][common]),:host([disabled][bordered]){--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-ui-disabled-default, #adadad)}`;
|
|
3156
3156
|
|
|
@@ -3410,10 +3410,16 @@ class AuroDropdown extends r$1 {
|
|
|
3410
3410
|
this.disabled = false;
|
|
3411
3411
|
this.error = false;
|
|
3412
3412
|
this.inset = false;
|
|
3413
|
-
this.placement = 'bottom-start';
|
|
3414
3413
|
this.rounded = false;
|
|
3415
3414
|
this.tabIndex = 0;
|
|
3416
3415
|
this.noToggle = false;
|
|
3416
|
+
this.labeled = true;
|
|
3417
|
+
|
|
3418
|
+
// floaterConfig
|
|
3419
|
+
this.placement = 'bottom-start';
|
|
3420
|
+
this.offset = 0;
|
|
3421
|
+
this.noFlip = false;
|
|
3422
|
+
this.autoPlacement = false;
|
|
3417
3423
|
|
|
3418
3424
|
/**
|
|
3419
3425
|
* @private
|
|
@@ -3435,16 +3441,6 @@ class AuroDropdown extends r$1 {
|
|
|
3435
3441
|
*/
|
|
3436
3442
|
this.floater = new AuroFloatingUI();
|
|
3437
3443
|
|
|
3438
|
-
/**
|
|
3439
|
-
* @private
|
|
3440
|
-
*/
|
|
3441
|
-
this.floaterConfig = {
|
|
3442
|
-
placement: 'bottom-start',
|
|
3443
|
-
flip: true,
|
|
3444
|
-
autoPlacement: false,
|
|
3445
|
-
offset: 0,
|
|
3446
|
-
};
|
|
3447
|
-
|
|
3448
3444
|
/**
|
|
3449
3445
|
* Generate unique names for dependency components.
|
|
3450
3446
|
*/
|
|
@@ -3466,6 +3462,18 @@ class AuroDropdown extends r$1 {
|
|
|
3466
3462
|
this.helpTextTag = versioning.generateTag('auro-formkit-dropdown-helptext', helpTextVersion$1, AuroHelpText$1);
|
|
3467
3463
|
}
|
|
3468
3464
|
|
|
3465
|
+
/**
|
|
3466
|
+
* @ignore
|
|
3467
|
+
*/
|
|
3468
|
+
get floaterConfig() {
|
|
3469
|
+
return {
|
|
3470
|
+
placement: this.placement,
|
|
3471
|
+
flip: !this.noFlip,
|
|
3472
|
+
autoPlacement: this.autoPlacement,
|
|
3473
|
+
offset: this.offset,
|
|
3474
|
+
};
|
|
3475
|
+
}
|
|
3476
|
+
|
|
3469
3477
|
/**
|
|
3470
3478
|
* Public method to hide the dropdown.
|
|
3471
3479
|
* @returns {void}
|
|
@@ -3486,6 +3494,15 @@ class AuroDropdown extends r$1 {
|
|
|
3486
3494
|
static get properties() {
|
|
3487
3495
|
return {
|
|
3488
3496
|
|
|
3497
|
+
/**
|
|
3498
|
+
* If declared, bib's position will be automatically calculated where to appear.
|
|
3499
|
+
* @default false
|
|
3500
|
+
*/
|
|
3501
|
+
autoPlacement: {
|
|
3502
|
+
type: Boolean,
|
|
3503
|
+
reflect: true
|
|
3504
|
+
},
|
|
3505
|
+
|
|
3489
3506
|
/**
|
|
3490
3507
|
* If declared, applies a border around the trigger slot.
|
|
3491
3508
|
*/
|
|
@@ -3566,11 +3583,11 @@ class AuroDropdown extends r$1 {
|
|
|
3566
3583
|
},
|
|
3567
3584
|
|
|
3568
3585
|
/**
|
|
3569
|
-
* If true, the dropdown bib is taking the fullscreen when it's open
|
|
3586
|
+
* If true, the dropdown bib is taking the fullscreen when it's open.
|
|
3570
3587
|
*/
|
|
3571
3588
|
isBibFullscreen: {
|
|
3572
3589
|
type: Boolean,
|
|
3573
|
-
reflect: true
|
|
3590
|
+
reflect: true
|
|
3574
3591
|
},
|
|
3575
3592
|
|
|
3576
3593
|
/**
|
|
@@ -3596,6 +3613,15 @@ class AuroDropdown extends r$1 {
|
|
|
3596
3613
|
reflect: true
|
|
3597
3614
|
},
|
|
3598
3615
|
|
|
3616
|
+
/**
|
|
3617
|
+
* Defines if there is a label preset.
|
|
3618
|
+
* @private
|
|
3619
|
+
*/
|
|
3620
|
+
labeled: {
|
|
3621
|
+
type: Boolean,
|
|
3622
|
+
reflect: true
|
|
3623
|
+
},
|
|
3624
|
+
|
|
3599
3625
|
/**
|
|
3600
3626
|
* If declared, the popover and trigger will be set to the same width.
|
|
3601
3627
|
*/
|
|
@@ -3604,6 +3630,16 @@ class AuroDropdown extends r$1 {
|
|
|
3604
3630
|
reflect: true
|
|
3605
3631
|
},
|
|
3606
3632
|
|
|
3633
|
+
/**
|
|
3634
|
+
* If declared, the bib will NOT flip to an alternate position
|
|
3635
|
+
* when there isn't enough space in the specified `placement`.
|
|
3636
|
+
* @default false
|
|
3637
|
+
*/
|
|
3638
|
+
noFlip: {
|
|
3639
|
+
type: Boolean,
|
|
3640
|
+
reflect: true
|
|
3641
|
+
},
|
|
3642
|
+
|
|
3607
3643
|
/**
|
|
3608
3644
|
* If declared, the dropdown will not hide when moving focus outside the element.
|
|
3609
3645
|
*/
|
|
@@ -3620,16 +3656,32 @@ class AuroDropdown extends r$1 {
|
|
|
3620
3656
|
reflect: true
|
|
3621
3657
|
},
|
|
3622
3658
|
|
|
3659
|
+
/**
|
|
3660
|
+
* Gap between the trigger element and bib.
|
|
3661
|
+
* @default 0
|
|
3662
|
+
*/
|
|
3663
|
+
offset: {
|
|
3664
|
+
type: Number,
|
|
3665
|
+
reflect: true
|
|
3666
|
+
},
|
|
3667
|
+
|
|
3623
3668
|
onSlotChange: {
|
|
3624
3669
|
type: Function,
|
|
3625
3670
|
reflect: false
|
|
3626
3671
|
},
|
|
3627
3672
|
|
|
3628
3673
|
/**
|
|
3629
|
-
*
|
|
3674
|
+
* Position where the bib should appear relative to the trigger.
|
|
3675
|
+
* Accepted values:
|
|
3676
|
+
* "top" | "right" | "bottom" | "left" |
|
|
3677
|
+
* "bottom-start" | "top-start" | "top-end" |
|
|
3678
|
+
* "right-start" | "right-end" | "bottom-end" |
|
|
3679
|
+
* "left-start" | "left-end"
|
|
3680
|
+
* @default bottom-start
|
|
3630
3681
|
*/
|
|
3631
3682
|
placement: {
|
|
3632
|
-
type: String
|
|
3683
|
+
type: String,
|
|
3684
|
+
reflect: true
|
|
3633
3685
|
},
|
|
3634
3686
|
|
|
3635
3687
|
/**
|
|
@@ -3675,6 +3727,7 @@ class AuroDropdown extends r$1 {
|
|
|
3675
3727
|
|
|
3676
3728
|
disconnectedCallback() {
|
|
3677
3729
|
super.disconnectedCallback();
|
|
3730
|
+
this.floater.disconnect();
|
|
3678
3731
|
}
|
|
3679
3732
|
|
|
3680
3733
|
updated(changedProperties) {
|
|
@@ -3804,13 +3857,21 @@ class AuroDropdown extends r$1 {
|
|
|
3804
3857
|
handleTriggerContentSlotChange(event) {
|
|
3805
3858
|
this.floater.handleTriggerTabIndex();
|
|
3806
3859
|
|
|
3807
|
-
const
|
|
3860
|
+
const triggerSlot = this.shadowRoot.querySelector('.triggerContent slot');
|
|
3861
|
+
|
|
3862
|
+
if (triggerSlot) {
|
|
3863
|
+
|
|
3864
|
+
const triggerContentNodes = triggerSlot.assignedNodes();
|
|
3808
3865
|
|
|
3809
|
-
|
|
3810
|
-
|
|
3811
|
-
|
|
3866
|
+
if (triggerContentNodes) {
|
|
3867
|
+
|
|
3868
|
+
triggerContentNodes.forEach((node) => {
|
|
3869
|
+
if (!this.triggerContentFocusable) {
|
|
3870
|
+
this.triggerContentFocusable = this.containsFocusableElement(node);
|
|
3871
|
+
}
|
|
3872
|
+
});
|
|
3812
3873
|
}
|
|
3813
|
-
}
|
|
3874
|
+
}
|
|
3814
3875
|
|
|
3815
3876
|
const trigger = this.shadowRoot.querySelector('#trigger');
|
|
3816
3877
|
|
|
@@ -3864,6 +3925,29 @@ class AuroDropdown extends r$1 {
|
|
|
3864
3925
|
}
|
|
3865
3926
|
}
|
|
3866
3927
|
|
|
3928
|
+
/**
|
|
3929
|
+
* @private
|
|
3930
|
+
* @method handleLabelSlotChange
|
|
3931
|
+
* @param {event} event - The event object representing the slot change.
|
|
3932
|
+
* @description Handles the slot change event for the label slot.
|
|
3933
|
+
*/
|
|
3934
|
+
handleLabelSlotChange (event) {
|
|
3935
|
+
|
|
3936
|
+
// Get the nodes from the event
|
|
3937
|
+
const nodes = event.target.assignedNodes();
|
|
3938
|
+
|
|
3939
|
+
// Guard clause for no nodes
|
|
3940
|
+
if (!nodes) {
|
|
3941
|
+
return;
|
|
3942
|
+
}
|
|
3943
|
+
|
|
3944
|
+
// Convert the nodes to a measurable array so we can get the length
|
|
3945
|
+
const nodesArr = Array.from(nodes);
|
|
3946
|
+
|
|
3947
|
+
// If the nodes array has a length, the dropdown is labeled
|
|
3948
|
+
this.labeled = nodesArr.length > 0;
|
|
3949
|
+
}
|
|
3950
|
+
|
|
3867
3951
|
// function that renders the HTML and CSS into the scope of the component
|
|
3868
3952
|
render() {
|
|
3869
3953
|
return u$2`
|
|
@@ -3878,7 +3962,7 @@ class AuroDropdown extends r$1 {
|
|
|
3878
3962
|
>
|
|
3879
3963
|
<div class="triggerContentWrapper">
|
|
3880
3964
|
<label class="label" id="triggerLabel" hasTrigger=${this.hasTriggerContent}>
|
|
3881
|
-
<slot name="label"></slot>
|
|
3965
|
+
<slot name="label" @slotchange="${this.handleLabelSlotChange}"></slot>
|
|
3882
3966
|
</label>
|
|
3883
3967
|
<div class="triggerContent">
|
|
3884
3968
|
<slot
|
|
@@ -11612,11 +11696,11 @@ class AuroBibtemplate extends r$1 {
|
|
|
11612
11696
|
return {
|
|
11613
11697
|
isFullscreen: {
|
|
11614
11698
|
type: Boolean,
|
|
11615
|
-
reflect: true
|
|
11699
|
+
reflect: true
|
|
11616
11700
|
},
|
|
11617
11701
|
large: {
|
|
11618
11702
|
type: Boolean,
|
|
11619
|
-
reflect: true
|
|
11703
|
+
reflect: true
|
|
11620
11704
|
}
|
|
11621
11705
|
};
|
|
11622
11706
|
}
|
|
@@ -11865,6 +11949,12 @@ class AuroCombobox extends r$1 {
|
|
|
11865
11949
|
|
|
11866
11950
|
this.isHiddenWhileLoading = false;
|
|
11867
11951
|
|
|
11952
|
+
// floaterConfig
|
|
11953
|
+
this.placement = 'bottom-start';
|
|
11954
|
+
this.offset = 0;
|
|
11955
|
+
this.noFlip = false;
|
|
11956
|
+
this.autoPlacement = false;
|
|
11957
|
+
|
|
11868
11958
|
const versioning = new AuroDependencyVersioning$4();
|
|
11869
11959
|
|
|
11870
11960
|
this.dropdownTag = versioning.generateTag('auro-formkit-checkbox-dropdown', dropdownVersion, AuroDropdown);
|
|
@@ -11881,12 +11971,21 @@ class AuroCombobox extends r$1 {
|
|
|
11881
11971
|
|
|
11882
11972
|
/**
|
|
11883
11973
|
* An enumerated attribute that defines what the user agent can suggest for autofill. At this time, only `autocomplete="off"` is supported.
|
|
11974
|
+
* @default false
|
|
11884
11975
|
*/
|
|
11885
11976
|
autocomplete: {
|
|
11886
11977
|
type: String,
|
|
11887
11978
|
reflect: true
|
|
11888
11979
|
},
|
|
11889
11980
|
|
|
11981
|
+
/**
|
|
11982
|
+
* If declared, bib's position will be automatically calculated where to appear.
|
|
11983
|
+
*/
|
|
11984
|
+
autoPlacement: {
|
|
11985
|
+
type: Boolean,
|
|
11986
|
+
reflect: true
|
|
11987
|
+
},
|
|
11988
|
+
|
|
11890
11989
|
/**
|
|
11891
11990
|
* When attribute is present auro-menu will apply checkmarks to selected options.
|
|
11892
11991
|
*/
|
|
@@ -11919,6 +12018,16 @@ class AuroCombobox extends r$1 {
|
|
|
11919
12018
|
reflect: true
|
|
11920
12019
|
},
|
|
11921
12020
|
|
|
12021
|
+
/**
|
|
12022
|
+
* If declared, the bib will NOT flip to an alternate position
|
|
12023
|
+
* when there isn't enough space in the specified `placement`.
|
|
12024
|
+
* @default false
|
|
12025
|
+
*/
|
|
12026
|
+
noFlip: {
|
|
12027
|
+
type: Boolean,
|
|
12028
|
+
reflect: true
|
|
12029
|
+
},
|
|
12030
|
+
|
|
11922
12031
|
/**
|
|
11923
12032
|
* If set, disables auto-validation on blur.
|
|
11924
12033
|
*/
|
|
@@ -11926,6 +12035,15 @@ class AuroCombobox extends r$1 {
|
|
|
11926
12035
|
type: Boolean
|
|
11927
12036
|
},
|
|
11928
12037
|
|
|
12038
|
+
/**
|
|
12039
|
+
* Gap between the trigger element and bib.
|
|
12040
|
+
* @default 0
|
|
12041
|
+
*/
|
|
12042
|
+
offset: {
|
|
12043
|
+
type: Number,
|
|
12044
|
+
reflect: true
|
|
12045
|
+
},
|
|
12046
|
+
|
|
11929
12047
|
/**
|
|
11930
12048
|
* Specifies the current selected option.
|
|
11931
12049
|
*/
|
|
@@ -11935,6 +12053,20 @@ class AuroCombobox extends r$1 {
|
|
|
11935
12053
|
hasChanged: arrayOrUndefinedHasChanged$1
|
|
11936
12054
|
},
|
|
11937
12055
|
|
|
12056
|
+
/**
|
|
12057
|
+
* Position where the bib should appear relative to the trigger.
|
|
12058
|
+
* Accepted values:
|
|
12059
|
+
* "top" | "right" | "bottom" | "left" |
|
|
12060
|
+
* "bottom-start" | "top-start" | "top-end" |
|
|
12061
|
+
* "right-start" | "right-end" | "bottom-end" |
|
|
12062
|
+
* "left-start" | "left-end"
|
|
12063
|
+
* @default bottom-start
|
|
12064
|
+
*/
|
|
12065
|
+
placement: {
|
|
12066
|
+
type: String,
|
|
12067
|
+
reflect: true
|
|
12068
|
+
},
|
|
12069
|
+
|
|
11938
12070
|
/**
|
|
11939
12071
|
* Populates the `required` attribute on the input. Used for client-side validation.
|
|
11940
12072
|
*/
|
|
@@ -12702,6 +12834,10 @@ class AuroCombobox extends r$1 {
|
|
|
12702
12834
|
.fullscreenBreakpoint="${this.fullscreenBreakpoint}"
|
|
12703
12835
|
?disabled="${this.disabled}"
|
|
12704
12836
|
?error="${this.validity !== undefined && this.validity !== 'valid'}"
|
|
12837
|
+
.placement="${this.placement}"
|
|
12838
|
+
.offset="${this.offset}"
|
|
12839
|
+
?autoPlacement="${this.autoPlacement}"
|
|
12840
|
+
?noFlip="${this.noFlip}"
|
|
12705
12841
|
disableEventShow>
|
|
12706
12842
|
<${this.inputTag}
|
|
12707
12843
|
slot="trigger"
|
|
@@ -111,7 +111,7 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
|
|
|
111
111
|
In cases where the project is not able to process JS assets, there are pre-processed assets available for use. Legacy browsers such as IE11 are no longer supported.
|
|
112
112
|
|
|
113
113
|
```html
|
|
114
|
-
<script type="module
|
|
114
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@2.1.0/auro-combobox/+esm"></script>
|
|
115
115
|
```
|
|
116
116
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
117
117
|
|
|
@@ -10,11 +10,19 @@ export class AuroCombobox extends LitElement {
|
|
|
10
10
|
static get properties(): {
|
|
11
11
|
/**
|
|
12
12
|
* An enumerated attribute that defines what the user agent can suggest for autofill. At this time, only `autocomplete="off"` is supported.
|
|
13
|
+
* @default false
|
|
13
14
|
*/
|
|
14
15
|
autocomplete: {
|
|
15
16
|
type: StringConstructor;
|
|
16
17
|
reflect: boolean;
|
|
17
18
|
};
|
|
19
|
+
/**
|
|
20
|
+
* If declared, bib's position will be automatically calculated where to appear.
|
|
21
|
+
*/
|
|
22
|
+
autoPlacement: {
|
|
23
|
+
type: BooleanConstructor;
|
|
24
|
+
reflect: boolean;
|
|
25
|
+
};
|
|
18
26
|
/**
|
|
19
27
|
* When attribute is present auro-menu will apply checkmarks to selected options.
|
|
20
28
|
*/
|
|
@@ -43,12 +51,29 @@ export class AuroCombobox extends LitElement {
|
|
|
43
51
|
type: BooleanConstructor;
|
|
44
52
|
reflect: boolean;
|
|
45
53
|
};
|
|
54
|
+
/**
|
|
55
|
+
* If declared, the bib will NOT flip to an alternate position
|
|
56
|
+
* when there isn't enough space in the specified `placement`.
|
|
57
|
+
* @default false
|
|
58
|
+
*/
|
|
59
|
+
noFlip: {
|
|
60
|
+
type: BooleanConstructor;
|
|
61
|
+
reflect: boolean;
|
|
62
|
+
};
|
|
46
63
|
/**
|
|
47
64
|
* If set, disables auto-validation on blur.
|
|
48
65
|
*/
|
|
49
66
|
noValidate: {
|
|
50
67
|
type: BooleanConstructor;
|
|
51
68
|
};
|
|
69
|
+
/**
|
|
70
|
+
* Gap between the trigger element and bib.
|
|
71
|
+
* @default 0
|
|
72
|
+
*/
|
|
73
|
+
offset: {
|
|
74
|
+
type: NumberConstructor;
|
|
75
|
+
reflect: boolean;
|
|
76
|
+
};
|
|
52
77
|
/**
|
|
53
78
|
* Specifies the current selected option.
|
|
54
79
|
*/
|
|
@@ -57,6 +82,19 @@ export class AuroCombobox extends LitElement {
|
|
|
57
82
|
converter: typeof arrayConverter;
|
|
58
83
|
hasChanged: typeof arrayOrUndefinedHasChanged;
|
|
59
84
|
};
|
|
85
|
+
/**
|
|
86
|
+
* Position where the bib should appear relative to the trigger.
|
|
87
|
+
* Accepted values:
|
|
88
|
+
* "top" | "right" | "bottom" | "left" |
|
|
89
|
+
* "bottom-start" | "top-start" | "top-end" |
|
|
90
|
+
* "right-start" | "right-end" | "bottom-end" |
|
|
91
|
+
* "left-start" | "left-end"
|
|
92
|
+
* @default bottom-start
|
|
93
|
+
*/
|
|
94
|
+
placement: {
|
|
95
|
+
type: StringConstructor;
|
|
96
|
+
reflect: boolean;
|
|
97
|
+
};
|
|
60
98
|
/**
|
|
61
99
|
* Populates the `required` attribute on the input. Used for client-side validation.
|
|
62
100
|
*/
|
|
@@ -161,6 +199,10 @@ export class AuroCombobox extends LitElement {
|
|
|
161
199
|
validation: AuroFormValidation;
|
|
162
200
|
runtimeUtils: any;
|
|
163
201
|
isHiddenWhileLoading: boolean;
|
|
202
|
+
placement: string;
|
|
203
|
+
offset: number;
|
|
204
|
+
noFlip: boolean;
|
|
205
|
+
autoPlacement: boolean;
|
|
164
206
|
dropdownTag: any;
|
|
165
207
|
bibtemplateTag: any;
|
|
166
208
|
inputTag: any;
|