@ailaw/venus 0.4.6 → 0.4.7
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 +10 -1
- package/dist/style.css +1 -1
- package/dist/venus.es.js +195 -51
- package/package.json +3 -2
package/dist/en3.js
CHANGED
|
@@ -819,6 +819,7 @@ var lang3 = {
|
|
|
819
819
|
selectedEmailAddresses: "email addresses have been selected.",
|
|
820
820
|
StartDate: "Start Date",
|
|
821
821
|
caseTemplateManagement: "Case Template Management",
|
|
822
|
+
caseTemplate: "Case Template",
|
|
822
823
|
caseTemplates: "Case Templates",
|
|
823
824
|
selectSourceTemplate: "Select Source Template",
|
|
824
825
|
fromGallery: "From Gallery",
|
|
@@ -833,6 +834,11 @@ var lang3 = {
|
|
|
833
834
|
changeNotSave: "Do you want to leave this page? Your changes won't be saved.",
|
|
834
835
|
deleteCaseTemplate: "Do you confirm to delete this case template? This action is permanent and cannot be undone.",
|
|
835
836
|
noTemplateSelected: "Select a template/case to preview",
|
|
837
|
+
smart: "Smart",
|
|
838
|
+
classic: "Classic",
|
|
839
|
+
custom: "Custom",
|
|
840
|
+
gallery: "Gallery",
|
|
841
|
+
templates: "Templates",
|
|
836
842
|
taskName: "Task Name",
|
|
837
843
|
assignee: "Assignee",
|
|
838
844
|
descriptions: "Descriptions",
|
|
@@ -871,6 +877,9 @@ var lang3 = {
|
|
|
871
877
|
searchTaskPlaceholder: "Search Task name/Tag",
|
|
872
878
|
taskManagement: "Task Management",
|
|
873
879
|
addFromList: "Add from list",
|
|
874
|
-
createANewTask: "Create a new task"
|
|
880
|
+
createANewTask: "Create a new task",
|
|
881
|
+
choosePreparer: "Choose a preparer",
|
|
882
|
+
choosePetitioner: "Choose a petitioner",
|
|
883
|
+
chooseIndividual: "Choose an individual"
|
|
875
884
|
};
|
|
876
885
|
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-38dac57e]{border:1px solid #cccccc;border-radius:6px;padding:0 4px;min-height:30px;cursor:pointer}.tags-container[data-v-18554545]{word-break:keep-all;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}.taskTemplateInline[data-v-c3a26010]{float:right}a.taskTemplateInline[data-v-c3a26010]{margin-left:10px}div.taskTemplateInline[data-v-c3a26010]{margin-top:5px!important}
|
|
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)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.rounded{border-radius:.25rem}.border{border-width:1px}.border-solid{border-style:solid}.border-light-purple{--tw-border-opacity: 1;border-color:rgba(192,150,250,var(--tw-border-opacity))}.border-light-blue{--tw-border-opacity: 1;border-color:rgba(145,213,255,var(--tw-border-opacity))}.bg-purple{--tw-bg-opacity: 1;background-color:rgba(249,240,255,var(--tw-bg-opacity))}.bg-blue{--tw-bg-opacity: 1;background-color:rgba(230,247,255,var(--tw-bg-opacity))}.p-4{padding:1rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.capitalize{text-transform:capitalize}.leading-5{line-height:1.25rem}.text-secondary{--tw-text-opacity: 1;color:rgba(102,102,102,var(--tw-text-opacity))}.text-smart{--tw-text-opacity: 1;color:rgba(114,46,209,var(--tw-text-opacity))}.text-classic{--tw-text-opacity: 1;color:rgba(24,144,255,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)}.min-w-80[data-v-5ca33108]{min-width:320px}.container[data-v-38dac57e]{border:1px solid #cccccc;border-radius:6px;padding:0 4px;min-height:30px;cursor:pointer}.tags-container[data-v-18554545]{word-break:keep-all;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}.taskTemplateInline[data-v-c3a26010]{float:right}a.taskTemplateInline[data-v-c3a26010]{margin-left:10px}div.taskTemplateInline[data-v-c3a26010]{margin-top:5px!important}
|
package/dist/venus.es.js
CHANGED
|
@@ -22,7 +22,7 @@ import { Select, Modal, Form, Input, Checkbox, Divider, Button, Upload, Tag, Too
|
|
|
22
22
|
import { useQuery, useResult, useMutation, useApolloClient } from "@vue/apollo-composable";
|
|
23
23
|
import gql from "graphql-tag";
|
|
24
24
|
import { path, uniqBy, prop } from "ramda";
|
|
25
|
-
var index$
|
|
25
|
+
var index$5 = "";
|
|
26
26
|
function __variableDynamicImportRuntime0__$1(path2) {
|
|
27
27
|
switch (path2) {
|
|
28
28
|
case "./icons/attorney.svg":
|
|
@@ -37,7 +37,7 @@ function __variableDynamicImportRuntime0__$1(path2) {
|
|
|
37
37
|
});
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
|
-
var __vue2_script$
|
|
40
|
+
var __vue2_script$k = defineComponent({
|
|
41
41
|
props: {
|
|
42
42
|
type: {
|
|
43
43
|
type: String,
|
|
@@ -64,13 +64,13 @@ var __vue2_script$h = defineComponent({
|
|
|
64
64
|
return { iconUrl };
|
|
65
65
|
}
|
|
66
66
|
});
|
|
67
|
-
var render$
|
|
67
|
+
var render$k = function() {
|
|
68
68
|
var _vm = this;
|
|
69
69
|
var _h = _vm.$createElement;
|
|
70
70
|
var _c = _vm._self._c || _h;
|
|
71
71
|
return _c("img", { staticClass: "w-6 h-6", attrs: { "src": _vm.iconUrl, "alt": _vm.type } });
|
|
72
72
|
};
|
|
73
|
-
var staticRenderFns$
|
|
73
|
+
var staticRenderFns$k = [];
|
|
74
74
|
function normalizeComponent(scriptExports, render2, staticRenderFns2, functionalTemplate, injectStyles, scopeId, moduleIdentifier, shadowMode) {
|
|
75
75
|
var options = typeof scriptExports === "function" ? scriptExports.options : scriptExports;
|
|
76
76
|
if (render2) {
|
|
@@ -122,17 +122,17 @@ function normalizeComponent(scriptExports, render2, staticRenderFns2, functional
|
|
|
122
122
|
options
|
|
123
123
|
};
|
|
124
124
|
}
|
|
125
|
-
const __cssModules$
|
|
126
|
-
var __component__$
|
|
127
|
-
function __vue2_injectStyles$
|
|
128
|
-
for (let o in __cssModules$
|
|
129
|
-
this[o] = __cssModules$
|
|
125
|
+
const __cssModules$k = {};
|
|
126
|
+
var __component__$k = /* @__PURE__ */ normalizeComponent(__vue2_script$k, render$k, staticRenderFns$k, false, __vue2_injectStyles$k, null, null, null);
|
|
127
|
+
function __vue2_injectStyles$k(context) {
|
|
128
|
+
for (let o in __cssModules$k) {
|
|
129
|
+
this[o] = __cssModules$k[o];
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
132
|
var ProfileTypeIcon = /* @__PURE__ */ function() {
|
|
133
|
-
return __component__$
|
|
133
|
+
return __component__$k.exports;
|
|
134
134
|
}();
|
|
135
|
-
var __vue2_script$
|
|
135
|
+
var __vue2_script$j = defineComponent({
|
|
136
136
|
props: {
|
|
137
137
|
source: {
|
|
138
138
|
type: Object,
|
|
@@ -141,22 +141,22 @@ var __vue2_script$g = defineComponent({
|
|
|
141
141
|
},
|
|
142
142
|
components: { ProfileTypeIcon }
|
|
143
143
|
});
|
|
144
|
-
var render$
|
|
144
|
+
var render$j = function() {
|
|
145
145
|
var _vm = this;
|
|
146
146
|
var _h = _vm.$createElement;
|
|
147
147
|
var _c = _vm._self._c || _h;
|
|
148
148
|
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);
|
|
149
149
|
};
|
|
150
|
-
var staticRenderFns$
|
|
151
|
-
const __cssModules$
|
|
152
|
-
var __component__$
|
|
153
|
-
function __vue2_injectStyles$
|
|
154
|
-
for (let o in __cssModules$
|
|
155
|
-
this[o] = __cssModules$
|
|
150
|
+
var staticRenderFns$j = [];
|
|
151
|
+
const __cssModules$j = {};
|
|
152
|
+
var __component__$j = /* @__PURE__ */ normalizeComponent(__vue2_script$j, render$j, staticRenderFns$j, false, __vue2_injectStyles$j, null, null, null);
|
|
153
|
+
function __vue2_injectStyles$j(context) {
|
|
154
|
+
for (let o in __cssModules$j) {
|
|
155
|
+
this[o] = __cssModules$j[o];
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
158
|
var ProfileSelectItem = /* @__PURE__ */ function() {
|
|
159
|
-
return __component__$
|
|
159
|
+
return __component__$j.exports;
|
|
160
160
|
}();
|
|
161
161
|
const meQuery = gql`
|
|
162
162
|
query Me {
|
|
@@ -241,7 +241,7 @@ const profileTypes = {
|
|
|
241
241
|
CLIENTPROFILE: "Company",
|
|
242
242
|
PREPARERPROFILE: "Attorney"
|
|
243
243
|
};
|
|
244
|
-
var __vue2_script$
|
|
244
|
+
var __vue2_script$i = defineComponent({
|
|
245
245
|
props: {
|
|
246
246
|
value: {
|
|
247
247
|
type: String
|
|
@@ -261,7 +261,7 @@ var __vue2_script$f = defineComponent({
|
|
|
261
261
|
return { profileTypes, handleChange };
|
|
262
262
|
}
|
|
263
263
|
});
|
|
264
|
-
var render$
|
|
264
|
+
var render$i = 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$f = 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$
|
|
273
|
-
const __cssModules$
|
|
274
|
-
var __component__$
|
|
275
|
-
function __vue2_injectStyles$
|
|
276
|
-
for (let o in __cssModules$
|
|
277
|
-
this[o] = __cssModules$
|
|
272
|
+
var staticRenderFns$i = [];
|
|
273
|
+
const __cssModules$i = {};
|
|
274
|
+
var __component__$i = /* @__PURE__ */ normalizeComponent(__vue2_script$i, render$i, staticRenderFns$i, false, __vue2_injectStyles$i, null, null, null);
|
|
275
|
+
function __vue2_injectStyles$i(context) {
|
|
276
|
+
for (let o in __cssModules$i) {
|
|
277
|
+
this[o] = __cssModules$i[o];
|
|
278
278
|
}
|
|
279
279
|
}
|
|
280
280
|
var ProfileTypeSelect = /* @__PURE__ */ function() {
|
|
281
|
-
return __component__$
|
|
281
|
+
return __component__$i.exports;
|
|
282
282
|
}();
|
|
283
|
-
var __vue2_script$
|
|
283
|
+
var __vue2_script$h = defineComponent({
|
|
284
284
|
components: {
|
|
285
285
|
Modal,
|
|
286
286
|
Form,
|
|
@@ -317,7 +317,7 @@ var __vue2_script$e = defineComponent({
|
|
|
317
317
|
};
|
|
318
318
|
}
|
|
319
319
|
});
|
|
320
|
-
var render$
|
|
320
|
+
var render$h = 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$e = 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$
|
|
335
|
-
const __cssModules$
|
|
336
|
-
var __component__$
|
|
337
|
-
function __vue2_injectStyles$
|
|
338
|
-
for (let o in __cssModules$
|
|
339
|
-
this[o] = __cssModules$
|
|
334
|
+
var staticRenderFns$h = [];
|
|
335
|
+
const __cssModules$h = {};
|
|
336
|
+
var __component__$h = /* @__PURE__ */ normalizeComponent(__vue2_script$h, render$h, staticRenderFns$h, false, __vue2_injectStyles$h, null, null, null);
|
|
337
|
+
function __vue2_injectStyles$h(context) {
|
|
338
|
+
for (let o in __cssModules$h) {
|
|
339
|
+
this[o] = __cssModules$h[o];
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
342
|
var ProfileCreateModal = /* @__PURE__ */ function() {
|
|
343
|
-
return __component__$
|
|
343
|
+
return __component__$h.exports;
|
|
344
344
|
}();
|
|
345
|
-
var __vue2_script$
|
|
345
|
+
var __vue2_script$g = defineComponent({
|
|
346
346
|
props: {
|
|
347
347
|
value: {
|
|
348
348
|
type: Object
|
|
@@ -387,7 +387,7 @@ var __vue2_script$d = defineComponent({
|
|
|
387
387
|
};
|
|
388
388
|
}
|
|
389
389
|
});
|
|
390
|
-
var render$
|
|
390
|
+
var render$g = 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$d = 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$
|
|
401
|
-
const __cssModules$
|
|
402
|
-
var __component__$
|
|
403
|
-
function __vue2_injectStyles$
|
|
404
|
-
for (let o in __cssModules$
|
|
405
|
-
this[o] = __cssModules$
|
|
400
|
+
var staticRenderFns$g = [];
|
|
401
|
+
const __cssModules$g = {};
|
|
402
|
+
var __component__$g = /* @__PURE__ */ normalizeComponent(__vue2_script$g, render$g, staticRenderFns$g, false, __vue2_injectStyles$g, null, null, null);
|
|
403
|
+
function __vue2_injectStyles$g(context) {
|
|
404
|
+
for (let o in __cssModules$g) {
|
|
405
|
+
this[o] = __cssModules$g[o];
|
|
406
406
|
}
|
|
407
407
|
}
|
|
408
408
|
var ProfileSelector = /* @__PURE__ */ function() {
|
|
409
|
-
return __component__$
|
|
409
|
+
return __component__$g.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$
|
|
427
|
+
var __vue2_script$f = defineComponent({
|
|
428
428
|
components: { ProfileSelector, ProfileCreateModal },
|
|
429
429
|
props: {
|
|
430
430
|
value: {
|
|
@@ -439,7 +439,7 @@ var __vue2_script$c = defineComponent({
|
|
|
439
439
|
},
|
|
440
440
|
preLoaded: {
|
|
441
441
|
type: Array,
|
|
442
|
-
default: []
|
|
442
|
+
default: () => []
|
|
443
443
|
},
|
|
444
444
|
profileIds: {
|
|
445
445
|
type: Array
|
|
@@ -476,7 +476,7 @@ var __vue2_script$c = defineComponent({
|
|
|
476
476
|
};
|
|
477
477
|
}
|
|
478
478
|
});
|
|
479
|
-
var render$
|
|
479
|
+
var render$f = function() {
|
|
480
480
|
var _vm = this;
|
|
481
481
|
var _h = _vm.$createElement;
|
|
482
482
|
var _c = _vm._self._c || _h;
|
|
@@ -486,9 +486,153 @@ var render$c = function() {
|
|
|
486
486
|
return _vm.toggleModal(false);
|
|
487
487
|
}, "profile-created": _vm.handleProfileCreated } }) : _vm._e()], 1);
|
|
488
488
|
};
|
|
489
|
+
var staticRenderFns$f = [];
|
|
490
|
+
const __cssModules$f = {};
|
|
491
|
+
var __component__$f = /* @__PURE__ */ normalizeComponent(__vue2_script$f, render$f, staticRenderFns$f, false, __vue2_injectStyles$f, null, null, null);
|
|
492
|
+
function __vue2_injectStyles$f(context) {
|
|
493
|
+
for (let o in __cssModules$f) {
|
|
494
|
+
this[o] = __cssModules$f[o];
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
var index$4 = /* @__PURE__ */ function() {
|
|
498
|
+
return __component__$f.exports;
|
|
499
|
+
}();
|
|
500
|
+
const queryAllCaseTemplates = gql`
|
|
501
|
+
query AllCaseTemplates($lawFirmId: Int!) {
|
|
502
|
+
gallery: galleryCaseTemplateList(selfLawFirmId: $lawFirmId) {
|
|
503
|
+
id
|
|
504
|
+
isSmart
|
|
505
|
+
templateName
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
custom: customCaseTemplateList(selfLawFirmId: $lawFirmId) {
|
|
509
|
+
id
|
|
510
|
+
isSmart
|
|
511
|
+
templateName
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
`;
|
|
515
|
+
function useCaseTemplates() {
|
|
516
|
+
const me = useMe();
|
|
517
|
+
const { result, loading } = useQuery(queryAllCaseTemplates, () => {
|
|
518
|
+
var _a;
|
|
519
|
+
return {
|
|
520
|
+
lawFirmId: (_a = me.value) == null ? void 0 : _a.lawFirmId
|
|
521
|
+
};
|
|
522
|
+
}, () => ({
|
|
523
|
+
enabled: me.value != null
|
|
524
|
+
}));
|
|
525
|
+
const templates = useResult(result);
|
|
526
|
+
return { templates, loading };
|
|
527
|
+
}
|
|
528
|
+
var __vue2_script$e = defineComponent({
|
|
529
|
+
props: {
|
|
530
|
+
isSmart: {
|
|
531
|
+
type: Boolean
|
|
532
|
+
}
|
|
533
|
+
},
|
|
534
|
+
setup() {
|
|
535
|
+
}
|
|
536
|
+
});
|
|
537
|
+
var render$e = function() {
|
|
538
|
+
var _vm = this;
|
|
539
|
+
var _h = _vm.$createElement;
|
|
540
|
+
var _c = _vm._self._c || _h;
|
|
541
|
+
return _c("div", { staticClass: "border border-solid rounded px-2 leading-5", class: {
|
|
542
|
+
"text-smart bg-purple border-light-purple": _vm.isSmart,
|
|
543
|
+
"text-classic bg-blue border-light-blue": !_vm.isSmart
|
|
544
|
+
} }, [_vm._v(" " + _vm._s(_vm.isSmart ? _vm.$t("message.smart") : _vm.$t("message.classic")) + " ")]);
|
|
545
|
+
};
|
|
546
|
+
var staticRenderFns$e = [];
|
|
547
|
+
const __cssModules$e = {};
|
|
548
|
+
var __component__$e = /* @__PURE__ */ normalizeComponent(__vue2_script$e, render$e, staticRenderFns$e, false, __vue2_injectStyles$e, null, null, null);
|
|
549
|
+
function __vue2_injectStyles$e(context) {
|
|
550
|
+
for (let o in __cssModules$e) {
|
|
551
|
+
this[o] = __cssModules$e[o];
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
var CaseTemplateTypeBadge = /* @__PURE__ */ function() {
|
|
555
|
+
return __component__$e.exports;
|
|
556
|
+
}();
|
|
557
|
+
var __vue2_script$d = defineComponent({
|
|
558
|
+
props: {
|
|
559
|
+
source: {
|
|
560
|
+
type: Object,
|
|
561
|
+
required: true
|
|
562
|
+
}
|
|
563
|
+
},
|
|
564
|
+
components: { CaseTemplateTypeBadge },
|
|
565
|
+
setup() {
|
|
566
|
+
}
|
|
567
|
+
});
|
|
568
|
+
var render$d = function() {
|
|
569
|
+
var _vm = this;
|
|
570
|
+
var _h = _vm.$createElement;
|
|
571
|
+
var _c = _vm._self._c || _h;
|
|
572
|
+
return _c("div", { staticClass: "flex space-x-2 items-center" }, [_c("span", [_vm._v(_vm._s(_vm.source.templateName))]), _c("case-template-type-badge", { attrs: { "isSmart": _vm.source.isSmart } })], 1);
|
|
573
|
+
};
|
|
574
|
+
var staticRenderFns$d = [];
|
|
575
|
+
const __cssModules$d = {};
|
|
576
|
+
var __component__$d = /* @__PURE__ */ normalizeComponent(__vue2_script$d, render$d, staticRenderFns$d, false, __vue2_injectStyles$d, null, null, null);
|
|
577
|
+
function __vue2_injectStyles$d(context) {
|
|
578
|
+
for (let o in __cssModules$d) {
|
|
579
|
+
this[o] = __cssModules$d[o];
|
|
580
|
+
}
|
|
581
|
+
}
|
|
582
|
+
var CaseTemplateOption = /* @__PURE__ */ function() {
|
|
583
|
+
return __component__$d.exports;
|
|
584
|
+
}();
|
|
585
|
+
var __vue2_script$c = defineComponent({
|
|
586
|
+
props: {
|
|
587
|
+
value: {
|
|
588
|
+
type: Object
|
|
589
|
+
}
|
|
590
|
+
},
|
|
591
|
+
components: {
|
|
592
|
+
ASelect: Select,
|
|
593
|
+
AOption: Select.Option,
|
|
594
|
+
AOptionGroup: Select.OptGroup,
|
|
595
|
+
CaseTemplateOption
|
|
596
|
+
},
|
|
597
|
+
setup(props, { emit }) {
|
|
598
|
+
const { templates } = useCaseTemplates();
|
|
599
|
+
const customTemplates = computed(() => {
|
|
600
|
+
var _a, _b;
|
|
601
|
+
return (_b = (_a = templates.value) == null ? void 0 : _a.custom) != null ? _b : [];
|
|
602
|
+
});
|
|
603
|
+
const galleryTemplates = computed(() => {
|
|
604
|
+
var _a, _b;
|
|
605
|
+
return (_b = (_a = templates.value) == null ? void 0 : _a.gallery) != null ? _b : [];
|
|
606
|
+
});
|
|
607
|
+
const allTemplates = computed(() => [
|
|
608
|
+
...customTemplates.value,
|
|
609
|
+
...galleryTemplates.value
|
|
610
|
+
]);
|
|
611
|
+
const selectedId = computed(() => {
|
|
612
|
+
var _a;
|
|
613
|
+
return (_a = props.value) == null ? void 0 : _a.id;
|
|
614
|
+
});
|
|
615
|
+
const onChange = (value) => {
|
|
616
|
+
const result = allTemplates.value.find((v) => v.id === value);
|
|
617
|
+
emit("update:value", result);
|
|
618
|
+
};
|
|
619
|
+
return { customTemplates, galleryTemplates, selectedId, onChange };
|
|
620
|
+
}
|
|
621
|
+
});
|
|
622
|
+
var render$c = function() {
|
|
623
|
+
var _vm = this;
|
|
624
|
+
var _h = _vm.$createElement;
|
|
625
|
+
var _c = _vm._self._c || _h;
|
|
626
|
+
return _c("a-select", _vm._b({ staticClass: "min-w-80", attrs: { "value": _vm.selectedId }, on: { "change": _vm.onChange } }, "a-select", _vm.$attrs, false), [_c("a-option-group", { attrs: { "label": [_vm.$t("message.custom"), _vm.$t("message.templates")].join(" ") } }, _vm._l(_vm.customTemplates, function(v) {
|
|
627
|
+
return _c("a-option", { key: v.id, attrs: { "value": v.id } }, [_c("CaseTemplateOption", { attrs: { "source": v } })], 1);
|
|
628
|
+
}), 1), _c("a-option-group", { attrs: { "label": [_vm.$t("message.gallery"), _vm.$t("message.templates")].join(" ") } }, _vm._l(_vm.galleryTemplates, function(v) {
|
|
629
|
+
return _c("a-option", { key: v.id, attrs: { "value": v.id } }, [_c("CaseTemplateOption", { attrs: { "source": v } })], 1);
|
|
630
|
+
}), 1)], 1);
|
|
631
|
+
};
|
|
489
632
|
var staticRenderFns$c = [];
|
|
633
|
+
var index_vue_vue_type_style_index_0_scoped_true_lang$7 = "";
|
|
490
634
|
const __cssModules$c = {};
|
|
491
|
-
var __component__$c = /* @__PURE__ */ normalizeComponent(__vue2_script$c, render$c, staticRenderFns$c, false, __vue2_injectStyles$c,
|
|
635
|
+
var __component__$c = /* @__PURE__ */ normalizeComponent(__vue2_script$c, render$c, staticRenderFns$c, false, __vue2_injectStyles$c, "5ca33108", null, null);
|
|
492
636
|
function __vue2_injectStyles$c(context) {
|
|
493
637
|
for (let o in __cssModules$c) {
|
|
494
638
|
this[o] = __cssModules$c[o];
|
|
@@ -2075,4 +2219,4 @@ function __vue2_injectStyles(context) {
|
|
|
2075
2219
|
var index = /* @__PURE__ */ function() {
|
|
2076
2220
|
return __component__.exports;
|
|
2077
2221
|
}();
|
|
2078
|
-
export { AFileUploader, AssigneeTag, NewTask, index$
|
|
2222
|
+
export { AFileUploader, AssigneeTag, index$3 as CaseTemplateSelect, CaseTemplateTypeBadge, NewTask, index$4 as ProfileSelect, TagsWithTooltip, index$1 as TaskCart, TaskForm, TaskTable, TaskTemplateFilter, index as TestComponent, index$2 as forms, getLanguageMessage, refactorParams as refactorTaskTemplateParams, submit as submitTaskTemplate, useCreateTaskTemplate, useMutateTaskTemplate, useSearchTaskConditions, useSearchTaskTemplates };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ailaw/venus",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.7",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist"
|
|
6
6
|
],
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"scripts": {
|
|
11
11
|
"dev": "vite --open",
|
|
12
12
|
"build": "vite build",
|
|
13
|
-
"build:local": "npm run build && npm pack",
|
|
13
|
+
"build:local": "rm -f ./ailaw-venus-*.tgz && npm run build && npm pack",
|
|
14
14
|
"emit": "vue-tsc --emitDeclarationOnly -p ./tsconfig.build.json"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
"@vue/composition-api": "^1.4.3",
|
|
34
34
|
"autoprefixer": "^10.4.2",
|
|
35
35
|
"js-cookie": "^3.0.1",
|
|
36
|
+
"less": "^4.1.2",
|
|
36
37
|
"nprogress": "^0.2.0",
|
|
37
38
|
"postcss": "^8.4.5",
|
|
38
39
|
"prettier": "^2.2.1",
|