@dev_ailaw/venus 1.452.0 → 1.454.0
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/venus.es.js +50 -12
- package/package.json +1 -1
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, toRefs, reactive, computed, getCurrentScope, shallowRef } from "vue-demi";
|
|
21
|
-
import { Select, Modal, FormModel, Input, Checkbox, Divider, Button, Popover, Upload, Tag, Icon, Tooltip, Form, Row, Col, Radio, Popconfirm, Table, Badge, Card, message } from "ant-design-vue";
|
|
21
|
+
import { Select, Modal, FormModel, Input, Checkbox, Divider, Button, Popover, Upload, Tag, Icon, Tooltip, Form, Row, Col, Radio, Popconfirm, DatePicker, 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, omit } from "ramda";
|
|
@@ -2633,7 +2633,10 @@ var __vue2_script$8 = defineComponent({
|
|
|
2633
2633
|
AntModal: Modal,
|
|
2634
2634
|
AntCheckbox: Checkbox,
|
|
2635
2635
|
AntButton: Button,
|
|
2636
|
-
AntPopconfirm: Popconfirm
|
|
2636
|
+
AntPopconfirm: Popconfirm,
|
|
2637
|
+
AntForm: Form,
|
|
2638
|
+
AntFormItem: Form.Item,
|
|
2639
|
+
AntDatePicker: DatePicker
|
|
2637
2640
|
},
|
|
2638
2641
|
props: {
|
|
2639
2642
|
visible: {
|
|
@@ -2656,6 +2659,10 @@ var __vue2_script$8 = defineComponent({
|
|
|
2656
2659
|
type: Boolean,
|
|
2657
2660
|
default: false
|
|
2658
2661
|
},
|
|
2662
|
+
showDueDate: {
|
|
2663
|
+
type: Boolean,
|
|
2664
|
+
default: false
|
|
2665
|
+
},
|
|
2659
2666
|
uploadFilesFunc: {
|
|
2660
2667
|
type: Function,
|
|
2661
2668
|
required: true
|
|
@@ -2697,7 +2704,7 @@ var __vue2_script$8 = defineComponent({
|
|
|
2697
2704
|
taskForm.value.validFields((passed, ts) => {
|
|
2698
2705
|
var _a;
|
|
2699
2706
|
if (passed) {
|
|
2700
|
-
const data = {
|
|
2707
|
+
const data = __spreadValues({
|
|
2701
2708
|
taskTemplateObj: __spreadProps(__spreadValues({}, omit(["presetDocs"], ts)), {
|
|
2702
2709
|
taskName: (_a = ts.taskName) == null ? void 0 : _a.trim(),
|
|
2703
2710
|
taskType: props.value.taskTemplateObj.taskType,
|
|
@@ -2711,7 +2718,7 @@ var __vue2_script$8 = defineComponent({
|
|
|
2711
2718
|
isAddedToTask: props.value.isAddedToTask || false,
|
|
2712
2719
|
isNotified: props.value.isNotified || false,
|
|
2713
2720
|
allowSubmitWithoutFile: props.value.allowSubmitWithoutFile
|
|
2714
|
-
};
|
|
2721
|
+
}, props.showDueDate ? { urgentDate: props.value.urgentDate || null } : {});
|
|
2715
2722
|
emit("submit", data);
|
|
2716
2723
|
}
|
|
2717
2724
|
});
|
|
@@ -2725,6 +2732,7 @@ var __vue2_script$8 = defineComponent({
|
|
|
2725
2732
|
isAddedToTask: props.value.isAddedToTask,
|
|
2726
2733
|
isNotified: props.value.isNotified,
|
|
2727
2734
|
allowSubmitWithoutFile: props.value.allowSubmitWithoutFile,
|
|
2735
|
+
urgentDate: props.value.urgentDate,
|
|
2728
2736
|
taskTemplateObj: __spreadProps(__spreadValues({}, record), {
|
|
2729
2737
|
isEmployee: record.isEmployee
|
|
2730
2738
|
})
|
|
@@ -2756,7 +2764,11 @@ var render$8 = function() {
|
|
|
2756
2764
|
} } }, [_vm._v(" " + _vm._s(_vm.$t("message.sendTaskEmail")) + " ")])], 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) {
|
|
2757
2765
|
return _vm.changeVisible(false);
|
|
2758
2766
|
} } }, [_vm._v(_vm._s(_vm.$t("message.cancel")) + " ")])], 1)])];
|
|
2759
|
-
}, proxy: true }]) }, [_vm._t("banner"), _c("task-form", { ref: "taskForm", attrs: { "upload-files-func": _vm.uploadFilesFunc, "law-firm-id": _vm.lawFirmId, "user-id": _vm.userId, "value": _vm.value.taskTemplateObj, "show-ai-rule": _vm.showAiRule, "check-rule-func": _vm.checkRuleFunc }, on: { "update:value": _vm.updateFormValue } }), _vm.
|
|
2767
|
+
}, proxy: true }]) }, [_vm._t("banner"), _c("task-form", { ref: "taskForm", attrs: { "upload-files-func": _vm.uploadFilesFunc, "law-firm-id": _vm.lawFirmId, "user-id": _vm.userId, "value": _vm.value.taskTemplateObj, "show-ai-rule": _vm.showAiRule, "check-rule-func": _vm.checkRuleFunc }, on: { "update:value": _vm.updateFormValue } }), _vm.showDueDate ? _c("ant-form", { staticClass: "add-edit-task-modal", on: { "submit": function(e) {
|
|
2768
|
+
return e.preventDefault();
|
|
2769
|
+
} } }, [_c("ant-form-item", { attrs: { "label": "" + _vm.$t("message.durDate") + " (" + _vm.$t("message.optional") + ")" } }, [_c("ant-date-picker", { attrs: { "id": "venus-new-task-due-date", "value": _vm.value.urgentDate, "format": "MM/DD/YYYY", "value-format": "YYYY-MM-DD" }, on: { "change": function($event) {
|
|
2770
|
+
return _vm.changeVal("urgentDate", $event);
|
|
2771
|
+
} } })], 1)], 1) : _vm._e(), _vm.showAddToList ? _c("ant-checkbox", { attrs: { "checked": _vm.value.isAddedToTask }, on: { "change": function($event) {
|
|
2760
2772
|
return _vm.changeVal("isAddedToTask", $event.target.checked);
|
|
2761
2773
|
} } }, [_vm._v(" " + _vm._s(_vm.$t("message.addToTaskList")) + " ")]) : _vm._e(), _vm.showAllowSubmit ? _c("ant-checkbox", { staticClass: "ml-2", attrs: { "checked": _vm.value.allowSubmitWithoutFile }, on: { "change": function($event) {
|
|
2762
2774
|
return _vm.changeVal("allowSubmitWithoutFile", $event.target.checked);
|
|
@@ -2765,7 +2777,7 @@ var render$8 = function() {
|
|
|
2765
2777
|
var staticRenderFns$8 = [];
|
|
2766
2778
|
var index_vue_vue_type_style_index_0_scoped_true_lang$2 = "";
|
|
2767
2779
|
const __cssModules$8 = {};
|
|
2768
|
-
var __component__$8 = /* @__PURE__ */ normalizeComponent(__vue2_script$8, render$8, staticRenderFns$8, false, __vue2_injectStyles$8, "
|
|
2780
|
+
var __component__$8 = /* @__PURE__ */ normalizeComponent(__vue2_script$8, render$8, staticRenderFns$8, false, __vue2_injectStyles$8, "463df3f8", null, null);
|
|
2769
2781
|
function __vue2_injectStyles$8(context) {
|
|
2770
2782
|
for (let o in __cssModules$8) {
|
|
2771
2783
|
this[o] = __cssModules$8[o];
|
|
@@ -2899,6 +2911,7 @@ var __vue2_script$5 = defineComponent({
|
|
|
2899
2911
|
components: {
|
|
2900
2912
|
AntTable: Table,
|
|
2901
2913
|
AntButton: Button,
|
|
2914
|
+
AntDatePicker: DatePicker,
|
|
2902
2915
|
AssigneeTag,
|
|
2903
2916
|
TagsWithTooltip,
|
|
2904
2917
|
AiReviewBadge
|
|
@@ -2931,6 +2944,10 @@ var __vue2_script$5 = defineComponent({
|
|
|
2931
2944
|
showAiRule: {
|
|
2932
2945
|
type: Boolean,
|
|
2933
2946
|
default: false
|
|
2947
|
+
},
|
|
2948
|
+
showDueDate: {
|
|
2949
|
+
type: Boolean,
|
|
2950
|
+
default: false
|
|
2934
2951
|
}
|
|
2935
2952
|
},
|
|
2936
2953
|
setup(props) {
|
|
@@ -2966,6 +2983,13 @@ var __vue2_script$5 = defineComponent({
|
|
|
2966
2983
|
customCell: () => ({ style: { maxWidth: `${AI_COLUMN_WIDTH}px` } }),
|
|
2967
2984
|
scopedSlots: { customRender: "aiReview" }
|
|
2968
2985
|
}] : [],
|
|
2986
|
+
...props.showDueDate ? [{
|
|
2987
|
+
title: t("message.durDate"),
|
|
2988
|
+
dataIndex: "urgentDate",
|
|
2989
|
+
key: "urgentDate",
|
|
2990
|
+
width: 150,
|
|
2991
|
+
scopedSlots: { customRender: "dueDate" }
|
|
2992
|
+
}] : [],
|
|
2969
2993
|
{
|
|
2970
2994
|
title: "Operation",
|
|
2971
2995
|
dataIndex: "id",
|
|
@@ -3004,6 +3028,10 @@ var render$5 = function() {
|
|
|
3004
3028
|
return _c("span", {}, [_c("span", { staticStyle: { "word-break": "break-word" } }, [_vm._v(_vm._s(taskName))])]);
|
|
3005
3029
|
} }, { key: "tagList", fn: function(tags) {
|
|
3006
3030
|
return [_c("tags-with-tooltip", { attrs: { "tags": tags } })];
|
|
3031
|
+
} }, { key: "dueDate", fn: function(_, record) {
|
|
3032
|
+
return _vm.showDueDate ? [_c("ant-date-picker", { staticStyle: { "width": "130px" }, attrs: { "size": "small", "value": record.urgentDate, "format": "MM/DD/YYYY", "value-format": "YYYY-MM-DD" }, on: { "change": function($event) {
|
|
3033
|
+
return _vm.$emit("changeDueDate", record, $event);
|
|
3034
|
+
} } })] : void 0;
|
|
3007
3035
|
} }, { key: "aiReview", fn: function(_, record) {
|
|
3008
3036
|
return [_c("ai-review-badge", { attrs: { "status": (_vm.badgeMap[record.id] || {}).s || "notset", "types": (_vm.badgeMap[record.id] || {}).types || [], "reason": (_vm.badgeMap[record.id] || {}).reason || "" } })];
|
|
3009
3037
|
} }, { key: "operation", fn: function(_, record) {
|
|
@@ -3014,12 +3042,12 @@ var render$5 = function() {
|
|
|
3014
3042
|
} } }, [_vm._v(" " + _vm._s(_vm.$t("message.remove")) + " ")]) : _c("ant-button", { staticStyle: { "width": "70px" }, attrs: { "size": "small", "type": "primary" }, on: { "click": function($event) {
|
|
3015
3043
|
return _vm.$emit("addTask", record);
|
|
3016
3044
|
} } }, [_vm._v(" " + _vm._s(_vm.$t("message.add")) + " ")])];
|
|
3017
|
-
} }]) })], 1);
|
|
3045
|
+
} }], null, true) })], 1);
|
|
3018
3046
|
};
|
|
3019
3047
|
var staticRenderFns$5 = [];
|
|
3020
3048
|
var TaskTablePure_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
3021
3049
|
const __cssModules$5 = {};
|
|
3022
|
-
var __component__$5 = /* @__PURE__ */ normalizeComponent(__vue2_script$5, render$5, staticRenderFns$5, false, __vue2_injectStyles$5, "
|
|
3050
|
+
var __component__$5 = /* @__PURE__ */ normalizeComponent(__vue2_script$5, render$5, staticRenderFns$5, false, __vue2_injectStyles$5, "34d75a90", null, null);
|
|
3023
3051
|
function __vue2_injectStyles$5(context) {
|
|
3024
3052
|
for (let o in __cssModules$5) {
|
|
3025
3053
|
this[o] = __cssModules$5[o];
|
|
@@ -3379,6 +3407,10 @@ var __vue2_script$2 = defineComponent({
|
|
|
3379
3407
|
adding: {
|
|
3380
3408
|
type: Boolean,
|
|
3381
3409
|
default: false
|
|
3410
|
+
},
|
|
3411
|
+
showDueDate: {
|
|
3412
|
+
type: Boolean,
|
|
3413
|
+
default: false
|
|
3382
3414
|
}
|
|
3383
3415
|
},
|
|
3384
3416
|
setup(props, { emit }) {
|
|
@@ -3392,10 +3424,12 @@ var __vue2_script$2 = defineComponent({
|
|
|
3392
3424
|
pagination.value = newPagination;
|
|
3393
3425
|
};
|
|
3394
3426
|
const { addTask, editTask, removeTask } = useTaskActions(addedTasks, emit);
|
|
3427
|
+
const setDueDate = (record, urgentDate) => emit("update:addedTasks", addedTasks.value.map((task) => task.id === record.id ? __spreadProps(__spreadValues({}, task), { urgentDate }) : task));
|
|
3395
3428
|
return {
|
|
3396
3429
|
addTask,
|
|
3397
3430
|
editTask,
|
|
3398
3431
|
removeTask,
|
|
3432
|
+
setDueDate,
|
|
3399
3433
|
pagination,
|
|
3400
3434
|
changePagination
|
|
3401
3435
|
};
|
|
@@ -3407,7 +3441,7 @@ var render$2 = function() {
|
|
|
3407
3441
|
var _c = _vm._self._c || _h;
|
|
3408
3442
|
return _c("ant-modal", { attrs: { "zIndex": 900, "width": "900px", "visible": _vm.visible, "title": _vm.$t("message.reviewTasksTitle") }, on: { "cancel": function($event) {
|
|
3409
3443
|
return _vm.$emit("update:visible", false);
|
|
3410
|
-
} } }, [_c("task-table-pure", { attrs: { "show-edit": false, "loading": false, "no-edit": true, "data-source": _vm.addedTasks, "pagination": _vm.pagination, "added-tasks": _vm.addedTasks }, on: { "removeTask": _vm.removeTask, "changePagination": _vm.changePagination } }), _c("div", { attrs: { "slot": "footer" }, slot: "footer" }, [_vm.showSendEmail ? _c("ant-checkbox", { staticStyle: { "float": "left" }, attrs: { "checked": _vm.sendEmail }, on: { "change": function($event) {
|
|
3444
|
+
} } }, [_c("task-table-pure", { attrs: { "show-edit": false, "loading": false, "show-due-date": _vm.showDueDate, "no-edit": true, "data-source": _vm.addedTasks, "pagination": _vm.pagination, "added-tasks": _vm.addedTasks }, on: { "removeTask": _vm.removeTask, "changeDueDate": _vm.setDueDate, "changePagination": _vm.changePagination } }), _c("div", { attrs: { "slot": "footer" }, slot: "footer" }, [_vm.showSendEmail ? _c("ant-checkbox", { staticStyle: { "float": "left" }, attrs: { "checked": _vm.sendEmail }, on: { "change": function($event) {
|
|
3411
3445
|
return _vm.$emit("update:sendEmail", $event.target.checked);
|
|
3412
3446
|
} } }, [_vm._v(" " + _vm._s(_vm.$t("message.sendTaskEmail")) + " ")]) : _vm._e(), _c("ant-button", { on: { "click": function($event) {
|
|
3413
3447
|
return _vm.$emit("update:visible", false);
|
|
@@ -3425,7 +3459,7 @@ var render$2 = function() {
|
|
|
3425
3459
|
var staticRenderFns$2 = [];
|
|
3426
3460
|
var ReviewModal_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
3427
3461
|
const __cssModules$2 = {};
|
|
3428
|
-
var __component__$2 = /* @__PURE__ */ normalizeComponent(__vue2_script$2, render$2, staticRenderFns$2, false, __vue2_injectStyles$2, "
|
|
3462
|
+
var __component__$2 = /* @__PURE__ */ normalizeComponent(__vue2_script$2, render$2, staticRenderFns$2, false, __vue2_injectStyles$2, "6db46e42", null, null);
|
|
3429
3463
|
function __vue2_injectStyles$2(context) {
|
|
3430
3464
|
for (let o in __cssModules$2) {
|
|
3431
3465
|
this[o] = __cssModules$2[o];
|
|
@@ -3585,6 +3619,10 @@ var __vue2_script$1 = defineComponent({
|
|
|
3585
3619
|
checkRuleFunc: {
|
|
3586
3620
|
type: Function,
|
|
3587
3621
|
default: null
|
|
3622
|
+
},
|
|
3623
|
+
showDueDate: {
|
|
3624
|
+
type: Boolean,
|
|
3625
|
+
default: false
|
|
3588
3626
|
}
|
|
3589
3627
|
},
|
|
3590
3628
|
setup(props, { emit }) {
|
|
@@ -3723,7 +3761,7 @@ var render$1 = function() {
|
|
|
3723
3761
|
return [_vm._t("table", null, { "loading": loading, "dataSource": dataSource, "pagination": pagination, "changePagination": changePagination })];
|
|
3724
3762
|
} }], null, true) }, [_c("template", { slot: "page-title" }, [_vm._t("page-title", function() {
|
|
3725
3763
|
return [_vm._v(_vm._s(_vm.$t("message.tasks")))];
|
|
3726
|
-
})], 2), _c("template", { slot: "header-extra" }, [_vm._t("header-extra")], 2), _c("template", { slot: "header" }, [_vm._t("header")], 2)], 2), _c("review-modal", { ref: "reviewModal", attrs: { "adding": _vm.adding, "sendEmail": _vm.sendEmail, "allow-clear": _vm.allowClear, "tempTask": _vm.tempTask, "review-text": _vm.reviewText, "added-tasks": _vm.addedTasks, "showSendEmail": _vm.showSendEmail, "visible": _vm.reviewModalVisible, "newTaskVisible": _vm.newTaskVisible }, on: { "update:tempTask": function($event) {
|
|
3764
|
+
})], 2), _c("template", { slot: "header-extra" }, [_vm._t("header-extra")], 2), _c("template", { slot: "header" }, [_vm._t("header")], 2)], 2), _c("review-modal", { ref: "reviewModal", attrs: { "adding": _vm.adding, "sendEmail": _vm.sendEmail, "allow-clear": _vm.allowClear, "tempTask": _vm.tempTask, "review-text": _vm.reviewText, "added-tasks": _vm.addedTasks, "showSendEmail": _vm.showSendEmail, "show-due-date": _vm.showDueDate, "visible": _vm.reviewModalVisible, "newTaskVisible": _vm.newTaskVisible }, on: { "update:tempTask": function($event) {
|
|
3727
3765
|
_vm.tempTask = $event;
|
|
3728
3766
|
}, "update:temp-task": function($event) {
|
|
3729
3767
|
_vm.tempTask = $event;
|
|
@@ -3748,7 +3786,7 @@ var render$1 = function() {
|
|
|
3748
3786
|
var staticRenderFns$1 = [];
|
|
3749
3787
|
var index_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
3750
3788
|
const __cssModules$1 = {};
|
|
3751
|
-
var __component__$1 = /* @__PURE__ */ normalizeComponent(__vue2_script$1, render$1, staticRenderFns$1, false, __vue2_injectStyles$1, "
|
|
3789
|
+
var __component__$1 = /* @__PURE__ */ normalizeComponent(__vue2_script$1, render$1, staticRenderFns$1, false, __vue2_injectStyles$1, "6fc554fc", null, null);
|
|
3752
3790
|
function __vue2_injectStyles$1(context) {
|
|
3753
3791
|
for (let o in __cssModules$1) {
|
|
3754
3792
|
this[o] = __cssModules$1[o];
|