@react-spectrum/card 3.0.0-alpha.3 → 3.0.0-alpha.31
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/ar-AE.main.js +7 -0
- package/dist/ar-AE.main.js.map +1 -0
- package/dist/ar-AE.mjs +9 -0
- package/dist/ar-AE.module.js +9 -0
- package/dist/ar-AE.module.js.map +1 -0
- package/dist/bg-BG.main.js +7 -0
- package/dist/bg-BG.main.js.map +1 -0
- package/dist/bg-BG.mjs +9 -0
- package/dist/bg-BG.module.js +9 -0
- package/dist/bg-BG.module.js.map +1 -0
- package/dist/cs-CZ.main.js +7 -0
- package/dist/cs-CZ.main.js.map +1 -0
- package/dist/cs-CZ.mjs +9 -0
- package/dist/cs-CZ.module.js +9 -0
- package/dist/cs-CZ.module.js.map +1 -0
- package/dist/da-DK.main.js +7 -0
- package/dist/da-DK.main.js.map +1 -0
- package/dist/da-DK.mjs +9 -0
- package/dist/da-DK.module.js +9 -0
- package/dist/da-DK.module.js.map +1 -0
- package/dist/de-DE.main.js +7 -0
- package/dist/de-DE.main.js.map +1 -0
- package/dist/de-DE.mjs +9 -0
- package/dist/de-DE.module.js +9 -0
- package/dist/de-DE.module.js.map +1 -0
- package/dist/el-GR.main.js +7 -0
- package/dist/el-GR.main.js.map +1 -0
- package/dist/el-GR.mjs +9 -0
- package/dist/el-GR.module.js +9 -0
- package/dist/el-GR.module.js.map +1 -0
- package/dist/en-US.main.js +7 -0
- package/dist/en-US.main.js.map +1 -0
- package/dist/en-US.mjs +9 -0
- package/dist/en-US.module.js +9 -0
- package/dist/en-US.module.js.map +1 -0
- package/dist/es-ES.main.js +7 -0
- package/dist/es-ES.main.js.map +1 -0
- package/dist/es-ES.mjs +9 -0
- package/dist/es-ES.module.js +9 -0
- package/dist/es-ES.module.js.map +1 -0
- package/dist/et-EE.main.js +7 -0
- package/dist/et-EE.main.js.map +1 -0
- package/dist/et-EE.mjs +9 -0
- package/dist/et-EE.module.js +9 -0
- package/dist/et-EE.module.js.map +1 -0
- package/dist/fi-FI.main.js +7 -0
- package/dist/fi-FI.main.js.map +1 -0
- package/dist/fi-FI.mjs +9 -0
- package/dist/fi-FI.module.js +9 -0
- package/dist/fi-FI.module.js.map +1 -0
- package/dist/fr-FR.main.js +7 -0
- package/dist/fr-FR.main.js.map +1 -0
- package/dist/fr-FR.mjs +9 -0
- package/dist/fr-FR.module.js +9 -0
- package/dist/fr-FR.module.js.map +1 -0
- package/dist/he-IL.main.js +7 -0
- package/dist/he-IL.main.js.map +1 -0
- package/dist/he-IL.mjs +9 -0
- package/dist/he-IL.module.js +9 -0
- package/dist/he-IL.module.js.map +1 -0
- package/dist/hr-HR.main.js +7 -0
- package/dist/hr-HR.main.js.map +1 -0
- package/dist/hr-HR.mjs +9 -0
- package/dist/hr-HR.module.js +9 -0
- package/dist/hr-HR.module.js.map +1 -0
- package/dist/hu-HU.main.js +7 -0
- package/dist/hu-HU.main.js.map +1 -0
- package/dist/hu-HU.mjs +9 -0
- package/dist/hu-HU.module.js +9 -0
- package/dist/hu-HU.module.js.map +1 -0
- package/dist/import.mjs +1479 -0
- package/dist/it-IT.main.js +7 -0
- package/dist/it-IT.main.js.map +1 -0
- package/dist/it-IT.mjs +9 -0
- package/dist/it-IT.module.js +9 -0
- package/dist/it-IT.module.js.map +1 -0
- package/dist/ja-JP.main.js +7 -0
- package/dist/ja-JP.main.js.map +1 -0
- package/dist/ja-JP.mjs +9 -0
- package/dist/ja-JP.module.js +9 -0
- package/dist/ja-JP.module.js.map +1 -0
- package/dist/ko-KR.main.js +7 -0
- package/dist/ko-KR.main.js.map +1 -0
- package/dist/ko-KR.mjs +9 -0
- package/dist/ko-KR.module.js +9 -0
- package/dist/ko-KR.module.js.map +1 -0
- package/dist/lt-LT.main.js +7 -0
- package/dist/lt-LT.main.js.map +1 -0
- package/dist/lt-LT.mjs +9 -0
- package/dist/lt-LT.module.js +9 -0
- package/dist/lt-LT.module.js.map +1 -0
- package/dist/lv-LV.main.js +7 -0
- package/dist/lv-LV.main.js.map +1 -0
- package/dist/lv-LV.mjs +9 -0
- package/dist/lv-LV.module.js +9 -0
- package/dist/lv-LV.module.js.map +1 -0
- package/dist/main.css +1802 -1
- package/dist/main.css.map +1 -0
- package/dist/main.js +636 -613
- package/dist/main.js.map +1 -1
- package/dist/module.js +630 -592
- package/dist/module.js.map +1 -1
- package/dist/nb-NO.main.js +7 -0
- package/dist/nb-NO.main.js.map +1 -0
- package/dist/nb-NO.mjs +9 -0
- package/dist/nb-NO.module.js +9 -0
- package/dist/nb-NO.module.js.map +1 -0
- package/dist/nl-NL.main.js +7 -0
- package/dist/nl-NL.main.js.map +1 -0
- package/dist/nl-NL.mjs +9 -0
- package/dist/nl-NL.module.js +9 -0
- package/dist/nl-NL.module.js.map +1 -0
- package/dist/pl-PL.main.js +7 -0
- package/dist/pl-PL.main.js.map +1 -0
- package/dist/pl-PL.mjs +9 -0
- package/dist/pl-PL.module.js +9 -0
- package/dist/pl-PL.module.js.map +1 -0
- package/dist/pt-BR.main.js +7 -0
- package/dist/pt-BR.main.js.map +1 -0
- package/dist/pt-BR.mjs +9 -0
- package/dist/pt-BR.module.js +9 -0
- package/dist/pt-BR.module.js.map +1 -0
- package/dist/pt-PT.main.js +7 -0
- package/dist/pt-PT.main.js.map +1 -0
- package/dist/pt-PT.mjs +9 -0
- package/dist/pt-PT.module.js +9 -0
- package/dist/pt-PT.module.js.map +1 -0
- package/dist/ro-RO.main.js +7 -0
- package/dist/ro-RO.main.js.map +1 -0
- package/dist/ro-RO.mjs +9 -0
- package/dist/ro-RO.module.js +9 -0
- package/dist/ro-RO.module.js.map +1 -0
- package/dist/ru-RU.main.js +7 -0
- package/dist/ru-RU.main.js.map +1 -0
- package/dist/ru-RU.mjs +9 -0
- package/dist/ru-RU.module.js +9 -0
- package/dist/ru-RU.module.js.map +1 -0
- package/dist/sk-SK.main.js +7 -0
- package/dist/sk-SK.main.js.map +1 -0
- package/dist/sk-SK.mjs +9 -0
- package/dist/sk-SK.module.js +9 -0
- package/dist/sk-SK.module.js.map +1 -0
- package/dist/sl-SI.main.js +7 -0
- package/dist/sl-SI.main.js.map +1 -0
- package/dist/sl-SI.mjs +9 -0
- package/dist/sl-SI.module.js +9 -0
- package/dist/sl-SI.module.js.map +1 -0
- package/dist/sr-SP.main.js +7 -0
- package/dist/sr-SP.main.js.map +1 -0
- package/dist/sr-SP.mjs +9 -0
- package/dist/sr-SP.module.js +9 -0
- package/dist/sr-SP.module.js.map +1 -0
- package/dist/sv-SE.main.js +7 -0
- package/dist/sv-SE.main.js.map +1 -0
- package/dist/sv-SE.mjs +9 -0
- package/dist/sv-SE.module.js +9 -0
- package/dist/sv-SE.module.js.map +1 -0
- package/dist/tr-TR.main.js +7 -0
- package/dist/tr-TR.main.js.map +1 -0
- package/dist/tr-TR.mjs +9 -0
- package/dist/tr-TR.module.js +9 -0
- package/dist/tr-TR.module.js.map +1 -0
- package/dist/types.d.ts +24 -23
- package/dist/types.d.ts.map +1 -1
- package/dist/uk-UA.main.js +7 -0
- package/dist/uk-UA.main.js.map +1 -0
- package/dist/uk-UA.mjs +9 -0
- package/dist/uk-UA.module.js +9 -0
- package/dist/uk-UA.module.js.map +1 -0
- package/dist/zh-CN.main.js +7 -0
- package/dist/zh-CN.main.js.map +1 -0
- package/dist/zh-CN.mjs +9 -0
- package/dist/zh-CN.module.js +9 -0
- package/dist/zh-CN.module.js.map +1 -0
- package/dist/zh-TW.main.js +7 -0
- package/dist/zh-TW.main.js.map +1 -0
- package/dist/zh-TW.mjs +9 -0
- package/dist/zh-TW.module.js +9 -0
- package/dist/zh-TW.module.js.map +1 -0
- package/package.json +26 -23
- package/src/BaseLayout.tsx +13 -13
- package/src/CardBase.tsx +2 -2
- package/src/CardView.tsx +26 -8
- package/src/GalleryLayout.tsx +1 -0
- package/src/GridLayout.tsx +6 -4
- package/src/WaterfallLayout.tsx +6 -4
- package/src/index.ts +10 -5
package/dist/main.js
CHANGED
|
@@ -1,180 +1,267 @@
|
|
|
1
1
|
require("./main.css");
|
|
2
|
-
var $
|
|
3
|
-
var $
|
|
4
|
-
var $
|
|
5
|
-
var $
|
|
6
|
-
var $
|
|
7
|
-
var $
|
|
8
|
-
var $
|
|
9
|
-
var $
|
|
10
|
-
var $
|
|
11
|
-
var $
|
|
12
|
-
var $
|
|
13
|
-
var $
|
|
14
|
-
var $
|
|
15
|
-
var $
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
2
|
+
var $b0d49dbc72f937a2$exports = require("./ar-AE.main.js");
|
|
3
|
+
var $ce0dd82398fba411$exports = require("./bg-BG.main.js");
|
|
4
|
+
var $1086444b40892e5d$exports = require("./cs-CZ.main.js");
|
|
5
|
+
var $26f9bd87c0446842$exports = require("./da-DK.main.js");
|
|
6
|
+
var $5922ace8d8eedc34$exports = require("./de-DE.main.js");
|
|
7
|
+
var $0dff680a5aaa08a6$exports = require("./el-GR.main.js");
|
|
8
|
+
var $40f72ebe96160fe5$exports = require("./en-US.main.js");
|
|
9
|
+
var $fd3d037364cca31d$exports = require("./es-ES.main.js");
|
|
10
|
+
var $aeb59a17c296301b$exports = require("./et-EE.main.js");
|
|
11
|
+
var $8725562d6e87d608$exports = require("./fi-FI.main.js");
|
|
12
|
+
var $5b8a7cd61bd67f0d$exports = require("./fr-FR.main.js");
|
|
13
|
+
var $904fdf1c66b8e1ae$exports = require("./he-IL.main.js");
|
|
14
|
+
var $e321e496e49645f3$exports = require("./hr-HR.main.js");
|
|
15
|
+
var $5fb9f79f322fc149$exports = require("./hu-HU.main.js");
|
|
16
|
+
var $87d8922713b63bdb$exports = require("./it-IT.main.js");
|
|
17
|
+
var $57201e032f548603$exports = require("./ja-JP.main.js");
|
|
18
|
+
var $74aa6884e1ef4030$exports = require("./ko-KR.main.js");
|
|
19
|
+
var $50cefda6a03c058b$exports = require("./lt-LT.main.js");
|
|
20
|
+
var $3d08f75b6bbe5354$exports = require("./lv-LV.main.js");
|
|
21
|
+
var $c59f7b2f9755472b$exports = require("./nb-NO.main.js");
|
|
22
|
+
var $d81bf728da4b1c33$exports = require("./nl-NL.main.js");
|
|
23
|
+
var $f323a42ea1486c2f$exports = require("./pl-PL.main.js");
|
|
24
|
+
var $2b2937248d390105$exports = require("./pt-BR.main.js");
|
|
25
|
+
var $156cd72030936350$exports = require("./pt-PT.main.js");
|
|
26
|
+
var $5964cf64325251a3$exports = require("./ro-RO.main.js");
|
|
27
|
+
var $71b3c908be47dc7e$exports = require("./ru-RU.main.js");
|
|
28
|
+
var $815155759d865560$exports = require("./sk-SK.main.js");
|
|
29
|
+
var $d5deb2faae807da5$exports = require("./sl-SI.main.js");
|
|
30
|
+
var $42e52cb34b81b4af$exports = require("./sr-SP.main.js");
|
|
31
|
+
var $f278e5fd270ba60f$exports = require("./sv-SE.main.js");
|
|
32
|
+
var $523e0ad61eab5c5d$exports = require("./tr-TR.main.js");
|
|
33
|
+
var $a58cff5745fe89a6$exports = require("./uk-UA.main.js");
|
|
34
|
+
var $2c1c50c48e046fcb$exports = require("./zh-CN.main.js");
|
|
35
|
+
var $d20ec5c21f83badd$exports = require("./zh-TW.main.js");
|
|
36
|
+
var $jpY3B$reactspectrumutils = require("@react-spectrum/utils");
|
|
37
|
+
var $jpY3B$reactstatelygrid = require("@react-stately/grid");
|
|
38
|
+
var $jpY3B$reactariautils = require("@react-aria/utils");
|
|
39
|
+
var $jpY3B$reactspectrumprogress = require("@react-spectrum/progress");
|
|
40
|
+
var $jpY3B$react = require("react");
|
|
41
|
+
var $jpY3B$reactariai18n = require("@react-aria/i18n");
|
|
42
|
+
var $jpY3B$reactariagrid = require("@react-aria/grid");
|
|
43
|
+
var $jpY3B$reactstatelylist = require("@react-stately/list");
|
|
44
|
+
var $jpY3B$reactspectrumprovider = require("@react-spectrum/provider");
|
|
45
|
+
var $jpY3B$reactariavirtualizer = require("@react-aria/virtualizer");
|
|
46
|
+
var $jpY3B$reactspectrumcheckbox = require("@react-spectrum/checkbox");
|
|
47
|
+
var $jpY3B$reactariafocus = require("@react-aria/focus");
|
|
48
|
+
var $jpY3B$reactariainteractions = require("@react-aria/interactions");
|
|
49
|
+
var $jpY3B$reactstatelyvirtualizer = require("@react-stately/virtualizer");
|
|
50
|
+
var $jpY3B$reactstatelycollections = require("@react-stately/collections");
|
|
22
51
|
|
|
23
|
-
Object.defineProperty(dest, key, {
|
|
24
|
-
enumerable: true,
|
|
25
|
-
get: function get() {
|
|
26
|
-
return source[key];
|
|
27
|
-
}
|
|
28
|
-
});
|
|
29
|
-
});
|
|
30
52
|
|
|
31
|
-
|
|
53
|
+
function $parcel$export(e, n, v, s) {
|
|
54
|
+
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
32
55
|
}
|
|
56
|
+
|
|
33
57
|
function $parcel$interopDefault(a) {
|
|
34
58
|
return a && a.__esModule ? a.default : a;
|
|
35
59
|
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
$parcel$export(
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
var $
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
$
|
|
105
|
-
$
|
|
106
|
-
$
|
|
107
|
-
$
|
|
108
|
-
$
|
|
109
|
-
$
|
|
110
|
-
$
|
|
111
|
-
$
|
|
112
|
-
$
|
|
113
|
-
$
|
|
114
|
-
$
|
|
115
|
-
$
|
|
116
|
-
$
|
|
117
|
-
$
|
|
118
|
-
$
|
|
119
|
-
$
|
|
120
|
-
$
|
|
121
|
-
$
|
|
122
|
-
$
|
|
123
|
-
$
|
|
124
|
-
$
|
|
125
|
-
$
|
|
126
|
-
$
|
|
127
|
-
$
|
|
128
|
-
$
|
|
129
|
-
$
|
|
130
|
-
$
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
60
|
+
|
|
61
|
+
$parcel$export(module.exports, "CardView", () => $514a55f6d91f25ef$export$7e52c821f7b6f422);
|
|
62
|
+
$parcel$export(module.exports, "GalleryLayout", () => $8019a3d2c7d098ea$export$8e52095834484b61);
|
|
63
|
+
$parcel$export(module.exports, "GridLayout", () => $71b727f94b595b1a$export$7d2b12578154a735);
|
|
64
|
+
$parcel$export(module.exports, "WaterfallLayout", () => $632abf8fbf0ad57b$export$e9f7cda058ba8df8);
|
|
65
|
+
$parcel$export(module.exports, "Card", () => $6b630ac4b78ba7f3$export$60332b2344f7fe41);
|
|
66
|
+
/*
|
|
67
|
+
* Copyright 2021 Adobe. All rights reserved.
|
|
68
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
69
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
70
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
71
|
+
*
|
|
72
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
73
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
74
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
75
|
+
* governing permissions and limitations under the License.
|
|
76
|
+
*/ /// <reference types="css-module-types" />
|
|
77
|
+
/*
|
|
78
|
+
* Copyright 2021 Adobe. All rights reserved.
|
|
79
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
80
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
81
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
82
|
+
*
|
|
83
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
84
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
85
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
86
|
+
* governing permissions and limitations under the License.
|
|
87
|
+
*/ /*
|
|
88
|
+
* Copyright 2021 Adobe. All rights reserved.
|
|
89
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
90
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
91
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
92
|
+
*
|
|
93
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
94
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
95
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
96
|
+
* governing permissions and limitations under the License.
|
|
97
|
+
*/
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
var $71570f0038472fa2$exports = {};
|
|
103
|
+
|
|
104
|
+
$parcel$export($71570f0038472fa2$exports, "avatar", () => $71570f0038472fa2$export$345c5736c8054f22, (v) => $71570f0038472fa2$export$345c5736c8054f22 = v);
|
|
105
|
+
$parcel$export($71570f0038472fa2$exports, "content", () => $71570f0038472fa2$export$a7db06668cad9adb, (v) => $71570f0038472fa2$export$a7db06668cad9adb = v);
|
|
106
|
+
$parcel$export($71570f0038472fa2$exports, "detail", () => $71570f0038472fa2$export$13a2d28b88853ef2, (v) => $71570f0038472fa2$export$13a2d28b88853ef2 = v);
|
|
107
|
+
$parcel$export($71570f0038472fa2$exports, "focus-ring", () => $71570f0038472fa2$export$f39a09f249340e2a, (v) => $71570f0038472fa2$export$f39a09f249340e2a = v);
|
|
108
|
+
$parcel$export($71570f0038472fa2$exports, "i18nFontFamily", () => $71570f0038472fa2$export$8c4ee2c50c22c514, (v) => $71570f0038472fa2$export$8c4ee2c50c22c514 = v);
|
|
109
|
+
$parcel$export($71570f0038472fa2$exports, "is-drop-target", () => $71570f0038472fa2$export$d8467f38d2d00bd0, (v) => $71570f0038472fa2$export$d8467f38d2d00bd0 = v);
|
|
110
|
+
$parcel$export($71570f0038472fa2$exports, "is-focused", () => $71570f0038472fa2$export$e7dc768d35940237, (v) => $71570f0038472fa2$export$e7dc768d35940237 = v);
|
|
111
|
+
$parcel$export($71570f0038472fa2$exports, "is-hovered", () => $71570f0038472fa2$export$b8813cd5d7824ce7, (v) => $71570f0038472fa2$export$b8813cd5d7824ce7 = v);
|
|
112
|
+
$parcel$export($71570f0038472fa2$exports, "is-selected", () => $71570f0038472fa2$export$1e0fb04f31d3c22a, (v) => $71570f0038472fa2$export$1e0fb04f31d3c22a = v);
|
|
113
|
+
$parcel$export($71570f0038472fa2$exports, "preview", () => $71570f0038472fa2$export$48c2d0f2f545ac27, (v) => $71570f0038472fa2$export$48c2d0f2f545ac27 = v);
|
|
114
|
+
$parcel$export($71570f0038472fa2$exports, "spectrum-Card", () => $71570f0038472fa2$export$4e5e9f191b1edb8, (v) => $71570f0038472fa2$export$4e5e9f191b1edb8 = v);
|
|
115
|
+
$parcel$export($71570f0038472fa2$exports, "spectrum-Card--default", () => $71570f0038472fa2$export$c7a022df9e10a238, (v) => $71570f0038472fa2$export$c7a022df9e10a238 = v);
|
|
116
|
+
$parcel$export($71570f0038472fa2$exports, "spectrum-Card--gallery", () => $71570f0038472fa2$export$ccd8ffc36bd10cc, (v) => $71570f0038472fa2$export$ccd8ffc36bd10cc = v);
|
|
117
|
+
$parcel$export($71570f0038472fa2$exports, "spectrum-Card--grid", () => $71570f0038472fa2$export$59739ab951d2dcc7, (v) => $71570f0038472fa2$export$59739ab951d2dcc7 = v);
|
|
118
|
+
$parcel$export($71570f0038472fa2$exports, "spectrum-Card--horizontal", () => $71570f0038472fa2$export$1c52334407225704, (v) => $71570f0038472fa2$export$1c52334407225704 = v);
|
|
119
|
+
$parcel$export($71570f0038472fa2$exports, "spectrum-Card--isQuiet", () => $71570f0038472fa2$export$92ad04b5ac9296ea, (v) => $71570f0038472fa2$export$92ad04b5ac9296ea = v);
|
|
120
|
+
$parcel$export($71570f0038472fa2$exports, "spectrum-Card--noLayout", () => $71570f0038472fa2$export$a03d836e6ef3e749, (v) => $71570f0038472fa2$export$a03d836e6ef3e749 = v);
|
|
121
|
+
$parcel$export($71570f0038472fa2$exports, "spectrum-Card--noPreview", () => $71570f0038472fa2$export$b77922bc0320c9e4, (v) => $71570f0038472fa2$export$b77922bc0320c9e4 = v);
|
|
122
|
+
$parcel$export($71570f0038472fa2$exports, "spectrum-Card--waterfall", () => $71570f0038472fa2$export$d9c7209e0e4f7e4d, (v) => $71570f0038472fa2$export$d9c7209e0e4f7e4d = v);
|
|
123
|
+
$parcel$export($71570f0038472fa2$exports, "spectrum-Card-avatar", () => $71570f0038472fa2$export$159930c59efb6273, (v) => $71570f0038472fa2$export$159930c59efb6273 = v);
|
|
124
|
+
$parcel$export($71570f0038472fa2$exports, "spectrum-Card-checkbox", () => $71570f0038472fa2$export$842da5d48b8f6db2, (v) => $71570f0038472fa2$export$842da5d48b8f6db2 = v);
|
|
125
|
+
$parcel$export($71570f0038472fa2$exports, "spectrum-Card-checkboxWrapper", () => $71570f0038472fa2$export$33977546b63e0df9, (v) => $71570f0038472fa2$export$33977546b63e0df9 = v);
|
|
126
|
+
$parcel$export($71570f0038472fa2$exports, "spectrum-Card-content", () => $71570f0038472fa2$export$d946625b97e8aa17, (v) => $71570f0038472fa2$export$d946625b97e8aa17 = v);
|
|
127
|
+
$parcel$export($71570f0038472fa2$exports, "spectrum-Card-decoration", () => $71570f0038472fa2$export$48252dc130b62514, (v) => $71570f0038472fa2$export$48252dc130b62514 = v);
|
|
128
|
+
$parcel$export($71570f0038472fa2$exports, "spectrum-Card-detail", () => $71570f0038472fa2$export$16715af38fbd9819, (v) => $71570f0038472fa2$export$16715af38fbd9819 = v);
|
|
129
|
+
$parcel$export($71570f0038472fa2$exports, "spectrum-Card-grid", () => $71570f0038472fa2$export$b3dd760d2dfde29e, (v) => $71570f0038472fa2$export$b3dd760d2dfde29e = v);
|
|
130
|
+
$parcel$export($71570f0038472fa2$exports, "spectrum-Card-heading", () => $71570f0038472fa2$export$92758a4a0e8d19e4, (v) => $71570f0038472fa2$export$92758a4a0e8d19e4 = v);
|
|
131
|
+
$parcel$export($71570f0038472fa2$exports, "spectrum-Card-illustration", () => $71570f0038472fa2$export$13dd3510ae7a8399, (v) => $71570f0038472fa2$export$13dd3510ae7a8399 = v);
|
|
132
|
+
$parcel$export($71570f0038472fa2$exports, "spectrum-Card-image", () => $71570f0038472fa2$export$8d5fea71dc66db80, (v) => $71570f0038472fa2$export$8d5fea71dc66db80 = v);
|
|
133
|
+
$parcel$export($71570f0038472fa2$exports, "spectrum-CardView", () => $71570f0038472fa2$export$2f34e9e3e0b89d95, (v) => $71570f0038472fa2$export$2f34e9e3e0b89d95 = v);
|
|
134
|
+
$parcel$export($71570f0038472fa2$exports, "spectrum-CardView-centeredWrapper", () => $71570f0038472fa2$export$7fc89689fcfab196, (v) => $71570f0038472fa2$export$7fc89689fcfab196 = v);
|
|
135
|
+
$parcel$export($71570f0038472fa2$exports, "spectrum-CardView-row", () => $71570f0038472fa2$export$4746ac09daa215ae, (v) => $71570f0038472fa2$export$4746ac09daa215ae = v);
|
|
136
|
+
$parcel$export($71570f0038472fa2$exports, "spectrum-FocusRing-ring", () => $71570f0038472fa2$export$4109102f950813a6, (v) => $71570f0038472fa2$export$4109102f950813a6 = v);
|
|
137
|
+
$parcel$export($71570f0038472fa2$exports, "spectrum-FocusRing", () => $71570f0038472fa2$export$24c7f46a6e3605dd, (v) => $71570f0038472fa2$export$24c7f46a6e3605dd = v);
|
|
138
|
+
$parcel$export($71570f0038472fa2$exports, "spectrum-FocusRing--quiet", () => $71570f0038472fa2$export$2927016961429360, (v) => $71570f0038472fa2$export$2927016961429360 = v);
|
|
139
|
+
$parcel$export($71570f0038472fa2$exports, "title", () => $71570f0038472fa2$export$fb184b623420d9be, (v) => $71570f0038472fa2$export$fb184b623420d9be = v);
|
|
140
|
+
var $71570f0038472fa2$export$345c5736c8054f22;
|
|
141
|
+
var $71570f0038472fa2$export$a7db06668cad9adb;
|
|
142
|
+
var $71570f0038472fa2$export$13a2d28b88853ef2;
|
|
143
|
+
var $71570f0038472fa2$export$f39a09f249340e2a;
|
|
144
|
+
var $71570f0038472fa2$export$8c4ee2c50c22c514;
|
|
145
|
+
var $71570f0038472fa2$export$d8467f38d2d00bd0;
|
|
146
|
+
var $71570f0038472fa2$export$e7dc768d35940237;
|
|
147
|
+
var $71570f0038472fa2$export$b8813cd5d7824ce7;
|
|
148
|
+
var $71570f0038472fa2$export$1e0fb04f31d3c22a;
|
|
149
|
+
var $71570f0038472fa2$export$48c2d0f2f545ac27;
|
|
150
|
+
var $71570f0038472fa2$export$4e5e9f191b1edb8;
|
|
151
|
+
var $71570f0038472fa2$export$c7a022df9e10a238;
|
|
152
|
+
var $71570f0038472fa2$export$ccd8ffc36bd10cc;
|
|
153
|
+
var $71570f0038472fa2$export$59739ab951d2dcc7;
|
|
154
|
+
var $71570f0038472fa2$export$1c52334407225704;
|
|
155
|
+
var $71570f0038472fa2$export$92ad04b5ac9296ea;
|
|
156
|
+
var $71570f0038472fa2$export$a03d836e6ef3e749;
|
|
157
|
+
var $71570f0038472fa2$export$b77922bc0320c9e4;
|
|
158
|
+
var $71570f0038472fa2$export$d9c7209e0e4f7e4d;
|
|
159
|
+
var $71570f0038472fa2$export$159930c59efb6273;
|
|
160
|
+
var $71570f0038472fa2$export$842da5d48b8f6db2;
|
|
161
|
+
var $71570f0038472fa2$export$33977546b63e0df9;
|
|
162
|
+
var $71570f0038472fa2$export$d946625b97e8aa17;
|
|
163
|
+
var $71570f0038472fa2$export$48252dc130b62514;
|
|
164
|
+
var $71570f0038472fa2$export$16715af38fbd9819;
|
|
165
|
+
var $71570f0038472fa2$export$b3dd760d2dfde29e;
|
|
166
|
+
var $71570f0038472fa2$export$92758a4a0e8d19e4;
|
|
167
|
+
var $71570f0038472fa2$export$13dd3510ae7a8399;
|
|
168
|
+
var $71570f0038472fa2$export$8d5fea71dc66db80;
|
|
169
|
+
var $71570f0038472fa2$export$2f34e9e3e0b89d95;
|
|
170
|
+
var $71570f0038472fa2$export$7fc89689fcfab196;
|
|
171
|
+
var $71570f0038472fa2$export$4746ac09daa215ae;
|
|
172
|
+
var $71570f0038472fa2$export$4109102f950813a6;
|
|
173
|
+
var $71570f0038472fa2$export$24c7f46a6e3605dd;
|
|
174
|
+
var $71570f0038472fa2$export$2927016961429360;
|
|
175
|
+
var $71570f0038472fa2$export$fb184b623420d9be;
|
|
176
|
+
$71570f0038472fa2$export$345c5736c8054f22 = `dqWSla_avatar`;
|
|
177
|
+
$71570f0038472fa2$export$a7db06668cad9adb = `dqWSla_content`;
|
|
178
|
+
$71570f0038472fa2$export$13a2d28b88853ef2 = `dqWSla_detail`;
|
|
179
|
+
$71570f0038472fa2$export$f39a09f249340e2a = `dqWSla_focus-ring`;
|
|
180
|
+
$71570f0038472fa2$export$8c4ee2c50c22c514 = `dqWSla_i18nFontFamily`;
|
|
181
|
+
$71570f0038472fa2$export$d8467f38d2d00bd0 = `dqWSla_is-drop-target`;
|
|
182
|
+
$71570f0038472fa2$export$e7dc768d35940237 = `dqWSla_is-focused`;
|
|
183
|
+
$71570f0038472fa2$export$b8813cd5d7824ce7 = `dqWSla_is-hovered`;
|
|
184
|
+
$71570f0038472fa2$export$1e0fb04f31d3c22a = `dqWSla_is-selected`;
|
|
185
|
+
$71570f0038472fa2$export$48c2d0f2f545ac27 = `dqWSla_preview`;
|
|
186
|
+
$71570f0038472fa2$export$4e5e9f191b1edb8 = `dqWSla_spectrum-Card`;
|
|
187
|
+
$71570f0038472fa2$export$c7a022df9e10a238 = `dqWSla_spectrum-Card--default`;
|
|
188
|
+
$71570f0038472fa2$export$ccd8ffc36bd10cc = `dqWSla_spectrum-Card--gallery`;
|
|
189
|
+
$71570f0038472fa2$export$59739ab951d2dcc7 = `dqWSla_spectrum-Card--grid`;
|
|
190
|
+
$71570f0038472fa2$export$1c52334407225704 = `dqWSla_spectrum-Card--horizontal`;
|
|
191
|
+
$71570f0038472fa2$export$92ad04b5ac9296ea = `dqWSla_spectrum-Card--isQuiet`;
|
|
192
|
+
$71570f0038472fa2$export$a03d836e6ef3e749 = `dqWSla_spectrum-Card--noLayout`;
|
|
193
|
+
$71570f0038472fa2$export$b77922bc0320c9e4 = `dqWSla_spectrum-Card--noPreview`;
|
|
194
|
+
$71570f0038472fa2$export$d9c7209e0e4f7e4d = `dqWSla_spectrum-Card--waterfall`;
|
|
195
|
+
$71570f0038472fa2$export$159930c59efb6273 = `dqWSla_spectrum-Card-avatar`;
|
|
196
|
+
$71570f0038472fa2$export$842da5d48b8f6db2 = `dqWSla_spectrum-Card-checkbox`;
|
|
197
|
+
$71570f0038472fa2$export$33977546b63e0df9 = `dqWSla_spectrum-Card-checkboxWrapper`;
|
|
198
|
+
$71570f0038472fa2$export$d946625b97e8aa17 = `dqWSla_spectrum-Card-content`;
|
|
199
|
+
$71570f0038472fa2$export$48252dc130b62514 = `dqWSla_spectrum-Card-decoration`;
|
|
200
|
+
$71570f0038472fa2$export$16715af38fbd9819 = `dqWSla_spectrum-Card-detail`;
|
|
201
|
+
$71570f0038472fa2$export$b3dd760d2dfde29e = `dqWSla_spectrum-Card-grid`;
|
|
202
|
+
$71570f0038472fa2$export$92758a4a0e8d19e4 = `dqWSla_spectrum-Card-heading`;
|
|
203
|
+
$71570f0038472fa2$export$13dd3510ae7a8399 = `dqWSla_spectrum-Card-illustration`;
|
|
204
|
+
$71570f0038472fa2$export$8d5fea71dc66db80 = `dqWSla_spectrum-Card-image`;
|
|
205
|
+
$71570f0038472fa2$export$2f34e9e3e0b89d95 = `dqWSla_spectrum-CardView`;
|
|
206
|
+
$71570f0038472fa2$export$7fc89689fcfab196 = `dqWSla_spectrum-CardView-centeredWrapper`;
|
|
207
|
+
$71570f0038472fa2$export$4746ac09daa215ae = `dqWSla_spectrum-CardView-row`;
|
|
208
|
+
$71570f0038472fa2$export$4109102f950813a6 = `dqWSla_spectrum-FocusRing-ring`;
|
|
209
|
+
$71570f0038472fa2$export$24c7f46a6e3605dd = `dqWSla_spectrum-FocusRing ${$71570f0038472fa2$export$4109102f950813a6}`;
|
|
210
|
+
$71570f0038472fa2$export$2927016961429360 = `dqWSla_spectrum-FocusRing--quiet`;
|
|
211
|
+
$71570f0038472fa2$export$fb184b623420d9be = `dqWSla_title`;
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
/*
|
|
215
|
+
* Copyright 2020 Adobe. All rights reserved.
|
|
216
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
217
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
218
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
219
|
+
*
|
|
220
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
221
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
222
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
223
|
+
* governing permissions and limitations under the License.
|
|
224
|
+
*/
|
|
225
|
+
const $e57ab98cef2f01a5$export$64992ac69f286e5c = /*#__PURE__*/ (0, ($parcel$interopDefault($jpY3B$react))).createContext(null);
|
|
226
|
+
function $e57ab98cef2f01a5$export$fea0b38586ec8f13() {
|
|
227
|
+
return (0, $jpY3B$react.useContext)($e57ab98cef2f01a5$export$64992ac69f286e5c);
|
|
137
228
|
}
|
|
138
229
|
|
|
139
230
|
|
|
140
231
|
|
|
141
232
|
|
|
142
|
-
function $
|
|
143
|
-
props = $
|
|
144
|
-
let context = $
|
|
145
|
-
|
|
146
|
-
let { state: state } = context;
|
|
233
|
+
function $7888205ff7de382f$var$CardBase(props, ref) {
|
|
234
|
+
props = (0, $jpY3B$reactspectrumprovider.useProviderProps)(props);
|
|
235
|
+
let context = (0, $e57ab98cef2f01a5$export$fea0b38586ec8f13)() || {}; // we can call again here, won't change from Card.tsx
|
|
236
|
+
let { state: state } = context;
|
|
147
237
|
let manager = state === null || state === void 0 ? void 0 : state.selectionManager;
|
|
148
|
-
let { isQuiet: isQuiet
|
|
149
|
-
} , item: item , layout: layout , children: children } = props;
|
|
238
|
+
let { isQuiet: isQuiet, orientation: orientation = "vertical", articleProps: articleProps = {}, item: item, layout: layout, children: children } = props;
|
|
150
239
|
let key = item === null || item === void 0 ? void 0 : item.key;
|
|
151
240
|
let isSelected = manager === null || manager === void 0 ? void 0 : manager.isSelected(key);
|
|
152
241
|
let isDisabled = state === null || state === void 0 ? void 0 : state.disabledKeys.has(key);
|
|
153
|
-
let onChange = ()=>
|
|
154
|
-
|
|
155
|
-
};
|
|
156
|
-
let
|
|
157
|
-
let
|
|
158
|
-
let
|
|
159
|
-
let gridRef = $jT0lq$react.useRef();
|
|
160
|
-
let checkboxRef = $jT0lq$react.useRef(null);
|
|
242
|
+
let onChange = ()=>manager === null || manager === void 0 ? void 0 : manager.select(key);
|
|
243
|
+
let { styleProps: styleProps } = (0, $jpY3B$reactspectrumutils.useStyleProps)(props);
|
|
244
|
+
let { cardProps: cardProps, titleProps: titleProps, contentProps: contentProps } = $7888205ff7de382f$var$useCard(props);
|
|
245
|
+
let domRef = (0, $jpY3B$reactspectrumutils.useDOMRef)(ref);
|
|
246
|
+
let gridRef = (0, $jpY3B$react.useRef)();
|
|
247
|
+
let checkboxRef = (0, $jpY3B$react.useRef)(null);
|
|
161
248
|
// cards are only interactive if there is a selection manager and it allows selection
|
|
162
|
-
let { hoverProps: hoverProps
|
|
163
|
-
isDisabled: manager === undefined || (manager === null || manager === void 0 ? void 0 : manager.selectionMode) ===
|
|
249
|
+
let { hoverProps: hoverProps, isHovered: isHovered } = (0, $jpY3B$reactariainteractions.useHover)({
|
|
250
|
+
isDisabled: manager === undefined || (manager === null || manager === void 0 ? void 0 : manager.selectionMode) === "none" || isDisabled
|
|
164
251
|
});
|
|
165
|
-
let [isFocused, setIsFocused] = $
|
|
166
|
-
let { focusWithinProps: focusWithinProps
|
|
252
|
+
let [isFocused, setIsFocused] = (0, $jpY3B$react.useState)(false);
|
|
253
|
+
let { focusWithinProps: focusWithinProps } = (0, $jpY3B$reactariainteractions.useFocusWithin)({
|
|
167
254
|
onFocusWithinChange: setIsFocused,
|
|
168
255
|
isDisabled: isDisabled
|
|
169
256
|
});
|
|
170
257
|
// ToDo: see css for comment about avatar under selector .spectrum-Card--noLayout.spectrum-Card--default
|
|
171
|
-
let hasPreviewImage = $
|
|
172
|
-
let hasPreviewIllustration = $
|
|
258
|
+
let hasPreviewImage = (0, $jpY3B$reactspectrumutils.useHasChild)(`.${(0, (/*@__PURE__*/$parcel$interopDefault($71570f0038472fa2$exports)))["spectrum-Card-image"]}`, gridRef);
|
|
259
|
+
let hasPreviewIllustration = (0, $jpY3B$reactspectrumutils.useHasChild)(`.${(0, (/*@__PURE__*/$parcel$interopDefault($71570f0038472fa2$exports)))["spectrum-Card-illustration"]}`, gridRef);
|
|
173
260
|
let hasPreview = hasPreviewImage || hasPreviewIllustration;
|
|
174
261
|
// this is for horizontal cards
|
|
175
|
-
let [height, setHeight] = $
|
|
176
|
-
let updateHeight = $
|
|
177
|
-
if (orientation !==
|
|
262
|
+
let [height, setHeight] = (0, $jpY3B$react.useState)(NaN);
|
|
263
|
+
let updateHeight = (0, $jpY3B$react.useCallback)(()=>{
|
|
264
|
+
if (orientation !== "horizontal") return;
|
|
178
265
|
let cardHeight = gridRef.current.getBoundingClientRect().height;
|
|
179
266
|
setHeight(cardHeight);
|
|
180
267
|
}, [
|
|
@@ -182,56 +269,55 @@ function $0f0c6c6691aad01b$var$CardBase(props, ref) {
|
|
|
182
269
|
gridRef,
|
|
183
270
|
setHeight
|
|
184
271
|
]);
|
|
185
|
-
$
|
|
272
|
+
(0, $jpY3B$reactariautils.useResizeObserver)({
|
|
186
273
|
ref: gridRef,
|
|
187
274
|
onResize: updateHeight
|
|
188
275
|
});
|
|
189
276
|
let aspectRatioEnforce = undefined;
|
|
190
|
-
if (orientation ===
|
|
277
|
+
if (orientation === "horizontal" && !isNaN(height)) aspectRatioEnforce = {
|
|
191
278
|
height: `${height}px`,
|
|
192
279
|
width: `${height}px`
|
|
193
280
|
};
|
|
194
|
-
let slots = $
|
|
281
|
+
let slots = (0, $jpY3B$react.useMemo)(()=>({
|
|
195
282
|
image: {
|
|
196
|
-
UNSAFE_className: $
|
|
197
|
-
objectFit: orientation ===
|
|
198
|
-
alt:
|
|
283
|
+
UNSAFE_className: (0, $jpY3B$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($71570f0038472fa2$exports))), "spectrum-Card-image"),
|
|
284
|
+
objectFit: orientation === "horizontal" ? "cover" : "contain",
|
|
285
|
+
alt: "",
|
|
199
286
|
...aspectRatioEnforce
|
|
200
287
|
},
|
|
201
288
|
illustration: {
|
|
202
|
-
UNSAFE_className: $
|
|
289
|
+
UNSAFE_className: (0, $jpY3B$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($71570f0038472fa2$exports))), "spectrum-Card-illustration"),
|
|
203
290
|
...aspectRatioEnforce
|
|
204
291
|
},
|
|
205
292
|
avatar: {
|
|
206
|
-
UNSAFE_className: $
|
|
207
|
-
size:
|
|
293
|
+
UNSAFE_className: (0, $jpY3B$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($71570f0038472fa2$exports))), "spectrum-Card-avatar"),
|
|
294
|
+
size: "avatar-size-400"
|
|
208
295
|
},
|
|
209
296
|
heading: {
|
|
210
|
-
UNSAFE_className: $
|
|
297
|
+
UNSAFE_className: (0, $jpY3B$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($71570f0038472fa2$exports))), "spectrum-Card-heading"),
|
|
211
298
|
...titleProps
|
|
212
299
|
},
|
|
213
300
|
content: {
|
|
214
|
-
UNSAFE_className: $
|
|
301
|
+
UNSAFE_className: (0, $jpY3B$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($71570f0038472fa2$exports))), "spectrum-Card-content"),
|
|
215
302
|
...contentProps
|
|
216
303
|
},
|
|
217
304
|
detail: {
|
|
218
|
-
UNSAFE_className: $
|
|
305
|
+
UNSAFE_className: (0, $jpY3B$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($71570f0038472fa2$exports))), "spectrum-Card-detail")
|
|
219
306
|
}
|
|
220
|
-
})
|
|
221
|
-
, [
|
|
307
|
+
}), [
|
|
222
308
|
titleProps,
|
|
223
309
|
contentProps,
|
|
224
310
|
height,
|
|
225
311
|
isQuiet,
|
|
226
312
|
orientation
|
|
227
313
|
]);
|
|
228
|
-
$
|
|
314
|
+
(0, $jpY3B$reactariautils.useLayoutEffect)(()=>{
|
|
229
315
|
if (gridRef === null || gridRef === void 0 ? void 0 : gridRef.current) {
|
|
230
|
-
let walker = $
|
|
316
|
+
let walker = (0, $jpY3B$reactariafocus.getFocusableTreeWalker)(gridRef.current);
|
|
231
317
|
let nextNode = walker.nextNode();
|
|
232
318
|
while(nextNode != null){
|
|
233
319
|
if (checkboxRef.current && !checkboxRef.current.UNSAFE_getDOMNode().contains(nextNode)) {
|
|
234
|
-
console.warn(
|
|
320
|
+
console.warn("Card does not support focusable elements, please contact the team regarding your use case.");
|
|
235
321
|
break;
|
|
236
322
|
}
|
|
237
323
|
nextNode = walker.nextNode();
|
|
@@ -240,65 +326,63 @@ function $0f0c6c6691aad01b$var$CardBase(props, ref) {
|
|
|
240
326
|
}, [
|
|
241
327
|
children
|
|
242
328
|
]);
|
|
243
|
-
return
|
|
244
|
-
focusRingClass: $
|
|
245
|
-
}, /*#__PURE__*/ ($parcel$interopDefault($
|
|
329
|
+
return /*#__PURE__*/ (0, ($parcel$interopDefault($jpY3B$react))).createElement((0, $jpY3B$reactariafocus.FocusRing), {
|
|
330
|
+
focusRingClass: (0, $jpY3B$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($71570f0038472fa2$exports))), "focus-ring")
|
|
331
|
+
}, /*#__PURE__*/ (0, ($parcel$interopDefault($jpY3B$react))).createElement("article", {
|
|
246
332
|
...styleProps,
|
|
247
|
-
|
|
333
|
+
...(0, $jpY3B$reactariautils.mergeProps)(cardProps, focusWithinProps, hoverProps, (0, $jpY3B$reactariautils.filterDOMProps)(props), articleProps),
|
|
248
334
|
ref: domRef,
|
|
249
|
-
className: $
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
335
|
+
className: (0, $jpY3B$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($71570f0038472fa2$exports))), "spectrum-Card", {
|
|
336
|
+
"spectrum-Card--default": !isQuiet && orientation !== "horizontal",
|
|
337
|
+
"spectrum-Card--isQuiet": isQuiet && orientation !== "horizontal",
|
|
338
|
+
"spectrum-Card--horizontal": orientation === "horizontal",
|
|
339
|
+
"spectrum-Card--noPreview": !hasPreview,
|
|
340
|
+
"is-hovered": isHovered,
|
|
341
|
+
"is-focused": isFocused,
|
|
342
|
+
"is-selected": isSelected,
|
|
343
|
+
"spectrum-Card--waterfall": layout === "waterfall",
|
|
344
|
+
"spectrum-Card--gallery": layout === "gallery",
|
|
345
|
+
"spectrum-Card--grid": layout === "grid",
|
|
346
|
+
"spectrum-Card--noLayout": layout !== "waterfall" && layout !== "gallery" && layout !== "grid"
|
|
261
347
|
}, styleProps.className)
|
|
262
|
-
}, /*#__PURE__*/ ($parcel$interopDefault($
|
|
348
|
+
}, /*#__PURE__*/ (0, ($parcel$interopDefault($jpY3B$react))).createElement("div", {
|
|
263
349
|
ref: gridRef,
|
|
264
|
-
className: $
|
|
265
|
-
}, manager && manager.selectionMode !==
|
|
266
|
-
className: $
|
|
267
|
-
}, /*#__PURE__*/ ($parcel$interopDefault($
|
|
350
|
+
className: (0, $jpY3B$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($71570f0038472fa2$exports))), "spectrum-Card-grid")
|
|
351
|
+
}, manager && manager.selectionMode !== "none" && /*#__PURE__*/ (0, ($parcel$interopDefault($jpY3B$react))).createElement("div", {
|
|
352
|
+
className: (0, $jpY3B$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($71570f0038472fa2$exports))), "spectrum-Card-checkboxWrapper")
|
|
353
|
+
}, /*#__PURE__*/ (0, ($parcel$interopDefault($jpY3B$react))).createElement((0, $jpY3B$reactspectrumcheckbox.Checkbox), {
|
|
268
354
|
ref: checkboxRef,
|
|
269
355
|
isDisabled: isDisabled,
|
|
270
356
|
excludeFromTabOrder: true,
|
|
271
357
|
isSelected: isSelected,
|
|
272
358
|
onChange: onChange,
|
|
273
|
-
UNSAFE_className: $
|
|
359
|
+
UNSAFE_className: (0, $jpY3B$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($71570f0038472fa2$exports))), "spectrum-Card-checkbox"),
|
|
274
360
|
isEmphasized: true,
|
|
275
361
|
"aria-label": "select"
|
|
276
|
-
})), /*#__PURE__*/ ($parcel$interopDefault($
|
|
362
|
+
})), /*#__PURE__*/ (0, ($parcel$interopDefault($jpY3B$react))).createElement((0, $jpY3B$reactspectrumutils.SlotProvider), {
|
|
277
363
|
slots: slots
|
|
278
|
-
}, children), /*#__PURE__*/ ($parcel$interopDefault($
|
|
279
|
-
className: $
|
|
280
|
-
}))))
|
|
364
|
+
}, children), /*#__PURE__*/ (0, ($parcel$interopDefault($jpY3B$react))).createElement("div", {
|
|
365
|
+
className: (0, $jpY3B$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($71570f0038472fa2$exports))), "spectrum-Card-decoration")
|
|
366
|
+
}))));
|
|
281
367
|
}
|
|
282
|
-
function $
|
|
283
|
-
let titleId = $
|
|
284
|
-
let descriptionId = $
|
|
285
|
-
let titleProps = $
|
|
368
|
+
function $7888205ff7de382f$var$useCard(props) {
|
|
369
|
+
let titleId = (0, $jpY3B$reactariautils.useSlotId)();
|
|
370
|
+
let descriptionId = (0, $jpY3B$reactariautils.useSlotId)();
|
|
371
|
+
let titleProps = (0, $jpY3B$react.useMemo)(()=>({
|
|
286
372
|
id: titleId
|
|
287
|
-
})
|
|
288
|
-
, [
|
|
373
|
+
}), [
|
|
289
374
|
titleId
|
|
290
375
|
]);
|
|
291
|
-
let contentProps = $
|
|
376
|
+
let contentProps = (0, $jpY3B$react.useMemo)(()=>({
|
|
292
377
|
id: descriptionId
|
|
293
|
-
})
|
|
294
|
-
, [
|
|
378
|
+
}), [
|
|
295
379
|
descriptionId
|
|
296
380
|
]);
|
|
297
381
|
return {
|
|
298
382
|
cardProps: {
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
383
|
+
...(0, $jpY3B$reactariautils.filterDOMProps)(props),
|
|
384
|
+
"aria-labelledby": titleId,
|
|
385
|
+
"aria-describedby": descriptionId,
|
|
302
386
|
tabIndex: 0
|
|
303
387
|
},
|
|
304
388
|
titleProps: titleProps,
|
|
@@ -307,184 +391,82 @@ function $0f0c6c6691aad01b$var$useCard(props) {
|
|
|
307
391
|
}
|
|
308
392
|
/**
|
|
309
393
|
* TODO: Add description of component here.
|
|
310
|
-
*/ const $
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
var $594b89a9c0a26629$exports = {};
|
|
317
|
-
var $4c52c19f2fe59ac8$exports = {};
|
|
318
|
-
$4c52c19f2fe59ac8$exports = JSON.parse("{\"loading\":\"جارٍ التحميل...\",\"loadingMore\":\"جارٍ تحميل المزيد...\"}");
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
var $68a17e6660b0c491$exports = {};
|
|
322
|
-
$68a17e6660b0c491$exports = JSON.parse("{\"loading\":\"Зареждане...\",\"loadingMore\":\"Зареждане на още...\"}");
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
var $572c7ab2b7eae4d9$exports = {};
|
|
326
|
-
$572c7ab2b7eae4d9$exports = JSON.parse("{\"loading\":\"Načítání...\",\"loadingMore\":\"Načítání dalších...\"}");
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
var $c645f68438e56672$exports = {};
|
|
330
|
-
$c645f68438e56672$exports = JSON.parse("{\"loading\":\"Indlæser ...\",\"loadingMore\":\"Indlæser flere ...\"}");
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
var $7f31a7a3d284837e$exports = {};
|
|
334
|
-
$7f31a7a3d284837e$exports = JSON.parse("{\"loading\":\"Laden...\",\"loadingMore\":\"Mehr laden ...\"}");
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
var $7a1c8e5fb9ab4943$exports = {};
|
|
338
|
-
$7a1c8e5fb9ab4943$exports = JSON.parse("{\"loading\":\"Φόρτωση...\",\"loadingMore\":\"Φόρτωση περισσότερων...\"}");
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
var $4264b2219ab97e56$exports = {};
|
|
342
|
-
$4264b2219ab97e56$exports = JSON.parse("{\"loading\":\"Loading…\",\"loadingMore\":\"Loading more…\"}");
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
var $2124158eaf3a170a$exports = {};
|
|
346
|
-
$2124158eaf3a170a$exports = JSON.parse("{\"loading\":\"Cargando…\",\"loadingMore\":\"Cargando más…\"}");
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
var $810f402c67932423$exports = {};
|
|
350
|
-
$810f402c67932423$exports = JSON.parse("{\"loading\":\"Laadimine...\",\"loadingMore\":\"Laadi rohkem...\"}");
|
|
351
|
-
|
|
394
|
+
*/ const $7888205ff7de382f$export$7a6ccaf429ad93a8 = /*#__PURE__*/ (0, ($parcel$interopDefault($jpY3B$react))).forwardRef($7888205ff7de382f$var$CardBase);
|
|
352
395
|
|
|
353
|
-
var $24fd1257a3cf1e6a$exports = {};
|
|
354
|
-
$24fd1257a3cf1e6a$exports = JSON.parse("{\"loading\":\"Ladataan…\",\"loadingMore\":\"Ladataan lisää…\"}");
|
|
355
396
|
|
|
356
397
|
|
|
357
|
-
var $d3b63f99d8c262bb$exports = {};
|
|
358
|
-
$d3b63f99d8c262bb$exports = JSON.parse("{\"loading\":\"Chargement...\",\"loadingMore\":\"Chargement supplémentaire...\"}");
|
|
359
398
|
|
|
360
399
|
|
|
361
|
-
var $
|
|
362
|
-
$ed56861d50cbfcf0$exports = JSON.parse("{\"loading\":\"טוען...\",\"loadingMore\":\"טוען עוד...\"}");
|
|
400
|
+
var $85c597beff94758b$exports = {};
|
|
363
401
|
|
|
364
402
|
|
|
365
|
-
var $18da3b9541d6c137$exports = {};
|
|
366
|
-
$18da3b9541d6c137$exports = JSON.parse("{\"loading\":\"Učitavam...\",\"loadingMore\":\"Učitavam još...\"}");
|
|
367
403
|
|
|
368
404
|
|
|
369
|
-
var $da49b83d1d48b029$exports = {};
|
|
370
|
-
$da49b83d1d48b029$exports = JSON.parse("{\"loading\":\"Betöltés folyamatban…\",\"loadingMore\":\"Továbbiak betöltése folyamatban…\"}");
|
|
371
405
|
|
|
372
406
|
|
|
373
|
-
var $fba76ae74683b488$exports = {};
|
|
374
|
-
$fba76ae74683b488$exports = JSON.parse("{\"loading\":\"Caricamento...\",\"loadingMore\":\"Caricamento altri...\"}");
|
|
375
407
|
|
|
376
408
|
|
|
377
|
-
var $098fed5818574b60$exports = {};
|
|
378
|
-
$098fed5818574b60$exports = JSON.parse("{\"loading\":\"読み込み中...\",\"loadingMore\":\"さらに読み込み中...\"}");
|
|
379
409
|
|
|
380
410
|
|
|
381
|
-
var $95260f33245ec326$exports = {};
|
|
382
|
-
$95260f33245ec326$exports = JSON.parse("{\"loading\":\"로드 중\",\"loadingMore\":\"추가 로드 중\"}");
|
|
383
411
|
|
|
384
412
|
|
|
385
|
-
var $8741acc0461b4c89$exports = {};
|
|
386
|
-
$8741acc0461b4c89$exports = JSON.parse("{\"loading\":\"Įkeliama...\",\"loadingMore\":\"Įkeliama daugiau...\"}");
|
|
387
413
|
|
|
388
414
|
|
|
389
|
-
var $33dfca94e47d150c$exports = {};
|
|
390
|
-
$33dfca94e47d150c$exports = JSON.parse("{\"loading\":\"Notiek ielāde...\",\"loadingMore\":\"Tiek ielādēts vēl...\"}");
|
|
391
415
|
|
|
392
416
|
|
|
393
|
-
var $827e165eabd4f6e0$exports = {};
|
|
394
|
-
$827e165eabd4f6e0$exports = JSON.parse("{\"loading\":\"Laster inn ...\",\"loadingMore\":\"Laster inn flere ...\"}");
|
|
395
417
|
|
|
396
418
|
|
|
397
|
-
var $e4edfe36427ee8df$exports = {};
|
|
398
|
-
$e4edfe36427ee8df$exports = JSON.parse("{\"loading\":\"Laden...\",\"loadingMore\":\"Meer laden...\"}");
|
|
399
419
|
|
|
400
420
|
|
|
401
|
-
var $e900ea1d1835d2ea$exports = {};
|
|
402
|
-
$e900ea1d1835d2ea$exports = JSON.parse("{\"loading\":\"Ładowanie...\",\"loadingMore\":\"Wczytywanie większej liczby...\"}");
|
|
403
421
|
|
|
404
422
|
|
|
405
|
-
var $11c2100d0b7d395d$exports = {};
|
|
406
|
-
$11c2100d0b7d395d$exports = JSON.parse("{\"loading\":\"Carregando...\",\"loadingMore\":\"Carregando mais...\"}");
|
|
407
423
|
|
|
408
424
|
|
|
409
|
-
var $c8b4683ceec4287c$exports = {};
|
|
410
|
-
$c8b4683ceec4287c$exports = JSON.parse("{\"loading\":\"A carregar...\",\"loadingMore\":\"A carregar mais...\"}");
|
|
411
425
|
|
|
412
426
|
|
|
413
|
-
var $bcefa0235609f860$exports = {};
|
|
414
|
-
$bcefa0235609f860$exports = JSON.parse("{\"loading\":\"Se încarcă...\",\"loadingMore\":\"Se încarcă mai multe...\"}");
|
|
415
427
|
|
|
416
428
|
|
|
417
|
-
var $951c8fc62e7b50f7$exports = {};
|
|
418
|
-
$951c8fc62e7b50f7$exports = JSON.parse("{\"loading\":\"Загрузка...\",\"loadingMore\":\"Дополнительная загрузка...\"}");
|
|
419
429
|
|
|
420
430
|
|
|
421
|
-
var $e2d7e0970cf95ff9$exports = {};
|
|
422
|
-
$e2d7e0970cf95ff9$exports = JSON.parse("{\"loading\":\"Načítava sa...\",\"loadingMore\":\"Načítava sa viac...\"}");
|
|
423
431
|
|
|
424
432
|
|
|
425
|
-
var $5b9f4a7bf9d02e7f$exports = {};
|
|
426
|
-
$5b9f4a7bf9d02e7f$exports = JSON.parse("{\"loading\":\"Nalaganje...\",\"loadingMore\":\"Nalaganje več vsebine...\"}");
|
|
427
433
|
|
|
428
434
|
|
|
429
|
-
|
|
430
|
-
$
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
$
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
$
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
$
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
$
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
$
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
$
|
|
454
|
-
"
|
|
455
|
-
"
|
|
456
|
-
"
|
|
457
|
-
"
|
|
458
|
-
"
|
|
459
|
-
"
|
|
460
|
-
"
|
|
461
|
-
"
|
|
462
|
-
"
|
|
463
|
-
"
|
|
464
|
-
"fr-FR": $d3b63f99d8c262bb$exports,
|
|
465
|
-
"he-IL": $ed56861d50cbfcf0$exports,
|
|
466
|
-
"hr-HR": $18da3b9541d6c137$exports,
|
|
467
|
-
"hu-HU": $da49b83d1d48b029$exports,
|
|
468
|
-
"it-IT": $fba76ae74683b488$exports,
|
|
469
|
-
"ja-JP": $098fed5818574b60$exports,
|
|
470
|
-
"ko-KR": $95260f33245ec326$exports,
|
|
471
|
-
"lt-LT": $8741acc0461b4c89$exports,
|
|
472
|
-
"lv-LV": $33dfca94e47d150c$exports,
|
|
473
|
-
"nb-NO": $827e165eabd4f6e0$exports,
|
|
474
|
-
"nl-NL": $e4edfe36427ee8df$exports,
|
|
475
|
-
"pl-PL": $e900ea1d1835d2ea$exports,
|
|
476
|
-
"pt-BR": $11c2100d0b7d395d$exports,
|
|
477
|
-
"pt-PT": $c8b4683ceec4287c$exports,
|
|
478
|
-
"ro-RO": $bcefa0235609f860$exports,
|
|
479
|
-
"ru-RU": $951c8fc62e7b50f7$exports,
|
|
480
|
-
"sk-SK": $e2d7e0970cf95ff9$exports,
|
|
481
|
-
"sl-SI": $5b9f4a7bf9d02e7f$exports,
|
|
482
|
-
"sr-SP": $fd46cb4e469d596b$exports,
|
|
483
|
-
"sv-SE": $d8c12e587496e36b$exports,
|
|
484
|
-
"tr-TR": $0b097dc154b5bd0d$exports,
|
|
485
|
-
"uk-UA": $b6d65e3521383f0d$exports,
|
|
486
|
-
"zh-CN": $dac4fa1542975e10$exports,
|
|
487
|
-
"zh-TW": $2b8536ecab97611d$exports
|
|
435
|
+
$85c597beff94758b$exports = {
|
|
436
|
+
"ar-AE": $b0d49dbc72f937a2$exports,
|
|
437
|
+
"bg-BG": $ce0dd82398fba411$exports,
|
|
438
|
+
"cs-CZ": $1086444b40892e5d$exports,
|
|
439
|
+
"da-DK": $26f9bd87c0446842$exports,
|
|
440
|
+
"de-DE": $5922ace8d8eedc34$exports,
|
|
441
|
+
"el-GR": $0dff680a5aaa08a6$exports,
|
|
442
|
+
"en-US": $40f72ebe96160fe5$exports,
|
|
443
|
+
"es-ES": $fd3d037364cca31d$exports,
|
|
444
|
+
"et-EE": $aeb59a17c296301b$exports,
|
|
445
|
+
"fi-FI": $8725562d6e87d608$exports,
|
|
446
|
+
"fr-FR": $5b8a7cd61bd67f0d$exports,
|
|
447
|
+
"he-IL": $904fdf1c66b8e1ae$exports,
|
|
448
|
+
"hr-HR": $e321e496e49645f3$exports,
|
|
449
|
+
"hu-HU": $5fb9f79f322fc149$exports,
|
|
450
|
+
"it-IT": $87d8922713b63bdb$exports,
|
|
451
|
+
"ja-JP": $57201e032f548603$exports,
|
|
452
|
+
"ko-KR": $74aa6884e1ef4030$exports,
|
|
453
|
+
"lt-LT": $50cefda6a03c058b$exports,
|
|
454
|
+
"lv-LV": $3d08f75b6bbe5354$exports,
|
|
455
|
+
"nb-NO": $c59f7b2f9755472b$exports,
|
|
456
|
+
"nl-NL": $d81bf728da4b1c33$exports,
|
|
457
|
+
"pl-PL": $f323a42ea1486c2f$exports,
|
|
458
|
+
"pt-BR": $2b2937248d390105$exports,
|
|
459
|
+
"pt-PT": $156cd72030936350$exports,
|
|
460
|
+
"ro-RO": $5964cf64325251a3$exports,
|
|
461
|
+
"ru-RU": $71b3c908be47dc7e$exports,
|
|
462
|
+
"sk-SK": $815155759d865560$exports,
|
|
463
|
+
"sl-SI": $d5deb2faae807da5$exports,
|
|
464
|
+
"sr-SP": $42e52cb34b81b4af$exports,
|
|
465
|
+
"sv-SE": $f278e5fd270ba60f$exports,
|
|
466
|
+
"tr-TR": $523e0ad61eab5c5d$exports,
|
|
467
|
+
"uk-UA": $a58cff5745fe89a6$exports,
|
|
468
|
+
"zh-CN": $2c1c50c48e046fcb$exports,
|
|
469
|
+
"zh-TW": $d20ec5c21f83badd$exports
|
|
488
470
|
};
|
|
489
471
|
|
|
490
472
|
|
|
@@ -496,32 +478,32 @@ $594b89a9c0a26629$exports = {
|
|
|
496
478
|
|
|
497
479
|
|
|
498
480
|
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
let {
|
|
502
|
-
let
|
|
503
|
-
let
|
|
504
|
-
let
|
|
505
|
-
|
|
506
|
-
|
|
481
|
+
|
|
482
|
+
function $514a55f6d91f25ef$var$CardView(props, ref) {
|
|
483
|
+
let { scale: scale } = (0, $jpY3B$reactspectrumprovider.useProvider)();
|
|
484
|
+
let { styleProps: styleProps } = (0, $jpY3B$reactspectrumutils.useStyleProps)(props);
|
|
485
|
+
let domRef = (0, $jpY3B$reactspectrumutils.useDOMRef)(ref);
|
|
486
|
+
let { isQuiet: isQuiet, renderEmptyState: renderEmptyState, layout: layout, loadingState: loadingState, onLoadMore: onLoadMore, cardOrientation: cardOrientation = "vertical" } = props;
|
|
487
|
+
let collator = (0, $jpY3B$reactariai18n.useCollator)({
|
|
488
|
+
usage: "search",
|
|
489
|
+
sensitivity: "base"
|
|
507
490
|
});
|
|
508
|
-
let isLoading = loadingState ===
|
|
509
|
-
let cardViewLayout = $
|
|
491
|
+
let isLoading = loadingState === "loading" || loadingState === "loadingMore";
|
|
492
|
+
let cardViewLayout = (0, $jpY3B$react.useMemo)(()=>typeof layout === "function" ? new layout({
|
|
510
493
|
collator: collator,
|
|
511
494
|
cardOrientation: cardOrientation,
|
|
512
495
|
scale: scale
|
|
513
|
-
}) : layout
|
|
514
|
-
, [
|
|
496
|
+
}) : layout, [
|
|
515
497
|
layout,
|
|
516
498
|
collator,
|
|
517
499
|
cardOrientation,
|
|
518
500
|
scale
|
|
519
501
|
]);
|
|
520
502
|
let layoutType = cardViewLayout.layoutType;
|
|
521
|
-
let
|
|
522
|
-
let { direction: direction
|
|
523
|
-
let { collection: collection
|
|
524
|
-
let gridCollection = $
|
|
503
|
+
let stringFormatter = (0, $jpY3B$reactariai18n.useLocalizedStringFormatter)((0, (/*@__PURE__*/$parcel$interopDefault($85c597beff94758b$exports))), "@react-spectrum/card");
|
|
504
|
+
let { direction: direction } = (0, $jpY3B$reactariai18n.useLocale)();
|
|
505
|
+
let { collection: collection } = (0, $jpY3B$reactstatelylist.useListState)(props);
|
|
506
|
+
let gridCollection = (0, $jpY3B$react.useMemo)(()=>new (0, $jpY3B$reactstatelygrid.GridCollection)({
|
|
525
507
|
columnCount: 1,
|
|
526
508
|
items: [
|
|
527
509
|
...collection
|
|
@@ -532,7 +514,7 @@ function $434cfc518fa31831$var$CardView(props, ref) {
|
|
|
532
514
|
childNodes: [
|
|
533
515
|
{
|
|
534
516
|
key: `cell-${item.key}`,
|
|
535
|
-
type:
|
|
517
|
+
type: "cell",
|
|
536
518
|
value: null,
|
|
537
519
|
level: 0,
|
|
538
520
|
rendered: null,
|
|
@@ -541,39 +523,37 @@ function $434cfc518fa31831$var$CardView(props, ref) {
|
|
|
541
523
|
childNodes: []
|
|
542
524
|
}
|
|
543
525
|
]
|
|
544
|
-
})
|
|
545
|
-
|
|
546
|
-
})
|
|
547
|
-
, [
|
|
526
|
+
}))
|
|
527
|
+
}), [
|
|
548
528
|
collection
|
|
549
529
|
]);
|
|
550
|
-
let state = $
|
|
530
|
+
let state = (0, $jpY3B$reactstatelygrid.useGridState)({
|
|
551
531
|
...props,
|
|
552
|
-
selectionMode: cardOrientation ===
|
|
532
|
+
selectionMode: cardOrientation === "horizontal" && layoutType === "grid" ? "none" : props.selectionMode,
|
|
553
533
|
collection: gridCollection,
|
|
554
|
-
focusMode:
|
|
534
|
+
focusMode: "cell"
|
|
555
535
|
});
|
|
556
536
|
cardViewLayout.collection = gridCollection;
|
|
557
537
|
cardViewLayout.disabledKeys = state.disabledKeys;
|
|
558
538
|
cardViewLayout.isLoading = isLoading;
|
|
559
539
|
cardViewLayout.direction = direction;
|
|
560
|
-
let { gridProps: gridProps
|
|
540
|
+
let { gridProps: gridProps } = (0, $jpY3B$reactariagrid.useGrid)({
|
|
561
541
|
...props,
|
|
562
542
|
isVirtualized: true,
|
|
563
543
|
keyboardDelegate: cardViewLayout
|
|
564
544
|
}, state, domRef);
|
|
565
|
-
let renderWrapper = (parent, reusableView)=>/*#__PURE__*/ ($parcel$interopDefault($
|
|
545
|
+
let renderWrapper = (parent, reusableView)=>/*#__PURE__*/ (0, ($parcel$interopDefault($jpY3B$react))).createElement((0, $jpY3B$reactariavirtualizer.VirtualizerItem), {
|
|
566
546
|
key: reusableView.key,
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
547
|
+
layoutInfo: reusableView.layoutInfo,
|
|
548
|
+
virtualizer: reusableView.virtualizer,
|
|
549
|
+
parent: parent === null || parent === void 0 ? void 0 : parent.layoutInfo
|
|
550
|
+
}, reusableView.rendered);
|
|
571
551
|
let focusedKey = state.selectionManager.focusedKey;
|
|
572
552
|
let focusedItem = gridCollection.getItem(state.selectionManager.focusedKey);
|
|
573
553
|
if ((focusedItem === null || focusedItem === void 0 ? void 0 : focusedItem.parentKey) != null) focusedKey = focusedItem.parentKey;
|
|
574
554
|
let margin = cardViewLayout.margin || 0;
|
|
575
555
|
let virtualizer = cardViewLayout.virtualizer;
|
|
576
|
-
let scrollToItem = $
|
|
556
|
+
let scrollToItem = (0, $jpY3B$react.useCallback)((key)=>{
|
|
577
557
|
virtualizer && virtualizer.scrollToItem(key, {
|
|
578
558
|
duration: 0,
|
|
579
559
|
offsetY: margin
|
|
@@ -583,17 +563,17 @@ function $434cfc518fa31831$var$CardView(props, ref) {
|
|
|
583
563
|
virtualizer
|
|
584
564
|
]);
|
|
585
565
|
// TODO: does aria-row count and aria-col count need to be modified? Perhaps aria-col count needs to be omitted
|
|
586
|
-
return
|
|
566
|
+
return /*#__PURE__*/ (0, ($parcel$interopDefault($jpY3B$react))).createElement((0, $e57ab98cef2f01a5$export$64992ac69f286e5c).Provider, {
|
|
587
567
|
value: {
|
|
588
568
|
state: state,
|
|
589
569
|
isQuiet: isQuiet,
|
|
590
570
|
layout: cardViewLayout,
|
|
591
571
|
cardOrientation: cardOrientation
|
|
592
572
|
}
|
|
593
|
-
}, /*#__PURE__*/ ($parcel$interopDefault($
|
|
573
|
+
}, /*#__PURE__*/ (0, ($parcel$interopDefault($jpY3B$react))).createElement((0, $jpY3B$reactariavirtualizer.Virtualizer), {
|
|
594
574
|
...gridProps,
|
|
595
575
|
...styleProps,
|
|
596
|
-
className: $
|
|
576
|
+
className: (0, $jpY3B$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($71570f0038472fa2$exports))), "spectrum-CardView"),
|
|
597
577
|
ref: domRef,
|
|
598
578
|
focusedKey: focusedKey,
|
|
599
579
|
scrollDirection: "vertical",
|
|
@@ -605,91 +585,117 @@ function $434cfc518fa31831$var$CardView(props, ref) {
|
|
|
605
585
|
transitionDuration: isLoading ? 160 : 220,
|
|
606
586
|
scrollToItem: scrollToItem
|
|
607
587
|
}, (type, item)=>{
|
|
608
|
-
if (type ===
|
|
588
|
+
if (type === "item") return /*#__PURE__*/ (0, ($parcel$interopDefault($jpY3B$react))).createElement($514a55f6d91f25ef$var$InternalCard, {
|
|
609
589
|
item: item
|
|
610
|
-
})
|
|
611
|
-
else if (type ===
|
|
590
|
+
});
|
|
591
|
+
else if (type === "loader") return /*#__PURE__*/ (0, ($parcel$interopDefault($jpY3B$react))).createElement($514a55f6d91f25ef$var$CenteredWrapper, null, /*#__PURE__*/ (0, ($parcel$interopDefault($jpY3B$react))).createElement((0, $jpY3B$reactspectrumprogress.ProgressCircle), {
|
|
612
592
|
isIndeterminate: true,
|
|
613
|
-
"aria-label": state.collection.size > 0 ?
|
|
614
|
-
}))
|
|
615
|
-
else if (type ===
|
|
593
|
+
"aria-label": state.collection.size > 0 ? stringFormatter.format("loadingMore") : stringFormatter.format("loading")
|
|
594
|
+
}));
|
|
595
|
+
else if (type === "placeholder") {
|
|
616
596
|
let emptyState = renderEmptyState ? renderEmptyState() : null;
|
|
617
597
|
if (emptyState == null) return null;
|
|
618
|
-
return
|
|
598
|
+
return /*#__PURE__*/ (0, ($parcel$interopDefault($jpY3B$react))).createElement($514a55f6d91f25ef$var$CenteredWrapper, null, emptyState);
|
|
619
599
|
}
|
|
620
|
-
}))
|
|
600
|
+
}));
|
|
621
601
|
}
|
|
622
|
-
function $
|
|
623
|
-
let { state: state
|
|
624
|
-
return
|
|
602
|
+
function $514a55f6d91f25ef$var$CenteredWrapper({ children: children }) {
|
|
603
|
+
let { state: state } = (0, $e57ab98cef2f01a5$export$fea0b38586ec8f13)();
|
|
604
|
+
return /*#__PURE__*/ (0, ($parcel$interopDefault($jpY3B$react))).createElement("div", {
|
|
625
605
|
role: "row",
|
|
626
606
|
"aria-rowindex": state.collection.size + 1,
|
|
627
|
-
className: $
|
|
628
|
-
}, /*#__PURE__*/ ($parcel$interopDefault($
|
|
607
|
+
className: (0, $jpY3B$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($71570f0038472fa2$exports))), "spectrum-CardView-centeredWrapper")
|
|
608
|
+
}, /*#__PURE__*/ (0, ($parcel$interopDefault($jpY3B$react))).createElement("div", {
|
|
629
609
|
role: "gridcell"
|
|
630
|
-
}, children))
|
|
610
|
+
}, children));
|
|
631
611
|
}
|
|
632
|
-
function $
|
|
633
|
-
let { item: item
|
|
612
|
+
function $514a55f6d91f25ef$var$InternalCard(props) {
|
|
613
|
+
let { item: item } = props;
|
|
634
614
|
let cellNode = [
|
|
635
615
|
...item.childNodes
|
|
636
616
|
][0];
|
|
637
|
-
let { state: state
|
|
617
|
+
let { state: state, cardOrientation: cardOrientation, isQuiet: isQuiet, layout: layout } = (0, $e57ab98cef2f01a5$export$fea0b38586ec8f13)();
|
|
638
618
|
let layoutType = layout.layoutType;
|
|
639
|
-
let rowRef = $
|
|
640
|
-
let cellRef = $
|
|
641
|
-
let unwrappedRef = $
|
|
642
|
-
let { rowProps:
|
|
619
|
+
let rowRef = (0, $jpY3B$react.useRef)();
|
|
620
|
+
let cellRef = (0, $jpY3B$react.useRef)();
|
|
621
|
+
let unwrappedRef = (0, $jpY3B$reactspectrumutils.useUnwrapDOMRef)(cellRef);
|
|
622
|
+
let { rowProps: gridRowProps } = (0, $jpY3B$reactariagrid.useGridRow)({
|
|
643
623
|
node: item,
|
|
644
624
|
isVirtualized: true
|
|
645
625
|
}, state, rowRef);
|
|
646
|
-
let { gridCellProps: gridCellProps
|
|
626
|
+
let { gridCellProps: gridCellProps } = (0, $jpY3B$reactariagrid.useGridCell)({
|
|
647
627
|
node: cellNode,
|
|
648
|
-
focusMode:
|
|
628
|
+
focusMode: "cell"
|
|
649
629
|
}, state, unwrappedRef);
|
|
650
|
-
if
|
|
651
|
-
|
|
630
|
+
// Prevent space key from scrolling the CardView if triggered on a disabled item or on a Card in a selectionMode="none" CardView.
|
|
631
|
+
let allowsInteraction = state.selectionManager.selectionMode !== "none";
|
|
632
|
+
let isDisabled = !allowsInteraction || state.disabledKeys.has(item.key);
|
|
633
|
+
let onKeyDown = (e)=>{
|
|
634
|
+
if (e.key === " " && isDisabled) e.preventDefault();
|
|
635
|
+
};
|
|
636
|
+
let rowProps = (0, $jpY3B$reactariautils.mergeProps)(gridRowProps, {
|
|
637
|
+
onKeyDown: onKeyDown
|
|
638
|
+
});
|
|
639
|
+
if (layoutType === "grid" || layoutType === "gallery") isQuiet = true;
|
|
640
|
+
if (layoutType !== "grid") cardOrientation = "vertical";
|
|
652
641
|
// We don't want to focus the checkbox (or any other focusable elements) within the Card
|
|
653
642
|
// when pressing the arrow keys so we delete the key down handler here. Arrow key navigation between
|
|
654
643
|
// the cards in the CardView is handled by useGrid => useSelectableCollection instead.
|
|
655
644
|
delete gridCellProps.onKeyDownCapture;
|
|
656
|
-
return
|
|
645
|
+
return /*#__PURE__*/ (0, ($parcel$interopDefault($jpY3B$react))).createElement("div", {
|
|
657
646
|
...rowProps,
|
|
658
647
|
ref: rowRef,
|
|
659
|
-
className: $
|
|
660
|
-
}, /*#__PURE__*/ ($parcel$interopDefault($
|
|
648
|
+
className: (0, $jpY3B$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($71570f0038472fa2$exports))), "spectrum-CardView-row")
|
|
649
|
+
}, /*#__PURE__*/ (0, ($parcel$interopDefault($jpY3B$react))).createElement((0, $7888205ff7de382f$export$7a6ccaf429ad93a8), {
|
|
661
650
|
ref: cellRef,
|
|
662
651
|
articleProps: gridCellProps,
|
|
663
652
|
isQuiet: isQuiet,
|
|
664
653
|
orientation: cardOrientation,
|
|
665
654
|
item: item,
|
|
666
655
|
layout: layoutType
|
|
667
|
-
}, item.rendered))
|
|
656
|
+
}, item.rendered));
|
|
668
657
|
}
|
|
669
658
|
/**
|
|
670
659
|
* TODO: Add description of component here.
|
|
671
|
-
*/ const $
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
660
|
+
*/ const $514a55f6d91f25ef$export$7e52c821f7b6f422 = /*#__PURE__*/ (0, ($parcel$interopDefault($jpY3B$react))).forwardRef($514a55f6d91f25ef$var$CardView);
|
|
661
|
+
|
|
662
|
+
|
|
663
|
+
/*
|
|
664
|
+
* Copyright 2021 Adobe. All rights reserved.
|
|
665
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
666
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
667
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
668
|
+
*
|
|
669
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
670
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
671
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
672
|
+
* governing permissions and limitations under the License.
|
|
673
|
+
*/ /*
|
|
674
|
+
* Copyright 2021 Adobe. All rights reserved.
|
|
675
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
676
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
677
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
678
|
+
*
|
|
679
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
680
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
681
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
682
|
+
* governing permissions and limitations under the License.
|
|
683
|
+
*/
|
|
684
|
+
|
|
685
|
+
class $5ee605f09afaa4de$export$64943d2e59d72a29 extends (0, $jpY3B$reactstatelyvirtualizer.Layout) {
|
|
679
686
|
validate(invalidationContext) {
|
|
680
687
|
this.collection = this.virtualizer.collection;
|
|
681
688
|
this.buildCollection(invalidationContext);
|
|
682
689
|
// Remove layout info that doesn't exist in new collection
|
|
683
690
|
if (this.lastCollection) {
|
|
684
691
|
for (let key of this.lastCollection.getKeys())if (!this.collection.getItem(key)) this.layoutInfos.delete(key);
|
|
685
|
-
if (!this.isLoading) this.layoutInfos.delete(
|
|
686
|
-
if (this.collection.size > 0) this.layoutInfos.delete(
|
|
692
|
+
if (!this.isLoading) this.layoutInfos.delete("loader");
|
|
693
|
+
if (this.collection.size > 0) this.layoutInfos.delete("placeholder");
|
|
687
694
|
}
|
|
688
695
|
this.lastCollection = this.collection;
|
|
689
696
|
}
|
|
690
697
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
691
|
-
buildCollection(invalidationContext) {
|
|
692
|
-
}
|
|
698
|
+
buildCollection(invalidationContext) {}
|
|
693
699
|
getContentSize() {
|
|
694
700
|
return this.contentSize;
|
|
695
701
|
}
|
|
@@ -706,12 +712,12 @@ class $22665c819b87f5f9$export$64943d2e59d72a29 extends $jT0lq$reactstatelyvirtu
|
|
|
706
712
|
}
|
|
707
713
|
getInitialLayoutInfo(layoutInfo) {
|
|
708
714
|
layoutInfo.opacity = 0;
|
|
709
|
-
layoutInfo.transform =
|
|
715
|
+
layoutInfo.transform = "scale3d(0.8, 0.8, 0.8)";
|
|
710
716
|
return layoutInfo;
|
|
711
717
|
}
|
|
712
718
|
getFinalLayoutInfo(layoutInfo) {
|
|
713
719
|
layoutInfo.opacity = 0;
|
|
714
|
-
layoutInfo.transform =
|
|
720
|
+
layoutInfo.transform = "scale3d(0.8, 0.8, 0.8)";
|
|
715
721
|
return layoutInfo;
|
|
716
722
|
}
|
|
717
723
|
_findClosestLayoutInfo(target, rect) {
|
|
@@ -719,7 +725,7 @@ class $22665c819b87f5f9$export$64943d2e59d72a29 extends $jT0lq$reactstatelyvirtu
|
|
|
719
725
|
let best = null;
|
|
720
726
|
let bestDistance = Infinity;
|
|
721
727
|
// Calculates distance as the distance between the center of 2 rects.
|
|
722
|
-
for (let cur of layoutInfos)if (cur.type ===
|
|
728
|
+
for (let cur of layoutInfos)if (cur.type === "item") {
|
|
723
729
|
let curRect = cur.rect;
|
|
724
730
|
let targetMidX = (target.x + target.maxX) / 2;
|
|
725
731
|
let targetMidY = (target.y + target.maxY) / 2;
|
|
@@ -738,52 +744,56 @@ class $22665c819b87f5f9$export$64943d2e59d72a29 extends $jT0lq$reactstatelyvirtu
|
|
|
738
744
|
return best || null;
|
|
739
745
|
}
|
|
740
746
|
getKeyBelow(key) {
|
|
741
|
-
var
|
|
747
|
+
var _this__findClosest, _getFirstItem;
|
|
742
748
|
// Expected key is the currently focused cell so we need the parent row key
|
|
743
749
|
let parentRowKey = this.collection.getItem(key).parentKey;
|
|
744
750
|
let layoutInfo = this.getLayoutInfo(parentRowKey);
|
|
745
|
-
let rect = new $
|
|
746
|
-
let closestRow = this.collection.getItem((
|
|
747
|
-
return (
|
|
751
|
+
let rect = new (0, $jpY3B$reactstatelyvirtualizer.Rect)(layoutInfo.rect.x, layoutInfo.rect.maxY + 1, layoutInfo.rect.width, this.virtualizer.visibleRect.height);
|
|
752
|
+
let closestRow = this.collection.getItem((_this__findClosest = this._findClosest(layoutInfo.rect, rect)) === null || _this__findClosest === void 0 ? void 0 : _this__findClosest.key);
|
|
753
|
+
return (_getFirstItem = (0, $jpY3B$reactstatelycollections.getFirstItem)((0, $jpY3B$reactstatelycollections.getChildNodes)(closestRow, this.collection))) === null || _getFirstItem === void 0 ? void 0 : _getFirstItem.key;
|
|
748
754
|
}
|
|
749
755
|
getKeyAbove(key) {
|
|
750
|
-
var
|
|
756
|
+
var _this__findClosest, _getFirstItem;
|
|
751
757
|
// Expected key is the currently focused cell so we need the parent row key
|
|
752
758
|
let parentRowKey = this.collection.getItem(key).parentKey;
|
|
753
759
|
let layoutInfo = this.getLayoutInfo(parentRowKey);
|
|
754
|
-
let rect = new $
|
|
755
|
-
let closestRow = this.collection.getItem((
|
|
756
|
-
return (
|
|
760
|
+
let rect = new (0, $jpY3B$reactstatelyvirtualizer.Rect)(layoutInfo.rect.x, 0, layoutInfo.rect.width, layoutInfo.rect.y - 1);
|
|
761
|
+
let closestRow = this.collection.getItem((_this__findClosest = this._findClosest(layoutInfo.rect, rect)) === null || _this__findClosest === void 0 ? void 0 : _this__findClosest.key);
|
|
762
|
+
return (_getFirstItem = (0, $jpY3B$reactstatelycollections.getFirstItem)((0, $jpY3B$reactstatelycollections.getChildNodes)(closestRow, this.collection))) === null || _getFirstItem === void 0 ? void 0 : _getFirstItem.key;
|
|
757
763
|
}
|
|
758
764
|
getKeyRightOf(key) {
|
|
759
765
|
// Expected key is the currently focused cell so we need the parent row key
|
|
760
766
|
let parentRowKey = this.collection.getItem(key).parentKey;
|
|
761
|
-
key = this.direction ===
|
|
767
|
+
key = this.direction === "rtl" ? this.collection.getKeyBefore(parentRowKey) : this.collection.getKeyAfter(parentRowKey);
|
|
762
768
|
while(key != null){
|
|
769
|
+
var _getFirstItem;
|
|
763
770
|
let item = this.collection.getItem(key);
|
|
764
771
|
// Don't check if item is disabled because we want to be able to focus disabled items in a grid (double check this)
|
|
765
|
-
if (item.type ===
|
|
766
|
-
key = this.direction ===
|
|
772
|
+
if (item.type === "item") return (_getFirstItem = (0, $jpY3B$reactstatelycollections.getFirstItem)((0, $jpY3B$reactstatelycollections.getChildNodes)(item, this.collection))) === null || _getFirstItem === void 0 ? void 0 : _getFirstItem.key;
|
|
773
|
+
key = this.direction === "rtl" ? this.collection.getKeyBefore(key) : this.collection.getKeyAfter(key);
|
|
767
774
|
}
|
|
768
775
|
}
|
|
769
776
|
getKeyLeftOf(key) {
|
|
770
777
|
// Expected key is the currently focused cell so we need the parent row key
|
|
771
778
|
let parentRowKey = this.collection.getItem(key).parentKey;
|
|
772
|
-
key = this.direction ===
|
|
779
|
+
key = this.direction === "rtl" ? this.collection.getKeyAfter(parentRowKey) : this.collection.getKeyBefore(parentRowKey);
|
|
773
780
|
while(key != null){
|
|
781
|
+
var _getFirstItem;
|
|
774
782
|
let item = this.collection.getItem(key);
|
|
775
783
|
// Don't check if item is disabled because we want to be able to focus disabled items in a grid (double check this)
|
|
776
|
-
if (item.type ===
|
|
777
|
-
key = this.direction ===
|
|
784
|
+
if (item.type === "item") return (_getFirstItem = (0, $jpY3B$reactstatelycollections.getFirstItem)((0, $jpY3B$reactstatelycollections.getChildNodes)(item, this.collection))) === null || _getFirstItem === void 0 ? void 0 : _getFirstItem.key;
|
|
785
|
+
key = this.direction === "rtl" ? this.collection.getKeyAfter(key) : this.collection.getKeyBefore(key);
|
|
778
786
|
}
|
|
779
787
|
}
|
|
780
788
|
getFirstKey() {
|
|
789
|
+
var _getFirstItem;
|
|
781
790
|
let firstRow = this.collection.getItem(this.collection.getFirstKey());
|
|
782
|
-
return firstRow.
|
|
791
|
+
return (_getFirstItem = (0, $jpY3B$reactstatelycollections.getFirstItem)((0, $jpY3B$reactstatelycollections.getChildNodes)(firstRow, this.collection))) === null || _getFirstItem === void 0 ? void 0 : _getFirstItem.key;
|
|
783
792
|
}
|
|
784
793
|
getLastKey() {
|
|
794
|
+
var _getFirstItem;
|
|
785
795
|
let lastRow = this.collection.getItem(this.collection.getLastKey());
|
|
786
|
-
return lastRow.
|
|
796
|
+
return (_getFirstItem = (0, $jpY3B$reactstatelycollections.getFirstItem)((0, $jpY3B$reactstatelycollections.getChildNodes)(lastRow, this.collection))) === null || _getFirstItem === void 0 ? void 0 : _getFirstItem.key;
|
|
787
797
|
}
|
|
788
798
|
// TODO: pretty unwieldy because it needs to bounce back and forth between the parent key and the child key
|
|
789
799
|
// Perhaps have layoutInfo store childKey as well so we don't need to do this? Or maybe make the layoutInfos be the cells instead of the rows?
|
|
@@ -792,20 +802,21 @@ class $22665c819b87f5f9$export$64943d2e59d72a29 extends $jT0lq$reactstatelyvirtu
|
|
|
792
802
|
let parentRowKey = this.collection.getItem(key).parentKey;
|
|
793
803
|
let layoutInfo = this.getLayoutInfo(parentRowKey);
|
|
794
804
|
if (layoutInfo) {
|
|
795
|
-
var
|
|
805
|
+
var _this_collection_getItem;
|
|
796
806
|
let pageY = Math.max(0, layoutInfo.rect.y + layoutInfo.rect.height - this.virtualizer.visibleRect.height);
|
|
797
807
|
// If the node is so large that it spans multiple page heights, return the key of the item immediately above
|
|
798
808
|
// Otherwise keep going up until we exceed a single page height worth of nodes
|
|
799
|
-
let keyAbove = (
|
|
809
|
+
let keyAbove = (_this_collection_getItem = this.collection.getItem(this.getKeyAbove(key))) === null || _this_collection_getItem === void 0 ? void 0 : _this_collection_getItem.parentKey;
|
|
800
810
|
layoutInfo = this.getLayoutInfo(keyAbove);
|
|
801
811
|
if (layoutInfo && layoutInfo.rect.y > pageY) while(layoutInfo && layoutInfo.rect.y > pageY){
|
|
802
|
-
var
|
|
803
|
-
let childKey = this.collection.getItem(layoutInfo.key).
|
|
804
|
-
let keyAbove = (
|
|
812
|
+
var _getFirstItem, _this_collection_getItem1;
|
|
813
|
+
let childKey = (_getFirstItem = (0, $jpY3B$reactstatelycollections.getFirstItem)((0, $jpY3B$reactstatelycollections.getChildNodes)(this.collection.getItem(layoutInfo.key), this.collection))) === null || _getFirstItem === void 0 ? void 0 : _getFirstItem.key;
|
|
814
|
+
let keyAbove = (_this_collection_getItem1 = this.collection.getItem(this.getKeyAbove(childKey))) === null || _this_collection_getItem1 === void 0 ? void 0 : _this_collection_getItem1.parentKey;
|
|
805
815
|
layoutInfo = this.getLayoutInfo(keyAbove);
|
|
806
816
|
}
|
|
807
817
|
if (layoutInfo) {
|
|
808
|
-
|
|
818
|
+
var _getFirstItem1;
|
|
819
|
+
let childKey = (_getFirstItem1 = (0, $jpY3B$reactstatelycollections.getFirstItem)((0, $jpY3B$reactstatelycollections.getChildNodes)(this.collection.getItem(layoutInfo.key), this.collection))) === null || _getFirstItem1 === void 0 ? void 0 : _getFirstItem1.key;
|
|
809
820
|
return childKey;
|
|
810
821
|
}
|
|
811
822
|
}
|
|
@@ -818,20 +829,21 @@ class $22665c819b87f5f9$export$64943d2e59d72a29 extends $jT0lq$reactstatelyvirtu
|
|
|
818
829
|
let parentRowKey = this.collection.getItem(key).parentKey;
|
|
819
830
|
let layoutInfo = this.getLayoutInfo(parentRowKey);
|
|
820
831
|
if (layoutInfo) {
|
|
821
|
-
var
|
|
832
|
+
var _this_collection_getItem;
|
|
822
833
|
let pageY = Math.min(this.virtualizer.contentSize.height, layoutInfo.rect.y - layoutInfo.rect.height + this.virtualizer.visibleRect.height);
|
|
823
834
|
// If the node is so large that it spans multiple page heights, return the key of the item immediately below
|
|
824
835
|
// Otherwise keep going up until we exceed a single page height worth of nodes
|
|
825
|
-
let keyBelow = (
|
|
836
|
+
let keyBelow = (_this_collection_getItem = this.collection.getItem(this.getKeyBelow(key))) === null || _this_collection_getItem === void 0 ? void 0 : _this_collection_getItem.parentKey;
|
|
826
837
|
layoutInfo = this.getLayoutInfo(keyBelow);
|
|
827
838
|
if (layoutInfo && layoutInfo.rect.y < pageY) while(layoutInfo && layoutInfo.rect.y < pageY){
|
|
828
|
-
var
|
|
829
|
-
let childKey = this.collection.getItem(layoutInfo.key).
|
|
830
|
-
let keyBelow = (
|
|
839
|
+
var _getFirstItem, _this_collection_getItem1;
|
|
840
|
+
let childKey = (_getFirstItem = (0, $jpY3B$reactstatelycollections.getFirstItem)((0, $jpY3B$reactstatelycollections.getChildNodes)(this.collection.getItem(layoutInfo.key), this.collection))) === null || _getFirstItem === void 0 ? void 0 : _getFirstItem.key;
|
|
841
|
+
let keyBelow = (_this_collection_getItem1 = this.collection.getItem(this.getKeyBelow(childKey))) === null || _this_collection_getItem1 === void 0 ? void 0 : _this_collection_getItem1.parentKey;
|
|
831
842
|
layoutInfo = this.getLayoutInfo(keyBelow);
|
|
832
843
|
}
|
|
833
844
|
if (layoutInfo) {
|
|
834
|
-
|
|
845
|
+
var _getFirstItem1;
|
|
846
|
+
let childKey = (_getFirstItem1 = (0, $jpY3B$reactstatelycollections.getFirstItem)((0, $jpY3B$reactstatelycollections.getChildNodes)(this.collection.getItem(layoutInfo.key), this.collection))) === null || _getFirstItem1 === void 0 ? void 0 : _getFirstItem1.key;
|
|
835
847
|
return childKey;
|
|
836
848
|
}
|
|
837
849
|
}
|
|
@@ -846,53 +858,51 @@ class $22665c819b87f5f9$export$64943d2e59d72a29 extends $jT0lq$reactstatelyvirtu
|
|
|
846
858
|
while(key != null){
|
|
847
859
|
let item = collection.getItem(key);
|
|
848
860
|
if (item.textValue) {
|
|
861
|
+
var _getFirstItem;
|
|
849
862
|
let substring = item.textValue.slice(0, search.length);
|
|
850
|
-
if (this.collator.compare(substring, search) === 0) return
|
|
851
|
-
...item.childNodes
|
|
852
|
-
][0].key;
|
|
863
|
+
if (this.collator.compare(substring, search) === 0) return (_getFirstItem = (0, $jpY3B$reactstatelycollections.getFirstItem)((0, $jpY3B$reactstatelycollections.getChildNodes)(item, this.collection))) === null || _getFirstItem === void 0 ? void 0 : _getFirstItem.key;
|
|
853
864
|
}
|
|
854
865
|
key = this.collection.getKeyAfter(key);
|
|
855
866
|
}
|
|
856
867
|
return null;
|
|
857
868
|
}
|
|
858
|
-
constructor(options = {
|
|
859
|
-
}){
|
|
869
|
+
constructor(options = {}){
|
|
860
870
|
super();
|
|
861
871
|
this.disabledKeys = new Set();
|
|
862
872
|
this.layoutInfos = new Map();
|
|
863
873
|
this.collator = options.collator;
|
|
864
874
|
this.lastCollection = null;
|
|
865
|
-
this.scale = options.scale ||
|
|
875
|
+
this.scale = options.scale || "medium";
|
|
866
876
|
this.margin = options.margin || 24;
|
|
867
877
|
}
|
|
868
878
|
}
|
|
869
879
|
|
|
870
880
|
|
|
871
881
|
|
|
872
|
-
const $
|
|
882
|
+
const $8019a3d2c7d098ea$var$DEFAULT_OPTIONS = {
|
|
873
883
|
S: {
|
|
874
884
|
idealRowHeight: 112,
|
|
875
|
-
minItemSize: new $
|
|
876
|
-
itemSpacing: new $
|
|
885
|
+
minItemSize: new (0, $jpY3B$reactstatelyvirtualizer.Size)(96, 96),
|
|
886
|
+
itemSpacing: new (0, $jpY3B$reactstatelyvirtualizer.Size)(8, 16),
|
|
877
887
|
itemPadding: 24,
|
|
878
888
|
dropSpacing: 50,
|
|
879
889
|
margin: 8
|
|
880
890
|
},
|
|
881
891
|
L: {
|
|
882
892
|
idealRowHeight: 208,
|
|
883
|
-
minItemSize: new $
|
|
884
|
-
itemSpacing: new $
|
|
893
|
+
minItemSize: new (0, $jpY3B$reactstatelyvirtualizer.Size)(136, 136),
|
|
894
|
+
itemSpacing: new (0, $jpY3B$reactstatelyvirtualizer.Size)(18, 18),
|
|
885
895
|
itemPadding: {
|
|
886
|
-
|
|
887
|
-
|
|
896
|
+
"medium": 78,
|
|
897
|
+
"large": 99
|
|
888
898
|
},
|
|
889
899
|
dropSpacing: 100,
|
|
890
900
|
margin: 24
|
|
891
901
|
}
|
|
892
902
|
};
|
|
893
|
-
class $
|
|
903
|
+
class $8019a3d2c7d098ea$export$8e52095834484b61 extends (0, $5ee605f09afaa4de$export$64943d2e59d72a29) {
|
|
894
904
|
get layoutType() {
|
|
895
|
-
return
|
|
905
|
+
return "gallery";
|
|
896
906
|
}
|
|
897
907
|
/**
|
|
898
908
|
* Takes a row of widths and if there are any widths smaller than the min-width, leech width starting from
|
|
@@ -900,8 +910,7 @@ class $5bf28b6236de0f59$export$8e52095834484b61 extends $22665c819b87f5f9$export
|
|
|
900
910
|
* Do this until all assets meet the min-width.
|
|
901
911
|
* */ _distributeWidths(widths) {
|
|
902
912
|
// create a copy of the widths array and sort it largest to smallest
|
|
903
|
-
let sortedWidths = widths.concat().sort((a, b)=>a[1] > b[1] ? -1 : 1
|
|
904
|
-
);
|
|
913
|
+
let sortedWidths = widths.concat().sort((a, b)=>a[1] > b[1] ? -1 : 1);
|
|
905
914
|
for (let width of widths)// for each width, if it's smaller than the min width
|
|
906
915
|
if (width[1] < this.minItemSize.width) {
|
|
907
916
|
// then figure out how much smaller
|
|
@@ -911,6 +920,7 @@ class $5bf28b6236de0f59$export$8e52095834484b61 extends $22665c819b87f5f9$export
|
|
|
911
920
|
if (widths[item[0]][1] > this.minItemSize.width) {
|
|
912
921
|
// subtract the delta from the width, if it's still greater than the min width
|
|
913
922
|
// then we have finished, subtract the delta permanently from that width
|
|
923
|
+
// eslint-disable-next-line max-depth
|
|
914
924
|
if (widths[item[0]][1] - delta > this.minItemSize.width) {
|
|
915
925
|
widths[item[0]][1] -= delta;
|
|
916
926
|
delta = 0;
|
|
@@ -956,9 +966,8 @@ class $5bf28b6236de0f59$export$8e52095834484b61 extends $22665c819b87f5f9$export
|
|
|
956
966
|
// if the available width can't hold two items, then every item will get its own row
|
|
957
967
|
// this leads to a faster run through linear partition and more dependable output for small row widths
|
|
958
968
|
if (availableWidth <= this.minItemSize.width * 2 + this.itemPadding * 2) rows = this.collection.size;
|
|
959
|
-
let weightedRatios = ratios.map((ratio)=>ratio < this.threshold ? ratio + 0.5 * (1 / ratio) : ratio
|
|
960
|
-
);
|
|
961
|
-
let partition = $5bf28b6236de0f59$var$linearPartition(weightedRatios, rows);
|
|
969
|
+
let weightedRatios = ratios.map((ratio)=>ratio < this.threshold ? ratio + 0.5 * (1 / ratio) : ratio);
|
|
970
|
+
let partition = $8019a3d2c7d098ea$var$linearPartition(weightedRatios, rows);
|
|
962
971
|
let index = 0;
|
|
963
972
|
for (let row of partition){
|
|
964
973
|
// Compute the total weight for this row
|
|
@@ -974,20 +983,20 @@ class $5bf28b6236de0f59$export$8e52095834484b61 extends $22665c819b87f5f9$export
|
|
|
974
983
|
let x = this.margin;
|
|
975
984
|
// if any items are going to end up too small, add a bit of width to them and subtract it from wider objects
|
|
976
985
|
let widths = [];
|
|
977
|
-
for(let
|
|
978
|
-
let width = Math.round(bestRowHeight * ratios[
|
|
986
|
+
for(let j = index; j < index + row.length; j++){
|
|
987
|
+
let width = Math.round(bestRowHeight * ratios[j]);
|
|
979
988
|
widths.push([
|
|
980
|
-
|
|
989
|
+
j - index,
|
|
981
990
|
width
|
|
982
991
|
]);
|
|
983
992
|
}
|
|
984
993
|
this._distributeWidths(widths);
|
|
985
994
|
// Create items for this row.
|
|
986
|
-
for(let
|
|
987
|
-
let node = this.collection.rows[
|
|
988
|
-
let itemWidth = Math.max(widths[
|
|
989
|
-
let rect = new $
|
|
990
|
-
let layoutInfo = new $
|
|
995
|
+
for(let j = index; j < index + row.length; j++){
|
|
996
|
+
let node = this.collection.rows[j];
|
|
997
|
+
let itemWidth = Math.max(widths[j - index][1], this.minItemSize.width);
|
|
998
|
+
let rect = new (0, $jpY3B$reactstatelyvirtualizer.Rect)(x, y, itemWidth, itemHeight);
|
|
999
|
+
let layoutInfo = new (0, $jpY3B$reactstatelyvirtualizer.LayoutInfo)(node.type, node.key, rect);
|
|
991
1000
|
layoutInfo.allowOverflow = true;
|
|
992
1001
|
this.layoutInfos.set(node.key, layoutInfo);
|
|
993
1002
|
x += itemWidth + this.itemSpacing.width;
|
|
@@ -1004,63 +1013,59 @@ class $5bf28b6236de0f59$export$8e52095834484b61 extends $22665c819b87f5f9$export
|
|
|
1004
1013
|
loaderY = 0;
|
|
1005
1014
|
loaderHeight = visibleHeight || 60;
|
|
1006
1015
|
}
|
|
1007
|
-
let rect = new $
|
|
1008
|
-
let loader = new $
|
|
1009
|
-
this.layoutInfos.set(
|
|
1016
|
+
let rect = new (0, $jpY3B$reactstatelyvirtualizer.Rect)(0, loaderY, visibleWidth, loaderHeight);
|
|
1017
|
+
let loader = new (0, $jpY3B$reactstatelyvirtualizer.LayoutInfo)("loader", "loader", rect);
|
|
1018
|
+
this.layoutInfos.set("loader", loader);
|
|
1010
1019
|
y = loader.rect.maxY;
|
|
1011
1020
|
}
|
|
1012
1021
|
if (this.collection.size === 0 && !this.isLoading) {
|
|
1013
|
-
let rect = new $
|
|
1014
|
-
let placeholder = new $
|
|
1015
|
-
this.layoutInfos.set(
|
|
1022
|
+
let rect = new (0, $jpY3B$reactstatelyvirtualizer.Rect)(0, 0, visibleWidth, visibleHeight);
|
|
1023
|
+
let placeholder = new (0, $jpY3B$reactstatelyvirtualizer.LayoutInfo)("placeholder", "placeholder", rect);
|
|
1024
|
+
this.layoutInfos.set("placeholder", placeholder);
|
|
1016
1025
|
y = placeholder.rect.maxY;
|
|
1017
1026
|
}
|
|
1018
1027
|
}
|
|
1019
|
-
this.contentSize = new $
|
|
1028
|
+
this.contentSize = new (0, $jpY3B$reactstatelyvirtualizer.Size)(visibleWidth, y);
|
|
1020
1029
|
}
|
|
1021
|
-
constructor(options = {
|
|
1022
|
-
}){
|
|
1030
|
+
constructor(options = {}){
|
|
1023
1031
|
super(options);
|
|
1024
|
-
let cardSize =
|
|
1025
|
-
this.idealRowHeight = options.idealRowHeight || $
|
|
1026
|
-
this.itemSpacing = options.itemSpacing || $
|
|
1027
|
-
this.itemPadding = options.itemPadding != null ? options.itemPadding : $
|
|
1028
|
-
this.minItemSize = options.minItemSize || $
|
|
1032
|
+
let cardSize = "L";
|
|
1033
|
+
this.idealRowHeight = options.idealRowHeight || $8019a3d2c7d098ea$var$DEFAULT_OPTIONS[cardSize].idealRowHeight;
|
|
1034
|
+
this.itemSpacing = options.itemSpacing || $8019a3d2c7d098ea$var$DEFAULT_OPTIONS[cardSize].itemSpacing;
|
|
1035
|
+
this.itemPadding = options.itemPadding != null ? options.itemPadding : $8019a3d2c7d098ea$var$DEFAULT_OPTIONS[cardSize].itemPadding[this.scale];
|
|
1036
|
+
this.minItemSize = options.minItemSize || $8019a3d2c7d098ea$var$DEFAULT_OPTIONS[cardSize].minItemSize;
|
|
1029
1037
|
this.threshold = options.threshold || 1;
|
|
1030
|
-
this.margin = options.margin != null ? options.margin : $
|
|
1038
|
+
this.margin = options.margin != null ? options.margin : $8019a3d2c7d098ea$var$DEFAULT_OPTIONS[cardSize].margin;
|
|
1031
1039
|
}
|
|
1032
1040
|
}
|
|
1033
1041
|
// https://www8.cs.umu.se/kurser/TDBA77/VT06/algorithms/BOOK/BOOK2/NODE45.HTM
|
|
1034
|
-
function $
|
|
1042
|
+
function $8019a3d2c7d098ea$var$linearPartition(seq, k) {
|
|
1035
1043
|
let n = seq.length;
|
|
1036
1044
|
if (k <= 0) return [];
|
|
1037
1045
|
if (k >= n) return seq.map((x)=>[
|
|
1038
1046
|
x
|
|
1039
|
-
]
|
|
1040
|
-
);
|
|
1047
|
+
]);
|
|
1041
1048
|
if (n === 1) return [
|
|
1042
1049
|
seq
|
|
1043
1050
|
];
|
|
1044
|
-
let table = Array(n).fill(0).map(()=>Array(k).fill(0)
|
|
1045
|
-
);
|
|
1046
|
-
let solution = Array(n - 1).fill(0).map(()=>Array(k - 1).fill(0)
|
|
1047
|
-
);
|
|
1051
|
+
let table = Array(n).fill(0).map(()=>Array(k).fill(0));
|
|
1052
|
+
let solution = Array(n - 1).fill(0).map(()=>Array(k - 1).fill(0));
|
|
1048
1053
|
for(let i = 0; i < n; i++)table[i][0] = seq[i] + (i > 0 ? table[i - 1][0] : 0);
|
|
1049
|
-
for(let
|
|
1050
|
-
for(let
|
|
1054
|
+
for(let i = 0; i < k; i++)table[0][i] = seq[0];
|
|
1055
|
+
for(let i = 1; i < n; i++)for(let j = 1; j < k; j++){
|
|
1051
1056
|
let currentMin = 0;
|
|
1052
1057
|
let minX = Infinity;
|
|
1053
|
-
for(let x = 0; x <
|
|
1058
|
+
for(let x = 0; x < i; x++){
|
|
1054
1059
|
let c1 = table[x][j - 1];
|
|
1055
|
-
let c2 = table[
|
|
1060
|
+
let c2 = table[i][0] - table[x][0];
|
|
1056
1061
|
let cost = Math.max(c1, c2);
|
|
1057
1062
|
if (!x || cost < currentMin) {
|
|
1058
1063
|
currentMin = cost;
|
|
1059
1064
|
minX = x;
|
|
1060
1065
|
}
|
|
1061
1066
|
}
|
|
1062
|
-
table[
|
|
1063
|
-
solution[
|
|
1067
|
+
table[i][j] = currentMin;
|
|
1068
|
+
solution[i - 1][j - 1] = minX;
|
|
1064
1069
|
}
|
|
1065
1070
|
n = n - 1;
|
|
1066
1071
|
k = k - 2;
|
|
@@ -1075,54 +1080,62 @@ function $5bf28b6236de0f59$var$linearPartition(seq, k) {
|
|
|
1075
1080
|
k--;
|
|
1076
1081
|
}
|
|
1077
1082
|
let row = [];
|
|
1078
|
-
for(let
|
|
1083
|
+
for(let i = 0; i < n + 1; i++)row.push(seq[i]);
|
|
1079
1084
|
result.unshift(row);
|
|
1080
1085
|
return result;
|
|
1081
1086
|
}
|
|
1082
1087
|
|
|
1083
1088
|
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1089
|
+
/*
|
|
1090
|
+
* Copyright 2021 Adobe. All rights reserved.
|
|
1091
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
1092
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
1093
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
1094
|
+
*
|
|
1095
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
1096
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
1097
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
1098
|
+
* governing permissions and limitations under the License.
|
|
1099
|
+
*/
|
|
1087
1100
|
|
|
1088
1101
|
|
|
1089
|
-
const $
|
|
1102
|
+
const $71b727f94b595b1a$var$DEFAULT_OPTIONS = {
|
|
1090
1103
|
S: {
|
|
1091
1104
|
itemPadding: 20,
|
|
1092
1105
|
minItemSize: {
|
|
1093
|
-
|
|
1106
|
+
"vertical": new (0, $jpY3B$reactstatelyvirtualizer.Size)(96, 96)
|
|
1094
1107
|
},
|
|
1095
|
-
maxItemSize: new $
|
|
1108
|
+
maxItemSize: new (0, $jpY3B$reactstatelyvirtualizer.Size)(Infinity, Infinity),
|
|
1096
1109
|
margin: 8,
|
|
1097
|
-
minSpace: new $
|
|
1110
|
+
minSpace: new (0, $jpY3B$reactstatelyvirtualizer.Size)(6, 6),
|
|
1098
1111
|
maxColumns: Infinity,
|
|
1099
1112
|
dropSpacing: 50
|
|
1100
1113
|
},
|
|
1101
1114
|
L: {
|
|
1102
1115
|
itemPadding: {
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1116
|
+
"vertical": {
|
|
1117
|
+
"medium": 78,
|
|
1118
|
+
"large": 98
|
|
1106
1119
|
},
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1120
|
+
"horizontal": {
|
|
1121
|
+
"medium": 150,
|
|
1122
|
+
"large": 170
|
|
1110
1123
|
}
|
|
1111
1124
|
},
|
|
1112
1125
|
minItemSize: {
|
|
1113
|
-
|
|
1114
|
-
|
|
1126
|
+
"vertical": new (0, $jpY3B$reactstatelyvirtualizer.Size)(208, 208),
|
|
1127
|
+
"horizontal": new (0, $jpY3B$reactstatelyvirtualizer.Size)(102, 102)
|
|
1115
1128
|
},
|
|
1116
|
-
maxItemSize: new $
|
|
1129
|
+
maxItemSize: new (0, $jpY3B$reactstatelyvirtualizer.Size)(Infinity, Infinity),
|
|
1117
1130
|
margin: 24,
|
|
1118
|
-
minSpace: new $
|
|
1131
|
+
minSpace: new (0, $jpY3B$reactstatelyvirtualizer.Size)(18, 18),
|
|
1119
1132
|
maxColumns: Infinity,
|
|
1120
1133
|
dropSpacing: 100
|
|
1121
1134
|
}
|
|
1122
1135
|
};
|
|
1123
|
-
class $
|
|
1136
|
+
class $71b727f94b595b1a$export$7d2b12578154a735 extends (0, $5ee605f09afaa4de$export$64943d2e59d72a29) {
|
|
1124
1137
|
get layoutType() {
|
|
1125
|
-
return
|
|
1138
|
+
return "grid";
|
|
1126
1139
|
}
|
|
1127
1140
|
getIndexAtPoint(x, y, allowInsertingAtEnd = false) {
|
|
1128
1141
|
let itemHeight = this.itemSize.height + this.minSpace.height;
|
|
@@ -1148,7 +1161,7 @@ class $fdeb61baab0a7b8f$export$7d2b12578154a735 extends $22665c819b87f5f9$export
|
|
|
1148
1161
|
if (layoutInfo && this.isVisible(layoutInfo, rect)) res.push(layoutInfo);
|
|
1149
1162
|
}
|
|
1150
1163
|
// Check if loader is in view and add to res if so
|
|
1151
|
-
let loader = this.layoutInfos.get(
|
|
1164
|
+
let loader = this.layoutInfos.get("loader");
|
|
1152
1165
|
if (loader && this.isVisible(loader, rect)) res.push(loader);
|
|
1153
1166
|
}
|
|
1154
1167
|
return res;
|
|
@@ -1156,8 +1169,8 @@ class $fdeb61baab0a7b8f$export$7d2b12578154a735 extends $22665c819b87f5f9$export
|
|
|
1156
1169
|
buildCollection() {
|
|
1157
1170
|
let visibleWidth = this.virtualizer.visibleRect.width;
|
|
1158
1171
|
let visibleHeight = this.virtualizer.visibleRect.height;
|
|
1159
|
-
let horizontalItemPadding = this.cardOrientation ===
|
|
1160
|
-
let verticalItemPadding = this.cardOrientation ===
|
|
1172
|
+
let horizontalItemPadding = this.cardOrientation === "horizontal" ? this.itemPadding : 0;
|
|
1173
|
+
let verticalItemPadding = this.cardOrientation === "vertical" ? this.itemPadding : 0;
|
|
1161
1174
|
let minCardWidth = this.minItemSize.width + horizontalItemPadding;
|
|
1162
1175
|
// Compute the number of rows and columns needed to display the content
|
|
1163
1176
|
let availableWidth = visibleWidth - this.margin * 2;
|
|
@@ -1173,7 +1186,7 @@ class $fdeb61baab0a7b8f$export$7d2b12578154a735 extends $22665c819b87f5f9$export
|
|
|
1173
1186
|
let t = (itemWidth - minCardWidth) / minCardWidth;
|
|
1174
1187
|
let itemHeight = Math.floor(this.minItemSize.height + this.minItemSize.height * t);
|
|
1175
1188
|
itemHeight = Math.max(this.minItemSize.height, Math.min(this.maxItemSize.height, itemHeight)) + verticalItemPadding;
|
|
1176
|
-
this.itemSize = new $
|
|
1189
|
+
this.itemSize = new (0, $jpY3B$reactstatelyvirtualizer.Size)(itemWidth, itemHeight);
|
|
1177
1190
|
// Compute the horizontal spacing and content height
|
|
1178
1191
|
this.horizontalSpacing = this.numColumns < 2 ? 0 : Math.floor((availableWidth - this.numColumns * this.itemSize.width) / (this.numColumns - 1));
|
|
1179
1192
|
let y = this.margin;
|
|
@@ -1192,27 +1205,27 @@ class $fdeb61baab0a7b8f$export$7d2b12578154a735 extends $22665c819b87f5f9$export
|
|
|
1192
1205
|
loaderY = 0;
|
|
1193
1206
|
loaderHeight = visibleHeight || 60;
|
|
1194
1207
|
}
|
|
1195
|
-
let rect = new $
|
|
1196
|
-
let loader = new $
|
|
1197
|
-
this.layoutInfos.set(
|
|
1208
|
+
let rect = new (0, $jpY3B$reactstatelyvirtualizer.Rect)(0, loaderY, visibleWidth, loaderHeight);
|
|
1209
|
+
let loader = new (0, $jpY3B$reactstatelyvirtualizer.LayoutInfo)("loader", "loader", rect);
|
|
1210
|
+
this.layoutInfos.set("loader", loader);
|
|
1198
1211
|
y = loader.rect.maxY;
|
|
1199
1212
|
}
|
|
1200
1213
|
if (this.collection.size === 0 && !this.isLoading) {
|
|
1201
|
-
let rect = new $
|
|
1202
|
-
let placeholder = new $
|
|
1203
|
-
this.layoutInfos.set(
|
|
1214
|
+
let rect = new (0, $jpY3B$reactstatelyvirtualizer.Rect)(0, 0, visibleWidth, visibleHeight);
|
|
1215
|
+
let placeholder = new (0, $jpY3B$reactstatelyvirtualizer.LayoutInfo)("placeholder", "placeholder", rect);
|
|
1216
|
+
this.layoutInfos.set("placeholder", placeholder);
|
|
1204
1217
|
y = placeholder.rect.maxY;
|
|
1205
1218
|
}
|
|
1206
|
-
this.contentSize = new $
|
|
1219
|
+
this.contentSize = new (0, $jpY3B$reactstatelyvirtualizer.Size)(visibleWidth, y);
|
|
1207
1220
|
}
|
|
1208
1221
|
buildChild(node, y, index) {
|
|
1209
1222
|
let row = Math.floor(index / this.numColumns);
|
|
1210
1223
|
let column = index % this.numColumns;
|
|
1211
1224
|
let x = this.margin + column * (this.itemSize.width + this.horizontalSpacing);
|
|
1212
1225
|
y = this.margin + row * (this.itemSize.height + this.minSpace.height);
|
|
1213
|
-
let rect = new $
|
|
1226
|
+
let rect = new (0, $jpY3B$reactstatelyvirtualizer.Rect)(x, y, this.itemSize.width, this.itemSize.height);
|
|
1214
1227
|
// TODO: Perhaps have it so that the child key for each row is stored with the layoutInfo?
|
|
1215
|
-
let layoutInfo = new $
|
|
1228
|
+
let layoutInfo = new (0, $jpY3B$reactstatelyvirtualizer.LayoutInfo)(node.type, node.key, rect);
|
|
1216
1229
|
layoutInfo.allowOverflow = true;
|
|
1217
1230
|
this.layoutInfos.set(node.key, layoutInfo);
|
|
1218
1231
|
return layoutInfo;
|
|
@@ -1221,38 +1234,37 @@ class $fdeb61baab0a7b8f$export$7d2b12578154a735 extends $22665c819b87f5f9$export
|
|
|
1221
1234
|
// then return the key that occupies the row + column below. This can be done by figuring out how many cards exist per column then dividing the
|
|
1222
1235
|
// collection contents by that number (which will give us the row distribution)
|
|
1223
1236
|
getKeyBelow(key) {
|
|
1224
|
-
var
|
|
1237
|
+
var _getFirstItem;
|
|
1225
1238
|
// Expected key is the currently focused cell so we need the parent row key
|
|
1226
1239
|
let parentRowKey = this.collection.getItem(key).parentKey;
|
|
1227
1240
|
let indexRowBelow;
|
|
1228
|
-
let index = this.collection.rows.findIndex((card)=>card.key === parentRowKey
|
|
1229
|
-
);
|
|
1241
|
+
let index = this.collection.rows.findIndex((card)=>card.key === parentRowKey);
|
|
1230
1242
|
if (index !== -1) indexRowBelow = index + this.numColumns;
|
|
1231
1243
|
else return null;
|
|
1232
|
-
|
|
1244
|
+
let row = this.collection.rows[indexRowBelow];
|
|
1245
|
+
return row ? (_getFirstItem = (0, $jpY3B$reactstatelycollections.getFirstItem)((0, $jpY3B$reactstatelycollections.getChildNodes)(row, this.collection))) === null || _getFirstItem === void 0 ? void 0 : _getFirstItem.key : null;
|
|
1233
1246
|
}
|
|
1234
1247
|
getKeyAbove(key) {
|
|
1235
|
-
var
|
|
1248
|
+
var _getFirstItem;
|
|
1236
1249
|
// Expected key is the currently focused cell so we need the parent row key
|
|
1237
1250
|
let parentRowKey = this.collection.getItem(key).parentKey;
|
|
1238
1251
|
let indexRowAbove;
|
|
1239
|
-
let index = this.collection.rows.findIndex((card)=>card.key === parentRowKey
|
|
1240
|
-
);
|
|
1252
|
+
let index = this.collection.rows.findIndex((card)=>card.key === parentRowKey);
|
|
1241
1253
|
if (index !== -1) indexRowAbove = index - this.numColumns;
|
|
1242
1254
|
else return null;
|
|
1243
|
-
|
|
1255
|
+
let row = this.collection.rows[indexRowAbove];
|
|
1256
|
+
return row ? (_getFirstItem = (0, $jpY3B$reactstatelycollections.getFirstItem)((0, $jpY3B$reactstatelycollections.getChildNodes)(row, this.collection))) === null || _getFirstItem === void 0 ? void 0 : _getFirstItem.key : null;
|
|
1244
1257
|
}
|
|
1245
|
-
constructor(options = {
|
|
1246
|
-
}){
|
|
1258
|
+
constructor(options = {}){
|
|
1247
1259
|
super(options);
|
|
1248
|
-
let cardSize =
|
|
1249
|
-
this.cardOrientation = options.cardOrientation ||
|
|
1250
|
-
this.minItemSize = options.minItemSize || $
|
|
1251
|
-
this.maxItemSize = options.maxItemSize || $
|
|
1252
|
-
this.margin = options.margin != null ? options.margin : $
|
|
1253
|
-
this.minSpace = options.minSpace || $
|
|
1254
|
-
this.maxColumns = options.maxColumns || $
|
|
1255
|
-
this.itemPadding = options.itemPadding != null ? options.itemPadding : $
|
|
1260
|
+
let cardSize = "L";
|
|
1261
|
+
this.cardOrientation = options.cardOrientation || "vertical";
|
|
1262
|
+
this.minItemSize = options.minItemSize || $71b727f94b595b1a$var$DEFAULT_OPTIONS[cardSize].minItemSize[this.cardOrientation];
|
|
1263
|
+
this.maxItemSize = options.maxItemSize || $71b727f94b595b1a$var$DEFAULT_OPTIONS[cardSize].maxItemSize;
|
|
1264
|
+
this.margin = options.margin != null ? options.margin : $71b727f94b595b1a$var$DEFAULT_OPTIONS[cardSize].margin;
|
|
1265
|
+
this.minSpace = options.minSpace || $71b727f94b595b1a$var$DEFAULT_OPTIONS[cardSize].minSpace;
|
|
1266
|
+
this.maxColumns = options.maxColumns || $71b727f94b595b1a$var$DEFAULT_OPTIONS[cardSize].maxColumns;
|
|
1267
|
+
this.itemPadding = options.itemPadding != null ? options.itemPadding : $71b727f94b595b1a$var$DEFAULT_OPTIONS[cardSize].itemPadding[this.cardOrientation][this.scale];
|
|
1256
1268
|
this.itemSize = null;
|
|
1257
1269
|
this.numColumns = 0;
|
|
1258
1270
|
this.numRows = 0;
|
|
@@ -1261,14 +1273,22 @@ class $fdeb61baab0a7b8f$export$7d2b12578154a735 extends $22665c819b87f5f9$export
|
|
|
1261
1273
|
}
|
|
1262
1274
|
|
|
1263
1275
|
|
|
1264
|
-
|
|
1276
|
+
/*
|
|
1277
|
+
* Copyright 2021 Adobe. All rights reserved.
|
|
1278
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
1279
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
1280
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
1281
|
+
*
|
|
1282
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
1283
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
1284
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
1285
|
+
* governing permissions and limitations under the License.
|
|
1286
|
+
*/
|
|
1265
1287
|
|
|
1266
|
-
$parcel$export($35615160fbc17b4b$exports, "WaterfallLayout", () => $35615160fbc17b4b$export$e9f7cda058ba8df8);
|
|
1267
1288
|
|
|
1268
|
-
|
|
1269
|
-
class $35615160fbc17b4b$export$e9f7cda058ba8df8 extends $22665c819b87f5f9$export$64943d2e59d72a29 {
|
|
1289
|
+
class $632abf8fbf0ad57b$export$e9f7cda058ba8df8 extends (0, $5ee605f09afaa4de$export$64943d2e59d72a29) {
|
|
1270
1290
|
get layoutType() {
|
|
1271
|
-
return
|
|
1291
|
+
return "waterfall";
|
|
1272
1292
|
}
|
|
1273
1293
|
buildCollection(invalidationContext) {
|
|
1274
1294
|
// Compute the number of columns needed to display the content
|
|
@@ -1308,8 +1328,8 @@ class $35615160fbc17b4b$export$e9f7cda058ba8df8 extends $22665c819b87f5f9$export
|
|
|
1308
1328
|
let column = this.getNextColumnIndex(columnHeights);
|
|
1309
1329
|
let x = this.margin + column * (itemWidth + horizontalSpacing);
|
|
1310
1330
|
let y = columnHeights[column];
|
|
1311
|
-
let rect = new $
|
|
1312
|
-
let layoutInfo = new $
|
|
1331
|
+
let rect = new (0, $jpY3B$reactstatelyvirtualizer.Rect)(x, y, itemWidth, height);
|
|
1332
|
+
let layoutInfo = new (0, $jpY3B$reactstatelyvirtualizer.LayoutInfo)(node.type, key, rect);
|
|
1313
1333
|
layoutInfo.estimatedSize = estimatedSize;
|
|
1314
1334
|
layoutInfo.allowOverflow = true;
|
|
1315
1335
|
this.layoutInfos.set(key, layoutInfo);
|
|
@@ -1333,18 +1353,18 @@ class $35615160fbc17b4b$export$e9f7cda058ba8df8 extends $22665c819b87f5f9$export
|
|
|
1333
1353
|
loaderY = 0;
|
|
1334
1354
|
loaderHeight = this.virtualizer.visibleRect.height || 60;
|
|
1335
1355
|
}
|
|
1336
|
-
let rect = new $
|
|
1337
|
-
let loader = new $
|
|
1338
|
-
this.layoutInfos.set(
|
|
1356
|
+
let rect = new (0, $jpY3B$reactstatelyvirtualizer.Rect)(0, loaderY, this.virtualizer.visibleRect.width, loaderHeight);
|
|
1357
|
+
let loader = new (0, $jpY3B$reactstatelyvirtualizer.LayoutInfo)("loader", "loader", rect);
|
|
1358
|
+
this.layoutInfos.set("loader", loader);
|
|
1339
1359
|
y = loader.rect.maxY;
|
|
1340
1360
|
}
|
|
1341
1361
|
if (this.collection.size === 0 && !this.isLoading) {
|
|
1342
|
-
let rect = new $
|
|
1343
|
-
let placeholder = new $
|
|
1344
|
-
this.layoutInfos.set(
|
|
1362
|
+
let rect = new (0, $jpY3B$reactstatelyvirtualizer.Rect)(0, 0, this.virtualizer.visibleRect.width, this.virtualizer.visibleRect.height);
|
|
1363
|
+
let placeholder = new (0, $jpY3B$reactstatelyvirtualizer.LayoutInfo)("placeholder", "placeholder", rect);
|
|
1364
|
+
this.layoutInfos.set("placeholder", placeholder);
|
|
1345
1365
|
y = placeholder.rect.maxY;
|
|
1346
1366
|
}
|
|
1347
|
-
this.contentSize = new $
|
|
1367
|
+
this.contentSize = new (0, $jpY3B$reactstatelyvirtualizer.Size)(this.virtualizer.visibleRect.width, y);
|
|
1348
1368
|
}
|
|
1349
1369
|
updateItemSize(key, size) {
|
|
1350
1370
|
let layoutInfo = this.layoutInfos.get(key);
|
|
@@ -1366,53 +1386,54 @@ class $35615160fbc17b4b$export$e9f7cda058ba8df8 extends $22665c819b87f5f9$export
|
|
|
1366
1386
|
return minIndex;
|
|
1367
1387
|
}
|
|
1368
1388
|
getClosestRight(key) {
|
|
1369
|
-
var
|
|
1389
|
+
var _this__findClosest, _getFirstItem;
|
|
1370
1390
|
let layoutInfo = this.getLayoutInfo(key);
|
|
1371
1391
|
// Refactored from v2. Current strategy is to find the closest card in the adjacent column.
|
|
1372
1392
|
// This prevent the issue where it was possible that the closest layoutInfo would be two columns over due to the middle card being exceptionally tall
|
|
1373
1393
|
// and thus the top corner to top corner distance was massive.
|
|
1374
1394
|
// First look for a card to the immediate right of the current card. If we can't find any, look for the nearest card in the entire column to the right of the card
|
|
1375
|
-
let rect = new $
|
|
1376
|
-
key = (
|
|
1395
|
+
let rect = new (0, $jpY3B$reactstatelyvirtualizer.Rect)(layoutInfo.rect.maxX + 1, layoutInfo.rect.y, layoutInfo.rect.width + this.horizontalSpacing, layoutInfo.rect.height);
|
|
1396
|
+
key = (_this__findClosest = this._findClosest(layoutInfo.rect, rect)) === null || _this__findClosest === void 0 ? void 0 : _this__findClosest.key;
|
|
1377
1397
|
if (!key) {
|
|
1378
|
-
var
|
|
1379
|
-
rect = new $
|
|
1380
|
-
key = (
|
|
1398
|
+
var _this__findClosest1;
|
|
1399
|
+
rect = new (0, $jpY3B$reactstatelyvirtualizer.Rect)(layoutInfo.rect.maxX + 1, 0, layoutInfo.rect.width + this.horizontalSpacing, this.virtualizer.contentSize.height);
|
|
1400
|
+
key = (_this__findClosest1 = this._findClosest(layoutInfo.rect, rect)) === null || _this__findClosest1 === void 0 ? void 0 : _this__findClosest1.key;
|
|
1381
1401
|
}
|
|
1382
|
-
|
|
1402
|
+
let item = this.collection.getItem(key);
|
|
1403
|
+
return (_getFirstItem = (0, $jpY3B$reactstatelycollections.getFirstItem)((0, $jpY3B$reactstatelycollections.getChildNodes)(item, this.collection))) === null || _getFirstItem === void 0 ? void 0 : _getFirstItem.key;
|
|
1383
1404
|
}
|
|
1384
1405
|
getClosestLeft(key) {
|
|
1385
|
-
var
|
|
1406
|
+
var _this__findClosest, _getFirstItem;
|
|
1386
1407
|
let layoutInfo = this.getLayoutInfo(key);
|
|
1387
1408
|
// First look for a card to the immediate left of the current card. If we can't find any, look for the nearest card in the entire column to the left of the card
|
|
1388
|
-
let rect = new $
|
|
1389
|
-
key = (
|
|
1409
|
+
let rect = new (0, $jpY3B$reactstatelyvirtualizer.Rect)(layoutInfo.rect.x - layoutInfo.rect.width - this.horizontalSpacing - 1, layoutInfo.rect.y, layoutInfo.rect.width + this.horizontalSpacing, layoutInfo.rect.height);
|
|
1410
|
+
key = (_this__findClosest = this._findClosest(layoutInfo.rect, rect)) === null || _this__findClosest === void 0 ? void 0 : _this__findClosest.key;
|
|
1390
1411
|
if (!key) {
|
|
1391
|
-
var
|
|
1392
|
-
rect = new $
|
|
1393
|
-
key = (
|
|
1412
|
+
var _this__findClosest1;
|
|
1413
|
+
rect = new (0, $jpY3B$reactstatelyvirtualizer.Rect)(layoutInfo.rect.x - layoutInfo.rect.width - this.horizontalSpacing - 1, 0, layoutInfo.rect.width + this.horizontalSpacing, this.virtualizer.contentSize.height);
|
|
1414
|
+
key = (_this__findClosest1 = this._findClosest(layoutInfo.rect, rect)) === null || _this__findClosest1 === void 0 ? void 0 : _this__findClosest1.key;
|
|
1394
1415
|
}
|
|
1395
|
-
|
|
1416
|
+
let item = this.collection.getItem(key);
|
|
1417
|
+
return (_getFirstItem = (0, $jpY3B$reactstatelycollections.getFirstItem)((0, $jpY3B$reactstatelycollections.getChildNodes)(item, this.collection))) === null || _getFirstItem === void 0 ? void 0 : _getFirstItem.key;
|
|
1396
1418
|
}
|
|
1397
1419
|
getKeyRightOf(key) {
|
|
1398
1420
|
// Expected key is the currently focused cell so we need the parent row key
|
|
1399
1421
|
let parentRowKey = this.collection.getItem(key).parentKey;
|
|
1400
|
-
return this.direction ===
|
|
1422
|
+
return this.direction === "rtl" ? this.getClosestLeft(parentRowKey) : this.getClosestRight(parentRowKey);
|
|
1401
1423
|
}
|
|
1402
1424
|
getKeyLeftOf(key) {
|
|
1403
1425
|
// Expected key is the currently focused cell so we need the parent row key
|
|
1404
1426
|
let parentRowKey = this.collection.getItem(key).parentKey;
|
|
1405
|
-
return this.direction ===
|
|
1427
|
+
return this.direction === "rtl" ? this.getClosestRight(parentRowKey) : this.getClosestLeft(parentRowKey);
|
|
1406
1428
|
}
|
|
1407
|
-
constructor(options = {
|
|
1408
|
-
}){
|
|
1429
|
+
constructor(options = {}){
|
|
1409
1430
|
// TODO: WaterfallLayout doesn't use card size in v2, but perhaps it should support it? Perhaps it would modify
|
|
1410
1431
|
// minItemSize defaults or other things
|
|
1411
1432
|
super(options);
|
|
1412
|
-
this.minItemSize = options.minItemSize || new $
|
|
1413
|
-
this.maxItemSize = options.maxItemSize || new $
|
|
1433
|
+
this.minItemSize = options.minItemSize || new (0, $jpY3B$reactstatelyvirtualizer.Size)(240, 136);
|
|
1434
|
+
this.maxItemSize = options.maxItemSize || new (0, $jpY3B$reactstatelyvirtualizer.Size)(Infinity, Infinity);
|
|
1414
1435
|
this.margin = options.margin != null ? options.margin : 24;
|
|
1415
|
-
this.minSpace = options.minSpace || new $
|
|
1436
|
+
this.minSpace = options.minSpace || new (0, $jpY3B$reactstatelyvirtualizer.Size)(18, 18);
|
|
1416
1437
|
this.maxColumns = options.maxColumns || Infinity;
|
|
1417
1438
|
this.itemWidth = 0;
|
|
1418
1439
|
this.numColumns = 0;
|
|
@@ -1422,40 +1443,42 @@ class $35615160fbc17b4b$export$e9f7cda058ba8df8 extends $22665c819b87f5f9$export
|
|
|
1422
1443
|
}
|
|
1423
1444
|
|
|
1424
1445
|
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1446
|
+
/*
|
|
1447
|
+
* Copyright 2021 Adobe. All rights reserved.
|
|
1448
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
1449
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
1450
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
1451
|
+
*
|
|
1452
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
1453
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
1454
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
1455
|
+
* governing permissions and limitations under the License.
|
|
1456
|
+
*/
|
|
1428
1457
|
|
|
1429
1458
|
|
|
1430
|
-
|
|
1431
|
-
let
|
|
1432
|
-
let context = $89771f27f8f654bb$export$fea0b38586ec8f13();
|
|
1459
|
+
let $6b630ac4b78ba7f3$var$Card = /*#__PURE__*/ (0, $jpY3B$react.forwardRef)((props, ref)=>{
|
|
1460
|
+
let context = (0, $e57ab98cef2f01a5$export$fea0b38586ec8f13)();
|
|
1433
1461
|
if (context !== null) return null;
|
|
1434
|
-
else return
|
|
1462
|
+
else return /*#__PURE__*/ (0, ($parcel$interopDefault($jpY3B$react))).createElement((0, $7888205ff7de382f$export$7a6ccaf429ad93a8), {
|
|
1435
1463
|
...props,
|
|
1436
1464
|
ref: ref
|
|
1437
|
-
})
|
|
1465
|
+
});
|
|
1438
1466
|
});
|
|
1439
1467
|
// @ts-ignore
|
|
1440
|
-
$
|
|
1441
|
-
let { children: children
|
|
1468
|
+
$6b630ac4b78ba7f3$var$Card.getCollectionNode = function* getCollectionNode(props) {
|
|
1469
|
+
let { children: children, textValue: textValue } = props;
|
|
1442
1470
|
yield {
|
|
1443
|
-
type:
|
|
1471
|
+
type: "item",
|
|
1444
1472
|
props: props,
|
|
1445
1473
|
rendered: children,
|
|
1446
|
-
|
|
1474
|
+
"aria-label": props["aria-label"],
|
|
1447
1475
|
hasChildNodes: false,
|
|
1448
1476
|
textValue: textValue
|
|
1449
1477
|
};
|
|
1450
1478
|
};
|
|
1451
|
-
let $
|
|
1479
|
+
let $6b630ac4b78ba7f3$export$60332b2344f7fe41 = $6b630ac4b78ba7f3$var$Card;
|
|
1452
1480
|
|
|
1453
1481
|
|
|
1454
|
-
$parcel$exportWildcard(module.exports, $434cfc518fa31831$exports);
|
|
1455
|
-
$parcel$exportWildcard(module.exports, $5bf28b6236de0f59$exports);
|
|
1456
|
-
$parcel$exportWildcard(module.exports, $fdeb61baab0a7b8f$exports);
|
|
1457
|
-
$parcel$exportWildcard(module.exports, $35615160fbc17b4b$exports);
|
|
1458
|
-
$parcel$exportWildcard(module.exports, $0582956eda9cee76$exports);
|
|
1459
1482
|
|
|
1460
1483
|
|
|
1461
1484
|
//# sourceMappingURL=main.js.map
|