@lemon-fe/components 1.2.15 → 1.3.0-alpha.1
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/LICENSE +9 -0
- package/README.md +17 -0
- package/es/data-grid/cell-editors/date.d.ts +2 -2
- package/es/data-grid/cell-editors/number.d.ts +2 -2
- package/es/data-grid/cell-editors/row.d.ts +2 -2
- package/es/data-grid/cell-editors/select.d.ts +3 -3
- package/es/data-grid/cell-editors/text.d.ts +2 -2
- package/es/data-grid/cell-editors/utils.d.ts +1 -1
- package/es/data-grid/components/custom-panel/index.d.ts +1 -1
- package/es/data-grid/components/custom-panel/item.d.ts +1 -1
- package/es/data-grid/components/custom-panel/typings.d.ts +1 -1
- package/es/data-grid/index.d.ts +8 -7
- package/es/data-grid/index.js +3 -11
- package/es/data-grid/index.less +1 -1
- package/es/data-grid/renderer/actions-renderer.d.ts +1 -1
- package/es/data-grid/renderer/actions.d.ts +1 -1
- package/es/data-grid/renderer/cell-delete-renderer.d.ts +1 -1
- package/es/data-grid/renderer/cell-index-renderer.d.ts +1 -1
- package/es/data-grid/renderer/cell-renderer.d.ts +1 -1
- package/es/data-grid/renderer/detali-cell-renderer.d.ts +1 -1
- package/es/data-grid/renderer/header-renderer.d.ts +1 -1
- package/es/data-grid/typings.d.ts +2 -2
- package/es/data-grid/utils.d.ts +1 -1
- package/es/index.d.ts +4 -3
- package/es/index.js +4 -2
- package/es/select-view/index.d.ts +1 -1
- package/package.json +9 -18
- package/es/data-grid/modules/clipboard/clipboard/clipboardService.d.ts +0 -62
- package/es/data-grid/modules/clipboard/clipboard/clipboardService.js +0 -1007
- package/es/data-grid/modules/clipboard/clipboardModule.d.ts +0 -2
- package/es/data-grid/modules/clipboard/clipboardModule.js +0 -10
- package/es/data-grid/modules/clipboard/main.d.ts +0 -1
- package/es/data-grid/modules/clipboard/main.js +0 -1
- package/es/data-grid/modules/clipboard/version.d.ts +0 -1
- package/es/data-grid/modules/clipboard/version.js +0 -2
- package/es/data-grid/modules/column-tool-panel/columnToolPanel/columnModelItem.d.ts +0 -26
- package/es/data-grid/modules/column-tool-panel/columnToolPanel/columnModelItem.js +0 -94
- package/es/data-grid/modules/column-tool-panel/columnToolPanel/columnToolPanel.d.ts +0 -32
- package/es/data-grid/modules/column-tool-panel/columnToolPanel/columnToolPanel.js +0 -272
- package/es/data-grid/modules/column-tool-panel/columnToolPanel/modelItemUtils.d.ts +0 -16
- package/es/data-grid/modules/column-tool-panel/columnToolPanel/modelItemUtils.js +0 -209
- package/es/data-grid/modules/column-tool-panel/columnToolPanel/pivotModePanel.d.ts +0 -9
- package/es/data-grid/modules/column-tool-panel/columnToolPanel/pivotModePanel.js +0 -68
- package/es/data-grid/modules/column-tool-panel/columnToolPanel/primaryColsHeaderPanel.d.ts +0 -32
- package/es/data-grid/modules/column-tool-panel/columnToolPanel/primaryColsHeaderPanel.js +0 -150
- package/es/data-grid/modules/column-tool-panel/columnToolPanel/primaryColsListPanel.d.ts +0 -44
- package/es/data-grid/modules/column-tool-panel/columnToolPanel/primaryColsListPanel.js +0 -455
- package/es/data-grid/modules/column-tool-panel/columnToolPanel/primaryColsListPanelItemDragFeature.d.ts +0 -26
- package/es/data-grid/modules/column-tool-panel/columnToolPanel/primaryColsListPanelItemDragFeature.js +0 -224
- package/es/data-grid/modules/column-tool-panel/columnToolPanel/primaryColsPanel.d.ts +0 -24
- package/es/data-grid/modules/column-tool-panel/columnToolPanel/primaryColsPanel.js +0 -123
- package/es/data-grid/modules/column-tool-panel/columnToolPanel/toolPanelColumnComp.d.ts +0 -37
- package/es/data-grid/modules/column-tool-panel/columnToolPanel/toolPanelColumnComp.js +0 -314
- package/es/data-grid/modules/column-tool-panel/columnToolPanel/toolPanelColumnGroupComp.d.ts +0 -51
- package/es/data-grid/modules/column-tool-panel/columnToolPanel/toolPanelColumnGroupComp.js +0 -406
- package/es/data-grid/modules/column-tool-panel/columnToolPanel/toolPanelContextMenu.d.ts +0 -24
- package/es/data-grid/modules/column-tool-panel/columnToolPanel/toolPanelContextMenu.js +0 -264
- package/es/data-grid/modules/column-tool-panel/columnsToolPanelModule.d.ts +0 -2
- package/es/data-grid/modules/column-tool-panel/columnsToolPanelModule.js +0 -29
- package/es/data-grid/modules/column-tool-panel/main.d.ts +0 -2
- package/es/data-grid/modules/column-tool-panel/main.js +0 -3
- package/es/data-grid/modules/column-tool-panel/version.d.ts +0 -1
- package/es/data-grid/modules/column-tool-panel/version.js +0 -2
- package/es/data-grid/modules/master-detail/main.d.ts +0 -1
- package/es/data-grid/modules/master-detail/main.js +0 -1
- package/es/data-grid/modules/master-detail/masterDetail/detailCellRenderer.d.ts +0 -14
- package/es/data-grid/modules/master-detail/masterDetail/detailCellRenderer.js +0 -144
- package/es/data-grid/modules/master-detail/masterDetail/detailCellRendererCtrl.d.ts +0 -19
- package/es/data-grid/modules/master-detail/masterDetail/detailCellRendererCtrl.js +0 -203
- package/es/data-grid/modules/master-detail/masterDetailModule.d.ts +0 -2
- package/es/data-grid/modules/master-detail/masterDetailModule.js +0 -18
- package/es/data-grid/modules/master-detail/version.d.ts +0 -1
- package/es/data-grid/modules/master-detail/version.js +0 -2
- package/es/data-grid/modules/menu/main.d.ts +0 -1
- package/es/data-grid/modules/menu/main.js +0 -1
- package/es/data-grid/modules/menu/menu/chartMenuItemMapper.d.ts +0 -13
- package/es/data-grid/modules/menu/menu/chartMenuItemMapper.js +0 -351
- package/es/data-grid/modules/menu/menu/contextMenu.d.ts +0 -13
- package/es/data-grid/modules/menu/menu/contextMenu.js +0 -267
- package/es/data-grid/modules/menu/menu/enterpriseMenu.d.ts +0 -66
- package/es/data-grid/modules/menu/menu/enterpriseMenu.js +0 -592
- package/es/data-grid/modules/menu/menu/menuItemMapper.d.ts +0 -13
- package/es/data-grid/modules/menu/menu/menuItemMapper.js +0 -328
- package/es/data-grid/modules/menu/menuModule.d.ts +0 -2
- package/es/data-grid/modules/menu/menuModule.js +0 -12
- package/es/data-grid/modules/menu/version.d.ts +0 -1
- package/es/data-grid/modules/menu/version.js +0 -2
- package/es/data-grid/modules/row-grouping/main.d.ts +0 -4
- package/es/data-grid/modules/row-grouping/main.js +0 -4
- package/es/data-grid/modules/row-grouping/rowGrouping/aggFuncService.d.ts +0 -23
- package/es/data-grid/modules/row-grouping/rowGrouping/aggFuncService.js +0 -250
- package/es/data-grid/modules/row-grouping/rowGrouping/aggregationStage.d.ts +0 -22
- package/es/data-grid/modules/row-grouping/rowGrouping/aggregationStage.js +0 -285
- package/es/data-grid/modules/row-grouping/rowGrouping/batchRemover.d.ts +0 -12
- package/es/data-grid/modules/row-grouping/rowGrouping/batchRemover.js +0 -77
- package/es/data-grid/modules/row-grouping/rowGrouping/columnDropZones/baseDropZonePanel.d.ts +0 -75
- package/es/data-grid/modules/row-grouping/rowGrouping/columnDropZones/baseDropZonePanel.js +0 -516
- package/es/data-grid/modules/row-grouping/rowGrouping/columnDropZones/dropZoneColumnComp.d.ts +0 -40
- package/es/data-grid/modules/row-grouping/rowGrouping/columnDropZones/dropZoneColumnComp.js +0 -367
- package/es/data-grid/modules/row-grouping/rowGrouping/columnDropZones/gridHeaderDropZones.d.ts +0 -11
- package/es/data-grid/modules/row-grouping/rowGrouping/columnDropZones/gridHeaderDropZones.js +0 -85
- package/es/data-grid/modules/row-grouping/rowGrouping/columnDropZones/pivotDropZonePanel.d.ts +0 -17
- package/es/data-grid/modules/row-grouping/rowGrouping/columnDropZones/pivotDropZonePanel.js +0 -139
- package/es/data-grid/modules/row-grouping/rowGrouping/columnDropZones/rowGroupDropZonePanel.d.ts +0 -15
- package/es/data-grid/modules/row-grouping/rowGrouping/columnDropZones/rowGroupDropZonePanel.js +0 -105
- package/es/data-grid/modules/row-grouping/rowGrouping/columnDropZones/valueDropZonePanel.d.ts +0 -15
- package/es/data-grid/modules/row-grouping/rowGrouping/columnDropZones/valueDropZonePanel.js +0 -105
- package/es/data-grid/modules/row-grouping/rowGrouping/filterAggregatesStage.d.ts +0 -9
- package/es/data-grid/modules/row-grouping/rowGrouping/filterAggregatesStage.js +0 -136
- package/es/data-grid/modules/row-grouping/rowGrouping/groupFilter/groupFilter.d.ts +0 -39
- package/es/data-grid/modules/row-grouping/rowGrouping/groupFilter/groupFilter.js +0 -319
- package/es/data-grid/modules/row-grouping/rowGrouping/groupFilter/groupFloatingFilter.d.ts +0 -23
- package/es/data-grid/modules/row-grouping/rowGrouping/groupFilter/groupFloatingFilter.js +0 -163
- package/es/data-grid/modules/row-grouping/rowGrouping/groupStage.d.ts +0 -48
- package/es/data-grid/modules/row-grouping/rowGrouping/groupStage.js +0 -740
- package/es/data-grid/modules/row-grouping/rowGrouping/pivotColDefService.d.ts +0 -24
- package/es/data-grid/modules/row-grouping/rowGrouping/pivotColDefService.js +0 -396
- package/es/data-grid/modules/row-grouping/rowGrouping/pivotStage.d.ts +0 -19
- package/es/data-grid/modules/row-grouping/rowGrouping/pivotStage.js +0 -182
- package/es/data-grid/modules/row-grouping/rowGroupingModule.d.ts +0 -2
- package/es/data-grid/modules/row-grouping/rowGroupingModule.js +0 -28
- package/es/data-grid/modules/row-grouping/version.d.ts +0 -1
- package/es/data-grid/modules/row-grouping/version.js +0 -2
- package/es/data-grid/modules/side-bar/main.d.ts +0 -2
- package/es/data-grid/modules/side-bar/main.js +0 -2
- package/es/data-grid/modules/side-bar/sideBar/common/toolPanelColDefService.d.ts +0 -11
- package/es/data-grid/modules/side-bar/sideBar/common/toolPanelColDefService.js +0 -216
- package/es/data-grid/modules/side-bar/sideBar/horizontalResizeComp.d.ts +0 -19
- package/es/data-grid/modules/side-bar/sideBar/horizontalResizeComp.js +0 -108
- package/es/data-grid/modules/side-bar/sideBar/sideBarButtonComp.d.ts +0 -16
- package/es/data-grid/modules/side-bar/sideBar/sideBarButtonComp.js +0 -84
- package/es/data-grid/modules/side-bar/sideBar/sideBarButtonsComp.d.ts +0 -18
- package/es/data-grid/modules/side-bar/sideBar/sideBarButtonsComp.js +0 -89
- package/es/data-grid/modules/side-bar/sideBar/sideBarComp.d.ts +0 -28
- package/es/data-grid/modules/side-bar/sideBar/sideBarComp.js +0 -325
- package/es/data-grid/modules/side-bar/sideBar/sideBarDefParser.d.ts +0 -10
- package/es/data-grid/modules/side-bar/sideBar/sideBarDefParser.js +0 -95
- package/es/data-grid/modules/side-bar/sideBar/toolPanelWrapper.d.ts +0 -17
- package/es/data-grid/modules/side-bar/sideBar/toolPanelWrapper.js +0 -103
- package/es/data-grid/modules/side-bar/sideBarModule.d.ts +0 -2
- package/es/data-grid/modules/side-bar/sideBarModule.js +0 -22
- package/es/data-grid/modules/side-bar/version.d.ts +0 -1
- package/es/data-grid/modules/side-bar/version.js +0 -2
|
@@ -1,264 +0,0 @@
|
|
|
1
|
-
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
|
|
2
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
3
|
-
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
4
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
5
|
-
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
6
|
-
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
7
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
8
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
9
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
10
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
11
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
12
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
13
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
14
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
15
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
16
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
17
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
18
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
19
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
20
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
21
|
-
var __decorate = this && this.__decorate || function (decorators, target, key, desc) {
|
|
22
|
-
var c = arguments.length,
|
|
23
|
-
r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
|
|
24
|
-
d;
|
|
25
|
-
if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
26
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
27
|
-
};
|
|
28
|
-
import { AgMenuItemComponent, AgMenuList, Autowired, Column, Component, PostConstruct, ProvidedColumnGroup, _ } from "@ag-grid-community/core";
|
|
29
|
-
export var ToolPanelContextMenu = /*#__PURE__*/function (_Component) {
|
|
30
|
-
_inherits(ToolPanelContextMenu, _Component);
|
|
31
|
-
var _super = _createSuper(ToolPanelContextMenu);
|
|
32
|
-
function ToolPanelContextMenu(column, mouseEvent, parentEl) {
|
|
33
|
-
var _this;
|
|
34
|
-
_classCallCheck(this, ToolPanelContextMenu);
|
|
35
|
-
_this = _super.call(this, /* html */"<div class=\"ag-menu\"></div>");
|
|
36
|
-
_this.column = column;
|
|
37
|
-
_this.mouseEvent = mouseEvent;
|
|
38
|
-
_this.parentEl = parentEl;
|
|
39
|
-
_this.displayName = null;
|
|
40
|
-
return _this;
|
|
41
|
-
}
|
|
42
|
-
_createClass(ToolPanelContextMenu, [{
|
|
43
|
-
key: "postConstruct",
|
|
44
|
-
value: function postConstruct() {
|
|
45
|
-
this.initializeProperties(this.column);
|
|
46
|
-
this.buildMenuItemMap();
|
|
47
|
-
if (this.column instanceof Column) {
|
|
48
|
-
this.displayName = this.columnModel.getDisplayNameForColumn(this.column, 'columnToolPanel');
|
|
49
|
-
} else {
|
|
50
|
-
this.displayName = this.columnModel.getDisplayNameForProvidedColumnGroup(null, this.column, 'columnToolPanel');
|
|
51
|
-
}
|
|
52
|
-
if (this.isActive()) {
|
|
53
|
-
this.mouseEvent.preventDefault();
|
|
54
|
-
this.displayContextMenu();
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
}, {
|
|
58
|
-
key: "initializeProperties",
|
|
59
|
-
value: function initializeProperties(column) {
|
|
60
|
-
if (column instanceof ProvidedColumnGroup) {
|
|
61
|
-
this.columns = column.getLeafColumns();
|
|
62
|
-
} else {
|
|
63
|
-
this.columns = [column];
|
|
64
|
-
}
|
|
65
|
-
this.allowGrouping = this.columns.some(function (col) {
|
|
66
|
-
return col.isPrimary() && col.isAllowRowGroup();
|
|
67
|
-
});
|
|
68
|
-
this.allowValues = this.columns.some(function (col) {
|
|
69
|
-
return col.isPrimary() && col.isAllowValue();
|
|
70
|
-
});
|
|
71
|
-
this.allowPivoting = this.columnModel.isPivotMode() && this.columns.some(function (col) {
|
|
72
|
-
return col.isPrimary() && col.isAllowPivot();
|
|
73
|
-
});
|
|
74
|
-
}
|
|
75
|
-
}, {
|
|
76
|
-
key: "buildMenuItemMap",
|
|
77
|
-
value: function buildMenuItemMap() {
|
|
78
|
-
var _this2 = this;
|
|
79
|
-
var localeTextFunc = this.localeService.getLocaleTextFunc();
|
|
80
|
-
this.menuItemMap = new Map();
|
|
81
|
-
this.menuItemMap.set('rowGroup', {
|
|
82
|
-
allowedFunction: function allowedFunction(col) {
|
|
83
|
-
return col.isPrimary() && col.isAllowRowGroup();
|
|
84
|
-
},
|
|
85
|
-
activeFunction: function activeFunction(col) {
|
|
86
|
-
return col.isRowGroupActive();
|
|
87
|
-
},
|
|
88
|
-
activateLabel: function activateLabel() {
|
|
89
|
-
return "".concat(localeTextFunc('groupBy', 'Group by'), " ").concat(_this2.displayName);
|
|
90
|
-
},
|
|
91
|
-
deactivateLabel: function deactivateLabel() {
|
|
92
|
-
return "".concat(localeTextFunc('ungroupBy', 'Un-Group by'), " ").concat(_this2.displayName);
|
|
93
|
-
},
|
|
94
|
-
activateFunction: function activateFunction() {
|
|
95
|
-
var groupedColumns = _this2.columnModel.getRowGroupColumns();
|
|
96
|
-
_this2.columnModel.setRowGroupColumns(_this2.addColumnsToList(groupedColumns), "toolPanelUi");
|
|
97
|
-
},
|
|
98
|
-
deActivateFunction: function deActivateFunction() {
|
|
99
|
-
var groupedColumns = _this2.columnModel.getRowGroupColumns();
|
|
100
|
-
_this2.columnModel.setRowGroupColumns(_this2.removeColumnsFromList(groupedColumns), "toolPanelUi");
|
|
101
|
-
},
|
|
102
|
-
addIcon: 'menuAddRowGroup',
|
|
103
|
-
removeIcon: 'menuRemoveRowGroup'
|
|
104
|
-
});
|
|
105
|
-
this.menuItemMap.set('value', {
|
|
106
|
-
allowedFunction: function allowedFunction(col) {
|
|
107
|
-
return col.isPrimary() && col.isAllowValue();
|
|
108
|
-
},
|
|
109
|
-
activeFunction: function activeFunction(col) {
|
|
110
|
-
return col.isValueActive();
|
|
111
|
-
},
|
|
112
|
-
activateLabel: function activateLabel() {
|
|
113
|
-
return localeTextFunc('addToValues', "Add ".concat(_this2.displayName, " to values"), [_this2.displayName]);
|
|
114
|
-
},
|
|
115
|
-
deactivateLabel: function deactivateLabel() {
|
|
116
|
-
return localeTextFunc('removeFromValues', "Remove ".concat(_this2.displayName, " from values"), [_this2.displayName]);
|
|
117
|
-
},
|
|
118
|
-
activateFunction: function activateFunction() {
|
|
119
|
-
var valueColumns = _this2.columnModel.getValueColumns();
|
|
120
|
-
_this2.columnModel.setValueColumns(_this2.addColumnsToList(valueColumns), "toolPanelUi");
|
|
121
|
-
},
|
|
122
|
-
deActivateFunction: function deActivateFunction() {
|
|
123
|
-
var valueColumns = _this2.columnModel.getValueColumns();
|
|
124
|
-
_this2.columnModel.setValueColumns(_this2.removeColumnsFromList(valueColumns), "toolPanelUi");
|
|
125
|
-
},
|
|
126
|
-
addIcon: 'valuePanel',
|
|
127
|
-
removeIcon: 'valuePanel'
|
|
128
|
-
});
|
|
129
|
-
this.menuItemMap.set('pivot', {
|
|
130
|
-
allowedFunction: function allowedFunction(col) {
|
|
131
|
-
return _this2.columnModel.isPivotMode() && col.isPrimary() && col.isAllowPivot();
|
|
132
|
-
},
|
|
133
|
-
activeFunction: function activeFunction(col) {
|
|
134
|
-
return col.isPivotActive();
|
|
135
|
-
},
|
|
136
|
-
activateLabel: function activateLabel() {
|
|
137
|
-
return localeTextFunc('addToLabels', "Add ".concat(_this2.displayName, " to labels"), [_this2.displayName]);
|
|
138
|
-
},
|
|
139
|
-
deactivateLabel: function deactivateLabel() {
|
|
140
|
-
return localeTextFunc('removeFromLabels', "Remove ".concat(_this2.displayName, " from labels"), [_this2.displayName]);
|
|
141
|
-
},
|
|
142
|
-
activateFunction: function activateFunction() {
|
|
143
|
-
var pivotColumns = _this2.columnModel.getPivotColumns();
|
|
144
|
-
_this2.columnModel.setPivotColumns(_this2.addColumnsToList(pivotColumns), "toolPanelUi");
|
|
145
|
-
},
|
|
146
|
-
deActivateFunction: function deActivateFunction() {
|
|
147
|
-
var pivotColumns = _this2.columnModel.getPivotColumns();
|
|
148
|
-
_this2.columnModel.setPivotColumns(_this2.removeColumnsFromList(pivotColumns), "toolPanelUi");
|
|
149
|
-
},
|
|
150
|
-
addIcon: 'pivotPanel',
|
|
151
|
-
removeIcon: 'pivotPanel'
|
|
152
|
-
});
|
|
153
|
-
}
|
|
154
|
-
}, {
|
|
155
|
-
key: "addColumnsToList",
|
|
156
|
-
value: function addColumnsToList(columnList) {
|
|
157
|
-
return _toConsumableArray(columnList).concat(this.columns.filter(function (col) {
|
|
158
|
-
return columnList.indexOf(col) === -1;
|
|
159
|
-
}));
|
|
160
|
-
}
|
|
161
|
-
}, {
|
|
162
|
-
key: "removeColumnsFromList",
|
|
163
|
-
value: function removeColumnsFromList(columnList) {
|
|
164
|
-
var _this3 = this;
|
|
165
|
-
return columnList.filter(function (col) {
|
|
166
|
-
return _this3.columns.indexOf(col) === -1;
|
|
167
|
-
});
|
|
168
|
-
}
|
|
169
|
-
}, {
|
|
170
|
-
key: "displayContextMenu",
|
|
171
|
-
value: function displayContextMenu() {
|
|
172
|
-
var _this4 = this;
|
|
173
|
-
var eGui = this.getGui();
|
|
174
|
-
var menuList = this.createBean(new AgMenuList());
|
|
175
|
-
var menuItemsMapped = this.getMappedMenuItems();
|
|
176
|
-
var localeTextFunc = this.localeService.getLocaleTextFunc();
|
|
177
|
-
var hideFunc = function hideFunc() {};
|
|
178
|
-
eGui.appendChild(menuList.getGui());
|
|
179
|
-
menuList.addMenuItems(menuItemsMapped);
|
|
180
|
-
menuList.addManagedListener(menuList, AgMenuItemComponent.EVENT_MENU_ITEM_SELECTED, function () {
|
|
181
|
-
_this4.parentEl.focus();
|
|
182
|
-
hideFunc();
|
|
183
|
-
});
|
|
184
|
-
var addPopupRes = this.popupService.addPopup({
|
|
185
|
-
modal: true,
|
|
186
|
-
eChild: eGui,
|
|
187
|
-
closeOnEsc: true,
|
|
188
|
-
afterGuiAttached: function afterGuiAttached() {
|
|
189
|
-
return _this4.focusService.focusInto(menuList.getGui());
|
|
190
|
-
},
|
|
191
|
-
ariaLabel: localeTextFunc('ariaLabelContextMenu', 'Context Menu'),
|
|
192
|
-
closedCallback: function closedCallback(e) {
|
|
193
|
-
if (e instanceof KeyboardEvent) {
|
|
194
|
-
_this4.parentEl.focus();
|
|
195
|
-
}
|
|
196
|
-
_this4.destroyBean(menuList);
|
|
197
|
-
}
|
|
198
|
-
});
|
|
199
|
-
if (addPopupRes) {
|
|
200
|
-
hideFunc = addPopupRes.hideFunc;
|
|
201
|
-
}
|
|
202
|
-
this.popupService.positionPopupUnderMouseEvent({
|
|
203
|
-
type: 'columnContextMenu',
|
|
204
|
-
mouseEvent: this.mouseEvent,
|
|
205
|
-
ePopup: eGui
|
|
206
|
-
});
|
|
207
|
-
}
|
|
208
|
-
}, {
|
|
209
|
-
key: "isActive",
|
|
210
|
-
value: function isActive() {
|
|
211
|
-
return this.allowGrouping || this.allowValues || this.allowPivoting;
|
|
212
|
-
}
|
|
213
|
-
}, {
|
|
214
|
-
key: "getMappedMenuItems",
|
|
215
|
-
value: function getMappedMenuItems() {
|
|
216
|
-
var _this5 = this;
|
|
217
|
-
var ret = [];
|
|
218
|
-
var _iterator = _createForOfIteratorHelper(this.menuItemMap.values()),
|
|
219
|
-
_step;
|
|
220
|
-
try {
|
|
221
|
-
var _loop = function _loop() {
|
|
222
|
-
var val = _step.value;
|
|
223
|
-
var isInactive = _this5.columns.some(function (col) {
|
|
224
|
-
return val.allowedFunction(col) && !val.activeFunction(col);
|
|
225
|
-
});
|
|
226
|
-
var isActive = _this5.columns.some(function (col) {
|
|
227
|
-
return val.allowedFunction(col) && val.activeFunction(col);
|
|
228
|
-
});
|
|
229
|
-
if (isInactive) {
|
|
230
|
-
ret.push({
|
|
231
|
-
name: val.activateLabel(_this5.displayName),
|
|
232
|
-
icon: _.createIconNoSpan(val.addIcon, _this5.gridOptionsService, null),
|
|
233
|
-
action: function action() {
|
|
234
|
-
return val.activateFunction();
|
|
235
|
-
}
|
|
236
|
-
});
|
|
237
|
-
}
|
|
238
|
-
if (isActive) {
|
|
239
|
-
ret.push({
|
|
240
|
-
name: val.deactivateLabel(_this5.displayName),
|
|
241
|
-
icon: _.createIconNoSpan(val.removeIcon, _this5.gridOptionsService, null),
|
|
242
|
-
action: function action() {
|
|
243
|
-
return val.deActivateFunction();
|
|
244
|
-
}
|
|
245
|
-
});
|
|
246
|
-
}
|
|
247
|
-
};
|
|
248
|
-
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
249
|
-
_loop();
|
|
250
|
-
}
|
|
251
|
-
} catch (err) {
|
|
252
|
-
_iterator.e(err);
|
|
253
|
-
} finally {
|
|
254
|
-
_iterator.f();
|
|
255
|
-
}
|
|
256
|
-
return ret;
|
|
257
|
-
}
|
|
258
|
-
}]);
|
|
259
|
-
return ToolPanelContextMenu;
|
|
260
|
-
}(Component);
|
|
261
|
-
__decorate([Autowired('columnModel')], ToolPanelContextMenu.prototype, "columnModel", void 0);
|
|
262
|
-
__decorate([Autowired('popupService')], ToolPanelContextMenu.prototype, "popupService", void 0);
|
|
263
|
-
__decorate([Autowired('focusService')], ToolPanelContextMenu.prototype, "focusService", void 0);
|
|
264
|
-
__decorate([PostConstruct], ToolPanelContextMenu.prototype, "postConstruct", null);
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { ModuleNames } from "@ag-grid-community/core";
|
|
2
|
-
import { PrimaryColsHeaderPanel } from "./columnToolPanel/primaryColsHeaderPanel";
|
|
3
|
-
import { PrimaryColsListPanel } from "./columnToolPanel/primaryColsListPanel";
|
|
4
|
-
import { ColumnToolPanel } from "./columnToolPanel/columnToolPanel";
|
|
5
|
-
import { PrimaryColsPanel } from "./columnToolPanel/primaryColsPanel";
|
|
6
|
-
import { RowGroupingModule } from "../row-grouping/main";
|
|
7
|
-
import { SideBarModule } from "../side-bar/main";
|
|
8
|
-
import { ModelItemUtils } from "./columnToolPanel/modelItemUtils";
|
|
9
|
-
import { VERSION } from "./version";
|
|
10
|
-
export var ColumnsToolPanelModule = {
|
|
11
|
-
version: VERSION,
|
|
12
|
-
moduleName: ModuleNames.ColumnsToolPanelModule,
|
|
13
|
-
beans: [ModelItemUtils],
|
|
14
|
-
agStackComponents: [{
|
|
15
|
-
componentName: 'AgPrimaryColsHeader',
|
|
16
|
-
componentClass: PrimaryColsHeaderPanel
|
|
17
|
-
}, {
|
|
18
|
-
componentName: 'AgPrimaryColsList',
|
|
19
|
-
componentClass: PrimaryColsListPanel
|
|
20
|
-
}, {
|
|
21
|
-
componentName: 'AgPrimaryCols',
|
|
22
|
-
componentClass: PrimaryColsPanel
|
|
23
|
-
}],
|
|
24
|
-
userComponents: [{
|
|
25
|
-
componentName: 'agColumnsToolPanel',
|
|
26
|
-
componentClass: ColumnToolPanel
|
|
27
|
-
}],
|
|
28
|
-
dependantModules: [RowGroupingModule, SideBarModule]
|
|
29
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const VERSION = "29.2.0";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { MasterDetailModule } from './masterDetailModule';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { MasterDetailModule } from "./masterDetailModule";
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Component, ICellRenderer, IDetailCellRendererParams } from "@ag-grid-community/core";
|
|
2
|
-
export declare class DetailCellRenderer extends Component implements ICellRenderer {
|
|
3
|
-
private static TEMPLATE;
|
|
4
|
-
private eDetailGrid;
|
|
5
|
-
private detailApi;
|
|
6
|
-
private params;
|
|
7
|
-
private ctrl;
|
|
8
|
-
init(params: IDetailCellRendererParams): void;
|
|
9
|
-
refresh(): boolean;
|
|
10
|
-
destroy(): void;
|
|
11
|
-
private selectAndSetTemplate;
|
|
12
|
-
private setDetailGrid;
|
|
13
|
-
private setRowData;
|
|
14
|
-
}
|
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
2
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
3
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
4
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
5
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
6
|
-
function _get() { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get.bind(); } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(arguments.length < 3 ? target : receiver); } return desc.value; }; } return _get.apply(this, arguments); }
|
|
7
|
-
function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; }
|
|
8
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
9
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
10
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
11
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
12
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
13
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
14
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
15
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
16
|
-
var __decorate = this && this.__decorate || function (decorators, target, key, desc) {
|
|
17
|
-
var c = arguments.length,
|
|
18
|
-
r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
|
|
19
|
-
d;
|
|
20
|
-
if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
21
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
22
|
-
};
|
|
23
|
-
import { Component, Grid, RefSelector, _ } from "@ag-grid-community/core";
|
|
24
|
-
import { DetailCellRendererCtrl } from "./detailCellRendererCtrl";
|
|
25
|
-
export var DetailCellRenderer = /*#__PURE__*/function (_Component) {
|
|
26
|
-
_inherits(DetailCellRenderer, _Component);
|
|
27
|
-
var _super = _createSuper(DetailCellRenderer);
|
|
28
|
-
function DetailCellRenderer() {
|
|
29
|
-
_classCallCheck(this, DetailCellRenderer);
|
|
30
|
-
return _super.apply(this, arguments);
|
|
31
|
-
}
|
|
32
|
-
_createClass(DetailCellRenderer, [{
|
|
33
|
-
key: "init",
|
|
34
|
-
value: function init(params) {
|
|
35
|
-
var _this = this;
|
|
36
|
-
this.params = params;
|
|
37
|
-
this.selectAndSetTemplate();
|
|
38
|
-
var compProxy = {
|
|
39
|
-
addOrRemoveCssClass: function addOrRemoveCssClass(cssClassName, on) {
|
|
40
|
-
return _this.addOrRemoveCssClass(cssClassName, on);
|
|
41
|
-
},
|
|
42
|
-
addOrRemoveDetailGridCssClass: function addOrRemoveDetailGridCssClass(cssClassName, on) {
|
|
43
|
-
return _this.eDetailGrid.classList.toggle(cssClassName, on);
|
|
44
|
-
},
|
|
45
|
-
setDetailGrid: function setDetailGrid(gridOptions) {
|
|
46
|
-
return _this.setDetailGrid(gridOptions);
|
|
47
|
-
},
|
|
48
|
-
setRowData: function setRowData(rowData) {
|
|
49
|
-
return _this.setRowData(rowData);
|
|
50
|
-
},
|
|
51
|
-
getGui: function getGui() {
|
|
52
|
-
return _this.eDetailGrid;
|
|
53
|
-
}
|
|
54
|
-
};
|
|
55
|
-
this.ctrl = this.createManagedBean(new DetailCellRendererCtrl());
|
|
56
|
-
this.ctrl.init(compProxy, params);
|
|
57
|
-
}
|
|
58
|
-
}, {
|
|
59
|
-
key: "refresh",
|
|
60
|
-
value: function refresh() {
|
|
61
|
-
return this.ctrl && this.ctrl.refresh();
|
|
62
|
-
}
|
|
63
|
-
// this is a user component, and IComponent has "public destroy()" as part of the interface.
|
|
64
|
-
// so we need to override destroy() just to make the method public.
|
|
65
|
-
}, {
|
|
66
|
-
key: "destroy",
|
|
67
|
-
value: function destroy() {
|
|
68
|
-
_get(_getPrototypeOf(DetailCellRenderer.prototype), "destroy", this).call(this);
|
|
69
|
-
}
|
|
70
|
-
}, {
|
|
71
|
-
key: "selectAndSetTemplate",
|
|
72
|
-
value: function selectAndSetTemplate() {
|
|
73
|
-
var _this2 = this;
|
|
74
|
-
if (this.params.pinned) {
|
|
75
|
-
this.setTemplate('<div class="ag-details-row"></div>');
|
|
76
|
-
return;
|
|
77
|
-
}
|
|
78
|
-
var setDefaultTemplate = function setDefaultTemplate() {
|
|
79
|
-
_this2.setTemplate(DetailCellRenderer.TEMPLATE);
|
|
80
|
-
};
|
|
81
|
-
if (_.missing(this.params.template)) {
|
|
82
|
-
// use default template
|
|
83
|
-
setDefaultTemplate();
|
|
84
|
-
} else {
|
|
85
|
-
// use user provided template
|
|
86
|
-
if (typeof this.params.template === 'string') {
|
|
87
|
-
this.setTemplate(this.params.template);
|
|
88
|
-
} else if (typeof this.params.template === 'function') {
|
|
89
|
-
var templateFunc = this.params.template;
|
|
90
|
-
var template = templateFunc(this.params);
|
|
91
|
-
this.setTemplate(template);
|
|
92
|
-
} else {
|
|
93
|
-
console.warn('AG Grid: detailCellRendererParams.template should be function or string');
|
|
94
|
-
setDefaultTemplate();
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
if (this.eDetailGrid == null) {
|
|
98
|
-
console.warn('AG Grid: reference to eDetailGrid was missing from the details template. ' + 'Please add ref="eDetailGrid" to the template.');
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
}, {
|
|
102
|
-
key: "setDetailGrid",
|
|
103
|
-
value: function setDetailGrid(gridOptions) {
|
|
104
|
-
if (!this.eDetailGrid) {
|
|
105
|
-
return;
|
|
106
|
-
}
|
|
107
|
-
// AG-1715
|
|
108
|
-
// this is only needed when reactUi=false, once we remove the old way
|
|
109
|
-
// of doing react, and Master / Details is all native React, then we
|
|
110
|
-
// can remove this code.
|
|
111
|
-
var agGridReact = this.context.getBean('agGridReact');
|
|
112
|
-
var agGridReactCloned = agGridReact ? _.cloneObject(agGridReact) : undefined;
|
|
113
|
-
// when we create detail grid, the detail grid needs frameworkComponentWrapper so that
|
|
114
|
-
// it created child components correctly, ie Angular detail grid can have Angular cell renderer.
|
|
115
|
-
// this is only used by Angular and Vue, as React uses native React AG Grid detail grids
|
|
116
|
-
var frameworkComponentWrapper = this.context.getBean('frameworkComponentWrapper');
|
|
117
|
-
var frameworkOverrides = this.getFrameworkOverrides();
|
|
118
|
-
// tslint:disable-next-line
|
|
119
|
-
new Grid(this.eDetailGrid, gridOptions, {
|
|
120
|
-
frameworkOverrides: frameworkOverrides,
|
|
121
|
-
providedBeanInstances: {
|
|
122
|
-
agGridReact: agGridReactCloned,
|
|
123
|
-
frameworkComponentWrapper: frameworkComponentWrapper
|
|
124
|
-
}
|
|
125
|
-
});
|
|
126
|
-
this.detailApi = gridOptions.api;
|
|
127
|
-
this.ctrl.registerDetailWithMaster(gridOptions.api, gridOptions.columnApi);
|
|
128
|
-
this.addDestroyFunc(function () {
|
|
129
|
-
if (gridOptions.api) {
|
|
130
|
-
gridOptions.api.destroy();
|
|
131
|
-
}
|
|
132
|
-
});
|
|
133
|
-
}
|
|
134
|
-
}, {
|
|
135
|
-
key: "setRowData",
|
|
136
|
-
value: function setRowData(rowData) {
|
|
137
|
-
// ensure detail grid api still exists (grid may be destroyed when async call tries to set data)
|
|
138
|
-
this.detailApi && this.detailApi.setRowData(rowData);
|
|
139
|
-
}
|
|
140
|
-
}]);
|
|
141
|
-
return DetailCellRenderer;
|
|
142
|
-
}(Component);
|
|
143
|
-
DetailCellRenderer.TEMPLATE = "<div class=\"ag-details-row\" role=\"gridcell\">\n <div ref=\"eDetailGrid\" class=\"ag-details-grid\" role=\"presentation\"></div>\n </div>";
|
|
144
|
-
__decorate([RefSelector('eDetailGrid')], DetailCellRenderer.prototype, "eDetailGrid", void 0);
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { BeanStub, ColumnApi, GridApi, IDetailCellRendererCtrl, IDetailCellRendererParams, IDetailCellRenderer } from "@ag-grid-community/core";
|
|
2
|
-
export declare class DetailCellRendererCtrl extends BeanStub implements IDetailCellRendererCtrl {
|
|
3
|
-
private readonly rowPositionUtils;
|
|
4
|
-
private readonly focusService;
|
|
5
|
-
private params;
|
|
6
|
-
private comp;
|
|
7
|
-
private loadRowDataVersion;
|
|
8
|
-
private needRefresh;
|
|
9
|
-
private refreshStrategy;
|
|
10
|
-
init(comp: IDetailCellRenderer, params: IDetailCellRendererParams): void;
|
|
11
|
-
private onFullWidthRowFocused;
|
|
12
|
-
private setAutoHeightClasses;
|
|
13
|
-
private setupRefreshStrategy;
|
|
14
|
-
private addThemeToDetailGrid;
|
|
15
|
-
private createDetailGrid;
|
|
16
|
-
registerDetailWithMaster(api: GridApi, columnApi: ColumnApi): void;
|
|
17
|
-
private loadRowData;
|
|
18
|
-
refresh(): boolean;
|
|
19
|
-
}
|