urit-qf-ui 0.1.4 → 0.1.6
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.js +30 -30
- package/dist/index.umd.cjs +4 -4
- package/dist/qf/interface.d.ts +0 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -48382,23 +48382,23 @@ Wn.getAdapter = R_.getAdapter;
|
|
|
48382
48382
|
Wn.HttpStatusCode = dc;
|
|
48383
48383
|
Wn.default = Wn;
|
|
48384
48384
|
const {
|
|
48385
|
-
Axios:
|
|
48386
|
-
AxiosError:
|
|
48387
|
-
CanceledError:
|
|
48388
|
-
isCancel:
|
|
48389
|
-
CancelToken:
|
|
48390
|
-
VERSION:
|
|
48391
|
-
all:
|
|
48392
|
-
Cancel:
|
|
48393
|
-
isAxiosError:
|
|
48394
|
-
spread:
|
|
48395
|
-
toFormData:
|
|
48396
|
-
AxiosHeaders:
|
|
48397
|
-
HttpStatusCode:
|
|
48398
|
-
formToJSON:
|
|
48399
|
-
getAdapter:
|
|
48400
|
-
mergeConfig:
|
|
48401
|
-
create:
|
|
48385
|
+
Axios: lae,
|
|
48386
|
+
AxiosError: iae,
|
|
48387
|
+
CanceledError: uae,
|
|
48388
|
+
isCancel: cae,
|
|
48389
|
+
CancelToken: dae,
|
|
48390
|
+
VERSION: fae,
|
|
48391
|
+
all: hae,
|
|
48392
|
+
Cancel: pae,
|
|
48393
|
+
isAxiosError: vae,
|
|
48394
|
+
spread: mae,
|
|
48395
|
+
toFormData: gae,
|
|
48396
|
+
AxiosHeaders: yae,
|
|
48397
|
+
HttpStatusCode: bae,
|
|
48398
|
+
formToJSON: wae,
|
|
48399
|
+
getAdapter: Sae,
|
|
48400
|
+
mergeConfig: Cae,
|
|
48401
|
+
create: kae
|
|
48402
48402
|
} = Wn, hi = Wn.create({
|
|
48403
48403
|
timeout: 3e4,
|
|
48404
48404
|
headers: {
|
|
@@ -61123,12 +61123,12 @@ class Joe {
|
|
|
61123
61123
|
password: t.password,
|
|
61124
61124
|
clientId: `${t.module}_${this.randomStr(10)}`,
|
|
61125
61125
|
clean: !0,
|
|
61126
|
-
keepalive:
|
|
61126
|
+
keepalive: 50,
|
|
61127
61127
|
connectTimeout: 5e3,
|
|
61128
|
-
reconnectPeriod:
|
|
61128
|
+
reconnectPeriod: 5e3
|
|
61129
61129
|
};
|
|
61130
61130
|
let r = t.mqttUrl || "ws://127.0.0.1:5002/ws";
|
|
61131
|
-
if (console.log("
|
|
61131
|
+
if (console.log("connect to mqtt..."), this.mqttClient = Qoe.connect(r, n), !this.mqttClient) {
|
|
61132
61132
|
console.log("connect mqtt failed");
|
|
61133
61133
|
return;
|
|
61134
61134
|
}
|
|
@@ -61178,16 +61178,16 @@ const lh = "Notice", Zoe = "NOTICE", Uu = {
|
|
|
61178
61178
|
Close: "close",
|
|
61179
61179
|
Reconnect: "reconnect",
|
|
61180
61180
|
Error: "error"
|
|
61181
|
-
}
|
|
61181
|
+
};
|
|
61182
61182
|
let Hu;
|
|
61183
|
-
const
|
|
61183
|
+
const _ae = (e) => {
|
|
61184
61184
|
if (!e)
|
|
61185
61185
|
throw new Error("QfOptions is undefined");
|
|
61186
|
-
if (!Hu && e && (Hu = new
|
|
61186
|
+
if (!Hu && e && (Hu = new eae(e)), !Hu)
|
|
61187
61187
|
throw new Error("Qf not initialized, please call GetQf(options) first");
|
|
61188
61188
|
return Hu;
|
|
61189
61189
|
};
|
|
61190
|
-
class
|
|
61190
|
+
class eae {
|
|
61191
61191
|
constructor(t) {
|
|
61192
61192
|
ht(this, "EventBus");
|
|
61193
61193
|
ht(this, "WebApi");
|
|
@@ -61201,7 +61201,7 @@ class tae {
|
|
|
61201
61201
|
initQf(t) {
|
|
61202
61202
|
if (!t)
|
|
61203
61203
|
throw new Error(`StartQf failed! options is ${t}`);
|
|
61204
|
-
this.options = t, console.log("StartQf()
|
|
61204
|
+
this.options = t, console.log("StartQf(), qfOptions=", t), this.EventBus = new Wne(), this.WebApi = new jne(t), this.options.useMqtt && (this.Mqtt = new Joe(this.EventBus, t));
|
|
61205
61205
|
}
|
|
61206
61206
|
// ==================== EventBus 相关 ====================
|
|
61207
61207
|
On(t, n) {
|
|
@@ -61234,7 +61234,7 @@ class tae {
|
|
|
61234
61234
|
this.EventBus.On(t, n);
|
|
61235
61235
|
}
|
|
61236
61236
|
}
|
|
61237
|
-
const
|
|
61237
|
+
const tae = {
|
|
61238
61238
|
UInput: Fi,
|
|
61239
61239
|
UDict: pi,
|
|
61240
61240
|
UToggle: $_,
|
|
@@ -61243,16 +61243,16 @@ const nae = {
|
|
|
61243
61243
|
FormRender: B_,
|
|
61244
61244
|
TableRender: Vne,
|
|
61245
61245
|
UFieldView: by
|
|
61246
|
-
},
|
|
61246
|
+
}, Tae = {
|
|
61247
61247
|
install(e) {
|
|
61248
61248
|
e.use(oZ);
|
|
61249
|
-
for (const [t, n] of Object.entries(
|
|
61249
|
+
for (const [t, n] of Object.entries(tae))
|
|
61250
61250
|
e.component(t, n);
|
|
61251
61251
|
}
|
|
61252
61252
|
};
|
|
61253
61253
|
export {
|
|
61254
61254
|
B_ as FormRender,
|
|
61255
|
-
|
|
61255
|
+
_ae as GetQf,
|
|
61256
61256
|
Vne as TableRender,
|
|
61257
61257
|
L_ as UCascader,
|
|
61258
61258
|
vd as UDate,
|
|
@@ -61260,7 +61260,7 @@ export {
|
|
|
61260
61260
|
by as UFieldView,
|
|
61261
61261
|
Fi as UInput,
|
|
61262
61262
|
$_ as UToggle,
|
|
61263
|
-
|
|
61263
|
+
Tae as default,
|
|
61264
61264
|
Xo as notify,
|
|
61265
61265
|
vu as notifyUtil
|
|
61266
61266
|
};
|