vue-devui 1.6.33 → 1.6.34
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/auto-complete/index.es.js +131 -26
- package/auto-complete/index.umd.js +12 -12
- package/data-grid/index.es.js +131 -26
- package/data-grid/index.umd.js +18 -18
- package/date-picker-pro/index.es.js +131 -26
- package/date-picker-pro/index.umd.js +16 -16
- package/editable-select/index.es.js +131 -26
- package/editable-select/index.umd.js +16 -16
- package/input/index.es.js +136 -31
- package/input/index.umd.js +22 -22
- package/locale/index.es.js +271 -0
- package/locale/index.umd.js +1 -0
- package/locale/package.json +8 -0
- package/nuxt/components/Locale.js +2 -0
- package/package.json +1 -1
- package/pagination/index.es.js +131 -26
- package/pagination/index.umd.js +11 -11
- package/search/index.es.js +136 -31
- package/search/index.umd.js +12 -12
- package/select/index.es.js +131 -26
- package/select/index.umd.js +21 -21
- package/splitter/index.es.js +136 -31
- package/splitter/index.umd.js +14 -14
- package/table/index.es.js +131 -26
- package/table/index.umd.js +10 -10
- package/time-picker/index.es.js +131 -26
- package/time-picker/index.umd.js +15 -15
- package/time-select/index.es.js +131 -26
- package/time-select/index.umd.js +18 -18
- package/tree/index.es.js +131 -26
- package/tree/index.umd.js +26 -26
- package/types/locale/index.d.ts +7 -4
- package/upload/index.es.js +131 -26
- package/upload/index.umd.js +3 -3
- package/vue-devui.es.js +132 -27
- package/vue-devui.umd.js +66 -66
package/search/index.es.js
CHANGED
|
@@ -895,10 +895,10 @@ var lodash = { exports: {} };
|
|
|
895
895
|
}();
|
|
896
896
|
var ctxClearTimeout = context.clearTimeout !== root.clearTimeout && context.clearTimeout, ctxNow = Date2 && Date2.now !== root.Date.now && Date2.now, ctxSetTimeout = context.setTimeout !== root.setTimeout && context.setTimeout;
|
|
897
897
|
var nativeCeil = Math2.ceil, nativeFloor = Math2.floor, nativeGetSymbols = Object2.getOwnPropertySymbols, nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined$1, nativeIsFinite = context.isFinite, nativeJoin = arrayProto.join, nativeKeys = overArg(Object2.keys, Object2), nativeMax = Math2.max, nativeMin = Math2.min, nativeNow = Date2.now, nativeParseInt = context.parseInt, nativeRandom = Math2.random, nativeReverse = arrayProto.reverse;
|
|
898
|
-
var DataView = getNative(context, "DataView"), Map2 = getNative(context, "Map"), Promise2 = getNative(context, "Promise"),
|
|
898
|
+
var DataView = getNative(context, "DataView"), Map2 = getNative(context, "Map"), Promise2 = getNative(context, "Promise"), Set = getNative(context, "Set"), WeakMap = getNative(context, "WeakMap"), nativeCreate = getNative(Object2, "create");
|
|
899
899
|
var metaMap = WeakMap && new WeakMap();
|
|
900
900
|
var realNames = {};
|
|
901
|
-
var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map2), promiseCtorString = toSource(Promise2), setCtorString = toSource(
|
|
901
|
+
var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map2), promiseCtorString = toSource(Promise2), setCtorString = toSource(Set), weakMapCtorString = toSource(WeakMap);
|
|
902
902
|
var symbolProto = Symbol2 ? Symbol2.prototype : undefined$1, symbolValueOf = symbolProto ? symbolProto.valueOf : undefined$1, symbolToString = symbolProto ? symbolProto.toString : undefined$1;
|
|
903
903
|
function lodash2(value) {
|
|
904
904
|
if (isObjectLike(value) && !isArray(value) && !(value instanceof LazyWrapper)) {
|
|
@@ -2612,8 +2612,8 @@ var lodash = { exports: {} };
|
|
|
2612
2612
|
return func(number4);
|
|
2613
2613
|
};
|
|
2614
2614
|
}
|
|
2615
|
-
var createSet = !(
|
|
2616
|
-
return new
|
|
2615
|
+
var createSet = !(Set && 1 / setToArray(new Set([, -0]))[1] == INFINITY) ? noop : function(values2) {
|
|
2616
|
+
return new Set(values2);
|
|
2617
2617
|
};
|
|
2618
2618
|
function createToPairs(keysFunc) {
|
|
2619
2619
|
return function(object4) {
|
|
@@ -2912,7 +2912,7 @@ var lodash = { exports: {} };
|
|
|
2912
2912
|
return result2;
|
|
2913
2913
|
};
|
|
2914
2914
|
var getTag = baseGetTag;
|
|
2915
|
-
if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag || Map2 && getTag(new Map2()) != mapTag || Promise2 && getTag(Promise2.resolve()) != promiseTag ||
|
|
2915
|
+
if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag || Map2 && getTag(new Map2()) != mapTag || Promise2 && getTag(Promise2.resolve()) != promiseTag || Set && getTag(new Set()) != setTag || WeakMap && getTag(new WeakMap()) != weakMapTag) {
|
|
2916
2916
|
getTag = function(value) {
|
|
2917
2917
|
var result2 = baseGetTag(value), Ctor = result2 == objectTag ? value.constructor : undefined$1, ctorString = Ctor ? toSource(Ctor) : "";
|
|
2918
2918
|
if (ctorString) {
|
|
@@ -8387,23 +8387,6 @@ function useInputFunction(input2) {
|
|
|
8387
8387
|
return { select, focus, blur };
|
|
8388
8388
|
}
|
|
8389
8389
|
var input = "";
|
|
8390
|
-
function deepAssign(...objects) {
|
|
8391
|
-
const isObject2 = (obj) => obj && typeof obj === "object";
|
|
8392
|
-
return objects.reduce((prev, from) => {
|
|
8393
|
-
Object.keys(from).forEach((key) => {
|
|
8394
|
-
const pVal = prev[key];
|
|
8395
|
-
const oVal = from[key];
|
|
8396
|
-
if (Array.isArray(pVal) && Array.isArray(oVal)) {
|
|
8397
|
-
prev[key] = Array.from(/* @__PURE__ */ new Set([...oVal, ...pVal]));
|
|
8398
|
-
} else if (isObject2(pVal) && isObject2(oVal)) {
|
|
8399
|
-
prev[key] = deepAssign(pVal, oVal);
|
|
8400
|
-
} else {
|
|
8401
|
-
prev[key] = oVal;
|
|
8402
|
-
}
|
|
8403
|
-
});
|
|
8404
|
-
return prev;
|
|
8405
|
-
}, {});
|
|
8406
|
-
}
|
|
8407
8390
|
var zhCN = {
|
|
8408
8391
|
pagination: {
|
|
8409
8392
|
totalItemText: "\u6240\u6709\u6761\u76EE",
|
|
@@ -8522,23 +8505,146 @@ var zhCN = {
|
|
|
8522
8505
|
placeholder: "\u8BF7\u9009\u62E9\u65F6\u95F4"
|
|
8523
8506
|
}
|
|
8524
8507
|
};
|
|
8508
|
+
var enUS = {
|
|
8509
|
+
pagination: {
|
|
8510
|
+
totalItemText: "Total",
|
|
8511
|
+
goToText: "Go to"
|
|
8512
|
+
},
|
|
8513
|
+
accordion: {
|
|
8514
|
+
loading: "loading",
|
|
8515
|
+
noData: "No Data"
|
|
8516
|
+
},
|
|
8517
|
+
autoCompleteDropdown: {
|
|
8518
|
+
latestInput: "Latest input"
|
|
8519
|
+
},
|
|
8520
|
+
cascaderList: {
|
|
8521
|
+
noData: "No data"
|
|
8522
|
+
},
|
|
8523
|
+
colorPicker: {
|
|
8524
|
+
foundationPanel: "Foundation panel",
|
|
8525
|
+
advancedPanel: "Advanced panel"
|
|
8526
|
+
},
|
|
8527
|
+
datePickerPro: {
|
|
8528
|
+
ok: "OK",
|
|
8529
|
+
placeholder: "select date",
|
|
8530
|
+
month1: "Jan",
|
|
8531
|
+
month2: "Feb",
|
|
8532
|
+
month3: "Mar",
|
|
8533
|
+
month4: "Apr",
|
|
8534
|
+
month5: "May",
|
|
8535
|
+
month6: "June",
|
|
8536
|
+
month7: "July",
|
|
8537
|
+
month8: "Aug",
|
|
8538
|
+
month9: "Sep",
|
|
8539
|
+
month10: "Oct",
|
|
8540
|
+
month11: "Nov",
|
|
8541
|
+
month12: "Dec",
|
|
8542
|
+
year: "\u5E74",
|
|
8543
|
+
startPlaceholder: "select start date",
|
|
8544
|
+
endPlaceholder: "select end date",
|
|
8545
|
+
getWeekDays() {
|
|
8546
|
+
return ["Sun", "Mon", "Tue", "Wed", "Thur", "Fri", "Sat"];
|
|
8547
|
+
},
|
|
8548
|
+
getTimeArr() {
|
|
8549
|
+
return ["Hr", "Min", "Sec"];
|
|
8550
|
+
},
|
|
8551
|
+
getYearMonthStr(year, month) {
|
|
8552
|
+
return `${year} - ${month}`;
|
|
8553
|
+
}
|
|
8554
|
+
},
|
|
8555
|
+
editableSelect: {
|
|
8556
|
+
noRelatedRecords: "No related records found",
|
|
8557
|
+
noData: "No data"
|
|
8558
|
+
},
|
|
8559
|
+
input: {
|
|
8560
|
+
placeholder: "Please enter"
|
|
8561
|
+
},
|
|
8562
|
+
splitterBar: {
|
|
8563
|
+
collapse: "Collapse",
|
|
8564
|
+
expand: "Expand"
|
|
8565
|
+
},
|
|
8566
|
+
stepsGuide: {
|
|
8567
|
+
previous: "Previous",
|
|
8568
|
+
continue: "Continue",
|
|
8569
|
+
ok: "OK"
|
|
8570
|
+
},
|
|
8571
|
+
table: {
|
|
8572
|
+
selectAll: "Select all",
|
|
8573
|
+
ok: "OK"
|
|
8574
|
+
},
|
|
8575
|
+
dataGrid: {
|
|
8576
|
+
selectAll: "Select all",
|
|
8577
|
+
ok: "OK"
|
|
8578
|
+
},
|
|
8579
|
+
timePopup: {
|
|
8580
|
+
ok: "OK"
|
|
8581
|
+
},
|
|
8582
|
+
transfer: {
|
|
8583
|
+
unit: "",
|
|
8584
|
+
panelUnit: "",
|
|
8585
|
+
headerUnit: "",
|
|
8586
|
+
noData: "No Data",
|
|
8587
|
+
placeholder: "Please enter keywords"
|
|
8588
|
+
},
|
|
8589
|
+
tree: {
|
|
8590
|
+
loading: "Loading",
|
|
8591
|
+
newNode: "New node",
|
|
8592
|
+
selectPlaceholder: "Please select"
|
|
8593
|
+
},
|
|
8594
|
+
upload: {
|
|
8595
|
+
placeholder: "select file",
|
|
8596
|
+
getExistSameNameFilesMsg(sameNames) {
|
|
8597
|
+
return `Duplicate files exist : "${sameNames}" `;
|
|
8598
|
+
},
|
|
8599
|
+
getAllFilesBeyondMaximalFileSizeMsg(maximalSize) {
|
|
8600
|
+
return `Maximum file size (MB): ${maximalSize}. The selected files exceed the maximum value`;
|
|
8601
|
+
},
|
|
8602
|
+
getBeyondMaximalFileSizeMsg(filename, maximalSize) {
|
|
8603
|
+
return `Maximum file size (MB): ${maximalSize}. Files whose size exceeds the maximum value: ${filename}`;
|
|
8604
|
+
},
|
|
8605
|
+
getNotAllowedFileTypeMsg(filename, scope) {
|
|
8606
|
+
return `Files with unsupported types: ${filename}. Supported file types: ${scope}`;
|
|
8607
|
+
}
|
|
8608
|
+
},
|
|
8609
|
+
search: {
|
|
8610
|
+
placeholder: "Enter a keyword"
|
|
8611
|
+
},
|
|
8612
|
+
select: {
|
|
8613
|
+
placeholder: "Please select",
|
|
8614
|
+
noDataText: "No data",
|
|
8615
|
+
noMatchText: "No related records found",
|
|
8616
|
+
loadingText: "Loading..."
|
|
8617
|
+
},
|
|
8618
|
+
tagInput: {
|
|
8619
|
+
maxTagsText: "Maximum number reached: "
|
|
8620
|
+
},
|
|
8621
|
+
timeSelect: {
|
|
8622
|
+
placeholder: "Please select time"
|
|
8623
|
+
}
|
|
8624
|
+
};
|
|
8525
8625
|
const lang = ref("zh-CN");
|
|
8626
|
+
const nowApp = ref();
|
|
8526
8627
|
let langMessages = reactive({
|
|
8527
|
-
[
|
|
8628
|
+
["zh-CN"]: zhCN,
|
|
8629
|
+
["en-US"]: enUS
|
|
8528
8630
|
});
|
|
8529
8631
|
const Locale = {
|
|
8530
|
-
messages() {
|
|
8531
|
-
return langMessages[
|
|
8632
|
+
messages(language = lang.value) {
|
|
8633
|
+
return langMessages[language];
|
|
8532
8634
|
},
|
|
8533
8635
|
lang() {
|
|
8534
8636
|
return lang.value;
|
|
8535
8637
|
},
|
|
8536
|
-
use(newLang
|
|
8638
|
+
use(newLang) {
|
|
8639
|
+
const app = nowApp.value;
|
|
8537
8640
|
lang.value = newLang;
|
|
8538
|
-
|
|
8641
|
+
app.config.globalProperties.langMessages = Locale.messages();
|
|
8539
8642
|
},
|
|
8540
|
-
add(newMessages2
|
|
8541
|
-
langMessages =
|
|
8643
|
+
add(newMessages2) {
|
|
8644
|
+
langMessages = {
|
|
8645
|
+
...langMessages,
|
|
8646
|
+
...newMessages2
|
|
8647
|
+
};
|
|
8542
8648
|
}
|
|
8543
8649
|
};
|
|
8544
8650
|
const camelize = (name) => name.substring(1).replace(/^\S/, (s) => s.toLocaleLowerCase());
|
|
@@ -8554,8 +8660,7 @@ function get(object4, path) {
|
|
|
8554
8660
|
function createI18nTranslate(name, app, newPrefix) {
|
|
8555
8661
|
const prefix = newPrefix || camelize(name) + ".";
|
|
8556
8662
|
return (path) => {
|
|
8557
|
-
|
|
8558
|
-
const messages2 = ((_a = app == null ? void 0 : app.appContext.config.globalProperties.langMessages) == null ? void 0 : _a.value) || Locale.messages();
|
|
8663
|
+
const messages2 = (app == null ? void 0 : app.appContext.config.globalProperties.langMessages) || Locale.messages();
|
|
8559
8664
|
const message = get(messages2, prefix + path) || get(messages2, path);
|
|
8560
8665
|
return message;
|
|
8561
8666
|
};
|