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 CHANGED
@@ -48382,23 +48382,23 @@ Wn.getAdapter = R_.getAdapter;
48382
48382
  Wn.HttpStatusCode = dc;
48383
48383
  Wn.default = Wn;
48384
48384
  const {
48385
- Axios: iae,
48386
- AxiosError: uae,
48387
- CanceledError: cae,
48388
- isCancel: dae,
48389
- CancelToken: fae,
48390
- VERSION: hae,
48391
- all: pae,
48392
- Cancel: vae,
48393
- isAxiosError: mae,
48394
- spread: gae,
48395
- toFormData: yae,
48396
- AxiosHeaders: bae,
48397
- HttpStatusCode: wae,
48398
- formToJSON: Sae,
48399
- getAdapter: Cae,
48400
- mergeConfig: kae,
48401
- create: Eae
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: t.keepAlive || 50,
61126
+ keepalive: 50,
61127
61127
  connectTimeout: 5e3,
61128
- reconnectPeriod: t.reconnectPeriod || 5e3
61128
+ reconnectPeriod: 5e3
61129
61129
  };
61130
61130
  let r = t.mqttUrl || "ws://127.0.0.1:5002/ws";
61131
- if (console.log("mqtt connect url = ", r), this.mqttClient = Qoe.connect(r, n), !this.mqttClient) {
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
- }, eae = "v1.00.26911.B01";
61181
+ };
61182
61182
  let Hu;
61183
- const Tae = (e) => {
61183
+ const _ae = (e) => {
61184
61184
  if (!e)
61185
61185
  throw new Error("QfOptions is undefined");
61186
- if (!Hu && e && (Hu = new tae(e)), !Hu)
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 tae {
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() qf version = " + eae), this.EventBus = new Wne(), this.WebApi = new jne(t), console.log("product", window.location), this.options.useMqtt && (this.Mqtt = new Joe(this.EventBus, t)), console.log("options = ", t);
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 nae = {
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
- }, Oae = {
61246
+ }, Tae = {
61247
61247
  install(e) {
61248
61248
  e.use(oZ);
61249
- for (const [t, n] of Object.entries(nae))
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
- Tae as GetQf,
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
- Oae as default,
61263
+ Tae as default,
61264
61264
  Xo as notify,
61265
61265
  vu as notifyUtil
61266
61266
  };