@depict-ai/ui 4.10.12 → 4.10.13
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 +62 -22
- package/ES10/index.d.ts +1 -1
- package/ES10/index.js +62 -22
- package/latest/index.cjs +62 -22
- package/latest/index.d.ts +1 -1
- package/latest/index.js +62 -22
- package/package.json +4 -4
- package/server/ES10/index.cjs +38 -15
- package/server/ES10/index.d.ts +1 -1
- package/server/ES10/index.js +38 -15
- package/server/latest/index.cjs +38 -15
- package/server/latest/index.d.ts +1 -1
- package/server/latest/index.js +38 -15
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 = "4.10.
|
|
10
|
+
const $ec291e0010116877$export$83d89fbfd8236492 = "4.10.13";
|
|
11
11
|
function $dc9262ef6f786812$export$d9f36cf74e24d595(media_query) {
|
|
12
12
|
const signal = $9HbP8$createSignal(false);
|
|
13
13
|
$9HbP8$onCleanup($9HbP8$javascript_media_query(media_query, ({
|
|
@@ -2612,7 +2612,16 @@ function $67b173f9db427028$export$ca21a16d65b3dd8({
|
|
|
2612
2612
|
var _c$ = $9HbP8$memo(() => !!get_show_extras());
|
|
2613
2613
|
return () => _c$() ? i18n_.view_less_() : i18n_.view_more_();
|
|
2614
2614
|
})());
|
|
2615
|
-
$9HbP8$effect(
|
|
2615
|
+
$9HbP8$effect(_p$ => {
|
|
2616
|
+
var _v$ = get_show_extras(),
|
|
2617
|
+
_v$2 = !!get_show_extras();
|
|
2618
|
+
_v$ !== _p$.e && $9HbP8$setAttribute(_el$, "aria-expanded", _p$.e = _v$);
|
|
2619
|
+
_v$2 !== _p$.t && _el$.classList.toggle("expanded", _p$.t = _v$2);
|
|
2620
|
+
return _p$;
|
|
2621
|
+
}, {
|
|
2622
|
+
e: undefined,
|
|
2623
|
+
t: undefined
|
|
2624
|
+
});
|
|
2616
2625
|
$9HbP8$runHydrationEvents();
|
|
2617
2626
|
return _el$;
|
|
2618
2627
|
})();
|
|
@@ -2931,7 +2940,7 @@ function $eb8d9bf3b5700c26$export$430444115f70a734({
|
|
|
2931
2940
|
return _el$;
|
|
2932
2941
|
})();
|
|
2933
2942
|
}
|
|
2934
|
-
var $a6b08770e164eced$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div class=range><div class=input-group><div class=field><input type=number></div><div class=separator>-</div><div class=field><input type=number></div></div><!$><!/><div class=value-text><span class=min><!$><!/><!$><!/><!$><!/></span><span class=max><!$><!/><!$><!/><!$><!/>`),
|
|
2943
|
+
var $a6b08770e164eced$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div class=range><div class=input-group><div class=field><input type=number></div><div class=separator aria-hidden=true>-</div><div class=field><input type=number></div></div><!$><!/><div class=value-text><span class=min><!$><!/><!$><!/><!$><!/></span><span class=max><!$><!/><!$><!/><!$><!/>`),
|
|
2935
2944
|
$a6b08770e164eced$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<div class=slider><div class=progress>`),
|
|
2936
2945
|
$a6b08770e164eced$var$_tmpl$3 = /*#__PURE__*/$9HbP8$template(`<div class=range-group><input type=range step=any><input type=range step=any>`);
|
|
2937
2946
|
function $a6b08770e164eced$export$e0d834a0ad870cda({
|
|
@@ -3065,7 +3074,8 @@ function $a6b08770e164eced$var$RangeSelector({
|
|
|
3065
3074
|
min_: min_,
|
|
3066
3075
|
current_range_: current_range_,
|
|
3067
3076
|
i18n_: i18n_,
|
|
3068
|
-
should_be_disabled_: should_be_disabled_
|
|
3077
|
+
should_be_disabled_: should_be_disabled_,
|
|
3078
|
+
priceFormatting_: price_formatting_
|
|
3069
3079
|
}), _el$24, _co$7);
|
|
3070
3080
|
$9HbP8$insert(_el$9, pre_price, _el$11, _co$);
|
|
3071
3081
|
$9HbP8$insert(_el$9, $9HbP8$createComponent((0, $8c0f86cb3e266eeb$export$a71e92cfbb498adc), {
|
|
@@ -3129,7 +3139,8 @@ function $a6b08770e164eced$var$ExponentialSlider({
|
|
|
3129
3139
|
min_: min_,
|
|
3130
3140
|
i18n_: i18n_,
|
|
3131
3141
|
max_: max_,
|
|
3132
|
-
should_be_disabled_: should_be_disabled_
|
|
3142
|
+
should_be_disabled_: should_be_disabled_,
|
|
3143
|
+
priceFormatting_: priceFormatting_
|
|
3133
3144
|
}) {
|
|
3134
3145
|
// inspired by https://observablehq.com/@mbostock/nonlinear-slider
|
|
3135
3146
|
const transform_linear_to_nonlinear = ([smaller, larger]) => [Math.sqrt(smaller), Math.sqrt(larger)];
|
|
@@ -3163,7 +3174,8 @@ function $a6b08770e164eced$var$ExponentialSlider({
|
|
|
3163
3174
|
max_: modified_max,
|
|
3164
3175
|
offset_value_calculator_: offset_value_calculator_,
|
|
3165
3176
|
i18n_: i18n_,
|
|
3166
|
-
should_be_disabled_: should_be_disabled_
|
|
3177
|
+
should_be_disabled_: should_be_disabled_,
|
|
3178
|
+
priceFormatting_: priceFormatting_
|
|
3167
3179
|
});
|
|
3168
3180
|
}
|
|
3169
3181
|
function $a6b08770e164eced$var$LinearSlider({
|
|
@@ -3172,12 +3184,17 @@ function $a6b08770e164eced$var$LinearSlider({
|
|
|
3172
3184
|
current_range_: current_range_,
|
|
3173
3185
|
offset_value_calculator_: offset_value_calculator_,
|
|
3174
3186
|
i18n_: i18n_,
|
|
3175
|
-
should_be_disabled_: should_be_disabled_
|
|
3187
|
+
should_be_disabled_: should_be_disabled_,
|
|
3188
|
+
priceFormatting_: priceFormatting_
|
|
3176
3189
|
}) {
|
|
3177
3190
|
let range_input_1;
|
|
3178
3191
|
let range_input_2;
|
|
3179
3192
|
let clickable_slider;
|
|
3180
3193
|
const [get_current_range, set_current_range] = current_range_;
|
|
3194
|
+
const formatRealPrice = value => {
|
|
3195
|
+
const priceFormatting = priceFormatting_();
|
|
3196
|
+
return priceFormatting.pre_ + $9HbP8$standard_price_format(value, priceFormatting.places_after_comma_, priceFormatting.decimal_places_delimiter_, priceFormatting.thousands_delimiter_) + priceFormatting.post_;
|
|
3197
|
+
};
|
|
3181
3198
|
const progress_styling = $9HbP8$createMemo(() => {
|
|
3182
3199
|
const min = min_();
|
|
3183
3200
|
const span = max_() - min;
|
|
@@ -3234,20 +3251,24 @@ function $a6b08770e164eced$var$LinearSlider({
|
|
|
3234
3251
|
$9HbP8$effect(_p$ => {
|
|
3235
3252
|
var _v$10 = should_be_disabled_(),
|
|
3236
3253
|
_v$11 = i18n_.range_filter_low_point_aria_label_(),
|
|
3237
|
-
_v$12 =
|
|
3238
|
-
_v$13 =
|
|
3239
|
-
_v$14 =
|
|
3240
|
-
_v$15 =
|
|
3241
|
-
_v$16 =
|
|
3242
|
-
_v$17 =
|
|
3254
|
+
_v$12 = formatRealPrice(get_current_range()[0]),
|
|
3255
|
+
_v$13 = min_(),
|
|
3256
|
+
_v$14 = max_(),
|
|
3257
|
+
_v$15 = should_be_disabled_(),
|
|
3258
|
+
_v$16 = i18n_.range_filter_high_point_aria_label_(),
|
|
3259
|
+
_v$17 = formatRealPrice(get_current_range()[1]),
|
|
3260
|
+
_v$18 = min_(),
|
|
3261
|
+
_v$19 = max_();
|
|
3243
3262
|
_v$10 !== _p$.e && $9HbP8$setProperty(_el$28, "disabled", _p$.e = _v$10);
|
|
3244
3263
|
_v$11 !== _p$.t && $9HbP8$setAttribute(_el$28, "aria-label", _p$.t = _v$11);
|
|
3245
|
-
_v$12 !== _p$.a && $9HbP8$setAttribute(_el$28, "
|
|
3246
|
-
_v$13 !== _p$.o && $9HbP8$setAttribute(_el$28, "
|
|
3247
|
-
_v$14 !== _p$.i && $9HbP8$
|
|
3248
|
-
_v$15 !== _p$.n && $9HbP8$
|
|
3249
|
-
_v$16 !== _p$.s && $9HbP8$setAttribute(_el$29, "
|
|
3250
|
-
_v$17 !== _p$.h && $9HbP8$setAttribute(_el$29, "
|
|
3264
|
+
_v$12 !== _p$.a && $9HbP8$setAttribute(_el$28, "aria-valuetext", _p$.a = _v$12);
|
|
3265
|
+
_v$13 !== _p$.o && $9HbP8$setAttribute(_el$28, "min", _p$.o = _v$13);
|
|
3266
|
+
_v$14 !== _p$.i && $9HbP8$setAttribute(_el$28, "max", _p$.i = _v$14);
|
|
3267
|
+
_v$15 !== _p$.n && $9HbP8$setProperty(_el$29, "disabled", _p$.n = _v$15);
|
|
3268
|
+
_v$16 !== _p$.s && $9HbP8$setAttribute(_el$29, "aria-label", _p$.s = _v$16);
|
|
3269
|
+
_v$17 !== _p$.h && $9HbP8$setAttribute(_el$29, "aria-valuetext", _p$.h = _v$17);
|
|
3270
|
+
_v$18 !== _p$.r && $9HbP8$setAttribute(_el$29, "min", _p$.r = _v$18);
|
|
3271
|
+
_v$19 !== _p$.d && $9HbP8$setAttribute(_el$29, "max", _p$.d = _v$19);
|
|
3251
3272
|
return _p$;
|
|
3252
3273
|
}, {
|
|
3253
3274
|
e: undefined,
|
|
@@ -3257,7 +3278,9 @@ function $a6b08770e164eced$var$LinearSlider({
|
|
|
3257
3278
|
i: undefined,
|
|
3258
3279
|
n: undefined,
|
|
3259
3280
|
s: undefined,
|
|
3260
|
-
h: undefined
|
|
3281
|
+
h: undefined,
|
|
3282
|
+
r: undefined,
|
|
3283
|
+
d: undefined
|
|
3261
3284
|
});
|
|
3262
3285
|
$9HbP8$effect(() => $9HbP8$setProperty(_el$28, "value", $9HbP8$createMemo(() => {
|
|
3263
3286
|
min_();
|
|
@@ -4139,6 +4162,13 @@ const $93716a9ad0dea854$export$414f6a19d38e655c = ({
|
|
|
4139
4162
|
_el$7 = _el$6.nextSibling,
|
|
4140
4163
|
[_el$8, _co$2] = $9HbP8$getNextMarker(_el$7.nextSibling);
|
|
4141
4164
|
$9HbP8$spread(_el$2, $9HbP8$mergeProps1(attributes, {
|
|
4165
|
+
"type": "button",
|
|
4166
|
+
get ["aria-pressed"]() {
|
|
4167
|
+
return is_selected();
|
|
4168
|
+
},
|
|
4169
|
+
get ["aria-label"]() {
|
|
4170
|
+
return $9HbP8$memo(() => value().count_ != undefined)() ? `${label()}, ${value().count_}` : label();
|
|
4171
|
+
},
|
|
4142
4172
|
get disabled() {
|
|
4143
4173
|
return $9HbP8$memo(() => !!count_zero())() && !is_selected();
|
|
4144
4174
|
},
|
|
@@ -4342,7 +4372,14 @@ function $e731d52d97444b7c$export$82ed4b28ecb67608({
|
|
|
4342
4372
|
return !!data?.some(item => $91aa8ee9f431800d$export$325f75597868c4f0(item) === value);
|
|
4343
4373
|
});
|
|
4344
4374
|
const value = $9HbP8$createMemo(() => checkbox().value_);
|
|
4345
|
-
const label_text = $9HbP8$createMemo(() =>
|
|
4375
|
+
const label_text = $9HbP8$createMemo(() => {
|
|
4376
|
+
const name = checkbox().name_;
|
|
4377
|
+
if (name) return name;
|
|
4378
|
+
const value_string = value() + "";
|
|
4379
|
+
if (backendFilterV2()) return value_string;
|
|
4380
|
+
// Legacy values are "Name;#hex" - split is used to get the name so that screen readers don't announce the hex code
|
|
4381
|
+
return value_string.split(";")[0] || value_string;
|
|
4382
|
+
});
|
|
4346
4383
|
const count = $9HbP8$createMemo(() => checkbox().count_);
|
|
4347
4384
|
const colorNameDatasetValue = $9HbP8$createMemo(() => {
|
|
4348
4385
|
if (backendFilterV2()) return label_text();
|
|
@@ -4814,7 +4851,7 @@ $9HbP8$delegateEvents(["input", "click"]);
|
|
|
4814
4851
|
var $fab07f52c9861732$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div class=filter-collapsible>`),
|
|
4815
4852
|
$fab07f52c9861732$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<button class=clear-group><!$><!/><span>`),
|
|
4816
4853
|
$fab07f52c9861732$var$_tmpl$3 = /*#__PURE__*/$9HbP8$template(`<div class=view-more-clear><!$><!/><!$><!/>`),
|
|
4817
|
-
$fab07f52c9861732$var$_tmpl$4 = /*#__PURE__*/$9HbP8$template(`<div class=filter-collapsible-body><
|
|
4854
|
+
$fab07f52c9861732$var$_tmpl$4 = /*#__PURE__*/$9HbP8$template(`<div class=filter-collapsible-body><fieldset class=filter-part><!$><!/><!$><!/></fieldset><!$><!/>`),
|
|
4818
4855
|
$fab07f52c9861732$var$_tmpl$5 = /*#__PURE__*/$9HbP8$template(`<details class=filter-collapsible>`),
|
|
4819
4856
|
$fab07f52c9861732$var$_tmpl$6 = /*#__PURE__*/$9HbP8$template(`<summary class=filter-group-summary><div class=summary><span></span><div class=selected-w-sign><!$><!/><!$><!/>`),
|
|
4820
4857
|
$fab07f52c9861732$var$_tmpl$7 = /*#__PURE__*/$9HbP8$template(`<div class=ungrouped>`),
|
|
@@ -4904,6 +4941,7 @@ function $fab07f52c9861732$var$ActualFilterBody(props) {
|
|
|
4904
4941
|
const a_filter_is_selected = $9HbP8$createMemo(() => selected_filters_in_group().size);
|
|
4905
4942
|
const [get_details_width, set_get_details_width] = $9HbP8$createSignal();
|
|
4906
4943
|
const details_element_width_ = $9HbP8$createMemo(() => get_details_width?.()?.());
|
|
4944
|
+
const title_id = $9HbP8$make_random_classname();
|
|
4907
4945
|
return $9HbP8$createComponent((0, $6bb0a0c563dff4bb$export$6c6d7a51fa9aa15d), {
|
|
4908
4946
|
is_open_: is_open,
|
|
4909
4947
|
get details_() {
|
|
@@ -4924,6 +4962,7 @@ function $fab07f52c9861732$var$ActualFilterBody(props) {
|
|
|
4924
4962
|
[_el$25, _co$7] = $9HbP8$getNextMarker(_el$24.nextSibling),
|
|
4925
4963
|
_el$26 = _el$25.nextSibling,
|
|
4926
4964
|
[_el$27, _co$8] = $9HbP8$getNextMarker(_el$26.nextSibling);
|
|
4965
|
+
$9HbP8$setAttribute(_el$22, "id", title_id);
|
|
4927
4966
|
$9HbP8$insert(_el$22, section_);
|
|
4928
4967
|
$9HbP8$insert(_el$23, $9HbP8$createComponent((0, $9HbP8$Show), {
|
|
4929
4968
|
get when() {
|
|
@@ -4958,6 +4997,7 @@ function $fab07f52c9861732$var$ActualFilterBody(props) {
|
|
|
4958
4997
|
[_el$7, _co$2] = $9HbP8$getNextMarker(_el$6.nextSibling),
|
|
4959
4998
|
_el$17 = _el$3.nextSibling,
|
|
4960
4999
|
[_el$18, _co$6] = $9HbP8$getNextMarker(_el$17.nextSibling);
|
|
5000
|
+
$9HbP8$setAttribute(_el$3, "aria-labelledby", title_id);
|
|
4961
5001
|
$9HbP8$insert(_el$3, $9HbP8$createComponent(SearchThisFilterGroup_, {}), _el$5, _co$);
|
|
4962
5002
|
$9HbP8$insert(_el$3, $9HbP8$createComponent((0, $9HbP8$Index), {
|
|
4963
5003
|
get each() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depict-ai/ui",
|
|
3
|
-
"version": "4.10.
|
|
3
|
+
"version": "4.10.13",
|
|
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,9 +236,9 @@
|
|
|
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": "^4.6.
|
|
240
|
-
"@depict-ai/types": "^5.6.
|
|
241
|
-
"@depict-ai/utilishared": "^2.6.
|
|
239
|
+
"@depict-ai/plp-styling": "^4.6.5",
|
|
240
|
+
"@depict-ai/types": "^5.6.3",
|
|
241
|
+
"@depict-ai/utilishared": "^2.6.3",
|
|
242
242
|
"solid-js": "^1.9.10"
|
|
243
243
|
},
|
|
244
244
|
"type": "module",
|
package/server/ES10/index.cjs
CHANGED
|
@@ -115,7 +115,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $335c02c1241a9ca8$export$5b7
|
|
|
115
115
|
$parcel$export(module.exports, "QuickLinks", () => $335c02c1241a9ca8$export$de035477d6fef996);
|
|
116
116
|
$parcel$export(module.exports, "CategoryPage", () => $c10e33c4681f8c9b$export$e2bf8ce7779e827e);
|
|
117
117
|
/*! Depict.ai search and product listing SDK */
|
|
118
|
-
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.10.
|
|
118
|
+
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.10.13";
|
|
119
119
|
function $3e17e871e9d0911d$export$d9f36cf74e24d595(media_query) {
|
|
120
120
|
const signal = $3hooq$solidjs.createSignal(false);
|
|
121
121
|
$3hooq$solidjs.onCleanup($3hooq$depictaiutilishared.javascript_media_query(media_query, _ref => {
|
|
@@ -2311,13 +2311,13 @@ function $a904ccf883f60231$export$f21ab0717a89c77f(props) {
|
|
|
2311
2311
|
height: "12"
|
|
2312
2312
|
}), () => $3hooq$solidjsweb.ssr($a904ccf883f60231$var$_tmpl$), true);
|
|
2313
2313
|
}
|
|
2314
|
-
var $b0477e4d832f090e$var$_tmpl$ = ["<button", ' type="button" class="', '"
|
|
2314
|
+
var $b0477e4d832f090e$var$_tmpl$ = ["<button", ' type="button" class="', '"', "><!--$-->", "<!--/--><span>", "</span></button>"];
|
|
2315
2315
|
function $b0477e4d832f090e$export$ca21a16d65b3dd8(_ref) {
|
|
2316
2316
|
let {
|
|
2317
2317
|
show_extras_: [get_show_extras, set_show_extras],
|
|
2318
2318
|
i18n_: i18n_
|
|
2319
2319
|
} = _ref;
|
|
2320
|
-
return $3hooq$solidjsweb.ssr($b0477e4d832f090e$var$_tmpl$, $3hooq$solidjsweb.ssrHydrationKey(), "expand-filter ".concat(get_show_extras() ? "expanded" : ""), $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent((0, $a904ccf883f60231$export$f21ab0717a89c77f), {})), get_show_extras() ? $3hooq$solidjsweb.escape(i18n_.view_less_()) : $3hooq$solidjsweb.escape(i18n_.view_more_()));
|
|
2320
|
+
return $3hooq$solidjsweb.ssr($b0477e4d832f090e$var$_tmpl$, $3hooq$solidjsweb.ssrHydrationKey(), "expand-filter ".concat(get_show_extras() ? "expanded" : ""), $3hooq$solidjsweb.ssrAttribute("aria-expanded", $3hooq$solidjsweb.escape(get_show_extras(), true), false), $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent((0, $a904ccf883f60231$export$f21ab0717a89c77f), {})), get_show_extras() ? $3hooq$solidjsweb.escape(i18n_.view_less_()) : $3hooq$solidjsweb.escape(i18n_.view_more_()));
|
|
2321
2321
|
}
|
|
2322
2322
|
var $23c3f390dee33ff8$var$_tmpl$ = ["<span", ' class="highlighted-part">', "</span>"],
|
|
2323
2323
|
$23c3f390dee33ff8$var$_tmpl$2 = ["<span", ' class="', '"', ">", "</span>"];
|
|
@@ -2566,7 +2566,7 @@ function $d9239dad9a9d899b$export$430444115f70a734(_ref) {
|
|
|
2566
2566
|
}
|
|
2567
2567
|
})));
|
|
2568
2568
|
}
|
|
2569
|
-
var $0257c760a99bfacb$var$_tmpl$ = ["<div", ' class="', '"><div class="input-group"><div class="field"><input', ' type="number"', '></div><div class="separator">-</div><div class="field"><input', ' type="number"', "></div></div><!--$-->", '<!--/--><div class="value-text"><span class="min"><!--$-->', "<!--/--><!--$-->", "<!--/--><!--$-->", '<!--/--></span><span class="max"><!--$-->', "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--></span></div></div>"],
|
|
2569
|
+
var $0257c760a99bfacb$var$_tmpl$ = ["<div", ' class="', '"><div class="input-group"><div class="field"><input', ' type="number"', '></div><div class="separator" aria-hidden="true">-</div><div class="field"><input', ' type="number"', "></div></div><!--$-->", '<!--/--><div class="value-text"><span class="min"><!--$-->', "<!--/--><!--$-->", "<!--/--><!--$-->", '<!--/--></span><span class="max"><!--$-->', "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--></span></div></div>"],
|
|
2570
2570
|
$0257c760a99bfacb$var$_tmpl$2 = ["<div", ' class="slider"><div class="progress" style="', '"></div></div>'],
|
|
2571
2571
|
$0257c760a99bfacb$var$_tmpl$3 = ["<div", ' class="range-group"><input', ' type="range"', ' step="any"><input', ' type="range"', ' step="any"></div>'];
|
|
2572
2572
|
function $0257c760a99bfacb$export$e0d834a0ad870cda(_ref) {
|
|
@@ -2665,7 +2665,8 @@ function $0257c760a99bfacb$var$RangeSelector(_ref3) {
|
|
|
2665
2665
|
min_: min_,
|
|
2666
2666
|
current_range_: current_range_,
|
|
2667
2667
|
i18n_: i18n_,
|
|
2668
|
-
should_be_disabled_: should_be_disabled_
|
|
2668
|
+
should_be_disabled_: should_be_disabled_,
|
|
2669
|
+
priceFormatting_: price_formatting_
|
|
2669
2670
|
})), $3hooq$solidjsweb.escape(pre_price()), $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent((0, $f38f2e64ebe2da86$export$a71e92cfbb498adc), {
|
|
2670
2671
|
get price_() {
|
|
2671
2672
|
return min_();
|
|
@@ -2688,7 +2689,8 @@ function $0257c760a99bfacb$var$ExponentialSlider(_ref4) {
|
|
|
2688
2689
|
min_: min_,
|
|
2689
2690
|
i18n_: i18n_,
|
|
2690
2691
|
max_: max_,
|
|
2691
|
-
should_be_disabled_: should_be_disabled_
|
|
2692
|
+
should_be_disabled_: should_be_disabled_,
|
|
2693
|
+
priceFormatting_: priceFormatting_
|
|
2692
2694
|
} = _ref4;
|
|
2693
2695
|
// inspired by https://observablehq.com/@mbostock/nonlinear-slider
|
|
2694
2696
|
const transform_linear_to_nonlinear = _ref5 => {
|
|
@@ -2725,7 +2727,8 @@ function $0257c760a99bfacb$var$ExponentialSlider(_ref4) {
|
|
|
2725
2727
|
max_: modified_max,
|
|
2726
2728
|
offset_value_calculator_: offset_value_calculator_,
|
|
2727
2729
|
i18n_: i18n_,
|
|
2728
|
-
should_be_disabled_: should_be_disabled_
|
|
2730
|
+
should_be_disabled_: should_be_disabled_,
|
|
2731
|
+
priceFormatting_: priceFormatting_
|
|
2729
2732
|
});
|
|
2730
2733
|
}
|
|
2731
2734
|
function $0257c760a99bfacb$var$LinearSlider(_ref6) {
|
|
@@ -2735,12 +2738,17 @@ function $0257c760a99bfacb$var$LinearSlider(_ref6) {
|
|
|
2735
2738
|
current_range_: current_range_,
|
|
2736
2739
|
offset_value_calculator_: offset_value_calculator_,
|
|
2737
2740
|
i18n_: i18n_,
|
|
2738
|
-
should_be_disabled_: should_be_disabled_
|
|
2741
|
+
should_be_disabled_: should_be_disabled_,
|
|
2742
|
+
priceFormatting_: priceFormatting_
|
|
2739
2743
|
} = _ref6;
|
|
2740
2744
|
let range_input_1;
|
|
2741
2745
|
let range_input_2;
|
|
2742
2746
|
let clickable_slider;
|
|
2743
2747
|
const [get_current_range, set_current_range] = current_range_;
|
|
2748
|
+
const formatRealPrice = value => {
|
|
2749
|
+
const priceFormatting = priceFormatting_();
|
|
2750
|
+
return priceFormatting.pre_ + $3hooq$depictaiutilishared.standard_price_format(value, priceFormatting.places_after_comma_, priceFormatting.decimal_places_delimiter_, priceFormatting.thousands_delimiter_) + priceFormatting.post_;
|
|
2751
|
+
};
|
|
2744
2752
|
const progress_styling = $3hooq$solidjs.createMemo(() => {
|
|
2745
2753
|
const min = min_();
|
|
2746
2754
|
const span = max_() - min;
|
|
@@ -2759,13 +2767,13 @@ function $0257c760a99bfacb$var$LinearSlider(_ref6) {
|
|
|
2759
2767
|
el.value = get_current_range()[index];
|
|
2760
2768
|
});
|
|
2761
2769
|
};
|
|
2762
|
-
return [$3hooq$solidjsweb.ssr($0257c760a99bfacb$var$_tmpl$2, $3hooq$solidjsweb.ssrHydrationKey(), $3hooq$solidjsweb.ssrStyle(progress_styling())), $3hooq$solidjsweb.ssr($0257c760a99bfacb$var$_tmpl$3, $3hooq$solidjsweb.ssrHydrationKey(), $3hooq$solidjsweb.ssrAttribute("disabled", should_be_disabled_(), true), $3hooq$solidjsweb.ssrAttribute("aria-label", $3hooq$solidjsweb.escape(i18n_.range_filter_low_point_aria_label_(), true), false) + $3hooq$solidjsweb.ssrAttribute("min", $3hooq$solidjsweb.escape(min_(), true), false) + $3hooq$solidjsweb.ssrAttribute("max", $3hooq$solidjsweb.escape(max_(), true), false) + $3hooq$solidjsweb.ssrAttribute("value", $3hooq$solidjsweb.escape($3hooq$solidjs.createMemo(() => {
|
|
2770
|
+
return [$3hooq$solidjsweb.ssr($0257c760a99bfacb$var$_tmpl$2, $3hooq$solidjsweb.ssrHydrationKey(), $3hooq$solidjsweb.ssrStyle(progress_styling())), $3hooq$solidjsweb.ssr($0257c760a99bfacb$var$_tmpl$3, $3hooq$solidjsweb.ssrHydrationKey(), $3hooq$solidjsweb.ssrAttribute("disabled", should_be_disabled_(), true), $3hooq$solidjsweb.ssrAttribute("aria-label", $3hooq$solidjsweb.escape(i18n_.range_filter_low_point_aria_label_(), true), false) + $3hooq$solidjsweb.ssrAttribute("aria-valuetext", $3hooq$solidjsweb.escape(formatRealPrice(get_current_range()[0]), true), false) + $3hooq$solidjsweb.ssrAttribute("min", $3hooq$solidjsweb.escape(min_(), true), false) + $3hooq$solidjsweb.ssrAttribute("max", $3hooq$solidjsweb.escape(max_(), true), false) + $3hooq$solidjsweb.ssrAttribute("value", $3hooq$solidjsweb.escape($3hooq$solidjs.createMemo(() => {
|
|
2763
2771
|
min_();
|
|
2764
2772
|
max_();
|
|
2765
2773
|
return get_current_range()[0];
|
|
2766
2774
|
}, undefined, {
|
|
2767
2775
|
equals: false
|
|
2768
|
-
})(), true), false), $3hooq$solidjsweb.ssrAttribute("disabled", should_be_disabled_(), true) + $3hooq$solidjsweb.ssrAttribute("aria-label", $3hooq$solidjsweb.escape(i18n_.range_filter_high_point_aria_label_(), true), false), $3hooq$solidjsweb.ssrAttribute("min", $3hooq$solidjsweb.escape(min_(), true), false) + $3hooq$solidjsweb.ssrAttribute("max", $3hooq$solidjsweb.escape(max_(), true), false))];
|
|
2776
|
+
})(), true), false), $3hooq$solidjsweb.ssrAttribute("disabled", should_be_disabled_(), true) + $3hooq$solidjsweb.ssrAttribute("aria-label", $3hooq$solidjsweb.escape(i18n_.range_filter_high_point_aria_label_(), true), false) + $3hooq$solidjsweb.ssrAttribute("aria-valuetext", $3hooq$solidjsweb.escape(formatRealPrice(get_current_range()[1]), true), false), $3hooq$solidjsweb.ssrAttribute("min", $3hooq$solidjsweb.escape(min_(), true), false) + $3hooq$solidjsweb.ssrAttribute("max", $3hooq$solidjsweb.escape(max_(), true), false))];
|
|
2769
2777
|
}
|
|
2770
2778
|
function $0257c760a99bfacb$var$set_range_with_sanitation(min_, max_, current_range_signal, index, target_el) {
|
|
2771
2779
|
let get_offset_value = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : (value, how_many) => value + how_many;
|
|
@@ -3633,6 +3641,13 @@ const $cd0e5524f9476f9b$export$414f6a19d38e655c = _ref => {
|
|
|
3633
3641
|
const label = $3hooq$solidjs.createMemo(() => value().name_ || value().value_ + "");
|
|
3634
3642
|
const count_zero = $3hooq$solidjs.createMemo(() => value().count_ === 0);
|
|
3635
3643
|
return $3hooq$solidjsweb.ssrElement("button", $3hooq$solidjsweb.mergeProps(attributes, {
|
|
3644
|
+
type: "button",
|
|
3645
|
+
get ["aria-pressed"]() {
|
|
3646
|
+
return is_selected();
|
|
3647
|
+
},
|
|
3648
|
+
get ["aria-label"]() {
|
|
3649
|
+
return value().count_ != undefined ? "".concat(label(), ", ").concat(value().count_) : label();
|
|
3650
|
+
},
|
|
3636
3651
|
get disabled() {
|
|
3637
3652
|
return count_zero() && !is_selected();
|
|
3638
3653
|
},
|
|
@@ -3811,7 +3826,14 @@ function $476a3dc36afc1938$export$82ed4b28ecb67608(_ref) {
|
|
|
3811
3826
|
return !!(data !== null && data !== void 0 && data.some(item => $e2d74bb03cc5252e$export$325f75597868c4f0(item) === value));
|
|
3812
3827
|
});
|
|
3813
3828
|
const value = $3hooq$solidjs.createMemo(() => checkbox().value_);
|
|
3814
|
-
const label_text = $3hooq$solidjs.createMemo(() =>
|
|
3829
|
+
const label_text = $3hooq$solidjs.createMemo(() => {
|
|
3830
|
+
const name = checkbox().name_;
|
|
3831
|
+
if (name) return name;
|
|
3832
|
+
const value_string = value() + "";
|
|
3833
|
+
if (backendFilterV2()) return value_string;
|
|
3834
|
+
// Legacy values are "Name;#hex" - split is used to get the name so that screen readers don't announce the hex code
|
|
3835
|
+
return value_string.split(";")[0] || value_string;
|
|
3836
|
+
});
|
|
3815
3837
|
const count = $3hooq$solidjs.createMemo(() => checkbox().count_);
|
|
3816
3838
|
const colorNameDatasetValue = $3hooq$solidjs.createMemo(() => {
|
|
3817
3839
|
var _split2;
|
|
@@ -4239,9 +4261,9 @@ function $8e7ac26c00243687$var$find_str_arr_in_str_arr_arr(operation, haystack,
|
|
|
4239
4261
|
var $164d474fea221d77$var$_tmpl$ = ["<div", ' class="filter-collapsible">', "</div>"],
|
|
4240
4262
|
$164d474fea221d77$var$_tmpl$2 = ["<button", ' class="clear-group"><!--$-->', "<!--/--><span>", "</span></button>"],
|
|
4241
4263
|
$164d474fea221d77$var$_tmpl$3 = ["<div", ' class="view-more-clear"><!--$-->', "<!--/--><!--$-->", "<!--/--></div>"],
|
|
4242
|
-
$164d474fea221d77$var$_tmpl$4 = ["<div", ' class="filter-collapsible-body"><
|
|
4264
|
+
$164d474fea221d77$var$_tmpl$4 = ["<div", ' class="filter-collapsible-body"><fieldset class="filter-part"', "><!--$-->", "<!--/--><!--$-->", "<!--/--></fieldset><!--$-->", "<!--/--></div>"],
|
|
4243
4265
|
$164d474fea221d77$var$_tmpl$5 = ["<details", ' class="filter-collapsible"', "></details>"],
|
|
4244
|
-
$164d474fea221d77$var$_tmpl$6 = ["<summary", ' class="filter-group-summary"><div class="summary"><span
|
|
4266
|
+
$164d474fea221d77$var$_tmpl$6 = ["<summary", ' class="filter-group-summary"><div class="summary"><span', ">", '</span><div class="selected-w-sign"><!--$-->', "<!--/--><!--$-->", "<!--/--></div></div></summary>"],
|
|
4245
4267
|
$164d474fea221d77$var$_tmpl$7 = ["<div", ' class="ungrouped">', "</div>"],
|
|
4246
4268
|
$164d474fea221d77$var$_tmpl$8 = ["<button", ' class="clear-all-filters major">', "</button>"];
|
|
4247
4269
|
function $164d474fea221d77$export$3f1a388cc0d8fed7(props) {
|
|
@@ -4338,13 +4360,14 @@ function $164d474fea221d77$var$ActualFilterBody(props) {
|
|
|
4338
4360
|
var _get_details_width;
|
|
4339
4361
|
return get_details_width === null || get_details_width === void 0 ? void 0 : (_get_details_width = get_details_width()) === null || _get_details_width === void 0 ? void 0 : _get_details_width();
|
|
4340
4362
|
});
|
|
4363
|
+
const title_id = $3hooq$depictaiutilishared.make_random_classname();
|
|
4341
4364
|
return $3hooq$solidjsweb.createComponent((0, $4cfe8400ed3f92c4$export$6c6d7a51fa9aa15d), {
|
|
4342
4365
|
is_open_: is_open,
|
|
4343
4366
|
get details_() {
|
|
4344
4367
|
return $3hooq$solidjsweb.ssr($164d474fea221d77$var$_tmpl$5, $3hooq$solidjsweb.ssrHydrationKey(), $3hooq$solidjsweb.ssrAttribute("data-group-title", $3hooq$solidjsweb.escape(section_, true), false));
|
|
4345
4368
|
},
|
|
4346
4369
|
get summary_() {
|
|
4347
|
-
return $3hooq$solidjsweb.ssr($164d474fea221d77$var$_tmpl$6, $3hooq$solidjsweb.ssrHydrationKey(), $3hooq$solidjsweb.escape(section_), $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent((0, $3hooq$solidjs.Show), {
|
|
4370
|
+
return $3hooq$solidjsweb.ssr($164d474fea221d77$var$_tmpl$6, $3hooq$solidjsweb.ssrHydrationKey(), $3hooq$solidjsweb.ssrAttribute("id", $3hooq$solidjsweb.escape(title_id, true), false), $3hooq$solidjsweb.escape(section_), $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent((0, $3hooq$solidjs.Show), {
|
|
4348
4371
|
get when() {
|
|
4349
4372
|
return a_filter_is_selected();
|
|
4350
4373
|
},
|
|
@@ -4366,7 +4389,7 @@ function $164d474fea221d77$var$ActualFilterBody(props) {
|
|
|
4366
4389
|
})));
|
|
4367
4390
|
},
|
|
4368
4391
|
get children() {
|
|
4369
|
-
return $3hooq$solidjsweb.ssr($164d474fea221d77$var$_tmpl$4, $3hooq$solidjsweb.ssrHydrationKey(), $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent(SearchThisFilterGroup_, {})), $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent((0, $3hooq$solidjs.Index), {
|
|
4392
|
+
return $3hooq$solidjsweb.ssr($164d474fea221d77$var$_tmpl$4, $3hooq$solidjsweb.ssrHydrationKey(), $3hooq$solidjsweb.ssrAttribute("aria-labelledby", $3hooq$solidjsweb.escape(title_id, true), false), $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent(SearchThisFilterGroup_, {})), $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent((0, $3hooq$solidjs.Index), {
|
|
4370
4393
|
get each() {
|
|
4371
4394
|
return searched_filter_array_();
|
|
4372
4395
|
},
|
package/server/ES10/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.13";
|
|
15
15
|
/**
|
|
16
16
|
* Use `javascript_media_query` but return a reactive accessor instead of taking a callback function
|
|
17
17
|
*/
|
package/server/ES10/index.js
CHANGED
|
@@ -10,7 +10,7 @@ import $b8hua$babelruntimehelpersclassPrivateFieldGet from "@babel/runtime/helpe
|
|
|
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 = "4.10.
|
|
13
|
+
const $8db9a15135765c11$export$83d89fbfd8236492 = "4.10.13";
|
|
14
14
|
function $00a5b94f0c11efbb$export$d9f36cf74e24d595(media_query) {
|
|
15
15
|
const signal = $b8hua$createSignal(false);
|
|
16
16
|
$b8hua$onCleanup($b8hua$javascript_media_query(media_query, _ref => {
|
|
@@ -2206,13 +2206,13 @@ function $ff3225aef892a467$export$f21ab0717a89c77f(props) {
|
|
|
2206
2206
|
height: "12"
|
|
2207
2207
|
}), () => $b8hua$ssr($ff3225aef892a467$var$_tmpl$), true);
|
|
2208
2208
|
}
|
|
2209
|
-
var $3e850b2f2cca761f$var$_tmpl$ = ["<button", ' type="button" class="', '"
|
|
2209
|
+
var $3e850b2f2cca761f$var$_tmpl$ = ["<button", ' type="button" class="', '"', "><!--$-->", "<!--/--><span>", "</span></button>"];
|
|
2210
2210
|
function $3e850b2f2cca761f$export$ca21a16d65b3dd8(_ref) {
|
|
2211
2211
|
let {
|
|
2212
2212
|
show_extras_: [get_show_extras, set_show_extras],
|
|
2213
2213
|
i18n_: i18n_
|
|
2214
2214
|
} = _ref;
|
|
2215
|
-
return $b8hua$ssr($3e850b2f2cca761f$var$_tmpl$, $b8hua$ssrHydrationKey(), "expand-filter ".concat(get_show_extras() ? "expanded" : ""), $b8hua$escape($b8hua$createComponent((0, $ff3225aef892a467$export$f21ab0717a89c77f), {})), get_show_extras() ? $b8hua$escape(i18n_.view_less_()) : $b8hua$escape(i18n_.view_more_()));
|
|
2215
|
+
return $b8hua$ssr($3e850b2f2cca761f$var$_tmpl$, $b8hua$ssrHydrationKey(), "expand-filter ".concat(get_show_extras() ? "expanded" : ""), $b8hua$ssrAttribute("aria-expanded", $b8hua$escape(get_show_extras(), true), false), $b8hua$escape($b8hua$createComponent((0, $ff3225aef892a467$export$f21ab0717a89c77f), {})), get_show_extras() ? $b8hua$escape(i18n_.view_less_()) : $b8hua$escape(i18n_.view_more_()));
|
|
2216
2216
|
}
|
|
2217
2217
|
var $02b6641aa50ce528$var$_tmpl$ = ["<span", ' class="highlighted-part">', "</span>"],
|
|
2218
2218
|
$02b6641aa50ce528$var$_tmpl$2 = ["<span", ' class="', '"', ">", "</span>"];
|
|
@@ -2461,7 +2461,7 @@ function $b54fc842e721c9eb$export$430444115f70a734(_ref) {
|
|
|
2461
2461
|
}
|
|
2462
2462
|
})));
|
|
2463
2463
|
}
|
|
2464
|
-
var $1e7465a8ffa97f6c$var$_tmpl$ = ["<div", ' class="', '"><div class="input-group"><div class="field"><input', ' type="number"', '></div><div class="separator">-</div><div class="field"><input', ' type="number"', "></div></div><!--$-->", '<!--/--><div class="value-text"><span class="min"><!--$-->', "<!--/--><!--$-->", "<!--/--><!--$-->", '<!--/--></span><span class="max"><!--$-->', "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--></span></div></div>"],
|
|
2464
|
+
var $1e7465a8ffa97f6c$var$_tmpl$ = ["<div", ' class="', '"><div class="input-group"><div class="field"><input', ' type="number"', '></div><div class="separator" aria-hidden="true">-</div><div class="field"><input', ' type="number"', "></div></div><!--$-->", '<!--/--><div class="value-text"><span class="min"><!--$-->', "<!--/--><!--$-->", "<!--/--><!--$-->", '<!--/--></span><span class="max"><!--$-->', "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--></span></div></div>"],
|
|
2465
2465
|
$1e7465a8ffa97f6c$var$_tmpl$2 = ["<div", ' class="slider"><div class="progress" style="', '"></div></div>'],
|
|
2466
2466
|
$1e7465a8ffa97f6c$var$_tmpl$3 = ["<div", ' class="range-group"><input', ' type="range"', ' step="any"><input', ' type="range"', ' step="any"></div>'];
|
|
2467
2467
|
function $1e7465a8ffa97f6c$export$e0d834a0ad870cda(_ref) {
|
|
@@ -2560,7 +2560,8 @@ function $1e7465a8ffa97f6c$var$RangeSelector(_ref3) {
|
|
|
2560
2560
|
min_: min_,
|
|
2561
2561
|
current_range_: current_range_,
|
|
2562
2562
|
i18n_: i18n_,
|
|
2563
|
-
should_be_disabled_: should_be_disabled_
|
|
2563
|
+
should_be_disabled_: should_be_disabled_,
|
|
2564
|
+
priceFormatting_: price_formatting_
|
|
2564
2565
|
})), $b8hua$escape(pre_price()), $b8hua$escape($b8hua$createComponent((0, $60ec7a29849d81db$export$a71e92cfbb498adc), {
|
|
2565
2566
|
get price_() {
|
|
2566
2567
|
return min_();
|
|
@@ -2583,7 +2584,8 @@ function $1e7465a8ffa97f6c$var$ExponentialSlider(_ref4) {
|
|
|
2583
2584
|
min_: min_,
|
|
2584
2585
|
i18n_: i18n_,
|
|
2585
2586
|
max_: max_,
|
|
2586
|
-
should_be_disabled_: should_be_disabled_
|
|
2587
|
+
should_be_disabled_: should_be_disabled_,
|
|
2588
|
+
priceFormatting_: priceFormatting_
|
|
2587
2589
|
} = _ref4;
|
|
2588
2590
|
// inspired by https://observablehq.com/@mbostock/nonlinear-slider
|
|
2589
2591
|
const transform_linear_to_nonlinear = _ref5 => {
|
|
@@ -2620,7 +2622,8 @@ function $1e7465a8ffa97f6c$var$ExponentialSlider(_ref4) {
|
|
|
2620
2622
|
max_: modified_max,
|
|
2621
2623
|
offset_value_calculator_: offset_value_calculator_,
|
|
2622
2624
|
i18n_: i18n_,
|
|
2623
|
-
should_be_disabled_: should_be_disabled_
|
|
2625
|
+
should_be_disabled_: should_be_disabled_,
|
|
2626
|
+
priceFormatting_: priceFormatting_
|
|
2624
2627
|
});
|
|
2625
2628
|
}
|
|
2626
2629
|
function $1e7465a8ffa97f6c$var$LinearSlider(_ref6) {
|
|
@@ -2630,12 +2633,17 @@ function $1e7465a8ffa97f6c$var$LinearSlider(_ref6) {
|
|
|
2630
2633
|
current_range_: current_range_,
|
|
2631
2634
|
offset_value_calculator_: offset_value_calculator_,
|
|
2632
2635
|
i18n_: i18n_,
|
|
2633
|
-
should_be_disabled_: should_be_disabled_
|
|
2636
|
+
should_be_disabled_: should_be_disabled_,
|
|
2637
|
+
priceFormatting_: priceFormatting_
|
|
2634
2638
|
} = _ref6;
|
|
2635
2639
|
let range_input_1;
|
|
2636
2640
|
let range_input_2;
|
|
2637
2641
|
let clickable_slider;
|
|
2638
2642
|
const [get_current_range, set_current_range] = current_range_;
|
|
2643
|
+
const formatRealPrice = value => {
|
|
2644
|
+
const priceFormatting = priceFormatting_();
|
|
2645
|
+
return priceFormatting.pre_ + $b8hua$standard_price_format(value, priceFormatting.places_after_comma_, priceFormatting.decimal_places_delimiter_, priceFormatting.thousands_delimiter_) + priceFormatting.post_;
|
|
2646
|
+
};
|
|
2639
2647
|
const progress_styling = $b8hua$createMemo(() => {
|
|
2640
2648
|
const min = min_();
|
|
2641
2649
|
const span = max_() - min;
|
|
@@ -2654,13 +2662,13 @@ function $1e7465a8ffa97f6c$var$LinearSlider(_ref6) {
|
|
|
2654
2662
|
el.value = get_current_range()[index];
|
|
2655
2663
|
});
|
|
2656
2664
|
};
|
|
2657
|
-
return [$b8hua$ssr($1e7465a8ffa97f6c$var$_tmpl$2, $b8hua$ssrHydrationKey(), $b8hua$ssrStyle(progress_styling())), $b8hua$ssr($1e7465a8ffa97f6c$var$_tmpl$3, $b8hua$ssrHydrationKey(), $b8hua$ssrAttribute("disabled", should_be_disabled_(), true), $b8hua$ssrAttribute("aria-label", $b8hua$escape(i18n_.range_filter_low_point_aria_label_(), true), false) + $b8hua$ssrAttribute("min", $b8hua$escape(min_(), true), false) + $b8hua$ssrAttribute("max", $b8hua$escape(max_(), true), false) + $b8hua$ssrAttribute("value", $b8hua$escape($b8hua$createMemo(() => {
|
|
2665
|
+
return [$b8hua$ssr($1e7465a8ffa97f6c$var$_tmpl$2, $b8hua$ssrHydrationKey(), $b8hua$ssrStyle(progress_styling())), $b8hua$ssr($1e7465a8ffa97f6c$var$_tmpl$3, $b8hua$ssrHydrationKey(), $b8hua$ssrAttribute("disabled", should_be_disabled_(), true), $b8hua$ssrAttribute("aria-label", $b8hua$escape(i18n_.range_filter_low_point_aria_label_(), true), false) + $b8hua$ssrAttribute("aria-valuetext", $b8hua$escape(formatRealPrice(get_current_range()[0]), true), false) + $b8hua$ssrAttribute("min", $b8hua$escape(min_(), true), false) + $b8hua$ssrAttribute("max", $b8hua$escape(max_(), true), false) + $b8hua$ssrAttribute("value", $b8hua$escape($b8hua$createMemo(() => {
|
|
2658
2666
|
min_();
|
|
2659
2667
|
max_();
|
|
2660
2668
|
return get_current_range()[0];
|
|
2661
2669
|
}, undefined, {
|
|
2662
2670
|
equals: false
|
|
2663
|
-
})(), true), false), $b8hua$ssrAttribute("disabled", should_be_disabled_(), true) + $b8hua$ssrAttribute("aria-label", $b8hua$escape(i18n_.range_filter_high_point_aria_label_(), true), false), $b8hua$ssrAttribute("min", $b8hua$escape(min_(), true), false) + $b8hua$ssrAttribute("max", $b8hua$escape(max_(), true), false))];
|
|
2671
|
+
})(), true), false), $b8hua$ssrAttribute("disabled", should_be_disabled_(), true) + $b8hua$ssrAttribute("aria-label", $b8hua$escape(i18n_.range_filter_high_point_aria_label_(), true), false) + $b8hua$ssrAttribute("aria-valuetext", $b8hua$escape(formatRealPrice(get_current_range()[1]), true), false), $b8hua$ssrAttribute("min", $b8hua$escape(min_(), true), false) + $b8hua$ssrAttribute("max", $b8hua$escape(max_(), true), false))];
|
|
2664
2672
|
}
|
|
2665
2673
|
function $1e7465a8ffa97f6c$var$set_range_with_sanitation(min_, max_, current_range_signal, index, target_el) {
|
|
2666
2674
|
let get_offset_value = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : (value, how_many) => value + how_many;
|
|
@@ -3528,6 +3536,13 @@ const $830ea8efda59884e$export$414f6a19d38e655c = _ref => {
|
|
|
3528
3536
|
const label = $b8hua$createMemo(() => value().name_ || value().value_ + "");
|
|
3529
3537
|
const count_zero = $b8hua$createMemo(() => value().count_ === 0);
|
|
3530
3538
|
return $b8hua$ssrElement("button", $b8hua$mergeProps1(attributes, {
|
|
3539
|
+
type: "button",
|
|
3540
|
+
get ["aria-pressed"]() {
|
|
3541
|
+
return is_selected();
|
|
3542
|
+
},
|
|
3543
|
+
get ["aria-label"]() {
|
|
3544
|
+
return value().count_ != undefined ? "".concat(label(), ", ").concat(value().count_) : label();
|
|
3545
|
+
},
|
|
3531
3546
|
get disabled() {
|
|
3532
3547
|
return count_zero() && !is_selected();
|
|
3533
3548
|
},
|
|
@@ -3706,7 +3721,14 @@ function $2cb856c297c53e6c$export$82ed4b28ecb67608(_ref) {
|
|
|
3706
3721
|
return !!(data !== null && data !== void 0 && data.some(item => $af5d8e0b7d97a7f6$export$325f75597868c4f0(item) === value));
|
|
3707
3722
|
});
|
|
3708
3723
|
const value = $b8hua$createMemo(() => checkbox().value_);
|
|
3709
|
-
const label_text = $b8hua$createMemo(() =>
|
|
3724
|
+
const label_text = $b8hua$createMemo(() => {
|
|
3725
|
+
const name = checkbox().name_;
|
|
3726
|
+
if (name) return name;
|
|
3727
|
+
const value_string = value() + "";
|
|
3728
|
+
if (backendFilterV2()) return value_string;
|
|
3729
|
+
// Legacy values are "Name;#hex" - split is used to get the name so that screen readers don't announce the hex code
|
|
3730
|
+
return value_string.split(";")[0] || value_string;
|
|
3731
|
+
});
|
|
3710
3732
|
const count = $b8hua$createMemo(() => checkbox().count_);
|
|
3711
3733
|
const colorNameDatasetValue = $b8hua$createMemo(() => {
|
|
3712
3734
|
var _split2;
|
|
@@ -4134,9 +4156,9 @@ function $e354b2f9ce33cb75$var$find_str_arr_in_str_arr_arr(operation, haystack,
|
|
|
4134
4156
|
var $f6b0500577e1b210$var$_tmpl$ = ["<div", ' class="filter-collapsible">', "</div>"],
|
|
4135
4157
|
$f6b0500577e1b210$var$_tmpl$2 = ["<button", ' class="clear-group"><!--$-->', "<!--/--><span>", "</span></button>"],
|
|
4136
4158
|
$f6b0500577e1b210$var$_tmpl$3 = ["<div", ' class="view-more-clear"><!--$-->', "<!--/--><!--$-->", "<!--/--></div>"],
|
|
4137
|
-
$f6b0500577e1b210$var$_tmpl$4 = ["<div", ' class="filter-collapsible-body"><
|
|
4159
|
+
$f6b0500577e1b210$var$_tmpl$4 = ["<div", ' class="filter-collapsible-body"><fieldset class="filter-part"', "><!--$-->", "<!--/--><!--$-->", "<!--/--></fieldset><!--$-->", "<!--/--></div>"],
|
|
4138
4160
|
$f6b0500577e1b210$var$_tmpl$5 = ["<details", ' class="filter-collapsible"', "></details>"],
|
|
4139
|
-
$f6b0500577e1b210$var$_tmpl$6 = ["<summary", ' class="filter-group-summary"><div class="summary"><span
|
|
4161
|
+
$f6b0500577e1b210$var$_tmpl$6 = ["<summary", ' class="filter-group-summary"><div class="summary"><span', ">", '</span><div class="selected-w-sign"><!--$-->', "<!--/--><!--$-->", "<!--/--></div></div></summary>"],
|
|
4140
4162
|
$f6b0500577e1b210$var$_tmpl$7 = ["<div", ' class="ungrouped">', "</div>"],
|
|
4141
4163
|
$f6b0500577e1b210$var$_tmpl$8 = ["<button", ' class="clear-all-filters major">', "</button>"];
|
|
4142
4164
|
function $f6b0500577e1b210$export$3f1a388cc0d8fed7(props) {
|
|
@@ -4233,13 +4255,14 @@ function $f6b0500577e1b210$var$ActualFilterBody(props) {
|
|
|
4233
4255
|
var _get_details_width;
|
|
4234
4256
|
return get_details_width === null || get_details_width === void 0 ? void 0 : (_get_details_width = get_details_width()) === null || _get_details_width === void 0 ? void 0 : _get_details_width();
|
|
4235
4257
|
});
|
|
4258
|
+
const title_id = $b8hua$make_random_classname();
|
|
4236
4259
|
return $b8hua$createComponent((0, $ad371564683947ab$export$6c6d7a51fa9aa15d), {
|
|
4237
4260
|
is_open_: is_open,
|
|
4238
4261
|
get details_() {
|
|
4239
4262
|
return $b8hua$ssr($f6b0500577e1b210$var$_tmpl$5, $b8hua$ssrHydrationKey(), $b8hua$ssrAttribute("data-group-title", $b8hua$escape(section_, true), false));
|
|
4240
4263
|
},
|
|
4241
4264
|
get summary_() {
|
|
4242
|
-
return $b8hua$ssr($f6b0500577e1b210$var$_tmpl$6, $b8hua$ssrHydrationKey(), $b8hua$escape(section_), $b8hua$escape($b8hua$createComponent((0, $b8hua$Show), {
|
|
4265
|
+
return $b8hua$ssr($f6b0500577e1b210$var$_tmpl$6, $b8hua$ssrHydrationKey(), $b8hua$ssrAttribute("id", $b8hua$escape(title_id, true), false), $b8hua$escape(section_), $b8hua$escape($b8hua$createComponent((0, $b8hua$Show), {
|
|
4243
4266
|
get when() {
|
|
4244
4267
|
return a_filter_is_selected();
|
|
4245
4268
|
},
|
|
@@ -4261,7 +4284,7 @@ function $f6b0500577e1b210$var$ActualFilterBody(props) {
|
|
|
4261
4284
|
})));
|
|
4262
4285
|
},
|
|
4263
4286
|
get children() {
|
|
4264
|
-
return $b8hua$ssr($f6b0500577e1b210$var$_tmpl$4, $b8hua$ssrHydrationKey(), $b8hua$escape($b8hua$createComponent(SearchThisFilterGroup_, {})), $b8hua$escape($b8hua$createComponent((0, $b8hua$Index), {
|
|
4287
|
+
return $b8hua$ssr($f6b0500577e1b210$var$_tmpl$4, $b8hua$ssrHydrationKey(), $b8hua$ssrAttribute("aria-labelledby", $b8hua$escape(title_id, true), false), $b8hua$escape($b8hua$createComponent(SearchThisFilterGroup_, {})), $b8hua$escape($b8hua$createComponent((0, $b8hua$Index), {
|
|
4265
4288
|
get each() {
|
|
4266
4289
|
return searched_filter_array_();
|
|
4267
4290
|
},
|