@aurodesignsystem/auro-formkit 2.1.0-beta.4 → 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 +18 -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 +128 -39
- package/components/counter/demo/index.min.js +128 -39
- 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 +128 -39
- package/components/counter/dist/registered.js +128 -39
- 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
|
@@ -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
|
}
|
|
@@ -6354,7 +6396,7 @@ class AuroBibtemplate extends r {
|
|
|
6354
6396
|
|
|
6355
6397
|
var bibTemplateVersion = '1.0.0';
|
|
6356
6398
|
|
|
6357
|
-
var styleCss = i$5
|
|
6399
|
+
var styleCss = i$5`.wrapper{display:flex;flex-direction:column;gap:var(--ds-size-300, 1.5rem)}.wrapper ::slotted(*:not(:first-child)){padding-top:var(--ds-size-300, 1.5rem);border-top-width:1px;border-top-style:solid}:host([isindropdown]) .wrapper{padding:var(--ds-size-300, 1.5rem)}`;
|
|
6358
6400
|
|
|
6359
6401
|
var colorCss = i$5`:host ::slotted(*:not(:first-child)){border-color:var(--ds-color-border-divider-default, rgba(0, 0, 0, 0.12))}`;
|
|
6360
6402
|
|
|
@@ -6393,7 +6435,7 @@ class AuroCounterWrapper extends r {
|
|
|
6393
6435
|
|
|
6394
6436
|
// function that renders the HTML and CSS into the scope of the component
|
|
6395
6437
|
render() {
|
|
6396
|
-
return u`<slot></slot>`;
|
|
6438
|
+
return u`<div class="wrapper"><slot></slot></div>`;
|
|
6397
6439
|
}
|
|
6398
6440
|
}
|
|
6399
6441
|
|
|
@@ -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>
|
|
@@ -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
|
|
|
@@ -16,6 +16,23 @@
|
|
|
16
16
|
export class AuroCounterGroup extends LitElement {
|
|
17
17
|
static get styles(): import("lit").CSSResult[];
|
|
18
18
|
static get properties(): {
|
|
19
|
+
/**
|
|
20
|
+
* If declared, bib's position will be automatically calculated where to appear.
|
|
21
|
+
* @default false
|
|
22
|
+
*/
|
|
23
|
+
autoPlacement: {
|
|
24
|
+
type: BooleanConstructor;
|
|
25
|
+
reflect: boolean;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* Defines the screen size breakpoint (`lg`, `md`, `sm`, or `xs`) at which the dropdown switches to fullscreen mode on mobile.
|
|
29
|
+
* When expanded, the dropdown will automatically display in fullscreen mode if the screen size is equal to or smaller than the selected breakpoint.
|
|
30
|
+
* @default sm
|
|
31
|
+
*/
|
|
32
|
+
fullscreenBreakpoint: {
|
|
33
|
+
type: StringConstructor;
|
|
34
|
+
reflect: boolean;
|
|
35
|
+
};
|
|
19
36
|
/**
|
|
20
37
|
* Indicates if the counter group is displayed as a dropdown.
|
|
21
38
|
*/
|
|
@@ -37,41 +54,62 @@ export class AuroCounterGroup extends LitElement {
|
|
|
37
54
|
reflect: boolean;
|
|
38
55
|
};
|
|
39
56
|
/**
|
|
40
|
-
*
|
|
57
|
+
* If declared, make bib.fullscreen.headline in HeadingDisplay.
|
|
58
|
+
* Otherwise, Heading 600
|
|
41
59
|
*/
|
|
42
|
-
|
|
43
|
-
type:
|
|
60
|
+
largeFullscreenHeadline: {
|
|
61
|
+
type: BooleanConstructor;
|
|
44
62
|
reflect: boolean;
|
|
45
63
|
};
|
|
46
64
|
/**
|
|
47
|
-
*
|
|
65
|
+
* If declared, the bib will NOT flip to an alternate position
|
|
66
|
+
* when there isn't enough space in the specified `placement`.
|
|
67
|
+
* @default false
|
|
48
68
|
*/
|
|
49
|
-
|
|
50
|
-
type:
|
|
69
|
+
noFlip: {
|
|
70
|
+
type: BooleanConstructor;
|
|
71
|
+
reflect: boolean;
|
|
51
72
|
};
|
|
52
73
|
/**
|
|
53
|
-
*
|
|
74
|
+
* Gap between the trigger element and bib.
|
|
75
|
+
* @default 0
|
|
54
76
|
*/
|
|
55
|
-
|
|
56
|
-
type:
|
|
77
|
+
offset: {
|
|
78
|
+
type: NumberConstructor;
|
|
79
|
+
reflect: boolean;
|
|
57
80
|
};
|
|
58
81
|
/**
|
|
59
|
-
*
|
|
60
|
-
*
|
|
82
|
+
* Position where the bib should appear relative to the trigger.
|
|
83
|
+
* Accepted values:
|
|
84
|
+
* "top" | "right" | "bottom" | "left" |
|
|
85
|
+
* "bottom-start" | "top-start" | "top-end" |
|
|
86
|
+
* "right-start" | "right-end" | "bottom-end" |
|
|
87
|
+
* "left-start" | "left-end"
|
|
88
|
+
* @default bottom-start
|
|
61
89
|
*/
|
|
62
|
-
|
|
63
|
-
type:
|
|
90
|
+
placement: {
|
|
91
|
+
type: StringConstructor;
|
|
64
92
|
reflect: boolean;
|
|
65
93
|
};
|
|
66
94
|
/**
|
|
67
|
-
*
|
|
68
|
-
* When expanded, the dropdown will automatically display in fullscreen mode if the screen size is equal to or smaller than the selected breakpoint.
|
|
69
|
-
* @default sm
|
|
95
|
+
* The total value of the counters.
|
|
70
96
|
*/
|
|
71
|
-
|
|
97
|
+
total: {
|
|
98
|
+
type: NumberConstructor;
|
|
99
|
+
};
|
|
100
|
+
/**
|
|
101
|
+
* Reflects the validity state.
|
|
102
|
+
*/
|
|
103
|
+
validity: {
|
|
72
104
|
type: StringConstructor;
|
|
73
105
|
reflect: boolean;
|
|
74
106
|
};
|
|
107
|
+
/**
|
|
108
|
+
* The current individual values of the nested counters.
|
|
109
|
+
*/
|
|
110
|
+
value: {
|
|
111
|
+
type: ObjectConstructor;
|
|
112
|
+
};
|
|
75
113
|
};
|
|
76
114
|
/**
|
|
77
115
|
* Registers the custom element with the browser.
|
|
@@ -4820,12 +4820,17 @@ class AuroDropdown extends LitElement {
|
|
|
4820
4820
|
this.disabled = false;
|
|
4821
4821
|
this.error = false;
|
|
4822
4822
|
this.inset = false;
|
|
4823
|
-
this.placement = 'bottom-start';
|
|
4824
4823
|
this.rounded = false;
|
|
4825
4824
|
this.tabIndex = 0;
|
|
4826
4825
|
this.noToggle = false;
|
|
4827
4826
|
this.labeled = true;
|
|
4828
4827
|
|
|
4828
|
+
// floaterConfig
|
|
4829
|
+
this.placement = 'bottom-start';
|
|
4830
|
+
this.offset = 0;
|
|
4831
|
+
this.noFlip = false;
|
|
4832
|
+
this.autoPlacement = false;
|
|
4833
|
+
|
|
4829
4834
|
/**
|
|
4830
4835
|
* @private
|
|
4831
4836
|
*/
|
|
@@ -4846,16 +4851,6 @@ class AuroDropdown extends LitElement {
|
|
|
4846
4851
|
*/
|
|
4847
4852
|
this.floater = new AuroFloatingUI();
|
|
4848
4853
|
|
|
4849
|
-
/**
|
|
4850
|
-
* @private
|
|
4851
|
-
*/
|
|
4852
|
-
this.floaterConfig = {
|
|
4853
|
-
placement: 'bottom-start',
|
|
4854
|
-
flip: true,
|
|
4855
|
-
autoPlacement: false,
|
|
4856
|
-
offset: 0,
|
|
4857
|
-
};
|
|
4858
|
-
|
|
4859
4854
|
/**
|
|
4860
4855
|
* Generate unique names for dependency components.
|
|
4861
4856
|
*/
|
|
@@ -4877,6 +4872,18 @@ class AuroDropdown extends LitElement {
|
|
|
4877
4872
|
this.helpTextTag = versioning.generateTag('auro-formkit-dropdown-helptext', helpTextVersion, AuroHelpText);
|
|
4878
4873
|
}
|
|
4879
4874
|
|
|
4875
|
+
/**
|
|
4876
|
+
* @ignore
|
|
4877
|
+
*/
|
|
4878
|
+
get floaterConfig() {
|
|
4879
|
+
return {
|
|
4880
|
+
placement: this.placement,
|
|
4881
|
+
flip: !this.noFlip,
|
|
4882
|
+
autoPlacement: this.autoPlacement,
|
|
4883
|
+
offset: this.offset,
|
|
4884
|
+
};
|
|
4885
|
+
}
|
|
4886
|
+
|
|
4880
4887
|
/**
|
|
4881
4888
|
* Public method to hide the dropdown.
|
|
4882
4889
|
* @returns {void}
|
|
@@ -4897,6 +4904,15 @@ class AuroDropdown extends LitElement {
|
|
|
4897
4904
|
static get properties() {
|
|
4898
4905
|
return {
|
|
4899
4906
|
|
|
4907
|
+
/**
|
|
4908
|
+
* If declared, bib's position will be automatically calculated where to appear.
|
|
4909
|
+
* @default false
|
|
4910
|
+
*/
|
|
4911
|
+
autoPlacement: {
|
|
4912
|
+
type: Boolean,
|
|
4913
|
+
reflect: true
|
|
4914
|
+
},
|
|
4915
|
+
|
|
4900
4916
|
/**
|
|
4901
4917
|
* If declared, applies a border around the trigger slot.
|
|
4902
4918
|
*/
|
|
@@ -4981,7 +4997,7 @@ class AuroDropdown extends LitElement {
|
|
|
4981
4997
|
*/
|
|
4982
4998
|
isBibFullscreen: {
|
|
4983
4999
|
type: Boolean,
|
|
4984
|
-
reflect: true
|
|
5000
|
+
reflect: true
|
|
4985
5001
|
},
|
|
4986
5002
|
|
|
4987
5003
|
/**
|
|
@@ -5024,6 +5040,16 @@ class AuroDropdown extends LitElement {
|
|
|
5024
5040
|
reflect: true
|
|
5025
5041
|
},
|
|
5026
5042
|
|
|
5043
|
+
/**
|
|
5044
|
+
* If declared, the bib will NOT flip to an alternate position
|
|
5045
|
+
* when there isn't enough space in the specified `placement`.
|
|
5046
|
+
* @default false
|
|
5047
|
+
*/
|
|
5048
|
+
noFlip: {
|
|
5049
|
+
type: Boolean,
|
|
5050
|
+
reflect: true
|
|
5051
|
+
},
|
|
5052
|
+
|
|
5027
5053
|
/**
|
|
5028
5054
|
* If declared, the dropdown will not hide when moving focus outside the element.
|
|
5029
5055
|
*/
|
|
@@ -5040,16 +5066,32 @@ class AuroDropdown extends LitElement {
|
|
|
5040
5066
|
reflect: true
|
|
5041
5067
|
},
|
|
5042
5068
|
|
|
5069
|
+
/**
|
|
5070
|
+
* Gap between the trigger element and bib.
|
|
5071
|
+
* @default 0
|
|
5072
|
+
*/
|
|
5073
|
+
offset: {
|
|
5074
|
+
type: Number,
|
|
5075
|
+
reflect: true
|
|
5076
|
+
},
|
|
5077
|
+
|
|
5043
5078
|
onSlotChange: {
|
|
5044
5079
|
type: Function,
|
|
5045
5080
|
reflect: false
|
|
5046
5081
|
},
|
|
5047
5082
|
|
|
5048
5083
|
/**
|
|
5049
|
-
*
|
|
5084
|
+
* Position where the bib should appear relative to the trigger.
|
|
5085
|
+
* Accepted values:
|
|
5086
|
+
* "top" | "right" | "bottom" | "left" |
|
|
5087
|
+
* "bottom-start" | "top-start" | "top-end" |
|
|
5088
|
+
* "right-start" | "right-end" | "bottom-end" |
|
|
5089
|
+
* "left-start" | "left-end"
|
|
5090
|
+
* @default bottom-start
|
|
5050
5091
|
*/
|
|
5051
5092
|
placement: {
|
|
5052
|
-
type: String
|
|
5093
|
+
type: String,
|
|
5094
|
+
reflect: true
|
|
5053
5095
|
},
|
|
5054
5096
|
|
|
5055
5097
|
/**
|
|
@@ -6216,11 +6258,11 @@ class AuroBibtemplate extends LitElement {
|
|
|
6216
6258
|
return {
|
|
6217
6259
|
isFullscreen: {
|
|
6218
6260
|
type: Boolean,
|
|
6219
|
-
reflect: true
|
|
6261
|
+
reflect: true
|
|
6220
6262
|
},
|
|
6221
6263
|
large: {
|
|
6222
6264
|
type: Boolean,
|
|
6223
|
-
reflect: true
|
|
6265
|
+
reflect: true
|
|
6224
6266
|
}
|
|
6225
6267
|
};
|
|
6226
6268
|
}
|
|
@@ -6307,7 +6349,7 @@ class AuroBibtemplate extends LitElement {
|
|
|
6307
6349
|
|
|
6308
6350
|
var bibTemplateVersion = '1.0.0';
|
|
6309
6351
|
|
|
6310
|
-
var styleCss = css
|
|
6352
|
+
var styleCss = css`.wrapper{display:flex;flex-direction:column;gap:var(--ds-size-300, 1.5rem)}.wrapper ::slotted(*:not(:first-child)){padding-top:var(--ds-size-300, 1.5rem);border-top-width:1px;border-top-style:solid}:host([isindropdown]) .wrapper{padding:var(--ds-size-300, 1.5rem)}`;
|
|
6311
6353
|
|
|
6312
6354
|
var colorCss = css`:host ::slotted(*:not(:first-child)){border-color:var(--ds-color-border-divider-default, rgba(0, 0, 0, 0.12))}`;
|
|
6313
6355
|
|
|
@@ -6346,7 +6388,7 @@ class AuroCounterWrapper extends LitElement {
|
|
|
6346
6388
|
|
|
6347
6389
|
// function that renders the HTML and CSS into the scope of the component
|
|
6348
6390
|
render() {
|
|
6349
|
-
return html$1`<slot></slot>`;
|
|
6391
|
+
return html$1`<div class="wrapper"><slot></slot></div>`;
|
|
6350
6392
|
}
|
|
6351
6393
|
}
|
|
6352
6394
|
|
|
@@ -6434,6 +6476,25 @@ class AuroCounterGroup extends LitElement {
|
|
|
6434
6476
|
static get properties() {
|
|
6435
6477
|
return {
|
|
6436
6478
|
|
|
6479
|
+
/**
|
|
6480
|
+
* If declared, bib's position will be automatically calculated where to appear.
|
|
6481
|
+
* @default false
|
|
6482
|
+
*/
|
|
6483
|
+
autoPlacement: {
|
|
6484
|
+
type: Boolean,
|
|
6485
|
+
reflect: true
|
|
6486
|
+
},
|
|
6487
|
+
|
|
6488
|
+
/**
|
|
6489
|
+
* Defines the screen size breakpoint (`lg`, `md`, `sm`, or `xs`) at which the dropdown switches to fullscreen mode on mobile.
|
|
6490
|
+
* When expanded, the dropdown will automatically display in fullscreen mode if the screen size is equal to or smaller than the selected breakpoint.
|
|
6491
|
+
* @default sm
|
|
6492
|
+
*/
|
|
6493
|
+
fullscreenBreakpoint: {
|
|
6494
|
+
type: String,
|
|
6495
|
+
reflect: true
|
|
6496
|
+
},
|
|
6497
|
+
|
|
6437
6498
|
/**
|
|
6438
6499
|
* Indicates if the counter group is displayed as a dropdown.
|
|
6439
6500
|
*/
|
|
@@ -6458,45 +6519,68 @@ class AuroCounterGroup extends LitElement {
|
|
|
6458
6519
|
},
|
|
6459
6520
|
|
|
6460
6521
|
/**
|
|
6461
|
-
*
|
|
6522
|
+
* If declared, make bib.fullscreen.headline in HeadingDisplay.
|
|
6523
|
+
* Otherwise, Heading 600
|
|
6462
6524
|
*/
|
|
6463
|
-
|
|
6464
|
-
type:
|
|
6465
|
-
reflect: true
|
|
6525
|
+
largeFullscreenHeadline: {
|
|
6526
|
+
type: Boolean,
|
|
6527
|
+
reflect: true
|
|
6466
6528
|
},
|
|
6467
6529
|
|
|
6468
6530
|
/**
|
|
6469
|
-
*
|
|
6531
|
+
* If declared, the bib will NOT flip to an alternate position
|
|
6532
|
+
* when there isn't enough space in the specified `placement`.
|
|
6533
|
+
* @default false
|
|
6470
6534
|
*/
|
|
6471
|
-
|
|
6472
|
-
type:
|
|
6535
|
+
noFlip: {
|
|
6536
|
+
type: Boolean,
|
|
6537
|
+
reflect: true
|
|
6473
6538
|
},
|
|
6474
6539
|
|
|
6475
6540
|
/**
|
|
6476
|
-
*
|
|
6541
|
+
* Gap between the trigger element and bib.
|
|
6542
|
+
* @default 0
|
|
6477
6543
|
*/
|
|
6478
|
-
|
|
6479
|
-
type:
|
|
6544
|
+
offset: {
|
|
6545
|
+
type: Number,
|
|
6546
|
+
reflect: true
|
|
6480
6547
|
},
|
|
6481
6548
|
|
|
6482
6549
|
/**
|
|
6483
|
-
*
|
|
6484
|
-
*
|
|
6550
|
+
* Position where the bib should appear relative to the trigger.
|
|
6551
|
+
* Accepted values:
|
|
6552
|
+
* "top" | "right" | "bottom" | "left" |
|
|
6553
|
+
* "bottom-start" | "top-start" | "top-end" |
|
|
6554
|
+
* "right-start" | "right-end" | "bottom-end" |
|
|
6555
|
+
* "left-start" | "left-end"
|
|
6556
|
+
* @default bottom-start
|
|
6485
6557
|
*/
|
|
6486
|
-
|
|
6487
|
-
type:
|
|
6558
|
+
placement: {
|
|
6559
|
+
type: String,
|
|
6488
6560
|
reflect: true
|
|
6489
6561
|
},
|
|
6490
6562
|
|
|
6491
6563
|
/**
|
|
6492
|
-
*
|
|
6493
|
-
* When expanded, the dropdown will automatically display in fullscreen mode if the screen size is equal to or smaller than the selected breakpoint.
|
|
6494
|
-
* @default sm
|
|
6564
|
+
* The total value of the counters.
|
|
6495
6565
|
*/
|
|
6496
|
-
|
|
6566
|
+
total: {
|
|
6567
|
+
type: Number,
|
|
6568
|
+
},
|
|
6569
|
+
|
|
6570
|
+
/**
|
|
6571
|
+
* Reflects the validity state.
|
|
6572
|
+
*/
|
|
6573
|
+
validity: {
|
|
6497
6574
|
type: String,
|
|
6498
|
-
reflect: true
|
|
6499
|
-
}
|
|
6575
|
+
reflect: true,
|
|
6576
|
+
},
|
|
6577
|
+
|
|
6578
|
+
/**
|
|
6579
|
+
* The current individual values of the nested counters.
|
|
6580
|
+
*/
|
|
6581
|
+
value: {
|
|
6582
|
+
type: Object,
|
|
6583
|
+
},
|
|
6500
6584
|
};
|
|
6501
6585
|
}
|
|
6502
6586
|
|
|
@@ -6739,7 +6823,12 @@ class AuroCounterGroup extends LitElement {
|
|
|
6739
6823
|
render() {
|
|
6740
6824
|
return html$1`
|
|
6741
6825
|
${this.isDropdown
|
|
6742
|
-
? html$1`<${this.dropdownTag} common chevron
|
|
6826
|
+
? html$1`<${this.dropdownTag} common chevron
|
|
6827
|
+
.fullscreenBreakpoint="${this.fullscreenBreakpoint}"
|
|
6828
|
+
.placement="${this.placement}"
|
|
6829
|
+
.offset="${this.offset}"
|
|
6830
|
+
?autoPlacement="${this.autoPlacement}"
|
|
6831
|
+
?noFlip="${this.noFlip}">
|
|
6743
6832
|
<div slot="trigger"><slot name="valueText">
|
|
6744
6833
|
${this.counters && Array.from(this.counters).map((counter, index) => `${counter.value} ${counter.defaultSlot}${index !== this.counters.length - 1 ? ', ' : ''}`)}
|
|
6745
6834
|
</slot></div>
|