@aurodesignsystem/auro-formkit 2.1.0-beta.5 → 2.1.0-beta.6
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 +11 -0
- package/components/bibtemplate/dist/index.js +2 -2
- package/components/bibtemplate/dist/registered.js +2 -2
- package/components/checkbox/README.md +1 -1
- package/components/checkbox/demo/readme.md +1 -1
- package/components/combobox/README.md +1 -1
- package/components/combobox/demo/api.md +122 -19
- package/components/combobox/demo/api.min.js +110 -16
- package/components/combobox/demo/index.min.js +110 -16
- package/components/combobox/demo/readme.md +1 -1
- package/components/combobox/dist/auro-combobox.d.ts +42 -0
- package/components/combobox/dist/index.js +110 -16
- package/components/combobox/dist/registered.js +110 -16
- package/components/counter/README.md +1 -1
- package/components/counter/demo/api.md +113 -10
- package/components/counter/demo/api.min.js +126 -37
- package/components/counter/demo/index.min.js +126 -37
- package/components/counter/demo/readme.md +1 -1
- package/components/counter/dist/auro-counter-group.d.ts +55 -17
- package/components/counter/dist/index.js +126 -37
- package/components/counter/dist/registered.js +126 -37
- package/components/datepicker/README.md +1 -1
- package/components/datepicker/demo/api.md +61 -0
- package/components/datepicker/demo/api.min.js +112 -17
- package/components/datepicker/demo/index.min.js +112 -17
- package/components/datepicker/demo/readme.md +1 -1
- package/components/datepicker/dist/auro-datepicker.d.ts +42 -0
- package/components/datepicker/dist/index.js +112 -17
- package/components/datepicker/dist/registered.js +112 -17
- package/components/dropdown/README.md +1 -1
- package/components/dropdown/demo/api.md +166 -19
- package/components/dropdown/demo/api.min.js +56 -14
- package/components/dropdown/demo/index.min.js +56 -14
- package/components/dropdown/demo/readme.md +1 -1
- package/components/dropdown/dist/auro-dropdown.d.ts +46 -6
- package/components/dropdown/dist/index.js +56 -14
- package/components/dropdown/dist/registered.js +56 -14
- package/components/form/README.md +1 -1
- package/components/form/demo/readme.md +1 -1
- package/components/input/README.md +1 -1
- package/components/input/demo/readme.md +1 -1
- package/components/menu/README.md +1 -1
- package/components/menu/demo/readme.md +1 -1
- package/components/radio/README.md +1 -1
- package/components/radio/demo/readme.md +1 -1
- package/components/select/README.md +1 -1
- package/components/select/demo/api.md +120 -17
- package/components/select/demo/api.min.js +110 -16
- package/components/select/demo/index.min.js +110 -16
- package/components/select/demo/readme.md +1 -1
- package/components/select/dist/auro-select.d.ts +42 -0
- package/components/select/dist/index.js +110 -16
- package/components/select/dist/registered.js +110 -16
- package/package.json +1 -1
|
@@ -3341,12 +3341,17 @@ class AuroDropdown extends LitElement {
|
|
|
3341
3341
|
this.disabled = false;
|
|
3342
3342
|
this.error = false;
|
|
3343
3343
|
this.inset = false;
|
|
3344
|
-
this.placement = 'bottom-start';
|
|
3345
3344
|
this.rounded = false;
|
|
3346
3345
|
this.tabIndex = 0;
|
|
3347
3346
|
this.noToggle = false;
|
|
3348
3347
|
this.labeled = true;
|
|
3349
3348
|
|
|
3349
|
+
// floaterConfig
|
|
3350
|
+
this.placement = 'bottom-start';
|
|
3351
|
+
this.offset = 0;
|
|
3352
|
+
this.noFlip = false;
|
|
3353
|
+
this.autoPlacement = false;
|
|
3354
|
+
|
|
3350
3355
|
/**
|
|
3351
3356
|
* @private
|
|
3352
3357
|
*/
|
|
@@ -3367,16 +3372,6 @@ class AuroDropdown extends LitElement {
|
|
|
3367
3372
|
*/
|
|
3368
3373
|
this.floater = new AuroFloatingUI();
|
|
3369
3374
|
|
|
3370
|
-
/**
|
|
3371
|
-
* @private
|
|
3372
|
-
*/
|
|
3373
|
-
this.floaterConfig = {
|
|
3374
|
-
placement: 'bottom-start',
|
|
3375
|
-
flip: true,
|
|
3376
|
-
autoPlacement: false,
|
|
3377
|
-
offset: 0,
|
|
3378
|
-
};
|
|
3379
|
-
|
|
3380
3375
|
/**
|
|
3381
3376
|
* Generate unique names for dependency components.
|
|
3382
3377
|
*/
|
|
@@ -3398,6 +3393,18 @@ class AuroDropdown extends LitElement {
|
|
|
3398
3393
|
this.helpTextTag = versioning.generateTag('auro-formkit-dropdown-helptext', helpTextVersion$1, AuroHelpText$1);
|
|
3399
3394
|
}
|
|
3400
3395
|
|
|
3396
|
+
/**
|
|
3397
|
+
* @ignore
|
|
3398
|
+
*/
|
|
3399
|
+
get floaterConfig() {
|
|
3400
|
+
return {
|
|
3401
|
+
placement: this.placement,
|
|
3402
|
+
flip: !this.noFlip,
|
|
3403
|
+
autoPlacement: this.autoPlacement,
|
|
3404
|
+
offset: this.offset,
|
|
3405
|
+
};
|
|
3406
|
+
}
|
|
3407
|
+
|
|
3401
3408
|
/**
|
|
3402
3409
|
* Public method to hide the dropdown.
|
|
3403
3410
|
* @returns {void}
|
|
@@ -3418,6 +3425,15 @@ class AuroDropdown extends LitElement {
|
|
|
3418
3425
|
static get properties() {
|
|
3419
3426
|
return {
|
|
3420
3427
|
|
|
3428
|
+
/**
|
|
3429
|
+
* If declared, bib's position will be automatically calculated where to appear.
|
|
3430
|
+
* @default false
|
|
3431
|
+
*/
|
|
3432
|
+
autoPlacement: {
|
|
3433
|
+
type: Boolean,
|
|
3434
|
+
reflect: true
|
|
3435
|
+
},
|
|
3436
|
+
|
|
3421
3437
|
/**
|
|
3422
3438
|
* If declared, applies a border around the trigger slot.
|
|
3423
3439
|
*/
|
|
@@ -3502,7 +3518,7 @@ class AuroDropdown extends LitElement {
|
|
|
3502
3518
|
*/
|
|
3503
3519
|
isBibFullscreen: {
|
|
3504
3520
|
type: Boolean,
|
|
3505
|
-
reflect: true
|
|
3521
|
+
reflect: true
|
|
3506
3522
|
},
|
|
3507
3523
|
|
|
3508
3524
|
/**
|
|
@@ -3545,6 +3561,16 @@ class AuroDropdown extends LitElement {
|
|
|
3545
3561
|
reflect: true
|
|
3546
3562
|
},
|
|
3547
3563
|
|
|
3564
|
+
/**
|
|
3565
|
+
* If declared, the bib will NOT flip to an alternate position
|
|
3566
|
+
* when there isn't enough space in the specified `placement`.
|
|
3567
|
+
* @default false
|
|
3568
|
+
*/
|
|
3569
|
+
noFlip: {
|
|
3570
|
+
type: Boolean,
|
|
3571
|
+
reflect: true
|
|
3572
|
+
},
|
|
3573
|
+
|
|
3548
3574
|
/**
|
|
3549
3575
|
* If declared, the dropdown will not hide when moving focus outside the element.
|
|
3550
3576
|
*/
|
|
@@ -3561,16 +3587,32 @@ class AuroDropdown extends LitElement {
|
|
|
3561
3587
|
reflect: true
|
|
3562
3588
|
},
|
|
3563
3589
|
|
|
3590
|
+
/**
|
|
3591
|
+
* Gap between the trigger element and bib.
|
|
3592
|
+
* @default 0
|
|
3593
|
+
*/
|
|
3594
|
+
offset: {
|
|
3595
|
+
type: Number,
|
|
3596
|
+
reflect: true
|
|
3597
|
+
},
|
|
3598
|
+
|
|
3564
3599
|
onSlotChange: {
|
|
3565
3600
|
type: Function,
|
|
3566
3601
|
reflect: false
|
|
3567
3602
|
},
|
|
3568
3603
|
|
|
3569
3604
|
/**
|
|
3570
|
-
*
|
|
3605
|
+
* Position where the bib should appear relative to the trigger.
|
|
3606
|
+
* Accepted values:
|
|
3607
|
+
* "top" | "right" | "bottom" | "left" |
|
|
3608
|
+
* "bottom-start" | "top-start" | "top-end" |
|
|
3609
|
+
* "right-start" | "right-end" | "bottom-end" |
|
|
3610
|
+
* "left-start" | "left-end"
|
|
3611
|
+
* @default bottom-start
|
|
3571
3612
|
*/
|
|
3572
3613
|
placement: {
|
|
3573
|
-
type: String
|
|
3614
|
+
type: String,
|
|
3615
|
+
reflect: true
|
|
3574
3616
|
},
|
|
3575
3617
|
|
|
3576
3618
|
/**
|
|
@@ -11572,11 +11614,11 @@ class AuroBibtemplate extends LitElement {
|
|
|
11572
11614
|
return {
|
|
11573
11615
|
isFullscreen: {
|
|
11574
11616
|
type: Boolean,
|
|
11575
|
-
reflect: true
|
|
11617
|
+
reflect: true
|
|
11576
11618
|
},
|
|
11577
11619
|
large: {
|
|
11578
11620
|
type: Boolean,
|
|
11579
|
-
reflect: true
|
|
11621
|
+
reflect: true
|
|
11580
11622
|
}
|
|
11581
11623
|
};
|
|
11582
11624
|
}
|
|
@@ -11825,6 +11867,12 @@ class AuroCombobox extends LitElement {
|
|
|
11825
11867
|
|
|
11826
11868
|
this.isHiddenWhileLoading = false;
|
|
11827
11869
|
|
|
11870
|
+
// floaterConfig
|
|
11871
|
+
this.placement = 'bottom-start';
|
|
11872
|
+
this.offset = 0;
|
|
11873
|
+
this.noFlip = false;
|
|
11874
|
+
this.autoPlacement = false;
|
|
11875
|
+
|
|
11828
11876
|
const versioning = new AuroDependencyVersioning$4();
|
|
11829
11877
|
|
|
11830
11878
|
this.dropdownTag = versioning.generateTag('auro-formkit-checkbox-dropdown', dropdownVersion, AuroDropdown);
|
|
@@ -11841,12 +11889,21 @@ class AuroCombobox extends LitElement {
|
|
|
11841
11889
|
|
|
11842
11890
|
/**
|
|
11843
11891
|
* An enumerated attribute that defines what the user agent can suggest for autofill. At this time, only `autocomplete="off"` is supported.
|
|
11892
|
+
* @default false
|
|
11844
11893
|
*/
|
|
11845
11894
|
autocomplete: {
|
|
11846
11895
|
type: String,
|
|
11847
11896
|
reflect: true
|
|
11848
11897
|
},
|
|
11849
11898
|
|
|
11899
|
+
/**
|
|
11900
|
+
* If declared, bib's position will be automatically calculated where to appear.
|
|
11901
|
+
*/
|
|
11902
|
+
autoPlacement: {
|
|
11903
|
+
type: Boolean,
|
|
11904
|
+
reflect: true
|
|
11905
|
+
},
|
|
11906
|
+
|
|
11850
11907
|
/**
|
|
11851
11908
|
* When attribute is present auro-menu will apply checkmarks to selected options.
|
|
11852
11909
|
*/
|
|
@@ -11879,6 +11936,16 @@ class AuroCombobox extends LitElement {
|
|
|
11879
11936
|
reflect: true
|
|
11880
11937
|
},
|
|
11881
11938
|
|
|
11939
|
+
/**
|
|
11940
|
+
* If declared, the bib will NOT flip to an alternate position
|
|
11941
|
+
* when there isn't enough space in the specified `placement`.
|
|
11942
|
+
* @default false
|
|
11943
|
+
*/
|
|
11944
|
+
noFlip: {
|
|
11945
|
+
type: Boolean,
|
|
11946
|
+
reflect: true
|
|
11947
|
+
},
|
|
11948
|
+
|
|
11882
11949
|
/**
|
|
11883
11950
|
* If set, disables auto-validation on blur.
|
|
11884
11951
|
*/
|
|
@@ -11886,6 +11953,15 @@ class AuroCombobox extends LitElement {
|
|
|
11886
11953
|
type: Boolean
|
|
11887
11954
|
},
|
|
11888
11955
|
|
|
11956
|
+
/**
|
|
11957
|
+
* Gap between the trigger element and bib.
|
|
11958
|
+
* @default 0
|
|
11959
|
+
*/
|
|
11960
|
+
offset: {
|
|
11961
|
+
type: Number,
|
|
11962
|
+
reflect: true
|
|
11963
|
+
},
|
|
11964
|
+
|
|
11889
11965
|
/**
|
|
11890
11966
|
* Specifies the current selected option.
|
|
11891
11967
|
*/
|
|
@@ -11895,6 +11971,20 @@ class AuroCombobox extends LitElement {
|
|
|
11895
11971
|
hasChanged: arrayOrUndefinedHasChanged
|
|
11896
11972
|
},
|
|
11897
11973
|
|
|
11974
|
+
/**
|
|
11975
|
+
* Position where the bib should appear relative to the trigger.
|
|
11976
|
+
* Accepted values:
|
|
11977
|
+
* "top" | "right" | "bottom" | "left" |
|
|
11978
|
+
* "bottom-start" | "top-start" | "top-end" |
|
|
11979
|
+
* "right-start" | "right-end" | "bottom-end" |
|
|
11980
|
+
* "left-start" | "left-end"
|
|
11981
|
+
* @default bottom-start
|
|
11982
|
+
*/
|
|
11983
|
+
placement: {
|
|
11984
|
+
type: String,
|
|
11985
|
+
reflect: true
|
|
11986
|
+
},
|
|
11987
|
+
|
|
11898
11988
|
/**
|
|
11899
11989
|
* Populates the `required` attribute on the input. Used for client-side validation.
|
|
11900
11990
|
*/
|
|
@@ -12662,6 +12752,10 @@ class AuroCombobox extends LitElement {
|
|
|
12662
12752
|
.fullscreenBreakpoint="${this.fullscreenBreakpoint}"
|
|
12663
12753
|
?disabled="${this.disabled}"
|
|
12664
12754
|
?error="${this.validity !== undefined && this.validity !== 'valid'}"
|
|
12755
|
+
.placement="${this.placement}"
|
|
12756
|
+
.offset="${this.offset}"
|
|
12757
|
+
?autoPlacement="${this.autoPlacement}"
|
|
12758
|
+
?noFlip="${this.noFlip}"
|
|
12665
12759
|
disableEventShow>
|
|
12666
12760
|
<${this.inputTag}
|
|
12667
12761
|
slot="trigger"
|
|
@@ -110,7 +110,7 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
|
|
|
110
110
|
In cases where the project is not able to process JS assets, there are pre-processed assets available for use. Legacy browsers such as IE11 are no longer supported.
|
|
111
111
|
|
|
112
112
|
```html
|
|
113
|
-
<script type="module "src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@2.1.0-beta.
|
|
113
|
+
<script type="module "src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@2.1.0-beta.5/auro-counter/+esm"></script>
|
|
114
114
|
```
|
|
115
115
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
116
116
|
|
|
@@ -38,16 +38,20 @@
|
|
|
38
38
|
|
|
39
39
|
## Properties
|
|
40
40
|
|
|
41
|
-
| Property | Attribute | Type | Default
|
|
42
|
-
|
|
43
|
-
| [
|
|
44
|
-
| [
|
|
45
|
-
| [
|
|
46
|
-
| [
|
|
47
|
-
| [
|
|
48
|
-
| [
|
|
49
|
-
| [
|
|
50
|
-
| [
|
|
41
|
+
| Property | Attribute | Type | Default | Description |
|
|
42
|
+
|---------------------------|---------------------------|-----------|----------------|--------------------------------------------------|
|
|
43
|
+
| [autoPlacement](#autoPlacement) | `autoPlacement` | `boolean` | "false" | If declared, bib's position will be automatically calculated where to appear. |
|
|
44
|
+
| [fullscreenBreakpoint](#fullscreenBreakpoint) | `fullscreenBreakpoint` | `string` | "sm" | Defines the screen size breakpoint (`lg`, `md`, `sm`, or `xs`) at which the dropdown switches to fullscreen mode on mobile.<br />When expanded, the dropdown will automatically display in fullscreen mode if the screen size is equal to or smaller than the selected breakpoint. |
|
|
45
|
+
| [isDropdown](#isDropdown) | `isDropdown` | `boolean` | false | Indicates if the counter group is displayed as a dropdown. |
|
|
46
|
+
| [largeFullscreenHeadline](#largeFullscreenHeadline) | `largeFullscreenHeadline` | `boolean` | | If declared, make bib.fullscreen.headline in HeadingDisplay.<br />Otherwise, Heading 600 |
|
|
47
|
+
| [max](#max) | `max` | `number` | "undefined" | The maximum value allowed for the whole group of counters. |
|
|
48
|
+
| [min](#min) | `min` | `number` | "undefined" | The minimum value allowed for the whole group of counters. |
|
|
49
|
+
| [noFlip](#noFlip) | `noFlip` | `boolean` | "false" | If declared, the bib will NOT flip to an alternate position<br />when there isn't enough space in the specified `placement`. |
|
|
50
|
+
| [offset](#offset) | `offset` | `number` | "0" | Gap between the trigger element and bib. |
|
|
51
|
+
| [placement](#placement) | `placement` | `string` | "bottom-start" | Position where the bib should appear relative to the trigger.<br />Accepted values:<br />"top" \| "right" \| "bottom" \| "left" \|<br />"bottom-start" \| "top-start" \| "top-end" \|<br />"right-start" \| "right-end" \| "bottom-end" \|<br />"left-start" \| "left-end" |
|
|
52
|
+
| [total](#total) | `total` | `number` | "undefined" | The total value of the counters. |
|
|
53
|
+
| [validity](#validity) | `validity` | `string` | "undefined" | Reflects the validity state. |
|
|
54
|
+
| [value](#value) | `value` | `object` | "undefined" | The current individual values of the nested counters. |
|
|
51
55
|
|
|
52
56
|
## Methods
|
|
53
57
|
|
|
@@ -389,6 +393,105 @@ You can also individually set the max or min value for each counter in a group.
|
|
|
389
393
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
390
394
|
</auro-accordion>
|
|
391
395
|
|
|
396
|
+
### Customized bib position
|
|
397
|
+
The bib position can be customized with `placement`, `offset`, `flip`, `autoPlacement` attributes.
|
|
398
|
+
|
|
399
|
+
- `placement` specifies the preferred position where the bib should appear relative to the trigger.
|
|
400
|
+
- `offset` sets the distance between the trigger and the bib.
|
|
401
|
+
- When `autoPlacement` is enabled, smart positioning logic is applied to determine the best placement for the bib. If all sides have sufficient space, the bib will appear in the position specified by `placement`.
|
|
402
|
+
- Unless `noFlip` is enabled, if there isn't enough space for the preferred `placement`, the bib will automatically flip to an alternative position.
|
|
403
|
+
|
|
404
|
+
<div class="exampleWrapper">
|
|
405
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/floaterConfig.html) -->
|
|
406
|
+
<!-- The below content is automatically added from ./../apiExamples/floaterConfig.html -->
|
|
407
|
+
<div style="width: 350px">
|
|
408
|
+
<auro-counter-group isDropdown offset="20" placement="bottom-end">
|
|
409
|
+
<div slot="bib.fullscreen.headline">Passengers</div>
|
|
410
|
+
<div slot="label">bottome-end bib with 20px offset</div>
|
|
411
|
+
<auro-counter>
|
|
412
|
+
Adults
|
|
413
|
+
<span slot="description">18 years or older</span>
|
|
414
|
+
</auro-counter>
|
|
415
|
+
<auro-counter>
|
|
416
|
+
Children
|
|
417
|
+
<span slot="description">2-17 years</span>
|
|
418
|
+
</auro-counter>
|
|
419
|
+
</auro-counter-group>
|
|
420
|
+
<auro-counter-group isDropdown offset="20" placement="bottom-end" noFlip>
|
|
421
|
+
<div slot="bib.fullscreen.headline">Passengers</div>
|
|
422
|
+
<div slot="label">bottome-end bib with 20px offset and noFlip</div>
|
|
423
|
+
<auro-counter>
|
|
424
|
+
Adults
|
|
425
|
+
<span slot="description">18 years or older</span>
|
|
426
|
+
</auro-counter>
|
|
427
|
+
<auro-counter>
|
|
428
|
+
Children
|
|
429
|
+
<span slot="description">2-17 years</span>
|
|
430
|
+
</auro-counter>
|
|
431
|
+
</auro-counter-group>
|
|
432
|
+
<auro-counter-group isDropdown offset="20" placement="right" noFlip autoPlacement>
|
|
433
|
+
<div slot="bib.fullscreen.headline">Passengers</div>
|
|
434
|
+
<div slot="label">right bib with 20px offset, noFlip and autoPlacement</div>
|
|
435
|
+
<auro-counter>
|
|
436
|
+
Adults
|
|
437
|
+
<span slot="description">18 years or older</span>
|
|
438
|
+
</auro-counter>
|
|
439
|
+
<auro-counter>
|
|
440
|
+
Children
|
|
441
|
+
<span slot="description">2-17 years</span>
|
|
442
|
+
</auro-counter>
|
|
443
|
+
</auro-counter-group>
|
|
444
|
+
</div>
|
|
445
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
446
|
+
</div>
|
|
447
|
+
<auro-accordion alignRight>
|
|
448
|
+
<span slot="trigger">See code</span>
|
|
449
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/floaterConfig.html) -->
|
|
450
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/floaterConfig.html -->
|
|
451
|
+
|
|
452
|
+
```html
|
|
453
|
+
<div style="width: 350px">
|
|
454
|
+
<auro-counter-group isDropdown offset="20" placement="bottom-end">
|
|
455
|
+
<div slot="bib.fullscreen.headline">Passengers</div>
|
|
456
|
+
<div slot="label">bottome-end bib with 20px offset</div>
|
|
457
|
+
<auro-counter>
|
|
458
|
+
Adults
|
|
459
|
+
<span slot="description">18 years or older</span>
|
|
460
|
+
</auro-counter>
|
|
461
|
+
<auro-counter>
|
|
462
|
+
Children
|
|
463
|
+
<span slot="description">2-17 years</span>
|
|
464
|
+
</auro-counter>
|
|
465
|
+
</auro-counter-group>
|
|
466
|
+
<auro-counter-group isDropdown offset="20" placement="bottom-end" noFlip>
|
|
467
|
+
<div slot="bib.fullscreen.headline">Passengers</div>
|
|
468
|
+
<div slot="label">bottome-end bib with 20px offset and noFlip</div>
|
|
469
|
+
<auro-counter>
|
|
470
|
+
Adults
|
|
471
|
+
<span slot="description">18 years or older</span>
|
|
472
|
+
</auro-counter>
|
|
473
|
+
<auro-counter>
|
|
474
|
+
Children
|
|
475
|
+
<span slot="description">2-17 years</span>
|
|
476
|
+
</auro-counter>
|
|
477
|
+
</auro-counter-group>
|
|
478
|
+
<auro-counter-group isDropdown offset="20" placement="right" noFlip autoPlacement>
|
|
479
|
+
<div slot="bib.fullscreen.headline">Passengers</div>
|
|
480
|
+
<div slot="label">right bib with 20px offset, noFlip and autoPlacement</div>
|
|
481
|
+
<auro-counter>
|
|
482
|
+
Adults
|
|
483
|
+
<span slot="description">18 years or older</span>
|
|
484
|
+
</auro-counter>
|
|
485
|
+
<auro-counter>
|
|
486
|
+
Children
|
|
487
|
+
<span slot="description">2-17 years</span>
|
|
488
|
+
</auro-counter>
|
|
489
|
+
</auro-counter-group>
|
|
490
|
+
</div>
|
|
491
|
+
```
|
|
492
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
493
|
+
</auro-accordion>
|
|
494
|
+
|
|
392
495
|
### Dropdown with fullscreen bib
|
|
393
496
|
|
|
394
497
|
You can make the dropdown open in fullscreen at a specific breakpoint by setting `fullscreenBreakpoint`.
|
|
@@ -4867,12 +4867,17 @@ class AuroDropdown extends r {
|
|
|
4867
4867
|
this.disabled = false;
|
|
4868
4868
|
this.error = false;
|
|
4869
4869
|
this.inset = false;
|
|
4870
|
-
this.placement = 'bottom-start';
|
|
4871
4870
|
this.rounded = false;
|
|
4872
4871
|
this.tabIndex = 0;
|
|
4873
4872
|
this.noToggle = false;
|
|
4874
4873
|
this.labeled = true;
|
|
4875
4874
|
|
|
4875
|
+
// floaterConfig
|
|
4876
|
+
this.placement = 'bottom-start';
|
|
4877
|
+
this.offset = 0;
|
|
4878
|
+
this.noFlip = false;
|
|
4879
|
+
this.autoPlacement = false;
|
|
4880
|
+
|
|
4876
4881
|
/**
|
|
4877
4882
|
* @private
|
|
4878
4883
|
*/
|
|
@@ -4893,16 +4898,6 @@ class AuroDropdown extends r {
|
|
|
4893
4898
|
*/
|
|
4894
4899
|
this.floater = new AuroFloatingUI();
|
|
4895
4900
|
|
|
4896
|
-
/**
|
|
4897
|
-
* @private
|
|
4898
|
-
*/
|
|
4899
|
-
this.floaterConfig = {
|
|
4900
|
-
placement: 'bottom-start',
|
|
4901
|
-
flip: true,
|
|
4902
|
-
autoPlacement: false,
|
|
4903
|
-
offset: 0,
|
|
4904
|
-
};
|
|
4905
|
-
|
|
4906
4901
|
/**
|
|
4907
4902
|
* Generate unique names for dependency components.
|
|
4908
4903
|
*/
|
|
@@ -4924,6 +4919,18 @@ class AuroDropdown extends r {
|
|
|
4924
4919
|
this.helpTextTag = versioning.generateTag('auro-formkit-dropdown-helptext', helpTextVersion, AuroHelpText);
|
|
4925
4920
|
}
|
|
4926
4921
|
|
|
4922
|
+
/**
|
|
4923
|
+
* @ignore
|
|
4924
|
+
*/
|
|
4925
|
+
get floaterConfig() {
|
|
4926
|
+
return {
|
|
4927
|
+
placement: this.placement,
|
|
4928
|
+
flip: !this.noFlip,
|
|
4929
|
+
autoPlacement: this.autoPlacement,
|
|
4930
|
+
offset: this.offset,
|
|
4931
|
+
};
|
|
4932
|
+
}
|
|
4933
|
+
|
|
4927
4934
|
/**
|
|
4928
4935
|
* Public method to hide the dropdown.
|
|
4929
4936
|
* @returns {void}
|
|
@@ -4944,6 +4951,15 @@ class AuroDropdown extends r {
|
|
|
4944
4951
|
static get properties() {
|
|
4945
4952
|
return {
|
|
4946
4953
|
|
|
4954
|
+
/**
|
|
4955
|
+
* If declared, bib's position will be automatically calculated where to appear.
|
|
4956
|
+
* @default false
|
|
4957
|
+
*/
|
|
4958
|
+
autoPlacement: {
|
|
4959
|
+
type: Boolean,
|
|
4960
|
+
reflect: true
|
|
4961
|
+
},
|
|
4962
|
+
|
|
4947
4963
|
/**
|
|
4948
4964
|
* If declared, applies a border around the trigger slot.
|
|
4949
4965
|
*/
|
|
@@ -5028,7 +5044,7 @@ class AuroDropdown extends r {
|
|
|
5028
5044
|
*/
|
|
5029
5045
|
isBibFullscreen: {
|
|
5030
5046
|
type: Boolean,
|
|
5031
|
-
reflect: true
|
|
5047
|
+
reflect: true
|
|
5032
5048
|
},
|
|
5033
5049
|
|
|
5034
5050
|
/**
|
|
@@ -5071,6 +5087,16 @@ class AuroDropdown extends r {
|
|
|
5071
5087
|
reflect: true
|
|
5072
5088
|
},
|
|
5073
5089
|
|
|
5090
|
+
/**
|
|
5091
|
+
* If declared, the bib will NOT flip to an alternate position
|
|
5092
|
+
* when there isn't enough space in the specified `placement`.
|
|
5093
|
+
* @default false
|
|
5094
|
+
*/
|
|
5095
|
+
noFlip: {
|
|
5096
|
+
type: Boolean,
|
|
5097
|
+
reflect: true
|
|
5098
|
+
},
|
|
5099
|
+
|
|
5074
5100
|
/**
|
|
5075
5101
|
* If declared, the dropdown will not hide when moving focus outside the element.
|
|
5076
5102
|
*/
|
|
@@ -5087,16 +5113,32 @@ class AuroDropdown extends r {
|
|
|
5087
5113
|
reflect: true
|
|
5088
5114
|
},
|
|
5089
5115
|
|
|
5116
|
+
/**
|
|
5117
|
+
* Gap between the trigger element and bib.
|
|
5118
|
+
* @default 0
|
|
5119
|
+
*/
|
|
5120
|
+
offset: {
|
|
5121
|
+
type: Number,
|
|
5122
|
+
reflect: true
|
|
5123
|
+
},
|
|
5124
|
+
|
|
5090
5125
|
onSlotChange: {
|
|
5091
5126
|
type: Function,
|
|
5092
5127
|
reflect: false
|
|
5093
5128
|
},
|
|
5094
5129
|
|
|
5095
5130
|
/**
|
|
5096
|
-
*
|
|
5131
|
+
* Position where the bib should appear relative to the trigger.
|
|
5132
|
+
* Accepted values:
|
|
5133
|
+
* "top" | "right" | "bottom" | "left" |
|
|
5134
|
+
* "bottom-start" | "top-start" | "top-end" |
|
|
5135
|
+
* "right-start" | "right-end" | "bottom-end" |
|
|
5136
|
+
* "left-start" | "left-end"
|
|
5137
|
+
* @default bottom-start
|
|
5097
5138
|
*/
|
|
5098
5139
|
placement: {
|
|
5099
|
-
type: String
|
|
5140
|
+
type: String,
|
|
5141
|
+
reflect: true
|
|
5100
5142
|
},
|
|
5101
5143
|
|
|
5102
5144
|
/**
|
|
@@ -6263,11 +6305,11 @@ class AuroBibtemplate extends r {
|
|
|
6263
6305
|
return {
|
|
6264
6306
|
isFullscreen: {
|
|
6265
6307
|
type: Boolean,
|
|
6266
|
-
reflect: true
|
|
6308
|
+
reflect: true
|
|
6267
6309
|
},
|
|
6268
6310
|
large: {
|
|
6269
6311
|
type: Boolean,
|
|
6270
|
-
reflect: true
|
|
6312
|
+
reflect: true
|
|
6271
6313
|
}
|
|
6272
6314
|
};
|
|
6273
6315
|
}
|
|
@@ -6481,6 +6523,25 @@ class AuroCounterGroup extends r {
|
|
|
6481
6523
|
static get properties() {
|
|
6482
6524
|
return {
|
|
6483
6525
|
|
|
6526
|
+
/**
|
|
6527
|
+
* If declared, bib's position will be automatically calculated where to appear.
|
|
6528
|
+
* @default false
|
|
6529
|
+
*/
|
|
6530
|
+
autoPlacement: {
|
|
6531
|
+
type: Boolean,
|
|
6532
|
+
reflect: true
|
|
6533
|
+
},
|
|
6534
|
+
|
|
6535
|
+
/**
|
|
6536
|
+
* Defines the screen size breakpoint (`lg`, `md`, `sm`, or `xs`) at which the dropdown switches to fullscreen mode on mobile.
|
|
6537
|
+
* When expanded, the dropdown will automatically display in fullscreen mode if the screen size is equal to or smaller than the selected breakpoint.
|
|
6538
|
+
* @default sm
|
|
6539
|
+
*/
|
|
6540
|
+
fullscreenBreakpoint: {
|
|
6541
|
+
type: String,
|
|
6542
|
+
reflect: true
|
|
6543
|
+
},
|
|
6544
|
+
|
|
6484
6545
|
/**
|
|
6485
6546
|
* Indicates if the counter group is displayed as a dropdown.
|
|
6486
6547
|
*/
|
|
@@ -6505,45 +6566,68 @@ class AuroCounterGroup extends r {
|
|
|
6505
6566
|
},
|
|
6506
6567
|
|
|
6507
6568
|
/**
|
|
6508
|
-
*
|
|
6569
|
+
* If declared, make bib.fullscreen.headline in HeadingDisplay.
|
|
6570
|
+
* Otherwise, Heading 600
|
|
6509
6571
|
*/
|
|
6510
|
-
|
|
6511
|
-
type:
|
|
6512
|
-
reflect: true
|
|
6572
|
+
largeFullscreenHeadline: {
|
|
6573
|
+
type: Boolean,
|
|
6574
|
+
reflect: true
|
|
6513
6575
|
},
|
|
6514
6576
|
|
|
6515
6577
|
/**
|
|
6516
|
-
*
|
|
6578
|
+
* If declared, the bib will NOT flip to an alternate position
|
|
6579
|
+
* when there isn't enough space in the specified `placement`.
|
|
6580
|
+
* @default false
|
|
6517
6581
|
*/
|
|
6518
|
-
|
|
6519
|
-
type:
|
|
6582
|
+
noFlip: {
|
|
6583
|
+
type: Boolean,
|
|
6584
|
+
reflect: true
|
|
6520
6585
|
},
|
|
6521
6586
|
|
|
6522
6587
|
/**
|
|
6523
|
-
*
|
|
6588
|
+
* Gap between the trigger element and bib.
|
|
6589
|
+
* @default 0
|
|
6524
6590
|
*/
|
|
6525
|
-
|
|
6526
|
-
type:
|
|
6591
|
+
offset: {
|
|
6592
|
+
type: Number,
|
|
6593
|
+
reflect: true
|
|
6527
6594
|
},
|
|
6528
6595
|
|
|
6529
6596
|
/**
|
|
6530
|
-
*
|
|
6531
|
-
*
|
|
6597
|
+
* Position where the bib should appear relative to the trigger.
|
|
6598
|
+
* Accepted values:
|
|
6599
|
+
* "top" | "right" | "bottom" | "left" |
|
|
6600
|
+
* "bottom-start" | "top-start" | "top-end" |
|
|
6601
|
+
* "right-start" | "right-end" | "bottom-end" |
|
|
6602
|
+
* "left-start" | "left-end"
|
|
6603
|
+
* @default bottom-start
|
|
6532
6604
|
*/
|
|
6533
|
-
|
|
6534
|
-
type:
|
|
6605
|
+
placement: {
|
|
6606
|
+
type: String,
|
|
6535
6607
|
reflect: true
|
|
6536
6608
|
},
|
|
6537
6609
|
|
|
6538
6610
|
/**
|
|
6539
|
-
*
|
|
6540
|
-
* When expanded, the dropdown will automatically display in fullscreen mode if the screen size is equal to or smaller than the selected breakpoint.
|
|
6541
|
-
* @default sm
|
|
6611
|
+
* The total value of the counters.
|
|
6542
6612
|
*/
|
|
6543
|
-
|
|
6613
|
+
total: {
|
|
6614
|
+
type: Number,
|
|
6615
|
+
},
|
|
6616
|
+
|
|
6617
|
+
/**
|
|
6618
|
+
* Reflects the validity state.
|
|
6619
|
+
*/
|
|
6620
|
+
validity: {
|
|
6544
6621
|
type: String,
|
|
6545
|
-
reflect: true
|
|
6546
|
-
}
|
|
6622
|
+
reflect: true,
|
|
6623
|
+
},
|
|
6624
|
+
|
|
6625
|
+
/**
|
|
6626
|
+
* The current individual values of the nested counters.
|
|
6627
|
+
*/
|
|
6628
|
+
value: {
|
|
6629
|
+
type: Object,
|
|
6630
|
+
},
|
|
6547
6631
|
};
|
|
6548
6632
|
}
|
|
6549
6633
|
|
|
@@ -6786,7 +6870,12 @@ class AuroCounterGroup extends r {
|
|
|
6786
6870
|
render() {
|
|
6787
6871
|
return u`
|
|
6788
6872
|
${this.isDropdown
|
|
6789
|
-
? u`<${this.dropdownTag} common chevron
|
|
6873
|
+
? u`<${this.dropdownTag} common chevron
|
|
6874
|
+
.fullscreenBreakpoint="${this.fullscreenBreakpoint}"
|
|
6875
|
+
.placement="${this.placement}"
|
|
6876
|
+
.offset="${this.offset}"
|
|
6877
|
+
?autoPlacement="${this.autoPlacement}"
|
|
6878
|
+
?noFlip="${this.noFlip}">
|
|
6790
6879
|
<div slot="trigger"><slot name="valueText">
|
|
6791
6880
|
${this.counters && Array.from(this.counters).map((counter, index) => `${counter.value} ${counter.defaultSlot}${index !== this.counters.length - 1 ? ', ' : ''}`)}
|
|
6792
6881
|
</slot></div>
|