@spectrum-web-components/action-group 0.11.0 → 0.11.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/package.json +3 -3
- package/sp-action-group.dev.js +1 -0
- package/sp-action-group.dev.js.map +1 -1
- package/sp-action-group.js +1 -1
- package/sp-action-group.js.map +2 -2
- package/src/ActionGroup.dev.js +49 -27
- package/src/ActionGroup.dev.js.map +1 -1
- package/src/ActionGroup.js +1 -1
- package/src/ActionGroup.js.map +2 -2
- package/src/action-group.css.dev.js +1 -0
- package/src/action-group.css.dev.js.map +1 -1
- package/src/action-group.css.js +1 -1
- package/src/action-group.css.js.map +2 -2
- package/src/index.dev.js +1 -0
- package/src/index.dev.js.map +1 -1
- package/src/index.js +1 -1
- package/src/index.js.map +1 -1
- package/src/spectrum-action-group.css.dev.js +1 -0
- package/src/spectrum-action-group.css.dev.js.map +1 -1
- package/src/spectrum-action-group.css.js +1 -1
- package/src/spectrum-action-group.css.js.map +2 -2
- package/stories/action-group-tooltip.stories.js +141 -6
- package/stories/action-group-tooltip.stories.js.map +1 -1
- package/stories/action-group.stories.js +211 -22
- package/stories/action-group.stories.js.map +1 -1
- package/test/action-group-tooltip.test-vrt.js +4 -1
- package/test/action-group-tooltip.test-vrt.js.map +1 -1
- package/test/action-group.test-vrt.js +4 -1
- package/test/action-group.test-vrt.js.map +1 -1
- package/test/action-group.test.js +579 -46
- package/test/action-group.test.js.map +1 -1
- package/test/benchmark/basic-test.js +6 -1
- package/test/benchmark/basic-test.js.map +1 -1
|
@@ -1,8 +1,116 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
import { html } from "@spectrum-web-components/base";
|
|
3
|
+
import { spreadProps } from "../../../test/lit-helpers.js";
|
|
4
|
+
import "@spectrum-web-components/action-group/sp-action-group.js";
|
|
5
|
+
import "@spectrum-web-components/action-button/sp-action-button.js";
|
|
6
|
+
import "@spectrum-web-components/overlay/overlay-trigger.js";
|
|
7
|
+
import "@spectrum-web-components/tooltip/sp-tooltip.js";
|
|
8
|
+
import "@spectrum-web-components/icons-workflow/icons/sp-icon-properties.js";
|
|
9
|
+
import "@spectrum-web-components/icons-workflow/icons/sp-icon-info.js";
|
|
10
|
+
import "@spectrum-web-components/icons-workflow/icons/sp-icon-view-all-tags.js";
|
|
11
|
+
export default {
|
|
12
|
+
title: "Action Group/Tooltips",
|
|
13
|
+
component: "sp-action-group",
|
|
14
|
+
args: {
|
|
15
|
+
compact: false,
|
|
16
|
+
emphasized: false,
|
|
17
|
+
justified: false,
|
|
18
|
+
quiet: false,
|
|
19
|
+
vertical: false,
|
|
20
|
+
selects: "none"
|
|
21
|
+
},
|
|
22
|
+
argTypes: {
|
|
23
|
+
compact: {
|
|
24
|
+
name: "compact",
|
|
25
|
+
description: "Visually joins the buttons together to clarify their relationship to one another.",
|
|
26
|
+
type: { name: "boolean", required: false },
|
|
27
|
+
table: {
|
|
28
|
+
type: { summary: "boolean" },
|
|
29
|
+
defaultValue: { summary: false }
|
|
30
|
+
},
|
|
31
|
+
control: {
|
|
32
|
+
type: "boolean"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
emphasized: {
|
|
36
|
+
name: "emphasized",
|
|
37
|
+
type: { name: "boolean", required: false },
|
|
38
|
+
table: {
|
|
39
|
+
type: { summary: "boolean" },
|
|
40
|
+
defaultValue: { summary: false }
|
|
41
|
+
},
|
|
42
|
+
control: {
|
|
43
|
+
type: "boolean"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
justified: {
|
|
47
|
+
name: "justified",
|
|
48
|
+
description: "Aligns the action group items to use all the available space on that line.",
|
|
49
|
+
type: { name: "boolean", required: false },
|
|
50
|
+
table: {
|
|
51
|
+
type: { summary: "boolean" },
|
|
52
|
+
defaultValue: { summary: false }
|
|
53
|
+
},
|
|
54
|
+
control: {
|
|
55
|
+
type: "boolean"
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
quiet: {
|
|
59
|
+
name: "quiet",
|
|
60
|
+
type: { name: "boolean", required: false },
|
|
61
|
+
table: {
|
|
62
|
+
type: { summary: "boolean" },
|
|
63
|
+
defaultValue: { summary: false }
|
|
64
|
+
},
|
|
65
|
+
control: {
|
|
66
|
+
type: "boolean"
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
vertical: {
|
|
70
|
+
name: "vertical",
|
|
71
|
+
description: "Changes the orientation of the action group.",
|
|
72
|
+
type: { name: "boolean", required: false },
|
|
73
|
+
table: {
|
|
74
|
+
type: { summary: "boolean" },
|
|
75
|
+
defaultValue: { summary: false }
|
|
76
|
+
},
|
|
77
|
+
control: {
|
|
78
|
+
type: "boolean"
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
selects: {
|
|
82
|
+
name: "selects",
|
|
83
|
+
description: "Whether the elements selects its children and how many it can select at a time.",
|
|
84
|
+
table: {
|
|
85
|
+
defaultValue: { summary: "" }
|
|
86
|
+
},
|
|
87
|
+
control: {
|
|
88
|
+
type: "inline-radio",
|
|
89
|
+
options: ["none", "single", "multiple"]
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
};
|
|
94
|
+
const template = (args) => {
|
|
95
|
+
requestAnimationFrame(() => {
|
|
96
|
+
const group = document.querySelector("sp-action-group");
|
|
97
|
+
const selectedDiv = group.nextElementSibling;
|
|
98
|
+
if (selectedDiv) {
|
|
99
|
+
selectedDiv.textContent = `Selected: ${JSON.stringify(
|
|
100
|
+
group.selected
|
|
101
|
+
)}`;
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
return html`
|
|
2
105
|
<sp-action-group
|
|
3
106
|
label="Favorite Color"
|
|
4
|
-
...=${
|
|
5
|
-
@change=${({target
|
|
107
|
+
...=${spreadProps(args)}
|
|
108
|
+
@change=${({ target }) => {
|
|
109
|
+
const next = target.nextElementSibling;
|
|
110
|
+
next.textContent = `Selected: ${JSON.stringify(
|
|
111
|
+
target.selected
|
|
112
|
+
)}`;
|
|
113
|
+
}}
|
|
6
114
|
>
|
|
7
115
|
<overlay-trigger>
|
|
8
116
|
<sp-action-button slot="trigger">Red</sp-action-button>
|
|
@@ -27,8 +135,35 @@ import{html as a}from"@spectrum-web-components/base";import{spreadProps as r}fro
|
|
|
27
135
|
<sp-tooltip slot="hover-content">The sun at noon.</sp-tooltip>
|
|
28
136
|
</overlay-trigger>
|
|
29
137
|
</sp-action-group>
|
|
30
|
-
${
|
|
138
|
+
${!!args.selects ? html`
|
|
31
139
|
<div>Selected:</div>
|
|
32
|
-
|
|
33
|
-
|
|
140
|
+
` : html``}
|
|
141
|
+
`;
|
|
142
|
+
};
|
|
143
|
+
export const selectsSingle = (args) => template(args);
|
|
144
|
+
selectsSingle.args = {
|
|
145
|
+
compact: true,
|
|
146
|
+
emphasized: true,
|
|
147
|
+
selects: "single"
|
|
148
|
+
};
|
|
149
|
+
export const selectsMultiple = (args) => template(args);
|
|
150
|
+
selectsMultiple.args = {
|
|
151
|
+
compact: true,
|
|
152
|
+
emphasized: true,
|
|
153
|
+
selects: "multiple"
|
|
154
|
+
};
|
|
155
|
+
export const justified = (args) => template(args);
|
|
156
|
+
justified.args = {
|
|
157
|
+
compact: true,
|
|
158
|
+
emphasized: true,
|
|
159
|
+
justified: true,
|
|
160
|
+
selects: void 0
|
|
161
|
+
};
|
|
162
|
+
export const vertical = (args) => template(args);
|
|
163
|
+
vertical.args = {
|
|
164
|
+
compact: true,
|
|
165
|
+
emphasized: true,
|
|
166
|
+
vertical: true,
|
|
167
|
+
selects: void 0
|
|
168
|
+
};
|
|
34
169
|
//# sourceMappingURL=action-group-tooltip.stories.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["action-group-tooltip.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';\nimport { spreadProps } from '../../../test/lit-helpers.js';\n\nimport '@spectrum-web-components/action-group/sp-action-group.js';\nimport '@spectrum-web-components/action-button/sp-action-button.js';\nimport '@spectrum-web-components/overlay/overlay-trigger.js';\nimport '@spectrum-web-components/tooltip/sp-tooltip.js';\nimport '@spectrum-web-components/icons-workflow/icons/sp-icon-properties.js';\nimport '@spectrum-web-components/icons-workflow/icons/sp-icon-info.js';\nimport '@spectrum-web-components/icons-workflow/icons/sp-icon-view-all-tags.js';\nimport { ActionGroup } from '@spectrum-web-components/action-group/src/ActionGroup.js';\n\nexport default {\n title: 'Action Group/Tooltips',\n component: 'sp-action-group',\n args: {\n compact: false,\n emphasized: false,\n justified: false,\n quiet: false,\n vertical: false,\n selects: 'none',\n },\n argTypes: {\n compact: {\n name: 'compact',\n description:\n 'Visually joins the buttons together to clarify their relationship to one another.',\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 emphasized: {\n name: 'emphasized',\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 justified: {\n name: 'justified',\n description:\n 'Aligns the action group items to use all the available space on that line.',\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 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 vertical: {\n name: 'vertical',\n description: 'Changes the orientation of the action group.',\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 selects: {\n name: 'selects',\n description:\n 'Whether the elements selects its children and how many it can select at a time.',\n table: {\n defaultValue: { summary: '' },\n },\n control: {\n type: 'inline-radio',\n options: ['none', 'single', 'multiple'],\n },\n },\n },\n};\n\ninterface Properties {\n compact?: boolean;\n emphasized?: boolean;\n justified?: boolean;\n quiet?: boolean;\n vertical?: boolean;\n selects?: 'none' | 'single' | 'multiple';\n [prop: string]: unknown;\n}\n\nconst template = (args: Properties): TemplateResult => {\n requestAnimationFrame(() => {\n const group = document.querySelector('sp-action-group') as ActionGroup;\n const selectedDiv = group.nextElementSibling;\n if (selectedDiv) {\n selectedDiv.textContent = `Selected: ${JSON.stringify(\n group.selected\n )}`;\n }\n });\n return html`\n <sp-action-group\n label=\"Favorite Color\"\n ...=${spreadProps(args)}\n @change=${({ target }: Event & { target: ActionGroup }) => {\n const next = target.nextElementSibling as HTMLDivElement;\n next.textContent = `Selected: ${JSON.stringify(\n target.selected\n )}`;\n }}\n >\n <overlay-trigger>\n <sp-action-button slot=\"trigger\">Red</sp-action-button>\n <sp-tooltip slot=\"hover-content\">\n This is a cool color.\n </sp-tooltip>\n </overlay-trigger>\n <overlay-trigger>\n <sp-action-button slot=\"trigger\">Green</sp-action-button>\n <sp-tooltip slot=\"hover-content\">\n You wouldn't be wrong.\n </sp-tooltip>\n </overlay-trigger>\n <overlay-trigger>\n <sp-action-button slot=\"trigger\" value=\"blue\" selected>\n Blue\n </sp-action-button>\n <sp-tooltip slot=\"hover-content\">The sky in spring.</sp-tooltip>\n </overlay-trigger>\n <overlay-trigger>\n <sp-action-button slot=\"trigger\">Yellow</sp-action-button>\n <sp-tooltip slot=\"hover-content\">The sun at noon.</sp-tooltip>\n </overlay-trigger>\n </sp-action-group>\n ${!!args.selects\n ? html`\n <div>Selected:</div>\n `\n : html``}\n `;\n};\n\nexport const selectsSingle = (args: Properties): TemplateResult =>\n template(args);\nselectsSingle.args = {\n compact: true,\n emphasized: true,\n selects: 'single',\n};\n\nexport const selectsMultiple = (args: Properties): TemplateResult =>\n template(args);\nselectsMultiple.args = {\n compact: true,\n emphasized: true,\n selects: 'multiple',\n};\n\nexport const justified = (args: Properties): TemplateResult => template(args);\njustified.args = {\n compact: true,\n emphasized: true,\n justified: true,\n selects: undefined,\n};\n\nexport const vertical = (args: Properties): TemplateResult => template(args);\nvertical.args = {\n compact: true,\n emphasized: true,\n vertical: true,\n selects: undefined,\n};\n"],
|
|
5
|
-
"mappings": "AAYA,
|
|
5
|
+
"mappings": ";AAYA,SAAS,YAA4B;AACrC,SAAS,mBAAmB;AAE5B,OAAO;AACP,OAAO;AACP,OAAO;AACP,OAAO;AACP,OAAO;AACP,OAAO;AACP,OAAO;AAGP,eAAe;AAAA,EACX,OAAO;AAAA,EACP,WAAW;AAAA,EACX,MAAM;AAAA,IACF,SAAS;AAAA,IACT,YAAY;AAAA,IACZ,WAAW;AAAA,IACX,OAAO;AAAA,IACP,UAAU;AAAA,IACV,SAAS;AAAA,EACb;AAAA,EACA,UAAU;AAAA,IACN,SAAS;AAAA,MACL,MAAM;AAAA,MACN,aACI;AAAA,MACJ,MAAM,EAAE,MAAM,WAAW,UAAU,MAAM;AAAA,MACzC,OAAO;AAAA,QACH,MAAM,EAAE,SAAS,UAAU;AAAA,QAC3B,cAAc,EAAE,SAAS,MAAM;AAAA,MACnC;AAAA,MACA,SAAS;AAAA,QACL,MAAM;AAAA,MACV;AAAA,IACJ;AAAA,IACA,YAAY;AAAA,MACR,MAAM;AAAA,MACN,MAAM,EAAE,MAAM,WAAW,UAAU,MAAM;AAAA,MACzC,OAAO;AAAA,QACH,MAAM,EAAE,SAAS,UAAU;AAAA,QAC3B,cAAc,EAAE,SAAS,MAAM;AAAA,MACnC;AAAA,MACA,SAAS;AAAA,QACL,MAAM;AAAA,MACV;AAAA,IACJ;AAAA,IACA,WAAW;AA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IAAI;AAAA,sBACZ,CAAC,EAAE,OAAO,MAAuC;AACvD,UAAM,OAAO,OAAO;AACpB,SAAK,cAAc,aAAa,KAAK;AAAA,MACjC,OAAO;AAAA,IACX;AAAA,EACJ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,UAyBF,CAAC,CAAC,KAAK,UACH;AAAA;AAAA,kBAGA;AAAA;AAEd;AAEO,aAAM,gBAAgB,CAAC,SAC1B,SAAS,IAAI;AACjB,cAAc,OAAO;AAAA,EACjB,SAAS;AAAA,EACT,YAAY;AAAA,EACZ,SAAS;AACb;AAEO,aAAM,kBAAkB,CAAC,SAC5B,SAAS,IAAI;AACjB,gBAAgB,OAAO;AAAA,EACnB,SAAS;AAAA,EACT,YAAY;AAAA,EACZ,SAAS;AACb;AAEO,aAAM,YAAY,CAAC,SAAqC,SAAS,IAAI;AAC5E,UAAU,OAAO;AAAA,EACb,SAAS;AAAA,EACT,YAAY;AAAA,EACZ,WAAW;AAAA,EACX,SAAS;AACb;AAEO,aAAM,WAAW,CAAC,SAAqC,SAAS,IAAI;AAC3E,SAAS,OAAO;AAAA,EACZ,SAAS;AAAA,EACT,YAAY;AAAA,EACZ,UAAU;AAAA,EACV,SAAS;AACb;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,5 +1,87 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
import { html } from "@spectrum-web-components/base";
|
|
3
|
+
import { spreadProps } from "../../../test/lit-helpers.js";
|
|
4
|
+
import "@spectrum-web-components/action-group/sp-action-group.js";
|
|
5
|
+
import "@spectrum-web-components/action-button/sp-action-button.js";
|
|
6
|
+
import "@spectrum-web-components/overlay/overlay-trigger.js";
|
|
7
|
+
import "@spectrum-web-components/tooltip/sp-tooltip.js";
|
|
8
|
+
import "@spectrum-web-components/icons-workflow/icons/sp-icon-properties.js";
|
|
9
|
+
import "@spectrum-web-components/icons-workflow/icons/sp-icon-info.js";
|
|
10
|
+
import "@spectrum-web-components/icons-workflow/icons/sp-icon-view-all-tags.js";
|
|
11
|
+
export default {
|
|
12
|
+
title: "Action Group",
|
|
13
|
+
component: "sp-action-group",
|
|
14
|
+
args: {
|
|
15
|
+
compact: false,
|
|
16
|
+
emphasized: false,
|
|
17
|
+
justified: false,
|
|
18
|
+
quiet: false,
|
|
19
|
+
vertical: false
|
|
20
|
+
},
|
|
21
|
+
argTypes: {
|
|
22
|
+
compact: {
|
|
23
|
+
name: "compact",
|
|
24
|
+
description: "Visually joins the buttons together to clarify their relationship to one another.",
|
|
25
|
+
type: { name: "boolean", required: false },
|
|
26
|
+
table: {
|
|
27
|
+
type: { summary: "boolean" },
|
|
28
|
+
defaultValue: { summary: false }
|
|
29
|
+
},
|
|
30
|
+
control: {
|
|
31
|
+
type: "boolean"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
emphasized: {
|
|
35
|
+
name: "emphasized",
|
|
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
|
+
justified: {
|
|
46
|
+
name: "justified",
|
|
47
|
+
description: "Aligns the action group items to use all the available space on that line.",
|
|
48
|
+
type: { name: "boolean", required: false },
|
|
49
|
+
table: {
|
|
50
|
+
type: { summary: "boolean" },
|
|
51
|
+
defaultValue: { summary: false }
|
|
52
|
+
},
|
|
53
|
+
control: {
|
|
54
|
+
type: "boolean"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
quiet: {
|
|
58
|
+
name: "quiet",
|
|
59
|
+
type: { name: "boolean", required: false },
|
|
60
|
+
table: {
|
|
61
|
+
type: { summary: "boolean" },
|
|
62
|
+
defaultValue: { summary: false }
|
|
63
|
+
},
|
|
64
|
+
control: {
|
|
65
|
+
type: "boolean"
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
vertical: {
|
|
69
|
+
name: "vertical",
|
|
70
|
+
description: "Changes the orientation of the action group.",
|
|
71
|
+
type: { name: "boolean", required: false },
|
|
72
|
+
table: {
|
|
73
|
+
type: { summary: "boolean" },
|
|
74
|
+
defaultValue: { summary: false }
|
|
75
|
+
},
|
|
76
|
+
control: {
|
|
77
|
+
type: "boolean"
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
function renderIconButtons(args) {
|
|
83
|
+
return html`
|
|
84
|
+
<sp-action-group ${spreadProps(args)}>
|
|
3
85
|
<sp-action-button label="Properties">
|
|
4
86
|
<sp-icon-properties slot="icon"></sp-icon-properties>
|
|
5
87
|
</sp-action-button>
|
|
@@ -10,22 +92,42 @@ import{html as s}from"@spectrum-web-components/base";import{spreadProps as i}fro
|
|
|
10
92
|
<sp-icon-view-all-tags slot="icon"></sp-icon-view-all-tags>
|
|
11
93
|
</sp-action-button>
|
|
12
94
|
</sp-action-group>
|
|
13
|
-
|
|
14
|
-
|
|
95
|
+
`;
|
|
96
|
+
}
|
|
97
|
+
function renderButtons(args) {
|
|
98
|
+
return html`
|
|
99
|
+
<sp-action-group ${spreadProps(args)}>
|
|
15
100
|
<sp-action-button>Button 1</sp-action-button>
|
|
16
101
|
<sp-action-button>Longer Button 2</sp-action-button>
|
|
17
102
|
<sp-action-button>Short 3</sp-action-button>
|
|
18
103
|
</sp-action-group>
|
|
19
|
-
|
|
104
|
+
`;
|
|
105
|
+
}
|
|
106
|
+
function displaySelectionState() {
|
|
107
|
+
const group = document.querySelector("sp-action-group");
|
|
108
|
+
const selectedDiv = group.nextElementSibling;
|
|
109
|
+
if (selectedDiv) {
|
|
110
|
+
selectedDiv.textContent = `Selected: ${JSON.stringify(group.selected)}`;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
export const Default = (args) => renderButtons(args);
|
|
114
|
+
export const selectsSingle = (args) => {
|
|
115
|
+
requestAnimationFrame(displaySelectionState);
|
|
116
|
+
return html`
|
|
20
117
|
<sp-action-group
|
|
21
|
-
?compact=${
|
|
22
|
-
?emphasized=${
|
|
23
|
-
?quiet=${
|
|
24
|
-
?justified=${
|
|
25
|
-
?vertical=${
|
|
118
|
+
?compact=${args.compact}
|
|
119
|
+
?emphasized=${args.emphasized}
|
|
120
|
+
?quiet=${args.quiet}
|
|
121
|
+
?justified=${args.justified}
|
|
122
|
+
?vertical=${args.vertical}
|
|
26
123
|
label="Favorite Color"
|
|
27
124
|
selects="single"
|
|
28
|
-
@change=${({target
|
|
125
|
+
@change=${({ target }) => {
|
|
126
|
+
const next = target.nextElementSibling;
|
|
127
|
+
next.textContent = `Selected: ${JSON.stringify(
|
|
128
|
+
target.selected
|
|
129
|
+
)}`;
|
|
130
|
+
}}
|
|
29
131
|
>
|
|
30
132
|
<sp-action-button>Red</sp-action-button>
|
|
31
133
|
<sp-action-button>Green</sp-action-button>
|
|
@@ -33,12 +135,21 @@ import{html as s}from"@spectrum-web-components/base";import{spreadProps as i}fro
|
|
|
33
135
|
<sp-action-button selected>Yellow</sp-action-button>
|
|
34
136
|
</sp-action-group>
|
|
35
137
|
<div>Selected:</div>
|
|
36
|
-
|
|
138
|
+
`;
|
|
139
|
+
};
|
|
140
|
+
export const selectsMultiple = (args) => {
|
|
141
|
+
requestAnimationFrame(displaySelectionState);
|
|
142
|
+
return html`
|
|
37
143
|
<sp-action-group
|
|
38
|
-
${
|
|
144
|
+
${spreadProps(args)}
|
|
39
145
|
label="Favorite Colors"
|
|
40
146
|
selects="multiple"
|
|
41
|
-
@change=${({target
|
|
147
|
+
@change=${({ target }) => {
|
|
148
|
+
const next = target.nextElementSibling;
|
|
149
|
+
next.textContent = `Selected: ${JSON.stringify(
|
|
150
|
+
target.selected
|
|
151
|
+
)}`;
|
|
152
|
+
}}
|
|
42
153
|
>
|
|
43
154
|
<sp-action-button>Red</sp-action-button>
|
|
44
155
|
<sp-action-button selected>Green</sp-action-button>
|
|
@@ -46,12 +157,20 @@ import{html as s}from"@spectrum-web-components/base";import{spreadProps as i}fro
|
|
|
46
157
|
<sp-action-button>Yellow</sp-action-button>
|
|
47
158
|
</sp-action-group>
|
|
48
159
|
<div>Selected:</div>
|
|
49
|
-
|
|
160
|
+
`;
|
|
161
|
+
};
|
|
162
|
+
export const selectsMultipleWithTooltips = (args) => {
|
|
163
|
+
return html`
|
|
50
164
|
<sp-action-group
|
|
51
|
-
${
|
|
165
|
+
${spreadProps(args)}
|
|
52
166
|
label="Favorite Color"
|
|
53
167
|
selects="multiple"
|
|
54
|
-
@change=${({target
|
|
168
|
+
@change=${({ target }) => {
|
|
169
|
+
const next = target.nextElementSibling;
|
|
170
|
+
next.textContent = `Selected: ${JSON.stringify(
|
|
171
|
+
target.selected
|
|
172
|
+
)}`;
|
|
173
|
+
}}
|
|
55
174
|
>
|
|
56
175
|
<overlay-trigger>
|
|
57
176
|
<sp-action-button slot="trigger">Red</sp-action-button>
|
|
@@ -75,13 +194,22 @@ import{html as s}from"@spectrum-web-components/base";import{spreadProps as i}fro
|
|
|
75
194
|
</overlay-trigger>
|
|
76
195
|
</sp-action-group>
|
|
77
196
|
<div>Selected:</div>
|
|
78
|
-
|
|
197
|
+
`;
|
|
198
|
+
};
|
|
199
|
+
export const selectsMultipleControlled = (args) => {
|
|
200
|
+
requestAnimationFrame(displaySelectionState);
|
|
201
|
+
return html`
|
|
79
202
|
<sp-action-group
|
|
80
|
-
${
|
|
203
|
+
${spreadProps(args)}
|
|
81
204
|
selects="multiple"
|
|
82
|
-
.selected=${["donuts","crepecakes"]}
|
|
205
|
+
.selected=${["donuts", "crepecakes"]}
|
|
83
206
|
label="Favorite Dessert"
|
|
84
|
-
@change=${({target
|
|
207
|
+
@change=${({ target }) => {
|
|
208
|
+
const next = target.nextElementSibling;
|
|
209
|
+
next.textContent = `Selected: ${JSON.stringify(
|
|
210
|
+
target.selected
|
|
211
|
+
)}`;
|
|
212
|
+
}}
|
|
85
213
|
>
|
|
86
214
|
<sp-action-button value="lavacakes">Lava Cakes</sp-action-button>
|
|
87
215
|
<sp-action-button value="donuts">Donuts</sp-action-button>
|
|
@@ -89,5 +217,66 @@ import{html as s}from"@spectrum-web-components/base";import{spreadProps as i}fro
|
|
|
89
217
|
<sp-action-button value="fruittarts">Fruit Tarts</sp-action-button>
|
|
90
218
|
</sp-action-group>
|
|
91
219
|
<div>Selected:</div>
|
|
92
|
-
|
|
220
|
+
`;
|
|
221
|
+
};
|
|
222
|
+
export const iconsOnly = (args) => renderIconButtons(args);
|
|
223
|
+
export const quietIconsOnly = (args) => renderIconButtons(args);
|
|
224
|
+
quietIconsOnly.args = {
|
|
225
|
+
quiet: true
|
|
226
|
+
};
|
|
227
|
+
export const compact = (args) => renderButtons(args);
|
|
228
|
+
compact.args = {
|
|
229
|
+
compact: true
|
|
230
|
+
};
|
|
231
|
+
export const compactIconsOnly = (args) => renderIconButtons(args);
|
|
232
|
+
compactIconsOnly.args = {
|
|
233
|
+
compact: true
|
|
234
|
+
};
|
|
235
|
+
export const compactQuietIconsOnly = (args) => renderIconButtons(args);
|
|
236
|
+
compactQuietIconsOnly.args = {
|
|
237
|
+
compact: true,
|
|
238
|
+
quiet: true
|
|
239
|
+
};
|
|
240
|
+
export const vertical = (args) => renderButtons(args);
|
|
241
|
+
vertical.args = {
|
|
242
|
+
vertical: true
|
|
243
|
+
};
|
|
244
|
+
export const verticalIconsOnly = (args) => renderIconButtons(args);
|
|
245
|
+
verticalIconsOnly.args = {
|
|
246
|
+
vertical: true
|
|
247
|
+
};
|
|
248
|
+
export const verticalQuietIconsOnly = (args) => renderIconButtons(args);
|
|
249
|
+
verticalQuietIconsOnly.args = {
|
|
250
|
+
quiet: true,
|
|
251
|
+
vertical: true
|
|
252
|
+
};
|
|
253
|
+
export const compactVertical = (args) => renderButtons(args);
|
|
254
|
+
compactVertical.args = {
|
|
255
|
+
compact: true,
|
|
256
|
+
vertical: true
|
|
257
|
+
};
|
|
258
|
+
export const compactVerticalIconsOnly = (args) => renderIconButtons(args);
|
|
259
|
+
compactVerticalIconsOnly.args = {
|
|
260
|
+
compact: true,
|
|
261
|
+
vertical: true
|
|
262
|
+
};
|
|
263
|
+
export const compactQuietVerticalIconsOnly = (args) => renderIconButtons(args);
|
|
264
|
+
compactQuietVerticalIconsOnly.args = {
|
|
265
|
+
compact: true,
|
|
266
|
+
quiet: true,
|
|
267
|
+
vertical: true
|
|
268
|
+
};
|
|
269
|
+
export const justified = (args) => renderButtons(args);
|
|
270
|
+
justified.args = {
|
|
271
|
+
justified: true
|
|
272
|
+
};
|
|
273
|
+
export const justifiedIconsOnly = (args) => renderIconButtons(args);
|
|
274
|
+
justifiedIconsOnly.args = {
|
|
275
|
+
justified: true
|
|
276
|
+
};
|
|
277
|
+
export const compactJustifiedIconsOnly = (args) => renderIconButtons(args);
|
|
278
|
+
compactJustifiedIconsOnly.args = {
|
|
279
|
+
compact: true,
|
|
280
|
+
justified: true
|
|
281
|
+
};
|
|
93
282
|
//# sourceMappingURL=action-group.stories.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["action-group.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';\nimport { spreadProps } from '../../../test/lit-helpers.js';\n\nimport '@spectrum-web-components/action-group/sp-action-group.js';\nimport '@spectrum-web-components/action-button/sp-action-button.js';\nimport '@spectrum-web-components/overlay/overlay-trigger.js';\nimport '@spectrum-web-components/tooltip/sp-tooltip.js';\nimport '@spectrum-web-components/icons-workflow/icons/sp-icon-properties.js';\nimport '@spectrum-web-components/icons-workflow/icons/sp-icon-info.js';\nimport '@spectrum-web-components/icons-workflow/icons/sp-icon-view-all-tags.js';\nimport { ActionGroup } from '@spectrum-web-components/action-group/src/ActionGroup.js';\n\nexport default {\n title: 'Action Group',\n component: 'sp-action-group',\n args: {\n compact: false,\n emphasized: false,\n justified: false,\n quiet: false,\n vertical: false,\n },\n argTypes: {\n compact: {\n name: 'compact',\n description:\n 'Visually joins the buttons together to clarify their relationship to one another.',\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 emphasized: {\n name: 'emphasized',\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 justified: {\n name: 'justified',\n description:\n 'Aligns the action group items to use all the available space on that line.',\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 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 vertical: {\n name: 'vertical',\n description: 'Changes the orientation of the action group.',\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 Properties {\n compact?: boolean;\n emphasized?: boolean;\n justified?: boolean;\n quiet?: boolean;\n vertical?: boolean;\n [prop: string]: unknown;\n}\n\nfunction renderIconButtons(args: Properties): TemplateResult {\n return html`\n <sp-action-group ${spreadProps(args)}>\n <sp-action-button label=\"Properties\">\n <sp-icon-properties slot=\"icon\"></sp-icon-properties>\n </sp-action-button>\n <sp-action-button label=\"Info\">\n <sp-icon-info slot=\"icon\"></sp-icon-info>\n </sp-action-button>\n <sp-action-button label=\"View All Tags\">\n <sp-icon-view-all-tags slot=\"icon\"></sp-icon-view-all-tags>\n </sp-action-button>\n </sp-action-group>\n `;\n}\n\nfunction renderButtons(args: Properties): TemplateResult {\n return html`\n <sp-action-group ${spreadProps(args)}>\n <sp-action-button>Button 1</sp-action-button>\n <sp-action-button>Longer Button 2</sp-action-button>\n <sp-action-button>Short 3</sp-action-button>\n </sp-action-group>\n `;\n}\n\nfunction displaySelectionState(): void {\n const group = document.querySelector('sp-action-group') as ActionGroup;\n const selectedDiv = group.nextElementSibling;\n if (selectedDiv) {\n selectedDiv.textContent = `Selected: ${JSON.stringify(group.selected)}`;\n }\n}\nexport const Default = (args: Properties): TemplateResult =>\n renderButtons(args);\n\nexport const selectsSingle = (args: Properties): TemplateResult => {\n requestAnimationFrame(displaySelectionState);\n return html`\n <sp-action-group\n ?compact=${args.compact}\n ?emphasized=${args.emphasized}\n ?quiet=${args.quiet}\n ?justified=${args.justified}\n ?vertical=${args.vertical}\n label=\"Favorite Color\"\n selects=\"single\"\n @change=${({ target }: Event & { target: ActionGroup }) => {\n const next = target.nextElementSibling as HTMLDivElement;\n next.textContent = `Selected: ${JSON.stringify(\n target.selected\n )}`;\n }}\n >\n <sp-action-button>Red</sp-action-button>\n <sp-action-button>Green</sp-action-button>\n <sp-action-button>Blue</sp-action-button>\n <sp-action-button selected>Yellow</sp-action-button>\n </sp-action-group>\n <div>Selected:</div>\n `;\n};\n\nexport const selectsMultiple = (args: Properties): TemplateResult => {\n requestAnimationFrame(displaySelectionState);\n return html`\n <sp-action-group\n ${spreadProps(args)}\n label=\"Favorite Colors\"\n selects=\"multiple\"\n @change=${({ target }: Event & { target: ActionGroup }) => {\n const next = target.nextElementSibling as HTMLDivElement;\n next.textContent = `Selected: ${JSON.stringify(\n target.selected\n )}`;\n }}\n >\n <sp-action-button>Red</sp-action-button>\n <sp-action-button selected>Green</sp-action-button>\n <sp-action-button selected>Blue</sp-action-button>\n <sp-action-button>Yellow</sp-action-button>\n </sp-action-group>\n <div>Selected:</div>\n `;\n};\n\nexport const selectsMultipleWithTooltips = (\n args: Properties\n): TemplateResult => {\n return html`\n <sp-action-group\n ${spreadProps(args)}\n label=\"Favorite Color\"\n selects=\"multiple\"\n @change=${({ target }: Event & { target: ActionGroup }) => {\n const next = target.nextElementSibling as HTMLDivElement;\n next.textContent = `Selected: ${JSON.stringify(\n target.selected\n )}`;\n }}\n >\n <overlay-trigger>\n <sp-action-button slot=\"trigger\">Red</sp-action-button>\n <sp-tooltip slot=\"hover-content\">\n This is a cool color.\n </sp-tooltip>\n </overlay-trigger>\n <overlay-trigger>\n <sp-action-button slot=\"trigger\">Green</sp-action-button>\n <sp-tooltip slot=\"hover-content\">\n You wouldn't be wrong.\n </sp-tooltip>\n </overlay-trigger>\n <overlay-trigger>\n <sp-action-button slot=\"trigger\">Blue</sp-action-button>\n <sp-tooltip slot=\"hover-content\">The sky in spring.</sp-tooltip>\n </overlay-trigger>\n <overlay-trigger>\n <sp-action-button slot=\"trigger\">Yellow</sp-action-button>\n <sp-tooltip slot=\"hover-content\">The sun at noon.</sp-tooltip>\n </overlay-trigger>\n </sp-action-group>\n <div>Selected:</div>\n `;\n};\n\nexport const selectsMultipleControlled = (args: Properties): TemplateResult => {\n requestAnimationFrame(displaySelectionState);\n return html`\n <sp-action-group\n ${spreadProps(args)}\n selects=\"multiple\"\n .selected=${['donuts', 'crepecakes']}\n label=\"Favorite Dessert\"\n @change=${({ target }: Event & { target: ActionGroup }) => {\n const next = target.nextElementSibling as HTMLDivElement;\n next.textContent = `Selected: ${JSON.stringify(\n target.selected\n )}`;\n }}\n >\n <sp-action-button value=\"lavacakes\">Lava Cakes</sp-action-button>\n <sp-action-button value=\"donuts\">Donuts</sp-action-button>\n <sp-action-button value=\"crepecakes\">Crepe Cake</sp-action-button>\n <sp-action-button value=\"fruittarts\">Fruit Tarts</sp-action-button>\n </sp-action-group>\n <div>Selected:</div>\n `;\n};\n\nexport const iconsOnly = (args: Properties): TemplateResult =>\n renderIconButtons(args);\n\nexport const quietIconsOnly = (args: Properties): TemplateResult =>\n renderIconButtons(args);\nquietIconsOnly.args = {\n quiet: true,\n};\n\nexport const compact = (args: Properties): TemplateResult =>\n renderButtons(args);\ncompact.args = {\n compact: true,\n};\n\nexport const compactIconsOnly = (args: Properties): TemplateResult =>\n renderIconButtons(args);\ncompactIconsOnly.args = {\n compact: true,\n};\n\nexport const compactQuietIconsOnly = (args: Properties): TemplateResult =>\n renderIconButtons(args);\ncompactQuietIconsOnly.args = {\n compact: true,\n quiet: true,\n};\n\nexport const vertical = (args: Properties): TemplateResult =>\n renderButtons(args);\nvertical.args = {\n vertical: true,\n};\n\nexport const verticalIconsOnly = (args: Properties): TemplateResult =>\n renderIconButtons(args);\nverticalIconsOnly.args = {\n vertical: true,\n};\n\nexport const verticalQuietIconsOnly = (args: Properties): TemplateResult =>\n renderIconButtons(args);\nverticalQuietIconsOnly.args = {\n quiet: true,\n vertical: true,\n};\n\nexport const compactVertical = (args: Properties): TemplateResult =>\n renderButtons(args);\ncompactVertical.args = {\n compact: true,\n vertical: true,\n};\n\nexport const compactVerticalIconsOnly = (args: Properties): TemplateResult =>\n renderIconButtons(args);\ncompactVerticalIconsOnly.args = {\n compact: true,\n vertical: true,\n};\n\nexport const compactQuietVerticalIconsOnly = (\n args: Properties\n): TemplateResult => renderIconButtons(args);\ncompactQuietVerticalIconsOnly.args = {\n compact: true,\n quiet: true,\n vertical: true,\n};\n\nexport const justified = (args: Properties): TemplateResult =>\n renderButtons(args);\njustified.args = {\n justified: true,\n};\n\nexport const justifiedIconsOnly = (args: Properties): TemplateResult =>\n renderIconButtons(args);\njustifiedIconsOnly.args = {\n justified: true,\n};\n\nexport const compactJustifiedIconsOnly = (args: Properties): TemplateResult =>\n renderIconButtons(args);\ncompact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ooltip.stories.js";
|
|
3
|
+
import { regressVisuals } from "../../../test/visual/test.js";
|
|
4
|
+
regressVisuals("ActionGroupTooltipStories", stories);
|
|
2
5
|
//# sourceMappingURL=action-group-tooltip.test-vrt.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["action-group-tooltip.test-vrt.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 * as stories from '../stories/action-group-tooltip.stories.js';\nimport { regressVisuals } from '../../../test/visual/test.js';\n\nregressVisuals('ActionGroupTooltipStories', stories);\n"],
|
|
5
|
-
"mappings": "AAYA,
|
|
5
|
+
"mappings": ";AAYA,YAAY,aAAa;AACzB,SAAS,sBAAsB;AAE/B,eAAe,6BAA6B,OAAO;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
import * as stories from "../stories/action-group.stories.js";
|
|
3
|
+
import { regressVisuals } from "../../../test/visual/test.js";
|
|
4
|
+
regressVisuals("ActionGroupStories", stories);
|
|
2
5
|
//# sourceMappingURL=action-group.test-vrt.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["action-group.test-vrt.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 * as stories from '../stories/action-group.stories.js';\nimport { regressVisuals } from '../../../test/visual/test.js';\n\nregressVisuals('ActionGroupStories', stories);\n"],
|
|
5
|
-
"mappings": "AAYA,
|
|
5
|
+
"mappings": ";AAYA,YAAY,aAAa;AACzB,SAAS,sBAAsB;AAE/B,eAAe,sBAAsB,OAAO;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|