elcrm 0.6.9 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Form/Modal.d.ts +4 -2
- package/dist/Form/Set.d.ts +2 -1
- package/dist/Modal/Modal.d.ts +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +127 -119
- package/dist/index.umd.js +5 -5
- package/package.json +1 -1
package/dist/Form/Modal.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
interface Input {
|
|
2
2
|
value?: string;
|
|
3
3
|
onValue?: Function;
|
|
4
|
-
name
|
|
4
|
+
name: string;
|
|
5
5
|
placeholder?: string;
|
|
6
6
|
title?: string;
|
|
7
7
|
error?: string;
|
|
@@ -12,6 +12,8 @@ interface Input {
|
|
|
12
12
|
after?: string;
|
|
13
13
|
view?: string;
|
|
14
14
|
className?: string;
|
|
15
|
+
module: string;
|
|
16
|
+
options?: any;
|
|
15
17
|
}
|
|
16
|
-
export default function ({ value, onValue, name, placeholder, title, error, hide, edit, show, active, after, view, }: Input): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export default function ({ value, onValue, name, placeholder, title, error, hide, edit, show, active, after, view, module, options, }: Input): import("react/jsx-runtime").JSX.Element;
|
|
17
19
|
export {};
|
package/dist/Form/Set.d.ts
CHANGED
|
@@ -12,9 +12,10 @@ type Data = {
|
|
|
12
12
|
active?: boolean;
|
|
13
13
|
after?: string;
|
|
14
14
|
view?: string;
|
|
15
|
+
module?: string;
|
|
15
16
|
options: Array<any>;
|
|
16
17
|
className?: string;
|
|
17
18
|
item?: string;
|
|
18
19
|
};
|
|
19
|
-
export default function ({ set, value, onValue, name, placeholder, title, error, hide, edit, show, active, after, view, item, className, }: Data): import("react/jsx-runtime").JSX.Element | undefined;
|
|
20
|
+
export default function ({ set, value, onValue, name, placeholder, title, error, hide, edit, show, active, after, view, module, item, className, }: Data): import("react/jsx-runtime").JSX.Element | undefined;
|
|
20
21
|
export {};
|
package/dist/Modal/Modal.d.ts
CHANGED
|
@@ -42,7 +42,7 @@ export declare function Icon({ type, name, params }: Params): import("react/jsx-
|
|
|
42
42
|
* Введите текст уведомления
|
|
43
43
|
* @param {string} type - name modules.
|
|
44
44
|
* @param {string} name - name modal.
|
|
45
|
-
* @param {any} params -
|
|
45
|
+
* @param {any} params - params.
|
|
46
46
|
*/
|
|
47
47
|
export declare function Open(type: string, name: string, params: any): void;
|
|
48
48
|
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export { default as Router } from './Router';
|
|
|
16
16
|
export { default as Triage } from './Triage';
|
|
17
17
|
export { default as Format } from './Format';
|
|
18
18
|
export { default as Event } from './Event';
|
|
19
|
+
export { default as Events } from './Event';
|
|
19
20
|
export { default as Badge } from './Badge';
|
|
20
21
|
export { default as Socket } from './Socket';
|
|
21
22
|
export { default as DataBase } from './DataBase';
|
package/dist/index.es.js
CHANGED
|
@@ -388,11 +388,11 @@ var Ie = {};
|
|
|
388
388
|
var sn;
|
|
389
389
|
function ps() {
|
|
390
390
|
return sn || (sn = 1, process.env.NODE_ENV !== "production" && function() {
|
|
391
|
-
var e = g, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), c = Symbol.for("react.provider"), l = Symbol.for("react.context"), _ = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), x = Symbol.for("react.offscreen"), p = Symbol.iterator,
|
|
391
|
+
var e = g, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), c = Symbol.for("react.provider"), l = Symbol.for("react.context"), _ = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), x = Symbol.for("react.offscreen"), p = Symbol.iterator, C = "@@iterator";
|
|
392
392
|
function w(o) {
|
|
393
393
|
if (o === null || typeof o != "object")
|
|
394
394
|
return null;
|
|
395
|
-
var f = p && o[p] || o[
|
|
395
|
+
var f = p && o[p] || o[C];
|
|
396
396
|
return typeof f == "function" ? f : null;
|
|
397
397
|
}
|
|
398
398
|
var y = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
@@ -1647,14 +1647,14 @@ const or = (e) => {
|
|
|
1647
1647
|
u3: ["тысяча", "тысячи", "тысяч"],
|
|
1648
1648
|
u2: ["миллион", "миллиона", "миллионов"],
|
|
1649
1649
|
u1: ["миллиард", "миллиарда", "миллиардов"]
|
|
1650
|
-
}, r, i, c, l, w, _, d,
|
|
1650
|
+
}, r, i, c, l, w, _, d, C, u, m, h, x;
|
|
1651
1651
|
u = parseFloat(e).toFixed(2).split("."), _ = u[0], l = u[1];
|
|
1652
1652
|
var p = 12 - _.length;
|
|
1653
1653
|
if (p < 0)
|
|
1654
1654
|
return !1;
|
|
1655
|
-
for (var
|
|
1656
|
-
|
|
1657
|
-
_ =
|
|
1655
|
+
for (var C = []; p--; )
|
|
1656
|
+
C.push("0");
|
|
1657
|
+
_ = C.join("") + _;
|
|
1658
1658
|
var w = [];
|
|
1659
1659
|
if (_ > 0) {
|
|
1660
1660
|
m = t(_, 3);
|
|
@@ -2534,27 +2534,27 @@ const Ti = () => {
|
|
|
2534
2534
|
return /* @__PURE__ */ a.jsx("span", { onContextMenu: t, onClick: n, children: e.name });
|
|
2535
2535
|
}, Di = (e) => {
|
|
2536
2536
|
A.active(e);
|
|
2537
|
-
}, O = {}, ht = {},
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
|
|
2537
|
+
}, O = {}, ht = {}, k = {};
|
|
2538
|
+
k.config = { iceServers: [{ url: "stun:stun.l.google.com:19302" }] };
|
|
2539
|
+
k.constraints = { optional: [{ DtlsSrtpKeyAgreement: !0 }] };
|
|
2540
|
+
k.other = [];
|
|
2541
|
+
k.users = {};
|
|
2542
|
+
k.asset = 0;
|
|
2543
|
+
k.remoute = !1;
|
|
2544
|
+
k.stream = null;
|
|
2545
|
+
k.user = 0;
|
|
2546
|
+
k.connect = !1;
|
|
2547
|
+
k.offer = null;
|
|
2548
|
+
k.btnRefuse = null;
|
|
2549
|
+
k.time = !1;
|
|
2550
2550
|
let xe;
|
|
2551
2551
|
xe = document.createElement("audio");
|
|
2552
2552
|
xe.setAttribute("autoplay", "true");
|
|
2553
2553
|
xe.setAttribute("muted", "true");
|
|
2554
2554
|
O.start = async (e) => {
|
|
2555
|
-
|
|
2556
|
-
n.candidate &&
|
|
2557
|
-
},
|
|
2555
|
+
k.rtc = new RTCPeerConnection(k.config), k.other = [], k.remoute = !1, k.rtc.onicecandidate = (n) => {
|
|
2556
|
+
n.candidate && k.other.push(n.candidate);
|
|
2557
|
+
}, k.rtc.ontrack = (n) => {
|
|
2558
2558
|
if (n.streams && n.streams[0])
|
|
2559
2559
|
xe.srcObject = n.streams[0];
|
|
2560
2560
|
else {
|
|
@@ -2568,10 +2568,10 @@ O.start = async (e) => {
|
|
|
2568
2568
|
audio: { echoCancellation: !1, autoGainControl: !0 }
|
|
2569
2569
|
});
|
|
2570
2570
|
t.getTracks().forEach((n) => {
|
|
2571
|
-
|
|
2572
|
-
}),
|
|
2573
|
-
console.log(
|
|
2574
|
-
},
|
|
2571
|
+
k.rtc.addTrack(n, t);
|
|
2572
|
+
}), k.rtc.onconnectionstatechange = () => {
|
|
2573
|
+
console.log(k.rtc.connectionState), k.rtc.connectionState;
|
|
2574
|
+
}, k.rtc.ontrack = async (n) => {
|
|
2575
2575
|
if (n.streams && n.streams[0])
|
|
2576
2576
|
xe.srcObject = n.streams[0];
|
|
2577
2577
|
else {
|
|
@@ -2579,21 +2579,21 @@ O.start = async (e) => {
|
|
|
2579
2579
|
let s = new MediaStream(n.track);
|
|
2580
2580
|
xe.srcObject = s;
|
|
2581
2581
|
}
|
|
2582
|
-
},
|
|
2582
|
+
}, k.rtc.onaddstream = (n) => {
|
|
2583
2583
|
console.log(n);
|
|
2584
|
-
},
|
|
2584
|
+
}, k.rtc.onnegotiationneeded = (n) => {
|
|
2585
2585
|
console.log(n);
|
|
2586
|
-
},
|
|
2586
|
+
}, k.rtc.oniceconnectionstatechange = (n) => {
|
|
2587
2587
|
console.log(n.target);
|
|
2588
|
-
},
|
|
2588
|
+
}, k.rtc.onsignalingstatechange = (n) => {
|
|
2589
2589
|
console.log(n.target.connectionState);
|
|
2590
|
-
},
|
|
2590
|
+
}, k.rtc.onicegatheringstatechange = (n) => {
|
|
2591
2591
|
console.log(n);
|
|
2592
|
-
},
|
|
2592
|
+
}, k.rtc.onicecandidateerror = (n) => {
|
|
2593
2593
|
console.log(n);
|
|
2594
|
-
},
|
|
2594
|
+
}, k.rtc.ondatachannel = (n) => {
|
|
2595
2595
|
console.log(n);
|
|
2596
|
-
}, console.log(
|
|
2596
|
+
}, console.log(k.rtc), k.rtc.onerror = (n) => {
|
|
2597
2597
|
console.log("error", n);
|
|
2598
2598
|
}, e();
|
|
2599
2599
|
};
|
|
@@ -2605,66 +2605,66 @@ O.setListener = (e) => {
|
|
|
2605
2605
|
};
|
|
2606
2606
|
O.callTo = async (e) => {
|
|
2607
2607
|
O.start(async () => {
|
|
2608
|
-
const t = await
|
|
2609
|
-
await
|
|
2608
|
+
const t = await k.rtc.createOffer();
|
|
2609
|
+
await k.rtc.setLocalDescription(t), k.uid = e, ce.Send({
|
|
2610
2610
|
type: "module",
|
|
2611
2611
|
module: "M00",
|
|
2612
2612
|
query: "x0050",
|
|
2613
2613
|
data: {
|
|
2614
2614
|
type: "offer",
|
|
2615
2615
|
offer: btoa(JSON.stringify(t)),
|
|
2616
|
-
user:
|
|
2616
|
+
user: k.uid
|
|
2617
2617
|
}
|
|
2618
2618
|
});
|
|
2619
2619
|
});
|
|
2620
2620
|
};
|
|
2621
2621
|
O.callIn = async (e) => {
|
|
2622
|
-
console.log("callIn"),
|
|
2622
|
+
console.log("callIn"), k.asset = e.id, k.offer = e.offer, k.uid = e.id;
|
|
2623
2623
|
};
|
|
2624
2624
|
O.callRise = async () => {
|
|
2625
2625
|
O.start(async () => {
|
|
2626
|
-
|
|
2627
|
-
new RTCSessionDescription(JSON.parse(atob(
|
|
2626
|
+
k.rtc.setRemoteDescription(
|
|
2627
|
+
new RTCSessionDescription(JSON.parse(atob(k.offer)))
|
|
2628
2628
|
);
|
|
2629
|
-
const e = await
|
|
2630
|
-
await
|
|
2629
|
+
const e = await k.rtc.createAnswer();
|
|
2630
|
+
await k.rtc.setLocalDescription(e), ce.Send({
|
|
2631
2631
|
type: "module",
|
|
2632
2632
|
module: "M00",
|
|
2633
2633
|
query: "x0050",
|
|
2634
2634
|
data: {
|
|
2635
2635
|
type: "answer",
|
|
2636
2636
|
answer: btoa(JSON.stringify(e)),
|
|
2637
|
-
user:
|
|
2637
|
+
user: k.uid
|
|
2638
2638
|
}
|
|
2639
2639
|
}), console.log("согласилась");
|
|
2640
2640
|
});
|
|
2641
2641
|
};
|
|
2642
2642
|
O.callOk = async (e) => {
|
|
2643
|
-
|
|
2643
|
+
k.asset = e.id;
|
|
2644
2644
|
const t = new RTCSessionDescription(JSON.parse(atob(e.answer)));
|
|
2645
|
-
await
|
|
2645
|
+
await k.rtc.setRemoteDescription(t), console.log("ok"), ce.Send({
|
|
2646
2646
|
type: "module",
|
|
2647
2647
|
module: "M00",
|
|
2648
2648
|
query: "x0050",
|
|
2649
2649
|
data: {
|
|
2650
2650
|
type: "IceCandidate",
|
|
2651
|
-
candidate: JSON.parse(JSON.stringify(
|
|
2652
|
-
user:
|
|
2651
|
+
candidate: JSON.parse(JSON.stringify(k.other)),
|
|
2652
|
+
user: k.uid,
|
|
2653
2653
|
send: !0
|
|
2654
2654
|
}
|
|
2655
2655
|
});
|
|
2656
2656
|
};
|
|
2657
2657
|
O.IceCandidate = async (e) => {
|
|
2658
2658
|
console.log(e), console.log("candidate"), e.candidate.forEach((t) => {
|
|
2659
|
-
|
|
2659
|
+
k.rtc.addIceCandidate(new RTCIceCandidate(t));
|
|
2660
2660
|
}), e.send && ce.Send({
|
|
2661
2661
|
type: "module",
|
|
2662
2662
|
module: "M00",
|
|
2663
2663
|
query: "x0050",
|
|
2664
2664
|
data: {
|
|
2665
2665
|
type: "IceCandidate",
|
|
2666
|
-
candidate: JSON.parse(JSON.stringify(
|
|
2667
|
-
user:
|
|
2666
|
+
candidate: JSON.parse(JSON.stringify(k.other)),
|
|
2667
|
+
user: k.uid,
|
|
2668
2668
|
send: !1
|
|
2669
2669
|
}
|
|
2670
2670
|
});
|
|
@@ -2672,18 +2672,18 @@ O.IceCandidate = async (e) => {
|
|
|
2672
2672
|
O.callFrom = async () => {
|
|
2673
2673
|
};
|
|
2674
2674
|
O.callNo = () => {
|
|
2675
|
-
console.log("Пользователь не в сети или отклонил"),
|
|
2675
|
+
console.log("Пользователь не в сети или отклонил"), k.asset = 0, k.time = !1, k.rtc && k.rtc.close(), O.setListener({ type: "state", data: "closed" });
|
|
2676
2676
|
};
|
|
2677
2677
|
O.callOf = () => {
|
|
2678
|
-
|
|
2678
|
+
k.asset = 0, k.time = !1, k.rtc.close();
|
|
2679
2679
|
};
|
|
2680
2680
|
O.callRefuser = async () => {
|
|
2681
2681
|
ce.Send({
|
|
2682
2682
|
type: "module",
|
|
2683
2683
|
module: "M00",
|
|
2684
2684
|
query: "x0050",
|
|
2685
|
-
data: { type: "callRefuser", user:
|
|
2686
|
-
}),
|
|
2685
|
+
data: { type: "callRefuser", user: k.uid }
|
|
2686
|
+
}), k.asset = 0, k.time = !1, k.rtc && k.rtc.close();
|
|
2687
2687
|
};
|
|
2688
2688
|
O.Run = async (e) => {
|
|
2689
2689
|
O[e.data.type] && O[e.data.type](e.data);
|
|
@@ -3138,26 +3138,26 @@ const Se = () => (lt || (lt = new So()), lt), me = (e, t, n = Se()) => n._withID
|
|
|
3138
3138
|
}, No = (e, t, n = [], s = {}) => {
|
|
3139
3139
|
let r = n.length !== 0, i = [], c = s.sort, l = Object.keys(s).length !== 0, _ = Object.keys(s), d = Object.keys(e), u = 1, m = [], h = {};
|
|
3140
3140
|
h[u] = [];
|
|
3141
|
-
let x = (
|
|
3141
|
+
let x = (C) => {
|
|
3142
3142
|
let w = "";
|
|
3143
3143
|
if (n.forEach((y) => {
|
|
3144
|
-
w += t[
|
|
3144
|
+
w += t[C][y];
|
|
3145
3145
|
}), l) {
|
|
3146
3146
|
let y = {};
|
|
3147
3147
|
_.forEach((b) => {
|
|
3148
|
-
y[b] = t[
|
|
3148
|
+
y[b] = t[C][b];
|
|
3149
3149
|
});
|
|
3150
3150
|
for (let b in c)
|
|
3151
|
-
t[
|
|
3152
|
-
i.push({ id:
|
|
3151
|
+
t[C][c[b]] === void 0 && (pt(), location.reload()), b === "s1" && (y[b] = new Date(t[C][c[b]]).getTime()), b === "s2" && (y[b] = t[C][c[b]]), b === "s3" && (y[b] = t[C][c[b]].replace(/[^a-zа-яё]/gi, "").substring(0, 1));
|
|
3152
|
+
i.push({ id: C, text: w, ...y });
|
|
3153
3153
|
} else
|
|
3154
|
-
i.push({ id:
|
|
3155
|
-
}, p = (
|
|
3154
|
+
i.push({ id: C, text: w });
|
|
3155
|
+
}, p = (C) => {
|
|
3156
3156
|
};
|
|
3157
|
-
return d.forEach((
|
|
3158
|
-
m.push(t[
|
|
3159
|
-
}), m.forEach((
|
|
3160
|
-
|
|
3157
|
+
return d.forEach((C) => {
|
|
3158
|
+
m.push(t[C]);
|
|
3159
|
+
}), m.forEach((C) => {
|
|
3160
|
+
C === void 0 ? (pt(), location.reload()) : (r && x(C.id), l && p(C.id));
|
|
3161
3161
|
}), { list: h, search: i, filter: s };
|
|
3162
3162
|
}, To = (e, t, n, s = Se()) => {
|
|
3163
3163
|
if (Z[e] === void 0)
|
|
@@ -3333,7 +3333,7 @@ function $e({
|
|
|
3333
3333
|
onSave: x,
|
|
3334
3334
|
className: p = ""
|
|
3335
3335
|
}) {
|
|
3336
|
-
let
|
|
3336
|
+
let C = !!(c && (e === "" || e === void 0)), w = (P) => {
|
|
3337
3337
|
t && t({ value: P.target.textContent, name: n });
|
|
3338
3338
|
}, y = (P) => {
|
|
3339
3339
|
P.key === "Enter" && P.preventDefault();
|
|
@@ -3348,7 +3348,7 @@ function $e({
|
|
|
3348
3348
|
}
|
|
3349
3349
|
);
|
|
3350
3350
|
};
|
|
3351
|
-
if (!(l && _) && !u || !(l && _) &&
|
|
3351
|
+
if (!(l && _) && !u || !(l && _) && C)
|
|
3352
3352
|
return "";
|
|
3353
3353
|
const I = {};
|
|
3354
3354
|
I.field = "input", p && (I.className = p);
|
|
@@ -3425,7 +3425,7 @@ function Dn({
|
|
|
3425
3425
|
window.document.execCommand("insertText", !1, b);
|
|
3426
3426
|
}).catch((b) => {
|
|
3427
3427
|
});
|
|
3428
|
-
},
|
|
3428
|
+
}, C = () => {
|
|
3429
3429
|
n(!1);
|
|
3430
3430
|
}, w = {
|
|
3431
3431
|
spellCheck: "true"
|
|
@@ -3437,7 +3437,7 @@ function Dn({
|
|
|
3437
3437
|
onInput: m,
|
|
3438
3438
|
onKeyUp: x,
|
|
3439
3439
|
onKeyDown: h,
|
|
3440
|
-
onBlur:
|
|
3440
|
+
onBlur: C,
|
|
3441
3441
|
...w,
|
|
3442
3442
|
suppressContentEditableWarning: !0,
|
|
3443
3443
|
children: e
|
|
@@ -3689,13 +3689,13 @@ function Et(e) {
|
|
|
3689
3689
|
let d = (x) => {
|
|
3690
3690
|
l(x), e.onValue({ value: x, name: e.name });
|
|
3691
3691
|
}, u = (x) => {
|
|
3692
|
-
const p = x.target.getBoundingClientRect(),
|
|
3692
|
+
const p = x.target.getBoundingClientRect(), C = p.left, w = p.top;
|
|
3693
3693
|
we.setListener(
|
|
3694
3694
|
"form",
|
|
3695
3695
|
/* @__PURE__ */ a.jsx(
|
|
3696
3696
|
Vo,
|
|
3697
3697
|
{
|
|
3698
|
-
position: { x:
|
|
3698
|
+
position: { x: C, y: w },
|
|
3699
3699
|
onValue: d,
|
|
3700
3700
|
date: c
|
|
3701
3701
|
},
|
|
@@ -3753,7 +3753,7 @@ const Vo = (e) => {
|
|
|
3753
3753
|
x.push(h.getDate()), h.setDate(h.getDate() + 1);
|
|
3754
3754
|
let p = () => {
|
|
3755
3755
|
n(!1);
|
|
3756
|
-
},
|
|
3756
|
+
}, C = () => {
|
|
3757
3757
|
b(l.m + 1, l.y);
|
|
3758
3758
|
}, w = () => {
|
|
3759
3759
|
b(l.m - 1, l.y);
|
|
@@ -3786,7 +3786,7 @@ const Vo = (e) => {
|
|
|
3786
3786
|
" ",
|
|
3787
3787
|
l.y
|
|
3788
3788
|
] }),
|
|
3789
|
-
/* @__PURE__ */ a.jsx("i", { "data-icon": "F022", onClick: () =>
|
|
3789
|
+
/* @__PURE__ */ a.jsx("i", { "data-icon": "F022", onClick: () => C() })
|
|
3790
3790
|
] }),
|
|
3791
3791
|
/* @__PURE__ */ a.jsxs("div", { children: [
|
|
3792
3792
|
u.map((j, F) => /* @__PURE__ */ a.jsx("p", { children: j }, "v" + F)),
|
|
@@ -3816,12 +3816,16 @@ function Rt({
|
|
|
3816
3816
|
show: _ = !0,
|
|
3817
3817
|
active: d = !0,
|
|
3818
3818
|
after: u = "",
|
|
3819
|
-
view: m
|
|
3820
|
-
|
|
3819
|
+
view: m,
|
|
3820
|
+
module: h,
|
|
3821
|
+
options: x
|
|
3821
3822
|
}) {
|
|
3822
|
-
let [
|
|
3823
|
-
wt.Open(
|
|
3824
|
-
|
|
3823
|
+
let [p, C] = g.useState(e), w = (y) => {
|
|
3824
|
+
wt.Open(h, n, {
|
|
3825
|
+
calback: (b) => {
|
|
3826
|
+
t && t({ value: b, name: n }), C(b);
|
|
3827
|
+
},
|
|
3828
|
+
options: x
|
|
3825
3829
|
});
|
|
3826
3830
|
};
|
|
3827
3831
|
return c ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("dl", { "data-form": "select", "data-view": m, children: [
|
|
@@ -3829,11 +3833,11 @@ function Rt({
|
|
|
3829
3833
|
/* @__PURE__ */ a.jsx(
|
|
3830
3834
|
"dd",
|
|
3831
3835
|
{
|
|
3832
|
-
onClick:
|
|
3836
|
+
onClick: w,
|
|
3833
3837
|
"data-edit": (l && d) + "",
|
|
3834
3838
|
"data-placeholder": s,
|
|
3835
3839
|
"data-after": u,
|
|
3836
|
-
children:
|
|
3840
|
+
children: p
|
|
3837
3841
|
}
|
|
3838
3842
|
),
|
|
3839
3843
|
i ? /* @__PURE__ */ a.jsx("dt", { children: i }) : ""
|
|
@@ -3905,12 +3909,12 @@ function Pn({
|
|
|
3905
3909
|
g.useEffect(() => {
|
|
3906
3910
|
m(e);
|
|
3907
3911
|
}, [e]);
|
|
3908
|
-
let h = (
|
|
3909
|
-
m(
|
|
3910
|
-
}, x = (
|
|
3912
|
+
let h = (C) => {
|
|
3913
|
+
m(C), t && t({ value: C, name: n });
|
|
3914
|
+
}, x = (C) => {
|
|
3911
3915
|
if (!i || !c)
|
|
3912
3916
|
return;
|
|
3913
|
-
const w =
|
|
3917
|
+
const w = C.target.getBoundingClientRect(), y = w.left, b = w.top;
|
|
3914
3918
|
we.setListener(
|
|
3915
3919
|
"form",
|
|
3916
3920
|
/* @__PURE__ */ a.jsx(
|
|
@@ -3964,7 +3968,7 @@ const Uo = (e) => {
|
|
|
3964
3968
|
_(l - 1);
|
|
3965
3969
|
}, h = (y) => {
|
|
3966
3970
|
e.onValue(l + "-" + G.Number(2, y)), d();
|
|
3967
|
-
}, x = (y) => i.y === c.y && i.m === y ? "_FFEB3B" : "", p = Array(12).fill("").map((y, b) => b + 1),
|
|
3971
|
+
}, x = (y) => i.y === c.y && i.m === y ? "_FFEB3B" : "", p = Array(12).fill("").map((y, b) => b + 1), C = window.innerHeight - e.position.y + 33 < 320 ? e.position.y - 312 : e.position.y + 33, w = window.innerWidth - e.position.x < 265 ? e.position.x - 235 : e.position.x;
|
|
3968
3972
|
return /* @__PURE__ */ a.jsx(a.Fragment, { children: t ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
3969
3973
|
/* @__PURE__ */ a.jsx(
|
|
3970
3974
|
"div",
|
|
@@ -3978,7 +3982,7 @@ const Uo = (e) => {
|
|
|
3978
3982
|
"div",
|
|
3979
3983
|
{
|
|
3980
3984
|
className: je.c,
|
|
3981
|
-
style: { top:
|
|
3985
|
+
style: { top: C + "px", left: w + "px" },
|
|
3982
3986
|
children: [
|
|
3983
3987
|
/* @__PURE__ */ a.jsxs("s", { children: [
|
|
3984
3988
|
/* @__PURE__ */ a.jsx("i", { "data-icon": "F021", onClick: () => m() }),
|
|
@@ -4009,15 +4013,15 @@ const Uo = (e) => {
|
|
|
4009
4013
|
function Bn(e) {
|
|
4010
4014
|
let t = () => e.title ? /* @__PURE__ */ a.jsx("dt", { children: e.title }) : "", n = () => e.error ? /* @__PURE__ */ a.jsx("em", { children: e.error }) : "", [s, r] = g.useState(!1), i = e.edit !== void 0 ? e.edit : !0, c = e.active !== void 0 ? e.active : !0, _ = !!(e.hide && (e.value === "" || e.value === void 0)) && !(i && c);
|
|
4011
4015
|
s = i ? !0 : s;
|
|
4012
|
-
let d = e.placeholder !== void 0 ? e.placeholder : "Заметка пуста", u = (
|
|
4013
|
-
e.onValue({ value:
|
|
4014
|
-
}, m = (
|
|
4015
|
-
|
|
4016
|
+
let d = e.placeholder !== void 0 ? e.placeholder : "Заметка пуста", u = (C) => {
|
|
4017
|
+
e.onValue({ value: C.target.innerText, name: e.name });
|
|
4018
|
+
}, m = (C) => {
|
|
4019
|
+
C.preventDefault(), navigator.clipboard.readText().then((w) => {
|
|
4016
4020
|
window.document.execCommand("insertText", !1, w);
|
|
4017
4021
|
}).catch((w) => {
|
|
4018
4022
|
console.log("Something went wrong", w);
|
|
4019
4023
|
});
|
|
4020
|
-
}, h = (
|
|
4024
|
+
}, h = (C) => {
|
|
4021
4025
|
i || r(!s);
|
|
4022
4026
|
};
|
|
4023
4027
|
const x = {};
|
|
@@ -4058,7 +4062,7 @@ function Tt({
|
|
|
4058
4062
|
after: h,
|
|
4059
4063
|
view: x
|
|
4060
4064
|
}) {
|
|
4061
|
-
let p = () => r ? /* @__PURE__ */ a.jsx("dt", { children: r }) : "",
|
|
4065
|
+
let p = () => r ? /* @__PURE__ */ a.jsx("dt", { children: r }) : "", C = () => i ? /* @__PURE__ */ a.jsx("em", { children: i }) : "";
|
|
4062
4066
|
s = s !== void 0 ? s : !0, t = t !== void 0 ? t : !0, l = !!(l && (_ === "" || _ === void 0)) && !(s && t), d = d !== void 0 ? d : "", n = n !== void 0 ? n : 99;
|
|
4063
4067
|
let y = !1, b = (B) => {
|
|
4064
4068
|
e && e({ value: B.target.textContent, name: m });
|
|
@@ -4099,7 +4103,7 @@ function Tt({
|
|
|
4099
4103
|
children: _
|
|
4100
4104
|
}
|
|
4101
4105
|
),
|
|
4102
|
-
|
|
4106
|
+
C()
|
|
4103
4107
|
] });
|
|
4104
4108
|
}
|
|
4105
4109
|
function On({
|
|
@@ -4136,8 +4140,8 @@ function On({
|
|
|
4136
4140
|
};
|
|
4137
4141
|
const p = {};
|
|
4138
4142
|
p.field = "password", r && (p.className = r);
|
|
4139
|
-
const
|
|
4140
|
-
return s && (
|
|
4143
|
+
const C = {};
|
|
4144
|
+
return s && (C.placeholder = s), /* @__PURE__ */ a.jsxs("dl", { ...p, children: [
|
|
4141
4145
|
i ? /* @__PURE__ */ a.jsx("dt", { children: i }) : "",
|
|
4142
4146
|
/* @__PURE__ */ a.jsx(
|
|
4143
4147
|
"dd",
|
|
@@ -4147,7 +4151,7 @@ function On({
|
|
|
4147
4151
|
onKeyDown: h,
|
|
4148
4152
|
onBlur: pe.Blur,
|
|
4149
4153
|
contentEditable: l && _ ? "plaintext-only" : "false",
|
|
4150
|
-
...
|
|
4154
|
+
...C,
|
|
4151
4155
|
suppressContentEditableWarning: !0,
|
|
4152
4156
|
children: e
|
|
4153
4157
|
}
|
|
@@ -5553,7 +5557,7 @@ function It({
|
|
|
5553
5557
|
className: h = ""
|
|
5554
5558
|
}) {
|
|
5555
5559
|
l = l !== void 0 ? l : !0, _ = _ !== void 0 ? _ : !0, c = !!(c && (e === "" || e === void 0)) && !(l && _), g.useRef(null);
|
|
5556
|
-
let p = "+_(___) ___-__-__",
|
|
5560
|
+
let p = "+_(___) ___-__-__", C = !0, w = 0, y = (V, $) => {
|
|
5557
5561
|
let ae = document.createRange(), K = window.getSelection();
|
|
5558
5562
|
ae.setStart($.childNodes[0], V), ae.collapse(!0), K.removeAllRanges(), K.addRange(ae), $.focus();
|
|
5559
5563
|
}, b = (V) => {
|
|
@@ -5564,13 +5568,13 @@ function It({
|
|
|
5564
5568
|
});
|
|
5565
5569
|
}, N = (V) => {
|
|
5566
5570
|
let $ = 0, ae = "", K = V.replace(/\D/g, "");
|
|
5567
|
-
K === "" && (
|
|
5571
|
+
K === "" && (C = !0);
|
|
5568
5572
|
let le = K.split(""), q = "";
|
|
5569
5573
|
le.forEach((ze) => {
|
|
5570
|
-
|
|
5574
|
+
C && (q += ze, ct[q] !== void 0 && C ? (C = !1, p = ct[q].mask.replace(new RegExp("[0-9]", "g"), "_"), ae = ct[q].code) : (C && (w = ("" + q).length, p = `+${q}_(___) ___-__-__`.replace(
|
|
5571
5575
|
new RegExp("[0-9]", "g"),
|
|
5572
5576
|
"_"
|
|
5573
|
-
), ae = ""), w > ("" + q).length && (
|
|
5577
|
+
), ae = ""), w > ("" + q).length && (C = !0, p = `+${q}_(___) ___-__-__`.replace(
|
|
5574
5578
|
new RegExp("[0-9]", "g"),
|
|
5575
5579
|
"_"
|
|
5576
5580
|
), ae = "")));
|
|
@@ -5665,7 +5669,7 @@ function Dt({
|
|
|
5665
5669
|
}) {
|
|
5666
5670
|
const h = g.useRef();
|
|
5667
5671
|
r = !!(r && (i === "" || l[i].n === void 0)) && !(n && s);
|
|
5668
|
-
let p = i !== void 0 && i !== "" ? l[i].n : i,
|
|
5672
|
+
let p = i !== void 0 && i !== "" ? l[i].n : i, C = (N) => {
|
|
5669
5673
|
h.current.textContent = l[N].n, c && c({ value: N, name: d });
|
|
5670
5674
|
}, w = (N) => {
|
|
5671
5675
|
if (!(n && s))
|
|
@@ -5677,7 +5681,7 @@ function Dt({
|
|
|
5677
5681
|
Yo,
|
|
5678
5682
|
{
|
|
5679
5683
|
parent: I,
|
|
5680
|
-
onValue:
|
|
5684
|
+
onValue: C,
|
|
5681
5685
|
view: m,
|
|
5682
5686
|
options: l
|
|
5683
5687
|
},
|
|
@@ -5827,10 +5831,11 @@ function vt({
|
|
|
5827
5831
|
active: u = !0,
|
|
5828
5832
|
after: m = "",
|
|
5829
5833
|
view: h,
|
|
5830
|
-
|
|
5831
|
-
|
|
5834
|
+
module: x,
|
|
5835
|
+
item: p,
|
|
5836
|
+
className: C = ""
|
|
5832
5837
|
}) {
|
|
5833
|
-
let
|
|
5838
|
+
let w = {};
|
|
5834
5839
|
switch (e) {
|
|
5835
5840
|
case "Input":
|
|
5836
5841
|
return /* @__PURE__ */ a.jsx(
|
|
@@ -5846,11 +5851,11 @@ function vt({
|
|
|
5846
5851
|
onValue: n,
|
|
5847
5852
|
name: s,
|
|
5848
5853
|
placeholder: r,
|
|
5849
|
-
className:
|
|
5854
|
+
className: C
|
|
5850
5855
|
}
|
|
5851
5856
|
);
|
|
5852
5857
|
case "Select":
|
|
5853
|
-
return
|
|
5858
|
+
return p && (w = re.getSelect(parseInt(p)) ? re.getSelect(parseInt(p)) : { 0: { s: "1", n: "не известно" } }), /* @__PURE__ */ a.jsx(
|
|
5854
5859
|
Dt,
|
|
5855
5860
|
{
|
|
5856
5861
|
title: i,
|
|
@@ -5863,8 +5868,8 @@ function vt({
|
|
|
5863
5868
|
onValue: n,
|
|
5864
5869
|
name: s,
|
|
5865
5870
|
placeholder: r,
|
|
5866
|
-
className:
|
|
5867
|
-
options:
|
|
5871
|
+
className: C,
|
|
5872
|
+
options: w
|
|
5868
5873
|
}
|
|
5869
5874
|
);
|
|
5870
5875
|
case "Users":
|
|
@@ -5881,8 +5886,8 @@ function vt({
|
|
|
5881
5886
|
onValue: n,
|
|
5882
5887
|
name: s,
|
|
5883
5888
|
placeholder: r,
|
|
5884
|
-
className:
|
|
5885
|
-
options:
|
|
5889
|
+
className: C,
|
|
5890
|
+
options: w
|
|
5886
5891
|
}
|
|
5887
5892
|
);
|
|
5888
5893
|
case "Date":
|
|
@@ -5899,7 +5904,7 @@ function vt({
|
|
|
5899
5904
|
onValue: n,
|
|
5900
5905
|
name: s,
|
|
5901
5906
|
placeholder: r,
|
|
5902
|
-
className:
|
|
5907
|
+
className: C
|
|
5903
5908
|
}
|
|
5904
5909
|
);
|
|
5905
5910
|
case "Phone":
|
|
@@ -5916,7 +5921,7 @@ function vt({
|
|
|
5916
5921
|
onValue: n,
|
|
5917
5922
|
name: s,
|
|
5918
5923
|
placeholder: r,
|
|
5919
|
-
className:
|
|
5924
|
+
className: C
|
|
5920
5925
|
}
|
|
5921
5926
|
);
|
|
5922
5927
|
case "Number":
|
|
@@ -5933,7 +5938,7 @@ function vt({
|
|
|
5933
5938
|
onValue: n,
|
|
5934
5939
|
name: s,
|
|
5935
5940
|
placeholder: r,
|
|
5936
|
-
className:
|
|
5941
|
+
className: C
|
|
5937
5942
|
}
|
|
5938
5943
|
);
|
|
5939
5944
|
case "Money":
|
|
@@ -5950,7 +5955,7 @@ function vt({
|
|
|
5950
5955
|
onValue: n,
|
|
5951
5956
|
name: s,
|
|
5952
5957
|
placeholder: r,
|
|
5953
|
-
className:
|
|
5958
|
+
className: C
|
|
5954
5959
|
}
|
|
5955
5960
|
);
|
|
5956
5961
|
case "Modal":
|
|
@@ -5965,9 +5970,11 @@ function vt({
|
|
|
5965
5970
|
active: u,
|
|
5966
5971
|
value: t,
|
|
5967
5972
|
onValue: n,
|
|
5968
|
-
name: s,
|
|
5973
|
+
name: s || "",
|
|
5969
5974
|
placeholder: r,
|
|
5970
|
-
className:
|
|
5975
|
+
className: C,
|
|
5976
|
+
options: w,
|
|
5977
|
+
module: x || ""
|
|
5971
5978
|
}
|
|
5972
5979
|
);
|
|
5973
5980
|
}
|
|
@@ -6127,8 +6134,8 @@ const qo = (e) => {
|
|
|
6127
6134
|
}
|
|
6128
6135
|
}
|
|
6129
6136
|
e.onValue(n.h + ":" + n.m);
|
|
6130
|
-
}, [p,
|
|
6131
|
-
|
|
6137
|
+
}, [p, C] = g.useState(!0), w = () => {
|
|
6138
|
+
C(!1), e.onSave(n.h + ":" + n.m);
|
|
6132
6139
|
}, y = window.innerHeight - e.position.y + 33 < 320 ? e.position.y - 312 : e.position.y + 33, b = window.innerWidth - e.position.x < 265 ? e.position.x - 235 : e.position.x;
|
|
6133
6140
|
return /* @__PURE__ */ a.jsx(a.Fragment, { children: p ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
6134
6141
|
/* @__PURE__ */ a.jsx(
|
|
@@ -6655,6 +6662,7 @@ export {
|
|
|
6655
6662
|
un as Component,
|
|
6656
6663
|
Bl as DataBase,
|
|
6657
6664
|
we as Event,
|
|
6665
|
+
we as Events,
|
|
6658
6666
|
zl as Files,
|
|
6659
6667
|
Vl as Filter,
|
|
6660
6668
|
Zl as Form,
|