@depict-ai/ui 4.10.22 → 4.10.25
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/ES10/index.cjs +80 -31
- package/ES10/index.d.ts +1 -1
- package/ES10/index.js +80 -31
- package/latest/index.cjs +72 -26
- package/latest/index.d.ts +1 -1
- package/latest/index.js +72 -26
- package/package.json +9 -4
- package/server/ES10/index.cjs +67 -24
- package/server/ES10/index.d.ts +1 -1
- package/server/ES10/index.js +67 -24
- package/server/latest/index.cjs +59 -19
- package/server/latest/index.d.ts +1 -1
- package/server/latest/index.js +59 -19
package/server/latest/index.cjs
CHANGED
|
@@ -109,7 +109,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $1f4925833f07df29$export$5b7
|
|
|
109
109
|
$parcel$export(module.exports, "QuickLinks", () => $1f4925833f07df29$export$de035477d6fef996);
|
|
110
110
|
$parcel$export(module.exports, "CategoryPage", () => $14f289047713d67a$export$e2bf8ce7779e827e);
|
|
111
111
|
/*! Depict.ai search and product listing SDK */
|
|
112
|
-
const $b757f75811f3261f$export$83d89fbfd8236492 = "4.10.
|
|
112
|
+
const $b757f75811f3261f$export$83d89fbfd8236492 = "4.10.25";
|
|
113
113
|
function $b54e6192d0caa293$export$d9f36cf74e24d595(media_query) {
|
|
114
114
|
const signal = $5vyXB$solidjs.createSignal(false);
|
|
115
115
|
$5vyXB$solidjs.onCleanup($5vyXB$depictaiutilishared.javascript_media_query(media_query, ({
|
|
@@ -1153,7 +1153,10 @@ function $75777da1687ba3f6$export$e2f22da34aaf310a(props, container_element, ins
|
|
|
1153
1153
|
const base_styling = $5vyXB$solidjs.createMemo(() => {
|
|
1154
1154
|
return `${container_selector}{display:grid;}`;
|
|
1155
1155
|
});
|
|
1156
|
-
const get_styling = $5vyXB$solidjs.createMemo(() => base_styling() + col_styling())
|
|
1156
|
+
const get_styling = $5vyXB$solidjs.createMemo(() => base_styling() + col_styling() + (props.content_block_row_styles || []).map(({
|
|
1157
|
+
row: row,
|
|
1158
|
+
template: template
|
|
1159
|
+
}) => `${container_selector}:has(>.content-block-wrapper.spans-multiple-rows[data-content-block-row="${row}"]){grid-template-rows:${template};}`).join(""));
|
|
1157
1160
|
const style_element = $5vyXB$solidjsweb.ssr($75777da1687ba3f6$var$_tmpl$, $5vyXB$solidjsweb.ssrHydrationKey(), get_styling); // need to create this after set_styling has been called or else there will be no styling in the SSR'd output
|
|
1158
1161
|
if (insert_after_container) container_element.after(style_element);
|
|
1159
1162
|
return [container_element, style_element];
|
|
@@ -1276,7 +1279,7 @@ function $3bc4a89b971a3af5$export$3f37af283f8fb843(props) {
|
|
|
1276
1279
|
}
|
|
1277
1280
|
});
|
|
1278
1281
|
}
|
|
1279
|
-
var $d92f338ba8f9da9b$var$_tmpl$ = ["<div", ' class="', '" style="', '">', "</div>"];
|
|
1282
|
+
var $d92f338ba8f9da9b$var$_tmpl$ = ["<div", ' class="', '"', ' style="', '">', "</div>"];
|
|
1280
1283
|
function $d92f338ba8f9da9b$export$791ef57e62e21c3f({
|
|
1281
1284
|
content_blocks_: incoming_content_blocks,
|
|
1282
1285
|
cols_at_size_: cols_at_size_,
|
|
@@ -1315,6 +1318,7 @@ function $d92f338ba8f9da9b$export$791ef57e62e21c3f({
|
|
|
1315
1318
|
}));
|
|
1316
1319
|
const content_blocks_by_index_ = $5vyXB$solidjs.createMemo(() => remapped_().content_blocks_by_index_);
|
|
1317
1320
|
return Object.assign(content_blocks_by_index_, {
|
|
1321
|
+
row_styles_: $5vyXB$solidjs.createMemo(() => $d92f338ba8f9da9b$export$c4e1acd6a7f84fcf(get_wrapped_blocks_(), n_cols_currently_showing_())),
|
|
1318
1322
|
trailing_: product_count => $d92f338ba8f9da9b$export$b94605e5b3ce01c({
|
|
1319
1323
|
...remapped_(),
|
|
1320
1324
|
n_cols_currently_showing_: n_cols_currently_showing_(),
|
|
@@ -1322,6 +1326,24 @@ function $d92f338ba8f9da9b$export$791ef57e62e21c3f({
|
|
|
1322
1326
|
})
|
|
1323
1327
|
});
|
|
1324
1328
|
}
|
|
1329
|
+
function $d92f338ba8f9da9b$export$c4e1acd6a7f84fcf(blocks, n_cols) {
|
|
1330
|
+
const styles = [];
|
|
1331
|
+
if (!n_cols) return styles;
|
|
1332
|
+
let last_row = 0;
|
|
1333
|
+
blocks.forEach((block, row) => {
|
|
1334
|
+
if (!block || block.span_rows <= 1 || block.span_columns >= n_cols) return;
|
|
1335
|
+
last_row = Math.max(last_row, row + block.span_rows);
|
|
1336
|
+
// Give product rows equal heights. Full-width cards keep their own height.
|
|
1337
|
+
const tracks = Array.from({
|
|
1338
|
+
length: last_row
|
|
1339
|
+
}, (_, index) => blocks[index]?.span_columns === n_cols ? "auto" : "1fr");
|
|
1340
|
+
styles.push({
|
|
1341
|
+
row: row,
|
|
1342
|
+
template: tracks.join(" ")
|
|
1343
|
+
});
|
|
1344
|
+
});
|
|
1345
|
+
return styles;
|
|
1346
|
+
}
|
|
1325
1347
|
function $d92f338ba8f9da9b$export$92aa5d691d588f3f({
|
|
1326
1348
|
wrapped_blocks_: wrapped_blocks_,
|
|
1327
1349
|
n_cols_currently_showing_: n_cols_currently_showing_
|
|
@@ -1406,11 +1428,16 @@ function $d92f338ba8f9da9b$export$b94605e5b3ce01c({
|
|
|
1406
1428
|
if (!n_cols_currently_showing_ || product_count <= 0) return trailing;
|
|
1407
1429
|
// Find the row the last product lands in: each row has room for the columns that blocks don't take up
|
|
1408
1430
|
let last_product_row = 0;
|
|
1431
|
+
let last_product_row_is_full = false;
|
|
1409
1432
|
for (let seen_products = 0;; last_product_row++) {
|
|
1410
1433
|
const row = displaced_products_[last_product_row];
|
|
1411
1434
|
const taken_by_blocks = typeof row === "number" ? row : row ? row.filter(item => item).length : 0;
|
|
1412
|
-
|
|
1413
|
-
if (seen_products >= product_count)
|
|
1435
|
+
const product_slots_in_row = Math.max(0, n_cols_currently_showing_ - taken_by_blocks);
|
|
1436
|
+
if (seen_products + product_slots_in_row >= product_count) {
|
|
1437
|
+
last_product_row_is_full = seen_products + product_slots_in_row === product_count;
|
|
1438
|
+
break;
|
|
1439
|
+
}
|
|
1440
|
+
seen_products += product_slots_in_row;
|
|
1414
1441
|
// Rows past the ones blocks take up all have room for products, so we're done by then at the latest
|
|
1415
1442
|
if (last_product_row >= displaced_products_.length + product_count) break;
|
|
1416
1443
|
}
|
|
@@ -1418,35 +1445,41 @@ function $d92f338ba8f9da9b$export$b94605e5b3ce01c({
|
|
|
1418
1445
|
const block = content_blocks_by_index_[i];
|
|
1419
1446
|
if (block === undefined) continue;
|
|
1420
1447
|
const rows = rows_by_index_[i] || [];
|
|
1448
|
+
const last_allowed_row = last_product_row + (last_product_row_is_full ? 1 : 0);
|
|
1421
1449
|
if (Array.isArray(block) && rows.length > 1) {
|
|
1422
|
-
// Several blocks share this index
|
|
1423
|
-
const
|
|
1424
|
-
if (
|
|
1450
|
+
// Several blocks can share this index. Keep only blocks in allowed trailing rows.
|
|
1451
|
+
const in_trailing_rows = block.filter((_, j) => rows[j] <= last_allowed_row);
|
|
1452
|
+
if (in_trailing_rows.length) trailing.push(in_trailing_rows);
|
|
1425
1453
|
continue;
|
|
1426
1454
|
}
|
|
1427
|
-
if ((rows[0] ?? Infinity) >
|
|
1455
|
+
if ((rows[0] ?? Infinity) > last_allowed_row) continue; // Keep cards meant for later rows hidden after filtering.
|
|
1428
1456
|
trailing.push(block);
|
|
1429
1457
|
}
|
|
1430
1458
|
return trailing;
|
|
1431
1459
|
}
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1460
|
+
function $d92f338ba8f9da9b$export$911278b0390ae36e(block, max_span_columns) {
|
|
1461
|
+
const span_columns = Math.min(block.span_columns, max_span_columns ?? Infinity);
|
|
1462
|
+
const spans_whole_row = span_columns === max_span_columns;
|
|
1463
|
+
return {
|
|
1464
|
+
span_columns: span_columns,
|
|
1465
|
+
span_rows: spans_whole_row ? 1 : block.span_rows,
|
|
1466
|
+
spans_whole_row: spans_whole_row,
|
|
1467
|
+
spans_multiple_rows: !spans_whole_row && block.span_rows > 1
|
|
1468
|
+
};
|
|
1469
|
+
}
|
|
1437
1470
|
function $d92f338ba8f9da9b$var$wrap_blocks_in_div(rendered_content_blocks, max_span_columns) {
|
|
1438
|
-
const get_wrapped_blocks = $5vyXB$solidjs.mapArray(() => rendered_content_blocks, block => {
|
|
1471
|
+
const get_wrapped_blocks = $5vyXB$solidjs.mapArray(() => rendered_content_blocks, (block, row) => {
|
|
1439
1472
|
if (!block) return;
|
|
1440
|
-
const
|
|
1441
|
-
|
|
1442
|
-
const final_span_rows = $5vyXB$solidjs.createMemo(() =>
|
|
1473
|
+
const final_spans = $5vyXB$solidjs.createMemo(() => $d92f338ba8f9da9b$export$911278b0390ae36e(block, max_span_columns()));
|
|
1474
|
+
const final_span_columns = $5vyXB$solidjs.createMemo(() => final_spans().span_columns);
|
|
1475
|
+
const final_span_rows = $5vyXB$solidjs.createMemo(() => final_spans().span_rows);
|
|
1443
1476
|
const [rendering_delayed, set_rendering_delayed_] = $5vyXB$solidjs.createSignal(true);
|
|
1444
1477
|
const content = $5vyXB$solidjsweb.createComponent((0, $5vyXB$solidjs.Show), {
|
|
1445
1478
|
get when() {
|
|
1446
1479
|
return !rendering_delayed();
|
|
1447
1480
|
},
|
|
1448
1481
|
get children() {
|
|
1449
|
-
return $5vyXB$solidjsweb.ssr($d92f338ba8f9da9b$var$_tmpl$, $5vyXB$solidjsweb.ssrHydrationKey(), `content-block-wrapper ${
|
|
1482
|
+
return $5vyXB$solidjsweb.ssr($d92f338ba8f9da9b$var$_tmpl$, $5vyXB$solidjsweb.ssrHydrationKey(), `content-block-wrapper ${final_spans().spans_whole_row ? "spans-whole-row" : ""} ${final_spans().spans_multiple_rows ? "spans-multiple-rows" : ""}`, $5vyXB$solidjsweb.ssrAttribute("data-content-block-row", $5vyXB$solidjsweb.escape(row(), true), false), "grid-column:" + `span ${$5vyXB$solidjsweb.escape(final_span_columns(), true)}` + (";grid-row:" + `span ${$5vyXB$solidjsweb.escape(final_span_rows(), true)}`) + (";spans_columns_variable_name:" + $5vyXB$solidjsweb.escape(final_span_columns(), true)), $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent($d92f338ba8f9da9b$var$RenderContent, {
|
|
1450
1483
|
get content() {
|
|
1451
1484
|
return block.content;
|
|
1452
1485
|
}
|
|
@@ -1666,6 +1699,10 @@ function $fe76fb463cc60b89$export$3925f87b1545cfc6({
|
|
|
1666
1699
|
cols_at_size_: modified_cols_at_size,
|
|
1667
1700
|
set_top_row_shortened_by_: set_top_row_shortened_by_
|
|
1668
1701
|
}));
|
|
1702
|
+
const content_block_row_styles = $5vyXB$solidjs.createMemo(() => {
|
|
1703
|
+
const blocks = content_blocks_();
|
|
1704
|
+
return "row_styles_" in blocks ? blocks.row_styles_() : [];
|
|
1705
|
+
});
|
|
1669
1706
|
const rendered_placeholders = $5vyXB$solidjs.createMemo(() => {
|
|
1670
1707
|
if (get_should_have_placeholders_rendered()) return $0caf87eaa19079da$export$f33414a4df0afd3f({
|
|
1671
1708
|
content_blocks_: content_blocks_,
|
|
@@ -1765,6 +1802,9 @@ function $fe76fb463cc60b89$export$3925f87b1545cfc6({
|
|
|
1765
1802
|
class: "cards css-grid"
|
|
1766
1803
|
},
|
|
1767
1804
|
top_row_shortened_by_: top_row_shortened_by_,
|
|
1805
|
+
get content_block_row_styles() {
|
|
1806
|
+
return content_block_row_styles();
|
|
1807
|
+
},
|
|
1768
1808
|
children: listing_contents
|
|
1769
1809
|
});
|
|
1770
1810
|
},
|
package/server/latest/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ import { GetListingRequest } from "@depict-ai/types/api/GetListingRequest";
|
|
|
11
11
|
import { BaseSearchRequestV3 } from "@depict-ai/types/api/BaseSearchRequestV3";
|
|
12
12
|
import { FeaturedInDisplay } from "@depict-ai/types/api/FeaturedInResponseV3";
|
|
13
13
|
import { SearchFilter as _SearchFilter3 } from "@depict-ai/types/api/SearchRequestV2";
|
|
14
|
-
export const version = "4.10.
|
|
14
|
+
export const version = "4.10.25";
|
|
15
15
|
/**
|
|
16
16
|
* Use `javascript_media_query` but return a reactive accessor instead of taking a callback function
|
|
17
17
|
*/
|
package/server/latest/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import { createStore as $i7OB2$createStore, reconcile as $i7OB2$reconcile } from
|
|
|
7
7
|
/*! Depict.ai search and product listing SDK */
|
|
8
8
|
import { register_es_version } from "../../multi_import_deduplicator.mjs";
|
|
9
9
|
register_es_version("ui", "latest");
|
|
10
|
-
const $ec291e0010116877$export$83d89fbfd8236492 = "4.10.
|
|
10
|
+
const $ec291e0010116877$export$83d89fbfd8236492 = "4.10.25";
|
|
11
11
|
function $dc9262ef6f786812$export$d9f36cf74e24d595(media_query) {
|
|
12
12
|
const signal = $i7OB2$createSignal(false);
|
|
13
13
|
$i7OB2$onCleanup($i7OB2$javascript_media_query(media_query, ({
|
|
@@ -1051,7 +1051,10 @@ function $6dee9211e57ac31a$export$e2f22da34aaf310a(props, container_element, ins
|
|
|
1051
1051
|
const base_styling = $i7OB2$createMemo(() => {
|
|
1052
1052
|
return `${container_selector}{display:grid;}`;
|
|
1053
1053
|
});
|
|
1054
|
-
const get_styling = $i7OB2$createMemo(() => base_styling() + col_styling())
|
|
1054
|
+
const get_styling = $i7OB2$createMemo(() => base_styling() + col_styling() + (props.content_block_row_styles || []).map(({
|
|
1055
|
+
row: row,
|
|
1056
|
+
template: template
|
|
1057
|
+
}) => `${container_selector}:has(>.content-block-wrapper.spans-multiple-rows[data-content-block-row="${row}"]){grid-template-rows:${template};}`).join(""));
|
|
1055
1058
|
const style_element = $i7OB2$ssr($6dee9211e57ac31a$var$_tmpl$, $i7OB2$ssrHydrationKey(), get_styling); // need to create this after set_styling has been called or else there will be no styling in the SSR'd output
|
|
1056
1059
|
if (insert_after_container) container_element.after(style_element);
|
|
1057
1060
|
return [container_element, style_element];
|
|
@@ -1174,7 +1177,7 @@ function $7f60f09116a3fe61$export$3f37af283f8fb843(props) {
|
|
|
1174
1177
|
}
|
|
1175
1178
|
});
|
|
1176
1179
|
}
|
|
1177
|
-
var $e7a7eb102ddc0c79$var$_tmpl$ = ["<div", ' class="', '" style="', '">', "</div>"];
|
|
1180
|
+
var $e7a7eb102ddc0c79$var$_tmpl$ = ["<div", ' class="', '"', ' style="', '">', "</div>"];
|
|
1178
1181
|
function $e7a7eb102ddc0c79$export$791ef57e62e21c3f({
|
|
1179
1182
|
content_blocks_: incoming_content_blocks,
|
|
1180
1183
|
cols_at_size_: cols_at_size_,
|
|
@@ -1213,6 +1216,7 @@ function $e7a7eb102ddc0c79$export$791ef57e62e21c3f({
|
|
|
1213
1216
|
}));
|
|
1214
1217
|
const content_blocks_by_index_ = $i7OB2$createMemo(() => remapped_().content_blocks_by_index_);
|
|
1215
1218
|
return Object.assign(content_blocks_by_index_, {
|
|
1219
|
+
row_styles_: $i7OB2$createMemo(() => $e7a7eb102ddc0c79$export$c4e1acd6a7f84fcf(get_wrapped_blocks_(), n_cols_currently_showing_())),
|
|
1216
1220
|
trailing_: product_count => $e7a7eb102ddc0c79$export$b94605e5b3ce01c({
|
|
1217
1221
|
...remapped_(),
|
|
1218
1222
|
n_cols_currently_showing_: n_cols_currently_showing_(),
|
|
@@ -1220,6 +1224,24 @@ function $e7a7eb102ddc0c79$export$791ef57e62e21c3f({
|
|
|
1220
1224
|
})
|
|
1221
1225
|
});
|
|
1222
1226
|
}
|
|
1227
|
+
function $e7a7eb102ddc0c79$export$c4e1acd6a7f84fcf(blocks, n_cols) {
|
|
1228
|
+
const styles = [];
|
|
1229
|
+
if (!n_cols) return styles;
|
|
1230
|
+
let last_row = 0;
|
|
1231
|
+
blocks.forEach((block, row) => {
|
|
1232
|
+
if (!block || block.span_rows <= 1 || block.span_columns >= n_cols) return;
|
|
1233
|
+
last_row = Math.max(last_row, row + block.span_rows);
|
|
1234
|
+
// Give product rows equal heights. Full-width cards keep their own height.
|
|
1235
|
+
const tracks = Array.from({
|
|
1236
|
+
length: last_row
|
|
1237
|
+
}, (_, index) => blocks[index]?.span_columns === n_cols ? "auto" : "1fr");
|
|
1238
|
+
styles.push({
|
|
1239
|
+
row: row,
|
|
1240
|
+
template: tracks.join(" ")
|
|
1241
|
+
});
|
|
1242
|
+
});
|
|
1243
|
+
return styles;
|
|
1244
|
+
}
|
|
1223
1245
|
function $e7a7eb102ddc0c79$export$92aa5d691d588f3f({
|
|
1224
1246
|
wrapped_blocks_: wrapped_blocks_,
|
|
1225
1247
|
n_cols_currently_showing_: n_cols_currently_showing_
|
|
@@ -1304,11 +1326,16 @@ function $e7a7eb102ddc0c79$export$b94605e5b3ce01c({
|
|
|
1304
1326
|
if (!n_cols_currently_showing_ || product_count <= 0) return trailing;
|
|
1305
1327
|
// Find the row the last product lands in: each row has room for the columns that blocks don't take up
|
|
1306
1328
|
let last_product_row = 0;
|
|
1329
|
+
let last_product_row_is_full = false;
|
|
1307
1330
|
for (let seen_products = 0;; last_product_row++) {
|
|
1308
1331
|
const row = displaced_products_[last_product_row];
|
|
1309
1332
|
const taken_by_blocks = typeof row === "number" ? row : row ? row.filter(item => item).length : 0;
|
|
1310
|
-
|
|
1311
|
-
if (seen_products >= product_count)
|
|
1333
|
+
const product_slots_in_row = Math.max(0, n_cols_currently_showing_ - taken_by_blocks);
|
|
1334
|
+
if (seen_products + product_slots_in_row >= product_count) {
|
|
1335
|
+
last_product_row_is_full = seen_products + product_slots_in_row === product_count;
|
|
1336
|
+
break;
|
|
1337
|
+
}
|
|
1338
|
+
seen_products += product_slots_in_row;
|
|
1312
1339
|
// Rows past the ones blocks take up all have room for products, so we're done by then at the latest
|
|
1313
1340
|
if (last_product_row >= displaced_products_.length + product_count) break;
|
|
1314
1341
|
}
|
|
@@ -1316,35 +1343,41 @@ function $e7a7eb102ddc0c79$export$b94605e5b3ce01c({
|
|
|
1316
1343
|
const block = content_blocks_by_index_[i];
|
|
1317
1344
|
if (block === undefined) continue;
|
|
1318
1345
|
const rows = rows_by_index_[i] || [];
|
|
1346
|
+
const last_allowed_row = last_product_row + (last_product_row_is_full ? 1 : 0);
|
|
1319
1347
|
if (Array.isArray(block) && rows.length > 1) {
|
|
1320
|
-
// Several blocks share this index
|
|
1321
|
-
const
|
|
1322
|
-
if (
|
|
1348
|
+
// Several blocks can share this index. Keep only blocks in allowed trailing rows.
|
|
1349
|
+
const in_trailing_rows = block.filter((_, j) => rows[j] <= last_allowed_row);
|
|
1350
|
+
if (in_trailing_rows.length) trailing.push(in_trailing_rows);
|
|
1323
1351
|
continue;
|
|
1324
1352
|
}
|
|
1325
|
-
if ((rows[0] ?? Infinity) >
|
|
1353
|
+
if ((rows[0] ?? Infinity) > last_allowed_row) continue; // Keep cards meant for later rows hidden after filtering.
|
|
1326
1354
|
trailing.push(block);
|
|
1327
1355
|
}
|
|
1328
1356
|
return trailing;
|
|
1329
1357
|
}
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1358
|
+
function $e7a7eb102ddc0c79$export$911278b0390ae36e(block, max_span_columns) {
|
|
1359
|
+
const span_columns = Math.min(block.span_columns, max_span_columns ?? Infinity);
|
|
1360
|
+
const spans_whole_row = span_columns === max_span_columns;
|
|
1361
|
+
return {
|
|
1362
|
+
span_columns: span_columns,
|
|
1363
|
+
span_rows: spans_whole_row ? 1 : block.span_rows,
|
|
1364
|
+
spans_whole_row: spans_whole_row,
|
|
1365
|
+
spans_multiple_rows: !spans_whole_row && block.span_rows > 1
|
|
1366
|
+
};
|
|
1367
|
+
}
|
|
1335
1368
|
function $e7a7eb102ddc0c79$var$wrap_blocks_in_div(rendered_content_blocks, max_span_columns) {
|
|
1336
|
-
const get_wrapped_blocks = $i7OB2$mapArray(() => rendered_content_blocks, block => {
|
|
1369
|
+
const get_wrapped_blocks = $i7OB2$mapArray(() => rendered_content_blocks, (block, row) => {
|
|
1337
1370
|
if (!block) return;
|
|
1338
|
-
const
|
|
1339
|
-
|
|
1340
|
-
const final_span_rows = $i7OB2$createMemo(() =>
|
|
1371
|
+
const final_spans = $i7OB2$createMemo(() => $e7a7eb102ddc0c79$export$911278b0390ae36e(block, max_span_columns()));
|
|
1372
|
+
const final_span_columns = $i7OB2$createMemo(() => final_spans().span_columns);
|
|
1373
|
+
const final_span_rows = $i7OB2$createMemo(() => final_spans().span_rows);
|
|
1341
1374
|
const [rendering_delayed, set_rendering_delayed_] = $i7OB2$createSignal(true);
|
|
1342
1375
|
const content = $i7OB2$createComponent((0, $i7OB2$Show), {
|
|
1343
1376
|
get when() {
|
|
1344
1377
|
return !rendering_delayed();
|
|
1345
1378
|
},
|
|
1346
1379
|
get children() {
|
|
1347
|
-
return $i7OB2$ssr($e7a7eb102ddc0c79$var$_tmpl$, $i7OB2$ssrHydrationKey(), `content-block-wrapper ${
|
|
1380
|
+
return $i7OB2$ssr($e7a7eb102ddc0c79$var$_tmpl$, $i7OB2$ssrHydrationKey(), `content-block-wrapper ${final_spans().spans_whole_row ? "spans-whole-row" : ""} ${final_spans().spans_multiple_rows ? "spans-multiple-rows" : ""}`, $i7OB2$ssrAttribute("data-content-block-row", $i7OB2$escape(row(), true), false), "grid-column:" + `span ${$i7OB2$escape(final_span_columns(), true)}` + (";grid-row:" + `span ${$i7OB2$escape(final_span_rows(), true)}`) + (";spans_columns_variable_name:" + $i7OB2$escape(final_span_columns(), true)), $i7OB2$escape($i7OB2$createComponent($e7a7eb102ddc0c79$var$RenderContent, {
|
|
1348
1381
|
get content() {
|
|
1349
1382
|
return block.content;
|
|
1350
1383
|
}
|
|
@@ -1564,6 +1597,10 @@ function $2d25e42846eac370$export$3925f87b1545cfc6({
|
|
|
1564
1597
|
cols_at_size_: modified_cols_at_size,
|
|
1565
1598
|
set_top_row_shortened_by_: set_top_row_shortened_by_
|
|
1566
1599
|
}));
|
|
1600
|
+
const content_block_row_styles = $i7OB2$createMemo(() => {
|
|
1601
|
+
const blocks = content_blocks_();
|
|
1602
|
+
return "row_styles_" in blocks ? blocks.row_styles_() : [];
|
|
1603
|
+
});
|
|
1567
1604
|
const rendered_placeholders = $i7OB2$createMemo(() => {
|
|
1568
1605
|
if (get_should_have_placeholders_rendered()) return $6e41f1fde994db72$export$f33414a4df0afd3f({
|
|
1569
1606
|
content_blocks_: content_blocks_,
|
|
@@ -1663,6 +1700,9 @@ function $2d25e42846eac370$export$3925f87b1545cfc6({
|
|
|
1663
1700
|
class: "cards css-grid"
|
|
1664
1701
|
},
|
|
1665
1702
|
top_row_shortened_by_: top_row_shortened_by_,
|
|
1703
|
+
get content_block_row_styles() {
|
|
1704
|
+
return content_block_row_styles();
|
|
1705
|
+
},
|
|
1666
1706
|
children: listing_contents
|
|
1667
1707
|
});
|
|
1668
1708
|
},
|