@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.
- package/components/bibtemplate/dist/auro-bibtemplate.d.ts +11 -0
- package/components/bibtemplate/dist/index.js +13 -0
- package/components/bibtemplate/dist/registered.js +13 -0
- package/components/checkbox/demo/api.md +17 -11
- package/components/checkbox/demo/customize.min.js +23 -6
- package/components/checkbox/demo/getting-started.min.js +23 -6
- package/components/checkbox/demo/index.min.js +23 -6
- package/components/checkbox/dist/auro-checkbox-group.d.ts +8 -0
- package/components/checkbox/dist/auro-checkbox.d.ts +4 -0
- package/components/checkbox/dist/index.js +23 -6
- package/components/checkbox/dist/registered.js +23 -6
- package/components/combobox/demo/api.md +26 -18
- package/components/combobox/demo/customize.min.js +426 -126
- package/components/combobox/demo/getting-started.min.js +426 -126
- package/components/combobox/demo/index.min.js +426 -126
- package/components/combobox/dist/auro-combobox.d.ts +38 -21
- package/components/combobox/dist/index.js +338 -111
- package/components/combobox/dist/registered.js +338 -111
- package/components/counter/demo/api.md +34 -16
- package/components/counter/demo/customize.min.js +204 -64
- package/components/counter/demo/index.min.js +204 -64
- package/components/counter/dist/auro-counter-button.d.ts +4 -0
- package/components/counter/dist/auro-counter-group.d.ts +27 -4
- package/components/counter/dist/auro-counter.d.ts +7 -0
- package/components/counter/dist/index.js +204 -64
- package/components/counter/dist/registered.js +204 -64
- package/components/datepicker/demo/api.md +55 -49
- package/components/datepicker/demo/customize.min.js +515 -134
- package/components/datepicker/demo/index.min.js +515 -134
- package/components/datepicker/dist/auro-calendar-cell.d.ts +58 -4
- package/components/datepicker/dist/auro-calendar-month.d.ts +10 -4
- package/components/datepicker/dist/auro-calendar.d.ts +25 -6
- package/components/datepicker/dist/auro-datepicker.d.ts +70 -22
- package/components/datepicker/dist/index.js +515 -134
- package/components/datepicker/dist/registered.js +515 -134
- package/components/dropdown/demo/api.md +25 -22
- package/components/dropdown/demo/customize.min.js +107 -37
- package/components/dropdown/demo/getting-started.min.js +245 -82
- package/components/dropdown/demo/index.min.js +107 -37
- package/components/dropdown/dist/auro-dropdown.d.ts +34 -8
- package/components/dropdown/dist/auro-dropdownBib.d.ts +17 -5
- package/components/dropdown/dist/index.js +107 -37
- package/components/dropdown/dist/registered.js +107 -37
- package/components/form/demo/customize.min.js +1518 -466
- package/components/form/demo/getting-started.min.js +1518 -466
- package/components/form/demo/index.min.js +1518 -466
- package/components/form/demo/registerDemoDeps.min.js +1518 -466
- package/components/helptext/dist/auro-helptext.d.ts +8 -7
- package/components/helptext/dist/index.js +7 -2
- package/components/helptext/dist/registered.js +7 -2
- package/components/input/demo/api.md +30 -30
- package/components/input/demo/customize.min.js +138 -45
- package/components/input/demo/getting-started.min.js +138 -45
- package/components/input/demo/index.min.js +138 -45
- package/components/input/dist/base-input.d.ts +79 -25
- package/components/input/dist/index.js +138 -45
- package/components/input/dist/registered.js +138 -45
- package/components/layoutElement/dist/auroElement.d.ts +10 -17
- package/components/layoutElement/dist/index.js +20 -20
- package/components/layoutElement/dist/registered.js +20 -20
- package/components/menu/demo/api.md +31 -27
- package/components/menu/demo/index.min.js +108 -35
- package/components/menu/dist/auro-menu.d.ts +26 -21
- package/components/menu/dist/auro-menuoption.d.ts +27 -1
- package/components/menu/dist/index.js +108 -35
- package/components/menu/dist/registered.js +108 -35
- package/components/radio/demo/api.md +8 -7
- package/components/radio/demo/customize.min.js +21 -7
- package/components/radio/demo/getting-started.min.js +21 -7
- package/components/radio/demo/index.min.js +21 -7
- package/components/radio/dist/auro-radio-group.d.ts +8 -3
- package/components/radio/dist/auro-radio.d.ts +1 -0
- package/components/radio/dist/index.js +21 -7
- package/components/radio/dist/registered.js +21 -7
- package/components/select/demo/api.md +18 -15
- package/components/select/demo/customize.min.js +259 -79
- package/components/select/demo/getting-started.min.js +259 -79
- package/components/select/demo/index.min.js +259 -79
- package/components/select/dist/auro-select.d.ts +17 -0
- package/components/select/dist/index.js +171 -64
- package/components/select/dist/registered.js +171 -64
- package/custom-elements.json +1189 -1336
- package/package.json +1 -1
|
@@ -156,6 +156,10 @@ let AuroLibraryRuntimeUtils$4 = class AuroLibraryRuntimeUtils {
|
|
|
156
156
|
// See LICENSE in the project root for license information.
|
|
157
157
|
|
|
158
158
|
|
|
159
|
+
/**
|
|
160
|
+
* The `auro-counter-button` element provides the increment and decrement control button used within an `auro-counter`.
|
|
161
|
+
* @customElement auro-counter-button
|
|
162
|
+
*/
|
|
159
163
|
class AuroCounterButton extends T$1 {
|
|
160
164
|
|
|
161
165
|
constructor() {
|
|
@@ -941,6 +945,8 @@ let AuroHelpText$1 = class AuroHelpText extends LitElement {
|
|
|
941
945
|
super();
|
|
942
946
|
|
|
943
947
|
this.error = false;
|
|
948
|
+
|
|
949
|
+
/** @type {'default' | 'inverse'} */
|
|
944
950
|
this.appearance = "default";
|
|
945
951
|
this.onDark = false;
|
|
946
952
|
this.hasTextContent = false;
|
|
@@ -961,8 +967,8 @@ let AuroHelpText$1 = class AuroHelpText extends LitElement {
|
|
|
961
967
|
return {
|
|
962
968
|
|
|
963
969
|
/**
|
|
964
|
-
*
|
|
965
|
-
* @
|
|
970
|
+
* The appearance of the help text, either default (for light backgrounds) or inverse (for dark backgrounds).
|
|
971
|
+
* @type {'default' | 'inverse'}
|
|
966
972
|
* @default 'default'
|
|
967
973
|
*/
|
|
968
974
|
appearance: {
|
|
@@ -975,6 +981,7 @@ let AuroHelpText$1 = class AuroHelpText extends LitElement {
|
|
|
975
981
|
*/
|
|
976
982
|
slotNodes: {
|
|
977
983
|
type: Boolean,
|
|
984
|
+
attribute: 'slotnodes',
|
|
978
985
|
},
|
|
979
986
|
|
|
980
987
|
/**
|
|
@@ -982,6 +989,7 @@ let AuroHelpText$1 = class AuroHelpText extends LitElement {
|
|
|
982
989
|
*/
|
|
983
990
|
hasTextContent: {
|
|
984
991
|
type: Boolean,
|
|
992
|
+
attribute: 'hastextcontent',
|
|
985
993
|
},
|
|
986
994
|
|
|
987
995
|
/**
|
|
@@ -997,6 +1005,7 @@ let AuroHelpText$1 = class AuroHelpText extends LitElement {
|
|
|
997
1005
|
*/
|
|
998
1006
|
onDark: {
|
|
999
1007
|
type: Boolean,
|
|
1008
|
+
attribute: 'ondark',
|
|
1000
1009
|
reflect: true
|
|
1001
1010
|
}
|
|
1002
1011
|
};
|
|
@@ -1067,7 +1076,7 @@ let AuroHelpText$1 = class AuroHelpText extends LitElement {
|
|
|
1067
1076
|
}
|
|
1068
1077
|
};
|
|
1069
1078
|
|
|
1070
|
-
var formkitVersion$1 = '
|
|
1079
|
+
var formkitVersion$1 = '202608300032';
|
|
1071
1080
|
|
|
1072
1081
|
// Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
|
|
1073
1082
|
// See LICENSE in the project root for license information.
|
|
@@ -1105,6 +1114,13 @@ const keyboardStrategy = {
|
|
|
1105
1114
|
* @slot ariaLabel.plus - Accessible label for the increment button.
|
|
1106
1115
|
* @slot helpText - Help text content for the counter.
|
|
1107
1116
|
* @slot description - Descriptive content for the counter.
|
|
1117
|
+
*
|
|
1118
|
+
* @csspart counterControl - The container for the counter's spinbutton controls and value.
|
|
1119
|
+
* @csspart controlMinus - The decrement button.
|
|
1120
|
+
* @csspart controlPlus - The increment button.
|
|
1121
|
+
* @csspart helpText - The help text and error message container.
|
|
1122
|
+
*
|
|
1123
|
+
* @event input - Notifies that the counter's value has changed.
|
|
1108
1124
|
*/
|
|
1109
1125
|
class AuroCounter extends LitElement {
|
|
1110
1126
|
static get shadowRootOptions() {
|
|
@@ -1216,7 +1232,8 @@ class AuroCounter extends LitElement {
|
|
|
1216
1232
|
* @private
|
|
1217
1233
|
*/
|
|
1218
1234
|
defaultSlot: {
|
|
1219
|
-
type: String
|
|
1235
|
+
type: String,
|
|
1236
|
+
attribute: "defaultslot"
|
|
1220
1237
|
},
|
|
1221
1238
|
|
|
1222
1239
|
/**
|
|
@@ -1232,7 +1249,8 @@ class AuroCounter extends LitElement {
|
|
|
1232
1249
|
* @private
|
|
1233
1250
|
*/
|
|
1234
1251
|
disableMax: {
|
|
1235
|
-
type: Boolean
|
|
1252
|
+
type: Boolean,
|
|
1253
|
+
attribute: "disablemax"
|
|
1236
1254
|
},
|
|
1237
1255
|
|
|
1238
1256
|
/**
|
|
@@ -1240,7 +1258,8 @@ class AuroCounter extends LitElement {
|
|
|
1240
1258
|
* @private
|
|
1241
1259
|
*/
|
|
1242
1260
|
disableMin: {
|
|
1243
|
-
type: Boolean
|
|
1261
|
+
type: Boolean,
|
|
1262
|
+
attribute: "disablemin"
|
|
1244
1263
|
},
|
|
1245
1264
|
|
|
1246
1265
|
/**
|
|
@@ -1273,6 +1292,7 @@ class AuroCounter extends LitElement {
|
|
|
1273
1292
|
*/
|
|
1274
1293
|
onDark: {
|
|
1275
1294
|
type: Boolean,
|
|
1295
|
+
attribute: "ondark",
|
|
1276
1296
|
reflect: true
|
|
1277
1297
|
},
|
|
1278
1298
|
|
|
@@ -4631,8 +4651,11 @@ const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
|
|
|
4631
4651
|
];
|
|
4632
4652
|
|
|
4633
4653
|
/**
|
|
4654
|
+
* The `auro-dropdownbib` element renders the dropdown's bib as a dialog/popover container and manages its fullscreen and modal display.
|
|
4634
4655
|
* @prop { String } fullscreenBreakpoint - Defines the screen size breakpoint (`lg`, `md`, `sm`, or `xs`) at which the dropdown switches to fullscreen mode on mobile. When expanded, the dropdown will automatically display in fullscreen mode if the screen size is equal to or smaller than the selected breakpoint.
|
|
4635
4656
|
* @csspart bibContainer - Apply css to the bib container.
|
|
4657
|
+
* @event auro-dropdownbib-connected - Notifies that the dropdown bib has connected to the DOM, passing a reference to the element in the event detail.
|
|
4658
|
+
* @event auro-bib-cancel - Notifies that the bib was cancelled (e.g. via the ESC key) so parent components can close it.
|
|
4636
4659
|
*/
|
|
4637
4660
|
|
|
4638
4661
|
class AuroDropdownBib extends LitElement {
|
|
@@ -4647,9 +4670,17 @@ class AuroDropdownBib extends LitElement {
|
|
|
4647
4670
|
|
|
4648
4671
|
AuroLibraryRuntimeUtils$1.prototype.handleComponentTagRename(this, 'auro-dropdownbib');
|
|
4649
4672
|
|
|
4650
|
-
this.shape = "rounded";
|
|
4651
4673
|
this.matchWidth = false;
|
|
4652
4674
|
this.hasActiveDescendant = false;
|
|
4675
|
+
|
|
4676
|
+
this.initializeArchitectureDefaults();
|
|
4677
|
+
}
|
|
4678
|
+
|
|
4679
|
+
// The `shape` default is set in a helper (not the constructor body) so the CEM
|
|
4680
|
+
// analyzer keeps its `@type` union instead of inferring `string` from a
|
|
4681
|
+
// constructor-literal assignment. See AlaskaAirlines/discussions#653.
|
|
4682
|
+
initializeArchitectureDefaults() {
|
|
4683
|
+
this.shape = "rounded";
|
|
4653
4684
|
}
|
|
4654
4685
|
|
|
4655
4686
|
static get styles() {
|
|
@@ -4668,6 +4699,7 @@ class AuroDropdownBib extends LitElement {
|
|
|
4668
4699
|
*/
|
|
4669
4700
|
isFullscreen: {
|
|
4670
4701
|
type: Boolean,
|
|
4702
|
+
attribute: 'isfullscreen',
|
|
4671
4703
|
reflect: true
|
|
4672
4704
|
},
|
|
4673
4705
|
|
|
@@ -4693,6 +4725,7 @@ class AuroDropdownBib extends LitElement {
|
|
|
4693
4725
|
*/
|
|
4694
4726
|
matchWidth: {
|
|
4695
4727
|
type: Boolean,
|
|
4728
|
+
attribute: 'matchwidth',
|
|
4696
4729
|
reflect: true
|
|
4697
4730
|
},
|
|
4698
4731
|
|
|
@@ -4708,11 +4741,18 @@ class AuroDropdownBib extends LitElement {
|
|
|
4708
4741
|
* A reference to the associated bib template element.
|
|
4709
4742
|
*/
|
|
4710
4743
|
bibTemplate: {
|
|
4711
|
-
type: Object
|
|
4744
|
+
type: Object,
|
|
4745
|
+
attribute: 'bibtemplate'
|
|
4712
4746
|
},
|
|
4713
4747
|
|
|
4748
|
+
/**
|
|
4749
|
+
* Sets the shape of the dropdown bib.
|
|
4750
|
+
* @type {'box' | 'classic' | 'pill' | 'rounded' | 'snowflake'}
|
|
4751
|
+
* @default 'rounded'
|
|
4752
|
+
*/
|
|
4714
4753
|
shape: {
|
|
4715
4754
|
type: String,
|
|
4755
|
+
attribute: "shape",
|
|
4716
4756
|
reflect: true
|
|
4717
4757
|
},
|
|
4718
4758
|
|
|
@@ -4724,7 +4764,8 @@ class AuroDropdownBib extends LitElement {
|
|
|
4724
4764
|
* @private
|
|
4725
4765
|
*/
|
|
4726
4766
|
dialogLabel: {
|
|
4727
|
-
type: String
|
|
4767
|
+
type: String,
|
|
4768
|
+
attribute: 'dialoglabel'
|
|
4728
4769
|
},
|
|
4729
4770
|
|
|
4730
4771
|
/**
|
|
@@ -4735,7 +4776,8 @@ class AuroDropdownBib extends LitElement {
|
|
|
4735
4776
|
* @private
|
|
4736
4777
|
*/
|
|
4737
4778
|
dialogRole: {
|
|
4738
|
-
type: String
|
|
4779
|
+
type: String,
|
|
4780
|
+
attribute: 'dialogrole'
|
|
4739
4781
|
},
|
|
4740
4782
|
|
|
4741
4783
|
/**
|
|
@@ -4743,7 +4785,8 @@ class AuroDropdownBib extends LitElement {
|
|
|
4743
4785
|
* @private
|
|
4744
4786
|
*/
|
|
4745
4787
|
hasActiveDescendant: {
|
|
4746
|
-
type: Boolean
|
|
4788
|
+
type: Boolean,
|
|
4789
|
+
attribute: 'hasactivedescendant'
|
|
4747
4790
|
}
|
|
4748
4791
|
};
|
|
4749
4792
|
}
|
|
@@ -5094,6 +5137,8 @@ class AuroHelpText extends LitElement {
|
|
|
5094
5137
|
super();
|
|
5095
5138
|
|
|
5096
5139
|
this.error = false;
|
|
5140
|
+
|
|
5141
|
+
/** @type {'default' | 'inverse'} */
|
|
5097
5142
|
this.appearance = "default";
|
|
5098
5143
|
this.onDark = false;
|
|
5099
5144
|
this.hasTextContent = false;
|
|
@@ -5114,8 +5159,8 @@ class AuroHelpText extends LitElement {
|
|
|
5114
5159
|
return {
|
|
5115
5160
|
|
|
5116
5161
|
/**
|
|
5117
|
-
*
|
|
5118
|
-
* @
|
|
5162
|
+
* The appearance of the help text, either default (for light backgrounds) or inverse (for dark backgrounds).
|
|
5163
|
+
* @type {'default' | 'inverse'}
|
|
5119
5164
|
* @default 'default'
|
|
5120
5165
|
*/
|
|
5121
5166
|
appearance: {
|
|
@@ -5128,6 +5173,7 @@ class AuroHelpText extends LitElement {
|
|
|
5128
5173
|
*/
|
|
5129
5174
|
slotNodes: {
|
|
5130
5175
|
type: Boolean,
|
|
5176
|
+
attribute: 'slotnodes',
|
|
5131
5177
|
},
|
|
5132
5178
|
|
|
5133
5179
|
/**
|
|
@@ -5135,6 +5181,7 @@ class AuroHelpText extends LitElement {
|
|
|
5135
5181
|
*/
|
|
5136
5182
|
hasTextContent: {
|
|
5137
5183
|
type: Boolean,
|
|
5184
|
+
attribute: 'hastextcontent',
|
|
5138
5185
|
},
|
|
5139
5186
|
|
|
5140
5187
|
/**
|
|
@@ -5150,6 +5197,7 @@ class AuroHelpText extends LitElement {
|
|
|
5150
5197
|
*/
|
|
5151
5198
|
onDark: {
|
|
5152
5199
|
type: Boolean,
|
|
5200
|
+
attribute: 'ondark',
|
|
5153
5201
|
reflect: true
|
|
5154
5202
|
}
|
|
5155
5203
|
};
|
|
@@ -5220,39 +5268,39 @@ class AuroHelpText extends LitElement {
|
|
|
5220
5268
|
}
|
|
5221
5269
|
}
|
|
5222
5270
|
|
|
5223
|
-
var formkitVersion = '
|
|
5271
|
+
var formkitVersion = '202608300032';
|
|
5224
5272
|
|
|
5273
|
+
/**
|
|
5274
|
+
* AuroElement is the shared base class for layout-aware Auro form components.
|
|
5275
|
+
*
|
|
5276
|
+
* It defines the common `layout`, `shape`, `size`, and `ondark` reactive
|
|
5277
|
+
* properties and the architecture helpers (`renderLayout`, `resetShapeClasses`,
|
|
5278
|
+
* `resetLayoutClasses`) that subclasses use to render a chosen layout and apply
|
|
5279
|
+
* the matching `shape-*` / `layout-*` wrapper classes. Subclasses supply their
|
|
5280
|
+
* own default and valid value set for `layout`, `shape`, and `size`.
|
|
5281
|
+
*/
|
|
5225
5282
|
let AuroElement$1 = class AuroElement extends LitElement {
|
|
5226
5283
|
static get properties() {
|
|
5227
5284
|
return {
|
|
5228
5285
|
|
|
5229
5286
|
/**
|
|
5230
|
-
*
|
|
5231
|
-
* @default {'default'}
|
|
5287
|
+
* When true, renders the component styled for use on a dark background.
|
|
5232
5288
|
*/
|
|
5233
|
-
layout: {
|
|
5234
|
-
type: String,
|
|
5235
|
-
attribute: "layout",
|
|
5236
|
-
reflect: true
|
|
5237
|
-
},
|
|
5238
|
-
|
|
5239
|
-
shape: {
|
|
5240
|
-
type: String,
|
|
5241
|
-
attribute: "shape",
|
|
5242
|
-
reflect: true
|
|
5243
|
-
},
|
|
5244
|
-
|
|
5245
|
-
size: {
|
|
5246
|
-
type: String,
|
|
5247
|
-
attribute: "size",
|
|
5248
|
-
reflect: true
|
|
5249
|
-
},
|
|
5250
|
-
|
|
5251
5289
|
onDark: {
|
|
5252
5290
|
type: Boolean,
|
|
5253
5291
|
attribute: "ondark",
|
|
5254
5292
|
reflect: true
|
|
5255
5293
|
}
|
|
5294
|
+
|
|
5295
|
+
// NOTE: `layout`, `shape`, and `size` are intentionally NOT declared here.
|
|
5296
|
+
// Their valid value sets differ per component, and the CEM analyzer roots
|
|
5297
|
+
// an inherited property's `type` in the class that declares it — a base
|
|
5298
|
+
// declaration would force every subclass's `@type` to be discarded and
|
|
5299
|
+
// emitted as plain `string`. Each subclass declares its own `layout` /
|
|
5300
|
+
// `shape` / `size` with an exact `@type` union instead. AuroElement still
|
|
5301
|
+
// consumes `this.layout` / `this.shape` / `this.size` in its render and
|
|
5302
|
+
// architecture helpers below (subclasses guarantee the reactive props).
|
|
5303
|
+
// See AlaskaAirlines/discussions#653.
|
|
5256
5304
|
};
|
|
5257
5305
|
}
|
|
5258
5306
|
|
|
@@ -5338,6 +5386,7 @@ let AuroElement$1 = class AuroElement extends LitElement {
|
|
|
5338
5386
|
* @slot helpText - Defines the content of the helpText.
|
|
5339
5387
|
* @slot trigger - Defines the content of the trigger.
|
|
5340
5388
|
* @csspart trigger - The trigger content container.
|
|
5389
|
+
* @csspart wrapper - The trigger wrapper element surrounding the trigger content and chevron.
|
|
5341
5390
|
* @csspart chevron - The collapsed/expanded state icon container.
|
|
5342
5391
|
* @csspart size - The size of the dropdown bib. (height, width, maxHeight, maxWidth only)
|
|
5343
5392
|
* @csspart helpText - The helpText content container.
|
|
@@ -5362,7 +5411,7 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
5362
5411
|
|
|
5363
5412
|
/**
|
|
5364
5413
|
* When true, the dropdown skips its generic focus restoration on close.
|
|
5365
|
-
* Set by consumers (
|
|
5414
|
+
* Set by consumers (for example combobox) that manage their own focus routing
|
|
5366
5415
|
* via setClearBtnFocus / setInputFocus / keyboard strategy.
|
|
5367
5416
|
* Separate from noHideOnThisFocusLoss (which controls auto-close behavior).
|
|
5368
5417
|
* @private
|
|
@@ -5531,7 +5580,7 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
5531
5580
|
/**
|
|
5532
5581
|
* Focus the trigger content. When the trigger wrapper itself is focusable
|
|
5533
5582
|
* (has tabindex), focus it directly. Otherwise, focus the first focusable
|
|
5534
|
-
* element slotted into the trigger slot (
|
|
5583
|
+
* element slotted into the trigger slot (for example the auro-input).
|
|
5535
5584
|
* @private
|
|
5536
5585
|
*/
|
|
5537
5586
|
focusTrigger() {
|
|
@@ -5628,6 +5677,7 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
5628
5677
|
*/
|
|
5629
5678
|
autoPlacement: {
|
|
5630
5679
|
type: Boolean,
|
|
5680
|
+
attribute: 'autoplacement',
|
|
5631
5681
|
reflect: true
|
|
5632
5682
|
},
|
|
5633
5683
|
|
|
@@ -5636,6 +5686,7 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
5636
5686
|
*/
|
|
5637
5687
|
desktopModal: {
|
|
5638
5688
|
type: Boolean,
|
|
5689
|
+
attribute: 'desktopmodal',
|
|
5639
5690
|
reflect: true
|
|
5640
5691
|
},
|
|
5641
5692
|
|
|
@@ -5644,6 +5695,7 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
5644
5695
|
*/
|
|
5645
5696
|
disableEventShow: {
|
|
5646
5697
|
type: Boolean,
|
|
5698
|
+
attribute: 'disableeventshow',
|
|
5647
5699
|
reflect: true
|
|
5648
5700
|
},
|
|
5649
5701
|
|
|
@@ -5677,14 +5729,16 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
5677
5729
|
*/
|
|
5678
5730
|
disableKeyboardHandling: {
|
|
5679
5731
|
type: Boolean,
|
|
5732
|
+
attribute: 'disablekeyboardhandling',
|
|
5680
5733
|
reflect: true
|
|
5681
5734
|
},
|
|
5682
5735
|
|
|
5683
5736
|
/**
|
|
5684
|
-
*
|
|
5737
|
+
* Sets the width of the dropdown bib in pixels.
|
|
5685
5738
|
*/
|
|
5686
5739
|
dropdownWidth: {
|
|
5687
|
-
type: Number
|
|
5740
|
+
type: Number,
|
|
5741
|
+
attribute: 'dropdownwidth'
|
|
5688
5742
|
},
|
|
5689
5743
|
|
|
5690
5744
|
/**
|
|
@@ -5709,7 +5763,8 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
5709
5763
|
* Contains the help text message for the current validity error.
|
|
5710
5764
|
*/
|
|
5711
5765
|
errorMessage: {
|
|
5712
|
-
type: String
|
|
5766
|
+
type: String,
|
|
5767
|
+
attribute: 'errormessage'
|
|
5713
5768
|
},
|
|
5714
5769
|
|
|
5715
5770
|
/**
|
|
@@ -5717,6 +5772,7 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
5717
5772
|
*/
|
|
5718
5773
|
focusShow: {
|
|
5719
5774
|
type: Boolean,
|
|
5775
|
+
attribute: 'focusshow',
|
|
5720
5776
|
reflect: true
|
|
5721
5777
|
},
|
|
5722
5778
|
|
|
@@ -5734,6 +5790,7 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
5734
5790
|
*/
|
|
5735
5791
|
isBibFullscreen: {
|
|
5736
5792
|
type: Boolean,
|
|
5793
|
+
attribute: 'isbibfullscreen',
|
|
5737
5794
|
reflect: true
|
|
5738
5795
|
},
|
|
5739
5796
|
|
|
@@ -5742,6 +5799,7 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
5742
5799
|
*/
|
|
5743
5800
|
hoverToggle: {
|
|
5744
5801
|
type: Boolean,
|
|
5802
|
+
attribute: 'hovertoggle',
|
|
5745
5803
|
reflect: true
|
|
5746
5804
|
},
|
|
5747
5805
|
|
|
@@ -5749,7 +5807,8 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
5749
5807
|
* @private
|
|
5750
5808
|
*/
|
|
5751
5809
|
hasTriggerContent: {
|
|
5752
|
-
type: Boolean
|
|
5810
|
+
type: Boolean,
|
|
5811
|
+
attribute: false
|
|
5753
5812
|
},
|
|
5754
5813
|
|
|
5755
5814
|
/**
|
|
@@ -5762,6 +5821,7 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
5762
5821
|
*/
|
|
5763
5822
|
fullscreenBreakpoint: {
|
|
5764
5823
|
type: String,
|
|
5824
|
+
attribute: "fullscreenbreakpoint",
|
|
5765
5825
|
reflect: true
|
|
5766
5826
|
},
|
|
5767
5827
|
|
|
@@ -5772,6 +5832,27 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
5772
5832
|
*/
|
|
5773
5833
|
layout: {
|
|
5774
5834
|
type: String,
|
|
5835
|
+
attribute: "layout",
|
|
5836
|
+
reflect: true
|
|
5837
|
+
},
|
|
5838
|
+
|
|
5839
|
+
/**
|
|
5840
|
+
* Sets the shape of the dropdown.
|
|
5841
|
+
* @type {'box' | 'classic' | 'pill' | 'pill-left' | 'pill-right' | 'rounded' | 'snowflake'}
|
|
5842
|
+
*/
|
|
5843
|
+
shape: {
|
|
5844
|
+
type: String,
|
|
5845
|
+
attribute: "shape",
|
|
5846
|
+
reflect: true
|
|
5847
|
+
},
|
|
5848
|
+
|
|
5849
|
+
/**
|
|
5850
|
+
* Sets the size of the dropdown.
|
|
5851
|
+
* @type {'xs' | 'sm' | 'md' | 'lg' | 'xl'}
|
|
5852
|
+
*/
|
|
5853
|
+
size: {
|
|
5854
|
+
type: String,
|
|
5855
|
+
attribute: "size",
|
|
5775
5856
|
reflect: true
|
|
5776
5857
|
},
|
|
5777
5858
|
|
|
@@ -5781,6 +5862,7 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
5781
5862
|
*/
|
|
5782
5863
|
parentBorder: {
|
|
5783
5864
|
type: Boolean,
|
|
5865
|
+
attribute: 'parentborder',
|
|
5784
5866
|
reflect: true
|
|
5785
5867
|
},
|
|
5786
5868
|
|
|
@@ -5789,6 +5871,7 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
5789
5871
|
*/
|
|
5790
5872
|
matchWidth: {
|
|
5791
5873
|
type: Boolean,
|
|
5874
|
+
attribute: 'matchwidth',
|
|
5792
5875
|
reflect: true
|
|
5793
5876
|
},
|
|
5794
5877
|
|
|
@@ -5798,6 +5881,7 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
5798
5881
|
*/
|
|
5799
5882
|
noFlip: {
|
|
5800
5883
|
type: Boolean,
|
|
5884
|
+
attribute: 'noflip',
|
|
5801
5885
|
reflect: true
|
|
5802
5886
|
},
|
|
5803
5887
|
|
|
@@ -5814,6 +5898,7 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
5814
5898
|
*/
|
|
5815
5899
|
noHideOnThisFocusLoss: {
|
|
5816
5900
|
type: Boolean,
|
|
5901
|
+
attribute: 'nohideonthisfocusloss',
|
|
5817
5902
|
reflect: true
|
|
5818
5903
|
},
|
|
5819
5904
|
|
|
@@ -5822,6 +5907,7 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
5822
5907
|
*/
|
|
5823
5908
|
noToggle: {
|
|
5824
5909
|
type: Boolean,
|
|
5910
|
+
attribute: 'notoggle',
|
|
5825
5911
|
reflect: true
|
|
5826
5912
|
},
|
|
5827
5913
|
|
|
@@ -5839,14 +5925,17 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
5839
5925
|
*/
|
|
5840
5926
|
onDark: {
|
|
5841
5927
|
type: Boolean,
|
|
5928
|
+
attribute: 'ondark',
|
|
5842
5929
|
reflect: true
|
|
5843
5930
|
},
|
|
5844
5931
|
|
|
5845
5932
|
/**
|
|
5846
5933
|
* If declared, and a function is set, that function will execute when the slot content is updated.
|
|
5934
|
+
* @type {() => void}
|
|
5847
5935
|
*/
|
|
5848
5936
|
onSlotChange: {
|
|
5849
5937
|
type: Function,
|
|
5938
|
+
attribute: 'onslotchange',
|
|
5850
5939
|
reflect: false
|
|
5851
5940
|
},
|
|
5852
5941
|
|
|
@@ -5861,10 +5950,11 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
5861
5950
|
},
|
|
5862
5951
|
|
|
5863
5952
|
/**
|
|
5864
|
-
*
|
|
5953
|
+
* Sets the tabindex applied to the dropdown trigger for keyboard focus order.
|
|
5865
5954
|
*/
|
|
5866
5955
|
tabIndex: {
|
|
5867
|
-
type: Number
|
|
5956
|
+
type: Number,
|
|
5957
|
+
attribute: 'tabindex'
|
|
5868
5958
|
},
|
|
5869
5959
|
|
|
5870
5960
|
/**
|
|
@@ -6088,7 +6178,7 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
6088
6178
|
/**
|
|
6089
6179
|
* @description Let subscribers know that the dropdown ID ha been generated and added.
|
|
6090
6180
|
* @event auroDropdown-idAdded
|
|
6091
|
-
* @type {
|
|
6181
|
+
* @type {CustomEvent<{ id: string }>} - Detail carries the generated ID of the dropdown bib element.
|
|
6092
6182
|
*/
|
|
6093
6183
|
this.dispatchEvent(new CustomEvent('auroDropdown-idAdded', {detail: {id: this.floater.element.id}}));
|
|
6094
6184
|
|
|
@@ -6938,6 +7028,9 @@ var headerVersion = '5.0.1';
|
|
|
6938
7028
|
* @slot subheader - Slot for the subheader content.
|
|
6939
7029
|
* @slot footer - Slot for the footer content.
|
|
6940
7030
|
* @slot ariaLabel.close - Slot for the close button aria-label.
|
|
7031
|
+
* @csspart bibtemplate - The outermost bibtemplate container element.
|
|
7032
|
+
* @event close-click - Notifies when the close button is clicked.
|
|
7033
|
+
* @event auro-bibtemplate-connected - Notifies that the bibtemplate has connected to the DOM, passing a reference to the element in the event detail.
|
|
6941
7034
|
*/
|
|
6942
7035
|
class AuroBibtemplate extends LitElement {
|
|
6943
7036
|
|
|
@@ -6977,10 +7070,19 @@ class AuroBibtemplate extends LitElement {
|
|
|
6977
7070
|
// function to define props used within the scope of this component
|
|
6978
7071
|
static get properties() {
|
|
6979
7072
|
return {
|
|
7073
|
+
|
|
7074
|
+
/**
|
|
7075
|
+
* If declared, the bibtemplate renders in fullscreen mode, exposing the header, subheader, and footer regions.
|
|
7076
|
+
*/
|
|
6980
7077
|
isFullscreen: {
|
|
6981
7078
|
type: Boolean,
|
|
7079
|
+
attribute: 'isfullscreen',
|
|
6982
7080
|
reflect: true
|
|
6983
7081
|
},
|
|
7082
|
+
|
|
7083
|
+
/**
|
|
7084
|
+
* If declared, the fullscreen headline renders using the larger display heading style.
|
|
7085
|
+
*/
|
|
6984
7086
|
large: {
|
|
6985
7087
|
type: Boolean,
|
|
6986
7088
|
reflect: true
|
|
@@ -6991,6 +7093,7 @@ class AuroBibtemplate extends LitElement {
|
|
|
6991
7093
|
*/
|
|
6992
7094
|
showFooter: {
|
|
6993
7095
|
type: Boolean,
|
|
7096
|
+
attribute: 'showfooter',
|
|
6994
7097
|
reflect: true
|
|
6995
7098
|
}
|
|
6996
7099
|
};
|
|
@@ -7145,37 +7248,37 @@ if (!customElements.get("auro-counter-wrapper")) {
|
|
|
7145
7248
|
customElements.define("auro-counter-wrapper", AuroCounterWrapper);
|
|
7146
7249
|
}
|
|
7147
7250
|
|
|
7251
|
+
/**
|
|
7252
|
+
* AuroElement is the shared base class for layout-aware Auro form components.
|
|
7253
|
+
*
|
|
7254
|
+
* It defines the common `layout`, `shape`, `size`, and `ondark` reactive
|
|
7255
|
+
* properties and the architecture helpers (`renderLayout`, `resetShapeClasses`,
|
|
7256
|
+
* `resetLayoutClasses`) that subclasses use to render a chosen layout and apply
|
|
7257
|
+
* the matching `shape-*` / `layout-*` wrapper classes. Subclasses supply their
|
|
7258
|
+
* own default and valid value set for `layout`, `shape`, and `size`.
|
|
7259
|
+
*/
|
|
7148
7260
|
class AuroElement extends LitElement {
|
|
7149
7261
|
static get properties() {
|
|
7150
7262
|
return {
|
|
7151
7263
|
|
|
7152
7264
|
/**
|
|
7153
|
-
*
|
|
7154
|
-
* @default {'default'}
|
|
7265
|
+
* When true, renders the component styled for use on a dark background.
|
|
7155
7266
|
*/
|
|
7156
|
-
layout: {
|
|
7157
|
-
type: String,
|
|
7158
|
-
attribute: "layout",
|
|
7159
|
-
reflect: true
|
|
7160
|
-
},
|
|
7161
|
-
|
|
7162
|
-
shape: {
|
|
7163
|
-
type: String,
|
|
7164
|
-
attribute: "shape",
|
|
7165
|
-
reflect: true
|
|
7166
|
-
},
|
|
7167
|
-
|
|
7168
|
-
size: {
|
|
7169
|
-
type: String,
|
|
7170
|
-
attribute: "size",
|
|
7171
|
-
reflect: true
|
|
7172
|
-
},
|
|
7173
|
-
|
|
7174
7267
|
onDark: {
|
|
7175
7268
|
type: Boolean,
|
|
7176
7269
|
attribute: "ondark",
|
|
7177
7270
|
reflect: true
|
|
7178
7271
|
}
|
|
7272
|
+
|
|
7273
|
+
// NOTE: `layout`, `shape`, and `size` are intentionally NOT declared here.
|
|
7274
|
+
// Their valid value sets differ per component, and the CEM analyzer roots
|
|
7275
|
+
// an inherited property's `type` in the class that declares it — a base
|
|
7276
|
+
// declaration would force every subclass's `@type` to be discarded and
|
|
7277
|
+
// emitted as plain `string`. Each subclass declares its own `layout` /
|
|
7278
|
+
// `shape` / `size` with an exact `@type` union instead. AuroElement still
|
|
7279
|
+
// consumes `this.layout` / `this.shape` / `this.size` in its render and
|
|
7280
|
+
// architecture helpers below (subclasses guarantee the reactive props).
|
|
7281
|
+
// See AlaskaAirlines/discussions#653.
|
|
7179
7282
|
};
|
|
7180
7283
|
}
|
|
7181
7284
|
|
|
@@ -7282,11 +7385,17 @@ const counterGroupKeyboardStrategy = {
|
|
|
7282
7385
|
* @slot label - Dropdown label content. Only used when `isDropdown` is true.
|
|
7283
7386
|
* @slot valueText - Dropdown value text display. Only used when `isDropdown` is true.
|
|
7284
7387
|
* @slot helpText - Dropdown help text content. Only used when `isDropdown` is true.
|
|
7388
|
+
*
|
|
7389
|
+
* @csspart dropdown - The dropdown element rendered when `isDropdown` is true.
|
|
7390
|
+
* @csspart helpText - The help text and error message container.
|
|
7391
|
+
*
|
|
7392
|
+
* @event input - Notifies that the counter group's value has changed.
|
|
7285
7393
|
*/
|
|
7286
7394
|
class AuroCounterGroup extends AuroElement {
|
|
7287
7395
|
constructor() {
|
|
7288
7396
|
super();
|
|
7289
7397
|
|
|
7398
|
+
/** @type {'default' | 'inverse'} */
|
|
7290
7399
|
this.appearance = "default";
|
|
7291
7400
|
this.max = undefined;
|
|
7292
7401
|
this.min = undefined;
|
|
@@ -7394,6 +7503,7 @@ class AuroCounterGroup extends AuroElement {
|
|
|
7394
7503
|
*/
|
|
7395
7504
|
autoPlacement: {
|
|
7396
7505
|
type: Boolean,
|
|
7506
|
+
attribute: "autoplacement",
|
|
7397
7507
|
reflect: true
|
|
7398
7508
|
},
|
|
7399
7509
|
|
|
@@ -7426,6 +7536,7 @@ class AuroCounterGroup extends AuroElement {
|
|
|
7426
7536
|
*/
|
|
7427
7537
|
fullscreenBreakpoint: {
|
|
7428
7538
|
type: String,
|
|
7539
|
+
attribute: "fullscreenbreakpoint",
|
|
7429
7540
|
reflect: true
|
|
7430
7541
|
},
|
|
7431
7542
|
|
|
@@ -7433,7 +7544,8 @@ class AuroCounterGroup extends AuroElement {
|
|
|
7433
7544
|
* If true, the counter group is displayed as a dropdown.
|
|
7434
7545
|
*/
|
|
7435
7546
|
isDropdown: {
|
|
7436
|
-
type: Boolean
|
|
7547
|
+
type: Boolean,
|
|
7548
|
+
attribute: "isdropdown"
|
|
7437
7549
|
},
|
|
7438
7550
|
|
|
7439
7551
|
/**
|
|
@@ -7443,6 +7555,29 @@ class AuroCounterGroup extends AuroElement {
|
|
|
7443
7555
|
*/
|
|
7444
7556
|
layout: {
|
|
7445
7557
|
type: String,
|
|
7558
|
+
attribute: "layout",
|
|
7559
|
+
reflect: true
|
|
7560
|
+
},
|
|
7561
|
+
|
|
7562
|
+
/**
|
|
7563
|
+
* Sets the shape of the counter group when it is a dropdown.
|
|
7564
|
+
* @type {'box' | 'classic' | 'pill' | 'pill-left' | 'pill-right' | 'rounded' | 'snowflake'}
|
|
7565
|
+
* @default 'classic'
|
|
7566
|
+
*/
|
|
7567
|
+
shape: {
|
|
7568
|
+
type: String,
|
|
7569
|
+
attribute: "shape",
|
|
7570
|
+
reflect: true
|
|
7571
|
+
},
|
|
7572
|
+
|
|
7573
|
+
/**
|
|
7574
|
+
* Sets the size of the counter group when it is a dropdown.
|
|
7575
|
+
* @type {'xs' | 'sm' | 'md' | 'lg' | 'xl'}
|
|
7576
|
+
* @default 'xl'
|
|
7577
|
+
*/
|
|
7578
|
+
size: {
|
|
7579
|
+
type: String,
|
|
7580
|
+
attribute: "size",
|
|
7446
7581
|
reflect: true
|
|
7447
7582
|
},
|
|
7448
7583
|
|
|
@@ -7452,6 +7587,7 @@ class AuroCounterGroup extends AuroElement {
|
|
|
7452
7587
|
*/
|
|
7453
7588
|
matchWidth: {
|
|
7454
7589
|
type: Boolean,
|
|
7590
|
+
attribute: "matchwidth",
|
|
7455
7591
|
reflect: true
|
|
7456
7592
|
},
|
|
7457
7593
|
|
|
@@ -7477,6 +7613,7 @@ class AuroCounterGroup extends AuroElement {
|
|
|
7477
7613
|
*/
|
|
7478
7614
|
largeFullscreenHeadline: {
|
|
7479
7615
|
type: Boolean,
|
|
7616
|
+
attribute: "largefullscreenheadline",
|
|
7480
7617
|
reflect: true
|
|
7481
7618
|
},
|
|
7482
7619
|
|
|
@@ -7486,6 +7623,7 @@ class AuroCounterGroup extends AuroElement {
|
|
|
7486
7623
|
*/
|
|
7487
7624
|
noFlip: {
|
|
7488
7625
|
type: Boolean,
|
|
7626
|
+
attribute: "noflip",
|
|
7489
7627
|
reflect: true
|
|
7490
7628
|
},
|
|
7491
7629
|
|
|
@@ -7511,6 +7649,7 @@ class AuroCounterGroup extends AuroElement {
|
|
|
7511
7649
|
*/
|
|
7512
7650
|
onDark: {
|
|
7513
7651
|
type: Boolean,
|
|
7652
|
+
attribute: "ondark",
|
|
7514
7653
|
reflect: true
|
|
7515
7654
|
},
|
|
7516
7655
|
|
|
@@ -7541,6 +7680,7 @@ class AuroCounterGroup extends AuroElement {
|
|
|
7541
7680
|
|
|
7542
7681
|
/**
|
|
7543
7682
|
* The current individual values of the nested counters.
|
|
7683
|
+
* @type {Record<string, number>}
|
|
7544
7684
|
*/
|
|
7545
7685
|
value: {
|
|
7546
7686
|
type: Object,
|