@fewangsit/wangsvue-fats 1.0.1-alpha.68 → 1.0.1-alpha.69

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 (78) hide show
  1. package/animation/index.es.js +9 -8
  2. package/assetinfo/index.d.ts +5 -4
  3. package/assetinfo/index.es.js +113 -97
  4. package/backgroundimagecropper/index.es.js +14 -12
  5. package/button/index.es.js +58 -48
  6. package/buttonbulkaction/index.es.js +67 -59
  7. package/buttondownload/index.es.js +18 -18
  8. package/buttonradio/index.es.js +11 -11
  9. package/buttonscan/index.es.js +1 -1
  10. package/buttonsearch/index.es.js +14 -14
  11. package/buttonselectuser/index.es.js +29 -29
  12. package/checkbox/index.es.js +5 -5
  13. package/config/defaultProps.es.js +3 -4
  14. package/datatable/index.es.js +470 -465
  15. package/datepicker/index.es.js +17 -17
  16. package/daypicker/index.es.js +21 -21
  17. package/dialog/index.es.js +17 -15
  18. package/dialogbasictransferlog/index.es.js +89 -89
  19. package/dialogconfirm/index.es.js +33 -33
  20. package/dialogdamagelog/index.es.js +89 -89
  21. package/dialogform/index.es.js +16 -16
  22. package/dialogfulltransferlog/index.es.js +96 -96
  23. package/dialoglinkedasset/index.es.js +48 -48
  24. package/dialogprintqr/index.es.js +70 -70
  25. package/dialogreportdamage/index.es.js +57 -57
  26. package/dialogreportmissing/index.es.js +94 -86
  27. package/dialogselecttree/index.es.js +18 -16
  28. package/dialogselectuser/index.es.js +16 -16
  29. package/directives/index.d.ts +1 -0
  30. package/directives/index.es.js +1 -0
  31. package/directives/safeHtml.d.ts +16 -0
  32. package/directives/safeHtml.es.js +12 -0
  33. package/disposalreport/index.es.js +1 -1
  34. package/disposalreportbulkaction/index.es.js +40 -41
  35. package/disposalreportdialogselectasset/index.es.js +72 -72
  36. package/disposalreporttable/index.es.js +108 -108
  37. package/disposalreporttablefilter/index.es.js +16 -17
  38. package/dropdown/index.es.js +120 -117
  39. package/fieldwrapper/index.es.js +7 -7
  40. package/fileupload/index.es.js +35 -31
  41. package/hardwaresync/index.es.js +12 -12
  42. package/headercell/index.es.js +4 -4
  43. package/icon/index.es.js +26 -25
  44. package/imagecompressor/index.es.js +143 -143
  45. package/imageinputinfo/index.es.js +13 -13
  46. package/inlinemessage/index.es.js +12 -12
  47. package/inputbadge/index.es.js +42 -43
  48. package/inputnumber/index.es.js +7 -7
  49. package/inputpassword/index.es.js +9 -9
  50. package/inputrangenumber/index.es.js +16 -16
  51. package/inputsearch/index.es.js +18 -18
  52. package/inputtext/index.es.js +33 -33
  53. package/litedropdown/index.es.js +48 -40
  54. package/menuitem/index.es.js +27 -26
  55. package/multirow/index.es.js +16 -16
  56. package/multiselect/index.es.js +86 -83
  57. package/package.json +1 -1
  58. package/plugins/basei18n.d.ts +2 -2
  59. package/plugins/basei18n.es.js +48 -42
  60. package/stats.html +1 -1
  61. package/style.css +1 -1
  62. package/tabmenu/index.es.js +14 -9
  63. package/tagtype/index.es.js +33 -30
  64. package/textarea/index.es.js +3 -3
  65. package/toggledarkmode/store/index.d.ts +7 -0
  66. package/toggleswitch/index.es.js +3 -3
  67. package/treesearchinput/index.es.js +11 -11
  68. package/username/index.es.js +39 -39
  69. package/utils/baseToast.util.es.js +23 -22
  70. package/utils/index.es.js +1 -2
  71. package/utils/textFormatter.util.d.ts +32 -0
  72. package/utils/textFormatter.util.es.js +38 -10
  73. package/validatormessage/index.es.js +1 -1
  74. package/vendor/dompurify/dist/purify.es.es.js +553 -0
  75. package/wangsvue-fats.d.ts +2 -1
  76. package/wangsvue-fats.es.js +190 -186
  77. package/wangsvue-fats.esm.browser.js +17750 -17086
  78. package/wangsvue-fats.system.js +73 -72
@@ -1,4 +1,4 @@
1
- import { defineComponent as n, createElementBlock as t, openBlock as o, normalizeClass as c, createElementVNode as r, normalizeProps as p, guardReactiveProps as i, createBlock as s, createCommentVNode as a, createTextVNode as d, toDisplayString as f } from "vue";
1
+ import { defineComponent as n, createElementBlock as t, openBlock as o, normalizeClass as p, createElementVNode as r, normalizeProps as c, guardReactiveProps as i, createBlock as s, createCommentVNode as a, createTextVNode as d, toDisplayString as f } from "vue";
2
2
  import { _ as l } from "../icon/index.es.js";
3
3
  const m = ["colspan", "rowspan"], u = { class: "flex" }, k = /* @__PURE__ */ n({
4
4
  __name: "HeaderCell",
@@ -11,13 +11,13 @@ const m = ["colspan", "rowspan"], u = { class: "flex" }, k = /* @__PURE__ */ n({
11
11
  },
12
12
  setup(y) {
13
13
  return (e, h) => (o(), t("th", {
14
- class: c([e.col.headerClass, e.col.class]),
14
+ class: p([e.col.headerClass, e.col.class]),
15
15
  colspan: e.col.colspan,
16
16
  rowspan: e.col.rowspan ?? e.defaultHeaderRowSpan
17
17
  }, [
18
- r("span", p(i(e.preset.headercellcontent)), [
18
+ r("span", c(i(e.preset.headercellcontent)), [
19
19
  r("span", u, [
20
- d(f(e.col.header) + " ", 1),
20
+ d(f(e.$t(e.col.header)) + " ", 1),
21
21
  e.col.info ? (o(), s(l, {
22
22
  key: 0,
23
23
  info: e.col.info,
package/icon/index.es.js CHANGED
@@ -1,5 +1,6 @@
1
- import { defineComponent as c, computed as d, resolveDirective as f, createElementBlock as t, openBlock as r, Fragment as v, withDirectives as i, createCommentVNode as n, mergeProps as a } from "vue";
2
- const g = /* @__PURE__ */ c({
1
+ import { defineComponent as m, computed as c, resolveDirective as f, createElementBlock as t, openBlock as r, Fragment as k, withDirectives as a, createCommentVNode as n, mergeProps as l } from "vue";
2
+ import { u as g } from "../plugins/basei18n.es.js";
3
+ const P = /* @__PURE__ */ m({
3
4
  __name: "Icon",
4
5
  props: {
5
6
  icon: {},
@@ -8,9 +9,9 @@ const g = /* @__PURE__ */ c({
8
9
  tooltipPos: { default: "bottom" },
9
10
  class: { default: void 0 }
10
11
  },
11
- setup(u) {
12
- const l = u, p = (() => {
13
- switch (l.severity) {
12
+ setup(p) {
13
+ const u = p, { t: d } = g(), v = (() => {
14
+ switch (u.severity) {
14
15
  case "primary":
15
16
  return "text-primary-500 dark:text-primary-300";
16
17
  case "success":
@@ -24,51 +25,51 @@ const g = /* @__PURE__ */ c({
24
25
  default:
25
26
  return "inherit dark:inherit";
26
27
  }
27
- })(), o = d(() => [
28
+ })(), o = c(() => [
28
29
  "icon",
29
- `ic-${l.icon}`,
30
- p,
30
+ `ic-${u.icon}`,
31
+ v,
31
32
  "cursor-pointer !shrink-0"
32
- ]);
33
- return (e, m) => {
34
- const s = f("tooltip");
35
- return r(), t(v, null, [
36
- e.tooltipPos === "top" ? i((r(), t("i", a({ key: 0 }, e.$attrs, {
33
+ ]), s = c(() => d(u.info));
34
+ return (e, y) => {
35
+ const i = f("tooltip");
36
+ return r(), t(k, null, [
37
+ e.tooltipPos === "top" ? a((r(), t("i", l({ key: 0 }, e.$attrs, {
37
38
  class: [...o.value, e.$props.class]
38
39
  }), null, 16)), [
39
40
  [
40
- s,
41
- e.info,
41
+ i,
42
+ s.value,
42
43
  void 0,
43
44
  { top: !0 }
44
45
  ]
45
46
  ]) : n("", !0),
46
- e.tooltipPos === "bottom" ? i((r(), t("i", a({ key: 1 }, e.$attrs, {
47
+ e.tooltipPos === "bottom" ? a((r(), t("i", l({ key: 1 }, e.$attrs, {
47
48
  class: [...o.value, e.$props.class]
48
49
  }), null, 16)), [
49
50
  [
50
- s,
51
- e.info,
51
+ i,
52
+ s.value,
52
53
  void 0,
53
54
  { bottom: !0 }
54
55
  ]
55
56
  ]) : n("", !0),
56
- e.tooltipPos === "right" ? i((r(), t("i", a({ key: 2 }, e.$attrs, {
57
+ e.tooltipPos === "right" ? a((r(), t("i", l({ key: 2 }, e.$attrs, {
57
58
  class: [...o.value, e.$props.class]
58
59
  }), null, 16)), [
59
60
  [
60
- s,
61
- e.info,
61
+ i,
62
+ s.value,
62
63
  void 0,
63
64
  { right: !0 }
64
65
  ]
65
66
  ]) : n("", !0),
66
- e.tooltipPos === "left" ? i((r(), t("i", a({ key: 3 }, e.$attrs, {
67
+ e.tooltipPos === "left" ? a((r(), t("i", l({ key: 3 }, e.$attrs, {
67
68
  class: [...o.value, e.$props.class]
68
69
  }), null, 16)), [
69
70
  [
70
- s,
71
- e.info,
71
+ i,
72
+ s.value,
72
73
  void 0,
73
74
  { left: !0 }
74
75
  ]
@@ -78,5 +79,5 @@ const g = /* @__PURE__ */ c({
78
79
  }
79
80
  });
80
81
  export {
81
- g as _
82
+ P as _
82
83
  };