@ck-ui/component-library 0.3.0 → 1.0.0
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/DropdownFooter-CYkg2g5d.js +89 -0
- package/dist/{OptionList-BNaH2PnX.js → OptionList-DN1xZbnV.js} +29 -29
- package/dist/assets/DropdownFooter-DjdPf69A.css +1 -0
- package/dist/assets/index-B81zpOpq.css +1 -0
- package/dist/assets/index-BoQKDmZt.css +1 -0
- package/dist/assets/index-Cdmws__2.css +1 -0
- package/dist/assets/index-CtR-jzNi.css +1 -0
- package/dist/assets/index-PKpDB4Cl.css +1 -0
- package/dist/assets/index-i-aBFBOq.css +1 -0
- package/dist/assets/{styles-CbbBUzsN.css → styles-Bqfs9eXV.css} +1 -1
- package/dist/assets/styles-CYxKrBqL.css +1 -0
- package/dist/assets/styles-CZCmGNUn.css +1 -0
- package/dist/components/Breadcrumb/index.d.ts.map +1 -1
- package/dist/components/Breadcrumb/index.js +53 -47
- package/dist/components/CKCheckbox/index.d.ts.map +1 -1
- package/dist/components/CKCheckbox/index.js +22 -21
- package/dist/components/CostComparatorTable/_helpers/CostCell.d.ts +3 -1
- package/dist/components/CostComparatorTable/_helpers/CostCell.d.ts.map +1 -1
- package/dist/components/CostComparatorTable/_helpers/CostCell.js +30 -28
- package/dist/components/CostComparatorTable/_helpers/HeaderCheckbox.js +1 -1
- package/dist/components/CostComparatorTable/_types/costComparatorTable.types.d.ts +7 -0
- package/dist/components/CostComparatorTable/_types/costComparatorTable.types.d.ts.map +1 -1
- package/dist/components/CostComparatorTable/index.d.ts +1 -1
- package/dist/components/CostComparatorTable/index.d.ts.map +1 -1
- package/dist/components/CostComparatorTable/index.js +93 -85
- package/dist/components/DateRangePicker/DateRangePicker.d.ts.map +1 -1
- package/dist/components/DateRangePicker/DateRangePicker.js +1685 -1651
- package/dist/components/DateRangePicker/_types/dateRangePicker.types.d.ts +10 -0
- package/dist/components/DateRangePicker/_types/dateRangePicker.types.d.ts.map +1 -1
- package/dist/components/FusionChart/_config/builders.d.ts.map +1 -1
- package/dist/components/FusionChart/_config/builders.js +141 -141
- package/dist/components/FusionChart/_config/helpers.js +2 -2
- package/dist/components/FusionChart/_helpers/doughnutHelper.d.ts.map +1 -1
- package/dist/components/FusionChart/_helpers/doughnutHelper.js +56 -43
- package/dist/components/FusionChart/index.d.ts.map +1 -1
- package/dist/components/FusionChart/index.js +356 -340
- package/dist/components/Loader/_types/loader.types.d.ts +10 -0
- package/dist/components/Loader/_types/loader.types.d.ts.map +1 -0
- package/dist/components/Loader/_types/loader.types.js +1 -0
- package/dist/components/Loader/index.d.ts +6 -0
- package/dist/components/Loader/index.d.ts.map +1 -0
- package/dist/components/Loader/index.js +37 -0
- package/dist/components/MAVDropdown/_types/mavDropdown.types.d.ts +27 -0
- package/dist/components/MAVDropdown/_types/mavDropdown.types.d.ts.map +1 -0
- package/dist/components/MAVDropdown/_types/mavDropdown.types.js +1 -0
- package/dist/components/MAVDropdown/index.d.ts +6 -0
- package/dist/components/MAVDropdown/index.d.ts.map +1 -0
- package/dist/components/MAVDropdown/index.js +162 -0
- package/dist/components/MetricCards/Component/CardWithIconAndForecast/index.js +33 -33
- package/dist/components/MultiSelect/SimpleMultiSelect.d.ts +22 -0
- package/dist/components/MultiSelect/SimpleMultiSelect.d.ts.map +1 -0
- package/dist/components/MultiSelect/SimpleMultiSelect.js +221 -0
- package/dist/components/MultiSelect/_helpers/DropdownFooter.js +1 -1
- package/dist/components/MultiSelect/_helpers/OptionRow.js +1 -1
- package/dist/components/MultiSelect/_helpers/OverflowMenu.js +1 -1
- package/dist/components/MultiSelect/_helpers/OverflowMenuItem.js +1 -1
- package/dist/components/MultiSelect/_helpers/SearchResult.js +1 -1
- package/dist/components/MultiSelect/_helpers/TagContent.d.ts.map +1 -1
- package/dist/components/MultiSelect/_helpers/TagContent.js +20 -19
- package/dist/components/MultiSelect/_helpers/TriggerButton.d.ts.map +1 -1
- package/dist/components/MultiSelect/_helpers/TriggerButton.js +39 -34
- package/dist/components/MultiSelect/_types/type.d.ts +3 -0
- package/dist/components/MultiSelect/_types/type.d.ts.map +1 -1
- package/dist/components/MultiSelect/index.d.ts +1 -1
- package/dist/components/MultiSelect/index.d.ts.map +1 -1
- package/dist/components/MultiSelect/index.js +133 -131
- package/dist/components/ProfileDropdown/_types/profileDropdown.types.d.ts +28 -0
- package/dist/components/ProfileDropdown/_types/profileDropdown.types.d.ts.map +1 -0
- package/dist/components/ProfileDropdown/_types/profileDropdown.types.js +13 -0
- package/dist/components/ProfileDropdown/constants.d.ts +3 -0
- package/dist/components/ProfileDropdown/constants.d.ts.map +1 -0
- package/dist/components/ProfileDropdown/constants.js +8 -0
- package/dist/components/ProfileDropdown/index.d.ts +6 -0
- package/dist/components/ProfileDropdown/index.d.ts.map +1 -0
- package/dist/components/ProfileDropdown/index.js +154 -0
- package/dist/components/Search/index.js +35 -35
- package/dist/components/SingleSelectDropdown/_helpers/DropdownFooter.d.ts +2 -1
- package/dist/components/SingleSelectDropdown/_helpers/DropdownFooter.d.ts.map +1 -1
- package/dist/components/SingleSelectDropdown/_helpers/DropdownFooter.js +7 -3
- package/dist/components/SingleSelectDropdown/_types/singleSelectDropdown.types.d.ts +2 -2
- package/dist/components/SingleSelectDropdown/_types/singleSelectDropdown.types.d.ts.map +1 -1
- package/dist/components/SingleSelectDropdown/index.d.ts +1 -1
- package/dist/components/SingleSelectDropdown/index.d.ts.map +1 -1
- package/dist/components/SingleSelectDropdown/index.js +61 -57
- package/dist/components/Table/_helpers/ColumnManager/ColumnConfig.d.ts +1 -0
- package/dist/components/Table/_helpers/ColumnManager/ColumnConfig.d.ts.map +1 -1
- package/dist/components/Table/_helpers/ColumnManager/ColumnConfig.js +39 -40
- package/dist/components/Table/_helpers/ColumnManager/index.d.ts.map +1 -1
- package/dist/components/Table/_helpers/ColumnManager/index.js +453 -448
- package/dist/components/Table/_helpers/ExpandableRow/index.d.ts.map +1 -1
- package/dist/components/Table/_helpers/ExpandableRow/index.js +30 -20
- package/dist/components/Table/_helpers/GroupedHeader/index.d.ts +2 -2
- package/dist/components/Table/_helpers/GroupedHeader/index.d.ts.map +1 -1
- package/dist/components/Table/_helpers/GroupedHeader/index.js +79 -87
- package/dist/components/Table/_helpers/TableFilterModal/OptionList.js +1 -1
- package/dist/components/Table/_helpers/TableFilterModal/index.js +14 -14
- package/dist/components/Table/_helpers/TableRows.d.ts +1 -1
- package/dist/components/Table/_helpers/TableRows.d.ts.map +1 -1
- package/dist/components/Table/_helpers/TableRows.js +288 -283
- package/dist/components/Table/_types/table.types.d.ts +9 -3
- package/dist/components/Table/_types/table.types.d.ts.map +1 -1
- package/dist/components/Table/_utils/table.utils.d.ts +3 -0
- package/dist/components/Table/_utils/table.utils.d.ts.map +1 -1
- package/dist/components/Table/_utils/table.utils.js +73 -23
- package/dist/components/Table/index.d.ts +1 -1
- package/dist/components/Table/index.d.ts.map +1 -1
- package/dist/components/Table/index.js +382 -357
- package/dist/main.d.ts +5 -0
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +91 -81
- package/dist/styles.module-BXby6f8d.js +16 -0
- package/dist/styles.module-Dojg5FTS.js +41 -0
- package/package.json +1 -1
- package/dist/DropdownFooter-C20yRiDR.js +0 -84
- package/dist/assets/DropdownFooter-C7Cml53c.css +0 -1
- package/dist/assets/index-BQ0m7FKV.css +0 -1
- package/dist/assets/index-Dudb2XKF.css +0 -1
- package/dist/assets/index-w7AdSPwF.css +0 -1
- package/dist/assets/styles-BA66-SUu.css +0 -1
- package/dist/assets/styles-CflOKRvX.css +0 -1
- package/dist/styles.module-CCyijXTv.js +0 -16
- package/dist/styles.module-CmWIIYpK.js +0 -41
|
@@ -1,37 +1,36 @@
|
|
|
1
1
|
import { jsx as m, jsxs as E } from "react/jsx-runtime";
|
|
2
2
|
import * as w from "react";
|
|
3
|
-
import { createContext as
|
|
3
|
+
import { createContext as $e, memo as Ge, useEffect as k, useLayoutEffect as Ye, useState as be, useCallback as Ee, useMemo as b, isValidElement as Xe, cloneElement as ae, useContext as We, useRef as ze } from "react";
|
|
4
4
|
import { CKButton as B } from "../../../CKButton/index.js";
|
|
5
5
|
import { Typography as _ } from "../../../Typography/index.js";
|
|
6
|
-
import { Switch as
|
|
7
|
-
import { S as
|
|
8
|
-
import { S as
|
|
9
|
-
import
|
|
6
|
+
import { Switch as Qe } from "../../../Switch/index.js";
|
|
7
|
+
import { S as Ke } from "../../../../reset-icon-YxMt3Ozp.js";
|
|
8
|
+
import { S as Je } from "../../../../search-B_cup-NN.js";
|
|
9
|
+
import { ColumnConfig as Ze } from "./ColumnConfig.js";
|
|
10
10
|
import { COLUMN_ITEM_TYPE as ce } from "../../constants.js";
|
|
11
11
|
import '../../../../assets/styles-BTZL03H2.css';/* empty css */
|
|
12
|
-
import {
|
|
13
|
-
|
|
14
|
-
const we = Ge({
|
|
12
|
+
import { g as et } from "../../../../_commonjsHelpers-C6fGbg64.js";
|
|
13
|
+
const Ie = $e({
|
|
15
14
|
dragDropManager: void 0
|
|
16
15
|
});
|
|
17
16
|
function O(t) {
|
|
18
17
|
return "Minified Redux error #" + t + "; visit https://redux.js.org/Errors?code=" + t + " for the full message or use the non-minified dev environment for full errors. ";
|
|
19
18
|
}
|
|
20
|
-
var
|
|
19
|
+
var ue = (function() {
|
|
21
20
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
22
|
-
})(),
|
|
21
|
+
})(), le = function() {
|
|
23
22
|
return Math.random().toString(36).substring(7).split("").join(".");
|
|
24
|
-
},
|
|
25
|
-
INIT: "@@redux/INIT" +
|
|
26
|
-
REPLACE: "@@redux/REPLACE" +
|
|
23
|
+
}, de = {
|
|
24
|
+
INIT: "@@redux/INIT" + le(),
|
|
25
|
+
REPLACE: "@@redux/REPLACE" + le()
|
|
27
26
|
};
|
|
28
|
-
function
|
|
27
|
+
function tt(t) {
|
|
29
28
|
if (typeof t != "object" || t === null) return !1;
|
|
30
29
|
for (var e = t; Object.getPrototypeOf(e) !== null; )
|
|
31
30
|
e = Object.getPrototypeOf(e);
|
|
32
31
|
return Object.getPrototypeOf(t) === e;
|
|
33
32
|
}
|
|
34
|
-
function
|
|
33
|
+
function rt(t) {
|
|
35
34
|
if (t === void 0) return "undefined";
|
|
36
35
|
if (t === null) return "null";
|
|
37
36
|
var e = typeof t;
|
|
@@ -45,8 +44,8 @@ function nt(t) {
|
|
|
45
44
|
}
|
|
46
45
|
if (Array.isArray(t)) return "array";
|
|
47
46
|
if (ot(t)) return "date";
|
|
48
|
-
if (
|
|
49
|
-
var r =
|
|
47
|
+
if (it(t)) return "error";
|
|
48
|
+
var r = nt(t);
|
|
50
49
|
switch (r) {
|
|
51
50
|
case "Symbol":
|
|
52
51
|
case "Promise":
|
|
@@ -58,10 +57,10 @@ function nt(t) {
|
|
|
58
57
|
}
|
|
59
58
|
return e.slice(8, -1).toLowerCase().replace(/\s/g, "");
|
|
60
59
|
}
|
|
61
|
-
function
|
|
60
|
+
function nt(t) {
|
|
62
61
|
return typeof t.constructor == "function" ? t.constructor.name : null;
|
|
63
62
|
}
|
|
64
|
-
function
|
|
63
|
+
function it(t) {
|
|
65
64
|
return t instanceof Error || typeof t.message == "string" && t.constructor && typeof t.constructor.stackTraceLimit == "number";
|
|
66
65
|
}
|
|
67
66
|
function ot(t) {
|
|
@@ -69,27 +68,27 @@ function ot(t) {
|
|
|
69
68
|
}
|
|
70
69
|
function N(t) {
|
|
71
70
|
var e = typeof t;
|
|
72
|
-
return process.env.NODE_ENV !== "production" && (e =
|
|
71
|
+
return process.env.NODE_ENV !== "production" && (e = rt(t)), e;
|
|
73
72
|
}
|
|
74
|
-
function
|
|
73
|
+
function we(t, e, r) {
|
|
75
74
|
var n;
|
|
76
75
|
if (typeof e == "function" && typeof r == "function" || typeof r == "function" && typeof arguments[3] == "function")
|
|
77
76
|
throw new Error(process.env.NODE_ENV === "production" ? O(0) : "It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");
|
|
78
77
|
if (typeof e == "function" && typeof r > "u" && (r = e, e = void 0), typeof r < "u") {
|
|
79
78
|
if (typeof r != "function")
|
|
80
79
|
throw new Error(process.env.NODE_ENV === "production" ? O(1) : "Expected the enhancer to be a function. Instead, received: '" + N(r) + "'");
|
|
81
|
-
return r(
|
|
80
|
+
return r(we)(t, e);
|
|
82
81
|
}
|
|
83
82
|
if (typeof t != "function")
|
|
84
83
|
throw new Error(process.env.NODE_ENV === "production" ? O(2) : "Expected the root reducer to be a function. Instead, received: '" + N(t) + "'");
|
|
85
|
-
var i = t,
|
|
84
|
+
var i = t, o = e, s = [], a = s, c = !1;
|
|
86
85
|
function d() {
|
|
87
|
-
a ===
|
|
86
|
+
a === s && (a = s.slice());
|
|
88
87
|
}
|
|
89
88
|
function f() {
|
|
90
89
|
if (c)
|
|
91
90
|
throw new Error(process.env.NODE_ENV === "production" ? O(3) : "You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");
|
|
92
|
-
return
|
|
91
|
+
return o;
|
|
93
92
|
}
|
|
94
93
|
function p(h) {
|
|
95
94
|
if (typeof h != "function")
|
|
@@ -103,23 +102,23 @@ function Ce(t, e, r) {
|
|
|
103
102
|
throw new Error(process.env.NODE_ENV === "production" ? O(6) : "You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");
|
|
104
103
|
v = !1, d();
|
|
105
104
|
var S = a.indexOf(h);
|
|
106
|
-
a.splice(S, 1),
|
|
105
|
+
a.splice(S, 1), s = null;
|
|
107
106
|
}
|
|
108
107
|
};
|
|
109
108
|
}
|
|
110
109
|
function g(h) {
|
|
111
|
-
if (!
|
|
110
|
+
if (!tt(h))
|
|
112
111
|
throw new Error(process.env.NODE_ENV === "production" ? O(7) : "Actions must be plain objects. Instead, the actual type was: '" + N(h) + "'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");
|
|
113
112
|
if (typeof h.type > "u")
|
|
114
113
|
throw new Error(process.env.NODE_ENV === "production" ? O(8) : 'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');
|
|
115
114
|
if (c)
|
|
116
115
|
throw new Error(process.env.NODE_ENV === "production" ? O(9) : "Reducers may not dispatch actions.");
|
|
117
116
|
try {
|
|
118
|
-
c = !0,
|
|
117
|
+
c = !0, o = i(o, h);
|
|
119
118
|
} finally {
|
|
120
119
|
c = !1;
|
|
121
120
|
}
|
|
122
|
-
for (var v =
|
|
121
|
+
for (var v = s = a, y = 0; y < v.length; y++) {
|
|
123
122
|
var S = v[y];
|
|
124
123
|
S();
|
|
125
124
|
}
|
|
@@ -129,7 +128,7 @@ function Ce(t, e, r) {
|
|
|
129
128
|
if (typeof h != "function")
|
|
130
129
|
throw new Error(process.env.NODE_ENV === "production" ? O(10) : "Expected the nextReducer to be a function. Instead, received: '" + N(h));
|
|
131
130
|
i = h, g({
|
|
132
|
-
type:
|
|
131
|
+
type: de.REPLACE
|
|
133
132
|
});
|
|
134
133
|
}
|
|
135
134
|
function D() {
|
|
@@ -155,21 +154,21 @@ function Ce(t, e, r) {
|
|
|
155
154
|
unsubscribe: F
|
|
156
155
|
};
|
|
157
156
|
}
|
|
158
|
-
}, h[
|
|
157
|
+
}, h[ue] = function() {
|
|
159
158
|
return this;
|
|
160
159
|
}, h;
|
|
161
160
|
}
|
|
162
161
|
return g({
|
|
163
|
-
type:
|
|
162
|
+
type: de.INIT
|
|
164
163
|
}), n = {
|
|
165
164
|
dispatch: g,
|
|
166
165
|
subscribe: p,
|
|
167
166
|
getState: f,
|
|
168
167
|
replaceReducer: u
|
|
169
|
-
}, n[
|
|
168
|
+
}, n[ue] = D, n;
|
|
170
169
|
}
|
|
171
170
|
function l(t, e, ...r) {
|
|
172
|
-
if (
|
|
171
|
+
if (st() && e === void 0)
|
|
173
172
|
throw new Error("invariant requires an error message argument");
|
|
174
173
|
if (!t) {
|
|
175
174
|
let n;
|
|
@@ -184,40 +183,40 @@ function l(t, e, ...r) {
|
|
|
184
183
|
throw n.framesToPop = 1, n;
|
|
185
184
|
}
|
|
186
185
|
}
|
|
187
|
-
function
|
|
186
|
+
function st() {
|
|
188
187
|
return typeof process < "u" && process.env.NODE_ENV === "production";
|
|
189
188
|
}
|
|
190
|
-
function
|
|
189
|
+
function at(t, e, r) {
|
|
191
190
|
return e.split(".").reduce(
|
|
192
191
|
(n, i) => n && n[i] ? n[i] : r || null,
|
|
193
192
|
t
|
|
194
193
|
);
|
|
195
194
|
}
|
|
196
|
-
function
|
|
195
|
+
function ct(t, e) {
|
|
197
196
|
return t.filter(
|
|
198
197
|
(r) => r !== e
|
|
199
198
|
);
|
|
200
199
|
}
|
|
201
|
-
function
|
|
200
|
+
function Ce(t) {
|
|
202
201
|
return typeof t == "object";
|
|
203
202
|
}
|
|
204
|
-
function
|
|
205
|
-
const r = /* @__PURE__ */ new Map(), n = (
|
|
206
|
-
r.set(
|
|
203
|
+
function ut(t, e) {
|
|
204
|
+
const r = /* @__PURE__ */ new Map(), n = (o) => {
|
|
205
|
+
r.set(o, r.has(o) ? r.get(o) + 1 : 1);
|
|
207
206
|
};
|
|
208
207
|
t.forEach(n), e.forEach(n);
|
|
209
208
|
const i = [];
|
|
210
|
-
return r.forEach((
|
|
211
|
-
|
|
209
|
+
return r.forEach((o, s) => {
|
|
210
|
+
o === 1 && i.push(s);
|
|
212
211
|
}), i;
|
|
213
212
|
}
|
|
214
|
-
function
|
|
213
|
+
function lt(t, e) {
|
|
215
214
|
return t.filter(
|
|
216
215
|
(r) => e.indexOf(r) > -1
|
|
217
216
|
);
|
|
218
217
|
}
|
|
219
218
|
const ee = "dnd-core/INIT_COORDS", A = "dnd-core/BEGIN_DRAG", te = "dnd-core/PUBLISH_DRAG_SOURCE", H = "dnd-core/HOVER", j = "dnd-core/DROP", U = "dnd-core/END_DRAG";
|
|
220
|
-
function
|
|
219
|
+
function ge(t, e) {
|
|
221
220
|
return {
|
|
222
221
|
type: ee,
|
|
223
222
|
payload: {
|
|
@@ -226,35 +225,35 @@ function fe(t, e) {
|
|
|
226
225
|
}
|
|
227
226
|
};
|
|
228
227
|
}
|
|
229
|
-
const
|
|
228
|
+
const dt = {
|
|
230
229
|
type: ee,
|
|
231
230
|
payload: {
|
|
232
231
|
clientOffset: null,
|
|
233
232
|
sourceClientOffset: null
|
|
234
233
|
}
|
|
235
234
|
};
|
|
236
|
-
function
|
|
235
|
+
function gt(t) {
|
|
237
236
|
return function(r = [], n = {
|
|
238
237
|
publishSource: !0
|
|
239
238
|
}) {
|
|
240
|
-
const { publishSource: i = !0, clientOffset:
|
|
241
|
-
t.dispatch(
|
|
242
|
-
const d =
|
|
239
|
+
const { publishSource: i = !0, clientOffset: o, getSourceClientOffset: s } = n, a = t.getMonitor(), c = t.getRegistry();
|
|
240
|
+
t.dispatch(ge(o)), ft(r, a, c);
|
|
241
|
+
const d = mt(r, a);
|
|
243
242
|
if (d == null) {
|
|
244
|
-
t.dispatch(
|
|
243
|
+
t.dispatch(dt);
|
|
245
244
|
return;
|
|
246
245
|
}
|
|
247
246
|
let f = null;
|
|
248
|
-
if (
|
|
249
|
-
if (!
|
|
247
|
+
if (o) {
|
|
248
|
+
if (!s)
|
|
250
249
|
throw new Error("getSourceClientOffset must be defined");
|
|
251
|
-
|
|
250
|
+
ht(s), f = s(d);
|
|
252
251
|
}
|
|
253
|
-
t.dispatch(
|
|
252
|
+
t.dispatch(ge(o, f));
|
|
254
253
|
const g = c.getSource(d).beginDrag(a, d);
|
|
255
254
|
if (g == null)
|
|
256
255
|
return;
|
|
257
|
-
|
|
256
|
+
pt(g), c.pinSource(d);
|
|
258
257
|
const u = c.getSourceType(d);
|
|
259
258
|
return {
|
|
260
259
|
type: A,
|
|
@@ -262,25 +261,25 @@ function ft(t) {
|
|
|
262
261
|
itemType: u,
|
|
263
262
|
item: g,
|
|
264
263
|
sourceId: d,
|
|
265
|
-
clientOffset:
|
|
264
|
+
clientOffset: o || null,
|
|
266
265
|
sourceClientOffset: f || null,
|
|
267
266
|
isSourcePublic: !!i
|
|
268
267
|
}
|
|
269
268
|
};
|
|
270
269
|
};
|
|
271
270
|
}
|
|
272
|
-
function
|
|
271
|
+
function ft(t, e, r) {
|
|
273
272
|
l(!e.isDragging(), "Cannot call beginDrag while dragging."), t.forEach(function(n) {
|
|
274
273
|
l(r.getSource(n), "Expected sourceIds to be registered.");
|
|
275
274
|
});
|
|
276
275
|
}
|
|
277
|
-
function
|
|
276
|
+
function ht(t) {
|
|
278
277
|
l(typeof t == "function", "When clientOffset is provided, getSourceClientOffset must be a function.");
|
|
279
278
|
}
|
|
280
|
-
function
|
|
281
|
-
l(
|
|
279
|
+
function pt(t) {
|
|
280
|
+
l(Ce(t), "Item must be an object.");
|
|
282
281
|
}
|
|
283
|
-
function
|
|
282
|
+
function mt(t, e) {
|
|
284
283
|
let r = null;
|
|
285
284
|
for (let n = t.length - 1; n >= 0; n--)
|
|
286
285
|
if (e.canDragSource(t[n])) {
|
|
@@ -289,7 +288,7 @@ function vt(t, e) {
|
|
|
289
288
|
}
|
|
290
289
|
return r;
|
|
291
290
|
}
|
|
292
|
-
function
|
|
291
|
+
function vt(t, e, r) {
|
|
293
292
|
return e in t ? Object.defineProperty(t, e, {
|
|
294
293
|
value: r,
|
|
295
294
|
enumerable: !0,
|
|
@@ -297,57 +296,57 @@ function Dt(t, e, r) {
|
|
|
297
296
|
writable: !0
|
|
298
297
|
}) : t[e] = r, t;
|
|
299
298
|
}
|
|
300
|
-
function
|
|
299
|
+
function Dt(t) {
|
|
301
300
|
for (var e = 1; e < arguments.length; e++) {
|
|
302
301
|
var r = arguments[e] != null ? arguments[e] : {}, n = Object.keys(r);
|
|
303
302
|
typeof Object.getOwnPropertySymbols == "function" && (n = n.concat(Object.getOwnPropertySymbols(r).filter(function(i) {
|
|
304
303
|
return Object.getOwnPropertyDescriptor(r, i).enumerable;
|
|
305
304
|
}))), n.forEach(function(i) {
|
|
306
|
-
|
|
305
|
+
vt(t, i, r[i]);
|
|
307
306
|
});
|
|
308
307
|
}
|
|
309
308
|
return t;
|
|
310
309
|
}
|
|
311
|
-
function
|
|
310
|
+
function yt(t) {
|
|
312
311
|
return function(r = {}) {
|
|
313
312
|
const n = t.getMonitor(), i = t.getRegistry();
|
|
314
|
-
|
|
315
|
-
const c =
|
|
313
|
+
St(n), bt(n).forEach((s, a) => {
|
|
314
|
+
const c = Ot(s, a, i, n), d = {
|
|
316
315
|
type: j,
|
|
317
316
|
payload: {
|
|
318
|
-
dropResult:
|
|
317
|
+
dropResult: Dt({}, r, c)
|
|
319
318
|
}
|
|
320
319
|
};
|
|
321
320
|
t.dispatch(d);
|
|
322
321
|
});
|
|
323
322
|
};
|
|
324
323
|
}
|
|
325
|
-
function
|
|
324
|
+
function St(t) {
|
|
326
325
|
l(t.isDragging(), "Cannot call drop while not dragging."), l(!t.didDrop(), "Cannot call drop twice during one drag operation.");
|
|
327
326
|
}
|
|
328
|
-
function
|
|
327
|
+
function Ot(t, e, r, n) {
|
|
329
328
|
const i = r.getTarget(t);
|
|
330
|
-
let
|
|
331
|
-
return
|
|
329
|
+
let o = i ? i.drop(n, t) : void 0;
|
|
330
|
+
return Tt(o), typeof o > "u" && (o = e === 0 ? {} : n.getDropResult()), o;
|
|
332
331
|
}
|
|
333
|
-
function
|
|
334
|
-
l(typeof t > "u" ||
|
|
332
|
+
function Tt(t) {
|
|
333
|
+
l(typeof t > "u" || Ce(t), "Drop result must either be an object or undefined.");
|
|
335
334
|
}
|
|
336
|
-
function
|
|
335
|
+
function bt(t) {
|
|
337
336
|
const e = t.getTargetIds().filter(t.canDropOnTarget, t);
|
|
338
337
|
return e.reverse(), e;
|
|
339
338
|
}
|
|
340
|
-
function
|
|
339
|
+
function Et(t) {
|
|
341
340
|
return function() {
|
|
342
341
|
const r = t.getMonitor(), n = t.getRegistry();
|
|
343
|
-
|
|
342
|
+
It(r);
|
|
344
343
|
const i = r.getSourceId();
|
|
345
344
|
return i != null && (n.getSource(i, !0).endDrag(r, i), n.unpinSource()), {
|
|
346
345
|
type: U
|
|
347
346
|
};
|
|
348
347
|
};
|
|
349
348
|
}
|
|
350
|
-
function
|
|
349
|
+
function It(t) {
|
|
351
350
|
l(t.isDragging(), "Cannot call endDrag while not dragging.");
|
|
352
351
|
}
|
|
353
352
|
function z(t, e) {
|
|
@@ -355,11 +354,11 @@ function z(t, e) {
|
|
|
355
354
|
(r) => r === e
|
|
356
355
|
) : t === e;
|
|
357
356
|
}
|
|
358
|
-
function
|
|
357
|
+
function wt(t) {
|
|
359
358
|
return function(r, { clientOffset: n } = {}) {
|
|
360
|
-
|
|
361
|
-
const i = r.slice(0),
|
|
362
|
-
return
|
|
359
|
+
Ct(r);
|
|
360
|
+
const i = r.slice(0), o = t.getMonitor(), s = t.getRegistry(), a = o.getItemType();
|
|
361
|
+
return Pt(i, s, a), Nt(i, o, s), xt(i, o, s), {
|
|
363
362
|
type: H,
|
|
364
363
|
payload: {
|
|
365
364
|
targetIds: i,
|
|
@@ -368,30 +367,30 @@ function Ct(t) {
|
|
|
368
367
|
};
|
|
369
368
|
};
|
|
370
369
|
}
|
|
371
|
-
function
|
|
370
|
+
function Ct(t) {
|
|
372
371
|
l(Array.isArray(t), "Expected targetIds to be an array.");
|
|
373
372
|
}
|
|
374
|
-
function
|
|
373
|
+
function Nt(t, e, r) {
|
|
375
374
|
l(e.isDragging(), "Cannot call hover while not dragging."), l(!e.didDrop(), "Cannot call hover after drop.");
|
|
376
375
|
for (let n = 0; n < t.length; n++) {
|
|
377
376
|
const i = t[n];
|
|
378
377
|
l(t.lastIndexOf(i) === n, "Expected targetIds to be unique in the passed array.");
|
|
379
|
-
const
|
|
380
|
-
l(
|
|
378
|
+
const o = r.getTarget(i);
|
|
379
|
+
l(o, "Expected targetIds to be registered.");
|
|
381
380
|
}
|
|
382
381
|
}
|
|
383
|
-
function
|
|
382
|
+
function Pt(t, e, r) {
|
|
384
383
|
for (let n = t.length - 1; n >= 0; n--) {
|
|
385
|
-
const i = t[n],
|
|
386
|
-
z(
|
|
384
|
+
const i = t[n], o = e.getTargetType(i);
|
|
385
|
+
z(o, r) || t.splice(n, 1);
|
|
387
386
|
}
|
|
388
387
|
}
|
|
389
|
-
function
|
|
388
|
+
function xt(t, e, r) {
|
|
390
389
|
t.forEach(function(n) {
|
|
391
390
|
r.getTarget(n).hover(e, n);
|
|
392
391
|
});
|
|
393
392
|
}
|
|
394
|
-
function
|
|
393
|
+
function Rt(t) {
|
|
395
394
|
return function() {
|
|
396
395
|
if (t.getMonitor().isDragging())
|
|
397
396
|
return {
|
|
@@ -399,16 +398,16 @@ function Mt(t) {
|
|
|
399
398
|
};
|
|
400
399
|
};
|
|
401
400
|
}
|
|
402
|
-
function
|
|
401
|
+
function Mt(t) {
|
|
403
402
|
return {
|
|
404
|
-
beginDrag:
|
|
405
|
-
publishDragSource:
|
|
406
|
-
hover:
|
|
407
|
-
drop:
|
|
408
|
-
endDrag:
|
|
403
|
+
beginDrag: gt(t),
|
|
404
|
+
publishDragSource: Rt(t),
|
|
405
|
+
hover: wt(t),
|
|
406
|
+
drop: yt(t),
|
|
407
|
+
endDrag: Et(t)
|
|
409
408
|
};
|
|
410
409
|
}
|
|
411
|
-
class
|
|
410
|
+
class _t {
|
|
412
411
|
receiveBackend(e) {
|
|
413
412
|
this.backend = e;
|
|
414
413
|
}
|
|
@@ -423,16 +422,16 @@ class Lt {
|
|
|
423
422
|
}
|
|
424
423
|
getActions() {
|
|
425
424
|
const e = this, { dispatch: r } = this.store;
|
|
426
|
-
function n(
|
|
427
|
-
return (...
|
|
428
|
-
const a =
|
|
425
|
+
function n(o) {
|
|
426
|
+
return (...s) => {
|
|
427
|
+
const a = o.apply(e, s);
|
|
429
428
|
typeof a < "u" && r(a);
|
|
430
429
|
};
|
|
431
430
|
}
|
|
432
|
-
const i =
|
|
433
|
-
return Object.keys(i).reduce((
|
|
434
|
-
const a = i[
|
|
435
|
-
return s
|
|
431
|
+
const i = Mt(this);
|
|
432
|
+
return Object.keys(i).reduce((o, s) => {
|
|
433
|
+
const a = i[s];
|
|
434
|
+
return o[s] = n(a), o;
|
|
436
435
|
}, {});
|
|
437
436
|
}
|
|
438
437
|
dispatch(e) {
|
|
@@ -445,46 +444,46 @@ class Lt {
|
|
|
445
444
|
}, this.store = e, this.monitor = r, e.subscribe(this.handleRefCountChange);
|
|
446
445
|
}
|
|
447
446
|
}
|
|
448
|
-
function
|
|
447
|
+
function Lt(t, e) {
|
|
449
448
|
return {
|
|
450
449
|
x: t.x + e.x,
|
|
451
450
|
y: t.y + e.y
|
|
452
451
|
};
|
|
453
452
|
}
|
|
454
|
-
function
|
|
453
|
+
function Ne(t, e) {
|
|
455
454
|
return {
|
|
456
455
|
x: t.x - e.x,
|
|
457
456
|
y: t.y - e.y
|
|
458
457
|
};
|
|
459
458
|
}
|
|
460
|
-
function
|
|
459
|
+
function kt(t) {
|
|
461
460
|
const { clientOffset: e, initialClientOffset: r, initialSourceClientOffset: n } = t;
|
|
462
|
-
return !e || !r || !n ? null :
|
|
461
|
+
return !e || !r || !n ? null : Ne(Lt(e, n), r);
|
|
463
462
|
}
|
|
464
|
-
function
|
|
463
|
+
function At(t) {
|
|
465
464
|
const { clientOffset: e, initialClientOffset: r } = t;
|
|
466
|
-
return !e || !r ? null :
|
|
465
|
+
return !e || !r ? null : Ne(e, r);
|
|
467
466
|
}
|
|
468
467
|
const R = [], re = [];
|
|
469
468
|
R.__IS_NONE__ = !0;
|
|
470
469
|
re.__IS_ALL__ = !0;
|
|
471
|
-
function
|
|
472
|
-
return t === R ? !1 : t === re || typeof e > "u" ? !0 :
|
|
470
|
+
function Ht(t, e) {
|
|
471
|
+
return t === R ? !1 : t === re || typeof e > "u" ? !0 : lt(e, t).length > 0;
|
|
473
472
|
}
|
|
474
|
-
class
|
|
473
|
+
class jt {
|
|
475
474
|
subscribeToStateChange(e, r = {}) {
|
|
476
475
|
const { handlerIds: n } = r;
|
|
477
476
|
l(typeof e == "function", "listener must be a function."), l(typeof n > "u" || Array.isArray(n), "handlerIds, when specified, must be an array of strings.");
|
|
478
477
|
let i = this.store.getState().stateId;
|
|
479
|
-
const
|
|
480
|
-
const
|
|
478
|
+
const o = () => {
|
|
479
|
+
const s = this.store.getState(), a = s.stateId;
|
|
481
480
|
try {
|
|
482
|
-
a === i || a === i + 1 && !
|
|
481
|
+
a === i || a === i + 1 && !Ht(s.dirtyHandlerIds, n) || e();
|
|
483
482
|
} finally {
|
|
484
483
|
i = a;
|
|
485
484
|
}
|
|
486
485
|
};
|
|
487
|
-
return this.store.subscribe(
|
|
486
|
+
return this.store.subscribe(o);
|
|
488
487
|
}
|
|
489
488
|
subscribeToOffsetChange(e) {
|
|
490
489
|
l(typeof e == "function", "listener must be a function.");
|
|
@@ -530,14 +529,14 @@ class Ut {
|
|
|
530
529
|
const { shallow: n } = r;
|
|
531
530
|
if (!this.isDragging())
|
|
532
531
|
return !1;
|
|
533
|
-
const i = this.registry.getTargetType(e),
|
|
534
|
-
if (
|
|
532
|
+
const i = this.registry.getTargetType(e), o = this.getItemType();
|
|
533
|
+
if (o && !z(i, o))
|
|
535
534
|
return !1;
|
|
536
|
-
const
|
|
537
|
-
if (!
|
|
535
|
+
const s = this.getTargetIds();
|
|
536
|
+
if (!s.length)
|
|
538
537
|
return !1;
|
|
539
|
-
const a =
|
|
540
|
-
return n ? a ===
|
|
538
|
+
const a = s.indexOf(e);
|
|
539
|
+
return n ? a === s.length - 1 : a > -1;
|
|
541
540
|
}
|
|
542
541
|
getItemType() {
|
|
543
542
|
return this.store.getState().dragOperation.itemType;
|
|
@@ -570,17 +569,17 @@ class Ut {
|
|
|
570
569
|
return this.store.getState().dragOffset.clientOffset;
|
|
571
570
|
}
|
|
572
571
|
getSourceClientOffset() {
|
|
573
|
-
return
|
|
572
|
+
return kt(this.store.getState().dragOffset);
|
|
574
573
|
}
|
|
575
574
|
getDifferenceFromInitialOffset() {
|
|
576
|
-
return
|
|
575
|
+
return At(this.store.getState().dragOffset);
|
|
577
576
|
}
|
|
578
577
|
constructor(e, r) {
|
|
579
578
|
this.store = e, this.registry = r;
|
|
580
579
|
}
|
|
581
580
|
}
|
|
582
|
-
const
|
|
583
|
-
function
|
|
581
|
+
const fe = typeof global < "u" ? global : self, Pe = fe.MutationObserver || fe.WebKitMutationObserver;
|
|
582
|
+
function xe(t) {
|
|
584
583
|
return function() {
|
|
585
584
|
const r = setTimeout(i, 0), n = setInterval(i, 50);
|
|
586
585
|
function i() {
|
|
@@ -588,16 +587,16 @@ function Re(t) {
|
|
|
588
587
|
}
|
|
589
588
|
};
|
|
590
589
|
}
|
|
591
|
-
function
|
|
590
|
+
function Ut(t) {
|
|
592
591
|
let e = 1;
|
|
593
|
-
const r = new
|
|
592
|
+
const r = new Pe(t), n = document.createTextNode("");
|
|
594
593
|
return r.observe(n, {
|
|
595
594
|
characterData: !0
|
|
596
595
|
}), function() {
|
|
597
596
|
e = -e, n.data = e;
|
|
598
597
|
};
|
|
599
598
|
}
|
|
600
|
-
const
|
|
599
|
+
const Vt = typeof Pe == "function" ? (
|
|
601
600
|
// reliably everywhere they are implemented.
|
|
602
601
|
// They are implemented in all modern browsers.
|
|
603
602
|
//
|
|
@@ -608,7 +607,7 @@ const Ft = typeof xe == "function" ? (
|
|
|
608
607
|
// - iPad Safari 6-7.1
|
|
609
608
|
// - iPhone Safari 7-7.1
|
|
610
609
|
// - Safari 6-7
|
|
611
|
-
|
|
610
|
+
Ut
|
|
612
611
|
) : (
|
|
613
612
|
// task queue, are implemented in Internet Explorer 10, Safari 5.0-1, and Opera
|
|
614
613
|
// 11-12, and in web workers in many engines.
|
|
@@ -634,9 +633,9 @@ const Ft = typeof xe == "function" ? (
|
|
|
634
633
|
// - Internet Explorer 6-9
|
|
635
634
|
// - iPad Safari 4.3
|
|
636
635
|
// - Lynx 2.8.7
|
|
637
|
-
|
|
636
|
+
xe
|
|
638
637
|
);
|
|
639
|
-
class
|
|
638
|
+
class Ft {
|
|
640
639
|
// Use the fastest means possible to execute a task in its own turn, with
|
|
641
640
|
// priority over other events including IO, animation, reflow, and redraw
|
|
642
641
|
// events in browsers.
|
|
@@ -665,13 +664,13 @@ class Bt {
|
|
|
665
664
|
e.length = 0, this.index = 0, this.flushing = !1;
|
|
666
665
|
}, this.registerPendingError = (e) => {
|
|
667
666
|
this.pendingErrors.push(e), this.requestErrorThrow();
|
|
668
|
-
}, this.requestFlush =
|
|
667
|
+
}, this.requestFlush = Vt(this.flush), this.requestErrorThrow = xe(() => {
|
|
669
668
|
if (this.pendingErrors.length)
|
|
670
669
|
throw this.pendingErrors.shift();
|
|
671
670
|
});
|
|
672
671
|
}
|
|
673
672
|
}
|
|
674
|
-
class
|
|
673
|
+
class Bt {
|
|
675
674
|
call() {
|
|
676
675
|
try {
|
|
677
676
|
this.task && this.task();
|
|
@@ -685,9 +684,9 @@ class qt {
|
|
|
685
684
|
this.onError = e, this.release = r, this.task = null;
|
|
686
685
|
}
|
|
687
686
|
}
|
|
688
|
-
class
|
|
687
|
+
class qt {
|
|
689
688
|
create(e) {
|
|
690
|
-
const r = this.freeTasks, n = r.length ? r.pop() : new
|
|
689
|
+
const r = this.freeTasks, n = r.length ? r.pop() : new Bt(
|
|
691
690
|
this.onError,
|
|
692
691
|
(i) => r[r.length] = i
|
|
693
692
|
);
|
|
@@ -697,12 +696,12 @@ class $t {
|
|
|
697
696
|
this.onError = e, this.freeTasks = [];
|
|
698
697
|
}
|
|
699
698
|
}
|
|
700
|
-
const
|
|
701
|
-
function
|
|
702
|
-
|
|
699
|
+
const Re = new Ft(), $t = new qt(Re.registerPendingError);
|
|
700
|
+
function Gt(t) {
|
|
701
|
+
Re.enqueueTask($t.create(t));
|
|
703
702
|
}
|
|
704
|
-
const ne = "dnd-core/ADD_SOURCE", ie = "dnd-core/ADD_TARGET",
|
|
705
|
-
function
|
|
703
|
+
const ne = "dnd-core/ADD_SOURCE", ie = "dnd-core/ADD_TARGET", oe = "dnd-core/REMOVE_SOURCE", V = "dnd-core/REMOVE_TARGET";
|
|
704
|
+
function Yt(t) {
|
|
706
705
|
return {
|
|
707
706
|
type: ne,
|
|
708
707
|
payload: {
|
|
@@ -710,7 +709,7 @@ function Xt(t) {
|
|
|
710
709
|
}
|
|
711
710
|
};
|
|
712
711
|
}
|
|
713
|
-
function
|
|
712
|
+
function Xt(t) {
|
|
714
713
|
return {
|
|
715
714
|
type: ie,
|
|
716
715
|
payload: {
|
|
@@ -718,15 +717,15 @@ function Wt(t) {
|
|
|
718
717
|
}
|
|
719
718
|
};
|
|
720
719
|
}
|
|
721
|
-
function
|
|
720
|
+
function Wt(t) {
|
|
722
721
|
return {
|
|
723
|
-
type:
|
|
722
|
+
type: oe,
|
|
724
723
|
payload: {
|
|
725
724
|
sourceId: t
|
|
726
725
|
}
|
|
727
726
|
};
|
|
728
727
|
}
|
|
729
|
-
function
|
|
728
|
+
function zt(t) {
|
|
730
729
|
return {
|
|
731
730
|
type: V,
|
|
732
731
|
payload: {
|
|
@@ -734,10 +733,10 @@ function Qt(t) {
|
|
|
734
733
|
}
|
|
735
734
|
};
|
|
736
735
|
}
|
|
737
|
-
function
|
|
736
|
+
function Qt(t) {
|
|
738
737
|
l(typeof t.canDrag == "function", "Expected canDrag to be a function."), l(typeof t.beginDrag == "function", "Expected beginDrag to be a function."), l(typeof t.endDrag == "function", "Expected endDrag to be a function.");
|
|
739
738
|
}
|
|
740
|
-
function
|
|
739
|
+
function Kt(t) {
|
|
741
740
|
l(typeof t.canDrop == "function", "Expected canDrop to be a function."), l(typeof t.hover == "function", "Expected hover to be a function."), l(typeof t.drop == "function", "Expected beginDrag to be a function.");
|
|
742
741
|
}
|
|
743
742
|
function Q(t, e) {
|
|
@@ -753,12 +752,12 @@ var T;
|
|
|
753
752
|
(function(t) {
|
|
754
753
|
t.SOURCE = "SOURCE", t.TARGET = "TARGET";
|
|
755
754
|
})(T || (T = {}));
|
|
756
|
-
let
|
|
757
|
-
function
|
|
758
|
-
return
|
|
755
|
+
let Jt = 0;
|
|
756
|
+
function Zt() {
|
|
757
|
+
return Jt++;
|
|
759
758
|
}
|
|
760
|
-
function
|
|
761
|
-
const e =
|
|
759
|
+
function er(t) {
|
|
760
|
+
const e = Zt().toString();
|
|
762
761
|
switch (t) {
|
|
763
762
|
case T.SOURCE:
|
|
764
763
|
return `S${e}`;
|
|
@@ -768,7 +767,7 @@ function tr(t) {
|
|
|
768
767
|
throw new Error(`Unknown Handler Role: ${t}`);
|
|
769
768
|
}
|
|
770
769
|
}
|
|
771
|
-
function
|
|
770
|
+
function he(t) {
|
|
772
771
|
switch (t[0]) {
|
|
773
772
|
case "S":
|
|
774
773
|
return T.SOURCE;
|
|
@@ -778,30 +777,30 @@ function pe(t) {
|
|
|
778
777
|
throw new Error(`Cannot parse handler ID: ${t}`);
|
|
779
778
|
}
|
|
780
779
|
}
|
|
781
|
-
function
|
|
780
|
+
function pe(t, e) {
|
|
782
781
|
const r = t.entries();
|
|
783
782
|
let n = !1;
|
|
784
783
|
do {
|
|
785
|
-
const { done: i, value: [,
|
|
786
|
-
if (
|
|
784
|
+
const { done: i, value: [, o] } = r.next();
|
|
785
|
+
if (o === e)
|
|
787
786
|
return !0;
|
|
788
787
|
n = !!i;
|
|
789
788
|
} while (!n);
|
|
790
789
|
return !1;
|
|
791
790
|
}
|
|
792
|
-
class
|
|
791
|
+
class tr {
|
|
793
792
|
addSource(e, r) {
|
|
794
|
-
Q(e),
|
|
793
|
+
Q(e), Qt(r);
|
|
795
794
|
const n = this.addHandler(T.SOURCE, e, r);
|
|
796
|
-
return this.store.dispatch(
|
|
795
|
+
return this.store.dispatch(Yt(n)), n;
|
|
797
796
|
}
|
|
798
797
|
addTarget(e, r) {
|
|
799
|
-
Q(e, !0),
|
|
798
|
+
Q(e, !0), Kt(r);
|
|
800
799
|
const n = this.addHandler(T.TARGET, e, r);
|
|
801
|
-
return this.store.dispatch(
|
|
800
|
+
return this.store.dispatch(Xt(n)), n;
|
|
802
801
|
}
|
|
803
802
|
containsHandler(e) {
|
|
804
|
-
return
|
|
803
|
+
return pe(this.dragSources, e) || pe(this.dropTargets, e);
|
|
805
804
|
}
|
|
806
805
|
getSource(e, r = !1) {
|
|
807
806
|
return l(this.isSourceId(e), "Expected a valid source ID."), r && e === this.pinnedSourceId ? this.pinnedSource : this.dragSources.get(e);
|
|
@@ -816,18 +815,18 @@ class rr {
|
|
|
816
815
|
return l(this.isTargetId(e), "Expected a valid target ID."), this.types.get(e);
|
|
817
816
|
}
|
|
818
817
|
isSourceId(e) {
|
|
819
|
-
return
|
|
818
|
+
return he(e) === T.SOURCE;
|
|
820
819
|
}
|
|
821
820
|
isTargetId(e) {
|
|
822
|
-
return
|
|
821
|
+
return he(e) === T.TARGET;
|
|
823
822
|
}
|
|
824
823
|
removeSource(e) {
|
|
825
|
-
l(this.getSource(e), "Expected an existing source."), this.store.dispatch(
|
|
824
|
+
l(this.getSource(e), "Expected an existing source."), this.store.dispatch(Wt(e)), Gt(() => {
|
|
826
825
|
this.dragSources.delete(e), this.types.delete(e);
|
|
827
826
|
});
|
|
828
827
|
}
|
|
829
828
|
removeTarget(e) {
|
|
830
|
-
l(this.getTarget(e), "Expected an existing target."), this.store.dispatch(
|
|
829
|
+
l(this.getTarget(e), "Expected an existing target."), this.store.dispatch(zt(e)), this.dropTargets.delete(e), this.types.delete(e);
|
|
831
830
|
}
|
|
832
831
|
pinSource(e) {
|
|
833
832
|
const r = this.getSource(e);
|
|
@@ -837,18 +836,18 @@ class rr {
|
|
|
837
836
|
l(this.pinnedSource, "No source is pinned at the time."), this.pinnedSourceId = null, this.pinnedSource = null;
|
|
838
837
|
}
|
|
839
838
|
addHandler(e, r, n) {
|
|
840
|
-
const i =
|
|
839
|
+
const i = er(e);
|
|
841
840
|
return this.types.set(i, r), e === T.SOURCE ? this.dragSources.set(i, n) : e === T.TARGET && this.dropTargets.set(i, n), i;
|
|
842
841
|
}
|
|
843
842
|
constructor(e) {
|
|
844
843
|
this.types = /* @__PURE__ */ new Map(), this.dragSources = /* @__PURE__ */ new Map(), this.dropTargets = /* @__PURE__ */ new Map(), this.pinnedSourceId = null, this.pinnedSource = null, this.store = e;
|
|
845
844
|
}
|
|
846
845
|
}
|
|
847
|
-
const
|
|
848
|
-
function
|
|
846
|
+
const rr = (t, e) => t === e;
|
|
847
|
+
function nr(t, e) {
|
|
849
848
|
return !t && !e ? !0 : !t || !e ? !1 : t.x === e.x && t.y === e.y;
|
|
850
849
|
}
|
|
851
|
-
function
|
|
850
|
+
function ir(t, e, r = rr) {
|
|
852
851
|
if (t.length !== e.length)
|
|
853
852
|
return !1;
|
|
854
853
|
for (let n = 0; n < t.length; ++n)
|
|
@@ -863,7 +862,7 @@ function or(t = R, e) {
|
|
|
863
862
|
case ne:
|
|
864
863
|
case ie:
|
|
865
864
|
case V:
|
|
866
|
-
case
|
|
865
|
+
case oe:
|
|
867
866
|
return R;
|
|
868
867
|
case A:
|
|
869
868
|
case te:
|
|
@@ -872,13 +871,13 @@ function or(t = R, e) {
|
|
|
872
871
|
default:
|
|
873
872
|
return re;
|
|
874
873
|
}
|
|
875
|
-
const { targetIds: r = [], prevTargetIds: n = [] } = e.payload, i =
|
|
876
|
-
if (!(i.length > 0 || !
|
|
874
|
+
const { targetIds: r = [], prevTargetIds: n = [] } = e.payload, i = ut(r, n);
|
|
875
|
+
if (!(i.length > 0 || !ir(r, n)))
|
|
877
876
|
return R;
|
|
878
|
-
const
|
|
879
|
-
return
|
|
877
|
+
const s = n[n.length - 1], a = r[r.length - 1];
|
|
878
|
+
return s !== a && (s && i.push(s), a && i.push(a)), i;
|
|
880
879
|
}
|
|
881
|
-
function
|
|
880
|
+
function sr(t, e, r) {
|
|
882
881
|
return e in t ? Object.defineProperty(t, e, {
|
|
883
882
|
value: r,
|
|
884
883
|
enumerable: !0,
|
|
@@ -886,23 +885,23 @@ function ar(t, e, r) {
|
|
|
886
885
|
writable: !0
|
|
887
886
|
}) : t[e] = r, t;
|
|
888
887
|
}
|
|
889
|
-
function
|
|
888
|
+
function ar(t) {
|
|
890
889
|
for (var e = 1; e < arguments.length; e++) {
|
|
891
890
|
var r = arguments[e] != null ? arguments[e] : {}, n = Object.keys(r);
|
|
892
891
|
typeof Object.getOwnPropertySymbols == "function" && (n = n.concat(Object.getOwnPropertySymbols(r).filter(function(i) {
|
|
893
892
|
return Object.getOwnPropertyDescriptor(r, i).enumerable;
|
|
894
893
|
}))), n.forEach(function(i) {
|
|
895
|
-
|
|
894
|
+
sr(t, i, r[i]);
|
|
896
895
|
});
|
|
897
896
|
}
|
|
898
897
|
return t;
|
|
899
898
|
}
|
|
900
|
-
const
|
|
899
|
+
const me = {
|
|
901
900
|
initialSourceClientOffset: null,
|
|
902
901
|
initialClientOffset: null,
|
|
903
902
|
clientOffset: null
|
|
904
903
|
};
|
|
905
|
-
function
|
|
904
|
+
function cr(t = me, e) {
|
|
906
905
|
const { payload: r } = e;
|
|
907
906
|
switch (e.type) {
|
|
908
907
|
case ee:
|
|
@@ -913,17 +912,17 @@ function ur(t = ve, e) {
|
|
|
913
912
|
clientOffset: r.clientOffset
|
|
914
913
|
};
|
|
915
914
|
case H:
|
|
916
|
-
return
|
|
915
|
+
return nr(t.clientOffset, r.clientOffset) ? t : ar({}, t, {
|
|
917
916
|
clientOffset: r.clientOffset
|
|
918
917
|
});
|
|
919
918
|
case U:
|
|
920
919
|
case j:
|
|
921
|
-
return
|
|
920
|
+
return me;
|
|
922
921
|
default:
|
|
923
922
|
return t;
|
|
924
923
|
}
|
|
925
924
|
}
|
|
926
|
-
function
|
|
925
|
+
function ur(t, e, r) {
|
|
927
926
|
return e in t ? Object.defineProperty(t, e, {
|
|
928
927
|
value: r,
|
|
929
928
|
enumerable: !0,
|
|
@@ -937,12 +936,12 @@ function P(t) {
|
|
|
937
936
|
typeof Object.getOwnPropertySymbols == "function" && (n = n.concat(Object.getOwnPropertySymbols(r).filter(function(i) {
|
|
938
937
|
return Object.getOwnPropertyDescriptor(r, i).enumerable;
|
|
939
938
|
}))), n.forEach(function(i) {
|
|
940
|
-
|
|
939
|
+
ur(t, i, r[i]);
|
|
941
940
|
});
|
|
942
941
|
}
|
|
943
942
|
return t;
|
|
944
943
|
}
|
|
945
|
-
const
|
|
944
|
+
const lr = {
|
|
946
945
|
itemType: null,
|
|
947
946
|
item: null,
|
|
948
947
|
sourceId: null,
|
|
@@ -951,7 +950,7 @@ const dr = {
|
|
|
951
950
|
didDrop: !1,
|
|
952
951
|
isSourcePublic: null
|
|
953
952
|
};
|
|
954
|
-
function
|
|
953
|
+
function dr(t = lr, e) {
|
|
955
954
|
const { payload: r } = e;
|
|
956
955
|
switch (e.type) {
|
|
957
956
|
case A:
|
|
@@ -973,7 +972,7 @@ function gr(t = dr, e) {
|
|
|
973
972
|
});
|
|
974
973
|
case V:
|
|
975
974
|
return t.targetIds.indexOf(r.targetId) === -1 ? t : P({}, t, {
|
|
976
|
-
targetIds:
|
|
975
|
+
targetIds: ct(t.targetIds, r.targetId)
|
|
977
976
|
});
|
|
978
977
|
case j:
|
|
979
978
|
return P({}, t, {
|
|
@@ -995,22 +994,22 @@ function gr(t = dr, e) {
|
|
|
995
994
|
return t;
|
|
996
995
|
}
|
|
997
996
|
}
|
|
998
|
-
function
|
|
997
|
+
function gr(t = 0, e) {
|
|
999
998
|
switch (e.type) {
|
|
1000
999
|
case ne:
|
|
1001
1000
|
case ie:
|
|
1002
1001
|
return t + 1;
|
|
1003
|
-
case
|
|
1002
|
+
case oe:
|
|
1004
1003
|
case V:
|
|
1005
1004
|
return t - 1;
|
|
1006
1005
|
default:
|
|
1007
1006
|
return t;
|
|
1008
1007
|
}
|
|
1009
1008
|
}
|
|
1010
|
-
function
|
|
1009
|
+
function fr(t = 0) {
|
|
1011
1010
|
return t + 1;
|
|
1012
1011
|
}
|
|
1013
|
-
function
|
|
1012
|
+
function hr(t, e, r) {
|
|
1014
1013
|
return e in t ? Object.defineProperty(t, e, {
|
|
1015
1014
|
value: r,
|
|
1016
1015
|
enumerable: !0,
|
|
@@ -1018,79 +1017,79 @@ function pr(t, e, r) {
|
|
|
1018
1017
|
writable: !0
|
|
1019
1018
|
}) : t[e] = r, t;
|
|
1020
1019
|
}
|
|
1021
|
-
function
|
|
1020
|
+
function pr(t) {
|
|
1022
1021
|
for (var e = 1; e < arguments.length; e++) {
|
|
1023
1022
|
var r = arguments[e] != null ? arguments[e] : {}, n = Object.keys(r);
|
|
1024
1023
|
typeof Object.getOwnPropertySymbols == "function" && (n = n.concat(Object.getOwnPropertySymbols(r).filter(function(i) {
|
|
1025
1024
|
return Object.getOwnPropertyDescriptor(r, i).enumerable;
|
|
1026
1025
|
}))), n.forEach(function(i) {
|
|
1027
|
-
|
|
1026
|
+
hr(t, i, r[i]);
|
|
1028
1027
|
});
|
|
1029
1028
|
}
|
|
1030
1029
|
return t;
|
|
1031
1030
|
}
|
|
1032
|
-
function
|
|
1031
|
+
function mr(t = {}, e) {
|
|
1033
1032
|
return {
|
|
1034
1033
|
dirtyHandlerIds: or(t.dirtyHandlerIds, {
|
|
1035
1034
|
type: e.type,
|
|
1036
|
-
payload:
|
|
1037
|
-
prevTargetIds:
|
|
1035
|
+
payload: pr({}, e.payload, {
|
|
1036
|
+
prevTargetIds: at(t, "dragOperation.targetIds", [])
|
|
1038
1037
|
})
|
|
1039
1038
|
}),
|
|
1040
|
-
dragOffset:
|
|
1041
|
-
refCount:
|
|
1042
|
-
dragOperation:
|
|
1043
|
-
stateId:
|
|
1039
|
+
dragOffset: cr(t.dragOffset, e),
|
|
1040
|
+
refCount: gr(t.refCount, e),
|
|
1041
|
+
dragOperation: dr(t.dragOperation, e),
|
|
1042
|
+
stateId: fr(t.stateId)
|
|
1044
1043
|
};
|
|
1045
1044
|
}
|
|
1046
|
-
function
|
|
1047
|
-
const i =
|
|
1048
|
-
return
|
|
1045
|
+
function vr(t, e = void 0, r = {}, n = !1) {
|
|
1046
|
+
const i = Dr(n), o = new jt(i, new tr(i)), s = new _t(i, o), a = t(s, e, r);
|
|
1047
|
+
return s.receiveBackend(a), s;
|
|
1049
1048
|
}
|
|
1050
|
-
function
|
|
1049
|
+
function Dr(t) {
|
|
1051
1050
|
const e = typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION__;
|
|
1052
|
-
return
|
|
1051
|
+
return we(mr, t && e && e({
|
|
1053
1052
|
name: "dnd-core",
|
|
1054
1053
|
instanceId: "dnd-core"
|
|
1055
1054
|
}));
|
|
1056
1055
|
}
|
|
1057
|
-
function
|
|
1056
|
+
function yr(t, e) {
|
|
1058
1057
|
if (t == null) return {};
|
|
1059
|
-
var r =
|
|
1058
|
+
var r = Sr(t, e), n, i;
|
|
1060
1059
|
if (Object.getOwnPropertySymbols) {
|
|
1061
|
-
var
|
|
1062
|
-
for (i = 0; i <
|
|
1063
|
-
n =
|
|
1060
|
+
var o = Object.getOwnPropertySymbols(t);
|
|
1061
|
+
for (i = 0; i < o.length; i++)
|
|
1062
|
+
n = o[i], !(e.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(t, n) && (r[n] = t[n]);
|
|
1064
1063
|
}
|
|
1065
1064
|
return r;
|
|
1066
1065
|
}
|
|
1067
|
-
function
|
|
1066
|
+
function Sr(t, e) {
|
|
1068
1067
|
if (t == null) return {};
|
|
1069
|
-
var r = {}, n = Object.keys(t), i,
|
|
1070
|
-
for (
|
|
1071
|
-
i = n[
|
|
1068
|
+
var r = {}, n = Object.keys(t), i, o;
|
|
1069
|
+
for (o = 0; o < n.length; o++)
|
|
1070
|
+
i = n[o], !(e.indexOf(i) >= 0) && (r[i] = t[i]);
|
|
1072
1071
|
return r;
|
|
1073
1072
|
}
|
|
1074
|
-
let
|
|
1073
|
+
let ve = 0;
|
|
1075
1074
|
const L = /* @__PURE__ */ Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");
|
|
1076
|
-
var
|
|
1077
|
-
var { children: r } = e, n =
|
|
1075
|
+
var Or = /* @__PURE__ */ Ge(function(e) {
|
|
1076
|
+
var { children: r } = e, n = yr(e, [
|
|
1078
1077
|
"children"
|
|
1079
1078
|
]);
|
|
1080
|
-
const [i,
|
|
1079
|
+
const [i, o] = Tr(n);
|
|
1081
1080
|
return k(() => {
|
|
1082
|
-
if (
|
|
1083
|
-
const
|
|
1084
|
-
return ++
|
|
1085
|
-
--
|
|
1081
|
+
if (o) {
|
|
1082
|
+
const s = Me();
|
|
1083
|
+
return ++ve, () => {
|
|
1084
|
+
--ve === 0 && (s[L] = null);
|
|
1086
1085
|
};
|
|
1087
1086
|
}
|
|
1088
|
-
}, []), /* @__PURE__ */ m(
|
|
1087
|
+
}, []), /* @__PURE__ */ m(Ie.Provider, {
|
|
1089
1088
|
value: i,
|
|
1090
1089
|
children: r
|
|
1091
1090
|
});
|
|
1092
1091
|
});
|
|
1093
|
-
function
|
|
1092
|
+
function Tr(t) {
|
|
1094
1093
|
if ("manager" in t)
|
|
1095
1094
|
return [
|
|
1096
1095
|
{
|
|
@@ -1098,28 +1097,28 @@ function br(t) {
|
|
|
1098
1097
|
},
|
|
1099
1098
|
!1
|
|
1100
1099
|
];
|
|
1101
|
-
const e =
|
|
1100
|
+
const e = br(t.backend, t.context, t.options, t.debugMode), r = !t.context;
|
|
1102
1101
|
return [
|
|
1103
1102
|
e,
|
|
1104
1103
|
r
|
|
1105
1104
|
];
|
|
1106
1105
|
}
|
|
1107
|
-
function
|
|
1106
|
+
function br(t, e = Me(), r, n) {
|
|
1108
1107
|
const i = e;
|
|
1109
1108
|
return i[L] || (i[L] = {
|
|
1110
|
-
dragDropManager:
|
|
1109
|
+
dragDropManager: vr(t, e, r, n)
|
|
1111
1110
|
}), i[L];
|
|
1112
1111
|
}
|
|
1113
|
-
function
|
|
1112
|
+
function Me() {
|
|
1114
1113
|
return typeof global < "u" ? global : window;
|
|
1115
1114
|
}
|
|
1116
|
-
var q,
|
|
1117
|
-
function
|
|
1118
|
-
return
|
|
1115
|
+
var q, De;
|
|
1116
|
+
function Er() {
|
|
1117
|
+
return De || (De = 1, q = function t(e, r) {
|
|
1119
1118
|
if (e === r) return !0;
|
|
1120
1119
|
if (e && r && typeof e == "object" && typeof r == "object") {
|
|
1121
1120
|
if (e.constructor !== r.constructor) return !1;
|
|
1122
|
-
var n, i,
|
|
1121
|
+
var n, i, o;
|
|
1123
1122
|
if (Array.isArray(e)) {
|
|
1124
1123
|
if (n = e.length, n != r.length) return !1;
|
|
1125
1124
|
for (i = n; i-- !== 0; )
|
|
@@ -1129,44 +1128,44 @@ function Ir() {
|
|
|
1129
1128
|
if (e.constructor === RegExp) return e.source === r.source && e.flags === r.flags;
|
|
1130
1129
|
if (e.valueOf !== Object.prototype.valueOf) return e.valueOf() === r.valueOf();
|
|
1131
1130
|
if (e.toString !== Object.prototype.toString) return e.toString() === r.toString();
|
|
1132
|
-
if (
|
|
1131
|
+
if (o = Object.keys(e), n = o.length, n !== Object.keys(r).length) return !1;
|
|
1133
1132
|
for (i = n; i-- !== 0; )
|
|
1134
|
-
if (!Object.prototype.hasOwnProperty.call(r,
|
|
1133
|
+
if (!Object.prototype.hasOwnProperty.call(r, o[i])) return !1;
|
|
1135
1134
|
for (i = n; i-- !== 0; ) {
|
|
1136
|
-
var
|
|
1137
|
-
if (!t(e[
|
|
1135
|
+
var s = o[i];
|
|
1136
|
+
if (!t(e[s], r[s])) return !1;
|
|
1138
1137
|
}
|
|
1139
1138
|
return !0;
|
|
1140
1139
|
}
|
|
1141
1140
|
return e !== e && r !== r;
|
|
1142
1141
|
}), q;
|
|
1143
1142
|
}
|
|
1144
|
-
var
|
|
1145
|
-
const
|
|
1146
|
-
function
|
|
1147
|
-
const [n, i] =
|
|
1143
|
+
var Ir = Er();
|
|
1144
|
+
const wr = /* @__PURE__ */ et(Ir), C = typeof window < "u" ? Ye : k;
|
|
1145
|
+
function Cr(t, e, r) {
|
|
1146
|
+
const [n, i] = be(
|
|
1148
1147
|
() => e(t)
|
|
1149
|
-
),
|
|
1150
|
-
const
|
|
1151
|
-
|
|
1148
|
+
), o = Ee(() => {
|
|
1149
|
+
const s = e(t);
|
|
1150
|
+
wr(n, s) || (i(s), r && r());
|
|
1152
1151
|
}, [
|
|
1153
1152
|
n,
|
|
1154
1153
|
t,
|
|
1155
1154
|
r
|
|
1156
1155
|
]);
|
|
1157
|
-
return C(
|
|
1156
|
+
return C(o), [
|
|
1158
1157
|
n,
|
|
1159
|
-
|
|
1158
|
+
o
|
|
1160
1159
|
];
|
|
1161
1160
|
}
|
|
1162
|
-
function
|
|
1163
|
-
const [n, i] =
|
|
1161
|
+
function Nr(t, e, r) {
|
|
1162
|
+
const [n, i] = Cr(t, e, r);
|
|
1164
1163
|
return C(function() {
|
|
1165
|
-
const
|
|
1166
|
-
if (
|
|
1164
|
+
const s = t.getHandlerId();
|
|
1165
|
+
if (s != null)
|
|
1167
1166
|
return t.subscribeToStateChange(i, {
|
|
1168
1167
|
handlerIds: [
|
|
1169
|
-
|
|
1168
|
+
s
|
|
1170
1169
|
]
|
|
1171
1170
|
});
|
|
1172
1171
|
}, [
|
|
@@ -1174,18 +1173,18 @@ function Pr(t, e, r) {
|
|
|
1174
1173
|
i
|
|
1175
1174
|
]), n;
|
|
1176
1175
|
}
|
|
1177
|
-
function
|
|
1178
|
-
return
|
|
1176
|
+
function _e(t, e, r) {
|
|
1177
|
+
return Nr(
|
|
1179
1178
|
e,
|
|
1180
1179
|
t || (() => ({})),
|
|
1181
1180
|
() => r.reconnect()
|
|
1182
1181
|
);
|
|
1183
1182
|
}
|
|
1184
|
-
function
|
|
1183
|
+
function Le(t, e) {
|
|
1185
1184
|
const r = [];
|
|
1186
1185
|
return typeof t != "function" && r.push(t), b(() => typeof t == "function" ? t() : t, r);
|
|
1187
1186
|
}
|
|
1188
|
-
function
|
|
1187
|
+
function Pr(t) {
|
|
1189
1188
|
return b(
|
|
1190
1189
|
() => t.hooks.dragSource(),
|
|
1191
1190
|
[
|
|
@@ -1193,7 +1192,7 @@ function xr(t) {
|
|
|
1193
1192
|
]
|
|
1194
1193
|
);
|
|
1195
1194
|
}
|
|
1196
|
-
function
|
|
1195
|
+
function xr(t) {
|
|
1197
1196
|
return b(
|
|
1198
1197
|
() => t.hooks.dragPreview(),
|
|
1199
1198
|
[
|
|
@@ -1202,7 +1201,7 @@ function Rr(t) {
|
|
|
1202
1201
|
);
|
|
1203
1202
|
}
|
|
1204
1203
|
let $ = !1, G = !1;
|
|
1205
|
-
class
|
|
1204
|
+
class Rr {
|
|
1206
1205
|
receiveHandlerId(e) {
|
|
1207
1206
|
this.sourceId = e;
|
|
1208
1207
|
}
|
|
@@ -1286,7 +1285,7 @@ class Mr {
|
|
|
1286
1285
|
}
|
|
1287
1286
|
}
|
|
1288
1287
|
let Y = !1;
|
|
1289
|
-
class
|
|
1288
|
+
class Mr {
|
|
1290
1289
|
receiveHandlerId(e) {
|
|
1291
1290
|
this.targetId = e;
|
|
1292
1291
|
}
|
|
@@ -1340,14 +1339,14 @@ class _r {
|
|
|
1340
1339
|
this.targetId = null, this.internalMonitor = e.getMonitor();
|
|
1341
1340
|
}
|
|
1342
1341
|
}
|
|
1343
|
-
function
|
|
1342
|
+
function _r(t, e, r) {
|
|
1344
1343
|
const n = r.getRegistry(), i = n.addTarget(t, e);
|
|
1345
1344
|
return [
|
|
1346
1345
|
i,
|
|
1347
1346
|
() => n.removeTarget(i)
|
|
1348
1347
|
];
|
|
1349
1348
|
}
|
|
1350
|
-
function
|
|
1349
|
+
function Lr(t, e, r) {
|
|
1351
1350
|
const n = r.getRegistry(), i = n.addSource(t, e);
|
|
1352
1351
|
return [
|
|
1353
1352
|
i,
|
|
@@ -1362,12 +1361,12 @@ function K(t, e, r, n) {
|
|
|
1362
1361
|
return !0;
|
|
1363
1362
|
if (typeof t != "object" || !t || typeof e != "object" || !e)
|
|
1364
1363
|
return !1;
|
|
1365
|
-
const
|
|
1366
|
-
if (
|
|
1364
|
+
const o = Object.keys(t), s = Object.keys(e);
|
|
1365
|
+
if (o.length !== s.length)
|
|
1367
1366
|
return !1;
|
|
1368
1367
|
const a = Object.prototype.hasOwnProperty.bind(e);
|
|
1369
|
-
for (let c = 0; c <
|
|
1370
|
-
const d =
|
|
1368
|
+
for (let c = 0; c < o.length; c++) {
|
|
1369
|
+
const d = o[c];
|
|
1371
1370
|
if (!a(d))
|
|
1372
1371
|
return !1;
|
|
1373
1372
|
const f = t[d], p = e[d];
|
|
@@ -1382,48 +1381,48 @@ function J(t) {
|
|
|
1382
1381
|
t !== null && typeof t == "object" && Object.prototype.hasOwnProperty.call(t, "current")
|
|
1383
1382
|
);
|
|
1384
1383
|
}
|
|
1385
|
-
function
|
|
1384
|
+
function kr(t) {
|
|
1386
1385
|
if (typeof t.type == "string")
|
|
1387
1386
|
return;
|
|
1388
1387
|
const e = t.type.displayName || t.type.name || "the component";
|
|
1389
1388
|
throw new Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${e} into a <div>, or turn it into a drag source or a drop target itself.`);
|
|
1390
1389
|
}
|
|
1391
|
-
function
|
|
1390
|
+
function Ar(t) {
|
|
1392
1391
|
return (e = null, r = null) => {
|
|
1393
|
-
if (!
|
|
1394
|
-
const
|
|
1395
|
-
return t(
|
|
1392
|
+
if (!Xe(e)) {
|
|
1393
|
+
const o = e;
|
|
1394
|
+
return t(o, r), o;
|
|
1396
1395
|
}
|
|
1397
1396
|
const n = e;
|
|
1398
|
-
return
|
|
1397
|
+
return kr(n), Hr(n, r ? (o) => t(o, r) : t);
|
|
1399
1398
|
};
|
|
1400
1399
|
}
|
|
1401
|
-
function
|
|
1400
|
+
function ke(t) {
|
|
1402
1401
|
const e = {};
|
|
1403
1402
|
return Object.keys(t).forEach((r) => {
|
|
1404
1403
|
const n = t[r];
|
|
1405
1404
|
if (r.endsWith("Ref"))
|
|
1406
1405
|
e[r] = t[r];
|
|
1407
1406
|
else {
|
|
1408
|
-
const i =
|
|
1407
|
+
const i = Ar(n);
|
|
1409
1408
|
e[r] = () => i;
|
|
1410
1409
|
}
|
|
1411
1410
|
}), e;
|
|
1412
1411
|
}
|
|
1413
|
-
function
|
|
1412
|
+
function ye(t, e) {
|
|
1414
1413
|
typeof t == "function" ? t(e) : t.current = e;
|
|
1415
1414
|
}
|
|
1416
|
-
function
|
|
1415
|
+
function Hr(t, e) {
|
|
1417
1416
|
const r = t.ref;
|
|
1418
1417
|
return l(typeof r != "string", "Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"), r ? ae(t, {
|
|
1419
1418
|
ref: (n) => {
|
|
1420
|
-
|
|
1419
|
+
ye(r, n), ye(e, n);
|
|
1421
1420
|
}
|
|
1422
1421
|
}) : ae(t, {
|
|
1423
1422
|
ref: e
|
|
1424
1423
|
});
|
|
1425
1424
|
}
|
|
1426
|
-
class
|
|
1425
|
+
class jr {
|
|
1427
1426
|
receiveHandlerId(e) {
|
|
1428
1427
|
this.handlerId !== e && (this.handlerId = e, this.reconnect());
|
|
1429
1428
|
}
|
|
@@ -1494,7 +1493,7 @@ class Ur {
|
|
|
1494
1493
|
this.dragPreviewNode = null, this.dragPreviewRef = null;
|
|
1495
1494
|
}
|
|
1496
1495
|
constructor(e) {
|
|
1497
|
-
this.hooks =
|
|
1496
|
+
this.hooks = ke({
|
|
1498
1497
|
dragSource: (r, n) => {
|
|
1499
1498
|
this.clearDragSource(), this.dragSourceOptions = n || null, J(r) ? this.dragSourceRef = r : this.dragSourceNode = r, this.reconnectDragSource();
|
|
1500
1499
|
},
|
|
@@ -1504,7 +1503,7 @@ class Ur {
|
|
|
1504
1503
|
}), this.handlerId = null, this.dragSourceRef = null, this.dragSourceOptionsInternal = null, this.dragPreviewRef = null, this.dragPreviewOptionsInternal = null, this.lastConnectedHandlerId = null, this.lastConnectedDragSource = null, this.lastConnectedDragSourceOptions = null, this.lastConnectedDragPreview = null, this.lastConnectedDragPreviewOptions = null, this.backend = e;
|
|
1505
1504
|
}
|
|
1506
1505
|
}
|
|
1507
|
-
class
|
|
1506
|
+
class Ur {
|
|
1508
1507
|
get connectTarget() {
|
|
1509
1508
|
return this.dropTarget;
|
|
1510
1509
|
}
|
|
@@ -1548,7 +1547,7 @@ class Vr {
|
|
|
1548
1547
|
this.dropTargetRef = null, this.dropTargetNode = null;
|
|
1549
1548
|
}
|
|
1550
1549
|
constructor(e) {
|
|
1551
|
-
this.hooks =
|
|
1550
|
+
this.hooks = ke({
|
|
1552
1551
|
dropTarget: (r, n) => {
|
|
1553
1552
|
this.clearDropTarget(), this.dropTargetOptions = n, J(r) ? this.dropTargetRef = r : this.dropTargetNode = r, this.reconnect();
|
|
1554
1553
|
}
|
|
@@ -1556,12 +1555,12 @@ class Vr {
|
|
|
1556
1555
|
}
|
|
1557
1556
|
}
|
|
1558
1557
|
function x() {
|
|
1559
|
-
const { dragDropManager: t } =
|
|
1558
|
+
const { dragDropManager: t } = We(Ie);
|
|
1560
1559
|
return l(t != null, "Expected drag drop context"), t;
|
|
1561
1560
|
}
|
|
1562
|
-
function
|
|
1561
|
+
function Vr(t, e) {
|
|
1563
1562
|
const r = x(), n = b(
|
|
1564
|
-
() => new
|
|
1563
|
+
() => new jr(r.getBackend()),
|
|
1565
1564
|
[
|
|
1566
1565
|
r
|
|
1567
1566
|
]
|
|
@@ -1574,16 +1573,16 @@ function Fr(t, e) {
|
|
|
1574
1573
|
e
|
|
1575
1574
|
]), n;
|
|
1576
1575
|
}
|
|
1577
|
-
function
|
|
1576
|
+
function Fr() {
|
|
1578
1577
|
const t = x();
|
|
1579
1578
|
return b(
|
|
1580
|
-
() => new
|
|
1579
|
+
() => new Rr(t),
|
|
1581
1580
|
[
|
|
1582
1581
|
t
|
|
1583
1582
|
]
|
|
1584
1583
|
);
|
|
1585
1584
|
}
|
|
1586
|
-
class
|
|
1585
|
+
class Br {
|
|
1587
1586
|
beginDrag() {
|
|
1588
1587
|
const e = this.spec, r = this.monitor;
|
|
1589
1588
|
let n = null;
|
|
@@ -1594,8 +1593,8 @@ class qr {
|
|
|
1594
1593
|
return typeof e.canDrag == "boolean" ? e.canDrag : typeof e.canDrag == "function" ? e.canDrag(r) : !0;
|
|
1595
1594
|
}
|
|
1596
1595
|
isDragging(e, r) {
|
|
1597
|
-
const n = this.spec, i = this.monitor, { isDragging:
|
|
1598
|
-
return
|
|
1596
|
+
const n = this.spec, i = this.monitor, { isDragging: o } = n;
|
|
1597
|
+
return o ? o(i) : r === e.getSourceId();
|
|
1599
1598
|
}
|
|
1600
1599
|
endDrag() {
|
|
1601
1600
|
const e = this.spec, r = this.monitor, n = this.connector, { end: i } = e;
|
|
@@ -1605,9 +1604,9 @@ class qr {
|
|
|
1605
1604
|
this.spec = e, this.monitor = r, this.connector = n;
|
|
1606
1605
|
}
|
|
1607
1606
|
}
|
|
1608
|
-
function
|
|
1607
|
+
function qr(t, e, r) {
|
|
1609
1608
|
const n = b(
|
|
1610
|
-
() => new
|
|
1609
|
+
() => new Br(t, e, r),
|
|
1611
1610
|
[
|
|
1612
1611
|
e,
|
|
1613
1612
|
r
|
|
@@ -1619,7 +1618,7 @@ function $r(t, e, r) {
|
|
|
1619
1618
|
t
|
|
1620
1619
|
]), n;
|
|
1621
1620
|
}
|
|
1622
|
-
function
|
|
1621
|
+
function $r(t) {
|
|
1623
1622
|
return b(() => {
|
|
1624
1623
|
const e = t.type;
|
|
1625
1624
|
return l(e != null, "spec.type must be defined"), e;
|
|
@@ -1627,11 +1626,11 @@ function Gr(t) {
|
|
|
1627
1626
|
t
|
|
1628
1627
|
]);
|
|
1629
1628
|
}
|
|
1630
|
-
function
|
|
1631
|
-
const n = x(), i =
|
|
1629
|
+
function Gr(t, e, r) {
|
|
1630
|
+
const n = x(), i = qr(t, e, r), o = $r(t);
|
|
1632
1631
|
C(function() {
|
|
1633
|
-
if (
|
|
1634
|
-
const [a, c] =
|
|
1632
|
+
if (o != null) {
|
|
1633
|
+
const [a, c] = Lr(o, i, n);
|
|
1635
1634
|
return e.receiveHandlerId(a), r.receiveHandlerId(a), c;
|
|
1636
1635
|
}
|
|
1637
1636
|
}, [
|
|
@@ -1639,20 +1638,20 @@ function Yr(t, e, r) {
|
|
|
1639
1638
|
e,
|
|
1640
1639
|
r,
|
|
1641
1640
|
i,
|
|
1642
|
-
|
|
1641
|
+
o
|
|
1643
1642
|
]);
|
|
1644
1643
|
}
|
|
1645
|
-
function
|
|
1646
|
-
const r =
|
|
1644
|
+
function Yr(t, e) {
|
|
1645
|
+
const r = Le(t);
|
|
1647
1646
|
l(!r.begin, "useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");
|
|
1648
|
-
const n =
|
|
1649
|
-
return
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1647
|
+
const n = Fr(), i = Vr(r.options, r.previewOptions);
|
|
1648
|
+
return Gr(r, n, i), [
|
|
1649
|
+
_e(r.collect, n, i),
|
|
1650
|
+
Pr(i),
|
|
1651
|
+
xr(i)
|
|
1653
1652
|
];
|
|
1654
1653
|
}
|
|
1655
|
-
function
|
|
1654
|
+
function Xr(t) {
|
|
1656
1655
|
return b(
|
|
1657
1656
|
() => t.hooks.dropTarget(),
|
|
1658
1657
|
[
|
|
@@ -1660,9 +1659,9 @@ function Wr(t) {
|
|
|
1660
1659
|
]
|
|
1661
1660
|
);
|
|
1662
1661
|
}
|
|
1663
|
-
function
|
|
1662
|
+
function Wr(t) {
|
|
1664
1663
|
const e = x(), r = b(
|
|
1665
|
-
() => new
|
|
1664
|
+
() => new Ur(e.getBackend()),
|
|
1666
1665
|
[
|
|
1667
1666
|
e
|
|
1668
1667
|
]
|
|
@@ -1671,16 +1670,16 @@ function zr(t) {
|
|
|
1671
1670
|
t
|
|
1672
1671
|
]), r;
|
|
1673
1672
|
}
|
|
1674
|
-
function
|
|
1673
|
+
function zr() {
|
|
1675
1674
|
const t = x();
|
|
1676
1675
|
return b(
|
|
1677
|
-
() => new
|
|
1676
|
+
() => new Mr(t),
|
|
1678
1677
|
[
|
|
1679
1678
|
t
|
|
1680
1679
|
]
|
|
1681
1680
|
);
|
|
1682
1681
|
}
|
|
1683
|
-
function
|
|
1682
|
+
function Qr(t) {
|
|
1684
1683
|
const { accept: e } = t;
|
|
1685
1684
|
return b(() => (l(t.accept != null, "accept must be defined"), Array.isArray(e) ? e : [
|
|
1686
1685
|
e
|
|
@@ -1688,7 +1687,7 @@ function Kr(t) {
|
|
|
1688
1687
|
e
|
|
1689
1688
|
]);
|
|
1690
1689
|
}
|
|
1691
|
-
class
|
|
1690
|
+
class Kr {
|
|
1692
1691
|
canDrop() {
|
|
1693
1692
|
const e = this.spec, r = this.monitor;
|
|
1694
1693
|
return e.canDrop ? e.canDrop(r.getItem(), r) : !0;
|
|
@@ -1706,9 +1705,9 @@ class Jr {
|
|
|
1706
1705
|
this.spec = e, this.monitor = r;
|
|
1707
1706
|
}
|
|
1708
1707
|
}
|
|
1709
|
-
function
|
|
1708
|
+
function Jr(t, e) {
|
|
1710
1709
|
const r = b(
|
|
1711
|
-
() => new
|
|
1710
|
+
() => new Kr(t, e),
|
|
1712
1711
|
[
|
|
1713
1712
|
e
|
|
1714
1713
|
]
|
|
@@ -1719,55 +1718,55 @@ function Zr(t, e) {
|
|
|
1719
1718
|
t
|
|
1720
1719
|
]), r;
|
|
1721
1720
|
}
|
|
1722
|
-
function
|
|
1723
|
-
const n = x(), i =
|
|
1721
|
+
function Zr(t, e, r) {
|
|
1722
|
+
const n = x(), i = Jr(t, e), o = Qr(t);
|
|
1724
1723
|
C(function() {
|
|
1725
|
-
const [a, c] =
|
|
1724
|
+
const [a, c] = _r(o, i, n);
|
|
1726
1725
|
return e.receiveHandlerId(a), r.receiveHandlerId(a), c;
|
|
1727
1726
|
}, [
|
|
1728
1727
|
n,
|
|
1729
1728
|
e,
|
|
1730
1729
|
i,
|
|
1731
1730
|
r,
|
|
1732
|
-
|
|
1733
|
-
(
|
|
1731
|
+
o.map(
|
|
1732
|
+
(s) => s.toString()
|
|
1734
1733
|
).join("|")
|
|
1735
1734
|
]);
|
|
1736
1735
|
}
|
|
1737
|
-
function
|
|
1738
|
-
const r =
|
|
1739
|
-
return
|
|
1740
|
-
|
|
1741
|
-
|
|
1736
|
+
function en(t, e) {
|
|
1737
|
+
const r = Le(t), n = zr(), i = Wr(r.options);
|
|
1738
|
+
return Zr(r, n, i), [
|
|
1739
|
+
_e(r.collect, n, i),
|
|
1740
|
+
Xr(i)
|
|
1742
1741
|
];
|
|
1743
1742
|
}
|
|
1744
|
-
function
|
|
1743
|
+
function Ae(t) {
|
|
1745
1744
|
let e = null;
|
|
1746
1745
|
return () => (e == null && (e = t()), e);
|
|
1747
1746
|
}
|
|
1748
|
-
function
|
|
1747
|
+
function tn(t, e) {
|
|
1749
1748
|
return t.filter(
|
|
1750
1749
|
(r) => r !== e
|
|
1751
1750
|
);
|
|
1752
1751
|
}
|
|
1753
|
-
function
|
|
1754
|
-
const r = /* @__PURE__ */ new Set(), n = (
|
|
1752
|
+
function rn(t, e) {
|
|
1753
|
+
const r = /* @__PURE__ */ new Set(), n = (o) => r.add(o);
|
|
1755
1754
|
t.forEach(n), e.forEach(n);
|
|
1756
1755
|
const i = [];
|
|
1757
1756
|
return r.forEach(
|
|
1758
|
-
(
|
|
1757
|
+
(o) => i.push(o)
|
|
1759
1758
|
), i;
|
|
1760
1759
|
}
|
|
1761
|
-
class
|
|
1760
|
+
class nn {
|
|
1762
1761
|
enter(e) {
|
|
1763
1762
|
const r = this.entered.length, n = (i) => this.isNodeInDocument(i) && (!i.contains || i.contains(e));
|
|
1764
|
-
return this.entered =
|
|
1763
|
+
return this.entered = rn(this.entered.filter(n), [
|
|
1765
1764
|
e
|
|
1766
1765
|
]), r === 0 && this.entered.length > 0;
|
|
1767
1766
|
}
|
|
1768
1767
|
leave(e) {
|
|
1769
1768
|
const r = this.entered.length;
|
|
1770
|
-
return this.entered =
|
|
1769
|
+
return this.entered = tn(this.entered.filter(this.isNodeInDocument), e), r > 0 && this.entered.length === 0;
|
|
1771
1770
|
}
|
|
1772
1771
|
reset() {
|
|
1773
1772
|
this.entered = [];
|
|
@@ -1816,22 +1815,22 @@ class on {
|
|
|
1816
1815
|
this.config = e, this.item = {}, this.initializeExposedProperties();
|
|
1817
1816
|
}
|
|
1818
1817
|
}
|
|
1819
|
-
const
|
|
1818
|
+
const He = "__NATIVE_FILE__", je = "__NATIVE_URL__", Ue = "__NATIVE_TEXT__", Ve = "__NATIVE_HTML__", Se = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1820
1819
|
__proto__: null,
|
|
1821
|
-
FILE:
|
|
1822
|
-
HTML:
|
|
1823
|
-
TEXT:
|
|
1824
|
-
URL:
|
|
1820
|
+
FILE: He,
|
|
1821
|
+
HTML: Ve,
|
|
1822
|
+
TEXT: Ue,
|
|
1823
|
+
URL: je
|
|
1825
1824
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1826
1825
|
function X(t, e, r) {
|
|
1827
1826
|
const n = e.reduce(
|
|
1828
|
-
(i,
|
|
1827
|
+
(i, o) => i || t.getData(o),
|
|
1829
1828
|
""
|
|
1830
1829
|
);
|
|
1831
1830
|
return n ?? r;
|
|
1832
1831
|
}
|
|
1833
1832
|
const Z = {
|
|
1834
|
-
[
|
|
1833
|
+
[He]: {
|
|
1835
1834
|
exposeProperties: {
|
|
1836
1835
|
files: (t) => Array.prototype.slice.call(t.files),
|
|
1837
1836
|
items: (t) => t.items,
|
|
@@ -1841,7 +1840,7 @@ const Z = {
|
|
|
1841
1840
|
"Files"
|
|
1842
1841
|
]
|
|
1843
1842
|
},
|
|
1844
|
-
[
|
|
1843
|
+
[Ve]: {
|
|
1845
1844
|
exposeProperties: {
|
|
1846
1845
|
html: (t, e) => X(t, e, ""),
|
|
1847
1846
|
dataTransfer: (t) => t
|
|
@@ -1851,7 +1850,7 @@ const Z = {
|
|
|
1851
1850
|
"text/html"
|
|
1852
1851
|
]
|
|
1853
1852
|
},
|
|
1854
|
-
[
|
|
1853
|
+
[je]: {
|
|
1855
1854
|
exposeProperties: {
|
|
1856
1855
|
urls: (t, e) => X(t, e, "").split(`
|
|
1857
1856
|
`),
|
|
@@ -1862,7 +1861,7 @@ const Z = {
|
|
|
1862
1861
|
"text/uri-list"
|
|
1863
1862
|
]
|
|
1864
1863
|
},
|
|
1865
|
-
[
|
|
1864
|
+
[Ue]: {
|
|
1866
1865
|
exposeProperties: {
|
|
1867
1866
|
text: (t, e) => X(t, e, ""),
|
|
1868
1867
|
dataTransfer: (t) => t
|
|
@@ -1873,7 +1872,7 @@ const Z = {
|
|
|
1873
1872
|
]
|
|
1874
1873
|
}
|
|
1875
1874
|
};
|
|
1876
|
-
function
|
|
1875
|
+
function sn(t, e) {
|
|
1877
1876
|
const r = Z[t];
|
|
1878
1877
|
if (!r)
|
|
1879
1878
|
throw new Error(`native type ${t} has no configuration`);
|
|
@@ -1891,18 +1890,18 @@ function W(t) {
|
|
|
1891
1890
|
) : !1;
|
|
1892
1891
|
})[0] || null;
|
|
1893
1892
|
}
|
|
1894
|
-
const
|
|
1893
|
+
const an = Ae(
|
|
1895
1894
|
() => /firefox/i.test(navigator.userAgent)
|
|
1896
|
-
),
|
|
1895
|
+
), Fe = Ae(
|
|
1897
1896
|
() => !!window.safari
|
|
1898
1897
|
);
|
|
1899
|
-
class
|
|
1898
|
+
class Oe {
|
|
1900
1899
|
interpolate(e) {
|
|
1901
|
-
const { xs: r, ys: n, c1s: i, c2s:
|
|
1900
|
+
const { xs: r, ys: n, c1s: i, c2s: o, c3s: s } = this;
|
|
1902
1901
|
let a = r.length - 1;
|
|
1903
1902
|
if (e === r[a])
|
|
1904
1903
|
return n[a];
|
|
1905
|
-
let c = 0, d =
|
|
1904
|
+
let c = 0, d = s.length - 1, f;
|
|
1906
1905
|
for (; c <= d; ) {
|
|
1907
1906
|
f = Math.floor(0.5 * (c + d));
|
|
1908
1907
|
const u = r[f];
|
|
@@ -1915,7 +1914,7 @@ class Te {
|
|
|
1915
1914
|
}
|
|
1916
1915
|
a = Math.max(0, d);
|
|
1917
1916
|
const p = e - r[a], g = p * p;
|
|
1918
|
-
return n[a] + i[a] * p +
|
|
1917
|
+
return n[a] + i[a] * p + o[a] * g + s[a] * p * g;
|
|
1919
1918
|
}
|
|
1920
1919
|
constructor(e, r) {
|
|
1921
1920
|
const { length: n } = e, i = [];
|
|
@@ -1924,37 +1923,37 @@ class Te {
|
|
|
1924
1923
|
i.sort(
|
|
1925
1924
|
(u, D) => e[u] < e[D] ? -1 : 1
|
|
1926
1925
|
);
|
|
1927
|
-
const
|
|
1926
|
+
const o = [], s = [];
|
|
1928
1927
|
let a, c;
|
|
1929
1928
|
for (let u = 0; u < n - 1; u++)
|
|
1930
|
-
a = e[u + 1] - e[u], c = r[u + 1] - r[u],
|
|
1929
|
+
a = e[u + 1] - e[u], c = r[u + 1] - r[u], o.push(a), s.push(c / a);
|
|
1931
1930
|
const d = [
|
|
1932
|
-
|
|
1931
|
+
s[0]
|
|
1933
1932
|
];
|
|
1934
|
-
for (let u = 0; u <
|
|
1935
|
-
const D =
|
|
1933
|
+
for (let u = 0; u < o.length - 1; u++) {
|
|
1934
|
+
const D = s[u], h = s[u + 1];
|
|
1936
1935
|
if (D * h <= 0)
|
|
1937
1936
|
d.push(0);
|
|
1938
1937
|
else {
|
|
1939
|
-
a =
|
|
1940
|
-
const v =
|
|
1938
|
+
a = o[u];
|
|
1939
|
+
const v = o[u + 1], y = a + v;
|
|
1941
1940
|
d.push(3 * y / ((y + v) / D + (y + a) / h));
|
|
1942
1941
|
}
|
|
1943
1942
|
}
|
|
1944
|
-
d.push(
|
|
1943
|
+
d.push(s[s.length - 1]);
|
|
1945
1944
|
const f = [], p = [];
|
|
1946
1945
|
let g;
|
|
1947
1946
|
for (let u = 0; u < d.length - 1; u++) {
|
|
1948
|
-
g =
|
|
1949
|
-
const D = d[u], h = 1 /
|
|
1947
|
+
g = s[u];
|
|
1948
|
+
const D = d[u], h = 1 / o[u], v = D + d[u + 1] - g - g;
|
|
1950
1949
|
f.push((g - D - v) * h), p.push(v * h * h);
|
|
1951
1950
|
}
|
|
1952
1951
|
this.xs = e, this.ys = r, this.c1s = d, this.c2s = f, this.c3s = p;
|
|
1953
1952
|
}
|
|
1954
1953
|
}
|
|
1955
|
-
const
|
|
1956
|
-
function
|
|
1957
|
-
const e = t.nodeType ===
|
|
1954
|
+
const cn = 1;
|
|
1955
|
+
function Be(t) {
|
|
1956
|
+
const e = t.nodeType === cn ? t : t.parentElement;
|
|
1958
1957
|
if (!e)
|
|
1959
1958
|
return null;
|
|
1960
1959
|
const { top: r, left: n } = e.getBoundingClientRect();
|
|
@@ -1969,23 +1968,23 @@ function M(t) {
|
|
|
1969
1968
|
y: t.clientY
|
|
1970
1969
|
};
|
|
1971
1970
|
}
|
|
1972
|
-
function
|
|
1971
|
+
function un(t) {
|
|
1973
1972
|
var e;
|
|
1974
|
-
return t.nodeName === "IMG" && (
|
|
1973
|
+
return t.nodeName === "IMG" && (an() || !(!((e = document.documentElement) === null || e === void 0) && e.contains(t)));
|
|
1975
1974
|
}
|
|
1976
|
-
function
|
|
1977
|
-
let i = t ? e.width : r,
|
|
1978
|
-
return
|
|
1975
|
+
function ln(t, e, r, n) {
|
|
1976
|
+
let i = t ? e.width : r, o = t ? e.height : n;
|
|
1977
|
+
return Fe() && t && (o /= window.devicePixelRatio, i /= window.devicePixelRatio), {
|
|
1979
1978
|
dragPreviewWidth: i,
|
|
1980
|
-
dragPreviewHeight:
|
|
1979
|
+
dragPreviewHeight: o
|
|
1981
1980
|
};
|
|
1982
1981
|
}
|
|
1983
|
-
function
|
|
1984
|
-
const
|
|
1982
|
+
function dn(t, e, r, n, i) {
|
|
1983
|
+
const o = un(e), a = Be(o ? t : e), c = {
|
|
1985
1984
|
x: r.x - a.x,
|
|
1986
1985
|
y: r.y - a.y
|
|
1987
|
-
}, { offsetWidth: d, offsetHeight: f } = t, { anchorX: p, anchorY: g } = n, { dragPreviewWidth: u, dragPreviewHeight: D } =
|
|
1988
|
-
let
|
|
1986
|
+
}, { offsetWidth: d, offsetHeight: f } = t, { anchorX: p, anchorY: g } = n, { dragPreviewWidth: u, dragPreviewHeight: D } = ln(o, e, d, f), h = () => {
|
|
1987
|
+
let se = new Oe([
|
|
1989
1988
|
0,
|
|
1990
1989
|
0.5,
|
|
1991
1990
|
1
|
|
@@ -1997,8 +1996,8 @@ function gn(t, e, r, n, i) {
|
|
|
1997
1996
|
// Dock to the bottom
|
|
1998
1997
|
c.y + D - f
|
|
1999
1998
|
]).interpolate(g);
|
|
2000
|
-
return
|
|
2001
|
-
}, v = () => new
|
|
1999
|
+
return Fe() && o && (se += (window.devicePixelRatio - 1) * D), se;
|
|
2000
|
+
}, v = () => new Oe([
|
|
2002
2001
|
0,
|
|
2003
2002
|
0.5,
|
|
2004
2003
|
1
|
|
@@ -2015,7 +2014,7 @@ function gn(t, e, r, n, i) {
|
|
|
2015
2014
|
y: F ? S : h()
|
|
2016
2015
|
};
|
|
2017
2016
|
}
|
|
2018
|
-
class
|
|
2017
|
+
class gn {
|
|
2019
2018
|
get window() {
|
|
2020
2019
|
if (this.globalContext)
|
|
2021
2020
|
return this.globalContext;
|
|
@@ -2034,7 +2033,7 @@ class fn {
|
|
|
2034
2033
|
this.ownerDocument = null, this.globalContext = e, this.optionsArgs = r;
|
|
2035
2034
|
}
|
|
2036
2035
|
}
|
|
2037
|
-
function
|
|
2036
|
+
function fn(t, e, r) {
|
|
2038
2037
|
return e in t ? Object.defineProperty(t, e, {
|
|
2039
2038
|
value: r,
|
|
2040
2039
|
enumerable: !0,
|
|
@@ -2042,18 +2041,18 @@ function hn(t, e, r) {
|
|
|
2042
2041
|
writable: !0
|
|
2043
2042
|
}) : t[e] = r, t;
|
|
2044
2043
|
}
|
|
2045
|
-
function
|
|
2044
|
+
function Te(t) {
|
|
2046
2045
|
for (var e = 1; e < arguments.length; e++) {
|
|
2047
2046
|
var r = arguments[e] != null ? arguments[e] : {}, n = Object.keys(r);
|
|
2048
2047
|
typeof Object.getOwnPropertySymbols == "function" && (n = n.concat(Object.getOwnPropertySymbols(r).filter(function(i) {
|
|
2049
2048
|
return Object.getOwnPropertyDescriptor(r, i).enumerable;
|
|
2050
2049
|
}))), n.forEach(function(i) {
|
|
2051
|
-
|
|
2050
|
+
fn(t, i, r[i]);
|
|
2052
2051
|
});
|
|
2053
2052
|
}
|
|
2054
2053
|
return t;
|
|
2055
2054
|
}
|
|
2056
|
-
class
|
|
2055
|
+
class hn {
|
|
2057
2056
|
/**
|
|
2058
2057
|
* Generate profiling statistics for the HTML5Backend.
|
|
2059
2058
|
*/
|
|
@@ -2105,15 +2104,15 @@ class pn {
|
|
|
2105
2104
|
}
|
|
2106
2105
|
connectDragSource(e, r, n) {
|
|
2107
2106
|
this.sourceNodes.set(e, r), this.sourceNodeOptions.set(e, n);
|
|
2108
|
-
const i = (
|
|
2109
|
-
return r.setAttribute("draggable", "true"), r.addEventListener("dragstart", i), r.addEventListener("selectstart",
|
|
2110
|
-
this.sourceNodes.delete(e), this.sourceNodeOptions.delete(e), r.removeEventListener("dragstart", i), r.removeEventListener("selectstart",
|
|
2107
|
+
const i = (s) => this.handleDragStart(s, e), o = (s) => this.handleSelectStart(s);
|
|
2108
|
+
return r.setAttribute("draggable", "true"), r.addEventListener("dragstart", i), r.addEventListener("selectstart", o), () => {
|
|
2109
|
+
this.sourceNodes.delete(e), this.sourceNodeOptions.delete(e), r.removeEventListener("dragstart", i), r.removeEventListener("selectstart", o), r.setAttribute("draggable", "false");
|
|
2111
2110
|
};
|
|
2112
2111
|
}
|
|
2113
2112
|
connectDropTarget(e, r) {
|
|
2114
|
-
const n = (
|
|
2115
|
-
return r.addEventListener("dragenter", n), r.addEventListener("dragover", i), r.addEventListener("drop",
|
|
2116
|
-
r.removeEventListener("dragenter", n), r.removeEventListener("dragover", i), r.removeEventListener("drop",
|
|
2113
|
+
const n = (s) => this.handleDragEnter(s, e), i = (s) => this.handleDragOver(s, e), o = (s) => this.handleDrop(s, e);
|
|
2114
|
+
return r.addEventListener("dragenter", n), r.addEventListener("dragover", i), r.addEventListener("drop", o), () => {
|
|
2115
|
+
r.removeEventListener("dragenter", n), r.removeEventListener("dragover", i), r.removeEventListener("drop", o);
|
|
2117
2116
|
};
|
|
2118
2117
|
}
|
|
2119
2118
|
addEventListeners(e) {
|
|
@@ -2124,7 +2123,7 @@ class pn {
|
|
|
2124
2123
|
}
|
|
2125
2124
|
getCurrentSourceNodeOptions() {
|
|
2126
2125
|
const e = this.monitor.getSourceId(), r = this.sourceNodeOptions.get(e);
|
|
2127
|
-
return
|
|
2126
|
+
return Te({
|
|
2128
2127
|
dropEffect: this.altKeyPressed ? "copy" : "move"
|
|
2129
2128
|
}, r || {});
|
|
2130
2129
|
}
|
|
@@ -2133,7 +2132,7 @@ class pn {
|
|
|
2133
2132
|
}
|
|
2134
2133
|
getCurrentSourcePreviewNodeOptions() {
|
|
2135
2134
|
const e = this.monitor.getSourceId(), r = this.sourcePreviewNodeOptions.get(e);
|
|
2136
|
-
return
|
|
2135
|
+
return Te({
|
|
2137
2136
|
anchorX: 0.5,
|
|
2138
2137
|
anchorY: 0.5,
|
|
2139
2138
|
captureDraggingState: !1
|
|
@@ -2141,12 +2140,12 @@ class pn {
|
|
|
2141
2140
|
}
|
|
2142
2141
|
isDraggingNativeItem() {
|
|
2143
2142
|
const e = this.monitor.getItemType();
|
|
2144
|
-
return Object.keys(
|
|
2145
|
-
(r) =>
|
|
2143
|
+
return Object.keys(Se).some(
|
|
2144
|
+
(r) => Se[r] === e
|
|
2146
2145
|
);
|
|
2147
2146
|
}
|
|
2148
2147
|
beginDragNativeItem(e, r) {
|
|
2149
|
-
this.clearCurrentDragSourceNode(), this.currentNativeSource =
|
|
2148
|
+
this.clearCurrentDragSourceNode(), this.currentNativeSource = sn(e, r), this.currentNativeHandle = this.registry.addSource(e, this.currentNativeSource), this.actions.beginDrag([
|
|
2150
2149
|
this.currentNativeHandle
|
|
2151
2150
|
]);
|
|
2152
2151
|
}
|
|
@@ -2182,8 +2181,8 @@ class pn {
|
|
|
2182
2181
|
}
|
|
2183
2182
|
constructor(e, r, n) {
|
|
2184
2183
|
this.sourcePreviewNodes = /* @__PURE__ */ new Map(), this.sourcePreviewNodeOptions = /* @__PURE__ */ new Map(), this.sourceNodes = /* @__PURE__ */ new Map(), this.sourceNodeOptions = /* @__PURE__ */ new Map(), this.dragStartSourceIds = null, this.dropTargetIds = [], this.dragEnterTargetIds = [], this.currentNativeSource = null, this.currentNativeHandle = null, this.currentDragSourceNode = null, this.altKeyPressed = !1, this.mouseMoveTimeoutTimer = null, this.asyncEndDragFrameId = null, this.dragOverTargetIds = null, this.lastClientOffset = null, this.hoverRafId = null, this.getSourceClientOffset = (i) => {
|
|
2185
|
-
const
|
|
2186
|
-
return
|
|
2184
|
+
const o = this.sourceNodes.get(i);
|
|
2185
|
+
return o && Be(o) || null;
|
|
2187
2186
|
}, this.endDragNativeItem = () => {
|
|
2188
2187
|
this.isDraggingNativeItem() && (this.actions.endDrag(), this.currentNativeHandle && this.registry.removeSource(this.currentNativeHandle), this.currentNativeHandle = null, this.currentNativeSource = null);
|
|
2189
2188
|
}, this.isNodeInDocument = (i) => !!(i && this.document && this.document.body && this.document.body.contains(i)), this.endDragIfSourceWasRemovedFromDOM = () => {
|
|
@@ -2202,20 +2201,20 @@ class pn {
|
|
|
2202
2201
|
}, this.handleTopDragStart = (i) => {
|
|
2203
2202
|
if (i.defaultPrevented)
|
|
2204
2203
|
return;
|
|
2205
|
-
const { dragStartSourceIds:
|
|
2204
|
+
const { dragStartSourceIds: o } = this;
|
|
2206
2205
|
this.dragStartSourceIds = null;
|
|
2207
|
-
const
|
|
2208
|
-
this.monitor.isDragging() && (this.actions.endDrag(), this.cancelHover()), this.actions.beginDrag(
|
|
2206
|
+
const s = M(i);
|
|
2207
|
+
this.monitor.isDragging() && (this.actions.endDrag(), this.cancelHover()), this.actions.beginDrag(o || [], {
|
|
2209
2208
|
publishSource: !1,
|
|
2210
2209
|
getSourceClientOffset: this.getSourceClientOffset,
|
|
2211
|
-
clientOffset:
|
|
2210
|
+
clientOffset: s
|
|
2212
2211
|
});
|
|
2213
2212
|
const { dataTransfer: a } = i, c = W(a);
|
|
2214
2213
|
if (this.monitor.isDragging()) {
|
|
2215
2214
|
if (a && typeof a.setDragImage == "function") {
|
|
2216
2215
|
const f = this.monitor.getSourceId(), p = this.sourceNodes.get(f), g = this.sourcePreviewNodes.get(f) || p;
|
|
2217
2216
|
if (g) {
|
|
2218
|
-
const { anchorX: u, anchorY: D, offsetX: h, offsetY: v } = this.getCurrentSourcePreviewNodeOptions(), I =
|
|
2217
|
+
const { anchorX: u, anchorY: D, offsetX: h, offsetY: v } = this.getCurrentSourcePreviewNodeOptions(), I = dn(p, g, s, {
|
|
2219
2218
|
anchorX: u,
|
|
2220
2219
|
anchorY: D
|
|
2221
2220
|
}, {
|
|
@@ -2246,34 +2245,34 @@ class pn {
|
|
|
2246
2245
|
this.clearCurrentDragSourceNode() && this.monitor.isDragging() && this.actions.endDrag(), this.cancelHover();
|
|
2247
2246
|
}, this.handleTopDragEnterCapture = (i) => {
|
|
2248
2247
|
if (this.dragEnterTargetIds = [], this.isDraggingNativeItem()) {
|
|
2249
|
-
var
|
|
2250
|
-
(
|
|
2248
|
+
var o;
|
|
2249
|
+
(o = this.currentNativeSource) === null || o === void 0 || o.loadDataTransfer(i.dataTransfer);
|
|
2251
2250
|
}
|
|
2252
2251
|
if (!this.enterLeaveCounter.enter(i.target) || this.monitor.isDragging())
|
|
2253
2252
|
return;
|
|
2254
2253
|
const { dataTransfer: a } = i, c = W(a);
|
|
2255
2254
|
c && this.beginDragNativeItem(c, a);
|
|
2256
2255
|
}, this.handleTopDragEnter = (i) => {
|
|
2257
|
-
const { dragEnterTargetIds:
|
|
2256
|
+
const { dragEnterTargetIds: o } = this;
|
|
2258
2257
|
if (this.dragEnterTargetIds = [], !this.monitor.isDragging())
|
|
2259
2258
|
return;
|
|
2260
|
-
this.altKeyPressed = i.altKey,
|
|
2259
|
+
this.altKeyPressed = i.altKey, o.length > 0 && this.actions.hover(o, {
|
|
2261
2260
|
clientOffset: M(i)
|
|
2262
|
-
}),
|
|
2261
|
+
}), o.some(
|
|
2263
2262
|
(a) => this.monitor.canDropOnTarget(a)
|
|
2264
2263
|
) && (i.preventDefault(), i.dataTransfer && (i.dataTransfer.dropEffect = this.getCurrentDropEffect()));
|
|
2265
2264
|
}, this.handleTopDragOverCapture = (i) => {
|
|
2266
2265
|
if (this.dragOverTargetIds = [], this.isDraggingNativeItem()) {
|
|
2267
|
-
var
|
|
2268
|
-
(
|
|
2266
|
+
var o;
|
|
2267
|
+
(o = this.currentNativeSource) === null || o === void 0 || o.loadDataTransfer(i.dataTransfer);
|
|
2269
2268
|
}
|
|
2270
2269
|
}, this.handleTopDragOver = (i) => {
|
|
2271
|
-
const { dragOverTargetIds:
|
|
2270
|
+
const { dragOverTargetIds: o } = this;
|
|
2272
2271
|
if (this.dragOverTargetIds = [], !this.monitor.isDragging()) {
|
|
2273
2272
|
i.preventDefault(), i.dataTransfer && (i.dataTransfer.dropEffect = "none");
|
|
2274
2273
|
return;
|
|
2275
2274
|
}
|
|
2276
|
-
this.altKeyPressed = i.altKey, this.lastClientOffset = M(i), this.scheduleHover(
|
|
2275
|
+
this.altKeyPressed = i.altKey, this.lastClientOffset = M(i), this.scheduleHover(o), (o || []).some(
|
|
2277
2276
|
(a) => this.monitor.canDropOnTarget(a)
|
|
2278
2277
|
) ? (i.preventDefault(), i.dataTransfer && (i.dataTransfer.dropEffect = this.getCurrentDropEffect())) : this.isDraggingNativeItem() ? i.preventDefault() : (i.preventDefault(), i.dataTransfer && (i.dataTransfer.dropEffect = "none"));
|
|
2279
2278
|
}, this.handleTopDragLeaveCapture = (i) => {
|
|
@@ -2283,81 +2282,86 @@ class pn {
|
|
|
2283
2282
|
), this.cancelHover());
|
|
2284
2283
|
}, this.handleTopDropCapture = (i) => {
|
|
2285
2284
|
if (this.dropTargetIds = [], this.isDraggingNativeItem()) {
|
|
2286
|
-
var
|
|
2287
|
-
i.preventDefault(), (
|
|
2285
|
+
var o;
|
|
2286
|
+
i.preventDefault(), (o = this.currentNativeSource) === null || o === void 0 || o.loadDataTransfer(i.dataTransfer);
|
|
2288
2287
|
} else W(i.dataTransfer) && i.preventDefault();
|
|
2289
2288
|
this.enterLeaveCounter.reset();
|
|
2290
2289
|
}, this.handleTopDrop = (i) => {
|
|
2291
|
-
const { dropTargetIds:
|
|
2292
|
-
this.dropTargetIds = [], this.actions.hover(
|
|
2290
|
+
const { dropTargetIds: o } = this;
|
|
2291
|
+
this.dropTargetIds = [], this.actions.hover(o, {
|
|
2293
2292
|
clientOffset: M(i)
|
|
2294
2293
|
}), this.actions.drop({
|
|
2295
2294
|
dropEffect: this.getCurrentDropEffect()
|
|
2296
2295
|
}), this.isDraggingNativeItem() ? this.endDragNativeItem() : this.monitor.isDragging() && this.actions.endDrag(), this.cancelHover();
|
|
2297
2296
|
}, this.handleSelectStart = (i) => {
|
|
2298
|
-
const
|
|
2299
|
-
typeof
|
|
2300
|
-
}, this.options = new
|
|
2297
|
+
const o = i.target;
|
|
2298
|
+
typeof o.dragDrop == "function" && (o.tagName === "INPUT" || o.tagName === "SELECT" || o.tagName === "TEXTAREA" || o.isContentEditable || (i.preventDefault(), o.dragDrop()));
|
|
2299
|
+
}, this.options = new gn(r, n), this.actions = e.getActions(), this.monitor = e.getMonitor(), this.registry = e.getRegistry(), this.enterLeaveCounter = new nn(this.isNodeInDocument);
|
|
2301
2300
|
}
|
|
2302
2301
|
}
|
|
2303
|
-
const
|
|
2304
|
-
return new
|
|
2305
|
-
},
|
|
2306
|
-
function
|
|
2302
|
+
const pn = function(e, r, n) {
|
|
2303
|
+
return new hn(e, r, n);
|
|
2304
|
+
}, mn = (t) => /* @__PURE__ */ w.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ w.createElement("circle", { cx: 6, cy: 4, r: 1.25, fill: "#2B2B2B" }), /* @__PURE__ */ w.createElement("circle", { cx: 10, cy: 4, r: 1.25, fill: "#2B2B2B" }), /* @__PURE__ */ w.createElement("circle", { cx: 6, cy: 8, r: 1.25, fill: "#2B2B2B" }), /* @__PURE__ */ w.createElement("circle", { cx: 10, cy: 8, r: 1.25, fill: "#2B2B2B" }), /* @__PURE__ */ w.createElement("circle", { cx: 6, cy: 12, r: 1.25, fill: "#2B2B2B" }), /* @__PURE__ */ w.createElement("circle", { cx: 10, cy: 12, r: 1.25, fill: "#2B2B2B" }));
|
|
2305
|
+
function vn({
|
|
2307
2306
|
column: t,
|
|
2308
2307
|
index: e,
|
|
2309
2308
|
moveListItem: r,
|
|
2310
2309
|
visibility: n,
|
|
2311
2310
|
onToggleVisibility: i
|
|
2312
2311
|
}) {
|
|
2313
|
-
const
|
|
2312
|
+
const o = t.isDraggable !== !1, s = t.toogleVisibility !== !1 && t.toggleVisibility !== !1, a = ze(null), [, c] = en({
|
|
2314
2313
|
accept: ce,
|
|
2315
2314
|
hover(p) {
|
|
2316
|
-
|
|
2315
|
+
o && p.index !== e && (r(p.index, e), p.index = e);
|
|
2317
2316
|
}
|
|
2318
|
-
}), [{ isDragging: d }, f] =
|
|
2317
|
+
}), [{ isDragging: d }, f] = Yr({
|
|
2319
2318
|
type: ce,
|
|
2320
2319
|
item: { index: e },
|
|
2321
|
-
canDrag:
|
|
2320
|
+
canDrag: o,
|
|
2322
2321
|
collect: (p) => ({
|
|
2323
2322
|
isDragging: p.isDragging()
|
|
2324
2323
|
})
|
|
2325
2324
|
});
|
|
2326
|
-
return
|
|
2325
|
+
return o ? f(c(a)) : c(a), /* @__PURE__ */ E(
|
|
2327
2326
|
"div",
|
|
2328
2327
|
{
|
|
2329
2328
|
ref: a,
|
|
2330
|
-
className:
|
|
2331
|
-
|
|
2332
|
-
d ? "opacity-50" : "opacity-100"
|
|
2333
|
-
),
|
|
2329
|
+
className: "ckds-dragable-list-item",
|
|
2330
|
+
style: { opacity: d ? 0.5 : 1 },
|
|
2334
2331
|
children: [
|
|
2335
|
-
/* @__PURE__ */ m("div", { className: ue("ckds-drag-handle", s ? "cursor-move" : "opacity-30 cursor-not-allowed"), children: /* @__PURE__ */ m(vn, { className: "text-base-content" }) }),
|
|
2336
|
-
/* @__PURE__ */ m(_, { variant: "body-sm", className: "text-base-content text-xs grow ml-2", children: t.header }),
|
|
2337
2332
|
/* @__PURE__ */ m(
|
|
2338
|
-
|
|
2333
|
+
"div",
|
|
2334
|
+
{
|
|
2335
|
+
className: "ckds-drag-handle",
|
|
2336
|
+
style: { cursor: o ? "grab" : "not-allowed", opacity: o ? 1 : 0.3 },
|
|
2337
|
+
children: /* @__PURE__ */ m(mn, { style: { color: "var(--ckcl-black-500, #2b2b2b)" } })
|
|
2338
|
+
}
|
|
2339
|
+
),
|
|
2340
|
+
/* @__PURE__ */ m(_, { variant: "body-sm", className: "ckds-dragable-list-item-label", children: t.header }),
|
|
2341
|
+
/* @__PURE__ */ m(
|
|
2342
|
+
Qe,
|
|
2339
2343
|
{
|
|
2340
2344
|
checked: n[t.accessorKey] !== !1,
|
|
2341
2345
|
onChange: () => i(t.accessorKey),
|
|
2342
|
-
disabled: !
|
|
2343
|
-
className: "
|
|
2346
|
+
disabled: !s,
|
|
2347
|
+
className: "ckds-dragable-list-item-toggle"
|
|
2344
2348
|
}
|
|
2345
2349
|
)
|
|
2346
2350
|
]
|
|
2347
2351
|
}
|
|
2348
2352
|
);
|
|
2349
2353
|
}
|
|
2350
|
-
function
|
|
2354
|
+
function Pn({
|
|
2351
2355
|
draftConfig: t,
|
|
2352
2356
|
setDraftConfig: e,
|
|
2353
2357
|
moveDraftColumn: r,
|
|
2354
2358
|
handleApplyPref: n,
|
|
2355
2359
|
setModalOpen: i,
|
|
2356
|
-
handleResetToDefault:
|
|
2357
|
-
isDefault:
|
|
2360
|
+
handleResetToDefault: o,
|
|
2361
|
+
isDefault: s,
|
|
2358
2362
|
isConfigChanged: a
|
|
2359
2363
|
}) {
|
|
2360
|
-
const [c, d] =
|
|
2364
|
+
const [c, d] = be(""), f = Ee(
|
|
2361
2365
|
(g) => {
|
|
2362
2366
|
e((u) => ({
|
|
2363
2367
|
...u,
|
|
@@ -2371,32 +2375,33 @@ function Rn({
|
|
|
2371
2375
|
), p = t.columns.filter(
|
|
2372
2376
|
(g) => g.header.toLowerCase().includes(c.toLowerCase())
|
|
2373
2377
|
);
|
|
2374
|
-
return /* @__PURE__ */ E(
|
|
2378
|
+
return /* @__PURE__ */ E(Or, { backend: pn, children: [
|
|
2375
2379
|
/* @__PURE__ */ E("div", { className: "ckds-column-manager-wrapper", children: [
|
|
2376
|
-
/* @__PURE__ */ E("div", {
|
|
2380
|
+
/* @__PURE__ */ E("div", { style: { display: "flex", alignItems: "center", justifyContent: "space-between" }, children: [
|
|
2377
2381
|
/* @__PURE__ */ m(_, { variant: "body-lg", weight: "semibold", children: "Column Manager" }),
|
|
2378
2382
|
/* @__PURE__ */ m(
|
|
2379
2383
|
B,
|
|
2380
2384
|
{
|
|
2381
|
-
onClick:
|
|
2385
|
+
onClick: o,
|
|
2382
2386
|
variant: "hyperlink",
|
|
2383
|
-
disabled:
|
|
2384
|
-
icons: { left: /* @__PURE__ */ m(
|
|
2387
|
+
disabled: s,
|
|
2388
|
+
icons: { left: /* @__PURE__ */ m(Ke, {}) },
|
|
2385
2389
|
label: "Reset to default"
|
|
2386
2390
|
}
|
|
2387
2391
|
)
|
|
2388
2392
|
] }),
|
|
2389
|
-
/* @__PURE__ */ E("div", {
|
|
2390
|
-
/* @__PURE__ */ m(
|
|
2391
|
-
/* @__PURE__ */ E("div", {
|
|
2393
|
+
/* @__PURE__ */ E("div", { style: { display: "flex", marginTop: "24px" }, children: [
|
|
2394
|
+
/* @__PURE__ */ m(Ze, { draftConfig: t, setDraftConfig: e }),
|
|
2395
|
+
/* @__PURE__ */ E("div", { style: { flex: 1, marginLeft: "28px" }, children: [
|
|
2392
2396
|
/* @__PURE__ */ m(_, { variant: "body-sm", weight: "medium", children: "Visible Columns" }),
|
|
2393
|
-
/* @__PURE__ */ m(_, { variant: "body-xs",
|
|
2397
|
+
/* @__PURE__ */ m(_, { variant: "body-xs", color: "secondary", children: "Toggle columns on/off and drag to reorder" }),
|
|
2394
2398
|
/* @__PURE__ */ m(
|
|
2395
2399
|
"div",
|
|
2396
2400
|
{
|
|
2397
|
-
className:
|
|
2401
|
+
className: p.length > 9 ? "ckds-search-border-bottom" : "",
|
|
2402
|
+
style: { paddingBottom: "12px", marginTop: "16px" },
|
|
2398
2403
|
children: /* @__PURE__ */ E("div", { className: "ckds-search-input-wrapper", children: [
|
|
2399
|
-
/* @__PURE__ */ m(
|
|
2404
|
+
/* @__PURE__ */ m(Je, {}),
|
|
2400
2405
|
/* @__PURE__ */ m(
|
|
2401
2406
|
"input",
|
|
2402
2407
|
{
|
|
@@ -2409,8 +2414,8 @@ function Rn({
|
|
|
2409
2414
|
] })
|
|
2410
2415
|
}
|
|
2411
2416
|
),
|
|
2412
|
-
/* @__PURE__ */ m("div", { children: c && p.length === 0 ? /* @__PURE__ */ m("div", {
|
|
2413
|
-
|
|
2417
|
+
/* @__PURE__ */ m("div", { children: c && p.length === 0 ? /* @__PURE__ */ m("div", { style: { display: "flex", flex: 1, alignItems: "center", justifyContent: "center", height: "318px" }, children: /* @__PURE__ */ m("p", { className: "text-sm", style: { color: "var(--ckcl-black-400, #737373)" }, children: "No columns found" }) }) : /* @__PURE__ */ m("div", { className: "ckds-dragable-list ckds-custom-scrollbar", children: p.map((g, u) => /* @__PURE__ */ m(
|
|
2418
|
+
vn,
|
|
2414
2419
|
{
|
|
2415
2420
|
column: g,
|
|
2416
2421
|
index: u,
|
|
@@ -2447,5 +2452,5 @@ function Rn({
|
|
|
2447
2452
|
] });
|
|
2448
2453
|
}
|
|
2449
2454
|
export {
|
|
2450
|
-
|
|
2455
|
+
Pn as default
|
|
2451
2456
|
};
|