@aurodesignsystem-dev/auro-formkit 0.0.0-pr624.17 → 0.0.0-pr624.19
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/components/bibtemplate/dist/buttonVersion.d.ts +1 -1
- package/components/bibtemplate/dist/index.js +61 -10
- package/components/bibtemplate/dist/registered.js +61 -10
- package/components/combobox/demo/api.min.js +164 -33
- package/components/combobox/demo/index.min.js +164 -33
- package/components/combobox/dist/index.js +152 -33
- package/components/combobox/dist/registered.js +152 -33
- package/components/counter/demo/api.min.js +159 -33
- package/components/counter/demo/index.min.js +159 -33
- package/components/counter/dist/auro-counter.d.ts +6 -0
- package/components/counter/dist/index.js +159 -33
- package/components/counter/dist/registered.js +159 -33
- package/components/datepicker/demo/api.md +9 -1
- package/components/datepicker/demo/api.min.js +791 -339
- package/components/datepicker/demo/index.md +68 -6
- package/components/datepicker/demo/index.min.js +791 -339
- package/components/datepicker/dist/auro-datepicker.d.ts +50 -11
- package/components/datepicker/dist/buttonVersion.d.ts +1 -1
- package/components/datepicker/dist/index.js +628 -176
- package/components/datepicker/dist/popoverVersion.d.ts +1 -1
- package/components/datepicker/dist/registered.js +628 -176
- package/components/datepicker/dist/styles/snowflake/style-css.d.ts +2 -0
- package/components/input/demo/api.md +1 -0
- package/components/input/demo/api.min.js +90 -22
- package/components/input/demo/index.min.js +90 -22
- package/components/input/dist/auro-input.d.ts +174 -0
- package/components/input/dist/index.js +90 -22
- package/components/input/dist/registered.js +90 -22
- package/components/menu/demo/api.min.js +12 -0
- package/components/menu/demo/index.min.js +12 -0
- package/components/menu/dist/auro-menu.d.ts +6 -0
- package/components/menu/dist/index.js +12 -0
- package/components/menu/dist/registered.js +12 -0
- package/components/select/demo/api.min.js +94 -17
- package/components/select/demo/index.min.js +94 -17
- package/components/select/dist/auro-select.d.ts +7 -0
- package/components/select/dist/index.js +82 -17
- package/components/select/dist/registered.js +82 -17
- package/package.json +3 -3
- /package/components/datepicker/dist/styles/{emphasized/style-css.d.ts → snowflake/color-css.d.ts} +0 -0
|
@@ -10836,22 +10836,17 @@ class BaseInput extends AuroElement$2$1 {
|
|
|
10836
10836
|
* @returns {void}
|
|
10837
10837
|
*/
|
|
10838
10838
|
getPlaceholder() {
|
|
10839
|
-
|
|
10839
|
+
this.inputElement === this.getActiveElement();
|
|
10840
10840
|
|
|
10841
10841
|
// console.warn('isFocused', isFocused);
|
|
10842
10842
|
// console.warn(this.inputElement);
|
|
10843
10843
|
// console.warn(this.getActiveElement());
|
|
10844
10844
|
|
|
10845
|
-
if (!isFocused) {
|
|
10846
|
-
|
|
10847
|
-
|
|
10848
|
-
|
|
10849
|
-
|
|
10850
|
-
this.placeholderStr = this.format ? this.format.toUpperCase() : 'MM/DD/YYYY';
|
|
10851
|
-
// return this.format ? this.format.toUpperCase() : 'MM/DD/YYYY';
|
|
10852
|
-
}
|
|
10853
|
-
} else {
|
|
10854
|
-
this.placeholderStr = '';
|
|
10845
|
+
// if (!isFocused) {
|
|
10846
|
+
if (this.placeholder) {
|
|
10847
|
+
this.placeholderStr = this.placeholder;
|
|
10848
|
+
} else if (this.type === 'date') {
|
|
10849
|
+
this.placeholderStr = this.format ? this.format.toUpperCase() : 'MM/DD/YYYY';
|
|
10855
10850
|
}
|
|
10856
10851
|
|
|
10857
10852
|
this.requestUpdate();
|
|
@@ -11838,7 +11833,6 @@ let AuroElement$3 = class AuroElement extends LitElement {
|
|
|
11838
11833
|
* @private
|
|
11839
11834
|
*/
|
|
11840
11835
|
wrapper: {
|
|
11841
|
-
type: HTMLElement,
|
|
11842
11836
|
attribute: false,
|
|
11843
11837
|
reflect: false
|
|
11844
11838
|
}
|
|
@@ -12147,7 +12141,7 @@ let AuroLoader$1 = class AuroLoader extends LitElement {
|
|
|
12147
12141
|
|
|
12148
12142
|
var loaderVersion$1 = '5.0.0';
|
|
12149
12143
|
|
|
12150
|
-
/* eslint-disable max-lines, curly */
|
|
12144
|
+
/* eslint-disable max-lines, curly, jsdoc/no-undefined-types */
|
|
12151
12145
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
12152
12146
|
// See LICENSE in the project root for license information.
|
|
12153
12147
|
|
|
@@ -12214,6 +12208,21 @@ let AuroButton$1 = class AuroButton extends AuroElement$3 {
|
|
|
12214
12208
|
* @private
|
|
12215
12209
|
*/
|
|
12216
12210
|
this.loaderTag = versioning.generateTag('auro-loader', loaderVersion$1, AuroLoader$1);
|
|
12211
|
+
|
|
12212
|
+
/**
|
|
12213
|
+
* @private
|
|
12214
|
+
*/
|
|
12215
|
+
this.buttonHref = undefined;
|
|
12216
|
+
|
|
12217
|
+
/**
|
|
12218
|
+
* @private
|
|
12219
|
+
*/
|
|
12220
|
+
this.buttonTarget = undefined;
|
|
12221
|
+
|
|
12222
|
+
/**
|
|
12223
|
+
* @private
|
|
12224
|
+
*/
|
|
12225
|
+
this.buttonRel = undefined;
|
|
12217
12226
|
}
|
|
12218
12227
|
|
|
12219
12228
|
static get styles() {
|
|
@@ -12280,13 +12289,23 @@ let AuroButton$1 = class AuroButton extends AuroElement$3 {
|
|
|
12280
12289
|
},
|
|
12281
12290
|
|
|
12282
12291
|
/**
|
|
12283
|
-
* Populates `
|
|
12292
|
+
* Populates `tabindex` to define the focusable sequence in keyboard navigation.
|
|
12284
12293
|
*/
|
|
12285
12294
|
tIndex: {
|
|
12286
12295
|
type: String,
|
|
12287
12296
|
reflect: true
|
|
12288
12297
|
},
|
|
12289
12298
|
|
|
12299
|
+
/**
|
|
12300
|
+
* Populates `tabindex` to define the focusable sequence in keyboard navigation.
|
|
12301
|
+
* Must be used with "." to ensure the host element does not retain a reference to the `tabindex` attribute.
|
|
12302
|
+
* Example: `<auro-button .tabindex="${this.disabled ? '-1' : '0'}"></auro-button>`
|
|
12303
|
+
*/
|
|
12304
|
+
tabindex: {
|
|
12305
|
+
type: String,
|
|
12306
|
+
reflect: false
|
|
12307
|
+
},
|
|
12308
|
+
|
|
12290
12309
|
/**
|
|
12291
12310
|
* Sets title attribute. The information is most often shown as a tooltip text when the mouse moves over the element.
|
|
12292
12311
|
*/
|
|
@@ -12319,6 +12338,27 @@ let AuroButton$1 = class AuroButton extends AuroElement$3 {
|
|
|
12319
12338
|
type: String,
|
|
12320
12339
|
reflect: true
|
|
12321
12340
|
},
|
|
12341
|
+
|
|
12342
|
+
/**
|
|
12343
|
+
* @private
|
|
12344
|
+
*/
|
|
12345
|
+
buttonHref: {
|
|
12346
|
+
type: String,
|
|
12347
|
+
},
|
|
12348
|
+
|
|
12349
|
+
/**
|
|
12350
|
+
* @private
|
|
12351
|
+
*/
|
|
12352
|
+
buttonTarget: {
|
|
12353
|
+
type: String,
|
|
12354
|
+
},
|
|
12355
|
+
|
|
12356
|
+
/**
|
|
12357
|
+
* @private
|
|
12358
|
+
*/
|
|
12359
|
+
buttonRel: {
|
|
12360
|
+
type: String,
|
|
12361
|
+
},
|
|
12322
12362
|
};
|
|
12323
12363
|
}
|
|
12324
12364
|
|
|
@@ -12409,14 +12449,17 @@ let AuroButton$1 = class AuroButton extends AuroElement$3 {
|
|
|
12409
12449
|
loading: this.loading,
|
|
12410
12450
|
};
|
|
12411
12451
|
|
|
12452
|
+
const tag = this.buttonHref ? literal`a` : literal`button`;
|
|
12453
|
+
const part = this.buttonHref ? 'link' : 'button';
|
|
12454
|
+
|
|
12412
12455
|
return html`
|
|
12413
|
-
|
|
12414
|
-
part="
|
|
12456
|
+
<${tag}
|
|
12457
|
+
part="${part}"
|
|
12415
12458
|
aria-label="${ifDefined(this.loading ? this.loadingText : this.currentAriaLabel || undefined)}"
|
|
12416
12459
|
aria-labelledby="${ifDefined(this.loading ? undefined : this.currentAriaLabelledBy || undefined)}"
|
|
12417
|
-
|
|
12460
|
+
tabindex="${ifDefined(this.tIndex || this.tabindex)}"
|
|
12418
12461
|
?autofocus="${this.autofocus}"
|
|
12419
|
-
class
|
|
12462
|
+
class=${classMap(classes)}
|
|
12420
12463
|
?disabled="${this.disabled || this.loading}"
|
|
12421
12464
|
?onDark="${this.onDark}"
|
|
12422
12465
|
title="${ifDefined(this.title ? this.title : undefined)}"
|
|
@@ -12425,6 +12468,9 @@ let AuroButton$1 = class AuroButton extends AuroElement$3 {
|
|
|
12425
12468
|
variant="${ifDefined(this.variant ? this.variant : undefined)}"
|
|
12426
12469
|
.value="${ifDefined(this.value ? this.value : undefined)}"
|
|
12427
12470
|
@click="${this.type === 'submit' ? this.surfaceSubmitEvent : undefined}"
|
|
12471
|
+
href="${ifDefined(this.buttonHref || undefined)}"
|
|
12472
|
+
target="${ifDefined(this.buttonTarget || undefined)}"
|
|
12473
|
+
rel="${ifDefined(this.buttonRel || undefined)}"
|
|
12428
12474
|
>
|
|
12429
12475
|
${ifDefined(this.loading ? html`<${this.loaderTag} pulse part="loader"></${this.loaderTag}>` : undefined)}
|
|
12430
12476
|
|
|
@@ -12433,12 +12479,12 @@ let AuroButton$1 = class AuroButton extends AuroElement$3 {
|
|
|
12433
12479
|
<slot></slot>
|
|
12434
12480
|
</span>
|
|
12435
12481
|
</span>
|
|
12436
|
-
|
|
12482
|
+
</${tag}>
|
|
12437
12483
|
`;
|
|
12438
12484
|
}
|
|
12439
12485
|
|
|
12440
12486
|
/**
|
|
12441
|
-
* Renders the layout of the button
|
|
12487
|
+
* Renders the layout of the button.
|
|
12442
12488
|
* @returns {TemplateResult}
|
|
12443
12489
|
* @private
|
|
12444
12490
|
*/
|
|
@@ -12693,6 +12739,20 @@ class AuroInput extends BaseInput {
|
|
|
12693
12739
|
this.iconTag = versioning.generateTag('auro-formkit-input-icon', iconVersion$1, AuroIcon$1);
|
|
12694
12740
|
}
|
|
12695
12741
|
|
|
12742
|
+
static get properties() {
|
|
12743
|
+
return {
|
|
12744
|
+
...super.properties,
|
|
12745
|
+
|
|
12746
|
+
/**
|
|
12747
|
+
* @type {boolean}
|
|
12748
|
+
*/
|
|
12749
|
+
hideInputVisually: {
|
|
12750
|
+
type: Boolean,
|
|
12751
|
+
reflect: true,
|
|
12752
|
+
}
|
|
12753
|
+
};
|
|
12754
|
+
}
|
|
12755
|
+
|
|
12696
12756
|
static get styles() {
|
|
12697
12757
|
return [
|
|
12698
12758
|
css`${classicStyleCss}`,
|
|
@@ -12727,8 +12787,13 @@ class AuroInput extends BaseInput {
|
|
|
12727
12787
|
* @returns {object} - Returns classmap.
|
|
12728
12788
|
*/
|
|
12729
12789
|
get commonInputClasses() {
|
|
12790
|
+
console.log(`hideInputVisually: ${JSON.stringify(this.hideInputVisually)}`);
|
|
12730
12791
|
return {
|
|
12731
|
-
'util_displayHiddenVisually': this.
|
|
12792
|
+
'util_displayHiddenVisually': this.hideInputVisually !== undefined
|
|
12793
|
+
? this.hideInputVisually
|
|
12794
|
+
// eslint-disable-next-line no-warning-comments
|
|
12795
|
+
// TODO: refactor this to use a less brittle/forced solution.
|
|
12796
|
+
: this.hasDisplayValueContent && !this.hasFocus && this.value && this.value.length > 0
|
|
12732
12797
|
};
|
|
12733
12798
|
}
|
|
12734
12799
|
|
|
@@ -12740,7 +12805,10 @@ class AuroInput extends BaseInput {
|
|
|
12740
12805
|
get legacyInputClasses() {
|
|
12741
12806
|
return {
|
|
12742
12807
|
...this.commonInputClasses,
|
|
12743
|
-
'util_displayHiddenVisually':
|
|
12808
|
+
'util_displayHiddenVisually':
|
|
12809
|
+
this.hideInputVisually !== undefined
|
|
12810
|
+
? this.hideInputVisually
|
|
12811
|
+
: !this.hasFocus && !this.value
|
|
12744
12812
|
};
|
|
12745
12813
|
}
|
|
12746
12814
|
|
|
@@ -13668,7 +13736,6 @@ let AuroElement$1 = class AuroElement extends LitElement {
|
|
|
13668
13736
|
* @private
|
|
13669
13737
|
*/
|
|
13670
13738
|
wrapper: {
|
|
13671
|
-
type: HTMLElement,
|
|
13672
13739
|
attribute: false,
|
|
13673
13740
|
reflect: false
|
|
13674
13741
|
}
|
|
@@ -13977,7 +14044,7 @@ class AuroLoader extends LitElement {
|
|
|
13977
14044
|
|
|
13978
14045
|
var loaderVersion = '5.0.0';
|
|
13979
14046
|
|
|
13980
|
-
/* eslint-disable max-lines, curly */
|
|
14047
|
+
/* eslint-disable max-lines, curly, jsdoc/no-undefined-types */
|
|
13981
14048
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
13982
14049
|
// See LICENSE in the project root for license information.
|
|
13983
14050
|
|
|
@@ -14044,6 +14111,21 @@ class AuroButton extends AuroElement$1 {
|
|
|
14044
14111
|
* @private
|
|
14045
14112
|
*/
|
|
14046
14113
|
this.loaderTag = versioning.generateTag('auro-loader', loaderVersion, AuroLoader);
|
|
14114
|
+
|
|
14115
|
+
/**
|
|
14116
|
+
* @private
|
|
14117
|
+
*/
|
|
14118
|
+
this.buttonHref = undefined;
|
|
14119
|
+
|
|
14120
|
+
/**
|
|
14121
|
+
* @private
|
|
14122
|
+
*/
|
|
14123
|
+
this.buttonTarget = undefined;
|
|
14124
|
+
|
|
14125
|
+
/**
|
|
14126
|
+
* @private
|
|
14127
|
+
*/
|
|
14128
|
+
this.buttonRel = undefined;
|
|
14047
14129
|
}
|
|
14048
14130
|
|
|
14049
14131
|
static get styles() {
|
|
@@ -14110,13 +14192,23 @@ class AuroButton extends AuroElement$1 {
|
|
|
14110
14192
|
},
|
|
14111
14193
|
|
|
14112
14194
|
/**
|
|
14113
|
-
* Populates `
|
|
14195
|
+
* Populates `tabindex` to define the focusable sequence in keyboard navigation.
|
|
14114
14196
|
*/
|
|
14115
14197
|
tIndex: {
|
|
14116
14198
|
type: String,
|
|
14117
14199
|
reflect: true
|
|
14118
14200
|
},
|
|
14119
14201
|
|
|
14202
|
+
/**
|
|
14203
|
+
* Populates `tabindex` to define the focusable sequence in keyboard navigation.
|
|
14204
|
+
* Must be used with "." to ensure the host element does not retain a reference to the `tabindex` attribute.
|
|
14205
|
+
* Example: `<auro-button .tabindex="${this.disabled ? '-1' : '0'}"></auro-button>`
|
|
14206
|
+
*/
|
|
14207
|
+
tabindex: {
|
|
14208
|
+
type: String,
|
|
14209
|
+
reflect: false
|
|
14210
|
+
},
|
|
14211
|
+
|
|
14120
14212
|
/**
|
|
14121
14213
|
* Sets title attribute. The information is most often shown as a tooltip text when the mouse moves over the element.
|
|
14122
14214
|
*/
|
|
@@ -14149,6 +14241,27 @@ class AuroButton extends AuroElement$1 {
|
|
|
14149
14241
|
type: String,
|
|
14150
14242
|
reflect: true
|
|
14151
14243
|
},
|
|
14244
|
+
|
|
14245
|
+
/**
|
|
14246
|
+
* @private
|
|
14247
|
+
*/
|
|
14248
|
+
buttonHref: {
|
|
14249
|
+
type: String,
|
|
14250
|
+
},
|
|
14251
|
+
|
|
14252
|
+
/**
|
|
14253
|
+
* @private
|
|
14254
|
+
*/
|
|
14255
|
+
buttonTarget: {
|
|
14256
|
+
type: String,
|
|
14257
|
+
},
|
|
14258
|
+
|
|
14259
|
+
/**
|
|
14260
|
+
* @private
|
|
14261
|
+
*/
|
|
14262
|
+
buttonRel: {
|
|
14263
|
+
type: String,
|
|
14264
|
+
},
|
|
14152
14265
|
};
|
|
14153
14266
|
}
|
|
14154
14267
|
|
|
@@ -14239,14 +14352,17 @@ class AuroButton extends AuroElement$1 {
|
|
|
14239
14352
|
loading: this.loading,
|
|
14240
14353
|
};
|
|
14241
14354
|
|
|
14355
|
+
const tag = this.buttonHref ? literal`a` : literal`button`;
|
|
14356
|
+
const part = this.buttonHref ? 'link' : 'button';
|
|
14357
|
+
|
|
14242
14358
|
return html`
|
|
14243
|
-
|
|
14244
|
-
part="
|
|
14359
|
+
<${tag}
|
|
14360
|
+
part="${part}"
|
|
14245
14361
|
aria-label="${ifDefined(this.loading ? this.loadingText : this.currentAriaLabel || undefined)}"
|
|
14246
14362
|
aria-labelledby="${ifDefined(this.loading ? undefined : this.currentAriaLabelledBy || undefined)}"
|
|
14247
|
-
|
|
14363
|
+
tabindex="${ifDefined(this.tIndex || this.tabindex)}"
|
|
14248
14364
|
?autofocus="${this.autofocus}"
|
|
14249
|
-
class
|
|
14365
|
+
class=${classMap(classes)}
|
|
14250
14366
|
?disabled="${this.disabled || this.loading}"
|
|
14251
14367
|
?onDark="${this.onDark}"
|
|
14252
14368
|
title="${ifDefined(this.title ? this.title : undefined)}"
|
|
@@ -14255,6 +14371,9 @@ class AuroButton extends AuroElement$1 {
|
|
|
14255
14371
|
variant="${ifDefined(this.variant ? this.variant : undefined)}"
|
|
14256
14372
|
.value="${ifDefined(this.value ? this.value : undefined)}"
|
|
14257
14373
|
@click="${this.type === 'submit' ? this.surfaceSubmitEvent : undefined}"
|
|
14374
|
+
href="${ifDefined(this.buttonHref || undefined)}"
|
|
14375
|
+
target="${ifDefined(this.buttonTarget || undefined)}"
|
|
14376
|
+
rel="${ifDefined(this.buttonRel || undefined)}"
|
|
14258
14377
|
>
|
|
14259
14378
|
${ifDefined(this.loading ? html`<${this.loaderTag} pulse part="loader"></${this.loaderTag}>` : undefined)}
|
|
14260
14379
|
|
|
@@ -14263,12 +14382,12 @@ class AuroButton extends AuroElement$1 {
|
|
|
14263
14382
|
<slot></slot>
|
|
14264
14383
|
</span>
|
|
14265
14384
|
</span>
|
|
14266
|
-
|
|
14385
|
+
</${tag}>
|
|
14267
14386
|
`;
|
|
14268
14387
|
}
|
|
14269
14388
|
|
|
14270
14389
|
/**
|
|
14271
|
-
* Renders the layout of the button
|
|
14390
|
+
* Renders the layout of the button.
|
|
14272
14391
|
* @returns {TemplateResult}
|
|
14273
14392
|
* @private
|
|
14274
14393
|
*/
|
|
@@ -14277,7 +14396,7 @@ class AuroButton extends AuroElement$1 {
|
|
|
14277
14396
|
}
|
|
14278
14397
|
}
|
|
14279
14398
|
|
|
14280
|
-
var buttonVersion = '11.
|
|
14399
|
+
var buttonVersion = '11.2.1';
|
|
14281
14400
|
|
|
14282
14401
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
14283
14402
|
// See LICENSE in the project root for license information.
|
|
@@ -16173,10 +16292,10 @@ class AuroCombobox extends AuroElement {
|
|
|
16173
16292
|
this.dropdown = this.shadowRoot.querySelector(this.dropdownTag._$litStatic$);
|
|
16174
16293
|
this.input = this.dropdown.querySelector(this.inputTag._$litStatic$);
|
|
16175
16294
|
|
|
16176
|
-
this.configureMenu();
|
|
16177
16295
|
this.configureInput();
|
|
16178
16296
|
this.configureDropdown();
|
|
16179
16297
|
this.configureCombobox();
|
|
16298
|
+
this.configureMenu();
|
|
16180
16299
|
|
|
16181
16300
|
// Set the initial value in auro-menu if defined
|
|
16182
16301
|
if (this.hasAttribute('value') && this.getAttribute('value').length > 0) {
|