@aurodesignsystem/auro-formkit 2.0.0-beta.15 → 2.0.0-beta.17
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/000950e13093845f-meta.json +1 -1
- package/.turbo/cache/000950e13093845f.tar.zst +0 -0
- package/.turbo/cache/02ee016619902665-meta.json +1 -0
- package/.turbo/cache/02ee016619902665.tar.zst +0 -0
- package/.turbo/cache/06ca4027e423c554-meta.json +1 -0
- package/.turbo/cache/06ca4027e423c554.tar.zst +0 -0
- package/.turbo/cache/1e855b2163b7c980-meta.json +1 -0
- package/.turbo/cache/1e855b2163b7c980.tar.zst +0 -0
- package/.turbo/cache/2059bc724ac24519-meta.json +1 -1
- package/.turbo/cache/2059bc724ac24519.tar.zst +0 -0
- package/.turbo/cache/23b3a2fea223679d-meta.json +1 -1
- package/.turbo/cache/23b3a2fea223679d.tar.zst +0 -0
- package/.turbo/cache/26dbf393768f87cc-meta.json +1 -0
- package/.turbo/cache/26dbf393768f87cc.tar.zst +0 -0
- package/.turbo/cache/2c0d681132c153dd-meta.json +1 -1
- package/.turbo/cache/31bd5687f46c7eba-meta.json +1 -1
- package/.turbo/cache/3488cff10dd06acd-meta.json +1 -1
- package/.turbo/cache/3488cff10dd06acd.tar.zst +0 -0
- package/.turbo/cache/3c8718d2ba6d3fe5-meta.json +1 -0
- package/.turbo/cache/3c8718d2ba6d3fe5.tar.zst +0 -0
- package/.turbo/cache/4006a206400d5c7b-meta.json +1 -1
- package/.turbo/cache/43693504bf6e7c4c-meta.json +1 -1
- package/.turbo/cache/45cd32cd38eacbcb-meta.json +1 -1
- package/.turbo/cache/492dda333b8d15f1-meta.json +1 -1
- package/.turbo/cache/50cd7dcfc9f820c5-meta.json +1 -1
- package/.turbo/cache/51eaa58d5c167de8-meta.json +1 -1
- package/.turbo/cache/56f2745125fdd552-meta.json +1 -1
- package/.turbo/cache/56f2745125fdd552.tar.zst +0 -0
- package/.turbo/cache/5b57cc0e26e1fd5d-meta.json +1 -0
- package/.turbo/cache/5b57cc0e26e1fd5d.tar.zst +0 -0
- package/.turbo/cache/5f43911cbacf7df1-meta.json +1 -1
- package/.turbo/cache/5f43911cbacf7df1.tar.zst +0 -0
- package/.turbo/cache/60ad74320c682a2b-meta.json +1 -1
- package/.turbo/cache/61e218aba69cff58-meta.json +1 -1
- package/.turbo/cache/647bda3b31d82dc2-meta.json +1 -0
- package/.turbo/cache/647bda3b31d82dc2.tar.zst +0 -0
- package/.turbo/cache/6951c2a52e5ab5f7-meta.json +1 -1
- package/.turbo/cache/6951c2a52e5ab5f7.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/876b8fa390c8ec81-meta.json +1 -1
- package/.turbo/cache/8bb856bd31b5b479-meta.json +1 -1
- package/.turbo/cache/8f287fd5d33579ae-meta.json +1 -1
- package/.turbo/cache/8f287fd5d33579ae.tar.zst +0 -0
- package/.turbo/cache/8f5fef3e04a6fcfa-meta.json +1 -1
- package/.turbo/cache/8fcce3ba8357be57-meta.json +1 -0
- package/.turbo/cache/8fcce3ba8357be57.tar.zst +0 -0
- package/.turbo/cache/9b5868be65819fdf-meta.json +1 -0
- package/.turbo/cache/9b5868be65819fdf.tar.zst +0 -0
- package/.turbo/cache/a227e8174447e364-meta.json +1 -0
- package/.turbo/cache/a227e8174447e364.tar.zst +0 -0
- package/.turbo/cache/a779ea8b78ce9d59-meta.json +1 -0
- package/.turbo/cache/a779ea8b78ce9d59.tar.zst +0 -0
- package/.turbo/cache/a9c36a3534c5496b-meta.json +1 -0
- package/.turbo/cache/a9c36a3534c5496b.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/c3b2cc1b044a4135-meta.json +1 -0
- package/.turbo/cache/c3b2cc1b044a4135.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/cf143eb1a55684db-meta.json +1 -1
- package/.turbo/cache/cf143eb1a55684db.tar.zst +0 -0
- package/.turbo/cache/d5b85352bc667f19-meta.json +1 -1
- package/.turbo/cache/d5b85352bc667f19.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/e392fe0927e4af23-meta.json +1 -0
- package/.turbo/cache/e392fe0927e4af23.tar.zst +0 -0
- package/.turbo/cache/e62cfee068e3ef36-meta.json +1 -1
- package/.turbo/cache/f2913bf19939d840-meta.json +1 -1
- package/.turbo/cache/f2913bf19939d840.tar.zst +0 -0
- package/.turbo/cache/f86b28e5ea2c66fe-meta.json +1 -1
- package/CHANGELOG.md +22 -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/combobox/.turbo/turbo-build.log +3 -3
- package/components/combobox/README.md +4 -4
- package/components/counter/.turbo/turbo-build$colon$sass.log +37 -6
- package/components/counter/.turbo/turbo-build.log +47 -10
- package/components/counter/.turbo/turbo-bundler.log +6 -3
- package/components/counter/.turbo/turbo-sass$colon$render.log +7 -1
- package/components/counter/README.md +1 -1
- package/components/counter/demo/api.md +8 -7
- package/components/counter/demo/api.min.js +3304 -247
- package/components/counter/demo/index.md +16 -20
- package/components/counter/demo/index.min.js +3304 -247
- package/components/counter/dist/auro-counter-group.d.ts +27 -7
- package/components/counter/dist/auro-counter-group.d.ts.map +1 -1
- package/components/counter/dist/auro-counter-wrapper.d.ts +23 -0
- package/components/counter/dist/auro-counter-wrapper.d.ts.map +1 -0
- package/components/counter/dist/index.js +3304 -247
- package/components/counter/dist/styles/counter-wrapper-color-css.d.ts +3 -0
- package/components/counter/dist/styles/counter-wrapper-color-css.d.ts.map +1 -0
- package/components/counter/dist/styles/{counter-group-color-css.d.ts → counter-wrapper-css.d.ts} +1 -1
- package/components/counter/dist/styles/counter-wrapper-css.d.ts.map +1 -0
- package/components/counter/src/auro-counter-group.js +72 -19
- package/components/counter/src/auro-counter-wrapper.js +54 -0
- package/components/counter/src/styles/counter-group-css.js +1 -1
- package/components/counter/src/styles/counter-group.css +4 -8
- package/components/counter/src/styles/counter-group.scss +6 -10
- package/components/counter/src/styles/counter-wrapper-color-css.js +2 -0
- package/components/counter/src/styles/{counter-group-color.css → counter-wrapper-color.css} +1 -1
- package/components/counter/src/styles/{counter-group-color.scss → counter-wrapper-color.scss} +1 -1
- package/components/counter/src/styles/counter-wrapper-css.js +2 -0
- package/components/counter/src/styles/counter-wrapper.css +15 -0
- package/components/counter/src/styles/counter-wrapper.scss +29 -0
- package/components/datepicker/.turbo/turbo-build.log +3 -3
- package/components/datepicker/README.md +4 -4
- package/components/dropdown/.turbo/turbo-build.log +3 -3
- package/components/dropdown/.turbo/turbo-bundler.log +2 -2
- 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 +11 -9
- package/components/form/demo/api.min.js +187 -22
- package/components/form/demo/index.min.js +187 -22
- package/components/form/demo/registerDemoDeps.js +5 -0
- package/components/form/demo/working.html +86 -0
- package/components/form/dist/auro-form.d.ts +83 -2
- package/components/form/dist/auro-form.d.ts.map +1 -1
- package/components/form/dist/index.js +187 -22
- package/components/form/package.json +3 -1
- package/components/form/src/auro-form.js +187 -25
- package/components/form/src/styles/style-css.js +1 -1
- package/components/form/src/styles/style.css +8 -0
- package/components/form/src/styles/style.scss +10 -0
- 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/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/select/.turbo/turbo-build.log +3 -3
- package/components/select/README.md +3 -3
- package/package.json +1 -1
- package/.turbo/cache/07028b4d43bdf4e1-meta.json +0 -1
- package/.turbo/cache/07028b4d43bdf4e1.tar.zst +0 -0
- package/.turbo/cache/0c8124a987c1cc05-meta.json +0 -1
- package/.turbo/cache/0c8124a987c1cc05.tar.zst +0 -0
- package/.turbo/cache/1b97859030a6d60b-meta.json +0 -1
- package/.turbo/cache/1b97859030a6d60b.tar.zst +0 -0
- package/.turbo/cache/1f6653e2ed4c0087-meta.json +0 -1
- package/.turbo/cache/1f6653e2ed4c0087.tar.zst +0 -0
- package/.turbo/cache/2690f6279766d11d-meta.json +0 -1
- package/.turbo/cache/2690f6279766d11d.tar.zst +0 -0
- package/.turbo/cache/50993de942ec15a9-meta.json +0 -1
- package/.turbo/cache/50993de942ec15a9.tar.zst +0 -0
- package/.turbo/cache/6081837e8943b62e-meta.json +0 -1
- package/.turbo/cache/6081837e8943b62e.tar.zst +0 -0
- package/.turbo/cache/6830a9e37c9d391f-meta.json +0 -1
- package/.turbo/cache/6830a9e37c9d391f.tar.zst +0 -0
- package/.turbo/cache/80410f4b5990ab83-meta.json +0 -1
- package/.turbo/cache/80410f4b5990ab83.tar.zst +0 -0
- package/.turbo/cache/9ae99e8e7bd83d06-meta.json +0 -1
- package/.turbo/cache/9ae99e8e7bd83d06.tar.zst +0 -0
- package/.turbo/cache/bfefe028012c089a-meta.json +0 -1
- package/.turbo/cache/bfefe028012c089a.tar.zst +0 -0
- package/.turbo/cache/dad3d78b33edd9e4-meta.json +0 -1
- package/.turbo/cache/dad3d78b33edd9e4.tar.zst +0 -0
- package/.turbo/cache/e9e36823f6c98f07-meta.json +0 -1
- package/.turbo/cache/e9e36823f6c98f07.tar.zst +0 -0
- package/.turbo/cache/ea8dd91dba19ddee-meta.json +0 -1
- package/.turbo/cache/ea8dd91dba19ddee.tar.zst +0 -0
- package/components/counter/dist/formkit/auro-dropdownVersion.d.ts +0 -3
- package/components/counter/dist/formkit/auro-dropdownVersion.d.ts.map +0 -1
- package/components/counter/dist/styles/counter-group-color-css.d.ts.map +0 -1
- package/components/counter/src/formkit/auro-dropdownVersion.js +0 -1
- package/components/counter/src/styles/counter-group-color-css.js +0 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"counter-wrapper-color-css.d.ts","sourceRoot":"","sources":["../../src/styles/counter-wrapper-color-css.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"counter-wrapper-css.d.ts","sourceRoot":"","sources":["../../src/styles/counter-wrapper-css.js"],"names":[],"mappings":""}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
/* eslint-disable lit/no-invalid-html, lit/binding-positions */
|
|
2
|
+
|
|
1
3
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
2
4
|
// See LICENSE in the project root for license information.
|
|
3
5
|
|
|
@@ -5,11 +7,18 @@
|
|
|
5
7
|
|
|
6
8
|
import { html } from "lit/static-html.js";
|
|
7
9
|
import { LitElement } from "lit";
|
|
10
|
+
|
|
8
11
|
import styleCss from "./styles/counter-group-css.js";
|
|
9
|
-
|
|
12
|
+
|
|
10
13
|
import AuroLibraryRuntimeUtils from "@aurodesignsystem/auro-library/scripts/utils/runtimeUtils.mjs";
|
|
11
14
|
import AuroFormValidation from "@auro-formkit/form-validation";
|
|
12
15
|
|
|
16
|
+
import { AuroDependencyVersioning } from "@aurodesignsystem/auro-library/scripts/runtime/dependencyTagVersioning.mjs";
|
|
17
|
+
import { AuroDropdown } from "@aurodesignsystem/auro-dropdown";
|
|
18
|
+
import dropdownVersion from "./dropdownVersion.js";
|
|
19
|
+
|
|
20
|
+
import './auro-counter-wrapper.js';
|
|
21
|
+
|
|
13
22
|
/**
|
|
14
23
|
* Auro Counter Group is a group of counter components.
|
|
15
24
|
*
|
|
@@ -24,6 +33,8 @@ export class AuroCounterGroup extends LitElement {
|
|
|
24
33
|
constructor() {
|
|
25
34
|
super();
|
|
26
35
|
|
|
36
|
+
this.isDropdown = false;
|
|
37
|
+
|
|
27
38
|
this.max = undefined;
|
|
28
39
|
this.min = undefined;
|
|
29
40
|
this.total = undefined;
|
|
@@ -39,18 +50,35 @@ export class AuroCounterGroup extends LitElement {
|
|
|
39
50
|
* @private
|
|
40
51
|
*/
|
|
41
52
|
this.validation = new AuroFormValidation();
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Generate unique names for dependency components.
|
|
56
|
+
* @private
|
|
57
|
+
*/
|
|
58
|
+
const versioning = new AuroDependencyVersioning();
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Dynamically generated dropdown tag.
|
|
62
|
+
* @private
|
|
63
|
+
* @type {string}
|
|
64
|
+
*/
|
|
65
|
+
this.dropdownTag = versioning.generateTag("auro-dropdown", dropdownVersion, AuroDropdown);
|
|
42
66
|
}
|
|
43
67
|
|
|
44
68
|
static get styles() {
|
|
45
|
-
return [
|
|
46
|
-
colorCss,
|
|
47
|
-
styleCss
|
|
48
|
-
];
|
|
69
|
+
return [styleCss];
|
|
49
70
|
}
|
|
50
71
|
|
|
51
72
|
static get properties() {
|
|
52
73
|
return {
|
|
53
74
|
|
|
75
|
+
/**
|
|
76
|
+
* Indicates if the counter group is displayed as a dropdown.
|
|
77
|
+
*/
|
|
78
|
+
isDropdown: {
|
|
79
|
+
type: Boolean
|
|
80
|
+
},
|
|
81
|
+
|
|
54
82
|
/**
|
|
55
83
|
* The maximum value allowed for the whole group of counters.
|
|
56
84
|
*/
|
|
@@ -67,13 +95,6 @@ export class AuroCounterGroup extends LitElement {
|
|
|
67
95
|
reflect: true,
|
|
68
96
|
},
|
|
69
97
|
|
|
70
|
-
/**
|
|
71
|
-
* The total value of the counters.
|
|
72
|
-
*/
|
|
73
|
-
total: {
|
|
74
|
-
type: Number,
|
|
75
|
-
},
|
|
76
|
-
|
|
77
98
|
/**
|
|
78
99
|
* Reflects the validity state.
|
|
79
100
|
*/
|
|
@@ -82,12 +103,19 @@ export class AuroCounterGroup extends LitElement {
|
|
|
82
103
|
reflect: true,
|
|
83
104
|
},
|
|
84
105
|
|
|
106
|
+
/**
|
|
107
|
+
* The total value of the counters.
|
|
108
|
+
*/
|
|
109
|
+
total: {
|
|
110
|
+
type: Number,
|
|
111
|
+
},
|
|
112
|
+
|
|
85
113
|
/**
|
|
86
114
|
* The current individual values of the nested counters.
|
|
87
115
|
*/
|
|
88
116
|
value: {
|
|
89
117
|
type: Object,
|
|
90
|
-
}
|
|
118
|
+
}
|
|
91
119
|
};
|
|
92
120
|
}
|
|
93
121
|
|
|
@@ -112,12 +140,32 @@ export class AuroCounterGroup extends LitElement {
|
|
|
112
140
|
|
|
113
141
|
/**
|
|
114
142
|
* Attaches input event listeners to all auro-counter elements within the component.
|
|
115
|
-
* This method selects all `auro-counter` and `[
|
|
143
|
+
* This method selects all `auro-counter` and `[auro-counter]` elements and adds an `input` event listener to each.
|
|
116
144
|
* The listener calls `this.updateValue()` whenever the value of a counter changes.
|
|
117
145
|
* @private
|
|
118
146
|
*/
|
|
119
147
|
configureCounters() {
|
|
120
|
-
this.counters = this.querySelectorAll("auro-counter, [
|
|
148
|
+
this.counters = this.querySelectorAll("auro-counter, [auro-counter]");
|
|
149
|
+
this.counters.forEach((counter) => {
|
|
150
|
+
counter.addEventListener("input", () => this.updateValue());
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* Configures the dropdown counters by selecting all `auro-counter` elements
|
|
156
|
+
* and appending them to the `auro-counter-wrapper` element within the shadow DOM.
|
|
157
|
+
* Adds an event listener to each counter to update the value on input.
|
|
158
|
+
* @private
|
|
159
|
+
*/
|
|
160
|
+
configureDropdownCounters() {
|
|
161
|
+
const counterWrapper = this.shadowRoot.querySelector('auro-counter-wrapper');
|
|
162
|
+
this.counters = this.querySelectorAll("auro-counter, [auro-counter]");
|
|
163
|
+
|
|
164
|
+
this.counters.forEach((counter) => {
|
|
165
|
+
counterWrapper.append(counter);
|
|
166
|
+
});
|
|
167
|
+
|
|
168
|
+
this.counters = counterWrapper.querySelectorAll("auro-counter, [auro-counter]");
|
|
121
169
|
this.counters.forEach((counter) => {
|
|
122
170
|
counter.addEventListener("input", () => this.updateValue());
|
|
123
171
|
});
|
|
@@ -188,9 +236,14 @@ export class AuroCounterGroup extends LitElement {
|
|
|
188
236
|
// function that renders the HTML and CSS into the scope of the component
|
|
189
237
|
render() {
|
|
190
238
|
return html`
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
239
|
+
${this.isDropdown
|
|
240
|
+
? html`<${this.dropdownTag} common chevron>
|
|
241
|
+
<div slot="trigger">${this.total}<slot name="placeholder"></slot></div>
|
|
242
|
+
<auro-counter-wrapper isInDropdown>
|
|
243
|
+
</auro-counter-wrapper>
|
|
244
|
+
</${this.dropdownTag}>
|
|
245
|
+
<slot @slotchange=${() => this.configureDropdownCounters()}></slot>`
|
|
246
|
+
: html`<auro-counter-wrapper><slot @slotchange=${() => this.configureCounters()}></slot></auro-counter-wrapper>`
|
|
247
|
+
}`;
|
|
195
248
|
}
|
|
196
249
|
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
2
|
+
// See LICENSE in the project root for license information.
|
|
3
|
+
|
|
4
|
+
// ---------------------------------------------------------------------
|
|
5
|
+
|
|
6
|
+
import { html } from "lit/static-html.js";
|
|
7
|
+
import { LitElement } from "lit";
|
|
8
|
+
|
|
9
|
+
import styleCss from "./styles/counter-wrapper-css.js";
|
|
10
|
+
import colorCss from "./styles/counter-wrapper-color-css.js";
|
|
11
|
+
|
|
12
|
+
import AuroLibraryRuntimeUtils from "@aurodesignsystem/auro-library/scripts/utils/runtimeUtils.mjs";
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Auro Counter Wrapper is a group of counter components.
|
|
16
|
+
*
|
|
17
|
+
* This web component provides a flexible interface for grouping multiple counters, supporting
|
|
18
|
+
* validation, custom validity messages, and disabled states based on the group's value.
|
|
19
|
+
*
|
|
20
|
+
* @element auro-counter-group
|
|
21
|
+
* @extends LitElement
|
|
22
|
+
* @slot Default - Slot for counter elements.
|
|
23
|
+
*/
|
|
24
|
+
export class AuroCounterWrapper extends LitElement {
|
|
25
|
+
|
|
26
|
+
static get styles() {
|
|
27
|
+
return [
|
|
28
|
+
colorCss,
|
|
29
|
+
styleCss
|
|
30
|
+
];
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Registers the custom element with the browser.
|
|
35
|
+
* @param {string} [name="auro-counter-wrapper"] - Custom element name to register.
|
|
36
|
+
* @example
|
|
37
|
+
* AuroCounterWrapper.register("custom-counter-wrapper") // registers <custom-counter-wrapper/>
|
|
38
|
+
*/
|
|
39
|
+
static register(name = "auro-counter-wrapper") {
|
|
40
|
+
AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroCounterWrapper);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
// function that renders the HTML and CSS into the scope of the component
|
|
44
|
+
render() {
|
|
45
|
+
return html`<slot></slot>`;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/* istanbul ignore else */
|
|
50
|
+
// define the name of the custom component
|
|
51
|
+
if (!customElements.get("auro-counter-wrapper")) {
|
|
52
|
+
customElements.define("auro-counter-wrapper", AuroCounterWrapper);
|
|
53
|
+
}
|
|
54
|
+
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { css } from 'lit';
|
|
2
|
-
export default css`:host{position:relative;display:block}
|
|
2
|
+
export default css`:host{position:relative;display:block}[slot=trigger]{display:flex;align-items:center;justify-content:space-between;gap:var(--ds-size-100, 0.5rem)}`;
|
|
@@ -4,13 +4,9 @@
|
|
|
4
4
|
display: block;
|
|
5
5
|
}
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
[slot=trigger] {
|
|
8
8
|
display: flex;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
.counters ::slotted(*:not(:first-child)) {
|
|
13
|
-
padding-top: var(--ds-size-300, 1.5rem);
|
|
14
|
-
border-top-width: 1px;
|
|
15
|
-
border-top-style: solid;
|
|
9
|
+
align-items: center;
|
|
10
|
+
justify-content: space-between;
|
|
11
|
+
gap: var(--ds-size-100, 0.5rem);
|
|
16
12
|
}
|
|
@@ -17,14 +17,10 @@
|
|
|
17
17
|
display: block;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
padding-top: var(--ds-size-300, $ds-size-300);
|
|
27
|
-
border-top-width: 1px;
|
|
28
|
-
border-top-style: solid;
|
|
29
|
-
}
|
|
20
|
+
[slot="trigger"] {
|
|
21
|
+
display: flex;
|
|
22
|
+
align-items: center;
|
|
23
|
+
justify-content: space-between;
|
|
24
|
+
gap: var(--ds-size-100, $ds-size-100);
|
|
25
|
+
|
|
30
26
|
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { css } from 'lit';
|
|
2
|
+
export default css`:host{display:flex;flex-direction:column;gap:var(--ds-size-300, 1.5rem)}:host ::slotted(*:not(:first-child)){padding-top:var(--ds-size-300, 1.5rem);border-top-width:1px;border-top-style:solid}:host([isindropdown]){padding:var(--ds-size-300, 1.5rem)}`;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/* stylelint-disable no-descending-specificity, selector-max-attribute, selector-nest-combinators */
|
|
2
|
+
:host {
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
gap: var(--ds-size-300, 1.5rem);
|
|
6
|
+
}
|
|
7
|
+
:host ::slotted(*:not(:first-child)) {
|
|
8
|
+
padding-top: var(--ds-size-300, 1.5rem);
|
|
9
|
+
border-top-width: 1px;
|
|
10
|
+
border-top-style: solid;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
:host([isindropdown]) {
|
|
14
|
+
padding: var(--ds-size-300, 1.5rem);
|
|
15
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license.
|
|
2
|
+
// See LICENSE in the project root for license information.
|
|
3
|
+
|
|
4
|
+
// ---------------------------------------------------------------------
|
|
5
|
+
|
|
6
|
+
// layout styles - define any layout specifications for UI that is contained WITHIN the component
|
|
7
|
+
// never define layout that would cause effect on element outside the scope of this component
|
|
8
|
+
|
|
9
|
+
// Support for fallback values
|
|
10
|
+
@import "@aurodesignsystem/design-tokens/dist/tokens/SCSSVariables";
|
|
11
|
+
@import '@aurodesignsystem/webcorestylesheets/src/breakpoints';
|
|
12
|
+
|
|
13
|
+
/* stylelint-disable no-descending-specificity, selector-max-attribute, selector-nest-combinators */
|
|
14
|
+
|
|
15
|
+
:host {
|
|
16
|
+
display: flex;
|
|
17
|
+
flex-direction: column;
|
|
18
|
+
gap: var(--ds-size-300, $ds-size-300);
|
|
19
|
+
|
|
20
|
+
::slotted(*:not(:first-child)) {
|
|
21
|
+
padding-top: var(--ds-size-300, $ds-size-300);
|
|
22
|
+
border-top-width: 1px;
|
|
23
|
+
border-top-style: solid;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
:host([isindropdown]) {
|
|
28
|
+
padding: var(--ds-size-300, $ds-size-300);
|
|
29
|
+
}
|
|
@@ -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.7s[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.6s[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.4s[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.16/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.16/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.16/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.16/dist/auro-datepicker__bundled.js" type="module"></script>
|
|
100
100
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
101
101
|
|
|
102
102
|
## auro-datepicker use cases
|
|
@@ -90,13 +90,13 @@ More info and automated migrator: https://sass-lang.com/d/import
|
|
|
90
90
|
|
|
91
91
|
[36m
|
|
92
92
|
[1m./src/index.js[22m → [1mdist[22m...[39m
|
|
93
|
-
[32mcreated [1mdist[22m in [1m1.
|
|
93
|
+
[32mcreated [1mdist[22m in [1m1.2s[22m[39m
|
|
94
94
|
[36m
|
|
95
95
|
[1m./demo/index.js[22m → [1m./demo/[22m...[39m
|
|
96
|
-
[32mcreated [1m./demo/[22m in [
|
|
96
|
+
[32mcreated [1m./demo/[22m in [1m801ms[22m[39m
|
|
97
97
|
[36m
|
|
98
98
|
[1m./demo/api.js[22m → [1m./demo/[22m...[39m
|
|
99
|
-
[32mcreated [1m./demo/[22m in [
|
|
99
|
+
[32mcreated [1m./demo/[22m in [1m652ms[22m[39m
|
|
100
100
|
|
|
101
101
|
> @aurodesignsystem/auro-dropdown@3.0.0 build:docs
|
|
102
102
|
> wca analyze 'scripts/wca/*.js' --outFiles docs/api.md; node ../../packages/build-tools/src/docProcessor.mjs --component dropdown
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
[32mcreated [1mdist[22m in [1m1.2s[22m[39m
|
|
8
8
|
[36m
|
|
9
9
|
[1m./demo/index.js[22m → [1m./demo/[22m...[39m
|
|
10
|
-
[32mcreated [1m./demo/[22m in [
|
|
10
|
+
[32mcreated [1m./demo/[22m in [1m814ms[22m[39m
|
|
11
11
|
[36m
|
|
12
12
|
[1m./demo/api.js[22m → [1m./demo/[22m...[39m
|
|
13
|
-
[32mcreated [1m./demo/[22m in [
|
|
13
|
+
[32mcreated [1m./demo/[22m in [1m806ms[22m[39m
|
|
@@ -97,7 +97,7 @@ In cases where the project is not able to process JS assets, there are pre-proce
|
|
|
97
97
|
<!-- The below content is automatically added from ../../docs/templates/componentBundleUseModBrowsers.md -->
|
|
98
98
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@4.9.2/dist/tokens/CSSCustomProperties.css" />
|
|
99
99
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@5.1.2/dist/bundled/essentials.css" />
|
|
100
|
-
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-dropdown@2.0.0-beta.
|
|
100
|
+
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-dropdown@2.0.0-beta.16/dist/auro-dropdown__bundled.js" type="module"></script>
|
|
101
101
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
102
102
|
|
|
103
103
|
## auro-dropdown use cases
|
|
@@ -69,13 +69,13 @@ Run in verbose mode to see all warnings.
|
|
|
69
69
|
|
|
70
70
|
[36m
|
|
71
71
|
[1m./src/index.js[22m → [1mdist[22m...[39m
|
|
72
|
-
[32mcreated [1mdist[22m in [
|
|
72
|
+
[32mcreated [1mdist[22m in [1m149ms[22m[39m
|
|
73
73
|
[36m
|
|
74
74
|
[1m./demo/index.js[22m → [1m./demo/[22m...[39m
|
|
75
|
-
[32mcreated [1m./demo/[22m in [
|
|
75
|
+
[32mcreated [1m./demo/[22m in [1m77ms[22m[39m
|
|
76
76
|
[36m
|
|
77
77
|
[1m./demo/api.js[22m → [1m./demo/[22m...[39m
|
|
78
|
-
[32mcreated [1m./demo/[22m in [
|
|
78
|
+
[32mcreated [1m./demo/[22m in [1m70ms[22m[39m
|
|
79
79
|
|
|
80
80
|
> @aurodesignsystem/auro-form@1.0.0 build:docs
|
|
81
81
|
> wca analyze 'scripts/wca/*.js' --outFiles docs/api.md; node ../../packages/build-tools/src/docProcessor.mjs --component form
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
|
|
5
5
|
[36m
|
|
6
6
|
[1m./src/index.js[22m → [1mdist[22m...[39m
|
|
7
|
-
[32mcreated [1mdist[22m in [
|
|
7
|
+
[32mcreated [1mdist[22m in [1m674ms[22m[39m
|
|
8
8
|
[36m
|
|
9
9
|
[1m./demo/index.js[22m → [1m./demo/[22m...[39m
|
|
10
|
-
[32mcreated [1m./demo/[22m in [
|
|
10
|
+
[32mcreated [1m./demo/[22m in [1m389ms[22m[39m
|
|
11
11
|
[36m
|
|
12
12
|
[1m./demo/api.js[22m → [1m./demo/[22m...[39m
|
|
13
|
-
[32mcreated [1m./demo/[22m in [
|
|
13
|
+
[32mcreated [1m./demo/[22m in [1m380ms[22m[39m
|
|
@@ -75,10 +75,11 @@ import "@aurodesignsystem/auro-formkit/auro-form";
|
|
|
75
75
|
<!-- The below code snippet is automatically added from ./apiExamples/basic.html -->
|
|
76
76
|
|
|
77
77
|
```html
|
|
78
|
-
<auro-form>
|
|
79
|
-
<auro-input>
|
|
80
|
-
|
|
81
|
-
</auro-input>
|
|
78
|
+
<auro-form>
|
|
79
|
+
<auro-input>
|
|
80
|
+
<span slot="label">Hello World</span>
|
|
81
|
+
</auro-input>
|
|
82
|
+
</auro-form>
|
|
82
83
|
```
|
|
83
84
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
84
85
|
|
|
@@ -97,7 +98,7 @@ In cases where the project is not able to process JS assets, there are pre-proce
|
|
|
97
98
|
<!-- The below content is automatically added from ../../docs/templates/componentBundleUseModBrowsers.md -->
|
|
98
99
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@4.12.1/dist/tokens/CSSCustomProperties.css" />
|
|
99
100
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@5.1.2/dist/bundled/essentials.css" />
|
|
100
|
-
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-form@2.0.0-beta.
|
|
101
|
+
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-form@2.0.0-beta.16/dist/auro-form__bundled.js" type="module"></script>
|
|
101
102
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
102
103
|
|
|
103
104
|
## auro-form use cases
|
|
@@ -119,10 +120,11 @@ The `<auro-form>` element should be used in situations where users may:
|
|
|
119
120
|
<!-- The below code snippet is automatically added from ./apiExamples/basic.html -->
|
|
120
121
|
|
|
121
122
|
```html
|
|
122
|
-
<auro-form>
|
|
123
|
-
<auro-input>
|
|
124
|
-
|
|
125
|
-
</auro-input>
|
|
123
|
+
<auro-form>
|
|
124
|
+
<auro-input>
|
|
125
|
+
<span slot="label">Hello World</span>
|
|
126
|
+
</auro-input>
|
|
127
|
+
</auro-form>
|
|
126
128
|
```
|
|
127
129
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
128
130
|
|