@react-stately/virtualizer 3.6.9-nightly.4555 → 3.6.9-nightly.4560
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/dist/Layout.main.js +75 -0
- package/dist/Layout.main.js.map +1 -0
- package/dist/Layout.mjs +70 -0
- package/dist/Layout.module.js +70 -0
- package/dist/Layout.module.js.map +1 -0
- package/dist/LayoutInfo.main.js +51 -0
- package/dist/LayoutInfo.main.js.map +1 -0
- package/dist/LayoutInfo.mjs +46 -0
- package/dist/LayoutInfo.module.js +46 -0
- package/dist/LayoutInfo.module.js.map +1 -0
- package/dist/OverscanManager.main.js +87 -0
- package/dist/OverscanManager.main.js.map +1 -0
- package/dist/OverscanManager.mjs +82 -0
- package/dist/OverscanManager.module.js +82 -0
- package/dist/OverscanManager.module.js.map +1 -0
- package/dist/Point.main.js +40 -0
- package/dist/Point.main.js.map +1 -0
- package/dist/Point.mjs +35 -0
- package/dist/Point.module.js +35 -0
- package/dist/Point.module.js.map +1 -0
- package/dist/Rect.main.js +130 -0
- package/dist/Rect.main.js.map +1 -0
- package/dist/Rect.mjs +125 -0
- package/dist/Rect.module.js +125 -0
- package/dist/Rect.module.js.map +1 -0
- package/dist/ReusableView.main.js +33 -0
- package/dist/ReusableView.main.js.map +1 -0
- package/dist/ReusableView.mjs +28 -0
- package/dist/ReusableView.module.js +28 -0
- package/dist/ReusableView.module.js.map +1 -0
- package/dist/Size.main.js +40 -0
- package/dist/Size.main.js.map +1 -0
- package/dist/Size.mjs +35 -0
- package/dist/Size.module.js +35 -0
- package/dist/Size.module.js.map +1 -0
- package/dist/Transaction.main.js +32 -0
- package/dist/Transaction.main.js.map +1 -0
- package/dist/Transaction.mjs +27 -0
- package/dist/Transaction.module.js +27 -0
- package/dist/Transaction.module.js.map +1 -0
- package/dist/Virtualizer.main.js +813 -0
- package/dist/Virtualizer.main.js.map +1 -0
- package/dist/Virtualizer.mjs +808 -0
- package/dist/Virtualizer.module.js +808 -0
- package/dist/Virtualizer.module.js.map +1 -0
- package/dist/import.mjs +7 -1399
- package/dist/main.js +14 -1406
- package/dist/main.js.map +1 -1
- package/dist/module.js +7 -1399
- package/dist/module.js.map +1 -1
- package/dist/tween.main.js +67 -0
- package/dist/tween.main.js.map +1 -0
- package/dist/tween.mjs +61 -0
- package/dist/tween.module.js +61 -0
- package/dist/tween.module.js.map +1 -0
- package/dist/useVirtualizerState.main.js +96 -0
- package/dist/useVirtualizerState.main.js.map +1 -0
- package/dist/useVirtualizerState.mjs +91 -0
- package/dist/useVirtualizerState.module.js +91 -0
- package/dist/useVirtualizerState.module.js.map +1 -0
- package/dist/utils.main.js +53 -0
- package/dist/utils.main.js.map +1 -0
- package/dist/utils.mjs +46 -0
- package/dist/utils.module.js +46 -0
- package/dist/utils.module.js.map +1 -0
- package/package.json +4 -4
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
|
|
2
|
+
function $parcel$export(e, n, v, s) {
|
|
3
|
+
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
$parcel$export(module.exports, "ReusableView", () => $197a1781bd47f5b9$export$1a5223887c560441);
|
|
7
|
+
/*
|
|
8
|
+
* Copyright 2020 Adobe. All rights reserved.
|
|
9
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
10
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
11
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
14
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
15
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
16
|
+
* governing permissions and limitations under the License.
|
|
17
|
+
*/ let $197a1781bd47f5b9$var$KEY = 0;
|
|
18
|
+
class $197a1781bd47f5b9$export$1a5223887c560441 {
|
|
19
|
+
/**
|
|
20
|
+
* Prepares the view for reuse. Called just before the view is removed from the DOM.
|
|
21
|
+
*/ prepareForReuse() {
|
|
22
|
+
this.content = null;
|
|
23
|
+
this.rendered = null;
|
|
24
|
+
this.layoutInfo = null;
|
|
25
|
+
}
|
|
26
|
+
constructor(virtualizer){
|
|
27
|
+
this.virtualizer = virtualizer;
|
|
28
|
+
this.key = ++$197a1781bd47f5b9$var$KEY;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
//# sourceMappingURL=ReusableView.main.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":";;;;;;AAAA;;;;;;;;;;CAUC,GAMD,IAAI,4BAAM;AASH,MAAM;IAoBX;;GAEC,GACD,kBAAkB;QAChB,IAAI,CAAC,OAAO,GAAG;QACf,IAAI,CAAC,QAAQ,GAAG;QAChB,IAAI,CAAC,UAAU,GAAG;IACpB;IAZA,YAAY,WAAuC,CAAE;QACnD,IAAI,CAAC,WAAW,GAAG;QACnB,IAAI,CAAC,GAAG,GAAG,EAAE;IACf;AAUF","sources":["packages/@react-stately/virtualizer/src/ReusableView.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {Key} from '@react-types/shared';\nimport {LayoutInfo} from './LayoutInfo';\nimport {Virtualizer} from './Virtualizer';\n\nlet KEY = 0;\n\n/**\n * [CollectionView]{@link CollectionView} creates instances of the [ReusableView]{@link ReusableView} class to\n * represent views currently being displayed. ReusableViews manage a DOM node, handle\n * applying {@link LayoutInfo} objects to the view, and render content\n * as needed. Subclasses must implement the {@link render} method at a\n * minimum. Other methods can be overridden to customize behavior.\n */\nexport class ReusableView<T extends object, V> {\n /** The CollectionVirtualizer this view is a part of. */\n virtualizer: Virtualizer<T, V, unknown>;\n\n /** The LayoutInfo this view is currently representing. */\n layoutInfo: LayoutInfo | null;\n\n /** The content currently being displayed by this view, set by the collection view. */\n content: T;\n\n rendered: V;\n\n viewType: string;\n key: Key;\n\n constructor(virtualizer: Virtualizer<T, V, unknown>) {\n this.virtualizer = virtualizer;\n this.key = ++KEY;\n }\n\n /**\n * Prepares the view for reuse. Called just before the view is removed from the DOM.\n */\n prepareForReuse() {\n this.content = null;\n this.rendered = null;\n this.layoutInfo = null;\n }\n}\n"],"names":[],"version":3,"file":"ReusableView.main.js.map"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2020 Adobe. All rights reserved.
|
|
3
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
*
|
|
7
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
8
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
9
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
|
+
* governing permissions and limitations under the License.
|
|
11
|
+
*/ let $ad1d98aa8f0c31b4$var$KEY = 0;
|
|
12
|
+
class $ad1d98aa8f0c31b4$export$1a5223887c560441 {
|
|
13
|
+
/**
|
|
14
|
+
* Prepares the view for reuse. Called just before the view is removed from the DOM.
|
|
15
|
+
*/ prepareForReuse() {
|
|
16
|
+
this.content = null;
|
|
17
|
+
this.rendered = null;
|
|
18
|
+
this.layoutInfo = null;
|
|
19
|
+
}
|
|
20
|
+
constructor(virtualizer){
|
|
21
|
+
this.virtualizer = virtualizer;
|
|
22
|
+
this.key = ++$ad1d98aa8f0c31b4$var$KEY;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
export {$ad1d98aa8f0c31b4$export$1a5223887c560441 as ReusableView};
|
|
28
|
+
//# sourceMappingURL=ReusableView.mjs.map
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2020 Adobe. All rights reserved.
|
|
3
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
*
|
|
7
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
8
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
9
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
|
+
* governing permissions and limitations under the License.
|
|
11
|
+
*/ let $ad1d98aa8f0c31b4$var$KEY = 0;
|
|
12
|
+
class $ad1d98aa8f0c31b4$export$1a5223887c560441 {
|
|
13
|
+
/**
|
|
14
|
+
* Prepares the view for reuse. Called just before the view is removed from the DOM.
|
|
15
|
+
*/ prepareForReuse() {
|
|
16
|
+
this.content = null;
|
|
17
|
+
this.rendered = null;
|
|
18
|
+
this.layoutInfo = null;
|
|
19
|
+
}
|
|
20
|
+
constructor(virtualizer){
|
|
21
|
+
this.virtualizer = virtualizer;
|
|
22
|
+
this.key = ++$ad1d98aa8f0c31b4$var$KEY;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
export {$ad1d98aa8f0c31b4$export$1a5223887c560441 as ReusableView};
|
|
28
|
+
//# sourceMappingURL=ReusableView.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":"AAAA;;;;;;;;;;CAUC,GAMD,IAAI,4BAAM;AASH,MAAM;IAoBX;;GAEC,GACD,kBAAkB;QAChB,IAAI,CAAC,OAAO,GAAG;QACf,IAAI,CAAC,QAAQ,GAAG;QAChB,IAAI,CAAC,UAAU,GAAG;IACpB;IAZA,YAAY,WAAuC,CAAE;QACnD,IAAI,CAAC,WAAW,GAAG;QACnB,IAAI,CAAC,GAAG,GAAG,EAAE;IACf;AAUF","sources":["packages/@react-stately/virtualizer/src/ReusableView.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {Key} from '@react-types/shared';\nimport {LayoutInfo} from './LayoutInfo';\nimport {Virtualizer} from './Virtualizer';\n\nlet KEY = 0;\n\n/**\n * [CollectionView]{@link CollectionView} creates instances of the [ReusableView]{@link ReusableView} class to\n * represent views currently being displayed. ReusableViews manage a DOM node, handle\n * applying {@link LayoutInfo} objects to the view, and render content\n * as needed. Subclasses must implement the {@link render} method at a\n * minimum. Other methods can be overridden to customize behavior.\n */\nexport class ReusableView<T extends object, V> {\n /** The CollectionVirtualizer this view is a part of. */\n virtualizer: Virtualizer<T, V, unknown>;\n\n /** The LayoutInfo this view is currently representing. */\n layoutInfo: LayoutInfo | null;\n\n /** The content currently being displayed by this view, set by the collection view. */\n content: T;\n\n rendered: V;\n\n viewType: string;\n key: Key;\n\n constructor(virtualizer: Virtualizer<T, V, unknown>) {\n this.virtualizer = virtualizer;\n this.key = ++KEY;\n }\n\n /**\n * Prepares the view for reuse. Called just before the view is removed from the DOM.\n */\n prepareForReuse() {\n this.content = null;\n this.rendered = null;\n this.layoutInfo = null;\n }\n}\n"],"names":[],"version":3,"file":"ReusableView.module.js.map"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
|
|
2
|
+
function $parcel$export(e, n, v, s) {
|
|
3
|
+
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
$parcel$export(module.exports, "Size", () => $064492b79924894c$export$cb6da89c6af1a8ec);
|
|
7
|
+
/*
|
|
8
|
+
* Copyright 2020 Adobe. All rights reserved.
|
|
9
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
10
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
11
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
14
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
15
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
16
|
+
* governing permissions and limitations under the License.
|
|
17
|
+
*/ class $064492b79924894c$export$cb6da89c6af1a8ec {
|
|
18
|
+
/**
|
|
19
|
+
* Returns a copy of this size.
|
|
20
|
+
*/ copy() {
|
|
21
|
+
return new $064492b79924894c$export$cb6da89c6af1a8ec(this.width, this.height);
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Returns whether this size is equal to another one.
|
|
25
|
+
*/ equals(other) {
|
|
26
|
+
return this.width === other.width && this.height === other.height;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* The total area of the Size.
|
|
30
|
+
*/ get area() {
|
|
31
|
+
return this.width * this.height;
|
|
32
|
+
}
|
|
33
|
+
constructor(width = 0, height = 0){
|
|
34
|
+
this.width = width;
|
|
35
|
+
this.height = height;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
//# sourceMappingURL=Size.main.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":";;;;;;AAAA;;;;;;;;;;CAUC,GAEM,MAAM;IASX;;GAEC,GACD,OAAa;QACX,OAAO,IAAI,0CAAK,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,MAAM;IACzC;IAEA;;GAEC,GACD,OAAO,KAAW,EAAW;QAC3B,OAAO,IAAI,CAAC,KAAK,KAAK,MAAM,KAAK,IAC1B,IAAI,CAAC,MAAM,KAAK,MAAM,MAAM;IACrC;IAEA;;GAEC,GACD,IAAI,OAAO;QACT,OAAO,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,MAAM;IACjC;IAzBA,YAAY,QAAQ,CAAC,EAAE,SAAS,CAAC,CAAE;QACjC,IAAI,CAAC,KAAK,GAAG;QACb,IAAI,CAAC,MAAM,GAAG;IAChB;AAuBF","sources":["packages/@react-stately/virtualizer/src/Size.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nexport class Size {\n width: number;\n height: number;\n\n constructor(width = 0, height = 0) {\n this.width = width;\n this.height = height;\n }\n\n /**\n * Returns a copy of this size.\n */\n copy(): Size {\n return new Size(this.width, this.height);\n }\n\n /**\n * Returns whether this size is equal to another one.\n */\n equals(other: Size): boolean {\n return this.width === other.width\n && this.height === other.height;\n }\n\n /**\n * The total area of the Size.\n */\n get area() {\n return this.width * this.height;\n }\n}\n"],"names":[],"version":3,"file":"Size.main.js.map"}
|
package/dist/Size.mjs
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2020 Adobe. All rights reserved.
|
|
3
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
*
|
|
7
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
8
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
9
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
|
+
* governing permissions and limitations under the License.
|
|
11
|
+
*/ class $ee1bfa90a957fb8a$export$cb6da89c6af1a8ec {
|
|
12
|
+
/**
|
|
13
|
+
* Returns a copy of this size.
|
|
14
|
+
*/ copy() {
|
|
15
|
+
return new $ee1bfa90a957fb8a$export$cb6da89c6af1a8ec(this.width, this.height);
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Returns whether this size is equal to another one.
|
|
19
|
+
*/ equals(other) {
|
|
20
|
+
return this.width === other.width && this.height === other.height;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* The total area of the Size.
|
|
24
|
+
*/ get area() {
|
|
25
|
+
return this.width * this.height;
|
|
26
|
+
}
|
|
27
|
+
constructor(width = 0, height = 0){
|
|
28
|
+
this.width = width;
|
|
29
|
+
this.height = height;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
export {$ee1bfa90a957fb8a$export$cb6da89c6af1a8ec as Size};
|
|
35
|
+
//# sourceMappingURL=Size.mjs.map
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2020 Adobe. All rights reserved.
|
|
3
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
*
|
|
7
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
8
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
9
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
|
+
* governing permissions and limitations under the License.
|
|
11
|
+
*/ class $ee1bfa90a957fb8a$export$cb6da89c6af1a8ec {
|
|
12
|
+
/**
|
|
13
|
+
* Returns a copy of this size.
|
|
14
|
+
*/ copy() {
|
|
15
|
+
return new $ee1bfa90a957fb8a$export$cb6da89c6af1a8ec(this.width, this.height);
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Returns whether this size is equal to another one.
|
|
19
|
+
*/ equals(other) {
|
|
20
|
+
return this.width === other.width && this.height === other.height;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* The total area of the Size.
|
|
24
|
+
*/ get area() {
|
|
25
|
+
return this.width * this.height;
|
|
26
|
+
}
|
|
27
|
+
constructor(width = 0, height = 0){
|
|
28
|
+
this.width = width;
|
|
29
|
+
this.height = height;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
export {$ee1bfa90a957fb8a$export$cb6da89c6af1a8ec as Size};
|
|
35
|
+
//# sourceMappingURL=Size.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":"AAAA;;;;;;;;;;CAUC,GAEM,MAAM;IASX;;GAEC,GACD,OAAa;QACX,OAAO,IAAI,0CAAK,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,MAAM;IACzC;IAEA;;GAEC,GACD,OAAO,KAAW,EAAW;QAC3B,OAAO,IAAI,CAAC,KAAK,KAAK,MAAM,KAAK,IAC1B,IAAI,CAAC,MAAM,KAAK,MAAM,MAAM;IACrC;IAEA;;GAEC,GACD,IAAI,OAAO;QACT,OAAO,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,MAAM;IACjC;IAzBA,YAAY,QAAQ,CAAC,EAAE,SAAS,CAAC,CAAE;QACjC,IAAI,CAAC,KAAK,GAAG;QACb,IAAI,CAAC,MAAM,GAAG;IAChB;AAuBF","sources":["packages/@react-stately/virtualizer/src/Size.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nexport class Size {\n width: number;\n height: number;\n\n constructor(width = 0, height = 0) {\n this.width = width;\n this.height = height;\n }\n\n /**\n * Returns a copy of this size.\n */\n copy(): Size {\n return new Size(this.width, this.height);\n }\n\n /**\n * Returns whether this size is equal to another one.\n */\n equals(other: Size): boolean {\n return this.width === other.width\n && this.height === other.height;\n }\n\n /**\n * The total area of the Size.\n */\n get area() {\n return this.width * this.height;\n }\n}\n"],"names":[],"version":3,"file":"Size.module.js.map"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
|
|
2
|
+
function $parcel$export(e, n, v, s) {
|
|
3
|
+
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
$parcel$export(module.exports, "Transaction", () => $d288159e8347722a$export$febc5573c75cefb0);
|
|
7
|
+
/*
|
|
8
|
+
* Copyright 2020 Adobe. All rights reserved.
|
|
9
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
10
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
11
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
14
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
15
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
16
|
+
* governing permissions and limitations under the License.
|
|
17
|
+
*/ class $d288159e8347722a$export$febc5573c75cefb0 {
|
|
18
|
+
constructor(){
|
|
19
|
+
this.level = 0;
|
|
20
|
+
this.actions = [];
|
|
21
|
+
this.animated = true;
|
|
22
|
+
this.initialMap = new Map();
|
|
23
|
+
this.finalMap = new Map();
|
|
24
|
+
this.initialLayoutInfo = new Map();
|
|
25
|
+
this.finalLayoutInfo = new Map();
|
|
26
|
+
this.removed = new Map();
|
|
27
|
+
this.toRemove = new Map();
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
//# sourceMappingURL=Transaction.main.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":";;;;;;AAAA;;;;;;;;;;CAUC,GAOM,MAAM;;aACX,QAAQ;aACR,UAA0B,EAAE;aAC5B,WAAW;aACX,aAA4B,IAAI;aAChC,WAA0B,IAAI;aAC9B,oBAAmC,IAAI;aACvC,kBAAiC,IAAI;aACrC,UAAwC,IAAI;aAC5C,WAAyC,IAAI;;AAC/C","sources":["packages/@react-stately/virtualizer/src/Transaction.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {Key} from '@react-types/shared';\nimport {LayoutInfo} from './LayoutInfo';\nimport {ReusableView} from './ReusableView';\n\ntype LayoutInfoMap = Map<Key, LayoutInfo>;\nexport class Transaction<T extends object, V> {\n level = 0;\n actions: (() => void)[] = [];\n animated = true;\n initialMap: LayoutInfoMap = new Map();\n finalMap: LayoutInfoMap = new Map();\n initialLayoutInfo: LayoutInfoMap = new Map();\n finalLayoutInfo: LayoutInfoMap = new Map();\n removed: Map<Key, ReusableView<T, V>> = new Map();\n toRemove: Map<Key, ReusableView<T, V>> = new Map();\n}\n"],"names":[],"version":3,"file":"Transaction.main.js.map"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2020 Adobe. All rights reserved.
|
|
3
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
*
|
|
7
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
8
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
9
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
|
+
* governing permissions and limitations under the License.
|
|
11
|
+
*/ class $8e135e531d8dcb66$export$febc5573c75cefb0 {
|
|
12
|
+
constructor(){
|
|
13
|
+
this.level = 0;
|
|
14
|
+
this.actions = [];
|
|
15
|
+
this.animated = true;
|
|
16
|
+
this.initialMap = new Map();
|
|
17
|
+
this.finalMap = new Map();
|
|
18
|
+
this.initialLayoutInfo = new Map();
|
|
19
|
+
this.finalLayoutInfo = new Map();
|
|
20
|
+
this.removed = new Map();
|
|
21
|
+
this.toRemove = new Map();
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
export {$8e135e531d8dcb66$export$febc5573c75cefb0 as Transaction};
|
|
27
|
+
//# sourceMappingURL=Transaction.mjs.map
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2020 Adobe. All rights reserved.
|
|
3
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
*
|
|
7
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
8
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
9
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
|
+
* governing permissions and limitations under the License.
|
|
11
|
+
*/ class $8e135e531d8dcb66$export$febc5573c75cefb0 {
|
|
12
|
+
constructor(){
|
|
13
|
+
this.level = 0;
|
|
14
|
+
this.actions = [];
|
|
15
|
+
this.animated = true;
|
|
16
|
+
this.initialMap = new Map();
|
|
17
|
+
this.finalMap = new Map();
|
|
18
|
+
this.initialLayoutInfo = new Map();
|
|
19
|
+
this.finalLayoutInfo = new Map();
|
|
20
|
+
this.removed = new Map();
|
|
21
|
+
this.toRemove = new Map();
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
export {$8e135e531d8dcb66$export$febc5573c75cefb0 as Transaction};
|
|
27
|
+
//# sourceMappingURL=Transaction.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":"AAAA;;;;;;;;;;CAUC,GAOM,MAAM;;aACX,QAAQ;aACR,UAA0B,EAAE;aAC5B,WAAW;aACX,aAA4B,IAAI;aAChC,WAA0B,IAAI;aAC9B,oBAAmC,IAAI;aACvC,kBAAiC,IAAI;aACrC,UAAwC,IAAI;aAC5C,WAAyC,IAAI;;AAC/C","sources":["packages/@react-stately/virtualizer/src/Transaction.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {Key} from '@react-types/shared';\nimport {LayoutInfo} from './LayoutInfo';\nimport {ReusableView} from './ReusableView';\n\ntype LayoutInfoMap = Map<Key, LayoutInfo>;\nexport class Transaction<T extends object, V> {\n level = 0;\n actions: (() => void)[] = [];\n animated = true;\n initialMap: LayoutInfoMap = new Map();\n finalMap: LayoutInfoMap = new Map();\n initialLayoutInfo: LayoutInfoMap = new Map();\n finalLayoutInfo: LayoutInfoMap = new Map();\n removed: Map<Key, ReusableView<T, V>> = new Map();\n toRemove: Map<Key, ReusableView<T, V>> = new Map();\n}\n"],"names":[],"version":3,"file":"Transaction.module.js.map"}
|