quasar-ui-danx 0.4.86 → 0.4.88

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/danx.es.js CHANGED
@@ -3098,7 +3098,7 @@ const _p = { class: "flex-grow" }, mp = {
3098
3098
  vt(() => {
3099
3099
  r.modelValue && (a.value = r.modelValue);
3100
3100
  }), o(() => {
3101
- a.value.some((f) => f.progress < 1) && n("uploading");
3101
+ a.value.some((f) => f.progress < 1) && n("uploading"), n("update:model-value", a.value);
3102
3102
  }), s(() => {
3103
3103
  n("update:model-value", a.value), n("complete");
3104
3104
  });
@@ -11295,7 +11295,7 @@ const Hw = {
11295
11295
  columns: {},
11296
11296
  rowsPerPageOptions: { default: () => [10, 25, 50, 100] },
11297
11297
  summaryColSpan: { default: null },
11298
- selection: { default: "multiple" }
11298
+ selection: { default: void 0 }
11299
11299
  },
11300
11300
  emits: ["update:selected-rows", "update:pagination"],
11301
11301
  setup(t) {
@@ -11334,7 +11334,7 @@ const Hw = {
11334
11334
  F(k(Vm), {
11335
11335
  ref_key: "actionTable",
11336
11336
  ref: n,
11337
- selected: a.selectedRows,
11337
+ selected: a.selectedRows || [],
11338
11338
  pagination: a.pagination,
11339
11339
  columns: r.value,
11340
11340
  loading: a.loadingList || a.loadingSummary,
@@ -11357,18 +11357,18 @@ const Hw = {
11357
11357
  ], !0)
11358
11358
  ]),
11359
11359
  "top-row": N(() => {
11360
- var d;
11360
+ var d, f;
11361
11361
  return [
11362
11362
  s.value ? (h(), I(jx, {
11363
11363
  key: 0,
11364
11364
  label: a.label,
11365
11365
  "item-count": ((d = a.summary) == null ? void 0 : d.count) || 0,
11366
- "selected-count": a.selectedRows.length,
11366
+ "selected-count": (f = a.selectedRows) == null ? void 0 : f.length,
11367
11367
  "sticky-colspan": a.summaryColSpan,
11368
11368
  loading: a.loadingSummary,
11369
11369
  summary: a.summary,
11370
11370
  columns: r.value,
11371
- onClear: u[0] || (u[0] = (f) => a.$emit("update:selected-rows", []))
11371
+ onClear: u[0] || (u[0] = (_) => a.$emit("update:selected-rows", []))
11372
11372
  }, null, 8, ["label", "item-count", "selected-count", "sticky-colspan", "loading", "summary", "columns"])) : D("", !0)
11373
11373
  ];
11374
11374
  }),
@@ -11404,7 +11404,7 @@ const Hw = {
11404
11404
  ], 2);
11405
11405
  };
11406
11406
  }
11407
- }), Kx = /* @__PURE__ */ Ht(Yx, [["__scopeId", "data-v-209b8084"]]), Qx = { class: "dx-action-toolbar flex items-center" }, Xx = { class: "flex-grow px-6" }, Jx = { key: 0 }, e3 = { class: "py-3 flex items-center flex-nowrap" }, t3 = /* @__PURE__ */ Q({
11407
+ }), Kx = /* @__PURE__ */ Ht(Yx, [["__scopeId", "data-v-a4d0792f"]]), Qx = { class: "dx-action-toolbar flex items-center" }, Xx = { class: "flex-grow px-6" }, Jx = { key: 0 }, e3 = { class: "py-3 flex items-center flex-nowrap" }, t3 = /* @__PURE__ */ Q({
11408
11408
  __name: "ActionToolbar",
11409
11409
  props: {
11410
11410
  title: {},
@@ -26506,41 +26506,44 @@ function sI(t) {
26506
26506
  });
26507
26507
  }
26508
26508
  function D9(t) {
26509
- const e = H([]), n = H(null), r = H(null), s = (d) => {
26510
- e.value = [...e.value, ...d.target.files], new Ga(d.target.files, t).prepare().onProgress(({ file: f }) => {
26511
- f && i(f);
26512
- }).onComplete(({ file: f, uploadedFile: _ }) => {
26513
- f && i(f, _);
26514
- }).onError(({ file: f, error: _ }) => {
26515
- console.error("Failed to upload", f, _), dt.error(`Failed to upload ${f.name}: ${_}`);
26509
+ const e = H([]), n = H(null), r = H(null), s = (f) => {
26510
+ e.value = [...e.value, ...f.target.files], i(), new Ga(f.target.files, t).prepare().onProgress(({ file: _ }) => {
26511
+ _ && o(_);
26512
+ }).onComplete(({ file: _, uploadedFile: p }) => {
26513
+ _ && o(_, p);
26514
+ }).onError(({ file: _, error: p }) => {
26515
+ console.error("Failed to upload", _, p), dt.error(`Failed to upload ${_.name}: ${p}`);
26516
26516
  }).onAllComplete(() => {
26517
26517
  n.value && n.value({
26518
26518
  file: e.value[0],
26519
26519
  uploadedFile: e.value[0]
26520
- }), r.value && r.value(e.value);
26520
+ }), i();
26521
26521
  }).upload();
26522
26522
  };
26523
- function i(d, f = null) {
26524
- const _ = e.value.findIndex((p) => p.id === d.id);
26525
- _ !== -1 && e.value.splice(_, 1, f || d), r.value && r.value(e.value);
26523
+ function i() {
26524
+ r.value && r.value(e.value);
26525
+ }
26526
+ function o(f, _ = null) {
26527
+ const p = e.value.findIndex((m) => m.id === f.id);
26528
+ p !== -1 && e.value.splice(p, 1, _ || f), i();
26526
26529
  }
26527
26530
  return {
26528
26531
  clearUploadedFiles: () => {
26529
- e.value = [], r.value && r.value(e.value), n.value && n.value({ file: null, uploadedFile: null });
26532
+ e.value = [], i(), n.value && n.value({ file: null, uploadedFile: null });
26530
26533
  },
26531
- onRemove: (d) => {
26532
- const f = e.value.findIndex((_) => _.id === d.id);
26533
- f !== -1 && e.value.splice(f, 1), r.value && r.value(e.value), n.value && n.value({ file: d, uploadedFile: d });
26534
+ onRemove: (f) => {
26535
+ const _ = e.value.findIndex((p) => p.id === f.id);
26536
+ _ !== -1 && e.value.splice(_, 1), i(), n.value && n.value({ file: f, uploadedFile: f });
26534
26537
  },
26535
- onComplete: (d) => {
26536
- n.value = d;
26538
+ onComplete: (f) => {
26539
+ n.value = f;
26537
26540
  },
26538
- onFilesChange: (d) => {
26539
- r.value = d;
26541
+ onFilesChange: (f) => {
26542
+ r.value = f;
26540
26543
  },
26541
- onDrop: (d) => {
26542
- var f;
26543
- s({ target: { files: (f = d.dataTransfer) == null ? void 0 : f.files } });
26544
+ onDrop: (f) => {
26545
+ var _;
26546
+ s({ target: { files: (_ = f.dataTransfer) == null ? void 0 : _.files } });
26544
26547
  },
26545
26548
  onFilesSelected: s,
26546
26549
  uploadedFiles: e
@@ -26781,7 +26784,7 @@ function lI(t, e = "") {
26781
26784
  function km(t, e = "") {
26782
26785
  return Object.entries(t).map(([n, r]) => typeof r == "object" ? km(r, `${e}${n}-`) : `--${e}${n}: ${r}`).join(";");
26783
26786
  }
26784
- const B9 = "0.4.86", R9 = {
26787
+ const B9 = "0.4.88", R9 = {
26785
26788
  version: B9
26786
26789
  }, { version: U9 } = R9;
26787
26790
  function aI() {