@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,489 @@
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
+ # AgGridLowdefyInput is an input block: it renders the rows held in its own value, and ignores a
16
+ # rowData property. Each example therefore seeds its value from state on mount.
17
+
18
+ - title: Lowdefy Input - Basic Editable Table
19
+ fullWidth: true
20
+ blocks:
21
+ - id: input_lowdefy_basic_editable
22
+ type: AgGridLowdefyInput
23
+ properties:
24
+ height: 300
25
+ defaultColDef:
26
+ editable: true
27
+ flex: 1
28
+ columnDefs:
29
+ - field: name
30
+ headerName: Name
31
+ - field: age
32
+ headerName: Age
33
+ - field: email
34
+ headerName: Email
35
+ - field: country
36
+ headerName: Country
37
+ events:
38
+ onMount:
39
+ - id: seed_basic_editable
40
+ type: SetState
41
+ params:
42
+ input_lowdefy_basic_editable:
43
+ - name: Alice Johnson
44
+ age: 28
45
+ email: alice@example.com
46
+ country: United States
47
+ - name: Bob Smith
48
+ age: 35
49
+ email: bob@example.com
50
+ country: United Kingdom
51
+ - name: Charlie Lee
52
+ age: 42
53
+ email: charlie@example.com
54
+ country: Japan
55
+ - name: Diana Patel
56
+ age: 31
57
+ email: diana@example.com
58
+ country: India
59
+ - name: Erik Johansson
60
+ age: 26
61
+ email: erik@example.com
62
+ country: Sweden
63
+
64
+ - title: Lowdefy Input - Row density (size)
65
+ fullWidth: true
66
+ blocks:
67
+ - id: input_lowdefy_size_small
68
+ type: AgGridLowdefyInput
69
+ properties:
70
+ size: small
71
+ height: 220
72
+ defaultColDef:
73
+ editable: true
74
+ flex: 1
75
+ columnDefs:
76
+ - field: name
77
+ headerName: Name
78
+ - field: role
79
+ headerName: Role
80
+ - field: country
81
+ headerName: Country
82
+ events:
83
+ onMount:
84
+ - id: seed_size_small
85
+ type: SetState
86
+ params:
87
+ input_lowdefy_size_small:
88
+ - name: Alice Johnson
89
+ role: Developer
90
+ country: United States
91
+ - name: Bob Smith
92
+ role: Designer
93
+ country: United Kingdom
94
+ - name: Charlie Lee
95
+ role: Manager
96
+ country: Japan
97
+ - id: input_lowdefy_size_middle
98
+ type: AgGridLowdefyInput
99
+ properties:
100
+ size: middle
101
+ height: 220
102
+ defaultColDef:
103
+ editable: true
104
+ flex: 1
105
+ columnDefs:
106
+ - field: name
107
+ headerName: Name
108
+ - field: role
109
+ headerName: Role
110
+ - field: country
111
+ headerName: Country
112
+ events:
113
+ onMount:
114
+ - id: seed_size_middle
115
+ type: SetState
116
+ params:
117
+ input_lowdefy_size_middle:
118
+ - name: Alice Johnson
119
+ role: Developer
120
+ country: United States
121
+ - name: Bob Smith
122
+ role: Designer
123
+ country: United Kingdom
124
+ - name: Charlie Lee
125
+ role: Manager
126
+ country: Japan
127
+ - id: input_lowdefy_size_large
128
+ type: AgGridLowdefyInput
129
+ properties:
130
+ size: large
131
+ height: 220
132
+ defaultColDef:
133
+ editable: true
134
+ flex: 1
135
+ columnDefs:
136
+ - field: name
137
+ headerName: Name
138
+ - field: role
139
+ headerName: Role
140
+ - field: country
141
+ headerName: Country
142
+ events:
143
+ onMount:
144
+ - id: seed_size_large
145
+ type: SetState
146
+ params:
147
+ input_lowdefy_size_large:
148
+ - name: Alice Johnson
149
+ role: Developer
150
+ country: United States
151
+ - name: Bob Smith
152
+ role: Designer
153
+ country: United Kingdom
154
+ - name: Charlie Lee
155
+ role: Manager
156
+ country: Japan
157
+
158
+ - title: Lowdefy Input - Mixed Editable Columns
159
+ fullWidth: true
160
+ blocks:
161
+ - id: input_lowdefy_mixed_editable
162
+ type: AgGridLowdefyInput
163
+ properties:
164
+ height: 300
165
+ columnDefs:
166
+ - field: id
167
+ headerName: ID
168
+ width: 80
169
+ editable: false
170
+ pinned: left
171
+ - field: product
172
+ headerName: Product Name
173
+ flex: 2
174
+ editable: true
175
+ - field: category
176
+ headerName: Category
177
+ flex: 1
178
+ editable: true
179
+ - field: price
180
+ headerName: Price ($)
181
+ width: 120
182
+ editable: true
183
+ - field: stock
184
+ headerName: Stock
185
+ width: 100
186
+ editable: true
187
+ - field: rating
188
+ headerName: Rating
189
+ width: 100
190
+ editable: false
191
+ events:
192
+ onMount:
193
+ - id: seed_mixed_editable
194
+ type: SetState
195
+ params:
196
+ input_lowdefy_mixed_editable:
197
+ - id: 1
198
+ product: Wireless Keyboard
199
+ category: Electronics
200
+ price: 49.99
201
+ stock: 230
202
+ rating: 4.5
203
+ - id: 2
204
+ product: Standing Desk
205
+ category: Furniture
206
+ price: 399.00
207
+ stock: 45
208
+ rating: 4.8
209
+ - id: 3
210
+ product: USB-C Hub
211
+ category: Electronics
212
+ price: 29.99
213
+ stock: 520
214
+ rating: 4.2
215
+ - id: 4
216
+ product: Ergonomic Chair
217
+ category: Furniture
218
+ price: 289.00
219
+ stock: 78
220
+ rating: 4.6
221
+ - id: 5
222
+ product: Webcam HD
223
+ category: Electronics
224
+ price: 79.99
225
+ stock: 310
226
+ rating: 4.0
227
+
228
+ - title: Lowdefy Input - Default Column Definitions
229
+ fullWidth: true
230
+ blocks:
231
+ - id: input_lowdefy_default_col_def
232
+ type: AgGridLowdefyInput
233
+ properties:
234
+ height: 300
235
+ defaultColDef:
236
+ sortable: true
237
+ filter: true
238
+ resizable: true
239
+ editable: true
240
+ flex: 1
241
+ columnDefs:
242
+ - field: employee
243
+ headerName: Employee
244
+ - field: department
245
+ headerName: Department
246
+ - field: title
247
+ headerName: Job Title
248
+ - field: location
249
+ headerName: Office
250
+ - field: startDate
251
+ headerName: Start Date
252
+ events:
253
+ onMount:
254
+ - id: seed_default_col_def
255
+ type: SetState
256
+ params:
257
+ input_lowdefy_default_col_def:
258
+ - employee: Sarah Chen
259
+ department: Engineering
260
+ title: Senior Developer
261
+ location: San Francisco
262
+ startDate: '2019-03-15'
263
+ - employee: James Wilson
264
+ department: Marketing
265
+ title: Campaign Manager
266
+ location: New York
267
+ startDate: '2020-07-01'
268
+ - employee: Maria Garcia
269
+ department: Engineering
270
+ title: Tech Lead
271
+ location: Austin
272
+ startDate: '2018-11-20'
273
+ - employee: David Kim
274
+ department: Sales
275
+ title: Account Executive
276
+ location: Chicago
277
+ startDate: '2021-01-10'
278
+ - employee: Emily Brown
279
+ department: Design
280
+ title: UX Designer
281
+ location: San Francisco
282
+ startDate: '2020-09-05'
283
+
284
+ - title: Lowdefy Input - Row Selection
285
+ fullWidth: true
286
+ blocks:
287
+ - id: input_lowdefy_row_selection
288
+ type: AgGridLowdefyInput
289
+ properties:
290
+ height: 300
291
+ rowSelection:
292
+ mode: multiRow
293
+ checkboxes: false
294
+ headerCheckbox: false
295
+ enableClickSelection: true
296
+ defaultColDef:
297
+ sortable: true
298
+ editable: true
299
+ flex: 1
300
+ columnDefs:
301
+ - field: task
302
+ headerName: Task
303
+ flex: 2
304
+ - field: assignee
305
+ headerName: Assignee
306
+ - field: priority
307
+ headerName: Priority
308
+ width: 120
309
+ - field: status
310
+ headerName: Status
311
+ width: 120
312
+ events:
313
+ onMount:
314
+ - id: seed_row_selection
315
+ type: SetState
316
+ params:
317
+ input_lowdefy_row_selection:
318
+ - task: Design login page
319
+ assignee: Alice
320
+ priority: High
321
+ status: Done
322
+ - task: Implement API endpoints
323
+ assignee: Bob
324
+ priority: High
325
+ status: In Progress
326
+ - task: Write unit tests
327
+ assignee: Charlie
328
+ priority: Medium
329
+ status: To Do
330
+ - task: Update documentation
331
+ assignee: Diana
332
+ priority: Low
333
+ status: To Do
334
+ - task: Code review PR #42
335
+ assignee: Erik
336
+ priority: Medium
337
+ status: In Progress
338
+
339
+ - title: Lowdefy Input - Pagination
340
+ fullWidth: true
341
+ blocks:
342
+ - id: input_lowdefy_pagination
343
+ type: AgGridLowdefyInput
344
+ properties:
345
+ height: 350
346
+ pagination: true
347
+ paginationPageSize: 5
348
+ defaultColDef:
349
+ sortable: true
350
+ filter: true
351
+ editable: true
352
+ flex: 1
353
+ columnDefs:
354
+ - field: orderId
355
+ headerName: Order ID
356
+ editable: false
357
+ width: 120
358
+ - field: customer
359
+ headerName: Customer
360
+ - field: product
361
+ headerName: Product
362
+ - field: quantity
363
+ headerName: Qty
364
+ width: 80
365
+ - field: total
366
+ headerName: Total ($)
367
+ width: 110
368
+ - field: status
369
+ headerName: Status
370
+ width: 120
371
+ events:
372
+ onMount:
373
+ - id: seed_pagination
374
+ type: SetState
375
+ params:
376
+ input_lowdefy_pagination:
377
+ - orderId: ORD-701
378
+ customer: Acme Corp
379
+ product: Widget Pro
380
+ quantity: 50
381
+ total: 2499.50
382
+ status: Shipped
383
+ - orderId: ORD-702
384
+ customer: Globex Inc
385
+ product: Gadget X
386
+ quantity: 25
387
+ total: 1249.75
388
+ status: Processing
389
+ - orderId: ORD-703
390
+ customer: Initech
391
+ product: Widget Pro
392
+ quantity: 100
393
+ total: 4999.00
394
+ status: Delivered
395
+ - orderId: ORD-704
396
+ customer: Umbrella Ltd
397
+ product: Connector A
398
+ quantity: 200
399
+ total: 1998.00
400
+ status: Shipped
401
+ - orderId: ORD-705
402
+ customer: Stark Ind
403
+ product: Gadget X
404
+ quantity: 10
405
+ total: 499.90
406
+ status: Processing
407
+ - orderId: ORD-706
408
+ customer: Wayne Ent
409
+ product: Widget Pro
410
+ quantity: 75
411
+ total: 3749.25
412
+ status: Delivered
413
+ - orderId: ORD-707
414
+ customer: Oscorp
415
+ product: Connector A
416
+ quantity: 150
417
+ total: 1498.50
418
+ status: Shipped
419
+ - orderId: ORD-708
420
+ customer: LexCorp
421
+ product: Gadget X
422
+ quantity: 30
423
+ total: 1499.70
424
+ status: Processing
425
+
426
+ - title: Lowdefy Input - Column Styling
427
+ fullWidth: true
428
+ blocks:
429
+ - id: input_lowdefy_styled_columns
430
+ type: AgGridLowdefyInput
431
+ properties:
432
+ height: 300
433
+ defaultColDef:
434
+ sortable: true
435
+ editable: true
436
+ flex: 1
437
+ columnDefs:
438
+ - field: metric
439
+ headerName: Metric
440
+ flex: 2
441
+ editable: false
442
+ cellStyle:
443
+ fontWeight: bold
444
+ - field: q1
445
+ headerName: Q1
446
+ cellStyle:
447
+ backgroundColor: '#e6f7ff'
448
+ textAlign: right
449
+ - field: q2
450
+ headerName: Q2
451
+ cellStyle:
452
+ backgroundColor: '#f6ffed'
453
+ textAlign: right
454
+ - field: q3
455
+ headerName: Q3
456
+ cellStyle:
457
+ backgroundColor: '#fff7e6'
458
+ textAlign: right
459
+ - field: q4
460
+ headerName: Q4
461
+ cellStyle:
462
+ backgroundColor: '#fff1f0'
463
+ textAlign: right
464
+ events:
465
+ onMount:
466
+ - id: seed_styled_columns
467
+ type: SetState
468
+ params:
469
+ input_lowdefy_styled_columns:
470
+ - metric: Revenue ($K)
471
+ q1: 1250
472
+ q2: 1380
473
+ q3: 1520
474
+ q4: 1690
475
+ - metric: New Customers
476
+ q1: 145
477
+ q2: 162
478
+ q3: 178
479
+ q4: 201
480
+ - metric: Churn Rate (%)
481
+ q1: 3.2
482
+ q2: 2.8
483
+ q3: 2.5
484
+ q4: 2.1
485
+ - metric: NPS Score
486
+ q1: 42
487
+ q2: 45
488
+ q3: 48
489
+ q4: 52