@yoobic/yobi 8.5.2-0 → 8.5.2
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/dist/cjs/yoo-form-creator.cjs.entry.js +10 -6
- package/dist/cjs/yoo-grid.cjs.entry.js +2 -3
- package/dist/collection/components/form-creator/form-creator/form-creator.js +11 -7
- package/dist/collection/components/grid/grid/grid.css +1 -1
- package/dist/collection/components/grid/grid/grid.js +1 -2
- package/dist/design-system/yoo-form-creator.entry.js +11 -7
- package/dist/design-system/yoo-grid.entry.js +2 -3
- package/dist/esm/yoo-form-creator.entry.js +11 -7
- package/dist/esm/yoo-grid.entry.js +2 -3
- package/dist/types/components/form/image-cropper-dialog/pintura/pintura.d.ts +1236 -0
- package/dist/types/components/form-creator/form-creator/form-creator.d.ts +1 -0
- package/package.json +1 -1
@@ -1,7 +1,7 @@
|
|
1
1
|
import { r as registerInstance, i as createEvent, f as forceUpdate, h, e as Host, g as getElement } from './index-a6a92b3d.js';
|
2
2
|
import { s as FormCreatorOptions, A as ALL_MOBILE_FORM_FIELDS, c as FormFieldType, t as CONDITION_TYPES, u as FormFieldCategory, v as FormCreatorBulkActions, w as FEEDBACK_SCORING_VALUES, S as ScoringCategory } from './index-4bbbf966.js';
|
3
3
|
import './index-79495ce8.js';
|
4
|
-
import { c as cloneDeep, o as orderBy, n as compact, i as isArray } from './lodash-777f91de.js';
|
4
|
+
import { c as cloneDeep, o as orderBy, n as compact, i as isArray, A as isEqual } from './lodash-777f91de.js';
|
5
5
|
import { S as Sortable } from './sortable.esm-f788d1ca.js';
|
6
6
|
import { F as FORM_CREATOR_BULK_ACTIONS_ALL } from './index-c04e931c.js';
|
7
7
|
import { g as getAppContext } from './common-helpers-d0ae29f8.js';
|
@@ -1362,7 +1362,8 @@ const YooFormCreatorComponent = class {
|
|
1362
1362
|
chosenClass: 'sortable-chosen-no-border',
|
1363
1363
|
direction: 'vertical',
|
1364
1364
|
draggable: '.sortable-container',
|
1365
|
-
filter: '.selection',
|
1365
|
+
filter: (event) => event.composedPath().some((element) => { var _a; return element.tagName === 'INPUT' || ((_a = element.classList) === null || _a === void 0 ? void 0 : _a.contains('selection')); }),
|
1366
|
+
preventOnFilter: false,
|
1366
1367
|
scroll: true,
|
1367
1368
|
swapThreshold: 0.2,
|
1368
1369
|
// scrollSensitivity: 1000,
|
@@ -2353,11 +2354,14 @@ const YooFormCreatorComponent = class {
|
|
2353
2354
|
var _a;
|
2354
2355
|
if (((_a = this.currentExpandableFieldSortable) === null || _a === void 0 ? void 0 : _a.sort) && this.currentSlides && this.currentSlides[this.selectedPageIndex] && this.currentSlides[this.selectedPageIndex].items) {
|
2355
2356
|
const order = this.currentSlides[this.selectedPageIndex].items.filter((f) => f).map((f) => f.name);
|
2356
|
-
|
2357
|
-
|
2358
|
-
|
2359
|
-
|
2360
|
-
|
2357
|
+
if (!isEqual(order, this.currentExpandableFieldSortableOrder)) {
|
2358
|
+
try {
|
2359
|
+
this.currentExpandableFieldSortableOrder = order;
|
2360
|
+
this.currentExpandableFieldSortable.sort(order);
|
2361
|
+
}
|
2362
|
+
catch (err) {
|
2363
|
+
// do nothing
|
2364
|
+
}
|
2361
2365
|
}
|
2362
2366
|
}
|
2363
2367
|
}, 0);
|