@dev_ailaw/venus 1.451.0 → 1.453.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.
Files changed (2) hide show
  1. package/dist/venus.es.js +32 -6
  2. package/package.json +1 -1
package/dist/venus.es.js CHANGED
@@ -2911,6 +2911,7 @@ var __vue2_script$5 = defineComponent({
2911
2911
  components: {
2912
2912
  AntTable: Table,
2913
2913
  AntButton: Button,
2914
+ AntDatePicker: DatePicker,
2914
2915
  AssigneeTag,
2915
2916
  TagsWithTooltip,
2916
2917
  AiReviewBadge
@@ -2943,6 +2944,10 @@ var __vue2_script$5 = defineComponent({
2943
2944
  showAiRule: {
2944
2945
  type: Boolean,
2945
2946
  default: false
2947
+ },
2948
+ showDueDate: {
2949
+ type: Boolean,
2950
+ default: false
2946
2951
  }
2947
2952
  },
2948
2953
  setup(props) {
@@ -2978,6 +2983,13 @@ var __vue2_script$5 = defineComponent({
2978
2983
  customCell: () => ({ style: { maxWidth: `${AI_COLUMN_WIDTH}px` } }),
2979
2984
  scopedSlots: { customRender: "aiReview" }
2980
2985
  }] : [],
2986
+ ...props.showDueDate ? [{
2987
+ title: t("message.durDate"),
2988
+ dataIndex: "urgentDate",
2989
+ key: "urgentDate",
2990
+ width: 150,
2991
+ scopedSlots: { customRender: "dueDate" }
2992
+ }] : [],
2981
2993
  {
2982
2994
  title: "Operation",
2983
2995
  dataIndex: "id",
@@ -3016,6 +3028,10 @@ var render$5 = function() {
3016
3028
  return _c("span", {}, [_c("span", { staticStyle: { "word-break": "break-word" } }, [_vm._v(_vm._s(taskName))])]);
3017
3029
  } }, { key: "tagList", fn: function(tags) {
3018
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;
3019
3035
  } }, { key: "aiReview", fn: function(_, record) {
3020
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 || "" } })];
3021
3037
  } }, { key: "operation", fn: function(_, record) {
@@ -3026,12 +3042,12 @@ var render$5 = function() {
3026
3042
  } } }, [_vm._v(" " + _vm._s(_vm.$t("message.remove")) + " ")]) : _c("ant-button", { staticStyle: { "width": "70px" }, attrs: { "size": "small", "type": "primary" }, on: { "click": function($event) {
3027
3043
  return _vm.$emit("addTask", record);
3028
3044
  } } }, [_vm._v(" " + _vm._s(_vm.$t("message.add")) + " ")])];
3029
- } }]) })], 1);
3045
+ } }], null, true) })], 1);
3030
3046
  };
3031
3047
  var staticRenderFns$5 = [];
3032
3048
  var TaskTablePure_vue_vue_type_style_index_0_scoped_true_lang = "";
3033
3049
  const __cssModules$5 = {};
3034
- var __component__$5 = /* @__PURE__ */ normalizeComponent(__vue2_script$5, render$5, staticRenderFns$5, false, __vue2_injectStyles$5, "24d1ec9b", null, null);
3050
+ var __component__$5 = /* @__PURE__ */ normalizeComponent(__vue2_script$5, render$5, staticRenderFns$5, false, __vue2_injectStyles$5, "34d75a90", null, null);
3035
3051
  function __vue2_injectStyles$5(context) {
3036
3052
  for (let o in __cssModules$5) {
3037
3053
  this[o] = __cssModules$5[o];
@@ -3391,6 +3407,10 @@ var __vue2_script$2 = defineComponent({
3391
3407
  adding: {
3392
3408
  type: Boolean,
3393
3409
  default: false
3410
+ },
3411
+ showDueDate: {
3412
+ type: Boolean,
3413
+ default: false
3394
3414
  }
3395
3415
  },
3396
3416
  setup(props, { emit }) {
@@ -3404,10 +3424,12 @@ var __vue2_script$2 = defineComponent({
3404
3424
  pagination.value = newPagination;
3405
3425
  };
3406
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));
3407
3428
  return {
3408
3429
  addTask,
3409
3430
  editTask,
3410
3431
  removeTask,
3432
+ setDueDate,
3411
3433
  pagination,
3412
3434
  changePagination
3413
3435
  };
@@ -3419,7 +3441,7 @@ var render$2 = function() {
3419
3441
  var _c = _vm._self._c || _h;
3420
3442
  return _c("ant-modal", { attrs: { "zIndex": 900, "width": "900px", "visible": _vm.visible, "title": _vm.$t("message.reviewTasksTitle") }, on: { "cancel": function($event) {
3421
3443
  return _vm.$emit("update:visible", false);
3422
- } } }, [_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) {
3423
3445
  return _vm.$emit("update:sendEmail", $event.target.checked);
3424
3446
  } } }, [_vm._v(" " + _vm._s(_vm.$t("message.sendTaskEmail")) + " ")]) : _vm._e(), _c("ant-button", { on: { "click": function($event) {
3425
3447
  return _vm.$emit("update:visible", false);
@@ -3437,7 +3459,7 @@ var render$2 = function() {
3437
3459
  var staticRenderFns$2 = [];
3438
3460
  var ReviewModal_vue_vue_type_style_index_0_scoped_true_lang = "";
3439
3461
  const __cssModules$2 = {};
3440
- var __component__$2 = /* @__PURE__ */ normalizeComponent(__vue2_script$2, render$2, staticRenderFns$2, false, __vue2_injectStyles$2, "315dcb1d", null, null);
3462
+ var __component__$2 = /* @__PURE__ */ normalizeComponent(__vue2_script$2, render$2, staticRenderFns$2, false, __vue2_injectStyles$2, "6db46e42", null, null);
3441
3463
  function __vue2_injectStyles$2(context) {
3442
3464
  for (let o in __cssModules$2) {
3443
3465
  this[o] = __cssModules$2[o];
@@ -3597,6 +3619,10 @@ var __vue2_script$1 = defineComponent({
3597
3619
  checkRuleFunc: {
3598
3620
  type: Function,
3599
3621
  default: null
3622
+ },
3623
+ showDueDate: {
3624
+ type: Boolean,
3625
+ default: false
3600
3626
  }
3601
3627
  },
3602
3628
  setup(props, { emit }) {
@@ -3735,7 +3761,7 @@ var render$1 = function() {
3735
3761
  return [_vm._t("table", null, { "loading": loading, "dataSource": dataSource, "pagination": pagination, "changePagination": changePagination })];
3736
3762
  } }], null, true) }, [_c("template", { slot: "page-title" }, [_vm._t("page-title", function() {
3737
3763
  return [_vm._v(_vm._s(_vm.$t("message.tasks")))];
3738
- })], 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) {
3739
3765
  _vm.tempTask = $event;
3740
3766
  }, "update:temp-task": function($event) {
3741
3767
  _vm.tempTask = $event;
@@ -3760,7 +3786,7 @@ var render$1 = function() {
3760
3786
  var staticRenderFns$1 = [];
3761
3787
  var index_vue_vue_type_style_index_0_scoped_true_lang = "";
3762
3788
  const __cssModules$1 = {};
3763
- var __component__$1 = /* @__PURE__ */ normalizeComponent(__vue2_script$1, render$1, staticRenderFns$1, false, __vue2_injectStyles$1, "36293e7b", null, null);
3789
+ var __component__$1 = /* @__PURE__ */ normalizeComponent(__vue2_script$1, render$1, staticRenderFns$1, false, __vue2_injectStyles$1, "6fc554fc", null, null);
3764
3790
  function __vue2_injectStyles$1(context) {
3765
3791
  for (let o in __cssModules$1) {
3766
3792
  this[o] = __cssModules$1[o];
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.451.0",
6
+ "version": "1.453.0",
7
7
  "files": [
8
8
  "dist"
9
9
  ],