exploria-ui 2026.2.31 → 2026.3.2
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/README.md +240 -16
- package/dist/_virtual/_plugin-vue_export-helper.js +8 -0
- package/dist/components/basic/ECard/ECard.vue.d.ts +27 -0
- package/dist/components/index.d.ts +2 -1
- package/dist/components/index.js +60 -19368
- package/dist/directives/EDrag.d.ts +3 -1
- package/dist/directives/index.js +4 -23
- package/dist/index.css +1 -1
- package/dist/node_modules/.pnpm/sortablejs@1.15.7/node_modules/sortablejs/modular/sortable.esm.js +1111 -0
- package/dist/node_modules/.pnpm/three@0.180.0/node_modules/three/examples/jsm/controls/OrbitControls.js +424 -0
- package/dist/node_modules/.pnpm/three@0.180.0/node_modules/three/examples/jsm/curves/NURBSCurve.js +31 -0
- package/dist/node_modules/.pnpm/three@0.180.0/node_modules/three/examples/jsm/curves/NURBSUtils.js +115 -0
- package/dist/node_modules/.pnpm/three@0.180.0/node_modules/three/examples/jsm/libs/fflate.module.js +250 -0
- package/dist/node_modules/.pnpm/three@0.180.0/node_modules/three/examples/jsm/loaders/FBXLoader.js +1385 -0
- package/dist/node_modules/.pnpm/three@0.180.0/node_modules/three/examples/jsm/loaders/FontLoader.js +69 -0
- package/dist/node_modules/.pnpm/three@0.180.0/node_modules/three/examples/jsm/loaders/GLTFLoader.js +1346 -0
- package/dist/node_modules/.pnpm/three@0.180.0/node_modules/three/examples/jsm/utils/BufferGeometryUtils.js +23 -0
- package/dist/packages/exploria-ui/src/components/advanced/EParallaxScrolling/EParallaxScrolling.vue.js +7 -0
- package/dist/packages/exploria-ui/src/components/advanced/EParallaxScrolling/EParallaxScrolling.vue_vue_type_script_setup_true_lang.js +38 -0
- package/dist/packages/exploria-ui/src/components/advanced/ERollingFollow/ERollingFollow.vue.js +7 -0
- package/dist/packages/exploria-ui/src/components/advanced/ERollingFollow/ERollingFollow.vue_vue_type_script_setup_true_lang.js +42 -0
- package/dist/packages/exploria-ui/src/components/advanced/EVirtualList/EVirtualList.vue.js +7 -0
- package/dist/packages/exploria-ui/src/components/advanced/EVirtualList/EVirtualList.vue_vue_type_script_setup_true_lang.js +43 -0
- package/dist/packages/exploria-ui/src/components/advanced/EWatermark/EWatermark.vue.js +7 -0
- package/dist/packages/exploria-ui/src/components/advanced/EWatermark/EWatermark.vue_vue_type_script_setup_true_lang.js +46 -0
- package/dist/packages/exploria-ui/src/components/basic/EButton/EButton.vue.js +7 -0
- package/dist/packages/exploria-ui/src/components/basic/EButton/EButton.vue_vue_type_script_setup_true_lang.js +42 -0
- package/dist/packages/exploria-ui/src/components/basic/EButton/loading.gif.js +4 -0
- package/dist/packages/exploria-ui/src/components/basic/ECard/ECard.vue.js +7 -0
- package/dist/packages/exploria-ui/src/components/basic/ECard/ECard.vue_vue_type_script_setup_true_lang.js +41 -0
- package/dist/packages/exploria-ui/src/components/basic/ESvgIcon/ESvgIcon.vue.js +5 -0
- package/dist/packages/exploria-ui/src/components/basic/ESvgIcon/ESvgIcon.vue_vue_type_script_setup_true_lang.js +11 -0
- package/dist/packages/exploria-ui/src/components/basic/EUnderLine/EUnderLine.vue.js +11 -0
- package/dist/packages/exploria-ui/src/components/data/EAvatar/EAvatar.vue.js +7 -0
- package/dist/packages/exploria-ui/src/components/data/EAvatar/EAvatar.vue_vue_type_script_setup_true_lang.js +14 -0
- package/dist/packages/exploria-ui/src/components/data/ECalendar.vue.js +7 -0
- package/dist/packages/exploria-ui/src/components/data/ECalendar.vue_vue_type_script_setup_true_lang.js +77 -0
- package/dist/packages/exploria-ui/src/components/data/ECarousel/ECarousel.vue.js +7 -0
- package/dist/packages/exploria-ui/src/components/data/ECarousel/ECarousel.vue_vue_type_script_setup_true_lang.js +83 -0
- package/dist/packages/exploria-ui/src/components/data/ECarousel/ECarouselItem.vue.js +7 -0
- package/dist/packages/exploria-ui/src/components/data/ECarousel/ECarouselItem.vue_vue_type_script_setup_true_lang.js +19 -0
- package/dist/packages/exploria-ui/src/components/data/ECodeCollapse/ECodeCollapse.vue.js +7 -0
- package/dist/packages/exploria-ui/src/components/data/ECodeCollapse/ECodeCollapse.vue_vue_type_script_setup_true_lang.js +46 -0
- package/dist/packages/exploria-ui/src/components/data/ECollapse/ECollapse.vue.js +7 -0
- package/dist/packages/exploria-ui/src/components/data/ECollapse/ECollapse.vue_vue_type_script_setup_true_lang.js +30 -0
- package/dist/packages/exploria-ui/src/components/data/EImage.vue.js +7 -0
- package/dist/packages/exploria-ui/src/components/data/EImage.vue_vue_type_script_setup_true_lang.js +31 -0
- package/dist/packages/exploria-ui/src/components/data/EList.vue.js +7 -0
- package/dist/packages/exploria-ui/src/components/data/EList.vue_vue_type_script_setup_true_lang.js +52 -0
- package/dist/packages/exploria-ui/src/components/data/EMediaViewer/EMediaViewer.js +36 -0
- package/dist/packages/exploria-ui/src/components/data/EMediaViewer/EMediaViewer.vue.js +7 -0
- package/dist/packages/exploria-ui/src/components/data/EMediaViewer/EMediaViewer.vue_vue_type_script_setup_true_lang.js +69 -0
- package/dist/packages/exploria-ui/src/components/data/EProgress.vue.js +7 -0
- package/dist/packages/exploria-ui/src/components/data/EProgress.vue_vue_type_script_setup_true_lang.js +22 -0
- package/dist/packages/exploria-ui/src/components/data/ERollingPagination.vue.js +7 -0
- package/dist/packages/exploria-ui/src/components/data/ERollingPagination.vue_vue_type_script_setup_true_lang.js +45 -0
- package/dist/packages/exploria-ui/src/components/data/ESkeleton/ESkeleton.vue.js +14 -0
- package/dist/packages/exploria-ui/src/components/data/ETable/ETable.vue.js +7 -0
- package/dist/packages/exploria-ui/src/components/data/ETable/ETable.vue_vue_type_script_setup_true_lang.js +60 -0
- package/dist/packages/exploria-ui/src/components/data/ETable/ETableColumn.vue.js +5 -0
- package/dist/packages/exploria-ui/src/components/data/ETable/ETableColumn.vue_vue_type_script_setup_true_lang.js +23 -0
- package/dist/packages/exploria-ui/src/components/data/ETable/no_data.svg.js +4 -0
- package/dist/packages/exploria-ui/src/components/data/ETimeline/ETimeline.vue.js +7 -0
- package/dist/packages/exploria-ui/src/components/data/ETimeline/ETimeline.vue_vue_type_script_setup_true_lang.js +40 -0
- package/dist/packages/exploria-ui/src/components/data/ETimeline/ETimelineItem.vue.js +7 -0
- package/dist/packages/exploria-ui/src/components/data/ETimeline/ETimelineItem.vue_vue_type_script_setup_true_lang.js +44 -0
- package/dist/packages/exploria-ui/src/components/feedback/EDialog/EDialog.vue.js +7 -0
- package/dist/packages/exploria-ui/src/components/feedback/EDialog/EDialog.vue_vue_type_script_setup_true_lang.js +95 -0
- package/dist/packages/exploria-ui/src/components/feedback/EDrawer/EDrawer.vue.js +7 -0
- package/dist/packages/exploria-ui/src/components/feedback/EDrawer/EDrawer.vue_vue_type_script_setup_true_lang.js +106 -0
- package/dist/packages/exploria-ui/src/components/feedback/EMessage/EMessage.js +56 -0
- package/dist/packages/exploria-ui/src/components/feedback/EMessage/EMessage.vue.js +7 -0
- package/dist/packages/exploria-ui/src/components/feedback/EMessage/EMessage.vue_vue_type_script_setup_true_lang.js +39 -0
- package/dist/packages/exploria-ui/src/components/feedback/EMessage/loading.gif.js +4 -0
- package/dist/packages/exploria-ui/src/components/feedback/EMessageBox/EMessageBox.js +31 -0
- package/dist/packages/exploria-ui/src/components/feedback/EMessageBox/EMessageBox.vue.js +7 -0
- package/dist/packages/exploria-ui/src/components/feedback/EMessageBox/EMessageBox.vue_vue_type_script_setup_true_lang.js +46 -0
- package/dist/packages/exploria-ui/src/components/feedback/ENotification/ENotification.js +141 -0
- package/dist/packages/exploria-ui/src/components/feedback/ENotification/ENotification.vue.js +7 -0
- package/dist/packages/exploria-ui/src/components/feedback/ENotification/ENotification.vue_vue_type_script_setup_true_lang.js +46 -0
- package/dist/packages/exploria-ui/src/components/feedback/EPopover.vue.js +7 -0
- package/dist/packages/exploria-ui/src/components/feedback/EPopover.vue_vue_type_script_setup_true_lang.js +100 -0
- package/dist/packages/exploria-ui/src/components/feedback/ETooltip.vue.js +7 -0
- package/dist/packages/exploria-ui/src/components/feedback/ETooltip.vue_vue_type_script_setup_true_lang.js +65 -0
- package/dist/packages/exploria-ui/src/components/form/ECheckbox.vue.js +7 -0
- package/dist/packages/exploria-ui/src/components/form/ECheckbox.vue_vue_type_script_setup_true_lang.js +36 -0
- package/dist/packages/exploria-ui/src/components/form/EColorPicker.vue.js +7 -0
- package/dist/packages/exploria-ui/src/components/form/EColorPicker.vue_vue_type_script_setup_true_lang.js +149 -0
- package/dist/packages/exploria-ui/src/components/form/EConditionGroup/EConditionGroup.vue.js +7 -0
- package/dist/packages/exploria-ui/src/components/form/EConditionGroup/EConditionGroup.vue_vue_type_script_setup_true_lang.js +101 -0
- package/dist/packages/exploria-ui/src/components/form/EFileSelector.vue.js +7 -0
- package/dist/packages/exploria-ui/src/components/form/EFileSelector.vue_vue_type_script_setup_true_lang.js +33 -0
- package/dist/packages/exploria-ui/src/components/form/EForm.vue.js +7 -0
- package/dist/packages/exploria-ui/src/components/form/EForm.vue_vue_type_script_setup_true_lang.js +19 -0
- package/dist/packages/exploria-ui/src/components/form/EFormItem.vue.js +7 -0
- package/dist/packages/exploria-ui/src/components/form/EFormItem.vue_vue_type_script_setup_true_lang.js +44 -0
- package/dist/packages/exploria-ui/src/components/form/EInput/EInput.vue.js +7 -0
- package/dist/packages/exploria-ui/src/components/form/EInput/EInput.vue_vue_type_script_setup_true_lang.js +165 -0
- package/dist/packages/exploria-ui/src/components/form/ERadio.vue.js +7 -0
- package/dist/packages/exploria-ui/src/components/form/ERadio.vue_vue_type_script_setup_true_lang.js +36 -0
- package/dist/packages/exploria-ui/src/components/form/ESelect/ESelect.vue.js +7 -0
- package/dist/packages/exploria-ui/src/components/form/ESelect/ESelect.vue_vue_type_script_setup_true_lang.js +82 -0
- package/dist/packages/exploria-ui/src/components/form/ESlider.vue.js +7 -0
- package/dist/packages/exploria-ui/src/components/form/ESlider.vue_vue_type_script_setup_true_lang.js +76 -0
- package/dist/packages/exploria-ui/src/components/form/ETimePicker.vue.js +7 -0
- package/dist/packages/exploria-ui/src/components/form/ETimePicker.vue_vue_type_script_setup_true_lang.js +89 -0
- package/dist/packages/exploria-ui/src/components/geometry/ECube.vue.js +11 -0
- package/dist/packages/exploria-ui/src/components/hooks/usePosition.js +42 -0
- package/dist/packages/exploria-ui/src/components/layout/EContainerWithScrollbar.vue.js +7 -0
- package/dist/packages/exploria-ui/src/components/layout/EContainerWithScrollbar.vue_vue_type_script_setup_true_lang.js +27 -0
- package/dist/packages/exploria-ui/src/components/layout/EDivider.vue.js +7 -0
- package/dist/packages/exploria-ui/src/components/layout/EDivider.vue_vue_type_script_setup_true_lang.js +15 -0
- package/dist/packages/exploria-ui/src/components/layout/EScrollX.vue.js +7 -0
- package/dist/packages/exploria-ui/src/components/layout/EScrollX.vue_vue_type_script_setup_true_lang.js +34 -0
- package/dist/packages/exploria-ui/src/components/layout/EScrollbar.vue.js +7 -0
- package/dist/packages/exploria-ui/src/components/layout/EScrollbar.vue_vue_type_script_setup_true_lang.js +55 -0
- package/dist/packages/exploria-ui/src/components/navigation/EDropdown.vue.js +7 -0
- package/dist/packages/exploria-ui/src/components/navigation/EDropdown.vue_vue_type_script_setup_true_lang.js +107 -0
- package/dist/packages/exploria-ui/src/components/navigation/ETabs/ETabPane.vue.js +7 -0
- package/dist/packages/exploria-ui/src/components/navigation/ETabs/ETabPane.vue_vue_type_script_setup_true_lang.js +20 -0
- package/dist/packages/exploria-ui/src/components/navigation/ETabs/ETabs.vue.js +7 -0
- package/dist/packages/exploria-ui/src/components/navigation/ETabs/ETabs.vue_vue_type_script_setup_true_lang.js +90 -0
- package/dist/packages/exploria-ui/src/directives/EDrag.js +27 -0
- package/dist/packages/exploria-ui/src/directives/ESizeOb.js +23 -0
- package/dist/packages/exploria-ui/src/directives/ESlideIn.js +24 -0
- package/dist/packages/exploria-ui/src/utils/EAnimateCSSUtil.js +13 -0
- package/dist/packages/exploria-ui/src/utils/EClipboardUtil.js +19 -0
- package/dist/packages/exploria-ui/src/utils/EDomUtil.js +9 -0
- package/dist/packages/exploria-ui/src/utils/EEchartsUtil.js +23 -0
- package/dist/packages/exploria-ui/src/utils/EImageUtil.js +26 -0
- package/dist/packages/exploria-ui/src/utils/ELocalStorageUtil.js +15 -0
- package/dist/packages/exploria-ui/src/utils/EMediaQueryUtil.js +28 -0
- package/dist/packages/exploria-ui/src/utils/EStringUtil.js +11 -0
- package/dist/packages/exploria-ui/src/utils/EThreeUtil.js +40 -0
- package/dist/packages/exploria-ui/src/utils/EUUIDUtil.js +11 -0
- package/dist/utils/EAnimateCSSUtil.d.ts +6 -0
- package/dist/utils/EClipboardUtil.d.ts +3 -0
- package/dist/utils/EDomUtil.d.ts +5 -0
- package/dist/utils/EEchartsUtil.d.ts +12 -0
- package/dist/utils/EEventBus.d.ts +8 -0
- package/dist/utils/EImageUtil.d.ts +3 -0
- package/dist/utils/EJSONUtil.d.ts +3 -0
- package/dist/utils/ELocalStorageUtil.d.ts +5 -0
- package/dist/utils/EMediaQueryUtil.d.ts +6 -0
- package/dist/utils/EStringUtil.d.ts +22 -0
- package/dist/utils/EThreeUtil.d.ts +21 -0
- package/dist/utils/ETimeUtil.d.ts +5 -0
- package/dist/utils/EUUIDUtil.d.ts +3 -0
- package/dist/utils/index.d.ts +8 -0
- package/dist/utils/index.js +8 -2
- package/package.json +25 -13
- package/src/plugins/EPreloadImageBuilder.ts +1 -1
- package/src/plugins/ESvgSpriteBuilder.ts +4 -5
- package/src/plugins/index.ts +3 -3
- package/dist/EDomUtil-Bm3Zqw96.js +0 -65
- package/dist/ESizeOb-VeHF4XTz.js +0 -44
- package/dist/plugins/EPreloadImageBuilder.d.ts +0 -5
- package/dist/plugins/ESvgPolyfill.d.ts +0 -3
- package/dist/plugins/ESvgSpriteBuilder.d.ts +0 -6
- package/dist/plugins/index.d.ts +0 -4
- package/dist/plugins/index.js +0 -3127
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export default class EStringUtil {
|
|
2
|
+
/**
|
|
3
|
+
* 从字符串中第一个指定字符的位置开始截取,返回剩余部分
|
|
4
|
+
* @param str 要处理的字符串
|
|
5
|
+
* @param char 要查找的字符,默认为 'a'
|
|
6
|
+
* @returns 处理后的字符串
|
|
7
|
+
* @example
|
|
8
|
+
* EStringUtil.sliceAfterFirst('hello world', 'o') // 输出: ' world'
|
|
9
|
+
* EStringUtil.sliceAfterFirst('test', 'a') // 输出: 'test' (未找到字符时返回原字符串)
|
|
10
|
+
*/
|
|
11
|
+
static sliceAfterFirst(str: string, char?: string): string;
|
|
12
|
+
/**
|
|
13
|
+
* 从字符串中最后一个指定字符的位置开始截取,返回剩余部分
|
|
14
|
+
* @param str 要处理的字符串
|
|
15
|
+
* @param char 要查找的字符,默认为 'a'
|
|
16
|
+
* @returns 处理后的字符串
|
|
17
|
+
* @example
|
|
18
|
+
* EStringUtil.sliceAfterLast('hello world', 'o') // 输出: 'rld'
|
|
19
|
+
* EStringUtil.sliceAfterLast('test', 'a') // 输出: 'test' (未找到字符时返回原字符串)
|
|
20
|
+
*/
|
|
21
|
+
static sliceAfterLast(str: string, char?: string): string;
|
|
22
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Camera, PerspectiveCamera, WebGLRenderer, Group, Object3DEventMap } from 'three';
|
|
2
|
+
import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls.js';
|
|
3
|
+
import { Font } from 'three/examples/jsm/loaders/FontLoader.js';
|
|
4
|
+
import { GLTF } from 'three/examples/jsm/loaders/GLTFLoader.js';
|
|
5
|
+
export default class EThreeUtil {
|
|
6
|
+
static loadFont(jsonFilePath: string, onProgress?: (xhr: {
|
|
7
|
+
total: number;
|
|
8
|
+
loaded: number;
|
|
9
|
+
}) => void): Promise<Font>;
|
|
10
|
+
static createCamera: (canvas: HTMLCanvasElement) => PerspectiveCamera;
|
|
11
|
+
static loadGlb(glb: string, onProgress?: (xhr: {
|
|
12
|
+
total: number;
|
|
13
|
+
loaded: number;
|
|
14
|
+
}) => void): Promise<GLTF>;
|
|
15
|
+
static loadFBX: (fbx: string, onProgress?: (xhr: {
|
|
16
|
+
total: number;
|
|
17
|
+
loaded: number;
|
|
18
|
+
}) => void) => Promise<Group<Object3DEventMap>>;
|
|
19
|
+
static createControls(camera: Camera, canvas: HTMLCanvasElement): OrbitControls;
|
|
20
|
+
static createWebGLRenderer(canvas: HTMLCanvasElement): WebGLRenderer;
|
|
21
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as EAnimateCSSUtil } from './EAnimateCSSUtil.ts';
|
|
2
|
+
import { default as EDomUtil } from './EDomUtil.ts';
|
|
3
|
+
import { default as EEchartsUtil } from './EEchartsUtil.ts';
|
|
4
|
+
import { default as ELocalStorageUtil } from './ELocalStorageUtil.ts';
|
|
5
|
+
import { default as EMediaQueryUtil } from './EMediaQueryUtil.ts';
|
|
6
|
+
import { default as EStringUtil } from './EStringUtil.ts';
|
|
7
|
+
import { default as EUUIDUtil } from './EUUIDUtil.ts';
|
|
8
|
+
export { EAnimateCSSUtil, EDomUtil, EMediaQueryUtil, EUUIDUtil, EEchartsUtil, ELocalStorageUtil, EStringUtil, };
|
package/dist/utils/index.js
CHANGED
|
@@ -1,2 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import e from "../packages/exploria-ui/src/utils/EAnimateCSSUtil.js";
|
|
2
|
+
import t from "../packages/exploria-ui/src/utils/EEchartsUtil.js";
|
|
3
|
+
import n from "../packages/exploria-ui/src/utils/EMediaQueryUtil.js";
|
|
4
|
+
import r from "../packages/exploria-ui/src/utils/EUUIDUtil.js";
|
|
5
|
+
import i from "../packages/exploria-ui/src/utils/EDomUtil.js";
|
|
6
|
+
import a from "../packages/exploria-ui/src/utils/ELocalStorageUtil.js";
|
|
7
|
+
import o from "../packages/exploria-ui/src/utils/EStringUtil.js";
|
|
8
|
+
export { e as EAnimateCSSUtil, i as EDomUtil, t as EEchartsUtil, a as ELocalStorageUtil, n as EMediaQueryUtil, o as EStringUtil, r as EUUIDUtil };
|
package/package.json
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "exploria-ui",
|
|
3
3
|
"description": "《探索UI》组件库",
|
|
4
|
-
"version": "2026.2
|
|
4
|
+
"version": "2026.3.2",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|
|
7
|
+
"main": "./dist/components/index.js",
|
|
8
|
+
"types": "./dist/components/index.d.ts",
|
|
7
9
|
"license": "MIT",
|
|
8
|
-
"author": "
|
|
10
|
+
"author": "liketype",
|
|
9
11
|
"keywords": [
|
|
10
|
-
"
|
|
12
|
+
"liketype",
|
|
11
13
|
"exploria-ui",
|
|
12
14
|
"vue3"
|
|
13
15
|
],
|
|
@@ -19,21 +21,22 @@
|
|
|
19
21
|
],
|
|
20
22
|
"exports": {
|
|
21
23
|
".": {
|
|
22
|
-
"
|
|
23
|
-
"types": "./dist/
|
|
24
|
+
"import": "./dist/components/index.js",
|
|
25
|
+
"types": "./dist/components/index.d.ts"
|
|
24
26
|
},
|
|
25
27
|
"./directives": {
|
|
26
|
-
"
|
|
27
|
-
"types": "./dist/
|
|
28
|
+
"import": "./dist/directives/index.js",
|
|
29
|
+
"types": "./dist/directives/index.d.ts"
|
|
28
30
|
},
|
|
29
31
|
"./plugins": {
|
|
30
|
-
"
|
|
31
|
-
"types": "./
|
|
32
|
+
"import": "./dist/plugins/index.js",
|
|
33
|
+
"types": "./dist/plugins/index.d.ts"
|
|
32
34
|
},
|
|
33
35
|
"./utils": {
|
|
34
|
-
"
|
|
35
|
-
"types": "./dist/
|
|
36
|
-
}
|
|
36
|
+
"import": "./dist/utils/index.js",
|
|
37
|
+
"types": "./dist/utils/index.d.ts"
|
|
38
|
+
},
|
|
39
|
+
"./*": "./*"
|
|
37
40
|
},
|
|
38
41
|
"peerDependencies": {
|
|
39
42
|
"vue": ">=3.5"
|
|
@@ -44,21 +47,30 @@
|
|
|
44
47
|
"fast-glob": "^3.3.3"
|
|
45
48
|
},
|
|
46
49
|
"devDependencies": {
|
|
50
|
+
"@rollup/plugin-commonjs": "^29.0.2",
|
|
51
|
+
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
52
|
+
"@rollup/plugin-typescript": "^12.3.0",
|
|
47
53
|
"@types/chroma-js": "^3.1.1",
|
|
48
54
|
"@types/node": "^24.6.0",
|
|
49
55
|
"@vitejs/plugin-vue": "^6.0.1",
|
|
50
56
|
"@vue/tsconfig": "^0.8.1",
|
|
57
|
+
"chokidar": "^5.0.0",
|
|
58
|
+
"esbuild": "^0.27.3",
|
|
51
59
|
"oxfmt": "^0.17.0",
|
|
52
60
|
"oxlint": "^1.32.0",
|
|
61
|
+
"rollup": "^4.59.0",
|
|
62
|
+
"rollup-plugin-esbuild": "^6.2.1",
|
|
53
63
|
"sass": "^1.87.0",
|
|
64
|
+
"tsx": "^4.21.0",
|
|
54
65
|
"typescript": "~5.9.3",
|
|
55
|
-
"vite": "8.0.0-beta.
|
|
66
|
+
"vite": "^8.0.0-beta.13",
|
|
56
67
|
"vite-plugin-dts": "^4.5.4",
|
|
57
68
|
"vue": "^3.5.22",
|
|
58
69
|
"vue-tsc": "^3.1.0"
|
|
59
70
|
},
|
|
60
71
|
"scripts": {
|
|
61
72
|
"build:watch": "vite build --watch",
|
|
73
|
+
"build:plugins:watch": "node ./scripts/build-plugins.ts --watch",
|
|
62
74
|
"pub": "pnpm publish --no-git-checks",
|
|
63
75
|
"type-check": "vue-tsc --noEmit"
|
|
64
76
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// ESvgSpriteBuilder.ts
|
|
2
|
-
import
|
|
3
|
-
import
|
|
2
|
+
import { readFileSync } from 'node:fs';
|
|
3
|
+
import { basename } from 'node:path';
|
|
4
4
|
|
|
5
5
|
import fastGlob from 'fast-glob';
|
|
6
6
|
import type { Plugin } from 'vite';
|
|
@@ -19,10 +19,9 @@ const getSvgSymbols = (
|
|
|
19
19
|
const files = fastGlob.sync(pattern, {
|
|
20
20
|
cwd: process.cwd(),
|
|
21
21
|
});
|
|
22
|
-
|
|
23
22
|
return files.map((filePath) => {
|
|
24
|
-
const filename =
|
|
25
|
-
const svgContent =
|
|
23
|
+
const filename = basename(filePath, '.svg');
|
|
24
|
+
const svgContent = readFileSync(filePath, 'utf-8');
|
|
26
25
|
const innerContent = getSvgInnerContent(svgContent);
|
|
27
26
|
const viewBoxMatch = svgContent.match(/viewBox="([^"]*)"/);
|
|
28
27
|
const viewBox = viewBoxMatch ? viewBoxMatch[1] : '0 0 16 16';
|
package/src/plugins/index.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import EPreloadImageBuilder from './EPreloadImageBuilder
|
|
2
|
-
import ESvgPolyfill from './ESvgPolyfill
|
|
3
|
-
import ESvgSpriteBuilder from './ESvgSpriteBuilder
|
|
1
|
+
import EPreloadImageBuilder from './EPreloadImageBuilder';
|
|
2
|
+
import ESvgPolyfill from './ESvgPolyfill';
|
|
3
|
+
import ESvgSpriteBuilder from './ESvgSpriteBuilder';
|
|
4
4
|
|
|
5
5
|
export { ESvgSpriteBuilder, EPreloadImageBuilder, ESvgPolyfill };
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
var EAnimateCSSUtil = class {
|
|
2
|
-
static once(e, n) {
|
|
3
|
-
return new Promise((r) => {
|
|
4
|
-
e.classList.add("animate__animated", n), e.addEventListener("animationend", (i) => {
|
|
5
|
-
i.stopPropagation(), e.classList.remove("animate__animated", n), r("Animation ended");
|
|
6
|
-
}, { once: !0 });
|
|
7
|
-
});
|
|
8
|
-
}
|
|
9
|
-
}, EEchartsUtil = class {
|
|
10
|
-
static getPieHighPrecisionPercent(e, n, r, i = 3) {
|
|
11
|
-
let a = e / r.reduce((e, n) => e + n.value, 0) * 100, o = n.toString();
|
|
12
|
-
if (e && o === "0") for (let e = 1; e <= i; e++) {
|
|
13
|
-
let n = a.toFixed(e);
|
|
14
|
-
if (Number(n) !== 0) {
|
|
15
|
-
o = n;
|
|
16
|
-
break;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
if (Number(o) === 0 && (o = "0." + "0".repeat(i - 1) + "1"), r.length > 1 && o === "100") for (let e = 1; e <= i; e++) {
|
|
20
|
-
let n = a.toFixed(e);
|
|
21
|
-
if (Number(n) !== 100) {
|
|
22
|
-
o = n;
|
|
23
|
-
break;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
return Number(o) === 100 && (o = "99." + "9".repeat(i)), o;
|
|
27
|
-
}
|
|
28
|
-
}, breakpoint = {
|
|
29
|
-
watch: ["0px", "319px"],
|
|
30
|
-
phone: ["320px", "480px"],
|
|
31
|
-
pad: ["481px", "768px"],
|
|
32
|
-
notebook: ["769px", "1024px"],
|
|
33
|
-
desktop: ["1025px", "1200px"],
|
|
34
|
-
tv: "1201px"
|
|
35
|
-
}, getCurrentDeviceType = () => {
|
|
36
|
-
if (typeof window > "u") return "tv";
|
|
37
|
-
for (let e in breakpoint) if (Array.isArray(breakpoint[e])) {
|
|
38
|
-
let [n, i] = breakpoint[e], a = parseInt(n.replace("px", ""), 10), o = parseInt(i.replace("px", ""), 10);
|
|
39
|
-
if (window.innerWidth >= a && window.innerWidth <= o) return e;
|
|
40
|
-
} else {
|
|
41
|
-
let n = parseInt(breakpoint[e].replace("px", ""), 10);
|
|
42
|
-
if (window.innerWidth >= n) return e;
|
|
43
|
-
}
|
|
44
|
-
return "tv";
|
|
45
|
-
}, EMediaQueryUtil = class {
|
|
46
|
-
static match(e) {
|
|
47
|
-
return e[getCurrentDeviceType()];
|
|
48
|
-
}
|
|
49
|
-
static is(e) {
|
|
50
|
-
return e === getCurrentDeviceType();
|
|
51
|
-
}
|
|
52
|
-
}, EUUIDUtil = class {
|
|
53
|
-
static generate() {
|
|
54
|
-
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
|
|
55
|
-
let n = Math.random() * 16 | 0;
|
|
56
|
-
return (e === "x" ? n : n & 3 | 8).toString(16);
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
}, EDomUtil = class {
|
|
60
|
-
static scrollIntoView(e) {
|
|
61
|
-
let { element: n, block: r, inline: i } = e, a = n.parentNode;
|
|
62
|
-
r && (r === "center" && (a.scrollTop = n.offsetTop + (a.clientHeight - n.offsetHeight) / 2), r === "start" && (a.scrollTop = n.offsetTop), r === "end" && (a.scrollTop = n.offsetTop + (a.offsetHeight - n.clientHeight))), i && (i === "center" && (a.scrollLeft = n.offsetLeft + (a.clientWidth - n.clientWidth) / 2), i === "start" && (a.scrollLeft = n.offsetLeft), i === "end" && (a.scrollLeft = n.offsetLeft + (a.offsetWidth - n.clientWidth)));
|
|
63
|
-
}
|
|
64
|
-
};
|
|
65
|
-
export { EAnimateCSSUtil as a, EEchartsUtil as i, EUUIDUtil as n, EMediaQueryUtil as r, EDomUtil as t };
|
package/dist/ESizeOb-VeHF4XTz.js
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
var keepElOnTop = (e) => {
|
|
2
|
-
let t = 0, n = e.parentNode, r = Array.from(n.children);
|
|
3
|
-
for (let e of r) {
|
|
4
|
-
let n = window.getComputedStyle(e).zIndex;
|
|
5
|
-
n !== "auto" && (t = Math.max(t, parseInt(n)));
|
|
6
|
-
}
|
|
7
|
-
e.style.zIndex = (t + 1).toString();
|
|
8
|
-
}, EDrag_default = {
|
|
9
|
-
mounted(t) {
|
|
10
|
-
t.onmousedown = (n) => {
|
|
11
|
-
keepElOnTop(t);
|
|
12
|
-
let r = n.pageX - t.offsetLeft, i = n.pageY - t.offsetTop;
|
|
13
|
-
window.onmousemove = (e) => {
|
|
14
|
-
let n = e.pageX - r, a = e.pageY - i;
|
|
15
|
-
t.style.left = `${n}px`, t.style.top = `${a}px`;
|
|
16
|
-
}, window.onmouseup = () => {
|
|
17
|
-
window.onmousemove = null, window.onmouseup = null;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
},
|
|
21
|
-
unmounted(e) {
|
|
22
|
-
e.onmousedown = null;
|
|
23
|
-
}
|
|
24
|
-
}, observers = /* @__PURE__ */ new WeakMap(), ESizeOb_default = {
|
|
25
|
-
mounted: (e, t) => {
|
|
26
|
-
if (typeof window < "u" && window.ResizeObserver) {
|
|
27
|
-
let r = new ResizeObserver((e) => {
|
|
28
|
-
for (let n of e) {
|
|
29
|
-
let e = n.target;
|
|
30
|
-
if (t.value) {
|
|
31
|
-
let r = n.contentRect;
|
|
32
|
-
t.value(r.width, r.height, e);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
r.observe(e), observers.set(e, r);
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
unmounted: (e) => {
|
|
40
|
-
let t = observers.get(e);
|
|
41
|
-
t && (t.unobserve(e), observers.delete(e));
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
export { EDrag_default as n, ESizeOb_default as t };
|
package/dist/plugins/index.d.ts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { default as EPreloadImageBuilder } from './EPreloadImageBuilder.ts';
|
|
2
|
-
import { default as ESvgPolyfill } from './ESvgPolyfill.ts';
|
|
3
|
-
import { default as ESvgSpriteBuilder } from './ESvgSpriteBuilder.ts';
|
|
4
|
-
export { ESvgSpriteBuilder, EPreloadImageBuilder, ESvgPolyfill };
|