@ailaw/venus 0.2.0 → 0.2.2
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/README.md +6 -0
- package/dist/ar.js +1505 -0
- package/dist/ar2.js +2624 -0
- package/dist/ar3.js +744 -0
- package/dist/ben.js +1519 -0
- package/dist/ben2.js +2654 -0
- package/dist/ben3.js +793 -0
- package/dist/ch.js +1633 -0
- package/dist/ch2.js +2627 -0
- package/dist/ch3.js +744 -0
- package/dist/en.js +1521 -0
- package/dist/en2.js +2700 -0
- package/dist/en3.js +863 -0
- package/dist/es.js +1633 -0
- package/dist/es2.js +2625 -0
- package/dist/es3.js +744 -0
- package/dist/fa.js +1505 -0
- package/dist/fa2.js +2623 -0
- package/dist/fa3.js +744 -0
- package/dist/fr.js +1505 -0
- package/dist/fr2.js +2625 -0
- package/dist/fr3.js +744 -0
- package/dist/hi.js +1631 -0
- package/dist/hi2.js +2625 -0
- package/dist/hi3.js +744 -0
- package/dist/ht.js +1505 -0
- package/dist/ht2.js +2625 -0
- package/dist/ht3.js +744 -0
- package/dist/hy.js +1505 -0
- package/dist/hy2.js +2625 -0
- package/dist/hy3.js +744 -0
- package/dist/jp.js +1519 -0
- package/dist/jp2.js +2653 -0
- package/dist/jp3.js +793 -0
- package/dist/ko.js +1627 -0
- package/dist/ko2.js +2625 -0
- package/dist/ko3.js +744 -0
- package/dist/nep.js +1519 -0
- package/dist/nep2.js +2655 -0
- package/dist/nep3.js +793 -0
- package/dist/pt.js +1505 -0
- package/dist/pt2.js +2625 -0
- package/dist/pt3.js +744 -0
- package/dist/ru.js +1630 -0
- package/dist/ru2.js +2625 -0
- package/dist/ru3.js +744 -0
- package/dist/style.css +1 -1
- package/dist/venus.es.js +5654 -172
- package/package.json +6 -5
- package/dist/hooks/useMe/index.d.ts +0 -2
- package/dist/hooks/useMe/me.gql.d.ts +0 -1
- package/dist/hooks/useMe/types.d.ts +0 -4
- package/dist/hooks/useT.d.ts +0 -1
- package/dist/index.d.ts +0 -3
- package/dist/languages/en.d.ts +0 -38
- package/dist/languages/index.d.ts +0 -3
- package/dist/new-task/aFileUploader.vue.d.ts +0 -37
- package/dist/profile-select/gqls/profile.gql.d.ts +0 -2
- package/dist/profile-select/hooks/useCreateProfile.d.ts +0 -5
- package/dist/profile-select/hooks/useProfiles.d.ts +0 -6
- package/dist/profile-select/index.vue.d.ts +0 -30
- package/dist/profile-select/profile-create-modal.vue.d.ts +0 -54
- package/dist/profile-select/profile-select-item.vue.d.ts +0 -15
- package/dist/profile-select/profile-selector.vue.d.ts +0 -41
- package/dist/profile-select/profile-type-select.vue.d.ts +0 -32
- package/dist/profile-type-icon/index.vue.d.ts +0 -19
- package/dist/task-form/index.vue.d.ts +0 -55
- package/dist/task-form/useChangeVal.d.ts +0 -2
- package/dist/types/common.d.ts +0 -31
- package/dist/types/profile.d.ts +0 -8
- package/dist/types/task.d.ts +0 -93
- package/dist/venus.cjs.js +0 -49
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ailaw/venus",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist"
|
|
6
6
|
],
|
|
7
|
-
"main": "./dist/venus.
|
|
7
|
+
"main": "./dist/venus.es.js",
|
|
8
8
|
"module": "./dist/venus.es.js",
|
|
9
9
|
"typings": "./dist/index.d.ts",
|
|
10
10
|
"scripts": {
|
|
11
11
|
"dev": "vite",
|
|
12
|
-
"build": "vite build
|
|
12
|
+
"build": "vite build"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"@apollo/client": "^3.5.7",
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
"ramda": "^0.27.1",
|
|
21
21
|
"vue-demi": "^0.12.1",
|
|
22
22
|
"vue-i18n": "^8.11.2",
|
|
23
|
+
"vxe-table": "^3.4.13",
|
|
23
24
|
"whatwg-fetch": "^3.6.2"
|
|
24
25
|
},
|
|
25
26
|
"devDependencies": {
|
|
@@ -28,10 +29,10 @@
|
|
|
28
29
|
"@vitejs/plugin-vue-jsx": "^1.3.3",
|
|
29
30
|
"@vue/compiler-sfc": "^3.2.26",
|
|
30
31
|
"@vue/composition-api": "^1.4.3",
|
|
31
|
-
"autoprefixer": "^
|
|
32
|
+
"autoprefixer": "^10.4.2",
|
|
32
33
|
"js-cookie": "^3.0.1",
|
|
33
34
|
"nprogress": "^0.2.0",
|
|
34
|
-
"postcss": "^
|
|
35
|
+
"postcss": "^8.4.5",
|
|
35
36
|
"prettier": "^2.2.1",
|
|
36
37
|
"tailwindcss": "npm:@tailwindcss/postcss7-compat@^2.2.17",
|
|
37
38
|
"typescript": "~4.1.5",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const meQuery: import("graphql").DocumentNode;
|
package/dist/hooks/useT.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function useT(): (key: string) => import("vue-i18n").default.TranslateResult;
|
package/dist/index.d.ts
DELETED
package/dist/languages/en.d.ts
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
message: {
|
|
3
|
-
taskName: string;
|
|
4
|
-
assignee: string;
|
|
5
|
-
descriptions: string;
|
|
6
|
-
tags: string;
|
|
7
|
-
clientUpload: string;
|
|
8
|
-
clientReview: string;
|
|
9
|
-
newTask: string;
|
|
10
|
-
editTask: string;
|
|
11
|
-
attachment: string;
|
|
12
|
-
selectFile: string;
|
|
13
|
-
addToTaskList: string;
|
|
14
|
-
required: string;
|
|
15
|
-
optional: string;
|
|
16
|
-
submit: string;
|
|
17
|
-
cancel: string;
|
|
18
|
-
beneficiary: string;
|
|
19
|
-
petitioner: string;
|
|
20
|
-
attorney: string;
|
|
21
|
-
type: string;
|
|
22
|
-
sendEmail: string;
|
|
23
|
-
addTask: string;
|
|
24
|
-
clickToEdit: string;
|
|
25
|
-
tag: string;
|
|
26
|
-
reviewTasks: string;
|
|
27
|
-
reviewTasksTitle: string;
|
|
28
|
-
add: string;
|
|
29
|
-
remove: string;
|
|
30
|
-
success: string;
|
|
31
|
-
tasks: string;
|
|
32
|
-
sendTaskEmail: string;
|
|
33
|
-
none: string;
|
|
34
|
-
default: string;
|
|
35
|
-
taskSetting: string;
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
export default _default;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { PropType } from 'vue-demi';
|
|
2
|
-
import { UploadFileFunction } from '@/types/task';
|
|
3
|
-
import { Document } from '@/types/common';
|
|
4
|
-
declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
5
|
-
changeVal: (k: string, v: any) => void;
|
|
6
|
-
remove: (id: string) => void;
|
|
7
|
-
beforeUpload: (file: File) => boolean;
|
|
8
|
-
loading: import("@vue/composition-api").Ref<boolean>;
|
|
9
|
-
allowFiles: string[];
|
|
10
|
-
}> & import("@vue/composition-api").Data, {}, {}, {
|
|
11
|
-
value: {
|
|
12
|
-
type: PropType<Document[]>;
|
|
13
|
-
default: () => never[];
|
|
14
|
-
};
|
|
15
|
-
uploadFilesFunc: {
|
|
16
|
-
type: PropType<UploadFileFunction>;
|
|
17
|
-
required: true;
|
|
18
|
-
};
|
|
19
|
-
}, {
|
|
20
|
-
value: Document[];
|
|
21
|
-
uploadFilesFunc: UploadFileFunction;
|
|
22
|
-
} & {}> & 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<{
|
|
23
|
-
value: Document[];
|
|
24
|
-
uploadFilesFunc: UploadFileFunction;
|
|
25
|
-
} & {}, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
26
|
-
changeVal: (k: string, v: any) => void;
|
|
27
|
-
remove: (id: string) => void;
|
|
28
|
-
beforeUpload: (file: File) => boolean;
|
|
29
|
-
loading: import("@vue/composition-api").Ref<boolean>;
|
|
30
|
-
allowFiles: string[];
|
|
31
|
-
}>, import("@vue/composition-api").Data, {}, {}, {}, {}, {}, {
|
|
32
|
-
value: Document[];
|
|
33
|
-
uploadFilesFunc: UploadFileFunction;
|
|
34
|
-
} & {}, {
|
|
35
|
-
value: Document[];
|
|
36
|
-
}, true>);
|
|
37
|
-
export default _default;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { PropType } from 'vue-demi';
|
|
2
|
-
import { Profile } from '@/types/profile';
|
|
3
|
-
declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
4
|
-
profiles: import("@vue/composition-api").ComputedRef<readonly Profile[]>;
|
|
5
|
-
isModalVisible: import("@vue/composition-api").Ref<boolean>;
|
|
6
|
-
toggleModal: (value: boolean) => boolean;
|
|
7
|
-
updateValue: (value: Profile) => void;
|
|
8
|
-
handleProfileCreated: (profile: Profile) => void;
|
|
9
|
-
keywords: import("@vue/composition-api").Ref<string>;
|
|
10
|
-
handleSearch: (value: string) => string;
|
|
11
|
-
}> & import("@vue/composition-api").Data, {}, {}, {
|
|
12
|
-
value: {
|
|
13
|
-
type: PropType<Profile>;
|
|
14
|
-
};
|
|
15
|
-
}, {} & {
|
|
16
|
-
value?: Profile | undefined;
|
|
17
|
-
}> & 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<{} & {
|
|
18
|
-
value?: Profile | undefined;
|
|
19
|
-
}, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
20
|
-
profiles: import("@vue/composition-api").ComputedRef<readonly Profile[]>;
|
|
21
|
-
isModalVisible: import("@vue/composition-api").Ref<boolean>;
|
|
22
|
-
toggleModal: (value: boolean) => boolean;
|
|
23
|
-
updateValue: (value: Profile) => void;
|
|
24
|
-
handleProfileCreated: (profile: Profile) => void;
|
|
25
|
-
keywords: import("@vue/composition-api").Ref<string>;
|
|
26
|
-
handleSearch: (value: string) => string;
|
|
27
|
-
}>, import("@vue/composition-api").Data, {}, {}, {}, {}, {}, {} & {
|
|
28
|
-
value?: Profile | undefined;
|
|
29
|
-
}, {}, true>);
|
|
30
|
-
export default _default;
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
2
|
-
value: import("@vue/composition-api").Ref<{
|
|
3
|
-
id?: number | undefined;
|
|
4
|
-
profileContent?: {
|
|
5
|
-
[x: string]: any;
|
|
6
|
-
} | undefined;
|
|
7
|
-
profileName?: string | undefined;
|
|
8
|
-
profileType?: "USERPROFILE" | "CLIENTPROFILE" | "PREPARERPROFILE" | undefined;
|
|
9
|
-
email?: string | undefined;
|
|
10
|
-
}>;
|
|
11
|
-
rules: {
|
|
12
|
-
profileType: {
|
|
13
|
-
required: boolean;
|
|
14
|
-
};
|
|
15
|
-
profileName: {
|
|
16
|
-
required: boolean;
|
|
17
|
-
};
|
|
18
|
-
email: {
|
|
19
|
-
type: string;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
shouldSendPassword: import("@vue/composition-api").Ref<boolean>;
|
|
23
|
-
clearValue: () => {};
|
|
24
|
-
loading: import("@vue/composition-api").Ref<boolean>;
|
|
25
|
-
canSubmit: import("@vue/composition-api").ComputedRef<"" | "USERPROFILE" | "CLIENTPROFILE" | "PREPARERPROFILE" | undefined>;
|
|
26
|
-
handleSubmit: () => Promise<void>;
|
|
27
|
-
}> & import("@vue/composition-api").Data, {}, {}, {}, {} & {}> & 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<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
28
|
-
value: import("@vue/composition-api").Ref<{
|
|
29
|
-
id?: number | undefined;
|
|
30
|
-
profileContent?: {
|
|
31
|
-
[x: string]: any;
|
|
32
|
-
} | undefined;
|
|
33
|
-
profileName?: string | undefined;
|
|
34
|
-
profileType?: "USERPROFILE" | "CLIENTPROFILE" | "PREPARERPROFILE" | undefined;
|
|
35
|
-
email?: string | undefined;
|
|
36
|
-
}>;
|
|
37
|
-
rules: {
|
|
38
|
-
profileType: {
|
|
39
|
-
required: boolean;
|
|
40
|
-
};
|
|
41
|
-
profileName: {
|
|
42
|
-
required: boolean;
|
|
43
|
-
};
|
|
44
|
-
email: {
|
|
45
|
-
type: string;
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
|
-
shouldSendPassword: import("@vue/composition-api").Ref<boolean>;
|
|
49
|
-
clearValue: () => {};
|
|
50
|
-
loading: import("@vue/composition-api").Ref<boolean>;
|
|
51
|
-
canSubmit: import("@vue/composition-api").ComputedRef<"" | "USERPROFILE" | "CLIENTPROFILE" | "PREPARERPROFILE" | undefined>;
|
|
52
|
-
handleSubmit: () => Promise<void>;
|
|
53
|
-
}>, import("@vue/composition-api").Data, {}, {}, {}, {}, {}, {} & {}, {}, true>);
|
|
54
|
-
export default _default;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Profile } from '@/types/profile';
|
|
2
|
-
import { PropType } from 'vue-demi';
|
|
3
|
-
declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<import("@vue/composition-api").Data> & import("@vue/composition-api").Data, {}, {}, {
|
|
4
|
-
source: {
|
|
5
|
-
type: PropType<Profile>;
|
|
6
|
-
required: true;
|
|
7
|
-
};
|
|
8
|
-
}, {
|
|
9
|
-
source: Profile;
|
|
10
|
-
} & {}> & 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<{
|
|
11
|
-
source: Profile;
|
|
12
|
-
} & {}, import("@vue/composition-api").ShallowUnwrapRef<import("@vue/composition-api").Data>, import("@vue/composition-api").Data, {}, {}, {}, {}, {}, {
|
|
13
|
-
source: Profile;
|
|
14
|
-
} & {}, {}, true>);
|
|
15
|
-
export default _default;
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { PropType } from 'vue-demi';
|
|
2
|
-
import { Profile } from '@/types/profile';
|
|
3
|
-
declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
4
|
-
selectedId: import("@vue/composition-api").ComputedRef<number | undefined>;
|
|
5
|
-
handleSelect: (value: string) => void;
|
|
6
|
-
handleProfileCreate: () => void;
|
|
7
|
-
menu: {};
|
|
8
|
-
}> & import("@vue/composition-api").Data, {}, {}, {
|
|
9
|
-
value: {
|
|
10
|
-
type: PropType<Profile>;
|
|
11
|
-
};
|
|
12
|
-
keywords: {
|
|
13
|
-
type: StringConstructor;
|
|
14
|
-
required: true;
|
|
15
|
-
};
|
|
16
|
-
source: {
|
|
17
|
-
type: PropType<readonly Profile[]>;
|
|
18
|
-
required: true;
|
|
19
|
-
};
|
|
20
|
-
}, {
|
|
21
|
-
source: readonly Profile[];
|
|
22
|
-
keywords: string;
|
|
23
|
-
} & {
|
|
24
|
-
value?: Profile | undefined;
|
|
25
|
-
}> & 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<{
|
|
26
|
-
source: readonly Profile[];
|
|
27
|
-
keywords: string;
|
|
28
|
-
} & {
|
|
29
|
-
value?: Profile | undefined;
|
|
30
|
-
}, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
31
|
-
selectedId: import("@vue/composition-api").ComputedRef<number | undefined>;
|
|
32
|
-
handleSelect: (value: string) => void;
|
|
33
|
-
handleProfileCreate: () => void;
|
|
34
|
-
menu: {};
|
|
35
|
-
}>, import("@vue/composition-api").Data, {}, {}, {}, {}, {}, {
|
|
36
|
-
source: readonly Profile[];
|
|
37
|
-
keywords: string;
|
|
38
|
-
} & {
|
|
39
|
-
value?: Profile | undefined;
|
|
40
|
-
}, {}, true>);
|
|
41
|
-
export default _default;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { PropType } from 'vue-demi';
|
|
2
|
-
import { RoleType } from '@/types/profile';
|
|
3
|
-
declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
4
|
-
profileTypes: Record<RoleType, string>;
|
|
5
|
-
handleChange: (value: RoleType) => void;
|
|
6
|
-
}> & import("@vue/composition-api").Data, {}, {}, {
|
|
7
|
-
value: {
|
|
8
|
-
type: PropType<RoleType>;
|
|
9
|
-
};
|
|
10
|
-
enabledTypes: {
|
|
11
|
-
type: PropType<RoleType[]>;
|
|
12
|
-
default: string[];
|
|
13
|
-
};
|
|
14
|
-
}, {
|
|
15
|
-
enabledTypes: RoleType[];
|
|
16
|
-
} & {
|
|
17
|
-
value?: "USERPROFILE" | "CLIENTPROFILE" | "PREPARERPROFILE" | undefined;
|
|
18
|
-
}> & 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<{
|
|
19
|
-
enabledTypes: RoleType[];
|
|
20
|
-
} & {
|
|
21
|
-
value?: "USERPROFILE" | "CLIENTPROFILE" | "PREPARERPROFILE" | undefined;
|
|
22
|
-
}, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
23
|
-
profileTypes: Record<RoleType, string>;
|
|
24
|
-
handleChange: (value: RoleType) => void;
|
|
25
|
-
}>, import("@vue/composition-api").Data, {}, {}, {}, {}, {}, {
|
|
26
|
-
enabledTypes: RoleType[];
|
|
27
|
-
} & {
|
|
28
|
-
value?: "USERPROFILE" | "CLIENTPROFILE" | "PREPARERPROFILE" | undefined;
|
|
29
|
-
}, {
|
|
30
|
-
enabledTypes: RoleType[];
|
|
31
|
-
}, true>);
|
|
32
|
-
export default _default;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { RoleType } from '@/types/profile';
|
|
2
|
-
import { PropType } from 'vue-demi';
|
|
3
|
-
declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
4
|
-
iconUrl: import("@vue/composition-api").Ref<string | undefined>;
|
|
5
|
-
}> & import("@vue/composition-api").Data, {}, {}, {
|
|
6
|
-
type: {
|
|
7
|
-
type: PropType<RoleType>;
|
|
8
|
-
required: true;
|
|
9
|
-
};
|
|
10
|
-
}, {
|
|
11
|
-
type: RoleType;
|
|
12
|
-
} & {}> & 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<{
|
|
13
|
-
type: RoleType;
|
|
14
|
-
} & {}, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
15
|
-
iconUrl: import("@vue/composition-api").Ref<string | undefined>;
|
|
16
|
-
}>, import("@vue/composition-api").Data, {}, {}, {}, {}, {}, {
|
|
17
|
-
type: RoleType;
|
|
18
|
-
} & {}, {}, true>);
|
|
19
|
-
export default _default;
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { PropType } from 'vue-demi';
|
|
2
|
-
import { Role, TaskTemplate, TaskTemplateGraphData, UploadFileFunction } from '@/types/task';
|
|
3
|
-
import { TaskTypes } from '@/types/task';
|
|
4
|
-
declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
5
|
-
typeError: import("@vue/composition-api").Ref<boolean>;
|
|
6
|
-
nameError: import("@vue/composition-api").Ref<boolean>;
|
|
7
|
-
changeVal: (k: string, v: any) => void;
|
|
8
|
-
validFields: (callback: (passed: boolean, data: TaskTemplateGraphData, errors: Object) => void) => void;
|
|
9
|
-
TaskTypes: typeof TaskTypes;
|
|
10
|
-
roles: Role[];
|
|
11
|
-
isAttorneySelected: import("@vue/composition-api").ComputedRef<boolean>;
|
|
12
|
-
$t: (key: string) => import("vue-i18n").default.TranslateResult;
|
|
13
|
-
}> & import("@vue/composition-api").Data, {}, {}, {
|
|
14
|
-
value: {
|
|
15
|
-
type: PropType<TaskTemplate>;
|
|
16
|
-
required: true;
|
|
17
|
-
};
|
|
18
|
-
userId: {
|
|
19
|
-
type: StringConstructor;
|
|
20
|
-
required: true;
|
|
21
|
-
};
|
|
22
|
-
lawFirmId: {
|
|
23
|
-
type: NumberConstructor;
|
|
24
|
-
required: true;
|
|
25
|
-
};
|
|
26
|
-
uploadFilesFunc: {
|
|
27
|
-
type: PropType<UploadFileFunction>;
|
|
28
|
-
required: true;
|
|
29
|
-
};
|
|
30
|
-
}, {
|
|
31
|
-
lawFirmId: number;
|
|
32
|
-
value: TaskTemplate;
|
|
33
|
-
uploadFilesFunc: UploadFileFunction;
|
|
34
|
-
userId: string;
|
|
35
|
-
} & {}> & 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<{
|
|
36
|
-
lawFirmId: number;
|
|
37
|
-
value: TaskTemplate;
|
|
38
|
-
uploadFilesFunc: UploadFileFunction;
|
|
39
|
-
userId: string;
|
|
40
|
-
} & {}, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
41
|
-
typeError: import("@vue/composition-api").Ref<boolean>;
|
|
42
|
-
nameError: import("@vue/composition-api").Ref<boolean>;
|
|
43
|
-
changeVal: (k: string, v: any) => void;
|
|
44
|
-
validFields: (callback: (passed: boolean, data: TaskTemplateGraphData, errors: Object) => void) => void;
|
|
45
|
-
TaskTypes: typeof TaskTypes;
|
|
46
|
-
roles: Role[];
|
|
47
|
-
isAttorneySelected: import("@vue/composition-api").ComputedRef<boolean>;
|
|
48
|
-
$t: (key: string) => import("vue-i18n").default.TranslateResult;
|
|
49
|
-
}>, import("@vue/composition-api").Data, {}, {}, {}, {}, {}, {
|
|
50
|
-
lawFirmId: number;
|
|
51
|
-
value: TaskTemplate;
|
|
52
|
-
uploadFilesFunc: UploadFileFunction;
|
|
53
|
-
userId: string;
|
|
54
|
-
} & {}, {}, true>);
|
|
55
|
-
export default _default;
|
package/dist/types/common.d.ts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
export declare enum AssigneeTypes {
|
|
2
|
-
EMPTY_DEFAULT = 4,
|
|
3
|
-
BENEFICIARY = 1,
|
|
4
|
-
PETITIONER = 2,
|
|
5
|
-
ATTORNEY = 3
|
|
6
|
-
}
|
|
7
|
-
export declare enum AssigneeTypesText {
|
|
8
|
-
EMPTY_DEFAULT = "message.default",
|
|
9
|
-
BENEFICIARY = "message.beneficiary",
|
|
10
|
-
PETITIONER = "message.petitioner",
|
|
11
|
-
ATTORNEY = "message.attorney"
|
|
12
|
-
}
|
|
13
|
-
export interface Document {
|
|
14
|
-
id: string;
|
|
15
|
-
name: string;
|
|
16
|
-
link: string;
|
|
17
|
-
}
|
|
18
|
-
export declare enum SortOrder {
|
|
19
|
-
default = "DEFAULT",
|
|
20
|
-
desc = "DESC",
|
|
21
|
-
asc = "ASC"
|
|
22
|
-
}
|
|
23
|
-
export interface Pagination {
|
|
24
|
-
current: number;
|
|
25
|
-
pageSize: number;
|
|
26
|
-
total: number;
|
|
27
|
-
}
|
|
28
|
-
export declare enum ResponseCode {
|
|
29
|
-
success = "SUCCESS",
|
|
30
|
-
failed = "FAILED"
|
|
31
|
-
}
|
package/dist/types/profile.d.ts
DELETED
package/dist/types/task.d.ts
DELETED
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import { AssigneeTypes, SortOrder, Document } from '@/types/common';
|
|
2
|
-
export declare enum TaskTypes {
|
|
3
|
-
clientUpload = "Client Upload",
|
|
4
|
-
clientReview = "For Client Review",
|
|
5
|
-
worksheet = "Worksheet"
|
|
6
|
-
}
|
|
7
|
-
interface BaseTaskTemplate {
|
|
8
|
-
id?: number;
|
|
9
|
-
taskName?: string;
|
|
10
|
-
isEmployeeInt?: AssigneeTypes;
|
|
11
|
-
generalTaskType?: TaskTypes;
|
|
12
|
-
descriptions?: string;
|
|
13
|
-
tagList?: string[];
|
|
14
|
-
}
|
|
15
|
-
export interface TaskTemplateGraphData extends BaseTaskTemplate {
|
|
16
|
-
sampleDocList?: Document[];
|
|
17
|
-
isEmployeeInt: number;
|
|
18
|
-
}
|
|
19
|
-
export interface TaskTemplateMutateData {
|
|
20
|
-
selfUserId: string;
|
|
21
|
-
selfLawFirmId: number;
|
|
22
|
-
taskTemplateId: number;
|
|
23
|
-
isAddedToTask?: boolean;
|
|
24
|
-
isNotified?: boolean;
|
|
25
|
-
taskTemplateObj: TaskTemplateGraphData;
|
|
26
|
-
}
|
|
27
|
-
export interface TaskTemplate extends BaseTaskTemplate {
|
|
28
|
-
id?: number;
|
|
29
|
-
isEmployee?: keyof typeof AssigneeTypes;
|
|
30
|
-
sampleDocs?: Document[];
|
|
31
|
-
lawFirmId?: number;
|
|
32
|
-
isGallery?: boolean;
|
|
33
|
-
}
|
|
34
|
-
export interface TaskTemplateComponentData {
|
|
35
|
-
taskTemplateObj: TaskTemplate;
|
|
36
|
-
isAddedToTask?: boolean;
|
|
37
|
-
isNotified?: boolean;
|
|
38
|
-
[key: string]: any;
|
|
39
|
-
}
|
|
40
|
-
declare type UploadFileStatus = 'fulfilled';
|
|
41
|
-
export declare type UploadFileFunction = (files: File[]) => Promise<{
|
|
42
|
-
status: UploadFileStatus;
|
|
43
|
-
value: Document;
|
|
44
|
-
}[]>;
|
|
45
|
-
declare enum TaskTemplateSortBy {
|
|
46
|
-
default = "DEFAULT",
|
|
47
|
-
id = "TASKTEMPLATEID",
|
|
48
|
-
name = "TASKNAME",
|
|
49
|
-
type = "TASKTYPE",
|
|
50
|
-
isEmployee = "ISEMPLOYEE"
|
|
51
|
-
}
|
|
52
|
-
export interface TaskTemplateSearchInput {
|
|
53
|
-
taskTemplateId?: number[];
|
|
54
|
-
keywords?: string;
|
|
55
|
-
lawFirmId?: number;
|
|
56
|
-
isEmployee?: AssigneeTypes[];
|
|
57
|
-
taskType?: number[];
|
|
58
|
-
includeGallery?: boolean;
|
|
59
|
-
sortBy?: TaskTemplateSortBy;
|
|
60
|
-
sortOrder?: SortOrder;
|
|
61
|
-
}
|
|
62
|
-
export interface SearchTaskTemplateParams {
|
|
63
|
-
query: TaskTemplateSearchInput;
|
|
64
|
-
startIndex: number;
|
|
65
|
-
endIndex: number;
|
|
66
|
-
}
|
|
67
|
-
export interface SearchTaskTemplateResp {
|
|
68
|
-
taskTemplateSearch: {
|
|
69
|
-
numResult: number;
|
|
70
|
-
taskTemplateList: TaskTemplate[];
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
export interface UpdateTaskTemplateResp {
|
|
74
|
-
updateTaskTemplate: {
|
|
75
|
-
code: string;
|
|
76
|
-
message?: string;
|
|
77
|
-
updatedTaskTemplate: TaskTemplate;
|
|
78
|
-
};
|
|
79
|
-
}
|
|
80
|
-
export interface CreateTaskTemplateResp {
|
|
81
|
-
createTaskTemplate: {
|
|
82
|
-
code: string;
|
|
83
|
-
message?: string;
|
|
84
|
-
newTaskTemplate: TaskTemplate;
|
|
85
|
-
};
|
|
86
|
-
}
|
|
87
|
-
export interface Role {
|
|
88
|
-
id: AssigneeTypes;
|
|
89
|
-
key: keyof typeof AssigneeTypes;
|
|
90
|
-
i18nKey: string;
|
|
91
|
-
hide?: boolean;
|
|
92
|
-
}
|
|
93
|
-
export {};
|
package/dist/venus.cjs.js
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
"use strict";var j=Object.defineProperty,Y=Object.defineProperties;var K=Object.getOwnPropertyDescriptors;var S=Object.getOwnPropertySymbols;var B=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable;var I=(e,a,t)=>a in e?j(e,a,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[a]=t,h=(e,a)=>{for(var t in a||(a={}))B.call(a,t)&&I(e,t,a[t]);if(S)for(var t of S(a))z.call(a,t)&&I(e,t,a[t]);return e},E=(e,a)=>Y(e,K(a));Object.defineProperty(exports,"__esModule",{value:!0});exports[Symbol.toStringTag]="Module";var l=require("vue-demi"),f=require("ant-design-vue"),y=require("@vue/apollo-composable"),Q=require("graphql-tag"),W=require("ramda"),X=require("vue-i18n");function F(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var $=F(Q),G=F(X);function H(e){switch(e){case"./icons/attorney.svg":return Promise.resolve().then(function(){return require("./attorney.js")});case"./icons/company.svg":return Promise.resolve().then(function(){return require("./company.js")});case"./icons/individual.svg":return Promise.resolve().then(function(){return require("./individual.js")});default:return new Promise(function(a,t){(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(t.bind(null,new Error("Unknown variable dynamic import: "+e)))})}}var J=l.defineComponent({props:{type:{type:String,required:!0}},setup(e){const a=l.ref();return l.watch(()=>e.type,t=>{let n="";switch(t){case"USERPROFILE":n="individual";break;case"CLIENTPROFILE":n="company";break;default:n="attorney";break}H(`./icons/${n}.svg`).then(o=>a.value=o.default)},{immediate:!0}),{iconUrl:a}}}),Z=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("img",{staticClass:"w-6 h-6",attrs:{src:e.iconUrl,alt:e.type}})},ee=[];function v(e,a,t,n,o,r,u,c){var i=typeof e=="function"?e.options:e;a&&(i.render=a,i.staticRenderFns=t,i._compiled=!0),n&&(i.functional=!0),r&&(i._scopeId="data-v-"+r);var s;if(u?(s=function(p){p=p||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!p&&typeof __VUE_SSR_CONTEXT__!="undefined"&&(p=__VUE_SSR_CONTEXT__),o&&o.call(this,p),p&&p._registeredComponents&&p._registeredComponents.add(u)},i._ssrRegister=s):o&&(s=c?function(){o.call(this,(i.functional?this.parent:this).$root.$options.shadowRoot)}:o),s)if(i.functional){i._injectStyles=s;var _=i.render;i.render=function(D,T){return s.call(T),_(D,T)}}else{var d=i.beforeCreate;i.beforeCreate=d?[].concat(d,s):[s]}return{exports:e,options:i}}const P={};var te=v(J,Z,ee,!1,ae,null,null,null);function ae(e){for(let a in P)this[a]=P[a]}var k=function(){return te.exports}(),ne=l.defineComponent({props:{source:{type:Object,required:!0}},components:{ProfileTypeIcon:k}}),re=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"flex space-x-1 items-center"},[t("ProfileTypeIcon",{attrs:{type:e.source.profileType}}),t("div",{staticClass:"text-secondary"},[e._v(e._s(e.source.profileName))])],1)},le=[];const b={};var oe=v(ne,re,le,!1,ie,null,null,null);function ie(e){for(let a in b)this[a]=b[a]}var se=function(){return oe.exports}();const ue=$.default`
|
|
2
|
-
query Me {
|
|
3
|
-
me {
|
|
4
|
-
id
|
|
5
|
-
lawFirmId
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
`;function C(){const{result:e}=y.useQuery(ue);return y.useResult(e)}const ce=$.default`
|
|
9
|
-
query ProfileSearch(
|
|
10
|
-
$lawFirmId: Int!
|
|
11
|
-
$keywords: String
|
|
12
|
-
$profileType: String
|
|
13
|
-
) {
|
|
14
|
-
profileSearch(
|
|
15
|
-
query: {
|
|
16
|
-
lawFirmId: $lawFirmId
|
|
17
|
-
keywords: $keywords
|
|
18
|
-
profileType: $profileType
|
|
19
|
-
}
|
|
20
|
-
) {
|
|
21
|
-
numResult
|
|
22
|
-
profileList(startIndex: 0, endIndex: 99) {
|
|
23
|
-
id
|
|
24
|
-
profileType
|
|
25
|
-
profileName
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
`,de=$.default`
|
|
30
|
-
mutation addProfileUser(
|
|
31
|
-
$email: String
|
|
32
|
-
$name: String
|
|
33
|
-
$petitionerProfileName: String
|
|
34
|
-
$lawFirmId: Int!
|
|
35
|
-
) {
|
|
36
|
-
addProfileUserNoNotify(
|
|
37
|
-
email: $email
|
|
38
|
-
name: $name
|
|
39
|
-
petitionerProfileName: $petitionerProfileName
|
|
40
|
-
selfLawFirmId: $lawFirmId
|
|
41
|
-
) {
|
|
42
|
-
profile {
|
|
43
|
-
id
|
|
44
|
-
profileName
|
|
45
|
-
profileType
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
`;function fe(){const e=C(),{mutate:a,loading:t}=y.useMutation(de);return{createProfile:async o=>{var c;const r={email:o.email,lawFirmId:(c=e.value)==null?void 0:c.lawFirmId};o.profileType==="USERPROFILE"?r.name=o.profileName:r.petitionerProfileName=o.profileName;const u=await a(r);return W.path(["data","addProfileUserNoNotify","profile"],u)},loading:t}}const pe={USERPROFILE:"Individual",CLIENTPROFILE:"Company",PREPARERPROFILE:"Attorney"};var ve=l.defineComponent({props:{value:{type:String},enabledTypes:{type:Array,default:["USERPROFILE","CLIENTPROFILE","PREPARERPROFILE"]}},components:{Select:f.Select,Option:f.Select.Option,ProfileTypeIcon:k},setup(e,{emit:a}){return{profileTypes:pe,handleChange:n=>a("input",n)}}}),me=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("Select",{attrs:{value:e.value},on:{change:e.handleChange}},e._l(e.enabledTypes,function(n){return t("Option",{key:n,attrs:{value:n}},[t("div",{staticClass:"flex items-center space-x-1"},[t("ProfileTypeIcon",{attrs:{type:n}}),t("div",{staticClass:"text-secondary"},[e._v(e._s(e.profileTypes[n]))])],1)])}),1)},_e=[];const w={};var ye=v(ve,me,_e,!1,ge,null,null,null);function ge(e){for(let a in w)this[a]=w[a]}var he=function(){return ye.exports}(),Ee=l.defineComponent({components:{Modal:f.Modal,Form:f.Form,FormItem:f.Form.Item,ProfileTypeSelect:he,Input:f.Input,Checkbox:f.Checkbox},setup(e,{emit:a}){const t=l.ref({}),n=l.ref(!1),o=l.computed(()=>t.value.profileName&&t.value.profileType),r={profileType:{required:!0},profileName:{required:!0},email:{type:"email"}},u=()=>t.value={},{createProfile:c,loading:i}=fe(),s=()=>a("cancel");return{value:t,rules:r,shouldSendPassword:n,clearValue:u,loading:i,canSubmit:o,handleSubmit:async()=>{const d=await c(t.value);s(),a("profile-created",d)}}}}),$e=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("modal",e._g(e._b({attrs:{closable:!1,"ok-text":"Create",width:320,okButtonProps:{props:{disabled:!e.canSubmit,loading:e.loading}}},on:{cancel:e.clearValue,ok:e.handleSubmit}},"modal",e.$attrs,!1),e.$listeners),[t("Form",{attrs:{layout:"vertical","validate-trigger":"blur",model:e.value,rules:e.rules}},[t("form-item",{attrs:{label:"Profile type",name:"profileType"}},[t("profile-type-select",{attrs:{enabledTypes:["USERPROFILE","CLIENTPROFILE"]},model:{value:e.value.profileType,callback:function(n){e.$set(e.value,"profileType",n)},expression:"value.profileType"}})],1),t("form-item",{attrs:{label:"Name",name:"profileName"}},[t("Input",{model:{value:e.value.profileName,callback:function(n){e.$set(e.value,"profileName",n)},expression:"value.profileName"}})],1),t("form-item",{attrs:{label:"Email"}},[t("Input",{model:{value:e.value.email,callback:function(n){e.$set(e.value,"email",n)},expression:"value.email"}})],1),t("form-item",[t("checkbox",{model:{value:e.shouldSendPassword,callback:function(n){e.shouldSendPassword=n},expression:"shouldSendPassword"}},[e._v("Send client portal login password (System will email client a login password)")])],1)],1)],1)},Te=[];const R={};var Se=v(Ee,$e,Te,!1,Ie,null,null,null);function Ie(e){for(let a in R)this[a]=R[a]}var N=function(){return Se.exports}(),Fe=l.defineComponent({props:{value:{type:Object},keywords:{type:String,required:!0},source:{type:Array,required:!0}},components:{Select:f.Select,Option:f.Select.Option,Divider:f.Divider,Button:f.Button,ProfileSelectItem:se,ProfileCreateModal:N,VNodes:{functional:!0,render:(e,a)=>a.props.vnodes}},setup(e,{emit:a}){return{selectedId:l.computed(()=>{var r;return(r=e.value)==null?void 0:r.id}),handleSelect:r=>a("input",e.source.find(u=>String(u.id)==r)),handleProfileCreate:()=>a("create-profile"),menu:{}}}}),Pe=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("Select",e._g(e._b({staticClass:"w-72",attrs:{allowClear:"",showSearch:"",optionFilterProp:"name",value:e.selectedId},on:{select:e.handleSelect},scopedSlots:e._u([{key:"dropdownRender",fn:function(n){return t("div",{},[t("v-nodes",{attrs:{vnodes:n}}),t("Divider",{staticClass:"my-1"}),t("div",{staticClass:"flex justify-end px-3 py-1"},[t("Button",{attrs:{size:"small"},on:{click:e.handleProfileCreate}},[e._v("Create new profile")])],1)],1)}}])},"Select",e.$attrs,!1),e.$listeners),e._l(e.source,function(n){return t("Option",{key:n.id,attrs:{value:n.id}},[t("ProfileSelectItem",{attrs:{source:n}})],1)}),1)},ke=[];const L={};var be=v(Fe,Pe,ke,!1,Ce,null,null,null);function Ce(e){for(let a in L)this[a]=L[a]}var we=function(){return be.exports}();function Re(e){const a=C(),{result:t,loading:n}=y.useQuery(ce,()=>{var r;return{lawFirmId:(r=a.value)==null?void 0:r.lawFirmId,keywords:e.value}},()=>({enabled:a.value!=null}));return{profiles:y.useResult(t,[],r=>r.profileSearch.profileList),loading:n}}var Ne=l.defineComponent({components:{ProfileSelector:we,ProfileCreateModal:N},props:{value:{type:Object}},setup(e,{emit:a}){const t=l.ref(""),n=d=>t.value=d,{profiles:o}=Re(t),r=l.ref(),u=l.computed(()=>r.value?[r.value,...o.value]:o.value),c=l.ref(!1),i=d=>c.value=d,s=d=>a("input",d);return{profiles:u,isModalVisible:c,toggleModal:i,updateValue:s,handleProfileCreated:d=>{r.value=d,s(d)},keywords:t,handleSearch:n}}}),Le=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",[t("profile-selector",e._g(e._b({attrs:{source:e.profiles,value:e.value,keywords:e.keywords},on:{search:e.handleSearch,"create-profile":function(n){return e.toggleModal(!0)},input:e.updateValue}},"profile-selector",e.$attrs,!1),e.$listeners)),t("profile-create-modal",{attrs:{visible:e.isModalVisible},on:{cancel:function(n){return e.toggleModal(!1)},"profile-created":e.handleProfileCreated}})],1)},Oe=[];const O={};var Ue=v(Ne,Le,Oe,!1,xe,null,null,null);function xe(e){for(let a in O)this[a]=O[a]}var Ae=function(){return Ue.exports}(),m;(function(e){e[e.EMPTY_DEFAULT=4]="EMPTY_DEFAULT",e[e.BENEFICIARY=1]="BENEFICIARY",e[e.PETITIONER=2]="PETITIONER",e[e.ATTORNEY=3]="ATTORNEY"})(m||(m={}));var U;(function(e){e.EMPTY_DEFAULT="message.default",e.BENEFICIARY="message.beneficiary",e.PETITIONER="message.petitioner",e.ATTORNEY="message.attorney"})(U||(U={}));var x;(function(e){e.default="DEFAULT",e.desc="DESC",e.asc="ASC"})(x||(x={}));var A;(function(e){e.success="SUCCESS",e.failed="FAILED"})(A||(A={}));var g;(function(e){e.clientUpload="Client Upload",e.clientReview="For Client Review",e.worksheet="Worksheet"})(g||(g={}));var M;(function(e){e.default="DEFAULT",e.id="TASKTEMPLATEID",e.name="TASKNAME",e.type="TASKTYPE",e.isEmployee="ISEMPLOYEE"})(M||(M={}));var Me=(e,a)=>(t,n)=>{a("update:value",E(h({},e.value),{[t]:n}))},qe=l.defineComponent({name:"aFileUploader",props:{value:{type:Array,default:()=>[]},uploadFilesFunc:{type:Function,required:!0}},setup(e,{emit:a}){const t=l.ref(!1);return{changeVal:(u,c)=>{a("change",E(h({},e.value),{[u]:c}))},remove:u=>{a("change",e.value.filter(c=>c.id!==u))},beforeUpload:u=>(t.value||(t.value=!0,e.uploadFilesFunc([u]).then(([{status:c,value:{id:i,name:s,link:_}}])=>{c==="fulfilled"&&a("change",[...e.value,{id:i,name:s,link:_}])}).finally(()=>{t.value=!1}),t.value=!1),!1),loading:t,allowFiles:[".rar",".zip",".doc",".pdf",".docx",".jpg",".jpeg",".png"]}}}),Ve=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"container"},[t("a-upload",{staticStyle:{display:"inline"},attrs:{disabled:e.loading,"before-upload":e.beforeUpload,action:"javascript:;",fileList:[]}},[t("a-tag",[e._v(" "+e._s(e.$t("message.selectFile"))+" ")]),e.value.length?t("div",{staticStyle:{display:"inline-block"}},e._l(e.value,function(n){return t("a-tag",{key:n.id,attrs:{closable:""},on:{close:function(o){return e.remove(n.id)}}},[e._v(e._s(n.name))])}),1):t("span",{staticStyle:{color:"#ccc"}},[e._v(e._s(e.allowFiles.join(" ")))])],1)],1)},De=[];const q={};var je=v(qe,Ve,De,!1,Ye,"9fae2c5a",null,null);function Ye(e){for(let a in q)this[a]=q[a]}var Ke=function(){return je.exports}(),Be={message:{taskName:"Task Name",assignee:"Assignee",descriptions:"Descriptions",tags:"Tags",clientUpload:"Client upload",clientReview:"Client review",newTask:"New Task",editTask:"Edit Task",attachment:"Attachment",selectFile:"Select file",addToTaskList:"Add to task list",required:"Required",optional:"Optional",submit:"Submit",cancel:"Cancel",beneficiary:"Beneficiary",petitioner:"Petitioner",attorney:"Attorney",type:"Type",sendEmail:"Send Email",addTask:"Add Task(s)",clickToEdit:"Click to edit",tag:"Tag",reviewTasks:"Review and add to template",reviewTasksTitle:"Task(s) to be added",add:"Add",remove:"Remove",success:"Succeeded",tasks:"Tasks",sendTaskEmail:"Send the notification email",none:"None",default:"None",taskSetting:"Task setting"}};l.Vue2!=null&&(globalThis.Vue=l.Vue2);var ze=new G.default({locale:"en",messages:{en:Be}});function Qe(){return e=>ze.t(e)}const We=e=>({sampleDocList:e.sampleDocs,taskName:e.taskName,isEmployeeInt:e.isEmployeeInt||m.EMPTY_DEFAULT,generalTaskType:e.generalTaskType,descriptions:e.descriptions,tagList:e.tagList}),Xe=[{id:m.BENEFICIARY,key:"BENEFICIARY",i18nKey:"beneficiary"},{id:m.PETITIONER,key:"PETITIONER",i18nKey:"petitioner"},{id:m.ATTORNEY,key:"ATTORNEY",i18nKey:"attorney"},{id:m.EMPTY_DEFAULT,key:"EMPTY_DEFAULT",i18nKey:"none",hide:!0}];var Ge=l.defineComponent({name:"index",props:{value:{type:Object,required:!0},userId:{type:String,required:!0},lawFirmId:{type:Number,required:!0},uploadFilesFunc:{type:Function,required:!0}},components:{AFileUploader:Ke},setup(e,{emit:a}){const t=l.ref(!1),n=l.ref(!1),o=Me(e,a),r=i=>{const s=We(e.value);t.value=!s.taskName,n.value=!s.generalTaskType,i(!t.value&&!n.value,s,{nameError:t,typeError:n})},u=Qe(),c=l.computed(()=>e.value.isEmployeeInt===m.ATTORNEY);return l.watch(()=>c.value,i=>{i&&e.value.generalTaskType!==g.worksheet&&o("generalTaskType",g.clientUpload)}),{typeError:n,nameError:t,changeVal:o,validFields:r,TaskTypes:g,roles:Xe,isAttorneySelected:c,$t:u}}}),He=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("a-form",{staticClass:"add-edit-task-modal",on:{submit:function(n){return n.preventDefault()}}},[t("a-row",{attrs:{gutter:20}},[t("a-col",{attrs:{span:12}},[t("a-form-item",{attrs:{name:"taskName",label:e.$t("message.taskName"),help:e.nameError?e.$t("message.required"):void 0,"validate-status":e.nameError?"error":void 0}},[t("a-input",{attrs:{value:e.value.taskName},on:{input:function(n){return e.changeVal("taskName",n.target.value)}}})],1)],1),t("a-col",{attrs:{span:12}},[t("a-form-item",{attrs:{label:e.$t("message.assignee")+"("+e.$t("message.optional")+")"}},[t("a-select",{staticStyle:{"min-width":"170px"},attrs:{value:e.value.isEmployeeInt,allowClear:!0},on:{change:function(n){return e.changeVal("isEmployeeInt",n)}}},e._l(e.roles,function(n){return t("a-select-option",{key:n.id,attrs:{value:n.id}},[t("span",{staticStyle:{"text-transform":"capitalize"}},[e._v(" "+e._s(e.$t("message."+n.i18nKey))+" ")])])}),1)],1)],1)],1),t("a-form-item",{attrs:{label:e.$t("message.type"),help:e.typeError?e.$t("message.required"):void 0,"validate-status":e.typeError?"error":void 0}},[e.value.generalTaskType!==e.TaskTypes.worksheet?t("a-radio-group",{attrs:{value:e.value.generalTaskType},on:{change:function(n){return e.changeVal("generalTaskType",n.target.value)}}},[t("a-radio",{attrs:{value:e.TaskTypes.clientUpload}},[e._v(" "+e._s(e.$t("message.clientUpload"))+" ")]),t("a-radio",{attrs:{value:e.TaskTypes.clientReview,disabled:e.isAttorneySelected}},[e._v(" "+e._s(e.$t("message.clientReview"))+" ")])],1):e._e()],1),t("a-form-item",{attrs:{label:e.$t("message.descriptions")+"("+e.$t("message.optional")+")"}},[t("a-textarea",{attrs:{value:e.value.descriptions},on:{input:function(n){return e.changeVal("descriptions",n.target.value)}}})],1),t("a-form-item",{attrs:{label:e.$t("message.attachment")+"("+e.$t("message.optional")+")"}},[t("a-file-uploader",{attrs:{value:e.value.sampleDocs,uploadFilesFunc:e.uploadFilesFunc},on:{change:function(n){return e.changeVal("sampleDocs",n)}}})],1),t("a-form-item",{attrs:{label:e.$t("message.tags")+"("+e.$t("message.optional")+")"}},[t("a-select",{attrs:{mode:"tags",value:e.value.tagList,options:[]},on:{change:function(n){return e.changeVal("tagList",n)}}})],1)],1)},Je=[];const V={};var Ze=v(Ge,He,Je,!1,et,"c42b3a2e",null,null);function et(e){for(let a in V)this[a]=V[a]}var tt=function(){return Ze.exports}();exports.ProfileSelect=Ae;exports.TaskForm=tt;
|