@ailaw/venus 0.4.3 → 0.4.4

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-18554545]{word-break:keep-all;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}.container[data-v-2e5f9951]{border:1px solid #cccccc;border-radius:6px;padding:0 4px;min-height:30px;cursor:pointer}.taskTemplateInline[data-v-c3a26010]{float:right}a.taskTemplateInline[data-v-c3a26010]{margin-left:10px}div.taskTemplateInline[data-v-c3a26010]{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)}.container[data-v-17f08d86]{border:1px solid #cccccc;border-radius:6px;padding:0 4px;min-height:30px;cursor:pointer}.tags-container[data-v-18554545]{word-break:keep-all;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}.taskTemplateInline[data-v-c3a26010]{float:right}a.taskTemplateInline[data-v-c3a26010]{margin-left:10px}div.taskTemplateInline[data-v-c3a26010]{margin-top:5px!important}
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, computed, toRefs, getCurrentScope, shallowRef } from "vue-demi";
21
- import { Select, Modal, Form, Input, Checkbox, Divider, Button, Tag, Tooltip, Upload, Row, Col, Radio, Popconfirm, Table, Badge, Card, message } from "ant-design-vue";
21
+ import { Select, Modal, Form, Input, Checkbox, Divider, Button, Upload, Tag, Tooltip, 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 } from "ramda";
@@ -707,122 +707,6 @@ var index$2 = [
707
707
  i864,
708
708
  i864a
709
709
  ];
710
- var AssigneeTypes;
711
- (function(AssigneeTypes2) {
712
- AssigneeTypes2[AssigneeTypes2["EMPTY_DEFAULT"] = 4] = "EMPTY_DEFAULT";
713
- AssigneeTypes2[AssigneeTypes2["BENEFICIARY"] = 1] = "BENEFICIARY";
714
- AssigneeTypes2[AssigneeTypes2["PETITIONER"] = 2] = "PETITIONER";
715
- AssigneeTypes2[AssigneeTypes2["ATTORNEY"] = 3] = "ATTORNEY";
716
- })(AssigneeTypes || (AssigneeTypes = {}));
717
- var AssigneeTypesText;
718
- (function(AssigneeTypesText2) {
719
- AssigneeTypesText2["EMPTY_DEFAULT"] = "message.none";
720
- AssigneeTypesText2["BENEFICIARY"] = "message.beneficiary";
721
- AssigneeTypesText2["PETITIONER"] = "message.petitioner";
722
- AssigneeTypesText2["ATTORNEY"] = "message.attorney";
723
- })(AssigneeTypesText || (AssigneeTypesText = {}));
724
- var SortOrder;
725
- (function(SortOrder2) {
726
- SortOrder2["default"] = "DEFAULT";
727
- SortOrder2["desc"] = "DESC";
728
- SortOrder2["asc"] = "ASC";
729
- })(SortOrder || (SortOrder = {}));
730
- var ResponseCode;
731
- (function(ResponseCode2) {
732
- ResponseCode2["success"] = "SUCCESS";
733
- ResponseCode2["failed"] = "FAILED";
734
- })(ResponseCode || (ResponseCode = {}));
735
- var __vue2_script$b = defineComponent({
736
- components: {
737
- AntTag: Tag
738
- },
739
- props: {
740
- assigneeType: {
741
- type: String
742
- }
743
- },
744
- setup() {
745
- const tagColor = (key) => ["cyan", "orange", "blue", "purple"][AssigneeTypes[key]];
746
- return {
747
- AssigneeTypesText,
748
- tagColor
749
- };
750
- }
751
- });
752
- var render$b = function() {
753
- var _vm = this;
754
- var _h = _vm.$createElement;
755
- var _c = _vm._self._c || _h;
756
- return _c("ant-tag", { attrs: { "color": _vm.tagColor(_vm.assigneeType) } }, [_vm._v(" " + _vm._s(_vm.$t(_vm.AssigneeTypesText[_vm.assigneeType])) + " ")]);
757
- };
758
- var staticRenderFns$b = [];
759
- var index_vue_vue_type_style_index_0_scoped_true_lang$5 = "";
760
- const __cssModules$b = {};
761
- var __component__$b = /* @__PURE__ */ normalizeComponent(__vue2_script$b, render$b, staticRenderFns$b, false, __vue2_injectStyles$b, "145c1099", null, null);
762
- function __vue2_injectStyles$b(context) {
763
- for (let o in __cssModules$b) {
764
- this[o] = __cssModules$b[o];
765
- }
766
- }
767
- var AssigneeTag = /* @__PURE__ */ function() {
768
- return __component__$b.exports;
769
- }();
770
- var __vue2_script$a = defineComponent({
771
- name: "index",
772
- components: {
773
- AntTooltip: Tooltip
774
- },
775
- props: {
776
- placement: {
777
- type: String,
778
- default: "left"
779
- },
780
- tags: {
781
- type: Array
782
- },
783
- maxWidth: {
784
- type: Number,
785
- default: 100
786
- }
787
- }
788
- });
789
- var render$a = function() {
790
- var _vm = this;
791
- var _h = _vm.$createElement;
792
- var _c = _vm._self._c || _h;
793
- return _c("ant-tooltip", { attrs: { "placement": _vm.placement, "title": _vm.tags ? _vm.tags.join(", ") : "-" } }, [_c("div", { staticClass: "tags-container", style: "max-width:" + _vm.maxWidth + "px" }, [_c("span", [_vm._v(_vm._s(_vm.tags ? _vm.tags.join(", ") : "-"))])])]);
794
- };
795
- var staticRenderFns$a = [];
796
- var index_vue_vue_type_style_index_0_scoped_true_lang$4 = "";
797
- const __cssModules$a = {};
798
- var __component__$a = /* @__PURE__ */ normalizeComponent(__vue2_script$a, render$a, staticRenderFns$a, false, __vue2_injectStyles$a, "18554545", null, null);
799
- function __vue2_injectStyles$a(context) {
800
- for (let o in __cssModules$a) {
801
- this[o] = __cssModules$a[o];
802
- }
803
- }
804
- var TagsWithTooltip = /* @__PURE__ */ function() {
805
- return __component__$a.exports;
806
- }();
807
- var TaskTypes;
808
- (function(TaskTypes2) {
809
- TaskTypes2["clientUpload"] = "Client Upload";
810
- TaskTypes2["clientReview"] = "For Client Review";
811
- TaskTypes2["worksheet"] = "Worksheet";
812
- })(TaskTypes || (TaskTypes = {}));
813
- var TaskTemplateSortBy;
814
- (function(TaskTemplateSortBy2) {
815
- TaskTemplateSortBy2["default"] = "DEFAULT";
816
- TaskTemplateSortBy2["id"] = "TASKTEMPLATEID";
817
- TaskTemplateSortBy2["name"] = "TASKNAME";
818
- TaskTemplateSortBy2["type"] = "TASKTYPE";
819
- TaskTemplateSortBy2["isEmployee"] = "ISEMPLOYEE";
820
- })(TaskTemplateSortBy || (TaskTemplateSortBy = {}));
821
- var useChangeVal = (props, emit) => (k, v) => {
822
- emit("update:value", __spreadProps(__spreadValues({}, props.value), {
823
- [k]: v
824
- }));
825
- };
826
710
  const acceptableFormats = [
827
711
  ".rar",
828
712
  ".zip",
@@ -833,7 +717,7 @@ const acceptableFormats = [
833
717
  ".jpeg",
834
718
  ".png"
835
719
  ];
836
- var __vue2_script$9 = defineComponent({
720
+ var __vue2_script$b = defineComponent({
837
721
  name: "aFileUploader",
838
722
  components: { AntUpload: Upload, AntTag: Tag, AntModal: Modal },
839
723
  props: {
@@ -847,6 +731,10 @@ var __vue2_script$9 = defineComponent({
847
731
  },
848
732
  disabled: {
849
733
  type: Boolean
734
+ },
735
+ previewMode: {
736
+ type: Boolean,
737
+ default: false
850
738
  }
851
739
  },
852
740
  setup(props, { emit }) {
@@ -919,32 +807,148 @@ var __vue2_script$9 = defineComponent({
919
807
  };
920
808
  }
921
809
  });
922
- var render$9 = function() {
810
+ var render$b = function() {
923
811
  var _vm = this;
924
812
  var _h = _vm.$createElement;
925
813
  var _c = _vm._self._c || _h;
926
- return _c("div", { staticClass: "container" }, [_c("ant-modal", { attrs: { "visible": !!_vm.previewImage, "footer": null }, on: { "cancel": function($event) {
814
+ return _c("div", { class: { container: !_vm.previewMode } }, [_c("ant-modal", { attrs: { "visible": !!_vm.previewImage, "footer": null }, on: { "cancel": function($event) {
927
815
  _vm.previewImage = null;
928
- } } }, [_c("img", { staticStyle: { "width": "100%" }, attrs: { "src": _vm.previewImage } })]), _c("ant-upload", { staticStyle: { "display": "inline" }, attrs: { "disabled": _vm.disabled || _vm.loading, "before-upload": _vm.beforeUpload, "action": "javascript:;", "fileList": [], "accept": _vm.acceptableFormats.join(",") } }, [_c("ant-tag", [_vm._v(" " + _vm._s(_vm.$t("message.selectFile")) + " ")]), _vm.value.length ? _c("div", { staticStyle: { "display": "inline-block" } }, _vm._l(_vm.value, function(file) {
816
+ } } }, [_c("img", { staticStyle: { "width": "100%" }, attrs: { "src": _vm.previewImage } })]), _c("ant-upload", { staticStyle: { "display": "inline" }, attrs: { "disabled": _vm.disabled || _vm.loading, "before-upload": _vm.beforeUpload, "action": "javascript:;", "fileList": [], "accept": _vm.acceptableFormats.join(",") } }, [!_vm.previewMode ? _c("ant-tag", [_vm._v(" " + _vm._s(_vm.$t("message.selectFile")) + " ")]) : _vm._e(), _vm.value.length ? _c("div", { staticStyle: { "display": "inline-block" } }, _vm._l(_vm.value, function(file) {
929
817
  return _c("ant-tag", { key: file.id, attrs: { "closable": "" }, on: { "close": function($event) {
930
818
  return _vm.remove(file.id);
931
- } } }, [_c("a", { attrs: { "href": file.link, "target": "_blank" }, on: { "click": function($event) {
819
+ } } }, [_c("a", { staticStyle: { "color": "#111" }, attrs: { "href": file.link, "target": "_blank" }, on: { "click": function($event) {
932
820
  return _vm.clickItem(file, $event);
933
821
  } } }, [_vm._v(" " + _vm._s(file.name) + " ")])]);
934
- }), 1) : _c("span", { staticStyle: { "color": "#ccc" } }, [_vm._v(_vm._s(_vm.acceptableFormats.join(" ")))])], 1)], 1);
822
+ }), 1) : _vm._e(), !_vm.previewMode ? _c("span", { directives: [{ name: "else", rawName: "v-else" }], staticStyle: { "color": "#ccc" } }, [_vm._v(_vm._s(_vm.acceptableFormats.join(" ")))]) : _vm._e()], 1)], 1);
823
+ };
824
+ var staticRenderFns$b = [];
825
+ var index_vue_vue_type_style_index_0_scoped_true_lang$6 = "";
826
+ const __cssModules$b = {};
827
+ var __component__$b = /* @__PURE__ */ normalizeComponent(__vue2_script$b, render$b, staticRenderFns$b, false, __vue2_injectStyles$b, "17f08d86", null, null);
828
+ function __vue2_injectStyles$b(context) {
829
+ for (let o in __cssModules$b) {
830
+ this[o] = __cssModules$b[o];
831
+ }
832
+ }
833
+ var AFileUploader = /* @__PURE__ */ function() {
834
+ return __component__$b.exports;
835
+ }();
836
+ var AssigneeTypes;
837
+ (function(AssigneeTypes2) {
838
+ AssigneeTypes2[AssigneeTypes2["EMPTY_DEFAULT"] = 4] = "EMPTY_DEFAULT";
839
+ AssigneeTypes2[AssigneeTypes2["BENEFICIARY"] = 1] = "BENEFICIARY";
840
+ AssigneeTypes2[AssigneeTypes2["PETITIONER"] = 2] = "PETITIONER";
841
+ AssigneeTypes2[AssigneeTypes2["ATTORNEY"] = 3] = "ATTORNEY";
842
+ })(AssigneeTypes || (AssigneeTypes = {}));
843
+ var AssigneeTypesText;
844
+ (function(AssigneeTypesText2) {
845
+ AssigneeTypesText2["EMPTY_DEFAULT"] = "message.none";
846
+ AssigneeTypesText2["BENEFICIARY"] = "message.beneficiary";
847
+ AssigneeTypesText2["PETITIONER"] = "message.petitioner";
848
+ AssigneeTypesText2["ATTORNEY"] = "message.attorney";
849
+ })(AssigneeTypesText || (AssigneeTypesText = {}));
850
+ var SortOrder;
851
+ (function(SortOrder2) {
852
+ SortOrder2["default"] = "DEFAULT";
853
+ SortOrder2["desc"] = "DESC";
854
+ SortOrder2["asc"] = "ASC";
855
+ })(SortOrder || (SortOrder = {}));
856
+ var ResponseCode;
857
+ (function(ResponseCode2) {
858
+ ResponseCode2["success"] = "SUCCESS";
859
+ ResponseCode2["failed"] = "FAILED";
860
+ })(ResponseCode || (ResponseCode = {}));
861
+ var __vue2_script$a = defineComponent({
862
+ components: {
863
+ AntTag: Tag
864
+ },
865
+ props: {
866
+ assigneeType: {
867
+ type: String
868
+ }
869
+ },
870
+ setup() {
871
+ const tagColor = (key) => ["cyan", "orange", "blue", "purple"][AssigneeTypes[key]];
872
+ return {
873
+ AssigneeTypesText,
874
+ tagColor
875
+ };
876
+ }
877
+ });
878
+ var render$a = function() {
879
+ var _vm = this;
880
+ var _h = _vm.$createElement;
881
+ var _c = _vm._self._c || _h;
882
+ return _c("ant-tag", { attrs: { "color": _vm.tagColor(_vm.assigneeType) } }, [_vm._v(" " + _vm._s(_vm.$t(_vm.AssigneeTypesText[_vm.assigneeType])) + " ")]);
883
+ };
884
+ var staticRenderFns$a = [];
885
+ var index_vue_vue_type_style_index_0_scoped_true_lang$5 = "";
886
+ const __cssModules$a = {};
887
+ var __component__$a = /* @__PURE__ */ normalizeComponent(__vue2_script$a, render$a, staticRenderFns$a, false, __vue2_injectStyles$a, "145c1099", null, null);
888
+ function __vue2_injectStyles$a(context) {
889
+ for (let o in __cssModules$a) {
890
+ this[o] = __cssModules$a[o];
891
+ }
892
+ }
893
+ var AssigneeTag = /* @__PURE__ */ function() {
894
+ return __component__$a.exports;
895
+ }();
896
+ var __vue2_script$9 = defineComponent({
897
+ name: "index",
898
+ components: {
899
+ AntTooltip: Tooltip
900
+ },
901
+ props: {
902
+ placement: {
903
+ type: String,
904
+ default: "left"
905
+ },
906
+ tags: {
907
+ type: Array
908
+ },
909
+ maxWidth: {
910
+ type: Number,
911
+ default: 100
912
+ }
913
+ }
914
+ });
915
+ var render$9 = function() {
916
+ var _vm = this;
917
+ var _h = _vm.$createElement;
918
+ var _c = _vm._self._c || _h;
919
+ return _c("ant-tooltip", { attrs: { "placement": _vm.placement, "title": _vm.tags ? _vm.tags.join(", ") : "-" } }, [_c("div", { staticClass: "tags-container", style: "max-width:" + _vm.maxWidth + "px" }, [_c("span", [_vm._v(_vm._s(_vm.tags ? _vm.tags.join(", ") : "-"))])])]);
935
920
  };
936
921
  var staticRenderFns$9 = [];
937
- var aFileUploader_vue_vue_type_style_index_0_scoped_true_lang = "";
922
+ var index_vue_vue_type_style_index_0_scoped_true_lang$4 = "";
938
923
  const __cssModules$9 = {};
939
- var __component__$9 = /* @__PURE__ */ normalizeComponent(__vue2_script$9, render$9, staticRenderFns$9, false, __vue2_injectStyles$9, "2e5f9951", null, null);
924
+ var __component__$9 = /* @__PURE__ */ normalizeComponent(__vue2_script$9, render$9, staticRenderFns$9, false, __vue2_injectStyles$9, "18554545", null, null);
940
925
  function __vue2_injectStyles$9(context) {
941
926
  for (let o in __cssModules$9) {
942
927
  this[o] = __cssModules$9[o];
943
928
  }
944
929
  }
945
- var AFileUploader = /* @__PURE__ */ function() {
930
+ var TagsWithTooltip = /* @__PURE__ */ function() {
946
931
  return __component__$9.exports;
947
932
  }();
933
+ var TaskTypes;
934
+ (function(TaskTypes2) {
935
+ TaskTypes2["clientUpload"] = "Client Upload";
936
+ TaskTypes2["clientReview"] = "For Client Review";
937
+ TaskTypes2["worksheet"] = "Worksheet";
938
+ })(TaskTypes || (TaskTypes = {}));
939
+ var TaskTemplateSortBy;
940
+ (function(TaskTemplateSortBy2) {
941
+ TaskTemplateSortBy2["default"] = "DEFAULT";
942
+ TaskTemplateSortBy2["id"] = "TASKTEMPLATEID";
943
+ TaskTemplateSortBy2["name"] = "TASKNAME";
944
+ TaskTemplateSortBy2["type"] = "TASKTYPE";
945
+ TaskTemplateSortBy2["isEmployee"] = "ISEMPLOYEE";
946
+ })(TaskTemplateSortBy || (TaskTemplateSortBy = {}));
947
+ var useChangeVal = (props, emit) => (k, v) => {
948
+ emit("update:value", __spreadProps(__spreadValues({}, props.value), {
949
+ [k]: v
950
+ }));
951
+ };
948
952
  var refactorParams = (record) => {
949
953
  var _a;
950
954
  return {
@@ -1068,7 +1072,7 @@ var render$8 = function() {
1068
1072
  var staticRenderFns$8 = [];
1069
1073
  var index_vue_vue_type_style_index_0_scoped_true_lang$3 = "";
1070
1074
  const __cssModules$8 = {};
1071
- var __component__$8 = /* @__PURE__ */ normalizeComponent(__vue2_script$8, render$8, staticRenderFns$8, false, __vue2_injectStyles$8, "119be748", null, null);
1075
+ var __component__$8 = /* @__PURE__ */ normalizeComponent(__vue2_script$8, render$8, staticRenderFns$8, false, __vue2_injectStyles$8, "58dbc3e8", null, null);
1072
1076
  function __vue2_injectStyles$8(context) {
1073
1077
  for (let o in __cssModules$8) {
1074
1078
  this[o] = __cssModules$8[o];
@@ -1189,7 +1193,7 @@ var render$7 = function() {
1189
1193
  var staticRenderFns$7 = [];
1190
1194
  var index_vue_vue_type_style_index_0_scoped_true_lang$2 = "";
1191
1195
  const __cssModules$7 = {};
1192
- var __component__$7 = /* @__PURE__ */ normalizeComponent(__vue2_script$7, render$7, staticRenderFns$7, false, __vue2_injectStyles$7, "26be016f", null, null);
1196
+ var __component__$7 = /* @__PURE__ */ normalizeComponent(__vue2_script$7, render$7, staticRenderFns$7, false, __vue2_injectStyles$7, "2617d5ac", null, null);
1193
1197
  function __vue2_injectStyles$7(context) {
1194
1198
  for (let o in __cssModules$7) {
1195
1199
  this[o] = __cssModules$7[o];
@@ -2071,4 +2075,4 @@ function __vue2_injectStyles(context) {
2071
2075
  var index = /* @__PURE__ */ function() {
2072
2076
  return __component__.exports;
2073
2077
  }();
2074
- export { AssigneeTag, NewTask, index$3 as ProfileSelect, TagsWithTooltip, index$1 as TaskCart, TaskForm, TaskTable, TaskTemplateFilter, index as TestComponent, index$2 as forms, getLanguageMessage, refactorParams as refactorTaskTemplateParams, submit as submitTaskTemplate, useCreateTaskTemplate, useMutateTaskTemplate, useSearchTaskConditions, useSearchTaskTemplates };
2078
+ export { AssigneeTag, AFileUploader as FileUploader, NewTask, index$3 as ProfileSelect, TagsWithTooltip, index$1 as TaskCart, TaskForm, TaskTable, TaskTemplateFilter, index as TestComponent, index$2 as forms, getLanguageMessage, refactorParams as refactorTaskTemplateParams, submit as submitTaskTemplate, useCreateTaskTemplate, useMutateTaskTemplate, useSearchTaskConditions, useSearchTaskTemplates };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ailaw/venus",
3
- "version": "0.4.3",
3
+ "version": "0.4.4",
4
4
  "files": [
5
5
  "dist"
6
6
  ],