@design.estate/dees-catalog 3.63.0 → 3.65.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@design.estate/dees-catalog",
3
- "version": "3.63.0",
3
+ "version": "3.65.0",
4
4
  "private": false,
5
5
  "description": "A comprehensive library that provides dynamic web components for building sophisticated and modern web applications using JavaScript and TypeScript.",
6
6
  "main": "dist_ts_web/index.js",
@@ -3,6 +3,6 @@
3
3
  */
4
4
  export const commitinfo = {
5
5
  name: '@design.estate/dees-catalog',
6
- version: '3.63.0',
6
+ version: '3.65.0',
7
7
  description: 'A comprehensive library that provides dynamic web components for building sophisticated and modern web applications using JavaScript and TypeScript.'
8
8
  }
@@ -55,36 +55,66 @@ export const demoFunc = () => html`
55
55
  <div class="demo-container">
56
56
  <div class="demo-section">
57
57
  <h2 class="demo-title">Basic Table with Actions</h2>
58
- <p class="demo-description">A standard table with row actions, editable fields, and context menu support. Double-click on descriptions to edit. Grid lines are enabled by default.</p>
58
+ <p class="demo-description">A standard table with row actions, editable cells, and context menu support. Double-click any cell to edit. Tab moves to the next editable cell, Enter to the row below, Esc cancels.</p>
59
59
  <dees-table
60
60
  heading1="Current Account Statement"
61
61
  heading2="Bunq - Payment Account 2 - April 2021"
62
- .editableFields="${['description']}"
62
+ .columns=${[
63
+ { key: 'date', header: 'Date', sortable: true, editable: true, editor: 'date' },
64
+ { key: 'amount', header: 'Amount', editable: true, editor: 'text' },
65
+ {
66
+ key: 'category',
67
+ header: 'Category',
68
+ editable: true,
69
+ editor: 'dropdown',
70
+ editorOptions: {
71
+ options: [
72
+ { option: 'Office Supplies', key: 'office' },
73
+ { option: 'Hardware', key: 'hardware' },
74
+ { option: 'Software', key: 'software' },
75
+ { option: 'Travel', key: 'travel' },
76
+ ],
77
+ },
78
+ },
79
+ { key: 'description', header: 'Description', editable: true },
80
+ { key: 'reconciled', header: 'OK', editable: true, editor: 'checkbox' },
81
+ ]}
82
+ @cellEdit=${(e: CustomEvent) => console.log('cellEdit', e.detail)}
63
83
  .data=${[
64
84
  {
65
85
  date: '2021-04-01',
66
86
  amount: '2464.65 €',
67
- description: 'Printing Paper (Office Supplies) - STAPLES BREMEN',
87
+ category: 'office',
88
+ description: 'Printing Paper - STAPLES BREMEN',
89
+ reconciled: true,
68
90
  },
69
91
  {
70
92
  date: '2021-04-02',
71
93
  amount: '165.65 €',
72
- description: 'Logitech Mouse (Hardware) - logi.com OnlineShop',
94
+ category: 'hardware',
95
+ description: 'Logitech Mouse - logi.com OnlineShop',
96
+ reconciled: false,
73
97
  },
74
98
  {
75
99
  date: '2021-04-03',
76
100
  amount: '2999,00 €',
77
- description: 'Macbook Pro 16inch (Hardware) - Apple.de OnlineShop',
101
+ category: 'hardware',
102
+ description: 'Macbook Pro 16inch - Apple.de OnlineShop',
103
+ reconciled: false,
78
104
  },
79
105
  {
80
106
  date: '2021-04-01',
81
107
  amount: '2464.65 €',
108
+ category: 'office',
82
109
  description: 'Office-Supplies - STAPLES BREMEN',
110
+ reconciled: true,
83
111
  },
84
112
  {
85
113
  date: '2021-04-01',
86
114
  amount: '2464.65 €',
115
+ category: 'office',
87
116
  description: 'Office-Supplies - STAPLES BREMEN',
117
+ reconciled: true,
88
118
  },
89
119
  ]}
90
120
  dataName="transactions"
@@ -510,13 +540,13 @@ export const demoFunc = () => html`
510
540
  <h2 class="demo-title">Column Filters + Sticky Header (New)</h2>
511
541
  <p class="demo-description">Per-column quick filters and sticky header with internal scroll. Try filtering the Name column. Uses --table-max-height var.</p>
512
542
  <style>
513
- dees-table[sticky-header] { --table-max-height: 220px; }
543
+ dees-table[fixed-height] { --table-max-height: 220px; }
514
544
  </style>
515
545
  <dees-table
516
546
  heading1="Employees"
517
547
  heading2="Quick filter per column + sticky header"
518
548
  .showColumnFilters=${true}
519
- .stickyHeader=${true}
549
+ .fixedHeight=${true}
520
550
  .columns=${[
521
551
  { key: 'name', header: 'Name', sortable: true },
522
552
  { key: 'email', header: 'Email', sortable: true },
@@ -669,7 +699,7 @@ export const demoFunc = () => html`
669
699
  </style>
670
700
  <dees-table
671
701
  id="scrollSmallHeight"
672
- .stickyHeader=${true}
702
+ .fixedHeight=${true}
673
703
  heading1="People Directory (Scrollable)"
674
704
  heading2="Forced scrolling with many items"
675
705
  .columns=${[