@lowdefy/blocks-aggrid 5.6.0 → 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.
@@ -0,0 +1,645 @@
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: Material - Basic Table
16
+ fullWidth: true
17
+ blocks:
18
+ - id: material_basic_table
19
+ type: AgGridMaterial
20
+ properties:
21
+ height: 300
22
+ columnDefs:
23
+ - field: name
24
+ headerName: Name
25
+ - field: age
26
+ headerName: Age
27
+ - field: email
28
+ headerName: Email
29
+ - field: country
30
+ headerName: Country
31
+ rowData:
32
+ - name: Alice Johnson
33
+ age: 28
34
+ email: alice@example.com
35
+ country: United States
36
+ - name: Bob Smith
37
+ age: 35
38
+ email: bob@example.com
39
+ country: United Kingdom
40
+ - name: Charlie Lee
41
+ age: 42
42
+ email: charlie@example.com
43
+ country: Japan
44
+ - name: Diana Patel
45
+ age: 31
46
+ email: diana@example.com
47
+ country: India
48
+ - name: Erik Johansson
49
+ age: 26
50
+ email: erik@example.com
51
+ country: Sweden
52
+ - name: Fatima Al-Rashid
53
+ age: 39
54
+ email: fatima@example.com
55
+ country: UAE
56
+
57
+ - title: Material - Column Features
58
+ fullWidth: true
59
+ blocks:
60
+ - id: material_column_features
61
+ type: AgGridMaterial
62
+ properties:
63
+ height: 300
64
+ columnDefs:
65
+ - field: id
66
+ headerName: ID
67
+ width: 80
68
+ pinned: left
69
+ sortable: true
70
+ - field: product
71
+ headerName: Product Name
72
+ flex: 2
73
+ sortable: true
74
+ filter: true
75
+ - field: category
76
+ headerName: Category
77
+ flex: 1
78
+ sortable: true
79
+ filter: true
80
+ - field: price
81
+ headerName: Price ($)
82
+ width: 120
83
+ sortable: true
84
+ resizable: true
85
+ - field: stock
86
+ headerName: Stock
87
+ width: 100
88
+ sortable: true
89
+ - field: rating
90
+ headerName: Rating
91
+ width: 100
92
+ sortable: true
93
+ rowData:
94
+ - id: 1
95
+ product: Wireless Keyboard
96
+ category: Electronics
97
+ price: 49.99
98
+ stock: 230
99
+ rating: 4.5
100
+ - id: 2
101
+ product: Standing Desk
102
+ category: Furniture
103
+ price: 399.00
104
+ stock: 45
105
+ rating: 4.8
106
+ - id: 3
107
+ product: USB-C Hub
108
+ category: Electronics
109
+ price: 29.99
110
+ stock: 520
111
+ rating: 4.2
112
+ - id: 4
113
+ product: Ergonomic Chair
114
+ category: Furniture
115
+ price: 289.00
116
+ stock: 78
117
+ rating: 4.6
118
+ - id: 5
119
+ product: Webcam HD
120
+ category: Electronics
121
+ price: 79.99
122
+ stock: 310
123
+ rating: 4.0
124
+
125
+ - title: Material - Default Column Definitions
126
+ fullWidth: true
127
+ blocks:
128
+ - id: material_default_col_def
129
+ type: AgGridMaterial
130
+ properties:
131
+ height: 300
132
+ defaultColDef:
133
+ sortable: true
134
+ filter: true
135
+ resizable: true
136
+ flex: 1
137
+ columnDefs:
138
+ - field: employee
139
+ headerName: Employee
140
+ - field: department
141
+ headerName: Department
142
+ - field: title
143
+ headerName: Job Title
144
+ - field: location
145
+ headerName: Office
146
+ - field: startDate
147
+ headerName: Start Date
148
+ rowData:
149
+ - employee: Sarah Chen
150
+ department: Engineering
151
+ title: Senior Developer
152
+ location: San Francisco
153
+ startDate: '2019-03-15'
154
+ - employee: James Wilson
155
+ department: Marketing
156
+ title: Campaign Manager
157
+ location: New York
158
+ startDate: '2020-07-01'
159
+ - employee: Maria Garcia
160
+ department: Engineering
161
+ title: Tech Lead
162
+ location: Austin
163
+ startDate: '2018-11-20'
164
+ - employee: David Kim
165
+ department: Sales
166
+ title: Account Executive
167
+ location: Chicago
168
+ startDate: '2021-01-10'
169
+ - employee: Emily Brown
170
+ department: Design
171
+ title: UX Designer
172
+ location: San Francisco
173
+ startDate: '2020-09-05'
174
+
175
+ - title: Material - Row Selection
176
+ fullWidth: true
177
+ blocks:
178
+ - id: material_row_selection
179
+ type: AgGridMaterial
180
+ properties:
181
+ height: 300
182
+ rowSelection:
183
+ mode: multiRow
184
+ checkboxes: false
185
+ headerCheckbox: false
186
+ enableClickSelection: true
187
+ defaultColDef:
188
+ sortable: true
189
+ flex: 1
190
+ columnDefs:
191
+ - field: task
192
+ headerName: Task
193
+ flex: 2
194
+ - field: assignee
195
+ headerName: Assignee
196
+ - field: priority
197
+ headerName: Priority
198
+ width: 120
199
+ - field: status
200
+ headerName: Status
201
+ width: 120
202
+ rowData:
203
+ - task: Design login page
204
+ assignee: Alice
205
+ priority: High
206
+ status: Done
207
+ - task: Implement API endpoints
208
+ assignee: Bob
209
+ priority: High
210
+ status: In Progress
211
+ - task: Write unit tests
212
+ assignee: Charlie
213
+ priority: Medium
214
+ status: To Do
215
+ - task: Update documentation
216
+ assignee: Diana
217
+ priority: Low
218
+ status: To Do
219
+ - task: Code review PR #42
220
+ assignee: Erik
221
+ priority: Medium
222
+ status: In Progress
223
+
224
+ - title: Material - Pagination
225
+ fullWidth: true
226
+ blocks:
227
+ - id: material_pagination
228
+ type: AgGridMaterial
229
+ properties:
230
+ height: 350
231
+ pagination: true
232
+ paginationPageSize: 5
233
+ defaultColDef:
234
+ sortable: true
235
+ filter: true
236
+ flex: 1
237
+ columnDefs:
238
+ - field: orderId
239
+ headerName: Order ID
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-401
256
+ customer: Acme Corp
257
+ product: Widget Pro
258
+ quantity: 50
259
+ total: 2499.50
260
+ status: Shipped
261
+ - orderId: ORD-402
262
+ customer: Globex Inc
263
+ product: Gadget X
264
+ quantity: 25
265
+ total: 1249.75
266
+ status: Processing
267
+ - orderId: ORD-403
268
+ customer: Initech
269
+ product: Widget Pro
270
+ quantity: 100
271
+ total: 4999.00
272
+ status: Delivered
273
+ - orderId: ORD-404
274
+ customer: Umbrella Ltd
275
+ product: Connector A
276
+ quantity: 200
277
+ total: 1998.00
278
+ status: Shipped
279
+ - orderId: ORD-405
280
+ customer: Stark Ind
281
+ product: Gadget X
282
+ quantity: 10
283
+ total: 499.90
284
+ status: Processing
285
+ - orderId: ORD-406
286
+ customer: Wayne Ent
287
+ product: Widget Pro
288
+ quantity: 75
289
+ total: 3749.25
290
+ status: Delivered
291
+ - orderId: ORD-407
292
+ customer: Oscorp
293
+ product: Connector A
294
+ quantity: 150
295
+ total: 1498.50
296
+ status: Shipped
297
+ - orderId: ORD-408
298
+ customer: LexCorp
299
+ product: Gadget X
300
+ quantity: 30
301
+ total: 1499.70
302
+ status: Processing
303
+
304
+ - title: Material - Column Styling
305
+ fullWidth: true
306
+ blocks:
307
+ - id: material_styled_columns
308
+ type: AgGridMaterial
309
+ properties:
310
+ height: 300
311
+ defaultColDef:
312
+ sortable: true
313
+ flex: 1
314
+ columnDefs:
315
+ - field: metric
316
+ headerName: Metric
317
+ flex: 2
318
+ cellStyle:
319
+ fontWeight: bold
320
+ - field: q1
321
+ headerName: Q1
322
+ cellStyle:
323
+ backgroundColor: '#e6f7ff'
324
+ textAlign: right
325
+ - field: q2
326
+ headerName: Q2
327
+ cellStyle:
328
+ backgroundColor: '#f6ffed'
329
+ textAlign: right
330
+ - field: q3
331
+ headerName: Q3
332
+ cellStyle:
333
+ backgroundColor: '#fff7e6'
334
+ textAlign: right
335
+ - field: q4
336
+ headerName: Q4
337
+ cellStyle:
338
+ backgroundColor: '#fff1f0'
339
+ textAlign: right
340
+ rowData:
341
+ - metric: Revenue ($K)
342
+ q1: 1250
343
+ q2: 1380
344
+ q3: 1520
345
+ q4: 1690
346
+ - metric: New Customers
347
+ q1: 145
348
+ q2: 162
349
+ q3: 178
350
+ q4: 201
351
+ - metric: Churn Rate (%)
352
+ q1: 3.2
353
+ q2: 2.8
354
+ q3: 2.5
355
+ q4: 2.1
356
+ - metric: NPS Score
357
+ q1: 42
358
+ q2: 45
359
+ q3: 48
360
+ q4: 52
361
+
362
+ - title: Built-in cell types
363
+ fullWidth: true
364
+ blocks:
365
+ - id: cell_types_demo
366
+ type: AgGridMaterial
367
+ properties:
368
+ height: 360
369
+ defaultColDef:
370
+ resizable: true
371
+ flex: 1
372
+ columnDefs:
373
+ - headerName: Status
374
+ field: status
375
+ width: 130
376
+ cell:
377
+ type: tag
378
+ colorMap:
379
+ Active: green
380
+ Blocked: red
381
+ Pending: blue
382
+ 'On Leave': orange
383
+ - headerName: Assignee
384
+ field: name
385
+ minWidth: 220
386
+ cell:
387
+ type: avatar
388
+ nameField: name
389
+ srcField: picture
390
+ idField: id
391
+ - headerName: Created
392
+ field: created_at
393
+ width: 170
394
+ cell:
395
+ type: date
396
+ - headerName: Last seen
397
+ field: last_seen
398
+ width: 150
399
+ cell:
400
+ type: date
401
+ relative: true
402
+ - headerName: Verified
403
+ field: verified
404
+ width: 110
405
+ cell:
406
+ type: boolean
407
+ - headerName: Progress
408
+ field: completion
409
+ width: 130
410
+ cell:
411
+ type: progress
412
+ rowData:
413
+ - id: u1
414
+ name: Alice Johnson
415
+ picture: https://i.pravatar.cc/80?img=1
416
+ status: Active
417
+ created_at: '2025-11-14T09:30:00Z'
418
+ last_seen: '2026-04-17T11:45:00Z'
419
+ verified: true
420
+ completion: 92
421
+ - id: u2
422
+ name: Bob Smith
423
+ status: On Leave
424
+ created_at: '2025-09-02T14:10:00Z'
425
+ last_seen: '2026-04-10T08:15:00Z'
426
+ verified: true
427
+ completion: 68
428
+ - id: u3
429
+ name: Charlie Lee
430
+ picture: https://i.pravatar.cc/80?img=5
431
+ status: Blocked
432
+ created_at: '2026-01-20T18:00:00Z'
433
+ last_seen: '2026-04-17T07:22:00Z'
434
+ verified: false
435
+ completion: 22
436
+ - id: u4
437
+ name: Diana Patel
438
+ status: Pending
439
+ created_at: null
440
+ last_seen: null
441
+ verified: null
442
+ completion: null
443
+
444
+ - title: Linked cells (onCellLink)
445
+ fullWidth: true
446
+ blocks:
447
+ - id: linked_cells_demo
448
+ type: AgGridMaterial
449
+ properties:
450
+ height: 240
451
+ defaultColDef:
452
+ resizable: true
453
+ flex: 1
454
+ columnDefs:
455
+ - headerName: Task ID
456
+ field: _id
457
+ width: 140
458
+ cell:
459
+ type: link
460
+ pageId: tasks-view
461
+ urlQuery:
462
+ _id: _id
463
+ - headerName: Assignee
464
+ field: assignee
465
+ cell:
466
+ type: avatar
467
+ nameField: assignee
468
+ idField: _id
469
+ link:
470
+ pageId: user
471
+ urlQuery:
472
+ userId: _id
473
+ - headerName: Priority
474
+ field: priority
475
+ width: 120
476
+ cell:
477
+ type: tag
478
+ colorMap:
479
+ High: red
480
+ Medium: orange
481
+ Low: default
482
+ rowData:
483
+ - _id: TSK-001
484
+ assignee: Alice Johnson
485
+ priority: High
486
+ - _id: TSK-002
487
+ assignee: Bob Smith
488
+ priority: Medium
489
+ - _id: TSK-003
490
+ assignee: Charlie Lee
491
+ priority: Low
492
+ events:
493
+ onCellLink:
494
+ - id: navigate
495
+ type: Link
496
+ params:
497
+ _event: link
498
+
499
+ - title: Ellipsis column helper
500
+ fullWidth: true
501
+ blocks:
502
+ - id: ellipsis_demo
503
+ type: AgGridMaterial
504
+ properties:
505
+ height: 280
506
+ defaultColDef:
507
+ resizable: true
508
+ columnDefs:
509
+ - headerName: Code
510
+ field: code
511
+ width: 100
512
+ - headerName: Title
513
+ field: title
514
+ minWidth: 220
515
+ - headerName: Description
516
+ field: description
517
+ flex: 1
518
+ ellipsis: 2
519
+ rowData:
520
+ - code: A-01
521
+ title: Main switchboard
522
+ description: Drafted the main switchboard layout and circuit schedule across three floors. Awaiting sign-off from the project engineer before ordering long-lead parts.
523
+ - code: A-02
524
+ title: East wing HVAC
525
+ description: Balancing HVAC loads across the east wing. Waiting on updated ductwork drawings from the architect and a revised thermal model from the mechanical team.
526
+ - code: A-03
527
+ title: Utility connections
528
+ description: Blocked on the utility connection survey — main was not where the drawings said it would be, which has cascaded to the trenching schedule.
529
+
530
+ - title: Number formatting (currency, percent, compact, accounting)
531
+ fullWidth: true
532
+ blocks:
533
+ - id: number_demo
534
+ type: AgGridMaterial
535
+ properties:
536
+ height: 320
537
+ defaultColDef:
538
+ resizable: true
539
+ columnDefs:
540
+ - headerName: Account
541
+ field: account
542
+ width: 180
543
+ - headerName: Revenue (USD)
544
+ field: revenue
545
+ width: 150
546
+ cell:
547
+ type: number
548
+ format: currency
549
+ currency: USD
550
+ decimals: 0
551
+ - headerName: EUR
552
+ field: revenue_eur
553
+ width: 150
554
+ cell:
555
+ type: number
556
+ format: currency
557
+ currency: EUR
558
+ locale: de-DE
559
+ decimals: 2
560
+ - headerName: Δ vs budget
561
+ field: delta
562
+ width: 160
563
+ cell:
564
+ type: number
565
+ format: currency
566
+ currency: USD
567
+ decimals: 2
568
+ negative: parentheses
569
+ signColor: true
570
+ - headerName: Margin
571
+ field: margin
572
+ width: 110
573
+ cell:
574
+ type: number
575
+ format: percent
576
+ decimals: 1
577
+ - headerName: Impressions
578
+ field: impressions
579
+ width: 130
580
+ cell:
581
+ type: number
582
+ format: compact
583
+ - headerName: Ratio
584
+ field: ratio
585
+ width: 110
586
+ cell:
587
+ type: number
588
+ decimals: 3
589
+ rowData:
590
+ - account: Acme Corp
591
+ revenue: 1245000
592
+ revenue_eur: 1125750.5
593
+ delta: 12500
594
+ margin: 0.184
595
+ impressions: 12340
596
+ ratio: 1.234
597
+ - account: Globex
598
+ revenue: 825500
599
+ revenue_eur: 745600.25
600
+ delta: -44250.5
601
+ margin: 0.072
602
+ impressions: 1050000
603
+ ratio: 0.876
604
+ - account: Stark Ind.
605
+ revenue: 4820000
606
+ revenue_eur: 4350750
607
+ delta: -125000
608
+ margin: -0.033
609
+ impressions: 85400000
610
+ ratio: 2.12
611
+ - account: Wayne Ent.
612
+ revenue: 3150000
613
+ revenue_eur: 2845300
614
+ delta: 87500
615
+ margin: 0.221
616
+ impressions: 524000
617
+ ratio: 0.948
618
+
619
+ - title: Loading overlay (block loading flag)
620
+ fullWidth: true
621
+ blocks:
622
+ - id: loading_demo_switch
623
+ type: Switch
624
+ properties:
625
+ title: Toggle loading overlay
626
+ - id: loading_demo_grid
627
+ type: AgGridMaterial
628
+ loading:
629
+ _state: loading_demo_switch
630
+ properties:
631
+ height: 260
632
+ defaultColDef:
633
+ flex: 1
634
+ columnDefs:
635
+ - field: name
636
+ headerName: Name
637
+ - field: role
638
+ headerName: Role
639
+ rowData:
640
+ - name: Alice Johnson
641
+ role: Developer
642
+ - name: Bob Smith
643
+ role: Designer
644
+ - name: Charlie Lee
645
+ role: Manager