@aurodesignsystem/auro-formkit 3.0.0 → 3.1.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 +19 -0
- package/components/bibtemplate/dist/auro-bibtemplate.d.ts +1 -0
- package/components/bibtemplate/dist/index.js +2 -0
- package/components/bibtemplate/dist/registered.js +2 -0
- 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 +5 -5
- package/components/combobox/demo/api.min.js +54 -18
- package/components/combobox/demo/index.min.js +54 -18
- package/components/combobox/demo/readme.md +1 -1
- package/components/combobox/dist/auro-combobox.d.ts +16 -7
- package/components/combobox/dist/index.js +54 -18
- package/components/combobox/dist/registered.js +54 -18
- package/components/counter/README.md +1 -1
- package/components/counter/demo/api.md +2 -2
- package/components/counter/demo/api.min.js +33 -6
- package/components/counter/demo/index.min.js +33 -6
- package/components/counter/demo/readme.md +1 -1
- package/components/counter/dist/auro-counter-group.d.ts +9 -3
- package/components/counter/dist/index.js +33 -6
- package/components/counter/dist/registered.js +33 -6
- package/components/datepicker/README.md +1 -1
- package/components/datepicker/demo/api.md +3 -2
- package/components/datepicker/demo/api.min.js +63 -14
- package/components/datepicker/demo/index.min.js +63 -14
- package/components/datepicker/demo/readme.md +1 -1
- package/components/datepicker/dist/auro-calendar-cell.d.ts +1 -0
- package/components/datepicker/dist/auro-calendar-month.d.ts +1 -0
- package/components/datepicker/dist/auro-calendar.d.ts +3 -2
- package/components/datepicker/dist/auro-datepicker.d.ts +16 -0
- package/components/datepicker/dist/index.js +63 -14
- package/components/datepicker/dist/registered.js +63 -14
- package/components/dropdown/README.md +1 -1
- package/components/dropdown/demo/api.md +1 -1
- package/components/dropdown/demo/api.min.js +21 -3
- package/components/dropdown/demo/index.md +83 -0
- package/components/dropdown/demo/index.min.js +21 -3
- package/components/dropdown/demo/readme.md +1 -1
- package/components/dropdown/dist/auro-dropdown.d.ts +12 -1
- package/components/dropdown/dist/index.js +21 -3
- package/components/dropdown/dist/registered.js +21 -3
- package/components/form/README.md +1 -1
- package/components/form/demo/autocomplete.html +15 -0
- package/components/form/demo/readme.md +1 -1
- package/components/input/README.md +1 -1
- package/components/input/demo/api.min.js +10 -5
- package/components/input/demo/index.min.js +10 -5
- package/components/input/demo/readme.md +1 -1
- package/components/input/dist/base-input.d.ts +5 -0
- package/components/input/dist/index.js +10 -5
- package/components/input/dist/registered.js +10 -5
- 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 +1 -1
- package/components/select/demo/api.md +1 -1
- package/components/select/demo/api.min.js +28 -5
- package/components/select/demo/index.md +46 -1
- package/components/select/demo/index.min.js +28 -5
- package/components/select/demo/readme.md +1 -1
- package/components/select/dist/auro-select.d.ts +5 -2
- package/components/select/dist/index.js +28 -5
- package/components/select/dist/registered.js +28 -5
- package/package.json +1 -1
|
@@ -109,7 +109,7 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
|
|
|
109
109
|
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.
|
|
110
110
|
|
|
111
111
|
```html
|
|
112
|
-
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@
|
|
112
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@3.0.1/auro-form/+esm"></script>
|
|
113
113
|
```
|
|
114
114
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
115
115
|
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
6
|
+
<title>Demo page for auto-complete</title>
|
|
7
|
+
</head>
|
|
8
|
+
<body>
|
|
9
|
+
<!-- EVERY AUTOCOMPLETE OPTION, auro inputs -->
|
|
10
|
+
|
|
11
|
+
<!-- EVERY AUTOCOMPLETE OPTION, auro combobox -->
|
|
12
|
+
|
|
13
|
+
<!-- LOGIN FORM -->
|
|
14
|
+
</body>
|
|
15
|
+
</html>
|
|
@@ -109,7 +109,7 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
|
|
|
109
109
|
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.
|
|
110
110
|
|
|
111
111
|
```html
|
|
112
|
-
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@
|
|
112
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@3.0.1/auro-form/+esm"></script>
|
|
113
113
|
```
|
|
114
114
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
115
115
|
|
|
@@ -99,7 +99,7 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
|
|
|
99
99
|
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.
|
|
100
100
|
|
|
101
101
|
```html
|
|
102
|
-
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@
|
|
102
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@3.0.1/auro-input/+esm"></script>
|
|
103
103
|
```
|
|
104
104
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
105
105
|
|
|
@@ -4642,7 +4642,8 @@ class BaseInput extends r {
|
|
|
4642
4642
|
* If set, disables the input.
|
|
4643
4643
|
*/
|
|
4644
4644
|
disabled: {
|
|
4645
|
-
type: Boolean
|
|
4645
|
+
type: Boolean,
|
|
4646
|
+
reflect: true
|
|
4646
4647
|
},
|
|
4647
4648
|
|
|
4648
4649
|
/**
|
|
@@ -4672,7 +4673,8 @@ class BaseInput extends r {
|
|
|
4672
4673
|
* If set, will render an icon inside the input to the left of the value. Support is limited to auro-input instances with credit card format.
|
|
4673
4674
|
*/
|
|
4674
4675
|
icon: {
|
|
4675
|
-
type: Boolean
|
|
4676
|
+
type: Boolean,
|
|
4677
|
+
reflect: true
|
|
4676
4678
|
},
|
|
4677
4679
|
|
|
4678
4680
|
/**
|
|
@@ -4728,7 +4730,8 @@ class BaseInput extends r {
|
|
|
4728
4730
|
* If set, disables auto-validation on blur.
|
|
4729
4731
|
*/
|
|
4730
4732
|
noValidate: {
|
|
4731
|
-
type: Boolean
|
|
4733
|
+
type: Boolean,
|
|
4734
|
+
reflect: true
|
|
4732
4735
|
},
|
|
4733
4736
|
|
|
4734
4737
|
/**
|
|
@@ -4758,14 +4761,16 @@ class BaseInput extends r {
|
|
|
4758
4761
|
* Makes the input read-only, but can be set programmatically.
|
|
4759
4762
|
*/
|
|
4760
4763
|
readonly: {
|
|
4761
|
-
type: Boolean
|
|
4764
|
+
type: Boolean,
|
|
4765
|
+
reflect: true
|
|
4762
4766
|
},
|
|
4763
4767
|
|
|
4764
4768
|
/**
|
|
4765
4769
|
* Populates the `required` attribute on the input. Used for client-side validation.
|
|
4766
4770
|
*/
|
|
4767
4771
|
required: {
|
|
4768
|
-
type: Boolean
|
|
4772
|
+
type: Boolean,
|
|
4773
|
+
reflect: true
|
|
4769
4774
|
},
|
|
4770
4775
|
|
|
4771
4776
|
/**
|
|
@@ -4567,7 +4567,8 @@ class BaseInput extends r {
|
|
|
4567
4567
|
* If set, disables the input.
|
|
4568
4568
|
*/
|
|
4569
4569
|
disabled: {
|
|
4570
|
-
type: Boolean
|
|
4570
|
+
type: Boolean,
|
|
4571
|
+
reflect: true
|
|
4571
4572
|
},
|
|
4572
4573
|
|
|
4573
4574
|
/**
|
|
@@ -4597,7 +4598,8 @@ class BaseInput extends r {
|
|
|
4597
4598
|
* If set, will render an icon inside the input to the left of the value. Support is limited to auro-input instances with credit card format.
|
|
4598
4599
|
*/
|
|
4599
4600
|
icon: {
|
|
4600
|
-
type: Boolean
|
|
4601
|
+
type: Boolean,
|
|
4602
|
+
reflect: true
|
|
4601
4603
|
},
|
|
4602
4604
|
|
|
4603
4605
|
/**
|
|
@@ -4653,7 +4655,8 @@ class BaseInput extends r {
|
|
|
4653
4655
|
* If set, disables auto-validation on blur.
|
|
4654
4656
|
*/
|
|
4655
4657
|
noValidate: {
|
|
4656
|
-
type: Boolean
|
|
4658
|
+
type: Boolean,
|
|
4659
|
+
reflect: true
|
|
4657
4660
|
},
|
|
4658
4661
|
|
|
4659
4662
|
/**
|
|
@@ -4683,14 +4686,16 @@ class BaseInput extends r {
|
|
|
4683
4686
|
* Makes the input read-only, but can be set programmatically.
|
|
4684
4687
|
*/
|
|
4685
4688
|
readonly: {
|
|
4686
|
-
type: Boolean
|
|
4689
|
+
type: Boolean,
|
|
4690
|
+
reflect: true
|
|
4687
4691
|
},
|
|
4688
4692
|
|
|
4689
4693
|
/**
|
|
4690
4694
|
* Populates the `required` attribute on the input. Used for client-side validation.
|
|
4691
4695
|
*/
|
|
4692
4696
|
required: {
|
|
4693
|
-
type: Boolean
|
|
4697
|
+
type: Boolean,
|
|
4698
|
+
reflect: true
|
|
4694
4699
|
},
|
|
4695
4700
|
|
|
4696
4701
|
/**
|
|
@@ -99,7 +99,7 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
|
|
|
99
99
|
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.
|
|
100
100
|
|
|
101
101
|
```html
|
|
102
|
-
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@
|
|
102
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@3.0.1/auro-input/+esm"></script>
|
|
103
103
|
```
|
|
104
104
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
105
105
|
|
|
@@ -48,6 +48,7 @@ export default class BaseInput extends LitElement {
|
|
|
48
48
|
*/
|
|
49
49
|
disabled: {
|
|
50
50
|
type: BooleanConstructor;
|
|
51
|
+
reflect: boolean;
|
|
51
52
|
};
|
|
52
53
|
/**
|
|
53
54
|
* When defined, sets persistent validity to `customError` and sets `setCustomValidity` = attribute value.
|
|
@@ -74,6 +75,7 @@ export default class BaseInput extends LitElement {
|
|
|
74
75
|
*/
|
|
75
76
|
icon: {
|
|
76
77
|
type: BooleanConstructor;
|
|
78
|
+
reflect: boolean;
|
|
77
79
|
};
|
|
78
80
|
/**
|
|
79
81
|
* Sets the unique ID of the element.
|
|
@@ -122,6 +124,7 @@ export default class BaseInput extends LitElement {
|
|
|
122
124
|
*/
|
|
123
125
|
noValidate: {
|
|
124
126
|
type: BooleanConstructor;
|
|
127
|
+
reflect: boolean;
|
|
125
128
|
};
|
|
126
129
|
/**
|
|
127
130
|
* Sets onDark styles on input.
|
|
@@ -148,12 +151,14 @@ export default class BaseInput extends LitElement {
|
|
|
148
151
|
*/
|
|
149
152
|
readonly: {
|
|
150
153
|
type: BooleanConstructor;
|
|
154
|
+
reflect: boolean;
|
|
151
155
|
};
|
|
152
156
|
/**
|
|
153
157
|
* Populates the `required` attribute on the input. Used for client-side validation.
|
|
154
158
|
*/
|
|
155
159
|
required: {
|
|
156
160
|
type: BooleanConstructor;
|
|
161
|
+
reflect: boolean;
|
|
157
162
|
};
|
|
158
163
|
/**
|
|
159
164
|
* @ignore
|
|
@@ -4491,7 +4491,8 @@ class BaseInput extends LitElement {
|
|
|
4491
4491
|
* If set, disables the input.
|
|
4492
4492
|
*/
|
|
4493
4493
|
disabled: {
|
|
4494
|
-
type: Boolean
|
|
4494
|
+
type: Boolean,
|
|
4495
|
+
reflect: true
|
|
4495
4496
|
},
|
|
4496
4497
|
|
|
4497
4498
|
/**
|
|
@@ -4521,7 +4522,8 @@ class BaseInput extends LitElement {
|
|
|
4521
4522
|
* If set, will render an icon inside the input to the left of the value. Support is limited to auro-input instances with credit card format.
|
|
4522
4523
|
*/
|
|
4523
4524
|
icon: {
|
|
4524
|
-
type: Boolean
|
|
4525
|
+
type: Boolean,
|
|
4526
|
+
reflect: true
|
|
4525
4527
|
},
|
|
4526
4528
|
|
|
4527
4529
|
/**
|
|
@@ -4577,7 +4579,8 @@ class BaseInput extends LitElement {
|
|
|
4577
4579
|
* If set, disables auto-validation on blur.
|
|
4578
4580
|
*/
|
|
4579
4581
|
noValidate: {
|
|
4580
|
-
type: Boolean
|
|
4582
|
+
type: Boolean,
|
|
4583
|
+
reflect: true
|
|
4581
4584
|
},
|
|
4582
4585
|
|
|
4583
4586
|
/**
|
|
@@ -4607,14 +4610,16 @@ class BaseInput extends LitElement {
|
|
|
4607
4610
|
* Makes the input read-only, but can be set programmatically.
|
|
4608
4611
|
*/
|
|
4609
4612
|
readonly: {
|
|
4610
|
-
type: Boolean
|
|
4613
|
+
type: Boolean,
|
|
4614
|
+
reflect: true
|
|
4611
4615
|
},
|
|
4612
4616
|
|
|
4613
4617
|
/**
|
|
4614
4618
|
* Populates the `required` attribute on the input. Used for client-side validation.
|
|
4615
4619
|
*/
|
|
4616
4620
|
required: {
|
|
4617
|
-
type: Boolean
|
|
4621
|
+
type: Boolean,
|
|
4622
|
+
reflect: true
|
|
4618
4623
|
},
|
|
4619
4624
|
|
|
4620
4625
|
/**
|
|
@@ -4491,7 +4491,8 @@ class BaseInput extends LitElement {
|
|
|
4491
4491
|
* If set, disables the input.
|
|
4492
4492
|
*/
|
|
4493
4493
|
disabled: {
|
|
4494
|
-
type: Boolean
|
|
4494
|
+
type: Boolean,
|
|
4495
|
+
reflect: true
|
|
4495
4496
|
},
|
|
4496
4497
|
|
|
4497
4498
|
/**
|
|
@@ -4521,7 +4522,8 @@ class BaseInput extends LitElement {
|
|
|
4521
4522
|
* If set, will render an icon inside the input to the left of the value. Support is limited to auro-input instances with credit card format.
|
|
4522
4523
|
*/
|
|
4523
4524
|
icon: {
|
|
4524
|
-
type: Boolean
|
|
4525
|
+
type: Boolean,
|
|
4526
|
+
reflect: true
|
|
4525
4527
|
},
|
|
4526
4528
|
|
|
4527
4529
|
/**
|
|
@@ -4577,7 +4579,8 @@ class BaseInput extends LitElement {
|
|
|
4577
4579
|
* If set, disables auto-validation on blur.
|
|
4578
4580
|
*/
|
|
4579
4581
|
noValidate: {
|
|
4580
|
-
type: Boolean
|
|
4582
|
+
type: Boolean,
|
|
4583
|
+
reflect: true
|
|
4581
4584
|
},
|
|
4582
4585
|
|
|
4583
4586
|
/**
|
|
@@ -4607,14 +4610,16 @@ class BaseInput extends LitElement {
|
|
|
4607
4610
|
* Makes the input read-only, but can be set programmatically.
|
|
4608
4611
|
*/
|
|
4609
4612
|
readonly: {
|
|
4610
|
-
type: Boolean
|
|
4613
|
+
type: Boolean,
|
|
4614
|
+
reflect: true
|
|
4611
4615
|
},
|
|
4612
4616
|
|
|
4613
4617
|
/**
|
|
4614
4618
|
* Populates the `required` attribute on the input. Used for client-side validation.
|
|
4615
4619
|
*/
|
|
4616
4620
|
required: {
|
|
4617
|
-
type: Boolean
|
|
4621
|
+
type: Boolean,
|
|
4622
|
+
reflect: true
|
|
4618
4623
|
},
|
|
4619
4624
|
|
|
4620
4625
|
/**
|
|
@@ -110,7 +110,7 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
|
|
|
110
110
|
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.
|
|
111
111
|
|
|
112
112
|
```html
|
|
113
|
-
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@
|
|
113
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@3.0.1/auro-menu/+esm"></script>
|
|
114
114
|
```
|
|
115
115
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
116
116
|
|
|
@@ -110,7 +110,7 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
|
|
|
110
110
|
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.
|
|
111
111
|
|
|
112
112
|
```html
|
|
113
|
-
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@
|
|
113
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@3.0.1/auro-menu/+esm"></script>
|
|
114
114
|
```
|
|
115
115
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
116
116
|
|
|
@@ -100,7 +100,7 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
|
|
|
100
100
|
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.
|
|
101
101
|
|
|
102
102
|
```html
|
|
103
|
-
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@
|
|
103
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@3.0.1/auro-radio/+esm"></script>
|
|
104
104
|
```
|
|
105
105
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
106
106
|
|
|
@@ -100,7 +100,7 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
|
|
|
100
100
|
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.
|
|
101
101
|
|
|
102
102
|
```html
|
|
103
|
-
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@
|
|
103
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@3.0.1/auro-radio/+esm"></script>
|
|
104
104
|
```
|
|
105
105
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
106
106
|
|
|
@@ -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" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@
|
|
114
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@3.0.1/auro-select/+esm"></script>
|
|
115
115
|
```
|
|
116
116
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
117
117
|
|
|
@@ -20,7 +20,7 @@ The auro-select element is a wrapper for auro-dropdown and auro-menu to create a
|
|
|
20
20
|
| [disabled](#disabled) | `disabled` | `boolean` | | When attribute is present, element shows disabled state. |
|
|
21
21
|
| [error](#error) | `error` | `string` | | When defined, sets persistent validity to `customError` and sets `setCustomValidity` = attribute value. |
|
|
22
22
|
| [flexMenuWidth](#flexMenuWidth) | `flexMenuWidth` | `boolean` | | If set, makes dropdown width match the size of the content, rather than the width of the trigger. |
|
|
23
|
-
| [fullscreenBreakpoint](#fullscreenBreakpoint) | `fullscreenBreakpoint` | `string` | "sm" | Defines the screen size breakpoint (`
|
|
23
|
+
| [fullscreenBreakpoint](#fullscreenBreakpoint) | `fullscreenBreakpoint` | `string` | "sm" | Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)<br />at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.<br /><br />When expanded, the dropdown will automatically display in fullscreen mode<br />if the screen size is equal to or smaller than the selected breakpoint. |
|
|
24
24
|
| [largeFullscreenHeadline](#largeFullscreenHeadline) | `largeFullscreenHeadline` | `boolean` | | If declared, make bib.fullscreen.headline in HeadingDisplay.<br />Otherwise, Heading 600 |
|
|
25
25
|
| [multiSelect](#multiSelect) | `multiselect` | `boolean` | | Sets multi-select mode, allowing multiple options to be selected at once. |
|
|
26
26
|
| [noCheckmark](#noCheckmark) | `noCheckmark` | `boolean` | | When true, checkmark on selected option will no longer be present. |
|
|
@@ -3141,6 +3141,7 @@ var tokensCss$1$1 = i$5`:host{--ds-auro-dropdown-label-text-color: var(--ds-basi
|
|
|
3141
3141
|
|
|
3142
3142
|
const DESIGN_TOKEN_BREAKPOINT_PREFIX = '--ds-grid-breakpoint-';
|
|
3143
3143
|
const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
|
|
3144
|
+
'xl',
|
|
3144
3145
|
'lg',
|
|
3145
3146
|
'md',
|
|
3146
3147
|
'sm',
|
|
@@ -3212,6 +3213,7 @@ class AuroDropdownBib extends r {
|
|
|
3212
3213
|
|
|
3213
3214
|
set mobileFullscreenBreakpoint(value) {
|
|
3214
3215
|
// verify the defined breakpoint is valid and exit out if not
|
|
3216
|
+
// 'disabled' is a design token breakpoint so it acts as our "undefined" value
|
|
3215
3217
|
const validatedValue = DESIGN_TOKEN_BREAKPOINT_OPTIONS.includes(value) ? value : undefined;
|
|
3216
3218
|
if (!validatedValue) {
|
|
3217
3219
|
this._mobileBreakpointValue = undefined;
|
|
@@ -3724,7 +3726,12 @@ class AuroDropdown extends r {
|
|
|
3724
3726
|
},
|
|
3725
3727
|
|
|
3726
3728
|
/**
|
|
3727
|
-
* Defines the screen size breakpoint (`
|
|
3729
|
+
* Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)
|
|
3730
|
+
* at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
|
|
3731
|
+
*
|
|
3732
|
+
* When expanded, the dropdown will automatically display in fullscreen mode
|
|
3733
|
+
* if the screen size is equal to or smaller than the selected breakpoint.
|
|
3734
|
+
* @default sm
|
|
3728
3735
|
*/
|
|
3729
3736
|
fullscreenBreakpoint: {
|
|
3730
3737
|
type: String,
|
|
@@ -3847,6 +3854,15 @@ class AuroDropdown extends r {
|
|
|
3847
3854
|
AuroLibraryRuntimeUtils$1$1.prototype.registerComponent(name, AuroDropdown);
|
|
3848
3855
|
}
|
|
3849
3856
|
|
|
3857
|
+
/**
|
|
3858
|
+
* Accessor for reusing the focusable entity query string.
|
|
3859
|
+
* @private
|
|
3860
|
+
* @returns {string}
|
|
3861
|
+
*/
|
|
3862
|
+
get focusableEntityQuery () {
|
|
3863
|
+
return 'auro-input, [auro-input], auro-button, [auro-button], button, input';
|
|
3864
|
+
}
|
|
3865
|
+
|
|
3850
3866
|
connectedCallback() {
|
|
3851
3867
|
super.connectedCallback();
|
|
3852
3868
|
}
|
|
@@ -3860,6 +3876,8 @@ class AuroDropdown extends r {
|
|
|
3860
3876
|
updated(changedProperties) {
|
|
3861
3877
|
this.floater.handleUpdate(changedProperties);
|
|
3862
3878
|
|
|
3879
|
+
// Note: `disabled` is not a breakpoint (it is not a screen size),
|
|
3880
|
+
// so it looks like we never consume this - however, dropdownBib handles this in the setter as "undefined"
|
|
3863
3881
|
if (changedProperties.has('fullscreenBreakpoint')) {
|
|
3864
3882
|
this.bibContent.mobileFullscreenBreakpoint = this.fullscreenBreakpoint;
|
|
3865
3883
|
}
|
|
@@ -3995,7 +4013,7 @@ class AuroDropdown extends r {
|
|
|
3995
4013
|
|
|
3996
4014
|
this.triggerContentSlot.forEach((node) => {
|
|
3997
4015
|
if (node.querySelectorAll) {
|
|
3998
|
-
const auroElements = node.querySelectorAll(
|
|
4016
|
+
const auroElements = node.querySelectorAll(this.focusableEntityQuery);
|
|
3999
4017
|
auroElements.forEach((auroEl) => {
|
|
4000
4018
|
auroEl.addEventListener('focus', this.bindFocusEventToTrigger);
|
|
4001
4019
|
auroEl.addEventListener('blur', this.bindFocusEventToTrigger);
|
|
@@ -4016,7 +4034,7 @@ class AuroDropdown extends r {
|
|
|
4016
4034
|
|
|
4017
4035
|
this.triggerContentSlot.forEach((node) => {
|
|
4018
4036
|
if (node.querySelectorAll) {
|
|
4019
|
-
const auroElements = node.querySelectorAll(
|
|
4037
|
+
const auroElements = node.querySelectorAll(this.focusableEntityQuery);
|
|
4020
4038
|
auroElements.forEach((auroEl) => {
|
|
4021
4039
|
auroEl.removeEventListener('focus', this.bindFocusEventToTrigger);
|
|
4022
4040
|
auroEl.removeEventListener('blur', this.bindFocusEventToTrigger);
|
|
@@ -4853,6 +4871,8 @@ class AuroBibtemplate extends r {
|
|
|
4853
4871
|
constructor() {
|
|
4854
4872
|
super();
|
|
4855
4873
|
|
|
4874
|
+
this.large = false;
|
|
4875
|
+
|
|
4856
4876
|
AuroLibraryRuntimeUtils$1.prototype.handleComponentTagRename(this, 'auro-bibtemplate');
|
|
4857
4877
|
|
|
4858
4878
|
const versioning = new AuroDependencyVersioning();
|
|
@@ -5201,8 +5221,11 @@ class AuroSelect extends r {
|
|
|
5201
5221
|
},
|
|
5202
5222
|
|
|
5203
5223
|
/**
|
|
5204
|
-
* Defines the screen size breakpoint (`
|
|
5205
|
-
*
|
|
5224
|
+
* Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)
|
|
5225
|
+
* at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
|
|
5226
|
+
*
|
|
5227
|
+
* When expanded, the dropdown will automatically display in fullscreen mode
|
|
5228
|
+
* if the screen size is equal to or smaller than the selected breakpoint.
|
|
5206
5229
|
* @default sm
|
|
5207
5230
|
*/
|
|
5208
5231
|
fullscreenBreakpoint: {
|
|
@@ -379,7 +379,7 @@ Applying the `noCheckmark` attribute will prevent the checkmark icon from being
|
|
|
379
379
|
|
|
380
380
|
## Example with custom bib height
|
|
381
381
|
|
|
382
|
-
This example shows how to set a custom height for the bib from `<auro-dropdown>`.
|
|
382
|
+
This example shows how to set a custom height for the bib from `<auro-dropdown>`.
|
|
383
383
|
|
|
384
384
|
Custom height dimensions are set by using the `dropdownSize` CSS Part and then applying a `max-height` rule and value.
|
|
385
385
|
|
|
@@ -434,6 +434,51 @@ Custom height dimensions are set by using the `dropdownSize` CSS Part and then a
|
|
|
434
434
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
435
435
|
</auro-accordion>
|
|
436
436
|
|
|
437
|
+
## Example with fullscreen dropdown breakpoint override
|
|
438
|
+
|
|
439
|
+
This example overrides the default dropdown behavior to force a non-fullscreen view on any screen size. `disabled`
|
|
440
|
+
ensures that the dropdown will never be fullscreen.
|
|
441
|
+
Please use `xl` if you want the opposite behavior, where a dropdown is always fullscreen.
|
|
442
|
+
|
|
443
|
+
<div class="exampleWrapper">
|
|
444
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/forcedFullscreenDisabled.html) -->
|
|
445
|
+
<!-- The below content is automatically added from ./../apiExamples/forcedFullscreenDisabled.html -->
|
|
446
|
+
<auro-select fullscreenBreakpoint="disabled">
|
|
447
|
+
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
448
|
+
<span slot="label">Select Example</span>
|
|
449
|
+
<auro-menu>
|
|
450
|
+
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
451
|
+
<auro-menuoption value="price">Price</auro-menuoption>
|
|
452
|
+
<auro-menuoption value="duration">Duration</auro-menuoption>
|
|
453
|
+
<auro-menuoption value="departure">Departure</auro-menuoption>
|
|
454
|
+
<auro-menuoption value="arrival">Arrival</auro-menuoption>
|
|
455
|
+
<auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
|
|
456
|
+
</auro-menu>
|
|
457
|
+
</auro-select>
|
|
458
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
459
|
+
</div>
|
|
460
|
+
<auro-accordion alignRight>
|
|
461
|
+
<span slot="trigger">See code</span>
|
|
462
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/forcedFullscreenDisabled.html) -->
|
|
463
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/forcedFullscreenDisabled.html -->
|
|
464
|
+
|
|
465
|
+
```html
|
|
466
|
+
<auro-select fullscreenBreakpoint="disabled">
|
|
467
|
+
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
468
|
+
<span slot="label">Select Example</span>
|
|
469
|
+
<auro-menu>
|
|
470
|
+
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
471
|
+
<auro-menuoption value="price">Price</auro-menuoption>
|
|
472
|
+
<auro-menuoption value="duration">Duration</auro-menuoption>
|
|
473
|
+
<auro-menuoption value="departure">Departure</auro-menuoption>
|
|
474
|
+
<auro-menuoption value="arrival">Arrival</auro-menuoption>
|
|
475
|
+
<auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
|
|
476
|
+
</auro-menu>
|
|
477
|
+
</auro-select>
|
|
478
|
+
```
|
|
479
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
480
|
+
</auro-accordion>
|
|
481
|
+
|
|
437
482
|
## Error State
|
|
438
483
|
|
|
439
484
|
Use the `error` boolean attribute to toggle the error UI.
|
|
@@ -3049,6 +3049,7 @@ var tokensCss$1$1 = i$5`:host{--ds-auro-dropdown-label-text-color: var(--ds-basi
|
|
|
3049
3049
|
|
|
3050
3050
|
const DESIGN_TOKEN_BREAKPOINT_PREFIX = '--ds-grid-breakpoint-';
|
|
3051
3051
|
const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
|
|
3052
|
+
'xl',
|
|
3052
3053
|
'lg',
|
|
3053
3054
|
'md',
|
|
3054
3055
|
'sm',
|
|
@@ -3120,6 +3121,7 @@ class AuroDropdownBib extends r {
|
|
|
3120
3121
|
|
|
3121
3122
|
set mobileFullscreenBreakpoint(value) {
|
|
3122
3123
|
// verify the defined breakpoint is valid and exit out if not
|
|
3124
|
+
// 'disabled' is a design token breakpoint so it acts as our "undefined" value
|
|
3123
3125
|
const validatedValue = DESIGN_TOKEN_BREAKPOINT_OPTIONS.includes(value) ? value : undefined;
|
|
3124
3126
|
if (!validatedValue) {
|
|
3125
3127
|
this._mobileBreakpointValue = undefined;
|
|
@@ -3632,7 +3634,12 @@ class AuroDropdown extends r {
|
|
|
3632
3634
|
},
|
|
3633
3635
|
|
|
3634
3636
|
/**
|
|
3635
|
-
* Defines the screen size breakpoint (`
|
|
3637
|
+
* Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)
|
|
3638
|
+
* at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
|
|
3639
|
+
*
|
|
3640
|
+
* When expanded, the dropdown will automatically display in fullscreen mode
|
|
3641
|
+
* if the screen size is equal to or smaller than the selected breakpoint.
|
|
3642
|
+
* @default sm
|
|
3636
3643
|
*/
|
|
3637
3644
|
fullscreenBreakpoint: {
|
|
3638
3645
|
type: String,
|
|
@@ -3755,6 +3762,15 @@ class AuroDropdown extends r {
|
|
|
3755
3762
|
AuroLibraryRuntimeUtils$1$1.prototype.registerComponent(name, AuroDropdown);
|
|
3756
3763
|
}
|
|
3757
3764
|
|
|
3765
|
+
/**
|
|
3766
|
+
* Accessor for reusing the focusable entity query string.
|
|
3767
|
+
* @private
|
|
3768
|
+
* @returns {string}
|
|
3769
|
+
*/
|
|
3770
|
+
get focusableEntityQuery () {
|
|
3771
|
+
return 'auro-input, [auro-input], auro-button, [auro-button], button, input';
|
|
3772
|
+
}
|
|
3773
|
+
|
|
3758
3774
|
connectedCallback() {
|
|
3759
3775
|
super.connectedCallback();
|
|
3760
3776
|
}
|
|
@@ -3768,6 +3784,8 @@ class AuroDropdown extends r {
|
|
|
3768
3784
|
updated(changedProperties) {
|
|
3769
3785
|
this.floater.handleUpdate(changedProperties);
|
|
3770
3786
|
|
|
3787
|
+
// Note: `disabled` is not a breakpoint (it is not a screen size),
|
|
3788
|
+
// so it looks like we never consume this - however, dropdownBib handles this in the setter as "undefined"
|
|
3771
3789
|
if (changedProperties.has('fullscreenBreakpoint')) {
|
|
3772
3790
|
this.bibContent.mobileFullscreenBreakpoint = this.fullscreenBreakpoint;
|
|
3773
3791
|
}
|
|
@@ -3903,7 +3921,7 @@ class AuroDropdown extends r {
|
|
|
3903
3921
|
|
|
3904
3922
|
this.triggerContentSlot.forEach((node) => {
|
|
3905
3923
|
if (node.querySelectorAll) {
|
|
3906
|
-
const auroElements = node.querySelectorAll(
|
|
3924
|
+
const auroElements = node.querySelectorAll(this.focusableEntityQuery);
|
|
3907
3925
|
auroElements.forEach((auroEl) => {
|
|
3908
3926
|
auroEl.addEventListener('focus', this.bindFocusEventToTrigger);
|
|
3909
3927
|
auroEl.addEventListener('blur', this.bindFocusEventToTrigger);
|
|
@@ -3924,7 +3942,7 @@ class AuroDropdown extends r {
|
|
|
3924
3942
|
|
|
3925
3943
|
this.triggerContentSlot.forEach((node) => {
|
|
3926
3944
|
if (node.querySelectorAll) {
|
|
3927
|
-
const auroElements = node.querySelectorAll(
|
|
3945
|
+
const auroElements = node.querySelectorAll(this.focusableEntityQuery);
|
|
3928
3946
|
auroElements.forEach((auroEl) => {
|
|
3929
3947
|
auroEl.removeEventListener('focus', this.bindFocusEventToTrigger);
|
|
3930
3948
|
auroEl.removeEventListener('blur', this.bindFocusEventToTrigger);
|
|
@@ -4761,6 +4779,8 @@ class AuroBibtemplate extends r {
|
|
|
4761
4779
|
constructor() {
|
|
4762
4780
|
super();
|
|
4763
4781
|
|
|
4782
|
+
this.large = false;
|
|
4783
|
+
|
|
4764
4784
|
AuroLibraryRuntimeUtils$1.prototype.handleComponentTagRename(this, 'auro-bibtemplate');
|
|
4765
4785
|
|
|
4766
4786
|
const versioning = new AuroDependencyVersioning();
|
|
@@ -5109,8 +5129,11 @@ class AuroSelect extends r {
|
|
|
5109
5129
|
},
|
|
5110
5130
|
|
|
5111
5131
|
/**
|
|
5112
|
-
* Defines the screen size breakpoint (`
|
|
5113
|
-
*
|
|
5132
|
+
* Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)
|
|
5133
|
+
* at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
|
|
5134
|
+
*
|
|
5135
|
+
* When expanded, the dropdown will automatically display in fullscreen mode
|
|
5136
|
+
* if the screen size is equal to or smaller than the selected breakpoint.
|
|
5114
5137
|
* @default sm
|
|
5115
5138
|
*/
|
|
5116
5139
|
fullscreenBreakpoint: {
|
|
@@ -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" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@
|
|
114
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@3.0.1/auro-select/+esm"></script>
|
|
115
115
|
```
|
|
116
116
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
117
117
|
|
|
@@ -36,8 +36,11 @@ export class AuroSelect extends LitElement {
|
|
|
36
36
|
reflect: boolean;
|
|
37
37
|
};
|
|
38
38
|
/**
|
|
39
|
-
* Defines the screen size breakpoint (`
|
|
40
|
-
*
|
|
39
|
+
* Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)
|
|
40
|
+
* at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
|
|
41
|
+
*
|
|
42
|
+
* When expanded, the dropdown will automatically display in fullscreen mode
|
|
43
|
+
* if the screen size is equal to or smaller than the selected breakpoint.
|
|
41
44
|
* @default sm
|
|
42
45
|
*/
|
|
43
46
|
fullscreenBreakpoint: {
|