@indfnd/common 1.1.45 → 1.1.48

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 CHANGED
@@ -2,6 +2,21 @@
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.48](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.1.46...v1.1.48) (2026-02-10)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * 添加报表自定义样式 ([daf74fb](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/daf74fbb603d7d3d921369bea363fe51e5f14716))
11
+ * 添加报表自定义样式 ([b3496e0](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/b3496e0f7035f1ac58d43f6ce2d4c6e379149339))
12
+
13
+ ### [1.1.46](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.1.45...v1.1.46) (2026-02-02)
14
+
15
+
16
+ ### Bug Fixes
17
+
18
+ * 默认选中结点颜色支持自定义 ([e1bfbd9](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/e1bfbd9d347fb15b81efb2865087780cc8ae0873))
19
+
5
20
  ### [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
21
 
7
22
 
@@ -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.23";
35
+ var VERSION2 = "4.17.21";
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,28 +1918,8 @@ var lodash = { exports: {} };
1918
1918
  }
1919
1919
  function baseUnset(object, path) {
1920
1920
  path = castPath(path, object);
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))];
1921
+ object = parent(object, path);
1922
+ return object == null || delete object[toKey(last(path))];
1943
1923
  }
1944
1924
  function baseUpdate(object, path, updater, customizer) {
1945
1925
  return baseSet(object, path, updater(baseGet(object, path)), customizer);
@@ -5480,7 +5460,7 @@ var lodash = { exports: {} };
5480
5460
  })(lodash, lodash.exports);
5481
5461
  var _ = lodash.exports;
5482
5462
  const name$1 = "@indfnd/common";
5483
- const version = "1.1.44";
5463
+ const version = "1.1.47";
5484
5464
  const author = "huxuetong";
5485
5465
  const publishConfig = {
5486
5466
  registry: "https://registry.npmjs.org/"
@@ -5535,16 +5515,17 @@ const dependencies = {
5535
5515
  "file-saver": "^2.0.5",
5536
5516
  signature_pad: "^4.1.7",
5537
5517
  vuedraggable: "^2.24.3",
5518
+ wangeditor: "^3.1.1",
5538
5519
  "xe-utils": "3",
5539
5520
  xlsx: "^0.17.2",
5540
- "xlsx-populate": "^1.11.0",
5541
- wangeditor: "^3.1.1"
5521
+ "xlsx-populate": "^1.11.0"
5542
5522
  };
5543
5523
  const devDependencies = {
5544
5524
  "@indfnd/utils": "^0.1.33",
5545
5525
  "ag-grid-community": "^30.1.0",
5546
5526
  "ag-grid-enterprise": "^30.1.0",
5547
5527
  "ag-grid-vue": "^30.1.0",
5528
+ axios: "^0.24.0",
5548
5529
  eslint: "^3.19.0",
5549
5530
  "eslint-config-prettier": "^8.5.0",
5550
5531
  "eslint-plugin-prettier": "^4.2.1",
@@ -5569,8 +5550,7 @@ const devDependencies = {
5569
5550
  "vue-router": "^3.5.3",
5570
5551
  "vue-template-compiler": "^2.6.12",
5571
5552
  "vue-tsc": "^1.8.8",
5572
- vuex: "^3.6.2",
5573
- axios: "^0.24.0"
5553
+ vuex: "^3.6.2"
5574
5554
  };
5575
5555
  const engines = {
5576
5556
  node: ">= 16"
@@ -52567,7 +52547,7 @@ var render$15 = function() {
52567
52547
  var _vm = this;
52568
52548
  var _h = _vm.$createElement;
52569
52549
  var _c = _vm._self._c || _h;
52570
- return _c("iSwitch", { attrs: { "size": _vm.getCellRendererParams.size || "", "disabled": _vm.getCellRendererParams.disabled || false, "true-color": _vm.getCellRendererParams.trueColor || "", "false-color": _vm.getCellRendererParams.falseColor || "" }, on: { "on-change": _vm.change }, model: { value: _vm.getStatus, callback: function($$v) {
52550
+ return _c("iSwitch", { attrs: { "size": _vm.getCellRendererParams.size || "small", "disabled": _vm.getCellRendererParams.disabled || false, "true-color": _vm.getCellRendererParams.trueColor || "", "false-color": _vm.getCellRendererParams.falseColor || "" }, on: { "on-change": _vm.change }, model: { value: _vm.getStatus, callback: function($$v) {
52571
52551
  _vm.getStatus = $$v;
52572
52552
  }, expression: "getStatus" } }, [_c("span", { attrs: { "slot": "open" }, slot: "open" }, [_vm._v(_vm._s(_vm.getEnumList[0].V || ""))]), _c("span", { attrs: { "slot": "close" }, slot: "close" }, [_vm._v(_vm._s(_vm.getEnumList[1].V || ""))])]);
52573
52553
  };
@@ -53246,7 +53226,7 @@ var render$14 = function() {
53246
53226
  var _vm = this;
53247
53227
  var _h = _vm.$createElement;
53248
53228
  var _c = _vm._self._c || _h;
53249
- return _c("div", { staticClass: "lambo-grid-table", class: [_vm.fullSreen ? "fullscreen-fixed" : ""] }, [_c("div", { directives: [{ name: "show", rawName: "v-show", value: _vm.$slots.search, expression: "$slots.search" }], ref: "search", staticClass: "search" }, [_vm._t("search")], 2), _c("div", { directives: [{ name: "show", rawName: "v-show", value: _vm.$slots.tip, expression: "$slots.tip" }], ref: "tip", staticClass: "tip" }, [_vm._t("tip")], 2), _c("div", { directives: [{ name: "show", rawName: "v-show", value: _vm.$slots.important - _vm.tip, expression: "$slots.important - tip" }], ref: "important-tip", staticClass: "important-tip" }, [_c("Icon", { attrs: { "type": "md-information-circle" } }), _vm._t("important-tip")], 2), _c("div", { ref: "buttons", staticClass: "other-button" }, [_c("Row", [[_c("i-col", { staticStyle: { "text-align": "left" }, attrs: { "flex": "1 1 0%" } }, [_c("IndButtonGroup", { attrs: { "split": "", "mb": "" } }, [_vm._t("buttons")], 2)], 1)], _c("i-col", { directives: [{ name: "show", rawName: "v-show", value: _vm.showUnitSwitch && _vm.isShowUnitSwitch || _vm.showTableOption || _vm.$slots.options, expression: "(showUnitSwitch && isShowUnitSwitch) || showTableOption || $slots.options" }], staticStyle: { "text-align": "right" }, attrs: { "flex": "0 0 auto" } }, [_c("div", { staticClass: "ind-flex end" }, [_c("div", { staticStyle: { "line-height": "var(--ivu-form-item-content-line-height)", "padding-bottom": "calc(var(--ind-table-button-padding) + 2px)", "margin-right": "10px" } }, [_vm._t("options")], 2), _vm.showZeroSwitch ? _c("IndZeroRadio", { staticStyle: { "margin-bottom": "var(--ind-unit-switch-bottom)", "line-height": "1" }, attrs: { "zeroTitle": _vm.switchZeroTitle }, model: { value: _vm.showZero, callback: function($$v) {
53229
+ return _c("div", { staticClass: "lambo-grid-table", class: [_vm.fullSreen ? "fullscreen-fixed" : "", _vm.mini ? "mini-theme" : ""] }, [_c("div", { directives: [{ name: "show", rawName: "v-show", value: _vm.$slots.search, expression: "$slots.search" }], ref: "search", staticClass: "search" }, [_vm._t("search")], 2), _c("div", { directives: [{ name: "show", rawName: "v-show", value: _vm.$slots.tip, expression: "$slots.tip" }], ref: "tip", staticClass: "tip" }, [_vm._t("tip")], 2), _c("div", { directives: [{ name: "show", rawName: "v-show", value: _vm.$slots.important - _vm.tip, expression: "$slots.important - tip" }], ref: "important-tip", staticClass: "important-tip" }, [_c("Icon", { attrs: { "type": "md-information-circle" } }), _vm._t("important-tip")], 2), _c("div", { ref: "buttons", staticClass: "other-button" }, [_c("Row", [[_c("i-col", { staticStyle: { "text-align": "left" }, attrs: { "flex": "1 1 0%" } }, [_c("IndButtonGroup", { attrs: { "split": "", "mb": "" } }, [_vm._t("buttons")], 2)], 1)], _c("i-col", { directives: [{ name: "show", rawName: "v-show", value: _vm.showUnitSwitch && _vm.isShowUnitSwitch || _vm.showTableOption || _vm.$slots.options, expression: "(showUnitSwitch && isShowUnitSwitch) || showTableOption || $slots.options" }], staticStyle: { "text-align": "right" }, attrs: { "flex": "0 0 auto" } }, [_c("div", { staticClass: "ind-flex end" }, [_c("div", { staticStyle: { "line-height": "var(--ivu-form-item-content-line-height)", "padding-bottom": "calc(var(--ind-table-button-padding) + 2px)", "margin-right": "10px" } }, [_vm._t("options")], 2), _vm.showZeroSwitch ? _c("IndZeroRadio", { staticStyle: { "margin-bottom": "var(--ind-unit-switch-bottom)", "line-height": "1" }, attrs: { "zeroTitle": _vm.switchZeroTitle }, model: { value: _vm.showZero, callback: function($$v) {
53250
53230
  _vm.showZero = $$v;
53251
53231
  }, expression: "showZero" } }) : _vm._e(), _vm.showUnitSwitch && _vm.isShowUnitSwitch ? _c("IndUnitRadio", { staticStyle: { "margin-bottom": "var(--ind-unit-switch-bottom)", "line-height": "1" }, attrs: { "isShowWX": _vm.isShowWX, "isShowJ": _vm.isShowJ }, model: { value: _vm.unitType, callback: function($$v) {
53252
53232
  _vm.unitType = $$v;
@@ -53262,7 +53242,7 @@ var render$14 = function() {
53262
53242
  _vm.checkAllGroup = $$v;
53263
53243
  }, expression: "checkAllGroup" } }, [_vm._l(_vm.columns, function(item2) {
53264
53244
  return [item2.title ? _c("Checkbox", { key: item2.field, attrs: { "label": item2.title } }, [_vm._v(_vm._s(item2.title))]) : _vm._e()];
53265
- }), _c("br"), _c("br"), _vm._v(" \xA0 "), _c("Button", { staticClass: "table-column-select-btn", attrs: { "type": "default" }, on: { "click": _vm.columnSave } }, [_vm._v("\u4FDD \u5B58")]), _vm._v(" \xA0 "), _c("Button", { staticClass: "table-column-select-btn", attrs: { "type": "default" }, on: { "click": _vm.columnClear } }, [_vm._v("\u6E05 \u9664")])], 2), _c("Button", { directives: [{ name: "show", rawName: "v-show", value: _vm.btnSel != "1", expression: "btnSel != '1'" }], staticStyle: { "position": "absolute", "top": "10px", "right": "10px" }, attrs: { "type": "primary", "icon": "md-close", "size": "small", "title": "\u5173\u95ED" }, on: { "click": _vm.closeTableSettingDropdown } })], 1)], 1)], 1)])], 2)], 1), _c("IndLoadingPanel", { attrs: { "loading": _vm.tableLoading } }, [!_vm.refreshTable ? _c("ag-grid-vue", _vm._g(_vm._b({ ref: "tableRef", staticClass: "ag-theme-balham", style: { height: _vm.height && !_vm.fullSreen ? _vm.height + "px" : "100%" }, attrs: { "id": "agTable", "suppressCellFocus": true, "suppressMenu": true, "suppressContextMenu": !_vm.showTableOption, "defaultColDef": _vm.defaultColDef, "headerHeight": _vm.headerHeight, "rowHeight": _vm.getRowHeightProp ? _vm.getRowHeightProp() : _vm.getRowHeight(), "getRowHeight": _vm.getRowHeightProp || _vm.getRowHeight, "rowData": _vm.rowDataFiltered, "suppressRowClickSelection": (_vm.isPc || _vm.isEditTable) && _vm.rowSelection == "multiple" || _vm.suppressRowClickSelection, "rowSelection": _vm.rowSelection, "rowMultiSelectWithClick": !_vm.isPc && !_vm.isEditTable && (_vm.rowSelection == "multiple" || _vm.rowMultiSelectWithClick), "columnDefs": _vm.tableColumns, "localeText": _vm.localeText, "singleClickEdit": true, "pinnedTopRowData": _vm.topRows, "pinnedBottomRowData": _vm.pinnedBottomRowData, "suppressRowTransform": true, "stopEditingWhenCellsLoseFocus": true, "getRowClass": _vm.getRowClassCommon, "getRowId": _vm.getRowId, "tooltipShowDelay": 500, "overlayNoRowsTemplate": _vm.noRowsTemplate || _vm.overlayNoRowsTemplate, "treeData": _vm.treeData, "getDataPath": _vm.getDataPath, "autoGroupColumnDef": _vm.autoGroupColumnDef, "groupDisplayType": _vm.groupDisplayType, "groupSelectsChildren": _vm.groupSelectsChildren, "groupDefaultExpanded": _vm.groupDefaultExpanded, "getContextMenuItems": _vm.getContextMenuItems }, on: { "sortChanged": _vm.sortChanged, "selection-changed": _vm.selectionChanged, "rowSelected": _vm.rowSelected, "grid-ready": _vm.onGridReady, "cellClicked": _vm.cellClicked, "cellDoubleClicked": _vm.cellDoubleClicked } }, "ag-grid-vue", _vm.$attrs, false), _vm.$listeners)) : _vm._e()], 1), _vm.showBottom ? _c("div", { ref: "bottom" }, [_c("Row", [_c("i-col", { staticStyle: { "text-align": "left" }, attrs: { "span": "18" } }, [_c("Page", { directives: [{ name: "show", rawName: "v-show", value: !_vm.disablePage, expression: "!disablePage" }], attrs: { "size": "small", "total": _vm.totalNumber, "current": _vm.currentPage, "page-size": _vm.limitNumber, "page-size-opts": _vm.pageSizeOpts, "show-sizer": "", "show-total": "", "show-elevator": "" }, on: { "on-change": _vm.onPageChange, "on-page-size-change": _vm.onPageSizeChange } }), _c("span", { directives: [{ name: "show", rawName: "v-show", value: _vm.disablePage, expression: "disablePage" }] }, [_vm._v("\u5171 " + _vm._s(_vm.tableData.length) + " \u6761\u6570\u636E")])], 1)], 1)], 1) : _vm._e()], 1);
53245
+ }), _c("br"), _c("br"), _vm._v(" \xA0 "), _c("Button", { staticClass: "table-column-select-btn", attrs: { "type": "default" }, on: { "click": _vm.columnSave } }, [_vm._v("\u4FDD \u5B58")]), _vm._v(" \xA0 "), _c("Button", { staticClass: "table-column-select-btn", attrs: { "type": "default" }, on: { "click": _vm.columnClear } }, [_vm._v("\u6E05 \u9664")])], 2), _c("Button", { directives: [{ name: "show", rawName: "v-show", value: _vm.btnSel != "1", expression: "btnSel != '1'" }], staticStyle: { "position": "absolute", "top": "10px", "right": "10px" }, attrs: { "type": "primary", "icon": "md-close", "size": "small", "title": "\u5173\u95ED" }, on: { "click": _vm.closeTableSettingDropdown } })], 1)], 1)], 1)])], 2)], 1), _c("IndLoadingPanel", { attrs: { "loading": _vm.tableLoading } }, [!_vm.refreshTable ? _c("ag-grid-vue", _vm._g(_vm._b({ ref: "tableRef", staticClass: "ag-theme-balham", style: { height: _vm.height && !_vm.fullSreen ? _vm.height + "px" : "100%" }, attrs: { "id": "agTable", "suppressCellFocus": true, "suppressMenu": true, "suppressContextMenu": !_vm.showTableOption, "defaultColDef": _vm.defaultColDef, "headerHeight": _vm.getHeaderHeight, "rowHeight": _vm.getRowHeightProp ? _vm.getRowHeightProp() : _vm.getRowHeight(), "getRowHeight": _vm.getRowHeightProp || _vm.getRowHeight, "rowData": _vm.rowDataFiltered, "suppressRowClickSelection": (_vm.isPc || _vm.isEditTable) && _vm.rowSelection == "multiple" || _vm.suppressRowClickSelection, "rowSelection": _vm.rowSelection, "rowMultiSelectWithClick": !_vm.isPc && !_vm.isEditTable && (_vm.rowSelection == "multiple" || _vm.rowMultiSelectWithClick), "columnDefs": _vm.tableColumns, "localeText": _vm.localeText, "singleClickEdit": true, "pinnedTopRowData": _vm.topRows, "pinnedBottomRowData": _vm.pinnedBottomRowData, "suppressRowTransform": true, "stopEditingWhenCellsLoseFocus": true, "getRowClass": _vm.getRowClassCommon, "getRowId": _vm.getRowId, "tooltipShowDelay": 500, "overlayNoRowsTemplate": _vm.noRowsTemplate || _vm.overlayNoRowsTemplate, "treeData": _vm.treeData, "getDataPath": _vm.getDataPath, "autoGroupColumnDef": _vm.autoGroupColumnDef, "groupDisplayType": _vm.groupDisplayType, "groupSelectsChildren": _vm.groupSelectsChildren, "groupDefaultExpanded": _vm.groupDefaultExpanded, "getContextMenuItems": _vm.getContextMenuItems }, on: { "sortChanged": _vm.sortChanged, "selection-changed": _vm.selectionChanged, "rowSelected": _vm.rowSelected, "grid-ready": _vm.onGridReady, "cellClicked": _vm.cellClicked, "cellDoubleClicked": _vm.cellDoubleClicked } }, "ag-grid-vue", _vm.$attrs, false), _vm.$listeners)) : _vm._e()], 1), _vm.showBottom ? _c("div", { ref: "bottom" }, [_c("Row", [_c("i-col", { staticStyle: { "text-align": "left" }, attrs: { "span": "18" } }, [_c("Page", { directives: [{ name: "show", rawName: "v-show", value: !_vm.disablePage, expression: "!disablePage" }], attrs: { "size": "small", "total": _vm.totalNumber, "current": _vm.currentPage, "page-size": _vm.limitNumber, "page-size-opts": _vm.pageSizeOpts, "show-sizer": "", "show-total": "", "show-elevator": "" }, on: { "on-change": _vm.onPageChange, "on-page-size-change": _vm.onPageSizeChange } }), _c("span", { directives: [{ name: "show", rawName: "v-show", value: _vm.disablePage, expression: "disablePage" }] }, [_vm._v("\u5171 " + _vm._s(_vm.tableData.length) + " \u6761\u6570\u636E")])], 1)], 1)], 1) : _vm._e()], 1);
53266
53246
  };
53267
53247
  var staticRenderFns$14 = [];
53268
53248
  function suppressNavigation$1(params) {
@@ -53372,6 +53352,10 @@ const __vue2_script$15 = {
53372
53352
  return ((_a = this.$config) == null ? void 0 : _a.agHeaderHeight) || 28;
53373
53353
  }
53374
53354
  },
53355
+ mini: {
53356
+ type: Boolean,
53357
+ default: false
53358
+ },
53375
53359
  rowMultiSelectWithClick: Boolean,
53376
53360
  pinnedTopRowData: Array,
53377
53361
  pinnedBottomRowData: Array,
@@ -53750,6 +53734,13 @@ const __vue2_script$15 = {
53750
53734
  },
53751
53735
  shareFullSreen() {
53752
53736
  return this.$store.state.app.isFullSreen;
53737
+ },
53738
+ getHeaderHeight() {
53739
+ if (this.mini) {
53740
+ return 21;
53741
+ } else {
53742
+ return this.headerHeight;
53743
+ }
53753
53744
  }
53754
53745
  },
53755
53746
  watch: {
@@ -54192,11 +54183,15 @@ const __vue2_script$15 = {
54192
54183
  this.fullSreen = !this.fullSreen;
54193
54184
  },
54194
54185
  getRowHeight() {
54195
- let heightEnum = {
54196
- "ind-default-theme": 42,
54197
- "ind-small-theme": 28
54198
- };
54199
- return (this.$config.agLineHeight || heightEnum[this.getTheme] || 0) + this.rowAddHeight;
54186
+ if (this.mini) {
54187
+ return 21;
54188
+ } else {
54189
+ let heightEnum = {
54190
+ "ind-default-theme": 42,
54191
+ "ind-small-theme": 28
54192
+ };
54193
+ return (this.$config.agLineHeight || heightEnum[this.getTheme] || 0) + this.rowAddHeight;
54194
+ }
54200
54195
  },
54201
54196
  onGridReady(params) {
54202
54197
  window.gridApi = this.gridApi = params.api;
@@ -64056,8 +64051,8 @@ var ConditionPanel = /* @__PURE__ */ function() {
64056
64051
  return __component__$n.exports;
64057
64052
  }();
64058
64053
  /*!
64059
- * Signature Pad v4.2.0 | https://github.com/szimek/signature_pad
64060
- * (c) 2024 Szymon Nowak | Released under the MIT license
64054
+ * Signature Pad v4.1.7 | https://github.com/szimek/signature_pad
64055
+ * (c) 2023 Szymon Nowak | Released under the MIT license
64061
64056
  */
64062
64057
  class Point {
64063
64058
  constructor(x, y, pressure, time) {
@@ -64262,9 +64257,8 @@ class SignaturePad extends SignatureEventTarget {
64262
64257
  this.penColor = options.penColor || "black";
64263
64258
  this.backgroundColor = options.backgroundColor || "rgba(0,0,0,0)";
64264
64259
  this.compositeOperation = options.compositeOperation || "source-over";
64265
- this.canvasContextOptions = "canvasContextOptions" in options ? options.canvasContextOptions : {};
64266
64260
  this._strokeMoveUpdate = this.throttle ? throttle(SignaturePad.prototype._strokeUpdate, this.throttle) : SignaturePad.prototype._strokeUpdate;
64267
- this._ctx = canvas.getContext("2d", this.canvasContextOptions);
64261
+ this._ctx = canvas.getContext("2d");
64268
64262
  this.clear();
64269
64263
  this.on();
64270
64264
  }