@indfnd/common 1.1.43 → 1.1.44
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/CHANGELOG.md +7 -0
- package/dist/ind-common.es.js +59 -12
- package/dist/ind-common.umd.cjs +27 -27
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [1.1.44](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.1.43...v1.1.44) (2026-01-30)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* 替换npmtoken ([bb95417](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/bb95417282a2b9835490a2fd6e428db064c459a9))
|
|
11
|
+
|
|
5
12
|
### [1.1.43](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.1.42...v1.1.43) (2026-01-29)
|
|
6
13
|
|
|
7
14
|
|
package/dist/ind-common.es.js
CHANGED
|
@@ -32,7 +32,7 @@ var lodash = { exports: {} };
|
|
|
32
32
|
(function(module2, exports2) {
|
|
33
33
|
(function() {
|
|
34
34
|
var undefined$1;
|
|
35
|
-
var VERSION2 = "4.17.
|
|
35
|
+
var VERSION2 = "4.17.23";
|
|
36
36
|
var LARGE_ARRAY_SIZE = 200;
|
|
37
37
|
var CORE_ERROR_TEXT = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", FUNC_ERROR_TEXT = "Expected a function", INVALID_TEMPL_VAR_ERROR_TEXT = "Invalid `variable` option passed into `_.template`";
|
|
38
38
|
var HASH_UNDEFINED = "__lodash_hash_undefined__";
|
|
@@ -1918,8 +1918,28 @@ var lodash = { exports: {} };
|
|
|
1918
1918
|
}
|
|
1919
1919
|
function baseUnset(object, path) {
|
|
1920
1920
|
path = castPath(path, object);
|
|
1921
|
-
|
|
1922
|
-
|
|
1921
|
+
var index2 = -1, length = path.length;
|
|
1922
|
+
if (!length) {
|
|
1923
|
+
return true;
|
|
1924
|
+
}
|
|
1925
|
+
var isRootPrimitive = object == null || typeof object !== "object" && typeof object !== "function";
|
|
1926
|
+
while (++index2 < length) {
|
|
1927
|
+
var key = path[index2];
|
|
1928
|
+
if (typeof key !== "string") {
|
|
1929
|
+
continue;
|
|
1930
|
+
}
|
|
1931
|
+
if (key === "__proto__" && !hasOwnProperty.call(object, "__proto__")) {
|
|
1932
|
+
return false;
|
|
1933
|
+
}
|
|
1934
|
+
if (key === "constructor" && index2 + 1 < length && typeof path[index2 + 1] === "string" && path[index2 + 1] === "prototype") {
|
|
1935
|
+
if (isRootPrimitive && index2 === 0) {
|
|
1936
|
+
continue;
|
|
1937
|
+
}
|
|
1938
|
+
return false;
|
|
1939
|
+
}
|
|
1940
|
+
}
|
|
1941
|
+
var obj = parent(object, path);
|
|
1942
|
+
return obj == null || delete obj[toKey(last(path))];
|
|
1923
1943
|
}
|
|
1924
1944
|
function baseUpdate(object, path, updater, customizer) {
|
|
1925
1945
|
return baseSet(object, path, updater(baseGet(object, path)), customizer);
|
|
@@ -5460,7 +5480,7 @@ var lodash = { exports: {} };
|
|
|
5460
5480
|
})(lodash, lodash.exports);
|
|
5461
5481
|
var _ = lodash.exports;
|
|
5462
5482
|
const name$1 = "@indfnd/common";
|
|
5463
|
-
const version = "1.1.
|
|
5483
|
+
const version = "1.1.43";
|
|
5464
5484
|
const author = "huxuetong";
|
|
5465
5485
|
const publishConfig = {
|
|
5466
5486
|
registry: "https://registry.npmjs.org/"
|
|
@@ -5521,7 +5541,7 @@ const dependencies = {
|
|
|
5521
5541
|
wangeditor: "^3.1.1"
|
|
5522
5542
|
};
|
|
5523
5543
|
const devDependencies = {
|
|
5524
|
-
"@indfnd/utils": "^0.1.
|
|
5544
|
+
"@indfnd/utils": "^0.1.33",
|
|
5525
5545
|
"ag-grid-community": "^30.1.0",
|
|
5526
5546
|
"ag-grid-enterprise": "^30.1.0",
|
|
5527
5547
|
"ag-grid-vue": "^30.1.0",
|
|
@@ -54101,7 +54121,9 @@ const __vue2_script$15 = {
|
|
|
54101
54121
|
this.currentPage = 1;
|
|
54102
54122
|
this.tableRefresh();
|
|
54103
54123
|
} else {
|
|
54124
|
+
this.showZeroSwitch ? this.rowDataFiltered : this.tableData;
|
|
54104
54125
|
let topData = [];
|
|
54126
|
+
let restData = [];
|
|
54105
54127
|
if (sortParams.order === void 0) {
|
|
54106
54128
|
if (this.dataApi) {
|
|
54107
54129
|
let tableDataTmp = _.cloneDeep(this.tableData);
|
|
@@ -54113,9 +54135,9 @@ const __vue2_script$15 = {
|
|
|
54113
54135
|
} else {
|
|
54114
54136
|
if (this.noSortLine > -1) {
|
|
54115
54137
|
topData = this.tableData.slice(0, this.noSortLine);
|
|
54116
|
-
this.tableData.
|
|
54138
|
+
restData = this.tableData.slice(this.noSortLine);
|
|
54117
54139
|
}
|
|
54118
|
-
|
|
54140
|
+
restData.sort((a, b) => {
|
|
54119
54141
|
if (typeof a[this.sortParams.sort] == "number" && typeof b[this.sortParams.sort] == "number") {
|
|
54120
54142
|
let _a = isNaN(parseFloat(a[this.sortParams.sort])) ? 0 : parseFloat(a[this.sortParams.sort]);
|
|
54121
54143
|
let _b = isNaN(parseFloat(b[this.sortParams.sort])) ? 0 : parseFloat(b[this.sortParams.sort]);
|
|
@@ -54127,11 +54149,15 @@ const __vue2_script$15 = {
|
|
|
54127
54149
|
}
|
|
54128
54150
|
});
|
|
54129
54151
|
if (this.noSortLine > -1) {
|
|
54130
|
-
this.tableData
|
|
54152
|
+
this.tableData = [...topData, ...restData];
|
|
54153
|
+
} else {
|
|
54154
|
+
this.tableData = [...restData];
|
|
54131
54155
|
}
|
|
54132
54156
|
}
|
|
54133
54157
|
this.$nextTick().then(() => {
|
|
54158
|
+
var _a;
|
|
54134
54159
|
this.gridApi.refreshCells({ force: true });
|
|
54160
|
+
(_a = this.gridApi) == null ? void 0 : _a.redrawRows();
|
|
54135
54161
|
});
|
|
54136
54162
|
}
|
|
54137
54163
|
this.$emit("on-sort-change", sortParams);
|
|
@@ -54347,6 +54373,11 @@ const __vue2_script$15 = {
|
|
|
54347
54373
|
agColumn.rowDrag = column.rowDrag;
|
|
54348
54374
|
}
|
|
54349
54375
|
agColumn.sortable = column.sortable;
|
|
54376
|
+
if (column.comparator) {
|
|
54377
|
+
agColumn.comparator = column.comparator;
|
|
54378
|
+
} else {
|
|
54379
|
+
agColumn.comparator = () => 0;
|
|
54380
|
+
}
|
|
54350
54381
|
if (column.type == "index") {
|
|
54351
54382
|
agColumn.cellRenderer = function(params) {
|
|
54352
54383
|
if (params.node.rowPinned) {
|
|
@@ -54828,6 +54859,7 @@ const __vue2_script$15 = {
|
|
|
54828
54859
|
this.searchParams
|
|
54829
54860
|
)
|
|
54830
54861
|
).then(async (result) => {
|
|
54862
|
+
var _a;
|
|
54831
54863
|
if (result) {
|
|
54832
54864
|
this.overlayNoRowsTemplate = '<span style="padding: 10px;">\u6570\u636E\u4E3A\u7A7A</span>';
|
|
54833
54865
|
this.$emit("on-data-load", result);
|
|
@@ -54876,7 +54908,14 @@ const __vue2_script$15 = {
|
|
|
54876
54908
|
}
|
|
54877
54909
|
});
|
|
54878
54910
|
}
|
|
54879
|
-
this.totalNumber = result.data.total || 0;
|
|
54911
|
+
this.totalNumber = ((_a = result == null ? void 0 : result.data) == null ? void 0 : _a.total) || 0;
|
|
54912
|
+
setTimeout(() => {
|
|
54913
|
+
if (this.gridApi) {
|
|
54914
|
+
this.refreshCells();
|
|
54915
|
+
this.redrawRows();
|
|
54916
|
+
console.log("dataApi refreshRows");
|
|
54917
|
+
}
|
|
54918
|
+
}, 0);
|
|
54880
54919
|
this.$emit("on-data-format-load", result);
|
|
54881
54920
|
}
|
|
54882
54921
|
this.tableLoading = false;
|
|
@@ -54887,6 +54926,13 @@ const __vue2_script$15 = {
|
|
|
54887
54926
|
});
|
|
54888
54927
|
} else if (!this.dataApi) {
|
|
54889
54928
|
this.totalNumber = this.value.length;
|
|
54929
|
+
setTimeout(() => {
|
|
54930
|
+
if (this.gridApi) {
|
|
54931
|
+
this.refreshCells();
|
|
54932
|
+
this.redrawRows();
|
|
54933
|
+
console.log("noDataApi refreshRows");
|
|
54934
|
+
}
|
|
54935
|
+
}, 0);
|
|
54890
54936
|
}
|
|
54891
54937
|
this.optionDropdownVisible = false;
|
|
54892
54938
|
},
|
|
@@ -64008,8 +64054,8 @@ var ConditionPanel = /* @__PURE__ */ function() {
|
|
|
64008
64054
|
return __component__$n.exports;
|
|
64009
64055
|
}();
|
|
64010
64056
|
/*!
|
|
64011
|
-
* Signature Pad v4.
|
|
64012
|
-
* (c)
|
|
64057
|
+
* Signature Pad v4.2.0 | https://github.com/szimek/signature_pad
|
|
64058
|
+
* (c) 2024 Szymon Nowak | Released under the MIT license
|
|
64013
64059
|
*/
|
|
64014
64060
|
class Point {
|
|
64015
64061
|
constructor(x, y, pressure, time) {
|
|
@@ -64214,8 +64260,9 @@ class SignaturePad extends SignatureEventTarget {
|
|
|
64214
64260
|
this.penColor = options.penColor || "black";
|
|
64215
64261
|
this.backgroundColor = options.backgroundColor || "rgba(0,0,0,0)";
|
|
64216
64262
|
this.compositeOperation = options.compositeOperation || "source-over";
|
|
64263
|
+
this.canvasContextOptions = "canvasContextOptions" in options ? options.canvasContextOptions : {};
|
|
64217
64264
|
this._strokeMoveUpdate = this.throttle ? throttle(SignaturePad.prototype._strokeUpdate, this.throttle) : SignaturePad.prototype._strokeUpdate;
|
|
64218
|
-
this._ctx = canvas.getContext("2d");
|
|
64265
|
+
this._ctx = canvas.getContext("2d", this.canvasContextOptions);
|
|
64219
64266
|
this.clear();
|
|
64220
64267
|
this.on();
|
|
64221
64268
|
}
|