@aurodesignsystem/auro-formkit 2.0.0-beta.3 → 2.0.0-beta.4
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/.turbo/cache/013a48308b893dac-meta.json +1 -1
- package/.turbo/cache/02244170c798a2bd-meta.json +1 -1
- package/.turbo/cache/02244170c798a2bd.tar.zst +0 -0
- package/.turbo/cache/051ff97a20add0e2-meta.json +1 -0
- package/.turbo/cache/051ff97a20add0e2.tar.zst +0 -0
- package/.turbo/cache/07ca42419b9f050c-meta.json +1 -1
- package/.turbo/cache/0ea853339c064fa1-meta.json +1 -0
- package/.turbo/cache/0ea853339c064fa1.tar.zst +0 -0
- package/.turbo/cache/16658beec9f4a809-meta.json +1 -0
- package/.turbo/cache/16658beec9f4a809.tar.zst +0 -0
- package/.turbo/cache/17259cf94d8f8925-meta.json +1 -1
- package/.turbo/cache/1b9818717e4bdf9f-meta.json +1 -1
- package/.turbo/cache/1c0f580d37370ba2-meta.json +1 -1
- package/.turbo/cache/1c0f580d37370ba2.tar.zst +0 -0
- package/.turbo/cache/1c99a949ec63ab35-meta.json +1 -1
- package/.turbo/cache/1df4710eef8ed00d-meta.json +1 -0
- package/.turbo/cache/1df4710eef8ed00d.tar.zst +0 -0
- package/.turbo/cache/204b66d1b253e9cc-meta.json +1 -0
- package/.turbo/cache/204b66d1b253e9cc.tar.zst +0 -0
- package/.turbo/cache/257a7a26ea72dbc5-meta.json +1 -1
- package/.turbo/cache/2a5d0939d6fc1052-meta.json +1 -0
- package/.turbo/cache/2a5d0939d6fc1052.tar.zst +0 -0
- package/.turbo/cache/2e3b829fcf75c836-meta.json +1 -0
- package/.turbo/cache/2e3b829fcf75c836.tar.zst +0 -0
- package/.turbo/cache/3bf45120d0cc9bd8-meta.json +1 -1
- package/.turbo/cache/3d380d0d40404cac-meta.json +1 -0
- package/.turbo/cache/3d380d0d40404cac.tar.zst +0 -0
- package/.turbo/cache/3e12285c614db539-meta.json +1 -1
- package/.turbo/cache/45035bf5c4147ccd-meta.json +1 -1
- package/.turbo/cache/5bf2d3f7ba5891e0-meta.json +1 -1
- package/.turbo/cache/5f304c0f37ef25f3-meta.json +1 -1
- package/.turbo/cache/64de7a53e02db647-meta.json +1 -1
- package/.turbo/cache/691a74627ec57993-meta.json +1 -1
- package/.turbo/cache/69aae513b7ec6c7d-meta.json +1 -1
- package/.turbo/cache/6dd67d179191bda8-meta.json +1 -1
- package/.turbo/cache/6dd7058e6703cb35-meta.json +1 -1
- package/.turbo/cache/73e9073a5274616d-meta.json +1 -1
- package/.turbo/cache/773edc0f83c8c5a5-meta.json +1 -1
- package/.turbo/cache/786a822763403879-meta.json +1 -1
- package/.turbo/cache/7e1043cffa69f327-meta.json +1 -1
- package/.turbo/cache/7e1043cffa69f327.tar.zst +0 -0
- package/.turbo/cache/7ffd501e81790676-meta.json +1 -0
- package/.turbo/cache/7ffd501e81790676.tar.zst +0 -0
- package/.turbo/cache/80a13352066a9801-meta.json +1 -1
- package/.turbo/cache/80b5d974184a01df-meta.json +1 -1
- package/.turbo/cache/8954c6073396fadd-meta.json +1 -1
- package/.turbo/cache/8e79bd5c3a16a72e-meta.json +1 -1
- package/.turbo/cache/8e9ebc3df0e18de0-meta.json +1 -0
- package/.turbo/cache/8e9ebc3df0e18de0.tar.zst +0 -0
- package/.turbo/cache/92daa6d7c389d548-meta.json +1 -1
- package/.turbo/cache/973d0eea26083f4b-meta.json +1 -0
- package/.turbo/cache/973d0eea26083f4b.tar.zst +0 -0
- package/.turbo/cache/9c6ad42729c7b2d8-meta.json +1 -0
- package/.turbo/cache/9c6ad42729c7b2d8.tar.zst +0 -0
- package/.turbo/cache/a77bc920ea508bb8-meta.json +1 -1
- package/.turbo/cache/a77bc920ea508bb8.tar.zst +0 -0
- package/.turbo/cache/a9a9d012c83882d8-meta.json +1 -0
- package/.turbo/cache/a9a9d012c83882d8.tar.zst +0 -0
- package/.turbo/cache/b54fc4f664a7a5a0-meta.json +1 -1
- package/.turbo/cache/ba4418918621fbcd-meta.json +1 -1
- package/.turbo/cache/be7c23c37b8ec74b-meta.json +1 -1
- package/.turbo/cache/be7c23c37b8ec74b.tar.zst +0 -0
- package/.turbo/cache/bffc7582905c2a5e-meta.json +1 -1
- package/.turbo/cache/caa0b4ac8d2a04dd-meta.json +1 -1
- package/.turbo/cache/caa0b4ac8d2a04dd.tar.zst +0 -0
- package/.turbo/cache/cc81de9c0b452a7c-meta.json +1 -1
- package/.turbo/cache/d572ebb3c833e8f4-meta.json +1 -1
- package/.turbo/cache/d572ebb3c833e8f4.tar.zst +0 -0
- package/.turbo/cache/d61543843c932504-meta.json +1 -1
- package/.turbo/cache/d61543843c932504.tar.zst +0 -0
- package/.turbo/cache/dad1301ac69bcb85-meta.json +1 -1
- package/.turbo/cache/db361cb6578dca84-meta.json +1 -0
- package/.turbo/cache/db361cb6578dca84.tar.zst +0 -0
- package/.turbo/cache/dea5945f55c6aba5-meta.json +1 -1
- package/.turbo/cache/dea5945f55c6aba5.tar.zst +0 -0
- package/.turbo/cache/e992dab20aeefbaf-meta.json +1 -1
- package/.turbo/cache/e992dab20aeefbaf.tar.zst +0 -0
- package/.turbo/cache/f3ff9040a2196834-meta.json +1 -0
- package/.turbo/cache/f3ff9040a2196834.tar.zst +0 -0
- package/.turbo/cache/f817d89688cefca8-meta.json +1 -0
- package/.turbo/cache/fa132b5b5f0e75f8-meta.json +1 -1
- package/.turbo/cache/fc57c17867dcac3d-meta.json +1 -0
- package/.turbo/cache/fc57c17867dcac3d.tar.zst +0 -0
- package/CHANGELOG.md +18 -0
- package/components/checkbox/.turbo/turbo-build.log +3 -3
- package/components/checkbox/.turbo/turbo-bundler.log +3 -3
- package/components/combobox/.turbo/turbo-build.log +3 -3
- package/components/combobox/demo/api.min.js +407 -113
- package/components/combobox/demo/index.min.js +407 -113
- package/components/combobox/dist/index.js +407 -113
- package/components/counter/.turbo/turbo-build.log +3 -3
- package/components/counter/.turbo/turbo-bundler.log +3 -3
- package/components/datepicker/demo/api.min.js +407 -113
- package/components/datepicker/demo/index.min.js +407 -113
- package/components/datepicker/dist/index.js +407 -113
- package/components/dropdown/.turbo/turbo-build.log +3 -3
- package/components/dropdown/.turbo/turbo-bundler.log +2 -2
- package/components/dropdown/demo/api.md +4 -4
- package/components/dropdown/demo/api.min.js +166 -42
- package/components/dropdown/demo/index.min.js +166 -42
- package/components/dropdown/dist/auro-dropdown.d.ts +93 -34
- package/components/dropdown/dist/auro-dropdown.d.ts.map +1 -1
- package/components/dropdown/dist/auro-dropdownBib.d.ts +9 -3
- package/components/dropdown/dist/auro-dropdownBib.d.ts.map +1 -1
- package/components/dropdown/dist/index.js +166 -42
- package/components/dropdown/src/auro-dropdown.js +154 -39
- package/components/dropdown/src/auro-dropdownBib.js +12 -3
- package/components/dropdown/src/styles/style-css.js +1 -1
- package/components/dropdown/src/styles/style.css +4 -0
- package/components/dropdown/src/styles/style.scss +5 -0
- package/components/form/.turbo/turbo-build.log +3 -3
- package/components/form/.turbo/turbo-bundler.log +3 -3
- package/components/input/.turbo/turbo-build.log +3 -3
- package/components/input/.turbo/turbo-bundler.log +3 -3
- package/components/input/demo/api.md +37 -35
- package/components/input/demo/api.min.js +241 -71
- package/components/input/demo/index.min.js +241 -71
- package/components/input/dist/base-input.d.ts +157 -79
- package/components/input/dist/base-input.d.ts.map +1 -1
- package/components/input/dist/index.js +241 -71
- package/components/input/src/base-input.js +241 -71
- package/components/menu/.turbo/turbo-build.log +3 -3
- package/components/menu/.turbo/turbo-bundler.log +3 -3
- package/components/radio/.turbo/turbo-build.log +3 -3
- package/components/radio/.turbo/turbo-bundler.log +3 -3
- package/components/select/.turbo/turbo-build.log +7 -9
- package/components/select/demo/api.md +39 -100
- package/components/select/demo/api.min.js +292 -169
- package/components/select/demo/index.md +100 -43
- package/components/select/demo/index.min.js +292 -169
- package/components/select/dist/auro-select.d.ts +63 -50
- package/components/select/dist/auro-select.d.ts.map +1 -1
- package/components/select/dist/index.js +287 -151
- package/components/select/src/auro-select.js +102 -102
- package/components/select/src/styles/style-css.js +1 -1
- package/components/select/src/styles/style.css +7 -0
- package/components/select/src/styles/style.scss +11 -1
- package/package.json +1 -1
- package/.turbo/cache/1ab37ce15d9be440-meta.json +0 -1
- package/.turbo/cache/1ab37ce15d9be440.tar.zst +0 -0
- package/.turbo/cache/1de15d89eed2d760-meta.json +0 -1
- package/.turbo/cache/1de15d89eed2d760.tar.zst +0 -0
- package/.turbo/cache/2110a4d14e0d11b2-meta.json +0 -1
- package/.turbo/cache/2110a4d14e0d11b2.tar.zst +0 -0
- package/.turbo/cache/2990aaa7ebc5b967-meta.json +0 -1
- package/.turbo/cache/2990aaa7ebc5b967.tar.zst +0 -0
- package/.turbo/cache/2fd056afdf4eb39d-meta.json +0 -1
- package/.turbo/cache/2fd056afdf4eb39d.tar.zst +0 -0
- package/.turbo/cache/4f92cea2d8c63de2-meta.json +0 -1
- package/.turbo/cache/4f92cea2d8c63de2.tar.zst +0 -0
- package/.turbo/cache/5c16ce3cff5c9dff-meta.json +0 -1
- package/.turbo/cache/5c16ce3cff5c9dff.tar.zst +0 -0
- package/.turbo/cache/784c03fe9fd5ac05-meta.json +0 -1
- package/.turbo/cache/784c03fe9fd5ac05.tar.zst +0 -0
- package/.turbo/cache/87219c41a4ace9cd-meta.json +0 -1
- package/.turbo/cache/87219c41a4ace9cd.tar.zst +0 -0
- package/.turbo/cache/993dff2edb7b6766-meta.json +0 -1
- package/.turbo/cache/993dff2edb7b6766.tar.zst +0 -0
- package/.turbo/cache/9a097d6576dadd64-meta.json +0 -1
- package/.turbo/cache/9a097d6576dadd64.tar.zst +0 -0
- package/.turbo/cache/a63cbfecf0f78586-meta.json +0 -1
- package/.turbo/cache/a63cbfecf0f78586.tar.zst +0 -0
- package/.turbo/cache/a6a56bb802e1c20f-meta.json +0 -1
- package/.turbo/cache/a6a56bb802e1c20f.tar.zst +0 -0
- package/.turbo/cache/b2c66328fdd78093-meta.json +0 -1
- package/.turbo/cache/b2c66328fdd78093.tar.zst +0 -0
- package/.turbo/cache/d39e6ef95ebc4cc0-meta.json +0 -1
- package/.turbo/cache/f411e2deb0676959-meta.json +0 -1
- package/.turbo/cache/f411e2deb0676959.tar.zst +0 -0
- package/.turbo/cache/fbbe2704bf9cb90b-meta.json +0 -1
- package/.turbo/cache/fbbe2704bf9cb90b.tar.zst +0 -0
- /package/.turbo/cache/{d39e6ef95ebc4cc0.tar.zst → f817d89688cefca8.tar.zst} +0 -0
|
@@ -90,13 +90,13 @@ More info and automated migrator: https://sass-lang.com/d/import
|
|
|
90
90
|
|
|
91
91
|
[36m
|
|
92
92
|
[1m./src/index.js[22m → [1mdist[22m...[39m
|
|
93
|
-
[32mcreated [1mdist[22m in [1m1.
|
|
93
|
+
[32mcreated [1mdist[22m in [1m1.1s[22m[39m
|
|
94
94
|
[36m
|
|
95
95
|
[1m./demo/index.js[22m → [1m./demo/[22m...[39m
|
|
96
|
-
[32mcreated [1m./demo/[22m in [
|
|
96
|
+
[32mcreated [1m./demo/[22m in [1m898ms[22m[39m
|
|
97
97
|
[36m
|
|
98
98
|
[1m./demo/api.js[22m → [1m./demo/[22m...[39m
|
|
99
|
-
[32mcreated [1m./demo/[22m in [
|
|
99
|
+
[32mcreated [1m./demo/[22m in [1m702ms[22m[39m
|
|
100
100
|
|
|
101
101
|
> @auro-formkit/auro-dropdown@3.0.0 build:docs
|
|
102
102
|
> wca analyze 'scripts/wca/*.js' --outFiles docs/api.md; node ../../packages/build-tools/src/docProcessor.mjs --component dropdown
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
[32mcreated [1mdist[22m in [1m1.3s[22m[39m
|
|
8
8
|
[36m
|
|
9
9
|
[1m./demo/index.js[22m → [1m./demo/[22m...[39m
|
|
10
|
-
[32mcreated [1m./demo/[22m in [
|
|
10
|
+
[32mcreated [1m./demo/[22m in [1m885ms[22m[39m
|
|
11
11
|
[36m
|
|
12
12
|
[1m./demo/api.js[22m → [1m./demo/[22m...[39m
|
|
13
|
-
[32mcreated [1m./demo/[22m in [
|
|
13
|
+
[32mcreated [1m./demo/[22m in [1m607ms[22m[39m
|
|
@@ -14,13 +14,13 @@
|
|
|
14
14
|
| Property | Attribute | Type | Default | Description |
|
|
15
15
|
|------------------------------|------------------------------|-------------|---------|--------------------------------------------------|
|
|
16
16
|
| [bordered](#bordered) | `bordered` | ` Boolean ` | | If declared, applies a border around the trigger slot. |
|
|
17
|
-
| [chevron](#chevron) | `chevron` | ` Boolean ` | | If declared, the dropdown displays
|
|
17
|
+
| [chevron](#chevron) | `chevron` | ` Boolean ` | | If declared, the dropdown displays a chevron on the right. |
|
|
18
18
|
| [common](#common) | `common` | ` Boolean ` | | If declared, the dropdown will be styled with the common theme. |
|
|
19
19
|
| [disabled](#disabled) | `disabled` | ` Boolean ` | | If declared, the dropdown is not interactive. |
|
|
20
20
|
| [error](#error) | `error` | ` Boolean ` | | If declared in combination with `bordered` property or `helpText` slot content, will apply red color to both. |
|
|
21
|
-
| [fluid](#fluid) | `fluid` | `Boolean` | | Makes the trigger to be full width of its parent container |
|
|
22
|
-
| [focusShow](#focusShow) | `focusShow` | ` Boolean ` | |
|
|
23
|
-
| [hoverToggle](#hoverToggle) | `hoverToggle` | ` Boolean ` | |
|
|
21
|
+
| [fluid](#fluid) | `fluid` | `Boolean` | | Makes the trigger to be full width of its parent container. |
|
|
22
|
+
| [focusShow](#focusShow) | `focusShow` | ` Boolean ` | | If declared, the bib will display when focus is applied to the trigger. |
|
|
23
|
+
| [hoverToggle](#hoverToggle) | `hoverToggle` | ` Boolean ` | | If declared, the trigger will toggle the dropdown on mouseover/mouseout. |
|
|
24
24
|
| [inset](#inset) | `inset` | ` Boolean ` | | If declared, will apply padding around trigger slot content. |
|
|
25
25
|
| [isPopoverVisible](#isPopoverVisible) | `isPopoverVisible` | ` Boolean ` | false | If true, the dropdown bib is displayed. |
|
|
26
26
|
| [matchWidth](#matchWidth) | `matchWidth` | ` Boolean ` | false | If declared, the popover and trigger will be set to the same width. |
|
|
@@ -2427,7 +2427,7 @@ class AuroIcon extends BaseIcon {
|
|
|
2427
2427
|
|
|
2428
2428
|
var iconVersion = '6.1.2';
|
|
2429
2429
|
|
|
2430
|
-
var styleCss$1 = i$3`: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);white-space:normal}.trigger{position:relative;display:flex;align-items:center;border-width:1px;border-style:solid}@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)}.helpText{margin-top:var(--ds-size-50, 0.25rem);font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-text-body-size-default, 1rem)}: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)}`;
|
|
2430
|
+
var styleCss$1 = i$3`: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;border-width:1px;border-style:solid}@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)}.helpText{margin-top:var(--ds-size-50, 0.25rem);font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-text-body-size-default, 1rem)}: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)}`;
|
|
2431
2431
|
|
|
2432
2432
|
var colorCss$1 = i$3`.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)}.trigger:focus-within,.trigger:active{--ds-auro-dropdown-trigger-border-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);outline:1px solid 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))}.helpText{color:var(--ds-auro-dropdown-help-text-color)}: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-help-text-color: var(--ds-color-text-error-default, #cc1816);--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)}`;
|
|
2433
2433
|
|
|
@@ -2451,9 +2451,6 @@ const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
|
|
|
2451
2451
|
];
|
|
2452
2452
|
|
|
2453
2453
|
/**
|
|
2454
|
-
* @attr { Boolean } common - If declared, will apply all styles for the common theme.
|
|
2455
|
-
* @attr { Boolean } rounded - If declared, will apply border-radius to the bib.
|
|
2456
|
-
* @attr { Boolean } inset - If declared, will apply extra padding to bib content.
|
|
2457
2454
|
* @prop { String } mobileFullscreenBreakpoint - 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.
|
|
2458
2455
|
* @csspart bibContainer - Apply css to the bib container.
|
|
2459
2456
|
*/
|
|
@@ -2479,14 +2476,26 @@ class AuroDropdownBib extends r {
|
|
|
2479
2476
|
|
|
2480
2477
|
static get properties() {
|
|
2481
2478
|
return {
|
|
2479
|
+
|
|
2480
|
+
/**
|
|
2481
|
+
* If declared, will apply all styles for the common theme.
|
|
2482
|
+
*/
|
|
2482
2483
|
common: {
|
|
2483
2484
|
type: Boolean,
|
|
2484
2485
|
reflect: true
|
|
2485
2486
|
},
|
|
2487
|
+
|
|
2488
|
+
/**
|
|
2489
|
+
* If declared, will apply extra padding to bib content.
|
|
2490
|
+
*/
|
|
2486
2491
|
inset: {
|
|
2487
2492
|
type: Boolean,
|
|
2488
2493
|
reflect: true
|
|
2489
2494
|
},
|
|
2495
|
+
|
|
2496
|
+
/**
|
|
2497
|
+
* If declared, will apply border-radius to the bib.
|
|
2498
|
+
*/
|
|
2490
2499
|
rounded: {
|
|
2491
2500
|
type: Boolean,
|
|
2492
2501
|
reflect: true
|
|
@@ -2530,22 +2539,7 @@ if (!customElements.get("auro-dropdownbib")) {
|
|
|
2530
2539
|
|
|
2531
2540
|
|
|
2532
2541
|
/**
|
|
2533
|
-
* @attr { Boolean } bordered - If declared, applies a border around the trigger slot.
|
|
2534
|
-
* @attr { Boolean } common - If declared, the dropdown will be styled with the common theme.
|
|
2535
|
-
* @attr { Boolean } chevron - If declared, the dropdown displays an display state chevron on the right.
|
|
2536
|
-
* @attr { Boolean } disabled - If declared, the dropdown is not interactive.
|
|
2537
2542
|
* @attr { Boolean } disableEventShow - If declared, the dropdown will only show by calling the API .show() public method.
|
|
2538
|
-
* @attr { Boolean } error - If declared in combination with `bordered` property or `helpText` slot content, will apply red color to both.
|
|
2539
|
-
* @attr {Boolean} fluid - Makes the trigger to be full width of its parent container
|
|
2540
|
-
* @attr { Boolean } matchWidth - If declared, the popover and trigger will be set to the same width.
|
|
2541
|
-
* @attr { Boolean } inset - If declared, will apply padding around trigger slot content.
|
|
2542
|
-
* @attr { Boolean } rounded - If declared, will apply border-radius to trigger and default slots.
|
|
2543
|
-
* @attr { Boolean } hoverToggle - if declared, the trigger will toggle the big on mouseover/mouseout.
|
|
2544
|
-
* @attr { Boolean } noToggle - If declared, the trigger will only show the dropdown bib.
|
|
2545
|
-
* @attr { Boolean } focusShow - if declared, the bib will display when focus is applied to the trigger.
|
|
2546
|
-
* @attr { Boolean } noHideOnThisFocusLoss - If declared, the dropdown will not hide when moving focus outside the element.
|
|
2547
|
-
* @attr { String } mobileFullscreenBreakpoint - 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.
|
|
2548
|
-
* @prop { Boolean } isPopoverVisible - If true, the dropdown bib is displayed.
|
|
2549
2543
|
* @slot - Default slot for the popover content.
|
|
2550
2544
|
* @slot label - Defines the content of the label.
|
|
2551
2545
|
* @slot helpText - Defines the content of the helpText.
|
|
@@ -2583,6 +2577,16 @@ class AuroDropdown extends r {
|
|
|
2583
2577
|
this.tabIndex = 0;
|
|
2584
2578
|
this.noToggle = false;
|
|
2585
2579
|
|
|
2580
|
+
/**
|
|
2581
|
+
* @private
|
|
2582
|
+
*/
|
|
2583
|
+
this.hasTriggerContent = false;
|
|
2584
|
+
|
|
2585
|
+
/**
|
|
2586
|
+
* @private
|
|
2587
|
+
*/
|
|
2588
|
+
this.triggerContentSlot = undefined;
|
|
2589
|
+
|
|
2586
2590
|
/**
|
|
2587
2591
|
* @private
|
|
2588
2592
|
*/
|
|
@@ -2629,89 +2633,166 @@ class AuroDropdown extends r {
|
|
|
2629
2633
|
// function to define props used within the scope of this component
|
|
2630
2634
|
static get properties() {
|
|
2631
2635
|
return {
|
|
2636
|
+
|
|
2637
|
+
/**
|
|
2638
|
+
* If declared, applies a border around the trigger slot.
|
|
2639
|
+
*/
|
|
2632
2640
|
bordered: {
|
|
2633
2641
|
type: Boolean,
|
|
2634
2642
|
reflect: true
|
|
2635
2643
|
},
|
|
2644
|
+
|
|
2645
|
+
/**
|
|
2646
|
+
* If declared, the dropdown displays a chevron on the right.
|
|
2647
|
+
* @attr {Boolean} chevron
|
|
2648
|
+
*/
|
|
2636
2649
|
chevron: {
|
|
2637
2650
|
type: Boolean,
|
|
2638
2651
|
reflect: true
|
|
2639
2652
|
},
|
|
2640
|
-
|
|
2653
|
+
|
|
2654
|
+
/**
|
|
2655
|
+
* If declared, the dropdown will be styled with the common theme.
|
|
2656
|
+
*/
|
|
2657
|
+
common: {
|
|
2641
2658
|
type: Boolean,
|
|
2642
2659
|
reflect: true
|
|
2643
2660
|
},
|
|
2644
|
-
|
|
2661
|
+
|
|
2662
|
+
/**
|
|
2663
|
+
* If declared, the dropdown is not interactive.
|
|
2664
|
+
*/
|
|
2665
|
+
disabled: {
|
|
2645
2666
|
type: Boolean,
|
|
2646
2667
|
reflect: true
|
|
2647
2668
|
},
|
|
2648
|
-
|
|
2669
|
+
|
|
2670
|
+
/**
|
|
2671
|
+
* @private
|
|
2672
|
+
*/
|
|
2673
|
+
dropdownWidth: {
|
|
2674
|
+
type: Number
|
|
2675
|
+
},
|
|
2676
|
+
|
|
2677
|
+
/**
|
|
2678
|
+
* If declared in combination with `bordered` property or `helpText` slot content, will apply red color to both.
|
|
2679
|
+
*/
|
|
2680
|
+
error: {
|
|
2649
2681
|
type: Boolean,
|
|
2650
|
-
reflect: true
|
|
2682
|
+
reflect: true
|
|
2651
2683
|
},
|
|
2684
|
+
|
|
2685
|
+
/**
|
|
2686
|
+
* If declared, the bib will display when focus is applied to the trigger.
|
|
2687
|
+
*/
|
|
2652
2688
|
focusShow: {
|
|
2653
2689
|
type: Boolean,
|
|
2654
2690
|
reflect: true
|
|
2655
2691
|
},
|
|
2656
|
-
|
|
2692
|
+
|
|
2693
|
+
/**
|
|
2694
|
+
* Makes the trigger to be full width of its parent container.
|
|
2695
|
+
*/
|
|
2696
|
+
fluid: {
|
|
2657
2697
|
type: Boolean,
|
|
2658
2698
|
reflect: true
|
|
2659
2699
|
},
|
|
2700
|
+
|
|
2701
|
+
/**
|
|
2702
|
+
* If declared, will apply padding around trigger slot content.
|
|
2703
|
+
*/
|
|
2660
2704
|
inset: {
|
|
2661
2705
|
type: Boolean,
|
|
2662
2706
|
reflect: true
|
|
2663
2707
|
},
|
|
2664
|
-
|
|
2708
|
+
|
|
2709
|
+
/**
|
|
2710
|
+
* If true, the dropdown bib is displayed.
|
|
2711
|
+
*/
|
|
2712
|
+
isPopoverVisible: {
|
|
2713
|
+
type: Boolean
|
|
2714
|
+
},
|
|
2715
|
+
|
|
2716
|
+
/**
|
|
2717
|
+
* If declared, the trigger will toggle the dropdown on mouseover/mouseout.
|
|
2718
|
+
*/
|
|
2719
|
+
hoverToggle: {
|
|
2665
2720
|
type: Boolean,
|
|
2666
2721
|
reflect: true
|
|
2667
2722
|
},
|
|
2668
|
-
|
|
2669
|
-
|
|
2723
|
+
|
|
2724
|
+
/**
|
|
2725
|
+
* @private
|
|
2726
|
+
*/
|
|
2727
|
+
hasTriggerContent: {
|
|
2728
|
+
type: Boolean
|
|
2729
|
+
},
|
|
2730
|
+
|
|
2731
|
+
/**
|
|
2732
|
+
* 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.
|
|
2733
|
+
*/
|
|
2734
|
+
mobileFullscreenBreakpoint: {
|
|
2735
|
+
type: String,
|
|
2670
2736
|
reflect: true
|
|
2671
2737
|
},
|
|
2672
|
-
|
|
2738
|
+
|
|
2739
|
+
/**
|
|
2740
|
+
* If declared, the popover and trigger will be set to the same width.
|
|
2741
|
+
*/
|
|
2742
|
+
matchWidth: {
|
|
2673
2743
|
type: Boolean,
|
|
2674
2744
|
reflect: true
|
|
2675
2745
|
},
|
|
2676
|
-
|
|
2746
|
+
|
|
2747
|
+
/**
|
|
2748
|
+
* If declared, the dropdown will not hide when moving focus outside the element.
|
|
2749
|
+
*/
|
|
2750
|
+
noHideOnThisFocusLoss: {
|
|
2677
2751
|
type: Boolean,
|
|
2678
2752
|
reflect: true
|
|
2679
2753
|
},
|
|
2680
|
-
|
|
2754
|
+
|
|
2755
|
+
/**
|
|
2756
|
+
* If declared, the trigger will only show the dropdown bib.
|
|
2757
|
+
*/
|
|
2758
|
+
noToggle: {
|
|
2681
2759
|
type: Boolean,
|
|
2682
2760
|
reflect: true
|
|
2683
2761
|
},
|
|
2684
|
-
|
|
2762
|
+
|
|
2685
2763
|
onSlotChange: {
|
|
2686
2764
|
type: Function,
|
|
2687
2765
|
reflect: false
|
|
2688
2766
|
},
|
|
2689
|
-
mobileFullscreenBreakpoint: {
|
|
2690
|
-
type: String,
|
|
2691
|
-
reflect: true,
|
|
2692
|
-
},
|
|
2693
2767
|
|
|
2694
2768
|
/**
|
|
2695
2769
|
* @private
|
|
2696
2770
|
*/
|
|
2697
|
-
|
|
2771
|
+
placement: {
|
|
2772
|
+
type: String
|
|
2773
|
+
},
|
|
2698
2774
|
|
|
2699
2775
|
/**
|
|
2700
|
-
*
|
|
2776
|
+
* If declared, will apply border-radius to trigger and default slots.
|
|
2701
2777
|
*/
|
|
2702
|
-
|
|
2778
|
+
rounded: {
|
|
2779
|
+
type: Boolean,
|
|
2780
|
+
reflect: true
|
|
2781
|
+
},
|
|
2703
2782
|
|
|
2704
2783
|
/**
|
|
2705
2784
|
* @private
|
|
2706
2785
|
*/
|
|
2707
|
-
tabIndex: {
|
|
2786
|
+
tabIndex: {
|
|
2787
|
+
type: Number
|
|
2788
|
+
}
|
|
2708
2789
|
};
|
|
2709
2790
|
}
|
|
2710
2791
|
|
|
2711
2792
|
static get styles() {
|
|
2712
2793
|
return [
|
|
2713
|
-
styleCss$1,
|
|
2714
2794
|
colorCss$1,
|
|
2795
|
+
styleCss$1,
|
|
2715
2796
|
tokensCss
|
|
2716
2797
|
];
|
|
2717
2798
|
}
|
|
@@ -2742,6 +2823,12 @@ class AuroDropdown extends r {
|
|
|
2742
2823
|
if (changedProperties.has('mobileFullscreenBreakpoint')) {
|
|
2743
2824
|
this.bibContent.mobileFullscreenBreakpoint = this.mobileFullscreenBreakpoint;
|
|
2744
2825
|
}
|
|
2826
|
+
|
|
2827
|
+
// when trigger's content is changed without any attribute or node change,
|
|
2828
|
+
// `requestUpdate` needs to be called to update hasTriggerContnet
|
|
2829
|
+
if (changedProperties.size === 0 || changedProperties.has('isPopoverVisible')) {
|
|
2830
|
+
this.handleTriggerContentSlotChange();
|
|
2831
|
+
}
|
|
2745
2832
|
}
|
|
2746
2833
|
|
|
2747
2834
|
firstUpdated() {
|
|
@@ -2784,6 +2871,43 @@ class AuroDropdown extends r {
|
|
|
2784
2871
|
return inCustomSlot;
|
|
2785
2872
|
}
|
|
2786
2873
|
|
|
2874
|
+
/**
|
|
2875
|
+
* Handles changes to the trigger content slot and updates related properties.
|
|
2876
|
+
*
|
|
2877
|
+
* It first updates the floater settings
|
|
2878
|
+
* Then, it retrieves the assigned nodes from the event target and checks if any of
|
|
2879
|
+
* the nodes contain non-empty text content, updating the `hasTriggerContent` property accordingly.
|
|
2880
|
+
*
|
|
2881
|
+
* @private
|
|
2882
|
+
* @method handleTriggerContentSlotChange
|
|
2883
|
+
* @param {Event} event - native slotchange event
|
|
2884
|
+
* @returns {void}
|
|
2885
|
+
*/
|
|
2886
|
+
handleTriggerContentSlotChange(event) {
|
|
2887
|
+
this.floater.handleTriggerTabIndex();
|
|
2888
|
+
|
|
2889
|
+
if (event) {
|
|
2890
|
+
this.triggerNode = event.target;
|
|
2891
|
+
this.triggerContentSlot = event.target.assignedNodes();
|
|
2892
|
+
}
|
|
2893
|
+
|
|
2894
|
+
if (this.triggerContentSlot) {
|
|
2895
|
+
this.hasTriggerContent = this.triggerContentSlot.some((slot) => {
|
|
2896
|
+
if (slot.textContent.trim()) {
|
|
2897
|
+
return true;
|
|
2898
|
+
}
|
|
2899
|
+
const slotInSlot = slot.querySelector('slot');
|
|
2900
|
+
if (!slotInSlot) {
|
|
2901
|
+
return false;
|
|
2902
|
+
}
|
|
2903
|
+
const slotsInSlotNodes = slotInSlot.assignedNodes();
|
|
2904
|
+
return slotsInSlotNodes.some((ss) => Boolean(ss.textContent.trim()));
|
|
2905
|
+
});
|
|
2906
|
+
} else {
|
|
2907
|
+
this.hasTriggerContent = false;
|
|
2908
|
+
}
|
|
2909
|
+
}
|
|
2910
|
+
|
|
2787
2911
|
/**
|
|
2788
2912
|
* Handles the default slot change event and updates the content.
|
|
2789
2913
|
*
|
|
@@ -2818,13 +2942,13 @@ class AuroDropdown extends r {
|
|
|
2818
2942
|
tabindex="${this.tabIndex}"
|
|
2819
2943
|
>
|
|
2820
2944
|
<div class="triggerContentWrapper">
|
|
2821
|
-
<label class="label" id="triggerLabel">
|
|
2945
|
+
<label class="label" id="triggerLabel" hasTrigger=${this.hasTriggerContent}>
|
|
2822
2946
|
<slot name="label"></slot>
|
|
2823
2947
|
</label>
|
|
2824
2948
|
<div class="triggerContent">
|
|
2825
2949
|
<slot
|
|
2826
2950
|
name="trigger"
|
|
2827
|
-
@slotchange="${() =>
|
|
2951
|
+
@slotchange="${(event) => this.handleTriggerContentSlotChange(event)}"></slot>
|
|
2828
2952
|
</div>
|
|
2829
2953
|
</div>
|
|
2830
2954
|
${this.chevron || this.common ? u$1`
|