bt-core-app 1.4.392 → 1.4.394
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/bt-core-app.js +4 -6
- package/dist/index.d.ts +4 -4
- package/package.json +1 -1
package/dist/bt-core-app.js
CHANGED
|
@@ -7724,7 +7724,7 @@ function dx(e) {
|
|
|
7724
7724
|
async function c(v) {
|
|
7725
7725
|
const g = v.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, u = v.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, k = v.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
|
|
7726
7726
|
let w = v.finalUrl, C = v.headers;
|
|
7727
|
-
if (w == null && (w = a(v)), v.overrideHeaders !== !0 && (C = t(v)),
|
|
7727
|
+
if (w == null && (w = a(v)), v.overrideHeaders !== !0 && (C = t(v)), l != null && l.isDemoing.value)
|
|
7728
7728
|
return console.log(`DEMO: Get all from ${w}`), l.getAll(v);
|
|
7729
7729
|
console.log(`Get all from ${w}`);
|
|
7730
7730
|
let S;
|
|
@@ -8486,7 +8486,6 @@ function hx(e, t = {}) {
|
|
|
8486
8486
|
}
|
|
8487
8487
|
}
|
|
8488
8488
|
function V(Y) {
|
|
8489
|
-
console.log("applying style");
|
|
8490
8489
|
const Z = Na(e);
|
|
8491
8490
|
if (!Z)
|
|
8492
8491
|
return;
|
|
@@ -8629,7 +8628,7 @@ function gx(e) {
|
|
|
8629
8628
|
};
|
|
8630
8629
|
}
|
|
8631
8630
|
function l() {
|
|
8632
|
-
|
|
8631
|
+
localStorage.setItem("cosmetics", JSON.stringify(t.value));
|
|
8633
8632
|
}
|
|
8634
8633
|
function r(d) {
|
|
8635
8634
|
n != null && (n.global.name.value = t.value.theme, n.global.name.value == "dark" ? (d && (t.value.dark = { ...cu, ...e.defaultDarkTheme }), n.themes.value.dark = {
|
|
@@ -33100,7 +33099,6 @@ function hP() {
|
|
|
33100
33099
|
o >= 0 ? n.splice(o, 1) : n.push(i);
|
|
33101
33100
|
} else
|
|
33102
33101
|
n = n === i ? void 0 : i;
|
|
33103
|
-
console.log(n);
|
|
33104
33102
|
}, l = [];
|
|
33105
33103
|
if ((t.itemText != null || t.itemValue != null || t.textFunction != null) && l.push({
|
|
33106
33104
|
level: 1,
|
|
@@ -34279,7 +34277,7 @@ const gE = /* @__PURE__ */ Qe({
|
|
|
34279
34277
|
s.value != null && !l && (i = parseInt(window.getComputedStyle(s.value.$el).getPropertyValue("width"))), o.width = 0;
|
|
34280
34278
|
},
|
|
34281
34279
|
onUpdate: () => {
|
|
34282
|
-
|
|
34280
|
+
o.width == 0 && (o.width = l && n.width != null ? Number.parseInt(n.width) : i);
|
|
34283
34281
|
}
|
|
34284
34282
|
});
|
|
34285
34283
|
un("isMobile", d.isMobile), un("fieldVariant", n.fieldVariant ?? "underlined"), un("fieldEditVariant", n.fieldEditVariant ?? "outlined");
|
|
@@ -39842,7 +39840,7 @@ const _V = /* @__PURE__ */ Qe({
|
|
|
39842
39840
|
setup(e, { emit: t }) {
|
|
39843
39841
|
const n = e, a = O(null), l = ui(), r = _(() => {
|
|
39844
39842
|
const f = lt(a);
|
|
39845
|
-
if (
|
|
39843
|
+
if (f != null)
|
|
39846
39844
|
return f.signaturePad.canvas.height / window.devicePixelRatio;
|
|
39847
39845
|
}), i = _(() => {
|
|
39848
39846
|
const f = lt(a);
|
package/dist/index.d.ts
CHANGED
|
@@ -492,10 +492,10 @@ export declare interface DemoApiGroup {
|
|
|
492
492
|
nav?: string | string[];
|
|
493
493
|
path?: string;
|
|
494
494
|
data?: any[];
|
|
495
|
-
getAllAction?: (list:
|
|
496
|
-
getAction?: (list:
|
|
497
|
-
patchAction?: (list:
|
|
498
|
-
postAction?: (list:
|
|
495
|
+
getAllAction?: <T, TReturn>(list: T[], params: any) => TReturn[];
|
|
496
|
+
getAction?: <T, TReturn>(list: T[], id?: string) => TReturn | undefined;
|
|
497
|
+
patchAction?: <T, TPatch, TReturn>(list: T[], item: TPatch) => TReturn | undefined;
|
|
498
|
+
postAction?: <T, TPost, TReturn>(list: T[], item: TPost) => TReturn | undefined;
|
|
499
499
|
}
|
|
500
500
|
|
|
501
501
|
export declare const demoKey: unique symbol;
|
package/package.json
CHANGED