@ailaw/venus 0.4.5 → 0.5.1
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 +257 -97
- package/package.json +3 -10
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-
|
|
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
|
@@ -17,12 +17,12 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
import { defineComponent, ref, watch, computed, toRefs, getCurrentScope, shallowRef } from "vue-demi";
|
|
20
|
+
import { defineComponent, ref, watch, reactive, computed, toRefs, getCurrentScope, shallowRef } from "vue-demi";
|
|
21
21
|
import { Select, Modal, Form, Input, Checkbox, Divider, Button, Upload, Tag, Tooltip, Row, Col, Radio, Popconfirm, Table, Badge, Card, message } from "ant-design-vue";
|
|
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 {
|
|
@@ -192,27 +192,37 @@ const profilesQuery = gql`
|
|
|
192
192
|
id
|
|
193
193
|
profileType
|
|
194
194
|
profileName
|
|
195
|
+
accountList {
|
|
196
|
+
id
|
|
197
|
+
email
|
|
198
|
+
}
|
|
195
199
|
}
|
|
196
200
|
}
|
|
197
201
|
}
|
|
198
202
|
`;
|
|
199
203
|
const addProfileUserMutation = gql`
|
|
200
|
-
mutation
|
|
201
|
-
$email: String
|
|
202
|
-
$name: String
|
|
203
|
-
$petitionerProfileName: String
|
|
204
|
+
mutation AddProfileUser(
|
|
204
205
|
$lawFirmId: Int!
|
|
206
|
+
$name: String!
|
|
207
|
+
$profileType: ProfileType
|
|
208
|
+
$email: String!
|
|
209
|
+
$sendEmail: Boolean!
|
|
205
210
|
) {
|
|
206
|
-
|
|
207
|
-
email: $email
|
|
208
|
-
name: $name
|
|
209
|
-
petitionerProfileName: $petitionerProfileName
|
|
211
|
+
addProfileUser(
|
|
210
212
|
selfLawFirmId: $lawFirmId
|
|
213
|
+
name: $name
|
|
214
|
+
profileType: $profileType
|
|
215
|
+
email: $email
|
|
216
|
+
sendEmail: $sendEmail
|
|
211
217
|
) {
|
|
212
218
|
profile {
|
|
213
219
|
id
|
|
214
220
|
profileName
|
|
215
221
|
profileType
|
|
222
|
+
accountList {
|
|
223
|
+
id
|
|
224
|
+
email
|
|
225
|
+
}
|
|
216
226
|
}
|
|
217
227
|
}
|
|
218
228
|
}
|
|
@@ -220,19 +230,12 @@ const addProfileUserMutation = gql`
|
|
|
220
230
|
function useCreateProfile() {
|
|
221
231
|
const me = useMe();
|
|
222
232
|
const { mutate, loading } = useMutation(addProfileUserMutation);
|
|
223
|
-
const createProfile = async (
|
|
233
|
+
const createProfile = async (variables) => {
|
|
224
234
|
var _a;
|
|
225
|
-
const
|
|
226
|
-
email: profile.email,
|
|
235
|
+
const result = await mutate(__spreadProps(__spreadValues({}, variables), {
|
|
227
236
|
lawFirmId: (_a = me.value) == null ? void 0 : _a.lawFirmId
|
|
228
|
-
};
|
|
229
|
-
|
|
230
|
-
variables.name = profile.profileName;
|
|
231
|
-
} else {
|
|
232
|
-
variables.petitionerProfileName = profile.profileName;
|
|
233
|
-
}
|
|
234
|
-
const result = await mutate(variables);
|
|
235
|
-
return path(["data", "addProfileUserNoNotify", "profile"], result);
|
|
237
|
+
}));
|
|
238
|
+
return path(["data", "addProfileUser", "profile"], result);
|
|
236
239
|
};
|
|
237
240
|
return { createProfile, loading };
|
|
238
241
|
}
|
|
@@ -241,7 +244,7 @@ const profileTypes = {
|
|
|
241
244
|
CLIENTPROFILE: "Company",
|
|
242
245
|
PREPARERPROFILE: "Attorney"
|
|
243
246
|
};
|
|
244
|
-
var __vue2_script$
|
|
247
|
+
var __vue2_script$i = defineComponent({
|
|
245
248
|
props: {
|
|
246
249
|
value: {
|
|
247
250
|
type: String
|
|
@@ -261,7 +264,7 @@ var __vue2_script$f = defineComponent({
|
|
|
261
264
|
return { profileTypes, handleChange };
|
|
262
265
|
}
|
|
263
266
|
});
|
|
264
|
-
var render$
|
|
267
|
+
var render$i = function() {
|
|
265
268
|
var _vm = this;
|
|
266
269
|
var _h = _vm.$createElement;
|
|
267
270
|
var _c = _vm._self._c || _h;
|
|
@@ -269,18 +272,24 @@ var render$f = function() {
|
|
|
269
272
|
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
273
|
}), 1);
|
|
271
274
|
};
|
|
272
|
-
var staticRenderFns$
|
|
273
|
-
const __cssModules$
|
|
274
|
-
var __component__$
|
|
275
|
-
function __vue2_injectStyles$
|
|
276
|
-
for (let o in __cssModules$
|
|
277
|
-
this[o] = __cssModules$
|
|
275
|
+
var staticRenderFns$i = [];
|
|
276
|
+
const __cssModules$i = {};
|
|
277
|
+
var __component__$i = /* @__PURE__ */ normalizeComponent(__vue2_script$i, render$i, staticRenderFns$i, false, __vue2_injectStyles$i, null, null, null);
|
|
278
|
+
function __vue2_injectStyles$i(context) {
|
|
279
|
+
for (let o in __cssModules$i) {
|
|
280
|
+
this[o] = __cssModules$i[o];
|
|
278
281
|
}
|
|
279
282
|
}
|
|
280
283
|
var ProfileTypeSelect = /* @__PURE__ */ function() {
|
|
281
|
-
return __component__$
|
|
284
|
+
return __component__$i.exports;
|
|
282
285
|
}();
|
|
283
|
-
var __vue2_script$
|
|
286
|
+
var __vue2_script$h = defineComponent({
|
|
287
|
+
props: {
|
|
288
|
+
enabledTypes: {
|
|
289
|
+
type: Array,
|
|
290
|
+
default: () => ["USERPROFILE", "CLIENTPROFILE"]
|
|
291
|
+
}
|
|
292
|
+
},
|
|
284
293
|
components: {
|
|
285
294
|
Modal,
|
|
286
295
|
Form,
|
|
@@ -290,26 +299,35 @@ var __vue2_script$e = defineComponent({
|
|
|
290
299
|
Checkbox
|
|
291
300
|
},
|
|
292
301
|
setup(_, { emit }) {
|
|
293
|
-
const value =
|
|
294
|
-
|
|
295
|
-
|
|
302
|
+
const value = reactive({
|
|
303
|
+
profileType: void 0,
|
|
304
|
+
name: "",
|
|
305
|
+
email: "",
|
|
306
|
+
sendEmail: false
|
|
307
|
+
});
|
|
308
|
+
const canSubmit = computed(() => {
|
|
309
|
+
if (value.name === "" || value.profileType == null)
|
|
310
|
+
return false;
|
|
311
|
+
if (value.email !== "" && !value.email.includes("@"))
|
|
312
|
+
return false;
|
|
313
|
+
return true;
|
|
314
|
+
});
|
|
296
315
|
const rules = {
|
|
297
316
|
profileType: { required: true },
|
|
298
|
-
|
|
317
|
+
name: { required: true },
|
|
299
318
|
email: { type: "email" }
|
|
300
319
|
};
|
|
301
|
-
const clearValue = () =>
|
|
320
|
+
const clearValue = () => Object.assign(value, {});
|
|
302
321
|
const { createProfile, loading } = useCreateProfile();
|
|
303
322
|
const hide = () => emit("cancel");
|
|
304
323
|
const handleSubmit = async () => {
|
|
305
|
-
const profile = await createProfile(value
|
|
324
|
+
const profile = await createProfile(value);
|
|
306
325
|
hide();
|
|
307
326
|
emit("profile-created", profile);
|
|
308
327
|
};
|
|
309
328
|
return {
|
|
310
329
|
value,
|
|
311
330
|
rules,
|
|
312
|
-
shouldSendPassword,
|
|
313
331
|
clearValue,
|
|
314
332
|
loading,
|
|
315
333
|
canSubmit,
|
|
@@ -317,40 +335,36 @@ var __vue2_script$e = defineComponent({
|
|
|
317
335
|
};
|
|
318
336
|
}
|
|
319
337
|
});
|
|
320
|
-
var render$
|
|
338
|
+
var render$h = function() {
|
|
321
339
|
var _vm = this;
|
|
322
340
|
var _h = _vm.$createElement;
|
|
323
341
|
var _c = _vm._self._c || _h;
|
|
324
|
-
return _c("modal", _vm._g(_vm._b({ attrs: { "closable": false, "ok-text": "Create", "width": 320, "okButtonProps": { props: { disabled: !_vm.canSubmit, loading: _vm.loading } } }, on: { "cancel": _vm.clearValue, "ok": _vm.handleSubmit } }, "modal", _vm.$attrs, false), _vm.$listeners), [_c("Form", { attrs: { "layout": "vertical", "validate-trigger": "blur", "model": _vm.value, "rules": _vm.rules } }, [_c("form-item", { attrs: { "label": "Profile type", "
|
|
342
|
+
return _c("modal", _vm._g(_vm._b({ attrs: { "closable": false, "ok-text": "Create", "width": 320, "okButtonProps": { props: { disabled: !_vm.canSubmit, loading: _vm.loading } } }, on: { "cancel": _vm.clearValue, "ok": _vm.handleSubmit } }, "modal", _vm.$attrs, false), _vm.$listeners), [_c("Form", { attrs: { "layout": "vertical", "validate-trigger": "blur", "model": _vm.value, "rules": _vm.rules } }, [_c("form-item", { attrs: { "label": "Profile type", "prop": "profileType" } }, [_c("profile-type-select", { attrs: { "enabledTypes": _vm.enabledTypes }, model: { value: _vm.value.profileType, callback: function($$v) {
|
|
325
343
|
_vm.$set(_vm.value, "profileType", $$v);
|
|
326
|
-
}, expression: "value.profileType" } })], 1), _c("form-item", { attrs: { "label": "Name", "
|
|
327
|
-
_vm.$set(_vm.value, "
|
|
328
|
-
}, expression: "value.
|
|
344
|
+
}, expression: "value.profileType" } })], 1), _c("form-item", { attrs: { "label": "Name", "prop": "name" } }, [_c("Input", { model: { value: _vm.value.name, callback: function($$v) {
|
|
345
|
+
_vm.$set(_vm.value, "name", $$v);
|
|
346
|
+
}, expression: "value.name" } })], 1), _c("form-item", { attrs: { "label": "Email", "prop": "email" } }, [_c("Input", { model: { value: _vm.value.email, callback: function($$v) {
|
|
329
347
|
_vm.$set(_vm.value, "email", $$v);
|
|
330
|
-
}, expression: "value.email" } })], 1), _c("form-item", [_c("checkbox", { model: { value: _vm.
|
|
331
|
-
_vm.
|
|
332
|
-
}, expression: "
|
|
348
|
+
}, expression: "value.email" } })], 1), _c("form-item", [_c("checkbox", { model: { value: _vm.value.sendEmail, callback: function($$v) {
|
|
349
|
+
_vm.$set(_vm.value, "sendEmail", $$v);
|
|
350
|
+
}, expression: "value.sendEmail" } }, [_vm._v("Send client portal login password (System will email client a login password)")])], 1)], 1)], 1);
|
|
333
351
|
};
|
|
334
|
-
var staticRenderFns$
|
|
335
|
-
const __cssModules$
|
|
336
|
-
var __component__$
|
|
337
|
-
function __vue2_injectStyles$
|
|
338
|
-
for (let o in __cssModules$
|
|
339
|
-
this[o] = __cssModules$
|
|
352
|
+
var staticRenderFns$h = [];
|
|
353
|
+
const __cssModules$h = {};
|
|
354
|
+
var __component__$h = /* @__PURE__ */ normalizeComponent(__vue2_script$h, render$h, staticRenderFns$h, false, __vue2_injectStyles$h, null, null, null);
|
|
355
|
+
function __vue2_injectStyles$h(context) {
|
|
356
|
+
for (let o in __cssModules$h) {
|
|
357
|
+
this[o] = __cssModules$h[o];
|
|
340
358
|
}
|
|
341
359
|
}
|
|
342
360
|
var ProfileCreateModal = /* @__PURE__ */ function() {
|
|
343
|
-
return __component__$
|
|
361
|
+
return __component__$h.exports;
|
|
344
362
|
}();
|
|
345
|
-
var __vue2_script$
|
|
363
|
+
var __vue2_script$g = defineComponent({
|
|
346
364
|
props: {
|
|
347
365
|
value: {
|
|
348
366
|
type: Object
|
|
349
367
|
},
|
|
350
|
-
keywords: {
|
|
351
|
-
type: String,
|
|
352
|
-
required: true
|
|
353
|
-
},
|
|
354
368
|
source: {
|
|
355
369
|
type: Array,
|
|
356
370
|
required: true
|
|
@@ -377,36 +391,36 @@ var __vue2_script$d = defineComponent({
|
|
|
377
391
|
var _a;
|
|
378
392
|
return (_a = props.value) == null ? void 0 : _a.id;
|
|
379
393
|
});
|
|
380
|
-
const
|
|
394
|
+
const handleChange = (value) => emit("input", props.source.find((v) => String(v.id) == value));
|
|
381
395
|
const handleProfileCreate = () => emit("create-profile");
|
|
382
396
|
return {
|
|
383
397
|
selectedId,
|
|
384
|
-
|
|
398
|
+
handleChange,
|
|
385
399
|
handleProfileCreate,
|
|
386
400
|
menu: {}
|
|
387
401
|
};
|
|
388
402
|
}
|
|
389
403
|
});
|
|
390
|
-
var render$
|
|
404
|
+
var render$g = function() {
|
|
391
405
|
var _vm = this;
|
|
392
406
|
var _h = _vm.$createElement;
|
|
393
407
|
var _c = _vm._self._c || _h;
|
|
394
|
-
return _c("Select", _vm._g(_vm._b({ staticClass: "w-72", attrs: { "allowClear": "", "showSearch": "", "optionFilterProp": "name", "value": _vm.selectedId }, on: { "
|
|
408
|
+
return _c("Select", _vm._g(_vm._b({ staticClass: "w-72", attrs: { "allowClear": "", "showSearch": "", "optionFilterProp": "name", "value": _vm.selectedId }, on: { "change": _vm.handleChange }, scopedSlots: _vm._u([{ key: "dropdownRender", fn: function(menu) {
|
|
395
409
|
return _c("div", {}, [_c("v-nodes", { attrs: { "vnodes": menu } }), _vm.creatable ? _c("Divider", { staticClass: "my-1" }) : _vm._e(), _vm.creatable ? _c("div", { staticClass: "flex justify-end px-3 py-1" }, [_c("Button", { attrs: { "size": "small" }, on: { "click": _vm.handleProfileCreate } }, [_vm._v("Create new profile")])], 1) : _vm._e()], 1);
|
|
396
410
|
} }]) }, "Select", _vm.$attrs, false), _vm.$listeners), _vm._l(_vm.source, function(v) {
|
|
397
|
-
return _c("Option", { key: v.id, attrs: { "value": v.id } }, [_c("ProfileSelectItem", { attrs: { "source": v } })], 1);
|
|
411
|
+
return _c("Option", { key: v.id, attrs: { "value": v.id, "name": v.profileName } }, [_c("ProfileSelectItem", { attrs: { "source": v } })], 1);
|
|
398
412
|
}), 1);
|
|
399
413
|
};
|
|
400
|
-
var staticRenderFns$
|
|
401
|
-
const __cssModules$
|
|
402
|
-
var __component__$
|
|
403
|
-
function __vue2_injectStyles$
|
|
404
|
-
for (let o in __cssModules$
|
|
405
|
-
this[o] = __cssModules$
|
|
414
|
+
var staticRenderFns$g = [];
|
|
415
|
+
const __cssModules$g = {};
|
|
416
|
+
var __component__$g = /* @__PURE__ */ normalizeComponent(__vue2_script$g, render$g, staticRenderFns$g, false, __vue2_injectStyles$g, null, null, null);
|
|
417
|
+
function __vue2_injectStyles$g(context) {
|
|
418
|
+
for (let o in __cssModules$g) {
|
|
419
|
+
this[o] = __cssModules$g[o];
|
|
406
420
|
}
|
|
407
421
|
}
|
|
408
422
|
var ProfileSelector = /* @__PURE__ */ function() {
|
|
409
|
-
return __component__$
|
|
423
|
+
return __component__$g.exports;
|
|
410
424
|
}();
|
|
411
425
|
function useProfiles(keywords, onlyRole, profileIds) {
|
|
412
426
|
const me = useMe();
|
|
@@ -424,7 +438,7 @@ function useProfiles(keywords, onlyRole, profileIds) {
|
|
|
424
438
|
const profiles = useResult(result, [], (data) => data.profileSearch.profileList);
|
|
425
439
|
return { profiles, loading };
|
|
426
440
|
}
|
|
427
|
-
var __vue2_script$
|
|
441
|
+
var __vue2_script$f = defineComponent({
|
|
428
442
|
components: { ProfileSelector, ProfileCreateModal },
|
|
429
443
|
props: {
|
|
430
444
|
value: {
|
|
@@ -439,7 +453,7 @@ var __vue2_script$c = defineComponent({
|
|
|
439
453
|
},
|
|
440
454
|
preLoaded: {
|
|
441
455
|
type: Array,
|
|
442
|
-
default: []
|
|
456
|
+
default: () => []
|
|
443
457
|
},
|
|
444
458
|
profileIds: {
|
|
445
459
|
type: Array
|
|
@@ -458,6 +472,7 @@ var __vue2_script$c = defineComponent({
|
|
|
458
472
|
];
|
|
459
473
|
return uniqBy(prop("id"), list);
|
|
460
474
|
});
|
|
475
|
+
const enabledTypes = computed(() => (onlyRole == null ? void 0 : onlyRole.value) ? [onlyRole.value] : void 0);
|
|
461
476
|
const isModalVisible = ref(false);
|
|
462
477
|
const toggleModal = (value) => isModalVisible.value = value;
|
|
463
478
|
const updateValue = (value) => emit("input", value);
|
|
@@ -469,6 +484,7 @@ var __vue2_script$c = defineComponent({
|
|
|
469
484
|
profiles,
|
|
470
485
|
isModalVisible,
|
|
471
486
|
toggleModal,
|
|
487
|
+
enabledTypes,
|
|
472
488
|
updateValue,
|
|
473
489
|
handleProfileCreated,
|
|
474
490
|
keywords,
|
|
@@ -476,19 +492,163 @@ var __vue2_script$c = defineComponent({
|
|
|
476
492
|
};
|
|
477
493
|
}
|
|
478
494
|
});
|
|
479
|
-
var render$
|
|
495
|
+
var render$f = function() {
|
|
480
496
|
var _vm = this;
|
|
481
497
|
var _h = _vm.$createElement;
|
|
482
498
|
var _c = _vm._self._c || _h;
|
|
483
|
-
return _c("div", [_c("profile-selector", _vm._g(_vm._b({ attrs: { "source": _vm.profiles, "value": _vm.value, "
|
|
499
|
+
return _c("div", [_c("profile-selector", _vm._g(_vm._b({ attrs: { "source": _vm.profiles, "value": _vm.value, "creatable": _vm.creatable }, on: { "search": _vm.handleSearch, "create-profile": function($event) {
|
|
484
500
|
return _vm.toggleModal(true);
|
|
485
|
-
}, "input": _vm.updateValue } }, "profile-selector", _vm.$attrs, false), _vm.$listeners)), _vm.creatable ? _c("profile-create-modal", { attrs: { "visible": _vm.isModalVisible }, on: { "cancel": function($event) {
|
|
501
|
+
}, "input": _vm.updateValue } }, "profile-selector", _vm.$attrs, false), _vm.$listeners)), _vm.creatable ? _c("profile-create-modal", { attrs: { "visible": _vm.isModalVisible, "enabledTypes": _vm.enabledTypes }, on: { "cancel": function($event) {
|
|
486
502
|
return _vm.toggleModal(false);
|
|
487
503
|
}, "profile-created": _vm.handleProfileCreated } }) : _vm._e()], 1);
|
|
488
504
|
};
|
|
505
|
+
var staticRenderFns$f = [];
|
|
506
|
+
const __cssModules$f = {};
|
|
507
|
+
var __component__$f = /* @__PURE__ */ normalizeComponent(__vue2_script$f, render$f, staticRenderFns$f, false, __vue2_injectStyles$f, null, null, null);
|
|
508
|
+
function __vue2_injectStyles$f(context) {
|
|
509
|
+
for (let o in __cssModules$f) {
|
|
510
|
+
this[o] = __cssModules$f[o];
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
var index$4 = /* @__PURE__ */ function() {
|
|
514
|
+
return __component__$f.exports;
|
|
515
|
+
}();
|
|
516
|
+
const queryAllCaseTemplates = gql`
|
|
517
|
+
query AllCaseTemplates($lawFirmId: Int!) {
|
|
518
|
+
gallery: galleryCaseTemplateList(selfLawFirmId: $lawFirmId) {
|
|
519
|
+
id
|
|
520
|
+
isSmart
|
|
521
|
+
templateName
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
custom: customCaseTemplateList(selfLawFirmId: $lawFirmId) {
|
|
525
|
+
id
|
|
526
|
+
isSmart
|
|
527
|
+
templateName
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
`;
|
|
531
|
+
function useCaseTemplates() {
|
|
532
|
+
const me = useMe();
|
|
533
|
+
const { result, loading } = useQuery(queryAllCaseTemplates, () => {
|
|
534
|
+
var _a;
|
|
535
|
+
return {
|
|
536
|
+
lawFirmId: (_a = me.value) == null ? void 0 : _a.lawFirmId
|
|
537
|
+
};
|
|
538
|
+
}, () => ({
|
|
539
|
+
enabled: me.value != null
|
|
540
|
+
}));
|
|
541
|
+
const templates = useResult(result);
|
|
542
|
+
return { templates, loading };
|
|
543
|
+
}
|
|
544
|
+
var __vue2_script$e = defineComponent({
|
|
545
|
+
props: {
|
|
546
|
+
isSmart: {
|
|
547
|
+
type: Boolean
|
|
548
|
+
}
|
|
549
|
+
},
|
|
550
|
+
setup() {
|
|
551
|
+
}
|
|
552
|
+
});
|
|
553
|
+
var render$e = function() {
|
|
554
|
+
var _vm = this;
|
|
555
|
+
var _h = _vm.$createElement;
|
|
556
|
+
var _c = _vm._self._c || _h;
|
|
557
|
+
return _c("div", { staticClass: "border border-solid rounded px-2 leading-5", class: {
|
|
558
|
+
"text-smart bg-purple border-light-purple": _vm.isSmart,
|
|
559
|
+
"text-classic bg-blue border-light-blue": !_vm.isSmart
|
|
560
|
+
} }, [_vm._v(" " + _vm._s(_vm.isSmart ? _vm.$t("message.smart") : _vm.$t("message.classic")) + " ")]);
|
|
561
|
+
};
|
|
562
|
+
var staticRenderFns$e = [];
|
|
563
|
+
const __cssModules$e = {};
|
|
564
|
+
var __component__$e = /* @__PURE__ */ normalizeComponent(__vue2_script$e, render$e, staticRenderFns$e, false, __vue2_injectStyles$e, null, null, null);
|
|
565
|
+
function __vue2_injectStyles$e(context) {
|
|
566
|
+
for (let o in __cssModules$e) {
|
|
567
|
+
this[o] = __cssModules$e[o];
|
|
568
|
+
}
|
|
569
|
+
}
|
|
570
|
+
var CaseTemplateTypeBadge = /* @__PURE__ */ function() {
|
|
571
|
+
return __component__$e.exports;
|
|
572
|
+
}();
|
|
573
|
+
var __vue2_script$d = defineComponent({
|
|
574
|
+
props: {
|
|
575
|
+
source: {
|
|
576
|
+
type: Object,
|
|
577
|
+
required: true
|
|
578
|
+
}
|
|
579
|
+
},
|
|
580
|
+
components: { CaseTemplateTypeBadge },
|
|
581
|
+
setup() {
|
|
582
|
+
}
|
|
583
|
+
});
|
|
584
|
+
var render$d = function() {
|
|
585
|
+
var _vm = this;
|
|
586
|
+
var _h = _vm.$createElement;
|
|
587
|
+
var _c = _vm._self._c || _h;
|
|
588
|
+
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);
|
|
589
|
+
};
|
|
590
|
+
var staticRenderFns$d = [];
|
|
591
|
+
const __cssModules$d = {};
|
|
592
|
+
var __component__$d = /* @__PURE__ */ normalizeComponent(__vue2_script$d, render$d, staticRenderFns$d, false, __vue2_injectStyles$d, null, null, null);
|
|
593
|
+
function __vue2_injectStyles$d(context) {
|
|
594
|
+
for (let o in __cssModules$d) {
|
|
595
|
+
this[o] = __cssModules$d[o];
|
|
596
|
+
}
|
|
597
|
+
}
|
|
598
|
+
var CaseTemplateOption = /* @__PURE__ */ function() {
|
|
599
|
+
return __component__$d.exports;
|
|
600
|
+
}();
|
|
601
|
+
var __vue2_script$c = defineComponent({
|
|
602
|
+
props: {
|
|
603
|
+
value: {
|
|
604
|
+
type: Object
|
|
605
|
+
}
|
|
606
|
+
},
|
|
607
|
+
components: {
|
|
608
|
+
ASelect: Select,
|
|
609
|
+
AOption: Select.Option,
|
|
610
|
+
AOptionGroup: Select.OptGroup,
|
|
611
|
+
CaseTemplateOption
|
|
612
|
+
},
|
|
613
|
+
setup(props, { emit }) {
|
|
614
|
+
const { templates } = useCaseTemplates();
|
|
615
|
+
const customTemplates = computed(() => {
|
|
616
|
+
var _a, _b;
|
|
617
|
+
return (_b = (_a = templates.value) == null ? void 0 : _a.custom) != null ? _b : [];
|
|
618
|
+
});
|
|
619
|
+
const galleryTemplates = computed(() => {
|
|
620
|
+
var _a, _b;
|
|
621
|
+
return (_b = (_a = templates.value) == null ? void 0 : _a.gallery) != null ? _b : [];
|
|
622
|
+
});
|
|
623
|
+
const allTemplates = computed(() => [
|
|
624
|
+
...customTemplates.value,
|
|
625
|
+
...galleryTemplates.value
|
|
626
|
+
]);
|
|
627
|
+
const selectedId = computed(() => {
|
|
628
|
+
var _a;
|
|
629
|
+
return (_a = props.value) == null ? void 0 : _a.id;
|
|
630
|
+
});
|
|
631
|
+
const onChange = (value) => {
|
|
632
|
+
const result = allTemplates.value.find((v) => v.id === value);
|
|
633
|
+
emit("update:value", result);
|
|
634
|
+
};
|
|
635
|
+
return { customTemplates, galleryTemplates, selectedId, onChange };
|
|
636
|
+
}
|
|
637
|
+
});
|
|
638
|
+
var render$c = function() {
|
|
639
|
+
var _vm = this;
|
|
640
|
+
var _h = _vm.$createElement;
|
|
641
|
+
var _c = _vm._self._c || _h;
|
|
642
|
+
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) {
|
|
643
|
+
return _c("a-option", { key: v.id, attrs: { "value": v.id } }, [_c("CaseTemplateOption", { attrs: { "source": v } })], 1);
|
|
644
|
+
}), 1), _c("a-option-group", { attrs: { "label": [_vm.$t("message.gallery"), _vm.$t("message.templates")].join(" ") } }, _vm._l(_vm.galleryTemplates, function(v) {
|
|
645
|
+
return _c("a-option", { key: v.id, attrs: { "value": v.id } }, [_c("CaseTemplateOption", { attrs: { "source": v } })], 1);
|
|
646
|
+
}), 1)], 1);
|
|
647
|
+
};
|
|
489
648
|
var staticRenderFns$c = [];
|
|
649
|
+
var index_vue_vue_type_style_index_0_scoped_true_lang$7 = "";
|
|
490
650
|
const __cssModules$c = {};
|
|
491
|
-
var __component__$c = /* @__PURE__ */ normalizeComponent(__vue2_script$c, render$c, staticRenderFns$c, false, __vue2_injectStyles$c,
|
|
651
|
+
var __component__$c = /* @__PURE__ */ normalizeComponent(__vue2_script$c, render$c, staticRenderFns$c, false, __vue2_injectStyles$c, "5ca33108", null, null);
|
|
492
652
|
function __vue2_injectStyles$c(context) {
|
|
493
653
|
for (let o in __cssModules$c) {
|
|
494
654
|
this[o] = __cssModules$c[o];
|
|
@@ -819,12 +979,12 @@ var render$b = function() {
|
|
|
819
979
|
} } }, [_c("a", { staticStyle: { "color": "#111" }, attrs: { "href": file.link, "target": "_blank" }, on: { "click": function($event) {
|
|
820
980
|
return _vm.clickItem(file, $event);
|
|
821
981
|
} } }, [_vm._v(" " + _vm._s(file.name) + " ")])]);
|
|
822
|
-
}), 1) :
|
|
982
|
+
}), 1) : !_vm.previewMode ? _c("span", { staticStyle: { "color": "#ccc" } }, [_vm._v(_vm._s(_vm.acceptableFormats.join(" ")))]) : _vm._e()], 1)], 1);
|
|
823
983
|
};
|
|
824
984
|
var staticRenderFns$b = [];
|
|
825
985
|
var index_vue_vue_type_style_index_0_scoped_true_lang$6 = "";
|
|
826
986
|
const __cssModules$b = {};
|
|
827
|
-
var __component__$b = /* @__PURE__ */ normalizeComponent(__vue2_script$b, render$b, staticRenderFns$b, false, __vue2_injectStyles$b, "
|
|
987
|
+
var __component__$b = /* @__PURE__ */ normalizeComponent(__vue2_script$b, render$b, staticRenderFns$b, false, __vue2_injectStyles$b, "38dac57e", null, null);
|
|
828
988
|
function __vue2_injectStyles$b(context) {
|
|
829
989
|
for (let o in __cssModules$b) {
|
|
830
990
|
this[o] = __cssModules$b[o];
|
|
@@ -2075,4 +2235,4 @@ function __vue2_injectStyles(context) {
|
|
|
2075
2235
|
var index = /* @__PURE__ */ function() {
|
|
2076
2236
|
return __component__.exports;
|
|
2077
2237
|
}();
|
|
2078
|
-
export { AFileUploader, AssigneeTag, NewTask, index$
|
|
2238
|
+
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.
|
|
3
|
+
"version": "0.5.1",
|
|
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": {
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
"@types/ramda": "^0.27.62",
|
|
31
31
|
"@vitejs/plugin-vue-jsx": "^1.3.3",
|
|
32
32
|
"@vue/compiler-sfc": "^3.2.26",
|
|
33
|
-
"@vue/composition-api": "^1.4.3",
|
|
34
33
|
"autoprefixer": "^10.4.2",
|
|
35
34
|
"js-cookie": "^3.0.1",
|
|
35
|
+
"less": "^4.1.2",
|
|
36
36
|
"nprogress": "^0.2.0",
|
|
37
37
|
"postcss": "^8.4.5",
|
|
38
38
|
"prettier": "^2.2.1",
|
|
@@ -40,19 +40,12 @@
|
|
|
40
40
|
"typescript": "~4.1.5",
|
|
41
41
|
"vite": "^2.7.12",
|
|
42
42
|
"vite-plugin-vue2": "^1.9.2",
|
|
43
|
-
"vue": "^2.6.14",
|
|
44
43
|
"vue-template-compiler": "^2.6.14",
|
|
45
44
|
"vue-tsc": "^0.30.2"
|
|
46
45
|
},
|
|
47
46
|
"peerDependencies": {
|
|
48
|
-
"@vue/composition-api": "^1.0.0-rc.1",
|
|
49
47
|
"vue": "^2.0.0 || >=3.0.0"
|
|
50
48
|
},
|
|
51
|
-
"peerDependenciesMeta": {
|
|
52
|
-
"@vue/composition-api": {
|
|
53
|
-
"optional": true
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
49
|
"browserslist": [
|
|
57
50
|
"> 1%",
|
|
58
51
|
"last 2 versions",
|