@fewangsit/wangsvue-fats 1.0.1-rc.0 → 1.0.1-rc.11

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 (242) hide show
  1. package/animation/index.es.js +50 -0
  2. package/approverinfo/index.es.js +6 -6
  3. package/assetinfo/index.es.js +160 -2
  4. package/backgroundimagecropper/{BackgroundImageCropper.es.js → index.es.js} +1 -1
  5. package/badge/index.es.js +7 -7
  6. package/badgegroup/index.es.js +7 -7
  7. package/basecalendar/{BaseCalendar.es.js → index.es.js} +6 -6
  8. package/basetree/index.es.js +14 -14
  9. package/breadcrumb/index.es.js +6 -6
  10. package/button/index.es.js +118 -2
  11. package/buttonaddbyscan/index.es.js +13 -13
  12. package/buttonbulkaction/index.es.js +184 -2
  13. package/buttoncopy/index.es.js +6 -6
  14. package/buttondownload/index.es.js +15 -15
  15. package/buttonfilter/index.es.js +6 -6
  16. package/buttonradio/index.es.js +2 -2
  17. package/buttonscan/index.es.js +414 -2
  18. package/buttonsearch/index.es.js +9 -9
  19. package/buttonsearchbyscan/index.es.js +7 -7
  20. package/buttonselecttree/index.es.js +22 -22
  21. package/buttonselectuser/index.es.js +25 -25
  22. package/buttonsync/index.es.js +12 -12
  23. package/buttontoggle/index.es.js +6 -6
  24. package/buttonviewlog/index.es.js +2 -2
  25. package/calendar/index.es.js +4 -4
  26. package/card/index.es.js +4 -4
  27. package/carousel/index.es.js +7 -7
  28. package/checkbox/index.es.js +2 -2
  29. package/codesnippet/{CodeSnippet.es.js → index.es.js} +1 -1
  30. package/codesnippetadapter/{CodeSnippetAdapter.es.js → index.es.js} +1 -1
  31. package/columnlist/{ColumnList.es.js → index.es.js} +8 -8
  32. package/config/defaultProps.es.js +133 -0
  33. package/config/index.es.js +10 -218
  34. package/config/locale.es.js +85 -0
  35. package/customcolumn/index.es.js +8 -8
  36. package/datatable/index.es.js +108 -107
  37. package/datepicker/index.es.js +138 -2
  38. package/daypicker/index.es.js +6 -6
  39. package/dialog/index.es.js +4 -4
  40. package/dialogassetnamedetail/index.es.js +11 -11
  41. package/dialogbasictransferlog/{DialogBasicTransferLog.es.js → index.es.js} +17 -17
  42. package/dialogconfirm/index.es.js +17 -17
  43. package/dialogdamagelog/index.es.js +14 -14
  44. package/dialogform/index.es.js +32 -32
  45. package/dialogfulltransferlog/{DialogFullTransferLog.es.js → index.es.js} +16 -16
  46. package/dialoglinkedasset/index.es.js +9 -9
  47. package/dialogprintqr/index.es.js +332 -2
  48. package/dialogreportdamage/index.es.js +12 -12
  49. package/dialogreportmissing/index.es.js +12 -12
  50. package/dialogreporttag/index.es.js +8 -8
  51. package/dialogselecttree/index.es.js +13 -13
  52. package/dialogselectuser/index.d.ts +2 -2
  53. package/dialogselectuser/index.es.js +18 -18
  54. package/dialogselectuserfilter/{DialogSelectUserFilter.es.js → index.es.js} +2 -2
  55. package/dialogtransferlog/index.es.js +9 -9
  56. package/directives/{focus/index.es.js → focus.es.js} +2 -2
  57. package/directives/index.es.js +2 -0
  58. package/directives/tooltip.es.js +1 -0
  59. package/disposalreport/index.es.js +8 -8
  60. package/disposalreportbulkaction/{DisposalReportBulkAction.es.js → index.es.js} +9 -8
  61. package/disposalreporttable/{DisposalReportTable.es.js → index.es.js} +16 -16
  62. package/disposalreporttablefilter/{DisposalReportTableFilter.es.js → index.es.js} +5 -5
  63. package/dropdown/index.es.js +37 -37
  64. package/editor/{Editor.es.js → index.es.js} +57 -57
  65. package/editorbutton/{EditorButton.es.js → index.es.js} +1 -1
  66. package/event-bus/index.es.js +4 -3
  67. package/event-bus/mitt.es.js +53 -0
  68. package/fieldwrapper/{FieldWrapper.es.js → index.es.js} +2 -2
  69. package/fileupload/index.es.js +13 -13
  70. package/filtercontainer/index.es.js +34 -34
  71. package/form/index.es.js +23 -23
  72. package/hardwaresync/{HardwareSync.es.js → index.es.js} +42 -42
  73. package/icon/index.es.js +4 -4
  74. package/image/index.es.js +14 -14
  75. package/imagecompressor/index.es.js +14 -14
  76. package/imageinputinfo/{ImageInputInfo.es.js → index.es.js} +2 -2
  77. package/inlinemessage/index.es.js +7 -7
  78. package/inputbadge/index.es.js +14 -14
  79. package/inputcurrency/index.es.js +147 -2
  80. package/inputemail/index.es.js +4 -4
  81. package/inputnumber/index.es.js +6 -6
  82. package/inputotp/index.es.js +1 -1
  83. package/inputpassword/index.es.js +10 -10
  84. package/inputphonenumber/index.es.js +28 -28
  85. package/inputrangenumber/index.es.js +9 -9
  86. package/inputsearch/index.es.js +2 -2
  87. package/inputtext/index.es.js +11 -11
  88. package/inputurl/index.es.js +5 -5
  89. package/invisiblefield/index.es.js +8 -8
  90. package/languagedropdownoption/{LanguageDropdownOption.es.js → index.es.js} +3 -3
  91. package/languageswitcher/index.es.js +7 -7
  92. package/litedropdown/index.es.js +10 -10
  93. package/loading/index.es.js +8 -8
  94. package/mentionlist/{MentionList.es.js → index.es.js} +4 -4
  95. package/menu/index.es.js +20 -19
  96. package/menuitem/{MenuItem.es.js → index.es.js} +1 -1
  97. package/multiselect/index.es.js +27 -27
  98. package/overlaypanel/index.es.js +6 -6
  99. package/package.json +1 -5
  100. package/paginator/index.es.js +11 -11
  101. package/plugins/VueHtmlToPaper.es.js +40 -0
  102. package/{animation/Animation.es.js → plugins/WangsVue.es.js} +38 -83
  103. package/plugins/basei18n.d.ts +103 -0
  104. package/plugins/basei18n.es.js +88 -0
  105. package/plugins/{formValidation/index.es.js → formValidation.es.js} +4 -4
  106. package/plugins/i18n.d.ts +5 -102
  107. package/plugins/i18n.es.js +6 -0
  108. package/stats.html +1 -1
  109. package/steps/index.es.js +4 -4
  110. package/tabmenu/index.es.js +1 -1
  111. package/tagtype/index.es.js +6 -6
  112. package/textarea/index.es.js +5 -5
  113. package/timeline/index.es.js +5 -5
  114. package/timelinecontentbytype/{TimelineContentByType.es.js → index.es.js} +9 -9
  115. package/toast/index.es.js +3 -3
  116. package/toggleswitch/index.es.js +2 -2
  117. package/transactionroles/index.es.js +2 -2
  118. package/tree/index.es.js +117 -107
  119. package/treenode/{TreeNode.es.js → index.es.js} +4 -4
  120. package/treesearchinput/{TreeSearchInput.es.js → index.es.js} +4 -4
  121. package/username/index.es.js +20 -20
  122. package/userwithicon/index.es.js +4 -4
  123. package/utils/baseToast.util.es.js +1 -1
  124. package/utils/date.util.es.js +2 -2
  125. package/utils/index.es.js +3 -36
  126. package/utils/role.util.es.js +2 -2
  127. package/validatormessage/index.es.js +4 -4
  128. package/vendor/highlight.js/es/core.es.js +1 -1
  129. package/vendor/lodash/_freeGlobal.es.js +1 -1
  130. package/vendor/simplebar-core/dist/index.es.js +1 -1
  131. package/wangsvue-fats.d.ts +1 -2
  132. package/wangsvue-fats.es.js +219 -256
  133. package/wangsvue-fats.system.js +56 -56
  134. package/approverinfo/package.json +0 -4
  135. package/assetinfo/AssetInfo.es.js +0 -179
  136. package/assetinfo/package.json +0 -4
  137. package/badge/package.json +0 -4
  138. package/badgegroup/package.json +0 -4
  139. package/basetree/package.json +0 -4
  140. package/breadcrumb/package.json +0 -4
  141. package/button/Button.es.js +0 -120
  142. package/button/package.json +0 -4
  143. package/buttonaddbyscan/package.json +0 -4
  144. package/buttonbulkaction/ButtonBulkAction.es.js +0 -238
  145. package/buttonbulkaction/package.json +0 -4
  146. package/buttoncopy/package.json +0 -4
  147. package/buttondownload/package.json +0 -4
  148. package/buttonfilter/package.json +0 -4
  149. package/buttonradio/package.json +0 -4
  150. package/buttonscan/ButtonScan.es.js +0 -416
  151. package/buttonscan/package.json +0 -4
  152. package/buttonsearch/package.json +0 -4
  153. package/buttonsearchbyscan/package.json +0 -4
  154. package/buttonselecttree/package.json +0 -4
  155. package/buttonselectuser/package.json +0 -4
  156. package/buttonsync/package.json +0 -4
  157. package/buttontoggle/package.json +0 -4
  158. package/buttonviewlog/package.json +0 -4
  159. package/calendar/package.json +0 -4
  160. package/card/package.json +0 -4
  161. package/carousel/package.json +0 -4
  162. package/checkbox/package.json +0 -4
  163. package/config/package.json +0 -4
  164. package/customcolumn/package.json +0 -4
  165. package/datatable/package.json +0 -4
  166. package/datepicker/DatePicker.es.js +0 -224
  167. package/datepicker/package.json +0 -4
  168. package/daypicker/package.json +0 -4
  169. package/dialog/package.json +0 -4
  170. package/dialogassetnamedetail/package.json +0 -4
  171. package/dialogconfirm/package.json +0 -4
  172. package/dialogdamagelog/package.json +0 -4
  173. package/dialogform/package.json +0 -4
  174. package/dialoglinkedasset/package.json +0 -4
  175. package/dialogprintqr/DialogPrintQR.es.js +0 -334
  176. package/dialogprintqr/package.json +0 -4
  177. package/dialogreportdamage/package.json +0 -4
  178. package/dialogreportmissing/package.json +0 -4
  179. package/dialogreporttag/package.json +0 -4
  180. package/dialogselecttree/package.json +0 -4
  181. package/dialogselectuser/package.json +0 -4
  182. package/dialogtransferlog/package.json +0 -4
  183. package/directives/focus/package.json +0 -4
  184. package/directives/tooltip/index.es.js +0 -4
  185. package/directives/tooltip/package.json +0 -4
  186. package/disposalreport/package.json +0 -4
  187. package/dropdown/package.json +0 -4
  188. package/event-bus/package.json +0 -4
  189. package/fileupload/package.json +0 -4
  190. package/filtercontainer/package.json +0 -4
  191. package/form/package.json +0 -4
  192. package/icon/package.json +0 -4
  193. package/image/package.json +0 -4
  194. package/imagecompressor/package.json +0 -4
  195. package/index.d.ts +0 -2
  196. package/inlinemessage/package.json +0 -4
  197. package/inputbadge/package.json +0 -4
  198. package/inputcurrency/InputCurrency.es.js +0 -150
  199. package/inputcurrency/helpers/index.es.js +0 -5
  200. package/inputcurrency/helpers/package.json +0 -4
  201. package/inputcurrency/package.json +0 -4
  202. package/inputemail/package.json +0 -4
  203. package/inputnumber/package.json +0 -4
  204. package/inputotp/package.json +0 -4
  205. package/inputpassword/package.json +0 -4
  206. package/inputphonenumber/package.json +0 -4
  207. package/inputrangenumber/package.json +0 -4
  208. package/inputsearch/package.json +0 -4
  209. package/inputtext/package.json +0 -4
  210. package/inputurl/package.json +0 -4
  211. package/invisiblefield/package.json +0 -4
  212. package/languageswitcher/package.json +0 -4
  213. package/litedropdown/package.json +0 -4
  214. package/loading/package.json +0 -4
  215. package/loading/store/index.es.js +0 -5
  216. package/loading/store/package.json +0 -4
  217. package/menu/package.json +0 -4
  218. package/multiselect/package.json +0 -4
  219. package/overlaypanel/package.json +0 -4
  220. package/paginator/package.json +0 -4
  221. package/plugins/formValidation/package.json +0 -4
  222. package/plugins/i18n/index.es.js +0 -8
  223. package/plugins/i18n/package.json +0 -4
  224. package/plugins/i18n-extension.d.ts +0 -4
  225. package/steps/package.json +0 -4
  226. package/tabmenu/package.json +0 -4
  227. package/tagtype/package.json +0 -4
  228. package/textarea/package.json +0 -4
  229. package/timeline/package.json +0 -4
  230. package/toast/package.json +0 -4
  231. package/toast/service/index.es.js +0 -5
  232. package/toast/service/package.json +0 -4
  233. package/toggleswitch/package.json +0 -4
  234. package/transactionroles/package.json +0 -4
  235. package/tree/package.json +0 -4
  236. package/username/package.json +0 -4
  237. package/userwithicon/package.json +0 -4
  238. package/utils/package.json +0 -4
  239. package/validatormessage/package.json +0 -4
  240. /package/inputgroup/{InputGroup.es.js → index.es.js} +0 -0
  241. /package/mentionsection/{MentionSection.es.js → index.es.js} +0 -0
  242. /package/multirow/{MultiRow.es.js → index.es.js} +0 -0
@@ -1,17 +1,17 @@
1
1
  import { defineComponent as z, computed as v, ref as V, shallowRef as $, watch as q, createElementBlock as R, openBlock as u, Fragment as j, createVNode as l, withCtx as S, createElementVNode as b, createCommentVNode as m, unref as J, createBlock as k, createTextVNode as O, toDisplayString as H } from "vue";
2
2
  import { DamageServices as K, AssetServices as X } from "@tagsamurai/fats-api-services";
3
- import { u as Y, _ as Z } from "../assetinfo/AssetInfo.es.js";
3
+ import { u as Y, _ as Z } from "../assetinfo/index.es.js";
4
4
  import { u as P } from "../utils/toast.util.es.js";
5
- import B from "../badge/index.es.js";
6
- import { _ as ee } from "../button/Button.es.js";
7
- import { _ as I } from "../buttonscan/ButtonScan.es.js";
8
- import te from "../dialogconfirm/index.es.js";
9
- import ae from "../dialogform/index.es.js";
10
- import se from "../icon/index.es.js";
11
- import oe from "../imagecompressor/index.es.js";
12
- import re from "../inputtext/index.es.js";
13
- import ie from "../textarea/index.es.js";
14
- import le from "../dialogreporttag/index.es.js";
5
+ import { _ as B } from "../badge/index.es.js";
6
+ import { _ as ee } from "../button/index.es.js";
7
+ import { _ as I } from "../buttonscan/index.es.js";
8
+ import { _ as te } from "../dialogconfirm/index.es.js";
9
+ import { _ as ae } from "../dialogform/index.es.js";
10
+ import { _ as se } from "../icon/index.es.js";
11
+ import { _ as oe } from "../imagecompressor/index.es.js";
12
+ import { _ as re } from "../inputtext/index.es.js";
13
+ import { _ as ie } from "../textarea/index.es.js";
14
+ import { _ as le } from "../dialogreporttag/index.es.js";
15
15
  const ne = { class: "font-bold" }, de = { class: "flex flex-col gap-3" }, ue = {
16
16
  key: 0,
17
17
  class: "flex flex-col gap-3"
@@ -236,5 +236,5 @@ const ne = { class: "font-bold" }, de = { class: "flex flex-col gap-3" }, ue = {
236
236
  }
237
237
  });
238
238
  export {
239
- Fe as default
239
+ Fe as _
240
240
  };
@@ -1,10 +1,10 @@
1
- import { defineComponent as x, computed as r, ref as k, createBlock as g, openBlock as b, withCtx as l, createElementVNode as o, createVNode as y, createTextVNode as R, toDisplayString as v } from "vue";
1
+ import { defineComponent as x, computed as r, ref as k, createBlock as f, openBlock as b, withCtx as l, createElementVNode as o, createVNode as y, createTextVNode as R, toDisplayString as v } from "vue";
2
2
  import { TrackingServices as C, MissingServices as $ } from "@tagsamurai/fats-api-services";
3
- import { u as B, _ as F } from "../assetinfo/AssetInfo.es.js";
3
+ import { u as B, _ as F } from "../assetinfo/index.es.js";
4
4
  import { u as N } from "../utils/toast.util.es.js";
5
- import A from "../dialogconfirm/index.es.js";
6
- import E from "../dialogform/index.es.js";
7
- import I from "../textarea/index.es.js";
5
+ import { _ as A } from "../dialogconfirm/index.es.js";
6
+ import { _ as E } from "../dialogform/index.es.js";
7
+ import { _ as I } from "../textarea/index.es.js";
8
8
  const V = { class: "font-bold" }, T = { class: "flex flex-col gap-3" }, j = /* @__PURE__ */ x({
9
9
  __name: "DialogReportMissing",
10
10
  props: {
@@ -18,8 +18,8 @@ const V = { class: "font-bold" }, T = { class: "flex flex-col gap-3" }, j = /* @
18
18
  submitFunction: { type: Function }
19
19
  },
20
20
  emits: ["update:visible", "reported"],
21
- setup(M, { emit: _ }) {
22
- const e = M, n = _, { setLoading: m } = B(), a = N(), p = r(() => e.visible), h = r(
21
+ setup(_, { emit: M }) {
22
+ const e = _, n = M, { setLoading: m } = B(), a = N(), p = r(() => e.visible), h = r(
23
23
  () => e.permanentlyMissing ? "Report Permanently Missing" : "Report Missing"
24
24
  ), S = r(
25
25
  () => e.permanentlyMissing ? "Report as Permanenly Missing" : "Report Missing Asset"
@@ -48,7 +48,7 @@ const V = { class: "font-bold" }, T = { class: "flex flex-col gap-3" }, j = /* @
48
48
  m(!1);
49
49
  }
50
50
  };
51
- return (c, s) => (b(), g(E, {
51
+ return (c, s) => (b(), f(E, {
52
52
  visible: p.value,
53
53
  "onUpdate:visible": s[0] || (s[0] = (t) => p.value = t),
54
54
  "buttons-template": ["cancel", "submit"],
@@ -73,10 +73,10 @@ const V = { class: "font-bold" }, T = { class: "flex flex-col gap-3" }, j = /* @
73
73
  severity: "danger"
74
74
  }, {
75
75
  body: l(() => {
76
- var i, u, f;
76
+ var i, u, g;
77
77
  return [
78
78
  o("p", null, [
79
- o("span", V, v(((f = (u = (i = d.value) == null ? void 0 : i.asset) == null ? void 0 : u.name) == null ? void 0 : f.nameWithSequence) ?? "-"), 1),
79
+ o("span", V, v(((g = (u = (i = d.value) == null ? void 0 : i.asset) == null ? void 0 : u.name) == null ? void 0 : g.nameWithSequence) ?? "-"), 1),
80
80
  R(" will be reported as " + v(e.permanentlyMissing ? "permanently missing asset" : "missing asset") + ". ", 1)
81
81
  ]),
82
82
  s[2] || (s[2] = o("p", null, "Are you sure you want to report it?", -1))
@@ -87,7 +87,7 @@ const V = { class: "font-bold" }, T = { class: "flex flex-col gap-3" }, j = /* @
87
87
  ]),
88
88
  fields: l(() => [
89
89
  o("div", T, [
90
- (b(), g(F, {
90
+ (b(), f(F, {
91
91
  id: e.id,
92
92
  key: e.id,
93
93
  ref_key: "assetInfo",
@@ -112,5 +112,5 @@ const V = { class: "font-bold" }, T = { class: "flex flex-col gap-3" }, j = /* @
112
112
  }
113
113
  });
114
114
  export {
115
- j as default
115
+ j as _
116
116
  };
@@ -1,10 +1,10 @@
1
1
  import { defineComponent as U, computed as c, ref as W, createBlock as k, openBlock as x, withCtx as C, createElementVNode as E, createVNode as V, createCommentVNode as O } from "vue";
2
2
  import { TAGServices as j } from "@tagsamurai/fats-api-services";
3
- import { u as z, _ as H } from "../assetinfo/AssetInfo.es.js";
3
+ import { u as z, _ as H } from "../assetinfo/index.es.js";
4
4
  import { u as J } from "../utils/toast.util.es.js";
5
- import K from "../dialogconfirm/index.es.js";
6
- import X from "../dialogform/index.es.js";
7
- import Y from "../dropdown/index.es.js";
5
+ import { _ as K } from "../dialogconfirm/index.es.js";
6
+ import { _ as X } from "../dialogform/index.es.js";
7
+ import { _ as Y } from "../dropdown/index.es.js";
8
8
  const Z = { class: "flex flex-col gap-3" }, le = /* @__PURE__ */ U({
9
9
  __name: "DialogReportTag",
10
10
  props: {
@@ -19,7 +19,7 @@ const Z = { class: "flex flex-col gap-3" }, le = /* @__PURE__ */ U({
19
19
  emits: ["update:visible", "reported"],
20
20
  setup($, { emit: B }) {
21
21
  const { setLoading: m } = z(), d = J(), s = $, r = B, f = c(() => s.visible), p = c(() => {
22
- var e, i, o, n, u, b, v, g, R, T, y, A, _, F, G, h, I, D, q, Q, w, S;
22
+ var e, i, o, n, u, b, v, g, R, T, _, y, A, F, G, h, I, D, q, Q, w, S;
23
23
  const l = (e = s.tagReported) == null ? void 0 : e.rfid, t = (i = s.tagReported) == null ? void 0 : i.qr;
24
24
  return [
25
25
  {
@@ -30,12 +30,12 @@ const Z = { class: "flex flex-col gap-3" }, le = /* @__PURE__ */ U({
30
30
  {
31
31
  label: "QR TAG",
32
32
  value: "QR",
33
- visible: ((R = (g = a.value) == null ? void 0 : g.asset) == null ? void 0 : R.qr) && !t && !((A = (y = (T = a.value) == null ? void 0 : T.asset) == null ? void 0 : y.tagReported) != null && A.qr)
33
+ visible: ((R = (g = a.value) == null ? void 0 : g.asset) == null ? void 0 : R.qr) && !t && !((y = (_ = (T = a.value) == null ? void 0 : T.asset) == null ? void 0 : _.tagReported) != null && y.qr)
34
34
  },
35
35
  {
36
36
  label: "RFID & QR TAG",
37
37
  value: "RFID & QR",
38
- visible: ((F = (_ = a.value) == null ? void 0 : _.asset) == null ? void 0 : F.rfid) && ((h = (G = a.value) == null ? void 0 : G.asset) == null ? void 0 : h.qr) && !l && !((q = (D = (I = a.value) == null ? void 0 : I.asset) == null ? void 0 : D.tagReported) != null && q.rfid) && !t && !((S = (w = (Q = a.value) == null ? void 0 : Q.asset) == null ? void 0 : w.tagReported) != null && S.qr)
38
+ visible: ((F = (A = a.value) == null ? void 0 : A.asset) == null ? void 0 : F.rfid) && ((h = (G = a.value) == null ? void 0 : G.asset) == null ? void 0 : h.qr) && !l && !((q = (D = (I = a.value) == null ? void 0 : I.asset) == null ? void 0 : D.tagReported) != null && q.rfid) && !t && !((S = (w = (Q = a.value) == null ? void 0 : Q.asset) == null ? void 0 : w.tagReported) != null && S.qr)
39
39
  }
40
40
  ].filter((N) => N.visible);
41
41
  }), a = W(), L = async (l) => {
@@ -126,5 +126,5 @@ const Z = { class: "flex flex-col gap-3" }, le = /* @__PURE__ */ U({
126
126
  }
127
127
  });
128
128
  export {
129
- le as default
129
+ le as _
130
130
  };
@@ -1,10 +1,10 @@
1
- import { defineComponent as G, mergeModels as T, useModel as P, inject as U, ref as o, computed as W, watch as b, createBlock as N, openBlock as d, unref as f, createSlots as O, withCtx as g, createVNode as B, mergeProps as z, renderSlot as D, createElementVNode as K, createElementBlock as k, createCommentVNode as h, normalizeClass as V, toDisplayString as L, Fragment as I, renderList as Y, withDirectives as q, vShow as J } from "vue";
1
+ import { defineComponent as G, mergeModels as T, useModel as P, inject as U, ref as o, computed as W, watch as b, createBlock as N, openBlock as d, unref as v, createSlots as O, withCtx as g, createVNode as B, mergeProps as z, renderSlot as D, createElementVNode as K, createElementBlock as k, createCommentVNode as h, normalizeClass as V, toDisplayString as L, Fragment as I, renderList as Y, withDirectives as q, vShow as J } from "vue";
2
2
  import { g as Q } from "../utils/object.util.es.js";
3
- import { _ as j } from "../button/Button.es.js";
4
- import R from "../dialog/index.es.js";
5
- import X from "../tree/index.es.js";
6
- import { _ as Z } from "../treesearchinput/TreeSearchInput.es.js";
7
- import _ from "../validatormessage/index.es.js";
3
+ import { _ as j } from "../button/index.es.js";
4
+ import { _ as R } from "../dialog/index.es.js";
5
+ import { _ as X } from "../tree/index.es.js";
6
+ import { _ as Z } from "../treesearchinput/index.es.js";
7
+ import { _ } from "../validatormessage/index.es.js";
8
8
  const ee = {
9
9
  class: "flex flex-col gap-3 items-start w-full",
10
10
  "data-wv-section": "header-wrapper"
@@ -78,7 +78,7 @@ const ee = {
78
78
  }),
79
79
  emits: /* @__PURE__ */ T(["select", "hide"], ["update:visible"]),
80
80
  setup($, { expose: A, emit: x }) {
81
- const s = $, C = x, n = P($, "visible"), v = U("preset", {}).dialog, r = o(), p = o(""), y = o(""), m = o([]), c = o(), S = o(), E = o(!1), u = o(), w = o(), H = W(() => s.header ? s.header : s.type === "group" ? "Select Group" : "Select Category"), M = (e = !0) => {
81
+ const s = $, C = x, n = P($, "visible"), f = U("preset", {}).dialog, r = o(), p = o(""), y = o(""), m = o([]), c = o(), S = o(), E = o(!1), u = o(), w = o(), H = W(() => s.header ? s.header : s.type === "group" ? "Select Group" : "Select Category"), M = (e = !0) => {
82
82
  c.value = u.value, S.value = w.value, Object.keys(c.value ?? {}).length ? (C("select", {
83
83
  keys: c.value,
84
84
  selectedNodes: m.value,
@@ -115,7 +115,7 @@ const ee = {
115
115
  pt: {
116
116
  root: {
117
117
  class: [
118
- ...f(v).root({ state: {} }).class,
118
+ ...v(f).root({ state: {} }).class,
119
119
  "!w-[400px]",
120
120
  { "!hidden": e.hidden }
121
121
  ]
@@ -128,7 +128,7 @@ const ee = {
128
128
  },
129
129
  content: {
130
130
  class: [
131
- ...f(v).content({ state: {}, instance: {} }).class,
131
+ ...v(f).content({ state: {}, instance: {} }).class,
132
132
  "pr-1.5 focus-visible:outline-none"
133
133
  ]
134
134
  },
@@ -161,17 +161,17 @@ const ee = {
161
161
  return [
162
162
  K("div", ee, [
163
163
  K("h3", {
164
- class: V([...f(v).title.class, "!leading-6"])
164
+ class: V([...v(f).title.class, "!leading-6"])
165
165
  }, L(H.value), 3),
166
166
  e.lists ? (d(), k("ul", le, [
167
167
  (d(!0), k(I, null, Y(e.lists, (i, F) => (d(), k("li", {
168
168
  key: F,
169
169
  class: "text-xs leading-[16.39px] tracking-[0.02em] font-medium text-general-800 list-disc ps-[6px]"
170
- }, L(e.listLabel && typeof i != "string" ? f(Q)(i, e.listLabel) : i), 1))), 128))
170
+ }, L(e.listLabel && typeof i != "string" ? v(Q)(i, e.listLabel) : i), 1))), 128))
171
171
  ])) : h("", !0),
172
172
  e.subHeader ? (d(), k("h4", {
173
173
  key: 1,
174
- class: V([...f(v).title.class, "!leading-6 text-sm"])
174
+ class: V([...v(f).title.class, "!leading-6 text-sm"])
175
175
  }, L(e.subHeader), 3)) : h("", !0),
176
176
  (a = r.value) != null && a.isLoading ? h("", !0) : (d(), N(Z, {
177
177
  key: 2,
@@ -265,5 +265,5 @@ const ee = {
265
265
  }
266
266
  });
267
267
  export {
268
- ue as default
268
+ ue as _
269
269
  };
@@ -91,10 +91,10 @@ export type DialogSelectUserEmits<T = User> = {
91
91
  *
92
92
  * @group components
93
93
  */
94
- declare const DialogSelectUser: ClassComponent<
94
+ declare class DialogSelectUser extends ClassComponent<
95
95
  DialogSelectUserProps,
96
96
  unknown,
97
97
  DialogSelectUserEmits
98
- >;
98
+ > {}
99
99
 
100
100
  export default DialogSelectUser;
@@ -1,13 +1,13 @@
1
- import { ref as c, defineComponent as S, computed as U, watch as $, createBlock as C, openBlock as u, withCtx as v, createElementVNode as i, createElementBlock as f, createCommentVNode as y, createVNode as n, Fragment as N, renderList as B, toDisplayString as h, unref as D, renderSlot as P } from "vue";
1
+ import { ref as u, defineComponent as S, computed as U, watch as $, createBlock as C, openBlock as c, withCtx as v, createElementVNode as i, createElementBlock as f, createCommentVNode as y, createVNode as n, Fragment as N, renderList as B, toDisplayString as h, unref as D, renderSlot as P } from "vue";
2
2
  import { getImageURL as E } from "@tagsamurai/fats-api-services";
3
- import I from "../image/index.es.js";
4
- import { _ as g } from "../button/Button.es.js";
5
- import L from "../buttonfilter/index.es.js";
6
- import O from "../buttonsearch/index.es.js";
7
- import j from "../datatable/index.es.js";
8
- import V from "../dialog/index.es.js";
9
- import { _ as z } from "../dialogselectuserfilter/DialogSelectUserFilter.es.js";
10
- const R = () => c([
3
+ import { _ as I } from "../image/index.es.js";
4
+ import { _ } from "../button/index.es.js";
5
+ import { _ as L } from "../buttonfilter/index.es.js";
6
+ import { _ as O } from "../buttonsearch/index.es.js";
7
+ import { D as j } from "../datatable/index.es.js";
8
+ import { _ as V } from "../dialog/index.es.js";
9
+ import { _ as z } from "../dialogselectuserfilter/index.es.js";
10
+ const R = () => u([
11
11
  {
12
12
  field: "profilePictureSmall",
13
13
  header: "Photo",
@@ -93,8 +93,8 @@ const R = () => c([
93
93
  fetchOptionFunction: {}
94
94
  },
95
95
  emits: ["update:visible", "selected"],
96
- setup(e, { emit: _ }) {
97
- const t = e, m = _, p = U(() => t.visible), d = c(!1), b = c(), r = c([]), a = c(), k = R(), x = () => {
96
+ setup(e, { emit: g }) {
97
+ const t = e, m = g, p = U(() => t.visible), d = u(!1), b = u(), r = u([]), a = u(), k = R(), x = () => {
98
98
  !r.value.length && !a.value ? d.value = !0 : (t.selectionType === "checkbox" ? m("selected", r.value) : m("selected", a.value), m("update:visible", !1));
99
99
  }, w = () => {
100
100
  r.value = [], a.value = void 0, d.value = !1;
@@ -108,7 +108,7 @@ const R = () => c([
108
108
  w(), o && t.fetchOptionFunction && (b.value = await t.fetchOptionFunction());
109
109
  },
110
110
  { immediate: !0 }
111
- ), (o, l) => (u(), C(V, {
111
+ ), (o, l) => (c(), C(V, {
112
112
  visible: p.value,
113
113
  "onUpdate:visible": [
114
114
  l[3] || (l[3] = (s) => p.value = s),
@@ -124,15 +124,15 @@ const R = () => c([
124
124
  footer: v(() => [
125
125
  P(o.$slots, "footer", {}, () => [
126
126
  i("div", H, [
127
- d.value ? (u(), f("span", J, " You must pick a user ")) : y("", !0),
127
+ d.value ? (c(), f("span", J, " You must pick a user ")) : y("", !0),
128
128
  i("div", null, [
129
- n(g, {
129
+ n(_, {
130
130
  onClick: l[2] || (l[2] = (s) => o.$emit("update:visible", !1)),
131
131
  label: "Cancel",
132
132
  severity: "dark",
133
133
  text: ""
134
134
  }),
135
- n(g, {
135
+ n(_, {
136
136
  label: t.selectButtonLabel,
137
137
  onClick: x,
138
138
  "data-ts-section": "select-button",
@@ -144,8 +144,8 @@ const R = () => c([
144
144
  ]),
145
145
  default: v(() => [
146
146
  i("div", W, [
147
- t.list && t.list.length ? (u(), f("ul", Y, [
148
- (u(!0), f(N, null, B(t.list, (s, F) => (u(), f("li", { key: F }, h(s), 1))), 128))
147
+ t.list && t.list.length ? (c(), f("ul", Y, [
148
+ (c(!0), f(N, null, B(t.list, (s, F) => (c(), f("li", { key: F }, h(s), 1))), 128))
149
149
  ])) : y("", !0),
150
150
  i("div", q, [
151
151
  i("div", A, h(o.description), 1),
@@ -182,5 +182,5 @@ const R = () => c([
182
182
  }
183
183
  });
184
184
  export {
185
- oe as default
185
+ oe as _
186
186
  };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as l, computed as n, createBlock as s, openBlock as p } from "vue";
2
- import r from "../filtercontainer/index.es.js";
2
+ import { _ as a } from "../filtercontainer/index.es.js";
3
3
  const m = /* @__PURE__ */ l({
4
4
  __name: "DialogSelectUserFilter",
5
5
  props: {
@@ -29,7 +29,7 @@ const m = /* @__PURE__ */ l({
29
29
  }
30
30
  }
31
31
  ]);
32
- return (e, a) => (p(), s(r, {
32
+ return (e, r) => (p(), s(a, {
33
33
  fields: o.value,
34
34
  "table-name": e.tableName
35
35
  }, null, 8, ["fields", "table-name"]));
@@ -1,7 +1,7 @@
1
- import { defineComponent as a, mergeModels as t, useModel as v, createBlock as o, unref as d, openBlock as n } from "vue";
2
- import { i as m } from "../utils/isBasic.util.es.js";
3
- import { _ as p } from "../dialogbasictransferlog/DialogBasicTransferLog.es.js";
4
- import { _ as u } from "../dialogfulltransferlog/DialogFullTransferLog.es.js";
1
+ import { defineComponent as a, mergeModels as t, useModel as v, createBlock as l, unref as m, openBlock as n } from "vue";
2
+ import { i as p } from "../utils/isBasic.util.es.js";
3
+ import { _ as d } from "../dialogbasictransferlog/index.es.js";
4
+ import { _ as b } from "../dialogfulltransferlog/index.es.js";
5
5
  const k = /* @__PURE__ */ a({
6
6
  __name: "DialogTransferLog",
7
7
  props: /* @__PURE__ */ t({
@@ -14,19 +14,19 @@ const k = /* @__PURE__ */ a({
14
14
  emits: ["update:visible"],
15
15
  setup(r) {
16
16
  const i = v(r, "visible");
17
- return (l, e) => d(m)() ? (n(), o(p, {
17
+ return (o, e) => m(p)() ? (n(), l(d, {
18
18
  key: 0,
19
- id: l.id,
19
+ id: o.id,
20
20
  visible: i.value,
21
21
  "onUpdate:visible": e[0] || (e[0] = (s) => i.value = s)
22
- }, null, 8, ["id", "visible"])) : (n(), o(u, {
22
+ }, null, 8, ["id", "visible"])) : (n(), l(b, {
23
23
  key: 1,
24
- id: l.id,
24
+ id: o.id,
25
25
  visible: i.value,
26
26
  "onUpdate:visible": e[1] || (e[1] = (s) => i.value = s)
27
27
  }, null, 8, ["id", "visible"]));
28
28
  }
29
29
  });
30
30
  export {
31
- k as default
31
+ k as _
32
32
  };
@@ -1,5 +1,5 @@
1
1
  import { nextTick as n } from "vue";
2
- const a = {
2
+ const c = {
3
3
  mounted: async (t) => {
4
4
  const s = t.tagName.toLowerCase() === "input", e = t.tagName.toLowerCase() === "button";
5
5
  n(() => {
@@ -9,5 +9,5 @@ const a = {
9
9
  }
10
10
  };
11
11
  export {
12
- a as default
12
+ c as F
13
13
  };
@@ -0,0 +1,2 @@
1
+ import "vue";
2
+ import "../vendor/primevue/tooltip/tooltip.esm.es.js";
@@ -0,0 +1 @@
1
+ import "../vendor/primevue/tooltip/tooltip.esm.es.js";
@@ -1,7 +1,7 @@
1
- import { defineComponent as s, createBlock as a, openBlock as r, withCtx as n, createElementVNode as e, createVNode as p, toDisplayString as i, unref as l, normalizeProps as c, guardReactiveProps as m } from "vue";
2
- import { u as _ } from "../datepicker/DatePicker.es.js";
3
- import d from "../card/index.es.js";
4
- import { _ as f } from "../disposalreporttable/DisposalReportTable.es.js";
1
+ import { defineComponent as s, createBlock as a, openBlock as r, withCtx as n, createElementVNode as e, createVNode as p, toDisplayString as i, unref as c, normalizeProps as l, guardReactiveProps as _ } from "vue";
2
+ import { u as m } from "../plugins/basei18n.es.js";
3
+ import { _ as d } from "../card/index.es.js";
4
+ import { _ as f } from "../disposalreporttable/index.es.js";
5
5
  const u = {
6
6
  class: "flex flex-col gap-3",
7
7
  "data-ts-name": "disposalreport"
@@ -15,12 +15,12 @@ const u = {
15
15
  reason: {}
16
16
  },
17
17
  setup(x) {
18
- const { t } = _();
18
+ const { t } = m();
19
19
  return (o, h) => (r(), a(d, null, {
20
20
  content: n(() => [
21
21
  e("div", u, [
22
- e("h2", g, i(l(t)("Asset Disposal")), 1),
23
- p(f, c(m(o.$props)), null, 16)
22
+ e("h2", g, i(c(t)("Asset Disposal")), 1),
23
+ p(f, l(_(o.$props)), null, 16)
24
24
  ])
25
25
  ]),
26
26
  _: 1
@@ -28,5 +28,5 @@ const u = {
28
28
  }
29
29
  });
30
30
  export {
31
- v as default
31
+ v as _
32
32
  };
@@ -1,16 +1,17 @@
1
1
  import { defineComponent as _, ref as w, shallowRef as u, createElementBlock as R, openBlock as d, Fragment as k, createVNode as v, mergeProps as x, withCtx as B, createBlock as V, createCommentVNode as h, unref as l } from "vue";
2
- import { e as c, _ as y } from "../buttonbulkaction/ButtonBulkAction.es.js";
3
- import { u as A } from "../datepicker/DatePicker.es.js";
4
- import C from "../dialogconfirm/index.es.js";
5
- import D from "../textarea/index.es.js";
6
- const I = /* @__PURE__ */ _({
2
+ import { e as c } from "../event-bus/index.es.js";
3
+ import { u as y } from "../plugins/basei18n.es.js";
4
+ import { _ as A } from "../buttonbulkaction/index.es.js";
5
+ import { _ as C } from "../dialogconfirm/index.es.js";
6
+ import { _ as D } from "../textarea/index.es.js";
7
+ const S = /* @__PURE__ */ _({
7
8
  __name: "DisposalReportBulkAction",
8
9
  props: {
9
10
  tableName: {}
10
11
  },
11
12
  emits: ["noted", "removed"],
12
13
  setup(p, { emit: b }) {
13
- const { t: e } = A(), r = p, s = b, o = w([]), n = u(!1), m = u(), f = [
14
+ const { t: e } = y(), r = p, s = b, o = w([]), n = u(!1), m = u(), f = [
14
15
  {
15
16
  label: e("Note"),
16
17
  icon: "note",
@@ -35,7 +36,7 @@ const I = /* @__PURE__ */ _({
35
36
  });
36
37
  };
37
38
  return (i, t) => (d(), R(k, null, [
38
- v(y, x({
39
+ v(A, x({
39
40
  "selected-data": o.value,
40
41
  "onUpdate:selectedData": t[1] || (t[1] = (a) => o.value = a)
41
42
  }, i.$attrs, {
@@ -75,5 +76,5 @@ const I = /* @__PURE__ */ _({
75
76
  }
76
77
  });
77
78
  export {
78
- I as _
79
+ S as _
79
80
  };
@@ -1,19 +1,19 @@
1
1
  import { defineComponent as E, onMounted as I, shallowRef as i, ref as N, createElementBlock as F, openBlock as M, Fragment as P, createElementVNode as d, createVNode as s, mergeProps as L, unref as l, withCtx as U, toDisplayString as _ } from "vue";
2
2
  import { AssetServices as V, DisposalServices as q } from "@tagsamurai/fats-api-services";
3
- import { u as z } from "../assetinfo/AssetInfo.es.js";
4
- import { u as O } from "../datepicker/DatePicker.es.js";
3
+ import { u as z } from "../assetinfo/index.es.js";
4
+ import { u as O } from "../plugins/basei18n.es.js";
5
5
  import "../vendor/single-spa/lib/es2015/esm/single-spa.min.es.js";
6
6
  import { u as W } from "../utils/toast.util.es.js";
7
- import v from "../badge/index.es.js";
8
- import { _ as w } from "../button/Button.es.js";
9
- import j from "../buttonfilter/index.es.js";
10
- import H from "../buttonsearch/index.es.js";
11
- import K from "../datatable/index.es.js";
12
- import R from "../dialogconfirm/index.es.js";
13
- import G from "../image/index.es.js";
14
- import Q from "../textarea/index.es.js";
15
- import { _ as J } from "../disposalreportbulkaction/DisposalReportBulkAction.es.js";
16
- import { _ as X } from "../disposalreporttablefilter/DisposalReportTableFilter.es.js";
7
+ import { _ as v } from "../badge/index.es.js";
8
+ import { _ as w } from "../button/index.es.js";
9
+ import { _ as j } from "../buttonfilter/index.es.js";
10
+ import { _ as H } from "../buttonsearch/index.es.js";
11
+ import { D as K } from "../datatable/index.es.js";
12
+ import { _ as R } from "../dialogconfirm/index.es.js";
13
+ import { _ as G } from "../image/index.es.js";
14
+ import { _ as Q } from "../textarea/index.es.js";
15
+ import { _ as J } from "../disposalreportbulkaction/index.es.js";
16
+ import { _ as X } from "../disposalreporttablefilter/index.es.js";
17
17
  const Y = {
18
18
  class: "flex flex-col gap-2",
19
19
  "data-ts-section": "disposalreporttablewrapper"
@@ -178,7 +178,7 @@ const Y = {
178
178
  } finally {
179
179
  m(!1);
180
180
  }
181
- }, T = [
181
+ }, D = [
182
182
  {
183
183
  label: a("Remove from List"),
184
184
  icon: "delete-bin",
@@ -190,8 +190,8 @@ const Y = {
190
190
  ], h = (o) => {
191
191
  r.value = r.value.filter(
192
192
  (e) => !o.some((t) => e._id === t._id)
193
- ), D(o);
194
- }, D = (o) => {
193
+ ), T(o);
194
+ }, T = (o) => {
195
195
  o.forEach((e) => {
196
196
  n.value.delete(e._id ?? "");
197
197
  }), r.value.length || b(), p.add({
@@ -254,7 +254,7 @@ const Y = {
254
254
  columns: S,
255
255
  data: r.value,
256
256
  lazy: !1,
257
- options: T,
257
+ options: D,
258
258
  rows: 10,
259
259
  onToggleOption: e[3] || (e[3] = (t) => f.value = t),
260
260
  "data-key": "_id",
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as y, shallowRef as r, ref as g, createBlock as b, openBlock as h } from "vue";
2
- import { AssetServices as O } from "@tagsamurai/fats-api-services";
3
- import { u as _ } from "../datepicker/DatePicker.es.js";
2
+ import { AssetServices as _ } from "@tagsamurai/fats-api-services";
3
+ import { u as O } from "../plugins/basei18n.es.js";
4
4
  import "../vendor/single-spa/lib/es2015/esm/single-spa.min.es.js";
5
5
  import { u as k } from "../utils/toast.util.es.js";
6
- import v from "../filtercontainer/index.es.js";
6
+ import { _ as v } from "../filtercontainer/index.es.js";
7
7
  const x = /* @__PURE__ */ y({
8
8
  __name: "DisposalReportTableFilter",
9
9
  props: {
@@ -11,7 +11,7 @@ const x = /* @__PURE__ */ y({
11
11
  tableName: {}
12
12
  },
13
13
  setup(p) {
14
- const o = p, c = k(), { t: e } = _(), i = r([
14
+ const o = p, c = k(), { t: e } = O(), i = r([
15
15
  {
16
16
  label: e("Name"),
17
17
  placeholder: e("Select asset name"),
@@ -49,7 +49,7 @@ const x = /* @__PURE__ */ y({
49
49
  const d = {
50
50
  _id: JSON.stringify(a),
51
51
  [t]: !0
52
- }, { data: f } = await O.getAllAssetsOptions(d);
52
+ }, { data: f } = await _.getAllAssetsOptions(d);
53
53
  return (l = f.data) == null ? void 0 : l[t];
54
54
  } catch (a) {
55
55
  return console.error(a), c.add({