@ailaw/venus 0.3.10 → 0.3.14

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/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)))}.border{border-width:1px}.p-4{padding:1rem}.px-3{padding-left:.75rem;padding-right:.75rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.capitalize{text-transform:capitalize}.text-secondary{--tw-text-opacity: 1;color:rgba(102,102,102,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)}.tags-container[data-v-c4729600]{word-break:keep-all;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}.container[data-v-d2a7dbe0]{border:1px solid #cccccc;border-radius:6px;padding:0 4px;min-height:30px;cursor:pointer}.taskTemplateInline[data-v-3f1928ba]{float:right}a.taskTemplateInline[data-v-3f1928ba]{margin-left:10px}div.taskTemplateInline[data-v-3f1928ba]{margin-top:5px!important}
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)))}.border{border-width:1px}.p-4{padding:1rem}.px-3{padding-left:.75rem;padding-right:.75rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.capitalize{text-transform:capitalize}.text-secondary{--tw-text-opacity: 1;color:rgba(102,102,102,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)}.tags-container[data-v-c4729600]{word-break:keep-all;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}.container[data-v-d2a7dbe0]{border:1px solid #cccccc;border-radius:6px;padding:0 4px;min-height:30px;cursor:pointer}.taskTemplateInline[data-v-5128ec2c]{float:right}a.taskTemplateInline[data-v-5128ec2c]{margin-left:10px}div.taskTemplateInline[data-v-5128ec2c]{margin-top:5px!important}
package/dist/venus.es.js CHANGED
@@ -17,8 +17,8 @@ var __spreadValues = (a, b) => {
17
17
  return a;
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
- import { defineComponent, ref as ref$1, watch, computed, toRefs as toRefs$1, onMounted } from "vue-demi";
21
- import { Select, Modal, Form, Input, Checkbox, Divider, Button, Tag, Tooltip, Upload, Row, Col, Radio, Table, Badge, message } from "ant-design-vue";
20
+ import { defineComponent, ref as ref$1, watch, computed, toRefs as toRefs$1, shallowRef, onMounted } from "vue-demi";
21
+ import { Select, Modal, Form, Input, Checkbox, Divider, Button, Tag, Tooltip, Upload, Row, Col, Radio, Table, Badge, Card, message } from "ant-design-vue";
22
22
  import { useQuery, useResult, useMutation } from "@vue/apollo-composable";
23
23
  import gql from "graphql-tag";
24
24
  import { path, uniqBy, prop } from "ramda";
@@ -1171,6 +1171,10 @@ var __vue2_script$6 = defineComponent({
1171
1171
  inline: {
1172
1172
  type: Boolean,
1173
1173
  default: false
1174
+ },
1175
+ width: {
1176
+ type: Number,
1177
+ default: 300
1174
1178
  }
1175
1179
  },
1176
1180
  setup(props, { emit }) {
@@ -1193,7 +1197,7 @@ var render$6 = function() {
1193
1197
  var _vm = this;
1194
1198
  var _h = _vm.$createElement;
1195
1199
  var _c = _vm._self._c || _h;
1196
- return _c("div", { staticClass: "filter mb-5" }, [_c("ant-input", { staticStyle: { "width": "300px" }, attrs: { "value": _vm.conditions.keywords }, on: { "input": function($event) {
1200
+ return _c("div", { staticClass: "filter mb-5" }, [_c("ant-input", { style: "width:" + _vm.width + "px", attrs: { "value": _vm.conditions.keywords }, on: { "input": function($event) {
1197
1201
  return _vm.changeVal("keywords", $event.target.value);
1198
1202
  } }, scopedSlots: _vm._u([{ key: "suffix", fn: function() {
1199
1203
  return void 0;
@@ -1206,7 +1210,7 @@ var render$6 = function() {
1206
1210
  var staticRenderFns$6 = [];
1207
1211
  var index_vue_vue_type_style_index_0_scoped_true_lang$1 = "";
1208
1212
  const __cssModules$6 = {};
1209
- var __component__$6 = /* @__PURE__ */ normalizeComponent(__vue2_script$6, render$6, staticRenderFns$6, false, __vue2_injectStyles$6, "3f1928ba", null, null);
1213
+ var __component__$6 = /* @__PURE__ */ normalizeComponent(__vue2_script$6, render$6, staticRenderFns$6, false, __vue2_injectStyles$6, "5128ec2c", null, null);
1210
1214
  function __vue2_injectStyles$6(context) {
1211
1215
  for (let o in __cssModules$6) {
1212
1216
  this[o] = __cssModules$6[o];
@@ -2408,7 +2412,7 @@ var __vue2_script$4 = defineComponent({
2408
2412
  },
2409
2413
  addedTasks: {
2410
2414
  type: Array,
2411
- required: true
2415
+ default: () => []
2412
2416
  },
2413
2417
  lawFirmId: {
2414
2418
  type: Number,
@@ -2431,8 +2435,8 @@ var __vue2_script$4 = defineComponent({
2431
2435
  refetch,
2432
2436
  dataSource,
2433
2437
  pagination,
2434
- changePagination,
2435
2438
  AssigneeTypesText,
2439
+ changePagination,
2436
2440
  addTask,
2437
2441
  editTask,
2438
2442
  removeTask
@@ -2443,12 +2447,14 @@ var render$4 = function() {
2443
2447
  var _vm = this;
2444
2448
  var _h = _vm.$createElement;
2445
2449
  var _c = _vm._self._c || _h;
2446
- return _c("task-table-pure", { attrs: { "loading": _vm.loading, "data-source": _vm.dataSource, "pagination": _vm.pagination, "added-tasks": _vm.addedTasks }, on: { "editTask": _vm.editTask, "addTask": _vm.addTask, "removeTask": _vm.removeTask, "changePagination": _vm.changePagination } });
2450
+ return _c("div", [_vm._t("default", function() {
2451
+ return [_c("task-table-pure", { attrs: { "loading": _vm.loading, "data-source": _vm.dataSource, "pagination": _vm.pagination, "added-tasks": _vm.addedTasks }, on: { "editTask": _vm.editTask, "addTask": _vm.addTask, "removeTask": _vm.removeTask, "changePagination": _vm.changePagination } })];
2452
+ }, { "loading": _vm.loading, "dataSource": _vm.dataSource, "pagination": _vm.pagination, "AssigneeTypesText": _vm.AssigneeTypesText, "changePagination": _vm.changePagination })], 2);
2447
2453
  };
2448
2454
  var staticRenderFns$4 = [];
2449
2455
  var TaskTable_vue_vue_type_style_index_0_scoped_true_lang = "";
2450
2456
  const __cssModules$4 = {};
2451
- var __component__$4 = /* @__PURE__ */ normalizeComponent(__vue2_script$4, render$4, staticRenderFns$4, false, __vue2_injectStyles$4, "52cec9c7", null, null);
2457
+ var __component__$4 = /* @__PURE__ */ normalizeComponent(__vue2_script$4, render$4, staticRenderFns$4, false, __vue2_injectStyles$4, "5c367cce", null, null);
2452
2458
  function __vue2_injectStyles$4(context) {
2453
2459
  for (let o in __cssModules$4) {
2454
2460
  this[o] = __cssModules$4[o];
@@ -2462,7 +2468,6 @@ var __vue2_script$3 = defineComponent({
2462
2468
  components: {
2463
2469
  TaskTable,
2464
2470
  TaskTemplateFilter,
2465
- AntModal: Modal,
2466
2471
  AntButton: Button,
2467
2472
  AntBadge: Badge
2468
2473
  },
@@ -2482,15 +2487,25 @@ var __vue2_script$3 = defineComponent({
2482
2487
  taskSettingPageUrl: {
2483
2488
  type: String,
2484
2489
  required: true
2490
+ },
2491
+ showPage: {
2492
+ type: Boolean,
2493
+ default: false
2485
2494
  }
2486
2495
  },
2487
- setup() {
2496
+ setup(props, { emit }) {
2488
2497
  const taskTable = ref$1(null);
2489
2498
  const conditions = useSearchTaskConditions();
2499
+ const currentComponent = shallowRef(props.showPage ? Card : Modal);
2500
+ const editAction = (record) => {
2501
+ emit("edit", record);
2502
+ };
2490
2503
  return {
2504
+ editAction,
2491
2505
  taskTable,
2492
2506
  conditions,
2493
- AssigneeTypes
2507
+ AssigneeTypes,
2508
+ currentComponent
2494
2509
  };
2495
2510
  }
2496
2511
  });
@@ -2498,7 +2513,7 @@ var render$3 = function() {
2498
2513
  var _vm = this;
2499
2514
  var _h = _vm.$createElement;
2500
2515
  var _c = _vm._self._c || _h;
2501
- return _c("ant-modal", { staticClass: "task-cart-main-modal", attrs: { "zIndex": 800, "width": 900, "visible": _vm.visible, "title": _vm.$t("message.addTask") }, on: { "cancel": function($event) {
2516
+ return _c(_vm.currentComponent, { tag: "component", staticClass: "task-cart-main-modal", attrs: { "zIndex": 800, "width": 900, "visible": _vm.visible, "title": _vm.showPage ? _vm.$t("message.tasks") : _vm.$t("message.addTask") }, on: { "cancel": function($event) {
2502
2517
  return _vm.$emit("update:visible", false);
2503
2518
  } }, scopedSlots: _vm._u([{ key: "footer", fn: function() {
2504
2519
  return [_c("ant-button", { staticStyle: { "margin-right": "20px" }, on: { "click": function($event) {
@@ -2506,7 +2521,7 @@ var render$3 = function() {
2506
2521
  } } }, [_vm._v("Cancel ")]), _c("ant-badge", { attrs: { "count": _vm.addedTasks.length } }, [_c("ant-button", { attrs: { "disabled": _vm.addedTasks.length === 0, "type": "primary" }, on: { "click": function($event) {
2507
2522
  return _vm.$emit("update:reviewModalVisible", true);
2508
2523
  } } }, [_vm._v(" " + _vm._s(_vm.$t("message.reviewTasks")) + " ")])], 1)];
2509
- }, proxy: true }]) }, [_c("task-template-filter", { attrs: { "show-task-home-page-link": true, "task-setting-page-url": _vm.taskSettingPageUrl, "conditions": _vm.conditions }, on: { "update:conditions": function($event) {
2524
+ }, proxy: true }]) }, [_c("task-template-filter", { attrs: { "show-task-home-page-link": true, "task-setting-page-url": _vm.taskSettingPageUrl, "conditions": _vm.conditions, "inline": !!_vm.showPage }, on: { "update:conditions": function($event) {
2510
2525
  _vm.conditions = $event;
2511
2526
  }, "update:newTaskVisible": function($event) {
2512
2527
  return _vm.$emit("update:newTaskVisible", true);
@@ -2516,12 +2531,18 @@ var render$3 = function() {
2516
2531
  return _vm.$emit("update:tempTask", $event);
2517
2532
  }, "update:newTaskVisible": function($event) {
2518
2533
  return _vm.$emit("update:newTaskVisible", $event);
2519
- } } })], 1);
2534
+ } }, scopedSlots: _vm._u([{ key: "default", fn: function(ref2) {
2535
+ var loading = ref2.loading;
2536
+ var dataSource = ref2.dataSource;
2537
+ var pagination = ref2.pagination;
2538
+ var changePagination = ref2.changePagination;
2539
+ return [_vm._t("default", null, { "editAction": _vm.editAction, "loading": loading, "dataSource": dataSource, "pagination": pagination, "changePagination": changePagination })];
2540
+ } }], null, true) })], 1);
2520
2541
  };
2521
2542
  var staticRenderFns$3 = [];
2522
2543
  var MainModal_vue_vue_type_style_index_0_scoped_true_lang = "";
2523
2544
  const __cssModules$3 = {};
2524
- var __component__$3 = /* @__PURE__ */ normalizeComponent(__vue2_script$3, render$3, staticRenderFns$3, false, __vue2_injectStyles$3, "66be2b44", null, null);
2545
+ var __component__$3 = /* @__PURE__ */ normalizeComponent(__vue2_script$3, render$3, staticRenderFns$3, false, __vue2_injectStyles$3, "23ce399e", null, null);
2525
2546
  function __vue2_injectStyles$3(context) {
2526
2547
  for (let o in __cssModules$3) {
2527
2548
  this[o] = __cssModules$3[o];
@@ -6327,12 +6348,11 @@ var __vue2_script$1 = defineComponent({
6327
6348
  },
6328
6349
  value: {
6329
6350
  type: Array,
6330
- required: true,
6331
6351
  default: () => []
6332
6352
  },
6333
6353
  reviewText: {
6334
6354
  type: String,
6335
- required: true
6355
+ default: "Add"
6336
6356
  },
6337
6357
  showSendEmail: {
6338
6358
  type: Boolean,
@@ -6343,12 +6363,15 @@ var __vue2_script$1 = defineComponent({
6343
6363
  default: false
6344
6364
  },
6345
6365
  taskSettingPageUrl: {
6346
- type: String,
6347
- required: true
6366
+ type: String
6348
6367
  },
6349
6368
  allowClear: {
6350
6369
  type: Boolean,
6351
6370
  default: false
6371
+ },
6372
+ pageMode: {
6373
+ type: Boolean,
6374
+ default: false
6352
6375
  }
6353
6376
  },
6354
6377
  setup(props, { emit }) {
@@ -6386,7 +6409,6 @@ var __vue2_script$1 = defineComponent({
6386
6409
  } = await submit(record, updateTemplate, createTemplate);
6387
6410
  if (success) {
6388
6411
  newTaskVisible.value = false;
6389
- message.success("Success!");
6390
6412
  mainModal.value.taskTable.refetch();
6391
6413
  if (reviewModalVisible.value) {
6392
6414
  const newValue = addedTasks.value.map((originTask) => {
@@ -6397,12 +6419,17 @@ var __vue2_script$1 = defineComponent({
6397
6419
  });
6398
6420
  emit("update:value", newValue.map(({ id }) => id));
6399
6421
  }
6400
- } else {
6401
- message.error("Failed!");
6402
6422
  }
6403
6423
  };
6404
6424
  const submitting = computed(() => updateTemplate.loading.value || createTemplate.loading.value);
6425
+ const showEdit = (record) => {
6426
+ newTaskVisible.value = true;
6427
+ tempTask.value = {
6428
+ taskTemplateObj: __spreadValues({}, record)
6429
+ };
6430
+ };
6405
6431
  return {
6432
+ showEdit,
6406
6433
  mainModal,
6407
6434
  reviewModal,
6408
6435
  _submit,
@@ -6418,7 +6445,7 @@ var render$1 = function() {
6418
6445
  var _vm = this;
6419
6446
  var _h = _vm.$createElement;
6420
6447
  var _c = _vm._self._c || _h;
6421
- return _c("div", { attrs: { "id": "venus-component-task-cart" } }, [_c("main-modal", { ref: "mainModal", attrs: { "task-setting-page-url": _vm.taskSettingPageUrl, "tempTask": _vm.tempTask, "newTaskVisible": _vm.newTaskVisible, "reviewModalVisible": _vm.reviewModalVisible, "added-tasks": _vm.addedTasks, "law-firm-id": _vm.lawFirmId, "visible": _vm.visible }, on: { "update:tempTask": function($event) {
6448
+ return _c("div", { attrs: { "id": "venus-component-task-cart" } }, [_c("main-modal", { ref: "mainModal", attrs: { "task-setting-page-url": _vm.taskSettingPageUrl, "tempTask": _vm.tempTask, "newTaskVisible": _vm.newTaskVisible, "reviewModalVisible": _vm.reviewModalVisible, "added-tasks": _vm.addedTasks, "law-firm-id": _vm.lawFirmId, "visible": _vm.visible, "show-page": _vm.pageMode }, on: { "update:tempTask": function($event) {
6422
6449
  _vm.tempTask = $event;
6423
6450
  }, "update:temp-task": function($event) {
6424
6451
  _vm.tempTask = $event;
@@ -6436,7 +6463,13 @@ var render$1 = function() {
6436
6463
  _vm.addedTasks = $event;
6437
6464
  }, "update:visible": function($event) {
6438
6465
  return _vm.$emit("update:visible", $event);
6439
- } } }), _c("review-modal", { ref: "reviewModal", attrs: { "tempTask": _vm.tempTask, "visible": _vm.reviewModalVisible, "newTaskVisible": _vm.newTaskVisible, "added-tasks": _vm.addedTasks, "review-text": _vm.reviewText, "showSendEmail": _vm.showSendEmail, "sendEmail": _vm.sendEmail, "allow-clear": _vm.allowClear }, on: { "update:tempTask": function($event) {
6466
+ }, "edit": _vm.showEdit }, scopedSlots: _vm._u([{ key: "default", fn: function(ref2) {
6467
+ var loading = ref2.loading;
6468
+ var dataSource = ref2.dataSource;
6469
+ var pagination = ref2.pagination;
6470
+ var changePagination = ref2.changePagination;
6471
+ return [_vm._t("table", null, { "loading": loading, "dataSource": dataSource, "pagination": pagination, "changePagination": changePagination })];
6472
+ } }], null, true) }), _c("review-modal", { ref: "reviewModal", attrs: { "tempTask": _vm.tempTask, "visible": _vm.reviewModalVisible, "newTaskVisible": _vm.newTaskVisible, "added-tasks": _vm.addedTasks, "review-text": _vm.reviewText, "showSendEmail": _vm.showSendEmail, "sendEmail": _vm.sendEmail, "allow-clear": _vm.allowClear }, on: { "update:tempTask": function($event) {
6440
6473
  _vm.tempTask = $event;
6441
6474
  }, "update:temp-task": function($event) {
6442
6475
  _vm.tempTask = $event;
@@ -6463,7 +6496,7 @@ var render$1 = function() {
6463
6496
  var staticRenderFns$1 = [];
6464
6497
  var index_vue_vue_type_style_index_0_scoped_true_lang = "";
6465
6498
  const __cssModules$1 = {};
6466
- var __component__$1 = /* @__PURE__ */ normalizeComponent(__vue2_script$1, render$1, staticRenderFns$1, false, __vue2_injectStyles$1, "87f9c22a", null, null);
6499
+ var __component__$1 = /* @__PURE__ */ normalizeComponent(__vue2_script$1, render$1, staticRenderFns$1, false, __vue2_injectStyles$1, "2b41ba2b", null, null);
6467
6500
  function __vue2_injectStyles$1(context) {
6468
6501
  for (let o in __cssModules$1) {
6469
6502
  this[o] = __cssModules$1[o];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ailaw/venus",
3
- "version": "0.3.10",
3
+ "version": "0.3.14",
4
4
  "files": [
5
5
  "dist"
6
6
  ],