@kengic/vue 0.28.1-beta.12 → 0.28.1-beta.13
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/kengic-vue.js +91 -52
- package/package.json +2 -2
- /package/dist/{close-outlined-DMcSQWxQ.b11005de.mjs → close-outlined-DMcSQWxQ.48237079.mjs} +0 -0
- /package/dist/{exclamation-circle-outlined-DZrXCnvM.07ca5f06.mjs → exclamation-circle-outlined-DZrXCnvM.bd32b314.mjs} +0 -0
- /package/dist/{fullscreen-exit-outlined-X1iYkFc4.06f3a3ca.mjs → fullscreen-exit-outlined-X1iYkFc4.6c861239.mjs} +0 -0
- /package/dist/{fullscreen-outlined-DDBrsRcy.eb2b11da.mjs → fullscreen-outlined-DDBrsRcy.33a46b1c.mjs} +0 -0
- /package/dist/{search-outlined-Od1M_oxf.3957ae50.mjs → search-outlined-Od1M_oxf.d967f82f.mjs} +0 -0
- /package/dist/{three-dots-loading-bIlrTJYR.8f16088a.mjs → three-dots-loading-bIlrTJYR.46864a98.mjs} +0 -0
package/dist/kengic-vue.js
CHANGED
@@ -2695,12 +2695,12 @@ reactExports.forwardRef((e, G) => IconComponent({
|
|
2695
2695
|
...e,
|
2696
2696
|
_ref: G
|
2697
2697
|
}));
|
2698
|
-
import("./close-outlined-DMcSQWxQ.
|
2699
|
-
import("./fullscreen-exit-outlined-X1iYkFc4.
|
2700
|
-
import("./fullscreen-outlined-DDBrsRcy.
|
2701
|
-
import("./exclamation-circle-outlined-DZrXCnvM.
|
2702
|
-
import("./search-outlined-Od1M_oxf.
|
2703
|
-
import("./three-dots-loading-bIlrTJYR.
|
2698
|
+
import("./close-outlined-DMcSQWxQ.48237079.mjs").then(({ default: e }) => addIcon$1("ant-design:close-outlined", e));
|
2699
|
+
import("./fullscreen-exit-outlined-X1iYkFc4.6c861239.mjs").then(({ default: e }) => addIcon$1("ant-design:fullscreen-exit-outlined", e));
|
2700
|
+
import("./fullscreen-outlined-DDBrsRcy.33a46b1c.mjs").then(({ default: e }) => addIcon$1("ant-design:fullscreen-outlined", e));
|
2701
|
+
import("./exclamation-circle-outlined-DZrXCnvM.bd32b314.mjs").then(({ default: e }) => addIcon$1("ant-design:exclamation-circle-outlined", e));
|
2702
|
+
import("./search-outlined-Od1M_oxf.d967f82f.mjs").then(({ default: e }) => addIcon$1("ant-design:search-outlined", e));
|
2703
|
+
import("./three-dots-loading-bIlrTJYR.46864a98.mjs").then(({ default: e }) => addIcon$1("eos-icons:three-dots-loading", e));
|
2704
2704
|
var jsxRuntime = { exports: {} }, reactJsxRuntime_production_min = {};
|
2705
2705
|
/**
|
2706
2706
|
* @license React
|
@@ -64353,56 +64353,51 @@ function useDragToMove$1(e) {
|
|
64353
64353
|
function useDragToResize$1(e) {
|
64354
64354
|
var Va, za, Ya, Ba;
|
64355
64355
|
const { getProps: G, domRef: U } = e, { width: te, height: ne } = (Va = useSize(document.documentElement)) != null ? Va : { width: 0, height: 0 }, oe = 48, ie = 400;
|
64356
|
-
let ue = null, st = null, ea = null;
|
64357
|
-
const [
|
64358
|
-
let
|
64359
|
-
const
|
64360
|
-
let
|
64356
|
+
let ue = null, st = null, ea = null, ta = null;
|
64357
|
+
const [na, oa] = reactExports.useState(null);
|
64358
|
+
let la = null, da = null;
|
64359
|
+
const ca = Math.min((za = G.kgMinWidth) != null ? za : ie, te), fa = Math.min((Ya = G.kgMaxWidth) != null ? Ya : te, te), pa = Math.min((Ba = G.kgMaxHeight) != null ? Ba : ne, ne), [ga, ha] = reactExports.useState(0);
|
64360
|
+
let Ea = 0, ya = 0, Sa = 0, Ta = 0, Na = {
|
64361
64361
|
remove: () => {
|
64362
64362
|
}
|
64363
|
-
},
|
64363
|
+
}, Aa = {
|
64364
64364
|
remove: () => {
|
64365
64365
|
}
|
64366
64366
|
};
|
64367
|
-
function Aa() {
|
64368
|
-
!ea || !ta || !ea.clientHeight || ta.clientHeight || setTimeout(() => {
|
64369
|
-
ea.style.height = `${ea.clientHeight}px`;
|
64370
|
-
}, 0);
|
64371
|
-
}
|
64372
64367
|
function ka(Qa, di, pi) {
|
64373
64368
|
return Qa.addEventListener(di, pi), {
|
64374
64369
|
remove: () => Qa.removeEventListener(di, pi)
|
64375
64370
|
};
|
64376
64371
|
}
|
64377
64372
|
function Ra() {
|
64378
|
-
|
64373
|
+
Na.remove(), Aa.remove();
|
64379
64374
|
}
|
64380
64375
|
function Ka(Qa) {
|
64381
|
-
if (!
|
64376
|
+
if (!ta) {
|
64382
64377
|
Ne$1("\u5F39\u7A97\u5143\u7D20\u4E3A\u7A7A.");
|
64383
64378
|
return;
|
64384
64379
|
}
|
64385
64380
|
const { event: di } = Qa != null ? Qa : {}, pi = di.pageX;
|
64386
|
-
let wi = Math.min(
|
64387
|
-
|
64388
|
-
const Mi =
|
64389
|
-
wi !== Mi && (
|
64381
|
+
let wi = Math.min(fa, Math.max(ca, Ea + pi - Sa));
|
64382
|
+
ta.offsetLeft + wi > te && (wi = te - ta.offsetLeft);
|
64383
|
+
const Mi = ta.offsetWidth, Di = Number(getComputedStyle(ta).left.replace(/px/g, "")) + (wi - Mi) / 2;
|
64384
|
+
wi !== Mi && (ta.style.width = `${wi}px`, ta.style.left = `${Di}px`);
|
64390
64385
|
}
|
64391
64386
|
function Pa(Qa) {
|
64392
64387
|
var Ci, mi, qa;
|
64393
|
-
if (!
|
64388
|
+
if (!ta) {
|
64394
64389
|
Ne$1("\u5F39\u7A97\u5143\u7D20\u4E3A\u7A7A.");
|
64395
64390
|
return;
|
64396
64391
|
}
|
64397
|
-
const { event: di } = Qa != null ? Qa : {}, pi = di.pageY, wi = (Ci =
|
64398
|
-
let Ri = Math.min(
|
64399
|
-
|
64400
|
-
const xi =
|
64401
|
-
Ri !== xi && (
|
64392
|
+
const { event: di } = Qa != null ? Qa : {}, pi = di.pageY, wi = (Ci = la == null ? void 0 : la.clientHeight) != null ? Ci : oe, Mi = (mi = da == null ? void 0 : da.clientHeight) != null ? mi : 0, Di = Math.min((qa = G == null ? void 0 : G.kgMinHeight) != null ? qa : wi + Mi + KG_MODAL_BORDER_WIDTH$1 * 2, ne);
|
64393
|
+
let Ri = Math.min(pa, Math.max(Di, ya + pi - Ta));
|
64394
|
+
ta.offsetTop + Ri > ne && (Ri = ne - ta.offsetTop);
|
64395
|
+
const xi = ta.offsetHeight, bi = Number(getComputedStyle(ta).top.replace(/px/g, "")) + (Ri - xi) / 2;
|
64396
|
+
Ri !== xi && (ta.style.height = `${Ri}px`, ta.style.top = `${bi}px`);
|
64402
64397
|
}
|
64403
64398
|
function Ia(Qa) {
|
64404
64399
|
const { event: di, handleType: pi } = Qa != null ? Qa : {};
|
64405
|
-
if (!
|
64400
|
+
if (!ta) {
|
64406
64401
|
Ne$1("\u5F39\u7A97\u5143\u7D20\u4E3A\u7A7A.");
|
64407
64402
|
return;
|
64408
64403
|
}
|
@@ -64430,11 +64425,25 @@ function useDragToResize$1(e) {
|
|
64430
64425
|
function La(Qa) {
|
64431
64426
|
const { event: di, handleType: pi } = Qa != null ? Qa : {};
|
64432
64427
|
if (di.stopPropagation(), di.preventDefault(), Ra(), !(di instanceof MouseEvent && di.which !== 1)) {
|
64433
|
-
if (!
|
64428
|
+
if (!ta) {
|
64434
64429
|
Ne$1("\u5F39\u7A97\u5143\u7D20\u4E3A\u7A7A.");
|
64435
64430
|
return;
|
64436
64431
|
}
|
64437
|
-
|
64432
|
+
Sa = di.pageX, Ta = di.pageY, Ea = ta.offsetWidth, ya = ta.offsetHeight, Number(getComputedStyle(ta).top.replace(/px/g, "")), Na = ka(
|
64433
|
+
document.documentElement,
|
64434
|
+
"mousemove",
|
64435
|
+
(wi) => Fa({
|
64436
|
+
event: wi,
|
64437
|
+
handleType: pi
|
64438
|
+
})
|
64439
|
+
), Aa = ka(
|
64440
|
+
document.documentElement,
|
64441
|
+
"mouseup",
|
64442
|
+
(wi) => Ga({
|
64443
|
+
event: wi,
|
64444
|
+
handleType: pi
|
64445
|
+
})
|
64446
|
+
);
|
64438
64447
|
}
|
64439
64448
|
}
|
64440
64449
|
function Fa(Qa) {
|
@@ -64446,32 +64455,62 @@ function useDragToResize$1(e) {
|
|
64446
64455
|
reactExports.useEffect(() => {
|
64447
64456
|
var Rs, sl, vs, Ui, gs, Bs, ns, Ks, Qs, Nl, Rl, Ds, qs;
|
64448
64457
|
var Qa, di, pi, wi, Mi, Di, Ri, xi, bi;
|
64449
|
-
|
64450
|
-
const Ci = (Bs =
|
64458
|
+
ea = (Rs = (Mi = (wi = (pi = (di = (Qa = U.current) == null ? void 0 : Qa.parentElement) == null ? void 0 : di.parentElement) == null ? void 0 : pi.parentElement) == null ? void 0 : wi.parentElement) == null ? void 0 : Mi.parentElement) != null ? Rs : null, ta = (sl = (bi = (xi = (Ri = (Di = U.current) == null ? void 0 : Di.parentElement) == null ? void 0 : Ri.parentElement) == null ? void 0 : xi.parentElement) == null ? void 0 : bi.parentElement) != null ? sl : null, la = (vs = ea == null ? void 0 : ea.querySelector(".kgcrant-modal-header")) != null ? vs : null, da = (Ui = ea == null ? void 0 : ea.querySelector(".kgcrant-modal-footer")) != null ? Ui : null, oa((gs = ea == null ? void 0 : ea.querySelector(".kgcrant-modal-content")) != null ? gs : null);
|
64459
|
+
const Ci = (Bs = ea == null ? void 0 : ea.querySelector(".resize-handle-top-left")) != null ? Bs : null, mi = (ns = ea == null ? void 0 : ea.querySelector(".resize-handle-top")) != null ? ns : null, qa = (Ks = ea == null ? void 0 : ea.querySelector(".resize-handle-top-right")) != null ? Ks : null, Ua = (Qs = ea == null ? void 0 : ea.querySelector(".resize-handle-right")) != null ? Qs : null, _i = (Nl = ea == null ? void 0 : ea.querySelector(".resize-handle-bottom-right")) != null ? Nl : null, Ni = (Rl = ea == null ? void 0 : ea.querySelector(".resize-handle-bottom")) != null ? Rl : null, Gi = (Ds = ea == null ? void 0 : ea.querySelector(".resize-handle-bottom-left")) != null ? Ds : null, Xi = (qs = ea == null ? void 0 : ea.querySelector(".resize-handle-left")) != null ? qs : null;
|
64451
64460
|
ii$1("src/component/KgModal/hook/useDragToResize.ts | 001", {
|
64452
64461
|
domRef: U.current,
|
64453
|
-
modalContentElement:
|
64454
|
-
modalElement:
|
64455
|
-
modalFooterElement:
|
64456
|
-
modalHeaderElement:
|
64457
|
-
modalWrapElement:
|
64462
|
+
modalContentElement: na,
|
64463
|
+
modalElement: ta,
|
64464
|
+
modalFooterElement: da,
|
64465
|
+
modalHeaderElement: la,
|
64466
|
+
modalWrapElement: ea,
|
64458
64467
|
open: !!G.open
|
64459
64468
|
});
|
64460
|
-
const ds = (_u) => La == null ? void 0 : La({
|
64461
|
-
|
64462
|
-
|
64469
|
+
const ds = (_u) => La == null ? void 0 : La({
|
64470
|
+
event: _u,
|
64471
|
+
handleType: "top-left"
|
64472
|
+
}), Bi = (_u) => La == null ? void 0 : La({
|
64473
|
+
event: _u,
|
64474
|
+
handleType: "top"
|
64475
|
+
}), rs = (_u) => La == null ? void 0 : La({
|
64476
|
+
event: _u,
|
64477
|
+
handleType: "top-right"
|
64478
|
+
}), Ji = (_u) => La == null ? void 0 : La({
|
64479
|
+
event: _u,
|
64480
|
+
handleType: "right"
|
64481
|
+
}), $i = (_u) => La == null ? void 0 : La({
|
64482
|
+
event: _u,
|
64483
|
+
handleType: "bottom-right"
|
64484
|
+
}), Vi = (_u) => La == null ? void 0 : La({
|
64485
|
+
event: _u,
|
64486
|
+
handleType: "bottom"
|
64487
|
+
}), us = (_u) => La == null ? void 0 : La({
|
64488
|
+
event: _u,
|
64489
|
+
handleType: "bottom-left"
|
64490
|
+
}), Ps = (_u) => La == null ? void 0 : La({
|
64491
|
+
event: _u,
|
64492
|
+
handleType: "left"
|
64493
|
+
});
|
64494
|
+
return !U.current || !G.open || !ea || !ta || !na || !la || !da || (Ci == null || Ci.addEventListener("mousedown", ds), mi == null || mi.addEventListener("mousedown", Bi), qa == null || qa.addEventListener("mousedown", rs), Ua == null || Ua.addEventListener("mousedown", Ji), _i == null || _i.addEventListener("mousedown", $i), Ni == null || Ni.addEventListener("mousedown", Vi), Gi == null || Gi.addEventListener("mousedown", us), Xi == null || Xi.addEventListener("mousedown", Ps)), () => {
|
64495
|
+
st == null || st.disconnect(), Ra(), Ci == null || Ci.removeEventListener("mousedown", ds), mi == null || mi.removeEventListener("mousedown", Bi), qa == null || qa.removeEventListener("mousedown", rs), Ua == null || Ua.removeEventListener("mousedown", Ji), _i == null || _i.removeEventListener("mousedown", $i), Ni == null || Ni.removeEventListener("mousedown", Vi), Gi == null || Gi.removeEventListener("mousedown", us), Xi == null || Xi.removeEventListener("mousedown", Ps);
|
64463
64496
|
};
|
64464
|
-
}, [U, !!G.open,
|
64465
|
-
ii$1("src/component/KgModal/hook/useDragToResize.ts |
|
64466
|
-
|
64467
|
-
}), ta ? (ue = new ResizeObserver(() =>
|
64497
|
+
}, [U, !!G.open, na]), reactExports.useEffect(() => {
|
64498
|
+
ii$1("src/component/KgModal/hook/useDragToResize.ts | 004", {
|
64499
|
+
modalElement: ta
|
64500
|
+
}), ta ? (ue = new ResizeObserver(() => {
|
64501
|
+
ta && ta.clientHeight && (ta.style.height = `${ta.clientHeight}px`);
|
64502
|
+
}), ue.observe(ta)) : ue == null || ue.disconnect();
|
64468
64503
|
}, [ta]), reactExports.useEffect(() => {
|
64504
|
+
ii$1("src/component/KgModal/hook/useDragToResize.ts | 002", {
|
64505
|
+
modalContentElement: na
|
64506
|
+
}), na ? (st = new ResizeObserver(() => ha(na.offsetHeight)), st.observe(na)) : st == null || st.disconnect();
|
64507
|
+
}, [na]), reactExports.useEffect(() => {
|
64469
64508
|
ii$1("src/component/KgModal/hook/useDragToResize.ts | 003", {
|
64470
|
-
currentModalContentOffsetHeight:
|
64471
|
-
maxHeight:
|
64472
|
-
modalElement:
|
64473
|
-
}),
|
64474
|
-
}, [
|
64509
|
+
currentModalContentOffsetHeight: ga,
|
64510
|
+
maxHeight: pa,
|
64511
|
+
modalElement: ta
|
64512
|
+
}), ta && ga > pa && (ta.style.height = `${pa}px`);
|
64513
|
+
}, [ta, ga, pa]);
|
64475
64514
|
}
|
64476
64515
|
function KgModalHeaderButtonsClose({}) {
|
64477
64516
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "kgcrant-kg-modal--header--buttons--close", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Icon$2, { icon: "ant-design:close-outlined" }) });
|
@@ -70096,7 +70135,7 @@ function fi(e) {
|
|
70096
70135
|
})
|
70097
70136
|
);
|
70098
70137
|
}
|
70099
|
-
const version = "0.28.1-beta.
|
70138
|
+
const version = "0.28.1-beta.13", en$1 = {
|
70100
70139
|
kg: {
|
70101
70140
|
KgAppSelect: {
|
70102
70141
|
businessManager: "Business Manager",
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@kengic/vue",
|
3
|
-
"version": "0.28.1-beta.
|
3
|
+
"version": "0.28.1-beta.13",
|
4
4
|
"scripts": {
|
5
5
|
"build": "npm run use-node && rimraf dist && vue-tsc && vite build",
|
6
6
|
"build:dev": "npm run use-node && rimraf dist && vue-tsc && vite build --mode development",
|
@@ -39,7 +39,7 @@
|
|
39
39
|
"@iconify-icons/ph": "1.2.5",
|
40
40
|
"@iconify/vue": "4.1.2",
|
41
41
|
"@kengic/core.core": "0.0.1-beta.22",
|
42
|
-
"@kengic/core.react": "0.0.2-beta.
|
42
|
+
"@kengic/core.react": "0.0.2-beta.12",
|
43
43
|
"@kengic/pont": "1.2.17-beta.5",
|
44
44
|
"@rys-fe/vite-plugin-theme": "0.8.6",
|
45
45
|
"@thymine/xunee": "0.4.9-beta.8",
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
/package/dist/{search-outlined-Od1M_oxf.3957ae50.mjs → search-outlined-Od1M_oxf.d967f82f.mjs}
RENAMED
File without changes
|
/package/dist/{three-dots-loading-bIlrTJYR.8f16088a.mjs → three-dots-loading-bIlrTJYR.46864a98.mjs}
RENAMED
File without changes
|