@ailaw/venus 0.3.3 → 0.3.9

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-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}.tags-container[data-v-4d7a0102]{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, Upload, Tag, Row, Col, Radio, Table, Tooltip, Badge, 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,16 +486,16 @@ 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
500
  function __variableDynamicImportRuntime0__(path2) {
501
501
  switch (path2) {
@@ -732,6 +732,78 @@ var ResponseCode;
732
732
  ResponseCode2["success"] = "SUCCESS";
733
733
  ResponseCode2["failed"] = "FAILED";
734
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
+ }();
735
807
  var TaskTypes;
736
808
  (function(TaskTypes2) {
737
809
  TaskTypes2["clientUpload"] = "Client Upload";
@@ -840,7 +912,7 @@ function __vue2_injectStyles$9(context) {
840
912
  var AFileUploader = /* @__PURE__ */ function() {
841
913
  return __component__$9.exports;
842
914
  }();
843
- const refactorParams = (record) => {
915
+ var refactorParams = (record) => {
844
916
  var _a2;
845
917
  return {
846
918
  id: record.id,
@@ -957,7 +1029,7 @@ var render$8 = function() {
957
1029
  var staticRenderFns$8 = [];
958
1030
  var index_vue_vue_type_style_index_0_scoped_true_lang$3 = "";
959
1031
  const __cssModules$8 = {};
960
- var __component__$8 = /* @__PURE__ */ normalizeComponent(__vue2_script$8, render$8, staticRenderFns$8, false, __vue2_injectStyles$8, "2a28abbe", null, null);
1032
+ var __component__$8 = /* @__PURE__ */ normalizeComponent(__vue2_script$8, render$8, staticRenderFns$8, false, __vue2_injectStyles$8, "40080928", null, null);
961
1033
  function __vue2_injectStyles$8(context) {
962
1034
  for (let o in __cssModules$8) {
963
1035
  this[o] = __cssModules$8[o];
@@ -2112,9 +2184,9 @@ var __vue2_script$5 = defineComponent({
2112
2184
  name: "TaskTablePure",
2113
2185
  components: {
2114
2186
  AntTable: Table,
2115
- AntTag: Tag,
2116
- AntTooltip: Tooltip,
2117
- AntButton: Button
2187
+ AntButton: Button,
2188
+ AssigneeTag,
2189
+ TagsWithTooltip
2118
2190
  },
2119
2191
  props: {
2120
2192
  addedTasks: {
@@ -2173,11 +2245,8 @@ var __vue2_script$5 = defineComponent({
2173
2245
  }
2174
2246
  ];
2175
2247
  const isTemplateAdded = (record) => addedTasks.value.some((added) => added.id === record.id);
2176
- const tagColor = (key) => ["cyan", "orange", "blue", "purple"][AssigneeTypes[key]];
2177
2248
  return {
2178
2249
  isTemplateAdded,
2179
- tagColor,
2180
- AssigneeTypesText,
2181
2250
  columns
2182
2251
  };
2183
2252
  }
@@ -2189,9 +2258,9 @@ var render$5 = function() {
2189
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) {
2190
2259
  return _vm.$emit("changePagination", $event);
2191
2260
  } }, scopedSlots: _vm._u([{ key: "taskName", fn: function(text, record) {
2192
- return _c("span", {}, [_c("span", { staticStyle: { "display": "inline-block", "width": "250px" } }, [_vm._v(_vm._s(text))]), _c("ant-tag", { attrs: { "color": _vm.tagColor(record.isEmployee) } }, [_vm._v(" " + _vm._s(_vm.$t(_vm.AssigneeTypesText[record.isEmployee])) + " ")])], 1);
2193
- } }, { key: "tagList", fn: function(text) {
2194
- return [_c("ant-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 } })];
2195
2264
  } }, { key: "operation", fn: function(_, record) {
2196
2265
  return [_vm.showEdit ? _c("ant-button", { staticClass: "mr-2", attrs: { "disabled": _vm.isTemplateAdded(record) || record.isGallery, "size": "small" }, on: { "click": function($event) {
2197
2266
  return _vm.$emit("editTask", record);
@@ -2205,7 +2274,7 @@ var render$5 = function() {
2205
2274
  var staticRenderFns$5 = [];
2206
2275
  var TaskTablePure_vue_vue_type_style_index_0_scoped_true_lang = "";
2207
2276
  const __cssModules$5 = {};
2208
- var __component__$5 = /* @__PURE__ */ normalizeComponent(__vue2_script$5, render$5, staticRenderFns$5, false, __vue2_injectStyles$5, "4d7a0102", null, null);
2277
+ var __component__$5 = /* @__PURE__ */ normalizeComponent(__vue2_script$5, render$5, staticRenderFns$5, false, __vue2_injectStyles$5, "278e8b7a", null, null);
2209
2278
  function __vue2_injectStyles$5(context) {
2210
2279
  for (let o in __cssModules$5) {
2211
2280
  this[o] = __cssModules$5[o];
@@ -2230,36 +2299,41 @@ var useSearchTaskTemplates = (pagination, conditions = ref$1({}), lawFirmId) =>
2230
2299
  }));
2231
2300
  };
2232
2301
  const taskTemplateFragment = gql`
2233
- fragment taskTemplate on TaskTemplate {
2234
- id
2235
- taskName
2236
- tagList
2237
- isEmployee
2238
- generalTaskType
2239
- descriptions
2240
- sampleDocs {
2241
- id
2242
- name
2243
- 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
2244
2319
  }
2245
- }
2246
2320
  `;
2247
2321
  const SearchTaskTemplatesQuery = gql`
2248
- query taskTemplateSearch(
2249
- $query: TaskTemplateFilterInput!
2250
- $startIndex: Int
2251
- $endIndex: Int
2252
- $lawFirmId: Int!
2253
- ) {
2254
- taskTemplateSearch(query: $query) {
2255
- numResult
2256
- taskTemplateList(startIndex: $startIndex, endIndex: $endIndex) {
2257
- ...taskTemplate
2258
- isGallery(selfLawFirmId: $lawFirmId)
2259
- }
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
+ }
2260
2335
  }
2261
- }
2262
- ${taskTemplateFragment}
2336
+ ${taskTemplateFragment}
2263
2337
  `;
2264
2338
  var useTaskActions = (addedTasks, emit) => {
2265
2339
  const addTask = (record) => emit("update:addedTasks", [...addedTasks.value, record]);
@@ -2277,6 +2351,51 @@ var useTaskActions = (addedTasks, emit) => {
2277
2351
  removeTask
2278
2352
  };
2279
2353
  };
2354
+ var useSearchTaskConditions = () => ref$1({
2355
+ keywords: "",
2356
+ isEmployee: [
2357
+ AssigneeTypes.ATTORNEY,
2358
+ AssigneeTypes.PETITIONER,
2359
+ AssigneeTypes.BENEFICIARY
2360
+ ]
2361
+ });
2362
+ var useTaskTemplateTableData = (props, emit) => {
2363
+ const initialPagination = ref$1({
2364
+ current: 1,
2365
+ pageSize: 6,
2366
+ total: 0
2367
+ });
2368
+ const { conditions = useSearchTaskConditions(), addedTasks = ref$1([]) } = toRefs$1(props);
2369
+ const { result, loading, refetch } = useSearchTaskTemplates(initialPagination, conditions, props.lawFirmId);
2370
+ const dataSource = computed(() => {
2371
+ var _a2;
2372
+ return ((_a2 = result.value) == null ? void 0 : _a2.taskTemplateSearch.taskTemplateList) || [];
2373
+ });
2374
+ const total = computed(() => {
2375
+ var _a2;
2376
+ return ((_a2 = result.value) == null ? void 0 : _a2.taskTemplateSearch.numResult) || 0;
2377
+ });
2378
+ const pagination = computed(() => __spreadProps(__spreadValues({}, initialPagination.value), {
2379
+ total: total.value
2380
+ }));
2381
+ const changePagination = (pagination2) => {
2382
+ initialPagination.value = __spreadValues({}, pagination2);
2383
+ };
2384
+ const { addTask, editTask, removeTask } = useTaskActions(addedTasks, emit);
2385
+ return {
2386
+ addTask,
2387
+ editTask,
2388
+ removeTask,
2389
+ changePagination,
2390
+ pagination,
2391
+ dataSource,
2392
+ result,
2393
+ loading,
2394
+ refetch,
2395
+ conditions,
2396
+ addedTasks
2397
+ };
2398
+ };
2280
2399
  var __vue2_script$4 = defineComponent({
2281
2400
  name: "TaskTable",
2282
2401
  components: {
@@ -2297,28 +2416,16 @@ var __vue2_script$4 = defineComponent({
2297
2416
  }
2298
2417
  },
2299
2418
  setup(props, { emit }) {
2300
- const initialPagination = ref$1({
2301
- current: 1,
2302
- pageSize: 6,
2303
- total: 0
2304
- });
2305
- const { conditions, addedTasks } = toRefs$1(props);
2306
- const { result, loading, refetch } = useSearchTaskTemplates(initialPagination, conditions, props.lawFirmId);
2307
- const dataSource = computed(() => {
2308
- var _a2;
2309
- return ((_a2 = result.value) == null ? void 0 : _a2.taskTemplateSearch.taskTemplateList) || [];
2310
- });
2311
- const total = computed(() => {
2312
- var _a2;
2313
- return ((_a2 = result.value) == null ? void 0 : _a2.taskTemplateSearch.numResult) || 0;
2314
- });
2315
- const pagination = computed(() => __spreadProps(__spreadValues({}, initialPagination.value), {
2316
- total: total.value
2317
- }));
2318
- const changePagination = (pagination2) => {
2319
- initialPagination.value = __spreadValues({}, pagination2);
2320
- };
2321
- const { addTask, editTask, removeTask } = useTaskActions(addedTasks, emit);
2419
+ const {
2420
+ loading,
2421
+ refetch,
2422
+ dataSource,
2423
+ pagination,
2424
+ changePagination,
2425
+ addTask,
2426
+ editTask,
2427
+ removeTask
2428
+ } = useTaskTemplateTableData(props, emit);
2322
2429
  return {
2323
2430
  loading,
2324
2431
  refetch,
@@ -2341,7 +2448,7 @@ var render$4 = function() {
2341
2448
  var staticRenderFns$4 = [];
2342
2449
  var TaskTable_vue_vue_type_style_index_0_scoped_true_lang = "";
2343
2450
  const __cssModules$4 = {};
2344
- var __component__$4 = /* @__PURE__ */ normalizeComponent(__vue2_script$4, render$4, staticRenderFns$4, false, __vue2_injectStyles$4, "1c55bb88", null, null);
2451
+ var __component__$4 = /* @__PURE__ */ normalizeComponent(__vue2_script$4, render$4, staticRenderFns$4, false, __vue2_injectStyles$4, "52cec9c7", null, null);
2345
2452
  function __vue2_injectStyles$4(context) {
2346
2453
  for (let o in __cssModules$4) {
2347
2454
  this[o] = __cssModules$4[o];
@@ -2350,14 +2457,6 @@ function __vue2_injectStyles$4(context) {
2350
2457
  var TaskTable = /* @__PURE__ */ function() {
2351
2458
  return __component__$4.exports;
2352
2459
  }();
2353
- var useSearchTaskConditions = () => ref$1({
2354
- keywords: "",
2355
- isEmployee: [
2356
- AssigneeTypes.ATTORNEY,
2357
- AssigneeTypes.PETITIONER,
2358
- AssigneeTypes.BENEFICIARY
2359
- ]
2360
- });
2361
2460
  var __vue2_script$3 = defineComponent({
2362
2461
  name: "MainModal",
2363
2462
  components: {
@@ -2407,7 +2506,7 @@ var render$3 = function() {
2407
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) {
2408
2507
  return _vm.$emit("update:reviewModalVisible", true);
2409
2508
  } } }, [_vm._v(" " + _vm._s(_vm.$t("message.reviewTasks")) + " ")])], 1)];
2410
- }, 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) {
2411
2510
  _vm.conditions = $event;
2412
2511
  }, "update:newTaskVisible": function($event) {
2413
2512
  return _vm.$emit("update:newTaskVisible", true);
@@ -2422,7 +2521,7 @@ var render$3 = function() {
2422
2521
  var staticRenderFns$3 = [];
2423
2522
  var MainModal_vue_vue_type_style_index_0_scoped_true_lang = "";
2424
2523
  const __cssModules$3 = {};
2425
- var __component__$3 = /* @__PURE__ */ normalizeComponent(__vue2_script$3, render$3, staticRenderFns$3, false, __vue2_injectStyles$3, "963ab8f0", null, null);
2524
+ var __component__$3 = /* @__PURE__ */ normalizeComponent(__vue2_script$3, render$3, staticRenderFns$3, false, __vue2_injectStyles$3, "66be2b44", null, null);
2426
2525
  function __vue2_injectStyles$3(context) {
2427
2526
  for (let o in __cssModules$3) {
2428
2527
  this[o] = __cssModules$3[o];
@@ -2493,7 +2592,9 @@ var render$2 = function() {
2493
2592
  var _vm = this;
2494
2593
  var _h = _vm.$createElement;
2495
2594
  var _c = _vm._self._c || _h;
2496
- return _c("ant-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("ant-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) {
2497
2598
  return _vm.$emit("update:sendEmail", $event.target.checked);
2498
2599
  } } }, [_vm._v(" " + _vm._s(_vm.$t("message.sendTaskEmail")) + " ")]) : _vm._e(), _c("ant-button", { on: { "click": function($event) {
2499
2600
  return _vm.$emit("update:visible", false);
@@ -2511,7 +2612,7 @@ var render$2 = function() {
2511
2612
  var staticRenderFns$2 = [];
2512
2613
  var ReviewModal_vue_vue_type_style_index_0_scoped_true_lang = "";
2513
2614
  const __cssModules$2 = {};
2514
- var __component__$2 = /* @__PURE__ */ normalizeComponent(__vue2_script$2, render$2, staticRenderFns$2, false, __vue2_injectStyles$2, "8f6cc376", null, null);
2615
+ var __component__$2 = /* @__PURE__ */ normalizeComponent(__vue2_script$2, render$2, staticRenderFns$2, false, __vue2_injectStyles$2, "3f8e3a92", null, null);
2515
2616
  function __vue2_injectStyles$2(context) {
2516
2617
  for (let o in __cssModules$2) {
2517
2618
  this[o] = __cssModules$2[o];
@@ -6253,18 +6354,21 @@ var __vue2_script$1 = defineComponent({
6253
6354
  }
6254
6355
  });
6255
6356
  const submit = async (record) => {
6256
- var _a2, _b, _c;
6357
+ var _a2, _b, _c, _d;
6257
6358
  let newRecord = {};
6258
6359
  console.log(record);
6259
6360
  let res;
6361
+ let success;
6260
6362
  if (record.taskTemplateId) {
6261
6363
  res = await updateTemplate.mutate(record);
6262
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;
6263
6366
  } else {
6264
6367
  res = await createTemplate.mutate(record);
6265
- 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;
6266
6370
  }
6267
- if (((_c = res == null ? void 0 : res.data) == null ? void 0 : _c.createTaskTemplate.code) === ResponseCode.success) {
6371
+ if (success) {
6268
6372
  newTaskVisible.value = false;
6269
6373
  message.success("Success!");
6270
6374
  mainModal.value.taskTable.refetch();
@@ -6343,7 +6447,7 @@ var render$1 = function() {
6343
6447
  var staticRenderFns$1 = [];
6344
6448
  var index_vue_vue_type_style_index_0_scoped_true_lang = "";
6345
6449
  const __cssModules$1 = {};
6346
- 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);
6347
6451
  function __vue2_injectStyles$1(context) {
6348
6452
  for (let o in __cssModules$1) {
6349
6453
  this[o] = __cssModules$1[o];
@@ -6381,4 +6485,4 @@ function __vue2_injectStyles(context) {
6381
6485
  var index = /* @__PURE__ */ function() {
6382
6486
  return __component__.exports;
6383
6487
  }();
6384
- export { NewTask, index$3 as ProfileSelect, index$1 as TaskCart, TaskForm, TaskTable, TaskTemplateFilter, index as TestComponent, index$2 as forms, getLanguageMessage, useSearchTaskConditions, useSearchTaskTemplates };
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, useCreateTaskTemplate, useMutateTaskTemplate, useSearchTaskConditions, useSearchTaskTemplates };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ailaw/venus",
3
- "version": "0.3.3",
3
+ "version": "0.3.9",
4
4
  "files": [
5
5
  "dist"
6
6
  ],