@duxweb/dvha-pro 0.0.5
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/app.cjs +1 -0
- package/dist/cjs/component.cjs +1 -0
- package/dist/cjs/components/card/card.cjs +1 -0
- package/dist/cjs/components/carousel/carousel.cjs +1 -0
- package/dist/cjs/components/dashboard/hello.cjs +1 -0
- package/dist/cjs/components/dashboard/helloBig.cjs +1 -0
- package/dist/cjs/components/dashboard/quick.cjs +1 -0
- package/dist/cjs/components/dialog/dialog.cjs +1 -0
- package/dist/cjs/components/draw/drawApps.cjs +1 -0
- package/dist/cjs/components/draw/drawAuth.cjs +1 -0
- package/dist/cjs/components/draw/drawEmpty.cjs +1 -0
- package/dist/cjs/components/draw/drawEmptyForm.cjs +1 -0
- package/dist/cjs/components/draw/drawError.cjs +1 -0
- package/dist/cjs/components/drawer/drawer.cjs +1 -0
- package/dist/cjs/components/drawer/drawerPage.cjs +1 -0
- package/dist/cjs/components/form/formItem.cjs +1 -0
- package/dist/cjs/components/form/formLayout.cjs +1 -0
- package/dist/cjs/components/form/modalForm.cjs +1 -0
- package/dist/cjs/components/form/pageForm.cjs +1 -0
- package/dist/cjs/components/form/settingForm.cjs +1 -0
- package/dist/cjs/components/layout/filter.cjs +1 -0
- package/dist/cjs/components/layout/list.cjs +1 -0
- package/dist/cjs/components/layout/table.cjs +1 -0
- package/dist/cjs/components/layout/tools.cjs +1 -0
- package/dist/cjs/components/list/card.cjs +1 -0
- package/dist/cjs/components/list/list.cjs +1 -0
- package/dist/cjs/components/media/media.cjs +1 -0
- package/dist/cjs/components/modal/modal.cjs +1 -0
- package/dist/cjs/components/modal/modalPage.cjs +1 -0
- package/dist/cjs/components/modal/modalTab.cjs +1 -0
- package/dist/cjs/components/panel/alert.cjs +1 -0
- package/dist/cjs/components/panel/setting.cjs +1 -0
- package/dist/cjs/components/status/blockEmpty.cjs +1 -0
- package/dist/cjs/components/table/tablePage.cjs +1 -0
- package/dist/cjs/components/widget/connect.cjs +1 -0
- package/dist/cjs/config/uno.cjs +1 -0
- package/dist/cjs/config/validate.cjs +1 -0
- package/dist/cjs/dvha-pro.css +1 -0
- package/dist/cjs/hooks/action.cjs +1 -0
- package/dist/cjs/hooks/dialog.cjs +1 -0
- package/dist/cjs/hooks/drawer.cjs +1 -0
- package/dist/cjs/hooks/modal.cjs +1 -0
- package/dist/cjs/hooks/table/column.cjs +1 -0
- package/dist/cjs/hooks/table/copy.cjs +1 -0
- package/dist/cjs/hooks/table/hidden.cjs +1 -0
- package/dist/cjs/hooks/table/image.cjs +1 -0
- package/dist/cjs/hooks/table/input.cjs +1 -0
- package/dist/cjs/hooks/table/map.cjs +1 -0
- package/dist/cjs/hooks/table/media.cjs +1 -0
- package/dist/cjs/hooks/table/status.cjs +1 -0
- package/dist/cjs/hooks/table/switch.cjs +1 -0
- package/dist/cjs/hooks/table.cjs +1 -0
- package/dist/cjs/hooks/ui.cjs +1 -0
- package/dist/cjs/index.cjs +1 -0
- package/dist/cjs/langs/en-US.json.cjs +1 -0
- package/dist/cjs/langs/zh-CN.json.cjs +1 -0
- package/dist/cjs/main.cjs +1 -0
- package/dist/cjs/node_modules/@iconify-json/tabler/icons.json.cjs +1 -0
- package/dist/cjs/node_modules/@overlastic/core/dist/index.cjs +1 -0
- package/dist/cjs/node_modules/@overlastic/vue/dist/index.cjs +1 -0
- package/dist/cjs/node_modules/@vee-validate/i18n/dist/locale/en.json.cjs +1 -0
- package/dist/cjs/node_modules/@vee-validate/i18n/dist/locale/zh_CN.json.cjs +1 -0
- package/dist/cjs/node_modules/@vueuse/integrations/useFocusTrap.cjs +1 -0
- package/dist/cjs/node_modules/@vueuse/shared/index.cjs +1 -0
- package/dist/cjs/node_modules/colorizr/dist/index.cjs +1 -0
- package/dist/cjs/node_modules/focus-trap/dist/focus-trap.esm.cjs +5 -0
- package/dist/cjs/node_modules/lower-case/dist.es2015/index.cjs +1 -0
- package/dist/cjs/node_modules/no-case/dist.es2015/index.cjs +1 -0
- package/dist/cjs/node_modules/pascal-case/dist.es2015/index.cjs +1 -0
- package/dist/cjs/node_modules/tabbable/dist/index.esm.cjs +4 -0
- package/dist/cjs/node_modules/tslib/tslib.es6.cjs +1 -0
- package/dist/cjs/pages/authLayout.cjs +1 -0
- package/dist/cjs/pages/layout/global.cjs +1 -0
- package/dist/cjs/pages/layout/page.cjs +1 -0
- package/dist/cjs/pages/layout/tab.cjs +1 -0
- package/dist/cjs/pages/layout.cjs +1 -0
- package/dist/cjs/pages/loading.cjs +1 -0
- package/dist/cjs/pages/login.cjs +1 -0
- package/dist/cjs/pages/menu/avatar.cjs +1 -0
- package/dist/cjs/pages/menu/button.cjs +1 -0
- package/dist/cjs/pages/menu/cmd.cjs +1 -0
- package/dist/cjs/pages/menu/main.cjs +1 -0
- package/dist/cjs/pages/menu/mobile.cjs +1 -0
- package/dist/cjs/pages/page.cjs +1 -0
- package/dist/cjs/pages/page403.cjs +1 -0
- package/dist/cjs/pages/page404.cjs +1 -0
- package/dist/cjs/pages/page500.cjs +1 -0
- package/dist/cjs/pages/pageEmpty.cjs +1 -0
- package/dist/cjs/pages/pageLoading.cjs +1 -0
- package/dist/cjs/pages/pageStatus.cjs +1 -0
- package/dist/cjs/static/images/placeholder.png.cjs +1 -0
- package/dist/cjs/stores/ui.cjs +1 -0
- package/dist/cjs/theme/naiveTheme.cjs +1 -0
- package/dist/cjs/theme/presetTheme.cjs +1 -0
- package/dist/cjs/theme/uno.css.cjs +1285 -0
- package/dist/esm/app.js +20 -0
- package/dist/esm/component.js +59 -0
- package/dist/esm/components/card/card.js +114 -0
- package/dist/esm/components/carousel/carousel.js +37 -0
- package/dist/esm/components/dashboard/hello.js +40 -0
- package/dist/esm/components/dashboard/helloBig.js +344 -0
- package/dist/esm/components/dashboard/quick.js +59 -0
- package/dist/esm/components/dialog/dialog.js +118 -0
- package/dist/esm/components/draw/drawApps.js +145 -0
- package/dist/esm/components/draw/drawAuth.js +50 -0
- package/dist/esm/components/draw/drawEmpty.js +92 -0
- package/dist/esm/components/draw/drawEmptyForm.js +128 -0
- package/dist/esm/components/draw/drawError.js +242 -0
- package/dist/esm/components/drawer/drawer.js +73 -0
- package/dist/esm/components/drawer/drawerPage.js +28 -0
- package/dist/esm/components/form/formItem.js +77 -0
- package/dist/esm/components/form/formLayout.js +38 -0
- package/dist/esm/components/form/modalForm.js +108 -0
- package/dist/esm/components/form/pageForm.js +94 -0
- package/dist/esm/components/form/settingForm.js +104 -0
- package/dist/esm/components/layout/filter.js +27 -0
- package/dist/esm/components/layout/list.js +333 -0
- package/dist/esm/components/layout/table.js +292 -0
- package/dist/esm/components/layout/tools.js +78 -0
- package/dist/esm/components/list/card.js +78 -0
- package/dist/esm/components/list/list.js +38 -0
- package/dist/esm/components/media/media.js +77 -0
- package/dist/esm/components/modal/modal.js +116 -0
- package/dist/esm/components/modal/modalPage.js +56 -0
- package/dist/esm/components/modal/modalTab.js +70 -0
- package/dist/esm/components/panel/alert.js +57 -0
- package/dist/esm/components/panel/setting.js +49 -0
- package/dist/esm/components/status/blockEmpty.js +78 -0
- package/dist/esm/components/table/tablePage.js +41 -0
- package/dist/esm/components/widget/connect.js +119 -0
- package/dist/esm/config/uno.js +32 -0
- package/dist/esm/config/validate.js +15 -0
- package/dist/esm/dvha-pro.css +1 -0
- package/dist/esm/hooks/action.js +213 -0
- package/dist/esm/hooks/dialog.js +32 -0
- package/dist/esm/hooks/drawer.js +25 -0
- package/dist/esm/hooks/modal.js +14 -0
- package/dist/esm/hooks/table/column.js +31 -0
- package/dist/esm/hooks/table/copy.js +27 -0
- package/dist/esm/hooks/table/hidden.js +48 -0
- package/dist/esm/hooks/table/image.js +24 -0
- package/dist/esm/hooks/table/input.js +81 -0
- package/dist/esm/hooks/table/map.js +21 -0
- package/dist/esm/hooks/table/media.js +34 -0
- package/dist/esm/hooks/table/status.js +32 -0
- package/dist/esm/hooks/table/switch.js +33 -0
- package/dist/esm/hooks/table.js +74 -0
- package/dist/esm/hooks/ui.js +16 -0
- package/dist/esm/index.js +139 -0
- package/dist/esm/langs/en-US.json.js +11 -0
- package/dist/esm/langs/zh-CN.json.js +11 -0
- package/dist/esm/main.js +18 -0
- package/dist/esm/node_modules/@iconify-json/tabler/icons.json.js +17 -0
- package/dist/esm/node_modules/@overlastic/core/dist/index.js +76 -0
- package/dist/esm/node_modules/@overlastic/vue/dist/index.js +122 -0
- package/dist/esm/node_modules/@vee-validate/i18n/dist/locale/en.json.js +9 -0
- package/dist/esm/node_modules/@vee-validate/i18n/dist/locale/zh_CN.json.js +9 -0
- package/dist/esm/node_modules/@vueuse/integrations/useFocusTrap.js +43 -0
- package/dist/esm/node_modules/@vueuse/shared/index.js +6 -0
- package/dist/esm/node_modules/colorizr/dist/index.js +318 -0
- package/dist/esm/node_modules/focus-trap/dist/focus-trap.esm.js +473 -0
- package/dist/esm/node_modules/lower-case/dist.es2015/index.js +6 -0
- package/dist/esm/node_modules/no-case/dist.es2015/index.js +18 -0
- package/dist/esm/node_modules/pascal-case/dist.es2015/index.js +13 -0
- package/dist/esm/node_modules/tabbable/dist/index.esm.js +202 -0
- package/dist/esm/node_modules/tslib/tslib.es6.js +12 -0
- package/dist/esm/pages/authLayout.js +38 -0
- package/dist/esm/pages/layout/global.js +51 -0
- package/dist/esm/pages/layout/page.js +54 -0
- package/dist/esm/pages/layout/tab.js +110 -0
- package/dist/esm/pages/layout.js +14 -0
- package/dist/esm/pages/loading.js +14 -0
- package/dist/esm/pages/login.js +143 -0
- package/dist/esm/pages/menu/avatar.js +205 -0
- package/dist/esm/pages/menu/button.js +60 -0
- package/dist/esm/pages/menu/cmd.js +156 -0
- package/dist/esm/pages/menu/main.js +101 -0
- package/dist/esm/pages/menu/mobile.js +38 -0
- package/dist/esm/pages/page.js +47 -0
- package/dist/esm/pages/page403.js +46 -0
- package/dist/esm/pages/page404.js +57 -0
- package/dist/esm/pages/page500.js +45 -0
- package/dist/esm/pages/pageEmpty.js +25 -0
- package/dist/esm/pages/pageLoading.js +22 -0
- package/dist/esm/pages/pageStatus.js +50 -0
- package/dist/esm/static/images/placeholder.png.js +4 -0
- package/dist/esm/stores/ui.js +34 -0
- package/dist/esm/theme/naiveTheme.js +97 -0
- package/dist/esm/theme/presetTheme.js +12 -0
- package/dist/esm/theme/uno.css.js +1288 -0
- package/dist/types/app.d.ts +1 -0
- package/dist/types/component.d.ts +5 -0
- package/dist/types/components/card/card.d.ts +140 -0
- package/dist/types/components/card/index.d.ts +1 -0
- package/dist/types/components/carousel/carousel.d.ts +20 -0
- package/dist/types/components/carousel/index.d.ts +1 -0
- package/dist/types/components/dashboard/hello.d.ts +16 -0
- package/dist/types/components/dashboard/helloBig.d.ts +19 -0
- package/dist/types/components/dashboard/index.d.ts +3 -0
- package/dist/types/components/dashboard/quick.d.ts +33 -0
- package/dist/types/components/dialog/dialog.d.ts +35 -0
- package/dist/types/components/dialog/index.d.ts +1 -0
- package/dist/types/components/draw/drawApps.d.ts +1 -0
- package/dist/types/components/draw/drawAuth.d.ts +1 -0
- package/dist/types/components/draw/drawEmpty.d.ts +1 -0
- package/dist/types/components/draw/drawEmptyForm.d.ts +1 -0
- package/dist/types/components/draw/drawError.d.ts +1 -0
- package/dist/types/components/draw/index.d.ts +5 -0
- package/dist/types/components/drawer/drawer.d.ts +19 -0
- package/dist/types/components/drawer/drawerPage.d.ts +1 -0
- package/dist/types/components/drawer/index.d.ts +2 -0
- package/dist/types/components/form/formItem.d.ts +27 -0
- package/dist/types/components/form/formLayout.d.ts +38 -0
- package/dist/types/components/form/index.d.ts +5 -0
- package/dist/types/components/form/modalForm.d.ts +89 -0
- package/dist/types/components/form/pageForm.d.ts +51 -0
- package/dist/types/components/form/settingForm.d.ts +69 -0
- package/dist/types/components/index.d.ts +14 -0
- package/dist/types/components/layout/filter.d.ts +13 -0
- package/dist/types/components/layout/index.d.ts +4 -0
- package/dist/types/components/layout/list.d.ts +85 -0
- package/dist/types/components/layout/table.d.ts +72 -0
- package/dist/types/components/layout/tools.d.ts +37 -0
- package/dist/types/components/list/card.d.ts +117 -0
- package/dist/types/components/list/index.d.ts +2 -0
- package/dist/types/components/list/list.d.ts +87 -0
- package/dist/types/components/media/index.d.ts +1 -0
- package/dist/types/components/media/media.d.ts +95 -0
- package/dist/types/components/modal/index.d.ts +3 -0
- package/dist/types/components/modal/modal.d.ts +66 -0
- package/dist/types/components/modal/modalPage.d.ts +42 -0
- package/dist/types/components/modal/modalTab.d.ts +42 -0
- package/dist/types/components/panel/alert.d.ts +32 -0
- package/dist/types/components/panel/index.d.ts +2 -0
- package/dist/types/components/panel/setting.d.ts +29 -0
- package/dist/types/components/status/blockEmpty.d.ts +25 -0
- package/dist/types/components/status/index.d.ts +1 -0
- package/dist/types/components/table/index.d.ts +1 -0
- package/dist/types/components/table/tablePage.d.ts +73 -0
- package/dist/types/components/widget/connect.d.ts +11 -0
- package/dist/types/components/widget/index.d.ts +1 -0
- package/dist/types/config/index.d.ts +2 -0
- package/dist/types/config/uno.d.ts +2 -0
- package/dist/types/config/validate.d.ts +1 -0
- package/dist/types/hooks/action.d.ts +17 -0
- package/dist/types/hooks/dialog.d.ts +17 -0
- package/dist/types/hooks/drawer.d.ts +11 -0
- package/dist/types/hooks/index.d.ts +6 -0
- package/dist/types/hooks/modal.d.ts +9 -0
- package/dist/types/hooks/table/column.d.ts +14 -0
- package/dist/types/hooks/table/copy.d.ts +6 -0
- package/dist/types/hooks/table/hidden.d.ts +7 -0
- package/dist/types/hooks/table/image.d.ts +8 -0
- package/dist/types/hooks/table/index.d.ts +7 -0
- package/dist/types/hooks/table/input.d.ts +9 -0
- package/dist/types/hooks/table/map.d.ts +13 -0
- package/dist/types/hooks/table/media.d.ts +12 -0
- package/dist/types/hooks/table/status.d.ts +12 -0
- package/dist/types/hooks/table/switch.d.ts +7 -0
- package/dist/types/hooks/table/types.d.ts +74 -0
- package/dist/types/hooks/table.d.ts +2 -0
- package/dist/types/hooks/ui.d.ts +8 -0
- package/dist/types/index.d.ts +10 -0
- package/dist/types/langs/index.d.ts +3 -0
- package/dist/types/main.d.ts +5 -0
- package/dist/types/pages/authLayout.d.ts +1 -0
- package/dist/types/pages/index.d.ts +12 -0
- package/dist/types/pages/layout/global.d.ts +1 -0
- package/dist/types/pages/layout/index.d.ts +3 -0
- package/dist/types/pages/layout/page.d.ts +1 -0
- package/dist/types/pages/layout/tab.d.ts +1 -0
- package/dist/types/pages/layout.d.ts +1 -0
- package/dist/types/pages/loading.d.ts +1 -0
- package/dist/types/pages/login.d.ts +1 -0
- package/dist/types/pages/menu/avatar.d.ts +14 -0
- package/dist/types/pages/menu/button.d.ts +41 -0
- package/dist/types/pages/menu/cmd.d.ts +7 -0
- package/dist/types/pages/menu/index.d.ts +4 -0
- package/dist/types/pages/menu/main.d.ts +13 -0
- package/dist/types/pages/menu/mobile.d.ts +1 -0
- package/dist/types/pages/page.d.ts +42 -0
- package/dist/types/pages/page403.d.ts +1 -0
- package/dist/types/pages/page404.d.ts +1 -0
- package/dist/types/pages/page500.d.ts +1 -0
- package/dist/types/pages/pageEmpty.d.ts +7 -0
- package/dist/types/pages/pageLoading.d.ts +1 -0
- package/dist/types/pages/pageStatus.d.ts +7 -0
- package/dist/types/stores/index.d.ts +1 -0
- package/dist/types/stores/ui.d.ts +28 -0
- package/dist/types/theme/index.d.ts +2 -0
- package/dist/types/theme/naiveTheme.d.ts +5 -0
- package/dist/types/theme/presetTheme.d.ts +7 -0
- package/package.json +73 -0
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
import { defineComponent as e, createVNode as l } from "vue";
|
|
2
|
+
const r = /* @__PURE__ */ e({
|
|
3
|
+
name: "DuxDrawError",
|
|
4
|
+
setup() {
|
|
5
|
+
return () => l("svg", {
|
|
6
|
+
viewBox: "0 0 200 140",
|
|
7
|
+
fill: "none",
|
|
8
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
9
|
+
}, [l("defs", null, [l("filter", {
|
|
10
|
+
id: "filter_1_304_dd",
|
|
11
|
+
x: "0.000000",
|
|
12
|
+
y: "7.000000",
|
|
13
|
+
width: "157.000000",
|
|
14
|
+
height: "47.000000",
|
|
15
|
+
filterUnits: "userSpaceOnUse",
|
|
16
|
+
"color-interpolation-filters": "sRGB"
|
|
17
|
+
}, [l("feFlood", {
|
|
18
|
+
"flood-opacity": "0",
|
|
19
|
+
result: "BackgroundImageFix"
|
|
20
|
+
}, null), l("feColorMatrix", {
|
|
21
|
+
in: "SourceAlpha",
|
|
22
|
+
type: "matrix",
|
|
23
|
+
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",
|
|
24
|
+
result: "hardAlpha"
|
|
25
|
+
}, null), l("feOffset", {
|
|
26
|
+
dx: "0",
|
|
27
|
+
dy: "3"
|
|
28
|
+
}, null), l("feGaussianBlur", {
|
|
29
|
+
stdDeviation: "2"
|
|
30
|
+
}, null), l("feComposite", {
|
|
31
|
+
in2: "hardAlpha",
|
|
32
|
+
operator: "out",
|
|
33
|
+
k2: "-1",
|
|
34
|
+
k3: "1"
|
|
35
|
+
}, null), l("feColorMatrix", {
|
|
36
|
+
type: "matrix",
|
|
37
|
+
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"
|
|
38
|
+
}, null), l("feBlend", {
|
|
39
|
+
mode: "normal",
|
|
40
|
+
in2: "BackgroundImageFix",
|
|
41
|
+
result: "effect_dropShadow_1"
|
|
42
|
+
}, null), l("feBlend", {
|
|
43
|
+
mode: "normal",
|
|
44
|
+
in: "SourceGraphic",
|
|
45
|
+
in2: "effect_dropShadow_1",
|
|
46
|
+
result: "shape"
|
|
47
|
+
}, null)]), l("filter", {
|
|
48
|
+
id: "filter_1_313_dd",
|
|
49
|
+
x: "43.000000",
|
|
50
|
+
y: "50.000000",
|
|
51
|
+
width: "157.000000",
|
|
52
|
+
height: "47.000000",
|
|
53
|
+
filterUnits: "userSpaceOnUse",
|
|
54
|
+
"color-interpolation-filters": "sRGB"
|
|
55
|
+
}, [l("feFlood", {
|
|
56
|
+
"flood-opacity": "0",
|
|
57
|
+
result: "BackgroundImageFix"
|
|
58
|
+
}, null), l("feColorMatrix", {
|
|
59
|
+
in: "SourceAlpha",
|
|
60
|
+
type: "matrix",
|
|
61
|
+
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",
|
|
62
|
+
result: "hardAlpha"
|
|
63
|
+
}, null), l("feOffset", {
|
|
64
|
+
dx: "0",
|
|
65
|
+
dy: "3"
|
|
66
|
+
}, null), l("feGaussianBlur", {
|
|
67
|
+
stdDeviation: "2"
|
|
68
|
+
}, null), l("feComposite", {
|
|
69
|
+
in2: "hardAlpha",
|
|
70
|
+
operator: "out",
|
|
71
|
+
k2: "-1",
|
|
72
|
+
k3: "1"
|
|
73
|
+
}, null), l("feColorMatrix", {
|
|
74
|
+
type: "matrix",
|
|
75
|
+
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"
|
|
76
|
+
}, null), l("feBlend", {
|
|
77
|
+
mode: "normal",
|
|
78
|
+
in2: "BackgroundImageFix",
|
|
79
|
+
result: "effect_dropShadow_1"
|
|
80
|
+
}, null), l("feBlend", {
|
|
81
|
+
mode: "normal",
|
|
82
|
+
in: "SourceGraphic",
|
|
83
|
+
in2: "effect_dropShadow_1",
|
|
84
|
+
result: "shape"
|
|
85
|
+
}, null)]), l("filter", {
|
|
86
|
+
id: "filter_1_322_dd",
|
|
87
|
+
x: "0.000000",
|
|
88
|
+
y: "93.000000",
|
|
89
|
+
width: "157.000000",
|
|
90
|
+
height: "47.000000",
|
|
91
|
+
filterUnits: "userSpaceOnUse",
|
|
92
|
+
"color-interpolation-filters": "sRGB"
|
|
93
|
+
}, [l("feFlood", {
|
|
94
|
+
"flood-opacity": "0",
|
|
95
|
+
result: "BackgroundImageFix"
|
|
96
|
+
}, null), l("feColorMatrix", {
|
|
97
|
+
in: "SourceAlpha",
|
|
98
|
+
type: "matrix",
|
|
99
|
+
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",
|
|
100
|
+
result: "hardAlpha"
|
|
101
|
+
}, null), l("feOffset", {
|
|
102
|
+
dx: "0",
|
|
103
|
+
dy: "3"
|
|
104
|
+
}, null), l("feGaussianBlur", {
|
|
105
|
+
stdDeviation: "2"
|
|
106
|
+
}, null), l("feComposite", {
|
|
107
|
+
in2: "hardAlpha",
|
|
108
|
+
operator: "out",
|
|
109
|
+
k2: "-1",
|
|
110
|
+
k3: "1"
|
|
111
|
+
}, null), l("feColorMatrix", {
|
|
112
|
+
type: "matrix",
|
|
113
|
+
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"
|
|
114
|
+
}, null), l("feBlend", {
|
|
115
|
+
mode: "normal",
|
|
116
|
+
in2: "BackgroundImageFix",
|
|
117
|
+
result: "effect_dropShadow_1"
|
|
118
|
+
}, null), l("feBlend", {
|
|
119
|
+
mode: "normal",
|
|
120
|
+
in: "SourceGraphic",
|
|
121
|
+
in2: "effect_dropShadow_1",
|
|
122
|
+
result: "shape"
|
|
123
|
+
}, null)]), l("linearGradient", {
|
|
124
|
+
id: "paint_linear_1_302_0",
|
|
125
|
+
x1: "102.000000",
|
|
126
|
+
y1: "0.000000",
|
|
127
|
+
x2: "102.000000",
|
|
128
|
+
y2: "140.000000",
|
|
129
|
+
gradientUnits: "userSpaceOnUse"
|
|
130
|
+
}, [l("stop", {
|
|
131
|
+
"stop-color": "rgba(var(--ui-color-warning) / 0.2)"
|
|
132
|
+
}, null), l("stop", {
|
|
133
|
+
offset: "1.000000",
|
|
134
|
+
"stop-color": "rgba(var(--ui-color-warning) / 0.2)"
|
|
135
|
+
}, null)])]), l("path", {
|
|
136
|
+
id: "Rectangle 5622",
|
|
137
|
+
d: "M42 0L162 0C167.52 0 172 4.47 172 10L172 130C172 135.52 167.52 140 162 140L42 140C36.47 140 32 135.52 32 130L32 10C32 4.47 36.47 0 42 0Z",
|
|
138
|
+
fill: "url(#paint_linear_1_302_0)",
|
|
139
|
+
"fill-opacity": "1.000000",
|
|
140
|
+
"fill-rule": "evenodd"
|
|
141
|
+
}, null), l("g", {
|
|
142
|
+
filter: "url(#filter_1_304_dd)"
|
|
143
|
+
}, [l("path", {
|
|
144
|
+
id: "Rectangle 5623",
|
|
145
|
+
d: "M11 10L146 10C148.76 10 151 12.23 151 15L151 40C151 42.76 148.76 45 146 45L11 45C8.23 45 6 42.76 6 40L6 15C6 12.23 8.23 10 11 10Z",
|
|
146
|
+
fill: "rgba(var(--ui-color-bg-muted))",
|
|
147
|
+
"fill-opacity": "1.000000",
|
|
148
|
+
"fill-rule": "evenodd"
|
|
149
|
+
}, null)]), l("path", {
|
|
150
|
+
id: "Rectangle 5617",
|
|
151
|
+
d: "M49 18L75 18C76.65 18 78 19.34 78 21C78 22.65 76.65 24 75 24L49 24C47.34 24 46 22.65 46 21C46 19.34 47.34 18 49 18Z",
|
|
152
|
+
fill: "rgba(var(--ui-color-warning) / 0.4)",
|
|
153
|
+
"fill-opacity": "1.000000",
|
|
154
|
+
"fill-rule": "evenodd"
|
|
155
|
+
}, null), l("path", {
|
|
156
|
+
id: "Rectangle 5618",
|
|
157
|
+
d: "M49 31L93 31C94.65 31 96 32.34 96 34C96 35.65 94.65 37 93 37L49 37C47.34 37 46 35.65 46 34C46 32.34 47.34 31 49 31Z",
|
|
158
|
+
fill: "rgba(var(--ui-color-warning) / 0.2)",
|
|
159
|
+
"fill-opacity": "1.000000",
|
|
160
|
+
"fill-rule": "evenodd"
|
|
161
|
+
}, null), l("path", {
|
|
162
|
+
id: "Rectangle 5624",
|
|
163
|
+
d: "M14 13L33 13C35.76 13 38 15.23 38 18L38 37C38 39.76 35.76 42 33 42L14 42C11.23 42 9 39.76 9 37L9 18C9 15.23 11.23 13 14 13Z",
|
|
164
|
+
fill: "rgba(var(--ui-color-warning) / 0.8)",
|
|
165
|
+
"fill-opacity": "1.000000",
|
|
166
|
+
"fill-rule": "evenodd"
|
|
167
|
+
}, null), l("path", {
|
|
168
|
+
id: "Path 25917",
|
|
169
|
+
d: "M21.22 30.78L23.22 30.78L23.24 30.01C23.24 28.99 23.88 28.73 24.78 28.44C25.68 28.19 26.48 27.64 27.05 26.89C27.62 26.14 27.92 25.23 27.93 24.29C27.94 23.71 27.85 23.14 27.63 22.6C27.42 22.07 27.1 21.59 26.69 21.18C26.28 20.78 25.79 20.47 25.25 20.26C24.72 20.06 24.14 19.97 23.57 20C22.96 19.98 22.36 20.09 21.8 20.32C21.23 20.55 20.72 20.88 20.3 21.31C19.87 21.74 19.53 22.26 19.31 22.82C19.08 23.39 18.98 23.99 18.99 24.6L21.06 24.6C21.05 24.26 21.11 23.93 21.23 23.62C21.36 23.3 21.54 23.02 21.77 22.78C22.01 22.54 22.29 22.35 22.6 22.22C22.9 22.09 23.24 22.02 23.57 22.02C23.87 22 24.18 22.05 24.46 22.16C24.74 22.27 24.99 22.44 25.21 22.65C25.42 22.87 25.58 23.13 25.68 23.42C25.78 23.7 25.82 24.01 25.79 24.31C25.78 24.79 25.61 25.27 25.31 25.65C25.01 26.03 24.59 26.31 24.12 26.44L23.4 26.73C22.68 26.9 22.06 27.33 21.66 27.94C21.25 28.55 21.08 29.28 21.2 30.01L21.22 30.78ZM22.21 35.53C22.4 35.54 22.6 35.5 22.78 35.43C22.96 35.36 23.13 35.26 23.27 35.12C23.41 34.99 23.53 34.82 23.61 34.64C23.68 34.46 23.72 34.27 23.73 34.08C23.72 33.88 23.68 33.69 23.6 33.51C23.53 33.33 23.41 33.16 23.27 33.03C23.13 32.89 22.96 32.79 22.78 32.72C22.6 32.65 22.4 32.62 22.21 32.62C22.01 32.62 21.82 32.65 21.63 32.72C21.45 32.79 21.28 32.89 21.14 33.03C21 33.16 20.89 33.33 20.81 33.51C20.73 33.69 20.69 33.88 20.69 34.08C20.69 34.27 20.73 34.46 20.81 34.64C20.89 34.82 21 34.99 21.14 35.12C21.28 35.26 21.45 35.36 21.63 35.43C21.82 35.5 22.01 35.54 22.21 35.53L22.21 35.53Z",
|
|
170
|
+
fill: "rgba(var(--ui-color-bg-muted))",
|
|
171
|
+
"fill-opacity": "1.000000",
|
|
172
|
+
"fill-rule": "evenodd"
|
|
173
|
+
}, null), l("g", {
|
|
174
|
+
filter: "url(#filter_1_313_dd)"
|
|
175
|
+
}, [l("path", {
|
|
176
|
+
id: "Path 25918",
|
|
177
|
+
d: "M54 53L189 53C190.32 53 191.59 53.52 192.53 54.46C193.47 55.4 194 56.67 194 58L194 83C194 84.32 193.47 85.59 192.53 86.53C191.59 87.47 190.32 88 189 88L54 88C52.67 88 51.4 87.47 50.46 86.53C49.52 85.59 49 84.32 49 83L49 58C49 56.67 49.52 55.4 50.46 54.46C51.4 53.52 52.67 53 54 53L54 53Z",
|
|
178
|
+
fill: "rgba(var(--ui-color-bg-muted))",
|
|
179
|
+
"fill-opacity": "1.000000",
|
|
180
|
+
"fill-rule": "evenodd"
|
|
181
|
+
}, null)]), l("path", {
|
|
182
|
+
id: "Rectangle 5617",
|
|
183
|
+
d: "M92 61L118 61C119.65 61 121 62.34 121 64C121 65.65 119.65 67 118 67L92 67C90.34 67 89 65.65 89 64C89 62.34 90.34 61 92 61Z",
|
|
184
|
+
fill: "rgba(var(--ui-color-warning) / 0.4)",
|
|
185
|
+
"fill-opacity": "1.000000",
|
|
186
|
+
"fill-rule": "evenodd"
|
|
187
|
+
}, null), l("path", {
|
|
188
|
+
id: "Rectangle 5618",
|
|
189
|
+
d: "M92 74L136 74C137.65 74 139 75.34 139 77C139 78.65 137.65 80 136 80L92 80C90.34 80 89 78.65 89 77C89 75.34 90.34 74 92 74Z",
|
|
190
|
+
fill: "rgba(var(--ui-color-warning) / 0.2)",
|
|
191
|
+
"fill-opacity": "1.000000",
|
|
192
|
+
"fill-rule": "evenodd"
|
|
193
|
+
}, null), l("path", {
|
|
194
|
+
id: "Rectangle 5624",
|
|
195
|
+
d: "M57 56L76 56C78.76 56 81 58.23 81 61L81 80C81 82.76 78.76 85 76 85L57 85C54.23 85 52 82.76 52 80L52 61C52 58.23 54.23 56 57 56Z",
|
|
196
|
+
fill: "rgba(var(--ui-color-warning) / 0.8)",
|
|
197
|
+
"fill-opacity": "1.000000",
|
|
198
|
+
"fill-rule": "evenodd"
|
|
199
|
+
}, null), l("path", {
|
|
200
|
+
id: "Path 25917",
|
|
201
|
+
d: "M64.22 73.78L66.22 73.78L66.24 73.01C66.24 71.99 66.88 71.73 67.78 71.44C68.68 71.19 69.48 70.64 70.05 69.89C70.62 69.14 70.92 68.23 70.93 67.29C70.94 66.71 70.85 66.14 70.63 65.6C70.42 65.07 70.1 64.59 69.69 64.18C69.28 63.78 68.79 63.47 68.25 63.26C67.72 63.06 67.14 62.97 66.57 63C65.96 62.98 65.36 63.09 64.8 63.32C64.23 63.55 63.72 63.88 63.3 64.31C62.87 64.74 62.53 65.26 62.31 65.82C62.08 66.39 61.98 66.99 61.99 67.6L64.06 67.6C64.05 67.26 64.11 66.93 64.23 66.62C64.36 66.3 64.54 66.02 64.77 65.78C65.01 65.54 65.29 65.35 65.6 65.22C65.9 65.09 66.24 65.02 66.57 65.02C66.87 65 67.18 65.05 67.46 65.16C67.74 65.27 67.99 65.44 68.21 65.65C68.42 65.87 68.58 66.13 68.68 66.42C68.78 66.7 68.82 67.01 68.79 67.31C68.78 67.79 68.61 68.27 68.31 68.65C68.01 69.03 67.59 69.31 67.12 69.44L66.4 69.73C65.68 69.9 65.06 70.33 64.66 70.94C64.25 71.55 64.08 72.28 64.19 73.01L64.22 73.78ZM65.21 78.53C65.4 78.54 65.6 78.5 65.78 78.43C65.96 78.36 66.13 78.26 66.27 78.12C66.41 77.99 66.53 77.82 66.61 77.64C66.68 77.46 66.72 77.27 66.73 77.08C66.72 76.88 66.68 76.69 66.6 76.51C66.53 76.33 66.41 76.16 66.27 76.03C66.13 75.89 65.96 75.79 65.78 75.72C65.6 75.65 65.4 75.62 65.21 75.62C65.01 75.62 64.82 75.65 64.63 75.72C64.45 75.79 64.28 75.89 64.14 76.03C64 76.16 63.89 76.33 63.81 76.51C63.73 76.69 63.69 76.88 63.69 77.08C63.69 77.27 63.73 77.46 63.81 77.64C63.89 77.82 64 77.99 64.14 78.12C64.28 78.26 64.45 78.36 64.63 78.43C64.82 78.5 65.01 78.54 65.21 78.53L65.21 78.53Z",
|
|
202
|
+
fill: "rgba(var(--ui-color-bg-muted))",
|
|
203
|
+
"fill-opacity": "1.000000",
|
|
204
|
+
"fill-rule": "evenodd"
|
|
205
|
+
}, null), l("g", {
|
|
206
|
+
filter: "url(#filter_1_322_dd)"
|
|
207
|
+
}, [l("path", {
|
|
208
|
+
id: "Path 25919",
|
|
209
|
+
d: "M11 96L146 96C147.32 96 148.59 96.52 149.53 97.46C150.47 98.4 151 99.67 151 101L151 126C151 127.32 150.47 128.59 149.53 129.53C148.59 130.47 147.32 131 146 131L11 131C9.67 131 8.4 130.47 7.46 129.53C6.52 128.59 6 127.32 6 126L6 101C6 99.67 6.52 98.4 7.46 97.46C8.4 96.52 9.67 96 11 96L11 96Z",
|
|
210
|
+
fill: "rgba(var(--ui-color-bg-muted))",
|
|
211
|
+
"fill-opacity": "1.000000",
|
|
212
|
+
"fill-rule": "evenodd"
|
|
213
|
+
}, null)]), l("path", {
|
|
214
|
+
id: "Rectangle 5617",
|
|
215
|
+
d: "M49 104L75 104C76.65 104 78 105.34 78 107C78 108.65 76.65 110 75 110L49 110C47.34 110 46 108.65 46 107C46 105.34 47.34 104 49 104Z",
|
|
216
|
+
fill: "rgba(var(--ui-color-warning) / 0.4)",
|
|
217
|
+
"fill-opacity": "1.000000",
|
|
218
|
+
"fill-rule": "evenodd"
|
|
219
|
+
}, null), l("path", {
|
|
220
|
+
id: "Rectangle 5618",
|
|
221
|
+
d: "M49 117L93 117C94.65 117 96 118.34 96 120C96 121.65 94.65 123 93 123L49 123C47.34 123 46 121.65 46 120C46 118.34 47.34 117 49 117Z",
|
|
222
|
+
fill: "rgba(var(--ui-color-warning) / 0.2)",
|
|
223
|
+
"fill-opacity": "1.000000",
|
|
224
|
+
"fill-rule": "evenodd"
|
|
225
|
+
}, null), l("path", {
|
|
226
|
+
id: "Rectangle 5624",
|
|
227
|
+
d: "M14 99L33 99C35.76 99 38 101.23 38 104L38 123C38 125.76 35.76 128 33 128L14 128C11.23 128 9 125.76 9 123L9 104C9 101.23 11.23 99 14 99Z",
|
|
228
|
+
fill: "rgba(var(--ui-color-warning) / 0.8)",
|
|
229
|
+
"fill-opacity": "1.000000",
|
|
230
|
+
"fill-rule": "evenodd"
|
|
231
|
+
}, null), l("path", {
|
|
232
|
+
id: "Path 25917",
|
|
233
|
+
d: "M21.22 116.78L23.22 116.78L23.24 116.01C23.24 114.99 23.88 114.73 24.78 114.44C25.68 114.19 26.48 113.64 27.05 112.89C27.62 112.14 27.92 111.23 27.93 110.29C27.94 109.71 27.85 109.14 27.63 108.61C27.42 108.07 27.1 107.59 26.69 107.18C26.28 106.78 25.79 106.47 25.25 106.26C24.72 106.06 24.14 105.97 23.57 106C22.96 105.98 22.36 106.09 21.8 106.32C21.23 106.55 20.72 106.88 20.3 107.31C19.87 107.75 19.53 108.26 19.31 108.82C19.08 109.39 18.98 109.99 18.99 110.6L21.06 110.6C21.05 110.26 21.11 109.93 21.23 109.62C21.36 109.3 21.54 109.02 21.77 108.78C22.01 108.54 22.29 108.35 22.6 108.22C22.9 108.09 23.24 108.02 23.57 108.02C23.87 108 24.18 108.05 24.46 108.16C24.74 108.27 24.99 108.44 25.21 108.66C25.42 108.87 25.58 109.13 25.68 109.42C25.78 109.7 25.82 110.01 25.79 110.31C25.78 110.8 25.61 111.27 25.31 111.65C25.01 112.03 24.59 112.31 24.12 112.44L23.4 112.73C22.68 112.9 22.06 113.33 21.66 113.94C21.25 114.55 21.08 115.28 21.2 116.01L21.22 116.78ZM22.21 121.53C22.4 121.54 22.6 121.5 22.78 121.43C22.96 121.36 23.13 121.26 23.27 121.12C23.41 120.99 23.53 120.83 23.61 120.65C23.68 120.47 23.72 120.27 23.73 120.08C23.72 119.88 23.68 119.69 23.6 119.51C23.53 119.33 23.41 119.16 23.27 119.03C23.13 118.89 22.96 118.79 22.78 118.72C22.6 118.65 22.4 118.62 22.21 118.62C22.01 118.62 21.82 118.65 21.63 118.72C21.45 118.79 21.28 118.89 21.14 119.03C21 119.16 20.89 119.33 20.81 119.51C20.73 119.69 20.69 119.88 20.69 120.08C20.69 120.27 20.73 120.47 20.81 120.65C20.89 120.83 21 120.99 21.14 121.12C21.28 121.26 21.45 121.36 21.63 121.43C21.82 121.5 22.01 121.54 22.21 121.53L22.21 121.53Z",
|
|
234
|
+
fill: "rgba(var(--ui-color-bg-muted))",
|
|
235
|
+
"fill-opacity": "1.000000",
|
|
236
|
+
"fill-rule": "evenodd"
|
|
237
|
+
}, null)]);
|
|
238
|
+
}
|
|
239
|
+
});
|
|
240
|
+
export {
|
|
241
|
+
r as DuxDrawError
|
|
242
|
+
};
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { defineComponent as s, defineAsyncComponent as u, createVNode as e, Suspense as c, mergeProps as d } from "vue";
|
|
2
|
+
import { useExtendOverlay as f } from "../../node_modules/@overlastic/vue/dist/index.js";
|
|
3
|
+
import { NDrawer as m, NButton as b, NSpin as h } from "naive-ui";
|
|
4
|
+
const y = /* @__PURE__ */ s({
|
|
5
|
+
name: "DuxDrawer",
|
|
6
|
+
props: {
|
|
7
|
+
title: String,
|
|
8
|
+
width: [Number, String],
|
|
9
|
+
component: {
|
|
10
|
+
type: Function,
|
|
11
|
+
required: !0
|
|
12
|
+
},
|
|
13
|
+
componentProps: Object
|
|
14
|
+
},
|
|
15
|
+
setup(t) {
|
|
16
|
+
const {
|
|
17
|
+
visible: o,
|
|
18
|
+
resolve: l,
|
|
19
|
+
reject: n,
|
|
20
|
+
vanish: r
|
|
21
|
+
} = f({
|
|
22
|
+
duration: 1e3
|
|
23
|
+
}), a = (t == null ? void 0 : t.componentProps) || {};
|
|
24
|
+
a.onConfirm = l, a.onClose = n;
|
|
25
|
+
const i = u(t.component);
|
|
26
|
+
return () => e(m, {
|
|
27
|
+
closeOnEsc: !1,
|
|
28
|
+
maskClosable: !1,
|
|
29
|
+
minWidth: 400,
|
|
30
|
+
defaultWidth: (t == null ? void 0 : t.width) || 400,
|
|
31
|
+
resizable: !0,
|
|
32
|
+
show: o.value,
|
|
33
|
+
onUpdateShow: () => l(),
|
|
34
|
+
onAfterLeave: () => {
|
|
35
|
+
r();
|
|
36
|
+
},
|
|
37
|
+
class: ""
|
|
38
|
+
}, {
|
|
39
|
+
default: () => [e("div", {
|
|
40
|
+
class: "h-full flex flex-col"
|
|
41
|
+
}, [e("div", {
|
|
42
|
+
class: "flex justify-between items-center px-4 py-3 border-b border-gray-2 dark:border-gray-3"
|
|
43
|
+
}, [e("div", {
|
|
44
|
+
class: "text-base"
|
|
45
|
+
}, [t == null ? void 0 : t.title]), e("div", null, [e(b, {
|
|
46
|
+
quaternary: !0,
|
|
47
|
+
size: "small",
|
|
48
|
+
color: "default",
|
|
49
|
+
class: "!px-1 h-6",
|
|
50
|
+
onClick: () => n()
|
|
51
|
+
}, {
|
|
52
|
+
default: () => [e("div", {
|
|
53
|
+
class: "i-tabler:x w-5 h-5"
|
|
54
|
+
}, null)]
|
|
55
|
+
})])]), e(c, null, {
|
|
56
|
+
default: () => e(i, d(a, {
|
|
57
|
+
onSuccess: l,
|
|
58
|
+
onClose: n
|
|
59
|
+
}), null),
|
|
60
|
+
fallback: () => e(h, {
|
|
61
|
+
show: !0
|
|
62
|
+
}, {
|
|
63
|
+
default: () => [e("div", {
|
|
64
|
+
class: "flex-1 min-h-1"
|
|
65
|
+
}, null)]
|
|
66
|
+
})
|
|
67
|
+
})])]
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
export {
|
|
72
|
+
y as default
|
|
73
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { defineComponent as f, createVNode as r } from "vue";
|
|
2
|
+
import { NScrollbar as p } from "naive-ui";
|
|
3
|
+
const c = /* @__PURE__ */ f({
|
|
4
|
+
name: "DuxDrawerPage",
|
|
5
|
+
props: {},
|
|
6
|
+
setup(d, {
|
|
7
|
+
slots: e
|
|
8
|
+
}) {
|
|
9
|
+
return () => {
|
|
10
|
+
var a;
|
|
11
|
+
return r("div", {
|
|
12
|
+
class: "flex-1 min-h-1 flex flex-col"
|
|
13
|
+
}, [r("div", {
|
|
14
|
+
class: "flex-1 min-h-1"
|
|
15
|
+
}, [r(p, null, {
|
|
16
|
+
default: () => {
|
|
17
|
+
var n;
|
|
18
|
+
return [(n = e.default) == null ? void 0 : n.call(e)];
|
|
19
|
+
}
|
|
20
|
+
})]), r("div", {
|
|
21
|
+
class: "flex-none border-t border-gray-3 p-4 flex justify-end gap-2"
|
|
22
|
+
}, [(a = e.action) == null ? void 0 : a.call(e)])]);
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
export {
|
|
27
|
+
c as DuxDrawerPage
|
|
28
|
+
};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { defineComponent as x, toRef as b, computed as r, watch as g, inject as h, createVNode as l, createTextVNode as y } from "vue";
|
|
2
|
+
import { watchThrottled as j } from "@vueuse/core";
|
|
3
|
+
import { useField as S } from "vee-validate";
|
|
4
|
+
const p = /* @__PURE__ */ x({
|
|
5
|
+
name: "DuxFormItem",
|
|
6
|
+
props: {
|
|
7
|
+
label: String,
|
|
8
|
+
description: [String, Object],
|
|
9
|
+
path: String,
|
|
10
|
+
labelPlacement: {
|
|
11
|
+
type: String
|
|
12
|
+
},
|
|
13
|
+
labelWidth: {
|
|
14
|
+
type: Number
|
|
15
|
+
},
|
|
16
|
+
rule: [String, Object],
|
|
17
|
+
message: [String, Object]
|
|
18
|
+
},
|
|
19
|
+
setup(e, {
|
|
20
|
+
slots: i
|
|
21
|
+
}) {
|
|
22
|
+
const c = b(e.message), {
|
|
23
|
+
errorMessage: d,
|
|
24
|
+
value: m,
|
|
25
|
+
setErrors: f,
|
|
26
|
+
validate: s
|
|
27
|
+
} = S(e.path || "", e.rule || {}, {
|
|
28
|
+
label: e.label
|
|
29
|
+
}), o = r(() => e.rule ? typeof e.rule == "string" ? e.rule.includes("required") : typeof e.rule == "object" ? "required" in e.rule : !1 : !1), n = r(() => d.value && (c.value || d.value));
|
|
30
|
+
g(n, (t) => {
|
|
31
|
+
t && f(t);
|
|
32
|
+
}, {
|
|
33
|
+
immediate: !0
|
|
34
|
+
}), j(m, (t) => {
|
|
35
|
+
t && s();
|
|
36
|
+
}, {
|
|
37
|
+
throttle: 300,
|
|
38
|
+
deep: !0
|
|
39
|
+
});
|
|
40
|
+
const u = h("dux.form", {
|
|
41
|
+
labelPlacement: "left",
|
|
42
|
+
labelWidth: 70,
|
|
43
|
+
divider: !1
|
|
44
|
+
}), a = r(() => e.labelPlacement || u.labelPlacement), v = r(() => {
|
|
45
|
+
let t = e.labelWidth || u.labelWidth || 70;
|
|
46
|
+
return typeof t == "number" && (t = `${t}px`), a.value === "top" || a.value === "setting" ? "auto" : t;
|
|
47
|
+
});
|
|
48
|
+
return () => {
|
|
49
|
+
var t;
|
|
50
|
+
return l("div", {
|
|
51
|
+
class: ["flex flex-col ", a.value !== "top" ? "md:flex-row gap-2" : "gap-1", u.divider && "pb-4", a.value === "setting" ? "md:justify-between md:items-start md:gap-4" : ""]
|
|
52
|
+
}, [l("div", {
|
|
53
|
+
class: [a.value !== "top" && a.value !== "setting" ? "mt-1.5" : ""],
|
|
54
|
+
style: {
|
|
55
|
+
width: v.value
|
|
56
|
+
}
|
|
57
|
+
}, [l("div", {
|
|
58
|
+
class: "flex flex-col"
|
|
59
|
+
}, [l("div", null, [l("span", {
|
|
60
|
+
class: "relative flex items-center gap-1"
|
|
61
|
+
}, [e.label, o.value && l("span", {
|
|
62
|
+
class: "text-error font-mono text-xs"
|
|
63
|
+
}, [y("*")])])]), e.description && typeof e.description == "string" && l("div", {
|
|
64
|
+
class: "text-sm text-muted"
|
|
65
|
+
}, [e.description])])]), l("div", {
|
|
66
|
+
class: ["flex flex-col gap-1", a.value !== "left" ? "md:mt-1" : "", a.value === "setting" ? "flex-none" : "flex-1"]
|
|
67
|
+
}, [l("div", null, [(t = i == null ? void 0 : i.default) == null ? void 0 : t.call(i)]), e.description && typeof e.description != "string" && l("div", {
|
|
68
|
+
class: "text-sm text-muted"
|
|
69
|
+
}, [e.description]), n.value && l("div", {
|
|
70
|
+
class: "text-error"
|
|
71
|
+
}, [n.value])])]);
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
export {
|
|
76
|
+
p as DuxFormItem
|
|
77
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { defineComponent as a, provide as l, createVNode as t } from "vue";
|
|
2
|
+
const r = /* @__PURE__ */ a({
|
|
3
|
+
name: "DuxFormLayout",
|
|
4
|
+
props: {
|
|
5
|
+
labelPlacement: {
|
|
6
|
+
type: String,
|
|
7
|
+
default: "left"
|
|
8
|
+
},
|
|
9
|
+
labelWidth: {
|
|
10
|
+
type: Number
|
|
11
|
+
},
|
|
12
|
+
inline: {
|
|
13
|
+
type: Boolean,
|
|
14
|
+
default: !1
|
|
15
|
+
},
|
|
16
|
+
divider: {
|
|
17
|
+
type: Boolean,
|
|
18
|
+
default: !1
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
setup(e, {
|
|
22
|
+
slots: d
|
|
23
|
+
}) {
|
|
24
|
+
return l("dux.form", {
|
|
25
|
+
labelPlacement: e.labelPlacement,
|
|
26
|
+
labelWidth: e.labelWidth,
|
|
27
|
+
divider: e.divider
|
|
28
|
+
}), () => {
|
|
29
|
+
var i;
|
|
30
|
+
return t("div", {
|
|
31
|
+
class: ["flex gap-4", e.divider && "divide-y divide-muted", e.inline ? "flex-row" : "flex-col"]
|
|
32
|
+
}, [(i = d == null ? void 0 : d.default) == null ? void 0 : i.call(d)]);
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
export {
|
|
37
|
+
r as DuxFormLayout
|
|
38
|
+
};
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { defineComponent as C, computed as F, toRef as x, createVNode as i, Fragment as E, resolveComponent as r, mergeProps as v, isVNode as h } from "vue";
|
|
2
|
+
import { useI18n as j, useExtendForm as M } from "@duxweb/dvha-core";
|
|
3
|
+
import { useMessage as D } from "naive-ui";
|
|
4
|
+
import "@vueuse/core";
|
|
5
|
+
import N from "../modal/modalPage.js";
|
|
6
|
+
import { DuxFormLayout as l } from "./formLayout.js";
|
|
7
|
+
function d(t) {
|
|
8
|
+
return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !h(t);
|
|
9
|
+
}
|
|
10
|
+
const A = /* @__PURE__ */ C({
|
|
11
|
+
name: "DuxModalForm",
|
|
12
|
+
props: {
|
|
13
|
+
id: {
|
|
14
|
+
type: [String, Number]
|
|
15
|
+
},
|
|
16
|
+
action: {
|
|
17
|
+
type: String
|
|
18
|
+
},
|
|
19
|
+
path: {
|
|
20
|
+
type: String
|
|
21
|
+
},
|
|
22
|
+
data: {
|
|
23
|
+
type: Object
|
|
24
|
+
},
|
|
25
|
+
onClose: {
|
|
26
|
+
type: Function
|
|
27
|
+
},
|
|
28
|
+
title: {
|
|
29
|
+
type: String
|
|
30
|
+
},
|
|
31
|
+
onSuccess: {
|
|
32
|
+
type: Function
|
|
33
|
+
},
|
|
34
|
+
onError: {
|
|
35
|
+
type: Function
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
extends: l,
|
|
39
|
+
setup(t, {
|
|
40
|
+
slots: c
|
|
41
|
+
}) {
|
|
42
|
+
const {
|
|
43
|
+
t: o
|
|
44
|
+
} = j(), f = F(() => {
|
|
45
|
+
const {
|
|
46
|
+
onClose: e,
|
|
47
|
+
onSuccess: n,
|
|
48
|
+
onError: a,
|
|
49
|
+
action: O,
|
|
50
|
+
title: P,
|
|
51
|
+
id: _,
|
|
52
|
+
path: k,
|
|
53
|
+
data: L,
|
|
54
|
+
...S
|
|
55
|
+
} = t;
|
|
56
|
+
return S;
|
|
57
|
+
}), g = x(t, "data", {}), u = D(), {
|
|
58
|
+
isLoading: m,
|
|
59
|
+
onSubmit: y,
|
|
60
|
+
onReset: s,
|
|
61
|
+
isEdit: b
|
|
62
|
+
} = M({
|
|
63
|
+
id: t.id,
|
|
64
|
+
path: t.path,
|
|
65
|
+
form: g,
|
|
66
|
+
action: t.action,
|
|
67
|
+
onError: (e) => {
|
|
68
|
+
var n;
|
|
69
|
+
u.error(e.message || o("components.form.error")), (n = t.onError) == null || n.call(t, e);
|
|
70
|
+
},
|
|
71
|
+
onSuccess: (e) => {
|
|
72
|
+
var n, a;
|
|
73
|
+
u.success(o("components.form.success")), (n = t.onSuccess) == null || n.call(t, e), (a = t.onClose) == null || a.call(t);
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
return () => i(N, {
|
|
77
|
+
title: (t == null ? void 0 : t.title) || (b.value ? o("components.form.edit") : o("components.form.create")),
|
|
78
|
+
onClose: t == null ? void 0 : t.onClose
|
|
79
|
+
}, {
|
|
80
|
+
default: () => i(l, v(f.value, {
|
|
81
|
+
class: "px-2 py-2"
|
|
82
|
+
}), {
|
|
83
|
+
default: () => {
|
|
84
|
+
var e;
|
|
85
|
+
return [(e = c == null ? void 0 : c.default) == null ? void 0 : e.call(c)];
|
|
86
|
+
}
|
|
87
|
+
}),
|
|
88
|
+
footer: () => {
|
|
89
|
+
let e, n;
|
|
90
|
+
return i(E, null, [i(r("n-button"), {
|
|
91
|
+
onClick: s,
|
|
92
|
+
loading: m.value
|
|
93
|
+
}, d(e = o("components.button.reset")) ? e : {
|
|
94
|
+
default: () => [e]
|
|
95
|
+
}), i(r("n-button"), {
|
|
96
|
+
type: "primary",
|
|
97
|
+
loading: m.value,
|
|
98
|
+
onClick: y
|
|
99
|
+
}, d(n = o("components.button.submit")) ? n : {
|
|
100
|
+
default: () => [n]
|
|
101
|
+
})]);
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
export {
|
|
107
|
+
A as DuxModalForm
|
|
108
|
+
};
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { defineComponent as d, toRef as f, createVNode as r } from "vue";
|
|
2
|
+
import { useI18n as p, useExtendForm as g } from "@duxweb/dvha-core";
|
|
3
|
+
import { useMessage as y, NButton as c } from "naive-ui";
|
|
4
|
+
import "../../node_modules/@overlastic/vue/dist/index.js";
|
|
5
|
+
import "vue-router";
|
|
6
|
+
import "clsx";
|
|
7
|
+
import "jinrishici";
|
|
8
|
+
import "lodash-es";
|
|
9
|
+
import "@vueuse/core";
|
|
10
|
+
import "vee-validate";
|
|
11
|
+
import "@duxweb/dvha-naiveui";
|
|
12
|
+
import "pinia";
|
|
13
|
+
import "@vee-validate/i18n";
|
|
14
|
+
import "vue-command-palette";
|
|
15
|
+
import { DuxPage as b } from "../../pages/page.js";
|
|
16
|
+
import "../../pages/page404.js";
|
|
17
|
+
const M = /* @__PURE__ */ d({
|
|
18
|
+
name: "DuxPageForm",
|
|
19
|
+
props: {
|
|
20
|
+
id: {
|
|
21
|
+
type: [String, Number]
|
|
22
|
+
},
|
|
23
|
+
action: {
|
|
24
|
+
type: String
|
|
25
|
+
},
|
|
26
|
+
path: {
|
|
27
|
+
type: String
|
|
28
|
+
},
|
|
29
|
+
data: {
|
|
30
|
+
type: Object
|
|
31
|
+
},
|
|
32
|
+
onSuccess: {
|
|
33
|
+
type: Function
|
|
34
|
+
},
|
|
35
|
+
onError: {
|
|
36
|
+
type: Function
|
|
37
|
+
},
|
|
38
|
+
size: {
|
|
39
|
+
type: String,
|
|
40
|
+
default: "medium"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
setup(e, {
|
|
44
|
+
slots: t
|
|
45
|
+
}) {
|
|
46
|
+
const {
|
|
47
|
+
t: m
|
|
48
|
+
} = p(), u = f(e, "data", {}), o = y(), a = g({
|
|
49
|
+
id: e.id,
|
|
50
|
+
path: e.path,
|
|
51
|
+
form: u,
|
|
52
|
+
action: e.action,
|
|
53
|
+
onError: (n) => {
|
|
54
|
+
var i;
|
|
55
|
+
o.error(n.message || m("components.form.error")), (i = e.onError) == null || i.call(e, n);
|
|
56
|
+
},
|
|
57
|
+
onSuccess: (n) => {
|
|
58
|
+
var i;
|
|
59
|
+
o.success(m("components.form.success")), (i = e.onSuccess) == null || i.call(e, n);
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
return () => r(b, {
|
|
63
|
+
card: !1
|
|
64
|
+
}, {
|
|
65
|
+
default: () => {
|
|
66
|
+
var n;
|
|
67
|
+
return (n = t == null ? void 0 : t.default) == null ? void 0 : n.call(t, a);
|
|
68
|
+
},
|
|
69
|
+
actions: () => {
|
|
70
|
+
var n;
|
|
71
|
+
return r("div", {
|
|
72
|
+
class: "flex gap-6 items-center"
|
|
73
|
+
}, [(n = t == null ? void 0 : t.actions) == null ? void 0 : n.call(t, a), r("div", {
|
|
74
|
+
class: "flex gap-2"
|
|
75
|
+
}, [r(c, null, {
|
|
76
|
+
default: () => m("components.button.reset"),
|
|
77
|
+
icon: () => r("i", {
|
|
78
|
+
class: "i-tabler:refresh"
|
|
79
|
+
}, null)
|
|
80
|
+
}), r(c, {
|
|
81
|
+
type: "primary"
|
|
82
|
+
}, {
|
|
83
|
+
default: () => m("components.button.submit"),
|
|
84
|
+
icon: () => r("i", {
|
|
85
|
+
class: "i-tabler:send"
|
|
86
|
+
}, null)
|
|
87
|
+
})])]);
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
export {
|
|
93
|
+
M as DuxPageForm
|
|
94
|
+
};
|