@avilang/practical-ui 0.4.0 → 0.4.1

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.
Files changed (2) hide show
  1. package/dist/index.js +41 -40
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -345,7 +345,7 @@ const I0 = "n", Do = `.${I0}-`, L0 = "__", N0 = "--", Iu = Mu(), Lu = x0({
345
345
  Iu.use(Lu);
346
346
  const {
347
347
  c: E,
348
- find: gB
348
+ find: pB
349
349
  } = Iu, {
350
350
  cB: $,
351
351
  cE: M,
@@ -36623,7 +36623,7 @@ const io = /* @__PURE__ */ Object.assign({
36623
36623
  ], 4))), 128))
36624
36624
  ], 512));
36625
36625
  }
36626
- }), Xk = { class: "p-form-item-label__text" }, $u = {
36626
+ }), Xk = ["title"], Yk = { class: "p-form-item-label__text" }, $u = {
36627
36627
  __name: "form-item-label",
36628
36628
  props: {
36629
36629
  label: { type: String },
@@ -36638,10 +36638,11 @@ const io = /* @__PURE__ */ Object.assign({
36638
36638
  }), (o, i) => (Ee(), xt("span", {
36639
36639
  ref: "label",
36640
36640
  class: kt(["p-form-item-label"]),
36641
- style: _t(n.value)
36641
+ style: _t(n.value),
36642
+ title: n.value !== "" ? e.label : ""
36642
36643
  }, [
36643
- Nn("span", Xk, gn(e.label), 1)
36644
- ], 4));
36644
+ Nn("span", Yk, gn(e.label), 1)
36645
+ ], 12, Xk));
36645
36646
  }
36646
36647
  }, kl = /* @__PURE__ */ Object.assign({
36647
36648
  name: "PInputIdentifier",
@@ -36857,16 +36858,16 @@ const io = /* @__PURE__ */ Object.assign({
36857
36858
  _: 1
36858
36859
  }, 8, ["style", "size", "disabled", "placeholder", "value", "options", "multiple", "cascade", "clearable", "check-strategy", "show-path", "remote", "filterable", "clear-filter-after-select", "menu-props", "children-field", "disabled-field", "value-field", "label-field", "max-tag-count", "on-load", "onUpdate:value", "onInput"]));
36859
36860
  }
36860
- }), Yk = {
36861
+ }), Zk = {
36861
36862
  key: 1,
36862
36863
  style: { flex: "1" },
36863
36864
  class: "p-form-inline-item-placeholder"
36864
- }, Zk = {
36865
+ }, Jk = {
36865
36866
  key: 2,
36866
36867
  autocomplete: "off",
36867
36868
  type: "submit",
36868
36869
  style: { display: "none" }
36869
- }, Jk = /* @__PURE__ */ Object.assign({
36870
+ }, Qk = /* @__PURE__ */ Object.assign({
36870
36871
  name: "PForm",
36871
36872
  inheritAttrs: !1
36872
36873
  }, {
@@ -37212,16 +37213,16 @@ const io = /* @__PURE__ */ Object.assign({
37212
37213
  ]),
37213
37214
  key: "0"
37214
37215
  } : void 0
37215
- ]), 1032, ["style", "label", "label-style", "content-style", "path", "feedback-class", "show-require-mark"])) : (Ee(), xt("div", Yk))
37216
+ ]), 1032, ["style", "label", "label-style", "content-style", "path", "feedback-class", "show-require-mark"])) : (Ee(), xt("div", Zk))
37216
37217
  ], 64))), 128))
37217
37218
  ], 2))), 128)) : Dt("", !0),
37218
- e.virtualSubmit ? (Ee(), xt("button", Zk, "virtual button")) : Dt("", !0),
37219
+ e.virtualSubmit ? (Ee(), xt("button", Jk, "virtual button")) : Dt("", !0),
37219
37220
  nn(S.$slots, "default")
37220
37221
  ]),
37221
37222
  _: 3
37222
37223
  }, 8, ["class", "show-label", "label-placement", "label-width", "show-require-mark", "label-align", "model", "rules", "inline", "show-feedback", "onSubmit"]));
37223
37224
  }
37224
- }), Qk = /* @__PURE__ */ Object.assign({
37225
+ }), eB = /* @__PURE__ */ Object.assign({
37225
37226
  name: "PInputNumber",
37226
37227
  inheritAttrs: !1
37227
37228
  }, {
@@ -37349,7 +37350,7 @@ const io = /* @__PURE__ */ Object.assign({
37349
37350
  onBlur: B
37350
37351
  }, null, 8, ["class", "placeholder", "size", "maxlength", "disabled", "readonly", "clearable", "modelValue"]));
37351
37352
  }
37352
- }), eB = /* @__PURE__ */ Object.assign({
37353
+ }), tB = /* @__PURE__ */ Object.assign({
37353
37354
  name: "PRadio",
37354
37355
  inheritAttrs: !1
37355
37356
  }, {
@@ -37382,7 +37383,7 @@ const io = /* @__PURE__ */ Object.assign({
37382
37383
  _: 3
37383
37384
  }, 8, ["class", "style", "checked", "size", "disabled", "value", "on-update:checked"]));
37384
37385
  }
37385
- }), tB = /* @__PURE__ */ Object.assign({
37386
+ }), nB = /* @__PURE__ */ Object.assign({
37386
37387
  name: "PCheckbox",
37387
37388
  inheritAttrs: !1
37388
37389
  }, {
@@ -37421,7 +37422,7 @@ const io = /* @__PURE__ */ Object.assign({
37421
37422
  _: 3
37422
37423
  }, 8, ["class", "style", "checked", "size", "disabled", "value", "on-update:checked"]));
37423
37424
  }
37424
- }), nB = /* @__PURE__ */ Object.assign({
37425
+ }), rB = /* @__PURE__ */ Object.assign({
37425
37426
  name: "PCheckboxGroup",
37426
37427
  inheritAttrs: !1
37427
37428
  }, {
@@ -37447,7 +37448,7 @@ const io = /* @__PURE__ */ Object.assign({
37447
37448
  _: 3
37448
37449
  }, 8, ["class", "style", "value", "on-update:value"]));
37449
37450
  }
37450
- }), rB = /* @__PURE__ */ Object.assign({
37451
+ }), oB = /* @__PURE__ */ Object.assign({
37451
37452
  name: "PRadioGroup",
37452
37453
  inheritAttrs: !1
37453
37454
  }, {
@@ -37473,7 +37474,7 @@ const io = /* @__PURE__ */ Object.assign({
37473
37474
  _: 3
37474
37475
  }, 8, ["class", "style", "value", "on-update:value"]));
37475
37476
  }
37476
- }), oB = /* @__PURE__ */ Q((e, {
37477
+ }), iB = /* @__PURE__ */ Q((e, {
37477
37478
  expose: t
37478
37479
  }) => {
37479
37480
  const n = {
@@ -37502,7 +37503,7 @@ const io = /* @__PURE__ */ Object.assign({
37502
37503
  }, {
37503
37504
  name: "PDataTable",
37504
37505
  inheritAttrs: !0
37505
- }), iB = {
37506
+ }), aB = {
37506
37507
  __name: "popconfirm-action",
37507
37508
  props: {
37508
37509
  positiveText: { type: String, default: "" },
@@ -37545,7 +37546,7 @@ const io = /* @__PURE__ */ Object.assign({
37545
37546
  }, 8, ["type"])) : Dt("", !0)
37546
37547
  ], 64));
37547
37548
  }
37548
- }, aB = /* @__PURE__ */ Q((e, {
37549
+ }, lB = /* @__PURE__ */ Q((e, {
37549
37550
  emit: t
37550
37551
  }) => {
37551
37552
  const n = zl(), o = L(), i = () => {
@@ -37563,7 +37564,7 @@ const io = /* @__PURE__ */ Object.assign({
37563
37564
  }, {
37564
37565
  default: n.default,
37565
37566
  trigger: n.trigger,
37566
- action: () => c(iB, {
37567
+ action: () => c(aB, {
37567
37568
  positiveText: e.positiveText,
37568
37569
  negativeText: e.negativeText,
37569
37570
  type: e.type,
@@ -37601,7 +37602,7 @@ const io = /* @__PURE__ */ Object.assign({
37601
37602
  default: "max-width:300px"
37602
37603
  }
37603
37604
  }
37604
- }), lB = /* @__PURE__ */ Object.assign({
37605
+ }), sB = /* @__PURE__ */ Object.assign({
37605
37606
  name: "PPagination",
37606
37607
  inheritAttrs: !1
37607
37608
  }, {
@@ -37667,7 +37668,7 @@ const io = /* @__PURE__ */ Object.assign({
37667
37668
  * (c) 2021 Eduardo San Martin Morote
37668
37669
  * @license MIT
37669
37670
  */
37670
- function sB(e, t = 200) {
37671
+ function dB(e, t = 200) {
37671
37672
  const n = L(!1), o = L(!1), i = A(() => !n.value && !o.value), a = L(!1), s = L(), l = L();
37672
37673
  let d;
37673
37674
  return Ze(() => ne(e), (u) => {
@@ -37715,10 +37716,10 @@ const Wh = ({ delay: e = 300, minPendingTime: t = 500, loadingValue: n = !1 } =
37715
37716
  ), Hi(() => {
37716
37717
  d = null, a();
37717
37718
  }), { loading: l, waiting: s, setLoadingStatus: u };
37718
- }, dB = {
37719
+ }, uB = {
37719
37720
  key: 1,
37720
37721
  class: "p-promised-loading"
37721
- }, uB = /* @__PURE__ */ Object.assign({
37722
+ }, cB = /* @__PURE__ */ Object.assign({
37722
37723
  name: "PPromised",
37723
37724
  inheritAttrs: !1
37724
37725
  }, {
@@ -37745,7 +37746,7 @@ const Wh = ({ delay: e = 300, minPendingTime: t = 500, loadingValue: n = !1 } =
37745
37746
  }), o = A(() => {
37746
37747
  let C = (e.nilClass || "").trim();
37747
37748
  return e.nilType === "border" && (C += " p-promised-empty-border"), e.nilType === "line" && (C += " p-promised-empty-line"), C.trim();
37748
- }), i = Kn(), a = te(() => e.promise), { data: s, error: l, isPending: d, isDelayElapsed: u, isResolved: f, isRejected: h } = sB(a, 0), { loading: p, waiting: x } = Wh(), v = A(() => !p.value && !d.value && !l.value && m(s.value));
37749
+ }), i = Kn(), a = te(() => e.promise), { data: s, error: l, isPending: d, isDelayElapsed: u, isResolved: f, isRejected: h } = dB(a, 0), { loading: p, waiting: x } = Wh(), v = A(() => !p.value && !d.value && !l.value && m(s.value));
37749
37750
  Ze(
37750
37751
  () => d.value && u.value,
37751
37752
  (C) => {
@@ -37781,7 +37782,7 @@ const Wh = ({ delay: e = 300, minPendingTime: t = 500, loadingValue: n = !1 } =
37781
37782
  data: ne(s),
37782
37783
  isEmpty: v.value
37783
37784
  }) : Dt("", !0),
37784
- ne(p) ? (Ee(), xt("div", dB, [
37785
+ ne(p) ? (Ee(), xt("div", uB, [
37785
37786
  Kt(ne(Ah), {
37786
37787
  size: t.value,
37787
37788
  style: _t(n.value)
@@ -37812,7 +37813,7 @@ const Wh = ({ delay: e = 300, minPendingTime: t = 500, loadingValue: n = !1 } =
37812
37813
  }, null, 8, ["class", "description"])) : Dt("", !0)
37813
37814
  ], 6));
37814
37815
  }
37815
- }), cB = /* @__PURE__ */ Object.assign({
37816
+ }), fB = /* @__PURE__ */ Object.assign({
37816
37817
  name: "PDrawer",
37817
37818
  inheritAttrs: !1
37818
37819
  }, {
@@ -37894,7 +37895,7 @@ const Wh = ({ delay: e = 300, minPendingTime: t = 500, loadingValue: n = !1 } =
37894
37895
  }, 8, ["class", "show", "width", "height", "placement", "mask-closable"]));
37895
37896
  }
37896
37897
  });
37897
- function pB(e = ["loadingBar", "message"], t = {}) {
37898
+ function mB(e = ["loadingBar", "message"], t = {}) {
37898
37899
  var i;
37899
37900
  const { loadingBar: n, message: o } = xh(e, {
37900
37901
  configProviderProps: { inlineThemeDisabled: !0 },
@@ -37980,9 +37981,9 @@ const Vh = {
37980
37981
  }, 8, ["type", "loading"])) : Dt("", !0)
37981
37982
  ], 64));
37982
37983
  }
37983
- }, { dialog: fB } = xh(["dialog"], {
37984
+ }, { dialog: hB } = xh(["dialog"], {
37984
37985
  configProviderProps: { inlineThemeDisabled: !0 }
37985
- }), hB = fB;
37986
+ }), vB = hB;
37986
37987
  function _h(e) {
37987
37988
  return typeof e == "string" ? function() {
37988
37989
  return c("p", { innerHTML: e });
@@ -37993,7 +37994,7 @@ function _h(e) {
37993
37994
  );
37994
37995
  } : e;
37995
37996
  }
37996
- const mB = () => {
37997
+ const bB = () => {
37997
37998
  let e = null, t = null, n = null, o = null;
37998
37999
  const i = rh(), a = (u = {}, f = { width: 430 }, h) => {
37999
38000
  const p = {
@@ -38053,7 +38054,7 @@ const mB = () => {
38053
38054
  error: d
38054
38055
  };
38055
38056
  };
38056
- function bB() {
38057
+ function xB() {
38057
38058
  let e = null, t = null, n = null, o = null;
38058
38059
  const i = (a = {}, s = { width: 430 }, l) => {
38059
38060
  const d = {
@@ -38089,7 +38090,7 @@ function bB() {
38089
38090
  });
38090
38091
  }), d.content = _h(a.content), d.onClose = function() {
38091
38092
  a.onClose && a.onClose(), e && e.destroy(), t && t.destroy(), n && n.destroy(), o && o.destroy(), e = null, t = null, n = null, o = null;
38092
- }, hB.create(d);
38093
+ }, vB.create(d);
38093
38094
  };
38094
38095
  return {
38095
38096
  open: function(a, s) {
@@ -38113,7 +38114,7 @@ function bB() {
38113
38114
  }
38114
38115
  };
38115
38116
  }
38116
- const xB = () => {
38117
+ const yB = () => {
38117
38118
  const e = sh();
38118
38119
  return { open: (n = {}, o = {}) => {
38119
38120
  const i = {
@@ -38158,19 +38159,19 @@ const xB = () => {
38158
38159
  }
38159
38160
  };
38160
38161
  } };
38161
- }, yB = {
38162
+ }, CB = {
38162
38163
  install: (e, t = {}) => {
38163
38164
  const { prefix: n = "p" } = t;
38164
- e.component(`${n}-practical`, Fk), e.component(`${n}-search`, Gk), e.component(`${n}-form`, Jk), e.component(`${n}-input`, io), e.component(`${n}-input-number`, Qk), e.component(`${n}-input-identifier`, kl), e.component(`${n}-select`, ji), e.component(`${n}-cascader`, Rl), e.component(`${n}-switch`, Bl), e.component(`${n}-radio`, eB), e.component(`${n}-radio-group`, rB), e.component(`${n}-checkbox`, tB), e.component(`${n}-checkbox-group`, nB), e.component(`${n}-button`, Ar), e.component(`${n}-data-table`, oB), e.component(`${n}-popconfirm`, aB), e.component(`${n}-pagination`, lB), e.component(`${n}-promised`, uB), e.component(`${n}-drawer`, cB), e.component(`${n}-icon-wrapper`, E4), e.component(`${n}-icon`, jo), e.component(`${n}-input-group`, zw), e.component(`${n}-input-group-label`, Ew), e.component(`${n}-popover`, Nr), e.component(`${n}-spin`, Ah), e.component(`${n}-collapse`, B2), e.component(`${n}-collapse-item`, F2), e.component(`${n}-dropdown`, Zf), e.component(`${n}-tooltip`, gs), e.component(`${n}-divider`, s5), e.component(`${n}-empty`, Un), e.component(`${n}-upload`, Pk), e.component(`${n}-upload-trigger`, ys), e.component(`${n}-upload-file-list`, Mh), e.component(`${n}-upload-dragger`, Eh), e.component(`${n}-progress`, zh), e.component(`${n}-breadcrumb`, _w), e.component(`${n}-breadcrumb-item`, qw);
38165
+ e.component(`${n}-practical`, Fk), e.component(`${n}-search`, Gk), e.component(`${n}-form`, Qk), e.component(`${n}-input`, io), e.component(`${n}-input-number`, eB), e.component(`${n}-input-identifier`, kl), e.component(`${n}-select`, ji), e.component(`${n}-cascader`, Rl), e.component(`${n}-switch`, Bl), e.component(`${n}-radio`, tB), e.component(`${n}-radio-group`, oB), e.component(`${n}-checkbox`, nB), e.component(`${n}-checkbox-group`, rB), e.component(`${n}-button`, Ar), e.component(`${n}-data-table`, iB), e.component(`${n}-popconfirm`, lB), e.component(`${n}-pagination`, sB), e.component(`${n}-promised`, cB), e.component(`${n}-drawer`, fB), e.component(`${n}-icon-wrapper`, E4), e.component(`${n}-icon`, jo), e.component(`${n}-input-group`, zw), e.component(`${n}-input-group-label`, Ew), e.component(`${n}-popover`, Nr), e.component(`${n}-spin`, Ah), e.component(`${n}-collapse`, B2), e.component(`${n}-collapse-item`, F2), e.component(`${n}-dropdown`, Zf), e.component(`${n}-tooltip`, gs), e.component(`${n}-divider`, s5), e.component(`${n}-empty`, Un), e.component(`${n}-upload`, Pk), e.component(`${n}-upload-trigger`, ys), e.component(`${n}-upload-file-list`, Mh), e.component(`${n}-upload-dragger`, Eh), e.component(`${n}-progress`, zh), e.component(`${n}-breadcrumb`, _w), e.component(`${n}-breadcrumb-item`, qw);
38165
38166
  }
38166
38167
  };
38167
38168
  export {
38168
- pB as createDiscreteFn,
38169
+ mB as createDiscreteFn,
38169
38170
  er as debounce,
38170
- yB as default,
38171
- bB as dialogDiscrete,
38171
+ CB as default,
38172
+ xB as dialogDiscrete,
38172
38173
  Cs as throttle,
38173
38174
  Wh as useDelayLoading,
38174
- mB as useDialog,
38175
- xB as useModal
38175
+ bB as useDialog,
38176
+ yB as useModal
38176
38177
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@avilang/practical-ui",
3
3
  "type": "module",
4
- "version": "0.4.0",
4
+ "version": "0.4.1",
5
5
  "description": "Practical UI components created based on vue3",
6
6
  "main": "dist/index.js",
7
7
  "files": [