@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
|
@@ -196,11 +196,10 @@ let AuroLibraryRuntimeUtils$4 = class AuroLibraryRuntimeUtils {
|
|
|
196
196
|
}
|
|
197
197
|
};
|
|
198
198
|
|
|
199
|
-
// Copyright (c)
|
|
199
|
+
// Copyright (c) 2026 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
200
200
|
// See LICENSE in the project root for license information.
|
|
201
201
|
|
|
202
202
|
|
|
203
|
-
// build the component class
|
|
204
203
|
class AuroCounterButton extends T$1 {
|
|
205
204
|
|
|
206
205
|
constructor() {
|
|
@@ -1437,22 +1436,17 @@ let AuroHelpText$1 = class AuroHelpText extends i$2 {
|
|
|
1437
1436
|
}
|
|
1438
1437
|
};
|
|
1439
1438
|
|
|
1440
|
-
var formkitVersion$1 = '
|
|
1439
|
+
var formkitVersion$1 = '202601271813';
|
|
1441
1440
|
|
|
1442
|
-
/* eslint-disable lit/binding-positions, lit/no-invalid-html, max-lines */
|
|
1443
1441
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
1444
1442
|
// See LICENSE in the project root for license information.
|
|
1445
1443
|
|
|
1446
1444
|
|
|
1447
1445
|
/**
|
|
1448
|
-
*
|
|
1446
|
+
* The `auro-counter` element provides a flexible counter interface with increment and decrement buttons, supporting optional sub-labels and disabled states.
|
|
1447
|
+
* @customElement auro-counter
|
|
1449
1448
|
*
|
|
1450
|
-
*
|
|
1451
|
-
* supporting optional sub-labels and disabled states.
|
|
1452
|
-
*
|
|
1453
|
-
* @element auro-counter
|
|
1454
|
-
* @extends LitElement
|
|
1455
|
-
* @slot - Main label content for the counter.
|
|
1449
|
+
* @slot default - Main label content for the counter.
|
|
1456
1450
|
* @slot ariaLabel.minus - Accessible label for the decrement button.
|
|
1457
1451
|
* @slot ariaLabel.plus - Accessible label for the increment button.
|
|
1458
1452
|
* @slot helpText - Help text content for the counter.
|
|
@@ -1462,6 +1456,10 @@ class AuroCounter extends i$2 {
|
|
|
1462
1456
|
constructor() {
|
|
1463
1457
|
super();
|
|
1464
1458
|
|
|
1459
|
+
this._initializeDefaults();
|
|
1460
|
+
}
|
|
1461
|
+
|
|
1462
|
+
_initializeDefaults() {
|
|
1465
1463
|
this.appearance = "default";
|
|
1466
1464
|
this.defaultSlot = undefined;
|
|
1467
1465
|
this.disabled = false;
|
|
@@ -1530,7 +1528,7 @@ class AuroCounter extends i$2 {
|
|
|
1530
1528
|
|
|
1531
1529
|
/**
|
|
1532
1530
|
* Defines whether the component will be on lighter or darker backgrounds.
|
|
1533
|
-
* @
|
|
1531
|
+
* @type {'default' | 'inverse'}
|
|
1534
1532
|
* @default 'default'
|
|
1535
1533
|
*/
|
|
1536
1534
|
appearance: {
|
|
@@ -1540,11 +1538,10 @@ class AuroCounter extends i$2 {
|
|
|
1540
1538
|
|
|
1541
1539
|
/**
|
|
1542
1540
|
* The default slot content.
|
|
1543
|
-
* @type {string}
|
|
1544
1541
|
* @private
|
|
1545
1542
|
*/
|
|
1546
1543
|
defaultSlot: {
|
|
1547
|
-
type: String
|
|
1544
|
+
type: String
|
|
1548
1545
|
},
|
|
1549
1546
|
|
|
1550
1547
|
/**
|
|
@@ -1552,7 +1549,7 @@ class AuroCounter extends i$2 {
|
|
|
1552
1549
|
*/
|
|
1553
1550
|
disabled: {
|
|
1554
1551
|
type: Boolean,
|
|
1555
|
-
reflect: true
|
|
1552
|
+
reflect: true
|
|
1556
1553
|
},
|
|
1557
1554
|
|
|
1558
1555
|
/**
|
|
@@ -1560,7 +1557,7 @@ class AuroCounter extends i$2 {
|
|
|
1560
1557
|
* @private
|
|
1561
1558
|
*/
|
|
1562
1559
|
disableMax: {
|
|
1563
|
-
type: Boolean
|
|
1560
|
+
type: Boolean
|
|
1564
1561
|
},
|
|
1565
1562
|
|
|
1566
1563
|
/**
|
|
@@ -1568,7 +1565,7 @@ class AuroCounter extends i$2 {
|
|
|
1568
1565
|
* @private
|
|
1569
1566
|
*/
|
|
1570
1567
|
disableMin: {
|
|
1571
|
-
type: Boolean
|
|
1568
|
+
type: Boolean
|
|
1572
1569
|
},
|
|
1573
1570
|
|
|
1574
1571
|
/**
|
|
@@ -1577,7 +1574,7 @@ class AuroCounter extends i$2 {
|
|
|
1577
1574
|
*/
|
|
1578
1575
|
error: {
|
|
1579
1576
|
type: String,
|
|
1580
|
-
reflect: false
|
|
1577
|
+
reflect: false
|
|
1581
1578
|
},
|
|
1582
1579
|
|
|
1583
1580
|
/**
|
|
@@ -1585,7 +1582,7 @@ class AuroCounter extends i$2 {
|
|
|
1585
1582
|
*/
|
|
1586
1583
|
max: {
|
|
1587
1584
|
type: Number,
|
|
1588
|
-
reflect: true
|
|
1585
|
+
reflect: true
|
|
1589
1586
|
},
|
|
1590
1587
|
|
|
1591
1588
|
/**
|
|
@@ -1593,11 +1590,11 @@ class AuroCounter extends i$2 {
|
|
|
1593
1590
|
*/
|
|
1594
1591
|
min: {
|
|
1595
1592
|
type: Number,
|
|
1596
|
-
reflect: true
|
|
1593
|
+
reflect: true
|
|
1597
1594
|
},
|
|
1598
1595
|
|
|
1599
1596
|
/**
|
|
1600
|
-
* DEPRECATED - use `appearance` instead.
|
|
1597
|
+
* DEPRECATED - use `appearance="inverse"` instead.
|
|
1601
1598
|
*/
|
|
1602
1599
|
onDark: {
|
|
1603
1600
|
type: Boolean,
|
|
@@ -1609,21 +1606,21 @@ class AuroCounter extends i$2 {
|
|
|
1609
1606
|
*/
|
|
1610
1607
|
validity: {
|
|
1611
1608
|
type: String,
|
|
1612
|
-
reflect: true
|
|
1609
|
+
reflect: true
|
|
1613
1610
|
},
|
|
1614
1611
|
|
|
1615
1612
|
/**
|
|
1616
1613
|
* The current value of the counter.
|
|
1617
1614
|
*/
|
|
1618
1615
|
value: {
|
|
1619
|
-
type: Number
|
|
1616
|
+
type: Number
|
|
1620
1617
|
},
|
|
1621
1618
|
};
|
|
1622
1619
|
}
|
|
1623
1620
|
|
|
1624
1621
|
/**
|
|
1625
1622
|
* Registers the custom element with the browser.
|
|
1626
|
-
* @param {string} [name="auro-counter"] -
|
|
1623
|
+
* @param {string} [name="auro-counter"] - The name of the element that you want to register.
|
|
1627
1624
|
* @example
|
|
1628
1625
|
* AuroCounter.register("custom-counter") // registers <custom-counter/>
|
|
1629
1626
|
*/
|
|
@@ -4972,7 +4969,7 @@ class AuroHelpText extends i$2 {
|
|
|
4972
4969
|
}
|
|
4973
4970
|
}
|
|
4974
4971
|
|
|
4975
|
-
var formkitVersion = '
|
|
4972
|
+
var formkitVersion = '202601271813';
|
|
4976
4973
|
|
|
4977
4974
|
let AuroElement$1 = class AuroElement extends i$2 {
|
|
4978
4975
|
static get properties() {
|
|
@@ -5078,12 +5075,14 @@ let AuroElement$1 = class AuroElement extends i$2 {
|
|
|
5078
5075
|
}
|
|
5079
5076
|
};
|
|
5080
5077
|
|
|
5081
|
-
// Copyright (c)
|
|
5078
|
+
// Copyright (c) 2026 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
5082
5079
|
// See LICENSE in the project root for license information.
|
|
5083
5080
|
|
|
5084
5081
|
|
|
5085
|
-
|
|
5086
|
-
|
|
5082
|
+
/**
|
|
5083
|
+
* The `auro-dropdown` element provides a way to place content in a bib that can be toggled.
|
|
5084
|
+
* @customElement auro-dropdown
|
|
5085
|
+
*
|
|
5087
5086
|
* @slot - Default slot for the popover content.
|
|
5088
5087
|
* @slot helpText - Defines the content of the helpText.
|
|
5089
5088
|
* @slot trigger - Defines the content of the trigger.
|
|
@@ -5119,7 +5118,7 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
5119
5118
|
/** @private */
|
|
5120
5119
|
this.bibElement = e();
|
|
5121
5120
|
|
|
5122
|
-
this.
|
|
5121
|
+
this._intializeDefaults();
|
|
5123
5122
|
}
|
|
5124
5123
|
|
|
5125
5124
|
/**
|
|
@@ -5140,7 +5139,7 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
5140
5139
|
* @private
|
|
5141
5140
|
* @returns {void} Internal defaults.
|
|
5142
5141
|
*/
|
|
5143
|
-
|
|
5142
|
+
_intializeDefaults() {
|
|
5144
5143
|
this.appearance = 'default';
|
|
5145
5144
|
this.chevron = false;
|
|
5146
5145
|
this.disabled = false;
|
|
@@ -5261,9 +5260,18 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
5261
5260
|
static get properties() {
|
|
5262
5261
|
return {
|
|
5263
5262
|
|
|
5263
|
+
/**
|
|
5264
|
+
* The value for the role attribute of the trigger element.
|
|
5265
|
+
*/
|
|
5266
|
+
a11yRole: {
|
|
5267
|
+
type: String || undefined,
|
|
5268
|
+
attribute: false,
|
|
5269
|
+
reflect: false
|
|
5270
|
+
},
|
|
5271
|
+
|
|
5264
5272
|
/**
|
|
5265
5273
|
* Defines whether the component will be on lighter or darker backgrounds.
|
|
5266
|
-
* @
|
|
5274
|
+
* @type {'default' | 'inverse'}
|
|
5267
5275
|
* @default 'default'
|
|
5268
5276
|
*/
|
|
5269
5277
|
appearance: {
|
|
@@ -5273,7 +5281,6 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
5273
5281
|
|
|
5274
5282
|
/**
|
|
5275
5283
|
* If declared, bib's position will be automatically calculated where to appear.
|
|
5276
|
-
* @default false
|
|
5277
5284
|
*/
|
|
5278
5285
|
autoPlacement: {
|
|
5279
5286
|
type: Boolean,
|
|
@@ -5282,7 +5289,6 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
5282
5289
|
|
|
5283
5290
|
/**
|
|
5284
5291
|
* If declared, the dropdown will only show by calling the API .show() public method.
|
|
5285
|
-
* @default false
|
|
5286
5292
|
*/
|
|
5287
5293
|
disableEventShow: {
|
|
5288
5294
|
type: Boolean,
|
|
@@ -5299,11 +5305,11 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
5299
5305
|
|
|
5300
5306
|
/**
|
|
5301
5307
|
* If declared, the dropdown displays a chevron on the right.
|
|
5302
|
-
* @attr {Boolean} chevron
|
|
5303
5308
|
*/
|
|
5304
5309
|
chevron: {
|
|
5305
5310
|
type: Boolean,
|
|
5306
|
-
reflect: true
|
|
5311
|
+
reflect: true,
|
|
5312
|
+
attribute: 'chevron'
|
|
5307
5313
|
},
|
|
5308
5314
|
|
|
5309
5315
|
/**
|
|
@@ -5340,7 +5346,7 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
5340
5346
|
},
|
|
5341
5347
|
|
|
5342
5348
|
/**
|
|
5343
|
-
* If declared
|
|
5349
|
+
* If declared, will apply error UI to the dropdown.
|
|
5344
5350
|
*/
|
|
5345
5351
|
error: {
|
|
5346
5352
|
type: Boolean,
|
|
@@ -5395,18 +5401,28 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
5395
5401
|
},
|
|
5396
5402
|
|
|
5397
5403
|
/**
|
|
5398
|
-
* Defines the screen size breakpoint
|
|
5399
|
-
* at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
|
|
5404
|
+
* Defines the screen size breakpoint at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
|
|
5400
5405
|
*
|
|
5401
5406
|
* When expanded, the dropdown will automatically display in fullscreen mode
|
|
5402
5407
|
* if the screen size is equal to or smaller than the selected breakpoint.
|
|
5403
|
-
* @
|
|
5408
|
+
* @type {'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'disabled'}
|
|
5409
|
+
* @default 'sm'
|
|
5404
5410
|
*/
|
|
5405
5411
|
fullscreenBreakpoint: {
|
|
5406
5412
|
type: String,
|
|
5407
5413
|
reflect: true
|
|
5408
5414
|
},
|
|
5409
5415
|
|
|
5416
|
+
/**
|
|
5417
|
+
* Sets the layout of the dropdown.
|
|
5418
|
+
* @type {'classic' | 'emphasized' | 'snowflake'}
|
|
5419
|
+
* @default 'classic'
|
|
5420
|
+
*/
|
|
5421
|
+
layout: {
|
|
5422
|
+
type: String,
|
|
5423
|
+
reflect: true
|
|
5424
|
+
},
|
|
5425
|
+
|
|
5410
5426
|
/**
|
|
5411
5427
|
* Defines if the trigger should size based on the parent element providing the border UI.
|
|
5412
5428
|
* @private
|
|
@@ -5427,7 +5443,6 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
5427
5443
|
/**
|
|
5428
5444
|
* If declared, the bib will NOT flip to an alternate position
|
|
5429
5445
|
* when there isn't enough space in the specified `placement`.
|
|
5430
|
-
* @default false
|
|
5431
5446
|
*/
|
|
5432
5447
|
noFlip: {
|
|
5433
5448
|
type: Boolean,
|
|
@@ -5436,7 +5451,6 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
5436
5451
|
|
|
5437
5452
|
/**
|
|
5438
5453
|
* If declared, the dropdown will shift its position to avoid being cut off by the viewport.
|
|
5439
|
-
* @default false
|
|
5440
5454
|
*/
|
|
5441
5455
|
shift: {
|
|
5442
5456
|
type: Boolean,
|
|
@@ -5469,7 +5483,7 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
5469
5483
|
},
|
|
5470
5484
|
|
|
5471
5485
|
/**
|
|
5472
|
-
* DEPRECATED - use `appearance` instead.
|
|
5486
|
+
* DEPRECATED - use `appearance="inverse"` instead.
|
|
5473
5487
|
*/
|
|
5474
5488
|
onDark: {
|
|
5475
5489
|
type: Boolean,
|
|
@@ -5486,7 +5500,8 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
5486
5500
|
|
|
5487
5501
|
/**
|
|
5488
5502
|
* Position where the bib should appear relative to the trigger.
|
|
5489
|
-
* @
|
|
5503
|
+
* @type {'top' | 'right' | 'bottom' | 'left' | 'bottom-start' | 'top-start' | 'top-end' | 'right-start' | 'right-end' | 'bottom-end' | 'left-start' | 'left-end'}
|
|
5504
|
+
* @default 'bottom-start'
|
|
5490
5505
|
*/
|
|
5491
5506
|
placement: {
|
|
5492
5507
|
type: String,
|
|
@@ -5498,15 +5513,6 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
5498
5513
|
*/
|
|
5499
5514
|
tabIndex: {
|
|
5500
5515
|
type: Number
|
|
5501
|
-
},
|
|
5502
|
-
|
|
5503
|
-
/**
|
|
5504
|
-
* The value for the role attribute of the trigger element.
|
|
5505
|
-
*/
|
|
5506
|
-
a11yRole: {
|
|
5507
|
-
type: String || undefined,
|
|
5508
|
-
attribute: false,
|
|
5509
|
-
reflect: false
|
|
5510
5516
|
}
|
|
5511
5517
|
};
|
|
5512
5518
|
}
|
|
@@ -5533,7 +5539,7 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
5533
5539
|
|
|
5534
5540
|
/**
|
|
5535
5541
|
* This will register this element with the browser.
|
|
5536
|
-
* @param {string} [name="auro-dropdown"] - The name of element that you want to register
|
|
5542
|
+
* @param {string} [name="auro-dropdown"] - The name of the element that you want to register.
|
|
5537
5543
|
*
|
|
5538
5544
|
* @example
|
|
5539
5545
|
* AuroDropdown.register("custom-dropdown") // this will register this element to <custom-dropdown/>
|
|
@@ -6391,13 +6397,8 @@ var colorCss = i$5`:host ::slotted(*:not(:first-child)){border-color:var(--ds-au
|
|
|
6391
6397
|
|
|
6392
6398
|
|
|
6393
6399
|
/**
|
|
6394
|
-
*
|
|
6395
|
-
*
|
|
6396
|
-
* This web component provides a flexible interface for grouping multiple counters, supporting
|
|
6397
|
-
* validation, custom validity messages, and disabled states based on the group's value.
|
|
6400
|
+
* Wrapper element for auro-counter elements in an application to provide layout structure for multiple counters.
|
|
6398
6401
|
*
|
|
6399
|
-
* @element auro-counter-group
|
|
6400
|
-
* @extends LitElement
|
|
6401
6402
|
* @slot Default - Slot for counter elements.
|
|
6402
6403
|
*/
|
|
6403
6404
|
class AuroCounterWrapper extends i$2 {
|
|
@@ -6536,29 +6537,14 @@ class AuroElement extends i$2 {
|
|
|
6536
6537
|
}
|
|
6537
6538
|
}
|
|
6538
6539
|
|
|
6539
|
-
/*
|
|
6540
|
-
eslint-disable
|
|
6541
|
-
lit/no-invalid-html,
|
|
6542
|
-
lit/binding-positions,
|
|
6543
|
-
max-lines,
|
|
6544
|
-
no-underscore-dangle,
|
|
6545
|
-
arrow-parens,
|
|
6546
|
-
no-confusing-arrow,
|
|
6547
|
-
curly,
|
|
6548
|
-
dot-location,
|
|
6549
|
-
no-inline-comments,
|
|
6550
|
-
line-comment-position,
|
|
6540
|
+
/* 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,
|
|
6551
6541
|
*/
|
|
6552
6542
|
|
|
6553
6543
|
|
|
6554
6544
|
/**
|
|
6555
|
-
*
|
|
6545
|
+
* 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.
|
|
6546
|
+
* @customElement auro-counter-group
|
|
6556
6547
|
*
|
|
6557
|
-
* This web component provides a flexible interface for grouping multiple counters, supporting
|
|
6558
|
-
* validation, custom validity messages, and disabled states based on the group's value.
|
|
6559
|
-
*
|
|
6560
|
-
* @element auro-counter-group
|
|
6561
|
-
* @extends LitElement
|
|
6562
6548
|
* @slot default - Slot for counter elements.
|
|
6563
6549
|
* @slot ariaLabel.bib.close - Sets aria-label on close button in fullscreen bib
|
|
6564
6550
|
* @slot bib.fullscreen.headline - Defines the headline to display above menu-options. Only used when `isDropdown` is true. Required.
|
|
@@ -6566,7 +6552,6 @@ class AuroElement extends i$2 {
|
|
|
6566
6552
|
* @slot label - Dropdown label content. Only used when `isDropdown` is true.
|
|
6567
6553
|
* @slot valueText - Dropdown value text display. Only used when `isDropdown` is true.
|
|
6568
6554
|
* @slot helpText - Dropdown help text content. Only used when `isDropdown` is true.
|
|
6569
|
-
* @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'.
|
|
6570
6555
|
*/
|
|
6571
6556
|
class AuroCounterGroup extends AuroElement {
|
|
6572
6557
|
constructor() {
|
|
@@ -6664,7 +6649,7 @@ class AuroCounterGroup extends AuroElement {
|
|
|
6664
6649
|
|
|
6665
6650
|
/**
|
|
6666
6651
|
* Defines whether the component will be on lighter or darker backgrounds.
|
|
6667
|
-
* @
|
|
6652
|
+
* @type {'default' | 'inverse'}
|
|
6668
6653
|
* @default 'default'
|
|
6669
6654
|
*/
|
|
6670
6655
|
appearance: {
|
|
@@ -6701,12 +6686,12 @@ class AuroCounterGroup extends AuroElement {
|
|
|
6701
6686
|
},
|
|
6702
6687
|
|
|
6703
6688
|
/**
|
|
6704
|
-
* Defines the screen size breakpoint
|
|
6705
|
-
* at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
|
|
6689
|
+
* Defines the screen size breakpoint at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
|
|
6706
6690
|
*
|
|
6707
6691
|
* When expanded, the dropdown will automatically display in fullscreen mode
|
|
6708
6692
|
* if the screen size is equal to or smaller than the selected breakpoint.
|
|
6709
|
-
* @
|
|
6693
|
+
* @type {'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'disabled'}
|
|
6694
|
+
* @default 'sm'
|
|
6710
6695
|
*/
|
|
6711
6696
|
fullscreenBreakpoint: {
|
|
6712
6697
|
type: String,
|
|
@@ -6714,12 +6699,22 @@ class AuroCounterGroup extends AuroElement {
|
|
|
6714
6699
|
},
|
|
6715
6700
|
|
|
6716
6701
|
/**
|
|
6717
|
-
*
|
|
6702
|
+
* If true, the counter group is displayed as a dropdown.
|
|
6718
6703
|
*/
|
|
6719
6704
|
isDropdown: {
|
|
6720
6705
|
type: Boolean
|
|
6721
6706
|
},
|
|
6722
6707
|
|
|
6708
|
+
/**
|
|
6709
|
+
* Determines the layout style of the counter group when it is a dropdown.
|
|
6710
|
+
* @type {'classic' | 'snowflake'}
|
|
6711
|
+
* @default 'classic'
|
|
6712
|
+
*/
|
|
6713
|
+
layout: {
|
|
6714
|
+
type: String,
|
|
6715
|
+
reflect: true
|
|
6716
|
+
},
|
|
6717
|
+
|
|
6723
6718
|
/**
|
|
6724
6719
|
* If declared, the dropdown will expand to the width of its parent container.
|
|
6725
6720
|
* Otherwise, the dropdown width will be determined by its content.
|
|
@@ -6757,7 +6752,6 @@ class AuroCounterGroup extends AuroElement {
|
|
|
6757
6752
|
/**
|
|
6758
6753
|
* If declared, the bib will NOT flip to an alternate position
|
|
6759
6754
|
* when there isn't enough space in the specified `placement`.
|
|
6760
|
-
* @default false
|
|
6761
6755
|
*/
|
|
6762
6756
|
noFlip: {
|
|
6763
6757
|
type: Boolean,
|
|
@@ -6766,7 +6760,6 @@ class AuroCounterGroup extends AuroElement {
|
|
|
6766
6760
|
|
|
6767
6761
|
/**
|
|
6768
6762
|
* If declared, the dropdown will shift its position to avoid being cut off by the viewport.
|
|
6769
|
-
* @default false
|
|
6770
6763
|
*/
|
|
6771
6764
|
shift: {
|
|
6772
6765
|
type: Boolean,
|
|
@@ -6792,12 +6785,8 @@ class AuroCounterGroup extends AuroElement {
|
|
|
6792
6785
|
|
|
6793
6786
|
/**
|
|
6794
6787
|
* Position where the bib should appear relative to the trigger.
|
|
6795
|
-
*
|
|
6796
|
-
*
|
|
6797
|
-
* "bottom-start" | "top-start" | "top-end" |
|
|
6798
|
-
* "right-start" | "right-end" | "bottom-end" |
|
|
6799
|
-
* "left-start" | "left-end".
|
|
6800
|
-
* @default bottom-start
|
|
6788
|
+
* @type {'top' | 'right' | 'bottom' | 'left' | 'bottom-start' | 'top-start' | 'top-end' | 'right-start' | 'right-end' | 'bottom-end' | 'left-start' | 'left-end'}
|
|
6789
|
+
* @default 'bottom-start'
|
|
6801
6790
|
*/
|
|
6802
6791
|
placement: {
|
|
6803
6792
|
type: String,
|
|
@@ -6808,7 +6797,7 @@ class AuroCounterGroup extends AuroElement {
|
|
|
6808
6797
|
* The total value of the counters.
|
|
6809
6798
|
*/
|
|
6810
6799
|
total: {
|
|
6811
|
-
type: Number
|
|
6800
|
+
type: Number
|
|
6812
6801
|
},
|
|
6813
6802
|
|
|
6814
6803
|
/**
|
|
@@ -7140,7 +7129,7 @@ class AuroCounterGroup extends AuroElement {
|
|
|
7140
7129
|
|
|
7141
7130
|
/**
|
|
7142
7131
|
* Registers the custom element with the browser.
|
|
7143
|
-
* @param {string} [name="auro-counter-group"] -
|
|
7132
|
+
* @param {string} [name="auro-counter-group"] - The name of the element that you want to register.
|
|
7144
7133
|
* @example
|
|
7145
7134
|
* AuroCounterGroup.register("custom-counter-group") // registers <custom-counter-group/>
|
|
7146
7135
|
*/
|
|
@@ -48,10 +48,9 @@
|
|
|
48
48
|
Prism.highlightAll();
|
|
49
49
|
})
|
|
50
50
|
</script>
|
|
51
|
-
<script type="module">
|
|
52
|
-
import { initExamples } from "./index.min.js";
|
|
51
|
+
<script src="./index.min.js" data-demo-script="true" type="module"></script>
|
|
53
52
|
|
|
54
|
-
|
|
55
|
-
|
|
53
|
+
<!-- If additional elements are needed for the demo, add them here. -->
|
|
54
|
+
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-accordion@latest/+esm" type="module"></script>
|
|
56
55
|
</body>
|
|
57
56
|
</html>
|