@aurodesignsystem-dev/auro-formkit 0.0.0-pr1594.2 → 0.0.0-pr1595.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.
Files changed (83) hide show
  1. package/components/bibtemplate/dist/auro-bibtemplate.d.ts +11 -0
  2. package/components/bibtemplate/dist/index.js +13 -0
  3. package/components/bibtemplate/dist/registered.js +13 -0
  4. package/components/checkbox/demo/api.md +17 -11
  5. package/components/checkbox/demo/customize.min.js +23 -6
  6. package/components/checkbox/demo/getting-started.min.js +23 -6
  7. package/components/checkbox/demo/index.min.js +23 -6
  8. package/components/checkbox/dist/auro-checkbox-group.d.ts +8 -0
  9. package/components/checkbox/dist/auro-checkbox.d.ts +4 -0
  10. package/components/checkbox/dist/index.js +23 -6
  11. package/components/checkbox/dist/registered.js +23 -6
  12. package/components/combobox/demo/api.md +26 -18
  13. package/components/combobox/demo/customize.min.js +426 -126
  14. package/components/combobox/demo/getting-started.min.js +426 -126
  15. package/components/combobox/demo/index.min.js +426 -126
  16. package/components/combobox/dist/auro-combobox.d.ts +38 -21
  17. package/components/combobox/dist/index.js +338 -111
  18. package/components/combobox/dist/registered.js +338 -111
  19. package/components/counter/demo/api.md +34 -16
  20. package/components/counter/demo/customize.min.js +204 -64
  21. package/components/counter/demo/index.min.js +204 -64
  22. package/components/counter/dist/auro-counter-button.d.ts +4 -0
  23. package/components/counter/dist/auro-counter-group.d.ts +27 -4
  24. package/components/counter/dist/auro-counter.d.ts +7 -0
  25. package/components/counter/dist/index.js +204 -64
  26. package/components/counter/dist/registered.js +204 -64
  27. package/components/datepicker/demo/api.md +55 -49
  28. package/components/datepicker/demo/customize.min.js +515 -134
  29. package/components/datepicker/demo/index.min.js +515 -134
  30. package/components/datepicker/dist/auro-calendar-cell.d.ts +58 -4
  31. package/components/datepicker/dist/auro-calendar-month.d.ts +10 -4
  32. package/components/datepicker/dist/auro-calendar.d.ts +25 -6
  33. package/components/datepicker/dist/auro-datepicker.d.ts +70 -22
  34. package/components/datepicker/dist/index.js +515 -134
  35. package/components/datepicker/dist/registered.js +515 -134
  36. package/components/dropdown/demo/api.md +25 -22
  37. package/components/dropdown/demo/customize.min.js +107 -37
  38. package/components/dropdown/demo/getting-started.min.js +245 -82
  39. package/components/dropdown/demo/index.min.js +107 -37
  40. package/components/dropdown/dist/auro-dropdown.d.ts +34 -8
  41. package/components/dropdown/dist/auro-dropdownBib.d.ts +17 -5
  42. package/components/dropdown/dist/index.js +107 -37
  43. package/components/dropdown/dist/registered.js +107 -37
  44. package/components/form/demo/customize.min.js +1518 -466
  45. package/components/form/demo/getting-started.min.js +1518 -466
  46. package/components/form/demo/index.min.js +1518 -466
  47. package/components/form/demo/registerDemoDeps.min.js +1518 -466
  48. package/components/helptext/dist/auro-helptext.d.ts +8 -7
  49. package/components/helptext/dist/index.js +7 -2
  50. package/components/helptext/dist/registered.js +7 -2
  51. package/components/input/demo/api.md +30 -30
  52. package/components/input/demo/customize.min.js +138 -45
  53. package/components/input/demo/getting-started.min.js +138 -45
  54. package/components/input/demo/index.min.js +138 -45
  55. package/components/input/dist/base-input.d.ts +79 -25
  56. package/components/input/dist/index.js +138 -45
  57. package/components/input/dist/registered.js +138 -45
  58. package/components/layoutElement/dist/auroElement.d.ts +10 -17
  59. package/components/layoutElement/dist/index.js +20 -20
  60. package/components/layoutElement/dist/registered.js +20 -20
  61. package/components/menu/demo/api.md +31 -27
  62. package/components/menu/demo/index.min.js +108 -35
  63. package/components/menu/dist/auro-menu.d.ts +26 -21
  64. package/components/menu/dist/auro-menuoption.d.ts +27 -1
  65. package/components/menu/dist/index.js +108 -35
  66. package/components/menu/dist/registered.js +108 -35
  67. package/components/radio/demo/api.md +8 -7
  68. package/components/radio/demo/customize.min.js +21 -7
  69. package/components/radio/demo/getting-started.min.js +21 -7
  70. package/components/radio/demo/index.min.js +21 -7
  71. package/components/radio/dist/auro-radio-group.d.ts +8 -3
  72. package/components/radio/dist/auro-radio.d.ts +1 -0
  73. package/components/radio/dist/index.js +21 -7
  74. package/components/radio/dist/registered.js +21 -7
  75. package/components/select/demo/api.md +18 -15
  76. package/components/select/demo/customize.min.js +259 -79
  77. package/components/select/demo/getting-started.min.js +259 -79
  78. package/components/select/demo/index.min.js +259 -79
  79. package/components/select/dist/auro-select.d.ts +17 -0
  80. package/components/select/dist/index.js +171 -64
  81. package/components/select/dist/registered.js +171 -64
  82. package/custom-elements.json +1189 -1336
  83. package/package.json +1 -1
@@ -4587,37 +4587,37 @@ class AuroFormValidation {
4587
4587
  }
4588
4588
  }
4589
4589
 
4590
+ /**
4591
+ * AuroElement is the shared base class for layout-aware Auro form components.
4592
+ *
4593
+ * It defines the common `layout`, `shape`, `size`, and `ondark` reactive
4594
+ * properties and the architecture helpers (`renderLayout`, `resetShapeClasses`,
4595
+ * `resetLayoutClasses`) that subclasses use to render a chosen layout and apply
4596
+ * the matching `shape-*` / `layout-*` wrapper classes. Subclasses supply their
4597
+ * own default and valid value set for `layout`, `shape`, and `size`.
4598
+ */
4590
4599
  class AuroElement extends i$3 {
4591
4600
  static get properties() {
4592
4601
  return {
4593
4602
 
4594
4603
  /**
4595
- * Defines the language of an element.
4596
- * @default {'default'}
4604
+ * When true, renders the component styled for use on a dark background.
4597
4605
  */
4598
- layout: {
4599
- type: String,
4600
- attribute: "layout",
4601
- reflect: true
4602
- },
4603
-
4604
- shape: {
4605
- type: String,
4606
- attribute: "shape",
4607
- reflect: true
4608
- },
4609
-
4610
- size: {
4611
- type: String,
4612
- attribute: "size",
4613
- reflect: true
4614
- },
4615
-
4616
4606
  onDark: {
4617
4607
  type: Boolean,
4618
4608
  attribute: "ondark",
4619
4609
  reflect: true
4620
4610
  }
4611
+
4612
+ // NOTE: `layout`, `shape`, and `size` are intentionally NOT declared here.
4613
+ // Their valid value sets differ per component, and the CEM analyzer roots
4614
+ // an inherited property's `type` in the class that declares it — a base
4615
+ // declaration would force every subclass's `@type` to be discarded and
4616
+ // emitted as plain `string`. Each subclass declares its own `layout` /
4617
+ // `shape` / `size` with an exact `@type` union instead. AuroElement still
4618
+ // consumes `this.layout` / `this.shape` / `this.size` in its render and
4619
+ // architecture helpers below (subclasses guarantee the reactive props).
4620
+ // See AlaskaAirlines/discussions#653.
4621
4621
  };
4622
4622
  }
4623
4623
 
@@ -10584,6 +10584,7 @@ class DomHandler {
10584
10584
  * Base class for auro-input component that provides core input functionality.
10585
10585
  * @event input - Event fires when the value of an `auro-input` has been changed.
10586
10586
  * @event auroFormElement-validated - Notifies that the `validity` and `errorMessage` value has changed.
10587
+ * @event auroInput-validityChange - Notifies that the `validity` state of the input has changed.
10587
10588
  */
10588
10589
  class BaseInput extends AuroElement {
10589
10590
 
@@ -10614,7 +10615,10 @@ class BaseInput extends AuroElement {
10614
10615
  // during its own update cycle sees a populated util instance.
10615
10616
  this.activeLabel = false;
10616
10617
 
10617
- /** @private */
10618
+ /**
10619
+ * @private
10620
+ * @type {string[]}
10621
+ */
10618
10622
  this.allowedInputTypes = [
10619
10623
  "text",
10620
10624
  "number",
@@ -10623,9 +10627,14 @@ class BaseInput extends AuroElement {
10623
10627
  "credit-card",
10624
10628
  "tel"
10625
10629
  ];
10630
+
10631
+ /** @type {'default' | 'inverse'} */
10626
10632
  this.appearance = "default";
10627
10633
 
10628
- /** @private */
10634
+ /**
10635
+ * @private
10636
+ * @type {Record<string, string>}
10637
+ */
10629
10638
  this.dateFormatMap = {
10630
10639
  'mm/dd/yyyy': 'dateMMDDYYYY',
10631
10640
  'dd/mm/yyyy': 'dateDDMMYYYY',
@@ -10656,7 +10665,6 @@ class BaseInput extends AuroElement {
10656
10665
 
10657
10666
  /** @private */
10658
10667
  this.label = 'Input label is undefined';
10659
- this.layout = 'classic';
10660
10668
  this.locale = 'en-US';
10661
10669
  this._format = undefined;
10662
10670
 
@@ -10672,17 +10680,18 @@ class BaseInput extends AuroElement {
10672
10680
  this.setCustomValidityForType = undefined;
10673
10681
  // Credit Card is intentionally excluded — its mask manages the cursor
10674
10682
  // itself, and listing it here caused cursor placement issues in Safari.
10675
- /** @private */
10683
+ /**
10684
+ * @private
10685
+ * @type {string[]}
10686
+ */
10676
10687
  this.setSelectionInputTypes = [
10677
10688
  "text",
10678
10689
  "password",
10679
10690
  "email"
10680
10691
  ];
10681
- this.shape = 'classic';
10682
10692
 
10683
10693
  /** @private */
10684
10694
  this.showPassword = false;
10685
- this.size = 'lg';
10686
10695
  this.touched = false;
10687
10696
 
10688
10697
  /** @private */
@@ -10700,6 +10709,24 @@ class BaseInput extends AuroElement {
10700
10709
  /** @private */
10701
10710
  this.validationCCLength = undefined;
10702
10711
  this.value = undefined;
10712
+
10713
+ this.initializeArchitectureDefaults();
10714
+ }
10715
+
10716
+ /**
10717
+ * Sets the default `layout`, `shape`, and `size` values.
10718
+ *
10719
+ * These are assigned in a helper method rather than the constructor body so
10720
+ * the CEM analyzer keeps their `@type` string-literal unions (a literal
10721
+ * assignment in the constructor would make the analyzer infer `string` and
10722
+ * override the union — see AlaskaAirlines/discussions#653, gotcha 1).
10723
+ * @private
10724
+ * @returns {void}
10725
+ */
10726
+ initializeArchitectureDefaults() {
10727
+ this.layout = 'classic';
10728
+ this.shape = 'classic';
10729
+ this.size = 'lg';
10703
10730
  }
10704
10731
 
10705
10732
  // function to define props used within the scope of this component
@@ -10707,11 +10734,45 @@ class BaseInput extends AuroElement {
10707
10734
  return {
10708
10735
  ...super.properties,
10709
10736
 
10737
+ /**
10738
+ * Sets the layout variant of the input.
10739
+ * @type {'classic' | 'emphasized' | 'emphasized-left' | 'emphasized-right' | 'snowflake' | 'snowflake-left' | 'snowflake-right'}
10740
+ * @default 'classic'
10741
+ */
10742
+ layout: {
10743
+ type: String,
10744
+ attribute: "layout",
10745
+ reflect: true
10746
+ },
10747
+
10748
+ /**
10749
+ * Sets the shape of the input.
10750
+ * @type {'box' | 'classic' | 'pill' | 'pill-left' | 'pill-right' | 'rounded' | 'snowflake'}
10751
+ * @default 'classic'
10752
+ */
10753
+ shape: {
10754
+ type: String,
10755
+ attribute: "shape",
10756
+ reflect: true
10757
+ },
10758
+
10759
+ /**
10760
+ * Sets the size of the input.
10761
+ * @type {'xs' | 'sm' | 'md' | 'lg' | 'xl'}
10762
+ * @default 'lg'
10763
+ */
10764
+ size: {
10765
+ type: String,
10766
+ attribute: "size",
10767
+ reflect: true
10768
+ },
10769
+
10710
10770
  /**
10711
10771
  * The value for the role attribute.
10712
10772
  */
10713
10773
  a11yRole: {
10714
10774
  type: String,
10775
+ attribute: 'a11yrole',
10715
10776
  reflect: true
10716
10777
  },
10717
10778
 
@@ -10720,6 +10781,7 @@ class BaseInput extends AuroElement {
10720
10781
  */
10721
10782
  a11yControls: {
10722
10783
  type: String,
10784
+ attribute: 'a11ycontrols',
10723
10785
  reflect: true
10724
10786
  },
10725
10787
 
@@ -10728,6 +10790,7 @@ class BaseInput extends AuroElement {
10728
10790
  */
10729
10791
  a11yExpanded: {
10730
10792
  type: Boolean,
10793
+ attribute: 'a11yexpanded',
10731
10794
  reflect: true
10732
10795
  },
10733
10796
 
@@ -10737,6 +10800,7 @@ class BaseInput extends AuroElement {
10737
10800
  */
10738
10801
  a11yActivedescendant: {
10739
10802
  type: String,
10803
+ attribute: 'a11yactivedescendant',
10740
10804
  reflect: true
10741
10805
  },
10742
10806
 
@@ -10747,6 +10811,7 @@ class BaseInput extends AuroElement {
10747
10811
  */
10748
10812
  activeLabel: {
10749
10813
  type: Boolean,
10814
+ attribute: 'activelabel',
10750
10815
  reflect: true
10751
10816
  },
10752
10817
 
@@ -10761,7 +10826,8 @@ class BaseInput extends AuroElement {
10761
10826
  },
10762
10827
 
10763
10828
  /**
10764
- * An enumerated attribute that controls whether and how text input is automatically capitalized as it is entered/edited by the user. [off/none, on/sentences, words, characters].
10829
+ * An enumerated attribute that controls whether and how text input is automatically capitalized as it is entered/edited by the user.
10830
+ * @type {'off' | 'none' | 'on' | 'sentences' | 'words' | 'characters'}
10765
10831
  */
10766
10832
  autocapitalize: {
10767
10833
  type: String,
@@ -10778,6 +10844,7 @@ class BaseInput extends AuroElement {
10778
10844
 
10779
10845
  /**
10780
10846
  * When set to `off`, stops iOS from auto-correcting words when typed into a text box.
10847
+ * @type {'on' | 'off'}
10781
10848
  */
10782
10849
  autocorrect: {
10783
10850
  type: String,
@@ -10788,7 +10855,8 @@ class BaseInput extends AuroElement {
10788
10855
  * Custom help text message for email type validity.
10789
10856
  */
10790
10857
  customValidityTypeEmail: {
10791
- type: String
10858
+ type: String,
10859
+ attribute: 'customvaliditytypeemail'
10792
10860
  },
10793
10861
 
10794
10862
  /**
@@ -10804,6 +10872,7 @@ class BaseInput extends AuroElement {
10804
10872
  */
10805
10873
  dvInputOnly: {
10806
10874
  type: Boolean,
10875
+ attribute: 'dvinputonly',
10807
10876
  reflect: true
10808
10877
  },
10809
10878
 
@@ -10819,7 +10888,8 @@ class BaseInput extends AuroElement {
10819
10888
  * Contains the help text message for the current validity error.
10820
10889
  */
10821
10890
  errorMessage: {
10822
- type: String
10891
+ type: String,
10892
+ attribute: 'errormessage'
10823
10893
  },
10824
10894
 
10825
10895
  /**
@@ -10855,6 +10925,7 @@ class BaseInput extends AuroElement {
10855
10925
  */
10856
10926
  hideLabelVisually: {
10857
10927
  type: Boolean,
10928
+ attribute: 'hidelabelvisually',
10858
10929
  reflect: true
10859
10930
  },
10860
10931
 
@@ -10921,6 +10992,7 @@ class BaseInput extends AuroElement {
10921
10992
  */
10922
10993
  maxLength: {
10923
10994
  type: Number,
10995
+ attribute: 'maxlength',
10924
10996
  reflect: true
10925
10997
  },
10926
10998
 
@@ -10936,6 +11008,7 @@ class BaseInput extends AuroElement {
10936
11008
  */
10937
11009
  minLength: {
10938
11010
  type: Number,
11011
+ attribute: 'minlength',
10939
11012
  reflect: true
10940
11013
  },
10941
11014
 
@@ -10961,6 +11034,7 @@ class BaseInput extends AuroElement {
10961
11034
  */
10962
11035
  noValidate: {
10963
11036
  type: Boolean,
11037
+ attribute: 'novalidate',
10964
11038
  reflect: true
10965
11039
  },
10966
11040
 
@@ -10969,6 +11043,7 @@ class BaseInput extends AuroElement {
10969
11043
  */
10970
11044
  onDark: {
10971
11045
  type: Boolean,
11046
+ attribute: 'ondark',
10972
11047
  reflect: true
10973
11048
  },
10974
11049
 
@@ -11008,77 +11083,88 @@ class BaseInput extends AuroElement {
11008
11083
  * Sets a custom help text message to display for all validityStates.
11009
11084
  */
11010
11085
  setCustomValidity: {
11011
- type: String
11086
+ type: String,
11087
+ attribute: 'setcustomvalidity'
11012
11088
  },
11013
11089
 
11014
11090
  /**
11015
11091
  * Custom help text message to display when validity = `badInput`.
11016
11092
  */
11017
11093
  setCustomValidityBadInput: {
11018
- type: String
11094
+ type: String,
11095
+ attribute: 'setcustomvaliditybadinput'
11019
11096
  },
11020
11097
 
11021
11098
  /**
11022
11099
  * Custom help text message to display when validity = `customError`.
11023
11100
  */
11024
11101
  setCustomValidityCustomError: {
11025
- type: String
11102
+ type: String,
11103
+ attribute: 'setcustomvaliditycustomerror'
11026
11104
  },
11027
11105
 
11028
11106
  /**
11029
11107
  * Custom help text message to display for the declared element `type` and type validity fails.
11030
11108
  */
11031
11109
  setCustomValidityForType: {
11032
- type: String
11110
+ type: String,
11111
+ attribute: 'setcustomvalidityfortype'
11033
11112
  },
11034
11113
 
11035
11114
  /**
11036
11115
  * Custom help text message to display when validity = `patternMismatch`.
11037
11116
  */
11038
11117
  setCustomValidityPatternMismatch: {
11039
- type: String
11118
+ type: String,
11119
+ attribute: 'setcustomvaliditypatternmismatch'
11040
11120
  },
11041
11121
 
11042
11122
  /**
11043
11123
  * Custom help text message to display when validity = `rangeOverflow`.
11044
11124
  */
11045
11125
  setCustomValidityRangeOverflow: {
11046
- type: String
11126
+ type: String,
11127
+ attribute: 'setcustomvalidityrangeoverflow'
11047
11128
  },
11048
11129
 
11049
11130
  /**
11050
11131
  * Custom help text message to display when validity = `rangeUnderflow`.
11051
11132
  */
11052
11133
  setCustomValidityRangeUnderflow: {
11053
- type: String
11134
+ type: String,
11135
+ attribute: 'setcustomvalidityrangeunderflow'
11054
11136
  },
11055
11137
 
11056
11138
  /**
11057
11139
  * Custom help text message to display when validity = `tooLong`.
11058
11140
  */
11059
11141
  setCustomValidityTooLong: {
11060
- type: String
11142
+ type: String,
11143
+ attribute: 'setcustomvaliditytoolong'
11061
11144
  },
11062
11145
 
11063
11146
  /**
11064
11147
  * Custom help text message to display when validity = `tooShort`.
11065
11148
  */
11066
11149
  setCustomValidityTooShort: {
11067
- type: String
11150
+ type: String,
11151
+ attribute: 'setcustomvaliditytooshort'
11068
11152
  },
11069
11153
 
11070
11154
  /**
11071
11155
  * Custom help text message to display when validity = `valueMissing`.
11072
11156
  */
11073
11157
  setCustomValidityValueMissing: {
11074
- type: String
11158
+ type: String,
11159
+ attribute: 'setcustomvalidityvaluemissing'
11075
11160
  },
11076
11161
 
11077
11162
  /**
11078
11163
  * @ignore
11079
11164
  */
11080
11165
  showPassword: {
11081
- state: true
11166
+ state: true,
11167
+ attribute: false
11082
11168
  },
11083
11169
 
11084
11170
  /**
@@ -11090,7 +11176,8 @@ class BaseInput extends AuroElement {
11090
11176
  },
11091
11177
 
11092
11178
  /**
11093
- * An enumerated attribute defines whether the element may be checked for spelling errors. [true, false]. When set to `false` the attribute `autocorrect` is set to `off` and `autocapitalize` is set to `none`.
11179
+ * An enumerated attribute defines whether the element may be checked for spelling errors. When set to `false` the attribute `autocorrect` is set to `off` and `autocapitalize` is set to `none`.
11180
+ * @type {'true' | 'false'}
11094
11181
  */
11095
11182
  spellcheck: {
11096
11183
  type: String,
@@ -11121,7 +11208,8 @@ class BaseInput extends AuroElement {
11121
11208
  * Sets validation mode to re-eval with each input.
11122
11209
  */
11123
11210
  validateOnInput: {
11124
- type: Boolean
11211
+ type: Boolean,
11212
+ attribute: 'validateoninput'
11125
11213
  },
11126
11214
 
11127
11215
  /**
@@ -12175,6 +12263,8 @@ class AuroHelpText extends i$3 {
12175
12263
  super();
12176
12264
 
12177
12265
  this.error = false;
12266
+
12267
+ /** @type {'default' | 'inverse'} */
12178
12268
  this.appearance = "default";
12179
12269
  this.onDark = false;
12180
12270
  this.hasTextContent = false;
@@ -12195,8 +12285,8 @@ class AuroHelpText extends i$3 {
12195
12285
  return {
12196
12286
 
12197
12287
  /**
12198
- * Defines whether the component will be on lighter or darker backgrounds.
12199
- * @property {'default', 'inverse'} - The appearance of the help text, either default (for light backgrounds) or inverse (for dark backgrounds).
12288
+ * The appearance of the help text, either default (for light backgrounds) or inverse (for dark backgrounds).
12289
+ * @type {'default' | 'inverse'}
12200
12290
  * @default 'default'
12201
12291
  */
12202
12292
  appearance: {
@@ -12209,6 +12299,7 @@ class AuroHelpText extends i$3 {
12209
12299
  */
12210
12300
  slotNodes: {
12211
12301
  type: Boolean,
12302
+ attribute: 'slotnodes',
12212
12303
  },
12213
12304
 
12214
12305
  /**
@@ -12216,6 +12307,7 @@ class AuroHelpText extends i$3 {
12216
12307
  */
12217
12308
  hasTextContent: {
12218
12309
  type: Boolean,
12310
+ attribute: 'hastextcontent',
12219
12311
  },
12220
12312
 
12221
12313
  /**
@@ -12231,6 +12323,7 @@ class AuroHelpText extends i$3 {
12231
12323
  */
12232
12324
  onDark: {
12233
12325
  type: Boolean,
12326
+ attribute: 'ondark',
12234
12327
  reflect: true
12235
12328
  }
12236
12329
  };
@@ -12301,7 +12394,7 @@ class AuroHelpText extends i$3 {
12301
12394
  }
12302
12395
  }
12303
12396
 
12304
- var formkitVersion = '202608261850';
12397
+ var formkitVersion = '202608300032';
12305
12398
 
12306
12399
  /**
12307
12400
  * @license