@depict-ai/ui 3.0.16 → 3.0.18
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 +14 -6
- package/ES10/index.d.ts +2 -2
- package/ES10/index.js +14 -6
- package/latest/index.cjs +13 -5
- package/latest/index.d.ts +2 -2
- package/latest/index.js +13 -5
- package/package.json +1 -1
- package/server/ES10/index.cjs +14 -6
- package/server/ES10/index.d.ts +2 -2
- package/server/ES10/index.js +14 -6
- package/server/latest/index.cjs +13 -5
- package/server/latest/index.d.ts +2 -2
- package/server/latest/index.js +13 -5
package/ES10/index.cjs
CHANGED
|
@@ -83,7 +83,7 @@ $parcel$export(module.exports, "defaultColsAtSize", () => $33eed84f447aa0c0$expo
|
|
|
83
83
|
$parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $33eed84f447aa0c0$export$7bf543b9d9be2c22);
|
|
84
84
|
$parcel$export(module.exports, "version", () => $aa1938dec50d6c12$export$83d89fbfd8236492);
|
|
85
85
|
/*! Depict.ai search and product listing SDK */
|
|
86
|
-
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "3.0.
|
|
86
|
+
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "3.0.18";
|
|
87
87
|
const $9d19451330d04c3c$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 14 26"><path d="M2 24.656c-.078 0-.156-.016-.234-.047s-.133-.066-.187-.129c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422l10.371-10.371L1.578 2.883c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422.258-.176.422-.176.305.059.422.176l10.805 10.793a.59.59 0 0 1 .176.434c0 .172-.059.305-.176.422L2.422 24.48a.42.42 0 0 1-.199.129.54.54 0 0 1-.223.047zm0 0"fill=#0f0f0f>`);
|
|
88
88
|
function $9d19451330d04c3c$export$8be2714ec7f169ee() {
|
|
89
89
|
let props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
@@ -7959,7 +7959,7 @@ function $f70cc6dfcadf0fd5$export$d7841e452f2e59a8(_ref) {
|
|
|
7959
7959
|
get_extra_filters_button_ === null || get_extra_filters_button_ === void 0 || get_extra_filters_button_(make_open_filters_button());
|
|
7960
7960
|
get_extra_sorting_button_ === null || get_extra_sorting_button_ === void 0 || get_extra_sorting_button_(make_open_sorting_button());
|
|
7961
7961
|
$52FdA$solidjs.createEffect(() => {
|
|
7962
|
-
if (sort_and_filter_disabled_()) {
|
|
7962
|
+
if (sort_and_filter_disabled_ !== null && sort_and_filter_disabled_ !== void 0 && sort_and_filter_disabled_()) {
|
|
7963
7963
|
// If someone changes the layout to slider-without-filters dynamically, close sorting and filters
|
|
7964
7964
|
set_filters_open(false);
|
|
7965
7965
|
set_sorting_open(false);
|
|
@@ -7967,7 +7967,7 @@ function $f70cc6dfcadf0fd5$export$d7841e452f2e59a8(_ref) {
|
|
|
7967
7967
|
});
|
|
7968
7968
|
return $52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.Show), {
|
|
7969
7969
|
get when() {
|
|
7970
|
-
return !sort_and_filter_disabled_();
|
|
7970
|
+
return !(sort_and_filter_disabled_ !== null && sort_and_filter_disabled_ !== void 0 && sort_and_filter_disabled_());
|
|
7971
7971
|
},
|
|
7972
7972
|
get children() {
|
|
7973
7973
|
const _el$5 = $52FdA$solidjsweb.getNextElement($f70cc6dfcadf0fd5$var$_tmpl$3),
|
|
@@ -8899,7 +8899,6 @@ const $ede6c70ecdca46fe$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<d
|
|
|
8899
8899
|
$ede6c70ecdca46fe$var$_tmpl$3 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=filter-results-for-one-row><!$><!/><!$><!/>`),
|
|
8900
8900
|
$ede6c70ecdca46fe$var$_tmpl$4 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class="depict plp category"><div class=listing-page><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/></div><!$><!/><!$><!/>`);
|
|
8901
8901
|
function $ede6c70ecdca46fe$export$f7d2f673fc2f091d(_ref) {
|
|
8902
|
-
var _on_filters_construct;
|
|
8903
8902
|
let {
|
|
8904
8903
|
depict_api_: depict_api_,
|
|
8905
8904
|
id_to_query_for_: id_to_query_for_,
|
|
@@ -9138,7 +9137,11 @@ function $ede6c70ecdca46fe$export$f7d2f673fc2f091d(_ref) {
|
|
|
9138
9137
|
id_: id_to_query_for_,
|
|
9139
9138
|
can_write_scroll_restoration_: can_write_scroll_restoration_
|
|
9140
9139
|
});
|
|
9141
|
-
(
|
|
9140
|
+
$52FdA$solidjs.createEffect(() => {
|
|
9141
|
+
var _on_filters_construct;
|
|
9142
|
+
if (sort_and_filter_disabled_()) return;
|
|
9143
|
+
(_on_filters_construct = on_filters_constructed_) === null || _on_filters_construct === void 0 || _on_filters_construct();
|
|
9144
|
+
});
|
|
9142
9145
|
$52FdA$solidjs.createComputed(() => {
|
|
9143
9146
|
if (plp_products_.loading) set_can_write_scroll_restoration(false);else if (plp_products_()) set_can_write_scroll_restoration(true);
|
|
9144
9147
|
});
|
|
@@ -9693,7 +9696,12 @@ function $9cbefc32b9dab36d$export$e2bf8ce7779e827e(props) {
|
|
|
9693
9696
|
return newId;
|
|
9694
9697
|
});
|
|
9695
9698
|
$52FdA$solidjs.onCleanup(() => $bdea39a75c454f4f$export$f50b88e2a00918b5(props.on_listing_query_change)());
|
|
9696
|
-
const is_grid = $52FdA$solidjs.createMemo(() =>
|
|
9699
|
+
const is_grid = $52FdA$solidjs.createMemo(() => {
|
|
9700
|
+
const {
|
|
9701
|
+
layout: layout
|
|
9702
|
+
} = props;
|
|
9703
|
+
return !layout || layout === "grid";
|
|
9704
|
+
});
|
|
9697
9705
|
const grid_spacing_override = $52FdA$solidjs.createMemo(() => {
|
|
9698
9706
|
const {
|
|
9699
9707
|
grid_spacing: grid_spacing
|
package/ES10/index.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ import { ProductListingRequestV3 } from "@depict-ai/types/api/ProductListingRequ
|
|
|
10
10
|
import { GetListingRequest } from "@depict-ai/types/api/GetListingRequest";
|
|
11
11
|
import { BaseSearchRequestV3 } from "@depict-ai/types/api/BaseSearchRequestV3";
|
|
12
12
|
import { SearchFilter as _SearchFilter2 } from "@depict-ai/types/api/SearchRequestV2";
|
|
13
|
-
export const version = "3.0.
|
|
13
|
+
export const version = "3.0.18";
|
|
14
14
|
export type SDKColsAtSize = [number, number?][];
|
|
15
15
|
/**
|
|
16
16
|
* Transform SDK ColsAtSize into valid Layout ColsAtSize
|
|
@@ -974,7 +974,7 @@ export function CategoryPage<OriginalDisplay extends Display, OutputDisplay exte
|
|
|
974
974
|
category_title: typeof CategoryTitle | typeof embedded_num_products;
|
|
975
975
|
on_listing_query_change?: (new_listing_query?: ListingQuery | undefined, old_listing_query?: ListingQuery | undefined) => void;
|
|
976
976
|
content_blocks_by_row?: ContentBlocksByRow;
|
|
977
|
-
layout?:
|
|
977
|
+
layout?: PossibleLayout;
|
|
978
978
|
}): import("@depict-ai/utilishared/latest").Node_Array;
|
|
979
979
|
export function BreadCrumbs<T extends Display>({
|
|
980
980
|
depict_category
|
package/ES10/index.js
CHANGED
|
@@ -10,7 +10,7 @@ import { createStore as $8tj43$createStore, reconcile as $8tj43$reconcile } from
|
|
|
10
10
|
/*! Depict.ai search and product listing SDK */
|
|
11
11
|
import { register_es_version } from "../multi_import_deduplicator.mjs";
|
|
12
12
|
register_es_version("ui", "ES10");
|
|
13
|
-
const $8db9a15135765c11$export$83d89fbfd8236492 = "3.0.
|
|
13
|
+
const $8db9a15135765c11$export$83d89fbfd8236492 = "3.0.18";
|
|
14
14
|
const $ca6ab5f08bd28bca$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 14 26"><path d="M2 24.656c-.078 0-.156-.016-.234-.047s-.133-.066-.187-.129c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422l10.371-10.371L1.578 2.883c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422.258-.176.422-.176.305.059.422.176l10.805 10.793a.59.59 0 0 1 .176.434c0 .172-.059.305-.176.422L2.422 24.48a.42.42 0 0 1-.199.129.54.54 0 0 1-.223.047zm0 0"fill=#0f0f0f>`);
|
|
15
15
|
function $ca6ab5f08bd28bca$export$8be2714ec7f169ee() {
|
|
16
16
|
let props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
@@ -7886,7 +7886,7 @@ function $7396052a1484264f$export$d7841e452f2e59a8(_ref) {
|
|
|
7886
7886
|
get_extra_filters_button_ === null || get_extra_filters_button_ === void 0 || get_extra_filters_button_(make_open_filters_button());
|
|
7887
7887
|
get_extra_sorting_button_ === null || get_extra_sorting_button_ === void 0 || get_extra_sorting_button_(make_open_sorting_button());
|
|
7888
7888
|
$8tj43$createEffect(() => {
|
|
7889
|
-
if (sort_and_filter_disabled_()) {
|
|
7889
|
+
if (sort_and_filter_disabled_ !== null && sort_and_filter_disabled_ !== void 0 && sort_and_filter_disabled_()) {
|
|
7890
7890
|
// If someone changes the layout to slider-without-filters dynamically, close sorting and filters
|
|
7891
7891
|
set_filters_open(false);
|
|
7892
7892
|
set_sorting_open(false);
|
|
@@ -7894,7 +7894,7 @@ function $7396052a1484264f$export$d7841e452f2e59a8(_ref) {
|
|
|
7894
7894
|
});
|
|
7895
7895
|
return $8tj43$createComponent((0, $8tj43$Show), {
|
|
7896
7896
|
get when() {
|
|
7897
|
-
return !sort_and_filter_disabled_();
|
|
7897
|
+
return !(sort_and_filter_disabled_ !== null && sort_and_filter_disabled_ !== void 0 && sort_and_filter_disabled_());
|
|
7898
7898
|
},
|
|
7899
7899
|
get children() {
|
|
7900
7900
|
const _el$5 = $8tj43$getNextElement($7396052a1484264f$var$_tmpl$3),
|
|
@@ -8826,7 +8826,6 @@ const $4b4b262708b516ee$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div class=pr
|
|
|
8826
8826
|
$4b4b262708b516ee$var$_tmpl$3 = /*#__PURE__*/$8tj43$template(`<div class=filter-results-for-one-row><!$><!/><!$><!/>`),
|
|
8827
8827
|
$4b4b262708b516ee$var$_tmpl$4 = /*#__PURE__*/$8tj43$template(`<div class="depict plp category"><div class=listing-page><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/></div><!$><!/><!$><!/>`);
|
|
8828
8828
|
function $4b4b262708b516ee$export$f7d2f673fc2f091d(_ref) {
|
|
8829
|
-
var _on_filters_construct;
|
|
8830
8829
|
let {
|
|
8831
8830
|
depict_api_: depict_api_,
|
|
8832
8831
|
id_to_query_for_: id_to_query_for_,
|
|
@@ -9065,7 +9064,11 @@ function $4b4b262708b516ee$export$f7d2f673fc2f091d(_ref) {
|
|
|
9065
9064
|
id_: id_to_query_for_,
|
|
9066
9065
|
can_write_scroll_restoration_: can_write_scroll_restoration_
|
|
9067
9066
|
});
|
|
9068
|
-
(
|
|
9067
|
+
$8tj43$createEffect(() => {
|
|
9068
|
+
var _on_filters_construct;
|
|
9069
|
+
if (sort_and_filter_disabled_()) return;
|
|
9070
|
+
(_on_filters_construct = on_filters_constructed_) === null || _on_filters_construct === void 0 || _on_filters_construct();
|
|
9071
|
+
});
|
|
9069
9072
|
$8tj43$createComputed(() => {
|
|
9070
9073
|
if (plp_products_.loading) set_can_write_scroll_restoration(false);else if (plp_products_()) set_can_write_scroll_restoration(true);
|
|
9071
9074
|
});
|
|
@@ -9620,7 +9623,12 @@ function $f5f54892fd0c7d9f$export$e2bf8ce7779e827e(props) {
|
|
|
9620
9623
|
return newId;
|
|
9621
9624
|
});
|
|
9622
9625
|
$8tj43$onCleanup(() => $01c33966d9ddb108$export$f50b88e2a00918b5(props.on_listing_query_change)());
|
|
9623
|
-
const is_grid = $8tj43$createMemo(() =>
|
|
9626
|
+
const is_grid = $8tj43$createMemo(() => {
|
|
9627
|
+
const {
|
|
9628
|
+
layout: layout
|
|
9629
|
+
} = props;
|
|
9630
|
+
return !layout || layout === "grid";
|
|
9631
|
+
});
|
|
9624
9632
|
const grid_spacing_override = $8tj43$createMemo(() => {
|
|
9625
9633
|
const {
|
|
9626
9634
|
grid_spacing: grid_spacing
|
package/latest/index.cjs
CHANGED
|
@@ -77,7 +77,7 @@ $parcel$export(module.exports, "defaultColsAtSize", () => $a3280f0aad997933$expo
|
|
|
77
77
|
$parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $a3280f0aad997933$export$7bf543b9d9be2c22);
|
|
78
78
|
$parcel$export(module.exports, "version", () => $b757f75811f3261f$export$83d89fbfd8236492);
|
|
79
79
|
/*! Depict.ai search and product listing SDK */
|
|
80
|
-
const $b757f75811f3261f$export$83d89fbfd8236492 = "3.0.
|
|
80
|
+
const $b757f75811f3261f$export$83d89fbfd8236492 = "3.0.18";
|
|
81
81
|
const $0f313083912e447a$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 14 26"><path d="M2 24.656c-.078 0-.156-.016-.234-.047s-.133-.066-.187-.129c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422l10.371-10.371L1.578 2.883c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422.258-.176.422-.176.305.059.422.176l10.805 10.793a.59.59 0 0 1 .176.434c0 .172-.059.305-.176.422L2.422 24.48a.42.42 0 0 1-.199.129.54.54 0 0 1-.223.047zm0 0"fill=#0f0f0f>`);
|
|
82
82
|
function $0f313083912e447a$export$8be2714ec7f169ee(props = {}) {
|
|
83
83
|
return (() => {
|
|
@@ -7470,7 +7470,7 @@ function $f8f64d05c525825b$export$d7841e452f2e59a8({
|
|
|
7470
7470
|
get_extra_filters_button_?.(make_open_filters_button());
|
|
7471
7471
|
get_extra_sorting_button_?.(make_open_sorting_button());
|
|
7472
7472
|
$gVhhF$solidjs.createEffect(() => {
|
|
7473
|
-
if (sort_and_filter_disabled_()) {
|
|
7473
|
+
if (sort_and_filter_disabled_?.()) {
|
|
7474
7474
|
// If someone changes the layout to slider-without-filters dynamically, close sorting and filters
|
|
7475
7475
|
set_filters_open(false);
|
|
7476
7476
|
set_sorting_open(false);
|
|
@@ -7478,7 +7478,7 @@ function $f8f64d05c525825b$export$d7841e452f2e59a8({
|
|
|
7478
7478
|
});
|
|
7479
7479
|
return $gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Show), {
|
|
7480
7480
|
get when() {
|
|
7481
|
-
return !sort_and_filter_disabled_();
|
|
7481
|
+
return !sort_and_filter_disabled_?.();
|
|
7482
7482
|
},
|
|
7483
7483
|
get children() {
|
|
7484
7484
|
const _el$5 = $gVhhF$solidjsweb.getNextElement($f8f64d05c525825b$var$_tmpl$3),
|
|
@@ -8570,7 +8570,10 @@ function $840d88a04b2d22a7$export$f7d2f673fc2f091d({
|
|
|
8570
8570
|
id_: id_to_query_for_,
|
|
8571
8571
|
can_write_scroll_restoration_: can_write_scroll_restoration_
|
|
8572
8572
|
});
|
|
8573
|
-
|
|
8573
|
+
$gVhhF$solidjs.createEffect(() => {
|
|
8574
|
+
if (sort_and_filter_disabled_()) return;
|
|
8575
|
+
on_filters_constructed_?.();
|
|
8576
|
+
});
|
|
8574
8577
|
$gVhhF$solidjs.createComputed(() => {
|
|
8575
8578
|
if (plp_products_.loading) set_can_write_scroll_restoration(false);else if (plp_products_()) set_can_write_scroll_restoration(true);
|
|
8576
8579
|
});
|
|
@@ -9051,7 +9054,12 @@ function $48567ac5b39bac56$export$e2bf8ce7779e827e(props) {
|
|
|
9051
9054
|
return newId;
|
|
9052
9055
|
});
|
|
9053
9056
|
$gVhhF$solidjs.onCleanup(() => $deaaf04362a1bc71$export$f50b88e2a00918b5(props.on_listing_query_change)());
|
|
9054
|
-
const is_grid = $gVhhF$solidjs.createMemo(() =>
|
|
9057
|
+
const is_grid = $gVhhF$solidjs.createMemo(() => {
|
|
9058
|
+
const {
|
|
9059
|
+
layout: layout
|
|
9060
|
+
} = props;
|
|
9061
|
+
return !layout || layout === "grid";
|
|
9062
|
+
});
|
|
9055
9063
|
const grid_spacing_override = $gVhhF$solidjs.createMemo(() => {
|
|
9056
9064
|
const {
|
|
9057
9065
|
grid_spacing: grid_spacing
|
package/latest/index.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ import { ProductListingRequestV3 } from "@depict-ai/types/api/ProductListingRequ
|
|
|
10
10
|
import { GetListingRequest } from "@depict-ai/types/api/GetListingRequest";
|
|
11
11
|
import { BaseSearchRequestV3 } from "@depict-ai/types/api/BaseSearchRequestV3";
|
|
12
12
|
import { SearchFilter as _SearchFilter2 } from "@depict-ai/types/api/SearchRequestV2";
|
|
13
|
-
export const version = "3.0.
|
|
13
|
+
export const version = "3.0.18";
|
|
14
14
|
export type SDKColsAtSize = [number, number?][];
|
|
15
15
|
/**
|
|
16
16
|
* Transform SDK ColsAtSize into valid Layout ColsAtSize
|
|
@@ -974,7 +974,7 @@ export function CategoryPage<OriginalDisplay extends Display, OutputDisplay exte
|
|
|
974
974
|
category_title: typeof CategoryTitle | typeof embedded_num_products;
|
|
975
975
|
on_listing_query_change?: (new_listing_query?: ListingQuery | undefined, old_listing_query?: ListingQuery | undefined) => void;
|
|
976
976
|
content_blocks_by_row?: ContentBlocksByRow;
|
|
977
|
-
layout?:
|
|
977
|
+
layout?: PossibleLayout;
|
|
978
978
|
}): import("@depict-ai/utilishared/latest").Node_Array;
|
|
979
979
|
export function BreadCrumbs<T extends Display>({
|
|
980
980
|
depict_category
|
package/latest/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import { createStore as $9HbP8$createStore, reconcile as $9HbP8$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 = "3.0.
|
|
10
|
+
const $ec291e0010116877$export$83d89fbfd8236492 = "3.0.18";
|
|
11
11
|
const $fbbadcb080ad1d4a$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 14 26"><path d="M2 24.656c-.078 0-.156-.016-.234-.047s-.133-.066-.187-.129c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422l10.371-10.371L1.578 2.883c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422.258-.176.422-.176.305.059.422.176l10.805 10.793a.59.59 0 0 1 .176.434c0 .172-.059.305-.176.422L2.422 24.48a.42.42 0 0 1-.199.129.54.54 0 0 1-.223.047zm0 0"fill=#0f0f0f>`);
|
|
12
12
|
function $fbbadcb080ad1d4a$export$8be2714ec7f169ee(props = {}) {
|
|
13
13
|
return (() => {
|
|
@@ -7400,7 +7400,7 @@ function $cdea4cf8c5c071ef$export$d7841e452f2e59a8({
|
|
|
7400
7400
|
get_extra_filters_button_?.(make_open_filters_button());
|
|
7401
7401
|
get_extra_sorting_button_?.(make_open_sorting_button());
|
|
7402
7402
|
$9HbP8$createEffect(() => {
|
|
7403
|
-
if (sort_and_filter_disabled_()) {
|
|
7403
|
+
if (sort_and_filter_disabled_?.()) {
|
|
7404
7404
|
// If someone changes the layout to slider-without-filters dynamically, close sorting and filters
|
|
7405
7405
|
set_filters_open(false);
|
|
7406
7406
|
set_sorting_open(false);
|
|
@@ -7408,7 +7408,7 @@ function $cdea4cf8c5c071ef$export$d7841e452f2e59a8({
|
|
|
7408
7408
|
});
|
|
7409
7409
|
return $9HbP8$createComponent((0, $9HbP8$Show), {
|
|
7410
7410
|
get when() {
|
|
7411
|
-
return !sort_and_filter_disabled_();
|
|
7411
|
+
return !sort_and_filter_disabled_?.();
|
|
7412
7412
|
},
|
|
7413
7413
|
get children() {
|
|
7414
7414
|
const _el$5 = $9HbP8$getNextElement($cdea4cf8c5c071ef$var$_tmpl$3),
|
|
@@ -8500,7 +8500,10 @@ function $df5d81d0fe61ff21$export$f7d2f673fc2f091d({
|
|
|
8500
8500
|
id_: id_to_query_for_,
|
|
8501
8501
|
can_write_scroll_restoration_: can_write_scroll_restoration_
|
|
8502
8502
|
});
|
|
8503
|
-
|
|
8503
|
+
$9HbP8$createEffect(() => {
|
|
8504
|
+
if (sort_and_filter_disabled_()) return;
|
|
8505
|
+
on_filters_constructed_?.();
|
|
8506
|
+
});
|
|
8504
8507
|
$9HbP8$createComputed(() => {
|
|
8505
8508
|
if (plp_products_.loading) set_can_write_scroll_restoration(false);else if (plp_products_()) set_can_write_scroll_restoration(true);
|
|
8506
8509
|
});
|
|
@@ -8981,7 +8984,12 @@ function $961b5c64bef4662f$export$e2bf8ce7779e827e(props) {
|
|
|
8981
8984
|
return newId;
|
|
8982
8985
|
});
|
|
8983
8986
|
$9HbP8$onCleanup(() => $d8dbf52fea1773e2$export$f50b88e2a00918b5(props.on_listing_query_change)());
|
|
8984
|
-
const is_grid = $9HbP8$createMemo(() =>
|
|
8987
|
+
const is_grid = $9HbP8$createMemo(() => {
|
|
8988
|
+
const {
|
|
8989
|
+
layout: layout
|
|
8990
|
+
} = props;
|
|
8991
|
+
return !layout || layout === "grid";
|
|
8992
|
+
});
|
|
8985
8993
|
const grid_spacing_override = $9HbP8$createMemo(() => {
|
|
8986
8994
|
const {
|
|
8987
8995
|
grid_spacing: grid_spacing
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depict-ai/ui",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.18",
|
|
4
4
|
"description": "Base package containing the actual UI of Depict UI along with translations, with a not-simplified API. We recommend using @depict-ai/js-ui or @depict-ai/react-ui instead.",
|
|
5
5
|
"packageManager": "yarn@3.2.2",
|
|
6
6
|
"sass": "styles.scss",
|
package/server/ES10/index.cjs
CHANGED
|
@@ -83,7 +83,7 @@ $parcel$export(module.exports, "defaultColsAtSize", () => $33eed84f447aa0c0$expo
|
|
|
83
83
|
$parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $33eed84f447aa0c0$export$7bf543b9d9be2c22);
|
|
84
84
|
$parcel$export(module.exports, "version", () => $aa1938dec50d6c12$export$83d89fbfd8236492);
|
|
85
85
|
/*! Depict.ai search and product listing SDK */
|
|
86
|
-
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "3.0.
|
|
86
|
+
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "3.0.18";
|
|
87
87
|
const $9d19451330d04c3c$var$_tmpl$ = ["<svg", ' xmlns="http://www.w3.org/2000/svg"', ' viewBox="0 0 14 26"><path d="M2 24.656c-.078 0-.156-.016-.234-.047s-.133-.066-.187-.129c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422l10.371-10.371L1.578 2.883c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422.258-.176.422-.176.305.059.422.176l10.805 10.793a.59.59 0 0 1 .176.434c0 .172-.059.305-.176.422L2.422 24.48a.42.42 0 0 1-.199.129.54.54 0 0 1-.223.047zm0 0" fill="#0f0f0f"></path></svg>'];
|
|
88
88
|
function $9d19451330d04c3c$export$8be2714ec7f169ee() {
|
|
89
89
|
var _$escape2, _$escape3;
|
|
@@ -6527,7 +6527,7 @@ function $f70cc6dfcadf0fd5$export$d7841e452f2e59a8(_ref) {
|
|
|
6527
6527
|
get_extra_filters_button_ === null || get_extra_filters_button_ === void 0 || get_extra_filters_button_(make_open_filters_button());
|
|
6528
6528
|
get_extra_sorting_button_ === null || get_extra_sorting_button_ === void 0 || get_extra_sorting_button_(make_open_sorting_button());
|
|
6529
6529
|
$3hooq$solidjs.createEffect(() => {
|
|
6530
|
-
if (sort_and_filter_disabled_()) {
|
|
6530
|
+
if (sort_and_filter_disabled_ !== null && sort_and_filter_disabled_ !== void 0 && sort_and_filter_disabled_()) {
|
|
6531
6531
|
// If someone changes the layout to slider-without-filters dynamically, close sorting and filters
|
|
6532
6532
|
set_filters_open(false);
|
|
6533
6533
|
set_sorting_open(false);
|
|
@@ -6535,7 +6535,7 @@ function $f70cc6dfcadf0fd5$export$d7841e452f2e59a8(_ref) {
|
|
|
6535
6535
|
});
|
|
6536
6536
|
return $3hooq$solidjsweb.createComponent((0, $3hooq$solidjs.Show), {
|
|
6537
6537
|
get when() {
|
|
6538
|
-
return !sort_and_filter_disabled_();
|
|
6538
|
+
return !(sort_and_filter_disabled_ !== null && sort_and_filter_disabled_ !== void 0 && sort_and_filter_disabled_());
|
|
6539
6539
|
},
|
|
6540
6540
|
get children() {
|
|
6541
6541
|
return $3hooq$solidjsweb.ssr($f70cc6dfcadf0fd5$var$_tmpl$3, $3hooq$solidjsweb.ssrHydrationKey(), $3hooq$solidjsweb.escape(make_open_filters_button(true, true)), $3hooq$solidjsweb.escape(middle_elements_ === null || middle_elements_ === void 0 ? void 0 : middle_elements_()), $3hooq$solidjsweb.escape(make_open_sorting_button(true, true)));
|
|
@@ -7371,7 +7371,6 @@ const $ede6c70ecdca46fe$var$_tmpl$ = ["<div", ' class="product-count"><!--$-->',
|
|
|
7371
7371
|
$ede6c70ecdca46fe$var$_tmpl$3 = ["<div", ' class="filter-results-for-one-row"><!--$-->', "<!--/--><!--$-->", "<!--/--></div>"],
|
|
7372
7372
|
$ede6c70ecdca46fe$var$_tmpl$4 = ["<div", ' class="depict plp category"><div class="listing-page"><!--$-->', "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--></div><!--$-->", "<!--/--><!--$-->", "<!--/--></div>"];
|
|
7373
7373
|
function $ede6c70ecdca46fe$export$f7d2f673fc2f091d(_ref) {
|
|
7374
|
-
var _on_filters_construct;
|
|
7375
7374
|
let {
|
|
7376
7375
|
depict_api_: depict_api_,
|
|
7377
7376
|
id_to_query_for_: id_to_query_for_,
|
|
@@ -7600,7 +7599,11 @@ function $ede6c70ecdca46fe$export$f7d2f673fc2f091d(_ref) {
|
|
|
7600
7599
|
id_: id_to_query_for_,
|
|
7601
7600
|
can_write_scroll_restoration_: can_write_scroll_restoration_
|
|
7602
7601
|
});
|
|
7603
|
-
(
|
|
7602
|
+
$3hooq$solidjs.createEffect(() => {
|
|
7603
|
+
var _on_filters_construct;
|
|
7604
|
+
if (sort_and_filter_disabled_()) return;
|
|
7605
|
+
(_on_filters_construct = on_filters_constructed_) === null || _on_filters_construct === void 0 || _on_filters_construct();
|
|
7606
|
+
});
|
|
7604
7607
|
$3hooq$solidjs.createComputed(() => {
|
|
7605
7608
|
if (plp_products_.loading) set_can_write_scroll_restoration(false);else if (plp_products_()) set_can_write_scroll_restoration(true);
|
|
7606
7609
|
});
|
|
@@ -8111,7 +8114,12 @@ function $9cbefc32b9dab36d$export$e2bf8ce7779e827e(props) {
|
|
|
8111
8114
|
return newId;
|
|
8112
8115
|
});
|
|
8113
8116
|
$3hooq$solidjs.onCleanup(() => $bdea39a75c454f4f$export$f50b88e2a00918b5(props.on_listing_query_change)());
|
|
8114
|
-
const is_grid = $3hooq$solidjs.createMemo(() =>
|
|
8117
|
+
const is_grid = $3hooq$solidjs.createMemo(() => {
|
|
8118
|
+
const {
|
|
8119
|
+
layout: layout
|
|
8120
|
+
} = props;
|
|
8121
|
+
return !layout || layout === "grid";
|
|
8122
|
+
});
|
|
8115
8123
|
const grid_spacing_override = $3hooq$solidjs.createMemo(() => {
|
|
8116
8124
|
const {
|
|
8117
8125
|
grid_spacing: grid_spacing
|
package/server/ES10/index.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ import { ProductListingRequestV3 } from "@depict-ai/types/api/ProductListingRequ
|
|
|
10
10
|
import { GetListingRequest } from "@depict-ai/types/api/GetListingRequest";
|
|
11
11
|
import { BaseSearchRequestV3 } from "@depict-ai/types/api/BaseSearchRequestV3";
|
|
12
12
|
import { SearchFilter as _SearchFilter2 } from "@depict-ai/types/api/SearchRequestV2";
|
|
13
|
-
export const version = "3.0.
|
|
13
|
+
export const version = "3.0.18";
|
|
14
14
|
export type SDKColsAtSize = [number, number?][];
|
|
15
15
|
/**
|
|
16
16
|
* Transform SDK ColsAtSize into valid Layout ColsAtSize
|
|
@@ -974,7 +974,7 @@ export function CategoryPage<OriginalDisplay extends Display, OutputDisplay exte
|
|
|
974
974
|
category_title: typeof CategoryTitle | typeof embedded_num_products;
|
|
975
975
|
on_listing_query_change?: (new_listing_query?: ListingQuery | undefined, old_listing_query?: ListingQuery | undefined) => void;
|
|
976
976
|
content_blocks_by_row?: ContentBlocksByRow;
|
|
977
|
-
layout?:
|
|
977
|
+
layout?: PossibleLayout;
|
|
978
978
|
}): import("@depict-ai/utilishared/latest").Node_Array;
|
|
979
979
|
export function BreadCrumbs<T extends Display>({
|
|
980
980
|
depict_category
|
package/server/ES10/index.js
CHANGED
|
@@ -10,7 +10,7 @@ import { createStore as $b8hua$createStore, reconcile as $b8hua$reconcile } from
|
|
|
10
10
|
/*! Depict.ai search and product listing SDK */
|
|
11
11
|
import { register_es_version } from "../../multi_import_deduplicator.mjs";
|
|
12
12
|
register_es_version("ui", "ES10");
|
|
13
|
-
const $8db9a15135765c11$export$83d89fbfd8236492 = "3.0.
|
|
13
|
+
const $8db9a15135765c11$export$83d89fbfd8236492 = "3.0.18";
|
|
14
14
|
const $ca6ab5f08bd28bca$var$_tmpl$ = ["<svg", ' xmlns="http://www.w3.org/2000/svg"', ' viewBox="0 0 14 26"><path d="M2 24.656c-.078 0-.156-.016-.234-.047s-.133-.066-.187-.129c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422l10.371-10.371L1.578 2.883c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422.258-.176.422-.176.305.059.422.176l10.805 10.793a.59.59 0 0 1 .176.434c0 .172-.059.305-.176.422L2.422 24.48a.42.42 0 0 1-.199.129.54.54 0 0 1-.223.047zm0 0" fill="#0f0f0f"></path></svg>'];
|
|
15
15
|
function $ca6ab5f08bd28bca$export$8be2714ec7f169ee() {
|
|
16
16
|
var _$escape2, _$escape3;
|
|
@@ -6454,7 +6454,7 @@ function $7396052a1484264f$export$d7841e452f2e59a8(_ref) {
|
|
|
6454
6454
|
get_extra_filters_button_ === null || get_extra_filters_button_ === void 0 || get_extra_filters_button_(make_open_filters_button());
|
|
6455
6455
|
get_extra_sorting_button_ === null || get_extra_sorting_button_ === void 0 || get_extra_sorting_button_(make_open_sorting_button());
|
|
6456
6456
|
$b8hua$createEffect(() => {
|
|
6457
|
-
if (sort_and_filter_disabled_()) {
|
|
6457
|
+
if (sort_and_filter_disabled_ !== null && sort_and_filter_disabled_ !== void 0 && sort_and_filter_disabled_()) {
|
|
6458
6458
|
// If someone changes the layout to slider-without-filters dynamically, close sorting and filters
|
|
6459
6459
|
set_filters_open(false);
|
|
6460
6460
|
set_sorting_open(false);
|
|
@@ -6462,7 +6462,7 @@ function $7396052a1484264f$export$d7841e452f2e59a8(_ref) {
|
|
|
6462
6462
|
});
|
|
6463
6463
|
return $b8hua$createComponent((0, $b8hua$Show), {
|
|
6464
6464
|
get when() {
|
|
6465
|
-
return !sort_and_filter_disabled_();
|
|
6465
|
+
return !(sort_and_filter_disabled_ !== null && sort_and_filter_disabled_ !== void 0 && sort_and_filter_disabled_());
|
|
6466
6466
|
},
|
|
6467
6467
|
get children() {
|
|
6468
6468
|
return $b8hua$ssr($7396052a1484264f$var$_tmpl$3, $b8hua$ssrHydrationKey(), $b8hua$escape(make_open_filters_button(true, true)), $b8hua$escape(middle_elements_ === null || middle_elements_ === void 0 ? void 0 : middle_elements_()), $b8hua$escape(make_open_sorting_button(true, true)));
|
|
@@ -7298,7 +7298,6 @@ const $4b4b262708b516ee$var$_tmpl$ = ["<div", ' class="product-count"><!--$-->',
|
|
|
7298
7298
|
$4b4b262708b516ee$var$_tmpl$3 = ["<div", ' class="filter-results-for-one-row"><!--$-->', "<!--/--><!--$-->", "<!--/--></div>"],
|
|
7299
7299
|
$4b4b262708b516ee$var$_tmpl$4 = ["<div", ' class="depict plp category"><div class="listing-page"><!--$-->', "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--></div><!--$-->", "<!--/--><!--$-->", "<!--/--></div>"];
|
|
7300
7300
|
function $4b4b262708b516ee$export$f7d2f673fc2f091d(_ref) {
|
|
7301
|
-
var _on_filters_construct;
|
|
7302
7301
|
let {
|
|
7303
7302
|
depict_api_: depict_api_,
|
|
7304
7303
|
id_to_query_for_: id_to_query_for_,
|
|
@@ -7527,7 +7526,11 @@ function $4b4b262708b516ee$export$f7d2f673fc2f091d(_ref) {
|
|
|
7527
7526
|
id_: id_to_query_for_,
|
|
7528
7527
|
can_write_scroll_restoration_: can_write_scroll_restoration_
|
|
7529
7528
|
});
|
|
7530
|
-
(
|
|
7529
|
+
$b8hua$createEffect(() => {
|
|
7530
|
+
var _on_filters_construct;
|
|
7531
|
+
if (sort_and_filter_disabled_()) return;
|
|
7532
|
+
(_on_filters_construct = on_filters_constructed_) === null || _on_filters_construct === void 0 || _on_filters_construct();
|
|
7533
|
+
});
|
|
7531
7534
|
$b8hua$createComputed(() => {
|
|
7532
7535
|
if (plp_products_.loading) set_can_write_scroll_restoration(false);else if (plp_products_()) set_can_write_scroll_restoration(true);
|
|
7533
7536
|
});
|
|
@@ -8038,7 +8041,12 @@ function $f5f54892fd0c7d9f$export$e2bf8ce7779e827e(props) {
|
|
|
8038
8041
|
return newId;
|
|
8039
8042
|
});
|
|
8040
8043
|
$b8hua$onCleanup(() => $01c33966d9ddb108$export$f50b88e2a00918b5(props.on_listing_query_change)());
|
|
8041
|
-
const is_grid = $b8hua$createMemo(() =>
|
|
8044
|
+
const is_grid = $b8hua$createMemo(() => {
|
|
8045
|
+
const {
|
|
8046
|
+
layout: layout
|
|
8047
|
+
} = props;
|
|
8048
|
+
return !layout || layout === "grid";
|
|
8049
|
+
});
|
|
8042
8050
|
const grid_spacing_override = $b8hua$createMemo(() => {
|
|
8043
8051
|
const {
|
|
8044
8052
|
grid_spacing: grid_spacing
|
package/server/latest/index.cjs
CHANGED
|
@@ -77,7 +77,7 @@ $parcel$export(module.exports, "defaultColsAtSize", () => $a3280f0aad997933$expo
|
|
|
77
77
|
$parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $a3280f0aad997933$export$7bf543b9d9be2c22);
|
|
78
78
|
$parcel$export(module.exports, "version", () => $b757f75811f3261f$export$83d89fbfd8236492);
|
|
79
79
|
/*! Depict.ai search and product listing SDK */
|
|
80
|
-
const $b757f75811f3261f$export$83d89fbfd8236492 = "3.0.
|
|
80
|
+
const $b757f75811f3261f$export$83d89fbfd8236492 = "3.0.18";
|
|
81
81
|
const $0f313083912e447a$var$_tmpl$ = ["<svg", ' xmlns="http://www.w3.org/2000/svg"', ' viewBox="0 0 14 26"><path d="M2 24.656c-.078 0-.156-.016-.234-.047s-.133-.066-.187-.129c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422l10.371-10.371L1.578 2.883c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422.258-.176.422-.176.305.059.422.176l10.805 10.793a.59.59 0 0 1 .176.434c0 .172-.059.305-.176.422L2.422 24.48a.42.42 0 0 1-.199.129.54.54 0 0 1-.223.047zm0 0" fill="#0f0f0f"></path></svg>'];
|
|
82
82
|
function $0f313083912e447a$export$8be2714ec7f169ee(props = {}) {
|
|
83
83
|
return $5vyXB$solidjsweb.ssr($0f313083912e447a$var$_tmpl$, $5vyXB$solidjsweb.ssrHydrationKey(), $5vyXB$solidjsweb.ssrAttribute("width", $5vyXB$solidjsweb.escape(props.width_, true) ?? 14, false) + $5vyXB$solidjsweb.ssrAttribute("height", $5vyXB$solidjsweb.escape(props.height_, true) ?? 26, false));
|
|
@@ -6086,7 +6086,7 @@ function $f8f64d05c525825b$export$d7841e452f2e59a8({
|
|
|
6086
6086
|
get_extra_filters_button_?.(make_open_filters_button());
|
|
6087
6087
|
get_extra_sorting_button_?.(make_open_sorting_button());
|
|
6088
6088
|
$5vyXB$solidjs.createEffect(() => {
|
|
6089
|
-
if (sort_and_filter_disabled_()) {
|
|
6089
|
+
if (sort_and_filter_disabled_?.()) {
|
|
6090
6090
|
// If someone changes the layout to slider-without-filters dynamically, close sorting and filters
|
|
6091
6091
|
set_filters_open(false);
|
|
6092
6092
|
set_sorting_open(false);
|
|
@@ -6094,7 +6094,7 @@ function $f8f64d05c525825b$export$d7841e452f2e59a8({
|
|
|
6094
6094
|
});
|
|
6095
6095
|
return $5vyXB$solidjsweb.createComponent((0, $5vyXB$solidjs.Show), {
|
|
6096
6096
|
get when() {
|
|
6097
|
-
return !sort_and_filter_disabled_();
|
|
6097
|
+
return !sort_and_filter_disabled_?.();
|
|
6098
6098
|
},
|
|
6099
6099
|
get children() {
|
|
6100
6100
|
return $5vyXB$solidjsweb.ssr($f8f64d05c525825b$var$_tmpl$3, $5vyXB$solidjsweb.ssrHydrationKey(), $5vyXB$solidjsweb.escape(make_open_filters_button(true, true)), $5vyXB$solidjsweb.escape(middle_elements_?.()), $5vyXB$solidjsweb.escape(make_open_sorting_button(true, true)));
|
|
@@ -7090,7 +7090,10 @@ function $840d88a04b2d22a7$export$f7d2f673fc2f091d({
|
|
|
7090
7090
|
id_: id_to_query_for_,
|
|
7091
7091
|
can_write_scroll_restoration_: can_write_scroll_restoration_
|
|
7092
7092
|
});
|
|
7093
|
-
|
|
7093
|
+
$5vyXB$solidjs.createEffect(() => {
|
|
7094
|
+
if (sort_and_filter_disabled_()) return;
|
|
7095
|
+
on_filters_constructed_?.();
|
|
7096
|
+
});
|
|
7094
7097
|
$5vyXB$solidjs.createComputed(() => {
|
|
7095
7098
|
if (plp_products_.loading) set_can_write_scroll_restoration(false);else if (plp_products_()) set_can_write_scroll_restoration(true);
|
|
7096
7099
|
});
|
|
@@ -7527,7 +7530,12 @@ function $48567ac5b39bac56$export$e2bf8ce7779e827e(props) {
|
|
|
7527
7530
|
return newId;
|
|
7528
7531
|
});
|
|
7529
7532
|
$5vyXB$solidjs.onCleanup(() => $deaaf04362a1bc71$export$f50b88e2a00918b5(props.on_listing_query_change)());
|
|
7530
|
-
const is_grid = $5vyXB$solidjs.createMemo(() =>
|
|
7533
|
+
const is_grid = $5vyXB$solidjs.createMemo(() => {
|
|
7534
|
+
const {
|
|
7535
|
+
layout: layout
|
|
7536
|
+
} = props;
|
|
7537
|
+
return !layout || layout === "grid";
|
|
7538
|
+
});
|
|
7531
7539
|
const grid_spacing_override = $5vyXB$solidjs.createMemo(() => {
|
|
7532
7540
|
const {
|
|
7533
7541
|
grid_spacing: grid_spacing
|
package/server/latest/index.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ import { ProductListingRequestV3 } from "@depict-ai/types/api/ProductListingRequ
|
|
|
10
10
|
import { GetListingRequest } from "@depict-ai/types/api/GetListingRequest";
|
|
11
11
|
import { BaseSearchRequestV3 } from "@depict-ai/types/api/BaseSearchRequestV3";
|
|
12
12
|
import { SearchFilter as _SearchFilter2 } from "@depict-ai/types/api/SearchRequestV2";
|
|
13
|
-
export const version = "3.0.
|
|
13
|
+
export const version = "3.0.18";
|
|
14
14
|
export type SDKColsAtSize = [number, number?][];
|
|
15
15
|
/**
|
|
16
16
|
* Transform SDK ColsAtSize into valid Layout ColsAtSize
|
|
@@ -974,7 +974,7 @@ export function CategoryPage<OriginalDisplay extends Display, OutputDisplay exte
|
|
|
974
974
|
category_title: typeof CategoryTitle | typeof embedded_num_products;
|
|
975
975
|
on_listing_query_change?: (new_listing_query?: ListingQuery | undefined, old_listing_query?: ListingQuery | undefined) => void;
|
|
976
976
|
content_blocks_by_row?: ContentBlocksByRow;
|
|
977
|
-
layout?:
|
|
977
|
+
layout?: PossibleLayout;
|
|
978
978
|
}): import("@depict-ai/utilishared/latest").Node_Array;
|
|
979
979
|
export function BreadCrumbs<T extends Display>({
|
|
980
980
|
depict_category
|
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 = "3.0.
|
|
10
|
+
const $ec291e0010116877$export$83d89fbfd8236492 = "3.0.18";
|
|
11
11
|
const $fbbadcb080ad1d4a$var$_tmpl$ = ["<svg", ' xmlns="http://www.w3.org/2000/svg"', ' viewBox="0 0 14 26"><path d="M2 24.656c-.078 0-.156-.016-.234-.047s-.133-.066-.187-.129c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422l10.371-10.371L1.578 2.883c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422.258-.176.422-.176.305.059.422.176l10.805 10.793a.59.59 0 0 1 .176.434c0 .172-.059.305-.176.422L2.422 24.48a.42.42 0 0 1-.199.129.54.54 0 0 1-.223.047zm0 0" fill="#0f0f0f"></path></svg>'];
|
|
12
12
|
function $fbbadcb080ad1d4a$export$8be2714ec7f169ee(props = {}) {
|
|
13
13
|
return $i7OB2$ssr($fbbadcb080ad1d4a$var$_tmpl$, $i7OB2$ssrHydrationKey(), $i7OB2$ssrAttribute("width", $i7OB2$escape(props.width_, true) ?? 14, false) + $i7OB2$ssrAttribute("height", $i7OB2$escape(props.height_, true) ?? 26, false));
|
|
@@ -6016,7 +6016,7 @@ function $cdea4cf8c5c071ef$export$d7841e452f2e59a8({
|
|
|
6016
6016
|
get_extra_filters_button_?.(make_open_filters_button());
|
|
6017
6017
|
get_extra_sorting_button_?.(make_open_sorting_button());
|
|
6018
6018
|
$i7OB2$createEffect(() => {
|
|
6019
|
-
if (sort_and_filter_disabled_()) {
|
|
6019
|
+
if (sort_and_filter_disabled_?.()) {
|
|
6020
6020
|
// If someone changes the layout to slider-without-filters dynamically, close sorting and filters
|
|
6021
6021
|
set_filters_open(false);
|
|
6022
6022
|
set_sorting_open(false);
|
|
@@ -6024,7 +6024,7 @@ function $cdea4cf8c5c071ef$export$d7841e452f2e59a8({
|
|
|
6024
6024
|
});
|
|
6025
6025
|
return $i7OB2$createComponent((0, $i7OB2$Show), {
|
|
6026
6026
|
get when() {
|
|
6027
|
-
return !sort_and_filter_disabled_();
|
|
6027
|
+
return !sort_and_filter_disabled_?.();
|
|
6028
6028
|
},
|
|
6029
6029
|
get children() {
|
|
6030
6030
|
return $i7OB2$ssr($cdea4cf8c5c071ef$var$_tmpl$3, $i7OB2$ssrHydrationKey(), $i7OB2$escape(make_open_filters_button(true, true)), $i7OB2$escape(middle_elements_?.()), $i7OB2$escape(make_open_sorting_button(true, true)));
|
|
@@ -7020,7 +7020,10 @@ function $df5d81d0fe61ff21$export$f7d2f673fc2f091d({
|
|
|
7020
7020
|
id_: id_to_query_for_,
|
|
7021
7021
|
can_write_scroll_restoration_: can_write_scroll_restoration_
|
|
7022
7022
|
});
|
|
7023
|
-
|
|
7023
|
+
$i7OB2$createEffect(() => {
|
|
7024
|
+
if (sort_and_filter_disabled_()) return;
|
|
7025
|
+
on_filters_constructed_?.();
|
|
7026
|
+
});
|
|
7024
7027
|
$i7OB2$createComputed(() => {
|
|
7025
7028
|
if (plp_products_.loading) set_can_write_scroll_restoration(false);else if (plp_products_()) set_can_write_scroll_restoration(true);
|
|
7026
7029
|
});
|
|
@@ -7457,7 +7460,12 @@ function $961b5c64bef4662f$export$e2bf8ce7779e827e(props) {
|
|
|
7457
7460
|
return newId;
|
|
7458
7461
|
});
|
|
7459
7462
|
$i7OB2$onCleanup(() => $d8dbf52fea1773e2$export$f50b88e2a00918b5(props.on_listing_query_change)());
|
|
7460
|
-
const is_grid = $i7OB2$createMemo(() =>
|
|
7463
|
+
const is_grid = $i7OB2$createMemo(() => {
|
|
7464
|
+
const {
|
|
7465
|
+
layout: layout
|
|
7466
|
+
} = props;
|
|
7467
|
+
return !layout || layout === "grid";
|
|
7468
|
+
});
|
|
7461
7469
|
const grid_spacing_override = $i7OB2$createMemo(() => {
|
|
7462
7470
|
const {
|
|
7463
7471
|
grid_spacing: grid_spacing
|