rappel-ui 1.0.0 → 1.0.1
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/package.json +5 -2
- package/cjs/_virtual/_plugin-vue_export-helper.js +0 -1
- package/cjs/components/button/index.d.ts +0 -33
- package/cjs/components/button/index.js +0 -1
- package/cjs/components/button/src/button.d.ts +0 -3
- package/cjs/components/button/src/button.vue.js +0 -1
- package/cjs/components/button/src/button.vue2.js +0 -1
- package/cjs/components/button/src/constants.d.ts +0 -4
- package/cjs/components/button/src/constants.js +0 -1
- package/cjs/components/button/src/types.d.ts +0 -16
- package/cjs/components/button/style/css.d.ts +0 -0
- package/cjs/components/button/style/index.d.ts +0 -0
- package/cjs/components/colors/index.d.ts +0 -7
- package/cjs/components/colors/index.js +0 -1
- package/cjs/components/colors/src/colors.vue.js +0 -1
- package/cjs/components/colors/src/colors.vue2.js +0 -1
- package/cjs/components/colors/src/neutral-color.css +0 -1
- package/cjs/components/colors/src/neutral-color.vue.js +0 -1
- package/cjs/components/colors/src/neutral-color.vue2.js +0 -1
- package/cjs/components/colors/src/primary-color.css +0 -1
- package/cjs/components/colors/src/primary-color.vue.js +0 -1
- package/cjs/components/colors/src/primary-color.vue2.js +0 -1
- package/cjs/components/colors/src/secondary-color.css +0 -1
- package/cjs/components/colors/src/secondary-color.vue.js +0 -1
- package/cjs/components/colors/src/secondary-color.vue2.js +0 -1
- package/cjs/components/index.d.ts +0 -4
- package/cjs/components/index.js +0 -1
- package/cjs/components/input/index.d.ts +0 -25
- package/cjs/components/input/index.js +0 -1
- package/cjs/components/input/src/input.vue.js +0 -1
- package/cjs/components/input/src/input.vue2.js +0 -1
- package/cjs/components/tabs/index.d.ts +0 -20
- package/cjs/components/tabs/index.js +0 -1
- package/cjs/components/tabs/src/tabs.vue.js +0 -1
- package/cjs/composables/index.d.ts +0 -6
- package/cjs/composables/use-namespace/index.d.ts +0 -12
- package/cjs/composables/use-namespace/index.js +0 -1
- package/cjs/composables/useDateFormat.d.ts +0 -7
- package/cjs/composables/useDateFormat.js +0 -1
- package/cjs/composables/useDraggable.d.ts +0 -10
- package/cjs/composables/useDraggable.js +0 -1
- package/cjs/composables/useOnceFn.d.ts +0 -24
- package/cjs/composables/useOnceFn.js +0 -1
- package/cjs/composables/useTimeNodes.d.ts +0 -3
- package/cjs/composables/useTimeNodes.js +0 -1
- package/cjs/composables/useWaterFallLayout.d.ts +0 -10
- package/cjs/composables/useWaterFallLayout.js +0 -1
- package/cjs/constants/index.d.ts +0 -1
- package/cjs/constants/svgLoading.d.ts +0 -2
- package/cjs/constants/svgLoading.js +0 -36
- package/cjs/directives/index.d.ts +0 -3
- package/cjs/directives/vDraggable.d.ts +0 -2
- package/cjs/directives/vDraggable.js +0 -1
- package/cjs/directives/vResizable.d.ts +0 -14
- package/cjs/directives/vResizable.js +0 -21
- package/cjs/directives/vSvgLoading.d.ts +0 -4
- package/cjs/directives/vSvgLoading.js +0 -1
- package/cjs/index.d.ts +0 -86
- package/cjs/index.js +0 -1
- package/cjs/package.json.js +0 -1
- package/cjs/purple-ui/index.d.ts +0 -1
- package/cjs/purple-ui/resolver.d.ts +0 -2
- package/cjs/purple-ui/resolver.js +0 -1
- package/cjs/theme-chalk/src/base.css +0 -1
- package/cjs/theme-chalk/src/button.css +0 -1
- package/cjs/utils/index.d.ts +0 -2
- package/cjs/utils/util.d.ts +0 -143
- package/cjs/utils/util.js +0 -3
- package/cjs/utils/vue/index.d.ts +0 -17
- package/cjs/utils/vue/index.js +0 -1
- package/es/_virtual/_plugin-vue_export-helper.mjs +0 -9
- package/es/components/button/index.d.ts +0 -33
- package/es/components/button/index.mjs +0 -6
- package/es/components/button/src/button.d.ts +0 -3
- package/es/components/button/src/button.vue.mjs +0 -74
- package/es/components/button/src/button.vue2.mjs +0 -4
- package/es/components/button/src/constants.d.ts +0 -4
- package/es/components/button/src/constants.mjs +0 -5
- package/es/components/button/src/types.d.ts +0 -16
- package/es/components/button/style/css.d.ts +0 -0
- package/es/components/button/style/index.d.ts +0 -0
- package/es/components/colors/index.d.ts +0 -7
- package/es/components/colors/index.mjs +0 -16
- package/es/components/colors/src/colors.vue.mjs +0 -21
- package/es/components/colors/src/colors.vue2.mjs +0 -4
- package/es/components/colors/src/neutral-color.css +0 -1
- package/es/components/colors/src/neutral-color.vue.mjs +0 -7
- package/es/components/colors/src/neutral-color.vue2.mjs +0 -195
- package/es/components/colors/src/primary-color.css +0 -1
- package/es/components/colors/src/primary-color.vue.mjs +0 -7
- package/es/components/colors/src/primary-color.vue2.mjs +0 -33
- package/es/components/colors/src/secondary-color.css +0 -1
- package/es/components/colors/src/secondary-color.vue.mjs +0 -7
- package/es/components/colors/src/secondary-color.vue2.mjs +0 -54
- package/es/components/index.d.ts +0 -4
- package/es/components/index.mjs +0 -20
- package/es/components/input/index.d.ts +0 -25
- package/es/components/input/index.mjs +0 -6
- package/es/components/input/src/input.vue.mjs +0 -15
- package/es/components/input/src/input.vue2.mjs +0 -4
- package/es/components/tabs/index.d.ts +0 -20
- package/es/components/tabs/index.mjs +0 -6
- package/es/components/tabs/src/tabs.vue.mjs +0 -17
- package/es/composables/index.d.ts +0 -6
- package/es/composables/use-namespace/index.d.ts +0 -12
- package/es/composables/use-namespace/index.mjs +0 -21
- package/es/composables/useDateFormat.d.ts +0 -7
- package/es/composables/useDateFormat.mjs +0 -20
- package/es/composables/useDraggable.d.ts +0 -10
- package/es/composables/useDraggable.mjs +0 -55
- package/es/composables/useOnceFn.d.ts +0 -24
- package/es/composables/useOnceFn.mjs +0 -32
- package/es/composables/useTimeNodes.d.ts +0 -3
- package/es/composables/useTimeNodes.mjs +0 -24
- package/es/composables/useWaterFallLayout.d.ts +0 -10
- package/es/composables/useWaterFallLayout.mjs +0 -51
- package/es/constants/index.d.ts +0 -1
- package/es/constants/svgLoading.d.ts +0 -2
- package/es/constants/svgLoading.mjs +0 -39
- package/es/directives/index.d.ts +0 -3
- package/es/directives/vDraggable.d.ts +0 -2
- package/es/directives/vDraggable.mjs +0 -13
- package/es/directives/vResizable.d.ts +0 -14
- package/es/directives/vResizable.mjs +0 -136
- package/es/directives/vSvgLoading.d.ts +0 -4
- package/es/directives/vSvgLoading.mjs +0 -48
- package/es/index.d.ts +0 -86
- package/es/index.mjs +0 -76
- package/es/package.json.mjs +0 -4
- package/es/purple-ui/index.d.ts +0 -1
- package/es/purple-ui/resolver.d.ts +0 -2
- package/es/purple-ui/resolver.mjs +0 -18
- package/es/theme-chalk/src/base.css +0 -1
- package/es/theme-chalk/src/button.css +0 -1
- package/es/utils/index.d.ts +0 -2
- package/es/utils/util.d.ts +0 -143
- package/es/utils/util.mjs +0 -151
- package/es/utils/vue/index.d.ts +0 -17
- package/es/utils/vue/index.mjs +0 -36
- package/global.d.ts +0 -7
- package/theme-chalk/base.css +0 -148
- package/theme-chalk/css-vars/_button.css +0 -35
- package/theme-chalk/css-vars/_colors.css +0 -51
- package/theme-chalk/function/_button.css +0 -35
- package/theme-chalk/function/index.css +0 -35
- package/theme-chalk/index.css +0 -560
- package/theme-chalk/mixins/_button.css +0 -35
- package/theme-chalk/mixins/index.css +0 -35
- package/theme-chalk/pu-button.css +0 -446
- package/theme-chalk/root-vars.css +0 -132
- package/theme-chalk/src/base.scss +0 -30
- package/theme-chalk/src/button.scss +0 -104
- package/theme-chalk/src/common/_function.scss +0 -46
- package/theme-chalk/src/css-vars/_button.scss +0 -47
- package/theme-chalk/src/css-vars/_colors.scss +0 -82
- package/theme-chalk/src/css-vars/_namespace.scss +0 -12
- package/theme-chalk/src/function/_button.scss +0 -2
- package/theme-chalk/src/function/index.scss +0 -155
- package/theme-chalk/src/index.scss +0 -2
- package/theme-chalk/src/mixins/_button.scss +0 -140
- package/theme-chalk/src/mixins/index.scss +0 -25
- package/theme-chalk/src/root-vars.scss +0 -13
- package/umd/index.js +0 -59
|
@@ -1,195 +0,0 @@
|
|
|
1
|
-
import { defineComponent as x, createElementBlock as e, openBlock as t, Fragment as a, renderList as d, createElementVNode as l, normalizeStyle as n, normalizeClass as i, createCommentVNode as k, toDisplayString as f } from "vue";
|
|
2
|
-
import { getEqualOpacityColor as r } from "../../../utils/util.mjs";
|
|
3
|
-
const b = { class: "text-colors" }, B = {
|
|
4
|
-
key: 0,
|
|
5
|
-
class: "content"
|
|
6
|
-
}, F = /* @__PURE__ */ x({
|
|
7
|
-
name: "PuNeutralColor",
|
|
8
|
-
__name: "neutral-color",
|
|
9
|
-
setup(h) {
|
|
10
|
-
const s = [
|
|
11
|
-
{
|
|
12
|
-
shades: [
|
|
13
|
-
{
|
|
14
|
-
color: "#000000",
|
|
15
|
-
text: "Darkest Text",
|
|
16
|
-
textcolor: "#fff"
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
color: "#303131",
|
|
20
|
-
text: "Base Text",
|
|
21
|
-
textcolor: "#fff"
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
color: "#606062",
|
|
25
|
-
text: "Secondary Text",
|
|
26
|
-
textcolor: "#fff"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
color: "#909093",
|
|
30
|
-
text: "Neutral Text",
|
|
31
|
-
textcolor: "#fff"
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
color: "#b2b2b6",
|
|
35
|
-
text: "Placeholder Text",
|
|
36
|
-
textcolor: "#fff"
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
color: "#cdcdd1",
|
|
40
|
-
text: "Disabled Text",
|
|
41
|
-
textcolor: "#fff"
|
|
42
|
-
}
|
|
43
|
-
]
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
shades: [
|
|
47
|
-
{
|
|
48
|
-
color: "#c3c3cb",
|
|
49
|
-
text: "Darker Border",
|
|
50
|
-
extraclass: "border-blocks"
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
color: "#d0d0d8",
|
|
54
|
-
text: "Dark Border",
|
|
55
|
-
extraclass: "border-blocks"
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
color: "#dbdbe0",
|
|
59
|
-
text: "Base Border",
|
|
60
|
-
extraclass: "border-blocks"
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
color: "#e4e4e8",
|
|
64
|
-
text: "Light Border",
|
|
65
|
-
extraclass: "border-blocks"
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
color: "#ededef",
|
|
69
|
-
text: "Lighter Border",
|
|
70
|
-
extraclass: "border-blocks"
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
color: "#efeff3",
|
|
74
|
-
text: "Extra-Light Border",
|
|
75
|
-
extraclass: "border-blocks"
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
color: r("#937bff", 0.4),
|
|
79
|
-
text: "Primary Alpha 40% Border",
|
|
80
|
-
extraclass: "border-blocks"
|
|
81
|
-
}
|
|
82
|
-
]
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
shades: [
|
|
86
|
-
{
|
|
87
|
-
color: "#d7d7dc",
|
|
88
|
-
text: "Darker Fill Background"
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
color: "#e8e8ec",
|
|
92
|
-
text: "Dark Fill Background"
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
color: "#ededf0",
|
|
96
|
-
text: "Base Fill Background"
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
color: "#f1f1f4",
|
|
100
|
-
text: "Light Fill Background"
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
color: "#f6f6f7",
|
|
104
|
-
text: "Lighter Fill Background"
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
color: "#f8f8f9",
|
|
108
|
-
text: "Extra-light Fill Background"
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
color: "#f7f7fb",
|
|
112
|
-
text: "Theme Fill Background"
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
color: "#ffffff",
|
|
116
|
-
text: "Blank Fill Background",
|
|
117
|
-
bordercolor: r("#937bff", 0.4)
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
color: "transparent",
|
|
121
|
-
text: "Transparent Fill Background",
|
|
122
|
-
extraclass: "checkerboard-bg"
|
|
123
|
-
}
|
|
124
|
-
]
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
shades: [
|
|
128
|
-
{
|
|
129
|
-
color: r("#937bff", 0.9),
|
|
130
|
-
textcolor: "#fff",
|
|
131
|
-
text: "Primary Alpha 90% Fill Background"
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
color: r("#937bff", 0.8),
|
|
135
|
-
textcolor: "#fff",
|
|
136
|
-
text: "Primary Alpha 80% Fill Background"
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
color: r("#937bff", 0.7),
|
|
140
|
-
text: "Primary Alpha 70% Fill Background"
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
color: r("#937bff", 0.6),
|
|
144
|
-
text: "Primary Alpha 60% Fill Background"
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
color: r("#937bff", 0.5),
|
|
148
|
-
text: "Primary Alpha 50% Fill Background"
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
color: r("#937bff", 0.4),
|
|
152
|
-
text: "Primary Alpha 40% Fill Background"
|
|
153
|
-
},
|
|
154
|
-
{
|
|
155
|
-
color: r("#937bff", 0.3),
|
|
156
|
-
text: "Primary Alpha 30% Fill Background"
|
|
157
|
-
},
|
|
158
|
-
{
|
|
159
|
-
color: r("#937bff", 0.2),
|
|
160
|
-
text: "Primary Alpha 20% Fill Background"
|
|
161
|
-
},
|
|
162
|
-
{
|
|
163
|
-
color: r("#937bff", 0.1),
|
|
164
|
-
text: "Primary Alpha 10% Fill Background"
|
|
165
|
-
}
|
|
166
|
-
]
|
|
167
|
-
}
|
|
168
|
-
];
|
|
169
|
-
return (g, u) => (t(), e("div", b, [
|
|
170
|
-
(t(), e(a, null, d(s, (c) => l("div", {
|
|
171
|
-
class: "panel",
|
|
172
|
-
key: c.shades[0].color
|
|
173
|
-
}, [
|
|
174
|
-
(t(!0), e(a, null, d(c.shades, (o) => (t(), e("div", {
|
|
175
|
-
class: i(["shade", [o?.extraclass]]),
|
|
176
|
-
style: n({
|
|
177
|
-
"background-color": o.color,
|
|
178
|
-
color: o?.textcolor,
|
|
179
|
-
border: o?.bordercolor ? "1px solid " + o.bordercolor : "none"
|
|
180
|
-
}),
|
|
181
|
-
key: o.text
|
|
182
|
-
}, [
|
|
183
|
-
l("div", null, [
|
|
184
|
-
l("div", null, f(o.text), 1),
|
|
185
|
-
l("div", null, f(o.color.toUpperCase()), 1)
|
|
186
|
-
]),
|
|
187
|
-
o.extraclass ? (t(), e("div", B, "#FFFFFF")) : k("", !0)
|
|
188
|
-
], 6))), 128))
|
|
189
|
-
])), 64))
|
|
190
|
-
]));
|
|
191
|
-
}
|
|
192
|
-
});
|
|
193
|
-
export {
|
|
194
|
-
F as default
|
|
195
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.theme-colors[data-v-7bd7347b]{width:60rem;border-radius:4px;overflow:hidden;color:#fff}.theme-colors .base[data-v-7bd7347b]{color:#fff;height:6rem;box-shadow:10px 10px;padding:1rem}.theme-colors .shades[data-v-7bd7347b]{display:flex;align-items:center;flex-wrap:nowrap}.theme-colors .shades .shade[data-v-7bd7347b]{flex:1;height:3.2rem;padding:.2rem}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { defineComponent as m, createElementBlock as r, openBlock as s, Fragment as a, renderList as l, createElementVNode as o, normalizeStyle as n, toDisplayString as d } from "vue";
|
|
2
|
-
import { createColors as i } from "../../../utils/util.mjs";
|
|
3
|
-
const p = { class: "shades" }, y = /* @__PURE__ */ m({
|
|
4
|
-
name: "PuPrimaryColor",
|
|
5
|
-
__name: "primary-color",
|
|
6
|
-
setup(u) {
|
|
7
|
-
const c = [
|
|
8
|
-
{
|
|
9
|
-
base: "#937bff",
|
|
10
|
-
shades: i("#937bff")
|
|
11
|
-
}
|
|
12
|
-
];
|
|
13
|
-
return (_, f) => (s(), r(a, null, l(c, (e) => o("div", {
|
|
14
|
-
class: "theme-colors",
|
|
15
|
-
key: e.base
|
|
16
|
-
}, [
|
|
17
|
-
o("div", {
|
|
18
|
-
class: "base",
|
|
19
|
-
style: n({ "background-color": e.base })
|
|
20
|
-
}, d(e.base.toUpperCase()), 5),
|
|
21
|
-
o("div", p, [
|
|
22
|
-
(s(!0), r(a, null, l(e.shades, (t) => (s(), r("div", {
|
|
23
|
-
class: "shade",
|
|
24
|
-
style: n({ "background-color": t }),
|
|
25
|
-
key: t
|
|
26
|
-
}, null, 4))), 128))
|
|
27
|
-
])
|
|
28
|
-
])), 64));
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
export {
|
|
32
|
-
y as default
|
|
33
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.status-colors[data-v-3e9bfdfb]{display:grid;grid-template-columns:repeat(2,1fr);gap:1rem}.status-colors .panel[data-v-3e9bfdfb]{border-radius:4px;overflow:hidden;color:#fff}.status-colors .panel .base[data-v-3e9bfdfb]{color:#fff;height:6rem;box-shadow:5px 5px;padding:1rem}.status-colors .panel .shades[data-v-3e9bfdfb]{display:flex;align-items:center;flex-wrap:nowrap}.status-colors .panel .shades .shade[data-v-3e9bfdfb]{overflow:hidden;flex:1;height:3rem;padding:.2rem}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { defineComponent as u, createElementBlock as a, openBlock as t, Fragment as n, renderList as l, createElementVNode as s, normalizeStyle as d, toDisplayString as c } from "vue";
|
|
2
|
-
import { createColors as o } from "../../../utils/util.mjs";
|
|
3
|
-
const m = { class: "status-colors" }, p = { class: "shades" }, x = /* @__PURE__ */ u({
|
|
4
|
-
name: "PuSecondaryColor",
|
|
5
|
-
__name: "secondary-color",
|
|
6
|
-
setup(_) {
|
|
7
|
-
const i = [
|
|
8
|
-
{
|
|
9
|
-
base: "#06b56d",
|
|
10
|
-
text: "Success",
|
|
11
|
-
shades: o("#06b56d")
|
|
12
|
-
},
|
|
13
|
-
{
|
|
14
|
-
base: "#ee6979",
|
|
15
|
-
text: "Danger/Error ",
|
|
16
|
-
shades: o("#ee6979")
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
base: "#cd9a0a",
|
|
20
|
-
text: "Warning",
|
|
21
|
-
shades: o("#cd9a0a")
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
base: "#8e8e91",
|
|
25
|
-
text: "Info",
|
|
26
|
-
shades: o("#8e8e91")
|
|
27
|
-
}
|
|
28
|
-
];
|
|
29
|
-
return (b, h) => (t(), a("div", m, [
|
|
30
|
-
(t(), a(n, null, l(i, (e) => s("div", {
|
|
31
|
-
class: "panel",
|
|
32
|
-
key: e.base
|
|
33
|
-
}, [
|
|
34
|
-
s("div", {
|
|
35
|
-
class: "base",
|
|
36
|
-
style: d({ "background-color": e.base })
|
|
37
|
-
}, [
|
|
38
|
-
s("div", null, c(e.text), 1),
|
|
39
|
-
s("div", null, c(e.base.toUpperCase()), 1)
|
|
40
|
-
], 4),
|
|
41
|
-
s("div", p, [
|
|
42
|
-
(t(!0), a(n, null, l(e.shades, (r) => (t(), a("div", {
|
|
43
|
-
class: "shade",
|
|
44
|
-
style: d({ "background-color": r }),
|
|
45
|
-
key: r
|
|
46
|
-
}, null, 4))), 128))
|
|
47
|
-
])
|
|
48
|
-
])), 64))
|
|
49
|
-
]));
|
|
50
|
-
}
|
|
51
|
-
});
|
|
52
|
-
export {
|
|
53
|
-
x as default
|
|
54
|
-
};
|
package/es/components/index.d.ts
DELETED
package/es/components/index.mjs
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import "./button/index.mjs";
|
|
2
|
-
import "./input/index.mjs";
|
|
3
|
-
import "./tabs/index.mjs";
|
|
4
|
-
import "./colors/index.mjs";
|
|
5
|
-
import { default as f } from "./button/src/button.vue.mjs";
|
|
6
|
-
import { default as m } from "./input/src/input.vue.mjs";
|
|
7
|
-
import { default as s } from "./colors/src/colors.vue.mjs";
|
|
8
|
-
import { default as P } from "./tabs/src/tabs.vue.mjs";
|
|
9
|
-
import { default as i } from "./colors/src/primary-color.vue.mjs";
|
|
10
|
-
import { default as n } from "./colors/src/secondary-color.vue.mjs";
|
|
11
|
-
import { default as b } from "./colors/src/neutral-color.vue.mjs";
|
|
12
|
-
export {
|
|
13
|
-
f as PuButton,
|
|
14
|
-
s as PuColors,
|
|
15
|
-
m as PuInput,
|
|
16
|
-
b as PuNeutralColor,
|
|
17
|
-
i as PuPrimaryColor,
|
|
18
|
-
n as PuSecondaryColor,
|
|
19
|
-
P as PuTabs
|
|
20
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { default as Input } from './src/input.vue';
|
|
2
|
-
export { Input as PuInput };
|
|
3
|
-
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
|
-
type: {
|
|
5
|
-
type: StringConstructor;
|
|
6
|
-
default: string;
|
|
7
|
-
};
|
|
8
|
-
size: {
|
|
9
|
-
type: StringConstructor;
|
|
10
|
-
default: string;
|
|
11
|
-
};
|
|
12
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
13
|
-
type: {
|
|
14
|
-
type: StringConstructor;
|
|
15
|
-
default: string;
|
|
16
|
-
};
|
|
17
|
-
size: {
|
|
18
|
-
type: StringConstructor;
|
|
19
|
-
default: string;
|
|
20
|
-
};
|
|
21
|
-
}>> & Readonly<{}>, {
|
|
22
|
-
size: string;
|
|
23
|
-
type: string;
|
|
24
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLInputElement>;
|
|
25
|
-
export default _default;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { defineComponent as t, createElementBlock as n, openBlock as p, mergeProps as r } from "vue";
|
|
2
|
-
const s = /* @__PURE__ */ t({
|
|
3
|
-
name: "PuInput",
|
|
4
|
-
__name: "input",
|
|
5
|
-
props: {
|
|
6
|
-
type: { type: String, default: "text" },
|
|
7
|
-
size: { type: String, default: "default" }
|
|
8
|
-
},
|
|
9
|
-
setup(u) {
|
|
10
|
-
return (e, a) => (p(), n("input", r({ class: "pinput" }, e.$attrs), null, 16));
|
|
11
|
-
}
|
|
12
|
-
});
|
|
13
|
-
export {
|
|
14
|
-
s as default
|
|
15
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { default as tabs } from './src/tabs.vue';
|
|
2
|
-
export { tabs as PuTabs };
|
|
3
|
-
declare const _default: {
|
|
4
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
5
|
-
P: {};
|
|
6
|
-
B: {};
|
|
7
|
-
D: {};
|
|
8
|
-
C: {};
|
|
9
|
-
M: {};
|
|
10
|
-
Defaults: {};
|
|
11
|
-
}, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
12
|
-
__isFragment?: never;
|
|
13
|
-
__isTeleport?: never;
|
|
14
|
-
__isSuspense?: never;
|
|
15
|
-
} & import('vue').ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
16
|
-
$slots: {
|
|
17
|
-
'prev-button'?(_: {}): any;
|
|
18
|
-
};
|
|
19
|
-
});
|
|
20
|
-
export default _default;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { resolveComponent as o, createElementBlock as n, openBlock as s, createElementVNode as r, renderSlot as c, createVNode as _ } from "vue";
|
|
2
|
-
import a from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
3
|
-
const p = {}, d = { class: "p-tabs" }, l = { class: "p-tabs__header" };
|
|
4
|
-
function m(e, i) {
|
|
5
|
-
const t = o("pu-button");
|
|
6
|
-
return s(), n("div", d, [
|
|
7
|
-
r("div", l, [
|
|
8
|
-
c(e.$slots, "prev-button", {}, () => [
|
|
9
|
-
_(t)
|
|
10
|
-
])
|
|
11
|
-
])
|
|
12
|
-
]);
|
|
13
|
-
}
|
|
14
|
-
const b = /* @__PURE__ */ a(p, [["render", m]]);
|
|
15
|
-
export {
|
|
16
|
-
b as default
|
|
17
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export declare function useNamespace(compName: string): {
|
|
2
|
-
prefix: string;
|
|
3
|
-
statePrefix: string;
|
|
4
|
-
n: (name: string) => string;
|
|
5
|
-
ng: (name: string, groupName: string) => string;
|
|
6
|
-
nm: (name: string, modifier: string) => string;
|
|
7
|
-
ngm: (name: string, groupName: string, modifier: string) => string;
|
|
8
|
-
ns: (name: string, subName: string) => string;
|
|
9
|
-
ngs: (name: string, groupName: string, subName: string) => string;
|
|
10
|
-
cls: (name: string, groupName?: string, modifier?: string, subName?: string) => string;
|
|
11
|
-
is: (state: string, bool?: boolean | undefined | "") => string;
|
|
12
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
function P(o) {
|
|
2
|
-
const t = (n, s, e, i) => {
|
|
3
|
-
let c = `pu-${n || o}`;
|
|
4
|
-
return s && (c += `-${s}`), e && (c += `--${e}`), i && (c += `__${i}`), c.toLowerCase();
|
|
5
|
-
};
|
|
6
|
-
return {
|
|
7
|
-
prefix: "pu",
|
|
8
|
-
statePrefix: "is",
|
|
9
|
-
n: (n) => t(n),
|
|
10
|
-
ng: (n, s) => t(n, s),
|
|
11
|
-
nm: (n, s) => t(n, "", s),
|
|
12
|
-
ngm: (n, s, e) => t(n, s, e),
|
|
13
|
-
ns: (n, s) => t(n, "", "", s),
|
|
14
|
-
ngs: (n, s, e) => t(n, s, "", e),
|
|
15
|
-
cls: t,
|
|
16
|
-
is: (n, s = !0) => s ? `is-${n}` : ""
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
export {
|
|
20
|
-
P as useNamespace
|
|
21
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
function Y(t, o) {
|
|
2
|
-
const n = t.getFullYear(), r = t.getMonth() + 1, s = t.getDate(), g = t.getHours(), S = t.getMinutes(), i = t.getSeconds(), e = {
|
|
3
|
-
YYYY: String(n),
|
|
4
|
-
YY: String(n).substring(2),
|
|
5
|
-
MM: String(r).padStart(2, "0"),
|
|
6
|
-
M: String(r),
|
|
7
|
-
DD: String(s).padStart(2, "0"),
|
|
8
|
-
D: String(s),
|
|
9
|
-
HH: String(g).padStart(2, "0"),
|
|
10
|
-
H: String(g),
|
|
11
|
-
mm: String(S).padStart(2, "0"),
|
|
12
|
-
m: String(S),
|
|
13
|
-
ss: String(i).padStart(2, "0"),
|
|
14
|
-
s: String(i)
|
|
15
|
-
};
|
|
16
|
-
return o.replace(/(YYYY|YY|MM|M|DD|D|HH|H|mm|m|ss|s)/g, (a) => e[a]);
|
|
17
|
-
}
|
|
18
|
-
export {
|
|
19
|
-
Y as useDateFormat
|
|
20
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export declare function useDraggable(el: HTMLElement, options?: {
|
|
2
|
-
preventDefault?: boolean;
|
|
3
|
-
customHandler?: HTMLElement | null;
|
|
4
|
-
autoTopHandler?: boolean;
|
|
5
|
-
topHandlerHeight?: number;
|
|
6
|
-
isAllHandler?: boolean;
|
|
7
|
-
}): {
|
|
8
|
-
updatePos: () => void;
|
|
9
|
-
cleanup: () => void;
|
|
10
|
-
};
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
function z(r, w) {
|
|
2
|
-
if (!r)
|
|
3
|
-
return { updatePos: () => {
|
|
4
|
-
}, cleanup: () => {
|
|
5
|
-
} };
|
|
6
|
-
const o = Object.assign({}, {
|
|
7
|
-
preventDefault: !0,
|
|
8
|
-
customHandler: null,
|
|
9
|
-
autoTopHandler: !1,
|
|
10
|
-
topHandlerHeight: 20,
|
|
11
|
-
isAllHandler: !0
|
|
12
|
-
}, w || {}), h = () => {
|
|
13
|
-
const e = document.createElement("div");
|
|
14
|
-
return e.style.cssText = `user-select:none;height: ${o.topHandlerHeight}px; z-index:3000;cursor: move; position: absolute; top: 0; left: 0;right:0;background-color: transparent;opacity: 1;`, e.classList.add("v-draggable-top-handler"), r.appendChild(e), e;
|
|
15
|
-
}, s = o.customHandler ? o.customHandler : o.autoTopHandler ? h() : r;
|
|
16
|
-
let d = !1, m = 0, v = 0, l = 0, c = 0, f = 0, g = 0, E = 0, L = 0;
|
|
17
|
-
const H = (e) => window.getComputedStyle(e).transform, T = (e) => {
|
|
18
|
-
const t = H(e);
|
|
19
|
-
if (t && t !== "none") {
|
|
20
|
-
const { e: n, f: D, m41: M, m42: A } = new DOMMatrix(t);
|
|
21
|
-
return {
|
|
22
|
-
x: n || M || 0,
|
|
23
|
-
y: D || A || 0
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
return { x: 0, y: 0 };
|
|
27
|
-
}, i = () => {
|
|
28
|
-
const e = r.getBoundingClientRect(), { x: t, y: n } = T(r);
|
|
29
|
-
l = t, c = n, f = -e.left + t, g = -e.top + n, E = window.innerWidth - e.right + t, L = window.innerHeight - e.bottom + n;
|
|
30
|
-
}, x = (e) => {
|
|
31
|
-
const t = e.target;
|
|
32
|
-
return !t || t.isContentEditable || t.closest(
|
|
33
|
-
'input, textarea, button, select, a,[contenteditable], [contenteditable="true"]'
|
|
34
|
-
) || ["TEXTAREA", "INPUT", "BUTTON", "A", "SELECT"].includes(t?.tagName) ? !1 : !!o.isAllHandler || t === s;
|
|
35
|
-
}, u = (e) => {
|
|
36
|
-
x(e) && (d = !0, o.preventDefault && e.preventDefault(), i(), m = e.clientX - l, v = e.clientY - c, document.removeEventListener("pointermove", p), document.removeEventListener("pointerup", a), document.removeEventListener("pointercancel", a), document.addEventListener("pointermove", p), document.addEventListener("pointerup", a), document.addEventListener("pointercancel", a));
|
|
37
|
-
}, p = (e) => {
|
|
38
|
-
if (!d) return;
|
|
39
|
-
let t = e.clientX - m, n = e.clientY - v;
|
|
40
|
-
t < l ? t = Math.max(t, f) : t = Math.min(t, E), n < c ? n = Math.max(n, g) : n = Math.min(n, L), r.style.transform = `translate(${t}px, ${n}px)`, l = t, c = n;
|
|
41
|
-
}, a = () => {
|
|
42
|
-
d = !1, document.removeEventListener("pointermove", p), document.removeEventListener("pointerup", a), document.removeEventListener("pointercancel", a);
|
|
43
|
-
}, b = () => {
|
|
44
|
-
if (a(), s.removeEventListener("pointerdown", u), window.removeEventListener("resize", i), o.autoTopHandler && !o.customHandler) {
|
|
45
|
-
const e = r.querySelector(".v-draggable-top-handler");
|
|
46
|
-
e && e.remove();
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
i(), s.removeEventListener("pointerdown", u), s.addEventListener("pointerdown", u), window.removeEventListener("resize", i), window.addEventListener("resize", i);
|
|
50
|
-
const y = r._cleanup = b;
|
|
51
|
-
return { updatePos: i, cleanup: y };
|
|
52
|
-
}
|
|
53
|
-
export {
|
|
54
|
-
z as useDraggable
|
|
55
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 防止接口重复请求的方法<需保证方法名全局唯一>
|
|
3
|
-
* @param {Function} funcName 方法名
|
|
4
|
-
* @param {...Array<any>} funcParams 方法参数(剩余参数),原方法怎么传,这里就怎么传
|
|
5
|
-
* @description 适用于返回Promise的所有方法,支持多个方法
|
|
6
|
-
* @example
|
|
7
|
-
* 1、基本用法:
|
|
8
|
-
* import {getUserList} from "@/api/user"
|
|
9
|
-
* const res = await useOnceFn(getUserList, params, data)
|
|
10
|
-
*
|
|
11
|
-
* 2、多个方法
|
|
12
|
-
* import {getUserList} from "@/api/user"
|
|
13
|
-
* import {getOrgTree} from "@/api/org"
|
|
14
|
-
*
|
|
15
|
-
* const res1 = await useOnceFn(getUserList, params, data)
|
|
16
|
-
* const res2 = await useOnceFn(getOrgTree)
|
|
17
|
-
*
|
|
18
|
-
* 3、用于async方法
|
|
19
|
-
* async function demo(){...}
|
|
20
|
-
* const res = await useOnceFn(demo)
|
|
21
|
-
*
|
|
22
|
-
* @returns {Promise<any>}
|
|
23
|
-
*/
|
|
24
|
-
export declare function useOnceFn(funcName: Function, ...funcParams: any[]): Promise<any>;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
class n {
|
|
2
|
-
res;
|
|
3
|
-
isFetching;
|
|
4
|
-
isSuccess;
|
|
5
|
-
queues;
|
|
6
|
-
constructor() {
|
|
7
|
-
this.res = null, this.isFetching = !1, this.isSuccess = !1, this.queues = [];
|
|
8
|
-
}
|
|
9
|
-
useOnceFn(e, ...s) {
|
|
10
|
-
return new Promise((c) => {
|
|
11
|
-
if (this.isSuccess) {
|
|
12
|
-
c(this.res);
|
|
13
|
-
return;
|
|
14
|
-
}
|
|
15
|
-
this.queues.push(c), this.isFetching || (this.isFetching = !0, Promise.resolve(e(...s)).then((u) => {
|
|
16
|
-
this.res = u, this.loopQueues(), this.isSuccess = !0;
|
|
17
|
-
}));
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
loopQueues() {
|
|
21
|
-
for (; this.queues.length > 0; )
|
|
22
|
-
this.queues.shift()?.(this.res);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
const i = {};
|
|
26
|
-
function h(t, ...e) {
|
|
27
|
-
const s = t.toString().replace(/[^a-zA-Z]/g, "");
|
|
28
|
-
return i[s] || (i[s] = new n()), i[s].useOnceFn(t, ...e);
|
|
29
|
-
}
|
|
30
|
-
export {
|
|
31
|
-
h as useOnceFn
|
|
32
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { useDateFormat as N } from "./useDateFormat.mjs";
|
|
2
|
-
import "vue";
|
|
3
|
-
function F(d = "00:00", a = "23:00", m = "02:00", h = "HH:mm") {
|
|
4
|
-
const s = (e) => {
|
|
5
|
-
const [t, n, o] = e.split(":").map(Number);
|
|
6
|
-
return [t || 0, n || 0, o || 0];
|
|
7
|
-
}, i = (e) => {
|
|
8
|
-
const [t, n, o] = s(e), u = /* @__PURE__ */ new Date();
|
|
9
|
-
return new Date(u.getFullYear(), u.getMonth() + 1, u.getDate(), t, n, o);
|
|
10
|
-
}, w = (e) => N(e, h), T = (e) => {
|
|
11
|
-
const [t, n, o] = s(m);
|
|
12
|
-
return new Date(e.getTime() + t * 36e5 + n * 6e4 + o * 1e3);
|
|
13
|
-
}, c = [], [g, p, l] = s(m);
|
|
14
|
-
if (g === 0 && p === 0 && l === 0)
|
|
15
|
-
throw new Error("时间步长不能为0");
|
|
16
|
-
let r = i(d);
|
|
17
|
-
const D = i(a);
|
|
18
|
-
for (; r <= D; )
|
|
19
|
-
c.push(w(r)), r = T(r);
|
|
20
|
-
return { timeNodes: c };
|
|
21
|
-
}
|
|
22
|
-
export {
|
|
23
|
-
F as useTimeNodes
|
|
24
|
-
};
|