@dfsj/components 3.7.1 → 3.7.2-alpha.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/dist/components/Boards/src/Boards.vue.d.ts +11 -0
- package/dist/components/Boards/src/Boards.vue2.js +27 -31
- package/dist/components/Boards/src/hooKs/useStyle.d.ts +9 -0
- package/dist/components/Boards/src/hooKs/useStyle.js +5 -5
- package/dist/components/Boards/src/props.d.ts +5 -0
- package/dist/components/Boards/src/props.js +2 -1
- package/dist/components/ClickOutSide/src/ClickOutSide.vue2.js +1 -1
- package/dist/components/DatePicker/src/composables/use-month-range-header.d.ts +16 -0
- package/dist/components/DatePicker/src/composables/use-range-picker.d.ts +173 -0
- package/dist/components/DatePicker/src/date-picker-com/panel-date-range.vue.d.ts +19 -0
- package/dist/components/DatePicker/src/date-picker-com/panel-date-range.vue2.js +2 -2
- package/dist/components/DatePicker/src/date-picker-com/panel-month-range.vue.d.ts +16 -0
- package/dist/components/DatePicker/src/date-picker-com/panel-month-range.vue2.js +7 -7
- package/dist/components/DatePicker/src/index.d.ts +26 -20
- package/dist/components/DatePicker/src/index.js +4 -4
- package/dist/components/Descriptions/src/Descriptions.vue.d.ts +97 -0
- package/dist/components/Descriptions/src/Descriptions.vue2.js +4 -4
- package/dist/components/Editor/src/Editor.vue.d.ts +4 -4
- package/dist/components/Editor/src/Editor.vue2.js +5 -5
- package/dist/components/Form/src/Form.vue.d.ts +481 -447
- package/dist/components/Form/src/Form.vue2.js +30 -24
- package/dist/components/Form/src/components/useRenderCheckbox.d.ts +4 -0
- package/dist/components/Form/src/components/useRenderCheckbox.js +8 -8
- package/dist/components/Form/src/components/useRenderRadio.d.ts +4 -0
- package/dist/components/Form/src/components/useRenderRadio.js +8 -8
- package/dist/components/Form/src/components/useRenderSelect.d.ts +4 -0
- package/dist/components/Form/src/components/useRenderSelect.js +11 -11
- package/dist/components/Form/src/helper/componentMap.d.ts +5 -0
- package/dist/components/Form/src/helper/index.d.ts +7 -0
- package/dist/components/Form/src/helper/index.js +7 -7
- package/dist/components/Form/src/types/index.d.ts +2 -2
- package/dist/components/Form/src/useForm.js +63 -63
- package/dist/components/Highlight/src/Highlight.vue.d.ts +4 -4
- package/dist/components/Highlight/src/Highlight.vue2.js +3 -3
- package/dist/components/Icon/src/Icon.vue.d.ts +8 -8
- package/dist/components/Icon/src/Icon.vue2.js +11 -11
- package/dist/components/InputPassword/src/InputPassword.vue.d.ts +27 -0
- package/dist/components/Modal/src/BasicModal.vue.d.ts +68 -15
- package/dist/components/Modal/src/BasicModal.vue2.js +20 -17
- package/dist/components/{src/components/Modal → Modal}/src/components/ModalFooter.vue.d.ts +4 -4
- package/dist/components/Modal/src/components/ModalFooter.vue2.js +17 -7
- package/dist/components/{src/components/Modal → Modal}/src/components/ModalHeader.vue.d.ts +63 -10
- package/dist/components/Modal/src/components/ModalHeader.vue2.js +3 -3
- package/dist/components/Modal/src/config.js +2 -2
- package/dist/components/Modal/src/hooks/useModalDrag.js +9 -2
- package/dist/components/Modal/src/hooks/useTimeout.d.ts +15 -0
- package/dist/components/Modal/src/hooks/useTimeout.js +1 -1
- package/dist/components/{src/components/Modal → Modal}/src/props.d.ts +31 -7
- package/dist/components/Modal/src/props.js +9 -1
- package/dist/components/Modal/src/utils/index.d.ts +3 -0
- package/dist/components/Modal/src/utils/index.js +1 -1
- package/dist/components/NodeAxis/src/CanvasNodeRender.js +35 -35
- package/dist/components/NodeAxis/src/NodeAxis.vue.d.ts +17 -0
- package/dist/components/NodeAxis/src/NodeAxis.vue2.js +1 -1
- package/dist/components/NodeAxis/src/NodeModel.js +10 -10
- package/dist/components/NodeAxis/src/NodeRender.js +3 -3
- package/dist/components/NodeAxis/src/TimerNodePlayer.d.ts +19 -0
- package/dist/components/NodeAxis/src/TimerNodePlayer.js +4 -4
- package/dist/components/NodeAxis/src/interface/NodePlayer.d.ts +9 -0
- package/dist/components/Stateful/src/Stateful.vue.d.ts +2 -2
- package/dist/components/Stateful/src/Stateful.vue2.js +6 -6
- package/dist/components/Stateful/src/props.d.ts +1 -1
- package/dist/components/Table/src/Table.vue.d.ts +732 -645
- package/dist/components/Table/src/Table.vue2.js +10 -10
- package/dist/components/Table/src/components/ColumnSetting.vue.d.ts +30 -0
- package/dist/components/Table/src/components/ColumnSetting.vue2.js +20 -20
- package/dist/components/Table/src/components/TableActions.vue.d.ts +229 -0
- package/dist/components/Table/src/components/TableActions.vue2.js +1 -1
- package/dist/components/Table/src/helper/index.d.ts +2 -0
- package/dist/components/Table/src/useTable.js +50 -50
- package/dist/components/UnifyChart/src/ChartToolbox.vue.d.ts +8 -8
- package/dist/components/UnifyChart/src/ChartToolbox.vue2.js +2 -2
- package/dist/components/UnifyChart/src/UnifyChart.vue.d.ts +16 -16
- package/dist/components/UnifyChart/src/UnifyChart.vue2.js +2 -2
- package/dist/components/UnifyChart/src/hooks/useLoader.js +19 -19
- package/dist/components/UnifyChart/src/hooks/useRender.js +3 -3
- package/dist/components/UnifyChart/src/props.d.ts +13 -13
- package/dist/components/UnifyChart/src/useDownLoad.d.ts +9 -0
- package/dist/components/UnifyChart/src/useDownLoad.js +27 -0
- package/dist/components/Video/src/VideoPlayer.vue.d.ts +14 -14
- package/dist/components/Video/src/VideoPlayer.vue2.js +5 -5
- package/dist/components/Video/src/VideoPlayerToolbar.vue.d.ts +34 -0
- package/dist/components/Video/src/VideoPlayerToolbar.vue2.js +4 -4
- package/dist/components/Video/src/abstract/AbstractVideoControl.d.ts +7 -0
- package/dist/components/Video/src/abstract/Observable.d.ts +6 -0
- package/dist/components/Video/src/abstract/VideoControl.d.ts +32 -0
- package/dist/components/Video/src/abstract/VideoControl.js +13 -13
- package/dist/components/Video/src/control/DaHua.d.ts +12 -0
- package/dist/components/Video/src/control/DaHua.js +8 -8
- package/dist/components/Video/src/control/Hikvision.d.ts +28 -0
- package/dist/components/Video/src/control/Hikvision.js +12 -12
- package/dist/components/Video/src/control/VideoFactory.d.ts +3 -0
- package/dist/components/Video/src/enums/CommonEnum.d.ts +26 -0
- package/dist/components/Visual/src/BufferLayerPlayer.js +65 -68
- package/dist/components/Visual/src/ResolvableLayerProvider.js +5 -5
- package/dist/components/Visual/src/resolvers/IntervalResolver.js +9 -9
- package/dist/components/Visual/src/resolvers/tools.resolver.js +8 -1
- package/dist/components/Visual/src/utils/NodeMath.js +1 -1
- package/dist/components/Windows/src/ModalWrap.vue2.js +52 -8
- package/dist/components/Windows/src/Windows.vue2.js +3 -3
- package/dist/components/Windows/src/props.d.ts +8 -3
- package/dist/directives/clickOutside.js +3 -3
- package/dist/directives/repeatClick.js +1 -1
- package/dist/directives/resizable.js +4 -4
- package/dist/helper/lang.d.ts +1 -0
- package/dist/index.min.css +3 -3
- package/dist/node_modules/.pnpm/@vueuse_core@13.7.0_vue@3.5.19_typescript@5.9.2_/node_modules/@vueuse/core/index.js +393 -0
- package/dist/node_modules/.pnpm/@vueuse_shared@13.7.0_vue@3.5.19_typescript@5.9.2_/node_modules/@vueuse/shared/index.js +53 -0
- package/dist/utils/index.d.ts +11 -0
- package/package.json +66 -66
- package/dist/components/src/components/ClickOutSide/src/ClickOutSide.vue.d.ts +0 -7
- package/dist/components/src/components/Highlight/src/Highlight.vue.d.ts +0 -41
- /package/dist/components/{src/components/Modal → Modal}/src/config.d.ts +0 -0
- /package/dist/components/{src/components/Modal → Modal}/src/hooks/useModalDrag.d.ts +0 -0
- /package/dist/components/{src/components/Windows → Windows}/src/ModalWrap.vue.d.ts +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, Transition, ref, toRefs, watch, computed, unref, createVNode, resolveComponent
|
|
1
|
+
import { defineComponent, Transition, ref, toRefs, watch, computed, unref, createVNode, resolveComponent } from 'vue';
|
|
2
2
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
3
3
|
import { toMainStyle, toBodyStyle } from './utils/index.js';
|
|
4
4
|
import { baseProps, headerProps, footerProps } from './props.js';
|
|
@@ -13,7 +13,7 @@ import script$2 from './components/ModalHeader.vue2.js';
|
|
|
13
13
|
import script$3 from '../../Icon/src/Icon.vue2.js';
|
|
14
14
|
|
|
15
15
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
16
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t),
|
|
16
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
17
17
|
var script = defineComponent({
|
|
18
18
|
components: {
|
|
19
19
|
ModalFooter: script$1,
|
|
@@ -58,14 +58,15 @@ var script = defineComponent({
|
|
|
58
58
|
}, {
|
|
59
59
|
immediate: true
|
|
60
60
|
});
|
|
61
|
-
function onSwitch() {
|
|
61
|
+
function onSwitch(e) {
|
|
62
|
+
e.stopImmediatePropagation();
|
|
62
63
|
moving.value = false;
|
|
63
64
|
emit('update:maximum', maximum.value = !maximum.value);
|
|
64
|
-
emit('resize');
|
|
65
|
+
emit('resize', maximum.value);
|
|
65
66
|
}
|
|
66
|
-
function onClose() {
|
|
67
|
+
function onClose(e) {
|
|
67
68
|
innerVisible.value = false;
|
|
68
|
-
emit('close');
|
|
69
|
+
emit('close', e);
|
|
69
70
|
}
|
|
70
71
|
var mainClass = computed(function () {
|
|
71
72
|
var cls = [unref(maximum) ? 'maximum' : '', props.modally ? 'modally' : '', props.modalClass];
|
|
@@ -90,30 +91,32 @@ var script = defineComponent({
|
|
|
90
91
|
});
|
|
91
92
|
var getTitleBefore = function getTitleBefore() {
|
|
92
93
|
var _slot = getSlot(slots, 'titleBefore', _objectSpread({}, props));
|
|
93
|
-
var _slotFn = props === null || props ===
|
|
94
|
-
return _slot !== null && _slot !==
|
|
94
|
+
var _slotFn = props === null || props === void 0 ? void 0 : props.titleBefore;
|
|
95
|
+
return _slot !== null && _slot !== void 0 ? _slot : _slotFn === null || _slotFn === void 0 ? void 0 : _slotFn();
|
|
95
96
|
};
|
|
96
97
|
var getTitleAfter = function getTitleAfter() {
|
|
97
98
|
var _slot = getSlot(slots, 'titleAfter', _objectSpread({}, props));
|
|
98
|
-
var _slotFn = props === null || props ===
|
|
99
|
-
return _slot !== null && _slot !==
|
|
99
|
+
var _slotFn = props === null || props === void 0 ? void 0 : props.titleAfter;
|
|
100
|
+
return _slot !== null && _slot !== void 0 ? _slot : _slotFn === null || _slotFn === void 0 ? void 0 : _slotFn();
|
|
100
101
|
};
|
|
101
102
|
var getTitle = function getTitle() {
|
|
102
103
|
var _slot = getSlot(slots, 'title', _objectSpread({}, props));
|
|
103
|
-
var _slotFn = props === null || props ===
|
|
104
|
-
return (_slot !== null && _slot !==
|
|
104
|
+
var _slotFn = props === null || props === void 0 ? void 0 : props.title;
|
|
105
|
+
return (_slot !== null && _slot !== void 0 ? _slot : isFunction(_slotFn)) ? _slotFn === null || _slotFn === void 0 ? void 0 : _slotFn() : _slotFn;
|
|
105
106
|
};
|
|
106
107
|
var hasMover = computed(function () {
|
|
107
|
-
return !!(slots !== null && slots !==
|
|
108
|
+
return !!(slots !== null && slots !== void 0 && slots['mover']);
|
|
108
109
|
});
|
|
109
110
|
return function () {
|
|
110
111
|
var _props$animation, _props$animation2, _slots$mover, _slots$default;
|
|
111
112
|
return innerVisible.value ? createVNode("div", {
|
|
112
|
-
"class": "component modal dialog component-modal-page-wrap ".concat(mainClass.value),
|
|
113
|
+
"class": ["component modal dialog component-modal-page-wrap ".concat(mainClass.value), {
|
|
114
|
+
minimized: props.minimize
|
|
115
|
+
}],
|
|
113
116
|
"style": mainStyle.value
|
|
114
117
|
}, [createVNode(resolveComponent("transition"), {
|
|
115
|
-
"enter-active-class": ((_props$animation = props.animation) === null || _props$animation ===
|
|
116
|
-
"leave-active-class": ((_props$animation2 = props.animation) === null || _props$animation2 ===
|
|
118
|
+
"enter-active-class": ((_props$animation = props.animation) === null || _props$animation === void 0 ? void 0 : _props$animation.enter) || 'window--enter-active',
|
|
119
|
+
"leave-active-class": ((_props$animation2 = props.animation) === null || _props$animation2 === void 0 ? void 0 : _props$animation2.leave) || 'window--leave-active',
|
|
117
120
|
"appear": true
|
|
118
121
|
}, {
|
|
119
122
|
"default": function _default() {
|
|
@@ -142,7 +145,7 @@ var script = defineComponent({
|
|
|
142
145
|
"class": "modal--content component-modal-content"
|
|
143
146
|
}, [hasMover.value && createVNode("div", {
|
|
144
147
|
"class": "mover ".concat(moverClass)
|
|
145
|
-
}, [(_slots$mover = slots.mover) === null || _slots$mover ===
|
|
148
|
+
}, [(_slots$mover = slots.mover) === null || _slots$mover === void 0 ? void 0 : _slots$mover.call(slots)]), (_slots$default = slots["default"]) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots)]), createVNode(script$1, unref(getBindValue), null)])];
|
|
146
149
|
}
|
|
147
150
|
})]) : null;
|
|
148
151
|
};
|
|
@@ -25,12 +25,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
25
25
|
color: string;
|
|
26
26
|
};
|
|
27
27
|
};
|
|
28
|
-
onCancel: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/types").
|
|
28
|
+
onCancel: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/shared/vue-types.d8e57a80").b<(...args: any[]) => any>> & {
|
|
29
29
|
default: (...args: any[]) => any;
|
|
30
30
|
} & {
|
|
31
31
|
default: (...args: any[]) => any;
|
|
32
32
|
};
|
|
33
|
-
onSubmit: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/types").
|
|
33
|
+
onSubmit: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/shared/vue-types.d8e57a80").b<(...args: any[]) => any>> & {
|
|
34
34
|
default: (...args: any[]) => any;
|
|
35
35
|
} & {
|
|
36
36
|
default: (...args: any[]) => any;
|
|
@@ -64,12 +64,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
64
64
|
color: string;
|
|
65
65
|
};
|
|
66
66
|
};
|
|
67
|
-
onCancel: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/types").
|
|
67
|
+
onCancel: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/shared/vue-types.d8e57a80").b<(...args: any[]) => any>> & {
|
|
68
68
|
default: (...args: any[]) => any;
|
|
69
69
|
} & {
|
|
70
70
|
default: (...args: any[]) => any;
|
|
71
71
|
};
|
|
72
|
-
onSubmit: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/types").
|
|
72
|
+
onSubmit: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/shared/vue-types.d8e57a80").b<(...args: any[]) => any>> & {
|
|
73
73
|
default: (...args: any[]) => any;
|
|
74
74
|
} & {
|
|
75
75
|
default: (...args: any[]) => any;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { normalizeClass, defineComponent, resolveComponent, openBlock, createElementBlock, createVNode, withCtx, createTextVNode, toDisplayString,
|
|
1
|
+
import { normalizeClass, defineComponent, toRefs, resolveComponent, openBlock, createElementBlock, createVNode, unref, withCtx, createTextVNode, toDisplayString, createCommentVNode } from 'vue';
|
|
2
2
|
import { footerProps } from '../props.js';
|
|
3
|
-
import { cancel, submit } from '../config.js';
|
|
4
3
|
|
|
5
4
|
var _hoisted_1 = {
|
|
6
5
|
key: 0,
|
|
@@ -10,19 +9,30 @@ var script = defineComponent({
|
|
|
10
9
|
__name: 'ModalFooter',
|
|
11
10
|
props: footerProps,
|
|
12
11
|
setup: function setup(__props) {
|
|
12
|
+
var props = __props;
|
|
13
|
+
var _toRefs = toRefs(props),
|
|
14
|
+
submitOpt = _toRefs.submitOpt,
|
|
15
|
+
cancelOpt = _toRefs.cancelOpt;
|
|
13
16
|
return function (_ctx, _cache) {
|
|
17
|
+
var _unref2, _unref3;
|
|
14
18
|
var _component_el_button = resolveComponent("el-button");
|
|
15
|
-
return !!_ctx.footer ? (openBlock(), createElementBlock("div", _hoisted_1, [createVNode(_component_el_button,
|
|
19
|
+
return !!_ctx.footer ? (openBlock(), createElementBlock("div", _hoisted_1, [createVNode(_component_el_button, {
|
|
20
|
+
onClick: _ctx.onCancel,
|
|
21
|
+
type: (_unref2 = unref(cancelOpt)) === null || _unref2 === void 0 ? void 0 : _unref2.color
|
|
22
|
+
}, {
|
|
16
23
|
"default": withCtx(function () {
|
|
17
|
-
return [createTextVNode(toDisplayString(unref(
|
|
24
|
+
return [createTextVNode(toDisplayString(unref(cancelOpt).label), 1)];
|
|
18
25
|
}),
|
|
19
26
|
_: 1
|
|
20
|
-
}), createVNode(_component_el_button,
|
|
27
|
+
}, 8, ["onClick", "type"]), createVNode(_component_el_button, {
|
|
28
|
+
onClick: _ctx.onSubmit,
|
|
29
|
+
type: (_unref3 = unref(submitOpt)) === null || _unref3 === void 0 ? void 0 : _unref3.color
|
|
30
|
+
}, {
|
|
21
31
|
"default": withCtx(function () {
|
|
22
|
-
return [createTextVNode(toDisplayString(unref(
|
|
32
|
+
return [createTextVNode(toDisplayString(unref(submitOpt).label), 1)];
|
|
23
33
|
}),
|
|
24
34
|
_: 1
|
|
25
|
-
})])) : createCommentVNode("v-if", true);
|
|
35
|
+
}, 8, ["onClick", "type"])])) : createCommentVNode("v-if", true);
|
|
26
36
|
};
|
|
27
37
|
}
|
|
28
38
|
});
|
|
@@ -29,10 +29,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
29
29
|
titleAlign: import("vue-types").VueTypeDef<string> & {
|
|
30
30
|
default: string;
|
|
31
31
|
};
|
|
32
|
-
titleBefore: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/types").
|
|
32
|
+
titleBefore: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/shared/vue-types.d8e57a80").b<(...args: any[]) => any>> & {
|
|
33
33
|
default: (...args: any[]) => any;
|
|
34
34
|
};
|
|
35
|
-
titleAfter: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/types").
|
|
35
|
+
titleAfter: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/shared/vue-types.d8e57a80").b<(...args: any[]) => any>> & {
|
|
36
36
|
default: (...args: any[]) => any;
|
|
37
37
|
};
|
|
38
38
|
switcherIcon: {
|
|
@@ -55,6 +55,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
55
55
|
color: string;
|
|
56
56
|
};
|
|
57
57
|
};
|
|
58
|
+
minimize: {
|
|
59
|
+
type: BooleanConstructor;
|
|
60
|
+
default: boolean;
|
|
61
|
+
};
|
|
58
62
|
minimizer: {
|
|
59
63
|
type: BooleanConstructor;
|
|
60
64
|
default: boolean;
|
|
@@ -66,17 +70,37 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
66
70
|
color: string;
|
|
67
71
|
};
|
|
68
72
|
};
|
|
69
|
-
onMinimize: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/types").
|
|
73
|
+
onMinimize: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/shared/vue-types.d8e57a80").b<(...args: any[]) => any>> & {
|
|
74
|
+
default: (...args: any[]) => any;
|
|
75
|
+
} & {
|
|
76
|
+
default: (...args: any[]) => any;
|
|
77
|
+
};
|
|
78
|
+
onSwitch: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/shared/vue-types.d8e57a80").b<(...args: any[]) => any>> & {
|
|
79
|
+
default: (...args: any[]) => any;
|
|
80
|
+
} & {
|
|
81
|
+
default: (...args: any[]) => any;
|
|
82
|
+
};
|
|
83
|
+
onClose: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/shared/vue-types.d8e57a80").b<(...args: any[]) => any>> & {
|
|
84
|
+
default: (...args: any[]) => any;
|
|
85
|
+
} & {
|
|
86
|
+
default: (...args: any[]) => any;
|
|
87
|
+
};
|
|
88
|
+
onResize: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/shared/vue-types.d8e57a80").b<(...args: any[]) => any>> & {
|
|
89
|
+
default: (...args: any[]) => any;
|
|
90
|
+
} & {
|
|
91
|
+
default: (...args: any[]) => any;
|
|
92
|
+
};
|
|
93
|
+
onModalMousemove: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/shared/vue-types.d8e57a80").b<(...args: any[]) => any>> & {
|
|
70
94
|
default: (...args: any[]) => any;
|
|
71
95
|
} & {
|
|
72
96
|
default: (...args: any[]) => any;
|
|
73
97
|
};
|
|
74
|
-
|
|
98
|
+
onModalMousedown: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/shared/vue-types.d8e57a80").b<(...args: any[]) => any>> & {
|
|
75
99
|
default: (...args: any[]) => any;
|
|
76
100
|
} & {
|
|
77
101
|
default: (...args: any[]) => any;
|
|
78
102
|
};
|
|
79
|
-
|
|
103
|
+
onModalMouseup: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/shared/vue-types.d8e57a80").b<(...args: any[]) => any>> & {
|
|
80
104
|
default: (...args: any[]) => any;
|
|
81
105
|
} & {
|
|
82
106
|
default: (...args: any[]) => any;
|
|
@@ -114,10 +138,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
114
138
|
titleAlign: import("vue-types").VueTypeDef<string> & {
|
|
115
139
|
default: string;
|
|
116
140
|
};
|
|
117
|
-
titleBefore: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/types").
|
|
141
|
+
titleBefore: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/shared/vue-types.d8e57a80").b<(...args: any[]) => any>> & {
|
|
118
142
|
default: (...args: any[]) => any;
|
|
119
143
|
};
|
|
120
|
-
titleAfter: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/types").
|
|
144
|
+
titleAfter: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/shared/vue-types.d8e57a80").b<(...args: any[]) => any>> & {
|
|
121
145
|
default: (...args: any[]) => any;
|
|
122
146
|
};
|
|
123
147
|
switcherIcon: {
|
|
@@ -140,6 +164,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
140
164
|
color: string;
|
|
141
165
|
};
|
|
142
166
|
};
|
|
167
|
+
minimize: {
|
|
168
|
+
type: BooleanConstructor;
|
|
169
|
+
default: boolean;
|
|
170
|
+
};
|
|
143
171
|
minimizer: {
|
|
144
172
|
type: BooleanConstructor;
|
|
145
173
|
default: boolean;
|
|
@@ -151,17 +179,37 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
151
179
|
color: string;
|
|
152
180
|
};
|
|
153
181
|
};
|
|
154
|
-
onMinimize: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/types").
|
|
182
|
+
onMinimize: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/shared/vue-types.d8e57a80").b<(...args: any[]) => any>> & {
|
|
183
|
+
default: (...args: any[]) => any;
|
|
184
|
+
} & {
|
|
185
|
+
default: (...args: any[]) => any;
|
|
186
|
+
};
|
|
187
|
+
onSwitch: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/shared/vue-types.d8e57a80").b<(...args: any[]) => any>> & {
|
|
188
|
+
default: (...args: any[]) => any;
|
|
189
|
+
} & {
|
|
190
|
+
default: (...args: any[]) => any;
|
|
191
|
+
};
|
|
192
|
+
onClose: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/shared/vue-types.d8e57a80").b<(...args: any[]) => any>> & {
|
|
193
|
+
default: (...args: any[]) => any;
|
|
194
|
+
} & {
|
|
195
|
+
default: (...args: any[]) => any;
|
|
196
|
+
};
|
|
197
|
+
onResize: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/shared/vue-types.d8e57a80").b<(...args: any[]) => any>> & {
|
|
198
|
+
default: (...args: any[]) => any;
|
|
199
|
+
} & {
|
|
200
|
+
default: (...args: any[]) => any;
|
|
201
|
+
};
|
|
202
|
+
onModalMousemove: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/shared/vue-types.d8e57a80").b<(...args: any[]) => any>> & {
|
|
155
203
|
default: (...args: any[]) => any;
|
|
156
204
|
} & {
|
|
157
205
|
default: (...args: any[]) => any;
|
|
158
206
|
};
|
|
159
|
-
|
|
207
|
+
onModalMousedown: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/shared/vue-types.d8e57a80").b<(...args: any[]) => any>> & {
|
|
160
208
|
default: (...args: any[]) => any;
|
|
161
209
|
} & {
|
|
162
210
|
default: (...args: any[]) => any;
|
|
163
211
|
};
|
|
164
|
-
|
|
212
|
+
onModalMouseup: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/shared/vue-types.d8e57a80").b<(...args: any[]) => any>> & {
|
|
165
213
|
default: (...args: any[]) => any;
|
|
166
214
|
} & {
|
|
167
215
|
default: (...args: any[]) => any;
|
|
@@ -179,10 +227,15 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
179
227
|
titleAfter: (...args: any[]) => any;
|
|
180
228
|
switcherIcon: Record<string, any>;
|
|
181
229
|
closerIcon: Record<string, any>;
|
|
230
|
+
minimize: boolean;
|
|
182
231
|
minimizer: boolean;
|
|
183
232
|
minimizerIcon: Record<string, any>;
|
|
184
233
|
onMinimize: (...args: any[]) => any;
|
|
185
234
|
onSwitch: (...args: any[]) => any;
|
|
186
235
|
onClose: (...args: any[]) => any;
|
|
236
|
+
onResize: (...args: any[]) => any;
|
|
237
|
+
onModalMousemove: (...args: any[]) => any;
|
|
238
|
+
onModalMousedown: (...args: any[]) => any;
|
|
239
|
+
onModalMouseup: (...args: any[]) => any;
|
|
187
240
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
188
241
|
export default _default;
|
|
@@ -18,7 +18,7 @@ var _hoisted_3 = {
|
|
|
18
18
|
};
|
|
19
19
|
var _hoisted_4 = {
|
|
20
20
|
key: 3,
|
|
21
|
-
"class": "header-
|
|
21
|
+
"class": "header-after"
|
|
22
22
|
};
|
|
23
23
|
var _hoisted_5 = {
|
|
24
24
|
"class": "modal-header-right-control-wrap"
|
|
@@ -36,7 +36,7 @@ var script = defineComponent({
|
|
|
36
36
|
});
|
|
37
37
|
var sIcon = computed(function () {
|
|
38
38
|
var _props$switcherIcon;
|
|
39
|
-
return (_props$switcherIcon = props.switcherIcon) === null || _props$switcherIcon ===
|
|
39
|
+
return (_props$switcherIcon = props.switcherIcon) === null || _props$switcherIcon === void 0 ? void 0 : _props$switcherIcon[props.maximum].image;
|
|
40
40
|
});
|
|
41
41
|
return function (_ctx, _cache) {
|
|
42
42
|
var _ctx$minimizerIcon;
|
|
@@ -58,7 +58,7 @@ var script = defineComponent({
|
|
|
58
58
|
size: 28,
|
|
59
59
|
color: "white",
|
|
60
60
|
onClick: withModifiers(_ctx.onMinimize, ["stop"]),
|
|
61
|
-
icon: (_ctx$minimizerIcon = _ctx.minimizerIcon) === null || _ctx$minimizerIcon ===
|
|
61
|
+
icon: (_ctx$minimizerIcon = _ctx.minimizerIcon) === null || _ctx$minimizerIcon === void 0 ? void 0 : _ctx$minimizerIcon.image
|
|
62
62
|
}, null, 8, ["onClick", "icon"])) : createCommentVNode("v-if", true), !!_ctx.switcherIcon && props.maximizer ? (openBlock(), createBlock(script$1, {
|
|
63
63
|
key: 1,
|
|
64
64
|
"class": "cursor-pointer",
|
|
@@ -29,7 +29,9 @@ function useModalDragMove(context) {
|
|
|
29
29
|
if (!dialogHeaderEl || !dragDom || !unref(context.draggable)) return;
|
|
30
30
|
dialogHeaderEl.style.cursor = 'move';
|
|
31
31
|
dialogHeaderEl.onmousedown = function (e) {
|
|
32
|
+
var _e$target, _context$props, _context$props$onModa;
|
|
32
33
|
if (!e) return;
|
|
34
|
+
console.log(e);
|
|
33
35
|
var element = context.props.modally ? that.refs.body : proxy.$el;
|
|
34
36
|
var bounder = element.getBoundingClientRect();
|
|
35
37
|
sign.l = bounder.left;
|
|
@@ -37,9 +39,11 @@ function useModalDragMove(context) {
|
|
|
37
39
|
sign.x = e.x;
|
|
38
40
|
sign.y = e.y;
|
|
39
41
|
moving.value = true;
|
|
42
|
+
if (!e || ['svg', 'path'].includes(e === null || e === void 0 || (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.nodeName)) (_context$props = context.props) === null || _context$props === void 0 || (_context$props$onModa = _context$props.onModalMousedown) === null || _context$props$onModa === void 0 || _context$props$onModa.call(_context$props);
|
|
40
43
|
document.onmousemove = function (event) {
|
|
41
44
|
var moved = sign.x !== event.x || sign.y !== event.y;
|
|
42
45
|
if (moved && moving.value && !context.maximum.value) {
|
|
46
|
+
var _context$props2, _context$props2$onMod;
|
|
43
47
|
event.preventDefault();
|
|
44
48
|
delete locator.right;
|
|
45
49
|
delete locator.bottom;
|
|
@@ -63,12 +67,15 @@ function useModalDragMove(context) {
|
|
|
63
67
|
locator.right = "unset !important";
|
|
64
68
|
locator.bottom = "unset !important";
|
|
65
69
|
that.emit('update:offset', locator);
|
|
70
|
+
(_context$props2 = context.props) === null || _context$props2 === void 0 || (_context$props2$onMod = _context$props2.onModalMousemove) === null || _context$props2$onMod === void 0 || _context$props2$onMod.call(_context$props2, event);
|
|
66
71
|
}
|
|
67
72
|
};
|
|
68
|
-
document.onmouseup = function () {
|
|
73
|
+
document.onmouseup = function (e) {
|
|
74
|
+
var _e$target2, _context$props3, _context$props3$onMod;
|
|
69
75
|
moving.value = false;
|
|
70
76
|
document.onmousemove = null;
|
|
71
77
|
document.onmouseup = null;
|
|
78
|
+
if (!e || ['svg', 'path'].includes(e === null || e === void 0 || (_e$target2 = e.target) === null || _e$target2 === void 0 ? void 0 : _e$target2.nodeName)) (_context$props3 = context.props) === null || _context$props3 === void 0 || (_context$props3$onMod = _context$props3.onModalMouseup) === null || _context$props3$onMod === void 0 || _context$props3$onMod.call(_context$props3);
|
|
72
79
|
};
|
|
73
80
|
};
|
|
74
81
|
};
|
|
@@ -78,7 +85,7 @@ function useModalDragMove(context) {
|
|
|
78
85
|
var dragWrap = proxy.$el;
|
|
79
86
|
if (!dragWrap) return;
|
|
80
87
|
var display = getStyle(dragWrap, 'display');
|
|
81
|
-
var draggable = (_dragWrap$getAttribut = dragWrap.getAttribute('data-drag')) !== null && _dragWrap$getAttribut !==
|
|
88
|
+
var draggable = (_dragWrap$getAttribut = dragWrap.getAttribute('data-drag')) !== null && _dragWrap$getAttribut !== void 0 ? _dragWrap$getAttribut : true;
|
|
82
89
|
if (display !== 'none') {
|
|
83
90
|
if (draggable === null || unref(context.destroyOnClose)) {
|
|
84
91
|
drag(dragWrap);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare function isFunction(val: unknown): val is Function;
|
|
2
|
+
declare interface Fn<T = any, R = T> {
|
|
3
|
+
(...arg: T[]): R;
|
|
4
|
+
}
|
|
5
|
+
export declare function useTimeoutFn(handle: Fn<any>, wait: number, native?: boolean): {
|
|
6
|
+
readyRef: import("vue").Ref<boolean, boolean>;
|
|
7
|
+
stop: () => void;
|
|
8
|
+
start: () => void;
|
|
9
|
+
};
|
|
10
|
+
export declare function useTimeoutRef(wait: number): {
|
|
11
|
+
readyRef: import("vue").Ref<boolean, boolean>;
|
|
12
|
+
stop: () => void;
|
|
13
|
+
start: () => void;
|
|
14
|
+
};
|
|
15
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { watch, ref } from 'vue';
|
|
2
|
-
import { tryOnUnmounted } from '../../../../node_modules/.pnpm/@vueuse_shared@
|
|
2
|
+
import { tryOnUnmounted } from '../../../../node_modules/.pnpm/@vueuse_shared@13.7.0_vue@3.5.19_typescript@5.9.2_/node_modules/@vueuse/shared/index.js';
|
|
3
3
|
|
|
4
4
|
function isFunction(val) {
|
|
5
5
|
return typeof val === 'function';
|
|
@@ -74,10 +74,10 @@ export declare const headerProps: {
|
|
|
74
74
|
titleAlign: import("vue-types").VueTypeDef<string> & {
|
|
75
75
|
default: string;
|
|
76
76
|
};
|
|
77
|
-
titleBefore: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/types").
|
|
77
|
+
titleBefore: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/shared/vue-types.d8e57a80").b<(...args: any[]) => any>> & {
|
|
78
78
|
default: (...args: any[]) => any;
|
|
79
79
|
};
|
|
80
|
-
titleAfter: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/types").
|
|
80
|
+
titleAfter: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/shared/vue-types.d8e57a80").b<(...args: any[]) => any>> & {
|
|
81
81
|
default: (...args: any[]) => any;
|
|
82
82
|
};
|
|
83
83
|
switcherIcon: {
|
|
@@ -100,6 +100,10 @@ export declare const headerProps: {
|
|
|
100
100
|
color: string;
|
|
101
101
|
};
|
|
102
102
|
};
|
|
103
|
+
minimize: {
|
|
104
|
+
type: BooleanConstructor;
|
|
105
|
+
default: boolean;
|
|
106
|
+
};
|
|
103
107
|
minimizer: {
|
|
104
108
|
type: BooleanConstructor;
|
|
105
109
|
default: boolean;
|
|
@@ -111,17 +115,37 @@ export declare const headerProps: {
|
|
|
111
115
|
color: string;
|
|
112
116
|
};
|
|
113
117
|
};
|
|
114
|
-
onMinimize: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/types").
|
|
118
|
+
onMinimize: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/shared/vue-types.d8e57a80").b<(...args: any[]) => any>> & {
|
|
119
|
+
default: (...args: any[]) => any;
|
|
120
|
+
} & {
|
|
121
|
+
default: (...args: any[]) => any;
|
|
122
|
+
};
|
|
123
|
+
onSwitch: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/shared/vue-types.d8e57a80").b<(...args: any[]) => any>> & {
|
|
124
|
+
default: (...args: any[]) => any;
|
|
125
|
+
} & {
|
|
126
|
+
default: (...args: any[]) => any;
|
|
127
|
+
};
|
|
128
|
+
onClose: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/shared/vue-types.d8e57a80").b<(...args: any[]) => any>> & {
|
|
129
|
+
default: (...args: any[]) => any;
|
|
130
|
+
} & {
|
|
131
|
+
default: (...args: any[]) => any;
|
|
132
|
+
};
|
|
133
|
+
onResize: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/shared/vue-types.d8e57a80").b<(...args: any[]) => any>> & {
|
|
134
|
+
default: (...args: any[]) => any;
|
|
135
|
+
} & {
|
|
136
|
+
default: (...args: any[]) => any;
|
|
137
|
+
};
|
|
138
|
+
onModalMousemove: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/shared/vue-types.d8e57a80").b<(...args: any[]) => any>> & {
|
|
115
139
|
default: (...args: any[]) => any;
|
|
116
140
|
} & {
|
|
117
141
|
default: (...args: any[]) => any;
|
|
118
142
|
};
|
|
119
|
-
|
|
143
|
+
onModalMousedown: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/shared/vue-types.d8e57a80").b<(...args: any[]) => any>> & {
|
|
120
144
|
default: (...args: any[]) => any;
|
|
121
145
|
} & {
|
|
122
146
|
default: (...args: any[]) => any;
|
|
123
147
|
};
|
|
124
|
-
|
|
148
|
+
onModalMouseup: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/shared/vue-types.d8e57a80").b<(...args: any[]) => any>> & {
|
|
125
149
|
default: (...args: any[]) => any;
|
|
126
150
|
} & {
|
|
127
151
|
default: (...args: any[]) => any;
|
|
@@ -154,12 +178,12 @@ export declare const footerProps: {
|
|
|
154
178
|
color: string;
|
|
155
179
|
};
|
|
156
180
|
};
|
|
157
|
-
onCancel: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/types").
|
|
181
|
+
onCancel: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/shared/vue-types.d8e57a80").b<(...args: any[]) => any>> & {
|
|
158
182
|
default: (...args: any[]) => any;
|
|
159
183
|
} & {
|
|
160
184
|
default: (...args: any[]) => any;
|
|
161
185
|
};
|
|
162
|
-
onSubmit: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/types").
|
|
186
|
+
onSubmit: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/shared/vue-types.d8e57a80").b<(...args: any[]) => any>> & {
|
|
163
187
|
default: (...args: any[]) => any;
|
|
164
188
|
} & {
|
|
165
189
|
default: (...args: any[]) => any;
|
|
@@ -77,6 +77,10 @@ var headerProps = {
|
|
|
77
77
|
return closer;
|
|
78
78
|
}
|
|
79
79
|
},
|
|
80
|
+
minimize: {
|
|
81
|
+
type: Boolean,
|
|
82
|
+
"default": false
|
|
83
|
+
},
|
|
80
84
|
minimizer: {
|
|
81
85
|
type: Boolean,
|
|
82
86
|
"default": false
|
|
@@ -89,7 +93,11 @@ var headerProps = {
|
|
|
89
93
|
},
|
|
90
94
|
onMinimize: propTypes.func.def(function () {}),
|
|
91
95
|
onSwitch: propTypes.func.def(function () {}),
|
|
92
|
-
onClose: propTypes.func.def(function () {})
|
|
96
|
+
onClose: propTypes.func.def(function () {}),
|
|
97
|
+
onResize: propTypes.func.def(function () {}),
|
|
98
|
+
onModalMousemove: propTypes.func.def(function () {}),
|
|
99
|
+
onModalMousedown: propTypes.func.def(function () {}),
|
|
100
|
+
onModalMouseup: propTypes.func.def(function () {})
|
|
93
101
|
};
|
|
94
102
|
var footerProps = {
|
|
95
103
|
footer: {
|
|
@@ -2,7 +2,7 @@ import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
|
2
2
|
import { unref } from 'vue';
|
|
3
3
|
|
|
4
4
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t),
|
|
5
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6
6
|
function ensure(value) {
|
|
7
7
|
return value == null ? null : isNaN(value) ? value : "".concat(value, "px");
|
|
8
8
|
}
|