@qikdev/vue-ui 0.2.227 → 0.2.229

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/lib.es.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import './style.css';
2
2
  import { defineComponent as Fr, ref as en, toRefs as Dl, onMounted as Fl, onBeforeUnmount as Xa, watch as Ir, computed as pr, openBlock as a, createElementBlock as d, renderSlot as G, createCommentVNode as _, normalizeClass as A, useSlots as Qa, reactive as Ut, provide as ji, resolveComponent as y, Fragment as S, unref as Wn, createBlock as k, withCtx as h, createVNode as m, renderList as $, toDisplayString as b, withDirectives as W, vShow as hi, createElementVNode as x, withModifiers as H, createTextVNode as O, h as yr, mergeProps as Ei, toHandlers as Mr, normalizeStyle as qe, resolveDynamicComponent as Ct, vModelSelect as mt, pushScopeId as Ke, popScopeId as Je, Teleport as eu, vModelText as oe, withKeys as ye, TransitionGroup as tu, nextTick as Il, vModelDynamic as Gn } from "vue";
3
3
  import { EventDispatcher as Ml } from "@qikdev/sdk";
4
- const nu = "0.2.227";
4
+ const nu = "0.2.229";
5
5
  class Rt extends Error {
6
6
  }
7
7
  class iu extends Rt {
@@ -7922,7 +7922,7 @@ function rg(e, t, n, r, s, i) {
7922
7922
  _: 1
7923
7923
  });
7924
7924
  }
7925
- const zF = /* @__PURE__ */ T(ig, [["render", rg], ["__scopeId", "data-v-f46dd772"]]);
7925
+ const HF = /* @__PURE__ */ T(ig, [["render", rg], ["__scopeId", "data-v-f46dd772"]]);
7926
7926
  const sg = {
7927
7927
  props: {
7928
7928
  icon: {
@@ -25135,6 +25135,11 @@ function VF(e, t, n, r, s, i) {
25135
25135
  });
25136
25136
  }
25137
25137
  const CF = /* @__PURE__ */ T(xF, [["render", VF], ["__scopeId", "data-v-e1cac3f3"]]), ot = "uploading", li = "complete", At = "ready", EF = "error", DF = "upload.cancel", FF = "upload.start", Cl = "upload.complete", IF = "upload.progress", MF = "upload.error", $F = {
25138
+ props: {
25139
+ accept: {
25140
+ type: String
25141
+ }
25142
+ },
25138
25143
  data() {
25139
25144
  return {
25140
25145
  queue: [],
@@ -25255,7 +25260,7 @@ const CF = /* @__PURE__ */ T(xF, [["render", VF], ["__scopeId", "data-v-e1cac3f3
25255
25260
  }
25256
25261
  }
25257
25262
  };
25258
- return new Ml().bootstrap(f), t.silent ? n.queue.unshift(f) : n.openModal(), f;
25263
+ return new Ml().bootstrap(f), n.queue.unshift(f), f;
25259
25264
  },
25260
25265
  cancelFile(e) {
25261
25266
  e.state == ot && (e.cancel && e.cancel("Cancelled"), e.bytesLoaded = 0, e.percent = 0, e.state = At, e.dispatch(DF));
@@ -25361,28 +25366,39 @@ const CF = /* @__PURE__ */ T(xF, [["render", VF], ["__scopeId", "data-v-e1cac3f3
25361
25366
  e.uploading ? e.pause() : (e.queue.length = 0, e.defaultFreeformTags.length = 0, e.defaultScopes.length = 0);
25362
25367
  }
25363
25368
  }
25364
- }, AF = { class: "uploader" }, LF = {
25365
- style: { display: "none" },
25366
- ref: "immediateFile",
25367
- type: "file"
25368
- };
25369
- function NF(e, t, n, r, s, i) {
25369
+ }, AF = { class: "uploader" }, LF = ["accept"], NF = ["accept"];
25370
+ function UF(e, t, n, r, s, i) {
25370
25371
  return a(), d("div", AF, [
25371
25372
  x("input", {
25372
25373
  style: { display: "none" },
25374
+ accept: n.accept,
25373
25375
  ref: "file",
25374
25376
  type: "file",
25375
25377
  multiple: "",
25376
25378
  onChange: t[0] || (t[0] = (l) => i.filesSelected(l.target.files))
25377
- }, null, 544),
25378
- x("input", LF, null, 512)
25379
+ }, null, 40, LF),
25380
+ x("input", {
25381
+ style: { display: "none" },
25382
+ accept: n.accept,
25383
+ ref: "immediateFile",
25384
+ type: "file"
25385
+ }, null, 8, NF),
25386
+ G(e.$slots, "default", {
25387
+ queue: s.queue,
25388
+ items: e.items,
25389
+ uploading: i.uploading,
25390
+ bytesLoaded: i.bytesLoaded,
25391
+ bytesTotal: i.bytesTotal,
25392
+ percent: i.percent,
25393
+ state: s.state
25394
+ })
25379
25395
  ]);
25380
25396
  }
25381
- const HF = /* @__PURE__ */ T($F, [["render", NF]]);
25382
- function UF(e, t) {
25397
+ const qF = /* @__PURE__ */ T($F, [["render", UF]]);
25398
+ function PF(e, t) {
25383
25399
  return t.reduce((n, r) => Math.abs(r - e) < Math.abs(n - e) ? r : n);
25384
25400
  }
25385
- function qF() {
25401
+ function WF() {
25386
25402
  var e = Ut({
25387
25403
  mounted: !1,
25388
25404
  screen: {
@@ -25455,7 +25471,7 @@ function qF() {
25455
25471
  point: 0
25456
25472
  }, l = 0;
25457
25473
  r > e.limits.xs && l++, r > e.limits.sm && l++, r > e.limits.md && l++, r > e.limits.lg && l++, l < 1 && (i.mobile = !0, i.xs = !0, i.xsOnly = !0, i.smAndDown = !0, i.mdAndDown = !0, i.lgAndDown = !0), l == 1 && (i.tablet = !0, i.sm = !0, i.smOnly = !0, i.smAndDown = !0, i.mdAndDown = !0, i.lgAndDown = !0, i.smAndUp = !0), l == 2 && (i.desktop = !0, i.md = !0, i.mdOnly = !0, i.mdAndDown = !0, i.lgAndDown = !0, i.smAndUp = !0, i.mdAndUp = !0), l == 3 && (i.desktop = !0, i.lg = !0, i.lgOnly = !0, i.lgAndDown = !0, i.smAndUp = !0, i.mdAndUp = !0, i.lgAndUp = !0), l > 3 && (i.desktop = !0, i.xl = !0, i.xlOnly = !0, i.smAndUp = !0, i.mdAndUp = !0, i.lgAndUp = !0), e.point = l, e.breakpoint = i;
25458
- const u = UF(r, [320, 768, 1200, 1800, 2e3]), f = u * 1, c = u * 1.5, p = u * 2;
25474
+ const u = PF(r, [320, 768, 1200, 1800, 2e3]), f = u * 1, c = u * 1.5, p = u * 2;
25459
25475
  e.image = {
25460
25476
  auto: {
25461
25477
  low: f,
@@ -25469,7 +25485,7 @@ function qF() {
25469
25485
  n.removeEventListener("resize", e.resize), n = !1, t = !1, e.mounted = !1;
25470
25486
  }, e;
25471
25487
  }
25472
- const PF = `qik vue ui ${nu}`, El = {
25488
+ const jF = `qik vue ui ${nu}`, El = {
25473
25489
  FlexColumn: yc,
25474
25490
  FlexBody: bc,
25475
25491
  FlexHeader: Sc,
@@ -25508,10 +25524,10 @@ const PF = `qik vue ui ${nu}`, El = {
25508
25524
  ProgressBar: Jg,
25509
25525
  UxModal: WD,
25510
25526
  Compile: za
25511
- }, WF = {
25527
+ }, GF = {
25512
25528
  install(e, t) {
25513
25529
  var n;
25514
- console.log(PF), t.date = Ie, t.global = t.global || Ut({}), (n = t.global) != null && n.cacheKeys || (t.global.cacheKeys = t.global.cacheKeys || Ut({})), t.modals = Ut([]), t.modal = function(r) {
25530
+ console.log(jF), t.date = Ie, t.global = t.global || Ut({}), (n = t.global) != null && n.cacheKeys || (t.global.cacheKeys = t.global.cacheKeys || Ut({})), t.modals = Ut([]), t.modal = function(r) {
25515
25531
  return new Promise(function(s, i) {
25516
25532
  r.id = t.modals.length, r.resolve = s, r.reject = i, t.modals.splice(r.id, 0, r);
25517
25533
  });
@@ -25566,7 +25582,7 @@ export {
25566
25582
  MS as CodeEditor,
25567
25583
  BD as ContentBrowser,
25568
25584
  fv as DateRange,
25569
- qF as Device,
25585
+ WF as Device,
25570
25586
  yw as FileDrop,
25571
25587
  bc as FlexBody,
25572
25588
  Fc as FlexCell,
@@ -25579,13 +25595,13 @@ export {
25579
25595
  Ko as Item,
25580
25596
  hn as ModalMixin,
25581
25597
  yt as NativeSelect,
25582
- zF as Pager,
25598
+ HF as Pager,
25583
25599
  Bc as Panel,
25584
25600
  Wc as PanelBody,
25585
25601
  ef as PanelFooter,
25586
25602
  Kc as PanelHeader,
25587
25603
  Jg as ProgressBar,
25588
- WF as QikUI,
25604
+ GF as QikUI,
25589
25605
  x_ as RememberScrollMixin,
25590
25606
  pb as ScopeSelect,
25591
25607
  vb as ScopeSelectButton,
@@ -25616,7 +25632,7 @@ export {
25616
25632
  D_ as UXTable,
25617
25633
  Xf as UXTabset,
25618
25634
  Gg as UXVideo,
25619
- HF as UploadService,
25635
+ qF as UploadService,
25620
25636
  XD as UxConfirmModal,
25621
25637
  kF as UxContentModal,
25622
25638
  WD as UxModal,