@aurodesignsystem/auro-formkit 5.9.1 → 5.9.2
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/CHANGELOG.md +16 -4
- package/components/checkbox/README.md +62 -62
- package/components/checkbox/demo/api.js +1 -1
- package/components/checkbox/demo/api.md +127 -84
- package/components/checkbox/demo/api.min.js +125 -42
- package/components/checkbox/demo/index.md +9 -281
- package/components/checkbox/demo/index.min.js +125 -42
- package/components/checkbox/demo/readme.html +3 -4
- package/components/checkbox/demo/readme.md +62 -62
- package/components/checkbox/dist/auro-checkbox-group.d.ts +7 -8
- package/components/checkbox/dist/auro-checkbox.d.ts +74 -20
- package/components/checkbox/dist/index.js +125 -42
- package/components/checkbox/dist/registered.js +125 -42
- package/components/combobox/README.md +76 -74
- package/components/combobox/demo/api.html +1 -0
- package/components/combobox/demo/api.js +11 -12
- package/components/combobox/demo/api.md +1302 -875
- package/components/combobox/demo/api.min.js +348 -420
- package/components/combobox/demo/index.html +1 -7
- package/components/combobox/demo/index.js +0 -19
- package/components/combobox/demo/index.md +43 -723
- package/components/combobox/demo/index.min.js +301 -230
- package/components/combobox/demo/readme.html +3 -4
- package/components/combobox/demo/readme.md +76 -74
- package/components/combobox/dist/auro-combobox.d.ts +39 -40
- package/components/combobox/dist/index.js +159 -143
- package/components/combobox/dist/registered.js +159 -143
- package/components/counter/README.md +81 -66
- package/components/counter/demo/api.html +1 -2
- package/components/counter/demo/api.js +2 -2
- package/components/counter/demo/api.md +777 -259
- package/components/counter/demo/api.min.js +84 -112
- package/components/counter/demo/index.html +0 -2
- package/components/counter/demo/index.md +20 -329
- package/components/counter/demo/index.min.js +82 -93
- package/components/counter/demo/readme.html +3 -4
- package/components/counter/demo/readme.md +81 -66
- package/components/counter/dist/auro-counter-group.d.ts +21 -36
- package/components/counter/dist/auro-counter-wrapper.d.ts +1 -6
- package/components/counter/dist/auro-counter.d.ts +5 -8
- package/components/counter/dist/index.js +82 -93
- package/components/counter/dist/registered.js +82 -93
- package/components/datepicker/README.md +57 -61
- package/components/datepicker/demo/api.js +8 -8
- package/components/datepicker/demo/api.md +720 -561
- package/components/datepicker/demo/api.min.js +427 -2424
- package/components/datepicker/demo/index.md +65 -117
- package/components/datepicker/demo/index.min.js +427 -2424
- package/components/datepicker/demo/readme.html +3 -4
- package/components/datepicker/demo/readme.md +57 -61
- package/components/datepicker/dist/auro-calendar.d.ts +60 -34
- package/components/datepicker/dist/auro-datepicker.d.ts +31 -31
- package/components/datepicker/dist/index.js +256 -2253
- package/components/datepicker/dist/popoverVersion.d.ts +1 -1
- package/components/datepicker/dist/registered.js +256 -2253
- package/components/dropdown/README.md +78 -62
- package/components/dropdown/demo/api.js +4 -4
- package/components/dropdown/demo/api.md +520 -478
- package/components/dropdown/demo/api.min.js +48 -39
- package/components/dropdown/demo/index.md +65 -119
- package/components/dropdown/demo/index.min.js +38 -29
- package/components/dropdown/demo/readme.html +3 -4
- package/components/dropdown/demo/readme.md +78 -62
- package/components/dropdown/dist/auro-dropdown.d.ts +42 -33
- package/components/dropdown/dist/index.js +38 -29
- package/components/dropdown/dist/registered.js +38 -29
- package/components/form/README.md +16 -58
- package/components/form/demo/api.md +16 -21
- package/components/form/demo/api.min.js +13 -8
- package/components/form/demo/index.md +38 -39
- package/components/form/demo/index.min.js +13 -8
- package/components/form/demo/readme.md +16 -58
- package/components/form/dist/auro-form.d.ts +15 -3
- package/components/form/dist/index.js +13 -8
- package/components/form/dist/registered.js +13 -8
- package/components/input/README.md +55 -60
- package/components/input/demo/api.js +3 -5
- package/components/input/demo/api.md +558 -537
- package/components/input/demo/api.min.js +100 -113
- package/components/input/demo/index.js +0 -1
- package/components/input/demo/index.md +90 -203
- package/components/input/demo/index.min.js +85 -97
- package/components/input/demo/readme.html +3 -4
- package/components/input/demo/readme.md +55 -60
- package/components/input/dist/auro-input.d.ts +6 -5
- package/components/input/dist/base-input.d.ts +67 -68
- package/components/input/dist/index.js +85 -80
- package/components/input/dist/registered.js +85 -80
- package/components/menu/README.md +61 -61
- package/components/menu/demo/api.js +6 -8
- package/components/menu/demo/api.md +520 -572
- package/components/menu/demo/api.min.js +176 -92
- package/components/menu/demo/index.js +0 -5
- package/components/menu/demo/index.md +36 -119
- package/components/menu/demo/index.min.js +141 -96
- package/components/menu/demo/readme.html +3 -4
- package/components/menu/demo/readme.md +61 -61
- package/components/menu/dist/auro-menu.d.ts +70 -37
- package/components/menu/dist/auro-menuoption.d.ts +36 -11
- package/components/menu/dist/index.js +141 -45
- package/components/menu/dist/registered.js +141 -45
- package/components/radio/README.md +61 -57
- package/components/radio/demo/api.js +2 -2
- package/components/radio/demo/api.md +241 -170
- package/components/radio/demo/api.min.js +154 -77
- package/components/radio/demo/index.md +22 -99
- package/components/radio/demo/index.min.js +145 -68
- package/components/radio/demo/readme.html +3 -4
- package/components/radio/demo/readme.md +61 -57
- package/components/radio/dist/auro-radio-group.d.ts +67 -35
- package/components/radio/dist/auro-radio.d.ts +56 -33
- package/components/radio/dist/index.js +145 -68
- package/components/radio/dist/registered.js +145 -68
- package/components/select/README.md +68 -65
- package/components/select/demo/api.html +1 -0
- package/components/select/demo/api.js +7 -7
- package/components/select/demo/api.md +1305 -625
- package/components/select/demo/api.min.js +300 -199
- package/components/select/demo/index.html +0 -2
- package/components/select/demo/index.md +25 -833
- package/components/select/demo/index.min.js +299 -167
- package/components/select/demo/readme.html +3 -4
- package/components/select/demo/readme.md +68 -65
- package/components/select/dist/auro-select.d.ts +99 -90
- package/components/select/dist/index.js +158 -122
- package/components/select/dist/registered.js +158 -122
- package/package.json +3 -3
|
@@ -150,11 +150,10 @@ let AuroLibraryRuntimeUtils$4 = class AuroLibraryRuntimeUtils {
|
|
|
150
150
|
}
|
|
151
151
|
};
|
|
152
152
|
|
|
153
|
-
// Copyright (c)
|
|
153
|
+
// Copyright (c) 2026 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
154
154
|
// See LICENSE in the project root for license information.
|
|
155
155
|
|
|
156
156
|
|
|
157
|
-
// build the component class
|
|
158
157
|
class AuroCounterButton extends T$1 {
|
|
159
158
|
|
|
160
159
|
constructor() {
|
|
@@ -1391,22 +1390,17 @@ let AuroHelpText$1 = class AuroHelpText extends LitElement {
|
|
|
1391
1390
|
}
|
|
1392
1391
|
};
|
|
1393
1392
|
|
|
1394
|
-
var formkitVersion$1 = '
|
|
1393
|
+
var formkitVersion$1 = '202601271813';
|
|
1395
1394
|
|
|
1396
|
-
/* eslint-disable lit/binding-positions, lit/no-invalid-html, max-lines */
|
|
1397
1395
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
1398
1396
|
// See LICENSE in the project root for license information.
|
|
1399
1397
|
|
|
1400
1398
|
|
|
1401
1399
|
/**
|
|
1402
|
-
*
|
|
1400
|
+
* The `auro-counter` element provides a flexible counter interface with increment and decrement buttons, supporting optional sub-labels and disabled states.
|
|
1401
|
+
* @customElement auro-counter
|
|
1403
1402
|
*
|
|
1404
|
-
*
|
|
1405
|
-
* supporting optional sub-labels and disabled states.
|
|
1406
|
-
*
|
|
1407
|
-
* @element auro-counter
|
|
1408
|
-
* @extends LitElement
|
|
1409
|
-
* @slot - Main label content for the counter.
|
|
1403
|
+
* @slot default - Main label content for the counter.
|
|
1410
1404
|
* @slot ariaLabel.minus - Accessible label for the decrement button.
|
|
1411
1405
|
* @slot ariaLabel.plus - Accessible label for the increment button.
|
|
1412
1406
|
* @slot helpText - Help text content for the counter.
|
|
@@ -1416,6 +1410,10 @@ class AuroCounter extends LitElement {
|
|
|
1416
1410
|
constructor() {
|
|
1417
1411
|
super();
|
|
1418
1412
|
|
|
1413
|
+
this._initializeDefaults();
|
|
1414
|
+
}
|
|
1415
|
+
|
|
1416
|
+
_initializeDefaults() {
|
|
1419
1417
|
this.appearance = "default";
|
|
1420
1418
|
this.defaultSlot = undefined;
|
|
1421
1419
|
this.disabled = false;
|
|
@@ -1484,7 +1482,7 @@ class AuroCounter extends LitElement {
|
|
|
1484
1482
|
|
|
1485
1483
|
/**
|
|
1486
1484
|
* Defines whether the component will be on lighter or darker backgrounds.
|
|
1487
|
-
* @
|
|
1485
|
+
* @type {'default' | 'inverse'}
|
|
1488
1486
|
* @default 'default'
|
|
1489
1487
|
*/
|
|
1490
1488
|
appearance: {
|
|
@@ -1494,11 +1492,10 @@ class AuroCounter extends LitElement {
|
|
|
1494
1492
|
|
|
1495
1493
|
/**
|
|
1496
1494
|
* The default slot content.
|
|
1497
|
-
* @type {string}
|
|
1498
1495
|
* @private
|
|
1499
1496
|
*/
|
|
1500
1497
|
defaultSlot: {
|
|
1501
|
-
type: String
|
|
1498
|
+
type: String
|
|
1502
1499
|
},
|
|
1503
1500
|
|
|
1504
1501
|
/**
|
|
@@ -1506,7 +1503,7 @@ class AuroCounter extends LitElement {
|
|
|
1506
1503
|
*/
|
|
1507
1504
|
disabled: {
|
|
1508
1505
|
type: Boolean,
|
|
1509
|
-
reflect: true
|
|
1506
|
+
reflect: true
|
|
1510
1507
|
},
|
|
1511
1508
|
|
|
1512
1509
|
/**
|
|
@@ -1514,7 +1511,7 @@ class AuroCounter extends LitElement {
|
|
|
1514
1511
|
* @private
|
|
1515
1512
|
*/
|
|
1516
1513
|
disableMax: {
|
|
1517
|
-
type: Boolean
|
|
1514
|
+
type: Boolean
|
|
1518
1515
|
},
|
|
1519
1516
|
|
|
1520
1517
|
/**
|
|
@@ -1522,7 +1519,7 @@ class AuroCounter extends LitElement {
|
|
|
1522
1519
|
* @private
|
|
1523
1520
|
*/
|
|
1524
1521
|
disableMin: {
|
|
1525
|
-
type: Boolean
|
|
1522
|
+
type: Boolean
|
|
1526
1523
|
},
|
|
1527
1524
|
|
|
1528
1525
|
/**
|
|
@@ -1531,7 +1528,7 @@ class AuroCounter extends LitElement {
|
|
|
1531
1528
|
*/
|
|
1532
1529
|
error: {
|
|
1533
1530
|
type: String,
|
|
1534
|
-
reflect: false
|
|
1531
|
+
reflect: false
|
|
1535
1532
|
},
|
|
1536
1533
|
|
|
1537
1534
|
/**
|
|
@@ -1539,7 +1536,7 @@ class AuroCounter extends LitElement {
|
|
|
1539
1536
|
*/
|
|
1540
1537
|
max: {
|
|
1541
1538
|
type: Number,
|
|
1542
|
-
reflect: true
|
|
1539
|
+
reflect: true
|
|
1543
1540
|
},
|
|
1544
1541
|
|
|
1545
1542
|
/**
|
|
@@ -1547,11 +1544,11 @@ class AuroCounter extends LitElement {
|
|
|
1547
1544
|
*/
|
|
1548
1545
|
min: {
|
|
1549
1546
|
type: Number,
|
|
1550
|
-
reflect: true
|
|
1547
|
+
reflect: true
|
|
1551
1548
|
},
|
|
1552
1549
|
|
|
1553
1550
|
/**
|
|
1554
|
-
* DEPRECATED - use `appearance` instead.
|
|
1551
|
+
* DEPRECATED - use `appearance="inverse"` instead.
|
|
1555
1552
|
*/
|
|
1556
1553
|
onDark: {
|
|
1557
1554
|
type: Boolean,
|
|
@@ -1563,21 +1560,21 @@ class AuroCounter extends LitElement {
|
|
|
1563
1560
|
*/
|
|
1564
1561
|
validity: {
|
|
1565
1562
|
type: String,
|
|
1566
|
-
reflect: true
|
|
1563
|
+
reflect: true
|
|
1567
1564
|
},
|
|
1568
1565
|
|
|
1569
1566
|
/**
|
|
1570
1567
|
* The current value of the counter.
|
|
1571
1568
|
*/
|
|
1572
1569
|
value: {
|
|
1573
|
-
type: Number
|
|
1570
|
+
type: Number
|
|
1574
1571
|
},
|
|
1575
1572
|
};
|
|
1576
1573
|
}
|
|
1577
1574
|
|
|
1578
1575
|
/**
|
|
1579
1576
|
* Registers the custom element with the browser.
|
|
1580
|
-
* @param {string} [name="auro-counter"] -
|
|
1577
|
+
* @param {string} [name="auro-counter"] - The name of the element that you want to register.
|
|
1581
1578
|
* @example
|
|
1582
1579
|
* AuroCounter.register("custom-counter") // registers <custom-counter/>
|
|
1583
1580
|
*/
|
|
@@ -4908,7 +4905,7 @@ class AuroHelpText extends LitElement {
|
|
|
4908
4905
|
}
|
|
4909
4906
|
}
|
|
4910
4907
|
|
|
4911
|
-
var formkitVersion = '
|
|
4908
|
+
var formkitVersion = '202601271813';
|
|
4912
4909
|
|
|
4913
4910
|
let AuroElement$1 = class AuroElement extends LitElement {
|
|
4914
4911
|
static get properties() {
|
|
@@ -5014,12 +5011,14 @@ let AuroElement$1 = class AuroElement extends LitElement {
|
|
|
5014
5011
|
}
|
|
5015
5012
|
};
|
|
5016
5013
|
|
|
5017
|
-
// Copyright (c)
|
|
5014
|
+
// Copyright (c) 2026 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
5018
5015
|
// See LICENSE in the project root for license information.
|
|
5019
5016
|
|
|
5020
5017
|
|
|
5021
|
-
|
|
5022
|
-
|
|
5018
|
+
/**
|
|
5019
|
+
* The `auro-dropdown` element provides a way to place content in a bib that can be toggled.
|
|
5020
|
+
* @customElement auro-dropdown
|
|
5021
|
+
*
|
|
5023
5022
|
* @slot - Default slot for the popover content.
|
|
5024
5023
|
* @slot helpText - Defines the content of the helpText.
|
|
5025
5024
|
* @slot trigger - Defines the content of the trigger.
|
|
@@ -5055,7 +5054,7 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
5055
5054
|
/** @private */
|
|
5056
5055
|
this.bibElement = createRef();
|
|
5057
5056
|
|
|
5058
|
-
this.
|
|
5057
|
+
this._intializeDefaults();
|
|
5059
5058
|
}
|
|
5060
5059
|
|
|
5061
5060
|
/**
|
|
@@ -5076,7 +5075,7 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
5076
5075
|
* @private
|
|
5077
5076
|
* @returns {void} Internal defaults.
|
|
5078
5077
|
*/
|
|
5079
|
-
|
|
5078
|
+
_intializeDefaults() {
|
|
5080
5079
|
this.appearance = 'default';
|
|
5081
5080
|
this.chevron = false;
|
|
5082
5081
|
this.disabled = false;
|
|
@@ -5197,9 +5196,18 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
5197
5196
|
static get properties() {
|
|
5198
5197
|
return {
|
|
5199
5198
|
|
|
5199
|
+
/**
|
|
5200
|
+
* The value for the role attribute of the trigger element.
|
|
5201
|
+
*/
|
|
5202
|
+
a11yRole: {
|
|
5203
|
+
type: String || undefined,
|
|
5204
|
+
attribute: false,
|
|
5205
|
+
reflect: false
|
|
5206
|
+
},
|
|
5207
|
+
|
|
5200
5208
|
/**
|
|
5201
5209
|
* Defines whether the component will be on lighter or darker backgrounds.
|
|
5202
|
-
* @
|
|
5210
|
+
* @type {'default' | 'inverse'}
|
|
5203
5211
|
* @default 'default'
|
|
5204
5212
|
*/
|
|
5205
5213
|
appearance: {
|
|
@@ -5209,7 +5217,6 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
5209
5217
|
|
|
5210
5218
|
/**
|
|
5211
5219
|
* If declared, bib's position will be automatically calculated where to appear.
|
|
5212
|
-
* @default false
|
|
5213
5220
|
*/
|
|
5214
5221
|
autoPlacement: {
|
|
5215
5222
|
type: Boolean,
|
|
@@ -5218,7 +5225,6 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
5218
5225
|
|
|
5219
5226
|
/**
|
|
5220
5227
|
* If declared, the dropdown will only show by calling the API .show() public method.
|
|
5221
|
-
* @default false
|
|
5222
5228
|
*/
|
|
5223
5229
|
disableEventShow: {
|
|
5224
5230
|
type: Boolean,
|
|
@@ -5235,11 +5241,11 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
5235
5241
|
|
|
5236
5242
|
/**
|
|
5237
5243
|
* If declared, the dropdown displays a chevron on the right.
|
|
5238
|
-
* @attr {Boolean} chevron
|
|
5239
5244
|
*/
|
|
5240
5245
|
chevron: {
|
|
5241
5246
|
type: Boolean,
|
|
5242
|
-
reflect: true
|
|
5247
|
+
reflect: true,
|
|
5248
|
+
attribute: 'chevron'
|
|
5243
5249
|
},
|
|
5244
5250
|
|
|
5245
5251
|
/**
|
|
@@ -5276,7 +5282,7 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
5276
5282
|
},
|
|
5277
5283
|
|
|
5278
5284
|
/**
|
|
5279
|
-
* If declared
|
|
5285
|
+
* If declared, will apply error UI to the dropdown.
|
|
5280
5286
|
*/
|
|
5281
5287
|
error: {
|
|
5282
5288
|
type: Boolean,
|
|
@@ -5331,18 +5337,28 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
5331
5337
|
},
|
|
5332
5338
|
|
|
5333
5339
|
/**
|
|
5334
|
-
* Defines the screen size breakpoint
|
|
5335
|
-
* at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
|
|
5340
|
+
* Defines the screen size breakpoint at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
|
|
5336
5341
|
*
|
|
5337
5342
|
* When expanded, the dropdown will automatically display in fullscreen mode
|
|
5338
5343
|
* if the screen size is equal to or smaller than the selected breakpoint.
|
|
5339
|
-
* @
|
|
5344
|
+
* @type {'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'disabled'}
|
|
5345
|
+
* @default 'sm'
|
|
5340
5346
|
*/
|
|
5341
5347
|
fullscreenBreakpoint: {
|
|
5342
5348
|
type: String,
|
|
5343
5349
|
reflect: true
|
|
5344
5350
|
},
|
|
5345
5351
|
|
|
5352
|
+
/**
|
|
5353
|
+
* Sets the layout of the dropdown.
|
|
5354
|
+
* @type {'classic' | 'emphasized' | 'snowflake'}
|
|
5355
|
+
* @default 'classic'
|
|
5356
|
+
*/
|
|
5357
|
+
layout: {
|
|
5358
|
+
type: String,
|
|
5359
|
+
reflect: true
|
|
5360
|
+
},
|
|
5361
|
+
|
|
5346
5362
|
/**
|
|
5347
5363
|
* Defines if the trigger should size based on the parent element providing the border UI.
|
|
5348
5364
|
* @private
|
|
@@ -5363,7 +5379,6 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
5363
5379
|
/**
|
|
5364
5380
|
* If declared, the bib will NOT flip to an alternate position
|
|
5365
5381
|
* when there isn't enough space in the specified `placement`.
|
|
5366
|
-
* @default false
|
|
5367
5382
|
*/
|
|
5368
5383
|
noFlip: {
|
|
5369
5384
|
type: Boolean,
|
|
@@ -5372,7 +5387,6 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
5372
5387
|
|
|
5373
5388
|
/**
|
|
5374
5389
|
* If declared, the dropdown will shift its position to avoid being cut off by the viewport.
|
|
5375
|
-
* @default false
|
|
5376
5390
|
*/
|
|
5377
5391
|
shift: {
|
|
5378
5392
|
type: Boolean,
|
|
@@ -5405,7 +5419,7 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
5405
5419
|
},
|
|
5406
5420
|
|
|
5407
5421
|
/**
|
|
5408
|
-
* DEPRECATED - use `appearance` instead.
|
|
5422
|
+
* DEPRECATED - use `appearance="inverse"` instead.
|
|
5409
5423
|
*/
|
|
5410
5424
|
onDark: {
|
|
5411
5425
|
type: Boolean,
|
|
@@ -5422,7 +5436,8 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
5422
5436
|
|
|
5423
5437
|
/**
|
|
5424
5438
|
* Position where the bib should appear relative to the trigger.
|
|
5425
|
-
* @
|
|
5439
|
+
* @type {'top' | 'right' | 'bottom' | 'left' | 'bottom-start' | 'top-start' | 'top-end' | 'right-start' | 'right-end' | 'bottom-end' | 'left-start' | 'left-end'}
|
|
5440
|
+
* @default 'bottom-start'
|
|
5426
5441
|
*/
|
|
5427
5442
|
placement: {
|
|
5428
5443
|
type: String,
|
|
@@ -5434,15 +5449,6 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
5434
5449
|
*/
|
|
5435
5450
|
tabIndex: {
|
|
5436
5451
|
type: Number
|
|
5437
|
-
},
|
|
5438
|
-
|
|
5439
|
-
/**
|
|
5440
|
-
* The value for the role attribute of the trigger element.
|
|
5441
|
-
*/
|
|
5442
|
-
a11yRole: {
|
|
5443
|
-
type: String || undefined,
|
|
5444
|
-
attribute: false,
|
|
5445
|
-
reflect: false
|
|
5446
5452
|
}
|
|
5447
5453
|
};
|
|
5448
5454
|
}
|
|
@@ -5469,7 +5475,7 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
5469
5475
|
|
|
5470
5476
|
/**
|
|
5471
5477
|
* This will register this element with the browser.
|
|
5472
|
-
* @param {string} [name="auro-dropdown"] - The name of element that you want to register
|
|
5478
|
+
* @param {string} [name="auro-dropdown"] - The name of the element that you want to register.
|
|
5473
5479
|
*
|
|
5474
5480
|
* @example
|
|
5475
5481
|
* AuroDropdown.register("custom-dropdown") // this will register this element to <custom-dropdown/>
|
|
@@ -6327,13 +6333,8 @@ var colorCss = css`:host ::slotted(*:not(:first-child)){border-color:var(--ds-au
|
|
|
6327
6333
|
|
|
6328
6334
|
|
|
6329
6335
|
/**
|
|
6330
|
-
*
|
|
6331
|
-
*
|
|
6332
|
-
* This web component provides a flexible interface for grouping multiple counters, supporting
|
|
6333
|
-
* validation, custom validity messages, and disabled states based on the group's value.
|
|
6336
|
+
* Wrapper element for auro-counter elements in an application to provide layout structure for multiple counters.
|
|
6334
6337
|
*
|
|
6335
|
-
* @element auro-counter-group
|
|
6336
|
-
* @extends LitElement
|
|
6337
6338
|
* @slot Default - Slot for counter elements.
|
|
6338
6339
|
*/
|
|
6339
6340
|
class AuroCounterWrapper extends LitElement {
|
|
@@ -6472,29 +6473,14 @@ class AuroElement extends LitElement {
|
|
|
6472
6473
|
}
|
|
6473
6474
|
}
|
|
6474
6475
|
|
|
6475
|
-
/*
|
|
6476
|
-
eslint-disable
|
|
6477
|
-
lit/no-invalid-html,
|
|
6478
|
-
lit/binding-positions,
|
|
6479
|
-
max-lines,
|
|
6480
|
-
no-underscore-dangle,
|
|
6481
|
-
arrow-parens,
|
|
6482
|
-
no-confusing-arrow,
|
|
6483
|
-
curly,
|
|
6484
|
-
dot-location,
|
|
6485
|
-
no-inline-comments,
|
|
6486
|
-
line-comment-position,
|
|
6476
|
+
/* eslint-disable lit/no-invalid-html, lit/binding-positions, max-lines, no-underscore-dangle, arrow-parens, no-confusing-arrow, curly, dot-location, no-inline-comments, line-comment-position,
|
|
6487
6477
|
*/
|
|
6488
6478
|
|
|
6489
6479
|
|
|
6490
6480
|
/**
|
|
6491
|
-
*
|
|
6481
|
+
* The `auro-counter-group` element provides a flexible interface for grouping multiple counters, supporting validation, custom validity messages, and disabled states based on the group's value.
|
|
6482
|
+
* @customElement auro-counter-group
|
|
6492
6483
|
*
|
|
6493
|
-
* This web component provides a flexible interface for grouping multiple counters, supporting
|
|
6494
|
-
* validation, custom validity messages, and disabled states based on the group's value.
|
|
6495
|
-
*
|
|
6496
|
-
* @element auro-counter-group
|
|
6497
|
-
* @extends LitElement
|
|
6498
6484
|
* @slot default - Slot for counter elements.
|
|
6499
6485
|
* @slot ariaLabel.bib.close - Sets aria-label on close button in fullscreen bib
|
|
6500
6486
|
* @slot bib.fullscreen.headline - Defines the headline to display above menu-options. Only used when `isDropdown` is true. Required.
|
|
@@ -6502,7 +6488,6 @@ class AuroElement extends LitElement {
|
|
|
6502
6488
|
* @slot label - Dropdown label content. Only used when `isDropdown` is true.
|
|
6503
6489
|
* @slot valueText - Dropdown value text display. Only used when `isDropdown` is true.
|
|
6504
6490
|
* @slot helpText - Dropdown help text content. Only used when `isDropdown` is true.
|
|
6505
|
-
* @property {'classic'|'snowflake'} layout - Determines the layout style of the counter group when it is a dropdown. Options are 'classic' or 'snowflake'. Default is 'classic'.
|
|
6506
6491
|
*/
|
|
6507
6492
|
class AuroCounterGroup extends AuroElement {
|
|
6508
6493
|
constructor() {
|
|
@@ -6600,7 +6585,7 @@ class AuroCounterGroup extends AuroElement {
|
|
|
6600
6585
|
|
|
6601
6586
|
/**
|
|
6602
6587
|
* Defines whether the component will be on lighter or darker backgrounds.
|
|
6603
|
-
* @
|
|
6588
|
+
* @type {'default' | 'inverse'}
|
|
6604
6589
|
* @default 'default'
|
|
6605
6590
|
*/
|
|
6606
6591
|
appearance: {
|
|
@@ -6637,12 +6622,12 @@ class AuroCounterGroup extends AuroElement {
|
|
|
6637
6622
|
},
|
|
6638
6623
|
|
|
6639
6624
|
/**
|
|
6640
|
-
* Defines the screen size breakpoint
|
|
6641
|
-
* at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
|
|
6625
|
+
* Defines the screen size breakpoint at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
|
|
6642
6626
|
*
|
|
6643
6627
|
* When expanded, the dropdown will automatically display in fullscreen mode
|
|
6644
6628
|
* if the screen size is equal to or smaller than the selected breakpoint.
|
|
6645
|
-
* @
|
|
6629
|
+
* @type {'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'disabled'}
|
|
6630
|
+
* @default 'sm'
|
|
6646
6631
|
*/
|
|
6647
6632
|
fullscreenBreakpoint: {
|
|
6648
6633
|
type: String,
|
|
@@ -6650,12 +6635,22 @@ class AuroCounterGroup extends AuroElement {
|
|
|
6650
6635
|
},
|
|
6651
6636
|
|
|
6652
6637
|
/**
|
|
6653
|
-
*
|
|
6638
|
+
* If true, the counter group is displayed as a dropdown.
|
|
6654
6639
|
*/
|
|
6655
6640
|
isDropdown: {
|
|
6656
6641
|
type: Boolean
|
|
6657
6642
|
},
|
|
6658
6643
|
|
|
6644
|
+
/**
|
|
6645
|
+
* Determines the layout style of the counter group when it is a dropdown.
|
|
6646
|
+
* @type {'classic' | 'snowflake'}
|
|
6647
|
+
* @default 'classic'
|
|
6648
|
+
*/
|
|
6649
|
+
layout: {
|
|
6650
|
+
type: String,
|
|
6651
|
+
reflect: true
|
|
6652
|
+
},
|
|
6653
|
+
|
|
6659
6654
|
/**
|
|
6660
6655
|
* If declared, the dropdown will expand to the width of its parent container.
|
|
6661
6656
|
* Otherwise, the dropdown width will be determined by its content.
|
|
@@ -6693,7 +6688,6 @@ class AuroCounterGroup extends AuroElement {
|
|
|
6693
6688
|
/**
|
|
6694
6689
|
* If declared, the bib will NOT flip to an alternate position
|
|
6695
6690
|
* when there isn't enough space in the specified `placement`.
|
|
6696
|
-
* @default false
|
|
6697
6691
|
*/
|
|
6698
6692
|
noFlip: {
|
|
6699
6693
|
type: Boolean,
|
|
@@ -6702,7 +6696,6 @@ class AuroCounterGroup extends AuroElement {
|
|
|
6702
6696
|
|
|
6703
6697
|
/**
|
|
6704
6698
|
* If declared, the dropdown will shift its position to avoid being cut off by the viewport.
|
|
6705
|
-
* @default false
|
|
6706
6699
|
*/
|
|
6707
6700
|
shift: {
|
|
6708
6701
|
type: Boolean,
|
|
@@ -6728,12 +6721,8 @@ class AuroCounterGroup extends AuroElement {
|
|
|
6728
6721
|
|
|
6729
6722
|
/**
|
|
6730
6723
|
* Position where the bib should appear relative to the trigger.
|
|
6731
|
-
*
|
|
6732
|
-
*
|
|
6733
|
-
* "bottom-start" | "top-start" | "top-end" |
|
|
6734
|
-
* "right-start" | "right-end" | "bottom-end" |
|
|
6735
|
-
* "left-start" | "left-end".
|
|
6736
|
-
* @default bottom-start
|
|
6724
|
+
* @type {'top' | 'right' | 'bottom' | 'left' | 'bottom-start' | 'top-start' | 'top-end' | 'right-start' | 'right-end' | 'bottom-end' | 'left-start' | 'left-end'}
|
|
6725
|
+
* @default 'bottom-start'
|
|
6737
6726
|
*/
|
|
6738
6727
|
placement: {
|
|
6739
6728
|
type: String,
|
|
@@ -6744,7 +6733,7 @@ class AuroCounterGroup extends AuroElement {
|
|
|
6744
6733
|
* The total value of the counters.
|
|
6745
6734
|
*/
|
|
6746
6735
|
total: {
|
|
6747
|
-
type: Number
|
|
6736
|
+
type: Number
|
|
6748
6737
|
},
|
|
6749
6738
|
|
|
6750
6739
|
/**
|
|
@@ -7076,7 +7065,7 @@ class AuroCounterGroup extends AuroElement {
|
|
|
7076
7065
|
|
|
7077
7066
|
/**
|
|
7078
7067
|
* Registers the custom element with the browser.
|
|
7079
|
-
* @param {string} [name="auro-counter-group"] -
|
|
7068
|
+
* @param {string} [name="auro-counter-group"] - The name of the element that you want to register.
|
|
7080
7069
|
* @example
|
|
7081
7070
|
* AuroCounterGroup.register("custom-counter-group") // registers <custom-counter-group/>
|
|
7082
7071
|
*/
|