@das-fed/ui 1.1.4 → 6.3.0-beta.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/global/icons/index.local.js +1 -1
- package/global/style/index.css +1 -1
- package/global/style/scrollbar.css +22 -22
- package/global/theme/index.js +12 -12
- package/global/theme/module/color.js +31 -31
- package/global/theme/module/fontSize.js +5 -5
- package/global/theme/module/scrollbar.js +6 -6
- package/package.json +15 -9
- package/packages/business-components/app-container/index.js +154 -147
- package/packages/business-components/change-enterprises/index.css +1 -0
- package/packages/business-components/change-enterprises/index.js +241 -0
- package/packages/business-components/change-pwd/index.css +1 -0
- package/packages/business-components/change-pwd/index.js +330 -0
- package/packages/business-components/currency-page/index.css +1 -0
- package/packages/business-components/currency-page/index.js +99 -0
- package/packages/business-components/device-panel/index.css +1 -0
- package/packages/business-components/device-panel/index.js +115939 -0
- package/packages/business-components/echarts/index.js +93 -122
- package/packages/business-components/export-button/index.js +73 -66
- package/packages/business-components/import-button/index.js +213 -170
- package/packages/business-components/index.js +8 -1
- package/packages/business-components/layout-breadcrumb/index.js +82 -66
- package/packages/business-components/model-table-dialog/index.js +299 -289
- package/packages/business-components/process-configuration/index.css +1 -0
- package/packages/business-components/process-configuration/index.js +612 -0
- package/packages/business-components/process-form/index.css +1 -0
- package/packages/business-components/process-form/index.js +524 -0
- package/packages/business-components/process-search-form/index.js +73 -315
- package/packages/business-components/process-table/index.css +1 -1
- package/packages/business-components/process-table/index.js +186 -152
- package/packages/business-components/urgent-panel/index.css +1 -0
- package/packages/business-components/urgent-panel/index.js +3914 -0
- package/packages/business-components/user-org-dialog/index.js +466 -375
- package/packages/business-components/video-dialog/index.css +1 -0
- package/packages/business-components/video-dialog/index.js +1041 -0
- package/packages/business.js +1 -2
- package/packages/components/alert/index.js +449 -633
- package/packages/components/audio-video/index.css +1 -1
- package/packages/components/audio-video/index.js +312 -126
- package/packages/components/autocomplete/index.css +1 -1
- package/packages/components/autocomplete/index.js +312 -2923
- package/packages/components/breadcrumb/index.js +97 -82
- package/packages/components/button/index.css +1 -1
- package/packages/components/button/index.js +646 -787
- package/packages/components/calendar/index.css +1 -1
- package/packages/components/calendar/index.js +655 -3879
- package/packages/components/cascader/index.js +209 -203
- package/packages/components/checkbox/index.css +1 -1
- package/packages/components/checkbox/index.js +710 -872
- package/packages/components/collapse-panel/index.css +1 -1
- package/packages/components/collapse-panel/index.js +419 -601
- package/packages/components/collapse-transition/index.js +23 -21
- package/packages/components/collaspe/index.css +1 -1
- package/packages/components/collaspe/index.js +413 -595
- package/packages/components/color-picker/index.css +1 -1
- package/packages/components/color-picker/index.js +176 -133
- package/packages/components/custom-search-item/index.js +43 -37
- package/packages/components/date-picker/index.js +1338 -1459
- package/packages/components/dialog/index.js +429 -215
- package/packages/components/dimple-layout/index.css +1 -1
- package/packages/components/dimple-layout/index.js +1298 -1794
- package/packages/components/drawer/index.js +105 -77
- package/packages/components/dropdown/index.js +129 -109
- package/packages/components/edit-table/index.css +1 -1
- package/packages/components/edit-table/index.js +868 -752
- package/packages/components/empty/index.js +83 -78
- package/packages/components/form/index.js +22 -15
- package/packages/components/form-item/index.css +1 -1
- package/packages/components/form-item/index.js +601 -440
- package/packages/components/icon/index.css +1 -1
- package/packages/components/icon/index.js +38 -22
- package/packages/components/image-preview/index.css +1 -0
- package/packages/components/image-preview/index.js +2714 -0
- package/packages/components/image-upload/index.js +601 -765
- package/packages/components/image-viewer/index.css +1 -1
- package/packages/components/image-viewer/index.js +909 -990
- package/packages/components/index.js +2 -2
- package/packages/components/input/index.css +1 -1
- package/packages/components/input/index.js +284 -256
- package/packages/components/input-dialog-select/index.css +1 -1
- package/packages/components/input-dialog-select/index.js +179 -156
- package/packages/components/input-number/index.css +1 -1
- package/packages/components/input-number/index.js +157 -170
- package/packages/components/live-player/index.css +1 -0
- package/packages/components/live-player/index.js +170 -0
- package/packages/components/loading/index.js +17 -26
- package/packages/components/map/index.css +1 -1
- package/packages/components/map/index.js +18913 -461
- package/packages/components/menu-aside/index.css +1 -1
- package/packages/components/menu-aside/index.js +648 -713
- package/packages/components/menu-header/index.js +446 -629
- package/packages/components/message/index.js +25 -16
- package/packages/components/notification/index.js +386 -575
- package/packages/components/overlay/index.js +112 -103
- package/packages/components/pagination/index.js +260 -330
- package/packages/components/popover/index.js +104 -93
- package/packages/components/popup-mask/index.css +1 -1
- package/packages/components/popup-mask/index.js +77 -72
- package/packages/components/preview/index.js +33 -28
- package/packages/components/progress/index.js +214 -221
- package/packages/components/radio/index.css +1 -1
- package/packages/components/radio/index.js +699 -862
- package/packages/components/radio-tabs/index.js +144 -107
- package/packages/components/rich-editor/index.css +1 -1
- package/packages/components/rich-editor/index.js +105 -106
- package/packages/components/scrollbar/index.css +3 -2
- package/packages/components/scrollbar/index.js +2262 -1201
- package/packages/components/search/index.js +500 -664
- package/packages/components/search-form/index.css +1 -1
- package/packages/components/search-form/index.js +724 -626
- package/packages/components/select/index.css +1 -1
- package/packages/components/select/index.js +1052 -950
- package/packages/components/select-input/index.js +63 -53
- package/packages/components/select-list/index.css +1 -1
- package/packages/components/select-list/index.js +258 -235
- package/packages/components/special-range-picker-month/index.css +1 -1
- package/packages/components/special-range-picker-month/index.js +3068 -72555
- package/packages/components/special-range-picker-year/index.css +1 -1
- package/packages/components/special-range-picker-year/index.js +345 -339
- package/packages/components/spin/index.js +415 -594
- package/packages/components/split-panel/index.css +1 -1
- package/packages/components/split-panel/index.js +146 -127
- package/packages/components/step/index.js +414 -597
- package/packages/components/steps/index.js +407 -590
- package/packages/components/switch/index.js +23 -23
- package/packages/components/table/index.css +1 -1
- package/packages/components/table/index.js +80813 -27734
- package/packages/components/tabs/index.css +1 -1
- package/packages/components/tabs/index.js +620 -813
- package/packages/components/tag/index.js +63 -63
- package/packages/components/text-tooltip/index.css +9 -0
- package/packages/components/text-tooltip/index.js +2739 -33
- package/packages/components/time-line/index.js +464 -643
- package/packages/components/tooltip/index.css +1 -1
- package/packages/components/tooltip/index.js +108 -79
- package/packages/components/tree/index.css +1 -1
- package/packages/components/tree/index.js +840 -809
- package/packages/components/tree-select/index.js +271 -303
- package/packages/components/tree-table/index.js +461 -352
- package/packages/components/upload/index.js +682 -858
- package/packages/components/virtual-tree/index.css +1 -1
- package/packages/components/virtual-tree/index.js +144 -126
- package/packages/index.d.ts +1 -0
- package/packages/index.js +2 -2
- package/style/business.css +11 -4
- package/style/index.css +52 -42
- package/packages/business-components/low-code/index.css +0 -1
- package/packages/business-components/low-code/index.js +0 -60
- package/packages/components/audio-video-player/index.css +0 -1
- package/packages/components/audio-video-player/index.js +0 -83
- package/packages/components/table-column/index.css +0 -1
- package/packages/components/table-column/index.js +0 -82021
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import { createStyle
|
|
1
|
+
import { createStyle } from '@das-fed/utils/style';
|
|
2
|
+
import { vScrollbar } from '@das-fed/ui';
|
|
3
|
+
import { getVarValue } from '@das-fed/web';
|
|
4
|
+
import '@das-fed/ui/global/theme';
|
|
2
5
|
|
|
3
6
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
4
7
|
|
|
@@ -17206,14 +17209,13 @@ lodash.exports;
|
|
|
17206
17209
|
|
|
17207
17210
|
var lodashExports = lodash.exports;
|
|
17208
17211
|
|
|
17209
|
-
const
|
|
17210
|
-
if (!styles)
|
|
17211
|
-
|
|
17212
|
-
const
|
|
17213
|
-
|
|
17214
|
-
const
|
|
17215
|
-
|
|
17216
|
-
return [
|
|
17212
|
+
const createOverlayStyle = (className, styles) => {
|
|
17213
|
+
if (!styles) styles = {};
|
|
17214
|
+
const overlayHandleColor = styles.handleColor || getVarValue("--das-ui-scrollbar-thumb-color").value;
|
|
17215
|
+
const overlayHandleActiveColor = styles.activeColor || getVarValue("--das-ui-scrollbar-thumb-hover-color").value;
|
|
17216
|
+
const size = getVarValue("--das-ui-scrollbar-thumb-size").value || "10px";
|
|
17217
|
+
const padding = getVarValue("--das-ui-scrollbar-padding").value || "1px";
|
|
17218
|
+
return createStyle(className, [
|
|
17217
17219
|
{
|
|
17218
17220
|
className: `.${className}`,
|
|
17219
17221
|
style: styles
|
|
@@ -17229,93 +17231,113 @@ const getStyles = (className, styles) => {
|
|
|
17229
17231
|
{
|
|
17230
17232
|
className: `.${className}::-webkit-scrollbar-corner`,
|
|
17231
17233
|
style: {
|
|
17232
|
-
"background-color": "
|
|
17234
|
+
"background-color": "rgba(0, 0, 0, 0)"
|
|
17235
|
+
}
|
|
17236
|
+
},
|
|
17237
|
+
{
|
|
17238
|
+
className: `.${className}::-webkit-scrollbar-thumb:vertical`,
|
|
17239
|
+
style: {
|
|
17240
|
+
"border-radius": size,
|
|
17241
|
+
border: `${padding} solid rgba(0, 0, 0, 0)`,
|
|
17242
|
+
"background-clip": "content-box",
|
|
17243
|
+
"background-color": `rgba(0, 0, 0, 0)`
|
|
17244
|
+
}
|
|
17245
|
+
},
|
|
17246
|
+
{
|
|
17247
|
+
className: `.${className}::-webkit-scrollbar-thumb:horizontal`,
|
|
17248
|
+
style: {
|
|
17249
|
+
"border-radius": size,
|
|
17250
|
+
border: `${padding} solid rgba(0, 0, 0, 0)`,
|
|
17251
|
+
"background-clip": "content-box",
|
|
17252
|
+
"background-color": `rgba(0, 0, 0, 0)`
|
|
17233
17253
|
}
|
|
17234
17254
|
},
|
|
17235
17255
|
{
|
|
17236
|
-
|
|
17256
|
+
className: `.${className}:hover::-webkit-scrollbar`,
|
|
17237
17257
|
style: {
|
|
17258
|
+
width: size,
|
|
17259
|
+
height: size,
|
|
17238
17260
|
"background-color": "transparent"
|
|
17239
17261
|
}
|
|
17240
17262
|
},
|
|
17241
17263
|
{
|
|
17242
|
-
className: `.${className}::-webkit-scrollbar-
|
|
17264
|
+
className: `.${className}:hover::-webkit-scrollbar-corner`,
|
|
17265
|
+
style: {
|
|
17266
|
+
"background-color": "rgba(0,0,0,0)"
|
|
17267
|
+
}
|
|
17268
|
+
},
|
|
17269
|
+
{
|
|
17270
|
+
className: `.${className}:hover::-webkit-scrollbar-thumb:vertical`,
|
|
17243
17271
|
style: {
|
|
17244
17272
|
"border-radius": size,
|
|
17245
|
-
border: `${padding} solid
|
|
17273
|
+
border: `${padding} solid rgba(0, 0, 0, 0)`,
|
|
17246
17274
|
"background-clip": "content-box",
|
|
17247
|
-
"background-color":
|
|
17248
|
-
|
|
17275
|
+
"background-color": `${overlayHandleColor}`
|
|
17276
|
+
}
|
|
17277
|
+
},
|
|
17278
|
+
{
|
|
17279
|
+
className: `.${className}:hover::-webkit-scrollbar-thumb:vertical:hover`,
|
|
17280
|
+
style: {
|
|
17281
|
+
"background-color": `${overlayHandleActiveColor}`
|
|
17249
17282
|
}
|
|
17250
17283
|
},
|
|
17251
17284
|
{
|
|
17252
|
-
className: `.${className}:hover::-webkit-scrollbar-thumb`,
|
|
17285
|
+
className: `.${className}:hover::-webkit-scrollbar-thumb:horizontal`,
|
|
17253
17286
|
style: {
|
|
17254
17287
|
"border-radius": size,
|
|
17255
|
-
border: `${padding} solid
|
|
17288
|
+
border: `${padding} solid rgba(0, 0, 0, 0)`,
|
|
17256
17289
|
"background-clip": "content-box",
|
|
17257
|
-
"background-color": overlayHandleColor
|
|
17258
|
-
cursor: "pointer"
|
|
17290
|
+
"background-color": `${overlayHandleColor}`
|
|
17259
17291
|
}
|
|
17260
17292
|
},
|
|
17261
17293
|
{
|
|
17262
|
-
className: `.${className}::-webkit-scrollbar-thumb:hover`,
|
|
17294
|
+
className: `.${className}:hover::-webkit-scrollbar-thumb:horizontal:hover`,
|
|
17263
17295
|
style: {
|
|
17264
|
-
|
|
17265
|
-
"background-color": " var(--das-ui-scrollbar-thumb-hover-color)"
|
|
17296
|
+
"background-color": `${overlayHandleActiveColor}`
|
|
17266
17297
|
}
|
|
17267
17298
|
}
|
|
17268
|
-
];
|
|
17299
|
+
]);
|
|
17269
17300
|
};
|
|
17270
|
-
const
|
|
17271
|
-
|
|
17272
|
-
return createStyle(className, style);
|
|
17273
|
-
};
|
|
17274
|
-
const getEl = async (el2, options) => {
|
|
17275
|
-
let res = el2;
|
|
17301
|
+
const getEl = async (el, options) => {
|
|
17302
|
+
let res = el;
|
|
17276
17303
|
if (options.target) {
|
|
17277
|
-
if (typeof options.target === "string")
|
|
17278
|
-
|
|
17279
|
-
if (typeof options.target === "function")
|
|
17280
|
-
res = await options.target(el2);
|
|
17304
|
+
if (typeof options.target === "string") res = options.target;
|
|
17305
|
+
if (typeof options.target === "function") res = await options.target(el);
|
|
17281
17306
|
}
|
|
17282
|
-
if (!res)
|
|
17283
|
-
return;
|
|
17307
|
+
if (!res) return;
|
|
17284
17308
|
let visible = true;
|
|
17285
17309
|
if (options.visible !== void 0) {
|
|
17286
17310
|
if (typeof options.visible === "function") {
|
|
17287
|
-
visible = options.visible(
|
|
17311
|
+
visible = options.visible(el);
|
|
17288
17312
|
} else {
|
|
17289
17313
|
visible = options.visible;
|
|
17290
17314
|
}
|
|
17291
17315
|
}
|
|
17292
|
-
if (!visible)
|
|
17293
|
-
return;
|
|
17316
|
+
if (!visible) return;
|
|
17294
17317
|
return res;
|
|
17295
17318
|
};
|
|
17296
17319
|
const getVisible = (options) => {
|
|
17297
17320
|
let visible = true;
|
|
17298
17321
|
if (options.visible !== void 0) {
|
|
17299
17322
|
if (typeof options.visible === "function") {
|
|
17300
|
-
visible = options.visible(
|
|
17323
|
+
visible = options.visible();
|
|
17301
17324
|
} else {
|
|
17302
17325
|
visible = options.visible;
|
|
17303
17326
|
}
|
|
17304
17327
|
}
|
|
17305
|
-
if (visible === false)
|
|
17306
|
-
return { x: false, y: false };
|
|
17328
|
+
if (visible === false) return { x: false, y: false };
|
|
17307
17329
|
let x = true;
|
|
17308
17330
|
let y = true;
|
|
17309
17331
|
if (options.x !== void 0) {
|
|
17310
17332
|
if (typeof options.x === "function") {
|
|
17311
|
-
x = options.x(
|
|
17333
|
+
x = options.x();
|
|
17312
17334
|
} else {
|
|
17313
17335
|
x = options.x;
|
|
17314
17336
|
}
|
|
17315
17337
|
}
|
|
17316
17338
|
if (options.y !== void 0) {
|
|
17317
17339
|
if (typeof options.y === "function") {
|
|
17318
|
-
y = options.y(
|
|
17340
|
+
y = options.y();
|
|
17319
17341
|
} else {
|
|
17320
17342
|
y = options.y;
|
|
17321
17343
|
}
|
|
@@ -17344,75 +17366,62 @@ const getOverlayStyle = (options) => {
|
|
|
17344
17366
|
"overflow-x": x ? xOverflow : "hidden",
|
|
17345
17367
|
"overflow-y": y ? yOverflow : "hidden"
|
|
17346
17368
|
};
|
|
17347
|
-
if (options["z-index"] !== void 0)
|
|
17348
|
-
|
|
17349
|
-
if (options.
|
|
17350
|
-
res.handleColor = options.handleColor;
|
|
17351
|
-
if (options.activeColor)
|
|
17352
|
-
res.activeColor = options.activeColor;
|
|
17369
|
+
if (options["z-index"] !== void 0) res["z-index"] = options["z-index"];
|
|
17370
|
+
if (options.handleColor) res.handleColor = options.handleColor;
|
|
17371
|
+
if (options.activeColor) res.activeColor = options.activeColor;
|
|
17353
17372
|
return res;
|
|
17354
17373
|
};
|
|
17355
|
-
const
|
|
17356
|
-
|
|
17357
|
-
|
|
17358
|
-
|
|
17359
|
-
|
|
17360
|
-
document.head.appendChild(style2);
|
|
17361
|
-
}
|
|
17362
|
-
const style = document.getElementById(className);
|
|
17363
|
-
return style.sheet;
|
|
17364
|
-
};
|
|
17365
|
-
const setOverlayStyle = (className, styles) => {
|
|
17366
|
-
const sheet = getOverlayStyleSheet(className);
|
|
17367
|
-
const data = getStyles(className, styles);
|
|
17368
|
-
for (const item of data) {
|
|
17369
|
-
sheet.insertRule(`${item.className} {${getCSS(item.style)}}`, sheet.cssRules.length);
|
|
17370
|
-
}
|
|
17371
|
-
};
|
|
17372
|
-
const resetOverlayStyle = (el2) => {
|
|
17373
|
-
const className = el2.overlayClassName;
|
|
17374
|
-
const style = document.getElementById(className);
|
|
17375
|
-
style.remove();
|
|
17376
|
-
el2.classList.remove(className);
|
|
17374
|
+
const reset = (el) => {
|
|
17375
|
+
const className = el.overlayClassName;
|
|
17376
|
+
const style = Object.values(document.styleSheets).find((item) => item.ownerNode.id === className);
|
|
17377
|
+
style && style.ownerNode.remove();
|
|
17378
|
+
el.classList.remove(className);
|
|
17377
17379
|
};
|
|
17380
|
+
createOverlayStyle("das-overlay", {
|
|
17381
|
+
position: "relative",
|
|
17382
|
+
"overflow-x": "overlay !important",
|
|
17383
|
+
"overflow-y": "overlay !important"
|
|
17384
|
+
});
|
|
17378
17385
|
const overlay = {
|
|
17379
|
-
beforeMount: async (
|
|
17386
|
+
beforeMount: async (el, binding, vnode) => {
|
|
17387
|
+
const options = (vnode ? binding.value : binding) || {};
|
|
17388
|
+
if (options.usePrevOverlay) {
|
|
17389
|
+
el.overlayEl = await getEl(el, options);
|
|
17390
|
+
if (!el.overlayEl) return;
|
|
17391
|
+
el.overlayStyle = getOverlayStyle(options);
|
|
17392
|
+
const overlayClassName = `das-overlay-${+/* @__PURE__ */ new Date()}`;
|
|
17393
|
+
el.overlayEl.overlayClassName = overlayClassName;
|
|
17394
|
+
await createOverlayStyle(overlayClassName, el.overlayStyle);
|
|
17395
|
+
el.overlayEl.classList.add(overlayClassName);
|
|
17396
|
+
}
|
|
17397
|
+
},
|
|
17398
|
+
updated: async (el, binding, vnode) => {
|
|
17380
17399
|
const options = (vnode ? binding.value : binding) || {};
|
|
17381
|
-
|
|
17382
|
-
|
|
17383
|
-
|
|
17384
|
-
|
|
17385
|
-
|
|
17386
|
-
|
|
17387
|
-
|
|
17388
|
-
|
|
17400
|
+
if (options.usePrevOverlay) {
|
|
17401
|
+
const overlayEl = await getEl(el, options);
|
|
17402
|
+
const overlayStyle = getOverlayStyle(options);
|
|
17403
|
+
if (!overlayEl) {
|
|
17404
|
+
if (el.overlayEl) reset(el.overlayEl);
|
|
17405
|
+
return;
|
|
17406
|
+
}
|
|
17407
|
+
let needUpdate = options.needUpdate ?? false;
|
|
17408
|
+
if (!lodashExports.isEqual(el.overlayEl, overlayEl)) needUpdate = true;
|
|
17409
|
+
if (!lodashExports.isEqual(el.overlayStyle, overlayStyle)) needUpdate = true;
|
|
17410
|
+
if (!needUpdate) return;
|
|
17411
|
+
setTimeout(() => {
|
|
17412
|
+
reset(overlayEl);
|
|
17413
|
+
overlay.beforeMount(el, binding, vnode);
|
|
17414
|
+
}, 1e3);
|
|
17415
|
+
}
|
|
17389
17416
|
},
|
|
17390
|
-
|
|
17417
|
+
mounted: async (el, binding, vnode) => {
|
|
17391
17418
|
const options = (vnode ? binding.value : binding) || {};
|
|
17392
|
-
|
|
17393
|
-
|
|
17394
|
-
|
|
17395
|
-
|
|
17396
|
-
resetOverlayStyle(el2.overlayEl);
|
|
17397
|
-
return;
|
|
17419
|
+
if (!options.usePrevOverlay) {
|
|
17420
|
+
setTimeout(() => {
|
|
17421
|
+
vScrollbar.mounted(el, binding, vnode);
|
|
17422
|
+
});
|
|
17398
17423
|
}
|
|
17399
|
-
let needUpdate = options.needUpdate ?? false;
|
|
17400
|
-
if (!lodashExports.isEqual(el2.overlayEl, overlayEl))
|
|
17401
|
-
needUpdate = true;
|
|
17402
|
-
if (!lodashExports.isEqual(el2.overlayStyle, overlayStyle))
|
|
17403
|
-
needUpdate = true;
|
|
17404
|
-
if (!needUpdate)
|
|
17405
|
-
return;
|
|
17406
|
-
setTimeout(() => {
|
|
17407
|
-
resetOverlayStyle(overlayEl);
|
|
17408
|
-
overlay.beforeMount(el2, binding, vnode);
|
|
17409
|
-
}, 1e3);
|
|
17410
17424
|
}
|
|
17411
17425
|
};
|
|
17412
|
-
createOverlayStyle("das-overlay", {
|
|
17413
|
-
position: "relative",
|
|
17414
|
-
"overflow-x": "overlay !important",
|
|
17415
|
-
"overflow-y": "overlay !important"
|
|
17416
|
-
});
|
|
17417
17426
|
|
|
17418
17427
|
export { overlay as default, overlay as vOverlay };
|