elcrm 0.6.9 → 0.7.1
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 +130 -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,19 @@ 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
|
+
callback: (b) => {
|
|
3826
|
+
t && t({ value: b, name: n }), C(b);
|
|
3827
|
+
},
|
|
3828
|
+
onValue: t,
|
|
3829
|
+
options: x,
|
|
3830
|
+
name: n,
|
|
3831
|
+
value: e
|
|
3825
3832
|
});
|
|
3826
3833
|
};
|
|
3827
3834
|
return c ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("dl", { "data-form": "select", "data-view": m, children: [
|
|
@@ -3829,11 +3836,11 @@ function Rt({
|
|
|
3829
3836
|
/* @__PURE__ */ a.jsx(
|
|
3830
3837
|
"dd",
|
|
3831
3838
|
{
|
|
3832
|
-
onClick:
|
|
3839
|
+
onClick: w,
|
|
3833
3840
|
"data-edit": (l && d) + "",
|
|
3834
3841
|
"data-placeholder": s,
|
|
3835
3842
|
"data-after": u,
|
|
3836
|
-
children:
|
|
3843
|
+
children: p
|
|
3837
3844
|
}
|
|
3838
3845
|
),
|
|
3839
3846
|
i ? /* @__PURE__ */ a.jsx("dt", { children: i }) : ""
|
|
@@ -3905,12 +3912,12 @@ function Pn({
|
|
|
3905
3912
|
g.useEffect(() => {
|
|
3906
3913
|
m(e);
|
|
3907
3914
|
}, [e]);
|
|
3908
|
-
let h = (
|
|
3909
|
-
m(
|
|
3910
|
-
}, x = (
|
|
3915
|
+
let h = (C) => {
|
|
3916
|
+
m(C), t && t({ value: C, name: n });
|
|
3917
|
+
}, x = (C) => {
|
|
3911
3918
|
if (!i || !c)
|
|
3912
3919
|
return;
|
|
3913
|
-
const w =
|
|
3920
|
+
const w = C.target.getBoundingClientRect(), y = w.left, b = w.top;
|
|
3914
3921
|
we.setListener(
|
|
3915
3922
|
"form",
|
|
3916
3923
|
/* @__PURE__ */ a.jsx(
|
|
@@ -3964,7 +3971,7 @@ const Uo = (e) => {
|
|
|
3964
3971
|
_(l - 1);
|
|
3965
3972
|
}, h = (y) => {
|
|
3966
3973
|
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),
|
|
3974
|
+
}, 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
3975
|
return /* @__PURE__ */ a.jsx(a.Fragment, { children: t ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
3969
3976
|
/* @__PURE__ */ a.jsx(
|
|
3970
3977
|
"div",
|
|
@@ -3978,7 +3985,7 @@ const Uo = (e) => {
|
|
|
3978
3985
|
"div",
|
|
3979
3986
|
{
|
|
3980
3987
|
className: je.c,
|
|
3981
|
-
style: { top:
|
|
3988
|
+
style: { top: C + "px", left: w + "px" },
|
|
3982
3989
|
children: [
|
|
3983
3990
|
/* @__PURE__ */ a.jsxs("s", { children: [
|
|
3984
3991
|
/* @__PURE__ */ a.jsx("i", { "data-icon": "F021", onClick: () => m() }),
|
|
@@ -4009,15 +4016,15 @@ const Uo = (e) => {
|
|
|
4009
4016
|
function Bn(e) {
|
|
4010
4017
|
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
4018
|
s = i ? !0 : s;
|
|
4012
|
-
let d = e.placeholder !== void 0 ? e.placeholder : "Заметка пуста", u = (
|
|
4013
|
-
e.onValue({ value:
|
|
4014
|
-
}, m = (
|
|
4015
|
-
|
|
4019
|
+
let d = e.placeholder !== void 0 ? e.placeholder : "Заметка пуста", u = (C) => {
|
|
4020
|
+
e.onValue({ value: C.target.innerText, name: e.name });
|
|
4021
|
+
}, m = (C) => {
|
|
4022
|
+
C.preventDefault(), navigator.clipboard.readText().then((w) => {
|
|
4016
4023
|
window.document.execCommand("insertText", !1, w);
|
|
4017
4024
|
}).catch((w) => {
|
|
4018
4025
|
console.log("Something went wrong", w);
|
|
4019
4026
|
});
|
|
4020
|
-
}, h = (
|
|
4027
|
+
}, h = (C) => {
|
|
4021
4028
|
i || r(!s);
|
|
4022
4029
|
};
|
|
4023
4030
|
const x = {};
|
|
@@ -4058,7 +4065,7 @@ function Tt({
|
|
|
4058
4065
|
after: h,
|
|
4059
4066
|
view: x
|
|
4060
4067
|
}) {
|
|
4061
|
-
let p = () => r ? /* @__PURE__ */ a.jsx("dt", { children: r }) : "",
|
|
4068
|
+
let p = () => r ? /* @__PURE__ */ a.jsx("dt", { children: r }) : "", C = () => i ? /* @__PURE__ */ a.jsx("em", { children: i }) : "";
|
|
4062
4069
|
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
4070
|
let y = !1, b = (B) => {
|
|
4064
4071
|
e && e({ value: B.target.textContent, name: m });
|
|
@@ -4099,7 +4106,7 @@ function Tt({
|
|
|
4099
4106
|
children: _
|
|
4100
4107
|
}
|
|
4101
4108
|
),
|
|
4102
|
-
|
|
4109
|
+
C()
|
|
4103
4110
|
] });
|
|
4104
4111
|
}
|
|
4105
4112
|
function On({
|
|
@@ -4136,8 +4143,8 @@ function On({
|
|
|
4136
4143
|
};
|
|
4137
4144
|
const p = {};
|
|
4138
4145
|
p.field = "password", r && (p.className = r);
|
|
4139
|
-
const
|
|
4140
|
-
return s && (
|
|
4146
|
+
const C = {};
|
|
4147
|
+
return s && (C.placeholder = s), /* @__PURE__ */ a.jsxs("dl", { ...p, children: [
|
|
4141
4148
|
i ? /* @__PURE__ */ a.jsx("dt", { children: i }) : "",
|
|
4142
4149
|
/* @__PURE__ */ a.jsx(
|
|
4143
4150
|
"dd",
|
|
@@ -4147,7 +4154,7 @@ function On({
|
|
|
4147
4154
|
onKeyDown: h,
|
|
4148
4155
|
onBlur: pe.Blur,
|
|
4149
4156
|
contentEditable: l && _ ? "plaintext-only" : "false",
|
|
4150
|
-
...
|
|
4157
|
+
...C,
|
|
4151
4158
|
suppressContentEditableWarning: !0,
|
|
4152
4159
|
children: e
|
|
4153
4160
|
}
|
|
@@ -5553,7 +5560,7 @@ function It({
|
|
|
5553
5560
|
className: h = ""
|
|
5554
5561
|
}) {
|
|
5555
5562
|
l = l !== void 0 ? l : !0, _ = _ !== void 0 ? _ : !0, c = !!(c && (e === "" || e === void 0)) && !(l && _), g.useRef(null);
|
|
5556
|
-
let p = "+_(___) ___-__-__",
|
|
5563
|
+
let p = "+_(___) ___-__-__", C = !0, w = 0, y = (V, $) => {
|
|
5557
5564
|
let ae = document.createRange(), K = window.getSelection();
|
|
5558
5565
|
ae.setStart($.childNodes[0], V), ae.collapse(!0), K.removeAllRanges(), K.addRange(ae), $.focus();
|
|
5559
5566
|
}, b = (V) => {
|
|
@@ -5564,13 +5571,13 @@ function It({
|
|
|
5564
5571
|
});
|
|
5565
5572
|
}, N = (V) => {
|
|
5566
5573
|
let $ = 0, ae = "", K = V.replace(/\D/g, "");
|
|
5567
|
-
K === "" && (
|
|
5574
|
+
K === "" && (C = !0);
|
|
5568
5575
|
let le = K.split(""), q = "";
|
|
5569
5576
|
le.forEach((ze) => {
|
|
5570
|
-
|
|
5577
|
+
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
5578
|
new RegExp("[0-9]", "g"),
|
|
5572
5579
|
"_"
|
|
5573
|
-
), ae = ""), w > ("" + q).length && (
|
|
5580
|
+
), ae = ""), w > ("" + q).length && (C = !0, p = `+${q}_(___) ___-__-__`.replace(
|
|
5574
5581
|
new RegExp("[0-9]", "g"),
|
|
5575
5582
|
"_"
|
|
5576
5583
|
), ae = "")));
|
|
@@ -5665,7 +5672,7 @@ function Dt({
|
|
|
5665
5672
|
}) {
|
|
5666
5673
|
const h = g.useRef();
|
|
5667
5674
|
r = !!(r && (i === "" || l[i].n === void 0)) && !(n && s);
|
|
5668
|
-
let p = i !== void 0 && i !== "" ? l[i].n : i,
|
|
5675
|
+
let p = i !== void 0 && i !== "" ? l[i].n : i, C = (N) => {
|
|
5669
5676
|
h.current.textContent = l[N].n, c && c({ value: N, name: d });
|
|
5670
5677
|
}, w = (N) => {
|
|
5671
5678
|
if (!(n && s))
|
|
@@ -5677,7 +5684,7 @@ function Dt({
|
|
|
5677
5684
|
Yo,
|
|
5678
5685
|
{
|
|
5679
5686
|
parent: I,
|
|
5680
|
-
onValue:
|
|
5687
|
+
onValue: C,
|
|
5681
5688
|
view: m,
|
|
5682
5689
|
options: l
|
|
5683
5690
|
},
|
|
@@ -5827,10 +5834,11 @@ function vt({
|
|
|
5827
5834
|
active: u = !0,
|
|
5828
5835
|
after: m = "",
|
|
5829
5836
|
view: h,
|
|
5830
|
-
|
|
5831
|
-
|
|
5837
|
+
module: x,
|
|
5838
|
+
item: p,
|
|
5839
|
+
className: C = ""
|
|
5832
5840
|
}) {
|
|
5833
|
-
let
|
|
5841
|
+
let w = {};
|
|
5834
5842
|
switch (e) {
|
|
5835
5843
|
case "Input":
|
|
5836
5844
|
return /* @__PURE__ */ a.jsx(
|
|
@@ -5846,11 +5854,11 @@ function vt({
|
|
|
5846
5854
|
onValue: n,
|
|
5847
5855
|
name: s,
|
|
5848
5856
|
placeholder: r,
|
|
5849
|
-
className:
|
|
5857
|
+
className: C
|
|
5850
5858
|
}
|
|
5851
5859
|
);
|
|
5852
5860
|
case "Select":
|
|
5853
|
-
return
|
|
5861
|
+
return p && (w = re.getSelect(parseInt(p)) ? re.getSelect(parseInt(p)) : { 0: { s: "1", n: "не известно" } }), /* @__PURE__ */ a.jsx(
|
|
5854
5862
|
Dt,
|
|
5855
5863
|
{
|
|
5856
5864
|
title: i,
|
|
@@ -5863,8 +5871,8 @@ function vt({
|
|
|
5863
5871
|
onValue: n,
|
|
5864
5872
|
name: s,
|
|
5865
5873
|
placeholder: r,
|
|
5866
|
-
className:
|
|
5867
|
-
options:
|
|
5874
|
+
className: C,
|
|
5875
|
+
options: w
|
|
5868
5876
|
}
|
|
5869
5877
|
);
|
|
5870
5878
|
case "Users":
|
|
@@ -5881,8 +5889,8 @@ function vt({
|
|
|
5881
5889
|
onValue: n,
|
|
5882
5890
|
name: s,
|
|
5883
5891
|
placeholder: r,
|
|
5884
|
-
className:
|
|
5885
|
-
options:
|
|
5892
|
+
className: C,
|
|
5893
|
+
options: w
|
|
5886
5894
|
}
|
|
5887
5895
|
);
|
|
5888
5896
|
case "Date":
|
|
@@ -5899,7 +5907,7 @@ function vt({
|
|
|
5899
5907
|
onValue: n,
|
|
5900
5908
|
name: s,
|
|
5901
5909
|
placeholder: r,
|
|
5902
|
-
className:
|
|
5910
|
+
className: C
|
|
5903
5911
|
}
|
|
5904
5912
|
);
|
|
5905
5913
|
case "Phone":
|
|
@@ -5916,7 +5924,7 @@ function vt({
|
|
|
5916
5924
|
onValue: n,
|
|
5917
5925
|
name: s,
|
|
5918
5926
|
placeholder: r,
|
|
5919
|
-
className:
|
|
5927
|
+
className: C
|
|
5920
5928
|
}
|
|
5921
5929
|
);
|
|
5922
5930
|
case "Number":
|
|
@@ -5933,7 +5941,7 @@ function vt({
|
|
|
5933
5941
|
onValue: n,
|
|
5934
5942
|
name: s,
|
|
5935
5943
|
placeholder: r,
|
|
5936
|
-
className:
|
|
5944
|
+
className: C
|
|
5937
5945
|
}
|
|
5938
5946
|
);
|
|
5939
5947
|
case "Money":
|
|
@@ -5950,7 +5958,7 @@ function vt({
|
|
|
5950
5958
|
onValue: n,
|
|
5951
5959
|
name: s,
|
|
5952
5960
|
placeholder: r,
|
|
5953
|
-
className:
|
|
5961
|
+
className: C
|
|
5954
5962
|
}
|
|
5955
5963
|
);
|
|
5956
5964
|
case "Modal":
|
|
@@ -5965,9 +5973,11 @@ function vt({
|
|
|
5965
5973
|
active: u,
|
|
5966
5974
|
value: t,
|
|
5967
5975
|
onValue: n,
|
|
5968
|
-
name: s,
|
|
5976
|
+
name: s || "",
|
|
5969
5977
|
placeholder: r,
|
|
5970
|
-
className:
|
|
5978
|
+
className: C,
|
|
5979
|
+
options: w,
|
|
5980
|
+
module: x || ""
|
|
5971
5981
|
}
|
|
5972
5982
|
);
|
|
5973
5983
|
}
|
|
@@ -6127,8 +6137,8 @@ const qo = (e) => {
|
|
|
6127
6137
|
}
|
|
6128
6138
|
}
|
|
6129
6139
|
e.onValue(n.h + ":" + n.m);
|
|
6130
|
-
}, [p,
|
|
6131
|
-
|
|
6140
|
+
}, [p, C] = g.useState(!0), w = () => {
|
|
6141
|
+
C(!1), e.onSave(n.h + ":" + n.m);
|
|
6132
6142
|
}, 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
6143
|
return /* @__PURE__ */ a.jsx(a.Fragment, { children: p ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
6134
6144
|
/* @__PURE__ */ a.jsx(
|
|
@@ -6655,6 +6665,7 @@ export {
|
|
|
6655
6665
|
un as Component,
|
|
6656
6666
|
Bl as DataBase,
|
|
6657
6667
|
we as Event,
|
|
6668
|
+
we as Events,
|
|
6658
6669
|
zl as Files,
|
|
6659
6670
|
Vl as Filter,
|
|
6660
6671
|
Zl as Form,
|