@ailaw/venus 0.3.3 → 0.3.6

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/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";
@@ -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];
@@ -2407,7 +2476,7 @@ var render$3 = function() {
2407
2476
  } } }, [_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
2477
  return _vm.$emit("update:reviewModalVisible", true);
2409
2478
  } } }, [_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) {
2479
+ }, 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
2480
  _vm.conditions = $event;
2412
2481
  }, "update:newTaskVisible": function($event) {
2413
2482
  return _vm.$emit("update:newTaskVisible", true);
@@ -2422,7 +2491,7 @@ var render$3 = function() {
2422
2491
  var staticRenderFns$3 = [];
2423
2492
  var MainModal_vue_vue_type_style_index_0_scoped_true_lang = "";
2424
2493
  const __cssModules$3 = {};
2425
- var __component__$3 = /* @__PURE__ */ normalizeComponent(__vue2_script$3, render$3, staticRenderFns$3, false, __vue2_injectStyles$3, "963ab8f0", null, null);
2494
+ var __component__$3 = /* @__PURE__ */ normalizeComponent(__vue2_script$3, render$3, staticRenderFns$3, false, __vue2_injectStyles$3, "66be2b44", null, null);
2426
2495
  function __vue2_injectStyles$3(context) {
2427
2496
  for (let o in __cssModules$3) {
2428
2497
  this[o] = __cssModules$3[o];
@@ -6381,4 +6450,4 @@ function __vue2_injectStyles(context) {
6381
6450
  var index = /* @__PURE__ */ function() {
6382
6451
  return __component__.exports;
6383
6452
  }();
6384
- export { NewTask, index$3 as ProfileSelect, index$1 as TaskCart, TaskForm, TaskTable, TaskTemplateFilter, index as TestComponent, index$2 as forms, getLanguageMessage, useSearchTaskConditions, useSearchTaskTemplates };
6453
+ export { AssigneeTag, NewTask, index$3 as ProfileSelect, TagsWithTooltip, index$1 as TaskCart, TaskForm, TaskTable, TaskTemplateFilter, index as TestComponent, index$2 as forms, getLanguageMessage, 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.6",
4
4
  "files": [
5
5
  "dist"
6
6
  ],