@farris/ui-vue 1.2.9 → 1.3.0
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/components/accordion/index.esm.js +63 -63
- package/components/accordion/index.umd.cjs +1 -1
- package/components/avatar/index.esm.js +402 -323
- package/components/avatar/index.umd.cjs +1 -1
- package/components/button-edit/index.css +1 -1
- package/components/button-edit/index.esm.js +98 -96
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/calendar/index.esm.js +66 -66
- package/components/calendar/index.umd.cjs +1 -1
- package/components/capsule/index.esm.js +118 -118
- package/components/capsule/index.umd.cjs +1 -1
- package/components/checkbox/index.esm.js +539 -460
- package/components/checkbox/index.umd.cjs +1 -1
- package/components/color-picker/index.esm.js +135 -135
- package/components/color-picker/index.umd.cjs +2 -2
- package/components/combo-list/index.css +1 -0
- package/components/combo-list/index.esm.js +1007 -312
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/combo-tree/index.esm.js +97 -97
- package/components/combo-tree/index.umd.cjs +1 -1
- package/components/common/index.esm.js +778 -700
- package/components/common/index.umd.cjs +1 -1
- package/components/component/index.esm.js +472 -329
- package/components/component/index.umd.cjs +1 -1
- package/components/condition/index.css +1 -0
- package/components/condition/index.esm.js +2231 -1055
- package/components/condition/index.umd.cjs +1 -1
- package/components/content-container/index.esm.js +79 -79
- package/components/content-container/index.umd.cjs +1 -1
- package/components/data-grid/index.css +1 -1
- package/components/data-grid/index.esm.js +6408 -5034
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-view/index.css +1 -0
- package/components/data-view/index.esm.js +4762 -3511
- package/components/data-view/index.umd.cjs +1 -1
- package/components/date-picker/index.css +1 -1
- package/components/date-picker/index.esm.js +3442 -2742
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/designer-outline/index.esm.js +14 -13
- package/components/designer-outline/index.umd.cjs +1 -1
- package/components/dropdown/index.esm.js +73 -73
- package/components/dropdown/index.umd.cjs +2 -2
- package/components/dynamic-form/index.css +1 -0
- package/components/dynamic-form/index.esm.js +2597 -1141
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-resolver/index.esm.js +114 -71
- package/components/dynamic-resolver/index.umd.cjs +1 -1
- package/components/dynamic-view/index.esm.js +303 -290
- package/components/dynamic-view/index.umd.cjs +1 -1
- package/components/events-editor/index.esm.js +171 -171
- package/components/events-editor/index.umd.cjs +1 -1
- package/components/expression-editor/index.esm.js +65 -65
- package/components/expression-editor/index.umd.cjs +1 -1
- package/components/external-container/index.css +1 -1
- package/components/external-container/index.esm.js +3075 -2586
- package/components/external-container/index.umd.cjs +1 -1
- package/components/field-selector/index.css +1 -1
- package/components/field-selector/index.esm.js +5272 -8511
- package/components/field-selector/index.umd.cjs +1 -1
- package/components/filter-bar/index.css +1 -1
- package/components/filter-bar/index.esm.js +1726 -1822
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/image-cropper/index.esm.js +126 -126
- package/components/image-cropper/index.umd.cjs +1 -1
- package/components/input-group/index.esm.js +620 -540
- package/components/input-group/index.umd.cjs +1 -1
- package/components/layout/index.esm.js +88 -88
- package/components/layout/index.umd.cjs +1 -1
- package/components/list-nav/index.esm.js +71 -71
- package/components/list-nav/index.umd.cjs +1 -1
- package/components/list-view/index.css +1 -1
- package/components/list-view/index.esm.js +3582 -2356
- package/components/list-view/index.umd.cjs +1 -1
- package/components/lookup/index.css +1 -1
- package/components/lookup/index.esm.js +10752 -8972
- package/components/lookup/index.umd.cjs +1 -1
- package/components/mapping-editor/index.css +1 -1
- package/components/mapping-editor/index.esm.js +5601 -5329
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/message-box/index.css +1 -1
- package/components/message-box/index.esm.js +511 -471
- package/components/message-box/index.umd.cjs +1 -1
- package/components/modal/index.css +1 -1
- package/components/modal/index.esm.js +438 -398
- package/components/modal/index.umd.cjs +1 -1
- package/components/nav/index.esm.js +535 -452
- package/components/nav/index.umd.cjs +2 -2
- package/components/notify/index.esm.js +59 -53
- package/components/notify/index.umd.cjs +1 -1
- package/components/number-range/index.esm.js +556 -477
- package/components/number-range/index.umd.cjs +1 -1
- package/components/number-spinner/index.esm.js +504 -425
- package/components/number-spinner/index.umd.cjs +1 -1
- package/components/order/index.css +1 -1
- package/components/order/index.esm.js +1833 -1054
- package/components/order/index.umd.cjs +1 -1
- package/components/page-footer/index.esm.js +100 -100
- package/components/page-footer/index.umd.cjs +1 -1
- package/components/page-header/index.esm.js +899 -870
- package/components/page-header/index.umd.cjs +1 -1
- package/components/pagination/index.esm.js +576 -487
- package/components/pagination/index.umd.cjs +1 -1
- package/components/popover/index.esm.js +71 -70
- package/components/popover/index.umd.cjs +1 -1
- package/components/progress/index.esm.js +73 -73
- package/components/progress/index.umd.cjs +2 -2
- package/components/property-editor/index.css +1 -1
- package/components/property-editor/index.esm.js +1916 -1220
- package/components/property-editor/index.umd.cjs +3 -3
- package/components/property-panel/index.esm.js +783 -886
- package/components/property-panel/index.umd.cjs +1 -1
- package/components/query-solution/index.css +1 -1
- package/components/query-solution/index.esm.js +3632 -2556
- package/components/query-solution/index.umd.cjs +1 -1
- package/components/radio-button/index.esm.js +72 -72
- package/components/radio-button/index.umd.cjs +1 -1
- package/components/radio-group/index.esm.js +484 -405
- package/components/radio-group/index.umd.cjs +1 -1
- package/components/rate/index.esm.js +152 -152
- package/components/rate/index.umd.cjs +1 -1
- package/components/response-layout/index.esm.js +73 -73
- package/components/response-layout/index.umd.cjs +1 -1
- package/components/response-layout-editor/index.css +1 -1
- package/components/response-layout-editor/index.esm.js +1081 -1043
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/response-toolbar/index.esm.js +753 -738
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/schema-selector/index.css +1 -1
- package/components/schema-selector/index.esm.js +4418 -4177
- package/components/schema-selector/index.umd.cjs +2 -2
- package/components/search-box/index.esm.js +119 -119
- package/components/search-box/index.umd.cjs +1 -1
- package/components/section/index.esm.js +92 -91
- package/components/section/index.umd.cjs +1 -1
- package/components/smoke-detector/index.esm.js +59 -59
- package/components/smoke-detector/index.umd.cjs +1 -1
- package/components/splitter/index.esm.js +103 -103
- package/components/splitter/index.umd.cjs +1 -1
- package/components/step/index.esm.js +85 -85
- package/components/step/index.umd.cjs +1 -1
- package/components/switch/index.esm.js +457 -378
- package/components/switch/index.umd.cjs +1 -1
- package/components/tabs/index.css +1 -1
- package/components/tabs/index.esm.js +1696 -1617
- package/components/tabs/index.umd.cjs +1 -1
- package/components/tags/index.esm.js +53 -53
- package/components/tags/index.umd.cjs +1 -1
- package/components/text/index.esm.js +268 -268
- package/components/text/index.umd.cjs +1 -1
- package/components/textarea/index.esm.js +420 -341
- package/components/textarea/index.umd.cjs +1 -1
- package/components/time-picker/index.css +1 -1
- package/components/time-picker/index.esm.js +1062 -981
- package/components/time-picker/index.umd.cjs +1 -1
- package/components/transfer/index.css +1 -1
- package/components/transfer/index.esm.js +381 -379
- package/components/transfer/index.umd.cjs +1 -1
- package/components/tree-grid/index.css +1 -1
- package/components/tree-grid/index.esm.js +5252 -9560
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.css +1 -0
- package/components/tree-view/index.esm.js +3920 -2692
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/uploader/index.esm.js +373 -367
- package/components/uploader/index.umd.cjs +2 -2
- package/components/verify-detail/index.esm.js +92 -92
- package/components/verify-detail/index.umd.cjs +1 -1
- package/components/video/index.esm.js +597 -417
- package/components/video/index.umd.cjs +1 -1
- package/components/weather/index.esm.js +251 -251
- package/components/weather/index.umd.cjs +4 -4
- package/farris.all.esm.js +17125 -16176
- package/farris.all.umd.cjs +8 -8
- package/index.css +1 -1
- package/package.json +1 -1
- package/types/capsule/src/capsule.props.d.ts +2 -2
- package/types/combo-list/src/components/list-container.component.d.ts +0 -3
- package/types/combo-list/src/components/list-container.props.d.ts +0 -4
- package/types/common/index.d.ts +1 -0
- package/types/common/types.d.ts +1 -1
- package/types/common/utils/encrypt.d.ts +2 -0
- package/types/component/src/component.props.d.ts +7 -0
- package/types/component/src/designer/use-designer-rules.d.ts +1 -1
- package/types/component/src/property-config/component.property-config.d.ts +9 -0
- package/types/components.d.ts +1 -0
- package/types/data-grid/index.d.ts +5 -2
- package/types/data-grid/src/data-grid.component.d.ts +2 -1
- package/types/data-grid/src/data-grid.props.d.ts +1 -0
- package/types/data-view/composition/types.d.ts +18 -1
- package/types/data-view/composition/visualization/use-virtual-scroll.d.ts +0 -15
- package/types/designer-canvas/src/composition/dg-control.d.ts +5 -0
- package/types/designer-canvas/src/composition/types.d.ts +1 -1
- package/types/dynamic-form/src/composition/use-response-form-layout-setting.d.ts +2 -0
- package/types/dynamic-form/src/designer/response-form-layout-setting.component.d.ts +8 -0
- package/types/dynamic-form/src/designer/response-form-layout-setting.props.d.ts +4 -0
- package/types/dynamic-form/src/designer/use-designer-rules.d.ts +2 -2
- package/types/dynamic-form/src/property-config/form.property-config.d.ts +9 -0
- package/types/dynamic-form/src/schema/schema-mapper.d.ts +1 -0
- package/types/dynamic-form/src/schema/schema-resolver.d.ts +1 -0
- package/types/dynamic-form/src/types.d.ts +12 -1
- package/types/dynamic-resolver/index.d.ts +1 -0
- package/types/dynamic-resolver/src/event-handler-resolver.d.ts +4 -0
- package/types/dynamic-resolver/src/types.d.ts +9 -0
- package/types/dynamic-view/index.d.ts +1 -0
- package/types/dynamic-view/src/event-dispatcher.d.ts +1 -1
- package/types/index.d.ts +2 -0
- package/types/lookup/src/components/favorite/lookup-favorite.component.d.ts +29 -0
- package/types/lookup/src/components/favorite/lookup-favorite.props.d.ts +15 -0
- package/types/lookup/src/components/modal-container.component.d.ts +25 -0
- package/types/lookup/src/components/modal-container.props.d.ts +29 -0
- package/types/lookup/src/composition/types.d.ts +8 -0
- package/types/lookup/src/composition/use-check-props.d.ts +9 -2
- package/types/lookup/src/composition/use-dialog.d.ts +5 -1
- package/types/lookup/src/composition/use-favorite.d.ts +12 -0
- package/types/lookup/src/composition/use-http.d.ts +9 -5
- package/types/lookup/src/composition/use-input-change.d.ts +3 -0
- package/types/lookup/src/composition/use-user-data.d.ts +24 -0
- package/types/lookup/src/property-config/lookup.property-config.d.ts +6 -4
- package/types/mapping-editor/src/mapping-editor.component.d.ts +3 -0
- package/types/mapping-editor/src/mapping-editor.props.d.ts +0 -1
- package/types/modal/src/composition/use-draggable.d.ts +2 -1
- package/types/modal/src/composition/use-shortcut.d.ts +6 -0
- package/types/modal/src/modal.component.d.ts +3 -0
- package/types/modal/src/modal.props.d.ts +4 -0
- package/types/page-header/src/page-header.props.d.ts +1 -0
- package/types/property-panel/src/composition/entity/base-property.d.ts +8 -0
- package/types/property-panel/src/composition/entity/input-base-property.d.ts +20 -1
- package/types/response-layout-editor/src/composition/converter/use-response-layout-editor-setting.d.ts +2 -0
- package/types/response-layout-editor/src/type.d.ts +21 -0
- package/types/tabs/src/tabs.props.d.ts +1 -0
- package/types/tree-grid/index.d.ts +8 -2
- package/types/tree-grid/src/tree-grid.component.d.ts +3 -1
- package/types/data-grid/src/designer/use-group-column.d.ts +0 -20
- package/types/modal/src/composition/use-esc.d.ts +0 -1
- package/types/response-layout-editor/src/composition/converter/response-layout-editor.converter.d.ts +0 -3
- package/types/response-layout-editor/src/composition/converter/use-convert-property-value.d.ts +0 -20
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { inject as
|
|
2
|
-
import { cloneDeep as
|
|
3
|
-
const
|
|
1
|
+
import { inject as Te, ref as v, onMounted as Ce, onUnmounted as lt, watch as K, defineComponent as Se, createVNode as T, withModifiers as F } from "vue";
|
|
2
|
+
import { isPlainObject as we, cloneDeep as ut } from "lodash-es";
|
|
3
|
+
const Ee = {}, ze = {};
|
|
4
4
|
function he(e) {
|
|
5
|
-
const { properties: i, title: r, ignore: y } = e, o = y && Array.isArray(y), t = Object.keys(i).reduce((h, g) => ((!o || !y.find((w) => w == g)) && (h[g] = i[g].type === "object" && i[g].properties ? he(i[g]) :
|
|
5
|
+
const { properties: i, title: r, ignore: y } = e, o = y && Array.isArray(y), t = Object.keys(i).reduce((h, g) => ((!o || !y.find((w) => w == g)) && (h[g] = i[g].type === "object" && i[g].properties ? he(i[g]) : ut(i[g].default)), h), {});
|
|
6
6
|
return (!o || !y.find((h) => h == "id")) && (t.id = `${r}-${Date.now()}`), t;
|
|
7
7
|
}
|
|
8
8
|
function ve(e, i = {}, r) {
|
|
9
|
-
const y =
|
|
9
|
+
const y = Ee[e];
|
|
10
10
|
if (y) {
|
|
11
11
|
let o = he(y);
|
|
12
|
-
const t =
|
|
12
|
+
const t = ze[e];
|
|
13
13
|
return o = t ? t({ getSchemaByType: ve }, o, i, r) : o, o;
|
|
14
14
|
}
|
|
15
15
|
return null;
|
|
16
16
|
}
|
|
17
|
-
function
|
|
17
|
+
function rt(e, i) {
|
|
18
18
|
const r = he(i);
|
|
19
|
-
return Object.keys(e).reduce((y, o) => (y[o] &&
|
|
19
|
+
return Object.keys(e).reduce((y, o) => (y[o] && we(y[o]) && we(e[o]) ? Object.assign(y[o], e[o]) : y[o] = e[o], y), r), r;
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function st(e, i) {
|
|
22
22
|
return Object.keys(e).filter((y) => e[y] != null).reduce((y, o) => {
|
|
23
23
|
if (i.has(o)) {
|
|
24
24
|
const t = i.get(o);
|
|
@@ -33,11 +33,11 @@ function rt(e, i) {
|
|
|
33
33
|
return y;
|
|
34
34
|
}, {});
|
|
35
35
|
}
|
|
36
|
-
function
|
|
37
|
-
const y =
|
|
38
|
-
return
|
|
36
|
+
function ot(e, i, r = /* @__PURE__ */ new Map()) {
|
|
37
|
+
const y = rt(e, i);
|
|
38
|
+
return st(y, r);
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function ct(e = {}) {
|
|
41
41
|
function i(s, x, m, n) {
|
|
42
42
|
if (typeof m == "number")
|
|
43
43
|
return n[s].length === m;
|
|
@@ -91,23 +91,23 @@ function ot(e = {}) {
|
|
|
91
91
|
}
|
|
92
92
|
return { parseValueSchema: w };
|
|
93
93
|
}
|
|
94
|
-
const
|
|
95
|
-
|
|
96
|
-
function
|
|
97
|
-
return
|
|
98
|
-
const g =
|
|
94
|
+
const ft = {}, vt = {};
|
|
95
|
+
ct();
|
|
96
|
+
function ht(e, i, r = /* @__PURE__ */ new Map(), y = (h, g, w) => g, o = {}, t = (h) => h) {
|
|
97
|
+
return Ee[i.title] = i, ze[i.title] = y, ft[i.title] = o, vt[i.title] = t, (h = {}) => {
|
|
98
|
+
const g = ot(h, i, r), w = Object.keys(e).reduce((s, x) => (s[x] = e[x].default, s), {});
|
|
99
99
|
return Object.assign(w, g);
|
|
100
100
|
};
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function gt(e, i) {
|
|
103
103
|
return { customClass: i.class, customStyle: i.style };
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function dt(e, i, r) {
|
|
106
106
|
return i;
|
|
107
107
|
}
|
|
108
|
-
const
|
|
109
|
-
["appearance",
|
|
110
|
-
]),
|
|
108
|
+
const mt = /* @__PURE__ */ new Map([
|
|
109
|
+
["appearance", gt]
|
|
110
|
+
]), pt = "https://json-schema.org/draft/2020-12/schema", yt = "https://farris-design.gitee.io/image-cropper.schema.json", xt = "image-cropper", bt = "A Farris Component", Mt = "object", wt = {
|
|
111
111
|
id: {
|
|
112
112
|
description: "The unique identifier for image-cropper",
|
|
113
113
|
type: "string"
|
|
@@ -169,18 +169,18 @@ const dt = /* @__PURE__ */ new Map([
|
|
|
169
169
|
type: "boolean",
|
|
170
170
|
default: !0
|
|
171
171
|
}
|
|
172
|
-
},
|
|
172
|
+
}, At = [
|
|
173
173
|
"id",
|
|
174
174
|
"type"
|
|
175
|
-
],
|
|
176
|
-
$schema:
|
|
177
|
-
$id:
|
|
178
|
-
title:
|
|
179
|
-
description:
|
|
180
|
-
type:
|
|
181
|
-
properties:
|
|
182
|
-
required:
|
|
183
|
-
},
|
|
175
|
+
], Tt = {
|
|
176
|
+
$schema: pt,
|
|
177
|
+
$id: yt,
|
|
178
|
+
title: xt,
|
|
179
|
+
description: bt,
|
|
180
|
+
type: Mt,
|
|
181
|
+
properties: wt,
|
|
182
|
+
required: At
|
|
183
|
+
}, Ct = "image-cropper", St = "A Farris Component", Et = "object", zt = {
|
|
184
184
|
basic: {
|
|
185
185
|
description: "Basic Infomation",
|
|
186
186
|
title: "基本信息",
|
|
@@ -233,11 +233,11 @@ const dt = /* @__PURE__ */ new Map([
|
|
|
233
233
|
}
|
|
234
234
|
}
|
|
235
235
|
}
|
|
236
|
-
},
|
|
237
|
-
title:
|
|
238
|
-
description:
|
|
239
|
-
type:
|
|
240
|
-
categories:
|
|
236
|
+
}, kt = {
|
|
237
|
+
title: Ct,
|
|
238
|
+
description: St,
|
|
239
|
+
type: Et,
|
|
240
|
+
categories: zt
|
|
241
241
|
}, ge = {
|
|
242
242
|
/** 输出图片格式 */
|
|
243
243
|
format: { type: String, default: "png" },
|
|
@@ -295,9 +295,9 @@ const dt = /* @__PURE__ */ new Map([
|
|
|
295
295
|
y2: 1e4
|
|
296
296
|
}
|
|
297
297
|
}
|
|
298
|
-
},
|
|
298
|
+
}, Ae = ht(ge, Tt, mt, dt, kt);
|
|
299
299
|
var ae = /* @__PURE__ */ ((e) => (e.Move = "move", e.Resize = "resize", e))(ae || {});
|
|
300
|
-
function
|
|
300
|
+
function Dt() {
|
|
301
301
|
function e(o) {
|
|
302
302
|
switch (typeof o == "string" && (o = i(o)), o) {
|
|
303
303
|
case 2:
|
|
@@ -361,7 +361,7 @@ function kt() {
|
|
|
361
361
|
for (let R = 0; R < h; R++)
|
|
362
362
|
for (let D = 0; D < t; D++) {
|
|
363
363
|
const j = (D + R * t) * 4, k = R * x;
|
|
364
|
-
let p = 0, f = 0, d = 0, B = 0,
|
|
364
|
+
let p = 0, f = 0, d = 0, B = 0, O = 0, C = 0, S = 0;
|
|
365
365
|
const I = Math.floor(D * s), W = Math.floor(R * x);
|
|
366
366
|
let Q = Math.ceil((D + 1) * s), G = Math.ceil((R + 1) * x);
|
|
367
367
|
Q = Math.min(Q, g), G = Math.min(G, w);
|
|
@@ -372,11 +372,11 @@ function kt() {
|
|
|
372
372
|
if (_ >= 1)
|
|
373
373
|
continue;
|
|
374
374
|
p = 2 * _ * _ * _ - 3 * _ * _ + 1;
|
|
375
|
-
const
|
|
376
|
-
S += p * $[
|
|
375
|
+
const V = 4 * (U + P * g);
|
|
376
|
+
S += p * $[V + 3], d += p, $[V + 3] < 255 && (p = p * $[V + 3] / 250), B += p * $[V], O += p * $[V + 1], C += p * $[V + 2], f += p;
|
|
377
377
|
}
|
|
378
378
|
}
|
|
379
|
-
L[j] = B / f, L[j + 1] =
|
|
379
|
+
L[j] = B / f, L[j + 1] = O / f, L[j + 2] = C / f, L[j + 3] = S / d;
|
|
380
380
|
}
|
|
381
381
|
o.width = t, o.height = h, u.putImageData(M, 0, 0);
|
|
382
382
|
}
|
|
@@ -386,7 +386,7 @@ function kt() {
|
|
|
386
386
|
getTransformationsFromExifData: e
|
|
387
387
|
};
|
|
388
388
|
}
|
|
389
|
-
function
|
|
389
|
+
function Bt(e, i, r, y) {
|
|
390
390
|
function o(n, u) {
|
|
391
391
|
e.value.x2 = e.value.x1 + (e.value.y2 - e.value.y1) * r.value, n = Math.max(e.value.x2 - i.value.width, 0), u = Math.max(0 - e.value.y1, 0), (n > 0 || u > 0) && (e.value.x2 -= u * r.value > n ? u * r.value : n, e.value.y1 += u * r.value > n ? u : n / r.value);
|
|
392
392
|
}
|
|
@@ -440,13 +440,13 @@ function Dt(e, i, r, y) {
|
|
|
440
440
|
}
|
|
441
441
|
return { checkAspectRatio: m };
|
|
442
442
|
}
|
|
443
|
-
function
|
|
444
|
-
const { resizeCanvas: r, getTransformationsFromExifData: y } =
|
|
445
|
-
let f, d, B = 0,
|
|
443
|
+
function ke(e, i) {
|
|
444
|
+
const { resizeCanvas: r, getTransformationsFromExifData: y } = Dt(), o = Te("NotifyService"), t = v(e.cropper), h = v(e.transform), g = v(e.cropperMinWidth), w = v(e.maintainAspectRatio), s = v(e.aspectRatio), x = v(e.autoCrop), m = v(e.backgroundColor), n = v(e.resizeToWidth), u = v(e.onlyScaleDown), A = v(e.containWithinAspectRatio), M = v(e.canvasRotation), $ = v(e.format), L = v(e.imageQuality), R = v(e.resizeToHeight), D = v(e.cropperMinHeight), j = v(""), k = v(!0), p = v(!0);
|
|
445
|
+
let f, d, B = 0, O, C, S;
|
|
446
446
|
const I = v(null), W = v(""), Q = v(""), G = v("0px"), P = v(), E = v({ width: 100, height: 100 }), ie = ae;
|
|
447
|
-
let ee, U = 20, N = 20, _ = !1,
|
|
448
|
-
const de = v(e.imageChangedEvent), ne = v(e.imageURL),
|
|
449
|
-
function
|
|
447
|
+
let ee, U = 20, N = 20, _ = !1, V = { rotate: 0, flip: !1 }, b = { active: !1, type: null, position: null, x1: 0, y1: 0, x2: 0, y2: 0, clientX: 0, clientY: 0 };
|
|
448
|
+
const de = v(e.imageChangedEvent), ne = v(e.imageURL), De = v(e.imageBase64), Be = v(e.imageFile);
|
|
449
|
+
function We() {
|
|
450
450
|
Q.value = "scaleX(" + (h.value.scale || 1) * (h.value.flipH ? -1 : 1) + ")scaleY(" + (h.value.scale || 1) * (h.value.flipV ? -1 : 1) + ")rotate(" + (h.value.rotate || 0) + "deg)";
|
|
451
451
|
}
|
|
452
452
|
function Y() {
|
|
@@ -471,11 +471,11 @@ function ze(e, i) {
|
|
|
471
471
|
height: 0
|
|
472
472
|
}, t.value.x1 = -100, t.value.y1 = -100, t.value.x2 = 1e4, t.value.y2 = 1e4;
|
|
473
473
|
}
|
|
474
|
-
function
|
|
474
|
+
function Le(a) {
|
|
475
475
|
return /image\/(png|jpg|jpeg|bmp|gif|tiff|webp)/.test(a);
|
|
476
476
|
}
|
|
477
|
-
function
|
|
478
|
-
if (M.value +=
|
|
477
|
+
function Pe() {
|
|
478
|
+
if (M.value += V.rotate, A.value && f.width && f.height) {
|
|
479
479
|
if (M.value % 2) {
|
|
480
480
|
const c = f.width * s.value, z = f.height / s.value;
|
|
481
481
|
return {
|
|
@@ -497,14 +497,14 @@ function ze(e, i) {
|
|
|
497
497
|
height: f.height
|
|
498
498
|
};
|
|
499
499
|
}
|
|
500
|
-
function
|
|
501
|
-
M.value +=
|
|
502
|
-
const a =
|
|
500
|
+
function $e() {
|
|
501
|
+
M.value += V.rotate;
|
|
502
|
+
const a = Pe(), l = document.createElement("canvas");
|
|
503
503
|
a.width && a.height && (l.width = a.width, l.height = a.height);
|
|
504
504
|
const c = l.getContext("2d");
|
|
505
|
-
return f.width && f.height && S && (c == null || c.setTransform(
|
|
505
|
+
return f.width && f.height && S && (c == null || c.setTransform(V.flip ? -1 : 1, 0, 0, 1, l.width / 2, l.height / 2), c == null || c.rotate(Math.PI * (M.value / 2)), c == null || c.drawImage(S, -f.width / 2, -f.height / 2)), l.toDataURL();
|
|
506
506
|
}
|
|
507
|
-
function
|
|
507
|
+
function Re(a) {
|
|
508
508
|
return new Promise((l) => {
|
|
509
509
|
ee = a, j.value = a, P.value = new Image(), P.value.onload = () => {
|
|
510
510
|
var c, z;
|
|
@@ -513,10 +513,10 @@ function ze(e, i) {
|
|
|
513
513
|
});
|
|
514
514
|
}
|
|
515
515
|
function me() {
|
|
516
|
-
if (!S || !S.complete || !
|
|
516
|
+
if (!S || !S.complete || !V)
|
|
517
517
|
return Promise.reject(new Error("No image loaded"));
|
|
518
|
-
const a =
|
|
519
|
-
return
|
|
518
|
+
const a = $e();
|
|
519
|
+
return Re(a);
|
|
520
520
|
}
|
|
521
521
|
function le(a) {
|
|
522
522
|
const l = (c) => {
|
|
@@ -528,13 +528,13 @@ function ze(e, i) {
|
|
|
528
528
|
}), k.value = !1, _ = !0, i.emit("loadImageFailed"), S = null, W.value = "";
|
|
529
529
|
};
|
|
530
530
|
S = new Image(), S.onload = () => {
|
|
531
|
-
W.value = a,
|
|
531
|
+
W.value = a, V = y(a), f.width = S == null ? void 0 : S.naturalWidth, f.height = S == null ? void 0 : S.naturalHeight, me().then(() => {
|
|
532
532
|
_ = !1;
|
|
533
533
|
}).catch(l);
|
|
534
534
|
}, S.onerror = l, S.src = a;
|
|
535
535
|
}
|
|
536
|
-
function
|
|
537
|
-
|
|
536
|
+
function _e(a, l) {
|
|
537
|
+
Le(l) ? (_ = !1, le(a)) : (o.show({
|
|
538
538
|
showCloseButton: !1,
|
|
539
539
|
timeout: 3e3,
|
|
540
540
|
animate: "fadeIn",
|
|
@@ -543,7 +543,7 @@ function ze(e, i) {
|
|
|
543
543
|
}
|
|
544
544
|
function pe(a) {
|
|
545
545
|
const l = new FileReader();
|
|
546
|
-
l.onload = (c) =>
|
|
546
|
+
l.onload = (c) => _e(c.target.result, a.type), l.readAsDataURL(a);
|
|
547
547
|
}
|
|
548
548
|
function ye(a) {
|
|
549
549
|
const l = new Image();
|
|
@@ -560,7 +560,7 @@ function ze(e, i) {
|
|
|
560
560
|
c.width = l.width, c.height = l.height, z == null || z.drawImage(l, 0, 0), le(c.toDataURL());
|
|
561
561
|
}, l.crossOrigin = "anonymous", l.src = a;
|
|
562
562
|
}
|
|
563
|
-
function
|
|
563
|
+
function He() {
|
|
564
564
|
return I.value && I.value && I.value.offsetWidth > 0;
|
|
565
565
|
}
|
|
566
566
|
function ue() {
|
|
@@ -569,16 +569,16 @@ function ze(e, i) {
|
|
|
569
569
|
E.value.width = a.offsetWidth, E.value.height = a.offsetHeight, G.value = "calc(50% - " + E.value.width / 2 + "px)";
|
|
570
570
|
}
|
|
571
571
|
}
|
|
572
|
-
function
|
|
572
|
+
function Ie() {
|
|
573
573
|
P.value && E.value.width && (U = g.value > 0 ? Math.max(20, g.value / P.value.width * E.value.width) : 20);
|
|
574
574
|
}
|
|
575
|
-
function
|
|
575
|
+
function Ue() {
|
|
576
576
|
w.value ? N = Math.max(20, U / s.value) : D.value > 0 && P.value && E.value.height ? N = Math.max(20, D.value / P.value.height * E.value.height) : N = 20;
|
|
577
577
|
}
|
|
578
578
|
function re() {
|
|
579
|
-
P.value ? (
|
|
579
|
+
P.value ? (Ie(), Ue()) : (U = 20, N = 20);
|
|
580
580
|
}
|
|
581
|
-
function
|
|
581
|
+
function Ne() {
|
|
582
582
|
const a = I.value, l = v({ x1: 0, x2: 0, y1: 0, y2: 0 });
|
|
583
583
|
if (a && d.width && d.height) {
|
|
584
584
|
const c = d.width / a.offsetWidth;
|
|
@@ -591,8 +591,8 @@ function ze(e, i) {
|
|
|
591
591
|
}
|
|
592
592
|
return l.value;
|
|
593
593
|
}
|
|
594
|
-
function
|
|
595
|
-
M.value +=
|
|
594
|
+
function je() {
|
|
595
|
+
M.value += V.rotate;
|
|
596
596
|
const a = I.value, l = v({ x1: 0, x2: 0, y1: 0, y2: 0 });
|
|
597
597
|
if (a && d.height && d.width && f.height && f.width) {
|
|
598
598
|
const c = d.width / a.offsetWidth;
|
|
@@ -606,7 +606,7 @@ function ze(e, i) {
|
|
|
606
606
|
}
|
|
607
607
|
return l.value;
|
|
608
608
|
}
|
|
609
|
-
function
|
|
609
|
+
function Oe(a, l) {
|
|
610
610
|
if (n.value > 0) {
|
|
611
611
|
if (!u.value || a > n.value)
|
|
612
612
|
return n.value / a;
|
|
@@ -617,12 +617,12 @@ function ze(e, i) {
|
|
|
617
617
|
function Ve() {
|
|
618
618
|
return Math.min(1, Math.max(0, L.value / 100));
|
|
619
619
|
}
|
|
620
|
-
function
|
|
620
|
+
function Fe(a) {
|
|
621
621
|
return a.toDataURL("image/" + $.value, Ve());
|
|
622
622
|
}
|
|
623
|
-
function
|
|
623
|
+
function qe() {
|
|
624
624
|
if (I.value && I.value && P.value != null) {
|
|
625
|
-
const a =
|
|
625
|
+
const a = Ne(), l = a.x2 - a.x1, c = a.y2 - a.y1, z = document.createElement("canvas");
|
|
626
626
|
z.width = l, z.height = c;
|
|
627
627
|
const H = z.getContext("2d");
|
|
628
628
|
if (H) {
|
|
@@ -635,15 +635,15 @@ function ze(e, i) {
|
|
|
635
635
|
imagePosition: a,
|
|
636
636
|
cropperPosition: { ...t.value }
|
|
637
637
|
};
|
|
638
|
-
A.value && (q.offsetImagePosition =
|
|
639
|
-
const X =
|
|
640
|
-
return X !== 1 && (q.width = Math.round(l * X), q.height = w.value ? Math.round(q.width / s.value) : Math.round(c * X), r(z, q.width, q.height)), q.base64 =
|
|
638
|
+
A.value && (q.offsetImagePosition = je());
|
|
639
|
+
const X = Oe(l, c);
|
|
640
|
+
return X !== 1 && (q.width = Math.round(l * X), q.height = w.value ? Math.round(q.width / s.value) : Math.round(c * X), r(z, q.width, q.height)), q.base64 = Fe(z), i.emit("imageCropped", q), q;
|
|
641
641
|
}
|
|
642
642
|
}
|
|
643
643
|
return null;
|
|
644
644
|
}
|
|
645
645
|
function te() {
|
|
646
|
-
x.value &&
|
|
646
|
+
x.value && qe();
|
|
647
647
|
}
|
|
648
648
|
function xe() {
|
|
649
649
|
const a = I.value;
|
|
@@ -668,26 +668,26 @@ function ze(e, i) {
|
|
|
668
668
|
timeout: 3e3,
|
|
669
669
|
animate: "fadeIn",
|
|
670
670
|
toasts: [{ type: "string", title: "提示", msg: "图片加载超时,请重试" }]
|
|
671
|
-
}), _ = !0, k.value = !1, i.emit("loadImageFailed")) :
|
|
671
|
+
}), _ = !0, k.value = !1, i.emit("loadImageFailed")) : He() ? (_ = !1, ue(), re(), xe(), i.emit("cropperReady", { ...E.value })) : (B++, setTimeout(() => be(), 50));
|
|
672
672
|
}
|
|
673
|
-
function
|
|
673
|
+
function Qe() {
|
|
674
674
|
P.value != null && (k.value = !1, i.emit("imageLoaded"), B = 0, setTimeout(() => be()));
|
|
675
675
|
}
|
|
676
|
-
function
|
|
676
|
+
function Je() {
|
|
677
677
|
const a = I.value;
|
|
678
678
|
(E.value.width !== (a == null ? void 0 : a.offsetWidth) || E.value.height !== (a == null ? void 0 : a.offsetHeight)) && E.value.width && E.value.height && a && (t.value.x1 = t.value.x1 * a.offsetWidth / E.value.width, t.value.x2 = t.value.x2 * a.offsetWidth / E.value.width, t.value.y1 = t.value.y1 * a.offsetHeight / E.value.height, t.value.y2 = t.value.y2 * a.offsetHeight / E.value.height);
|
|
679
679
|
}
|
|
680
|
-
const
|
|
681
|
-
|
|
680
|
+
const Ge = () => {
|
|
681
|
+
Je(), ue(), re();
|
|
682
682
|
}, Me = () => {
|
|
683
|
-
clearTimeout(C), C = setTimeout(
|
|
683
|
+
clearTimeout(C), C = setTimeout(Ge, 300);
|
|
684
684
|
};
|
|
685
|
-
|
|
685
|
+
Ce(() => {
|
|
686
686
|
window.addEventListener("resize", Me), ne.value && (Y(), k.value = !0, ye(ne.value));
|
|
687
|
-
}),
|
|
687
|
+
}), lt(() => {
|
|
688
688
|
window.removeEventListener("resize", Me);
|
|
689
689
|
});
|
|
690
|
-
function
|
|
690
|
+
function Ze() {
|
|
691
691
|
b.active && (b.active = !1, te());
|
|
692
692
|
}
|
|
693
693
|
function se(a) {
|
|
@@ -696,7 +696,7 @@ function ze(e, i) {
|
|
|
696
696
|
function oe(a) {
|
|
697
697
|
return (a.touches && a.touches[0] ? a.touches[0].clientY : a.clientY) || 0;
|
|
698
698
|
}
|
|
699
|
-
function
|
|
699
|
+
function Ye(a, l, c = null) {
|
|
700
700
|
b && b.active || (a.preventDefault && a.preventDefault(), b = {
|
|
701
701
|
active: !0,
|
|
702
702
|
type: l,
|
|
@@ -709,12 +709,12 @@ function ze(e, i) {
|
|
|
709
709
|
function ce(a = !1) {
|
|
710
710
|
t.value.x1 < 0 && (t.value.x2 -= a ? t.value.x1 : 0, t.value.x1 = 0), t.value.y1 < 0 && (t.value.y2 -= a ? t.value.y1 : 0, t.value.y1 = 0), t.value.x2 > E.value.width && (t.value.x1 -= a ? t.value.x2 - E.value.width : 0, t.value.x2 = E.value.width), t.value.y2 > E.value.height && (t.value.y1 -= a ? t.value.y2 - E.value.height : 0, t.value.y2 = E.value.height);
|
|
711
711
|
}
|
|
712
|
-
function
|
|
712
|
+
function Xe(a) {
|
|
713
713
|
const l = se(a) - b.clientX, c = oe(a) - b.clientY;
|
|
714
714
|
t.value.x1 = b.x1 + l, t.value.y1 = b.y1 + c, t.value.x2 = b.x2 + l, t.value.y2 = b.y2 + c;
|
|
715
715
|
}
|
|
716
|
-
const { checkAspectRatio:
|
|
717
|
-
function
|
|
716
|
+
const { checkAspectRatio: Ke } = Bt(t, E, s, b);
|
|
717
|
+
function et(a) {
|
|
718
718
|
const l = se(a) - b.clientX, c = oe(a) - b.clientY;
|
|
719
719
|
switch (b.position) {
|
|
720
720
|
case "left":
|
|
@@ -746,11 +746,11 @@ function ze(e, i) {
|
|
|
746
746
|
t.value.x1 = Math.min(b.clientX - H / 2, t.value.x2 - U), t.value.y1 = Math.min(b.clientY - J / 2, t.value.y2 - N), t.value.x2 = Math.max(b.clientX + H / 2, Z + U), t.value.y2 = Math.max(b.clientY + J / 2, q + N);
|
|
747
747
|
break;
|
|
748
748
|
}
|
|
749
|
-
w.value &&
|
|
749
|
+
w.value && Ke();
|
|
750
750
|
}
|
|
751
|
-
function
|
|
752
|
-
b && b.active && (a.stopPropagation && a.stopPropagation(), a.preventDefault && a.preventDefault(), clearTimeout(
|
|
753
|
-
b.type === ae.Move ? (
|
|
751
|
+
function tt(a) {
|
|
752
|
+
b && b.active && (a.stopPropagation && a.stopPropagation(), a.preventDefault && a.preventDefault(), clearTimeout(O), O = setTimeout(() => {
|
|
753
|
+
b.type === ae.Move ? (Xe(a), ce(!0)) : b.type === ae.Resize && (et(a), ce(!1));
|
|
754
754
|
}, 300));
|
|
755
755
|
}
|
|
756
756
|
return K(de, (a) => {
|
|
@@ -762,9 +762,9 @@ function ze(e, i) {
|
|
|
762
762
|
animate: "fadeIn",
|
|
763
763
|
toasts: [{ type: "string", title: "提示", msg: "图片路径为空" }]
|
|
764
764
|
}), k.value = !1, _ = !0);
|
|
765
|
-
}), K(ke, (a) => {
|
|
766
|
-
Y(), k.value = !0, le(a);
|
|
767
765
|
}), K(De, (a) => {
|
|
766
|
+
Y(), k.value = !0, le(a);
|
|
767
|
+
}), K(Be, (a) => {
|
|
768
768
|
Y(), a && (k.value = !0, pe(a));
|
|
769
769
|
}), K(
|
|
770
770
|
() => [
|
|
@@ -775,8 +775,8 @@ function ze(e, i) {
|
|
|
775
775
|
e.transform,
|
|
776
776
|
e.imageChangedEvent
|
|
777
777
|
],
|
|
778
|
-
([a, l, c, z, H, J], [Z, q, X,
|
|
779
|
-
S && S.complete &&
|
|
778
|
+
([a, l, c, z, H, J], [Z, q, X, at, it, nt]) => {
|
|
779
|
+
S && S.complete && V && (a !== Z || l !== q) && me(), c !== X && (ue(), re(), ce(!1), te()), z !== at && p.value && xe(), H !== it && (We(), te()), J !== nt && (de.value = J);
|
|
780
780
|
}
|
|
781
781
|
), {
|
|
782
782
|
uploadError: _,
|
|
@@ -790,13 +790,13 @@ function ze(e, i) {
|
|
|
790
790
|
marginLeft: G,
|
|
791
791
|
moveTypes: ie,
|
|
792
792
|
isLoading: k,
|
|
793
|
-
startMove:
|
|
794
|
-
imageLoadedInView:
|
|
795
|
-
moveStop:
|
|
796
|
-
moveImg:
|
|
793
|
+
startMove: Ye,
|
|
794
|
+
imageLoadedInView: Qe,
|
|
795
|
+
moveStop: Ze,
|
|
796
|
+
moveImg: tt
|
|
797
797
|
};
|
|
798
798
|
}
|
|
799
|
-
const fe = /* @__PURE__ */
|
|
799
|
+
const fe = /* @__PURE__ */ Se({
|
|
800
800
|
name: "FImageCropper",
|
|
801
801
|
props: ge,
|
|
802
802
|
emits: ["imageCropped", "imageLoaded", "cropperReady", "loadImageFailed"],
|
|
@@ -817,7 +817,7 @@ const fe = /* @__PURE__ */ Ce({
|
|
|
817
817
|
imageLoadedInView: j,
|
|
818
818
|
moveStop: k,
|
|
819
819
|
moveImg: p
|
|
820
|
-
} =
|
|
820
|
+
} = ke(e, i);
|
|
821
821
|
function f(C) {
|
|
822
822
|
return T("span", {
|
|
823
823
|
class: `farris-image-cropper-resize-bar ${C}`,
|
|
@@ -836,7 +836,7 @@ const fe = /* @__PURE__ */ Ce({
|
|
|
836
836
|
class: "farris-image-cropper-square"
|
|
837
837
|
}, null)])]);
|
|
838
838
|
}
|
|
839
|
-
const B = ["top", "right", "bottom", "left"].map((C) => f(C)),
|
|
839
|
+
const B = ["top", "right", "bottom", "left"].map((C) => f(C)), O = ["topleft", "topright", "bottomright", "bottomleft"].map((C) => d(C));
|
|
840
840
|
return () => T("div", {
|
|
841
841
|
class: ["farris-image-cropper-frame", {
|
|
842
842
|
"farris-image-cropper-disabled": h.value
|
|
@@ -895,7 +895,7 @@ const fe = /* @__PURE__ */ Ce({
|
|
|
895
895
|
}, [T("div", {
|
|
896
896
|
class: "farris-image-cropper-move",
|
|
897
897
|
onMousedown: F((C) => D(C, L.Move, "topleft"), ["prevent"])
|
|
898
|
-
}, null), !o.value && T("div", null, [
|
|
898
|
+
}, null), !o.value && T("div", null, [O, B])])]), R.value && T("div", {
|
|
899
899
|
class: "farris-image-cropper-loading"
|
|
900
900
|
}, [T("div", {
|
|
901
901
|
class: "farris-image-cropper-loading-spinner"
|
|
@@ -904,7 +904,7 @@ const fe = /* @__PURE__ */ Ce({
|
|
|
904
904
|
}, [t.value])]);
|
|
905
905
|
}
|
|
906
906
|
});
|
|
907
|
-
function
|
|
907
|
+
function Wt(e, i, r) {
|
|
908
908
|
var k;
|
|
909
909
|
function y() {
|
|
910
910
|
}
|
|
@@ -946,13 +946,13 @@ function Bt(e, i, r) {
|
|
|
946
946
|
function L(p, f) {
|
|
947
947
|
const { componentType: d } = p;
|
|
948
948
|
let B = ve(d, p, f);
|
|
949
|
-
const
|
|
950
|
-
return B && !B.id && B.type === d && (B.id = `${
|
|
949
|
+
const O = d.toLowerCase().replace("-", "_");
|
|
950
|
+
return B && !B.id && B.type === d && (B.id = `${O}_${Math.random().toString().slice(2, 6)}`), B;
|
|
951
951
|
}
|
|
952
952
|
function R(p, f) {
|
|
953
|
-
const d = String(p.getAttribute("data-controltype")), B = p.getAttribute("data-feature"),
|
|
954
|
-
|
|
955
|
-
let C = ve(d,
|
|
953
|
+
const d = String(p.getAttribute("data-controltype")), B = p.getAttribute("data-feature"), O = B ? JSON.parse(B) : {};
|
|
954
|
+
O.parentComponentInstance = h.value;
|
|
955
|
+
let C = ve(d, O);
|
|
956
956
|
const S = d.toLowerCase().replace("-", "_");
|
|
957
957
|
return C && !C.id && C.type === d && (C.id = `${S}_${Math.random().toString().slice(2, 6)}`), C;
|
|
958
958
|
}
|
|
@@ -986,7 +986,7 @@ function Bt(e, i, r) {
|
|
|
986
986
|
triggerBelongedComponentToDeleteWhenDeleted: v(!1)
|
|
987
987
|
}, h;
|
|
988
988
|
}
|
|
989
|
-
const
|
|
989
|
+
const Lt = /* @__PURE__ */ Se({
|
|
990
990
|
name: "FImageCropperDesign",
|
|
991
991
|
props: ge,
|
|
992
992
|
emits: ["imageCropped", "imageLoaded", "cropperReady", "loadImageFailed"],
|
|
@@ -1007,11 +1007,11 @@ const Wt = /* @__PURE__ */ Ce({
|
|
|
1007
1007
|
imageLoadedInView: j,
|
|
1008
1008
|
moveStop: k,
|
|
1009
1009
|
moveImg: p
|
|
1010
|
-
} =
|
|
1011
|
-
|
|
1010
|
+
} = ke(e, i), f = v(), d = Te("design-item-context"), B = Wt(f, d);
|
|
1011
|
+
Ce(() => {
|
|
1012
1012
|
f.value.componentInstance = B;
|
|
1013
1013
|
}), i.expose(B.value);
|
|
1014
|
-
function
|
|
1014
|
+
function O(W) {
|
|
1015
1015
|
return T("span", {
|
|
1016
1016
|
class: `farris-image-cropper-resize-bar ${W}`,
|
|
1017
1017
|
onMousedown: F((Q) => D(Q, L.Resize, W), ["prevent"])
|
|
@@ -1029,7 +1029,7 @@ const Wt = /* @__PURE__ */ Ce({
|
|
|
1029
1029
|
class: "farris-image-cropper-square"
|
|
1030
1030
|
}, null)])]);
|
|
1031
1031
|
}
|
|
1032
|
-
const S = ["top", "right", "bottom", "left"].map((W) =>
|
|
1032
|
+
const S = ["top", "right", "bottom", "left"].map((W) => O(W)), I = ["topleft", "topright", "bottomright", "bottomleft"].map((W) => C(W));
|
|
1033
1033
|
return () => T("div", {
|
|
1034
1034
|
ref: f,
|
|
1035
1035
|
class: ["farris-image-cropper-frame", {
|
|
@@ -1097,20 +1097,20 @@ const Wt = /* @__PURE__ */ Ce({
|
|
|
1097
1097
|
class: "farris-image-cropper-error"
|
|
1098
1098
|
}, [t.value])]);
|
|
1099
1099
|
}
|
|
1100
|
-
}),
|
|
1100
|
+
}), Rt = {
|
|
1101
1101
|
install(e) {
|
|
1102
1102
|
e.component(fe.name, fe);
|
|
1103
1103
|
},
|
|
1104
1104
|
register(e, i, r, y) {
|
|
1105
|
-
e["image-cropper"] = fe, i["image-cropper"] =
|
|
1105
|
+
e["image-cropper"] = fe, i["image-cropper"] = Ae;
|
|
1106
1106
|
},
|
|
1107
1107
|
registerDesigner(e, i, r) {
|
|
1108
|
-
e["image-cropper"] =
|
|
1108
|
+
e["image-cropper"] = Lt, i["image-cropper"] = Ae;
|
|
1109
1109
|
}
|
|
1110
1110
|
};
|
|
1111
1111
|
export {
|
|
1112
1112
|
fe as ImageCropper,
|
|
1113
|
-
|
|
1113
|
+
Rt as default,
|
|
1114
1114
|
ge as imageCropperProps,
|
|
1115
|
-
|
|
1115
|
+
Ae as propsResolver
|
|
1116
1116
|
};
|