@depict-ai/ui 2.1.13 → 2.1.14
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 +8 -6
- package/ES10/index.d.ts +1 -1
- package/ES10/index.js +8 -6
- package/latest/index.cjs +8 -6
- package/latest/index.d.ts +1 -1
- package/latest/index.js +8 -6
- package/package.json +2 -2
- package/server/ES10/index.cjs +8 -6
- package/server/ES10/index.d.ts +1 -1
- package/server/ES10/index.js +8 -6
- package/server/latest/index.cjs +8 -6
- package/server/latest/index.d.ts +1 -1
- package/server/latest/index.js +8 -6
package/ES10/index.cjs
CHANGED
|
@@ -76,7 +76,7 @@ $parcel$export(module.exports, "defaultColsAtSize", () => $33eed84f447aa0c0$expo
|
|
|
76
76
|
$parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $33eed84f447aa0c0$export$7bf543b9d9be2c22);
|
|
77
77
|
$parcel$export(module.exports, "version", () => $aa1938dec50d6c12$export$83d89fbfd8236492);
|
|
78
78
|
/*! Depict.ai search and product listing SDK */
|
|
79
|
-
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "2.1.
|
|
79
|
+
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "2.1.14";
|
|
80
80
|
const $a68b73fd7ba0853f$var$fallback_operator = "in";
|
|
81
81
|
const $a68b73fd7ba0853f$var$fallback_token = "";
|
|
82
82
|
const $a68b73fd7ba0853f$var$legacy_filter_prefix = "filter_";
|
|
@@ -3124,7 +3124,7 @@ function $9c1d49181fb3002a$export$a32086fa6616eafd(_ref) {
|
|
|
3124
3124
|
// In this case we want to just correct the name and value of the already created object, which will be in parent_
|
|
3125
3125
|
parent_.value_ = value.map(v => v + "");
|
|
3126
3126
|
parent_.name_ = names[i];
|
|
3127
|
-
parent_.count_ = counts[i];
|
|
3127
|
+
parent_.count_ = counts === null || counts === void 0 ? void 0 : counts[i];
|
|
3128
3128
|
parent_.is_expanded_ = $9c1d49181fb3002a$var$make_expanded_signal({
|
|
3129
3129
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
3130
3130
|
filter_value_: parent_.value_,
|
|
@@ -4135,7 +4135,7 @@ function $5b88b077e48a4451$export$82eafebb825fc23f() {
|
|
|
4135
4135
|
return _el$;
|
|
4136
4136
|
})();
|
|
4137
4137
|
}
|
|
4138
|
-
const $8e7ac26c00243687$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=search-in-filters><input type=text class=query><!$><!/><button class=clear>`);
|
|
4138
|
+
const $8e7ac26c00243687$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=search-in-filters><input type=text class=query><!$><!/><button class=clear-filter-search>`);
|
|
4139
4139
|
const $8e7ac26c00243687$var$min_items_to_enable_filter_searching = 10; // For checkbox hierarchical we 2x this
|
|
4140
4140
|
function $8e7ac26c00243687$export$4b2c5292ffe0c5dd(filter_array_, section, i18n_) {
|
|
4141
4141
|
const [filter_query_, set_filter_query_] = $52FdA$solidjs.createSignal();
|
|
@@ -4147,7 +4147,7 @@ function $8e7ac26c00243687$export$4b2c5292ffe0c5dd(filter_array_, section, i18n_
|
|
|
4147
4147
|
const type = (_filter$meta = filter.meta) === null || _filter$meta === void 0 ? void 0 : _filter$meta.type;
|
|
4148
4148
|
if (type === "range") continue;
|
|
4149
4149
|
const length = filter.meta.values.length;
|
|
4150
|
-
count += type === "checkbox-color"
|
|
4150
|
+
count += type === "checkbox-color" || type === "checkbox-grid" ? length / 3 : length; // For checkbox-color we have two columns, checkbox-grid three, so we can show search later
|
|
4151
4151
|
}
|
|
4152
4152
|
|
|
4153
4153
|
return count >= $8e7ac26c00243687$var$min_items_to_enable_filter_searching;
|
|
@@ -4229,7 +4229,9 @@ function $8e7ac26c00243687$export$4b2c5292ffe0c5dd(filter_array_, section, i18n_
|
|
|
4229
4229
|
...filter,
|
|
4230
4230
|
meta: {
|
|
4231
4231
|
...meta,
|
|
4232
|
-
counts
|
|
4232
|
+
...(counts ? {
|
|
4233
|
+
counts: counts === null || counts === void 0 ? void 0 : counts.filter((_, i) => filtered_indexes[i])
|
|
4234
|
+
} : {}),
|
|
4233
4235
|
...(names ? {
|
|
4234
4236
|
names: (_meta$names = meta.names) === null || _meta$names === void 0 ? void 0 : _meta$names.filter((_, i) => filtered_indexes[i])
|
|
4235
4237
|
} : {}),
|
|
@@ -11138,7 +11140,7 @@ function $f1fc9ea3e7632eba$export$f631859cab12b342(_ref) {
|
|
|
11138
11140
|
})), _el$8, _co$);
|
|
11139
11141
|
$52FdA$solidjsweb.insert(_el$5, $52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.Show), {
|
|
11140
11142
|
get when() {
|
|
11141
|
-
return
|
|
11143
|
+
return content_result_ === null || content_result_ === void 0 ? void 0 : content_result_().description;
|
|
11142
11144
|
},
|
|
11143
11145
|
get children() {
|
|
11144
11146
|
const _el$6 = $52FdA$solidjsweb.getNextElement($f1fc9ea3e7632eba$var$_tmpl$3);
|
package/ES10/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { CategorySuggestion, SearchSuggestionsResponse } from "@depict-ai/types/
|
|
|
7
7
|
import { BaseSearchRequest } from "@depict-ai/types/api/BaseSearchRequest";
|
|
8
8
|
import { SearchSuggestionsRequest } from "@depict-ai/types/api/SearchSuggestionsRequest";
|
|
9
9
|
import { ProductListingRequestV2 } from "@depict-ai/types/api/ProductListingRequestV2";
|
|
10
|
-
export const version = "2.1.
|
|
10
|
+
export const version = "2.1.14";
|
|
11
11
|
/**
|
|
12
12
|
* Use `javascript_media_query` but return a reactive accessor instead of taking a callback function
|
|
13
13
|
*/
|
package/ES10/index.js
CHANGED
|
@@ -9,7 +9,7 @@ import { createStore as $8tj43$createStore, reconcile as $8tj43$reconcile } from
|
|
|
9
9
|
/*! Depict.ai search and product listing SDK */
|
|
10
10
|
import { register_es_version } from "../multi_import_deduplicator.mjs";
|
|
11
11
|
register_es_version("ui", "ES10");
|
|
12
|
-
const $8db9a15135765c11$export$83d89fbfd8236492 = "2.1.
|
|
12
|
+
const $8db9a15135765c11$export$83d89fbfd8236492 = "2.1.14";
|
|
13
13
|
const $2855bffe06ef7a03$var$fallback_operator = "in";
|
|
14
14
|
const $2855bffe06ef7a03$var$fallback_token = "";
|
|
15
15
|
const $2855bffe06ef7a03$var$legacy_filter_prefix = "filter_";
|
|
@@ -3057,7 +3057,7 @@ function $0ae614c5c7babb43$export$a32086fa6616eafd(_ref) {
|
|
|
3057
3057
|
// In this case we want to just correct the name and value of the already created object, which will be in parent_
|
|
3058
3058
|
parent_.value_ = value.map(v => v + "");
|
|
3059
3059
|
parent_.name_ = names[i];
|
|
3060
|
-
parent_.count_ = counts[i];
|
|
3060
|
+
parent_.count_ = counts === null || counts === void 0 ? void 0 : counts[i];
|
|
3061
3061
|
parent_.is_expanded_ = $0ae614c5c7babb43$var$make_expanded_signal({
|
|
3062
3062
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
3063
3063
|
filter_value_: parent_.value_,
|
|
@@ -4068,7 +4068,7 @@ function $ef0f18a578b32578$export$82eafebb825fc23f() {
|
|
|
4068
4068
|
return _el$;
|
|
4069
4069
|
})();
|
|
4070
4070
|
}
|
|
4071
|
-
const $e354b2f9ce33cb75$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div class=search-in-filters><input type=text class=query><!$><!/><button class=clear>`);
|
|
4071
|
+
const $e354b2f9ce33cb75$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div class=search-in-filters><input type=text class=query><!$><!/><button class=clear-filter-search>`);
|
|
4072
4072
|
const $e354b2f9ce33cb75$var$min_items_to_enable_filter_searching = 10; // For checkbox hierarchical we 2x this
|
|
4073
4073
|
function $e354b2f9ce33cb75$export$4b2c5292ffe0c5dd(filter_array_, section, i18n_) {
|
|
4074
4074
|
const [filter_query_, set_filter_query_] = $8tj43$createSignal();
|
|
@@ -4080,7 +4080,7 @@ function $e354b2f9ce33cb75$export$4b2c5292ffe0c5dd(filter_array_, section, i18n_
|
|
|
4080
4080
|
const type = (_filter$meta = filter.meta) === null || _filter$meta === void 0 ? void 0 : _filter$meta.type;
|
|
4081
4081
|
if (type === "range") continue;
|
|
4082
4082
|
const length = filter.meta.values.length;
|
|
4083
|
-
count += type === "checkbox-color"
|
|
4083
|
+
count += type === "checkbox-color" || type === "checkbox-grid" ? length / 3 : length; // For checkbox-color we have two columns, checkbox-grid three, so we can show search later
|
|
4084
4084
|
}
|
|
4085
4085
|
|
|
4086
4086
|
return count >= $e354b2f9ce33cb75$var$min_items_to_enable_filter_searching;
|
|
@@ -4162,7 +4162,9 @@ function $e354b2f9ce33cb75$export$4b2c5292ffe0c5dd(filter_array_, section, i18n_
|
|
|
4162
4162
|
...filter,
|
|
4163
4163
|
meta: {
|
|
4164
4164
|
...meta,
|
|
4165
|
-
counts
|
|
4165
|
+
...(counts ? {
|
|
4166
|
+
counts: counts === null || counts === void 0 ? void 0 : counts.filter((_, i) => filtered_indexes[i])
|
|
4167
|
+
} : {}),
|
|
4166
4168
|
...(names ? {
|
|
4167
4169
|
names: (_meta$names = meta.names) === null || _meta$names === void 0 ? void 0 : _meta$names.filter((_, i) => filtered_indexes[i])
|
|
4168
4170
|
} : {}),
|
|
@@ -11071,7 +11073,7 @@ function $22470de5f42cc35d$export$f631859cab12b342(_ref) {
|
|
|
11071
11073
|
})), _el$8, _co$);
|
|
11072
11074
|
$8tj43$insert(_el$5, $8tj43$createComponent((0, $8tj43$Show), {
|
|
11073
11075
|
get when() {
|
|
11074
|
-
return
|
|
11076
|
+
return content_result_ === null || content_result_ === void 0 ? void 0 : content_result_().description;
|
|
11075
11077
|
},
|
|
11076
11078
|
get children() {
|
|
11077
11079
|
const _el$6 = $8tj43$getNextElement($22470de5f42cc35d$var$_tmpl$3);
|
package/latest/index.cjs
CHANGED
|
@@ -70,7 +70,7 @@ $parcel$export(module.exports, "defaultColsAtSize", () => $a3280f0aad997933$expo
|
|
|
70
70
|
$parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $a3280f0aad997933$export$7bf543b9d9be2c22);
|
|
71
71
|
$parcel$export(module.exports, "version", () => $b757f75811f3261f$export$83d89fbfd8236492);
|
|
72
72
|
/*! Depict.ai search and product listing SDK */
|
|
73
|
-
const $b757f75811f3261f$export$83d89fbfd8236492 = "2.1.
|
|
73
|
+
const $b757f75811f3261f$export$83d89fbfd8236492 = "2.1.14";
|
|
74
74
|
const $1ab22f2cd39b3061$var$fallback_operator = "in";
|
|
75
75
|
const $1ab22f2cd39b3061$var$fallback_token = "";
|
|
76
76
|
const $1ab22f2cd39b3061$var$legacy_filter_prefix = "filter_";
|
|
@@ -2971,7 +2971,7 @@ function $3bdc00a1353c1150$export$a32086fa6616eafd({
|
|
|
2971
2971
|
// In this case we want to just correct the name and value of the already created object, which will be in parent_
|
|
2972
2972
|
parent_.value_ = value.map(v => v + "");
|
|
2973
2973
|
parent_.name_ = names[i];
|
|
2974
|
-
parent_.count_ = counts[i];
|
|
2974
|
+
parent_.count_ = counts?.[i];
|
|
2975
2975
|
parent_.is_expanded_ = $3bdc00a1353c1150$var$make_expanded_signal({
|
|
2976
2976
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
2977
2977
|
filter_value_: parent_.value_,
|
|
@@ -3903,7 +3903,7 @@ function $87d7574e1d89d69b$export$82eafebb825fc23f(props = {}) {
|
|
|
3903
3903
|
return _el$;
|
|
3904
3904
|
})();
|
|
3905
3905
|
}
|
|
3906
|
-
const $47d8681015b71901$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=search-in-filters><input type=text class=query><!$><!/><button class=clear>`);
|
|
3906
|
+
const $47d8681015b71901$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=search-in-filters><input type=text class=query><!$><!/><button class=clear-filter-search>`);
|
|
3907
3907
|
const $47d8681015b71901$var$min_items_to_enable_filter_searching = 10; // For checkbox hierarchical we 2x this
|
|
3908
3908
|
function $47d8681015b71901$export$4b2c5292ffe0c5dd(filter_array_, section, i18n_) {
|
|
3909
3909
|
const [filter_query_, set_filter_query_] = $gVhhF$solidjs.createSignal();
|
|
@@ -3914,7 +3914,7 @@ function $47d8681015b71901$export$4b2c5292ffe0c5dd(filter_array_, section, i18n_
|
|
|
3914
3914
|
const type = filter.meta?.type;
|
|
3915
3915
|
if (type === "range") continue;
|
|
3916
3916
|
const length = filter.meta.values.length;
|
|
3917
|
-
count += type === "checkbox-color"
|
|
3917
|
+
count += type === "checkbox-color" || type === "checkbox-grid" ? length / 3 : length; // For checkbox-color we have two columns, checkbox-grid three, so we can show search later
|
|
3918
3918
|
}
|
|
3919
3919
|
|
|
3920
3920
|
return count >= $47d8681015b71901$var$min_items_to_enable_filter_searching;
|
|
@@ -3995,7 +3995,9 @@ function $47d8681015b71901$export$4b2c5292ffe0c5dd(filter_array_, section, i18n_
|
|
|
3995
3995
|
...filter,
|
|
3996
3996
|
meta: {
|
|
3997
3997
|
...meta,
|
|
3998
|
-
counts
|
|
3998
|
+
...(counts ? {
|
|
3999
|
+
counts: counts?.filter((_, i) => filtered_indexes[i])
|
|
4000
|
+
} : {}),
|
|
3999
4001
|
...(names ? {
|
|
4000
4002
|
names: meta.names?.filter((_, i) => filtered_indexes[i])
|
|
4001
4003
|
} : {}),
|
|
@@ -10396,7 +10398,7 @@ function $76227de40be817e5$export$f631859cab12b342({
|
|
|
10396
10398
|
})), _el$8, _co$);
|
|
10397
10399
|
$gVhhF$solidjsweb.insert(_el$5, $gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Show), {
|
|
10398
10400
|
get when() {
|
|
10399
|
-
return content_result_?.().description
|
|
10401
|
+
return content_result_?.().description;
|
|
10400
10402
|
},
|
|
10401
10403
|
get children() {
|
|
10402
10404
|
const _el$6 = $gVhhF$solidjsweb.getNextElement($76227de40be817e5$var$_tmpl$3);
|
package/latest/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { CategorySuggestion, SearchSuggestionsResponse } from "@depict-ai/types/
|
|
|
7
7
|
import { BaseSearchRequest } from "@depict-ai/types/api/BaseSearchRequest";
|
|
8
8
|
import { SearchSuggestionsRequest } from "@depict-ai/types/api/SearchSuggestionsRequest";
|
|
9
9
|
import { ProductListingRequestV2 } from "@depict-ai/types/api/ProductListingRequestV2";
|
|
10
|
-
export const version = "2.1.
|
|
10
|
+
export const version = "2.1.14";
|
|
11
11
|
/**
|
|
12
12
|
* Use `javascript_media_query` but return a reactive accessor instead of taking a callback function
|
|
13
13
|
*/
|
package/latest/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import { createStore as $9HbP8$createStore, reconcile as $9HbP8$reconcile } from
|
|
|
6
6
|
/*! Depict.ai search and product listing SDK */
|
|
7
7
|
import { register_es_version } from "../multi_import_deduplicator.mjs";
|
|
8
8
|
register_es_version("ui", "latest");
|
|
9
|
-
const $ec291e0010116877$export$83d89fbfd8236492 = "2.1.
|
|
9
|
+
const $ec291e0010116877$export$83d89fbfd8236492 = "2.1.14";
|
|
10
10
|
const $4147651646da990a$var$fallback_operator = "in";
|
|
11
11
|
const $4147651646da990a$var$fallback_token = "";
|
|
12
12
|
const $4147651646da990a$var$legacy_filter_prefix = "filter_";
|
|
@@ -2907,7 +2907,7 @@ function $1c8cac76cb67e9af$export$a32086fa6616eafd({
|
|
|
2907
2907
|
// In this case we want to just correct the name and value of the already created object, which will be in parent_
|
|
2908
2908
|
parent_.value_ = value.map(v => v + "");
|
|
2909
2909
|
parent_.name_ = names[i];
|
|
2910
|
-
parent_.count_ = counts[i];
|
|
2910
|
+
parent_.count_ = counts?.[i];
|
|
2911
2911
|
parent_.is_expanded_ = $1c8cac76cb67e9af$var$make_expanded_signal({
|
|
2912
2912
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
2913
2913
|
filter_value_: parent_.value_,
|
|
@@ -3839,7 +3839,7 @@ function $16f0ed5ea30d8d9c$export$82eafebb825fc23f(props = {}) {
|
|
|
3839
3839
|
return _el$;
|
|
3840
3840
|
})();
|
|
3841
3841
|
}
|
|
3842
|
-
const $e01b34f289b61435$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div class=search-in-filters><input type=text class=query><!$><!/><button class=clear>`);
|
|
3842
|
+
const $e01b34f289b61435$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div class=search-in-filters><input type=text class=query><!$><!/><button class=clear-filter-search>`);
|
|
3843
3843
|
const $e01b34f289b61435$var$min_items_to_enable_filter_searching = 10; // For checkbox hierarchical we 2x this
|
|
3844
3844
|
function $e01b34f289b61435$export$4b2c5292ffe0c5dd(filter_array_, section, i18n_) {
|
|
3845
3845
|
const [filter_query_, set_filter_query_] = $9HbP8$createSignal();
|
|
@@ -3850,7 +3850,7 @@ function $e01b34f289b61435$export$4b2c5292ffe0c5dd(filter_array_, section, i18n_
|
|
|
3850
3850
|
const type = filter.meta?.type;
|
|
3851
3851
|
if (type === "range") continue;
|
|
3852
3852
|
const length = filter.meta.values.length;
|
|
3853
|
-
count += type === "checkbox-color"
|
|
3853
|
+
count += type === "checkbox-color" || type === "checkbox-grid" ? length / 3 : length; // For checkbox-color we have two columns, checkbox-grid three, so we can show search later
|
|
3854
3854
|
}
|
|
3855
3855
|
|
|
3856
3856
|
return count >= $e01b34f289b61435$var$min_items_to_enable_filter_searching;
|
|
@@ -3931,7 +3931,9 @@ function $e01b34f289b61435$export$4b2c5292ffe0c5dd(filter_array_, section, i18n_
|
|
|
3931
3931
|
...filter,
|
|
3932
3932
|
meta: {
|
|
3933
3933
|
...meta,
|
|
3934
|
-
counts
|
|
3934
|
+
...(counts ? {
|
|
3935
|
+
counts: counts?.filter((_, i) => filtered_indexes[i])
|
|
3936
|
+
} : {}),
|
|
3935
3937
|
...(names ? {
|
|
3936
3938
|
names: meta.names?.filter((_, i) => filtered_indexes[i])
|
|
3937
3939
|
} : {}),
|
|
@@ -10332,7 +10334,7 @@ function $b2bf2cdcff8142d8$export$f631859cab12b342({
|
|
|
10332
10334
|
})), _el$8, _co$);
|
|
10333
10335
|
$9HbP8$insert(_el$5, $9HbP8$createComponent((0, $9HbP8$Show), {
|
|
10334
10336
|
get when() {
|
|
10335
|
-
return content_result_?.().description
|
|
10337
|
+
return content_result_?.().description;
|
|
10336
10338
|
},
|
|
10337
10339
|
get children() {
|
|
10338
10340
|
const _el$6 = $9HbP8$getNextElement($b2bf2cdcff8142d8$var$_tmpl$3);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depict-ai/ui",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.14",
|
|
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",
|
|
@@ -236,7 +236,7 @@
|
|
|
236
236
|
"@babel/plugin-transform-typescript": "^7.22.9",
|
|
237
237
|
"@babel/runtime": "latest",
|
|
238
238
|
"@babel/runtime-corejs3": "^7.22.6",
|
|
239
|
-
"@depict-ai/plp-styling": "^1.2.
|
|
239
|
+
"@depict-ai/plp-styling": "^1.2.8",
|
|
240
240
|
"@depict-ai/types": "^1.0.39",
|
|
241
241
|
"@depict-ai/utilishared": "^1.0.48",
|
|
242
242
|
"solid-js": "^1.8.1"
|
package/server/ES10/index.cjs
CHANGED
|
@@ -76,7 +76,7 @@ $parcel$export(module.exports, "defaultColsAtSize", () => $33eed84f447aa0c0$expo
|
|
|
76
76
|
$parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $33eed84f447aa0c0$export$7bf543b9d9be2c22);
|
|
77
77
|
$parcel$export(module.exports, "version", () => $aa1938dec50d6c12$export$83d89fbfd8236492);
|
|
78
78
|
/*! Depict.ai search and product listing SDK */
|
|
79
|
-
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "2.1.
|
|
79
|
+
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "2.1.14";
|
|
80
80
|
const $a68b73fd7ba0853f$var$fallback_operator = "in";
|
|
81
81
|
const $a68b73fd7ba0853f$var$fallback_token = "";
|
|
82
82
|
const $a68b73fd7ba0853f$var$legacy_filter_prefix = "filter_";
|
|
@@ -2423,7 +2423,7 @@ function $9c1d49181fb3002a$export$a32086fa6616eafd(_ref) {
|
|
|
2423
2423
|
// In this case we want to just correct the name and value of the already created object, which will be in parent_
|
|
2424
2424
|
parent_.value_ = value.map(v => v + "");
|
|
2425
2425
|
parent_.name_ = names[i];
|
|
2426
|
-
parent_.count_ = counts[i];
|
|
2426
|
+
parent_.count_ = counts === null || counts === void 0 ? void 0 : counts[i];
|
|
2427
2427
|
parent_.is_expanded_ = $9c1d49181fb3002a$var$make_expanded_signal({
|
|
2428
2428
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
2429
2429
|
filter_value_: parent_.value_,
|
|
@@ -3295,7 +3295,7 @@ function $5b88b077e48a4451$export$82eafebb825fc23f() {
|
|
|
3295
3295
|
viewBox: "0 0 20 22"
|
|
3296
3296
|
}, props), () => $3hooq$solidjsweb.ssr($5b88b077e48a4451$var$_tmpl$), true);
|
|
3297
3297
|
}
|
|
3298
|
-
const $8e7ac26c00243687$var$_tmpl$ = ["<div", ' class="search-in-filters"><input type="text" class="query"', "><!--$-->", '<!--/--><button style="', '" class="clear">', "</button></div>"];
|
|
3298
|
+
const $8e7ac26c00243687$var$_tmpl$ = ["<div", ' class="search-in-filters"><input type="text" class="query"', "><!--$-->", '<!--/--><button style="', '" class="clear-filter-search">', "</button></div>"];
|
|
3299
3299
|
const $8e7ac26c00243687$var$min_items_to_enable_filter_searching = 10; // For checkbox hierarchical we 2x this
|
|
3300
3300
|
function $8e7ac26c00243687$export$4b2c5292ffe0c5dd(filter_array_, section, i18n_) {
|
|
3301
3301
|
const [filter_query_, set_filter_query_] = $3hooq$solidjs.createSignal();
|
|
@@ -3307,7 +3307,7 @@ function $8e7ac26c00243687$export$4b2c5292ffe0c5dd(filter_array_, section, i18n_
|
|
|
3307
3307
|
const type = (_filter$meta = filter.meta) === null || _filter$meta === void 0 ? void 0 : _filter$meta.type;
|
|
3308
3308
|
if (type === "range") continue;
|
|
3309
3309
|
const length = filter.meta.values.length;
|
|
3310
|
-
count += type === "checkbox-color"
|
|
3310
|
+
count += type === "checkbox-color" || type === "checkbox-grid" ? length / 3 : length; // For checkbox-color we have two columns, checkbox-grid three, so we can show search later
|
|
3311
3311
|
}
|
|
3312
3312
|
|
|
3313
3313
|
return count >= $8e7ac26c00243687$var$min_items_to_enable_filter_searching;
|
|
@@ -3368,7 +3368,9 @@ function $8e7ac26c00243687$export$4b2c5292ffe0c5dd(filter_array_, section, i18n_
|
|
|
3368
3368
|
...filter,
|
|
3369
3369
|
meta: {
|
|
3370
3370
|
...meta,
|
|
3371
|
-
counts
|
|
3371
|
+
...(counts ? {
|
|
3372
|
+
counts: counts === null || counts === void 0 ? void 0 : counts.filter((_, i) => filtered_indexes[i])
|
|
3373
|
+
} : {}),
|
|
3372
3374
|
...(names ? {
|
|
3373
3375
|
names: (_meta$names = meta.names) === null || _meta$names === void 0 ? void 0 : _meta$names.filter((_, i) => filtered_indexes[i])
|
|
3374
3376
|
} : {}),
|
|
@@ -9163,7 +9165,7 @@ function $f1fc9ea3e7632eba$export$f631859cab12b342(_ref) {
|
|
|
9163
9165
|
}
|
|
9164
9166
|
}))), $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent((0, $3hooq$solidjs.Show), {
|
|
9165
9167
|
get when() {
|
|
9166
|
-
return
|
|
9168
|
+
return content_result_ === null || content_result_ === void 0 ? void 0 : content_result_().description;
|
|
9167
9169
|
},
|
|
9168
9170
|
get children() {
|
|
9169
9171
|
return $3hooq$solidjsweb.ssr($f1fc9ea3e7632eba$var$_tmpl$, $3hooq$solidjsweb.ssrHydrationKey(), $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent((0, $3hooq$solidjs.Show), {
|
package/server/ES10/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { CategorySuggestion, SearchSuggestionsResponse } from "@depict-ai/types/
|
|
|
7
7
|
import { BaseSearchRequest } from "@depict-ai/types/api/BaseSearchRequest";
|
|
8
8
|
import { SearchSuggestionsRequest } from "@depict-ai/types/api/SearchSuggestionsRequest";
|
|
9
9
|
import { ProductListingRequestV2 } from "@depict-ai/types/api/ProductListingRequestV2";
|
|
10
|
-
export const version = "2.1.
|
|
10
|
+
export const version = "2.1.14";
|
|
11
11
|
/**
|
|
12
12
|
* Use `javascript_media_query` but return a reactive accessor instead of taking a callback function
|
|
13
13
|
*/
|
package/server/ES10/index.js
CHANGED
|
@@ -9,7 +9,7 @@ import { createStore as $b8hua$createStore, reconcile as $b8hua$reconcile } from
|
|
|
9
9
|
/*! Depict.ai search and product listing SDK */
|
|
10
10
|
import { register_es_version } from "../../multi_import_deduplicator.mjs";
|
|
11
11
|
register_es_version("ui", "ES10");
|
|
12
|
-
const $8db9a15135765c11$export$83d89fbfd8236492 = "2.1.
|
|
12
|
+
const $8db9a15135765c11$export$83d89fbfd8236492 = "2.1.14";
|
|
13
13
|
const $2855bffe06ef7a03$var$fallback_operator = "in";
|
|
14
14
|
const $2855bffe06ef7a03$var$fallback_token = "";
|
|
15
15
|
const $2855bffe06ef7a03$var$legacy_filter_prefix = "filter_";
|
|
@@ -2356,7 +2356,7 @@ function $0ae614c5c7babb43$export$a32086fa6616eafd(_ref) {
|
|
|
2356
2356
|
// In this case we want to just correct the name and value of the already created object, which will be in parent_
|
|
2357
2357
|
parent_.value_ = value.map(v => v + "");
|
|
2358
2358
|
parent_.name_ = names[i];
|
|
2359
|
-
parent_.count_ = counts[i];
|
|
2359
|
+
parent_.count_ = counts === null || counts === void 0 ? void 0 : counts[i];
|
|
2360
2360
|
parent_.is_expanded_ = $0ae614c5c7babb43$var$make_expanded_signal({
|
|
2361
2361
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
2362
2362
|
filter_value_: parent_.value_,
|
|
@@ -3228,7 +3228,7 @@ function $ef0f18a578b32578$export$82eafebb825fc23f() {
|
|
|
3228
3228
|
viewBox: "0 0 20 22"
|
|
3229
3229
|
}, props), () => $b8hua$ssr($ef0f18a578b32578$var$_tmpl$), true);
|
|
3230
3230
|
}
|
|
3231
|
-
const $e354b2f9ce33cb75$var$_tmpl$ = ["<div", ' class="search-in-filters"><input type="text" class="query"', "><!--$-->", '<!--/--><button style="', '" class="clear">', "</button></div>"];
|
|
3231
|
+
const $e354b2f9ce33cb75$var$_tmpl$ = ["<div", ' class="search-in-filters"><input type="text" class="query"', "><!--$-->", '<!--/--><button style="', '" class="clear-filter-search">', "</button></div>"];
|
|
3232
3232
|
const $e354b2f9ce33cb75$var$min_items_to_enable_filter_searching = 10; // For checkbox hierarchical we 2x this
|
|
3233
3233
|
function $e354b2f9ce33cb75$export$4b2c5292ffe0c5dd(filter_array_, section, i18n_) {
|
|
3234
3234
|
const [filter_query_, set_filter_query_] = $b8hua$createSignal();
|
|
@@ -3240,7 +3240,7 @@ function $e354b2f9ce33cb75$export$4b2c5292ffe0c5dd(filter_array_, section, i18n_
|
|
|
3240
3240
|
const type = (_filter$meta = filter.meta) === null || _filter$meta === void 0 ? void 0 : _filter$meta.type;
|
|
3241
3241
|
if (type === "range") continue;
|
|
3242
3242
|
const length = filter.meta.values.length;
|
|
3243
|
-
count += type === "checkbox-color"
|
|
3243
|
+
count += type === "checkbox-color" || type === "checkbox-grid" ? length / 3 : length; // For checkbox-color we have two columns, checkbox-grid three, so we can show search later
|
|
3244
3244
|
}
|
|
3245
3245
|
|
|
3246
3246
|
return count >= $e354b2f9ce33cb75$var$min_items_to_enable_filter_searching;
|
|
@@ -3301,7 +3301,9 @@ function $e354b2f9ce33cb75$export$4b2c5292ffe0c5dd(filter_array_, section, i18n_
|
|
|
3301
3301
|
...filter,
|
|
3302
3302
|
meta: {
|
|
3303
3303
|
...meta,
|
|
3304
|
-
counts
|
|
3304
|
+
...(counts ? {
|
|
3305
|
+
counts: counts === null || counts === void 0 ? void 0 : counts.filter((_, i) => filtered_indexes[i])
|
|
3306
|
+
} : {}),
|
|
3305
3307
|
...(names ? {
|
|
3306
3308
|
names: (_meta$names = meta.names) === null || _meta$names === void 0 ? void 0 : _meta$names.filter((_, i) => filtered_indexes[i])
|
|
3307
3309
|
} : {}),
|
|
@@ -9096,7 +9098,7 @@ function $22470de5f42cc35d$export$f631859cab12b342(_ref) {
|
|
|
9096
9098
|
}
|
|
9097
9099
|
}))), $b8hua$escape($b8hua$createComponent((0, $b8hua$Show), {
|
|
9098
9100
|
get when() {
|
|
9099
|
-
return
|
|
9101
|
+
return content_result_ === null || content_result_ === void 0 ? void 0 : content_result_().description;
|
|
9100
9102
|
},
|
|
9101
9103
|
get children() {
|
|
9102
9104
|
return $b8hua$ssr($22470de5f42cc35d$var$_tmpl$, $b8hua$ssrHydrationKey(), $b8hua$escape($b8hua$createComponent((0, $b8hua$Show), {
|
package/server/latest/index.cjs
CHANGED
|
@@ -70,7 +70,7 @@ $parcel$export(module.exports, "defaultColsAtSize", () => $a3280f0aad997933$expo
|
|
|
70
70
|
$parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $a3280f0aad997933$export$7bf543b9d9be2c22);
|
|
71
71
|
$parcel$export(module.exports, "version", () => $b757f75811f3261f$export$83d89fbfd8236492);
|
|
72
72
|
/*! Depict.ai search and product listing SDK */
|
|
73
|
-
const $b757f75811f3261f$export$83d89fbfd8236492 = "2.1.
|
|
73
|
+
const $b757f75811f3261f$export$83d89fbfd8236492 = "2.1.14";
|
|
74
74
|
const $1ab22f2cd39b3061$var$fallback_operator = "in";
|
|
75
75
|
const $1ab22f2cd39b3061$var$fallback_token = "";
|
|
76
76
|
const $1ab22f2cd39b3061$var$legacy_filter_prefix = "filter_";
|
|
@@ -2295,7 +2295,7 @@ function $3bdc00a1353c1150$export$a32086fa6616eafd({
|
|
|
2295
2295
|
// In this case we want to just correct the name and value of the already created object, which will be in parent_
|
|
2296
2296
|
parent_.value_ = value.map(v => v + "");
|
|
2297
2297
|
parent_.name_ = names[i];
|
|
2298
|
-
parent_.count_ = counts[i];
|
|
2298
|
+
parent_.count_ = counts?.[i];
|
|
2299
2299
|
parent_.is_expanded_ = $3bdc00a1353c1150$var$make_expanded_signal({
|
|
2300
2300
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
2301
2301
|
filter_value_: parent_.value_,
|
|
@@ -3099,7 +3099,7 @@ function $87d7574e1d89d69b$export$82eafebb825fc23f(props = {}) {
|
|
|
3099
3099
|
viewBox: "0 0 20 22"
|
|
3100
3100
|
}, props), () => $5vyXB$solidjsweb.ssr($87d7574e1d89d69b$var$_tmpl$), true);
|
|
3101
3101
|
}
|
|
3102
|
-
const $47d8681015b71901$var$_tmpl$ = ["<div", ' class="search-in-filters"><input type="text" class="query"', "><!--$-->", '<!--/--><button style="', '" class="clear">', "</button></div>"];
|
|
3102
|
+
const $47d8681015b71901$var$_tmpl$ = ["<div", ' class="search-in-filters"><input type="text" class="query"', "><!--$-->", '<!--/--><button style="', '" class="clear-filter-search">', "</button></div>"];
|
|
3103
3103
|
const $47d8681015b71901$var$min_items_to_enable_filter_searching = 10; // For checkbox hierarchical we 2x this
|
|
3104
3104
|
function $47d8681015b71901$export$4b2c5292ffe0c5dd(filter_array_, section, i18n_) {
|
|
3105
3105
|
const [filter_query_, set_filter_query_] = $5vyXB$solidjs.createSignal();
|
|
@@ -3110,7 +3110,7 @@ function $47d8681015b71901$export$4b2c5292ffe0c5dd(filter_array_, section, i18n_
|
|
|
3110
3110
|
const type = filter.meta?.type;
|
|
3111
3111
|
if (type === "range") continue;
|
|
3112
3112
|
const length = filter.meta.values.length;
|
|
3113
|
-
count += type === "checkbox-color"
|
|
3113
|
+
count += type === "checkbox-color" || type === "checkbox-grid" ? length / 3 : length; // For checkbox-color we have two columns, checkbox-grid three, so we can show search later
|
|
3114
3114
|
}
|
|
3115
3115
|
|
|
3116
3116
|
return count >= $47d8681015b71901$var$min_items_to_enable_filter_searching;
|
|
@@ -3170,7 +3170,9 @@ function $47d8681015b71901$export$4b2c5292ffe0c5dd(filter_array_, section, i18n_
|
|
|
3170
3170
|
...filter,
|
|
3171
3171
|
meta: {
|
|
3172
3172
|
...meta,
|
|
3173
|
-
counts
|
|
3173
|
+
...(counts ? {
|
|
3174
|
+
counts: counts?.filter((_, i) => filtered_indexes[i])
|
|
3175
|
+
} : {}),
|
|
3174
3176
|
...(names ? {
|
|
3175
3177
|
names: meta.names?.filter((_, i) => filtered_indexes[i])
|
|
3176
3178
|
} : {}),
|
|
@@ -8486,7 +8488,7 @@ function $76227de40be817e5$export$f631859cab12b342({
|
|
|
8486
8488
|
}
|
|
8487
8489
|
}))), $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent((0, $5vyXB$solidjs.Show), {
|
|
8488
8490
|
get when() {
|
|
8489
|
-
return content_result_?.().description
|
|
8491
|
+
return content_result_?.().description;
|
|
8490
8492
|
},
|
|
8491
8493
|
get children() {
|
|
8492
8494
|
return $5vyXB$solidjsweb.ssr($76227de40be817e5$var$_tmpl$, $5vyXB$solidjsweb.ssrHydrationKey(), $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent((0, $5vyXB$solidjs.Show), {
|
package/server/latest/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { CategorySuggestion, SearchSuggestionsResponse } from "@depict-ai/types/
|
|
|
7
7
|
import { BaseSearchRequest } from "@depict-ai/types/api/BaseSearchRequest";
|
|
8
8
|
import { SearchSuggestionsRequest } from "@depict-ai/types/api/SearchSuggestionsRequest";
|
|
9
9
|
import { ProductListingRequestV2 } from "@depict-ai/types/api/ProductListingRequestV2";
|
|
10
|
-
export const version = "2.1.
|
|
10
|
+
export const version = "2.1.14";
|
|
11
11
|
/**
|
|
12
12
|
* Use `javascript_media_query` but return a reactive accessor instead of taking a callback function
|
|
13
13
|
*/
|
package/server/latest/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import { createStore as $i7OB2$createStore, reconcile as $i7OB2$reconcile } from
|
|
|
6
6
|
/*! Depict.ai search and product listing SDK */
|
|
7
7
|
import { register_es_version } from "../../multi_import_deduplicator.mjs";
|
|
8
8
|
register_es_version("ui", "latest");
|
|
9
|
-
const $ec291e0010116877$export$83d89fbfd8236492 = "2.1.
|
|
9
|
+
const $ec291e0010116877$export$83d89fbfd8236492 = "2.1.14";
|
|
10
10
|
const $4147651646da990a$var$fallback_operator = "in";
|
|
11
11
|
const $4147651646da990a$var$fallback_token = "";
|
|
12
12
|
const $4147651646da990a$var$legacy_filter_prefix = "filter_";
|
|
@@ -2231,7 +2231,7 @@ function $1c8cac76cb67e9af$export$a32086fa6616eafd({
|
|
|
2231
2231
|
// In this case we want to just correct the name and value of the already created object, which will be in parent_
|
|
2232
2232
|
parent_.value_ = value.map(v => v + "");
|
|
2233
2233
|
parent_.name_ = names[i];
|
|
2234
|
-
parent_.count_ = counts[i];
|
|
2234
|
+
parent_.count_ = counts?.[i];
|
|
2235
2235
|
parent_.is_expanded_ = $1c8cac76cb67e9af$var$make_expanded_signal({
|
|
2236
2236
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
2237
2237
|
filter_value_: parent_.value_,
|
|
@@ -3035,7 +3035,7 @@ function $16f0ed5ea30d8d9c$export$82eafebb825fc23f(props = {}) {
|
|
|
3035
3035
|
viewBox: "0 0 20 22"
|
|
3036
3036
|
}, props), () => $i7OB2$ssr($16f0ed5ea30d8d9c$var$_tmpl$), true);
|
|
3037
3037
|
}
|
|
3038
|
-
const $e01b34f289b61435$var$_tmpl$ = ["<div", ' class="search-in-filters"><input type="text" class="query"', "><!--$-->", '<!--/--><button style="', '" class="clear">', "</button></div>"];
|
|
3038
|
+
const $e01b34f289b61435$var$_tmpl$ = ["<div", ' class="search-in-filters"><input type="text" class="query"', "><!--$-->", '<!--/--><button style="', '" class="clear-filter-search">', "</button></div>"];
|
|
3039
3039
|
const $e01b34f289b61435$var$min_items_to_enable_filter_searching = 10; // For checkbox hierarchical we 2x this
|
|
3040
3040
|
function $e01b34f289b61435$export$4b2c5292ffe0c5dd(filter_array_, section, i18n_) {
|
|
3041
3041
|
const [filter_query_, set_filter_query_] = $i7OB2$createSignal();
|
|
@@ -3046,7 +3046,7 @@ function $e01b34f289b61435$export$4b2c5292ffe0c5dd(filter_array_, section, i18n_
|
|
|
3046
3046
|
const type = filter.meta?.type;
|
|
3047
3047
|
if (type === "range") continue;
|
|
3048
3048
|
const length = filter.meta.values.length;
|
|
3049
|
-
count += type === "checkbox-color"
|
|
3049
|
+
count += type === "checkbox-color" || type === "checkbox-grid" ? length / 3 : length; // For checkbox-color we have two columns, checkbox-grid three, so we can show search later
|
|
3050
3050
|
}
|
|
3051
3051
|
|
|
3052
3052
|
return count >= $e01b34f289b61435$var$min_items_to_enable_filter_searching;
|
|
@@ -3106,7 +3106,9 @@ function $e01b34f289b61435$export$4b2c5292ffe0c5dd(filter_array_, section, i18n_
|
|
|
3106
3106
|
...filter,
|
|
3107
3107
|
meta: {
|
|
3108
3108
|
...meta,
|
|
3109
|
-
counts
|
|
3109
|
+
...(counts ? {
|
|
3110
|
+
counts: counts?.filter((_, i) => filtered_indexes[i])
|
|
3111
|
+
} : {}),
|
|
3110
3112
|
...(names ? {
|
|
3111
3113
|
names: meta.names?.filter((_, i) => filtered_indexes[i])
|
|
3112
3114
|
} : {}),
|
|
@@ -8422,7 +8424,7 @@ function $b2bf2cdcff8142d8$export$f631859cab12b342({
|
|
|
8422
8424
|
}
|
|
8423
8425
|
}))), $i7OB2$escape($i7OB2$createComponent((0, $i7OB2$Show), {
|
|
8424
8426
|
get when() {
|
|
8425
|
-
return content_result_?.().description
|
|
8427
|
+
return content_result_?.().description;
|
|
8426
8428
|
},
|
|
8427
8429
|
get children() {
|
|
8428
8430
|
return $i7OB2$ssr($b2bf2cdcff8142d8$var$_tmpl$, $i7OB2$ssrHydrationKey(), $i7OB2$escape($i7OB2$createComponent((0, $i7OB2$Show), {
|