@iyulab/data-components 0.3.0 → 0.3.1

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.
@@ -1,6 +1,6 @@
1
- import { css } from 'lit';
2
-
3
- const styles = css`
1
+ import { css } from "lit";
2
+ //#region src/components/simple-sheet/USimpleSheet.styles.ts
3
+ var styles = css`
4
4
  :host {
5
5
  display: block;
6
6
  width: 100%;
@@ -402,5 +402,5 @@ const styles = css`
402
402
  color: var(--u-txt-color-weak, #8A8A8A);
403
403
  }
404
404
  `;
405
-
405
+ //#endregion
406
406
  export { styles };
@@ -1,8 +1,75 @@
1
- import { URichTable } from './URichTable.component.js';
1
+ import { LitElement, TemplateResult } from 'lit';
2
+ import { ColumnDef } from './types.js';
3
+ export declare class URichTable extends LitElement {
4
+ static styles: import('lit').CSSResult;
5
+ columns: ColumnDef[];
6
+ data: Record<string, unknown>[];
7
+ totalCount: number;
8
+ pageSize: number;
9
+ currentPage: number;
10
+ loading: boolean;
11
+ emptyMessage: string;
12
+ selectable: boolean;
13
+ editable: boolean;
14
+ addable: boolean;
15
+ filterable: boolean;
16
+ expandable: boolean;
17
+ detailRenderer?: (row: Record<string, unknown>) => TemplateResult;
18
+ private selectedIds;
19
+ private focusedCell;
20
+ private editingCell;
21
+ private editValue;
22
+ private expandedIds;
23
+ private sort;
24
+ private filters;
25
+ private validationErrors;
26
+ private rowErrors;
27
+ revertRow(_rowId: string): void;
28
+ setRowError(rowId: string, message: string): void;
29
+ clearRowError(rowId: string): void;
30
+ getSelectedRows(): Record<string, unknown>[];
31
+ render(): TemplateResult;
32
+ private _renderToolbar;
33
+ private _renderHeader;
34
+ private _renderFilterRow;
35
+ private _renderBody;
36
+ private _renderCell;
37
+ private _renderCellContent;
38
+ private _renderNewRow;
39
+ private _renderPagination;
40
+ private _onSelectAll;
41
+ private _onRowSelect;
42
+ private _lastSelectedIndex;
43
+ private _onShiftSelect;
44
+ private _onSortClick;
45
+ private _onFilterChange;
46
+ private _onCellClick;
47
+ private _onCellDblClick;
48
+ private _onEditKeyDown;
49
+ private _onCellEditConfirm;
50
+ private _onExpandToggle;
51
+ private _onAddRowClick;
52
+ private _onNewRowFocus;
53
+ private _onNewRowKeyDown;
54
+ private _onRowMenu;
55
+ private _onPageChange;
56
+ private _onPageSizeChange;
57
+ private _colSpan;
58
+ private _getOptionLabel;
59
+ private _getPageNumbers;
60
+ private _moveToNextEditableCell;
61
+ private _fireSelectionChange;
62
+ connectedCallback(): void;
63
+ disconnectedCallback(): void;
64
+ private _onGlobalKeyDown;
65
+ private _handleCopy;
66
+ private _handlePaste;
67
+ private _moveFocus;
68
+ private _selectAll;
69
+ static define(tagName?: string): void;
70
+ }
2
71
  declare global {
3
72
  interface HTMLElementTagNameMap {
4
73
  'u-rich-table': URichTable;
5
74
  }
6
75
  }
7
- export { URichTable };
8
- export type { ColumnDef, CellPosition, SortState, FilterState, RichTableEventMap } from './types.js';