@boxcustodia/library 0.2.4 → 0.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es10.js +1 -1
- package/dist/index.es100.js +21 -1059
- package/dist/index.es101.js +30 -3674
- package/dist/index.es102.js +12 -4
- package/dist/index.es103.js +1062 -4
- package/dist/index.es104.js +3672 -7
- package/dist/index.es105.js +4 -4
- package/dist/index.es106.js +4 -14
- package/dist/index.es107.js +11 -5
- package/dist/index.es108.js +257 -55
- package/dist/index.es109.js +12 -224
- package/dist/index.es110.js +4 -11
- package/dist/index.es111.js +7 -4
- package/dist/index.es112.js +5 -41
- package/dist/index.es113.js +57 -21
- package/dist/index.es114.js +21 -12
- package/dist/index.es115.js +5 -4
- package/dist/index.es116.js +3 -4
- package/dist/index.es117.js +5 -4
- package/dist/index.es118.js +14 -14
- package/dist/index.es119.js +18 -18
- package/dist/index.es120.js +1 -1
- package/dist/index.es121.js +1 -1
- package/dist/index.es122.js +64 -4
- package/dist/index.es123.js +30 -61
- package/dist/index.es124.js +13 -33
- package/dist/index.es125.js +13 -13
- package/dist/index.es126.js +4 -216
- package/dist/index.es127.js +216 -13
- package/dist/index.es13.js +1 -1
- package/dist/index.es133.js +1 -1
- package/dist/index.es135.js +11 -10
- package/dist/index.es136.js +12 -205
- package/dist/index.es137.js +205 -11
- package/dist/index.es138.js +10 -20
- package/dist/index.es139.js +5 -35
- package/dist/index.es14.js +1 -1
- package/dist/index.es140.js +63 -9
- package/dist/index.es141.js +32 -12
- package/dist/index.es142.js +649 -6
- package/dist/index.es143.js +10 -64
- package/dist/index.es144.js +20 -10
- package/dist/index.es145.js +33 -121
- package/dist/index.es146.js +7 -131
- package/dist/index.es147.js +6 -14
- package/dist/index.es148.js +2 -33
- package/dist/index.es149.js +122 -12
- package/dist/index.es150.js +134 -8
- package/dist/index.es151.js +14 -50
- package/dist/index.es152.js +14 -5
- package/dist/index.es153.js +9 -2
- package/dist/index.es154.js +46 -40
- package/dist/index.es155.js +40 -646
- package/dist/index.es156.js +9 -9
- package/dist/index.es157.js +4 -4
- package/dist/index.es158.js +3 -45
- package/dist/index.es159.js +45 -7
- package/dist/index.es160.js +8 -4
- package/dist/index.es162.js +1 -1
- package/dist/index.es163.js +118 -6
- package/dist/index.es164.js +35 -3
- package/dist/index.es165.js +6 -2054
- package/dist/index.es166.js +3 -120
- package/dist/index.es167.js +2054 -33
- package/dist/index.es181.js +2 -2
- package/dist/index.es183.js +177 -11
- package/dist/index.es184.js +11 -7
- package/dist/index.es185.js +21 -6
- package/dist/index.es186.js +9 -5
- package/dist/index.es187.js +38 -18
- package/dist/index.es188.js +18 -6
- package/dist/index.es189.js +200 -5
- package/dist/index.es190.js +22 -9
- package/dist/index.es191.js +25 -6
- package/dist/index.es192.js +370 -6
- package/dist/index.es193.js +25 -16
- package/dist/index.es194.js +12 -12
- package/dist/index.es195.js +6 -13
- package/dist/index.es196.js +1 -1
- package/dist/index.es197.js +19 -7
- package/dist/index.es198.js +52 -7
- package/dist/index.es199.js +6 -4
- package/dist/index.es200.js +6 -515
- package/dist/index.es201.js +7 -50
- package/dist/index.es202.js +7 -17
- package/dist/index.es203.js +16 -10
- package/dist/index.es204.js +9 -19
- package/dist/index.es205.js +6 -8
- package/dist/index.es206.js +6 -7
- package/dist/index.es207.js +13 -7
- package/dist/index.es208.js +10 -5
- package/dist/index.es209.js +84 -6
- package/dist/index.es210.js +5 -9
- package/dist/index.es211.js +17 -5
- package/dist/index.es212.js +5 -8
- package/dist/index.es213.js +6 -12
- package/dist/index.es214.js +6 -9
- package/dist/index.es215.js +9 -8
- package/dist/index.es216.js +6 -10
- package/dist/index.es217.js +7 -14
- package/dist/index.es218.js +5 -6
- package/dist/index.es219.js +4 -6
- package/dist/index.es220.js +5 -6
- package/dist/index.es221.js +8 -6
- package/dist/index.es222.js +6 -7
- package/dist/index.es223.js +15 -9
- package/dist/index.es224.js +4 -84
- package/dist/index.es225.js +515 -64
- package/dist/index.es226.js +47 -35
- package/dist/index.es227.js +17 -9
- package/dist/index.es228.js +9 -8
- package/dist/index.es229.js +19 -8
- package/dist/index.es230.js +8 -10
- package/dist/index.es231.js +7 -7
- package/dist/index.es232.js +7 -7
- package/dist/index.es233.js +5 -6
- package/dist/index.es234.js +6 -5
- package/dist/index.es235.js +9 -15
- package/dist/index.es236.js +5 -177
- package/dist/index.es237.js +9 -21
- package/dist/index.es238.js +13 -9
- package/dist/index.es239.js +10 -38
- package/dist/index.es240.js +11 -18
- package/dist/index.es241.js +15 -25
- package/dist/index.es242.js +64 -18
- package/dist/index.es243.js +38 -52
- package/dist/index.es244.js +10 -16
- package/dist/index.es245.js +8 -200
- package/dist/index.es246.js +8 -22
- package/dist/index.es247.js +7 -24
- package/dist/index.es248.js +15 -370
- package/dist/index.es249.js +7 -7
- package/dist/index.es250.js +1 -1
- package/dist/index.es251.js +1 -1
- package/dist/index.es252.js +2 -2
- package/dist/index.es264.js +1 -1
- package/dist/index.es265.js +1 -1
- package/dist/index.es266.js +1 -1
- package/dist/index.es267.js +1 -1
- package/dist/index.es27.js +1 -1
- package/dist/index.es273.js +1 -1
- package/dist/index.es274.js +1 -1
- package/dist/index.es275.js +12 -12
- package/dist/index.es276.js +2 -2
- package/dist/index.es277.js +2 -2
- package/dist/index.es278.js +8 -8
- package/dist/index.es279.js +2 -2
- package/dist/index.es28.js +1 -1
- package/dist/index.es284.js +4 -4
- package/dist/index.es29.js +3 -3
- package/dist/index.es290.js +9 -4
- package/dist/index.es291.js +5 -57
- package/dist/index.es292.js +13 -28
- package/dist/index.es293.js +4 -46
- package/dist/index.es294.js +6 -66
- package/dist/index.es295.js +332 -36
- package/dist/index.es296.js +19 -19
- package/dist/index.es297.js +4 -68
- package/dist/index.es298.js +4 -67
- package/dist/index.es299.js +3 -69
- package/dist/index.es30.js +6 -6
- package/dist/index.es300.js +69 -66
- package/dist/index.es301.js +4 -46
- package/dist/index.es302.js +4 -46
- package/dist/index.es303.js +53 -55
- package/dist/index.es304.js +20 -41
- package/dist/index.es305.js +38 -34
- package/dist/index.es306.js +43 -48
- package/dist/index.es307.js +21 -55
- package/dist/index.es308.js +13 -91
- package/dist/index.es309.js +45 -24
- package/dist/index.es310.js +51 -30
- package/dist/index.es311.js +54 -32
- package/dist/index.es312.js +60 -22
- package/dist/index.es313.js +35 -19
- package/dist/index.es314.js +38 -21
- package/dist/index.es315.js +50 -22
- package/dist/index.es316.js +38 -19
- package/dist/index.es317.js +34 -21
- package/dist/index.es318.js +66 -14
- package/dist/index.es319.js +63 -37
- package/dist/index.es32.js +2 -2
- package/dist/index.es320.js +86 -35
- package/dist/index.es321.js +41 -14
- package/dist/index.es322.js +41 -14
- package/dist/index.es323.js +45 -8
- package/dist/index.es324.js +30 -4
- package/dist/index.es325.js +30 -13
- package/dist/index.es326.js +29 -4
- package/dist/index.es327.js +30 -6
- package/dist/index.es328.js +27 -331
- package/dist/index.es329.js +30 -19
- package/dist/index.es33.js +2 -2
- package/dist/index.es330.js +20 -4
- package/dist/index.es331.js +45 -4
- package/dist/index.es332.js +46 -3
- package/dist/index.es333.js +17 -69
- package/dist/index.es334.js +20 -4
- package/dist/index.es335.js +2 -6
- package/dist/index.es336.js +2 -34
- package/dist/index.es337.js +6 -26
- package/dist/index.es338.js +34 -18
- package/dist/index.es339.js +25 -4
- package/dist/index.es34.js +39 -38
- package/dist/index.es340.js +18 -231
- package/dist/index.es341.js +5 -100
- package/dist/index.es342.js +229 -26
- package/dist/index.es343.js +80 -35
- package/dist/index.es344.js +28 -2
- package/dist/index.es345.js +55 -2
- package/dist/index.es346.js +2 -2
- package/dist/index.es347.js +1 -1
- package/dist/index.es348.js +1 -1
- package/dist/index.es349.js +1 -1
- package/dist/index.es35.js +2 -2
- package/dist/index.es350.js +29 -2
- package/dist/index.es351.js +5 -106
- package/dist/index.es352.js +2 -76
- package/dist/index.es353.js +107 -36
- package/dist/index.es354.js +73 -60
- package/dist/index.es355.js +30 -28
- package/dist/index.es356.js +61 -63
- package/dist/index.es357.js +30 -109
- package/dist/index.es358.js +59 -87
- package/dist/index.es359.js +110 -40
- package/dist/index.es360.js +94 -3
- package/dist/index.es361.js +43 -3
- package/dist/index.es362.js +2 -2
- package/dist/index.es363.js +2 -2
- package/dist/index.es364.js +2 -2
- package/dist/index.es366.js +2 -2
- package/dist/index.es367.js +2 -2
- package/dist/index.es368.js +2 -2
- package/dist/index.es369.js +4 -241
- package/dist/index.es370.js +4 -384
- package/dist/index.es371.js +204 -132
- package/dist/index.es372.js +334 -103
- package/dist/index.es373.js +102 -75
- package/dist/index.es374.js +153 -4
- package/dist/index.es375.js +142 -4
- package/dist/index.es376.js +2 -2
- package/dist/index.es377.js +2 -2
- package/dist/index.es378.js +2 -2
- package/dist/index.es379.js +2 -2
- package/dist/index.es38.js +5 -5
- package/dist/index.es380.js +2 -29
- package/dist/index.es381.js +2 -5
- package/dist/index.es387.js +517 -66
- package/dist/index.es388.js +125 -29
- package/dist/index.es389.js +126 -9
- package/dist/index.es39.js +2 -2
- package/dist/index.es390.js +2 -153
- package/dist/index.es391.js +53 -107
- package/dist/index.es392.js +59 -2
- package/dist/index.es393.js +67 -53
- package/dist/index.es394.js +31 -59
- package/dist/index.es395.js +9 -20
- package/dist/index.es396.js +151 -99
- package/dist/index.es397.js +107 -46
- package/dist/index.es398.js +68 -6
- package/dist/index.es399.js +31 -2
- package/dist/index.es40.js +3 -3
- package/dist/index.es400.js +16 -8
- package/dist/index.es401.js +140 -326
- package/dist/index.es402.js +112 -48
- package/dist/index.es403.js +5 -3
- package/dist/index.es404.js +2 -68
- package/dist/index.es405.js +8 -31
- package/dist/index.es406.js +327 -16
- package/dist/index.es407.js +48 -139
- package/dist/index.es408.js +4 -114
- package/dist/index.es409.js +17 -516
- package/dist/index.es41.js +1 -1
- package/dist/index.es410.js +92 -118
- package/dist/index.es411.js +47 -126
- package/dist/index.es412.js +2 -75
- package/dist/index.es413.js +46 -10
- package/dist/index.es414.js +83 -2
- package/dist/index.es415.js +12 -45
- package/dist/index.es416.js +331 -73
- package/dist/index.es417.js +73 -12
- package/dist/index.es418.js +10 -340
- package/dist/index.es43.js +1 -1
- package/dist/index.es437.js +1 -1
- package/dist/index.es438.js +1 -1
- package/dist/index.es439.js +3 -3
- package/dist/index.es44.js +4 -4
- package/dist/index.es440.js +1 -1
- package/dist/index.es441.js +3 -275
- package/dist/index.es442.js +105 -78
- package/dist/index.es443.js +2 -166
- package/dist/index.es444.js +2 -3
- package/dist/index.es445.js +268 -100
- package/dist/index.es446.js +80 -2
- package/dist/index.es447.js +166 -2
- package/dist/index.es45.js +1 -1
- package/dist/index.es453.js +14 -5
- package/dist/index.es454.js +27 -14
- package/dist/index.es455.js +11 -27
- package/dist/index.es456.js +5 -11
- package/dist/index.es46.js +5 -5
- package/dist/index.es466.js +1 -1
- package/dist/index.es467.js +2 -2
- package/dist/index.es468.js +2 -2
- package/dist/index.es475.js +1 -1
- package/dist/index.es476.js +1 -1
- package/dist/index.es49.js +2 -2
- package/dist/index.es50.js +1 -1
- package/dist/index.es51.js +1 -1
- package/dist/index.es54.js +1 -1
- package/dist/index.es55.js +1 -1
- package/dist/index.es57.js +3 -3
- package/dist/index.es59.js +2 -2
- package/dist/index.es61.js +1 -1
- package/dist/index.es62.js +1 -1
- package/dist/index.es63.js +2 -2
- package/dist/index.es64.js +1 -1
- package/dist/index.es65.js +3 -3
- package/dist/index.es66.js +2 -2
- package/dist/index.es67.js +3 -3
- package/dist/index.es7.js +1 -1
- package/dist/index.es70.js +1 -1
- package/dist/index.es753.js +7 -7
- package/dist/index.es754.js +14 -22
- package/dist/index.es755.js +59 -82
- package/dist/index.es756.js +22 -14
- package/dist/index.es757.js +82 -59
- package/dist/index.es762.js +5 -24
- package/dist/index.es763.js +17 -8
- package/dist/index.es764.js +7 -66
- package/dist/index.es765.js +54 -50
- package/dist/index.es766.js +17 -69
- package/dist/index.es767.js +24 -5
- package/dist/index.es768.js +8 -17
- package/dist/index.es769.js +67 -2
- package/dist/index.es770.js +52 -2
- package/dist/index.es771.js +70 -7
- package/dist/index.es772.js +2 -56
- package/dist/index.es773.js +2 -19
- package/dist/index.es778.js +21 -6
- package/dist/index.es779.js +56 -20
- package/dist/index.es780.js +26 -49
- package/dist/index.es781.js +9 -34
- package/dist/index.es782.js +18 -9
- package/dist/index.es783.js +8 -14
- package/dist/index.es784.js +12 -8
- package/dist/index.es785.js +57 -6
- package/dist/index.es786.js +9 -57
- package/dist/index.es787.js +14 -9
- package/dist/index.es788.js +6 -18
- package/dist/index.es789.js +28 -13
- package/dist/index.es79.js +1 -1
- package/dist/index.es790.js +3 -28
- package/dist/index.es791.js +7 -3
- package/dist/index.es796.js +1 -1
- package/dist/index.es797.js +1 -1
- package/dist/index.es798.js +1 -1
- package/dist/index.es799.js +1 -1
- package/dist/index.es80.js +1 -1
- package/dist/index.es800.js +1 -1
- package/dist/index.es801.js +1 -1
- package/dist/index.es803.js +1 -1
- package/dist/index.es805.js +10 -8
- package/dist/index.es806.js +7 -9
- package/dist/index.es807.js +2 -2
- package/dist/index.es808.js +8 -10
- package/dist/index.es809.js +9 -7
- package/dist/index.es810.js +5 -5
- package/dist/index.es811.js +2 -2
- package/dist/index.es812.js +1 -1
- package/dist/index.es814.js +2 -2
- package/dist/index.es822.js +1 -1
- package/dist/index.es824.js +38 -25
- package/dist/index.es825.js +25 -38
- package/dist/index.es826.js +64 -15
- package/dist/index.es827.js +11 -7
- package/dist/index.es828.js +38 -61
- package/dist/index.es829.js +54 -7
- package/dist/index.es830.js +16 -40
- package/dist/index.es831.js +17 -57
- package/dist/index.es832.js +7 -20
- package/dist/index.es833.js +1 -1
- package/dist/index.es85.js +1 -1
- package/dist/index.es86.js +33 -35
- package/dist/index.es87.js +34 -45
- package/dist/index.es88.js +46 -30
- package/dist/index.es89.js +29 -29
- package/dist/index.es90.js +29 -54
- package/dist/index.es91.js +223 -54
- package/dist/index.es92.js +11 -92
- package/dist/index.es93.js +9 -37
- package/dist/index.es94.js +11 -24
- package/dist/index.es95.js +40 -29
- package/dist/index.es96.js +54 -258
- package/dist/index.es97.js +55 -12
- package/dist/index.es98.js +90 -31
- package/dist/index.es99.js +37 -12
- package/package.json +1 -1
package/dist/index.es335.js
CHANGED
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import { __require as e } from "./index.es415.js";
|
|
3
|
-
import { __require as o } from "./index.es416.js";
|
|
4
|
-
process.env.NODE_ENV === "production" ? r.exports = e() : r.exports = o();
|
|
5
|
-
var m = r.exports;
|
|
1
|
+
var t = {};
|
|
6
2
|
export {
|
|
7
|
-
|
|
3
|
+
t as __exports
|
|
8
4
|
};
|
package/dist/index.es336.js
CHANGED
|
@@ -1,36 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
const o = e(null);
|
|
3
|
-
function i() {
|
|
4
|
-
const t = n(o);
|
|
5
|
-
if (t === null)
|
|
6
|
-
throw new Error("No Tree Api Provided");
|
|
7
|
-
return t;
|
|
8
|
-
}
|
|
9
|
-
const r = e(null);
|
|
10
|
-
function a() {
|
|
11
|
-
const t = n(r);
|
|
12
|
-
if (t === null)
|
|
13
|
-
throw new Error("Provide a NodesContext");
|
|
14
|
-
return t;
|
|
15
|
-
}
|
|
16
|
-
const u = e(null);
|
|
17
|
-
function c() {
|
|
18
|
-
const t = n(u);
|
|
19
|
-
if (t === null)
|
|
20
|
-
throw new Error("Provide a DnDContext");
|
|
21
|
-
return t;
|
|
22
|
-
}
|
|
23
|
-
const s = e(0);
|
|
24
|
-
function d() {
|
|
25
|
-
n(s);
|
|
26
|
-
}
|
|
1
|
+
var e = {};
|
|
27
2
|
export {
|
|
28
|
-
|
|
29
|
-
u as DndContext,
|
|
30
|
-
r as NodesContext,
|
|
31
|
-
o as TreeApiContext,
|
|
32
|
-
d as useDataUpdates,
|
|
33
|
-
c as useDndContext,
|
|
34
|
-
a as useNodesContext,
|
|
35
|
-
i as useTreeApi
|
|
3
|
+
e as __exports
|
|
36
4
|
};
|
package/dist/index.es337.js
CHANGED
|
@@ -1,28 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
open: { filtered: {}, unfiltered: (e = n == null ? void 0 : n.initialOpenState) !== null && e !== void 0 ? e : {} },
|
|
7
|
-
focus: { id: null, treeFocused: !1 },
|
|
8
|
-
edit: { id: null },
|
|
9
|
-
drag: {
|
|
10
|
-
id: null,
|
|
11
|
-
selectedIds: [],
|
|
12
|
-
destinationParentId: null,
|
|
13
|
-
destinationIndex: null
|
|
14
|
-
},
|
|
15
|
-
selection: { ids: /* @__PURE__ */ new Set(), anchor: null, mostRecent: null }
|
|
16
|
-
},
|
|
17
|
-
dnd: {
|
|
18
|
-
cursor: { type: "none" },
|
|
19
|
-
dragId: null,
|
|
20
|
-
dragIds: [],
|
|
21
|
-
parentId: null,
|
|
22
|
-
index: -1
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
};
|
|
1
|
+
import { __module as r } from "./index.es412.js";
|
|
2
|
+
import { __require as e } from "./index.es413.js";
|
|
3
|
+
import { __require as o } from "./index.es414.js";
|
|
4
|
+
process.env.NODE_ENV === "production" ? r.exports = e() : r.exports = o();
|
|
5
|
+
var m = r.exports;
|
|
26
6
|
export {
|
|
27
|
-
|
|
7
|
+
m as s
|
|
28
8
|
};
|
package/dist/index.es338.js
CHANGED
|
@@ -1,20 +1,36 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
1
|
+
import { createContext as e, useContext as n } from "react";
|
|
2
|
+
const o = e(null);
|
|
3
|
+
function i() {
|
|
4
|
+
const t = n(o);
|
|
5
|
+
if (t === null)
|
|
6
|
+
throw new Error("No Tree Api Provided");
|
|
7
|
+
return t;
|
|
8
|
+
}
|
|
9
|
+
const r = e(null);
|
|
10
|
+
function a() {
|
|
11
|
+
const t = n(r);
|
|
12
|
+
if (t === null)
|
|
13
|
+
throw new Error("Provide a NodesContext");
|
|
14
|
+
return t;
|
|
15
|
+
}
|
|
16
|
+
const u = e(null);
|
|
17
|
+
function c() {
|
|
18
|
+
const t = n(u);
|
|
19
|
+
if (t === null)
|
|
20
|
+
throw new Error("Provide a DnDContext");
|
|
21
|
+
return t;
|
|
22
|
+
}
|
|
23
|
+
const s = e(0);
|
|
24
|
+
function d() {
|
|
25
|
+
n(s);
|
|
26
|
+
}
|
|
18
27
|
export {
|
|
19
|
-
|
|
28
|
+
s as DataUpdatesContext,
|
|
29
|
+
u as DndContext,
|
|
30
|
+
r as NodesContext,
|
|
31
|
+
o as TreeApiContext,
|
|
32
|
+
d as useDataUpdates,
|
|
33
|
+
c as useDndContext,
|
|
34
|
+
a as useNodesContext,
|
|
35
|
+
i as useTreeApi
|
|
20
36
|
};
|
package/dist/index.es339.js
CHANGED
|
@@ -1,7 +1,28 @@
|
|
|
1
|
-
|
|
2
|
-
var
|
|
3
|
-
return
|
|
1
|
+
const l = (n) => {
|
|
2
|
+
var e;
|
|
3
|
+
return {
|
|
4
|
+
nodes: {
|
|
5
|
+
// Changes together
|
|
6
|
+
open: { filtered: {}, unfiltered: (e = n == null ? void 0 : n.initialOpenState) !== null && e !== void 0 ? e : {} },
|
|
7
|
+
focus: { id: null, treeFocused: !1 },
|
|
8
|
+
edit: { id: null },
|
|
9
|
+
drag: {
|
|
10
|
+
id: null,
|
|
11
|
+
selectedIds: [],
|
|
12
|
+
destinationParentId: null,
|
|
13
|
+
destinationIndex: null
|
|
14
|
+
},
|
|
15
|
+
selection: { ids: /* @__PURE__ */ new Set(), anchor: null, mostRecent: null }
|
|
16
|
+
},
|
|
17
|
+
dnd: {
|
|
18
|
+
cursor: { type: "none" },
|
|
19
|
+
dragId: null,
|
|
20
|
+
dragIds: [],
|
|
21
|
+
parentId: null,
|
|
22
|
+
index: -1
|
|
23
|
+
}
|
|
24
|
+
};
|
|
4
25
|
};
|
|
5
26
|
export {
|
|
6
|
-
|
|
27
|
+
l as initialState
|
|
7
28
|
};
|
package/dist/index.es34.js
CHANGED
|
@@ -1,67 +1,68 @@
|
|
|
1
1
|
import { j as t } from "./index.es83.js";
|
|
2
|
-
import { useControllableState as
|
|
3
|
-
import { l as
|
|
4
|
-
import { useMemo as
|
|
5
|
-
import { isDateRange as l } from "./index.
|
|
6
|
-
import
|
|
7
|
-
import { Calendar as
|
|
8
|
-
import { isDate as
|
|
9
|
-
import { PopoverRoot as
|
|
10
|
-
import { cn as
|
|
11
|
-
import { formatDate as
|
|
12
|
-
const
|
|
2
|
+
import { useControllableState as D } from "./index.es90.js";
|
|
3
|
+
import { l as N } from "./index.es104.js";
|
|
4
|
+
import { useMemo as R } from "react";
|
|
5
|
+
import { isDateRange as l } from "./index.es110.js";
|
|
6
|
+
import P from "./index.es111.js";
|
|
7
|
+
import { Calendar as V } from "./index.es30.js";
|
|
8
|
+
import { isDate as a } from "./index.es112.js";
|
|
9
|
+
import { PopoverRoot as E, PopoverTrigger as M, PopoverContent as k } from "./index.es47.js";
|
|
10
|
+
import { cn as w } from "./index.es73.js";
|
|
11
|
+
import { formatDate as $ } from "./index.es113.js";
|
|
12
|
+
const J = (m) => {
|
|
13
13
|
const {
|
|
14
|
+
placeholder: f,
|
|
14
15
|
mode: n = "single",
|
|
15
|
-
value:
|
|
16
|
-
onChange:
|
|
17
|
-
defaultValue:
|
|
18
|
-
className:
|
|
19
|
-
...
|
|
20
|
-
} = m,
|
|
21
|
-
prop:
|
|
22
|
-
onChange: (r) =>
|
|
23
|
-
defaultProp:
|
|
24
|
-
}),
|
|
16
|
+
value: p,
|
|
17
|
+
onChange: u,
|
|
18
|
+
defaultValue: g,
|
|
19
|
+
className: x,
|
|
20
|
+
...b
|
|
21
|
+
} = m, h = n === "range", v = n === "single", j = n === "multiple", [e, c] = D({
|
|
22
|
+
prop: p,
|
|
23
|
+
onChange: (r) => u == null ? void 0 : u(r),
|
|
24
|
+
defaultProp: g
|
|
25
|
+
}), y = (r) => {
|
|
25
26
|
if (!l(r)) return !1;
|
|
26
27
|
const { start: i, end: o } = r;
|
|
27
|
-
return
|
|
28
|
-
},
|
|
29
|
-
r || !e || !l(e) ||
|
|
28
|
+
return a(i) && a(o);
|
|
29
|
+
}, C = (r) => {
|
|
30
|
+
r || !e || !l(e) || y(e) || c({
|
|
30
31
|
start: void 0,
|
|
31
32
|
end: void 0
|
|
32
33
|
});
|
|
33
|
-
}, s = (r) =>
|
|
34
|
+
}, s = (r) => a(r) ? $(r, "dd/MM/yyyy") : "", d = R(() => {
|
|
34
35
|
if (!e) return "";
|
|
35
|
-
if (v &&
|
|
36
|
-
if (
|
|
37
|
-
if (
|
|
36
|
+
if (v && a(e)) return s(e);
|
|
37
|
+
if (j && N.isArray(e)) return e.map(s).join(" - ");
|
|
38
|
+
if (h && l(e)) {
|
|
38
39
|
const i = s(e.start), o = s(e.end);
|
|
39
40
|
return !i && !o ? "" : i && !o ? i : `${i} - ${o}`;
|
|
40
41
|
}
|
|
41
42
|
return "";
|
|
42
43
|
}, [e]);
|
|
43
|
-
return /* @__PURE__ */ t.jsxs(
|
|
44
|
-
/* @__PURE__ */ t.jsx(
|
|
44
|
+
return /* @__PURE__ */ t.jsxs(E, { onOpenChange: C, children: [
|
|
45
|
+
/* @__PURE__ */ t.jsx(M, { asChild: !0, children: /* @__PURE__ */ t.jsxs(
|
|
45
46
|
"button",
|
|
46
47
|
{
|
|
47
48
|
type: "button",
|
|
48
|
-
className:
|
|
49
|
+
className: w(
|
|
49
50
|
"ui-flex ui-h-10 ui-w-full ui-rounded-md ui-border ui-border-input ui-bg-background ui-px-3 ui-py-2 ui-items-center ui-text-sm ui-ring-offset-background placeholder:ui-text-muted-foreground",
|
|
50
51
|
"hover:ui-bg-accent hover:ui-text-accent-foreground ui-transition-all",
|
|
51
52
|
"focus-visible:ui-outline-none focus-visible:ui-ring-2 focus-visible:ui-ring-ring focus-visible:ui-ring-offset-2",
|
|
52
53
|
!e && "ui-text-muted-foreground",
|
|
53
|
-
|
|
54
|
+
x,
|
|
54
55
|
"field-error"
|
|
55
56
|
),
|
|
56
57
|
children: [
|
|
57
|
-
/* @__PURE__ */ t.jsx(
|
|
58
|
-
/* @__PURE__ */ t.jsx("input", { value: d, className: "ui-sr-only", ...
|
|
59
|
-
/* @__PURE__ */ t.jsx("span", { className: "ui-truncate ui-pt-px", children: d })
|
|
58
|
+
/* @__PURE__ */ t.jsx(P, { className: "ui-mr-2 ui-h-4 ui-w-4" }),
|
|
59
|
+
/* @__PURE__ */ t.jsx("input", { value: d, className: "ui-sr-only", ...b }),
|
|
60
|
+
/* @__PURE__ */ t.jsx("span", { className: "ui-truncate ui-pt-px", children: d || f })
|
|
60
61
|
]
|
|
61
62
|
}
|
|
62
63
|
) }),
|
|
63
|
-
/* @__PURE__ */ t.jsx(
|
|
64
|
-
|
|
64
|
+
/* @__PURE__ */ t.jsx(k, { className: "ui-w-auto ui-p-0", align: "start", children: /* @__PURE__ */ t.jsx(
|
|
65
|
+
V,
|
|
65
66
|
{
|
|
66
67
|
mode: n,
|
|
67
68
|
value: e,
|
|
@@ -72,5 +73,5 @@ const I = (m) => {
|
|
|
72
73
|
] });
|
|
73
74
|
};
|
|
74
75
|
export {
|
|
75
|
-
|
|
76
|
+
J as DatePicker
|
|
76
77
|
};
|
package/dist/index.es340.js
CHANGED
|
@@ -1,233 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
if (e === void 0)
|
|
19
|
-
return "undefined";
|
|
20
|
-
if (e === null)
|
|
21
|
-
return "null";
|
|
22
|
-
const t = typeof e;
|
|
23
|
-
switch (t) {
|
|
24
|
-
case "boolean":
|
|
25
|
-
case "string":
|
|
26
|
-
case "number":
|
|
27
|
-
case "symbol":
|
|
28
|
-
case "function":
|
|
29
|
-
return t;
|
|
30
|
-
}
|
|
31
|
-
if (Array.isArray(e))
|
|
32
|
-
return "array";
|
|
33
|
-
if (V(e))
|
|
34
|
-
return "date";
|
|
35
|
-
if (T(e))
|
|
36
|
-
return "error";
|
|
37
|
-
const r = j(e);
|
|
38
|
-
switch (r) {
|
|
39
|
-
case "Symbol":
|
|
40
|
-
case "Promise":
|
|
41
|
-
case "WeakMap":
|
|
42
|
-
case "WeakSet":
|
|
43
|
-
case "Map":
|
|
44
|
-
case "Set":
|
|
45
|
-
return r;
|
|
46
|
-
}
|
|
47
|
-
return Object.prototype.toString.call(e).slice(8, -1).toLowerCase().replace(/\s/g, "");
|
|
48
|
-
}
|
|
49
|
-
function j(e) {
|
|
50
|
-
return typeof e.constructor == "function" ? e.constructor.name : null;
|
|
51
|
-
}
|
|
52
|
-
function T(e) {
|
|
53
|
-
return e instanceof Error || typeof e.message == "string" && e.constructor && typeof e.constructor.stackTraceLimit == "number";
|
|
54
|
-
}
|
|
55
|
-
function V(e) {
|
|
56
|
-
return e instanceof Date ? !0 : typeof e.toDateString == "function" && typeof e.getDate == "function" && typeof e.setDate == "function";
|
|
57
|
-
}
|
|
58
|
-
function h(e) {
|
|
59
|
-
let t = typeof e;
|
|
60
|
-
return process.env.NODE_ENV !== "production" && (t = S(e)), t;
|
|
61
|
-
}
|
|
62
|
-
function A(e, t, r) {
|
|
63
|
-
if (typeof e != "function")
|
|
64
|
-
throw new Error(process.env.NODE_ENV === "production" ? i(2) : `Expected the root reducer to be a function. Instead, received: '${h(e)}'`);
|
|
65
|
-
if (typeof t == "function" && typeof r == "function" || typeof r == "function" && typeof arguments[3] == "function")
|
|
66
|
-
throw new Error(process.env.NODE_ENV === "production" ? i(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.");
|
|
67
|
-
if (typeof t == "function" && typeof r > "u" && (r = t, t = void 0), typeof r < "u") {
|
|
68
|
-
if (typeof r != "function")
|
|
69
|
-
throw new Error(process.env.NODE_ENV === "production" ? i(1) : `Expected the enhancer to be a function. Instead, received: '${h(r)}'`);
|
|
70
|
-
return r(A)(e, t);
|
|
71
|
-
}
|
|
72
|
-
let a = e, f = t, u = /* @__PURE__ */ new Map(), o = u, s = 0, c = !1;
|
|
73
|
-
function l() {
|
|
74
|
-
o === u && (o = /* @__PURE__ */ new Map(), u.forEach((n, d) => {
|
|
75
|
-
o.set(d, n);
|
|
76
|
-
}));
|
|
77
|
-
}
|
|
78
|
-
function w() {
|
|
79
|
-
if (c)
|
|
80
|
-
throw new Error(process.env.NODE_ENV === "production" ? i(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.");
|
|
81
|
-
return f;
|
|
82
|
-
}
|
|
83
|
-
function p(n) {
|
|
84
|
-
if (typeof n != "function")
|
|
85
|
-
throw new Error(process.env.NODE_ENV === "production" ? i(4) : `Expected the listener to be a function. Instead, received: '${h(n)}'`);
|
|
86
|
-
if (c)
|
|
87
|
-
throw new Error(process.env.NODE_ENV === "production" ? i(5) : "You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");
|
|
88
|
-
let d = !0;
|
|
89
|
-
l();
|
|
90
|
-
const E = s++;
|
|
91
|
-
return o.set(E, n), function() {
|
|
92
|
-
if (d) {
|
|
93
|
-
if (c)
|
|
94
|
-
throw new Error(process.env.NODE_ENV === "production" ? i(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.");
|
|
95
|
-
d = !1, l(), o.delete(E), u = null;
|
|
96
|
-
}
|
|
97
|
-
};
|
|
98
|
-
}
|
|
99
|
-
function y(n) {
|
|
100
|
-
if (!I(n))
|
|
101
|
-
throw new Error(process.env.NODE_ENV === "production" ? i(7) : `Actions must be plain objects. Instead, the actual type was: '${h(n)}'. 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.`);
|
|
102
|
-
if (typeof n.type > "u")
|
|
103
|
-
throw new Error(process.env.NODE_ENV === "production" ? i(8) : 'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');
|
|
104
|
-
if (typeof n.type != "string")
|
|
105
|
-
throw new Error(process.env.NODE_ENV === "production" ? i(17) : `Action "type" property must be a string. Instead, the actual type was: '${h(n.type)}'. Value was: '${n.type}' (stringified)`);
|
|
106
|
-
if (c)
|
|
107
|
-
throw new Error(process.env.NODE_ENV === "production" ? i(9) : "Reducers may not dispatch actions.");
|
|
108
|
-
try {
|
|
109
|
-
c = !0, f = a(f, n);
|
|
110
|
-
} finally {
|
|
111
|
-
c = !1;
|
|
112
|
-
}
|
|
113
|
-
return (u = o).forEach((E) => {
|
|
114
|
-
E();
|
|
115
|
-
}), n;
|
|
116
|
-
}
|
|
117
|
-
function N(n) {
|
|
118
|
-
if (typeof n != "function")
|
|
119
|
-
throw new Error(process.env.NODE_ENV === "production" ? i(10) : `Expected the nextReducer to be a function. Instead, received: '${h(n)}`);
|
|
120
|
-
a = n, y({
|
|
121
|
-
type: b.REPLACE
|
|
122
|
-
});
|
|
123
|
-
}
|
|
124
|
-
function g() {
|
|
125
|
-
const n = p;
|
|
126
|
-
return {
|
|
127
|
-
/**
|
|
128
|
-
* The minimal observable subscription method.
|
|
129
|
-
* @param observer Any object that can be used as an observer.
|
|
130
|
-
* The observer object should have a `next` method.
|
|
131
|
-
* @returns An object with an `unsubscribe` method that can
|
|
132
|
-
* be used to unsubscribe the observable from the store, and prevent further
|
|
133
|
-
* emission of values from the observable.
|
|
134
|
-
*/
|
|
135
|
-
subscribe(d) {
|
|
136
|
-
if (typeof d != "object" || d === null)
|
|
137
|
-
throw new Error(process.env.NODE_ENV === "production" ? i(11) : `Expected the observer to be an object. Instead, received: '${h(d)}'`);
|
|
138
|
-
function E() {
|
|
139
|
-
const v = d;
|
|
140
|
-
v.next && v.next(w());
|
|
141
|
-
}
|
|
142
|
-
return E(), {
|
|
143
|
-
unsubscribe: n(E)
|
|
144
|
-
};
|
|
145
|
-
},
|
|
146
|
-
[x]() {
|
|
147
|
-
return this;
|
|
148
|
-
}
|
|
149
|
-
};
|
|
150
|
-
}
|
|
151
|
-
return y({
|
|
152
|
-
type: b.INIT
|
|
153
|
-
}), {
|
|
154
|
-
dispatch: y,
|
|
155
|
-
subscribe: p,
|
|
156
|
-
getState: w,
|
|
157
|
-
replaceReducer: N,
|
|
158
|
-
[x]: g
|
|
159
|
-
};
|
|
160
|
-
}
|
|
161
|
-
function _(e) {
|
|
162
|
-
typeof console < "u" && typeof console.error == "function" && console.error(e);
|
|
163
|
-
try {
|
|
164
|
-
throw new Error(e);
|
|
165
|
-
} catch {
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
function P(e, t, r, a) {
|
|
169
|
-
const f = Object.keys(t), u = r && r.type === b.INIT ? "preloadedState argument passed to createStore" : "previous state received by the reducer";
|
|
170
|
-
if (f.length === 0)
|
|
171
|
-
return "Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";
|
|
172
|
-
if (!I(e))
|
|
173
|
-
return `The ${u} has unexpected type of "${h(e)}". Expected argument to be an object with the following keys: "${f.join('", "')}"`;
|
|
174
|
-
const o = Object.keys(e).filter((s) => !t.hasOwnProperty(s) && !a[s]);
|
|
175
|
-
if (o.forEach((s) => {
|
|
176
|
-
a[s] = !0;
|
|
177
|
-
}), !(r && r.type === b.REPLACE) && o.length > 0)
|
|
178
|
-
return `Unexpected ${o.length > 1 ? "keys" : "key"} "${o.join('", "')}" found in ${u}. Expected to find one of the known reducer keys instead: "${f.join('", "')}". Unexpected keys will be ignored.`;
|
|
179
|
-
}
|
|
180
|
-
function R(e) {
|
|
181
|
-
Object.keys(e).forEach((t) => {
|
|
182
|
-
const r = e[t];
|
|
183
|
-
if (typeof r(void 0, {
|
|
184
|
-
type: b.INIT
|
|
185
|
-
}) > "u")
|
|
186
|
-
throw new Error(process.env.NODE_ENV === "production" ? i(12) : `The slice reducer for key "${t}" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);
|
|
187
|
-
if (typeof r(void 0, {
|
|
188
|
-
type: b.PROBE_UNKNOWN_ACTION()
|
|
189
|
-
}) > "u")
|
|
190
|
-
throw new Error(process.env.NODE_ENV === "production" ? i(13) : `The slice reducer for key "${t}" returned undefined when probed with a random type. Don't try to handle '${b.INIT}' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.`);
|
|
191
|
-
});
|
|
192
|
-
}
|
|
193
|
-
function C(e) {
|
|
194
|
-
const t = Object.keys(e), r = {};
|
|
195
|
-
for (let o = 0; o < t.length; o++) {
|
|
196
|
-
const s = t[o];
|
|
197
|
-
process.env.NODE_ENV !== "production" && typeof e[s] > "u" && _(`No reducer provided for key "${s}"`), typeof e[s] == "function" && (r[s] = e[s]);
|
|
198
|
-
}
|
|
199
|
-
const a = Object.keys(r);
|
|
200
|
-
let f;
|
|
201
|
-
process.env.NODE_ENV !== "production" && (f = {});
|
|
202
|
-
let u;
|
|
203
|
-
try {
|
|
204
|
-
R(r);
|
|
205
|
-
} catch (o) {
|
|
206
|
-
u = o;
|
|
207
|
-
}
|
|
208
|
-
return function(s = {}, c) {
|
|
209
|
-
if (u)
|
|
210
|
-
throw u;
|
|
211
|
-
if (process.env.NODE_ENV !== "production") {
|
|
212
|
-
const p = P(s, r, c, f);
|
|
213
|
-
p && _(p);
|
|
214
|
-
}
|
|
215
|
-
let l = !1;
|
|
216
|
-
const w = {};
|
|
217
|
-
for (let p = 0; p < a.length; p++) {
|
|
218
|
-
const y = a[p], N = r[y], g = s[y], m = N(g, c);
|
|
219
|
-
if (typeof m > "u") {
|
|
220
|
-
const n = c && c.type;
|
|
221
|
-
throw new Error(process.env.NODE_ENV === "production" ? i(14) : `When called with an action of type ${n ? `"${String(n)}"` : "(unknown type)"}, the slice reducer for key "${y}" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.`);
|
|
222
|
-
}
|
|
223
|
-
w[y] = m, l = l || m !== g;
|
|
224
|
-
}
|
|
225
|
-
return l = l || a.length !== Object.keys(s).length, l ? w : s;
|
|
226
|
-
};
|
|
227
|
-
}
|
|
1
|
+
import { combineReducers as r } from "./index.es342.js";
|
|
2
|
+
import { reducer as e } from "./index.es262.js";
|
|
3
|
+
import { reducer as o } from "./index.es261.js";
|
|
4
|
+
import { reducer as d } from "./index.es265.js";
|
|
5
|
+
import { reducer as c } from "./index.es264.js";
|
|
6
|
+
import { reducer as m } from "./index.es263.js";
|
|
7
|
+
import { reducer as u } from "./index.es415.js";
|
|
8
|
+
const $ = r({
|
|
9
|
+
nodes: r({
|
|
10
|
+
focus: e,
|
|
11
|
+
edit: o,
|
|
12
|
+
open: m,
|
|
13
|
+
selection: c,
|
|
14
|
+
drag: u
|
|
15
|
+
}),
|
|
16
|
+
dnd: d
|
|
17
|
+
});
|
|
228
18
|
export {
|
|
229
|
-
|
|
230
|
-
C as combineReducers,
|
|
231
|
-
A as createStore,
|
|
232
|
-
I as isPlainObject
|
|
19
|
+
$ as rootReducer
|
|
233
20
|
};
|
package/dist/index.es341.js
CHANGED
|
@@ -1,102 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var _ = ["children"];
|
|
6
|
-
function h(t, r) {
|
|
7
|
-
return A(t) || j(t, r) || x(t, r) || p();
|
|
8
|
-
}
|
|
9
|
-
function p() {
|
|
10
|
-
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
11
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
12
|
-
}
|
|
13
|
-
function x(t, r) {
|
|
14
|
-
if (t) {
|
|
15
|
-
if (typeof t == "string") return c(t, r);
|
|
16
|
-
var e = Object.prototype.toString.call(t).slice(8, -1);
|
|
17
|
-
if (e === "Object" && t.constructor && (e = t.constructor.name), e === "Map" || e === "Set") return Array.from(t);
|
|
18
|
-
if (e === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)) return c(t, r);
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
function c(t, r) {
|
|
22
|
-
(r == null || r > t.length) && (r = t.length);
|
|
23
|
-
for (var e = 0, n = new Array(r); e < r; e++)
|
|
24
|
-
n[e] = t[e];
|
|
25
|
-
return n;
|
|
26
|
-
}
|
|
27
|
-
function j(t, r) {
|
|
28
|
-
var e = t == null ? null : typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
|
|
29
|
-
if (e != null) {
|
|
30
|
-
var n = [], a = !0, o = !1, i, u;
|
|
31
|
-
try {
|
|
32
|
-
for (e = e.call(t); !(a = (i = e.next()).done) && (n.push(i.value), !(r && n.length === r)); a = !0)
|
|
33
|
-
;
|
|
34
|
-
} catch (f) {
|
|
35
|
-
o = !0, u = f;
|
|
36
|
-
} finally {
|
|
37
|
-
try {
|
|
38
|
-
!a && e.return != null && e.return();
|
|
39
|
-
} finally {
|
|
40
|
-
if (o) throw u;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
return n;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
function A(t) {
|
|
47
|
-
if (Array.isArray(t)) return t;
|
|
48
|
-
}
|
|
49
|
-
function D(t, r) {
|
|
50
|
-
if (t == null) return {};
|
|
51
|
-
var e = C(t, r), n, a;
|
|
52
|
-
if (Object.getOwnPropertySymbols) {
|
|
53
|
-
var o = Object.getOwnPropertySymbols(t);
|
|
54
|
-
for (a = 0; a < o.length; a++)
|
|
55
|
-
n = o[a], !(r.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(t, n) && (e[n] = t[n]);
|
|
56
|
-
}
|
|
57
|
-
return e;
|
|
58
|
-
}
|
|
59
|
-
function C(t, r) {
|
|
60
|
-
if (t == null) return {};
|
|
61
|
-
var e = {}, n = Object.keys(t), a, o;
|
|
62
|
-
for (o = 0; o < n.length; o++)
|
|
63
|
-
a = n[o], !(r.indexOf(a) >= 0) && (e[a] = t[a]);
|
|
64
|
-
return e;
|
|
65
|
-
}
|
|
66
|
-
var d = 0, l = Symbol.for("__REACT_DND_CONTEXT_INSTANCE__"), M = s(function(r) {
|
|
67
|
-
var e = r.children, n = D(r, _), a = O(n), o = h(a, 2), i = o[0], u = o[1];
|
|
68
|
-
return v(function() {
|
|
69
|
-
if (u) {
|
|
70
|
-
var f = g();
|
|
71
|
-
return ++d, function() {
|
|
72
|
-
--d === 0 && (f[l] = null);
|
|
73
|
-
};
|
|
74
|
-
}
|
|
75
|
-
}, []), m.jsx(y.Provider, Object.assign({
|
|
76
|
-
value: i
|
|
77
|
-
}, {
|
|
78
|
-
children: e
|
|
79
|
-
}), void 0);
|
|
80
|
-
});
|
|
81
|
-
function O(t) {
|
|
82
|
-
if ("manager" in t) {
|
|
83
|
-
var r = {
|
|
84
|
-
dragDropManager: t.manager
|
|
85
|
-
};
|
|
86
|
-
return [r, !1];
|
|
87
|
-
}
|
|
88
|
-
var e = S(t.backend, t.context, t.options, t.debugMode), n = !t.context;
|
|
89
|
-
return [e, n];
|
|
90
|
-
}
|
|
91
|
-
function S(t) {
|
|
92
|
-
var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : g(), e = arguments.length > 2 ? arguments[2] : void 0, n = arguments.length > 3 ? arguments[3] : void 0, a = r;
|
|
93
|
-
return a[l] || (a[l] = {
|
|
94
|
-
dragDropManager: b(t, r, e, n)
|
|
95
|
-
}), a[l];
|
|
96
|
-
}
|
|
97
|
-
function g() {
|
|
98
|
-
return typeof global < "u" ? global : window;
|
|
99
|
-
}
|
|
1
|
+
import { HTML5BackendImpl as a } from "./index.es416.js";
|
|
2
|
+
var o = function(e, n, r) {
|
|
3
|
+
return new a(e, n, r);
|
|
4
|
+
};
|
|
100
5
|
export {
|
|
101
|
-
|
|
6
|
+
o as HTML5Backend
|
|
102
7
|
};
|