@ailaw/venus 1.306.0 → 1.307.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/style.css +1 -1
- package/dist/venus.es.js +445 -4
- package/package.json +2 -1
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}[hidden]{display:none}*,: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}.mr-2{margin-right:.5rem}.mb-0{margin-bottom:0}.mb-5{margin-bottom:1.25rem}.ml-2{margin-left:.5rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.table{display:table}.contents{display:contents}.hidden{display:none}.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)}}.cursor-pointer{cursor:pointer}.items-center{align-items:center}.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)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.rounded{border-radius:.25rem}.border{border-width:1px}.border-solid{border-style:solid}.border-light-purple{--tw-border-opacity: 1;border-color:rgba(192,150,250,var(--tw-border-opacity))}.border-light-blue{--tw-border-opacity: 1;border-color:rgba(145,213,255,var(--tw-border-opacity))}.bg-purple{--tw-bg-opacity: 1;background-color:rgba(249,240,255,var(--tw-bg-opacity))}.bg-blue{--tw-bg-opacity: 1;background-color:rgba(230,247,255,var(--tw-bg-opacity))}.p-4{padding:1rem}.px-2{padding-left:.5rem;padding-right:.5rem}.pt-3{padding-top:.75rem}.pt-3\.5{padding-top:.875rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.font-bold{font-weight:700}.capitalize{text-transform:capitalize}.leading-5{line-height:1.25rem}.text-secondary{--tw-text-opacity: 1;color:rgba(102,102,102,var(--tw-text-opacity))}.text-smart{--tw-text-opacity: 1;color:rgba(114,46,209,var(--tw-text-opacity))}.text-classic{--tw-text-opacity: 1;color:rgba(24,144,255,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)}.btn-divider[data-v-20a86d10]{margin-bottom:0!important;margin-top:12px!important}.beta[data-v-1114aea6]{line-height:20px;border-radius:15px;background-color:red;color:#fff;padding:0 3.5px;margin:0 5px}.min-w-80[data-v-72ef9bd2]{min-width:320px}.ant-popover{z-index:9999!important}.ant-popover .ant-popover-inner-content{padding:8px 16px}.container[data-v-
|
|
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}[hidden]{display:none}*,: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}.mr-2{margin-right:.5rem}.mb-0{margin-bottom:0}.mb-5{margin-bottom:1.25rem}.ml-2{margin-left:.5rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.table{display:table}.contents{display:contents}.hidden{display:none}.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)}}.cursor-pointer{cursor:pointer}.items-center{align-items:center}.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)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.rounded{border-radius:.25rem}.border{border-width:1px}.border-solid{border-style:solid}.border-light-purple{--tw-border-opacity: 1;border-color:rgba(192,150,250,var(--tw-border-opacity))}.border-light-blue{--tw-border-opacity: 1;border-color:rgba(145,213,255,var(--tw-border-opacity))}.bg-purple{--tw-bg-opacity: 1;background-color:rgba(249,240,255,var(--tw-bg-opacity))}.bg-blue{--tw-bg-opacity: 1;background-color:rgba(230,247,255,var(--tw-bg-opacity))}.p-4{padding:1rem}.px-2{padding-left:.5rem;padding-right:.5rem}.pt-3{padding-top:.75rem}.pt-3\.5{padding-top:.875rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.font-bold{font-weight:700}.capitalize{text-transform:capitalize}.leading-5{line-height:1.25rem}.text-secondary{--tw-text-opacity: 1;color:rgba(102,102,102,var(--tw-text-opacity))}.text-smart{--tw-text-opacity: 1;color:rgba(114,46,209,var(--tw-text-opacity))}.text-classic{--tw-text-opacity: 1;color:rgba(24,144,255,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)}.btn-divider[data-v-20a86d10]{margin-bottom:0!important;margin-top:12px!important}.beta[data-v-1114aea6]{line-height:20px;border-radius:15px;background-color:red;color:#fff;padding:0 3.5px;margin:0 5px}.min-w-80[data-v-72ef9bd2]{min-width:320px}.ant-popover{z-index:9999!important}.ant-popover .ant-popover-inner-content{padding:8px 16px}.container[data-v-79f32c52]{border:1px solid #cccccc;border-radius:6px;padding:0 4px;min-height:30px;cursor:pointer}.block[data-v-79f32c52]{display:block}.tags-container[data-v-18554545]{word-break:keep-all;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}.taskTemplateInline[data-v-c5d917d8]{float:right}a.taskTemplateInline[data-v-c5d917d8]{margin-left:10px}div.taskTemplateInline[data-v-c5d917d8]{margin-top:5px!important}.task-cart-main-modal[data-v-697d89e6] .ant-modal-body{padding-bottom:0}
|
package/dist/venus.es.js
CHANGED
|
@@ -21,7 +21,10 @@ import { defineComponent, ref, watch, toRefs, reactive, computed, getCurrentScop
|
|
|
21
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";
|
|
22
22
|
import { useQuery, useResult, useMutation, useApolloClient } from "@vue/apollo-composable";
|
|
23
23
|
import gql from "graphql-tag";
|
|
24
|
+
import * as R from "ramda";
|
|
24
25
|
import { path, uniqBy, prop, sort, omit } from "ramda";
|
|
26
|
+
import "whatwg-fetch";
|
|
27
|
+
import JSZip from "jszip";
|
|
25
28
|
var index$5 = "";
|
|
26
29
|
function __variableDynamicImportRuntime0__$1(path2) {
|
|
27
30
|
switch (path2) {
|
|
@@ -1690,6 +1693,403 @@ const formRecords = {
|
|
|
1690
1693
|
eoir33ic
|
|
1691
1694
|
};
|
|
1692
1695
|
var index$2 = Object.values(formRecords);
|
|
1696
|
+
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
1697
|
+
var nprogress = { exports: {} };
|
|
1698
|
+
/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
|
|
1699
|
+
* @license MIT */
|
|
1700
|
+
(function(module, exports) {
|
|
1701
|
+
(function(root, factory) {
|
|
1702
|
+
{
|
|
1703
|
+
module.exports = factory();
|
|
1704
|
+
}
|
|
1705
|
+
})(commonjsGlobal, function() {
|
|
1706
|
+
var NProgress = {};
|
|
1707
|
+
NProgress.version = "0.2.0";
|
|
1708
|
+
var Settings = NProgress.settings = {
|
|
1709
|
+
minimum: 0.08,
|
|
1710
|
+
easing: "ease",
|
|
1711
|
+
positionUsing: "",
|
|
1712
|
+
speed: 200,
|
|
1713
|
+
trickle: true,
|
|
1714
|
+
trickleRate: 0.02,
|
|
1715
|
+
trickleSpeed: 800,
|
|
1716
|
+
showSpinner: true,
|
|
1717
|
+
barSelector: '[role="bar"]',
|
|
1718
|
+
spinnerSelector: '[role="spinner"]',
|
|
1719
|
+
parent: "body",
|
|
1720
|
+
template: '<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'
|
|
1721
|
+
};
|
|
1722
|
+
NProgress.configure = function(options) {
|
|
1723
|
+
var key, value;
|
|
1724
|
+
for (key in options) {
|
|
1725
|
+
value = options[key];
|
|
1726
|
+
if (value !== void 0 && options.hasOwnProperty(key))
|
|
1727
|
+
Settings[key] = value;
|
|
1728
|
+
}
|
|
1729
|
+
return this;
|
|
1730
|
+
};
|
|
1731
|
+
NProgress.status = null;
|
|
1732
|
+
NProgress.set = function(n) {
|
|
1733
|
+
var started = NProgress.isStarted();
|
|
1734
|
+
n = clamp(n, Settings.minimum, 1);
|
|
1735
|
+
NProgress.status = n === 1 ? null : n;
|
|
1736
|
+
var progress = NProgress.render(!started), bar = progress.querySelector(Settings.barSelector), speed = Settings.speed, ease = Settings.easing;
|
|
1737
|
+
progress.offsetWidth;
|
|
1738
|
+
queue(function(next) {
|
|
1739
|
+
if (Settings.positionUsing === "")
|
|
1740
|
+
Settings.positionUsing = NProgress.getPositioningCSS();
|
|
1741
|
+
css(bar, barPositionCSS(n, speed, ease));
|
|
1742
|
+
if (n === 1) {
|
|
1743
|
+
css(progress, {
|
|
1744
|
+
transition: "none",
|
|
1745
|
+
opacity: 1
|
|
1746
|
+
});
|
|
1747
|
+
progress.offsetWidth;
|
|
1748
|
+
setTimeout(function() {
|
|
1749
|
+
css(progress, {
|
|
1750
|
+
transition: "all " + speed + "ms linear",
|
|
1751
|
+
opacity: 0
|
|
1752
|
+
});
|
|
1753
|
+
setTimeout(function() {
|
|
1754
|
+
NProgress.remove();
|
|
1755
|
+
next();
|
|
1756
|
+
}, speed);
|
|
1757
|
+
}, speed);
|
|
1758
|
+
} else {
|
|
1759
|
+
setTimeout(next, speed);
|
|
1760
|
+
}
|
|
1761
|
+
});
|
|
1762
|
+
return this;
|
|
1763
|
+
};
|
|
1764
|
+
NProgress.isStarted = function() {
|
|
1765
|
+
return typeof NProgress.status === "number";
|
|
1766
|
+
};
|
|
1767
|
+
NProgress.start = function() {
|
|
1768
|
+
if (!NProgress.status)
|
|
1769
|
+
NProgress.set(0);
|
|
1770
|
+
var work = function() {
|
|
1771
|
+
setTimeout(function() {
|
|
1772
|
+
if (!NProgress.status)
|
|
1773
|
+
return;
|
|
1774
|
+
NProgress.trickle();
|
|
1775
|
+
work();
|
|
1776
|
+
}, Settings.trickleSpeed);
|
|
1777
|
+
};
|
|
1778
|
+
if (Settings.trickle)
|
|
1779
|
+
work();
|
|
1780
|
+
return this;
|
|
1781
|
+
};
|
|
1782
|
+
NProgress.done = function(force) {
|
|
1783
|
+
if (!force && !NProgress.status)
|
|
1784
|
+
return this;
|
|
1785
|
+
return NProgress.inc(0.3 + 0.5 * Math.random()).set(1);
|
|
1786
|
+
};
|
|
1787
|
+
NProgress.inc = function(amount) {
|
|
1788
|
+
var n = NProgress.status;
|
|
1789
|
+
if (!n) {
|
|
1790
|
+
return NProgress.start();
|
|
1791
|
+
} else {
|
|
1792
|
+
if (typeof amount !== "number") {
|
|
1793
|
+
amount = (1 - n) * clamp(Math.random() * n, 0.1, 0.95);
|
|
1794
|
+
}
|
|
1795
|
+
n = clamp(n + amount, 0, 0.994);
|
|
1796
|
+
return NProgress.set(n);
|
|
1797
|
+
}
|
|
1798
|
+
};
|
|
1799
|
+
NProgress.trickle = function() {
|
|
1800
|
+
return NProgress.inc(Math.random() * Settings.trickleRate);
|
|
1801
|
+
};
|
|
1802
|
+
(function() {
|
|
1803
|
+
var initial = 0, current = 0;
|
|
1804
|
+
NProgress.promise = function($promise) {
|
|
1805
|
+
if (!$promise || $promise.state() === "resolved") {
|
|
1806
|
+
return this;
|
|
1807
|
+
}
|
|
1808
|
+
if (current === 0) {
|
|
1809
|
+
NProgress.start();
|
|
1810
|
+
}
|
|
1811
|
+
initial++;
|
|
1812
|
+
current++;
|
|
1813
|
+
$promise.always(function() {
|
|
1814
|
+
current--;
|
|
1815
|
+
if (current === 0) {
|
|
1816
|
+
initial = 0;
|
|
1817
|
+
NProgress.done();
|
|
1818
|
+
} else {
|
|
1819
|
+
NProgress.set((initial - current) / initial);
|
|
1820
|
+
}
|
|
1821
|
+
});
|
|
1822
|
+
return this;
|
|
1823
|
+
};
|
|
1824
|
+
})();
|
|
1825
|
+
NProgress.render = function(fromStart) {
|
|
1826
|
+
if (NProgress.isRendered())
|
|
1827
|
+
return document.getElementById("nprogress");
|
|
1828
|
+
addClass(document.documentElement, "nprogress-busy");
|
|
1829
|
+
var progress = document.createElement("div");
|
|
1830
|
+
progress.id = "nprogress";
|
|
1831
|
+
progress.innerHTML = Settings.template;
|
|
1832
|
+
var bar = progress.querySelector(Settings.barSelector), perc = fromStart ? "-100" : toBarPerc(NProgress.status || 0), parent = document.querySelector(Settings.parent), spinner;
|
|
1833
|
+
css(bar, {
|
|
1834
|
+
transition: "all 0 linear",
|
|
1835
|
+
transform: "translate3d(" + perc + "%,0,0)"
|
|
1836
|
+
});
|
|
1837
|
+
if (!Settings.showSpinner) {
|
|
1838
|
+
spinner = progress.querySelector(Settings.spinnerSelector);
|
|
1839
|
+
spinner && removeElement(spinner);
|
|
1840
|
+
}
|
|
1841
|
+
if (parent != document.body) {
|
|
1842
|
+
addClass(parent, "nprogress-custom-parent");
|
|
1843
|
+
}
|
|
1844
|
+
parent.appendChild(progress);
|
|
1845
|
+
return progress;
|
|
1846
|
+
};
|
|
1847
|
+
NProgress.remove = function() {
|
|
1848
|
+
removeClass(document.documentElement, "nprogress-busy");
|
|
1849
|
+
removeClass(document.querySelector(Settings.parent), "nprogress-custom-parent");
|
|
1850
|
+
var progress = document.getElementById("nprogress");
|
|
1851
|
+
progress && removeElement(progress);
|
|
1852
|
+
};
|
|
1853
|
+
NProgress.isRendered = function() {
|
|
1854
|
+
return !!document.getElementById("nprogress");
|
|
1855
|
+
};
|
|
1856
|
+
NProgress.getPositioningCSS = function() {
|
|
1857
|
+
var bodyStyle = document.body.style;
|
|
1858
|
+
var vendorPrefix = "WebkitTransform" in bodyStyle ? "Webkit" : "MozTransform" in bodyStyle ? "Moz" : "msTransform" in bodyStyle ? "ms" : "OTransform" in bodyStyle ? "O" : "";
|
|
1859
|
+
if (vendorPrefix + "Perspective" in bodyStyle) {
|
|
1860
|
+
return "translate3d";
|
|
1861
|
+
} else if (vendorPrefix + "Transform" in bodyStyle) {
|
|
1862
|
+
return "translate";
|
|
1863
|
+
} else {
|
|
1864
|
+
return "margin";
|
|
1865
|
+
}
|
|
1866
|
+
};
|
|
1867
|
+
function clamp(n, min, max) {
|
|
1868
|
+
if (n < min)
|
|
1869
|
+
return min;
|
|
1870
|
+
if (n > max)
|
|
1871
|
+
return max;
|
|
1872
|
+
return n;
|
|
1873
|
+
}
|
|
1874
|
+
function toBarPerc(n) {
|
|
1875
|
+
return (-1 + n) * 100;
|
|
1876
|
+
}
|
|
1877
|
+
function barPositionCSS(n, speed, ease) {
|
|
1878
|
+
var barCSS;
|
|
1879
|
+
if (Settings.positionUsing === "translate3d") {
|
|
1880
|
+
barCSS = { transform: "translate3d(" + toBarPerc(n) + "%,0,0)" };
|
|
1881
|
+
} else if (Settings.positionUsing === "translate") {
|
|
1882
|
+
barCSS = { transform: "translate(" + toBarPerc(n) + "%,0)" };
|
|
1883
|
+
} else {
|
|
1884
|
+
barCSS = { "margin-left": toBarPerc(n) + "%" };
|
|
1885
|
+
}
|
|
1886
|
+
barCSS.transition = "all " + speed + "ms " + ease;
|
|
1887
|
+
return barCSS;
|
|
1888
|
+
}
|
|
1889
|
+
var queue = function() {
|
|
1890
|
+
var pending = [];
|
|
1891
|
+
function next() {
|
|
1892
|
+
var fn = pending.shift();
|
|
1893
|
+
if (fn) {
|
|
1894
|
+
fn(next);
|
|
1895
|
+
}
|
|
1896
|
+
}
|
|
1897
|
+
return function(fn) {
|
|
1898
|
+
pending.push(fn);
|
|
1899
|
+
if (pending.length == 1)
|
|
1900
|
+
next();
|
|
1901
|
+
};
|
|
1902
|
+
}();
|
|
1903
|
+
var css = function() {
|
|
1904
|
+
var cssPrefixes = ["Webkit", "O", "Moz", "ms"], cssProps = {};
|
|
1905
|
+
function camelCase(string) {
|
|
1906
|
+
return string.replace(/^-ms-/, "ms-").replace(/-([\da-z])/gi, function(match, letter) {
|
|
1907
|
+
return letter.toUpperCase();
|
|
1908
|
+
});
|
|
1909
|
+
}
|
|
1910
|
+
function getVendorProp(name) {
|
|
1911
|
+
var style = document.body.style;
|
|
1912
|
+
if (name in style)
|
|
1913
|
+
return name;
|
|
1914
|
+
var i = cssPrefixes.length, capName = name.charAt(0).toUpperCase() + name.slice(1), vendorName;
|
|
1915
|
+
while (i--) {
|
|
1916
|
+
vendorName = cssPrefixes[i] + capName;
|
|
1917
|
+
if (vendorName in style)
|
|
1918
|
+
return vendorName;
|
|
1919
|
+
}
|
|
1920
|
+
return name;
|
|
1921
|
+
}
|
|
1922
|
+
function getStyleProp(name) {
|
|
1923
|
+
name = camelCase(name);
|
|
1924
|
+
return cssProps[name] || (cssProps[name] = getVendorProp(name));
|
|
1925
|
+
}
|
|
1926
|
+
function applyCss(element, prop2, value) {
|
|
1927
|
+
prop2 = getStyleProp(prop2);
|
|
1928
|
+
element.style[prop2] = value;
|
|
1929
|
+
}
|
|
1930
|
+
return function(element, properties) {
|
|
1931
|
+
var args = arguments, prop2, value;
|
|
1932
|
+
if (args.length == 2) {
|
|
1933
|
+
for (prop2 in properties) {
|
|
1934
|
+
value = properties[prop2];
|
|
1935
|
+
if (value !== void 0 && properties.hasOwnProperty(prop2))
|
|
1936
|
+
applyCss(element, prop2, value);
|
|
1937
|
+
}
|
|
1938
|
+
} else {
|
|
1939
|
+
applyCss(element, args[1], args[2]);
|
|
1940
|
+
}
|
|
1941
|
+
};
|
|
1942
|
+
}();
|
|
1943
|
+
function hasClass(element, name) {
|
|
1944
|
+
var list = typeof element == "string" ? element : classList(element);
|
|
1945
|
+
return list.indexOf(" " + name + " ") >= 0;
|
|
1946
|
+
}
|
|
1947
|
+
function addClass(element, name) {
|
|
1948
|
+
var oldList = classList(element), newList = oldList + name;
|
|
1949
|
+
if (hasClass(oldList, name))
|
|
1950
|
+
return;
|
|
1951
|
+
element.className = newList.substring(1);
|
|
1952
|
+
}
|
|
1953
|
+
function removeClass(element, name) {
|
|
1954
|
+
var oldList = classList(element), newList;
|
|
1955
|
+
if (!hasClass(element, name))
|
|
1956
|
+
return;
|
|
1957
|
+
newList = oldList.replace(" " + name + " ", " ");
|
|
1958
|
+
element.className = newList.substring(1, newList.length - 1);
|
|
1959
|
+
}
|
|
1960
|
+
function classList(element) {
|
|
1961
|
+
return (" " + (element.className || "") + " ").replace(/\s+/gi, " ");
|
|
1962
|
+
}
|
|
1963
|
+
function removeElement(element) {
|
|
1964
|
+
element && element.parentNode && element.parentNode.removeChild(element);
|
|
1965
|
+
}
|
|
1966
|
+
return NProgress;
|
|
1967
|
+
});
|
|
1968
|
+
})(nprogress);
|
|
1969
|
+
/*! js-cookie v3.0.1 | MIT */
|
|
1970
|
+
function assign(target) {
|
|
1971
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
1972
|
+
var source = arguments[i];
|
|
1973
|
+
for (var key in source) {
|
|
1974
|
+
target[key] = source[key];
|
|
1975
|
+
}
|
|
1976
|
+
}
|
|
1977
|
+
return target;
|
|
1978
|
+
}
|
|
1979
|
+
var defaultConverter = {
|
|
1980
|
+
read: function(value) {
|
|
1981
|
+
if (value[0] === '"') {
|
|
1982
|
+
value = value.slice(1, -1);
|
|
1983
|
+
}
|
|
1984
|
+
return value.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
|
|
1985
|
+
},
|
|
1986
|
+
write: function(value) {
|
|
1987
|
+
return encodeURIComponent(value).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g, decodeURIComponent);
|
|
1988
|
+
}
|
|
1989
|
+
};
|
|
1990
|
+
function init(converter, defaultAttributes) {
|
|
1991
|
+
function set(key, value, attributes) {
|
|
1992
|
+
if (typeof document === "undefined") {
|
|
1993
|
+
return;
|
|
1994
|
+
}
|
|
1995
|
+
attributes = assign({}, defaultAttributes, attributes);
|
|
1996
|
+
if (typeof attributes.expires === "number") {
|
|
1997
|
+
attributes.expires = new Date(Date.now() + attributes.expires * 864e5);
|
|
1998
|
+
}
|
|
1999
|
+
if (attributes.expires) {
|
|
2000
|
+
attributes.expires = attributes.expires.toUTCString();
|
|
2001
|
+
}
|
|
2002
|
+
key = encodeURIComponent(key).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
|
|
2003
|
+
var stringifiedAttributes = "";
|
|
2004
|
+
for (var attributeName in attributes) {
|
|
2005
|
+
if (!attributes[attributeName]) {
|
|
2006
|
+
continue;
|
|
2007
|
+
}
|
|
2008
|
+
stringifiedAttributes += "; " + attributeName;
|
|
2009
|
+
if (attributes[attributeName] === true) {
|
|
2010
|
+
continue;
|
|
2011
|
+
}
|
|
2012
|
+
stringifiedAttributes += "=" + attributes[attributeName].split(";")[0];
|
|
2013
|
+
}
|
|
2014
|
+
return document.cookie = key + "=" + converter.write(value, key) + stringifiedAttributes;
|
|
2015
|
+
}
|
|
2016
|
+
function get(key) {
|
|
2017
|
+
if (typeof document === "undefined" || arguments.length && !key) {
|
|
2018
|
+
return;
|
|
2019
|
+
}
|
|
2020
|
+
var cookies = document.cookie ? document.cookie.split("; ") : [];
|
|
2021
|
+
var jar = {};
|
|
2022
|
+
for (var i = 0; i < cookies.length; i++) {
|
|
2023
|
+
var parts = cookies[i].split("=");
|
|
2024
|
+
var value = parts.slice(1).join("=");
|
|
2025
|
+
try {
|
|
2026
|
+
var foundKey = decodeURIComponent(parts[0]);
|
|
2027
|
+
jar[foundKey] = converter.read(value, foundKey);
|
|
2028
|
+
if (key === foundKey) {
|
|
2029
|
+
break;
|
|
2030
|
+
}
|
|
2031
|
+
} catch (e) {
|
|
2032
|
+
}
|
|
2033
|
+
}
|
|
2034
|
+
return key ? jar[key] : jar;
|
|
2035
|
+
}
|
|
2036
|
+
return Object.create({
|
|
2037
|
+
set,
|
|
2038
|
+
get,
|
|
2039
|
+
remove: function(key, attributes) {
|
|
2040
|
+
set(key, "", assign({}, attributes, {
|
|
2041
|
+
expires: -1
|
|
2042
|
+
}));
|
|
2043
|
+
},
|
|
2044
|
+
withAttributes: function(attributes) {
|
|
2045
|
+
return init(this.converter, assign({}, this.attributes, attributes));
|
|
2046
|
+
},
|
|
2047
|
+
withConverter: function(converter2) {
|
|
2048
|
+
return init(assign({}, this.converter, converter2), this.attributes);
|
|
2049
|
+
}
|
|
2050
|
+
}, {
|
|
2051
|
+
attributes: { value: Object.freeze(defaultAttributes) },
|
|
2052
|
+
converter: { value: Object.freeze(converter) }
|
|
2053
|
+
});
|
|
2054
|
+
}
|
|
2055
|
+
init(defaultConverter, { path: "/" });
|
|
2056
|
+
R.pipe(R.toPairs, R.map(R.join("=")), R.join("&"), R.when(R.complement(R.isEmpty), R.concat("?")));
|
|
2057
|
+
async function selectFolderTree() {
|
|
2058
|
+
return new Promise((resolve) => {
|
|
2059
|
+
const el = document.createElement("input");
|
|
2060
|
+
el.type = "file";
|
|
2061
|
+
el.style = "display: none";
|
|
2062
|
+
el.webkitdirectory = true;
|
|
2063
|
+
el.multiple = true;
|
|
2064
|
+
document.body.appendChild(el);
|
|
2065
|
+
el.click();
|
|
2066
|
+
el.onchange = async () => {
|
|
2067
|
+
const files = Array.from(el.files);
|
|
2068
|
+
document.body.removeChild(el);
|
|
2069
|
+
if (files.length === 0)
|
|
2070
|
+
return resolve(null);
|
|
2071
|
+
const zip = new JSZip();
|
|
2072
|
+
const folderSet = new Set();
|
|
2073
|
+
files.forEach((file2) => {
|
|
2074
|
+
const path2 = file2.webkitRelativePath;
|
|
2075
|
+
if (!path2)
|
|
2076
|
+
return;
|
|
2077
|
+
const parts = path2.split("/");
|
|
2078
|
+
for (let i = 1; i < parts.length; i++) {
|
|
2079
|
+
const dir = parts.slice(0, i).join("/") + "/";
|
|
2080
|
+
folderSet.add(dir);
|
|
2081
|
+
}
|
|
2082
|
+
});
|
|
2083
|
+
folderSet.forEach((dir) => {
|
|
2084
|
+
zip.folder(dir);
|
|
2085
|
+
});
|
|
2086
|
+
const blob = await zip.generateAsync({ type: "blob" });
|
|
2087
|
+
const file = new File([blob], "folder-structure.zip", { type: "application/zip" });
|
|
2088
|
+
const folderTree = Array.from(folderSet);
|
|
2089
|
+
resolve({ file, folderTree });
|
|
2090
|
+
};
|
|
2091
|
+
});
|
|
2092
|
+
}
|
|
1693
2093
|
const acceptableFormats = [
|
|
1694
2094
|
".rar",
|
|
1695
2095
|
".zip",
|
|
@@ -1757,7 +2157,7 @@ var __vue2_script$b = defineComponent({
|
|
|
1757
2157
|
});
|
|
1758
2158
|
return false;
|
|
1759
2159
|
};
|
|
1760
|
-
const previewImage = ref();
|
|
2160
|
+
const previewImage = ref(null);
|
|
1761
2161
|
const typeOf = (filename) => {
|
|
1762
2162
|
if (/\.(gif|jpe?g|png)$/i.test(filename)) {
|
|
1763
2163
|
return "img";
|
|
@@ -1777,12 +2177,48 @@ var __vue2_script$b = defineComponent({
|
|
|
1777
2177
|
const isImage = (file) => typeOf(file.name) === "img";
|
|
1778
2178
|
const iconOf = (fileName) => icons[typeOf(fileName)];
|
|
1779
2179
|
const clickItem = (item, event) => {
|
|
2180
|
+
if (item.isFolderTree || item.name === "folder-structure.zip") {
|
|
2181
|
+
event.preventDefault();
|
|
2182
|
+
const link = document.createElement("a");
|
|
2183
|
+
link.href = item.link;
|
|
2184
|
+
link.download = item.name;
|
|
2185
|
+
document.body.appendChild(link);
|
|
2186
|
+
link.click();
|
|
2187
|
+
document.body.removeChild(link);
|
|
2188
|
+
return;
|
|
2189
|
+
}
|
|
1780
2190
|
if (!isImage(item)) {
|
|
1781
2191
|
return;
|
|
1782
2192
|
}
|
|
1783
2193
|
event.preventDefault();
|
|
1784
2194
|
previewImage.value = item.link;
|
|
1785
2195
|
};
|
|
2196
|
+
const handleSelectFolderTree = async () => {
|
|
2197
|
+
var _a, _b;
|
|
2198
|
+
if (loading.value)
|
|
2199
|
+
return;
|
|
2200
|
+
loading.value = true;
|
|
2201
|
+
try {
|
|
2202
|
+
const result = await selectFolderTree();
|
|
2203
|
+
if (result && result.file) {
|
|
2204
|
+
result.file.folderTree = result.folderTree;
|
|
2205
|
+
const res = await props.uploadFilesFunc([result.file], {
|
|
2206
|
+
office_id: (_a = me.value) == null ? void 0 : _a.lawFirmId,
|
|
2207
|
+
user_id: (_b = me.value) == null ? void 0 : _b.id
|
|
2208
|
+
});
|
|
2209
|
+
emit("change", [
|
|
2210
|
+
...props.value,
|
|
2211
|
+
...res.map(({ status, value }) => {
|
|
2212
|
+
if (status === "fulfilled") {
|
|
2213
|
+
return value;
|
|
2214
|
+
}
|
|
2215
|
+
}).filter((v) => v)
|
|
2216
|
+
]);
|
|
2217
|
+
}
|
|
2218
|
+
} finally {
|
|
2219
|
+
loading.value = false;
|
|
2220
|
+
}
|
|
2221
|
+
};
|
|
1786
2222
|
return {
|
|
1787
2223
|
iconOf,
|
|
1788
2224
|
previewImage,
|
|
@@ -1791,7 +2227,8 @@ var __vue2_script$b = defineComponent({
|
|
|
1791
2227
|
remove,
|
|
1792
2228
|
beforeUpload,
|
|
1793
2229
|
loading,
|
|
1794
|
-
acceptableFormats
|
|
2230
|
+
acceptableFormats,
|
|
2231
|
+
handleSelectFolderTree
|
|
1795
2232
|
};
|
|
1796
2233
|
}
|
|
1797
2234
|
});
|
|
@@ -1801,7 +2238,11 @@ var render$b = function() {
|
|
|
1801
2238
|
var _c = _vm._self._c || _h;
|
|
1802
2239
|
return _c("div", { class: { container: !_vm.previewMode && !_vm.multipleLineMode } }, [_c("ant-modal", { attrs: { "visible": !!_vm.previewImage, "footer": null }, on: { "cancel": function($event) {
|
|
1803
2240
|
_vm.previewImage = null;
|
|
1804
|
-
} } }, [_c("img", { staticStyle: { "width": "100%" }, attrs: { "src": _vm.previewImage } })]), _c("ant-upload", { staticStyle: { "display": "inline" }, attrs: { "multiple": "", "before-upload": _vm.beforeUpload, "disabled": _vm.disabled || _vm.loading, "action": "javascript:;", "fileList": [], "accept": _vm.acceptableFormats.join(",") } }, [!_vm.previewMode ? _c("ant-tag", [_vm._v(" " + _vm._s(_vm.$t("message.selectFile")) + " ")]) : _vm._e(), _vm.
|
|
2241
|
+
} } }, [_c("img", { staticStyle: { "width": "100%" }, attrs: { "src": _vm.previewImage } })]), _c("ant-upload", { staticStyle: { "display": "inline" }, attrs: { "multiple": "", "before-upload": _vm.beforeUpload, "disabled": _vm.disabled || _vm.loading, "action": "javascript:;", "fileList": [], "accept": _vm.acceptableFormats.join(",") } }, [!_vm.previewMode ? _c("ant-tag", [_vm._v(" " + _vm._s(_vm.$t("message.selectFile")) + " ")]) : _vm._e(), !_vm.previewMode ? _c("ant-tag", { attrs: { "disabled": _vm.disabled || _vm.loading }, on: { "click": function($event) {
|
|
2242
|
+
$event.stopPropagation();
|
|
2243
|
+
$event.preventDefault();
|
|
2244
|
+
return _vm.handleSelectFolderTree.apply(null, arguments);
|
|
2245
|
+
} } }, [_vm._v(" Upload Folder Sample ")]) : _vm._e(), _vm.value.length ? [_vm.multipleLineMode ? _c("div", _vm._l(_vm.value, function(file) {
|
|
1805
2246
|
return _c("div", { key: file.id, staticStyle: { "margin-top": "3px" } }, [_c("a", { staticStyle: { "color": "#2D8CF0" }, attrs: { "href": file.link, "target": "_blank" }, on: { "click": function($event) {
|
|
1806
2247
|
$event.stopPropagation();
|
|
1807
2248
|
return _vm.clickItem(file, $event);
|
|
@@ -1821,7 +2262,7 @@ var render$b = function() {
|
|
|
1821
2262
|
var staticRenderFns$b = [];
|
|
1822
2263
|
var index_vue_vue_type_style_index_0_scoped_true_lang$6 = "";
|
|
1823
2264
|
const __cssModules$b = {};
|
|
1824
|
-
var __component__$b = /* @__PURE__ */ normalizeComponent(__vue2_script$b, render$b, staticRenderFns$b, false, __vue2_injectStyles$b, "
|
|
2265
|
+
var __component__$b = /* @__PURE__ */ normalizeComponent(__vue2_script$b, render$b, staticRenderFns$b, false, __vue2_injectStyles$b, "79f32c52", null, null);
|
|
1825
2266
|
function __vue2_injectStyles$b(context) {
|
|
1826
2267
|
for (let o in __cssModules$b) {
|
|
1827
2268
|
this[o] = __cssModules$b[o];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ailaw/venus",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.307.0",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist"
|
|
6
6
|
],
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
"ant-design-vue": "^1.7.8",
|
|
26
26
|
"graphql": "^15.8.0",
|
|
27
27
|
"graphql-tag": "^2.12.6",
|
|
28
|
+
"jszip": "^3.10.1",
|
|
28
29
|
"ramda": "^0.28.0",
|
|
29
30
|
"vue-demi": "^0.14.6",
|
|
30
31
|
"vue-i18n": "^8.11.2",
|