@indfnd/common 1.1.43 → 1.1.45
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 +14 -0
- package/dist/ind-common.es.js +62 -13
- package/dist/ind-common.umd.cjs +27 -27
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
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.45](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.1.44...v1.1.45) (2026-01-31)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* agtable排序修复 ([5cb5c08](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/5cb5c08ca0962ae574d2a02693d9714b5379b58b))
|
|
11
|
+
|
|
12
|
+
### [1.1.44](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.1.43...v1.1.44) (2026-01-30)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* 替换npmtoken ([bb95417](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/bb95417282a2b9835490a2fd6e428db064c459a9))
|
|
18
|
+
|
|
5
19
|
### [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
20
|
|
|
7
21
|
|
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.44";
|
|
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);
|
|
@@ -54111,11 +54133,13 @@ const __vue2_script$15 = {
|
|
|
54111
54133
|
this.tableData = _.cloneDeep(this.value);
|
|
54112
54134
|
}
|
|
54113
54135
|
} else {
|
|
54136
|
+
let noSortCount = 0;
|
|
54114
54137
|
if (this.noSortLine > -1) {
|
|
54115
|
-
|
|
54116
|
-
this.tableData.splice(0, this.noSortLine);
|
|
54138
|
+
noSortCount = this.noSortLine;
|
|
54117
54139
|
}
|
|
54118
|
-
this.tableData.
|
|
54140
|
+
topData = this.tableData.slice(0, noSortCount);
|
|
54141
|
+
restData = this.tableData.slice(noSortCount);
|
|
54142
|
+
restData.sort((a, b) => {
|
|
54119
54143
|
if (typeof a[this.sortParams.sort] == "number" && typeof b[this.sortParams.sort] == "number") {
|
|
54120
54144
|
let _a = isNaN(parseFloat(a[this.sortParams.sort])) ? 0 : parseFloat(a[this.sortParams.sort]);
|
|
54121
54145
|
let _b = isNaN(parseFloat(b[this.sortParams.sort])) ? 0 : parseFloat(b[this.sortParams.sort]);
|
|
@@ -54127,11 +54151,15 @@ const __vue2_script$15 = {
|
|
|
54127
54151
|
}
|
|
54128
54152
|
});
|
|
54129
54153
|
if (this.noSortLine > -1) {
|
|
54130
|
-
this.tableData
|
|
54154
|
+
this.tableData = [...topData, ...restData];
|
|
54155
|
+
} else {
|
|
54156
|
+
this.tableData = [...restData];
|
|
54131
54157
|
}
|
|
54132
54158
|
}
|
|
54133
54159
|
this.$nextTick().then(() => {
|
|
54160
|
+
var _a;
|
|
54134
54161
|
this.gridApi.refreshCells({ force: true });
|
|
54162
|
+
(_a = this.gridApi) == null ? void 0 : _a.redrawRows();
|
|
54135
54163
|
});
|
|
54136
54164
|
}
|
|
54137
54165
|
this.$emit("on-sort-change", sortParams);
|
|
@@ -54347,6 +54375,11 @@ const __vue2_script$15 = {
|
|
|
54347
54375
|
agColumn.rowDrag = column.rowDrag;
|
|
54348
54376
|
}
|
|
54349
54377
|
agColumn.sortable = column.sortable;
|
|
54378
|
+
if (column.comparator) {
|
|
54379
|
+
agColumn.comparator = column.comparator;
|
|
54380
|
+
} else {
|
|
54381
|
+
agColumn.comparator = () => 0;
|
|
54382
|
+
}
|
|
54350
54383
|
if (column.type == "index") {
|
|
54351
54384
|
agColumn.cellRenderer = function(params) {
|
|
54352
54385
|
if (params.node.rowPinned) {
|
|
@@ -54828,6 +54861,7 @@ const __vue2_script$15 = {
|
|
|
54828
54861
|
this.searchParams
|
|
54829
54862
|
)
|
|
54830
54863
|
).then(async (result) => {
|
|
54864
|
+
var _a;
|
|
54831
54865
|
if (result) {
|
|
54832
54866
|
this.overlayNoRowsTemplate = '<span style="padding: 10px;">\u6570\u636E\u4E3A\u7A7A</span>';
|
|
54833
54867
|
this.$emit("on-data-load", result);
|
|
@@ -54876,7 +54910,14 @@ const __vue2_script$15 = {
|
|
|
54876
54910
|
}
|
|
54877
54911
|
});
|
|
54878
54912
|
}
|
|
54879
|
-
this.totalNumber = result.data.total || 0;
|
|
54913
|
+
this.totalNumber = ((_a = result == null ? void 0 : result.data) == null ? void 0 : _a.total) || 0;
|
|
54914
|
+
setTimeout(() => {
|
|
54915
|
+
if (this.gridApi) {
|
|
54916
|
+
this.refreshCells();
|
|
54917
|
+
this.redrawRows();
|
|
54918
|
+
console.log("dataApi refreshRows");
|
|
54919
|
+
}
|
|
54920
|
+
}, 0);
|
|
54880
54921
|
this.$emit("on-data-format-load", result);
|
|
54881
54922
|
}
|
|
54882
54923
|
this.tableLoading = false;
|
|
@@ -54887,6 +54928,13 @@ const __vue2_script$15 = {
|
|
|
54887
54928
|
});
|
|
54888
54929
|
} else if (!this.dataApi) {
|
|
54889
54930
|
this.totalNumber = this.value.length;
|
|
54931
|
+
setTimeout(() => {
|
|
54932
|
+
if (this.gridApi) {
|
|
54933
|
+
this.refreshCells();
|
|
54934
|
+
this.redrawRows();
|
|
54935
|
+
console.log("noDataApi refreshRows");
|
|
54936
|
+
}
|
|
54937
|
+
}, 0);
|
|
54890
54938
|
}
|
|
54891
54939
|
this.optionDropdownVisible = false;
|
|
54892
54940
|
},
|
|
@@ -64008,8 +64056,8 @@ var ConditionPanel = /* @__PURE__ */ function() {
|
|
|
64008
64056
|
return __component__$n.exports;
|
|
64009
64057
|
}();
|
|
64010
64058
|
/*!
|
|
64011
|
-
* Signature Pad v4.
|
|
64012
|
-
* (c)
|
|
64059
|
+
* Signature Pad v4.2.0 | https://github.com/szimek/signature_pad
|
|
64060
|
+
* (c) 2024 Szymon Nowak | Released under the MIT license
|
|
64013
64061
|
*/
|
|
64014
64062
|
class Point {
|
|
64015
64063
|
constructor(x, y, pressure, time) {
|
|
@@ -64214,8 +64262,9 @@ class SignaturePad extends SignatureEventTarget {
|
|
|
64214
64262
|
this.penColor = options.penColor || "black";
|
|
64215
64263
|
this.backgroundColor = options.backgroundColor || "rgba(0,0,0,0)";
|
|
64216
64264
|
this.compositeOperation = options.compositeOperation || "source-over";
|
|
64265
|
+
this.canvasContextOptions = "canvasContextOptions" in options ? options.canvasContextOptions : {};
|
|
64217
64266
|
this._strokeMoveUpdate = this.throttle ? throttle(SignaturePad.prototype._strokeUpdate, this.throttle) : SignaturePad.prototype._strokeUpdate;
|
|
64218
|
-
this._ctx = canvas.getContext("2d");
|
|
64267
|
+
this._ctx = canvas.getContext("2d", this.canvasContextOptions);
|
|
64219
64268
|
this.clear();
|
|
64220
64269
|
this.on();
|
|
64221
64270
|
}
|