@aurodesignsystem-dev/auro-formkit 0.0.0-pr1594.2 → 0.0.0-pr1595.0
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 +24 -16
- package/components/combobox/demo/customize.min.js +405 -121
- package/components/combobox/demo/getting-started.min.js +405 -121
- package/components/combobox/demo/index.min.js +405 -121
- package/components/combobox/dist/auro-combobox.d.ts +29 -0
- package/components/combobox/dist/index.js +320 -107
- package/components/combobox/dist/registered.js +320 -107
- package/components/counter/demo/api.md +33 -15
- package/components/counter/demo/customize.min.js +201 -64
- package/components/counter/demo/index.min.js +201 -64
- package/components/counter/dist/auro-counter-button.d.ts +4 -0
- package/components/counter/dist/auro-counter-group.d.ts +23 -0
- package/components/counter/dist/auro-counter.d.ts +7 -0
- package/components/counter/dist/index.js +201 -64
- package/components/counter/dist/registered.js +201 -64
- package/components/datepicker/demo/api.md +55 -49
- package/components/datepicker/demo/customize.min.js +483 -131
- package/components/datepicker/demo/index.min.js +483 -131
- package/components/datepicker/dist/auro-calendar-cell.d.ts +55 -0
- package/components/datepicker/dist/auro-calendar-month.d.ts +9 -1
- package/components/datepicker/dist/auro-calendar.d.ts +16 -0
- package/components/datepicker/dist/auro-datepicker.d.ts +63 -10
- package/components/datepicker/dist/index.js +483 -131
- package/components/datepicker/dist/registered.js +483 -131
- package/components/dropdown/demo/api.md +25 -22
- package/components/dropdown/demo/customize.min.js +106 -37
- package/components/dropdown/demo/getting-started.min.js +232 -79
- package/components/dropdown/demo/index.min.js +106 -37
- package/components/dropdown/dist/auro-dropdown.d.ts +33 -4
- package/components/dropdown/dist/auro-dropdownBib.d.ts +17 -5
- package/components/dropdown/dist/index.js +106 -37
- package/components/dropdown/dist/registered.js +106 -37
- package/components/form/demo/customize.min.js +1448 -455
- package/components/form/demo/getting-started.min.js +1448 -455
- package/components/form/demo/index.min.js +1448 -455
- package/components/form/demo/registerDemoDeps.min.js +1448 -455
- 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 +126 -42
- package/components/input/demo/getting-started.min.js +126 -42
- package/components/input/demo/index.min.js +126 -42
- package/components/input/dist/base-input.d.ts +67 -22
- package/components/input/dist/index.js +126 -42
- package/components/input/dist/registered.js +126 -42
- 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 +30 -27
- package/components/menu/demo/index.min.js +105 -34
- package/components/menu/dist/auro-menu.d.ts +24 -13
- package/components/menu/dist/auro-menuoption.d.ts +26 -0
- package/components/menu/dist/index.js +105 -34
- package/components/menu/dist/registered.js +105 -34
- package/components/radio/demo/api.md +8 -7
- package/components/radio/demo/customize.min.js +20 -7
- package/components/radio/demo/getting-started.min.js +20 -7
- package/components/radio/demo/index.min.js +20 -7
- package/components/radio/dist/auro-radio-group.d.ts +7 -0
- package/components/radio/dist/auro-radio.d.ts +1 -0
- package/components/radio/dist/index.js +20 -7
- package/components/radio/dist/registered.js +20 -7
- package/components/select/demo/api.md +18 -15
- package/components/select/demo/customize.min.js +255 -78
- package/components/select/demo/getting-started.min.js +255 -78
- package/components/select/demo/index.min.js +255 -78
- package/components/select/dist/auro-select.d.ts +17 -0
- package/components/select/dist/index.js +170 -64
- package/components/select/dist/registered.js +170 -64
- package/custom-elements.json +2573 -2680
- package/package.json +1 -1
|
@@ -4321,8 +4321,11 @@ const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
|
|
|
4321
4321
|
];
|
|
4322
4322
|
|
|
4323
4323
|
/**
|
|
4324
|
+
* The `auro-dropdownbib` element renders the dropdown's bib as a dialog/popover container and manages its fullscreen and modal display.
|
|
4324
4325
|
* @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.
|
|
4325
4326
|
* @csspart bibContainer - Apply css to the bib container.
|
|
4327
|
+
* @event auro-dropdownbib-connected - Notifies that the dropdown bib has connected to the DOM, passing a reference to the element in the event detail.
|
|
4328
|
+
* @event auro-bib-cancel - Notifies that the bib was cancelled (e.g. via the ESC key) so parent components can close it.
|
|
4326
4329
|
*/
|
|
4327
4330
|
|
|
4328
4331
|
class AuroDropdownBib extends LitElement {
|
|
@@ -4337,9 +4340,17 @@ class AuroDropdownBib extends LitElement {
|
|
|
4337
4340
|
|
|
4338
4341
|
AuroLibraryRuntimeUtils$1$2.prototype.handleComponentTagRename(this, 'auro-dropdownbib');
|
|
4339
4342
|
|
|
4340
|
-
this.shape = "rounded";
|
|
4341
4343
|
this.matchWidth = false;
|
|
4342
4344
|
this.hasActiveDescendant = false;
|
|
4345
|
+
|
|
4346
|
+
this.initializeArchitectureDefaults();
|
|
4347
|
+
}
|
|
4348
|
+
|
|
4349
|
+
// The `shape` default is set in a helper (not the constructor body) so the CEM
|
|
4350
|
+
// analyzer keeps its `@type` union instead of inferring `string` from a
|
|
4351
|
+
// constructor-literal assignment. See AlaskaAirlines/discussions#653.
|
|
4352
|
+
initializeArchitectureDefaults() {
|
|
4353
|
+
this.shape = "rounded";
|
|
4343
4354
|
}
|
|
4344
4355
|
|
|
4345
4356
|
static get styles() {
|
|
@@ -4358,6 +4369,7 @@ class AuroDropdownBib extends LitElement {
|
|
|
4358
4369
|
*/
|
|
4359
4370
|
isFullscreen: {
|
|
4360
4371
|
type: Boolean,
|
|
4372
|
+
attribute: 'isfullscreen',
|
|
4361
4373
|
reflect: true
|
|
4362
4374
|
},
|
|
4363
4375
|
|
|
@@ -4383,6 +4395,7 @@ class AuroDropdownBib extends LitElement {
|
|
|
4383
4395
|
*/
|
|
4384
4396
|
matchWidth: {
|
|
4385
4397
|
type: Boolean,
|
|
4398
|
+
attribute: 'matchwidth',
|
|
4386
4399
|
reflect: true
|
|
4387
4400
|
},
|
|
4388
4401
|
|
|
@@ -4398,11 +4411,18 @@ class AuroDropdownBib extends LitElement {
|
|
|
4398
4411
|
* A reference to the associated bib template element.
|
|
4399
4412
|
*/
|
|
4400
4413
|
bibTemplate: {
|
|
4401
|
-
type: Object
|
|
4414
|
+
type: Object,
|
|
4415
|
+
attribute: 'bibtemplate'
|
|
4402
4416
|
},
|
|
4403
4417
|
|
|
4418
|
+
/**
|
|
4419
|
+
* Sets the shape of the dropdown bib.
|
|
4420
|
+
* @type {'box' | 'classic' | 'pill' | 'rounded' | 'snowflake'}
|
|
4421
|
+
* @default 'rounded'
|
|
4422
|
+
*/
|
|
4404
4423
|
shape: {
|
|
4405
4424
|
type: String,
|
|
4425
|
+
attribute: "shape",
|
|
4406
4426
|
reflect: true
|
|
4407
4427
|
},
|
|
4408
4428
|
|
|
@@ -4414,7 +4434,8 @@ class AuroDropdownBib extends LitElement {
|
|
|
4414
4434
|
* @private
|
|
4415
4435
|
*/
|
|
4416
4436
|
dialogLabel: {
|
|
4417
|
-
type: String
|
|
4437
|
+
type: String,
|
|
4438
|
+
attribute: 'dialoglabel'
|
|
4418
4439
|
},
|
|
4419
4440
|
|
|
4420
4441
|
/**
|
|
@@ -4425,7 +4446,8 @@ class AuroDropdownBib extends LitElement {
|
|
|
4425
4446
|
* @private
|
|
4426
4447
|
*/
|
|
4427
4448
|
dialogRole: {
|
|
4428
|
-
type: String
|
|
4449
|
+
type: String,
|
|
4450
|
+
attribute: 'dialogrole'
|
|
4429
4451
|
},
|
|
4430
4452
|
|
|
4431
4453
|
/**
|
|
@@ -4433,7 +4455,8 @@ class AuroDropdownBib extends LitElement {
|
|
|
4433
4455
|
* @private
|
|
4434
4456
|
*/
|
|
4435
4457
|
hasActiveDescendant: {
|
|
4436
|
-
type: Boolean
|
|
4458
|
+
type: Boolean,
|
|
4459
|
+
attribute: 'hasactivedescendant'
|
|
4437
4460
|
}
|
|
4438
4461
|
};
|
|
4439
4462
|
}
|
|
@@ -4784,6 +4807,8 @@ let AuroHelpText$2 = class AuroHelpText extends LitElement {
|
|
|
4784
4807
|
super();
|
|
4785
4808
|
|
|
4786
4809
|
this.error = false;
|
|
4810
|
+
|
|
4811
|
+
/** @type {'default' | 'inverse'} */
|
|
4787
4812
|
this.appearance = "default";
|
|
4788
4813
|
this.onDark = false;
|
|
4789
4814
|
this.hasTextContent = false;
|
|
@@ -4804,8 +4829,8 @@ let AuroHelpText$2 = class AuroHelpText extends LitElement {
|
|
|
4804
4829
|
return {
|
|
4805
4830
|
|
|
4806
4831
|
/**
|
|
4807
|
-
*
|
|
4808
|
-
* @
|
|
4832
|
+
* The appearance of the help text, either default (for light backgrounds) or inverse (for dark backgrounds).
|
|
4833
|
+
* @type {'default' | 'inverse'}
|
|
4809
4834
|
* @default 'default'
|
|
4810
4835
|
*/
|
|
4811
4836
|
appearance: {
|
|
@@ -4818,6 +4843,7 @@ let AuroHelpText$2 = class AuroHelpText extends LitElement {
|
|
|
4818
4843
|
*/
|
|
4819
4844
|
slotNodes: {
|
|
4820
4845
|
type: Boolean,
|
|
4846
|
+
attribute: 'slotnodes',
|
|
4821
4847
|
},
|
|
4822
4848
|
|
|
4823
4849
|
/**
|
|
@@ -4825,6 +4851,7 @@ let AuroHelpText$2 = class AuroHelpText extends LitElement {
|
|
|
4825
4851
|
*/
|
|
4826
4852
|
hasTextContent: {
|
|
4827
4853
|
type: Boolean,
|
|
4854
|
+
attribute: 'hastextcontent',
|
|
4828
4855
|
},
|
|
4829
4856
|
|
|
4830
4857
|
/**
|
|
@@ -4840,6 +4867,7 @@ let AuroHelpText$2 = class AuroHelpText extends LitElement {
|
|
|
4840
4867
|
*/
|
|
4841
4868
|
onDark: {
|
|
4842
4869
|
type: Boolean,
|
|
4870
|
+
attribute: 'ondark',
|
|
4843
4871
|
reflect: true
|
|
4844
4872
|
}
|
|
4845
4873
|
};
|
|
@@ -4910,39 +4938,39 @@ let AuroHelpText$2 = class AuroHelpText extends LitElement {
|
|
|
4910
4938
|
}
|
|
4911
4939
|
};
|
|
4912
4940
|
|
|
4913
|
-
var formkitVersion$2 = '
|
|
4941
|
+
var formkitVersion$2 = '202608291822';
|
|
4914
4942
|
|
|
4943
|
+
/**
|
|
4944
|
+
* AuroElement is the shared base class for layout-aware Auro form components.
|
|
4945
|
+
*
|
|
4946
|
+
* It defines the common `layout`, `shape`, `size`, and `ondark` reactive
|
|
4947
|
+
* properties and the architecture helpers (`renderLayout`, `resetShapeClasses`,
|
|
4948
|
+
* `resetLayoutClasses`) that subclasses use to render a chosen layout and apply
|
|
4949
|
+
* the matching `shape-*` / `layout-*` wrapper classes. Subclasses supply their
|
|
4950
|
+
* own default and valid value set for `layout`, `shape`, and `size`.
|
|
4951
|
+
*/
|
|
4915
4952
|
let AuroElement$2 = class AuroElement extends LitElement {
|
|
4916
4953
|
static get properties() {
|
|
4917
4954
|
return {
|
|
4918
4955
|
|
|
4919
4956
|
/**
|
|
4920
|
-
*
|
|
4921
|
-
* @default {'default'}
|
|
4957
|
+
* When true, renders the component styled for use on a dark background.
|
|
4922
4958
|
*/
|
|
4923
|
-
layout: {
|
|
4924
|
-
type: String,
|
|
4925
|
-
attribute: "layout",
|
|
4926
|
-
reflect: true
|
|
4927
|
-
},
|
|
4928
|
-
|
|
4929
|
-
shape: {
|
|
4930
|
-
type: String,
|
|
4931
|
-
attribute: "shape",
|
|
4932
|
-
reflect: true
|
|
4933
|
-
},
|
|
4934
|
-
|
|
4935
|
-
size: {
|
|
4936
|
-
type: String,
|
|
4937
|
-
attribute: "size",
|
|
4938
|
-
reflect: true
|
|
4939
|
-
},
|
|
4940
|
-
|
|
4941
4959
|
onDark: {
|
|
4942
4960
|
type: Boolean,
|
|
4943
4961
|
attribute: "ondark",
|
|
4944
4962
|
reflect: true
|
|
4945
4963
|
}
|
|
4964
|
+
|
|
4965
|
+
// NOTE: `layout`, `shape`, and `size` are intentionally NOT declared here.
|
|
4966
|
+
// Their valid value sets differ per component, and the CEM analyzer roots
|
|
4967
|
+
// an inherited property's `type` in the class that declares it — a base
|
|
4968
|
+
// declaration would force every subclass's `@type` to be discarded and
|
|
4969
|
+
// emitted as plain `string`. Each subclass declares its own `layout` /
|
|
4970
|
+
// `shape` / `size` with an exact `@type` union instead. AuroElement still
|
|
4971
|
+
// consumes `this.layout` / `this.shape` / `this.size` in its render and
|
|
4972
|
+
// architecture helpers below (subclasses guarantee the reactive props).
|
|
4973
|
+
// See AlaskaAirlines/discussions#653.
|
|
4946
4974
|
};
|
|
4947
4975
|
}
|
|
4948
4976
|
|
|
@@ -5028,6 +5056,7 @@ let AuroElement$2 = class AuroElement extends LitElement {
|
|
|
5028
5056
|
* @slot helpText - Defines the content of the helpText.
|
|
5029
5057
|
* @slot trigger - Defines the content of the trigger.
|
|
5030
5058
|
* @csspart trigger - The trigger content container.
|
|
5059
|
+
* @csspart wrapper - The trigger wrapper element surrounding the trigger content and chevron.
|
|
5031
5060
|
* @csspart chevron - The collapsed/expanded state icon container.
|
|
5032
5061
|
* @csspart size - The size of the dropdown bib. (height, width, maxHeight, maxWidth only)
|
|
5033
5062
|
* @csspart helpText - The helpText content container.
|
|
@@ -5052,7 +5081,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
5052
5081
|
|
|
5053
5082
|
/**
|
|
5054
5083
|
* When true, the dropdown skips its generic focus restoration on close.
|
|
5055
|
-
* Set by consumers (
|
|
5084
|
+
* Set by consumers (for example combobox) that manage their own focus routing
|
|
5056
5085
|
* via setClearBtnFocus / setInputFocus / keyboard strategy.
|
|
5057
5086
|
* Separate from noHideOnThisFocusLoss (which controls auto-close behavior).
|
|
5058
5087
|
* @private
|
|
@@ -5221,7 +5250,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
5221
5250
|
/**
|
|
5222
5251
|
* Focus the trigger content. When the trigger wrapper itself is focusable
|
|
5223
5252
|
* (has tabindex), focus it directly. Otherwise, focus the first focusable
|
|
5224
|
-
* element slotted into the trigger slot (
|
|
5253
|
+
* element slotted into the trigger slot (for example the auro-input).
|
|
5225
5254
|
* @private
|
|
5226
5255
|
*/
|
|
5227
5256
|
focusTrigger() {
|
|
@@ -5318,6 +5347,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
5318
5347
|
*/
|
|
5319
5348
|
autoPlacement: {
|
|
5320
5349
|
type: Boolean,
|
|
5350
|
+
attribute: 'autoplacement',
|
|
5321
5351
|
reflect: true
|
|
5322
5352
|
},
|
|
5323
5353
|
|
|
@@ -5326,6 +5356,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
5326
5356
|
*/
|
|
5327
5357
|
desktopModal: {
|
|
5328
5358
|
type: Boolean,
|
|
5359
|
+
attribute: 'desktopmodal',
|
|
5329
5360
|
reflect: true
|
|
5330
5361
|
},
|
|
5331
5362
|
|
|
@@ -5334,6 +5365,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
5334
5365
|
*/
|
|
5335
5366
|
disableEventShow: {
|
|
5336
5367
|
type: Boolean,
|
|
5368
|
+
attribute: 'disableeventshow',
|
|
5337
5369
|
reflect: true
|
|
5338
5370
|
},
|
|
5339
5371
|
|
|
@@ -5367,14 +5399,16 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
5367
5399
|
*/
|
|
5368
5400
|
disableKeyboardHandling: {
|
|
5369
5401
|
type: Boolean,
|
|
5402
|
+
attribute: 'disablekeyboardhandling',
|
|
5370
5403
|
reflect: true
|
|
5371
5404
|
},
|
|
5372
5405
|
|
|
5373
5406
|
/**
|
|
5374
|
-
*
|
|
5407
|
+
* Sets the width of the dropdown bib in pixels.
|
|
5375
5408
|
*/
|
|
5376
5409
|
dropdownWidth: {
|
|
5377
|
-
type: Number
|
|
5410
|
+
type: Number,
|
|
5411
|
+
attribute: 'dropdownwidth'
|
|
5378
5412
|
},
|
|
5379
5413
|
|
|
5380
5414
|
/**
|
|
@@ -5399,7 +5433,8 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
5399
5433
|
* Contains the help text message for the current validity error.
|
|
5400
5434
|
*/
|
|
5401
5435
|
errorMessage: {
|
|
5402
|
-
type: String
|
|
5436
|
+
type: String,
|
|
5437
|
+
attribute: 'errormessage'
|
|
5403
5438
|
},
|
|
5404
5439
|
|
|
5405
5440
|
/**
|
|
@@ -5407,6 +5442,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
5407
5442
|
*/
|
|
5408
5443
|
focusShow: {
|
|
5409
5444
|
type: Boolean,
|
|
5445
|
+
attribute: 'focusshow',
|
|
5410
5446
|
reflect: true
|
|
5411
5447
|
},
|
|
5412
5448
|
|
|
@@ -5424,6 +5460,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
5424
5460
|
*/
|
|
5425
5461
|
isBibFullscreen: {
|
|
5426
5462
|
type: Boolean,
|
|
5463
|
+
attribute: 'isbibfullscreen',
|
|
5427
5464
|
reflect: true
|
|
5428
5465
|
},
|
|
5429
5466
|
|
|
@@ -5432,6 +5469,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
5432
5469
|
*/
|
|
5433
5470
|
hoverToggle: {
|
|
5434
5471
|
type: Boolean,
|
|
5472
|
+
attribute: 'hovertoggle',
|
|
5435
5473
|
reflect: true
|
|
5436
5474
|
},
|
|
5437
5475
|
|
|
@@ -5439,7 +5477,8 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
5439
5477
|
* @private
|
|
5440
5478
|
*/
|
|
5441
5479
|
hasTriggerContent: {
|
|
5442
|
-
type: Boolean
|
|
5480
|
+
type: Boolean,
|
|
5481
|
+
attribute: 'hastriggercontent'
|
|
5443
5482
|
},
|
|
5444
5483
|
|
|
5445
5484
|
/**
|
|
@@ -5452,6 +5491,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
5452
5491
|
*/
|
|
5453
5492
|
fullscreenBreakpoint: {
|
|
5454
5493
|
type: String,
|
|
5494
|
+
attribute: "fullscreenbreakpoint",
|
|
5455
5495
|
reflect: true
|
|
5456
5496
|
},
|
|
5457
5497
|
|
|
@@ -5462,6 +5502,27 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
5462
5502
|
*/
|
|
5463
5503
|
layout: {
|
|
5464
5504
|
type: String,
|
|
5505
|
+
attribute: "layout",
|
|
5506
|
+
reflect: true
|
|
5507
|
+
},
|
|
5508
|
+
|
|
5509
|
+
/**
|
|
5510
|
+
* Sets the shape of the dropdown.
|
|
5511
|
+
* @type {'box' | 'classic' | 'pill' | 'pill-left' | 'pill-right' | 'rounded' | 'snowflake'}
|
|
5512
|
+
*/
|
|
5513
|
+
shape: {
|
|
5514
|
+
type: String,
|
|
5515
|
+
attribute: "shape",
|
|
5516
|
+
reflect: true
|
|
5517
|
+
},
|
|
5518
|
+
|
|
5519
|
+
/**
|
|
5520
|
+
* Sets the size of the dropdown.
|
|
5521
|
+
* @type {'xs' | 'sm' | 'md' | 'lg' | 'xl'}
|
|
5522
|
+
*/
|
|
5523
|
+
size: {
|
|
5524
|
+
type: String,
|
|
5525
|
+
attribute: "size",
|
|
5465
5526
|
reflect: true
|
|
5466
5527
|
},
|
|
5467
5528
|
|
|
@@ -5471,6 +5532,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
5471
5532
|
*/
|
|
5472
5533
|
parentBorder: {
|
|
5473
5534
|
type: Boolean,
|
|
5535
|
+
attribute: 'parentborder',
|
|
5474
5536
|
reflect: true
|
|
5475
5537
|
},
|
|
5476
5538
|
|
|
@@ -5479,6 +5541,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
5479
5541
|
*/
|
|
5480
5542
|
matchWidth: {
|
|
5481
5543
|
type: Boolean,
|
|
5544
|
+
attribute: 'matchwidth',
|
|
5482
5545
|
reflect: true
|
|
5483
5546
|
},
|
|
5484
5547
|
|
|
@@ -5488,6 +5551,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
5488
5551
|
*/
|
|
5489
5552
|
noFlip: {
|
|
5490
5553
|
type: Boolean,
|
|
5554
|
+
attribute: 'noflip',
|
|
5491
5555
|
reflect: true
|
|
5492
5556
|
},
|
|
5493
5557
|
|
|
@@ -5504,6 +5568,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
5504
5568
|
*/
|
|
5505
5569
|
noHideOnThisFocusLoss: {
|
|
5506
5570
|
type: Boolean,
|
|
5571
|
+
attribute: 'nohideonthisfocusloss',
|
|
5507
5572
|
reflect: true
|
|
5508
5573
|
},
|
|
5509
5574
|
|
|
@@ -5512,6 +5577,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
5512
5577
|
*/
|
|
5513
5578
|
noToggle: {
|
|
5514
5579
|
type: Boolean,
|
|
5580
|
+
attribute: 'notoggle',
|
|
5515
5581
|
reflect: true
|
|
5516
5582
|
},
|
|
5517
5583
|
|
|
@@ -5529,6 +5595,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
5529
5595
|
*/
|
|
5530
5596
|
onDark: {
|
|
5531
5597
|
type: Boolean,
|
|
5598
|
+
attribute: 'ondark',
|
|
5532
5599
|
reflect: true
|
|
5533
5600
|
},
|
|
5534
5601
|
|
|
@@ -5537,6 +5604,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
5537
5604
|
*/
|
|
5538
5605
|
onSlotChange: {
|
|
5539
5606
|
type: Function,
|
|
5607
|
+
attribute: 'onslotchange',
|
|
5540
5608
|
reflect: false
|
|
5541
5609
|
},
|
|
5542
5610
|
|
|
@@ -5551,10 +5619,11 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
5551
5619
|
},
|
|
5552
5620
|
|
|
5553
5621
|
/**
|
|
5554
|
-
*
|
|
5622
|
+
* Sets the tabindex applied to the dropdown trigger for keyboard focus order.
|
|
5555
5623
|
*/
|
|
5556
5624
|
tabIndex: {
|
|
5557
|
-
type: Number
|
|
5625
|
+
type: Number,
|
|
5626
|
+
attribute: 'tabindex'
|
|
5558
5627
|
},
|
|
5559
5628
|
|
|
5560
5629
|
/**
|
|
@@ -5778,7 +5847,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
5778
5847
|
/**
|
|
5779
5848
|
* @description Let subscribers know that the dropdown ID ha been generated and added.
|
|
5780
5849
|
* @event auroDropdown-idAdded
|
|
5781
|
-
* @type {
|
|
5850
|
+
* @type {CustomEvent<{ id: string }>} - Detail carries the generated ID of the dropdown bib element.
|
|
5782
5851
|
*/
|
|
5783
5852
|
this.dispatchEvent(new CustomEvent('auroDropdown-idAdded', {detail: {id: this.floater.element.id}}));
|
|
5784
5853
|
|
|
@@ -10920,37 +10989,37 @@ class AuroFormValidation {
|
|
|
10920
10989
|
}
|
|
10921
10990
|
}
|
|
10922
10991
|
|
|
10992
|
+
/**
|
|
10993
|
+
* AuroElement is the shared base class for layout-aware Auro form components.
|
|
10994
|
+
*
|
|
10995
|
+
* It defines the common `layout`, `shape`, `size`, and `ondark` reactive
|
|
10996
|
+
* properties and the architecture helpers (`renderLayout`, `resetShapeClasses`,
|
|
10997
|
+
* `resetLayoutClasses`) that subclasses use to render a chosen layout and apply
|
|
10998
|
+
* the matching `shape-*` / `layout-*` wrapper classes. Subclasses supply their
|
|
10999
|
+
* own default and valid value set for `layout`, `shape`, and `size`.
|
|
11000
|
+
*/
|
|
10923
11001
|
let AuroElement$1 = class AuroElement extends LitElement {
|
|
10924
11002
|
static get properties() {
|
|
10925
11003
|
return {
|
|
10926
11004
|
|
|
10927
11005
|
/**
|
|
10928
|
-
*
|
|
10929
|
-
* @default {'default'}
|
|
11006
|
+
* When true, renders the component styled for use on a dark background.
|
|
10930
11007
|
*/
|
|
10931
|
-
layout: {
|
|
10932
|
-
type: String,
|
|
10933
|
-
attribute: "layout",
|
|
10934
|
-
reflect: true
|
|
10935
|
-
},
|
|
10936
|
-
|
|
10937
|
-
shape: {
|
|
10938
|
-
type: String,
|
|
10939
|
-
attribute: "shape",
|
|
10940
|
-
reflect: true
|
|
10941
|
-
},
|
|
10942
|
-
|
|
10943
|
-
size: {
|
|
10944
|
-
type: String,
|
|
10945
|
-
attribute: "size",
|
|
10946
|
-
reflect: true
|
|
10947
|
-
},
|
|
10948
|
-
|
|
10949
11008
|
onDark: {
|
|
10950
11009
|
type: Boolean,
|
|
10951
11010
|
attribute: "ondark",
|
|
10952
11011
|
reflect: true
|
|
10953
11012
|
}
|
|
11013
|
+
|
|
11014
|
+
// NOTE: `layout`, `shape`, and `size` are intentionally NOT declared here.
|
|
11015
|
+
// Their valid value sets differ per component, and the CEM analyzer roots
|
|
11016
|
+
// an inherited property's `type` in the class that declares it — a base
|
|
11017
|
+
// declaration would force every subclass's `@type` to be discarded and
|
|
11018
|
+
// emitted as plain `string`. Each subclass declares its own `layout` /
|
|
11019
|
+
// `shape` / `size` with an exact `@type` union instead. AuroElement still
|
|
11020
|
+
// consumes `this.layout` / `this.shape` / `this.size` in its render and
|
|
11021
|
+
// architecture helpers below (subclasses guarantee the reactive props).
|
|
11022
|
+
// See AlaskaAirlines/discussions#653.
|
|
10954
11023
|
};
|
|
10955
11024
|
}
|
|
10956
11025
|
|
|
@@ -16917,6 +16986,7 @@ class DomHandler {
|
|
|
16917
16986
|
* Base class for auro-input component that provides core input functionality.
|
|
16918
16987
|
* @event input - Event fires when the value of an `auro-input` has been changed.
|
|
16919
16988
|
* @event auroFormElement-validated - Notifies that the `validity` and `errorMessage` value has changed.
|
|
16989
|
+
* @event auroInput-validityChange - Notifies that the `validity` state of the input has changed.
|
|
16920
16990
|
*/
|
|
16921
16991
|
class BaseInput extends AuroElement$1 {
|
|
16922
16992
|
|
|
@@ -16956,6 +17026,8 @@ class BaseInput extends AuroElement$1 {
|
|
|
16956
17026
|
"credit-card",
|
|
16957
17027
|
"tel"
|
|
16958
17028
|
];
|
|
17029
|
+
|
|
17030
|
+
/** @type {'default' | 'inverse'} */
|
|
16959
17031
|
this.appearance = "default";
|
|
16960
17032
|
|
|
16961
17033
|
/** @private */
|
|
@@ -16989,7 +17061,6 @@ class BaseInput extends AuroElement$1 {
|
|
|
16989
17061
|
|
|
16990
17062
|
/** @private */
|
|
16991
17063
|
this.label = 'Input label is undefined';
|
|
16992
|
-
this.layout = 'classic';
|
|
16993
17064
|
this.locale = 'en-US';
|
|
16994
17065
|
this._format = undefined;
|
|
16995
17066
|
|
|
@@ -17011,11 +17082,9 @@ class BaseInput extends AuroElement$1 {
|
|
|
17011
17082
|
"password",
|
|
17012
17083
|
"email"
|
|
17013
17084
|
];
|
|
17014
|
-
this.shape = 'classic';
|
|
17015
17085
|
|
|
17016
17086
|
/** @private */
|
|
17017
17087
|
this.showPassword = false;
|
|
17018
|
-
this.size = 'lg';
|
|
17019
17088
|
this.touched = false;
|
|
17020
17089
|
|
|
17021
17090
|
/** @private */
|
|
@@ -17033,6 +17102,24 @@ class BaseInput extends AuroElement$1 {
|
|
|
17033
17102
|
/** @private */
|
|
17034
17103
|
this.validationCCLength = undefined;
|
|
17035
17104
|
this.value = undefined;
|
|
17105
|
+
|
|
17106
|
+
this.initializeArchitectureDefaults();
|
|
17107
|
+
}
|
|
17108
|
+
|
|
17109
|
+
/**
|
|
17110
|
+
* Sets the default `layout`, `shape`, and `size` values.
|
|
17111
|
+
*
|
|
17112
|
+
* These are assigned in a helper method rather than the constructor body so
|
|
17113
|
+
* the CEM analyzer keeps their `@type` string-literal unions (a literal
|
|
17114
|
+
* assignment in the constructor would make the analyzer infer `string` and
|
|
17115
|
+
* override the union — see AlaskaAirlines/discussions#653, gotcha 1).
|
|
17116
|
+
* @private
|
|
17117
|
+
* @returns {void}
|
|
17118
|
+
*/
|
|
17119
|
+
initializeArchitectureDefaults() {
|
|
17120
|
+
this.layout = 'classic';
|
|
17121
|
+
this.shape = 'classic';
|
|
17122
|
+
this.size = 'lg';
|
|
17036
17123
|
}
|
|
17037
17124
|
|
|
17038
17125
|
// function to define props used within the scope of this component
|
|
@@ -17040,11 +17127,45 @@ class BaseInput extends AuroElement$1 {
|
|
|
17040
17127
|
return {
|
|
17041
17128
|
...super.properties,
|
|
17042
17129
|
|
|
17130
|
+
/**
|
|
17131
|
+
* Sets the layout variant of the input.
|
|
17132
|
+
* @type {'classic' | 'emphasized' | 'emphasized-left' | 'emphasized-right' | 'snowflake' | 'snowflake-left' | 'snowflake-right'}
|
|
17133
|
+
* @default 'classic'
|
|
17134
|
+
*/
|
|
17135
|
+
layout: {
|
|
17136
|
+
type: String,
|
|
17137
|
+
attribute: "layout",
|
|
17138
|
+
reflect: true
|
|
17139
|
+
},
|
|
17140
|
+
|
|
17141
|
+
/**
|
|
17142
|
+
* Sets the shape of the input.
|
|
17143
|
+
* @type {'box' | 'classic' | 'pill' | 'pill-left' | 'pill-right' | 'rounded' | 'snowflake'}
|
|
17144
|
+
* @default 'classic'
|
|
17145
|
+
*/
|
|
17146
|
+
shape: {
|
|
17147
|
+
type: String,
|
|
17148
|
+
attribute: "shape",
|
|
17149
|
+
reflect: true
|
|
17150
|
+
},
|
|
17151
|
+
|
|
17152
|
+
/**
|
|
17153
|
+
* Sets the size of the input.
|
|
17154
|
+
* @type {'xs' | 'sm' | 'md' | 'lg' | 'xl'}
|
|
17155
|
+
* @default 'lg'
|
|
17156
|
+
*/
|
|
17157
|
+
size: {
|
|
17158
|
+
type: String,
|
|
17159
|
+
attribute: "size",
|
|
17160
|
+
reflect: true
|
|
17161
|
+
},
|
|
17162
|
+
|
|
17043
17163
|
/**
|
|
17044
17164
|
* The value for the role attribute.
|
|
17045
17165
|
*/
|
|
17046
17166
|
a11yRole: {
|
|
17047
17167
|
type: String,
|
|
17168
|
+
attribute: 'a11yrole',
|
|
17048
17169
|
reflect: true
|
|
17049
17170
|
},
|
|
17050
17171
|
|
|
@@ -17053,6 +17174,7 @@ class BaseInput extends AuroElement$1 {
|
|
|
17053
17174
|
*/
|
|
17054
17175
|
a11yControls: {
|
|
17055
17176
|
type: String,
|
|
17177
|
+
attribute: 'a11ycontrols',
|
|
17056
17178
|
reflect: true
|
|
17057
17179
|
},
|
|
17058
17180
|
|
|
@@ -17061,6 +17183,7 @@ class BaseInput extends AuroElement$1 {
|
|
|
17061
17183
|
*/
|
|
17062
17184
|
a11yExpanded: {
|
|
17063
17185
|
type: Boolean,
|
|
17186
|
+
attribute: 'a11yexpanded',
|
|
17064
17187
|
reflect: true
|
|
17065
17188
|
},
|
|
17066
17189
|
|
|
@@ -17070,6 +17193,7 @@ class BaseInput extends AuroElement$1 {
|
|
|
17070
17193
|
*/
|
|
17071
17194
|
a11yActivedescendant: {
|
|
17072
17195
|
type: String,
|
|
17196
|
+
attribute: 'a11yactivedescendant',
|
|
17073
17197
|
reflect: true
|
|
17074
17198
|
},
|
|
17075
17199
|
|
|
@@ -17080,6 +17204,7 @@ class BaseInput extends AuroElement$1 {
|
|
|
17080
17204
|
*/
|
|
17081
17205
|
activeLabel: {
|
|
17082
17206
|
type: Boolean,
|
|
17207
|
+
attribute: 'activelabel',
|
|
17083
17208
|
reflect: true
|
|
17084
17209
|
},
|
|
17085
17210
|
|
|
@@ -17094,7 +17219,8 @@ class BaseInput extends AuroElement$1 {
|
|
|
17094
17219
|
},
|
|
17095
17220
|
|
|
17096
17221
|
/**
|
|
17097
|
-
* An enumerated attribute that controls whether and how text input is automatically capitalized as it is entered/edited by the user.
|
|
17222
|
+
* An enumerated attribute that controls whether and how text input is automatically capitalized as it is entered/edited by the user.
|
|
17223
|
+
* @type {'off' | 'none' | 'on' | 'sentences' | 'words' | 'characters'}
|
|
17098
17224
|
*/
|
|
17099
17225
|
autocapitalize: {
|
|
17100
17226
|
type: String,
|
|
@@ -17111,6 +17237,7 @@ class BaseInput extends AuroElement$1 {
|
|
|
17111
17237
|
|
|
17112
17238
|
/**
|
|
17113
17239
|
* When set to `off`, stops iOS from auto-correcting words when typed into a text box.
|
|
17240
|
+
* @type {'on' | 'off'}
|
|
17114
17241
|
*/
|
|
17115
17242
|
autocorrect: {
|
|
17116
17243
|
type: String,
|
|
@@ -17121,7 +17248,8 @@ class BaseInput extends AuroElement$1 {
|
|
|
17121
17248
|
* Custom help text message for email type validity.
|
|
17122
17249
|
*/
|
|
17123
17250
|
customValidityTypeEmail: {
|
|
17124
|
-
type: String
|
|
17251
|
+
type: String,
|
|
17252
|
+
attribute: 'customvaliditytypeemail'
|
|
17125
17253
|
},
|
|
17126
17254
|
|
|
17127
17255
|
/**
|
|
@@ -17137,6 +17265,7 @@ class BaseInput extends AuroElement$1 {
|
|
|
17137
17265
|
*/
|
|
17138
17266
|
dvInputOnly: {
|
|
17139
17267
|
type: Boolean,
|
|
17268
|
+
attribute: 'dvinputonly',
|
|
17140
17269
|
reflect: true
|
|
17141
17270
|
},
|
|
17142
17271
|
|
|
@@ -17152,7 +17281,8 @@ class BaseInput extends AuroElement$1 {
|
|
|
17152
17281
|
* Contains the help text message for the current validity error.
|
|
17153
17282
|
*/
|
|
17154
17283
|
errorMessage: {
|
|
17155
|
-
type: String
|
|
17284
|
+
type: String,
|
|
17285
|
+
attribute: 'errormessage'
|
|
17156
17286
|
},
|
|
17157
17287
|
|
|
17158
17288
|
/**
|
|
@@ -17188,6 +17318,7 @@ class BaseInput extends AuroElement$1 {
|
|
|
17188
17318
|
*/
|
|
17189
17319
|
hideLabelVisually: {
|
|
17190
17320
|
type: Boolean,
|
|
17321
|
+
attribute: 'hidelabelvisually',
|
|
17191
17322
|
reflect: true
|
|
17192
17323
|
},
|
|
17193
17324
|
|
|
@@ -17254,6 +17385,7 @@ class BaseInput extends AuroElement$1 {
|
|
|
17254
17385
|
*/
|
|
17255
17386
|
maxLength: {
|
|
17256
17387
|
type: Number,
|
|
17388
|
+
attribute: 'maxlength',
|
|
17257
17389
|
reflect: true
|
|
17258
17390
|
},
|
|
17259
17391
|
|
|
@@ -17269,6 +17401,7 @@ class BaseInput extends AuroElement$1 {
|
|
|
17269
17401
|
*/
|
|
17270
17402
|
minLength: {
|
|
17271
17403
|
type: Number,
|
|
17404
|
+
attribute: 'minlength',
|
|
17272
17405
|
reflect: true
|
|
17273
17406
|
},
|
|
17274
17407
|
|
|
@@ -17294,6 +17427,7 @@ class BaseInput extends AuroElement$1 {
|
|
|
17294
17427
|
*/
|
|
17295
17428
|
noValidate: {
|
|
17296
17429
|
type: Boolean,
|
|
17430
|
+
attribute: 'novalidate',
|
|
17297
17431
|
reflect: true
|
|
17298
17432
|
},
|
|
17299
17433
|
|
|
@@ -17302,6 +17436,7 @@ class BaseInput extends AuroElement$1 {
|
|
|
17302
17436
|
*/
|
|
17303
17437
|
onDark: {
|
|
17304
17438
|
type: Boolean,
|
|
17439
|
+
attribute: 'ondark',
|
|
17305
17440
|
reflect: true
|
|
17306
17441
|
},
|
|
17307
17442
|
|
|
@@ -17341,77 +17476,88 @@ class BaseInput extends AuroElement$1 {
|
|
|
17341
17476
|
* Sets a custom help text message to display for all validityStates.
|
|
17342
17477
|
*/
|
|
17343
17478
|
setCustomValidity: {
|
|
17344
|
-
type: String
|
|
17479
|
+
type: String,
|
|
17480
|
+
attribute: 'setcustomvalidity'
|
|
17345
17481
|
},
|
|
17346
17482
|
|
|
17347
17483
|
/**
|
|
17348
17484
|
* Custom help text message to display when validity = `badInput`.
|
|
17349
17485
|
*/
|
|
17350
17486
|
setCustomValidityBadInput: {
|
|
17351
|
-
type: String
|
|
17487
|
+
type: String,
|
|
17488
|
+
attribute: 'setcustomvaliditybadinput'
|
|
17352
17489
|
},
|
|
17353
17490
|
|
|
17354
17491
|
/**
|
|
17355
17492
|
* Custom help text message to display when validity = `customError`.
|
|
17356
17493
|
*/
|
|
17357
17494
|
setCustomValidityCustomError: {
|
|
17358
|
-
type: String
|
|
17495
|
+
type: String,
|
|
17496
|
+
attribute: 'setcustomvaliditycustomerror'
|
|
17359
17497
|
},
|
|
17360
17498
|
|
|
17361
17499
|
/**
|
|
17362
17500
|
* Custom help text message to display for the declared element `type` and type validity fails.
|
|
17363
17501
|
*/
|
|
17364
17502
|
setCustomValidityForType: {
|
|
17365
|
-
type: String
|
|
17503
|
+
type: String,
|
|
17504
|
+
attribute: 'setcustomvalidityfortype'
|
|
17366
17505
|
},
|
|
17367
17506
|
|
|
17368
17507
|
/**
|
|
17369
17508
|
* Custom help text message to display when validity = `patternMismatch`.
|
|
17370
17509
|
*/
|
|
17371
17510
|
setCustomValidityPatternMismatch: {
|
|
17372
|
-
type: String
|
|
17511
|
+
type: String,
|
|
17512
|
+
attribute: 'setcustomvaliditypatternmismatch'
|
|
17373
17513
|
},
|
|
17374
17514
|
|
|
17375
17515
|
/**
|
|
17376
17516
|
* Custom help text message to display when validity = `rangeOverflow`.
|
|
17377
17517
|
*/
|
|
17378
17518
|
setCustomValidityRangeOverflow: {
|
|
17379
|
-
type: String
|
|
17519
|
+
type: String,
|
|
17520
|
+
attribute: 'setcustomvalidityrangeoverflow'
|
|
17380
17521
|
},
|
|
17381
17522
|
|
|
17382
17523
|
/**
|
|
17383
17524
|
* Custom help text message to display when validity = `rangeUnderflow`.
|
|
17384
17525
|
*/
|
|
17385
17526
|
setCustomValidityRangeUnderflow: {
|
|
17386
|
-
type: String
|
|
17527
|
+
type: String,
|
|
17528
|
+
attribute: 'setcustomvalidityrangeunderflow'
|
|
17387
17529
|
},
|
|
17388
17530
|
|
|
17389
17531
|
/**
|
|
17390
17532
|
* Custom help text message to display when validity = `tooLong`.
|
|
17391
17533
|
*/
|
|
17392
17534
|
setCustomValidityTooLong: {
|
|
17393
|
-
type: String
|
|
17535
|
+
type: String,
|
|
17536
|
+
attribute: 'setcustomvaliditytoolong'
|
|
17394
17537
|
},
|
|
17395
17538
|
|
|
17396
17539
|
/**
|
|
17397
17540
|
* Custom help text message to display when validity = `tooShort`.
|
|
17398
17541
|
*/
|
|
17399
17542
|
setCustomValidityTooShort: {
|
|
17400
|
-
type: String
|
|
17543
|
+
type: String,
|
|
17544
|
+
attribute: 'setcustomvaliditytooshort'
|
|
17401
17545
|
},
|
|
17402
17546
|
|
|
17403
17547
|
/**
|
|
17404
17548
|
* Custom help text message to display when validity = `valueMissing`.
|
|
17405
17549
|
*/
|
|
17406
17550
|
setCustomValidityValueMissing: {
|
|
17407
|
-
type: String
|
|
17551
|
+
type: String,
|
|
17552
|
+
attribute: 'setcustomvalidityvaluemissing'
|
|
17408
17553
|
},
|
|
17409
17554
|
|
|
17410
17555
|
/**
|
|
17411
17556
|
* @ignore
|
|
17412
17557
|
*/
|
|
17413
17558
|
showPassword: {
|
|
17414
|
-
state: true
|
|
17559
|
+
state: true,
|
|
17560
|
+
attribute: false
|
|
17415
17561
|
},
|
|
17416
17562
|
|
|
17417
17563
|
/**
|
|
@@ -17423,7 +17569,8 @@ class BaseInput extends AuroElement$1 {
|
|
|
17423
17569
|
},
|
|
17424
17570
|
|
|
17425
17571
|
/**
|
|
17426
|
-
* An enumerated attribute defines whether the element may be checked for spelling errors.
|
|
17572
|
+
* 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`.
|
|
17573
|
+
* @type {'true' | 'false'}
|
|
17427
17574
|
*/
|
|
17428
17575
|
spellcheck: {
|
|
17429
17576
|
type: String,
|
|
@@ -17454,7 +17601,8 @@ class BaseInput extends AuroElement$1 {
|
|
|
17454
17601
|
* Sets validation mode to re-eval with each input.
|
|
17455
17602
|
*/
|
|
17456
17603
|
validateOnInput: {
|
|
17457
|
-
type: Boolean
|
|
17604
|
+
type: Boolean,
|
|
17605
|
+
attribute: 'validateoninput'
|
|
17458
17606
|
},
|
|
17459
17607
|
|
|
17460
17608
|
/**
|
|
@@ -18508,6 +18656,8 @@ let AuroHelpText$1 = class AuroHelpText extends LitElement {
|
|
|
18508
18656
|
super();
|
|
18509
18657
|
|
|
18510
18658
|
this.error = false;
|
|
18659
|
+
|
|
18660
|
+
/** @type {'default' | 'inverse'} */
|
|
18511
18661
|
this.appearance = "default";
|
|
18512
18662
|
this.onDark = false;
|
|
18513
18663
|
this.hasTextContent = false;
|
|
@@ -18528,8 +18678,8 @@ let AuroHelpText$1 = class AuroHelpText extends LitElement {
|
|
|
18528
18678
|
return {
|
|
18529
18679
|
|
|
18530
18680
|
/**
|
|
18531
|
-
*
|
|
18532
|
-
* @
|
|
18681
|
+
* The appearance of the help text, either default (for light backgrounds) or inverse (for dark backgrounds).
|
|
18682
|
+
* @type {'default' | 'inverse'}
|
|
18533
18683
|
* @default 'default'
|
|
18534
18684
|
*/
|
|
18535
18685
|
appearance: {
|
|
@@ -18542,6 +18692,7 @@ let AuroHelpText$1 = class AuroHelpText extends LitElement {
|
|
|
18542
18692
|
*/
|
|
18543
18693
|
slotNodes: {
|
|
18544
18694
|
type: Boolean,
|
|
18695
|
+
attribute: 'slotnodes',
|
|
18545
18696
|
},
|
|
18546
18697
|
|
|
18547
18698
|
/**
|
|
@@ -18549,6 +18700,7 @@ let AuroHelpText$1 = class AuroHelpText extends LitElement {
|
|
|
18549
18700
|
*/
|
|
18550
18701
|
hasTextContent: {
|
|
18551
18702
|
type: Boolean,
|
|
18703
|
+
attribute: 'hastextcontent',
|
|
18552
18704
|
},
|
|
18553
18705
|
|
|
18554
18706
|
/**
|
|
@@ -18564,6 +18716,7 @@ let AuroHelpText$1 = class AuroHelpText extends LitElement {
|
|
|
18564
18716
|
*/
|
|
18565
18717
|
onDark: {
|
|
18566
18718
|
type: Boolean,
|
|
18719
|
+
attribute: 'ondark',
|
|
18567
18720
|
reflect: true
|
|
18568
18721
|
}
|
|
18569
18722
|
};
|
|
@@ -18634,7 +18787,7 @@ let AuroHelpText$1 = class AuroHelpText extends LitElement {
|
|
|
18634
18787
|
}
|
|
18635
18788
|
};
|
|
18636
18789
|
|
|
18637
|
-
var formkitVersion$1 = '
|
|
18790
|
+
var formkitVersion$1 = '202608291822';
|
|
18638
18791
|
|
|
18639
18792
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
18640
18793
|
// See LICENSE in the project root for license information.
|
|
@@ -19648,6 +19801,9 @@ var headerVersion = '5.0.1';
|
|
|
19648
19801
|
* @slot subheader - Slot for the subheader content.
|
|
19649
19802
|
* @slot footer - Slot for the footer content.
|
|
19650
19803
|
* @slot ariaLabel.close - Slot for the close button aria-label.
|
|
19804
|
+
* @csspart bibtemplate - The outermost bibtemplate container element.
|
|
19805
|
+
* @event close-click - Notifies when the close button is clicked.
|
|
19806
|
+
* @event auro-bibtemplate-connected - Notifies that the bibtemplate has connected to the DOM, passing a reference to the element in the event detail.
|
|
19651
19807
|
*/
|
|
19652
19808
|
class AuroBibtemplate extends LitElement {
|
|
19653
19809
|
|
|
@@ -19687,10 +19843,19 @@ class AuroBibtemplate extends LitElement {
|
|
|
19687
19843
|
// function to define props used within the scope of this component
|
|
19688
19844
|
static get properties() {
|
|
19689
19845
|
return {
|
|
19846
|
+
|
|
19847
|
+
/**
|
|
19848
|
+
* If declared, the bibtemplate renders in fullscreen mode, exposing the header, subheader, and footer regions.
|
|
19849
|
+
*/
|
|
19690
19850
|
isFullscreen: {
|
|
19691
19851
|
type: Boolean,
|
|
19852
|
+
attribute: 'isfullscreen',
|
|
19692
19853
|
reflect: true
|
|
19693
19854
|
},
|
|
19855
|
+
|
|
19856
|
+
/**
|
|
19857
|
+
* If declared, the fullscreen headline renders using the larger display heading style.
|
|
19858
|
+
*/
|
|
19694
19859
|
large: {
|
|
19695
19860
|
type: Boolean,
|
|
19696
19861
|
reflect: true
|
|
@@ -19701,6 +19866,7 @@ class AuroBibtemplate extends LitElement {
|
|
|
19701
19866
|
*/
|
|
19702
19867
|
showFooter: {
|
|
19703
19868
|
type: Boolean,
|
|
19869
|
+
attribute: 'showfooter',
|
|
19704
19870
|
reflect: true
|
|
19705
19871
|
}
|
|
19706
19872
|
};
|
|
@@ -19813,7 +19979,7 @@ class AuroBibtemplate extends LitElement {
|
|
|
19813
19979
|
}
|
|
19814
19980
|
}
|
|
19815
19981
|
|
|
19816
|
-
var formkitVersion = '
|
|
19982
|
+
var formkitVersion = '202608291822';
|
|
19817
19983
|
|
|
19818
19984
|
var styleCss$1 = css`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}:host{display:block;text-align:left}:host [auro-dropdown]{--ds-auro-dropdown-trigger-background-color: transparent}:host #inputInBib::part(wrapper){box-shadow:none}:host #inputInBib::part(accent-left){display:none}:host([layout*=classic]) [auro-input]{width:100%}:host([layout*=classic]) [auro-input]::part(helpText){display:none}:host([layout*=classic]) #slotHolder{display:none}`;
|
|
19819
19985
|
|
|
@@ -19821,37 +19987,37 @@ var styleEmphasizedCss = css`:host([layout*=emphasized][shape*=pill]) [auro-inpu
|
|
|
19821
19987
|
|
|
19822
19988
|
var styleSnowflakeCss = css`:host([layout*=snowflake][shape*=snowflake]) [auro-input]{width:100%}:host([layout*=snowflake][shape*=snowflake]) [auro-input]::part(inputHelpText){display:none}:host([layout*=snowflake][shape*=snowflake])::part(helpText){text-align:center}`;
|
|
19823
19989
|
|
|
19990
|
+
/**
|
|
19991
|
+
* AuroElement is the shared base class for layout-aware Auro form components.
|
|
19992
|
+
*
|
|
19993
|
+
* It defines the common `layout`, `shape`, `size`, and `ondark` reactive
|
|
19994
|
+
* properties and the architecture helpers (`renderLayout`, `resetShapeClasses`,
|
|
19995
|
+
* `resetLayoutClasses`) that subclasses use to render a chosen layout and apply
|
|
19996
|
+
* the matching `shape-*` / `layout-*` wrapper classes. Subclasses supply their
|
|
19997
|
+
* own default and valid value set for `layout`, `shape`, and `size`.
|
|
19998
|
+
*/
|
|
19824
19999
|
class AuroElement extends LitElement {
|
|
19825
20000
|
static get properties() {
|
|
19826
20001
|
return {
|
|
19827
20002
|
|
|
19828
20003
|
/**
|
|
19829
|
-
*
|
|
19830
|
-
* @default {'default'}
|
|
20004
|
+
* When true, renders the component styled for use on a dark background.
|
|
19831
20005
|
*/
|
|
19832
|
-
layout: {
|
|
19833
|
-
type: String,
|
|
19834
|
-
attribute: "layout",
|
|
19835
|
-
reflect: true
|
|
19836
|
-
},
|
|
19837
|
-
|
|
19838
|
-
shape: {
|
|
19839
|
-
type: String,
|
|
19840
|
-
attribute: "shape",
|
|
19841
|
-
reflect: true
|
|
19842
|
-
},
|
|
19843
|
-
|
|
19844
|
-
size: {
|
|
19845
|
-
type: String,
|
|
19846
|
-
attribute: "size",
|
|
19847
|
-
reflect: true
|
|
19848
|
-
},
|
|
19849
|
-
|
|
19850
20006
|
onDark: {
|
|
19851
20007
|
type: Boolean,
|
|
19852
20008
|
attribute: "ondark",
|
|
19853
20009
|
reflect: true
|
|
19854
20010
|
}
|
|
20011
|
+
|
|
20012
|
+
// NOTE: `layout`, `shape`, and `size` are intentionally NOT declared here.
|
|
20013
|
+
// Their valid value sets differ per component, and the CEM analyzer roots
|
|
20014
|
+
// an inherited property's `type` in the class that declares it — a base
|
|
20015
|
+
// declaration would force every subclass's `@type` to be discarded and
|
|
20016
|
+
// emitted as plain `string`. Each subclass declares its own `layout` /
|
|
20017
|
+
// `shape` / `size` with an exact `@type` union instead. AuroElement still
|
|
20018
|
+
// consumes `this.layout` / `this.shape` / `this.size` in its render and
|
|
20019
|
+
// architecture helpers below (subclasses guarantee the reactive props).
|
|
20020
|
+
// See AlaskaAirlines/discussions#653.
|
|
19855
20021
|
};
|
|
19856
20022
|
}
|
|
19857
20023
|
|
|
@@ -20027,6 +20193,8 @@ class AuroHelpText extends LitElement {
|
|
|
20027
20193
|
super();
|
|
20028
20194
|
|
|
20029
20195
|
this.error = false;
|
|
20196
|
+
|
|
20197
|
+
/** @type {'default' | 'inverse'} */
|
|
20030
20198
|
this.appearance = "default";
|
|
20031
20199
|
this.onDark = false;
|
|
20032
20200
|
this.hasTextContent = false;
|
|
@@ -20047,8 +20215,8 @@ class AuroHelpText extends LitElement {
|
|
|
20047
20215
|
return {
|
|
20048
20216
|
|
|
20049
20217
|
/**
|
|
20050
|
-
*
|
|
20051
|
-
* @
|
|
20218
|
+
* The appearance of the help text, either default (for light backgrounds) or inverse (for dark backgrounds).
|
|
20219
|
+
* @type {'default' | 'inverse'}
|
|
20052
20220
|
* @default 'default'
|
|
20053
20221
|
*/
|
|
20054
20222
|
appearance: {
|
|
@@ -20061,6 +20229,7 @@ class AuroHelpText extends LitElement {
|
|
|
20061
20229
|
*/
|
|
20062
20230
|
slotNodes: {
|
|
20063
20231
|
type: Boolean,
|
|
20232
|
+
attribute: 'slotnodes',
|
|
20064
20233
|
},
|
|
20065
20234
|
|
|
20066
20235
|
/**
|
|
@@ -20068,6 +20237,7 @@ class AuroHelpText extends LitElement {
|
|
|
20068
20237
|
*/
|
|
20069
20238
|
hasTextContent: {
|
|
20070
20239
|
type: Boolean,
|
|
20240
|
+
attribute: 'hastextcontent',
|
|
20071
20241
|
},
|
|
20072
20242
|
|
|
20073
20243
|
/**
|
|
@@ -20083,6 +20253,7 @@ class AuroHelpText extends LitElement {
|
|
|
20083
20253
|
*/
|
|
20084
20254
|
onDark: {
|
|
20085
20255
|
type: Boolean,
|
|
20256
|
+
attribute: 'ondark',
|
|
20086
20257
|
reflect: true
|
|
20087
20258
|
}
|
|
20088
20259
|
};
|
|
@@ -20213,6 +20384,7 @@ function getOptionLabel(option) {
|
|
|
20213
20384
|
* @slot label - Defines the content of the label.
|
|
20214
20385
|
* @slot helpText - Defines the content of the helpText.
|
|
20215
20386
|
* @slot displayValue - Allows custom HTML content to display the selected value when the combobox is not focused. Only works with `snowflake` and `emphasized` layouts.
|
|
20387
|
+
* @csspart helpText - The help text and error message content container.
|
|
20216
20388
|
* @event auroCombobox-valueSet - (Deprecated) Notifies that the component has a new value set.
|
|
20217
20389
|
* @event input - Notifies that the component has a new value set.
|
|
20218
20390
|
* @event inputValue - Notifies that the components internal HTML5 input value has changed.
|
|
@@ -20338,6 +20510,7 @@ class AuroCombobox extends AuroElement {
|
|
|
20338
20510
|
*/
|
|
20339
20511
|
autoPlacement: {
|
|
20340
20512
|
type: Boolean,
|
|
20513
|
+
attribute: 'autoplacement',
|
|
20341
20514
|
reflect: true
|
|
20342
20515
|
},
|
|
20343
20516
|
|
|
@@ -20348,6 +20521,7 @@ class AuroCombobox extends AuroElement {
|
|
|
20348
20521
|
*/
|
|
20349
20522
|
availableOptions: {
|
|
20350
20523
|
state: true,
|
|
20524
|
+
attribute: false,
|
|
20351
20525
|
type: Array,
|
|
20352
20526
|
reflect: false,
|
|
20353
20527
|
hasChanged(newVal, oldVal) {
|
|
@@ -20417,6 +20591,7 @@ class AuroCombobox extends AuroElement {
|
|
|
20417
20591
|
*/
|
|
20418
20592
|
dvInputOnly: {
|
|
20419
20593
|
type: Boolean,
|
|
20594
|
+
attribute: 'dvinputonly',
|
|
20420
20595
|
reflect: true
|
|
20421
20596
|
},
|
|
20422
20597
|
|
|
@@ -20450,6 +20625,29 @@ class AuroCombobox extends AuroElement {
|
|
|
20450
20625
|
*/
|
|
20451
20626
|
layout: {
|
|
20452
20627
|
type: String,
|
|
20628
|
+
attribute: "layout",
|
|
20629
|
+
reflect: true
|
|
20630
|
+
},
|
|
20631
|
+
|
|
20632
|
+
/**
|
|
20633
|
+
* Sets the shape of the combobox.
|
|
20634
|
+
* @type {'box' | 'classic' | 'pill' | 'pill-left' | 'pill-right' | 'rounded' | 'snowflake'}
|
|
20635
|
+
* @default 'classic'
|
|
20636
|
+
*/
|
|
20637
|
+
shape: {
|
|
20638
|
+
type: String,
|
|
20639
|
+
attribute: "shape",
|
|
20640
|
+
reflect: true
|
|
20641
|
+
},
|
|
20642
|
+
|
|
20643
|
+
/**
|
|
20644
|
+
* Sets the size of the combobox.
|
|
20645
|
+
* @type {'xs' | 'sm' | 'md' | 'lg' | 'xl'}
|
|
20646
|
+
* @default 'xl'
|
|
20647
|
+
*/
|
|
20648
|
+
size: {
|
|
20649
|
+
type: String,
|
|
20650
|
+
attribute: "size",
|
|
20453
20651
|
reflect: true
|
|
20454
20652
|
},
|
|
20455
20653
|
|
|
@@ -20459,6 +20657,7 @@ class AuroCombobox extends AuroElement {
|
|
|
20459
20657
|
*/
|
|
20460
20658
|
matchWidth: {
|
|
20461
20659
|
type: Boolean,
|
|
20660
|
+
attribute: 'matchwidth',
|
|
20462
20661
|
reflect: true
|
|
20463
20662
|
},
|
|
20464
20663
|
|
|
@@ -20467,6 +20666,7 @@ class AuroCombobox extends AuroElement {
|
|
|
20467
20666
|
*/
|
|
20468
20667
|
noFilter: {
|
|
20469
20668
|
type: Boolean,
|
|
20669
|
+
attribute: 'nofilter',
|
|
20470
20670
|
reflect: true
|
|
20471
20671
|
},
|
|
20472
20672
|
|
|
@@ -20476,6 +20676,7 @@ class AuroCombobox extends AuroElement {
|
|
|
20476
20676
|
*/
|
|
20477
20677
|
noFlip: {
|
|
20478
20678
|
type: Boolean,
|
|
20679
|
+
attribute: 'noflip',
|
|
20479
20680
|
reflect: true
|
|
20480
20681
|
},
|
|
20481
20682
|
|
|
@@ -20492,6 +20693,7 @@ class AuroCombobox extends AuroElement {
|
|
|
20492
20693
|
*/
|
|
20493
20694
|
noValidate: {
|
|
20494
20695
|
type: Boolean,
|
|
20696
|
+
attribute: 'novalidate',
|
|
20495
20697
|
reflect: true
|
|
20496
20698
|
},
|
|
20497
20699
|
|
|
@@ -20509,6 +20711,7 @@ class AuroCombobox extends AuroElement {
|
|
|
20509
20711
|
*/
|
|
20510
20712
|
onDark: {
|
|
20511
20713
|
type: Boolean,
|
|
20714
|
+
attribute: 'ondark',
|
|
20512
20715
|
reflect: true
|
|
20513
20716
|
},
|
|
20514
20717
|
|
|
@@ -20517,7 +20720,8 @@ class AuroCombobox extends AuroElement {
|
|
|
20517
20720
|
* @type {HTMLElement}
|
|
20518
20721
|
*/
|
|
20519
20722
|
optionSelected: {
|
|
20520
|
-
type: Object
|
|
20723
|
+
type: Object,
|
|
20724
|
+
attribute: 'optionselected'
|
|
20521
20725
|
},
|
|
20522
20726
|
|
|
20523
20727
|
/**
|
|
@@ -20527,6 +20731,7 @@ class AuroCombobox extends AuroElement {
|
|
|
20527
20731
|
*/
|
|
20528
20732
|
persistInput: {
|
|
20529
20733
|
type: Boolean,
|
|
20734
|
+
attribute: 'persistinput',
|
|
20530
20735
|
reflect: true
|
|
20531
20736
|
},
|
|
20532
20737
|
|
|
@@ -20560,28 +20765,32 @@ class AuroCombobox extends AuroElement {
|
|
|
20560
20765
|
* Sets a custom help text message to display for all validityStates.
|
|
20561
20766
|
*/
|
|
20562
20767
|
setCustomValidity: {
|
|
20563
|
-
type: String
|
|
20768
|
+
type: String,
|
|
20769
|
+
attribute: 'setcustomvalidity'
|
|
20564
20770
|
},
|
|
20565
20771
|
|
|
20566
20772
|
/**
|
|
20567
20773
|
* Custom help text message to display when validity = `customError`.
|
|
20568
20774
|
*/
|
|
20569
20775
|
setCustomValidityCustomError: {
|
|
20570
|
-
type: String
|
|
20776
|
+
type: String,
|
|
20777
|
+
attribute: 'setcustomvaliditycustomerror'
|
|
20571
20778
|
},
|
|
20572
20779
|
|
|
20573
20780
|
/**
|
|
20574
20781
|
* Custom help text message to display when validity = `valueMissing`.
|
|
20575
20782
|
*/
|
|
20576
20783
|
setCustomValidityValueMissing: {
|
|
20577
|
-
type: String
|
|
20784
|
+
type: String,
|
|
20785
|
+
attribute: 'setcustomvalidityvaluemissing'
|
|
20578
20786
|
},
|
|
20579
20787
|
|
|
20580
20788
|
/**
|
|
20581
20789
|
* Custom help text message to display when validity = `valueMissing` due to the user not choosing a menu option when behavior = "filter".
|
|
20582
20790
|
*/
|
|
20583
20791
|
setCustomValidityValueMissingFilter: {
|
|
20584
|
-
type: String
|
|
20792
|
+
type: String,
|
|
20793
|
+
attribute: 'setcustomvalidityvaluemissingfilter'
|
|
20585
20794
|
},
|
|
20586
20795
|
|
|
20587
20796
|
/**
|
|
@@ -20601,6 +20810,7 @@ class AuroCombobox extends AuroElement {
|
|
|
20601
20810
|
*/
|
|
20602
20811
|
triggerIcon: {
|
|
20603
20812
|
type: Boolean,
|
|
20813
|
+
attribute: 'triggericon',
|
|
20604
20814
|
reflect: true
|
|
20605
20815
|
},
|
|
20606
20816
|
|
|
@@ -20617,6 +20827,7 @@ class AuroCombobox extends AuroElement {
|
|
|
20617
20827
|
*/
|
|
20618
20828
|
typedValue: {
|
|
20619
20829
|
type: String,
|
|
20830
|
+
attribute: 'typedvalue',
|
|
20620
20831
|
reflect: true
|
|
20621
20832
|
},
|
|
20622
20833
|
|
|
@@ -20642,6 +20853,7 @@ class AuroCombobox extends AuroElement {
|
|
|
20642
20853
|
*/
|
|
20643
20854
|
largeFullscreenHeadline: {
|
|
20644
20855
|
type: Boolean,
|
|
20856
|
+
attribute: 'largefullscreenheadline',
|
|
20645
20857
|
reflect: true
|
|
20646
20858
|
},
|
|
20647
20859
|
/* eslint-enable jsdoc/require-description-complete-sentence */
|
|
@@ -20656,6 +20868,7 @@ class AuroCombobox extends AuroElement {
|
|
|
20656
20868
|
*/
|
|
20657
20869
|
fullscreenBreakpoint: {
|
|
20658
20870
|
type: String,
|
|
20871
|
+
attribute: "fullscreenbreakpoint",
|
|
20659
20872
|
reflect: true
|
|
20660
20873
|
},
|
|
20661
20874
|
|