@beaconsoftware/web-components 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/dist/b-report-table/b-report-table-body.d.ts +16 -0
- package/dist/b-report-table/b-report-table-body.d.ts.map +1 -0
- package/dist/b-report-table/b-report-table-body.js +28 -0
- package/dist/b-report-table/b-report-table-body.js.map +1 -0
- package/dist/b-report-table/b-report-table-cell.d.ts +23 -0
- package/dist/b-report-table/b-report-table-cell.d.ts.map +1 -0
- package/dist/b-report-table/b-report-table-cell.js +103 -0
- package/dist/b-report-table/b-report-table-cell.js.map +1 -0
- package/dist/b-report-table/b-report-table-footer-cell.d.ts +25 -0
- package/dist/b-report-table/b-report-table-footer-cell.d.ts.map +1 -0
- package/dist/b-report-table/b-report-table-footer-cell.js +125 -0
- package/dist/b-report-table/b-report-table-footer-cell.js.map +1 -0
- package/dist/b-report-table/b-report-table-footer-row.d.ts +16 -0
- package/dist/b-report-table/b-report-table-footer-row.d.ts.map +1 -0
- package/dist/b-report-table/b-report-table-footer-row.js +28 -0
- package/dist/b-report-table/b-report-table-footer-row.js.map +1 -0
- package/dist/b-report-table/b-report-table-footer.d.ts +20 -0
- package/dist/b-report-table/b-report-table-footer.d.ts.map +1 -0
- package/dist/b-report-table/b-report-table-footer.js +38 -0
- package/dist/b-report-table/b-report-table-footer.js.map +1 -0
- package/dist/b-report-table/b-report-table-header-cell.d.ts +30 -0
- package/dist/b-report-table/b-report-table-header-cell.d.ts.map +1 -0
- package/dist/b-report-table/b-report-table-header-cell.js +121 -0
- package/dist/b-report-table/b-report-table-header-cell.js.map +1 -0
- package/dist/b-report-table/b-report-table-header-row.d.ts +16 -0
- package/dist/b-report-table/b-report-table-header-row.d.ts.map +1 -0
- package/dist/b-report-table/b-report-table-header-row.js +28 -0
- package/dist/b-report-table/b-report-table-header-row.js.map +1 -0
- package/dist/b-report-table/b-report-table-header.d.ts +25 -0
- package/dist/b-report-table/b-report-table-header.d.ts.map +1 -0
- package/dist/b-report-table/b-report-table-header.js +114 -0
- package/dist/b-report-table/b-report-table-header.js.map +1 -0
- package/dist/b-report-table/b-report-table-row.d.ts +16 -0
- package/dist/b-report-table/b-report-table-row.d.ts.map +1 -0
- package/dist/b-report-table/b-report-table-row.js +32 -0
- package/dist/b-report-table/b-report-table-row.js.map +1 -0
- package/dist/b-report-table/b-report-table.d.ts +32 -0
- package/dist/b-report-table/b-report-table.d.ts.map +1 -0
- package/dist/b-report-table/b-report-table.js +74 -0
- package/dist/b-report-table/b-report-table.js.map +1 -0
- package/dist/b-report-table/index.d.ts +11 -0
- package/dist/b-report-table/index.d.ts.map +1 -0
- package/dist/b-report-table/index.js +11 -0
- package/dist/b-report-table/index.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -0
- package/package.json +39 -0
- package/src/index.ts +2 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
/**
|
|
3
|
+
* Table body component that wraps body rows.
|
|
4
|
+
*
|
|
5
|
+
* @slot - Default slot for body rows (b-report-table-row)
|
|
6
|
+
*/
|
|
7
|
+
export declare class BReportTableBody extends LitElement {
|
|
8
|
+
static styles: import("lit").CSSResult;
|
|
9
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
10
|
+
}
|
|
11
|
+
declare global {
|
|
12
|
+
interface HTMLElementTagNameMap {
|
|
13
|
+
'b-report-table-body': BReportTableBody;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=b-report-table-body.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"b-report-table-body.d.ts","sourceRoot":"","sources":["../../src/b-report-table/b-report-table-body.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAG5C;;;;GAIG;AACH,qBACa,gBAAiB,SAAQ,UAAU;IAC9C,MAAM,CAAC,MAAM,0BAIX;IAEF,MAAM;CAGP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,qBAAqB,EAAE,gBAAgB,CAAC;KACzC;CACF"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { LitElement, html, css } from 'lit';
|
|
8
|
+
import { customElement } from 'lit/decorators.js';
|
|
9
|
+
/**
|
|
10
|
+
* Table body component that wraps body rows.
|
|
11
|
+
*
|
|
12
|
+
* @slot - Default slot for body rows (b-report-table-row)
|
|
13
|
+
*/
|
|
14
|
+
let BReportTableBody = class BReportTableBody extends LitElement {
|
|
15
|
+
render() {
|
|
16
|
+
return html `<slot></slot>`;
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
BReportTableBody.styles = css `
|
|
20
|
+
:host {
|
|
21
|
+
display: table-row-group;
|
|
22
|
+
}
|
|
23
|
+
`;
|
|
24
|
+
BReportTableBody = __decorate([
|
|
25
|
+
customElement('b-report-table-body')
|
|
26
|
+
], BReportTableBody);
|
|
27
|
+
export { BReportTableBody };
|
|
28
|
+
//# sourceMappingURL=b-report-table-body.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"b-report-table-body.js","sourceRoot":"","sources":["../../src/b-report-table/b-report-table-body.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD;;;;GAIG;AAEI,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,UAAU;IAO9C,MAAM;QACJ,OAAO,IAAI,CAAA,eAAe,CAAC;IAC7B,CAAC;;AARM,uBAAM,GAAG,GAAG,CAAA;;;;GAIlB,AAJY,CAIX;AALS,gBAAgB;IAD5B,aAAa,CAAC,qBAAqB,CAAC;GACxB,gBAAgB,CAU5B"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
/**
|
|
3
|
+
* A cell within a table body row.
|
|
4
|
+
*
|
|
5
|
+
* @slot - Default slot for cell content
|
|
6
|
+
*/
|
|
7
|
+
export declare class BReportTableCell extends LitElement {
|
|
8
|
+
static styles: import("lit").CSSResult;
|
|
9
|
+
connectedCallback(): void;
|
|
10
|
+
disconnectedCallback(): void;
|
|
11
|
+
private _findTable;
|
|
12
|
+
private _applyInitialConfig;
|
|
13
|
+
private _handleConfigChange;
|
|
14
|
+
private _applyConfig;
|
|
15
|
+
private _getColumnIndex;
|
|
16
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
17
|
+
}
|
|
18
|
+
declare global {
|
|
19
|
+
interface HTMLElementTagNameMap {
|
|
20
|
+
'b-report-table-cell': BReportTableCell;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=b-report-table-cell.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"b-report-table-cell.d.ts","sourceRoot":"","sources":["../../src/b-report-table/b-report-table-cell.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAI5C;;;;GAIG;AACH,qBACa,gBAAiB,SAAQ,UAAU;IAC9C,MAAM,CAAC,MAAM,0BA6BX;IAGF,iBAAiB,IAAI,IAAI;IAUzB,oBAAoB,IAAI,IAAI;IAQ5B,OAAO,CAAC,UAAU;IAIlB,OAAO,CAAC,mBAAmB;IAO3B,OAAO,CAAC,mBAAmB,CAGzB;IAEF,OAAO,CAAC,YAAY;IAepB,OAAO,CAAC,eAAe;IAOvB,MAAM;CAGP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,qBAAqB,EAAE,gBAAgB,CAAC;KACzC;CACF"}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { LitElement, html, css } from 'lit';
|
|
8
|
+
import { customElement } from 'lit/decorators.js';
|
|
9
|
+
/**
|
|
10
|
+
* A cell within a table body row.
|
|
11
|
+
*
|
|
12
|
+
* @slot - Default slot for cell content
|
|
13
|
+
*/
|
|
14
|
+
let BReportTableCell = class BReportTableCell extends LitElement {
|
|
15
|
+
constructor() {
|
|
16
|
+
super(...arguments);
|
|
17
|
+
this._handleConfigChange = (event) => {
|
|
18
|
+
const customEvent = event;
|
|
19
|
+
this._applyConfig(customEvent.detail.configs);
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
connectedCallback() {
|
|
23
|
+
super.connectedCallback();
|
|
24
|
+
const table = this._findTable();
|
|
25
|
+
if (table) {
|
|
26
|
+
table.addEventListener('column-config-change', this._handleConfigChange);
|
|
27
|
+
// Check if configs are already available
|
|
28
|
+
this._applyInitialConfig();
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
disconnectedCallback() {
|
|
32
|
+
super.disconnectedCallback();
|
|
33
|
+
this._findTable()?.removeEventListener('column-config-change', this._handleConfigChange);
|
|
34
|
+
}
|
|
35
|
+
_findTable() {
|
|
36
|
+
return this.closest('b-report-table');
|
|
37
|
+
}
|
|
38
|
+
_applyInitialConfig() {
|
|
39
|
+
const table = this._findTable();
|
|
40
|
+
if (table?.columnConfigs) {
|
|
41
|
+
this._applyConfig(table.columnConfigs);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
_applyConfig(configs) {
|
|
45
|
+
const index = this._getColumnIndex();
|
|
46
|
+
const config = configs.find((c) => c.index === index);
|
|
47
|
+
if (config) {
|
|
48
|
+
if (config.sticky) {
|
|
49
|
+
this.setAttribute('data-sticky', config.sticky);
|
|
50
|
+
this.style.setProperty('--sticky-offset', `${config.offset}px`);
|
|
51
|
+
}
|
|
52
|
+
else {
|
|
53
|
+
this.removeAttribute('data-sticky');
|
|
54
|
+
this.style.removeProperty('--sticky-offset');
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
_getColumnIndex() {
|
|
59
|
+
const row = this.parentElement;
|
|
60
|
+
if (!row)
|
|
61
|
+
return -1;
|
|
62
|
+
const cells = Array.from(row.querySelectorAll('b-report-table-cell'));
|
|
63
|
+
return cells.indexOf(this);
|
|
64
|
+
}
|
|
65
|
+
render() {
|
|
66
|
+
return html `<slot></slot>`;
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
BReportTableCell.styles = css `
|
|
70
|
+
:host {
|
|
71
|
+
display: table-cell;
|
|
72
|
+
padding: 12px 16px;
|
|
73
|
+
border-bottom: 1px solid #e2e8f0;
|
|
74
|
+
background: inherit;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
:host([data-sticky='left']),
|
|
78
|
+
:host([data-sticky='right']) {
|
|
79
|
+
position: sticky;
|
|
80
|
+
z-index: 1;
|
|
81
|
+
background: #fff;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
:host([data-sticky='left']) {
|
|
85
|
+
left: var(--sticky-offset, 0px);
|
|
86
|
+
box-shadow: 2px 0 4px -2px rgba(0, 0, 0, 0.1);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
:host([data-sticky='right']) {
|
|
90
|
+
right: var(--sticky-offset, 0px);
|
|
91
|
+
box-shadow: -2px 0 4px -2px rgba(0, 0, 0, 0.1);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
:host-context(b-report-table-row:hover)[data-sticky='left'],
|
|
95
|
+
:host-context(b-report-table-row:hover)[data-sticky='right'] {
|
|
96
|
+
background: #f8fafc;
|
|
97
|
+
}
|
|
98
|
+
`;
|
|
99
|
+
BReportTableCell = __decorate([
|
|
100
|
+
customElement('b-report-table-cell')
|
|
101
|
+
], BReportTableCell);
|
|
102
|
+
export { BReportTableCell };
|
|
103
|
+
//# sourceMappingURL=b-report-table-cell.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"b-report-table-cell.js","sourceRoot":"","sources":["../../src/b-report-table/b-report-table-cell.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAGlD;;;;GAIG;AAEI,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,UAAU;IAAzC;;QA8DG,wBAAmB,GAAG,CAAC,KAAY,EAAQ,EAAE;YACnD,MAAM,WAAW,GAAG,KAAuD,CAAC;YAC5E,IAAI,CAAC,YAAY,CAAC,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAChD,CAAC,CAAC;IA2BJ,CAAC;IA3DC,iBAAiB;QACf,KAAK,CAAC,iBAAiB,EAAE,CAAC;QAC1B,MAAM,KAAK,GAAG,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C;YAC/C,CAAC;QACH,CAAC;IACH,CAAC;IAEO,eAAe;QACrB,MAAM,GAAG,GAAG,IAAI,CAAC,aAAa,CAAC;QAC/B,IAAI,CAAC,GAAG;YAAE,OAAO,CAAC,CAAC,CAAC;QACpB,MAAM,KAAK,GAAG,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,gBAAgB,CAAC,qBAAqB,CAAC,CAAC,CAAC;QACtE,OAAO,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7B,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,CAAA,eAAe,CAAC;IAC7B,CAAC;;AA1FM,uBAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BlB,AA7BY,CA6BX;AA9BS,gBAAgB;IAD5B,aAAa,CAAC,qBAAqB,CAAC;GACxB,gBAAgB,CA4F5B"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
/**
|
|
3
|
+
* A cell within a table footer row.
|
|
4
|
+
* Inherits sticky behavior from corresponding header columns.
|
|
5
|
+
*
|
|
6
|
+
* @slot - Default slot for cell content
|
|
7
|
+
*/
|
|
8
|
+
export declare class BReportTableFooterCell extends LitElement {
|
|
9
|
+
static styles: import("lit").CSSResult;
|
|
10
|
+
connectedCallback(): void;
|
|
11
|
+
private _updateVerticalSticky;
|
|
12
|
+
disconnectedCallback(): void;
|
|
13
|
+
private _findTable;
|
|
14
|
+
private _applyInitialConfig;
|
|
15
|
+
private _handleConfigChange;
|
|
16
|
+
private _applyConfig;
|
|
17
|
+
private _getColumnIndex;
|
|
18
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
19
|
+
}
|
|
20
|
+
declare global {
|
|
21
|
+
interface HTMLElementTagNameMap {
|
|
22
|
+
'b-report-table-footer-cell': BReportTableFooterCell;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=b-report-table-footer-cell.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"b-report-table-footer-cell.d.ts","sourceRoot":"","sources":["../../src/b-report-table/b-report-table-footer-cell.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAI5C;;;;;GAKG;AACH,qBACa,sBAAuB,SAAQ,UAAU;IACpD,MAAM,CAAC,MAAM,0BAuCX;IAGF,iBAAiB,IAAI,IAAI;IAYzB,OAAO,CAAC,qBAAqB;IAS7B,oBAAoB,IAAI,IAAI;IAQ5B,OAAO,CAAC,UAAU;IAIlB,OAAO,CAAC,mBAAmB;IAO3B,OAAO,CAAC,mBAAmB,CAGzB;IAEF,OAAO,CAAC,YAAY;IAepB,OAAO,CAAC,eAAe;IAOvB,MAAM;CAGP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,4BAA4B,EAAE,sBAAsB,CAAC;KACtD;CACF"}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { LitElement, html, css } from 'lit';
|
|
8
|
+
import { customElement } from 'lit/decorators.js';
|
|
9
|
+
/**
|
|
10
|
+
* A cell within a table footer row.
|
|
11
|
+
* Inherits sticky behavior from corresponding header columns.
|
|
12
|
+
*
|
|
13
|
+
* @slot - Default slot for cell content
|
|
14
|
+
*/
|
|
15
|
+
let BReportTableFooterCell = class BReportTableFooterCell extends LitElement {
|
|
16
|
+
constructor() {
|
|
17
|
+
super(...arguments);
|
|
18
|
+
this._handleConfigChange = (event) => {
|
|
19
|
+
const customEvent = event;
|
|
20
|
+
this._applyConfig(customEvent.detail.configs);
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
connectedCallback() {
|
|
24
|
+
super.connectedCallback();
|
|
25
|
+
const table = this._findTable();
|
|
26
|
+
if (table) {
|
|
27
|
+
table.addEventListener('column-config-change', this._handleConfigChange);
|
|
28
|
+
// Check if configs are already available
|
|
29
|
+
this._applyInitialConfig();
|
|
30
|
+
}
|
|
31
|
+
// Check if parent footer has sticky attribute
|
|
32
|
+
this._updateVerticalSticky();
|
|
33
|
+
}
|
|
34
|
+
_updateVerticalSticky() {
|
|
35
|
+
const footer = this.closest('b-report-table-footer');
|
|
36
|
+
if (footer?.hasAttribute('sticky')) {
|
|
37
|
+
this.setAttribute('data-sticky-bottom', '');
|
|
38
|
+
}
|
|
39
|
+
else {
|
|
40
|
+
this.removeAttribute('data-sticky-bottom');
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
disconnectedCallback() {
|
|
44
|
+
super.disconnectedCallback();
|
|
45
|
+
this._findTable()?.removeEventListener('column-config-change', this._handleConfigChange);
|
|
46
|
+
}
|
|
47
|
+
_findTable() {
|
|
48
|
+
return this.closest('b-report-table');
|
|
49
|
+
}
|
|
50
|
+
_applyInitialConfig() {
|
|
51
|
+
const table = this._findTable();
|
|
52
|
+
if (table?.columnConfigs) {
|
|
53
|
+
this._applyConfig(table.columnConfigs);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
_applyConfig(configs) {
|
|
57
|
+
const index = this._getColumnIndex();
|
|
58
|
+
const config = configs.find((c) => c.index === index);
|
|
59
|
+
if (config) {
|
|
60
|
+
if (config.sticky) {
|
|
61
|
+
this.setAttribute('data-sticky', config.sticky);
|
|
62
|
+
this.style.setProperty('--sticky-offset', `${config.offset}px`);
|
|
63
|
+
}
|
|
64
|
+
else {
|
|
65
|
+
this.removeAttribute('data-sticky');
|
|
66
|
+
this.style.removeProperty('--sticky-offset');
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
_getColumnIndex() {
|
|
71
|
+
const row = this.parentElement;
|
|
72
|
+
if (!row)
|
|
73
|
+
return -1;
|
|
74
|
+
const cells = Array.from(row.querySelectorAll('b-report-table-footer-cell'));
|
|
75
|
+
return cells.indexOf(this);
|
|
76
|
+
}
|
|
77
|
+
render() {
|
|
78
|
+
return html `<slot></slot>`;
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
BReportTableFooterCell.styles = css `
|
|
82
|
+
:host {
|
|
83
|
+
display: table-cell;
|
|
84
|
+
padding: 12px 16px;
|
|
85
|
+
font-weight: 600;
|
|
86
|
+
background: #f8fafc;
|
|
87
|
+
border-top: 2px solid #e2e8f0;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/* Vertical sticky (when parent footer has sticky attribute) */
|
|
91
|
+
:host([data-sticky-bottom]) {
|
|
92
|
+
position: sticky;
|
|
93
|
+
bottom: 0;
|
|
94
|
+
z-index: 2;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/* Horizontal sticky columns */
|
|
98
|
+
:host([data-sticky='left']),
|
|
99
|
+
:host([data-sticky='right']) {
|
|
100
|
+
position: sticky;
|
|
101
|
+
z-index: 2;
|
|
102
|
+
background: #f1f5f9;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/* Both vertical and horizontal sticky */
|
|
106
|
+
:host([data-sticky-bottom][data-sticky='left']),
|
|
107
|
+
:host([data-sticky-bottom][data-sticky='right']) {
|
|
108
|
+
z-index: 4;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
:host([data-sticky='left']) {
|
|
112
|
+
left: var(--sticky-offset, 0px);
|
|
113
|
+
box-shadow: 2px 0 4px -2px rgba(0, 0, 0, 0.1);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
:host([data-sticky='right']) {
|
|
117
|
+
right: var(--sticky-offset, 0px);
|
|
118
|
+
box-shadow: -2px 0 4px -2px rgba(0, 0, 0, 0.1);
|
|
119
|
+
}
|
|
120
|
+
`;
|
|
121
|
+
BReportTableFooterCell = __decorate([
|
|
122
|
+
customElement('b-report-table-footer-cell')
|
|
123
|
+
], BReportTableFooterCell);
|
|
124
|
+
export { BReportTableFooterCell };
|
|
125
|
+
//# sourceMappingURL=b-report-table-footer-cell.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"b-report-table-footer-cell.js","sourceRoot":"","sources":["../../src/b-report-table/b-report-table-footer-cell.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAGlD;;;;;GAKG;AAEI,IAAM,sBAAsB,GAA5B,MAAM,sBAAuB,SAAQ,UAAU;IAA/C;;QAmFG,wBAAmB,GAAG,CAAC,KAAY,EAAQ,EAAE;YACnD,MAAM,WAAW,GAAG,KAAuD,CAAC;YAC5E,IAAI,CAAC,YAAY,CAAC,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAChD,CAAC,CAAC;IA2BJ,CAAC;IAtEC,iBAAiB;QACf,KAAK,CAAC,iBAAiB,EAAE,CAAC;QAC1B,MAAM,KAAK,GAAG,IAAI,CAAC,UAAU,EAAE,CAAC;QAChC,IAAI,KAAK,EAAE,CAAC;YACV,KAAK,CAAC,gBAAgB,CAAC,sBAAsB,EAAE,IAAI,CAAC,mBAAmB,CAAC,CAAC;YACzE,yCAAyC;YACzC,IAAI,CAAC,mBAAmB,EAAE,CAAC;QAC7B,CAAC;QACD,8CAA8C;QAC9C,IAAI,CAAC,qBAAqB,EAAE,CAAC;IAC/B,CAAC;IAEO,qBAAqB;QAC3B,MAAM,MAAM,GAAG,IAAI,CAAC,O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K,CAAC,cAAc,CAAC,iBAAiB,CAAC,CAAC;YAC/C,CAAC;QACH,CAAC;IACH,CAAC;IAEO,eAAe;QACrB,MAAM,GAAG,GAAG,IAAI,CAAC,aAAa,CAAC;QAC/B,IAAI,CAAC,GAAG;YAAE,OAAO,CAAC,CAAC,CAAC;QACpB,MAAM,KAAK,GAAG,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,gBAAgB,CAAC,4BAA4B,CAAC,CAAC,CAAC;QAC7E,OAAO,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7B,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,CAAA,eAAe,CAAC;IAC7B,CAAC;;AA/GM,6BAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuClB,AAvCY,CAuCX;AAxCS,sBAAsB;IADlC,aAAa,CAAC,4BAA4B,CAAC;GAC/B,sBAAsB,CAiHlC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
/**
|
|
3
|
+
* A row within the table footer.
|
|
4
|
+
*
|
|
5
|
+
* @slot - Default slot for footer cells (b-report-table-footer-cell)
|
|
6
|
+
*/
|
|
7
|
+
export declare class BReportTableFooterRow extends LitElement {
|
|
8
|
+
static styles: import("lit").CSSResult;
|
|
9
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
10
|
+
}
|
|
11
|
+
declare global {
|
|
12
|
+
interface HTMLElementTagNameMap {
|
|
13
|
+
'b-report-table-footer-row': BReportTableFooterRow;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=b-report-table-footer-row.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"b-report-table-footer-row.d.ts","sourceRoot":"","sources":["../../src/b-report-table/b-report-table-footer-row.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAG5C;;;;GAIG;AACH,qBACa,qBAAsB,SAAQ,UAAU;IACnD,MAAM,CAAC,MAAM,0BAIX;IAEF,MAAM;CAGP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,2BAA2B,EAAE,qBAAqB,CAAC;KACpD;CACF"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { LitElement, html, css } from 'lit';
|
|
8
|
+
import { customElement } from 'lit/decorators.js';
|
|
9
|
+
/**
|
|
10
|
+
* A row within the table footer.
|
|
11
|
+
*
|
|
12
|
+
* @slot - Default slot for footer cells (b-report-table-footer-cell)
|
|
13
|
+
*/
|
|
14
|
+
let BReportTableFooterRow = class BReportTableFooterRow extends LitElement {
|
|
15
|
+
render() {
|
|
16
|
+
return html `<slot></slot>`;
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
BReportTableFooterRow.styles = css `
|
|
20
|
+
:host {
|
|
21
|
+
display: table-row;
|
|
22
|
+
}
|
|
23
|
+
`;
|
|
24
|
+
BReportTableFooterRow = __decorate([
|
|
25
|
+
customElement('b-report-table-footer-row')
|
|
26
|
+
], BReportTableFooterRow);
|
|
27
|
+
export { BReportTableFooterRow };
|
|
28
|
+
//# sourceMappingURL=b-report-table-footer-row.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"b-report-table-footer-row.js","sourceRoot":"","sources":["../../src/b-report-table/b-report-table-footer-row.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD;;;;GAIG;AAEI,IAAM,qBAAqB,GAA3B,MAAM,qBAAsB,SAAQ,UAAU;IAOnD,MAAM;QACJ,OAAO,IAAI,CAAA,eAAe,CAAC;IAC7B,CAAC;;AARM,4BAAM,GAAG,GAAG,CAAA;;;;GAIlB,AAJY,CAIX;AALS,qBAAqB;IADjC,aAAa,CAAC,2BAA2B,CAAC;GAC9B,qBAAqB,CAUjC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
/**
|
|
3
|
+
* Table footer component that wraps footer rows.
|
|
4
|
+
*
|
|
5
|
+
* @slot - Default slot for footer rows (b-report-table-footer-row)
|
|
6
|
+
*/
|
|
7
|
+
export declare class BReportTableFooter extends LitElement {
|
|
8
|
+
static styles: import("lit").CSSResult;
|
|
9
|
+
/**
|
|
10
|
+
* Whether the footer should be sticky (fixed at the bottom when scrolling).
|
|
11
|
+
*/
|
|
12
|
+
sticky: boolean;
|
|
13
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
14
|
+
}
|
|
15
|
+
declare global {
|
|
16
|
+
interface HTMLElementTagNameMap {
|
|
17
|
+
'b-report-table-footer': BReportTableFooter;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=b-report-table-footer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"b-report-table-footer.d.ts","sourceRoot":"","sources":["../../src/b-report-table/b-report-table-footer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAG5C;;;;GAIG;AACH,qBACa,kBAAmB,SAAQ,UAAU;IAChD,MAAM,CAAC,MAAM,0BAIX;IAEF;;OAEG;IAEH,MAAM,UAAS;IAEf,MAAM;CAGP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,uBAAuB,EAAE,kBAAkB,CAAC;KAC7C;CACF"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { LitElement, html, css } from 'lit';
|
|
8
|
+
import { customElement, property } from 'lit/decorators.js';
|
|
9
|
+
/**
|
|
10
|
+
* Table footer component that wraps footer rows.
|
|
11
|
+
*
|
|
12
|
+
* @slot - Default slot for footer rows (b-report-table-footer-row)
|
|
13
|
+
*/
|
|
14
|
+
let BReportTableFooter = class BReportTableFooter extends LitElement {
|
|
15
|
+
constructor() {
|
|
16
|
+
super(...arguments);
|
|
17
|
+
/**
|
|
18
|
+
* Whether the footer should be sticky (fixed at the bottom when scrolling).
|
|
19
|
+
*/
|
|
20
|
+
this.sticky = false;
|
|
21
|
+
}
|
|
22
|
+
render() {
|
|
23
|
+
return html `<slot></slot>`;
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
BReportTableFooter.styles = css `
|
|
27
|
+
:host {
|
|
28
|
+
display: table-footer-group;
|
|
29
|
+
}
|
|
30
|
+
`;
|
|
31
|
+
__decorate([
|
|
32
|
+
property({ type: Boolean, reflect: true })
|
|
33
|
+
], BReportTableFooter.prototype, "sticky", void 0);
|
|
34
|
+
BReportTableFooter = __decorate([
|
|
35
|
+
customElement('b-report-table-footer')
|
|
36
|
+
], BReportTableFooter);
|
|
37
|
+
export { BReportTableFooter };
|
|
38
|
+
//# sourceMappingURL=b-report-table-footer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"b-report-table-footer.js","sourceRoot":"","sources":["../../src/b-report-table/b-report-table-footer.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE5D;;;;GAIG;AAEI,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,UAAU;IAA3C;;QAOL;;WAEG;QAEH,WAAM,GAAG,KAAK,CAAC;IAKjB,CAAC;IAHC,MAAM;QACJ,OAAO,IAAI,CAAA,eAAe,CAAC;IAC7B,CAAC;;AAdM,yBAAM,GAAG,GAAG,CAAA;;;;GAIlB,AAJY,CAIX;AAMF;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;kDAC5B;AAXJ,kBAAkB;IAD9B,aAAa,CAAC,uBAAuB,CAAC;GAC1B,kBAAkB,CAgB9B"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
/**
|
|
3
|
+
* A header cell within a table header row.
|
|
4
|
+
*
|
|
5
|
+
* @slot - Default slot for cell content
|
|
6
|
+
*/
|
|
7
|
+
export declare class BReportTableHeaderCell extends LitElement {
|
|
8
|
+
static styles: import("lit").CSSResult;
|
|
9
|
+
/**
|
|
10
|
+
* Determines if this column should be sticky.
|
|
11
|
+
* - "left": Column sticks to the left side
|
|
12
|
+
* - "right": Column sticks to the right side
|
|
13
|
+
* - null/undefined: Column is not sticky
|
|
14
|
+
*/
|
|
15
|
+
sticky: 'left' | 'right' | null;
|
|
16
|
+
private _offset;
|
|
17
|
+
connectedCallback(): void;
|
|
18
|
+
private _updateVerticalSticky;
|
|
19
|
+
disconnectedCallback(): void;
|
|
20
|
+
private _findTable;
|
|
21
|
+
private _handleConfigChange;
|
|
22
|
+
private _getColumnIndex;
|
|
23
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
24
|
+
}
|
|
25
|
+
declare global {
|
|
26
|
+
interface HTMLElementTagNameMap {
|
|
27
|
+
'b-report-table-header-cell': BReportTableHeaderCell;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=b-report-table-header-cell.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"b-report-table-header-cell.d.ts","sourceRoot":"","sources":["../../src/b-report-table/b-report-table-header-cell.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAI5C;;;;GAIG;AACH,qBACa,sBAAuB,SAAQ,UAAU;IACpD,MAAM,CAAC,MAAM,0BAyCX;IAEF;;;;;OAKG;IAEH,MAAM,EAAE,MAAM,GAAG,OAAO,GAAG,IAAI,CAAQ;IAGvC,OAAO,CAAC,OAAO,CAAK;IAEpB,iBAAiB,IAAI,IAAI;IAUzB,OAAO,CAAC,qBAAqB;IAS7B,oBAAoB,IAAI,IAAI;IAQ5B,OAAO,CAAC,UAAU;IAIlB,OAAO,CAAC,mBAAmB,CAUzB;IAEF,OAAO,CAAC,eAAe;IASvB,MAAM;CAGP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,4BAA4B,EAAE,sBAAsB,CAAC;KACtD;CACF"}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { LitElement, html, css } from 'lit';
|
|
8
|
+
import { customElement, property, state } from 'lit/decorators.js';
|
|
9
|
+
/**
|
|
10
|
+
* A header cell within a table header row.
|
|
11
|
+
*
|
|
12
|
+
* @slot - Default slot for cell content
|
|
13
|
+
*/
|
|
14
|
+
let BReportTableHeaderCell = class BReportTableHeaderCell extends LitElement {
|
|
15
|
+
constructor() {
|
|
16
|
+
super(...arguments);
|
|
17
|
+
/**
|
|
18
|
+
* Determines if this column should be sticky.
|
|
19
|
+
* - "left": Column sticks to the left side
|
|
20
|
+
* - "right": Column sticks to the right side
|
|
21
|
+
* - null/undefined: Column is not sticky
|
|
22
|
+
*/
|
|
23
|
+
this.sticky = null;
|
|
24
|
+
this._offset = 0;
|
|
25
|
+
this._handleConfigChange = (event) => {
|
|
26
|
+
const customEvent = event;
|
|
27
|
+
const configs = customEvent.detail.configs;
|
|
28
|
+
const index = this._getColumnIndex();
|
|
29
|
+
const config = configs.find((c) => c.index === index);
|
|
30
|
+
if (config && config.sticky) {
|
|
31
|
+
this._offset = config.offset;
|
|
32
|
+
this.style.setProperty('--sticky-offset', `${this._offset}px`);
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
connectedCallback() {
|
|
37
|
+
super.connectedCallback();
|
|
38
|
+
this._findTable()?.addEventListener('column-config-change', this._handleConfigChange);
|
|
39
|
+
// Check if parent header has sticky attribute
|
|
40
|
+
this._updateVerticalSticky();
|
|
41
|
+
}
|
|
42
|
+
_updateVerticalSticky() {
|
|
43
|
+
const header = this.closest('b-report-table-header');
|
|
44
|
+
if (header?.hasAttribute('sticky')) {
|
|
45
|
+
this.setAttribute('data-sticky-top', '');
|
|
46
|
+
}
|
|
47
|
+
else {
|
|
48
|
+
this.removeAttribute('data-sticky-top');
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
disconnectedCallback() {
|
|
52
|
+
super.disconnectedCallback();
|
|
53
|
+
this._findTable()?.removeEventListener('column-config-change', this._handleConfigChange);
|
|
54
|
+
}
|
|
55
|
+
_findTable() {
|
|
56
|
+
return this.closest('b-report-table');
|
|
57
|
+
}
|
|
58
|
+
_getColumnIndex() {
|
|
59
|
+
const row = this.parentElement;
|
|
60
|
+
if (!row)
|
|
61
|
+
return -1;
|
|
62
|
+
const cells = Array.from(row.querySelectorAll('b-report-table-header-cell'));
|
|
63
|
+
return cells.indexOf(this);
|
|
64
|
+
}
|
|
65
|
+
render() {
|
|
66
|
+
return html `<slot></slot>`;
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
BReportTableHeaderCell.styles = css `
|
|
70
|
+
:host {
|
|
71
|
+
display: table-cell;
|
|
72
|
+
padding: 12px 16px;
|
|
73
|
+
text-align: left;
|
|
74
|
+
font-weight: 600;
|
|
75
|
+
background: #f8fafc;
|
|
76
|
+
border-bottom: 2px solid #e2e8f0;
|
|
77
|
+
white-space: nowrap;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/* Vertical sticky (when parent header has sticky attribute) */
|
|
81
|
+
:host([data-sticky-top]) {
|
|
82
|
+
position: sticky;
|
|
83
|
+
top: 0;
|
|
84
|
+
z-index: 2;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/* Horizontal sticky columns */
|
|
88
|
+
:host([sticky='left']),
|
|
89
|
+
:host([sticky='right']) {
|
|
90
|
+
position: sticky;
|
|
91
|
+
z-index: 2;
|
|
92
|
+
background: #f1f5f9;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/* Both vertical and horizontal sticky */
|
|
96
|
+
:host([data-sticky-top][sticky='left']),
|
|
97
|
+
:host([data-sticky-top][sticky='right']) {
|
|
98
|
+
z-index: 4;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
:host([sticky='left']) {
|
|
102
|
+
left: var(--sticky-offset, 0px);
|
|
103
|
+
box-shadow: 2px 0 4px -2px rgba(0, 0, 0, 0.1);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
:host([sticky='right']) {
|
|
107
|
+
right: var(--sticky-offset, 0px);
|
|
108
|
+
box-shadow: -2px 0 4px -2px rgba(0, 0, 0, 0.1);
|
|
109
|
+
}
|
|
110
|
+
`;
|
|
111
|
+
__decorate([
|
|
112
|
+
property({ type: String, reflect: true })
|
|
113
|
+
], BReportTableHeaderCell.prototype, "sticky", void 0);
|
|
114
|
+
__decorate([
|
|
115
|
+
state()
|
|
116
|
+
], BReportTableHeaderCell.prototype, "_offset", void 0);
|
|
117
|
+
BReportTableHeaderCell = __decorate([
|
|
118
|
+
customElement('b-report-table-header-cell')
|
|
119
|
+
], BReportTableHeaderCell);
|
|
120
|
+
export { BReportTableHeaderCell };
|
|
121
|
+
//# sourceMappingURL=b-report-table-header-cell.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"b-report-table-header-cell.js","sourceRoot":"","sources":["../../src/b-report-table/b-report-table-header-cell.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAGnE;;;;GAIG;AAEI,IAAM,sBAAsB,GAA5B,MAAM,sBAAuB,SAAQ,UAAU;IAA/C;;QA4CL;;;;;WAKG;QAEH,WAAM,GAA4B,IAAI,CAAC;QAG/B,YAAO,GAAG,CAAC,CAAC;QAiCZ,wBAAmB,GAAG,CAAC,KAAY,EAAQ,EAAE;YACnD,MAAM,WAAW,GAAG,KAAuD,CAAC;YAC5E,MAAM,OAAO,GAAG,WAAW,CAAC,MAAM,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,MAAM,GAAG,GAAG,IAAI,CAAC,aAAa,CAAC;QAC/B,IAAI,CAAC,GAAG;YAAE,OAAO,CAAC,CAAC,CAAC;QACpB,MAAM,KAAK,GAAG,KAAK,CAAC,IAAI,CACtB,GAAG,CAAC,gBAAgB,CAAC,4BAA4B,CAAC,CACnD,CAAC;QACF,OAAO,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7B,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,CAAA,eAAe,CAAC;IAC7B,CAAC;;AA7GM,6BAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyClB,AAzCY,CAyCX;AASF;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;sDACH;AAG/B;IADP,KAAK,EAAE;uDACY;AAtDT,sBAAsB;IADlC,aAAa,CAAC,4BAA4B,CAAC;GAC/B,sBAAsB,CA+GlC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
/**
|
|
3
|
+
* A row within the table header.
|
|
4
|
+
*
|
|
5
|
+
* @slot - Default slot for header cells (b-report-table-header-cell)
|
|
6
|
+
*/
|
|
7
|
+
export declare class BReportTableHeaderRow extends LitElement {
|
|
8
|
+
static styles: import("lit").CSSResult;
|
|
9
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
10
|
+
}
|
|
11
|
+
declare global {
|
|
12
|
+
interface HTMLElementTagNameMap {
|
|
13
|
+
'b-report-table-header-row': BReportTableHeaderRow;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=b-report-table-header-row.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"b-report-table-header-row.d.ts","sourceRoot":"","sources":["../../src/b-report-table/b-report-table-header-row.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAG5C;;;;GAIG;AACH,qBACa,qBAAsB,SAAQ,UAAU;IACnD,MAAM,CAAC,MAAM,0BAIX;IAEF,MAAM;CAGP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,2BAA2B,EAAE,qBAAqB,CAAC;KACpD;CACF"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { LitElement, html, css } from 'lit';
|
|
8
|
+
import { customElement } from 'lit/decorators.js';
|
|
9
|
+
/**
|
|
10
|
+
* A row within the table header.
|
|
11
|
+
*
|
|
12
|
+
* @slot - Default slot for header cells (b-report-table-header-cell)
|
|
13
|
+
*/
|
|
14
|
+
let BReportTableHeaderRow = class BReportTableHeaderRow extends LitElement {
|
|
15
|
+
render() {
|
|
16
|
+
return html `<slot></slot>`;
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
BReportTableHeaderRow.styles = css `
|
|
20
|
+
:host {
|
|
21
|
+
display: table-row;
|
|
22
|
+
}
|
|
23
|
+
`;
|
|
24
|
+
BReportTableHeaderRow = __decorate([
|
|
25
|
+
customElement('b-report-table-header-row')
|
|
26
|
+
], BReportTableHeaderRow);
|
|
27
|
+
export { BReportTableHeaderRow };
|
|
28
|
+
//# sourceMappingURL=b-report-table-header-row.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"b-report-table-header-row.js","sourceRoot":"","sources":["../../src/b-report-table/b-report-table-header-row.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD;;;;GAIG;AAEI,IAAM,qBAAqB,GAA3B,MAAM,qBAAsB,SAAQ,UAAU;IAOnD,MAAM;QACJ,OAAO,IAAI,CAAA,eAAe,CAAC;IAC7B,CAAC;;AARM,4BAAM,GAAG,GAAG,CAAA;;;;GAIlB,AAJY,CAIX;AALS,qBAAqB;IADjC,aAAa,CAAC,2BAA2B,CAAC;GAC9B,qBAAqB,CAUjC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
/**
|
|
3
|
+
* Table header component that wraps header rows.
|
|
4
|
+
*
|
|
5
|
+
* @slot - Default slot for header rows (b-report-table-header-row)
|
|
6
|
+
*/
|
|
7
|
+
export declare class BReportTableHeader extends LitElement {
|
|
8
|
+
static styles: import("lit").CSSResult;
|
|
9
|
+
/**
|
|
10
|
+
* Whether the header should be sticky (fixed at the top when scrolling).
|
|
11
|
+
*/
|
|
12
|
+
sticky: boolean;
|
|
13
|
+
private _resizeObserver?;
|
|
14
|
+
connectedCallback(): void;
|
|
15
|
+
disconnectedCallback(): void;
|
|
16
|
+
private _setupResizeObserver;
|
|
17
|
+
private _calculateColumnConfigs;
|
|
18
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
19
|
+
}
|
|
20
|
+
declare global {
|
|
21
|
+
interface HTMLElementTagNameMap {
|
|
22
|
+
'b-report-table-header': BReportTableHeader;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=b-report-table-header.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"b-report-table-header.d.ts","sourceRoot":"","sources":["../../src/b-report-table/b-report-table-header.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAK5C;;;;GAIG;AACH,qBACa,kBAAmB,SAAQ,UAAU;IAChD,MAAM,CAAC,MAAM,0BAIX;IAEF;;OAEG;IAEH,MAAM,UAAS;IAEf,OAAO,CAAC,eAAe,CAAC,CAAiB;IAEzC,iBAAiB,IAAI,IAAI;IASzB,oBAAoB,IAAI,IAAI;IAK5B,OAAO,CAAC,oBAAoB;IAO5B,OAAO,CAAC,uBAAuB;IAoE/B,MAAM;CAGP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,uBAAuB,EAAE,kBAAkB,CAAC;KAC7C;CACF"}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { LitElement, html, css } from 'lit';
|
|
8
|
+
import { customElement, property } from 'lit/decorators.js';
|
|
9
|
+
/**
|
|
10
|
+
* Table header component that wraps header rows.
|
|
11
|
+
*
|
|
12
|
+
* @slot - Default slot for header rows (b-report-table-header-row)
|
|
13
|
+
*/
|
|
14
|
+
let BReportTableHeader = class BReportTableHeader extends LitElement {
|
|
15
|
+
constructor() {
|
|
16
|
+
super(...arguments);
|
|
17
|
+
/**
|
|
18
|
+
* Whether the header should be sticky (fixed at the top when scrolling).
|
|
19
|
+
*/
|
|
20
|
+
this.sticky = false;
|
|
21
|
+
}
|
|
22
|
+
connectedCallback() {
|
|
23
|
+
super.connectedCallback();
|
|
24
|
+
this._setupResizeObserver();
|
|
25
|
+
// Delay initial calculation to ensure all children are rendered
|
|
26
|
+
requestAnimationFrame(() => {
|
|
27
|
+
this._calculateColumnConfigs();
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
disconnectedCallback() {
|
|
31
|
+
super.disconnectedCallback();
|
|
32
|
+
this._resizeObserver?.disconnect();
|
|
33
|
+
}
|
|
34
|
+
_setupResizeObserver() {
|
|
35
|
+
this._resizeObserver = new ResizeObserver(() => {
|
|
36
|
+
this._calculateColumnConfigs();
|
|
37
|
+
});
|
|
38
|
+
this._resizeObserver.observe(this);
|
|
39
|
+
}
|
|
40
|
+
_calculateColumnConfigs() {
|
|
41
|
+
const table = this.closest('b-report-table');
|
|
42
|
+
if (!table)
|
|
43
|
+
return;
|
|
44
|
+
// Find the first header row to get column configurations
|
|
45
|
+
const firstRow = this.querySelector('b-report-table-header-row');
|
|
46
|
+
if (!firstRow)
|
|
47
|
+
return;
|
|
48
|
+
const cells = Array.from(firstRow.querySelectorAll('b-report-table-header-cell'));
|
|
49
|
+
const configs = [];
|
|
50
|
+
let leftOffset = 0;
|
|
51
|
+
let rightOffset = 0;
|
|
52
|
+
// First pass: collect all cells and their sticky values
|
|
53
|
+
const cellData = cells.map((cell, index) => ({
|
|
54
|
+
index,
|
|
55
|
+
sticky: cell.sticky,
|
|
56
|
+
width: cell.offsetWidth || 100,
|
|
57
|
+
}));
|
|
58
|
+
// Calculate left sticky offsets
|
|
59
|
+
for (const data of cellData) {
|
|
60
|
+
if (data.sticky === 'left') {
|
|
61
|
+
configs.push({
|
|
62
|
+
index: data.index,
|
|
63
|
+
sticky: 'left',
|
|
64
|
+
width: data.width,
|
|
65
|
+
offset: leftOffset,
|
|
66
|
+
});
|
|
67
|
+
leftOffset += data.width;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
// Calculate right sticky offsets (from right to left)
|
|
71
|
+
for (let i = cellData.length - 1; i >= 0; i--) {
|
|
72
|
+
const data = cellData[i];
|
|
73
|
+
if (data.sticky === 'right') {
|
|
74
|
+
configs.push({
|
|
75
|
+
index: data.index,
|
|
76
|
+
sticky: 'right',
|
|
77
|
+
width: data.width,
|
|
78
|
+
offset: rightOffset,
|
|
79
|
+
});
|
|
80
|
+
rightOffset += data.width;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
// Add non-sticky columns
|
|
84
|
+
for (const data of cellData) {
|
|
85
|
+
if (data.sticky !== 'left' && data.sticky !== 'right') {
|
|
86
|
+
configs.push({
|
|
87
|
+
index: data.index,
|
|
88
|
+
sticky: null,
|
|
89
|
+
width: data.width,
|
|
90
|
+
offset: 0,
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
// Sort by index
|
|
95
|
+
configs.sort((a, b) => a.index - b.index);
|
|
96
|
+
table.updateColumnConfigs(configs);
|
|
97
|
+
}
|
|
98
|
+
render() {
|
|
99
|
+
return html `<slot></slot>`;
|
|
100
|
+
}
|
|
101
|
+
};
|
|
102
|
+
BReportTableHeader.styles = css `
|
|
103
|
+
:host {
|
|
104
|
+
display: table-header-group;
|
|
105
|
+
}
|
|
106
|
+
`;
|
|
107
|
+
__decorate([
|
|
108
|
+
property({ type: Boolean, reflect: true })
|
|
109
|
+
], BReportTableHeader.prototype, "sticky", void 0);
|
|
110
|
+
BReportTableHeader = __decorate([
|
|
111
|
+
customElement('b-report-table-header')
|
|
112
|
+
], BReportTableHeader);
|
|
113
|
+
export { BReportTableHeader };
|
|
114
|
+
//# sourceMappingURL=b-report-table-header.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"b-report-table-header.js","sourceRoot":"","sources":["../../src/b-report-table/b-report-table-header.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC5C,OAAO,EAAE,aAAa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CAAC,KAAK;oBACjB,MAAM,EAAE,IAAI;oBACZ,KAAK,EAAE,IAAI,CAAC,KAAK;oBACjB,MAAM,EAAE,CAAC;iBACV,CAAC,CAAC;YACL,CAAC;QACH,CAAC;QAED,gBAAgB;QAChB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC;QAE1C,KAAK,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAC;IACrC,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,CAAA,eAAe,CAAC;IAC7B,CAAC;;AAzGM,yBAAM,GAAG,GAAG,CAAA;;;;GAIlB,AAJY,CAIX;AAMF;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;kDAC5B;AAXJ,kBAAkB;IAD9B,aAAa,CAAC,uBAAuB,CAAC;GAC1B,kBAAkB,CA2G9B"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
/**
|
|
3
|
+
* A row within the table body.
|
|
4
|
+
*
|
|
5
|
+
* @slot - Default slot for cells (b-report-table-cell)
|
|
6
|
+
*/
|
|
7
|
+
export declare class BReportTableRow extends LitElement {
|
|
8
|
+
static styles: import("lit").CSSResult;
|
|
9
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
10
|
+
}
|
|
11
|
+
declare global {
|
|
12
|
+
interface HTMLElementTagNameMap {
|
|
13
|
+
'b-report-table-row': BReportTableRow;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=b-report-table-row.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"b-report-table-row.d.ts","sourceRoot":"","sources":["../../src/b-report-table/b-report-table-row.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAG5C;;;;GAIG;AACH,qBACa,eAAgB,SAAQ,UAAU;IAC7C,MAAM,CAAC,MAAM,0BAQX;IAEF,MAAM;CAGP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,oBAAoB,EAAE,eAAe,CAAC;KACvC;CACF"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { LitElement, html, css } from 'lit';
|
|
8
|
+
import { customElement } from 'lit/decorators.js';
|
|
9
|
+
/**
|
|
10
|
+
* A row within the table body.
|
|
11
|
+
*
|
|
12
|
+
* @slot - Default slot for cells (b-report-table-cell)
|
|
13
|
+
*/
|
|
14
|
+
let BReportTableRow = class BReportTableRow extends LitElement {
|
|
15
|
+
render() {
|
|
16
|
+
return html `<slot></slot>`;
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
BReportTableRow.styles = css `
|
|
20
|
+
:host {
|
|
21
|
+
display: table-row;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
:host(:hover) {
|
|
25
|
+
background: #f8fafc;
|
|
26
|
+
}
|
|
27
|
+
`;
|
|
28
|
+
BReportTableRow = __decorate([
|
|
29
|
+
customElement('b-report-table-row')
|
|
30
|
+
], BReportTableRow);
|
|
31
|
+
export { BReportTableRow };
|
|
32
|
+
//# sourceMappingURL=b-report-table-row.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"b-report-table-row.js","sourceRoot":"","sources":["../../src/b-report-table/b-report-table-row.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD;;;;GAIG;AAEI,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,UAAU;IAW7C,MAAM;QACJ,OAAO,IAAI,CAAA,eAAe,CAAC;IAC7B,CAAC;;AAZM,sBAAM,GAAG,GAAG,CAAA;;;;;;;;GAQlB,AARY,CAQX;AATS,eAAe;IAD3B,aAAa,CAAC,oBAAoB,CAAC;GACvB,eAAe,CAc3B"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
export interface ColumnStickyConfig {
|
|
3
|
+
index: number;
|
|
4
|
+
sticky: 'left' | 'right' | null;
|
|
5
|
+
width: number;
|
|
6
|
+
offset: number;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* A report table component with support for sticky headers, footers, and columns.
|
|
10
|
+
*
|
|
11
|
+
* @slot header - The table header (b-report-table-header)
|
|
12
|
+
* @slot - Default slot for table body (b-report-table-body)
|
|
13
|
+
* @slot footer - The table footer (b-report-table-footer)
|
|
14
|
+
*/
|
|
15
|
+
export declare class BReportTable extends LitElement {
|
|
16
|
+
static styles: import("lit").CSSResult;
|
|
17
|
+
private _columnConfigs;
|
|
18
|
+
get columnConfigs(): ColumnStickyConfig[];
|
|
19
|
+
/**
|
|
20
|
+
* Updates the sticky column configuration based on header cells.
|
|
21
|
+
* This is called by the header component when it's connected or updated.
|
|
22
|
+
*/
|
|
23
|
+
updateColumnConfigs(configs: ColumnStickyConfig[]): void;
|
|
24
|
+
private _notifyChildren;
|
|
25
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
26
|
+
}
|
|
27
|
+
declare global {
|
|
28
|
+
interface HTMLElementTagNameMap {
|
|
29
|
+
'b-report-table': BReportTable;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=b-report-table.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"b-report-table.d.ts","sourceRoot":"","sources":["../../src/b-report-table/b-report-table.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAG5C,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,GAAG,OAAO,GAAG,IAAI,CAAC;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;;;;;GAMG;AACH,qBACa,YAAa,SAAQ,UAAU;IAC1C,MAAM,CAAC,MAAM,0BAgBX;IAGF,OAAO,CAAC,cAAc,CAA4B;IAElD,IAAI,aAAa,IAAI,kBAAkB,EAAE,CAExC;IAED;;;OAGG;IACH,mBAAmB,CAAC,OAAO,EAAE,kBAAkB,EAAE,GAAG,IAAI;IAKxD,OAAO,CAAC,eAAe;IAWvB,MAAM;CASP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,gBAAgB,EAAE,YAAY,CAAC;KAChC;CACF"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { LitElement, html, css } from 'lit';
|
|
8
|
+
import { customElement, state } from 'lit/decorators.js';
|
|
9
|
+
/**
|
|
10
|
+
* A report table component with support for sticky headers, footers, and columns.
|
|
11
|
+
*
|
|
12
|
+
* @slot header - The table header (b-report-table-header)
|
|
13
|
+
* @slot - Default slot for table body (b-report-table-body)
|
|
14
|
+
* @slot footer - The table footer (b-report-table-footer)
|
|
15
|
+
*/
|
|
16
|
+
let BReportTable = class BReportTable extends LitElement {
|
|
17
|
+
constructor() {
|
|
18
|
+
super(...arguments);
|
|
19
|
+
this._columnConfigs = [];
|
|
20
|
+
}
|
|
21
|
+
get columnConfigs() {
|
|
22
|
+
return this._columnConfigs;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Updates the sticky column configuration based on header cells.
|
|
26
|
+
* This is called by the header component when it's connected or updated.
|
|
27
|
+
*/
|
|
28
|
+
updateColumnConfigs(configs) {
|
|
29
|
+
this._columnConfigs = configs;
|
|
30
|
+
this._notifyChildren();
|
|
31
|
+
}
|
|
32
|
+
_notifyChildren() {
|
|
33
|
+
// Dispatch event to notify all children of column config changes
|
|
34
|
+
this.dispatchEvent(new CustomEvent('column-config-change', {
|
|
35
|
+
detail: { configs: this._columnConfigs },
|
|
36
|
+
bubbles: true,
|
|
37
|
+
composed: true,
|
|
38
|
+
}));
|
|
39
|
+
}
|
|
40
|
+
render() {
|
|
41
|
+
return html `
|
|
42
|
+
<table role="table">
|
|
43
|
+
<slot name="header"></slot>
|
|
44
|
+
<slot></slot>
|
|
45
|
+
<slot name="footer"></slot>
|
|
46
|
+
</table>
|
|
47
|
+
`;
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
BReportTable.styles = css `
|
|
51
|
+
:host {
|
|
52
|
+
display: block;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
table {
|
|
56
|
+
width: 100%;
|
|
57
|
+
border-collapse: separate;
|
|
58
|
+
border-spacing: 0;
|
|
59
|
+
font-family: system-ui, -apple-system, sans-serif;
|
|
60
|
+
font-size: 14px;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
::slotted(*) {
|
|
64
|
+
display: table-row-group;
|
|
65
|
+
}
|
|
66
|
+
`;
|
|
67
|
+
__decorate([
|
|
68
|
+
state()
|
|
69
|
+
], BReportTable.prototype, "_columnConfigs", void 0);
|
|
70
|
+
BReportTable = __decorate([
|
|
71
|
+
customElement('b-report-table')
|
|
72
|
+
], BReportTable);
|
|
73
|
+
export { BReportTable };
|
|
74
|
+
//# sourceMappingURL=b-report-table.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"b-report-table.js","sourceRoot":"","sources":["../../src/b-report-table/b-report-table.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AASzD;;;;;;GAMG;AAEI,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,UAAU;IAArC;;QAoBG,mBAAc,GAAyB,EAAE,CAAC;IAmCpD,CAAC;IAjCC,IAAI,aAAa;QACf,OAAO,IAAI,CAAC,cAAc,CAAC;IAC7B,CAAC;IAED;;;OAGG;IACH,mBAAmB,CAAC,OAA6B;QAC/C,IAAI,CAAC,cAAc,GAAG,OAAO,CAAC;QAC9B,IAAI,CAAC,eAAe,EAAE,CAAC;IACzB,CAAC;IAEO,eAAe;QACrB,iEAAiE;QACjE,IAAI,CAAC,aAAa,CAChB,IAAI,WAAW,CAAC,sBAAsB,EAAE;YACtC,MAAM,EAAE,EAAE,OAAO,EAAE,IAAI,CAAC,cAAc,EAAE;YACxC,OAAO,EAAE,IAAI;YACb,QAAQ,EAAE,IAAI;SACf,CAAC,CACH,CAAC;IACJ,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,CAAA;;;;;;KAMV,CAAC;IACJ,CAAC;;AArDM,mBAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;GAgBlB,AAhBY,CAgBX;AAGM;IADP,KAAK,EAAE;oDAC0C;AApBvC,YAAY;IADxB,aAAa,CAAC,gBAAgB,CAAC;GACnB,YAAY,CAuDxB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export { BReportTable } from './b-report-table.js';
|
|
2
|
+
export { BReportTableHeader } from './b-report-table-header.js';
|
|
3
|
+
export { BReportTableHeaderRow } from './b-report-table-header-row.js';
|
|
4
|
+
export { BReportTableHeaderCell } from './b-report-table-header-cell.js';
|
|
5
|
+
export { BReportTableBody } from './b-report-table-body.js';
|
|
6
|
+
export { BReportTableRow } from './b-report-table-row.js';
|
|
7
|
+
export { BReportTableCell } from './b-report-table-cell.js';
|
|
8
|
+
export { BReportTableFooter } from './b-report-table-footer.js';
|
|
9
|
+
export { BReportTableFooterRow } from './b-report-table-footer-row.js';
|
|
10
|
+
export { BReportTableFooterCell } from './b-report-table-footer-cell.js';
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/b-report-table/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AACvE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AACzE,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AACvE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export { BReportTable } from './b-report-table.js';
|
|
2
|
+
export { BReportTableHeader } from './b-report-table-header.js';
|
|
3
|
+
export { BReportTableHeaderRow } from './b-report-table-header-row.js';
|
|
4
|
+
export { BReportTableHeaderCell } from './b-report-table-header-cell.js';
|
|
5
|
+
export { BReportTableBody } from './b-report-table-body.js';
|
|
6
|
+
export { BReportTableRow } from './b-report-table-row.js';
|
|
7
|
+
export { BReportTableCell } from './b-report-table-cell.js';
|
|
8
|
+
export { BReportTableFooter } from './b-report-table-footer.js';
|
|
9
|
+
export { BReportTableFooterRow } from './b-report-table-footer-row.js';
|
|
10
|
+
export { BReportTableFooterCell } from './b-report-table-footer-cell.js';
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/b-report-table/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AACvE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AACzE,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AACvE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,gCAAgC,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,oDAAoD;AACpD,cAAc,gCAAgC,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@beaconsoftware/web-components",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Beacon Web Components - All components bundle",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"module": "dist/index.js",
|
|
8
|
+
"types": "dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"import": "./dist/index.js"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"dist",
|
|
17
|
+
"src"
|
|
18
|
+
],
|
|
19
|
+
"scripts": {
|
|
20
|
+
"build": "tsc",
|
|
21
|
+
"build:watch": "tsc --watch",
|
|
22
|
+
"clean": "rm -rf dist"
|
|
23
|
+
},
|
|
24
|
+
"dependencies": {
|
|
25
|
+
"@beaconsoftware/b-report-table": "*"
|
|
26
|
+
},
|
|
27
|
+
"devDependencies": {
|
|
28
|
+
"typescript": "^5.3.0"
|
|
29
|
+
},
|
|
30
|
+
"keywords": [
|
|
31
|
+
"web-components",
|
|
32
|
+
"lit",
|
|
33
|
+
"beacon"
|
|
34
|
+
],
|
|
35
|
+
"license": "MIT",
|
|
36
|
+
"publishConfig": {
|
|
37
|
+
"access": "public"
|
|
38
|
+
}
|
|
39
|
+
}
|
package/src/index.ts
ADDED