iking-web-ui-pro 0.3.2 → 0.3.4
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/IkApprovalProcessDetail/ik.index.es.js +21 -15
- package/dist/IkApprovalProcessDetail/iking-web-ui-pro.css +1 -1
- package/dist/IkBaseDialog/ik.index.es.js +38 -34
- package/dist/IkBaseDialog/iking-web-ui-pro.css +1 -1
- package/dist/IkBtnSetting/ik.index.es.js +45 -40
- package/dist/IkBtnSetting/iking-web-ui-pro.css +1 -1
- package/dist/IkCalendar/ik.index.es.js +10320 -10322
- package/dist/IkCollapseCard/ik.index.es.js +53 -48
- package/dist/IkCollapseCard/iking-web-ui-pro.css +1 -1
- package/dist/IkDescription/ik.index.es.js +21 -15
- package/dist/IkDescription/iking-web-ui-pro.css +1 -1
- package/dist/IkDetailPreviewFiles/ik.index.es.js +21 -15
- package/dist/IkDetailPreviewFiles/iking-web-ui-pro.css +1 -1
- package/dist/IkEmpty/ik.index.es.js +7 -7
- package/dist/IkEmpty/iking-web-ui-pro.css +1 -1
- package/dist/IkExpandCollapse/ik.index.es.js +69 -64
- package/dist/IkExpandCollapse/iking-web-ui-pro.css +1 -1
- package/dist/IkFullCalendar/ik.index.es.js +12 -9334
- package/dist/IkIconPicker/ik.index.es.js +189 -177
- package/dist/IkIconPicker/iking-web-ui-pro.css +1 -1
- package/dist/IkMonacoEditor/ik.index.es.js +67 -62
- package/dist/IkMonacoEditor/iking-web-ui-pro.css +1 -1
- package/dist/IkPageFull/ik.index.es.js +132 -127
- package/dist/IkPageFull/iking-web-ui-pro.css +1 -1
- package/dist/IkPreviewFile/ik.index.es.js +21 -15
- package/dist/IkPreviewFile/iking-web-ui-pro.css +1 -1
- package/dist/IkPreviewFileDialog/ik.index.es.js +55 -51
- package/dist/IkPreviewFileDialog/iking-web-ui-pro.css +1 -1
- package/dist/IkSchedule/ik.index.es.js +390 -9681
- package/dist/IkSchedule/iking-web-ui-pro.css +1 -1
- package/dist/IkSelectTag/ik.index.es.js +83 -82
- package/dist/IkSelectTag/iking-web-ui-pro.css +1 -1
- package/dist/IkSideText/ik.index.es.js +70 -65
- package/dist/IkSideText/iking-web-ui-pro.css +1 -1
- package/dist/IkStatuOver/ik.index.es.js +68 -67
- package/dist/IkStatuOver/iking-web-ui-pro.css +1 -1
- package/dist/IkSvgIcon/ik.index.es.js +63 -58
- package/dist/IkSvgIcon/iking-web-ui-pro.css +1 -1
- package/dist/IkTree/ik.index.es.js +7 -7
- package/dist/IkTree/iking-web-ui-pro.css +1 -1
- package/dist/IkUploadFile/ik.index.es.js +76 -72
- package/dist/IkUploadFile/iking-web-ui-pro.css +1 -1
- package/dist/IkUploadImage/ik.index.es.js +188 -188
- package/dist/IkUploadImage/iking-web-ui-pro.css +1 -1
- package/dist/IkVerticalStepBar/ik.index.es.js +106 -101
- package/dist/IkVerticalStepBar/iking-web-ui-pro.css +1 -1
- package/dist/iking-web-ui-pro.css +2 -2
- package/dist/index.es.js +23272 -23459
- package/dist/index.umd.js +110 -110
- package/dist/src/components/IkFullCalendar/index.d.ts +1 -63
- package/dist/src/components/IkFullCalendar/src/IkFullCalendar.vue.d.ts +2 -0
- package/dist/src/components/IkMonacoEditor/index.d.ts +12 -0
- package/dist/src/components/IkMonacoEditor/src/index.vue.d.ts +12 -0
- package/dist/src/components/IkSchedule/index.d.ts +12 -12
- package/dist/src/components/IkSvgIcon/index.d.ts +12 -0
- package/dist/src/components/IkSvgIcon/src/index.vue.d.ts +8 -0
- package/package.json +1 -1
- package/dist/Demo/ik.index.umd.js +0 -1
- package/dist/IkApprovalProcess/ik.index.umd.js +0 -1
- package/dist/IkApprovalProcessDetail/ik.index.umd.js +0 -226
- package/dist/IkAutoCard/ik.index.umd.js +0 -1
- package/dist/IkBaseDialog/ik.index.umd.js +0 -1
- package/dist/IkBottomOperate/ik.index.umd.js +0 -1
- package/dist/IkBtnContent/ik.index.umd.js +0 -1
- package/dist/IkBtnSetting/ik.index.umd.js +0 -1
- package/dist/IkCalendar/ik.index.umd.js +0 -1
- package/dist/IkCollapseCard/ik.index.umd.js +0 -1
- package/dist/IkCurrencyInput/ik.index.umd.js +0 -1
- package/dist/IkDescription/ik.index.umd.js +0 -226
- package/dist/IkDetailPreviewFiles/ik.index.umd.js +0 -226
- package/dist/IkDragList/ik.index.umd.js +0 -1
- package/dist/IkEmpty/ik.index.umd.js +0 -1
- package/dist/IkExpandCollapse/ik.index.umd.js +0 -1
- package/dist/IkFileIcon/ik.index.umd.js +0 -1
- package/dist/IkFullCalendar/ik.index.umd.js +0 -1
- package/dist/IkFullCalendar/iking-web-ui-pro.css +0 -1
- package/dist/IkHorizontalStepBar/ik.index.umd.js +0 -1
- package/dist/IkIconPicker/ik.index.umd.js +0 -1
- package/dist/IkImageEditor/ik.index.umd.js +0 -1
- package/dist/IkImageUploadEditor/ik.index.umd.js +0 -37
- package/dist/IkImageViewer/ik.index.umd.js +0 -1
- package/dist/IkMonacoEditor/ik.index.umd.js +0 -11
- package/dist/IkOnlyOffice/ik.index.umd.js +0 -1
- package/dist/IkPage/ik.index.umd.js +0 -1
- package/dist/IkPageFull/ik.index.umd.js +0 -17
- package/dist/IkPageTabs/ik.index.umd.js +0 -1
- package/dist/IkPickerUser/ik.index.umd.js +0 -1
- package/dist/IkPlayer/ik.index.umd.js +0 -226
- package/dist/IkPreviewFile/ik.index.umd.js +0 -226
- package/dist/IkPreviewFileDialog/ik.index.umd.js +0 -226
- package/dist/IkPrintConfig/ik.index.umd.js +0 -1
- package/dist/IkPrintView/ik.index.umd.js +0 -1
- package/dist/IkRadioGroup/ik.index.umd.js +0 -1
- package/dist/IkSchedule/ik.index.umd.js +0 -1
- package/dist/IkSearch/ik.index.umd.js +0 -26
- package/dist/IkSearchHead/ik.index.umd.js +0 -1
- package/dist/IkSelectTag/ik.index.umd.js +0 -1
- package/dist/IkSideText/ik.index.umd.js +0 -1
- package/dist/IkStatu/ik.index.umd.js +0 -1
- package/dist/IkStatuOver/ik.index.umd.js +0 -1
- package/dist/IkSvgIcon/ik.index.umd.js +0 -1
- package/dist/IkTaskResume/ik.index.umd.js +0 -1
- package/dist/IkTemplateOfficeConfig/ik.index.umd.js +0 -1
- package/dist/IkTinymce/ik.index.umd.js +0 -90
- package/dist/IkTooltip/ik.index.umd.js +0 -1
- package/dist/IkTree/ik.index.umd.js +0 -1
- package/dist/IkUploadFile/ik.index.umd.js +0 -226
- package/dist/IkUploadImage/ik.index.umd.js +0 -1
- package/dist/IkVerticalStepBar/ik.index.umd.js +0 -9
- package/dist/Provider/ik.index.umd.js +0 -1
- package/dist/src/components/IkFullCalendar/src/ik-full-calendar.d.ts +0 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
.row-title[data-v-
|
|
1
|
+
.row-title[data-v-64b61696]{display:flex}.ik-svg-icon.ik-icon-span[data-v-64b61696]:not(:first-child){margin-left:var(--ik-margin-s-8)}.icon-picker-pop .icon-list[data-v-6fccdcf9]{display:grid;grid-template-columns:repeat(auto-fill,36px);grid-gap:var(--ik-margin-s-16);justify-content:flex-start;justify-items:flex-end;max-height:400px;margin-top:16px;overflow-y:auto;font-size:25px}.icon-picker-header{position:relative;display:inline-flex;display:flex;align-items:center;justify-content:center;width:var(--ik-base-height);height:var(--ik-base-height);cursor:pointer;border:1px dashed var(--ik-color-divider);border-radius:var(--ik-border-radius-xs);transition:border .25s ease-in-out}.icon-picker-header:hover{border-color:var(--ik-color-primary)}.icon-picker-header .icon-delete{position:absolute;top:-6px;right:-8px;font-size:var(--ik-font-size-t2)}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as Q, computed as
|
|
2
|
-
import { paramType as
|
|
1
|
+
import { defineComponent as Q, computed as T, resolveComponent as P, openBlock as s, createElementBlock as d, Fragment as Z, normalizeClass as m, normalizeStyle as O, createElementVNode as b, createBlock as D, withCtx as N, createTextVNode as ue, toDisplayString as ce, ref as V, watch as se, onMounted as de, nextTick as W, onUnmounted as fe, createVNode as q, createCommentVNode as ge } from "vue";
|
|
2
|
+
import { paramType as E, ikColor as me, buildUUID as ve, _ as pe, ikDom as he } from "iking-utils-pro";
|
|
3
3
|
import { ElMessage as ye } from "element-plus";
|
|
4
|
-
const
|
|
4
|
+
const ee = (e, n) => (e.install = (r) => {
|
|
5
5
|
for (const t of [e, ...Object.values({})])
|
|
6
6
|
r.component(t.name, t);
|
|
7
7
|
}, e);
|
|
@@ -13,7 +13,7 @@ function be(e, n, r) {
|
|
|
13
13
|
writable: !0
|
|
14
14
|
}) : e[n] = r, e;
|
|
15
15
|
}
|
|
16
|
-
function
|
|
16
|
+
function x(e, n) {
|
|
17
17
|
var r = Object.keys(e);
|
|
18
18
|
if (Object.getOwnPropertySymbols) {
|
|
19
19
|
var t = Object.getOwnPropertySymbols(e);
|
|
@@ -26,9 +26,9 @@ function q(e, n) {
|
|
|
26
26
|
function H(e) {
|
|
27
27
|
for (var n = 1; n < arguments.length; n++) {
|
|
28
28
|
var r = arguments[n] != null ? arguments[n] : {};
|
|
29
|
-
n % 2 ?
|
|
29
|
+
n % 2 ? x(Object(r), !0).forEach(function(t) {
|
|
30
30
|
be(e, t, r[t]);
|
|
31
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) :
|
|
31
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : x(Object(r)).forEach(function(t) {
|
|
32
32
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(r, t));
|
|
33
33
|
});
|
|
34
34
|
}
|
|
@@ -92,7 +92,7 @@ function Ie() {
|
|
|
92
92
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
93
93
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function $e(e, n, r) {
|
|
96
96
|
return n in e ? Object.defineProperty(e, n, {
|
|
97
97
|
value: r,
|
|
98
98
|
enumerable: !0,
|
|
@@ -114,14 +114,14 @@ function K(e) {
|
|
|
114
114
|
for (var n = 1; n < arguments.length; n++) {
|
|
115
115
|
var r = arguments[n] != null ? arguments[n] : {};
|
|
116
116
|
n % 2 ? R(Object(r), !0).forEach(function(t) {
|
|
117
|
-
|
|
117
|
+
$e(e, t, r[t]);
|
|
118
118
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : R(Object(r)).forEach(function(t) {
|
|
119
119
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(r, t));
|
|
120
120
|
});
|
|
121
121
|
}
|
|
122
122
|
return e;
|
|
123
123
|
}
|
|
124
|
-
function
|
|
124
|
+
function Te() {
|
|
125
125
|
for (var e = arguments.length, n = new Array(e), r = 0; r < e; r++)
|
|
126
126
|
n[r] = arguments[r];
|
|
127
127
|
return function(t) {
|
|
@@ -166,13 +166,13 @@ function ze(e) {
|
|
|
166
166
|
return !j(n);
|
|
167
167
|
}) && v("handlersType");
|
|
168
168
|
}
|
|
169
|
-
function
|
|
169
|
+
function Ee(e) {
|
|
170
170
|
e || v("initialIsRequired"), M(e) || v("initialType"), Pe(e) && v("initialContent");
|
|
171
171
|
}
|
|
172
|
-
function
|
|
172
|
+
function Ae(e, n) {
|
|
173
173
|
throw new Error(e[n] || e.default);
|
|
174
174
|
}
|
|
175
|
-
var
|
|
175
|
+
var _e = {
|
|
176
176
|
initialIsRequired: "initial state is required",
|
|
177
177
|
initialType: "initial state should be an object",
|
|
178
178
|
initialContent: "initial state shouldn't be an empty object",
|
|
@@ -182,26 +182,26 @@ var Ae = {
|
|
|
182
182
|
changeType: "provided value of changes should be an object",
|
|
183
183
|
changeField: 'it seams you want to change a field in the state which is not specified in the "initial" state',
|
|
184
184
|
default: "an unknown error accured in `state-local` package"
|
|
185
|
-
}, v = S(
|
|
185
|
+
}, v = S(Ae)(_e), $ = {
|
|
186
186
|
changes: Me,
|
|
187
187
|
selector: Be,
|
|
188
188
|
handler: ze,
|
|
189
|
-
initial:
|
|
189
|
+
initial: Ee
|
|
190
190
|
};
|
|
191
191
|
function Fe(e) {
|
|
192
192
|
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
193
|
-
|
|
193
|
+
$.initial(e), $.handler(n);
|
|
194
194
|
var r = {
|
|
195
195
|
current: e
|
|
196
|
-
}, t = S(Ve)(r, n), o = S(Le)(r), a = S(
|
|
196
|
+
}, t = S(Ve)(r, n), o = S(Le)(r), a = S($.changes)(e), l = S(Ne)(r);
|
|
197
197
|
function c() {
|
|
198
198
|
var g = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : function(w) {
|
|
199
199
|
return w;
|
|
200
200
|
};
|
|
201
|
-
return
|
|
201
|
+
return $.selector(g), g(r.current);
|
|
202
202
|
}
|
|
203
203
|
function u(g) {
|
|
204
|
-
|
|
204
|
+
Te(t, o, a, l)(g);
|
|
205
205
|
}
|
|
206
206
|
return [c, u];
|
|
207
207
|
}
|
|
@@ -219,12 +219,12 @@ function Ve(e, n, r) {
|
|
|
219
219
|
}
|
|
220
220
|
var We = {
|
|
221
221
|
create: Fe
|
|
222
|
-
},
|
|
222
|
+
}, qe = {
|
|
223
223
|
paths: {
|
|
224
224
|
vs: "https://cdn.jsdelivr.net/npm/monaco-editor@0.43.0/min/vs"
|
|
225
225
|
}
|
|
226
226
|
};
|
|
227
|
-
function
|
|
227
|
+
function xe(e) {
|
|
228
228
|
return function n() {
|
|
229
229
|
for (var r = this, t = arguments.length, o = new Array(t), a = 0; a < t; a++)
|
|
230
230
|
o[a] = arguments[a];
|
|
@@ -246,12 +246,12 @@ function Ue(e) {
|
|
|
246
246
|
}) : e;
|
|
247
247
|
}
|
|
248
248
|
function Re() {
|
|
249
|
-
console.warn(
|
|
249
|
+
console.warn(te.deprecation);
|
|
250
250
|
}
|
|
251
251
|
function Ke(e, n) {
|
|
252
252
|
throw new Error(e[n] || e.default);
|
|
253
253
|
}
|
|
254
|
-
var
|
|
254
|
+
var te = {
|
|
255
255
|
configIsRequired: "the configuration object is required",
|
|
256
256
|
configType: "the configuration object should be an object",
|
|
257
257
|
default: "an unknown error accured in `@monaco-editor/loader` package",
|
|
@@ -265,7 +265,7 @@ var ne = {
|
|
|
265
265
|
|
|
266
266
|
For more please check the link https://github.com/suren-atoyan/monaco-loader#config
|
|
267
267
|
`
|
|
268
|
-
}, Y =
|
|
268
|
+
}, Y = xe(Ke)(te), Ye = {
|
|
269
269
|
config: Ue
|
|
270
270
|
}, Xe = function() {
|
|
271
271
|
for (var n = arguments.length, r = new Array(n), t = 0; t < n; t++)
|
|
@@ -276,16 +276,16 @@ var ne = {
|
|
|
276
276
|
}, o);
|
|
277
277
|
};
|
|
278
278
|
};
|
|
279
|
-
function
|
|
279
|
+
function ne(e, n) {
|
|
280
280
|
return Object.keys(n).forEach(function(r) {
|
|
281
|
-
n[r] instanceof Object && e[r] && Object.assign(n[r],
|
|
281
|
+
n[r] instanceof Object && e[r] && Object.assign(n[r], ne(e[r], n[r]));
|
|
282
282
|
}), H(H({}, e), n);
|
|
283
283
|
}
|
|
284
284
|
var Ge = {
|
|
285
285
|
type: "cancelation",
|
|
286
286
|
msg: "operation is manually canceled"
|
|
287
287
|
};
|
|
288
|
-
function
|
|
288
|
+
function A(e) {
|
|
289
289
|
var n = !1, r = new Promise(function(t, o) {
|
|
290
290
|
e.then(function(a) {
|
|
291
291
|
return n ? o(Ge) : t(a);
|
|
@@ -296,17 +296,17 @@ function E(e) {
|
|
|
296
296
|
}, r;
|
|
297
297
|
}
|
|
298
298
|
var Je = We.create({
|
|
299
|
-
config:
|
|
299
|
+
config: qe,
|
|
300
300
|
isInitialized: !1,
|
|
301
301
|
resolve: null,
|
|
302
302
|
reject: null,
|
|
303
303
|
monaco: null
|
|
304
|
-
}),
|
|
304
|
+
}), re = ke(Je, 2), C = re[0], B = re[1];
|
|
305
305
|
function Qe(e) {
|
|
306
306
|
var n = Ye.config(e), r = n.monaco, t = Oe(n, ["monaco"]);
|
|
307
307
|
B(function(o) {
|
|
308
308
|
return {
|
|
309
|
-
config:
|
|
309
|
+
config: ne(o.config, t),
|
|
310
310
|
monaco: r
|
|
311
311
|
};
|
|
312
312
|
});
|
|
@@ -324,12 +324,12 @@ function Ze() {
|
|
|
324
324
|
if (B({
|
|
325
325
|
isInitialized: !0
|
|
326
326
|
}), e.monaco)
|
|
327
|
-
return e.resolve(e.monaco),
|
|
327
|
+
return e.resolve(e.monaco), A(_);
|
|
328
328
|
if (window.monaco && window.monaco.editor)
|
|
329
|
-
return
|
|
329
|
+
return oe(window.monaco), e.resolve(window.monaco), A(_);
|
|
330
330
|
Xe(et, nt)(rt);
|
|
331
331
|
}
|
|
332
|
-
return
|
|
332
|
+
return A(_);
|
|
333
333
|
}
|
|
334
334
|
function et(e) {
|
|
335
335
|
return document.body.appendChild(e);
|
|
@@ -360,12 +360,12 @@ function rt() {
|
|
|
360
360
|
};
|
|
361
361
|
}), n = window.require;
|
|
362
362
|
n.config(e.config), n(["vs/editor/editor.main"], function(r) {
|
|
363
|
-
|
|
363
|
+
oe(r), e.resolve(r);
|
|
364
364
|
}, function(r) {
|
|
365
365
|
e.reject(r);
|
|
366
366
|
});
|
|
367
367
|
}
|
|
368
|
-
function
|
|
368
|
+
function oe(e) {
|
|
369
369
|
C().monaco || B({
|
|
370
370
|
monaco: e
|
|
371
371
|
});
|
|
@@ -376,7 +376,7 @@ function ot() {
|
|
|
376
376
|
return n;
|
|
377
377
|
});
|
|
378
378
|
}
|
|
379
|
-
var
|
|
379
|
+
var _ = new Promise(function(e, n) {
|
|
380
380
|
return B({
|
|
381
381
|
resolve: e,
|
|
382
382
|
reject: n
|
|
@@ -476,10 +476,10 @@ const lt = (e, n) => {
|
|
|
476
476
|
}
|
|
477
477
|
}, J = (e, n) => {
|
|
478
478
|
let r = n;
|
|
479
|
-
return (
|
|
479
|
+
return (E.isObject(r) || E.isArray(r)) && (r = JSON.stringify(r, null, 2)), E.isString(r) ? r : `${r}`;
|
|
480
480
|
}, F = (e, n) => {
|
|
481
481
|
e.getAction("editor.action.formatDocument").run();
|
|
482
|
-
},
|
|
482
|
+
}, ae = (e, n) => {
|
|
483
483
|
const r = e.__vccOpts || e;
|
|
484
484
|
for (const [t, o] of n)
|
|
485
485
|
r[t] = o;
|
|
@@ -514,16 +514,17 @@ const lt = (e, n) => {
|
|
|
514
514
|
success: { type: Boolean },
|
|
515
515
|
tableIconType: {},
|
|
516
516
|
title: {},
|
|
517
|
-
type: {},
|
|
517
|
+
type: { default: "primary" },
|
|
518
518
|
warning: { type: Boolean },
|
|
519
|
-
width: {}
|
|
519
|
+
width: {},
|
|
520
|
+
iconClass: { default: "" }
|
|
520
521
|
},
|
|
521
522
|
emits: ["click", "mouseenter", "mouseleave", "dblclick"],
|
|
522
523
|
setup(e, { emit: n }) {
|
|
523
|
-
const r = e, t =
|
|
524
|
+
const r = e, t = T(() => r), o = T(() => {
|
|
524
525
|
const { name: i } = t.value;
|
|
525
526
|
return /^http?:\/\//.test(i) ? "img" : /i-[^:]+:[^:]+/.test(i) ? "unocss" : i != null && i.startsWith("iksig") ? "iksig" : i != null && i.includes(":") ? "iconify" : i != null && i.startsWith("iksvg") ? "svg" : "i";
|
|
526
|
-
}), a =
|
|
527
|
+
}), a = T(() => {
|
|
527
528
|
const i = [];
|
|
528
529
|
if (t.value.flip)
|
|
529
530
|
switch (t.value.flip) {
|
|
@@ -566,10 +567,11 @@ const lt = (e, n) => {
|
|
|
566
567
|
{ key: 0 },
|
|
567
568
|
[
|
|
568
569
|
t.value.notip || !t.value.title ? (s(), d(
|
|
569
|
-
"
|
|
570
|
+
"i",
|
|
570
571
|
{
|
|
571
572
|
key: 0,
|
|
572
573
|
class: m(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
574
|
+
[i.iconClass]: !0,
|
|
573
575
|
[i.name]: o.value === "unocss",
|
|
574
576
|
"show-bg": t.value.showBg || t.value.bg,
|
|
575
577
|
default: t.value.size === "default",
|
|
@@ -589,7 +591,6 @@ const lt = (e, n) => {
|
|
|
589
591
|
onMouseleave: g
|
|
590
592
|
},
|
|
591
593
|
[
|
|
592
|
-
ee(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
|
|
593
594
|
o.value === "iksig" ? (s(), d(
|
|
594
595
|
"i",
|
|
595
596
|
{
|
|
@@ -626,13 +627,15 @@ const lt = (e, n) => {
|
|
|
626
627
|
key: 1,
|
|
627
628
|
content: t.value.title,
|
|
628
629
|
placement: "top",
|
|
630
|
+
"popper-class": "ik-svg-icon-tooltip",
|
|
629
631
|
"hide-after": 0
|
|
630
632
|
}, {
|
|
631
633
|
default: N(() => [
|
|
632
634
|
b(
|
|
633
|
-
"
|
|
635
|
+
"i",
|
|
634
636
|
{
|
|
635
637
|
class: m(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
638
|
+
[i.iconClass]: !0,
|
|
636
639
|
[i.name]: o.value === "unocss",
|
|
637
640
|
"show-bg": t.value.showBg || t.value.bg,
|
|
638
641
|
default: t.value.size === "default",
|
|
@@ -642,7 +645,9 @@ const lt = (e, n) => {
|
|
|
642
645
|
primary: i.primary || t.value.type === "primary",
|
|
643
646
|
success: i.success || t.value.type === "success",
|
|
644
647
|
error: t.value.error || t.value.type === "error",
|
|
645
|
-
active: t.value.active
|
|
648
|
+
active: t.value.active,
|
|
649
|
+
disabled: t.value.disabled,
|
|
650
|
+
...i.$attrs.class || {}
|
|
646
651
|
}]),
|
|
647
652
|
style: O(a.value),
|
|
648
653
|
onClick: c,
|
|
@@ -696,8 +701,8 @@ const lt = (e, n) => {
|
|
|
696
701
|
type: ["warning", "error"].includes(t.value.type) ? "danger" : ""
|
|
697
702
|
}, {
|
|
698
703
|
default: N(() => [
|
|
699
|
-
|
|
700
|
-
|
|
704
|
+
ue(
|
|
705
|
+
ce(t.value.title),
|
|
701
706
|
1
|
|
702
707
|
/* TEXT */
|
|
703
708
|
)
|
|
@@ -707,7 +712,7 @@ const lt = (e, n) => {
|
|
|
707
712
|
}, 8, ["type"]));
|
|
708
713
|
};
|
|
709
714
|
}
|
|
710
|
-
}), pt = /* @__PURE__ */
|
|
715
|
+
}), pt = /* @__PURE__ */ ae(vt, [["__scopeId", "data-v-64b61696"]]), ht = ee(pt), yt = Q({
|
|
711
716
|
name: "IkMonacoEditor",
|
|
712
717
|
components: {
|
|
713
718
|
IkSvgIcon: ht
|
|
@@ -751,7 +756,7 @@ const lt = (e, n) => {
|
|
|
751
756
|
},
|
|
752
757
|
emits: ["change", "blur"],
|
|
753
758
|
setup(e, n) {
|
|
754
|
-
const r = V(!1), t =
|
|
759
|
+
const r = V(!1), t = T(() => `datav-editor-${ve()}`);
|
|
755
760
|
let o = null, a = null, l = null;
|
|
756
761
|
const c = "datav-dark-theme", u = V(!1), g = () => {
|
|
757
762
|
a && he.copyText(a.getValue()).then(() => {
|
|
@@ -801,10 +806,10 @@ const lt = (e, n) => {
|
|
|
801
806
|
u.value = !u.value, u.value && W(() => {
|
|
802
807
|
I();
|
|
803
808
|
});
|
|
804
|
-
},
|
|
809
|
+
}, ie = () => {
|
|
805
810
|
l && (a && !e.readOnly && (a.setValue(l.getValue()), a.focus()), l.dispose());
|
|
806
811
|
};
|
|
807
|
-
return
|
|
812
|
+
return se(
|
|
808
813
|
() => e.code,
|
|
809
814
|
(f) => {
|
|
810
815
|
if (a) {
|
|
@@ -812,7 +817,7 @@ const lt = (e, n) => {
|
|
|
812
817
|
a.setValue(h);
|
|
813
818
|
}
|
|
814
819
|
}
|
|
815
|
-
),
|
|
820
|
+
), de(async () => {
|
|
816
821
|
const f = setTimeout(() => {
|
|
817
822
|
r.value = !0;
|
|
818
823
|
}, 200);
|
|
@@ -830,10 +835,10 @@ const lt = (e, n) => {
|
|
|
830
835
|
},
|
|
831
836
|
lineNumbers: e.lineNumbers,
|
|
832
837
|
wordWrap: e.wordWrap
|
|
833
|
-
}), k = o.editor.create(h, y),
|
|
834
|
-
k.setValue(
|
|
838
|
+
}), k = o.editor.create(h, y), le = J(e.language, e.code);
|
|
839
|
+
k.setValue(le), e.autoFormat && F(k, e.language), e.height > 0 && (h.style.height = `${e.height}px`), k.onDidChangeModelContent(() => p()), k.onDidBlurEditorText(() => i()), a = k;
|
|
835
840
|
}
|
|
836
|
-
}),
|
|
841
|
+
}), fe(() => {
|
|
837
842
|
a == null || a.dispose(), l == null || l.dispose();
|
|
838
843
|
}), {
|
|
839
844
|
editorId: t,
|
|
@@ -842,7 +847,7 @@ const lt = (e, n) => {
|
|
|
842
847
|
copyData: g,
|
|
843
848
|
switchFullScreen: z,
|
|
844
849
|
openedFullScreenDialog: I,
|
|
845
|
-
closedFullScreenDialog:
|
|
850
|
+
closedFullScreenDialog: ie
|
|
846
851
|
};
|
|
847
852
|
}
|
|
848
853
|
}), bt = ["id"], wt = {
|
|
@@ -864,8 +869,8 @@ function kt(e, n, r, t, o, a) {
|
|
|
864
869
|
e.editorClass
|
|
865
870
|
]])
|
|
866
871
|
}, [
|
|
867
|
-
e.loading ?
|
|
868
|
-
|
|
872
|
+
e.loading ? ge("v-if", !0) : (s(), d("div", wt, [
|
|
873
|
+
q(l, {
|
|
869
874
|
name: "iksvg_tongyong4",
|
|
870
875
|
title: "复制",
|
|
871
876
|
pop: "",
|
|
@@ -886,7 +891,7 @@ function kt(e, n, r, t, o, a) {
|
|
|
886
891
|
}, null, 8, ["onClick"]))
|
|
887
892
|
]))
|
|
888
893
|
], 10, bt),
|
|
889
|
-
|
|
894
|
+
q(c, {
|
|
890
895
|
modelValue: e.isFullScreen,
|
|
891
896
|
"onUpdate:modelValue": n[0] || (n[0] = (u) => e.isFullScreen = u),
|
|
892
897
|
title: `${e.fullScreenTitle}${e.readOnly ? " ( 只读 )" : ""}`,
|
|
@@ -930,8 +935,8 @@ function kt(e, n, r, t, o, a) {
|
|
|
930
935
|
/* STABLE_FRAGMENT */
|
|
931
936
|
);
|
|
932
937
|
}
|
|
933
|
-
const St = /* @__PURE__ */
|
|
938
|
+
const St = /* @__PURE__ */ ae(yt, [["render", kt]]), $t = ee(St);
|
|
934
939
|
export {
|
|
935
|
-
|
|
936
|
-
|
|
940
|
+
$t as IkMonacoEditor,
|
|
941
|
+
$t as default
|
|
937
942
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8";.row-title[data-v-
|
|
1
|
+
@charset "UTF-8";.row-title[data-v-64b61696]{display:flex}.ik-svg-icon.ik-icon-span[data-v-64b61696]:not(:first-child){margin-left:var(--ik-margin-s-8)}.monaco-editor .margin-view-overlays .codicon-chevron-right,.monaco-editor .margin-view-overlays .codicon-chevron-down{font-size:100%!important}.monaco-editor .suggest-widget{width:200px}.monaco-editor .monaco-editor-overlaymessage{padding-bottom:8px}.monaco-editor .monaco-editor-overlaymessage.fadeIn{animation:monaco-fade-in .15s ease-out}.monaco-editor .monaco-editor-overlaymessage.fadeOut{animation:monaco-fade-out .1s ease-out}.monaco-editor .monaco-editor-overlaymessage .message{padding:1px 4px}.monaco-editor .monaco-editor-overlaymessage .anchor{position:absolute;z-index:1000;width:0!important;height:0!important;border-color:transparent;border-style:solid;border-width:8px}@keyframes monaco-fade-in{0%{opacity:0}to{opacity:1}}@keyframes monaco-fade-out{0%{opacity:1}to{opacity:0}}.datav-editor{position:relative;width:100%;height:240px;padding:0;overflow:hidden;background:var(--datav-component-bg-1);border:var(--datav-gui-editor-border)}.datav-editor .datav-editor-actions{position:absolute;right:10px;bottom:5px;z-index:1;width:40px;font-size:12px;text-align:right}.datav-editor .datav-editor-actions .action-btn{width:20px;color:var(--el-color-primary);cursor:pointer;transition:color .2s}.datav-editor .datav-editor-actions .action-btn:hover{color:var(--el-color-white)}.datav-editor.--read-only .margin,.datav-editor.--read-only .monaco-editor-background{background-color:var(--el-text-color-disabled)}.datav-fullscreen-editor-dialog{display:flex;flex-direction:column;width:90%;max-width:90%;height:95vh;margin-top:1%;background:var(--ik-page-content-bg)}.datav-fullscreen-editor-dialog.el-dialog .el-dialog__body{max-height:100%;height:100%}.datav-fullscreen-editor-dialog .n-dialog__content{height:100%;padding-bottom:10px;border-bottom:none}.datav-fullscreen-editor-dialog .datav-fullscreen-editor-wp{height:100%}.datav-fullscreen-editor-dialog .datav-fullscreen-editor{width:100%;height:100%}
|