@ck-ui/component-library 1.0.0 → 1.0.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/DropdownFooter-CsDll1Tj.js +96 -0
- package/dist/{Grow-D08Iq1uH.js → Grow-wzNsNKt2.js} +41 -41
- package/dist/IconSlot-DvUwY6Do.js +33 -0
- package/dist/{OptionList-DN1xZbnV.js → OptionList-BM4AleXV.js} +361 -290
- package/dist/{Select-Cw96VEHD.js → Select-CiuwMSD7.js} +2366 -2427
- package/dist/assets/DropdownFooter-JrU15UnN.css +1 -0
- package/dist/assets/IconSlot-BWv5PQN_.css +1 -0
- package/dist/assets/ReactToastify-GNLSjkBZ.css +1 -0
- package/dist/assets/{ToastContent-PGkBxPUW.css → ToastContent-DpF5zCks.css} +1 -1
- package/dist/assets/index-0R9p-l95.css +1 -0
- package/dist/assets/index-B3yBTtVQ.css +1 -0
- package/dist/assets/index-BXwGxK7I.css +1 -0
- package/dist/assets/index-BZgvXFWW.css +1 -0
- package/dist/assets/index-BbJZjGLb.css +1 -0
- package/dist/assets/index-UphWJR2V.css +1 -0
- package/dist/assets/{main-Dv8QUU_o.css → main-3OqLSdPm.css} +1 -1
- package/dist/assets/{styles-Chhklrps.css → styles-C5uYY4fL.css} +1 -1
- package/dist/assets/styles-CEyiQgVQ.css +1 -0
- package/dist/assets/styles-DLJzdWsF.css +1 -0
- package/dist/assets/{styles-Bqfs9eXV.css → styles-DngCqCGW.css} +1 -1
- package/dist/assets/styles-O-5pBCak.css +1 -0
- package/dist/components/CKButton/_helper/ComboLayout.js +1 -1
- package/dist/components/CKButton/_helper/IconSlot.js +1 -1
- package/dist/components/CKButton/_helper/StandardLayout.js +1 -1
- package/dist/components/CKButton/index.js +1 -1
- package/dist/components/CardBox/index.js +18 -18
- package/dist/components/DateRangePicker/DateRangePicker.js +703 -680
- package/dist/components/EmptyState/index.js +7 -7
- package/dist/components/FusionChart/_config/builders.d.ts.map +1 -1
- package/dist/components/FusionChart/_config/builders.js +207 -192
- package/dist/components/FusionChart/_config/helpers.d.ts +3 -0
- package/dist/components/FusionChart/_config/helpers.d.ts.map +1 -1
- package/dist/components/FusionChart/_config/helpers.js +61 -45
- package/dist/components/FusionChart/_types/fusionChart.types.d.ts +2 -0
- package/dist/components/FusionChart/_types/fusionChart.types.d.ts.map +1 -1
- package/dist/components/FusionChart/_utils/chartHelpers.js +1 -1
- package/dist/components/FusionChart/index.d.ts.map +1 -1
- package/dist/components/FusionChart/index.js +163 -130
- package/dist/components/MenuOptions/_utils/computeMenuPosition.js +1 -1
- package/dist/components/MenuOptions/_utils/computeSubmenuPosition.js +1 -1
- package/dist/components/MetricCards/Component/CardWithIconAndForecast/index.js +30 -30
- package/dist/components/MultiSelect/SimpleMultiSelect.d.ts +3 -1
- package/dist/components/MultiSelect/SimpleMultiSelect.d.ts.map +1 -1
- package/dist/components/MultiSelect/SimpleMultiSelect.js +150 -136
- 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.d.ts +1 -1
- package/dist/components/MultiSelect/_helpers/SearchResult.d.ts.map +1 -1
- package/dist/components/MultiSelect/_helpers/SearchResult.js +31 -21
- package/dist/components/MultiSelect/_helpers/TagContent.js +1 -1
- package/dist/components/MultiSelect/_helpers/TriggerButton.d.ts.map +1 -1
- package/dist/components/MultiSelect/_helpers/TriggerButton.js +95 -74
- package/dist/components/MultiSelect/_types/type.d.ts +7 -2
- package/dist/components/MultiSelect/_types/type.d.ts.map +1 -1
- package/dist/components/MultiSelect/_utils/useDropdownDirection.d.ts +18 -0
- package/dist/components/MultiSelect/_utils/useDropdownDirection.d.ts.map +1 -0
- package/dist/components/MultiSelect/_utils/useDropdownDirection.js +23 -0
- 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 +162 -150
- package/dist/components/PopupAndDialogBox/components/DialogContent.js +1 -1
- package/dist/components/PopupAndDialogBox/components/DialogFooter.js +1 -1
- package/dist/components/PopupAndDialogBox/components/DialogHeader.js +1 -1
- package/dist/components/PopupAndDialogBox/index.js +1 -1
- package/dist/components/RadioButton/index.js +34 -34
- package/dist/components/RadioGroup/_types/radioGroup.types.d.ts +1 -0
- package/dist/components/RadioGroup/_types/radioGroup.types.d.ts.map +1 -1
- package/dist/components/RadioGroup/index.d.ts +1 -1
- package/dist/components/RadioGroup/index.d.ts.map +1 -1
- package/dist/components/RadioGroup/index.js +19 -17
- package/dist/components/Search/index.d.ts.map +1 -1
- package/dist/components/Search/index.js +63 -61
- package/dist/components/SingleSelectDropdown/_helpers/DropdownFooter.js +3 -3
- package/dist/components/SingleSelectDropdown/index.d.ts.map +1 -1
- package/dist/components/SingleSelectDropdown/index.js +83 -78
- package/dist/components/Table/_helpers/ColumnManager/ColumnConfig.d.ts.map +1 -1
- package/dist/components/Table/_helpers/ColumnManager/ColumnConfig.js +22 -19
- package/dist/components/Table/_helpers/ColumnManager/index.d.ts.map +1 -1
- package/dist/components/Table/_helpers/ColumnManager/index.js +304 -301
- package/dist/components/Table/_helpers/GroupedHeader/index.js +1 -1
- package/dist/components/Table/_helpers/TableFilterModal/OptionList.js +1 -1
- package/dist/components/Table/_helpers/TableFilterModal/RangeSelector.js +133 -142
- package/dist/components/Table/_helpers/TableFilterModal/index.d.ts.map +1 -1
- package/dist/components/Table/_helpers/TableFilterModal/index.js +43 -42
- package/dist/components/Table/_helpers/TableRows.js +1 -1
- package/dist/components/Table/index.d.ts.map +1 -1
- package/dist/components/Table/index.js +215 -210
- package/dist/components/TextField/index.js +331 -328
- package/dist/components/Toast/_helper/ToastContent.js +25 -25
- package/dist/components/Toast/_helper/ToastProvider.js +9 -9
- package/dist/components/Toast/_hooks/useToast.js +1 -1
- package/dist/components/Tooltip/index.js +772 -697
- package/dist/components/Typography/index.js +30 -30
- package/dist/createSimplePaletteValueFilter-BqxST_wX.js +24 -0
- package/dist/index-BR6M9zUI.js +382 -0
- package/dist/{index-f7TB87Mf.js → index-Bcvmezbu.js} +23 -3
- package/dist/main.d.ts +1 -0
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +15 -13
- package/dist/styles.module-yIHBMSTk.js +53 -0
- package/dist/styles.module-yNDMDNO-.js +14 -0
- package/dist/{useSlot-ylt7_lTY.js → useSlot-BiMlGawc.js} +656 -623
- package/package.json +3 -3
- package/dist/DropdownFooter-CYkg2g5d.js +0 -89
- package/dist/IconSlot-CFKmSU2_.js +0 -33
- package/dist/assets/DropdownFooter-DjdPf69A.css +0 -1
- package/dist/assets/IconSlot-CLpdZgmb.css +0 -1
- package/dist/assets/ReactToastify-tlSLHgLC.css +0 -1
- package/dist/assets/index-B81zpOpq.css +0 -1
- package/dist/assets/index-BmQOtMhS.css +0 -1
- package/dist/assets/index-CaWXKQ7j.css +0 -1
- package/dist/assets/index-CiQd_iRw.css +0 -1
- package/dist/assets/index-DNhNBxL9.css +0 -1
- package/dist/assets/index-YHUWVH17.css +0 -1
- package/dist/assets/styles-BTZL03H2.css +0 -1
- package/dist/assets/styles-CYxKrBqL.css +0 -1
- package/dist/assets/styles-D8sahtFb.css +0 -1
- package/dist/contains-kLLEGdNH.js +0 -41
- package/dist/index-C8cPPHJD.js +0 -1196
- package/dist/styles.module-BZaUJMlf.js +0 -14
- package/dist/styles.module-Dojg5FTS.js +0 -41
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { jsx as m, jsxs as
|
|
2
|
-
import * 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
|
|
4
|
-
import { CKButton as
|
|
1
|
+
import { jsx as m, jsxs as I } from "react/jsx-runtime";
|
|
2
|
+
import * as E from "react";
|
|
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 ze, cloneElement as ae, useContext as We, useRef as Xe } from "react";
|
|
4
|
+
import { CKButton as F } from "../../../CKButton/index.js";
|
|
5
5
|
import { Typography as _ } from "../../../Typography/index.js";
|
|
6
|
-
import {
|
|
7
|
-
import { S as
|
|
8
|
-
import {
|
|
9
|
-
import { ColumnConfig as Ze } from "./ColumnConfig.js";
|
|
6
|
+
import { S as Ze } from "../../../../reset-icon-YxMt3Ozp.js";
|
|
7
|
+
import { S as Qe } from "../../../../search-B_cup-NN.js";
|
|
8
|
+
import { ColumnConfig as Ke } from "./ColumnConfig.js";
|
|
10
9
|
import { COLUMN_ITEM_TYPE as ce } from "../../constants.js";
|
|
11
|
-
import '../../../../assets/styles-
|
|
10
|
+
import '../../../../assets/styles-DLJzdWsF.css';/* empty css */
|
|
11
|
+
import { Toggle as Je } from "../../../Toggle/index.js";
|
|
12
12
|
import { g as et } from "../../../../_commonjsHelpers-C6fGbg64.js";
|
|
13
13
|
const Ie = $e({
|
|
14
14
|
dragDropManager: void 0
|
|
@@ -16,9 +16,9 @@ const Ie = $e({
|
|
|
16
16
|
function O(t) {
|
|
17
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. ";
|
|
18
18
|
}
|
|
19
|
-
var ue =
|
|
19
|
+
var ue = function() {
|
|
20
20
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
21
|
-
}
|
|
21
|
+
}(), le = function() {
|
|
22
22
|
return Math.random().toString(36).substring(7).split("").join(".");
|
|
23
23
|
}, de = {
|
|
24
24
|
INIT: "@@redux/INIT" + le(),
|
|
@@ -43,7 +43,7 @@ function rt(t) {
|
|
|
43
43
|
return e;
|
|
44
44
|
}
|
|
45
45
|
if (Array.isArray(t)) return "array";
|
|
46
|
-
if (
|
|
46
|
+
if (st(t)) return "date";
|
|
47
47
|
if (it(t)) return "error";
|
|
48
48
|
var r = nt(t);
|
|
49
49
|
switch (r) {
|
|
@@ -63,32 +63,32 @@ function nt(t) {
|
|
|
63
63
|
function it(t) {
|
|
64
64
|
return t instanceof Error || typeof t.message == "string" && t.constructor && typeof t.constructor.stackTraceLimit == "number";
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function st(t) {
|
|
67
67
|
return t instanceof Date ? !0 : typeof t.toDateString == "function" && typeof t.getDate == "function" && typeof t.setDate == "function";
|
|
68
68
|
}
|
|
69
69
|
function N(t) {
|
|
70
70
|
var e = typeof t;
|
|
71
71
|
return process.env.NODE_ENV !== "production" && (e = rt(t)), e;
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function Ce(t, e, r) {
|
|
74
74
|
var n;
|
|
75
75
|
if (typeof e == "function" && typeof r == "function" || typeof r == "function" && typeof arguments[3] == "function")
|
|
76
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.");
|
|
77
77
|
if (typeof e == "function" && typeof r > "u" && (r = e, e = void 0), typeof r < "u") {
|
|
78
78
|
if (typeof r != "function")
|
|
79
79
|
throw new Error(process.env.NODE_ENV === "production" ? O(1) : "Expected the enhancer to be a function. Instead, received: '" + N(r) + "'");
|
|
80
|
-
return r(
|
|
80
|
+
return r(Ce)(t, e);
|
|
81
81
|
}
|
|
82
82
|
if (typeof t != "function")
|
|
83
83
|
throw new Error(process.env.NODE_ENV === "production" ? O(2) : "Expected the root reducer to be a function. Instead, received: '" + N(t) + "'");
|
|
84
|
-
var i = t,
|
|
84
|
+
var i = t, s = e, o = [], a = o, c = !1;
|
|
85
85
|
function d() {
|
|
86
|
-
a ===
|
|
86
|
+
a === o && (a = o.slice());
|
|
87
87
|
}
|
|
88
88
|
function f() {
|
|
89
89
|
if (c)
|
|
90
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.");
|
|
91
|
-
return
|
|
91
|
+
return s;
|
|
92
92
|
}
|
|
93
93
|
function p(h) {
|
|
94
94
|
if (typeof h != "function")
|
|
@@ -102,7 +102,7 @@ function we(t, e, r) {
|
|
|
102
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.");
|
|
103
103
|
v = !1, d();
|
|
104
104
|
var S = a.indexOf(h);
|
|
105
|
-
a.splice(S, 1),
|
|
105
|
+
a.splice(S, 1), o = null;
|
|
106
106
|
}
|
|
107
107
|
};
|
|
108
108
|
}
|
|
@@ -114,11 +114,11 @@ function we(t, e, r) {
|
|
|
114
114
|
if (c)
|
|
115
115
|
throw new Error(process.env.NODE_ENV === "production" ? O(9) : "Reducers may not dispatch actions.");
|
|
116
116
|
try {
|
|
117
|
-
c = !0,
|
|
117
|
+
c = !0, s = i(s, h);
|
|
118
118
|
} finally {
|
|
119
119
|
c = !1;
|
|
120
120
|
}
|
|
121
|
-
for (var v =
|
|
121
|
+
for (var v = o = a, y = 0; y < v.length; y++) {
|
|
122
122
|
var S = v[y];
|
|
123
123
|
S();
|
|
124
124
|
}
|
|
@@ -145,13 +145,13 @@ function we(t, e, r) {
|
|
|
145
145
|
subscribe: function(S) {
|
|
146
146
|
if (typeof S != "object" || S === null)
|
|
147
147
|
throw new Error(process.env.NODE_ENV === "production" ? O(11) : "Expected the observer to be an object. Instead, received: '" + N(S) + "'");
|
|
148
|
-
function
|
|
148
|
+
function C() {
|
|
149
149
|
S.next && S.next(f());
|
|
150
150
|
}
|
|
151
|
-
|
|
152
|
-
var
|
|
151
|
+
C();
|
|
152
|
+
var V = v(C);
|
|
153
153
|
return {
|
|
154
|
-
unsubscribe:
|
|
154
|
+
unsubscribe: V
|
|
155
155
|
};
|
|
156
156
|
}
|
|
157
157
|
}, h[ue] = function() {
|
|
@@ -168,7 +168,7 @@ function we(t, e, r) {
|
|
|
168
168
|
}, n[ue] = D, n;
|
|
169
169
|
}
|
|
170
170
|
function l(t, e, ...r) {
|
|
171
|
-
if (
|
|
171
|
+
if (ot() && e === void 0)
|
|
172
172
|
throw new Error("invariant requires an error message argument");
|
|
173
173
|
if (!t) {
|
|
174
174
|
let n;
|
|
@@ -183,7 +183,7 @@ function l(t, e, ...r) {
|
|
|
183
183
|
throw n.framesToPop = 1, n;
|
|
184
184
|
}
|
|
185
185
|
}
|
|
186
|
-
function
|
|
186
|
+
function ot() {
|
|
187
187
|
return typeof process < "u" && process.env.NODE_ENV === "production";
|
|
188
188
|
}
|
|
189
189
|
function at(t, e, r) {
|
|
@@ -197,17 +197,17 @@ function ct(t, e) {
|
|
|
197
197
|
(r) => r !== e
|
|
198
198
|
);
|
|
199
199
|
}
|
|
200
|
-
function
|
|
200
|
+
function we(t) {
|
|
201
201
|
return typeof t == "object";
|
|
202
202
|
}
|
|
203
203
|
function ut(t, e) {
|
|
204
|
-
const r = /* @__PURE__ */ new Map(), n = (
|
|
205
|
-
r.set(
|
|
204
|
+
const r = /* @__PURE__ */ new Map(), n = (s) => {
|
|
205
|
+
r.set(s, r.has(s) ? r.get(s) + 1 : 1);
|
|
206
206
|
};
|
|
207
207
|
t.forEach(n), e.forEach(n);
|
|
208
208
|
const i = [];
|
|
209
|
-
return r.forEach((
|
|
210
|
-
|
|
209
|
+
return r.forEach((s, o) => {
|
|
210
|
+
s === 1 && i.push(o);
|
|
211
211
|
}), i;
|
|
212
212
|
}
|
|
213
213
|
function lt(t, e) {
|
|
@@ -215,7 +215,7 @@ function lt(t, e) {
|
|
|
215
215
|
(r) => e.indexOf(r) > -1
|
|
216
216
|
);
|
|
217
217
|
}
|
|
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",
|
|
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", B = "dnd-core/END_DRAG";
|
|
219
219
|
function ge(t, e) {
|
|
220
220
|
return {
|
|
221
221
|
type: ee,
|
|
@@ -236,20 +236,20 @@ function gt(t) {
|
|
|
236
236
|
return function(r = [], n = {
|
|
237
237
|
publishSource: !0
|
|
238
238
|
}) {
|
|
239
|
-
const { publishSource: i = !0, clientOffset:
|
|
240
|
-
t.dispatch(ge(
|
|
239
|
+
const { publishSource: i = !0, clientOffset: s, getSourceClientOffset: o } = n, a = t.getMonitor(), c = t.getRegistry();
|
|
240
|
+
t.dispatch(ge(s)), ft(r, a, c);
|
|
241
241
|
const d = mt(r, a);
|
|
242
242
|
if (d == null) {
|
|
243
243
|
t.dispatch(dt);
|
|
244
244
|
return;
|
|
245
245
|
}
|
|
246
246
|
let f = null;
|
|
247
|
-
if (
|
|
248
|
-
if (!
|
|
247
|
+
if (s) {
|
|
248
|
+
if (!o)
|
|
249
249
|
throw new Error("getSourceClientOffset must be defined");
|
|
250
|
-
ht(
|
|
250
|
+
ht(o), f = o(d);
|
|
251
251
|
}
|
|
252
|
-
t.dispatch(ge(
|
|
252
|
+
t.dispatch(ge(s, f));
|
|
253
253
|
const g = c.getSource(d).beginDrag(a, d);
|
|
254
254
|
if (g == null)
|
|
255
255
|
return;
|
|
@@ -261,7 +261,7 @@ function gt(t) {
|
|
|
261
261
|
itemType: u,
|
|
262
262
|
item: g,
|
|
263
263
|
sourceId: d,
|
|
264
|
-
clientOffset:
|
|
264
|
+
clientOffset: s || null,
|
|
265
265
|
sourceClientOffset: f || null,
|
|
266
266
|
isSourcePublic: !!i
|
|
267
267
|
}
|
|
@@ -277,7 +277,7 @@ function ht(t) {
|
|
|
277
277
|
l(typeof t == "function", "When clientOffset is provided, getSourceClientOffset must be a function.");
|
|
278
278
|
}
|
|
279
279
|
function pt(t) {
|
|
280
|
-
l(
|
|
280
|
+
l(we(t), "Item must be an object.");
|
|
281
281
|
}
|
|
282
282
|
function mt(t, e) {
|
|
283
283
|
let r = null;
|
|
@@ -310,8 +310,8 @@ function Dt(t) {
|
|
|
310
310
|
function yt(t) {
|
|
311
311
|
return function(r = {}) {
|
|
312
312
|
const n = t.getMonitor(), i = t.getRegistry();
|
|
313
|
-
St(n), bt(n).forEach((
|
|
314
|
-
const c = Ot(
|
|
313
|
+
St(n), bt(n).forEach((o, a) => {
|
|
314
|
+
const c = Ot(o, a, i, n), d = {
|
|
315
315
|
type: j,
|
|
316
316
|
payload: {
|
|
317
317
|
dropResult: Dt({}, r, c)
|
|
@@ -326,11 +326,11 @@ function St(t) {
|
|
|
326
326
|
}
|
|
327
327
|
function Ot(t, e, r, n) {
|
|
328
328
|
const i = r.getTarget(t);
|
|
329
|
-
let
|
|
330
|
-
return Tt(
|
|
329
|
+
let s = i ? i.drop(n, t) : void 0;
|
|
330
|
+
return Tt(s), typeof s > "u" && (s = e === 0 ? {} : n.getDropResult()), s;
|
|
331
331
|
}
|
|
332
332
|
function Tt(t) {
|
|
333
|
-
l(typeof t > "u" ||
|
|
333
|
+
l(typeof t > "u" || we(t), "Drop result must either be an object or undefined.");
|
|
334
334
|
}
|
|
335
335
|
function bt(t) {
|
|
336
336
|
const e = t.getTargetIds().filter(t.canDropOnTarget, t);
|
|
@@ -342,23 +342,23 @@ function Et(t) {
|
|
|
342
342
|
It(r);
|
|
343
343
|
const i = r.getSourceId();
|
|
344
344
|
return i != null && (n.getSource(i, !0).endDrag(r, i), n.unpinSource()), {
|
|
345
|
-
type:
|
|
345
|
+
type: B
|
|
346
346
|
};
|
|
347
347
|
};
|
|
348
348
|
}
|
|
349
349
|
function It(t) {
|
|
350
350
|
l(t.isDragging(), "Cannot call endDrag while not dragging.");
|
|
351
351
|
}
|
|
352
|
-
function
|
|
352
|
+
function X(t, e) {
|
|
353
353
|
return e === null ? t === null : Array.isArray(t) ? t.some(
|
|
354
354
|
(r) => r === e
|
|
355
355
|
) : t === e;
|
|
356
356
|
}
|
|
357
|
-
function
|
|
357
|
+
function Ct(t) {
|
|
358
358
|
return function(r, { clientOffset: n } = {}) {
|
|
359
|
-
|
|
360
|
-
const i = r.slice(0),
|
|
361
|
-
return Pt(i,
|
|
359
|
+
wt(r);
|
|
360
|
+
const i = r.slice(0), s = t.getMonitor(), o = t.getRegistry(), a = s.getItemType();
|
|
361
|
+
return Pt(i, o, a), Nt(i, s, o), xt(i, s, o), {
|
|
362
362
|
type: H,
|
|
363
363
|
payload: {
|
|
364
364
|
targetIds: i,
|
|
@@ -367,7 +367,7 @@ function wt(t) {
|
|
|
367
367
|
};
|
|
368
368
|
};
|
|
369
369
|
}
|
|
370
|
-
function
|
|
370
|
+
function wt(t) {
|
|
371
371
|
l(Array.isArray(t), "Expected targetIds to be an array.");
|
|
372
372
|
}
|
|
373
373
|
function Nt(t, e, r) {
|
|
@@ -375,14 +375,14 @@ function Nt(t, e, r) {
|
|
|
375
375
|
for (let n = 0; n < t.length; n++) {
|
|
376
376
|
const i = t[n];
|
|
377
377
|
l(t.lastIndexOf(i) === n, "Expected targetIds to be unique in the passed array.");
|
|
378
|
-
const
|
|
379
|
-
l(
|
|
378
|
+
const s = r.getTarget(i);
|
|
379
|
+
l(s, "Expected targetIds to be registered.");
|
|
380
380
|
}
|
|
381
381
|
}
|
|
382
382
|
function Pt(t, e, r) {
|
|
383
383
|
for (let n = t.length - 1; n >= 0; n--) {
|
|
384
|
-
const i = t[n],
|
|
385
|
-
|
|
384
|
+
const i = t[n], s = e.getTargetType(i);
|
|
385
|
+
X(s, r) || t.splice(n, 1);
|
|
386
386
|
}
|
|
387
387
|
}
|
|
388
388
|
function xt(t, e, r) {
|
|
@@ -402,7 +402,7 @@ function Mt(t) {
|
|
|
402
402
|
return {
|
|
403
403
|
beginDrag: gt(t),
|
|
404
404
|
publishDragSource: Rt(t),
|
|
405
|
-
hover:
|
|
405
|
+
hover: Ct(t),
|
|
406
406
|
drop: yt(t),
|
|
407
407
|
endDrag: Et(t)
|
|
408
408
|
};
|
|
@@ -422,16 +422,16 @@ class _t {
|
|
|
422
422
|
}
|
|
423
423
|
getActions() {
|
|
424
424
|
const e = this, { dispatch: r } = this.store;
|
|
425
|
-
function n(
|
|
426
|
-
return (...
|
|
427
|
-
const a =
|
|
425
|
+
function n(s) {
|
|
426
|
+
return (...o) => {
|
|
427
|
+
const a = s.apply(e, o);
|
|
428
428
|
typeof a < "u" && r(a);
|
|
429
429
|
};
|
|
430
430
|
}
|
|
431
431
|
const i = Mt(this);
|
|
432
|
-
return Object.keys(i).reduce((
|
|
433
|
-
const a = i[
|
|
434
|
-
return o
|
|
432
|
+
return Object.keys(i).reduce((s, o) => {
|
|
433
|
+
const a = i[o];
|
|
434
|
+
return s[o] = n(a), s;
|
|
435
435
|
}, {});
|
|
436
436
|
}
|
|
437
437
|
dispatch(e) {
|
|
@@ -475,15 +475,15 @@ class jt {
|
|
|
475
475
|
const { handlerIds: n } = r;
|
|
476
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.");
|
|
477
477
|
let i = this.store.getState().stateId;
|
|
478
|
-
const
|
|
479
|
-
const
|
|
478
|
+
const s = () => {
|
|
479
|
+
const o = this.store.getState(), a = o.stateId;
|
|
480
480
|
try {
|
|
481
|
-
a === i || a === i + 1 && !Ht(
|
|
481
|
+
a === i || a === i + 1 && !Ht(o.dirtyHandlerIds, n) || e();
|
|
482
482
|
} finally {
|
|
483
483
|
i = a;
|
|
484
484
|
}
|
|
485
485
|
};
|
|
486
|
-
return this.store.subscribe(
|
|
486
|
+
return this.store.subscribe(s);
|
|
487
487
|
}
|
|
488
488
|
subscribeToOffsetChange(e) {
|
|
489
489
|
l(typeof e == "function", "listener must be a function.");
|
|
@@ -507,7 +507,7 @@ class jt {
|
|
|
507
507
|
if (l(r, `Expected to find a valid target. targetId=${e}`), !this.isDragging() || this.didDrop())
|
|
508
508
|
return !1;
|
|
509
509
|
const n = this.registry.getTargetType(e), i = this.getItemType();
|
|
510
|
-
return
|
|
510
|
+
return X(n, i) && r.canDrop(this, e);
|
|
511
511
|
}
|
|
512
512
|
isDragging() {
|
|
513
513
|
return !!this.getItemType();
|
|
@@ -529,14 +529,14 @@ class jt {
|
|
|
529
529
|
const { shallow: n } = r;
|
|
530
530
|
if (!this.isDragging())
|
|
531
531
|
return !1;
|
|
532
|
-
const i = this.registry.getTargetType(e),
|
|
533
|
-
if (
|
|
532
|
+
const i = this.registry.getTargetType(e), s = this.getItemType();
|
|
533
|
+
if (s && !X(i, s))
|
|
534
534
|
return !1;
|
|
535
|
-
const
|
|
536
|
-
if (!
|
|
535
|
+
const o = this.getTargetIds();
|
|
536
|
+
if (!o.length)
|
|
537
537
|
return !1;
|
|
538
|
-
const a =
|
|
539
|
-
return n ? a ===
|
|
538
|
+
const a = o.indexOf(e);
|
|
539
|
+
return n ? a === o.length - 1 : a > -1;
|
|
540
540
|
}
|
|
541
541
|
getItemType() {
|
|
542
542
|
return this.store.getState().dragOperation.itemType;
|
|
@@ -587,7 +587,7 @@ function xe(t) {
|
|
|
587
587
|
}
|
|
588
588
|
};
|
|
589
589
|
}
|
|
590
|
-
function
|
|
590
|
+
function Bt(t) {
|
|
591
591
|
let e = 1;
|
|
592
592
|
const r = new Pe(t), n = document.createTextNode("");
|
|
593
593
|
return r.observe(n, {
|
|
@@ -596,7 +596,7 @@ function Ut(t) {
|
|
|
596
596
|
e = -e, n.data = e;
|
|
597
597
|
};
|
|
598
598
|
}
|
|
599
|
-
const
|
|
599
|
+
const Ut = typeof Pe == "function" ? (
|
|
600
600
|
// reliably everywhere they are implemented.
|
|
601
601
|
// They are implemented in all modern browsers.
|
|
602
602
|
//
|
|
@@ -607,7 +607,7 @@ const Vt = typeof Pe == "function" ? (
|
|
|
607
607
|
// - iPad Safari 6-7.1
|
|
608
608
|
// - iPhone Safari 7-7.1
|
|
609
609
|
// - Safari 6-7
|
|
610
|
-
|
|
610
|
+
Bt
|
|
611
611
|
) : (
|
|
612
612
|
// task queue, are implemented in Internet Explorer 10, Safari 5.0-1, and Opera
|
|
613
613
|
// 11-12, and in web workers in many engines.
|
|
@@ -635,7 +635,7 @@ const Vt = typeof Pe == "function" ? (
|
|
|
635
635
|
// - Lynx 2.8.7
|
|
636
636
|
xe
|
|
637
637
|
);
|
|
638
|
-
class
|
|
638
|
+
class Vt {
|
|
639
639
|
// Use the fastest means possible to execute a task in its own turn, with
|
|
640
640
|
// priority over other events including IO, animation, reflow, and redraw
|
|
641
641
|
// events in browsers.
|
|
@@ -664,13 +664,13 @@ class Ft {
|
|
|
664
664
|
e.length = 0, this.index = 0, this.flushing = !1;
|
|
665
665
|
}, this.registerPendingError = (e) => {
|
|
666
666
|
this.pendingErrors.push(e), this.requestErrorThrow();
|
|
667
|
-
}, this.requestFlush =
|
|
667
|
+
}, this.requestFlush = Ut(this.flush), this.requestErrorThrow = xe(() => {
|
|
668
668
|
if (this.pendingErrors.length)
|
|
669
669
|
throw this.pendingErrors.shift();
|
|
670
670
|
});
|
|
671
671
|
}
|
|
672
672
|
}
|
|
673
|
-
class
|
|
673
|
+
class Ft {
|
|
674
674
|
call() {
|
|
675
675
|
try {
|
|
676
676
|
this.task && this.task();
|
|
@@ -686,7 +686,7 @@ class Bt {
|
|
|
686
686
|
}
|
|
687
687
|
class qt {
|
|
688
688
|
create(e) {
|
|
689
|
-
const r = this.freeTasks, n = r.length ? r.pop() : new
|
|
689
|
+
const r = this.freeTasks, n = r.length ? r.pop() : new Ft(
|
|
690
690
|
this.onError,
|
|
691
691
|
(i) => r[r.length] = i
|
|
692
692
|
);
|
|
@@ -696,11 +696,11 @@ class qt {
|
|
|
696
696
|
this.onError = e, this.freeTasks = [];
|
|
697
697
|
}
|
|
698
698
|
}
|
|
699
|
-
const Re = new
|
|
699
|
+
const Re = new Vt(), $t = new qt(Re.registerPendingError);
|
|
700
700
|
function Gt(t) {
|
|
701
701
|
Re.enqueueTask($t.create(t));
|
|
702
702
|
}
|
|
703
|
-
const ne = "dnd-core/ADD_SOURCE", ie = "dnd-core/ADD_TARGET",
|
|
703
|
+
const ne = "dnd-core/ADD_SOURCE", ie = "dnd-core/ADD_TARGET", se = "dnd-core/REMOVE_SOURCE", U = "dnd-core/REMOVE_TARGET";
|
|
704
704
|
function Yt(t) {
|
|
705
705
|
return {
|
|
706
706
|
type: ne,
|
|
@@ -709,7 +709,7 @@ function Yt(t) {
|
|
|
709
709
|
}
|
|
710
710
|
};
|
|
711
711
|
}
|
|
712
|
-
function
|
|
712
|
+
function zt(t) {
|
|
713
713
|
return {
|
|
714
714
|
type: ie,
|
|
715
715
|
payload: {
|
|
@@ -719,30 +719,30 @@ function Xt(t) {
|
|
|
719
719
|
}
|
|
720
720
|
function Wt(t) {
|
|
721
721
|
return {
|
|
722
|
-
type:
|
|
722
|
+
type: se,
|
|
723
723
|
payload: {
|
|
724
724
|
sourceId: t
|
|
725
725
|
}
|
|
726
726
|
};
|
|
727
727
|
}
|
|
728
|
-
function
|
|
728
|
+
function Xt(t) {
|
|
729
729
|
return {
|
|
730
|
-
type:
|
|
730
|
+
type: U,
|
|
731
731
|
payload: {
|
|
732
732
|
targetId: t
|
|
733
733
|
}
|
|
734
734
|
};
|
|
735
735
|
}
|
|
736
|
-
function
|
|
736
|
+
function Zt(t) {
|
|
737
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.");
|
|
738
738
|
}
|
|
739
|
-
function
|
|
739
|
+
function Qt(t) {
|
|
740
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.");
|
|
741
741
|
}
|
|
742
|
-
function
|
|
742
|
+
function Z(t, e) {
|
|
743
743
|
if (e && Array.isArray(t)) {
|
|
744
744
|
t.forEach(
|
|
745
|
-
(r) =>
|
|
745
|
+
(r) => Z(r, !1)
|
|
746
746
|
);
|
|
747
747
|
return;
|
|
748
748
|
}
|
|
@@ -752,12 +752,12 @@ var T;
|
|
|
752
752
|
(function(t) {
|
|
753
753
|
t.SOURCE = "SOURCE", t.TARGET = "TARGET";
|
|
754
754
|
})(T || (T = {}));
|
|
755
|
-
let
|
|
756
|
-
function
|
|
757
|
-
return
|
|
755
|
+
let Kt = 0;
|
|
756
|
+
function Jt() {
|
|
757
|
+
return Kt++;
|
|
758
758
|
}
|
|
759
759
|
function er(t) {
|
|
760
|
-
const e =
|
|
760
|
+
const e = Jt().toString();
|
|
761
761
|
switch (t) {
|
|
762
762
|
case T.SOURCE:
|
|
763
763
|
return `S${e}`;
|
|
@@ -781,8 +781,8 @@ function pe(t, e) {
|
|
|
781
781
|
const r = t.entries();
|
|
782
782
|
let n = !1;
|
|
783
783
|
do {
|
|
784
|
-
const { done: i, value: [,
|
|
785
|
-
if (
|
|
784
|
+
const { done: i, value: [, s] } = r.next();
|
|
785
|
+
if (s === e)
|
|
786
786
|
return !0;
|
|
787
787
|
n = !!i;
|
|
788
788
|
} while (!n);
|
|
@@ -790,14 +790,14 @@ function pe(t, e) {
|
|
|
790
790
|
}
|
|
791
791
|
class tr {
|
|
792
792
|
addSource(e, r) {
|
|
793
|
-
|
|
793
|
+
Z(e), Zt(r);
|
|
794
794
|
const n = this.addHandler(T.SOURCE, e, r);
|
|
795
795
|
return this.store.dispatch(Yt(n)), n;
|
|
796
796
|
}
|
|
797
797
|
addTarget(e, r) {
|
|
798
|
-
|
|
798
|
+
Z(e, !0), Qt(r);
|
|
799
799
|
const n = this.addHandler(T.TARGET, e, r);
|
|
800
|
-
return this.store.dispatch(
|
|
800
|
+
return this.store.dispatch(zt(n)), n;
|
|
801
801
|
}
|
|
802
802
|
containsHandler(e) {
|
|
803
803
|
return pe(this.dragSources, e) || pe(this.dropTargets, e);
|
|
@@ -826,7 +826,7 @@ class tr {
|
|
|
826
826
|
});
|
|
827
827
|
}
|
|
828
828
|
removeTarget(e) {
|
|
829
|
-
l(this.getTarget(e), "Expected an existing target."), this.store.dispatch(
|
|
829
|
+
l(this.getTarget(e), "Expected an existing target."), this.store.dispatch(Xt(e)), this.dropTargets.delete(e), this.types.delete(e);
|
|
830
830
|
}
|
|
831
831
|
pinSource(e) {
|
|
832
832
|
const r = this.getSource(e);
|
|
@@ -855,18 +855,18 @@ function ir(t, e, r = rr) {
|
|
|
855
855
|
return !1;
|
|
856
856
|
return !0;
|
|
857
857
|
}
|
|
858
|
-
function
|
|
858
|
+
function sr(t = R, e) {
|
|
859
859
|
switch (e.type) {
|
|
860
860
|
case H:
|
|
861
861
|
break;
|
|
862
862
|
case ne:
|
|
863
863
|
case ie:
|
|
864
|
-
case
|
|
865
|
-
case
|
|
864
|
+
case U:
|
|
865
|
+
case se:
|
|
866
866
|
return R;
|
|
867
867
|
case A:
|
|
868
868
|
case te:
|
|
869
|
-
case
|
|
869
|
+
case B:
|
|
870
870
|
case j:
|
|
871
871
|
default:
|
|
872
872
|
return re;
|
|
@@ -874,10 +874,10 @@ function or(t = R, e) {
|
|
|
874
874
|
const { targetIds: r = [], prevTargetIds: n = [] } = e.payload, i = ut(r, n);
|
|
875
875
|
if (!(i.length > 0 || !ir(r, n)))
|
|
876
876
|
return R;
|
|
877
|
-
const
|
|
878
|
-
return
|
|
877
|
+
const o = n[n.length - 1], a = r[r.length - 1];
|
|
878
|
+
return o !== a && (o && i.push(o), a && i.push(a)), i;
|
|
879
879
|
}
|
|
880
|
-
function
|
|
880
|
+
function or(t, e, r) {
|
|
881
881
|
return e in t ? Object.defineProperty(t, e, {
|
|
882
882
|
value: r,
|
|
883
883
|
enumerable: !0,
|
|
@@ -891,7 +891,7 @@ function ar(t) {
|
|
|
891
891
|
typeof Object.getOwnPropertySymbols == "function" && (n = n.concat(Object.getOwnPropertySymbols(r).filter(function(i) {
|
|
892
892
|
return Object.getOwnPropertyDescriptor(r, i).enumerable;
|
|
893
893
|
}))), n.forEach(function(i) {
|
|
894
|
-
|
|
894
|
+
or(t, i, r[i]);
|
|
895
895
|
});
|
|
896
896
|
}
|
|
897
897
|
return t;
|
|
@@ -915,7 +915,7 @@ function cr(t = me, e) {
|
|
|
915
915
|
return nr(t.clientOffset, r.clientOffset) ? t : ar({}, t, {
|
|
916
916
|
clientOffset: r.clientOffset
|
|
917
917
|
});
|
|
918
|
-
case
|
|
918
|
+
case B:
|
|
919
919
|
case j:
|
|
920
920
|
return me;
|
|
921
921
|
default:
|
|
@@ -970,7 +970,7 @@ function dr(t = lr, e) {
|
|
|
970
970
|
return P({}, t, {
|
|
971
971
|
targetIds: r.targetIds
|
|
972
972
|
});
|
|
973
|
-
case
|
|
973
|
+
case U:
|
|
974
974
|
return t.targetIds.indexOf(r.targetId) === -1 ? t : P({}, t, {
|
|
975
975
|
targetIds: ct(t.targetIds, r.targetId)
|
|
976
976
|
});
|
|
@@ -980,7 +980,7 @@ function dr(t = lr, e) {
|
|
|
980
980
|
didDrop: !0,
|
|
981
981
|
targetIds: []
|
|
982
982
|
});
|
|
983
|
-
case
|
|
983
|
+
case B:
|
|
984
984
|
return P({}, t, {
|
|
985
985
|
itemType: null,
|
|
986
986
|
item: null,
|
|
@@ -999,8 +999,8 @@ function gr(t = 0, e) {
|
|
|
999
999
|
case ne:
|
|
1000
1000
|
case ie:
|
|
1001
1001
|
return t + 1;
|
|
1002
|
-
case
|
|
1003
|
-
case
|
|
1002
|
+
case se:
|
|
1003
|
+
case U:
|
|
1004
1004
|
return t - 1;
|
|
1005
1005
|
default:
|
|
1006
1006
|
return t;
|
|
@@ -1030,7 +1030,7 @@ function pr(t) {
|
|
|
1030
1030
|
}
|
|
1031
1031
|
function mr(t = {}, e) {
|
|
1032
1032
|
return {
|
|
1033
|
-
dirtyHandlerIds:
|
|
1033
|
+
dirtyHandlerIds: sr(t.dirtyHandlerIds, {
|
|
1034
1034
|
type: e.type,
|
|
1035
1035
|
payload: pr({}, e.payload, {
|
|
1036
1036
|
prevTargetIds: at(t, "dragOperation.targetIds", [])
|
|
@@ -1043,12 +1043,12 @@ function mr(t = {}, e) {
|
|
|
1043
1043
|
};
|
|
1044
1044
|
}
|
|
1045
1045
|
function vr(t, e = void 0, r = {}, n = !1) {
|
|
1046
|
-
const i = Dr(n),
|
|
1047
|
-
return
|
|
1046
|
+
const i = Dr(n), s = new jt(i, new tr(i)), o = new _t(i, s), a = t(o, e, r);
|
|
1047
|
+
return o.receiveBackend(a), o;
|
|
1048
1048
|
}
|
|
1049
1049
|
function Dr(t) {
|
|
1050
1050
|
const e = typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION__;
|
|
1051
|
-
return
|
|
1051
|
+
return Ce(mr, t && e && e({
|
|
1052
1052
|
name: "dnd-core",
|
|
1053
1053
|
instanceId: "dnd-core"
|
|
1054
1054
|
}));
|
|
@@ -1057,31 +1057,31 @@ function yr(t, e) {
|
|
|
1057
1057
|
if (t == null) return {};
|
|
1058
1058
|
var r = Sr(t, e), n, i;
|
|
1059
1059
|
if (Object.getOwnPropertySymbols) {
|
|
1060
|
-
var
|
|
1061
|
-
for (i = 0; i <
|
|
1062
|
-
n =
|
|
1060
|
+
var s = Object.getOwnPropertySymbols(t);
|
|
1061
|
+
for (i = 0; i < s.length; i++)
|
|
1062
|
+
n = s[i], !(e.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(t, n) && (r[n] = t[n]);
|
|
1063
1063
|
}
|
|
1064
1064
|
return r;
|
|
1065
1065
|
}
|
|
1066
1066
|
function Sr(t, e) {
|
|
1067
1067
|
if (t == null) return {};
|
|
1068
|
-
var r = {}, n = Object.keys(t), i,
|
|
1069
|
-
for (
|
|
1070
|
-
i = n[
|
|
1068
|
+
var r = {}, n = Object.keys(t), i, s;
|
|
1069
|
+
for (s = 0; s < n.length; s++)
|
|
1070
|
+
i = n[s], !(e.indexOf(i) >= 0) && (r[i] = t[i]);
|
|
1071
1071
|
return r;
|
|
1072
1072
|
}
|
|
1073
1073
|
let ve = 0;
|
|
1074
|
-
const L =
|
|
1074
|
+
const L = Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");
|
|
1075
1075
|
var Or = /* @__PURE__ */ Ge(function(e) {
|
|
1076
1076
|
var { children: r } = e, n = yr(e, [
|
|
1077
1077
|
"children"
|
|
1078
1078
|
]);
|
|
1079
|
-
const [i,
|
|
1079
|
+
const [i, s] = Tr(n);
|
|
1080
1080
|
return k(() => {
|
|
1081
|
-
if (
|
|
1082
|
-
const
|
|
1081
|
+
if (s) {
|
|
1082
|
+
const o = Me();
|
|
1083
1083
|
return ++ve, () => {
|
|
1084
|
-
--ve === 0 && (
|
|
1084
|
+
--ve === 0 && (o[L] = null);
|
|
1085
1085
|
};
|
|
1086
1086
|
}
|
|
1087
1087
|
}, []), /* @__PURE__ */ m(Ie.Provider, {
|
|
@@ -1118,7 +1118,7 @@ function Er() {
|
|
|
1118
1118
|
if (e === r) return !0;
|
|
1119
1119
|
if (e && r && typeof e == "object" && typeof r == "object") {
|
|
1120
1120
|
if (e.constructor !== r.constructor) return !1;
|
|
1121
|
-
var n, i,
|
|
1121
|
+
var n, i, s;
|
|
1122
1122
|
if (Array.isArray(e)) {
|
|
1123
1123
|
if (n = e.length, n != r.length) return !1;
|
|
1124
1124
|
for (i = n; i-- !== 0; )
|
|
@@ -1128,12 +1128,12 @@ function Er() {
|
|
|
1128
1128
|
if (e.constructor === RegExp) return e.source === r.source && e.flags === r.flags;
|
|
1129
1129
|
if (e.valueOf !== Object.prototype.valueOf) return e.valueOf() === r.valueOf();
|
|
1130
1130
|
if (e.toString !== Object.prototype.toString) return e.toString() === r.toString();
|
|
1131
|
-
if (
|
|
1131
|
+
if (s = Object.keys(e), n = s.length, n !== Object.keys(r).length) return !1;
|
|
1132
1132
|
for (i = n; i-- !== 0; )
|
|
1133
|
-
if (!Object.prototype.hasOwnProperty.call(r,
|
|
1133
|
+
if (!Object.prototype.hasOwnProperty.call(r, s[i])) return !1;
|
|
1134
1134
|
for (i = n; i-- !== 0; ) {
|
|
1135
|
-
var
|
|
1136
|
-
if (!t(e[
|
|
1135
|
+
var o = s[i];
|
|
1136
|
+
if (!t(e[o], r[o])) return !1;
|
|
1137
1137
|
}
|
|
1138
1138
|
return !0;
|
|
1139
1139
|
}
|
|
@@ -1141,31 +1141,31 @@ function Er() {
|
|
|
1141
1141
|
}), q;
|
|
1142
1142
|
}
|
|
1143
1143
|
var Ir = Er();
|
|
1144
|
-
const
|
|
1145
|
-
function
|
|
1144
|
+
const Cr = /* @__PURE__ */ et(Ir), w = typeof window < "u" ? Ye : k;
|
|
1145
|
+
function wr(t, e, r) {
|
|
1146
1146
|
const [n, i] = be(
|
|
1147
1147
|
() => e(t)
|
|
1148
|
-
),
|
|
1149
|
-
const
|
|
1150
|
-
|
|
1148
|
+
), s = Ee(() => {
|
|
1149
|
+
const o = e(t);
|
|
1150
|
+
Cr(n, o) || (i(o), r && r());
|
|
1151
1151
|
}, [
|
|
1152
1152
|
n,
|
|
1153
1153
|
t,
|
|
1154
1154
|
r
|
|
1155
1155
|
]);
|
|
1156
|
-
return
|
|
1156
|
+
return w(s), [
|
|
1157
1157
|
n,
|
|
1158
|
-
|
|
1158
|
+
s
|
|
1159
1159
|
];
|
|
1160
1160
|
}
|
|
1161
1161
|
function Nr(t, e, r) {
|
|
1162
|
-
const [n, i] =
|
|
1163
|
-
return
|
|
1164
|
-
const
|
|
1165
|
-
if (
|
|
1162
|
+
const [n, i] = wr(t, e, r);
|
|
1163
|
+
return w(function() {
|
|
1164
|
+
const o = t.getHandlerId();
|
|
1165
|
+
if (o != null)
|
|
1166
1166
|
return t.subscribeToStateChange(i, {
|
|
1167
1167
|
handlerIds: [
|
|
1168
|
-
|
|
1168
|
+
o
|
|
1169
1169
|
]
|
|
1170
1170
|
});
|
|
1171
1171
|
}, [
|
|
@@ -1353,7 +1353,7 @@ function Lr(t, e, r) {
|
|
|
1353
1353
|
() => n.removeSource(i)
|
|
1354
1354
|
];
|
|
1355
1355
|
}
|
|
1356
|
-
function
|
|
1356
|
+
function Q(t, e, r, n) {
|
|
1357
1357
|
let i;
|
|
1358
1358
|
if (i !== void 0)
|
|
1359
1359
|
return !!i;
|
|
@@ -1361,12 +1361,12 @@ function K(t, e, r, n) {
|
|
|
1361
1361
|
return !0;
|
|
1362
1362
|
if (typeof t != "object" || !t || typeof e != "object" || !e)
|
|
1363
1363
|
return !1;
|
|
1364
|
-
const
|
|
1365
|
-
if (
|
|
1364
|
+
const s = Object.keys(t), o = Object.keys(e);
|
|
1365
|
+
if (s.length !== o.length)
|
|
1366
1366
|
return !1;
|
|
1367
1367
|
const a = Object.prototype.hasOwnProperty.bind(e);
|
|
1368
|
-
for (let c = 0; c <
|
|
1369
|
-
const d =
|
|
1368
|
+
for (let c = 0; c < s.length; c++) {
|
|
1369
|
+
const d = s[c];
|
|
1370
1370
|
if (!a(d))
|
|
1371
1371
|
return !1;
|
|
1372
1372
|
const f = t[d], p = e[d];
|
|
@@ -1375,7 +1375,7 @@ function K(t, e, r, n) {
|
|
|
1375
1375
|
}
|
|
1376
1376
|
return !0;
|
|
1377
1377
|
}
|
|
1378
|
-
function
|
|
1378
|
+
function K(t) {
|
|
1379
1379
|
return (
|
|
1380
1380
|
// eslint-disable-next-line no-prototype-builtins
|
|
1381
1381
|
t !== null && typeof t == "object" && Object.prototype.hasOwnProperty.call(t, "current")
|
|
@@ -1389,12 +1389,12 @@ function kr(t) {
|
|
|
1389
1389
|
}
|
|
1390
1390
|
function Ar(t) {
|
|
1391
1391
|
return (e = null, r = null) => {
|
|
1392
|
-
if (!
|
|
1393
|
-
const
|
|
1394
|
-
return t(
|
|
1392
|
+
if (!ze(e)) {
|
|
1393
|
+
const s = e;
|
|
1394
|
+
return t(s, r), s;
|
|
1395
1395
|
}
|
|
1396
1396
|
const n = e;
|
|
1397
|
-
return kr(n), Hr(n, r ? (
|
|
1397
|
+
return kr(n), Hr(n, r ? (s) => t(s, r) : t);
|
|
1398
1398
|
};
|
|
1399
1399
|
}
|
|
1400
1400
|
function ke(t) {
|
|
@@ -1469,10 +1469,10 @@ class jr {
|
|
|
1469
1469
|
return this.lastConnectedDragPreview !== this.dragPreview;
|
|
1470
1470
|
}
|
|
1471
1471
|
didDragSourceOptionsChange() {
|
|
1472
|
-
return !
|
|
1472
|
+
return !Q(this.lastConnectedDragSourceOptions, this.dragSourceOptions);
|
|
1473
1473
|
}
|
|
1474
1474
|
didDragPreviewOptionsChange() {
|
|
1475
|
-
return !
|
|
1475
|
+
return !Q(this.lastConnectedDragPreviewOptions, this.dragPreviewOptions);
|
|
1476
1476
|
}
|
|
1477
1477
|
disconnectDragSource() {
|
|
1478
1478
|
this.dragSourceUnsubscribe && (this.dragSourceUnsubscribe(), this.dragSourceUnsubscribe = void 0);
|
|
@@ -1495,15 +1495,15 @@ class jr {
|
|
|
1495
1495
|
constructor(e) {
|
|
1496
1496
|
this.hooks = ke({
|
|
1497
1497
|
dragSource: (r, n) => {
|
|
1498
|
-
this.clearDragSource(), this.dragSourceOptions = n || null,
|
|
1498
|
+
this.clearDragSource(), this.dragSourceOptions = n || null, K(r) ? this.dragSourceRef = r : this.dragSourceNode = r, this.reconnectDragSource();
|
|
1499
1499
|
},
|
|
1500
1500
|
dragPreview: (r, n) => {
|
|
1501
|
-
this.clearDragPreview(), this.dragPreviewOptions = n || null,
|
|
1501
|
+
this.clearDragPreview(), this.dragPreviewOptions = n || null, K(r) ? this.dragPreviewRef = r : this.dragPreviewNode = r, this.reconnectDragPreview();
|
|
1502
1502
|
}
|
|
1503
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;
|
|
1504
1504
|
}
|
|
1505
1505
|
}
|
|
1506
|
-
class
|
|
1506
|
+
class Br {
|
|
1507
1507
|
get connectTarget() {
|
|
1508
1508
|
return this.dropTarget;
|
|
1509
1509
|
}
|
|
@@ -1535,7 +1535,7 @@ class Ur {
|
|
|
1535
1535
|
return this.lastConnectedDropTarget !== this.dropTarget;
|
|
1536
1536
|
}
|
|
1537
1537
|
didOptionsChange() {
|
|
1538
|
-
return !
|
|
1538
|
+
return !Q(this.lastConnectedDropTargetOptions, this.dropTargetOptions);
|
|
1539
1539
|
}
|
|
1540
1540
|
disconnectDropTarget() {
|
|
1541
1541
|
this.unsubscribeDropTarget && (this.unsubscribeDropTarget(), this.unsubscribeDropTarget = void 0);
|
|
@@ -1549,7 +1549,7 @@ class Ur {
|
|
|
1549
1549
|
constructor(e) {
|
|
1550
1550
|
this.hooks = ke({
|
|
1551
1551
|
dropTarget: (r, n) => {
|
|
1552
|
-
this.clearDropTarget(), this.dropTargetOptions = n,
|
|
1552
|
+
this.clearDropTarget(), this.dropTargetOptions = n, K(r) ? this.dropTargetRef = r : this.dropTargetNode = r, this.reconnect();
|
|
1553
1553
|
}
|
|
1554
1554
|
}), this.handlerId = null, this.dropTargetRef = null, this.dropTargetOptionsInternal = null, this.lastConnectedHandlerId = null, this.lastConnectedDropTarget = null, this.lastConnectedDropTargetOptions = null, this.backend = e;
|
|
1555
1555
|
}
|
|
@@ -1558,22 +1558,22 @@ function x() {
|
|
|
1558
1558
|
const { dragDropManager: t } = We(Ie);
|
|
1559
1559
|
return l(t != null, "Expected drag drop context"), t;
|
|
1560
1560
|
}
|
|
1561
|
-
function
|
|
1561
|
+
function Ur(t, e) {
|
|
1562
1562
|
const r = x(), n = b(
|
|
1563
1563
|
() => new jr(r.getBackend()),
|
|
1564
1564
|
[
|
|
1565
1565
|
r
|
|
1566
1566
|
]
|
|
1567
1567
|
);
|
|
1568
|
-
return
|
|
1568
|
+
return w(() => (n.dragSourceOptions = t || null, n.reconnect(), () => n.disconnectDragSource()), [
|
|
1569
1569
|
n,
|
|
1570
1570
|
t
|
|
1571
|
-
]),
|
|
1571
|
+
]), w(() => (n.dragPreviewOptions = e || null, n.reconnect(), () => n.disconnectDragPreview()), [
|
|
1572
1572
|
n,
|
|
1573
1573
|
e
|
|
1574
1574
|
]), n;
|
|
1575
1575
|
}
|
|
1576
|
-
function
|
|
1576
|
+
function Vr() {
|
|
1577
1577
|
const t = x();
|
|
1578
1578
|
return b(
|
|
1579
1579
|
() => new Rr(t),
|
|
@@ -1582,7 +1582,7 @@ function Fr() {
|
|
|
1582
1582
|
]
|
|
1583
1583
|
);
|
|
1584
1584
|
}
|
|
1585
|
-
class
|
|
1585
|
+
class Fr {
|
|
1586
1586
|
beginDrag() {
|
|
1587
1587
|
const e = this.spec, r = this.monitor;
|
|
1588
1588
|
let n = null;
|
|
@@ -1593,8 +1593,8 @@ class Br {
|
|
|
1593
1593
|
return typeof e.canDrag == "boolean" ? e.canDrag : typeof e.canDrag == "function" ? e.canDrag(r) : !0;
|
|
1594
1594
|
}
|
|
1595
1595
|
isDragging(e, r) {
|
|
1596
|
-
const n = this.spec, i = this.monitor, { isDragging:
|
|
1597
|
-
return
|
|
1596
|
+
const n = this.spec, i = this.monitor, { isDragging: s } = n;
|
|
1597
|
+
return s ? s(i) : r === e.getSourceId();
|
|
1598
1598
|
}
|
|
1599
1599
|
endDrag() {
|
|
1600
1600
|
const e = this.spec, r = this.monitor, n = this.connector, { end: i } = e;
|
|
@@ -1606,7 +1606,7 @@ class Br {
|
|
|
1606
1606
|
}
|
|
1607
1607
|
function qr(t, e, r) {
|
|
1608
1608
|
const n = b(
|
|
1609
|
-
() => new
|
|
1609
|
+
() => new Fr(t, e, r),
|
|
1610
1610
|
[
|
|
1611
1611
|
e,
|
|
1612
1612
|
r
|
|
@@ -1627,10 +1627,10 @@ function $r(t) {
|
|
|
1627
1627
|
]);
|
|
1628
1628
|
}
|
|
1629
1629
|
function Gr(t, e, r) {
|
|
1630
|
-
const n = x(), i = qr(t, e, r),
|
|
1631
|
-
|
|
1632
|
-
if (
|
|
1633
|
-
const [a, c] = Lr(
|
|
1630
|
+
const n = x(), i = qr(t, e, r), s = $r(t);
|
|
1631
|
+
w(function() {
|
|
1632
|
+
if (s != null) {
|
|
1633
|
+
const [a, c] = Lr(s, i, n);
|
|
1634
1634
|
return e.receiveHandlerId(a), r.receiveHandlerId(a), c;
|
|
1635
1635
|
}
|
|
1636
1636
|
}, [
|
|
@@ -1638,20 +1638,20 @@ function Gr(t, e, r) {
|
|
|
1638
1638
|
e,
|
|
1639
1639
|
r,
|
|
1640
1640
|
i,
|
|
1641
|
-
|
|
1641
|
+
s
|
|
1642
1642
|
]);
|
|
1643
1643
|
}
|
|
1644
1644
|
function Yr(t, e) {
|
|
1645
1645
|
const r = Le(t);
|
|
1646
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)");
|
|
1647
|
-
const n =
|
|
1647
|
+
const n = Vr(), i = Ur(r.options, r.previewOptions);
|
|
1648
1648
|
return Gr(r, n, i), [
|
|
1649
1649
|
_e(r.collect, n, i),
|
|
1650
1650
|
Pr(i),
|
|
1651
1651
|
xr(i)
|
|
1652
1652
|
];
|
|
1653
1653
|
}
|
|
1654
|
-
function
|
|
1654
|
+
function zr(t) {
|
|
1655
1655
|
return b(
|
|
1656
1656
|
() => t.hooks.dropTarget(),
|
|
1657
1657
|
[
|
|
@@ -1661,16 +1661,16 @@ function Xr(t) {
|
|
|
1661
1661
|
}
|
|
1662
1662
|
function Wr(t) {
|
|
1663
1663
|
const e = x(), r = b(
|
|
1664
|
-
() => new
|
|
1664
|
+
() => new Br(e.getBackend()),
|
|
1665
1665
|
[
|
|
1666
1666
|
e
|
|
1667
1667
|
]
|
|
1668
1668
|
);
|
|
1669
|
-
return
|
|
1669
|
+
return w(() => (r.dropTargetOptions = t || null, r.reconnect(), () => r.disconnectDropTarget()), [
|
|
1670
1670
|
t
|
|
1671
1671
|
]), r;
|
|
1672
1672
|
}
|
|
1673
|
-
function
|
|
1673
|
+
function Xr() {
|
|
1674
1674
|
const t = x();
|
|
1675
1675
|
return b(
|
|
1676
1676
|
() => new Mr(t),
|
|
@@ -1679,7 +1679,7 @@ function zr() {
|
|
|
1679
1679
|
]
|
|
1680
1680
|
);
|
|
1681
1681
|
}
|
|
1682
|
-
function
|
|
1682
|
+
function Zr(t) {
|
|
1683
1683
|
const { accept: e } = t;
|
|
1684
1684
|
return b(() => (l(t.accept != null, "accept must be defined"), Array.isArray(e) ? e : [
|
|
1685
1685
|
e
|
|
@@ -1687,7 +1687,7 @@ function Qr(t) {
|
|
|
1687
1687
|
e
|
|
1688
1688
|
]);
|
|
1689
1689
|
}
|
|
1690
|
-
class
|
|
1690
|
+
class Qr {
|
|
1691
1691
|
canDrop() {
|
|
1692
1692
|
const e = this.spec, r = this.monitor;
|
|
1693
1693
|
return e.canDrop ? e.canDrop(r.getItem(), r) : !0;
|
|
@@ -1705,9 +1705,9 @@ class Kr {
|
|
|
1705
1705
|
this.spec = e, this.monitor = r;
|
|
1706
1706
|
}
|
|
1707
1707
|
}
|
|
1708
|
-
function
|
|
1708
|
+
function Kr(t, e) {
|
|
1709
1709
|
const r = b(
|
|
1710
|
-
() => new
|
|
1710
|
+
() => new Qr(t, e),
|
|
1711
1711
|
[
|
|
1712
1712
|
e
|
|
1713
1713
|
]
|
|
@@ -1718,26 +1718,26 @@ function Jr(t, e) {
|
|
|
1718
1718
|
t
|
|
1719
1719
|
]), r;
|
|
1720
1720
|
}
|
|
1721
|
-
function
|
|
1722
|
-
const n = x(), i =
|
|
1723
|
-
|
|
1724
|
-
const [a, c] = _r(
|
|
1721
|
+
function Jr(t, e, r) {
|
|
1722
|
+
const n = x(), i = Kr(t, e), s = Zr(t);
|
|
1723
|
+
w(function() {
|
|
1724
|
+
const [a, c] = _r(s, i, n);
|
|
1725
1725
|
return e.receiveHandlerId(a), r.receiveHandlerId(a), c;
|
|
1726
1726
|
}, [
|
|
1727
1727
|
n,
|
|
1728
1728
|
e,
|
|
1729
1729
|
i,
|
|
1730
1730
|
r,
|
|
1731
|
-
|
|
1732
|
-
(
|
|
1731
|
+
s.map(
|
|
1732
|
+
(o) => o.toString()
|
|
1733
1733
|
).join("|")
|
|
1734
1734
|
]);
|
|
1735
1735
|
}
|
|
1736
1736
|
function en(t, e) {
|
|
1737
|
-
const r = Le(t), n =
|
|
1738
|
-
return
|
|
1737
|
+
const r = Le(t), n = Xr(), i = Wr(r.options);
|
|
1738
|
+
return Jr(r, n, i), [
|
|
1739
1739
|
_e(r.collect, n, i),
|
|
1740
|
-
|
|
1740
|
+
zr(i)
|
|
1741
1741
|
];
|
|
1742
1742
|
}
|
|
1743
1743
|
function Ae(t) {
|
|
@@ -1750,11 +1750,11 @@ function tn(t, e) {
|
|
|
1750
1750
|
);
|
|
1751
1751
|
}
|
|
1752
1752
|
function rn(t, e) {
|
|
1753
|
-
const r = /* @__PURE__ */ new Set(), n = (
|
|
1753
|
+
const r = /* @__PURE__ */ new Set(), n = (s) => r.add(s);
|
|
1754
1754
|
t.forEach(n), e.forEach(n);
|
|
1755
1755
|
const i = [];
|
|
1756
1756
|
return r.forEach(
|
|
1757
|
-
(
|
|
1757
|
+
(s) => i.push(s)
|
|
1758
1758
|
), i;
|
|
1759
1759
|
}
|
|
1760
1760
|
class nn {
|
|
@@ -1775,7 +1775,7 @@ class nn {
|
|
|
1775
1775
|
this.entered = [], this.isNodeInDocument = e;
|
|
1776
1776
|
}
|
|
1777
1777
|
}
|
|
1778
|
-
class
|
|
1778
|
+
class sn {
|
|
1779
1779
|
initializeExposedProperties() {
|
|
1780
1780
|
Object.keys(this.config.exposeProperties).forEach((e) => {
|
|
1781
1781
|
Object.defineProperty(this.item, e, {
|
|
@@ -1815,21 +1815,21 @@ class on {
|
|
|
1815
1815
|
this.config = e, this.item = {}, this.initializeExposedProperties();
|
|
1816
1816
|
}
|
|
1817
1817
|
}
|
|
1818
|
-
const He = "__NATIVE_FILE__", je = "__NATIVE_URL__",
|
|
1818
|
+
const He = "__NATIVE_FILE__", je = "__NATIVE_URL__", Be = "__NATIVE_TEXT__", Ue = "__NATIVE_HTML__", Se = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1819
1819
|
__proto__: null,
|
|
1820
1820
|
FILE: He,
|
|
1821
|
-
HTML:
|
|
1822
|
-
TEXT:
|
|
1821
|
+
HTML: Ue,
|
|
1822
|
+
TEXT: Be,
|
|
1823
1823
|
URL: je
|
|
1824
1824
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1825
|
-
function
|
|
1825
|
+
function z(t, e, r) {
|
|
1826
1826
|
const n = e.reduce(
|
|
1827
|
-
(i,
|
|
1827
|
+
(i, s) => i || t.getData(s),
|
|
1828
1828
|
""
|
|
1829
1829
|
);
|
|
1830
1830
|
return n ?? r;
|
|
1831
1831
|
}
|
|
1832
|
-
const
|
|
1832
|
+
const J = {
|
|
1833
1833
|
[He]: {
|
|
1834
1834
|
exposeProperties: {
|
|
1835
1835
|
files: (t) => Array.prototype.slice.call(t.files),
|
|
@@ -1840,9 +1840,9 @@ const Z = {
|
|
|
1840
1840
|
"Files"
|
|
1841
1841
|
]
|
|
1842
1842
|
},
|
|
1843
|
-
[
|
|
1843
|
+
[Ue]: {
|
|
1844
1844
|
exposeProperties: {
|
|
1845
|
-
html: (t, e) =>
|
|
1845
|
+
html: (t, e) => z(t, e, ""),
|
|
1846
1846
|
dataTransfer: (t) => t
|
|
1847
1847
|
},
|
|
1848
1848
|
matchesTypes: [
|
|
@@ -1852,7 +1852,7 @@ const Z = {
|
|
|
1852
1852
|
},
|
|
1853
1853
|
[je]: {
|
|
1854
1854
|
exposeProperties: {
|
|
1855
|
-
urls: (t, e) =>
|
|
1855
|
+
urls: (t, e) => z(t, e, "").split(`
|
|
1856
1856
|
`),
|
|
1857
1857
|
dataTransfer: (t) => t
|
|
1858
1858
|
},
|
|
@@ -1861,9 +1861,9 @@ const Z = {
|
|
|
1861
1861
|
"text/uri-list"
|
|
1862
1862
|
]
|
|
1863
1863
|
},
|
|
1864
|
-
[
|
|
1864
|
+
[Be]: {
|
|
1865
1865
|
exposeProperties: {
|
|
1866
|
-
text: (t, e) =>
|
|
1866
|
+
text: (t, e) => z(t, e, ""),
|
|
1867
1867
|
dataTransfer: (t) => t
|
|
1868
1868
|
},
|
|
1869
1869
|
matchesTypes: [
|
|
@@ -1872,19 +1872,19 @@ const Z = {
|
|
|
1872
1872
|
]
|
|
1873
1873
|
}
|
|
1874
1874
|
};
|
|
1875
|
-
function
|
|
1876
|
-
const r =
|
|
1875
|
+
function on(t, e) {
|
|
1876
|
+
const r = J[t];
|
|
1877
1877
|
if (!r)
|
|
1878
1878
|
throw new Error(`native type ${t} has no configuration`);
|
|
1879
|
-
const n = new
|
|
1879
|
+
const n = new sn(r);
|
|
1880
1880
|
return n.loadDataTransfer(e), n;
|
|
1881
1881
|
}
|
|
1882
1882
|
function W(t) {
|
|
1883
1883
|
if (!t)
|
|
1884
1884
|
return null;
|
|
1885
1885
|
const e = Array.prototype.slice.call(t.types || []);
|
|
1886
|
-
return Object.keys(
|
|
1887
|
-
const n =
|
|
1886
|
+
return Object.keys(J).filter((r) => {
|
|
1887
|
+
const n = J[r];
|
|
1888
1888
|
return n?.matchesTypes ? n.matchesTypes.some(
|
|
1889
1889
|
(i) => e.indexOf(i) > -1
|
|
1890
1890
|
) : !1;
|
|
@@ -1892,16 +1892,16 @@ function W(t) {
|
|
|
1892
1892
|
}
|
|
1893
1893
|
const an = Ae(
|
|
1894
1894
|
() => /firefox/i.test(navigator.userAgent)
|
|
1895
|
-
),
|
|
1895
|
+
), Ve = Ae(
|
|
1896
1896
|
() => !!window.safari
|
|
1897
1897
|
);
|
|
1898
1898
|
class Oe {
|
|
1899
1899
|
interpolate(e) {
|
|
1900
|
-
const { xs: r, ys: n, c1s: i, c2s:
|
|
1900
|
+
const { xs: r, ys: n, c1s: i, c2s: s, c3s: o } = this;
|
|
1901
1901
|
let a = r.length - 1;
|
|
1902
1902
|
if (e === r[a])
|
|
1903
1903
|
return n[a];
|
|
1904
|
-
let c = 0, d =
|
|
1904
|
+
let c = 0, d = o.length - 1, f;
|
|
1905
1905
|
for (; c <= d; ) {
|
|
1906
1906
|
f = Math.floor(0.5 * (c + d));
|
|
1907
1907
|
const u = r[f];
|
|
@@ -1914,7 +1914,7 @@ class Oe {
|
|
|
1914
1914
|
}
|
|
1915
1915
|
a = Math.max(0, d);
|
|
1916
1916
|
const p = e - r[a], g = p * p;
|
|
1917
|
-
return n[a] + i[a] * p +
|
|
1917
|
+
return n[a] + i[a] * p + s[a] * g + o[a] * p * g;
|
|
1918
1918
|
}
|
|
1919
1919
|
constructor(e, r) {
|
|
1920
1920
|
const { length: n } = e, i = [];
|
|
@@ -1923,36 +1923,36 @@ class Oe {
|
|
|
1923
1923
|
i.sort(
|
|
1924
1924
|
(u, D) => e[u] < e[D] ? -1 : 1
|
|
1925
1925
|
);
|
|
1926
|
-
const
|
|
1926
|
+
const s = [], o = [];
|
|
1927
1927
|
let a, c;
|
|
1928
1928
|
for (let u = 0; u < n - 1; u++)
|
|
1929
|
-
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], s.push(a), o.push(c / a);
|
|
1930
1930
|
const d = [
|
|
1931
|
-
|
|
1931
|
+
o[0]
|
|
1932
1932
|
];
|
|
1933
|
-
for (let u = 0; u <
|
|
1934
|
-
const D =
|
|
1933
|
+
for (let u = 0; u < s.length - 1; u++) {
|
|
1934
|
+
const D = o[u], h = o[u + 1];
|
|
1935
1935
|
if (D * h <= 0)
|
|
1936
1936
|
d.push(0);
|
|
1937
1937
|
else {
|
|
1938
|
-
a =
|
|
1939
|
-
const v =
|
|
1938
|
+
a = s[u];
|
|
1939
|
+
const v = s[u + 1], y = a + v;
|
|
1940
1940
|
d.push(3 * y / ((y + v) / D + (y + a) / h));
|
|
1941
1941
|
}
|
|
1942
1942
|
}
|
|
1943
|
-
d.push(
|
|
1943
|
+
d.push(o[o.length - 1]);
|
|
1944
1944
|
const f = [], p = [];
|
|
1945
1945
|
let g;
|
|
1946
1946
|
for (let u = 0; u < d.length - 1; u++) {
|
|
1947
|
-
g =
|
|
1948
|
-
const D = d[u], h = 1 /
|
|
1947
|
+
g = o[u];
|
|
1948
|
+
const D = d[u], h = 1 / s[u], v = D + d[u + 1] - g - g;
|
|
1949
1949
|
f.push((g - D - v) * h), p.push(v * h * h);
|
|
1950
1950
|
}
|
|
1951
1951
|
this.xs = e, this.ys = r, this.c1s = d, this.c2s = f, this.c3s = p;
|
|
1952
1952
|
}
|
|
1953
1953
|
}
|
|
1954
1954
|
const cn = 1;
|
|
1955
|
-
function
|
|
1955
|
+
function Fe(t) {
|
|
1956
1956
|
const e = t.nodeType === cn ? t : t.parentElement;
|
|
1957
1957
|
if (!e)
|
|
1958
1958
|
return null;
|
|
@@ -1973,18 +1973,18 @@ function un(t) {
|
|
|
1973
1973
|
return t.nodeName === "IMG" && (an() || !(!((e = document.documentElement) === null || e === void 0) && e.contains(t)));
|
|
1974
1974
|
}
|
|
1975
1975
|
function ln(t, e, r, n) {
|
|
1976
|
-
let i = t ? e.width : r,
|
|
1977
|
-
return
|
|
1976
|
+
let i = t ? e.width : r, s = t ? e.height : n;
|
|
1977
|
+
return Ve() && t && (s /= window.devicePixelRatio, i /= window.devicePixelRatio), {
|
|
1978
1978
|
dragPreviewWidth: i,
|
|
1979
|
-
dragPreviewHeight:
|
|
1979
|
+
dragPreviewHeight: s
|
|
1980
1980
|
};
|
|
1981
1981
|
}
|
|
1982
1982
|
function dn(t, e, r, n, i) {
|
|
1983
|
-
const
|
|
1983
|
+
const s = un(e), a = Fe(s ? t : e), c = {
|
|
1984
1984
|
x: r.x - a.x,
|
|
1985
1985
|
y: r.y - a.y
|
|
1986
|
-
}, { offsetWidth: d, offsetHeight: f } = t, { anchorX: p, anchorY: g } = n, { dragPreviewWidth: u, dragPreviewHeight: D } = ln(
|
|
1987
|
-
let
|
|
1986
|
+
}, { offsetWidth: d, offsetHeight: f } = t, { anchorX: p, anchorY: g } = n, { dragPreviewWidth: u, dragPreviewHeight: D } = ln(s, e, d, f), h = () => {
|
|
1987
|
+
let oe = new Oe([
|
|
1988
1988
|
0,
|
|
1989
1989
|
0.5,
|
|
1990
1990
|
1
|
|
@@ -1996,7 +1996,7 @@ function dn(t, e, r, n, i) {
|
|
|
1996
1996
|
// Dock to the bottom
|
|
1997
1997
|
c.y + D - f
|
|
1998
1998
|
]).interpolate(g);
|
|
1999
|
-
return
|
|
1999
|
+
return Ve() && s && (oe += (window.devicePixelRatio - 1) * D), oe;
|
|
2000
2000
|
}, v = () => new Oe([
|
|
2001
2001
|
0,
|
|
2002
2002
|
0.5,
|
|
@@ -2008,10 +2008,10 @@ function dn(t, e, r, n, i) {
|
|
|
2008
2008
|
c.x / d * u,
|
|
2009
2009
|
// Dock to the right
|
|
2010
2010
|
c.x + u - d
|
|
2011
|
-
]).interpolate(p), { offsetX: y, offsetY: S } = i,
|
|
2011
|
+
]).interpolate(p), { offsetX: y, offsetY: S } = i, C = y === 0 || y, V = S === 0 || S;
|
|
2012
2012
|
return {
|
|
2013
|
-
x:
|
|
2014
|
-
y:
|
|
2013
|
+
x: C ? y : v(),
|
|
2014
|
+
y: V ? S : h()
|
|
2015
2015
|
};
|
|
2016
2016
|
}
|
|
2017
2017
|
class gn {
|
|
@@ -2104,15 +2104,15 @@ class hn {
|
|
|
2104
2104
|
}
|
|
2105
2105
|
connectDragSource(e, r, n) {
|
|
2106
2106
|
this.sourceNodes.set(e, r), this.sourceNodeOptions.set(e, n);
|
|
2107
|
-
const i = (
|
|
2108
|
-
return r.setAttribute("draggable", "true"), r.addEventListener("dragstart", i), r.addEventListener("selectstart",
|
|
2109
|
-
this.sourceNodes.delete(e), this.sourceNodeOptions.delete(e), r.removeEventListener("dragstart", i), r.removeEventListener("selectstart",
|
|
2107
|
+
const i = (o) => this.handleDragStart(o, e), s = (o) => this.handleSelectStart(o);
|
|
2108
|
+
return r.setAttribute("draggable", "true"), r.addEventListener("dragstart", i), r.addEventListener("selectstart", s), () => {
|
|
2109
|
+
this.sourceNodes.delete(e), this.sourceNodeOptions.delete(e), r.removeEventListener("dragstart", i), r.removeEventListener("selectstart", s), r.setAttribute("draggable", "false");
|
|
2110
2110
|
};
|
|
2111
2111
|
}
|
|
2112
2112
|
connectDropTarget(e, r) {
|
|
2113
|
-
const n = (
|
|
2114
|
-
return r.addEventListener("dragenter", n), r.addEventListener("dragover", i), r.addEventListener("drop",
|
|
2115
|
-
r.removeEventListener("dragenter", n), r.removeEventListener("dragover", i), r.removeEventListener("drop",
|
|
2113
|
+
const n = (o) => this.handleDragEnter(o, e), i = (o) => this.handleDragOver(o, e), s = (o) => this.handleDrop(o, e);
|
|
2114
|
+
return r.addEventListener("dragenter", n), r.addEventListener("dragover", i), r.addEventListener("drop", s), () => {
|
|
2115
|
+
r.removeEventListener("dragenter", n), r.removeEventListener("dragover", i), r.removeEventListener("drop", s);
|
|
2116
2116
|
};
|
|
2117
2117
|
}
|
|
2118
2118
|
addEventListeners(e) {
|
|
@@ -2145,7 +2145,7 @@ class hn {
|
|
|
2145
2145
|
);
|
|
2146
2146
|
}
|
|
2147
2147
|
beginDragNativeItem(e, r) {
|
|
2148
|
-
this.clearCurrentDragSourceNode(), this.currentNativeSource =
|
|
2148
|
+
this.clearCurrentDragSourceNode(), this.currentNativeSource = on(e, r), this.currentNativeHandle = this.registry.addSource(e, this.currentNativeSource), this.actions.beginDrag([
|
|
2149
2149
|
this.currentNativeHandle
|
|
2150
2150
|
]);
|
|
2151
2151
|
}
|
|
@@ -2181,8 +2181,8 @@ class hn {
|
|
|
2181
2181
|
}
|
|
2182
2182
|
constructor(e, r, n) {
|
|
2183
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) => {
|
|
2184
|
-
const
|
|
2185
|
-
return
|
|
2184
|
+
const s = this.sourceNodes.get(i);
|
|
2185
|
+
return s && Fe(s) || null;
|
|
2186
2186
|
}, this.endDragNativeItem = () => {
|
|
2187
2187
|
this.isDraggingNativeItem() && (this.actions.endDrag(), this.currentNativeHandle && this.registry.removeSource(this.currentNativeHandle), this.currentNativeHandle = null, this.currentNativeSource = null);
|
|
2188
2188
|
}, this.isNodeInDocument = (i) => !!(i && this.document && this.document.body && this.document.body.contains(i)), this.endDragIfSourceWasRemovedFromDOM = () => {
|
|
@@ -2201,27 +2201,27 @@ class hn {
|
|
|
2201
2201
|
}, this.handleTopDragStart = (i) => {
|
|
2202
2202
|
if (i.defaultPrevented)
|
|
2203
2203
|
return;
|
|
2204
|
-
const { dragStartSourceIds:
|
|
2204
|
+
const { dragStartSourceIds: s } = this;
|
|
2205
2205
|
this.dragStartSourceIds = null;
|
|
2206
|
-
const
|
|
2207
|
-
this.monitor.isDragging() && (this.actions.endDrag(), this.cancelHover()), this.actions.beginDrag(
|
|
2206
|
+
const o = M(i);
|
|
2207
|
+
this.monitor.isDragging() && (this.actions.endDrag(), this.cancelHover()), this.actions.beginDrag(s || [], {
|
|
2208
2208
|
publishSource: !1,
|
|
2209
2209
|
getSourceClientOffset: this.getSourceClientOffset,
|
|
2210
|
-
clientOffset:
|
|
2210
|
+
clientOffset: o
|
|
2211
2211
|
});
|
|
2212
2212
|
const { dataTransfer: a } = i, c = W(a);
|
|
2213
2213
|
if (this.monitor.isDragging()) {
|
|
2214
2214
|
if (a && typeof a.setDragImage == "function") {
|
|
2215
2215
|
const f = this.monitor.getSourceId(), p = this.sourceNodes.get(f), g = this.sourcePreviewNodes.get(f) || p;
|
|
2216
2216
|
if (g) {
|
|
2217
|
-
const { anchorX: u, anchorY: D, offsetX: h, offsetY: v } = this.getCurrentSourcePreviewNodeOptions(),
|
|
2217
|
+
const { anchorX: u, anchorY: D, offsetX: h, offsetY: v } = this.getCurrentSourcePreviewNodeOptions(), C = dn(p, g, o, {
|
|
2218
2218
|
anchorX: u,
|
|
2219
2219
|
anchorY: D
|
|
2220
2220
|
}, {
|
|
2221
2221
|
offsetX: h,
|
|
2222
2222
|
offsetY: v
|
|
2223
2223
|
});
|
|
2224
|
-
a.setDragImage(g,
|
|
2224
|
+
a.setDragImage(g, C.x, C.y);
|
|
2225
2225
|
}
|
|
2226
2226
|
}
|
|
2227
2227
|
try {
|
|
@@ -2245,34 +2245,34 @@ class hn {
|
|
|
2245
2245
|
this.clearCurrentDragSourceNode() && this.monitor.isDragging() && this.actions.endDrag(), this.cancelHover();
|
|
2246
2246
|
}, this.handleTopDragEnterCapture = (i) => {
|
|
2247
2247
|
if (this.dragEnterTargetIds = [], this.isDraggingNativeItem()) {
|
|
2248
|
-
var
|
|
2249
|
-
(
|
|
2248
|
+
var s;
|
|
2249
|
+
(s = this.currentNativeSource) === null || s === void 0 || s.loadDataTransfer(i.dataTransfer);
|
|
2250
2250
|
}
|
|
2251
2251
|
if (!this.enterLeaveCounter.enter(i.target) || this.monitor.isDragging())
|
|
2252
2252
|
return;
|
|
2253
2253
|
const { dataTransfer: a } = i, c = W(a);
|
|
2254
2254
|
c && this.beginDragNativeItem(c, a);
|
|
2255
2255
|
}, this.handleTopDragEnter = (i) => {
|
|
2256
|
-
const { dragEnterTargetIds:
|
|
2256
|
+
const { dragEnterTargetIds: s } = this;
|
|
2257
2257
|
if (this.dragEnterTargetIds = [], !this.monitor.isDragging())
|
|
2258
2258
|
return;
|
|
2259
|
-
this.altKeyPressed = i.altKey,
|
|
2259
|
+
this.altKeyPressed = i.altKey, s.length > 0 && this.actions.hover(s, {
|
|
2260
2260
|
clientOffset: M(i)
|
|
2261
|
-
}),
|
|
2261
|
+
}), s.some(
|
|
2262
2262
|
(a) => this.monitor.canDropOnTarget(a)
|
|
2263
2263
|
) && (i.preventDefault(), i.dataTransfer && (i.dataTransfer.dropEffect = this.getCurrentDropEffect()));
|
|
2264
2264
|
}, this.handleTopDragOverCapture = (i) => {
|
|
2265
2265
|
if (this.dragOverTargetIds = [], this.isDraggingNativeItem()) {
|
|
2266
|
-
var
|
|
2267
|
-
(
|
|
2266
|
+
var s;
|
|
2267
|
+
(s = this.currentNativeSource) === null || s === void 0 || s.loadDataTransfer(i.dataTransfer);
|
|
2268
2268
|
}
|
|
2269
2269
|
}, this.handleTopDragOver = (i) => {
|
|
2270
|
-
const { dragOverTargetIds:
|
|
2270
|
+
const { dragOverTargetIds: s } = this;
|
|
2271
2271
|
if (this.dragOverTargetIds = [], !this.monitor.isDragging()) {
|
|
2272
2272
|
i.preventDefault(), i.dataTransfer && (i.dataTransfer.dropEffect = "none");
|
|
2273
2273
|
return;
|
|
2274
2274
|
}
|
|
2275
|
-
this.altKeyPressed = i.altKey, this.lastClientOffset = M(i), this.scheduleHover(
|
|
2275
|
+
this.altKeyPressed = i.altKey, this.lastClientOffset = M(i), this.scheduleHover(s), (s || []).some(
|
|
2276
2276
|
(a) => this.monitor.canDropOnTarget(a)
|
|
2277
2277
|
) ? (i.preventDefault(), i.dataTransfer && (i.dataTransfer.dropEffect = this.getCurrentDropEffect())) : this.isDraggingNativeItem() ? i.preventDefault() : (i.preventDefault(), i.dataTransfer && (i.dataTransfer.dropEffect = "none"));
|
|
2278
2278
|
}, this.handleTopDragLeaveCapture = (i) => {
|
|
@@ -2282,26 +2282,26 @@ class hn {
|
|
|
2282
2282
|
), this.cancelHover());
|
|
2283
2283
|
}, this.handleTopDropCapture = (i) => {
|
|
2284
2284
|
if (this.dropTargetIds = [], this.isDraggingNativeItem()) {
|
|
2285
|
-
var
|
|
2286
|
-
i.preventDefault(), (
|
|
2285
|
+
var s;
|
|
2286
|
+
i.preventDefault(), (s = this.currentNativeSource) === null || s === void 0 || s.loadDataTransfer(i.dataTransfer);
|
|
2287
2287
|
} else W(i.dataTransfer) && i.preventDefault();
|
|
2288
2288
|
this.enterLeaveCounter.reset();
|
|
2289
2289
|
}, this.handleTopDrop = (i) => {
|
|
2290
|
-
const { dropTargetIds:
|
|
2291
|
-
this.dropTargetIds = [], this.actions.hover(
|
|
2290
|
+
const { dropTargetIds: s } = this;
|
|
2291
|
+
this.dropTargetIds = [], this.actions.hover(s, {
|
|
2292
2292
|
clientOffset: M(i)
|
|
2293
2293
|
}), this.actions.drop({
|
|
2294
2294
|
dropEffect: this.getCurrentDropEffect()
|
|
2295
2295
|
}), this.isDraggingNativeItem() ? this.endDragNativeItem() : this.monitor.isDragging() && this.actions.endDrag(), this.cancelHover();
|
|
2296
2296
|
}, this.handleSelectStart = (i) => {
|
|
2297
|
-
const
|
|
2298
|
-
typeof
|
|
2297
|
+
const s = i.target;
|
|
2298
|
+
typeof s.dragDrop == "function" && (s.tagName === "INPUT" || s.tagName === "SELECT" || s.tagName === "TEXTAREA" || s.isContentEditable || (i.preventDefault(), s.dragDrop()));
|
|
2299
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);
|
|
2300
2300
|
}
|
|
2301
2301
|
}
|
|
2302
2302
|
const pn = function(e, r, n) {
|
|
2303
2303
|
return new hn(e, r, n);
|
|
2304
|
-
}, mn = (t) => /* @__PURE__ */
|
|
2304
|
+
}, mn = (t) => /* @__PURE__ */ E.createElement("svg", { width: 14, height: 14, viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ E.createElement("g", { clipPath: "url(#clip0_2638_2364)" }, /* @__PURE__ */ E.createElement("path", { d: "M5.25 2.84375C5.61244 2.84375 5.90625 3.13756 5.90625 3.5C5.90625 3.86244 5.61244 4.15625 5.25 4.15625C4.88756 4.15625 4.59375 3.86244 4.59375 3.5C4.59375 3.13756 4.88756 2.84375 5.25 2.84375Z", fill: "#2B2B2B", stroke: "#2B2B2B", strokeWidth: 0.4375 }), /* @__PURE__ */ E.createElement("path", { d: "M7.875 3.5C7.875 3.98325 8.26675 4.375 8.75 4.375C9.23325 4.375 9.625 3.98325 9.625 3.5C9.625 3.01675 9.23325 2.625 8.75 2.625C8.26675 2.625 7.875 3.01675 7.875 3.5Z", fill: "#2B2B2B" }), /* @__PURE__ */ E.createElement("path", { d: "M4.375 7C4.375 7.48325 4.76675 7.875 5.25 7.875C5.73325 7.875 6.125 7.48325 6.125 7C6.125 6.51675 5.73325 6.125 5.25 6.125C4.76675 6.125 4.375 6.51675 4.375 7Z", fill: "#2B2B2B" }), /* @__PURE__ */ E.createElement("path", { d: "M7.875 7C7.875 7.48325 8.26675 7.875 8.75 7.875C9.23325 7.875 9.625 7.48325 9.625 7C9.625 6.51675 9.23325 6.125 8.75 6.125C8.26675 6.125 7.875 6.51675 7.875 7Z", fill: "#2B2B2B" }), /* @__PURE__ */ E.createElement("path", { d: "M4.375 10.5C4.375 10.9832 4.76675 11.375 5.25 11.375C5.73325 11.375 6.125 10.9832 6.125 10.5C6.125 10.0168 5.73325 9.625 5.25 9.625C4.76675 9.625 4.375 10.0168 4.375 10.5Z", fill: "#2B2B2B" }), /* @__PURE__ */ E.createElement("path", { d: "M7.875 10.5C7.875 10.9832 8.26675 11.375 8.75 11.375C9.23325 11.375 9.625 10.9832 9.625 10.5C9.625 10.0168 9.23325 9.625 8.75 9.625C8.26675 9.625 7.875 10.0168 7.875 10.5Z", fill: "#2B2B2B" })), /* @__PURE__ */ E.createElement("defs", null, /* @__PURE__ */ E.createElement("clipPath", { id: "clip0_2638_2364" }, /* @__PURE__ */ E.createElement("rect", { width: 14, height: 14, fill: "white" }))));
|
|
2305
2305
|
function vn({
|
|
2306
2306
|
column: t,
|
|
2307
2307
|
index: e,
|
|
@@ -2309,20 +2309,20 @@ function vn({
|
|
|
2309
2309
|
visibility: n,
|
|
2310
2310
|
onToggleVisibility: i
|
|
2311
2311
|
}) {
|
|
2312
|
-
const
|
|
2312
|
+
const s = t.isDraggable !== !1, o = t.toogleVisibility !== !1 && t.toggleVisibility !== !1, a = Xe(null), [, c] = en({
|
|
2313
2313
|
accept: ce,
|
|
2314
2314
|
hover(p) {
|
|
2315
|
-
|
|
2315
|
+
s && p.index !== e && (r(p.index, e), p.index = e);
|
|
2316
2316
|
}
|
|
2317
2317
|
}), [{ isDragging: d }, f] = Yr({
|
|
2318
2318
|
type: ce,
|
|
2319
2319
|
item: { index: e },
|
|
2320
|
-
canDrag:
|
|
2320
|
+
canDrag: s,
|
|
2321
2321
|
collect: (p) => ({
|
|
2322
2322
|
isDragging: p.isDragging()
|
|
2323
2323
|
})
|
|
2324
2324
|
});
|
|
2325
|
-
return
|
|
2325
|
+
return s ? f(c(a)) : c(a), /* @__PURE__ */ I(
|
|
2326
2326
|
"div",
|
|
2327
2327
|
{
|
|
2328
2328
|
ref: a,
|
|
@@ -2333,18 +2333,19 @@ function vn({
|
|
|
2333
2333
|
"div",
|
|
2334
2334
|
{
|
|
2335
2335
|
className: "ckds-drag-handle",
|
|
2336
|
-
style: { cursor:
|
|
2337
|
-
children: /* @__PURE__ */ m(mn, { style: { color: "var(--ckcl-black-500, #2b2b2b)" } })
|
|
2336
|
+
style: { cursor: s ? "grab" : "not-allowed", opacity: s ? 1 : 0.3 },
|
|
2337
|
+
children: /* @__PURE__ */ m(mn, { style: { color: "var(--ckcl-black-500, #2b2b2b)", width: "14px", height: "14px" } })
|
|
2338
2338
|
}
|
|
2339
2339
|
),
|
|
2340
2340
|
/* @__PURE__ */ m(_, { variant: "body-sm", className: "ckds-dragable-list-item-label", children: t.header }),
|
|
2341
2341
|
/* @__PURE__ */ m(
|
|
2342
|
-
|
|
2342
|
+
Je,
|
|
2343
2343
|
{
|
|
2344
2344
|
checked: n[t.accessorKey] !== !1,
|
|
2345
2345
|
onChange: () => i(t.accessorKey),
|
|
2346
|
-
disabled: !
|
|
2347
|
-
className: "ckds-dragable-list-item-toggle"
|
|
2346
|
+
disabled: !o,
|
|
2347
|
+
className: "ckds-dragable-list-item-toggle",
|
|
2348
|
+
size: "small"
|
|
2348
2349
|
}
|
|
2349
2350
|
)
|
|
2350
2351
|
]
|
|
@@ -2357,8 +2358,8 @@ function Pn({
|
|
|
2357
2358
|
moveDraftColumn: r,
|
|
2358
2359
|
handleApplyPref: n,
|
|
2359
2360
|
setModalOpen: i,
|
|
2360
|
-
handleResetToDefault:
|
|
2361
|
-
isDefault:
|
|
2361
|
+
handleResetToDefault: s,
|
|
2362
|
+
isDefault: o,
|
|
2362
2363
|
isConfigChanged: a
|
|
2363
2364
|
}) {
|
|
2364
2365
|
const [c, d] = be(""), f = Ee(
|
|
@@ -2375,24 +2376,26 @@ function Pn({
|
|
|
2375
2376
|
), p = t.columns.filter(
|
|
2376
2377
|
(g) => g.header.toLowerCase().includes(c.toLowerCase())
|
|
2377
2378
|
);
|
|
2378
|
-
return /* @__PURE__ */
|
|
2379
|
-
/* @__PURE__ */
|
|
2380
|
-
/* @__PURE__ */
|
|
2379
|
+
return /* @__PURE__ */ I(Or, { backend: pn, children: [
|
|
2380
|
+
/* @__PURE__ */ I("div", { className: "ckds-column-manager-wrapper", children: [
|
|
2381
|
+
/* @__PURE__ */ I("div", { style: { display: "flex", alignItems: "center", justifyContent: "space-between" }, children: [
|
|
2381
2382
|
/* @__PURE__ */ m(_, { variant: "body-lg", weight: "semibold", children: "Column Manager" }),
|
|
2382
2383
|
/* @__PURE__ */ m(
|
|
2383
|
-
|
|
2384
|
+
F,
|
|
2384
2385
|
{
|
|
2385
|
-
onClick:
|
|
2386
|
+
onClick: s,
|
|
2386
2387
|
variant: "hyperlink",
|
|
2387
|
-
disabled:
|
|
2388
|
-
icons: { left: /* @__PURE__ */ m(
|
|
2389
|
-
label: "Reset
|
|
2388
|
+
disabled: o,
|
|
2389
|
+
icons: { left: /* @__PURE__ */ m(Ze, {}) },
|
|
2390
|
+
label: "Reset",
|
|
2391
|
+
size: "medium",
|
|
2392
|
+
className: o ? "" : "ckds-reset-btn-active"
|
|
2390
2393
|
}
|
|
2391
2394
|
)
|
|
2392
2395
|
] }),
|
|
2393
|
-
/* @__PURE__ */
|
|
2394
|
-
/* @__PURE__ */ m(
|
|
2395
|
-
/* @__PURE__ */
|
|
2396
|
+
/* @__PURE__ */ I("div", { style: { display: "flex", marginTop: "24px" }, children: [
|
|
2397
|
+
/* @__PURE__ */ m(Ke, { draftConfig: t, setDraftConfig: e }),
|
|
2398
|
+
/* @__PURE__ */ I("div", { style: { flex: 1, marginLeft: "28px" }, children: [
|
|
2396
2399
|
/* @__PURE__ */ m(_, { variant: "body-sm", weight: "medium", children: "Visible Columns" }),
|
|
2397
2400
|
/* @__PURE__ */ m(_, { variant: "body-xs", color: "secondary", children: "Toggle columns on/off and drag to reorder" }),
|
|
2398
2401
|
/* @__PURE__ */ m(
|
|
@@ -2400,12 +2403,12 @@ function Pn({
|
|
|
2400
2403
|
{
|
|
2401
2404
|
className: p.length > 9 ? "ckds-search-border-bottom" : "",
|
|
2402
2405
|
style: { paddingBottom: "12px", marginTop: "16px" },
|
|
2403
|
-
children: /* @__PURE__ */
|
|
2404
|
-
/* @__PURE__ */ m(
|
|
2406
|
+
children: /* @__PURE__ */ I("div", { className: "ckds-search-input-wrapper", children: [
|
|
2407
|
+
/* @__PURE__ */ m(Qe, {}),
|
|
2405
2408
|
/* @__PURE__ */ m(
|
|
2406
2409
|
"input",
|
|
2407
2410
|
{
|
|
2408
|
-
placeholder: "Search
|
|
2411
|
+
placeholder: "Search",
|
|
2409
2412
|
className: "ckds-table-search-input",
|
|
2410
2413
|
value: c,
|
|
2411
2414
|
onChange: (g) => d(g.target.value)
|
|
@@ -2414,7 +2417,7 @@ function Pn({
|
|
|
2414
2417
|
] })
|
|
2415
2418
|
}
|
|
2416
2419
|
),
|
|
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
|
|
2420
|
+
/* @__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", children: p.map((g, u) => /* @__PURE__ */ m(
|
|
2418
2421
|
vn,
|
|
2419
2422
|
{
|
|
2420
2423
|
column: g,
|
|
@@ -2428,22 +2431,22 @@ function Pn({
|
|
|
2428
2431
|
] })
|
|
2429
2432
|
] })
|
|
2430
2433
|
] }),
|
|
2431
|
-
/* @__PURE__ */
|
|
2434
|
+
/* @__PURE__ */ I("div", { className: "ckds-column-manager-footer", children: [
|
|
2432
2435
|
/* @__PURE__ */ m(
|
|
2433
|
-
|
|
2436
|
+
F,
|
|
2434
2437
|
{
|
|
2435
2438
|
onClick: () => i({ open: !1, type: "columnManager", activeOption: "" }),
|
|
2436
2439
|
variant: "secondary",
|
|
2437
|
-
size: "
|
|
2440
|
+
size: "medium",
|
|
2438
2441
|
label: "Cancel"
|
|
2439
2442
|
}
|
|
2440
2443
|
),
|
|
2441
2444
|
/* @__PURE__ */ m(
|
|
2442
|
-
|
|
2445
|
+
F,
|
|
2443
2446
|
{
|
|
2444
2447
|
onClick: n,
|
|
2445
2448
|
variant: "primary",
|
|
2446
|
-
size: "
|
|
2449
|
+
size: "medium",
|
|
2447
2450
|
disabled: !a,
|
|
2448
2451
|
label: "Apply"
|
|
2449
2452
|
}
|