@ailaw/venus 0.6.2 → 0.6.3
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/a-file-uploader/index.vue.d.ts +2 -2
- package/dist/case-template-select/hooks/useCaseTemplates.d.ts +1 -1
- package/dist/case-template-select/index.vue.d.ts +1 -3
- package/dist/en3.js +3 -0
- package/dist/hooks/useTask/useSearchTaskTemplates.d.ts +1 -1
- package/dist/new-task/index.vue.d.ts +12 -4
- package/dist/style.css +1 -1
- package/dist/task-cart/MainModal.vue.d.ts +23 -5
- package/dist/task-cart/TaskTable.vue.d.ts +8 -0
- package/dist/task-cart/TaskTablePure.vue.d.ts +6 -2
- package/dist/task-cart/index.vue.d.ts +31 -5
- package/dist/task-form/index.vue.d.ts +2 -0
- package/dist/task-template-filter/index.vue.d.ts +18 -11
- package/dist/types/task.d.ts +19 -5
- package/dist/venus.es.js +105 -74
- package/package.json +4 -4
|
@@ -6,7 +6,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
6
6
|
clickItem: (item: any, event: any) => void;
|
|
7
7
|
changeVal: (k: string, v: any) => void;
|
|
8
8
|
remove: (id: number) => void;
|
|
9
|
-
beforeUpload: (file: File) => boolean;
|
|
9
|
+
beforeUpload: (file: File, files: File[]) => boolean;
|
|
10
10
|
loading: import("@vue/composition-api").Ref<boolean>;
|
|
11
11
|
acceptableFormats: string[];
|
|
12
12
|
}> & import("@vue/composition-api").Data, {}, {}, {
|
|
@@ -40,7 +40,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
40
40
|
clickItem: (item: any, event: any) => void;
|
|
41
41
|
changeVal: (k: string, v: any) => void;
|
|
42
42
|
remove: (id: number) => void;
|
|
43
|
-
beforeUpload: (file: File) => boolean;
|
|
43
|
+
beforeUpload: (file: File, files: File[]) => boolean;
|
|
44
44
|
loading: import("@vue/composition-api").Ref<boolean>;
|
|
45
45
|
acceptableFormats: string[];
|
|
46
46
|
}>, import("@vue/composition-api").Data, {}, {}, {}, {}, {}, {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CaseTemplateList } from '../types';
|
|
2
2
|
export default function useCaseTemplates(): {
|
|
3
|
-
templates: Readonly<import("@vue/composition-api").Ref<Readonly<CaseTemplateList
|
|
3
|
+
templates: Readonly<import("@vue/composition-api").Ref<Readonly<CaseTemplateList> | undefined>>;
|
|
4
4
|
loading: import("@vue/composition-api").Ref<boolean>;
|
|
5
5
|
};
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { PropType
|
|
1
|
+
import { PropType } from 'vue-demi';
|
|
2
2
|
import { CaseTemplate } from './types';
|
|
3
3
|
declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
4
4
|
customTemplates: import("@vue/composition-api").ComputedRef<CaseTemplate[]>;
|
|
5
5
|
galleryTemplates: import("@vue/composition-api").ComputedRef<CaseTemplate[]>;
|
|
6
6
|
selectedId: import("@vue/composition-api").ComputedRef<number | undefined>;
|
|
7
7
|
onChange: (value: number) => void;
|
|
8
|
-
onFilter: (keywords: string, node: VNode) => any;
|
|
9
8
|
}> & import("@vue/composition-api").Data, {}, {}, {
|
|
10
9
|
value: {
|
|
11
10
|
type: PropType<CaseTemplate>;
|
|
@@ -19,7 +18,6 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
19
18
|
galleryTemplates: import("@vue/composition-api").ComputedRef<CaseTemplate[]>;
|
|
20
19
|
selectedId: import("@vue/composition-api").ComputedRef<number | undefined>;
|
|
21
20
|
onChange: (value: number) => void;
|
|
22
|
-
onFilter: (keywords: string, node: VNode) => any;
|
|
23
21
|
}>, import("@vue/composition-api").Data, {}, {}, {}, {}, {}, {} & {
|
|
24
22
|
value?: CaseTemplate | undefined;
|
|
25
23
|
}, {}, true>);
|
package/dist/en3.js
CHANGED
|
@@ -878,6 +878,9 @@ var lang3 = {
|
|
|
878
878
|
taskManagement: "Task Management",
|
|
879
879
|
addFromList: "Add from list",
|
|
880
880
|
createANewTask: "Create a new task",
|
|
881
|
+
moreThan150: "Should not be longer than 150 chars.",
|
|
882
|
+
confirmDeleteTask: "This task will be permanently deleted. Existing cases won't be affected.",
|
|
883
|
+
updateTaskConfirm: "Changes will be saved. Existing cases will not be affected.",
|
|
881
884
|
choosePreparer: "Choose a preparer",
|
|
882
885
|
choosePetitioner: "Choose a petitioner",
|
|
883
886
|
chooseIndividual: "Choose an individual"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SearchTaskTemplateParams, SearchTaskTemplateResp, TaskTemplateSearchInput } from '@/types/task';
|
|
2
2
|
import { Pagination } from '@/types/common';
|
|
3
3
|
import { Ref } from 'vue-demi';
|
|
4
|
-
declare const _default: (pagination: Ref<Pagination>, conditions: Ref<TaskTemplateSearchInput> | undefined, lawFirmId: number) => import("@vue/apollo-composable").UseQueryReturn<SearchTaskTemplateResp, SearchTaskTemplateParams>;
|
|
4
|
+
declare const _default: (pagination: Ref<Pagination>, conditions: Ref<TaskTemplateSearchInput> | undefined, lawFirmId: number, withGallery?: boolean) => import("@vue/apollo-composable").UseQueryReturn<SearchTaskTemplateResp, SearchTaskTemplateParams>;
|
|
5
5
|
export default _default;
|
|
6
6
|
export declare const taskTemplateFragment: import("graphql").DocumentNode;
|
|
7
7
|
export declare const SearchTaskTemplatesQuery: import("graphql").DocumentNode;
|
|
@@ -10,7 +10,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
10
10
|
clickItem: (item: any, event: any) => void;
|
|
11
11
|
changeVal: (k: string, v: any) => void;
|
|
12
12
|
remove: (id: number) => void;
|
|
13
|
-
beforeUpload: (file: File) => boolean;
|
|
13
|
+
beforeUpload: (file: File, files: File[]) => boolean;
|
|
14
14
|
loading: import("@vue/composition-api").Ref<boolean>;
|
|
15
15
|
acceptableFormats: string[];
|
|
16
16
|
}> & import("@vue/composition-api").Data, {}, {}, {
|
|
@@ -44,7 +44,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
44
44
|
clickItem: (item: any, event: any) => void;
|
|
45
45
|
changeVal: (k: string, v: any) => void;
|
|
46
46
|
remove: (id: number) => void;
|
|
47
|
-
beforeUpload: (file: File) => boolean;
|
|
47
|
+
beforeUpload: (file: File, files: File[]) => boolean;
|
|
48
48
|
loading: import("@vue/composition-api").Ref<boolean>;
|
|
49
49
|
acceptableFormats: string[];
|
|
50
50
|
}>, import("@vue/composition-api").Data, {}, {}, {}, {}, {}, {
|
|
@@ -93,6 +93,10 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
93
93
|
type: BooleanConstructor;
|
|
94
94
|
default: boolean;
|
|
95
95
|
};
|
|
96
|
+
hasDoubleConfirm: {
|
|
97
|
+
type: BooleanConstructor;
|
|
98
|
+
default: boolean;
|
|
99
|
+
};
|
|
96
100
|
}, {
|
|
97
101
|
lawFirmId: number;
|
|
98
102
|
loading: boolean;
|
|
@@ -102,6 +106,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
102
106
|
showSendEmail: boolean;
|
|
103
107
|
showAddToList: boolean;
|
|
104
108
|
userId: string;
|
|
109
|
+
hasDoubleConfirm: boolean;
|
|
105
110
|
} & {}> & Pick<import("vue").VueConstructor<import("vue").default>, "filter" | "extend" | "nextTick" | "set" | "delete" | "directive" | "component" | "use" | "mixin" | "compile" | "observable" | "util" | "config" | "version"> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
|
|
106
111
|
lawFirmId: number;
|
|
107
112
|
loading: boolean;
|
|
@@ -111,6 +116,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
111
116
|
showSendEmail: boolean;
|
|
112
117
|
showAddToList: boolean;
|
|
113
118
|
userId: string;
|
|
119
|
+
hasDoubleConfirm: boolean;
|
|
114
120
|
} & {}, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
115
121
|
submit: () => void;
|
|
116
122
|
taskForm: import("@vue/composition-api").Ref<any>;
|
|
@@ -121,7 +127,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
121
127
|
clickItem: (item: any, event: any) => void;
|
|
122
128
|
changeVal: (k: string, v: any) => void;
|
|
123
129
|
remove: (id: number) => void;
|
|
124
|
-
beforeUpload: (file: File) => boolean;
|
|
130
|
+
beforeUpload: (file: File, files: File[]) => boolean;
|
|
125
131
|
loading: import("@vue/composition-api").Ref<boolean>;
|
|
126
132
|
acceptableFormats: string[];
|
|
127
133
|
}> & import("@vue/composition-api").Data, {}, {}, {
|
|
@@ -155,7 +161,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
155
161
|
clickItem: (item: any, event: any) => void;
|
|
156
162
|
changeVal: (k: string, v: any) => void;
|
|
157
163
|
remove: (id: number) => void;
|
|
158
|
-
beforeUpload: (file: File) => boolean;
|
|
164
|
+
beforeUpload: (file: File, files: File[]) => boolean;
|
|
159
165
|
loading: import("@vue/composition-api").Ref<boolean>;
|
|
160
166
|
acceptableFormats: string[];
|
|
161
167
|
}>, import("@vue/composition-api").Data, {}, {}, {}, {}, {}, {
|
|
@@ -180,10 +186,12 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
180
186
|
showSendEmail: boolean;
|
|
181
187
|
showAddToList: boolean;
|
|
182
188
|
userId: string;
|
|
189
|
+
hasDoubleConfirm: boolean;
|
|
183
190
|
} & {}, {
|
|
184
191
|
loading: boolean;
|
|
185
192
|
visible: boolean;
|
|
186
193
|
showSendEmail: boolean;
|
|
187
194
|
showAddToList: boolean;
|
|
195
|
+
hasDoubleConfirm: boolean;
|
|
188
196
|
}, true>);
|
|
189
197
|
export default _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)))}.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-
|
|
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-36120c70]{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-c5d917d8]{float:right}a.taskTemplateInline[data-v-c5d917d8]{margin-left:10px}div.taskTemplateInline[data-v-c5d917d8]{margin-top:5px!important}
|
|
@@ -21,8 +21,9 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
21
21
|
type: NumberConstructor;
|
|
22
22
|
required: true;
|
|
23
23
|
};
|
|
24
|
-
|
|
25
|
-
type:
|
|
24
|
+
showTaskSettingLink: {
|
|
25
|
+
type: BooleanConstructor;
|
|
26
|
+
default: boolean;
|
|
26
27
|
};
|
|
27
28
|
showPage: {
|
|
28
29
|
type: BooleanConstructor;
|
|
@@ -35,22 +36,34 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
35
36
|
type: StringConstructor;
|
|
36
37
|
default: string;
|
|
37
38
|
};
|
|
39
|
+
withGallery: {
|
|
40
|
+
type: BooleanConstructor;
|
|
41
|
+
default: boolean;
|
|
42
|
+
};
|
|
43
|
+
showNewBtn: {
|
|
44
|
+
type: BooleanConstructor;
|
|
45
|
+
default: boolean;
|
|
46
|
+
};
|
|
38
47
|
}, {
|
|
39
48
|
lawFirmId: number;
|
|
40
49
|
visible: boolean;
|
|
50
|
+
showTaskSettingLink: boolean;
|
|
51
|
+
showNewBtn: boolean;
|
|
52
|
+
withGallery: boolean;
|
|
41
53
|
showPage: boolean;
|
|
42
54
|
openReviewButtonText: string;
|
|
43
55
|
} & {
|
|
44
|
-
taskSettingPageUrl?: string | undefined;
|
|
45
56
|
addedTasks?: TaskTemplate[] | undefined;
|
|
46
57
|
pageSize?: number | undefined;
|
|
47
58
|
}> & Pick<import("vue").VueConstructor<import("vue").default>, "filter" | "extend" | "nextTick" | "set" | "delete" | "directive" | "component" | "use" | "mixin" | "compile" | "observable" | "util" | "config" | "version"> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
|
|
48
59
|
lawFirmId: number;
|
|
49
60
|
visible: boolean;
|
|
61
|
+
showTaskSettingLink: boolean;
|
|
62
|
+
showNewBtn: boolean;
|
|
63
|
+
withGallery: boolean;
|
|
50
64
|
showPage: boolean;
|
|
51
65
|
openReviewButtonText: string;
|
|
52
66
|
} & {
|
|
53
|
-
taskSettingPageUrl?: string | undefined;
|
|
54
67
|
addedTasks?: TaskTemplate[] | undefined;
|
|
55
68
|
pageSize?: number | undefined;
|
|
56
69
|
}, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
@@ -63,14 +76,19 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
63
76
|
}>, import("@vue/composition-api").Data, {}, {}, {}, {}, {}, {
|
|
64
77
|
lawFirmId: number;
|
|
65
78
|
visible: boolean;
|
|
79
|
+
showTaskSettingLink: boolean;
|
|
80
|
+
showNewBtn: boolean;
|
|
81
|
+
withGallery: boolean;
|
|
66
82
|
showPage: boolean;
|
|
67
83
|
openReviewButtonText: string;
|
|
68
84
|
} & {
|
|
69
|
-
taskSettingPageUrl?: string | undefined;
|
|
70
85
|
addedTasks?: TaskTemplate[] | undefined;
|
|
71
86
|
pageSize?: number | undefined;
|
|
72
87
|
}, {
|
|
73
88
|
visible: boolean;
|
|
89
|
+
showTaskSettingLink: boolean;
|
|
90
|
+
showNewBtn: boolean;
|
|
91
|
+
withGallery: boolean;
|
|
74
92
|
showPage: boolean;
|
|
75
93
|
openReviewButtonText: string;
|
|
76
94
|
}, true>);
|
|
@@ -27,16 +27,22 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
27
27
|
pageSize: {
|
|
28
28
|
type: NumberConstructor;
|
|
29
29
|
};
|
|
30
|
+
withGallery: {
|
|
31
|
+
type: BooleanConstructor;
|
|
32
|
+
default: boolean;
|
|
33
|
+
};
|
|
30
34
|
}, {
|
|
31
35
|
lawFirmId: number;
|
|
32
36
|
conditions: TaskTemplateSearchInput;
|
|
33
37
|
addedTasks: TaskTemplate[];
|
|
38
|
+
withGallery: boolean;
|
|
34
39
|
} & {
|
|
35
40
|
pageSize?: number | undefined;
|
|
36
41
|
}> & Pick<import("vue").VueConstructor<import("vue").default>, "filter" | "extend" | "nextTick" | "set" | "delete" | "directive" | "component" | "use" | "mixin" | "compile" | "observable" | "util" | "config" | "version"> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
|
|
37
42
|
lawFirmId: number;
|
|
38
43
|
conditions: TaskTemplateSearchInput;
|
|
39
44
|
addedTasks: TaskTemplate[];
|
|
45
|
+
withGallery: boolean;
|
|
40
46
|
} & {
|
|
41
47
|
pageSize?: number | undefined;
|
|
42
48
|
}, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
@@ -53,9 +59,11 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
53
59
|
lawFirmId: number;
|
|
54
60
|
conditions: TaskTemplateSearchInput;
|
|
55
61
|
addedTasks: TaskTemplate[];
|
|
62
|
+
withGallery: boolean;
|
|
56
63
|
} & {
|
|
57
64
|
pageSize?: number | undefined;
|
|
58
65
|
}, {
|
|
59
66
|
addedTasks: TaskTemplate[];
|
|
67
|
+
withGallery: boolean;
|
|
60
68
|
}, true>);
|
|
61
69
|
export default _default;
|
|
@@ -7,8 +7,10 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
7
7
|
title: any;
|
|
8
8
|
dataIndex: string;
|
|
9
9
|
key: string;
|
|
10
|
+
scopedSlots: {
|
|
11
|
+
customRender: string;
|
|
12
|
+
};
|
|
10
13
|
width?: undefined;
|
|
11
|
-
scopedSlots?: undefined;
|
|
12
14
|
} | {
|
|
13
15
|
title: any;
|
|
14
16
|
dataIndex: string;
|
|
@@ -63,8 +65,10 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
63
65
|
title: any;
|
|
64
66
|
dataIndex: string;
|
|
65
67
|
key: string;
|
|
68
|
+
scopedSlots: {
|
|
69
|
+
customRender: string;
|
|
70
|
+
};
|
|
66
71
|
width?: undefined;
|
|
67
|
-
scopedSlots?: undefined;
|
|
68
72
|
} | {
|
|
69
73
|
title: any;
|
|
70
74
|
dataIndex: string;
|
|
@@ -14,6 +14,8 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
14
14
|
name: string;
|
|
15
15
|
link: string;
|
|
16
16
|
}[] | undefined;
|
|
17
|
+
taskType?: import("../types/task").StepType | undefined;
|
|
18
|
+
sampleDocList?: number[] | undefined;
|
|
17
19
|
lawFirmId?: number | undefined;
|
|
18
20
|
isGallery?: boolean | undefined;
|
|
19
21
|
taskName?: string | undefined;
|
|
@@ -35,6 +37,8 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
35
37
|
name: string;
|
|
36
38
|
link: string;
|
|
37
39
|
}[] | undefined;
|
|
40
|
+
taskType?: import("../types/task").StepType | undefined;
|
|
41
|
+
sampleDocList?: number[] | undefined;
|
|
38
42
|
lawFirmId?: number | undefined;
|
|
39
43
|
isGallery?: boolean | undefined;
|
|
40
44
|
taskName?: string | undefined;
|
|
@@ -78,8 +82,9 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
78
82
|
type: BooleanConstructor;
|
|
79
83
|
default: boolean;
|
|
80
84
|
};
|
|
81
|
-
|
|
82
|
-
type:
|
|
85
|
+
showTaskSettingLink: {
|
|
86
|
+
type: BooleanConstructor;
|
|
87
|
+
default: boolean;
|
|
83
88
|
};
|
|
84
89
|
allowClear: {
|
|
85
90
|
type: BooleanConstructor;
|
|
@@ -100,12 +105,23 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
100
105
|
type: BooleanConstructor;
|
|
101
106
|
default: boolean;
|
|
102
107
|
};
|
|
108
|
+
withGallery: {
|
|
109
|
+
type: BooleanConstructor;
|
|
110
|
+
default: boolean;
|
|
111
|
+
};
|
|
112
|
+
showNewBtn: {
|
|
113
|
+
type: BooleanConstructor;
|
|
114
|
+
default: boolean;
|
|
115
|
+
};
|
|
103
116
|
}, {
|
|
104
117
|
value: number[];
|
|
105
118
|
sendEmail: boolean;
|
|
106
119
|
uploadFilesFunc: UploadFileFunction;
|
|
107
120
|
visible: boolean;
|
|
108
121
|
showSendEmail: boolean;
|
|
122
|
+
showTaskSettingLink: boolean;
|
|
123
|
+
showNewBtn: boolean;
|
|
124
|
+
withGallery: boolean;
|
|
109
125
|
openReviewButtonText: string;
|
|
110
126
|
reviewText: string;
|
|
111
127
|
allowClear: boolean;
|
|
@@ -113,7 +129,6 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
113
129
|
pageMode: boolean;
|
|
114
130
|
closeAfterAdd: boolean;
|
|
115
131
|
} & {
|
|
116
|
-
taskSettingPageUrl?: string | undefined;
|
|
117
132
|
pageSize?: number | undefined;
|
|
118
133
|
}> & Pick<import("vue").VueConstructor<import("vue").default>, "filter" | "extend" | "nextTick" | "set" | "delete" | "directive" | "component" | "use" | "mixin" | "compile" | "observable" | "util" | "config" | "version"> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
|
|
119
134
|
value: number[];
|
|
@@ -121,6 +136,9 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
121
136
|
uploadFilesFunc: UploadFileFunction;
|
|
122
137
|
visible: boolean;
|
|
123
138
|
showSendEmail: boolean;
|
|
139
|
+
showTaskSettingLink: boolean;
|
|
140
|
+
showNewBtn: boolean;
|
|
141
|
+
withGallery: boolean;
|
|
124
142
|
openReviewButtonText: string;
|
|
125
143
|
reviewText: string;
|
|
126
144
|
allowClear: boolean;
|
|
@@ -128,7 +146,6 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
128
146
|
pageMode: boolean;
|
|
129
147
|
closeAfterAdd: boolean;
|
|
130
148
|
} & {
|
|
131
|
-
taskSettingPageUrl?: string | undefined;
|
|
132
149
|
pageSize?: number | undefined;
|
|
133
150
|
}, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
134
151
|
mainModal: import("@vue/composition-api").Ref<any>;
|
|
@@ -144,6 +161,8 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
144
161
|
name: string;
|
|
145
162
|
link: string;
|
|
146
163
|
}[] | undefined;
|
|
164
|
+
taskType?: import("../types/task").StepType | undefined;
|
|
165
|
+
sampleDocList?: number[] | undefined;
|
|
147
166
|
lawFirmId?: number | undefined;
|
|
148
167
|
isGallery?: boolean | undefined;
|
|
149
168
|
taskName?: string | undefined;
|
|
@@ -165,6 +184,8 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
165
184
|
name: string;
|
|
166
185
|
link: string;
|
|
167
186
|
}[] | undefined;
|
|
187
|
+
taskType?: import("../types/task").StepType | undefined;
|
|
188
|
+
sampleDocList?: number[] | undefined;
|
|
168
189
|
lawFirmId?: number | undefined;
|
|
169
190
|
isGallery?: boolean | undefined;
|
|
170
191
|
taskName?: string | undefined;
|
|
@@ -185,6 +206,9 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
185
206
|
uploadFilesFunc: UploadFileFunction;
|
|
186
207
|
visible: boolean;
|
|
187
208
|
showSendEmail: boolean;
|
|
209
|
+
showTaskSettingLink: boolean;
|
|
210
|
+
showNewBtn: boolean;
|
|
211
|
+
withGallery: boolean;
|
|
188
212
|
openReviewButtonText: string;
|
|
189
213
|
reviewText: string;
|
|
190
214
|
allowClear: boolean;
|
|
@@ -192,13 +216,15 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
192
216
|
pageMode: boolean;
|
|
193
217
|
closeAfterAdd: boolean;
|
|
194
218
|
} & {
|
|
195
|
-
taskSettingPageUrl?: string | undefined;
|
|
196
219
|
pageSize?: number | undefined;
|
|
197
220
|
}, {
|
|
198
221
|
value: number[];
|
|
199
222
|
sendEmail: boolean;
|
|
200
223
|
visible: boolean;
|
|
201
224
|
showSendEmail: boolean;
|
|
225
|
+
showTaskSettingLink: boolean;
|
|
226
|
+
showNewBtn: boolean;
|
|
227
|
+
withGallery: boolean;
|
|
202
228
|
openReviewButtonText: string;
|
|
203
229
|
reviewText: string;
|
|
204
230
|
allowClear: boolean;
|
|
@@ -9,6 +9,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
9
9
|
TaskTypes: typeof TaskTypes;
|
|
10
10
|
roles: Role[];
|
|
11
11
|
isAttorneySelected: import("@vue/composition-api").ComputedRef<boolean>;
|
|
12
|
+
nameErrorContent: import("@vue/composition-api").Ref<string>;
|
|
12
13
|
}> & import("@vue/composition-api").Data, {}, {}, {
|
|
13
14
|
value: {
|
|
14
15
|
type: PropType<TaskTemplate>;
|
|
@@ -37,6 +38,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
37
38
|
TaskTypes: typeof TaskTypes;
|
|
38
39
|
roles: Role[];
|
|
39
40
|
isAttorneySelected: import("@vue/composition-api").ComputedRef<boolean>;
|
|
41
|
+
nameErrorContent: import("@vue/composition-api").Ref<string>;
|
|
40
42
|
}>, import("@vue/composition-api").Data, {}, {}, {}, {}, {}, {
|
|
41
43
|
value: TaskTemplate;
|
|
42
44
|
uploadFilesFunc: UploadFileFunction;
|
|
@@ -9,8 +9,9 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
9
9
|
type: PropType<TaskTemplateSearchInput>;
|
|
10
10
|
required: true;
|
|
11
11
|
};
|
|
12
|
-
|
|
13
|
-
type:
|
|
12
|
+
showTaskSettingLink: {
|
|
13
|
+
type: BooleanConstructor;
|
|
14
|
+
default: boolean;
|
|
14
15
|
};
|
|
15
16
|
inline: {
|
|
16
17
|
type: BooleanConstructor;
|
|
@@ -20,29 +21,35 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
20
21
|
type: NumberConstructor;
|
|
21
22
|
default: number;
|
|
22
23
|
};
|
|
24
|
+
showNewBtn: {
|
|
25
|
+
type: BooleanConstructor;
|
|
26
|
+
default: boolean;
|
|
27
|
+
};
|
|
23
28
|
}, {
|
|
24
29
|
conditions: TaskTemplateSearchInput;
|
|
30
|
+
showTaskSettingLink: boolean;
|
|
25
31
|
inline: boolean;
|
|
26
32
|
width: number;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}> & Pick<import("vue").VueConstructor<import("vue").default>, "filter" | "extend" | "nextTick" | "set" | "delete" | "directive" | "component" | "use" | "mixin" | "compile" | "observable" | "util" | "config" | "version"> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
|
|
33
|
+
showNewBtn: boolean;
|
|
34
|
+
} & {}> & Pick<import("vue").VueConstructor<import("vue").default>, "filter" | "extend" | "nextTick" | "set" | "delete" | "directive" | "component" | "use" | "mixin" | "compile" | "observable" | "util" | "config" | "version"> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
|
|
30
35
|
conditions: TaskTemplateSearchInput;
|
|
36
|
+
showTaskSettingLink: boolean;
|
|
31
37
|
inline: boolean;
|
|
32
38
|
width: number;
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
39
|
+
showNewBtn: boolean;
|
|
40
|
+
} & {}, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
36
41
|
AssigneeTypes: typeof AssigneeTypes;
|
|
37
42
|
changeVal: (key: string, val: string | string[] | number[]) => void;
|
|
38
43
|
}>, import("@vue/composition-api").Data, {}, {}, {}, {}, {}, {
|
|
39
44
|
conditions: TaskTemplateSearchInput;
|
|
45
|
+
showTaskSettingLink: boolean;
|
|
40
46
|
inline: boolean;
|
|
41
47
|
width: number;
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
48
|
+
showNewBtn: boolean;
|
|
49
|
+
} & {}, {
|
|
50
|
+
showTaskSettingLink: boolean;
|
|
45
51
|
inline: boolean;
|
|
46
52
|
width: number;
|
|
53
|
+
showNewBtn: boolean;
|
|
47
54
|
}, true>);
|
|
48
55
|
export default _default;
|
package/dist/types/task.d.ts
CHANGED
|
@@ -4,6 +4,17 @@ export declare enum TaskTypes {
|
|
|
4
4
|
clientReview = "For Client Review",
|
|
5
5
|
worksheet = "Worksheet"
|
|
6
6
|
}
|
|
7
|
+
export declare enum StepType {
|
|
8
|
+
worksheetForEmployeeEmployer = "WORKSHEET_FOR_EMPLOYEE_EMPLOYER",
|
|
9
|
+
beneficiary = "BENEFICIARY",
|
|
10
|
+
petitioner = "PETITIONER",
|
|
11
|
+
billing = "BILLING",
|
|
12
|
+
overseas = "OVERSEAS",
|
|
13
|
+
supplement = "SUPPLEMENT",
|
|
14
|
+
worksheetForAttorney = "WORKSHEET_FOR_ATTORNEY",
|
|
15
|
+
counterReviewAndSign = "COUNTER_REVIEW_AND_SIGN",
|
|
16
|
+
attorney = "ATTORNEY"
|
|
17
|
+
}
|
|
7
18
|
interface BaseTaskTemplate {
|
|
8
19
|
id?: number;
|
|
9
20
|
taskName?: string;
|
|
@@ -28,6 +39,8 @@ export interface TaskTemplate extends BaseTaskTemplate {
|
|
|
28
39
|
id?: number;
|
|
29
40
|
isEmployee?: AssigneeTypeKeys;
|
|
30
41
|
sampleDocs?: Document[];
|
|
42
|
+
taskType?: StepType;
|
|
43
|
+
sampleDocList?: number[];
|
|
31
44
|
lawFirmId?: number;
|
|
32
45
|
isGallery?: boolean;
|
|
33
46
|
}
|
|
@@ -37,14 +50,15 @@ export interface TaskTemplateComponentData {
|
|
|
37
50
|
isNotified?: boolean;
|
|
38
51
|
[key: string]: any;
|
|
39
52
|
}
|
|
40
|
-
declare type UploadFileStatus = 'fulfilled';
|
|
53
|
+
declare type UploadFileStatus = 'fulfilled' | string;
|
|
54
|
+
export interface UploadRes {
|
|
55
|
+
status: UploadFileStatus;
|
|
56
|
+
value: Document;
|
|
57
|
+
}
|
|
41
58
|
export declare type UploadFileFunction = (files: File[], params: {
|
|
42
59
|
office_id: number;
|
|
43
60
|
user_id: string;
|
|
44
|
-
}) => Promise<
|
|
45
|
-
status: UploadFileStatus;
|
|
46
|
-
value: Document;
|
|
47
|
-
}[]>;
|
|
61
|
+
}) => Promise<UploadRes[]>;
|
|
48
62
|
export declare enum TaskTemplateSortBy {
|
|
49
63
|
default = "DEFAULT",
|
|
50
64
|
id = "TASKTEMPLATEID",
|
package/dist/venus.es.js
CHANGED
|
@@ -21,7 +21,7 @@ import { defineComponent, ref, watch, reactive, computed, toRefs, getCurrentScop
|
|
|
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
|
-
import { path, uniqBy, prop
|
|
24
|
+
import { path, uniqBy, prop } from "ramda";
|
|
25
25
|
var index$5 = "";
|
|
26
26
|
function __variableDynamicImportRuntime0__$1(path2) {
|
|
27
27
|
switch (path2) {
|
|
@@ -519,27 +519,15 @@ const queryAllCaseTemplates = gql`
|
|
|
519
519
|
id
|
|
520
520
|
isSmart
|
|
521
521
|
templateName
|
|
522
|
-
isCompanyRelated
|
|
523
|
-
isIndividualRelated
|
|
524
522
|
}
|
|
525
523
|
|
|
526
524
|
custom: customCaseTemplateList(selfLawFirmId: $lawFirmId) {
|
|
527
525
|
id
|
|
528
526
|
isSmart
|
|
529
527
|
templateName
|
|
530
|
-
isCompanyRelated
|
|
531
|
-
isIndividualRelated
|
|
532
528
|
}
|
|
533
529
|
}
|
|
534
530
|
`;
|
|
535
|
-
const compare = (a, b) => {
|
|
536
|
-
if (a.templateName === b.templateName) {
|
|
537
|
-
if (a.isSmart && b.isSmart)
|
|
538
|
-
return 0;
|
|
539
|
-
return a.isSmart ? 1 : -1;
|
|
540
|
-
}
|
|
541
|
-
return a.templateName > b.templateName ? 1 : -1;
|
|
542
|
-
};
|
|
543
531
|
function useCaseTemplates() {
|
|
544
532
|
const me = useMe();
|
|
545
533
|
const { result, loading } = useQuery(queryAllCaseTemplates, () => {
|
|
@@ -550,13 +538,7 @@ function useCaseTemplates() {
|
|
|
550
538
|
}, () => ({
|
|
551
539
|
enabled: me.value != null
|
|
552
540
|
}));
|
|
553
|
-
const templates = useResult(result
|
|
554
|
-
gallery: [],
|
|
555
|
-
custom: []
|
|
556
|
-
}, (data) => ({
|
|
557
|
-
gallery: sort(compare, data.gallery),
|
|
558
|
-
custom: sort(compare, data.custom)
|
|
559
|
-
}));
|
|
541
|
+
const templates = useResult(result);
|
|
560
542
|
return { templates, loading };
|
|
561
543
|
}
|
|
562
544
|
var __vue2_script$e = defineComponent({
|
|
@@ -650,27 +632,23 @@ var __vue2_script$c = defineComponent({
|
|
|
650
632
|
const result = allTemplates.value.find((v) => v.id === value);
|
|
651
633
|
emit("update:value", result);
|
|
652
634
|
};
|
|
653
|
-
|
|
654
|
-
var _a, _b, _c, _d;
|
|
655
|
-
return (_d = (_c = (_b = (_a = node.data) == null ? void 0 : _a.attrs) == null ? void 0 : _b.name) == null ? void 0 : _c.toLowerCase()) == null ? void 0 : _d.includes(keywords.toLowerCase());
|
|
656
|
-
};
|
|
657
|
-
return { customTemplates, galleryTemplates, selectedId, onChange, onFilter };
|
|
635
|
+
return { customTemplates, galleryTemplates, selectedId, onChange };
|
|
658
636
|
}
|
|
659
637
|
});
|
|
660
638
|
var render$c = function() {
|
|
661
639
|
var _vm = this;
|
|
662
640
|
var _h = _vm.$createElement;
|
|
663
641
|
var _c = _vm._self._c || _h;
|
|
664
|
-
return _c("a-select", _vm._b({ staticClass: "min-w-80", attrs: { "
|
|
665
|
-
return _c("a-option", { key: v.id, attrs: { "value": v.id
|
|
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);
|
|
666
644
|
}), 1), _c("a-option-group", { attrs: { "label": [_vm.$t("message.gallery"), _vm.$t("message.templates")].join(" ") } }, _vm._l(_vm.galleryTemplates, function(v) {
|
|
667
|
-
return _c("a-option", { key: v.id, attrs: { "value": v.id
|
|
645
|
+
return _c("a-option", { key: v.id, attrs: { "value": v.id } }, [_c("CaseTemplateOption", { attrs: { "source": v } })], 1);
|
|
668
646
|
}), 1)], 1);
|
|
669
647
|
};
|
|
670
648
|
var staticRenderFns$c = [];
|
|
671
649
|
var index_vue_vue_type_style_index_0_scoped_true_lang$7 = "";
|
|
672
650
|
const __cssModules$c = {};
|
|
673
|
-
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);
|
|
674
652
|
function __vue2_injectStyles$c(context) {
|
|
675
653
|
for (let o in __cssModules$c) {
|
|
676
654
|
this[o] = __cssModules$c[o];
|
|
@@ -931,28 +909,23 @@ var __vue2_script$b = defineComponent({
|
|
|
931
909
|
const remove = (id) => {
|
|
932
910
|
emit("change", props.value.filter((v) => v.id !== id));
|
|
933
911
|
};
|
|
934
|
-
const beforeUpload = (file) => {
|
|
912
|
+
const beforeUpload = (file, files) => {
|
|
935
913
|
var _a, _b;
|
|
936
914
|
if (loading.value)
|
|
937
915
|
return false;
|
|
938
916
|
loading.value = true;
|
|
939
|
-
props.uploadFilesFunc(
|
|
917
|
+
props.uploadFilesFunc(files, {
|
|
940
918
|
office_id: (_a = me.value) == null ? void 0 : _a.lawFirmId,
|
|
941
919
|
user_id: (_b = me.value) == null ? void 0 : _b.id
|
|
942
|
-
}).then((
|
|
943
|
-
{
|
|
944
|
-
status,
|
|
945
|
-
value: { id, name, link }
|
|
946
|
-
}
|
|
947
|
-
]) => {
|
|
920
|
+
}).then((res) => {
|
|
948
921
|
if (status === "fulfilled") {
|
|
949
922
|
emit("change", [
|
|
950
923
|
...props.value,
|
|
951
|
-
{
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
}
|
|
924
|
+
res.map(({ status: status2, value }) => {
|
|
925
|
+
if (status2 === "fulfilled") {
|
|
926
|
+
return value;
|
|
927
|
+
}
|
|
928
|
+
}).filter((v) => v)
|
|
956
929
|
]);
|
|
957
930
|
}
|
|
958
931
|
}).finally(() => {
|
|
@@ -996,10 +969,11 @@ var render$b = function() {
|
|
|
996
969
|
var _c = _vm._self._c || _h;
|
|
997
970
|
return _c("div", { class: { container: !_vm.previewMode } }, [_c("ant-modal", { attrs: { "visible": !!_vm.previewImage, "footer": null }, on: { "cancel": function($event) {
|
|
998
971
|
_vm.previewImage = null;
|
|
999
|
-
} } }, [_c("img", { staticStyle: { "width": "100%" }, attrs: { "src": _vm.previewImage } })]), _c("ant-upload", { staticStyle: { "display": "inline" }, attrs: { "disabled": _vm.disabled || _vm.loading, "before-upload": _vm.beforeUpload, "action": "javascript:;", "fileList": [], "accept": _vm.acceptableFormats.join(",") } }, [!_vm.previewMode ? _c("ant-tag", [_vm._v(" " + _vm._s(_vm.$t("message.selectFile")) + " ")]) : _vm._e(), _vm.value.length ? _c("div", { staticStyle: { "display": "inline-block" } }, _vm._l(_vm.value, function(file) {
|
|
972
|
+
} } }, [_c("img", { staticStyle: { "width": "100%" }, attrs: { "src": _vm.previewImage } })]), _c("ant-upload", { staticStyle: { "display": "inline" }, attrs: { "multiple": "", "disabled": _vm.disabled || _vm.loading, "before-upload": _vm.beforeUpload, "action": "javascript:;", "fileList": [], "accept": _vm.acceptableFormats.join(",") } }, [!_vm.previewMode ? _c("ant-tag", [_vm._v(" " + _vm._s(_vm.$t("message.selectFile")) + " ")]) : _vm._e(), _vm.value.length ? _c("div", { staticStyle: { "display": "inline-block" } }, _vm._l(_vm.value, function(file) {
|
|
1000
973
|
return _c("ant-tag", { key: file.id, attrs: { "closable": !_vm.previewMode && !_vm.disabled }, on: { "close": function($event) {
|
|
1001
974
|
return _vm.remove(file.id);
|
|
1002
975
|
} } }, [_c("a", { staticStyle: { "color": "#111" }, attrs: { "href": file.link, "target": "_blank" }, on: { "click": function($event) {
|
|
976
|
+
$event.stopPropagation();
|
|
1003
977
|
return _vm.clickItem(file, $event);
|
|
1004
978
|
} } }, [_vm._v(" " + _vm._s(file.name) + " ")])]);
|
|
1005
979
|
}), 1) : !_vm.previewMode ? _c("span", { staticStyle: { "color": "#ccc" } }, [_vm._v(_vm._s(_vm.acceptableFormats.join(" ")))]) : _vm._e()], 1)], 1);
|
|
@@ -1007,7 +981,7 @@ var render$b = function() {
|
|
|
1007
981
|
var staticRenderFns$b = [];
|
|
1008
982
|
var index_vue_vue_type_style_index_0_scoped_true_lang$6 = "";
|
|
1009
983
|
const __cssModules$b = {};
|
|
1010
|
-
var __component__$b = /* @__PURE__ */ normalizeComponent(__vue2_script$b, render$b, staticRenderFns$b, false, __vue2_injectStyles$b, "
|
|
984
|
+
var __component__$b = /* @__PURE__ */ normalizeComponent(__vue2_script$b, render$b, staticRenderFns$b, false, __vue2_injectStyles$b, "36120c70", null, null);
|
|
1011
985
|
function __vue2_injectStyles$b(context) {
|
|
1012
986
|
for (let o in __cssModules$b) {
|
|
1013
987
|
this[o] = __cssModules$b[o];
|
|
@@ -1119,6 +1093,18 @@ var TaskTypes;
|
|
|
1119
1093
|
TaskTypes2["clientReview"] = "For Client Review";
|
|
1120
1094
|
TaskTypes2["worksheet"] = "Worksheet";
|
|
1121
1095
|
})(TaskTypes || (TaskTypes = {}));
|
|
1096
|
+
var StepType;
|
|
1097
|
+
(function(StepType2) {
|
|
1098
|
+
StepType2["worksheetForEmployeeEmployer"] = "WORKSHEET_FOR_EMPLOYEE_EMPLOYER";
|
|
1099
|
+
StepType2["beneficiary"] = "BENEFICIARY";
|
|
1100
|
+
StepType2["petitioner"] = "PETITIONER";
|
|
1101
|
+
StepType2["billing"] = "BILLING";
|
|
1102
|
+
StepType2["overseas"] = "OVERSEAS";
|
|
1103
|
+
StepType2["supplement"] = "SUPPLEMENT";
|
|
1104
|
+
StepType2["worksheetForAttorney"] = "WORKSHEET_FOR_ATTORNEY";
|
|
1105
|
+
StepType2["counterReviewAndSign"] = "COUNTER_REVIEW_AND_SIGN";
|
|
1106
|
+
StepType2["attorney"] = "ATTORNEY";
|
|
1107
|
+
})(StepType || (StepType = {}));
|
|
1122
1108
|
var TaskTemplateSortBy;
|
|
1123
1109
|
(function(TaskTemplateSortBy2) {
|
|
1124
1110
|
TaskTemplateSortBy2["default"] = "DEFAULT";
|
|
@@ -1198,10 +1184,18 @@ var __vue2_script$8 = defineComponent({
|
|
|
1198
1184
|
setup(props, { emit }) {
|
|
1199
1185
|
const nameError = ref(false);
|
|
1200
1186
|
const typeError = ref(false);
|
|
1187
|
+
const nameErrorContent = ref("message.Required");
|
|
1201
1188
|
const changeVal = useChangeVal(props, emit);
|
|
1202
1189
|
const validFields = (callback) => {
|
|
1190
|
+
var _a;
|
|
1203
1191
|
const data = refactorParams(props.value);
|
|
1204
|
-
|
|
1192
|
+
if (!data.taskName) {
|
|
1193
|
+
nameError.value = true;
|
|
1194
|
+
nameErrorContent.value = "message.required";
|
|
1195
|
+
} else if (((_a = data.taskName) == null ? void 0 : _a.length) > 150) {
|
|
1196
|
+
nameError.value = true;
|
|
1197
|
+
nameErrorContent.value = "message.moreThan150";
|
|
1198
|
+
}
|
|
1205
1199
|
typeError.value = !data.generalTaskType;
|
|
1206
1200
|
callback(!nameError.value && !typeError.value, data, {
|
|
1207
1201
|
nameError,
|
|
@@ -1226,7 +1220,8 @@ var __vue2_script$8 = defineComponent({
|
|
|
1226
1220
|
validFields,
|
|
1227
1221
|
TaskTypes,
|
|
1228
1222
|
roles,
|
|
1229
|
-
isAttorneySelected
|
|
1223
|
+
isAttorneySelected,
|
|
1224
|
+
nameErrorContent
|
|
1230
1225
|
};
|
|
1231
1226
|
}
|
|
1232
1227
|
});
|
|
@@ -1236,7 +1231,7 @@ var render$8 = function() {
|
|
|
1236
1231
|
var _c = _vm._self._c || _h;
|
|
1237
1232
|
return _c("ant-form", { staticClass: "add-edit-task-modal", on: { "submit": function(e) {
|
|
1238
1233
|
return e.preventDefault();
|
|
1239
|
-
} } }, [_c("ant-row", { attrs: { "gutter": 20 } }, [_c("ant-col", { attrs: { "span": 12 } }, [_c("ant-form-item", { attrs: { "required": "", "name": "taskName", "label": _vm.$t("message.taskName"), "help": _vm.nameError ? _vm.$t(
|
|
1234
|
+
} } }, [_c("ant-row", { attrs: { "gutter": 20 } }, [_c("ant-col", { attrs: { "span": 12 } }, [_c("ant-form-item", { attrs: { "required": "", "name": "taskName", "label": _vm.$t("message.taskName"), "help": _vm.nameError ? _vm.$t(_vm.nameErrorContent) : void 0, "validate-status": _vm.nameError ? "error" : void 0 } }, [_c("ant-input", { attrs: { "disabled": _vm.disabled, "value": _vm.value.taskName }, on: { "input": function($event) {
|
|
1240
1235
|
return _vm.changeVal("taskName", $event.target.value);
|
|
1241
1236
|
} } })], 1)], 1), _c("ant-col", { attrs: { "span": 12 } }, [_c("ant-form-item", { attrs: { "label": "" + _vm.$t("message.assignee") + " (" + _vm.$t("message.optional") + ")" } }, [_c("ant-select", { staticStyle: { "min-width": "170px" }, attrs: { "disabled": _vm.disabled, "value": _vm.value.isEmployee, "allowClear": true }, on: { "change": function($event) {
|
|
1242
1237
|
return _vm.changeVal("isEmployee", $event);
|
|
@@ -1255,7 +1250,7 @@ var render$8 = function() {
|
|
|
1255
1250
|
var staticRenderFns$8 = [];
|
|
1256
1251
|
var index_vue_vue_type_style_index_0_scoped_true_lang$3 = "";
|
|
1257
1252
|
const __cssModules$8 = {};
|
|
1258
|
-
var __component__$8 = /* @__PURE__ */ normalizeComponent(__vue2_script$8, render$8, staticRenderFns$8, false, __vue2_injectStyles$8, "
|
|
1253
|
+
var __component__$8 = /* @__PURE__ */ normalizeComponent(__vue2_script$8, render$8, staticRenderFns$8, false, __vue2_injectStyles$8, "5b530226", null, null);
|
|
1259
1254
|
function __vue2_injectStyles$8(context) {
|
|
1260
1255
|
for (let o in __cssModules$8) {
|
|
1261
1256
|
this[o] = __cssModules$8[o];
|
|
@@ -1306,6 +1301,10 @@ var __vue2_script$7 = defineComponent({
|
|
|
1306
1301
|
loading: {
|
|
1307
1302
|
type: Boolean,
|
|
1308
1303
|
default: false
|
|
1304
|
+
},
|
|
1305
|
+
hasDoubleConfirm: {
|
|
1306
|
+
type: Boolean,
|
|
1307
|
+
default: true
|
|
1309
1308
|
}
|
|
1310
1309
|
},
|
|
1311
1310
|
setup(props, { emit }) {
|
|
@@ -1324,8 +1323,8 @@ var __vue2_script$7 = defineComponent({
|
|
|
1324
1323
|
selfUserId: props.userId,
|
|
1325
1324
|
selfLawFirmId: props.lawFirmId,
|
|
1326
1325
|
taskTemplateId: ts.id,
|
|
1327
|
-
isAddedToTask: props.value.isAddedToTask,
|
|
1328
|
-
isNotified: props.value.isNotified
|
|
1326
|
+
isAddedToTask: props.value.isAddedToTask || false,
|
|
1327
|
+
isNotified: props.value.isNotified || false
|
|
1329
1328
|
};
|
|
1330
1329
|
emit("submit", data);
|
|
1331
1330
|
}
|
|
@@ -1366,7 +1365,7 @@ var render$7 = function() {
|
|
|
1366
1365
|
} }, scopedSlots: _vm._u([{ key: "footer", fn: function() {
|
|
1367
1366
|
return [_c("div", { staticClass: "footer" }, [_vm.showSendEmail ? _c("div", { staticStyle: { "float": "left", "padding-top": "5px", "padding-left": "10px" } }, [_c("ant-checkbox", { attrs: { "checked": _vm.value.isNotified }, on: { "change": function($event) {
|
|
1368
1367
|
return _vm.changeVal("isNotified", $event.target.checked);
|
|
1369
|
-
} } }, [_vm._v(" " + _vm._s(_vm.$t("message.sendEmail")) + " ")])], 1) : _vm._e(), _c("div", [_c("ant-popconfirm", { attrs: { "title": "
|
|
1368
|
+
} } }, [_vm._v(" " + _vm._s(_vm.$t("message.sendEmail")) + " ")])], 1) : _vm._e(), _c("div", [_vm.hasDoubleConfirm ? _c("ant-popconfirm", { attrs: { "title": _vm.$t("message.updateTaskConfirm"), "placement": "top" }, on: { "confirm": _vm.submit } }, [_c("ant-button", { attrs: { "loading": _vm.loading, "type": "primary" } }, [_vm._v(_vm._s(_vm.$t("message.submit")) + " ")])], 1) : _c("ant-button", { attrs: { "loading": _vm.loading, "type": "primary" }, on: { "click": _vm.submit } }, [_vm._v(_vm._s(_vm.$t("message.submit")) + " ")]), _c("ant-button", { on: { "click": function($event) {
|
|
1370
1369
|
return _vm.changeVisible(false);
|
|
1371
1370
|
} } }, [_vm._v(_vm._s(_vm.$t("message.cancel")) + " ")])], 1)])];
|
|
1372
1371
|
}, proxy: true }]) }, [_c("task-form", { ref: "taskForm", attrs: { "upload-files-func": _vm.uploadFilesFunc, "law-firm-id": _vm.lawFirmId, "user-id": _vm.userId, "value": _vm.value.taskTemplateObj }, on: { "update:value": _vm.updateFormValue } }), _vm.showAddToList ? _c("ant-checkbox", { attrs: { "checked": _vm.value.isAddedToTask }, on: { "change": function($event) {
|
|
@@ -1376,7 +1375,7 @@ var render$7 = function() {
|
|
|
1376
1375
|
var staticRenderFns$7 = [];
|
|
1377
1376
|
var index_vue_vue_type_style_index_0_scoped_true_lang$2 = "";
|
|
1378
1377
|
const __cssModules$7 = {};
|
|
1379
|
-
var __component__$7 = /* @__PURE__ */ normalizeComponent(__vue2_script$7, render$7, staticRenderFns$7, false, __vue2_injectStyles$7, "
|
|
1378
|
+
var __component__$7 = /* @__PURE__ */ normalizeComponent(__vue2_script$7, render$7, staticRenderFns$7, false, __vue2_injectStyles$7, "f0709198", null, null);
|
|
1380
1379
|
function __vue2_injectStyles$7(context) {
|
|
1381
1380
|
for (let o in __cssModules$7) {
|
|
1382
1381
|
this[o] = __cssModules$7[o];
|
|
@@ -1398,8 +1397,9 @@ var __vue2_script$6 = defineComponent({
|
|
|
1398
1397
|
type: Object,
|
|
1399
1398
|
required: true
|
|
1400
1399
|
},
|
|
1401
|
-
|
|
1402
|
-
type:
|
|
1400
|
+
showTaskSettingLink: {
|
|
1401
|
+
type: Boolean,
|
|
1402
|
+
default: true
|
|
1403
1403
|
},
|
|
1404
1404
|
inline: {
|
|
1405
1405
|
type: Boolean,
|
|
@@ -1408,6 +1408,10 @@ var __vue2_script$6 = defineComponent({
|
|
|
1408
1408
|
width: {
|
|
1409
1409
|
type: Number,
|
|
1410
1410
|
default: 300
|
|
1411
|
+
},
|
|
1412
|
+
showNewBtn: {
|
|
1413
|
+
type: Boolean,
|
|
1414
|
+
default: true
|
|
1411
1415
|
}
|
|
1412
1416
|
},
|
|
1413
1417
|
setup(props, { emit }) {
|
|
@@ -1434,16 +1438,16 @@ var render$6 = function() {
|
|
|
1434
1438
|
return _vm.changeVal("keywords", $event.target.value);
|
|
1435
1439
|
} }, scopedSlots: _vm._u([{ key: "suffix", fn: function() {
|
|
1436
1440
|
return void 0;
|
|
1437
|
-
}, proxy: true }]) }), _c("ant-button", { class: { taskTemplateInline: _vm.inline }, staticStyle: { "margin-left": "20px", "float": "right" }, on: { "click": function($event) {
|
|
1441
|
+
}, proxy: true }]) }), _vm.showNewBtn ? _c("ant-button", { class: { taskTemplateInline: _vm.inline }, staticStyle: { "margin-left": "20px", "float": "right" }, on: { "click": function($event) {
|
|
1438
1442
|
return _vm.$emit("update:newTaskVisible", true);
|
|
1439
|
-
} } }, [_vm._v(" " + _vm._s(_vm.$t("message.newTask")) + " ")]), _vm.
|
|
1443
|
+
} } }, [_vm._v(" " + _vm._s(_vm.$t("message.newTask")) + " ")]) : _vm._e(), _vm.showTaskSettingLink ? _c("a", { class: { taskTemplateInline: _vm.inline }, staticStyle: { "float": "right", "margin-top": "5px", "color": "dodgerblue !important" }, attrs: { "href": "/task-templates", "target": "_blank" } }, [_vm._v(" " + _vm._s(_vm.$t("message.taskSetting")) + " ")]) : _vm._e(), _c("div", { class: { taskTemplateInline: _vm.inline }, staticStyle: { "margin-top": "20px" } }, [_c("ant-checkbox-group", { attrs: { "value": _vm.conditions.isEmployee }, on: { "change": function($event) {
|
|
1440
1444
|
return _vm.changeVal("isEmployee", $event);
|
|
1441
|
-
} } }, [_c("ant-checkbox", { attrs: { "value": _vm.AssigneeTypes.ATTORNEY } }, [_vm._v(_vm._s(_vm.$t("message.attorney")) + " ")]), _c("ant-checkbox", { attrs: { "value": _vm.AssigneeTypes.BENEFICIARY } }, [_vm._v(_vm._s(_vm.$t("message.beneficiary")) + " ")]), _c("ant-checkbox", { attrs: { "value": _vm.AssigneeTypes.PETITIONER } }, [_vm._v(_vm._s(_vm.$t("message.petitioner")) + " ")])], 1)], 1)], 1);
|
|
1445
|
+
} } }, [_c("ant-checkbox", { attrs: { "value": _vm.AssigneeTypes.ATTORNEY } }, [_vm._v(_vm._s(_vm.$t("message.attorney")) + " ")]), _c("ant-checkbox", { attrs: { "value": _vm.AssigneeTypes.BENEFICIARY } }, [_vm._v(_vm._s(_vm.$t("message.beneficiary")) + " ")]), _c("ant-checkbox", { attrs: { "value": _vm.AssigneeTypes.PETITIONER } }, [_vm._v(_vm._s(_vm.$t("message.petitioner")) + " ")]), _c("ant-checkbox", { attrs: { "value": _vm.AssigneeTypes.EMPTY_DEFAULT } }, [_vm._v(_vm._s(_vm.$t("message.none")) + " ")])], 1)], 1)], 1);
|
|
1442
1446
|
};
|
|
1443
1447
|
var staticRenderFns$6 = [];
|
|
1444
1448
|
var index_vue_vue_type_style_index_0_scoped_true_lang$1 = "";
|
|
1445
1449
|
const __cssModules$6 = {};
|
|
1446
|
-
var __component__$6 = /* @__PURE__ */ normalizeComponent(__vue2_script$6, render$6, staticRenderFns$6, false, __vue2_injectStyles$6, "
|
|
1450
|
+
var __component__$6 = /* @__PURE__ */ normalizeComponent(__vue2_script$6, render$6, staticRenderFns$6, false, __vue2_injectStyles$6, "c5d917d8", null, null);
|
|
1447
1451
|
function __vue2_injectStyles$6(context) {
|
|
1448
1452
|
for (let o in __cssModules$6) {
|
|
1449
1453
|
this[o] = __cssModules$6[o];
|
|
@@ -1497,7 +1501,8 @@ var __vue2_script$5 = defineComponent({
|
|
|
1497
1501
|
{
|
|
1498
1502
|
title: t("message.taskName"),
|
|
1499
1503
|
dataIndex: "taskName",
|
|
1500
|
-
key: "taskName"
|
|
1504
|
+
key: "taskName",
|
|
1505
|
+
scopedSlots: { customRender: "taskName" }
|
|
1501
1506
|
},
|
|
1502
1507
|
{
|
|
1503
1508
|
title: t("message.assignee"),
|
|
@@ -1536,6 +1541,8 @@ var render$5 = function() {
|
|
|
1536
1541
|
return _vm.$emit("changePagination", $event);
|
|
1537
1542
|
} }, scopedSlots: _vm._u([{ key: "isEmployee", fn: function(isEmployee) {
|
|
1538
1543
|
return _c("span", {}, [_c("assignee-tag", { attrs: { "assignee-type": isEmployee } })], 1);
|
|
1544
|
+
} }, { key: "taskName", fn: function(taskName) {
|
|
1545
|
+
return _c("span", {}, [_c("span", { staticStyle: { "word-break": "break-word" } }, [_vm._v(_vm._s(taskName))])]);
|
|
1539
1546
|
} }, { key: "tagList", fn: function(tags) {
|
|
1540
1547
|
return [_c("tags-with-tooltip", { attrs: { "tags": tags } })];
|
|
1541
1548
|
} }, { key: "operation", fn: function(_, record) {
|
|
@@ -1551,7 +1558,7 @@ var render$5 = function() {
|
|
|
1551
1558
|
var staticRenderFns$5 = [];
|
|
1552
1559
|
var TaskTablePure_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
1553
1560
|
const __cssModules$5 = {};
|
|
1554
|
-
var __component__$5 = /* @__PURE__ */ normalizeComponent(__vue2_script$5, render$5, staticRenderFns$5, false, __vue2_injectStyles$5, "
|
|
1561
|
+
var __component__$5 = /* @__PURE__ */ normalizeComponent(__vue2_script$5, render$5, staticRenderFns$5, false, __vue2_injectStyles$5, "565e42da", null, null);
|
|
1555
1562
|
function __vue2_injectStyles$5(context) {
|
|
1556
1563
|
for (let o in __cssModules$5) {
|
|
1557
1564
|
this[o] = __cssModules$5[o];
|
|
@@ -1560,7 +1567,7 @@ function __vue2_injectStyles$5(context) {
|
|
|
1560
1567
|
var TaskTablePure = /* @__PURE__ */ function() {
|
|
1561
1568
|
return __component__$5.exports;
|
|
1562
1569
|
}();
|
|
1563
|
-
var useSearchTaskTemplates = (pagination, conditions = ref({}), lawFirmId) => {
|
|
1570
|
+
var useSearchTaskTemplates = (pagination, conditions = ref({}), lawFirmId, withGallery = true) => {
|
|
1564
1571
|
const startIndex = computed(() => (pagination.value.current - 1) * pagination.value.pageSize);
|
|
1565
1572
|
const endIndex = computed(() => startIndex.value + pagination.value.pageSize);
|
|
1566
1573
|
watch(() => conditions.value, () => {
|
|
@@ -1569,7 +1576,7 @@ var useSearchTaskTemplates = (pagination, conditions = ref({}), lawFirmId) => {
|
|
|
1569
1576
|
});
|
|
1570
1577
|
return useQuery(SearchTaskTemplatesQuery, () => ({
|
|
1571
1578
|
query: {
|
|
1572
|
-
includeGallery:
|
|
1579
|
+
includeGallery: withGallery,
|
|
1573
1580
|
keywords: conditions.value.keywords || "",
|
|
1574
1581
|
isEmployee: conditions.value.isEmployee,
|
|
1575
1582
|
taskTemplateId: conditions.value.taskTemplateId,
|
|
@@ -1587,6 +1594,7 @@ const taskTemplateFragment = gql`
|
|
|
1587
1594
|
taskName
|
|
1588
1595
|
tagList
|
|
1589
1596
|
isEmployee
|
|
1597
|
+
taskType
|
|
1590
1598
|
generalTaskType
|
|
1591
1599
|
descriptions
|
|
1592
1600
|
sampleDocs {
|
|
@@ -1594,6 +1602,7 @@ const taskTemplateFragment = gql`
|
|
|
1594
1602
|
name
|
|
1595
1603
|
link
|
|
1596
1604
|
}
|
|
1605
|
+
sampleDocList
|
|
1597
1606
|
updatedUser{
|
|
1598
1607
|
id
|
|
1599
1608
|
name
|
|
@@ -1648,7 +1657,7 @@ var useTaskTemplateTableData = (props, emit) => {
|
|
|
1648
1657
|
total: 0
|
|
1649
1658
|
});
|
|
1650
1659
|
const { conditions = useSearchTaskConditions(), addedTasks = ref([]) } = toRefs(props);
|
|
1651
|
-
const { result, loading, variables } = useSearchTaskTemplates(initialPagination, conditions, props.lawFirmId);
|
|
1660
|
+
const { result, loading, variables } = useSearchTaskTemplates(initialPagination, conditions, props.lawFirmId, props.withGallery);
|
|
1652
1661
|
const dataSource = computed(() => {
|
|
1653
1662
|
var _a;
|
|
1654
1663
|
return ((_a = result.value) == null ? void 0 : _a.taskTemplateSearch.taskTemplateList) || [];
|
|
@@ -1698,6 +1707,10 @@ var __vue2_script$4 = defineComponent({
|
|
|
1698
1707
|
},
|
|
1699
1708
|
pageSize: {
|
|
1700
1709
|
type: Number
|
|
1710
|
+
},
|
|
1711
|
+
withGallery: {
|
|
1712
|
+
type: Boolean,
|
|
1713
|
+
default: true
|
|
1701
1714
|
}
|
|
1702
1715
|
},
|
|
1703
1716
|
setup(props, { emit }) {
|
|
@@ -1735,7 +1748,7 @@ var render$4 = function() {
|
|
|
1735
1748
|
var staticRenderFns$4 = [];
|
|
1736
1749
|
var TaskTable_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
1737
1750
|
const __cssModules$4 = {};
|
|
1738
|
-
var __component__$4 = /* @__PURE__ */ normalizeComponent(__vue2_script$4, render$4, staticRenderFns$4, false, __vue2_injectStyles$4, "
|
|
1751
|
+
var __component__$4 = /* @__PURE__ */ normalizeComponent(__vue2_script$4, render$4, staticRenderFns$4, false, __vue2_injectStyles$4, "6662fabb", null, null);
|
|
1739
1752
|
function __vue2_injectStyles$4(context) {
|
|
1740
1753
|
for (let o in __cssModules$4) {
|
|
1741
1754
|
this[o] = __cssModules$4[o];
|
|
@@ -1764,8 +1777,9 @@ var __vue2_script$3 = defineComponent({
|
|
|
1764
1777
|
type: Number,
|
|
1765
1778
|
required: true
|
|
1766
1779
|
},
|
|
1767
|
-
|
|
1768
|
-
type:
|
|
1780
|
+
showTaskSettingLink: {
|
|
1781
|
+
type: Boolean,
|
|
1782
|
+
default: true
|
|
1769
1783
|
},
|
|
1770
1784
|
showPage: {
|
|
1771
1785
|
type: Boolean,
|
|
@@ -1777,6 +1791,14 @@ var __vue2_script$3 = defineComponent({
|
|
|
1777
1791
|
openReviewButtonText: {
|
|
1778
1792
|
type: String,
|
|
1779
1793
|
default: "Review and add to template"
|
|
1794
|
+
},
|
|
1795
|
+
withGallery: {
|
|
1796
|
+
type: Boolean,
|
|
1797
|
+
default: true
|
|
1798
|
+
},
|
|
1799
|
+
showNewBtn: {
|
|
1800
|
+
type: Boolean,
|
|
1801
|
+
default: true
|
|
1780
1802
|
}
|
|
1781
1803
|
},
|
|
1782
1804
|
setup(props, { emit }) {
|
|
@@ -1809,11 +1831,11 @@ var render$3 = function() {
|
|
|
1809
1831
|
} } }, [_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) {
|
|
1810
1832
|
return _vm.$emit("update:reviewModalVisible", true);
|
|
1811
1833
|
} } }, [_vm._v(" " + _vm._s(_vm.openReviewButtonText) + " ")])], 1)];
|
|
1812
|
-
}, proxy: true }]) }, [_c("task-template-filter", { attrs: { "show-task-home-page-link": true, "task-setting-
|
|
1834
|
+
}, proxy: true }]) }, [_c("task-template-filter", { attrs: { "show-task-home-page-link": true, "show-task-setting-link": _vm.showTaskSettingLink, "conditions": _vm.conditions, "inline": !!_vm.showPage, "show-new-btn": _vm.showNewBtn }, on: { "update:conditions": function($event) {
|
|
1813
1835
|
_vm.conditions = $event;
|
|
1814
1836
|
}, "update:newTaskVisible": function($event) {
|
|
1815
1837
|
return _vm.$emit("update:newTaskVisible", true);
|
|
1816
|
-
} } }), _c("task-table", { ref: "taskTable", attrs: { "conditions": _vm.conditions, "added-tasks": _vm.addedTasks, "law-firm-id": _vm.lawFirmId, "page-size": _vm.pageSize }, on: { "update:addedTasks": function($event) {
|
|
1838
|
+
} } }), _c("task-table", { ref: "taskTable", attrs: { "conditions": _vm.conditions, "added-tasks": _vm.addedTasks, "law-firm-id": _vm.lawFirmId, "page-size": _vm.pageSize, "with-gallery": _vm.withGallery }, on: { "update:addedTasks": function($event) {
|
|
1817
1839
|
return _vm.$emit("update:addedTasks", $event);
|
|
1818
1840
|
}, "editTask": function($event) {
|
|
1819
1841
|
return _vm.$emit("editTask", $event);
|
|
@@ -1828,7 +1850,7 @@ var render$3 = function() {
|
|
|
1828
1850
|
var staticRenderFns$3 = [];
|
|
1829
1851
|
var MainModal_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
1830
1852
|
const __cssModules$3 = {};
|
|
1831
|
-
var __component__$3 = /* @__PURE__ */ normalizeComponent(__vue2_script$3, render$3, staticRenderFns$3, false, __vue2_injectStyles$3, "
|
|
1853
|
+
var __component__$3 = /* @__PURE__ */ normalizeComponent(__vue2_script$3, render$3, staticRenderFns$3, false, __vue2_injectStyles$3, "68bc0589", null, null);
|
|
1832
1854
|
function __vue2_injectStyles$3(context) {
|
|
1833
1855
|
for (let o in __cssModules$3) {
|
|
1834
1856
|
this[o] = __cssModules$3[o];
|
|
@@ -2041,8 +2063,9 @@ var __vue2_script$1 = defineComponent({
|
|
|
2041
2063
|
type: Boolean,
|
|
2042
2064
|
default: false
|
|
2043
2065
|
},
|
|
2044
|
-
|
|
2045
|
-
type:
|
|
2066
|
+
showTaskSettingLink: {
|
|
2067
|
+
type: Boolean,
|
|
2068
|
+
default: true
|
|
2046
2069
|
},
|
|
2047
2070
|
allowClear: {
|
|
2048
2071
|
type: Boolean,
|
|
@@ -2062,6 +2085,14 @@ var __vue2_script$1 = defineComponent({
|
|
|
2062
2085
|
adding: {
|
|
2063
2086
|
type: Boolean,
|
|
2064
2087
|
default: false
|
|
2088
|
+
},
|
|
2089
|
+
withGallery: {
|
|
2090
|
+
type: Boolean,
|
|
2091
|
+
default: true
|
|
2092
|
+
},
|
|
2093
|
+
showNewBtn: {
|
|
2094
|
+
type: Boolean,
|
|
2095
|
+
default: true
|
|
2065
2096
|
}
|
|
2066
2097
|
},
|
|
2067
2098
|
setup(props, { emit }) {
|
|
@@ -2171,7 +2202,7 @@ var render$1 = function() {
|
|
|
2171
2202
|
var _vm = this;
|
|
2172
2203
|
var _h = _vm.$createElement;
|
|
2173
2204
|
var _c = _vm._self._c || _h;
|
|
2174
|
-
return _vm.lawFirmId != null ? _c("div", { attrs: { "id": "venus-component-task-cart" } }, [_c("main-modal", { ref: "mainModal", attrs: { "visible": _vm.visible, "show-page": _vm.pageMode, "page-size": _vm.pageSize, "law-firm-id": _vm.lawFirmId, "tempTask": _vm.tempTask, "added-tasks": _vm.addedTasks, "newTaskVisible": _vm.newTaskVisible, "task-setting-
|
|
2205
|
+
return _vm.lawFirmId != null ? _c("div", { attrs: { "id": "venus-component-task-cart" } }, [_c("main-modal", { ref: "mainModal", attrs: { "visible": _vm.visible, "show-page": _vm.pageMode, "page-size": _vm.pageSize, "law-firm-id": _vm.lawFirmId, "tempTask": _vm.tempTask, "show-new-btn": _vm.showNewBtn, "with-gallery": _vm.withGallery, "added-tasks": _vm.addedTasks, "newTaskVisible": _vm.newTaskVisible, "show-task-setting-link": _vm.showTaskSettingLink, "reviewModalVisible": _vm.reviewModalVisible, "open-review-button-text": _vm.openReviewButtonText }, on: { "update:tempTask": function($event) {
|
|
2175
2206
|
_vm.tempTask = $event;
|
|
2176
2207
|
}, "update:temp-task": function($event) {
|
|
2177
2208
|
_vm.tempTask = $event;
|
|
@@ -2211,7 +2242,7 @@ var render$1 = function() {
|
|
|
2211
2242
|
_vm.newTaskVisible = $event;
|
|
2212
2243
|
}, "submit": _vm.endReviewing, "update:sendEmail": function($event) {
|
|
2213
2244
|
return _vm.$emit("update:sendEmail", $event);
|
|
2214
|
-
} } }), _c("new-task", { attrs: { "user-id": _vm.userId, "loading": _vm.submitting, "value": _vm.tempTask, "law-firm-id": _vm.lawFirmId, "visible": _vm.newTaskVisible, "upload-files-func": _vm.uploadFilesFunc }, on: { "update:value": function($event) {
|
|
2245
|
+
} } }), _c("new-task", { attrs: { "user-id": _vm.userId, "loading": _vm.submitting, "value": _vm.tempTask, "law-firm-id": _vm.lawFirmId, "visible": _vm.newTaskVisible, "upload-files-func": _vm.uploadFilesFunc, "has-double-confirm": !!_vm.tempTask.taskTemplateObj.id }, on: { "update:value": function($event) {
|
|
2215
2246
|
_vm.tempTask = $event;
|
|
2216
2247
|
}, "update:visible": function($event) {
|
|
2217
2248
|
_vm.newTaskVisible = $event;
|
|
@@ -2220,7 +2251,7 @@ var render$1 = function() {
|
|
|
2220
2251
|
var staticRenderFns$1 = [];
|
|
2221
2252
|
var index_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
2222
2253
|
const __cssModules$1 = {};
|
|
2223
|
-
var __component__$1 = /* @__PURE__ */ normalizeComponent(__vue2_script$1, render$1, staticRenderFns$1, false, __vue2_injectStyles$1, "
|
|
2254
|
+
var __component__$1 = /* @__PURE__ */ normalizeComponent(__vue2_script$1, render$1, staticRenderFns$1, false, __vue2_injectStyles$1, "aa001828", null, null);
|
|
2224
2255
|
function __vue2_injectStyles$1(context) {
|
|
2225
2256
|
for (let o in __cssModules$1) {
|
|
2226
2257
|
this[o] = __cssModules$1[o];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ailaw/venus",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.3",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist"
|
|
6
6
|
],
|
|
@@ -16,16 +16,16 @@
|
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@apollo/client": "^3.5.7",
|
|
18
18
|
"@vue/apollo-composable": "^4.0.0-alpha.16",
|
|
19
|
+
"@vue/composition-api": "^1.4.5",
|
|
19
20
|
"ant-design-vue": "^1.7.8",
|
|
20
21
|
"graphql": "^15.8.0",
|
|
21
22
|
"graphql-tag": "^2.12.6",
|
|
22
23
|
"ramda": "^0.27.1",
|
|
24
|
+
"vue": "^2.0.0 || >=3.0.0",
|
|
23
25
|
"vue-demi": "^0.12.1",
|
|
24
26
|
"vue-i18n": "^8.11.2",
|
|
25
27
|
"vxe-table": "^3.4.13",
|
|
26
|
-
"whatwg-fetch": "^3.6.2"
|
|
27
|
-
"vue": "^2.0.0 || >=3.0.0",
|
|
28
|
-
"@vue/composition-api": "^1.4.5"
|
|
28
|
+
"whatwg-fetch": "^3.6.2"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@tailwindcss/postcss7-compat": "^2.2.17",
|