monkey-style-guide 21.2.7 → 21.2.8

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.
Files changed (30) hide show
  1. package/README.md +24 -24
  2. package/assets/scss/autocomplete/_index.scss +6 -6
  3. package/assets/scss/autocomplete/_styles.scss +149 -149
  4. package/assets/scss/directives/_badge.scss +48 -48
  5. package/assets/scss/directives/_index.scss +8 -8
  6. package/assets/scss/directives/_popover.scss +102 -102
  7. package/assets/scss/directives/_styles.scss +99 -99
  8. package/assets/scss/input/_index.scss +6 -6
  9. package/assets/scss/input/_styles.scss +67 -67
  10. package/assets/scss/partials/_breakpoints.scss +145 -145
  11. package/assets/scss/partials/_grid-system.scss +5069 -5069
  12. package/assets/scss/partials/_helper-classes.scss +373 -373
  13. package/assets/scss/partials/_icons.scss +38 -38
  14. package/assets/scss/partials/_index.scss +14 -14
  15. package/assets/scss/partials/_popover.scss +3 -3
  16. package/assets/scss/partials/_scrollbars.scss +29 -29
  17. package/assets/scss/partials/_skeleton-loading.scss +95 -95
  18. package/assets/scss/partials/_style-reset.scss +191 -191
  19. package/assets/scss/partials/_variables.scss +95 -95
  20. package/assets/scss/table/_index.scss +6 -6
  21. package/assets/scss/table/_styles.scss +11 -11
  22. package/assets/scss/theme.scss +14 -14
  23. package/assets/scss/typography/_index.scss +6 -6
  24. package/assets/scss/typography/_styles.scss +60 -60
  25. package/fesm2022/monkey-style-guide.mjs +2658 -2049
  26. package/fesm2022/monkey-style-guide.mjs.map +1 -1
  27. package/monkey-style-guide-21.2.8.tgz +0 -0
  28. package/package.json +1 -1
  29. package/types/monkey-style-guide.d.ts +351 -103
  30. package/monkey-style-guide-21.2.7.tgz +0 -0
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "monkey-style-guide",
3
- "version": "21.2.7",
3
+ "version": "21.2.8",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": "^21.2.4",
6
6
  "@angular/cdk": "^21.2.2",
@@ -10,6 +10,7 @@ import { CurrencyPipe } from '@angular/common';
10
10
  import { BooleanInput } from '@angular/cdk/coercion';
11
11
  import { OverlayRef, Overlay } from '@angular/cdk/overlay';
12
12
  import { ComponentType } from '@angular/cdk/portal';
13
+ import { VirtualScrollStrategy, CdkVirtualScrollViewport } from '@angular/cdk/scrolling';
13
14
 
14
15
  declare class MonkeyAccordionComponent {
15
16
  open: boolean;
@@ -1517,6 +1518,83 @@ declare class MonkeyRadioButtonComponent implements MonkeyFormFieldControl, Cont
1517
1518
  static ngAcceptInputType_required: unknown;
1518
1519
  }
1519
1520
 
1521
+ type MonkeyScrollbarOrientation = 'horizontal' | 'vertical';
1522
+ /** `small` = 8px track (menus) · `medium` = 16px (page bar, what the table uses). */
1523
+ type MonkeyScrollbarSize = 'small' | 'medium';
1524
+ /**
1525
+ * A DRAWN scrollbar, not the native one styled — a native scrollbar can't
1526
+ * live outside the element that scrolls (e.g. below a table's rows, next to
1527
+ * its footer), and cross-browser track styling (radius, border) is
1528
+ * inconsistent enough that matching a design exactly isn't reliable with
1529
+ * `::-webkit-scrollbar`/`scrollbar-color` alone.
1530
+ *
1531
+ * It does NOT replace real scrolling: `target` keeps its own
1532
+ * `overflow: auto`, so keyboard, wheel and trackpad scrolling all keep
1533
+ * working — this is a draggable mirror drawn on top. That's also why it's
1534
+ * `aria-hidden`: a screen reader user scrolls the real region, and a second
1535
+ * widget announcing the same position would only add noise.
1536
+ */
1537
+ declare class MonkeyScrollbarComponent implements OnDestroy {
1538
+ private readonly _zone;
1539
+ readonly orientation: i0.InputSignal<MonkeyScrollbarOrientation>;
1540
+ readonly size: i0.InputSignal<MonkeyScrollbarSize>;
1541
+ /** The element that actually scrolls. */
1542
+ readonly target: i0.InputSignal<HTMLElement>;
1543
+ private readonly trackEl;
1544
+ /** Scrollable length of the content, in px. */
1545
+ private readonly total;
1546
+ /** Visible length of the viewport, in px. */
1547
+ private readonly visible;
1548
+ /** How far the target is scrolled, in px. */
1549
+ private readonly scrolled;
1550
+ /** Length of the track the thumb slides along, in px. */
1551
+ private readonly trackLength;
1552
+ protected readonly scrollable: i0.Signal<boolean>;
1553
+ protected readonly thumbSize: i0.Signal<string>;
1554
+ /**
1555
+ * A px distance, applied as a `translate`, not as `left`/`top`: moving the
1556
+ * thumb then costs a composited transform instead of a layout pass on every
1557
+ * scroll frame. It has to be px rather than a percentage of the thumb
1558
+ * because the thumb has a minimum length — once that kicks in, a
1559
+ * percentage of its own (clamped) size no longer maps to track distance.
1560
+ */
1561
+ protected readonly thumbOffset: i0.Signal<string>;
1562
+ private resizeObserver?;
1563
+ private observedTarget?;
1564
+ /** Pending animation frame, 0 when none is queued. */
1565
+ private frame;
1566
+ /** Whether the cached lengths need re-reading on the next frame. */
1567
+ private sizeStale;
1568
+ private readonly onScroll;
1569
+ /** Drag state. `null` = nobody is dragging. */
1570
+ private drag;
1571
+ constructor();
1572
+ ngOnDestroy(): void;
1573
+ private attach;
1574
+ private detach;
1575
+ /**
1576
+ * Scroll events fire far more often than the screen refreshes, and each
1577
+ * measurement reads layout. Coalescing to one read per frame is what keeps
1578
+ * a long table from thrashing layout while it scrolls.
1579
+ */
1580
+ private schedule;
1581
+ private measure;
1582
+ protected onPointerDown(event: PointerEvent): void;
1583
+ protected onPointerMove(event: PointerEvent): void;
1584
+ protected onPointerUp(event: PointerEvent): void;
1585
+ /** Clicking the track outside the thumb jumps the content there, centered on the click. */
1586
+ protected onTrackPointerDown(event: PointerEvent): void;
1587
+ /**
1588
+ * Manual re-measure. Public on purpose: the automatic triggers (scroll,
1589
+ * ResizeObserver on the target and its children) cover what the browser
1590
+ * reports on its own — this is the escape hatch for what it doesn't, e.g.
1591
+ * a target swapped out from under the component.
1592
+ */
1593
+ remeasure(): void;
1594
+ static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyScrollbarComponent, never>;
1595
+ static ɵcmp: i0.ɵɵComponentDeclaration<MonkeyScrollbarComponent, "monkey-scrollbar", never, { "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "target": { "alias": "target"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
1596
+ }
1597
+
1520
1598
  declare class MonkeySecurityLevelComponent {
1521
1599
  label: i0.InputSignal<string | undefined>;
1522
1600
  score: i0.InputSignal<number>;
@@ -1727,84 +1805,98 @@ declare class MonkeyPaginationSizeComponent {
1727
1805
  * This style guide was developed by Monkey Exchange Team
1728
1806
  * MIT Licence
1729
1807
  ************************* */
1730
-
1731
- declare class MonkeyTableComponent implements AfterContentInit, OnChanges {
1732
- scroll: MonkeyTableScrollConfig;
1733
- loading: boolean;
1734
- loadingRef: TemplateRef<any>;
1735
- sortChange: EventEmitter<any>;
1736
- private _headerEl;
1737
- private _tableHeaderEl;
1738
- private _tableContentEl;
1739
- private _tableLoadingEl;
1740
- private _tableScrollEl;
1741
- private _paginationActionChildren;
1742
- private _paginationSizeChildren;
1743
- private _sortOptions;
1744
- private _loadingInitialized;
1745
- stateChanges: EventEmitter<any>;
1746
- private updateScrollStyle;
1747
- private initializeComponents;
1748
- private initializeLoadingComponent;
1749
- ngAfterContentInit(): void;
1750
- updateSortableOptions(name: string, sortable: string): void;
1751
- ngOnChanges(changes: SimpleChanges): void;
1752
- static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyTableComponent, never>;
1753
- static ɵcmp: i0.ɵɵComponentDeclaration<MonkeyTableComponent, "monkey-table, table[monkey-table]", ["monkeyTable"], { "scroll": { "alias": "scroll"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "loadingRef": { "alias": "loadingRef"; "required": false; }; }, { "sortChange": "sortChange"; }, ["_paginationActionChildren", "_paginationSizeChildren"], ["thead", "tbody", "monkey-pagination-size", "monkey-pagination-label", "monkey-pagination-action"], false, never>;
1808
+ type SortDirection = 'ascending' | 'descending';
1809
+ interface SortState {
1810
+ column: string;
1811
+ direction: SortDirection;
1812
+ }
1813
+ type SelectionState = 'none' | 'partial' | 'all';
1814
+ type ColumnAlign = 'start' | 'end';
1815
+ type ColumnPinned = 'none' | 'left' | 'right';
1816
+ interface MonkeyTableColumnState {
1817
+ name: string;
1818
+ hidden: boolean;
1819
+ pinned: ColumnPinned;
1820
+ }
1821
+ declare function sameColumnState(a: readonly MonkeyTableColumnState[], b: readonly MonkeyTableColumnState[]): boolean;
1822
+ declare function ariaSortOf(sort: SortState | null, column: string): SortDirection | null;
1823
+ declare function interpolate(template: string, values: Record<string, string | number>): string;
1824
+ declare function toggleKey(current: ReadonlySet<string>, key: string): ReadonlySet<string>;
1825
+ declare function selectionState(current: ReadonlySet<string>, keys: readonly string[]): SelectionState;
1826
+ declare function addKeys(current: ReadonlySet<string>, keys: readonly string[], limit?: number): ReadonlySet<string>;
1827
+ declare function removeKeys(current: ReadonlySet<string>, keys: readonly string[]): ReadonlySet<string>;
1828
+ declare function sortByOrder<T>(items: readonly T[], nameOf: (item: T) => string, order: readonly string[]): T[];
1829
+ declare function mergeOrder(previous: readonly string[], next: readonly string[]): string[];
1830
+ interface RowMetrics {
1831
+ count: number;
1832
+ rowHeight: number;
1833
+ detailHeight: number;
1834
+ openIndices: readonly number[];
1835
+ }
1836
+ declare function totalHeight(metrics: RowMetrics): number;
1837
+ declare function offsetOfIndex(index: number, metrics: RowMetrics): number;
1838
+ declare function indexAtOffset(offset: number, metrics: RowMetrics): number;
1839
+ declare function toPx(width: string | null | undefined): number;
1840
+
1841
+ interface MonkeyTableCellContext<T> {
1842
+ $implicit: T;
1843
+ row: T;
1844
+ index: number;
1845
+ first: boolean;
1846
+ last: boolean;
1754
1847
  }
1755
-
1756
- /** ************************
1757
- * Copyright Monkey Exchange. All Rights Reserved
1758
- * This style guide was developed by Monkey Exchange Team
1759
- * MIT Licence
1760
- ************************* */
1761
-
1762
- declare class MonkeyColumnChecked implements OnInit, AfterViewInit, OnChanges, OnDestroy {
1763
- private el;
1764
- private renderer;
1765
- private viewContainerRef;
1766
- table: MonkeyTableComponent;
1767
- checked: boolean;
1768
- disabled: boolean;
1769
- checkedChange: EventEmitter<any>;
1770
- private _cdr;
1771
- private _injector;
1772
- private _subscriptions;
1773
- checkboxRef: ComponentRef<MonkeyCheckboxComponent>;
1774
- constructor(el: ElementRef, renderer: Renderer2, viewContainerRef: ViewContainerRef, table: MonkeyTableComponent);
1775
- private renderCheckbox;
1776
- private handleDisableFromStateChanges;
1777
- ngOnInit(): void;
1778
- ngAfterViewInit(): void;
1779
- ngOnChanges(changes: SimpleChanges): void;
1780
- initializeComponent(checked: boolean, disabled: boolean): void;
1781
- ngOnDestroy(): void;
1782
- static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyColumnChecked, [null, null, null, { optional: true; }]>;
1783
- static ɵdir: i0.ɵɵDirectiveDeclaration<MonkeyColumnChecked, "[mkChecked]", never, { "checked": { "alias": "mkChecked"; "required": true; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "checkedChange": "checkedChange"; }, never, never, false, never>;
1848
+ type MonkeyTableSortKind = 'text' | 'number' | 'date';
1849
+ declare class MonkeyTableCellDirective<T> {
1850
+ readonly template: TemplateRef<MonkeyTableCellContext<T>>;
1851
+ static ngTemplateContextGuard<T>(_dir: MonkeyTableCellDirective<T>, _ctx: unknown): _ctx is MonkeyTableCellContext<T>;
1852
+ static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyTableCellDirective<any>, never>;
1853
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MonkeyTableCellDirective<any>, "ng-template[mkCell]", never, {}, {}, never, never, true, never>;
1854
+ }
1855
+ declare class MonkeyTableHeaderCellDirective {
1856
+ readonly template: TemplateRef<void>;
1857
+ static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyTableHeaderCellDirective, never>;
1858
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MonkeyTableHeaderCellDirective, "ng-template[mkHeaderCell]", never, {}, {}, never, never, true, never>;
1859
+ }
1860
+ declare class MonkeyTableColumnDirective<T = any> {
1861
+ readonly name: i0.InputSignal<string>;
1862
+ readonly label: i0.InputSignal<string>;
1863
+ readonly labelHidden: i0.InputSignalWithTransform<boolean, unknown>;
1864
+ readonly unit: i0.InputSignal<string>;
1865
+ readonly width: i0.InputSignal<string>;
1866
+ readonly align: i0.InputSignal<ColumnAlign>;
1867
+ readonly sortable: i0.InputSignalWithTransform<boolean, unknown>;
1868
+ readonly sortKind: i0.InputSignal<MonkeyTableSortKind>;
1869
+ readonly hideable: i0.InputSignalWithTransform<boolean, unknown>;
1870
+ readonly movable: i0.InputSignalWithTransform<boolean, unknown>;
1871
+ readonly pinnable: i0.InputSignalWithTransform<boolean, unknown>;
1872
+ readonly pinned: i0.ModelSignal<ColumnPinned>;
1873
+ readonly hidden: i0.ModelSignal<boolean>;
1874
+ readonly cell: i0.Signal<MonkeyTableCellDirective<any> | undefined>;
1875
+ readonly headerCell: i0.Signal<MonkeyTableHeaderCellDirective | undefined>;
1876
+ static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyTableColumnDirective<any>, never>;
1877
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MonkeyTableColumnDirective<any>, "ng-container[mkColumn]", never, { "name": { "alias": "mkColumn"; "required": true; "isSignal": true; }; "label": { "alias": "label"; "required": true; "isSignal": true; }; "labelHidden": { "alias": "labelHidden"; "required": false; "isSignal": true; }; "unit": { "alias": "unit"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "align": { "alias": "align"; "required": false; "isSignal": true; }; "sortable": { "alias": "sortable"; "required": false; "isSignal": true; }; "sortKind": { "alias": "sortKind"; "required": false; "isSignal": true; }; "hideable": { "alias": "hideable"; "required": false; "isSignal": true; }; "movable": { "alias": "movable"; "required": false; "isSignal": true; }; "pinnable": { "alias": "pinnable"; "required": false; "isSignal": true; }; "pinned": { "alias": "pinned"; "required": false; "isSignal": true; }; "hidden": { "alias": "hidden"; "required": false; "isSignal": true; }; }, { "pinned": "pinnedChange"; "hidden": "hiddenChange"; }, ["cell", "headerCell"], never, true, never>;
1878
+ }
1879
+ declare class MonkeyTableRowDetailDirective<T> {
1880
+ readonly template: TemplateRef<{
1881
+ $implicit: T;
1882
+ row: T;
1883
+ }>;
1884
+ static ngTemplateContextGuard<T>(_dir: MonkeyTableRowDetailDirective<T>, _ctx: unknown): _ctx is {
1885
+ $implicit: T;
1886
+ row: T;
1887
+ };
1888
+ static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyTableRowDetailDirective<any>, never>;
1889
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MonkeyTableRowDetailDirective<any>, "ng-template[mkRowDetail]", never, {}, {}, never, never, true, never>;
1784
1890
  }
1785
-
1786
- /** ************************
1787
- * Copyright Monkey Exchange. All Rights Reserved
1788
- * This style guide was developed by Monkey Exchange Team
1789
- * MIT Licence
1790
- ************************* */
1791
-
1792
- declare class MonkeyColumnExpansible implements OnInit, OnDestroy {
1793
- private el;
1794
- private renderer;
1795
- table: MonkeyTableComponent;
1796
- expansionChange: EventEmitter<any>;
1797
- private _opened;
1798
- private _subscriptions;
1799
- private _enableAnimation;
1800
- disabled: boolean;
1801
- constructor(el: ElementRef, renderer: Renderer2, table: MonkeyTableComponent);
1802
- private createSvgElement;
1803
- ngOnInit(): void;
1804
- onClick(): void;
1805
- ngOnDestroy(): void;
1806
- static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyColumnExpansible, [null, null, { optional: true; }]>;
1807
- static ɵdir: i0.ɵɵDirectiveDeclaration<MonkeyColumnExpansible, "[mkExpansible]", never, {}, { "expansionChange": "expansionChange"; }, never, never, false, never>;
1891
+ declare class MonkeyTableEmptyDirective {
1892
+ readonly template: TemplateRef<void>;
1893
+ static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyTableEmptyDirective, never>;
1894
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MonkeyTableEmptyDirective, "ng-template[mkEmpty]", never, {}, {}, never, never, true, never>;
1895
+ }
1896
+ declare class MonkeyTableLoadingDirective {
1897
+ readonly template: TemplateRef<void>;
1898
+ static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyTableLoadingDirective, never>;
1899
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MonkeyTableLoadingDirective, "ng-template[mkLoading]", never, {}, {}, never, never, true, never>;
1808
1900
  }
1809
1901
 
1810
1902
  /** ************************
@@ -1813,33 +1905,189 @@ declare class MonkeyColumnExpansible implements OnInit, OnDestroy {
1813
1905
  * MIT Licence
1814
1906
  ************************* */
1815
1907
 
1816
- declare class MonkeyColumnSortable implements OnInit, OnDestroy {
1817
- private el;
1818
- private renderer;
1819
- table: MonkeyTableComponent;
1820
- name: string;
1821
- private _sortableDirection;
1822
- private subscriptions;
1823
- get disabled(): boolean;
1824
- constructor(el: ElementRef, renderer: Renderer2, table: MonkeyTableComponent);
1825
- private createSvgElement;
1826
- ngOnInit(): void;
1827
- onClick(): void;
1828
- ngOnDestroy(): void;
1829
- static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyColumnSortable, [null, null, { optional: true; }]>;
1830
- static ɵdir: i0.ɵɵDirectiveDeclaration<MonkeyColumnSortable, "[mkSortable]", never, { "name": { "alias": "mkSortable"; "required": true; }; }, {}, never, never, false, never>;
1908
+ declare class MonkeyTableVirtualScroll implements VirtualScrollStrategy {
1909
+ private readonly _indexChange;
1910
+ readonly scrolledIndexChange: Observable<number>;
1911
+ private _viewport;
1912
+ private _metrics;
1913
+ private _buffer;
1914
+ attach(viewport: CdkVirtualScrollViewport): void;
1915
+ detach(): void;
1916
+ onContentScrolled(): void;
1917
+ onDataLengthChanged(): void;
1918
+ onContentRendered(): void;
1919
+ onRenderedOffsetChanged(): void;
1920
+ scrollToIndex(index: number, behavior: ScrollBehavior): void;
1921
+ setMetrics(metrics: RowMetrics, buffer: number): void;
1922
+ private update;
1923
+ }
1924
+
1925
+ type Column<T> = MonkeyTableColumnDirective<T>;
1926
+ interface SlotBase {
1927
+ key: string;
1928
+ width: string | null;
1929
+ px: number;
1930
+ pinned: ColumnPinned;
1931
+ offset: number;
1932
+ align: ColumnAlign;
1933
+ }
1934
+ type Slot<T> = (SlotBase & {
1935
+ kind: 'data';
1936
+ column: Column<T>;
1937
+ }) | (SlotBase & {
1938
+ kind: 'selection' | 'expand';
1939
+ column: null;
1940
+ });
1941
+ interface RowView<T> {
1942
+ row: T;
1943
+ key: string;
1944
+ index: number;
1945
+ selectable: boolean;
1831
1946
  }
1832
-
1833
- declare class MonkeyColumnStick {
1834
- position: 'left' | 'right';
1835
- static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyColumnStick, never>;
1836
- static ɵdir: i0.ɵɵDirectiveDeclaration<MonkeyColumnStick, "[mkStick]", never, { "position": { "alias": "mkStick"; "required": true; }; }, {}, never, never, false, never>;
1947
+ interface RenderRow<T> extends RowView<T> {
1948
+ selected: boolean;
1949
+ open: boolean;
1950
+ blockedReason: string | null;
1951
+ selectLabel: string;
1952
+ expandLabel: string;
1837
1953
  }
1838
-
1839
- declare class MonkeyTableModule {
1840
- static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyTableModule, never>;
1841
- static ɵmod: i0.ɵɵNgModuleDeclaration<MonkeyTableModule, [typeof MonkeyTableComponent, typeof MonkeyColumnStick, typeof MonkeyColumnChecked, typeof MonkeyColumnSortable, typeof MonkeyColumnExpansible], [typeof i2.CommonModule, typeof MonkeyButtonComponent, typeof MonkeyPaginationSizeComponent, typeof MonkeyPaginationLabelComponent, typeof MonkeyPaginationActionComponent], [typeof MonkeyTableComponent, typeof MonkeyColumnStick, typeof MonkeyColumnChecked, typeof MonkeyColumnSortable, typeof MonkeyColumnExpansible]>;
1842
- static ɵinj: i0.ɵɵInjectorDeclaration<MonkeyTableModule>;
1954
+ declare class MonkeyTableComponent<T> implements OnDestroy {
1955
+ readonly virtualStrategy: MonkeyTableVirtualScroll;
1956
+ private readonly _zone;
1957
+ private readonly _text;
1958
+ private readonly _columns;
1959
+ private readonly _columnByName;
1960
+ private readonly _visibleColumns;
1961
+ private readonly _selectableKeys;
1962
+ private readonly _selection;
1963
+ private readonly _narrow;
1964
+ private readonly _detailHeight;
1965
+ private readonly _headHeight;
1966
+ private readonly _host;
1967
+ private _scroller?;
1968
+ private _observer?;
1969
+ private _frame;
1970
+ private _sizeStale;
1971
+ private _clientWidth;
1972
+ private _scrollWidth;
1973
+ private readonly _layout;
1974
+ readonly rows: i0.InputSignal<readonly T[]>;
1975
+ readonly rowKey: i0.InputSignal<(row: T) => string>;
1976
+ readonly rowLabel: i0.InputSignal<((row: T) => string) | undefined>;
1977
+ readonly rowSelectable: i0.InputSignal<((row: T) => boolean) | undefined>;
1978
+ readonly ariaLabel: i0.InputSignal<string>;
1979
+ readonly caption: i0.InputSignal<string>;
1980
+ readonly selectionMode: i0.InputSignal<"none" | "multiple">;
1981
+ readonly selected: i0.ModelSignal<ReadonlySet<string>>;
1982
+ readonly maxSelected: i0.InputSignal<number>;
1983
+ readonly sort: i0.InputSignal<SortState | null>;
1984
+ readonly expandable: i0.InputSignalWithTransform<boolean, unknown>;
1985
+ readonly expanded: i0.ModelSignal<ReadonlySet<string>>;
1986
+ readonly reorderable: i0.InputSignalWithTransform<boolean, unknown>;
1987
+ readonly hideable: i0.InputSignalWithTransform<boolean, unknown>;
1988
+ readonly pinnable: i0.InputSignalWithTransform<boolean, unknown>;
1989
+ readonly rowHeight: i0.InputSignal<number>;
1990
+ readonly maxVisibleRows: i0.InputSignal<number | "none">;
1991
+ readonly virtualScroll: i0.InputSignal<"auto" | "off">;
1992
+ readonly columnOrder: i0.ModelSignal<readonly string[]>;
1993
+ readonly columnState: i0.InputSignal<readonly MonkeyTableColumnState[]>;
1994
+ readonly striped: i0.InputSignalWithTransform<boolean, unknown>;
1995
+ readonly loading: i0.InputSignalWithTransform<boolean, unknown>;
1996
+ readonly emptyText: i0.InputSignal<string>;
1997
+ readonly skeletonRows: i0.InputSignal<number | "auto">;
1998
+ readonly onSortChange: i0.OutputEmitterRef<SortState | null>;
1999
+ readonly onColumnHidden: i0.OutputEmitterRef<{
2000
+ name: string;
2001
+ label: string;
2002
+ }>;
2003
+ readonly onColumnStateChange: i0.OutputEmitterRef<MonkeyTableColumnState[]>;
2004
+ readonly onSelectionChange: i0.OutputEmitterRef<string[]>;
2005
+ readonly onExpandChange: i0.OutputEmitterRef<{
2006
+ row: T;
2007
+ key: string;
2008
+ expanded: boolean;
2009
+ }>;
2010
+ protected readonly emptyTemplate: i0.Signal<MonkeyTableEmptyDirective | undefined>;
2011
+ protected readonly loadingTemplate: i0.Signal<MonkeyTableLoadingDirective | undefined>;
2012
+ protected readonly rowDetailTemplate: i0.Signal<MonkeyTableRowDetailDirective<any> | undefined>;
2013
+ protected readonly plainScroller: i0.Signal<ElementRef<HTMLElement> | undefined>;
2014
+ protected readonly headClip: i0.Signal<ElementRef<HTMLElement> | undefined>;
2015
+ protected readonly virtualViewport: i0.Signal<CdkVirtualScrollViewport | undefined>;
2016
+ protected readonly scrollTarget: i0.Signal<HTMLElement | null>;
2017
+ private readonly _rowCap;
2018
+ protected readonly bounded: i0.Signal<boolean>;
2019
+ protected readonly virtual: i0.Signal<boolean>;
2020
+ protected readonly effectiveHeight: i0.Signal<string>;
2021
+ protected readonly rowMetrics: i0.Signal<{
2022
+ openIndices: number[];
2023
+ count: number;
2024
+ rowHeight: number;
2025
+ detailHeight: number;
2026
+ }>;
2027
+ protected readonly overflowing: i0.WritableSignal<boolean>;
2028
+ protected readonly atStart: i0.WritableSignal<boolean>;
2029
+ protected readonly atEnd: i0.WritableSignal<boolean>;
2030
+ protected readonly openMenu: i0.WritableSignal<string | null>;
2031
+ protected readonly slots: i0.Signal<Slot<T>[]>;
2032
+ protected readonly pinnedStartWidth: i0.Signal<number>;
2033
+ protected readonly pinnedEndWidth: i0.Signal<number>;
2034
+ protected readonly totalWidth: i0.Signal<number>;
2035
+ protected readonly allSelected: i0.Signal<boolean>;
2036
+ protected readonly someSelected: i0.Signal<boolean>;
2037
+ protected readonly atSelectionLimit: i0.Signal<boolean>;
2038
+ protected readonly hasSelectable: i0.Signal<boolean>;
2039
+ protected readonly rowViews: i0.Signal<RowView<T>[]>;
2040
+ protected readonly renderRows: i0.Signal<RenderRow<T>[]>;
2041
+ protected readonly skeletonRange: i0.Signal<number[]>;
2042
+ protected readonly labels: i0.Signal<{
2043
+ moveLeft: string;
2044
+ moveRight: string;
2045
+ hide: string;
2046
+ pin: string;
2047
+ unpin: string;
2048
+ selectAll: string;
2049
+ detail: string;
2050
+ limit: string;
2051
+ notSelectable: string;
2052
+ empty: string;
2053
+ }>;
2054
+ constructor();
2055
+ private word;
2056
+ private effectivePinned;
2057
+ private schedule;
2058
+ private cancelFrame;
2059
+ private measure;
2060
+ private closeMenuWhenColumnGone;
2061
+ private currentOrder;
2062
+ private currentColumnState;
2063
+ private commitSelection;
2064
+ private applyOrder;
2065
+ private restoreColumnState;
2066
+ ngOnDestroy(): void;
2067
+ protected closeMenu: () => void;
2068
+ protected trackKey: (_index: number, view: RowView<T>) => string;
2069
+ protected toggleMenu(column: Column<T>): void;
2070
+ protected hasMenu(column: Column<T> | null): boolean;
2071
+ protected canHide(column: Column<T>): boolean;
2072
+ protected canReorder(column: Column<T>): boolean;
2073
+ protected canPin(column: Column<T>): boolean;
2074
+ protected isLastColumn(): boolean;
2075
+ protected sortLabels(column: Column<T>): {
2076
+ asc: string;
2077
+ desc: string;
2078
+ };
2079
+ protected ariaSortFor(column: Column<T> | null): string | null;
2080
+ protected isSortedBy(column: Column<T>, direction: SortDirection): boolean;
2081
+ protected sortBy(column: Column<T>, direction: SortDirection): void;
2082
+ protected canMove(column: Column<T>, delta: -1 | 1): boolean;
2083
+ protected move(column: Column<T>, delta: -1 | 1): void;
2084
+ protected hide(column: Column<T>): void;
2085
+ protected togglePin(column: Column<T>): void;
2086
+ protected toggleRow(view: RowView<T>): void;
2087
+ protected toggleAllRows(): void;
2088
+ protected toggleOpen(view: RowView<T>): void;
2089
+ static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyTableComponent<any>, never>;
2090
+ static ɵcmp: i0.ɵɵComponentDeclaration<MonkeyTableComponent<any>, "monkey-table", never, { "rows": { "alias": "rows"; "required": true; "isSignal": true; }; "rowKey": { "alias": "rowKey"; "required": true; "isSignal": true; }; "rowLabel": { "alias": "rowLabel"; "required": false; "isSignal": true; }; "rowSelectable": { "alias": "rowSelectable"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": true; "isSignal": true; }; "caption": { "alias": "caption"; "required": false; "isSignal": true; }; "selectionMode": { "alias": "selectionMode"; "required": false; "isSignal": true; }; "selected": { "alias": "selected"; "required": false; "isSignal": true; }; "maxSelected": { "alias": "maxSelected"; "required": false; "isSignal": true; }; "sort": { "alias": "sort"; "required": false; "isSignal": true; }; "expandable": { "alias": "expandable"; "required": false; "isSignal": true; }; "expanded": { "alias": "expanded"; "required": false; "isSignal": true; }; "reorderable": { "alias": "reorderable"; "required": false; "isSignal": true; }; "hideable": { "alias": "hideable"; "required": false; "isSignal": true; }; "pinnable": { "alias": "pinnable"; "required": false; "isSignal": true; }; "rowHeight": { "alias": "rowHeight"; "required": false; "isSignal": true; }; "maxVisibleRows": { "alias": "maxVisibleRows"; "required": false; "isSignal": true; }; "virtualScroll": { "alias": "virtualScroll"; "required": false; "isSignal": true; }; "columnOrder": { "alias": "columnOrder"; "required": false; "isSignal": true; }; "columnState": { "alias": "columnState"; "required": false; "isSignal": true; }; "striped": { "alias": "striped"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "emptyText": { "alias": "emptyText"; "required": false; "isSignal": true; }; "skeletonRows": { "alias": "skeletonRows"; "required": false; "isSignal": true; }; }, { "selected": "selectedChange"; "expanded": "expandedChange"; "columnOrder": "columnOrderChange"; "onSortChange": "onSortChange"; "onColumnHidden": "onColumnHidden"; "onColumnStateChange": "onColumnStateChange"; "onSelectionChange": "onSelectionChange"; "onExpandChange": "onExpandChange"; }, ["_columns", "emptyTemplate", "loadingTemplate", "rowDetailTemplate"], ["monkey-pagination-size", "monkey-pagination-label", "monkey-pagination-action"], true, never>;
1843
2091
  }
1844
2092
 
1845
2093
  /** ************************
@@ -2316,5 +2564,5 @@ declare const MECX_COUNTRY_ISO_CODE: InjectionToken<string>;
2316
2564
  declare const MECX_GOOGLE_API_KEY: InjectionToken<string>;
2317
2565
  declare function injectTokenWithWarning<T>(token: InjectionToken<T>, name?: string): T | null;
2318
2566
 
2319
- export { MECX_COUNTRY_ISO_CODE, MECX_GOOGLE_API_KEY, MECX_I18N_WRAPPER, MECX_MODAL_DATA, MECX_MODAL_DEFAULT_CONFIG, MECX_POPOVER_OPTIONS, MonkeyAccordionComponent, MonkeyActionBarComponent, MonkeyAlertComponent, MonkeyAutocompleteAddressComponent, MonkeyAutocompleteComponent, MonkeyAvatarComponent, MonkeyBadgeComponent, MonkeyBadgeDirective, MonkeyBreadcrumbComponent, MonkeyButtonComponent, MonkeyCheckboxComponent, MonkeyColumnChecked, MonkeyColumnExpansible, MonkeyColumnSortable, MonkeyColumnStick, MonkeyComplexFilterBarComponent, MonkeyDateRangeComponent, MonkeyDictionaryService, MonkeyDisplayDirective, MonkeyDividerComponent, MonkeyDownloadButtonComponent, MonkeyEcxAddressService, MonkeyErrorDirective, MonkeyFilterBarComponent, MonkeyFilterBarService, MonkeyFormDirective, MonkeyFormFieldComponent, MonkeyFormFieldControl, MonkeyFormFieldModule, MonkeyHelperDirective, MonkeyIconButtonComponent, MonkeyInfoDirective, MonkeyInputCodeComponent, MonkeyInputCurrencyDirective, MonkeyInputDateRangeComponent, MonkeyInputDirective, MonkeyInputModule, MonkeyInputPhoneComponent, MonkeyInputUploadComponent, MonkeyLabelDirective, MonkeyModalActionsDirective, MonkeyModalComponent, MonkeyModalConfig, MonkeyModalContentDirective, MonkeyModalModule, MonkeyModalRef, MonkeyModalService, MonkeyModalSubtitleDirective, MonkeyModalTitleDirective, MonkeyOptionComponent, MonkeyPaginationActionComponent, MonkeyPaginationLabelComponent, MonkeyPaginationSizeComponent, MonkeyPassNumberComponent, MonkeyPassSecretNumberComponent, MonkeyPopoverContentComponent, MonkeyPopoverDirective, MonkeyPrefixDirective, MonkeyRadioButtonComponent, MonkeySecurityLevelComponent, MonkeySelectComponent, MonkeyStatusComponent, MonkeyStepComponent, MonkeyStepperComponent, MonkeyStepperModule, MonkeyStepperService, MonkeySuffixDirective, MonkeyTabComponent, MonkeyTabLinkDirective, MonkeyTableComponent, MonkeyTableModule, MonkeyTabsComponent, MonkeyTabsModule, MonkeyToastComponent, MonkeyToastRef, MonkeyToastService, MonkeyToggleComponent, MonkeyToggleLineButtonComponent, MonkeyToggleLineComponent, MonkeyTooltipComponent, MonkeyTooltipDirective, MonkeyUserProfileButtonComponent, MonkeyUserProfileComponent, getCurrencySymbol, injectTokenWithWarning };
2320
- export type { ActiveFilter, AutocompleteSuggestion, AutocompleteSuggestionType, ComplexFilterCondition, ComplexFilterGroup, ComplexFilterOperator, ComplexFilterResult, FilterBarConfig, FilterBarState, FilterOption, FilterType, GoogleApiPlaces, GoogleApiPlacesAddressComponents, GoogleApiPlacesResponse, MonkeyAlertType, MonkeyAutocompleteData, MonkeyAutocompleteResponse, MonkeyBreadcrumb, MonkeyButtonColor, MonkeyButtonType, MonkeyDownloadButtonChangeEvent, MonkeyInputUploadChangeEvent, MonkeyModalConfirmationConfig, MonkeyModalDefaultConfig, MonkeyPopoverDir, MonkeyPopoverOptions, MonkeySize, MonkeyTableScrollConfig, MonkeyToastPosition, MonkeyToastType, StatusOption, ToastConfig };
2567
+ export { MECX_COUNTRY_ISO_CODE, MECX_GOOGLE_API_KEY, MECX_I18N_WRAPPER, MECX_MODAL_DATA, MECX_MODAL_DEFAULT_CONFIG, MECX_POPOVER_OPTIONS, MonkeyAccordionComponent, MonkeyActionBarComponent, MonkeyAlertComponent, MonkeyAutocompleteAddressComponent, MonkeyAutocompleteComponent, MonkeyAvatarComponent, MonkeyBadgeComponent, MonkeyBadgeDirective, MonkeyBreadcrumbComponent, MonkeyButtonComponent, MonkeyCheckboxComponent, MonkeyComplexFilterBarComponent, MonkeyDateRangeComponent, MonkeyDictionaryService, MonkeyDisplayDirective, MonkeyDividerComponent, MonkeyDownloadButtonComponent, MonkeyEcxAddressService, MonkeyErrorDirective, MonkeyFilterBarComponent, MonkeyFilterBarService, MonkeyFormDirective, MonkeyFormFieldComponent, MonkeyFormFieldControl, MonkeyFormFieldModule, MonkeyHelperDirective, MonkeyIconButtonComponent, MonkeyInfoDirective, MonkeyInputCodeComponent, MonkeyInputCurrencyDirective, MonkeyInputDateRangeComponent, MonkeyInputDirective, MonkeyInputModule, MonkeyInputPhoneComponent, MonkeyInputUploadComponent, MonkeyLabelDirective, MonkeyModalActionsDirective, MonkeyModalComponent, MonkeyModalConfig, MonkeyModalContentDirective, MonkeyModalModule, MonkeyModalRef, MonkeyModalService, MonkeyModalSubtitleDirective, MonkeyModalTitleDirective, MonkeyOptionComponent, MonkeyPaginationActionComponent, MonkeyPaginationLabelComponent, MonkeyPaginationSizeComponent, MonkeyPassNumberComponent, MonkeyPassSecretNumberComponent, MonkeyPopoverContentComponent, MonkeyPopoverDirective, MonkeyPrefixDirective, MonkeyRadioButtonComponent, MonkeyScrollbarComponent, MonkeySecurityLevelComponent, MonkeySelectComponent, MonkeyStatusComponent, MonkeyStepComponent, MonkeyStepperComponent, MonkeyStepperModule, MonkeyStepperService, MonkeySuffixDirective, MonkeyTabComponent, MonkeyTabLinkDirective, MonkeyTableCellDirective, MonkeyTableColumnDirective, MonkeyTableComponent, MonkeyTableEmptyDirective, MonkeyTableHeaderCellDirective, MonkeyTableLoadingDirective, MonkeyTableRowDetailDirective, MonkeyTabsComponent, MonkeyTabsModule, MonkeyToastComponent, MonkeyToastRef, MonkeyToastService, MonkeyToggleComponent, MonkeyToggleLineButtonComponent, MonkeyToggleLineComponent, MonkeyTooltipComponent, MonkeyTooltipDirective, MonkeyUserProfileButtonComponent, MonkeyUserProfileComponent, addKeys, ariaSortOf, getCurrencySymbol, indexAtOffset, injectTokenWithWarning, interpolate, mergeOrder, offsetOfIndex, removeKeys, sameColumnState, selectionState, sortByOrder, toPx, toggleKey, totalHeight };
2568
+ export type { ActiveFilter, AutocompleteSuggestion, AutocompleteSuggestionType, ColumnAlign, ColumnPinned, ComplexFilterCondition, ComplexFilterGroup, ComplexFilterOperator, ComplexFilterResult, FilterBarConfig, FilterBarState, FilterOption, FilterType, GoogleApiPlaces, GoogleApiPlacesAddressComponents, GoogleApiPlacesResponse, MonkeyAlertType, MonkeyAutocompleteData, MonkeyAutocompleteResponse, MonkeyBreadcrumb, MonkeyButtonColor, MonkeyButtonType, MonkeyDownloadButtonChangeEvent, MonkeyInputUploadChangeEvent, MonkeyModalConfirmationConfig, MonkeyModalDefaultConfig, MonkeyPopoverDir, MonkeyPopoverOptions, MonkeyScrollbarOrientation, MonkeyScrollbarSize, MonkeySize, MonkeyTableCellContext, MonkeyTableColumnState, MonkeyTableScrollConfig, MonkeyTableSortKind, MonkeyToastPosition, MonkeyToastType, RowMetrics, SelectionState, SortDirection, SortState, StatusOption, ToastConfig };
Binary file