@depict-ai/ui 2.0.4 → 2.0.5
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 +9 -3
- package/ES10/index.d.ts +1 -1
- package/ES10/index.js +9 -3
- package/latest/index.cjs +9 -3
- package/latest/index.d.ts +1 -1
- package/latest/index.js +9 -3
- package/locales/require.js +1152 -0
- package/package.json +1 -1
- package/server/ES10/index.cjs +8 -2
- package/server/ES10/index.d.ts +1 -1
- package/server/ES10/index.js +8 -2
- package/server/latest/index.cjs +8 -2
- package/server/latest/index.d.ts +1 -1
- package/server/latest/index.js +8 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depict-ai/ui",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.5",
|
|
4
4
|
"description": "Base package containing the actual UI of Depict UI along with translations, with a not-simplified API. We recommend using @depict-ai/js-ui or @depict-ai/react-ui instead.",
|
|
5
5
|
"packageManager": "yarn@3.2.2",
|
|
6
6
|
"sass": "styles.scss",
|
package/server/ES10/index.cjs
CHANGED
|
@@ -67,7 +67,7 @@ $parcel$export(module.exports, "defaultColsAtSize", () => $33eed84f447aa0c0$expo
|
|
|
67
67
|
$parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $33eed84f447aa0c0$export$7bf543b9d9be2c22);
|
|
68
68
|
$parcel$export(module.exports, "version", () => $aa1938dec50d6c12$export$83d89fbfd8236492);
|
|
69
69
|
/*! Depict.ai search and product listing SDK */
|
|
70
|
-
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "2.0.
|
|
70
|
+
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "2.0.5";
|
|
71
71
|
|
|
72
72
|
/** @jsxImportSource solid-js */
|
|
73
73
|
|
|
@@ -1346,6 +1346,9 @@ function $0257c760a99bfacb$export$e0d834a0ad870cda(_ref) {
|
|
|
1346
1346
|
selected_filters_: selected_filters_,
|
|
1347
1347
|
i18n_: i18n_
|
|
1348
1348
|
} = _ref;
|
|
1349
|
+
// If you ever attempt to implement that one can drag one range "knob" over the other like on prisjakt, see https://gitlab.com/depict-ai/depict.ai/-/merge_requests/8458/diffs?commit_id=c52dbdd15ca073489bee138b15d27bb6bf2992df
|
|
1350
|
+
// The issue with it is that one wants to discard the changes to the lower value as soon as the lower value has become the upper value when dragging the initially lower knob over the initially upper knob
|
|
1351
|
+
// But we can't reliably know when we've started dragging/changing the value (or at least I gave up at that point for now)
|
|
1349
1352
|
const current_range = $3hooq$solidjs.createSignal($3hooq$solidjs.untrack(() => filter_().data));
|
|
1350
1353
|
const selected_filter = $3hooq$solidjs.createMemo(() => selected_filters_[0]().find(_ref2 => {
|
|
1351
1354
|
let {
|
|
@@ -1493,7 +1496,10 @@ function $0257c760a99bfacb$var$LinearSlider(_ref7) {
|
|
|
1493
1496
|
let clickable_slider;
|
|
1494
1497
|
const [get_current_range, set_current_range] = current_range_;
|
|
1495
1498
|
const progress_styling = $3hooq$solidjs.createMemo(() => {
|
|
1496
|
-
|
|
1499
|
+
const min = min_();
|
|
1500
|
+
const span = max_() - min;
|
|
1501
|
+
const [start, end] = get_current_range();
|
|
1502
|
+
return "left:".concat((start - min) / span * 100, "%;right:").concat(100 - (end - min) / span * 100, "%");
|
|
1497
1503
|
});
|
|
1498
1504
|
const set_value = (el, index) => {
|
|
1499
1505
|
// initially I set the value on the elements by just having value={get_current_range()[0]}
|
package/server/ES10/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { CategorySuggestion, SearchSuggestionsResponse } from "@depict-ai/types/
|
|
|
7
7
|
import { BaseSearchRequest } from "@depict-ai/types/api/BaseSearchRequest";
|
|
8
8
|
import { SearchSuggestionsRequest } from "@depict-ai/types/api/SearchSuggestionsRequest";
|
|
9
9
|
import { ProductListingRequest } from "@depict-ai/types/api/ProductListingRequest";
|
|
10
|
-
export const version = "2.0.
|
|
10
|
+
export const version = "2.0.5";
|
|
11
11
|
/**
|
|
12
12
|
* Returns accessor with the size of the provided element, including padding and border (I think)
|
|
13
13
|
*/
|
package/server/ES10/index.js
CHANGED
|
@@ -8,7 +8,7 @@ import $b8hua$babelruntimehelpersdefineProperty from "@babel/runtime/helpers/def
|
|
|
8
8
|
/*! Depict.ai search and product listing SDK */
|
|
9
9
|
import { register_es_version } from "../../multi_import_deduplicator.mjs";
|
|
10
10
|
register_es_version("ui", "ES10");
|
|
11
|
-
const $8db9a15135765c11$export$83d89fbfd8236492 = "2.0.
|
|
11
|
+
const $8db9a15135765c11$export$83d89fbfd8236492 = "2.0.5";
|
|
12
12
|
|
|
13
13
|
/** @jsxImportSource solid-js */
|
|
14
14
|
|
|
@@ -1287,6 +1287,9 @@ function $1e7465a8ffa97f6c$export$e0d834a0ad870cda(_ref) {
|
|
|
1287
1287
|
selected_filters_: selected_filters_,
|
|
1288
1288
|
i18n_: i18n_
|
|
1289
1289
|
} = _ref;
|
|
1290
|
+
// If you ever attempt to implement that one can drag one range "knob" over the other like on prisjakt, see https://gitlab.com/depict-ai/depict.ai/-/merge_requests/8458/diffs?commit_id=c52dbdd15ca073489bee138b15d27bb6bf2992df
|
|
1291
|
+
// The issue with it is that one wants to discard the changes to the lower value as soon as the lower value has become the upper value when dragging the initially lower knob over the initially upper knob
|
|
1292
|
+
// But we can't reliably know when we've started dragging/changing the value (or at least I gave up at that point for now)
|
|
1290
1293
|
const current_range = $b8hua$createSignal($b8hua$untrack(() => filter_().data));
|
|
1291
1294
|
const selected_filter = $b8hua$createMemo(() => selected_filters_[0]().find(_ref2 => {
|
|
1292
1295
|
let {
|
|
@@ -1434,7 +1437,10 @@ function $1e7465a8ffa97f6c$var$LinearSlider(_ref7) {
|
|
|
1434
1437
|
let clickable_slider;
|
|
1435
1438
|
const [get_current_range, set_current_range] = current_range_;
|
|
1436
1439
|
const progress_styling = $b8hua$createMemo(() => {
|
|
1437
|
-
|
|
1440
|
+
const min = min_();
|
|
1441
|
+
const span = max_() - min;
|
|
1442
|
+
const [start, end] = get_current_range();
|
|
1443
|
+
return "left:".concat((start - min) / span * 100, "%;right:").concat(100 - (end - min) / span * 100, "%");
|
|
1438
1444
|
});
|
|
1439
1445
|
const set_value = (el, index) => {
|
|
1440
1446
|
// initially I set the value on the elements by just having value={get_current_range()[0]}
|
package/server/latest/index.cjs
CHANGED
|
@@ -61,7 +61,7 @@ $parcel$export(module.exports, "defaultColsAtSize", () => $a3280f0aad997933$expo
|
|
|
61
61
|
$parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $a3280f0aad997933$export$7bf543b9d9be2c22);
|
|
62
62
|
$parcel$export(module.exports, "version", () => $b757f75811f3261f$export$83d89fbfd8236492);
|
|
63
63
|
/*! Depict.ai search and product listing SDK */
|
|
64
|
-
const $b757f75811f3261f$export$83d89fbfd8236492 = "2.0.
|
|
64
|
+
const $b757f75811f3261f$export$83d89fbfd8236492 = "2.0.5";
|
|
65
65
|
|
|
66
66
|
/** @jsxImportSource solid-js */
|
|
67
67
|
|
|
@@ -1259,6 +1259,9 @@ function $0b7222ba8a8bb72f$export$e0d834a0ad870cda({
|
|
|
1259
1259
|
selected_filters_: selected_filters_,
|
|
1260
1260
|
i18n_: i18n_
|
|
1261
1261
|
}) {
|
|
1262
|
+
// If you ever attempt to implement that one can drag one range "knob" over the other like on prisjakt, see https://gitlab.com/depict-ai/depict.ai/-/merge_requests/8458/diffs?commit_id=c52dbdd15ca073489bee138b15d27bb6bf2992df
|
|
1263
|
+
// The issue with it is that one wants to discard the changes to the lower value as soon as the lower value has become the upper value when dragging the initially lower knob over the initially upper knob
|
|
1264
|
+
// But we can't reliably know when we've started dragging/changing the value (or at least I gave up at that point for now)
|
|
1262
1265
|
const current_range = $5vyXB$solidjs.createSignal($5vyXB$solidjs.untrack(() => filter_().data));
|
|
1263
1266
|
const selected_filter = $5vyXB$solidjs.createMemo(() => selected_filters_[0]().find(({
|
|
1264
1267
|
field: checking_field,
|
|
@@ -1393,7 +1396,10 @@ function $0b7222ba8a8bb72f$var$LinearSlider({
|
|
|
1393
1396
|
let clickable_slider;
|
|
1394
1397
|
const [get_current_range, set_current_range] = current_range_;
|
|
1395
1398
|
const progress_styling = $5vyXB$solidjs.createMemo(() => {
|
|
1396
|
-
|
|
1399
|
+
const min = min_();
|
|
1400
|
+
const span = max_() - min;
|
|
1401
|
+
const [start, end] = get_current_range();
|
|
1402
|
+
return `left:${(start - min) / span * 100}%;right:${100 - (end - min) / span * 100}%`;
|
|
1397
1403
|
});
|
|
1398
1404
|
const set_value = (el, index) => {
|
|
1399
1405
|
// initially I set the value on the elements by just having value={get_current_range()[0]}
|
package/server/latest/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { CategorySuggestion, SearchSuggestionsResponse } from "@depict-ai/types/
|
|
|
7
7
|
import { BaseSearchRequest } from "@depict-ai/types/api/BaseSearchRequest";
|
|
8
8
|
import { SearchSuggestionsRequest } from "@depict-ai/types/api/SearchSuggestionsRequest";
|
|
9
9
|
import { ProductListingRequest } from "@depict-ai/types/api/ProductListingRequest";
|
|
10
|
-
export const version = "2.0.
|
|
10
|
+
export const version = "2.0.5";
|
|
11
11
|
/**
|
|
12
12
|
* Returns accessor with the size of the provided element, including padding and border (I think)
|
|
13
13
|
*/
|
package/server/latest/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import { ssr as $i7OB2$ssr, ssrHydrationKey as $i7OB2$ssrHydrationKey, escape as
|
|
|
5
5
|
/*! Depict.ai search and product listing SDK */
|
|
6
6
|
import { register_es_version } from "../../multi_import_deduplicator.mjs";
|
|
7
7
|
register_es_version("ui", "latest");
|
|
8
|
-
const $ec291e0010116877$export$83d89fbfd8236492 = "2.0.
|
|
8
|
+
const $ec291e0010116877$export$83d89fbfd8236492 = "2.0.5";
|
|
9
9
|
|
|
10
10
|
/** @jsxImportSource solid-js */
|
|
11
11
|
|
|
@@ -1203,6 +1203,9 @@ function $a6b08770e164eced$export$e0d834a0ad870cda({
|
|
|
1203
1203
|
selected_filters_: selected_filters_,
|
|
1204
1204
|
i18n_: i18n_
|
|
1205
1205
|
}) {
|
|
1206
|
+
// If you ever attempt to implement that one can drag one range "knob" over the other like on prisjakt, see https://gitlab.com/depict-ai/depict.ai/-/merge_requests/8458/diffs?commit_id=c52dbdd15ca073489bee138b15d27bb6bf2992df
|
|
1207
|
+
// The issue with it is that one wants to discard the changes to the lower value as soon as the lower value has become the upper value when dragging the initially lower knob over the initially upper knob
|
|
1208
|
+
// But we can't reliably know when we've started dragging/changing the value (or at least I gave up at that point for now)
|
|
1206
1209
|
const current_range = $i7OB2$createSignal($i7OB2$untrack(() => filter_().data));
|
|
1207
1210
|
const selected_filter = $i7OB2$createMemo(() => selected_filters_[0]().find(({
|
|
1208
1211
|
field: checking_field,
|
|
@@ -1337,7 +1340,10 @@ function $a6b08770e164eced$var$LinearSlider({
|
|
|
1337
1340
|
let clickable_slider;
|
|
1338
1341
|
const [get_current_range, set_current_range] = current_range_;
|
|
1339
1342
|
const progress_styling = $i7OB2$createMemo(() => {
|
|
1340
|
-
|
|
1343
|
+
const min = min_();
|
|
1344
|
+
const span = max_() - min;
|
|
1345
|
+
const [start, end] = get_current_range();
|
|
1346
|
+
return `left:${(start - min) / span * 100}%;right:${100 - (end - min) / span * 100}%`;
|
|
1341
1347
|
});
|
|
1342
1348
|
const set_value = (el, index) => {
|
|
1343
1349
|
// initially I set the value on the elements by just having value={get_current_range()[0]}
|