@aurodesignsystem/auro-formkit 3.2.0-beta.1 → 3.2.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 +5 -3
- 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 +1 -1
- package/components/combobox/demo/api.min.js +10 -26
- package/components/combobox/demo/index.min.js +10 -26
- package/components/combobox/demo/readme.md +1 -1
- package/components/combobox/dist/auro-combobox.d.ts +2 -5
- package/components/combobox/dist/index.js +9 -26
- package/components/combobox/dist/registered.js +9 -26
- package/components/counter/README.md +1 -1
- package/components/counter/demo/api.md +1 -1
- package/components/counter/demo/api.min.js +5 -26
- package/components/counter/demo/index.min.js +5 -26
- package/components/counter/demo/readme.md +1 -1
- package/components/counter/dist/auro-counter-group.d.ts +2 -5
- package/components/counter/dist/index.js +5 -26
- package/components/counter/dist/registered.js +5 -26
- package/components/datepicker/README.md +1 -1
- package/components/datepicker/demo/api.md +0 -1
- package/components/datepicker/demo/api.min.js +4 -36
- package/components/datepicker/demo/index.min.js +4 -36
- package/components/datepicker/demo/readme.md +1 -1
- package/components/datepicker/dist/auro-datepicker.d.ts +0 -13
- package/components/datepicker/dist/index.js +4 -36
- package/components/datepicker/dist/registered.js +4 -36
- package/components/dropdown/README.md +1 -1
- package/components/dropdown/demo/api.md +1 -1
- package/components/dropdown/demo/api.min.js +3 -21
- package/components/dropdown/demo/index.md +0 -83
- package/components/dropdown/demo/index.min.js +3 -21
- package/components/dropdown/demo/readme.md +1 -1
- package/components/dropdown/dist/auro-dropdown.d.ts +1 -12
- package/components/dropdown/dist/index.js +3 -21
- package/components/dropdown/dist/registered.js +3 -21
- 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/api.min.js +1 -0
- package/components/menu/demo/index.min.js +1 -0
- package/components/menu/demo/readme.md +1 -1
- package/components/menu/dist/index.js +1 -0
- package/components/menu/dist/registered.js +1 -0
- 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 +6 -5
- package/components/select/demo/api.min.js +56 -26
- package/components/select/demo/index.md +1 -46
- package/components/select/demo/index.min.js +56 -26
- package/components/select/demo/readme.md +1 -1
- package/components/select/dist/auro-select.d.ts +5 -5
- package/components/select/dist/index.js +55 -26
- package/components/select/dist/registered.js +55 -26
- package/package.json +1 -1
- package/components/form/demo/autocomplete.html +0 -15
|
@@ -4660,7 +4660,6 @@ var tokensCss$1 = i$5`:host{--ds-auro-dropdown-label-text-color: var(--ds-basic-
|
|
|
4660
4660
|
|
|
4661
4661
|
const DESIGN_TOKEN_BREAKPOINT_PREFIX = '--ds-grid-breakpoint-';
|
|
4662
4662
|
const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
|
|
4663
|
-
'xl',
|
|
4664
4663
|
'lg',
|
|
4665
4664
|
'md',
|
|
4666
4665
|
'sm',
|
|
@@ -4732,7 +4731,6 @@ class AuroDropdownBib extends r {
|
|
|
4732
4731
|
|
|
4733
4732
|
set mobileFullscreenBreakpoint(value) {
|
|
4734
4733
|
// verify the defined breakpoint is valid and exit out if not
|
|
4735
|
-
// 'disabled' is a design token breakpoint so it acts as our "undefined" value
|
|
4736
4734
|
const validatedValue = DESIGN_TOKEN_BREAKPOINT_OPTIONS.includes(value) ? value : undefined;
|
|
4737
4735
|
if (!validatedValue) {
|
|
4738
4736
|
this._mobileBreakpointValue = undefined;
|
|
@@ -5258,12 +5256,7 @@ class AuroDropdown extends r {
|
|
|
5258
5256
|
},
|
|
5259
5257
|
|
|
5260
5258
|
/**
|
|
5261
|
-
* Defines the screen size breakpoint (`
|
|
5262
|
-
* at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
|
|
5263
|
-
*
|
|
5264
|
-
* When expanded, the dropdown will automatically display in fullscreen mode
|
|
5265
|
-
* if the screen size is equal to or smaller than the selected breakpoint.
|
|
5266
|
-
* @default sm
|
|
5259
|
+
* 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.
|
|
5267
5260
|
*/
|
|
5268
5261
|
fullscreenBreakpoint: {
|
|
5269
5262
|
type: String,
|
|
@@ -5403,15 +5396,6 @@ class AuroDropdown extends r {
|
|
|
5403
5396
|
AuroLibraryRuntimeUtils$1$1.prototype.registerComponent(name, AuroDropdown);
|
|
5404
5397
|
}
|
|
5405
5398
|
|
|
5406
|
-
/**
|
|
5407
|
-
* Accessor for reusing the focusable entity query string.
|
|
5408
|
-
* @private
|
|
5409
|
-
* @returns {string}
|
|
5410
|
-
*/
|
|
5411
|
-
get focusableEntityQuery () {
|
|
5412
|
-
return 'auro-input, [auro-input], auro-button, [auro-button], button, input';
|
|
5413
|
-
}
|
|
5414
|
-
|
|
5415
5399
|
connectedCallback() {
|
|
5416
5400
|
super.connectedCallback();
|
|
5417
5401
|
}
|
|
@@ -5425,8 +5409,6 @@ class AuroDropdown extends r {
|
|
|
5425
5409
|
updated(changedProperties) {
|
|
5426
5410
|
this.floater.handleUpdate(changedProperties);
|
|
5427
5411
|
|
|
5428
|
-
// Note: `disabled` is not a breakpoint (it is not a screen size),
|
|
5429
|
-
// so it looks like we never consume this - however, dropdownBib handles this in the setter as "undefined"
|
|
5430
5412
|
if (changedProperties.has('fullscreenBreakpoint')) {
|
|
5431
5413
|
this.bibContent.mobileFullscreenBreakpoint = this.fullscreenBreakpoint;
|
|
5432
5414
|
}
|
|
@@ -5577,7 +5559,7 @@ class AuroDropdown extends r {
|
|
|
5577
5559
|
|
|
5578
5560
|
this.triggerContentSlot.forEach((node) => {
|
|
5579
5561
|
if (node.querySelectorAll) {
|
|
5580
|
-
const auroElements = node.querySelectorAll(
|
|
5562
|
+
const auroElements = node.querySelectorAll('auro-input, [auro-input], auro-button, [auro-button], button, input');
|
|
5581
5563
|
auroElements.forEach((auroEl) => {
|
|
5582
5564
|
auroEl.addEventListener('focus', this.bindFocusEventToTrigger);
|
|
5583
5565
|
auroEl.addEventListener('blur', this.bindFocusEventToTrigger);
|
|
@@ -5598,7 +5580,7 @@ class AuroDropdown extends r {
|
|
|
5598
5580
|
|
|
5599
5581
|
this.triggerContentSlot.forEach((node) => {
|
|
5600
5582
|
if (node.querySelectorAll) {
|
|
5601
|
-
const auroElements = node.querySelectorAll(
|
|
5583
|
+
const auroElements = node.querySelectorAll('auro-input, [auro-input], auro-button, [auro-button], button, input');
|
|
5602
5584
|
auroElements.forEach((auroEl) => {
|
|
5603
5585
|
auroEl.removeEventListener('focus', this.bindFocusEventToTrigger);
|
|
5604
5586
|
auroEl.removeEventListener('blur', this.bindFocusEventToTrigger);
|
|
@@ -6728,11 +6710,8 @@ class AuroCounterGroup extends r {
|
|
|
6728
6710
|
},
|
|
6729
6711
|
|
|
6730
6712
|
/**
|
|
6731
|
-
* Defines the screen size breakpoint (`
|
|
6732
|
-
*
|
|
6733
|
-
*
|
|
6734
|
-
* When expanded, the dropdown will automatically display in fullscreen mode
|
|
6735
|
-
* if the screen size is equal to or smaller than the selected breakpoint.
|
|
6713
|
+
* Defines the screen size breakpoint (`lg`, `md`, `sm`, or `xs`) at which the dropdown switches to fullscreen mode on mobile.
|
|
6714
|
+
* When expanded, the dropdown will automatically display in fullscreen mode if the screen size is equal to or smaller than the selected breakpoint.
|
|
6736
6715
|
* @default sm
|
|
6737
6716
|
*/
|
|
6738
6717
|
fullscreenBreakpoint: {
|
|
@@ -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@3.
|
|
113
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@3.2.0/auro-counter/+esm"></script>
|
|
114
114
|
```
|
|
115
115
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
116
116
|
|
|
@@ -25,11 +25,8 @@ export class AuroCounterGroup extends LitElement {
|
|
|
25
25
|
reflect: boolean;
|
|
26
26
|
};
|
|
27
27
|
/**
|
|
28
|
-
* Defines the screen size breakpoint (`
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
* When expanded, the dropdown will automatically display in fullscreen mode
|
|
32
|
-
* if the screen size is equal to or smaller than the selected breakpoint.
|
|
28
|
+
* Defines the screen size breakpoint (`lg`, `md`, `sm`, or `xs`) at which the dropdown switches to fullscreen mode on mobile.
|
|
29
|
+
* When expanded, the dropdown will automatically display in fullscreen mode if the screen size is equal to or smaller than the selected breakpoint.
|
|
33
30
|
* @default sm
|
|
34
31
|
*/
|
|
35
32
|
fullscreenBreakpoint: {
|
|
@@ -4613,7 +4613,6 @@ var tokensCss$1 = css`:host{--ds-auro-dropdown-label-text-color: var(--ds-basic-
|
|
|
4613
4613
|
|
|
4614
4614
|
const DESIGN_TOKEN_BREAKPOINT_PREFIX = '--ds-grid-breakpoint-';
|
|
4615
4615
|
const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
|
|
4616
|
-
'xl',
|
|
4617
4616
|
'lg',
|
|
4618
4617
|
'md',
|
|
4619
4618
|
'sm',
|
|
@@ -4685,7 +4684,6 @@ class AuroDropdownBib extends LitElement {
|
|
|
4685
4684
|
|
|
4686
4685
|
set mobileFullscreenBreakpoint(value) {
|
|
4687
4686
|
// verify the defined breakpoint is valid and exit out if not
|
|
4688
|
-
// 'disabled' is a design token breakpoint so it acts as our "undefined" value
|
|
4689
4687
|
const validatedValue = DESIGN_TOKEN_BREAKPOINT_OPTIONS.includes(value) ? value : undefined;
|
|
4690
4688
|
if (!validatedValue) {
|
|
4691
4689
|
this._mobileBreakpointValue = undefined;
|
|
@@ -5211,12 +5209,7 @@ class AuroDropdown extends LitElement {
|
|
|
5211
5209
|
},
|
|
5212
5210
|
|
|
5213
5211
|
/**
|
|
5214
|
-
* Defines the screen size breakpoint (`
|
|
5215
|
-
* at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
|
|
5216
|
-
*
|
|
5217
|
-
* When expanded, the dropdown will automatically display in fullscreen mode
|
|
5218
|
-
* if the screen size is equal to or smaller than the selected breakpoint.
|
|
5219
|
-
* @default sm
|
|
5212
|
+
* 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.
|
|
5220
5213
|
*/
|
|
5221
5214
|
fullscreenBreakpoint: {
|
|
5222
5215
|
type: String,
|
|
@@ -5356,15 +5349,6 @@ class AuroDropdown extends LitElement {
|
|
|
5356
5349
|
AuroLibraryRuntimeUtils$1$1.prototype.registerComponent(name, AuroDropdown);
|
|
5357
5350
|
}
|
|
5358
5351
|
|
|
5359
|
-
/**
|
|
5360
|
-
* Accessor for reusing the focusable entity query string.
|
|
5361
|
-
* @private
|
|
5362
|
-
* @returns {string}
|
|
5363
|
-
*/
|
|
5364
|
-
get focusableEntityQuery () {
|
|
5365
|
-
return 'auro-input, [auro-input], auro-button, [auro-button], button, input';
|
|
5366
|
-
}
|
|
5367
|
-
|
|
5368
5352
|
connectedCallback() {
|
|
5369
5353
|
super.connectedCallback();
|
|
5370
5354
|
}
|
|
@@ -5378,8 +5362,6 @@ class AuroDropdown extends LitElement {
|
|
|
5378
5362
|
updated(changedProperties) {
|
|
5379
5363
|
this.floater.handleUpdate(changedProperties);
|
|
5380
5364
|
|
|
5381
|
-
// Note: `disabled` is not a breakpoint (it is not a screen size),
|
|
5382
|
-
// so it looks like we never consume this - however, dropdownBib handles this in the setter as "undefined"
|
|
5383
5365
|
if (changedProperties.has('fullscreenBreakpoint')) {
|
|
5384
5366
|
this.bibContent.mobileFullscreenBreakpoint = this.fullscreenBreakpoint;
|
|
5385
5367
|
}
|
|
@@ -5530,7 +5512,7 @@ class AuroDropdown extends LitElement {
|
|
|
5530
5512
|
|
|
5531
5513
|
this.triggerContentSlot.forEach((node) => {
|
|
5532
5514
|
if (node.querySelectorAll) {
|
|
5533
|
-
const auroElements = node.querySelectorAll(
|
|
5515
|
+
const auroElements = node.querySelectorAll('auro-input, [auro-input], auro-button, [auro-button], button, input');
|
|
5534
5516
|
auroElements.forEach((auroEl) => {
|
|
5535
5517
|
auroEl.addEventListener('focus', this.bindFocusEventToTrigger);
|
|
5536
5518
|
auroEl.addEventListener('blur', this.bindFocusEventToTrigger);
|
|
@@ -5551,7 +5533,7 @@ class AuroDropdown extends LitElement {
|
|
|
5551
5533
|
|
|
5552
5534
|
this.triggerContentSlot.forEach((node) => {
|
|
5553
5535
|
if (node.querySelectorAll) {
|
|
5554
|
-
const auroElements = node.querySelectorAll(
|
|
5536
|
+
const auroElements = node.querySelectorAll('auro-input, [auro-input], auro-button, [auro-button], button, input');
|
|
5555
5537
|
auroElements.forEach((auroEl) => {
|
|
5556
5538
|
auroEl.removeEventListener('focus', this.bindFocusEventToTrigger);
|
|
5557
5539
|
auroEl.removeEventListener('blur', this.bindFocusEventToTrigger);
|
|
@@ -6681,11 +6663,8 @@ class AuroCounterGroup extends LitElement {
|
|
|
6681
6663
|
},
|
|
6682
6664
|
|
|
6683
6665
|
/**
|
|
6684
|
-
* Defines the screen size breakpoint (`
|
|
6685
|
-
*
|
|
6686
|
-
*
|
|
6687
|
-
* When expanded, the dropdown will automatically display in fullscreen mode
|
|
6688
|
-
* if the screen size is equal to or smaller than the selected breakpoint.
|
|
6666
|
+
* Defines the screen size breakpoint (`lg`, `md`, `sm`, or `xs`) at which the dropdown switches to fullscreen mode on mobile.
|
|
6667
|
+
* When expanded, the dropdown will automatically display in fullscreen mode if the screen size is equal to or smaller than the selected breakpoint.
|
|
6689
6668
|
* @default sm
|
|
6690
6669
|
*/
|
|
6691
6670
|
fullscreenBreakpoint: {
|
|
@@ -4613,7 +4613,6 @@ var tokensCss$1 = css`:host{--ds-auro-dropdown-label-text-color: var(--ds-basic-
|
|
|
4613
4613
|
|
|
4614
4614
|
const DESIGN_TOKEN_BREAKPOINT_PREFIX = '--ds-grid-breakpoint-';
|
|
4615
4615
|
const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
|
|
4616
|
-
'xl',
|
|
4617
4616
|
'lg',
|
|
4618
4617
|
'md',
|
|
4619
4618
|
'sm',
|
|
@@ -4685,7 +4684,6 @@ class AuroDropdownBib extends LitElement {
|
|
|
4685
4684
|
|
|
4686
4685
|
set mobileFullscreenBreakpoint(value) {
|
|
4687
4686
|
// verify the defined breakpoint is valid and exit out if not
|
|
4688
|
-
// 'disabled' is a design token breakpoint so it acts as our "undefined" value
|
|
4689
4687
|
const validatedValue = DESIGN_TOKEN_BREAKPOINT_OPTIONS.includes(value) ? value : undefined;
|
|
4690
4688
|
if (!validatedValue) {
|
|
4691
4689
|
this._mobileBreakpointValue = undefined;
|
|
@@ -5211,12 +5209,7 @@ class AuroDropdown extends LitElement {
|
|
|
5211
5209
|
},
|
|
5212
5210
|
|
|
5213
5211
|
/**
|
|
5214
|
-
* Defines the screen size breakpoint (`
|
|
5215
|
-
* at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
|
|
5216
|
-
*
|
|
5217
|
-
* When expanded, the dropdown will automatically display in fullscreen mode
|
|
5218
|
-
* if the screen size is equal to or smaller than the selected breakpoint.
|
|
5219
|
-
* @default sm
|
|
5212
|
+
* 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.
|
|
5220
5213
|
*/
|
|
5221
5214
|
fullscreenBreakpoint: {
|
|
5222
5215
|
type: String,
|
|
@@ -5356,15 +5349,6 @@ class AuroDropdown extends LitElement {
|
|
|
5356
5349
|
AuroLibraryRuntimeUtils$1$1.prototype.registerComponent(name, AuroDropdown);
|
|
5357
5350
|
}
|
|
5358
5351
|
|
|
5359
|
-
/**
|
|
5360
|
-
* Accessor for reusing the focusable entity query string.
|
|
5361
|
-
* @private
|
|
5362
|
-
* @returns {string}
|
|
5363
|
-
*/
|
|
5364
|
-
get focusableEntityQuery () {
|
|
5365
|
-
return 'auro-input, [auro-input], auro-button, [auro-button], button, input';
|
|
5366
|
-
}
|
|
5367
|
-
|
|
5368
5352
|
connectedCallback() {
|
|
5369
5353
|
super.connectedCallback();
|
|
5370
5354
|
}
|
|
@@ -5378,8 +5362,6 @@ class AuroDropdown extends LitElement {
|
|
|
5378
5362
|
updated(changedProperties) {
|
|
5379
5363
|
this.floater.handleUpdate(changedProperties);
|
|
5380
5364
|
|
|
5381
|
-
// Note: `disabled` is not a breakpoint (it is not a screen size),
|
|
5382
|
-
// so it looks like we never consume this - however, dropdownBib handles this in the setter as "undefined"
|
|
5383
5365
|
if (changedProperties.has('fullscreenBreakpoint')) {
|
|
5384
5366
|
this.bibContent.mobileFullscreenBreakpoint = this.fullscreenBreakpoint;
|
|
5385
5367
|
}
|
|
@@ -5530,7 +5512,7 @@ class AuroDropdown extends LitElement {
|
|
|
5530
5512
|
|
|
5531
5513
|
this.triggerContentSlot.forEach((node) => {
|
|
5532
5514
|
if (node.querySelectorAll) {
|
|
5533
|
-
const auroElements = node.querySelectorAll(
|
|
5515
|
+
const auroElements = node.querySelectorAll('auro-input, [auro-input], auro-button, [auro-button], button, input');
|
|
5534
5516
|
auroElements.forEach((auroEl) => {
|
|
5535
5517
|
auroEl.addEventListener('focus', this.bindFocusEventToTrigger);
|
|
5536
5518
|
auroEl.addEventListener('blur', this.bindFocusEventToTrigger);
|
|
@@ -5551,7 +5533,7 @@ class AuroDropdown extends LitElement {
|
|
|
5551
5533
|
|
|
5552
5534
|
this.triggerContentSlot.forEach((node) => {
|
|
5553
5535
|
if (node.querySelectorAll) {
|
|
5554
|
-
const auroElements = node.querySelectorAll(
|
|
5536
|
+
const auroElements = node.querySelectorAll('auro-input, [auro-input], auro-button, [auro-button], button, input');
|
|
5555
5537
|
auroElements.forEach((auroEl) => {
|
|
5556
5538
|
auroEl.removeEventListener('focus', this.bindFocusEventToTrigger);
|
|
5557
5539
|
auroEl.removeEventListener('blur', this.bindFocusEventToTrigger);
|
|
@@ -6681,11 +6663,8 @@ class AuroCounterGroup extends LitElement {
|
|
|
6681
6663
|
},
|
|
6682
6664
|
|
|
6683
6665
|
/**
|
|
6684
|
-
* Defines the screen size breakpoint (`
|
|
6685
|
-
*
|
|
6686
|
-
*
|
|
6687
|
-
* When expanded, the dropdown will automatically display in fullscreen mode
|
|
6688
|
-
* if the screen size is equal to or smaller than the selected breakpoint.
|
|
6666
|
+
* Defines the screen size breakpoint (`lg`, `md`, `sm`, or `xs`) at which the dropdown switches to fullscreen mode on mobile.
|
|
6667
|
+
* When expanded, the dropdown will automatically display in fullscreen mode if the screen size is equal to or smaller than the selected breakpoint.
|
|
6689
6668
|
* @default sm
|
|
6690
6669
|
*/
|
|
6691
6670
|
fullscreenBreakpoint: {
|
|
@@ -104,7 +104,7 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
|
|
|
104
104
|
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.
|
|
105
105
|
|
|
106
106
|
```html
|
|
107
|
-
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@3.
|
|
107
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@3.2.0/auro-datepicker/+esm"></script>
|
|
108
108
|
```
|
|
109
109
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
110
110
|
|
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
| [disabled](#disabled) | `disabled` | | `boolean` | false | If set, disables the datepicker. |
|
|
16
16
|
| [error](#error) | `error` | | `string` | | When defined, sets persistent validity to `customError` and sets the validation message to the attribute value. |
|
|
17
17
|
| [format](#format) | `format` | | `string` | "mm/dd/yyyy" | Specifies the date format. The default is `mm/dd/yyyy`. |
|
|
18
|
-
| [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. |
|
|
19
18
|
| [largeFullscreenHeadline](#largeFullscreenHeadline) | `largeFullscreenHeadline` | | `boolean` | false | If declared, make bib.fullscreen.headline in HeadingDisplay.<br />Otherwise, Heading 600. |
|
|
20
19
|
| [maxDate](#maxDate) | `maxDate` | | `string` | | Maximum date. All dates after will be disabled. |
|
|
21
20
|
| [minDate](#minDate) | `minDate` | | `string` | | Minimum date. All dates before will be disabled. |
|
|
@@ -15197,7 +15197,6 @@ var tokensCss$1$1 = i$5`:host{--ds-auro-dropdown-label-text-color: var(--ds-basi
|
|
|
15197
15197
|
|
|
15198
15198
|
const DESIGN_TOKEN_BREAKPOINT_PREFIX = '--ds-grid-breakpoint-';
|
|
15199
15199
|
const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
|
|
15200
|
-
'xl',
|
|
15201
15200
|
'lg',
|
|
15202
15201
|
'md',
|
|
15203
15202
|
'sm',
|
|
@@ -15269,7 +15268,6 @@ class AuroDropdownBib extends r$2 {
|
|
|
15269
15268
|
|
|
15270
15269
|
set mobileFullscreenBreakpoint(value) {
|
|
15271
15270
|
// verify the defined breakpoint is valid and exit out if not
|
|
15272
|
-
// 'disabled' is a design token breakpoint so it acts as our "undefined" value
|
|
15273
15271
|
const validatedValue = DESIGN_TOKEN_BREAKPOINT_OPTIONS.includes(value) ? value : undefined;
|
|
15274
15272
|
if (!validatedValue) {
|
|
15275
15273
|
this._mobileBreakpointValue = undefined;
|
|
@@ -15795,12 +15793,7 @@ class AuroDropdown extends r$2 {
|
|
|
15795
15793
|
},
|
|
15796
15794
|
|
|
15797
15795
|
/**
|
|
15798
|
-
* Defines the screen size breakpoint (`
|
|
15799
|
-
* at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
|
|
15800
|
-
*
|
|
15801
|
-
* When expanded, the dropdown will automatically display in fullscreen mode
|
|
15802
|
-
* if the screen size is equal to or smaller than the selected breakpoint.
|
|
15803
|
-
* @default sm
|
|
15796
|
+
* 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.
|
|
15804
15797
|
*/
|
|
15805
15798
|
fullscreenBreakpoint: {
|
|
15806
15799
|
type: String,
|
|
@@ -15940,15 +15933,6 @@ class AuroDropdown extends r$2 {
|
|
|
15940
15933
|
AuroLibraryRuntimeUtils$1$1.prototype.registerComponent(name, AuroDropdown);
|
|
15941
15934
|
}
|
|
15942
15935
|
|
|
15943
|
-
/**
|
|
15944
|
-
* Accessor for reusing the focusable entity query string.
|
|
15945
|
-
* @private
|
|
15946
|
-
* @returns {string}
|
|
15947
|
-
*/
|
|
15948
|
-
get focusableEntityQuery () {
|
|
15949
|
-
return 'auro-input, [auro-input], auro-button, [auro-button], button, input';
|
|
15950
|
-
}
|
|
15951
|
-
|
|
15952
15936
|
connectedCallback() {
|
|
15953
15937
|
super.connectedCallback();
|
|
15954
15938
|
}
|
|
@@ -15962,8 +15946,6 @@ class AuroDropdown extends r$2 {
|
|
|
15962
15946
|
updated(changedProperties) {
|
|
15963
15947
|
this.floater.handleUpdate(changedProperties);
|
|
15964
15948
|
|
|
15965
|
-
// Note: `disabled` is not a breakpoint (it is not a screen size),
|
|
15966
|
-
// so it looks like we never consume this - however, dropdownBib handles this in the setter as "undefined"
|
|
15967
15949
|
if (changedProperties.has('fullscreenBreakpoint')) {
|
|
15968
15950
|
this.bibContent.mobileFullscreenBreakpoint = this.fullscreenBreakpoint;
|
|
15969
15951
|
}
|
|
@@ -16114,7 +16096,7 @@ class AuroDropdown extends r$2 {
|
|
|
16114
16096
|
|
|
16115
16097
|
this.triggerContentSlot.forEach((node) => {
|
|
16116
16098
|
if (node.querySelectorAll) {
|
|
16117
|
-
const auroElements = node.querySelectorAll(
|
|
16099
|
+
const auroElements = node.querySelectorAll('auro-input, [auro-input], auro-button, [auro-button], button, input');
|
|
16118
16100
|
auroElements.forEach((auroEl) => {
|
|
16119
16101
|
auroEl.addEventListener('focus', this.bindFocusEventToTrigger);
|
|
16120
16102
|
auroEl.addEventListener('blur', this.bindFocusEventToTrigger);
|
|
@@ -16135,7 +16117,7 @@ class AuroDropdown extends r$2 {
|
|
|
16135
16117
|
|
|
16136
16118
|
this.triggerContentSlot.forEach((node) => {
|
|
16137
16119
|
if (node.querySelectorAll) {
|
|
16138
|
-
const auroElements = node.querySelectorAll(
|
|
16120
|
+
const auroElements = node.querySelectorAll('auro-input, [auro-input], auro-button, [auro-button], button, input');
|
|
16139
16121
|
auroElements.forEach((auroEl) => {
|
|
16140
16122
|
auroEl.removeEventListener('focus', this.bindFocusEventToTrigger);
|
|
16141
16123
|
auroEl.removeEventListener('blur', this.bindFocusEventToTrigger);
|
|
@@ -23442,7 +23424,6 @@ class AuroDatePicker extends r$2 {
|
|
|
23442
23424
|
this.calendarEndDate = undefined;
|
|
23443
23425
|
this.calendarFocusDate = this.value;
|
|
23444
23426
|
this.format = 'mm/dd/yyyy';
|
|
23445
|
-
this.fullscreenBreakpoint = 'sm';
|
|
23446
23427
|
this.monthNames = [
|
|
23447
23428
|
'January',
|
|
23448
23429
|
'February',
|
|
@@ -23580,19 +23561,6 @@ class AuroDatePicker extends r$2 {
|
|
|
23580
23561
|
reflect: true
|
|
23581
23562
|
},
|
|
23582
23563
|
|
|
23583
|
-
/**
|
|
23584
|
-
* Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)
|
|
23585
|
-
* at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
|
|
23586
|
-
*
|
|
23587
|
-
* When expanded, the dropdown will automatically display in fullscreen mode
|
|
23588
|
-
* if the screen size is equal to or smaller than the selected breakpoint.
|
|
23589
|
-
* @default sm
|
|
23590
|
-
*/
|
|
23591
|
-
fullscreenBreakpoint: {
|
|
23592
|
-
type: String,
|
|
23593
|
-
reflect: true
|
|
23594
|
-
},
|
|
23595
|
-
|
|
23596
23564
|
/**
|
|
23597
23565
|
* If declared, make bib.fullscreen.headline in HeadingDisplay.
|
|
23598
23566
|
* Otherwise, Heading 600.
|
|
@@ -24419,7 +24387,7 @@ class AuroDatePicker extends r$2 {
|
|
|
24419
24387
|
?disabled="${this.disabled}"
|
|
24420
24388
|
?error="${this.validity !== undefined && this.validity !== 'valid'}"
|
|
24421
24389
|
disableEventShow
|
|
24422
|
-
|
|
24390
|
+
fullscreenBreakpoint="sm"
|
|
24423
24391
|
.placement="${this.placement}"
|
|
24424
24392
|
.offset="${this.offset}"
|
|
24425
24393
|
?autoPlacement="${this.autoPlacement}"
|
|
@@ -14938,7 +14938,6 @@ var tokensCss$1$1 = i$5`:host{--ds-auro-dropdown-label-text-color: var(--ds-basi
|
|
|
14938
14938
|
|
|
14939
14939
|
const DESIGN_TOKEN_BREAKPOINT_PREFIX = '--ds-grid-breakpoint-';
|
|
14940
14940
|
const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
|
|
14941
|
-
'xl',
|
|
14942
14941
|
'lg',
|
|
14943
14942
|
'md',
|
|
14944
14943
|
'sm',
|
|
@@ -15010,7 +15009,6 @@ class AuroDropdownBib extends r$2 {
|
|
|
15010
15009
|
|
|
15011
15010
|
set mobileFullscreenBreakpoint(value) {
|
|
15012
15011
|
// verify the defined breakpoint is valid and exit out if not
|
|
15013
|
-
// 'disabled' is a design token breakpoint so it acts as our "undefined" value
|
|
15014
15012
|
const validatedValue = DESIGN_TOKEN_BREAKPOINT_OPTIONS.includes(value) ? value : undefined;
|
|
15015
15013
|
if (!validatedValue) {
|
|
15016
15014
|
this._mobileBreakpointValue = undefined;
|
|
@@ -15536,12 +15534,7 @@ class AuroDropdown extends r$2 {
|
|
|
15536
15534
|
},
|
|
15537
15535
|
|
|
15538
15536
|
/**
|
|
15539
|
-
* Defines the screen size breakpoint (`
|
|
15540
|
-
* at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
|
|
15541
|
-
*
|
|
15542
|
-
* When expanded, the dropdown will automatically display in fullscreen mode
|
|
15543
|
-
* if the screen size is equal to or smaller than the selected breakpoint.
|
|
15544
|
-
* @default sm
|
|
15537
|
+
* 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.
|
|
15545
15538
|
*/
|
|
15546
15539
|
fullscreenBreakpoint: {
|
|
15547
15540
|
type: String,
|
|
@@ -15681,15 +15674,6 @@ class AuroDropdown extends r$2 {
|
|
|
15681
15674
|
AuroLibraryRuntimeUtils$1$1.prototype.registerComponent(name, AuroDropdown);
|
|
15682
15675
|
}
|
|
15683
15676
|
|
|
15684
|
-
/**
|
|
15685
|
-
* Accessor for reusing the focusable entity query string.
|
|
15686
|
-
* @private
|
|
15687
|
-
* @returns {string}
|
|
15688
|
-
*/
|
|
15689
|
-
get focusableEntityQuery () {
|
|
15690
|
-
return 'auro-input, [auro-input], auro-button, [auro-button], button, input';
|
|
15691
|
-
}
|
|
15692
|
-
|
|
15693
15677
|
connectedCallback() {
|
|
15694
15678
|
super.connectedCallback();
|
|
15695
15679
|
}
|
|
@@ -15703,8 +15687,6 @@ class AuroDropdown extends r$2 {
|
|
|
15703
15687
|
updated(changedProperties) {
|
|
15704
15688
|
this.floater.handleUpdate(changedProperties);
|
|
15705
15689
|
|
|
15706
|
-
// Note: `disabled` is not a breakpoint (it is not a screen size),
|
|
15707
|
-
// so it looks like we never consume this - however, dropdownBib handles this in the setter as "undefined"
|
|
15708
15690
|
if (changedProperties.has('fullscreenBreakpoint')) {
|
|
15709
15691
|
this.bibContent.mobileFullscreenBreakpoint = this.fullscreenBreakpoint;
|
|
15710
15692
|
}
|
|
@@ -15855,7 +15837,7 @@ class AuroDropdown extends r$2 {
|
|
|
15855
15837
|
|
|
15856
15838
|
this.triggerContentSlot.forEach((node) => {
|
|
15857
15839
|
if (node.querySelectorAll) {
|
|
15858
|
-
const auroElements = node.querySelectorAll(
|
|
15840
|
+
const auroElements = node.querySelectorAll('auro-input, [auro-input], auro-button, [auro-button], button, input');
|
|
15859
15841
|
auroElements.forEach((auroEl) => {
|
|
15860
15842
|
auroEl.addEventListener('focus', this.bindFocusEventToTrigger);
|
|
15861
15843
|
auroEl.addEventListener('blur', this.bindFocusEventToTrigger);
|
|
@@ -15876,7 +15858,7 @@ class AuroDropdown extends r$2 {
|
|
|
15876
15858
|
|
|
15877
15859
|
this.triggerContentSlot.forEach((node) => {
|
|
15878
15860
|
if (node.querySelectorAll) {
|
|
15879
|
-
const auroElements = node.querySelectorAll(
|
|
15861
|
+
const auroElements = node.querySelectorAll('auro-input, [auro-input], auro-button, [auro-button], button, input');
|
|
15880
15862
|
auroElements.forEach((auroEl) => {
|
|
15881
15863
|
auroEl.removeEventListener('focus', this.bindFocusEventToTrigger);
|
|
15882
15864
|
auroEl.removeEventListener('blur', this.bindFocusEventToTrigger);
|
|
@@ -23183,7 +23165,6 @@ class AuroDatePicker extends r$2 {
|
|
|
23183
23165
|
this.calendarEndDate = undefined;
|
|
23184
23166
|
this.calendarFocusDate = this.value;
|
|
23185
23167
|
this.format = 'mm/dd/yyyy';
|
|
23186
|
-
this.fullscreenBreakpoint = 'sm';
|
|
23187
23168
|
this.monthNames = [
|
|
23188
23169
|
'January',
|
|
23189
23170
|
'February',
|
|
@@ -23321,19 +23302,6 @@ class AuroDatePicker extends r$2 {
|
|
|
23321
23302
|
reflect: true
|
|
23322
23303
|
},
|
|
23323
23304
|
|
|
23324
|
-
/**
|
|
23325
|
-
* Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)
|
|
23326
|
-
* at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
|
|
23327
|
-
*
|
|
23328
|
-
* When expanded, the dropdown will automatically display in fullscreen mode
|
|
23329
|
-
* if the screen size is equal to or smaller than the selected breakpoint.
|
|
23330
|
-
* @default sm
|
|
23331
|
-
*/
|
|
23332
|
-
fullscreenBreakpoint: {
|
|
23333
|
-
type: String,
|
|
23334
|
-
reflect: true
|
|
23335
|
-
},
|
|
23336
|
-
|
|
23337
23305
|
/**
|
|
23338
23306
|
* If declared, make bib.fullscreen.headline in HeadingDisplay.
|
|
23339
23307
|
* Otherwise, Heading 600.
|
|
@@ -24160,7 +24128,7 @@ class AuroDatePicker extends r$2 {
|
|
|
24160
24128
|
?disabled="${this.disabled}"
|
|
24161
24129
|
?error="${this.validity !== undefined && this.validity !== 'valid'}"
|
|
24162
24130
|
disableEventShow
|
|
24163
|
-
|
|
24131
|
+
fullscreenBreakpoint="sm"
|
|
24164
24132
|
.placement="${this.placement}"
|
|
24165
24133
|
.offset="${this.offset}"
|
|
24166
24134
|
?autoPlacement="${this.autoPlacement}"
|
|
@@ -104,7 +104,7 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
|
|
|
104
104
|
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.
|
|
105
105
|
|
|
106
106
|
```html
|
|
107
|
-
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@3.
|
|
107
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@3.2.0/auro-datepicker/+esm"></script>
|
|
108
108
|
```
|
|
109
109
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
110
110
|
|
|
@@ -77,18 +77,6 @@ export class AuroDatePicker extends LitElement {
|
|
|
77
77
|
type: StringConstructor;
|
|
78
78
|
reflect: boolean;
|
|
79
79
|
};
|
|
80
|
-
/**
|
|
81
|
-
* Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)
|
|
82
|
-
* at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
|
|
83
|
-
*
|
|
84
|
-
* When expanded, the dropdown will automatically display in fullscreen mode
|
|
85
|
-
* if the screen size is equal to or smaller than the selected breakpoint.
|
|
86
|
-
* @default sm
|
|
87
|
-
*/
|
|
88
|
-
fullscreenBreakpoint: {
|
|
89
|
-
type: StringConstructor;
|
|
90
|
-
reflect: boolean;
|
|
91
|
-
};
|
|
92
80
|
/**
|
|
93
81
|
* If declared, make bib.fullscreen.headline in HeadingDisplay.
|
|
94
82
|
* Otherwise, Heading 600.
|
|
@@ -270,7 +258,6 @@ export class AuroDatePicker extends LitElement {
|
|
|
270
258
|
calendarEndDate: any;
|
|
271
259
|
calendarFocusDate: any;
|
|
272
260
|
format: string;
|
|
273
|
-
fullscreenBreakpoint: string;
|
|
274
261
|
monthNames: string[];
|
|
275
262
|
monthFirst: boolean;
|
|
276
263
|
placement: string;
|