@lowdefy/blocks-aggrid 5.5.1 → 6.0.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 (51) hide show
  1. package/README.md +58 -19
  2. package/dist/AgGrid.js +22 -14
  3. package/dist/AgGridInput.js +21 -14
  4. package/dist/ag-grid-antd.module.css +18 -49
  5. package/dist/blocks/AgGridAlpine/AgGridAlpine.js +4 -3
  6. package/dist/blocks/AgGridAlpine/e2e.js +1 -1
  7. package/dist/blocks/AgGridAlpine/gallery.yaml +1451 -0
  8. package/dist/blocks/AgGridAlpine/tests/AgGridAlpine.e2e.yaml +310 -0
  9. package/dist/blocks/AgGridBalham/AgGridBalham.js +4 -3
  10. package/dist/blocks/AgGridBalham/e2e.js +1 -1
  11. package/dist/blocks/AgGridBalham/gallery.yaml +645 -0
  12. package/dist/blocks/AgGridBalham/tests/AgGridBalham.e2e.yaml +594 -0
  13. package/dist/blocks/AgGridInputAlpine/AgGridInputAlpine.js +3 -2
  14. package/dist/blocks/AgGridInputAlpine/e2e.js +1 -1
  15. package/dist/blocks/AgGridInputAlpine/gallery.yaml +362 -0
  16. package/dist/blocks/AgGridInputAlpine/tests/AgGridInputAlpine.e2e.yaml +365 -0
  17. package/dist/blocks/AgGridInputBalham/AgGridInputBalham.js +3 -2
  18. package/dist/blocks/AgGridInputBalham/e2e.js +1 -1
  19. package/dist/blocks/AgGridInputBalham/gallery.yaml +362 -0
  20. package/dist/blocks/AgGridInputBalham/tests/AgGridInputBalham.e2e.yaml +365 -0
  21. package/dist/blocks/AgGridInputMaterial/AgGridInputMaterial.js +3 -2
  22. package/dist/blocks/AgGridInputMaterial/e2e.js +1 -1
  23. package/dist/blocks/AgGridInputMaterial/gallery.yaml +362 -0
  24. package/dist/blocks/AgGridInputMaterial/tests/AgGridInputMaterial.e2e.yaml +365 -0
  25. package/dist/blocks/AgGridLowdefy/AgGridLowdefy.js +45 -0
  26. package/dist/blocks/AgGridLowdefy/e2e.js +16 -0
  27. package/dist/blocks/AgGridLowdefy/gallery.yaml +1242 -0
  28. package/dist/blocks/AgGridLowdefy/meta.js +18 -0
  29. package/dist/blocks/AgGridLowdefy/tests/AgGridLowdefy.e2e.yaml +667 -0
  30. package/dist/blocks/AgGridLowdefyInput/AgGridLowdefyInput.js +48 -0
  31. package/dist/blocks/AgGridLowdefyInput/e2e.js +16 -0
  32. package/dist/blocks/AgGridLowdefyInput/gallery.yaml +489 -0
  33. package/dist/blocks/AgGridLowdefyInput/meta.js +18 -0
  34. package/dist/blocks/AgGridLowdefyInput/tests/AgGridLowdefyInput.e2e.yaml +686 -0
  35. package/dist/blocks/AgGridMaterial/AgGridMaterial.js +4 -3
  36. package/dist/blocks/AgGridMaterial/e2e.js +1 -1
  37. package/dist/blocks/AgGridMaterial/gallery.yaml +645 -0
  38. package/dist/blocks/AgGridMaterial/tests/AgGridMaterial.e2e.yaml +310 -0
  39. package/dist/blocks.js +2 -0
  40. package/dist/cellRenderers/MenuCell.js +110 -0
  41. package/dist/cellRenderers/index.js +2 -0
  42. package/dist/createAgGridDisplayHelper.js +1 -2
  43. package/dist/createAgGridInputHelper.js +1 -2
  44. package/dist/createDisplayMeta.js +115 -4
  45. package/dist/createInputMeta.js +20 -3
  46. package/dist/e2e.js +2 -0
  47. package/dist/metas.js +2 -0
  48. package/dist/processColDefs.js +75 -32
  49. package/dist/theme/themeLowdefy.js +165 -0
  50. package/dist/useColDefs.js +65 -0
  51. package/package.json +14 -17
@@ -14,11 +14,11 @@
14
14
  limitations under the License.
15
15
  */ import React from 'react';
16
16
  import { withBlockDefaults } from '@lowdefy/block-utils';
17
- import '@ag-grid-community/styles/ag-grid.css';
18
- import '@ag-grid-community/styles/ag-theme-balham.css';
19
17
  import antdStyles from '../../ag-grid-antd.module.css';
18
+ import { themeBalhamAntd, useGridTheme } from '../../theme/themeLowdefy.js';
20
19
  import AgGridInput from '../../AgGridInput.js';
21
20
  const AgGridInputBalham = ({ blockId, events, loading, methods, properties, required, styles, validation, value })=>{
21
+ const theme = useGridTheme(themeBalhamAntd, properties.themeParams);
22
22
  return /*#__PURE__*/ React.createElement("div", {
23
23
  id: blockId,
24
24
  className: `ag-theme-balham ${antdStyles.antdTheme}`,
@@ -34,6 +34,7 @@ const AgGridInputBalham = ({ blockId, events, loading, methods, properties, requ
34
34
  methods: methods,
35
35
  properties: properties,
36
36
  required: required,
37
+ theme: theme,
37
38
  validation: validation,
38
39
  value: value
39
40
  }));
@@ -13,4 +13,4 @@
13
13
  See the License for the specific language governing permissions and
14
14
  limitations under the License.
15
15
  */ import createAgGridInputHelper from '../../createAgGridInputHelper.js';
16
- export default createAgGridInputHelper('balham');
16
+ export default createAgGridInputHelper();
@@ -0,0 +1,362 @@
1
+ # Copyright 2020-2026 Lowdefy, Inc
2
+
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ - title: Input Balham - Basic Editable Table
16
+ fullWidth: true
17
+ blocks:
18
+ - id: input_balham_basic_editable
19
+ type: AgGridInputBalham
20
+ properties:
21
+ height: 300
22
+ defaultColDef:
23
+ editable: true
24
+ flex: 1
25
+ columnDefs:
26
+ - field: name
27
+ headerName: Name
28
+ - field: age
29
+ headerName: Age
30
+ - field: email
31
+ headerName: Email
32
+ - field: country
33
+ headerName: Country
34
+ rowData:
35
+ - name: Alice Johnson
36
+ age: 28
37
+ email: alice@example.com
38
+ country: United States
39
+ - name: Bob Smith
40
+ age: 35
41
+ email: bob@example.com
42
+ country: United Kingdom
43
+ - name: Charlie Lee
44
+ age: 42
45
+ email: charlie@example.com
46
+ country: Japan
47
+ - name: Diana Patel
48
+ age: 31
49
+ email: diana@example.com
50
+ country: India
51
+ - name: Erik Johansson
52
+ age: 26
53
+ email: erik@example.com
54
+ country: Sweden
55
+
56
+ - title: Input Balham - Mixed Editable Columns
57
+ fullWidth: true
58
+ blocks:
59
+ - id: input_balham_mixed_editable
60
+ type: AgGridInputBalham
61
+ properties:
62
+ height: 300
63
+ columnDefs:
64
+ - field: id
65
+ headerName: ID
66
+ width: 80
67
+ editable: false
68
+ pinned: left
69
+ - field: product
70
+ headerName: Product Name
71
+ flex: 2
72
+ editable: true
73
+ - field: category
74
+ headerName: Category
75
+ flex: 1
76
+ editable: true
77
+ - field: price
78
+ headerName: Price ($)
79
+ width: 120
80
+ editable: true
81
+ - field: stock
82
+ headerName: Stock
83
+ width: 100
84
+ editable: true
85
+ - field: rating
86
+ headerName: Rating
87
+ width: 100
88
+ editable: false
89
+ rowData:
90
+ - id: 1
91
+ product: Wireless Keyboard
92
+ category: Electronics
93
+ price: 49.99
94
+ stock: 230
95
+ rating: 4.5
96
+ - id: 2
97
+ product: Standing Desk
98
+ category: Furniture
99
+ price: 399.00
100
+ stock: 45
101
+ rating: 4.8
102
+ - id: 3
103
+ product: USB-C Hub
104
+ category: Electronics
105
+ price: 29.99
106
+ stock: 520
107
+ rating: 4.2
108
+ - id: 4
109
+ product: Ergonomic Chair
110
+ category: Furniture
111
+ price: 289.00
112
+ stock: 78
113
+ rating: 4.6
114
+ - id: 5
115
+ product: Webcam HD
116
+ category: Electronics
117
+ price: 79.99
118
+ stock: 310
119
+ rating: 4.0
120
+
121
+ - title: Input Balham - Default Column Definitions
122
+ fullWidth: true
123
+ blocks:
124
+ - id: input_balham_default_col_def
125
+ type: AgGridInputBalham
126
+ properties:
127
+ height: 300
128
+ defaultColDef:
129
+ sortable: true
130
+ filter: true
131
+ resizable: true
132
+ editable: true
133
+ flex: 1
134
+ columnDefs:
135
+ - field: employee
136
+ headerName: Employee
137
+ - field: department
138
+ headerName: Department
139
+ - field: title
140
+ headerName: Job Title
141
+ - field: location
142
+ headerName: Office
143
+ - field: startDate
144
+ headerName: Start Date
145
+ rowData:
146
+ - employee: Sarah Chen
147
+ department: Engineering
148
+ title: Senior Developer
149
+ location: San Francisco
150
+ startDate: '2019-03-15'
151
+ - employee: James Wilson
152
+ department: Marketing
153
+ title: Campaign Manager
154
+ location: New York
155
+ startDate: '2020-07-01'
156
+ - employee: Maria Garcia
157
+ department: Engineering
158
+ title: Tech Lead
159
+ location: Austin
160
+ startDate: '2018-11-20'
161
+ - employee: David Kim
162
+ department: Sales
163
+ title: Account Executive
164
+ location: Chicago
165
+ startDate: '2021-01-10'
166
+ - employee: Emily Brown
167
+ department: Design
168
+ title: UX Designer
169
+ location: San Francisco
170
+ startDate: '2020-09-05'
171
+
172
+ - title: Input Balham - Row Selection
173
+ fullWidth: true
174
+ blocks:
175
+ - id: input_balham_row_selection
176
+ type: AgGridInputBalham
177
+ properties:
178
+ height: 300
179
+ rowSelection:
180
+ mode: multiRow
181
+ checkboxes: false
182
+ headerCheckbox: false
183
+ enableClickSelection: true
184
+ defaultColDef:
185
+ sortable: true
186
+ editable: true
187
+ flex: 1
188
+ columnDefs:
189
+ - field: task
190
+ headerName: Task
191
+ flex: 2
192
+ - field: assignee
193
+ headerName: Assignee
194
+ - field: priority
195
+ headerName: Priority
196
+ width: 120
197
+ - field: status
198
+ headerName: Status
199
+ width: 120
200
+ rowData:
201
+ - task: Design login page
202
+ assignee: Alice
203
+ priority: High
204
+ status: Done
205
+ - task: Implement API endpoints
206
+ assignee: Bob
207
+ priority: High
208
+ status: In Progress
209
+ - task: Write unit tests
210
+ assignee: Charlie
211
+ priority: Medium
212
+ status: To Do
213
+ - task: Update documentation
214
+ assignee: Diana
215
+ priority: Low
216
+ status: To Do
217
+ - task: Code review PR #42
218
+ assignee: Erik
219
+ priority: Medium
220
+ status: In Progress
221
+
222
+ - title: Input Balham - Pagination
223
+ fullWidth: true
224
+ blocks:
225
+ - id: input_balham_pagination
226
+ type: AgGridInputBalham
227
+ properties:
228
+ height: 350
229
+ pagination: true
230
+ paginationPageSize: 5
231
+ defaultColDef:
232
+ sortable: true
233
+ filter: true
234
+ editable: true
235
+ flex: 1
236
+ columnDefs:
237
+ - field: orderId
238
+ headerName: Order ID
239
+ editable: false
240
+ width: 120
241
+ - field: customer
242
+ headerName: Customer
243
+ - field: product
244
+ headerName: Product
245
+ - field: quantity
246
+ headerName: Qty
247
+ width: 80
248
+ - field: total
249
+ headerName: Total ($)
250
+ width: 110
251
+ - field: status
252
+ headerName: Status
253
+ width: 120
254
+ rowData:
255
+ - orderId: ORD-701
256
+ customer: Acme Corp
257
+ product: Widget Pro
258
+ quantity: 50
259
+ total: 2499.50
260
+ status: Shipped
261
+ - orderId: ORD-702
262
+ customer: Globex Inc
263
+ product: Gadget X
264
+ quantity: 25
265
+ total: 1249.75
266
+ status: Processing
267
+ - orderId: ORD-703
268
+ customer: Initech
269
+ product: Widget Pro
270
+ quantity: 100
271
+ total: 4999.00
272
+ status: Delivered
273
+ - orderId: ORD-704
274
+ customer: Umbrella Ltd
275
+ product: Connector A
276
+ quantity: 200
277
+ total: 1998.00
278
+ status: Shipped
279
+ - orderId: ORD-705
280
+ customer: Stark Ind
281
+ product: Gadget X
282
+ quantity: 10
283
+ total: 499.90
284
+ status: Processing
285
+ - orderId: ORD-706
286
+ customer: Wayne Ent
287
+ product: Widget Pro
288
+ quantity: 75
289
+ total: 3749.25
290
+ status: Delivered
291
+ - orderId: ORD-707
292
+ customer: Oscorp
293
+ product: Connector A
294
+ quantity: 150
295
+ total: 1498.50
296
+ status: Shipped
297
+ - orderId: ORD-708
298
+ customer: LexCorp
299
+ product: Gadget X
300
+ quantity: 30
301
+ total: 1499.70
302
+ status: Processing
303
+
304
+ - title: Input Balham - Column Styling
305
+ fullWidth: true
306
+ blocks:
307
+ - id: input_balham_styled_columns
308
+ type: AgGridInputBalham
309
+ properties:
310
+ height: 300
311
+ defaultColDef:
312
+ sortable: true
313
+ editable: true
314
+ flex: 1
315
+ columnDefs:
316
+ - field: metric
317
+ headerName: Metric
318
+ flex: 2
319
+ editable: false
320
+ cellStyle:
321
+ fontWeight: bold
322
+ - field: q1
323
+ headerName: Q1
324
+ cellStyle:
325
+ backgroundColor: '#e6f7ff'
326
+ textAlign: right
327
+ - field: q2
328
+ headerName: Q2
329
+ cellStyle:
330
+ backgroundColor: '#f6ffed'
331
+ textAlign: right
332
+ - field: q3
333
+ headerName: Q3
334
+ cellStyle:
335
+ backgroundColor: '#fff7e6'
336
+ textAlign: right
337
+ - field: q4
338
+ headerName: Q4
339
+ cellStyle:
340
+ backgroundColor: '#fff1f0'
341
+ textAlign: right
342
+ rowData:
343
+ - metric: Revenue ($K)
344
+ q1: 1250
345
+ q2: 1380
346
+ q3: 1520
347
+ q4: 1690
348
+ - metric: New Customers
349
+ q1: 145
350
+ q2: 162
351
+ q3: 178
352
+ q4: 201
353
+ - metric: Churn Rate (%)
354
+ q1: 3.2
355
+ q2: 2.8
356
+ q3: 2.5
357
+ q4: 2.1
358
+ - metric: NPS Score
359
+ q1: 42
360
+ q2: 45
361
+ q3: 48
362
+ q4: 52