@spectrum-web-components/picker 0.12.1-devmode.0 → 0.13.0
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/package.json +13 -13
- package/sp-picker.js +1 -2
- package/sp-picker.js.map +1 -1
- package/src/Picker.js +17 -442
- package/src/Picker.js.map +1 -1
- package/src/index.js +1 -1
- package/src/index.js.map +1 -1
- package/src/picker.css.js +2 -4
- package/src/picker.css.js.map +1 -1
- package/src/spectrum-picker.css.js +2 -4
- package/src/spectrum-picker.css.js.map +1 -1
- package/stories/picker-sizes.stories.js +6 -29
- package/stories/picker-sizes.stories.js.map +1 -1
- package/stories/picker.stories.js +38 -155
- package/stories/picker.stories.js.map +1 -1
- package/stories/states.js +1 -226
- package/stories/states.js.map +1 -1
- package/sync/index.js +1 -7
- package/sync/index.js.map +1 -1
- package/sync/sp-picker.js +1 -2
- package/sync/sp-picker.js.map +1 -1
- package/test/benchmark/basic-test.js +4 -259
- package/test/benchmark/basic-test.js.map +1 -1
- package/test/index.js +14 -895
- package/test/index.js.map +1 -1
- package/test/picker-reparenting.test.js +2 -74
- package/test/picker-reparenting.test.js.map +1 -1
- package/test/picker-responsive.test.js +2 -43
- package/test/picker-responsive.test.js.map +1 -1
- package/test/picker-sizes.test-vrt.js +1 -3
- package/test/picker-sizes.test-vrt.js.map +1 -1
- package/test/picker-sync.test.js +1 -5
- package/test/picker-sync.test.js.map +1 -1
- package/test/picker.test-vrt.js +1 -3
- package/test/picker.test-vrt.js.map +1 -1
- package/test/picker.test.js +1 -5
- package/test/picker.test.js.map +1 -1
|
@@ -1,83 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import "@spectrum-web-components/picker/sp-picker.js";
|
|
3
|
-
import "@spectrum-web-components/menu/sp-menu-item.js";
|
|
4
|
-
import "@spectrum-web-components/menu/sp-menu-divider.js";
|
|
5
|
-
import "@spectrum-web-components/icons-workflow/icons/sp-icon-edit.js";
|
|
6
|
-
import "@spectrum-web-components/icons-workflow/icons/sp-icon-copy.js";
|
|
7
|
-
import "@spectrum-web-components/icons-workflow/icons/sp-icon-delete.js";
|
|
8
|
-
import { states } from "./states.js";
|
|
9
|
-
import "@spectrum-web-components/field-label/sp-field-label.js";
|
|
10
|
-
import { spreadProps } from "../../../test/lit-helpers.js";
|
|
11
|
-
export default {
|
|
12
|
-
title: "Picker",
|
|
13
|
-
component: "sp-picker",
|
|
14
|
-
args: {
|
|
15
|
-
disabled: false,
|
|
16
|
-
invalid: false,
|
|
17
|
-
open: false,
|
|
18
|
-
quiet: false
|
|
19
|
-
},
|
|
20
|
-
argTypes: {
|
|
21
|
-
onChange: { action: "change" },
|
|
22
|
-
disabled: {
|
|
23
|
-
name: "disabled",
|
|
24
|
-
type: { name: "boolean", required: false },
|
|
25
|
-
description: "Disable this control. It will not receive focus or events.",
|
|
26
|
-
table: {
|
|
27
|
-
type: { summary: "boolean" },
|
|
28
|
-
defaultValue: { summary: false }
|
|
29
|
-
},
|
|
30
|
-
control: {
|
|
31
|
-
type: "boolean"
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
invalid: {
|
|
35
|
-
name: "invalid",
|
|
36
|
-
type: { name: "boolean", required: false },
|
|
37
|
-
table: {
|
|
38
|
-
type: { summary: "boolean" },
|
|
39
|
-
defaultValue: { summary: false }
|
|
40
|
-
},
|
|
41
|
-
control: {
|
|
42
|
-
type: "boolean"
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
open: {
|
|
46
|
-
name: "open",
|
|
47
|
-
type: { name: "boolean", required: false },
|
|
48
|
-
description: "Whether the menu is open or not.",
|
|
49
|
-
table: {
|
|
50
|
-
type: { summary: "boolean" },
|
|
51
|
-
defaultValue: { summary: false }
|
|
52
|
-
},
|
|
53
|
-
control: "boolean"
|
|
54
|
-
},
|
|
55
|
-
quiet: {
|
|
56
|
-
name: "quiet",
|
|
57
|
-
type: { name: "boolean", required: false },
|
|
58
|
-
table: {
|
|
59
|
-
type: { summary: "boolean" },
|
|
60
|
-
defaultValue: { summary: false }
|
|
61
|
-
},
|
|
62
|
-
control: {
|
|
63
|
-
type: "boolean"
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
};
|
|
68
|
-
const handleChange = ({ onChange }) => (event) => {
|
|
69
|
-
const picker = event.target;
|
|
70
|
-
if (onChange)
|
|
71
|
-
onChange(picker.value);
|
|
72
|
-
};
|
|
73
|
-
export const Default = (args) => {
|
|
74
|
-
return html`
|
|
1
|
+
import{html as t}from"@spectrum-web-components/base";import"@spectrum-web-components/picker/sp-picker.js";import"@spectrum-web-components/menu/sp-menu-item.js";import"@spectrum-web-components/menu/sp-menu-divider.js";import"@spectrum-web-components/icons-workflow/icons/sp-icon-edit.js";import"@spectrum-web-components/icons-workflow/icons/sp-icon-copy.js";import"@spectrum-web-components/icons-workflow/icons/sp-icon-delete.js";import{states as n}from"./states.js";import"@spectrum-web-components/field-label/sp-field-label.js";import{spreadProps as s}from"../../../test/lit-helpers.js";export default{title:"Picker",component:"sp-picker",args:{disabled:!1,invalid:!1,open:!1,quiet:!1},argTypes:{onChange:{action:"change"},disabled:{name:"disabled",type:{name:"boolean",required:!1},description:"Disable this control. It will not receive focus or events.",table:{type:{summary:"boolean"},defaultValue:{summary:!1}},control:{type:"boolean"}},invalid:{name:"invalid",type:{name:"boolean",required:!1},table:{type:{summary:"boolean"},defaultValue:{summary:!1}},control:{type:"boolean"}},open:{name:"open",type:{name:"boolean",required:!1},description:"Whether the menu is open or not.",table:{type:{summary:"boolean"},defaultValue:{summary:!1}},control:"boolean"},quiet:{name:"quiet",type:{name:"boolean",required:!1},table:{type:{summary:"boolean"},defaultValue:{summary:!1}},control:{type:"boolean"}}}};const i=({onChange:e})=>l=>{const p=l.target;e&&e(p.value)};export const Default=e=>t`
|
|
75
2
|
<sp-field-label for="picker-1">Where do you live?</sp-field-label>
|
|
76
3
|
<sp-picker
|
|
77
4
|
id="picker-1"
|
|
78
|
-
@change=${
|
|
5
|
+
@change=${i(e)}
|
|
79
6
|
label="Select a Country with a very long label, too long, in fact"
|
|
80
|
-
${
|
|
7
|
+
${s(e)}
|
|
81
8
|
>
|
|
82
9
|
<sp-menu-item>Deselect</sp-menu-item>
|
|
83
10
|
<sp-menu-item>Select Inverse</sp-menu-item>
|
|
@@ -94,15 +21,12 @@ export const Default = (args) => {
|
|
|
94
21
|
<a href="#anchor">link</a>
|
|
95
22
|
.
|
|
96
23
|
</p>
|
|
97
|
-
|
|
98
|
-
};
|
|
99
|
-
export const quiet = (args) => {
|
|
100
|
-
return html`
|
|
24
|
+
`,quiet=e=>t`
|
|
101
25
|
<sp-field-label for="picker-quiet">Where do you live?</sp-field-label>
|
|
102
26
|
<sp-picker
|
|
103
|
-
${
|
|
27
|
+
${s(e)}
|
|
104
28
|
id="picker-quiet"
|
|
105
|
-
@change=${
|
|
29
|
+
@change=${i(e)}
|
|
106
30
|
label="Pick an item"
|
|
107
31
|
>
|
|
108
32
|
<sp-menu-item value="1">Item 1</sp-menu-item>
|
|
@@ -117,20 +41,14 @@ export const quiet = (args) => {
|
|
|
117
41
|
<a href="#anchor">link</a>
|
|
118
42
|
.
|
|
119
43
|
</p>
|
|
120
|
-
`;
|
|
121
|
-
};
|
|
122
|
-
quiet.args = {
|
|
123
|
-
quiet: true
|
|
124
|
-
};
|
|
125
|
-
export const icons = (args) => {
|
|
126
|
-
return html`
|
|
44
|
+
`;quiet.args={quiet:!0};export const icons=e=>t`
|
|
127
45
|
<sp-field-label for="picker-quiet">
|
|
128
46
|
Choose an action type...
|
|
129
47
|
</sp-field-label>
|
|
130
48
|
<sp-picker
|
|
131
|
-
...=${
|
|
49
|
+
...=${s(e)}
|
|
132
50
|
id="picker-quiet"
|
|
133
|
-
@change=${
|
|
51
|
+
@change=${i(e)}
|
|
134
52
|
label="Pick an action"
|
|
135
53
|
value="1"
|
|
136
54
|
>
|
|
@@ -147,17 +65,14 @@ export const icons = (args) => {
|
|
|
147
65
|
Delete
|
|
148
66
|
</sp-menu-item>
|
|
149
67
|
</sp-picker>
|
|
150
|
-
|
|
151
|
-
};
|
|
152
|
-
export const iconsNone = (args) => {
|
|
153
|
-
return html`
|
|
68
|
+
`,iconsNone=e=>t`
|
|
154
69
|
<sp-field-label for="picker-quiet">
|
|
155
70
|
Choose an action type...
|
|
156
71
|
</sp-field-label>
|
|
157
72
|
<sp-picker
|
|
158
|
-
...=${
|
|
73
|
+
...=${s(e)}
|
|
159
74
|
id="picker-quiet"
|
|
160
|
-
@change=${
|
|
75
|
+
@change=${i(e)}
|
|
161
76
|
label="Pick an action"
|
|
162
77
|
value="1"
|
|
163
78
|
icons="none"
|
|
@@ -175,20 +90,14 @@ export const iconsNone = (args) => {
|
|
|
175
90
|
Delete
|
|
176
91
|
</sp-menu-item>
|
|
177
92
|
</sp-picker>
|
|
178
|
-
`;
|
|
179
|
-
};
|
|
180
|
-
iconsNone.args = {
|
|
181
|
-
open: true
|
|
182
|
-
};
|
|
183
|
-
export const iconValue = (args) => {
|
|
184
|
-
return html`
|
|
93
|
+
`;iconsNone.args={open:!0};export const iconValue=e=>t`
|
|
185
94
|
<sp-field-label for="picker-quiet">
|
|
186
95
|
Choose an action type...
|
|
187
96
|
</sp-field-label>
|
|
188
97
|
<sp-picker
|
|
189
|
-
...=${
|
|
98
|
+
...=${s(e)}
|
|
190
99
|
id="picker-quiet"
|
|
191
|
-
@change=${
|
|
100
|
+
@change=${i(e)}
|
|
192
101
|
label="Pick an action"
|
|
193
102
|
icons="only"
|
|
194
103
|
style="--spectrum-picker-width: 100px"
|
|
@@ -207,17 +116,14 @@ export const iconValue = (args) => {
|
|
|
207
116
|
Delete
|
|
208
117
|
</sp-menu-item>
|
|
209
118
|
</sp-picker>
|
|
210
|
-
|
|
211
|
-
};
|
|
212
|
-
export const iconsOnly = (args) => {
|
|
213
|
-
return html`
|
|
119
|
+
`,iconsOnly=e=>t`
|
|
214
120
|
<sp-field-label for="picker-quiet">
|
|
215
121
|
Choose an action type...
|
|
216
122
|
</sp-field-label>
|
|
217
123
|
<sp-picker
|
|
218
|
-
...=${
|
|
124
|
+
...=${s(e)}
|
|
219
125
|
id="picker-quiet"
|
|
220
|
-
@change=${
|
|
126
|
+
@change=${i(e)}
|
|
221
127
|
label="Pick an action"
|
|
222
128
|
style="--spectrum-picker-width: 100px"
|
|
223
129
|
value="3"
|
|
@@ -232,13 +138,7 @@ export const iconsOnly = (args) => {
|
|
|
232
138
|
<sp-icon-delete slot="icon" label="Delete"></sp-icon-delete>
|
|
233
139
|
</sp-menu-item>
|
|
234
140
|
</sp-picker>
|
|
235
|
-
`;
|
|
236
|
-
};
|
|
237
|
-
iconsOnly.args = {
|
|
238
|
-
open: true
|
|
239
|
-
};
|
|
240
|
-
export const Open = (args) => {
|
|
241
|
-
return html`
|
|
141
|
+
`;iconsOnly.args={open:!0};export const Open=e=>t`
|
|
242
142
|
<style>
|
|
243
143
|
fieldset {
|
|
244
144
|
float: left;
|
|
@@ -253,8 +153,8 @@ export const Open = (args) => {
|
|
|
253
153
|
<sp-picker
|
|
254
154
|
id="picker-open"
|
|
255
155
|
label="Open picker"
|
|
256
|
-
${
|
|
257
|
-
@change=${
|
|
156
|
+
${s(e)}
|
|
157
|
+
@change=${i(e)}
|
|
258
158
|
>
|
|
259
159
|
<span slot="label">
|
|
260
160
|
Select a Country with a very long label, too long, in fact
|
|
@@ -275,7 +175,7 @@ export const Open = (args) => {
|
|
|
275
175
|
<sp-picker
|
|
276
176
|
id="picker-closed"
|
|
277
177
|
label="Picker that displays below the options"
|
|
278
|
-
@change=${
|
|
178
|
+
@change=${i(e)}
|
|
279
179
|
>
|
|
280
180
|
<span slot="label">
|
|
281
181
|
Other menu that goes behind the open one
|
|
@@ -283,19 +183,13 @@ export const Open = (args) => {
|
|
|
283
183
|
<sp-menu-item>Not so many options...</sp-menu-item>
|
|
284
184
|
</sp-picker>
|
|
285
185
|
</fieldset>
|
|
286
|
-
`;
|
|
287
|
-
};
|
|
288
|
-
Open.args = {
|
|
289
|
-
open: true
|
|
290
|
-
};
|
|
291
|
-
export const initialValue = (args) => {
|
|
292
|
-
return html`
|
|
186
|
+
`;Open.args={open:!0};export const initialValue=e=>t`
|
|
293
187
|
<sp-field-label for="picker-initial">Where do you live?</sp-field-label>
|
|
294
188
|
<sp-picker
|
|
295
189
|
id="picker-initial"
|
|
296
|
-
@change=${
|
|
190
|
+
@change=${i(e)}
|
|
297
191
|
value="item-2"
|
|
298
|
-
${
|
|
192
|
+
${s(e)}
|
|
299
193
|
>
|
|
300
194
|
<span slot="label">
|
|
301
195
|
Select a Country with a very long label, too long in fact
|
|
@@ -308,15 +202,12 @@ export const initialValue = (args) => {
|
|
|
308
202
|
<sp-menu-item value="item-5">Save Selection</sp-menu-item>
|
|
309
203
|
<sp-menu-item disabled value="item-6">Make Work Path</sp-menu-item>
|
|
310
204
|
</sp-picker>
|
|
311
|
-
|
|
312
|
-
};
|
|
313
|
-
export const readonly = (args) => {
|
|
314
|
-
return html`
|
|
205
|
+
`,readonly=e=>t`
|
|
315
206
|
<sp-picker
|
|
316
|
-
@change=${
|
|
207
|
+
@change=${i(e)}
|
|
317
208
|
readonly
|
|
318
209
|
value="item-2"
|
|
319
|
-
${
|
|
210
|
+
${s(e)}
|
|
320
211
|
>
|
|
321
212
|
<span slot="label">
|
|
322
213
|
Select a Country with a very long label, too long in fact
|
|
@@ -329,29 +220,25 @@ export const readonly = (args) => {
|
|
|
329
220
|
<sp-menu-item value="item-5">Save Selection</sp-menu-item>
|
|
330
221
|
<sp-menu-item disabled value="item-6">Make Work Path</sp-menu-item>
|
|
331
222
|
</sp-picker>
|
|
332
|
-
|
|
333
|
-
};
|
|
334
|
-
export const custom = (args) => {
|
|
335
|
-
const initialState = "lb1-mo";
|
|
336
|
-
return html`
|
|
223
|
+
`,custom=e=>{const l="lb1-mo";return t`
|
|
337
224
|
<sp-field-label for="picker-state">
|
|
338
225
|
What state do you live in?
|
|
339
226
|
</sp-field-label>
|
|
340
227
|
<sp-picker
|
|
341
228
|
style="width: 400px;"
|
|
342
|
-
@change=${
|
|
229
|
+
@change=${i(e)}
|
|
343
230
|
id="picker-state"
|
|
344
231
|
label="Pick a state"
|
|
345
|
-
${
|
|
346
|
-
value=${
|
|
232
|
+
${s(e)}
|
|
233
|
+
value=${l}
|
|
347
234
|
>
|
|
348
|
-
${
|
|
235
|
+
${n.map(p=>t`
|
|
349
236
|
<sp-menu-item
|
|
350
|
-
id=${
|
|
351
|
-
value=${
|
|
352
|
-
?selected=${
|
|
237
|
+
id=${p.id}
|
|
238
|
+
value=${p.id}
|
|
239
|
+
?selected=${p.id===l}
|
|
353
240
|
>
|
|
354
|
-
${
|
|
241
|
+
${p.label}
|
|
355
242
|
</sp-menu-item>
|
|
356
243
|
`)}
|
|
357
244
|
</sp-picker>
|
|
@@ -362,9 +249,5 @@ export const custom = (args) => {
|
|
|
362
249
|
<a href="#anchor">link</a>
|
|
363
250
|
.
|
|
364
251
|
</p>
|
|
365
|
-
|
|
366
|
-
};
|
|
367
|
-
custom.args = {
|
|
368
|
-
open: true
|
|
369
|
-
};
|
|
252
|
+
`};custom.args={open:!0};
|
|
370
253
|
//# sourceMappingURL=picker.stories.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["picker.stories.ts"],
|
|
4
4
|
"sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport { html, TemplateResult } from '@spectrum-web-components/base';\n\nimport '@spectrum-web-components/picker/sp-picker.js';\nimport { Picker } from '@spectrum-web-components/picker';\nimport '@spectrum-web-components/menu/sp-menu-item.js';\nimport '@spectrum-web-components/menu/sp-menu-divider.js';\nimport '@spectrum-web-components/icons-workflow/icons/sp-icon-edit.js';\nimport '@spectrum-web-components/icons-workflow/icons/sp-icon-copy.js';\nimport '@spectrum-web-components/icons-workflow/icons/sp-icon-delete.js';\nimport { states } from './states.js';\nimport '@spectrum-web-components/field-label/sp-field-label.js';\nimport { spreadProps } from '../../../test/lit-helpers.js';\n\nexport default {\n title: 'Picker',\n component: 'sp-picker',\n args: {\n disabled: false,\n invalid: false,\n open: false,\n quiet: false,\n },\n argTypes: {\n onChange: { action: 'change' },\n disabled: {\n name: 'disabled',\n type: { name: 'boolean', required: false },\n description:\n 'Disable this control. It will not receive focus or events.',\n table: {\n type: { summary: 'boolean' },\n defaultValue: { summary: false },\n },\n control: {\n type: 'boolean',\n },\n },\n invalid: {\n name: 'invalid',\n type: { name: 'boolean', required: false },\n table: {\n type: { summary: 'boolean' },\n defaultValue: { summary: false },\n },\n control: {\n type: 'boolean',\n },\n },\n open: {\n name: 'open',\n type: { name: 'boolean', required: false },\n description: 'Whether the menu is open or not.',\n table: {\n type: { summary: 'boolean' },\n defaultValue: { summary: false },\n },\n control: 'boolean',\n },\n quiet: {\n name: 'quiet',\n type: { name: 'boolean', required: false },\n table: {\n type: { summary: 'boolean' },\n defaultValue: { summary: false },\n },\n control: {\n type: 'boolean',\n },\n },\n },\n};\n\ninterface StoryArgs {\n disabled?: boolean;\n invalid?: boolean;\n open?: boolean;\n quiet?: boolean;\n showText?: boolean;\n onChange?: (val: string) => void;\n [prop: string]: unknown;\n}\n\nconst handleChange =\n ({ onChange }: StoryArgs) =>\n (event: Event): void => {\n const picker = event.target as Picker;\n if (onChange) onChange(picker.value);\n };\n\nexport const Default = (args: StoryArgs): TemplateResult => {\n return html`\n <sp-field-label for=\"picker-1\">Where do you live?</sp-field-label>\n <sp-picker\n id=\"picker-1\"\n @change=${handleChange(args)}\n label=\"Select a Country with a very long label, too long, in fact\"\n ${spreadProps(args)}\n >\n <sp-menu-item>Deselect</sp-menu-item>\n <sp-menu-item>Select Inverse</sp-menu-item>\n <sp-menu-item>Feather...</sp-menu-item>\n <sp-menu-item>Select and Mask...</sp-menu-item>\n <sp-menu-divider></sp-menu-divider>\n <sp-menu-item>Save Selection</sp-menu-item>\n <sp-menu-item disabled>Make Work Path</sp-menu-item>\n </sp-picker>\n <p>This is some text.</p>\n <p>This is some text.</p>\n <p>\n This is a\n <a href=\"#anchor\">link</a>\n .\n </p>\n `;\n};\n\nexport const quiet = (args: StoryArgs): TemplateResult => {\n return html`\n <sp-field-label for=\"picker-quiet\">Where do you live?</sp-field-label>\n <sp-picker\n ${spreadProps(args)}\n id=\"picker-quiet\"\n @change=${handleChange(args)}\n label=\"Pick an item\"\n >\n <sp-menu-item value=\"1\">Item 1</sp-menu-item>\n <sp-menu-item value=\"2\">Item 2</sp-menu-item>\n <sp-menu-item value=\"3\">Item 3</sp-menu-item>\n <sp-menu-item value=\"4\">Item 4</sp-menu-item>\n </sp-picker>\n <p>This is some text.</p>\n <p>This is some text.</p>\n <p>\n This is a\n <a href=\"#anchor\">link</a>\n .\n </p>\n `;\n};\nquiet.args = {\n quiet: true,\n};\n\nexport const icons = (args: StoryArgs): TemplateResult => {\n return html`\n <sp-field-label for=\"picker-quiet\">\n Choose an action type...\n </sp-field-label>\n <sp-picker\n ...=${spreadProps(args)}\n id=\"picker-quiet\"\n @change=${handleChange(args)}\n label=\"Pick an action\"\n value=\"1\"\n >\n <sp-menu-item value=\"1\">\n <sp-icon-edit slot=\"icon\"></sp-icon-edit>\n Edit\n </sp-menu-item>\n <sp-menu-item value=\"2\">\n <sp-icon-copy slot=\"icon\"></sp-icon-copy>\n Copy\n </sp-menu-item>\n <sp-menu-item value=\"3\">\n <sp-icon-delete slot=\"icon\"></sp-icon-delete>\n Delete\n </sp-menu-item>\n </sp-picker>\n `;\n};\n\nexport const iconsNone = (args: StoryArgs): TemplateResult => {\n return html`\n <sp-field-label for=\"picker-quiet\">\n Choose an action type...\n </sp-field-label>\n <sp-picker\n ...=${spreadProps(args)}\n id=\"picker-quiet\"\n @change=${handleChange(args)}\n label=\"Pick an action\"\n value=\"1\"\n icons=\"none\"\n >\n <sp-menu-item value=\"1\">\n <sp-icon-edit slot=\"icon\"></sp-icon-edit>\n Edit\n </sp-menu-item>\n <sp-menu-item value=\"2\">\n <sp-icon-copy slot=\"icon\"></sp-icon-copy>\n Copy\n </sp-menu-item>\n <sp-menu-item value=\"3\">\n <sp-icon-delete slot=\"icon\"></sp-icon-delete>\n Delete\n </sp-menu-item>\n </sp-picker>\n `;\n};\niconsNone.args = {\n open: true,\n};\n\nexport const iconValue = (args: StoryArgs): TemplateResult => {\n return html`\n <sp-field-label for=\"picker-quiet\">\n Choose an action type...\n </sp-field-label>\n <sp-picker\n ...=${spreadProps(args)}\n id=\"picker-quiet\"\n @change=${handleChange(args)}\n label=\"Pick an action\"\n icons=\"only\"\n style=\"--spectrum-picker-width: 100px\"\n value=\"2\"\n >\n <sp-menu-item value=\"1\">\n <sp-icon-edit slot=\"icon\"></sp-icon-edit>\n Edit\n </sp-menu-item>\n <sp-menu-item value=\"2\">\n <sp-icon-copy slot=\"icon\"></sp-icon-copy>\n Copy\n </sp-menu-item>\n <sp-menu-item value=\"3\">\n <sp-icon-delete slot=\"icon\"></sp-icon-delete>\n Delete\n </sp-menu-item>\n </sp-picker>\n `;\n};\n\nexport const iconsOnly = (args: StoryArgs): TemplateResult => {\n return html`\n <sp-field-label for=\"picker-quiet\">\n Choose an action type...\n </sp-field-label>\n <sp-picker\n ...=${spreadProps(args)}\n id=\"picker-quiet\"\n @change=${handleChange(args)}\n label=\"Pick an action\"\n style=\"--spectrum-picker-width: 100px\"\n value=\"3\"\n >\n <sp-menu-item value=\"1\">\n <sp-icon-edit slot=\"icon\" label=\"Edit\"></sp-icon-edit>\n </sp-menu-item>\n <sp-menu-item value=\"2\">\n <sp-icon-copy slot=\"icon\" label=\"Copy\"></sp-icon-copy>\n </sp-menu-item>\n <sp-menu-item value=\"3\">\n <sp-icon-delete slot=\"icon\" label=\"Delete\"></sp-icon-delete>\n </sp-menu-item>\n </sp-picker>\n `;\n};\niconsOnly.args = {\n open: true,\n};\n\nexport const Open = (args: StoryArgs): TemplateResult => {\n return html`\n <style>\n fieldset {\n float: left;\n clear: left;\n margin-bottom: 15px;\n }\n </style>\n <fieldset>\n <sp-field-label for=\"picker-open\">\n Where do you live?\n </sp-field-label>\n <sp-picker\n id=\"picker-open\"\n label=\"Open picker\"\n ${spreadProps(args)}\n @change=${handleChange(args)}\n >\n <span slot=\"label\">\n Select a Country with a very long label, too long, in fact\n </span>\n <sp-menu-item>Deselect</sp-menu-item>\n <sp-menu-item>Select Inverse</sp-menu-item>\n <sp-menu-item>Feather...</sp-menu-item>\n <sp-menu-item>Select and Mask...</sp-menu-item>\n <sp-menu-divider></sp-menu-divider>\n <sp-menu-item>Save Selection</sp-menu-item>\n <sp-menu-item disabled>Make Work Path</sp-menu-item>\n </sp-picker>\n </fieldset>\n <fieldset>\n <sp-field-label for=\"picker-closed\">\n Where do you live?\n </sp-field-label>\n <sp-picker\n id=\"picker-closed\"\n label=\"Picker that displays below the options\"\n @change=${handleChange(args)}\n >\n <span slot=\"label\">\n Other menu that goes behind the open one\n </span>\n <sp-menu-item>Not so many options...</sp-menu-item>\n </sp-picker>\n </fieldset>\n `;\n};\nOpen.args = {\n open: true,\n};\n\nexport const initialValue = (args: StoryArgs): TemplateResult => {\n return html`\n <sp-field-label for=\"picker-initial\">Where do you live?</sp-field-label>\n <sp-picker\n id=\"picker-initial\"\n @change=${handleChange(args)}\n value=\"item-2\"\n ${spreadProps(args)}\n >\n <span slot=\"label\">\n Select a Country with a very long label, too long in fact\n </span>\n <sp-menu-item value=\"item-1\">Deselect</sp-menu-item>\n <sp-menu-item value=\"item-2\">Select Inverse</sp-menu-item>\n <sp-menu-item value=\"item-3\">Feather...</sp-menu-item>\n <sp-menu-item value=\"item-4\">Select and Mask...</sp-menu-item>\n <sp-menu-divider></sp-menu-divider>\n <sp-menu-item value=\"item-5\">Save Selection</sp-menu-item>\n <sp-menu-item disabled value=\"item-6\">Make Work Path</sp-menu-item>\n </sp-picker>\n `;\n};\n\nexport const readonly = (args: StoryArgs): TemplateResult => {\n return html`\n <sp-picker\n @change=${handleChange(args)}\n readonly\n value=\"item-2\"\n ${spreadProps(args)}\n >\n <span slot=\"label\">\n Select a Country with a very long label, too long in fact\n </span>\n <sp-menu-item value=\"item-1\">Deselect</sp-menu-item>\n <sp-menu-item value=\"item-2\">Select Inverse</sp-menu-item>\n <sp-menu-item value=\"item-3\">Feather...</sp-menu-item>\n <sp-menu-item value=\"item-4\">Select and Mask...</sp-menu-item>\n <sp-menu-divider></sp-menu-divider>\n <sp-menu-item value=\"item-5\">Save Selection</sp-menu-item>\n <sp-menu-item disabled value=\"item-6\">Make Work Path</sp-menu-item>\n </sp-picker>\n `;\n};\n\nexport const custom = (args: StoryArgs): TemplateResult => {\n const initialState = 'lb1-mo';\n return html`\n <sp-field-label for=\"picker-state\">\n What state do you live in?\n </sp-field-label>\n <sp-picker\n style=\"width: 400px;\"\n @change=${handleChange(args)}\n id=\"picker-state\"\n label=\"Pick a state\"\n ${spreadProps(args)}\n value=${initialState}\n >\n ${states.map(\n (state) => html`\n <sp-menu-item\n id=${state.id}\n value=${state.id}\n ?selected=${state.id === initialState}\n >\n ${state.label}\n </sp-menu-item>\n `\n )}\n </sp-picker>\n <p>This is some text.</p>\n <p>This is some text.</p>\n <p>\n This is a\n <a href=\"#anchor\">link</a>\n .\n </p>\n `;\n};\n\ncustom.args = {\n open: true,\n};\n"],
|
|
5
|
-
"mappings": "AAYA
|
|
5
|
+
"mappings": "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",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/stories/states.js
CHANGED
|
@@ -1,227 +1,2 @@
|
|
|
1
|
-
export const states
|
|
2
|
-
{
|
|
3
|
-
id: "lb1-al",
|
|
4
|
-
label: "Alabama"
|
|
5
|
-
},
|
|
6
|
-
{
|
|
7
|
-
id: "lb1-ak",
|
|
8
|
-
label: "Alaska"
|
|
9
|
-
},
|
|
10
|
-
{
|
|
11
|
-
id: "lb1-as",
|
|
12
|
-
label: "American Samoa"
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
id: "lb1-az",
|
|
16
|
-
label: "Arizona"
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
id: "lb1-ar",
|
|
20
|
-
label: "Arkansas"
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
id: "lb1-ca",
|
|
24
|
-
label: "California"
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
id: "lb1-co",
|
|
28
|
-
label: "Colorado"
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
id: "lb1-ct",
|
|
32
|
-
label: "Connecticut"
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
id: "lb1-de",
|
|
36
|
-
label: "Delaware"
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
id: "lb1-dc",
|
|
40
|
-
label: "District of Columbia"
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
id: "lb1-fl",
|
|
44
|
-
label: "Florida"
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
id: "lb1-ga",
|
|
48
|
-
label: "Georgia"
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
id: "lb1-gm",
|
|
52
|
-
label: "Guam"
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
id: "lb1-hi",
|
|
56
|
-
label: "Hawaii"
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
id: "lb1-id",
|
|
60
|
-
label: "Idaho"
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
id: "lb1-il",
|
|
64
|
-
label: "Illinois"
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
id: "lb1-in",
|
|
68
|
-
label: "Indiana"
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
id: "lb1-ia",
|
|
72
|
-
label: "Iowa"
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
id: "lb1-ks",
|
|
76
|
-
label: "Kansas"
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
id: "lb1-ky",
|
|
80
|
-
label: "Kentucky"
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
id: "lb1-la",
|
|
84
|
-
label: "Louisiana"
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
id: "lb1-me",
|
|
88
|
-
label: "Maine"
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
id: "lb1-md",
|
|
92
|
-
label: "Maryland"
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
id: "lb1-ma",
|
|
96
|
-
label: "Massachusetts"
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
id: "lb1-mi",
|
|
100
|
-
label: "Michigan"
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
id: "lb1-mn",
|
|
104
|
-
label: "Minnesota"
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
id: "lb1-ms",
|
|
108
|
-
label: "Mississippi"
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
id: "lb1-mo",
|
|
112
|
-
label: "Missouri"
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
id: "lb1-mt",
|
|
116
|
-
label: "Montana"
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
id: "lb1-ne",
|
|
120
|
-
label: "Nebraska"
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
id: "lb1-nv",
|
|
124
|
-
label: "Nevada"
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
id: "lb1-nh",
|
|
128
|
-
label: "New Hampshire"
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
id: "lb1-nj",
|
|
132
|
-
label: "New Jersey"
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
id: "lb1-nm",
|
|
136
|
-
label: "New Mexico"
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
id: "lb1-ny",
|
|
140
|
-
label: "New York"
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
id: "lb1-nc",
|
|
144
|
-
label: "North Carolina"
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
id: "lb1-nd",
|
|
148
|
-
label: "North Dakota"
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
id: "lb1-mp",
|
|
152
|
-
label: "Northern Marianas Islands"
|
|
153
|
-
},
|
|
154
|
-
{
|
|
155
|
-
id: "lb1-oh",
|
|
156
|
-
label: "Ohio"
|
|
157
|
-
},
|
|
158
|
-
{
|
|
159
|
-
id: "lb1-ok",
|
|
160
|
-
label: "Oklahoma"
|
|
161
|
-
},
|
|
162
|
-
{
|
|
163
|
-
id: "lb1-or",
|
|
164
|
-
label: "Oregon"
|
|
165
|
-
},
|
|
166
|
-
{
|
|
167
|
-
id: "lb1-pa",
|
|
168
|
-
label: "Pennsylvania"
|
|
169
|
-
},
|
|
170
|
-
{
|
|
171
|
-
id: "lb1-pr",
|
|
172
|
-
label: "Puerto Rico"
|
|
173
|
-
},
|
|
174
|
-
{
|
|
175
|
-
id: "lb1-ri",
|
|
176
|
-
label: "Rhode Island"
|
|
177
|
-
},
|
|
178
|
-
{
|
|
179
|
-
id: "lb1-sc",
|
|
180
|
-
label: "South Carolina"
|
|
181
|
-
},
|
|
182
|
-
{
|
|
183
|
-
id: "lb1-sd",
|
|
184
|
-
label: "South Dakota"
|
|
185
|
-
},
|
|
186
|
-
{
|
|
187
|
-
id: "lb1-tn",
|
|
188
|
-
label: "Tennessee"
|
|
189
|
-
},
|
|
190
|
-
{
|
|
191
|
-
id: "lb1-tx",
|
|
192
|
-
label: "Texas"
|
|
193
|
-
},
|
|
194
|
-
{
|
|
195
|
-
id: "lb1-ut",
|
|
196
|
-
label: "Utah"
|
|
197
|
-
},
|
|
198
|
-
{
|
|
199
|
-
id: "lb1-ve",
|
|
200
|
-
label: "Vermont"
|
|
201
|
-
},
|
|
202
|
-
{
|
|
203
|
-
id: "lb1-va",
|
|
204
|
-
label: "Virginia"
|
|
205
|
-
},
|
|
206
|
-
{
|
|
207
|
-
id: "lb1-vi",
|
|
208
|
-
label: "Virgin Islands"
|
|
209
|
-
},
|
|
210
|
-
{
|
|
211
|
-
id: "lb1-wa",
|
|
212
|
-
label: "Washington"
|
|
213
|
-
},
|
|
214
|
-
{
|
|
215
|
-
id: "lb1-wv",
|
|
216
|
-
label: "West Virginia"
|
|
217
|
-
},
|
|
218
|
-
{
|
|
219
|
-
id: "lb1-wi",
|
|
220
|
-
label: "Wisconsin"
|
|
221
|
-
},
|
|
222
|
-
{
|
|
223
|
-
id: "lb1-wy",
|
|
224
|
-
label: "Wyoming"
|
|
225
|
-
}
|
|
226
|
-
];
|
|
1
|
+
export const states=[{id:"lb1-al",label:"Alabama"},{id:"lb1-ak",label:"Alaska"},{id:"lb1-as",label:"American Samoa"},{id:"lb1-az",label:"Arizona"},{id:"lb1-ar",label:"Arkansas"},{id:"lb1-ca",label:"California"},{id:"lb1-co",label:"Colorado"},{id:"lb1-ct",label:"Connecticut"},{id:"lb1-de",label:"Delaware"},{id:"lb1-dc",label:"District of Columbia"},{id:"lb1-fl",label:"Florida"},{id:"lb1-ga",label:"Georgia"},{id:"lb1-gm",label:"Guam"},{id:"lb1-hi",label:"Hawaii"},{id:"lb1-id",label:"Idaho"},{id:"lb1-il",label:"Illinois"},{id:"lb1-in",label:"Indiana"},{id:"lb1-ia",label:"Iowa"},{id:"lb1-ks",label:"Kansas"},{id:"lb1-ky",label:"Kentucky"},{id:"lb1-la",label:"Louisiana"},{id:"lb1-me",label:"Maine"},{id:"lb1-md",label:"Maryland"},{id:"lb1-ma",label:"Massachusetts"},{id:"lb1-mi",label:"Michigan"},{id:"lb1-mn",label:"Minnesota"},{id:"lb1-ms",label:"Mississippi"},{id:"lb1-mo",label:"Missouri"},{id:"lb1-mt",label:"Montana"},{id:"lb1-ne",label:"Nebraska"},{id:"lb1-nv",label:"Nevada"},{id:"lb1-nh",label:"New Hampshire"},{id:"lb1-nj",label:"New Jersey"},{id:"lb1-nm",label:"New Mexico"},{id:"lb1-ny",label:"New York"},{id:"lb1-nc",label:"North Carolina"},{id:"lb1-nd",label:"North Dakota"},{id:"lb1-mp",label:"Northern Marianas Islands"},{id:"lb1-oh",label:"Ohio"},{id:"lb1-ok",label:"Oklahoma"},{id:"lb1-or",label:"Oregon"},{id:"lb1-pa",label:"Pennsylvania"},{id:"lb1-pr",label:"Puerto Rico"},{id:"lb1-ri",label:"Rhode Island"},{id:"lb1-sc",label:"South Carolina"},{id:"lb1-sd",label:"South Dakota"},{id:"lb1-tn",label:"Tennessee"},{id:"lb1-tx",label:"Texas"},{id:"lb1-ut",label:"Utah"},{id:"lb1-ve",label:"Vermont"},{id:"lb1-va",label:"Virginia"},{id:"lb1-vi",label:"Virgin Islands"},{id:"lb1-wa",label:"Washington"},{id:"lb1-wv",label:"West Virginia"},{id:"lb1-wi",label:"Wisconsin"},{id:"lb1-wy",label:"Wyoming"}];
|
|
227
2
|
//# sourceMappingURL=states.js.map
|
package/stories/states.js.map
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["states.ts"],
|
|
4
4
|
"sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nexport const states: {\n id: string;\n label: string;\n}[] = [\n {\n id: 'lb1-al',\n label: 'Alabama',\n },\n {\n id: 'lb1-ak',\n label: 'Alaska',\n },\n {\n id: 'lb1-as',\n label: 'American Samoa',\n },\n {\n id: 'lb1-az',\n label: 'Arizona',\n },\n {\n id: 'lb1-ar',\n label: 'Arkansas',\n },\n {\n id: 'lb1-ca',\n label: 'California',\n },\n {\n id: 'lb1-co',\n label: 'Colorado',\n },\n {\n id: 'lb1-ct',\n label: 'Connecticut',\n },\n {\n id: 'lb1-de',\n label: 'Delaware',\n },\n {\n id: 'lb1-dc',\n label: 'District of Columbia',\n },\n {\n id: 'lb1-fl',\n label: 'Florida',\n },\n {\n id: 'lb1-ga',\n label: 'Georgia',\n },\n {\n id: 'lb1-gm',\n label: 'Guam',\n },\n {\n id: 'lb1-hi',\n label: 'Hawaii',\n },\n {\n id: 'lb1-id',\n label: 'Idaho',\n },\n {\n id: 'lb1-il',\n label: 'Illinois',\n },\n {\n id: 'lb1-in',\n label: 'Indiana',\n },\n {\n id: 'lb1-ia',\n label: 'Iowa',\n },\n {\n id: 'lb1-ks',\n label: 'Kansas',\n },\n {\n id: 'lb1-ky',\n label: 'Kentucky',\n },\n {\n id: 'lb1-la',\n label: 'Louisiana',\n },\n {\n id: 'lb1-me',\n label: 'Maine',\n },\n {\n id: 'lb1-md',\n label: 'Maryland',\n },\n {\n id: 'lb1-ma',\n label: 'Massachusetts',\n },\n {\n id: 'lb1-mi',\n label: 'Michigan',\n },\n {\n id: 'lb1-mn',\n label: 'Minnesota',\n },\n {\n id: 'lb1-ms',\n label: 'Mississippi',\n },\n {\n id: 'lb1-mo',\n label: 'Missouri',\n },\n {\n id: 'lb1-mt',\n label: 'Montana',\n },\n {\n id: 'lb1-ne',\n label: 'Nebraska',\n },\n {\n id: 'lb1-nv',\n label: 'Nevada',\n },\n {\n id: 'lb1-nh',\n label: 'New Hampshire',\n },\n {\n id: 'lb1-nj',\n label: 'New Jersey',\n },\n {\n id: 'lb1-nm',\n label: 'New Mexico',\n },\n {\n id: 'lb1-ny',\n label: 'New York',\n },\n {\n id: 'lb1-nc',\n label: 'North Carolina',\n },\n {\n id: 'lb1-nd',\n label: 'North Dakota',\n },\n {\n id: 'lb1-mp',\n label: 'Northern Marianas Islands',\n },\n {\n id: 'lb1-oh',\n label: 'Ohio',\n },\n {\n id: 'lb1-ok',\n label: 'Oklahoma',\n },\n {\n id: 'lb1-or',\n label: 'Oregon',\n },\n {\n id: 'lb1-pa',\n label: 'Pennsylvania',\n },\n {\n id: 'lb1-pr',\n label: 'Puerto Rico',\n },\n {\n id: 'lb1-ri',\n label: 'Rhode Island',\n },\n {\n id: 'lb1-sc',\n label: 'South Carolina',\n },\n {\n id: 'lb1-sd',\n label: 'South Dakota',\n },\n {\n id: 'lb1-tn',\n label: 'Tennessee',\n },\n {\n id: 'lb1-tx',\n label: 'Texas',\n },\n {\n id: 'lb1-ut',\n label: 'Utah',\n },\n {\n id: 'lb1-ve',\n label: 'Vermont',\n },\n {\n id: 'lb1-va',\n label: 'Virginia',\n },\n {\n id: 'lb1-vi',\n label: 'Virgin Islands',\n },\n {\n id: 'lb1-wa',\n label: 'Washington',\n },\n {\n id: 'lb1-wv',\n label: 'West Virginia',\n },\n {\n id: 'lb1-wi',\n label: 'Wisconsin',\n },\n {\n id: 'lb1-wy',\n label: 'Wyoming',\n },\n];\n"],
|
|
5
|
-
"mappings": "AAWO,
|
|
5
|
+
"mappings": "AAWO,YAAM,QAGP,CACF,CACI,GAAI,SACJ,MAAO,SACX,EACA,CACI,GAAI,SACJ,MAAO,QACX,EACA,CACI,GAAI,SACJ,MAAO,gBACX,EACA,CACI,GAAI,SACJ,MAAO,SACX,EACA,CACI,GAAI,SACJ,MAAO,UACX,EACA,CACI,GAAI,SACJ,MAAO,YACX,EACA,CACI,GAAI,SACJ,MAAO,UACX,EACA,CACI,GAAI,SACJ,MAAO,aACX,EACA,CACI,GAAI,SACJ,MAAO,UACX,EACA,CACI,GAAI,SACJ,MAAO,sBACX,EACA,CACI,GAAI,SACJ,MAAO,SACX,EACA,CACI,GAAI,SACJ,MAAO,SACX,EACA,CACI,GAAI,SACJ,MAAO,MACX,EACA,CACI,GAAI,SACJ,MAAO,QACX,EACA,CACI,GAAI,SACJ,MAAO,OACX,EACA,CACI,GAAI,SACJ,MAAO,UACX,EACA,CACI,GAAI,SACJ,MAAO,SACX,EACA,CACI,GAAI,SACJ,MAAO,MACX,EACA,CACI,GAAI,SACJ,MAAO,QACX,EACA,CACI,GAAI,SACJ,MAAO,UACX,EACA,CACI,GAAI,SACJ,MAAO,WACX,EACA,CACI,GAAI,SACJ,MAAO,OACX,EACA,CACI,GAAI,SACJ,MAAO,UACX,EACA,CACI,GAAI,SACJ,MAAO,eACX,EACA,CACI,GAAI,SACJ,MAAO,UACX,EACA,CACI,GAAI,SACJ,MAAO,WACX,EACA,CACI,GAAI,SACJ,MAAO,aACX,EACA,CACI,GAAI,SACJ,MAAO,UACX,EACA,CACI,GAAI,SACJ,MAAO,SACX,EACA,CACI,GAAI,SACJ,MAAO,UACX,EACA,CACI,GAAI,SACJ,MAAO,QACX,EACA,CACI,GAAI,SACJ,MAAO,eACX,EACA,CACI,GAAI,SACJ,MAAO,YACX,EACA,CACI,GAAI,SACJ,MAAO,YACX,EACA,CACI,GAAI,SACJ,MAAO,UACX,EACA,CACI,GAAI,SACJ,MAAO,gBACX,EACA,CACI,GAAI,SACJ,MAAO,cACX,EACA,CACI,GAAI,SACJ,MAAO,2BACX,EACA,CACI,GAAI,SACJ,MAAO,MACX,EACA,CACI,GAAI,SACJ,MAAO,UACX,EACA,CACI,GAAI,SACJ,MAAO,QACX,EACA,CACI,GAAI,SACJ,MAAO,cACX,EACA,CACI,GAAI,SACJ,MAAO,aACX,EACA,CACI,GAAI,SACJ,MAAO,cACX,EACA,CACI,GAAI,SACJ,MAAO,gBACX,EACA,CACI,GAAI,SACJ,MAAO,cACX,EACA,CACI,GAAI,SACJ,MAAO,WACX,EACA,CACI,GAAI,SACJ,MAAO,OACX,EACA,CACI,GAAI,SACJ,MAAO,MACX,EACA,CACI,GAAI,SACJ,MAAO,SACX,EACA,CACI,GAAI,SACJ,MAAO,UACX,EACA,CACI,GAAI,SACJ,MAAO,gBACX,EACA,CACI,GAAI,SACJ,MAAO,YACX,EACA,CACI,GAAI,SACJ,MAAO,eACX,EACA,CACI,GAAI,SACJ,MAAO,WACX,EACA,CACI,GAAI,SACJ,MAAO,SACX,CACJ",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|