@ailaw/venus 0.6.8 → 0.8.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/dist/forms/{I-129_Main with H supplement.d.ts → G-28-Company.d.ts} +0 -0
- package/dist/forms/I-129 with H Supplement-Company Petitioner.d.ts +2 -0
- package/dist/forms/index.d.ts +2 -1
- package/dist/hooks/useVm.d.ts +1 -0
- package/dist/profile-select/profile-create-modal.vue.d.ts +2 -0
- package/dist/task-cart/index.vue.d.ts +4 -4
- package/dist/types/task.d.ts +1 -1
- package/dist/venus.es.js +37 -18
- package/package.json +1 -1
|
File without changes
|
package/dist/forms/index.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
export declare const formRecords: {
|
|
2
|
+
g28Company: import("../types/form").Form;
|
|
2
3
|
g28Person: import("../types/form").Form;
|
|
3
4
|
g1145: import("../types/form").Form;
|
|
4
5
|
i129Attachment: import("../types/form").Form;
|
|
5
|
-
|
|
6
|
+
i129Hs: import("../types/form").Form;
|
|
6
7
|
i130: import("../types/form").Form;
|
|
7
8
|
i130a: import("../types/form").Form;
|
|
8
9
|
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
|
} & {}, {
|
|
@@ -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);
|
|
@@ -802,14 +805,22 @@ var g28Person = createForm({
|
|
|
802
805
|
Preparer: "PREPARERPROFILE"
|
|
803
806
|
}
|
|
804
807
|
});
|
|
808
|
+
var g28Company = createForm({
|
|
809
|
+
displayName: "G-28-Company",
|
|
810
|
+
roles: {
|
|
811
|
+
Petitioner: "CLIENTPROFILE",
|
|
812
|
+
Beneficiary: "USERPROFILE",
|
|
813
|
+
Preparer: "PREPARERPROFILE"
|
|
814
|
+
}
|
|
815
|
+
});
|
|
805
816
|
var i129Attachment = createForm({
|
|
806
817
|
displayName: "I-129 Attachment",
|
|
807
818
|
roles: {
|
|
808
819
|
Beneficiary: "USERPROFILE"
|
|
809
820
|
}
|
|
810
821
|
});
|
|
811
|
-
var
|
|
812
|
-
displayName: "I-
|
|
822
|
+
var i129Hs = createForm({
|
|
823
|
+
displayName: "I-129 with H Supplement-Company Petitioner",
|
|
813
824
|
roles: {
|
|
814
825
|
Petitioner: "CLIENTPROFILE",
|
|
815
826
|
Beneficiary: "USERPROFILE",
|
|
@@ -876,10 +887,11 @@ var i864a = createForm({
|
|
|
876
887
|
}
|
|
877
888
|
});
|
|
878
889
|
const formRecords = {
|
|
890
|
+
g28Company,
|
|
879
891
|
g28Person,
|
|
880
892
|
g1145,
|
|
881
893
|
i129Attachment,
|
|
882
|
-
|
|
894
|
+
i129Hs,
|
|
883
895
|
i130,
|
|
884
896
|
i130a,
|
|
885
897
|
i131,
|
|
@@ -1133,6 +1145,7 @@ var TaskTemplateSortBy;
|
|
|
1133
1145
|
TaskTemplateSortBy2["isEmployee"] = "ISEMPLOYEE";
|
|
1134
1146
|
})(TaskTemplateSortBy || (TaskTemplateSortBy = {}));
|
|
1135
1147
|
var useChangeVal = (props, emit) => (k, v) => {
|
|
1148
|
+
console.log(k, v);
|
|
1136
1149
|
emit("update:value", __spreadProps(__spreadValues({}, props.value), {
|
|
1137
1150
|
[k]: v
|
|
1138
1151
|
}));
|
|
@@ -1336,9 +1349,12 @@ var __vue2_script$7 = defineComponent({
|
|
|
1336
1349
|
const changeVal = useChangeVal(props, emit);
|
|
1337
1350
|
const submit2 = () => {
|
|
1338
1351
|
taskForm.value.validFields((passed, ts) => {
|
|
1352
|
+
console.log(props.value.taskTemplateObj.taskType);
|
|
1339
1353
|
if (passed) {
|
|
1340
1354
|
const data = {
|
|
1341
|
-
taskTemplateObj: ts,
|
|
1355
|
+
taskTemplateObj: __spreadProps(__spreadValues({}, ts), {
|
|
1356
|
+
taskType: props.value.taskTemplateObj.taskType
|
|
1357
|
+
}),
|
|
1342
1358
|
selfUserId: props.userId,
|
|
1343
1359
|
selfLawFirmId: props.lawFirmId,
|
|
1344
1360
|
taskTemplateId: ts.id,
|
|
@@ -1394,7 +1410,7 @@ var render$7 = function() {
|
|
|
1394
1410
|
var staticRenderFns$7 = [];
|
|
1395
1411
|
var index_vue_vue_type_style_index_0_scoped_true_lang$2 = "";
|
|
1396
1412
|
const __cssModules$7 = {};
|
|
1397
|
-
var __component__$7 = /* @__PURE__ */ normalizeComponent(__vue2_script$7, render$7, staticRenderFns$7, false, __vue2_injectStyles$7, "
|
|
1413
|
+
var __component__$7 = /* @__PURE__ */ normalizeComponent(__vue2_script$7, render$7, staticRenderFns$7, false, __vue2_injectStyles$7, "6f6da870", null, null);
|
|
1398
1414
|
function __vue2_injectStyles$7(context) {
|
|
1399
1415
|
for (let o in __cssModules$7) {
|
|
1400
1416
|
this[o] = __cssModules$7[o];
|
|
@@ -1475,9 +1491,13 @@ function __vue2_injectStyles$6(context) {
|
|
|
1475
1491
|
var TaskTemplateFilter = /* @__PURE__ */ function() {
|
|
1476
1492
|
return __component__$6.exports;
|
|
1477
1493
|
}();
|
|
1478
|
-
function
|
|
1494
|
+
function useVm() {
|
|
1479
1495
|
const scope = getCurrentScope();
|
|
1480
|
-
return
|
|
1496
|
+
return scope.vm;
|
|
1497
|
+
}
|
|
1498
|
+
function useT() {
|
|
1499
|
+
const vm = useVm();
|
|
1500
|
+
return (key) => vm.$i18n.t(key);
|
|
1481
1501
|
}
|
|
1482
1502
|
var __vue2_script$5 = defineComponent({
|
|
1483
1503
|
name: "TaskTablePure",
|
|
@@ -2155,7 +2175,7 @@ var __vue2_script$1 = defineComponent({
|
|
|
2155
2175
|
});
|
|
2156
2176
|
emit("update:value", newValue.map(({ id }) => id));
|
|
2157
2177
|
} else {
|
|
2158
|
-
addedTasks.value.push(newRecord);
|
|
2178
|
+
newRecord.id !== record.taskTemplateId && addedTasks.value.push(newRecord);
|
|
2159
2179
|
emit("update:value", [...addedTasks.value.map(({ id }) => id), newRecord.id]);
|
|
2160
2180
|
}
|
|
2161
2181
|
};
|
|
@@ -2188,7 +2208,6 @@ var __vue2_script$1 = defineComponent({
|
|
|
2188
2208
|
};
|
|
2189
2209
|
const _submit = async (record) => {
|
|
2190
2210
|
const { newRecord, success, isUpdate } = await submit(record, updateTemplate, createTemplate);
|
|
2191
|
-
console.log(0);
|
|
2192
2211
|
if (success) {
|
|
2193
2212
|
writeQuery(record.taskTemplateId, newRecord, isUpdate);
|
|
2194
2213
|
newTaskVisible.value = false;
|
|
@@ -2278,7 +2297,7 @@ var render$1 = function() {
|
|
|
2278
2297
|
var staticRenderFns$1 = [];
|
|
2279
2298
|
var index_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
2280
2299
|
const __cssModules$1 = {};
|
|
2281
|
-
var __component__$1 = /* @__PURE__ */ normalizeComponent(__vue2_script$1, render$1, staticRenderFns$1, false, __vue2_injectStyles$1, "
|
|
2300
|
+
var __component__$1 = /* @__PURE__ */ normalizeComponent(__vue2_script$1, render$1, staticRenderFns$1, false, __vue2_injectStyles$1, "466cfa4a", null, null);
|
|
2282
2301
|
function __vue2_injectStyles$1(context) {
|
|
2283
2302
|
for (let o in __cssModules$1) {
|
|
2284
2303
|
this[o] = __cssModules$1[o];
|