@das-fed/ui 6.4.0-dev.55.4 → 6.4.0-dev.55.6
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 -5
- package/packages/business-components/change-enterprises/i18n/index.d.ts +3 -0
- package/packages/business-components/change-enterprises/index.js +44 -44
- package/packages/business-components/change-enterprises/index.js.gz +0 -0
- package/packages/business-components/change-pwd/i18n/index.d.ts +18 -0
- package/packages/business-components/change-pwd/index.js +119 -114
- package/packages/business-components/change-pwd/index.js.gz +0 -0
- package/packages/business-components/currency-page/i18n/index.d.ts +4 -0
- package/packages/business-components/currency-page/index.js +12 -4
- package/packages/business-components/currency-page/index.js.gz +0 -0
- package/packages/business-components/device-panel/i18n/index.d.ts +235 -0
- package/packages/business-components/device-panel/index.js +13161 -13050
- package/packages/business-components/device-panel/index.js.gz +0 -0
- package/packages/business-components/device-panel/style.css +1 -1
- package/packages/business-components/device-panel/style.css.gz +0 -0
- package/packages/business-components/export-button/i18n/index.d.ts +11 -0
- package/packages/business-components/export-button/index.js +76 -71
- package/packages/business-components/export-button/index.js.gz +0 -0
- package/packages/business-components/import-button/i18n/index.d.ts +26 -0
- package/packages/business-components/import-button/index.js +297 -288
- package/packages/business-components/import-button/index.js.gz +0 -0
- package/packages/business-components/model-table-dialog/i18n/index.d.ts +6 -0
- package/packages/business-components/model-table-dialog/index.js +433 -433
- package/packages/business-components/model-table-dialog/index.js.gz +0 -0
- package/packages/business-components/process-configuration/i18n/index.d.ts +31 -0
- package/packages/business-components/process-configuration/index.js +201 -198
- package/packages/business-components/process-configuration/index.js.gz +0 -0
- package/packages/business-components/process-form/i18n/index.d.ts +80 -0
- package/packages/business-components/process-form/index.js +858 -838
- package/packages/business-components/process-form/index.js.gz +0 -0
- package/packages/business-components/process-log/i18n/index.d.ts +10 -0
- package/packages/business-components/process-log/index.js +245 -245
- package/packages/business-components/process-log/index.js.gz +0 -0
- package/packages/business-components/process-search-form/i18n/index.d.ts +9 -0
- package/packages/business-components/process-search-form/index.js +135 -135
- package/packages/business-components/process-search-form/index.js.gz +0 -0
- package/packages/business-components/process-table/i18n/index.d.ts +8 -0
- package/packages/business-components/process-table/index.js +128 -128
- package/packages/business-components/process-table/index.js.gz +0 -0
- package/packages/business-components/upload-file/i18n/index.d.ts +1 -0
- package/packages/business-components/upload-file/index.js +25 -24
- package/packages/business-components/upload-file/index.js.gz +0 -0
- package/packages/business-components/urgent-panel/i18n/index.d.ts +90 -0
- package/packages/business-components/urgent-panel/index.js +1249 -1235
- package/packages/business-components/urgent-panel/index.js.gz +0 -0
- package/packages/business-components/user-org-dialog/i18n/index.d.ts +15 -0
- package/packages/business-components/user-org-dialog/index.js +223 -219
- package/packages/business-components/user-org-dialog/index.js.gz +0 -0
- package/packages/business-components/video-dialog/i18n/index.d.ts +20 -0
- package/packages/business-components/video-dialog/index.js +233 -233
- package/packages/business-components/video-dialog/index.js.gz +0 -0
- package/packages/components/calendar/i18n/index.d.ts +46 -0
- package/packages/components/calendar/index.js +283 -283
- package/packages/components/calendar/index.js.gz +0 -0
- package/packages/components/cascader/i18n/index.d.ts +1 -0
- package/packages/components/cascader/index.js +21 -21
- package/packages/components/cascader/index.js.gz +0 -0
- package/packages/components/color-picker/i18n/index.d.ts +1 -0
- package/packages/components/color-picker/index.js +35 -35
- package/packages/components/color-picker/index.js.gz +0 -0
- package/packages/components/custom-search-item/i18n/index.d.ts +1 -0
- package/packages/components/custom-search-item/index.js +17 -17
- package/packages/components/custom-search-item/index.js.gz +0 -0
- package/packages/components/date-picker/i18n/index.d.ts +3 -0
- package/packages/components/date-picker/index.js +94 -94
- package/packages/components/date-picker/index.js.gz +0 -0
- package/packages/components/dialog/i18n/index.d.ts +6 -0
- package/packages/components/dialog/index.js +58 -58
- package/packages/components/dialog/index.js.gz +0 -0
- package/packages/components/dimple-layout/i18n/index.d.ts +10 -0
- package/packages/components/dimple-layout/index.js +287 -283
- package/packages/components/dimple-layout/index.js.gz +0 -0
- package/packages/components/dropdown/i18n/index.d.ts +1 -0
- package/packages/components/dropdown/index.js +14 -14
- package/packages/components/dropdown/index.js.gz +0 -0
- package/packages/components/empty/i18n/index.d.ts +1 -0
- package/packages/components/empty/index.js +11 -11
- package/packages/components/empty/index.js.gz +0 -0
- package/packages/components/image-upload/i18n/index.d.ts +6 -0
- package/packages/components/image-upload/index.js +67 -58
- package/packages/components/image-upload/index.js.gz +0 -0
- package/packages/components/input/i18n/index.d.ts +3 -0
- package/packages/components/input/index.js +36 -36
- package/packages/components/input/index.js.gz +0 -0
- package/packages/components/live-player/i18n/index.d.ts +2 -0
- package/packages/components/live-player/index.js +3 -2
- package/packages/components/live-player/index.js.gz +0 -0
- package/packages/components/loading/i18n/index.d.ts +1 -0
- package/packages/components/loading/index.js +53 -53
- package/packages/components/loading/index.js.gz +0 -0
- package/packages/components/map/i18n/index.d.ts +4 -0
- package/packages/components/map/index.js +73 -68
- package/packages/components/map/index.js.gz +0 -0
- package/packages/components/menu-aside/i18n/index.d.ts +1 -0
- package/packages/components/menu-aside/index.js +1 -1
- package/packages/components/menu-aside/index.js.gz +0 -0
- package/packages/components/message/i18n/index.d.ts +1 -0
- package/packages/components/message/index.js +1 -1
- package/packages/components/message/index.js.gz +0 -0
- package/packages/components/notification/i18n/index.d.ts +1 -0
- package/packages/components/notification/index.js +1 -1
- package/packages/components/notification/index.js.gz +0 -0
- package/packages/components/pagination/i18n/index.d.ts +4 -0
- package/packages/components/pagination/index.js +44 -44
- package/packages/components/pagination/index.js.gz +0 -0
- package/packages/components/popover/i18n/index.d.ts +2 -0
- package/packages/components/popover/index.js +7 -7
- package/packages/components/popover/index.js.gz +0 -0
- package/packages/components/preview/i18n/index.d.ts +1 -0
- package/packages/components/preview/index.js +6 -6
- package/packages/components/preview/index.js.gz +0 -0
- package/packages/components/rich-editor/i18n/index.d.ts +4 -0
- package/packages/components/rich-editor/index.js +11 -4
- package/packages/components/rich-editor/index.js.gz +0 -0
- package/packages/components/search-form/i18n/index.d.ts +6 -0
- package/packages/components/search-form/index.js +113 -113
- package/packages/components/search-form/index.js.gz +0 -0
- package/packages/components/select/i18n/index.d.ts +5 -0
- package/packages/components/select/index.js +183 -183
- package/packages/components/select/index.js.gz +0 -0
- package/packages/components/select-list/i18n/index.d.ts +4 -0
- package/packages/components/select-list/index.js +73 -73
- package/packages/components/select-list/index.js.gz +0 -0
- package/packages/components/special-range-picker-month/i18n/index.d.ts +4 -0
- package/packages/components/special-range-picker-month/index.js +72 -72
- package/packages/components/special-range-picker-month/index.js.gz +0 -0
- package/packages/components/special-range-picker-year/i18n/index.d.ts +3 -0
- package/packages/components/special-range-picker-year/index.js +99 -99
- package/packages/components/special-range-picker-year/index.js.gz +0 -0
- package/packages/components/spin/i18n/index.d.ts +1 -0
- package/packages/components/spin/index.js +27 -27
- package/packages/components/spin/index.js.gz +0 -0
- package/packages/components/table/i18n/index.d.ts +41 -4
- package/packages/components/table/index.js +2291 -2288
- package/packages/components/table/index.js.gz +0 -0
- package/packages/components/table/style.css +1 -1
- package/packages/components/table/style.css.gz +0 -0
- package/packages/components/tabs/i18n/index.d.ts +3 -0
- package/packages/components/tabs/index.js +46 -46
- package/packages/components/tabs/index.js.gz +0 -0
- package/packages/components/text-tooltip/index.js +1 -1
- package/packages/components/text-tooltip/index.js.gz +0 -0
- package/packages/components/tooltip/i18n/index.d.ts +1 -0
- package/packages/components/tooltip/index.js +14 -14
- package/packages/components/tooltip/index.js.gz +0 -0
- package/packages/components/tree/i18n/index.d.ts +7 -0
- package/packages/components/tree/index.js +8 -7
- package/packages/components/tree/index.js.gz +0 -0
- package/packages/components/upload/i18n/index.d.ts +5 -0
- package/packages/components/upload/index.js +54 -54
- package/packages/components/upload/index.js.gz +0 -0
- package/packages/components/virtual-tree/i18n/index.d.ts +1 -0
- package/packages/components/virtual-tree/index.js +11 -11
- package/packages/components/virtual-tree/index.js.gz +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import '@das-fed/ui/packages/components/input/style.css';
|
|
2
2
|
import { withInstall as ee } from "@das-fed/utils/with-install/index";
|
|
3
|
-
import { getVarValue as
|
|
4
|
-
import { defineComponent as oe, computed as s, ref as a, watch as B, nextTick as N, openBlock as i, createElementBlock as d, normalizeStyle as
|
|
3
|
+
import { getVarValue as V, setThemeRule as te } from "@das-fed/web/packages/theme/index";
|
|
4
|
+
import { defineComponent as oe, computed as s, ref as a, watch as B, nextTick as N, openBlock as i, createElementBlock as d, normalizeStyle as E, normalizeClass as D, createCommentVNode as n, createVNode as R, unref as F, withCtx as y, mergeProps as le, createSlots as ae, renderSlot as k, toDisplayString as T, Fragment as re, createBlock as se, Teleport as ie, createElementVNode as z } from "vue";
|
|
5
5
|
import "element-plus/es/components/input/style/css";
|
|
6
6
|
import { ElInput as ne } from "element-plus";
|
|
7
7
|
import { DasTooltip as ue } from "@das-fed/ui/packages/components/tooltip/index";
|
|
@@ -23,7 +23,7 @@ const fe = ["auto", "fit-content", "inherit", "initial", "max-content", "min-con
|
|
|
23
23
|
class: "das-input-overlay-error-label-content"
|
|
24
24
|
}, xe = { class: "label" }, Be = {
|
|
25
25
|
inheritAttrs: !1
|
|
26
|
-
},
|
|
26
|
+
}, ke = /* @__PURE__ */ oe({
|
|
27
27
|
...Be,
|
|
28
28
|
__name: "index",
|
|
29
29
|
props: {
|
|
@@ -54,18 +54,18 @@ const fe = ["auto", "fit-content", "inherit", "initial", "max-content", "min-con
|
|
|
54
54
|
},
|
|
55
55
|
emits: ["update:modelValue", "change"],
|
|
56
56
|
setup(l, { expose: h, emit: g }) {
|
|
57
|
-
const o = l,
|
|
57
|
+
const o = l, L = s(() => o.placeholder || de("请输入")), P = s(() => `width:${ve(o.width)}`), O = s(() => {
|
|
58
58
|
const e = Number(o.maxLength) ? Number(o.maxLength) : !1, t = Number(o.maxlength) ? Number(o.maxlength) : !1;
|
|
59
59
|
return e || t && t || !1;
|
|
60
60
|
}), $ = g, m = s({
|
|
61
61
|
get: () => o.modelValue,
|
|
62
62
|
set: (e) => $("update:modelValue", e)
|
|
63
|
-
}), U = a(o.isTitle), u = a(!1), W = a(), r = a(), S = a(!1), A = s(() => o.type === "textarea" ? o.showWordLimit : o.showTextWordLimit), Z = s(() => o.isView || o.disabled), j = s(() => Z.value ? o.noSetDefaultVal ? "" : "-" :
|
|
63
|
+
}), U = a(o.isTitle), u = a(!1), W = a(), r = a(), S = a(!1), A = s(() => o.type === "textarea" ? o.showWordLimit : o.showTextWordLimit), Z = s(() => o.isView || o.disabled), j = s(() => Z.value ? o.noSetDefaultVal ? "" : "-" : L.value ?? ""), w = a(!1), p = a(0), f = a(0), x = a({
|
|
64
64
|
x: 0,
|
|
65
65
|
y: 0
|
|
66
66
|
}), M = a(0), H = a({
|
|
67
67
|
"font-size": "12px",
|
|
68
|
-
"background-color":
|
|
68
|
+
"background-color": V("--das-ui-input-number-overlay-error-bg-color").value,
|
|
69
69
|
"box-shadow": "0px 4px 10px 0px rgba(0, 0, 0, 0.2)",
|
|
70
70
|
"border-radius": "1px",
|
|
71
71
|
padding: "2px 8px",
|
|
@@ -81,12 +81,12 @@ const fe = ["auto", "fit-content", "inherit", "initial", "max-content", "min-con
|
|
|
81
81
|
"z-index": o.errorModelZIndex
|
|
82
82
|
})), G = a({
|
|
83
83
|
display: "block",
|
|
84
|
-
color:
|
|
84
|
+
color: V("--das-ui-input-error-color").value,
|
|
85
85
|
"white-space": "break-spaces"
|
|
86
86
|
}), J = () => {
|
|
87
|
-
var b,
|
|
88
|
-
const { top: e, left: t } = (b = r.value) == null ? void 0 : b.$el.getBoundingClientRect(), v = (
|
|
89
|
-
M.value = (
|
|
87
|
+
var b, C, I;
|
|
88
|
+
const { top: e, left: t } = (b = r.value) == null ? void 0 : b.$el.getBoundingClientRect(), v = (C = r.value) == null ? void 0 : C.$el.clientHeight;
|
|
89
|
+
M.value = (I = r.value) == null ? void 0 : I.$el.clientWidth, x.value.x = t, x.value.y = e + v;
|
|
90
90
|
};
|
|
91
91
|
B(
|
|
92
92
|
() => {
|
|
@@ -105,12 +105,12 @@ const fe = ["auto", "fit-content", "inherit", "initial", "max-content", "min-con
|
|
|
105
105
|
o.type !== "textarea" && o.filterSpace && (t = t.trim()), m.value = t, $("change", t);
|
|
106
106
|
}, Q = () => {
|
|
107
107
|
var t;
|
|
108
|
-
o.borderType === "bottom" && (
|
|
108
|
+
o.borderType === "bottom" && (w.value = !0);
|
|
109
109
|
const e = (t = r.value) == null ? void 0 : t.textarea;
|
|
110
110
|
e && e.nextSibling && e.nextSibling.style && (e.nextSibling.style.display = "block");
|
|
111
111
|
}, X = () => {
|
|
112
112
|
var t;
|
|
113
|
-
o.borderType === "bottom" && (
|
|
113
|
+
o.borderType === "bottom" && (w.value = !1);
|
|
114
114
|
const e = (t = r.value) == null ? void 0 : t.textarea;
|
|
115
115
|
e && e.nextSibling && e.nextSibling.style && (e.nextSibling.style.display = "none");
|
|
116
116
|
};
|
|
@@ -159,7 +159,7 @@ const fe = ["auto", "fit-content", "inherit", "initial", "max-content", "min-con
|
|
|
159
159
|
}), (e, t) => (i(), d(
|
|
160
160
|
"div",
|
|
161
161
|
{
|
|
162
|
-
style:
|
|
162
|
+
style: E(P.value),
|
|
163
163
|
class: D([
|
|
164
164
|
"das-ui-input",
|
|
165
165
|
{ "only-border-bottom": e.borderType === "bottom" },
|
|
@@ -194,7 +194,7 @@ const fe = ["auto", "fit-content", "inherit", "initial", "max-content", "min-con
|
|
|
194
194
|
{ "is-view": e.isView },
|
|
195
195
|
{ "das-input-success": e.success },
|
|
196
196
|
{ "das-input-error": e.error },
|
|
197
|
-
{ "input-focus-color":
|
|
197
|
+
{ "input-focus-color": w.value }
|
|
198
198
|
],
|
|
199
199
|
autosize: o.autosize,
|
|
200
200
|
showWordLimit: A.value,
|
|
@@ -212,7 +212,7 @@ const fe = ["auto", "fit-content", "inherit", "initial", "max-content", "min-con
|
|
|
212
212
|
name: "prepend",
|
|
213
213
|
fn: y(() => [
|
|
214
214
|
n(" 输入框前置内容 "),
|
|
215
|
-
|
|
215
|
+
k(e.$slots, "prepend", {}, void 0, !0)
|
|
216
216
|
]),
|
|
217
217
|
key: "0"
|
|
218
218
|
} : void 0,
|
|
@@ -220,21 +220,21 @@ const fe = ["auto", "fit-content", "inherit", "initial", "max-content", "min-con
|
|
|
220
220
|
name: "append",
|
|
221
221
|
fn: y(() => [
|
|
222
222
|
n(" 输入框后置内容 "),
|
|
223
|
-
|
|
223
|
+
k(e.$slots, "append", {}, void 0, !0)
|
|
224
224
|
]),
|
|
225
225
|
key: "1"
|
|
226
226
|
} : void 0,
|
|
227
227
|
e.$slots.suffix ? {
|
|
228
228
|
name: "suffix",
|
|
229
229
|
fn: y(() => [
|
|
230
|
-
|
|
230
|
+
k(e.$slots, "suffix", {}, void 0, !0)
|
|
231
231
|
]),
|
|
232
232
|
key: "2"
|
|
233
233
|
} : void 0,
|
|
234
234
|
e.$slots.prefix ? {
|
|
235
235
|
name: "prefix",
|
|
236
236
|
fn: y(() => [
|
|
237
|
-
|
|
237
|
+
k(e.$slots, "prefix", {}, void 0, !0)
|
|
238
238
|
]),
|
|
239
239
|
key: "3"
|
|
240
240
|
} : void 0
|
|
@@ -247,7 +247,7 @@ const fe = ["auto", "fit-content", "inherit", "initial", "max-content", "min-con
|
|
|
247
247
|
e.success ? (i(), d(
|
|
248
248
|
"span",
|
|
249
249
|
be,
|
|
250
|
-
|
|
250
|
+
T(e.successLabel),
|
|
251
251
|
1
|
|
252
252
|
/* TEXT */
|
|
253
253
|
)) : n("v-if", !0)
|
|
@@ -257,7 +257,7 @@ const fe = ["auto", "fit-content", "inherit", "initial", "max-content", "min-con
|
|
|
257
257
|
key: 0,
|
|
258
258
|
class: D(["das-input-error-label", { "error-label-overflow": e.isErrorTitle }]),
|
|
259
259
|
title: e.isErrorTitle ? e.errorLabel : ""
|
|
260
|
-
},
|
|
260
|
+
}, T(e.errorLabel), 11, he)) : n("v-if", !0)
|
|
261
261
|
])) : n("v-if", !0),
|
|
262
262
|
e.error && e.errorLabel && S.value && e.errorMode === "overlay" ? (i(), d(
|
|
263
263
|
re,
|
|
@@ -270,15 +270,15 @@ const fe = ["auto", "fit-content", "inherit", "initial", "max-content", "min-con
|
|
|
270
270
|
z(
|
|
271
271
|
"div",
|
|
272
272
|
{
|
|
273
|
-
style:
|
|
273
|
+
style: E(q.value)
|
|
274
274
|
},
|
|
275
275
|
[
|
|
276
276
|
z(
|
|
277
277
|
"span",
|
|
278
278
|
{
|
|
279
|
-
style:
|
|
279
|
+
style: E(G.value)
|
|
280
280
|
},
|
|
281
|
-
|
|
281
|
+
T(e.errorLabel),
|
|
282
282
|
5
|
|
283
283
|
/* TEXT, STYLE */
|
|
284
284
|
)
|
|
@@ -290,7 +290,7 @@ const fe = ["auto", "fit-content", "inherit", "initial", "max-content", "min-con
|
|
|
290
290
|
z(
|
|
291
291
|
"span",
|
|
292
292
|
xe,
|
|
293
|
-
|
|
293
|
+
T(e.errorLabel),
|
|
294
294
|
1
|
|
295
295
|
/* TEXT */
|
|
296
296
|
)
|
|
@@ -304,12 +304,12 @@ const fe = ["auto", "fit-content", "inherit", "initial", "max-content", "min-con
|
|
|
304
304
|
/* CLASS, STYLE */
|
|
305
305
|
));
|
|
306
306
|
}
|
|
307
|
-
}),
|
|
307
|
+
}), Te = (l, h) => {
|
|
308
308
|
const g = l.__vccOpts || l;
|
|
309
|
-
for (const [o,
|
|
310
|
-
g[o] =
|
|
309
|
+
for (const [o, L] of h)
|
|
310
|
+
g[o] = L;
|
|
311
311
|
return g;
|
|
312
|
-
},
|
|
312
|
+
}, Le = /* @__PURE__ */ Te(ke, [["__scopeId", "data-v-9399e230"]]), Se = {
|
|
313
313
|
"--das-ui-input-default-text-color": "#212121",
|
|
314
314
|
"--das-ui-input-default-placeholder-text-color": "#B2B2B2",
|
|
315
315
|
"--das-ui-input-full-border-color": "#D9D9D9",
|
|
@@ -326,15 +326,15 @@ const fe = ["auto", "fit-content", "inherit", "initial", "max-content", "min-con
|
|
|
326
326
|
"--das-ui-input-only-bottom-view-border-color": "#E5E5E5",
|
|
327
327
|
"--das-ui-input-success-color": "#1BA854",
|
|
328
328
|
"--das-ui-input-error-color": "#FB2323"
|
|
329
|
-
},
|
|
330
|
-
共: { "zh-CN": "共", en: "Total" },
|
|
331
|
-
项: { "zh-CN": "项", en: "Item" },
|
|
332
|
-
请输入: { "zh-CN": "请输入", en: "Please Enter" }
|
|
329
|
+
}, we = {
|
|
330
|
+
共: { "zh-CN": "共", en: "Total", _appCode: "framework" },
|
|
331
|
+
项: { "zh-CN": "项", en: "Item", _appCode: "framework" },
|
|
332
|
+
请输入: { "zh-CN": "请输入", en: "Please Enter", _appCode: "framework" }
|
|
333
333
|
};
|
|
334
|
-
pe(
|
|
334
|
+
pe(we);
|
|
335
335
|
te(Se);
|
|
336
|
-
const
|
|
336
|
+
const Ve = ee(Le);
|
|
337
337
|
export {
|
|
338
|
-
|
|
339
|
-
|
|
338
|
+
Ve as DasInput,
|
|
339
|
+
Ve as default
|
|
340
340
|
};
|
|
Binary file
|
|
@@ -4446,10 +4446,11 @@ const Rt = /* @__PURE__ */ di(_i), hi = ["element-loading-text", "element-loadin
|
|
|
4446
4446
|
fe[Z] = O;
|
|
4447
4447
|
return fe;
|
|
4448
4448
|
}, ui = /* @__PURE__ */ li(ci, [["__scopeId", "data-v-70d5eba5"]]), fi = {
|
|
4449
|
-
加载中: { "zh-CN": "加载中", en: "Loading" },
|
|
4449
|
+
加载中: { "zh-CN": "加载中", en: "Loading", _appCode: "framework" },
|
|
4450
4450
|
"das-ui-live-player-videoLoadFailedRetry": {
|
|
4451
4451
|
"zh-CN": "视频加载失败,请点击重试",
|
|
4452
|
-
en: "Video Loading Failed. Please Click to Retry"
|
|
4452
|
+
en: "Video Loading Failed. Please Click to Retry",
|
|
4453
|
+
_appCode: "framework"
|
|
4453
4454
|
}
|
|
4454
4455
|
};
|
|
4455
4456
|
oi(fi);
|
|
Binary file
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import '@das-fed/ui/packages/components/loading/style.css';
|
|
2
2
|
import { inject as D, ref as I, computed as x, unref as R, openBlock as N, createElementBlock as V, createStaticVNode as Z, createElementVNode as z, reactive as M, defineComponent as Q, h as _, Transition as W, withCtx as X, withDirectives as ee, createVNode as te, vShow as ne, createApp as oe, toRefs as se, nextTick as j, isRef as ae } from "vue";
|
|
3
|
-
import { setThemeRule as
|
|
4
|
-
import { setI18nRule as
|
|
3
|
+
import { setThemeRule as re } from "@das-fed/web/packages/theme/index";
|
|
4
|
+
import { setI18nRule as ce, t as le } from "@das-fed/web/packages/i18n/index";
|
|
5
5
|
/**
|
|
6
6
|
* @vue/shared v3.5.11
|
|
7
7
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
@@ -14,9 +14,9 @@ const K = (t) => typeof t == "string", F = (t) => t !== null && typeof t == "obj
|
|
|
14
14
|
return (n) => e[n] || (e[n] = t(n));
|
|
15
15
|
}, de = /-(\w)/g, ie = G(
|
|
16
16
|
(t) => t.replace(de, (e, n) => n ? n.toUpperCase() : "")
|
|
17
|
-
), ue = /\B([A-Z])/g,
|
|
17
|
+
), ue = /\B([A-Z])/g, fe = G(
|
|
18
18
|
(t) => t.replace(ue, "-$1").toLowerCase()
|
|
19
|
-
),
|
|
19
|
+
), ve = (t) => typeof t == "number";
|
|
20
20
|
var B;
|
|
21
21
|
const A = typeof window < "u";
|
|
22
22
|
A && ((B = window == null ? void 0 : window.navigator) != null && B.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
@@ -30,16 +30,16 @@ const q = (t = "") => t.split(" ").filter((e) => !!e.trim()), E = (t, e) => {
|
|
|
30
30
|
let n = ie(e);
|
|
31
31
|
n === "float" && (n = "cssFloat");
|
|
32
32
|
try {
|
|
33
|
-
const
|
|
34
|
-
if (
|
|
33
|
+
const c = t.style[n];
|
|
34
|
+
if (c) return c;
|
|
35
35
|
const a = (o = document.defaultView) == null ? void 0 : o.getComputedStyle(t, "");
|
|
36
36
|
return a ? a[n] : "";
|
|
37
37
|
} catch {
|
|
38
38
|
return t.style[n];
|
|
39
39
|
}
|
|
40
|
-
}, L = "das", me = "is-", m = (t, e, n, o,
|
|
40
|
+
}, L = "das", me = "is-", m = (t, e, n, o, c) => {
|
|
41
41
|
let a = `${t}-${e}`;
|
|
42
|
-
return n && (a += `-${n}`), o && (a += `__${o}`),
|
|
42
|
+
return n && (a += `-${n}`), o && (a += `__${o}`), c && (a += `--${c}`), a;
|
|
43
43
|
}, ge = Symbol("namespaceContextKey"), pe = (t) => {
|
|
44
44
|
const e = t || D(ge, I(L));
|
|
45
45
|
return x(() => R(e) || L);
|
|
@@ -50,34 +50,34 @@ const q = (t = "") => t.split(" ").filter((e) => !!e.trim()), E = (t, e) => {
|
|
|
50
50
|
b: (s = "") => m(n.value, t, s, "", ""),
|
|
51
51
|
e: (s) => s ? m(n.value, t, "", s, "") : "",
|
|
52
52
|
m: (s) => s ? m(n.value, t, "", "", s) : "",
|
|
53
|
-
be: (s,
|
|
54
|
-
em: (s,
|
|
55
|
-
bm: (s,
|
|
56
|
-
bem: (s,
|
|
57
|
-
is: (s, ...
|
|
58
|
-
const d =
|
|
53
|
+
be: (s, r) => s && r ? m(n.value, t, s, r, "") : "",
|
|
54
|
+
em: (s, r) => s && r ? m(n.value, t, "", s, r) : "",
|
|
55
|
+
bm: (s, r) => s && r ? m(n.value, t, s, "", r) : "",
|
|
56
|
+
bem: (s, r, d) => s && r && d ? m(n.value, t, s, r, d) : "",
|
|
57
|
+
is: (s, ...r) => {
|
|
58
|
+
const d = r.length >= 1 ? r[0] : !0;
|
|
59
59
|
return s && d ? `${me}${s}` : "";
|
|
60
60
|
},
|
|
61
61
|
// css
|
|
62
62
|
cssVar: (s) => {
|
|
63
|
-
const
|
|
63
|
+
const r = {};
|
|
64
64
|
for (const d in s)
|
|
65
|
-
s[d] && (
|
|
66
|
-
return
|
|
65
|
+
s[d] && (r[`--${n.value}-${d}`] = s[d]);
|
|
66
|
+
return r;
|
|
67
67
|
},
|
|
68
68
|
cssVarName: (s) => `--${n.value}-${s}`,
|
|
69
69
|
cssVarBlock: (s) => {
|
|
70
|
-
const
|
|
70
|
+
const r = {};
|
|
71
71
|
for (const d in s)
|
|
72
|
-
s[d] && (
|
|
73
|
-
return
|
|
72
|
+
s[d] && (r[`--${n.value}-${t}-${d}`] = s[d]);
|
|
73
|
+
return r;
|
|
74
74
|
},
|
|
75
75
|
cssVarBlockName: (s) => `--${n.value}-${t}-${s}`
|
|
76
76
|
};
|
|
77
77
|
}, S = I(0), U = 2e3, be = Symbol("zIndexContextKey"), xe = (t) => {
|
|
78
78
|
const e = t || D(be, void 0), n = x(() => {
|
|
79
79
|
const a = R(e);
|
|
80
|
-
return
|
|
80
|
+
return ve(a) ? a : U;
|
|
81
81
|
}), o = x(() => n.value + S.value);
|
|
82
82
|
return {
|
|
83
83
|
initialZIndex: n,
|
|
@@ -99,8 +99,8 @@ function _e(t) {
|
|
|
99
99
|
}
|
|
100
100
|
const k = (t, e) => {
|
|
101
101
|
const n = t.__vccOpts || t;
|
|
102
|
-
for (const [o,
|
|
103
|
-
n[o] =
|
|
102
|
+
for (const [o, c] of e)
|
|
103
|
+
n[o] = c;
|
|
104
104
|
return n;
|
|
105
105
|
}, Ce = {}, $e = { class: "das-loading-container das-loading-page" };
|
|
106
106
|
function Ie(t, e) {
|
|
@@ -137,20 +137,20 @@ function Be(t) {
|
|
|
137
137
|
originalOverflow: "",
|
|
138
138
|
visible: !1
|
|
139
139
|
});
|
|
140
|
-
function
|
|
140
|
+
function c(l) {
|
|
141
141
|
o.text = l;
|
|
142
142
|
}
|
|
143
143
|
function a() {
|
|
144
|
-
const l = o.parent,
|
|
144
|
+
const l = o.parent, v = p.ns;
|
|
145
145
|
if (!l.vLoadingAddClassList) {
|
|
146
|
-
let
|
|
147
|
-
|
|
146
|
+
let f = l.getAttribute("loading-number");
|
|
147
|
+
f = Number.parseInt(f) - 1, f ? l.setAttribute("loading-number", f.toString()) : ($(l, v.bm("parent", "relative")), l.removeAttribute("loading-number")), $(l, v.bm("parent", "hidden"));
|
|
148
148
|
}
|
|
149
149
|
u(), h.unmount();
|
|
150
150
|
}
|
|
151
151
|
function u() {
|
|
152
|
-
var l,
|
|
153
|
-
(
|
|
152
|
+
var l, v;
|
|
153
|
+
(v = (l = p.$el) == null ? void 0 : l.parentNode) == null || v.removeChild(p.$el);
|
|
154
154
|
}
|
|
155
155
|
function y() {
|
|
156
156
|
var l;
|
|
@@ -163,20 +163,20 @@ function Be(t) {
|
|
|
163
163
|
}
|
|
164
164
|
const g = Q({
|
|
165
165
|
name: "DasLoading",
|
|
166
|
-
setup(l, { expose:
|
|
167
|
-
const { ns:
|
|
168
|
-
return
|
|
169
|
-
ns:
|
|
166
|
+
setup(l, { expose: v }) {
|
|
167
|
+
const { ns: f, zIndex: s } = _e("loading");
|
|
168
|
+
return v({
|
|
169
|
+
ns: f,
|
|
170
170
|
zIndex: s
|
|
171
171
|
}), () => {
|
|
172
|
-
let
|
|
172
|
+
let r = o.spinner || o.svg || O;
|
|
173
173
|
const d = o.type;
|
|
174
|
-
d == "page" && (
|
|
175
|
-
const H = _(
|
|
174
|
+
d == "page" && (r = O), d == "container" && (r = ze), d == "component" && (r = Ne);
|
|
175
|
+
const H = _(r), J = o.text ? _("p", { class: f.b("text") }, [o.text]) : void 0;
|
|
176
176
|
return _(
|
|
177
177
|
W,
|
|
178
178
|
{
|
|
179
|
-
name:
|
|
179
|
+
name: f.b("fade"),
|
|
180
180
|
onAfterLeave: i
|
|
181
181
|
},
|
|
182
182
|
{
|
|
@@ -189,7 +189,7 @@ function Be(t) {
|
|
|
189
189
|
backgroundColor: o.background || ""
|
|
190
190
|
},
|
|
191
191
|
class: [
|
|
192
|
-
|
|
192
|
+
f.b("mask"),
|
|
193
193
|
o.customClass,
|
|
194
194
|
o.fullscreen ? "is-fullscreen" : ""
|
|
195
195
|
]
|
|
@@ -198,7 +198,7 @@ function Be(t) {
|
|
|
198
198
|
_(
|
|
199
199
|
"div",
|
|
200
200
|
{
|
|
201
|
-
class:
|
|
201
|
+
class: f.b("spinner")
|
|
202
202
|
},
|
|
203
203
|
[H, J]
|
|
204
204
|
)
|
|
@@ -214,7 +214,7 @@ function Be(t) {
|
|
|
214
214
|
}), h = oe(g), p = h.mount(document.createElement("div"));
|
|
215
215
|
return {
|
|
216
216
|
...se(o),
|
|
217
|
-
setText:
|
|
217
|
+
setText: c,
|
|
218
218
|
removeElLoadingChild: u,
|
|
219
219
|
close: y,
|
|
220
220
|
handleAfterLeave: i,
|
|
@@ -233,8 +233,8 @@ const Y = function(t = {}) {
|
|
|
233
233
|
const n = Be({
|
|
234
234
|
...e,
|
|
235
235
|
closed: () => {
|
|
236
|
-
var
|
|
237
|
-
(
|
|
236
|
+
var c;
|
|
237
|
+
(c = e.closed) == null || c.call(e), e.fullscreen && (C = void 0);
|
|
238
238
|
}
|
|
239
239
|
});
|
|
240
240
|
Se(e, e.parent, n), T(e, e.parent, n), e.parent.vLoadingAddClassList = () => T(e, e.parent, n);
|
|
@@ -257,30 +257,30 @@ const Y = function(t = {}) {
|
|
|
257
257
|
target: e
|
|
258
258
|
};
|
|
259
259
|
}, Se = async (t, e, n) => {
|
|
260
|
-
const { nextZIndex: o } = n.vm.zIndex || n.vm._.exposed.zIndex,
|
|
260
|
+
const { nextZIndex: o } = n.vm.zIndex || n.vm._.exposed.zIndex, c = {};
|
|
261
261
|
if (t.fullscreen)
|
|
262
|
-
n.originalPosition.value = b(document.body, "position"), n.originalOverflow.value = b(document.body, "overflow"),
|
|
262
|
+
n.originalPosition.value = b(document.body, "position"), n.originalOverflow.value = b(document.body, "overflow"), c.zIndex = o();
|
|
263
263
|
else if (t.parent === document.body) {
|
|
264
264
|
n.originalPosition.value = b(document.body, "position"), await j();
|
|
265
265
|
for (const a of ["top", "left"]) {
|
|
266
266
|
const u = a === "top" ? "scrollTop" : "scrollLeft";
|
|
267
|
-
|
|
267
|
+
c[a] = `${t.target.getBoundingClientRect()[a] + document.body[u] + document.documentElement[u] - Number.parseInt(b(document.body, `margin-${a}`), 10)}px`;
|
|
268
268
|
}
|
|
269
269
|
for (const a of ["height", "width"])
|
|
270
|
-
|
|
270
|
+
c[a] = `${t.target.getBoundingClientRect()[a]}px`;
|
|
271
271
|
} else
|
|
272
272
|
n.originalPosition.value = b(e, "position");
|
|
273
|
-
for (const [a, u] of Object.entries(
|
|
273
|
+
for (const [a, u] of Object.entries(c))
|
|
274
274
|
n.$el.style[a] = u;
|
|
275
275
|
}, T = (t, e, n) => {
|
|
276
276
|
const o = n.vm.ns || n.vm._.exposed.ns;
|
|
277
277
|
["absolute", "fixed", "sticky"].includes(n.originalPosition.value) ? $(e, o.bm("parent", "relative")) : E(e, o.bm("parent", "relative")), t.fullscreen && t.lock ? E(e, o.bm("parent", "hidden")) : $(e, o.bm("parent", "hidden"));
|
|
278
278
|
}, w = Symbol("DasLoading"), P = (t, e) => {
|
|
279
|
-
const n = e.instance, o = (i) => F(e.value) ? e.value[i] : void 0,
|
|
279
|
+
const n = e.instance, o = (i) => F(e.value) ? e.value[i] : void 0, c = (i) => {
|
|
280
280
|
const g = K(i) && (n == null ? void 0 : n[i]) || i;
|
|
281
281
|
return g && I(g);
|
|
282
|
-
}, a = (i) =>
|
|
283
|
-
o(i) || t.getAttribute(`das-loading-${
|
|
282
|
+
}, a = (i) => c(
|
|
283
|
+
o(i) || t.getAttribute(`das-loading-${fe(i)}`)
|
|
284
284
|
), u = o("fullscreen") ?? e.modifiers.fullscreen, y = {
|
|
285
285
|
type: a("type"),
|
|
286
286
|
text: a("text"),
|
|
@@ -320,9 +320,9 @@ const Y = function(t = {}) {
|
|
|
320
320
|
"--das-ui-loading-logo-4-color": "#a06eff",
|
|
321
321
|
"--das-ui-loading-logo-5-color": "#5582f3",
|
|
322
322
|
"--das-ui-loading-logo-6-color": "#ebebeb"
|
|
323
|
-
}, Pe = { 加载: { "zh-CN": "加载", en: "Loading" } };
|
|
324
|
-
|
|
325
|
-
|
|
323
|
+
}, Pe = { 加载: { "zh-CN": "加载", en: "Loading", _appCode: "framework" } };
|
|
324
|
+
ce(Pe);
|
|
325
|
+
re(Te);
|
|
326
326
|
const Ke = {
|
|
327
327
|
service: Y
|
|
328
328
|
}, Fe = { name: `loading ${le("加载")}` };
|
|
Binary file
|
|
@@ -2,18 +2,22 @@ declare const _default: {
|
|
|
2
2
|
请输入位置: {
|
|
3
3
|
'zh-CN': string;
|
|
4
4
|
en: string;
|
|
5
|
+
_appCode: string;
|
|
5
6
|
};
|
|
6
7
|
获取地图配置信息失败: {
|
|
7
8
|
'zh-CN': string;
|
|
8
9
|
en: string;
|
|
10
|
+
_appCode: string;
|
|
9
11
|
};
|
|
10
12
|
暂未配置地图: {
|
|
11
13
|
'zh-CN': string;
|
|
12
14
|
en: string;
|
|
15
|
+
_appCode: string;
|
|
13
16
|
};
|
|
14
17
|
thirdPartyMapErrorRetry: {
|
|
15
18
|
'zh-CN': string;
|
|
16
19
|
en: string;
|
|
20
|
+
_appCode: string;
|
|
17
21
|
};
|
|
18
22
|
};
|
|
19
23
|
export default _default;
|