@ailaw/venus 0.6.7 → 0.8.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/forms/{I-129_Main with H supplement.d.ts → I-129 with H Supplement-Company Petitioner.d.ts} +0 -0
- package/dist/forms/index.d.ts +1 -1
- package/dist/hooks/useVm.d.ts +1 -0
- package/dist/profile-select/profile-create-modal.vue.d.ts +2 -0
- package/dist/style.css +1 -1
- package/dist/task-cart/index.vue.d.ts +4 -4
- package/dist/types/task.d.ts +1 -1
- package/dist/venus.es.js +37 -29
- package/package.json +1 -1
|
File without changes
|
package/dist/forms/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ export declare const formRecords: {
|
|
|
2
2
|
g28Person: import("../types/form").Form;
|
|
3
3
|
g1145: import("../types/form").Form;
|
|
4
4
|
i129Attachment: import("../types/form").Form;
|
|
5
|
-
|
|
5
|
+
i129Hs: import("../types/form").Form;
|
|
6
6
|
i130: import("../types/form").Form;
|
|
7
7
|
i130a: import("../types/form").Form;
|
|
8
8
|
i131: import("../types/form").Form;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function useVm(): any;
|
|
@@ -27,6 +27,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
27
27
|
loading: import("@vue/composition-api").Ref<boolean>;
|
|
28
28
|
canSubmit: import("@vue/composition-api").ComputedRef<boolean>;
|
|
29
29
|
handleSubmit: () => Promise<void>;
|
|
30
|
+
handleValidate: (_: string, result: boolean) => void;
|
|
30
31
|
}> & import("@vue/composition-api").Data, {}, {}, {
|
|
31
32
|
enabledTypes: {
|
|
32
33
|
type: PropType<RoleType[]>;
|
|
@@ -63,6 +64,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
63
64
|
loading: import("@vue/composition-api").Ref<boolean>;
|
|
64
65
|
canSubmit: import("@vue/composition-api").ComputedRef<boolean>;
|
|
65
66
|
handleSubmit: () => Promise<void>;
|
|
67
|
+
handleValidate: (_: string, result: boolean) => void;
|
|
66
68
|
}>, import("@vue/composition-api").Data, {}, {}, {}, {}, {}, {
|
|
67
69
|
enabledTypes: RoleType[];
|
|
68
70
|
} & {}, {
|
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-0eaae435]{min-width:320px}.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-0eaae435]{min-width:320px}.container[data-v-00646ac3]{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}
|
|
@@ -14,7 +14,6 @@ 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
17
|
sampleDocList?: number[] | undefined;
|
|
19
18
|
lawFirmId?: number | undefined;
|
|
20
19
|
isGallery?: boolean | undefined;
|
|
@@ -23,6 +22,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
23
22
|
generalTaskType?: TaskTypes | undefined;
|
|
24
23
|
descriptions?: string | undefined;
|
|
25
24
|
tagList?: string[] | undefined;
|
|
25
|
+
taskType?: import("../types/task").StepType | undefined;
|
|
26
26
|
};
|
|
27
27
|
isAddedToTask?: boolean | undefined;
|
|
28
28
|
isNotified?: boolean | undefined;
|
|
@@ -37,7 +37,6 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
37
37
|
name: string;
|
|
38
38
|
link: string;
|
|
39
39
|
}[] | undefined;
|
|
40
|
-
taskType?: import("../types/task").StepType | undefined;
|
|
41
40
|
sampleDocList?: number[] | undefined;
|
|
42
41
|
lawFirmId?: number | undefined;
|
|
43
42
|
isGallery?: boolean | undefined;
|
|
@@ -46,6 +45,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
46
45
|
generalTaskType?: TaskTypes | undefined;
|
|
47
46
|
descriptions?: string | undefined;
|
|
48
47
|
tagList?: string[] | undefined;
|
|
48
|
+
taskType?: import("../types/task").StepType | undefined;
|
|
49
49
|
}[]>;
|
|
50
50
|
userId: import("@vue/composition-api").ComputedRef<string | undefined>;
|
|
51
51
|
lawFirmId: import("@vue/composition-api").ComputedRef<number | undefined>;
|
|
@@ -161,7 +161,6 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
161
161
|
name: string;
|
|
162
162
|
link: string;
|
|
163
163
|
}[] | undefined;
|
|
164
|
-
taskType?: import("../types/task").StepType | undefined;
|
|
165
164
|
sampleDocList?: number[] | undefined;
|
|
166
165
|
lawFirmId?: number | undefined;
|
|
167
166
|
isGallery?: boolean | undefined;
|
|
@@ -170,6 +169,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
170
169
|
generalTaskType?: TaskTypes | undefined;
|
|
171
170
|
descriptions?: string | undefined;
|
|
172
171
|
tagList?: string[] | undefined;
|
|
172
|
+
taskType?: import("../types/task").StepType | undefined;
|
|
173
173
|
};
|
|
174
174
|
isAddedToTask?: boolean | undefined;
|
|
175
175
|
isNotified?: boolean | undefined;
|
|
@@ -184,7 +184,6 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
184
184
|
name: string;
|
|
185
185
|
link: string;
|
|
186
186
|
}[] | undefined;
|
|
187
|
-
taskType?: import("../types/task").StepType | undefined;
|
|
188
187
|
sampleDocList?: number[] | undefined;
|
|
189
188
|
lawFirmId?: number | undefined;
|
|
190
189
|
isGallery?: boolean | undefined;
|
|
@@ -193,6 +192,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
193
192
|
generalTaskType?: TaskTypes | undefined;
|
|
194
193
|
descriptions?: string | undefined;
|
|
195
194
|
tagList?: string[] | undefined;
|
|
195
|
+
taskType?: import("../types/task").StepType | undefined;
|
|
196
196
|
}[]>;
|
|
197
197
|
userId: import("@vue/composition-api").ComputedRef<string | undefined>;
|
|
198
198
|
lawFirmId: import("@vue/composition-api").ComputedRef<number | undefined>;
|
package/dist/types/task.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ interface BaseTaskTemplate {
|
|
|
22
22
|
generalTaskType?: TaskTypes;
|
|
23
23
|
descriptions?: string;
|
|
24
24
|
tagList?: string[];
|
|
25
|
+
taskType?: StepType;
|
|
25
26
|
}
|
|
26
27
|
export interface TaskTemplateGraphData extends BaseTaskTemplate {
|
|
27
28
|
sampleDocList?: number[];
|
|
@@ -39,7 +40,6 @@ export interface TaskTemplate extends BaseTaskTemplate {
|
|
|
39
40
|
id?: number;
|
|
40
41
|
isEmployee?: AssigneeTypeKeys;
|
|
41
42
|
sampleDocs?: Document[];
|
|
42
|
-
taskType?: StepType;
|
|
43
43
|
sampleDocList?: number[];
|
|
44
44
|
lawFirmId?: number;
|
|
45
45
|
isGallery?: boolean;
|
package/dist/venus.es.js
CHANGED
|
@@ -18,7 +18,7 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { defineComponent, ref, watch, reactive, computed, toRefs, getCurrentScope, shallowRef } from "vue-demi";
|
|
21
|
-
import { Select, Modal,
|
|
21
|
+
import { Select, Modal, FormModel, Input, Checkbox, Divider, Button, Upload, Tag, Tooltip, Form, 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, sort } from "ramda";
|
|
@@ -292,8 +292,8 @@ var __vue2_script$h = defineComponent({
|
|
|
292
292
|
},
|
|
293
293
|
components: {
|
|
294
294
|
Modal,
|
|
295
|
-
Form,
|
|
296
|
-
FormItem:
|
|
295
|
+
Form: FormModel,
|
|
296
|
+
FormItem: FormModel.Item,
|
|
297
297
|
ProfileTypeSelect,
|
|
298
298
|
Input,
|
|
299
299
|
Checkbox
|
|
@@ -305,10 +305,9 @@ var __vue2_script$h = defineComponent({
|
|
|
305
305
|
email: "",
|
|
306
306
|
sendEmail: false
|
|
307
307
|
});
|
|
308
|
+
const hasValidationError = ref(false);
|
|
308
309
|
const canSubmit = computed(() => {
|
|
309
|
-
if (value.name === "" || value.profileType == null)
|
|
310
|
-
return false;
|
|
311
|
-
if (value.email !== "" && !value.email.includes("@"))
|
|
310
|
+
if (value.name === "" || value.profileType == null || hasValidationError.value)
|
|
312
311
|
return false;
|
|
313
312
|
return true;
|
|
314
313
|
});
|
|
@@ -317,6 +316,9 @@ var __vue2_script$h = defineComponent({
|
|
|
317
316
|
name: { required: true },
|
|
318
317
|
email: { type: "email" }
|
|
319
318
|
};
|
|
319
|
+
const handleValidate = (_2, result) => {
|
|
320
|
+
hasValidationError.value = !result;
|
|
321
|
+
};
|
|
320
322
|
const clearValue = () => Object.assign(value, {});
|
|
321
323
|
const { createProfile, loading } = useCreateProfile();
|
|
322
324
|
const hide = () => emit("cancel");
|
|
@@ -331,7 +333,8 @@ var __vue2_script$h = defineComponent({
|
|
|
331
333
|
clearValue,
|
|
332
334
|
loading,
|
|
333
335
|
canSubmit,
|
|
334
|
-
handleSubmit
|
|
336
|
+
handleSubmit,
|
|
337
|
+
handleValidate
|
|
335
338
|
};
|
|
336
339
|
}
|
|
337
340
|
});
|
|
@@ -339,7 +342,7 @@ var render$h = function() {
|
|
|
339
342
|
var _vm = this;
|
|
340
343
|
var _h = _vm.$createElement;
|
|
341
344
|
var _c = _vm._self._c || _h;
|
|
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) {
|
|
345
|
+
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 }, on: { "validate": _vm.handleValidate } }, [_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) {
|
|
343
346
|
_vm.$set(_vm.value, "profileType", $$v);
|
|
344
347
|
}, expression: "value.profileType" } })], 1), _c("form-item", { attrs: { "label": "Name", "prop": "name" } }, [_c("Input", { model: { value: _vm.value.name, callback: function($$v) {
|
|
345
348
|
_vm.$set(_vm.value, "name", $$v);
|
|
@@ -808,8 +811,8 @@ var i129Attachment = createForm({
|
|
|
808
811
|
Beneficiary: "USERPROFILE"
|
|
809
812
|
}
|
|
810
813
|
});
|
|
811
|
-
var
|
|
812
|
-
displayName: "I-
|
|
814
|
+
var i129Hs = createForm({
|
|
815
|
+
displayName: "I-129 with H Supplement-Company Petitioner",
|
|
813
816
|
roles: {
|
|
814
817
|
Petitioner: "CLIENTPROFILE",
|
|
815
818
|
Beneficiary: "USERPROFILE",
|
|
@@ -879,7 +882,7 @@ const formRecords = {
|
|
|
879
882
|
g28Person,
|
|
880
883
|
g1145,
|
|
881
884
|
i129Attachment,
|
|
882
|
-
|
|
885
|
+
i129Hs,
|
|
883
886
|
i130,
|
|
884
887
|
i130a,
|
|
885
888
|
i131,
|
|
@@ -940,16 +943,14 @@ var __vue2_script$b = defineComponent({
|
|
|
940
943
|
office_id: (_a = me.value) == null ? void 0 : _a.lawFirmId,
|
|
941
944
|
user_id: (_b = me.value) == null ? void 0 : _b.id
|
|
942
945
|
}).then((res) => {
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
]);
|
|
952
|
-
}
|
|
946
|
+
emit("change", [
|
|
947
|
+
...props.value,
|
|
948
|
+
...res.map(({ status, value }) => {
|
|
949
|
+
if (status === "fulfilled") {
|
|
950
|
+
return value;
|
|
951
|
+
}
|
|
952
|
+
}).filter((v) => v)
|
|
953
|
+
]);
|
|
953
954
|
}).finally(() => {
|
|
954
955
|
loading.value = false;
|
|
955
956
|
});
|
|
@@ -1002,7 +1003,7 @@ var render$b = function() {
|
|
|
1002
1003
|
var staticRenderFns$b = [];
|
|
1003
1004
|
var index_vue_vue_type_style_index_0_scoped_true_lang$6 = "";
|
|
1004
1005
|
const __cssModules$b = {};
|
|
1005
|
-
var __component__$b = /* @__PURE__ */ normalizeComponent(__vue2_script$b, render$b, staticRenderFns$b, false, __vue2_injectStyles$b, "
|
|
1006
|
+
var __component__$b = /* @__PURE__ */ normalizeComponent(__vue2_script$b, render$b, staticRenderFns$b, false, __vue2_injectStyles$b, "00646ac3", null, null);
|
|
1006
1007
|
function __vue2_injectStyles$b(context) {
|
|
1007
1008
|
for (let o in __cssModules$b) {
|
|
1008
1009
|
this[o] = __cssModules$b[o];
|
|
@@ -1135,6 +1136,7 @@ var TaskTemplateSortBy;
|
|
|
1135
1136
|
TaskTemplateSortBy2["isEmployee"] = "ISEMPLOYEE";
|
|
1136
1137
|
})(TaskTemplateSortBy || (TaskTemplateSortBy = {}));
|
|
1137
1138
|
var useChangeVal = (props, emit) => (k, v) => {
|
|
1139
|
+
console.log(k, v);
|
|
1138
1140
|
emit("update:value", __spreadProps(__spreadValues({}, props.value), {
|
|
1139
1141
|
[k]: v
|
|
1140
1142
|
}));
|
|
@@ -1338,9 +1340,12 @@ var __vue2_script$7 = defineComponent({
|
|
|
1338
1340
|
const changeVal = useChangeVal(props, emit);
|
|
1339
1341
|
const submit2 = () => {
|
|
1340
1342
|
taskForm.value.validFields((passed, ts) => {
|
|
1343
|
+
console.log(props.value.taskTemplateObj.taskType);
|
|
1341
1344
|
if (passed) {
|
|
1342
1345
|
const data = {
|
|
1343
|
-
taskTemplateObj: ts,
|
|
1346
|
+
taskTemplateObj: __spreadProps(__spreadValues({}, ts), {
|
|
1347
|
+
taskType: props.value.taskTemplateObj.taskType
|
|
1348
|
+
}),
|
|
1344
1349
|
selfUserId: props.userId,
|
|
1345
1350
|
selfLawFirmId: props.lawFirmId,
|
|
1346
1351
|
taskTemplateId: ts.id,
|
|
@@ -1396,7 +1401,7 @@ var render$7 = function() {
|
|
|
1396
1401
|
var staticRenderFns$7 = [];
|
|
1397
1402
|
var index_vue_vue_type_style_index_0_scoped_true_lang$2 = "";
|
|
1398
1403
|
const __cssModules$7 = {};
|
|
1399
|
-
var __component__$7 = /* @__PURE__ */ normalizeComponent(__vue2_script$7, render$7, staticRenderFns$7, false, __vue2_injectStyles$7, "
|
|
1404
|
+
var __component__$7 = /* @__PURE__ */ normalizeComponent(__vue2_script$7, render$7, staticRenderFns$7, false, __vue2_injectStyles$7, "6f6da870", null, null);
|
|
1400
1405
|
function __vue2_injectStyles$7(context) {
|
|
1401
1406
|
for (let o in __cssModules$7) {
|
|
1402
1407
|
this[o] = __cssModules$7[o];
|
|
@@ -1477,9 +1482,13 @@ function __vue2_injectStyles$6(context) {
|
|
|
1477
1482
|
var TaskTemplateFilter = /* @__PURE__ */ function() {
|
|
1478
1483
|
return __component__$6.exports;
|
|
1479
1484
|
}();
|
|
1480
|
-
function
|
|
1485
|
+
function useVm() {
|
|
1481
1486
|
const scope = getCurrentScope();
|
|
1482
|
-
return
|
|
1487
|
+
return scope.vm;
|
|
1488
|
+
}
|
|
1489
|
+
function useT() {
|
|
1490
|
+
const vm = useVm();
|
|
1491
|
+
return (key) => vm.$i18n.t(key);
|
|
1483
1492
|
}
|
|
1484
1493
|
var __vue2_script$5 = defineComponent({
|
|
1485
1494
|
name: "TaskTablePure",
|
|
@@ -2157,7 +2166,7 @@ var __vue2_script$1 = defineComponent({
|
|
|
2157
2166
|
});
|
|
2158
2167
|
emit("update:value", newValue.map(({ id }) => id));
|
|
2159
2168
|
} else {
|
|
2160
|
-
addedTasks.value.push(newRecord);
|
|
2169
|
+
newRecord.id !== record.taskTemplateId && addedTasks.value.push(newRecord);
|
|
2161
2170
|
emit("update:value", [...addedTasks.value.map(({ id }) => id), newRecord.id]);
|
|
2162
2171
|
}
|
|
2163
2172
|
};
|
|
@@ -2190,7 +2199,6 @@ var __vue2_script$1 = defineComponent({
|
|
|
2190
2199
|
};
|
|
2191
2200
|
const _submit = async (record) => {
|
|
2192
2201
|
const { newRecord, success, isUpdate } = await submit(record, updateTemplate, createTemplate);
|
|
2193
|
-
console.log(0);
|
|
2194
2202
|
if (success) {
|
|
2195
2203
|
writeQuery(record.taskTemplateId, newRecord, isUpdate);
|
|
2196
2204
|
newTaskVisible.value = false;
|
|
@@ -2280,7 +2288,7 @@ var render$1 = function() {
|
|
|
2280
2288
|
var staticRenderFns$1 = [];
|
|
2281
2289
|
var index_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
2282
2290
|
const __cssModules$1 = {};
|
|
2283
|
-
var __component__$1 = /* @__PURE__ */ normalizeComponent(__vue2_script$1, render$1, staticRenderFns$1, false, __vue2_injectStyles$1, "
|
|
2291
|
+
var __component__$1 = /* @__PURE__ */ normalizeComponent(__vue2_script$1, render$1, staticRenderFns$1, false, __vue2_injectStyles$1, "466cfa4a", null, null);
|
|
2284
2292
|
function __vue2_injectStyles$1(context) {
|
|
2285
2293
|
for (let o in __cssModules$1) {
|
|
2286
2294
|
this[o] = __cssModules$1[o];
|