@aurodesignsystem/auro-formkit 3.0.0 → 3.1.0-beta.1
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 +19 -0
- package/components/bibtemplate/dist/auro-bibtemplate.d.ts +1 -0
- package/components/bibtemplate/dist/index.js +2 -0
- package/components/bibtemplate/dist/registered.js +2 -0
- 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 +5 -5
- package/components/combobox/demo/api.min.js +54 -18
- package/components/combobox/demo/index.min.js +54 -18
- package/components/combobox/demo/readme.md +1 -1
- package/components/combobox/dist/auro-combobox.d.ts +16 -7
- package/components/combobox/dist/index.js +54 -18
- package/components/combobox/dist/registered.js +54 -18
- package/components/counter/README.md +1 -1
- package/components/counter/demo/api.md +2 -2
- package/components/counter/demo/api.min.js +33 -6
- package/components/counter/demo/index.min.js +33 -6
- package/components/counter/demo/readme.md +1 -1
- package/components/counter/dist/auro-counter-group.d.ts +9 -3
- package/components/counter/dist/index.js +33 -6
- package/components/counter/dist/registered.js +33 -6
- package/components/datepicker/README.md +1 -1
- package/components/datepicker/demo/api.md +3 -2
- package/components/datepicker/demo/api.min.js +63 -14
- package/components/datepicker/demo/index.min.js +63 -14
- package/components/datepicker/demo/readme.md +1 -1
- package/components/datepicker/dist/auro-calendar-cell.d.ts +1 -0
- package/components/datepicker/dist/auro-calendar-month.d.ts +1 -0
- package/components/datepicker/dist/auro-calendar.d.ts +3 -2
- package/components/datepicker/dist/auro-datepicker.d.ts +16 -0
- package/components/datepicker/dist/index.js +63 -14
- package/components/datepicker/dist/registered.js +63 -14
- package/components/dropdown/README.md +1 -1
- package/components/dropdown/demo/api.md +1 -1
- package/components/dropdown/demo/api.min.js +21 -3
- package/components/dropdown/demo/index.md +83 -0
- package/components/dropdown/demo/index.min.js +21 -3
- package/components/dropdown/demo/readme.md +1 -1
- package/components/dropdown/dist/auro-dropdown.d.ts +12 -1
- package/components/dropdown/dist/index.js +21 -3
- package/components/dropdown/dist/registered.js +21 -3
- package/components/form/README.md +1 -1
- package/components/form/demo/autocomplete.html +15 -0
- package/components/form/demo/readme.md +1 -1
- package/components/input/README.md +1 -1
- package/components/input/demo/api.min.js +10 -5
- package/components/input/demo/index.min.js +10 -5
- package/components/input/demo/readme.md +1 -1
- package/components/input/dist/base-input.d.ts +5 -0
- package/components/input/dist/index.js +10 -5
- package/components/input/dist/registered.js +10 -5
- 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 +1 -1
- package/components/select/demo/api.min.js +28 -5
- package/components/select/demo/index.md +46 -1
- package/components/select/demo/index.min.js +28 -5
- package/components/select/demo/readme.md +1 -1
- package/components/select/dist/auro-select.d.ts +5 -2
- package/components/select/dist/index.js +28 -5
- package/components/select/dist/registered.js +28 -5
- package/package.json +1 -1
|
@@ -9464,7 +9464,10 @@ class AuroCalendarCell extends r$2 {
|
|
|
9464
9464
|
month: { type: String },
|
|
9465
9465
|
min: { type: Number },
|
|
9466
9466
|
max: { type: Number },
|
|
9467
|
-
disabled: {
|
|
9467
|
+
disabled: {
|
|
9468
|
+
type: Boolean,
|
|
9469
|
+
reflect: true
|
|
9470
|
+
},
|
|
9468
9471
|
disabledDays: { type: Array },
|
|
9469
9472
|
hoveredDate: { type: String },
|
|
9470
9473
|
isCurrentDate: { type: Boolean },
|
|
@@ -9805,7 +9808,8 @@ class AuroCalendarMonth extends RangeDatepickerCalendar {
|
|
|
9805
9808
|
* @private
|
|
9806
9809
|
*/
|
|
9807
9810
|
monthFirst: {
|
|
9808
|
-
type: Boolean
|
|
9811
|
+
type: Boolean,
|
|
9812
|
+
reflect: true
|
|
9809
9813
|
}
|
|
9810
9814
|
};
|
|
9811
9815
|
}
|
|
@@ -11003,6 +11007,8 @@ class AuroBibtemplate extends r$2 {
|
|
|
11003
11007
|
constructor() {
|
|
11004
11008
|
super();
|
|
11005
11009
|
|
|
11010
|
+
this.large = false;
|
|
11011
|
+
|
|
11006
11012
|
AuroLibraryRuntimeUtils$1$2.prototype.handleComponentTagRename(this, 'auro-bibtemplate');
|
|
11007
11013
|
|
|
11008
11014
|
const versioning = new AuroDependencyVersioning$2();
|
|
@@ -11602,6 +11608,10 @@ class AuroCalendar extends RangeDatepicker {
|
|
|
11602
11608
|
this.showPrevMonthBtn = true;
|
|
11603
11609
|
this.showNextMonthBtn = true;
|
|
11604
11610
|
|
|
11611
|
+
this.visible = false;
|
|
11612
|
+
this.largeFullscreenHeadline = false;
|
|
11613
|
+
this.isFullscreen = false;
|
|
11614
|
+
|
|
11605
11615
|
/**
|
|
11606
11616
|
* @private
|
|
11607
11617
|
*/
|
|
@@ -11617,8 +11627,6 @@ class AuroCalendar extends RangeDatepicker {
|
|
|
11617
11627
|
*/
|
|
11618
11628
|
this.numCalendars = undefined;
|
|
11619
11629
|
|
|
11620
|
-
this.visible = false;
|
|
11621
|
-
|
|
11622
11630
|
/**
|
|
11623
11631
|
* @private
|
|
11624
11632
|
*/
|
|
@@ -14487,6 +14495,7 @@ var tokensCss$1$1 = i$5`:host{--ds-auro-dropdown-label-text-color: var(--ds-basi
|
|
|
14487
14495
|
|
|
14488
14496
|
const DESIGN_TOKEN_BREAKPOINT_PREFIX = '--ds-grid-breakpoint-';
|
|
14489
14497
|
const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
|
|
14498
|
+
'xl',
|
|
14490
14499
|
'lg',
|
|
14491
14500
|
'md',
|
|
14492
14501
|
'sm',
|
|
@@ -14558,6 +14567,7 @@ class AuroDropdownBib extends r$2 {
|
|
|
14558
14567
|
|
|
14559
14568
|
set mobileFullscreenBreakpoint(value) {
|
|
14560
14569
|
// verify the defined breakpoint is valid and exit out if not
|
|
14570
|
+
// 'disabled' is a design token breakpoint so it acts as our "undefined" value
|
|
14561
14571
|
const validatedValue = DESIGN_TOKEN_BREAKPOINT_OPTIONS.includes(value) ? value : undefined;
|
|
14562
14572
|
if (!validatedValue) {
|
|
14563
14573
|
this._mobileBreakpointValue = undefined;
|
|
@@ -15070,7 +15080,12 @@ class AuroDropdown extends r$2 {
|
|
|
15070
15080
|
},
|
|
15071
15081
|
|
|
15072
15082
|
/**
|
|
15073
|
-
* Defines the screen size breakpoint (`
|
|
15083
|
+
* Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)
|
|
15084
|
+
* at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
|
|
15085
|
+
*
|
|
15086
|
+
* When expanded, the dropdown will automatically display in fullscreen mode
|
|
15087
|
+
* if the screen size is equal to or smaller than the selected breakpoint.
|
|
15088
|
+
* @default sm
|
|
15074
15089
|
*/
|
|
15075
15090
|
fullscreenBreakpoint: {
|
|
15076
15091
|
type: String,
|
|
@@ -15193,6 +15208,15 @@ class AuroDropdown extends r$2 {
|
|
|
15193
15208
|
AuroLibraryRuntimeUtils$1$1.prototype.registerComponent(name, AuroDropdown);
|
|
15194
15209
|
}
|
|
15195
15210
|
|
|
15211
|
+
/**
|
|
15212
|
+
* Accessor for reusing the focusable entity query string.
|
|
15213
|
+
* @private
|
|
15214
|
+
* @returns {string}
|
|
15215
|
+
*/
|
|
15216
|
+
get focusableEntityQuery () {
|
|
15217
|
+
return 'auro-input, [auro-input], auro-button, [auro-button], button, input';
|
|
15218
|
+
}
|
|
15219
|
+
|
|
15196
15220
|
connectedCallback() {
|
|
15197
15221
|
super.connectedCallback();
|
|
15198
15222
|
}
|
|
@@ -15206,6 +15230,8 @@ class AuroDropdown extends r$2 {
|
|
|
15206
15230
|
updated(changedProperties) {
|
|
15207
15231
|
this.floater.handleUpdate(changedProperties);
|
|
15208
15232
|
|
|
15233
|
+
// Note: `disabled` is not a breakpoint (it is not a screen size),
|
|
15234
|
+
// so it looks like we never consume this - however, dropdownBib handles this in the setter as "undefined"
|
|
15209
15235
|
if (changedProperties.has('fullscreenBreakpoint')) {
|
|
15210
15236
|
this.bibContent.mobileFullscreenBreakpoint = this.fullscreenBreakpoint;
|
|
15211
15237
|
}
|
|
@@ -15341,7 +15367,7 @@ class AuroDropdown extends r$2 {
|
|
|
15341
15367
|
|
|
15342
15368
|
this.triggerContentSlot.forEach((node) => {
|
|
15343
15369
|
if (node.querySelectorAll) {
|
|
15344
|
-
const auroElements = node.querySelectorAll(
|
|
15370
|
+
const auroElements = node.querySelectorAll(this.focusableEntityQuery);
|
|
15345
15371
|
auroElements.forEach((auroEl) => {
|
|
15346
15372
|
auroEl.addEventListener('focus', this.bindFocusEventToTrigger);
|
|
15347
15373
|
auroEl.addEventListener('blur', this.bindFocusEventToTrigger);
|
|
@@ -15362,7 +15388,7 @@ class AuroDropdown extends r$2 {
|
|
|
15362
15388
|
|
|
15363
15389
|
this.triggerContentSlot.forEach((node) => {
|
|
15364
15390
|
if (node.querySelectorAll) {
|
|
15365
|
-
const auroElements = node.querySelectorAll(
|
|
15391
|
+
const auroElements = node.querySelectorAll(this.focusableEntityQuery);
|
|
15366
15392
|
auroElements.forEach((auroEl) => {
|
|
15367
15393
|
auroEl.removeEventListener('focus', this.bindFocusEventToTrigger);
|
|
15368
15394
|
auroEl.removeEventListener('blur', this.bindFocusEventToTrigger);
|
|
@@ -20037,7 +20063,8 @@ class BaseInput extends r$2 {
|
|
|
20037
20063
|
* If set, disables the input.
|
|
20038
20064
|
*/
|
|
20039
20065
|
disabled: {
|
|
20040
|
-
type: Boolean
|
|
20066
|
+
type: Boolean,
|
|
20067
|
+
reflect: true
|
|
20041
20068
|
},
|
|
20042
20069
|
|
|
20043
20070
|
/**
|
|
@@ -20067,7 +20094,8 @@ class BaseInput extends r$2 {
|
|
|
20067
20094
|
* If set, will render an icon inside the input to the left of the value. Support is limited to auro-input instances with credit card format.
|
|
20068
20095
|
*/
|
|
20069
20096
|
icon: {
|
|
20070
|
-
type: Boolean
|
|
20097
|
+
type: Boolean,
|
|
20098
|
+
reflect: true
|
|
20071
20099
|
},
|
|
20072
20100
|
|
|
20073
20101
|
/**
|
|
@@ -20123,7 +20151,8 @@ class BaseInput extends r$2 {
|
|
|
20123
20151
|
* If set, disables auto-validation on blur.
|
|
20124
20152
|
*/
|
|
20125
20153
|
noValidate: {
|
|
20126
|
-
type: Boolean
|
|
20154
|
+
type: Boolean,
|
|
20155
|
+
reflect: true
|
|
20127
20156
|
},
|
|
20128
20157
|
|
|
20129
20158
|
/**
|
|
@@ -20153,14 +20182,16 @@ class BaseInput extends r$2 {
|
|
|
20153
20182
|
* Makes the input read-only, but can be set programmatically.
|
|
20154
20183
|
*/
|
|
20155
20184
|
readonly: {
|
|
20156
|
-
type: Boolean
|
|
20185
|
+
type: Boolean,
|
|
20186
|
+
reflect: true
|
|
20157
20187
|
},
|
|
20158
20188
|
|
|
20159
20189
|
/**
|
|
20160
20190
|
* Populates the `required` attribute on the input. Used for client-side validation.
|
|
20161
20191
|
*/
|
|
20162
20192
|
required: {
|
|
20163
|
-
type: Boolean
|
|
20193
|
+
type: Boolean,
|
|
20194
|
+
reflect: true
|
|
20164
20195
|
},
|
|
20165
20196
|
|
|
20166
20197
|
/**
|
|
@@ -22140,6 +22171,7 @@ class AuroDatePicker extends r$2 {
|
|
|
22140
22171
|
this.required = false;
|
|
22141
22172
|
this.onDark = false;
|
|
22142
22173
|
this.range = false;
|
|
22174
|
+
this.stacked = false;
|
|
22143
22175
|
this.noValidate = false;
|
|
22144
22176
|
this.validity = undefined;
|
|
22145
22177
|
this.value = undefined;
|
|
@@ -22148,6 +22180,7 @@ class AuroDatePicker extends r$2 {
|
|
|
22148
22180
|
this.calendarEndDate = undefined;
|
|
22149
22181
|
this.calendarFocusDate = this.value;
|
|
22150
22182
|
this.format = 'mm/dd/yyyy';
|
|
22183
|
+
this.fullscreenBreakpoint = 'sm';
|
|
22151
22184
|
this.monthNames = [
|
|
22152
22185
|
'January',
|
|
22153
22186
|
'February',
|
|
@@ -22171,6 +22204,8 @@ class AuroDatePicker extends r$2 {
|
|
|
22171
22204
|
this.noFlip = false;
|
|
22172
22205
|
this.autoPlacement = false;
|
|
22173
22206
|
|
|
22207
|
+
this.largeFullscreenHeadline = false;
|
|
22208
|
+
|
|
22174
22209
|
/**
|
|
22175
22210
|
* @private
|
|
22176
22211
|
*/
|
|
@@ -22283,6 +22318,19 @@ class AuroDatePicker extends r$2 {
|
|
|
22283
22318
|
reflect: true
|
|
22284
22319
|
},
|
|
22285
22320
|
|
|
22321
|
+
/**
|
|
22322
|
+
* Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)
|
|
22323
|
+
* at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
|
|
22324
|
+
*
|
|
22325
|
+
* When expanded, the dropdown will automatically display in fullscreen mode
|
|
22326
|
+
* if the screen size is equal to or smaller than the selected breakpoint.
|
|
22327
|
+
* @default sm
|
|
22328
|
+
*/
|
|
22329
|
+
fullscreenBreakpoint: {
|
|
22330
|
+
type: String,
|
|
22331
|
+
reflect: true
|
|
22332
|
+
},
|
|
22333
|
+
|
|
22286
22334
|
/**
|
|
22287
22335
|
* If declared, make bib.fullscreen.headline in HeadingDisplay.
|
|
22288
22336
|
* Otherwise, Heading 600.
|
|
@@ -22336,7 +22384,8 @@ class AuroDatePicker extends r$2 {
|
|
|
22336
22384
|
* If set, disables auto-validation on blur.
|
|
22337
22385
|
*/
|
|
22338
22386
|
noValidate: {
|
|
22339
|
-
type: Boolean
|
|
22387
|
+
type: Boolean,
|
|
22388
|
+
reflect: true
|
|
22340
22389
|
},
|
|
22341
22390
|
|
|
22342
22391
|
/**
|
|
@@ -23108,7 +23157,7 @@ class AuroDatePicker extends r$2 {
|
|
|
23108
23157
|
?disabled="${this.disabled}"
|
|
23109
23158
|
?error="${this.validity !== undefined && this.validity !== 'valid'}"
|
|
23110
23159
|
disableEventShow
|
|
23111
|
-
fullscreenBreakpoint="
|
|
23160
|
+
.fullscreenBreakpoint="${this.fullscreenBreakpoint}"
|
|
23112
23161
|
.placement="${this.placement}"
|
|
23113
23162
|
.offset="${this.offset}"
|
|
23114
23163
|
?autoPlacement="${this.autoPlacement}"
|
|
@@ -104,7 +104,7 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
|
|
|
104
104
|
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.
|
|
105
105
|
|
|
106
106
|
```html
|
|
107
|
-
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@
|
|
107
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@3.0.1/auro-datepicker/+esm"></script>
|
|
108
108
|
```
|
|
109
109
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
110
110
|
|
|
@@ -86,6 +86,9 @@ export class AuroCalendar extends RangeDatepicker {
|
|
|
86
86
|
centralDate: any;
|
|
87
87
|
showPrevMonthBtn: boolean;
|
|
88
88
|
showNextMonthBtn: boolean;
|
|
89
|
+
visible: boolean;
|
|
90
|
+
largeFullscreenHeadline: boolean;
|
|
91
|
+
isFullscreen: boolean;
|
|
89
92
|
/**
|
|
90
93
|
* @private
|
|
91
94
|
*/
|
|
@@ -98,7 +101,6 @@ export class AuroCalendar extends RangeDatepicker {
|
|
|
98
101
|
* @private
|
|
99
102
|
*/
|
|
100
103
|
private numCalendars;
|
|
101
|
-
visible: boolean;
|
|
102
104
|
/**
|
|
103
105
|
* @private
|
|
104
106
|
*/
|
|
@@ -118,7 +120,6 @@ export class AuroCalendar extends RangeDatepicker {
|
|
|
118
120
|
* @returns {Object} Returns the auro-calendar-months HTML.
|
|
119
121
|
*/
|
|
120
122
|
private renderAllCalendars;
|
|
121
|
-
isFullscreen: any;
|
|
122
123
|
firstRenderedMonth: any;
|
|
123
124
|
/**
|
|
124
125
|
* Request the calendar be scrolled to a given date.
|
|
@@ -77,6 +77,18 @@ export class AuroDatePicker extends LitElement {
|
|
|
77
77
|
type: StringConstructor;
|
|
78
78
|
reflect: boolean;
|
|
79
79
|
};
|
|
80
|
+
/**
|
|
81
|
+
* Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)
|
|
82
|
+
* at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
|
|
83
|
+
*
|
|
84
|
+
* When expanded, the dropdown will automatically display in fullscreen mode
|
|
85
|
+
* if the screen size is equal to or smaller than the selected breakpoint.
|
|
86
|
+
* @default sm
|
|
87
|
+
*/
|
|
88
|
+
fullscreenBreakpoint: {
|
|
89
|
+
type: StringConstructor;
|
|
90
|
+
reflect: boolean;
|
|
91
|
+
};
|
|
80
92
|
/**
|
|
81
93
|
* If declared, make bib.fullscreen.headline in HeadingDisplay.
|
|
82
94
|
* Otherwise, Heading 600.
|
|
@@ -125,6 +137,7 @@ export class AuroDatePicker extends LitElement {
|
|
|
125
137
|
*/
|
|
126
138
|
noValidate: {
|
|
127
139
|
type: BooleanConstructor;
|
|
140
|
+
reflect: boolean;
|
|
128
141
|
};
|
|
129
142
|
/**
|
|
130
143
|
* Gap between the trigger element and bib.
|
|
@@ -248,6 +261,7 @@ export class AuroDatePicker extends LitElement {
|
|
|
248
261
|
required: boolean;
|
|
249
262
|
onDark: boolean;
|
|
250
263
|
range: boolean;
|
|
264
|
+
stacked: boolean;
|
|
251
265
|
noValidate: boolean;
|
|
252
266
|
validity: any;
|
|
253
267
|
value: any;
|
|
@@ -256,12 +270,14 @@ export class AuroDatePicker extends LitElement {
|
|
|
256
270
|
calendarEndDate: any;
|
|
257
271
|
calendarFocusDate: any;
|
|
258
272
|
format: string;
|
|
273
|
+
fullscreenBreakpoint: string;
|
|
259
274
|
monthNames: string[];
|
|
260
275
|
monthFirst: boolean;
|
|
261
276
|
placement: string;
|
|
262
277
|
offset: number;
|
|
263
278
|
noFlip: boolean;
|
|
264
279
|
autoPlacement: boolean;
|
|
280
|
+
largeFullscreenHeadline: boolean;
|
|
265
281
|
/**
|
|
266
282
|
* @private
|
|
267
283
|
*/
|
|
@@ -9419,7 +9419,10 @@ class AuroCalendarCell extends LitElement {
|
|
|
9419
9419
|
month: { type: String },
|
|
9420
9420
|
min: { type: Number },
|
|
9421
9421
|
max: { type: Number },
|
|
9422
|
-
disabled: {
|
|
9422
|
+
disabled: {
|
|
9423
|
+
type: Boolean,
|
|
9424
|
+
reflect: true
|
|
9425
|
+
},
|
|
9423
9426
|
disabledDays: { type: Array },
|
|
9424
9427
|
hoveredDate: { type: String },
|
|
9425
9428
|
isCurrentDate: { type: Boolean },
|
|
@@ -9760,7 +9763,8 @@ class AuroCalendarMonth extends RangeDatepickerCalendar {
|
|
|
9760
9763
|
* @private
|
|
9761
9764
|
*/
|
|
9762
9765
|
monthFirst: {
|
|
9763
|
-
type: Boolean
|
|
9766
|
+
type: Boolean,
|
|
9767
|
+
reflect: true
|
|
9764
9768
|
}
|
|
9765
9769
|
};
|
|
9766
9770
|
}
|
|
@@ -10952,6 +10956,8 @@ class AuroBibtemplate extends LitElement {
|
|
|
10952
10956
|
constructor() {
|
|
10953
10957
|
super();
|
|
10954
10958
|
|
|
10959
|
+
this.large = false;
|
|
10960
|
+
|
|
10955
10961
|
AuroLibraryRuntimeUtils$1$2.prototype.handleComponentTagRename(this, 'auro-bibtemplate');
|
|
10956
10962
|
|
|
10957
10963
|
const versioning = new AuroDependencyVersioning$2();
|
|
@@ -11551,6 +11557,10 @@ class AuroCalendar extends RangeDatepicker {
|
|
|
11551
11557
|
this.showPrevMonthBtn = true;
|
|
11552
11558
|
this.showNextMonthBtn = true;
|
|
11553
11559
|
|
|
11560
|
+
this.visible = false;
|
|
11561
|
+
this.largeFullscreenHeadline = false;
|
|
11562
|
+
this.isFullscreen = false;
|
|
11563
|
+
|
|
11554
11564
|
/**
|
|
11555
11565
|
* @private
|
|
11556
11566
|
*/
|
|
@@ -11566,8 +11576,6 @@ class AuroCalendar extends RangeDatepicker {
|
|
|
11566
11576
|
*/
|
|
11567
11577
|
this.numCalendars = undefined;
|
|
11568
11578
|
|
|
11569
|
-
this.visible = false;
|
|
11570
|
-
|
|
11571
11579
|
/**
|
|
11572
11580
|
* @private
|
|
11573
11581
|
*/
|
|
@@ -14436,6 +14444,7 @@ var tokensCss$1$1 = css`:host{--ds-auro-dropdown-label-text-color: var(--ds-basi
|
|
|
14436
14444
|
|
|
14437
14445
|
const DESIGN_TOKEN_BREAKPOINT_PREFIX = '--ds-grid-breakpoint-';
|
|
14438
14446
|
const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
|
|
14447
|
+
'xl',
|
|
14439
14448
|
'lg',
|
|
14440
14449
|
'md',
|
|
14441
14450
|
'sm',
|
|
@@ -14507,6 +14516,7 @@ class AuroDropdownBib extends LitElement {
|
|
|
14507
14516
|
|
|
14508
14517
|
set mobileFullscreenBreakpoint(value) {
|
|
14509
14518
|
// verify the defined breakpoint is valid and exit out if not
|
|
14519
|
+
// 'disabled' is a design token breakpoint so it acts as our "undefined" value
|
|
14510
14520
|
const validatedValue = DESIGN_TOKEN_BREAKPOINT_OPTIONS.includes(value) ? value : undefined;
|
|
14511
14521
|
if (!validatedValue) {
|
|
14512
14522
|
this._mobileBreakpointValue = undefined;
|
|
@@ -15019,7 +15029,12 @@ class AuroDropdown extends LitElement {
|
|
|
15019
15029
|
},
|
|
15020
15030
|
|
|
15021
15031
|
/**
|
|
15022
|
-
* Defines the screen size breakpoint (`
|
|
15032
|
+
* Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)
|
|
15033
|
+
* at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
|
|
15034
|
+
*
|
|
15035
|
+
* When expanded, the dropdown will automatically display in fullscreen mode
|
|
15036
|
+
* if the screen size is equal to or smaller than the selected breakpoint.
|
|
15037
|
+
* @default sm
|
|
15023
15038
|
*/
|
|
15024
15039
|
fullscreenBreakpoint: {
|
|
15025
15040
|
type: String,
|
|
@@ -15142,6 +15157,15 @@ class AuroDropdown extends LitElement {
|
|
|
15142
15157
|
AuroLibraryRuntimeUtils$1$1.prototype.registerComponent(name, AuroDropdown);
|
|
15143
15158
|
}
|
|
15144
15159
|
|
|
15160
|
+
/**
|
|
15161
|
+
* Accessor for reusing the focusable entity query string.
|
|
15162
|
+
* @private
|
|
15163
|
+
* @returns {string}
|
|
15164
|
+
*/
|
|
15165
|
+
get focusableEntityQuery () {
|
|
15166
|
+
return 'auro-input, [auro-input], auro-button, [auro-button], button, input';
|
|
15167
|
+
}
|
|
15168
|
+
|
|
15145
15169
|
connectedCallback() {
|
|
15146
15170
|
super.connectedCallback();
|
|
15147
15171
|
}
|
|
@@ -15155,6 +15179,8 @@ class AuroDropdown extends LitElement {
|
|
|
15155
15179
|
updated(changedProperties) {
|
|
15156
15180
|
this.floater.handleUpdate(changedProperties);
|
|
15157
15181
|
|
|
15182
|
+
// Note: `disabled` is not a breakpoint (it is not a screen size),
|
|
15183
|
+
// so it looks like we never consume this - however, dropdownBib handles this in the setter as "undefined"
|
|
15158
15184
|
if (changedProperties.has('fullscreenBreakpoint')) {
|
|
15159
15185
|
this.bibContent.mobileFullscreenBreakpoint = this.fullscreenBreakpoint;
|
|
15160
15186
|
}
|
|
@@ -15290,7 +15316,7 @@ class AuroDropdown extends LitElement {
|
|
|
15290
15316
|
|
|
15291
15317
|
this.triggerContentSlot.forEach((node) => {
|
|
15292
15318
|
if (node.querySelectorAll) {
|
|
15293
|
-
const auroElements = node.querySelectorAll(
|
|
15319
|
+
const auroElements = node.querySelectorAll(this.focusableEntityQuery);
|
|
15294
15320
|
auroElements.forEach((auroEl) => {
|
|
15295
15321
|
auroEl.addEventListener('focus', this.bindFocusEventToTrigger);
|
|
15296
15322
|
auroEl.addEventListener('blur', this.bindFocusEventToTrigger);
|
|
@@ -15311,7 +15337,7 @@ class AuroDropdown extends LitElement {
|
|
|
15311
15337
|
|
|
15312
15338
|
this.triggerContentSlot.forEach((node) => {
|
|
15313
15339
|
if (node.querySelectorAll) {
|
|
15314
|
-
const auroElements = node.querySelectorAll(
|
|
15340
|
+
const auroElements = node.querySelectorAll(this.focusableEntityQuery);
|
|
15315
15341
|
auroElements.forEach((auroEl) => {
|
|
15316
15342
|
auroEl.removeEventListener('focus', this.bindFocusEventToTrigger);
|
|
15317
15343
|
auroEl.removeEventListener('blur', this.bindFocusEventToTrigger);
|
|
@@ -19973,7 +19999,8 @@ class BaseInput extends LitElement {
|
|
|
19973
19999
|
* If set, disables the input.
|
|
19974
20000
|
*/
|
|
19975
20001
|
disabled: {
|
|
19976
|
-
type: Boolean
|
|
20002
|
+
type: Boolean,
|
|
20003
|
+
reflect: true
|
|
19977
20004
|
},
|
|
19978
20005
|
|
|
19979
20006
|
/**
|
|
@@ -20003,7 +20030,8 @@ class BaseInput extends LitElement {
|
|
|
20003
20030
|
* If set, will render an icon inside the input to the left of the value. Support is limited to auro-input instances with credit card format.
|
|
20004
20031
|
*/
|
|
20005
20032
|
icon: {
|
|
20006
|
-
type: Boolean
|
|
20033
|
+
type: Boolean,
|
|
20034
|
+
reflect: true
|
|
20007
20035
|
},
|
|
20008
20036
|
|
|
20009
20037
|
/**
|
|
@@ -20059,7 +20087,8 @@ class BaseInput extends LitElement {
|
|
|
20059
20087
|
* If set, disables auto-validation on blur.
|
|
20060
20088
|
*/
|
|
20061
20089
|
noValidate: {
|
|
20062
|
-
type: Boolean
|
|
20090
|
+
type: Boolean,
|
|
20091
|
+
reflect: true
|
|
20063
20092
|
},
|
|
20064
20093
|
|
|
20065
20094
|
/**
|
|
@@ -20089,14 +20118,16 @@ class BaseInput extends LitElement {
|
|
|
20089
20118
|
* Makes the input read-only, but can be set programmatically.
|
|
20090
20119
|
*/
|
|
20091
20120
|
readonly: {
|
|
20092
|
-
type: Boolean
|
|
20121
|
+
type: Boolean,
|
|
20122
|
+
reflect: true
|
|
20093
20123
|
},
|
|
20094
20124
|
|
|
20095
20125
|
/**
|
|
20096
20126
|
* Populates the `required` attribute on the input. Used for client-side validation.
|
|
20097
20127
|
*/
|
|
20098
20128
|
required: {
|
|
20099
|
-
type: Boolean
|
|
20129
|
+
type: Boolean,
|
|
20130
|
+
reflect: true
|
|
20100
20131
|
},
|
|
20101
20132
|
|
|
20102
20133
|
/**
|
|
@@ -22076,6 +22107,7 @@ class AuroDatePicker extends LitElement {
|
|
|
22076
22107
|
this.required = false;
|
|
22077
22108
|
this.onDark = false;
|
|
22078
22109
|
this.range = false;
|
|
22110
|
+
this.stacked = false;
|
|
22079
22111
|
this.noValidate = false;
|
|
22080
22112
|
this.validity = undefined;
|
|
22081
22113
|
this.value = undefined;
|
|
@@ -22084,6 +22116,7 @@ class AuroDatePicker extends LitElement {
|
|
|
22084
22116
|
this.calendarEndDate = undefined;
|
|
22085
22117
|
this.calendarFocusDate = this.value;
|
|
22086
22118
|
this.format = 'mm/dd/yyyy';
|
|
22119
|
+
this.fullscreenBreakpoint = 'sm';
|
|
22087
22120
|
this.monthNames = [
|
|
22088
22121
|
'January',
|
|
22089
22122
|
'February',
|
|
@@ -22107,6 +22140,8 @@ class AuroDatePicker extends LitElement {
|
|
|
22107
22140
|
this.noFlip = false;
|
|
22108
22141
|
this.autoPlacement = false;
|
|
22109
22142
|
|
|
22143
|
+
this.largeFullscreenHeadline = false;
|
|
22144
|
+
|
|
22110
22145
|
/**
|
|
22111
22146
|
* @private
|
|
22112
22147
|
*/
|
|
@@ -22219,6 +22254,19 @@ class AuroDatePicker extends LitElement {
|
|
|
22219
22254
|
reflect: true
|
|
22220
22255
|
},
|
|
22221
22256
|
|
|
22257
|
+
/**
|
|
22258
|
+
* Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)
|
|
22259
|
+
* at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
|
|
22260
|
+
*
|
|
22261
|
+
* When expanded, the dropdown will automatically display in fullscreen mode
|
|
22262
|
+
* if the screen size is equal to or smaller than the selected breakpoint.
|
|
22263
|
+
* @default sm
|
|
22264
|
+
*/
|
|
22265
|
+
fullscreenBreakpoint: {
|
|
22266
|
+
type: String,
|
|
22267
|
+
reflect: true
|
|
22268
|
+
},
|
|
22269
|
+
|
|
22222
22270
|
/**
|
|
22223
22271
|
* If declared, make bib.fullscreen.headline in HeadingDisplay.
|
|
22224
22272
|
* Otherwise, Heading 600.
|
|
@@ -22272,7 +22320,8 @@ class AuroDatePicker extends LitElement {
|
|
|
22272
22320
|
* If set, disables auto-validation on blur.
|
|
22273
22321
|
*/
|
|
22274
22322
|
noValidate: {
|
|
22275
|
-
type: Boolean
|
|
22323
|
+
type: Boolean,
|
|
22324
|
+
reflect: true
|
|
22276
22325
|
},
|
|
22277
22326
|
|
|
22278
22327
|
/**
|
|
@@ -23044,7 +23093,7 @@ class AuroDatePicker extends LitElement {
|
|
|
23044
23093
|
?disabled="${this.disabled}"
|
|
23045
23094
|
?error="${this.validity !== undefined && this.validity !== 'valid'}"
|
|
23046
23095
|
disableEventShow
|
|
23047
|
-
fullscreenBreakpoint="
|
|
23096
|
+
.fullscreenBreakpoint="${this.fullscreenBreakpoint}"
|
|
23048
23097
|
.placement="${this.placement}"
|
|
23049
23098
|
.offset="${this.offset}"
|
|
23050
23099
|
?autoPlacement="${this.autoPlacement}"
|