@aurodesignsystem-dev/auro-formkit 0.0.0-pr1059.1 → 0.0.0-pr1059.2
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/components/combobox/README.md +1 -1
- package/components/combobox/demo/api.md +98 -9
- package/components/combobox/demo/api.min.js +68 -31
- package/components/combobox/demo/index.md +1 -1
- package/components/combobox/demo/index.min.js +18 -27
- package/components/combobox/demo/readme.md +1 -1
- package/components/combobox/dist/index.js +14 -15
- package/components/combobox/dist/registered.js +14 -15
- package/components/counter/demo/api.min.js +7 -2
- package/components/counter/demo/index.min.js +7 -2
- package/components/counter/dist/index.js +7 -2
- package/components/counter/dist/registered.js +7 -2
- package/components/datepicker/demo/api.min.js +8 -3
- package/components/datepicker/demo/index.min.js +8 -3
- package/components/datepicker/dist/index.js +8 -3
- package/components/datepicker/dist/registered.js +8 -3
- package/components/dropdown/demo/api.min.js +7 -2
- package/components/dropdown/demo/index.min.js +7 -2
- package/components/dropdown/dist/index.js +7 -2
- package/components/dropdown/dist/registered.js +7 -2
- package/components/input/demo/api.md +1 -1
- package/components/input/demo/api.min.js +1 -1
- package/components/input/demo/index.md +1 -2
- package/components/input/demo/index.min.js +1 -1
- package/components/input/dist/base-input.d.ts +1 -1
- package/components/input/dist/index.js +1 -1
- package/components/input/dist/registered.js +1 -1
- package/components/menu/demo/api.min.js +4 -12
- package/components/menu/demo/index.min.js +4 -12
- package/components/menu/dist/index.js +4 -12
- package/components/menu/dist/registered.js +4 -12
- package/components/select/demo/api.min.js +12 -15
- package/components/select/demo/index.min.js +12 -15
- package/components/select/dist/index.js +8 -3
- package/components/select/dist/registered.js +8 -3
- package/package.json +1 -1
|
@@ -5085,8 +5085,13 @@ class AuroDropdown extends AuroElement$4 {
|
|
|
5085
5085
|
}
|
|
5086
5086
|
|
|
5087
5087
|
if (event) {
|
|
5088
|
-
|
|
5089
|
-
|
|
5088
|
+
// Wrap in a try-catch block to handle errors when trying to use assignedNodes from the NodeJS test environment.
|
|
5089
|
+
try {
|
|
5090
|
+
this.triggerNode = event.target;
|
|
5091
|
+
this.triggerContentSlot = event.target.assignedNodes();
|
|
5092
|
+
} catch (error) {
|
|
5093
|
+
console.warn('auro-dropdown: Unable to access the trigger content slot.', error); // eslint-disable-line no-console
|
|
5094
|
+
}
|
|
5090
5095
|
}
|
|
5091
5096
|
|
|
5092
5097
|
if (this.triggerContentSlot) {
|
|
@@ -10344,7 +10349,7 @@ class BaseInput extends AuroElement$2$1 {
|
|
|
10344
10349
|
...super.properties,
|
|
10345
10350
|
|
|
10346
10351
|
/**
|
|
10347
|
-
* If defined, the display value slot content will only mask the HTML5 input element. The
|
|
10352
|
+
* If defined, the display value slot content will only mask the HTML5 input element. The input's label will not be masked.
|
|
10348
10353
|
*/
|
|
10349
10354
|
dvInputOnly: {
|
|
10350
10355
|
type: Boolean,
|
|
@@ -15621,7 +15626,7 @@ var bibTemplateVersion = '1.0.0';
|
|
|
15621
15626
|
|
|
15622
15627
|
var styleCss$1 = css`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}:host{display:block;text-align:left}:host [auro-dropdown]{--ds-auro-dropdown-trigger-background-color: transparent}:host #inputInBib::part(wrapper){box-shadow:none}:host #inputInBib::part(accent-left){display:none}:host #inputInBib::part(accent-right){display:none}:host([layout*=classic]) [auro-input]{width:100%}:host([layout*=classic]) [auro-input]::part(helpText){display:none}:host([layout*=classic]) #slotHolder{display:none}`;
|
|
15623
15628
|
|
|
15624
|
-
var styleEmphasizedCss = css`:host([layout*=emphasized][shape*=pill]) [auro-input]{--ds-auro-input-background-color: var(--ds-advanced-color-dropdown-emphasized-background, rgba(0, 39, 74, 0.1019607843));--ds-auro-input-container-color: var(--ds-advanced-color-dropdown-emphasized-background, rgba(0, 39, 74, 0.1019607843));width:100%}:host([layout*=emphasized][shape*=pill]) [auro-input]
|
|
15629
|
+
var styleEmphasizedCss = css`:host([layout*=emphasized][shape*=pill]) [auro-input]{--ds-auro-input-background-color: var(--ds-advanced-color-dropdown-emphasized-background, rgba(0, 39, 74, 0.1019607843));--ds-auro-input-container-color: var(--ds-advanced-color-dropdown-emphasized-background, rgba(0, 39, 74, 0.1019607843));width:100%}:host([layout*=emphasized][shape*=pill]) [auro-input]::part(inputHelpText){display:none}`;
|
|
15625
15630
|
|
|
15626
15631
|
var styleSnowflakeCss = css`:host([layout*=snowflake][shape*=snowflake]) [auro-input]{width:100%}:host([layout*=snowflake][shape*=snowflake]) [auro-input]::part(inputHelpText){display:none}:host([layout*=snowflake][shape*=snowflake])::part(helpText){text-align:center}`;
|
|
15627
15632
|
|
|
@@ -16437,11 +16442,6 @@ class AuroCombobox extends AuroElement {
|
|
|
16437
16442
|
this.menu.value = this.value;
|
|
16438
16443
|
this.menu.matchWord = this.input.value;
|
|
16439
16444
|
|
|
16440
|
-
console.warn('syncValuesAndStates()');
|
|
16441
|
-
console.info('this.value', this.value);
|
|
16442
|
-
console.info('this.input.value', this.input.value);
|
|
16443
|
-
console.info('this.menu.value', this.menu.value);
|
|
16444
|
-
|
|
16445
16445
|
// Wait a lifecycle for child components to update
|
|
16446
16446
|
await Promise.all([this.menu.updateComplete]);
|
|
16447
16447
|
|
|
@@ -16475,6 +16475,8 @@ class AuroCombobox extends AuroElement {
|
|
|
16475
16475
|
this.input.appendChild(displayValueEl.cloneNode(true));
|
|
16476
16476
|
}
|
|
16477
16477
|
}
|
|
16478
|
+
|
|
16479
|
+
this.requestUpdate();
|
|
16478
16480
|
}
|
|
16479
16481
|
|
|
16480
16482
|
/**
|
|
@@ -16496,7 +16498,6 @@ class AuroCombobox extends AuroElement {
|
|
|
16496
16498
|
* @returns {void}
|
|
16497
16499
|
*/
|
|
16498
16500
|
handleMenuOptions() {
|
|
16499
|
-
console.warn('handleMenuOptions()');
|
|
16500
16501
|
this.resetMenuMatchword();
|
|
16501
16502
|
|
|
16502
16503
|
this.generateOptionsArray();
|
|
@@ -16683,7 +16684,6 @@ class AuroCombobox extends AuroElement {
|
|
|
16683
16684
|
|
|
16684
16685
|
// handle the menu event for an option selection
|
|
16685
16686
|
this.menu.addEventListener('auroMenu-selectedOption', (evt) => {
|
|
16686
|
-
console.warn('event auroMenu-selectedOption', evt);
|
|
16687
16687
|
if (this.menu.optionSelected) {
|
|
16688
16688
|
const selected = this.menu.optionSelected;
|
|
16689
16689
|
|
|
@@ -16784,7 +16784,6 @@ class AuroCombobox extends AuroElement {
|
|
|
16784
16784
|
* @returns {void}
|
|
16785
16785
|
*/
|
|
16786
16786
|
handleInputValueChange(event) {
|
|
16787
|
-
console.warn('handleInputValueChange', event);
|
|
16788
16787
|
if (event.target === this.inputInBib) {
|
|
16789
16788
|
this.input.value = this.inputInBib.value;
|
|
16790
16789
|
return;
|
|
@@ -16946,10 +16945,11 @@ class AuroCombobox extends AuroElement {
|
|
|
16946
16945
|
* @returns {void}
|
|
16947
16946
|
*/
|
|
16948
16947
|
reset() {
|
|
16949
|
-
this.input.reset();
|
|
16950
|
-
this.menu.reset();
|
|
16951
16948
|
this.optionSelected = undefined;
|
|
16952
16949
|
this.value = undefined;
|
|
16950
|
+
this.typedValue = undefined;
|
|
16951
|
+
this.input.value = undefined;
|
|
16952
|
+
this.menu.value = undefined;
|
|
16953
16953
|
this.validation.reset(this);
|
|
16954
16954
|
this.touched = false;
|
|
16955
16955
|
}
|
|
@@ -17073,7 +17073,6 @@ class AuroCombobox extends AuroElement {
|
|
|
17073
17073
|
* @returns {void}
|
|
17074
17074
|
*/
|
|
17075
17075
|
handleSlotChange(event) {
|
|
17076
|
-
console.warn('handleSlotChange', event);
|
|
17077
17076
|
switch (event.target.name) {
|
|
17078
17077
|
case '':
|
|
17079
17078
|
if (!this.menu || this.menu !== this.querySelector('auro-menu, [auro-menu]')) {
|
|
@@ -5085,8 +5085,13 @@ class AuroDropdown extends AuroElement$4 {
|
|
|
5085
5085
|
}
|
|
5086
5086
|
|
|
5087
5087
|
if (event) {
|
|
5088
|
-
|
|
5089
|
-
|
|
5088
|
+
// Wrap in a try-catch block to handle errors when trying to use assignedNodes from the NodeJS test environment.
|
|
5089
|
+
try {
|
|
5090
|
+
this.triggerNode = event.target;
|
|
5091
|
+
this.triggerContentSlot = event.target.assignedNodes();
|
|
5092
|
+
} catch (error) {
|
|
5093
|
+
console.warn('auro-dropdown: Unable to access the trigger content slot.', error); // eslint-disable-line no-console
|
|
5094
|
+
}
|
|
5090
5095
|
}
|
|
5091
5096
|
|
|
5092
5097
|
if (this.triggerContentSlot) {
|
|
@@ -10344,7 +10349,7 @@ class BaseInput extends AuroElement$2$1 {
|
|
|
10344
10349
|
...super.properties,
|
|
10345
10350
|
|
|
10346
10351
|
/**
|
|
10347
|
-
* If defined, the display value slot content will only mask the HTML5 input element. The
|
|
10352
|
+
* If defined, the display value slot content will only mask the HTML5 input element. The input's label will not be masked.
|
|
10348
10353
|
*/
|
|
10349
10354
|
dvInputOnly: {
|
|
10350
10355
|
type: Boolean,
|
|
@@ -15621,7 +15626,7 @@ var bibTemplateVersion = '1.0.0';
|
|
|
15621
15626
|
|
|
15622
15627
|
var styleCss$1 = css`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}:host{display:block;text-align:left}:host [auro-dropdown]{--ds-auro-dropdown-trigger-background-color: transparent}:host #inputInBib::part(wrapper){box-shadow:none}:host #inputInBib::part(accent-left){display:none}:host #inputInBib::part(accent-right){display:none}:host([layout*=classic]) [auro-input]{width:100%}:host([layout*=classic]) [auro-input]::part(helpText){display:none}:host([layout*=classic]) #slotHolder{display:none}`;
|
|
15623
15628
|
|
|
15624
|
-
var styleEmphasizedCss = css`:host([layout*=emphasized][shape*=pill]) [auro-input]{--ds-auro-input-background-color: var(--ds-advanced-color-dropdown-emphasized-background, rgba(0, 39, 74, 0.1019607843));--ds-auro-input-container-color: var(--ds-advanced-color-dropdown-emphasized-background, rgba(0, 39, 74, 0.1019607843));width:100%}:host([layout*=emphasized][shape*=pill]) [auro-input]
|
|
15629
|
+
var styleEmphasizedCss = css`:host([layout*=emphasized][shape*=pill]) [auro-input]{--ds-auro-input-background-color: var(--ds-advanced-color-dropdown-emphasized-background, rgba(0, 39, 74, 0.1019607843));--ds-auro-input-container-color: var(--ds-advanced-color-dropdown-emphasized-background, rgba(0, 39, 74, 0.1019607843));width:100%}:host([layout*=emphasized][shape*=pill]) [auro-input]::part(inputHelpText){display:none}`;
|
|
15625
15630
|
|
|
15626
15631
|
var styleSnowflakeCss = css`:host([layout*=snowflake][shape*=snowflake]) [auro-input]{width:100%}:host([layout*=snowflake][shape*=snowflake]) [auro-input]::part(inputHelpText){display:none}:host([layout*=snowflake][shape*=snowflake])::part(helpText){text-align:center}`;
|
|
15627
15632
|
|
|
@@ -16437,11 +16442,6 @@ class AuroCombobox extends AuroElement {
|
|
|
16437
16442
|
this.menu.value = this.value;
|
|
16438
16443
|
this.menu.matchWord = this.input.value;
|
|
16439
16444
|
|
|
16440
|
-
console.warn('syncValuesAndStates()');
|
|
16441
|
-
console.info('this.value', this.value);
|
|
16442
|
-
console.info('this.input.value', this.input.value);
|
|
16443
|
-
console.info('this.menu.value', this.menu.value);
|
|
16444
|
-
|
|
16445
16445
|
// Wait a lifecycle for child components to update
|
|
16446
16446
|
await Promise.all([this.menu.updateComplete]);
|
|
16447
16447
|
|
|
@@ -16475,6 +16475,8 @@ class AuroCombobox extends AuroElement {
|
|
|
16475
16475
|
this.input.appendChild(displayValueEl.cloneNode(true));
|
|
16476
16476
|
}
|
|
16477
16477
|
}
|
|
16478
|
+
|
|
16479
|
+
this.requestUpdate();
|
|
16478
16480
|
}
|
|
16479
16481
|
|
|
16480
16482
|
/**
|
|
@@ -16496,7 +16498,6 @@ class AuroCombobox extends AuroElement {
|
|
|
16496
16498
|
* @returns {void}
|
|
16497
16499
|
*/
|
|
16498
16500
|
handleMenuOptions() {
|
|
16499
|
-
console.warn('handleMenuOptions()');
|
|
16500
16501
|
this.resetMenuMatchword();
|
|
16501
16502
|
|
|
16502
16503
|
this.generateOptionsArray();
|
|
@@ -16683,7 +16684,6 @@ class AuroCombobox extends AuroElement {
|
|
|
16683
16684
|
|
|
16684
16685
|
// handle the menu event for an option selection
|
|
16685
16686
|
this.menu.addEventListener('auroMenu-selectedOption', (evt) => {
|
|
16686
|
-
console.warn('event auroMenu-selectedOption', evt);
|
|
16687
16687
|
if (this.menu.optionSelected) {
|
|
16688
16688
|
const selected = this.menu.optionSelected;
|
|
16689
16689
|
|
|
@@ -16784,7 +16784,6 @@ class AuroCombobox extends AuroElement {
|
|
|
16784
16784
|
* @returns {void}
|
|
16785
16785
|
*/
|
|
16786
16786
|
handleInputValueChange(event) {
|
|
16787
|
-
console.warn('handleInputValueChange', event);
|
|
16788
16787
|
if (event.target === this.inputInBib) {
|
|
16789
16788
|
this.input.value = this.inputInBib.value;
|
|
16790
16789
|
return;
|
|
@@ -16946,10 +16945,11 @@ class AuroCombobox extends AuroElement {
|
|
|
16946
16945
|
* @returns {void}
|
|
16947
16946
|
*/
|
|
16948
16947
|
reset() {
|
|
16949
|
-
this.input.reset();
|
|
16950
|
-
this.menu.reset();
|
|
16951
16948
|
this.optionSelected = undefined;
|
|
16952
16949
|
this.value = undefined;
|
|
16950
|
+
this.typedValue = undefined;
|
|
16951
|
+
this.input.value = undefined;
|
|
16952
|
+
this.menu.value = undefined;
|
|
16953
16953
|
this.validation.reset(this);
|
|
16954
16954
|
this.touched = false;
|
|
16955
16955
|
}
|
|
@@ -17073,7 +17073,6 @@ class AuroCombobox extends AuroElement {
|
|
|
17073
17073
|
* @returns {void}
|
|
17074
17074
|
*/
|
|
17075
17075
|
handleSlotChange(event) {
|
|
17076
|
-
console.warn('handleSlotChange', event);
|
|
17077
17076
|
switch (event.target.name) {
|
|
17078
17077
|
case '':
|
|
17079
17078
|
if (!this.menu || this.menu !== this.querySelector('auro-menu, [auro-menu]')) {
|
|
@@ -7317,8 +7317,13 @@ class AuroDropdown extends AuroElement$3 {
|
|
|
7317
7317
|
}
|
|
7318
7318
|
|
|
7319
7319
|
if (event) {
|
|
7320
|
-
|
|
7321
|
-
|
|
7320
|
+
// Wrap in a try-catch block to handle errors when trying to use assignedNodes from the NodeJS test environment.
|
|
7321
|
+
try {
|
|
7322
|
+
this.triggerNode = event.target;
|
|
7323
|
+
this.triggerContentSlot = event.target.assignedNodes();
|
|
7324
|
+
} catch (error) {
|
|
7325
|
+
console.warn('auro-dropdown: Unable to access the trigger content slot.', error); // eslint-disable-line no-console
|
|
7326
|
+
}
|
|
7322
7327
|
}
|
|
7323
7328
|
|
|
7324
7329
|
if (this.triggerContentSlot) {
|
|
@@ -7317,8 +7317,13 @@ class AuroDropdown extends AuroElement$3 {
|
|
|
7317
7317
|
}
|
|
7318
7318
|
|
|
7319
7319
|
if (event) {
|
|
7320
|
-
|
|
7321
|
-
|
|
7320
|
+
// Wrap in a try-catch block to handle errors when trying to use assignedNodes from the NodeJS test environment.
|
|
7321
|
+
try {
|
|
7322
|
+
this.triggerNode = event.target;
|
|
7323
|
+
this.triggerContentSlot = event.target.assignedNodes();
|
|
7324
|
+
} catch (error) {
|
|
7325
|
+
console.warn('auro-dropdown: Unable to access the trigger content slot.', error); // eslint-disable-line no-console
|
|
7326
|
+
}
|
|
7322
7327
|
}
|
|
7323
7328
|
|
|
7324
7329
|
if (this.triggerContentSlot) {
|
|
@@ -7270,8 +7270,13 @@ class AuroDropdown extends AuroElement$3 {
|
|
|
7270
7270
|
}
|
|
7271
7271
|
|
|
7272
7272
|
if (event) {
|
|
7273
|
-
|
|
7274
|
-
|
|
7273
|
+
// Wrap in a try-catch block to handle errors when trying to use assignedNodes from the NodeJS test environment.
|
|
7274
|
+
try {
|
|
7275
|
+
this.triggerNode = event.target;
|
|
7276
|
+
this.triggerContentSlot = event.target.assignedNodes();
|
|
7277
|
+
} catch (error) {
|
|
7278
|
+
console.warn('auro-dropdown: Unable to access the trigger content slot.', error); // eslint-disable-line no-console
|
|
7279
|
+
}
|
|
7275
7280
|
}
|
|
7276
7281
|
|
|
7277
7282
|
if (this.triggerContentSlot) {
|
|
@@ -7270,8 +7270,13 @@ class AuroDropdown extends AuroElement$3 {
|
|
|
7270
7270
|
}
|
|
7271
7271
|
|
|
7272
7272
|
if (event) {
|
|
7273
|
-
|
|
7274
|
-
|
|
7273
|
+
// Wrap in a try-catch block to handle errors when trying to use assignedNodes from the NodeJS test environment.
|
|
7274
|
+
try {
|
|
7275
|
+
this.triggerNode = event.target;
|
|
7276
|
+
this.triggerContentSlot = event.target.assignedNodes();
|
|
7277
|
+
} catch (error) {
|
|
7278
|
+
console.warn('auro-dropdown: Unable to access the trigger content slot.', error); // eslint-disable-line no-console
|
|
7279
|
+
}
|
|
7275
7280
|
}
|
|
7276
7281
|
|
|
7277
7282
|
if (this.triggerContentSlot) {
|
|
@@ -18738,8 +18738,13 @@ class AuroDropdown extends AuroElement$4 {
|
|
|
18738
18738
|
}
|
|
18739
18739
|
|
|
18740
18740
|
if (event) {
|
|
18741
|
-
|
|
18742
|
-
|
|
18741
|
+
// Wrap in a try-catch block to handle errors when trying to use assignedNodes from the NodeJS test environment.
|
|
18742
|
+
try {
|
|
18743
|
+
this.triggerNode = event.target;
|
|
18744
|
+
this.triggerContentSlot = event.target.assignedNodes();
|
|
18745
|
+
} catch (error) {
|
|
18746
|
+
console.warn('auro-dropdown: Unable to access the trigger content slot.', error); // eslint-disable-line no-console
|
|
18747
|
+
}
|
|
18743
18748
|
}
|
|
18744
18749
|
|
|
18745
18750
|
if (this.triggerContentSlot) {
|
|
@@ -24010,7 +24015,7 @@ class BaseInput extends AuroElement$2 {
|
|
|
24010
24015
|
...super.properties,
|
|
24011
24016
|
|
|
24012
24017
|
/**
|
|
24013
|
-
* If defined, the display value slot content will only mask the HTML5 input element. The
|
|
24018
|
+
* If defined, the display value slot content will only mask the HTML5 input element. The input's label will not be masked.
|
|
24014
24019
|
*/
|
|
24015
24020
|
dvInputOnly: {
|
|
24016
24021
|
type: Boolean,
|
|
@@ -18479,8 +18479,13 @@ class AuroDropdown extends AuroElement$4 {
|
|
|
18479
18479
|
}
|
|
18480
18480
|
|
|
18481
18481
|
if (event) {
|
|
18482
|
-
|
|
18483
|
-
|
|
18482
|
+
// Wrap in a try-catch block to handle errors when trying to use assignedNodes from the NodeJS test environment.
|
|
18483
|
+
try {
|
|
18484
|
+
this.triggerNode = event.target;
|
|
18485
|
+
this.triggerContentSlot = event.target.assignedNodes();
|
|
18486
|
+
} catch (error) {
|
|
18487
|
+
console.warn('auro-dropdown: Unable to access the trigger content slot.', error); // eslint-disable-line no-console
|
|
18488
|
+
}
|
|
18484
18489
|
}
|
|
18485
18490
|
|
|
18486
18491
|
if (this.triggerContentSlot) {
|
|
@@ -23751,7 +23756,7 @@ class BaseInput extends AuroElement$2 {
|
|
|
23751
23756
|
...super.properties,
|
|
23752
23757
|
|
|
23753
23758
|
/**
|
|
23754
|
-
* If defined, the display value slot content will only mask the HTML5 input element. The
|
|
23759
|
+
* If defined, the display value slot content will only mask the HTML5 input element. The input's label will not be masked.
|
|
23755
23760
|
*/
|
|
23756
23761
|
dvInputOnly: {
|
|
23757
23762
|
type: Boolean,
|
|
@@ -18428,8 +18428,13 @@ class AuroDropdown extends AuroElement$4 {
|
|
|
18428
18428
|
}
|
|
18429
18429
|
|
|
18430
18430
|
if (event) {
|
|
18431
|
-
|
|
18432
|
-
|
|
18431
|
+
// Wrap in a try-catch block to handle errors when trying to use assignedNodes from the NodeJS test environment.
|
|
18432
|
+
try {
|
|
18433
|
+
this.triggerNode = event.target;
|
|
18434
|
+
this.triggerContentSlot = event.target.assignedNodes();
|
|
18435
|
+
} catch (error) {
|
|
18436
|
+
console.warn('auro-dropdown: Unable to access the trigger content slot.', error); // eslint-disable-line no-console
|
|
18437
|
+
}
|
|
18433
18438
|
}
|
|
18434
18439
|
|
|
18435
18440
|
if (this.triggerContentSlot) {
|
|
@@ -23687,7 +23692,7 @@ class BaseInput extends AuroElement$2 {
|
|
|
23687
23692
|
...super.properties,
|
|
23688
23693
|
|
|
23689
23694
|
/**
|
|
23690
|
-
* If defined, the display value slot content will only mask the HTML5 input element. The
|
|
23695
|
+
* If defined, the display value slot content will only mask the HTML5 input element. The input's label will not be masked.
|
|
23691
23696
|
*/
|
|
23692
23697
|
dvInputOnly: {
|
|
23693
23698
|
type: Boolean,
|
|
@@ -18428,8 +18428,13 @@ class AuroDropdown extends AuroElement$4 {
|
|
|
18428
18428
|
}
|
|
18429
18429
|
|
|
18430
18430
|
if (event) {
|
|
18431
|
-
|
|
18432
|
-
|
|
18431
|
+
// Wrap in a try-catch block to handle errors when trying to use assignedNodes from the NodeJS test environment.
|
|
18432
|
+
try {
|
|
18433
|
+
this.triggerNode = event.target;
|
|
18434
|
+
this.triggerContentSlot = event.target.assignedNodes();
|
|
18435
|
+
} catch (error) {
|
|
18436
|
+
console.warn('auro-dropdown: Unable to access the trigger content slot.', error); // eslint-disable-line no-console
|
|
18437
|
+
}
|
|
18433
18438
|
}
|
|
18434
18439
|
|
|
18435
18440
|
if (this.triggerContentSlot) {
|
|
@@ -23687,7 +23692,7 @@ class BaseInput extends AuroElement$2 {
|
|
|
23687
23692
|
...super.properties,
|
|
23688
23693
|
|
|
23689
23694
|
/**
|
|
23690
|
-
* If defined, the display value slot content will only mask the HTML5 input element. The
|
|
23695
|
+
* If defined, the display value slot content will only mask the HTML5 input element. The input's label will not be masked.
|
|
23691
23696
|
*/
|
|
23692
23697
|
dvInputOnly: {
|
|
23693
23698
|
type: Boolean,
|
|
@@ -4258,8 +4258,13 @@ class AuroDropdown extends AuroElement {
|
|
|
4258
4258
|
}
|
|
4259
4259
|
|
|
4260
4260
|
if (event) {
|
|
4261
|
-
|
|
4262
|
-
|
|
4261
|
+
// Wrap in a try-catch block to handle errors when trying to use assignedNodes from the NodeJS test environment.
|
|
4262
|
+
try {
|
|
4263
|
+
this.triggerNode = event.target;
|
|
4264
|
+
this.triggerContentSlot = event.target.assignedNodes();
|
|
4265
|
+
} catch (error) {
|
|
4266
|
+
console.warn('auro-dropdown: Unable to access the trigger content slot.', error); // eslint-disable-line no-console
|
|
4267
|
+
}
|
|
4263
4268
|
}
|
|
4264
4269
|
|
|
4265
4270
|
if (this.triggerContentSlot) {
|
|
@@ -4233,8 +4233,13 @@ class AuroDropdown extends AuroElement {
|
|
|
4233
4233
|
}
|
|
4234
4234
|
|
|
4235
4235
|
if (event) {
|
|
4236
|
-
|
|
4237
|
-
|
|
4236
|
+
// Wrap in a try-catch block to handle errors when trying to use assignedNodes from the NodeJS test environment.
|
|
4237
|
+
try {
|
|
4238
|
+
this.triggerNode = event.target;
|
|
4239
|
+
this.triggerContentSlot = event.target.assignedNodes();
|
|
4240
|
+
} catch (error) {
|
|
4241
|
+
console.warn('auro-dropdown: Unable to access the trigger content slot.', error); // eslint-disable-line no-console
|
|
4242
|
+
}
|
|
4238
4243
|
}
|
|
4239
4244
|
|
|
4240
4245
|
if (this.triggerContentSlot) {
|
|
@@ -4186,8 +4186,13 @@ class AuroDropdown extends AuroElement {
|
|
|
4186
4186
|
}
|
|
4187
4187
|
|
|
4188
4188
|
if (event) {
|
|
4189
|
-
|
|
4190
|
-
|
|
4189
|
+
// Wrap in a try-catch block to handle errors when trying to use assignedNodes from the NodeJS test environment.
|
|
4190
|
+
try {
|
|
4191
|
+
this.triggerNode = event.target;
|
|
4192
|
+
this.triggerContentSlot = event.target.assignedNodes();
|
|
4193
|
+
} catch (error) {
|
|
4194
|
+
console.warn('auro-dropdown: Unable to access the trigger content slot.', error); // eslint-disable-line no-console
|
|
4195
|
+
}
|
|
4191
4196
|
}
|
|
4192
4197
|
|
|
4193
4198
|
if (this.triggerContentSlot) {
|
|
@@ -4186,8 +4186,13 @@ class AuroDropdown extends AuroElement {
|
|
|
4186
4186
|
}
|
|
4187
4187
|
|
|
4188
4188
|
if (event) {
|
|
4189
|
-
|
|
4190
|
-
|
|
4189
|
+
// Wrap in a try-catch block to handle errors when trying to use assignedNodes from the NodeJS test environment.
|
|
4190
|
+
try {
|
|
4191
|
+
this.triggerNode = event.target;
|
|
4192
|
+
this.triggerContentSlot = event.target.assignedNodes();
|
|
4193
|
+
} catch (error) {
|
|
4194
|
+
console.warn('auro-dropdown: Unable to access the trigger content slot.', error); // eslint-disable-line no-console
|
|
4195
|
+
}
|
|
4191
4196
|
}
|
|
4192
4197
|
|
|
4193
4198
|
if (this.triggerContentSlot) {
|
|
@@ -19,7 +19,7 @@ Generate unique names for dependency components.
|
|
|
19
19
|
| [commonDisplayValueWrapperClasses](#commonDisplayValueWrapperClasses) | | readonly | `{ [x: string]: boolean; displayValueWrapper: boolean; }` | | |
|
|
20
20
|
| [customValidityTypeEmail](#customValidityTypeEmail) | `customValidityTypeEmail` | | `string` | | Custom help text message for email type validity. |
|
|
21
21
|
| [disabled](#disabled) | `disabled` | | `boolean` | false | If set, disables the input. |
|
|
22
|
-
| [dvInputOnly](#dvInputOnly) | `dvInputOnly` | | `boolean` | false | If defined, the display value slot content will only mask the HTML5 input element. The
|
|
22
|
+
| [dvInputOnly](#dvInputOnly) | `dvInputOnly` | | `boolean` | false | If defined, the display value slot content will only mask the HTML5 input element. The input's label will not be masked. |
|
|
23
23
|
| [error](#error) | `error` | | `string` | | When defined, sets persistent validity to `customError` and sets `setCustomValidity` = attribute value. |
|
|
24
24
|
| [errorMessage](#errorMessage) | `errorMessage` | | `string` | | Contains the help text message for the current validity error. |
|
|
25
25
|
| [format](#format) | `format` | | `string` | | Specifies the input mask format. |
|
|
@@ -5237,7 +5237,7 @@ class BaseInput extends AuroElement$2 {
|
|
|
5237
5237
|
...super.properties,
|
|
5238
5238
|
|
|
5239
5239
|
/**
|
|
5240
|
-
* If defined, the display value slot content will only mask the HTML5 input element. The
|
|
5240
|
+
* If defined, the display value slot content will only mask the HTML5 input element. The input's label will not be masked.
|
|
5241
5241
|
*/
|
|
5242
5242
|
dvInputOnly: {
|
|
5243
5243
|
type: Boolean,
|
|
@@ -23,13 +23,12 @@ The `<auro-input>` element should be used in situations where users may:
|
|
|
23
23
|
<!-- <auro-input layout="default" shape="rounded" size="xl" placeholder="Departure">
|
|
24
24
|
<label slot="label">From</label>
|
|
25
25
|
</auro-input> -->
|
|
26
|
-
<auro-input id="alpha" value="lax" layout="emphasized" shape="
|
|
26
|
+
<auro-input dvInputOnly id="alpha" value="lax" layout="emphasized" shape="pill" size="xl" placeholder="Departure" style="width: 249px;" ondark required>
|
|
27
27
|
<span slot="ariaLabel.clear">Clear All</span>
|
|
28
28
|
<label slot="label">From</label>
|
|
29
29
|
<span slot="helpText">Example help text</span>
|
|
30
30
|
<span slot="displayValue">
|
|
31
31
|
<div>
|
|
32
|
-
<div class="mainText">LAX</div>
|
|
33
32
|
<div class="subText">Los Angeles</div>
|
|
34
33
|
</div>
|
|
35
34
|
</span>
|
|
@@ -5162,7 +5162,7 @@ class BaseInput extends AuroElement$2 {
|
|
|
5162
5162
|
...super.properties,
|
|
5163
5163
|
|
|
5164
5164
|
/**
|
|
5165
|
-
* If defined, the display value slot content will only mask the HTML5 input element. The
|
|
5165
|
+
* If defined, the display value slot content will only mask the HTML5 input element. The input's label will not be masked.
|
|
5166
5166
|
*/
|
|
5167
5167
|
dvInputOnly: {
|
|
5168
5168
|
type: Boolean,
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
export default class BaseInput extends AuroElement {
|
|
27
27
|
static get properties(): {
|
|
28
28
|
/**
|
|
29
|
-
* If defined, the display value slot content will only mask the HTML5 input element. The
|
|
29
|
+
* If defined, the display value slot content will only mask the HTML5 input element. The input's label will not be masked.
|
|
30
30
|
*/
|
|
31
31
|
dvInputOnly: {
|
|
32
32
|
type: BooleanConstructor;
|
|
@@ -5086,7 +5086,7 @@ class BaseInput extends AuroElement$2 {
|
|
|
5086
5086
|
...super.properties,
|
|
5087
5087
|
|
|
5088
5088
|
/**
|
|
5089
|
-
* If defined, the display value slot content will only mask the HTML5 input element. The
|
|
5089
|
+
* If defined, the display value slot content will only mask the HTML5 input element. The input's label will not be masked.
|
|
5090
5090
|
*/
|
|
5091
5091
|
dvInputOnly: {
|
|
5092
5092
|
type: Boolean,
|
|
@@ -5086,7 +5086,7 @@ class BaseInput extends AuroElement$2 {
|
|
|
5086
5086
|
...super.properties,
|
|
5087
5087
|
|
|
5088
5088
|
/**
|
|
5089
|
-
* If defined, the display value slot content will only mask the HTML5 input element. The
|
|
5089
|
+
* If defined, the display value slot content will only mask the HTML5 input element. The input's label will not be masked.
|
|
5090
5090
|
*/
|
|
5091
5091
|
dvInputOnly: {
|
|
5092
5092
|
type: Boolean,
|
|
@@ -530,6 +530,10 @@ class AuroMenu extends AuroElement$1 {
|
|
|
530
530
|
updated(changedProperties) {
|
|
531
531
|
super.updated(changedProperties);
|
|
532
532
|
|
|
533
|
+
if (changedProperties.has('optionSelected')) {
|
|
534
|
+
this.notifySelectionChange();
|
|
535
|
+
}
|
|
536
|
+
|
|
533
537
|
if (changedProperties.has('multiSelect') && !changedProperties.has("value")) {
|
|
534
538
|
// Reset selection if multiSelect mode changes
|
|
535
539
|
this.clearSelection();
|
|
@@ -537,8 +541,6 @@ class AuroMenu extends AuroElement$1 {
|
|
|
537
541
|
|
|
538
542
|
|
|
539
543
|
if (changedProperties.has("value")) {
|
|
540
|
-
console.warn('menu value updated', this.value);
|
|
541
|
-
console.info('available options', this.availableOptions);
|
|
542
544
|
// Handle null/undefined case
|
|
543
545
|
if (this.value === undefined || this.value === null) {
|
|
544
546
|
this.clearSelection();
|
|
@@ -550,12 +552,9 @@ class AuroMenu extends AuroElement$1 {
|
|
|
550
552
|
|
|
551
553
|
this.optionSelected = matchingOptions.length > 0 ? matchingOptions : undefined;
|
|
552
554
|
} else {
|
|
553
|
-
console.info('single-select mode, looking for value', this.value);
|
|
554
555
|
// In single-select mode, this.value should be a string
|
|
555
556
|
const matchingOptions = this.items.find((item) => item.value === this.value);
|
|
556
557
|
|
|
557
|
-
console.info('matchingOptions', matchingOptions);
|
|
558
|
-
|
|
559
558
|
if (matchingOptions) {
|
|
560
559
|
this.optionSelected = matchingOptions;
|
|
561
560
|
this.index = this.items.indexOf(matchingOptions);
|
|
@@ -564,8 +563,6 @@ class AuroMenu extends AuroElement$1 {
|
|
|
564
563
|
this.optionSelected = undefined;
|
|
565
564
|
this.index = -1;
|
|
566
565
|
}
|
|
567
|
-
|
|
568
|
-
console.warn('optionSelected', this.optionSelected);
|
|
569
566
|
}
|
|
570
567
|
|
|
571
568
|
// If no matching options were found in either mode
|
|
@@ -592,11 +589,6 @@ class AuroMenu extends AuroElement$1 {
|
|
|
592
589
|
|
|
593
590
|
// Process all other UI updates
|
|
594
591
|
this.updateItemsState(changedProperties);
|
|
595
|
-
|
|
596
|
-
if (changedProperties.has('optionSelected')) {
|
|
597
|
-
console.warn('updated: optionSelected', this.optionSelected);
|
|
598
|
-
this.notifySelectionChange();
|
|
599
|
-
}
|
|
600
592
|
}
|
|
601
593
|
|
|
602
594
|
/**
|
|
@@ -490,6 +490,10 @@ class AuroMenu extends AuroElement$1 {
|
|
|
490
490
|
updated(changedProperties) {
|
|
491
491
|
super.updated(changedProperties);
|
|
492
492
|
|
|
493
|
+
if (changedProperties.has('optionSelected')) {
|
|
494
|
+
this.notifySelectionChange();
|
|
495
|
+
}
|
|
496
|
+
|
|
493
497
|
if (changedProperties.has('multiSelect') && !changedProperties.has("value")) {
|
|
494
498
|
// Reset selection if multiSelect mode changes
|
|
495
499
|
this.clearSelection();
|
|
@@ -497,8 +501,6 @@ class AuroMenu extends AuroElement$1 {
|
|
|
497
501
|
|
|
498
502
|
|
|
499
503
|
if (changedProperties.has("value")) {
|
|
500
|
-
console.warn('menu value updated', this.value);
|
|
501
|
-
console.info('available options', this.availableOptions);
|
|
502
504
|
// Handle null/undefined case
|
|
503
505
|
if (this.value === undefined || this.value === null) {
|
|
504
506
|
this.clearSelection();
|
|
@@ -510,12 +512,9 @@ class AuroMenu extends AuroElement$1 {
|
|
|
510
512
|
|
|
511
513
|
this.optionSelected = matchingOptions.length > 0 ? matchingOptions : undefined;
|
|
512
514
|
} else {
|
|
513
|
-
console.info('single-select mode, looking for value', this.value);
|
|
514
515
|
// In single-select mode, this.value should be a string
|
|
515
516
|
const matchingOptions = this.items.find((item) => item.value === this.value);
|
|
516
517
|
|
|
517
|
-
console.info('matchingOptions', matchingOptions);
|
|
518
|
-
|
|
519
518
|
if (matchingOptions) {
|
|
520
519
|
this.optionSelected = matchingOptions;
|
|
521
520
|
this.index = this.items.indexOf(matchingOptions);
|
|
@@ -524,8 +523,6 @@ class AuroMenu extends AuroElement$1 {
|
|
|
524
523
|
this.optionSelected = undefined;
|
|
525
524
|
this.index = -1;
|
|
526
525
|
}
|
|
527
|
-
|
|
528
|
-
console.warn('optionSelected', this.optionSelected);
|
|
529
526
|
}
|
|
530
527
|
|
|
531
528
|
// If no matching options were found in either mode
|
|
@@ -552,11 +549,6 @@ class AuroMenu extends AuroElement$1 {
|
|
|
552
549
|
|
|
553
550
|
// Process all other UI updates
|
|
554
551
|
this.updateItemsState(changedProperties);
|
|
555
|
-
|
|
556
|
-
if (changedProperties.has('optionSelected')) {
|
|
557
|
-
console.warn('updated: optionSelected', this.optionSelected);
|
|
558
|
-
this.notifySelectionChange();
|
|
559
|
-
}
|
|
560
552
|
}
|
|
561
553
|
|
|
562
554
|
/**
|