@lowdefy/blocks-aggrid 3.23.3 → 4.0.0-alpha.18

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 (82) hide show
  1. package/README.md +2 -21
  2. package/dist/AgGrid.js +147 -0
  3. package/dist/AgGridInput.js +195 -0
  4. package/dist/blocks/AgGridAlpine/AgGridAlpine.js +38 -0
  5. package/dist/blocks/AgGridAlpine/AgGridAlpine.json +8 -0
  6. package/dist/blocks/AgGridAlpine/style.less +18 -0
  7. package/dist/blocks/AgGridAlpineDark/AgGridAlpineDark.js +38 -0
  8. package/dist/blocks/AgGridAlpineDark/AgGridAlpineDark.json +8 -0
  9. package/dist/blocks/AgGridAlpineDark/style.less +18 -0
  10. package/dist/blocks/AgGridBalham/AgGridBalham.js +38 -0
  11. package/dist/blocks/AgGridBalham/AgGridBalham.json +8 -0
  12. package/dist/blocks/AgGridBalham/style.less +18 -0
  13. package/dist/blocks/AgGridBalhamDark/AgGridBalhamDark.js +38 -0
  14. package/dist/blocks/AgGridBalhamDark/AgGridBalhamDark.json +8 -0
  15. package/dist/blocks/AgGridBalhamDark/style.less +18 -0
  16. package/dist/blocks/AgGridInputAlpine/AgGridInputAlpine.js +43 -0
  17. package/dist/blocks/AgGridInputAlpine/AgGridInputAlpine.json +8 -0
  18. package/dist/blocks/AgGridInputAlpine/style.less +18 -0
  19. package/dist/blocks/AgGridInputAlpineDark/AgGridInputAlpineDark.js +43 -0
  20. package/dist/blocks/AgGridInputAlpineDark/AgGridInputAlpineDark.json +8 -0
  21. package/dist/blocks/AgGridInputAlpineDark/style.less +18 -0
  22. package/dist/blocks/AgGridInputBalham/AgGridInputBalham.js +43 -0
  23. package/dist/blocks/AgGridInputBalham/AgGridInputBalham.json +8 -0
  24. package/dist/blocks/AgGridInputBalham/style.less +18 -0
  25. package/dist/blocks/AgGridInputBalhamDark/AgGridInputBalhamDark.js +43 -0
  26. package/dist/blocks/AgGridInputBalhamDark/AgGridInputBalhamDark.json +8 -0
  27. package/dist/blocks/AgGridInputBalhamDark/style.less +18 -0
  28. package/dist/blocks/AgGridInputMaterial/AgGridInputMaterial.js +43 -0
  29. package/dist/blocks/AgGridInputMaterial/AgGridInputMaterial.json +8 -0
  30. package/dist/blocks/AgGridInputMaterial/style.less +18 -0
  31. package/dist/blocks/AgGridMaterial/AgGridMaterial.js +38 -0
  32. package/dist/blocks/AgGridMaterial/AgGridMaterial.json +8 -0
  33. package/dist/blocks/AgGridMaterial/style.less +18 -0
  34. package/dist/blocks.js +20 -0
  35. package/dist/types.js +29 -0
  36. package/package.json +47 -36
  37. package/dist/120.js +0 -1
  38. package/dist/143.js +0 -1
  39. package/dist/144.js +0 -2
  40. package/dist/144.js.LICENSE.txt +0 -45
  41. package/dist/178.js +0 -2
  42. package/dist/178.js.LICENSE.txt +0 -14
  43. package/dist/249.js +0 -1
  44. package/dist/309.js +0 -1
  45. package/dist/328.js +0 -1
  46. package/dist/334.js +0 -1
  47. package/dist/353.js +0 -1
  48. package/dist/364.js +0 -1
  49. package/dist/402.js +0 -1
  50. package/dist/452.js +0 -1
  51. package/dist/474.js +0 -1
  52. package/dist/646.js +0 -2
  53. package/dist/646.js.LICENSE.txt +0 -6
  54. package/dist/647.js +0 -1
  55. package/dist/654.js +0 -1
  56. package/dist/687.js +0 -1
  57. package/dist/723.js +0 -2
  58. package/dist/723.js.LICENSE.txt +0 -8
  59. package/dist/770.js +0 -1
  60. package/dist/820.js +0 -2
  61. package/dist/820.js.LICENSE.txt +0 -14
  62. package/dist/852.js +0 -1
  63. package/dist/857.js +0 -2
  64. package/dist/857.js.LICENSE.txt +0 -14
  65. package/dist/87.js +0 -2
  66. package/dist/87.js.LICENSE.txt +0 -5
  67. package/dist/905.js +0 -1
  68. package/dist/908.js +0 -2
  69. package/dist/908.js.LICENSE.txt +0 -17
  70. package/dist/934.js +0 -1
  71. package/dist/main.js +0 -1
  72. package/dist/meta/AgGridAlpine.json +0 -1
  73. package/dist/meta/AgGridAlpineDark.json +0 -1
  74. package/dist/meta/AgGridBalham.json +0 -1
  75. package/dist/meta/AgGridBalhamDark.json +0 -1
  76. package/dist/meta/AgGridInputAlpine.json +0 -1
  77. package/dist/meta/AgGridInputAlpineDark.json +0 -1
  78. package/dist/meta/AgGridInputBalham.json +0 -1
  79. package/dist/meta/AgGridInputBalhamDark.json +0 -1
  80. package/dist/meta/AgGridInputMaterial.json +0 -1
  81. package/dist/meta/AgGridMaterial.json +0 -1
  82. package/dist/remoteEntry.js +0 -1
package/README.md CHANGED
@@ -76,6 +76,8 @@ The block types are hosted at:
76
76
  - `autoSize`: When called, auto size columns. The following can be passed as the first argument of `args`.
77
77
  - `skipHeader: boolean`: Do not consider header content width when auto-sizing columns.
78
78
  - `columnIds: string[]`: List of `colId`s for which to calculate auto-size when called.
79
+ - `setFilterModel`: When called, apply filter model to table. See https://www.ag-grid.com/javascript-data-grid/filter-api/ for model details.
80
+ - `setQuickFilter`: When called, pass a quick filter text into the grid for filtering. See https://www.ag-grid.com/javascript-data-grid/filter-quick/ for details.
79
81
 
80
82
  ### AgGridAlpine Example
81
83
 
@@ -561,24 +563,3 @@ pages:
561
563
  filter: true
562
564
  editable: true
563
565
  ```
564
-
565
- ## Other Lowdefy Blocks Packages
566
-
567
- - [@lowdefy/blocks-template](https://github.com/lowdefy/blocks-template): Lowdefy template for creating blocks.
568
- - [@lowdefy/blocks-basic](https://github.com/lowdefy/lowdefy/tree/main/packages/blocks/blocksBasic): Official Lowdefy blocks some basic Html elements.
569
- - [@lowdefy/blocks-antd](https://github.com/lowdefy/lowdefy/tree/main/packages/blocks/blocksAntd): Official Lowdefy blocks for [Antd design](https://ant.design/).
570
- - [@lowdefy/blocks-color-selectors](https://github.com/lowdefy/lowdefy/tree/main/packages/blocks/blocksColorSelectorsd): Official Lowdefy blocks for [react-color](https://casesandberg.github.io/react-color/).
571
- - [@lowdefy/blocks-markdown](https://github.com/lowdefy/lowdefy/tree/main/packages/blocks/blocksMarkdown): Official Lowdefy blocks to render Markdown.
572
- - [@lowdefy/blocks-amcharts](https://github.com/lowdefy/blocks-amcharts): Lowdefy blocks to render [AmCharts v4](https://www.amcharts.com/).
573
-
574
- ## More Lowdefy resources
575
-
576
- - Getting started with Lowdefy - https://docs.lowdefy.com/tutorial-start
577
- - Lowdefy docs - https://docs.lowdefy.com
578
- - Lowdefy website - https://lowdefy.com
579
- - Community forum - https://github.com/lowdefy/lowdefy/discussions
580
- - Bug reports and feature requests - https://github.com/lowdefy/lowdefy/issues
581
-
582
- ## Licence
583
-
584
- [Apache-2.0](https://github.com/lowdefy/blocks-amcharts/blob/main/LICENSE)
package/dist/AgGrid.js ADDED
@@ -0,0 +1,147 @@
1
+ function _extends() {
2
+ _extends = Object.assign || function(target) {
3
+ for(var i = 1; i < arguments.length; i++){
4
+ var source = arguments[i];
5
+ for(var key in source){
6
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
7
+ target[key] = source[key];
8
+ }
9
+ }
10
+ }
11
+ return target;
12
+ };
13
+ return _extends.apply(this, arguments);
14
+ }
15
+ /*
16
+ Copyright 2021 Lowdefy, Inc
17
+
18
+ Licensed under the Apache License, Version 2.0 (the "License");
19
+ you may not use this file except in compliance with the License.
20
+ You may obtain a copy of the License at
21
+
22
+ http://www.apache.org/licenses/LICENSE-2.0
23
+
24
+ Unless required by applicable law or agreed to in writing, software
25
+ distributed under the License is distributed on an "AS IS" BASIS,
26
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
27
+ See the License for the specific language governing permissions and
28
+ limitations under the License.
29
+ */ import React from 'react';
30
+ import { AgGridReact } from '@ag-grid-community/react';
31
+ import { AllCommunityModules } from '@ag-grid-community/all-modules';
32
+ let AgGrid = class AgGrid extends React.Component {
33
+ // see https://stackoverflow.com/questions/55182118/ag-grid-resize-detail-height-when-data-changes
34
+ componentDidUpdate() {
35
+ if (this.gridApi) {
36
+ this.gridApi.resetRowHeights();
37
+ }
38
+ }
39
+ onGridReady(params) {
40
+ this.gridApi = params.api;
41
+ this.gridColumnApi = params.columnApi;
42
+ this.props.methods.registerMethod('exportDataAsCsv', (args)=>this.gridApi.exportDataAsCsv(args));
43
+ this.props.methods.registerMethod('sizeColumnsToFit', ()=>this.gridApi.sizeColumnsToFit());
44
+ this.props.methods.registerMethod('setFilterModel', (model)=>this.gridApi.setFilterModel(model));
45
+ this.props.methods.registerMethod('setQuickFilter', (value)=>this.gridApi.setQuickFilter(value));
46
+ this.props.methods.registerMethod('autoSize', (args = {})=>{
47
+ const { skipHeader , colIds } = args;
48
+ const allColumnIds = colIds || [];
49
+ if (!colIds) {
50
+ this.gridColumnApi.getAllColumns().forEach((column)=>{
51
+ allColumnIds.push(column.getId());
52
+ });
53
+ }
54
+ this.gridColumnApi.autoSizeColumns(allColumnIds, skipHeader);
55
+ });
56
+ }
57
+ onRowClick(event) {
58
+ if (this.props.events.onRowClick) {
59
+ this.props.methods.triggerEvent({
60
+ event: {
61
+ row: event.data,
62
+ selected: this.gridApi.getSelectedRows()
63
+ },
64
+ index: parseInt(event.node.id),
65
+ name: 'onRowClick',
66
+ rowIndex: event.rowIndex
67
+ });
68
+ }
69
+ }
70
+ onCellClicked(event) {
71
+ if (this.props.events.onCellClick) {
72
+ this.props.methods.triggerEvent({
73
+ name: 'onCellClick',
74
+ event: {
75
+ cell: {
76
+ column: event.colDef.field,
77
+ value: event.value
78
+ },
79
+ colId: event.column.colId,
80
+ index: parseInt(event.node.id),
81
+ row: event.data,
82
+ rowIndex: event.rowIndex,
83
+ selected: this.gridApi.getSelectedRows()
84
+ }
85
+ });
86
+ }
87
+ }
88
+ onRowSelected(event) {
89
+ if (!event.node.selected) return; // see https://stackoverflow.com/a/63265775/2453657
90
+ if (this.props.events.onRowSelected) {
91
+ this.props.methods.triggerEvent({
92
+ event: {
93
+ row: event.data,
94
+ selected: this.gridApi.getSelectedRows()
95
+ },
96
+ index: parseInt(event.node.id),
97
+ name: 'onRowSelected',
98
+ rowIndex: event.rowIndex
99
+ });
100
+ }
101
+ }
102
+ onSelectionChanged() {
103
+ if (this.props.events.onSelectionChanged) {
104
+ this.props.methods.triggerEvent({
105
+ name: 'onSelectionChanged',
106
+ event: {
107
+ selected: this.gridApi.getSelectedRows()
108
+ }
109
+ });
110
+ }
111
+ }
112
+ onFilterChanged(event) {
113
+ if (this.props.events.onFilterChanged) {
114
+ this.props.methods.triggerEvent({
115
+ name: 'onFilterChanged',
116
+ event: {
117
+ rows: event.api.rowModel.rowsToDisplay.map((row)=>row.data)
118
+ }
119
+ });
120
+ }
121
+ }
122
+ render() {
123
+ const { quickFilterValue , ...someProperties } = this.props.properties;
124
+ if (quickFilterValue && quickFilterValue === '') {
125
+ this.gridApi.setQuickFilter(quickFilterValue); // check if empty string matches all
126
+ }
127
+ return /*#__PURE__*/ React.createElement(AgGridReact, _extends({
128
+ onFilterChanged: this.onFilterChanged,
129
+ onSelectionChanged: this.onSelectionChanged,
130
+ onRowSelected: this.onRowSelected,
131
+ onRowClicked: this.onRowClick,
132
+ onCellClicked: this.onCellClicked,
133
+ onGridReady: this.onGridReady,
134
+ modules: AllCommunityModules
135
+ }, someProperties));
136
+ }
137
+ constructor(props){
138
+ super(props);
139
+ this.onGridReady = this.onGridReady.bind(this);
140
+ this.onRowClick = this.onRowClick.bind(this);
141
+ this.onCellClicked = this.onCellClicked.bind(this);
142
+ this.onRowSelected = this.onRowSelected.bind(this);
143
+ this.onSelectionChanged = this.onSelectionChanged.bind(this);
144
+ this.onFilterChanged = this.onFilterChanged.bind(this);
145
+ }
146
+ };
147
+ export default AgGrid;
@@ -0,0 +1,195 @@
1
+ function _extends() {
2
+ _extends = Object.assign || function(target) {
3
+ for(var i = 1; i < arguments.length; i++){
4
+ var source = arguments[i];
5
+ for(var key in source){
6
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
7
+ target[key] = source[key];
8
+ }
9
+ }
10
+ }
11
+ return target;
12
+ };
13
+ return _extends.apply(this, arguments);
14
+ }
15
+ /*
16
+ Copyright 2021 Lowdefy, Inc
17
+
18
+ Licensed under the Apache License, Version 2.0 (the "License");
19
+ you may not use this file except in compliance with the License.
20
+ You may obtain a copy of the License at
21
+
22
+ http://www.apache.org/licenses/LICENSE-2.0
23
+
24
+ Unless required by applicable law or agreed to in writing, software
25
+ distributed under the License is distributed on an "AS IS" BASIS,
26
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
27
+ See the License for the specific language governing permissions and
28
+ limitations under the License.
29
+ */ import React from 'react';
30
+ import { AgGridReact } from '@ag-grid-community/react';
31
+ import { AllCommunityModules } from '@ag-grid-community/all-modules';
32
+ let AgGridInput = class AgGridInput extends React.Component {
33
+ // see https://stackoverflow.com/questions/55182118/ag-grid-resize-detail-height-when-data-changes
34
+ componentDidUpdate() {
35
+ if (this.gridApi) {
36
+ this.gridApi.resetRowHeights();
37
+ }
38
+ }
39
+ onGridReady(params) {
40
+ this.gridApi = params.api;
41
+ this.gridColumnApi = params.columnApi;
42
+ this.props.methods.registerMethod('exportDataAsCsv', (args)=>this.gridApi.exportDataAsCsv(args));
43
+ this.props.methods.registerMethod('sizeColumnsToFit', ()=>this.gridApi.sizeColumnsToFit());
44
+ this.props.methods.registerMethod('setFilterModel', (model)=>this.gridApi.setFilterModel(model));
45
+ this.props.methods.registerMethod('setQuickFilter', (value)=>this.gridApi.setQuickFilter(value));
46
+ this.props.methods.registerMethod('autoSize', (args = {})=>{
47
+ const { skipHeader , colIds } = args;
48
+ const allColumnIds = colIds || [];
49
+ if (!colIds) {
50
+ this.gridColumnApi.getAllColumns().forEach((column)=>{
51
+ allColumnIds.push(column.getId());
52
+ });
53
+ }
54
+ this.gridColumnApi.autoSizeColumns(allColumnIds, skipHeader);
55
+ });
56
+ }
57
+ onRowClick(event) {
58
+ if (this.props.events.onRowClick) {
59
+ this.props.methods.triggerEvent({
60
+ name: 'onRowClick',
61
+ event: {
62
+ row: event.data,
63
+ selected: this.gridApi.getSelectedRows(),
64
+ rowIndex: event.rowIndex,
65
+ index: parseInt(event.node.id)
66
+ }
67
+ });
68
+ }
69
+ }
70
+ onCellClicked(event) {
71
+ if (this.props.events.onCellClick) {
72
+ this.props.methods.triggerEvent({
73
+ name: 'onCellClick',
74
+ event: {
75
+ cell: {
76
+ column: event.colDef.field,
77
+ value: event.value
78
+ },
79
+ colId: event.column.colId,
80
+ index: parseInt(event.node.id),
81
+ row: event.data,
82
+ rowIndex: event.rowIndex,
83
+ selected: this.gridApi.getSelectedRows()
84
+ }
85
+ });
86
+ }
87
+ }
88
+ onRowSelected(event) {
89
+ if (!event.node.selected) return; // see https://stackoverflow.com/a/63265775/2453657
90
+ if (this.props.events.onRowSelected) {
91
+ this.props.methods.triggerEvent({
92
+ event: {
93
+ row: event.data,
94
+ selected: this.gridApi.getSelectedRows()
95
+ },
96
+ index: parseInt(event.node.id),
97
+ name: 'onRowSelected',
98
+ rowIndex: event.rowIndex
99
+ });
100
+ }
101
+ }
102
+ onSelectionChanged() {
103
+ if (this.props.events.onSelectionChanged) {
104
+ this.props.methods.triggerEvent({
105
+ name: 'onSelectionChanged',
106
+ event: {
107
+ selected: this.gridApi.getSelectedRows()
108
+ }
109
+ });
110
+ }
111
+ }
112
+ onFilterChanged(event) {
113
+ if (this.props.events.onFilterChanged) {
114
+ this.props.methods.triggerEvent({
115
+ name: 'onFilterChanged',
116
+ event: {
117
+ rows: event.api.rowModel.rowsToDisplay.map((row)=>row.data)
118
+ }
119
+ });
120
+ }
121
+ }
122
+ onRowDragEnd(event) {
123
+ if (event.overNode !== event.node) {
124
+ const fromData = event.node.data;
125
+ const toData = event.overNode.data;
126
+ const fromIndex = this.props.value.indexOf(fromData);
127
+ const toIndex = this.props.value.indexOf(toData);
128
+ const newRowData = this.props.value.slice();
129
+ const element = newRowData[fromIndex];
130
+ newRowData.splice(fromIndex, 1);
131
+ newRowData.splice(toIndex, 0, element);
132
+ this.props.methods.setValue(newRowData);
133
+ this.gridApi.setRowData(this.props.value);
134
+ this.gridApi.clearFocusedCell();
135
+ this.props.methods.triggerEvent({
136
+ name: 'onRowDragEnd',
137
+ event: {
138
+ fromData,
139
+ toData,
140
+ fromIndex,
141
+ toIndex,
142
+ newRowData
143
+ }
144
+ });
145
+ }
146
+ }
147
+ onCellValueChanged(params) {
148
+ const newRowData = this.props.value;
149
+ newRowData[parseInt(params.node.id)][params.colDef.field] = params.newValue;
150
+ this.props.methods.setValue(newRowData);
151
+ this.props.methods.triggerEvent({
152
+ name: 'onCellValueChanged',
153
+ event: {
154
+ field: params.colDef.field,
155
+ index: parseInt(params.node.id),
156
+ newRowData,
157
+ newValue: params.newValue,
158
+ oldValue: params.oldValue,
159
+ rowData: params.data,
160
+ rowIndex: params.rowIndex
161
+ }
162
+ });
163
+ }
164
+ render() {
165
+ const { quickFilterValue , ...someProperties } = this.props.properties;
166
+ if (quickFilterValue && quickFilterValue === '') {
167
+ this.gridApi.setQuickFilter(quickFilterValue); // check if empty string matches all
168
+ }
169
+ return /*#__PURE__*/ React.createElement(AgGridReact, _extends({
170
+ onSelectionChanged: this.onSelectionChanged,
171
+ onRowSelected: this.onRowSelected,
172
+ onRowClicked: this.onRowClick,
173
+ onCellClicked: this.onCellClicked,
174
+ onGridReady: this.onGridReady,
175
+ onRowDragEnd: this.onRowDragEnd,
176
+ onCellValueChanged: this.onCellValueChanged,
177
+ postSort: this.postSort,
178
+ modules: AllCommunityModules
179
+ }, someProperties, {
180
+ rowData: this.props.value
181
+ }));
182
+ }
183
+ constructor(props){
184
+ super(props);
185
+ this.onGridReady = this.onGridReady.bind(this);
186
+ this.onRowClick = this.onRowClick.bind(this);
187
+ this.onCellClicked = this.onCellClicked.bind(this);
188
+ this.onRowSelected = this.onRowSelected.bind(this);
189
+ this.onSelectionChanged = this.onSelectionChanged.bind(this);
190
+ this.onRowDragEnd = this.onRowDragEnd.bind(this);
191
+ this.onCellValueChanged = this.onCellValueChanged.bind(this);
192
+ this.onFilterChanged = this.onFilterChanged.bind(this);
193
+ }
194
+ };
195
+ export default AgGridInput;
@@ -0,0 +1,38 @@
1
+ /*
2
+ Copyright 2021 Lowdefy, Inc
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+ */ import React from 'react';
16
+ import { blockDefaultProps } from '@lowdefy/block-utils';
17
+ import AgGrid from '../../AgGrid.js';
18
+ const AgGridAlpine = ({ blockId , events , methods , properties })=>/*#__PURE__*/ React.createElement("div", {
19
+ id: blockId,
20
+ className: `ag-theme-alpine ${methods.makeCssClass({
21
+ width: '100%',
22
+ height: properties.height || 500,
23
+ ...properties.style
24
+ })}`
25
+ }, /*#__PURE__*/ React.createElement(AgGrid, {
26
+ events: events,
27
+ properties: properties,
28
+ methods: methods
29
+ }));
30
+ AgGridAlpine.defaultProps = blockDefaultProps;
31
+ AgGridAlpine.meta = {
32
+ category: 'display',
33
+ icons: [],
34
+ styles: [
35
+ 'blocks/AgGridAlpine/style.less'
36
+ ]
37
+ };
38
+ export default AgGridAlpine;
@@ -0,0 +1,8 @@
1
+ {
2
+ "type": "object",
3
+ "properties": {
4
+ "properties": {
5
+ "type": "object"
6
+ }
7
+ }
8
+ }
@@ -0,0 +1,18 @@
1
+ /*
2
+ Copyright 2020-2022 Lowdefy, Inc
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+ */
16
+
17
+ @import (less) '@ag-grid-community/all-modules/dist/styles/ag-grid.css';
18
+ @import (less) '@ag-grid-community/all-modules/dist/styles/ag-theme-alpine.css';
@@ -0,0 +1,38 @@
1
+ /*
2
+ Copyright 2021 Lowdefy, Inc
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+ */ import React from 'react';
16
+ import { blockDefaultProps } from '@lowdefy/block-utils';
17
+ import AgGrid from '../../AgGrid.js';
18
+ const AgGridAlpineDark = ({ blockId , events , methods , properties })=>/*#__PURE__*/ React.createElement("div", {
19
+ id: blockId,
20
+ className: `ag-theme-alpine-dark ${methods.makeCssClass({
21
+ width: '100%',
22
+ height: properties.height || 500,
23
+ ...properties.style
24
+ })}`
25
+ }, /*#__PURE__*/ React.createElement(AgGrid, {
26
+ events: events,
27
+ properties: properties,
28
+ methods: methods
29
+ }));
30
+ AgGridAlpineDark.defaultProps = blockDefaultProps;
31
+ AgGridAlpineDark.meta = {
32
+ category: 'display',
33
+ icons: [],
34
+ styles: [
35
+ 'blocks/AgGridAlpineDark/style.less'
36
+ ]
37
+ };
38
+ export default AgGridAlpineDark;
@@ -0,0 +1,8 @@
1
+ {
2
+ "type": "object",
3
+ "properties": {
4
+ "properties": {
5
+ "type": "object"
6
+ }
7
+ }
8
+ }
@@ -0,0 +1,18 @@
1
+ /*
2
+ Copyright 2020-2022 Lowdefy, Inc
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+ */
16
+
17
+ @import (less) '@ag-grid-community/all-modules/dist/styles/ag-grid.css';
18
+ @import (less) '@ag-grid-community/all-modules/dist/styles/ag-theme-alpine-dark.css';
@@ -0,0 +1,38 @@
1
+ /*
2
+ Copyright 2021 Lowdefy, Inc
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+ */ import React from 'react';
16
+ import { blockDefaultProps } from '@lowdefy/block-utils';
17
+ import AgGrid from '../../AgGrid.js';
18
+ const AgGridBalham = ({ blockId , events , methods , properties })=>/*#__PURE__*/ React.createElement("div", {
19
+ id: blockId,
20
+ className: `ag-theme-balham ${methods.makeCssClass({
21
+ width: '100%',
22
+ height: properties.height || 500,
23
+ ...properties.style
24
+ })}`
25
+ }, /*#__PURE__*/ React.createElement(AgGrid, {
26
+ events: events,
27
+ properties: properties,
28
+ methods: methods
29
+ }));
30
+ AgGridBalham.defaultProps = blockDefaultProps;
31
+ AgGridBalham.meta = {
32
+ category: 'display',
33
+ icons: [],
34
+ styles: [
35
+ 'blocks/AgGridBalham/style.less'
36
+ ]
37
+ };
38
+ export default AgGridBalham;
@@ -0,0 +1,8 @@
1
+ {
2
+ "type": "object",
3
+ "properties": {
4
+ "properties": {
5
+ "type": "object"
6
+ }
7
+ }
8
+ }
@@ -0,0 +1,18 @@
1
+ /*
2
+ Copyright 2020-2022 Lowdefy, Inc
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+ */
16
+
17
+ @import (less) '@ag-grid-community/all-modules/dist/styles/ag-grid.css';
18
+ @import (less) '@ag-grid-community/all-modules/dist/styles/ag-theme-balham.css';
@@ -0,0 +1,38 @@
1
+ /*
2
+ Copyright 2021 Lowdefy, Inc
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+ */ import React from 'react';
16
+ import { blockDefaultProps } from '@lowdefy/block-utils';
17
+ import AgGrid from '../../AgGrid.js';
18
+ const AgGridBalhamDark = ({ blockId , events , methods , properties })=>/*#__PURE__*/ React.createElement("div", {
19
+ id: blockId,
20
+ className: `ag-theme-balham-dark ${methods.makeCssClass({
21
+ width: '100%',
22
+ height: properties.height || 500,
23
+ ...properties.style
24
+ })}`
25
+ }, /*#__PURE__*/ React.createElement(AgGrid, {
26
+ events: events,
27
+ properties: properties,
28
+ methods: methods
29
+ }));
30
+ AgGridBalhamDark.defaultProps = blockDefaultProps;
31
+ AgGridBalhamDark.meta = {
32
+ category: 'display',
33
+ icons: [],
34
+ styles: [
35
+ 'blocks/AgGridBalhamDark/style.less'
36
+ ]
37
+ };
38
+ export default AgGridBalhamDark;
@@ -0,0 +1,8 @@
1
+ {
2
+ "type": "object",
3
+ "properties": {
4
+ "properties": {
5
+ "type": "object"
6
+ }
7
+ }
8
+ }
@@ -0,0 +1,18 @@
1
+ /*
2
+ Copyright 2020-2022 Lowdefy, Inc
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+ */
16
+
17
+ @import (less) '@ag-grid-community/all-modules/dist/styles/ag-grid.css';
18
+ @import (less) '@ag-grid-community/all-modules/dist/styles/ag-theme-balham-dark.css';