@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
package/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,25 @@
|
|
|
1
1
|
# Semantic Release Automated Changelog
|
|
2
2
|
|
|
3
|
-
# [2.
|
|
3
|
+
# [2.2.0-beta.1](https://github.com/AlaskaAirlines/auro-formkit/compare/v2.1.0...v2.2.0-beta.1) (2025-04-02)
|
|
4
4
|
|
|
5
5
|
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* correct script tag formatting in bundleInstallDescription.md and update comment formatting in input README ([a2018cd](https://github.com/AlaskaAirlines/auro-formkit/commit/a2018cd2166013449a7abf530741e875573756b6))
|
|
9
|
+
* move host styles to div to prevent tailwindcss from overriding the padding ([3f4bc55](https://github.com/AlaskaAirlines/auro-formkit/commit/3f4bc551cebc70717ad556e7e3addaa3c5c0f9c7))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
* add `floaterConfig` attributes on dropdown counter-group ([9510ee0](https://github.com/AlaskaAirlines/auro-formkit/commit/9510ee034800071e97e599ef6c213bda98ef908c))
|
|
15
|
+
* added labeled property to dropdown for sizing ([01b4d9a](https://github.com/AlaskaAirlines/auro-formkit/commit/01b4d9aa7a669728c2fb02cede26fce203360585))
|
|
16
|
+
* expose `floaterConfig` related attrs on combobox ([ea78a71](https://github.com/AlaskaAirlines/auro-formkit/commit/ea78a71617e9414069c002ea83f6d5f33df3111a))
|
|
17
|
+
* expose `floaterConfig` related attrs on datepicker ([d426bf7](https://github.com/AlaskaAirlines/auro-formkit/commit/d426bf7d04a8de00cf8689c4efe3bbdaaf0e75dc))
|
|
18
|
+
* expose `floaterConfig` related attrs on select ([3183fa0](https://github.com/AlaskaAirlines/auro-formkit/commit/3183fa0f137a2daeae34b5165a55158f1f5a92ae))
|
|
19
|
+
* expose `placement`, `offset`, `noFlip`, `autoPlacement` attrs in dropdown ([b67a47d](https://github.com/AlaskaAirlines/auro-formkit/commit/b67a47dd8d38518da8b621d2cef88c9840682cfa))
|
|
20
|
+
|
|
21
|
+
# [2.1.0](https://github.com/AlaskaAirlines/auro-formkit/compare/v2.0.2...v2.1.0) (2025-03-24)
|
|
22
|
+
|
|
6
23
|
### Bug Fixes
|
|
7
24
|
|
|
8
25
|
* add centralDate is valid date checks ([1e24470](https://github.com/AlaskaAirlines/auro-formkit/commit/1e244700ffb693c1770779ffe2ba77ae84c89fd1))
|
|
@@ -14,7 +31,6 @@
|
|
|
14
31
|
### Features
|
|
15
32
|
|
|
16
33
|
* add `stacked` attribute ([e47976c](https://github.com/AlaskaAirlines/auro-formkit/commit/e47976cc2754fe487d64dd2903bb6ced720a8a60))
|
|
17
|
-
|
|
18
34
|
# [2.1.0-beta.3](https://github.com/AlaskaAirlines/auro-formkit/compare/v2.1.0-beta.2...v2.1.0-beta.3) (2025-03-21)
|
|
19
35
|
|
|
20
36
|
|
|
@@ -106,7 +106,7 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
|
|
|
106
106
|
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.
|
|
107
107
|
|
|
108
108
|
```html
|
|
109
|
-
<script type="module
|
|
109
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@2.1.0/auro-checkbox/+esm"></script>
|
|
110
110
|
```
|
|
111
111
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
112
112
|
|
|
@@ -106,7 +106,7 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
|
|
|
106
106
|
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.
|
|
107
107
|
|
|
108
108
|
```html
|
|
109
|
-
<script type="module
|
|
109
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@2.1.0/auro-checkbox/+esm"></script>
|
|
110
110
|
```
|
|
111
111
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
112
112
|
|
|
@@ -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
|
|
|
@@ -5,25 +5,29 @@
|
|
|
5
5
|
|
|
6
6
|
## Properties
|
|
7
7
|
|
|
8
|
-
| Property | Attribute | Type | Default
|
|
9
|
-
|
|
10
|
-
| [
|
|
11
|
-
| [
|
|
12
|
-
| [
|
|
13
|
-
| [
|
|
14
|
-
| [
|
|
15
|
-
| [
|
|
16
|
-
| [
|
|
17
|
-
| [
|
|
18
|
-
| [
|
|
19
|
-
| [
|
|
20
|
-
| [
|
|
21
|
-
| [
|
|
22
|
-
| [
|
|
23
|
-
| [
|
|
24
|
-
| [
|
|
25
|
-
| [
|
|
26
|
-
| [
|
|
8
|
+
| Property | Attribute | Type | Default | Description |
|
|
9
|
+
|---------------------------------|---------------------------------|-----------|----------------|--------------------------------------------------|
|
|
10
|
+
| [autoPlacement](#autoPlacement) | `autoPlacement` | `boolean` | | If declared, bib's position will be automatically calculated where to appear. |
|
|
11
|
+
| [autocomplete](#autocomplete) | `autocomplete` | `string` | "false" | An enumerated attribute that defines what the user agent can suggest for autofill. At this time, only `autocomplete="off"` is supported. |
|
|
12
|
+
| [checkmark](#checkmark) | `checkmark` | `boolean` | | When attribute is present auro-menu will apply checkmarks to selected options. |
|
|
13
|
+
| [disabled](#disabled) | `disabled` | `boolean` | | If set, disables the combobox. |
|
|
14
|
+
| [error](#error) | `error` | `string` | | When defined, sets persistent validity to `customError` and sets the validation message to the attribute value. |
|
|
15
|
+
| [fullscreenBreakpoint](#fullscreenBreakpoint) | `fullscreenBreakpoint` | `string` | "sm" | Defines the screen size breakpoint (`lg`, `md`, `sm`, or `xs`) at which the dropdown switches to fullscreen mode on mobile.<br />When expanded, the dropdown will automatically display in fullscreen mode if the screen size is equal to or smaller than the selected breakpoint. |
|
|
16
|
+
| [largeFullscreenHeadline](#largeFullscreenHeadline) | `largeFullscreenHeadline` | `boolean` | | If declared, make bib.fullscreen.headline in HeadingDisplay.<br />Otherwise, Heading 600 |
|
|
17
|
+
| [noFilter](#noFilter) | `noFilter` | `boolean` | false | If set, combobox will not filter menuoptions based in input. |
|
|
18
|
+
| [noFlip](#noFlip) | `noFlip` | `boolean` | "false" | If declared, the bib will NOT flip to an alternate position<br />when there isn't enough space in the specified `placement`. |
|
|
19
|
+
| [noValidate](#noValidate) | `noValidate` | `boolean` | | If set, disables auto-validation on blur. |
|
|
20
|
+
| [offset](#offset) | `offset` | `number` | "0" | Gap between the trigger element and bib. |
|
|
21
|
+
| [optionSelected](#optionSelected) | `optionSelected` | `object` | "undefined" | Specifies the current selected option. |
|
|
22
|
+
| [placement](#placement) | `placement` | `string` | "bottom-start" | Position where the bib should appear relative to the trigger.<br />Accepted values:<br />"top" \| "right" \| "bottom" \| "left" \|<br />"bottom-start" \| "top-start" \| "top-end" \|<br />"right-start" \| "right-end" \| "bottom-end" \|<br />"left-start" \| "left-end" |
|
|
23
|
+
| [required](#required) | `required` | `boolean` | | Populates the `required` attribute on the input. Used for client-side validation. |
|
|
24
|
+
| [setCustomValidity](#setCustomValidity) | `setCustomValidity` | `string` | | Sets a custom help text message to display for all validityStates. |
|
|
25
|
+
| [setCustomValidityCustomError](#setCustomValidityCustomError) | `setCustomValidityCustomError` | `string` | | Custom help text message to display when validity = `customError`. |
|
|
26
|
+
| [setCustomValidityValueMissing](#setCustomValidityValueMissing) | `setCustomValidityValueMissing` | `string` | | Custom help text message to display when validity = `valueMissing`. |
|
|
27
|
+
| [triggerIcon](#triggerIcon) | `triggerIcon` | `boolean` | | If set, the `icon` attribute will be applied to the trigger `auro-input` element. |
|
|
28
|
+
| [type](#type) | `type` | `string` | | Applies the defined value as the type attribute on auro-input. |
|
|
29
|
+
| [validity](#validity) | `validity` | `string` | "undefined" | Specifies the `validityState` this element is in. |
|
|
30
|
+
| [value](#value) | `value` | | "undefined" | Value selected for the dropdown menu. |
|
|
27
31
|
|
|
28
32
|
## Methods
|
|
29
33
|
|
|
@@ -840,6 +844,105 @@ export function auroMenuLoadingExample() {
|
|
|
840
844
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
841
845
|
</auro-accordion>
|
|
842
846
|
|
|
847
|
+
### Customized bib position
|
|
848
|
+
The bib position can be customized with `placement`, `offset`, `flip`, `autoPlacement` attributes.
|
|
849
|
+
|
|
850
|
+
- `placement` specifies the preferred position where the bib should appear relative to the trigger.
|
|
851
|
+
- `offset` sets the distance between the trigger and the bib.
|
|
852
|
+
- When `autoPlacement` is enabled, smart positioning logic is applied to determine the best placement for the bib. If all sides have sufficient space, the bib will appear in the position specified by `placement`.
|
|
853
|
+
- Unless `noFlip` is enabled, if there isn't enough space for the preferred `placement`, the bib will automatically flip to an alternative position.
|
|
854
|
+
|
|
855
|
+
<div class="exampleWrapper">
|
|
856
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/floaterConfig.html) -->
|
|
857
|
+
<!-- The below content is automatically added from ./../apiExamples/floaterConfig.html -->
|
|
858
|
+
<div style="width: 350px">
|
|
859
|
+
<auro-combobox offset="20" noFlip placement="bottom-end">
|
|
860
|
+
<span slot="bib.fullscreen.headline">Bib Header</span>
|
|
861
|
+
<span slot="label">bottom-end bib with 20px offset and noFlip</span>
|
|
862
|
+
<auro-menu>
|
|
863
|
+
<auro-menuoption value="Apples" id="option-0">Apples</auro-menuoption>
|
|
864
|
+
<auro-menuoption value="Oranges" id="option-1">Oranges</auro-menuoption>
|
|
865
|
+
<auro-menuoption value="Peaches" id="option-2">Peaches</auro-menuoption>
|
|
866
|
+
<auro-menuoption value="Grapes" id="option-3">Grapes</auro-menuoption>
|
|
867
|
+
<auro-menuoption value="Cherries" id="option-4">Cherries</auro-menuoption>
|
|
868
|
+
<auro-menuoption static nomatch>No matching option</auro-menuoption>
|
|
869
|
+
</auro-menu>
|
|
870
|
+
</auro-combobox>
|
|
871
|
+
<auro-combobox offset="20" placement="bottom-end">
|
|
872
|
+
<span slot="bib.fullscreen.headline">Bib Header</span>
|
|
873
|
+
<span slot="label">bottom-end bib with 20px offset and flip</span>
|
|
874
|
+
<auro-menu>
|
|
875
|
+
<auro-menuoption value="Apples" id="option-0">Apples</auro-menuoption>
|
|
876
|
+
<auro-menuoption value="Oranges" id="option-1">Oranges</auro-menuoption>
|
|
877
|
+
<auro-menuoption value="Peaches" id="option-2">Peaches</auro-menuoption>
|
|
878
|
+
<auro-menuoption value="Grapes" id="option-3">Grapes</auro-menuoption>
|
|
879
|
+
<auro-menuoption value="Cherries" id="option-4">Cherries</auro-menuoption>
|
|
880
|
+
<auro-menuoption static nomatch>No matching option</auro-menuoption>
|
|
881
|
+
</auro-menu>
|
|
882
|
+
</auro-combobox>
|
|
883
|
+
<auro-combobox offset="20" noFlip placement="right" autoPlacement>
|
|
884
|
+
<span slot="bib.fullscreen.headline">Bib Header</span>
|
|
885
|
+
<span slot="label">right bib with 20px offset, noFlip and autoPlacement</span>
|
|
886
|
+
<auro-menu>
|
|
887
|
+
<auro-menuoption value="Apples" id="option-0">Apples</auro-menuoption>
|
|
888
|
+
<auro-menuoption value="Oranges" id="option-1">Oranges</auro-menuoption>
|
|
889
|
+
<auro-menuoption value="Peaches" id="option-2">Peaches</auro-menuoption>
|
|
890
|
+
<auro-menuoption value="Grapes" id="option-3">Grapes</auro-menuoption>
|
|
891
|
+
<auro-menuoption value="Cherries" id="option-4">Cherries</auro-menuoption>
|
|
892
|
+
<auro-menuoption static nomatch>No matching option</auro-menuoption>
|
|
893
|
+
</auro-menu>
|
|
894
|
+
</auro-combobox>
|
|
895
|
+
</div>
|
|
896
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
897
|
+
</div>
|
|
898
|
+
<auro-accordion alignRight>
|
|
899
|
+
<span slot="trigger">See code</span>
|
|
900
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/floaterConfig.html) -->
|
|
901
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/floaterConfig.html -->
|
|
902
|
+
|
|
903
|
+
```html
|
|
904
|
+
<div style="width: 350px">
|
|
905
|
+
<auro-combobox offset="20" noFlip placement="bottom-end">
|
|
906
|
+
<span slot="bib.fullscreen.headline">Bib Header</span>
|
|
907
|
+
<span slot="label">bottom-end bib with 20px offset and noFlip</span>
|
|
908
|
+
<auro-menu>
|
|
909
|
+
<auro-menuoption value="Apples" id="option-0">Apples</auro-menuoption>
|
|
910
|
+
<auro-menuoption value="Oranges" id="option-1">Oranges</auro-menuoption>
|
|
911
|
+
<auro-menuoption value="Peaches" id="option-2">Peaches</auro-menuoption>
|
|
912
|
+
<auro-menuoption value="Grapes" id="option-3">Grapes</auro-menuoption>
|
|
913
|
+
<auro-menuoption value="Cherries" id="option-4">Cherries</auro-menuoption>
|
|
914
|
+
<auro-menuoption static nomatch>No matching option</auro-menuoption>
|
|
915
|
+
</auro-menu>
|
|
916
|
+
</auro-combobox>
|
|
917
|
+
<auro-combobox offset="20" placement="bottom-end">
|
|
918
|
+
<span slot="bib.fullscreen.headline">Bib Header</span>
|
|
919
|
+
<span slot="label">bottom-end bib with 20px offset and flip</span>
|
|
920
|
+
<auro-menu>
|
|
921
|
+
<auro-menuoption value="Apples" id="option-0">Apples</auro-menuoption>
|
|
922
|
+
<auro-menuoption value="Oranges" id="option-1">Oranges</auro-menuoption>
|
|
923
|
+
<auro-menuoption value="Peaches" id="option-2">Peaches</auro-menuoption>
|
|
924
|
+
<auro-menuoption value="Grapes" id="option-3">Grapes</auro-menuoption>
|
|
925
|
+
<auro-menuoption value="Cherries" id="option-4">Cherries</auro-menuoption>
|
|
926
|
+
<auro-menuoption static nomatch>No matching option</auro-menuoption>
|
|
927
|
+
</auro-menu>
|
|
928
|
+
</auro-combobox>
|
|
929
|
+
<auro-combobox offset="20" noFlip placement="right" autoPlacement>
|
|
930
|
+
<span slot="bib.fullscreen.headline">Bib Header</span>
|
|
931
|
+
<span slot="label">right bib with 20px offset, noFlip and autoPlacement</span>
|
|
932
|
+
<auro-menu>
|
|
933
|
+
<auro-menuoption value="Apples" id="option-0">Apples</auro-menuoption>
|
|
934
|
+
<auro-menuoption value="Oranges" id="option-1">Oranges</auro-menuoption>
|
|
935
|
+
<auro-menuoption value="Peaches" id="option-2">Peaches</auro-menuoption>
|
|
936
|
+
<auro-menuoption value="Grapes" id="option-3">Grapes</auro-menuoption>
|
|
937
|
+
<auro-menuoption value="Cherries" id="option-4">Cherries</auro-menuoption>
|
|
938
|
+
<auro-menuoption static nomatch>No matching option</auro-menuoption>
|
|
939
|
+
</auro-menu>
|
|
940
|
+
</auro-combobox>
|
|
941
|
+
</div>
|
|
942
|
+
```
|
|
943
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
944
|
+
</auro-accordion>
|
|
945
|
+
|
|
843
946
|
### Dropdown with fullscreen bib
|
|
844
947
|
|
|
845
948
|
You can make the dropdown open in fullscreen at a specific breakpoint by setting `fullscreenBreakpoint`.
|
|
@@ -3292,7 +3292,7 @@ class AuroDropdownBib extends r$1 {
|
|
|
3292
3292
|
|
|
3293
3293
|
var dropdownVersion$1 = '3.0.0';
|
|
3294
3294
|
|
|
3295
|
-
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)}`;
|
|
3295
|
+
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)}`;
|
|
3296
3296
|
|
|
3297
3297
|
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)}`;
|
|
3298
3298
|
|
|
@@ -3552,10 +3552,16 @@ class AuroDropdown extends r$1 {
|
|
|
3552
3552
|
this.disabled = false;
|
|
3553
3553
|
this.error = false;
|
|
3554
3554
|
this.inset = false;
|
|
3555
|
-
this.placement = 'bottom-start';
|
|
3556
3555
|
this.rounded = false;
|
|
3557
3556
|
this.tabIndex = 0;
|
|
3558
3557
|
this.noToggle = false;
|
|
3558
|
+
this.labeled = true;
|
|
3559
|
+
|
|
3560
|
+
// floaterConfig
|
|
3561
|
+
this.placement = 'bottom-start';
|
|
3562
|
+
this.offset = 0;
|
|
3563
|
+
this.noFlip = false;
|
|
3564
|
+
this.autoPlacement = false;
|
|
3559
3565
|
|
|
3560
3566
|
/**
|
|
3561
3567
|
* @private
|
|
@@ -3577,16 +3583,6 @@ class AuroDropdown extends r$1 {
|
|
|
3577
3583
|
*/
|
|
3578
3584
|
this.floater = new AuroFloatingUI();
|
|
3579
3585
|
|
|
3580
|
-
/**
|
|
3581
|
-
* @private
|
|
3582
|
-
*/
|
|
3583
|
-
this.floaterConfig = {
|
|
3584
|
-
placement: 'bottom-start',
|
|
3585
|
-
flip: true,
|
|
3586
|
-
autoPlacement: false,
|
|
3587
|
-
offset: 0,
|
|
3588
|
-
};
|
|
3589
|
-
|
|
3590
3586
|
/**
|
|
3591
3587
|
* Generate unique names for dependency components.
|
|
3592
3588
|
*/
|
|
@@ -3608,6 +3604,18 @@ class AuroDropdown extends r$1 {
|
|
|
3608
3604
|
this.helpTextTag = versioning.generateTag('auro-formkit-dropdown-helptext', helpTextVersion$1, AuroHelpText$1);
|
|
3609
3605
|
}
|
|
3610
3606
|
|
|
3607
|
+
/**
|
|
3608
|
+
* @ignore
|
|
3609
|
+
*/
|
|
3610
|
+
get floaterConfig() {
|
|
3611
|
+
return {
|
|
3612
|
+
placement: this.placement,
|
|
3613
|
+
flip: !this.noFlip,
|
|
3614
|
+
autoPlacement: this.autoPlacement,
|
|
3615
|
+
offset: this.offset,
|
|
3616
|
+
};
|
|
3617
|
+
}
|
|
3618
|
+
|
|
3611
3619
|
/**
|
|
3612
3620
|
* Public method to hide the dropdown.
|
|
3613
3621
|
* @returns {void}
|
|
@@ -3628,6 +3636,15 @@ class AuroDropdown extends r$1 {
|
|
|
3628
3636
|
static get properties() {
|
|
3629
3637
|
return {
|
|
3630
3638
|
|
|
3639
|
+
/**
|
|
3640
|
+
* If declared, bib's position will be automatically calculated where to appear.
|
|
3641
|
+
* @default false
|
|
3642
|
+
*/
|
|
3643
|
+
autoPlacement: {
|
|
3644
|
+
type: Boolean,
|
|
3645
|
+
reflect: true
|
|
3646
|
+
},
|
|
3647
|
+
|
|
3631
3648
|
/**
|
|
3632
3649
|
* If declared, applies a border around the trigger slot.
|
|
3633
3650
|
*/
|
|
@@ -3708,11 +3725,11 @@ class AuroDropdown extends r$1 {
|
|
|
3708
3725
|
},
|
|
3709
3726
|
|
|
3710
3727
|
/**
|
|
3711
|
-
* If true, the dropdown bib is taking the fullscreen when it's open
|
|
3728
|
+
* If true, the dropdown bib is taking the fullscreen when it's open.
|
|
3712
3729
|
*/
|
|
3713
3730
|
isBibFullscreen: {
|
|
3714
3731
|
type: Boolean,
|
|
3715
|
-
reflect: true
|
|
3732
|
+
reflect: true
|
|
3716
3733
|
},
|
|
3717
3734
|
|
|
3718
3735
|
/**
|
|
@@ -3738,6 +3755,15 @@ class AuroDropdown extends r$1 {
|
|
|
3738
3755
|
reflect: true
|
|
3739
3756
|
},
|
|
3740
3757
|
|
|
3758
|
+
/**
|
|
3759
|
+
* Defines if there is a label preset.
|
|
3760
|
+
* @private
|
|
3761
|
+
*/
|
|
3762
|
+
labeled: {
|
|
3763
|
+
type: Boolean,
|
|
3764
|
+
reflect: true
|
|
3765
|
+
},
|
|
3766
|
+
|
|
3741
3767
|
/**
|
|
3742
3768
|
* If declared, the popover and trigger will be set to the same width.
|
|
3743
3769
|
*/
|
|
@@ -3746,6 +3772,16 @@ class AuroDropdown extends r$1 {
|
|
|
3746
3772
|
reflect: true
|
|
3747
3773
|
},
|
|
3748
3774
|
|
|
3775
|
+
/**
|
|
3776
|
+
* If declared, the bib will NOT flip to an alternate position
|
|
3777
|
+
* when there isn't enough space in the specified `placement`.
|
|
3778
|
+
* @default false
|
|
3779
|
+
*/
|
|
3780
|
+
noFlip: {
|
|
3781
|
+
type: Boolean,
|
|
3782
|
+
reflect: true
|
|
3783
|
+
},
|
|
3784
|
+
|
|
3749
3785
|
/**
|
|
3750
3786
|
* If declared, the dropdown will not hide when moving focus outside the element.
|
|
3751
3787
|
*/
|
|
@@ -3762,16 +3798,32 @@ class AuroDropdown extends r$1 {
|
|
|
3762
3798
|
reflect: true
|
|
3763
3799
|
},
|
|
3764
3800
|
|
|
3801
|
+
/**
|
|
3802
|
+
* Gap between the trigger element and bib.
|
|
3803
|
+
* @default 0
|
|
3804
|
+
*/
|
|
3805
|
+
offset: {
|
|
3806
|
+
type: Number,
|
|
3807
|
+
reflect: true
|
|
3808
|
+
},
|
|
3809
|
+
|
|
3765
3810
|
onSlotChange: {
|
|
3766
3811
|
type: Function,
|
|
3767
3812
|
reflect: false
|
|
3768
3813
|
},
|
|
3769
3814
|
|
|
3770
3815
|
/**
|
|
3771
|
-
*
|
|
3816
|
+
* Position where the bib should appear relative to the trigger.
|
|
3817
|
+
* Accepted values:
|
|
3818
|
+
* "top" | "right" | "bottom" | "left" |
|
|
3819
|
+
* "bottom-start" | "top-start" | "top-end" |
|
|
3820
|
+
* "right-start" | "right-end" | "bottom-end" |
|
|
3821
|
+
* "left-start" | "left-end"
|
|
3822
|
+
* @default bottom-start
|
|
3772
3823
|
*/
|
|
3773
3824
|
placement: {
|
|
3774
|
-
type: String
|
|
3825
|
+
type: String,
|
|
3826
|
+
reflect: true
|
|
3775
3827
|
},
|
|
3776
3828
|
|
|
3777
3829
|
/**
|
|
@@ -3817,6 +3869,7 @@ class AuroDropdown extends r$1 {
|
|
|
3817
3869
|
|
|
3818
3870
|
disconnectedCallback() {
|
|
3819
3871
|
super.disconnectedCallback();
|
|
3872
|
+
this.floater.disconnect();
|
|
3820
3873
|
}
|
|
3821
3874
|
|
|
3822
3875
|
updated(changedProperties) {
|
|
@@ -3946,13 +3999,21 @@ class AuroDropdown extends r$1 {
|
|
|
3946
3999
|
handleTriggerContentSlotChange(event) {
|
|
3947
4000
|
this.floater.handleTriggerTabIndex();
|
|
3948
4001
|
|
|
3949
|
-
const
|
|
4002
|
+
const triggerSlot = this.shadowRoot.querySelector('.triggerContent slot');
|
|
4003
|
+
|
|
4004
|
+
if (triggerSlot) {
|
|
4005
|
+
|
|
4006
|
+
const triggerContentNodes = triggerSlot.assignedNodes();
|
|
3950
4007
|
|
|
3951
|
-
|
|
3952
|
-
|
|
3953
|
-
|
|
4008
|
+
if (triggerContentNodes) {
|
|
4009
|
+
|
|
4010
|
+
triggerContentNodes.forEach((node) => {
|
|
4011
|
+
if (!this.triggerContentFocusable) {
|
|
4012
|
+
this.triggerContentFocusable = this.containsFocusableElement(node);
|
|
4013
|
+
}
|
|
4014
|
+
});
|
|
3954
4015
|
}
|
|
3955
|
-
}
|
|
4016
|
+
}
|
|
3956
4017
|
|
|
3957
4018
|
const trigger = this.shadowRoot.querySelector('#trigger');
|
|
3958
4019
|
|
|
@@ -4006,6 +4067,29 @@ class AuroDropdown extends r$1 {
|
|
|
4006
4067
|
}
|
|
4007
4068
|
}
|
|
4008
4069
|
|
|
4070
|
+
/**
|
|
4071
|
+
* @private
|
|
4072
|
+
* @method handleLabelSlotChange
|
|
4073
|
+
* @param {event} event - The event object representing the slot change.
|
|
4074
|
+
* @description Handles the slot change event for the label slot.
|
|
4075
|
+
*/
|
|
4076
|
+
handleLabelSlotChange (event) {
|
|
4077
|
+
|
|
4078
|
+
// Get the nodes from the event
|
|
4079
|
+
const nodes = event.target.assignedNodes();
|
|
4080
|
+
|
|
4081
|
+
// Guard clause for no nodes
|
|
4082
|
+
if (!nodes) {
|
|
4083
|
+
return;
|
|
4084
|
+
}
|
|
4085
|
+
|
|
4086
|
+
// Convert the nodes to a measurable array so we can get the length
|
|
4087
|
+
const nodesArr = Array.from(nodes);
|
|
4088
|
+
|
|
4089
|
+
// If the nodes array has a length, the dropdown is labeled
|
|
4090
|
+
this.labeled = nodesArr.length > 0;
|
|
4091
|
+
}
|
|
4092
|
+
|
|
4009
4093
|
// function that renders the HTML and CSS into the scope of the component
|
|
4010
4094
|
render() {
|
|
4011
4095
|
return u$2`
|
|
@@ -4020,7 +4104,7 @@ class AuroDropdown extends r$1 {
|
|
|
4020
4104
|
>
|
|
4021
4105
|
<div class="triggerContentWrapper">
|
|
4022
4106
|
<label class="label" id="triggerLabel" hasTrigger=${this.hasTriggerContent}>
|
|
4023
|
-
<slot name="label"></slot>
|
|
4107
|
+
<slot name="label" @slotchange="${this.handleLabelSlotChange}"></slot>
|
|
4024
4108
|
</label>
|
|
4025
4109
|
<div class="triggerContent">
|
|
4026
4110
|
<slot
|
|
@@ -11754,11 +11838,11 @@ class AuroBibtemplate extends r$1 {
|
|
|
11754
11838
|
return {
|
|
11755
11839
|
isFullscreen: {
|
|
11756
11840
|
type: Boolean,
|
|
11757
|
-
reflect: true
|
|
11841
|
+
reflect: true
|
|
11758
11842
|
},
|
|
11759
11843
|
large: {
|
|
11760
11844
|
type: Boolean,
|
|
11761
|
-
reflect: true
|
|
11845
|
+
reflect: true
|
|
11762
11846
|
}
|
|
11763
11847
|
};
|
|
11764
11848
|
}
|
|
@@ -12007,6 +12091,12 @@ class AuroCombobox extends r$1 {
|
|
|
12007
12091
|
|
|
12008
12092
|
this.isHiddenWhileLoading = false;
|
|
12009
12093
|
|
|
12094
|
+
// floaterConfig
|
|
12095
|
+
this.placement = 'bottom-start';
|
|
12096
|
+
this.offset = 0;
|
|
12097
|
+
this.noFlip = false;
|
|
12098
|
+
this.autoPlacement = false;
|
|
12099
|
+
|
|
12010
12100
|
const versioning = new AuroDependencyVersioning$4();
|
|
12011
12101
|
|
|
12012
12102
|
this.dropdownTag = versioning.generateTag('auro-formkit-checkbox-dropdown', dropdownVersion, AuroDropdown);
|
|
@@ -12023,12 +12113,21 @@ class AuroCombobox extends r$1 {
|
|
|
12023
12113
|
|
|
12024
12114
|
/**
|
|
12025
12115
|
* An enumerated attribute that defines what the user agent can suggest for autofill. At this time, only `autocomplete="off"` is supported.
|
|
12116
|
+
* @default false
|
|
12026
12117
|
*/
|
|
12027
12118
|
autocomplete: {
|
|
12028
12119
|
type: String,
|
|
12029
12120
|
reflect: true
|
|
12030
12121
|
},
|
|
12031
12122
|
|
|
12123
|
+
/**
|
|
12124
|
+
* If declared, bib's position will be automatically calculated where to appear.
|
|
12125
|
+
*/
|
|
12126
|
+
autoPlacement: {
|
|
12127
|
+
type: Boolean,
|
|
12128
|
+
reflect: true
|
|
12129
|
+
},
|
|
12130
|
+
|
|
12032
12131
|
/**
|
|
12033
12132
|
* When attribute is present auro-menu will apply checkmarks to selected options.
|
|
12034
12133
|
*/
|
|
@@ -12061,6 +12160,16 @@ class AuroCombobox extends r$1 {
|
|
|
12061
12160
|
reflect: true
|
|
12062
12161
|
},
|
|
12063
12162
|
|
|
12163
|
+
/**
|
|
12164
|
+
* If declared, the bib will NOT flip to an alternate position
|
|
12165
|
+
* when there isn't enough space in the specified `placement`.
|
|
12166
|
+
* @default false
|
|
12167
|
+
*/
|
|
12168
|
+
noFlip: {
|
|
12169
|
+
type: Boolean,
|
|
12170
|
+
reflect: true
|
|
12171
|
+
},
|
|
12172
|
+
|
|
12064
12173
|
/**
|
|
12065
12174
|
* If set, disables auto-validation on blur.
|
|
12066
12175
|
*/
|
|
@@ -12068,6 +12177,15 @@ class AuroCombobox extends r$1 {
|
|
|
12068
12177
|
type: Boolean
|
|
12069
12178
|
},
|
|
12070
12179
|
|
|
12180
|
+
/**
|
|
12181
|
+
* Gap between the trigger element and bib.
|
|
12182
|
+
* @default 0
|
|
12183
|
+
*/
|
|
12184
|
+
offset: {
|
|
12185
|
+
type: Number,
|
|
12186
|
+
reflect: true
|
|
12187
|
+
},
|
|
12188
|
+
|
|
12071
12189
|
/**
|
|
12072
12190
|
* Specifies the current selected option.
|
|
12073
12191
|
*/
|
|
@@ -12077,6 +12195,20 @@ class AuroCombobox extends r$1 {
|
|
|
12077
12195
|
hasChanged: arrayOrUndefinedHasChanged$1
|
|
12078
12196
|
},
|
|
12079
12197
|
|
|
12198
|
+
/**
|
|
12199
|
+
* Position where the bib should appear relative to the trigger.
|
|
12200
|
+
* Accepted values:
|
|
12201
|
+
* "top" | "right" | "bottom" | "left" |
|
|
12202
|
+
* "bottom-start" | "top-start" | "top-end" |
|
|
12203
|
+
* "right-start" | "right-end" | "bottom-end" |
|
|
12204
|
+
* "left-start" | "left-end"
|
|
12205
|
+
* @default bottom-start
|
|
12206
|
+
*/
|
|
12207
|
+
placement: {
|
|
12208
|
+
type: String,
|
|
12209
|
+
reflect: true
|
|
12210
|
+
},
|
|
12211
|
+
|
|
12080
12212
|
/**
|
|
12081
12213
|
* Populates the `required` attribute on the input. Used for client-side validation.
|
|
12082
12214
|
*/
|
|
@@ -12844,6 +12976,10 @@ class AuroCombobox extends r$1 {
|
|
|
12844
12976
|
.fullscreenBreakpoint="${this.fullscreenBreakpoint}"
|
|
12845
12977
|
?disabled="${this.disabled}"
|
|
12846
12978
|
?error="${this.validity !== undefined && this.validity !== 'valid'}"
|
|
12979
|
+
.placement="${this.placement}"
|
|
12980
|
+
.offset="${this.offset}"
|
|
12981
|
+
?autoPlacement="${this.autoPlacement}"
|
|
12982
|
+
?noFlip="${this.noFlip}"
|
|
12847
12983
|
disableEventShow>
|
|
12848
12984
|
<${this.inputTag}
|
|
12849
12985
|
slot="trigger"
|