@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/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 = $52FdA$solidjs.createSignal(false);
|
|
121
121
|
$52FdA$solidjs.onCleanup($52FdA$depictaiutilishared.javascript_media_query(media_query, _ref => {
|
|
@@ -2838,7 +2838,16 @@ function $b0477e4d832f090e$export$ca21a16d65b3dd8(_ref) {
|
|
|
2838
2838
|
var _c$ = $52FdA$solidjsweb.memo(() => !!get_show_extras());
|
|
2839
2839
|
return () => _c$() ? i18n_.view_less_() : i18n_.view_more_();
|
|
2840
2840
|
})());
|
|
2841
|
-
$52FdA$solidjsweb.effect(
|
|
2841
|
+
$52FdA$solidjsweb.effect(_p$ => {
|
|
2842
|
+
var _v$ = get_show_extras(),
|
|
2843
|
+
_v$2 = !!get_show_extras();
|
|
2844
|
+
_v$ !== _p$.e && $52FdA$solidjsweb.setAttribute(_el$, "aria-expanded", _p$.e = _v$);
|
|
2845
|
+
_v$2 !== _p$.t && _el$.classList.toggle("expanded", _p$.t = _v$2);
|
|
2846
|
+
return _p$;
|
|
2847
|
+
}, {
|
|
2848
|
+
e: undefined,
|
|
2849
|
+
t: undefined
|
|
2850
|
+
});
|
|
2842
2851
|
$52FdA$solidjsweb.runHydrationEvents();
|
|
2843
2852
|
return _el$;
|
|
2844
2853
|
})();
|
|
@@ -3181,7 +3190,7 @@ function $d9239dad9a9d899b$export$430444115f70a734(_ref) {
|
|
|
3181
3190
|
return _el$;
|
|
3182
3191
|
})();
|
|
3183
3192
|
}
|
|
3184
|
-
var $0257c760a99bfacb$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.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><!$><!/><!$><!/><!$><!/>`),
|
|
3193
|
+
var $0257c760a99bfacb$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.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><!$><!/><!$><!/><!$><!/>`),
|
|
3185
3194
|
$0257c760a99bfacb$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=slider><div class=progress>`),
|
|
3186
3195
|
$0257c760a99bfacb$var$_tmpl$3 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=range-group><input type=range step=any><input type=range step=any>`);
|
|
3187
3196
|
function $0257c760a99bfacb$export$e0d834a0ad870cda(_ref) {
|
|
@@ -3323,7 +3332,8 @@ function $0257c760a99bfacb$var$RangeSelector(_ref3) {
|
|
|
3323
3332
|
min_: min_,
|
|
3324
3333
|
current_range_: current_range_,
|
|
3325
3334
|
i18n_: i18n_,
|
|
3326
|
-
should_be_disabled_: should_be_disabled_
|
|
3335
|
+
should_be_disabled_: should_be_disabled_,
|
|
3336
|
+
priceFormatting_: price_formatting_
|
|
3327
3337
|
}), _el$24, _co$7);
|
|
3328
3338
|
$52FdA$solidjsweb.insert(_el$9, pre_price, _el$11, _co$);
|
|
3329
3339
|
$52FdA$solidjsweb.insert(_el$9, $52FdA$solidjsweb.createComponent((0, $f38f2e64ebe2da86$export$a71e92cfbb498adc), {
|
|
@@ -3388,7 +3398,8 @@ function $0257c760a99bfacb$var$ExponentialSlider(_ref6) {
|
|
|
3388
3398
|
min_: min_,
|
|
3389
3399
|
i18n_: i18n_,
|
|
3390
3400
|
max_: max_,
|
|
3391
|
-
should_be_disabled_: should_be_disabled_
|
|
3401
|
+
should_be_disabled_: should_be_disabled_,
|
|
3402
|
+
priceFormatting_: priceFormatting_
|
|
3392
3403
|
} = _ref6;
|
|
3393
3404
|
// inspired by https://observablehq.com/@mbostock/nonlinear-slider
|
|
3394
3405
|
const transform_linear_to_nonlinear = _ref7 => {
|
|
@@ -3425,7 +3436,8 @@ function $0257c760a99bfacb$var$ExponentialSlider(_ref6) {
|
|
|
3425
3436
|
max_: modified_max,
|
|
3426
3437
|
offset_value_calculator_: offset_value_calculator_,
|
|
3427
3438
|
i18n_: i18n_,
|
|
3428
|
-
should_be_disabled_: should_be_disabled_
|
|
3439
|
+
should_be_disabled_: should_be_disabled_,
|
|
3440
|
+
priceFormatting_: priceFormatting_
|
|
3429
3441
|
});
|
|
3430
3442
|
}
|
|
3431
3443
|
function $0257c760a99bfacb$var$LinearSlider(_ref8) {
|
|
@@ -3435,12 +3447,17 @@ function $0257c760a99bfacb$var$LinearSlider(_ref8) {
|
|
|
3435
3447
|
current_range_: current_range_,
|
|
3436
3448
|
offset_value_calculator_: offset_value_calculator_,
|
|
3437
3449
|
i18n_: i18n_,
|
|
3438
|
-
should_be_disabled_: should_be_disabled_
|
|
3450
|
+
should_be_disabled_: should_be_disabled_,
|
|
3451
|
+
priceFormatting_: priceFormatting_
|
|
3439
3452
|
} = _ref8;
|
|
3440
3453
|
let range_input_1;
|
|
3441
3454
|
let range_input_2;
|
|
3442
3455
|
let clickable_slider;
|
|
3443
3456
|
const [get_current_range, set_current_range] = current_range_;
|
|
3457
|
+
const formatRealPrice = value => {
|
|
3458
|
+
const priceFormatting = priceFormatting_();
|
|
3459
|
+
return priceFormatting.pre_ + $52FdA$depictaiutilishared.standard_price_format(value, priceFormatting.places_after_comma_, priceFormatting.decimal_places_delimiter_, priceFormatting.thousands_delimiter_) + priceFormatting.post_;
|
|
3460
|
+
};
|
|
3444
3461
|
const progress_styling = $52FdA$solidjs.createMemo(() => {
|
|
3445
3462
|
const min = min_();
|
|
3446
3463
|
const span = max_() - min;
|
|
@@ -3497,20 +3514,24 @@ function $0257c760a99bfacb$var$LinearSlider(_ref8) {
|
|
|
3497
3514
|
$52FdA$solidjsweb.effect(_p$ => {
|
|
3498
3515
|
var _v$10 = should_be_disabled_(),
|
|
3499
3516
|
_v$11 = i18n_.range_filter_low_point_aria_label_(),
|
|
3500
|
-
_v$12 =
|
|
3501
|
-
_v$13 =
|
|
3502
|
-
_v$14 =
|
|
3503
|
-
_v$15 =
|
|
3504
|
-
_v$16 =
|
|
3505
|
-
_v$17 =
|
|
3517
|
+
_v$12 = formatRealPrice(get_current_range()[0]),
|
|
3518
|
+
_v$13 = min_(),
|
|
3519
|
+
_v$14 = max_(),
|
|
3520
|
+
_v$15 = should_be_disabled_(),
|
|
3521
|
+
_v$16 = i18n_.range_filter_high_point_aria_label_(),
|
|
3522
|
+
_v$17 = formatRealPrice(get_current_range()[1]),
|
|
3523
|
+
_v$18 = min_(),
|
|
3524
|
+
_v$19 = max_();
|
|
3506
3525
|
_v$10 !== _p$.e && $52FdA$solidjsweb.setProperty(_el$28, "disabled", _p$.e = _v$10);
|
|
3507
3526
|
_v$11 !== _p$.t && $52FdA$solidjsweb.setAttribute(_el$28, "aria-label", _p$.t = _v$11);
|
|
3508
|
-
_v$12 !== _p$.a && $52FdA$solidjsweb.setAttribute(_el$28, "
|
|
3509
|
-
_v$13 !== _p$.o && $52FdA$solidjsweb.setAttribute(_el$28, "
|
|
3510
|
-
_v$14 !== _p$.i && $52FdA$solidjsweb.
|
|
3511
|
-
_v$15 !== _p$.n && $52FdA$solidjsweb.
|
|
3512
|
-
_v$16 !== _p$.s && $52FdA$solidjsweb.setAttribute(_el$29, "
|
|
3513
|
-
_v$17 !== _p$.h && $52FdA$solidjsweb.setAttribute(_el$29, "
|
|
3527
|
+
_v$12 !== _p$.a && $52FdA$solidjsweb.setAttribute(_el$28, "aria-valuetext", _p$.a = _v$12);
|
|
3528
|
+
_v$13 !== _p$.o && $52FdA$solidjsweb.setAttribute(_el$28, "min", _p$.o = _v$13);
|
|
3529
|
+
_v$14 !== _p$.i && $52FdA$solidjsweb.setAttribute(_el$28, "max", _p$.i = _v$14);
|
|
3530
|
+
_v$15 !== _p$.n && $52FdA$solidjsweb.setProperty(_el$29, "disabled", _p$.n = _v$15);
|
|
3531
|
+
_v$16 !== _p$.s && $52FdA$solidjsweb.setAttribute(_el$29, "aria-label", _p$.s = _v$16);
|
|
3532
|
+
_v$17 !== _p$.h && $52FdA$solidjsweb.setAttribute(_el$29, "aria-valuetext", _p$.h = _v$17);
|
|
3533
|
+
_v$18 !== _p$.r && $52FdA$solidjsweb.setAttribute(_el$29, "min", _p$.r = _v$18);
|
|
3534
|
+
_v$19 !== _p$.d && $52FdA$solidjsweb.setAttribute(_el$29, "max", _p$.d = _v$19);
|
|
3514
3535
|
return _p$;
|
|
3515
3536
|
}, {
|
|
3516
3537
|
e: undefined,
|
|
@@ -3520,7 +3541,9 @@ function $0257c760a99bfacb$var$LinearSlider(_ref8) {
|
|
|
3520
3541
|
i: undefined,
|
|
3521
3542
|
n: undefined,
|
|
3522
3543
|
s: undefined,
|
|
3523
|
-
h: undefined
|
|
3544
|
+
h: undefined,
|
|
3545
|
+
r: undefined,
|
|
3546
|
+
d: undefined
|
|
3524
3547
|
});
|
|
3525
3548
|
$52FdA$solidjsweb.effect(() => $52FdA$solidjsweb.setProperty(_el$28, "value", $52FdA$solidjs.createMemo(() => {
|
|
3526
3549
|
min_();
|
|
@@ -4479,6 +4502,13 @@ const $cd0e5524f9476f9b$export$414f6a19d38e655c = _ref => {
|
|
|
4479
4502
|
_el$7 = _el$6.nextSibling,
|
|
4480
4503
|
[_el$8, _co$2] = $52FdA$solidjsweb.getNextMarker(_el$7.nextSibling);
|
|
4481
4504
|
$52FdA$solidjsweb.spread(_el$2, $52FdA$solidjsweb.mergeProps(attributes, {
|
|
4505
|
+
"type": "button",
|
|
4506
|
+
get ["aria-pressed"]() {
|
|
4507
|
+
return is_selected();
|
|
4508
|
+
},
|
|
4509
|
+
get ["aria-label"]() {
|
|
4510
|
+
return $52FdA$solidjsweb.memo(() => value().count_ != undefined)() ? "".concat(label(), ", ").concat(value().count_) : label();
|
|
4511
|
+
},
|
|
4482
4512
|
get disabled() {
|
|
4483
4513
|
return $52FdA$solidjsweb.memo(() => !!count_zero())() && !is_selected();
|
|
4484
4514
|
},
|
|
@@ -4690,7 +4720,14 @@ function $476a3dc36afc1938$export$82ed4b28ecb67608(_ref) {
|
|
|
4690
4720
|
return !!(data !== null && data !== void 0 && data.some(item => $e2d74bb03cc5252e$export$325f75597868c4f0(item) === value));
|
|
4691
4721
|
});
|
|
4692
4722
|
const value = $52FdA$solidjs.createMemo(() => checkbox().value_);
|
|
4693
|
-
const label_text = $52FdA$solidjs.createMemo(() =>
|
|
4723
|
+
const label_text = $52FdA$solidjs.createMemo(() => {
|
|
4724
|
+
const name = checkbox().name_;
|
|
4725
|
+
if (name) return name;
|
|
4726
|
+
const value_string = value() + "";
|
|
4727
|
+
if (backendFilterV2()) return value_string;
|
|
4728
|
+
// Legacy values are "Name;#hex" - split is used to get the name so that screen readers don't announce the hex code
|
|
4729
|
+
return value_string.split(";")[0] || value_string;
|
|
4730
|
+
});
|
|
4694
4731
|
const count = $52FdA$solidjs.createMemo(() => checkbox().count_);
|
|
4695
4732
|
const colorNameDatasetValue = $52FdA$solidjs.createMemo(() => {
|
|
4696
4733
|
var _split2;
|
|
@@ -5185,7 +5222,7 @@ $52FdA$solidjsweb.delegateEvents(["input", "click"]);
|
|
|
5185
5222
|
var $164d474fea221d77$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=filter-collapsible>`),
|
|
5186
5223
|
$164d474fea221d77$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<button class=clear-group><!$><!/><span>`),
|
|
5187
5224
|
$164d474fea221d77$var$_tmpl$3 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=view-more-clear><!$><!/><!$><!/>`),
|
|
5188
|
-
$164d474fea221d77$var$_tmpl$4 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=filter-collapsible-body><
|
|
5225
|
+
$164d474fea221d77$var$_tmpl$4 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=filter-collapsible-body><fieldset class=filter-part><!$><!/><!$><!/></fieldset><!$><!/>`),
|
|
5189
5226
|
$164d474fea221d77$var$_tmpl$5 = /*#__PURE__*/$52FdA$solidjsweb.template(`<details class=filter-collapsible>`),
|
|
5190
5227
|
$164d474fea221d77$var$_tmpl$6 = /*#__PURE__*/$52FdA$solidjsweb.template(`<summary class=filter-group-summary><div class=summary><span></span><div class=selected-w-sign><!$><!/><!$><!/>`),
|
|
5191
5228
|
$164d474fea221d77$var$_tmpl$7 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=ungrouped>`),
|
|
@@ -5288,6 +5325,7 @@ function $164d474fea221d77$var$ActualFilterBody(props) {
|
|
|
5288
5325
|
var _get_details_width;
|
|
5289
5326
|
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();
|
|
5290
5327
|
});
|
|
5328
|
+
const title_id = $52FdA$depictaiutilishared.make_random_classname();
|
|
5291
5329
|
return $52FdA$solidjsweb.createComponent((0, $4cfe8400ed3f92c4$export$6c6d7a51fa9aa15d), {
|
|
5292
5330
|
is_open_: is_open,
|
|
5293
5331
|
get details_() {
|
|
@@ -5308,6 +5346,7 @@ function $164d474fea221d77$var$ActualFilterBody(props) {
|
|
|
5308
5346
|
[_el$25, _co$7] = $52FdA$solidjsweb.getNextMarker(_el$24.nextSibling),
|
|
5309
5347
|
_el$26 = _el$25.nextSibling,
|
|
5310
5348
|
[_el$27, _co$8] = $52FdA$solidjsweb.getNextMarker(_el$26.nextSibling);
|
|
5349
|
+
$52FdA$solidjsweb.setAttribute(_el$22, "id", title_id);
|
|
5311
5350
|
$52FdA$solidjsweb.insert(_el$22, section_);
|
|
5312
5351
|
$52FdA$solidjsweb.insert(_el$23, $52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.Show), {
|
|
5313
5352
|
get when() {
|
|
@@ -5342,6 +5381,7 @@ function $164d474fea221d77$var$ActualFilterBody(props) {
|
|
|
5342
5381
|
[_el$7, _co$2] = $52FdA$solidjsweb.getNextMarker(_el$6.nextSibling),
|
|
5343
5382
|
_el$17 = _el$3.nextSibling,
|
|
5344
5383
|
[_el$18, _co$6] = $52FdA$solidjsweb.getNextMarker(_el$17.nextSibling);
|
|
5384
|
+
$52FdA$solidjsweb.setAttribute(_el$3, "aria-labelledby", title_id);
|
|
5345
5385
|
$52FdA$solidjsweb.insert(_el$3, $52FdA$solidjsweb.createComponent(SearchThisFilterGroup_, {}), _el$5, _co$);
|
|
5346
5386
|
$52FdA$solidjsweb.insert(_el$3, $52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.Index), {
|
|
5347
5387
|
get each() {
|
package/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/ES10/index.js
CHANGED
|
@@ -10,7 +10,7 @@ import $8tj43$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 = $8tj43$createSignal(false);
|
|
16
16
|
$8tj43$onCleanup($8tj43$javascript_media_query(media_query, _ref => {
|
|
@@ -2733,7 +2733,16 @@ function $3e850b2f2cca761f$export$ca21a16d65b3dd8(_ref) {
|
|
|
2733
2733
|
var _c$ = $8tj43$memo(() => !!get_show_extras());
|
|
2734
2734
|
return () => _c$() ? i18n_.view_less_() : i18n_.view_more_();
|
|
2735
2735
|
})());
|
|
2736
|
-
$8tj43$effect(
|
|
2736
|
+
$8tj43$effect(_p$ => {
|
|
2737
|
+
var _v$ = get_show_extras(),
|
|
2738
|
+
_v$2 = !!get_show_extras();
|
|
2739
|
+
_v$ !== _p$.e && $8tj43$setAttribute(_el$, "aria-expanded", _p$.e = _v$);
|
|
2740
|
+
_v$2 !== _p$.t && _el$.classList.toggle("expanded", _p$.t = _v$2);
|
|
2741
|
+
return _p$;
|
|
2742
|
+
}, {
|
|
2743
|
+
e: undefined,
|
|
2744
|
+
t: undefined
|
|
2745
|
+
});
|
|
2737
2746
|
$8tj43$runHydrationEvents();
|
|
2738
2747
|
return _el$;
|
|
2739
2748
|
})();
|
|
@@ -3076,7 +3085,7 @@ function $b54fc842e721c9eb$export$430444115f70a734(_ref) {
|
|
|
3076
3085
|
return _el$;
|
|
3077
3086
|
})();
|
|
3078
3087
|
}
|
|
3079
|
-
var $1e7465a8ffa97f6c$var$_tmpl$ = /*#__PURE__*/$8tj43$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><!$><!/><!$><!/><!$><!/>`),
|
|
3088
|
+
var $1e7465a8ffa97f6c$var$_tmpl$ = /*#__PURE__*/$8tj43$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><!$><!/><!$><!/><!$><!/>`),
|
|
3080
3089
|
$1e7465a8ffa97f6c$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<div class=slider><div class=progress>`),
|
|
3081
3090
|
$1e7465a8ffa97f6c$var$_tmpl$3 = /*#__PURE__*/$8tj43$template(`<div class=range-group><input type=range step=any><input type=range step=any>`);
|
|
3082
3091
|
function $1e7465a8ffa97f6c$export$e0d834a0ad870cda(_ref) {
|
|
@@ -3218,7 +3227,8 @@ function $1e7465a8ffa97f6c$var$RangeSelector(_ref3) {
|
|
|
3218
3227
|
min_: min_,
|
|
3219
3228
|
current_range_: current_range_,
|
|
3220
3229
|
i18n_: i18n_,
|
|
3221
|
-
should_be_disabled_: should_be_disabled_
|
|
3230
|
+
should_be_disabled_: should_be_disabled_,
|
|
3231
|
+
priceFormatting_: price_formatting_
|
|
3222
3232
|
}), _el$24, _co$7);
|
|
3223
3233
|
$8tj43$insert(_el$9, pre_price, _el$11, _co$);
|
|
3224
3234
|
$8tj43$insert(_el$9, $8tj43$createComponent((0, $60ec7a29849d81db$export$a71e92cfbb498adc), {
|
|
@@ -3283,7 +3293,8 @@ function $1e7465a8ffa97f6c$var$ExponentialSlider(_ref6) {
|
|
|
3283
3293
|
min_: min_,
|
|
3284
3294
|
i18n_: i18n_,
|
|
3285
3295
|
max_: max_,
|
|
3286
|
-
should_be_disabled_: should_be_disabled_
|
|
3296
|
+
should_be_disabled_: should_be_disabled_,
|
|
3297
|
+
priceFormatting_: priceFormatting_
|
|
3287
3298
|
} = _ref6;
|
|
3288
3299
|
// inspired by https://observablehq.com/@mbostock/nonlinear-slider
|
|
3289
3300
|
const transform_linear_to_nonlinear = _ref7 => {
|
|
@@ -3320,7 +3331,8 @@ function $1e7465a8ffa97f6c$var$ExponentialSlider(_ref6) {
|
|
|
3320
3331
|
max_: modified_max,
|
|
3321
3332
|
offset_value_calculator_: offset_value_calculator_,
|
|
3322
3333
|
i18n_: i18n_,
|
|
3323
|
-
should_be_disabled_: should_be_disabled_
|
|
3334
|
+
should_be_disabled_: should_be_disabled_,
|
|
3335
|
+
priceFormatting_: priceFormatting_
|
|
3324
3336
|
});
|
|
3325
3337
|
}
|
|
3326
3338
|
function $1e7465a8ffa97f6c$var$LinearSlider(_ref8) {
|
|
@@ -3330,12 +3342,17 @@ function $1e7465a8ffa97f6c$var$LinearSlider(_ref8) {
|
|
|
3330
3342
|
current_range_: current_range_,
|
|
3331
3343
|
offset_value_calculator_: offset_value_calculator_,
|
|
3332
3344
|
i18n_: i18n_,
|
|
3333
|
-
should_be_disabled_: should_be_disabled_
|
|
3345
|
+
should_be_disabled_: should_be_disabled_,
|
|
3346
|
+
priceFormatting_: priceFormatting_
|
|
3334
3347
|
} = _ref8;
|
|
3335
3348
|
let range_input_1;
|
|
3336
3349
|
let range_input_2;
|
|
3337
3350
|
let clickable_slider;
|
|
3338
3351
|
const [get_current_range, set_current_range] = current_range_;
|
|
3352
|
+
const formatRealPrice = value => {
|
|
3353
|
+
const priceFormatting = priceFormatting_();
|
|
3354
|
+
return priceFormatting.pre_ + $8tj43$standard_price_format(value, priceFormatting.places_after_comma_, priceFormatting.decimal_places_delimiter_, priceFormatting.thousands_delimiter_) + priceFormatting.post_;
|
|
3355
|
+
};
|
|
3339
3356
|
const progress_styling = $8tj43$createMemo(() => {
|
|
3340
3357
|
const min = min_();
|
|
3341
3358
|
const span = max_() - min;
|
|
@@ -3392,20 +3409,24 @@ function $1e7465a8ffa97f6c$var$LinearSlider(_ref8) {
|
|
|
3392
3409
|
$8tj43$effect(_p$ => {
|
|
3393
3410
|
var _v$10 = should_be_disabled_(),
|
|
3394
3411
|
_v$11 = i18n_.range_filter_low_point_aria_label_(),
|
|
3395
|
-
_v$12 =
|
|
3396
|
-
_v$13 =
|
|
3397
|
-
_v$14 =
|
|
3398
|
-
_v$15 =
|
|
3399
|
-
_v$16 =
|
|
3400
|
-
_v$17 =
|
|
3412
|
+
_v$12 = formatRealPrice(get_current_range()[0]),
|
|
3413
|
+
_v$13 = min_(),
|
|
3414
|
+
_v$14 = max_(),
|
|
3415
|
+
_v$15 = should_be_disabled_(),
|
|
3416
|
+
_v$16 = i18n_.range_filter_high_point_aria_label_(),
|
|
3417
|
+
_v$17 = formatRealPrice(get_current_range()[1]),
|
|
3418
|
+
_v$18 = min_(),
|
|
3419
|
+
_v$19 = max_();
|
|
3401
3420
|
_v$10 !== _p$.e && $8tj43$setProperty(_el$28, "disabled", _p$.e = _v$10);
|
|
3402
3421
|
_v$11 !== _p$.t && $8tj43$setAttribute(_el$28, "aria-label", _p$.t = _v$11);
|
|
3403
|
-
_v$12 !== _p$.a && $8tj43$setAttribute(_el$28, "
|
|
3404
|
-
_v$13 !== _p$.o && $8tj43$setAttribute(_el$28, "
|
|
3405
|
-
_v$14 !== _p$.i && $8tj43$
|
|
3406
|
-
_v$15 !== _p$.n && $8tj43$
|
|
3407
|
-
_v$16 !== _p$.s && $8tj43$setAttribute(_el$29, "
|
|
3408
|
-
_v$17 !== _p$.h && $8tj43$setAttribute(_el$29, "
|
|
3422
|
+
_v$12 !== _p$.a && $8tj43$setAttribute(_el$28, "aria-valuetext", _p$.a = _v$12);
|
|
3423
|
+
_v$13 !== _p$.o && $8tj43$setAttribute(_el$28, "min", _p$.o = _v$13);
|
|
3424
|
+
_v$14 !== _p$.i && $8tj43$setAttribute(_el$28, "max", _p$.i = _v$14);
|
|
3425
|
+
_v$15 !== _p$.n && $8tj43$setProperty(_el$29, "disabled", _p$.n = _v$15);
|
|
3426
|
+
_v$16 !== _p$.s && $8tj43$setAttribute(_el$29, "aria-label", _p$.s = _v$16);
|
|
3427
|
+
_v$17 !== _p$.h && $8tj43$setAttribute(_el$29, "aria-valuetext", _p$.h = _v$17);
|
|
3428
|
+
_v$18 !== _p$.r && $8tj43$setAttribute(_el$29, "min", _p$.r = _v$18);
|
|
3429
|
+
_v$19 !== _p$.d && $8tj43$setAttribute(_el$29, "max", _p$.d = _v$19);
|
|
3409
3430
|
return _p$;
|
|
3410
3431
|
}, {
|
|
3411
3432
|
e: undefined,
|
|
@@ -3415,7 +3436,9 @@ function $1e7465a8ffa97f6c$var$LinearSlider(_ref8) {
|
|
|
3415
3436
|
i: undefined,
|
|
3416
3437
|
n: undefined,
|
|
3417
3438
|
s: undefined,
|
|
3418
|
-
h: undefined
|
|
3439
|
+
h: undefined,
|
|
3440
|
+
r: undefined,
|
|
3441
|
+
d: undefined
|
|
3419
3442
|
});
|
|
3420
3443
|
$8tj43$effect(() => $8tj43$setProperty(_el$28, "value", $8tj43$createMemo(() => {
|
|
3421
3444
|
min_();
|
|
@@ -4374,6 +4397,13 @@ const $830ea8efda59884e$export$414f6a19d38e655c = _ref => {
|
|
|
4374
4397
|
_el$7 = _el$6.nextSibling,
|
|
4375
4398
|
[_el$8, _co$2] = $8tj43$getNextMarker(_el$7.nextSibling);
|
|
4376
4399
|
$8tj43$spread(_el$2, $8tj43$mergeProps1(attributes, {
|
|
4400
|
+
"type": "button",
|
|
4401
|
+
get ["aria-pressed"]() {
|
|
4402
|
+
return is_selected();
|
|
4403
|
+
},
|
|
4404
|
+
get ["aria-label"]() {
|
|
4405
|
+
return $8tj43$memo(() => value().count_ != undefined)() ? "".concat(label(), ", ").concat(value().count_) : label();
|
|
4406
|
+
},
|
|
4377
4407
|
get disabled() {
|
|
4378
4408
|
return $8tj43$memo(() => !!count_zero())() && !is_selected();
|
|
4379
4409
|
},
|
|
@@ -4585,7 +4615,14 @@ function $2cb856c297c53e6c$export$82ed4b28ecb67608(_ref) {
|
|
|
4585
4615
|
return !!(data !== null && data !== void 0 && data.some(item => $af5d8e0b7d97a7f6$export$325f75597868c4f0(item) === value));
|
|
4586
4616
|
});
|
|
4587
4617
|
const value = $8tj43$createMemo(() => checkbox().value_);
|
|
4588
|
-
const label_text = $8tj43$createMemo(() =>
|
|
4618
|
+
const label_text = $8tj43$createMemo(() => {
|
|
4619
|
+
const name = checkbox().name_;
|
|
4620
|
+
if (name) return name;
|
|
4621
|
+
const value_string = value() + "";
|
|
4622
|
+
if (backendFilterV2()) return value_string;
|
|
4623
|
+
// Legacy values are "Name;#hex" - split is used to get the name so that screen readers don't announce the hex code
|
|
4624
|
+
return value_string.split(";")[0] || value_string;
|
|
4625
|
+
});
|
|
4589
4626
|
const count = $8tj43$createMemo(() => checkbox().count_);
|
|
4590
4627
|
const colorNameDatasetValue = $8tj43$createMemo(() => {
|
|
4591
4628
|
var _split2;
|
|
@@ -5080,7 +5117,7 @@ $8tj43$delegateEvents(["input", "click"]);
|
|
|
5080
5117
|
var $f6b0500577e1b210$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div class=filter-collapsible>`),
|
|
5081
5118
|
$f6b0500577e1b210$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<button class=clear-group><!$><!/><span>`),
|
|
5082
5119
|
$f6b0500577e1b210$var$_tmpl$3 = /*#__PURE__*/$8tj43$template(`<div class=view-more-clear><!$><!/><!$><!/>`),
|
|
5083
|
-
$f6b0500577e1b210$var$_tmpl$4 = /*#__PURE__*/$8tj43$template(`<div class=filter-collapsible-body><
|
|
5120
|
+
$f6b0500577e1b210$var$_tmpl$4 = /*#__PURE__*/$8tj43$template(`<div class=filter-collapsible-body><fieldset class=filter-part><!$><!/><!$><!/></fieldset><!$><!/>`),
|
|
5084
5121
|
$f6b0500577e1b210$var$_tmpl$5 = /*#__PURE__*/$8tj43$template(`<details class=filter-collapsible>`),
|
|
5085
5122
|
$f6b0500577e1b210$var$_tmpl$6 = /*#__PURE__*/$8tj43$template(`<summary class=filter-group-summary><div class=summary><span></span><div class=selected-w-sign><!$><!/><!$><!/>`),
|
|
5086
5123
|
$f6b0500577e1b210$var$_tmpl$7 = /*#__PURE__*/$8tj43$template(`<div class=ungrouped>`),
|
|
@@ -5183,6 +5220,7 @@ function $f6b0500577e1b210$var$ActualFilterBody(props) {
|
|
|
5183
5220
|
var _get_details_width;
|
|
5184
5221
|
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();
|
|
5185
5222
|
});
|
|
5223
|
+
const title_id = $8tj43$make_random_classname();
|
|
5186
5224
|
return $8tj43$createComponent((0, $ad371564683947ab$export$6c6d7a51fa9aa15d), {
|
|
5187
5225
|
is_open_: is_open,
|
|
5188
5226
|
get details_() {
|
|
@@ -5203,6 +5241,7 @@ function $f6b0500577e1b210$var$ActualFilterBody(props) {
|
|
|
5203
5241
|
[_el$25, _co$7] = $8tj43$getNextMarker(_el$24.nextSibling),
|
|
5204
5242
|
_el$26 = _el$25.nextSibling,
|
|
5205
5243
|
[_el$27, _co$8] = $8tj43$getNextMarker(_el$26.nextSibling);
|
|
5244
|
+
$8tj43$setAttribute(_el$22, "id", title_id);
|
|
5206
5245
|
$8tj43$insert(_el$22, section_);
|
|
5207
5246
|
$8tj43$insert(_el$23, $8tj43$createComponent((0, $8tj43$Show), {
|
|
5208
5247
|
get when() {
|
|
@@ -5237,6 +5276,7 @@ function $f6b0500577e1b210$var$ActualFilterBody(props) {
|
|
|
5237
5276
|
[_el$7, _co$2] = $8tj43$getNextMarker(_el$6.nextSibling),
|
|
5238
5277
|
_el$17 = _el$3.nextSibling,
|
|
5239
5278
|
[_el$18, _co$6] = $8tj43$getNextMarker(_el$17.nextSibling);
|
|
5279
|
+
$8tj43$setAttribute(_el$3, "aria-labelledby", title_id);
|
|
5240
5280
|
$8tj43$insert(_el$3, $8tj43$createComponent(SearchThisFilterGroup_, {}), _el$5, _co$);
|
|
5241
5281
|
$8tj43$insert(_el$3, $8tj43$createComponent((0, $8tj43$Index), {
|
|
5242
5282
|
get each() {
|
package/latest/index.cjs
CHANGED
|
@@ -109,7 +109,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $1f4925833f07df29$export$5b7
|
|
|
109
109
|
$parcel$export(module.exports, "QuickLinks", () => $1f4925833f07df29$export$de035477d6fef996);
|
|
110
110
|
$parcel$export(module.exports, "CategoryPage", () => $14f289047713d67a$export$e2bf8ce7779e827e);
|
|
111
111
|
/*! Depict.ai search and product listing SDK */
|
|
112
|
-
const $b757f75811f3261f$export$83d89fbfd8236492 = "4.10.
|
|
112
|
+
const $b757f75811f3261f$export$83d89fbfd8236492 = "4.10.13";
|
|
113
113
|
function $b54e6192d0caa293$export$d9f36cf74e24d595(media_query) {
|
|
114
114
|
const signal = $gVhhF$solidjs.createSignal(false);
|
|
115
115
|
$gVhhF$solidjs.onCleanup($gVhhF$depictaiutilishared.javascript_media_query(media_query, ({
|
|
@@ -2714,7 +2714,16 @@ function $0fe1e7efdf4200d6$export$ca21a16d65b3dd8({
|
|
|
2714
2714
|
var _c$ = $gVhhF$solidjsweb.memo(() => !!get_show_extras());
|
|
2715
2715
|
return () => _c$() ? i18n_.view_less_() : i18n_.view_more_();
|
|
2716
2716
|
})());
|
|
2717
|
-
$gVhhF$solidjsweb.effect(
|
|
2717
|
+
$gVhhF$solidjsweb.effect(_p$ => {
|
|
2718
|
+
var _v$ = get_show_extras(),
|
|
2719
|
+
_v$2 = !!get_show_extras();
|
|
2720
|
+
_v$ !== _p$.e && $gVhhF$solidjsweb.setAttribute(_el$, "aria-expanded", _p$.e = _v$);
|
|
2721
|
+
_v$2 !== _p$.t && _el$.classList.toggle("expanded", _p$.t = _v$2);
|
|
2722
|
+
return _p$;
|
|
2723
|
+
}, {
|
|
2724
|
+
e: undefined,
|
|
2725
|
+
t: undefined
|
|
2726
|
+
});
|
|
2718
2727
|
$gVhhF$solidjsweb.runHydrationEvents();
|
|
2719
2728
|
return _el$;
|
|
2720
2729
|
})();
|
|
@@ -3033,7 +3042,7 @@ function $c1dc1554c1b94233$export$430444115f70a734({
|
|
|
3033
3042
|
return _el$;
|
|
3034
3043
|
})();
|
|
3035
3044
|
}
|
|
3036
|
-
var $0b7222ba8a8bb72f$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.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><!$><!/><!$><!/><!$><!/>`),
|
|
3045
|
+
var $0b7222ba8a8bb72f$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.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><!$><!/><!$><!/><!$><!/>`),
|
|
3037
3046
|
$0b7222ba8a8bb72f$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=slider><div class=progress>`),
|
|
3038
3047
|
$0b7222ba8a8bb72f$var$_tmpl$3 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=range-group><input type=range step=any><input type=range step=any>`);
|
|
3039
3048
|
function $0b7222ba8a8bb72f$export$e0d834a0ad870cda({
|
|
@@ -3167,7 +3176,8 @@ function $0b7222ba8a8bb72f$var$RangeSelector({
|
|
|
3167
3176
|
min_: min_,
|
|
3168
3177
|
current_range_: current_range_,
|
|
3169
3178
|
i18n_: i18n_,
|
|
3170
|
-
should_be_disabled_: should_be_disabled_
|
|
3179
|
+
should_be_disabled_: should_be_disabled_,
|
|
3180
|
+
priceFormatting_: price_formatting_
|
|
3171
3181
|
}), _el$24, _co$7);
|
|
3172
3182
|
$gVhhF$solidjsweb.insert(_el$9, pre_price, _el$11, _co$);
|
|
3173
3183
|
$gVhhF$solidjsweb.insert(_el$9, $gVhhF$solidjsweb.createComponent((0, $d659702496cb72ea$export$a71e92cfbb498adc), {
|
|
@@ -3231,7 +3241,8 @@ function $0b7222ba8a8bb72f$var$ExponentialSlider({
|
|
|
3231
3241
|
min_: min_,
|
|
3232
3242
|
i18n_: i18n_,
|
|
3233
3243
|
max_: max_,
|
|
3234
|
-
should_be_disabled_: should_be_disabled_
|
|
3244
|
+
should_be_disabled_: should_be_disabled_,
|
|
3245
|
+
priceFormatting_: priceFormatting_
|
|
3235
3246
|
}) {
|
|
3236
3247
|
// inspired by https://observablehq.com/@mbostock/nonlinear-slider
|
|
3237
3248
|
const transform_linear_to_nonlinear = ([smaller, larger]) => [Math.sqrt(smaller), Math.sqrt(larger)];
|
|
@@ -3265,7 +3276,8 @@ function $0b7222ba8a8bb72f$var$ExponentialSlider({
|
|
|
3265
3276
|
max_: modified_max,
|
|
3266
3277
|
offset_value_calculator_: offset_value_calculator_,
|
|
3267
3278
|
i18n_: i18n_,
|
|
3268
|
-
should_be_disabled_: should_be_disabled_
|
|
3279
|
+
should_be_disabled_: should_be_disabled_,
|
|
3280
|
+
priceFormatting_: priceFormatting_
|
|
3269
3281
|
});
|
|
3270
3282
|
}
|
|
3271
3283
|
function $0b7222ba8a8bb72f$var$LinearSlider({
|
|
@@ -3274,12 +3286,17 @@ function $0b7222ba8a8bb72f$var$LinearSlider({
|
|
|
3274
3286
|
current_range_: current_range_,
|
|
3275
3287
|
offset_value_calculator_: offset_value_calculator_,
|
|
3276
3288
|
i18n_: i18n_,
|
|
3277
|
-
should_be_disabled_: should_be_disabled_
|
|
3289
|
+
should_be_disabled_: should_be_disabled_,
|
|
3290
|
+
priceFormatting_: priceFormatting_
|
|
3278
3291
|
}) {
|
|
3279
3292
|
let range_input_1;
|
|
3280
3293
|
let range_input_2;
|
|
3281
3294
|
let clickable_slider;
|
|
3282
3295
|
const [get_current_range, set_current_range] = current_range_;
|
|
3296
|
+
const formatRealPrice = value => {
|
|
3297
|
+
const priceFormatting = priceFormatting_();
|
|
3298
|
+
return priceFormatting.pre_ + $gVhhF$depictaiutilishared.standard_price_format(value, priceFormatting.places_after_comma_, priceFormatting.decimal_places_delimiter_, priceFormatting.thousands_delimiter_) + priceFormatting.post_;
|
|
3299
|
+
};
|
|
3283
3300
|
const progress_styling = $gVhhF$solidjs.createMemo(() => {
|
|
3284
3301
|
const min = min_();
|
|
3285
3302
|
const span = max_() - min;
|
|
@@ -3336,20 +3353,24 @@ function $0b7222ba8a8bb72f$var$LinearSlider({
|
|
|
3336
3353
|
$gVhhF$solidjsweb.effect(_p$ => {
|
|
3337
3354
|
var _v$10 = should_be_disabled_(),
|
|
3338
3355
|
_v$11 = i18n_.range_filter_low_point_aria_label_(),
|
|
3339
|
-
_v$12 =
|
|
3340
|
-
_v$13 =
|
|
3341
|
-
_v$14 =
|
|
3342
|
-
_v$15 =
|
|
3343
|
-
_v$16 =
|
|
3344
|
-
_v$17 =
|
|
3356
|
+
_v$12 = formatRealPrice(get_current_range()[0]),
|
|
3357
|
+
_v$13 = min_(),
|
|
3358
|
+
_v$14 = max_(),
|
|
3359
|
+
_v$15 = should_be_disabled_(),
|
|
3360
|
+
_v$16 = i18n_.range_filter_high_point_aria_label_(),
|
|
3361
|
+
_v$17 = formatRealPrice(get_current_range()[1]),
|
|
3362
|
+
_v$18 = min_(),
|
|
3363
|
+
_v$19 = max_();
|
|
3345
3364
|
_v$10 !== _p$.e && $gVhhF$solidjsweb.setProperty(_el$28, "disabled", _p$.e = _v$10);
|
|
3346
3365
|
_v$11 !== _p$.t && $gVhhF$solidjsweb.setAttribute(_el$28, "aria-label", _p$.t = _v$11);
|
|
3347
|
-
_v$12 !== _p$.a && $gVhhF$solidjsweb.setAttribute(_el$28, "
|
|
3348
|
-
_v$13 !== _p$.o && $gVhhF$solidjsweb.setAttribute(_el$28, "
|
|
3349
|
-
_v$14 !== _p$.i && $gVhhF$solidjsweb.
|
|
3350
|
-
_v$15 !== _p$.n && $gVhhF$solidjsweb.
|
|
3351
|
-
_v$16 !== _p$.s && $gVhhF$solidjsweb.setAttribute(_el$29, "
|
|
3352
|
-
_v$17 !== _p$.h && $gVhhF$solidjsweb.setAttribute(_el$29, "
|
|
3366
|
+
_v$12 !== _p$.a && $gVhhF$solidjsweb.setAttribute(_el$28, "aria-valuetext", _p$.a = _v$12);
|
|
3367
|
+
_v$13 !== _p$.o && $gVhhF$solidjsweb.setAttribute(_el$28, "min", _p$.o = _v$13);
|
|
3368
|
+
_v$14 !== _p$.i && $gVhhF$solidjsweb.setAttribute(_el$28, "max", _p$.i = _v$14);
|
|
3369
|
+
_v$15 !== _p$.n && $gVhhF$solidjsweb.setProperty(_el$29, "disabled", _p$.n = _v$15);
|
|
3370
|
+
_v$16 !== _p$.s && $gVhhF$solidjsweb.setAttribute(_el$29, "aria-label", _p$.s = _v$16);
|
|
3371
|
+
_v$17 !== _p$.h && $gVhhF$solidjsweb.setAttribute(_el$29, "aria-valuetext", _p$.h = _v$17);
|
|
3372
|
+
_v$18 !== _p$.r && $gVhhF$solidjsweb.setAttribute(_el$29, "min", _p$.r = _v$18);
|
|
3373
|
+
_v$19 !== _p$.d && $gVhhF$solidjsweb.setAttribute(_el$29, "max", _p$.d = _v$19);
|
|
3353
3374
|
return _p$;
|
|
3354
3375
|
}, {
|
|
3355
3376
|
e: undefined,
|
|
@@ -3359,7 +3380,9 @@ function $0b7222ba8a8bb72f$var$LinearSlider({
|
|
|
3359
3380
|
i: undefined,
|
|
3360
3381
|
n: undefined,
|
|
3361
3382
|
s: undefined,
|
|
3362
|
-
h: undefined
|
|
3383
|
+
h: undefined,
|
|
3384
|
+
r: undefined,
|
|
3385
|
+
d: undefined
|
|
3363
3386
|
});
|
|
3364
3387
|
$gVhhF$solidjsweb.effect(() => $gVhhF$solidjsweb.setProperty(_el$28, "value", $gVhhF$solidjs.createMemo(() => {
|
|
3365
3388
|
min_();
|
|
@@ -4241,6 +4264,13 @@ const $0ef1681699140f1a$export$414f6a19d38e655c = ({
|
|
|
4241
4264
|
_el$7 = _el$6.nextSibling,
|
|
4242
4265
|
[_el$8, _co$2] = $gVhhF$solidjsweb.getNextMarker(_el$7.nextSibling);
|
|
4243
4266
|
$gVhhF$solidjsweb.spread(_el$2, $gVhhF$solidjsweb.mergeProps(attributes, {
|
|
4267
|
+
"type": "button",
|
|
4268
|
+
get ["aria-pressed"]() {
|
|
4269
|
+
return is_selected();
|
|
4270
|
+
},
|
|
4271
|
+
get ["aria-label"]() {
|
|
4272
|
+
return $gVhhF$solidjsweb.memo(() => value().count_ != undefined)() ? `${label()}, ${value().count_}` : label();
|
|
4273
|
+
},
|
|
4244
4274
|
get disabled() {
|
|
4245
4275
|
return $gVhhF$solidjsweb.memo(() => !!count_zero())() && !is_selected();
|
|
4246
4276
|
},
|
|
@@ -4444,7 +4474,14 @@ function $b51a2b8b9355e66c$export$82ed4b28ecb67608({
|
|
|
4444
4474
|
return !!data?.some(item => $daa394359b026187$export$325f75597868c4f0(item) === value);
|
|
4445
4475
|
});
|
|
4446
4476
|
const value = $gVhhF$solidjs.createMemo(() => checkbox().value_);
|
|
4447
|
-
const label_text = $gVhhF$solidjs.createMemo(() =>
|
|
4477
|
+
const label_text = $gVhhF$solidjs.createMemo(() => {
|
|
4478
|
+
const name = checkbox().name_;
|
|
4479
|
+
if (name) return name;
|
|
4480
|
+
const value_string = value() + "";
|
|
4481
|
+
if (backendFilterV2()) return value_string;
|
|
4482
|
+
// Legacy values are "Name;#hex" - split is used to get the name so that screen readers don't announce the hex code
|
|
4483
|
+
return value_string.split(";")[0] || value_string;
|
|
4484
|
+
});
|
|
4448
4485
|
const count = $gVhhF$solidjs.createMemo(() => checkbox().count_);
|
|
4449
4486
|
const colorNameDatasetValue = $gVhhF$solidjs.createMemo(() => {
|
|
4450
4487
|
if (backendFilterV2()) return label_text();
|
|
@@ -4916,7 +4953,7 @@ $gVhhF$solidjsweb.delegateEvents(["input", "click"]);
|
|
|
4916
4953
|
var $aff9a96d30ed3563$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=filter-collapsible>`),
|
|
4917
4954
|
$aff9a96d30ed3563$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<button class=clear-group><!$><!/><span>`),
|
|
4918
4955
|
$aff9a96d30ed3563$var$_tmpl$3 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=view-more-clear><!$><!/><!$><!/>`),
|
|
4919
|
-
$aff9a96d30ed3563$var$_tmpl$4 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=filter-collapsible-body><
|
|
4956
|
+
$aff9a96d30ed3563$var$_tmpl$4 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=filter-collapsible-body><fieldset class=filter-part><!$><!/><!$><!/></fieldset><!$><!/>`),
|
|
4920
4957
|
$aff9a96d30ed3563$var$_tmpl$5 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<details class=filter-collapsible>`),
|
|
4921
4958
|
$aff9a96d30ed3563$var$_tmpl$6 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<summary class=filter-group-summary><div class=summary><span></span><div class=selected-w-sign><!$><!/><!$><!/>`),
|
|
4922
4959
|
$aff9a96d30ed3563$var$_tmpl$7 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=ungrouped>`),
|
|
@@ -5006,6 +5043,7 @@ function $aff9a96d30ed3563$var$ActualFilterBody(props) {
|
|
|
5006
5043
|
const a_filter_is_selected = $gVhhF$solidjs.createMemo(() => selected_filters_in_group().size);
|
|
5007
5044
|
const [get_details_width, set_get_details_width] = $gVhhF$solidjs.createSignal();
|
|
5008
5045
|
const details_element_width_ = $gVhhF$solidjs.createMemo(() => get_details_width?.()?.());
|
|
5046
|
+
const title_id = $gVhhF$depictaiutilishared.make_random_classname();
|
|
5009
5047
|
return $gVhhF$solidjsweb.createComponent((0, $a69e505a12a77874$export$6c6d7a51fa9aa15d), {
|
|
5010
5048
|
is_open_: is_open,
|
|
5011
5049
|
get details_() {
|
|
@@ -5026,6 +5064,7 @@ function $aff9a96d30ed3563$var$ActualFilterBody(props) {
|
|
|
5026
5064
|
[_el$25, _co$7] = $gVhhF$solidjsweb.getNextMarker(_el$24.nextSibling),
|
|
5027
5065
|
_el$26 = _el$25.nextSibling,
|
|
5028
5066
|
[_el$27, _co$8] = $gVhhF$solidjsweb.getNextMarker(_el$26.nextSibling);
|
|
5067
|
+
$gVhhF$solidjsweb.setAttribute(_el$22, "id", title_id);
|
|
5029
5068
|
$gVhhF$solidjsweb.insert(_el$22, section_);
|
|
5030
5069
|
$gVhhF$solidjsweb.insert(_el$23, $gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Show), {
|
|
5031
5070
|
get when() {
|
|
@@ -5060,6 +5099,7 @@ function $aff9a96d30ed3563$var$ActualFilterBody(props) {
|
|
|
5060
5099
|
[_el$7, _co$2] = $gVhhF$solidjsweb.getNextMarker(_el$6.nextSibling),
|
|
5061
5100
|
_el$17 = _el$3.nextSibling,
|
|
5062
5101
|
[_el$18, _co$6] = $gVhhF$solidjsweb.getNextMarker(_el$17.nextSibling);
|
|
5102
|
+
$gVhhF$solidjsweb.setAttribute(_el$3, "aria-labelledby", title_id);
|
|
5063
5103
|
$gVhhF$solidjsweb.insert(_el$3, $gVhhF$solidjsweb.createComponent(SearchThisFilterGroup_, {}), _el$5, _co$);
|
|
5064
5104
|
$gVhhF$solidjsweb.insert(_el$3, $gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Index), {
|
|
5065
5105
|
get each() {
|
package/latest/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ import { GetListingRequest } from "@depict-ai/types/api/GetListingRequest";
|
|
|
11
11
|
import { BaseSearchRequestV3 } from "@depict-ai/types/api/BaseSearchRequestV3";
|
|
12
12
|
import { FeaturedInDisplay } from "@depict-ai/types/api/FeaturedInResponseV3";
|
|
13
13
|
import { SearchFilter as _SearchFilter3 } from "@depict-ai/types/api/SearchRequestV2";
|
|
14
|
-
export const version = "4.10.
|
|
14
|
+
export const version = "4.10.13";
|
|
15
15
|
/**
|
|
16
16
|
* Use `javascript_media_query` but return a reactive accessor instead of taking a callback function
|
|
17
17
|
*/
|