@diezproyectos/diez-table 0.0.0-stage → 1.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.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 diez-table contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,252 @@
1
- # Temporary Holding Version
1
+ # diez-table
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ A small, responsive table for Angular. On a large screen it is a real table; on a small screen every row becomes a card where each value shows its own label. You write the markup once.
4
+
5
+ It is built from six tiny standalone components (`dz-table`, `dz-table-header`, `dz-table-head`, `dz-table-body`, `dz-table-row`, `dz-table-cell`), has no dependencies and no JavaScript layout logic: the switch between table and cards is pure CSS.
6
+
7
+ ## Installation
8
+
9
+ ```bash
10
+ npm install @diezproyectos/diez-table
11
+ ```
12
+
13
+ Requires Angular 22 (any 22.x version): `@angular/core` and `@angular/common` `^22.0.0`.
14
+
15
+ ## Quick start
16
+
17
+ Import the components in any standalone component with `DZ_TABLE_IMPORTS` and write the table in its template.
18
+
19
+ ```ts
20
+ import { Component, signal } from '@angular/core';
21
+ import { DZ_TABLE_IMPORTS } from '@diezproyectos/diez-table';
22
+
23
+ @Component({
24
+ selector: 'app-people',
25
+ imports: [DZ_TABLE_IMPORTS],
26
+ templateUrl: './people.html',
27
+ })
28
+ export class People {
29
+ protected readonly people = signal([
30
+ { id: 1, name: 'Ana Gil', role: 'Designer', score: 91 },
31
+ { id: 2, name: 'Luis Pérez', role: 'Developer', score: 78 },
32
+ ]);
33
+ }
34
+ ```
35
+
36
+ ```html
37
+ <dz-table>
38
+ <dz-table-header>
39
+ <dz-table-head width="30%">Name</dz-table-head>
40
+ <dz-table-head>Role</dz-table-head>
41
+ <dz-table-head align="flex-end">Score</dz-table-head>
42
+ </dz-table-header>
43
+
44
+ <dz-table-body>
45
+ @for (p of people(); track p.id) {
46
+ <dz-table-row>
47
+ <dz-table-cell label="Name" width="30%">{{ p.name }}</dz-table-cell>
48
+ <dz-table-cell label="Role">{{ p.role }}</dz-table-cell>
49
+ <dz-table-cell label="Score" align="flex-end">{{ p.score }}</dz-table-cell>
50
+ </dz-table-row>
51
+ }
52
+ </dz-table-body>
53
+ </dz-table>
54
+ ```
55
+
56
+ You can also import only the components you use (`TableComponent`, `TableHeaderComponent`, `TableHeadComponent`, `TableBodyComponent`, `TableRowComponent`, `TableCellComponent`).
57
+
58
+ ## How it behaves
59
+
60
+ | | Large screen (≥ 64em) | Small screen |
61
+ | --- | --- | --- |
62
+ | `dz-table-header` | Shown as the table header | Hidden |
63
+ | `dz-table-row` | A table row | A card |
64
+ | `dz-table-cell` | A table cell | A line: `label` + value |
65
+
66
+ The `label` of each cell is what a small screen shows in place of the hidden header, so **always set it**.
67
+
68
+ ## Components and inputs
69
+
70
+ | Component | Purpose | Inputs |
71
+ | --- | --- | --- |
72
+ | `dz-table` | The table container | none |
73
+ | `dz-table-header` | Groups the column titles | none |
74
+ | `dz-table-head` | One column title | `width`, `align` |
75
+ | `dz-table-body` | Groups the rows | none |
76
+ | `dz-table-row` | One row | none |
77
+ | `dz-table-cell` | One value | `width`, `align`, `padding`, `label`, `column`, `maxWidthDesktop` |
78
+
79
+ | Input | Default | Meaning |
80
+ | --- | --- | --- |
81
+ | `width` | `auto` | Column width on large screens (`30%`, `12em`...). Set it on the head and on the cells of the same column. |
82
+ | `align` | `flex-start` | Horizontal alignment of the column on large screens: `flex-start`, `center` or `flex-end`. |
83
+ | `padding` | theme value | Replaces the cell padding on large screens (`0.5em 1em`). |
84
+ | `label` | empty | Text shown before the value on small screens. |
85
+ | `column` | `false` | On small screens, puts the label above the value instead of beside it. |
86
+ | `maxWidthDesktop` | `none` | Maximum width of the cell on large screens. |
87
+
88
+ ## Customizing the style
89
+
90
+ All the visual settings are CSS custom properties, so you never need `::ng-deep`. Set them where you want the change to apply: globally on `:root`, on a class, or on a single table.
91
+
92
+ | Variable | Default | What it changes |
93
+ | --- | --- | --- |
94
+ | `--dz-table-border-color` | `#e0e0e0` | Lines between rows |
95
+ | `--dz-table-head-color` | `inherit` | Text colour of the column titles |
96
+ | `--dz-table-head-font-weight` | `bold` | Weight of the column titles |
97
+ | `--dz-table-cell-padding` | `0.5em 1em` | Padding of every cell |
98
+ | `--dz-table-cell-gap` | `1em` | Space between label and value (small screens) |
99
+ | `--dz-table-label-color` | `inherit` | Colour of the labels (small screens) |
100
+ | `--dz-table-label-font-size` | `0.9em` | Size of the labels (small screens) |
101
+ | `--dz-table-label-width` | `0` | Minimum label width; set it (e.g. `6em`) to line the values up (small screens) |
102
+ | `--dz-table-row-gap` | `1em` | Space between cards (small screens) |
103
+
104
+ ### Change it for the whole app
105
+
106
+ ```css
107
+ /* styles.css */
108
+ :root {
109
+ --dz-table-border-color: #cfd8dc;
110
+ --dz-table-head-font-weight: 600;
111
+ }
112
+ ```
113
+
114
+ ### Change it for one table
115
+
116
+ ```html
117
+ <dz-table class="dark"> ... </dz-table>
118
+ ```
119
+
120
+ ```css
121
+ .dark {
122
+ --dz-table-border-color: #444;
123
+ --dz-table-label-color: #9aa;
124
+ --dz-table-head-color: #ff9f43;
125
+ --dz-table-cell-padding: 0.75em 1.25em;
126
+ --dz-table-row-gap: 0.5em;
127
+ background: #1e1e24;
128
+ color: #eee;
129
+ border-radius: 8px;
130
+ }
131
+ ```
132
+
133
+ ### Style rows and cells with plain CSS
134
+
135
+ The components are ordinary elements in *your* template, so your component's CSS can style them directly.
136
+
137
+ ```css
138
+ dz-table-row { cursor: pointer; }
139
+ dz-table-row:hover { background: #f5f5f5; }
140
+ dz-table-row.selected { background: #fff3e0; }
141
+ ```
142
+
143
+ ## Customizing the behaviour
144
+
145
+ The table only lays data out; sorting, selection or filtering are plain Angular code in your component, and the table follows your data.
146
+
147
+ ### Columns driven by data
148
+
149
+ ```ts
150
+ protected readonly columns = [
151
+ { key: 'name', title: 'Name', width: '30%' },
152
+ { key: 'role', title: 'Role', width: '20%' },
153
+ { key: 'email', title: 'Email', width: '' },
154
+ ] as const;
155
+ ```
156
+
157
+ ```html
158
+ <dz-table>
159
+ <dz-table-header>
160
+ @for (c of columns; track c.key) {
161
+ <dz-table-head [width]="c.width || 'auto'">{{ c.title }}</dz-table-head>
162
+ }
163
+ </dz-table-header>
164
+ <dz-table-body>
165
+ @for (p of people(); track p.id) {
166
+ <dz-table-row>
167
+ @for (c of columns; track c.key) {
168
+ <dz-table-cell [label]="c.title" [width]="c.width || 'auto'">{{ p[c.key] }}</dz-table-cell>
169
+ }
170
+ </dz-table-row>
171
+ }
172
+ </dz-table-body>
173
+ </dz-table>
174
+ ```
175
+
176
+ ### Sorting
177
+
178
+ Put any content in a `dz-table-head`, such as a button, and sort the data with a `computed`.
179
+
180
+ ```ts
181
+ protected readonly descending = signal(true);
182
+ protected readonly sorted = computed(() =>
183
+ [...this.people()].sort((a, b) => (this.descending() ? b.score - a.score : a.score - b.score)),
184
+ );
185
+ protected toggleSort() { this.descending.update((v) => !v); }
186
+ ```
187
+
188
+ ```html
189
+ <dz-table-head align="flex-end">
190
+ <button type="button" (click)="toggleSort()">Score {{ descending() ? '↓' : '↑' }}</button>
191
+ </dz-table-head>
192
+ ...
193
+ @for (p of sorted(); track p.id) { ... }
194
+ ```
195
+
196
+ ### Clickable rows
197
+
198
+ Rows are regular elements, so you can bind events and classes on them.
199
+
200
+ ```html
201
+ <dz-table-row (click)="selected.set(p)" [class.selected]="selected()?.id === p.id">
202
+ ...
203
+ </dz-table-row>
204
+ ```
205
+
206
+ ### Custom cell content
207
+
208
+ A cell projects whatever you write inside it: badges, buttons, links, icons or other components.
209
+
210
+ ```html
211
+ <dz-table-cell label="Score" align="flex-end">
212
+ <span class="badge">{{ p.score }}</span>
213
+ </dz-table-cell>
214
+ ```
215
+
216
+ ### Empty state
217
+
218
+ `@empty` works inside the body, because rows are just an `@for`.
219
+
220
+ ```html
221
+ <dz-table-body>
222
+ @for (p of people(); track p.id) {
223
+ <dz-table-row> ... </dz-table-row>
224
+ } @empty {
225
+ <p>No people yet.</p>
226
+ }
227
+ </dz-table-body>
228
+ ```
229
+
230
+ ### Layout of each cell
231
+
232
+ ```html
233
+ <!-- long text: limit the width on large screens -->
234
+ <dz-table-cell label="Name" maxWidthDesktop="14em">...</dz-table-cell>
235
+
236
+ <!-- label above the value on small screens -->
237
+ <dz-table-cell label="Email" [column]="true">...</dz-table-cell>
238
+
239
+ <!-- custom padding on large screens -->
240
+ <dz-table-cell label="Notes" padding="1em 2em">...</dz-table-cell>
241
+ ```
242
+
243
+ ## Good to know
244
+
245
+ - **The breakpoint is fixed at 64em.** CSS cannot read variables inside media queries, so it cannot be a custom property.
246
+ - **`width`, `align`, `padding` and `maxWidthDesktop` only apply on large screens**, where cells are real table cells. On small screens each row is a card.
247
+ - **Not a native `<table>`.** The components are custom elements styled to look like a table, so they do not carry table semantics for assistive technologies. For data where that matters, consider a native `<table>`.
248
+ - No built-in sorting, pagination, selection or virtual scrolling: compose them as shown above.
249
+
250
+ ## License
251
+
252
+ MIT
@@ -0,0 +1,391 @@
1
+ import * as i0 from "@angular/core";
2
+ import { ChangeDetectionStrategy, Component, computed, input } from "@angular/core";
3
+ var TableComponent = class TableComponent {
4
+ static ɵfac = i0.ɵɵngDeclareFactory({
5
+ minVersion: "12.0.0",
6
+ version: "22.3.0",
7
+ ngImport: i0,
8
+ type: TableComponent,
9
+ deps: [],
10
+ target: i0.ɵɵFactoryTarget.Component
11
+ });
12
+ static ɵcmp = i0.ɵɵngDeclareComponent({
13
+ minVersion: "14.0.0",
14
+ version: "22.3.0",
15
+ type: TableComponent,
16
+ isStandalone: true,
17
+ selector: "dz-table",
18
+ ngImport: i0,
19
+ template: "<ng-content></ng-content>\n",
20
+ styles: [":host{display:table;width:100%}\n"],
21
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
22
+ });
23
+ };
24
+ i0.ɵɵngDeclareClassMetadata({
25
+ minVersion: "12.0.0",
26
+ version: "22.3.0",
27
+ ngImport: i0,
28
+ type: TableComponent,
29
+ decorators: [{
30
+ type: Component,
31
+ args: [{
32
+ selector: "dz-table",
33
+ imports: [],
34
+ changeDetection: ChangeDetectionStrategy.OnPush,
35
+ template: "<ng-content></ng-content>\n",
36
+ styles: [":host{display:table;width:100%}\n"]
37
+ }]
38
+ }]
39
+ });
40
+ var TableHeaderComponent = class TableHeaderComponent {
41
+ static ɵfac = i0.ɵɵngDeclareFactory({
42
+ minVersion: "12.0.0",
43
+ version: "22.3.0",
44
+ ngImport: i0,
45
+ type: TableHeaderComponent,
46
+ deps: [],
47
+ target: i0.ɵɵFactoryTarget.Component
48
+ });
49
+ static ɵcmp = i0.ɵɵngDeclareComponent({
50
+ minVersion: "14.0.0",
51
+ version: "22.3.0",
52
+ type: TableHeaderComponent,
53
+ isStandalone: true,
54
+ selector: "dz-table-header",
55
+ ngImport: i0,
56
+ template: "<div class=\"table-header\">\n <ng-content></ng-content>\n</div>\n",
57
+ styles: [":host{display:none}@media screen and (min-width:64em){:host{display:contents}.table-header{display:table-header-group}}\n"],
58
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
59
+ });
60
+ };
61
+ i0.ɵɵngDeclareClassMetadata({
62
+ minVersion: "12.0.0",
63
+ version: "22.3.0",
64
+ ngImport: i0,
65
+ type: TableHeaderComponent,
66
+ decorators: [{
67
+ type: Component,
68
+ args: [{
69
+ selector: "dz-table-header",
70
+ imports: [],
71
+ changeDetection: ChangeDetectionStrategy.OnPush,
72
+ template: "<div class=\"table-header\">\n <ng-content></ng-content>\n</div>\n",
73
+ styles: [":host{display:none}@media screen and (min-width:64em){:host{display:contents}.table-header{display:table-header-group}}\n"]
74
+ }]
75
+ }]
76
+ });
77
+ var TableCellComponent = class TableCellComponent {
78
+ width = input("auto", ...ngDevMode ? [{ debugName: "width" }] : /* istanbul ignore next */ []);
79
+ align = input("flex-start", ...ngDevMode ? [{ debugName: "align" }] : /* istanbul ignore next */ []);
80
+ padding = input("", ...ngDevMode ? [{ debugName: "padding" }] : /* istanbul ignore next */ []);
81
+ label = input("", ...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
82
+ column = input(false, ...ngDevMode ? [{ debugName: "column" }] : /* istanbul ignore next */ []);
83
+ maxWidthDesktop = input("none", ...ngDevMode ? [{ debugName: "maxWidthDesktop" }] : /* istanbul ignore next */ []);
84
+ textAlign = computed(() => {
85
+ switch (this.align()) {
86
+ case "center": return "center";
87
+ case "flex-end": return "end";
88
+ default: return "start";
89
+ }
90
+ }, ...ngDevMode ? [{ debugName: "textAlign" }] : /* istanbul ignore next */ []);
91
+ static ɵfac = i0.ɵɵngDeclareFactory({
92
+ minVersion: "12.0.0",
93
+ version: "22.3.0",
94
+ ngImport: i0,
95
+ type: TableCellComponent,
96
+ deps: [],
97
+ target: i0.ɵɵFactoryTarget.Component
98
+ });
99
+ static ɵcmp = i0.ɵɵngDeclareComponent({
100
+ minVersion: "17.1.0",
101
+ version: "22.3.0",
102
+ type: TableCellComponent,
103
+ isStandalone: true,
104
+ selector: "dz-table-cell",
105
+ inputs: {
106
+ width: {
107
+ classPropertyName: "width",
108
+ publicName: "width",
109
+ isSignal: true,
110
+ isRequired: false,
111
+ transformFunction: null
112
+ },
113
+ align: {
114
+ classPropertyName: "align",
115
+ publicName: "align",
116
+ isSignal: true,
117
+ isRequired: false,
118
+ transformFunction: null
119
+ },
120
+ padding: {
121
+ classPropertyName: "padding",
122
+ publicName: "padding",
123
+ isSignal: true,
124
+ isRequired: false,
125
+ transformFunction: null
126
+ },
127
+ label: {
128
+ classPropertyName: "label",
129
+ publicName: "label",
130
+ isSignal: true,
131
+ isRequired: false,
132
+ transformFunction: null
133
+ },
134
+ column: {
135
+ classPropertyName: "column",
136
+ publicName: "column",
137
+ isSignal: true,
138
+ isRequired: false,
139
+ transformFunction: null
140
+ },
141
+ maxWidthDesktop: {
142
+ classPropertyName: "maxWidthDesktop",
143
+ publicName: "maxWidthDesktop",
144
+ isSignal: true,
145
+ isRequired: false,
146
+ transformFunction: null
147
+ }
148
+ },
149
+ ngImport: i0,
150
+ template: "<div\n class=\"table-cell\"\n [style.--width]=\"width()\"\n [style.--text-align]=\"textAlign()\"\n [style.--padding]=\"padding() || null\"\n [style.--max-width-desktop]=\"maxWidthDesktop()\"\n [attr.data-label]=\"label() || null\"\n [class.column]=\"column()\">\n <ng-content></ng-content>\n</div>\n",
151
+ styles: [".table-cell{display:flex;flex-direction:row;gap:var(--dz-table-cell-gap, 1em);padding:var(--dz-table-cell-padding, .5em 1em);text-wrap:balance;word-break:break-word}.table-cell.column{flex-direction:column;gap:.25em}.table-cell:before{content:attr(data-label);font-size:var(--dz-table-label-font-size, .9em);color:var(--dz-table-label-color, inherit);min-width:var(--dz-table-label-width, 0);padding-top:.125em;word-break:normal}@media screen and (min-width:64em){:host{display:contents}.table-cell{display:table-cell;width:var(--width);max-width:var(--max-width-desktop);text-align:var(--text-align, start);border-bottom:1px solid var(--dz-table-border-color, #e0e0e0);padding:var(--padding, var(--dz-table-cell-padding, .5em 1em))}.table-cell:before{display:none}}\n"],
152
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
153
+ });
154
+ };
155
+ i0.ɵɵngDeclareClassMetadata({
156
+ minVersion: "12.0.0",
157
+ version: "22.3.0",
158
+ ngImport: i0,
159
+ type: TableCellComponent,
160
+ decorators: [{
161
+ type: Component,
162
+ args: [{
163
+ selector: "dz-table-cell",
164
+ imports: [],
165
+ changeDetection: ChangeDetectionStrategy.OnPush,
166
+ template: "<div\n class=\"table-cell\"\n [style.--width]=\"width()\"\n [style.--text-align]=\"textAlign()\"\n [style.--padding]=\"padding() || null\"\n [style.--max-width-desktop]=\"maxWidthDesktop()\"\n [attr.data-label]=\"label() || null\"\n [class.column]=\"column()\">\n <ng-content></ng-content>\n</div>\n",
167
+ styles: [".table-cell{display:flex;flex-direction:row;gap:var(--dz-table-cell-gap, 1em);padding:var(--dz-table-cell-padding, .5em 1em);text-wrap:balance;word-break:break-word}.table-cell.column{flex-direction:column;gap:.25em}.table-cell:before{content:attr(data-label);font-size:var(--dz-table-label-font-size, .9em);color:var(--dz-table-label-color, inherit);min-width:var(--dz-table-label-width, 0);padding-top:.125em;word-break:normal}@media screen and (min-width:64em){:host{display:contents}.table-cell{display:table-cell;width:var(--width);max-width:var(--max-width-desktop);text-align:var(--text-align, start);border-bottom:1px solid var(--dz-table-border-color, #e0e0e0);padding:var(--padding, var(--dz-table-cell-padding, .5em 1em))}.table-cell:before{display:none}}\n"]
168
+ }]
169
+ }],
170
+ propDecorators: {
171
+ width: [{
172
+ type: i0.Input,
173
+ args: [{
174
+ isSignal: true,
175
+ alias: "width",
176
+ required: false
177
+ }]
178
+ }],
179
+ align: [{
180
+ type: i0.Input,
181
+ args: [{
182
+ isSignal: true,
183
+ alias: "align",
184
+ required: false
185
+ }]
186
+ }],
187
+ padding: [{
188
+ type: i0.Input,
189
+ args: [{
190
+ isSignal: true,
191
+ alias: "padding",
192
+ required: false
193
+ }]
194
+ }],
195
+ label: [{
196
+ type: i0.Input,
197
+ args: [{
198
+ isSignal: true,
199
+ alias: "label",
200
+ required: false
201
+ }]
202
+ }],
203
+ column: [{
204
+ type: i0.Input,
205
+ args: [{
206
+ isSignal: true,
207
+ alias: "column",
208
+ required: false
209
+ }]
210
+ }],
211
+ maxWidthDesktop: [{
212
+ type: i0.Input,
213
+ args: [{
214
+ isSignal: true,
215
+ alias: "maxWidthDesktop",
216
+ required: false
217
+ }]
218
+ }]
219
+ }
220
+ });
221
+ var TableHeadComponent = class TableHeadComponent {
222
+ width = input("auto", ...ngDevMode ? [{ debugName: "width" }] : /* istanbul ignore next */ []);
223
+ align = input("flex-start", ...ngDevMode ? [{ debugName: "align" }] : /* istanbul ignore next */ []);
224
+ static ɵfac = i0.ɵɵngDeclareFactory({
225
+ minVersion: "12.0.0",
226
+ version: "22.3.0",
227
+ ngImport: i0,
228
+ type: TableHeadComponent,
229
+ deps: [],
230
+ target: i0.ɵɵFactoryTarget.Component
231
+ });
232
+ static ɵcmp = i0.ɵɵngDeclareComponent({
233
+ minVersion: "17.1.0",
234
+ version: "22.3.0",
235
+ type: TableHeadComponent,
236
+ isStandalone: true,
237
+ selector: "dz-table-head",
238
+ inputs: {
239
+ width: {
240
+ classPropertyName: "width",
241
+ publicName: "width",
242
+ isSignal: true,
243
+ isRequired: false,
244
+ transformFunction: null
245
+ },
246
+ align: {
247
+ classPropertyName: "align",
248
+ publicName: "align",
249
+ isSignal: true,
250
+ isRequired: false,
251
+ transformFunction: null
252
+ }
253
+ },
254
+ ngImport: i0,
255
+ template: "<dz-table-cell [width]=\"width()\" [align]=\"align()\" padding=\"0.5em 1em 1em 1em\">\n <ng-content></ng-content>\n</dz-table-cell>\n",
256
+ styles: [":host{display:contents;font-weight:var(--dz-table-head-font-weight, bold);color:var(--dz-table-head-color, inherit)}\n"],
257
+ dependencies: [{
258
+ kind: "component",
259
+ type: TableCellComponent,
260
+ selector: "dz-table-cell",
261
+ inputs: [
262
+ "width",
263
+ "align",
264
+ "padding",
265
+ "label",
266
+ "column",
267
+ "maxWidthDesktop"
268
+ ]
269
+ }],
270
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
271
+ });
272
+ };
273
+ i0.ɵɵngDeclareClassMetadata({
274
+ minVersion: "12.0.0",
275
+ version: "22.3.0",
276
+ ngImport: i0,
277
+ type: TableHeadComponent,
278
+ decorators: [{
279
+ type: Component,
280
+ args: [{
281
+ selector: "dz-table-head",
282
+ imports: [TableCellComponent],
283
+ changeDetection: ChangeDetectionStrategy.OnPush,
284
+ template: "<dz-table-cell [width]=\"width()\" [align]=\"align()\" padding=\"0.5em 1em 1em 1em\">\n <ng-content></ng-content>\n</dz-table-cell>\n",
285
+ styles: [":host{display:contents;font-weight:var(--dz-table-head-font-weight, bold);color:var(--dz-table-head-color, inherit)}\n"]
286
+ }]
287
+ }],
288
+ propDecorators: {
289
+ width: [{
290
+ type: i0.Input,
291
+ args: [{
292
+ isSignal: true,
293
+ alias: "width",
294
+ required: false
295
+ }]
296
+ }],
297
+ align: [{
298
+ type: i0.Input,
299
+ args: [{
300
+ isSignal: true,
301
+ alias: "align",
302
+ required: false
303
+ }]
304
+ }]
305
+ }
306
+ });
307
+ var TableBodyComponent = class TableBodyComponent {
308
+ static ɵfac = i0.ɵɵngDeclareFactory({
309
+ minVersion: "12.0.0",
310
+ version: "22.3.0",
311
+ ngImport: i0,
312
+ type: TableBodyComponent,
313
+ deps: [],
314
+ target: i0.ɵɵFactoryTarget.Component
315
+ });
316
+ static ɵcmp = i0.ɵɵngDeclareComponent({
317
+ minVersion: "14.0.0",
318
+ version: "22.3.0",
319
+ type: TableBodyComponent,
320
+ isStandalone: true,
321
+ selector: "dz-table-body",
322
+ ngImport: i0,
323
+ template: "<ng-content></ng-content>\n",
324
+ styles: [":host{display:flex;flex-direction:column;gap:var(--dz-table-row-gap, 1em)}@media screen and (min-width:64em){:host{display:table-row-group}}\n"],
325
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
326
+ });
327
+ };
328
+ i0.ɵɵngDeclareClassMetadata({
329
+ minVersion: "12.0.0",
330
+ version: "22.3.0",
331
+ ngImport: i0,
332
+ type: TableBodyComponent,
333
+ decorators: [{
334
+ type: Component,
335
+ args: [{
336
+ selector: "dz-table-body",
337
+ imports: [],
338
+ changeDetection: ChangeDetectionStrategy.OnPush,
339
+ template: "<ng-content></ng-content>\n",
340
+ styles: [":host{display:flex;flex-direction:column;gap:var(--dz-table-row-gap, 1em)}@media screen and (min-width:64em){:host{display:table-row-group}}\n"]
341
+ }]
342
+ }]
343
+ });
344
+ var TableRowComponent = class TableRowComponent {
345
+ static ɵfac = i0.ɵɵngDeclareFactory({
346
+ minVersion: "12.0.0",
347
+ version: "22.3.0",
348
+ ngImport: i0,
349
+ type: TableRowComponent,
350
+ deps: [],
351
+ target: i0.ɵɵFactoryTarget.Component
352
+ });
353
+ static ɵcmp = i0.ɵɵngDeclareComponent({
354
+ minVersion: "14.0.0",
355
+ version: "22.3.0",
356
+ type: TableRowComponent,
357
+ isStandalone: true,
358
+ selector: "dz-table-row",
359
+ ngImport: i0,
360
+ template: "<ng-content></ng-content>\n",
361
+ styles: [":host{display:flex;flex-direction:column;padding-bottom:var(--dz-table-row-gap, 1em);border-bottom:1px solid var(--dz-table-border-color, #e0e0e0)}@media screen and (min-width:64em){:host{display:table-row;padding-bottom:0;border-bottom:0}}\n"],
362
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
363
+ });
364
+ };
365
+ i0.ɵɵngDeclareClassMetadata({
366
+ minVersion: "12.0.0",
367
+ version: "22.3.0",
368
+ ngImport: i0,
369
+ type: TableRowComponent,
370
+ decorators: [{
371
+ type: Component,
372
+ args: [{
373
+ selector: "dz-table-row",
374
+ imports: [],
375
+ changeDetection: ChangeDetectionStrategy.OnPush,
376
+ template: "<ng-content></ng-content>\n",
377
+ styles: [":host{display:flex;flex-direction:column;padding-bottom:var(--dz-table-row-gap, 1em);border-bottom:1px solid var(--dz-table-border-color, #e0e0e0)}@media screen and (min-width:64em){:host{display:table-row;padding-bottom:0;border-bottom:0}}\n"]
378
+ }]
379
+ }]
380
+ });
381
+ const DZ_TABLE_IMPORTS = [
382
+ TableComponent,
383
+ TableHeaderComponent,
384
+ TableHeadComponent,
385
+ TableBodyComponent,
386
+ TableRowComponent,
387
+ TableCellComponent
388
+ ];
389
+ export { DZ_TABLE_IMPORTS, TableBodyComponent, TableCellComponent, TableComponent, TableHeadComponent, TableHeaderComponent, TableRowComponent };
390
+
391
+ //# sourceMappingURL=diezproyectos-diez-table.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"diezproyectos-diez-table.mjs","names":[],"sources":["../../../projects/diez-table/src/lib/table/table.component.ts","../../../projects/diez-table/src/lib/table/table.component.html","../../../projects/diez-table/src/lib/table/table-header/table-header.component.ts","../../../projects/diez-table/src/lib/table/table-header/table-header.component.html","../../../projects/diez-table/src/lib/table/table-cell/table-cell.component.ts","../../../projects/diez-table/src/lib/table/table-cell/table-cell.component.html","../../../projects/diez-table/src/lib/table/table-head/table-head.component.ts","../../../projects/diez-table/src/lib/table/table-head/table-head.component.html","../../../projects/diez-table/src/lib/table/table-body/table-body.component.ts","../../../projects/diez-table/src/lib/table/table-body/table-body.component.html","../../../projects/diez-table/src/lib/table/table-row/table-row.component.ts","../../../projects/diez-table/src/lib/table/table-row/table-row.component.html","../../../projects/diez-table/src/public-api.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component } from '@angular/core';\n\n@Component({\n selector: 'dz-table',\n imports: [],\n templateUrl: './table.component.html',\n styleUrl: './table.component.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TableComponent {}\n","<ng-content></ng-content>\n","import { ChangeDetectionStrategy, Component } from '@angular/core';\n\n@Component({\n selector: 'dz-table-header',\n imports: [],\n templateUrl: './table-header.component.html',\n styleUrl: './table-header.component.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TableHeaderComponent {}\n","<div class=\"table-header\">\n <ng-content></ng-content>\n</div>\n","import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';\n\n@Component({\n selector: 'dz-table-cell',\n imports: [],\n templateUrl: './table-cell.component.html',\n styleUrl: './table-cell.component.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TableCellComponent {\n width = input<string>('auto');\n align = input<string>('flex-start');\n padding = input<string>('');\n label = input<string>('');\n column = input<boolean>(false);\n maxWidthDesktop = input<string>('none');\n\n // `align` only applies on large screens, where the cell is a real table cell.\n // Flex properties such as justify-content do not work on table cells, so the\n // flex-style value is translated to text-align.\n protected textAlign = computed(() => {\n switch (this.align()) {\n case 'center':\n return 'center';\n case 'flex-end':\n return 'end';\n default:\n return 'start';\n }\n });\n}\n","<div\n class=\"table-cell\"\n [style.--width]=\"width()\"\n [style.--text-align]=\"textAlign()\"\n [style.--padding]=\"padding() || null\"\n [style.--max-width-desktop]=\"maxWidthDesktop()\"\n [attr.data-label]=\"label() || null\"\n [class.column]=\"column()\">\n <ng-content></ng-content>\n</div>\n","import { ChangeDetectionStrategy, Component, input } from '@angular/core';\nimport { TableCellComponent } from '../table-cell/table-cell.component';\n\n@Component({\n selector: 'dz-table-head',\n imports: [TableCellComponent],\n templateUrl: './table-head.component.html',\n styleUrl: './table-head.component.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TableHeadComponent {\n width = input<string>('auto');\n align = input<string>('flex-start');\n}\n","<dz-table-cell [width]=\"width()\" [align]=\"align()\" padding=\"0.5em 1em 1em 1em\">\n <ng-content></ng-content>\n</dz-table-cell>\n","import { ChangeDetectionStrategy, Component } from '@angular/core';\n\n@Component({\n selector: 'dz-table-body',\n imports: [],\n templateUrl: './table-body.component.html',\n styleUrl: './table-body.component.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TableBodyComponent {}\n","<ng-content></ng-content>\n","import { ChangeDetectionStrategy, Component } from '@angular/core';\n\n@Component({\n selector: 'dz-table-row',\n imports: [],\n templateUrl: './table-row.component.html',\n styleUrl: './table-row.component.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TableRowComponent {}\n","<ng-content></ng-content>\n","/*\n * Public API Surface of diez-table\n */\nimport { TableComponent } from './lib/table/table.component';\nimport { TableHeaderComponent } from './lib/table/table-header/table-header.component';\nimport { TableHeadComponent } from './lib/table/table-head/table-head.component';\nimport { TableBodyComponent } from './lib/table/table-body/table-body.component';\nimport { TableRowComponent } from './lib/table/table-row/table-row.component';\nimport { TableCellComponent } from './lib/table/table-cell/table-cell.component';\n\nexport {\n TableComponent,\n TableHeaderComponent,\n TableHeadComponent,\n TableBodyComponent,\n TableRowComponent,\n TableCellComponent,\n};\n\n/** All the table components, ready to use in the `imports` of a standalone component. */\nexport const DZ_TABLE_IMPORTS = [\n TableComponent,\n TableHeaderComponent,\n TableHeadComponent,\n TableBodyComponent,\n TableRowComponent,\n TableCellComponent,\n] as const;\n"],"mappings":";;AASA,IAAa,iBAAb,MAAa,eAAc;CAAd,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAc,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAAd,OAAA,OAAA,GAAA,qBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,MAAA;EAAc,cAAA;EAAA,UAAA;EAAA,UAAA;EAAA,UCT3B;EACA,QAAA,CAAA,mCAAA;EAAA,iBAAA,GAAA,wBAAA;CAAA,CAAA;;ADQa,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAc,YAAA,CAAA;EAP1B,MAAA;EACW,MAAA,CAAA;GAAA,UAAA;GAAU,SACX,CAAA;GAAE,iBAGM,wBAAwB;GAAM,UAAA;GAAA,QAAA,CAAA,mCAAA;EAAA,CAAA;;;AEEjD,IAAa,uBAAb,MAAa,qBAAoB;CAApB,OAAA,OAAA,G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A;EAAkB,cAAA;EAAA,UAAA;EAAA,UAAA;EAAA,UCT/B;EACA,QAAA,CAAA,gJAAA;EAAA,iBAAA,GAAA,wBAAA;CAAA,CAAA;;ADQa,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAkB,YAAA,CAAA;EAP9B,MAAA;EACW,MAAA,CAAA;GAAA,UAAA;GAAe,SAChB,CAAA;GAAE,iBAGM,wBAAwB;GAAM,UAAA;GAAA,QAAA,CAAA,gJAAA;EAAA,CAAA;;;AEEjD,IAAa,oBAAb,MAAa,kBAAiB;CAAjB,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAiB,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAAjB,OAAA,OAAA,GAAA,qBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,MAAA;EAAiB,cAAA;EAAA,UAAA;EAAA,UAAA;EAAA,UCT9B;EACA,QAAA,CAAA,oPAAA;EAAA,iBAAA,GAAA,wBAAA;CAAA,CAAA;;ADQa,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAiB,YAAA,CAAA;EAP7B,MAAA;EACW,MAAA,CAAA;GAAA,UAAA;GAAc,SACf,CAAA;GAAE,iBAGM,wBAAwB;GAAM,UAAA;GAAA,QAAA,CAAA,oPAAA;EAAA,CAAA;;;AEajD,MAAa,mBAAmB;CAC9B;CACA;CACA;CACA;CACA;CACA;AACQ"}
package/package.json CHANGED
@@ -1,6 +1,37 @@
1
1
  {
2
+ "description": "A responsive table for Angular: a real table on large screens, a list of labelled cards on small ones. Standalone components, pure CSS, themable with CSS variables.",
3
+ "keywords": [
4
+ "angular",
5
+ "table",
6
+ "responsive",
7
+ "standalone",
8
+ "components",
9
+ "css-variables",
10
+ "diez"
11
+ ],
12
+ "license": "MIT",
13
+ "publishConfig": {
14
+ "access": "public"
15
+ },
16
+ "peerDependencies": {
17
+ "@angular/common": "^22.0.0",
18
+ "@angular/core": "^22.0.0"
19
+ },
20
+ "sideEffects": false,
2
21
  "name": "@diezproyectos/diez-table",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
22
+ "type": "module",
23
+ "main": "./fesm2022/diezproyectos-diez-table.mjs",
24
+ "module": "./fesm2022/diezproyectos-diez-table.mjs",
25
+ "typings": "./types/diezproyectos-diez-table.d.ts",
26
+ "types": "./types/diezproyectos-diez-table.d.ts",
27
+ "exports": {
28
+ ".": {
29
+ "types": "./types/diezproyectos-diez-table.d.ts",
30
+ "default": "./fesm2022/diezproyectos-diez-table.mjs"
31
+ },
32
+ "./package.json": {
33
+ "default": "./package.json"
34
+ }
35
+ },
36
+ "version": "1.0.0"
37
+ }
@@ -0,0 +1,78 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class TableComponent {
3
+ static ɵfac: i0.ɵɵFactoryDeclaration<TableComponent, never>;
4
+ static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent, "dz-table", never, {}, {}, never, ["*"], true, never>;
5
+ }
6
+ export declare class TableHeaderComponent {
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<TableHeaderComponent, never>;
8
+ static ɵcmp: i0.ɵɵComponentDeclaration<TableHeaderComponent, "dz-table-header", never, {}, {}, never, ["*"], true, never>;
9
+ }
10
+ export declare class TableHeadComponent {
11
+ width: import("@angular/core").InputSignal<string>;
12
+ align: import("@angular/core").InputSignal<string>;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<TableHeadComponent, never>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<TableHeadComponent, "dz-table-head", never, {
15
+ "width": {
16
+ "alias": "width";
17
+ "required": false;
18
+ "isSignal": true;
19
+ };
20
+ "align": {
21
+ "alias": "align";
22
+ "required": false;
23
+ "isSignal": true;
24
+ };
25
+ }, {}, never, ["*"], true, never>;
26
+ }
27
+ export declare class TableBodyComponent {
28
+ static ɵfac: i0.ɵɵFactoryDeclaration<TableBodyComponent, never>;
29
+ static ɵcmp: i0.ɵɵComponentDeclaration<TableBodyComponent, "dz-table-body", never, {}, {}, never, ["*"], true, never>;
30
+ }
31
+ export declare class TableRowComponent {
32
+ static ɵfac: i0.ɵɵFactoryDeclaration<TableRowComponent, never>;
33
+ static ɵcmp: i0.ɵɵComponentDeclaration<TableRowComponent, "dz-table-row", never, {}, {}, never, ["*"], true, never>;
34
+ }
35
+ export declare class TableCellComponent {
36
+ width: import("@angular/core").InputSignal<string>;
37
+ align: import("@angular/core").InputSignal<string>;
38
+ padding: import("@angular/core").InputSignal<string>;
39
+ label: import("@angular/core").InputSignal<string>;
40
+ column: import("@angular/core").InputSignal<boolean>;
41
+ maxWidthDesktop: import("@angular/core").InputSignal<string>;
42
+ protected textAlign: import("@angular/core").Signal<"center" | "end" | "start">;
43
+ static ɵfac: i0.ɵɵFactoryDeclaration<TableCellComponent, never>;
44
+ static ɵcmp: i0.ɵɵComponentDeclaration<TableCellComponent, "dz-table-cell", never, {
45
+ "width": {
46
+ "alias": "width";
47
+ "required": false;
48
+ "isSignal": true;
49
+ };
50
+ "align": {
51
+ "alias": "align";
52
+ "required": false;
53
+ "isSignal": true;
54
+ };
55
+ "padding": {
56
+ "alias": "padding";
57
+ "required": false;
58
+ "isSignal": true;
59
+ };
60
+ "label": {
61
+ "alias": "label";
62
+ "required": false;
63
+ "isSignal": true;
64
+ };
65
+ "column": {
66
+ "alias": "column";
67
+ "required": false;
68
+ "isSignal": true;
69
+ };
70
+ "maxWidthDesktop": {
71
+ "alias": "maxWidthDesktop";
72
+ "required": false;
73
+ "isSignal": true;
74
+ };
75
+ }, {}, never, ["*"], true, never>;
76
+ }
77
+ /** All the table components, ready to use in the `imports` of a standalone component. */
78
+ export declare const DZ_TABLE_IMPORTS: readonly [typeof TableComponent, typeof TableHeaderComponent, typeof TableHeadComponent, typeof TableBodyComponent, typeof TableRowComponent, typeof TableCellComponent];