@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
|
@@ -9,37 +9,37 @@ var colorCss$1 = css`:host ::slotted(hr){border-top-color:var(--ds-auro-menu-div
|
|
|
9
9
|
|
|
10
10
|
var tokensCss = css`:host{--ds-auro-menu-divider-color: var(--ds-basic-color-border-divider, rgba(0, 0, 0, 0.15));--ds-auro-menu-loader-color: var(--ds-basic-color-brand-primary, #01426a);--ds-auro-menu-loader-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-menuoption-container-color: transparent;--ds-auro-menuoption-container-border-color: var(--ds-auro-menuoption-container-color);--ds-auro-menuoption-icon-color: transparent;--ds-auro-menuoption-text-color: var(--ds-basic-color-texticon-default, #2a2a2a)}`;
|
|
11
11
|
|
|
12
|
+
/**
|
|
13
|
+
* AuroElement is the shared base class for layout-aware Auro form components.
|
|
14
|
+
*
|
|
15
|
+
* It defines the common `layout`, `shape`, `size`, and `ondark` reactive
|
|
16
|
+
* properties and the architecture helpers (`renderLayout`, `resetShapeClasses`,
|
|
17
|
+
* `resetLayoutClasses`) that subclasses use to render a chosen layout and apply
|
|
18
|
+
* the matching `shape-*` / `layout-*` wrapper classes. Subclasses supply their
|
|
19
|
+
* own default and valid value set for `layout`, `shape`, and `size`.
|
|
20
|
+
*/
|
|
12
21
|
class AuroElement extends LitElement {
|
|
13
22
|
static get properties() {
|
|
14
23
|
return {
|
|
15
24
|
|
|
16
25
|
/**
|
|
17
|
-
*
|
|
18
|
-
* @default {'default'}
|
|
26
|
+
* When true, renders the component styled for use on a dark background.
|
|
19
27
|
*/
|
|
20
|
-
layout: {
|
|
21
|
-
type: String,
|
|
22
|
-
attribute: "layout",
|
|
23
|
-
reflect: true
|
|
24
|
-
},
|
|
25
|
-
|
|
26
|
-
shape: {
|
|
27
|
-
type: String,
|
|
28
|
-
attribute: "shape",
|
|
29
|
-
reflect: true
|
|
30
|
-
},
|
|
31
|
-
|
|
32
|
-
size: {
|
|
33
|
-
type: String,
|
|
34
|
-
attribute: "size",
|
|
35
|
-
reflect: true
|
|
36
|
-
},
|
|
37
|
-
|
|
38
28
|
onDark: {
|
|
39
29
|
type: Boolean,
|
|
40
30
|
attribute: "ondark",
|
|
41
31
|
reflect: true
|
|
42
32
|
}
|
|
33
|
+
|
|
34
|
+
// NOTE: `layout`, `shape`, and `size` are intentionally NOT declared here.
|
|
35
|
+
// Their valid value sets differ per component, and the CEM analyzer roots
|
|
36
|
+
// an inherited property's `type` in the class that declares it — a base
|
|
37
|
+
// declaration would force every subclass's `@type` to be discarded and
|
|
38
|
+
// emitted as plain `string`. Each subclass declares its own `layout` /
|
|
39
|
+
// `shape` / `size` with an exact `@type` union instead. AuroElement still
|
|
40
|
+
// consumes `this.layout` / `this.shape` / `this.size` in its render and
|
|
41
|
+
// architecture helpers below (subclasses guarantee the reactive props).
|
|
42
|
+
// See AlaskaAirlines/discussions#653.
|
|
43
43
|
};
|
|
44
44
|
}
|
|
45
45
|
|
|
@@ -389,6 +389,7 @@ let menuInstanceIdCounter = 0;
|
|
|
389
389
|
* @event {CustomEvent<Element>} auroMenu-activatedOption - Notifies that a menuoption has been made `active`.
|
|
390
390
|
* @event {CustomEvent<any>} auroMenu-customEventFired - Notifies that a custom event has been fired.
|
|
391
391
|
* @event {CustomEvent<{ loading: boolean; hasLoadingPlaceholder: boolean; }>} auroMenu-loadingChange - Notifies when the loading attribute is changed.
|
|
392
|
+
* @event {CustomEvent<{ options: Array }>} auroMenu-optionsChange - Notifies that the set of available menu options has changed.
|
|
392
393
|
* @event {CustomEvent<any>} auroMenu-selectValueFailure - Notifies that an attempt to select a menuoption by matching a value has failed.
|
|
393
394
|
* @event {CustomEvent<any>} auroMenu-selectValueReset - Notifies that the component value has been reset.
|
|
394
395
|
* @event {CustomEvent<any>} auroMenu-selectedOption - Notifies that a new menuoption selection has been made.
|
|
@@ -403,15 +404,7 @@ class AuroMenu extends AuroElement {
|
|
|
403
404
|
|
|
404
405
|
// State properties (reactive)
|
|
405
406
|
|
|
406
|
-
|
|
407
|
-
* @private
|
|
408
|
-
*/
|
|
409
|
-
this.shape = "box";
|
|
410
|
-
|
|
411
|
-
/**
|
|
412
|
-
* @private
|
|
413
|
-
*/
|
|
414
|
-
this.size = "sm";
|
|
407
|
+
this.initializeArchitectureDefaults();
|
|
415
408
|
|
|
416
409
|
// Value of the selected options
|
|
417
410
|
this.value = undefined;
|
|
@@ -452,8 +445,6 @@ class AuroMenu extends AuroElement {
|
|
|
452
445
|
|
|
453
446
|
// Instance properties (non-reactive)
|
|
454
447
|
|
|
455
|
-
menuInstanceIdCounter += 1;
|
|
456
|
-
|
|
457
448
|
Object.assign(this, {
|
|
458
449
|
// Root-level menu (true) or a nested submenu (false)
|
|
459
450
|
rootMenu: true,
|
|
@@ -465,7 +456,7 @@ class AuroMenu extends AuroElement {
|
|
|
465
456
|
loadingSlots: null,
|
|
466
457
|
// Unique id for this menu instance; prefixes every auto-generated option
|
|
467
458
|
// key so keys never collide across menus in the same document.
|
|
468
|
-
_menuInstanceId: `menu-${menuInstanceIdCounter}`,
|
|
459
|
+
_menuInstanceId: `menu-${menuInstanceIdCounter += 1}`,
|
|
469
460
|
// Monotonically increasing counter for option key generation. Never
|
|
470
461
|
// resets, so a key is never reused within this instance's lifetime.
|
|
471
462
|
_optionKeyCounter: 0,
|
|
@@ -481,10 +472,50 @@ class AuroMenu extends AuroElement {
|
|
|
481
472
|
});
|
|
482
473
|
}
|
|
483
474
|
|
|
475
|
+
// Defaults for the layout/shape/size architecture props are set in a helper
|
|
476
|
+
// (not the constructor body) so the CEM analyzer keeps their `@type` unions
|
|
477
|
+
// instead of inferring `string` from a constructor-literal assignment.
|
|
478
|
+
// See AlaskaAirlines/discussions#653.
|
|
479
|
+
initializeArchitectureDefaults() {
|
|
480
|
+
this.shape = "box";
|
|
481
|
+
this.size = "sm";
|
|
482
|
+
}
|
|
483
|
+
|
|
484
484
|
static get properties() {
|
|
485
485
|
return {
|
|
486
486
|
...super.properties,
|
|
487
487
|
|
|
488
|
+
/**
|
|
489
|
+
* Applies a named layout variant to the menu. Free-form string consumed by the shared architecture helpers; menu defines no closed value set.
|
|
490
|
+
*/
|
|
491
|
+
layout: {
|
|
492
|
+
type: String,
|
|
493
|
+
attribute: "layout",
|
|
494
|
+
reflect: true
|
|
495
|
+
},
|
|
496
|
+
|
|
497
|
+
/**
|
|
498
|
+
* Sets the shape of the menu options.
|
|
499
|
+
* @type {'box' | 'pill' | 'snowflake'}
|
|
500
|
+
* @default 'box'
|
|
501
|
+
*/
|
|
502
|
+
shape: {
|
|
503
|
+
type: String,
|
|
504
|
+
attribute: "shape",
|
|
505
|
+
reflect: true
|
|
506
|
+
},
|
|
507
|
+
|
|
508
|
+
/**
|
|
509
|
+
* Sets the size of the menu options.
|
|
510
|
+
* @type {'xs' | 'sm' | 'md' | 'lg' | 'xl'}
|
|
511
|
+
* @default 'sm'
|
|
512
|
+
*/
|
|
513
|
+
size: {
|
|
514
|
+
type: String,
|
|
515
|
+
attribute: "size",
|
|
516
|
+
reflect: true
|
|
517
|
+
},
|
|
518
|
+
|
|
488
519
|
/**
|
|
489
520
|
* When true, the entire menu and all options are disabled.
|
|
490
521
|
*/
|
|
@@ -1806,9 +1837,36 @@ class AuroMenuOption extends AuroElement {
|
|
|
1806
1837
|
static get properties() {
|
|
1807
1838
|
return {
|
|
1808
1839
|
...super.properties,
|
|
1840
|
+
|
|
1841
|
+
/**
|
|
1842
|
+
* Sets the shape of the option. When unset, it inherits the shape of the parent `auro-menu`.
|
|
1843
|
+
* @type {'box' | 'pill' | 'snowflake'}
|
|
1844
|
+
* @default 'box'
|
|
1845
|
+
*/
|
|
1846
|
+
shape: {
|
|
1847
|
+
type: String,
|
|
1848
|
+
attribute: "shape",
|
|
1849
|
+
reflect: true
|
|
1850
|
+
},
|
|
1851
|
+
|
|
1852
|
+
/**
|
|
1853
|
+
* Sets the size of the option. When unset, it inherits the size of the parent `auro-menu`.
|
|
1854
|
+
* @type {'xs' | 'sm' | 'md' | 'lg' | 'xl'}
|
|
1855
|
+
* @default 'sm'
|
|
1856
|
+
*/
|
|
1857
|
+
size: {
|
|
1858
|
+
type: String,
|
|
1859
|
+
attribute: "size",
|
|
1860
|
+
reflect: true
|
|
1861
|
+
},
|
|
1862
|
+
|
|
1863
|
+
/**
|
|
1864
|
+
* When true, this option will not show the checkmark when selected.
|
|
1865
|
+
*/
|
|
1809
1866
|
noCheckmark: {
|
|
1810
1867
|
type: Boolean,
|
|
1811
|
-
reflect: true
|
|
1868
|
+
reflect: true,
|
|
1869
|
+
attribute: 'nocheckmark'
|
|
1812
1870
|
},
|
|
1813
1871
|
|
|
1814
1872
|
/**
|
|
@@ -1820,17 +1878,30 @@ class AuroMenuOption extends AuroElement {
|
|
|
1820
1878
|
type: Boolean,
|
|
1821
1879
|
reflect: true
|
|
1822
1880
|
},
|
|
1881
|
+
|
|
1882
|
+
/**
|
|
1883
|
+
* When true, the option is disabled and cannot be selected.
|
|
1884
|
+
*/
|
|
1823
1885
|
disabled: {
|
|
1824
1886
|
type: Boolean,
|
|
1825
1887
|
reflect: true
|
|
1826
1888
|
},
|
|
1889
|
+
|
|
1890
|
+
/**
|
|
1891
|
+
* The value associated with this menu option.
|
|
1892
|
+
*/
|
|
1827
1893
|
value: {
|
|
1828
1894
|
type: String,
|
|
1829
1895
|
reflect: true
|
|
1830
1896
|
},
|
|
1897
|
+
|
|
1898
|
+
/**
|
|
1899
|
+
* Sets the tab order of the menu option.
|
|
1900
|
+
*/
|
|
1831
1901
|
tabIndex: {
|
|
1832
1902
|
type: Number,
|
|
1833
|
-
reflect: true
|
|
1903
|
+
reflect: true,
|
|
1904
|
+
attribute: 'tabindex'
|
|
1834
1905
|
},
|
|
1835
1906
|
|
|
1836
1907
|
/**
|
|
@@ -13,13 +13,13 @@ The `auro-radio-group` element is used to group a set `auro-radio` elements.
|
|
|
13
13
|
| `disabled` | `disabled` | `boolean` | | If true, all radio buttons will be disabled. |
|
|
14
14
|
| `error` | `error` | `string` | | If true, sets persistent validity to `customError` and sets `setCustomValidity` = attribute value. |
|
|
15
15
|
| `horizontal` | `horizontal` | `boolean` | | If true, displays radio buttons horizontally. |
|
|
16
|
-
| `noValidate` | `
|
|
17
|
-
| `onDark` | `
|
|
18
|
-
| `optionSelected` | `
|
|
16
|
+
| `noValidate` | `novalidate` | `boolean` | | If true, disables auto-validation on blur. |
|
|
17
|
+
| `onDark` | `ondark` | `boolean` | | DEPRECATED - use `appearance="inverse"` instead. |
|
|
18
|
+
| `optionSelected` | `optionselected` | `object` | | Specifies the current selected radio button. |
|
|
19
19
|
| `required` | `required` | `boolean` | | Populates the `required` attribute on the element. Used for client-side validation. |
|
|
20
|
-
| `setCustomValidity` | `
|
|
21
|
-
| `setCustomValidityCustomError` | `
|
|
22
|
-
| `setCustomValidityValueMissing` | `
|
|
20
|
+
| `setCustomValidity` | `setcustomvalidity` | `string` | | Sets a custom help text message to display for all validityStates. |
|
|
21
|
+
| `setCustomValidityCustomError` | `setcustomvaliditycustomerror` | `string` | | Custom help text message to display when validity = `customError`. |
|
|
22
|
+
| `setCustomValidityValueMissing` | `setcustomvalidityvaluemissing` | `string` | | Custom help text message to display when validity = `valueMissing`. |
|
|
23
23
|
| `validity` | `validity` | `string` | | Specifies the `validityState` this element is in. |
|
|
24
24
|
| `value` | `value` | `string` | | Specifies the current value of the selected radio button. |
|
|
25
25
|
|
|
@@ -49,6 +49,7 @@ The `auro-radio-group` element is used to group a set `auro-radio` elements.
|
|
|
49
49
|
|
|
50
50
|
| Part | Description |
|
|
51
51
|
|---------------|--------------------------------------------------|
|
|
52
|
+
| `helpText` | Apply css to the help text element that displays helper or error messages. |
|
|
52
53
|
| `radio-group` | Apply css to the fieldset element in the shadow DOM |
|
|
53
54
|
|
|
54
55
|
# auro-radio
|
|
@@ -66,7 +67,7 @@ The `auro-radio` element is used to a button that allows the user to select one
|
|
|
66
67
|
| `id` | `id` | `string` | | The id global attribute defines an identifier (ID) which must be unique in the whole document. |
|
|
67
68
|
| `label` | `label` | `string` | | Label for the radio button. |
|
|
68
69
|
| `name` | `name` | `string` | | Name for the radio button group. |
|
|
69
|
-
| `onDark` | `
|
|
70
|
+
| `onDark` | `ondark` | `boolean` | | DEPRECATED - use `appearance="inverse"` instead. |
|
|
70
71
|
| `required` | `required` | `boolean` | | Defines element as required. |
|
|
71
72
|
| `value` | `value` | `string` | | The value of the radio button. |
|
|
72
73
|
|
|
@@ -271,6 +271,7 @@ class AuroRadio extends i$2 {
|
|
|
271
271
|
*/
|
|
272
272
|
onDark: {
|
|
273
273
|
type: Boolean,
|
|
274
|
+
attribute: 'ondark',
|
|
274
275
|
reflect: true
|
|
275
276
|
},
|
|
276
277
|
|
|
@@ -1101,6 +1102,8 @@ class AuroHelpText extends i$2 {
|
|
|
1101
1102
|
super();
|
|
1102
1103
|
|
|
1103
1104
|
this.error = false;
|
|
1105
|
+
|
|
1106
|
+
/** @type {'default' | 'inverse'} */
|
|
1104
1107
|
this.appearance = "default";
|
|
1105
1108
|
this.onDark = false;
|
|
1106
1109
|
this.hasTextContent = false;
|
|
@@ -1121,8 +1124,8 @@ class AuroHelpText extends i$2 {
|
|
|
1121
1124
|
return {
|
|
1122
1125
|
|
|
1123
1126
|
/**
|
|
1124
|
-
*
|
|
1125
|
-
* @
|
|
1127
|
+
* The appearance of the help text, either default (for light backgrounds) or inverse (for dark backgrounds).
|
|
1128
|
+
* @type {'default' | 'inverse'}
|
|
1126
1129
|
* @default 'default'
|
|
1127
1130
|
*/
|
|
1128
1131
|
appearance: {
|
|
@@ -1135,6 +1138,7 @@ class AuroHelpText extends i$2 {
|
|
|
1135
1138
|
*/
|
|
1136
1139
|
slotNodes: {
|
|
1137
1140
|
type: Boolean,
|
|
1141
|
+
attribute: 'slotnodes',
|
|
1138
1142
|
},
|
|
1139
1143
|
|
|
1140
1144
|
/**
|
|
@@ -1142,6 +1146,7 @@ class AuroHelpText extends i$2 {
|
|
|
1142
1146
|
*/
|
|
1143
1147
|
hasTextContent: {
|
|
1144
1148
|
type: Boolean,
|
|
1149
|
+
attribute: 'hastextcontent',
|
|
1145
1150
|
},
|
|
1146
1151
|
|
|
1147
1152
|
/**
|
|
@@ -1157,6 +1162,7 @@ class AuroHelpText extends i$2 {
|
|
|
1157
1162
|
*/
|
|
1158
1163
|
onDark: {
|
|
1159
1164
|
type: Boolean,
|
|
1165
|
+
attribute: 'ondark',
|
|
1160
1166
|
reflect: true
|
|
1161
1167
|
}
|
|
1162
1168
|
};
|
|
@@ -1227,7 +1233,7 @@ class AuroHelpText extends i$2 {
|
|
|
1227
1233
|
}
|
|
1228
1234
|
}
|
|
1229
1235
|
|
|
1230
|
-
var formkitVersion = '
|
|
1236
|
+
var formkitVersion = '202608291822';
|
|
1231
1237
|
|
|
1232
1238
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
1233
1239
|
// See LICENSE in the project root for license information.
|
|
@@ -1242,6 +1248,7 @@ var formkitVersion = '202608261850';
|
|
|
1242
1248
|
* @customElement auro-radio-group
|
|
1243
1249
|
*
|
|
1244
1250
|
* @csspart radio-group - Apply css to the fieldset element in the shadow DOM
|
|
1251
|
+
* @csspart helpText - Apply css to the help text element that displays helper or error messages.
|
|
1245
1252
|
* @slot {HTMLSlotElement} legend - Allows for the legend to be overridden.
|
|
1246
1253
|
* @slot {HTMLSlotElement} optionalLabel - Allows overriding the optional display text "(optional)", which appears next to the label.
|
|
1247
1254
|
* @slot {HTMLSlotElement} helpText - Allows for the helper text to be overridden.
|
|
@@ -1356,6 +1363,7 @@ class AuroRadioGroup extends i$2 {
|
|
|
1356
1363
|
*/
|
|
1357
1364
|
noValidate: {
|
|
1358
1365
|
type: Boolean,
|
|
1366
|
+
attribute: 'novalidate',
|
|
1359
1367
|
reflect: true
|
|
1360
1368
|
},
|
|
1361
1369
|
|
|
@@ -1364,6 +1372,7 @@ class AuroRadioGroup extends i$2 {
|
|
|
1364
1372
|
*/
|
|
1365
1373
|
onDark: {
|
|
1366
1374
|
type: Boolean,
|
|
1375
|
+
attribute: 'ondark',
|
|
1367
1376
|
reflect: true
|
|
1368
1377
|
},
|
|
1369
1378
|
|
|
@@ -1371,7 +1380,8 @@ class AuroRadioGroup extends i$2 {
|
|
|
1371
1380
|
* Specifies the current selected radio button.
|
|
1372
1381
|
*/
|
|
1373
1382
|
optionSelected: {
|
|
1374
|
-
type: Object
|
|
1383
|
+
type: Object,
|
|
1384
|
+
attribute: 'optionselected'
|
|
1375
1385
|
},
|
|
1376
1386
|
|
|
1377
1387
|
/**
|
|
@@ -1386,21 +1396,24 @@ class AuroRadioGroup extends i$2 {
|
|
|
1386
1396
|
* Sets a custom help text message to display for all validityStates.
|
|
1387
1397
|
*/
|
|
1388
1398
|
setCustomValidity: {
|
|
1389
|
-
type: String
|
|
1399
|
+
type: String,
|
|
1400
|
+
attribute: 'setcustomvalidity'
|
|
1390
1401
|
},
|
|
1391
1402
|
|
|
1392
1403
|
/**
|
|
1393
1404
|
* Custom help text message to display when validity = `customError`.
|
|
1394
1405
|
*/
|
|
1395
1406
|
setCustomValidityCustomError: {
|
|
1396
|
-
type: String
|
|
1407
|
+
type: String,
|
|
1408
|
+
attribute: 'setcustomvaliditycustomerror'
|
|
1397
1409
|
},
|
|
1398
1410
|
|
|
1399
1411
|
/**
|
|
1400
1412
|
* Custom help text message to display when validity = `valueMissing`.
|
|
1401
1413
|
*/
|
|
1402
1414
|
setCustomValidityValueMissing: {
|
|
1403
|
-
type: String
|
|
1415
|
+
type: String,
|
|
1416
|
+
attribute: 'setcustomvalidityvaluemissing'
|
|
1404
1417
|
},
|
|
1405
1418
|
|
|
1406
1419
|
/**
|
|
@@ -271,6 +271,7 @@ class AuroRadio extends i$2 {
|
|
|
271
271
|
*/
|
|
272
272
|
onDark: {
|
|
273
273
|
type: Boolean,
|
|
274
|
+
attribute: 'ondark',
|
|
274
275
|
reflect: true
|
|
275
276
|
},
|
|
276
277
|
|
|
@@ -1101,6 +1102,8 @@ class AuroHelpText extends i$2 {
|
|
|
1101
1102
|
super();
|
|
1102
1103
|
|
|
1103
1104
|
this.error = false;
|
|
1105
|
+
|
|
1106
|
+
/** @type {'default' | 'inverse'} */
|
|
1104
1107
|
this.appearance = "default";
|
|
1105
1108
|
this.onDark = false;
|
|
1106
1109
|
this.hasTextContent = false;
|
|
@@ -1121,8 +1124,8 @@ class AuroHelpText extends i$2 {
|
|
|
1121
1124
|
return {
|
|
1122
1125
|
|
|
1123
1126
|
/**
|
|
1124
|
-
*
|
|
1125
|
-
* @
|
|
1127
|
+
* The appearance of the help text, either default (for light backgrounds) or inverse (for dark backgrounds).
|
|
1128
|
+
* @type {'default' | 'inverse'}
|
|
1126
1129
|
* @default 'default'
|
|
1127
1130
|
*/
|
|
1128
1131
|
appearance: {
|
|
@@ -1135,6 +1138,7 @@ class AuroHelpText extends i$2 {
|
|
|
1135
1138
|
*/
|
|
1136
1139
|
slotNodes: {
|
|
1137
1140
|
type: Boolean,
|
|
1141
|
+
attribute: 'slotnodes',
|
|
1138
1142
|
},
|
|
1139
1143
|
|
|
1140
1144
|
/**
|
|
@@ -1142,6 +1146,7 @@ class AuroHelpText extends i$2 {
|
|
|
1142
1146
|
*/
|
|
1143
1147
|
hasTextContent: {
|
|
1144
1148
|
type: Boolean,
|
|
1149
|
+
attribute: 'hastextcontent',
|
|
1145
1150
|
},
|
|
1146
1151
|
|
|
1147
1152
|
/**
|
|
@@ -1157,6 +1162,7 @@ class AuroHelpText extends i$2 {
|
|
|
1157
1162
|
*/
|
|
1158
1163
|
onDark: {
|
|
1159
1164
|
type: Boolean,
|
|
1165
|
+
attribute: 'ondark',
|
|
1160
1166
|
reflect: true
|
|
1161
1167
|
}
|
|
1162
1168
|
};
|
|
@@ -1227,7 +1233,7 @@ class AuroHelpText extends i$2 {
|
|
|
1227
1233
|
}
|
|
1228
1234
|
}
|
|
1229
1235
|
|
|
1230
|
-
var formkitVersion = '
|
|
1236
|
+
var formkitVersion = '202608291822';
|
|
1231
1237
|
|
|
1232
1238
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
1233
1239
|
// See LICENSE in the project root for license information.
|
|
@@ -1242,6 +1248,7 @@ var formkitVersion = '202608261850';
|
|
|
1242
1248
|
* @customElement auro-radio-group
|
|
1243
1249
|
*
|
|
1244
1250
|
* @csspart radio-group - Apply css to the fieldset element in the shadow DOM
|
|
1251
|
+
* @csspart helpText - Apply css to the help text element that displays helper or error messages.
|
|
1245
1252
|
* @slot {HTMLSlotElement} legend - Allows for the legend to be overridden.
|
|
1246
1253
|
* @slot {HTMLSlotElement} optionalLabel - Allows overriding the optional display text "(optional)", which appears next to the label.
|
|
1247
1254
|
* @slot {HTMLSlotElement} helpText - Allows for the helper text to be overridden.
|
|
@@ -1356,6 +1363,7 @@ class AuroRadioGroup extends i$2 {
|
|
|
1356
1363
|
*/
|
|
1357
1364
|
noValidate: {
|
|
1358
1365
|
type: Boolean,
|
|
1366
|
+
attribute: 'novalidate',
|
|
1359
1367
|
reflect: true
|
|
1360
1368
|
},
|
|
1361
1369
|
|
|
@@ -1364,6 +1372,7 @@ class AuroRadioGroup extends i$2 {
|
|
|
1364
1372
|
*/
|
|
1365
1373
|
onDark: {
|
|
1366
1374
|
type: Boolean,
|
|
1375
|
+
attribute: 'ondark',
|
|
1367
1376
|
reflect: true
|
|
1368
1377
|
},
|
|
1369
1378
|
|
|
@@ -1371,7 +1380,8 @@ class AuroRadioGroup extends i$2 {
|
|
|
1371
1380
|
* Specifies the current selected radio button.
|
|
1372
1381
|
*/
|
|
1373
1382
|
optionSelected: {
|
|
1374
|
-
type: Object
|
|
1383
|
+
type: Object,
|
|
1384
|
+
attribute: 'optionselected'
|
|
1375
1385
|
},
|
|
1376
1386
|
|
|
1377
1387
|
/**
|
|
@@ -1386,21 +1396,24 @@ class AuroRadioGroup extends i$2 {
|
|
|
1386
1396
|
* Sets a custom help text message to display for all validityStates.
|
|
1387
1397
|
*/
|
|
1388
1398
|
setCustomValidity: {
|
|
1389
|
-
type: String
|
|
1399
|
+
type: String,
|
|
1400
|
+
attribute: 'setcustomvalidity'
|
|
1390
1401
|
},
|
|
1391
1402
|
|
|
1392
1403
|
/**
|
|
1393
1404
|
* Custom help text message to display when validity = `customError`.
|
|
1394
1405
|
*/
|
|
1395
1406
|
setCustomValidityCustomError: {
|
|
1396
|
-
type: String
|
|
1407
|
+
type: String,
|
|
1408
|
+
attribute: 'setcustomvaliditycustomerror'
|
|
1397
1409
|
},
|
|
1398
1410
|
|
|
1399
1411
|
/**
|
|
1400
1412
|
* Custom help text message to display when validity = `valueMissing`.
|
|
1401
1413
|
*/
|
|
1402
1414
|
setCustomValidityValueMissing: {
|
|
1403
|
-
type: String
|
|
1415
|
+
type: String,
|
|
1416
|
+
attribute: 'setcustomvalidityvaluemissing'
|
|
1404
1417
|
},
|
|
1405
1418
|
|
|
1406
1419
|
/**
|
|
@@ -271,6 +271,7 @@ class AuroRadio extends i$2 {
|
|
|
271
271
|
*/
|
|
272
272
|
onDark: {
|
|
273
273
|
type: Boolean,
|
|
274
|
+
attribute: 'ondark',
|
|
274
275
|
reflect: true
|
|
275
276
|
},
|
|
276
277
|
|
|
@@ -1101,6 +1102,8 @@ class AuroHelpText extends i$2 {
|
|
|
1101
1102
|
super();
|
|
1102
1103
|
|
|
1103
1104
|
this.error = false;
|
|
1105
|
+
|
|
1106
|
+
/** @type {'default' | 'inverse'} */
|
|
1104
1107
|
this.appearance = "default";
|
|
1105
1108
|
this.onDark = false;
|
|
1106
1109
|
this.hasTextContent = false;
|
|
@@ -1121,8 +1124,8 @@ class AuroHelpText extends i$2 {
|
|
|
1121
1124
|
return {
|
|
1122
1125
|
|
|
1123
1126
|
/**
|
|
1124
|
-
*
|
|
1125
|
-
* @
|
|
1127
|
+
* The appearance of the help text, either default (for light backgrounds) or inverse (for dark backgrounds).
|
|
1128
|
+
* @type {'default' | 'inverse'}
|
|
1126
1129
|
* @default 'default'
|
|
1127
1130
|
*/
|
|
1128
1131
|
appearance: {
|
|
@@ -1135,6 +1138,7 @@ class AuroHelpText extends i$2 {
|
|
|
1135
1138
|
*/
|
|
1136
1139
|
slotNodes: {
|
|
1137
1140
|
type: Boolean,
|
|
1141
|
+
attribute: 'slotnodes',
|
|
1138
1142
|
},
|
|
1139
1143
|
|
|
1140
1144
|
/**
|
|
@@ -1142,6 +1146,7 @@ class AuroHelpText extends i$2 {
|
|
|
1142
1146
|
*/
|
|
1143
1147
|
hasTextContent: {
|
|
1144
1148
|
type: Boolean,
|
|
1149
|
+
attribute: 'hastextcontent',
|
|
1145
1150
|
},
|
|
1146
1151
|
|
|
1147
1152
|
/**
|
|
@@ -1157,6 +1162,7 @@ class AuroHelpText extends i$2 {
|
|
|
1157
1162
|
*/
|
|
1158
1163
|
onDark: {
|
|
1159
1164
|
type: Boolean,
|
|
1165
|
+
attribute: 'ondark',
|
|
1160
1166
|
reflect: true
|
|
1161
1167
|
}
|
|
1162
1168
|
};
|
|
@@ -1227,7 +1233,7 @@ class AuroHelpText extends i$2 {
|
|
|
1227
1233
|
}
|
|
1228
1234
|
}
|
|
1229
1235
|
|
|
1230
|
-
var formkitVersion = '
|
|
1236
|
+
var formkitVersion = '202608291822';
|
|
1231
1237
|
|
|
1232
1238
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
1233
1239
|
// See LICENSE in the project root for license information.
|
|
@@ -1242,6 +1248,7 @@ var formkitVersion = '202608261850';
|
|
|
1242
1248
|
* @customElement auro-radio-group
|
|
1243
1249
|
*
|
|
1244
1250
|
* @csspart radio-group - Apply css to the fieldset element in the shadow DOM
|
|
1251
|
+
* @csspart helpText - Apply css to the help text element that displays helper or error messages.
|
|
1245
1252
|
* @slot {HTMLSlotElement} legend - Allows for the legend to be overridden.
|
|
1246
1253
|
* @slot {HTMLSlotElement} optionalLabel - Allows overriding the optional display text "(optional)", which appears next to the label.
|
|
1247
1254
|
* @slot {HTMLSlotElement} helpText - Allows for the helper text to be overridden.
|
|
@@ -1356,6 +1363,7 @@ class AuroRadioGroup extends i$2 {
|
|
|
1356
1363
|
*/
|
|
1357
1364
|
noValidate: {
|
|
1358
1365
|
type: Boolean,
|
|
1366
|
+
attribute: 'novalidate',
|
|
1359
1367
|
reflect: true
|
|
1360
1368
|
},
|
|
1361
1369
|
|
|
@@ -1364,6 +1372,7 @@ class AuroRadioGroup extends i$2 {
|
|
|
1364
1372
|
*/
|
|
1365
1373
|
onDark: {
|
|
1366
1374
|
type: Boolean,
|
|
1375
|
+
attribute: 'ondark',
|
|
1367
1376
|
reflect: true
|
|
1368
1377
|
},
|
|
1369
1378
|
|
|
@@ -1371,7 +1380,8 @@ class AuroRadioGroup extends i$2 {
|
|
|
1371
1380
|
* Specifies the current selected radio button.
|
|
1372
1381
|
*/
|
|
1373
1382
|
optionSelected: {
|
|
1374
|
-
type: Object
|
|
1383
|
+
type: Object,
|
|
1384
|
+
attribute: 'optionselected'
|
|
1375
1385
|
},
|
|
1376
1386
|
|
|
1377
1387
|
/**
|
|
@@ -1386,21 +1396,24 @@ class AuroRadioGroup extends i$2 {
|
|
|
1386
1396
|
* Sets a custom help text message to display for all validityStates.
|
|
1387
1397
|
*/
|
|
1388
1398
|
setCustomValidity: {
|
|
1389
|
-
type: String
|
|
1399
|
+
type: String,
|
|
1400
|
+
attribute: 'setcustomvalidity'
|
|
1390
1401
|
},
|
|
1391
1402
|
|
|
1392
1403
|
/**
|
|
1393
1404
|
* Custom help text message to display when validity = `customError`.
|
|
1394
1405
|
*/
|
|
1395
1406
|
setCustomValidityCustomError: {
|
|
1396
|
-
type: String
|
|
1407
|
+
type: String,
|
|
1408
|
+
attribute: 'setcustomvaliditycustomerror'
|
|
1397
1409
|
},
|
|
1398
1410
|
|
|
1399
1411
|
/**
|
|
1400
1412
|
* Custom help text message to display when validity = `valueMissing`.
|
|
1401
1413
|
*/
|
|
1402
1414
|
setCustomValidityValueMissing: {
|
|
1403
|
-
type: String
|
|
1415
|
+
type: String,
|
|
1416
|
+
attribute: 'setcustomvalidityvaluemissing'
|
|
1404
1417
|
},
|
|
1405
1418
|
|
|
1406
1419
|
/**
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
* @customElement auro-radio-group
|
|
4
4
|
*
|
|
5
5
|
* @csspart radio-group - Apply css to the fieldset element in the shadow DOM
|
|
6
|
+
* @csspart helpText - Apply css to the help text element that displays helper or error messages.
|
|
6
7
|
* @slot {HTMLSlotElement} legend - Allows for the legend to be overridden.
|
|
7
8
|
* @slot {HTMLSlotElement} optionalLabel - Allows overriding the optional display text "(optional)", which appears next to the label.
|
|
8
9
|
* @slot {HTMLSlotElement} helpText - Allows for the helper text to be overridden.
|
|
@@ -52,6 +53,7 @@ export class AuroRadioGroup extends LitElement {
|
|
|
52
53
|
*/
|
|
53
54
|
noValidate: {
|
|
54
55
|
type: BooleanConstructor;
|
|
56
|
+
attribute: string;
|
|
55
57
|
reflect: boolean;
|
|
56
58
|
};
|
|
57
59
|
/**
|
|
@@ -59,6 +61,7 @@ export class AuroRadioGroup extends LitElement {
|
|
|
59
61
|
*/
|
|
60
62
|
onDark: {
|
|
61
63
|
type: BooleanConstructor;
|
|
64
|
+
attribute: string;
|
|
62
65
|
reflect: boolean;
|
|
63
66
|
};
|
|
64
67
|
/**
|
|
@@ -66,6 +69,7 @@ export class AuroRadioGroup extends LitElement {
|
|
|
66
69
|
*/
|
|
67
70
|
optionSelected: {
|
|
68
71
|
type: ObjectConstructor;
|
|
72
|
+
attribute: string;
|
|
69
73
|
};
|
|
70
74
|
/**
|
|
71
75
|
* Populates the `required` attribute on the element. Used for client-side validation.
|
|
@@ -79,18 +83,21 @@ export class AuroRadioGroup extends LitElement {
|
|
|
79
83
|
*/
|
|
80
84
|
setCustomValidity: {
|
|
81
85
|
type: StringConstructor;
|
|
86
|
+
attribute: string;
|
|
82
87
|
};
|
|
83
88
|
/**
|
|
84
89
|
* Custom help text message to display when validity = `customError`.
|
|
85
90
|
*/
|
|
86
91
|
setCustomValidityCustomError: {
|
|
87
92
|
type: StringConstructor;
|
|
93
|
+
attribute: string;
|
|
88
94
|
};
|
|
89
95
|
/**
|
|
90
96
|
* Custom help text message to display when validity = `valueMissing`.
|
|
91
97
|
*/
|
|
92
98
|
setCustomValidityValueMissing: {
|
|
93
99
|
type: StringConstructor;
|
|
100
|
+
attribute: string;
|
|
94
101
|
};
|
|
95
102
|
/**
|
|
96
103
|
* Indicates whether the radio group is in a dirty state (has been interacted with).
|