@aurodesignsystem-dev/auro-formkit 0.0.0-pr1052.3 → 0.0.0-pr1052.5

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.
@@ -5,38 +5,41 @@
5
5
 
6
6
  ## Properties
7
7
 
8
- | Property | Attribute | Modifiers | Type | Default | Description |
9
- |---------------------------------|---------------------------------|-----------|-----------------------|----------------|--------------------------------------------------|
10
- | [autoPlacement](#autoPlacement) | `autoPlacement` | | `boolean` | | If declared, bib's position will be automatically calculated where to appear. |
11
- | [autocomplete](#autocomplete) | `autocomplete` | | `string` | "false" | An enumerated attribute that defines what the user agent can suggest for autofill. At this time, only `autocomplete="off"` is supported. |
12
- | [checkmark](#checkmark) | `checkmark` | | `boolean` | | When attribute is present auro-menu will apply check marks to selected options. |
13
- | [disabled](#disabled) | `disabled` | | `boolean` | | If set, disables the combobox. |
14
- | [dvInputOnly](#dvInputOnly) | `dvInputOnly` | | `boolean` | | If defined, the display value slot content will only mask the HTML5 input element. The inputs label will not be masked. |
15
- | [error](#error) | `error` | | `string` | | When defined, sets persistent validity to `customError` and sets the validation message to the attribute value. |
16
- | [format](#format) | `format` | | `string` | | Specifies the input mask format. |
17
- | [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. |
18
- | [inputValue](#inputValue) | | readonly | `string \| undefined` | | Returns the current value of the input element within the combobox. |
19
- | [inputmode](#inputmode) | `inputmode` | | `string` | | Exposes inputmode attribute for input. |
20
- | [largeFullscreenHeadline](#largeFullscreenHeadline) | `largeFullscreenHeadline` | | `boolean` | | If declared, make bib.fullscreen.headline in HeadingDisplay.<br />Otherwise, Heading 600 |
21
- | [layout](#layout) | | | `string` | | |
22
- | [matchWidth](#matchWidth) | `matchWidth` | | `boolean` | true | If declared, the popover and trigger will be set to the same width. |
23
- | [noFilter](#noFilter) | `noFilter` | | `boolean` | | If set, combobox will not filter menuoptions based in input. |
24
- | [noFlip](#noFlip) | `noFlip` | | `boolean` | "false" | If declared, the bib will NOT flip to an alternate position<br />when there isn't enough space in the specified `placement`. |
25
- | [noValidate](#noValidate) | `noValidate` | | `boolean` | | If set, disables auto-validation on blur. |
26
- | [offset](#offset) | `offset` | | `number` | "0" | Gap between the trigger element and bib. |
27
- | [onDark](#onDark) | `onDark` | | `boolean` | | If declared, onDark styles will be applied to the trigger. |
28
- | [optionSelected](#optionSelected) | `optionSelected` | | `HTMLElement` | | Specifies the current selected option. |
29
- | [persistInput](#persistInput) | `persistInput` | | `Boolean` | | If declared, selecting a menu option will not change the input value. By doing so,<br />the current menu filter will be preserved and the user can continue from their last<br />filter state. It is recommended to use this in combination with the `displayValue` slot. |
30
- | [placeholder](#placeholder) | `placeholder` | | `string` | | Define custom placeholder text, only supported by date input formats. |
31
- | [placement](#placement) | `placement` | | `string` | "bottom-start" | Position where the bib should appear relative to the trigger.<br />Accepted values:<br />"top" \| "right" \| "bottom" \| "left" \|<br />"bottom-start" \| "top-start" \| "top-end" \|<br />"right-start" \| "right-end" \| "bottom-end" \|<br />"left-start" \| "left-end" |
32
- | [required](#required) | `required` | | `boolean` | | Populates the `required` attribute on the input. Used for client-side validation. |
33
- | [setCustomValidity](#setCustomValidity) | `setCustomValidity` | | `string` | | Sets a custom help text message to display for all validityStates. |
34
- | [setCustomValidityCustomError](#setCustomValidityCustomError) | `setCustomValidityCustomError` | | `string` | | Custom help text message to display when validity = `customError`. |
35
- | [setCustomValidityValueMissing](#setCustomValidityValueMissing) | `setCustomValidityValueMissing` | | `string` | | Custom help text message to display when validity = `valueMissing`. |
36
- | [triggerIcon](#triggerIcon) | `triggerIcon` | | `boolean` | | If set, the `icon` attribute will be applied to the trigger `auro-input` element. |
37
- | [type](#type) | `type` | | `string` | | Applies the defined value as the type attribute on auro-input. |
38
- | [validity](#validity) | `validity` | | `string` | | Specifies the `validityState` this element is in. |
39
- | [value](#value) | `value` | | `string` | | Value selected for the dropdown menu. |
8
+ | Property | Attribute | Type | Default | Description |
9
+ |---------------------------------|---------------------------------|-----------------------|----------------------------|--------------------------------------------------|
10
+ | [autoPlacement](#autoPlacement) | `autoPlacement` | `boolean` | false | If declared, bib's position will be automatically calculated where to appear. |
11
+ | [autocomplete](#autocomplete) | `autocomplete` | `string` | "false" | An enumerated attribute that defines what the user agent can suggest for autofill. At this time, only `autocomplete="off"` is supported. |
12
+ | [checkmark](#checkmark) | `checkmark` | `boolean` | false | When attribute is present auro-menu will apply check marks to selected options. |
13
+ | [disabled](#disabled) | `disabled` | `boolean` | false | If set, disables the combobox. |
14
+ | [dvInputOnly](#dvInputOnly) | `dvInputOnly` | `boolean` | false | If defined, the display value slot content will only mask the HTML5 input element. The inputs label will not be masked. |
15
+ | [error](#error) | `error` | `string` | | When defined, sets persistent validity to `customError` and sets the validation message to the attribute value. |
16
+ | [format](#format) | `format` | `string` | | Specifies the input mask format. |
17
+ | [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. |
18
+ | [inputValue](#inputValue) | | `string \| undefined` | | Returns the current value of the input element within the combobox. |
19
+ | [inputmode](#inputmode) | `inputmode` | `string` | | Exposes inputmode attribute for input. |
20
+ | [largeFullscreenHeadline](#largeFullscreenHeadline) | `largeFullscreenHeadline` | `boolean` | | If declared, make bib.fullscreen.headline in HeadingDisplay.<br />Otherwise, Heading 600 |
21
+ | [layout](#layout) | | `string` | "classic" | |
22
+ | [matchWidth](#matchWidth) | `matchWidth` | `boolean` | true | If declared, the popover and trigger will be set to the same width. |
23
+ | [msgSelectionMissing](#msgSelectionMissing) | | `string` | "Please select an option." | |
24
+ | [noFilter](#noFilter) | `noFilter` | `boolean` | false | If set, combobox will not filter menuoptions based in input. |
25
+ | [noFlip](#noFlip) | `noFlip` | `boolean` | "false" | If declared, the bib will NOT flip to an alternate position<br />when there isn't enough space in the specified `placement`. |
26
+ | [noValidate](#noValidate) | `noValidate` | `boolean` | false | If set, disables auto-validation on blur. |
27
+ | [offset](#offset) | `offset` | `number` | "0" | Gap between the trigger element and bib. |
28
+ | [onDark](#onDark) | `onDark` | `boolean` | | If declared, onDark styles will be applied to the trigger. |
29
+ | [optionSelected](#optionSelected) | `optionSelected` | `HTMLElement` | | Specifies the current selected option. |
30
+ | [persistInput](#persistInput) | `persistInput` | `Boolean` | false | If declared, selecting a menu option will not change the input value. By doing so,<br />the current menu filter will be preserved and the user can continue from their last<br />filter state. It is recommended to use this in combination with the `displayValue` slot. |
31
+ | [placeholder](#placeholder) | `placeholder` | `string` | | Define custom placeholder text, only supported by date input formats. |
32
+ | [placement](#placement) | `placement` | `string` | "bottom-start" | Position where the bib should appear relative to the trigger.<br />Accepted values:<br />"top" \| "right" \| "bottom" \| "left" \|<br />"bottom-start" \| "top-start" \| "top-end" \|<br />"right-start" \| "right-end" \| "bottom-end" \|<br />"left-start" \| "left-end" |
33
+ | [required](#required) | `required` | `boolean` | false | Populates the `required` attribute on the input. Used for client-side validation. |
34
+ | [setCustomValidity](#setCustomValidity) | `setCustomValidity` | `string` | | Sets a custom help text message to display for all validityStates. |
35
+ | [setCustomValidityCustomError](#setCustomValidityCustomError) | `setCustomValidityCustomError` | `string` | | Custom help text message to display when validity = `customError`. |
36
+ | [setCustomValidityValueMissing](#setCustomValidityValueMissing) | `setCustomValidityValueMissing` | `string` | | Custom help text message to display when validity = `valueMissing`. |
37
+ | [shape](#shape) | | `string` | "classic" | |
38
+ | [size](#size) | | `string` | "xl" | |
39
+ | [triggerIcon](#triggerIcon) | `triggerIcon` | `boolean` | false | If set, the `icon` attribute will be applied to the trigger `auro-input` element. |
40
+ | [type](#type) | `type` | `string` | | Applies the defined value as the type attribute on auro-input. |
41
+ | [validity](#validity) | `validity` | `string` | | Specifies the `validityState` this element is in. |
42
+ | [value](#value) | `value` | `string` | "undefined" | Value selected for the dropdown menu. |
40
43
 
41
44
  ## Methods
42
45
 
@@ -16193,80 +16193,59 @@ class AuroCombobox extends AuroElement$1 {
16193
16193
  constructor() {
16194
16194
  super();
16195
16195
 
16196
- this.matchWidth = true;
16197
-
16198
- this.privateDefaults();
16199
- }
16200
-
16201
- /**
16202
- * @private
16203
- * @returns {void} Internal defaults.
16204
- */
16205
- privateDefaults() {
16206
- this.touched = false;
16207
- this.dropdownOpen = false;
16208
- this.dropdownId = undefined;
16209
- this.onDark = false;
16210
-
16211
- this.noFilter = false;
16212
- this.validity = undefined;
16213
- this.value = undefined;
16214
- this.optionSelected = undefined;
16215
-
16216
- this.checkmark = false;
16196
+ // Defaults that effect the combobox behavior and state
16217
16197
  this.disabled = false;
16198
+ this.msgSelectionMissing = 'Please select an option.';
16199
+ this.noFilter = false;
16218
16200
  this.noValidate = false;
16219
- this.required = false;
16220
- this.triggerIcon = false;
16221
-
16222
- this.availableOptions = [];
16223
16201
  this.optionActive = null;
16224
- this.msgSelectionMissing = 'Please select an option.';
16225
-
16226
- this.fullscreenBreakpoint = 'sm';
16227
- this.largeFullscreenHeadline = false;
16228
-
16229
- this.validation = new AuroFormValidation$1();
16230
-
16231
- this.runtimeUtils = new AuroLibraryRuntimeUtils$6();
16232
-
16233
- this.isHiddenWhileLoading = false;
16234
-
16235
16202
  this.persistInput = false;
16203
+ this.required = false;
16204
+ this.value = undefined;
16236
16205
 
16206
+ // Defaults that effect the overall layout of the combobox
16207
+ this.checkmark = false;
16237
16208
  this.dvInputOnly = false;
16238
-
16239
- // Error message
16240
- this.errorMessage = null;
16241
-
16242
- // Layout Config
16243
- /**
16244
- * @private
16245
- */
16209
+ this.fullscreenBreakpoint = 'sm';
16246
16210
  this.layout = 'classic';
16247
-
16248
- /**
16249
- * @private
16250
- */
16211
+ this.matchWidth = true;
16251
16212
  this.shape = 'classic';
16252
-
16253
- /**
16254
- * @private
16255
- */
16256
16213
  this.size = 'xl';
16214
+ this.triggerIcon = false;
16257
16215
 
16258
- // floaterConfig
16216
+ // Defaults that effect the dropdown
16259
16217
  this.placement = 'bottom-start';
16260
16218
  this.offset = 0;
16261
16219
  this.noFlip = false;
16262
16220
  this.autoPlacement = false;
16263
16221
 
16222
+ this.privateDefaults();
16223
+ }
16224
+
16225
+ /**
16226
+ * @private
16227
+ * @returns {void} Internal defaults.
16228
+ */
16229
+ privateDefaults() {
16264
16230
  const versioning = new AuroDependencyVersioning$3();
16265
16231
 
16266
16232
  this.dropdownTag = versioning.generateTag('auro-formkit-combobox-dropdown', dropdownVersion, AuroDropdown);
16267
16233
  this.bibtemplateTag = versioning.generateTag('auro-formkit-combobox-bibtemplate', bibTemplateVersion, AuroBibtemplate);
16268
16234
  this.inputTag = versioning.generateTag('auro-formkit-combobox-input', inputVersion, AuroInput);
16269
16235
  this.helpTextTag = versioning.generateTag('auro-formkit-input-helptext', '1.0.0', AuroHelpText);
16236
+
16237
+ this.availableOptions = [];
16238
+ this.dropdownId = undefined;
16239
+ this.dropdownOpen = false;
16240
+ this.errorMessage = null;
16241
+ this.isHiddenWhileLoading = false;
16242
+ this.largeFullscreenHeadline = false;
16243
+ this.onDark = false;
16244
+ this.optionSelected = undefined;
16245
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$6();
16246
+ this.touched = false;
16247
+ this.validation = new AuroFormValidation$1();
16248
+ this.validity = undefined;
16270
16249
  }
16271
16250
 
16272
16251
  // This function is to define props used within the scope of this component
@@ -16591,6 +16570,13 @@ class AuroCombobox extends AuroElement$1 {
16591
16570
  return this.input.value;
16592
16571
  }
16593
16572
 
16573
+ /**
16574
+ * Sets the value of the input element within the combobox.
16575
+ */
16576
+ set inputValue(value) {
16577
+ this.input.value = value;
16578
+ }
16579
+
16594
16580
  /**
16595
16581
  * Checks if the element is valid.
16596
16582
  * @returns {boolean} - Returns true if the element is valid, false otherwise.
@@ -16730,6 +16716,7 @@ class AuroCombobox extends AuroElement$1 {
16730
16716
  * @returns {void}
16731
16717
  */
16732
16718
  handleMenuOptions() {
16719
+ console.warn('handleMenuOptions()');
16733
16720
  this.resetMenuMatchword();
16734
16721
 
16735
16722
  this.generateOptionsArray();
@@ -16737,7 +16724,7 @@ class AuroCombobox extends AuroElement$1 {
16737
16724
  this.updateFilter();
16738
16725
 
16739
16726
  if (this.value && this.input.value && !this.menu.value) {
16740
- this.menu.value = this.value;
16727
+ this.syncValuesAndStates();
16741
16728
  }
16742
16729
  }
16743
16730
 
@@ -16917,6 +16904,7 @@ class AuroCombobox extends AuroElement$1 {
16917
16904
 
16918
16905
  // handle the menu event for an option selection
16919
16906
  this.menu.addEventListener('auroMenu-selectedOption', (evt) => {
16907
+ console.warn('event auroMenu-selectedOption', evt);
16920
16908
  if (this.menu.optionSelected) {
16921
16909
  const selected = this.menu.optionSelected;
16922
16910
 
@@ -16926,7 +16914,7 @@ class AuroCombobox extends AuroElement$1 {
16926
16914
 
16927
16915
  if (!this.value || this.value !== this.optionSelected.value) {
16928
16916
  this.value = this.optionSelected.value;
16929
- this.menu.value = this.value;
16917
+ // this.menu.value = this.value;
16930
16918
  }
16931
16919
 
16932
16920
  this.updateTriggerTextDisplay();
@@ -17021,6 +17009,7 @@ class AuroCombobox extends AuroElement$1 {
17021
17009
  * @returns {void}
17022
17010
  */
17023
17011
  handleInputValueChange(event) {
17012
+ console.warn('handleInputValueChange', event);
17024
17013
  if (event.target === this.inputInBib) {
17025
17014
  this.input.value = this.inputInBib.value;
17026
17015
  return;
@@ -17304,6 +17293,7 @@ class AuroCombobox extends AuroElement$1 {
17304
17293
  * @returns {void}
17305
17294
  */
17306
17295
  handleSlotChange(event) {
17296
+ console.warn('handleSlotChange', event);
17307
17297
  switch (event.target.name) {
17308
17298
  case '':
17309
17299
  if (!this.menu || this.menu !== this.querySelector('auro-menu, [auro-menu]')) {
@@ -16041,80 +16041,59 @@ class AuroCombobox extends AuroElement$1 {
16041
16041
  constructor() {
16042
16042
  super();
16043
16043
 
16044
- this.matchWidth = true;
16045
-
16046
- this.privateDefaults();
16047
- }
16048
-
16049
- /**
16050
- * @private
16051
- * @returns {void} Internal defaults.
16052
- */
16053
- privateDefaults() {
16054
- this.touched = false;
16055
- this.dropdownOpen = false;
16056
- this.dropdownId = undefined;
16057
- this.onDark = false;
16058
-
16059
- this.noFilter = false;
16060
- this.validity = undefined;
16061
- this.value = undefined;
16062
- this.optionSelected = undefined;
16063
-
16064
- this.checkmark = false;
16044
+ // Defaults that effect the combobox behavior and state
16065
16045
  this.disabled = false;
16046
+ this.msgSelectionMissing = 'Please select an option.';
16047
+ this.noFilter = false;
16066
16048
  this.noValidate = false;
16067
- this.required = false;
16068
- this.triggerIcon = false;
16069
-
16070
- this.availableOptions = [];
16071
16049
  this.optionActive = null;
16072
- this.msgSelectionMissing = 'Please select an option.';
16073
-
16074
- this.fullscreenBreakpoint = 'sm';
16075
- this.largeFullscreenHeadline = false;
16076
-
16077
- this.validation = new AuroFormValidation$1();
16078
-
16079
- this.runtimeUtils = new AuroLibraryRuntimeUtils$6();
16080
-
16081
- this.isHiddenWhileLoading = false;
16082
-
16083
16050
  this.persistInput = false;
16051
+ this.required = false;
16052
+ this.value = undefined;
16084
16053
 
16054
+ // Defaults that effect the overall layout of the combobox
16055
+ this.checkmark = false;
16085
16056
  this.dvInputOnly = false;
16086
-
16087
- // Error message
16088
- this.errorMessage = null;
16089
-
16090
- // Layout Config
16091
- /**
16092
- * @private
16093
- */
16057
+ this.fullscreenBreakpoint = 'sm';
16094
16058
  this.layout = 'classic';
16095
-
16096
- /**
16097
- * @private
16098
- */
16059
+ this.matchWidth = true;
16099
16060
  this.shape = 'classic';
16100
-
16101
- /**
16102
- * @private
16103
- */
16104
16061
  this.size = 'xl';
16062
+ this.triggerIcon = false;
16105
16063
 
16106
- // floaterConfig
16064
+ // Defaults that effect the dropdown
16107
16065
  this.placement = 'bottom-start';
16108
16066
  this.offset = 0;
16109
16067
  this.noFlip = false;
16110
16068
  this.autoPlacement = false;
16111
16069
 
16070
+ this.privateDefaults();
16071
+ }
16072
+
16073
+ /**
16074
+ * @private
16075
+ * @returns {void} Internal defaults.
16076
+ */
16077
+ privateDefaults() {
16112
16078
  const versioning = new AuroDependencyVersioning$3();
16113
16079
 
16114
16080
  this.dropdownTag = versioning.generateTag('auro-formkit-combobox-dropdown', dropdownVersion, AuroDropdown);
16115
16081
  this.bibtemplateTag = versioning.generateTag('auro-formkit-combobox-bibtemplate', bibTemplateVersion, AuroBibtemplate);
16116
16082
  this.inputTag = versioning.generateTag('auro-formkit-combobox-input', inputVersion, AuroInput);
16117
16083
  this.helpTextTag = versioning.generateTag('auro-formkit-input-helptext', '1.0.0', AuroHelpText);
16084
+
16085
+ this.availableOptions = [];
16086
+ this.dropdownId = undefined;
16087
+ this.dropdownOpen = false;
16088
+ this.errorMessage = null;
16089
+ this.isHiddenWhileLoading = false;
16090
+ this.largeFullscreenHeadline = false;
16091
+ this.onDark = false;
16092
+ this.optionSelected = undefined;
16093
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$6();
16094
+ this.touched = false;
16095
+ this.validation = new AuroFormValidation$1();
16096
+ this.validity = undefined;
16118
16097
  }
16119
16098
 
16120
16099
  // This function is to define props used within the scope of this component
@@ -16439,6 +16418,13 @@ class AuroCombobox extends AuroElement$1 {
16439
16418
  return this.input.value;
16440
16419
  }
16441
16420
 
16421
+ /**
16422
+ * Sets the value of the input element within the combobox.
16423
+ */
16424
+ set inputValue(value) {
16425
+ this.input.value = value;
16426
+ }
16427
+
16442
16428
  /**
16443
16429
  * Checks if the element is valid.
16444
16430
  * @returns {boolean} - Returns true if the element is valid, false otherwise.
@@ -16578,6 +16564,7 @@ class AuroCombobox extends AuroElement$1 {
16578
16564
  * @returns {void}
16579
16565
  */
16580
16566
  handleMenuOptions() {
16567
+ console.warn('handleMenuOptions()');
16581
16568
  this.resetMenuMatchword();
16582
16569
 
16583
16570
  this.generateOptionsArray();
@@ -16585,7 +16572,7 @@ class AuroCombobox extends AuroElement$1 {
16585
16572
  this.updateFilter();
16586
16573
 
16587
16574
  if (this.value && this.input.value && !this.menu.value) {
16588
- this.menu.value = this.value;
16575
+ this.syncValuesAndStates();
16589
16576
  }
16590
16577
  }
16591
16578
 
@@ -16765,6 +16752,7 @@ class AuroCombobox extends AuroElement$1 {
16765
16752
 
16766
16753
  // handle the menu event for an option selection
16767
16754
  this.menu.addEventListener('auroMenu-selectedOption', (evt) => {
16755
+ console.warn('event auroMenu-selectedOption', evt);
16768
16756
  if (this.menu.optionSelected) {
16769
16757
  const selected = this.menu.optionSelected;
16770
16758
 
@@ -16774,7 +16762,7 @@ class AuroCombobox extends AuroElement$1 {
16774
16762
 
16775
16763
  if (!this.value || this.value !== this.optionSelected.value) {
16776
16764
  this.value = this.optionSelected.value;
16777
- this.menu.value = this.value;
16765
+ // this.menu.value = this.value;
16778
16766
  }
16779
16767
 
16780
16768
  this.updateTriggerTextDisplay();
@@ -16869,6 +16857,7 @@ class AuroCombobox extends AuroElement$1 {
16869
16857
  * @returns {void}
16870
16858
  */
16871
16859
  handleInputValueChange(event) {
16860
+ console.warn('handleInputValueChange', event);
16872
16861
  if (event.target === this.inputInBib) {
16873
16862
  this.input.value = this.inputInBib.value;
16874
16863
  return;
@@ -17152,6 +17141,7 @@ class AuroCombobox extends AuroElement$1 {
17152
17141
  * @returns {void}
17153
17142
  */
17154
17143
  handleSlotChange(event) {
17144
+ console.warn('handleSlotChange', event);
17155
17145
  switch (event.target.name) {
17156
17146
  case '':
17157
17147
  if (!this.menu || this.menu !== this.querySelector('auro-menu, [auro-menu]')) {
@@ -273,52 +273,50 @@ export class AuroCombobox extends AuroElement {
273
273
  *
274
274
  */
275
275
  static register(name?: string): void;
276
- matchWidth: boolean;
277
- /**
278
- * @private
279
- * @returns {void} Internal defaults.
280
- */
281
- private privateDefaults;
282
- touched: boolean;
283
- dropdownOpen: any;
284
- dropdownId: any;
285
- onDark: boolean;
286
- noFilter: boolean;
287
- validity: any;
288
- value: any;
289
- optionSelected: any;
290
- checkmark: boolean;
291
276
  disabled: boolean;
277
+ msgSelectionMissing: string;
278
+ noFilter: boolean;
292
279
  noValidate: boolean;
293
- required: boolean;
294
- triggerIcon: boolean;
295
- availableOptions: any[];
296
280
  optionActive: any;
297
- msgSelectionMissing: string;
298
- fullscreenBreakpoint: string;
299
- largeFullscreenHeadline: boolean;
300
- validation: AuroFormValidation;
301
- runtimeUtils: any;
302
- isHiddenWhileLoading: boolean;
303
281
  persistInput: boolean;
282
+ required: boolean;
283
+ value: any;
284
+ checkmark: boolean;
304
285
  dvInputOnly: boolean;
305
- errorMessage: any;
306
- /**
307
- * @private
308
- */
309
- private shape;
310
- /**
311
- * @private
312
- */
313
- private size;
286
+ fullscreenBreakpoint: string;
287
+ matchWidth: boolean;
288
+ shape: string;
289
+ size: string;
290
+ triggerIcon: boolean;
314
291
  placement: string;
315
292
  offset: number;
316
293
  noFlip: boolean;
317
294
  autoPlacement: boolean;
295
+ /**
296
+ * @private
297
+ * @returns {void} Internal defaults.
298
+ */
299
+ private privateDefaults;
318
300
  dropdownTag: any;
319
301
  bibtemplateTag: any;
320
302
  inputTag: any;
321
303
  helpTextTag: any;
304
+ availableOptions: any[];
305
+ dropdownId: any;
306
+ dropdownOpen: any;
307
+ errorMessage: any;
308
+ isHiddenWhileLoading: boolean;
309
+ largeFullscreenHeadline: boolean;
310
+ onDark: boolean;
311
+ optionSelected: any;
312
+ runtimeUtils: any;
313
+ touched: boolean;
314
+ validation: AuroFormValidation;
315
+ validity: any;
316
+ /**
317
+ * Sets the value of the input element within the combobox.
318
+ */
319
+ set inputValue(value: string | undefined);
322
320
  /**
323
321
  * Returns the current value of the input element within the combobox.
324
322
  * @returns {string|undefined} The value of the input element, or undefined if the input is not present.
@@ -15959,80 +15959,59 @@ class AuroCombobox extends AuroElement {
15959
15959
  constructor() {
15960
15960
  super();
15961
15961
 
15962
- this.matchWidth = true;
15963
-
15964
- this.privateDefaults();
15965
- }
15966
-
15967
- /**
15968
- * @private
15969
- * @returns {void} Internal defaults.
15970
- */
15971
- privateDefaults() {
15972
- this.touched = false;
15973
- this.dropdownOpen = false;
15974
- this.dropdownId = undefined;
15975
- this.onDark = false;
15976
-
15977
- this.noFilter = false;
15978
- this.validity = undefined;
15979
- this.value = undefined;
15980
- this.optionSelected = undefined;
15981
-
15982
- this.checkmark = false;
15962
+ // Defaults that effect the combobox behavior and state
15983
15963
  this.disabled = false;
15964
+ this.msgSelectionMissing = 'Please select an option.';
15965
+ this.noFilter = false;
15984
15966
  this.noValidate = false;
15985
- this.required = false;
15986
- this.triggerIcon = false;
15987
-
15988
- this.availableOptions = [];
15989
15967
  this.optionActive = null;
15990
- this.msgSelectionMissing = 'Please select an option.';
15991
-
15992
- this.fullscreenBreakpoint = 'sm';
15993
- this.largeFullscreenHeadline = false;
15994
-
15995
- this.validation = new AuroFormValidation$1();
15996
-
15997
- this.runtimeUtils = new AuroLibraryRuntimeUtils$6();
15998
-
15999
- this.isHiddenWhileLoading = false;
16000
-
16001
15968
  this.persistInput = false;
15969
+ this.required = false;
15970
+ this.value = undefined;
16002
15971
 
15972
+ // Defaults that effect the overall layout of the combobox
15973
+ this.checkmark = false;
16003
15974
  this.dvInputOnly = false;
16004
-
16005
- // Error message
16006
- this.errorMessage = null;
16007
-
16008
- // Layout Config
16009
- /**
16010
- * @private
16011
- */
15975
+ this.fullscreenBreakpoint = 'sm';
16012
15976
  this.layout = 'classic';
16013
-
16014
- /**
16015
- * @private
16016
- */
15977
+ this.matchWidth = true;
16017
15978
  this.shape = 'classic';
16018
-
16019
- /**
16020
- * @private
16021
- */
16022
15979
  this.size = 'xl';
15980
+ this.triggerIcon = false;
16023
15981
 
16024
- // floaterConfig
15982
+ // Defaults that effect the dropdown
16025
15983
  this.placement = 'bottom-start';
16026
15984
  this.offset = 0;
16027
15985
  this.noFlip = false;
16028
15986
  this.autoPlacement = false;
16029
15987
 
15988
+ this.privateDefaults();
15989
+ }
15990
+
15991
+ /**
15992
+ * @private
15993
+ * @returns {void} Internal defaults.
15994
+ */
15995
+ privateDefaults() {
16030
15996
  const versioning = new AuroDependencyVersioning$3();
16031
15997
 
16032
15998
  this.dropdownTag = versioning.generateTag('auro-formkit-combobox-dropdown', dropdownVersion, AuroDropdown);
16033
15999
  this.bibtemplateTag = versioning.generateTag('auro-formkit-combobox-bibtemplate', bibTemplateVersion, AuroBibtemplate);
16034
16000
  this.inputTag = versioning.generateTag('auro-formkit-combobox-input', inputVersion, AuroInput);
16035
16001
  this.helpTextTag = versioning.generateTag('auro-formkit-input-helptext', '1.0.0', AuroHelpText);
16002
+
16003
+ this.availableOptions = [];
16004
+ this.dropdownId = undefined;
16005
+ this.dropdownOpen = false;
16006
+ this.errorMessage = null;
16007
+ this.isHiddenWhileLoading = false;
16008
+ this.largeFullscreenHeadline = false;
16009
+ this.onDark = false;
16010
+ this.optionSelected = undefined;
16011
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$6();
16012
+ this.touched = false;
16013
+ this.validation = new AuroFormValidation$1();
16014
+ this.validity = undefined;
16036
16015
  }
16037
16016
 
16038
16017
  // This function is to define props used within the scope of this component
@@ -16357,6 +16336,13 @@ class AuroCombobox extends AuroElement {
16357
16336
  return this.input.value;
16358
16337
  }
16359
16338
 
16339
+ /**
16340
+ * Sets the value of the input element within the combobox.
16341
+ */
16342
+ set inputValue(value) {
16343
+ this.input.value = value;
16344
+ }
16345
+
16360
16346
  /**
16361
16347
  * Checks if the element is valid.
16362
16348
  * @returns {boolean} - Returns true if the element is valid, false otherwise.
@@ -16496,6 +16482,7 @@ class AuroCombobox extends AuroElement {
16496
16482
  * @returns {void}
16497
16483
  */
16498
16484
  handleMenuOptions() {
16485
+ console.warn('handleMenuOptions()');
16499
16486
  this.resetMenuMatchword();
16500
16487
 
16501
16488
  this.generateOptionsArray();
@@ -16503,7 +16490,7 @@ class AuroCombobox extends AuroElement {
16503
16490
  this.updateFilter();
16504
16491
 
16505
16492
  if (this.value && this.input.value && !this.menu.value) {
16506
- this.menu.value = this.value;
16493
+ this.syncValuesAndStates();
16507
16494
  }
16508
16495
  }
16509
16496
 
@@ -16683,6 +16670,7 @@ class AuroCombobox extends AuroElement {
16683
16670
 
16684
16671
  // handle the menu event for an option selection
16685
16672
  this.menu.addEventListener('auroMenu-selectedOption', (evt) => {
16673
+ console.warn('event auroMenu-selectedOption', evt);
16686
16674
  if (this.menu.optionSelected) {
16687
16675
  const selected = this.menu.optionSelected;
16688
16676
 
@@ -16692,7 +16680,7 @@ class AuroCombobox extends AuroElement {
16692
16680
 
16693
16681
  if (!this.value || this.value !== this.optionSelected.value) {
16694
16682
  this.value = this.optionSelected.value;
16695
- this.menu.value = this.value;
16683
+ // this.menu.value = this.value;
16696
16684
  }
16697
16685
 
16698
16686
  this.updateTriggerTextDisplay();
@@ -16787,6 +16775,7 @@ class AuroCombobox extends AuroElement {
16787
16775
  * @returns {void}
16788
16776
  */
16789
16777
  handleInputValueChange(event) {
16778
+ console.warn('handleInputValueChange', event);
16790
16779
  if (event.target === this.inputInBib) {
16791
16780
  this.input.value = this.inputInBib.value;
16792
16781
  return;
@@ -17070,6 +17059,7 @@ class AuroCombobox extends AuroElement {
17070
17059
  * @returns {void}
17071
17060
  */
17072
17061
  handleSlotChange(event) {
17062
+ console.warn('handleSlotChange', event);
17073
17063
  switch (event.target.name) {
17074
17064
  case '':
17075
17065
  if (!this.menu || this.menu !== this.querySelector('auro-menu, [auro-menu]')) {
@@ -15959,80 +15959,59 @@ class AuroCombobox extends AuroElement {
15959
15959
  constructor() {
15960
15960
  super();
15961
15961
 
15962
- this.matchWidth = true;
15963
-
15964
- this.privateDefaults();
15965
- }
15966
-
15967
- /**
15968
- * @private
15969
- * @returns {void} Internal defaults.
15970
- */
15971
- privateDefaults() {
15972
- this.touched = false;
15973
- this.dropdownOpen = false;
15974
- this.dropdownId = undefined;
15975
- this.onDark = false;
15976
-
15977
- this.noFilter = false;
15978
- this.validity = undefined;
15979
- this.value = undefined;
15980
- this.optionSelected = undefined;
15981
-
15982
- this.checkmark = false;
15962
+ // Defaults that effect the combobox behavior and state
15983
15963
  this.disabled = false;
15964
+ this.msgSelectionMissing = 'Please select an option.';
15965
+ this.noFilter = false;
15984
15966
  this.noValidate = false;
15985
- this.required = false;
15986
- this.triggerIcon = false;
15987
-
15988
- this.availableOptions = [];
15989
15967
  this.optionActive = null;
15990
- this.msgSelectionMissing = 'Please select an option.';
15991
-
15992
- this.fullscreenBreakpoint = 'sm';
15993
- this.largeFullscreenHeadline = false;
15994
-
15995
- this.validation = new AuroFormValidation$1();
15996
-
15997
- this.runtimeUtils = new AuroLibraryRuntimeUtils$6();
15998
-
15999
- this.isHiddenWhileLoading = false;
16000
-
16001
15968
  this.persistInput = false;
15969
+ this.required = false;
15970
+ this.value = undefined;
16002
15971
 
15972
+ // Defaults that effect the overall layout of the combobox
15973
+ this.checkmark = false;
16003
15974
  this.dvInputOnly = false;
16004
-
16005
- // Error message
16006
- this.errorMessage = null;
16007
-
16008
- // Layout Config
16009
- /**
16010
- * @private
16011
- */
15975
+ this.fullscreenBreakpoint = 'sm';
16012
15976
  this.layout = 'classic';
16013
-
16014
- /**
16015
- * @private
16016
- */
15977
+ this.matchWidth = true;
16017
15978
  this.shape = 'classic';
16018
-
16019
- /**
16020
- * @private
16021
- */
16022
15979
  this.size = 'xl';
15980
+ this.triggerIcon = false;
16023
15981
 
16024
- // floaterConfig
15982
+ // Defaults that effect the dropdown
16025
15983
  this.placement = 'bottom-start';
16026
15984
  this.offset = 0;
16027
15985
  this.noFlip = false;
16028
15986
  this.autoPlacement = false;
16029
15987
 
15988
+ this.privateDefaults();
15989
+ }
15990
+
15991
+ /**
15992
+ * @private
15993
+ * @returns {void} Internal defaults.
15994
+ */
15995
+ privateDefaults() {
16030
15996
  const versioning = new AuroDependencyVersioning$3();
16031
15997
 
16032
15998
  this.dropdownTag = versioning.generateTag('auro-formkit-combobox-dropdown', dropdownVersion, AuroDropdown);
16033
15999
  this.bibtemplateTag = versioning.generateTag('auro-formkit-combobox-bibtemplate', bibTemplateVersion, AuroBibtemplate);
16034
16000
  this.inputTag = versioning.generateTag('auro-formkit-combobox-input', inputVersion, AuroInput);
16035
16001
  this.helpTextTag = versioning.generateTag('auro-formkit-input-helptext', '1.0.0', AuroHelpText);
16002
+
16003
+ this.availableOptions = [];
16004
+ this.dropdownId = undefined;
16005
+ this.dropdownOpen = false;
16006
+ this.errorMessage = null;
16007
+ this.isHiddenWhileLoading = false;
16008
+ this.largeFullscreenHeadline = false;
16009
+ this.onDark = false;
16010
+ this.optionSelected = undefined;
16011
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$6();
16012
+ this.touched = false;
16013
+ this.validation = new AuroFormValidation$1();
16014
+ this.validity = undefined;
16036
16015
  }
16037
16016
 
16038
16017
  // This function is to define props used within the scope of this component
@@ -16357,6 +16336,13 @@ class AuroCombobox extends AuroElement {
16357
16336
  return this.input.value;
16358
16337
  }
16359
16338
 
16339
+ /**
16340
+ * Sets the value of the input element within the combobox.
16341
+ */
16342
+ set inputValue(value) {
16343
+ this.input.value = value;
16344
+ }
16345
+
16360
16346
  /**
16361
16347
  * Checks if the element is valid.
16362
16348
  * @returns {boolean} - Returns true if the element is valid, false otherwise.
@@ -16496,6 +16482,7 @@ class AuroCombobox extends AuroElement {
16496
16482
  * @returns {void}
16497
16483
  */
16498
16484
  handleMenuOptions() {
16485
+ console.warn('handleMenuOptions()');
16499
16486
  this.resetMenuMatchword();
16500
16487
 
16501
16488
  this.generateOptionsArray();
@@ -16503,7 +16490,7 @@ class AuroCombobox extends AuroElement {
16503
16490
  this.updateFilter();
16504
16491
 
16505
16492
  if (this.value && this.input.value && !this.menu.value) {
16506
- this.menu.value = this.value;
16493
+ this.syncValuesAndStates();
16507
16494
  }
16508
16495
  }
16509
16496
 
@@ -16683,6 +16670,7 @@ class AuroCombobox extends AuroElement {
16683
16670
 
16684
16671
  // handle the menu event for an option selection
16685
16672
  this.menu.addEventListener('auroMenu-selectedOption', (evt) => {
16673
+ console.warn('event auroMenu-selectedOption', evt);
16686
16674
  if (this.menu.optionSelected) {
16687
16675
  const selected = this.menu.optionSelected;
16688
16676
 
@@ -16692,7 +16680,7 @@ class AuroCombobox extends AuroElement {
16692
16680
 
16693
16681
  if (!this.value || this.value !== this.optionSelected.value) {
16694
16682
  this.value = this.optionSelected.value;
16695
- this.menu.value = this.value;
16683
+ // this.menu.value = this.value;
16696
16684
  }
16697
16685
 
16698
16686
  this.updateTriggerTextDisplay();
@@ -16787,6 +16775,7 @@ class AuroCombobox extends AuroElement {
16787
16775
  * @returns {void}
16788
16776
  */
16789
16777
  handleInputValueChange(event) {
16778
+ console.warn('handleInputValueChange', event);
16790
16779
  if (event.target === this.inputInBib) {
16791
16780
  this.input.value = this.inputInBib.value;
16792
16781
  return;
@@ -17070,6 +17059,7 @@ class AuroCombobox extends AuroElement {
17070
17059
  * @returns {void}
17071
17060
  */
17072
17061
  handleSlotChange(event) {
17062
+ console.warn('handleSlotChange', event);
17073
17063
  switch (event.target.name) {
17074
17064
  case '':
17075
17065
  if (!this.menu || this.menu !== this.querySelector('auro-menu, [auro-menu]')) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aurodesignsystem-dev/auro-formkit",
3
- "version": "0.0.0-pr1052.3",
3
+ "version": "0.0.0-pr1052.5",
4
4
  "description": "A collection of web components used to build forms.",
5
5
  "homepage": "https://github.com/AlaskaAirlines/auro-formkit#readme",
6
6
  "bugs": {