@lemon-fe/components 1.2.15 → 1.3.0-alpha.0

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.
Files changed (141) hide show
  1. package/es/data-grid/cell-editors/date.d.ts +2 -2
  2. package/es/data-grid/cell-editors/number.d.ts +2 -2
  3. package/es/data-grid/cell-editors/row.d.ts +2 -2
  4. package/es/data-grid/cell-editors/select.d.ts +3 -3
  5. package/es/data-grid/cell-editors/text.d.ts +2 -2
  6. package/es/data-grid/cell-editors/utils.d.ts +1 -1
  7. package/es/data-grid/components/custom-panel/index.d.ts +1 -1
  8. package/es/data-grid/components/custom-panel/item.d.ts +1 -1
  9. package/es/data-grid/components/custom-panel/typings.d.ts +1 -1
  10. package/es/data-grid/index.d.ts +8 -7
  11. package/es/data-grid/index.js +3 -11
  12. package/es/data-grid/index.less +1 -1
  13. package/es/data-grid/renderer/actions-renderer.d.ts +1 -1
  14. package/es/data-grid/renderer/actions.d.ts +1 -1
  15. package/es/data-grid/renderer/cell-delete-renderer.d.ts +1 -1
  16. package/es/data-grid/renderer/cell-index-renderer.d.ts +1 -1
  17. package/es/data-grid/renderer/cell-renderer.d.ts +1 -1
  18. package/es/data-grid/renderer/detali-cell-renderer.d.ts +1 -1
  19. package/es/data-grid/renderer/header-renderer.d.ts +1 -1
  20. package/es/data-grid/typings.d.ts +2 -2
  21. package/es/data-grid/utils.d.ts +1 -1
  22. package/es/index.d.ts +4 -3
  23. package/es/index.js +4 -2
  24. package/es/select-view/index.d.ts +1 -1
  25. package/package.json +5 -14
  26. package/es/data-grid/modules/clipboard/clipboard/clipboardService.d.ts +0 -62
  27. package/es/data-grid/modules/clipboard/clipboard/clipboardService.js +0 -1007
  28. package/es/data-grid/modules/clipboard/clipboardModule.d.ts +0 -2
  29. package/es/data-grid/modules/clipboard/clipboardModule.js +0 -10
  30. package/es/data-grid/modules/clipboard/main.d.ts +0 -1
  31. package/es/data-grid/modules/clipboard/main.js +0 -1
  32. package/es/data-grid/modules/clipboard/version.d.ts +0 -1
  33. package/es/data-grid/modules/clipboard/version.js +0 -2
  34. package/es/data-grid/modules/column-tool-panel/columnToolPanel/columnModelItem.d.ts +0 -26
  35. package/es/data-grid/modules/column-tool-panel/columnToolPanel/columnModelItem.js +0 -94
  36. package/es/data-grid/modules/column-tool-panel/columnToolPanel/columnToolPanel.d.ts +0 -32
  37. package/es/data-grid/modules/column-tool-panel/columnToolPanel/columnToolPanel.js +0 -272
  38. package/es/data-grid/modules/column-tool-panel/columnToolPanel/modelItemUtils.d.ts +0 -16
  39. package/es/data-grid/modules/column-tool-panel/columnToolPanel/modelItemUtils.js +0 -209
  40. package/es/data-grid/modules/column-tool-panel/columnToolPanel/pivotModePanel.d.ts +0 -9
  41. package/es/data-grid/modules/column-tool-panel/columnToolPanel/pivotModePanel.js +0 -68
  42. package/es/data-grid/modules/column-tool-panel/columnToolPanel/primaryColsHeaderPanel.d.ts +0 -32
  43. package/es/data-grid/modules/column-tool-panel/columnToolPanel/primaryColsHeaderPanel.js +0 -150
  44. package/es/data-grid/modules/column-tool-panel/columnToolPanel/primaryColsListPanel.d.ts +0 -44
  45. package/es/data-grid/modules/column-tool-panel/columnToolPanel/primaryColsListPanel.js +0 -455
  46. package/es/data-grid/modules/column-tool-panel/columnToolPanel/primaryColsListPanelItemDragFeature.d.ts +0 -26
  47. package/es/data-grid/modules/column-tool-panel/columnToolPanel/primaryColsListPanelItemDragFeature.js +0 -224
  48. package/es/data-grid/modules/column-tool-panel/columnToolPanel/primaryColsPanel.d.ts +0 -24
  49. package/es/data-grid/modules/column-tool-panel/columnToolPanel/primaryColsPanel.js +0 -123
  50. package/es/data-grid/modules/column-tool-panel/columnToolPanel/toolPanelColumnComp.d.ts +0 -37
  51. package/es/data-grid/modules/column-tool-panel/columnToolPanel/toolPanelColumnComp.js +0 -314
  52. package/es/data-grid/modules/column-tool-panel/columnToolPanel/toolPanelColumnGroupComp.d.ts +0 -51
  53. package/es/data-grid/modules/column-tool-panel/columnToolPanel/toolPanelColumnGroupComp.js +0 -406
  54. package/es/data-grid/modules/column-tool-panel/columnToolPanel/toolPanelContextMenu.d.ts +0 -24
  55. package/es/data-grid/modules/column-tool-panel/columnToolPanel/toolPanelContextMenu.js +0 -264
  56. package/es/data-grid/modules/column-tool-panel/columnsToolPanelModule.d.ts +0 -2
  57. package/es/data-grid/modules/column-tool-panel/columnsToolPanelModule.js +0 -29
  58. package/es/data-grid/modules/column-tool-panel/main.d.ts +0 -2
  59. package/es/data-grid/modules/column-tool-panel/main.js +0 -3
  60. package/es/data-grid/modules/column-tool-panel/version.d.ts +0 -1
  61. package/es/data-grid/modules/column-tool-panel/version.js +0 -2
  62. package/es/data-grid/modules/master-detail/main.d.ts +0 -1
  63. package/es/data-grid/modules/master-detail/main.js +0 -1
  64. package/es/data-grid/modules/master-detail/masterDetail/detailCellRenderer.d.ts +0 -14
  65. package/es/data-grid/modules/master-detail/masterDetail/detailCellRenderer.js +0 -144
  66. package/es/data-grid/modules/master-detail/masterDetail/detailCellRendererCtrl.d.ts +0 -19
  67. package/es/data-grid/modules/master-detail/masterDetail/detailCellRendererCtrl.js +0 -203
  68. package/es/data-grid/modules/master-detail/masterDetailModule.d.ts +0 -2
  69. package/es/data-grid/modules/master-detail/masterDetailModule.js +0 -18
  70. package/es/data-grid/modules/master-detail/version.d.ts +0 -1
  71. package/es/data-grid/modules/master-detail/version.js +0 -2
  72. package/es/data-grid/modules/menu/main.d.ts +0 -1
  73. package/es/data-grid/modules/menu/main.js +0 -1
  74. package/es/data-grid/modules/menu/menu/chartMenuItemMapper.d.ts +0 -13
  75. package/es/data-grid/modules/menu/menu/chartMenuItemMapper.js +0 -351
  76. package/es/data-grid/modules/menu/menu/contextMenu.d.ts +0 -13
  77. package/es/data-grid/modules/menu/menu/contextMenu.js +0 -267
  78. package/es/data-grid/modules/menu/menu/enterpriseMenu.d.ts +0 -66
  79. package/es/data-grid/modules/menu/menu/enterpriseMenu.js +0 -592
  80. package/es/data-grid/modules/menu/menu/menuItemMapper.d.ts +0 -13
  81. package/es/data-grid/modules/menu/menu/menuItemMapper.js +0 -328
  82. package/es/data-grid/modules/menu/menuModule.d.ts +0 -2
  83. package/es/data-grid/modules/menu/menuModule.js +0 -12
  84. package/es/data-grid/modules/menu/version.d.ts +0 -1
  85. package/es/data-grid/modules/menu/version.js +0 -2
  86. package/es/data-grid/modules/row-grouping/main.d.ts +0 -4
  87. package/es/data-grid/modules/row-grouping/main.js +0 -4
  88. package/es/data-grid/modules/row-grouping/rowGrouping/aggFuncService.d.ts +0 -23
  89. package/es/data-grid/modules/row-grouping/rowGrouping/aggFuncService.js +0 -250
  90. package/es/data-grid/modules/row-grouping/rowGrouping/aggregationStage.d.ts +0 -22
  91. package/es/data-grid/modules/row-grouping/rowGrouping/aggregationStage.js +0 -285
  92. package/es/data-grid/modules/row-grouping/rowGrouping/batchRemover.d.ts +0 -12
  93. package/es/data-grid/modules/row-grouping/rowGrouping/batchRemover.js +0 -77
  94. package/es/data-grid/modules/row-grouping/rowGrouping/columnDropZones/baseDropZonePanel.d.ts +0 -75
  95. package/es/data-grid/modules/row-grouping/rowGrouping/columnDropZones/baseDropZonePanel.js +0 -516
  96. package/es/data-grid/modules/row-grouping/rowGrouping/columnDropZones/dropZoneColumnComp.d.ts +0 -40
  97. package/es/data-grid/modules/row-grouping/rowGrouping/columnDropZones/dropZoneColumnComp.js +0 -367
  98. package/es/data-grid/modules/row-grouping/rowGrouping/columnDropZones/gridHeaderDropZones.d.ts +0 -11
  99. package/es/data-grid/modules/row-grouping/rowGrouping/columnDropZones/gridHeaderDropZones.js +0 -85
  100. package/es/data-grid/modules/row-grouping/rowGrouping/columnDropZones/pivotDropZonePanel.d.ts +0 -17
  101. package/es/data-grid/modules/row-grouping/rowGrouping/columnDropZones/pivotDropZonePanel.js +0 -139
  102. package/es/data-grid/modules/row-grouping/rowGrouping/columnDropZones/rowGroupDropZonePanel.d.ts +0 -15
  103. package/es/data-grid/modules/row-grouping/rowGrouping/columnDropZones/rowGroupDropZonePanel.js +0 -105
  104. package/es/data-grid/modules/row-grouping/rowGrouping/columnDropZones/valueDropZonePanel.d.ts +0 -15
  105. package/es/data-grid/modules/row-grouping/rowGrouping/columnDropZones/valueDropZonePanel.js +0 -105
  106. package/es/data-grid/modules/row-grouping/rowGrouping/filterAggregatesStage.d.ts +0 -9
  107. package/es/data-grid/modules/row-grouping/rowGrouping/filterAggregatesStage.js +0 -136
  108. package/es/data-grid/modules/row-grouping/rowGrouping/groupFilter/groupFilter.d.ts +0 -39
  109. package/es/data-grid/modules/row-grouping/rowGrouping/groupFilter/groupFilter.js +0 -319
  110. package/es/data-grid/modules/row-grouping/rowGrouping/groupFilter/groupFloatingFilter.d.ts +0 -23
  111. package/es/data-grid/modules/row-grouping/rowGrouping/groupFilter/groupFloatingFilter.js +0 -163
  112. package/es/data-grid/modules/row-grouping/rowGrouping/groupStage.d.ts +0 -48
  113. package/es/data-grid/modules/row-grouping/rowGrouping/groupStage.js +0 -740
  114. package/es/data-grid/modules/row-grouping/rowGrouping/pivotColDefService.d.ts +0 -24
  115. package/es/data-grid/modules/row-grouping/rowGrouping/pivotColDefService.js +0 -396
  116. package/es/data-grid/modules/row-grouping/rowGrouping/pivotStage.d.ts +0 -19
  117. package/es/data-grid/modules/row-grouping/rowGrouping/pivotStage.js +0 -182
  118. package/es/data-grid/modules/row-grouping/rowGroupingModule.d.ts +0 -2
  119. package/es/data-grid/modules/row-grouping/rowGroupingModule.js +0 -28
  120. package/es/data-grid/modules/row-grouping/version.d.ts +0 -1
  121. package/es/data-grid/modules/row-grouping/version.js +0 -2
  122. package/es/data-grid/modules/side-bar/main.d.ts +0 -2
  123. package/es/data-grid/modules/side-bar/main.js +0 -2
  124. package/es/data-grid/modules/side-bar/sideBar/common/toolPanelColDefService.d.ts +0 -11
  125. package/es/data-grid/modules/side-bar/sideBar/common/toolPanelColDefService.js +0 -216
  126. package/es/data-grid/modules/side-bar/sideBar/horizontalResizeComp.d.ts +0 -19
  127. package/es/data-grid/modules/side-bar/sideBar/horizontalResizeComp.js +0 -108
  128. package/es/data-grid/modules/side-bar/sideBar/sideBarButtonComp.d.ts +0 -16
  129. package/es/data-grid/modules/side-bar/sideBar/sideBarButtonComp.js +0 -84
  130. package/es/data-grid/modules/side-bar/sideBar/sideBarButtonsComp.d.ts +0 -18
  131. package/es/data-grid/modules/side-bar/sideBar/sideBarButtonsComp.js +0 -89
  132. package/es/data-grid/modules/side-bar/sideBar/sideBarComp.d.ts +0 -28
  133. package/es/data-grid/modules/side-bar/sideBar/sideBarComp.js +0 -325
  134. package/es/data-grid/modules/side-bar/sideBar/sideBarDefParser.d.ts +0 -10
  135. package/es/data-grid/modules/side-bar/sideBar/sideBarDefParser.js +0 -95
  136. package/es/data-grid/modules/side-bar/sideBar/toolPanelWrapper.d.ts +0 -17
  137. package/es/data-grid/modules/side-bar/sideBar/toolPanelWrapper.js +0 -103
  138. package/es/data-grid/modules/side-bar/sideBarModule.d.ts +0 -2
  139. package/es/data-grid/modules/side-bar/sideBarModule.js +0 -22
  140. package/es/data-grid/modules/side-bar/version.d.ts +0 -1
  141. package/es/data-grid/modules/side-bar/version.js +0 -2
@@ -1,203 +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 _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); }
7
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
8
- 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); }; }
9
- 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); }
10
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
11
- 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; } }
12
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
13
- 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); }
14
- var __decorate = this && this.__decorate || function (decorators, target, key, desc) {
15
- var c = arguments.length,
16
- r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
17
- d;
18
- 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;
19
- return c > 3 && r && Object.defineProperty(target, key, r), r;
20
- };
21
- import { Autowired, BeanStub, RowNode, Events, _ } from "@ag-grid-community/core";
22
- export var DetailCellRendererCtrl = /*#__PURE__*/function (_BeanStub) {
23
- _inherits(DetailCellRendererCtrl, _BeanStub);
24
- var _super = _createSuper(DetailCellRendererCtrl);
25
- function DetailCellRendererCtrl() {
26
- var _this;
27
- _classCallCheck(this, DetailCellRendererCtrl);
28
- _this = _super.apply(this, arguments);
29
- _this.loadRowDataVersion = 0;
30
- _this.needRefresh = false;
31
- return _this;
32
- }
33
- _createClass(DetailCellRendererCtrl, [{
34
- key: "init",
35
- value: function init(comp, params) {
36
- var _this2 = this;
37
- this.params = params;
38
- this.comp = comp;
39
- var doNothingBecauseInsidePinnedSection = params.pinned != null;
40
- if (doNothingBecauseInsidePinnedSection) {
41
- return;
42
- }
43
- this.setAutoHeightClasses();
44
- this.setupRefreshStrategy();
45
- this.addThemeToDetailGrid();
46
- this.createDetailGrid();
47
- this.loadRowData();
48
- this.addManagedListener(params.node.parent, RowNode.EVENT_DATA_CHANGED, function () {
49
- _this2.needRefresh = true;
50
- });
51
- this.addManagedListener(this.eventService, Events.EVENT_FULL_WIDTH_ROW_FOCUSED, this.onFullWidthRowFocused.bind(this));
52
- }
53
- }, {
54
- key: "onFullWidthRowFocused",
55
- value: function onFullWidthRowFocused(e) {
56
- var params = this.params;
57
- var row = {
58
- rowIndex: params.node.rowIndex,
59
- rowPinned: params.node.rowPinned
60
- };
61
- var eventRow = {
62
- rowIndex: e.rowIndex,
63
- rowPinned: e.rowPinned
64
- };
65
- var isSameRow = this.rowPositionUtils.sameRow(row, eventRow);
66
- if (!isSameRow) {
67
- return;
68
- }
69
- this.focusService.focusInto(this.comp.getGui(), e.fromBelow);
70
- }
71
- }, {
72
- key: "setAutoHeightClasses",
73
- value: function setAutoHeightClasses() {
74
- var autoHeight = this.gridOptionsService.is('detailRowAutoHeight');
75
- var parentClass = autoHeight ? 'ag-details-row-auto-height' : 'ag-details-row-fixed-height';
76
- var detailClass = autoHeight ? 'ag-details-grid-auto-height' : 'ag-details-grid-fixed-height';
77
- this.comp.addOrRemoveCssClass(parentClass, true);
78
- this.comp.addOrRemoveDetailGridCssClass(detailClass, true);
79
- }
80
- }, {
81
- key: "setupRefreshStrategy",
82
- value: function setupRefreshStrategy() {
83
- var providedStrategy = this.params.refreshStrategy;
84
- var validSelection = providedStrategy == 'everything' || providedStrategy == 'nothing' || providedStrategy == 'rows';
85
- if (validSelection) {
86
- this.refreshStrategy = providedStrategy;
87
- return;
88
- }
89
- if (providedStrategy != null) {
90
- console.warn("AG Grid: invalid cellRendererParams.refreshStrategy = '" + providedStrategy + "' supplied, defaulting to refreshStrategy = 'rows'.");
91
- }
92
- this.refreshStrategy = 'rows';
93
- }
94
- }, {
95
- key: "addThemeToDetailGrid",
96
- value: function addThemeToDetailGrid() {
97
- // this is needed by environment service of the child grid, the class needs to be on
98
- // the grid div itself - the browser's CSS on the other hand just inherits from the parent grid theme.
99
- var _this$environment$get = this.environment.getTheme(),
100
- theme = _this$environment$get.theme;
101
- if (theme) {
102
- this.comp.addOrRemoveDetailGridCssClass(theme, true);
103
- }
104
- }
105
- }, {
106
- key: "createDetailGrid",
107
- value: function createDetailGrid() {
108
- if (_.missing(this.params.detailGridOptions)) {
109
- console.warn('AG Grid: could not find detail grid options for master detail, ' + 'please set gridOptions.detailCellRendererParams.detailGridOptions');
110
- return;
111
- }
112
- var autoHeight = this.gridOptionsService.is('detailRowAutoHeight');
113
- // we clone the detail grid options, as otherwise it would be shared
114
- // across many instances, and that would be a problem because we set
115
- // api and columnApi into gridOptions
116
- var gridOptions = Object.assign({}, this.params.detailGridOptions);
117
- if (autoHeight) {
118
- gridOptions.domLayout = 'autoHeight';
119
- }
120
- this.comp.setDetailGrid(gridOptions);
121
- }
122
- }, {
123
- key: "registerDetailWithMaster",
124
- value: function registerDetailWithMaster(api, columnApi) {
125
- var rowId = this.params.node.id;
126
- var masterGridApi = this.params.api;
127
- var gridInfo = {
128
- id: rowId,
129
- api: api,
130
- columnApi: columnApi
131
- };
132
- var rowNode = this.params.node;
133
- // register with api
134
- masterGridApi.addDetailGridInfo(rowId, gridInfo);
135
- // register with node
136
- rowNode.detailGridInfo = gridInfo;
137
- this.addDestroyFunc(function () {
138
- // the gridInfo can be stale if a refresh happens and
139
- // a new row is created before the old one is destroyed.
140
- if (rowNode.detailGridInfo !== gridInfo) {
141
- return;
142
- }
143
- masterGridApi.removeDetailGridInfo(rowId); // unregister from api
144
- rowNode.detailGridInfo = null; // unregister from node
145
- });
146
- }
147
- }, {
148
- key: "loadRowData",
149
- value: function loadRowData() {
150
- var _this3 = this;
151
- // in case a refresh happens before the last refresh completes (as we depend on async
152
- // application logic) we keep track on what the latest call was.
153
- this.loadRowDataVersion++;
154
- var versionThisCall = this.loadRowDataVersion;
155
- var userFunc = this.params.getDetailRowData;
156
- if (!userFunc) {
157
- console.warn('AG Grid: could not find getDetailRowData for master / detail, ' + 'please set gridOptions.detailCellRendererParams.getDetailRowData');
158
- return;
159
- }
160
- var successCallback = function successCallback(rowData) {
161
- var mostRecentCall = _this3.loadRowDataVersion === versionThisCall;
162
- if (mostRecentCall) {
163
- _this3.comp.setRowData(rowData);
164
- }
165
- };
166
- var funcParams = {
167
- node: this.params.node,
168
- // we take data from node, rather than params.data
169
- // as the data could have been updated with new instance
170
- data: this.params.node.data,
171
- successCallback: successCallback,
172
- context: this.gridOptionsService.context
173
- };
174
- userFunc(funcParams);
175
- }
176
- }, {
177
- key: "refresh",
178
- value: function refresh() {
179
- var GET_GRID_TO_REFRESH = false;
180
- var GET_GRID_TO_DO_NOTHING = true;
181
- // if we return true, it means we pretend to the grid
182
- // that we have refreshed, so refresh will never happen.
183
- var doNotRefresh = !this.needRefresh || this.refreshStrategy === 'nothing';
184
- if (doNotRefresh) {
185
- // we do nothing in this refresh method, and also tell the grid to do nothing
186
- return GET_GRID_TO_DO_NOTHING;
187
- }
188
- // reset flag, so don't refresh again until more data changes.
189
- this.needRefresh = false;
190
- if (this.refreshStrategy === 'everything') {
191
- // we want full refresh, so tell the grid to destroy and recreate this cell
192
- return GET_GRID_TO_REFRESH;
193
- } else {
194
- // do the refresh here, and tell the grid to do nothing
195
- this.loadRowData();
196
- return GET_GRID_TO_DO_NOTHING;
197
- }
198
- }
199
- }]);
200
- return DetailCellRendererCtrl;
201
- }(BeanStub);
202
- __decorate([Autowired('rowPositionUtils')], DetailCellRendererCtrl.prototype, "rowPositionUtils", void 0);
203
- __decorate([Autowired('focusService')], DetailCellRendererCtrl.prototype, "focusService", void 0);
@@ -1,2 +0,0 @@
1
- import { Module } from "@ag-grid-community/core";
2
- export declare const MasterDetailModule: Module;
@@ -1,18 +0,0 @@
1
- import { ModuleNames } from "@ag-grid-community/core";
2
- import { DetailCellRenderer } from "./masterDetail/detailCellRenderer";
3
- import { DetailCellRendererCtrl } from "./masterDetail/detailCellRendererCtrl";
4
- import { VERSION } from "./version";
5
- export var MasterDetailModule = {
6
- version: VERSION,
7
- moduleName: ModuleNames.MasterDetailModule,
8
- beans: [],
9
- userComponents: [{
10
- componentName: 'agDetailCellRenderer',
11
- componentClass: DetailCellRenderer
12
- }],
13
- controllers: [{
14
- controllerName: 'detailCellRenderer',
15
- controllerClass: DetailCellRendererCtrl
16
- }],
17
- dependantModules: []
18
- };
@@ -1 +0,0 @@
1
- export declare const VERSION = "29.2.0";
@@ -1,2 +0,0 @@
1
- // DO NOT UPDATE MANUALLY: Generated from script during build time
2
- export var VERSION = '29.2.0';
@@ -1 +0,0 @@
1
- export { MenuModule } from './menuModule';
@@ -1 +0,0 @@
1
- export { MenuModule } from "./menuModule";
@@ -1,13 +0,0 @@
1
- import { BeanStub, MenuItemDef } from '@ag-grid-community/core';
2
- export declare class ChartMenuItemMapper extends BeanStub {
3
- private readonly chartService;
4
- getChartItems(key: 'pivotChart' | 'chartRange'): MenuItemDef | undefined;
5
- private cleanInternals;
6
- private static buildLookup;
7
- /**
8
- * Make the MenuItem match the charts provided and their ordering on the ChartGroupsDef config object as provided by the user.
9
- */
10
- private static filterAndOrderChartMenu;
11
- }
12
- export declare type PivotMenuOptionName = 'pivotChart' | 'pivotColumnChart' | 'pivotGroupedColumn' | 'pivotStackedColumn' | 'pivotNormalizedColumn' | 'pivotBarChart' | 'pivotGroupedBar' | 'pivotStackedBar' | 'pivotNormalizedBar' | 'pivotPieChart' | 'pivotPie' | 'pivotDoughnut' | 'pivotLineChart' | 'pivotXYChart' | 'pivotScatter' | 'pivotBubble' | 'pivotAreaChart' | 'pivotArea' | 'pivotStackedArea' | 'pivotNormalizedArea' | 'pivotHistogramChart' | 'pivotCombinationChart' | 'pivotColumnLineCombo' | 'pivotAreaColumnCombo';
13
- export declare type RangeMenuOptionName = 'chartRange' | 'rangeColumnChart' | 'rangeGroupedColumn' | 'rangeStackedColumn' | 'rangeNormalizedColumn' | 'rangeBarChart' | 'rangeGroupedBar' | 'rangeStackedBar' | 'rangeNormalizedBar' | 'rangePieChart' | 'rangePie' | 'rangeDoughnut' | 'rangeLineChart' | 'rangeXYChart' | 'rangeScatter' | 'rangeBubble' | 'rangeAreaChart' | 'rangeArea' | 'rangeStackedArea' | 'rangeNormalizedArea' | 'rangeHistogramChart' | 'rangeCombinationChart' | 'rangeColumnLineCombo' | 'rangeAreaColumnCombo';
@@ -1,351 +0,0 @@
1
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
2
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
3
- 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); }
4
- 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; }
5
- function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
6
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
8
- 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); } }
9
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
10
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
11
- 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); }
12
- 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); }
13
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
14
- 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); }; }
15
- 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); }
16
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
17
- 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; } }
18
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
19
- 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); }
20
- var __decorate = this && this.__decorate || function (decorators, target, key, desc) {
21
- var c = arguments.length,
22
- r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
23
- d;
24
- 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;
25
- return c > 3 && r && Object.defineProperty(target, key, r), r;
26
- };
27
- var ChartMenuItemMapper_1;
28
- import { Bean, BeanStub, ModuleNames, ModuleRegistry, Optional, _ } from '@ag-grid-community/core';
29
- var ChartMenuItemMapper = ChartMenuItemMapper_1 = /*#__PURE__*/function (_BeanStub) {
30
- _inherits(ChartMenuItemMapper, _BeanStub);
31
- var _super = _createSuper(ChartMenuItemMapper);
32
- function ChartMenuItemMapper() {
33
- _classCallCheck(this, ChartMenuItemMapper);
34
- return _super.apply(this, arguments);
35
- }
36
- _createClass(ChartMenuItemMapper, [{
37
- key: "getChartItems",
38
- value: function getChartItems(key) {
39
- var _a, _b;
40
- if (!this.chartService) {
41
- ModuleRegistry.assertRegistered(ModuleNames.GridChartsModule, "the Context Menu key \"".concat(key, "\""));
42
- return undefined;
43
- }
44
- var builder = key === 'pivotChart' ? new PivotMenuItemMapper(this.gridOptionsService, this.chartService, this.localeService) : new RangeMenuItemMapper(this.gridOptionsService, this.chartService, this.localeService);
45
- var topLevelMenuItem = builder.getMenuItem();
46
- var chartGroupsDef = (_b = (_a = this.gridOptionsService.get('chartToolPanelsDef')) === null || _a === void 0 ? void 0 : _a.settingsPanel) === null || _b === void 0 ? void 0 : _b.chartGroupsDef;
47
- if (chartGroupsDef) {
48
- // Apply filtering and ordering if chartGroupsDef provided
49
- topLevelMenuItem = ChartMenuItemMapper_1.filterAndOrderChartMenu(topLevelMenuItem, chartGroupsDef, builder.getConfigLookup());
50
- }
51
- return this.cleanInternals(topLevelMenuItem);
52
- }
53
- // Remove our internal _key properties so this does not leak out of the class on the menu items.
54
- }, {
55
- key: "cleanInternals",
56
- value: function cleanInternals(menuItem) {
57
- if (!menuItem) {
58
- return menuItem;
59
- }
60
- var removeKey = function removeKey(m) {
61
- var _a;
62
- m === null || m === void 0 ? true : delete m._key;
63
- (_a = m === null || m === void 0 ? void 0 : m.subMenu) === null || _a === void 0 ? void 0 : _a.forEach(function (s) {
64
- return removeKey(s);
65
- });
66
- return m;
67
- };
68
- return removeKey(menuItem);
69
- }
70
- }], [{
71
- key: "buildLookup",
72
- value: function buildLookup(menuItem) {
73
- var itemLookup = {};
74
- var addItem = function addItem(item) {
75
- itemLookup[item._key] = item;
76
- if (item.subMenu) {
77
- item.subMenu.forEach(function (s) {
78
- return addItem(s);
79
- });
80
- }
81
- };
82
- addItem(menuItem);
83
- return itemLookup;
84
- }
85
- /**
86
- * Make the MenuItem match the charts provided and their ordering on the ChartGroupsDef config object as provided by the user.
87
- */
88
- }, {
89
- key: "filterAndOrderChartMenu",
90
- value: function filterAndOrderChartMenu(topLevelMenuItem, chartGroupsDef, configLookup) {
91
- var _a;
92
- var menuItemLookup = this.buildLookup(topLevelMenuItem);
93
- var orderedAndFiltered = Object.assign(Object.assign({}, topLevelMenuItem), {
94
- subMenu: []
95
- });
96
- Object.entries(chartGroupsDef).forEach(function (_ref) {
97
- var _ref2 = _slicedToArray(_ref, 2),
98
- group = _ref2[0],
99
- chartTypes = _ref2[1];
100
- var _a, _b;
101
- var chartConfigGroup = configLookup[group];
102
- if (chartConfigGroup == undefined) {
103
- _.doOnce(function () {
104
- return console.warn("AG Grid - invalid chartGroupsDef config '".concat(group, "'"));
105
- }, "invalid_chartGroupsDef".concat(group));
106
- return undefined;
107
- }
108
- var menuItem = menuItemLookup[chartConfigGroup._key];
109
- if (menuItem) {
110
- if (menuItem.subMenu) {
111
- var subMenus = chartTypes.map(function (chartType) {
112
- var itemKey = chartConfigGroup[chartType];
113
- if (itemKey == undefined) {
114
- _.doOnce(function () {
115
- return console.warn("AG Grid - invalid chartGroupsDef config '".concat(group, ".").concat(chartType, "'"));
116
- }, "invalid_chartGroupsDef".concat(chartType, "_").concat(group));
117
- return undefined;
118
- }
119
- return menuItemLookup[itemKey];
120
- }).filter(function (s) {
121
- return s !== undefined;
122
- });
123
- if (subMenus.length > 0) {
124
- menuItem.subMenu = subMenus;
125
- (_a = orderedAndFiltered.subMenu) === null || _a === void 0 ? void 0 : _a.push(menuItem);
126
- }
127
- } else {
128
- // Handles line case which is not actually a sub subMenu
129
- (_b = orderedAndFiltered.subMenu) === null || _b === void 0 ? void 0 : _b.push(menuItem);
130
- }
131
- }
132
- });
133
- if (((_a = orderedAndFiltered.subMenu) === null || _a === void 0 ? void 0 : _a.length) == 0) {
134
- return undefined;
135
- }
136
- return orderedAndFiltered;
137
- }
138
- }]);
139
- return ChartMenuItemMapper;
140
- }(BeanStub);
141
- __decorate([Optional('chartService')], ChartMenuItemMapper.prototype, "chartService", void 0);
142
- ChartMenuItemMapper = ChartMenuItemMapper_1 = __decorate([Bean('chartMenuItemMapper')], ChartMenuItemMapper);
143
- export { ChartMenuItemMapper };
144
- var PivotMenuItemMapper = /*#__PURE__*/function () {
145
- function PivotMenuItemMapper(gridOptionsService, chartService, localeService) {
146
- _classCallCheck(this, PivotMenuItemMapper);
147
- this.gridOptionsService = gridOptionsService;
148
- this.chartService = chartService;
149
- this.localeService = localeService;
150
- }
151
- _createClass(PivotMenuItemMapper, [{
152
- key: "getMenuItem",
153
- value: function getMenuItem() {
154
- var _this = this;
155
- var localeTextFunc = this.localeService.getLocaleTextFunc();
156
- var getMenuItem = function getMenuItem(localeKey, defaultText, chartType, key) {
157
- return {
158
- name: localeTextFunc(localeKey, defaultText),
159
- action: function action() {
160
- return _this.chartService.createPivotChart({
161
- chartType: chartType
162
- });
163
- },
164
- _key: key
165
- };
166
- };
167
- return {
168
- name: localeTextFunc('pivotChart', 'Pivot Chart'),
169
- _key: 'pivotChart',
170
- subMenu: [{
171
- _key: 'pivotColumnChart',
172
- name: localeTextFunc('columnChart', 'Column'),
173
- subMenu: [getMenuItem('groupedColumn', 'Grouped&lrm;', 'groupedColumn', 'pivotGroupedColumn'), getMenuItem('stackedColumn', 'Stacked&lrm;', 'stackedColumn', 'pivotStackedColumn'), getMenuItem('normalizedColumn', '100% Stacked&lrm;', 'normalizedColumn', 'pivotNormalizedColumn')]
174
- }, {
175
- _key: 'pivotBarChart',
176
- name: localeTextFunc('barChart', 'Bar'),
177
- subMenu: [getMenuItem('groupedBar', 'Grouped&lrm;', 'groupedBar', 'pivotGroupedBar'), getMenuItem('stackedBar', 'Stacked&lrm;', 'stackedBar', 'pivotStackedBar'), getMenuItem('normalizedBar', '100% Stacked&lrm;', 'normalizedBar', 'pivotNormalizedBar')]
178
- }, {
179
- _key: 'pivotPieChart',
180
- name: localeTextFunc('pieChart', 'Pie'),
181
- subMenu: [getMenuItem('pie', 'Pie&lrm;', 'pie', 'pivotPie'), getMenuItem('doughnut', 'Doughnut&lrm;', 'doughnut', 'pivotDoughnut')]
182
- }, getMenuItem('line', 'Line&lrm;', 'line', 'pivotLineChart'), {
183
- _key: 'pivotXYChart',
184
- name: localeTextFunc('xyChart', 'X Y (Scatter)'),
185
- subMenu: [getMenuItem('scatter', 'Scatter&lrm;', 'scatter', 'pivotScatter'), getMenuItem('bubble', 'Bubble&lrm;', 'bubble', 'pivotBubble')]
186
- }, {
187
- _key: 'pivotAreaChart',
188
- name: localeTextFunc('areaChart', 'Area'),
189
- subMenu: [getMenuItem('area', 'Area&lrm;', 'area', 'pivotArea'), getMenuItem('stackedArea', 'Stacked&lrm;', 'stackedArea', 'pivotStackedArea'), getMenuItem('normalizedArea', '100% Stacked&lrm;', 'normalizedArea', 'pivotNormalizedArea')]
190
- }, getMenuItem('histogramChart', 'Histogram&lrm;', 'histogram', 'pivotHistogramChart'), {
191
- _key: 'pivotCombinationChart',
192
- name: localeTextFunc('combinationChart', 'Combination'),
193
- subMenu: [getMenuItem('columnLineCombo', 'Column & Line&lrm;', 'columnLineCombo', 'pivotColumnLineCombo'), getMenuItem('AreaColumnCombo', 'Area & Column&lrm;', 'areaColumnCombo', 'pivotAreaColumnCombo')]
194
- }],
195
- icon: _.createIconNoSpan('chart', this.gridOptionsService, undefined)
196
- };
197
- }
198
- }, {
199
- key: "getConfigLookup",
200
- value: function getConfigLookup() {
201
- return {
202
- columnGroup: {
203
- _key: 'pivotColumnChart',
204
- column: 'pivotGroupedColumn',
205
- stackedColumn: 'pivotStackedColumn',
206
- normalizedColumn: 'pivotNormalizedColumn'
207
- },
208
- barGroup: {
209
- _key: 'pivotBarChart',
210
- bar: 'pivotGroupedBar',
211
- stackedBar: 'pivotStackedBar',
212
- normalizedBar: 'pivotNormalizedBar'
213
- },
214
- pieGroup: {
215
- _key: 'pivotPieChart',
216
- pie: 'pivotPie',
217
- doughnut: 'pivotDoughnut'
218
- },
219
- lineGroup: {
220
- _key: 'pivotLineChart',
221
- line: 'pivotLineChart'
222
- },
223
- scatterGroup: {
224
- _key: 'pivotXYChart',
225
- bubble: 'pivotBubble',
226
- scatter: 'pivotScatter'
227
- },
228
- areaGroup: {
229
- _key: 'pivotAreaChart',
230
- area: 'pivotArea',
231
- stackedArea: 'pivotStackedArea',
232
- normalizedArea: 'pivotNormalizedArea'
233
- },
234
- histogramGroup: {
235
- _key: 'pivotHistogramChart',
236
- histogram: 'pivotHistogramChart'
237
- },
238
- combinationGroup: {
239
- _key: 'pivotCombinationChart',
240
- columnLineCombo: 'pivotColumnLineCombo',
241
- areaColumnCombo: 'pivotAreaColumnCombo',
242
- customCombo: '' // Not currently supported but needs a value to separate from a missing value
243
- }
244
- };
245
- }
246
- }]);
247
- return PivotMenuItemMapper;
248
- }();
249
- var RangeMenuItemMapper = /*#__PURE__*/function () {
250
- function RangeMenuItemMapper(gridOptionsService, chartService, localeService) {
251
- _classCallCheck(this, RangeMenuItemMapper);
252
- this.gridOptionsService = gridOptionsService;
253
- this.chartService = chartService;
254
- this.localeService = localeService;
255
- }
256
- _createClass(RangeMenuItemMapper, [{
257
- key: "getMenuItem",
258
- value: function getMenuItem() {
259
- var _this2 = this;
260
- var localeTextFunc = this.localeService.getLocaleTextFunc();
261
- var getMenuItem = function getMenuItem(localeKey, defaultText, chartType, key) {
262
- return {
263
- name: localeTextFunc(localeKey, defaultText),
264
- action: function action() {
265
- return _this2.chartService.createChartFromCurrentRange(chartType);
266
- },
267
- _key: key
268
- };
269
- };
270
- return {
271
- name: localeTextFunc('chartRange', 'Chart Range'),
272
- _key: 'chartRange',
273
- subMenu: [{
274
- name: localeTextFunc('columnChart', 'Column'),
275
- subMenu: [getMenuItem('groupedColumn', 'Grouped&lrm;', 'groupedColumn', 'rangeGroupedColumn'), getMenuItem('stackedColumn', 'Stacked&lrm;', 'stackedColumn', 'rangeStackedColumn'), getMenuItem('normalizedColumn', '100% Stacked&lrm;', 'normalizedColumn', 'rangeNormalizedColumn')],
276
- _key: 'rangeColumnChart'
277
- }, {
278
- name: localeTextFunc('barChart', 'Bar'),
279
- subMenu: [getMenuItem('groupedBar', 'Grouped&lrm;', 'groupedBar', 'rangeGroupedBar'), getMenuItem('stackedBar', 'Stacked&lrm;', 'stackedBar', 'rangeStackedBar'), getMenuItem('normalizedBar', '100% Stacked&lrm;', 'normalizedBar', 'rangeNormalizedBar')],
280
- _key: 'rangeBarChart'
281
- }, {
282
- name: localeTextFunc('pieChart', 'Pie'),
283
- subMenu: [getMenuItem('pie', 'Pie&lrm;', 'pie', 'rangePie'), getMenuItem('doughnut', 'Doughnut&lrm;', 'doughnut', 'rangeDoughnut')],
284
- _key: 'rangePieChart'
285
- }, getMenuItem('line', 'Line&lrm;', 'line', 'rangeLineChart'), {
286
- name: localeTextFunc('xyChart', 'X Y (Scatter)'),
287
- subMenu: [getMenuItem('scatter', 'Scatter&lrm;', 'scatter', 'rangeScatter'), getMenuItem('bubble', 'Bubble&lrm;', 'bubble', 'rangeBubble')],
288
- _key: 'rangeXYChart'
289
- }, {
290
- name: localeTextFunc('areaChart', 'Area'),
291
- subMenu: [getMenuItem('area', 'Area&lrm;', 'area', 'rangeArea'), getMenuItem('stackedArea', 'Stacked&lrm;', 'stackedArea', 'rangeStackedArea'), getMenuItem('normalizedArea', '100% Stacked&lrm;', 'normalizedArea', 'rangeNormalizedArea')],
292
- _key: 'rangeAreaChart'
293
- }, getMenuItem('histogramChart', 'Histogram&lrm;', 'histogram', 'rangeHistogramChart'), {
294
- name: localeTextFunc('combinationChart', 'Combination'),
295
- subMenu: [getMenuItem('columnLineCombo', 'Column & Line&lrm;', 'columnLineCombo', 'rangeColumnLineCombo'), getMenuItem('AreaColumnCombo', 'Area & Column&lrm;', 'areaColumnCombo', 'rangeAreaColumnCombo')],
296
- _key: 'rangeCombinationChart'
297
- }],
298
- icon: _.createIconNoSpan('chart', this.gridOptionsService, undefined)
299
- };
300
- }
301
- }, {
302
- key: "getConfigLookup",
303
- value: function getConfigLookup() {
304
- return {
305
- columnGroup: {
306
- _key: 'rangeColumnChart',
307
- column: 'rangeGroupedColumn',
308
- stackedColumn: 'rangeStackedColumn',
309
- normalizedColumn: 'rangeNormalizedColumn'
310
- },
311
- barGroup: {
312
- _key: 'rangeBarChart',
313
- bar: 'rangeGroupedBar',
314
- stackedBar: 'rangeStackedBar',
315
- normalizedBar: 'rangeNormalizedBar'
316
- },
317
- pieGroup: {
318
- _key: 'rangePieChart',
319
- pie: 'rangePie',
320
- doughnut: 'rangeDoughnut'
321
- },
322
- lineGroup: {
323
- _key: 'rangeLineChart',
324
- line: 'rangeLineChart'
325
- },
326
- scatterGroup: {
327
- _key: 'rangeXYChart',
328
- bubble: 'rangeBubble',
329
- scatter: 'rangeScatter'
330
- },
331
- areaGroup: {
332
- _key: 'rangeAreaChart',
333
- area: 'rangeArea',
334
- stackedArea: 'rangeStackedArea',
335
- normalizedArea: 'rangeNormalizedArea'
336
- },
337
- histogramGroup: {
338
- _key: 'rangeHistogramChart',
339
- histogram: 'rangeHistogramChart'
340
- },
341
- combinationGroup: {
342
- _key: 'rangeCombinationChart',
343
- columnLineCombo: 'rangeColumnLineCombo',
344
- areaColumnCombo: 'rangeAreaColumnCombo',
345
- customCombo: '' // Not currently supported but needs a value to separate from a missing value
346
- }
347
- };
348
- }
349
- }]);
350
- return RangeMenuItemMapper;
351
- }();
@@ -1,13 +0,0 @@
1
- import { BeanStub, Column, IContextMenuFactory, RowNode } from "@ag-grid-community/core";
2
- export declare class ContextMenuFactory extends BeanStub implements IContextMenuFactory {
3
- private popupService;
4
- private rangeService;
5
- private ctrlsService;
6
- private columnModel;
7
- private activeMenu;
8
- hideActiveMenu(): void;
9
- private getMenuItems;
10
- onContextMenu(mouseEvent: MouseEvent | null, touchEvent: TouchEvent | null, rowNode: RowNode | null, column: Column | null, value: any, anchorToElement: HTMLElement): void;
11
- private blockMiddleClickScrollsIfNeeded;
12
- showMenu(node: RowNode | null, column: Column | null, value: any, mouseEvent: MouseEvent | Touch, anchorToElement: HTMLElement): boolean;
13
- }