@aurodesignsystem/auro-formkit 2.0.0-beta.17 → 2.0.0-beta.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/.turbo/cache/00aadf5485902e7b-meta.json +1 -0
- package/.turbo/cache/00aadf5485902e7b.tar.zst +0 -0
- package/.turbo/cache/036445b490c155bd-meta.json +1 -0
- package/.turbo/cache/036445b490c155bd.tar.zst +0 -0
- package/.turbo/cache/0447d55c21d0ac8f-meta.json +1 -0
- package/.turbo/cache/0447d55c21d0ac8f.tar.zst +0 -0
- package/.turbo/cache/2059bc724ac24519-meta.json +1 -1
- package/.turbo/cache/2059bc724ac24519.tar.zst +0 -0
- package/.turbo/cache/2397ce215c2442f0-meta.json +1 -0
- package/.turbo/cache/2397ce215c2442f0.tar.zst +0 -0
- package/.turbo/cache/23b3a2fea223679d-meta.json +1 -1
- package/.turbo/cache/23b3a2fea223679d.tar.zst +0 -0
- package/.turbo/cache/2c0d681132c153dd-meta.json +1 -1
- package/.turbo/cache/3795ae4e6361b8af-meta.json +1 -0
- package/.turbo/cache/3795ae4e6361b8af.tar.zst +0 -0
- package/.turbo/cache/3c39004da91359c5-meta.json +1 -0
- package/.turbo/cache/3c39004da91359c5.tar.zst +0 -0
- package/.turbo/cache/4006a206400d5c7b-meta.json +1 -1
- package/.turbo/cache/45cd32cd38eacbcb-meta.json +1 -1
- package/.turbo/cache/492dda333b8d15f1-meta.json +1 -1
- package/.turbo/cache/4ee009a370d54a8e-meta.json +1 -0
- package/.turbo/cache/4ee009a370d54a8e.tar.zst +0 -0
- package/.turbo/cache/50cd7dcfc9f820c5-meta.json +1 -1
- package/.turbo/cache/51eaa58d5c167de8-meta.json +1 -1
- package/.turbo/cache/5b57cc0e26e1fd5d-meta.json +1 -1
- package/.turbo/cache/60ad74320c682a2b-meta.json +1 -1
- package/.turbo/cache/61e218aba69cff58-meta.json +1 -1
- package/.turbo/cache/631d441eebe7e4ac-meta.json +1 -0
- package/.turbo/cache/631d441eebe7e4ac.tar.zst +0 -0
- package/.turbo/cache/64238eb3ce19a23b-meta.json +1 -0
- package/.turbo/cache/64238eb3ce19a23b.tar.zst +0 -0
- package/.turbo/cache/72c248aead46dc7a-meta.json +1 -0
- package/.turbo/cache/72c248aead46dc7a.tar.zst +0 -0
- package/.turbo/cache/77da375a012de9d0-meta.json +1 -1
- package/.turbo/cache/78418f9089673a21-meta.json +1 -1
- package/.turbo/cache/7964d1656e9e702a-meta.json +1 -1
- package/.turbo/cache/7bf2b06a479d0b30-meta.json +1 -1
- package/.turbo/cache/7c9ca6163e61285c-meta.json +1 -1
- package/.turbo/cache/80ebd4b1fa5c1e3a-meta.json +1 -0
- package/.turbo/cache/80ebd4b1fa5c1e3a.tar.zst +0 -0
- package/.turbo/cache/899d530990daf6ee-meta.json +1 -0
- package/.turbo/cache/899d530990daf6ee.tar.zst +0 -0
- package/.turbo/cache/8bb856bd31b5b479-meta.json +1 -1
- package/.turbo/cache/8f5fef3e04a6fcfa-meta.json +1 -1
- package/.turbo/cache/9d99fa3ab31d272f-meta.json +1 -0
- package/.turbo/cache/9d99fa3ab31d272f.tar.zst +0 -0
- package/.turbo/cache/a5df9f29608a70d3-meta.json +1 -0
- package/.turbo/cache/a5df9f29608a70d3.tar.zst +0 -0
- package/.turbo/cache/a779ea8b78ce9d59-meta.json +1 -1
- package/.turbo/cache/a9c36a3534c5496b-meta.json +1 -1
- package/.turbo/cache/abdfc2bec9f4fa6e-meta.json +1 -0
- package/.turbo/cache/abdfc2bec9f4fa6e.tar.zst +0 -0
- package/.turbo/cache/abe75d67a97447a5-meta.json +1 -0
- package/.turbo/cache/abe75d67a97447a5.tar.zst +0 -0
- package/.turbo/cache/ae04f51e4ebab64d-meta.json +1 -0
- package/.turbo/cache/ae04f51e4ebab64d.tar.zst +0 -0
- package/.turbo/cache/af7a63c49a499d50-meta.json +1 -0
- package/.turbo/cache/af7a63c49a499d50.tar.zst +0 -0
- package/.turbo/cache/b5e6dc7fb9ae1a2f-meta.json +1 -1
- package/.turbo/cache/b6a202cc85cb61a0-meta.json +1 -1
- package/.turbo/cache/ba270a0ef147f2e5-meta.json +1 -1
- package/.turbo/cache/be0b95293ea517cc-meta.json +1 -1
- package/.turbo/cache/c03a12ff38ba1e02-meta.json +1 -1
- package/.turbo/cache/c1312c6f8c051461-meta.json +1 -1
- package/.turbo/cache/c1312c6f8c051461.tar.zst +0 -0
- package/.turbo/cache/c3c8d8535ef6869a-meta.json +1 -0
- package/.turbo/cache/{56f2745125fdd552.tar.zst → c3c8d8535ef6869a.tar.zst} +0 -0
- package/.turbo/cache/c6c6411199b68170-meta.json +1 -1
- package/.turbo/cache/c6dbc49c3038946d-meta.json +1 -1
- package/.turbo/cache/cae7586c45bed13e-meta.json +1 -1
- package/.turbo/cache/cae7586c45bed13e.tar.zst +0 -0
- package/.turbo/cache/d007a96bfd17f5e4-meta.json +1 -0
- package/.turbo/cache/d007a96bfd17f5e4.tar.zst +0 -0
- package/.turbo/cache/d5db503b2eaf239c-meta.json +1 -1
- package/.turbo/cache/d775555355d6b8fc-meta.json +1 -1
- package/.turbo/cache/d7c3007be148d2a1-meta.json +1 -1
- package/.turbo/cache/db5e65d819bfe66b-meta.json +1 -1
- package/.turbo/cache/dc597b3ea4f61ec8-meta.json +1 -1
- package/.turbo/cache/e12c0f24d2d8f95b-meta.json +1 -0
- package/.turbo/cache/e12c0f24d2d8f95b.tar.zst +0 -0
- package/.turbo/cache/e1875aafbbfef851-meta.json +1 -0
- package/.turbo/cache/e1875aafbbfef851.tar.zst +0 -0
- package/.turbo/cache/e210e1ea5fb692c5-meta.json +1 -0
- package/.turbo/cache/e210e1ea5fb692c5.tar.zst +0 -0
- package/.turbo/cache/e62cfee068e3ef36-meta.json +1 -1
- package/.turbo/cache/e9abd65ee0250c1e-meta.json +1 -0
- package/.turbo/cache/e9abd65ee0250c1e.tar.zst +0 -0
- package/CHANGELOG.md +25 -0
- package/components/checkbox/.turbo/turbo-build.log +3 -3
- package/components/checkbox/.turbo/turbo-bundler.log +3 -3
- package/components/checkbox/README.md +1 -1
- package/components/checkbox/demo/api.md +4 -3
- package/components/checkbox/demo/api.min.js +11 -3
- package/components/checkbox/demo/index.min.js +11 -3
- package/components/checkbox/dist/auro-checkbox-group.d.ts +5 -0
- package/components/checkbox/dist/auro-checkbox-group.d.ts.map +1 -1
- package/components/checkbox/dist/index.js +11 -3
- package/components/checkbox/src/auro-checkbox-group.js +11 -3
- package/components/combobox/.turbo/turbo-build.log +3 -3
- package/components/combobox/README.md +4 -4
- package/components/combobox/demo/api.md +5 -4
- package/components/combobox/demo/api.min.js +16 -8
- package/components/combobox/demo/index.min.js +16 -8
- package/components/combobox/dist/auro-combobox.d.ts +5 -0
- package/components/combobox/dist/auro-combobox.d.ts.map +1 -1
- package/components/combobox/dist/index.js +16 -8
- package/components/combobox/src/auro-combobox.js +11 -3
- package/components/counter/.turbo/turbo-build.log +2 -2
- package/components/counter/.turbo/turbo-bundler.log +6 -3
- package/components/counter/README.md +1 -1
- package/components/counter/demo/api.md +11 -4
- package/components/counter/demo/api.min.js +20 -3
- package/components/counter/demo/index.min.js +20 -3
- package/components/counter/dist/auro-counter-group.d.ts +5 -0
- package/components/counter/dist/auro-counter-group.d.ts.map +1 -1
- package/components/counter/dist/auro-counter.d.ts +5 -0
- package/components/counter/dist/auro-counter.d.ts.map +1 -1
- package/components/counter/dist/index.js +20 -3
- package/components/counter/src/auro-counter-group.js +9 -1
- package/components/counter/src/auro-counter.js +11 -2
- package/components/datepicker/.turbo/turbo-build.log +3 -3
- package/components/datepicker/README.md +4 -4
- package/components/datepicker/demo/api.md +5 -4
- package/components/datepicker/demo/api.min.js +15 -7
- package/components/datepicker/demo/index.min.js +15 -7
- package/components/datepicker/dist/auro-datepicker.d.ts +5 -0
- package/components/datepicker/dist/auro-datepicker.d.ts.map +1 -1
- package/components/datepicker/dist/index.js +15 -7
- package/components/datepicker/src/auro-datepicker.js +10 -2
- package/components/dropdown/.turbo/turbo-build.log +3 -3
- package/components/dropdown/.turbo/turbo-bundler.log +3 -3
- package/components/dropdown/README.md +1 -1
- package/components/form/.turbo/turbo-build.log +3 -3
- package/components/form/.turbo/turbo-bundler.log +3 -3
- package/components/form/README.md +1 -1
- package/components/form/demo/api.min.js +218 -70
- package/components/form/demo/index.min.js +218 -70
- package/components/form/demo/registerDemoDeps.js +3 -2
- package/components/form/demo/working.html +23 -1
- package/components/form/dist/auro-form.d.ts +60 -6
- package/components/form/dist/auro-form.d.ts.map +1 -1
- package/components/form/dist/index.js +218 -70
- package/components/form/src/auro-form.js +216 -68
- package/components/form/src/styles/style-css.js +1 -1
- package/components/form/src/styles/style.css +0 -8
- package/components/form/src/styles/style.scss +0 -10
- package/components/input/.turbo/turbo-build.log +3 -3
- package/components/input/.turbo/turbo-bundler.log +3 -3
- package/components/input/README.md +1 -1
- package/components/input/demo/api.md +5 -5
- package/components/input/demo/api.min.js +5 -5
- package/components/input/demo/index.min.js +5 -5
- package/components/input/dist/base-input.d.ts +3 -3
- package/components/input/dist/base-input.d.ts.map +1 -1
- package/components/input/dist/index.js +5 -5
- package/components/input/src/base-input.js +5 -5
- package/components/menu/.turbo/turbo-build.log +3 -3
- package/components/menu/.turbo/turbo-bundler.log +3 -3
- package/components/menu/README.md +1 -1
- package/components/radio/.turbo/turbo-build.log +3 -3
- package/components/radio/.turbo/turbo-bundler.log +3 -3
- package/components/radio/README.md +1 -1
- package/components/radio/demo/api.md +4 -3
- package/components/radio/demo/api.min.js +9 -1
- package/components/radio/demo/index.min.js +9 -1
- package/components/radio/dist/auro-radio-group.d.ts +5 -0
- package/components/radio/dist/auro-radio-group.d.ts.map +1 -1
- package/components/radio/dist/index.js +9 -1
- package/components/radio/src/auro-radio-group.js +9 -1
- package/components/select/.turbo/turbo-build.log +3 -3
- package/components/select/README.md +3 -3
- package/components/select/demo/api.md +4 -3
- package/components/select/demo/api.min.js +9 -1
- package/components/select/demo/index.min.js +9 -1
- package/components/select/dist/auro-select.d.ts +5 -0
- package/components/select/dist/auro-select.d.ts.map +1 -1
- package/components/select/dist/index.js +9 -1
- package/components/select/src/auro-select.js +9 -1
- package/package.json +1 -1
- package/.turbo/cache/000950e13093845f-meta.json +0 -1
- package/.turbo/cache/000950e13093845f.tar.zst +0 -0
- package/.turbo/cache/02ee016619902665-meta.json +0 -1
- package/.turbo/cache/02ee016619902665.tar.zst +0 -0
- package/.turbo/cache/06ca4027e423c554-meta.json +0 -1
- package/.turbo/cache/06ca4027e423c554.tar.zst +0 -0
- package/.turbo/cache/1e855b2163b7c980-meta.json +0 -1
- package/.turbo/cache/1e855b2163b7c980.tar.zst +0 -0
- package/.turbo/cache/26dbf393768f87cc-meta.json +0 -1
- package/.turbo/cache/26dbf393768f87cc.tar.zst +0 -0
- package/.turbo/cache/31bd5687f46c7eba-meta.json +0 -1
- package/.turbo/cache/31bd5687f46c7eba.tar.zst +0 -0
- package/.turbo/cache/3488cff10dd06acd-meta.json +0 -1
- package/.turbo/cache/3488cff10dd06acd.tar.zst +0 -0
- package/.turbo/cache/3c8718d2ba6d3fe5-meta.json +0 -1
- package/.turbo/cache/3c8718d2ba6d3fe5.tar.zst +0 -0
- package/.turbo/cache/43693504bf6e7c4c-meta.json +0 -1
- package/.turbo/cache/43693504bf6e7c4c.tar.zst +0 -0
- package/.turbo/cache/56f2745125fdd552-meta.json +0 -1
- package/.turbo/cache/5f43911cbacf7df1-meta.json +0 -1
- package/.turbo/cache/5f43911cbacf7df1.tar.zst +0 -0
- package/.turbo/cache/647bda3b31d82dc2-meta.json +0 -1
- package/.turbo/cache/647bda3b31d82dc2.tar.zst +0 -0
- package/.turbo/cache/6951c2a52e5ab5f7-meta.json +0 -1
- package/.turbo/cache/6951c2a52e5ab5f7.tar.zst +0 -0
- package/.turbo/cache/876b8fa390c8ec81-meta.json +0 -1
- package/.turbo/cache/876b8fa390c8ec81.tar.zst +0 -0
- package/.turbo/cache/8f287fd5d33579ae-meta.json +0 -1
- package/.turbo/cache/8f287fd5d33579ae.tar.zst +0 -0
- package/.turbo/cache/8fcce3ba8357be57-meta.json +0 -1
- package/.turbo/cache/8fcce3ba8357be57.tar.zst +0 -0
- package/.turbo/cache/9b5868be65819fdf-meta.json +0 -1
- package/.turbo/cache/9b5868be65819fdf.tar.zst +0 -0
- package/.turbo/cache/a227e8174447e364-meta.json +0 -1
- package/.turbo/cache/a227e8174447e364.tar.zst +0 -0
- package/.turbo/cache/c3b2cc1b044a4135-meta.json +0 -1
- package/.turbo/cache/c3b2cc1b044a4135.tar.zst +0 -0
- package/.turbo/cache/cf143eb1a55684db-meta.json +0 -1
- package/.turbo/cache/cf143eb1a55684db.tar.zst +0 -0
- package/.turbo/cache/d5b85352bc667f19-meta.json +0 -1
- package/.turbo/cache/d5b85352bc667f19.tar.zst +0 -0
- package/.turbo/cache/e392fe0927e4af23-meta.json +0 -1
- package/.turbo/cache/e392fe0927e4af23.tar.zst +0 -0
- package/.turbo/cache/f2913bf19939d840-meta.json +0 -1
- package/.turbo/cache/f2913bf19939d840.tar.zst +0 -0
- package/.turbo/cache/f86b28e5ea2c66fe-meta.json +0 -1
- package/.turbo/cache/f86b28e5ea2c66fe.tar.zst +0 -0
|
@@ -25,10 +25,11 @@
|
|
|
25
25
|
|
|
26
26
|
## Methods
|
|
27
27
|
|
|
28
|
-
| Method
|
|
29
|
-
|
|
30
|
-
| [focus](#focus)
|
|
31
|
-
| [reset](#reset)
|
|
28
|
+
| Method | Type | Description |
|
|
29
|
+
|------------|----------------------------------------|--------------------------------------------------|
|
|
30
|
+
| [focus](#focus) | `(): void` | Focuses the combobox trigger input. |
|
|
31
|
+
| [reset](#reset) | `(): void` | Resets component to initial state. |
|
|
32
|
+
| [validate](#validate) | `(force?: boolean \| undefined): void` | Validates value<br /><br />**force**: Whether to force validation. |
|
|
32
33
|
|
|
33
34
|
## Events
|
|
34
35
|
|
|
@@ -6337,7 +6337,7 @@ class BaseInput extends r$5 {
|
|
|
6337
6337
|
}
|
|
6338
6338
|
|
|
6339
6339
|
if (changedProperties.has('error')) {
|
|
6340
|
-
this.
|
|
6340
|
+
this.validate(true);
|
|
6341
6341
|
}
|
|
6342
6342
|
|
|
6343
6343
|
if (changedProperties.has('validity')) {
|
|
@@ -6529,11 +6529,11 @@ class BaseInput extends r$5 {
|
|
|
6529
6529
|
}
|
|
6530
6530
|
|
|
6531
6531
|
/**
|
|
6532
|
-
*
|
|
6533
|
-
* @
|
|
6532
|
+
* Validates value
|
|
6533
|
+
* @param {boolean} [force=false] - Whether to force validation.
|
|
6534
6534
|
*/
|
|
6535
|
-
validate() {
|
|
6536
|
-
this.validation.validate(this);
|
|
6535
|
+
validate(force = false) {
|
|
6536
|
+
this.validation.validate(this, force);
|
|
6537
6537
|
}
|
|
6538
6538
|
|
|
6539
6539
|
/**
|
|
@@ -9754,7 +9754,7 @@ class AuroCombobox extends r$7 {
|
|
|
9754
9754
|
*/
|
|
9755
9755
|
this.addEventListener('focusout', () => {
|
|
9756
9756
|
if (document.activeElement !== this) {
|
|
9757
|
-
this.
|
|
9757
|
+
this.validate();
|
|
9758
9758
|
}
|
|
9759
9759
|
|
|
9760
9760
|
// Set to undefined if empty
|
|
@@ -9832,7 +9832,7 @@ class AuroCombobox extends r$7 {
|
|
|
9832
9832
|
|
|
9833
9833
|
// Validate only if the value was set programmatically
|
|
9834
9834
|
if (document.activeElement !== this) {
|
|
9835
|
-
this.
|
|
9835
|
+
this.validate();
|
|
9836
9836
|
}
|
|
9837
9837
|
|
|
9838
9838
|
// Hide menu if value is empty, otherwise show if there are available suggestions
|
|
@@ -9961,6 +9961,14 @@ class AuroCombobox extends r$7 {
|
|
|
9961
9961
|
this.menu.value = undefined;
|
|
9962
9962
|
}
|
|
9963
9963
|
|
|
9964
|
+
/**
|
|
9965
|
+
* Validates value
|
|
9966
|
+
* @param {boolean} [force=false] - Whether to force validation.
|
|
9967
|
+
*/
|
|
9968
|
+
validate(force = false) {
|
|
9969
|
+
this.validation.validate(this, force);
|
|
9970
|
+
}
|
|
9971
|
+
|
|
9964
9972
|
updated(changedProperties) {
|
|
9965
9973
|
// After the component is ready, send direct value changes to auro-menu.
|
|
9966
9974
|
if (changedProperties.has('value')) {
|
|
@@ -9989,7 +9997,7 @@ class AuroCombobox extends r$7 {
|
|
|
9989
9997
|
|
|
9990
9998
|
if (changedProperties.has('error')) {
|
|
9991
9999
|
this.input.setAttribute('error', this.getAttribute('error'));
|
|
9992
|
-
this.
|
|
10000
|
+
this.validate();
|
|
9993
10001
|
}
|
|
9994
10002
|
}
|
|
9995
10003
|
|
|
@@ -6195,7 +6195,7 @@ class BaseInput extends r$5 {
|
|
|
6195
6195
|
}
|
|
6196
6196
|
|
|
6197
6197
|
if (changedProperties.has('error')) {
|
|
6198
|
-
this.
|
|
6198
|
+
this.validate(true);
|
|
6199
6199
|
}
|
|
6200
6200
|
|
|
6201
6201
|
if (changedProperties.has('validity')) {
|
|
@@ -6387,11 +6387,11 @@ class BaseInput extends r$5 {
|
|
|
6387
6387
|
}
|
|
6388
6388
|
|
|
6389
6389
|
/**
|
|
6390
|
-
*
|
|
6391
|
-
* @
|
|
6390
|
+
* Validates value
|
|
6391
|
+
* @param {boolean} [force=false] - Whether to force validation.
|
|
6392
6392
|
*/
|
|
6393
|
-
validate() {
|
|
6394
|
-
this.validation.validate(this);
|
|
6393
|
+
validate(force = false) {
|
|
6394
|
+
this.validation.validate(this, force);
|
|
6395
6395
|
}
|
|
6396
6396
|
|
|
6397
6397
|
/**
|
|
@@ -9612,7 +9612,7 @@ class AuroCombobox extends r$7 {
|
|
|
9612
9612
|
*/
|
|
9613
9613
|
this.addEventListener('focusout', () => {
|
|
9614
9614
|
if (document.activeElement !== this) {
|
|
9615
|
-
this.
|
|
9615
|
+
this.validate();
|
|
9616
9616
|
}
|
|
9617
9617
|
|
|
9618
9618
|
// Set to undefined if empty
|
|
@@ -9690,7 +9690,7 @@ class AuroCombobox extends r$7 {
|
|
|
9690
9690
|
|
|
9691
9691
|
// Validate only if the value was set programmatically
|
|
9692
9692
|
if (document.activeElement !== this) {
|
|
9693
|
-
this.
|
|
9693
|
+
this.validate();
|
|
9694
9694
|
}
|
|
9695
9695
|
|
|
9696
9696
|
// Hide menu if value is empty, otherwise show if there are available suggestions
|
|
@@ -9819,6 +9819,14 @@ class AuroCombobox extends r$7 {
|
|
|
9819
9819
|
this.menu.value = undefined;
|
|
9820
9820
|
}
|
|
9821
9821
|
|
|
9822
|
+
/**
|
|
9823
|
+
* Validates value
|
|
9824
|
+
* @param {boolean} [force=false] - Whether to force validation.
|
|
9825
|
+
*/
|
|
9826
|
+
validate(force = false) {
|
|
9827
|
+
this.validation.validate(this, force);
|
|
9828
|
+
}
|
|
9829
|
+
|
|
9822
9830
|
updated(changedProperties) {
|
|
9823
9831
|
// After the component is ready, send direct value changes to auro-menu.
|
|
9824
9832
|
if (changedProperties.has('value')) {
|
|
@@ -9847,7 +9855,7 @@ class AuroCombobox extends r$7 {
|
|
|
9847
9855
|
|
|
9848
9856
|
if (changedProperties.has('error')) {
|
|
9849
9857
|
this.input.setAttribute('error', this.getAttribute('error'));
|
|
9850
|
-
this.
|
|
9858
|
+
this.validate();
|
|
9851
9859
|
}
|
|
9852
9860
|
}
|
|
9853
9861
|
|
|
@@ -225,6 +225,11 @@ export class AuroCombobox extends LitElement {
|
|
|
225
225
|
* @returns {void}
|
|
226
226
|
*/
|
|
227
227
|
reset(): void;
|
|
228
|
+
/**
|
|
229
|
+
* Validates value
|
|
230
|
+
* @param {boolean} [force=false] - Whether to force validation.
|
|
231
|
+
*/
|
|
232
|
+
validate(force?: boolean): void;
|
|
228
233
|
updated(changedProperties: any): void;
|
|
229
234
|
/**
|
|
230
235
|
* Watch for slot changes and recalculate the menuoptions.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auro-combobox.d.ts","sourceRoot":"","sources":["../src/auro-combobox.js"],"names":[],"mappings":"AA8BA;;;;;;GAMG;AAGH;IAoCE;QAII;;WAEG;;;;;QAMH;;WAEG;;;;;QAMH;;WAEG;;;;;QAMH;;WAEG;;;;;QAMH;;WAEG;;;;;QAMH;;WAEG;;;;QAKH;;WAEG;;;;;;QAOH;;WAEG;;;;;QAMH;;WAEG;;;;QAKH;;WAEG;;;;QAKH;;WAEG;;;;QAKH;;WAEG;;;;;QAMH;;WAEG;;;;;QAMH;;WAEG;;;;;QAMH;;WAEG;;;;;MAMN;IAED,+CAEC;IAED;;;;;;;OAOG;IACH,uBANW,MAAM,QAQhB;IAzKC,kBAAqB;IACrB,cAAyB;IACzB,aAAsB;IACtB,sBAA+B;IAKjC;;;OAGG;IACH,wBAeC;IAdC,wBAA0B;IAC1B,kBAAwB;IACxB,4BAAqD;IAErD,+BAA0C;IAE1C,kBAAiD;IAEjD,8BAAiC;IAIjC,iBAAyF;IACzF,cAA6E;IAiJ/E;;;;OAIG;IACH,0BA4EC;IA1CG,mBAA8B;IA4ClC;;;;OAIG;IACH,6BAMC;IAJG,qCAA+E;IAMnF;;;;OAIG;IACH,gBAIC;IAED;;;;OAIG;IACH,gBAcC;IAED;;;;OAIG;IACH,0BAaC;IAZC,iBAA8D;IAchE;;;;OAIG;IACH,sBA0EC;IAzEC,cAAwD;IA2E1D;;;;OAIG;IACH,uBAwBC;IAFG,kBAAsC;IAI1C;;;;;;;;;;;;;OAaG;IACH,gCAOC;IAED;;;;OAIG;IACH,+BA2DC;IAED;;;;OAIG;IACH,0BAyCC;IAWC,iBAAiE;IAWnE,qBAgBC;IAZC,cAA4E;IAC5E,WAAoE;IAatE;;;OAGG;IACH,SAFa,IAAI,CAIhB;IAED;;;OAGG;IACH,SAFa,IAAI,CAMhB;IAED,sCA8BC;IAED;;;;;OAKG;IACH,yBAcC;IAGD,4CAoDC;CACF;
|
|
1
|
+
{"version":3,"file":"auro-combobox.d.ts","sourceRoot":"","sources":["../src/auro-combobox.js"],"names":[],"mappings":"AA8BA;;;;;;GAMG;AAGH;IAoCE;QAII;;WAEG;;;;;QAMH;;WAEG;;;;;QAMH;;WAEG;;;;;QAMH;;WAEG;;;;;QAMH;;WAEG;;;;;QAMH;;WAEG;;;;QAKH;;WAEG;;;;;;QAOH;;WAEG;;;;;QAMH;;WAEG;;;;QAKH;;WAEG;;;;QAKH;;WAEG;;;;QAKH;;WAEG;;;;;QAMH;;WAEG;;;;;QAMH;;WAEG;;;;;QAMH;;WAEG;;;;;MAMN;IAED,+CAEC;IAED;;;;;;;OAOG;IACH,uBANW,MAAM,QAQhB;IAzKC,kBAAqB;IACrB,cAAyB;IACzB,aAAsB;IACtB,sBAA+B;IAKjC;;;OAGG;IACH,wBAeC;IAdC,wBAA0B;IAC1B,kBAAwB;IACxB,4BAAqD;IAErD,+BAA0C;IAE1C,kBAAiD;IAEjD,8BAAiC;IAIjC,iBAAyF;IACzF,cAA6E;IAiJ/E;;;;OAIG;IACH,0BA4EC;IA1CG,mBAA8B;IA4ClC;;;;OAIG;IACH,6BAMC;IAJG,qCAA+E;IAMnF;;;;OAIG;IACH,gBAIC;IAED;;;;OAIG;IACH,gBAcC;IAED;;;;OAIG;IACH,0BAaC;IAZC,iBAA8D;IAchE;;;;OAIG;IACH,sBA0EC;IAzEC,cAAwD;IA2E1D;;;;OAIG;IACH,uBAwBC;IAFG,kBAAsC;IAI1C;;;;;;;;;;;;;OAaG;IACH,gCAOC;IAED;;;;OAIG;IACH,+BA2DC;IAED;;;;OAIG;IACH,0BAyCC;IAWC,iBAAiE;IAWnE,qBAgBC;IAZC,cAA4E;IAC5E,WAAoE;IAatE;;;OAGG;IACH,SAFa,IAAI,CAIhB;IAED;;;OAGG;IACH,SAFa,IAAI,CAMhB;IAED;;;OAGG;IACH,iBAFW,OAAO,QAIjB;IAED,sCA8BC;IAED;;;;;OAKG;IACH,yBAcC;IAGD,4CAoDC;CACF;2BAvwB0B,KAAK;+BAKD,+BAA+B;+BAWvD,6BAA6B;2CAA7B,6BAA6B"}
|
|
@@ -6172,7 +6172,7 @@ class BaseInput extends r$5 {
|
|
|
6172
6172
|
}
|
|
6173
6173
|
|
|
6174
6174
|
if (changedProperties.has('error')) {
|
|
6175
|
-
this.
|
|
6175
|
+
this.validate(true);
|
|
6176
6176
|
}
|
|
6177
6177
|
|
|
6178
6178
|
if (changedProperties.has('validity')) {
|
|
@@ -6364,11 +6364,11 @@ class BaseInput extends r$5 {
|
|
|
6364
6364
|
}
|
|
6365
6365
|
|
|
6366
6366
|
/**
|
|
6367
|
-
*
|
|
6368
|
-
* @
|
|
6367
|
+
* Validates value
|
|
6368
|
+
* @param {boolean} [force=false] - Whether to force validation.
|
|
6369
6369
|
*/
|
|
6370
|
-
validate() {
|
|
6371
|
-
this.validation.validate(this);
|
|
6370
|
+
validate(force = false) {
|
|
6371
|
+
this.validation.validate(this, force);
|
|
6372
6372
|
}
|
|
6373
6373
|
|
|
6374
6374
|
/**
|
|
@@ -9589,7 +9589,7 @@ class AuroCombobox extends r$7 {
|
|
|
9589
9589
|
*/
|
|
9590
9590
|
this.addEventListener('focusout', () => {
|
|
9591
9591
|
if (document.activeElement !== this) {
|
|
9592
|
-
this.
|
|
9592
|
+
this.validate();
|
|
9593
9593
|
}
|
|
9594
9594
|
|
|
9595
9595
|
// Set to undefined if empty
|
|
@@ -9667,7 +9667,7 @@ class AuroCombobox extends r$7 {
|
|
|
9667
9667
|
|
|
9668
9668
|
// Validate only if the value was set programmatically
|
|
9669
9669
|
if (document.activeElement !== this) {
|
|
9670
|
-
this.
|
|
9670
|
+
this.validate();
|
|
9671
9671
|
}
|
|
9672
9672
|
|
|
9673
9673
|
// Hide menu if value is empty, otherwise show if there are available suggestions
|
|
@@ -9796,6 +9796,14 @@ class AuroCombobox extends r$7 {
|
|
|
9796
9796
|
this.menu.value = undefined;
|
|
9797
9797
|
}
|
|
9798
9798
|
|
|
9799
|
+
/**
|
|
9800
|
+
* Validates value
|
|
9801
|
+
* @param {boolean} [force=false] - Whether to force validation.
|
|
9802
|
+
*/
|
|
9803
|
+
validate(force = false) {
|
|
9804
|
+
this.validation.validate(this, force);
|
|
9805
|
+
}
|
|
9806
|
+
|
|
9799
9807
|
updated(changedProperties) {
|
|
9800
9808
|
// After the component is ready, send direct value changes to auro-menu.
|
|
9801
9809
|
if (changedProperties.has('value')) {
|
|
@@ -9824,7 +9832,7 @@ class AuroCombobox extends r$7 {
|
|
|
9824
9832
|
|
|
9825
9833
|
if (changedProperties.has('error')) {
|
|
9826
9834
|
this.input.setAttribute('error', this.getAttribute('error'));
|
|
9827
|
-
this.
|
|
9835
|
+
this.validate();
|
|
9828
9836
|
}
|
|
9829
9837
|
}
|
|
9830
9838
|
|
|
@@ -458,7 +458,7 @@ export class AuroCombobox extends LitElement {
|
|
|
458
458
|
*/
|
|
459
459
|
this.addEventListener('focusout', () => {
|
|
460
460
|
if (document.activeElement !== this) {
|
|
461
|
-
this.
|
|
461
|
+
this.validate();
|
|
462
462
|
}
|
|
463
463
|
|
|
464
464
|
// Set to undefined if empty
|
|
@@ -536,7 +536,7 @@ export class AuroCombobox extends LitElement {
|
|
|
536
536
|
|
|
537
537
|
// Validate only if the value was set programmatically
|
|
538
538
|
if (document.activeElement !== this) {
|
|
539
|
-
this.
|
|
539
|
+
this.validate();
|
|
540
540
|
}
|
|
541
541
|
|
|
542
542
|
// Hide menu if value is empty, otherwise show if there are available suggestions
|
|
@@ -665,6 +665,14 @@ export class AuroCombobox extends LitElement {
|
|
|
665
665
|
this.menu.value = undefined;
|
|
666
666
|
}
|
|
667
667
|
|
|
668
|
+
/**
|
|
669
|
+
* Validates value
|
|
670
|
+
* @param {boolean} [force=false] - Whether to force validation.
|
|
671
|
+
*/
|
|
672
|
+
validate(force = false) {
|
|
673
|
+
this.validation.validate(this, force);
|
|
674
|
+
}
|
|
675
|
+
|
|
668
676
|
updated(changedProperties) {
|
|
669
677
|
// After the component is ready, send direct value changes to auro-menu.
|
|
670
678
|
if (changedProperties.has('value')) {
|
|
@@ -693,7 +701,7 @@ export class AuroCombobox extends LitElement {
|
|
|
693
701
|
|
|
694
702
|
if (changedProperties.has('error')) {
|
|
695
703
|
this.input.setAttribute('error', this.getAttribute('error'));
|
|
696
|
-
this.
|
|
704
|
+
this.validate();
|
|
697
705
|
}
|
|
698
706
|
}
|
|
699
707
|
|
|
@@ -342,10 +342,10 @@ Complete!
|
|
|
342
342
|
[32mcreated [1mdist[22m in [1m1.8s[22m[39m
|
|
343
343
|
[36m
|
|
344
344
|
[1m./demo/index.js[22m → [1m./demo/[22m...[39m
|
|
345
|
-
[32mcreated [1m./demo/[22m in [1m1.
|
|
345
|
+
[32mcreated [1m./demo/[22m in [1m1.6s[22m[39m
|
|
346
346
|
[36m
|
|
347
347
|
[1m./demo/api.js[22m → [1m./demo/[22m...[39m
|
|
348
|
-
[32mcreated [1m./demo/[22m in [
|
|
348
|
+
[32mcreated [1m./demo/[22m in [1m1.4s[22m[39m
|
|
349
349
|
|
|
350
350
|
> @aurodesignsystem/auro-counter@1.0.0 build:docs
|
|
351
351
|
> wca analyze 'scripts/wca/*.js' --outFiles docs/api.md; node ../../packages/build-tools/src/docProcessor.mjs --component counter
|
|
@@ -7,10 +7,13 @@
|
|
|
7
7
|
[1m[33m(!) Unresolved dependencies[39m[22m
|
|
8
8
|
[90mhttps://rollupjs.org/troubleshooting/#warning-treating-module-as-external-dependency[39m
|
|
9
9
|
[1m@aurodesignsystem/auro-dropdown[22m (imported by "src/auro-counter-group.js")
|
|
10
|
-
[32mcreated [1mdist[22m in [1m1.
|
|
10
|
+
[32mcreated [1mdist[22m in [1m1.1s[22m[39m
|
|
11
11
|
[36m
|
|
12
12
|
[1m./demo/index.js[22m → [1m./demo/[22m...[39m
|
|
13
|
-
[
|
|
13
|
+
[1m[33m(!) Unresolved dependencies[39m[22m
|
|
14
|
+
[90mhttps://rollupjs.org/troubleshooting/#warning-treating-module-as-external-dependency[39m
|
|
15
|
+
[1m@aurodesignsystem/auro-dropdown[22m (imported by "src/auro-counter-group.js")
|
|
16
|
+
[32mcreated [1m./demo/[22m in [1m787ms[22m[39m
|
|
14
17
|
[36m
|
|
15
18
|
[1m./demo/api.js[22m → [1m./demo/[22m...[39m
|
|
16
|
-
[32mcreated [1m./demo/[22m in [1m1.
|
|
19
|
+
[32mcreated [1m./demo/[22m in [1m1.4s[22m[39m
|
|
@@ -100,7 +100,7 @@ In cases where the project is not able to process JS assets, there are pre-proce
|
|
|
100
100
|
<!-- The below content is automatically added from ../../docs/templates/componentBundleUseModBrowsers.md -->
|
|
101
101
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@4.12.1/dist/tokens/CSSCustomProperties.css" />
|
|
102
102
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@5.1.2/dist/bundled/essentials.css" />
|
|
103
|
-
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-counter@2.0.0-beta.
|
|
103
|
+
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-counter@2.0.0-beta.18/dist/auro-counter__bundled.js" type="module"></script>
|
|
104
104
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
105
105
|
|
|
106
106
|
## auro-counter use cases
|
|
@@ -15,10 +15,11 @@
|
|
|
15
15
|
|
|
16
16
|
## Methods
|
|
17
17
|
|
|
18
|
-
| Method | Type
|
|
19
|
-
|
|
20
|
-
| [decrement](#decrement) | `(value?: number \| undefined): void`
|
|
21
|
-
| [increment](#increment) | `(value?: number \| undefined): void`
|
|
18
|
+
| Method | Type | Description |
|
|
19
|
+
|-------------|----------------------------------------|--------------------------------------------------|
|
|
20
|
+
| [decrement](#decrement) | `(value?: number \| undefined): void` | Decrements the value of the counter by 1. If a value is provided, it decrements by that amount.<br /><br />**value**: The amount to decrement by. |
|
|
21
|
+
| [increment](#increment) | `(value?: number \| undefined): void` | Increments the counter value by 1. If a value is provided, it increments by that amount.<br /><br />**value**: The amount to increment by. |
|
|
22
|
+
| [validate](#validate) | `(force?: boolean \| undefined): void` | Validates value<br /><br />**force**: Whether to force validation. |
|
|
22
23
|
|
|
23
24
|
## Events
|
|
24
25
|
|
|
@@ -46,6 +47,12 @@
|
|
|
46
47
|
| [validity](#validity) | `validity` | `string` | "undefined" | Reflects the validity state. |
|
|
47
48
|
| [value](#value) | `value` | `object` | "undefined" | The current individual values of the nested counters. |
|
|
48
49
|
|
|
50
|
+
## Methods
|
|
51
|
+
|
|
52
|
+
| Method | Type | Description |
|
|
53
|
+
|------------|----------------------------------------|--------------------------------------------------|
|
|
54
|
+
| [validate](#validate) | `(force?: boolean \| undefined): void` | Validates value<br /><br />**force**: Whether to force validation. |
|
|
55
|
+
|
|
49
56
|
## Events
|
|
50
57
|
|
|
51
58
|
| Event | Type |
|
|
@@ -1297,7 +1297,7 @@ var colorCss$4 = i$b`.counter{color:var(--ds-auro-counter-text-default)}[name=de
|
|
|
1297
1297
|
|
|
1298
1298
|
var styleCss$5 = i$b`.counter{display:flex;align-items:center;justify-content:space-between;column-gap:var(--ds-size-150, 0.75rem)}.content{display:flex;flex-flow:column}[name=description]::slotted(*){display:block;font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-size-200, 1rem)}.quantityWrapper{width:var(--ds-size-400, 2rem);height:calc(var(--ds-size-25, 0.125rem) + var(--ds-size-400, 2rem));align-content:center;cursor:default;font-size:var(--ds-size-250, 1.25rem);text-align:center}:host{position:relative}:host::part(counterControl){display:flex;line-height:0}:host::part(controlMinus){--ds-auro-counter-control-border-radius: var(--ds-size-500, 2.5rem) 0 0 var(--ds-size-500, 2.5rem);--ds-auro-counter-control-padding: var(--ds-size-50, 0.25rem) var(--ds-size-50, 0.25rem) var(--ds-size-50, 0.25rem) var(--ds-size-100, 0.5rem)}:host::part(controlPlus){--ds-auro-counter-control-border-radius: 0 var(--ds-size-500, 2.5rem) var(--ds-size-500, 2.5rem) 0;--ds-auro-counter-control-padding: var(--ds-size-50, 0.25rem) var(--ds-size-100, 0.5rem) var(--ds-size-50, 0.25rem) var(--ds-size-50, 0.25rem)}auro-counter-button{display:flex}`;
|
|
1299
1299
|
|
|
1300
|
-
/* eslint-disable lit/binding-positions, lit/no-invalid-html */
|
|
1300
|
+
/* eslint-disable lit/binding-positions, lit/no-invalid-html, max-lines */
|
|
1301
1301
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
1302
1302
|
// See LICENSE in the project root for license information.
|
|
1303
1303
|
|
|
@@ -1500,13 +1500,22 @@ class AuroCounter extends r$4 {
|
|
|
1500
1500
|
this.checkSlots();
|
|
1501
1501
|
}
|
|
1502
1502
|
|
|
1503
|
+
/**
|
|
1504
|
+
* Validates value
|
|
1505
|
+
* @param {boolean} [force=false] - Whether to force validation.
|
|
1506
|
+
*/
|
|
1507
|
+
validate(force = false) {
|
|
1508
|
+
this.validation.validate(this, force);
|
|
1509
|
+
}
|
|
1510
|
+
|
|
1511
|
+
|
|
1503
1512
|
firstUpdated() {
|
|
1504
1513
|
this.initValue();
|
|
1505
1514
|
}
|
|
1506
1515
|
|
|
1507
1516
|
updated(changedProperties) {
|
|
1508
1517
|
if (changedProperties.has("value")) {
|
|
1509
|
-
this.
|
|
1518
|
+
this.validate();
|
|
1510
1519
|
this.dispatchEvent(
|
|
1511
1520
|
new CustomEvent("input", {
|
|
1512
1521
|
detail: {
|
|
@@ -4781,9 +4790,17 @@ class AuroCounterGroup extends r$4 {
|
|
|
4781
4790
|
});
|
|
4782
4791
|
}
|
|
4783
4792
|
|
|
4793
|
+
/**
|
|
4794
|
+
* Validates value
|
|
4795
|
+
* @param {boolean} [force=false] - Whether to force validation.
|
|
4796
|
+
*/
|
|
4797
|
+
validate(force = false) {
|
|
4798
|
+
this.validation.validate(this, force);
|
|
4799
|
+
}
|
|
4800
|
+
|
|
4784
4801
|
updated(changedProperties) {
|
|
4785
4802
|
if (changedProperties.has("value")) {
|
|
4786
|
-
this.
|
|
4803
|
+
this.validate();
|
|
4787
4804
|
this.dispatchEvent(
|
|
4788
4805
|
new CustomEvent("input", {
|
|
4789
4806
|
detail: {
|
|
@@ -1297,7 +1297,7 @@ var colorCss$4 = i$b`.counter{color:var(--ds-auro-counter-text-default)}[name=de
|
|
|
1297
1297
|
|
|
1298
1298
|
var styleCss$5 = i$b`.counter{display:flex;align-items:center;justify-content:space-between;column-gap:var(--ds-size-150, 0.75rem)}.content{display:flex;flex-flow:column}[name=description]::slotted(*){display:block;font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-size-200, 1rem)}.quantityWrapper{width:var(--ds-size-400, 2rem);height:calc(var(--ds-size-25, 0.125rem) + var(--ds-size-400, 2rem));align-content:center;cursor:default;font-size:var(--ds-size-250, 1.25rem);text-align:center}:host{position:relative}:host::part(counterControl){display:flex;line-height:0}:host::part(controlMinus){--ds-auro-counter-control-border-radius: var(--ds-size-500, 2.5rem) 0 0 var(--ds-size-500, 2.5rem);--ds-auro-counter-control-padding: var(--ds-size-50, 0.25rem) var(--ds-size-50, 0.25rem) var(--ds-size-50, 0.25rem) var(--ds-size-100, 0.5rem)}:host::part(controlPlus){--ds-auro-counter-control-border-radius: 0 var(--ds-size-500, 2.5rem) var(--ds-size-500, 2.5rem) 0;--ds-auro-counter-control-padding: var(--ds-size-50, 0.25rem) var(--ds-size-100, 0.5rem) var(--ds-size-50, 0.25rem) var(--ds-size-50, 0.25rem)}auro-counter-button{display:flex}`;
|
|
1299
1299
|
|
|
1300
|
-
/* eslint-disable lit/binding-positions, lit/no-invalid-html */
|
|
1300
|
+
/* eslint-disable lit/binding-positions, lit/no-invalid-html, max-lines */
|
|
1301
1301
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
1302
1302
|
// See LICENSE in the project root for license information.
|
|
1303
1303
|
|
|
@@ -1500,13 +1500,22 @@ class AuroCounter extends r$4 {
|
|
|
1500
1500
|
this.checkSlots();
|
|
1501
1501
|
}
|
|
1502
1502
|
|
|
1503
|
+
/**
|
|
1504
|
+
* Validates value
|
|
1505
|
+
* @param {boolean} [force=false] - Whether to force validation.
|
|
1506
|
+
*/
|
|
1507
|
+
validate(force = false) {
|
|
1508
|
+
this.validation.validate(this, force);
|
|
1509
|
+
}
|
|
1510
|
+
|
|
1511
|
+
|
|
1503
1512
|
firstUpdated() {
|
|
1504
1513
|
this.initValue();
|
|
1505
1514
|
}
|
|
1506
1515
|
|
|
1507
1516
|
updated(changedProperties) {
|
|
1508
1517
|
if (changedProperties.has("value")) {
|
|
1509
|
-
this.
|
|
1518
|
+
this.validate();
|
|
1510
1519
|
this.dispatchEvent(
|
|
1511
1520
|
new CustomEvent("input", {
|
|
1512
1521
|
detail: {
|
|
@@ -4781,9 +4790,17 @@ class AuroCounterGroup extends r$4 {
|
|
|
4781
4790
|
});
|
|
4782
4791
|
}
|
|
4783
4792
|
|
|
4793
|
+
/**
|
|
4794
|
+
* Validates value
|
|
4795
|
+
* @param {boolean} [force=false] - Whether to force validation.
|
|
4796
|
+
*/
|
|
4797
|
+
validate(force = false) {
|
|
4798
|
+
this.validation.validate(this, force);
|
|
4799
|
+
}
|
|
4800
|
+
|
|
4784
4801
|
updated(changedProperties) {
|
|
4785
4802
|
if (changedProperties.has("value")) {
|
|
4786
|
-
this.
|
|
4803
|
+
this.validate();
|
|
4787
4804
|
this.dispatchEvent(
|
|
4788
4805
|
new CustomEvent("input", {
|
|
4789
4806
|
detail: {
|
|
@@ -115,6 +115,11 @@ export class AuroCounterGroup extends LitElement {
|
|
|
115
115
|
* @private
|
|
116
116
|
*/
|
|
117
117
|
private updateValue;
|
|
118
|
+
/**
|
|
119
|
+
* Validates value
|
|
120
|
+
* @param {boolean} [force=false] - Whether to force validation.
|
|
121
|
+
*/
|
|
122
|
+
validate(force?: boolean): void;
|
|
118
123
|
updated(changedProperties: any): void;
|
|
119
124
|
render(): import("lit-html").TemplateResult;
|
|
120
125
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auro-counter-group.d.ts","sourceRoot":"","sources":["../src/auro-counter-group.js"],"names":[],"mappings":"AAqBA;;;;;;;;;GASG;AACH;IAoCE,+CAEC;IAED;QAGI;;WAEG;;;;QAKH;;WAEG;;;;;QAMH;;WAEG;;;;;QAMH;;WAEG;;;;;QAMH;;WAEG;;;;QAKH;;WAEG;;;;MAKN;
|
|
1
|
+
{"version":3,"file":"auro-counter-group.d.ts","sourceRoot":"","sources":["../src/auro-counter-group.js"],"names":[],"mappings":"AAqBA;;;;;;;;;GASG;AACH;IAoCE,+CAEC;IAED;QAGI;;WAEG;;;;QAKH;;WAEG;;;;;QAMH;;WAEG;;;;;QAMH;;WAEG;;;;;QAMH;;WAEG;;;;QAKH;;WAEG;;;;MAKN;IAkHD;;;;;OAKG;IACH,uBAJW,MAAM,QAMhB;IA9MC,oBAAuB;IAEvB,SAAoB;IACpB,SAAoB;IACpB,cAAsB;IACtB,cAAyB;IACzB,UAAsB;IAEtB;;OAEG;IACH,iBAAyB;IAEzB;;OAEG;IACH,mBAA0C;IAQ1C;;;;OAIG;IACH,oBAAyF;IAyD3F;;;;;;;OAOG;IACH,uBASC;IAED;;;;;OAKG;IACH,0BAKC;IAED;;;;;OAKG;IACH,kCAYC;IAED;;;;;OAKG;IACH,6BAGC;IAED;;;;;OAKG;IACH,oBAeC;IAED;;;OAGG;IACH,iBAFW,OAAO,QAIjB;IAED,sCAgBC;IAaD,4CAWC;CACF;2BAxP0B,KAAK"}
|
|
@@ -82,6 +82,11 @@ export class AuroCounter extends LitElement {
|
|
|
82
82
|
* @private
|
|
83
83
|
*/
|
|
84
84
|
private handleSlotChange;
|
|
85
|
+
/**
|
|
86
|
+
* Validates value
|
|
87
|
+
* @param {boolean} [force=false] - Whether to force validation.
|
|
88
|
+
*/
|
|
89
|
+
validate(force?: boolean): void;
|
|
85
90
|
firstUpdated(): void;
|
|
86
91
|
updated(changedProperties: any): void;
|
|
87
92
|
render(): import("lit-html").TemplateResult;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auro-counter.d.ts","sourceRoot":"","sources":["../src/auro-counter.js"],"names":[],"mappings":"AAwBA;;;;;;;;;;GAUG;AACH;IA+BE;;;OAGG;IACH,6BA0DC;IAED;;;;;OAKG;IACH,uBAJW,MAAM,QAMhB;IAED,+CAMC;IA3GC,kBAAqB;IACrB,oBAAuB;IACvB,oBAAuB;IACvB,YAAY;IACZ,YAAY;IACZ,cAAyB;IACzB,cAAsB;IAEtB;;OAEG;IACH,mBAA0C;IAQ1C;;;;OAIG;IACH,gBAAyE;IAqF3E;;;;;OAKG;IACH,kBAHW,MAAM,GACJ,IAAI,CAIhB;IAED;;;;;OAKG;IACH,kBAHW,MAAM,GACJ,IAAI,CAIhB;IAED;;;;OAIG;IACH,kBAIC;IAED;;;;;;OAMG;IACH,4BAWC;IAED;;;;;OAKG;IACH,2BAKC;IAED;;;;;OAKG;IACH,yBAEC;IAED,qBAEC;IAED,sCAkCC;IAED,4CA+BC;CACF;
|
|
1
|
+
{"version":3,"file":"auro-counter.d.ts","sourceRoot":"","sources":["../src/auro-counter.js"],"names":[],"mappings":"AAwBA;;;;;;;;;;GAUG;AACH;IA+BE;;;OAGG;IACH,6BA0DC;IAED;;;;;OAKG;IACH,uBAJW,MAAM,QAMhB;IAED,+CAMC;IA3GC,kBAAqB;IACrB,oBAAuB;IACvB,oBAAuB;IACvB,YAAY;IACZ,YAAY;IACZ,cAAyB;IACzB,cAAsB;IAEtB;;OAEG;IACH,mBAA0C;IAQ1C;;;;OAIG;IACH,gBAAyE;IAqF3E;;;;;OAKG;IACH,kBAHW,MAAM,GACJ,IAAI,CAIhB;IAED;;;;;OAKG;IACH,kBAHW,MAAM,GACJ,IAAI,CAIhB;IAED;;;;OAIG;IACH,kBAIC;IAED;;;;;;OAMG;IACH,4BAWC;IAED;;;;;OAKG;IACH,2BAKC;IAED;;;;;OAKG;IACH,yBAEC;IAED;;;OAGG;IACH,iBAFW,OAAO,QAIjB;IAGD,qBAEC;IAED,sCAkCC;IAED,4CA+BC;CACF;2BA3S0B,KAAK"}
|
|
@@ -1297,7 +1297,7 @@ var colorCss$4 = i$b`.counter{color:var(--ds-auro-counter-text-default)}[name=de
|
|
|
1297
1297
|
|
|
1298
1298
|
var styleCss$5 = i$b`.counter{display:flex;align-items:center;justify-content:space-between;column-gap:var(--ds-size-150, 0.75rem)}.content{display:flex;flex-flow:column}[name=description]::slotted(*){display:block;font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-size-200, 1rem)}.quantityWrapper{width:var(--ds-size-400, 2rem);height:calc(var(--ds-size-25, 0.125rem) + var(--ds-size-400, 2rem));align-content:center;cursor:default;font-size:var(--ds-size-250, 1.25rem);text-align:center}:host{position:relative}:host::part(counterControl){display:flex;line-height:0}:host::part(controlMinus){--ds-auro-counter-control-border-radius: var(--ds-size-500, 2.5rem) 0 0 var(--ds-size-500, 2.5rem);--ds-auro-counter-control-padding: var(--ds-size-50, 0.25rem) var(--ds-size-50, 0.25rem) var(--ds-size-50, 0.25rem) var(--ds-size-100, 0.5rem)}:host::part(controlPlus){--ds-auro-counter-control-border-radius: 0 var(--ds-size-500, 2.5rem) var(--ds-size-500, 2.5rem) 0;--ds-auro-counter-control-padding: var(--ds-size-50, 0.25rem) var(--ds-size-100, 0.5rem) var(--ds-size-50, 0.25rem) var(--ds-size-50, 0.25rem)}auro-counter-button{display:flex}`;
|
|
1299
1299
|
|
|
1300
|
-
/* eslint-disable lit/binding-positions, lit/no-invalid-html */
|
|
1300
|
+
/* eslint-disable lit/binding-positions, lit/no-invalid-html, max-lines */
|
|
1301
1301
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
1302
1302
|
// See LICENSE in the project root for license information.
|
|
1303
1303
|
|
|
@@ -1500,13 +1500,22 @@ class AuroCounter extends r$4 {
|
|
|
1500
1500
|
this.checkSlots();
|
|
1501
1501
|
}
|
|
1502
1502
|
|
|
1503
|
+
/**
|
|
1504
|
+
* Validates value
|
|
1505
|
+
* @param {boolean} [force=false] - Whether to force validation.
|
|
1506
|
+
*/
|
|
1507
|
+
validate(force = false) {
|
|
1508
|
+
this.validation.validate(this, force);
|
|
1509
|
+
}
|
|
1510
|
+
|
|
1511
|
+
|
|
1503
1512
|
firstUpdated() {
|
|
1504
1513
|
this.initValue();
|
|
1505
1514
|
}
|
|
1506
1515
|
|
|
1507
1516
|
updated(changedProperties) {
|
|
1508
1517
|
if (changedProperties.has("value")) {
|
|
1509
|
-
this.
|
|
1518
|
+
this.validate();
|
|
1510
1519
|
this.dispatchEvent(
|
|
1511
1520
|
new CustomEvent("input", {
|
|
1512
1521
|
detail: {
|
|
@@ -4781,9 +4790,17 @@ class AuroCounterGroup extends r$4 {
|
|
|
4781
4790
|
});
|
|
4782
4791
|
}
|
|
4783
4792
|
|
|
4793
|
+
/**
|
|
4794
|
+
* Validates value
|
|
4795
|
+
* @param {boolean} [force=false] - Whether to force validation.
|
|
4796
|
+
*/
|
|
4797
|
+
validate(force = false) {
|
|
4798
|
+
this.validation.validate(this, force);
|
|
4799
|
+
}
|
|
4800
|
+
|
|
4784
4801
|
updated(changedProperties) {
|
|
4785
4802
|
if (changedProperties.has("value")) {
|
|
4786
|
-
this.
|
|
4803
|
+
this.validate();
|
|
4787
4804
|
this.dispatchEvent(
|
|
4788
4805
|
new CustomEvent("input", {
|
|
4789
4806
|
detail: {
|
|
@@ -205,9 +205,17 @@ export class AuroCounterGroup extends LitElement {
|
|
|
205
205
|
});
|
|
206
206
|
}
|
|
207
207
|
|
|
208
|
+
/**
|
|
209
|
+
* Validates value
|
|
210
|
+
* @param {boolean} [force=false] - Whether to force validation.
|
|
211
|
+
*/
|
|
212
|
+
validate(force = false) {
|
|
213
|
+
this.validation.validate(this, force);
|
|
214
|
+
}
|
|
215
|
+
|
|
208
216
|
updated(changedProperties) {
|
|
209
217
|
if (changedProperties.has("value")) {
|
|
210
|
-
this.
|
|
218
|
+
this.validate();
|
|
211
219
|
this.dispatchEvent(
|
|
212
220
|
new CustomEvent("input", {
|
|
213
221
|
detail: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* eslint-disable lit/binding-positions, lit/no-invalid-html */
|
|
1
|
+
/* eslint-disable lit/binding-positions, lit/no-invalid-html, max-lines */
|
|
2
2
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
3
3
|
// See LICENSE in the project root for license information.
|
|
4
4
|
|
|
@@ -220,13 +220,22 @@ export class AuroCounter extends LitElement {
|
|
|
220
220
|
this.checkSlots();
|
|
221
221
|
}
|
|
222
222
|
|
|
223
|
+
/**
|
|
224
|
+
* Validates value
|
|
225
|
+
* @param {boolean} [force=false] - Whether to force validation.
|
|
226
|
+
*/
|
|
227
|
+
validate(force = false) {
|
|
228
|
+
this.validation.validate(this, force);
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
|
|
223
232
|
firstUpdated() {
|
|
224
233
|
this.initValue();
|
|
225
234
|
}
|
|
226
235
|
|
|
227
236
|
updated(changedProperties) {
|
|
228
237
|
if (changedProperties.has("value")) {
|
|
229
|
-
this.
|
|
238
|
+
this.validate();
|
|
230
239
|
this.dispatchEvent(
|
|
231
240
|
new CustomEvent("input", {
|
|
232
241
|
detail: {
|
|
@@ -373,13 +373,13 @@ More info and automated migrator: https://sass-lang.com/d/import
|
|
|
373
373
|
|
|
374
374
|
[36m
|
|
375
375
|
[1m./src/index.js[22m → [1mdist[22m...[39m
|
|
376
|
-
[32mcreated [1mdist[22m in [1m7.
|
|
376
|
+
[32mcreated [1mdist[22m in [1m7.3s[22m[39m
|
|
377
377
|
[36m
|
|
378
378
|
[1m./demo/index.js[22m → [1m./demo/[22m...[39m
|
|
379
|
-
[32mcreated [1m./demo/[22m in [1m3.
|
|
379
|
+
[32mcreated [1m./demo/[22m in [1m3.7s[22m[39m
|
|
380
380
|
[36m
|
|
381
381
|
[1m./demo/api.js[22m → [1m./demo/[22m...[39m
|
|
382
|
-
[32mcreated [1m./demo/[22m in [1m3.
|
|
382
|
+
[32mcreated [1m./demo/[22m in [1m3.3s[22m[39m
|
|
383
383
|
|
|
384
384
|
> @aurodesignsystem/auro-datepicker@3.2.0 build:docs
|
|
385
385
|
> wca analyze 'scripts/wca/*.js' --outFiles docs/api.md; node ../../packages/build-tools/src/docProcessor.mjs --component datepicker
|
|
@@ -93,10 +93,10 @@ In cases where the project is not able to process JS assets, there are pre-proce
|
|
|
93
93
|
<!-- The below content is automatically added from ../../docs/templates/componentBundleUseModBrowsers.md -->
|
|
94
94
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@4.12.1/dist/tokens/CSSCustomProperties.css" />
|
|
95
95
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@5.1.2/dist/bundled/essentials.css" />
|
|
96
|
-
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-dropdown@2.0.0-beta.
|
|
97
|
-
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-input@2.0.0-beta.
|
|
98
|
-
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-popover@2.0.0-beta.
|
|
99
|
-
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-datepicker@2.0.0-beta.
|
|
96
|
+
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-dropdown@2.0.0-beta.18/dist/auro-dropdown__bundled.js" type="module"></script>
|
|
97
|
+
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-input@2.0.0-beta.18/dist/auro-input__bundled.js" type="module"></script>
|
|
98
|
+
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-popover@2.0.0-beta.18/dist/auro-popover__bundled.js" type="module"></script>
|
|
99
|
+
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-datepicker@2.0.0-beta.18/dist/auro-datepicker__bundled.js" type="module"></script>
|
|
100
100
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
101
101
|
|
|
102
102
|
## auro-datepicker use cases
|
|
@@ -30,10 +30,11 @@
|
|
|
30
30
|
|
|
31
31
|
## Methods
|
|
32
32
|
|
|
33
|
-
| Method
|
|
34
|
-
|
|
35
|
-
| [focus](#focus)
|
|
36
|
-
| [reset](#reset)
|
|
33
|
+
| Method | Type | Description |
|
|
34
|
+
|------------|----------------------------------------|--------------------------------------------------|
|
|
35
|
+
| [focus](#focus) | `(focusInput: string): void` | Focuses the datepicker trigger input.<br /><br />**focusInput**: Pass in `endDate` to focus on the return input. No parameter is needed to focus on the depart input. |
|
|
36
|
+
| [reset](#reset) | `(): void` | Resets component to initial state. |
|
|
37
|
+
| [validate](#validate) | `(force?: boolean \| undefined): void` | Validates value<br /><br />**force**: Whether to force validation. |
|
|
37
38
|
|
|
38
39
|
## Events
|
|
39
40
|
|