@spectrum-web-components/split-view 1.1.0 → 1.1.2
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-split-view.d.ts +6 -0
- package/sp-split-view.dev.js +5 -0
- package/sp-split-view.dev.js.map +7 -0
- package/sp-split-view.js +2 -0
- package/sp-split-view.js.map +7 -0
- package/src/SplitView.d.ts +68 -0
- package/src/SplitView.dev.js +370 -0
- package/src/SplitView.dev.js.map +7 -0
- package/src/SplitView.js +26 -0
- package/src/SplitView.js.map +7 -0
- package/src/index.d.ts +1 -0
- package/src/index.dev.js +3 -0
- package/src/index.dev.js.map +7 -0
- package/src/index.js +2 -0
- package/src/index.js.map +7 -0
- package/src/spectrum-split-view.css.d.ts +2 -0
- package/src/spectrum-split-view.css.dev.js +7 -0
- package/src/spectrum-split-view.css.dev.js.map +7 -0
- package/src/spectrum-split-view.css.js +4 -0
- package/src/spectrum-split-view.css.js.map +7 -0
- package/src/split-view-overrides.css.d.ts +2 -0
- package/src/split-view-overrides.css.dev.js +7 -0
- package/src/split-view-overrides.css.dev.js.map +7 -0
- package/src/split-view-overrides.css.js +4 -0
- package/src/split-view-overrides.css.js.map +7 -0
- package/src/split-view.css.d.ts +2 -0
- package/src/split-view.css.dev.js +7 -0
- package/src/split-view.css.dev.js.map +7 -0
- package/src/split-view.css.js +4 -0
- package/src/split-view.css.js.map +7 -0
- package/src/types.d.ts +13 -0
- package/src/types.dev.js +2 -0
- package/src/types.dev.js.map +7 -0
- package/src/types.js +2 -0
- package/src/types.js.map +7 -0
- package/stories/split-view.stories.js +286 -0
- package/stories/split-view.stories.js.map +7 -0
- package/test/benchmark/basic-test.js +11 -0
- package/test/benchmark/basic-test.js.map +7 -0
- package/test/split-view-memory.test.js +8 -0
- package/test/split-view-memory.test.js.map +7 -0
- package/test/split-view.test-vrt.js +5 -0
- package/test/split-view.test-vrt.js.map +7 -0
- package/test/split-view.test.js +977 -0
- package/test/split-view.test.js.map +7 -0
@@ -0,0 +1,286 @@
|
|
1
|
+
"use strict";
|
2
|
+
import { html } from "@spectrum-web-components/base";
|
3
|
+
import "@spectrum-web-components/split-view/sp-split-view.js";
|
4
|
+
export default {
|
5
|
+
title: "Split View",
|
6
|
+
component: "sp-split-view",
|
7
|
+
args: {
|
8
|
+
primarySize: 100
|
9
|
+
},
|
10
|
+
argTypes: {
|
11
|
+
primarySize: {
|
12
|
+
name: "primarySize",
|
13
|
+
type: { name: "number", required: false },
|
14
|
+
description: "Size of the primary panel.",
|
15
|
+
table: {
|
16
|
+
type: { summary: "number" },
|
17
|
+
defaultValue: { summary: void 0 }
|
18
|
+
},
|
19
|
+
control: {
|
20
|
+
type: "number"
|
21
|
+
}
|
22
|
+
}
|
23
|
+
}
|
24
|
+
};
|
25
|
+
export const Horizontal = (args) => {
|
26
|
+
return html`
|
27
|
+
<sp-split-view style="height: 200px" .primarySize="${args.primarySize}">
|
28
|
+
<div>First panel</div>
|
29
|
+
<div>Second panel</div>
|
30
|
+
</sp-split-view>
|
31
|
+
`;
|
32
|
+
};
|
33
|
+
export const HorizontalResizable = (args) => {
|
34
|
+
return html`
|
35
|
+
<sp-split-view
|
36
|
+
resizable
|
37
|
+
primary-min="50"
|
38
|
+
.primarySize="${args.primarySize}"
|
39
|
+
secondary-min="50"
|
40
|
+
>
|
41
|
+
<div>
|
42
|
+
<h1>First panel</h1>
|
43
|
+
<p>
|
44
|
+
Lorem Ipsum is simply dummy text of the printing and
|
45
|
+
typesetting industry.
|
46
|
+
</p>
|
47
|
+
</div>
|
48
|
+
<div>
|
49
|
+
<h2>Second panel</h2>
|
50
|
+
<p>
|
51
|
+
It is a long established fact that a reader will be
|
52
|
+
distracted by the readable content of a page when looking at
|
53
|
+
its layout.
|
54
|
+
</p>
|
55
|
+
</div>
|
56
|
+
</sp-split-view>
|
57
|
+
`;
|
58
|
+
};
|
59
|
+
export const HorizontalResizableCollapsible = (args) => {
|
60
|
+
return html`
|
61
|
+
<sp-split-view
|
62
|
+
resizable
|
63
|
+
collapsible
|
64
|
+
primary-min="50"
|
65
|
+
secondary-min="50"
|
66
|
+
style="height: 500px;"
|
67
|
+
.primarySize="${args.primarySize}"
|
68
|
+
>
|
69
|
+
<div>
|
70
|
+
<h1>First panel</h1>
|
71
|
+
<p>
|
72
|
+
Lorem Ipsum is simply dummy text of the printing and
|
73
|
+
typesetting industry. Lorem Ipsum has been the industry's
|
74
|
+
standard dummy text ever since the 1500s, when an unknown
|
75
|
+
printer took a galley of type and scrambled it to make a
|
76
|
+
type specimen book. It has survived not only five centuries,
|
77
|
+
but also the leap into electronic typesetting, remaining
|
78
|
+
essentially unchanged. It was popularised in the 1960s with
|
79
|
+
the release of Letraset sheets containing Lorem Ipsum
|
80
|
+
passages, and more recently with desktop publishing software
|
81
|
+
like Aldus PageMaker including versions of Lorem Ipsum.
|
82
|
+
</p>
|
83
|
+
</div>
|
84
|
+
<div>
|
85
|
+
<h2>Second panel</h2>
|
86
|
+
<p>
|
87
|
+
It is a long established fact that a reader will be
|
88
|
+
distracted by the readable content of a page when looking at
|
89
|
+
its layout. The point of using Lorem Ipsum is that it has a
|
90
|
+
more-or-less normal distribution of letters, as opposed to
|
91
|
+
using 'Content here, content here', making it look like
|
92
|
+
readable English. Many desktop publishing packages and web
|
93
|
+
page editors now use Lorem Ipsum as their default model
|
94
|
+
text, and a search for 'lorem ipsum' will uncover many web
|
95
|
+
sites still in their infancy. Various versions have evolved
|
96
|
+
over the years, sometimes by accident, sometimes on purpose
|
97
|
+
(injected humour and the like).
|
98
|
+
</p>
|
99
|
+
</div>
|
100
|
+
</sp-split-view>
|
101
|
+
`;
|
102
|
+
};
|
103
|
+
HorizontalResizableCollapsible.args = {
|
104
|
+
primarySize: void 0
|
105
|
+
};
|
106
|
+
export const Vertical = (args) => {
|
107
|
+
return html`
|
108
|
+
<sp-split-view vertical .primarySize="${args.primarySize}">
|
109
|
+
<div>First panel</div>
|
110
|
+
<div>Second panel</div>
|
111
|
+
</sp-split-view>
|
112
|
+
`;
|
113
|
+
};
|
114
|
+
Vertical.args = {
|
115
|
+
primarySize: void 0
|
116
|
+
};
|
117
|
+
export const VerticalResizable = (args) => {
|
118
|
+
return html`
|
119
|
+
<sp-split-view
|
120
|
+
vertical
|
121
|
+
resizable
|
122
|
+
primary-min="50"
|
123
|
+
primary-max="100"
|
124
|
+
secondary-min="50"
|
125
|
+
style="height: 400px;"
|
126
|
+
.primarySize="${args.primarySize}"
|
127
|
+
>
|
128
|
+
<div>
|
129
|
+
<h1>First panel</h1>
|
130
|
+
<p>
|
131
|
+
Lorem Ipsum is simply dummy text of the printing and
|
132
|
+
typesetting industry. Lorem Ipsum has been the industry's
|
133
|
+
standard dummy text ever since the 1500s, when an unknown
|
134
|
+
printer took a galley of type and scrambled it to make a
|
135
|
+
type specimen book. It has survived not only five centuries,
|
136
|
+
but also the leap into electronic typesetting, remaining
|
137
|
+
essentially unchanged. It was popularised in the 1960s with
|
138
|
+
the release of Letraset sheets containing Lorem Ipsum
|
139
|
+
passages, and more recently with desktop publishing software
|
140
|
+
like Aldus PageMaker including versions of Lorem Ipsum.
|
141
|
+
</p>
|
142
|
+
</div>
|
143
|
+
<div>
|
144
|
+
<h2>Second panel</h2>
|
145
|
+
<p>
|
146
|
+
It is a long established fact that a reader will be
|
147
|
+
distracted by the readable content of a page when looking at
|
148
|
+
its layout. The point of using Lorem Ipsum is that it has a
|
149
|
+
more-or-less normal distribution of letters, as opposed to
|
150
|
+
using 'Content here, content here', making it look like
|
151
|
+
readable English. Many desktop publishing packages and web
|
152
|
+
page editors now use Lorem Ipsum as their default model
|
153
|
+
text, and a search for 'lorem ipsum' will uncover many web
|
154
|
+
sites still in their infancy. Various versions have evolved
|
155
|
+
over the years, sometimes by accident, sometimes on purpose
|
156
|
+
(injected humour and the like).
|
157
|
+
</p>
|
158
|
+
</div>
|
159
|
+
</sp-split-view>
|
160
|
+
`;
|
161
|
+
};
|
162
|
+
VerticalResizable.args = {
|
163
|
+
primarySize: void 0
|
164
|
+
};
|
165
|
+
export const VerticalResizableCollapsible = (args) => {
|
166
|
+
return html`
|
167
|
+
<sp-split-view
|
168
|
+
vertical
|
169
|
+
resizable
|
170
|
+
collapsible
|
171
|
+
primary-min="50"
|
172
|
+
secondary-min="40"
|
173
|
+
style="height: 400px;"
|
174
|
+
.primarySize="${args.primarySize}"
|
175
|
+
>
|
176
|
+
<div>
|
177
|
+
<h1>First panel</h1>
|
178
|
+
<p>
|
179
|
+
Lorem Ipsum is simply dummy text of the printing and
|
180
|
+
typesetting industry. Lorem Ipsum has been the industry's
|
181
|
+
standard dummy text ever since the 1500s, when an unknown
|
182
|
+
printer took a galley of type and scrambled it to make a
|
183
|
+
type specimen book. It has survived not only five centuries,
|
184
|
+
but also the leap into electronic typesetting, remaining
|
185
|
+
essentially unchanged. It was popularised in the 1960s with
|
186
|
+
the release of Letraset sheets containing Lorem Ipsum
|
187
|
+
passages, and more recently with desktop publishing software
|
188
|
+
like Aldus PageMaker including versions of Lorem Ipsum.
|
189
|
+
</p>
|
190
|
+
</div>
|
191
|
+
<div>
|
192
|
+
<h2>Second panel</h2>
|
193
|
+
<p>
|
194
|
+
It is a long established fact that a reader will be
|
195
|
+
distracted by the readable content of a page when looking at
|
196
|
+
its layout. The point of using Lorem Ipsum is that it has a
|
197
|
+
more-or-less normal distribution of letters, as opposed to
|
198
|
+
using 'Content here, content here', making it look like
|
199
|
+
readable English. Many desktop publishing packages and web
|
200
|
+
page editors now use Lorem Ipsum as their default model
|
201
|
+
text, and a search for 'lorem ipsum' will uncover many web
|
202
|
+
sites still in their infancy. Various versions have evolved
|
203
|
+
over the years, sometimes by accident, sometimes on purpose
|
204
|
+
(injected humour and the like).
|
205
|
+
</p>
|
206
|
+
</div>
|
207
|
+
</sp-split-view>
|
208
|
+
`;
|
209
|
+
};
|
210
|
+
VerticalResizableCollapsible.args = {
|
211
|
+
primarySize: 250
|
212
|
+
};
|
213
|
+
export const MultipleLevels = (args) => {
|
214
|
+
return html`
|
215
|
+
<sp-split-view
|
216
|
+
resizable
|
217
|
+
primary-min="50"
|
218
|
+
primary-max="200"
|
219
|
+
secondary-min="50"
|
220
|
+
style="height: 400px; width: 600px;"
|
221
|
+
>
|
222
|
+
<div>
|
223
|
+
<h1>First panel - Level 1</h1>
|
224
|
+
<p>
|
225
|
+
Lorem Ipsum is simply dummy text of the printing and
|
226
|
+
typesetting industry. Lorem Ipsum has been the industry's
|
227
|
+
standard dummy text ever since the 1500s, when an unknown
|
228
|
+
printer took a galley of type and scrambled it to make a
|
229
|
+
type specimen book. It has survived not only five centuries,
|
230
|
+
but also the leap into electronic typesetting, remaining
|
231
|
+
essentially unchanged. It was popularised in the 1960s with
|
232
|
+
the release of Letraset sheets containing Lorem Ipsum
|
233
|
+
passages, and more recently with desktop publishing software
|
234
|
+
like Aldus PageMaker including versions of Lorem Ipsum.
|
235
|
+
</p>
|
236
|
+
</div>
|
237
|
+
<div>
|
238
|
+
<h2>Second panel - Level 1</h2>
|
239
|
+
<sp-split-view
|
240
|
+
vertical
|
241
|
+
resizable
|
242
|
+
primary-min="50"
|
243
|
+
.primarySize="${args.primarySize}"
|
244
|
+
secondary-min="50"
|
245
|
+
style="height: 300px;"
|
246
|
+
>
|
247
|
+
<div>
|
248
|
+
<h3>First panel - Level 2</h3>
|
249
|
+
<p>
|
250
|
+
Lorem Ipsum is simply dummy text of the printing and
|
251
|
+
typesetting industry.
|
252
|
+
</p>
|
253
|
+
</div>
|
254
|
+
<div>
|
255
|
+
<h4>Second panel - Level 2</h4>
|
256
|
+
<p>
|
257
|
+
It is a long established fact that a reader will be
|
258
|
+
distracted by the readable content of a page when
|
259
|
+
looking at its layout.
|
260
|
+
</p>
|
261
|
+
</div>
|
262
|
+
</sp-split-view>
|
263
|
+
</div>
|
264
|
+
</sp-split-view>
|
265
|
+
`;
|
266
|
+
};
|
267
|
+
export const OnePaneNoSplitter = (args) => {
|
268
|
+
return html`
|
269
|
+
<sp-split-view style="height: 200px" .primarySize="${args.primarySize}">
|
270
|
+
<div>First panel</div>
|
271
|
+
</sp-split-view>
|
272
|
+
`;
|
273
|
+
};
|
274
|
+
export const ShowFirstTwoPanes = (args) => {
|
275
|
+
return html`
|
276
|
+
<sp-split-view style="height: 200px" .primarySize="${args.primarySize}">
|
277
|
+
<div>First panel</div>
|
278
|
+
<div>Second panel</div>
|
279
|
+
<div>Third (invisible) panel</div>
|
280
|
+
</sp-split-view>
|
281
|
+
`;
|
282
|
+
};
|
283
|
+
ShowFirstTwoPanes.args = {
|
284
|
+
primarySize: void 0
|
285
|
+
};
|
286
|
+
//# sourceMappingURL=split-view.stories.js.map
|
@@ -0,0 +1,7 @@
|
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["split-view.stories.ts"],
|
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/split-view/sp-split-view.js';\n\nexport default {\n title: 'Split View',\n component: 'sp-split-view',\n args: {\n primarySize: 100,\n },\n argTypes: {\n primarySize: {\n name: 'primarySize',\n type: { name: 'number', required: false },\n description: 'Size of the primary panel.',\n table: {\n type: { summary: 'number' },\n defaultValue: { summary: undefined },\n },\n control: {\n type: 'number',\n },\n },\n },\n};\n\ninterface Properties {\n primarySize?: string;\n}\n\nexport const Horizontal = (args: Properties): TemplateResult => {\n return html`\n <sp-split-view style=\"height: 200px\" .primarySize=\"${args.primarySize}\">\n <div>First panel</div>\n <div>Second panel</div>\n </sp-split-view>\n `;\n};\n\nexport const HorizontalResizable = (args: Properties): TemplateResult => {\n return html`\n <sp-split-view\n resizable\n primary-min=\"50\"\n .primarySize=\"${args.primarySize}\"\n secondary-min=\"50\"\n >\n <div>\n <h1>First panel</h1>\n <p>\n Lorem Ipsum is simply dummy text of the printing and\n typesetting industry.\n </p>\n </div>\n <div>\n <h2>Second panel</h2>\n <p>\n It is a long established fact that a reader will be\n distracted by the readable content of a page when looking at\n its layout.\n </p>\n </div>\n </sp-split-view>\n `;\n};\n\nexport const HorizontalResizableCollapsible = (\n args: Properties\n): TemplateResult => {\n return html`\n <sp-split-view\n resizable\n collapsible\n primary-min=\"50\"\n secondary-min=\"50\"\n style=\"height: 500px;\"\n .primarySize=\"${args.primarySize}\"\n >\n <div>\n <h1>First panel</h1>\n <p>\n Lorem Ipsum is simply dummy text of the printing and\n typesetting industry. Lorem Ipsum has been the industry's\n standard dummy text ever since the 1500s, when an unknown\n printer took a galley of type and scrambled it to make a\n type specimen book. It has survived not only five centuries,\n but also the leap into electronic typesetting, remaining\n essentially unchanged. It was popularised in the 1960s with\n the release of Letraset sheets containing Lorem Ipsum\n passages, and more recently with desktop publishing software\n like Aldus PageMaker including versions of Lorem Ipsum.\n </p>\n </div>\n <div>\n <h2>Second panel</h2>\n <p>\n It is a long established fact that a reader will be\n distracted by the readable content of a page when looking at\n its layout. The point of using Lorem Ipsum is that it has a\n more-or-less normal distribution of letters, as opposed to\n using 'Content here, content here', making it look like\n readable English. Many desktop publishing packages and web\n page editors now use Lorem Ipsum as their default model\n text, and a search for 'lorem ipsum' will uncover many web\n sites still in their infancy. Various versions have evolved\n over the years, sometimes by accident, sometimes on purpose\n (injected humour and the like).\n </p>\n </div>\n </sp-split-view>\n `;\n};\n\nHorizontalResizableCollapsible.args = {\n primarySize: undefined,\n};\n\nexport const Vertical = (args: Properties): TemplateResult => {\n return html`\n <sp-split-view vertical .primarySize=\"${args.primarySize}\">\n <div>First panel</div>\n <div>Second panel</div>\n </sp-split-view>\n `;\n};\n\nVertical.args = {\n primarySize: undefined,\n};\n\nexport const VerticalResizable = (args: Properties): TemplateResult => {\n return html`\n <sp-split-view\n vertical\n resizable\n primary-min=\"50\"\n primary-max=\"100\"\n secondary-min=\"50\"\n style=\"height: 400px;\"\n .primarySize=\"${args.primarySize}\"\n >\n <div>\n <h1>First panel</h1>\n <p>\n Lorem Ipsum is simply dummy text of the printing and\n typesetting industry. Lorem Ipsum has been the industry's\n standard dummy text ever since the 1500s, when an unknown\n printer took a galley of type and scrambled it to make a\n type specimen book. It has survived not only five centuries,\n but also the leap into electronic typesetting, remaining\n essentially unchanged. It was popularised in the 1960s with\n the release of Letraset sheets containing Lorem Ipsum\n passages, and more recently with desktop publishing software\n like Aldus PageMaker including versions of Lorem Ipsum.\n </p>\n </div>\n <div>\n <h2>Second panel</h2>\n <p>\n It is a long established fact that a reader will be\n distracted by the readable content of a page when looking at\n its layout. The point of using Lorem Ipsum is that it has a\n more-or-less normal distribution of letters, as opposed to\n using 'Content here, content here', making it look like\n readable English. Many desktop publishing packages and web\n page editors now use Lorem Ipsum as their default model\n text, and a search for 'lorem ipsum' will uncover many web\n sites still in their infancy. Various versions have evolved\n over the years, sometimes by accident, sometimes on purpose\n (injected humour and the like).\n </p>\n </div>\n </sp-split-view>\n `;\n};\n\nVerticalResizable.args = {\n primarySize: undefined,\n};\n\nexport const VerticalResizableCollapsible = (\n args: Properties\n): TemplateResult => {\n return html`\n <sp-split-view\n vertical\n resizable\n collapsible\n primary-min=\"50\"\n secondary-min=\"40\"\n style=\"height: 400px;\"\n .primarySize=\"${args.primarySize}\"\n >\n <div>\n <h1>First panel</h1>\n <p>\n Lorem Ipsum is simply dummy text of the printing and\n typesetting industry. Lorem Ipsum has been the industry's\n standard dummy text ever since the 1500s, when an unknown\n printer took a galley of type and scrambled it to make a\n type specimen book. It has survived not only five centuries,\n but also the leap into electronic typesetting, remaining\n essentially unchanged. It was popularised in the 1960s with\n the release of Letraset sheets containing Lorem Ipsum\n passages, and more recently with desktop publishing software\n like Aldus PageMaker including versions of Lorem Ipsum.\n </p>\n </div>\n <div>\n <h2>Second panel</h2>\n <p>\n It is a long established fact that a reader will be\n distracted by the readable content of a page when looking at\n its layout. The point of using Lorem Ipsum is that it has a\n more-or-less normal distribution of letters, as opposed to\n using 'Content here, content here', making it look like\n readable English. Many desktop publishing packages and web\n page editors now use Lorem Ipsum as their default model\n text, and a search for 'lorem ipsum' will uncover many web\n sites still in their infancy. Various versions have evolved\n over the years, sometimes by accident, sometimes on purpose\n (injected humour and the like).\n </p>\n </div>\n </sp-split-view>\n `;\n};\n\nVerticalResizableCollapsible.args = {\n primarySize: 250,\n};\n\nexport const MultipleLevels = (args: Properties): TemplateResult => {\n return html`\n <sp-split-view\n resizable\n primary-min=\"50\"\n primary-max=\"200\"\n secondary-min=\"50\"\n style=\"height: 400px; width: 600px;\"\n >\n <div>\n <h1>First panel - Level 1</h1>\n <p>\n Lorem Ipsum is simply dummy text of the printing and\n typesetting industry. Lorem Ipsum has been the industry's\n standard dummy text ever since the 1500s, when an unknown\n printer took a galley of type and scrambled it to make a\n type specimen book. It has survived not only five centuries,\n but also the leap into electronic typesetting, remaining\n essentially unchanged. It was popularised in the 1960s with\n the release of Letraset sheets containing Lorem Ipsum\n passages, and more recently with desktop publishing software\n like Aldus PageMaker including versions of Lorem Ipsum.\n </p>\n </div>\n <div>\n <h2>Second panel - Level 1</h2>\n <sp-split-view\n vertical\n resizable\n primary-min=\"50\"\n .primarySize=\"${args.primarySize}\"\n secondary-min=\"50\"\n style=\"height: 300px;\"\n >\n <div>\n <h3>First panel - Level 2</h3>\n <p>\n Lorem Ipsum is simply dummy text of the printing and\n typesetting industry.\n </p>\n </div>\n <div>\n <h4>Second panel - Level 2</h4>\n <p>\n It is a long established fact that a reader will be\n distracted by the readable content of a page when\n looking at its layout.\n </p>\n </div>\n </sp-split-view>\n </div>\n </sp-split-view>\n `;\n};\n\nexport const OnePaneNoSplitter = (args: Properties): TemplateResult => {\n return html`\n <sp-split-view style=\"height: 200px\" .primarySize=\"${args.primarySize}\">\n <div>First panel</div>\n </sp-split-view>\n `;\n};\n\nexport const ShowFirstTwoPanes = (args: Properties): TemplateResult => {\n return html`\n <sp-split-view style=\"height: 200px\" .primarySize=\"${args.primarySize}\">\n <div>First panel</div>\n <div>Second panel</div>\n <div>Third (invisible) panel</div>\n </sp-split-view>\n `;\n};\n\nShowFirstTwoPanes.args = {\n primarySize: undefined,\n};\n"],
|
5
|
+
"mappings": "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",
|
6
|
+
"names": []
|
7
|
+
}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
"use strict";
|
2
|
+
import "@spectrum-web-components/split-view/sp-split-view.js";
|
3
|
+
import { html } from "lit";
|
4
|
+
import { measureFixtureCreation } from "../../../../test/benchmark/helpers.js";
|
5
|
+
measureFixtureCreation(html`
|
6
|
+
<sp-split-view resizable>
|
7
|
+
<div>First panel</div>
|
8
|
+
<div>Second panel</div>
|
9
|
+
</sp-split-view>
|
10
|
+
`);
|
11
|
+
//# sourceMappingURL=basic-test.js.map
|
@@ -0,0 +1,7 @@
|
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["basic-test.ts"],
|
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 '@spectrum-web-components/split-view/sp-split-view.js';\nimport { html } from 'lit';\nimport { measureFixtureCreation } from '../../../../test/benchmark/helpers.js';\n\nmeasureFixtureCreation(html`\n <sp-split-view resizable>\n <div>First panel</div>\n <div>Second panel</div>\n </sp-split-view>\n`);\n"],
|
5
|
+
"mappings": ";AAYA,OAAO;AACP,SAAS,YAAY;AACrB,SAAS,8BAA8B;AAEvC,uBAAuB;AAAA;AAAA;AAAA;AAAA;AAAA,CAKtB;",
|
6
|
+
"names": []
|
7
|
+
}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
import { html } from "@open-wc/testing";
|
3
|
+
import "@spectrum-web-components/split-view/sp-split-view.js";
|
4
|
+
import { testForMemoryLeaks } from "../../../test/testing-helpers.js";
|
5
|
+
testForMemoryLeaks(html`
|
6
|
+
<sp-split-view></sp-split-view>
|
7
|
+
`);
|
8
|
+
//# sourceMappingURL=split-view-memory.test.js.map
|
@@ -0,0 +1,7 @@
|
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["split-view-memory.test.ts"],
|
4
|
+
"sourcesContent": ["/*\nCopyright 2023 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\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 } from '@open-wc/testing';\nimport '@spectrum-web-components/split-view/sp-split-view.js';\nimport { testForMemoryLeaks } from '../../../test/testing-helpers.js';\n\ntestForMemoryLeaks(html`\n <sp-split-view></sp-split-view>\n`);\n"],
|
5
|
+
"mappings": ";AAWA,SAAS,YAAY;AACrB,OAAO;AACP,SAAS,0BAA0B;AAEnC,mBAAmB;AAAA;AAAA,CAElB;",
|
6
|
+
"names": []
|
7
|
+
}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["split-view.test-vrt.ts"],
|
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/split-view.stories.js';\nimport { regressVisuals } from '../../../test/visual/test.js';\nimport type { TestsType } from '../../../test/visual/test.js';\n\nregressVisuals('SplitViewStories', stories as unknown as TestsType);\n"],
|
5
|
+
"mappings": ";AAYA,YAAY,aAAa;AACzB,SAAS,sBAAsB;AAG/B,eAAe,oBAAoB,OAA+B;",
|
6
|
+
"names": []
|
7
|
+
}
|