@ibiz-template/runtime 0.7.41-alpha.67 → 0.7.41-alpha.68

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.esm.js CHANGED
@@ -77176,7 +77176,7 @@ var FileUtil = class {
77176
77176
  */
77177
77177
  chooseFile(accept = "", multiple = false) {
77178
77178
  return new Promise((resolve) => {
77179
- const inputElement = document.createElement("input");
77179
+ let inputElement = document.createElement("input");
77180
77180
  inputElement.type = "file";
77181
77181
  inputElement.accept = accept;
77182
77182
  inputElement.multiple = multiple;
@@ -77184,20 +77184,29 @@ var FileUtil = class {
77184
77184
  inputElement.addEventListener(
77185
77185
  "change",
77186
77186
  (e) => {
77187
+ if (inputElement) {
77188
+ document.body.removeChild(inputElement);
77189
+ inputElement = null;
77190
+ }
77187
77191
  resolve(e.target.files);
77188
77192
  },
77189
77193
  { once: true }
77190
77194
  );
77195
+ document.body.appendChild(inputElement);
77196
+ inputElement.click();
77191
77197
  window.addEventListener(
77192
77198
  "focus",
77193
77199
  () => {
77194
- setTimeout(() => resolve(void 0), 300);
77200
+ setTimeout(() => {
77201
+ if (inputElement) {
77202
+ document.body.removeChild(inputElement);
77203
+ inputElement = null;
77204
+ }
77205
+ resolve(void 0);
77206
+ }, 1e3);
77195
77207
  },
77196
77208
  { once: true }
77197
77209
  );
77198
- document.body.appendChild(inputElement);
77199
- inputElement.click();
77200
- document.body.removeChild(inputElement);
77201
77210
  });
77202
77211
  }
77203
77212
  /**
@@ -84387,7 +84396,7 @@ var Application = class {
84387
84396
  * @return {*} {Promise<void>}
84388
84397
  */
84389
84398
  async loadGlobalAppUtil() {
84390
- const appUtilTag = "GLOBAL_APP_UTIL";
84399
+ const appUtilTag = "".concat(ibiz.env.isMob ? "MOB_" : "", "GLOBAL_APP_UTIL");
84391
84400
  const globalAppUtilPlugin = ibiz.hub.getPlugin(
84392
84401
  appUtilTag.toLowerCase(),
84393
84402
  this.appId