@depict-ai/ui 4.10.13 → 4.10.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 +137 -40
- package/ES10/index.d.ts +1 -1
- package/ES10/index.js +137 -40
- package/latest/index.cjs +134 -40
- package/latest/index.d.ts +1 -1
- package/latest/index.js +134 -40
- package/package.json +4 -4
- package/server/ES10/index.cjs +76 -21
- package/server/ES10/index.d.ts +1 -1
- package/server/ES10/index.js +76 -21
- package/server/latest/index.cjs +76 -21
- package/server/latest/index.d.ts +1 -1
- package/server/latest/index.js +76 -21
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.14";
|
|
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 => {
|
|
@@ -2825,14 +2825,42 @@ var $b0477e4d832f090e$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<but
|
|
|
2825
2825
|
function $b0477e4d832f090e$export$ca21a16d65b3dd8(_ref) {
|
|
2826
2826
|
let {
|
|
2827
2827
|
show_extras_: [get_show_extras, set_show_extras],
|
|
2828
|
-
i18n_: i18n_
|
|
2828
|
+
i18n_: i18n_,
|
|
2829
|
+
expanding_container_element_: expanding_container_element_
|
|
2829
2830
|
} = _ref;
|
|
2831
|
+
let button;
|
|
2830
2832
|
return (() => {
|
|
2831
2833
|
var _el$ = $52FdA$solidjsweb.getNextElement($b0477e4d832f090e$var$_tmpl$),
|
|
2832
2834
|
_el$3 = _el$.firstChild,
|
|
2833
2835
|
[_el$4, _co$] = $52FdA$solidjsweb.getNextMarker(_el$3.nextSibling),
|
|
2834
2836
|
_el$2 = _el$4.nextSibling;
|
|
2835
|
-
$52FdA$solidjsweb.addEventListener(_el$, "click", $52FdA$depictaiutilishared.catchify(
|
|
2837
|
+
$52FdA$solidjsweb.addEventListener(_el$, "click", $52FdA$depictaiutilishared.catchify(event => {
|
|
2838
|
+
const container = expanding_container_element_;
|
|
2839
|
+
const will_expand = !get_show_extras();
|
|
2840
|
+
// A click from Enter/Space on the button reports `detail === 0`; a real pointer click reports >= 1.
|
|
2841
|
+
// Only hijack focus for keyboard activation - mouse users can see the revealed options and don't need it
|
|
2842
|
+
// (and would otherwise get the viewport scrolled and an unexpected focus ring).
|
|
2843
|
+
const keyboard_activated = event.detail === 0;
|
|
2844
|
+
const had_focus_inside = !!container && container.contains(document.activeElement);
|
|
2845
|
+
set_show_extras(will_expand);
|
|
2846
|
+
if (will_expand) {
|
|
2847
|
+
if (!keyboard_activated) return;
|
|
2848
|
+
// The container's `expand()` (run from the consumer's effect after this handler) clears `inert`/`visibility`;
|
|
2849
|
+
// focus the first revealed option on the next frame so Tab continues through the newly shown options.
|
|
2850
|
+
// `preventScroll` so moving focus never yanks the viewport down to the first checkbox.
|
|
2851
|
+
requestAnimationFrame($52FdA$depictaiutilishared.catchify(() => {
|
|
2852
|
+
var _container$querySelec;
|
|
2853
|
+
return container === null || container === void 0 ? void 0 : (_container$querySelec = container.querySelector("input:not(:disabled)")) === null || _container$querySelec === void 0 ? void 0 : _container$querySelec.focus({
|
|
2854
|
+
preventScroll: true
|
|
2855
|
+
});
|
|
2856
|
+
}));
|
|
2857
|
+
} else if (had_focus_inside)
|
|
2858
|
+
// Keep focus on the toggle when collapsing, otherwise making the container `inert` dumps focus to <body>
|
|
2859
|
+
// (Safari doesn't focus buttons on mouse click, so focus can still be inside the container here).
|
|
2860
|
+
button.focus();
|
|
2861
|
+
}), true);
|
|
2862
|
+
var _ref$ = button;
|
|
2863
|
+
typeof _ref$ === "function" ? $52FdA$solidjsweb.use(_ref$, _el$) : button = _el$;
|
|
2836
2864
|
$52FdA$solidjsweb.insert(_el$, $52FdA$solidjsweb.createComponent((0, $a904ccf883f60231$export$f21ab0717a89c77f), {}), _el$4, _co$);
|
|
2837
2865
|
$52FdA$solidjsweb.insert(_el$2, (() => {
|
|
2838
2866
|
var _c$ = $52FdA$solidjsweb.memo(() => !!get_show_extras());
|
|
@@ -3031,7 +3059,8 @@ function $9b54b9c5381716eb$export$dd948f91abc3a1c4(_ref) {
|
|
|
3031
3059
|
$52FdA$solidjs.createRenderEffect(() => {
|
|
3032
3060
|
set_view_more_button_below_group_(togglable_rest() ? $52FdA$solidjsweb.createComponent((0, $b0477e4d832f090e$export$ca21a16d65b3dd8), {
|
|
3033
3061
|
show_extras_: show_extras_signal,
|
|
3034
|
-
i18n_: i18n_
|
|
3062
|
+
i18n_: i18n_,
|
|
3063
|
+
expanding_container_element_: expanding_container_els
|
|
3035
3064
|
}) : []);
|
|
3036
3065
|
});
|
|
3037
3066
|
$52FdA$solidjs.onCleanup(() => set_view_more_button_below_group_());
|
|
@@ -4008,7 +4037,8 @@ function $9c1d49181fb3002a$export$a32086fa6616eafd(_ref) {
|
|
|
4008
4037
|
$52FdA$solidjs.createRenderEffect(() => {
|
|
4009
4038
|
set_view_more_button_below_group(some_top_level_are_hidden() ? $52FdA$solidjsweb.createComponent((0, $b0477e4d832f090e$export$ca21a16d65b3dd8), {
|
|
4010
4039
|
show_extras_: show_extras,
|
|
4011
|
-
i18n_: i18n_
|
|
4040
|
+
i18n_: i18n_,
|
|
4041
|
+
expanding_container_element_: expanding_container_els
|
|
4012
4042
|
}) : []);
|
|
4013
4043
|
});
|
|
4014
4044
|
$52FdA$solidjs.onCleanup(() => set_view_more_button_below_group());
|
|
@@ -4815,7 +4845,8 @@ function $476a3dc36afc1938$export$82ed4b28ecb67608(_ref) {
|
|
|
4815
4845
|
$52FdA$solidjs.createRenderEffect(() => {
|
|
4816
4846
|
set_view_more_button_below_group_(togglable_rest() ? $52FdA$solidjsweb.createComponent((0, $b0477e4d832f090e$export$ca21a16d65b3dd8), {
|
|
4817
4847
|
show_extras_: show_extras_signal,
|
|
4818
|
-
i18n_: i18n_
|
|
4848
|
+
i18n_: i18n_,
|
|
4849
|
+
expanding_container_element_: expanding_container_els
|
|
4819
4850
|
}) : []);
|
|
4820
4851
|
});
|
|
4821
4852
|
$52FdA$solidjs.onCleanup(() => set_view_more_button_below_group_());
|
|
@@ -6306,8 +6337,8 @@ var $ae261a5687fe84f4$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<svg
|
|
|
6306
6337
|
function $ae261a5687fe84f4$export$cb808a3c41736d8e() {
|
|
6307
6338
|
return $52FdA$solidjsweb.getNextElement($ae261a5687fe84f4$var$_tmpl$);
|
|
6308
6339
|
}
|
|
6309
|
-
var $f70cc6dfcadf0fd5$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<
|
|
6310
|
-
$f70cc6dfcadf0fd5$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<
|
|
6340
|
+
var $f70cc6dfcadf0fd5$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<section class=filters tabindex=-1><div class=body>`),
|
|
6341
|
+
$f70cc6dfcadf0fd5$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<section class=sorting tabindex=-1><div class=body>`),
|
|
6311
6342
|
$f70cc6dfcadf0fd5$var$_tmpl$3 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=sort-and-filter-buttons><div class=outer><div class=inner><!$><!/><!$><!/><!$><!/>`),
|
|
6312
6343
|
$f70cc6dfcadf0fd5$var$_tmpl$4 = /*#__PURE__*/$52FdA$solidjsweb.template(`<span class=num-filters>`),
|
|
6313
6344
|
$f70cc6dfcadf0fd5$var$_tmpl$5 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=open-filters-button-container><!$><!/><button type=button><!$><!/><span>`),
|
|
@@ -6384,6 +6415,27 @@ function $f70cc6dfcadf0fd5$export$d7841e452f2e59a8(_ref) {
|
|
|
6384
6415
|
available_sortings_: available_sortings_,
|
|
6385
6416
|
meta_of_currently_selected_sorting_: meta_of_currently_selected_sorting_
|
|
6386
6417
|
};
|
|
6418
|
+
// Keyboard accessibility for the desktop panels (rendered after the product grid in the DOM): when the user
|
|
6419
|
+
// opens a panel we move focus into it, and restore focus to the toggle button on close. Intent is tracked with
|
|
6420
|
+
// a plain flag set in the buttons' click handlers - `filters_open`/`sorting_open` also change programmatically
|
|
6421
|
+
// (undo toast, history-state restore, SDK consumers), and those must not steal focus.
|
|
6422
|
+
let user_opened_panel = false;
|
|
6423
|
+
let filter_toggle_button;
|
|
6424
|
+
let sort_toggle_button;
|
|
6425
|
+
let current_panel;
|
|
6426
|
+
let current_panel_toggle_button;
|
|
6427
|
+
const focus_panel_when_in_dom = panel => $52FdA$depictaiutilishared.catchify(async () => {
|
|
6428
|
+
// Bounded wait: if the panel never lands in the DOM (e.g. it's superseded by a rapid re-render before
|
|
6429
|
+
// insertion), the timeout lets this promise resolve instead of keeping `panel` - and the observer
|
|
6430
|
+
// listener it registers - referenced forever.
|
|
6431
|
+
await (0, $52FdA$depictaiutilishared.observer).wait_for_element(panel, 4000);
|
|
6432
|
+
if (panel.isConnected) panel.focus();
|
|
6433
|
+
})();
|
|
6434
|
+
const register_desktop_panel = (el, toggle_button, should_focus) => {
|
|
6435
|
+
current_panel = el;
|
|
6436
|
+
current_panel_toggle_button = toggle_button;
|
|
6437
|
+
if (should_focus) focus_panel_when_in_dom(el);
|
|
6438
|
+
};
|
|
6387
6439
|
const make_open_filters_button = function () {
|
|
6388
6440
|
let adhere_to_width = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
6389
6441
|
let is_tabbable = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
@@ -6394,7 +6446,9 @@ function $f70cc6dfcadf0fd5$export$d7841e452f2e59a8(_ref) {
|
|
|
6394
6446
|
search_sorting_open_: search_sorting_open_,
|
|
6395
6447
|
number_of_rendered_selected_filters_items_: number_of_rendered_selected_filters_items_,
|
|
6396
6448
|
filter_button_width_: adhere_to_width ? filter_button_width_ : undefined,
|
|
6397
|
-
hide_button_: hide_filters
|
|
6449
|
+
hide_button_: hide_filters,
|
|
6450
|
+
on_user_open_: () => user_opened_panel = true,
|
|
6451
|
+
button_ref_: is_tabbable ? el => filter_toggle_button = el : undefined
|
|
6398
6452
|
});
|
|
6399
6453
|
};
|
|
6400
6454
|
const make_open_sorting_button = function () {
|
|
@@ -6408,7 +6462,9 @@ function $f70cc6dfcadf0fd5$export$d7841e452f2e59a8(_ref) {
|
|
|
6408
6462
|
search_sorting_open_: search_sorting_open_,
|
|
6409
6463
|
available_sortings_: available_sortings_,
|
|
6410
6464
|
sort_button_width_: adhere_to_width ? sort_button_width_ : undefined,
|
|
6411
|
-
meta_of_currently_selected_sorting_: meta_of_currently_selected_sorting_
|
|
6465
|
+
meta_of_currently_selected_sorting_: meta_of_currently_selected_sorting_,
|
|
6466
|
+
on_user_open_: () => user_opened_panel = true,
|
|
6467
|
+
button_ref_: is_tabbable ? el => sort_toggle_button = el : undefined
|
|
6412
6468
|
});
|
|
6413
6469
|
};
|
|
6414
6470
|
let open_modal_;
|
|
@@ -6428,10 +6484,47 @@ function $f70cc6dfcadf0fd5$export$d7841e452f2e59a8(_ref) {
|
|
|
6428
6484
|
grid_is_in_original_state = true;
|
|
6429
6485
|
}
|
|
6430
6486
|
});
|
|
6487
|
+
// Restore focus to the relevant toggle button when a desktop panel is torn down while focus is still inside it.
|
|
6488
|
+
const restore_focus_to_toggle_on_close = () => {
|
|
6489
|
+
const button_to_restore = current_panel_toggle_button;
|
|
6490
|
+
const focus_was_in_panel = !!current_panel && current_panel.contains(document.activeElement);
|
|
6491
|
+
current_panel = undefined;
|
|
6492
|
+
current_panel_toggle_button = undefined;
|
|
6493
|
+
if (focus_was_in_panel) button_to_restore === null || button_to_restore === void 0 || button_to_restore.focus();
|
|
6494
|
+
};
|
|
6495
|
+
// `<section>` + `aria-label` so the panel announces itself ("Filters"/"Sort") when we move focus to it; the bare
|
|
6496
|
+
// tabindex=-1 container would otherwise give screen readers nothing to read on focus. A semantic <section> avoids
|
|
6497
|
+
// an ARIA role and the UA styling pitfalls of <fieldset>; the existing CSS targets the `.filters`/`.sorting` class.
|
|
6498
|
+
const FiltersPanel = should_focus => $52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.Show), {
|
|
6499
|
+
get when() {
|
|
6500
|
+
return !hide_filters();
|
|
6501
|
+
},
|
|
6502
|
+
get children() {
|
|
6503
|
+
var _el$ = $52FdA$solidjsweb.getNextElement($f70cc6dfcadf0fd5$var$_tmpl$),
|
|
6504
|
+
_el$2 = _el$.firstChild;
|
|
6505
|
+
$52FdA$solidjsweb.use(el => register_desktop_panel(el, filter_toggle_button, should_focus), _el$);
|
|
6506
|
+
$52FdA$solidjsweb.insert(_el$2, $52FdA$solidjsweb.createComponent((0, $164d474fea221d77$export$3f1a388cc0d8fed7), filter_options));
|
|
6507
|
+
$52FdA$solidjsweb.effect(() => $52FdA$solidjsweb.setAttribute(_el$, "aria-label", i18n_.filters_()));
|
|
6508
|
+
return _el$;
|
|
6509
|
+
}
|
|
6510
|
+
});
|
|
6511
|
+
const SortingPanel = should_focus => (() => {
|
|
6512
|
+
var _el$3 = $52FdA$solidjsweb.getNextElement($f70cc6dfcadf0fd5$var$_tmpl$2),
|
|
6513
|
+
_el$4 = _el$3.firstChild;
|
|
6514
|
+
$52FdA$solidjsweb.use(el => register_desktop_panel(el, sort_toggle_button, should_focus), _el$3);
|
|
6515
|
+
$52FdA$solidjsweb.insert(_el$4, $52FdA$solidjsweb.createComponent((0, $3bd211c857f81dfd$export$1f1775a58da589b5), sorting_options));
|
|
6516
|
+
$52FdA$solidjsweb.effect(() => $52FdA$solidjsweb.setAttribute(_el$3, "aria-label", i18n_.sorting_text_()));
|
|
6517
|
+
return _el$3;
|
|
6518
|
+
})();
|
|
6431
6519
|
$52FdA$solidjs.createEffect(() => {
|
|
6520
|
+
// Consume the user-intent flag once per run, in every branch, so a stale flag can't leak into a later
|
|
6521
|
+
// resize-triggered re-render and steal focus.
|
|
6522
|
+
const should_focus_panel = user_opened_panel;
|
|
6523
|
+
user_opened_panel = false;
|
|
6432
6524
|
if (!filters_open() && !sorting_open()) {
|
|
6433
6525
|
var _close_modal_;
|
|
6434
6526
|
(_close_modal_ = close_modal_) === null || _close_modal_ === void 0 || _close_modal_();
|
|
6527
|
+
restore_focus_to_toggle_on_close();
|
|
6435
6528
|
set_extra_els_in_results_container_("");
|
|
6436
6529
|
} else if (isSmall()()) {
|
|
6437
6530
|
var _open_modal_;
|
|
@@ -6441,27 +6534,15 @@ function $f70cc6dfcadf0fd5$export$d7841e452f2e59a8(_ref) {
|
|
|
6441
6534
|
set_sorting_open(false);
|
|
6442
6535
|
return;
|
|
6443
6536
|
}
|
|
6537
|
+
// The modal manages its own focus; just drop the desktop panel reference.
|
|
6538
|
+
current_panel = undefined;
|
|
6539
|
+
current_panel_toggle_button = undefined;
|
|
6444
6540
|
(_open_modal_ = open_modal_) === null || _open_modal_ === void 0 || _open_modal_();
|
|
6445
6541
|
set_extra_els_in_results_container_("");
|
|
6446
6542
|
} else {
|
|
6447
6543
|
var _close_modal_2;
|
|
6448
6544
|
(_close_modal_2 = close_modal_) === null || _close_modal_2 === void 0 || _close_modal_2();
|
|
6449
|
-
if (filters_open()) set_extra_els_in_results_container_(() =>
|
|
6450
|
-
get when() {
|
|
6451
|
-
return !hide_filters();
|
|
6452
|
-
},
|
|
6453
|
-
get children() {
|
|
6454
|
-
var _el$ = $52FdA$solidjsweb.getNextElement($f70cc6dfcadf0fd5$var$_tmpl$),
|
|
6455
|
-
_el$2 = _el$.firstChild;
|
|
6456
|
-
$52FdA$solidjsweb.insert(_el$2, $52FdA$solidjsweb.createComponent((0, $164d474fea221d77$export$3f1a388cc0d8fed7), filter_options));
|
|
6457
|
-
return _el$;
|
|
6458
|
-
}
|
|
6459
|
-
}));else set_extra_els_in_results_container_((() => {
|
|
6460
|
-
var _el$3 = $52FdA$solidjsweb.getNextElement($f70cc6dfcadf0fd5$var$_tmpl$2),
|
|
6461
|
-
_el$4 = _el$3.firstChild;
|
|
6462
|
-
$52FdA$solidjsweb.insert(_el$4, $52FdA$solidjsweb.createComponent((0, $3bd211c857f81dfd$export$1f1775a58da589b5), sorting_options));
|
|
6463
|
-
return _el$3;
|
|
6464
|
-
})());
|
|
6545
|
+
if (filters_open()) set_extra_els_in_results_container_(() => FiltersPanel(should_focus_panel));else set_extra_els_in_results_container_(SortingPanel(should_focus_panel));
|
|
6465
6546
|
}
|
|
6466
6547
|
});
|
|
6467
6548
|
$52FdA$depictaiutilishared.catchify(async () => {
|
|
@@ -6526,7 +6607,9 @@ function $f70cc6dfcadf0fd5$var$OpenFiltersButton(_ref3) {
|
|
|
6526
6607
|
filter_button_width_: filter_button_width_,
|
|
6527
6608
|
tabindex_: tabindex_,
|
|
6528
6609
|
number_of_rendered_selected_filters_items_: [num_selected_filters],
|
|
6529
|
-
hide_button_: hide_button_
|
|
6610
|
+
hide_button_: hide_button_,
|
|
6611
|
+
on_user_open_: on_user_open_,
|
|
6612
|
+
button_ref_: button_ref_
|
|
6530
6613
|
} = _ref3;
|
|
6531
6614
|
const filters_closed = $52FdA$solidjs.createMemo(() => !search_filters_open_[0]());
|
|
6532
6615
|
// We assume in embedded_num_products that this is a single HTMLElement so pls change there if you change it here
|
|
@@ -6554,9 +6637,12 @@ function $f70cc6dfcadf0fd5$var$OpenFiltersButton(_ref3) {
|
|
|
6554
6637
|
search_filters_open_[1](false);
|
|
6555
6638
|
return;
|
|
6556
6639
|
}
|
|
6640
|
+
on_user_open_ === null || on_user_open_ === void 0 || on_user_open_();
|
|
6557
6641
|
search_filters_open_[1](true);
|
|
6558
6642
|
search_sorting_open_[1](false);
|
|
6559
6643
|
})), true);
|
|
6644
|
+
var _ref$2 = button_ref_;
|
|
6645
|
+
typeof _ref$2 === "function" ? $52FdA$solidjsweb.use(_ref$2, _el$16) : button_ref_ = _el$16;
|
|
6560
6646
|
$52FdA$solidjsweb.setAttribute(_el$16, "tabindex", tabindex_);
|
|
6561
6647
|
$52FdA$solidjsweb.className(_el$16, "filter toggle-button major-minor-transition" + ((0, $52FdA$solidjsweb.isServer) ? " minor" : ""));
|
|
6562
6648
|
$52FdA$solidjsweb.insert(_el$16, $52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.Show), {
|
|
@@ -6578,21 +6664,24 @@ function $f70cc6dfcadf0fd5$var$OpenFiltersButton(_ref3) {
|
|
|
6578
6664
|
_v$2 = !filters_closed(),
|
|
6579
6665
|
_v$3 = !!filters_closed(),
|
|
6580
6666
|
_v$4 = (filters_closed() ? i18n_.open_filters_ : i18n_.close_filters_)(),
|
|
6581
|
-
_v$5 =
|
|
6667
|
+
_v$5 = !filters_closed(),
|
|
6668
|
+
_v$6 = filter_button_width_ !== null && filter_button_width_ !== void 0 && filter_button_width_() ? {
|
|
6582
6669
|
width: filter_button_width_() + "px"
|
|
6583
6670
|
} : {};
|
|
6584
6671
|
_p$.e = $52FdA$solidjsweb.style(_el$14, _v$, _p$.e);
|
|
6585
6672
|
_v$2 !== _p$.t && _el$16.classList.toggle("major", _p$.t = _v$2);
|
|
6586
6673
|
_v$3 !== _p$.a && _el$16.classList.toggle("minor", _p$.a = _v$3);
|
|
6587
6674
|
_v$4 !== _p$.o && $52FdA$solidjsweb.setAttribute(_el$16, "aria-label", _p$.o = _v$4);
|
|
6588
|
-
_p$.i
|
|
6675
|
+
_v$5 !== _p$.i && $52FdA$solidjsweb.setAttribute(_el$16, "aria-expanded", _p$.i = _v$5);
|
|
6676
|
+
_p$.n = $52FdA$solidjsweb.style(_el$16, _v$6, _p$.n);
|
|
6589
6677
|
return _p$;
|
|
6590
6678
|
}, {
|
|
6591
6679
|
e: undefined,
|
|
6592
6680
|
t: undefined,
|
|
6593
6681
|
a: undefined,
|
|
6594
6682
|
o: undefined,
|
|
6595
|
-
i: undefined
|
|
6683
|
+
i: undefined,
|
|
6684
|
+
n: undefined
|
|
6596
6685
|
});
|
|
6597
6686
|
$52FdA$solidjsweb.runHydrationEvents();
|
|
6598
6687
|
return _el$14;
|
|
@@ -6607,7 +6696,9 @@ function $f70cc6dfcadf0fd5$var$OpenSortingButton(_ref4) {
|
|
|
6607
6696
|
search_sorting_open_: search_sorting_open_,
|
|
6608
6697
|
sort_button_width_: sort_button_width_,
|
|
6609
6698
|
tabindex_: tabindex_,
|
|
6610
|
-
meta_of_currently_selected_sorting_: meta_of_currently_selected_sorting_
|
|
6699
|
+
meta_of_currently_selected_sorting_: meta_of_currently_selected_sorting_,
|
|
6700
|
+
on_user_open_: on_user_open_,
|
|
6701
|
+
button_ref_: button_ref_
|
|
6611
6702
|
} = _ref4;
|
|
6612
6703
|
const sorting_closed = $52FdA$solidjs.createMemo(() => !search_sorting_open_[0]());
|
|
6613
6704
|
// We assume in embedded_num_products that this is a single HTMLElement so pls change there if you change it here
|
|
@@ -6621,9 +6712,12 @@ function $f70cc6dfcadf0fd5$var$OpenSortingButton(_ref4) {
|
|
|
6621
6712
|
search_sorting_open_[1](false);
|
|
6622
6713
|
return;
|
|
6623
6714
|
}
|
|
6715
|
+
on_user_open_ === null || on_user_open_ === void 0 || on_user_open_();
|
|
6624
6716
|
search_filters_open_[1](false);
|
|
6625
6717
|
search_sorting_open_[1](true);
|
|
6626
6718
|
})), true);
|
|
6719
|
+
var _ref$3 = button_ref_;
|
|
6720
|
+
typeof _ref$3 === "function" ? $52FdA$solidjsweb.use(_ref$3, _el$22) : button_ref_ = _el$22;
|
|
6627
6721
|
$52FdA$solidjsweb.setAttribute(_el$22, "tabindex", tabindex_);
|
|
6628
6722
|
$52FdA$solidjsweb.insert(_el$23, (() => {
|
|
6629
6723
|
var _c$ = $52FdA$solidjsweb.memo(() => !!sorting_closed());
|
|
@@ -6652,22 +6746,25 @@ function $f70cc6dfcadf0fd5$var$OpenSortingButton(_ref4) {
|
|
|
6652
6746
|
}
|
|
6653
6747
|
}), _el$25, _co$6);
|
|
6654
6748
|
$52FdA$solidjsweb.effect(_p$ => {
|
|
6655
|
-
var _v$
|
|
6656
|
-
_v$
|
|
6657
|
-
_v$
|
|
6658
|
-
_v$
|
|
6749
|
+
var _v$7 = !sorting_closed(),
|
|
6750
|
+
_v$8 = !!sorting_closed(),
|
|
6751
|
+
_v$9 = (sorting_closed() ? i18n_.open_sorting_ : i18n_.close_sorting_)(),
|
|
6752
|
+
_v$10 = !sorting_closed(),
|
|
6753
|
+
_v$11 = sort_button_width_ !== null && sort_button_width_ !== void 0 && sort_button_width_() ? {
|
|
6659
6754
|
width: sort_button_width_() + "px"
|
|
6660
6755
|
} : {};
|
|
6661
|
-
_v$
|
|
6662
|
-
_v$
|
|
6663
|
-
_v$
|
|
6664
|
-
_p$.o
|
|
6756
|
+
_v$7 !== _p$.e && _el$22.classList.toggle("major", _p$.e = _v$7);
|
|
6757
|
+
_v$8 !== _p$.t && _el$22.classList.toggle("minor", _p$.t = _v$8);
|
|
6758
|
+
_v$9 !== _p$.a && $52FdA$solidjsweb.setAttribute(_el$22, "aria-label", _p$.a = _v$9);
|
|
6759
|
+
_v$10 !== _p$.o && $52FdA$solidjsweb.setAttribute(_el$22, "aria-expanded", _p$.o = _v$10);
|
|
6760
|
+
_p$.i = $52FdA$solidjsweb.style(_el$22, _v$11, _p$.i);
|
|
6665
6761
|
return _p$;
|
|
6666
6762
|
}, {
|
|
6667
6763
|
e: undefined,
|
|
6668
6764
|
t: undefined,
|
|
6669
6765
|
a: undefined,
|
|
6670
|
-
o: undefined
|
|
6766
|
+
o: undefined,
|
|
6767
|
+
i: undefined
|
|
6671
6768
|
});
|
|
6672
6769
|
$52FdA$solidjsweb.runHydrationEvents();
|
|
6673
6770
|
return _el$22;
|
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.14";
|
|
15
15
|
/**
|
|
16
16
|
* Use `javascript_media_query` but return a reactive accessor instead of taking a callback function
|
|
17
17
|
*/
|