@quoreadmin/ui 1.6.7 → 1.6.9
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.css +1 -1
- package/dist/index102.js +2 -2
- package/dist/index109.js +1 -1
- package/dist/index113.js +2 -2
- package/dist/index117.js +3 -3
- package/dist/index129.js +1 -1
- package/dist/index131.js +116 -59
- package/dist/{index139.js → index140.js} +264 -254
- package/dist/{index141.js → index142.js} +1 -1
- package/dist/{index143.js → index144.js} +6 -6
- package/dist/{index151.js → index152.js} +1 -1
- package/dist/{index153.js → index154.js} +1 -1
- package/dist/{index157.js → index158.js} +9 -9
- package/dist/index161.js +111 -492
- package/dist/index162.js +471 -5498
- package/dist/index163.js +5511 -80
- package/dist/index164.js +86 -856
- package/dist/index165.js +844 -21
- package/dist/index166.js +23 -265
- package/dist/index167.js +256 -126
- package/dist/index168.js +146 -1195
- package/dist/index169.js +1139 -712
- package/dist/index170.js +704 -1240
- package/dist/index171.js +1280 -248
- package/dist/index172.js +266 -96
- package/dist/index173.js +106 -2
- package/dist/index174.js +2 -1376
- package/dist/index175.js +1378 -0
- package/dist/index177.js +12 -12
- package/dist/index178.js +10 -10
- package/dist/index179.js +12 -12
- package/dist/index180.js +14 -21
- package/dist/index181.js +23 -757
- package/dist/index182.js +759 -1100
- package/dist/index183.js +1117 -1234
- package/dist/index184.js +1205 -11248
- package/dist/index185.js +11277 -36
- package/dist/index186.js +1188 -42
- package/dist/index188.js +38 -0
- package/dist/index189.js +44 -5938
- package/dist/index190.js +5830 -99
- package/dist/index191.js +188 -16
- package/dist/index192.js +25 -8
- package/dist/index193.js +16 -76
- package/dist/index194.js +74 -249
- package/dist/index195.js +229 -13660
- package/dist/index196.js +13684 -27
- package/dist/index197.js +26 -62
- package/dist/index198.js +40 -215
- package/dist/index199.js +206 -276
- package/dist/index200.js +278 -258
- package/dist/index201.js +287 -32
- package/dist/index202.js +81 -109
- package/dist/index203.js +404 -33
- package/dist/index204.js +22 -26
- package/dist/index205.js +30 -33
- package/dist/index206.js +116 -9
- package/dist/index207.js +35 -18
- package/dist/index208.js +26 -10
- package/dist/index209.js +36 -10
- package/dist/index210.js +9 -51
- package/dist/index211.js +18 -42
- package/dist/index212.js +10 -4
- package/dist/index213.js +10 -39
- package/dist/index214.js +51 -21
- package/dist/index215.js +40 -85
- package/dist/index216.js +3 -406
- package/dist/index217.js +39 -22
- package/dist/index218.js +21 -161
- package/dist/index219.js +126 -19
- package/dist/index220.js +37 -19
- package/dist/index221.js +80 -22
- package/dist/index222.js +19 -198
- package/dist/index223.js +18 -68
- package/dist/index224.js +20 -34
- package/dist/index225.js +19 -39
- package/dist/index226.js +12 -14
- package/dist/index227.js +160 -21
- package/dist/index228.js +9 -9
- package/dist/index229.js +22 -836
- package/dist/index230.js +158 -661
- package/dist/index231.js +67 -173
- package/dist/index232.js +34 -20
- package/dist/index233.js +39 -19
- package/dist/index234.js +3632 -22
- package/dist/index235.js +55 -20
- package/dist/index236.js +77 -20
- package/dist/index237.js +52 -3
- package/dist/index238.js +208 -180
- package/dist/index239.js +10 -133
- package/dist/index240.js +51 -1217
- package/dist/index241.js +56 -122
- package/dist/index242.js +54 -20
- package/dist/index243.js +75 -22
- package/dist/index244.js +722 -21
- package/dist/index245.js +34 -33
- package/dist/index246.js +64 -29
- package/dist/index247.js +11 -20
- package/dist/index248.js +705 -20
- package/dist/index249.js +820 -2
- package/dist/index250.js +161 -2
- package/dist/index251.js +187 -3591
- package/dist/index252.js +37 -55
- package/dist/index253.js +10 -77
- package/dist/index254.js +22 -52
- package/dist/index255.js +22 -215
- package/dist/index256.js +20 -10
- package/dist/index257.js +827 -48
- package/dist/index258.js +691 -50
- package/dist/index259.js +174 -52
- package/dist/index260.js +22 -75
- package/dist/index261.js +19 -722
- package/dist/index262.js +20 -39
- package/dist/index263.js +3 -64
- package/dist/index264.js +187 -11
- package/dist/index265.js +124 -696
- package/dist/index266.js +1189 -786
- package/dist/index267.js +19 -160
- package/dist/index268.js +22 -228
- package/dist/index269.js +21 -36
- package/dist/index270.js +29 -10
- package/dist/index271.js +20 -80
- package/dist/index272.js +9 -9
- package/dist/index273.js +2 -20
- package/dist/index274.js +2 -253
- package/dist/index275.js +235 -8
- package/dist/index276.js +5 -137
- package/dist/index277.js +128 -77
- package/dist/index278.js +66 -52
- package/dist/index279.js +81 -73
- package/dist/index280.js +28 -25
- package/dist/index281.js +7 -20
- package/dist/index282.js +74 -21
- package/dist/index283.js +4 -16
- package/dist/index284.js +2 -17
- package/dist/index285.js +82 -22
- package/dist/index286.js +49 -1513
- package/dist/index287.js +4 -384
- package/dist/index288.js +4 -2730
- package/dist/index289.js +170 -77
- package/dist/index290.js +55 -3762
- package/dist/index291.js +75 -60
- package/dist/index292.js +252 -14
- package/dist/index293.js +2 -84
- package/dist/index294.js +123 -187
- package/dist/index295.js +68 -231
- package/dist/index296.js +71 -71
- package/dist/index297.js +8 -22
- package/dist/index298.js +49 -930
- package/dist/index299.js +17 -13
- package/dist/index300.js +13 -11
- package/dist/index301.js +15 -13
- package/dist/index302.js +14 -67
- package/dist/index303.js +14 -16
- package/dist/index304.js +21 -17
- package/dist/index305.js +1518 -22
- package/dist/index306.js +386 -22
- package/dist/index307.js +2731 -63
- package/dist/index308.js +86 -2
- package/dist/index309.js +3770 -3
- package/dist/index310.js +56 -23
- package/dist/index311.js +14 -234
- package/dist/index312.js +83 -5
- package/dist/index313.js +190 -122
- package/dist/index314.js +239 -61
- package/dist/index315.js +3 -87
- package/dist/index316.js +26 -28
- package/dist/index317.js +77 -7
- package/dist/index318.js +21 -74
- package/dist/index319.js +934 -3
- package/dist/index320.js +22 -2
- package/dist/index321.js +19 -82
- package/dist/index322.js +19 -53
- package/dist/index323.js +68 -5
- package/dist/index324.js +19 -5
- package/dist/index325.js +18 -178
- package/dist/index326.js +21 -62
- package/dist/index327.js +22 -75
- package/dist/index328.js +62 -36
- package/dist/index329.js +20 -19
- package/dist/index330.js +55 -19
- package/dist/index331.js +28 -63
- package/dist/index332.js +7 -37
- package/dist/index333.js +51 -8
- package/dist/index334.js +6 -13
- package/dist/index335.js +11 -54
- package/dist/index336.js +7 -12
- package/dist/index337.js +28 -14
- package/dist/index338.js +2 -58
- package/dist/index339.js +69 -51
- package/dist/index340.js +164 -28
- package/dist/index341.js +37 -2
- package/dist/index342.js +9 -5
- package/dist/index343.js +13 -2
- package/dist/index344.js +54 -22
- package/dist/index345.js +10 -39
- package/dist/index346.js +14 -2
- package/dist/index347.js +58 -11
- package/dist/index348.js +50 -18
- package/dist/index349.js +29 -15
- package/dist/index350.js +2 -10
- package/dist/index351.js +4 -9
- package/dist/index352.js +2 -2
- package/dist/index353.js +22 -8
- package/dist/index354.js +40 -9
- package/dist/index355.js +2 -14
- package/dist/index356.js +11 -21
- package/dist/index357.js +18 -54
- package/dist/index358.js +16 -28
- package/dist/index359.js +10 -7
- package/dist/index360.js +9 -51
- package/dist/index361.js +2 -6
- package/dist/index362.js +9 -12
- package/dist/index363.js +10 -7
- package/dist/index364.js +13 -27
- package/dist/index365.js +20 -2
- package/dist/index366.js +20 -70
- package/dist/index367.js +60 -163
- package/dist/index368.js +36 -100
- package/dist/index369.js +30 -90
- package/dist/index370.js +11 -98
- package/dist/index371.js +4 -17
- package/dist/index372.js +3 -30
- package/dist/index373.js +13 -11
- package/dist/index374.js +7 -4
- package/dist/index375.js +11 -3
- package/dist/index376.js +5 -13
- package/dist/index377.js +33 -7
- package/dist/index378.js +30 -11
- package/dist/index379.js +28 -5
- package/dist/index380.js +61 -33
- package/dist/index381.js +99 -29
- package/dist/index382.js +91 -28
- package/dist/index383.js +96 -59
- package/dist/index384.js +17 -3
- package/dist/index385.js +3 -2
- package/dist/index386.js +2 -2
- package/dist/index387.js +2 -17
- package/dist/index388.js +15 -11
- package/dist/index389.js +13 -6
- package/dist/index39.js +44 -14
- package/dist/index390.js +6 -32
- package/dist/index391.js +34 -0
- package/dist/index40.js +1 -1
- package/dist/index41.js +1 -1
- package/dist/index42.js +1 -1
- package/dist/index43.js +72 -49
- package/dist/index44.js +1 -1
- package/dist/index45.js +1 -1
- package/dist/index46.js +1 -1
- package/dist/index47.js +2 -2
- package/dist/index48.js +2 -2
- package/dist/index49.js +1 -1
- package/dist/index50.js +1 -1
- package/dist/index51.js +1 -1
- package/dist/index52.js +1 -1
- package/dist/index54.js +2 -2
- package/dist/index56.js +1 -1
- package/dist/index58.js +5 -5
- package/dist/index59.js +1 -1
- package/dist/index71.js +2 -2
- package/dist/index75.js +1 -1
- package/dist/index80.js +1 -1
- package/dist/index85.js +1 -1
- package/dist/index87.js +3 -3
- package/dist/index89.js +2 -2
- package/dist/index95.js +2 -2
- package/dist/src/components/comment/comment.d.ts +32 -0
- package/dist/src/components/comment/comment.stories.d.ts +32 -0
- package/dist/src/components/comment-section/comment-section.d.ts +32 -0
- package/dist/src/components/comment-section/comment-section.stories.d.ts +32 -0
- package/dist/src/components/data-filter/data-filter.d.ts +32 -0
- package/dist/src/components/data-list/data-list.d.ts +32 -0
- package/dist/src/components/grid/grid.stories.d.ts +64 -0
- package/dist/src/components/popover/popover.d.ts +36 -0
- package/dist/src/components/popover/popover.stories.d.ts +128 -0
- package/dist/src/components/room-details-popover/room-details-popover.d.ts +106 -4
- package/dist/src/views/lists.vue.d.ts +64 -0
- package/dist/src/views/tables.vue.d.ts +32 -0
- package/package.json +1 -1
- package/dist/index160.js +0 -116
- package/dist/index176.js +0 -20
- package/dist/index187.js +0 -1192
- /package/dist/{index133.js → index134.js} +0 -0
- /package/dist/{index135.js → index136.js} +0 -0
- /package/dist/{index137.js → index138.js} +0 -0
- /package/dist/{index145.js → index146.js} +0 -0
- /package/dist/{index147.js → index148.js} +0 -0
- /package/dist/{index149.js → index150.js} +0 -0
- /package/dist/{index155.js → index156.js} +0 -0
package/dist/index291.js
CHANGED
|
@@ -1,62 +1,77 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
1
|
+
const e = {
|
|
2
|
+
Continue: 100,
|
|
3
|
+
SwitchingProtocols: 101,
|
|
4
|
+
Processing: 102,
|
|
5
|
+
EarlyHints: 103,
|
|
6
|
+
Ok: 200,
|
|
7
|
+
Created: 201,
|
|
8
|
+
Accepted: 202,
|
|
9
|
+
NonAuthoritativeInformation: 203,
|
|
10
|
+
NoContent: 204,
|
|
11
|
+
ResetContent: 205,
|
|
12
|
+
PartialContent: 206,
|
|
13
|
+
MultiStatus: 207,
|
|
14
|
+
AlreadyReported: 208,
|
|
15
|
+
ImUsed: 226,
|
|
16
|
+
MultipleChoices: 300,
|
|
17
|
+
MovedPermanently: 301,
|
|
18
|
+
Found: 302,
|
|
19
|
+
SeeOther: 303,
|
|
20
|
+
NotModified: 304,
|
|
21
|
+
UseProxy: 305,
|
|
22
|
+
Unused: 306,
|
|
23
|
+
TemporaryRedirect: 307,
|
|
24
|
+
PermanentRedirect: 308,
|
|
25
|
+
BadRequest: 400,
|
|
26
|
+
Unauthorized: 401,
|
|
27
|
+
PaymentRequired: 402,
|
|
28
|
+
Forbidden: 403,
|
|
29
|
+
NotFound: 404,
|
|
30
|
+
MethodNotAllowed: 405,
|
|
31
|
+
NotAcceptable: 406,
|
|
32
|
+
ProxyAuthenticationRequired: 407,
|
|
33
|
+
RequestTimeout: 408,
|
|
34
|
+
Conflict: 409,
|
|
35
|
+
Gone: 410,
|
|
36
|
+
LengthRequired: 411,
|
|
37
|
+
PreconditionFailed: 412,
|
|
38
|
+
PayloadTooLarge: 413,
|
|
39
|
+
UriTooLong: 414,
|
|
40
|
+
UnsupportedMediaType: 415,
|
|
41
|
+
RangeNotSatisfiable: 416,
|
|
42
|
+
ExpectationFailed: 417,
|
|
43
|
+
ImATeapot: 418,
|
|
44
|
+
MisdirectedRequest: 421,
|
|
45
|
+
UnprocessableEntity: 422,
|
|
46
|
+
Locked: 423,
|
|
47
|
+
FailedDependency: 424,
|
|
48
|
+
TooEarly: 425,
|
|
49
|
+
UpgradeRequired: 426,
|
|
50
|
+
PreconditionRequired: 428,
|
|
51
|
+
TooManyRequests: 429,
|
|
52
|
+
RequestHeaderFieldsTooLarge: 431,
|
|
53
|
+
UnavailableForLegalReasons: 451,
|
|
54
|
+
InternalServerError: 500,
|
|
55
|
+
NotImplemented: 501,
|
|
56
|
+
BadGateway: 502,
|
|
57
|
+
ServiceUnavailable: 503,
|
|
58
|
+
GatewayTimeout: 504,
|
|
59
|
+
HttpVersionNotSupported: 505,
|
|
60
|
+
VariantAlsoNegotiates: 506,
|
|
61
|
+
InsufficientStorage: 507,
|
|
62
|
+
LoopDetected: 508,
|
|
63
|
+
NotExtended: 510,
|
|
64
|
+
NetworkAuthenticationRequired: 511,
|
|
65
|
+
WebServerIsDown: 521,
|
|
66
|
+
ConnectionTimedOut: 522,
|
|
67
|
+
OriginIsUnreachable: 523,
|
|
68
|
+
TimeoutOccurred: 524,
|
|
69
|
+
SslHandshakeFailed: 525,
|
|
70
|
+
InvalidSslCertificate: 526
|
|
71
|
+
};
|
|
72
|
+
Object.entries(e).forEach(([t, o]) => {
|
|
73
|
+
e[o] = t;
|
|
74
|
+
});
|
|
59
75
|
export {
|
|
60
|
-
|
|
61
|
-
k as keymap
|
|
76
|
+
e as default
|
|
62
77
|
};
|
package/dist/index292.js
CHANGED
|
@@ -1,17 +1,255 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import S from "./index294.js";
|
|
2
|
+
import { ObjectUtils as y } from "./index169.js";
|
|
3
|
+
import { mergeProps as w } from "vue";
|
|
4
|
+
function P(r) {
|
|
5
|
+
"@babel/helpers - typeof";
|
|
6
|
+
return P = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
7
|
+
return typeof e;
|
|
8
|
+
} : function(e) {
|
|
9
|
+
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
10
|
+
}, P(r);
|
|
11
|
+
}
|
|
12
|
+
function j(r, e) {
|
|
13
|
+
return U(r) || D(r, e) || C(r, e) || x();
|
|
14
|
+
}
|
|
15
|
+
function x() {
|
|
16
|
+
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
17
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
18
|
+
}
|
|
19
|
+
function C(r, e) {
|
|
20
|
+
if (r) {
|
|
21
|
+
if (typeof r == "string") return k(r, e);
|
|
22
|
+
var n = Object.prototype.toString.call(r).slice(8, -1);
|
|
23
|
+
if (n === "Object" && r.constructor && (n = r.constructor.name), n === "Map" || n === "Set") return Array.from(r);
|
|
24
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return k(r, e);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
function k(r, e) {
|
|
28
|
+
(e == null || e > r.length) && (e = r.length);
|
|
29
|
+
for (var n = 0, t = new Array(e); n < e; n++) t[n] = r[n];
|
|
30
|
+
return t;
|
|
31
|
+
}
|
|
32
|
+
function D(r, e) {
|
|
33
|
+
var n = r == null ? null : typeof Symbol < "u" && r[Symbol.iterator] || r["@@iterator"];
|
|
34
|
+
if (n != null) {
|
|
35
|
+
var t, o, a, u, i = [], l = !0, v = !1;
|
|
36
|
+
try {
|
|
37
|
+
if (a = (n = n.call(r)).next, e !== 0) for (; !(l = (t = a.call(n)).done) && (i.push(t.value), i.length !== e); l = !0) ;
|
|
38
|
+
} catch (p) {
|
|
39
|
+
v = !0, o = p;
|
|
40
|
+
} finally {
|
|
41
|
+
try {
|
|
42
|
+
if (!l && n.return != null && (u = n.return(), Object(u) !== u)) return;
|
|
43
|
+
} finally {
|
|
44
|
+
if (v) throw o;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
return i;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
function U(r) {
|
|
51
|
+
if (Array.isArray(r)) return r;
|
|
52
|
+
}
|
|
53
|
+
function V(r, e) {
|
|
54
|
+
var n = Object.keys(r);
|
|
55
|
+
if (Object.getOwnPropertySymbols) {
|
|
56
|
+
var t = Object.getOwnPropertySymbols(r);
|
|
57
|
+
e && (t = t.filter(function(o) {
|
|
58
|
+
return Object.getOwnPropertyDescriptor(r, o).enumerable;
|
|
59
|
+
})), n.push.apply(n, t);
|
|
60
|
+
}
|
|
61
|
+
return n;
|
|
62
|
+
}
|
|
63
|
+
function _(r) {
|
|
64
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
65
|
+
var n = arguments[e] != null ? arguments[e] : {};
|
|
66
|
+
e % 2 ? V(Object(n), !0).forEach(function(t) {
|
|
67
|
+
T(r, t, n[t]);
|
|
68
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(n)) : V(Object(n)).forEach(function(t) {
|
|
69
|
+
Object.defineProperty(r, t, Object.getOwnPropertyDescriptor(n, t));
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
return r;
|
|
73
|
+
}
|
|
74
|
+
function T(r, e, n) {
|
|
75
|
+
return e = A(e), e in r ? Object.defineProperty(r, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : r[e] = n, r;
|
|
76
|
+
}
|
|
77
|
+
function A(r) {
|
|
78
|
+
var e = M(r, "string");
|
|
79
|
+
return P(e) == "symbol" ? e : String(e);
|
|
80
|
+
}
|
|
81
|
+
function M(r, e) {
|
|
82
|
+
if (P(r) != "object" || !r) return r;
|
|
83
|
+
var n = r[Symbol.toPrimitive];
|
|
84
|
+
if (n !== void 0) {
|
|
85
|
+
var t = n.call(r, e);
|
|
86
|
+
if (P(t) != "object") return t;
|
|
87
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
88
|
+
}
|
|
89
|
+
return (e === "string" ? String : Number)(r);
|
|
90
|
+
}
|
|
91
|
+
var d = {
|
|
92
|
+
_getMeta: function() {
|
|
93
|
+
return [y.isObject(arguments.length <= 0 ? void 0 : arguments[0]) || arguments.length <= 0 ? void 0 : arguments[0], y.getItemValue(y.isObject(arguments.length <= 0 ? void 0 : arguments[0]) ? arguments.length <= 0 ? void 0 : arguments[0] : arguments.length <= 1 ? void 0 : arguments[1])];
|
|
94
|
+
},
|
|
95
|
+
_getConfig: function(e, n) {
|
|
96
|
+
var t, o, a;
|
|
97
|
+
return (t = (e == null || (o = e.instance) === null || o === void 0 ? void 0 : o.$primevue) || (n == null || (a = n.ctx) === null || a === void 0 || (a = a.appContext) === null || a === void 0 || (a = a.config) === null || a === void 0 || (a = a.globalProperties) === null || a === void 0 ? void 0 : a.$primevue)) === null || t === void 0 ? void 0 : t.config;
|
|
98
|
+
},
|
|
99
|
+
_getOptionValue: function(e) {
|
|
100
|
+
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, o = y.toFlatCase(n).split("."), a = o.shift();
|
|
101
|
+
return a ? y.isObject(e) ? d._getOptionValue(y.getItemValue(e[Object.keys(e).find(function(u) {
|
|
102
|
+
return y.toFlatCase(u) === a;
|
|
103
|
+
}) || ""], t), o.join("."), t) : void 0 : y.getItemValue(e, t);
|
|
104
|
+
},
|
|
105
|
+
_getPTValue: function() {
|
|
106
|
+
var e, n, t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "", u = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, l = function() {
|
|
107
|
+
var b = d._getOptionValue.apply(d, arguments);
|
|
108
|
+
return y.isString(b) || y.isArray(b) ? {
|
|
109
|
+
class: b
|
|
110
|
+
} : b;
|
|
111
|
+
}, v = ((e = t.binding) === null || e === void 0 || (e = e.value) === null || e === void 0 ? void 0 : e.ptOptions) || ((n = t.$primevueConfig) === null || n === void 0 ? void 0 : n.ptOptions) || {}, p = v.mergeSections, c = p === void 0 ? !0 : p, m = v.mergeProps, g = m === void 0 ? !1 : m, $ = i ? d._useDefaultPT(t, t.defaultPT(), l, a, u) : void 0, h = d._usePT(t, d._getPT(o, t.$name), l, a, _(_({}, u), {}, {
|
|
112
|
+
global: $ || {}
|
|
113
|
+
})), s = d._getPTDatasets(t, a);
|
|
114
|
+
return c || !c && h ? g ? d._mergeProps(t, g, $, h, s) : _(_(_({}, $), h), s) : _(_({}, h), s);
|
|
115
|
+
},
|
|
116
|
+
_getPTDatasets: function() {
|
|
117
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", t = "data-pc-";
|
|
118
|
+
return _(_({}, n === "root" && T({}, "".concat(t, "name"), y.toFlatCase(e.$name))), {}, T({}, "".concat(t, "section"), y.toFlatCase(n)));
|
|
119
|
+
},
|
|
120
|
+
_getPT: function(e) {
|
|
121
|
+
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", t = arguments.length > 2 ? arguments[2] : void 0, o = function(u) {
|
|
122
|
+
var i, l = t ? t(u) : u, v = y.toFlatCase(n);
|
|
123
|
+
return (i = l?.[v]) !== null && i !== void 0 ? i : l;
|
|
124
|
+
};
|
|
125
|
+
return e != null && e.hasOwnProperty("_usept") ? {
|
|
126
|
+
_usept: e._usept,
|
|
127
|
+
originalValue: o(e.originalValue),
|
|
128
|
+
value: o(e.value)
|
|
129
|
+
} : o(e);
|
|
130
|
+
},
|
|
131
|
+
_usePT: function() {
|
|
132
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 ? arguments[1] : void 0, t = arguments.length > 2 ? arguments[2] : void 0, o = arguments.length > 3 ? arguments[3] : void 0, a = arguments.length > 4 ? arguments[4] : void 0, u = function(s) {
|
|
133
|
+
return t(s, o, a);
|
|
134
|
+
};
|
|
135
|
+
if (n != null && n.hasOwnProperty("_usept")) {
|
|
136
|
+
var i, l = n._usept || ((i = e.$primevueConfig) === null || i === void 0 ? void 0 : i.ptOptions) || {}, v = l.mergeSections, p = v === void 0 ? !0 : v, c = l.mergeProps, m = c === void 0 ? !1 : c, g = u(n.originalValue), $ = u(n.value);
|
|
137
|
+
return g === void 0 && $ === void 0 ? void 0 : y.isString($) ? $ : y.isString(g) ? g : p || !p && $ ? m ? d._mergeProps(e, m, g, $) : _(_({}, g), $) : $;
|
|
138
|
+
}
|
|
139
|
+
return u(n);
|
|
140
|
+
},
|
|
141
|
+
_useDefaultPT: function() {
|
|
142
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = arguments.length > 2 ? arguments[2] : void 0, o = arguments.length > 3 ? arguments[3] : void 0, a = arguments.length > 4 ? arguments[4] : void 0;
|
|
143
|
+
return d._usePT(e, n, t, o, a);
|
|
144
|
+
},
|
|
145
|
+
_hook: function(e, n, t, o, a, u) {
|
|
146
|
+
var i, l, v = "on".concat(y.toCapitalCase(n)), p = d._getConfig(o, a), c = t?.$instance, m = d._usePT(c, d._getPT(o == null || (i = o.value) === null || i === void 0 ? void 0 : i.pt, e), d._getOptionValue, "hooks.".concat(v)), g = d._useDefaultPT(c, p == null || (l = p.pt) === null || l === void 0 || (l = l.directives) === null || l === void 0 ? void 0 : l[e], d._getOptionValue, "hooks.".concat(v)), $ = {
|
|
147
|
+
el: t,
|
|
148
|
+
binding: o,
|
|
149
|
+
vnode: a,
|
|
150
|
+
prevVnode: u
|
|
151
|
+
};
|
|
152
|
+
m?.(c, $), g?.(c, $);
|
|
153
|
+
},
|
|
154
|
+
_mergeProps: function() {
|
|
155
|
+
for (var e = arguments.length > 1 ? arguments[1] : void 0, n = arguments.length, t = new Array(n > 2 ? n - 2 : 0), o = 2; o < n; o++)
|
|
156
|
+
t[o - 2] = arguments[o];
|
|
157
|
+
return y.isFunction(e) ? e.apply(void 0, t) : w.apply(void 0, t);
|
|
158
|
+
},
|
|
159
|
+
_extend: function(e) {
|
|
160
|
+
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = function(a, u, i, l, v) {
|
|
161
|
+
var p, c;
|
|
162
|
+
u._$instances = u._$instances || {};
|
|
163
|
+
var m = d._getConfig(i, l), g = u._$instances[e] || {}, $ = y.isEmpty(g) ? _(_({}, n), n?.methods) : {};
|
|
164
|
+
u._$instances[e] = _(_({}, g), {}, {
|
|
165
|
+
/* new instance variables to pass in directive methods */
|
|
166
|
+
$name: e,
|
|
167
|
+
$host: u,
|
|
168
|
+
$binding: i,
|
|
169
|
+
$modifiers: i?.modifiers,
|
|
170
|
+
$value: i?.value,
|
|
171
|
+
$el: g.$el || u || void 0,
|
|
172
|
+
$style: _({
|
|
173
|
+
classes: void 0,
|
|
174
|
+
inlineStyles: void 0,
|
|
175
|
+
loadStyle: function() {
|
|
176
|
+
}
|
|
177
|
+
}, n?.style),
|
|
178
|
+
$primevueConfig: m,
|
|
179
|
+
/* computed instance variables */
|
|
180
|
+
defaultPT: function() {
|
|
181
|
+
return d._getPT(m?.pt, void 0, function(s) {
|
|
182
|
+
var f;
|
|
183
|
+
return s == null || (f = s.directives) === null || f === void 0 ? void 0 : f[e];
|
|
184
|
+
});
|
|
185
|
+
},
|
|
186
|
+
isUnstyled: function() {
|
|
187
|
+
var s, f;
|
|
188
|
+
return ((s = u.$instance) === null || s === void 0 || (s = s.$binding) === null || s === void 0 || (s = s.value) === null || s === void 0 ? void 0 : s.unstyled) !== void 0 ? (f = u.$instance) === null || f === void 0 || (f = f.$binding) === null || f === void 0 || (f = f.value) === null || f === void 0 ? void 0 : f.unstyled : m?.unstyled;
|
|
189
|
+
},
|
|
190
|
+
/* instance's methods */
|
|
191
|
+
ptm: function() {
|
|
192
|
+
var s, f = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", b = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
193
|
+
return d._getPTValue(u.$instance, (s = u.$instance) === null || s === void 0 || (s = s.$binding) === null || s === void 0 || (s = s.value) === null || s === void 0 ? void 0 : s.pt, f, _({}, b));
|
|
194
|
+
},
|
|
195
|
+
ptmo: function() {
|
|
196
|
+
var s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", b = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
197
|
+
return d._getPTValue(u.$instance, s, f, b, !1);
|
|
198
|
+
},
|
|
199
|
+
cx: function() {
|
|
200
|
+
var s, f, b = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", O = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
201
|
+
return (s = u.$instance) !== null && s !== void 0 && s.isUnstyled() ? void 0 : d._getOptionValue((f = u.$instance) === null || f === void 0 || (f = f.$style) === null || f === void 0 ? void 0 : f.classes, b, _({}, O));
|
|
202
|
+
},
|
|
203
|
+
sx: function() {
|
|
204
|
+
var s, f = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", b = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, O = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
205
|
+
return b ? d._getOptionValue((s = u.$instance) === null || s === void 0 || (s = s.$style) === null || s === void 0 ? void 0 : s.inlineStyles, f, _({}, O)) : void 0;
|
|
206
|
+
}
|
|
207
|
+
}, $), u.$instance = u._$instances[e], (p = (c = u.$instance)[a]) === null || p === void 0 || p.call(c, u, i, l, v), u["$".concat(e)] = u.$instance, d._hook(e, a, u, i, l, v);
|
|
208
|
+
};
|
|
209
|
+
return {
|
|
210
|
+
created: function(a, u, i, l) {
|
|
211
|
+
t("created", a, u, i, l);
|
|
212
|
+
},
|
|
213
|
+
beforeMount: function(a, u, i, l) {
|
|
214
|
+
var v, p, c, m, g = d._getConfig(u, i);
|
|
215
|
+
S.loadStyle({
|
|
216
|
+
nonce: g == null || (v = g.csp) === null || v === void 0 ? void 0 : v.nonce
|
|
217
|
+
}), !((p = a.$instance) !== null && p !== void 0 && p.isUnstyled()) && ((c = a.$instance) === null || c === void 0 || (c = c.$style) === null || c === void 0 || c.loadStyle({
|
|
218
|
+
nonce: g == null || (m = g.csp) === null || m === void 0 ? void 0 : m.nonce
|
|
219
|
+
})), t("beforeMount", a, u, i, l);
|
|
220
|
+
},
|
|
221
|
+
mounted: function(a, u, i, l) {
|
|
222
|
+
var v, p, c, m, g = d._getConfig(u, i);
|
|
223
|
+
S.loadStyle({
|
|
224
|
+
nonce: g == null || (v = g.csp) === null || v === void 0 ? void 0 : v.nonce
|
|
225
|
+
}), !((p = a.$instance) !== null && p !== void 0 && p.isUnstyled()) && ((c = a.$instance) === null || c === void 0 || (c = c.$style) === null || c === void 0 || c.loadStyle({
|
|
226
|
+
nonce: g == null || (m = g.csp) === null || m === void 0 ? void 0 : m.nonce
|
|
227
|
+
})), t("mounted", a, u, i, l);
|
|
228
|
+
},
|
|
229
|
+
beforeUpdate: function(a, u, i, l) {
|
|
230
|
+
t("beforeUpdate", a, u, i, l);
|
|
231
|
+
},
|
|
232
|
+
updated: function(a, u, i, l) {
|
|
233
|
+
t("updated", a, u, i, l);
|
|
234
|
+
},
|
|
235
|
+
beforeUnmount: function(a, u, i, l) {
|
|
236
|
+
t("beforeUnmount", a, u, i, l);
|
|
237
|
+
},
|
|
238
|
+
unmounted: function(a, u, i, l) {
|
|
239
|
+
t("unmounted", a, u, i, l);
|
|
240
|
+
}
|
|
241
|
+
};
|
|
242
|
+
},
|
|
243
|
+
extend: function() {
|
|
244
|
+
var e = d._getMeta.apply(d, arguments), n = j(e, 2), t = n[0], o = n[1];
|
|
245
|
+
return _({
|
|
246
|
+
extend: function() {
|
|
247
|
+
var u = d._getMeta.apply(d, arguments), i = j(u, 2), l = i[0], v = i[1];
|
|
248
|
+
return d.extend(l, _(_(_({}, o), o?.methods), v));
|
|
249
|
+
}
|
|
250
|
+
}, d._extend(t, o));
|
|
251
|
+
}
|
|
10
252
|
};
|
|
11
253
|
export {
|
|
12
|
-
|
|
13
|
-
t as h,
|
|
14
|
-
t as jsx,
|
|
15
|
-
t as jsxDEV,
|
|
16
|
-
t as jsxs
|
|
254
|
+
d as default
|
|
17
255
|
};
|
package/dist/index293.js
CHANGED
|
@@ -1,86 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import { dropPoint as v } from "./index286.js";
|
|
3
|
-
function y(m = {}) {
|
|
4
|
-
return new w({
|
|
5
|
-
view(e) {
|
|
6
|
-
return new C(e, m);
|
|
7
|
-
}
|
|
8
|
-
});
|
|
9
|
-
}
|
|
10
|
-
class C {
|
|
11
|
-
constructor(e, t) {
|
|
12
|
-
var i;
|
|
13
|
-
this.editorView = e, this.cursorPos = null, this.element = null, this.timeout = -1, this.width = (i = t.width) !== null && i !== void 0 ? i : 1, this.color = t.color === !1 ? void 0 : t.color || "black", this.class = t.class, this.handlers = ["dragover", "dragend", "drop", "dragleave"].map((s) => {
|
|
14
|
-
let d = (r) => {
|
|
15
|
-
this[s](r);
|
|
16
|
-
};
|
|
17
|
-
return e.dom.addEventListener(s, d), { name: s, handler: d };
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
destroy() {
|
|
21
|
-
this.handlers.forEach(({ name: e, handler: t }) => this.editorView.dom.removeEventListener(e, t));
|
|
22
|
-
}
|
|
23
|
-
update(e, t) {
|
|
24
|
-
this.cursorPos != null && t.doc != e.state.doc && (this.cursorPos > e.state.doc.content.size ? this.setCursor(null) : this.updateOverlay());
|
|
25
|
-
}
|
|
26
|
-
setCursor(e) {
|
|
27
|
-
e != this.cursorPos && (this.cursorPos = e, e == null ? (this.element.parentNode.removeChild(this.element), this.element = null) : this.updateOverlay());
|
|
28
|
-
}
|
|
29
|
-
updateOverlay() {
|
|
30
|
-
let e = this.editorView.state.doc.resolve(this.cursorPos), t = !e.parent.inlineContent, i, s = this.editorView.dom, d = s.getBoundingClientRect(), r = d.width / s.offsetWidth, h = d.height / s.offsetHeight;
|
|
31
|
-
if (t) {
|
|
32
|
-
let o = e.nodeBefore, n = e.nodeAfter;
|
|
33
|
-
if (o || n) {
|
|
34
|
-
let a = this.editorView.nodeDOM(this.cursorPos - (o ? o.nodeSize : 0));
|
|
35
|
-
if (a) {
|
|
36
|
-
let c = a.getBoundingClientRect(), u = o ? c.bottom : c.top;
|
|
37
|
-
o && n && (u = (u + this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top) / 2);
|
|
38
|
-
let g = this.width / 2 * h;
|
|
39
|
-
i = { left: c.left, right: c.right, top: u - g, bottom: u + g };
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
if (!i) {
|
|
44
|
-
let o = this.editorView.coordsAtPos(this.cursorPos), n = this.width / 2 * r;
|
|
45
|
-
i = { left: o.left - n, right: o.left + n, top: o.top, bottom: o.bottom };
|
|
46
|
-
}
|
|
47
|
-
let l = this.editorView.dom.offsetParent;
|
|
48
|
-
this.element || (this.element = l.appendChild(document.createElement("div")), this.class && (this.element.className = this.class), this.element.style.cssText = "position: absolute; z-index: 50; pointer-events: none;", this.color && (this.element.style.backgroundColor = this.color)), this.element.classList.toggle("prosemirror-dropcursor-block", t), this.element.classList.toggle("prosemirror-dropcursor-inline", !t);
|
|
49
|
-
let f, p;
|
|
50
|
-
if (!l || l == document.body && getComputedStyle(l).position == "static")
|
|
51
|
-
f = -pageXOffset, p = -pageYOffset;
|
|
52
|
-
else {
|
|
53
|
-
let o = l.getBoundingClientRect(), n = o.width / l.offsetWidth, a = o.height / l.offsetHeight;
|
|
54
|
-
f = o.left - l.scrollLeft * n, p = o.top - l.scrollTop * a;
|
|
55
|
-
}
|
|
56
|
-
this.element.style.left = (i.left - f) / r + "px", this.element.style.top = (i.top - p) / h + "px", this.element.style.width = (i.right - i.left) / r + "px", this.element.style.height = (i.bottom - i.top) / h + "px";
|
|
57
|
-
}
|
|
58
|
-
scheduleRemoval(e) {
|
|
59
|
-
clearTimeout(this.timeout), this.timeout = setTimeout(() => this.setCursor(null), e);
|
|
60
|
-
}
|
|
61
|
-
dragover(e) {
|
|
62
|
-
if (!this.editorView.editable)
|
|
63
|
-
return;
|
|
64
|
-
let t = this.editorView.posAtCoords({ left: e.clientX, top: e.clientY }), i = t && t.inside >= 0 && this.editorView.state.doc.nodeAt(t.inside), s = i && i.type.spec.disableDropCursor, d = typeof s == "function" ? s(this.editorView, t, e) : s;
|
|
65
|
-
if (t && !d) {
|
|
66
|
-
let r = t.pos;
|
|
67
|
-
if (this.editorView.dragging && this.editorView.dragging.slice) {
|
|
68
|
-
let h = v(this.editorView.state.doc, r, this.editorView.dragging.slice);
|
|
69
|
-
h != null && (r = h);
|
|
70
|
-
}
|
|
71
|
-
this.setCursor(r), this.scheduleRemoval(5e3);
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
dragend() {
|
|
75
|
-
this.scheduleRemoval(20);
|
|
76
|
-
}
|
|
77
|
-
drop() {
|
|
78
|
-
this.scheduleRemoval(20);
|
|
79
|
-
}
|
|
80
|
-
dragleave(e) {
|
|
81
|
-
this.editorView.dom.contains(e.relatedTarget) || this.setCursor(null);
|
|
82
|
-
}
|
|
83
|
-
}
|
|
1
|
+
var a = {};
|
|
84
2
|
export {
|
|
85
|
-
|
|
3
|
+
a as default
|
|
86
4
|
};
|