@noctuatech/uswds 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +25 -0
- package/package.json +89 -0
- package/src/lib/alert/alert-types.ts +33 -0
- package/src/lib/alert/alert.element.ts +105 -0
- package/src/lib/alert/alert.stories.ts +63 -0
- package/src/lib/alert/alert.test.ts +23 -0
- package/src/lib/button/button.element.ts +224 -0
- package/src/lib/button/button.stories.ts +34 -0
- package/src/lib/button/button.test.ts +17 -0
- package/src/lib/checkbox/checkbox.element.ts +166 -0
- package/src/lib/checkbox/checkbox.stories.ts +57 -0
- package/src/lib/checkbox/checkbox.test.ts +47 -0
- package/src/lib/config/config.element.ts +31 -0
- package/src/lib/config/config.test.ts +15 -0
- package/src/lib/define.ts +14 -0
- package/src/lib/description/description.element.ts +22 -0
- package/src/lib/description/description.test.ts +15 -0
- package/src/lib/file-input/file-input-preview.element.ts +121 -0
- package/src/lib/file-input/file-input-preview.test.ts +95 -0
- package/src/lib/file-input/file-input.element.ts +140 -0
- package/src/lib/file-input/file-input.stories.ts +46 -0
- package/src/lib/file-input/file-input.test.ts +47 -0
- package/src/lib/icon/icon-types.ts +263 -0
- package/src/lib/icon/icon.element.ts +65 -0
- package/src/lib/icon/icon.stories.ts +50 -0
- package/src/lib/input/input.element.ts +138 -0
- package/src/lib/input/input.stories.ts +30 -0
- package/src/lib/input/input.test.ts +48 -0
- package/src/lib/input-mask/format.ts +56 -0
- package/src/lib/input-mask/input-mask.element.ts +93 -0
- package/src/lib/input-mask/input-mask.stories.ts +38 -0
- package/src/lib/input-mask/input-mask.test.ts +106 -0
- package/src/lib/input-mask/maskable.element.ts +5 -0
- package/src/lib/link/link.element.ts +62 -0
- package/src/lib/link/link.stories.ts +30 -0
- package/src/lib/radio/radio-option.element.ts +46 -0
- package/src/lib/radio/radio-option.test.ts +20 -0
- package/src/lib/radio/radio.element.ts +152 -0
- package/src/lib/radio/radio.stories.ts +47 -0
- package/src/lib/radio/radio.test.ts +174 -0
- package/src/lib/select/select-option.element.ts +40 -0
- package/src/lib/select/select.element.ts +121 -0
- package/src/lib/select/select.stories.ts +33 -0
- package/src/lib/select/select.test.ts +113 -0
- package/src/lib/tag/tag.element.ts +46 -0
- package/src/lib/tag/tag.stories.ts +31 -0
- package/src/lib/tag/tag.test.ts +15 -0
- package/src/lib.ts +13 -0
- package/target/lib/alert/alert-types.d.ts +7 -0
- package/target/lib/alert/alert-types.js +25 -0
- package/target/lib/alert/alert-types.js.map +1 -0
- package/target/lib/alert/alert.element.d.ts +11 -0
- package/target/lib/alert/alert.element.js +124 -0
- package/target/lib/alert/alert.element.js.map +1 -0
- package/target/lib/alert/alert.stories.d.ts +11 -0
- package/target/lib/alert/alert.stories.js +56 -0
- package/target/lib/alert/alert.stories.js.map +1 -0
- package/target/lib/alert/alert.test.d.ts +1 -0
- package/target/lib/alert/alert.test.js +20 -0
- package/target/lib/alert/alert.test.js.map +1 -0
- package/target/lib/button/button.element.d.ts +17 -0
- package/target/lib/button/button.element.js +259 -0
- package/target/lib/button/button.element.js.map +1 -0
- package/target/lib/button/button.stories.d.ts +12 -0
- package/target/lib/button/button.stories.js +25 -0
- package/target/lib/button/button.stories.js.map +1 -0
- package/target/lib/button/button.test.d.ts +1 -0
- package/target/lib/button/button.test.js +14 -0
- package/target/lib/button/button.test.js.map +1 -0
- package/target/lib/checkbox/checkbox.element.d.ts +16 -0
- package/target/lib/checkbox/checkbox.element.js +205 -0
- package/target/lib/checkbox/checkbox.element.js.map +1 -0
- package/target/lib/checkbox/checkbox.stories.d.ts +31 -0
- package/target/lib/checkbox/checkbox.stories.js +46 -0
- package/target/lib/checkbox/checkbox.stories.js.map +1 -0
- package/target/lib/checkbox/checkbox.test.d.ts +1 -0
- package/target/lib/checkbox/checkbox.test.js +38 -0
- package/target/lib/checkbox/checkbox.test.js.map +1 -0
- package/target/lib/config/config.element.d.ts +8 -0
- package/target/lib/config/config.element.js +57 -0
- package/target/lib/config/config.element.js.map +1 -0
- package/target/lib/config/config.test.d.ts +1 -0
- package/target/lib/config/config.test.js +11 -0
- package/target/lib/config/config.test.js.map +1 -0
- package/target/lib/define.d.ts +14 -0
- package/target/lib/define.js +15 -0
- package/target/lib/define.js.map +1 -0
- package/target/lib/description/description.element.d.ts +7 -0
- package/target/lib/description/description.element.js +34 -0
- package/target/lib/description/description.element.js.map +1 -0
- package/target/lib/description/description.test.d.ts +1 -0
- package/target/lib/description/description.test.js +11 -0
- package/target/lib/description/description.test.js.map +1 -0
- package/target/lib/file-input/file-input-preview.element.d.ts +11 -0
- package/target/lib/file-input/file-input-preview.element.js +136 -0
- package/target/lib/file-input/file-input-preview.element.js.map +1 -0
- package/target/lib/file-input/file-input-preview.test.d.ts +2 -0
- package/target/lib/file-input/file-input-preview.test.js +67 -0
- package/target/lib/file-input/file-input-preview.test.js.map +1 -0
- package/target/lib/file-input/file-input.element.d.ts +18 -0
- package/target/lib/file-input/file-input.element.js +180 -0
- package/target/lib/file-input/file-input.element.js.map +1 -0
- package/target/lib/file-input/file-input.stories.d.ts +12 -0
- package/target/lib/file-input/file-input.stories.js +36 -0
- package/target/lib/file-input/file-input.stories.js.map +1 -0
- package/target/lib/file-input/file-input.test.d.ts +1 -0
- package/target/lib/file-input/file-input.test.js +37 -0
- package/target/lib/file-input/file-input.test.js.map +1 -0
- package/target/lib/icon/icon-types.d.ts +2 -0
- package/target/lib/icon/icon-types.js +262 -0
- package/target/lib/icon/icon-types.js.map +1 -0
- package/target/lib/icon/icon.element.d.ts +12 -0
- package/target/lib/icon/icon.element.js +84 -0
- package/target/lib/icon/icon.element.js.map +1 -0
- package/target/lib/icon/icon.stories.d.ts +12 -0
- package/target/lib/icon/icon.stories.js +39 -0
- package/target/lib/icon/icon.stories.js.map +1 -0
- package/target/lib/input/input.element.d.ts +19 -0
- package/target/lib/input/input.element.js +166 -0
- package/target/lib/input/input.element.js.map +1 -0
- package/target/lib/input/input.stories.d.ts +12 -0
- package/target/lib/input/input.stories.js +23 -0
- package/target/lib/input/input.stories.js.map +1 -0
- package/target/lib/input/input.test.d.ts +1 -0
- package/target/lib/input/input.test.js +38 -0
- package/target/lib/input/input.test.js.map +1 -0
- package/target/lib/input-mask/format.d.ts +15 -0
- package/target/lib/input-mask/format.js +47 -0
- package/target/lib/input-mask/format.js.map +1 -0
- package/target/lib/input-mask/input-mask.element.d.ts +12 -0
- package/target/lib/input-mask/input-mask.element.js +111 -0
- package/target/lib/input-mask/input-mask.element.js.map +1 -0
- package/target/lib/input-mask/input-mask.stories.d.ts +14 -0
- package/target/lib/input-mask/input-mask.stories.js +31 -0
- package/target/lib/input-mask/input-mask.stories.js.map +1 -0
- package/target/lib/input-mask/input-mask.test.d.ts +2 -0
- package/target/lib/input-mask/input-mask.test.js +85 -0
- package/target/lib/input-mask/input-mask.test.js.map +1 -0
- package/target/lib/input-mask/maskable.element.d.ts +5 -0
- package/target/lib/input-mask/maskable.element.js +2 -0
- package/target/lib/input-mask/maskable.element.js.map +1 -0
- package/target/lib/link/link.element.d.ts +13 -0
- package/target/lib/link/link.element.js +98 -0
- package/target/lib/link/link.element.js.map +1 -0
- package/target/lib/link/link.stories.d.ts +16 -0
- package/target/lib/link/link.stories.js +23 -0
- package/target/lib/link/link.stories.js.map +1 -0
- package/target/lib/radio/radio-option.element.d.ts +13 -0
- package/target/lib/radio/radio-option.element.js +63 -0
- package/target/lib/radio/radio-option.element.js.map +1 -0
- package/target/lib/radio/radio-option.test.d.ts +2 -0
- package/target/lib/radio/radio-option.test.js +15 -0
- package/target/lib/radio/radio-option.test.js.map +1 -0
- package/target/lib/radio/radio.element.d.ts +18 -0
- package/target/lib/radio/radio.element.js +177 -0
- package/target/lib/radio/radio.element.js.map +1 -0
- package/target/lib/radio/radio.stories.d.ts +12 -0
- package/target/lib/radio/radio.stories.js +40 -0
- package/target/lib/radio/radio.stories.js.map +1 -0
- package/target/lib/radio/radio.test.d.ts +2 -0
- package/target/lib/radio/radio.test.js +147 -0
- package/target/lib/radio/radio.test.js.map +1 -0
- package/target/lib/select/select-option.element.d.ts +11 -0
- package/target/lib/select/select-option.element.js +58 -0
- package/target/lib/select/select-option.element.js.map +1 -0
- package/target/lib/select/select.element.d.ts +16 -0
- package/target/lib/select/select.element.js +144 -0
- package/target/lib/select/select.element.js.map +1 -0
- package/target/lib/select/select.stories.d.ts +12 -0
- package/target/lib/select/select.stories.js +26 -0
- package/target/lib/select/select.stories.js.map +1 -0
- package/target/lib/select/select.test.d.ts +2 -0
- package/target/lib/select/select.test.js +89 -0
- package/target/lib/select/select.test.js.map +1 -0
- package/target/lib/tag/tag.element.d.ts +10 -0
- package/target/lib/tag/tag.element.js +66 -0
- package/target/lib/tag/tag.element.js.map +1 -0
- package/target/lib/tag/tag.stories.d.ts +19 -0
- package/target/lib/tag/tag.stories.js +25 -0
- package/target/lib/tag/tag.stories.js.map +1 -0
- package/target/lib/tag/tag.test.d.ts +1 -0
- package/target/lib/tag/tag.test.js +11 -0
- package/target/lib/tag/tag.test.js.map +1 -0
- package/target/lib.d.ts +13 -0
- package/target/lib.js +14 -0
- package/target/lib.js.map +1 -0
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import { __classPrivateFieldGet, __classPrivateFieldSet, __esDecorate, __runInitializers, __setFunctionName } from "tslib";
|
|
2
|
+
import { attr, css, element, html, listen, query } from "@joist/element";
|
|
3
|
+
let USASelectElement = (() => {
|
|
4
|
+
var _USASelectElement_instances, _USASelectElement_select, _USASelectElement_internals, _USASelectElement_createId, _USASelectElement_value_accessor_storage, _USASelectElement_name_accessor_storage;
|
|
5
|
+
let _classDecorators = [element({
|
|
6
|
+
tagName: "usa-select",
|
|
7
|
+
shadowDom: [
|
|
8
|
+
css `
|
|
9
|
+
:host {
|
|
10
|
+
display: block;
|
|
11
|
+
font-family:
|
|
12
|
+
Source Sans Pro Web,
|
|
13
|
+
Helvetica Neue,
|
|
14
|
+
Helvetica,
|
|
15
|
+
Roboto,
|
|
16
|
+
Arial,
|
|
17
|
+
sans-serif;
|
|
18
|
+
line-height: 1.3;
|
|
19
|
+
position: relative;
|
|
20
|
+
width: 100%;
|
|
21
|
+
max-width: 30rem;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
select {
|
|
25
|
+
font-size: 1.06rem;
|
|
26
|
+
appearance: none;
|
|
27
|
+
border-width: 1px;
|
|
28
|
+
border-color: #5c5c5c;
|
|
29
|
+
border-style: solid;
|
|
30
|
+
border-radius: 0;
|
|
31
|
+
color: #1b1b1b;
|
|
32
|
+
display: block;
|
|
33
|
+
height: 2.5rem;
|
|
34
|
+
margin-top: 0.5rem;
|
|
35
|
+
padding: 0.5rem;
|
|
36
|
+
width: 100%;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
select:not(:disabled):focus {
|
|
40
|
+
outline: 0.25rem solid #2491ff;
|
|
41
|
+
outline-offset: 0;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
usa-icon {
|
|
45
|
+
position: absolute;
|
|
46
|
+
right: 0.5rem;
|
|
47
|
+
bottom: 12%;
|
|
48
|
+
height: 1.5rem;
|
|
49
|
+
width: 1.5rem;
|
|
50
|
+
}
|
|
51
|
+
`,
|
|
52
|
+
html `
|
|
53
|
+
<usa-icon icon="unfold_more"></usa-icon>
|
|
54
|
+
|
|
55
|
+
<label>
|
|
56
|
+
<div class="label">
|
|
57
|
+
<slot></slot>
|
|
58
|
+
</div>
|
|
59
|
+
|
|
60
|
+
<select></select>
|
|
61
|
+
</label>
|
|
62
|
+
`,
|
|
63
|
+
],
|
|
64
|
+
})];
|
|
65
|
+
let _classDescriptor;
|
|
66
|
+
let _classExtraInitializers = [];
|
|
67
|
+
let _classThis;
|
|
68
|
+
let _classSuper = HTMLElement;
|
|
69
|
+
let _instanceExtraInitializers = [];
|
|
70
|
+
let _value_decorators;
|
|
71
|
+
let _value_initializers = [];
|
|
72
|
+
let _value_extraInitializers = [];
|
|
73
|
+
let _name_decorators;
|
|
74
|
+
let _name_initializers = [];
|
|
75
|
+
let _name_extraInitializers = [];
|
|
76
|
+
let _onSelectChange_decorators;
|
|
77
|
+
var USASelectElement = _classThis = class extends _classSuper {
|
|
78
|
+
constructor() {
|
|
79
|
+
super(...arguments);
|
|
80
|
+
_USASelectElement_instances.add(this);
|
|
81
|
+
_USASelectElement_value_accessor_storage.set(this, (__runInitializers(this, _instanceExtraInitializers), __runInitializers(this, _value_initializers, "")));
|
|
82
|
+
_USASelectElement_name_accessor_storage.set(this, (__runInitializers(this, _value_extraInitializers), __runInitializers(this, _name_initializers, "")));
|
|
83
|
+
_USASelectElement_select.set(this, (__runInitializers(this, _name_extraInitializers), query("select")));
|
|
84
|
+
_USASelectElement_internals.set(this, this.attachInternals());
|
|
85
|
+
}
|
|
86
|
+
get value() { return __classPrivateFieldGet(this, _USASelectElement_value_accessor_storage, "f"); }
|
|
87
|
+
set value(value) { __classPrivateFieldSet(this, _USASelectElement_value_accessor_storage, value, "f"); }
|
|
88
|
+
get name() { return __classPrivateFieldGet(this, _USASelectElement_name_accessor_storage, "f"); }
|
|
89
|
+
set name(value) { __classPrivateFieldSet(this, _USASelectElement_name_accessor_storage, value, "f"); }
|
|
90
|
+
connectedCallback() {
|
|
91
|
+
const select = __classPrivateFieldGet(this, _USASelectElement_select, "f").call(this);
|
|
92
|
+
select.value = this.value;
|
|
93
|
+
select.name = this.name;
|
|
94
|
+
__classPrivateFieldGet(this, _USASelectElement_internals, "f").setFormValue(this.value);
|
|
95
|
+
}
|
|
96
|
+
onSelectChange() {
|
|
97
|
+
const select = __classPrivateFieldGet(this, _USASelectElement_select, "f").call(this);
|
|
98
|
+
__classPrivateFieldGet(this, _USASelectElement_internals, "f").setFormValue(select.value);
|
|
99
|
+
}
|
|
100
|
+
onOptionAdded(el) {
|
|
101
|
+
const option = document.createElement("option");
|
|
102
|
+
option.value = el.value;
|
|
103
|
+
option.innerHTML = el.innerHTML;
|
|
104
|
+
option.id = __classPrivateFieldGet(this, _USASelectElement_instances, "m", _USASelectElement_createId).call(this, el.value);
|
|
105
|
+
const select = __classPrivateFieldGet(this, _USASelectElement_select, "f").call(this);
|
|
106
|
+
select.append(option);
|
|
107
|
+
}
|
|
108
|
+
onOptionRemoved(el) {
|
|
109
|
+
const select = __classPrivateFieldGet(this, _USASelectElement_select, "f").call(this);
|
|
110
|
+
const option = select.querySelector(`#${__classPrivateFieldGet(this, _USASelectElement_instances, "m", _USASelectElement_createId).call(this, el.value)}`);
|
|
111
|
+
if (option) {
|
|
112
|
+
option.remove();
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
_USASelectElement_select = new WeakMap();
|
|
117
|
+
_USASelectElement_internals = new WeakMap();
|
|
118
|
+
_USASelectElement_instances = new WeakSet();
|
|
119
|
+
_USASelectElement_value_accessor_storage = new WeakMap();
|
|
120
|
+
_USASelectElement_name_accessor_storage = new WeakMap();
|
|
121
|
+
_USASelectElement_createId = function _USASelectElement_createId(val) {
|
|
122
|
+
return val.split(" ").join("-").toLowerCase();
|
|
123
|
+
};
|
|
124
|
+
__setFunctionName(_classThis, "USASelectElement");
|
|
125
|
+
(() => {
|
|
126
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
127
|
+
_value_decorators = [attr()];
|
|
128
|
+
_name_decorators = [attr()];
|
|
129
|
+
_onSelectChange_decorators = [listen("change")];
|
|
130
|
+
__esDecorate(_classThis, null, _value_decorators, { kind: "accessor", name: "value", static: false, private: false, access: { has: obj => "value" in obj, get: obj => obj.value, set: (obj, value) => { obj.value = value; } }, metadata: _metadata }, _value_initializers, _value_extraInitializers);
|
|
131
|
+
__esDecorate(_classThis, null, _name_decorators, { kind: "accessor", name: "name", static: false, private: false, access: { has: obj => "name" in obj, get: obj => obj.name, set: (obj, value) => { obj.name = value; } }, metadata: _metadata }, _name_initializers, _name_extraInitializers);
|
|
132
|
+
__esDecorate(_classThis, null, _onSelectChange_decorators, { kind: "method", name: "onSelectChange", static: false, private: false, access: { has: obj => "onSelectChange" in obj, get: obj => obj.onSelectChange }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
133
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
134
|
+
USASelectElement = _classThis = _classDescriptor.value;
|
|
135
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
136
|
+
})();
|
|
137
|
+
_classThis.formAssociated = true;
|
|
138
|
+
(() => {
|
|
139
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
140
|
+
})();
|
|
141
|
+
return USASelectElement = _classThis;
|
|
142
|
+
})();
|
|
143
|
+
export { USASelectElement };
|
|
144
|
+
//# sourceMappingURL=select.element.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select.element.js","sourceRoot":"","sources":["../../../src/lib/select/select.element.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;IAsE5D,gBAAgB;;4BA5D5B,OAAO,CAAC;YACP,OAAO,EAAE,YAAY;YACrB,SAAS,EAAE;gBACT,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA2CF;gBACD,IAAI,CAAA;;;;;;;;;;KAUH;aACF;SACF,CAAC;;;;sBACoC,WAAW;;;;;;;;;6CAAnB,SAAQ,WAAW;;;;YAItC,oDAJE,mDAAgB,+CAIV,EAAE,IAAC;YAGX,kJAAO,EAAE,IAAC;YAEnB,sFAAU,KAAK,CAAC,QAAQ,CAAC,GAAC;YAC1B,sCAAa,IAAI,CAAC,eAAe,EAAE,EAAC;QAwCtC,CAAC;QA9CC,IAAS,KAAK,0FAAM;QAApB,IAAS,KAAK,+FAAM;QAGpB,IAAS,IAAI,yFAAM;QAAnB,IAAS,IAAI,8FAAM;QAKnB,iBAAiB;YACf,MAAM,MAAM,GAAG,uBAAA,IAAI,gCAAQ,MAAZ,IAAI,CAAU,CAAC;YAC9B,MAAM,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;YAC1B,MAAM,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;YAExB,uBAAA,IAAI,mCAAW,CAAC,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAC3C,CAAC;QAGD,cAAc;YACZ,MAAM,MAAM,GAAG,uBAAA,IAAI,gCAAQ,MAAZ,IAAI,CAAU,CAAC;YAE9B,uBAAA,IAAI,mCAAW,CAAC,YAAY,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QAC7C,CAAC;QAED,aAAa,CAAC,EAAyB;YACrC,MAAM,MAAM,GAAG,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;YAChD,MAAM,CAAC,KAAK,GAAG,EAAE,CAAC,KAAK,CAAC;YACxB,MAAM,CAAC,SAAS,GAAG,EAAE,CAAC,SAAS,CAAC;YAChC,MAAM,CAAC,EAAE,GAAG,uBAAA,IAAI,+DAAU,MAAd,IAAI,EAAW,EAAE,CAAC,KAAK,CAAC,CAAC;YAErC,MAAM,MAAM,GAAG,uBAAA,IAAI,gCAAQ,MAAZ,IAAI,CAAU,CAAC;YAE9B,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACxB,CAAC;QAED,eAAe,CAAC,EAAyB;YACvC,MAAM,MAAM,GAAG,uBAAA,IAAI,gCAAQ,MAAZ,IAAI,CAAU,CAAC;YAC9B,MAAM,MAAM,GAAG,MAAM,CAAC,aAAa,CAAC,IAAI,uBAAA,IAAI,+DAAU,MAAd,IAAI,EAAW,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;YAEpE,IAAI,MAAM,EAAE,CAAC;gBACX,MAAM,CAAC,MAAM,EAAE,CAAC;YAClB,CAAC;QACH,CAAC;;;;;;;qEAES,GAAW;QACnB,OAAO,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,WAAW,EAAE,CAAC;IAChD,CAAC;;;;6BA9CA,IAAI,EAAE;4BAGN,IAAI,EAAE;sCAcN,MAAM,CAAC,QAAQ,CAAC;QAhBjB,0KAAS,KAAK,6BAAL,KAAK,qFAAM;QAGpB,uKAAS,IAAI,6BAAJ,IAAI,mFAAM;QAcnB,mMAAA,cAAc,6DAIb;QAzBH,6KAkDC;;;;IAjDQ,yBAAc,GAAG,IAAI,AAAP,CAAQ;;QADlB,uDAAgB;;;;SAAhB,gBAAgB"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { StoryObj } from "@storybook/web-components";
|
|
2
|
+
import type { USASelectElement } from "./select.element.js";
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
tags: string[];
|
|
6
|
+
render(args: USASelectElement): import("lit-html").TemplateResult<1>;
|
|
7
|
+
argTypes: {};
|
|
8
|
+
args: {};
|
|
9
|
+
};
|
|
10
|
+
export default meta;
|
|
11
|
+
type Story = StoryObj<USASelectElement>;
|
|
12
|
+
export declare const Primary: Story;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { html } from "lit";
|
|
2
|
+
// More on how to set up stories at: https://storybook.js.org/docs/writing-stories
|
|
3
|
+
const meta = {
|
|
4
|
+
title: "usa-select",
|
|
5
|
+
tags: ["autodocs"],
|
|
6
|
+
render(args) {
|
|
7
|
+
return html `
|
|
8
|
+
<usa-select>
|
|
9
|
+
Hello World
|
|
10
|
+
|
|
11
|
+
<usa-select-option value="first">first</usa-select-option>
|
|
12
|
+
<usa-select-option value="second">second</usa-select-option>
|
|
13
|
+
<usa-select-option value="third">third</usa-select-option>
|
|
14
|
+
<usa-select-option value="fourth">fourth</usa-select-option>
|
|
15
|
+
</usa-select>
|
|
16
|
+
`;
|
|
17
|
+
},
|
|
18
|
+
argTypes: {},
|
|
19
|
+
args: {},
|
|
20
|
+
};
|
|
21
|
+
export default meta;
|
|
22
|
+
// More on writing stories with args: https://storybook.js.org/docs/writing-stories/args
|
|
23
|
+
export const Primary = {
|
|
24
|
+
args: {},
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=select.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select.stories.js","sourceRoot":"","sources":["../../../src/lib/select/select.stories.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAI3B,kFAAkF;AAClF,MAAM,IAAI,GAAG;IACX,KAAK,EAAE,YAAY;IACnB,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,MAAM,CAAC,IAAI;QACT,OAAO,IAAI,CAAA;;;;;;;;;KASV,CAAC;IACJ,CAAC;IACD,QAAQ,EAAE,EAAE;IACZ,IAAI,EAAE,EAAE;CACwB,CAAC;AAEnC,eAAe,IAAI,CAAC;AAIpB,wFAAwF;AACxF,MAAM,CAAC,MAAM,OAAO,GAAU;IAC5B,IAAI,EAAE,EAAE;CACT,CAAC"}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import "./select.element.js";
|
|
2
|
+
import "./select-option.element.js";
|
|
3
|
+
import { fixture, html, assert } from "@open-wc/testing";
|
|
4
|
+
import { fireEvent } from "@noctuatech-uswds/testing";
|
|
5
|
+
describe("usa-select", () => {
|
|
6
|
+
it("should be accessible", async () => {
|
|
7
|
+
const el = await fixture(html `
|
|
8
|
+
<usa-select name="example">
|
|
9
|
+
Hello World
|
|
10
|
+
|
|
11
|
+
<usa-select-option value="first">First</usa-select-option>
|
|
12
|
+
<usa-select-option value="second">Second</usa-select-option>
|
|
13
|
+
<usa-select-option value="third">Third</usa-select-option>
|
|
14
|
+
</usa-select>
|
|
15
|
+
`);
|
|
16
|
+
return assert.isAccessible(el);
|
|
17
|
+
});
|
|
18
|
+
it("should create local select options", async () => {
|
|
19
|
+
const form = await fixture(html `
|
|
20
|
+
<form>
|
|
21
|
+
<usa-select name="example">
|
|
22
|
+
Hello World
|
|
23
|
+
|
|
24
|
+
<usa-select-option value="first">First</usa-select-option>
|
|
25
|
+
<usa-select-option value="second">Second</usa-select-option>
|
|
26
|
+
<usa-select-option value="third">Third</usa-select-option>
|
|
27
|
+
</usa-select>
|
|
28
|
+
</form>
|
|
29
|
+
`);
|
|
30
|
+
const nativeInputs = form
|
|
31
|
+
.querySelector("usa-select")
|
|
32
|
+
.shadowRoot.querySelectorAll("option");
|
|
33
|
+
assert.deepEqual(Array.from(nativeInputs).map((input) => input.value), ["first", "second", "third"]);
|
|
34
|
+
});
|
|
35
|
+
it("should remove select options when options are removed", async () => {
|
|
36
|
+
const form = await fixture(html `
|
|
37
|
+
<form>
|
|
38
|
+
<usa-select name="example">
|
|
39
|
+
Hello World
|
|
40
|
+
|
|
41
|
+
<usa-select-option value="first">First</usa-select-option>
|
|
42
|
+
<usa-select-option value="second">Second</usa-select-option>
|
|
43
|
+
<usa-select-option value="third">Third</usa-select-option>
|
|
44
|
+
</usa-select>
|
|
45
|
+
</form>
|
|
46
|
+
`);
|
|
47
|
+
const options = form.querySelectorAll("usa-select-option");
|
|
48
|
+
options[1].remove();
|
|
49
|
+
const nativeInputs = form
|
|
50
|
+
.querySelector("usa-select")
|
|
51
|
+
.shadowRoot.querySelectorAll("option");
|
|
52
|
+
assert.deepEqual(Array.from(nativeInputs).map((input) => input.value), ["first", "third"]);
|
|
53
|
+
});
|
|
54
|
+
it("should submit form with default values", async () => {
|
|
55
|
+
const form = await fixture(html `
|
|
56
|
+
<form>
|
|
57
|
+
<usa-select name="example" value="second">
|
|
58
|
+
Hello World
|
|
59
|
+
|
|
60
|
+
<usa-select-option value="first">First</usa-select-option>
|
|
61
|
+
<usa-select-option value="second">Second</usa-select-option>
|
|
62
|
+
<usa-select-option value="third">Third</usa-select-option>
|
|
63
|
+
</usa-select>
|
|
64
|
+
</form>
|
|
65
|
+
`);
|
|
66
|
+
const value = new FormData(form);
|
|
67
|
+
assert.equal(value.get("example"), "second");
|
|
68
|
+
});
|
|
69
|
+
it("should update form value as select value changed", async () => {
|
|
70
|
+
const form = await fixture(html `
|
|
71
|
+
<form>
|
|
72
|
+
<usa-select name="example" value="second">
|
|
73
|
+
Hello World
|
|
74
|
+
|
|
75
|
+
<usa-select-option value="first">First</usa-select-option>
|
|
76
|
+
<usa-select-option value="second">Second</usa-select-option>
|
|
77
|
+
<usa-select-option value="third">Third</usa-select-option>
|
|
78
|
+
</usa-select>
|
|
79
|
+
</form>
|
|
80
|
+
`);
|
|
81
|
+
const select = form.querySelector("usa-select");
|
|
82
|
+
const nativeSelect = select.shadowRoot.querySelector("select");
|
|
83
|
+
nativeSelect.value = "third";
|
|
84
|
+
await fireEvent.change(nativeSelect, { bubbles: true });
|
|
85
|
+
const value = new FormData(form);
|
|
86
|
+
assert.equal(value.get("example"), "third");
|
|
87
|
+
});
|
|
88
|
+
});
|
|
89
|
+
//# sourceMappingURL=select.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select.test.js","sourceRoot":"","sources":["../../../src/lib/select/select.test.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
declare global {
|
|
2
|
+
interface HTMLElementTagNameMap {
|
|
3
|
+
"usa-tag": USATagElement;
|
|
4
|
+
}
|
|
5
|
+
}
|
|
6
|
+
export declare const TAG_VARIANTS: readonly ["default", "big"];
|
|
7
|
+
export type TagVariant = (typeof TAG_VARIANTS)[number];
|
|
8
|
+
export declare class USATagElement extends HTMLElement {
|
|
9
|
+
accessor variant: TagVariant;
|
|
10
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { __classPrivateFieldGet, __classPrivateFieldSet, __esDecorate, __runInitializers, __setFunctionName } from "tslib";
|
|
2
|
+
import { attr, css, element, html } from "@joist/element";
|
|
3
|
+
export const TAG_VARIANTS = ["default", "big"];
|
|
4
|
+
let USATagElement = (() => {
|
|
5
|
+
var _USATagElement_variant_accessor_storage;
|
|
6
|
+
let _classDecorators = [element({
|
|
7
|
+
tagName: "usa-tag",
|
|
8
|
+
shadowDom: [
|
|
9
|
+
css `
|
|
10
|
+
:host {
|
|
11
|
+
font-family:
|
|
12
|
+
Source Sans Pro Web,
|
|
13
|
+
Helvetica Neue,
|
|
14
|
+
Helvetica,
|
|
15
|
+
Roboto,
|
|
16
|
+
Arial,
|
|
17
|
+
sans-serif;
|
|
18
|
+
font-size: 0.93rem;
|
|
19
|
+
color: #fff;
|
|
20
|
+
text-transform: uppercase;
|
|
21
|
+
background-color: #5c5c5c;
|
|
22
|
+
border-radius: 2px;
|
|
23
|
+
margin-right: 0.25rem;
|
|
24
|
+
padding: 1px 0.5rem;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
:host([variant="big"]) {
|
|
28
|
+
padding-left: 0.5rem;
|
|
29
|
+
padding-right: 0.5rem;
|
|
30
|
+
font-size: 1.06rem;
|
|
31
|
+
}
|
|
32
|
+
`,
|
|
33
|
+
html `<slot></slot>`,
|
|
34
|
+
],
|
|
35
|
+
})];
|
|
36
|
+
let _classDescriptor;
|
|
37
|
+
let _classExtraInitializers = [];
|
|
38
|
+
let _classThis;
|
|
39
|
+
let _classSuper = HTMLElement;
|
|
40
|
+
let _variant_decorators;
|
|
41
|
+
let _variant_initializers = [];
|
|
42
|
+
let _variant_extraInitializers = [];
|
|
43
|
+
var USATagElement = _classThis = class extends _classSuper {
|
|
44
|
+
get variant() { return __classPrivateFieldGet(this, _USATagElement_variant_accessor_storage, "f"); }
|
|
45
|
+
set variant(value) { __classPrivateFieldSet(this, _USATagElement_variant_accessor_storage, value, "f"); }
|
|
46
|
+
constructor() {
|
|
47
|
+
super(...arguments);
|
|
48
|
+
_USATagElement_variant_accessor_storage.set(this, __runInitializers(this, _variant_initializers, "default"));
|
|
49
|
+
__runInitializers(this, _variant_extraInitializers);
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
_USATagElement_variant_accessor_storage = new WeakMap();
|
|
53
|
+
__setFunctionName(_classThis, "USATagElement");
|
|
54
|
+
(() => {
|
|
55
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
56
|
+
_variant_decorators = [attr()];
|
|
57
|
+
__esDecorate(_classThis, null, _variant_decorators, { kind: "accessor", name: "variant", static: false, private: false, access: { has: obj => "variant" in obj, get: obj => obj.variant, set: (obj, value) => { obj.variant = value; } }, metadata: _metadata }, _variant_initializers, _variant_extraInitializers);
|
|
58
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
59
|
+
USATagElement = _classThis = _classDescriptor.value;
|
|
60
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
61
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
62
|
+
})();
|
|
63
|
+
return USATagElement = _classThis;
|
|
64
|
+
})();
|
|
65
|
+
export { USATagElement };
|
|
66
|
+
//# sourceMappingURL=tag.element.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tag.element.js","sourceRoot":"","sources":["../../../src/lib/tag/tag.element.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAQ1D,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,SAAS,EAAE,KAAK,CAAU,CAAC;IAkC3C,aAAa;;4BA9BzB,OAAO,CAAC;YACP,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE;gBACT,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;KAuBF;gBACD,IAAI,CAAA,eAAe;aACpB;SACF,CAAC;;;;sBACiC,WAAW;;;;0CAAnB,SAAQ,WAAW;QAE5C,IAAS,OAAO,yFAAyB;QAAzC,IAAS,OAAO,8FAAyB;;;YAAhC,iGAAsB,SAAS,GAAC;;;;;;;;+BADxC,IAAI,EAAE;QACP,gLAAS,OAAO,6BAAP,OAAO,yFAAyB;QAF3C,6KAGC;;;QAHY,uDAAa;;;;SAAb,aAAa"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { StoryObj } from "@storybook/web-components";
|
|
2
|
+
import { type USATagElement } from "./tag.element.js";
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
tags: string[];
|
|
6
|
+
render(args: USATagElement): import("lit-html").TemplateResult<1>;
|
|
7
|
+
argTypes: {
|
|
8
|
+
variant: {
|
|
9
|
+
control: "select";
|
|
10
|
+
options: readonly ["default", "big"];
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
args: {
|
|
14
|
+
variant: "default";
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export default meta;
|
|
18
|
+
type Story = StoryObj<USATagElement>;
|
|
19
|
+
export declare const Primary: Story;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { html } from "lit";
|
|
2
|
+
import { TAG_VARIANTS } from "./tag.element.js";
|
|
3
|
+
// More on how to set up stories at: https://storybook.js.org/docs/writing-stories
|
|
4
|
+
const meta = {
|
|
5
|
+
title: "usa-tag",
|
|
6
|
+
tags: ["autodocs"],
|
|
7
|
+
render(args) {
|
|
8
|
+
return html `<usa-tag variant=${args.variant}>Hello World</usa-tag>`;
|
|
9
|
+
},
|
|
10
|
+
argTypes: {
|
|
11
|
+
variant: {
|
|
12
|
+
control: "select",
|
|
13
|
+
options: TAG_VARIANTS,
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
args: {
|
|
17
|
+
variant: "default",
|
|
18
|
+
},
|
|
19
|
+
};
|
|
20
|
+
export default meta;
|
|
21
|
+
// More on writing stories with args: https://storybook.js.org/docs/writing-stories/args
|
|
22
|
+
export const Primary = {
|
|
23
|
+
args: {},
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=tag.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tag.stories.js","sourceRoot":"","sources":["../../../src/lib/tag/tag.stories.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAE3B,OAAO,EAAE,YAAY,EAAsB,MAAM,kBAAkB,CAAC;AAEpE,kFAAkF;AAClF,MAAM,IAAI,GAAG;IACX,KAAK,EAAE,SAAS;IAChB,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,MAAM,CAAC,IAAI;QACT,OAAO,IAAI,CAAA,oBAAoB,IAAI,CAAC,OAAO,wBAAwB,CAAC;IACtE,CAAC;IACD,QAAQ,EAAE;QACR,OAAO,EAAE;YACP,OAAO,EAAE,QAAQ;YACjB,OAAO,EAAE,YAAY;SACtB;KACF;IACD,IAAI,EAAE;QACJ,OAAO,EAAE,SAAS;KACnB;CAC4B,CAAC;AAEhC,eAAe,IAAI,CAAC;AAIpB,wFAAwF;AACxF,MAAM,CAAC,MAAM,OAAO,GAAU;IAC5B,IAAI,EAAE,EAAE;CACT,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./tag.element.js";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import "./tag.element.js";
|
|
2
|
+
import { fixture, html, assert } from "@open-wc/testing";
|
|
3
|
+
describe("usa-tag", () => {
|
|
4
|
+
it("should be accessible", async () => {
|
|
5
|
+
const tag = await fixture(html `
|
|
6
|
+
<usa-tag>Hello World</usa-tag>
|
|
7
|
+
`);
|
|
8
|
+
return assert.isAccessible(tag);
|
|
9
|
+
});
|
|
10
|
+
});
|
|
11
|
+
//# sourceMappingURL=tag.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tag.test.js","sourceRoot":"","sources":["../../../src/lib/tag/tag.test.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAE1B,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAIzD,QAAQ,CAAC,SAAS,EAAE,GAAG,EAAE;IACvB,EAAE,CAAC,sBAAsB,EAAE,KAAK,IAAI,EAAE;QACpC,MAAM,GAAG,GAAG,MAAM,OAAO,CAAgB,IAAI,CAAA;;KAE5C,CAAC,CAAC;QAEH,OAAO,MAAM,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC;IAClC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
package/target/lib.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export { USAAlertElement } from "./lib/alert/alert.element.js";
|
|
2
|
+
export { USAButtonElement } from "./lib/button/button.element.js";
|
|
3
|
+
export { USACheckboxElement } from "./lib/checkbox/checkbox.element.js";
|
|
4
|
+
export { USADescriptionElement } from "./lib/description/description.element.js";
|
|
5
|
+
export { USAIconElement } from "./lib/icon/icon.element.js";
|
|
6
|
+
export { USATextInputElement } from "./lib/input/input.element.js";
|
|
7
|
+
export { USAInputMaskElement } from "./lib/input-mask/input-mask.element.js";
|
|
8
|
+
export { USALinkElement } from "./lib/link/link.element.js";
|
|
9
|
+
export { USARadioElement } from "./lib/radio/radio.element.js";
|
|
10
|
+
export { USARadioOptionElement } from "./lib/radio/radio-option.element.js";
|
|
11
|
+
export { USASelectElement } from "./lib/select/select.element.js";
|
|
12
|
+
export { USASelecOptionElement } from "./lib/select/select-option.element.js";
|
|
13
|
+
export { USATagElement } from "./lib/tag/tag.element.js";
|
package/target/lib.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export { USAAlertElement } from "./lib/alert/alert.element.js";
|
|
2
|
+
export { USAButtonElement } from "./lib/button/button.element.js";
|
|
3
|
+
export { USACheckboxElement } from "./lib/checkbox/checkbox.element.js";
|
|
4
|
+
export { USADescriptionElement } from "./lib/description/description.element.js";
|
|
5
|
+
export { USAIconElement } from "./lib/icon/icon.element.js";
|
|
6
|
+
export { USATextInputElement } from "./lib/input/input.element.js";
|
|
7
|
+
export { USAInputMaskElement } from "./lib/input-mask/input-mask.element.js";
|
|
8
|
+
export { USALinkElement } from "./lib/link/link.element.js";
|
|
9
|
+
export { USARadioElement } from "./lib/radio/radio.element.js";
|
|
10
|
+
export { USARadioOptionElement } from "./lib/radio/radio-option.element.js";
|
|
11
|
+
export { USASelectElement } from "./lib/select/select.element.js";
|
|
12
|
+
export { USASelecOptionElement } from "./lib/select/select-option.element.js";
|
|
13
|
+
export { USATagElement } from "./lib/tag/tag.element.js";
|
|
14
|
+
//# sourceMappingURL=lib.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lib.js","sourceRoot":"","sources":["../src/lib.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AACxE,OAAO,EAAE,qBAAqB,EAAE,MAAM,0CAA0C,CAAC;AACjF,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAC7E,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAC5E,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,qBAAqB,EAAE,MAAM,uCAAuC,CAAC;AAC9E,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC"}
|