@ailaw/venus 0.3.2 → 0.3.8

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/en3.js CHANGED
@@ -858,6 +858,8 @@ var lang3 = {
858
858
  tasks: "Tasks",
859
859
  sendTaskEmail: "Send the notification email",
860
860
  none: "None",
861
- taskSetting: "Task setting"
861
+ taskSetting: "Task setting",
862
+ lastUpdatedTime: "Last Updated Time",
863
+ lastUpdatedBy: "Last Updated By"
862
864
  };
863
865
  export { lang3 as default };
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- /*! tailwindcss v2.2.17 | MIT License | https://tailwindcss.com *//*! modern-normalize v1.1.0 | MIT License | https://github.com/sindresorhus/modern-normalize */*,:before,:after{box-sizing:border-box}html{-moz-tab-size:4;-o-tab-size:4;tab-size:4}html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}body{font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"}hr{height:0;color:inherit}abbr[title]{-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}::-moz-focus-inner{border-style:none;padding:0}legend{padding:0}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}button{background-color:transparent;background-image:none}fieldset{margin:0;padding:0}ol,ul{list-style:none;margin:0;padding:0}html{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";line-height:1.5}body{font-family:inherit;line-height:inherit}*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:currentColor}hr{border-top-width:1px}img{border-style:solid}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#a1a1aa}input:-ms-input-placeholder,textarea:-ms-input-placeholder{opacity:1;color:#a1a1aa}input::placeholder,textarea::placeholder{opacity:1;color:#a1a1aa}button,[role=button]{cursor:pointer}table{border-collapse:collapse}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}button,input,optgroup,select,textarea{padding:0;line-height:inherit;color:inherit}pre,code,kbd,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}*,:before,:after{border-color:currentColor}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.visible{visibility:visible}.relative{position:relative}.my-1{margin-top:.25rem;margin-bottom:.25rem}.mr-2{margin-right:.5rem}.mb-5{margin-bottom:1.25rem}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.table{display:table}.h-6{height:1.5rem}.h-screen{height:100vh}.w-6{width:1.5rem}.w-60{width:15rem}.w-72{width:18rem}.flex-1{flex:1 1 0%}@-webkit-keyframes spin{to{transform:rotate(360deg)}}@keyframes spin{to{transform:rotate(360deg)}}@-webkit-keyframes ping{75%,to{transform:scale(2);opacity:0}}@keyframes ping{75%,to{transform:scale(2);opacity:0}}@-webkit-keyframes pulse{50%{opacity:.5}}@keyframes pulse{50%{opacity:.5}}@-webkit-keyframes bounce{0%,to{transform:translateY(-25%);-webkit-animation-timing-function:cubic-bezier(.8,0,1,1);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;-webkit-animation-timing-function:cubic-bezier(0,0,.2,1);animation-timing-function:cubic-bezier(0,0,.2,1)}}@keyframes bounce{0%,to{transform:translateY(-25%);-webkit-animation-timing-function:cubic-bezier(.8,0,1,1);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;-webkit-animation-timing-function:cubic-bezier(0,0,.2,1);animation-timing-function:cubic-bezier(0,0,.2,1)}}.items-center{align-items:center}.justify-end{justify-content:flex-end}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.border{border-width:1px}.p-4{padding:1rem}.px-3{padding-left:.75rem;padding-right:.75rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.capitalize{text-transform:capitalize}.text-secondary{--tw-text-opacity: 1;color:rgba(102,102,102,var(--tw-text-opacity))}*,:before,:after{--tw-shadow: 0 0 #0000}*,:before,:after{--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgba(59, 130, 246, .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000}.filter{--tw-blur: var(--tw-empty, );--tw-brightness: var(--tw-empty, );--tw-contrast: var(--tw-empty, );--tw-grayscale: var(--tw-empty, );--tw-hue-rotate: var(--tw-empty, );--tw-invert: var(--tw-empty, );--tw-saturate: var(--tw-empty, );--tw-sepia: var(--tw-empty, );--tw-drop-shadow: var(--tw-empty, );filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.blur{--tw-blur: blur(8px)}.container[data-v-afd84cca]{border:1px solid #cccccc;border-radius:6px;padding:0 4px;min-height:30px;cursor:pointer}.taskTemplateInline[data-v-26adfbde]{float:right}a.taskTemplateInline[data-v-26adfbde]{margin-left:10px}div.taskTemplateInline[data-v-26adfbde]{margin-top:5px!important}.tags-container[data-v-2fe21258]{max-width:200px;word-break:keep-all;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}
1
+ /*! tailwindcss v2.2.17 | MIT License | https://tailwindcss.com *//*! modern-normalize v1.1.0 | MIT License | https://github.com/sindresorhus/modern-normalize */*,:before,:after{box-sizing:border-box}html{-moz-tab-size:4;-o-tab-size:4;tab-size:4}html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}body{font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"}hr{height:0;color:inherit}abbr[title]{-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}::-moz-focus-inner{border-style:none;padding:0}legend{padding:0}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}button{background-color:transparent;background-image:none}fieldset{margin:0;padding:0}ol,ul{list-style:none;margin:0;padding:0}html{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";line-height:1.5}body{font-family:inherit;line-height:inherit}*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:currentColor}hr{border-top-width:1px}img{border-style:solid}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#a1a1aa}input:-ms-input-placeholder,textarea:-ms-input-placeholder{opacity:1;color:#a1a1aa}input::placeholder,textarea::placeholder{opacity:1;color:#a1a1aa}button,[role=button]{cursor:pointer}table{border-collapse:collapse}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}button,input,optgroup,select,textarea{padding:0;line-height:inherit;color:inherit}pre,code,kbd,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}*,:before,:after{border-color:currentColor}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.visible{visibility:visible}.relative{position:relative}.my-1{margin-top:.25rem;margin-bottom:.25rem}.mr-2{margin-right:.5rem}.mb-5{margin-bottom:1.25rem}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.table{display:table}.h-6{height:1.5rem}.h-screen{height:100vh}.w-6{width:1.5rem}.w-60{width:15rem}.w-72{width:18rem}.flex-1{flex:1 1 0%}@-webkit-keyframes spin{to{transform:rotate(360deg)}}@keyframes spin{to{transform:rotate(360deg)}}@-webkit-keyframes ping{75%,to{transform:scale(2);opacity:0}}@keyframes ping{75%,to{transform:scale(2);opacity:0}}@-webkit-keyframes pulse{50%{opacity:.5}}@keyframes pulse{50%{opacity:.5}}@-webkit-keyframes bounce{0%,to{transform:translateY(-25%);-webkit-animation-timing-function:cubic-bezier(.8,0,1,1);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;-webkit-animation-timing-function:cubic-bezier(0,0,.2,1);animation-timing-function:cubic-bezier(0,0,.2,1)}}@keyframes bounce{0%,to{transform:translateY(-25%);-webkit-animation-timing-function:cubic-bezier(.8,0,1,1);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;-webkit-animation-timing-function:cubic-bezier(0,0,.2,1);animation-timing-function:cubic-bezier(0,0,.2,1)}}.items-center{align-items:center}.justify-end{justify-content:flex-end}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.border{border-width:1px}.p-4{padding:1rem}.px-3{padding-left:.75rem;padding-right:.75rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.capitalize{text-transform:capitalize}.text-secondary{--tw-text-opacity: 1;color:rgba(102,102,102,var(--tw-text-opacity))}*,:before,:after{--tw-shadow: 0 0 #0000}*,:before,:after{--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgba(59, 130, 246, .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000}.filter{--tw-blur: var(--tw-empty, );--tw-brightness: var(--tw-empty, );--tw-contrast: var(--tw-empty, );--tw-grayscale: var(--tw-empty, );--tw-hue-rotate: var(--tw-empty, );--tw-invert: var(--tw-empty, );--tw-saturate: var(--tw-empty, );--tw-sepia: var(--tw-empty, );--tw-drop-shadow: var(--tw-empty, );filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.blur{--tw-blur: blur(8px)}.tags-container[data-v-c4729600]{word-break:keep-all;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}.container[data-v-d2a7dbe0]{border:1px solid #cccccc;border-radius:6px;padding:0 4px;min-height:30px;cursor:pointer}.taskTemplateInline[data-v-3f1928ba]{float:right}a.taskTemplateInline[data-v-3f1928ba]{margin-left:10px}div.taskTemplateInline[data-v-3f1928ba]{margin-top:5px!important}
package/dist/venus.es.js CHANGED
@@ -18,7 +18,7 @@ var __spreadValues = (a, b) => {
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
20
  import { defineComponent, ref as ref$1, watch, computed, toRefs as toRefs$1, onMounted } from "vue-demi";
21
- import { Select, Modal, Form, Input, Checkbox, Divider, Button, message } from "ant-design-vue";
21
+ import { Select, Modal, Form, Input, Checkbox, Divider, Button, Tag, Tooltip, Upload, Row, Col, Radio, Table, Badge, message } from "ant-design-vue";
22
22
  import { useQuery, useResult, useMutation } from "@vue/apollo-composable";
23
23
  import gql from "graphql-tag";
24
24
  import { path, uniqBy, prop } from "ramda";
@@ -39,7 +39,7 @@ function __variableDynamicImportRuntime0__$1(path2) {
39
39
  });
40
40
  }
41
41
  }
42
- var __vue2_script$f = defineComponent({
42
+ var __vue2_script$h = defineComponent({
43
43
  props: {
44
44
  type: {
45
45
  type: String,
@@ -66,13 +66,13 @@ var __vue2_script$f = defineComponent({
66
66
  return { iconUrl };
67
67
  }
68
68
  });
69
- var render$f = function() {
69
+ var render$h = function() {
70
70
  var _vm = this;
71
71
  var _h = _vm.$createElement;
72
72
  var _c = _vm._self._c || _h;
73
73
  return _c("img", { staticClass: "w-6 h-6", attrs: { "src": _vm.iconUrl, "alt": _vm.type } });
74
74
  };
75
- var staticRenderFns$f = [];
75
+ var staticRenderFns$h = [];
76
76
  function normalizeComponent(scriptExports, render2, staticRenderFns2, functionalTemplate, injectStyles, scopeId, moduleIdentifier, shadowMode) {
77
77
  var options = typeof scriptExports === "function" ? scriptExports.options : scriptExports;
78
78
  if (render2) {
@@ -124,17 +124,17 @@ function normalizeComponent(scriptExports, render2, staticRenderFns2, functional
124
124
  options
125
125
  };
126
126
  }
127
- const __cssModules$f = {};
128
- var __component__$f = /* @__PURE__ */ normalizeComponent(__vue2_script$f, render$f, staticRenderFns$f, false, __vue2_injectStyles$f, null, null, null);
129
- function __vue2_injectStyles$f(context) {
130
- for (let o in __cssModules$f) {
131
- this[o] = __cssModules$f[o];
127
+ const __cssModules$h = {};
128
+ var __component__$h = /* @__PURE__ */ normalizeComponent(__vue2_script$h, render$h, staticRenderFns$h, false, __vue2_injectStyles$h, null, null, null);
129
+ function __vue2_injectStyles$h(context) {
130
+ for (let o in __cssModules$h) {
131
+ this[o] = __cssModules$h[o];
132
132
  }
133
133
  }
134
134
  var ProfileTypeIcon = /* @__PURE__ */ function() {
135
- return __component__$f.exports;
135
+ return __component__$h.exports;
136
136
  }();
137
- var __vue2_script$e = defineComponent({
137
+ var __vue2_script$g = defineComponent({
138
138
  props: {
139
139
  source: {
140
140
  type: Object,
@@ -143,22 +143,22 @@ var __vue2_script$e = defineComponent({
143
143
  },
144
144
  components: { ProfileTypeIcon }
145
145
  });
146
- var render$e = function() {
146
+ var render$g = function() {
147
147
  var _vm = this;
148
148
  var _h = _vm.$createElement;
149
149
  var _c = _vm._self._c || _h;
150
150
  return _c("div", { staticClass: "flex space-x-1 items-center" }, [_c("ProfileTypeIcon", { attrs: { "type": _vm.source.profileType } }), _c("div", { staticClass: "text-secondary" }, [_vm._v(_vm._s(_vm.source.profileName))])], 1);
151
151
  };
152
- var staticRenderFns$e = [];
153
- const __cssModules$e = {};
154
- var __component__$e = /* @__PURE__ */ normalizeComponent(__vue2_script$e, render$e, staticRenderFns$e, false, __vue2_injectStyles$e, null, null, null);
155
- function __vue2_injectStyles$e(context) {
156
- for (let o in __cssModules$e) {
157
- this[o] = __cssModules$e[o];
152
+ var staticRenderFns$g = [];
153
+ const __cssModules$g = {};
154
+ var __component__$g = /* @__PURE__ */ normalizeComponent(__vue2_script$g, render$g, staticRenderFns$g, false, __vue2_injectStyles$g, null, null, null);
155
+ function __vue2_injectStyles$g(context) {
156
+ for (let o in __cssModules$g) {
157
+ this[o] = __cssModules$g[o];
158
158
  }
159
159
  }
160
160
  var ProfileSelectItem = /* @__PURE__ */ function() {
161
- return __component__$e.exports;
161
+ return __component__$g.exports;
162
162
  }();
163
163
  const meQuery = gql`
164
164
  query Me {
@@ -241,7 +241,7 @@ const profileTypes = {
241
241
  CLIENTPROFILE: "Company",
242
242
  PREPARERPROFILE: "Attorney"
243
243
  };
244
- var __vue2_script$d = defineComponent({
244
+ var __vue2_script$f = defineComponent({
245
245
  props: {
246
246
  value: {
247
247
  type: String
@@ -261,7 +261,7 @@ var __vue2_script$d = defineComponent({
261
261
  return { profileTypes, handleChange };
262
262
  }
263
263
  });
264
- var render$d = function() {
264
+ var render$f = function() {
265
265
  var _vm = this;
266
266
  var _h = _vm.$createElement;
267
267
  var _c = _vm._self._c || _h;
@@ -269,18 +269,18 @@ var render$d = function() {
269
269
  return _c("Option", { key, attrs: { "value": key } }, [_c("div", { staticClass: "flex items-center space-x-1" }, [_c("ProfileTypeIcon", { attrs: { "type": key } }), _c("div", { staticClass: "text-secondary" }, [_vm._v(_vm._s(_vm.profileTypes[key]))])], 1)]);
270
270
  }), 1);
271
271
  };
272
- var staticRenderFns$d = [];
273
- const __cssModules$d = {};
274
- var __component__$d = /* @__PURE__ */ normalizeComponent(__vue2_script$d, render$d, staticRenderFns$d, false, __vue2_injectStyles$d, null, null, null);
275
- function __vue2_injectStyles$d(context) {
276
- for (let o in __cssModules$d) {
277
- this[o] = __cssModules$d[o];
272
+ var staticRenderFns$f = [];
273
+ const __cssModules$f = {};
274
+ var __component__$f = /* @__PURE__ */ normalizeComponent(__vue2_script$f, render$f, staticRenderFns$f, false, __vue2_injectStyles$f, null, null, null);
275
+ function __vue2_injectStyles$f(context) {
276
+ for (let o in __cssModules$f) {
277
+ this[o] = __cssModules$f[o];
278
278
  }
279
279
  }
280
280
  var ProfileTypeSelect = /* @__PURE__ */ function() {
281
- return __component__$d.exports;
281
+ return __component__$f.exports;
282
282
  }();
283
- var __vue2_script$c = defineComponent({
283
+ var __vue2_script$e = defineComponent({
284
284
  components: {
285
285
  Modal,
286
286
  Form,
@@ -317,7 +317,7 @@ var __vue2_script$c = defineComponent({
317
317
  };
318
318
  }
319
319
  });
320
- var render$c = function() {
320
+ var render$e = function() {
321
321
  var _vm = this;
322
322
  var _h = _vm.$createElement;
323
323
  var _c = _vm._self._c || _h;
@@ -331,18 +331,18 @@ var render$c = function() {
331
331
  _vm.shouldSendPassword = $$v;
332
332
  }, expression: "shouldSendPassword" } }, [_vm._v("Send client portal login password (System will email client a login password)")])], 1)], 1)], 1);
333
333
  };
334
- var staticRenderFns$c = [];
335
- const __cssModules$c = {};
336
- var __component__$c = /* @__PURE__ */ normalizeComponent(__vue2_script$c, render$c, staticRenderFns$c, false, __vue2_injectStyles$c, null, null, null);
337
- function __vue2_injectStyles$c(context) {
338
- for (let o in __cssModules$c) {
339
- this[o] = __cssModules$c[o];
334
+ var staticRenderFns$e = [];
335
+ const __cssModules$e = {};
336
+ var __component__$e = /* @__PURE__ */ normalizeComponent(__vue2_script$e, render$e, staticRenderFns$e, false, __vue2_injectStyles$e, null, null, null);
337
+ function __vue2_injectStyles$e(context) {
338
+ for (let o in __cssModules$e) {
339
+ this[o] = __cssModules$e[o];
340
340
  }
341
341
  }
342
342
  var ProfileCreateModal = /* @__PURE__ */ function() {
343
- return __component__$c.exports;
343
+ return __component__$e.exports;
344
344
  }();
345
- var __vue2_script$b = defineComponent({
345
+ var __vue2_script$d = defineComponent({
346
346
  props: {
347
347
  value: {
348
348
  type: Object
@@ -387,7 +387,7 @@ var __vue2_script$b = defineComponent({
387
387
  };
388
388
  }
389
389
  });
390
- var render$b = function() {
390
+ var render$d = function() {
391
391
  var _vm = this;
392
392
  var _h = _vm.$createElement;
393
393
  var _c = _vm._self._c || _h;
@@ -397,16 +397,16 @@ var render$b = function() {
397
397
  return _c("Option", { key: v.id, attrs: { "value": v.id } }, [_c("ProfileSelectItem", { attrs: { "source": v } })], 1);
398
398
  }), 1);
399
399
  };
400
- var staticRenderFns$b = [];
401
- const __cssModules$b = {};
402
- var __component__$b = /* @__PURE__ */ normalizeComponent(__vue2_script$b, render$b, staticRenderFns$b, false, __vue2_injectStyles$b, null, null, null);
403
- function __vue2_injectStyles$b(context) {
404
- for (let o in __cssModules$b) {
405
- this[o] = __cssModules$b[o];
400
+ var staticRenderFns$d = [];
401
+ const __cssModules$d = {};
402
+ var __component__$d = /* @__PURE__ */ normalizeComponent(__vue2_script$d, render$d, staticRenderFns$d, false, __vue2_injectStyles$d, null, null, null);
403
+ function __vue2_injectStyles$d(context) {
404
+ for (let o in __cssModules$d) {
405
+ this[o] = __cssModules$d[o];
406
406
  }
407
407
  }
408
408
  var ProfileSelector = /* @__PURE__ */ function() {
409
- return __component__$b.exports;
409
+ return __component__$d.exports;
410
410
  }();
411
411
  function useProfiles(keywords, onlyRole, profileIds) {
412
412
  const me = useMe();
@@ -424,7 +424,7 @@ function useProfiles(keywords, onlyRole, profileIds) {
424
424
  const profiles = useResult(result, [], (data) => data.profileSearch.profileList);
425
425
  return { profiles, loading };
426
426
  }
427
- var __vue2_script$a = defineComponent({
427
+ var __vue2_script$c = defineComponent({
428
428
  components: { ProfileSelector, ProfileCreateModal },
429
429
  props: {
430
430
  value: {
@@ -476,7 +476,7 @@ var __vue2_script$a = defineComponent({
476
476
  };
477
477
  }
478
478
  });
479
- var render$a = function() {
479
+ var render$c = function() {
480
480
  var _vm = this;
481
481
  var _h = _vm.$createElement;
482
482
  var _c = _vm._self._c || _h;
@@ -486,17 +486,227 @@ var render$a = function() {
486
486
  return _vm.toggleModal(false);
487
487
  }, "profile-created": _vm.handleProfileCreated } }) : _vm._e()], 1);
488
488
  };
489
- var staticRenderFns$a = [];
490
- const __cssModules$a = {};
491
- var __component__$a = /* @__PURE__ */ normalizeComponent(__vue2_script$a, render$a, staticRenderFns$a, false, __vue2_injectStyles$a, null, null, null);
492
- function __vue2_injectStyles$a(context) {
493
- for (let o in __cssModules$a) {
494
- this[o] = __cssModules$a[o];
489
+ var staticRenderFns$c = [];
490
+ const __cssModules$c = {};
491
+ var __component__$c = /* @__PURE__ */ normalizeComponent(__vue2_script$c, render$c, staticRenderFns$c, false, __vue2_injectStyles$c, null, null, null);
492
+ function __vue2_injectStyles$c(context) {
493
+ for (let o in __cssModules$c) {
494
+ this[o] = __cssModules$c[o];
495
495
  }
496
496
  }
497
497
  var index$3 = /* @__PURE__ */ function() {
498
- return __component__$a.exports;
498
+ return __component__$c.exports;
499
499
  }();
500
+ function __variableDynamicImportRuntime0__(path2) {
501
+ switch (path2) {
502
+ case "../languages/ar.ts":
503
+ return import("./ar.js");
504
+ case "../languages/ar2.ts":
505
+ return import("./ar2.js");
506
+ case "../languages/ar3.ts":
507
+ return import("./ar3.js");
508
+ case "../languages/ben.ts":
509
+ return import("./ben.js");
510
+ case "../languages/ben2.ts":
511
+ return import("./ben2.js");
512
+ case "../languages/ben3.ts":
513
+ return import("./ben3.js");
514
+ case "../languages/ch.ts":
515
+ return import("./ch.js");
516
+ case "../languages/ch2.ts":
517
+ return import("./ch2.js");
518
+ case "../languages/ch3.ts":
519
+ return import("./ch3.js");
520
+ case "../languages/en.ts":
521
+ return import("./en.js");
522
+ case "../languages/en2.ts":
523
+ return import("./en2.js");
524
+ case "../languages/en3.ts":
525
+ return import("./en3.js");
526
+ case "../languages/es.ts":
527
+ return import("./es.js");
528
+ case "../languages/es2.ts":
529
+ return import("./es2.js");
530
+ case "../languages/es3.ts":
531
+ return import("./es3.js");
532
+ case "../languages/fa.ts":
533
+ return import("./fa.js");
534
+ case "../languages/fa2.ts":
535
+ return import("./fa2.js");
536
+ case "../languages/fa3.ts":
537
+ return import("./fa3.js");
538
+ case "../languages/fr.ts":
539
+ return import("./fr.js");
540
+ case "../languages/fr2.ts":
541
+ return import("./fr2.js");
542
+ case "../languages/fr3.ts":
543
+ return import("./fr3.js");
544
+ case "../languages/hi.ts":
545
+ return import("./hi.js");
546
+ case "../languages/hi2.ts":
547
+ return import("./hi2.js");
548
+ case "../languages/hi3.ts":
549
+ return import("./hi3.js");
550
+ case "../languages/ht.ts":
551
+ return import("./ht.js");
552
+ case "../languages/ht2.ts":
553
+ return import("./ht2.js");
554
+ case "../languages/ht3.ts":
555
+ return import("./ht3.js");
556
+ case "../languages/hy.ts":
557
+ return import("./hy.js");
558
+ case "../languages/hy2.ts":
559
+ return import("./hy2.js");
560
+ case "../languages/hy3.ts":
561
+ return import("./hy3.js");
562
+ case "../languages/jp.ts":
563
+ return import("./jp.js");
564
+ case "../languages/jp2.ts":
565
+ return import("./jp2.js");
566
+ case "../languages/jp3.ts":
567
+ return import("./jp3.js");
568
+ case "../languages/ko.ts":
569
+ return import("./ko.js");
570
+ case "../languages/ko2.ts":
571
+ return import("./ko2.js");
572
+ case "../languages/ko3.ts":
573
+ return import("./ko3.js");
574
+ case "../languages/nep.ts":
575
+ return import("./nep.js");
576
+ case "../languages/nep2.ts":
577
+ return import("./nep2.js");
578
+ case "../languages/nep3.ts":
579
+ return import("./nep3.js");
580
+ case "../languages/pt.ts":
581
+ return import("./pt.js");
582
+ case "../languages/pt2.ts":
583
+ return import("./pt2.js");
584
+ case "../languages/pt3.ts":
585
+ return import("./pt3.js");
586
+ case "../languages/ru.ts":
587
+ return import("./ru.js");
588
+ case "../languages/ru2.ts":
589
+ return import("./ru2.js");
590
+ case "../languages/ru3.ts":
591
+ return import("./ru3.js");
592
+ default:
593
+ return new Promise(function(resolve, reject) {
594
+ (typeof queueMicrotask === "function" ? queueMicrotask : setTimeout)(reject.bind(null, new Error("Unknown variable dynamic import: " + path2)));
595
+ });
596
+ }
597
+ }
598
+ const loaded = new Map();
599
+ async function getLanguageMessage(lang) {
600
+ if (!loaded.has(lang)) {
601
+ const { default: message2 } = await __variableDynamicImportRuntime0__(`../languages/${lang}.ts`);
602
+ loaded.set(lang, message2);
603
+ }
604
+ return loaded.get(lang);
605
+ }
606
+ const createForm = (form) => form;
607
+ var g1145 = createForm({
608
+ displayName: "G-1145",
609
+ roles: {
610
+ Petitioner: "USERPROFILE",
611
+ Beneficiary: "USERPROFILE",
612
+ Preparer: "PREPARERPROFILE"
613
+ }
614
+ });
615
+ var g28Person = createForm({
616
+ displayName: "G-28-Person",
617
+ roles: {
618
+ Petitioner: "USERPROFILE",
619
+ Beneficiary: "USERPROFILE",
620
+ Preparer: "PREPARERPROFILE"
621
+ }
622
+ });
623
+ var i129Attachment = createForm({
624
+ displayName: "I-129 Attachment",
625
+ roles: {
626
+ Beneficiary: "USERPROFILE"
627
+ }
628
+ });
629
+ var i129Mh = createForm({
630
+ displayName: "I-129_Main with H supplement",
631
+ roles: {
632
+ Petitioner: "CLIENTPROFILE",
633
+ Beneficiary: "USERPROFILE",
634
+ Preparer: "PREPARERPROFILE"
635
+ }
636
+ });
637
+ var i130 = createForm({
638
+ displayName: "I-130",
639
+ roles: {
640
+ Petitioner: "USERPROFILE",
641
+ Beneficiary: "USERPROFILE",
642
+ Preparer: "PREPARERPROFILE"
643
+ }
644
+ });
645
+ var i130a = createForm({
646
+ displayName: "I-130A",
647
+ roles: {
648
+ Beneficiary: "USERPROFILE",
649
+ Preparer: "PREPARERPROFILE"
650
+ }
651
+ });
652
+ var i131 = createForm({
653
+ displayName: "I-131",
654
+ roles: {
655
+ Beneficiary: "USERPROFILE",
656
+ Preparer: "PREPARERPROFILE"
657
+ }
658
+ });
659
+ var i485 = createForm({
660
+ displayName: "I-485",
661
+ roles: {
662
+ Beneficiary: "USERPROFILE",
663
+ Preparer: "PREPARERPROFILE"
664
+ }
665
+ });
666
+ var i485a = createForm({
667
+ displayName: "I-485A",
668
+ roles: {
669
+ Beneficiary: "USERPROFILE",
670
+ Preparer: "PREPARERPROFILE"
671
+ }
672
+ });
673
+ var i765 = createForm({
674
+ displayName: "I-765",
675
+ roles: {
676
+ Beneficiary: "USERPROFILE",
677
+ Preparer: "PREPARERPROFILE"
678
+ }
679
+ });
680
+ var i864 = createForm({
681
+ displayName: "I-864",
682
+ roles: {
683
+ Petitioner: "USERPROFILE",
684
+ Beneficiary: "USERPROFILE",
685
+ Preparer: "PREPARERPROFILE"
686
+ }
687
+ });
688
+ var i864a = createForm({
689
+ displayName: "I-864A",
690
+ roles: {
691
+ Petitioner: "USERPROFILE",
692
+ Beneficiary: "USERPROFILE",
693
+ Preparer: "PREPARERPROFILE"
694
+ }
695
+ });
696
+ var index$2 = [
697
+ g28Person,
698
+ g1145,
699
+ i129Attachment,
700
+ i129Mh,
701
+ i130,
702
+ i130a,
703
+ i131,
704
+ i485,
705
+ i485a,
706
+ i765,
707
+ i864,
708
+ i864a
709
+ ];
500
710
  var AssigneeTypes;
501
711
  (function(AssigneeTypes2) {
502
712
  AssigneeTypes2[AssigneeTypes2["EMPTY_DEFAULT"] = 4] = "EMPTY_DEFAULT";
@@ -522,6 +732,78 @@ var ResponseCode;
522
732
  ResponseCode2["success"] = "SUCCESS";
523
733
  ResponseCode2["failed"] = "FAILED";
524
734
  })(ResponseCode || (ResponseCode = {}));
735
+ var __vue2_script$b = defineComponent({
736
+ components: {
737
+ AntTag: Tag
738
+ },
739
+ props: {
740
+ assigneeType: {
741
+ type: String
742
+ }
743
+ },
744
+ setup() {
745
+ const tagColor = (key) => ["cyan", "orange", "blue", "purple"][AssigneeTypes[key]];
746
+ return {
747
+ AssigneeTypesText,
748
+ tagColor
749
+ };
750
+ }
751
+ });
752
+ var render$b = function() {
753
+ var _vm = this;
754
+ var _h = _vm.$createElement;
755
+ var _c = _vm._self._c || _h;
756
+ return _c("ant-tag", { attrs: { "color": _vm.tagColor(_vm.assigneeType) } }, [_vm._v(" " + _vm._s(_vm.$t(_vm.AssigneeTypesText[_vm.assigneeType])) + " ")]);
757
+ };
758
+ var staticRenderFns$b = [];
759
+ var index_vue_vue_type_style_index_0_scoped_true_lang$5 = "";
760
+ const __cssModules$b = {};
761
+ var __component__$b = /* @__PURE__ */ normalizeComponent(__vue2_script$b, render$b, staticRenderFns$b, false, __vue2_injectStyles$b, "145c1099", null, null);
762
+ function __vue2_injectStyles$b(context) {
763
+ for (let o in __cssModules$b) {
764
+ this[o] = __cssModules$b[o];
765
+ }
766
+ }
767
+ var AssigneeTag = /* @__PURE__ */ function() {
768
+ return __component__$b.exports;
769
+ }();
770
+ var __vue2_script$a = {
771
+ name: "index",
772
+ components: {
773
+ AntTooltip: Tooltip
774
+ },
775
+ props: {
776
+ placement: {
777
+ type: String,
778
+ default: "left"
779
+ },
780
+ tags: {
781
+ type: Array
782
+ },
783
+ maxWidth: {
784
+ type: Number,
785
+ default: 100
786
+ }
787
+ }
788
+ };
789
+ var render$a = function() {
790
+ var _vm = this;
791
+ var _h = _vm.$createElement;
792
+ var _c = _vm._self._c || _h;
793
+ return _c("ant-tooltip", { attrs: { "placement": _vm.placement, "title": _vm.tags ? _vm.tags.join(", ") : "-" } }, [_c("div", { staticClass: "tags-container", style: "max-width:" + _vm.maxWidth + "px" }, [_c("span", [_vm._v(_vm._s(_vm.tags ? _vm.tags.join(", ") : "-"))])])]);
794
+ };
795
+ var staticRenderFns$a = [];
796
+ var index_vue_vue_type_style_index_0_scoped_true_lang$4 = "";
797
+ const __cssModules$a = {};
798
+ var __component__$a = /* @__PURE__ */ normalizeComponent(__vue2_script$a, render$a, staticRenderFns$a, false, __vue2_injectStyles$a, "c4729600", null, null);
799
+ function __vue2_injectStyles$a(context) {
800
+ for (let o in __cssModules$a) {
801
+ this[o] = __cssModules$a[o];
802
+ }
803
+ }
804
+ var TagsWithTooltip = /* @__PURE__ */ function() {
805
+ return __component__$a.exports;
806
+ }();
525
807
  var TaskTypes;
526
808
  (function(TaskTypes2) {
527
809
  TaskTypes2["clientUpload"] = "Client Upload";
@@ -543,6 +825,7 @@ var useChangeVal = (props, emit) => (k, v) => {
543
825
  };
544
826
  var __vue2_script$9 = defineComponent({
545
827
  name: "aFileUploader",
828
+ components: { AntUpload: Upload, AntTag: Tag },
546
829
  props: {
547
830
  value: {
548
831
  type: Array,
@@ -611,16 +894,16 @@ var render$9 = function() {
611
894
  var _vm = this;
612
895
  var _h = _vm.$createElement;
613
896
  var _c = _vm._self._c || _h;
614
- return _c("div", { staticClass: "container" }, [_c("a-upload", { staticStyle: { "display": "inline" }, attrs: { "disabled": _vm.loading, "before-upload": _vm.beforeUpload, "action": "javascript:;", "fileList": [] } }, [_c("a-tag", [_vm._v(" " + _vm._s(_vm.$t("message.selectFile")) + " ")]), _vm.value.length ? _c("div", { staticStyle: { "display": "inline-block" } }, _vm._l(_vm.value, function(file) {
615
- return _c("a-tag", { key: file.id, attrs: { "closable": "" }, on: { "close": function($event) {
897
+ return _c("div", { staticClass: "container" }, [_c("ant-upload", { staticStyle: { "display": "inline" }, attrs: { "disabled": _vm.loading, "before-upload": _vm.beforeUpload, "action": "javascript:;", "fileList": [] } }, [_c("ant-tag", [_vm._v(" " + _vm._s(_vm.$t("message.selectFile")) + " ")]), _vm.value.length ? _c("div", { staticStyle: { "display": "inline-block" } }, _vm._l(_vm.value, function(file) {
898
+ return _c("ant-tag", { key: file.id, attrs: { "closable": "" }, on: { "close": function($event) {
616
899
  return _vm.remove(file.id);
617
- } } }, [_vm._v(_vm._s(file.name))]);
900
+ } } }, [_vm._v(_vm._s(file.name) + " ")]);
618
901
  }), 1) : _c("span", { staticStyle: { "color": "#ccc" } }, [_vm._v(_vm._s(_vm.allowFiles.join(" ")))])], 1)], 1);
619
902
  };
620
903
  var staticRenderFns$9 = [];
621
904
  var aFileUploader_vue_vue_type_style_index_0_scoped_true_lang = "";
622
905
  const __cssModules$9 = {};
623
- var __component__$9 = /* @__PURE__ */ normalizeComponent(__vue2_script$9, render$9, staticRenderFns$9, false, __vue2_injectStyles$9, "afd84cca", null, null);
906
+ var __component__$9 = /* @__PURE__ */ normalizeComponent(__vue2_script$9, render$9, staticRenderFns$9, false, __vue2_injectStyles$9, "d2a7dbe0", null, null);
624
907
  function __vue2_injectStyles$9(context) {
625
908
  for (let o in __cssModules$9) {
626
909
  this[o] = __cssModules$9[o];
@@ -629,7 +912,7 @@ function __vue2_injectStyles$9(context) {
629
912
  var AFileUploader = /* @__PURE__ */ function() {
630
913
  return __component__$9.exports;
631
914
  }();
632
- const refactorParams = (record) => {
915
+ var refactorParams = (record) => {
633
916
  var _a2;
634
917
  return {
635
918
  id: record.id,
@@ -666,6 +949,19 @@ const roles = [
666
949
  ];
667
950
  var __vue2_script$8 = defineComponent({
668
951
  name: "index",
952
+ components: {
953
+ AntForm: Form,
954
+ AntFormItem: Form.Item,
955
+ AntRow: Row,
956
+ AntCol: Col,
957
+ AntSelect: Select,
958
+ AntSelectOption: Select.Option,
959
+ AntRadioGroup: Radio.Group,
960
+ AntRadio: Radio,
961
+ AntTextarea: Input.TextArea,
962
+ AntInput: Input,
963
+ AFileUploader
964
+ },
669
965
  props: {
670
966
  value: {
671
967
  type: Object,
@@ -676,7 +972,6 @@ var __vue2_script$8 = defineComponent({
676
972
  required: true
677
973
  }
678
974
  },
679
- components: { AFileUploader },
680
975
  setup(props, { emit }) {
681
976
  const nameError = ref$1(false);
682
977
  const typeError = ref$1(false);
@@ -713,28 +1008,28 @@ var render$8 = function() {
713
1008
  var _vm = this;
714
1009
  var _h = _vm.$createElement;
715
1010
  var _c = _vm._self._c || _h;
716
- return _c("a-form", { staticClass: "add-edit-task-modal", on: { "submit": function(e) {
1011
+ return _c("ant-form", { staticClass: "add-edit-task-modal", on: { "submit": function(e) {
717
1012
  return e.preventDefault();
718
- } } }, [_c("a-row", { attrs: { "gutter": 20 } }, [_c("a-col", { attrs: { "span": 12 } }, [_c("a-form-item", { attrs: { "name": "taskName", "label": _vm.$t("message.taskName"), "help": _vm.nameError ? _vm.$t("message.required") : void 0, "validate-status": _vm.nameError ? "error" : void 0 } }, [_c("a-input", { attrs: { "value": _vm.value.taskName }, on: { "input": function($event) {
1013
+ } } }, [_c("ant-row", { attrs: { "gutter": 20 } }, [_c("ant-col", { attrs: { "span": 12 } }, [_c("ant-form-item", { attrs: { "name": "taskName", "label": _vm.$t("message.taskName"), "help": _vm.nameError ? _vm.$t("message.required") : void 0, "validate-status": _vm.nameError ? "error" : void 0 } }, [_c("ant-input", { attrs: { "value": _vm.value.taskName }, on: { "input": function($event) {
719
1014
  return _vm.changeVal("taskName", $event.target.value);
720
- } } })], 1)], 1), _c("a-col", { attrs: { "span": 12 } }, [_c("a-form-item", { attrs: { "label": _vm.$t("message.assignee") + "(" + _vm.$t("message.optional") + ")" } }, [_c("a-select", { staticStyle: { "min-width": "170px" }, attrs: { "value": _vm.value.isEmployee, "allowClear": true }, on: { "change": function($event) {
1015
+ } } })], 1)], 1), _c("ant-col", { attrs: { "span": 12 } }, [_c("ant-form-item", { attrs: { "label": _vm.$t("message.assignee") + "(" + _vm.$t("message.optional") + ")" } }, [_c("ant-select", { staticStyle: { "min-width": "170px" }, attrs: { "value": _vm.value.isEmployee, "allowClear": true }, on: { "change": function($event) {
721
1016
  return _vm.changeVal("isEmployee", $event);
722
1017
  } } }, _vm._l(_vm.roles, function(role) {
723
- return _c("a-select-option", { key: role.id, attrs: { "value": role.key } }, [_c("span", { staticStyle: { "text-transform": "capitalize" } }, [_vm._v(" " + _vm._s(_vm.$t("message." + role.i18nKey)) + " ")])]);
724
- }), 1)], 1)], 1)], 1), _c("a-form-item", { attrs: { "label": _vm.$t("message.type"), "help": _vm.typeError ? _vm.$t("message.required") : void 0, "validate-status": _vm.typeError ? "error" : void 0 } }, [_vm.value.generalTaskType !== _vm.TaskTypes.worksheet ? _c("a-radio-group", { attrs: { "value": _vm.value.generalTaskType }, on: { "change": function($event) {
1018
+ return _c("ant-select-option", { key: role.id, attrs: { "value": role.key } }, [_c("span", { staticStyle: { "text-transform": "capitalize" } }, [_vm._v(" " + _vm._s(_vm.$t("message." + role.i18nKey)) + " ")])]);
1019
+ }), 1)], 1)], 1)], 1), _c("ant-form-item", { attrs: { "label": _vm.$t("message.type"), "help": _vm.typeError ? _vm.$t("message.required") : void 0, "validate-status": _vm.typeError ? "error" : void 0 } }, [_vm.value.generalTaskType !== _vm.TaskTypes.worksheet ? _c("ant-radio-group", { attrs: { "value": _vm.value.generalTaskType }, on: { "change": function($event) {
725
1020
  return _vm.changeVal("generalTaskType", $event.target.value);
726
- } } }, [_c("a-radio", { attrs: { "value": _vm.TaskTypes.clientUpload } }, [_vm._v(" " + _vm._s(_vm.$t("message.clientUpload")) + " ")]), _c("a-radio", { attrs: { "value": _vm.TaskTypes.clientReview, "disabled": _vm.isAttorneySelected } }, [_vm._v(" " + _vm._s(_vm.$t("message.clientReview")) + " ")])], 1) : _vm._e()], 1), _c("a-form-item", { attrs: { "label": _vm.$t("message.descriptions") + "(" + _vm.$t("message.optional") + ")" } }, [_c("a-textarea", { attrs: { "value": _vm.value.descriptions }, on: { "input": function($event) {
1021
+ } } }, [_c("ant-radio", { attrs: { "value": _vm.TaskTypes.clientUpload } }, [_vm._v(" " + _vm._s(_vm.$t("message.clientUpload")) + " ")]), _c("ant-radio", { attrs: { "value": _vm.TaskTypes.clientReview, "disabled": _vm.isAttorneySelected } }, [_vm._v(" " + _vm._s(_vm.$t("message.clientReview")) + " ")])], 1) : _vm._e()], 1), _c("ant-form-item", { attrs: { "label": _vm.$t("message.descriptions") + "(" + _vm.$t("message.optional") + ")" } }, [_c("ant-textarea", { attrs: { "value": _vm.value.descriptions }, on: { "input": function($event) {
727
1022
  return _vm.changeVal("descriptions", $event.target.value);
728
- } } })], 1), _c("a-form-item", { attrs: { "label": _vm.$t("message.attachment") + "(" + _vm.$t("message.optional") + ")" } }, [_c("a-file-uploader", { attrs: { "value": _vm.value.sampleDocs, "uploadFilesFunc": _vm.uploadFilesFunc }, on: { "change": function($event) {
1023
+ } } })], 1), _c("ant-form-item", { attrs: { "label": _vm.$t("message.attachment") + "(" + _vm.$t("message.optional") + ")" } }, [_c("a-file-uploader", { attrs: { "value": _vm.value.sampleDocs, "uploadFilesFunc": _vm.uploadFilesFunc }, on: { "change": function($event) {
729
1024
  return _vm.changeVal("sampleDocs", $event);
730
- } } })], 1), _c("a-form-item", { attrs: { "label": _vm.$t("message.tags") + "(" + _vm.$t("message.optional") + ")" } }, [_c("a-select", { attrs: { "mode": "tags", "value": _vm.value.tagList, "options": [] }, on: { "change": function($event) {
1025
+ } } })], 1), _c("ant-form-item", { attrs: { "label": _vm.$t("message.tags") + "(" + _vm.$t("message.optional") + ")" } }, [_c("ant-select", { attrs: { "mode": "tags", "value": _vm.value.tagList, "options": [] }, on: { "change": function($event) {
731
1026
  return _vm.changeVal("tagList", $event);
732
1027
  } } })], 1)], 1);
733
1028
  };
734
1029
  var staticRenderFns$8 = [];
735
1030
  var index_vue_vue_type_style_index_0_scoped_true_lang$3 = "";
736
1031
  const __cssModules$8 = {};
737
- var __component__$8 = /* @__PURE__ */ normalizeComponent(__vue2_script$8, render$8, staticRenderFns$8, false, __vue2_injectStyles$8, "7e2b3dce", null, null);
1032
+ var __component__$8 = /* @__PURE__ */ normalizeComponent(__vue2_script$8, render$8, staticRenderFns$8, false, __vue2_injectStyles$8, "40080928", null, null);
738
1033
  function __vue2_injectStyles$8(context) {
739
1034
  for (let o in __cssModules$8) {
740
1035
  this[o] = __cssModules$8[o];
@@ -745,7 +1040,7 @@ var TaskForm = /* @__PURE__ */ function() {
745
1040
  }();
746
1041
  var __vue2_script$7 = defineComponent({
747
1042
  name: "NewTask",
748
- components: { AFileUploader, TaskForm },
1043
+ components: { AFileUploader, TaskForm, AntModal: Modal, AntCheckbox: Checkbox, AntButton: Button },
749
1044
  props: {
750
1045
  visible: {
751
1046
  type: Boolean,
@@ -833,22 +1128,22 @@ var render$7 = function() {
833
1128
  var _vm = this;
834
1129
  var _h = _vm.$createElement;
835
1130
  var _c = _vm._self._c || _h;
836
- return _c("a-modal", { attrs: { "id": "venus-component-new-task", "visible": _vm.visible, "title": _vm.value.taskTemplateObj.id ? _vm.$t("message.editTask") : _vm.$t("message.newTask"), "width": "700px" }, on: { "cancel": function($event) {
1131
+ return _c("ant-modal", { attrs: { "id": "venus-component-new-task", "visible": _vm.visible, "title": _vm.value.taskTemplateObj.id ? _vm.$t("message.editTask") : _vm.$t("message.newTask"), "width": "700px" }, on: { "cancel": function($event) {
837
1132
  return _vm.changeVisible(false);
838
1133
  } }, scopedSlots: _vm._u([{ key: "footer", fn: function() {
839
- return [_c("div", { staticClass: "footer" }, [_vm.showSendEmail ? _c("div", { staticStyle: { "float": "left", "padding-top": "5px", "padding-left": "10px" } }, [_c("a-checkbox", { attrs: { "checked": _vm.value.isNotified }, on: { "change": function($event) {
1134
+ return [_c("div", { staticClass: "footer" }, [_vm.showSendEmail ? _c("div", { staticStyle: { "float": "left", "padding-top": "5px", "padding-left": "10px" } }, [_c("ant-checkbox", { attrs: { "checked": _vm.value.isNotified }, on: { "change": function($event) {
840
1135
  return _vm.changeVal("isNotified", $event.target.checked);
841
- } } }, [_vm._v(" " + _vm._s(_vm.$t("message.sendEmail")) + " ")])], 1) : _vm._e(), _c("div", [_c("a-button", { attrs: { "loading": _vm.loading, "type": "primary" }, on: { "click": _vm.submit } }, [_vm._v(_vm._s(_vm.$t("message.submit")) + " ")]), _c("a-button", { on: { "click": function($event) {
1136
+ } } }, [_vm._v(" " + _vm._s(_vm.$t("message.sendEmail")) + " ")])], 1) : _vm._e(), _c("div", [_c("ant-button", { attrs: { "loading": _vm.loading, "type": "primary" }, on: { "click": _vm.submit } }, [_vm._v(_vm._s(_vm.$t("message.submit")) + " ")]), _c("ant-button", { on: { "click": function($event) {
842
1137
  return _vm.changeVisible(false);
843
1138
  } } }, [_vm._v(_vm._s(_vm.$t("message.cancel")) + " ")])], 1)])];
844
- }, proxy: true }]) }, [_c("task-form", { ref: "taskForm", attrs: { "upload-files-func": _vm.uploadFilesFunc, "law-firm-id": _vm.lawFirmId, "user-id": _vm.userId, "value": _vm.value.taskTemplateObj }, on: { "update:value": _vm.updateFormValue } }), _vm.showAddToList ? _c("a-checkbox", { attrs: { "checked": _vm.value.isAddedToTask }, on: { "change": function($event) {
1139
+ }, proxy: true }]) }, [_c("task-form", { ref: "taskForm", attrs: { "upload-files-func": _vm.uploadFilesFunc, "law-firm-id": _vm.lawFirmId, "user-id": _vm.userId, "value": _vm.value.taskTemplateObj }, on: { "update:value": _vm.updateFormValue } }), _vm.showAddToList ? _c("ant-checkbox", { attrs: { "checked": _vm.value.isAddedToTask }, on: { "change": function($event) {
845
1140
  return _vm.changeVal("isAddedToTask", $event.target.checked);
846
1141
  } } }, [_vm._v(" " + _vm._s(_vm.$t("message.addToTaskList")) + " ")]) : _vm._e()], 1);
847
1142
  };
848
1143
  var staticRenderFns$7 = [];
849
1144
  var index_vue_vue_type_style_index_0_scoped_true_lang$2 = "";
850
1145
  const __cssModules$7 = {};
851
- var __component__$7 = /* @__PURE__ */ normalizeComponent(__vue2_script$7, render$7, staticRenderFns$7, false, __vue2_injectStyles$7, "be167d3a", null, null);
1146
+ var __component__$7 = /* @__PURE__ */ normalizeComponent(__vue2_script$7, render$7, staticRenderFns$7, false, __vue2_injectStyles$7, "6a05980e", null, null);
852
1147
  function __vue2_injectStyles$7(context) {
853
1148
  for (let o in __cssModules$7) {
854
1149
  this[o] = __cssModules$7[o];
@@ -859,6 +1154,12 @@ var NewTask = /* @__PURE__ */ function() {
859
1154
  }();
860
1155
  var __vue2_script$6 = defineComponent({
861
1156
  name: "taskTemplateFilter",
1157
+ components: {
1158
+ AntInput: Input,
1159
+ AntButton: Button,
1160
+ AntCheckbox: Checkbox,
1161
+ AntCheckboxGroup: Checkbox.Group
1162
+ },
862
1163
  props: {
863
1164
  conditions: {
864
1165
  type: Object,
@@ -892,20 +1193,20 @@ var render$6 = function() {
892
1193
  var _vm = this;
893
1194
  var _h = _vm.$createElement;
894
1195
  var _c = _vm._self._c || _h;
895
- return _c("div", { staticClass: "filter mb-5" }, [_c("a-input", { staticStyle: { "width": "300px" }, attrs: { "value": _vm.conditions.keywords }, on: { "input": function($event) {
1196
+ return _c("div", { staticClass: "filter mb-5" }, [_c("ant-input", { staticStyle: { "width": "300px" }, attrs: { "value": _vm.conditions.keywords }, on: { "input": function($event) {
896
1197
  return _vm.changeVal("keywords", $event.target.value);
897
1198
  } }, scopedSlots: _vm._u([{ key: "suffix", fn: function() {
898
1199
  return void 0;
899
- }, proxy: true }]) }), _c("a-button", { class: { taskTemplateInline: _vm.inline }, staticStyle: { "margin-left": "20px", "float": "right" }, on: { "click": function($event) {
1200
+ }, proxy: true }]) }), _c("ant-button", { class: { taskTemplateInline: _vm.inline }, staticStyle: { "margin-left": "20px", "float": "right" }, on: { "click": function($event) {
900
1201
  return _vm.$emit("update:newTaskVisible", true);
901
- } } }, [_vm._v(" " + _vm._s(_vm.$t("message.newTask")) + " ")]), _vm.taskSettingPageUrl ? _c("a", { class: { taskTemplateInline: _vm.inline }, staticStyle: { "float": "right", "margin-top": "5px", "color": "dodgerblue !important" }, attrs: { "href": _vm.taskSettingPageUrl, "target": "_blank" } }, [_vm._v(" " + _vm._s(_vm.$t("message.taskSetting")) + " ")]) : _vm._e(), _c("div", { class: { taskTemplateInline: _vm.inline }, staticStyle: { "margin-top": "20px" } }, [_c("a-checkbox-group", { attrs: { "value": _vm.conditions.isEmployee }, on: { "change": function($event) {
1202
+ } } }, [_vm._v(" " + _vm._s(_vm.$t("message.newTask")) + " ")]), _vm.taskSettingPageUrl ? _c("a", { class: { taskTemplateInline: _vm.inline }, staticStyle: { "float": "right", "margin-top": "5px", "color": "dodgerblue !important" }, attrs: { "href": _vm.taskSettingPageUrl, "target": "_blank" } }, [_vm._v(" " + _vm._s(_vm.$t("message.taskSetting")) + " ")]) : _vm._e(), _c("div", { class: { taskTemplateInline: _vm.inline }, staticStyle: { "margin-top": "20px" } }, [_c("ant-checkbox-group", { attrs: { "value": _vm.conditions.isEmployee }, on: { "change": function($event) {
902
1203
  return _vm.changeVal("isEmployee", $event);
903
- } } }, [_c("a-checkbox", { attrs: { "value": _vm.AssigneeTypes.ATTORNEY } }, [_vm._v(_vm._s(_vm.$t("message.attorney")) + " ")]), _c("a-checkbox", { attrs: { "value": _vm.AssigneeTypes.BENEFICIARY } }, [_vm._v(_vm._s(_vm.$t("message.beneficiary")) + " ")]), _c("a-checkbox", { attrs: { "value": _vm.AssigneeTypes.PETITIONER } }, [_vm._v(_vm._s(_vm.$t("message.petitioner")) + " ")])], 1)], 1)], 1);
1204
+ } } }, [_c("ant-checkbox", { attrs: { "value": _vm.AssigneeTypes.ATTORNEY } }, [_vm._v(_vm._s(_vm.$t("message.attorney")) + " ")]), _c("ant-checkbox", { attrs: { "value": _vm.AssigneeTypes.BENEFICIARY } }, [_vm._v(_vm._s(_vm.$t("message.beneficiary")) + " ")]), _c("ant-checkbox", { attrs: { "value": _vm.AssigneeTypes.PETITIONER } }, [_vm._v(_vm._s(_vm.$t("message.petitioner")) + " ")])], 1)], 1)], 1);
904
1205
  };
905
1206
  var staticRenderFns$6 = [];
906
1207
  var index_vue_vue_type_style_index_0_scoped_true_lang$1 = "";
907
1208
  const __cssModules$6 = {};
908
- var __component__$6 = /* @__PURE__ */ normalizeComponent(__vue2_script$6, render$6, staticRenderFns$6, false, __vue2_injectStyles$6, "26adfbde", null, null);
1209
+ var __component__$6 = /* @__PURE__ */ normalizeComponent(__vue2_script$6, render$6, staticRenderFns$6, false, __vue2_injectStyles$6, "3f1928ba", null, null);
909
1210
  function __vue2_injectStyles$6(context) {
910
1211
  for (let o in __cssModules$6) {
911
1212
  this[o] = __cssModules$6[o];
@@ -1881,6 +2182,12 @@ function useT() {
1881
2182
  }
1882
2183
  var __vue2_script$5 = defineComponent({
1883
2184
  name: "TaskTablePure",
2185
+ components: {
2186
+ AntTable: Table,
2187
+ AntButton: Button,
2188
+ AssigneeTag,
2189
+ TagsWithTooltip
2190
+ },
1884
2191
  props: {
1885
2192
  addedTasks: {
1886
2193
  type: Array,
@@ -1938,11 +2245,8 @@ var __vue2_script$5 = defineComponent({
1938
2245
  }
1939
2246
  ];
1940
2247
  const isTemplateAdded = (record) => addedTasks.value.some((added) => added.id === record.id);
1941
- const tagColor = (key) => ["cyan", "orange", "blue", "purple"][AssigneeTypes[key]];
1942
2248
  return {
1943
2249
  isTemplateAdded,
1944
- tagColor,
1945
- AssigneeTypesText,
1946
2250
  columns
1947
2251
  };
1948
2252
  }
@@ -1951,18 +2255,18 @@ var render$5 = function() {
1951
2255
  var _vm = this;
1952
2256
  var _h = _vm.$createElement;
1953
2257
  var _c = _vm._self._c || _h;
1954
- return _c("div", [_c("a-table", { attrs: { "dataSource": _vm.dataSource, "rowKey": "id", "columns": _vm.columns, "pagination": _vm.pagination, "loading": _vm.loading }, on: { "change": function($event) {
2258
+ return _c("div", [_c("ant-table", { attrs: { "dataSource": _vm.dataSource, "rowKey": "id", "columns": _vm.columns, "pagination": _vm.pagination, "loading": _vm.loading }, on: { "change": function($event) {
1955
2259
  return _vm.$emit("changePagination", $event);
1956
2260
  } }, scopedSlots: _vm._u([{ key: "taskName", fn: function(text, record) {
1957
- return _c("span", {}, [_c("span", { staticStyle: { "display": "inline-block", "width": "250px" } }, [_vm._v(_vm._s(text))]), _c("a-tag", { attrs: { "color": _vm.tagColor(record.isEmployee) } }, [_vm._v(" " + _vm._s(_vm.$t(_vm.AssigneeTypesText[record.isEmployee])) + " ")])], 1);
1958
- } }, { key: "tagList", fn: function(text) {
1959
- return [_c("a-tooltip", { attrs: { "placement": "left", "title": text ? text.join(", ") : "-" } }, [_c("div", { staticClass: "tags-container" }, [_c("span", [_vm._v(_vm._s(text ? text.join(", ") : "-"))])])])];
2261
+ return _c("span", {}, [_c("span", { staticStyle: { "display": "inline-block", "width": "250px" } }, [_vm._v(_vm._s(text))]), _c("assignee-tag", { attrs: { "assignee-type": record.isEmployee } })], 1);
2262
+ } }, { key: "tagList", fn: function(tags) {
2263
+ return [_c("tags-with-tooltip", { attrs: { "tags": tags } })];
1960
2264
  } }, { key: "operation", fn: function(_, record) {
1961
- return [_vm.showEdit ? _c("a-button", { staticClass: "mr-2", attrs: { "disabled": _vm.isTemplateAdded(record) || record.isGallery, "size": "small" }, on: { "click": function($event) {
2265
+ return [_vm.showEdit ? _c("ant-button", { staticClass: "mr-2", attrs: { "disabled": _vm.isTemplateAdded(record) || record.isGallery, "size": "small" }, on: { "click": function($event) {
1962
2266
  return _vm.$emit("editTask", record);
1963
- } } }, [_vm._v(" " + _vm._s(_vm.$t("message.editTask")) + " ")]) : _vm._e(), _vm.isTemplateAdded(record) ? _c("a-button", { staticStyle: { "width": "70px" }, attrs: { "size": "small", "type": "danger" }, on: { "click": function($event) {
2267
+ } } }, [_vm._v(" " + _vm._s(_vm.$t("message.editTask")) + " ")]) : _vm._e(), _vm.isTemplateAdded(record) ? _c("ant-button", { staticStyle: { "width": "70px" }, attrs: { "size": "small", "type": "danger" }, on: { "click": function($event) {
1964
2268
  return _vm.$emit("removeTask", record);
1965
- } } }, [_vm._v(" " + _vm._s(_vm.$t("message.remove")) + " ")]) : _c("a-button", { staticStyle: { "width": "70px" }, attrs: { "size": "small", "type": "primary" }, on: { "click": function($event) {
2269
+ } } }, [_vm._v(" " + _vm._s(_vm.$t("message.remove")) + " ")]) : _c("ant-button", { staticStyle: { "width": "70px" }, attrs: { "size": "small", "type": "primary" }, on: { "click": function($event) {
1966
2270
  return _vm.$emit("addTask", record);
1967
2271
  } } }, [_vm._v(" " + _vm._s(_vm.$t("message.add")) + " ")])];
1968
2272
  } }]) })], 1);
@@ -1970,7 +2274,7 @@ var render$5 = function() {
1970
2274
  var staticRenderFns$5 = [];
1971
2275
  var TaskTablePure_vue_vue_type_style_index_0_scoped_true_lang = "";
1972
2276
  const __cssModules$5 = {};
1973
- var __component__$5 = /* @__PURE__ */ normalizeComponent(__vue2_script$5, render$5, staticRenderFns$5, false, __vue2_injectStyles$5, "2fe21258", null, null);
2277
+ var __component__$5 = /* @__PURE__ */ normalizeComponent(__vue2_script$5, render$5, staticRenderFns$5, false, __vue2_injectStyles$5, "278e8b7a", null, null);
1974
2278
  function __vue2_injectStyles$5(context) {
1975
2279
  for (let o in __cssModules$5) {
1976
2280
  this[o] = __cssModules$5[o];
@@ -1995,36 +2299,41 @@ var useSearchTaskTemplates = (pagination, conditions = ref$1({}), lawFirmId) =>
1995
2299
  }));
1996
2300
  };
1997
2301
  const taskTemplateFragment = gql`
1998
- fragment taskTemplate on TaskTemplate {
1999
- id
2000
- taskName
2001
- tagList
2002
- isEmployee
2003
- generalTaskType
2004
- descriptions
2005
- sampleDocs {
2006
- id
2007
- name
2008
- link
2302
+ fragment taskTemplate on TaskTemplate {
2303
+ id
2304
+ taskName
2305
+ tagList
2306
+ isEmployee
2307
+ generalTaskType
2308
+ descriptions
2309
+ sampleDocs {
2310
+ id
2311
+ name
2312
+ link
2313
+ }
2314
+ updatedUser{
2315
+ id
2316
+ name
2317
+ }
2318
+ updatedOn
2009
2319
  }
2010
- }
2011
2320
  `;
2012
2321
  const SearchTaskTemplatesQuery = gql`
2013
- query taskTemplateSearch(
2014
- $query: TaskTemplateFilterInput!
2015
- $startIndex: Int
2016
- $endIndex: Int
2017
- $lawFirmId: Int!
2018
- ) {
2019
- taskTemplateSearch(query: $query) {
2020
- numResult
2021
- taskTemplateList(startIndex: $startIndex, endIndex: $endIndex) {
2022
- ...taskTemplate
2023
- isGallery(selfLawFirmId: $lawFirmId)
2024
- }
2322
+ query taskTemplateSearch(
2323
+ $query: TaskTemplateFilterInput!
2324
+ $startIndex: Int
2325
+ $endIndex: Int
2326
+ $lawFirmId: Int!
2327
+ ) {
2328
+ taskTemplateSearch(query: $query) {
2329
+ numResult
2330
+ taskTemplateList(startIndex: $startIndex, endIndex: $endIndex) {
2331
+ ...taskTemplate
2332
+ isGallery(selfLawFirmId: $lawFirmId)
2333
+ }
2334
+ }
2025
2335
  }
2026
- }
2027
- ${taskTemplateFragment}
2336
+ ${taskTemplateFragment}
2028
2337
  `;
2029
2338
  var useTaskActions = (addedTasks, emit) => {
2030
2339
  const addTask = (record) => emit("update:addedTasks", [...addedTasks.value, record]);
@@ -2042,6 +2351,43 @@ var useTaskActions = (addedTasks, emit) => {
2042
2351
  removeTask
2043
2352
  };
2044
2353
  };
2354
+ var useTaskTemplateTableData = (props, emit) => {
2355
+ const initialPagination = ref$1({
2356
+ current: 1,
2357
+ pageSize: 6,
2358
+ total: 0
2359
+ });
2360
+ const { conditions, addedTasks = ref$1([]) } = toRefs$1(props);
2361
+ const { result, loading, refetch } = useSearchTaskTemplates(initialPagination, conditions, props.lawFirmId);
2362
+ const dataSource = computed(() => {
2363
+ var _a2;
2364
+ return ((_a2 = result.value) == null ? void 0 : _a2.taskTemplateSearch.taskTemplateList) || [];
2365
+ });
2366
+ const total = computed(() => {
2367
+ var _a2;
2368
+ return ((_a2 = result.value) == null ? void 0 : _a2.taskTemplateSearch.numResult) || 0;
2369
+ });
2370
+ const pagination = computed(() => __spreadProps(__spreadValues({}, initialPagination.value), {
2371
+ total: total.value
2372
+ }));
2373
+ const changePagination = (pagination2) => {
2374
+ initialPagination.value = __spreadValues({}, pagination2);
2375
+ };
2376
+ const { addTask, editTask, removeTask } = useTaskActions(addedTasks, emit);
2377
+ return {
2378
+ addTask,
2379
+ editTask,
2380
+ removeTask,
2381
+ changePagination,
2382
+ pagination,
2383
+ dataSource,
2384
+ result,
2385
+ loading,
2386
+ refetch,
2387
+ conditions,
2388
+ addedTasks
2389
+ };
2390
+ };
2045
2391
  var __vue2_script$4 = defineComponent({
2046
2392
  name: "TaskTable",
2047
2393
  components: {
@@ -2062,28 +2408,16 @@ var __vue2_script$4 = defineComponent({
2062
2408
  }
2063
2409
  },
2064
2410
  setup(props, { emit }) {
2065
- const initialPagination = ref$1({
2066
- current: 1,
2067
- pageSize: 6,
2068
- total: 0
2069
- });
2070
- const { conditions, addedTasks } = toRefs$1(props);
2071
- const { result, loading, refetch } = useSearchTaskTemplates(initialPagination, conditions, props.lawFirmId);
2072
- const dataSource = computed(() => {
2073
- var _a2;
2074
- return ((_a2 = result.value) == null ? void 0 : _a2.taskTemplateSearch.taskTemplateList) || [];
2075
- });
2076
- const total = computed(() => {
2077
- var _a2;
2078
- return ((_a2 = result.value) == null ? void 0 : _a2.taskTemplateSearch.numResult) || 0;
2079
- });
2080
- const pagination = computed(() => __spreadProps(__spreadValues({}, initialPagination.value), {
2081
- total: total.value
2082
- }));
2083
- const changePagination = (pagination2) => {
2084
- initialPagination.value = __spreadValues({}, pagination2);
2085
- };
2086
- const { addTask, editTask, removeTask } = useTaskActions(addedTasks, emit);
2411
+ const {
2412
+ loading,
2413
+ refetch,
2414
+ dataSource,
2415
+ pagination,
2416
+ changePagination,
2417
+ addTask,
2418
+ editTask,
2419
+ removeTask
2420
+ } = useTaskTemplateTableData(props, emit);
2087
2421
  return {
2088
2422
  loading,
2089
2423
  refetch,
@@ -2106,7 +2440,7 @@ var render$4 = function() {
2106
2440
  var staticRenderFns$4 = [];
2107
2441
  var TaskTable_vue_vue_type_style_index_0_scoped_true_lang = "";
2108
2442
  const __cssModules$4 = {};
2109
- var __component__$4 = /* @__PURE__ */ normalizeComponent(__vue2_script$4, render$4, staticRenderFns$4, false, __vue2_injectStyles$4, "1c55bb88", null, null);
2443
+ var __component__$4 = /* @__PURE__ */ normalizeComponent(__vue2_script$4, render$4, staticRenderFns$4, false, __vue2_injectStyles$4, "52cec9c7", null, null);
2110
2444
  function __vue2_injectStyles$4(context) {
2111
2445
  for (let o in __cssModules$4) {
2112
2446
  this[o] = __cssModules$4[o];
@@ -2127,7 +2461,10 @@ var __vue2_script$3 = defineComponent({
2127
2461
  name: "MainModal",
2128
2462
  components: {
2129
2463
  TaskTable,
2130
- TaskTemplateFilter
2464
+ TaskTemplateFilter,
2465
+ AntModal: Modal,
2466
+ AntButton: Button,
2467
+ AntBadge: Badge
2131
2468
  },
2132
2469
  props: {
2133
2470
  visible: {
@@ -2161,15 +2498,15 @@ var render$3 = function() {
2161
2498
  var _vm = this;
2162
2499
  var _h = _vm.$createElement;
2163
2500
  var _c = _vm._self._c || _h;
2164
- return _c("a-modal", { staticClass: "task-cart-main-modal", attrs: { "zIndex": 800, "width": 900, "visible": _vm.visible, "title": _vm.$t("message.addTask") }, on: { "cancel": function($event) {
2501
+ return _c("ant-modal", { staticClass: "task-cart-main-modal", attrs: { "zIndex": 800, "width": 900, "visible": _vm.visible, "title": _vm.$t("message.addTask") }, on: { "cancel": function($event) {
2165
2502
  return _vm.$emit("update:visible", false);
2166
2503
  } }, scopedSlots: _vm._u([{ key: "footer", fn: function() {
2167
- return [_c("a-button", { staticStyle: { "margin-right": "20px" }, on: { "click": function($event) {
2504
+ return [_c("ant-button", { staticStyle: { "margin-right": "20px" }, on: { "click": function($event) {
2168
2505
  return _vm.$emit("update:visible", false);
2169
- } } }, [_vm._v("Cancel ")]), _c("a-badge", { attrs: { "count": _vm.addedTasks.length } }, [_c("a-button", { attrs: { "disabled": _vm.addedTasks.length === 0, "type": "primary" }, on: { "click": function($event) {
2506
+ } } }, [_vm._v("Cancel ")]), _c("ant-badge", { attrs: { "count": _vm.addedTasks.length } }, [_c("ant-button", { attrs: { "disabled": _vm.addedTasks.length === 0, "type": "primary" }, on: { "click": function($event) {
2170
2507
  return _vm.$emit("update:reviewModalVisible", true);
2171
2508
  } } }, [_vm._v(" " + _vm._s(_vm.$t("message.reviewTasks")) + " ")])], 1)];
2172
- }, proxy: true }]) }, [_c("task-template-filter", { attrs: { "inline": true, "show-task-home-page-link": true, "task-setting-page-url": _vm.taskSettingPageUrl, "conditions": _vm.conditions }, on: { "update:conditions": function($event) {
2509
+ }, proxy: true }]) }, [_c("task-template-filter", { attrs: { "show-task-home-page-link": true, "task-setting-page-url": _vm.taskSettingPageUrl, "conditions": _vm.conditions }, on: { "update:conditions": function($event) {
2173
2510
  _vm.conditions = $event;
2174
2511
  }, "update:newTaskVisible": function($event) {
2175
2512
  return _vm.$emit("update:newTaskVisible", true);
@@ -2184,7 +2521,7 @@ var render$3 = function() {
2184
2521
  var staticRenderFns$3 = [];
2185
2522
  var MainModal_vue_vue_type_style_index_0_scoped_true_lang = "";
2186
2523
  const __cssModules$3 = {};
2187
- var __component__$3 = /* @__PURE__ */ normalizeComponent(__vue2_script$3, render$3, staticRenderFns$3, false, __vue2_injectStyles$3, "81205b02", null, null);
2524
+ var __component__$3 = /* @__PURE__ */ normalizeComponent(__vue2_script$3, render$3, staticRenderFns$3, false, __vue2_injectStyles$3, "66be2b44", null, null);
2188
2525
  function __vue2_injectStyles$3(context) {
2189
2526
  for (let o in __cssModules$3) {
2190
2527
  this[o] = __cssModules$3[o];
@@ -2196,7 +2533,10 @@ var MainModal = /* @__PURE__ */ function() {
2196
2533
  var __vue2_script$2 = defineComponent({
2197
2534
  name: "ReviewModal",
2198
2535
  components: {
2199
- TaskTablePure
2536
+ TaskTablePure,
2537
+ AntModal: Modal,
2538
+ AntCheckbox: Checkbox,
2539
+ AntButton: Button
2200
2540
  },
2201
2541
  props: {
2202
2542
  visible: {
@@ -2252,11 +2592,13 @@ var render$2 = function() {
2252
2592
  var _vm = this;
2253
2593
  var _h = _vm.$createElement;
2254
2594
  var _c = _vm._self._c || _h;
2255
- return _c("a-modal", { attrs: { "zIndex": 900, "width": "900px", "visible": _vm.visible, "title": _vm.$t("message.reviewTasksTitle") } }, [_c("task-table-pure", { attrs: { "show-edit": false, "loading": false, "no-edit": true, "data-source": _vm.addedTasks, "pagination": _vm.pagination, "added-tasks": _vm.addedTasks }, on: { "removeTask": _vm.removeTask, "changePagination": _vm.changePagination } }), _c("div", { attrs: { "slot": "footer" }, slot: "footer" }, [_vm.showSendEmail ? _c("a-checkbox", { staticStyle: { "float": "left" }, attrs: { "checked": _vm.sendEmail }, on: { "change": function($event) {
2595
+ return _c("ant-modal", { attrs: { "zIndex": 900, "width": "900px", "visible": _vm.visible, "title": _vm.$t("message.reviewTasksTitle") }, on: { "cancel": function($event) {
2596
+ return _vm.$emit("update:visible", false);
2597
+ } } }, [_c("task-table-pure", { attrs: { "show-edit": false, "loading": false, "no-edit": true, "data-source": _vm.addedTasks, "pagination": _vm.pagination, "added-tasks": _vm.addedTasks }, on: { "removeTask": _vm.removeTask, "changePagination": _vm.changePagination } }), _c("div", { attrs: { "slot": "footer" }, slot: "footer" }, [_vm.showSendEmail ? _c("ant-checkbox", { staticStyle: { "float": "left" }, attrs: { "checked": _vm.sendEmail }, on: { "change": function($event) {
2256
2598
  return _vm.$emit("update:sendEmail", $event.target.checked);
2257
- } } }, [_vm._v(" " + _vm._s(_vm.$t("message.sendTaskEmail")) + " ")]) : _vm._e(), _c("a-button", { on: { "click": function($event) {
2599
+ } } }, [_vm._v(" " + _vm._s(_vm.$t("message.sendTaskEmail")) + " ")]) : _vm._e(), _c("ant-button", { on: { "click": function($event) {
2258
2600
  return _vm.$emit("update:visible", false);
2259
- } } }, [_vm._v(" " + _vm._s(_vm.$t("message.cancel")) + " ")]), _c("a-button", { attrs: { "loading": _vm.loading, "type": "primary", "disabled": !_vm.addedTasks.length }, on: { "click": function($event) {
2601
+ } } }, [_vm._v(" " + _vm._s(_vm.$t("message.cancel")) + " ")]), _c("ant-button", { attrs: { "loading": _vm.loading, "type": "primary", "disabled": !_vm.addedTasks.length }, on: { "click": function($event) {
2260
2602
  _vm.$emit("submit", {
2261
2603
  addedTasks: _vm.addedTasks,
2262
2604
  addedTaskIds: _vm.addedTasks.map(function(ref2) {
@@ -2270,7 +2612,7 @@ var render$2 = function() {
2270
2612
  var staticRenderFns$2 = [];
2271
2613
  var ReviewModal_vue_vue_type_style_index_0_scoped_true_lang = "";
2272
2614
  const __cssModules$2 = {};
2273
- var __component__$2 = /* @__PURE__ */ normalizeComponent(__vue2_script$2, render$2, staticRenderFns$2, false, __vue2_injectStyles$2, "08b3cbb4", null, null);
2615
+ var __component__$2 = /* @__PURE__ */ normalizeComponent(__vue2_script$2, render$2, staticRenderFns$2, false, __vue2_injectStyles$2, "3f8e3a92", null, null);
2274
2616
  function __vue2_injectStyles$2(context) {
2275
2617
  for (let o in __cssModules$2) {
2276
2618
  this[o] = __cssModules$2[o];
@@ -6012,18 +6354,21 @@ var __vue2_script$1 = defineComponent({
6012
6354
  }
6013
6355
  });
6014
6356
  const submit = async (record) => {
6015
- var _a2, _b, _c;
6357
+ var _a2, _b, _c, _d;
6016
6358
  let newRecord = {};
6017
6359
  console.log(record);
6018
6360
  let res;
6361
+ let success;
6019
6362
  if (record.taskTemplateId) {
6020
6363
  res = await updateTemplate.mutate(record);
6021
6364
  newRecord = ((_a2 = res == null ? void 0 : res.data) == null ? void 0 : _a2.updateTaskTemplate.updatedTaskTemplate) || {};
6365
+ success = ((_b = res == null ? void 0 : res.data) == null ? void 0 : _b.updateTaskTemplate.code) === ResponseCode.success;
6022
6366
  } else {
6023
6367
  res = await createTemplate.mutate(record);
6024
- newRecord = ((_b = res == null ? void 0 : res.data) == null ? void 0 : _b.createTaskTemplate.newTaskTemplate) || {};
6368
+ newRecord = ((_c = res == null ? void 0 : res.data) == null ? void 0 : _c.createTaskTemplate.newTaskTemplate) || {};
6369
+ success = ((_d = res == null ? void 0 : res.data) == null ? void 0 : _d.createTaskTemplate.code) === ResponseCode.success;
6025
6370
  }
6026
- if (((_c = res == null ? void 0 : res.data) == null ? void 0 : _c.createTaskTemplate.code) === ResponseCode.success) {
6371
+ if (success) {
6027
6372
  newTaskVisible.value = false;
6028
6373
  message.success("Success!");
6029
6374
  mainModal.value.taskTable.refetch();
@@ -6102,13 +6447,13 @@ var render$1 = function() {
6102
6447
  var staticRenderFns$1 = [];
6103
6448
  var index_vue_vue_type_style_index_0_scoped_true_lang = "";
6104
6449
  const __cssModules$1 = {};
6105
- var __component__$1 = /* @__PURE__ */ normalizeComponent(__vue2_script$1, render$1, staticRenderFns$1, false, __vue2_injectStyles$1, "0869c575", null, null);
6450
+ var __component__$1 = /* @__PURE__ */ normalizeComponent(__vue2_script$1, render$1, staticRenderFns$1, false, __vue2_injectStyles$1, "2a10fa2e", null, null);
6106
6451
  function __vue2_injectStyles$1(context) {
6107
6452
  for (let o in __cssModules$1) {
6108
6453
  this[o] = __cssModules$1[o];
6109
6454
  }
6110
6455
  }
6111
- var index$2 = /* @__PURE__ */ function() {
6456
+ var index$1 = /* @__PURE__ */ function() {
6112
6457
  return __component__$1.exports;
6113
6458
  }();
6114
6459
  var __vue2_script = defineComponent({
@@ -6137,217 +6482,7 @@ function __vue2_injectStyles(context) {
6137
6482
  this[o] = __cssModules[o];
6138
6483
  }
6139
6484
  }
6140
- var index$1 = /* @__PURE__ */ function() {
6485
+ var index = /* @__PURE__ */ function() {
6141
6486
  return __component__.exports;
6142
6487
  }();
6143
- function __variableDynamicImportRuntime0__(path2) {
6144
- switch (path2) {
6145
- case "../languages/ar.ts":
6146
- return import("./ar.js");
6147
- case "../languages/ar2.ts":
6148
- return import("./ar2.js");
6149
- case "../languages/ar3.ts":
6150
- return import("./ar3.js");
6151
- case "../languages/ben.ts":
6152
- return import("./ben.js");
6153
- case "../languages/ben2.ts":
6154
- return import("./ben2.js");
6155
- case "../languages/ben3.ts":
6156
- return import("./ben3.js");
6157
- case "../languages/ch.ts":
6158
- return import("./ch.js");
6159
- case "../languages/ch2.ts":
6160
- return import("./ch2.js");
6161
- case "../languages/ch3.ts":
6162
- return import("./ch3.js");
6163
- case "../languages/en.ts":
6164
- return import("./en.js");
6165
- case "../languages/en2.ts":
6166
- return import("./en2.js");
6167
- case "../languages/en3.ts":
6168
- return import("./en3.js");
6169
- case "../languages/es.ts":
6170
- return import("./es.js");
6171
- case "../languages/es2.ts":
6172
- return import("./es2.js");
6173
- case "../languages/es3.ts":
6174
- return import("./es3.js");
6175
- case "../languages/fa.ts":
6176
- return import("./fa.js");
6177
- case "../languages/fa2.ts":
6178
- return import("./fa2.js");
6179
- case "../languages/fa3.ts":
6180
- return import("./fa3.js");
6181
- case "../languages/fr.ts":
6182
- return import("./fr.js");
6183
- case "../languages/fr2.ts":
6184
- return import("./fr2.js");
6185
- case "../languages/fr3.ts":
6186
- return import("./fr3.js");
6187
- case "../languages/hi.ts":
6188
- return import("./hi.js");
6189
- case "../languages/hi2.ts":
6190
- return import("./hi2.js");
6191
- case "../languages/hi3.ts":
6192
- return import("./hi3.js");
6193
- case "../languages/ht.ts":
6194
- return import("./ht.js");
6195
- case "../languages/ht2.ts":
6196
- return import("./ht2.js");
6197
- case "../languages/ht3.ts":
6198
- return import("./ht3.js");
6199
- case "../languages/hy.ts":
6200
- return import("./hy.js");
6201
- case "../languages/hy2.ts":
6202
- return import("./hy2.js");
6203
- case "../languages/hy3.ts":
6204
- return import("./hy3.js");
6205
- case "../languages/jp.ts":
6206
- return import("./jp.js");
6207
- case "../languages/jp2.ts":
6208
- return import("./jp2.js");
6209
- case "../languages/jp3.ts":
6210
- return import("./jp3.js");
6211
- case "../languages/ko.ts":
6212
- return import("./ko.js");
6213
- case "../languages/ko2.ts":
6214
- return import("./ko2.js");
6215
- case "../languages/ko3.ts":
6216
- return import("./ko3.js");
6217
- case "../languages/nep.ts":
6218
- return import("./nep.js");
6219
- case "../languages/nep2.ts":
6220
- return import("./nep2.js");
6221
- case "../languages/nep3.ts":
6222
- return import("./nep3.js");
6223
- case "../languages/pt.ts":
6224
- return import("./pt.js");
6225
- case "../languages/pt2.ts":
6226
- return import("./pt2.js");
6227
- case "../languages/pt3.ts":
6228
- return import("./pt3.js");
6229
- case "../languages/ru.ts":
6230
- return import("./ru.js");
6231
- case "../languages/ru2.ts":
6232
- return import("./ru2.js");
6233
- case "../languages/ru3.ts":
6234
- return import("./ru3.js");
6235
- default:
6236
- return new Promise(function(resolve, reject) {
6237
- (typeof queueMicrotask === "function" ? queueMicrotask : setTimeout)(reject.bind(null, new Error("Unknown variable dynamic import: " + path2)));
6238
- });
6239
- }
6240
- }
6241
- const loaded = new Map();
6242
- async function getLanguageMessage(lang) {
6243
- if (!loaded.has(lang)) {
6244
- const { default: message2 } = await __variableDynamicImportRuntime0__(`../languages/${lang}.ts`);
6245
- loaded.set(lang, message2);
6246
- }
6247
- return loaded.get(lang);
6248
- }
6249
- const createForm = (form) => form;
6250
- var g1145 = createForm({
6251
- displayName: "G-1145",
6252
- roles: {
6253
- Petitioner: "USERPROFILE",
6254
- Beneficiary: "USERPROFILE",
6255
- Preparer: "PREPARERPROFILE"
6256
- }
6257
- });
6258
- var g28Person = createForm({
6259
- displayName: "G-28-Person",
6260
- roles: {
6261
- Petitioner: "USERPROFILE",
6262
- Beneficiary: "USERPROFILE",
6263
- Preparer: "PREPARERPROFILE"
6264
- }
6265
- });
6266
- var i129Attachment = createForm({
6267
- displayName: "I-129 Attachment",
6268
- roles: {
6269
- Beneficiary: "USERPROFILE"
6270
- }
6271
- });
6272
- var i129Mh = createForm({
6273
- displayName: "I-129_Main with H supplement",
6274
- roles: {
6275
- Petitioner: "CLIENTPROFILE",
6276
- Beneficiary: "USERPROFILE",
6277
- Preparer: "PREPARERPROFILE"
6278
- }
6279
- });
6280
- var i130 = createForm({
6281
- displayName: "I-130",
6282
- roles: {
6283
- Petitioner: "USERPROFILE",
6284
- Beneficiary: "USERPROFILE",
6285
- Preparer: "PREPARERPROFILE"
6286
- }
6287
- });
6288
- var i130a = createForm({
6289
- displayName: "I-130A",
6290
- roles: {
6291
- Beneficiary: "USERPROFILE",
6292
- Preparer: "PREPARERPROFILE"
6293
- }
6294
- });
6295
- var i131 = createForm({
6296
- displayName: "I-131",
6297
- roles: {
6298
- Beneficiary: "USERPROFILE",
6299
- Preparer: "PREPARERPROFILE"
6300
- }
6301
- });
6302
- var i485 = createForm({
6303
- displayName: "I-485",
6304
- roles: {
6305
- Beneficiary: "USERPROFILE",
6306
- Preparer: "PREPARERPROFILE"
6307
- }
6308
- });
6309
- var i485a = createForm({
6310
- displayName: "I-485A",
6311
- roles: {
6312
- Beneficiary: "USERPROFILE",
6313
- Preparer: "PREPARERPROFILE"
6314
- }
6315
- });
6316
- var i765 = createForm({
6317
- displayName: "I-765",
6318
- roles: {
6319
- Beneficiary: "USERPROFILE",
6320
- Preparer: "PREPARERPROFILE"
6321
- }
6322
- });
6323
- var i864 = createForm({
6324
- displayName: "I-864",
6325
- roles: {
6326
- Petitioner: "USERPROFILE",
6327
- Beneficiary: "USERPROFILE",
6328
- Preparer: "PREPARERPROFILE"
6329
- }
6330
- });
6331
- var i864a = createForm({
6332
- displayName: "I-864A",
6333
- roles: {
6334
- Petitioner: "USERPROFILE",
6335
- Beneficiary: "USERPROFILE",
6336
- Preparer: "PREPARERPROFILE"
6337
- }
6338
- });
6339
- var index = [
6340
- g28Person,
6341
- g1145,
6342
- i129Attachment,
6343
- i129Mh,
6344
- i130,
6345
- i130a,
6346
- i131,
6347
- i485,
6348
- i485a,
6349
- i765,
6350
- i864,
6351
- i864a
6352
- ];
6353
- export { NewTask, index$3 as ProfileSelect, index$2 as TaskCart, TaskForm, TaskTemplateFilter, index$1 as TestComponent, index as forms, getLanguageMessage };
6488
+ export { AssigneeTag, NewTask, index$3 as ProfileSelect, TagsWithTooltip, index$1 as TaskCart, TaskForm, TaskTable, TaskTemplateFilter, index as TestComponent, index$2 as forms, getLanguageMessage, refactorParams as refactorTaskTemplateParams, useSearchTaskConditions, useSearchTaskTemplates, useTaskTemplateTableData };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ailaw/venus",
3
- "version": "0.3.2",
3
+ "version": "0.3.8",
4
4
  "files": [
5
5
  "dist"
6
6
  ],