@smartsoft001/angular 2.202.0 → 2.203.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.
@@ -1456,6 +1456,7 @@ i0.ɵɵngDeclareClassMetadata({
1456
1456
  decorators: [{ type: Injectable }]
1457
1457
  });
1458
1458
  var HardwareService = class HardwareService {
1459
+ document = inject(DOCUMENT);
1459
1460
  get isMobile() {
1460
1461
  return false;
1461
1462
  }
@@ -1463,7 +1464,11 @@ var HardwareService = class HardwareService {
1463
1464
  return false;
1464
1465
  }
1465
1466
  async onBackButtonClick(callback) {
1466
- return {};
1467
+ const view = this.document.defaultView;
1468
+ if (!view) return { remove: () => void 0 };
1469
+ const listener = () => callback();
1470
+ view.addEventListener("popstate", listener);
1471
+ return { remove: () => view.removeEventListener("popstate", listener) };
1467
1472
  }
1468
1473
  static ɵfac = i0.ɵɵngDeclareFactory({
1469
1474
  minVersion: "12.0.0",
@@ -1561,12 +1566,667 @@ i0.ɵɵngDeclareClassMetadata({
1561
1566
  args: [{ providedIn: "root" }]
1562
1567
  }]
1563
1568
  });
1569
+ var ModalBaseComponent = class ModalBaseComponent {
1570
+ static smartType = "modal";
1571
+ open = model(false, ...ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []);
1572
+ title = input(...ngDevMode ? [void 0, { debugName: "title" }] : /* istanbul ignore next */ []);
1573
+ description = input(...ngDevMode ? [void 0, { debugName: "description" }] : /* istanbul ignore next */ []);
1574
+ actions = input([], ...ngDevMode ? [{ debugName: "actions" }] : /* istanbul ignore next */ []);
1575
+ options = input(...ngDevMode ? [void 0, { debugName: "options" }] : /* istanbul ignore next */ []);
1576
+ cssClass = input("", {
1577
+ ...ngDevMode ? { debugName: "cssClass" } : /* istanbul ignore next */ {},
1578
+ alias: "class"
1579
+ });
1580
+ actionClick = output();
1581
+ closed = output();
1582
+ invokeAction(actionId) {
1583
+ this.actionClick.emit({ actionId });
1584
+ }
1585
+ close() {
1586
+ this.open.set(false);
1587
+ this.closed.emit();
1588
+ }
1589
+ static ɵfac = i0.ɵɵngDeclareFactory({
1590
+ minVersion: "12.0.0",
1591
+ version: "22.2.2",
1592
+ ngImport: i0,
1593
+ type: ModalBaseComponent,
1594
+ deps: [],
1595
+ target: i0.ɵɵFactoryTarget.Directive
1596
+ });
1597
+ static ɵdir = i0.ɵɵngDeclareDirective({
1598
+ minVersion: "17.1.0",
1599
+ version: "22.2.2",
1600
+ type: ModalBaseComponent,
1601
+ isStandalone: true,
1602
+ inputs: {
1603
+ open: {
1604
+ classPropertyName: "open",
1605
+ publicName: "open",
1606
+ isSignal: true,
1607
+ isRequired: false,
1608
+ transformFunction: null
1609
+ },
1610
+ title: {
1611
+ classPropertyName: "title",
1612
+ publicName: "title",
1613
+ isSignal: true,
1614
+ isRequired: false,
1615
+ transformFunction: null
1616
+ },
1617
+ description: {
1618
+ classPropertyName: "description",
1619
+ publicName: "description",
1620
+ isSignal: true,
1621
+ isRequired: false,
1622
+ transformFunction: null
1623
+ },
1624
+ actions: {
1625
+ classPropertyName: "actions",
1626
+ publicName: "actions",
1627
+ isSignal: true,
1628
+ isRequired: false,
1629
+ transformFunction: null
1630
+ },
1631
+ options: {
1632
+ classPropertyName: "options",
1633
+ publicName: "options",
1634
+ isSignal: true,
1635
+ isRequired: false,
1636
+ transformFunction: null
1637
+ },
1638
+ cssClass: {
1639
+ classPropertyName: "cssClass",
1640
+ publicName: "class",
1641
+ isSignal: true,
1642
+ isRequired: false,
1643
+ transformFunction: null
1644
+ }
1645
+ },
1646
+ outputs: {
1647
+ open: "openChange",
1648
+ actionClick: "actionClick",
1649
+ closed: "closed"
1650
+ },
1651
+ ngImport: i0
1652
+ });
1653
+ };
1654
+ i0.ɵɵngDeclareClassMetadata({
1655
+ minVersion: "12.0.0",
1656
+ version: "22.2.2",
1657
+ ngImport: i0,
1658
+ type: ModalBaseComponent,
1659
+ decorators: [{ type: Directive }],
1660
+ propDecorators: {
1661
+ open: [{
1662
+ type: i0.Input,
1663
+ args: [{
1664
+ isSignal: true,
1665
+ alias: "open",
1666
+ required: false
1667
+ }]
1668
+ }, {
1669
+ type: i0.Output,
1670
+ args: ["openChange"]
1671
+ }],
1672
+ title: [{
1673
+ type: i0.Input,
1674
+ args: [{
1675
+ isSignal: true,
1676
+ alias: "title",
1677
+ required: false
1678
+ }]
1679
+ }],
1680
+ description: [{
1681
+ type: i0.Input,
1682
+ args: [{
1683
+ isSignal: true,
1684
+ alias: "description",
1685
+ required: false
1686
+ }]
1687
+ }],
1688
+ actions: [{
1689
+ type: i0.Input,
1690
+ args: [{
1691
+ isSignal: true,
1692
+ alias: "actions",
1693
+ required: false
1694
+ }]
1695
+ }],
1696
+ options: [{
1697
+ type: i0.Input,
1698
+ args: [{
1699
+ isSignal: true,
1700
+ alias: "options",
1701
+ required: false
1702
+ }]
1703
+ }],
1704
+ cssClass: [{
1705
+ type: i0.Input,
1706
+ args: [{
1707
+ isSignal: true,
1708
+ alias: "class",
1709
+ required: false
1710
+ }]
1711
+ }],
1712
+ actionClick: [{
1713
+ type: i0.Output,
1714
+ args: ["actionClick"]
1715
+ }],
1716
+ closed: [{
1717
+ type: i0.Output,
1718
+ args: ["closed"]
1719
+ }]
1720
+ }
1721
+ });
1722
+ var ModalStandardComponent = class ModalStandardComponent extends ModalBaseComponent {
1723
+ static ɵfac = i0.ɵɵngDeclareFactory({
1724
+ minVersion: "12.0.0",
1725
+ version: "22.2.2",
1726
+ ngImport: i0,
1727
+ type: ModalStandardComponent,
1728
+ deps: null,
1729
+ target: i0.ɵɵFactoryTarget.Component
1730
+ });
1731
+ static ɵcmp = i0.ɵɵngDeclareComponent({
1732
+ minVersion: "17.0.0",
1733
+ version: "22.2.2",
1734
+ type: ModalStandardComponent,
1735
+ isStandalone: true,
1736
+ selector: "smart-modal-standard",
1737
+ usesInheritance: true,
1738
+ ngImport: i0,
1739
+ template: "<dialog\n [open]=\"open()\"\n [class]=\"cssClass()\"\n role=\"dialog\"\n aria-modal=\"true\"\n [attr.aria-labelledby]=\"title() ? 'smart-modal-title' : null\"\n [attr.aria-label]=\"!title() ? (options()?.ariaLabel ?? null) : null\"\n (close)=\"close()\"\n>\n @if (options()?.withDismiss) {\n <button\n type=\"button\"\n class=\"smart-modal-dismiss\"\n aria-label=\"Close\"\n (click)=\"close()\"\n >\n &times;\n </button>\n }\n @if (title()) {\n <h2 id=\"smart-modal-title\">{{ title() }}</h2>\n }\n @if (description()) {\n <p>{{ description() }}</p>\n }\n <ng-content />\n @if (actions().length > 0) {\n <footer>\n @for (action of actions(); track action.id) {\n <button\n type=\"button\"\n [attr.data-variant]=\"action.variant ?? 'primary'\"\n (click)=\"invokeAction(action.id)\"\n >\n {{ action.label }}\n </button>\n }\n </footer>\n }\n</dialog>\n",
1740
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
1741
+ encapsulation: i0.ViewEncapsulation.None
1742
+ });
1743
+ };
1744
+ i0.ɵɵngDeclareClassMetadata({
1745
+ minVersion: "12.0.0",
1746
+ version: "22.2.2",
1747
+ ngImport: i0,
1748
+ type: ModalStandardComponent,
1749
+ decorators: [{
1750
+ type: Component,
1751
+ args: [{
1752
+ selector: "smart-modal-standard",
1753
+ encapsulation: ViewEncapsulation.None,
1754
+ changeDetection: ChangeDetectionStrategy.OnPush,
1755
+ template: "<dialog\n [open]=\"open()\"\n [class]=\"cssClass()\"\n role=\"dialog\"\n aria-modal=\"true\"\n [attr.aria-labelledby]=\"title() ? 'smart-modal-title' : null\"\n [attr.aria-label]=\"!title() ? (options()?.ariaLabel ?? null) : null\"\n (close)=\"close()\"\n>\n @if (options()?.withDismiss) {\n <button\n type=\"button\"\n class=\"smart-modal-dismiss\"\n aria-label=\"Close\"\n (click)=\"close()\"\n >\n &times;\n </button>\n }\n @if (title()) {\n <h2 id=\"smart-modal-title\">{{ title() }}</h2>\n }\n @if (description()) {\n <p>{{ description() }}</p>\n }\n <ng-content />\n @if (actions().length > 0) {\n <footer>\n @for (action of actions(); track action.id) {\n <button\n type=\"button\"\n [attr.data-variant]=\"action.variant ?? 'primary'\"\n (click)=\"invokeAction(action.id)\"\n >\n {{ action.label }}\n </button>\n }\n </footer>\n }\n</dialog>\n"
1756
+ }]
1757
+ }]
1758
+ });
1759
+ const FORM_COMPONENT_TOKEN = new InjectionToken("FORM_COMPONENT");
1760
+ const DETAILS_COMPONENT_TOKEN = new InjectionToken("DETAILS_COMPONENT_TOKEN");
1761
+ const ACTION_PANEL_STANDARD_COMPONENT_TOKEN = new InjectionToken("ACTION_PANEL_STANDARD_COMPONENT");
1762
+ const ALERT_STANDARD_COMPONENT_TOKEN = new InjectionToken("ALERT_STANDARD_COMPONENT");
1763
+ const BREADCRUMBS_STANDARD_COMPONENT_TOKEN = new InjectionToken("BREADCRUMBS_STANDARD_COMPONENT");
1764
+ const BUTTON_STANDARD_COMPONENT_TOKEN = new InjectionToken("BUTTON_STANDARD_COMPONENT");
1765
+ const CALENDAR_STANDARD_COMPONENT_TOKEN = new InjectionToken("CALENDAR_STANDARD_COMPONENT");
1766
+ const CARD_STANDARD_COMPONENT_TOKEN = new InjectionToken("CARD_STANDARD_COMPONENT");
1767
+ const CARD_HEADING_STANDARD_COMPONENT_TOKEN = new InjectionToken("CARD_HEADING_STANDARD_COMPONENT");
1768
+ const COMMAND_PALETTE_STANDARD_COMPONENT_TOKEN = new InjectionToken("COMMAND_PALETTE_STANDARD_COMPONENT");
1769
+ const DETAILS_STANDARD_COMPONENT_TOKEN = new InjectionToken("DETAILS_STANDARD_COMPONENT");
1770
+ const DETAIL_FIELD_COMPONENTS_TOKEN = new InjectionToken("DETAIL_FIELD_COMPONENTS_TOKEN");
1771
+ const EMPTY_STATE_STANDARD_COMPONENT_TOKEN = new InjectionToken("EMPTY_STATE_STANDARD_COMPONENT");
1772
+ const FEED_STANDARD_COMPONENT_TOKEN = new InjectionToken("FEED_STANDARD_COMPONENT");
1773
+ const DESCRIPTION_LIST_STANDARD_COMPONENT_TOKEN = new InjectionToken("DESCRIPTION_LIST_STANDARD_COMPONENT");
1774
+ const FORM_STANDARD_COMPONENT_TOKEN = new InjectionToken("FORM_STANDARD_COMPONENT");
1775
+ const GRID_LIST_STANDARD_COMPONENT_TOKEN = new InjectionToken("GRID_LIST_STANDARD_COMPONENT");
1776
+ const INFO_STANDARD_COMPONENT_TOKEN = new InjectionToken("INFO_STANDARD_COMPONENT");
1777
+ const INPUT_FIELD_COMPONENTS_TOKEN = new InjectionToken("INPUT_FIELD_COMPONENTS_TOKEN");
1778
+ const LIST_MODE_COMPONENTS_TOKEN = new InjectionToken("LIST_MODE_COMPONENTS");
1779
+ const LOADER_STANDARD_COMPONENT_TOKEN = new InjectionToken("LOADER_STANDARD_COMPONENT");
1780
+ const MODAL_STANDARD_COMPONENT_TOKEN = new InjectionToken("MODAL_STANDARD_COMPONENT");
1781
+ const AVATAR_STANDARD_COMPONENT_TOKEN = new InjectionToken("AVATAR_STANDARD_COMPONENT");
1782
+ const BADGE_STANDARD_COMPONENT_TOKEN = new InjectionToken("BADGE_STANDARD_COMPONENT");
1783
+ const BUTTON_GROUP_STANDARD_COMPONENT_TOKEN = new InjectionToken("BUTTON_GROUP_STANDARD_COMPONENT");
1784
+ const CONTAINER_STANDARD_COMPONENT_TOKEN = new InjectionToken("CONTAINER_STANDARD_COMPONENT");
1785
+ const DIVIDER_STANDARD_COMPONENT_TOKEN = new InjectionToken("DIVIDER_STANDARD_COMPONENT");
1786
+ const DRAWER_STANDARD_COMPONENT_TOKEN = new InjectionToken("DRAWER_STANDARD_COMPONENT");
1787
+ const DROPDOWN_STANDARD_COMPONENT_TOKEN = new InjectionToken("DROPDOWN_STANDARD_COMPONENT");
1788
+ const LIST_CONTAINER_STANDARD_COMPONENT_TOKEN = new InjectionToken("LIST_CONTAINER_STANDARD_COMPONENT");
1789
+ const MEDIA_OBJECT_STANDARD_COMPONENT_TOKEN = new InjectionToken("MEDIA_OBJECT_STANDARD_COMPONENT");
1790
+ const NOTIFICATION_STANDARD_COMPONENT_TOKEN = new InjectionToken("NOTIFICATION_STANDARD_COMPONENT");
1791
+ const MULTI_COLUMN_LAYOUT_STANDARD_COMPONENT_TOKEN = new InjectionToken("MULTI_COLUMN_LAYOUT_STANDARD_COMPONENT");
1792
+ const NAVBAR_STANDARD_COMPONENT_TOKEN = new InjectionToken("NAVBAR_STANDARD_COMPONENT");
1793
+ const PAGE_VARIANT_COMPONENTS_TOKEN = new InjectionToken("PAGE_VARIANT_COMPONENTS");
1794
+ const PAGE_HEADING_STANDARD_COMPONENT_TOKEN = new InjectionToken("PAGE_HEADING_STANDARD_COMPONENT");
1795
+ const PAGING_STANDARD_COMPONENT_TOKEN = new InjectionToken("PAGING_STANDARD_COMPONENT");
1796
+ const PASSWORD_STRENGTH_STANDARD_COMPONENT_TOKEN = new InjectionToken("PASSWORD_STRENGTH_STANDARD_COMPONENT");
1797
+ const PROGRESS_BARS_STANDARD_COMPONENT_TOKEN = new InjectionToken("PROGRESS_BARS_STANDARD_COMPONENT");
1798
+ const SEARCHBAR_STANDARD_COMPONENT_TOKEN = new InjectionToken("SEARCHBAR_STANDARD_COMPONENT");
1799
+ const SECTION_HEADING_STANDARD_COMPONENT_TOKEN = new InjectionToken("SECTION_HEADING_STANDARD_COMPONENT");
1800
+ const SELECT_MENU_STANDARD_COMPONENT_TOKEN = new InjectionToken("SELECT_MENU_STANDARD_COMPONENT");
1801
+ const SIDEBAR_LAYOUT_STANDARD_COMPONENT_TOKEN = new InjectionToken("SIDEBAR_LAYOUT_STANDARD_COMPONENT");
1802
+ const SIDEBAR_NAVIGATION_STANDARD_COMPONENT_TOKEN = new InjectionToken("SIDEBAR_NAVIGATION_STANDARD_COMPONENT");
1803
+ const SIGN_IN_FORM_STANDARD_COMPONENT_TOKEN = new InjectionToken("SIGN_IN_FORM_STANDARD_COMPONENT");
1804
+ const STACKED_LAYOUT_STANDARD_COMPONENT_TOKEN = new InjectionToken("STACKED_LAYOUT_STANDARD_COMPONENT");
1805
+ const STACKED_LIST_STANDARD_COMPONENT_TOKEN = new InjectionToken("STACKED_LIST_STANDARD_COMPONENT");
1806
+ const STATS_STANDARD_COMPONENT_TOKEN = new InjectionToken("STATS_STANDARD_COMPONENT");
1807
+ const TABLE_STANDARD_COMPONENT_TOKEN = new InjectionToken("TABLE_STANDARD_COMPONENT");
1808
+ const TABS_STANDARD_COMPONENT_TOKEN = new InjectionToken("TABS_STANDARD_COMPONENT");
1809
+ const TEXTAREA_STANDARD_COMPONENT_TOKEN = new InjectionToken("TEXTAREA_STANDARD_COMPONENT");
1810
+ const TOGGLE_STANDARD_COMPONENT_TOKEN = new InjectionToken("TOGGLE_STANDARD_COMPONENT");
1811
+ const VERTICAL_NAVIGATION_STANDARD_COMPONENT_TOKEN = new InjectionToken("VERTICAL_NAVIGATION_STANDARD_COMPONENT");
1812
+ function forwardOutletOutputs(outlet, targets) {
1813
+ afterRenderEffect((onCleanup) => {
1814
+ const instance = outlet()?.componentInstance;
1815
+ if (!instance) return;
1816
+ const subscriptions = [];
1817
+ for (const [name, target] of Object.entries(targets)) {
1818
+ const source = instance[name];
1819
+ if (typeof source?.subscribe !== "function") continue;
1820
+ subscriptions.push(source.subscribe((value) => "emit" in target ? target.emit(value) : target.set(value)));
1821
+ }
1822
+ onCleanup(() => subscriptions.forEach((sub) => sub.unsubscribe()));
1823
+ });
1824
+ }
1825
+ function outletContent(template) {
1826
+ const destroyRef = inject(DestroyRef);
1827
+ const renderer = inject(Renderer2);
1828
+ let content;
1829
+ return () => {
1830
+ if (!content) {
1831
+ const view = template().createEmbeddedView(void 0);
1832
+ const slot = renderer.createElement("span");
1833
+ renderer.setStyle(slot, "display", "contents");
1834
+ view.rootNodes.forEach((node) => renderer.appendChild(slot, node));
1835
+ destroyRef.onDestroy(() => view.destroy());
1836
+ content = [[slot]];
1837
+ }
1838
+ return content;
1839
+ };
1840
+ }
1841
+ function outletInputs(component, inputs) {
1842
+ const declared = component ? reflectComponentType(component)?.inputs : null;
1843
+ if (!declared) return inputs;
1844
+ const publicName = /* @__PURE__ */ new Map();
1845
+ for (const { propName, templateName } of declared) {
1846
+ publicName.set(propName, templateName);
1847
+ publicName.set(templateName, templateName);
1848
+ }
1849
+ const resolved = {};
1850
+ for (const [key, value] of Object.entries(inputs)) {
1851
+ const name = publicName.get(key);
1852
+ if (name) resolved[name] = value;
1853
+ }
1854
+ return resolved;
1855
+ }
1856
+ var ModalComponent = class ModalComponent {
1857
+ injectedComponent = inject(MODAL_STANDARD_COMPONENT_TOKEN, { optional: true });
1858
+ open = model(false, ...ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []);
1859
+ title = input(...ngDevMode ? [void 0, { debugName: "title" }] : /* istanbul ignore next */ []);
1860
+ description = input(...ngDevMode ? [void 0, { debugName: "description" }] : /* istanbul ignore next */ []);
1861
+ actions = input([], ...ngDevMode ? [{ debugName: "actions" }] : /* istanbul ignore next */ []);
1862
+ options = input(...ngDevMode ? [void 0, { debugName: "options" }] : /* istanbul ignore next */ []);
1863
+ cssClass = input("", {
1864
+ ...ngDevMode ? { debugName: "cssClass" } : /* istanbul ignore next */ {},
1865
+ alias: "class"
1866
+ });
1867
+ actionClick = output();
1868
+ closed = output();
1869
+ componentType = computed(() => this.injectedComponent ?? null, ...ngDevMode ? [{ debugName: "componentType" }] : /* istanbul ignore next */ []);
1870
+ componentInputs = computed(() => outletInputs(this.componentType(), {
1871
+ open: this.open(),
1872
+ title: this.title(),
1873
+ description: this.description(),
1874
+ actions: this.actions(),
1875
+ options: this.options(),
1876
+ cssClass: this.cssClass()
1877
+ }), ...ngDevMode ? [{ debugName: "componentInputs" }] : /* istanbul ignore next */ []);
1878
+ outlet = viewChild(NgComponentOutlet, ...ngDevMode ? [{ debugName: "outlet" }] : /* istanbul ignore next */ []);
1879
+ contentTemplate = viewChild.required("content", ...ngDevMode ? [{ debugName: "contentTemplate" }] : /* istanbul ignore next */ []);
1880
+ projectedContent = outletContent(this.contentTemplate);
1881
+ constructor() {
1882
+ forwardOutletOutputs(this.outlet, {
1883
+ actionClick: this.actionClick,
1884
+ closed: this.closed,
1885
+ open: this.open
1886
+ });
1887
+ }
1888
+ static ɵfac = i0.ɵɵngDeclareFactory({
1889
+ minVersion: "12.0.0",
1890
+ version: "22.2.2",
1891
+ ngImport: i0,
1892
+ type: ModalComponent,
1893
+ deps: [],
1894
+ target: i0.ɵɵFactoryTarget.Component
1895
+ });
1896
+ static ɵcmp = i0.ɵɵngDeclareComponent({
1897
+ minVersion: "17.0.0",
1898
+ version: "22.2.2",
1899
+ type: ModalComponent,
1900
+ isStandalone: true,
1901
+ selector: "smart-modal",
1902
+ inputs: {
1903
+ open: {
1904
+ classPropertyName: "open",
1905
+ publicName: "open",
1906
+ isSignal: true,
1907
+ isRequired: false,
1908
+ transformFunction: null
1909
+ },
1910
+ title: {
1911
+ classPropertyName: "title",
1912
+ publicName: "title",
1913
+ isSignal: true,
1914
+ isRequired: false,
1915
+ transformFunction: null
1916
+ },
1917
+ description: {
1918
+ classPropertyName: "description",
1919
+ publicName: "description",
1920
+ isSignal: true,
1921
+ isRequired: false,
1922
+ transformFunction: null
1923
+ },
1924
+ actions: {
1925
+ classPropertyName: "actions",
1926
+ publicName: "actions",
1927
+ isSignal: true,
1928
+ isRequired: false,
1929
+ transformFunction: null
1930
+ },
1931
+ options: {
1932
+ classPropertyName: "options",
1933
+ publicName: "options",
1934
+ isSignal: true,
1935
+ isRequired: false,
1936
+ transformFunction: null
1937
+ },
1938
+ cssClass: {
1939
+ classPropertyName: "cssClass",
1940
+ publicName: "class",
1941
+ isSignal: true,
1942
+ isRequired: false,
1943
+ transformFunction: null
1944
+ }
1945
+ },
1946
+ outputs: {
1947
+ open: "openChange",
1948
+ actionClick: "actionClick",
1949
+ closed: "closed"
1950
+ },
1951
+ host: { classAttribute: "smart:contents" },
1952
+ viewQueries: [{
1953
+ propertyName: "outlet",
1954
+ first: true,
1955
+ predicate: NgComponentOutlet,
1956
+ descendants: true,
1957
+ isSignal: true
1958
+ }, {
1959
+ propertyName: "contentTemplate",
1960
+ first: true,
1961
+ predicate: ["content"],
1962
+ descendants: true,
1963
+ isSignal: true
1964
+ }],
1965
+ ngImport: i0,
1966
+ template: `
1967
+ <ng-template #content><ng-content /></ng-template>
1968
+ @if (componentType()) {
1969
+ <ng-container
1970
+ *ngComponentOutlet="
1971
+ componentType();
1972
+ inputs: componentInputs();
1973
+ content: projectedContent()
1974
+ "
1975
+ />
1976
+ } @else {
1977
+ <smart-modal-standard
1978
+ [(open)]="open"
1979
+ [title]="title()"
1980
+ [description]="description()"
1981
+ [actions]="actions()"
1982
+ [options]="options()"
1983
+ [class]="cssClass()"
1984
+ (actionClick)="actionClick.emit($event)"
1985
+ (closed)="closed.emit()"
1986
+ >
1987
+ <ng-container [ngTemplateOutlet]="content" />
1988
+ </smart-modal-standard>
1989
+ }
1990
+ `,
1991
+ isInline: true,
1992
+ dependencies: [
1993
+ {
1994
+ kind: "component",
1995
+ type: ModalStandardComponent,
1996
+ selector: "smart-modal-standard"
1997
+ },
1998
+ {
1999
+ kind: "directive",
2000
+ type: NgComponentOutlet,
2001
+ selector: "[ngComponentOutlet]",
2002
+ inputs: [
2003
+ "ngComponentOutlet",
2004
+ "ngComponentOutletInputs",
2005
+ "ngComponentOutletInjector",
2006
+ "ngComponentOutletEnvironmentInjector",
2007
+ "ngComponentOutletContent",
2008
+ "ngComponentOutletNgModule"
2009
+ ],
2010
+ exportAs: ["ngComponentOutlet"]
2011
+ },
2012
+ {
2013
+ kind: "directive",
2014
+ type: NgTemplateOutlet,
2015
+ selector: "[ngTemplateOutlet]",
2016
+ inputs: [
2017
+ "ngTemplateOutletContext",
2018
+ "ngTemplateOutlet",
2019
+ "ngTemplateOutletInjector"
2020
+ ]
2021
+ }
2022
+ ],
2023
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
2024
+ encapsulation: i0.ViewEncapsulation.None
2025
+ });
2026
+ };
2027
+ i0.ɵɵngDeclareClassMetadata({
2028
+ minVersion: "12.0.0",
2029
+ version: "22.2.2",
2030
+ ngImport: i0,
2031
+ type: ModalComponent,
2032
+ decorators: [{
2033
+ type: Component,
2034
+ args: [{
2035
+ selector: "smart-modal",
2036
+ template: `
2037
+ <ng-template #content><ng-content /></ng-template>
2038
+ @if (componentType()) {
2039
+ <ng-container
2040
+ *ngComponentOutlet="
2041
+ componentType();
2042
+ inputs: componentInputs();
2043
+ content: projectedContent()
2044
+ "
2045
+ />
2046
+ } @else {
2047
+ <smart-modal-standard
2048
+ [(open)]="open"
2049
+ [title]="title()"
2050
+ [description]="description()"
2051
+ [actions]="actions()"
2052
+ [options]="options()"
2053
+ [class]="cssClass()"
2054
+ (actionClick)="actionClick.emit($event)"
2055
+ (closed)="closed.emit()"
2056
+ >
2057
+ <ng-container [ngTemplateOutlet]="content" />
2058
+ </smart-modal-standard>
2059
+ }
2060
+ `,
2061
+ encapsulation: ViewEncapsulation.None,
2062
+ imports: [
2063
+ ModalStandardComponent,
2064
+ NgComponentOutlet,
2065
+ NgTemplateOutlet
2066
+ ],
2067
+ host: { class: "smart:contents" },
2068
+ changeDetection: ChangeDetectionStrategy.OnPush
2069
+ }]
2070
+ }],
2071
+ ctorParameters: () => [],
2072
+ propDecorators: {
2073
+ open: [{
2074
+ type: i0.Input,
2075
+ args: [{
2076
+ isSignal: true,
2077
+ alias: "open",
2078
+ required: false
2079
+ }]
2080
+ }, {
2081
+ type: i0.Output,
2082
+ args: ["openChange"]
2083
+ }],
2084
+ title: [{
2085
+ type: i0.Input,
2086
+ args: [{
2087
+ isSignal: true,
2088
+ alias: "title",
2089
+ required: false
2090
+ }]
2091
+ }],
2092
+ description: [{
2093
+ type: i0.Input,
2094
+ args: [{
2095
+ isSignal: true,
2096
+ alias: "description",
2097
+ required: false
2098
+ }]
2099
+ }],
2100
+ actions: [{
2101
+ type: i0.Input,
2102
+ args: [{
2103
+ isSignal: true,
2104
+ alias: "actions",
2105
+ required: false
2106
+ }]
2107
+ }],
2108
+ options: [{
2109
+ type: i0.Input,
2110
+ args: [{
2111
+ isSignal: true,
2112
+ alias: "options",
2113
+ required: false
2114
+ }]
2115
+ }],
2116
+ cssClass: [{
2117
+ type: i0.Input,
2118
+ args: [{
2119
+ isSignal: true,
2120
+ alias: "class",
2121
+ required: false
2122
+ }]
2123
+ }],
2124
+ actionClick: [{
2125
+ type: i0.Output,
2126
+ args: ["actionClick"]
2127
+ }],
2128
+ closed: [{
2129
+ type: i0.Output,
2130
+ args: ["closed"]
2131
+ }],
2132
+ outlet: [{
2133
+ type: i0.ViewChild,
2134
+ args: [i0.forwardRef(() => NgComponentOutlet), { isSignal: true }]
2135
+ }],
2136
+ contentTemplate: [{
2137
+ type: i0.ViewChild,
2138
+ args: ["content", { isSignal: true }]
2139
+ }]
2140
+ }
2141
+ });
1564
2142
  var ModalService = class ModalService {
2143
+ appRef = inject(ApplicationRef);
2144
+ environmentInjector = inject(EnvironmentInjector);
2145
+ injector = inject(Injector);
2146
+ document = inject(DOCUMENT);
2147
+ entries = [];
2148
+ onKeydown = (event) => {
2149
+ if (event.key !== "Escape" && event.key !== "Esc") return;
2150
+ if (this.entries[this.entries.length - 1]?.options.backdropDismiss === false) event.stopImmediatePropagation();
2151
+ };
1565
2152
  async show(options) {
1566
- if (options.mode === "bottom") {}
1567
- return {};
2153
+ const trigger = this.document.activeElement;
2154
+ let resolveDismiss;
2155
+ const dismissed = new Promise((resolve) => {
2156
+ resolveDismiss = resolve;
2157
+ });
2158
+ if (!this.entries.length) this.document.addEventListener("keydown", this.onKeydown);
2159
+ const elementInjector = Injector.create({
2160
+ providers: [{
2161
+ provide: ModalService,
2162
+ useValue: this
2163
+ }],
2164
+ parent: options.injector ?? this.injector
2165
+ });
2166
+ const content = createComponent(options.component, {
2167
+ environmentInjector: this.environmentInjector,
2168
+ elementInjector
2169
+ });
2170
+ const ref = createComponent(ModalComponent, {
2171
+ environmentInjector: this.environmentInjector,
2172
+ elementInjector,
2173
+ projectableNodes: [[content.location.nativeElement]]
2174
+ });
2175
+ const element = ref.location.nativeElement;
2176
+ const entry = {
2177
+ options,
2178
+ modal: {
2179
+ dismiss: (data = null) => {
2180
+ const index = this.entries.indexOf(entry);
2181
+ if (index === -1) return;
2182
+ this.entries.splice(index, 1);
2183
+ if (!this.entries.length) this.document.removeEventListener("keydown", this.onKeydown);
2184
+ content.destroy();
2185
+ ref.destroy();
2186
+ element.remove();
2187
+ trigger?.focus?.();
2188
+ resolveDismiss({ data });
2189
+ },
2190
+ onDidDismiss: () => dismissed
2191
+ }
2192
+ };
2193
+ this.setInputs(content, {
2194
+ ...options.props ?? {},
2195
+ dismiss: entry.modal.dismiss
2196
+ });
2197
+ ref.setInput("open", true);
2198
+ ref.setInput("options", { withDismiss: true });
2199
+ ref.setInput("class", this.getClasses(options).join(" "));
2200
+ ref.instance.closed.subscribe(() => entry.modal.dismiss());
2201
+ element.setAttribute("data-mode", options.mode ?? "default");
2202
+ element.addEventListener("click", (event) => this.onBackdropClick(event, options), true);
2203
+ this.entries.push(entry);
2204
+ this.document.body.appendChild(element);
2205
+ this.appRef.attachView(content.hostView);
2206
+ this.appRef.attachView(ref.hostView);
2207
+ content.changeDetectorRef.detectChanges();
2208
+ ref.changeDetectorRef.detectChanges();
2209
+ return entry.modal;
2210
+ }
2211
+ async dismiss(data = null) {
2212
+ this.entries[this.entries.length - 1]?.modal.dismiss(data);
2213
+ }
2214
+ ngOnDestroy() {
2215
+ [...this.entries].reverse().forEach((entry) => entry.modal.dismiss());
2216
+ this.document.removeEventListener("keydown", this.onKeydown);
2217
+ }
2218
+ getClasses(options) {
2219
+ return [...options.cssClass ?? [], ...options.mode === "bottom" ? ["smart-modal-bottom"] : []];
2220
+ }
2221
+ onBackdropClick(event, options) {
2222
+ if (options.backdropDismiss !== false) return;
2223
+ if (!event.target?.closest?.("[role=\"dialog\"]")) event.stopPropagation();
2224
+ }
2225
+ setInputs(ref, values) {
2226
+ const declared = reflectComponentType(ref.componentType)?.inputs ?? [];
2227
+ for (const { propName, templateName } of declared) if (templateName in values) ref.setInput(templateName, values[templateName]);
2228
+ else if (propName in values) ref.setInput(templateName, values[propName]);
1568
2229
  }
1569
- async dismiss(data = null) {}
1570
2230
  static ɵfac = i0.ɵɵngDeclareFactory({
1571
2231
  minVersion: "12.0.0",
1572
2232
  version: "22.2.2",
@@ -1746,87 +2406,6 @@ i0.ɵɵngDeclareClassMetadata({
1746
2406
  }]
1747
2407
  }]
1748
2408
  });
1749
- const FORM_COMPONENT_TOKEN = new InjectionToken("FORM_COMPONENT");
1750
- const DETAILS_COMPONENT_TOKEN = new InjectionToken("DETAILS_COMPONENT_TOKEN");
1751
- const ACTION_PANEL_STANDARD_COMPONENT_TOKEN = new InjectionToken("ACTION_PANEL_STANDARD_COMPONENT");
1752
- const ALERT_STANDARD_COMPONENT_TOKEN = new InjectionToken("ALERT_STANDARD_COMPONENT");
1753
- const BREADCRUMBS_STANDARD_COMPONENT_TOKEN = new InjectionToken("BREADCRUMBS_STANDARD_COMPONENT");
1754
- const BUTTON_STANDARD_COMPONENT_TOKEN = new InjectionToken("BUTTON_STANDARD_COMPONENT");
1755
- const CALENDAR_STANDARD_COMPONENT_TOKEN = new InjectionToken("CALENDAR_STANDARD_COMPONENT");
1756
- const CARD_STANDARD_COMPONENT_TOKEN = new InjectionToken("CARD_STANDARD_COMPONENT");
1757
- const CARD_HEADING_STANDARD_COMPONENT_TOKEN = new InjectionToken("CARD_HEADING_STANDARD_COMPONENT");
1758
- const COMMAND_PALETTE_STANDARD_COMPONENT_TOKEN = new InjectionToken("COMMAND_PALETTE_STANDARD_COMPONENT");
1759
- const DETAILS_STANDARD_COMPONENT_TOKEN = new InjectionToken("DETAILS_STANDARD_COMPONENT");
1760
- const DETAIL_FIELD_COMPONENTS_TOKEN = new InjectionToken("DETAIL_FIELD_COMPONENTS_TOKEN");
1761
- const EMPTY_STATE_STANDARD_COMPONENT_TOKEN = new InjectionToken("EMPTY_STATE_STANDARD_COMPONENT");
1762
- const FEED_STANDARD_COMPONENT_TOKEN = new InjectionToken("FEED_STANDARD_COMPONENT");
1763
- const DESCRIPTION_LIST_STANDARD_COMPONENT_TOKEN = new InjectionToken("DESCRIPTION_LIST_STANDARD_COMPONENT");
1764
- const FORM_STANDARD_COMPONENT_TOKEN = new InjectionToken("FORM_STANDARD_COMPONENT");
1765
- const GRID_LIST_STANDARD_COMPONENT_TOKEN = new InjectionToken("GRID_LIST_STANDARD_COMPONENT");
1766
- const INFO_STANDARD_COMPONENT_TOKEN = new InjectionToken("INFO_STANDARD_COMPONENT");
1767
- const INPUT_FIELD_COMPONENTS_TOKEN = new InjectionToken("INPUT_FIELD_COMPONENTS_TOKEN");
1768
- const LIST_MODE_COMPONENTS_TOKEN = new InjectionToken("LIST_MODE_COMPONENTS");
1769
- const LOADER_STANDARD_COMPONENT_TOKEN = new InjectionToken("LOADER_STANDARD_COMPONENT");
1770
- const MODAL_STANDARD_COMPONENT_TOKEN = new InjectionToken("MODAL_STANDARD_COMPONENT");
1771
- const AVATAR_STANDARD_COMPONENT_TOKEN = new InjectionToken("AVATAR_STANDARD_COMPONENT");
1772
- const BADGE_STANDARD_COMPONENT_TOKEN = new InjectionToken("BADGE_STANDARD_COMPONENT");
1773
- const BUTTON_GROUP_STANDARD_COMPONENT_TOKEN = new InjectionToken("BUTTON_GROUP_STANDARD_COMPONENT");
1774
- const CONTAINER_STANDARD_COMPONENT_TOKEN = new InjectionToken("CONTAINER_STANDARD_COMPONENT");
1775
- const DIVIDER_STANDARD_COMPONENT_TOKEN = new InjectionToken("DIVIDER_STANDARD_COMPONENT");
1776
- const DRAWER_STANDARD_COMPONENT_TOKEN = new InjectionToken("DRAWER_STANDARD_COMPONENT");
1777
- const DROPDOWN_STANDARD_COMPONENT_TOKEN = new InjectionToken("DROPDOWN_STANDARD_COMPONENT");
1778
- const LIST_CONTAINER_STANDARD_COMPONENT_TOKEN = new InjectionToken("LIST_CONTAINER_STANDARD_COMPONENT");
1779
- const MEDIA_OBJECT_STANDARD_COMPONENT_TOKEN = new InjectionToken("MEDIA_OBJECT_STANDARD_COMPONENT");
1780
- const NOTIFICATION_STANDARD_COMPONENT_TOKEN = new InjectionToken("NOTIFICATION_STANDARD_COMPONENT");
1781
- const MULTI_COLUMN_LAYOUT_STANDARD_COMPONENT_TOKEN = new InjectionToken("MULTI_COLUMN_LAYOUT_STANDARD_COMPONENT");
1782
- const NAVBAR_STANDARD_COMPONENT_TOKEN = new InjectionToken("NAVBAR_STANDARD_COMPONENT");
1783
- const PAGE_VARIANT_COMPONENTS_TOKEN = new InjectionToken("PAGE_VARIANT_COMPONENTS");
1784
- const PAGE_HEADING_STANDARD_COMPONENT_TOKEN = new InjectionToken("PAGE_HEADING_STANDARD_COMPONENT");
1785
- const PAGING_STANDARD_COMPONENT_TOKEN = new InjectionToken("PAGING_STANDARD_COMPONENT");
1786
- const PASSWORD_STRENGTH_STANDARD_COMPONENT_TOKEN = new InjectionToken("PASSWORD_STRENGTH_STANDARD_COMPONENT");
1787
- const PROGRESS_BARS_STANDARD_COMPONENT_TOKEN = new InjectionToken("PROGRESS_BARS_STANDARD_COMPONENT");
1788
- const SEARCHBAR_STANDARD_COMPONENT_TOKEN = new InjectionToken("SEARCHBAR_STANDARD_COMPONENT");
1789
- const SECTION_HEADING_STANDARD_COMPONENT_TOKEN = new InjectionToken("SECTION_HEADING_STANDARD_COMPONENT");
1790
- const SELECT_MENU_STANDARD_COMPONENT_TOKEN = new InjectionToken("SELECT_MENU_STANDARD_COMPONENT");
1791
- const SIDEBAR_LAYOUT_STANDARD_COMPONENT_TOKEN = new InjectionToken("SIDEBAR_LAYOUT_STANDARD_COMPONENT");
1792
- const SIDEBAR_NAVIGATION_STANDARD_COMPONENT_TOKEN = new InjectionToken("SIDEBAR_NAVIGATION_STANDARD_COMPONENT");
1793
- const SIGN_IN_FORM_STANDARD_COMPONENT_TOKEN = new InjectionToken("SIGN_IN_FORM_STANDARD_COMPONENT");
1794
- const STACKED_LAYOUT_STANDARD_COMPONENT_TOKEN = new InjectionToken("STACKED_LAYOUT_STANDARD_COMPONENT");
1795
- const STACKED_LIST_STANDARD_COMPONENT_TOKEN = new InjectionToken("STACKED_LIST_STANDARD_COMPONENT");
1796
- const STATS_STANDARD_COMPONENT_TOKEN = new InjectionToken("STATS_STANDARD_COMPONENT");
1797
- const TABLE_STANDARD_COMPONENT_TOKEN = new InjectionToken("TABLE_STANDARD_COMPONENT");
1798
- const TABS_STANDARD_COMPONENT_TOKEN = new InjectionToken("TABS_STANDARD_COMPONENT");
1799
- const TEXTAREA_STANDARD_COMPONENT_TOKEN = new InjectionToken("TEXTAREA_STANDARD_COMPONENT");
1800
- const TOGGLE_STANDARD_COMPONENT_TOKEN = new InjectionToken("TOGGLE_STANDARD_COMPONENT");
1801
- const VERTICAL_NAVIGATION_STANDARD_COMPONENT_TOKEN = new InjectionToken("VERTICAL_NAVIGATION_STANDARD_COMPONENT");
1802
- function forwardOutletOutputs(outlet, targets) {
1803
- afterRenderEffect((onCleanup) => {
1804
- const instance = outlet()?.componentInstance;
1805
- if (!instance) return;
1806
- const subscriptions = [];
1807
- for (const [name, target] of Object.entries(targets)) {
1808
- const source = instance[name];
1809
- if (typeof source?.subscribe !== "function") continue;
1810
- subscriptions.push(source.subscribe((value) => "emit" in target ? target.emit(value) : target.set(value)));
1811
- }
1812
- onCleanup(() => subscriptions.forEach((sub) => sub.unsubscribe()));
1813
- });
1814
- }
1815
- function outletInputs(component, inputs) {
1816
- const declared = component ? reflectComponentType(component)?.inputs : null;
1817
- if (!declared) return inputs;
1818
- const publicName = /* @__PURE__ */ new Map();
1819
- for (const { propName, templateName } of declared) {
1820
- publicName.set(propName, templateName);
1821
- publicName.set(templateName, templateName);
1822
- }
1823
- const resolved = {};
1824
- for (const [key, value] of Object.entries(inputs)) {
1825
- const name = publicName.get(key);
1826
- if (name) resolved[name] = value;
1827
- }
1828
- return resolved;
1829
- }
1830
2409
  var AlertComponent = class AlertComponent {
1831
2410
  injectedComponent = inject(ALERT_STANDARD_COMPONENT_TOKEN, { optional: true });
1832
2411
  options = input.required(...ngDevMode ? [{ debugName: "options" }] : /* istanbul ignore next */ []);
@@ -2238,30 +2817,47 @@ i0.ɵɵngDeclareClassMetadata({
2238
2817
  args: [{ selector: ".dynamic-content" }]
2239
2818
  }]
2240
2819
  });
2820
+ async function showDetailsModal(services, options, { showed, dismissed } = {}) {
2821
+ if (!options || !options.component) return;
2822
+ const modal = await services.modalService.show({
2823
+ component: options.component,
2824
+ props: { value: options.params },
2825
+ mode: options.mode ? options.mode : "bottom",
2826
+ injector: services.injector
2827
+ });
2828
+ showed?.();
2829
+ const handler = await services.hardwareService.onBackButtonClick(() => modal.dismiss());
2830
+ await modal.onDidDismiss();
2831
+ handler.remove();
2832
+ dismissed?.();
2833
+ }
2241
2834
  var DetailsDirective = class DetailsDirective {
2242
2835
  modalService = inject(ModalService);
2243
2836
  hardwareService = inject(HardwareService);
2837
+ injector = inject(Injector);
2838
+ destroyed = false;
2244
2839
  options = input.required({
2245
2840
  ...ngDevMode ? { debugName: "options" } : /* istanbul ignore next */ {},
2246
2841
  alias: "smartDetails"
2247
2842
  });
2248
2843
  smartDetailsShowed = output();
2249
2844
  smartDetailsDismissed = output();
2845
+ constructor() {
2846
+ inject(DestroyRef).onDestroy(() => this.destroyed = true);
2847
+ }
2250
2848
  async click() {
2251
- if (!this.options() || !this.options().component) return;
2252
- let modal = await this.modalService.show({
2253
- component: this.options().component,
2254
- props: { value: this.options().params },
2255
- mode: this.options().mode ? this.options().mode : "bottom"
2256
- });
2257
- this.smartDetailsShowed.emit();
2258
- const handler = await this.hardwareService.onBackButtonClick(async () => {
2259
- if (modal) await modal.dismiss();
2849
+ await showDetailsModal({
2850
+ modalService: this.modalService,
2851
+ hardwareService: this.hardwareService,
2852
+ injector: this.injector
2853
+ }, this.options(), {
2854
+ showed: () => {
2855
+ if (!this.destroyed) this.smartDetailsShowed.emit();
2856
+ },
2857
+ dismissed: () => {
2858
+ if (!this.destroyed) this.smartDetailsDismissed.emit();
2859
+ }
2260
2860
  });
2261
- await modal.onDidDismiss();
2262
- handler.remove();
2263
- modal = null;
2264
- this.smartDetailsDismissed.emit();
2265
2861
  }
2266
2862
  static ɵfac = i0.ɵɵngDeclareFactory({
2267
2863
  minVersion: "12.0.0",
@@ -2301,6 +2897,7 @@ i0.ɵɵngDeclareClassMetadata({
2301
2897
  type: Directive,
2302
2898
  args: [{ selector: "[smartDetails]" }]
2303
2899
  }],
2900
+ ctorParameters: () => [],
2304
2901
  propDecorators: {
2305
2902
  options: [{
2306
2903
  type: i0.Input,
@@ -3962,9 +4559,9 @@ function getAccordionPresetContentClasses() {
3962
4559
  function getAccordionPresetIconClasses() {
3963
4560
  return "smart:size-3.5 smart:shrink-0";
3964
4561
  }
3965
- let nextId$2 = 0;
4562
+ let nextId$4 = 0;
3966
4563
  var AccordionPresetComponent = class AccordionPresetComponent extends AccordionBaseComponent {
3967
- contentId = `smart-accordion-preset-${nextId$2++}`;
4564
+ contentId = `smart-accordion-preset-${nextId$4++}`;
3968
4565
  iconClasses = getAccordionPresetIconClasses();
3969
4566
  disabled = computed(() => this.options()?.disabled ?? false, ...ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []);
3970
4567
  containerClasses = computed(() => {
@@ -6577,22 +7174,6 @@ i0.ɵɵngDeclareClassMetadata({
6577
7174
  }]
6578
7175
  }] }
6579
7176
  });
6580
- function outletContent(template) {
6581
- const destroyRef = inject(DestroyRef);
6582
- const renderer = inject(Renderer2);
6583
- let content;
6584
- return () => {
6585
- if (!content) {
6586
- const view = template().createEmbeddedView(void 0);
6587
- const slot = renderer.createElement("span");
6588
- renderer.setStyle(slot, "display", "contents");
6589
- view.rootNodes.forEach((node) => renderer.appendChild(slot, node));
6590
- destroyRef.onDestroy(() => view.destroy());
6591
- content = [[slot]];
6592
- }
6593
- return content;
6594
- };
6595
- }
6596
7177
  var ButtonComponent = class ButtonComponent {
6597
7178
  injectedComponent = inject(BUTTON_STANDARD_COMPONENT_TOKEN, { optional: true });
6598
7179
  options = input.required(...ngDevMode ? [{ debugName: "options" }] : /* istanbul ignore next */ []);
@@ -19217,16 +19798,54 @@ i0.ɵɵngDeclareClassMetadata({
19217
19798
  });
19218
19799
  var InputPossibilitiesBaseComponent = class InputPossibilitiesBaseComponent extends InputBaseComponent {
19219
19800
  modelPossibilitiesProvider = inject(MODEL_POSSIBILITIES_PROVIDER, { optional: true });
19801
+ possibilitiesSources = signal({
19802
+ provider: null,
19803
+ options: null,
19804
+ model: null
19805
+ }, ...ngDevMode ? [{ debugName: "possibilitiesSources" }] : /* istanbul ignore next */ []);
19806
+ resolvedPossibilities = linkedSignal(() => {
19807
+ const { provider, options, model } = this.possibilitiesSources();
19808
+ return provider?.() ?? options?.() ?? model ?? null;
19809
+ }, ...ngDevMode ? [{ debugName: "resolvedPossibilities" }] : /* istanbul ignore next */ []);
19810
+ providerRefresh = null;
19811
+ possibilities = this.resolvedPossibilities;
19812
+ constructor() {
19813
+ super();
19814
+ effect(() => {
19815
+ this.resolvedPossibilities();
19816
+ untracked(() => this.afterPossibilitiesChange());
19817
+ });
19818
+ }
19220
19819
  afterSetOptionsHandler() {
19221
- const refreshPossibilities = () => {
19222
- if (this.getPossibilitiesFromProvider()) this.possibilities = this.getPossibilitiesFromProvider();
19223
- };
19224
- refreshPossibilities();
19225
- this.internalOptions.control.parent?.valueChanges.pipe(debounceTime(500)).subscribe(() => {
19226
- refreshPossibilities();
19227
- this.cd.detectChanges();
19820
+ untracked(() => {
19821
+ this.possibilitiesSources.set({
19822
+ provider: this.getPossibilitiesFromProvider(),
19823
+ options: this.internalOptions.possibilities ?? null,
19824
+ model: this.getModelPossibilities()
19825
+ });
19826
+ this.possibilities = this.resolvedPossibilities;
19827
+ this.afterPossibilitiesChange();
19828
+ this.watchProviderPossibilities();
19228
19829
  });
19229
19830
  }
19831
+ afterPossibilitiesChange() {}
19832
+ getModelPossibilities() {
19833
+ const possibilities = this.getModelFieldPossibilities();
19834
+ if (!possibilities || Array.isArray(possibilities)) return null;
19835
+ return Object.keys(possibilities).map((key) => ({
19836
+ id: possibilities[key],
19837
+ text: key,
19838
+ checked: false
19839
+ }));
19840
+ }
19841
+ getModelFieldPossibilities() {
19842
+ const model = this.internalOptions?.model;
19843
+ const fieldKey = this.internalOptions?.fieldKey;
19844
+ if (!model || !fieldKey) return null;
19845
+ let fieldOptions = getModelFieldOptions(model, fieldKey);
19846
+ if (!fieldOptions && model[0]) fieldOptions = getModelFieldOptions(model[0], fieldKey);
19847
+ return fieldOptions?.possibilities ?? null;
19848
+ }
19230
19849
  getPossibilitiesFromProvider() {
19231
19850
  if (!this.modelPossibilitiesProvider) return signal(null);
19232
19851
  return this.modelPossibilitiesProvider.get({
@@ -19235,12 +19854,32 @@ var InputPossibilitiesBaseComponent = class InputPossibilitiesBaseComponent exte
19235
19854
  instance: this.internalOptions.control.parent?.value
19236
19855
  });
19237
19856
  }
19857
+ refreshProviderPossibilities() {
19858
+ const sources = this.possibilitiesSources();
19859
+ const previous = sources.provider?.() ?? null;
19860
+ const next = this.getPossibilitiesFromProvider();
19861
+ this.possibilitiesSources.set({
19862
+ ...sources,
19863
+ provider: previous ? computed(() => next() ?? previous) : next
19864
+ });
19865
+ }
19866
+ watchProviderPossibilities() {
19867
+ this.providerRefresh?.unsubscribe();
19868
+ this.providerRefresh = null;
19869
+ const changes = this.internalOptions.control.parent?.valueChanges;
19870
+ if (!this.modelPossibilitiesProvider || !changes) return;
19871
+ this.providerRefresh = changes.pipe(debounceTime(500), this.takeUntilDestroy).subscribe(() => {
19872
+ this.refreshProviderPossibilities();
19873
+ this.afterPossibilitiesChange();
19874
+ this.cd.detectChanges();
19875
+ });
19876
+ }
19238
19877
  static ɵfac = i0.ɵɵngDeclareFactory({
19239
19878
  minVersion: "12.0.0",
19240
19879
  version: "22.2.2",
19241
19880
  ngImport: i0,
19242
19881
  type: InputPossibilitiesBaseComponent,
19243
- deps: null,
19882
+ deps: [],
19244
19883
  target: i0.ɵɵFactoryTarget.Directive
19245
19884
  });
19246
19885
  static ɵdir = i0.ɵɵngDeclareDirective({
@@ -19257,7 +19896,8 @@ i0.ɵɵngDeclareClassMetadata({
19257
19896
  version: "22.2.2",
19258
19897
  ngImport: i0,
19259
19898
  type: InputPossibilitiesBaseComponent,
19260
- decorators: [{ type: Directive }]
19899
+ decorators: [{ type: Directive }],
19900
+ ctorParameters: () => []
19261
19901
  });
19262
19902
  var InputColorComponent = class InputColorComponent extends InputBaseComponent {
19263
19903
  color;
@@ -21577,7 +22217,7 @@ i0.ɵɵngDeclareClassMetadata({
21577
22217
  }]
21578
22218
  });
21579
22219
  var InputCheckComponent = class InputCheckComponent extends InputPossibilitiesBaseComponent {
21580
- possibilities = signal(null, ...ngDevMode ? [{ debugName: "possibilities" }] : /* istanbul ignore next */ []);
22220
+ controlChanges = null;
21581
22221
  labelClasses = computed(() => [
21582
22222
  "smart:block",
21583
22223
  "smart:text-sm/6",
@@ -21592,13 +22232,16 @@ var InputCheckComponent = class InputCheckComponent extends InputPossibilitiesBa
21592
22232
  return classes.join(" ");
21593
22233
  }, ...ngDevMode ? [{ debugName: "groupClasses" }] : /* istanbul ignore next */ []);
21594
22234
  afterSetOptionsHandler() {
21595
- const current = this.possibilities();
21596
- if (this.internalOptions && !current) {
21597
- const fromModel = getModelFieldOptions(this.internalOptions.model, this.internalOptions.fieldKey)?.possibilities;
21598
- if (fromModel) this.possibilities.set(fromModel);
21599
- }
22235
+ super.afterSetOptionsHandler();
22236
+ this.controlChanges?.unsubscribe();
22237
+ this.controlChanges = this.control.valueChanges.pipe(this.takeUntilDestroy).subscribe(() => this.syncCheckedWithControl());
22238
+ }
22239
+ afterPossibilitiesChange() {
21600
22240
  this.syncCheckedWithControl();
21601
- this.control.valueChanges.pipe(this.takeUntilDestroy).subscribe(() => this.syncCheckedWithControl());
22241
+ }
22242
+ getModelPossibilities() {
22243
+ const possibilities = this.getModelFieldPossibilities();
22244
+ return Array.isArray(possibilities) ? possibilities : null;
21602
22245
  }
21603
22246
  syncCheckedWithControl() {
21604
22247
  const list = this.possibilities();
@@ -21611,7 +22254,7 @@ var InputCheckComponent = class InputCheckComponent extends InputPossibilitiesBa
21611
22254
  item.id = controlItem;
21612
22255
  item.checked = true;
21613
22256
  } else item.checked = false;
21614
- } else item.checked = item.id === value;
22257
+ } else item.checked = Array.isArray(value) ? value.includes(item.id) : item.id === value;
21615
22258
  });
21616
22259
  this.cd.detectChanges();
21617
22260
  }
@@ -24462,19 +25105,6 @@ var InputRadioComponent = class InputRadioComponent extends InputPossibilitiesBa
24462
25105
  if (extra) classes.push(extra);
24463
25106
  return classes.join(" ");
24464
25107
  }, ...ngDevMode ? [{ debugName: "groupClasses" }] : /* istanbul ignore next */ []);
24465
- afterSetOptionsHandler() {
24466
- if (this.internalOptions && !this.possibilities()) {
24467
- let options = getModelFieldOptions(this.internalOptions.model, this.internalOptions.fieldKey);
24468
- if (!options && this.internalOptions.model[0]) options = getModelFieldOptions(this.internalOptions.model[0], this.internalOptions.fieldKey);
24469
- const possibilities = options.possibilities;
24470
- if (!possibilities || _.isArray(possibilities)) return possibilities;
24471
- this.possibilities.set(Object.keys(possibilities).map((key) => ({
24472
- id: possibilities[key],
24473
- text: key,
24474
- checked: false
24475
- })));
24476
- }
24477
- }
24478
25108
  static ɵfac = i0.ɵɵngDeclareFactory({
24479
25109
  minVersion: "12.0.0",
24480
25110
  version: "22.2.2",
@@ -26307,7 +26937,7 @@ i0.ɵɵngDeclareClassMetadata({
26307
26937
  }]
26308
26938
  });
26309
26939
  var InputCheckPresetComponent = class InputCheckPresetComponent extends InputPossibilitiesBaseComponent {
26310
- possibilities = signal(null, ...ngDevMode ? [{ debugName: "possibilities" }] : /* istanbul ignore next */ []);
26940
+ controlChanges = null;
26311
26941
  labelClasses = computed(() => [
26312
26942
  "smart:block",
26313
26943
  "smart:text-sm",
@@ -26347,13 +26977,16 @@ var InputCheckPresetComponent = class InputCheckPresetComponent extends InputPos
26347
26977
  "smart:dark:text-gray-400"
26348
26978
  ].join(" "), ...ngDevMode ? [{ debugName: "optionLabelClasses" }] : /* istanbul ignore next */ []);
26349
26979
  afterSetOptionsHandler() {
26350
- const current = this.possibilities();
26351
- if (this.internalOptions && !current) {
26352
- const fromModel = getModelFieldOptions(this.internalOptions.model, this.internalOptions.fieldKey)?.possibilities;
26353
- if (fromModel) this.possibilities.set(fromModel);
26354
- }
26980
+ super.afterSetOptionsHandler();
26981
+ this.controlChanges?.unsubscribe();
26982
+ this.controlChanges = this.control.valueChanges.pipe(this.takeUntilDestroy).subscribe(() => this.syncCheckedWithControl());
26983
+ }
26984
+ afterPossibilitiesChange() {
26355
26985
  this.syncCheckedWithControl();
26356
- this.control.valueChanges.pipe(this.takeUntilDestroy).subscribe(() => this.syncCheckedWithControl());
26986
+ }
26987
+ getModelPossibilities() {
26988
+ const possibilities = this.getModelFieldPossibilities();
26989
+ return Array.isArray(possibilities) ? possibilities : null;
26357
26990
  }
26358
26991
  syncCheckedWithControl() {
26359
26992
  const list = this.possibilities();
@@ -26366,7 +26999,7 @@ var InputCheckPresetComponent = class InputCheckPresetComponent extends InputPos
26366
26999
  item.id = controlItem;
26367
27000
  item.checked = true;
26368
27001
  } else item.checked = false;
26369
- } else item.checked = item.id === value;
27002
+ } else item.checked = Array.isArray(value) ? value.includes(item.id) : item.id === value;
26370
27003
  });
26371
27004
  this.cd.detectChanges();
26372
27005
  }
@@ -27652,19 +28285,6 @@ var InputEnumPresetComponent = class InputEnumPresetComponent extends InputPossi
27652
28285
  if (extra) classes.push(extra);
27653
28286
  return classes.join(" ");
27654
28287
  }, ...ngDevMode ? [{ debugName: "selectClasses" }] : /* istanbul ignore next */ []);
27655
- afterSetOptionsHandler() {
27656
- if (this.internalOptions && !this.possibilities()) {
27657
- let options = getModelFieldOptions(this.internalOptions.model, this.internalOptions.fieldKey);
27658
- if (!options && this.internalOptions.model[0]) options = getModelFieldOptions(this.internalOptions.model[0], this.internalOptions.fieldKey);
27659
- const possibilities = options.possibilities;
27660
- if (!possibilities || _.isArray(possibilities)) return possibilities;
27661
- this.possibilities.set(Object.keys(possibilities).map((key) => ({
27662
- id: possibilities[key],
27663
- text: key,
27664
- checked: false
27665
- })));
27666
- }
27667
- }
27668
28288
  static ɵfac = i0.ɵɵngDeclareFactory({
27669
28289
  minVersion: "12.0.0",
27670
28290
  version: "22.2.2",
@@ -31348,19 +31968,6 @@ var InputRadioPresetComponent = class InputRadioPresetComponent extends InputPos
31348
31968
  "smart:text-gray-500",
31349
31969
  "smart:dark:text-gray-400"
31350
31970
  ].join(" "), ...ngDevMode ? [{ debugName: "itemLabelClasses" }] : /* istanbul ignore next */ []);
31351
- afterSetOptionsHandler() {
31352
- if (this.internalOptions && !this.possibilities()) {
31353
- let options = getModelFieldOptions(this.internalOptions.model, this.internalOptions.fieldKey);
31354
- if (!options && this.internalOptions.model[0]) options = getModelFieldOptions(this.internalOptions.model[0], this.internalOptions.fieldKey);
31355
- const possibilities = options.possibilities;
31356
- if (!possibilities || _.isArray(possibilities)) return possibilities;
31357
- this.possibilities.set(Object.keys(possibilities).map((key) => ({
31358
- id: possibilities[key],
31359
- text: key,
31360
- checked: false
31361
- })));
31362
- }
31363
- }
31364
31971
  static ɵfac = i0.ɵɵngDeclareFactory({
31365
31972
  minVersion: "12.0.0",
31366
31973
  version: "22.2.2",
@@ -34315,6 +34922,122 @@ i0.ɵɵngDeclareClassMetadata({
34315
34922
  }]
34316
34923
  }
34317
34924
  });
34925
+ var DetailsPage = class DetailsPage {
34926
+ modalService = inject(ModalService);
34927
+ styleService = inject(StyleService);
34928
+ elementRef = inject(ElementRef);
34929
+ value = input(...ngDevMode ? [void 0, { debugName: "value" }] : /* istanbul ignore next */ []);
34930
+ pageOptions = computed(() => {
34931
+ const value = this.value();
34932
+ return {
34933
+ title: value?.title ? value.title : "details",
34934
+ hideMenuButton: true,
34935
+ endButtons: this.getButtons(value)
34936
+ };
34937
+ }, ...ngDevMode ? [{ debugName: "pageOptions" }] : /* istanbul ignore next */ []);
34938
+ ngOnInit() {
34939
+ this.styleService.init(this.elementRef);
34940
+ }
34941
+ getButtons(value) {
34942
+ const buttons = [];
34943
+ if (value?.removeHandler) buttons.push({
34944
+ handler: () => {
34945
+ const item = value.item?.();
34946
+ if (item) value.removeHandler?.(item);
34947
+ this.modalService.dismiss();
34948
+ },
34949
+ icon: "trash"
34950
+ });
34951
+ if (value?.itemHandler) buttons.push({
34952
+ handler: () => {
34953
+ const item = value.item?.();
34954
+ if (item) value.itemHandler?.(item.id);
34955
+ this.modalService.dismiss();
34956
+ },
34957
+ icon: "arrow-forward-outline"
34958
+ });
34959
+ return buttons;
34960
+ }
34961
+ static ɵfac = i0.ɵɵngDeclareFactory({
34962
+ minVersion: "12.0.0",
34963
+ version: "22.2.2",
34964
+ ngImport: i0,
34965
+ type: DetailsPage,
34966
+ deps: [],
34967
+ target: i0.ɵɵFactoryTarget.Component
34968
+ });
34969
+ static ɵcmp = i0.ɵɵngDeclareComponent({
34970
+ minVersion: "17.0.0",
34971
+ version: "22.2.2",
34972
+ type: DetailsPage,
34973
+ isStandalone: true,
34974
+ selector: "ng-component",
34975
+ inputs: { value: {
34976
+ classPropertyName: "value",
34977
+ publicName: "value",
34978
+ isSignal: true,
34979
+ isRequired: false,
34980
+ transformFunction: null
34981
+ } },
34982
+ ngImport: i0,
34983
+ template: "@if (value(); as options) {\n<smart-details [options]=\"options\"></smart-details>\n}\n",
34984
+ styles: [":host{width:100%}\n"],
34985
+ dependencies: [{
34986
+ kind: "component",
34987
+ type: DetailsComponent,
34988
+ selector: "smart-details",
34989
+ inputs: ["options", "class"]
34990
+ }],
34991
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
34992
+ });
34993
+ };
34994
+ i0.ɵɵngDeclareClassMetadata({
34995
+ minVersion: "12.0.0",
34996
+ version: "22.2.2",
34997
+ ngImport: i0,
34998
+ type: DetailsPage,
34999
+ decorators: [{
35000
+ type: Component,
35001
+ args: [{
35002
+ imports: [DetailsComponent],
35003
+ changeDetection: ChangeDetectionStrategy.OnPush,
35004
+ template: "@if (value(); as options) {\n<smart-details [options]=\"options\"></smart-details>\n}\n",
35005
+ styles: [":host{width:100%}\n"]
35006
+ }]
35007
+ }],
35008
+ propDecorators: { value: [{
35009
+ type: i0.Input,
35010
+ args: [{
35011
+ isSignal: true,
35012
+ alias: "value",
35013
+ required: false
35014
+ }]
35015
+ }] }
35016
+ });
35017
+ function getListDefaultSort(sort) {
35018
+ if (!sort || typeof sort !== "object" || !sort.default) return null;
35019
+ return {
35020
+ key: sort.default,
35021
+ desc: !!sort.defaultDesc
35022
+ };
35023
+ }
35024
+ function getNextListSort(current, key) {
35025
+ return {
35026
+ key,
35027
+ desc: current?.key === key ? !current.desc : false
35028
+ };
35029
+ }
35030
+ function isListSortableKey(key) {
35031
+ return !key.startsWith("__array.");
35032
+ }
35033
+ function getListAriaSort(current, key) {
35034
+ if (current?.key !== key) return null;
35035
+ return current.desc ? "descending" : "ascending";
35036
+ }
35037
+ function getListSortIndicator(current, key) {
35038
+ if (current?.key !== key) return "↕";
35039
+ return current.desc ? "↓" : "↑";
35040
+ }
34318
35041
  var ListBaseComponent = class ListBaseComponent {
34319
35042
  static smartType = "list";
34320
35043
  _fields;
@@ -34324,6 +35047,8 @@ var ListBaseComponent = class ListBaseComponent {
34324
35047
  alertService = inject(AlertService);
34325
35048
  cd = inject(ChangeDetectorRef);
34326
35049
  translateService = inject(TranslateService);
35050
+ injector = inject(Injector);
35051
+ loadingNextPage = false;
34327
35052
  detailsComponent;
34328
35053
  selectMode;
34329
35054
  detailsComponentProps;
@@ -34331,6 +35056,7 @@ var ListBaseComponent = class ListBaseComponent {
34331
35056
  unselect;
34332
35057
  itemHandler = null;
34333
35058
  removeHandler = null;
35059
+ detailsHandler = null;
34334
35060
  checkRemoveHandler;
34335
35061
  detailsButtonOptions;
34336
35062
  removed = /* @__PURE__ */ new Set();
@@ -34352,6 +35078,17 @@ var ListBaseComponent = class ListBaseComponent {
34352
35078
  alias: "class"
34353
35079
  });
34354
35080
  contentTpl = viewChild("contentTpl", ...ngDevMode ? [{ debugName: "contentTpl" }] : /* istanbul ignore next */ []);
35081
+ sortable = computed(() => !!this.options().sort, ...ngDevMode ? [{ debugName: "sortable" }] : /* istanbul ignore next */ []);
35082
+ activeSort = linkedSignal({
35083
+ ...ngDevMode ? { debugName: "activeSort" } : /* istanbul ignore next */ {},
35084
+ source: () => this.options().sort,
35085
+ computation: (sort, previous) => previous && previous.source === sort ? previous.value : getListDefaultSort(sort)
35086
+ });
35087
+ infiniteScroll = computed(() => {
35088
+ const pagination = this.options().pagination;
35089
+ return pagination?.mode === PaginationMode.infiniteScroll && (pagination.page?.() ?? 1) < (pagination.totalPages?.() ?? 0);
35090
+ }, ...ngDevMode ? [{ debugName: "infiniteScroll" }] : /* istanbul ignore next */ []);
35091
+ infiniteScrollAnchor = viewChild("infiniteScrollAnchor", ...ngDevMode ? [{ debugName: "infiniteScrollAnchor" }] : /* istanbul ignore next */ []);
34355
35092
  constructor() {
34356
35093
  effect(() => {
34357
35094
  const options = this.options();
@@ -34395,21 +35132,23 @@ var ListBaseComponent = class ListBaseComponent {
34395
35132
  };
34396
35133
  }
34397
35134
  const details = options.details;
35135
+ this.detailsHandler = null;
34398
35136
  if (options.details) {
34399
35137
  if (!details?.provider) throw Error("Must set details provider");
34400
- if (details.component) {
34401
- this.detailsComponent = details.component;
34402
- this.detailsComponentProps = {
34403
- item: details.provider.item,
34404
- type: options.type,
34405
- loading: details.provider.loading,
34406
- itemHandler: this.itemHandler ?? null,
34407
- removeHandler: this.removeHandler,
34408
- componentFactories: details.componentFactories
34409
- };
34410
- }
35138
+ this.detailsComponent = details.component;
35139
+ this.detailsComponentProps = {
35140
+ item: details.provider.item,
35141
+ type: options.type,
35142
+ loading: details.provider.loading,
35143
+ itemHandler: this.itemHandler ?? null,
35144
+ removeHandler: this.removeHandler,
35145
+ componentFactories: details.componentFactories
35146
+ };
34411
35147
  this.select = details.provider.getData;
34412
35148
  this.unselect = details.provider.clearData;
35149
+ this.detailsHandler = (item) => {
35150
+ this.openDetails(item);
35151
+ };
34413
35152
  }
34414
35153
  if (options.pagination) {
34415
35154
  this.loadNextPage = async (event = null) => {
@@ -34431,6 +35170,21 @@ var ListBaseComponent = class ListBaseComponent {
34431
35170
  }
34432
35171
  this.afterInitOptions();
34433
35172
  });
35173
+ effect((onCleanup) => {
35174
+ const pagination = this.options().pagination;
35175
+ const target = this.infiniteScrollAnchor()?.nativeElement;
35176
+ pagination?.page?.();
35177
+ if (!this.infiniteScroll() || !target || typeof IntersectionObserver === "undefined") return;
35178
+ const observer = new IntersectionObserver((entries) => {
35179
+ if (this.loadingNextPage || !entries.some((entry) => entry.isIntersecting)) return;
35180
+ this.loadingNextPage = true;
35181
+ Promise.resolve(pagination?.loadNextPage?.()).finally(() => {
35182
+ this.loadingNextPage = false;
35183
+ });
35184
+ });
35185
+ observer.observe(target);
35186
+ onCleanup(() => observer.disconnect());
35187
+ });
34434
35188
  this.detailsButtonOptions = {
34435
35189
  loading: this.loading,
34436
35190
  click: () => {
@@ -34466,6 +35220,39 @@ var ListBaseComponent = class ListBaseComponent {
34466
35220
  this.loading = this.provider.loading;
34467
35221
  }
34468
35222
  afterInitOptions() {}
35223
+ isSortable(key) {
35224
+ return this.sortable() && isListSortableKey(key);
35225
+ }
35226
+ sortBy(key) {
35227
+ if (!this.isSortable(key)) return;
35228
+ const next = getNextListSort(this.activeSort(), key);
35229
+ const filter = {
35230
+ offset: 0,
35231
+ sortBy: next.key,
35232
+ sortDesc: next.desc
35233
+ };
35234
+ this.activeSort.set(next);
35235
+ this.provider.getData(filter);
35236
+ }
35237
+ ariaSort(key) {
35238
+ return this.isSortable(key) ? getListAriaSort(this.activeSort(), key) : null;
35239
+ }
35240
+ sortIndicator(key) {
35241
+ return getListSortIndicator(this.activeSort(), key);
35242
+ }
35243
+ async openDetails(item) {
35244
+ if (!this.select) return;
35245
+ this.unselect?.();
35246
+ await showDetailsModal({
35247
+ modalService: this.injector.get(ModalService),
35248
+ hardwareService: this.injector.get(HardwareService),
35249
+ injector: this.injector
35250
+ }, {
35251
+ component: this.detailsComponent ?? DetailsPage,
35252
+ params: this.detailsComponentProps,
35253
+ mode: "bottom"
35254
+ }, { showed: () => this.select(item.id) });
35255
+ }
34469
35256
  handlePageChange(nextPage) {
34470
35257
  const current = this.page?.() ?? 1;
34471
35258
  if (nextPage > current) this.loadNextPage?.();
@@ -34506,6 +35293,12 @@ var ListBaseComponent = class ListBaseComponent {
34506
35293
  predicate: ["contentTpl"],
34507
35294
  descendants: true,
34508
35295
  isSignal: true
35296
+ }, {
35297
+ propertyName: "infiniteScrollAnchor",
35298
+ first: true,
35299
+ predicate: ["infiniteScrollAnchor"],
35300
+ descendants: true,
35301
+ isSignal: true
34509
35302
  }],
34510
35303
  ngImport: i0
34511
35304
  });
@@ -34537,6 +35330,10 @@ i0.ɵɵngDeclareClassMetadata({
34537
35330
  contentTpl: [{
34538
35331
  type: i0.ViewChild,
34539
35332
  args: ["contentTpl", { isSignal: true }]
35333
+ }],
35334
+ infiniteScrollAnchor: [{
35335
+ type: i0.ViewChild,
35336
+ args: ["infiniteScrollAnchor", { isSignal: true }]
34540
35337
  }]
34541
35338
  }
34542
35339
  });
@@ -34562,6 +35359,7 @@ var ListDesktopComponent = class ListDesktopComponent extends ListBaseComponent
34562
35359
  if (this.keys) return [
34563
35360
  ...this.selectMode === "multi" ? ["selectMulti"] : [],
34564
35361
  ...this.keys,
35362
+ ...this.detailsHandler ? ["detailsAction"] : [],
34565
35363
  ...this.removeHandler ? ["removeAction"] : [],
34566
35364
  ...this.itemHandler ? ["itemAction"] : []
34567
35365
  ];
@@ -34624,7 +35422,7 @@ var ListDesktopComponent = class ListDesktopComponent extends ListBaseComponent
34624
35422
  }],
34625
35423
  usesInheritance: true,
34626
35424
  ngImport: i0,
34627
- template: "<div #topTpl></div>\n\n<div class=\"smart:overflow-x-auto\">\n <table\n cdk-table\n [dataSource]=\"desktopList() ?? []\"\n [trackBy]=\"myTrackById\"\n [class]=\"containerClasses()\"\n >\n @for (key of desktopKeys; track key) {\n @let last = $last;\n <ng-template #pagination>\n @if (last && loadNextPage && totalPages()) {\n <div class=\"smart:float-right smart:text-sm smart:text-gray-500\">\n {{ 'page' | translate }}:\n <b>{{ page() }}/{{ totalPages() }}</b>\n </div>\n }\n </ng-template>\n <ng-container [cdkColumnDef]=\"key\">\n @switch (key) {\n @case ('selectMulti') {\n <th\n cdk-header-cell\n *cdkHeaderCellDef\n class=\"smart:w-10 smart:px-3 smart:py-3.5\"\n ></th>\n <td\n cdk-cell\n *cdkCellDef=\"let element\"\n class=\"smart:w-10 smart:px-3 smart:py-4\"\n >\n @let listValue = desktopList();\n @if (listValue) {\n <input\n type=\"checkbox\"\n class=\"smart:rounded smart:border-gray-300 smart:text-indigo-600 smart:focus:ring-indigo-600\"\n (change)=\"\n onChangeMultiselect(\n $any($event.target).checked,\n element,\n listValue\n )\n \"\n />\n }\n </td>\n }\n @case ('removeAction') {\n <th\n cdk-header-cell\n *cdkHeaderCellDef\n class=\"smart:w-10 smart:px-3 smart:py-3.5\"\n >\n <ng-container *ngTemplateOutlet=\"pagination\"></ng-container>\n </th>\n <td\n cdk-cell\n *cdkCellDef=\"let element\"\n class=\"smart:w-10 smart:px-3 smart:py-4\"\n >\n @if (!checkRemoveHandler || checkRemoveHandler(element)) {\n <button\n type=\"button\"\n class=\"smart:text-red-600 smart:hover:text-red-900 smart:dark:text-red-400 smart:dark:hover:text-red-300\"\n (click)=\"removeHandler?.(element)\"\n >\n {{ 'remove' | translate }}\n </button>\n }\n </td>\n }\n @case ('itemAction') {\n <th\n cdk-header-cell\n *cdkHeaderCellDef\n class=\"smart:w-10 smart:px-3 smart:py-3.5\"\n >\n <ng-container *ngTemplateOutlet=\"pagination\"></ng-container>\n </th>\n <td\n cdk-cell\n *cdkCellDef=\"let element\"\n class=\"smart:w-10 smart:px-3 smart:py-4\"\n >\n <button\n type=\"button\"\n class=\"smart:text-indigo-600 smart:hover:text-indigo-900 smart:dark:text-indigo-400 smart:dark:hover:text-indigo-300\"\n (click)=\"itemHandler?.(element.id)\"\n >\n →\n </button>\n </td>\n }\n @default {\n <th\n cdk-header-cell\n *cdkHeaderCellDef\n class=\"smart:px-3 smart:py-3.5 smart:text-left smart:text-sm smart:font-semibold smart:text-gray-900 smart:dark:text-white\"\n >\n {{ (desktopList() | smartListHeader: key : type)() }}\n <ng-container *ngTemplateOutlet=\"pagination\"></ng-container>\n </th>\n <td\n cdk-cell\n *cdkCellDef=\"let element\"\n class=\"smart:px-3 smart:py-4 smart:text-sm smart:text-gray-700 smart:dark:text-gray-300\"\n [attr.smart-item-key]=\"key\"\n >\n @let cell = element | smartListCell: key : cellPipe : type;\n @if (cell) {\n @if (cell.type === FieldType.image) {\n <img\n height=\"50\"\n [lazyLoad]=\"cell.value | smartFileUrl\"\n alt=\"\"\n src=\"\"\n class=\"smart:h-10 smart:w-auto\"\n />\n } @else {\n <div [innerHTML]=\"cell.value\"></div>\n }\n }\n </td>\n }\n }\n </ng-container>\n }\n\n <tr\n cdk-header-row\n *cdkHeaderRowDef=\"desktopKeys ?? []; sticky: true\"\n class=\"smart:bg-gray-50 smart:dark:bg-gray-800/50\"\n ></tr>\n <tr\n cdk-row\n *cdkRowDef=\"let row; columns: desktopKeys ?? []\"\n class=\"smart:hover:bg-gray-50 smart:dark:hover:bg-gray-800/30\"\n ></tr>\n </table>\n</div>\n\n@if (options()?.pagination?.mode === PaginationMode.singlePage) {\n <smart-paging\n [currentPage]=\"page() ?? 1\"\n [totalPages]=\"totalPages() ?? 1\"\n (pageChange)=\"handlePageChange($event)\"\n ></smart-paging>\n}\n",
35425
+ template: "<div #topTpl></div>\n\n<div class=\"smart:overflow-x-auto\">\n <table\n cdk-table\n [dataSource]=\"desktopList() ?? []\"\n [trackBy]=\"myTrackById\"\n [class]=\"containerClasses()\"\n >\n @for (key of desktopKeys; track key) {\n @let last = $last;\n <ng-template #pagination>\n @if (last && loadNextPage && totalPages()) {\n <div class=\"smart:float-right smart:text-sm smart:text-gray-500\">\n {{ 'page' | translate }}:\n <b>{{ page() }}/{{ totalPages() }}</b>\n </div>\n }\n </ng-template>\n <ng-container [cdkColumnDef]=\"key\">\n @switch (key) {\n @case ('selectMulti') {\n <th\n cdk-header-cell\n *cdkHeaderCellDef\n class=\"smart:w-10 smart:px-3 smart:py-3.5\"\n ></th>\n <td\n cdk-cell\n *cdkCellDef=\"let element\"\n class=\"smart:w-10 smart:px-3 smart:py-4\"\n >\n @let listValue = desktopList();\n @if (listValue) {\n <input\n type=\"checkbox\"\n class=\"smart:rounded smart:border-gray-300 smart:text-indigo-600 smart:focus:ring-indigo-600\"\n (change)=\"\n onChangeMultiselect(\n $any($event.target).checked,\n element,\n listValue\n )\n \"\n />\n }\n </td>\n }\n @case ('detailsAction') {\n <th\n cdk-header-cell\n *cdkHeaderCellDef\n class=\"smart:w-10 smart:px-3 smart:py-3.5\"\n >\n <ng-container *ngTemplateOutlet=\"pagination\"></ng-container>\n </th>\n <td\n cdk-cell\n *cdkCellDef=\"let element\"\n class=\"smart:w-10 smart:px-3 smart:py-4\"\n >\n <button\n type=\"button\"\n data-role=\"details\"\n class=\"smart:text-indigo-600 smart:hover:text-indigo-900 smart:dark:text-indigo-400 smart:dark:hover:text-indigo-300\"\n (click)=\"detailsHandler?.(element)\"\n >\n {{ 'show' | translate }}\n </button>\n </td>\n }\n @case ('removeAction') {\n <th\n cdk-header-cell\n *cdkHeaderCellDef\n class=\"smart:w-10 smart:px-3 smart:py-3.5\"\n >\n <ng-container *ngTemplateOutlet=\"pagination\"></ng-container>\n </th>\n <td\n cdk-cell\n *cdkCellDef=\"let element\"\n class=\"smart:w-10 smart:px-3 smart:py-4\"\n >\n @if (!checkRemoveHandler || checkRemoveHandler(element)) {\n <button\n type=\"button\"\n class=\"smart:text-red-600 smart:hover:text-red-900 smart:dark:text-red-400 smart:dark:hover:text-red-300\"\n (click)=\"removeHandler?.(element)\"\n >\n {{ 'remove' | translate }}\n </button>\n }\n </td>\n }\n @case ('itemAction') {\n <th\n cdk-header-cell\n *cdkHeaderCellDef\n class=\"smart:w-10 smart:px-3 smart:py-3.5\"\n >\n <ng-container *ngTemplateOutlet=\"pagination\"></ng-container>\n </th>\n <td\n cdk-cell\n *cdkCellDef=\"let element\"\n class=\"smart:w-10 smart:px-3 smart:py-4\"\n >\n <button\n type=\"button\"\n class=\"smart:text-indigo-600 smart:hover:text-indigo-900 smart:dark:text-indigo-400 smart:dark:hover:text-indigo-300\"\n (click)=\"itemHandler?.(element.id)\"\n >\n →\n </button>\n </td>\n }\n @default {\n <th\n cdk-header-cell\n *cdkHeaderCellDef\n class=\"smart:px-3 smart:py-3.5 smart:text-left smart:text-sm smart:font-semibold smart:text-gray-900 smart:dark:text-white\"\n [attr.aria-sort]=\"ariaSort(key)\"\n >\n @if (isSortable(key)) {\n <button\n type=\"button\"\n data-role=\"sort\"\n class=\"smart:inline-flex smart:items-center smart:gap-x-1 smart:font-semibold smart:text-gray-900 smart:hover:text-indigo-600 smart:dark:text-white smart:dark:hover:text-indigo-400\"\n (click)=\"sortBy(key)\"\n >\n {{ (desktopList() | smartListHeader: key : type)() }}\n <span\n aria-hidden=\"true\"\n class=\"smart:text-gray-400 smart:dark:text-gray-500\"\n >{{ sortIndicator(key) }}</span\n >\n </button>\n } @else {\n {{ (desktopList() | smartListHeader: key : type)() }}\n }\n <ng-container *ngTemplateOutlet=\"pagination\"></ng-container>\n </th>\n <td\n cdk-cell\n *cdkCellDef=\"let element\"\n class=\"smart:px-3 smart:py-4 smart:text-sm smart:text-gray-700 smart:dark:text-gray-300\"\n [attr.smart-item-key]=\"key\"\n >\n @let cell = element | smartListCell: key : cellPipe : type;\n @if (cell) {\n @if (cell.type === FieldType.image) {\n <img\n height=\"50\"\n [lazyLoad]=\"cell.value | smartFileUrl\"\n alt=\"\"\n src=\"\"\n class=\"smart:h-10 smart:w-auto\"\n />\n } @else {\n <div [innerHTML]=\"cell.value\"></div>\n }\n }\n </td>\n }\n }\n </ng-container>\n }\n\n <tr\n cdk-header-row\n *cdkHeaderRowDef=\"desktopKeys ?? []; sticky: true\"\n class=\"smart:bg-gray-50 smart:dark:bg-gray-800/50\"\n ></tr>\n <tr\n cdk-row\n *cdkRowDef=\"let row; columns: desktopKeys ?? []\"\n class=\"smart:hover:bg-gray-50 smart:dark:hover:bg-gray-800/30\"\n ></tr>\n </table>\n</div>\n\n@if (options()?.pagination?.mode === PaginationMode.singlePage) {\n <smart-paging\n [currentPage]=\"page() ?? 1\"\n [totalPages]=\"totalPages() ?? 1\"\n (pageChange)=\"handlePageChange($event)\"\n ></smart-paging>\n}\n\n@if (infiniteScroll()) {\n <div\n #infiniteScrollAnchor\n data-role=\"infinite-scroll\"\n aria-hidden=\"true\"\n ></div>\n}\n",
34628
35426
  dependencies: [
34629
35427
  {
34630
35428
  kind: "directive",
@@ -34792,7 +35590,7 @@ i0.ɵɵngDeclareClassMetadata({
34792
35590
  CdkHeaderRowDef,
34793
35591
  CdkRowDef
34794
35592
  ],
34795
- template: "<div #topTpl></div>\n\n<div class=\"smart:overflow-x-auto\">\n <table\n cdk-table\n [dataSource]=\"desktopList() ?? []\"\n [trackBy]=\"myTrackById\"\n [class]=\"containerClasses()\"\n >\n @for (key of desktopKeys; track key) {\n @let last = $last;\n <ng-template #pagination>\n @if (last && loadNextPage && totalPages()) {\n <div class=\"smart:float-right smart:text-sm smart:text-gray-500\">\n {{ 'page' | translate }}:\n <b>{{ page() }}/{{ totalPages() }}</b>\n </div>\n }\n </ng-template>\n <ng-container [cdkColumnDef]=\"key\">\n @switch (key) {\n @case ('selectMulti') {\n <th\n cdk-header-cell\n *cdkHeaderCellDef\n class=\"smart:w-10 smart:px-3 smart:py-3.5\"\n ></th>\n <td\n cdk-cell\n *cdkCellDef=\"let element\"\n class=\"smart:w-10 smart:px-3 smart:py-4\"\n >\n @let listValue = desktopList();\n @if (listValue) {\n <input\n type=\"checkbox\"\n class=\"smart:rounded smart:border-gray-300 smart:text-indigo-600 smart:focus:ring-indigo-600\"\n (change)=\"\n onChangeMultiselect(\n $any($event.target).checked,\n element,\n listValue\n )\n \"\n />\n }\n </td>\n }\n @case ('removeAction') {\n <th\n cdk-header-cell\n *cdkHeaderCellDef\n class=\"smart:w-10 smart:px-3 smart:py-3.5\"\n >\n <ng-container *ngTemplateOutlet=\"pagination\"></ng-container>\n </th>\n <td\n cdk-cell\n *cdkCellDef=\"let element\"\n class=\"smart:w-10 smart:px-3 smart:py-4\"\n >\n @if (!checkRemoveHandler || checkRemoveHandler(element)) {\n <button\n type=\"button\"\n class=\"smart:text-red-600 smart:hover:text-red-900 smart:dark:text-red-400 smart:dark:hover:text-red-300\"\n (click)=\"removeHandler?.(element)\"\n >\n {{ 'remove' | translate }}\n </button>\n }\n </td>\n }\n @case ('itemAction') {\n <th\n cdk-header-cell\n *cdkHeaderCellDef\n class=\"smart:w-10 smart:px-3 smart:py-3.5\"\n >\n <ng-container *ngTemplateOutlet=\"pagination\"></ng-container>\n </th>\n <td\n cdk-cell\n *cdkCellDef=\"let element\"\n class=\"smart:w-10 smart:px-3 smart:py-4\"\n >\n <button\n type=\"button\"\n class=\"smart:text-indigo-600 smart:hover:text-indigo-900 smart:dark:text-indigo-400 smart:dark:hover:text-indigo-300\"\n (click)=\"itemHandler?.(element.id)\"\n >\n →\n </button>\n </td>\n }\n @default {\n <th\n cdk-header-cell\n *cdkHeaderCellDef\n class=\"smart:px-3 smart:py-3.5 smart:text-left smart:text-sm smart:font-semibold smart:text-gray-900 smart:dark:text-white\"\n >\n {{ (desktopList() | smartListHeader: key : type)() }}\n <ng-container *ngTemplateOutlet=\"pagination\"></ng-container>\n </th>\n <td\n cdk-cell\n *cdkCellDef=\"let element\"\n class=\"smart:px-3 smart:py-4 smart:text-sm smart:text-gray-700 smart:dark:text-gray-300\"\n [attr.smart-item-key]=\"key\"\n >\n @let cell = element | smartListCell: key : cellPipe : type;\n @if (cell) {\n @if (cell.type === FieldType.image) {\n <img\n height=\"50\"\n [lazyLoad]=\"cell.value | smartFileUrl\"\n alt=\"\"\n src=\"\"\n class=\"smart:h-10 smart:w-auto\"\n />\n } @else {\n <div [innerHTML]=\"cell.value\"></div>\n }\n }\n </td>\n }\n }\n </ng-container>\n }\n\n <tr\n cdk-header-row\n *cdkHeaderRowDef=\"desktopKeys ?? []; sticky: true\"\n class=\"smart:bg-gray-50 smart:dark:bg-gray-800/50\"\n ></tr>\n <tr\n cdk-row\n *cdkRowDef=\"let row; columns: desktopKeys ?? []\"\n class=\"smart:hover:bg-gray-50 smart:dark:hover:bg-gray-800/30\"\n ></tr>\n </table>\n</div>\n\n@if (options()?.pagination?.mode === PaginationMode.singlePage) {\n <smart-paging\n [currentPage]=\"page() ?? 1\"\n [totalPages]=\"totalPages() ?? 1\"\n (pageChange)=\"handlePageChange($event)\"\n ></smart-paging>\n}\n"
35593
+ template: "<div #topTpl></div>\n\n<div class=\"smart:overflow-x-auto\">\n <table\n cdk-table\n [dataSource]=\"desktopList() ?? []\"\n [trackBy]=\"myTrackById\"\n [class]=\"containerClasses()\"\n >\n @for (key of desktopKeys; track key) {\n @let last = $last;\n <ng-template #pagination>\n @if (last && loadNextPage && totalPages()) {\n <div class=\"smart:float-right smart:text-sm smart:text-gray-500\">\n {{ 'page' | translate }}:\n <b>{{ page() }}/{{ totalPages() }}</b>\n </div>\n }\n </ng-template>\n <ng-container [cdkColumnDef]=\"key\">\n @switch (key) {\n @case ('selectMulti') {\n <th\n cdk-header-cell\n *cdkHeaderCellDef\n class=\"smart:w-10 smart:px-3 smart:py-3.5\"\n ></th>\n <td\n cdk-cell\n *cdkCellDef=\"let element\"\n class=\"smart:w-10 smart:px-3 smart:py-4\"\n >\n @let listValue = desktopList();\n @if (listValue) {\n <input\n type=\"checkbox\"\n class=\"smart:rounded smart:border-gray-300 smart:text-indigo-600 smart:focus:ring-indigo-600\"\n (change)=\"\n onChangeMultiselect(\n $any($event.target).checked,\n element,\n listValue\n )\n \"\n />\n }\n </td>\n }\n @case ('detailsAction') {\n <th\n cdk-header-cell\n *cdkHeaderCellDef\n class=\"smart:w-10 smart:px-3 smart:py-3.5\"\n >\n <ng-container *ngTemplateOutlet=\"pagination\"></ng-container>\n </th>\n <td\n cdk-cell\n *cdkCellDef=\"let element\"\n class=\"smart:w-10 smart:px-3 smart:py-4\"\n >\n <button\n type=\"button\"\n data-role=\"details\"\n class=\"smart:text-indigo-600 smart:hover:text-indigo-900 smart:dark:text-indigo-400 smart:dark:hover:text-indigo-300\"\n (click)=\"detailsHandler?.(element)\"\n >\n {{ 'show' | translate }}\n </button>\n </td>\n }\n @case ('removeAction') {\n <th\n cdk-header-cell\n *cdkHeaderCellDef\n class=\"smart:w-10 smart:px-3 smart:py-3.5\"\n >\n <ng-container *ngTemplateOutlet=\"pagination\"></ng-container>\n </th>\n <td\n cdk-cell\n *cdkCellDef=\"let element\"\n class=\"smart:w-10 smart:px-3 smart:py-4\"\n >\n @if (!checkRemoveHandler || checkRemoveHandler(element)) {\n <button\n type=\"button\"\n class=\"smart:text-red-600 smart:hover:text-red-900 smart:dark:text-red-400 smart:dark:hover:text-red-300\"\n (click)=\"removeHandler?.(element)\"\n >\n {{ 'remove' | translate }}\n </button>\n }\n </td>\n }\n @case ('itemAction') {\n <th\n cdk-header-cell\n *cdkHeaderCellDef\n class=\"smart:w-10 smart:px-3 smart:py-3.5\"\n >\n <ng-container *ngTemplateOutlet=\"pagination\"></ng-container>\n </th>\n <td\n cdk-cell\n *cdkCellDef=\"let element\"\n class=\"smart:w-10 smart:px-3 smart:py-4\"\n >\n <button\n type=\"button\"\n class=\"smart:text-indigo-600 smart:hover:text-indigo-900 smart:dark:text-indigo-400 smart:dark:hover:text-indigo-300\"\n (click)=\"itemHandler?.(element.id)\"\n >\n →\n </button>\n </td>\n }\n @default {\n <th\n cdk-header-cell\n *cdkHeaderCellDef\n class=\"smart:px-3 smart:py-3.5 smart:text-left smart:text-sm smart:font-semibold smart:text-gray-900 smart:dark:text-white\"\n [attr.aria-sort]=\"ariaSort(key)\"\n >\n @if (isSortable(key)) {\n <button\n type=\"button\"\n data-role=\"sort\"\n class=\"smart:inline-flex smart:items-center smart:gap-x-1 smart:font-semibold smart:text-gray-900 smart:hover:text-indigo-600 smart:dark:text-white smart:dark:hover:text-indigo-400\"\n (click)=\"sortBy(key)\"\n >\n {{ (desktopList() | smartListHeader: key : type)() }}\n <span\n aria-hidden=\"true\"\n class=\"smart:text-gray-400 smart:dark:text-gray-500\"\n >{{ sortIndicator(key) }}</span\n >\n </button>\n } @else {\n {{ (desktopList() | smartListHeader: key : type)() }}\n }\n <ng-container *ngTemplateOutlet=\"pagination\"></ng-container>\n </th>\n <td\n cdk-cell\n *cdkCellDef=\"let element\"\n class=\"smart:px-3 smart:py-4 smart:text-sm smart:text-gray-700 smart:dark:text-gray-300\"\n [attr.smart-item-key]=\"key\"\n >\n @let cell = element | smartListCell: key : cellPipe : type;\n @if (cell) {\n @if (cell.type === FieldType.image) {\n <img\n height=\"50\"\n [lazyLoad]=\"cell.value | smartFileUrl\"\n alt=\"\"\n src=\"\"\n class=\"smart:h-10 smart:w-auto\"\n />\n } @else {\n <div [innerHTML]=\"cell.value\"></div>\n }\n }\n </td>\n }\n }\n </ng-container>\n }\n\n <tr\n cdk-header-row\n *cdkHeaderRowDef=\"desktopKeys ?? []; sticky: true\"\n class=\"smart:bg-gray-50 smart:dark:bg-gray-800/50\"\n ></tr>\n <tr\n cdk-row\n *cdkRowDef=\"let row; columns: desktopKeys ?? []\"\n class=\"smart:hover:bg-gray-50 smart:dark:hover:bg-gray-800/30\"\n ></tr>\n </table>\n</div>\n\n@if (options()?.pagination?.mode === PaginationMode.singlePage) {\n <smart-paging\n [currentPage]=\"page() ?? 1\"\n [totalPages]=\"totalPages() ?? 1\"\n (pageChange)=\"handlePageChange($event)\"\n ></smart-paging>\n}\n\n@if (infiniteScroll()) {\n <div\n #infiniteScrollAnchor\n data-role=\"infinite-scroll\"\n aria-hidden=\"true\"\n ></div>\n}\n"
34796
35594
  }]
34797
35595
  }],
34798
35596
  propDecorators: { topTpl: [{
@@ -34866,7 +35664,7 @@ var ListMasonryGridComponent = class ListMasonryGridComponent extends ListBaseCo
34866
35664
  }],
34867
35665
  usesInheritance: true,
34868
35666
  ngImport: i0,
34869
- template: "<div #topTpl></div>\n\n<ul role=\"list\" [class]=\"containerClasses()\">\n @for (item of listWithImages() ?? []; track item.data.id) {\n <li\n class=\"smart:col-span-1 smart:rounded-lg smart:bg-white smart:shadow-sm smart:dark:bg-gray-800/50 smart:overflow-hidden\"\n >\n @if (item.image) {\n <img\n class=\"smart:h-48 smart:w-full smart:object-cover\"\n [ngSrc]=\"item.image | smartFileUrl\"\n width=\"400\"\n height=\"192\"\n alt=\"\"\n />\n }\n <div class=\"smart:p-4\">\n @for (key of keys; track key) {\n @let cell = item.data | smartListCell: key : cellPipe : type;\n @if (cell && cell.type !== FieldType.image) {\n <p\n class=\"smart:text-sm smart:text-gray-900 smart:dark:text-white\"\n [innerHTML]=\"cell.value\"\n ></p>\n }\n }\n </div>\n </li>\n }\n</ul>\n\n@if (options()?.pagination?.mode === PaginationMode.singlePage) {\n <smart-paging\n [currentPage]=\"page() ?? 1\"\n [totalPages]=\"totalPages() ?? 1\"\n (pageChange)=\"handlePageChange($event)\"\n ></smart-paging>\n}\n",
35667
+ template: "<div #topTpl></div>\n\n<ul role=\"list\" [class]=\"containerClasses()\">\n @for (item of listWithImages() ?? []; track item.data.id) {\n <li\n class=\"smart:col-span-1 smart:rounded-lg smart:bg-white smart:shadow-sm smart:dark:bg-gray-800/50 smart:overflow-hidden\"\n >\n @if (item.image) {\n <img\n class=\"smart:h-48 smart:w-full smart:object-cover\"\n [ngSrc]=\"item.image | smartFileUrl\"\n width=\"400\"\n height=\"192\"\n alt=\"\"\n />\n }\n <div class=\"smart:p-4\">\n @for (key of keys; track key) {\n @let cell = item.data | smartListCell: key : cellPipe : type;\n @if (cell && cell.type !== FieldType.image) {\n <p\n class=\"smart:text-sm smart:text-gray-900 smart:dark:text-white\"\n [innerHTML]=\"cell.value\"\n ></p>\n }\n }\n @if (detailsHandler) {\n <button\n type=\"button\"\n data-role=\"details\"\n class=\"smart:mt-2 smart:text-sm smart:text-indigo-600 smart:hover:text-indigo-900 smart:dark:text-indigo-400 smart:dark:hover:text-indigo-300\"\n (click)=\"detailsHandler?.(item.data)\"\n >\n {{ 'show' | translate }}\n </button>\n }\n </div>\n </li>\n }\n</ul>\n\n@if (options()?.pagination?.mode === PaginationMode.singlePage) {\n <smart-paging\n [currentPage]=\"page() ?? 1\"\n [totalPages]=\"totalPages() ?? 1\"\n (pageChange)=\"handlePageChange($event)\"\n ></smart-paging>\n}\n\n@if (infiniteScroll()) {\n <div\n #infiniteScrollAnchor\n data-role=\"infinite-scroll\"\n aria-hidden=\"true\"\n ></div>\n}\n",
34870
35668
  dependencies: [
34871
35669
  {
34872
35670
  kind: "component",
@@ -34913,6 +35711,11 @@ var ListMasonryGridComponent = class ListMasonryGridComponent extends ListBaseCo
34913
35711
  kind: "pipe",
34914
35712
  type: ListCellPipe,
34915
35713
  name: "smartListCell"
35714
+ },
35715
+ {
35716
+ kind: "pipe",
35717
+ type: TranslatePipe,
35718
+ name: "translate"
34916
35719
  }
34917
35720
  ],
34918
35721
  changeDetection: i0.ChangeDetectionStrategy.OnPush,
@@ -34934,9 +35737,10 @@ i0.ɵɵngDeclareClassMetadata({
34934
35737
  PagingComponent,
34935
35738
  FileUrlPipe,
34936
35739
  NgOptimizedImage,
34937
- ListCellPipe
35740
+ ListCellPipe,
35741
+ TranslatePipe
34938
35742
  ],
34939
- template: "<div #topTpl></div>\n\n<ul role=\"list\" [class]=\"containerClasses()\">\n @for (item of listWithImages() ?? []; track item.data.id) {\n <li\n class=\"smart:col-span-1 smart:rounded-lg smart:bg-white smart:shadow-sm smart:dark:bg-gray-800/50 smart:overflow-hidden\"\n >\n @if (item.image) {\n <img\n class=\"smart:h-48 smart:w-full smart:object-cover\"\n [ngSrc]=\"item.image | smartFileUrl\"\n width=\"400\"\n height=\"192\"\n alt=\"\"\n />\n }\n <div class=\"smart:p-4\">\n @for (key of keys; track key) {\n @let cell = item.data | smartListCell: key : cellPipe : type;\n @if (cell && cell.type !== FieldType.image) {\n <p\n class=\"smart:text-sm smart:text-gray-900 smart:dark:text-white\"\n [innerHTML]=\"cell.value\"\n ></p>\n }\n }\n </div>\n </li>\n }\n</ul>\n\n@if (options()?.pagination?.mode === PaginationMode.singlePage) {\n <smart-paging\n [currentPage]=\"page() ?? 1\"\n [totalPages]=\"totalPages() ?? 1\"\n (pageChange)=\"handlePageChange($event)\"\n ></smart-paging>\n}\n"
35743
+ template: "<div #topTpl></div>\n\n<ul role=\"list\" [class]=\"containerClasses()\">\n @for (item of listWithImages() ?? []; track item.data.id) {\n <li\n class=\"smart:col-span-1 smart:rounded-lg smart:bg-white smart:shadow-sm smart:dark:bg-gray-800/50 smart:overflow-hidden\"\n >\n @if (item.image) {\n <img\n class=\"smart:h-48 smart:w-full smart:object-cover\"\n [ngSrc]=\"item.image | smartFileUrl\"\n width=\"400\"\n height=\"192\"\n alt=\"\"\n />\n }\n <div class=\"smart:p-4\">\n @for (key of keys; track key) {\n @let cell = item.data | smartListCell: key : cellPipe : type;\n @if (cell && cell.type !== FieldType.image) {\n <p\n class=\"smart:text-sm smart:text-gray-900 smart:dark:text-white\"\n [innerHTML]=\"cell.value\"\n ></p>\n }\n }\n @if (detailsHandler) {\n <button\n type=\"button\"\n data-role=\"details\"\n class=\"smart:mt-2 smart:text-sm smart:text-indigo-600 smart:hover:text-indigo-900 smart:dark:text-indigo-400 smart:dark:hover:text-indigo-300\"\n (click)=\"detailsHandler?.(item.data)\"\n >\n {{ 'show' | translate }}\n </button>\n }\n </div>\n </li>\n }\n</ul>\n\n@if (options()?.pagination?.mode === PaginationMode.singlePage) {\n <smart-paging\n [currentPage]=\"page() ?? 1\"\n [totalPages]=\"totalPages() ?? 1\"\n (pageChange)=\"handlePageChange($event)\"\n ></smart-paging>\n}\n\n@if (infiniteScroll()) {\n <div\n #infiniteScrollAnchor\n data-role=\"infinite-scroll\"\n aria-hidden=\"true\"\n ></div>\n}\n"
34940
35744
  }]
34941
35745
  }],
34942
35746
  propDecorators: { topTpl: [{
@@ -34995,7 +35799,7 @@ var ListMobileComponent = class ListMobileComponent extends ListBaseComponent {
34995
35799
  }],
34996
35800
  usesInheritance: true,
34997
35801
  ngImport: i0,
34998
- template: "<div #topTpl></div>\n\n<ul role=\"list\" [class]=\"containerClasses()\">\n @let mobileItems = mobileList() ?? [];\n @for (item of mobileItems; track item.id) {\n <li class=\"smart:flex smart:justify-between smart:gap-x-6 smart:py-5\">\n <div class=\"smart:flex smart:min-w-0 smart:gap-x-4\">\n <div class=\"smart:min-w-0 smart:flex-auto\">\n @for (key of keys; track key) {\n @let cell = item | smartListCell: key : cellPipe : type;\n @if (cell) {\n <p\n class=\"smart:text-sm smart:text-gray-900 smart:dark:text-white\"\n [innerHTML]=\"cell.value\"\n ></p>\n }\n }\n </div>\n </div>\n <div class=\"smart:flex smart:shrink-0 smart:items-center smart:gap-x-4\">\n @if (\n removeHandler && (!checkRemoveHandler || checkRemoveHandler(item))\n ) {\n <button\n type=\"button\"\n class=\"smart:text-red-600 smart:hover:text-red-900 smart:dark:text-red-400 smart:dark:hover:text-red-300 smart:text-sm\"\n (click)=\"removeHandler?.(item)\"\n >\n {{ 'remove' | translate }}\n </button>\n }\n @if (itemHandler) {\n <button\n type=\"button\"\n class=\"smart:text-indigo-600 smart:hover:text-indigo-900 smart:dark:text-indigo-400 smart:dark:hover:text-indigo-300 smart:text-sm\"\n (click)=\"itemHandler?.(item.id)\"\n >\n →\n </button>\n }\n </div>\n </li>\n }\n</ul>\n\n@if (options()?.pagination?.mode === PaginationMode.singlePage) {\n <smart-paging\n [currentPage]=\"page() ?? 1\"\n [totalPages]=\"totalPages() ?? 1\"\n (pageChange)=\"handlePageChange($event)\"\n ></smart-paging>\n}\n",
35802
+ template: "<div #topTpl></div>\n\n<ul role=\"list\" [class]=\"containerClasses()\">\n @let mobileItems = mobileList() ?? [];\n @for (item of mobileItems; track item.id) {\n <li class=\"smart:flex smart:justify-between smart:gap-x-6 smart:py-5\">\n <div class=\"smart:flex smart:min-w-0 smart:gap-x-4\">\n <div class=\"smart:min-w-0 smart:flex-auto\">\n @for (key of keys; track key) {\n @let cell = item | smartListCell: key : cellPipe : type;\n @if (cell) {\n <p\n class=\"smart:text-sm smart:text-gray-900 smart:dark:text-white\"\n [innerHTML]=\"cell.value\"\n ></p>\n }\n }\n </div>\n </div>\n <div class=\"smart:flex smart:shrink-0 smart:items-center smart:gap-x-4\">\n @if (detailsHandler) {\n <button\n type=\"button\"\n data-role=\"details\"\n class=\"smart:text-indigo-600 smart:hover:text-indigo-900 smart:dark:text-indigo-400 smart:dark:hover:text-indigo-300 smart:text-sm\"\n (click)=\"detailsHandler?.(item)\"\n >\n {{ 'show' | translate }}\n </button>\n }\n @if (\n removeHandler && (!checkRemoveHandler || checkRemoveHandler(item))\n ) {\n <button\n type=\"button\"\n class=\"smart:text-red-600 smart:hover:text-red-900 smart:dark:text-red-400 smart:dark:hover:text-red-300 smart:text-sm\"\n (click)=\"removeHandler?.(item)\"\n >\n {{ 'remove' | translate }}\n </button>\n }\n @if (itemHandler) {\n <button\n type=\"button\"\n class=\"smart:text-indigo-600 smart:hover:text-indigo-900 smart:dark:text-indigo-400 smart:dark:hover:text-indigo-300 smart:text-sm\"\n (click)=\"itemHandler?.(item.id)\"\n >\n →\n </button>\n }\n </div>\n </li>\n }\n</ul>\n\n@if (options()?.pagination?.mode === PaginationMode.singlePage) {\n <smart-paging\n [currentPage]=\"page() ?? 1\"\n [totalPages]=\"totalPages() ?? 1\"\n (pageChange)=\"handlePageChange($event)\"\n ></smart-paging>\n}\n\n@if (infiniteScroll()) {\n <div\n #infiniteScrollAnchor\n data-role=\"infinite-scroll\"\n aria-hidden=\"true\"\n ></div>\n}\n",
34999
35803
  dependencies: [
35000
35804
  {
35001
35805
  kind: "ngmodule",
@@ -35047,7 +35851,7 @@ i0.ɵɵngDeclareClassMetadata({
35047
35851
  PagingComponent,
35048
35852
  ListCellPipe
35049
35853
  ],
35050
- template: "<div #topTpl></div>\n\n<ul role=\"list\" [class]=\"containerClasses()\">\n @let mobileItems = mobileList() ?? [];\n @for (item of mobileItems; track item.id) {\n <li class=\"smart:flex smart:justify-between smart:gap-x-6 smart:py-5\">\n <div class=\"smart:flex smart:min-w-0 smart:gap-x-4\">\n <div class=\"smart:min-w-0 smart:flex-auto\">\n @for (key of keys; track key) {\n @let cell = item | smartListCell: key : cellPipe : type;\n @if (cell) {\n <p\n class=\"smart:text-sm smart:text-gray-900 smart:dark:text-white\"\n [innerHTML]=\"cell.value\"\n ></p>\n }\n }\n </div>\n </div>\n <div class=\"smart:flex smart:shrink-0 smart:items-center smart:gap-x-4\">\n @if (\n removeHandler && (!checkRemoveHandler || checkRemoveHandler(item))\n ) {\n <button\n type=\"button\"\n class=\"smart:text-red-600 smart:hover:text-red-900 smart:dark:text-red-400 smart:dark:hover:text-red-300 smart:text-sm\"\n (click)=\"removeHandler?.(item)\"\n >\n {{ 'remove' | translate }}\n </button>\n }\n @if (itemHandler) {\n <button\n type=\"button\"\n class=\"smart:text-indigo-600 smart:hover:text-indigo-900 smart:dark:text-indigo-400 smart:dark:hover:text-indigo-300 smart:text-sm\"\n (click)=\"itemHandler?.(item.id)\"\n >\n →\n </button>\n }\n </div>\n </li>\n }\n</ul>\n\n@if (options()?.pagination?.mode === PaginationMode.singlePage) {\n <smart-paging\n [currentPage]=\"page() ?? 1\"\n [totalPages]=\"totalPages() ?? 1\"\n (pageChange)=\"handlePageChange($event)\"\n ></smart-paging>\n}\n"
35854
+ template: "<div #topTpl></div>\n\n<ul role=\"list\" [class]=\"containerClasses()\">\n @let mobileItems = mobileList() ?? [];\n @for (item of mobileItems; track item.id) {\n <li class=\"smart:flex smart:justify-between smart:gap-x-6 smart:py-5\">\n <div class=\"smart:flex smart:min-w-0 smart:gap-x-4\">\n <div class=\"smart:min-w-0 smart:flex-auto\">\n @for (key of keys; track key) {\n @let cell = item | smartListCell: key : cellPipe : type;\n @if (cell) {\n <p\n class=\"smart:text-sm smart:text-gray-900 smart:dark:text-white\"\n [innerHTML]=\"cell.value\"\n ></p>\n }\n }\n </div>\n </div>\n <div class=\"smart:flex smart:shrink-0 smart:items-center smart:gap-x-4\">\n @if (detailsHandler) {\n <button\n type=\"button\"\n data-role=\"details\"\n class=\"smart:text-indigo-600 smart:hover:text-indigo-900 smart:dark:text-indigo-400 smart:dark:hover:text-indigo-300 smart:text-sm\"\n (click)=\"detailsHandler?.(item)\"\n >\n {{ 'show' | translate }}\n </button>\n }\n @if (\n removeHandler && (!checkRemoveHandler || checkRemoveHandler(item))\n ) {\n <button\n type=\"button\"\n class=\"smart:text-red-600 smart:hover:text-red-900 smart:dark:text-red-400 smart:dark:hover:text-red-300 smart:text-sm\"\n (click)=\"removeHandler?.(item)\"\n >\n {{ 'remove' | translate }}\n </button>\n }\n @if (itemHandler) {\n <button\n type=\"button\"\n class=\"smart:text-indigo-600 smart:hover:text-indigo-900 smart:dark:text-indigo-400 smart:dark:hover:text-indigo-300 smart:text-sm\"\n (click)=\"itemHandler?.(item.id)\"\n >\n →\n </button>\n }\n </div>\n </li>\n }\n</ul>\n\n@if (options()?.pagination?.mode === PaginationMode.singlePage) {\n <smart-paging\n [currentPage]=\"page() ?? 1\"\n [totalPages]=\"totalPages() ?? 1\"\n (pageChange)=\"handlePageChange($event)\"\n ></smart-paging>\n}\n\n@if (infiniteScroll()) {\n <div\n #infiniteScrollAnchor\n data-role=\"infinite-scroll\"\n aria-hidden=\"true\"\n ></div>\n}\n"
35051
35855
  }]
35052
35856
  }],
35053
35857
  propDecorators: { topTpl: [{
@@ -35224,6 +36028,20 @@ const HEADER_CELL = [
35224
36028
  "smart:dark:text-gray-400",
35225
36029
  "smart:uppercase"
35226
36030
  ];
36031
+ const SORT_BUTTON = [
36032
+ "smart:inline-flex",
36033
+ "smart:items-center",
36034
+ "smart:gap-x-1",
36035
+ "smart:uppercase",
36036
+ "smart:font-medium",
36037
+ "smart:text-gray-500",
36038
+ "smart:hover:text-gray-800",
36039
+ "smart:dark:text-gray-400",
36040
+ "smart:dark:hover:text-gray-200",
36041
+ "smart:focus:outline-hidden",
36042
+ "smart:focus-visible:underline"
36043
+ ];
36044
+ const SORT_INDICATOR = ["smart:text-gray-400", "smart:dark:text-gray-500"];
35227
36045
  const HEADER_ROW_MUTED = ["smart:bg-gray-50", "smart:dark:bg-gray-800"];
35228
36046
  const HEADER_ROW_HIDDEN = ["smart:hidden"];
35229
36047
  const CELL = [
@@ -35259,6 +36077,12 @@ function getListDesktopHeaderRowClasses(header = "default") {
35259
36077
  function getListDesktopHeaderCellClasses() {
35260
36078
  return HEADER_CELL.join(" ");
35261
36079
  }
36080
+ function getListDesktopSortButtonClasses() {
36081
+ return SORT_BUTTON.join(" ");
36082
+ }
36083
+ function getListDesktopSortIndicatorClasses() {
36084
+ return SORT_INDICATOR.join(" ");
36085
+ }
35262
36086
  function getListDesktopRowClasses(variant = "default", hoverable = false) {
35263
36087
  const classes = [];
35264
36088
  if (variant === "striped") classes.push(...ROW_STRIPED);
@@ -35276,6 +36100,8 @@ var ListDesktopPresetComponent = class ListDesktopPresetComponent extends ListDe
35276
36100
  headerCellClasses = computed(() => getListDesktopHeaderCellClasses(), ...ngDevMode ? [{ debugName: "headerCellClasses" }] : /* istanbul ignore next */ []);
35277
36101
  rowClasses = computed(() => getListDesktopRowClasses(this.presentation().variant, Boolean(this.presentation().hoverable)), ...ngDevMode ? [{ debugName: "rowClasses" }] : /* istanbul ignore next */ []);
35278
36102
  cellClasses = computed(() => getListDesktopCellClasses(), ...ngDevMode ? [{ debugName: "cellClasses" }] : /* istanbul ignore next */ []);
36103
+ sortButtonClasses = getListDesktopSortButtonClasses();
36104
+ sortIndicatorClasses = getListDesktopSortIndicatorClasses();
35279
36105
  static ɵfac = i0.ɵɵngDeclareFactory({
35280
36106
  minVersion: "12.0.0",
35281
36107
  version: "22.2.2",
@@ -35292,7 +36118,7 @@ var ListDesktopPresetComponent = class ListDesktopPresetComponent extends ListDe
35292
36118
  selector: "smart-list-desktop-preset",
35293
36119
  usesInheritance: true,
35294
36120
  ngImport: i0,
35295
- template: "<div #topTpl></div>\n\n<div [class]=\"containerClasses()\">\n <table\n cdk-table\n data-role=\"table\"\n [dataSource]=\"desktopList() ?? []\"\n [trackBy]=\"myTrackById\"\n [class]=\"tableClasses()\"\n >\n @for (key of desktopKeys; track key) {\n @let last = $last;\n <ng-template #pagination>\n @if (last && loadNextPage && totalPages()) {\n <div class=\"smart:float-right smart:text-sm smart:text-gray-500\">\n {{ 'page' | translate }}:\n <b>{{ page() }}/{{ totalPages() }}</b>\n </div>\n }\n </ng-template>\n <ng-container [cdkColumnDef]=\"key\">\n @switch (key) {\n @case ('selectMulti') {\n <th\n cdk-header-cell\n *cdkHeaderCellDef\n class=\"smart:w-10 smart:px-3 smart:py-3\"\n ></th>\n <td\n cdk-cell\n *cdkCellDef=\"let element\"\n class=\"smart:w-10 smart:px-3 smart:py-4\"\n >\n @let listValue = desktopList();\n @if (listValue) {\n <input\n type=\"checkbox\"\n class=\"smart:shrink-0 smart:border-gray-300 smart:rounded-sm smart:text-blue-600 smart:focus:ring-blue-500 smart:dark:bg-gray-800 smart:dark:border-gray-600 smart:dark:checked:bg-blue-500 smart:dark:checked:border-blue-500\"\n (change)=\"\n onChangeMultiselect(\n $any($event.target).checked,\n element,\n listValue\n )\n \"\n />\n }\n </td>\n }\n @case ('removeAction') {\n <th\n cdk-header-cell\n *cdkHeaderCellDef\n [class]=\"headerCellClasses() + ' smart:w-10 smart:text-end'\"\n >\n <ng-container *ngTemplateOutlet=\"pagination\"></ng-container>\n </th>\n <td\n cdk-cell\n *cdkCellDef=\"let element\"\n [class]=\"cellClasses() + ' smart:w-10 smart:text-end'\"\n >\n @if (!checkRemoveHandler || checkRemoveHandler(element)) {\n <button\n type=\"button\"\n data-role=\"remove\"\n class=\"smart:inline-flex smart:items-center smart:gap-x-2 smart:text-sm smart:font-semibold smart:rounded-lg smart:text-red-600 smart:hover:text-red-700 smart:dark:text-red-400 smart:dark:hover:text-red-300 smart:focus:outline-hidden smart:disabled:opacity-50 smart:disabled:pointer-events-none\"\n (click)=\"removeHandler?.(element)\"\n >\n {{ 'remove' | translate }}\n </button>\n }\n </td>\n }\n @case ('itemAction') {\n <th\n cdk-header-cell\n *cdkHeaderCellDef\n [class]=\"headerCellClasses() + ' smart:w-10 smart:text-end'\"\n >\n <ng-container *ngTemplateOutlet=\"pagination\"></ng-container>\n </th>\n <td\n cdk-cell\n *cdkCellDef=\"let element\"\n [class]=\"cellClasses() + ' smart:w-10 smart:text-end'\"\n >\n <button\n type=\"button\"\n data-role=\"item\"\n class=\"smart:inline-flex smart:items-center smart:gap-x-2 smart:text-sm smart:font-semibold smart:rounded-lg smart:text-blue-600 smart:hover:text-blue-700 smart:dark:text-blue-400 smart:dark:hover:text-blue-300 smart:focus:outline-hidden smart:disabled:opacity-50 smart:disabled:pointer-events-none\"\n (click)=\"itemHandler?.(element.id)\"\n >\n →\n </button>\n </td>\n }\n @default {\n <th cdk-header-cell *cdkHeaderCellDef [class]=\"headerCellClasses()\">\n {{ (desktopList() | smartListHeader: key : type)() }}\n <ng-container *ngTemplateOutlet=\"pagination\"></ng-container>\n </th>\n <td\n cdk-cell\n *cdkCellDef=\"let element\"\n [class]=\"cellClasses()\"\n [attr.smart-item-key]=\"key\"\n >\n @let cell = element | smartListCell: key : cellPipe : type;\n @if (cell) {\n @if (cell.type === FieldType.image) {\n <img\n height=\"50\"\n [lazyLoad]=\"cell.value | smartFileUrl\"\n alt=\"\"\n src=\"\"\n class=\"smart:h-10 smart:w-auto\"\n />\n } @else {\n <div [innerHTML]=\"cell.value\"></div>\n }\n }\n </td>\n }\n }\n </ng-container>\n }\n\n <tr\n cdk-header-row\n data-role=\"header-row\"\n *cdkHeaderRowDef=\"desktopKeys ?? []; sticky: true\"\n [class]=\"headerRowClasses()\"\n ></tr>\n <tr\n cdk-row\n data-role=\"row\"\n *cdkRowDef=\"let row; columns: desktopKeys ?? []\"\n [class]=\"rowClasses()\"\n ></tr>\n </table>\n</div>\n\n@if (options()?.pagination?.mode === PaginationMode.singlePage) {\n <smart-paging\n [currentPage]=\"page() ?? 1\"\n [totalPages]=\"totalPages() ?? 1\"\n (pageChange)=\"handlePageChange($event)\"\n ></smart-paging>\n}\n",
36121
+ template: "<div #topTpl></div>\n\n<div [class]=\"containerClasses()\">\n <table\n cdk-table\n data-role=\"table\"\n [dataSource]=\"desktopList() ?? []\"\n [trackBy]=\"myTrackById\"\n [class]=\"tableClasses()\"\n >\n @for (key of desktopKeys; track key) {\n @let last = $last;\n <ng-template #pagination>\n @if (last && loadNextPage && totalPages()) {\n <div class=\"smart:float-right smart:text-sm smart:text-gray-500\">\n {{ 'page' | translate }}:\n <b>{{ page() }}/{{ totalPages() }}</b>\n </div>\n }\n </ng-template>\n <ng-container [cdkColumnDef]=\"key\">\n @switch (key) {\n @case ('selectMulti') {\n <th\n cdk-header-cell\n *cdkHeaderCellDef\n class=\"smart:w-10 smart:px-3 smart:py-3\"\n ></th>\n <td\n cdk-cell\n *cdkCellDef=\"let element\"\n class=\"smart:w-10 smart:px-3 smart:py-4\"\n >\n @let listValue = desktopList();\n @if (listValue) {\n <input\n type=\"checkbox\"\n class=\"smart:shrink-0 smart:border-gray-300 smart:rounded-sm smart:text-blue-600 smart:focus:ring-blue-500 smart:dark:bg-gray-800 smart:dark:border-gray-600 smart:dark:checked:bg-blue-500 smart:dark:checked:border-blue-500\"\n (change)=\"\n onChangeMultiselect(\n $any($event.target).checked,\n element,\n listValue\n )\n \"\n />\n }\n </td>\n }\n @case ('detailsAction') {\n <th\n cdk-header-cell\n *cdkHeaderCellDef\n [class]=\"headerCellClasses() + ' smart:w-10 smart:text-end'\"\n >\n <ng-container *ngTemplateOutlet=\"pagination\"></ng-container>\n </th>\n <td\n cdk-cell\n *cdkCellDef=\"let element\"\n [class]=\"cellClasses() + ' smart:w-10 smart:text-end'\"\n >\n <button\n type=\"button\"\n data-role=\"details\"\n class=\"smart:inline-flex smart:items-center smart:gap-x-2 smart:text-sm smart:font-semibold smart:rounded-lg smart:text-blue-600 smart:hover:text-blue-700 smart:dark:text-blue-400 smart:dark:hover:text-blue-300 smart:focus:outline-hidden smart:disabled:opacity-50 smart:disabled:pointer-events-none\"\n (click)=\"detailsHandler?.(element)\"\n >\n {{ 'show' | translate }}\n </button>\n </td>\n }\n @case ('removeAction') {\n <th\n cdk-header-cell\n *cdkHeaderCellDef\n [class]=\"headerCellClasses() + ' smart:w-10 smart:text-end'\"\n >\n <ng-container *ngTemplateOutlet=\"pagination\"></ng-container>\n </th>\n <td\n cdk-cell\n *cdkCellDef=\"let element\"\n [class]=\"cellClasses() + ' smart:w-10 smart:text-end'\"\n >\n @if (!checkRemoveHandler || checkRemoveHandler(element)) {\n <button\n type=\"button\"\n data-role=\"remove\"\n class=\"smart:inline-flex smart:items-center smart:gap-x-2 smart:text-sm smart:font-semibold smart:rounded-lg smart:text-red-600 smart:hover:text-red-700 smart:dark:text-red-400 smart:dark:hover:text-red-300 smart:focus:outline-hidden smart:disabled:opacity-50 smart:disabled:pointer-events-none\"\n (click)=\"removeHandler?.(element)\"\n >\n {{ 'remove' | translate }}\n </button>\n }\n </td>\n }\n @case ('itemAction') {\n <th\n cdk-header-cell\n *cdkHeaderCellDef\n [class]=\"headerCellClasses() + ' smart:w-10 smart:text-end'\"\n >\n <ng-container *ngTemplateOutlet=\"pagination\"></ng-container>\n </th>\n <td\n cdk-cell\n *cdkCellDef=\"let element\"\n [class]=\"cellClasses() + ' smart:w-10 smart:text-end'\"\n >\n <button\n type=\"button\"\n data-role=\"item\"\n class=\"smart:inline-flex smart:items-center smart:gap-x-2 smart:text-sm smart:font-semibold smart:rounded-lg smart:text-blue-600 smart:hover:text-blue-700 smart:dark:text-blue-400 smart:dark:hover:text-blue-300 smart:focus:outline-hidden smart:disabled:opacity-50 smart:disabled:pointer-events-none\"\n (click)=\"itemHandler?.(element.id)\"\n >\n →\n </button>\n </td>\n }\n @default {\n <th\n cdk-header-cell\n *cdkHeaderCellDef\n [class]=\"headerCellClasses()\"\n [attr.aria-sort]=\"ariaSort(key)\"\n >\n @if (isSortable(key)) {\n <button\n type=\"button\"\n data-role=\"sort\"\n [class]=\"sortButtonClasses\"\n (click)=\"sortBy(key)\"\n >\n {{ (desktopList() | smartListHeader: key : type)() }}\n <span aria-hidden=\"true\" [class]=\"sortIndicatorClasses\">{{\n sortIndicator(key)\n }}</span>\n </button>\n } @else {\n {{ (desktopList() | smartListHeader: key : type)() }}\n }\n <ng-container *ngTemplateOutlet=\"pagination\"></ng-container>\n </th>\n <td\n cdk-cell\n *cdkCellDef=\"let element\"\n [class]=\"cellClasses()\"\n [attr.smart-item-key]=\"key\"\n >\n @let cell = element | smartListCell: key : cellPipe : type;\n @if (cell) {\n @if (cell.type === FieldType.image) {\n <img\n height=\"50\"\n [lazyLoad]=\"cell.value | smartFileUrl\"\n alt=\"\"\n src=\"\"\n class=\"smart:h-10 smart:w-auto\"\n />\n } @else {\n <div [innerHTML]=\"cell.value\"></div>\n }\n }\n </td>\n }\n }\n </ng-container>\n }\n\n <tr\n cdk-header-row\n data-role=\"header-row\"\n *cdkHeaderRowDef=\"desktopKeys ?? []; sticky: true\"\n [class]=\"headerRowClasses()\"\n ></tr>\n <tr\n cdk-row\n data-role=\"row\"\n *cdkRowDef=\"let row; columns: desktopKeys ?? []\"\n [class]=\"rowClasses()\"\n ></tr>\n </table>\n</div>\n\n@if (options()?.pagination?.mode === PaginationMode.singlePage) {\n <smart-paging\n [currentPage]=\"page() ?? 1\"\n [totalPages]=\"totalPages() ?? 1\"\n (pageChange)=\"handlePageChange($event)\"\n ></smart-paging>\n}\n\n@if (infiniteScroll()) {\n <div\n #infiniteScrollAnchor\n data-role=\"infinite-scroll\"\n aria-hidden=\"true\"\n ></div>\n}\n",
35296
36122
  dependencies: [
35297
36123
  {
35298
36124
  kind: "directive",
@@ -35460,7 +36286,7 @@ i0.ɵɵngDeclareClassMetadata({
35460
36286
  CdkHeaderRowDef,
35461
36287
  CdkRowDef
35462
36288
  ],
35463
- template: "<div #topTpl></div>\n\n<div [class]=\"containerClasses()\">\n <table\n cdk-table\n data-role=\"table\"\n [dataSource]=\"desktopList() ?? []\"\n [trackBy]=\"myTrackById\"\n [class]=\"tableClasses()\"\n >\n @for (key of desktopKeys; track key) {\n @let last = $last;\n <ng-template #pagination>\n @if (last && loadNextPage && totalPages()) {\n <div class=\"smart:float-right smart:text-sm smart:text-gray-500\">\n {{ 'page' | translate }}:\n <b>{{ page() }}/{{ totalPages() }}</b>\n </div>\n }\n </ng-template>\n <ng-container [cdkColumnDef]=\"key\">\n @switch (key) {\n @case ('selectMulti') {\n <th\n cdk-header-cell\n *cdkHeaderCellDef\n class=\"smart:w-10 smart:px-3 smart:py-3\"\n ></th>\n <td\n cdk-cell\n *cdkCellDef=\"let element\"\n class=\"smart:w-10 smart:px-3 smart:py-4\"\n >\n @let listValue = desktopList();\n @if (listValue) {\n <input\n type=\"checkbox\"\n class=\"smart:shrink-0 smart:border-gray-300 smart:rounded-sm smart:text-blue-600 smart:focus:ring-blue-500 smart:dark:bg-gray-800 smart:dark:border-gray-600 smart:dark:checked:bg-blue-500 smart:dark:checked:border-blue-500\"\n (change)=\"\n onChangeMultiselect(\n $any($event.target).checked,\n element,\n listValue\n )\n \"\n />\n }\n </td>\n }\n @case ('removeAction') {\n <th\n cdk-header-cell\n *cdkHeaderCellDef\n [class]=\"headerCellClasses() + ' smart:w-10 smart:text-end'\"\n >\n <ng-container *ngTemplateOutlet=\"pagination\"></ng-container>\n </th>\n <td\n cdk-cell\n *cdkCellDef=\"let element\"\n [class]=\"cellClasses() + ' smart:w-10 smart:text-end'\"\n >\n @if (!checkRemoveHandler || checkRemoveHandler(element)) {\n <button\n type=\"button\"\n data-role=\"remove\"\n class=\"smart:inline-flex smart:items-center smart:gap-x-2 smart:text-sm smart:font-semibold smart:rounded-lg smart:text-red-600 smart:hover:text-red-700 smart:dark:text-red-400 smart:dark:hover:text-red-300 smart:focus:outline-hidden smart:disabled:opacity-50 smart:disabled:pointer-events-none\"\n (click)=\"removeHandler?.(element)\"\n >\n {{ 'remove' | translate }}\n </button>\n }\n </td>\n }\n @case ('itemAction') {\n <th\n cdk-header-cell\n *cdkHeaderCellDef\n [class]=\"headerCellClasses() + ' smart:w-10 smart:text-end'\"\n >\n <ng-container *ngTemplateOutlet=\"pagination\"></ng-container>\n </th>\n <td\n cdk-cell\n *cdkCellDef=\"let element\"\n [class]=\"cellClasses() + ' smart:w-10 smart:text-end'\"\n >\n <button\n type=\"button\"\n data-role=\"item\"\n class=\"smart:inline-flex smart:items-center smart:gap-x-2 smart:text-sm smart:font-semibold smart:rounded-lg smart:text-blue-600 smart:hover:text-blue-700 smart:dark:text-blue-400 smart:dark:hover:text-blue-300 smart:focus:outline-hidden smart:disabled:opacity-50 smart:disabled:pointer-events-none\"\n (click)=\"itemHandler?.(element.id)\"\n >\n →\n </button>\n </td>\n }\n @default {\n <th cdk-header-cell *cdkHeaderCellDef [class]=\"headerCellClasses()\">\n {{ (desktopList() | smartListHeader: key : type)() }}\n <ng-container *ngTemplateOutlet=\"pagination\"></ng-container>\n </th>\n <td\n cdk-cell\n *cdkCellDef=\"let element\"\n [class]=\"cellClasses()\"\n [attr.smart-item-key]=\"key\"\n >\n @let cell = element | smartListCell: key : cellPipe : type;\n @if (cell) {\n @if (cell.type === FieldType.image) {\n <img\n height=\"50\"\n [lazyLoad]=\"cell.value | smartFileUrl\"\n alt=\"\"\n src=\"\"\n class=\"smart:h-10 smart:w-auto\"\n />\n } @else {\n <div [innerHTML]=\"cell.value\"></div>\n }\n }\n </td>\n }\n }\n </ng-container>\n }\n\n <tr\n cdk-header-row\n data-role=\"header-row\"\n *cdkHeaderRowDef=\"desktopKeys ?? []; sticky: true\"\n [class]=\"headerRowClasses()\"\n ></tr>\n <tr\n cdk-row\n data-role=\"row\"\n *cdkRowDef=\"let row; columns: desktopKeys ?? []\"\n [class]=\"rowClasses()\"\n ></tr>\n </table>\n</div>\n\n@if (options()?.pagination?.mode === PaginationMode.singlePage) {\n <smart-paging\n [currentPage]=\"page() ?? 1\"\n [totalPages]=\"totalPages() ?? 1\"\n (pageChange)=\"handlePageChange($event)\"\n ></smart-paging>\n}\n"
36289
+ template: "<div #topTpl></div>\n\n<div [class]=\"containerClasses()\">\n <table\n cdk-table\n data-role=\"table\"\n [dataSource]=\"desktopList() ?? []\"\n [trackBy]=\"myTrackById\"\n [class]=\"tableClasses()\"\n >\n @for (key of desktopKeys; track key) {\n @let last = $last;\n <ng-template #pagination>\n @if (last && loadNextPage && totalPages()) {\n <div class=\"smart:float-right smart:text-sm smart:text-gray-500\">\n {{ 'page' | translate }}:\n <b>{{ page() }}/{{ totalPages() }}</b>\n </div>\n }\n </ng-template>\n <ng-container [cdkColumnDef]=\"key\">\n @switch (key) {\n @case ('selectMulti') {\n <th\n cdk-header-cell\n *cdkHeaderCellDef\n class=\"smart:w-10 smart:px-3 smart:py-3\"\n ></th>\n <td\n cdk-cell\n *cdkCellDef=\"let element\"\n class=\"smart:w-10 smart:px-3 smart:py-4\"\n >\n @let listValue = desktopList();\n @if (listValue) {\n <input\n type=\"checkbox\"\n class=\"smart:shrink-0 smart:border-gray-300 smart:rounded-sm smart:text-blue-600 smart:focus:ring-blue-500 smart:dark:bg-gray-800 smart:dark:border-gray-600 smart:dark:checked:bg-blue-500 smart:dark:checked:border-blue-500\"\n (change)=\"\n onChangeMultiselect(\n $any($event.target).checked,\n element,\n listValue\n )\n \"\n />\n }\n </td>\n }\n @case ('detailsAction') {\n <th\n cdk-header-cell\n *cdkHeaderCellDef\n [class]=\"headerCellClasses() + ' smart:w-10 smart:text-end'\"\n >\n <ng-container *ngTemplateOutlet=\"pagination\"></ng-container>\n </th>\n <td\n cdk-cell\n *cdkCellDef=\"let element\"\n [class]=\"cellClasses() + ' smart:w-10 smart:text-end'\"\n >\n <button\n type=\"button\"\n data-role=\"details\"\n class=\"smart:inline-flex smart:items-center smart:gap-x-2 smart:text-sm smart:font-semibold smart:rounded-lg smart:text-blue-600 smart:hover:text-blue-700 smart:dark:text-blue-400 smart:dark:hover:text-blue-300 smart:focus:outline-hidden smart:disabled:opacity-50 smart:disabled:pointer-events-none\"\n (click)=\"detailsHandler?.(element)\"\n >\n {{ 'show' | translate }}\n </button>\n </td>\n }\n @case ('removeAction') {\n <th\n cdk-header-cell\n *cdkHeaderCellDef\n [class]=\"headerCellClasses() + ' smart:w-10 smart:text-end'\"\n >\n <ng-container *ngTemplateOutlet=\"pagination\"></ng-container>\n </th>\n <td\n cdk-cell\n *cdkCellDef=\"let element\"\n [class]=\"cellClasses() + ' smart:w-10 smart:text-end'\"\n >\n @if (!checkRemoveHandler || checkRemoveHandler(element)) {\n <button\n type=\"button\"\n data-role=\"remove\"\n class=\"smart:inline-flex smart:items-center smart:gap-x-2 smart:text-sm smart:font-semibold smart:rounded-lg smart:text-red-600 smart:hover:text-red-700 smart:dark:text-red-400 smart:dark:hover:text-red-300 smart:focus:outline-hidden smart:disabled:opacity-50 smart:disabled:pointer-events-none\"\n (click)=\"removeHandler?.(element)\"\n >\n {{ 'remove' | translate }}\n </button>\n }\n </td>\n }\n @case ('itemAction') {\n <th\n cdk-header-cell\n *cdkHeaderCellDef\n [class]=\"headerCellClasses() + ' smart:w-10 smart:text-end'\"\n >\n <ng-container *ngTemplateOutlet=\"pagination\"></ng-container>\n </th>\n <td\n cdk-cell\n *cdkCellDef=\"let element\"\n [class]=\"cellClasses() + ' smart:w-10 smart:text-end'\"\n >\n <button\n type=\"button\"\n data-role=\"item\"\n class=\"smart:inline-flex smart:items-center smart:gap-x-2 smart:text-sm smart:font-semibold smart:rounded-lg smart:text-blue-600 smart:hover:text-blue-700 smart:dark:text-blue-400 smart:dark:hover:text-blue-300 smart:focus:outline-hidden smart:disabled:opacity-50 smart:disabled:pointer-events-none\"\n (click)=\"itemHandler?.(element.id)\"\n >\n →\n </button>\n </td>\n }\n @default {\n <th\n cdk-header-cell\n *cdkHeaderCellDef\n [class]=\"headerCellClasses()\"\n [attr.aria-sort]=\"ariaSort(key)\"\n >\n @if (isSortable(key)) {\n <button\n type=\"button\"\n data-role=\"sort\"\n [class]=\"sortButtonClasses\"\n (click)=\"sortBy(key)\"\n >\n {{ (desktopList() | smartListHeader: key : type)() }}\n <span aria-hidden=\"true\" [class]=\"sortIndicatorClasses\">{{\n sortIndicator(key)\n }}</span>\n </button>\n } @else {\n {{ (desktopList() | smartListHeader: key : type)() }}\n }\n <ng-container *ngTemplateOutlet=\"pagination\"></ng-container>\n </th>\n <td\n cdk-cell\n *cdkCellDef=\"let element\"\n [class]=\"cellClasses()\"\n [attr.smart-item-key]=\"key\"\n >\n @let cell = element | smartListCell: key : cellPipe : type;\n @if (cell) {\n @if (cell.type === FieldType.image) {\n <img\n height=\"50\"\n [lazyLoad]=\"cell.value | smartFileUrl\"\n alt=\"\"\n src=\"\"\n class=\"smart:h-10 smart:w-auto\"\n />\n } @else {\n <div [innerHTML]=\"cell.value\"></div>\n }\n }\n </td>\n }\n }\n </ng-container>\n }\n\n <tr\n cdk-header-row\n data-role=\"header-row\"\n *cdkHeaderRowDef=\"desktopKeys ?? []; sticky: true\"\n [class]=\"headerRowClasses()\"\n ></tr>\n <tr\n cdk-row\n data-role=\"row\"\n *cdkRowDef=\"let row; columns: desktopKeys ?? []\"\n [class]=\"rowClasses()\"\n ></tr>\n </table>\n</div>\n\n@if (options()?.pagination?.mode === PaginationMode.singlePage) {\n <smart-paging\n [currentPage]=\"page() ?? 1\"\n [totalPages]=\"totalPages() ?? 1\"\n (pageChange)=\"handlePageChange($event)\"\n ></smart-paging>\n}\n\n@if (infiniteScroll()) {\n <div\n #infiniteScrollAnchor\n data-role=\"infinite-scroll\"\n aria-hidden=\"true\"\n ></div>\n}\n"
35464
36290
  }]
35465
36291
  }]
35466
36292
  });
@@ -35490,7 +36316,7 @@ var ListMasonryGridPresetComponent = class ListMasonryGridPresetComponent extend
35490
36316
  selector: "smart-list-masonry-grid-preset",
35491
36317
  usesInheritance: true,
35492
36318
  ngImport: i0,
35493
- template: "<div #topTpl></div>\n\n<ul role=\"list\" data-role=\"grid\" [class]=\"containerClasses()\">\n @for (item of listWithImages() ?? []; track item.data.id) {\n <li data-role=\"card\" [class]=\"cardContainerClasses\">\n @if (item.image) {\n <img\n data-role=\"card-image\"\n class=\"smart:h-48 smart:w-full smart:object-cover smart:rounded-t-xl\"\n [ngSrc]=\"item.image | smartFileUrl\"\n width=\"400\"\n height=\"192\"\n alt=\"\"\n />\n }\n <div class=\"smart:p-4\">\n @for (key of keys; track key) {\n @let cell = item.data | smartListCell: key : cellPipe : type;\n @if (cell && cell.type !== FieldType.image) {\n @if (key === titleKey) {\n <h3\n data-role=\"card-title\"\n class=\"smart:font-semibold smart:text-gray-900 smart:dark:text-white\"\n [innerHTML]=\"cell.value\"\n ></h3>\n } @else {\n <p\n data-role=\"card-text\"\n class=\"smart:mt-1 smart:text-gray-500 smart:dark:text-gray-400\"\n [innerHTML]=\"cell.value\"\n ></p>\n }\n }\n }\n </div>\n </li>\n }\n</ul>\n\n@if (options()?.pagination?.mode === PaginationMode.singlePage) {\n <smart-paging\n [currentPage]=\"page() ?? 1\"\n [totalPages]=\"totalPages() ?? 1\"\n (pageChange)=\"handlePageChange($event)\"\n ></smart-paging>\n}\n",
36319
+ template: "<div #topTpl></div>\n\n<ul role=\"list\" data-role=\"grid\" [class]=\"containerClasses()\">\n @for (item of listWithImages() ?? []; track item.data.id) {\n <li data-role=\"card\" [class]=\"cardContainerClasses\">\n @if (item.image) {\n <img\n data-role=\"card-image\"\n class=\"smart:h-48 smart:w-full smart:object-cover smart:rounded-t-xl\"\n [ngSrc]=\"item.image | smartFileUrl\"\n width=\"400\"\n height=\"192\"\n alt=\"\"\n />\n }\n <div class=\"smart:p-4\">\n @for (key of keys; track key) {\n @let cell = item.data | smartListCell: key : cellPipe : type;\n @if (cell && cell.type !== FieldType.image) {\n @if (key === titleKey) {\n <h3\n data-role=\"card-title\"\n class=\"smart:font-semibold smart:text-gray-900 smart:dark:text-white\"\n [innerHTML]=\"cell.value\"\n ></h3>\n } @else {\n <p\n data-role=\"card-text\"\n class=\"smart:mt-1 smart:text-gray-500 smart:dark:text-gray-400\"\n [innerHTML]=\"cell.value\"\n ></p>\n }\n }\n }\n @if (detailsHandler) {\n <button\n type=\"button\"\n data-role=\"details\"\n class=\"smart:mt-2 smart:py-2 smart:px-3 smart:inline-flex smart:justify-center smart:items-center smart:gap-x-2 smart:text-sm smart:font-medium smart:rounded-lg smart:bg-blue-600 smart:dark:bg-blue-500 smart:text-white smart:hover:bg-blue-700 smart:dark:hover:bg-blue-600 smart:focus:outline-hidden\"\n (click)=\"detailsHandler?.(item.data)\"\n >\n {{ 'show' | translate }}\n </button>\n }\n </div>\n </li>\n }\n</ul>\n\n@if (options()?.pagination?.mode === PaginationMode.singlePage) {\n <smart-paging\n [currentPage]=\"page() ?? 1\"\n [totalPages]=\"totalPages() ?? 1\"\n (pageChange)=\"handlePageChange($event)\"\n ></smart-paging>\n}\n\n@if (infiniteScroll()) {\n <div\n #infiniteScrollAnchor\n data-role=\"infinite-scroll\"\n aria-hidden=\"true\"\n ></div>\n}\n",
35494
36320
  dependencies: [
35495
36321
  {
35496
36322
  kind: "component",
@@ -35537,6 +36363,11 @@ var ListMasonryGridPresetComponent = class ListMasonryGridPresetComponent extend
35537
36363
  kind: "pipe",
35538
36364
  type: ListCellPipe,
35539
36365
  name: "smartListCell"
36366
+ },
36367
+ {
36368
+ kind: "pipe",
36369
+ type: TranslatePipe,
36370
+ name: "translate"
35540
36371
  }
35541
36372
  ],
35542
36373
  changeDetection: i0.ChangeDetectionStrategy.OnPush,
@@ -35558,9 +36389,10 @@ i0.ɵɵngDeclareClassMetadata({
35558
36389
  PagingComponent,
35559
36390
  FileUrlPipe,
35560
36391
  NgOptimizedImage,
35561
- ListCellPipe
36392
+ ListCellPipe,
36393
+ TranslatePipe
35562
36394
  ],
35563
- template: "<div #topTpl></div>\n\n<ul role=\"list\" data-role=\"grid\" [class]=\"containerClasses()\">\n @for (item of listWithImages() ?? []; track item.data.id) {\n <li data-role=\"card\" [class]=\"cardContainerClasses\">\n @if (item.image) {\n <img\n data-role=\"card-image\"\n class=\"smart:h-48 smart:w-full smart:object-cover smart:rounded-t-xl\"\n [ngSrc]=\"item.image | smartFileUrl\"\n width=\"400\"\n height=\"192\"\n alt=\"\"\n />\n }\n <div class=\"smart:p-4\">\n @for (key of keys; track key) {\n @let cell = item.data | smartListCell: key : cellPipe : type;\n @if (cell && cell.type !== FieldType.image) {\n @if (key === titleKey) {\n <h3\n data-role=\"card-title\"\n class=\"smart:font-semibold smart:text-gray-900 smart:dark:text-white\"\n [innerHTML]=\"cell.value\"\n ></h3>\n } @else {\n <p\n data-role=\"card-text\"\n class=\"smart:mt-1 smart:text-gray-500 smart:dark:text-gray-400\"\n [innerHTML]=\"cell.value\"\n ></p>\n }\n }\n }\n </div>\n </li>\n }\n</ul>\n\n@if (options()?.pagination?.mode === PaginationMode.singlePage) {\n <smart-paging\n [currentPage]=\"page() ?? 1\"\n [totalPages]=\"totalPages() ?? 1\"\n (pageChange)=\"handlePageChange($event)\"\n ></smart-paging>\n}\n"
36395
+ template: "<div #topTpl></div>\n\n<ul role=\"list\" data-role=\"grid\" [class]=\"containerClasses()\">\n @for (item of listWithImages() ?? []; track item.data.id) {\n <li data-role=\"card\" [class]=\"cardContainerClasses\">\n @if (item.image) {\n <img\n data-role=\"card-image\"\n class=\"smart:h-48 smart:w-full smart:object-cover smart:rounded-t-xl\"\n [ngSrc]=\"item.image | smartFileUrl\"\n width=\"400\"\n height=\"192\"\n alt=\"\"\n />\n }\n <div class=\"smart:p-4\">\n @for (key of keys; track key) {\n @let cell = item.data | smartListCell: key : cellPipe : type;\n @if (cell && cell.type !== FieldType.image) {\n @if (key === titleKey) {\n <h3\n data-role=\"card-title\"\n class=\"smart:font-semibold smart:text-gray-900 smart:dark:text-white\"\n [innerHTML]=\"cell.value\"\n ></h3>\n } @else {\n <p\n data-role=\"card-text\"\n class=\"smart:mt-1 smart:text-gray-500 smart:dark:text-gray-400\"\n [innerHTML]=\"cell.value\"\n ></p>\n }\n }\n }\n @if (detailsHandler) {\n <button\n type=\"button\"\n data-role=\"details\"\n class=\"smart:mt-2 smart:py-2 smart:px-3 smart:inline-flex smart:justify-center smart:items-center smart:gap-x-2 smart:text-sm smart:font-medium smart:rounded-lg smart:bg-blue-600 smart:dark:bg-blue-500 smart:text-white smart:hover:bg-blue-700 smart:dark:hover:bg-blue-600 smart:focus:outline-hidden\"\n (click)=\"detailsHandler?.(item.data)\"\n >\n {{ 'show' | translate }}\n </button>\n }\n </div>\n </li>\n }\n</ul>\n\n@if (options()?.pagination?.mode === PaginationMode.singlePage) {\n <smart-paging\n [currentPage]=\"page() ?? 1\"\n [totalPages]=\"totalPages() ?? 1\"\n (pageChange)=\"handlePageChange($event)\"\n ></smart-paging>\n}\n\n@if (infiniteScroll()) {\n <div\n #infiniteScrollAnchor\n data-role=\"infinite-scroll\"\n aria-hidden=\"true\"\n ></div>\n}\n"
35564
36396
  }]
35565
36397
  }]
35566
36398
  });
@@ -35602,7 +36434,7 @@ var ListMobilePresetComponent = class ListMobilePresetComponent extends ListMobi
35602
36434
  selector: "smart-list-mobile-preset",
35603
36435
  usesInheritance: true,
35604
36436
  ngImport: i0,
35605
- template: "<div #topTpl></div>\n\n<ul role=\"list\" [class]=\"gridClasses()\">\n @let presetItems = mobileList() ?? [];\n @for (item of presetItems; track item.id) {\n <li data-role=\"card\" [class]=\"cardContainerClasses\">\n @for (key of keys; track key) {\n @let cell = item | smartListCell: key : cellPipe : type;\n @if (cell && cell.type === FieldType.image) {\n <img\n data-role=\"card-image\"\n class=\"smart:w-full smart:h-auto smart:rounded-t-xl\"\n [lazyLoad]=\"cell.value | smartFileUrl\"\n alt=\"\"\n src=\"\"\n />\n }\n }\n <div class=\"smart:p-4\">\n @for (key of keys; track key) {\n @let cell = item | smartListCell: key : cellPipe : type;\n @if (cell && cell.type !== FieldType.image) {\n @if (key === titleKey) {\n <h3\n data-role=\"card-title\"\n class=\"smart:font-semibold smart:text-gray-900 smart:dark:text-white\"\n [innerHTML]=\"cell.value\"\n ></h3>\n } @else {\n <p\n data-role=\"card-text\"\n class=\"smart:mt-1 smart:text-gray-500 smart:dark:text-gray-400\"\n [innerHTML]=\"cell.value\"\n ></p>\n }\n }\n }\n <div class=\"smart:flex smart:items-center smart:gap-x-4\">\n @if (itemHandler) {\n <button\n type=\"button\"\n data-role=\"item\"\n class=\"smart:mt-2 smart:py-2 smart:px-3 smart:inline-flex smart:justify-center smart:items-center smart:gap-x-2 smart:text-sm smart:font-medium smart:rounded-lg smart:bg-blue-600 smart:dark:bg-blue-500 smart:text-white smart:hover:bg-blue-700 smart:dark:hover:bg-blue-600 smart:focus:outline-hidden\"\n (click)=\"itemHandler?.(item.id)\"\n >\n {{ 'details' | translate }}\n </button>\n }\n @if (\n removeHandler && (!checkRemoveHandler || checkRemoveHandler(item))\n ) {\n <button\n type=\"button\"\n data-role=\"remove\"\n class=\"smart:mt-2 smart:text-red-600 smart:hover:text-red-900 smart:dark:text-red-400 smart:dark:hover:text-red-300 smart:text-sm\"\n (click)=\"removeHandler?.(item)\"\n >\n {{ 'remove' | translate }}\n </button>\n }\n </div>\n </div>\n </li>\n }\n</ul>\n\n@if (options()?.pagination?.mode === PaginationMode.singlePage) {\n <smart-paging\n [currentPage]=\"page() ?? 1\"\n [totalPages]=\"totalPages() ?? 1\"\n (pageChange)=\"handlePageChange($event)\"\n ></smart-paging>\n}\n",
36437
+ template: "<div #topTpl></div>\n\n<ul role=\"list\" [class]=\"gridClasses()\">\n @let presetItems = mobileList() ?? [];\n @for (item of presetItems; track item.id) {\n <li data-role=\"card\" [class]=\"cardContainerClasses\">\n @for (key of keys; track key) {\n @let cell = item | smartListCell: key : cellPipe : type;\n @if (cell && cell.type === FieldType.image) {\n <img\n data-role=\"card-image\"\n class=\"smart:w-full smart:h-auto smart:rounded-t-xl\"\n [lazyLoad]=\"cell.value | smartFileUrl\"\n alt=\"\"\n src=\"\"\n />\n }\n }\n <div class=\"smart:p-4\">\n @for (key of keys; track key) {\n @let cell = item | smartListCell: key : cellPipe : type;\n @if (cell && cell.type !== FieldType.image) {\n @if (key === titleKey) {\n <h3\n data-role=\"card-title\"\n class=\"smart:font-semibold smart:text-gray-900 smart:dark:text-white\"\n [innerHTML]=\"cell.value\"\n ></h3>\n } @else {\n <p\n data-role=\"card-text\"\n class=\"smart:mt-1 smart:text-gray-500 smart:dark:text-gray-400\"\n [innerHTML]=\"cell.value\"\n ></p>\n }\n }\n }\n <div class=\"smart:flex smart:items-center smart:gap-x-4\">\n @if (itemHandler) {\n <button\n type=\"button\"\n data-role=\"item\"\n class=\"smart:mt-2 smart:py-2 smart:px-3 smart:inline-flex smart:justify-center smart:items-center smart:gap-x-2 smart:text-sm smart:font-medium smart:rounded-lg smart:bg-blue-600 smart:dark:bg-blue-500 smart:text-white smart:hover:bg-blue-700 smart:dark:hover:bg-blue-600 smart:focus:outline-hidden\"\n (click)=\"itemHandler?.(item.id)\"\n >\n {{ 'details' | translate }}\n </button>\n }\n @if (detailsHandler) {\n <button\n type=\"button\"\n data-role=\"details\"\n class=\"smart:mt-2 smart:text-blue-600 smart:hover:text-blue-700 smart:dark:text-blue-400 smart:dark:hover:text-blue-300 smart:text-sm\"\n (click)=\"detailsHandler?.(item)\"\n >\n {{ 'show' | translate }}\n </button>\n }\n @if (\n removeHandler && (!checkRemoveHandler || checkRemoveHandler(item))\n ) {\n <button\n type=\"button\"\n data-role=\"remove\"\n class=\"smart:mt-2 smart:text-red-600 smart:hover:text-red-900 smart:dark:text-red-400 smart:dark:hover:text-red-300 smart:text-sm\"\n (click)=\"removeHandler?.(item)\"\n >\n {{ 'remove' | translate }}\n </button>\n }\n </div>\n </div>\n </li>\n }\n</ul>\n\n@if (options()?.pagination?.mode === PaginationMode.singlePage) {\n <smart-paging\n [currentPage]=\"page() ?? 1\"\n [totalPages]=\"totalPages() ?? 1\"\n (pageChange)=\"handlePageChange($event)\"\n ></smart-paging>\n}\n\n@if (infiniteScroll()) {\n <div\n #infiniteScrollAnchor\n data-role=\"infinite-scroll\"\n aria-hidden=\"true\"\n ></div>\n}\n",
35606
36438
  dependencies: [
35607
36439
  {
35608
36440
  kind: "ngmodule",
@@ -35677,7 +36509,7 @@ i0.ɵɵngDeclareClassMetadata({
35677
36509
  ListCellPipe,
35678
36510
  FileUrlPipe
35679
36511
  ],
35680
- template: "<div #topTpl></div>\n\n<ul role=\"list\" [class]=\"gridClasses()\">\n @let presetItems = mobileList() ?? [];\n @for (item of presetItems; track item.id) {\n <li data-role=\"card\" [class]=\"cardContainerClasses\">\n @for (key of keys; track key) {\n @let cell = item | smartListCell: key : cellPipe : type;\n @if (cell && cell.type === FieldType.image) {\n <img\n data-role=\"card-image\"\n class=\"smart:w-full smart:h-auto smart:rounded-t-xl\"\n [lazyLoad]=\"cell.value | smartFileUrl\"\n alt=\"\"\n src=\"\"\n />\n }\n }\n <div class=\"smart:p-4\">\n @for (key of keys; track key) {\n @let cell = item | smartListCell: key : cellPipe : type;\n @if (cell && cell.type !== FieldType.image) {\n @if (key === titleKey) {\n <h3\n data-role=\"card-title\"\n class=\"smart:font-semibold smart:text-gray-900 smart:dark:text-white\"\n [innerHTML]=\"cell.value\"\n ></h3>\n } @else {\n <p\n data-role=\"card-text\"\n class=\"smart:mt-1 smart:text-gray-500 smart:dark:text-gray-400\"\n [innerHTML]=\"cell.value\"\n ></p>\n }\n }\n }\n <div class=\"smart:flex smart:items-center smart:gap-x-4\">\n @if (itemHandler) {\n <button\n type=\"button\"\n data-role=\"item\"\n class=\"smart:mt-2 smart:py-2 smart:px-3 smart:inline-flex smart:justify-center smart:items-center smart:gap-x-2 smart:text-sm smart:font-medium smart:rounded-lg smart:bg-blue-600 smart:dark:bg-blue-500 smart:text-white smart:hover:bg-blue-700 smart:dark:hover:bg-blue-600 smart:focus:outline-hidden\"\n (click)=\"itemHandler?.(item.id)\"\n >\n {{ 'details' | translate }}\n </button>\n }\n @if (\n removeHandler && (!checkRemoveHandler || checkRemoveHandler(item))\n ) {\n <button\n type=\"button\"\n data-role=\"remove\"\n class=\"smart:mt-2 smart:text-red-600 smart:hover:text-red-900 smart:dark:text-red-400 smart:dark:hover:text-red-300 smart:text-sm\"\n (click)=\"removeHandler?.(item)\"\n >\n {{ 'remove' | translate }}\n </button>\n }\n </div>\n </div>\n </li>\n }\n</ul>\n\n@if (options()?.pagination?.mode === PaginationMode.singlePage) {\n <smart-paging\n [currentPage]=\"page() ?? 1\"\n [totalPages]=\"totalPages() ?? 1\"\n (pageChange)=\"handlePageChange($event)\"\n ></smart-paging>\n}\n"
36512
+ template: "<div #topTpl></div>\n\n<ul role=\"list\" [class]=\"gridClasses()\">\n @let presetItems = mobileList() ?? [];\n @for (item of presetItems; track item.id) {\n <li data-role=\"card\" [class]=\"cardContainerClasses\">\n @for (key of keys; track key) {\n @let cell = item | smartListCell: key : cellPipe : type;\n @if (cell && cell.type === FieldType.image) {\n <img\n data-role=\"card-image\"\n class=\"smart:w-full smart:h-auto smart:rounded-t-xl\"\n [lazyLoad]=\"cell.value | smartFileUrl\"\n alt=\"\"\n src=\"\"\n />\n }\n }\n <div class=\"smart:p-4\">\n @for (key of keys; track key) {\n @let cell = item | smartListCell: key : cellPipe : type;\n @if (cell && cell.type !== FieldType.image) {\n @if (key === titleKey) {\n <h3\n data-role=\"card-title\"\n class=\"smart:font-semibold smart:text-gray-900 smart:dark:text-white\"\n [innerHTML]=\"cell.value\"\n ></h3>\n } @else {\n <p\n data-role=\"card-text\"\n class=\"smart:mt-1 smart:text-gray-500 smart:dark:text-gray-400\"\n [innerHTML]=\"cell.value\"\n ></p>\n }\n }\n }\n <div class=\"smart:flex smart:items-center smart:gap-x-4\">\n @if (itemHandler) {\n <button\n type=\"button\"\n data-role=\"item\"\n class=\"smart:mt-2 smart:py-2 smart:px-3 smart:inline-flex smart:justify-center smart:items-center smart:gap-x-2 smart:text-sm smart:font-medium smart:rounded-lg smart:bg-blue-600 smart:dark:bg-blue-500 smart:text-white smart:hover:bg-blue-700 smart:dark:hover:bg-blue-600 smart:focus:outline-hidden\"\n (click)=\"itemHandler?.(item.id)\"\n >\n {{ 'details' | translate }}\n </button>\n }\n @if (detailsHandler) {\n <button\n type=\"button\"\n data-role=\"details\"\n class=\"smart:mt-2 smart:text-blue-600 smart:hover:text-blue-700 smart:dark:text-blue-400 smart:dark:hover:text-blue-300 smart:text-sm\"\n (click)=\"detailsHandler?.(item)\"\n >\n {{ 'show' | translate }}\n </button>\n }\n @if (\n removeHandler && (!checkRemoveHandler || checkRemoveHandler(item))\n ) {\n <button\n type=\"button\"\n data-role=\"remove\"\n class=\"smart:mt-2 smart:text-red-600 smart:hover:text-red-900 smart:dark:text-red-400 smart:dark:hover:text-red-300 smart:text-sm\"\n (click)=\"removeHandler?.(item)\"\n >\n {{ 'remove' | translate }}\n </button>\n }\n </div>\n </div>\n </li>\n }\n</ul>\n\n@if (options()?.pagination?.mode === PaginationMode.singlePage) {\n <smart-paging\n [currentPage]=\"page() ?? 1\"\n [totalPages]=\"totalPages() ?? 1\"\n (pageChange)=\"handlePageChange($event)\"\n ></smart-paging>\n}\n\n@if (infiniteScroll()) {\n <div\n #infiniteScrollAnchor\n data-role=\"infinite-scroll\"\n aria-hidden=\"true\"\n ></div>\n}\n"
35681
36513
  }]
35682
36514
  }]
35683
36515
  });
@@ -36384,196 +37216,18 @@ i0.ɵɵngDeclareClassMetadata({
36384
37216
  }]
36385
37217
  }] }
36386
37218
  });
36387
- var ModalBaseComponent = class ModalBaseComponent {
36388
- static smartType = "modal";
36389
- open = model(false, ...ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []);
36390
- title = input(...ngDevMode ? [void 0, { debugName: "title" }] : /* istanbul ignore next */ []);
36391
- description = input(...ngDevMode ? [void 0, { debugName: "description" }] : /* istanbul ignore next */ []);
36392
- actions = input([], ...ngDevMode ? [{ debugName: "actions" }] : /* istanbul ignore next */ []);
36393
- options = input(...ngDevMode ? [void 0, { debugName: "options" }] : /* istanbul ignore next */ []);
36394
- cssClass = input("", {
36395
- ...ngDevMode ? { debugName: "cssClass" } : /* istanbul ignore next */ {},
36396
- alias: "class"
36397
- });
36398
- actionClick = output();
36399
- closed = output();
36400
- invokeAction(actionId) {
36401
- this.actionClick.emit({ actionId });
36402
- }
36403
- close() {
36404
- this.open.set(false);
36405
- this.closed.emit();
36406
- }
36407
- static ɵfac = i0.ɵɵngDeclareFactory({
36408
- minVersion: "12.0.0",
36409
- version: "22.2.2",
36410
- ngImport: i0,
36411
- type: ModalBaseComponent,
36412
- deps: [],
36413
- target: i0.ɵɵFactoryTarget.Directive
36414
- });
36415
- static ɵdir = i0.ɵɵngDeclareDirective({
36416
- minVersion: "17.1.0",
36417
- version: "22.2.2",
36418
- type: ModalBaseComponent,
36419
- isStandalone: true,
36420
- inputs: {
36421
- open: {
36422
- classPropertyName: "open",
36423
- publicName: "open",
36424
- isSignal: true,
36425
- isRequired: false,
36426
- transformFunction: null
36427
- },
36428
- title: {
36429
- classPropertyName: "title",
36430
- publicName: "title",
36431
- isSignal: true,
36432
- isRequired: false,
36433
- transformFunction: null
36434
- },
36435
- description: {
36436
- classPropertyName: "description",
36437
- publicName: "description",
36438
- isSignal: true,
36439
- isRequired: false,
36440
- transformFunction: null
36441
- },
36442
- actions: {
36443
- classPropertyName: "actions",
36444
- publicName: "actions",
36445
- isSignal: true,
36446
- isRequired: false,
36447
- transformFunction: null
36448
- },
36449
- options: {
36450
- classPropertyName: "options",
36451
- publicName: "options",
36452
- isSignal: true,
36453
- isRequired: false,
36454
- transformFunction: null
36455
- },
36456
- cssClass: {
36457
- classPropertyName: "cssClass",
36458
- publicName: "class",
36459
- isSignal: true,
36460
- isRequired: false,
36461
- transformFunction: null
36462
- }
36463
- },
36464
- outputs: {
36465
- open: "openChange",
36466
- actionClick: "actionClick",
36467
- closed: "closed"
36468
- },
36469
- ngImport: i0
36470
- });
36471
- };
36472
- i0.ɵɵngDeclareClassMetadata({
36473
- minVersion: "12.0.0",
36474
- version: "22.2.2",
36475
- ngImport: i0,
36476
- type: ModalBaseComponent,
36477
- decorators: [{ type: Directive }],
36478
- propDecorators: {
36479
- open: [{
36480
- type: i0.Input,
36481
- args: [{
36482
- isSignal: true,
36483
- alias: "open",
36484
- required: false
36485
- }]
36486
- }, {
36487
- type: i0.Output,
36488
- args: ["openChange"]
36489
- }],
36490
- title: [{
36491
- type: i0.Input,
36492
- args: [{
36493
- isSignal: true,
36494
- alias: "title",
36495
- required: false
36496
- }]
36497
- }],
36498
- description: [{
36499
- type: i0.Input,
36500
- args: [{
36501
- isSignal: true,
36502
- alias: "description",
36503
- required: false
36504
- }]
36505
- }],
36506
- actions: [{
36507
- type: i0.Input,
36508
- args: [{
36509
- isSignal: true,
36510
- alias: "actions",
36511
- required: false
36512
- }]
36513
- }],
36514
- options: [{
36515
- type: i0.Input,
36516
- args: [{
36517
- isSignal: true,
36518
- alias: "options",
36519
- required: false
36520
- }]
36521
- }],
36522
- cssClass: [{
36523
- type: i0.Input,
36524
- args: [{
36525
- isSignal: true,
36526
- alias: "class",
36527
- required: false
36528
- }]
36529
- }],
36530
- actionClick: [{
36531
- type: i0.Output,
36532
- args: ["actionClick"]
36533
- }],
36534
- closed: [{
36535
- type: i0.Output,
36536
- args: ["closed"]
36537
- }]
36538
- }
36539
- });
36540
- var ModalStandardComponent = class ModalStandardComponent extends ModalBaseComponent {
36541
- static ɵfac = i0.ɵɵngDeclareFactory({
36542
- minVersion: "12.0.0",
36543
- version: "22.2.2",
36544
- ngImport: i0,
36545
- type: ModalStandardComponent,
36546
- deps: null,
36547
- target: i0.ɵɵFactoryTarget.Component
36548
- });
36549
- static ɵcmp = i0.ɵɵngDeclareComponent({
36550
- minVersion: "17.0.0",
36551
- version: "22.2.2",
36552
- type: ModalStandardComponent,
36553
- isStandalone: true,
36554
- selector: "smart-modal-standard",
36555
- usesInheritance: true,
36556
- ngImport: i0,
36557
- template: "<dialog\n [open]=\"open()\"\n [class]=\"cssClass()\"\n role=\"dialog\"\n aria-modal=\"true\"\n [attr.aria-labelledby]=\"title() ? 'smart-modal-title' : null\"\n [attr.aria-label]=\"!title() ? (options()?.ariaLabel ?? null) : null\"\n (close)=\"close()\"\n>\n @if (options()?.withDismiss) {\n <button\n type=\"button\"\n class=\"smart-modal-dismiss\"\n aria-label=\"Close\"\n (click)=\"close()\"\n >\n &times;\n </button>\n }\n @if (title()) {\n <h2 id=\"smart-modal-title\">{{ title() }}</h2>\n }\n @if (description()) {\n <p>{{ description() }}</p>\n }\n <ng-content />\n @if (actions().length > 0) {\n <footer>\n @for (action of actions(); track action.id) {\n <button\n type=\"button\"\n [attr.data-variant]=\"action.variant ?? 'primary'\"\n (click)=\"invokeAction(action.id)\"\n >\n {{ action.label }}\n </button>\n }\n </footer>\n }\n</dialog>\n",
36558
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
36559
- encapsulation: i0.ViewEncapsulation.None
36560
- });
36561
- };
36562
- i0.ɵɵngDeclareClassMetadata({
36563
- minVersion: "12.0.0",
36564
- version: "22.2.2",
36565
- ngImport: i0,
36566
- type: ModalStandardComponent,
36567
- decorators: [{
36568
- type: Component,
36569
- args: [{
36570
- selector: "smart-modal-standard",
36571
- encapsulation: ViewEncapsulation.None,
36572
- changeDetection: ChangeDetectionStrategy.OnPush,
36573
- template: "<dialog\n [open]=\"open()\"\n [class]=\"cssClass()\"\n role=\"dialog\"\n aria-modal=\"true\"\n [attr.aria-labelledby]=\"title() ? 'smart-modal-title' : null\"\n [attr.aria-label]=\"!title() ? (options()?.ariaLabel ?? null) : null\"\n (close)=\"close()\"\n>\n @if (options()?.withDismiss) {\n <button\n type=\"button\"\n class=\"smart-modal-dismiss\"\n aria-label=\"Close\"\n (click)=\"close()\"\n >\n &times;\n </button>\n }\n @if (title()) {\n <h2 id=\"smart-modal-title\">{{ title() }}</h2>\n }\n @if (description()) {\n <p>{{ description() }}</p>\n }\n <ng-content />\n @if (actions().length > 0) {\n <footer>\n @for (action of actions(); track action.id) {\n <button\n type=\"button\"\n [attr.data-variant]=\"action.variant ?? 'primary'\"\n (click)=\"invokeAction(action.id)\"\n >\n {{ action.label }}\n </button>\n }\n </footer>\n }\n</dialog>\n"
36574
- }]
36575
- }]
36576
- });
37219
+ const openLayers = [];
37220
+ function openEscapeLayer(layer) {
37221
+ closeEscapeLayer(layer);
37222
+ openLayers.push(layer);
37223
+ }
37224
+ function closeEscapeLayer(layer) {
37225
+ const index = openLayers.indexOf(layer);
37226
+ if (index !== -1) openLayers.splice(index, 1);
37227
+ }
37228
+ function isTopEscapeLayer(layer) {
37229
+ return openLayers[openLayers.length - 1] === layer;
37230
+ }
36577
37231
  const MODAL_BACKDROP = [
36578
37232
  "smart:fixed",
36579
37233
  "smart:inset-0",
@@ -36724,15 +37378,23 @@ var ModalPresetComponent = class ModalPresetComponent extends ModalBaseComponent
36724
37378
  onBackdropClick(event) {
36725
37379
  if (event.target === event.currentTarget) this.close();
36726
37380
  }
37381
+ constructor() {
37382
+ super();
37383
+ effect(() => {
37384
+ if (this.open()) openEscapeLayer(this);
37385
+ else closeEscapeLayer(this);
37386
+ });
37387
+ inject(DestroyRef).onDestroy(() => closeEscapeLayer(this));
37388
+ }
36727
37389
  onEscape() {
36728
- if (this.open()) this.close();
37390
+ if (this.open() && isTopEscapeLayer(this)) this.close();
36729
37391
  }
36730
37392
  static ɵfac = i0.ɵɵngDeclareFactory({
36731
37393
  minVersion: "12.0.0",
36732
37394
  version: "22.2.2",
36733
37395
  ngImport: i0,
36734
37396
  type: ModalPresetComponent,
36735
- deps: null,
37397
+ deps: [],
36736
37398
  target: i0.ɵɵFactoryTarget.Component
36737
37399
  });
36738
37400
  static ɵcmp = i0.ɵɵngDeclareComponent({
@@ -36771,6 +37433,7 @@ i0.ɵɵngDeclareClassMetadata({
36771
37433
  template: "@if (open()) {\n <div\n [class]=\"backdropClasses\"\n role=\"presentation\"\n (click)=\"onBackdropClick($event)\"\n >\n <div [class]=\"wrapperClasses() + ' ' + cssClass()\">\n <div\n [class]=\"panelClasses()\"\n role=\"dialog\"\n aria-modal=\"true\"\n tabindex=\"-1\"\n [attr.aria-labelledby]=\"title() ? 'smart-modal-preset-title' : null\"\n [attr.aria-label]=\"!title() ? (options()?.ariaLabel ?? null) : null\"\n >\n @if (title() || withDismiss()) {\n <div [class]=\"headerClasses\">\n @if (title()) {\n <h3 id=\"smart-modal-preset-title\" [class]=\"titleClasses\">\n {{ title() }}\n </h3>\n }\n @if (withDismiss()) {\n <button\n type=\"button\"\n [class]=\"dismissClasses\"\n aria-label=\"Close\"\n (click)=\"close()\"\n >\n <span class=\"smart:sr-only\">Close</span>\n <svg\n class=\"smart:shrink-0 smart:size-4\"\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"M18 6 6 18\" />\n <path d=\"m6 6 12 12\" />\n </svg>\n </button>\n }\n </div>\n }\n\n <div [class]=\"bodyClasses\">\n @if (description()) {\n <p [class]=\"descriptionClasses\">{{ description() }}</p>\n }\n <ng-content />\n </div>\n\n @if (actions().length > 0) {\n <div [class]=\"footerClasses()\">\n @for (action of actions(); track action.id) {\n <button\n type=\"button\"\n [class]=\"actionClasses(action.variant)\"\n (click)=\"invokeAction(action.id)\"\n >\n {{ action.label }}\n </button>\n }\n </div>\n }\n </div>\n </div>\n </div>\n}\n"
36772
37434
  }]
36773
37435
  }],
37436
+ ctorParameters: () => [],
36774
37437
  propDecorators: { cssClass: [{
36775
37438
  type: i0.Input,
36776
37439
  args: [{
@@ -36780,292 +37443,6 @@ i0.ɵɵngDeclareClassMetadata({
36780
37443
  }]
36781
37444
  }] }
36782
37445
  });
36783
- var ModalComponent = class ModalComponent {
36784
- injectedComponent = inject(MODAL_STANDARD_COMPONENT_TOKEN, { optional: true });
36785
- open = model(false, ...ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []);
36786
- title = input(...ngDevMode ? [void 0, { debugName: "title" }] : /* istanbul ignore next */ []);
36787
- description = input(...ngDevMode ? [void 0, { debugName: "description" }] : /* istanbul ignore next */ []);
36788
- actions = input([], ...ngDevMode ? [{ debugName: "actions" }] : /* istanbul ignore next */ []);
36789
- options = input(...ngDevMode ? [void 0, { debugName: "options" }] : /* istanbul ignore next */ []);
36790
- cssClass = input("", {
36791
- ...ngDevMode ? { debugName: "cssClass" } : /* istanbul ignore next */ {},
36792
- alias: "class"
36793
- });
36794
- actionClick = output();
36795
- closed = output();
36796
- componentType = computed(() => this.injectedComponent ?? null, ...ngDevMode ? [{ debugName: "componentType" }] : /* istanbul ignore next */ []);
36797
- componentInputs = computed(() => outletInputs(this.componentType(), {
36798
- open: this.open(),
36799
- title: this.title(),
36800
- description: this.description(),
36801
- actions: this.actions(),
36802
- options: this.options(),
36803
- cssClass: this.cssClass()
36804
- }), ...ngDevMode ? [{ debugName: "componentInputs" }] : /* istanbul ignore next */ []);
36805
- outlet = viewChild(NgComponentOutlet, ...ngDevMode ? [{ debugName: "outlet" }] : /* istanbul ignore next */ []);
36806
- contentTemplate = viewChild.required("content", ...ngDevMode ? [{ debugName: "contentTemplate" }] : /* istanbul ignore next */ []);
36807
- projectedContent = outletContent(this.contentTemplate);
36808
- constructor() {
36809
- forwardOutletOutputs(this.outlet, {
36810
- actionClick: this.actionClick,
36811
- closed: this.closed,
36812
- open: this.open
36813
- });
36814
- }
36815
- static ɵfac = i0.ɵɵngDeclareFactory({
36816
- minVersion: "12.0.0",
36817
- version: "22.2.2",
36818
- ngImport: i0,
36819
- type: ModalComponent,
36820
- deps: [],
36821
- target: i0.ɵɵFactoryTarget.Component
36822
- });
36823
- static ɵcmp = i0.ɵɵngDeclareComponent({
36824
- minVersion: "17.0.0",
36825
- version: "22.2.2",
36826
- type: ModalComponent,
36827
- isStandalone: true,
36828
- selector: "smart-modal",
36829
- inputs: {
36830
- open: {
36831
- classPropertyName: "open",
36832
- publicName: "open",
36833
- isSignal: true,
36834
- isRequired: false,
36835
- transformFunction: null
36836
- },
36837
- title: {
36838
- classPropertyName: "title",
36839
- publicName: "title",
36840
- isSignal: true,
36841
- isRequired: false,
36842
- transformFunction: null
36843
- },
36844
- description: {
36845
- classPropertyName: "description",
36846
- publicName: "description",
36847
- isSignal: true,
36848
- isRequired: false,
36849
- transformFunction: null
36850
- },
36851
- actions: {
36852
- classPropertyName: "actions",
36853
- publicName: "actions",
36854
- isSignal: true,
36855
- isRequired: false,
36856
- transformFunction: null
36857
- },
36858
- options: {
36859
- classPropertyName: "options",
36860
- publicName: "options",
36861
- isSignal: true,
36862
- isRequired: false,
36863
- transformFunction: null
36864
- },
36865
- cssClass: {
36866
- classPropertyName: "cssClass",
36867
- publicName: "class",
36868
- isSignal: true,
36869
- isRequired: false,
36870
- transformFunction: null
36871
- }
36872
- },
36873
- outputs: {
36874
- open: "openChange",
36875
- actionClick: "actionClick",
36876
- closed: "closed"
36877
- },
36878
- host: { classAttribute: "smart:contents" },
36879
- viewQueries: [{
36880
- propertyName: "outlet",
36881
- first: true,
36882
- predicate: NgComponentOutlet,
36883
- descendants: true,
36884
- isSignal: true
36885
- }, {
36886
- propertyName: "contentTemplate",
36887
- first: true,
36888
- predicate: ["content"],
36889
- descendants: true,
36890
- isSignal: true
36891
- }],
36892
- ngImport: i0,
36893
- template: `
36894
- <ng-template #content><ng-content /></ng-template>
36895
- @if (componentType()) {
36896
- <ng-container
36897
- *ngComponentOutlet="
36898
- componentType();
36899
- inputs: componentInputs();
36900
- content: projectedContent()
36901
- "
36902
- />
36903
- } @else {
36904
- <smart-modal-standard
36905
- [(open)]="open"
36906
- [title]="title()"
36907
- [description]="description()"
36908
- [actions]="actions()"
36909
- [options]="options()"
36910
- [class]="cssClass()"
36911
- (actionClick)="actionClick.emit($event)"
36912
- (closed)="closed.emit()"
36913
- >
36914
- <ng-container [ngTemplateOutlet]="content" />
36915
- </smart-modal-standard>
36916
- }
36917
- `,
36918
- isInline: true,
36919
- dependencies: [
36920
- {
36921
- kind: "component",
36922
- type: ModalStandardComponent,
36923
- selector: "smart-modal-standard"
36924
- },
36925
- {
36926
- kind: "directive",
36927
- type: NgComponentOutlet,
36928
- selector: "[ngComponentOutlet]",
36929
- inputs: [
36930
- "ngComponentOutlet",
36931
- "ngComponentOutletInputs",
36932
- "ngComponentOutletInjector",
36933
- "ngComponentOutletEnvironmentInjector",
36934
- "ngComponentOutletContent",
36935
- "ngComponentOutletNgModule"
36936
- ],
36937
- exportAs: ["ngComponentOutlet"]
36938
- },
36939
- {
36940
- kind: "directive",
36941
- type: NgTemplateOutlet,
36942
- selector: "[ngTemplateOutlet]",
36943
- inputs: [
36944
- "ngTemplateOutletContext",
36945
- "ngTemplateOutlet",
36946
- "ngTemplateOutletInjector"
36947
- ]
36948
- }
36949
- ],
36950
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
36951
- encapsulation: i0.ViewEncapsulation.None
36952
- });
36953
- };
36954
- i0.ɵɵngDeclareClassMetadata({
36955
- minVersion: "12.0.0",
36956
- version: "22.2.2",
36957
- ngImport: i0,
36958
- type: ModalComponent,
36959
- decorators: [{
36960
- type: Component,
36961
- args: [{
36962
- selector: "smart-modal",
36963
- template: `
36964
- <ng-template #content><ng-content /></ng-template>
36965
- @if (componentType()) {
36966
- <ng-container
36967
- *ngComponentOutlet="
36968
- componentType();
36969
- inputs: componentInputs();
36970
- content: projectedContent()
36971
- "
36972
- />
36973
- } @else {
36974
- <smart-modal-standard
36975
- [(open)]="open"
36976
- [title]="title()"
36977
- [description]="description()"
36978
- [actions]="actions()"
36979
- [options]="options()"
36980
- [class]="cssClass()"
36981
- (actionClick)="actionClick.emit($event)"
36982
- (closed)="closed.emit()"
36983
- >
36984
- <ng-container [ngTemplateOutlet]="content" />
36985
- </smart-modal-standard>
36986
- }
36987
- `,
36988
- encapsulation: ViewEncapsulation.None,
36989
- imports: [
36990
- ModalStandardComponent,
36991
- NgComponentOutlet,
36992
- NgTemplateOutlet
36993
- ],
36994
- host: { class: "smart:contents" },
36995
- changeDetection: ChangeDetectionStrategy.OnPush
36996
- }]
36997
- }],
36998
- ctorParameters: () => [],
36999
- propDecorators: {
37000
- open: [{
37001
- type: i0.Input,
37002
- args: [{
37003
- isSignal: true,
37004
- alias: "open",
37005
- required: false
37006
- }]
37007
- }, {
37008
- type: i0.Output,
37009
- args: ["openChange"]
37010
- }],
37011
- title: [{
37012
- type: i0.Input,
37013
- args: [{
37014
- isSignal: true,
37015
- alias: "title",
37016
- required: false
37017
- }]
37018
- }],
37019
- description: [{
37020
- type: i0.Input,
37021
- args: [{
37022
- isSignal: true,
37023
- alias: "description",
37024
- required: false
37025
- }]
37026
- }],
37027
- actions: [{
37028
- type: i0.Input,
37029
- args: [{
37030
- isSignal: true,
37031
- alias: "actions",
37032
- required: false
37033
- }]
37034
- }],
37035
- options: [{
37036
- type: i0.Input,
37037
- args: [{
37038
- isSignal: true,
37039
- alias: "options",
37040
- required: false
37041
- }]
37042
- }],
37043
- cssClass: [{
37044
- type: i0.Input,
37045
- args: [{
37046
- isSignal: true,
37047
- alias: "class",
37048
- required: false
37049
- }]
37050
- }],
37051
- actionClick: [{
37052
- type: i0.Output,
37053
- args: ["actionClick"]
37054
- }],
37055
- closed: [{
37056
- type: i0.Output,
37057
- args: ["closed"]
37058
- }],
37059
- outlet: [{
37060
- type: i0.ViewChild,
37061
- args: [i0.forwardRef(() => NgComponentOutlet), { isSignal: true }]
37062
- }],
37063
- contentTemplate: [{
37064
- type: i0.ViewChild,
37065
- args: ["content", { isSignal: true }]
37066
- }]
37067
- }
37068
- });
37069
37446
  var MultiColumnLayoutBaseComponent = class MultiColumnLayoutBaseComponent {
37070
37447
  static smartType = "multi-column-layout";
37071
37448
  options = input(...ngDevMode ? [void 0, { debugName: "options" }] : /* istanbul ignore next */ []);
@@ -38429,10 +38806,10 @@ function getNotificationActionClasses(variant, actionVariant) {
38429
38806
  if (BUTTON_VARIANTS.includes(variant)) return `${ACTION_BUTTON_BASE} ${actionVariant === "secondary" ? ACTION_BUTTON_SECONDARY : ACTION_BUTTON_PRIMARY} ${variant === "with-split-buttons" ? "smart:grow" : ""}`.trim();
38430
38807
  return actionVariant === "secondary" ? ACTION_LINK_SECONDARY : ACTION_LINK_PRIMARY;
38431
38808
  }
38432
- let nextId$1 = 0;
38809
+ let nextId$3 = 0;
38433
38810
  var NotificationPresetComponent = class NotificationPresetComponent extends NotificationBaseComponent {
38434
38811
  cssClass = input("", ...ngDevMode ? [{ debugName: "cssClass" }] : /* istanbul ignore next */ []);
38435
- labelId = `smart-notification-preset-${nextId$1++}`;
38812
+ labelId = `smart-notification-preset-${nextId$3++}`;
38436
38813
  variant = computed(() => this.options()?.variant ?? "simple", ...ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []);
38437
38814
  ariaLive = computed(() => this.options()?.ariaLive ?? "polite", ...ngDevMode ? [{ debugName: "ariaLive" }] : /* istanbul ignore next */ []);
38438
38815
  containerClasses = computed(() => getNotificationContainerClasses(), ...ngDevMode ? [{ debugName: "containerClasses" }] : /* istanbul ignore next */ []);
@@ -38903,78 +39280,80 @@ var PageStandardComponent = class PageStandardComponent extends PageBaseComponen
38903
39280
  usesInheritance: true,
38904
39281
  ngImport: i0,
38905
39282
  template: `
38906
- @if (!options()?.hideHeader) {
38907
- <div
38908
- class="smart:md:flex smart:md:items-center smart:md:justify-between smart:px-4 smart:py-4 smart:sm:px-6 smart:lg:px-8"
38909
- >
38910
- <div class="smart:min-w-0 smart:flex-1">
38911
- <div class="smart:flex smart:items-center smart:gap-x-3">
38912
- @if (options()?.showBackButton) {
38913
- <button
38914
- type="button"
38915
- (click)="back()"
38916
- class="smart:inline-flex smart:items-center smart:rounded-md smart:p-1.5 smart:text-gray-400 smart:hover:text-gray-500 smart:dark:text-gray-500 smart:dark:hover:text-gray-400"
38917
- >
38918
- <svg
38919
- xmlns="http://www.w3.org/2000/svg"
38920
- viewBox="0 0 20 20"
38921
- fill="currentColor"
38922
- class="smart:size-5"
39283
+ <div [class]="cssClass()" data-role="page">
39284
+ @if (!options()?.hideHeader) {
39285
+ <div
39286
+ class="smart:md:flex smart:md:items-center smart:md:justify-between smart:px-4 smart:py-4 smart:sm:px-6 smart:lg:px-8"
39287
+ >
39288
+ <div class="smart:min-w-0 smart:flex-1">
39289
+ <div class="smart:flex smart:items-center smart:gap-x-3">
39290
+ @if (options()?.showBackButton) {
39291
+ <button
39292
+ type="button"
39293
+ (click)="back()"
39294
+ class="smart:inline-flex smart:items-center smart:rounded-md smart:p-1.5 smart:text-gray-400 smart:hover:text-gray-500 smart:dark:text-gray-500 smart:dark:hover:text-gray-400"
38923
39295
  >
38924
- <path
38925
- fill-rule="evenodd"
38926
- d="M17 10a.75.75 0 0 1-.75.75H5.612l4.158 3.96a.75.75 0 1 1-1.04 1.08l-5.5-5.25a.75.75 0 0 1 0-1.08l5.5-5.25a.75.75 0 1 1 1.04 1.08L5.612 9.25H16.25A.75.75 0 0 1 17 10Z"
38927
- clip-rule="evenodd"
38928
- />
38929
- </svg>
38930
- </button>
38931
- }
38932
- <h2
38933
- class="smart:text-2xl/7 smart:font-bold smart:text-gray-900 smart:sm:truncate smart:sm:text-3xl smart:sm:tracking-tight smart:dark:text-white"
38934
- >
38935
- {{ options()?.title ?? '' | translate }}
38936
- </h2>
38937
- </div>
38938
- </div>
38939
- @if (options()?.endButtons?.length || options()?.search) {
38940
- <div
38941
- class="smart:mt-4 smart:flex smart:shrink-0 smart:gap-x-2 smart:md:ml-4 smart:md:mt-0"
38942
- >
38943
- @if (options()?.search; as search) {
38944
- <div class="smart:relative smart:rounded-md smart:shadow-xs">
38945
- <input
38946
- type="text"
38947
- [value]="search.text() ?? ''"
38948
- (input)="search.set($any($event.target).value)"
38949
- [placeholder]="'search' | translate"
38950
- class="smart:block smart:w-full smart:rounded-md smart:border-0 smart:py-1.5 smart:pl-3 smart:pr-10 smart:text-gray-900 smart:ring-1 smart:ring-inset smart:ring-gray-300 smart:placeholder:text-gray-400 smart:focus:ring-2 smart:focus:ring-inset smart:focus:ring-indigo-600 smart:sm:text-sm/6 smart:dark:bg-white/5 smart:dark:text-white smart:dark:ring-white/10 smart:dark:placeholder:text-gray-500"
38951
- />
38952
- </div>
38953
- }
38954
- @for (btn of options()?.endButtons ?? []; track btn.icon) {
38955
- <smart-button
38956
- [options]="getButtonOptions(btn)"
38957
- [disabled]="!!(btn.disabled$ | async)"
38958
- >
38959
- @if (btn.text) {
38960
- {{ btn.text | translate }}
38961
- }
38962
- @if (btn.number) {
38963
- <span
38964
- class="smart:ml-1 smart:inline-flex smart:items-center smart:rounded-full smart:bg-indigo-100 smart:px-2 smart:py-0.5 smart:text-xs smart:font-medium smart:text-indigo-700 smart:dark:bg-indigo-500/10 smart:dark:text-indigo-400"
38965
- >{{ btn.number }}</span
39296
+ <svg
39297
+ xmlns="http://www.w3.org/2000/svg"
39298
+ viewBox="0 0 20 20"
39299
+ fill="currentColor"
39300
+ class="smart:size-5"
38966
39301
  >
38967
- }
38968
- </smart-button>
38969
- }
39302
+ <path
39303
+ fill-rule="evenodd"
39304
+ d="M17 10a.75.75 0 0 1-.75.75H5.612l4.158 3.96a.75.75 0 1 1-1.04 1.08l-5.5-5.25a.75.75 0 0 1 0-1.08l5.5-5.25a.75.75 0 1 1 1.04 1.08L5.612 9.25H16.25A.75.75 0 0 1 17 10Z"
39305
+ clip-rule="evenodd"
39306
+ />
39307
+ </svg>
39308
+ </button>
39309
+ }
39310
+ <h2
39311
+ class="smart:text-2xl/7 smart:font-bold smart:text-gray-900 smart:sm:truncate smart:sm:text-3xl smart:sm:tracking-tight smart:dark:text-white"
39312
+ >
39313
+ {{ options()?.title ?? '' | translate }}
39314
+ </h2>
39315
+ </div>
38970
39316
  </div>
39317
+ @if (options()?.endButtons?.length || options()?.search) {
39318
+ <div
39319
+ class="smart:mt-4 smart:flex smart:shrink-0 smart:gap-x-2 smart:md:ml-4 smart:md:mt-0"
39320
+ >
39321
+ @if (options()?.search; as search) {
39322
+ <div class="smart:relative smart:rounded-md smart:shadow-xs">
39323
+ <input
39324
+ type="text"
39325
+ [value]="search.text() ?? ''"
39326
+ (input)="search.set($any($event.target).value)"
39327
+ [placeholder]="'search' | translate"
39328
+ class="smart:block smart:w-full smart:rounded-md smart:border-0 smart:py-1.5 smart:pl-3 smart:pr-10 smart:text-gray-900 smart:ring-1 smart:ring-inset smart:ring-gray-300 smart:placeholder:text-gray-400 smart:focus:ring-2 smart:focus:ring-inset smart:focus:ring-indigo-600 smart:sm:text-sm/6 smart:dark:bg-white/5 smart:dark:text-white smart:dark:ring-white/10 smart:dark:placeholder:text-gray-500"
39329
+ />
39330
+ </div>
39331
+ }
39332
+ @for (btn of options()?.endButtons ?? []; track btn.icon) {
39333
+ <smart-button
39334
+ [options]="getButtonOptions(btn)"
39335
+ [disabled]="!!(btn.disabled$ | async)"
39336
+ >
39337
+ @if (btn.text) {
39338
+ {{ btn.text | translate }}
39339
+ }
39340
+ @if (btn.number) {
39341
+ <span
39342
+ class="smart:ml-1 smart:inline-flex smart:items-center smart:rounded-full smart:bg-indigo-100 smart:px-2 smart:py-0.5 smart:text-xs smart:font-medium smart:text-indigo-700 smart:dark:bg-indigo-500/10 smart:dark:text-indigo-400"
39343
+ >{{ btn.number }}</span
39344
+ >
39345
+ }
39346
+ </smart-button>
39347
+ }
39348
+ </div>
39349
+ }
39350
+ </div>
39351
+ }
39352
+ <div class="smart:px-4 smart:sm:px-6 smart:lg:px-8">
39353
+ @if (options()?.bodyTpl; as bodyTpl) {
39354
+ <ng-container [ngTemplateOutlet]="bodyTpl"></ng-container>
38971
39355
  }
38972
39356
  </div>
38973
- }
38974
- <div class="smart:px-4 smart:sm:px-6 smart:lg:px-8">
38975
- @if (options()?.bodyTpl; as bodyTpl) {
38976
- <ng-container [ngTemplateOutlet]="bodyTpl"></ng-container>
38977
- }
38978
39357
  </div>
38979
39358
  `,
38980
39359
  isInline: true,
@@ -39024,78 +39403,80 @@ i0.ɵɵngDeclareClassMetadata({
39024
39403
  args: [{
39025
39404
  selector: "smart-page-standard",
39026
39405
  template: `
39027
- @if (!options()?.hideHeader) {
39028
- <div
39029
- class="smart:md:flex smart:md:items-center smart:md:justify-between smart:px-4 smart:py-4 smart:sm:px-6 smart:lg:px-8"
39030
- >
39031
- <div class="smart:min-w-0 smart:flex-1">
39032
- <div class="smart:flex smart:items-center smart:gap-x-3">
39033
- @if (options()?.showBackButton) {
39034
- <button
39035
- type="button"
39036
- (click)="back()"
39037
- class="smart:inline-flex smart:items-center smart:rounded-md smart:p-1.5 smart:text-gray-400 smart:hover:text-gray-500 smart:dark:text-gray-500 smart:dark:hover:text-gray-400"
39038
- >
39039
- <svg
39040
- xmlns="http://www.w3.org/2000/svg"
39041
- viewBox="0 0 20 20"
39042
- fill="currentColor"
39043
- class="smart:size-5"
39406
+ <div [class]="cssClass()" data-role="page">
39407
+ @if (!options()?.hideHeader) {
39408
+ <div
39409
+ class="smart:md:flex smart:md:items-center smart:md:justify-between smart:px-4 smart:py-4 smart:sm:px-6 smart:lg:px-8"
39410
+ >
39411
+ <div class="smart:min-w-0 smart:flex-1">
39412
+ <div class="smart:flex smart:items-center smart:gap-x-3">
39413
+ @if (options()?.showBackButton) {
39414
+ <button
39415
+ type="button"
39416
+ (click)="back()"
39417
+ class="smart:inline-flex smart:items-center smart:rounded-md smart:p-1.5 smart:text-gray-400 smart:hover:text-gray-500 smart:dark:text-gray-500 smart:dark:hover:text-gray-400"
39044
39418
  >
39045
- <path
39046
- fill-rule="evenodd"
39047
- d="M17 10a.75.75 0 0 1-.75.75H5.612l4.158 3.96a.75.75 0 1 1-1.04 1.08l-5.5-5.25a.75.75 0 0 1 0-1.08l5.5-5.25a.75.75 0 1 1 1.04 1.08L5.612 9.25H16.25A.75.75 0 0 1 17 10Z"
39048
- clip-rule="evenodd"
39049
- />
39050
- </svg>
39051
- </button>
39052
- }
39053
- <h2
39054
- class="smart:text-2xl/7 smart:font-bold smart:text-gray-900 smart:sm:truncate smart:sm:text-3xl smart:sm:tracking-tight smart:dark:text-white"
39055
- >
39056
- {{ options()?.title ?? '' | translate }}
39057
- </h2>
39058
- </div>
39059
- </div>
39060
- @if (options()?.endButtons?.length || options()?.search) {
39061
- <div
39062
- class="smart:mt-4 smart:flex smart:shrink-0 smart:gap-x-2 smart:md:ml-4 smart:md:mt-0"
39063
- >
39064
- @if (options()?.search; as search) {
39065
- <div class="smart:relative smart:rounded-md smart:shadow-xs">
39066
- <input
39067
- type="text"
39068
- [value]="search.text() ?? ''"
39069
- (input)="search.set($any($event.target).value)"
39070
- [placeholder]="'search' | translate"
39071
- class="smart:block smart:w-full smart:rounded-md smart:border-0 smart:py-1.5 smart:pl-3 smart:pr-10 smart:text-gray-900 smart:ring-1 smart:ring-inset smart:ring-gray-300 smart:placeholder:text-gray-400 smart:focus:ring-2 smart:focus:ring-inset smart:focus:ring-indigo-600 smart:sm:text-sm/6 smart:dark:bg-white/5 smart:dark:text-white smart:dark:ring-white/10 smart:dark:placeholder:text-gray-500"
39072
- />
39073
- </div>
39074
- }
39075
- @for (btn of options()?.endButtons ?? []; track btn.icon) {
39076
- <smart-button
39077
- [options]="getButtonOptions(btn)"
39078
- [disabled]="!!(btn.disabled$ | async)"
39079
- >
39080
- @if (btn.text) {
39081
- {{ btn.text | translate }}
39082
- }
39083
- @if (btn.number) {
39084
- <span
39085
- class="smart:ml-1 smart:inline-flex smart:items-center smart:rounded-full smart:bg-indigo-100 smart:px-2 smart:py-0.5 smart:text-xs smart:font-medium smart:text-indigo-700 smart:dark:bg-indigo-500/10 smart:dark:text-indigo-400"
39086
- >{{ btn.number }}</span
39419
+ <svg
39420
+ xmlns="http://www.w3.org/2000/svg"
39421
+ viewBox="0 0 20 20"
39422
+ fill="currentColor"
39423
+ class="smart:size-5"
39087
39424
  >
39088
- }
39089
- </smart-button>
39090
- }
39425
+ <path
39426
+ fill-rule="evenodd"
39427
+ d="M17 10a.75.75 0 0 1-.75.75H5.612l4.158 3.96a.75.75 0 1 1-1.04 1.08l-5.5-5.25a.75.75 0 0 1 0-1.08l5.5-5.25a.75.75 0 1 1 1.04 1.08L5.612 9.25H16.25A.75.75 0 0 1 17 10Z"
39428
+ clip-rule="evenodd"
39429
+ />
39430
+ </svg>
39431
+ </button>
39432
+ }
39433
+ <h2
39434
+ class="smart:text-2xl/7 smart:font-bold smart:text-gray-900 smart:sm:truncate smart:sm:text-3xl smart:sm:tracking-tight smart:dark:text-white"
39435
+ >
39436
+ {{ options()?.title ?? '' | translate }}
39437
+ </h2>
39438
+ </div>
39091
39439
  </div>
39440
+ @if (options()?.endButtons?.length || options()?.search) {
39441
+ <div
39442
+ class="smart:mt-4 smart:flex smart:shrink-0 smart:gap-x-2 smart:md:ml-4 smart:md:mt-0"
39443
+ >
39444
+ @if (options()?.search; as search) {
39445
+ <div class="smart:relative smart:rounded-md smart:shadow-xs">
39446
+ <input
39447
+ type="text"
39448
+ [value]="search.text() ?? ''"
39449
+ (input)="search.set($any($event.target).value)"
39450
+ [placeholder]="'search' | translate"
39451
+ class="smart:block smart:w-full smart:rounded-md smart:border-0 smart:py-1.5 smart:pl-3 smart:pr-10 smart:text-gray-900 smart:ring-1 smart:ring-inset smart:ring-gray-300 smart:placeholder:text-gray-400 smart:focus:ring-2 smart:focus:ring-inset smart:focus:ring-indigo-600 smart:sm:text-sm/6 smart:dark:bg-white/5 smart:dark:text-white smart:dark:ring-white/10 smart:dark:placeholder:text-gray-500"
39452
+ />
39453
+ </div>
39454
+ }
39455
+ @for (btn of options()?.endButtons ?? []; track btn.icon) {
39456
+ <smart-button
39457
+ [options]="getButtonOptions(btn)"
39458
+ [disabled]="!!(btn.disabled$ | async)"
39459
+ >
39460
+ @if (btn.text) {
39461
+ {{ btn.text | translate }}
39462
+ }
39463
+ @if (btn.number) {
39464
+ <span
39465
+ class="smart:ml-1 smart:inline-flex smart:items-center smart:rounded-full smart:bg-indigo-100 smart:px-2 smart:py-0.5 smart:text-xs smart:font-medium smart:text-indigo-700 smart:dark:bg-indigo-500/10 smart:dark:text-indigo-400"
39466
+ >{{ btn.number }}</span
39467
+ >
39468
+ }
39469
+ </smart-button>
39470
+ }
39471
+ </div>
39472
+ }
39473
+ </div>
39474
+ }
39475
+ <div class="smart:px-4 smart:sm:px-6 smart:lg:px-8">
39476
+ @if (options()?.bodyTpl; as bodyTpl) {
39477
+ <ng-container [ngTemplateOutlet]="bodyTpl"></ng-container>
39092
39478
  }
39093
39479
  </div>
39094
- }
39095
- <div class="smart:px-4 smart:sm:px-6 smart:lg:px-8">
39096
- @if (options()?.bodyTpl; as bodyTpl) {
39097
- <ng-container [ngTemplateOutlet]="bodyTpl"></ng-container>
39098
- }
39099
39480
  </div>
39100
39481
  `,
39101
39482
  imports: [
@@ -42507,10 +42888,10 @@ function textareaActionClasses(actionVariant, variant) {
42507
42888
  function textareaTabClasses(selected) {
42508
42889
  return join(TAB_BASE, selected ? "smart:bg-gray-100 smart:text-gray-900 smart:dark:bg-white/10 smart:dark:text-white" : "smart:text-gray-500 smart:hover:bg-gray-100 smart:hover:text-gray-900 smart:dark:text-gray-400 smart:dark:hover:bg-white/5 smart:dark:hover:text-white");
42509
42890
  }
42510
- let nextId = 0;
42891
+ let nextId$2 = 0;
42511
42892
  var TextareaPresetComponent = class TextareaPresetComponent extends TextareaBaseComponent {
42512
42893
  cssClass = input("", ...ngDevMode ? [{ debugName: "cssClass" }] : /* istanbul ignore next */ []);
42513
- fieldId = `smart-textarea-preset-${nextId++}`;
42894
+ fieldId = `smart-textarea-preset-${nextId$2++}`;
42514
42895
  mode = signal("write", ...ngDevMode ? [{ debugName: "mode" }] : /* istanbul ignore next */ []);
42515
42896
  fieldRef = viewChild("field", ...ngDevMode ? [{ debugName: "fieldRef" }] : /* istanbul ignore next */ []);
42516
42897
  variant = computed(() => this.options()?.variant ?? "simple", ...ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []);
@@ -42984,8 +43365,12 @@ const NAV = [
42984
43365
  "smart:-me-0.5",
42985
43366
  "smart:flex",
42986
43367
  "smart:flex-col",
42987
- "smart:space-y-3"
43368
+ "smart:space-y-3",
43369
+ "smart:my-0",
43370
+ "smart:p-0",
43371
+ "smart:list-none"
42988
43372
  ].join(" ");
43373
+ const LIST_ITEM = ["smart:flex", "smart:flex-col"].join(" ");
42989
43374
  const GROUP_TITLE = [
42990
43375
  "smart:px-1",
42991
43376
  "smart:pb-1",
@@ -43058,6 +43443,9 @@ function getVerticalNavContainerClasses() {
43058
43443
  function getVerticalNavNavClasses() {
43059
43444
  return NAV;
43060
43445
  }
43446
+ function getVerticalNavListItemClasses() {
43447
+ return LIST_ITEM;
43448
+ }
43061
43449
  function getVerticalNavGroupTitleClasses() {
43062
43450
  return GROUP_TITLE;
43063
43451
  }
@@ -43073,6 +43461,7 @@ function getVerticalNavInitialClasses() {
43073
43461
  function getVerticalNavBadgeClasses() {
43074
43462
  return ITEM_BADGE;
43075
43463
  }
43464
+ let nextId$1 = 0;
43076
43465
  var VerticalNavigationPresetComponent = class VerticalNavigationPresetComponent extends VerticalNavigationBaseComponent {
43077
43466
  cssClass = input("", ...ngDevMode ? [{ debugName: "cssClass" }] : /* istanbul ignore next */ []);
43078
43467
  groups = computed(() => this.resolvedGroups(), ...ngDevMode ? [{ debugName: "groups" }] : /* istanbul ignore next */ []);
@@ -43082,6 +43471,11 @@ var VerticalNavigationPresetComponent = class VerticalNavigationPresetComponent
43082
43471
  iconClasses = getVerticalNavIconClasses();
43083
43472
  initialClasses = getVerticalNavInitialClasses();
43084
43473
  badgeClasses = getVerticalNavBadgeClasses();
43474
+ listItemClasses = getVerticalNavListItemClasses();
43475
+ idPrefix = `smart-vertical-navigation-${nextId$1++}`;
43476
+ groupTitleId(groupIndex) {
43477
+ return `${this.idPrefix}-group-${groupIndex}`;
43478
+ }
43085
43479
  itemClasses(current) {
43086
43480
  return getVerticalNavItemClasses(Boolean(current));
43087
43481
  }
@@ -43111,7 +43505,7 @@ var VerticalNavigationPresetComponent = class VerticalNavigationPresetComponent
43111
43505
  } },
43112
43506
  usesInheritance: true,
43113
43507
  ngImport: i0,
43114
- template: "<div [class]=\"containerClasses() + ' ' + cssClass()\">\n @for (group of groups(); track group.id ?? $index) {\n @if (group.title) {\n <div [class]=\"groupTitleClasses\">{{ group.title }}</div>\n }\n <nav\n [class]=\"navClasses()\"\n [attr.aria-label]=\"options()?.ariaLabel ?? 'Sidebar'\"\n >\n @for (item of group.items; track item.id) {\n @if (item.href) {\n <a\n [href]=\"item.href\"\n [class]=\"itemClasses(item.current)\"\n [attr.aria-current]=\"item.current ? 'page' : null\"\n >\n <ng-container\n [ngTemplateOutlet]=\"itemContent\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"\n />\n </a>\n } @else {\n <button\n type=\"button\"\n [class]=\"itemClasses(item.current)\"\n [attr.aria-current]=\"item.current ? 'page' : null\"\n (click)=\"onItemClick(item.id)\"\n >\n <ng-container\n [ngTemplateOutlet]=\"itemContent\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"\n />\n </button>\n }\n }\n </nav>\n }\n</div>\n\n<ng-template #itemContent let-item>\n @if (item.iconTpl) {\n <span [class]=\"iconClasses\">\n <ng-container [ngTemplateOutlet]=\"item.iconTpl\" />\n </span>\n } @else if (item.initial) {\n <span [class]=\"initialClasses\">{{ item.initial }}</span>\n }\n @if (item.label) {\n <span>{{ item.label }}</span>\n }\n @if (item.badge !== undefined && item.badge !== null) {\n <span [class]=\"badgeClasses\">{{ item.badge }}</span>\n }\n</ng-template>\n",
43508
+ template: "<nav\n [class]=\"containerClasses() + ' ' + cssClass()\"\n [attr.aria-label]=\"options()?.ariaLabel ?? 'Sidebar'\"\n>\n @for (group of groups(); track group.id ?? $index; let groupIndex = $index) {\n @if (group.title) {\n <div [id]=\"groupTitleId(groupIndex)\" [class]=\"groupTitleClasses\">\n {{ group.title }}\n </div>\n }\n <ul\n role=\"list\"\n [class]=\"navClasses()\"\n [attr.aria-labelledby]=\"group.title ? groupTitleId(groupIndex) : null\"\n >\n @for (item of group.items; track item.id) {\n <li [class]=\"listItemClasses\">\n @if (item.href) {\n <a\n [href]=\"item.href\"\n [class]=\"itemClasses(item.current)\"\n [attr.aria-current]=\"item.current ? 'page' : null\"\n >\n <ng-container\n [ngTemplateOutlet]=\"itemContent\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"\n />\n </a>\n } @else {\n <button\n type=\"button\"\n [class]=\"itemClasses(item.current)\"\n [attr.aria-current]=\"item.current ? 'page' : null\"\n (click)=\"onItemClick(item.id)\"\n >\n <ng-container\n [ngTemplateOutlet]=\"itemContent\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"\n />\n </button>\n }\n </li>\n }\n </ul>\n }\n</nav>\n\n<ng-template #itemContent let-item>\n @if (item.iconTpl) {\n <span [class]=\"iconClasses\">\n <ng-container [ngTemplateOutlet]=\"item.iconTpl\" />\n </span>\n } @else if (item.initial) {\n <span [class]=\"initialClasses\">{{ item.initial }}</span>\n }\n @if (item.label) {\n <span>{{ item.label }}</span>\n }\n @if (item.badge !== undefined && item.badge !== null) {\n <span [class]=\"badgeClasses\">{{ item.badge }}</span>\n }\n</ng-template>\n",
43115
43509
  dependencies: [{
43116
43510
  kind: "directive",
43117
43511
  type: NgTemplateOutlet,
@@ -43138,7 +43532,7 @@ i0.ɵɵngDeclareClassMetadata({
43138
43532
  encapsulation: ViewEncapsulation.None,
43139
43533
  imports: [NgTemplateOutlet],
43140
43534
  changeDetection: ChangeDetectionStrategy.OnPush,
43141
- template: "<div [class]=\"containerClasses() + ' ' + cssClass()\">\n @for (group of groups(); track group.id ?? $index) {\n @if (group.title) {\n <div [class]=\"groupTitleClasses\">{{ group.title }}</div>\n }\n <nav\n [class]=\"navClasses()\"\n [attr.aria-label]=\"options()?.ariaLabel ?? 'Sidebar'\"\n >\n @for (item of group.items; track item.id) {\n @if (item.href) {\n <a\n [href]=\"item.href\"\n [class]=\"itemClasses(item.current)\"\n [attr.aria-current]=\"item.current ? 'page' : null\"\n >\n <ng-container\n [ngTemplateOutlet]=\"itemContent\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"\n />\n </a>\n } @else {\n <button\n type=\"button\"\n [class]=\"itemClasses(item.current)\"\n [attr.aria-current]=\"item.current ? 'page' : null\"\n (click)=\"onItemClick(item.id)\"\n >\n <ng-container\n [ngTemplateOutlet]=\"itemContent\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"\n />\n </button>\n }\n }\n </nav>\n }\n</div>\n\n<ng-template #itemContent let-item>\n @if (item.iconTpl) {\n <span [class]=\"iconClasses\">\n <ng-container [ngTemplateOutlet]=\"item.iconTpl\" />\n </span>\n } @else if (item.initial) {\n <span [class]=\"initialClasses\">{{ item.initial }}</span>\n }\n @if (item.label) {\n <span>{{ item.label }}</span>\n }\n @if (item.badge !== undefined && item.badge !== null) {\n <span [class]=\"badgeClasses\">{{ item.badge }}</span>\n }\n</ng-template>\n"
43535
+ template: "<nav\n [class]=\"containerClasses() + ' ' + cssClass()\"\n [attr.aria-label]=\"options()?.ariaLabel ?? 'Sidebar'\"\n>\n @for (group of groups(); track group.id ?? $index; let groupIndex = $index) {\n @if (group.title) {\n <div [id]=\"groupTitleId(groupIndex)\" [class]=\"groupTitleClasses\">\n {{ group.title }}\n </div>\n }\n <ul\n role=\"list\"\n [class]=\"navClasses()\"\n [attr.aria-labelledby]=\"group.title ? groupTitleId(groupIndex) : null\"\n >\n @for (item of group.items; track item.id) {\n <li [class]=\"listItemClasses\">\n @if (item.href) {\n <a\n [href]=\"item.href\"\n [class]=\"itemClasses(item.current)\"\n [attr.aria-current]=\"item.current ? 'page' : null\"\n >\n <ng-container\n [ngTemplateOutlet]=\"itemContent\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"\n />\n </a>\n } @else {\n <button\n type=\"button\"\n [class]=\"itemClasses(item.current)\"\n [attr.aria-current]=\"item.current ? 'page' : null\"\n (click)=\"onItemClick(item.id)\"\n >\n <ng-container\n [ngTemplateOutlet]=\"itemContent\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"\n />\n </button>\n }\n </li>\n }\n </ul>\n }\n</nav>\n\n<ng-template #itemContent let-item>\n @if (item.iconTpl) {\n <span [class]=\"iconClasses\">\n <ng-container [ngTemplateOutlet]=\"item.iconTpl\" />\n </span>\n } @else if (item.initial) {\n <span [class]=\"initialClasses\">{{ item.initial }}</span>\n }\n @if (item.label) {\n <span>{{ item.label }}</span>\n }\n @if (item.badge !== undefined && item.badge !== null) {\n <span [class]=\"badgeClasses\">{{ item.badge }}</span>\n }\n</ng-template>\n"
43142
43536
  }]
43143
43537
  }],
43144
43538
  propDecorators: { cssClass: [{
@@ -46561,7 +46955,12 @@ i0.ɵɵngDeclareClassMetadata({
46561
46955
  }]
46562
46956
  }
46563
46957
  });
46958
+ let nextId = 0;
46564
46959
  var VerticalNavigationStandardComponent = class VerticalNavigationStandardComponent extends VerticalNavigationBaseComponent {
46960
+ idPrefix = `smart-vertical-navigation-standard-${nextId++}`;
46961
+ groupTitleId(groupIndex) {
46962
+ return `${this.idPrefix}-group-${groupIndex}`;
46963
+ }
46565
46964
  onItemClick(itemId) {
46566
46965
  this.itemClick.emit({ itemId });
46567
46966
  }
@@ -46584,7 +46983,7 @@ var VerticalNavigationStandardComponent = class VerticalNavigationStandardCompon
46584
46983
  selector: "smart-vertical-navigation-standard",
46585
46984
  usesInheritance: true,
46586
46985
  ngImport: i0,
46587
- template: "<div [class]=\"cssClass()\">\n <nav\n class=\"vertical-navigation\"\n [attr.aria-label]=\"options()?.ariaLabel ?? 'Sidebar'\"\n >\n <ul role=\"list\" class=\"groups\">\n @for (group of groups; track group.id ?? $index) {\n <li class=\"group\">\n @if (group.title) {\n <div class=\"group-title\">{{ group.title }}</div>\n }\n <ul role=\"list\" class=\"items\">\n @for (item of group.items; track item.id) {\n <li class=\"item\">\n @if (item.href) {\n <a\n [href]=\"item.href\"\n [class]=\"'item-link' + (item.current ? ' current' : '')\"\n [attr.aria-current]=\"item.current ? 'page' : null\"\n >\n @if (item.iconTpl) {\n <span class=\"item-icon\">\n <ng-container [ngTemplateOutlet]=\"item.iconTpl\" />\n </span>\n } @else if (item.initial) {\n <span class=\"item-initial\">{{ item.initial }}</span>\n }\n @if (item.label) {\n <span class=\"item-label\">{{ item.label }}</span>\n }\n @if (item.badge !== undefined && item.badge !== null) {\n <span class=\"item-badge\">{{ item.badge }}</span>\n }\n </a>\n } @else {\n <button\n type=\"button\"\n [class]=\"'item-button' + (item.current ? ' current' : '')\"\n [attr.aria-current]=\"item.current ? 'page' : null\"\n (click)=\"onItemClick(item.id)\"\n >\n @if (item.iconTpl) {\n <span class=\"item-icon\">\n <ng-container [ngTemplateOutlet]=\"item.iconTpl\" />\n </span>\n } @else if (item.initial) {\n <span class=\"item-initial\">{{ item.initial }}</span>\n }\n @if (item.label) {\n <span class=\"item-label\">{{ item.label }}</span>\n }\n @if (item.badge !== undefined && item.badge !== null) {\n <span class=\"item-badge\">{{ item.badge }}</span>\n }\n </button>\n }\n </li>\n }\n </ul>\n </li>\n }\n </ul>\n </nav>\n</div>\n",
46986
+ template: "<div [class]=\"cssClass()\">\n <nav\n class=\"vertical-navigation\"\n [attr.aria-label]=\"options()?.ariaLabel ?? 'Sidebar'\"\n >\n <ul role=\"list\" class=\"groups\">\n @for (\n group of groups;\n track group.id ?? $index;\n let groupIndex = $index\n ) {\n <li class=\"group\">\n @if (group.title) {\n <div [id]=\"groupTitleId(groupIndex)\" class=\"group-title\">\n {{ group.title }}\n </div>\n }\n <ul\n role=\"list\"\n class=\"items\"\n [attr.aria-labelledby]=\"\n group.title ? groupTitleId(groupIndex) : null\n \"\n >\n @for (item of group.items; track item.id) {\n <li class=\"item\">\n @if (item.href) {\n <a\n [href]=\"item.href\"\n [class]=\"'item-link' + (item.current ? ' current' : '')\"\n [attr.aria-current]=\"item.current ? 'page' : null\"\n >\n @if (item.iconTpl) {\n <span class=\"item-icon\">\n <ng-container [ngTemplateOutlet]=\"item.iconTpl\" />\n </span>\n } @else if (item.initial) {\n <span class=\"item-initial\">{{ item.initial }}</span>\n }\n @if (item.label) {\n <span class=\"item-label\">{{ item.label }}</span>\n }\n @if (item.badge !== undefined && item.badge !== null) {\n <span class=\"item-badge\">{{ item.badge }}</span>\n }\n </a>\n } @else {\n <button\n type=\"button\"\n [class]=\"'item-button' + (item.current ? ' current' : '')\"\n [attr.aria-current]=\"item.current ? 'page' : null\"\n (click)=\"onItemClick(item.id)\"\n >\n @if (item.iconTpl) {\n <span class=\"item-icon\">\n <ng-container [ngTemplateOutlet]=\"item.iconTpl\" />\n </span>\n } @else if (item.initial) {\n <span class=\"item-initial\">{{ item.initial }}</span>\n }\n @if (item.label) {\n <span class=\"item-label\">{{ item.label }}</span>\n }\n @if (item.badge !== undefined && item.badge !== null) {\n <span class=\"item-badge\">{{ item.badge }}</span>\n }\n </button>\n }\n </li>\n }\n </ul>\n </li>\n }\n </ul>\n </nav>\n</div>\n",
46588
46987
  dependencies: [{
46589
46988
  kind: "directive",
46590
46989
  type: NgTemplateOutlet,
@@ -46611,7 +47010,7 @@ i0.ɵɵngDeclareClassMetadata({
46611
47010
  encapsulation: ViewEncapsulation.None,
46612
47011
  changeDetection: ChangeDetectionStrategy.OnPush,
46613
47012
  imports: [NgTemplateOutlet],
46614
- template: "<div [class]=\"cssClass()\">\n <nav\n class=\"vertical-navigation\"\n [attr.aria-label]=\"options()?.ariaLabel ?? 'Sidebar'\"\n >\n <ul role=\"list\" class=\"groups\">\n @for (group of groups; track group.id ?? $index) {\n <li class=\"group\">\n @if (group.title) {\n <div class=\"group-title\">{{ group.title }}</div>\n }\n <ul role=\"list\" class=\"items\">\n @for (item of group.items; track item.id) {\n <li class=\"item\">\n @if (item.href) {\n <a\n [href]=\"item.href\"\n [class]=\"'item-link' + (item.current ? ' current' : '')\"\n [attr.aria-current]=\"item.current ? 'page' : null\"\n >\n @if (item.iconTpl) {\n <span class=\"item-icon\">\n <ng-container [ngTemplateOutlet]=\"item.iconTpl\" />\n </span>\n } @else if (item.initial) {\n <span class=\"item-initial\">{{ item.initial }}</span>\n }\n @if (item.label) {\n <span class=\"item-label\">{{ item.label }}</span>\n }\n @if (item.badge !== undefined && item.badge !== null) {\n <span class=\"item-badge\">{{ item.badge }}</span>\n }\n </a>\n } @else {\n <button\n type=\"button\"\n [class]=\"'item-button' + (item.current ? ' current' : '')\"\n [attr.aria-current]=\"item.current ? 'page' : null\"\n (click)=\"onItemClick(item.id)\"\n >\n @if (item.iconTpl) {\n <span class=\"item-icon\">\n <ng-container [ngTemplateOutlet]=\"item.iconTpl\" />\n </span>\n } @else if (item.initial) {\n <span class=\"item-initial\">{{ item.initial }}</span>\n }\n @if (item.label) {\n <span class=\"item-label\">{{ item.label }}</span>\n }\n @if (item.badge !== undefined && item.badge !== null) {\n <span class=\"item-badge\">{{ item.badge }}</span>\n }\n </button>\n }\n </li>\n }\n </ul>\n </li>\n }\n </ul>\n </nav>\n</div>\n"
47013
+ template: "<div [class]=\"cssClass()\">\n <nav\n class=\"vertical-navigation\"\n [attr.aria-label]=\"options()?.ariaLabel ?? 'Sidebar'\"\n >\n <ul role=\"list\" class=\"groups\">\n @for (\n group of groups;\n track group.id ?? $index;\n let groupIndex = $index\n ) {\n <li class=\"group\">\n @if (group.title) {\n <div [id]=\"groupTitleId(groupIndex)\" class=\"group-title\">\n {{ group.title }}\n </div>\n }\n <ul\n role=\"list\"\n class=\"items\"\n [attr.aria-labelledby]=\"\n group.title ? groupTitleId(groupIndex) : null\n \"\n >\n @for (item of group.items; track item.id) {\n <li class=\"item\">\n @if (item.href) {\n <a\n [href]=\"item.href\"\n [class]=\"'item-link' + (item.current ? ' current' : '')\"\n [attr.aria-current]=\"item.current ? 'page' : null\"\n >\n @if (item.iconTpl) {\n <span class=\"item-icon\">\n <ng-container [ngTemplateOutlet]=\"item.iconTpl\" />\n </span>\n } @else if (item.initial) {\n <span class=\"item-initial\">{{ item.initial }}</span>\n }\n @if (item.label) {\n <span class=\"item-label\">{{ item.label }}</span>\n }\n @if (item.badge !== undefined && item.badge !== null) {\n <span class=\"item-badge\">{{ item.badge }}</span>\n }\n </a>\n } @else {\n <button\n type=\"button\"\n [class]=\"'item-button' + (item.current ? ' current' : '')\"\n [attr.aria-current]=\"item.current ? 'page' : null\"\n (click)=\"onItemClick(item.id)\"\n >\n @if (item.iconTpl) {\n <span class=\"item-icon\">\n <ng-container [ngTemplateOutlet]=\"item.iconTpl\" />\n </span>\n } @else if (item.initial) {\n <span class=\"item-initial\">{{ item.initial }}</span>\n }\n @if (item.label) {\n <span class=\"item-label\">{{ item.label }}</span>\n }\n @if (item.badge !== undefined && item.badge !== null) {\n <span class=\"item-badge\">{{ item.badge }}</span>\n }\n </button>\n }\n </li>\n }\n </ul>\n </li>\n }\n </ul>\n </nav>\n</div>\n"
46615
47014
  }]
46616
47015
  }]
46617
47016
  });
@@ -46764,97 +47163,6 @@ i0.ɵɵngDeclareClassMetadata({
46764
47163
  }]
46765
47164
  }
46766
47165
  });
46767
- var DetailsPage = class DetailsPage {
46768
- modalService = inject(ModalService);
46769
- styleService = inject(StyleService);
46770
- elementRef = inject(ElementRef);
46771
- pageOptions = signal({
46772
- title: "details",
46773
- hideMenuButton: true
46774
- }, ...ngDevMode ? [{ debugName: "pageOptions" }] : /* istanbul ignore next */ []);
46775
- detailsOptions;
46776
- constructor() {
46777
- this.detailsOptions = {};
46778
- this.initTitle();
46779
- this.initButtons();
46780
- }
46781
- ngOnInit() {
46782
- this.styleService.init(this.elementRef);
46783
- }
46784
- initTitle() {
46785
- this.pageOptions.update((options) => {
46786
- if (this.detailsOptions.title) return {
46787
- ...options,
46788
- title: this.detailsOptions.title
46789
- };
46790
- return options;
46791
- });
46792
- }
46793
- initButtons() {
46794
- const buttons = [];
46795
- if (this.detailsOptions.removeHandler) buttons.push({
46796
- handler: () => {
46797
- const item = this.detailsOptions.item?.();
46798
- if (item) this.detailsOptions.removeHandler?.(item);
46799
- this.modalService.dismiss();
46800
- },
46801
- icon: "trash"
46802
- });
46803
- if (this.detailsOptions.itemHandler) buttons.push({
46804
- handler: () => {
46805
- const item = this.detailsOptions.item?.();
46806
- if (item) this.detailsOptions.itemHandler?.(item.id);
46807
- this.modalService.dismiss();
46808
- },
46809
- icon: "arrow-forward-outline"
46810
- });
46811
- this.pageOptions.update((options) => ({
46812
- ...options,
46813
- endButtons: buttons
46814
- }));
46815
- }
46816
- static ɵfac = i0.ɵɵngDeclareFactory({
46817
- minVersion: "12.0.0",
46818
- version: "22.2.2",
46819
- ngImport: i0,
46820
- type: DetailsPage,
46821
- deps: [],
46822
- target: i0.ɵɵFactoryTarget.Component
46823
- });
46824
- static ɵcmp = i0.ɵɵngDeclareComponent({
46825
- minVersion: "14.0.0",
46826
- version: "22.2.2",
46827
- type: DetailsPage,
46828
- isStandalone: true,
46829
- selector: "ng-component",
46830
- ngImport: i0,
46831
- template: "<!-- TODO: PageComponent moved to @smartsoft001-pro/angular (FRA-121) -->\n<!--<smart-page [options]=\"pageOptions()\">-->\n<smart-details #smartDetails [options]=\"detailsOptions\"></smart-details>\n<!--</smart-page>-->\n",
46832
- styles: [":host{width:100%}\n"],
46833
- dependencies: [{
46834
- kind: "component",
46835
- type: DetailsComponent,
46836
- selector: "smart-details",
46837
- inputs: ["options", "class"]
46838
- }],
46839
- changeDetection: i0.ChangeDetectionStrategy.Eager
46840
- });
46841
- };
46842
- i0.ɵɵngDeclareClassMetadata({
46843
- minVersion: "12.0.0",
46844
- version: "22.2.2",
46845
- ngImport: i0,
46846
- type: DetailsPage,
46847
- decorators: [{
46848
- type: Component,
46849
- args: [{
46850
- imports: [DetailsComponent],
46851
- changeDetection: ChangeDetectionStrategy.Eager,
46852
- template: "<!-- TODO: PageComponent moved to @smartsoft001-pro/angular (FRA-121) -->\n<!--<smart-page [options]=\"pageOptions()\">-->\n<smart-details #smartDetails [options]=\"detailsOptions\"></smart-details>\n<!--</smart-page>-->\n",
46853
- styles: [":host{width:100%}\n"]
46854
- }]
46855
- }],
46856
- ctorParameters: () => []
46857
- });
46858
47166
  const ACCORDION_COMPONENTS = [
46859
47167
  AccordionComponent,
46860
47168
  AccordionDefaultComponent,
@@ -47812,6 +48120,6 @@ function SmartNgModuleDecorator(options) {
47812
48120
  return NgModule(options)(constructor);
47813
48121
  };
47814
48122
  }
47815
- export { ACTION_PANEL_STANDARD_COMPONENT_TOKEN, ALERT_STANDARD_COMPONENT_TOKEN, AUTH_TOKEN, AVATAR_STANDARD_COMPONENT_TOKEN, AccordionBaseComponent, AccordionBodyComponent, AccordionComponent, AccordionDefaultComponent, AccordionHeaderComponent, AccordionPresetComponent, ActionPanelBaseComponent, ActionPanelComponent, ActionPanelPresetComponent, ActionPanelStandardComponent, AlertBaseComponent, AlertComponent, AlertService, AlertStandardComponent, AppBaseComponent, AppService, AuthService, AvatarBaseComponent, AvatarComponent, AvatarPresetComponent, AvatarStandardComponent, BADGE_STANDARD_COMPONENT_TOKEN, BREADCRUMBS_STANDARD_COMPONENT_TOKEN, BUTTON_GROUP_STANDARD_COMPONENT_TOKEN, BUTTON_STANDARD_COMPONENT_TOKEN, BadgeBaseComponent, BadgeComponent, BadgePresetComponent, BadgeStandardComponent, BaseComponent, BreadcrumbsBaseComponent, BreadcrumbsComponent, BreadcrumbsPresetComponent, BreadcrumbsStandardComponent, ButtonBaseComponent, ButtonComponent, ButtonGroupBaseComponent, ButtonGroupComponent, ButtonGroupPresetComponent, ButtonGroupStandardComponent, ButtonPresetComponent, ButtonStandardComponent, CALENDAR_STANDARD_COMPONENT_TOKEN, CARD_HEADING_STANDARD_COMPONENT_TOKEN, CARD_STANDARD_COMPONENT_TOKEN, COMMAND_PALETTE_STANDARD_COMPONENT_TOKEN, COMPONENT_COLORS, CONTAINER_STANDARD_COMPONENT_TOKEN, CalendarBaseComponent, CalendarComponent, CalendarPresetComponent, CalendarService, CalendarStandardComponent, CardBaseComponent, CardComponent, CardHeadingBaseComponent, CardHeadingComponent, CardHeadingPresetComponent, CardHeadingStandardComponent, CardPresetComponent, CardStandardComponent, CommandPaletteBaseComponent, CommandPaletteComponent, CommandPalettePresetComponent, CommandPaletteStandardComponent, ContainerBaseComponent, ContainerComponent, ContainerPresetComponent, ContainerStandardComponent, CreateDynamicComponent, DESCRIPTION_LIST_STANDARD_COMPONENT_TOKEN, DETAILS_COMPONENT_TOKEN, DETAILS_STANDARD_COMPONENT_TOKEN, DETAIL_FIELD_COMPONENTS_TOKEN, DETAIL_PRESET_FIELD_COMPONENTS, DIVIDER_STANDARD_COMPONENT_TOKEN, DRAWER_STANDARD_COMPONENT_TOKEN, DROPDOWN_STANDARD_COMPONENT_TOKEN, DYNAMIC_COMPONENTS_STORE, DateEditBaseComponent, DateEditComponent, DateEditPresetComponent, DateEditStandardComponent, DateRangeBaseComponent, DateRangeComponent, DateRangeModalBaseComponent, DateRangeModalStandardComponent, DateRangePresetComponent, DateRangeStandardComponent, DescriptionListBaseComponent, DescriptionListComponent, DescriptionListPresetComponent, DescriptionListStandardComponent, DetailAddressComponent, DetailAddressPresetComponent, DetailArrayComponent, DetailArrayPresetComponent, DetailAttachmentComponent, DetailAttachmentPresetComponent, DetailBaseComponent, DetailColorComponent, DetailColorPresetComponent, DetailComponent, DetailDateRangeComponent, DetailDateRangePresetComponent, DetailEmailComponent, DetailEmailPresetComponent, DetailEnumComponent, DetailEnumPresetComponent, DetailFlagComponent, DetailFlagPresetComponent, DetailImageComponent, DetailImagePresetComponent, DetailLogoComponent, DetailLogoPresetComponent, DetailObjectComponent, DetailObjectPresetComponent, DetailPdfComponent, DetailPdfPresetComponent, DetailPhoneNumberPlComponent, DetailPhoneNumberPlPresetComponent, DetailTextComponent, DetailTextPresetComponent, DetailVideoComponent, DetailVideoPresetComponent, DetailsBaseComponent, DetailsComponent, DetailsDirective, DetailsPage, DetailsService, DetailsStandardComponent, DividerBaseComponent, DividerComponent, DividerPresetComponent, DividerStandardComponent, DrawerBaseComponent, DrawerComponent, DrawerPresetComponent, DrawerStandardComponent, DropdownBaseComponent, DropdownComponent, DropdownPresetComponent, DropdownStandardComponent, DynamicComponentLoader, DynamicComponentStorageService, DynamicContentDirective, EMPTY_STATE_STANDARD_COMPONENT_TOKEN, EmptyStateBaseComponent, EmptyStateComponent, EmptyStatePresetComponent, EmptyStateStandardComponent, EnumToListPipe, ErrorService, ExportBaseComponent, ExportComponent, FEED_STANDARD_COMPONENT_TOKEN, FILE_SERVICE_CONFIG, FORM_COMPONENT_TOKEN, FORM_STANDARD_COMPONENT_TOKEN, FeedBaseComponent, FeedComponent, FeedPresetComponent, FeedStandardComponent, FileService, FileUrlPipe, FormBaseComponent, FormComponent, FormFactory, FormPresetComponent, FormStandardComponent, GRID_LIST_STANDARD_COMPONENT_TOKEN, GridListBaseComponent, GridListComponent, GridListPresetComponent, GridListStandardComponent, HardwareService, IModelExportProvider, IModelImportProvider, IModelLabelProvider, IModelPossibilitiesProvider, IModelValidatorsProvider, INFO_STANDARD_COMPONENT_TOKEN, INPUT_FIELD_COMPONENTS_TOKEN, INPUT_PRESET_FIELD_COMPONENTS, IconBaseComponent, IconChevronDownComponent, IconChevronUpComponent, IconComponent, IconPresetComponent, IconSpinnerComponent, ImportBaseComponent, ImportComponent, InfoBaseComponent, InfoComponent, InfoPresetComponent, InfoStandardComponent, InputAddressComponent, InputAddressPresetComponent, InputArrayComponent, InputArrayPresetComponent, InputAttachmentComponent, InputAttachmentPresetComponent, InputBaseComponent, InputCheckComponent, InputCheckPresetComponent, InputColorComponent, InputColorPresetComponent, InputComponent, InputCurrencyComponent, InputCurrencyPresetComponent, InputDateComponent, InputDatePresetComponent, InputDateRangeComponent, InputDateRangePresetComponent, InputDateWithEditComponent, InputDateWithEditPresetComponent, InputEmailComponent, InputEmailPresetComponent, InputEnumComponent, InputEnumPresetComponent, InputErrorComponent, InputErrorPresetComponent, InputFileBaseComponent, InputFileComponent, InputFilePresetComponent, InputFlagComponent, InputFlagPresetComponent, InputFloatComponent, InputFloatPresetComponent, InputImageComponent, InputImagePresetComponent, InputIntComponent, InputIntPresetComponent, InputIntsComponent, InputIntsPresetComponent, InputLogoComponent, InputLogoPresetComponent, InputLongTextComponent, InputLongTextPresetComponent, InputNipComponent, InputNipPresetComponent, InputObjectComponent, InputObjectPresetComponent, InputPasswordComponent, InputPasswordPresetComponent, InputPdfComponent, InputPdfPresetComponent, InputPeselComponent, InputPeselPresetComponent, InputPhoneNumberComponent, InputPhoneNumberPlComponent, InputPhoneNumberPlPresetComponent, InputPhoneNumberPresetComponent, InputPossibilitiesBaseComponent, InputRadioComponent, InputRadioPresetComponent, InputStringsComponent, InputStringsPresetComponent, InputTextComponent, InputTextPresetComponent, InputVideoComponent, InputVideoPresetComponent, LIST_CONTAINER_STANDARD_COMPONENT_TOKEN, LIST_MODE_COMPONENTS_TOKEN, LIST_PRESET_MODE_COMPONENTS, LOADER_STANDARD_COMPONENT_TOKEN, ListBaseComponent, ListCellPipe, ListComponent, ListContainerBaseComponent, ListContainerComponent, ListContainerStandardComponent, ListDesktopComponent, ListDesktopPresetComponent, ListHeaderPipe, ListMasonryGridComponent, ListMasonryGridPresetComponent, ListMobileComponent, ListMobilePresetComponent, ListMode, LoaderBaseComponent, LoaderComponent, LoaderPresetComponent, LoaderStandardComponent, MEDIA_OBJECT_STANDARD_COMPONENT_TOKEN, MODAL_STANDARD_COMPONENT_TOKEN, MODEL_EXPORT_PROVIDER, MODEL_IMPORT_PROVIDER, MODEL_LABEL_PROVIDER, MODEL_POSSIBILITIES_PROVIDER, MODEL_VALIDATORS_PROVIDER, MULTI_COLUMN_LAYOUT_STANDARD_COMPONENT_TOKEN, MediaObjectBaseComponent, MediaObjectComponent, MediaObjectPresetComponent, MediaObjectStandardComponent, MenuService, ModalBaseComponent, ModalComponent, ModalPresetComponent, ModalService, ModalStandardComponent, ModelLabelPipe, MultiColumnLayoutBaseComponent, MultiColumnLayoutComponent, MultiColumnLayoutPresetComponent, MultiColumnLayoutStandardComponent, NAVBAR_STANDARD_COMPONENT_TOKEN, NOTIFICATION_STANDARD_COMPONENT_TOKEN, NavbarBaseComponent, NavbarComponent, NavbarPresetComponent, NavbarStandardComponent, NgrxSharedModule, NgrxStoreService, NotificationBaseComponent, NotificationComponent, NotificationPresetComponent, NotificationStandardComponent, PAGE_HEADING_STANDARD_COMPONENT_TOKEN, PAGE_PRESET_VARIANT_COMPONENTS, PAGE_VARIANT_COMPONENTS_TOKEN, PAGING_STANDARD_COMPONENT_TOKEN, PASSWORD_STRENGTH_STANDARD_COMPONENT_TOKEN, PIPES, PROGRESS_BARS_STANDARD_COMPONENT_TOKEN, PageBaseComponent, PageComponent, PageHeadingBaseComponent, PageHeadingComponent, PageHeadingPresetComponent, PageHeadingStandardComponent, PagePresetComponent, PageStandardComponent, PaginationMode, PagingBaseComponent, PagingComponent, PagingPresetComponent, PagingStandardComponent, PasswordStrengthBaseComponent, PasswordStrengthComponent, PasswordStrengthStandardComponent, PopoverService, ProgressBarsBaseComponent, ProgressBarsComponent, ProgressBarsPresetComponent, ProgressBarsStandardComponent, ReduxAction, ReduxActionDecorator, ReduxSelect, RemoveHtmlPipe, SEARCHBAR_STANDARD_COMPONENT_TOKEN, SECTION_HEADING_STANDARD_COMPONENT_TOKEN, SELECT_MENU_STANDARD_COMPONENT_TOKEN, SIDEBAR_LAYOUT_STANDARD_COMPONENT_TOKEN, SIDEBAR_NAVIGATION_STANDARD_COMPONENT_TOKEN, SIGN_IN_FORM_STANDARD_COMPONENT_TOKEN, SMART_PRESET_PROVIDERS, STACKED_LAYOUT_STANDARD_COMPONENT_TOKEN, STACKED_LIST_STANDARD_COMPONENT_TOKEN, STATS_STANDARD_COMPONENT_TOKEN, SearchbarBaseComponent, SearchbarComponent, SearchbarStandardComponent, SectionHeadingBaseComponent, SectionHeadingComponent, SectionHeadingPresetComponent, SectionHeadingStandardComponent, SelectMenuBaseComponent, SelectMenuComponent, SelectMenuStandardComponent, SharedDirectivesModule, SharedFactoriesModule, SharedModule, SharedPagesModule, SharedPipesModule, SharedServicesModule, SidebarLayoutBaseComponent, SidebarLayoutComponent, SidebarLayoutPresetComponent, SidebarLayoutStandardComponent, SidebarNavigationBaseComponent, SidebarNavigationComponent, SidebarNavigationStandardComponent, SignInFormBaseComponent, SignInFormComponent, SignInFormPresetComponent, SignInFormStandardComponent, SlugPipe, SmartFormGroup, SmartNgModule, SmartNgModuleDecorator, StackedLayoutBaseComponent, StackedLayoutComponent, StackedLayoutPresetComponent, StackedLayoutStandardComponent, StackedListBaseComponent, StackedListComponent, StackedListPresetComponent, StackedListStandardComponent, StatsBaseComponent, StatsComponent, StatsPresetComponent, StatsStandardComponent, StorageService, StyleService, TABLE_STANDARD_COMPONENT_TOKEN, TABS_STANDARD_COMPONENT_TOKEN, TEXTAREA_STANDARD_COMPONENT_TOKEN, TOGGLE_STANDARD_COMPONENT_TOKEN, TableBaseComponent, TableComponent, TablePresetComponent, TableStandardComponent, TabsBaseComponent, TabsComponent, TabsPresetComponent, TabsStandardComponent, TextareaBaseComponent, TextareaComponent, TextareaPresetComponent, TextareaStandardComponent, ToastService, ToggleBaseComponent, ToggleComponent, TogglePresetComponent, ToggleStandardComponent, TrustHtmlPipe, UIService, VERTICAL_NAVIGATION_STANDARD_COMPONENT_TOKEN, VerticalNavigationBaseComponent, VerticalNavigationComponent, VerticalNavigationPresetComponent, VerticalNavigationStandardComponent, fastPropGetter, provideSmartPresets };
48123
+ export { ACTION_PANEL_STANDARD_COMPONENT_TOKEN, ALERT_STANDARD_COMPONENT_TOKEN, AUTH_TOKEN, AVATAR_STANDARD_COMPONENT_TOKEN, AccordionBaseComponent, AccordionBodyComponent, AccordionComponent, AccordionDefaultComponent, AccordionHeaderComponent, AccordionPresetComponent, ActionPanelBaseComponent, ActionPanelComponent, ActionPanelPresetComponent, ActionPanelStandardComponent, AlertBaseComponent, AlertComponent, AlertService, AlertStandardComponent, AppBaseComponent, AppService, AuthService, AvatarBaseComponent, AvatarComponent, AvatarPresetComponent, AvatarStandardComponent, BADGE_STANDARD_COMPONENT_TOKEN, BREADCRUMBS_STANDARD_COMPONENT_TOKEN, BUTTON_GROUP_STANDARD_COMPONENT_TOKEN, BUTTON_STANDARD_COMPONENT_TOKEN, BadgeBaseComponent, BadgeComponent, BadgePresetComponent, BadgeStandardComponent, BaseComponent, BreadcrumbsBaseComponent, BreadcrumbsComponent, BreadcrumbsPresetComponent, BreadcrumbsStandardComponent, ButtonBaseComponent, ButtonComponent, ButtonGroupBaseComponent, ButtonGroupComponent, ButtonGroupPresetComponent, ButtonGroupStandardComponent, ButtonPresetComponent, ButtonStandardComponent, CALENDAR_STANDARD_COMPONENT_TOKEN, CARD_HEADING_STANDARD_COMPONENT_TOKEN, CARD_STANDARD_COMPONENT_TOKEN, COMMAND_PALETTE_STANDARD_COMPONENT_TOKEN, COMPONENT_COLORS, CONTAINER_STANDARD_COMPONENT_TOKEN, CalendarBaseComponent, CalendarComponent, CalendarPresetComponent, CalendarService, CalendarStandardComponent, CardBaseComponent, CardComponent, CardHeadingBaseComponent, CardHeadingComponent, CardHeadingPresetComponent, CardHeadingStandardComponent, CardPresetComponent, CardStandardComponent, CommandPaletteBaseComponent, CommandPaletteComponent, CommandPalettePresetComponent, CommandPaletteStandardComponent, ContainerBaseComponent, ContainerComponent, ContainerPresetComponent, ContainerStandardComponent, CreateDynamicComponent, DESCRIPTION_LIST_STANDARD_COMPONENT_TOKEN, DETAILS_COMPONENT_TOKEN, DETAILS_STANDARD_COMPONENT_TOKEN, DETAIL_FIELD_COMPONENTS_TOKEN, DETAIL_PRESET_FIELD_COMPONENTS, DIVIDER_STANDARD_COMPONENT_TOKEN, DRAWER_STANDARD_COMPONENT_TOKEN, DROPDOWN_STANDARD_COMPONENT_TOKEN, DYNAMIC_COMPONENTS_STORE, DateEditBaseComponent, DateEditComponent, DateEditPresetComponent, DateEditStandardComponent, DateRangeBaseComponent, DateRangeComponent, DateRangeModalBaseComponent, DateRangeModalStandardComponent, DateRangePresetComponent, DateRangeStandardComponent, DescriptionListBaseComponent, DescriptionListComponent, DescriptionListPresetComponent, DescriptionListStandardComponent, DetailAddressComponent, DetailAddressPresetComponent, DetailArrayComponent, DetailArrayPresetComponent, DetailAttachmentComponent, DetailAttachmentPresetComponent, DetailBaseComponent, DetailColorComponent, DetailColorPresetComponent, DetailComponent, DetailDateRangeComponent, DetailDateRangePresetComponent, DetailEmailComponent, DetailEmailPresetComponent, DetailEnumComponent, DetailEnumPresetComponent, DetailFlagComponent, DetailFlagPresetComponent, DetailImageComponent, DetailImagePresetComponent, DetailLogoComponent, DetailLogoPresetComponent, DetailObjectComponent, DetailObjectPresetComponent, DetailPdfComponent, DetailPdfPresetComponent, DetailPhoneNumberPlComponent, DetailPhoneNumberPlPresetComponent, DetailTextComponent, DetailTextPresetComponent, DetailVideoComponent, DetailVideoPresetComponent, DetailsBaseComponent, DetailsComponent, DetailsDirective, DetailsPage, DetailsService, DetailsStandardComponent, DividerBaseComponent, DividerComponent, DividerPresetComponent, DividerStandardComponent, DrawerBaseComponent, DrawerComponent, DrawerPresetComponent, DrawerStandardComponent, DropdownBaseComponent, DropdownComponent, DropdownPresetComponent, DropdownStandardComponent, DynamicComponentLoader, DynamicComponentStorageService, DynamicContentDirective, EMPTY_STATE_STANDARD_COMPONENT_TOKEN, EmptyStateBaseComponent, EmptyStateComponent, EmptyStatePresetComponent, EmptyStateStandardComponent, EnumToListPipe, ErrorService, ExportBaseComponent, ExportComponent, FEED_STANDARD_COMPONENT_TOKEN, FILE_SERVICE_CONFIG, FORM_COMPONENT_TOKEN, FORM_STANDARD_COMPONENT_TOKEN, FeedBaseComponent, FeedComponent, FeedPresetComponent, FeedStandardComponent, FileService, FileUrlPipe, FormBaseComponent, FormComponent, FormFactory, FormPresetComponent, FormStandardComponent, GRID_LIST_STANDARD_COMPONENT_TOKEN, GridListBaseComponent, GridListComponent, GridListPresetComponent, GridListStandardComponent, HardwareService, IModelExportProvider, IModelImportProvider, IModelLabelProvider, IModelPossibilitiesProvider, IModelValidatorsProvider, INFO_STANDARD_COMPONENT_TOKEN, INPUT_FIELD_COMPONENTS_TOKEN, INPUT_PRESET_FIELD_COMPONENTS, IconBaseComponent, IconChevronDownComponent, IconChevronUpComponent, IconComponent, IconPresetComponent, IconSpinnerComponent, ImportBaseComponent, ImportComponent, InfoBaseComponent, InfoComponent, InfoPresetComponent, InfoStandardComponent, InputAddressComponent, InputAddressPresetComponent, InputArrayComponent, InputArrayPresetComponent, InputAttachmentComponent, InputAttachmentPresetComponent, InputBaseComponent, InputCheckComponent, InputCheckPresetComponent, InputColorComponent, InputColorPresetComponent, InputComponent, InputCurrencyComponent, InputCurrencyPresetComponent, InputDateComponent, InputDatePresetComponent, InputDateRangeComponent, InputDateRangePresetComponent, InputDateWithEditComponent, InputDateWithEditPresetComponent, InputEmailComponent, InputEmailPresetComponent, InputEnumComponent, InputEnumPresetComponent, InputErrorComponent, InputErrorPresetComponent, InputFileBaseComponent, InputFileComponent, InputFilePresetComponent, InputFlagComponent, InputFlagPresetComponent, InputFloatComponent, InputFloatPresetComponent, InputImageComponent, InputImagePresetComponent, InputIntComponent, InputIntPresetComponent, InputIntsComponent, InputIntsPresetComponent, InputLogoComponent, InputLogoPresetComponent, InputLongTextComponent, InputLongTextPresetComponent, InputNipComponent, InputNipPresetComponent, InputObjectComponent, InputObjectPresetComponent, InputPasswordComponent, InputPasswordPresetComponent, InputPdfComponent, InputPdfPresetComponent, InputPeselComponent, InputPeselPresetComponent, InputPhoneNumberComponent, InputPhoneNumberPlComponent, InputPhoneNumberPlPresetComponent, InputPhoneNumberPresetComponent, InputPossibilitiesBaseComponent, InputRadioComponent, InputRadioPresetComponent, InputStringsComponent, InputStringsPresetComponent, InputTextComponent, InputTextPresetComponent, InputVideoComponent, InputVideoPresetComponent, LIST_CONTAINER_STANDARD_COMPONENT_TOKEN, LIST_MODE_COMPONENTS_TOKEN, LIST_PRESET_MODE_COMPONENTS, LOADER_STANDARD_COMPONENT_TOKEN, ListBaseComponent, ListCellPipe, ListComponent, ListContainerBaseComponent, ListContainerComponent, ListContainerStandardComponent, ListDesktopComponent, ListDesktopPresetComponent, ListHeaderPipe, ListMasonryGridComponent, ListMasonryGridPresetComponent, ListMobileComponent, ListMobilePresetComponent, ListMode, LoaderBaseComponent, LoaderComponent, LoaderPresetComponent, LoaderStandardComponent, MEDIA_OBJECT_STANDARD_COMPONENT_TOKEN, MODAL_STANDARD_COMPONENT_TOKEN, MODEL_EXPORT_PROVIDER, MODEL_IMPORT_PROVIDER, MODEL_LABEL_PROVIDER, MODEL_POSSIBILITIES_PROVIDER, MODEL_VALIDATORS_PROVIDER, MULTI_COLUMN_LAYOUT_STANDARD_COMPONENT_TOKEN, MediaObjectBaseComponent, MediaObjectComponent, MediaObjectPresetComponent, MediaObjectStandardComponent, MenuService, ModalBaseComponent, ModalComponent, ModalPresetComponent, ModalService, ModalStandardComponent, ModelLabelPipe, MultiColumnLayoutBaseComponent, MultiColumnLayoutComponent, MultiColumnLayoutPresetComponent, MultiColumnLayoutStandardComponent, NAVBAR_STANDARD_COMPONENT_TOKEN, NOTIFICATION_STANDARD_COMPONENT_TOKEN, NavbarBaseComponent, NavbarComponent, NavbarPresetComponent, NavbarStandardComponent, NgrxSharedModule, NgrxStoreService, NotificationBaseComponent, NotificationComponent, NotificationPresetComponent, NotificationStandardComponent, PAGE_HEADING_STANDARD_COMPONENT_TOKEN, PAGE_PRESET_VARIANT_COMPONENTS, PAGE_VARIANT_COMPONENTS_TOKEN, PAGING_STANDARD_COMPONENT_TOKEN, PASSWORD_STRENGTH_STANDARD_COMPONENT_TOKEN, PIPES, PROGRESS_BARS_STANDARD_COMPONENT_TOKEN, PageBaseComponent, PageComponent, PageHeadingBaseComponent, PageHeadingComponent, PageHeadingPresetComponent, PageHeadingStandardComponent, PagePresetComponent, PageStandardComponent, PaginationMode, PagingBaseComponent, PagingComponent, PagingPresetComponent, PagingStandardComponent, PasswordStrengthBaseComponent, PasswordStrengthComponent, PasswordStrengthStandardComponent, PopoverService, ProgressBarsBaseComponent, ProgressBarsComponent, ProgressBarsPresetComponent, ProgressBarsStandardComponent, ReduxAction, ReduxActionDecorator, ReduxSelect, RemoveHtmlPipe, SEARCHBAR_STANDARD_COMPONENT_TOKEN, SECTION_HEADING_STANDARD_COMPONENT_TOKEN, SELECT_MENU_STANDARD_COMPONENT_TOKEN, SIDEBAR_LAYOUT_STANDARD_COMPONENT_TOKEN, SIDEBAR_NAVIGATION_STANDARD_COMPONENT_TOKEN, SIGN_IN_FORM_STANDARD_COMPONENT_TOKEN, SMART_PRESET_PROVIDERS, STACKED_LAYOUT_STANDARD_COMPONENT_TOKEN, STACKED_LIST_STANDARD_COMPONENT_TOKEN, STATS_STANDARD_COMPONENT_TOKEN, SearchbarBaseComponent, SearchbarComponent, SearchbarStandardComponent, SectionHeadingBaseComponent, SectionHeadingComponent, SectionHeadingPresetComponent, SectionHeadingStandardComponent, SelectMenuBaseComponent, SelectMenuComponent, SelectMenuStandardComponent, SharedDirectivesModule, SharedFactoriesModule, SharedModule, SharedPagesModule, SharedPipesModule, SharedServicesModule, SidebarLayoutBaseComponent, SidebarLayoutComponent, SidebarLayoutPresetComponent, SidebarLayoutStandardComponent, SidebarNavigationBaseComponent, SidebarNavigationComponent, SidebarNavigationStandardComponent, SignInFormBaseComponent, SignInFormComponent, SignInFormPresetComponent, SignInFormStandardComponent, SlugPipe, SmartFormGroup, SmartNgModule, SmartNgModuleDecorator, StackedLayoutBaseComponent, StackedLayoutComponent, StackedLayoutPresetComponent, StackedLayoutStandardComponent, StackedListBaseComponent, StackedListComponent, StackedListPresetComponent, StackedListStandardComponent, StatsBaseComponent, StatsComponent, StatsPresetComponent, StatsStandardComponent, StorageService, StyleService, TABLE_STANDARD_COMPONENT_TOKEN, TABS_STANDARD_COMPONENT_TOKEN, TEXTAREA_STANDARD_COMPONENT_TOKEN, TOGGLE_STANDARD_COMPONENT_TOKEN, TableBaseComponent, TableComponent, TablePresetComponent, TableStandardComponent, TabsBaseComponent, TabsComponent, TabsPresetComponent, TabsStandardComponent, TextareaBaseComponent, TextareaComponent, TextareaPresetComponent, TextareaStandardComponent, ToastService, ToggleBaseComponent, ToggleComponent, TogglePresetComponent, ToggleStandardComponent, TrustHtmlPipe, UIService, VERTICAL_NAVIGATION_STANDARD_COMPONENT_TOKEN, VerticalNavigationBaseComponent, VerticalNavigationComponent, VerticalNavigationPresetComponent, VerticalNavigationStandardComponent, fastPropGetter, getListAriaSort, getListDefaultSort, getListSortIndicator, getNextListSort, isListSortableKey, provideSmartPresets, showDetailsModal };
47816
48124
 
47817
48125
  //# sourceMappingURL=smartsoft001-angular.mjs.map