@spectrum-web-components/split-view 1.0.0 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spectrum-web-components/split-view",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -62,7 +62,7 @@
62
62
  "lit-html"
63
63
  ],
64
64
  "dependencies": {
65
- "@spectrum-web-components/base": "^1.0.0"
65
+ "@spectrum-web-components/base": "^1.0.2"
66
66
  },
67
67
  "devDependencies": {
68
68
  "@spectrum-css/splitview": "^6.0.0-s2-foundations.15"
@@ -72,6 +72,5 @@
72
72
  "sideEffects": [
73
73
  "./sp-*.js",
74
74
  "./**/*.dev.js"
75
- ],
76
- "gitHead": "5cf5d34645bf9494ebd20f64c42d1619523d2d84"
75
+ ]
77
76
  }
package/LICENSE DELETED
@@ -1,201 +0,0 @@
1
- Apache License
2
- Version 2.0, January 2004
3
- http://www.apache.org/licenses/
4
-
5
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
-
7
- 1. Definitions.
8
-
9
- "License" shall mean the terms and conditions for use, reproduction,
10
- and distribution as defined by Sections 1 through 9 of this document.
11
-
12
- "Licensor" shall mean the copyright owner or entity authorized by
13
- the copyright owner that is granting the License.
14
-
15
- "Legal Entity" shall mean the union of the acting entity and all
16
- other entities that control, are controlled by, or are under common
17
- control with that entity. For the purposes of this definition,
18
- "control" means (i) the power, direct or indirect, to cause the
19
- direction or management of such entity, whether by contract or
20
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
- outstanding shares, or (iii) beneficial ownership of such entity.
22
-
23
- "You" (or "Your") shall mean an individual or Legal Entity
24
- exercising permissions granted by this License.
25
-
26
- "Source" form shall mean the preferred form for making modifications,
27
- including but not limited to software source code, documentation
28
- source, and configuration files.
29
-
30
- "Object" form shall mean any form resulting from mechanical
31
- transformation or translation of a Source form, including but
32
- not limited to compiled object code, generated documentation,
33
- and conversions to other media types.
34
-
35
- "Work" shall mean the work of authorship, whether in Source or
36
- Object form, made available under the License, as indicated by a
37
- copyright notice that is included in or attached to the work
38
- (an example is provided in the Appendix below).
39
-
40
- "Derivative Works" shall mean any work, whether in Source or Object
41
- form, that is based on (or derived from) the Work and for which the
42
- editorial revisions, annotations, elaborations, or other modifications
43
- represent, as a whole, an original work of authorship. For the purposes
44
- of this License, Derivative Works shall not include works that remain
45
- separable from, or merely link (or bind by name) to the interfaces of,
46
- the Work and Derivative Works thereof.
47
-
48
- "Contribution" shall mean any work of authorship, including
49
- the original version of the Work and any modifications or additions
50
- to that Work or Derivative Works thereof, that is intentionally
51
- submitted to Licensor for inclusion in the Work by the copyright owner
52
- or by an individual or Legal Entity authorized to submit on behalf of
53
- the copyright owner. For the purposes of this definition, "submitted"
54
- means any form of electronic, verbal, or written communication sent
55
- to the Licensor or its representatives, including but not limited to
56
- communication on electronic mailing lists, source code control systems,
57
- and issue tracking systems that are managed by, or on behalf of, the
58
- Licensor for the purpose of discussing and improving the Work, but
59
- excluding communication that is conspicuously marked or otherwise
60
- designated in writing by the copyright owner as "Not a Contribution."
61
-
62
- "Contributor" shall mean Licensor and any individual or Legal Entity
63
- on behalf of whom a Contribution has been received by Licensor and
64
- subsequently incorporated within the Work.
65
-
66
- 2. Grant of Copyright License. Subject to the terms and conditions of
67
- this License, each Contributor hereby grants to You a perpetual,
68
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
- copyright license to reproduce, prepare Derivative Works of,
70
- publicly display, publicly perform, sublicense, and distribute the
71
- Work and such Derivative Works in Source or Object form.
72
-
73
- 3. Grant of Patent License. Subject to the terms and conditions of
74
- this License, each Contributor hereby grants to You a perpetual,
75
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
- (except as stated in this section) patent license to make, have made,
77
- use, offer to sell, sell, import, and otherwise transfer the Work,
78
- where such license applies only to those patent claims licensable
79
- by such Contributor that are necessarily infringed by their
80
- Contribution(s) alone or by combination of their Contribution(s)
81
- with the Work to which such Contribution(s) was submitted. If You
82
- institute patent litigation against any entity (including a
83
- cross-claim or counterclaim in a lawsuit) alleging that the Work
84
- or a Contribution incorporated within the Work constitutes direct
85
- or contributory patent infringement, then any patent licenses
86
- granted to You under this License for that Work shall terminate
87
- as of the date such litigation is filed.
88
-
89
- 4. Redistribution. You may reproduce and distribute copies of the
90
- Work or Derivative Works thereof in any medium, with or without
91
- modifications, and in Source or Object form, provided that You
92
- meet the following conditions:
93
-
94
- (a) You must give any other recipients of the Work or
95
- Derivative Works a copy of this License; and
96
-
97
- (b) You must cause any modified files to carry prominent notices
98
- stating that You changed the files; and
99
-
100
- (c) You must retain, in the Source form of any Derivative Works
101
- that You distribute, all copyright, patent, trademark, and
102
- attribution notices from the Source form of the Work,
103
- excluding those notices that do not pertain to any part of
104
- the Derivative Works; and
105
-
106
- (d) If the Work includes a "NOTICE" text file as part of its
107
- distribution, then any Derivative Works that You distribute must
108
- include a readable copy of the attribution notices contained
109
- within such NOTICE file, excluding those notices that do not
110
- pertain to any part of the Derivative Works, in at least one
111
- of the following places: within a NOTICE text file distributed
112
- as part of the Derivative Works; within the Source form or
113
- documentation, if provided along with the Derivative Works; or,
114
- within a display generated by the Derivative Works, if and
115
- wherever such third-party notices normally appear. The contents
116
- of the NOTICE file are for informational purposes only and
117
- do not modify the License. You may add Your own attribution
118
- notices within Derivative Works that You distribute, alongside
119
- or as an addendum to the NOTICE text from the Work, provided
120
- that such additional attribution notices cannot be construed
121
- as modifying the License.
122
-
123
- You may add Your own copyright statement to Your modifications and
124
- may provide additional or different license terms and conditions
125
- for use, reproduction, or distribution of Your modifications, or
126
- for any such Derivative Works as a whole, provided Your use,
127
- reproduction, and distribution of the Work otherwise complies with
128
- the conditions stated in this License.
129
-
130
- 5. Submission of Contributions. Unless You explicitly state otherwise,
131
- any Contribution intentionally submitted for inclusion in the Work
132
- by You to the Licensor shall be under the terms and conditions of
133
- this License, without any additional terms or conditions.
134
- Notwithstanding the above, nothing herein shall supersede or modify
135
- the terms of any separate license agreement you may have executed
136
- with Licensor regarding such Contributions.
137
-
138
- 6. Trademarks. This License does not grant permission to use the trade
139
- names, trademarks, service marks, or product names of the Licensor,
140
- except as required for reasonable and customary use in describing the
141
- origin of the Work and reproducing the content of the NOTICE file.
142
-
143
- 7. Disclaimer of Warranty. Unless required by applicable law or
144
- agreed to in writing, Licensor provides the Work (and each
145
- Contributor provides its Contributions) on an "AS IS" BASIS,
146
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
- implied, including, without limitation, any warranties or conditions
148
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
- PARTICULAR PURPOSE. You are solely responsible for determining the
150
- appropriateness of using or redistributing the Work and assume any
151
- risks associated with Your exercise of permissions under this License.
152
-
153
- 8. Limitation of Liability. In no event and under no legal theory,
154
- whether in tort (including negligence), contract, or otherwise,
155
- unless required by applicable law (such as deliberate and grossly
156
- negligent acts) or agreed to in writing, shall any Contributor be
157
- liable to You for damages, including any direct, indirect, special,
158
- incidental, or consequential damages of any character arising as a
159
- result of this License or out of the use or inability to use the
160
- Work (including but not limited to damages for loss of goodwill,
161
- work stoppage, computer failure or malfunction, or any and all
162
- other commercial damages or losses), even if such Contributor
163
- has been advised of the possibility of such damages.
164
-
165
- 9. Accepting Warranty or Additional Liability. While redistributing
166
- the Work or Derivative Works thereof, You may choose to offer,
167
- and charge a fee for, acceptance of support, warranty, indemnity,
168
- or other liability obligations and/or rights consistent with this
169
- License. However, in accepting such obligations, You may act only
170
- on Your own behalf and on Your sole responsibility, not on behalf
171
- of any other Contributor, and only if You agree to indemnify,
172
- defend, and hold each Contributor harmless for any liability
173
- incurred by, or claims asserted against, such Contributor by reason
174
- of your accepting any such warranty or additional liability.
175
-
176
- END OF TERMS AND CONDITIONS
177
-
178
- APPENDIX: How to apply the Apache License to your work.
179
-
180
- To apply the Apache License to your work, attach the following
181
- boilerplate notice, with the fields enclosed by brackets "[]"
182
- replaced with your own identifying information. (Don't include
183
- the brackets!) The text should be enclosed in the appropriate
184
- comment syntax for the file format. We also recommend that a
185
- file or class name and description of purpose be included on the
186
- same "printed page" as the copyright notice for easier
187
- identification within third-party archives.
188
-
189
- Copyright [yyyy] [name of copyright owner]
190
-
191
- Licensed under the Apache License, Version 2.0 (the "License");
192
- you may not use this file except in compliance with the License.
193
- You may obtain a copy of the License at
194
-
195
- http://www.apache.org/licenses/LICENSE-2.0
196
-
197
- Unless required by applicable law or agreed to in writing, software
198
- distributed under the License is distributed on an "AS IS" BASIS,
199
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
- See the License for the specific language governing permissions and
201
- limitations under the License.
@@ -1,286 +0,0 @@
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
@@ -1,7 +0,0 @@
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
- }
@@ -1,11 +0,0 @@
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
@@ -1,7 +0,0 @@
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
- }
@@ -1,8 +0,0 @@
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
@@ -1,7 +0,0 @@
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
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- import * as stories from "../stories/split-view.stories.js";
3
- import { regressVisuals } from "../../../test/visual/test.js";
4
- regressVisuals("SplitViewStories", stories);
5
- //# sourceMappingURL=split-view.test-vrt.js.map
@@ -1,7 +0,0 @@
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
- }