yxuse 3.0.56 → 3.0.58
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/lib/index.cjs12.js +1 -1
- package/lib/index.cjs12.js.gz +0 -0
- package/lib/index.cjs12.js.map +1 -1
- package/lib/index.cjs2.js +1 -1
- package/lib/index.cjs2.js.map +1 -1
- package/lib/index.cjs3.js +1 -1
- package/lib/index.cjs3.js.map +1 -1
- package/lib/index.cjs4.js +1 -1
- package/lib/index.cjs4.js.map +1 -1
- package/lib/index.cjs5.js +5 -5
- package/lib/index.cjs5.js.gz +0 -0
- package/lib/index.cjs5.js.map +1 -1
- package/lib/index.cjs6.js +3 -3
- package/lib/index.cjs6.js.gz +0 -0
- package/lib/index.cjs6.js.map +1 -1
- package/lib/index.cjs7.js +4 -4
- package/lib/index.cjs7.js.gz +0 -0
- package/lib/index.cjs7.js.map +1 -1
- package/lib/index.es12.js +99 -209
- package/lib/index.es12.js.gz +0 -0
- package/lib/index.es12.js.map +1 -1
- package/lib/index.es2.js +54 -90
- package/lib/index.es2.js.map +1 -1
- package/lib/index.es3.js +6 -26
- package/lib/index.es3.js.map +1 -1
- package/lib/index.es4.js +12 -32
- package/lib/index.es4.js.map +1 -1
- package/lib/index.es5.js +125 -169
- package/lib/index.es5.js.gz +0 -0
- package/lib/index.es5.js.map +1 -1
- package/lib/index.es6.js +163 -184
- package/lib/index.es6.js.gz +0 -0
- package/lib/index.es6.js.map +1 -1
- package/lib/index.es7.js +118 -162
- package/lib/index.es7.js.gz +0 -0
- package/lib/index.es7.js.map +1 -1
- package/lib/mqtt.min.cjs.js +1 -1
- package/lib/mqtt.min.cjs.js.gz +0 -0
- package/lib/mqtt.min.cjs.js.map +1 -1
- package/lib/mqtt.min.es.js +21 -37
- package/lib/mqtt.min.es.js.gz +0 -0
- package/lib/mqtt.min.es.js.map +1 -1
- package/lib/style.css +1 -1
- package/lib/style.css.gz +0 -0
- package/package.json +1 -1
- package/types/components/YxForm/type.d.ts +11 -1
- package/types/components/YxUpload/index.vue.d.ts +2 -1
package/lib/index.es7.js
CHANGED
|
@@ -1,42 +1,3 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __defProps = Object.defineProperties;
|
|
3
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
-
var __spreadValues = (a, b) => {
|
|
9
|
-
for (var prop in b || (b = {}))
|
|
10
|
-
if (__hasOwnProp.call(b, prop))
|
|
11
|
-
__defNormalProp(a, prop, b[prop]);
|
|
12
|
-
if (__getOwnPropSymbols)
|
|
13
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
-
if (__propIsEnum.call(b, prop))
|
|
15
|
-
__defNormalProp(a, prop, b[prop]);
|
|
16
|
-
}
|
|
17
|
-
return a;
|
|
18
|
-
};
|
|
19
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
var __async = (__this, __arguments, generator) => {
|
|
21
|
-
return new Promise((resolve, reject) => {
|
|
22
|
-
var fulfilled = (value) => {
|
|
23
|
-
try {
|
|
24
|
-
step(generator.next(value));
|
|
25
|
-
} catch (e) {
|
|
26
|
-
reject(e);
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
var rejected = (value) => {
|
|
30
|
-
try {
|
|
31
|
-
step(generator.throw(value));
|
|
32
|
-
} catch (e) {
|
|
33
|
-
reject(e);
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
37
|
-
step((generator = generator.apply(__this, __arguments)).next());
|
|
38
|
-
});
|
|
39
|
-
};
|
|
40
1
|
import { effectScope, ref, shallowRef, computed, watch, isRef, defineComponent, getCurrentInstance, h, Fragment, inject, onMounted, onUnmounted, createVNode, Text } from "vue";
|
|
41
2
|
import { f as getSystemConfig } from "./index.es12.js";
|
|
42
3
|
/*!
|
|
@@ -1842,7 +1803,7 @@ function baseCompile(message, options = {}) {
|
|
|
1842
1803
|
detectError = true;
|
|
1843
1804
|
onError(err);
|
|
1844
1805
|
};
|
|
1845
|
-
return
|
|
1806
|
+
return { ...baseCompile$1(message, options), detectError };
|
|
1846
1807
|
}
|
|
1847
1808
|
// @__NO_SIDE_EFFECTS__
|
|
1848
1809
|
function compile(message, context) {
|
|
@@ -1855,10 +1816,11 @@ function compile(message, context) {
|
|
|
1855
1816
|
if (cached) {
|
|
1856
1817
|
return cached;
|
|
1857
1818
|
}
|
|
1858
|
-
const { ast, detectError } = baseCompile(message,
|
|
1819
|
+
const { ast, detectError } = baseCompile(message, {
|
|
1820
|
+
...context,
|
|
1859
1821
|
location: process.env.NODE_ENV !== "production",
|
|
1860
1822
|
jit: true
|
|
1861
|
-
})
|
|
1823
|
+
});
|
|
1862
1824
|
const msg = format(ast);
|
|
1863
1825
|
return !detectError ? compileCache[cacheKey] = msg : msg;
|
|
1864
1826
|
} else {
|
|
@@ -2739,7 +2701,7 @@ function parseDateTimeArgs(...args) {
|
|
|
2739
2701
|
value = new Date(dateTime);
|
|
2740
2702
|
try {
|
|
2741
2703
|
value.toISOString();
|
|
2742
|
-
} catch
|
|
2704
|
+
} catch {
|
|
2743
2705
|
throw createCoreError(CoreErrorCodes.INVALID_ISO_DATE_ARGUMENT);
|
|
2744
2706
|
}
|
|
2745
2707
|
} else if (isDate(arg1)) {
|
|
@@ -3477,16 +3439,14 @@ class ApiProxy {
|
|
|
3477
3439
|
}
|
|
3478
3440
|
});
|
|
3479
3441
|
}
|
|
3480
|
-
setRealTarget(target) {
|
|
3481
|
-
|
|
3482
|
-
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
|
|
3486
|
-
|
|
3487
|
-
|
|
3488
|
-
}
|
|
3489
|
-
});
|
|
3442
|
+
async setRealTarget(target) {
|
|
3443
|
+
this.target = target;
|
|
3444
|
+
for (const item of this.onQueue) {
|
|
3445
|
+
this.target.on[item.method](...item.args);
|
|
3446
|
+
}
|
|
3447
|
+
for (const item of this.targetQueue) {
|
|
3448
|
+
item.resolve(await this.target[item.method](...item.args));
|
|
3449
|
+
}
|
|
3490
3450
|
}
|
|
3491
3451
|
}
|
|
3492
3452
|
function setupDevtoolsPlugin(pluginDescriptor, setupFn) {
|
|
@@ -4157,79 +4117,77 @@ const VueDevToolsTimelineColors = {
|
|
|
4157
4117
|
"vue-i18n-timeline": 16764185
|
|
4158
4118
|
};
|
|
4159
4119
|
let devtoolsApi;
|
|
4160
|
-
function enableDevTools(app, i18n) {
|
|
4161
|
-
return
|
|
4162
|
-
|
|
4163
|
-
|
|
4164
|
-
|
|
4165
|
-
|
|
4166
|
-
|
|
4167
|
-
|
|
4168
|
-
|
|
4169
|
-
|
|
4170
|
-
|
|
4171
|
-
|
|
4172
|
-
|
|
4173
|
-
|
|
4174
|
-
|
|
4175
|
-
|
|
4176
|
-
|
|
4177
|
-
|
|
4178
|
-
|
|
4179
|
-
if (
|
|
4180
|
-
if (
|
|
4181
|
-
if (componentInstance.vnode.el.__VUE_I18N__ !== i18n.global.__composer) {
|
|
4182
|
-
inspectComposer(instanceData, componentInstance.vnode.el.__VUE_I18N__);
|
|
4183
|
-
}
|
|
4184
|
-
} else {
|
|
4120
|
+
async function enableDevTools(app, i18n) {
|
|
4121
|
+
return new Promise((resolve, reject) => {
|
|
4122
|
+
try {
|
|
4123
|
+
setupDevtoolsPlugin({
|
|
4124
|
+
id: "vue-devtools-plugin-vue-i18n",
|
|
4125
|
+
label: VueDevToolsLabels["vue-devtools-plugin-vue-i18n"],
|
|
4126
|
+
packageName: "vue-i18n",
|
|
4127
|
+
homepage: "https://vue-i18n.intlify.dev",
|
|
4128
|
+
logo: "https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",
|
|
4129
|
+
componentStateTypes: [VUE_I18N_COMPONENT_TYPES],
|
|
4130
|
+
app
|
|
4131
|
+
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
4132
|
+
}, (api) => {
|
|
4133
|
+
devtoolsApi = api;
|
|
4134
|
+
api.on.visitComponentTree(({ componentInstance, treeNode }) => {
|
|
4135
|
+
updateComponentTreeTags(componentInstance, treeNode, i18n);
|
|
4136
|
+
});
|
|
4137
|
+
api.on.inspectComponent(({ componentInstance, instanceData }) => {
|
|
4138
|
+
if (componentInstance.vnode.el && componentInstance.vnode.el.__VUE_I18N__ && instanceData) {
|
|
4139
|
+
if (i18n.mode === "legacy") {
|
|
4140
|
+
if (componentInstance.vnode.el.__VUE_I18N__ !== i18n.global.__composer) {
|
|
4185
4141
|
inspectComposer(instanceData, componentInstance.vnode.el.__VUE_I18N__);
|
|
4186
4142
|
}
|
|
4143
|
+
} else {
|
|
4144
|
+
inspectComposer(instanceData, componentInstance.vnode.el.__VUE_I18N__);
|
|
4187
4145
|
}
|
|
4188
|
-
}
|
|
4189
|
-
|
|
4190
|
-
|
|
4191
|
-
|
|
4192
|
-
|
|
4193
|
-
|
|
4194
|
-
|
|
4195
|
-
|
|
4196
|
-
|
|
4197
|
-
|
|
4198
|
-
|
|
4199
|
-
}
|
|
4200
|
-
|
|
4201
|
-
|
|
4202
|
-
|
|
4203
|
-
|
|
4204
|
-
|
|
4205
|
-
|
|
4206
|
-
|
|
4207
|
-
|
|
4208
|
-
|
|
4209
|
-
|
|
4210
|
-
api.highlightElement(roots.get(payload.app));
|
|
4211
|
-
} else {
|
|
4212
|
-
const instance = getComponentInstance(payload.nodeId, i18n);
|
|
4213
|
-
instance && api.highlightElement(instance);
|
|
4146
|
+
}
|
|
4147
|
+
});
|
|
4148
|
+
api.addInspector({
|
|
4149
|
+
id: "vue-i18n-resource-inspector",
|
|
4150
|
+
label: VueDevToolsLabels["vue-i18n-resource-inspector"],
|
|
4151
|
+
icon: "language",
|
|
4152
|
+
treeFilterPlaceholder: VueDevToolsPlaceholders["vue-i18n-resource-inspector"]
|
|
4153
|
+
});
|
|
4154
|
+
api.on.getInspectorTree((payload) => {
|
|
4155
|
+
if (payload.app === app && payload.inspectorId === "vue-i18n-resource-inspector") {
|
|
4156
|
+
registerScope(payload, i18n);
|
|
4157
|
+
}
|
|
4158
|
+
});
|
|
4159
|
+
const roots = /* @__PURE__ */ new Map();
|
|
4160
|
+
api.on.getInspectorState(async (payload) => {
|
|
4161
|
+
if (payload.app === app && payload.inspectorId === "vue-i18n-resource-inspector") {
|
|
4162
|
+
api.unhighlightElement();
|
|
4163
|
+
inspectScope(payload, i18n);
|
|
4164
|
+
if (payload.nodeId === "global") {
|
|
4165
|
+
if (!roots.has(payload.app)) {
|
|
4166
|
+
const [root] = await api.getComponentInstances(payload.app);
|
|
4167
|
+
roots.set(payload.app, root);
|
|
4214
4168
|
}
|
|
4169
|
+
api.highlightElement(roots.get(payload.app));
|
|
4170
|
+
} else {
|
|
4171
|
+
const instance = getComponentInstance(payload.nodeId, i18n);
|
|
4172
|
+
instance && api.highlightElement(instance);
|
|
4215
4173
|
}
|
|
4216
|
-
}
|
|
4217
|
-
api.on.editInspectorState((payload) => {
|
|
4218
|
-
if (payload.app === app && payload.inspectorId === "vue-i18n-resource-inspector") {
|
|
4219
|
-
editScope(payload, i18n);
|
|
4220
|
-
}
|
|
4221
|
-
});
|
|
4222
|
-
api.addTimelineLayer({
|
|
4223
|
-
id: "vue-i18n-timeline",
|
|
4224
|
-
label: VueDevToolsLabels["vue-i18n-timeline"],
|
|
4225
|
-
color: VueDevToolsTimelineColors["vue-i18n-timeline"]
|
|
4226
|
-
});
|
|
4227
|
-
resolve(true);
|
|
4174
|
+
}
|
|
4228
4175
|
});
|
|
4229
|
-
|
|
4230
|
-
|
|
4231
|
-
|
|
4232
|
-
|
|
4176
|
+
api.on.editInspectorState((payload) => {
|
|
4177
|
+
if (payload.app === app && payload.inspectorId === "vue-i18n-resource-inspector") {
|
|
4178
|
+
editScope(payload, i18n);
|
|
4179
|
+
}
|
|
4180
|
+
});
|
|
4181
|
+
api.addTimelineLayer({
|
|
4182
|
+
id: "vue-i18n-timeline",
|
|
4183
|
+
label: VueDevToolsLabels["vue-i18n-timeline"],
|
|
4184
|
+
color: VueDevToolsTimelineColors["vue-i18n-timeline"]
|
|
4185
|
+
});
|
|
4186
|
+
resolve(true);
|
|
4187
|
+
});
|
|
4188
|
+
} catch (e) {
|
|
4189
|
+
reject(false);
|
|
4190
|
+
}
|
|
4233
4191
|
});
|
|
4234
4192
|
}
|
|
4235
4193
|
function getI18nScopeLable(instance) {
|
|
@@ -5158,50 +5116,48 @@ function createI18n(options = {}, VueI18nLegacy) {
|
|
|
5158
5116
|
return __VUE_I18N_LEGACY_API__ && __legacyMode ? "legacy" : "composition";
|
|
5159
5117
|
},
|
|
5160
5118
|
// install plugin
|
|
5161
|
-
install(app, ...options2) {
|
|
5162
|
-
|
|
5163
|
-
|
|
5164
|
-
|
|
5165
|
-
|
|
5166
|
-
|
|
5167
|
-
|
|
5168
|
-
|
|
5169
|
-
|
|
5170
|
-
|
|
5171
|
-
|
|
5172
|
-
|
|
5173
|
-
|
|
5174
|
-
|
|
5175
|
-
|
|
5176
|
-
|
|
5177
|
-
|
|
5178
|
-
|
|
5179
|
-
|
|
5180
|
-
|
|
5181
|
-
|
|
5119
|
+
async install(app, ...options2) {
|
|
5120
|
+
if ((process.env.NODE_ENV !== "production" || false) && true) {
|
|
5121
|
+
app.__VUE_I18N__ = i18n;
|
|
5122
|
+
}
|
|
5123
|
+
app.__VUE_I18N_SYMBOL__ = symbol;
|
|
5124
|
+
app.provide(app.__VUE_I18N_SYMBOL__, i18n);
|
|
5125
|
+
if (isPlainObject(options2[0])) {
|
|
5126
|
+
const opts = options2[0];
|
|
5127
|
+
i18n.__composerExtend = opts.__composerExtend;
|
|
5128
|
+
i18n.__vueI18nExtend = opts.__vueI18nExtend;
|
|
5129
|
+
}
|
|
5130
|
+
let globalReleaseHandler = null;
|
|
5131
|
+
if (!__legacyMode && __globalInjection) {
|
|
5132
|
+
globalReleaseHandler = injectGlobalFields(app, i18n.global);
|
|
5133
|
+
}
|
|
5134
|
+
if (__VUE_I18N_FULL_INSTALL__) {
|
|
5135
|
+
apply(app, i18n, ...options2);
|
|
5136
|
+
}
|
|
5137
|
+
if (__VUE_I18N_LEGACY_API__ && __legacyMode) {
|
|
5138
|
+
app.mixin(defineMixin(__global, __global.__composer, i18n));
|
|
5139
|
+
}
|
|
5140
|
+
const unmountApp = app.unmount;
|
|
5141
|
+
app.unmount = () => {
|
|
5142
|
+
globalReleaseHandler && globalReleaseHandler();
|
|
5143
|
+
i18n.dispose();
|
|
5144
|
+
unmountApp();
|
|
5145
|
+
};
|
|
5146
|
+
if ((process.env.NODE_ENV !== "production" || false) && true) {
|
|
5147
|
+
const ret = await enableDevTools(app, i18n);
|
|
5148
|
+
if (!ret) {
|
|
5149
|
+
throw createI18nError(I18nErrorCodes.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);
|
|
5182
5150
|
}
|
|
5183
|
-
const
|
|
5184
|
-
|
|
5185
|
-
|
|
5186
|
-
|
|
5187
|
-
|
|
5188
|
-
|
|
5189
|
-
|
|
5190
|
-
const ret = yield enableDevTools(app, i18n);
|
|
5191
|
-
if (!ret) {
|
|
5192
|
-
throw createI18nError(I18nErrorCodes.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);
|
|
5193
|
-
}
|
|
5194
|
-
const emitter = createEmitter();
|
|
5195
|
-
if (__legacyMode) {
|
|
5196
|
-
const _vueI18n = __global;
|
|
5197
|
-
_vueI18n.__enableEmitter && _vueI18n.__enableEmitter(emitter);
|
|
5198
|
-
} else {
|
|
5199
|
-
const _composer = __global;
|
|
5200
|
-
_composer[EnableEmitter] && _composer[EnableEmitter](emitter);
|
|
5201
|
-
}
|
|
5202
|
-
emitter.on("*", addTimelineEvent);
|
|
5151
|
+
const emitter = createEmitter();
|
|
5152
|
+
if (__legacyMode) {
|
|
5153
|
+
const _vueI18n = __global;
|
|
5154
|
+
_vueI18n.__enableEmitter && _vueI18n.__enableEmitter(emitter);
|
|
5155
|
+
} else {
|
|
5156
|
+
const _composer = __global;
|
|
5157
|
+
_composer[EnableEmitter] && _composer[EnableEmitter](emitter);
|
|
5203
5158
|
}
|
|
5204
|
-
|
|
5159
|
+
emitter.on("*", addTimelineEvent);
|
|
5160
|
+
}
|
|
5205
5161
|
},
|
|
5206
5162
|
// global accessor
|
|
5207
5163
|
get global() {
|
package/lib/index.es7.js.gz
CHANGED
|
Binary file
|