@dfsj/components 3.5.3 → 3.7.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.
Files changed (55) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist/components/Boards/index.d.ts +2 -2
  3. package/dist/components/Boards/src/Boards.vue.d.ts +77 -6
  4. package/dist/components/Boards/src/Boards.vue2.js +34 -99
  5. package/dist/components/Boards/src/hooKs/useStyle.d.ts +9 -0
  6. package/dist/components/Boards/src/hooKs/useStyle.js +100 -0
  7. package/dist/components/Boards/src/props.d.ts +38 -4
  8. package/dist/components/Boards/src/props.js +20 -1
  9. package/dist/components/ClickOutSide/src/ClickOutSide.vue2.js +1 -1
  10. package/dist/components/Editor/src/Editor.vue2.js +1 -2
  11. package/dist/components/Form/src/Form.vue2.js +2 -3
  12. package/dist/components/Form/src/helper/index.js +1 -1
  13. package/dist/components/Form/src/useForm.js +2 -2
  14. package/dist/components/Highlight/src/Highlight.vue2.js +1 -1
  15. package/dist/components/Icon/src/Icon.vue2.js +1 -2
  16. package/dist/components/InputPassword/src/InputPassword.vue2.js +1 -1
  17. package/dist/components/Modal/src/BasicModal.vue.d.ts +49 -7
  18. package/dist/components/Modal/src/BasicModal.vue2.js +8 -6
  19. package/dist/components/Modal/src/components/ModalHeader.vue.d.ts +42 -5
  20. package/dist/components/Modal/src/components/ModalHeader.vue2.js +16 -5
  21. package/dist/components/Modal/src/config.d.ts +5 -1
  22. package/dist/components/Modal/src/config.js +5 -1
  23. package/dist/components/Modal/src/hooks/useTimeout.js +1 -1
  24. package/dist/components/Modal/src/props.d.ts +19 -2
  25. package/dist/components/Modal/src/props.js +17 -5
  26. package/dist/components/Stateful/src/Stateful.vue2.js +1 -1
  27. package/dist/components/Stateful/src/props.js +1 -1
  28. package/dist/components/Table/src/Table.vue2.js +2 -3
  29. package/dist/components/UnifyChart/src/ChartToolbox.vue2.js +1 -1
  30. package/dist/components/UnifyChart/src/props.js +1 -1
  31. package/dist/components/Video/src/VideoPlayer.vue2.js +1 -1
  32. package/dist/components/Video/src/VideoPlayerToolbar.vue2.js +2 -2
  33. package/dist/components/Windows/index.d.ts +3 -2
  34. package/dist/components/Windows/src/ModalWrap.vue.d.ts +3 -3
  35. package/dist/components/Windows/src/ModalWrap.vue2.js +0 -1
  36. package/dist/components/Windows/src/Windows.vue.d.ts +3 -2
  37. package/dist/components/Windows/src/Windows.vue2.js +8 -3
  38. package/dist/components/Windows/src/Windows.vue3.js +4 -1
  39. package/dist/components/Windows/src/props.d.ts +2 -2
  40. package/dist/directives/clickOutside.js +71 -0
  41. package/dist/directives/index.d.ts +1 -0
  42. package/dist/directives/repeatClick.js +29 -0
  43. package/dist/directives/resizable.d.ts +7 -0
  44. package/dist/directives/resizable.js +196 -0
  45. package/dist/index.d.ts +1 -0
  46. package/dist/index.js +3 -0
  47. package/dist/index.min.css +3 -3
  48. package/dist/node_modules/.pnpm/{@vueuse_core@10.11.1_vue@3.5.11_typescript@5.6.2_ → @vueuse_core@10.11.1_vue@3.5.12_typescript@5.6.2_}/node_modules/@vueuse/core/index.js +5 -183
  49. package/dist/node_modules/.pnpm/{@vueuse_shared@10.11.1_vue@3.5.11_typescript@5.6.2_ → @vueuse_shared@10.11.1_vue@3.5.12_typescript@5.6.2_}/node_modules/@vueuse/shared/index.js +2 -11
  50. package/package.json +6 -6
  51. package/dist/utils/is.d.ts +0 -25
  52. package/dist/utils/is.js +0 -36
  53. package/dist/utils/propTypes.js +0 -34
  54. package/dist/utils/tsxHelper.d.ts +0 -5
  55. package/dist/utils/tsxHelper.js +0 -18
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dfsj/components",
3
- "version": "3.5.3",
3
+ "version": "3.7.0-beta.1",
4
4
  "description": "通用的vue组件;包括专业组件、原子级组件",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -27,9 +27,9 @@
27
27
  "build": "rollup --config ./rollup.config.ts --configPlugin typescript"
28
28
  },
29
29
  "devDependencies": {
30
- "@dfsj/echarts": "^3.5.1",
30
+ "@dfsj/echarts": "workspace:^",
31
31
  "@dfsj/rollup": "workspace:^",
32
- "@dfsj/utils": "^3.5.1",
32
+ "@dfsj/utils": "workspace:^",
33
33
  "@types/lodash-es": "^4.17.12",
34
34
  "@types/node": "^20.11.3",
35
35
  "@unocss/transformer-variant-group": "^0.58.6",
@@ -40,8 +40,8 @@
40
40
  "vue": "^3.4.21"
41
41
  },
42
42
  "peerDependencies": {
43
- "@dfsj/echarts": "^3.5.0",
44
- "@dfsj/utils": "^3.5.0",
43
+ "@dfsj/echarts": "^3.6.0",
44
+ "@dfsj/utils": "^3.6.0",
45
45
  "element-plus": "^2.8.4",
46
46
  "vue": "^3.4.21"
47
47
  },
@@ -59,7 +59,7 @@
59
59
  "vue-types": "^5.0.2",
60
60
  "zrender": "^5.5.0"
61
61
  },
62
- "gitHead": "9ff234b12f4eafe5703d8377b4bb42b2ee69e60a",
62
+ "gitHead": "546649711e5f511b6efc6e684f20b267d5ca290d",
63
63
  "module": "dist/index.js",
64
64
  "browser": "dist/index.js",
65
65
  "types": "dist/index.d.ts",
@@ -1,25 +0,0 @@
1
- export declare const is: (val: unknown, type: string) => boolean;
2
- export declare const isDef: <T = unknown>(val?: T) => val is T;
3
- export declare const isUnDef: <T = unknown>(val?: T) => val is T;
4
- export declare const isObject: (val: any) => val is Record<any, any>;
5
- export declare const isEmpty: <T = unknown>(val: T) => val is T;
6
- export declare const isDate: (val: unknown) => val is Date;
7
- export declare const isNull: (val: unknown) => val is null;
8
- export declare const isNullAndUnDef: (val: unknown) => val is null | undefined;
9
- export declare const isNullOrUnDef: (val: unknown) => val is null | undefined;
10
- export declare const isNumber: (val: unknown) => val is number;
11
- export declare const isPromise: <T = any>(val: unknown) => val is Promise<T>;
12
- export declare const isString: (val: unknown) => val is string;
13
- export declare const isFunction: (val: unknown) => val is Function;
14
- export declare const isBoolean: (val: unknown) => val is boolean;
15
- export declare const isRegExp: (val: unknown) => val is RegExp;
16
- export declare const isArray: (val: any) => val is Array<any>;
17
- export declare const isWindow: (val: any) => val is Window;
18
- export declare const isElement: (val: unknown) => val is Element;
19
- export declare const isMap: (val: unknown) => val is Map<any, any>;
20
- export declare const isServer: boolean;
21
- export declare const isClient: boolean;
22
- export declare const isUrl: (path: string) => boolean;
23
- export declare const isDark: () => boolean;
24
- export declare const isImgPath: (path: string) => boolean;
25
- export declare const isEmptyVal: (val: any) => boolean;
package/dist/utils/is.js DELETED
@@ -1,36 +0,0 @@
1
- var toString = Object.prototype.toString;
2
- var is = function is(val, type) {
3
- return toString.call(val) === "[object ".concat(type, "]");
4
- };
5
- var isObject = function isObject(val) {
6
- return val !== null && is(val, 'Object');
7
- };
8
- var isEmpty = function isEmpty(val) {
9
- if (isArray(val) || isString(val)) {
10
- return val.length === 0;
11
- }
12
- if (val instanceof Map || val instanceof Set) {
13
- return val.size === 0;
14
- }
15
- if (isObject(val)) {
16
- return Object.keys(val).length === 0;
17
- }
18
- return false;
19
- };
20
- var isNumber = function isNumber(val) {
21
- return is(val, 'Number');
22
- };
23
- var isString = function isString(val) {
24
- return is(val, 'String');
25
- };
26
- var isFunction = function isFunction(val) {
27
- return typeof val === 'function';
28
- };
29
- var isArray = function isArray(val) {
30
- return val && Array.isArray(val);
31
- };
32
- var isEmptyVal = function isEmptyVal(val) {
33
- return val === '' || val === null || val === undefined;
34
- };
35
-
36
- export { is, isArray, isEmpty, isEmptyVal, isFunction, isNumber, isObject, isString };
@@ -1,34 +0,0 @@
1
- import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
2
- import _createClass from '@babel/runtime/helpers/createClass';
3
- import _possibleConstructorReturn from '@babel/runtime/helpers/possibleConstructorReturn';
4
- import _getPrototypeOf from '@babel/runtime/helpers/getPrototypeOf';
5
- import _inherits from '@babel/runtime/helpers/inherits';
6
- import { createTypes, toValidableType } from 'vue-types';
7
-
8
- function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
9
- function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
10
- var newPropTypes = createTypes({
11
- func: undefined,
12
- bool: undefined,
13
- string: undefined,
14
- number: undefined,
15
- object: undefined,
16
- integer: undefined
17
- });
18
- var propTypes = /*#__PURE__*/function (_newPropTypes) {
19
- function propTypes() {
20
- _classCallCheck(this, propTypes);
21
- return _callSuper(this, propTypes, arguments);
22
- }
23
- _inherits(propTypes, _newPropTypes);
24
- return _createClass(propTypes, null, [{
25
- key: "style",
26
- get: function get() {
27
- return toValidableType('style', {
28
- type: [String, Object]
29
- });
30
- }
31
- }]);
32
- }(newPropTypes);
33
-
34
- export { propTypes as default };
@@ -1,5 +0,0 @@
1
- import { Slots } from 'vue';
2
- import { Recordable } from '../types';
3
- export declare const getSlot: (slots: Slots, slot?: string, data?: Recordable) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
4
- [key: string]: any;
5
- }>[];
@@ -1,18 +0,0 @@
1
- import { isFunction } from './is.js';
2
-
3
- var getSlot = function getSlot(slots) {
4
- var slot = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'default';
5
- var data = arguments.length > 2 ? arguments[2] : undefined;
6
- if (!slots || !Reflect.has(slots, slot)) {
7
- return null;
8
- }
9
- if (!isFunction(slots[slot])) {
10
- console.error("".concat(slot, " is not a function!"));
11
- return null;
12
- }
13
- var slotFn = slots[slot];
14
- if (!slotFn) return null;
15
- return slotFn(data);
16
- };
17
-
18
- export { getSlot };