@duxweb/dvha-core 1.1.30 → 1.2.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/cjs/_virtual/_rolldown/runtime.cjs +1 -0
- package/dist/cjs/components/auth/can.cjs +1 -1
- package/dist/cjs/components/auth/index.cjs +1 -0
- package/dist/cjs/components/common/icon.cjs +1 -1
- package/dist/cjs/components/common/index.cjs +1 -0
- package/dist/cjs/components/common/logo.cjs +1 -1
- package/dist/cjs/components/index.cjs +1 -0
- package/dist/cjs/components/loader/iframe.cjs +1 -1
- package/dist/cjs/components/loader/index.cjs +1 -0
- package/dist/cjs/components/loader/loader.cjs +1 -1
- package/dist/cjs/components/loader/remote/index.cjs +1 -0
- package/dist/cjs/components/loader/remote/loader.cjs +1 -1
- package/dist/cjs/components/loader/remote/render.cjs +1 -1
- package/dist/cjs/components/overlay/index.cjs +1 -0
- package/dist/cjs/components/overlay/overlay.cjs +1 -1
- package/dist/cjs/components/status/error.cjs +1 -1
- package/dist/cjs/components/status/exception.cjs +1 -1
- package/dist/cjs/components/status/index.cjs +1 -0
- package/dist/cjs/components/status/notAuthorized.cjs +1 -1
- package/dist/cjs/components/status/notFound.cjs +1 -1
- package/dist/cjs/config/color.cjs +1 -1
- package/dist/cjs/directive/index.cjs +1 -0
- package/dist/cjs/directive/permission.cjs +1 -1
- package/dist/cjs/hooks/auth.cjs +1 -1
- package/dist/cjs/hooks/config.cjs +1 -1
- package/dist/cjs/hooks/data.cjs +1 -1
- package/dist/cjs/hooks/export.cjs +1 -1
- package/dist/cjs/hooks/exportCsv.cjs +2 -2
- package/dist/cjs/hooks/form.cjs +1 -1
- package/dist/cjs/hooks/formExtend.cjs +1 -1
- package/dist/cjs/hooks/formValidate.cjs +1 -1
- package/dist/cjs/hooks/i18n.cjs +1 -1
- package/dist/cjs/hooks/import.cjs +1 -1
- package/dist/cjs/hooks/importCsv.cjs +2 -2
- package/dist/cjs/hooks/index.cjs +1 -0
- package/dist/cjs/hooks/json/index.cjs +1 -1
- package/dist/cjs/hooks/json/utils/contextManager.cjs +1 -1
- package/dist/cjs/hooks/json/utils/expressionParser.cjs +1 -1
- package/dist/cjs/hooks/json/vFor.cjs +1 -1
- package/dist/cjs/hooks/json/vIf.cjs +1 -1
- package/dist/cjs/hooks/json/vModel.cjs +1 -1
- package/dist/cjs/hooks/json/vOn.cjs +1 -1
- package/dist/cjs/hooks/json/vShow.cjs +1 -1
- package/dist/cjs/hooks/json/vText.cjs +1 -1
- package/dist/cjs/hooks/json.cjs +1 -1
- package/dist/cjs/hooks/list.cjs +1 -1
- package/dist/cjs/hooks/manage.cjs +1 -1
- package/dist/cjs/hooks/menu.cjs +1 -1
- package/dist/cjs/hooks/overlay.cjs +1 -1
- package/dist/cjs/hooks/select.cjs +1 -1
- package/dist/cjs/hooks/theme.cjs +4 -8
- package/dist/cjs/hooks/tree.cjs +1 -1
- package/dist/cjs/hooks/upload/index.cjs +1 -0
- package/dist/cjs/hooks/upload/local.cjs +1 -1
- package/dist/cjs/hooks/upload/s3.cjs +1 -1
- package/dist/cjs/hooks/upload.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/main.cjs +1 -1
- package/dist/cjs/preset/authProvider.cjs +1 -1
- package/dist/cjs/preset/dataProvider.cjs +1 -1
- package/dist/cjs/preset/i18nProvider.cjs +1 -1
- package/dist/cjs/preset/index.cjs +1 -0
- package/dist/cjs/provider/app.cjs +1 -1
- package/dist/cjs/provider/index.cjs +1 -0
- package/dist/cjs/provider/tab.cjs +1 -1
- package/dist/cjs/router/index.cjs +1 -0
- package/dist/cjs/router/route.cjs +1 -1
- package/dist/cjs/stores/auth.cjs +1 -1
- package/dist/cjs/stores/i18n.cjs +1 -1
- package/dist/cjs/stores/index.cjs +1 -0
- package/dist/cjs/stores/jsonSchema.cjs +1 -1
- package/dist/cjs/stores/manage.cjs +1 -1
- package/dist/cjs/stores/route.cjs +1 -1
- package/dist/cjs/stores/tab.cjs +1 -1
- package/dist/cjs/stores/theme.cjs +1 -1
- package/dist/cjs/utils/bus.cjs +1 -1
- package/dist/cjs/utils/index.cjs +1 -0
- package/dist/cjs/utils/theme.cjs +8 -8
- package/dist/cjs/utils/tree.cjs +1 -1
- package/dist/esm/_virtual/_rolldown/runtime.js +9 -0
- package/dist/esm/components/auth/can.js +17 -36
- package/dist/esm/components/auth/index.js +1 -0
- package/dist/esm/components/common/icon.js +16 -24
- package/dist/esm/components/common/index.js +2 -0
- package/dist/esm/components/common/logo.js +50 -49
- package/dist/esm/components/index.js +14 -0
- package/dist/esm/components/loader/iframe.js +16 -18
- package/dist/esm/components/loader/index.js +1 -0
- package/dist/esm/components/loader/loader.js +11 -40
- package/dist/esm/components/loader/remote/index.js +2 -0
- package/dist/esm/components/loader/remote/loader.js +118 -156
- package/dist/esm/components/loader/remote/render.js +12 -17
- package/dist/esm/components/overlay/index.js +1 -0
- package/dist/esm/components/overlay/overlay.js +54 -70
- package/dist/esm/components/status/error.js +7 -9
- package/dist/esm/components/status/exception.js +21 -37
- package/dist/esm/components/status/index.js +4 -0
- package/dist/esm/components/status/notAuthorized.js +7 -9
- package/dist/esm/components/status/notFound.js +7 -9
- package/dist/esm/config/color.js +288 -290
- package/dist/esm/directive/index.js +1 -0
- package/dist/esm/directive/permission.js +7 -27
- package/dist/esm/hooks/auth.js +154 -120
- package/dist/esm/hooks/config.js +11 -9
- package/dist/esm/hooks/data.js +416 -415
- package/dist/esm/hooks/export.js +32 -36
- package/dist/esm/hooks/exportCsv.js +42 -46
- package/dist/esm/hooks/form.js +86 -95
- package/dist/esm/hooks/formExtend.js +36 -40
- package/dist/esm/hooks/formValidate.js +22 -25
- package/dist/esm/hooks/i18n.js +14 -18
- package/dist/esm/hooks/import.js +45 -54
- package/dist/esm/hooks/importCsv.js +90 -83
- package/dist/esm/hooks/index.js +31 -0
- package/dist/esm/hooks/json/index.js +14 -22
- package/dist/esm/hooks/json/utils/contextManager.js +35 -26
- package/dist/esm/hooks/json/utils/expressionParser.js +100 -123
- package/dist/esm/hooks/json/vFor.js +50 -55
- package/dist/esm/hooks/json/vIf.js +17 -16
- package/dist/esm/hooks/json/vModel.js +96 -106
- package/dist/esm/hooks/json/vOn.js +30 -32
- package/dist/esm/hooks/json/vShow.js +20 -22
- package/dist/esm/hooks/json/vText.js +44 -51
- package/dist/esm/hooks/json.js +131 -132
- package/dist/esm/hooks/list.js +150 -184
- package/dist/esm/hooks/manage.js +25 -22
- package/dist/esm/hooks/menu.js +57 -61
- package/dist/esm/hooks/overlay.js +6 -23
- package/dist/esm/hooks/select.js +84 -94
- package/dist/esm/hooks/theme.js +289 -219
- package/dist/esm/hooks/tree.js +43 -47
- package/dist/esm/hooks/upload/index.js +2 -0
- package/dist/esm/hooks/upload/local.js +24 -30
- package/dist/esm/hooks/upload/s3.js +70 -80
- package/dist/esm/hooks/upload.js +256 -272
- package/dist/esm/index.js +150 -141
- package/dist/esm/main.js +24 -45
- package/dist/esm/preset/authProvider.js +62 -68
- package/dist/esm/preset/dataProvider.js +154 -180
- package/dist/esm/preset/i18nProvider.js +28 -30
- package/dist/esm/preset/index.js +3 -0
- package/dist/esm/provider/app.js +124 -151
- package/dist/esm/provider/index.js +2 -0
- package/dist/esm/provider/tab.js +49 -66
- package/dist/esm/router/index.js +1 -0
- package/dist/esm/router/route.js +39 -46
- package/dist/esm/stores/auth.js +51 -46
- package/dist/esm/stores/i18n.js +32 -29
- package/dist/esm/stores/index.js +7 -0
- package/dist/esm/stores/jsonSchema.js +47 -34
- package/dist/esm/stores/manage.js +63 -48
- package/dist/esm/stores/route.js +60 -56
- package/dist/esm/stores/tab.js +55 -60
- package/dist/esm/stores/theme.js +48 -55
- package/dist/esm/utils/bus.js +3 -5
- package/dist/esm/utils/index.js +3 -0
- package/dist/esm/utils/theme.js +110 -93
- package/dist/esm/utils/tree.js +28 -37
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
require(`../_virtual/_rolldown/runtime.cjs`);let e=require(`vue`),t=require(`pinia`);function n(t){let n=(0,e.inject)(`dux.manage`);if(t||=n?.value||``,!t)throw Error(`manage not found`);return r(t)()}function r(n){return(0,t.defineStore)(`routes-${n}`,()=>{let t=(0,e.ref)([]),n=e=>t.value?.find(t=>t.path===e),r=e=>t.value?.find(t=>t.name===e),i=e=>{t.value?.push(e)},a=e=>{t.value=[...t.value,...e]},o=e=>{t.value=e},s=()=>t.value,c=()=>{t.value=[]},l=()=>{let e=t.value?.filter(e=>!e.parent&&!e.name?.includes(`404`)&&!e.name?.includes(`403`))?.sort((e,t)=>(e.sort||0)-(t.sort||0)),n=e=>{if(e.path)return e;let r=t.value?.filter(t=>t.parent===e.name)?.sort((e,t)=>(e.sort||0)-(t.sort||0));for(let e of r||[]){let t=n(e);if(t)return t}};for(let t of e||[]){let e=n(t);if(e)return e}},u=(0,e.ref)(!1);return{routes:t,searchRoute:n,searchRouteName:r,appendRoute:i,appendRoutes:a,setRoutes:o,getRoutes:s,clearRoutes:c,getIndexRoute:l,getRouteInit:()=>{let e=u.value;return u.value=!0,e},resetRouteInit:()=>{u.value=!1}}})}exports.useRouteStore=n;
|
package/dist/cjs/stores/tab.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
require(`../_virtual/_rolldown/runtime.cjs`);let e=require(`vue`),t=require(`pinia`);function n(t){let n=(0,e.inject)(`dux.manage`);if(t||=n?.value||``,!t)throw Error(`manage not found`);return r(t)()}function r(n){return(0,t.defineStore)(`tab-${n}`,()=>{let t=(0,e.ref)(),n=(0,e.ref)(),r=(0,e.ref)([]);return{current:t,tabs:r,isTab:e=>r.value.some(t=>t.path===e),addTab:(e,i)=>{e.path&&(r.value.some(t=>t.path===e.path)?(t.value&&t.value!==e.path&&(n.value=r.value.find(e=>e.path===t.value)),t.value=e.path):(t.value&&(n.value=r.value.find(e=>e.path===t.value)),r.value.push(e),i?.(e),t.value=e.path))},delTab:(e,i)=>{let a=r.value.findIndex(t=>t.path===e);if(a===-1||r.value.length<=1||r.value[a]?.meta?.lock)return;let o;if(e===t.value&&n.value&&(o=r.value.find(t=>t.path===n.value?.path&&t.path!==e)),!o){let e=r.value[a-1],t=r.value[a+1];o=e||t}r.value.splice(a,1),i?.(o)},changeTab:(e,i)=>{let a=r.value.find(t=>t.path===e);a&&(t.value&&t.value!==e&&(n.value=r.value.find(e=>e.path===t.value)),t.value=e,i?.(a))},delOther:(e,t)=>{r.value=r.value.filter(t=>t.path===e||t.meta?.lock),t?.()},delLeft:(t,n)=>{let i=r.value.findIndex(e=>e.path===t);i<=0||(0,e.nextTick)(()=>{r.value=[...r.value.slice(0,i).filter(e=>e.meta?.lock),...r.value.slice(i)],n?.()})},delRight:(t,n)=>{let i=r.value.findIndex(e=>e.path===t);i===-1||i===r.value.length-1||(0,e.nextTick)(()=>{r.value=[...r.value.slice(0,i+1),...r.value.slice(i+1).filter(e=>e.meta?.lock)],n?.()})},lockTab:e=>{let t=r.value.findIndex(t=>t.path===e);t!==-1&&r.value[t]&&(r.value[t].meta||(r.value[t].meta={}),r.value[t].meta.lock=!r.value[t].meta.lock)},clearTab:()=>{t.value=void 0,n.value=void 0,r.value=[]}}})}exports.createTabStore=r,exports.useTabStore=n;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
require(`../_virtual/_rolldown/runtime.cjs`);const e=require(`./manage.cjs`);let t=require(`vue`),n=require(`pinia`);var r={primary:`emerald`,info:`cyan`,success:`green`,warning:`amber`,error:`red`,gray:`zinc`};function i(e){let n=(0,t.inject)(`dux.manage`);if(e||=n?.value||``,!e)throw Error(`manage not found`);return a(e)()}function a(i){return(0,n.defineStore)(`theme-${i}`,()=>{let n=(0,t.ref)(e.useManageStore(i).config?.theme?.defaultTheme||r),a=(0,t.ref)(`auto`),o=(0,t.ref)(!1);function s(){o.value=!0}function c(e){a.value=e}function l(e,t){n.value[e]=t}function u(e){Object.assign(n.value,e)}function d(){n.value={...r}}function f(){return n.value}return{mode:a,setMode:c,theme:n,cssInit:o,setCssInit:s,setThemeColor:l,setThemeColors:u,resetTheme:d,getTheme:f}},{persist:{pick:[`theme`,`mode`]}})}exports.useThemeStore=i;
|
package/dist/cjs/utils/bus.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const e=require(`../_virtual/_rolldown/runtime.cjs`);let t=require(`mitt`);t=e.__toESM(t);const n=(0,t.default)();exports.emitter=n;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`./bus.cjs`),require(`./theme.cjs`),require(`./tree.cjs`);
|
package/dist/cjs/utils/theme.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
.${
|
|
3
|
-
border-color: color-mix(in oklab, rgb(var(${
|
|
1
|
+
function e(e){return`rgb(var(${e}))`}function t(e,t){return`color-mix(in oklab, rgb(var(${e})) var(${t}, 100%), transparent)`}function n(n){let r=[`50`,`100`,`200`,`300`,`400`,`500`,`600`,`700`,`800`,`900`,`950`],i=[`primary`,`info`,`success`,`warning`,`error`,`gray`],a=[`hover`,`pressed`,`focus`,`disabled`],o={white:{DEFAULT:e(`--ui-color-white`)},black:{DEFAULT:e(`--ui-color-black`)}};Object.keys(n).forEach(t=>{o[t]={},r.forEach(n=>{o[t][n]=e(`--base-color-${t}-${n}`)})}),i.forEach(e=>{o[e]={DEFAULT:t(`--ui-color-${e}`,`--un-text-opacity`)},r.forEach(n=>{o[e][n]=t(`--ui-color-${e}-${n}`,`--un-text-opacity`)}),a.forEach(n=>{o[e][n]=t(`--ui-color-${e}-${n}`,`--un-text-opacity`)})});let s={text:[`default`,`dimmed`,`muted`,`toned`,`highlighted`,`inverted`],bg:[`default`,`muted`,`elevated`,`accented`,`inverted`],border:[`default`,`muted`,`accented`,`inverted`]};function c(e,t,n,r,i){let a=[];return n.forEach(n=>{let o=`--ui-${i||e}${n===`default`?``:`-${n}`}`;a.push([`${e}-${n}`,{[t]:`color-mix(in oklab, rgb(var(${o})) var(${r}, 100%), transparent)`,[r]:`100%`}]),a.push([RegExp(`^${e}-${n}\\/(\\d*\\.?\\d+)(%?)$`),([,e,n])=>{let i=Number(e),a;return a=n||i>1?`${i}%`:`${i*100}%`,{[t]:`color-mix(in oklab, rgb(var(${o})) var(${r}, 100%), transparent)`,[r]:a}}]),a.push([RegExp(`^${e}-${n}\\[(.+)\\]$`),([,e])=>({[t]:e.replace(/_/g,` `)})])}),a}let l=c(`text`,`color`,s.text,`--un-text-opacity`),u=c(`bg`,`background-color`,s.bg,`--un-bg-opacity`),d=c(`border`,`border-color`,s.border,`--un-border-opacity`),f=c(`ring`,`--un-ring-color`,s.border,`--un-ring-opacity`,`border`),p=[];s.border.forEach(e=>{let t=`--ui-border${e===`default`?``:`-${e}`}`;p.push([RegExp(`^divide-${e}$`),(e,{rawSelector:n})=>`
|
|
2
|
+
.${n.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)} > :not(:last-child) {
|
|
3
|
+
border-color: color-mix(in oklab, rgb(var(${t})) var(--un-border-opacity, 100%), transparent);
|
|
4
4
|
--un-border-opacity: 100%;
|
|
5
|
-
}`])
|
|
6
|
-
.${
|
|
7
|
-
border-color: color-mix(in oklab, rgb(var(${
|
|
8
|
-
--un-border-opacity: ${
|
|
9
|
-
}`}])});
|
|
5
|
+
}`]),p.push([RegExp(`^divide-${e}\\/(\\d*\\.?\\d+)(%?)$`),([,e,n],{rawSelector:r})=>{let i=Number(e),a;return a=n||i>1?`${i}%`:`${i*100}%`,`
|
|
6
|
+
.${r.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)} > :not(:last-child) {
|
|
7
|
+
border-color: color-mix(in oklab, rgb(var(${t})) var(--un-border-opacity, 100%), transparent);
|
|
8
|
+
--un-border-opacity: ${a};
|
|
9
|
+
}`}])});let m=[...l,...u,...d,...f,...p];return{name:`preset-theme`,theme:{colors:o},rules:m}}exports.themePreset=n;
|
package/dist/cjs/utils/tree.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function e(t,n,r){let i=[];return t.forEach(a=>{if(a[n.parentKey]===r){let r=e(t,n,a[n.idKey]);r.length>0&&(a[n.childrenKey]=r),i.push(a)}}),i=i.sort((e,t)=>e[n.sortKey]-t[n.sortKey]),i}function t(e,n,r=[]){if(!e||!e.length)return[];for(let i of e){if(r.push(i),n(i))return r;if(i?.children&&i?.children?.length){let e=t(i.children,n,r);if(e.length)return e}r.pop()}return[]}function n(e,t,r){let i=[];if(!e||!e.length)return i;for(let a of e)if(i.push(a[t]),a[r]&&a[r].length){let e=n(a[r],t,r);e.length&&(i=i.concat(e))}return i}exports.arrayToTree=e,exports.searchTree=t,exports.treeToArr=n;
|
|
@@ -1,37 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import "
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
const j = /* @__PURE__ */ p({
|
|
18
|
-
name: "DuxCan",
|
|
19
|
-
props: {
|
|
20
|
-
name: {
|
|
21
|
-
type: String,
|
|
22
|
-
required: !0
|
|
23
|
-
},
|
|
24
|
-
params: {
|
|
25
|
-
type: Object
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
setup(r, {
|
|
29
|
-
slots: t
|
|
30
|
-
}) {
|
|
31
|
-
const m = o();
|
|
32
|
-
return () => m(r.name, r.params) ? t.default?.() : t.fallback?.() || null;
|
|
33
|
-
}
|
|
1
|
+
import { useCan as e } from "../../hooks/auth.js";
|
|
2
|
+
import "../../hooks/index.js";
|
|
3
|
+
import { defineComponent as t } from "vue";
|
|
4
|
+
const n = /* @__PURE__ */ t({
|
|
5
|
+
name: "DuxCan",
|
|
6
|
+
props: {
|
|
7
|
+
name: {
|
|
8
|
+
type: String,
|
|
9
|
+
required: !0
|
|
10
|
+
},
|
|
11
|
+
params: { type: Object }
|
|
12
|
+
},
|
|
13
|
+
setup(t, { slots: n }) {
|
|
14
|
+
let r = e();
|
|
15
|
+
return () => r(t.name, t.params) ? n.default?.() : n.fallback?.() || null;
|
|
16
|
+
}
|
|
34
17
|
});
|
|
35
|
-
export {
|
|
36
|
-
j as DuxCan
|
|
37
|
-
};
|
|
18
|
+
export { n as DuxCan };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./can.js";
|
|
@@ -1,25 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}, [o("path", {
|
|
17
|
-
d: "M170,94.52l-35.9-20.73-24.34,14,11.62,6.71a5,5,0,0,1,0,8.66L32.5,154.52a5,5,0,0,1-7.5-4.33V99.61a6.44,6.44,0,0,1,0-1.52V47.51a5,5,0,0,1,7.5-4.33l35,20.23,24.32-14L7.5.68A5,5,0,0,0,0,5V192.69A5,5,0,0,0,7.5,197L170,103.18A5,5,0,0,0,170,94.52Z"
|
|
18
|
-
}, null), o("path", {
|
|
19
|
-
d: "M32.93,103.18l35.9,20.73,24.34-14-11.62-6.71a5,5,0,0,1,0-8.66l88.92-51.34a5,5,0,0,1,7.5,4.33V98.09a6.44,6.44,0,0,1,0,1.52v50.58a5,5,0,0,1-7.5,4.33l-35-20.23-24.32,14L195.47,197a5,5,0,0,0,7.5-4.33V5a5,5,0,0,0-7.5-4.33L32.93,94.52A5,5,0,0,0,32.93,103.18Z"
|
|
20
|
-
}, null)]);
|
|
21
|
-
}
|
|
1
|
+
import { createVNode as e, defineComponent as t } from "vue";
|
|
2
|
+
import n from "clsx";
|
|
3
|
+
const r = /* @__PURE__ */ t({
|
|
4
|
+
name: "DuxLogoIcon",
|
|
5
|
+
props: { highlight: {
|
|
6
|
+
type: String,
|
|
7
|
+
default: "fill-primary"
|
|
8
|
+
} },
|
|
9
|
+
setup(t) {
|
|
10
|
+
return () => e("svg", {
|
|
11
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
12
|
+
viewBox: "0 0 202.97 197.7",
|
|
13
|
+
class: n([t.highlight])
|
|
14
|
+
}, [e("path", { d: "M170,94.52l-35.9-20.73-24.34,14,11.62,6.71a5,5,0,0,1,0,8.66L32.5,154.52a5,5,0,0,1-7.5-4.33V99.61a6.44,6.44,0,0,1,0-1.52V47.51a5,5,0,0,1,7.5-4.33l35,20.23,24.32-14L7.5.68A5,5,0,0,0,0,5V192.69A5,5,0,0,0,7.5,197L170,103.18A5,5,0,0,0,170,94.52Z" }, null), e("path", { d: "M32.93,103.18l35.9,20.73,24.34-14-11.62-6.71a5,5,0,0,1,0-8.66l88.92-51.34a5,5,0,0,1,7.5,4.33V98.09a6.44,6.44,0,0,1,0,1.52v50.58a5,5,0,0,1-7.5,4.33l-35-20.23-24.32,14L195.47,197a5,5,0,0,0,7.5-4.33V5a5,5,0,0,0-7.5-4.33L32.93,94.52A5,5,0,0,0,32.93,103.18Z" }, null)]);
|
|
15
|
+
}
|
|
22
16
|
});
|
|
23
|
-
export {
|
|
24
|
-
n as DuxLogoIcon
|
|
25
|
-
};
|
|
17
|
+
export { r as DuxLogoIcon };
|
|
@@ -1,50 +1,51 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
1
|
+
import { createVNode as e, defineComponent as t } from "vue";
|
|
2
|
+
import n from "clsx";
|
|
3
|
+
const r = /* @__PURE__ */ t({
|
|
4
|
+
name: "DuxLogo",
|
|
5
|
+
props: {
|
|
6
|
+
dark: {
|
|
7
|
+
type: Boolean,
|
|
8
|
+
default: !1
|
|
9
|
+
},
|
|
10
|
+
highlight: {
|
|
11
|
+
type: String,
|
|
12
|
+
default: "fill-primary"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
setup(t) {
|
|
16
|
+
return () => e("svg", {
|
|
17
|
+
class: "w-auto h-full",
|
|
18
|
+
viewBox: "0 0 400.893 121.787",
|
|
19
|
+
version: "1.1",
|
|
20
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
21
|
+
}, [e("g", {
|
|
22
|
+
transform: "translate(-6545.000000, -3038.106602) translate(6345.000000, 2899.000000) translate(200.000000, 132.393398)",
|
|
23
|
+
"fill-rule": "nonzero",
|
|
24
|
+
stroke: "none",
|
|
25
|
+
"stroke-width": "1",
|
|
26
|
+
fill: "none"
|
|
27
|
+
}, [
|
|
28
|
+
e("path", {
|
|
29
|
+
d: "M0 62.607v50c0 8.284 6.716 15 15 15s15-6.716 15-15v-50c0-8.285-6.716-15-15-15s-15 6.715-15 15z",
|
|
30
|
+
class: n([t.dark ? "fill-white/90" : "fill-black dark:fill-white/90"])
|
|
31
|
+
}, null),
|
|
32
|
+
e("path", {
|
|
33
|
+
d: "M60 7.607c33.137 0 60 26.863 60 60s-26.863 60-60 60h-5c-8.284 0-15-6.716-15-15 0-8.285 6.716-15 15-15h5c16.57 0 30-13.432 30-30 0-16.57-13.43-30-30-30H15c-8.284 0-15-6.716-15-15 0-8.285 6.716-15 15-15h45z",
|
|
34
|
+
class: n([t.dark ? "fill-white/90" : "fill-black dark:fill-white/90"])
|
|
35
|
+
}, null),
|
|
36
|
+
e("path", {
|
|
37
|
+
d: "M201 7.607c33.137 0 60 26.863 60 60s-26.863 60-60 60h-46c-8.284 0-15-6.716-15-15 0-8.285 6.716-15 15-15h46c16.57 0 30-13.432 30-30 0-16.57-13.43-30-30-30h-45.5c-8.284 0-15-6.716-15-15 0-8.285 6.716-15 15-15H201z",
|
|
38
|
+
class: n([t.dark ? "fill-white/90" : "fill-black dark:fill-white/90"]),
|
|
39
|
+
transform: "translate(200.500000, 67.606602) rotate(90.000000) translate(-200.500000, -67.606602) "
|
|
40
|
+
}, null),
|
|
41
|
+
e("g", { transform: "translate(279.106602, 6.713203)" }, [e("path", {
|
|
42
|
+
d: "M25.607 4.393 52.893 31.68c5.858 5.858 5.858 15.356 0 21.213-5.857 5.858-15.355 5.858-21.213 0L4.393 25.607c-5.857-5.858-5.857-15.356 0-21.214 5.858-5.857 15.356-5.857 21.214 0zm91.786 0c5.858 5.858 5.858 15.356 0 21.214L90.107 52.893c-5.858 5.858-15.356 5.858-21.214 0-5.857-5.857-5.857-15.355 0-21.213L96.18 4.393c5.858-5.857 15.356-5.857 21.213 0zm-64.5 64.5c5.858 5.858 5.858 15.356 0 21.214l-27.286 27.286c-5.858 5.858-15.356 5.858-21.214 0-5.857-5.857-5.857-15.355 0-21.213L31.68 68.893c5.858-5.857 15.356-5.857 21.213 0z",
|
|
43
|
+
class: n([t.dark ? "fill-white/90" : "fill-black dark:fill-white/90"])
|
|
44
|
+
}, null), e("path", {
|
|
45
|
+
d: "m90.107 68.893 27.286 27.287c5.858 5.858 5.858 15.356 0 21.213-5.857 5.858-15.355 5.858-21.213 0L68.893 90.107c-5.857-5.858-5.857-15.356 0-21.214 5.858-5.857 15.356-5.857 21.214 0z",
|
|
46
|
+
class: n([t.highlight])
|
|
47
|
+
}, null)])
|
|
48
|
+
])]);
|
|
49
|
+
}
|
|
47
50
|
});
|
|
48
|
-
export {
|
|
49
|
-
c as DuxLogo
|
|
50
|
-
};
|
|
51
|
+
export { r as DuxLogo };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import "./auth/can.js";
|
|
2
|
+
import "./auth/index.js";
|
|
3
|
+
import "./common/logo.js";
|
|
4
|
+
import "./common/icon.js";
|
|
5
|
+
import "./common/index.js";
|
|
6
|
+
import "./loader/iframe.js";
|
|
7
|
+
import "./loader/index.js";
|
|
8
|
+
import "./overlay/overlay.js";
|
|
9
|
+
import "./overlay/index.js";
|
|
10
|
+
import "./status/error.js";
|
|
11
|
+
import "./status/exception.js";
|
|
12
|
+
import "./status/notAuthorized.js";
|
|
13
|
+
import "./status/notFound.js";
|
|
14
|
+
import "./status/index.js";
|
|
@@ -1,19 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { useRoute as
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
import { createVNode as e, defineComponent as t } from "vue";
|
|
2
|
+
import { useRoute as n } from "vue-router";
|
|
3
|
+
var r = /* @__PURE__ */ t({
|
|
4
|
+
name: "DuxLoaderIframe",
|
|
5
|
+
setup(t) {
|
|
6
|
+
let r = n();
|
|
7
|
+
return () => e("iframe", {
|
|
8
|
+
src: r.meta?.url,
|
|
9
|
+
style: {
|
|
10
|
+
width: "100%",
|
|
11
|
+
height: "100%",
|
|
12
|
+
border: "none"
|
|
13
|
+
}
|
|
14
|
+
}, null);
|
|
15
|
+
}
|
|
16
16
|
});
|
|
17
|
-
export {
|
|
18
|
-
u as default
|
|
19
|
-
};
|
|
17
|
+
export { r as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./iframe.js";
|
|
@@ -1,41 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import "
|
|
4
|
-
import "
|
|
5
|
-
import "
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
import "mathjs";
|
|
12
|
-
import "mime";
|
|
13
|
-
import "mitt";
|
|
14
|
-
import "pinia";
|
|
15
|
-
import "print-js";
|
|
16
|
-
import "vue3-sfc-loader";
|
|
17
|
-
import "vue-router";
|
|
18
|
-
import "json-2-csv";
|
|
19
|
-
import "@vee-validate/rules";
|
|
20
|
-
import "vee-validate";
|
|
21
|
-
import "../../hooks/json/index.js";
|
|
22
|
-
import "../../utils/bus.js";
|
|
23
|
-
import "@overlastic/vue";
|
|
24
|
-
import "clsx";
|
|
25
|
-
import "colorizr";
|
|
26
|
-
import "pinia-plugin-persistedstate";
|
|
27
|
-
import "vue-i18n";
|
|
28
|
-
import { DuxRemoteRender as m } from "./remote/render.js";
|
|
29
|
-
const z = /* @__PURE__ */ r({
|
|
30
|
-
name: "DuxLoaderRemote",
|
|
31
|
-
setup(p) {
|
|
32
|
-
return () => o("div", {
|
|
33
|
-
class: "app-remote-loader"
|
|
34
|
-
}, [o(t, null, {
|
|
35
|
-
default: () => [o(m, null, null)]
|
|
36
|
-
})]);
|
|
37
|
-
}
|
|
1
|
+
import { DuxException as e } from "../status/exception.js";
|
|
2
|
+
import "../status/index.js";
|
|
3
|
+
import { DuxRemoteRender as t } from "./remote/render.js";
|
|
4
|
+
import "./remote/index.js";
|
|
5
|
+
import { createVNode as n, defineComponent as r } from "vue";
|
|
6
|
+
var i = /* @__PURE__ */ r({
|
|
7
|
+
name: "DuxLoaderRemote",
|
|
8
|
+
setup(r) {
|
|
9
|
+
return () => n("div", { class: "app-remote-loader" }, [n(e, null, { default: () => [n(t, null, null)] })]);
|
|
10
|
+
}
|
|
38
11
|
});
|
|
39
|
-
export {
|
|
40
|
-
z as default
|
|
41
|
-
};
|
|
12
|
+
export { i as default };
|