@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
|
@@ -3002,6 +3002,7 @@ var tokensCss$1 = css`:host{--ds-auro-dropdown-label-text-color: var(--ds-basic-
|
|
|
3002
3002
|
|
|
3003
3003
|
const DESIGN_TOKEN_BREAKPOINT_PREFIX = '--ds-grid-breakpoint-';
|
|
3004
3004
|
const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
|
|
3005
|
+
'xl',
|
|
3005
3006
|
'lg',
|
|
3006
3007
|
'md',
|
|
3007
3008
|
'sm',
|
|
@@ -3073,6 +3074,7 @@ class AuroDropdownBib extends LitElement {
|
|
|
3073
3074
|
|
|
3074
3075
|
set mobileFullscreenBreakpoint(value) {
|
|
3075
3076
|
// verify the defined breakpoint is valid and exit out if not
|
|
3077
|
+
// 'disabled' is a design token breakpoint so it acts as our "undefined" value
|
|
3076
3078
|
const validatedValue = DESIGN_TOKEN_BREAKPOINT_OPTIONS.includes(value) ? value : undefined;
|
|
3077
3079
|
if (!validatedValue) {
|
|
3078
3080
|
this._mobileBreakpointValue = undefined;
|
|
@@ -3585,7 +3587,12 @@ class AuroDropdown extends LitElement {
|
|
|
3585
3587
|
},
|
|
3586
3588
|
|
|
3587
3589
|
/**
|
|
3588
|
-
* Defines the screen size breakpoint (`
|
|
3590
|
+
* Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)
|
|
3591
|
+
* at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
|
|
3592
|
+
*
|
|
3593
|
+
* When expanded, the dropdown will automatically display in fullscreen mode
|
|
3594
|
+
* if the screen size is equal to or smaller than the selected breakpoint.
|
|
3595
|
+
* @default sm
|
|
3589
3596
|
*/
|
|
3590
3597
|
fullscreenBreakpoint: {
|
|
3591
3598
|
type: String,
|
|
@@ -3708,6 +3715,15 @@ class AuroDropdown extends LitElement {
|
|
|
3708
3715
|
AuroLibraryRuntimeUtils$1$1.prototype.registerComponent(name, AuroDropdown);
|
|
3709
3716
|
}
|
|
3710
3717
|
|
|
3718
|
+
/**
|
|
3719
|
+
* Accessor for reusing the focusable entity query string.
|
|
3720
|
+
* @private
|
|
3721
|
+
* @returns {string}
|
|
3722
|
+
*/
|
|
3723
|
+
get focusableEntityQuery () {
|
|
3724
|
+
return 'auro-input, [auro-input], auro-button, [auro-button], button, input';
|
|
3725
|
+
}
|
|
3726
|
+
|
|
3711
3727
|
connectedCallback() {
|
|
3712
3728
|
super.connectedCallback();
|
|
3713
3729
|
}
|
|
@@ -3721,6 +3737,8 @@ class AuroDropdown extends LitElement {
|
|
|
3721
3737
|
updated(changedProperties) {
|
|
3722
3738
|
this.floater.handleUpdate(changedProperties);
|
|
3723
3739
|
|
|
3740
|
+
// Note: `disabled` is not a breakpoint (it is not a screen size),
|
|
3741
|
+
// so it looks like we never consume this - however, dropdownBib handles this in the setter as "undefined"
|
|
3724
3742
|
if (changedProperties.has('fullscreenBreakpoint')) {
|
|
3725
3743
|
this.bibContent.mobileFullscreenBreakpoint = this.fullscreenBreakpoint;
|
|
3726
3744
|
}
|
|
@@ -3856,7 +3874,7 @@ class AuroDropdown extends LitElement {
|
|
|
3856
3874
|
|
|
3857
3875
|
this.triggerContentSlot.forEach((node) => {
|
|
3858
3876
|
if (node.querySelectorAll) {
|
|
3859
|
-
const auroElements = node.querySelectorAll(
|
|
3877
|
+
const auroElements = node.querySelectorAll(this.focusableEntityQuery);
|
|
3860
3878
|
auroElements.forEach((auroEl) => {
|
|
3861
3879
|
auroEl.addEventListener('focus', this.bindFocusEventToTrigger);
|
|
3862
3880
|
auroEl.addEventListener('blur', this.bindFocusEventToTrigger);
|
|
@@ -3877,7 +3895,7 @@ class AuroDropdown extends LitElement {
|
|
|
3877
3895
|
|
|
3878
3896
|
this.triggerContentSlot.forEach((node) => {
|
|
3879
3897
|
if (node.querySelectorAll) {
|
|
3880
|
-
const auroElements = node.querySelectorAll(
|
|
3898
|
+
const auroElements = node.querySelectorAll(this.focusableEntityQuery);
|
|
3881
3899
|
auroElements.forEach((auroEl) => {
|
|
3882
3900
|
auroEl.removeEventListener('focus', this.bindFocusEventToTrigger);
|
|
3883
3901
|
auroEl.removeEventListener('blur', this.bindFocusEventToTrigger);
|
|
@@ -4714,6 +4732,8 @@ class AuroBibtemplate extends LitElement {
|
|
|
4714
4732
|
constructor() {
|
|
4715
4733
|
super();
|
|
4716
4734
|
|
|
4735
|
+
this.large = false;
|
|
4736
|
+
|
|
4717
4737
|
AuroLibraryRuntimeUtils$1.prototype.handleComponentTagRename(this, 'auro-bibtemplate');
|
|
4718
4738
|
|
|
4719
4739
|
const versioning = new AuroDependencyVersioning();
|
|
@@ -5062,8 +5082,11 @@ class AuroSelect extends LitElement {
|
|
|
5062
5082
|
},
|
|
5063
5083
|
|
|
5064
5084
|
/**
|
|
5065
|
-
* Defines the screen size breakpoint (`
|
|
5066
|
-
*
|
|
5085
|
+
* Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)
|
|
5086
|
+
* at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
|
|
5087
|
+
*
|
|
5088
|
+
* When expanded, the dropdown will automatically display in fullscreen mode
|
|
5089
|
+
* if the screen size is equal to or smaller than the selected breakpoint.
|
|
5067
5090
|
* @default sm
|
|
5068
5091
|
*/
|
|
5069
5092
|
fullscreenBreakpoint: {
|
|
@@ -3002,6 +3002,7 @@ var tokensCss$1 = css`:host{--ds-auro-dropdown-label-text-color: var(--ds-basic-
|
|
|
3002
3002
|
|
|
3003
3003
|
const DESIGN_TOKEN_BREAKPOINT_PREFIX = '--ds-grid-breakpoint-';
|
|
3004
3004
|
const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
|
|
3005
|
+
'xl',
|
|
3005
3006
|
'lg',
|
|
3006
3007
|
'md',
|
|
3007
3008
|
'sm',
|
|
@@ -3073,6 +3074,7 @@ class AuroDropdownBib extends LitElement {
|
|
|
3073
3074
|
|
|
3074
3075
|
set mobileFullscreenBreakpoint(value) {
|
|
3075
3076
|
// verify the defined breakpoint is valid and exit out if not
|
|
3077
|
+
// 'disabled' is a design token breakpoint so it acts as our "undefined" value
|
|
3076
3078
|
const validatedValue = DESIGN_TOKEN_BREAKPOINT_OPTIONS.includes(value) ? value : undefined;
|
|
3077
3079
|
if (!validatedValue) {
|
|
3078
3080
|
this._mobileBreakpointValue = undefined;
|
|
@@ -3585,7 +3587,12 @@ class AuroDropdown extends LitElement {
|
|
|
3585
3587
|
},
|
|
3586
3588
|
|
|
3587
3589
|
/**
|
|
3588
|
-
* Defines the screen size breakpoint (`
|
|
3590
|
+
* Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)
|
|
3591
|
+
* at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
|
|
3592
|
+
*
|
|
3593
|
+
* When expanded, the dropdown will automatically display in fullscreen mode
|
|
3594
|
+
* if the screen size is equal to or smaller than the selected breakpoint.
|
|
3595
|
+
* @default sm
|
|
3589
3596
|
*/
|
|
3590
3597
|
fullscreenBreakpoint: {
|
|
3591
3598
|
type: String,
|
|
@@ -3708,6 +3715,15 @@ class AuroDropdown extends LitElement {
|
|
|
3708
3715
|
AuroLibraryRuntimeUtils$1$1.prototype.registerComponent(name, AuroDropdown);
|
|
3709
3716
|
}
|
|
3710
3717
|
|
|
3718
|
+
/**
|
|
3719
|
+
* Accessor for reusing the focusable entity query string.
|
|
3720
|
+
* @private
|
|
3721
|
+
* @returns {string}
|
|
3722
|
+
*/
|
|
3723
|
+
get focusableEntityQuery () {
|
|
3724
|
+
return 'auro-input, [auro-input], auro-button, [auro-button], button, input';
|
|
3725
|
+
}
|
|
3726
|
+
|
|
3711
3727
|
connectedCallback() {
|
|
3712
3728
|
super.connectedCallback();
|
|
3713
3729
|
}
|
|
@@ -3721,6 +3737,8 @@ class AuroDropdown extends LitElement {
|
|
|
3721
3737
|
updated(changedProperties) {
|
|
3722
3738
|
this.floater.handleUpdate(changedProperties);
|
|
3723
3739
|
|
|
3740
|
+
// Note: `disabled` is not a breakpoint (it is not a screen size),
|
|
3741
|
+
// so it looks like we never consume this - however, dropdownBib handles this in the setter as "undefined"
|
|
3724
3742
|
if (changedProperties.has('fullscreenBreakpoint')) {
|
|
3725
3743
|
this.bibContent.mobileFullscreenBreakpoint = this.fullscreenBreakpoint;
|
|
3726
3744
|
}
|
|
@@ -3856,7 +3874,7 @@ class AuroDropdown extends LitElement {
|
|
|
3856
3874
|
|
|
3857
3875
|
this.triggerContentSlot.forEach((node) => {
|
|
3858
3876
|
if (node.querySelectorAll) {
|
|
3859
|
-
const auroElements = node.querySelectorAll(
|
|
3877
|
+
const auroElements = node.querySelectorAll(this.focusableEntityQuery);
|
|
3860
3878
|
auroElements.forEach((auroEl) => {
|
|
3861
3879
|
auroEl.addEventListener('focus', this.bindFocusEventToTrigger);
|
|
3862
3880
|
auroEl.addEventListener('blur', this.bindFocusEventToTrigger);
|
|
@@ -3877,7 +3895,7 @@ class AuroDropdown extends LitElement {
|
|
|
3877
3895
|
|
|
3878
3896
|
this.triggerContentSlot.forEach((node) => {
|
|
3879
3897
|
if (node.querySelectorAll) {
|
|
3880
|
-
const auroElements = node.querySelectorAll(
|
|
3898
|
+
const auroElements = node.querySelectorAll(this.focusableEntityQuery);
|
|
3881
3899
|
auroElements.forEach((auroEl) => {
|
|
3882
3900
|
auroEl.removeEventListener('focus', this.bindFocusEventToTrigger);
|
|
3883
3901
|
auroEl.removeEventListener('blur', this.bindFocusEventToTrigger);
|
|
@@ -4714,6 +4732,8 @@ class AuroBibtemplate extends LitElement {
|
|
|
4714
4732
|
constructor() {
|
|
4715
4733
|
super();
|
|
4716
4734
|
|
|
4735
|
+
this.large = false;
|
|
4736
|
+
|
|
4717
4737
|
AuroLibraryRuntimeUtils$1.prototype.handleComponentTagRename(this, 'auro-bibtemplate');
|
|
4718
4738
|
|
|
4719
4739
|
const versioning = new AuroDependencyVersioning();
|
|
@@ -5062,8 +5082,11 @@ class AuroSelect extends LitElement {
|
|
|
5062
5082
|
},
|
|
5063
5083
|
|
|
5064
5084
|
/**
|
|
5065
|
-
* Defines the screen size breakpoint (`
|
|
5066
|
-
*
|
|
5085
|
+
* Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)
|
|
5086
|
+
* at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
|
|
5087
|
+
*
|
|
5088
|
+
* When expanded, the dropdown will automatically display in fullscreen mode
|
|
5089
|
+
* if the screen size is equal to or smaller than the selected breakpoint.
|
|
5067
5090
|
* @default sm
|
|
5068
5091
|
*/
|
|
5069
5092
|
fullscreenBreakpoint: {
|
package/package.json
CHANGED