@smartsoft001/angular 2.202.0 → 2.204.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/fesm2022/smartsoft001-angular.mjs +2031 -1433
- package/fesm2022/smartsoft001-angular.mjs.map +1 -1
- package/package.json +4 -4
- package/styles.css +33 -0
- package/types/smartsoft001-angular.d.ts +361 -45
|
@@ -1421,18 +1421,827 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
1421
1421
|
}]
|
|
1422
1422
|
}]
|
|
1423
1423
|
});
|
|
1424
|
+
var NotificationBaseComponent = class NotificationBaseComponent {
|
|
1425
|
+
static smartType = "notification";
|
|
1426
|
+
title = input.required(...ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []);
|
|
1427
|
+
description = input(...ngDevMode ? [void 0, { debugName: "description" }] : /* istanbul ignore next */ []);
|
|
1428
|
+
iconName = input(...ngDevMode ? [void 0, { debugName: "iconName" }] : /* istanbul ignore next */ []);
|
|
1429
|
+
avatarUrl = input(...ngDevMode ? [void 0, { debugName: "avatarUrl" }] : /* istanbul ignore next */ []);
|
|
1430
|
+
actions = input([], ...ngDevMode ? [{ debugName: "actions" }] : /* istanbul ignore next */ []);
|
|
1431
|
+
dismissible = input(false, ...ngDevMode ? [{ debugName: "dismissible" }] : /* istanbul ignore next */ []);
|
|
1432
|
+
options = input(...ngDevMode ? [void 0, { debugName: "options" }] : /* istanbul ignore next */ []);
|
|
1433
|
+
cssClass = input("", {
|
|
1434
|
+
...ngDevMode ? { debugName: "cssClass" } : /* istanbul ignore next */ {},
|
|
1435
|
+
alias: "class"
|
|
1436
|
+
});
|
|
1437
|
+
dismissed = output();
|
|
1438
|
+
actionClick = output();
|
|
1439
|
+
dismiss() {
|
|
1440
|
+
this.dismissed.emit();
|
|
1441
|
+
}
|
|
1442
|
+
invokeAction(actionId) {
|
|
1443
|
+
this.actionClick.emit({ actionId });
|
|
1444
|
+
}
|
|
1445
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
1446
|
+
minVersion: "12.0.0",
|
|
1447
|
+
version: "22.2.2",
|
|
1448
|
+
ngImport: i0,
|
|
1449
|
+
type: NotificationBaseComponent,
|
|
1450
|
+
deps: [],
|
|
1451
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
1452
|
+
});
|
|
1453
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
1454
|
+
minVersion: "17.1.0",
|
|
1455
|
+
version: "22.2.2",
|
|
1456
|
+
type: NotificationBaseComponent,
|
|
1457
|
+
isStandalone: true,
|
|
1458
|
+
inputs: {
|
|
1459
|
+
title: {
|
|
1460
|
+
classPropertyName: "title",
|
|
1461
|
+
publicName: "title",
|
|
1462
|
+
isSignal: true,
|
|
1463
|
+
isRequired: true,
|
|
1464
|
+
transformFunction: null
|
|
1465
|
+
},
|
|
1466
|
+
description: {
|
|
1467
|
+
classPropertyName: "description",
|
|
1468
|
+
publicName: "description",
|
|
1469
|
+
isSignal: true,
|
|
1470
|
+
isRequired: false,
|
|
1471
|
+
transformFunction: null
|
|
1472
|
+
},
|
|
1473
|
+
iconName: {
|
|
1474
|
+
classPropertyName: "iconName",
|
|
1475
|
+
publicName: "iconName",
|
|
1476
|
+
isSignal: true,
|
|
1477
|
+
isRequired: false,
|
|
1478
|
+
transformFunction: null
|
|
1479
|
+
},
|
|
1480
|
+
avatarUrl: {
|
|
1481
|
+
classPropertyName: "avatarUrl",
|
|
1482
|
+
publicName: "avatarUrl",
|
|
1483
|
+
isSignal: true,
|
|
1484
|
+
isRequired: false,
|
|
1485
|
+
transformFunction: null
|
|
1486
|
+
},
|
|
1487
|
+
actions: {
|
|
1488
|
+
classPropertyName: "actions",
|
|
1489
|
+
publicName: "actions",
|
|
1490
|
+
isSignal: true,
|
|
1491
|
+
isRequired: false,
|
|
1492
|
+
transformFunction: null
|
|
1493
|
+
},
|
|
1494
|
+
dismissible: {
|
|
1495
|
+
classPropertyName: "dismissible",
|
|
1496
|
+
publicName: "dismissible",
|
|
1497
|
+
isSignal: true,
|
|
1498
|
+
isRequired: false,
|
|
1499
|
+
transformFunction: null
|
|
1500
|
+
},
|
|
1501
|
+
options: {
|
|
1502
|
+
classPropertyName: "options",
|
|
1503
|
+
publicName: "options",
|
|
1504
|
+
isSignal: true,
|
|
1505
|
+
isRequired: false,
|
|
1506
|
+
transformFunction: null
|
|
1507
|
+
},
|
|
1508
|
+
cssClass: {
|
|
1509
|
+
classPropertyName: "cssClass",
|
|
1510
|
+
publicName: "class",
|
|
1511
|
+
isSignal: true,
|
|
1512
|
+
isRequired: false,
|
|
1513
|
+
transformFunction: null
|
|
1514
|
+
}
|
|
1515
|
+
},
|
|
1516
|
+
outputs: {
|
|
1517
|
+
dismissed: "dismissed",
|
|
1518
|
+
actionClick: "actionClick"
|
|
1519
|
+
},
|
|
1520
|
+
ngImport: i0
|
|
1521
|
+
});
|
|
1522
|
+
};
|
|
1523
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
1524
|
+
minVersion: "12.0.0",
|
|
1525
|
+
version: "22.2.2",
|
|
1526
|
+
ngImport: i0,
|
|
1527
|
+
type: NotificationBaseComponent,
|
|
1528
|
+
decorators: [{ type: Directive }],
|
|
1529
|
+
propDecorators: {
|
|
1530
|
+
title: [{
|
|
1531
|
+
type: i0.Input,
|
|
1532
|
+
args: [{
|
|
1533
|
+
isSignal: true,
|
|
1534
|
+
alias: "title",
|
|
1535
|
+
required: true
|
|
1536
|
+
}]
|
|
1537
|
+
}],
|
|
1538
|
+
description: [{
|
|
1539
|
+
type: i0.Input,
|
|
1540
|
+
args: [{
|
|
1541
|
+
isSignal: true,
|
|
1542
|
+
alias: "description",
|
|
1543
|
+
required: false
|
|
1544
|
+
}]
|
|
1545
|
+
}],
|
|
1546
|
+
iconName: [{
|
|
1547
|
+
type: i0.Input,
|
|
1548
|
+
args: [{
|
|
1549
|
+
isSignal: true,
|
|
1550
|
+
alias: "iconName",
|
|
1551
|
+
required: false
|
|
1552
|
+
}]
|
|
1553
|
+
}],
|
|
1554
|
+
avatarUrl: [{
|
|
1555
|
+
type: i0.Input,
|
|
1556
|
+
args: [{
|
|
1557
|
+
isSignal: true,
|
|
1558
|
+
alias: "avatarUrl",
|
|
1559
|
+
required: false
|
|
1560
|
+
}]
|
|
1561
|
+
}],
|
|
1562
|
+
actions: [{
|
|
1563
|
+
type: i0.Input,
|
|
1564
|
+
args: [{
|
|
1565
|
+
isSignal: true,
|
|
1566
|
+
alias: "actions",
|
|
1567
|
+
required: false
|
|
1568
|
+
}]
|
|
1569
|
+
}],
|
|
1570
|
+
dismissible: [{
|
|
1571
|
+
type: i0.Input,
|
|
1572
|
+
args: [{
|
|
1573
|
+
isSignal: true,
|
|
1574
|
+
alias: "dismissible",
|
|
1575
|
+
required: false
|
|
1576
|
+
}]
|
|
1577
|
+
}],
|
|
1578
|
+
options: [{
|
|
1579
|
+
type: i0.Input,
|
|
1580
|
+
args: [{
|
|
1581
|
+
isSignal: true,
|
|
1582
|
+
alias: "options",
|
|
1583
|
+
required: false
|
|
1584
|
+
}]
|
|
1585
|
+
}],
|
|
1586
|
+
cssClass: [{
|
|
1587
|
+
type: i0.Input,
|
|
1588
|
+
args: [{
|
|
1589
|
+
isSignal: true,
|
|
1590
|
+
alias: "class",
|
|
1591
|
+
required: false
|
|
1592
|
+
}]
|
|
1593
|
+
}],
|
|
1594
|
+
dismissed: [{
|
|
1595
|
+
type: i0.Output,
|
|
1596
|
+
args: ["dismissed"]
|
|
1597
|
+
}],
|
|
1598
|
+
actionClick: [{
|
|
1599
|
+
type: i0.Output,
|
|
1600
|
+
args: ["actionClick"]
|
|
1601
|
+
}]
|
|
1602
|
+
}
|
|
1603
|
+
});
|
|
1604
|
+
var NotificationStandardComponent = class NotificationStandardComponent extends NotificationBaseComponent {
|
|
1605
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
1606
|
+
minVersion: "12.0.0",
|
|
1607
|
+
version: "22.2.2",
|
|
1608
|
+
ngImport: i0,
|
|
1609
|
+
type: NotificationStandardComponent,
|
|
1610
|
+
deps: null,
|
|
1611
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
1612
|
+
});
|
|
1613
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
1614
|
+
minVersion: "17.0.0",
|
|
1615
|
+
version: "22.2.2",
|
|
1616
|
+
type: NotificationStandardComponent,
|
|
1617
|
+
isStandalone: true,
|
|
1618
|
+
selector: "smart-notification-standard",
|
|
1619
|
+
usesInheritance: true,
|
|
1620
|
+
ngImport: i0,
|
|
1621
|
+
template: "<div\n role=\"status\"\n [attr.aria-live]=\"options()?.ariaLive ?? 'polite'\"\n [class]=\"cssClass()\"\n>\n <h3>{{ title() }}</h3>\n @if (description()) {\n <p>{{ description() }}</p>\n }\n @if (dismissible()) {\n <button type=\"button\" aria-label=\"Close\" (click)=\"dismiss()\">\n ×\n </button>\n }\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</div>\n",
|
|
1622
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
1623
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
1624
|
+
});
|
|
1625
|
+
};
|
|
1626
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
1627
|
+
minVersion: "12.0.0",
|
|
1628
|
+
version: "22.2.2",
|
|
1629
|
+
ngImport: i0,
|
|
1630
|
+
type: NotificationStandardComponent,
|
|
1631
|
+
decorators: [{
|
|
1632
|
+
type: Component,
|
|
1633
|
+
args: [{
|
|
1634
|
+
selector: "smart-notification-standard",
|
|
1635
|
+
encapsulation: ViewEncapsulation.None,
|
|
1636
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1637
|
+
template: "<div\n role=\"status\"\n [attr.aria-live]=\"options()?.ariaLive ?? 'polite'\"\n [class]=\"cssClass()\"\n>\n <h3>{{ title() }}</h3>\n @if (description()) {\n <p>{{ description() }}</p>\n }\n @if (dismissible()) {\n <button type=\"button\" aria-label=\"Close\" (click)=\"dismiss()\">\n ×\n </button>\n }\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</div>\n"
|
|
1638
|
+
}]
|
|
1639
|
+
}]
|
|
1640
|
+
});
|
|
1641
|
+
const FORM_COMPONENT_TOKEN = new InjectionToken("FORM_COMPONENT");
|
|
1642
|
+
const DETAILS_COMPONENT_TOKEN = new InjectionToken("DETAILS_COMPONENT_TOKEN");
|
|
1643
|
+
const ACTION_PANEL_STANDARD_COMPONENT_TOKEN = new InjectionToken("ACTION_PANEL_STANDARD_COMPONENT");
|
|
1644
|
+
const ALERT_STANDARD_COMPONENT_TOKEN = new InjectionToken("ALERT_STANDARD_COMPONENT");
|
|
1645
|
+
const BREADCRUMBS_STANDARD_COMPONENT_TOKEN = new InjectionToken("BREADCRUMBS_STANDARD_COMPONENT");
|
|
1646
|
+
const BUTTON_STANDARD_COMPONENT_TOKEN = new InjectionToken("BUTTON_STANDARD_COMPONENT");
|
|
1647
|
+
const CALENDAR_STANDARD_COMPONENT_TOKEN = new InjectionToken("CALENDAR_STANDARD_COMPONENT");
|
|
1648
|
+
const CARD_STANDARD_COMPONENT_TOKEN = new InjectionToken("CARD_STANDARD_COMPONENT");
|
|
1649
|
+
const CARD_HEADING_STANDARD_COMPONENT_TOKEN = new InjectionToken("CARD_HEADING_STANDARD_COMPONENT");
|
|
1650
|
+
const COMMAND_PALETTE_STANDARD_COMPONENT_TOKEN = new InjectionToken("COMMAND_PALETTE_STANDARD_COMPONENT");
|
|
1651
|
+
const DETAILS_STANDARD_COMPONENT_TOKEN = new InjectionToken("DETAILS_STANDARD_COMPONENT");
|
|
1652
|
+
const DETAIL_FIELD_COMPONENTS_TOKEN = new InjectionToken("DETAIL_FIELD_COMPONENTS_TOKEN");
|
|
1653
|
+
const EMPTY_STATE_STANDARD_COMPONENT_TOKEN = new InjectionToken("EMPTY_STATE_STANDARD_COMPONENT");
|
|
1654
|
+
const FEED_STANDARD_COMPONENT_TOKEN = new InjectionToken("FEED_STANDARD_COMPONENT");
|
|
1655
|
+
const DESCRIPTION_LIST_STANDARD_COMPONENT_TOKEN = new InjectionToken("DESCRIPTION_LIST_STANDARD_COMPONENT");
|
|
1656
|
+
const FORM_STANDARD_COMPONENT_TOKEN = new InjectionToken("FORM_STANDARD_COMPONENT");
|
|
1657
|
+
const GRID_LIST_STANDARD_COMPONENT_TOKEN = new InjectionToken("GRID_LIST_STANDARD_COMPONENT");
|
|
1658
|
+
const INFO_STANDARD_COMPONENT_TOKEN = new InjectionToken("INFO_STANDARD_COMPONENT");
|
|
1659
|
+
const INPUT_FIELD_COMPONENTS_TOKEN = new InjectionToken("INPUT_FIELD_COMPONENTS_TOKEN");
|
|
1660
|
+
const LIST_MODE_COMPONENTS_TOKEN = new InjectionToken("LIST_MODE_COMPONENTS");
|
|
1661
|
+
const LOADER_STANDARD_COMPONENT_TOKEN = new InjectionToken("LOADER_STANDARD_COMPONENT");
|
|
1662
|
+
const MODAL_STANDARD_COMPONENT_TOKEN = new InjectionToken("MODAL_STANDARD_COMPONENT");
|
|
1663
|
+
const AVATAR_STANDARD_COMPONENT_TOKEN = new InjectionToken("AVATAR_STANDARD_COMPONENT");
|
|
1664
|
+
const BADGE_STANDARD_COMPONENT_TOKEN = new InjectionToken("BADGE_STANDARD_COMPONENT");
|
|
1665
|
+
const BUTTON_GROUP_STANDARD_COMPONENT_TOKEN = new InjectionToken("BUTTON_GROUP_STANDARD_COMPONENT");
|
|
1666
|
+
const CONTAINER_STANDARD_COMPONENT_TOKEN = new InjectionToken("CONTAINER_STANDARD_COMPONENT");
|
|
1667
|
+
const DIVIDER_STANDARD_COMPONENT_TOKEN = new InjectionToken("DIVIDER_STANDARD_COMPONENT");
|
|
1668
|
+
const DRAWER_STANDARD_COMPONENT_TOKEN = new InjectionToken("DRAWER_STANDARD_COMPONENT");
|
|
1669
|
+
const DROPDOWN_STANDARD_COMPONENT_TOKEN = new InjectionToken("DROPDOWN_STANDARD_COMPONENT");
|
|
1670
|
+
const LIST_CONTAINER_STANDARD_COMPONENT_TOKEN = new InjectionToken("LIST_CONTAINER_STANDARD_COMPONENT");
|
|
1671
|
+
const MEDIA_OBJECT_STANDARD_COMPONENT_TOKEN = new InjectionToken("MEDIA_OBJECT_STANDARD_COMPONENT");
|
|
1672
|
+
const NOTIFICATION_STANDARD_COMPONENT_TOKEN = new InjectionToken("NOTIFICATION_STANDARD_COMPONENT");
|
|
1673
|
+
const MULTI_COLUMN_LAYOUT_STANDARD_COMPONENT_TOKEN = new InjectionToken("MULTI_COLUMN_LAYOUT_STANDARD_COMPONENT");
|
|
1674
|
+
const NAVBAR_STANDARD_COMPONENT_TOKEN = new InjectionToken("NAVBAR_STANDARD_COMPONENT");
|
|
1675
|
+
const PAGE_VARIANT_COMPONENTS_TOKEN = new InjectionToken("PAGE_VARIANT_COMPONENTS");
|
|
1676
|
+
const PAGE_HEADING_STANDARD_COMPONENT_TOKEN = new InjectionToken("PAGE_HEADING_STANDARD_COMPONENT");
|
|
1677
|
+
const PAGING_STANDARD_COMPONENT_TOKEN = new InjectionToken("PAGING_STANDARD_COMPONENT");
|
|
1678
|
+
const PASSWORD_STRENGTH_STANDARD_COMPONENT_TOKEN = new InjectionToken("PASSWORD_STRENGTH_STANDARD_COMPONENT");
|
|
1679
|
+
const PROGRESS_BARS_STANDARD_COMPONENT_TOKEN = new InjectionToken("PROGRESS_BARS_STANDARD_COMPONENT");
|
|
1680
|
+
const SEARCHBAR_STANDARD_COMPONENT_TOKEN = new InjectionToken("SEARCHBAR_STANDARD_COMPONENT");
|
|
1681
|
+
const SECTION_HEADING_STANDARD_COMPONENT_TOKEN = new InjectionToken("SECTION_HEADING_STANDARD_COMPONENT");
|
|
1682
|
+
const SELECT_MENU_STANDARD_COMPONENT_TOKEN = new InjectionToken("SELECT_MENU_STANDARD_COMPONENT");
|
|
1683
|
+
const SIDEBAR_LAYOUT_STANDARD_COMPONENT_TOKEN = new InjectionToken("SIDEBAR_LAYOUT_STANDARD_COMPONENT");
|
|
1684
|
+
const SIDEBAR_NAVIGATION_STANDARD_COMPONENT_TOKEN = new InjectionToken("SIDEBAR_NAVIGATION_STANDARD_COMPONENT");
|
|
1685
|
+
const SIGN_IN_FORM_STANDARD_COMPONENT_TOKEN = new InjectionToken("SIGN_IN_FORM_STANDARD_COMPONENT");
|
|
1686
|
+
const STACKED_LAYOUT_STANDARD_COMPONENT_TOKEN = new InjectionToken("STACKED_LAYOUT_STANDARD_COMPONENT");
|
|
1687
|
+
const STACKED_LIST_STANDARD_COMPONENT_TOKEN = new InjectionToken("STACKED_LIST_STANDARD_COMPONENT");
|
|
1688
|
+
const STATS_STANDARD_COMPONENT_TOKEN = new InjectionToken("STATS_STANDARD_COMPONENT");
|
|
1689
|
+
const TABLE_STANDARD_COMPONENT_TOKEN = new InjectionToken("TABLE_STANDARD_COMPONENT");
|
|
1690
|
+
const TABS_STANDARD_COMPONENT_TOKEN = new InjectionToken("TABS_STANDARD_COMPONENT");
|
|
1691
|
+
const TEXTAREA_STANDARD_COMPONENT_TOKEN = new InjectionToken("TEXTAREA_STANDARD_COMPONENT");
|
|
1692
|
+
const TOGGLE_STANDARD_COMPONENT_TOKEN = new InjectionToken("TOGGLE_STANDARD_COMPONENT");
|
|
1693
|
+
const VERTICAL_NAVIGATION_STANDARD_COMPONENT_TOKEN = new InjectionToken("VERTICAL_NAVIGATION_STANDARD_COMPONENT");
|
|
1694
|
+
function forwardOutletOutputs(outlet, targets) {
|
|
1695
|
+
afterRenderEffect((onCleanup) => {
|
|
1696
|
+
const instance = outlet()?.componentInstance;
|
|
1697
|
+
if (!instance) return;
|
|
1698
|
+
const subscriptions = [];
|
|
1699
|
+
for (const [name, target] of Object.entries(targets)) {
|
|
1700
|
+
const source = instance[name];
|
|
1701
|
+
if (typeof source?.subscribe !== "function") continue;
|
|
1702
|
+
subscriptions.push(source.subscribe((value) => "emit" in target ? target.emit(value) : target.set(value)));
|
|
1703
|
+
}
|
|
1704
|
+
onCleanup(() => subscriptions.forEach((sub) => sub.unsubscribe()));
|
|
1705
|
+
});
|
|
1706
|
+
}
|
|
1707
|
+
function outletInputs(component, inputs) {
|
|
1708
|
+
const declared = component ? reflectComponentType(component)?.inputs : null;
|
|
1709
|
+
if (!declared) return inputs;
|
|
1710
|
+
const publicName = /* @__PURE__ */ new Map();
|
|
1711
|
+
for (const { propName, templateName } of declared) {
|
|
1712
|
+
publicName.set(propName, templateName);
|
|
1713
|
+
publicName.set(templateName, templateName);
|
|
1714
|
+
}
|
|
1715
|
+
const resolved = {};
|
|
1716
|
+
for (const [key, value] of Object.entries(inputs)) {
|
|
1717
|
+
const name = publicName.get(key);
|
|
1718
|
+
if (name) resolved[name] = value;
|
|
1719
|
+
}
|
|
1720
|
+
return resolved;
|
|
1721
|
+
}
|
|
1722
|
+
var NotificationComponent = class NotificationComponent {
|
|
1723
|
+
injectedComponent = inject(NOTIFICATION_STANDARD_COMPONENT_TOKEN, { optional: true });
|
|
1724
|
+
title = input.required(...ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []);
|
|
1725
|
+
description = input(...ngDevMode ? [void 0, { debugName: "description" }] : /* istanbul ignore next */ []);
|
|
1726
|
+
iconName = input(...ngDevMode ? [void 0, { debugName: "iconName" }] : /* istanbul ignore next */ []);
|
|
1727
|
+
avatarUrl = input(...ngDevMode ? [void 0, { debugName: "avatarUrl" }] : /* istanbul ignore next */ []);
|
|
1728
|
+
actions = input([], ...ngDevMode ? [{ debugName: "actions" }] : /* istanbul ignore next */ []);
|
|
1729
|
+
dismissible = input(false, ...ngDevMode ? [{ debugName: "dismissible" }] : /* istanbul ignore next */ []);
|
|
1730
|
+
options = input(...ngDevMode ? [void 0, { debugName: "options" }] : /* istanbul ignore next */ []);
|
|
1731
|
+
cssClass = input("", {
|
|
1732
|
+
...ngDevMode ? { debugName: "cssClass" } : /* istanbul ignore next */ {},
|
|
1733
|
+
alias: "class"
|
|
1734
|
+
});
|
|
1735
|
+
dismissed = output();
|
|
1736
|
+
actionClick = output();
|
|
1737
|
+
componentType = computed(() => this.injectedComponent ?? null, ...ngDevMode ? [{ debugName: "componentType" }] : /* istanbul ignore next */ []);
|
|
1738
|
+
componentInputs = computed(() => outletInputs(this.componentType(), {
|
|
1739
|
+
title: this.title(),
|
|
1740
|
+
description: this.description(),
|
|
1741
|
+
iconName: this.iconName(),
|
|
1742
|
+
avatarUrl: this.avatarUrl(),
|
|
1743
|
+
actions: this.actions(),
|
|
1744
|
+
dismissible: this.dismissible(),
|
|
1745
|
+
options: this.options(),
|
|
1746
|
+
cssClass: this.cssClass()
|
|
1747
|
+
}), ...ngDevMode ? [{ debugName: "componentInputs" }] : /* istanbul ignore next */ []);
|
|
1748
|
+
outlet = viewChild(NgComponentOutlet, ...ngDevMode ? [{ debugName: "outlet" }] : /* istanbul ignore next */ []);
|
|
1749
|
+
constructor() {
|
|
1750
|
+
forwardOutletOutputs(this.outlet, {
|
|
1751
|
+
dismissed: this.dismissed,
|
|
1752
|
+
actionClick: this.actionClick
|
|
1753
|
+
});
|
|
1754
|
+
}
|
|
1755
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
1756
|
+
minVersion: "12.0.0",
|
|
1757
|
+
version: "22.2.2",
|
|
1758
|
+
ngImport: i0,
|
|
1759
|
+
type: NotificationComponent,
|
|
1760
|
+
deps: [],
|
|
1761
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
1762
|
+
});
|
|
1763
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
1764
|
+
minVersion: "17.0.0",
|
|
1765
|
+
version: "22.2.2",
|
|
1766
|
+
type: NotificationComponent,
|
|
1767
|
+
isStandalone: true,
|
|
1768
|
+
selector: "smart-notification",
|
|
1769
|
+
inputs: {
|
|
1770
|
+
title: {
|
|
1771
|
+
classPropertyName: "title",
|
|
1772
|
+
publicName: "title",
|
|
1773
|
+
isSignal: true,
|
|
1774
|
+
isRequired: true,
|
|
1775
|
+
transformFunction: null
|
|
1776
|
+
},
|
|
1777
|
+
description: {
|
|
1778
|
+
classPropertyName: "description",
|
|
1779
|
+
publicName: "description",
|
|
1780
|
+
isSignal: true,
|
|
1781
|
+
isRequired: false,
|
|
1782
|
+
transformFunction: null
|
|
1783
|
+
},
|
|
1784
|
+
iconName: {
|
|
1785
|
+
classPropertyName: "iconName",
|
|
1786
|
+
publicName: "iconName",
|
|
1787
|
+
isSignal: true,
|
|
1788
|
+
isRequired: false,
|
|
1789
|
+
transformFunction: null
|
|
1790
|
+
},
|
|
1791
|
+
avatarUrl: {
|
|
1792
|
+
classPropertyName: "avatarUrl",
|
|
1793
|
+
publicName: "avatarUrl",
|
|
1794
|
+
isSignal: true,
|
|
1795
|
+
isRequired: false,
|
|
1796
|
+
transformFunction: null
|
|
1797
|
+
},
|
|
1798
|
+
actions: {
|
|
1799
|
+
classPropertyName: "actions",
|
|
1800
|
+
publicName: "actions",
|
|
1801
|
+
isSignal: true,
|
|
1802
|
+
isRequired: false,
|
|
1803
|
+
transformFunction: null
|
|
1804
|
+
},
|
|
1805
|
+
dismissible: {
|
|
1806
|
+
classPropertyName: "dismissible",
|
|
1807
|
+
publicName: "dismissible",
|
|
1808
|
+
isSignal: true,
|
|
1809
|
+
isRequired: false,
|
|
1810
|
+
transformFunction: null
|
|
1811
|
+
},
|
|
1812
|
+
options: {
|
|
1813
|
+
classPropertyName: "options",
|
|
1814
|
+
publicName: "options",
|
|
1815
|
+
isSignal: true,
|
|
1816
|
+
isRequired: false,
|
|
1817
|
+
transformFunction: null
|
|
1818
|
+
},
|
|
1819
|
+
cssClass: {
|
|
1820
|
+
classPropertyName: "cssClass",
|
|
1821
|
+
publicName: "class",
|
|
1822
|
+
isSignal: true,
|
|
1823
|
+
isRequired: false,
|
|
1824
|
+
transformFunction: null
|
|
1825
|
+
}
|
|
1826
|
+
},
|
|
1827
|
+
outputs: {
|
|
1828
|
+
dismissed: "dismissed",
|
|
1829
|
+
actionClick: "actionClick"
|
|
1830
|
+
},
|
|
1831
|
+
host: { classAttribute: "smart:contents" },
|
|
1832
|
+
viewQueries: [{
|
|
1833
|
+
propertyName: "outlet",
|
|
1834
|
+
first: true,
|
|
1835
|
+
predicate: NgComponentOutlet,
|
|
1836
|
+
descendants: true,
|
|
1837
|
+
isSignal: true
|
|
1838
|
+
}],
|
|
1839
|
+
ngImport: i0,
|
|
1840
|
+
template: `
|
|
1841
|
+
@if (componentType()) {
|
|
1842
|
+
<ng-container
|
|
1843
|
+
*ngComponentOutlet="componentType(); inputs: componentInputs()"
|
|
1844
|
+
/>
|
|
1845
|
+
} @else {
|
|
1846
|
+
<smart-notification-standard
|
|
1847
|
+
[title]="title()"
|
|
1848
|
+
[description]="description()"
|
|
1849
|
+
[iconName]="iconName()"
|
|
1850
|
+
[avatarUrl]="avatarUrl()"
|
|
1851
|
+
[actions]="actions()"
|
|
1852
|
+
[dismissible]="dismissible()"
|
|
1853
|
+
[options]="options()"
|
|
1854
|
+
[class]="cssClass()"
|
|
1855
|
+
(dismissed)="dismissed.emit()"
|
|
1856
|
+
(actionClick)="actionClick.emit($event)"
|
|
1857
|
+
/>
|
|
1858
|
+
}
|
|
1859
|
+
`,
|
|
1860
|
+
isInline: true,
|
|
1861
|
+
dependencies: [{
|
|
1862
|
+
kind: "component",
|
|
1863
|
+
type: NotificationStandardComponent,
|
|
1864
|
+
selector: "smart-notification-standard"
|
|
1865
|
+
}, {
|
|
1866
|
+
kind: "directive",
|
|
1867
|
+
type: NgComponentOutlet,
|
|
1868
|
+
selector: "[ngComponentOutlet]",
|
|
1869
|
+
inputs: [
|
|
1870
|
+
"ngComponentOutlet",
|
|
1871
|
+
"ngComponentOutletInputs",
|
|
1872
|
+
"ngComponentOutletInjector",
|
|
1873
|
+
"ngComponentOutletEnvironmentInjector",
|
|
1874
|
+
"ngComponentOutletContent",
|
|
1875
|
+
"ngComponentOutletNgModule"
|
|
1876
|
+
],
|
|
1877
|
+
exportAs: ["ngComponentOutlet"]
|
|
1878
|
+
}],
|
|
1879
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
1880
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
1881
|
+
});
|
|
1882
|
+
};
|
|
1883
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
1884
|
+
minVersion: "12.0.0",
|
|
1885
|
+
version: "22.2.2",
|
|
1886
|
+
ngImport: i0,
|
|
1887
|
+
type: NotificationComponent,
|
|
1888
|
+
decorators: [{
|
|
1889
|
+
type: Component,
|
|
1890
|
+
args: [{
|
|
1891
|
+
selector: "smart-notification",
|
|
1892
|
+
template: `
|
|
1893
|
+
@if (componentType()) {
|
|
1894
|
+
<ng-container
|
|
1895
|
+
*ngComponentOutlet="componentType(); inputs: componentInputs()"
|
|
1896
|
+
/>
|
|
1897
|
+
} @else {
|
|
1898
|
+
<smart-notification-standard
|
|
1899
|
+
[title]="title()"
|
|
1900
|
+
[description]="description()"
|
|
1901
|
+
[iconName]="iconName()"
|
|
1902
|
+
[avatarUrl]="avatarUrl()"
|
|
1903
|
+
[actions]="actions()"
|
|
1904
|
+
[dismissible]="dismissible()"
|
|
1905
|
+
[options]="options()"
|
|
1906
|
+
[class]="cssClass()"
|
|
1907
|
+
(dismissed)="dismissed.emit()"
|
|
1908
|
+
(actionClick)="actionClick.emit($event)"
|
|
1909
|
+
/>
|
|
1910
|
+
}
|
|
1911
|
+
`,
|
|
1912
|
+
encapsulation: ViewEncapsulation.None,
|
|
1913
|
+
imports: [NotificationStandardComponent, NgComponentOutlet],
|
|
1914
|
+
host: { class: "smart:contents" },
|
|
1915
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
1916
|
+
}]
|
|
1917
|
+
}],
|
|
1918
|
+
ctorParameters: () => [],
|
|
1919
|
+
propDecorators: {
|
|
1920
|
+
title: [{
|
|
1921
|
+
type: i0.Input,
|
|
1922
|
+
args: [{
|
|
1923
|
+
isSignal: true,
|
|
1924
|
+
alias: "title",
|
|
1925
|
+
required: true
|
|
1926
|
+
}]
|
|
1927
|
+
}],
|
|
1928
|
+
description: [{
|
|
1929
|
+
type: i0.Input,
|
|
1930
|
+
args: [{
|
|
1931
|
+
isSignal: true,
|
|
1932
|
+
alias: "description",
|
|
1933
|
+
required: false
|
|
1934
|
+
}]
|
|
1935
|
+
}],
|
|
1936
|
+
iconName: [{
|
|
1937
|
+
type: i0.Input,
|
|
1938
|
+
args: [{
|
|
1939
|
+
isSignal: true,
|
|
1940
|
+
alias: "iconName",
|
|
1941
|
+
required: false
|
|
1942
|
+
}]
|
|
1943
|
+
}],
|
|
1944
|
+
avatarUrl: [{
|
|
1945
|
+
type: i0.Input,
|
|
1946
|
+
args: [{
|
|
1947
|
+
isSignal: true,
|
|
1948
|
+
alias: "avatarUrl",
|
|
1949
|
+
required: false
|
|
1950
|
+
}]
|
|
1951
|
+
}],
|
|
1952
|
+
actions: [{
|
|
1953
|
+
type: i0.Input,
|
|
1954
|
+
args: [{
|
|
1955
|
+
isSignal: true,
|
|
1956
|
+
alias: "actions",
|
|
1957
|
+
required: false
|
|
1958
|
+
}]
|
|
1959
|
+
}],
|
|
1960
|
+
dismissible: [{
|
|
1961
|
+
type: i0.Input,
|
|
1962
|
+
args: [{
|
|
1963
|
+
isSignal: true,
|
|
1964
|
+
alias: "dismissible",
|
|
1965
|
+
required: false
|
|
1966
|
+
}]
|
|
1967
|
+
}],
|
|
1968
|
+
options: [{
|
|
1969
|
+
type: i0.Input,
|
|
1970
|
+
args: [{
|
|
1971
|
+
isSignal: true,
|
|
1972
|
+
alias: "options",
|
|
1973
|
+
required: false
|
|
1974
|
+
}]
|
|
1975
|
+
}],
|
|
1976
|
+
cssClass: [{
|
|
1977
|
+
type: i0.Input,
|
|
1978
|
+
args: [{
|
|
1979
|
+
isSignal: true,
|
|
1980
|
+
alias: "class",
|
|
1981
|
+
required: false
|
|
1982
|
+
}]
|
|
1983
|
+
}],
|
|
1984
|
+
dismissed: [{
|
|
1985
|
+
type: i0.Output,
|
|
1986
|
+
args: ["dismissed"]
|
|
1987
|
+
}],
|
|
1988
|
+
actionClick: [{
|
|
1989
|
+
type: i0.Output,
|
|
1990
|
+
args: ["actionClick"]
|
|
1991
|
+
}],
|
|
1992
|
+
outlet: [{
|
|
1993
|
+
type: i0.ViewChild,
|
|
1994
|
+
args: [i0.forwardRef(() => NgComponentOutlet), { isSignal: true }]
|
|
1995
|
+
}]
|
|
1996
|
+
}
|
|
1997
|
+
});
|
|
1998
|
+
function getToastVariant(toast) {
|
|
1999
|
+
if (!toast.buttons?.length) return "simple";
|
|
2000
|
+
return toast.title ? "with-actions-below" : "condensed";
|
|
2001
|
+
}
|
|
2002
|
+
function toView(toast) {
|
|
2003
|
+
return {
|
|
2004
|
+
id: toast.id,
|
|
2005
|
+
type: toast.type,
|
|
2006
|
+
title: toast.title || toast.message,
|
|
2007
|
+
description: toast.title ? toast.message : void 0,
|
|
2008
|
+
actions: (toast.buttons ?? []).map((button, index) => ({
|
|
2009
|
+
id: String(index),
|
|
2010
|
+
label: button.text
|
|
2011
|
+
})),
|
|
2012
|
+
options: {
|
|
2013
|
+
variant: getToastVariant(toast),
|
|
2014
|
+
ariaLive: toast.type === "error" ? "assertive" : "polite"
|
|
2015
|
+
}
|
|
2016
|
+
};
|
|
2017
|
+
}
|
|
2018
|
+
var ToastHostComponent = class ToastHostComponent {
|
|
2019
|
+
toasts = input([], ...ngDevMode ? [{ debugName: "toasts" }] : /* istanbul ignore next */ []);
|
|
2020
|
+
dismissed = output();
|
|
2021
|
+
actionClick = output();
|
|
2022
|
+
cache = /* @__PURE__ */ new WeakMap();
|
|
2023
|
+
views = computed(() => this.toasts().map((toast) => {
|
|
2024
|
+
let view = this.cache.get(toast);
|
|
2025
|
+
if (!view) {
|
|
2026
|
+
view = toView(toast);
|
|
2027
|
+
this.cache.set(toast, view);
|
|
2028
|
+
}
|
|
2029
|
+
return view;
|
|
2030
|
+
}), ...ngDevMode ? [{ debugName: "views" }] : /* istanbul ignore next */ []);
|
|
2031
|
+
onActionClick(id, actionId) {
|
|
2032
|
+
this.actionClick.emit({
|
|
2033
|
+
id,
|
|
2034
|
+
index: Number(actionId)
|
|
2035
|
+
});
|
|
2036
|
+
}
|
|
2037
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
2038
|
+
minVersion: "12.0.0",
|
|
2039
|
+
version: "22.2.2",
|
|
2040
|
+
ngImport: i0,
|
|
2041
|
+
type: ToastHostComponent,
|
|
2042
|
+
deps: [],
|
|
2043
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
2044
|
+
});
|
|
2045
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
2046
|
+
minVersion: "17.0.0",
|
|
2047
|
+
version: "22.2.2",
|
|
2048
|
+
type: ToastHostComponent,
|
|
2049
|
+
isStandalone: true,
|
|
2050
|
+
selector: "smart-toast-host",
|
|
2051
|
+
inputs: { toasts: {
|
|
2052
|
+
classPropertyName: "toasts",
|
|
2053
|
+
publicName: "toasts",
|
|
2054
|
+
isSignal: true,
|
|
2055
|
+
isRequired: false,
|
|
2056
|
+
transformFunction: null
|
|
2057
|
+
} },
|
|
2058
|
+
outputs: {
|
|
2059
|
+
dismissed: "dismissed",
|
|
2060
|
+
actionClick: "actionClick"
|
|
2061
|
+
},
|
|
2062
|
+
ngImport: i0,
|
|
2063
|
+
template: `
|
|
2064
|
+
<div
|
|
2065
|
+
class="smart:pointer-events-none smart:fixed smart:inset-x-0 smart:bottom-0 smart:z-[100] smart:flex smart:flex-col smart:items-center smart:gap-2 smart:p-4 smart:sm:items-end"
|
|
2066
|
+
data-role="toasts"
|
|
2067
|
+
>
|
|
2068
|
+
@for (toast of views(); track toast.id) {
|
|
2069
|
+
<div
|
|
2070
|
+
class="smart:pointer-events-auto smart:w-full smart:max-w-sm"
|
|
2071
|
+
[attr.data-type]="toast.type"
|
|
2072
|
+
>
|
|
2073
|
+
<smart-notification
|
|
2074
|
+
[title]="toast.title"
|
|
2075
|
+
[description]="toast.description"
|
|
2076
|
+
[dismissible]="true"
|
|
2077
|
+
[actions]="toast.actions"
|
|
2078
|
+
[options]="toast.options"
|
|
2079
|
+
(actionClick)="onActionClick(toast.id, $event.actionId)"
|
|
2080
|
+
(dismissed)="dismissed.emit(toast.id)"
|
|
2081
|
+
/>
|
|
2082
|
+
</div>
|
|
2083
|
+
}
|
|
2084
|
+
</div>
|
|
2085
|
+
`,
|
|
2086
|
+
isInline: true,
|
|
2087
|
+
dependencies: [{
|
|
2088
|
+
kind: "component",
|
|
2089
|
+
type: NotificationComponent,
|
|
2090
|
+
selector: "smart-notification",
|
|
2091
|
+
inputs: [
|
|
2092
|
+
"title",
|
|
2093
|
+
"description",
|
|
2094
|
+
"iconName",
|
|
2095
|
+
"avatarUrl",
|
|
2096
|
+
"actions",
|
|
2097
|
+
"dismissible",
|
|
2098
|
+
"options",
|
|
2099
|
+
"class"
|
|
2100
|
+
],
|
|
2101
|
+
outputs: ["dismissed", "actionClick"]
|
|
2102
|
+
}],
|
|
2103
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
2104
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
2105
|
+
});
|
|
2106
|
+
};
|
|
2107
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
2108
|
+
minVersion: "12.0.0",
|
|
2109
|
+
version: "22.2.2",
|
|
2110
|
+
ngImport: i0,
|
|
2111
|
+
type: ToastHostComponent,
|
|
2112
|
+
decorators: [{
|
|
2113
|
+
type: Component,
|
|
2114
|
+
args: [{
|
|
2115
|
+
selector: "smart-toast-host",
|
|
2116
|
+
template: `
|
|
2117
|
+
<div
|
|
2118
|
+
class="smart:pointer-events-none smart:fixed smart:inset-x-0 smart:bottom-0 smart:z-[100] smart:flex smart:flex-col smart:items-center smart:gap-2 smart:p-4 smart:sm:items-end"
|
|
2119
|
+
data-role="toasts"
|
|
2120
|
+
>
|
|
2121
|
+
@for (toast of views(); track toast.id) {
|
|
2122
|
+
<div
|
|
2123
|
+
class="smart:pointer-events-auto smart:w-full smart:max-w-sm"
|
|
2124
|
+
[attr.data-type]="toast.type"
|
|
2125
|
+
>
|
|
2126
|
+
<smart-notification
|
|
2127
|
+
[title]="toast.title"
|
|
2128
|
+
[description]="toast.description"
|
|
2129
|
+
[dismissible]="true"
|
|
2130
|
+
[actions]="toast.actions"
|
|
2131
|
+
[options]="toast.options"
|
|
2132
|
+
(actionClick)="onActionClick(toast.id, $event.actionId)"
|
|
2133
|
+
(dismissed)="dismissed.emit(toast.id)"
|
|
2134
|
+
/>
|
|
2135
|
+
</div>
|
|
2136
|
+
}
|
|
2137
|
+
</div>
|
|
2138
|
+
`,
|
|
2139
|
+
encapsulation: ViewEncapsulation.None,
|
|
2140
|
+
imports: [NotificationComponent],
|
|
2141
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
2142
|
+
}]
|
|
2143
|
+
}],
|
|
2144
|
+
propDecorators: {
|
|
2145
|
+
toasts: [{
|
|
2146
|
+
type: i0.Input,
|
|
2147
|
+
args: [{
|
|
2148
|
+
isSignal: true,
|
|
2149
|
+
alias: "toasts",
|
|
2150
|
+
required: false
|
|
2151
|
+
}]
|
|
2152
|
+
}],
|
|
2153
|
+
dismissed: [{
|
|
2154
|
+
type: i0.Output,
|
|
2155
|
+
args: ["dismissed"]
|
|
2156
|
+
}],
|
|
2157
|
+
actionClick: [{
|
|
2158
|
+
type: i0.Output,
|
|
2159
|
+
args: ["actionClick"]
|
|
2160
|
+
}]
|
|
2161
|
+
}
|
|
2162
|
+
});
|
|
2163
|
+
const DEFAULT_TOAST_DURATION = 2e3;
|
|
1424
2164
|
var ToastService = class ToastService {
|
|
1425
2165
|
static lockError = 0;
|
|
2166
|
+
appRef = inject(ApplicationRef);
|
|
2167
|
+
environmentInjector = inject(EnvironmentInjector);
|
|
2168
|
+
document = inject(DOCUMENT);
|
|
2169
|
+
queue = signal([], ...ngDevMode ? [{ debugName: "queue" }] : /* istanbul ignore next */ []);
|
|
2170
|
+
timers = /* @__PURE__ */ new Map();
|
|
2171
|
+
host = null;
|
|
2172
|
+
nextId = 1;
|
|
2173
|
+
toasts = this.queue.asReadonly();
|
|
1426
2174
|
addLockError() {
|
|
1427
2175
|
++ToastService.lockError;
|
|
1428
2176
|
}
|
|
1429
2177
|
removeLockError() {
|
|
1430
|
-
|
|
2178
|
+
ToastService.lockError = Math.max(0, ToastService.lockError - 1);
|
|
1431
2179
|
}
|
|
1432
2180
|
async error(config) {
|
|
1433
2181
|
if (ToastService.lockError) return;
|
|
2182
|
+
this.push("error", config);
|
|
2183
|
+
}
|
|
2184
|
+
async info(config) {
|
|
2185
|
+
this.push("info", config);
|
|
2186
|
+
}
|
|
2187
|
+
dismiss(id) {
|
|
2188
|
+
clearTimeout(this.timers.get(id));
|
|
2189
|
+
this.timers.delete(id);
|
|
2190
|
+
if (!this.queue().some((toast) => toast.id === id)) return;
|
|
2191
|
+
this.queue.update((toasts) => toasts.filter((toast) => toast.id !== id));
|
|
2192
|
+
this.render();
|
|
2193
|
+
}
|
|
2194
|
+
ngOnDestroy() {
|
|
2195
|
+
this.timers.forEach((timer) => clearTimeout(timer));
|
|
2196
|
+
this.timers.clear();
|
|
2197
|
+
this.queue.set([]);
|
|
2198
|
+
this.destroyHost();
|
|
2199
|
+
}
|
|
2200
|
+
push(type, config) {
|
|
2201
|
+
const id = this.nextId++;
|
|
2202
|
+
const duration = config.duration && config.duration > 0 ? config.duration : DEFAULT_TOAST_DURATION;
|
|
2203
|
+
this.queue.update((toasts) => [...toasts, {
|
|
2204
|
+
...config,
|
|
2205
|
+
id,
|
|
2206
|
+
type
|
|
2207
|
+
}]);
|
|
2208
|
+
this.timers.set(id, setTimeout(() => this.dismiss(id), duration));
|
|
2209
|
+
this.render();
|
|
2210
|
+
}
|
|
2211
|
+
runAction({ id, index }) {
|
|
2212
|
+
const toast = this.queue().find((item) => item.id === id);
|
|
2213
|
+
try {
|
|
2214
|
+
toast?.buttons?.[index]?.handler();
|
|
2215
|
+
} finally {
|
|
2216
|
+
this.dismiss(id);
|
|
2217
|
+
}
|
|
2218
|
+
}
|
|
2219
|
+
render() {
|
|
2220
|
+
const toasts = this.queue();
|
|
2221
|
+
if (!toasts.length) {
|
|
2222
|
+
this.destroyHost();
|
|
2223
|
+
return;
|
|
2224
|
+
}
|
|
2225
|
+
const host = this.host ?? this.createHost();
|
|
2226
|
+
host.setInput("toasts", toasts);
|
|
2227
|
+
host.changeDetectorRef.detectChanges();
|
|
2228
|
+
}
|
|
2229
|
+
createHost() {
|
|
2230
|
+
const host = createComponent(ToastHostComponent, { environmentInjector: this.environmentInjector });
|
|
2231
|
+
host.instance.dismissed.subscribe((id) => this.dismiss(id));
|
|
2232
|
+
host.instance.actionClick.subscribe((click) => this.runAction(click));
|
|
2233
|
+
this.document.body.appendChild(host.location.nativeElement);
|
|
2234
|
+
this.appRef.attachView(host.hostView);
|
|
2235
|
+
this.host = host;
|
|
2236
|
+
return host;
|
|
2237
|
+
}
|
|
2238
|
+
destroyHost() {
|
|
2239
|
+
if (!this.host) return;
|
|
2240
|
+
const element = this.host.location.nativeElement;
|
|
2241
|
+
this.host.destroy();
|
|
2242
|
+
element.remove();
|
|
2243
|
+
this.host = null;
|
|
1434
2244
|
}
|
|
1435
|
-
async info(config) {}
|
|
1436
2245
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
1437
2246
|
minVersion: "12.0.0",
|
|
1438
2247
|
version: "22.2.2",
|
|
@@ -1456,6 +2265,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
1456
2265
|
decorators: [{ type: Injectable }]
|
|
1457
2266
|
});
|
|
1458
2267
|
var HardwareService = class HardwareService {
|
|
2268
|
+
document = inject(DOCUMENT);
|
|
1459
2269
|
get isMobile() {
|
|
1460
2270
|
return false;
|
|
1461
2271
|
}
|
|
@@ -1463,7 +2273,11 @@ var HardwareService = class HardwareService {
|
|
|
1463
2273
|
return false;
|
|
1464
2274
|
}
|
|
1465
2275
|
async onBackButtonClick(callback) {
|
|
1466
|
-
|
|
2276
|
+
const view = this.document.defaultView;
|
|
2277
|
+
if (!view) return { remove: () => void 0 };
|
|
2278
|
+
const listener = () => callback();
|
|
2279
|
+
view.addEventListener("popstate", listener);
|
|
2280
|
+
return { remove: () => view.removeEventListener("popstate", listener) };
|
|
1467
2281
|
}
|
|
1468
2282
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
1469
2283
|
minVersion: "12.0.0",
|
|
@@ -1539,34 +2353,629 @@ var MenuService = class MenuService {
|
|
|
1539
2353
|
minVersion: "12.0.0",
|
|
1540
2354
|
version: "22.2.2",
|
|
1541
2355
|
ngImport: i0,
|
|
1542
|
-
type: MenuService,
|
|
2356
|
+
type: MenuService,
|
|
2357
|
+
deps: [],
|
|
2358
|
+
target: i0.ɵɵFactoryTarget.Injectable
|
|
2359
|
+
});
|
|
2360
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({
|
|
2361
|
+
minVersion: "12.0.0",
|
|
2362
|
+
version: "22.2.2",
|
|
2363
|
+
ngImport: i0,
|
|
2364
|
+
type: MenuService,
|
|
2365
|
+
providedIn: "root"
|
|
2366
|
+
});
|
|
2367
|
+
};
|
|
2368
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
2369
|
+
minVersion: "12.0.0",
|
|
2370
|
+
version: "22.2.2",
|
|
2371
|
+
ngImport: i0,
|
|
2372
|
+
type: MenuService,
|
|
2373
|
+
decorators: [{
|
|
2374
|
+
type: Injectable,
|
|
2375
|
+
args: [{ providedIn: "root" }]
|
|
2376
|
+
}]
|
|
2377
|
+
});
|
|
2378
|
+
var ModalBaseComponent = class ModalBaseComponent {
|
|
2379
|
+
static smartType = "modal";
|
|
2380
|
+
open = model(false, ...ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []);
|
|
2381
|
+
title = input(...ngDevMode ? [void 0, { debugName: "title" }] : /* istanbul ignore next */ []);
|
|
2382
|
+
description = input(...ngDevMode ? [void 0, { debugName: "description" }] : /* istanbul ignore next */ []);
|
|
2383
|
+
actions = input([], ...ngDevMode ? [{ debugName: "actions" }] : /* istanbul ignore next */ []);
|
|
2384
|
+
options = input(...ngDevMode ? [void 0, { debugName: "options" }] : /* istanbul ignore next */ []);
|
|
2385
|
+
cssClass = input("", {
|
|
2386
|
+
...ngDevMode ? { debugName: "cssClass" } : /* istanbul ignore next */ {},
|
|
2387
|
+
alias: "class"
|
|
2388
|
+
});
|
|
2389
|
+
actionClick = output();
|
|
2390
|
+
closed = output();
|
|
2391
|
+
invokeAction(actionId) {
|
|
2392
|
+
this.actionClick.emit({ actionId });
|
|
2393
|
+
}
|
|
2394
|
+
close() {
|
|
2395
|
+
this.open.set(false);
|
|
2396
|
+
this.closed.emit();
|
|
2397
|
+
}
|
|
2398
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
2399
|
+
minVersion: "12.0.0",
|
|
2400
|
+
version: "22.2.2",
|
|
2401
|
+
ngImport: i0,
|
|
2402
|
+
type: ModalBaseComponent,
|
|
2403
|
+
deps: [],
|
|
2404
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
2405
|
+
});
|
|
2406
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
2407
|
+
minVersion: "17.1.0",
|
|
2408
|
+
version: "22.2.2",
|
|
2409
|
+
type: ModalBaseComponent,
|
|
2410
|
+
isStandalone: true,
|
|
2411
|
+
inputs: {
|
|
2412
|
+
open: {
|
|
2413
|
+
classPropertyName: "open",
|
|
2414
|
+
publicName: "open",
|
|
2415
|
+
isSignal: true,
|
|
2416
|
+
isRequired: false,
|
|
2417
|
+
transformFunction: null
|
|
2418
|
+
},
|
|
2419
|
+
title: {
|
|
2420
|
+
classPropertyName: "title",
|
|
2421
|
+
publicName: "title",
|
|
2422
|
+
isSignal: true,
|
|
2423
|
+
isRequired: false,
|
|
2424
|
+
transformFunction: null
|
|
2425
|
+
},
|
|
2426
|
+
description: {
|
|
2427
|
+
classPropertyName: "description",
|
|
2428
|
+
publicName: "description",
|
|
2429
|
+
isSignal: true,
|
|
2430
|
+
isRequired: false,
|
|
2431
|
+
transformFunction: null
|
|
2432
|
+
},
|
|
2433
|
+
actions: {
|
|
2434
|
+
classPropertyName: "actions",
|
|
2435
|
+
publicName: "actions",
|
|
2436
|
+
isSignal: true,
|
|
2437
|
+
isRequired: false,
|
|
2438
|
+
transformFunction: null
|
|
2439
|
+
},
|
|
2440
|
+
options: {
|
|
2441
|
+
classPropertyName: "options",
|
|
2442
|
+
publicName: "options",
|
|
2443
|
+
isSignal: true,
|
|
2444
|
+
isRequired: false,
|
|
2445
|
+
transformFunction: null
|
|
2446
|
+
},
|
|
2447
|
+
cssClass: {
|
|
2448
|
+
classPropertyName: "cssClass",
|
|
2449
|
+
publicName: "class",
|
|
2450
|
+
isSignal: true,
|
|
2451
|
+
isRequired: false,
|
|
2452
|
+
transformFunction: null
|
|
2453
|
+
}
|
|
2454
|
+
},
|
|
2455
|
+
outputs: {
|
|
2456
|
+
open: "openChange",
|
|
2457
|
+
actionClick: "actionClick",
|
|
2458
|
+
closed: "closed"
|
|
2459
|
+
},
|
|
2460
|
+
ngImport: i0
|
|
2461
|
+
});
|
|
2462
|
+
};
|
|
2463
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
2464
|
+
minVersion: "12.0.0",
|
|
2465
|
+
version: "22.2.2",
|
|
2466
|
+
ngImport: i0,
|
|
2467
|
+
type: ModalBaseComponent,
|
|
2468
|
+
decorators: [{ type: Directive }],
|
|
2469
|
+
propDecorators: {
|
|
2470
|
+
open: [{
|
|
2471
|
+
type: i0.Input,
|
|
2472
|
+
args: [{
|
|
2473
|
+
isSignal: true,
|
|
2474
|
+
alias: "open",
|
|
2475
|
+
required: false
|
|
2476
|
+
}]
|
|
2477
|
+
}, {
|
|
2478
|
+
type: i0.Output,
|
|
2479
|
+
args: ["openChange"]
|
|
2480
|
+
}],
|
|
2481
|
+
title: [{
|
|
2482
|
+
type: i0.Input,
|
|
2483
|
+
args: [{
|
|
2484
|
+
isSignal: true,
|
|
2485
|
+
alias: "title",
|
|
2486
|
+
required: false
|
|
2487
|
+
}]
|
|
2488
|
+
}],
|
|
2489
|
+
description: [{
|
|
2490
|
+
type: i0.Input,
|
|
2491
|
+
args: [{
|
|
2492
|
+
isSignal: true,
|
|
2493
|
+
alias: "description",
|
|
2494
|
+
required: false
|
|
2495
|
+
}]
|
|
2496
|
+
}],
|
|
2497
|
+
actions: [{
|
|
2498
|
+
type: i0.Input,
|
|
2499
|
+
args: [{
|
|
2500
|
+
isSignal: true,
|
|
2501
|
+
alias: "actions",
|
|
2502
|
+
required: false
|
|
2503
|
+
}]
|
|
2504
|
+
}],
|
|
2505
|
+
options: [{
|
|
2506
|
+
type: i0.Input,
|
|
2507
|
+
args: [{
|
|
2508
|
+
isSignal: true,
|
|
2509
|
+
alias: "options",
|
|
2510
|
+
required: false
|
|
2511
|
+
}]
|
|
2512
|
+
}],
|
|
2513
|
+
cssClass: [{
|
|
2514
|
+
type: i0.Input,
|
|
2515
|
+
args: [{
|
|
2516
|
+
isSignal: true,
|
|
2517
|
+
alias: "class",
|
|
2518
|
+
required: false
|
|
2519
|
+
}]
|
|
2520
|
+
}],
|
|
2521
|
+
actionClick: [{
|
|
2522
|
+
type: i0.Output,
|
|
2523
|
+
args: ["actionClick"]
|
|
2524
|
+
}],
|
|
2525
|
+
closed: [{
|
|
2526
|
+
type: i0.Output,
|
|
2527
|
+
args: ["closed"]
|
|
2528
|
+
}]
|
|
2529
|
+
}
|
|
2530
|
+
});
|
|
2531
|
+
const BOTTOM_SHEET_CLASSES = [
|
|
2532
|
+
"smart:fixed",
|
|
2533
|
+
"smart:inset-x-0",
|
|
2534
|
+
"smart:top-auto",
|
|
2535
|
+
"smart:bottom-0",
|
|
2536
|
+
"smart:z-[80]",
|
|
2537
|
+
"smart:m-0",
|
|
2538
|
+
"smart:w-full",
|
|
2539
|
+
"smart:max-w-none",
|
|
2540
|
+
"smart:max-h-[85dvh]",
|
|
2541
|
+
"smart:overflow-y-auto",
|
|
2542
|
+
"smart:sm:mx-auto",
|
|
2543
|
+
"smart:sm:max-w-2xl",
|
|
2544
|
+
"smart:sm:rounded-t-xl"
|
|
2545
|
+
].join(" ");
|
|
2546
|
+
var ModalStandardComponent = class ModalStandardComponent extends ModalBaseComponent {
|
|
2547
|
+
dialogClasses = computed(() => [this.options()?.variant === "bottom-sheet" ? BOTTOM_SHEET_CLASSES : "", this.cssClass()].filter(Boolean).join(" "), ...ngDevMode ? [{ debugName: "dialogClasses" }] : /* istanbul ignore next */ []);
|
|
2548
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
2549
|
+
minVersion: "12.0.0",
|
|
2550
|
+
version: "22.2.2",
|
|
2551
|
+
ngImport: i0,
|
|
2552
|
+
type: ModalStandardComponent,
|
|
2553
|
+
deps: null,
|
|
2554
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
2555
|
+
});
|
|
2556
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
2557
|
+
minVersion: "17.0.0",
|
|
2558
|
+
version: "22.2.2",
|
|
2559
|
+
type: ModalStandardComponent,
|
|
2560
|
+
isStandalone: true,
|
|
2561
|
+
selector: "smart-modal-standard",
|
|
2562
|
+
usesInheritance: true,
|
|
2563
|
+
ngImport: i0,
|
|
2564
|
+
template: "<dialog\n [open]=\"open()\"\n [class]=\"dialogClasses()\"\n [attr.data-variant]=\"options()?.variant ?? null\"\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 ×\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",
|
|
2565
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
2566
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
2567
|
+
});
|
|
2568
|
+
};
|
|
2569
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
2570
|
+
minVersion: "12.0.0",
|
|
2571
|
+
version: "22.2.2",
|
|
2572
|
+
ngImport: i0,
|
|
2573
|
+
type: ModalStandardComponent,
|
|
2574
|
+
decorators: [{
|
|
2575
|
+
type: Component,
|
|
2576
|
+
args: [{
|
|
2577
|
+
selector: "smart-modal-standard",
|
|
2578
|
+
encapsulation: ViewEncapsulation.None,
|
|
2579
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
2580
|
+
template: "<dialog\n [open]=\"open()\"\n [class]=\"dialogClasses()\"\n [attr.data-variant]=\"options()?.variant ?? null\"\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 ×\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"
|
|
2581
|
+
}]
|
|
2582
|
+
}]
|
|
2583
|
+
});
|
|
2584
|
+
function outletContent(template) {
|
|
2585
|
+
const destroyRef = inject(DestroyRef);
|
|
2586
|
+
const renderer = inject(Renderer2);
|
|
2587
|
+
let content;
|
|
2588
|
+
return () => {
|
|
2589
|
+
if (!content) {
|
|
2590
|
+
const view = template().createEmbeddedView(void 0);
|
|
2591
|
+
const slot = renderer.createElement("span");
|
|
2592
|
+
renderer.setStyle(slot, "display", "contents");
|
|
2593
|
+
view.rootNodes.forEach((node) => renderer.appendChild(slot, node));
|
|
2594
|
+
destroyRef.onDestroy(() => view.destroy());
|
|
2595
|
+
content = [[slot]];
|
|
2596
|
+
}
|
|
2597
|
+
return content;
|
|
2598
|
+
};
|
|
2599
|
+
}
|
|
2600
|
+
var ModalComponent = class ModalComponent {
|
|
2601
|
+
injectedComponent = inject(MODAL_STANDARD_COMPONENT_TOKEN, { optional: true });
|
|
2602
|
+
open = model(false, ...ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []);
|
|
2603
|
+
title = input(...ngDevMode ? [void 0, { debugName: "title" }] : /* istanbul ignore next */ []);
|
|
2604
|
+
description = input(...ngDevMode ? [void 0, { debugName: "description" }] : /* istanbul ignore next */ []);
|
|
2605
|
+
actions = input([], ...ngDevMode ? [{ debugName: "actions" }] : /* istanbul ignore next */ []);
|
|
2606
|
+
options = input(...ngDevMode ? [void 0, { debugName: "options" }] : /* istanbul ignore next */ []);
|
|
2607
|
+
cssClass = input("", {
|
|
2608
|
+
...ngDevMode ? { debugName: "cssClass" } : /* istanbul ignore next */ {},
|
|
2609
|
+
alias: "class"
|
|
2610
|
+
});
|
|
2611
|
+
actionClick = output();
|
|
2612
|
+
closed = output();
|
|
2613
|
+
componentType = computed(() => this.injectedComponent ?? null, ...ngDevMode ? [{ debugName: "componentType" }] : /* istanbul ignore next */ []);
|
|
2614
|
+
componentInputs = computed(() => outletInputs(this.componentType(), {
|
|
2615
|
+
open: this.open(),
|
|
2616
|
+
title: this.title(),
|
|
2617
|
+
description: this.description(),
|
|
2618
|
+
actions: this.actions(),
|
|
2619
|
+
options: this.options(),
|
|
2620
|
+
cssClass: this.cssClass()
|
|
2621
|
+
}), ...ngDevMode ? [{ debugName: "componentInputs" }] : /* istanbul ignore next */ []);
|
|
2622
|
+
outlet = viewChild(NgComponentOutlet, ...ngDevMode ? [{ debugName: "outlet" }] : /* istanbul ignore next */ []);
|
|
2623
|
+
contentTemplate = viewChild.required("content", ...ngDevMode ? [{ debugName: "contentTemplate" }] : /* istanbul ignore next */ []);
|
|
2624
|
+
projectedContent = outletContent(this.contentTemplate);
|
|
2625
|
+
constructor() {
|
|
2626
|
+
forwardOutletOutputs(this.outlet, {
|
|
2627
|
+
actionClick: this.actionClick,
|
|
2628
|
+
closed: this.closed,
|
|
2629
|
+
open: this.open
|
|
2630
|
+
});
|
|
2631
|
+
}
|
|
2632
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
2633
|
+
minVersion: "12.0.0",
|
|
2634
|
+
version: "22.2.2",
|
|
2635
|
+
ngImport: i0,
|
|
2636
|
+
type: ModalComponent,
|
|
1543
2637
|
deps: [],
|
|
1544
|
-
target: i0.ɵɵFactoryTarget.
|
|
2638
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
1545
2639
|
});
|
|
1546
|
-
static
|
|
1547
|
-
minVersion: "
|
|
2640
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
2641
|
+
minVersion: "17.0.0",
|
|
1548
2642
|
version: "22.2.2",
|
|
2643
|
+
type: ModalComponent,
|
|
2644
|
+
isStandalone: true,
|
|
2645
|
+
selector: "smart-modal",
|
|
2646
|
+
inputs: {
|
|
2647
|
+
open: {
|
|
2648
|
+
classPropertyName: "open",
|
|
2649
|
+
publicName: "open",
|
|
2650
|
+
isSignal: true,
|
|
2651
|
+
isRequired: false,
|
|
2652
|
+
transformFunction: null
|
|
2653
|
+
},
|
|
2654
|
+
title: {
|
|
2655
|
+
classPropertyName: "title",
|
|
2656
|
+
publicName: "title",
|
|
2657
|
+
isSignal: true,
|
|
2658
|
+
isRequired: false,
|
|
2659
|
+
transformFunction: null
|
|
2660
|
+
},
|
|
2661
|
+
description: {
|
|
2662
|
+
classPropertyName: "description",
|
|
2663
|
+
publicName: "description",
|
|
2664
|
+
isSignal: true,
|
|
2665
|
+
isRequired: false,
|
|
2666
|
+
transformFunction: null
|
|
2667
|
+
},
|
|
2668
|
+
actions: {
|
|
2669
|
+
classPropertyName: "actions",
|
|
2670
|
+
publicName: "actions",
|
|
2671
|
+
isSignal: true,
|
|
2672
|
+
isRequired: false,
|
|
2673
|
+
transformFunction: null
|
|
2674
|
+
},
|
|
2675
|
+
options: {
|
|
2676
|
+
classPropertyName: "options",
|
|
2677
|
+
publicName: "options",
|
|
2678
|
+
isSignal: true,
|
|
2679
|
+
isRequired: false,
|
|
2680
|
+
transformFunction: null
|
|
2681
|
+
},
|
|
2682
|
+
cssClass: {
|
|
2683
|
+
classPropertyName: "cssClass",
|
|
2684
|
+
publicName: "class",
|
|
2685
|
+
isSignal: true,
|
|
2686
|
+
isRequired: false,
|
|
2687
|
+
transformFunction: null
|
|
2688
|
+
}
|
|
2689
|
+
},
|
|
2690
|
+
outputs: {
|
|
2691
|
+
open: "openChange",
|
|
2692
|
+
actionClick: "actionClick",
|
|
2693
|
+
closed: "closed"
|
|
2694
|
+
},
|
|
2695
|
+
host: { classAttribute: "smart:contents" },
|
|
2696
|
+
viewQueries: [{
|
|
2697
|
+
propertyName: "outlet",
|
|
2698
|
+
first: true,
|
|
2699
|
+
predicate: NgComponentOutlet,
|
|
2700
|
+
descendants: true,
|
|
2701
|
+
isSignal: true
|
|
2702
|
+
}, {
|
|
2703
|
+
propertyName: "contentTemplate",
|
|
2704
|
+
first: true,
|
|
2705
|
+
predicate: ["content"],
|
|
2706
|
+
descendants: true,
|
|
2707
|
+
isSignal: true
|
|
2708
|
+
}],
|
|
1549
2709
|
ngImport: i0,
|
|
1550
|
-
|
|
1551
|
-
|
|
2710
|
+
template: `
|
|
2711
|
+
<ng-template #content><ng-content /></ng-template>
|
|
2712
|
+
@if (componentType()) {
|
|
2713
|
+
<ng-container
|
|
2714
|
+
*ngComponentOutlet="
|
|
2715
|
+
componentType();
|
|
2716
|
+
inputs: componentInputs();
|
|
2717
|
+
content: projectedContent()
|
|
2718
|
+
"
|
|
2719
|
+
/>
|
|
2720
|
+
} @else {
|
|
2721
|
+
<smart-modal-standard
|
|
2722
|
+
[(open)]="open"
|
|
2723
|
+
[title]="title()"
|
|
2724
|
+
[description]="description()"
|
|
2725
|
+
[actions]="actions()"
|
|
2726
|
+
[options]="options()"
|
|
2727
|
+
[class]="cssClass()"
|
|
2728
|
+
(actionClick)="actionClick.emit($event)"
|
|
2729
|
+
(closed)="closed.emit()"
|
|
2730
|
+
>
|
|
2731
|
+
<ng-container [ngTemplateOutlet]="content" />
|
|
2732
|
+
</smart-modal-standard>
|
|
2733
|
+
}
|
|
2734
|
+
`,
|
|
2735
|
+
isInline: true,
|
|
2736
|
+
dependencies: [
|
|
2737
|
+
{
|
|
2738
|
+
kind: "component",
|
|
2739
|
+
type: ModalStandardComponent,
|
|
2740
|
+
selector: "smart-modal-standard"
|
|
2741
|
+
},
|
|
2742
|
+
{
|
|
2743
|
+
kind: "directive",
|
|
2744
|
+
type: NgComponentOutlet,
|
|
2745
|
+
selector: "[ngComponentOutlet]",
|
|
2746
|
+
inputs: [
|
|
2747
|
+
"ngComponentOutlet",
|
|
2748
|
+
"ngComponentOutletInputs",
|
|
2749
|
+
"ngComponentOutletInjector",
|
|
2750
|
+
"ngComponentOutletEnvironmentInjector",
|
|
2751
|
+
"ngComponentOutletContent",
|
|
2752
|
+
"ngComponentOutletNgModule"
|
|
2753
|
+
],
|
|
2754
|
+
exportAs: ["ngComponentOutlet"]
|
|
2755
|
+
},
|
|
2756
|
+
{
|
|
2757
|
+
kind: "directive",
|
|
2758
|
+
type: NgTemplateOutlet,
|
|
2759
|
+
selector: "[ngTemplateOutlet]",
|
|
2760
|
+
inputs: [
|
|
2761
|
+
"ngTemplateOutletContext",
|
|
2762
|
+
"ngTemplateOutlet",
|
|
2763
|
+
"ngTemplateOutletInjector"
|
|
2764
|
+
]
|
|
2765
|
+
}
|
|
2766
|
+
],
|
|
2767
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
2768
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
1552
2769
|
});
|
|
1553
2770
|
};
|
|
1554
2771
|
i0.ɵɵngDeclareClassMetadata({
|
|
1555
2772
|
minVersion: "12.0.0",
|
|
1556
2773
|
version: "22.2.2",
|
|
1557
2774
|
ngImport: i0,
|
|
1558
|
-
type:
|
|
2775
|
+
type: ModalComponent,
|
|
1559
2776
|
decorators: [{
|
|
1560
|
-
type:
|
|
1561
|
-
args: [{
|
|
1562
|
-
|
|
2777
|
+
type: Component,
|
|
2778
|
+
args: [{
|
|
2779
|
+
selector: "smart-modal",
|
|
2780
|
+
template: `
|
|
2781
|
+
<ng-template #content><ng-content /></ng-template>
|
|
2782
|
+
@if (componentType()) {
|
|
2783
|
+
<ng-container
|
|
2784
|
+
*ngComponentOutlet="
|
|
2785
|
+
componentType();
|
|
2786
|
+
inputs: componentInputs();
|
|
2787
|
+
content: projectedContent()
|
|
2788
|
+
"
|
|
2789
|
+
/>
|
|
2790
|
+
} @else {
|
|
2791
|
+
<smart-modal-standard
|
|
2792
|
+
[(open)]="open"
|
|
2793
|
+
[title]="title()"
|
|
2794
|
+
[description]="description()"
|
|
2795
|
+
[actions]="actions()"
|
|
2796
|
+
[options]="options()"
|
|
2797
|
+
[class]="cssClass()"
|
|
2798
|
+
(actionClick)="actionClick.emit($event)"
|
|
2799
|
+
(closed)="closed.emit()"
|
|
2800
|
+
>
|
|
2801
|
+
<ng-container [ngTemplateOutlet]="content" />
|
|
2802
|
+
</smart-modal-standard>
|
|
2803
|
+
}
|
|
2804
|
+
`,
|
|
2805
|
+
encapsulation: ViewEncapsulation.None,
|
|
2806
|
+
imports: [
|
|
2807
|
+
ModalStandardComponent,
|
|
2808
|
+
NgComponentOutlet,
|
|
2809
|
+
NgTemplateOutlet
|
|
2810
|
+
],
|
|
2811
|
+
host: { class: "smart:contents" },
|
|
2812
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
2813
|
+
}]
|
|
2814
|
+
}],
|
|
2815
|
+
ctorParameters: () => [],
|
|
2816
|
+
propDecorators: {
|
|
2817
|
+
open: [{
|
|
2818
|
+
type: i0.Input,
|
|
2819
|
+
args: [{
|
|
2820
|
+
isSignal: true,
|
|
2821
|
+
alias: "open",
|
|
2822
|
+
required: false
|
|
2823
|
+
}]
|
|
2824
|
+
}, {
|
|
2825
|
+
type: i0.Output,
|
|
2826
|
+
args: ["openChange"]
|
|
2827
|
+
}],
|
|
2828
|
+
title: [{
|
|
2829
|
+
type: i0.Input,
|
|
2830
|
+
args: [{
|
|
2831
|
+
isSignal: true,
|
|
2832
|
+
alias: "title",
|
|
2833
|
+
required: false
|
|
2834
|
+
}]
|
|
2835
|
+
}],
|
|
2836
|
+
description: [{
|
|
2837
|
+
type: i0.Input,
|
|
2838
|
+
args: [{
|
|
2839
|
+
isSignal: true,
|
|
2840
|
+
alias: "description",
|
|
2841
|
+
required: false
|
|
2842
|
+
}]
|
|
2843
|
+
}],
|
|
2844
|
+
actions: [{
|
|
2845
|
+
type: i0.Input,
|
|
2846
|
+
args: [{
|
|
2847
|
+
isSignal: true,
|
|
2848
|
+
alias: "actions",
|
|
2849
|
+
required: false
|
|
2850
|
+
}]
|
|
2851
|
+
}],
|
|
2852
|
+
options: [{
|
|
2853
|
+
type: i0.Input,
|
|
2854
|
+
args: [{
|
|
2855
|
+
isSignal: true,
|
|
2856
|
+
alias: "options",
|
|
2857
|
+
required: false
|
|
2858
|
+
}]
|
|
2859
|
+
}],
|
|
2860
|
+
cssClass: [{
|
|
2861
|
+
type: i0.Input,
|
|
2862
|
+
args: [{
|
|
2863
|
+
isSignal: true,
|
|
2864
|
+
alias: "class",
|
|
2865
|
+
required: false
|
|
2866
|
+
}]
|
|
2867
|
+
}],
|
|
2868
|
+
actionClick: [{
|
|
2869
|
+
type: i0.Output,
|
|
2870
|
+
args: ["actionClick"]
|
|
2871
|
+
}],
|
|
2872
|
+
closed: [{
|
|
2873
|
+
type: i0.Output,
|
|
2874
|
+
args: ["closed"]
|
|
2875
|
+
}],
|
|
2876
|
+
outlet: [{
|
|
2877
|
+
type: i0.ViewChild,
|
|
2878
|
+
args: [i0.forwardRef(() => NgComponentOutlet), { isSignal: true }]
|
|
2879
|
+
}],
|
|
2880
|
+
contentTemplate: [{
|
|
2881
|
+
type: i0.ViewChild,
|
|
2882
|
+
args: ["content", { isSignal: true }]
|
|
2883
|
+
}]
|
|
2884
|
+
}
|
|
1563
2885
|
});
|
|
2886
|
+
const MODAL_OPTIONS = { withDismiss: true };
|
|
2887
|
+
const BOTTOM_SHEET_MODAL_OPTIONS = {
|
|
2888
|
+
withDismiss: true,
|
|
2889
|
+
variant: "bottom-sheet"
|
|
2890
|
+
};
|
|
1564
2891
|
var ModalService = class ModalService {
|
|
2892
|
+
appRef = inject(ApplicationRef);
|
|
2893
|
+
environmentInjector = inject(EnvironmentInjector);
|
|
2894
|
+
injector = inject(Injector);
|
|
2895
|
+
document = inject(DOCUMENT);
|
|
2896
|
+
entries = [];
|
|
2897
|
+
onKeydown = (event) => {
|
|
2898
|
+
if (event.key !== "Escape" && event.key !== "Esc") return;
|
|
2899
|
+
if (this.entries[this.entries.length - 1]?.options.backdropDismiss === false) event.stopImmediatePropagation();
|
|
2900
|
+
};
|
|
1565
2901
|
async show(options) {
|
|
1566
|
-
|
|
1567
|
-
|
|
2902
|
+
const trigger = this.document.activeElement;
|
|
2903
|
+
let resolveDismiss;
|
|
2904
|
+
const dismissed = new Promise((resolve) => {
|
|
2905
|
+
resolveDismiss = resolve;
|
|
2906
|
+
});
|
|
2907
|
+
if (!this.entries.length) this.document.addEventListener("keydown", this.onKeydown);
|
|
2908
|
+
const elementInjector = Injector.create({
|
|
2909
|
+
providers: [{
|
|
2910
|
+
provide: ModalService,
|
|
2911
|
+
useValue: this
|
|
2912
|
+
}],
|
|
2913
|
+
parent: options.injector ?? this.injector
|
|
2914
|
+
});
|
|
2915
|
+
const content = createComponent(options.component, {
|
|
2916
|
+
environmentInjector: this.environmentInjector,
|
|
2917
|
+
elementInjector
|
|
2918
|
+
});
|
|
2919
|
+
const ref = createComponent(ModalComponent, {
|
|
2920
|
+
environmentInjector: this.environmentInjector,
|
|
2921
|
+
elementInjector,
|
|
2922
|
+
projectableNodes: [[content.location.nativeElement]]
|
|
2923
|
+
});
|
|
2924
|
+
const element = ref.location.nativeElement;
|
|
2925
|
+
const entry = {
|
|
2926
|
+
options,
|
|
2927
|
+
modal: {
|
|
2928
|
+
dismiss: (data = null) => {
|
|
2929
|
+
const index = this.entries.indexOf(entry);
|
|
2930
|
+
if (index === -1) return;
|
|
2931
|
+
this.entries.splice(index, 1);
|
|
2932
|
+
if (!this.entries.length) this.document.removeEventListener("keydown", this.onKeydown);
|
|
2933
|
+
content.destroy();
|
|
2934
|
+
ref.destroy();
|
|
2935
|
+
element.remove();
|
|
2936
|
+
trigger?.focus?.();
|
|
2937
|
+
resolveDismiss({ data });
|
|
2938
|
+
},
|
|
2939
|
+
onDidDismiss: () => dismissed
|
|
2940
|
+
}
|
|
2941
|
+
};
|
|
2942
|
+
this.setInputs(content, {
|
|
2943
|
+
...options.props ?? {},
|
|
2944
|
+
dismiss: entry.modal.dismiss
|
|
2945
|
+
});
|
|
2946
|
+
ref.setInput("open", true);
|
|
2947
|
+
ref.setInput("options", options.mode === "bottom" ? BOTTOM_SHEET_MODAL_OPTIONS : MODAL_OPTIONS);
|
|
2948
|
+
ref.setInput("class", this.getClasses(options).join(" "));
|
|
2949
|
+
ref.instance.closed.subscribe(() => entry.modal.dismiss());
|
|
2950
|
+
element.setAttribute("data-mode", options.mode ?? "default");
|
|
2951
|
+
element.addEventListener("click", (event) => this.onBackdropClick(event, options), true);
|
|
2952
|
+
this.entries.push(entry);
|
|
2953
|
+
this.document.body.appendChild(element);
|
|
2954
|
+
this.appRef.attachView(content.hostView);
|
|
2955
|
+
this.appRef.attachView(ref.hostView);
|
|
2956
|
+
content.changeDetectorRef.detectChanges();
|
|
2957
|
+
ref.changeDetectorRef.detectChanges();
|
|
2958
|
+
return entry.modal;
|
|
2959
|
+
}
|
|
2960
|
+
async dismiss(data = null) {
|
|
2961
|
+
this.entries[this.entries.length - 1]?.modal.dismiss(data);
|
|
2962
|
+
}
|
|
2963
|
+
ngOnDestroy() {
|
|
2964
|
+
[...this.entries].reverse().forEach((entry) => entry.modal.dismiss());
|
|
2965
|
+
this.document.removeEventListener("keydown", this.onKeydown);
|
|
2966
|
+
}
|
|
2967
|
+
getClasses(options) {
|
|
2968
|
+
return [...options.cssClass ?? [], ...options.mode === "bottom" ? ["smart-modal-bottom"] : []];
|
|
2969
|
+
}
|
|
2970
|
+
onBackdropClick(event, options) {
|
|
2971
|
+
if (options.backdropDismiss !== false) return;
|
|
2972
|
+
if (!event.target?.closest?.("[role=\"dialog\"]")) event.stopPropagation();
|
|
2973
|
+
}
|
|
2974
|
+
setInputs(ref, values) {
|
|
2975
|
+
const declared = reflectComponentType(ref.componentType)?.inputs ?? [];
|
|
2976
|
+
for (const { propName, templateName } of declared) if (templateName in values) ref.setInput(templateName, values[templateName]);
|
|
2977
|
+
else if (propName in values) ref.setInput(templateName, values[propName]);
|
|
1568
2978
|
}
|
|
1569
|
-
async dismiss(data = null) {}
|
|
1570
2979
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
1571
2980
|
minVersion: "12.0.0",
|
|
1572
2981
|
version: "22.2.2",
|
|
@@ -1746,87 +3155,6 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
1746
3155
|
}]
|
|
1747
3156
|
}]
|
|
1748
3157
|
});
|
|
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
3158
|
var AlertComponent = class AlertComponent {
|
|
1831
3159
|
injectedComponent = inject(ALERT_STANDARD_COMPONENT_TOKEN, { optional: true });
|
|
1832
3160
|
options = input.required(...ngDevMode ? [{ debugName: "options" }] : /* istanbul ignore next */ []);
|
|
@@ -2045,7 +3373,14 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
2045
3373
|
decorators: [{ type: Injectable }]
|
|
2046
3374
|
});
|
|
2047
3375
|
var UIService = class UIService {
|
|
2048
|
-
|
|
3376
|
+
alertService = inject(AlertService, { optional: true }) ?? new AlertService();
|
|
3377
|
+
async showAlertWithDismissCallback(heading, msg, btnText, callback) {
|
|
3378
|
+
this.alertService.show({
|
|
3379
|
+
header: heading,
|
|
3380
|
+
message: msg,
|
|
3381
|
+
buttons: [{ text: btnText }]
|
|
3382
|
+
}).then(() => callback());
|
|
3383
|
+
}
|
|
2049
3384
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
2050
3385
|
minVersion: "12.0.0",
|
|
2051
3386
|
version: "22.2.2",
|
|
@@ -2238,30 +3573,47 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
2238
3573
|
args: [{ selector: ".dynamic-content" }]
|
|
2239
3574
|
}]
|
|
2240
3575
|
});
|
|
3576
|
+
async function showDetailsModal(services, options, { showed, dismissed } = {}) {
|
|
3577
|
+
if (!options || !options.component) return;
|
|
3578
|
+
const modal = await services.modalService.show({
|
|
3579
|
+
component: options.component,
|
|
3580
|
+
props: { value: options.params },
|
|
3581
|
+
mode: options.mode ? options.mode : "bottom",
|
|
3582
|
+
injector: services.injector
|
|
3583
|
+
});
|
|
3584
|
+
showed?.();
|
|
3585
|
+
const handler = await services.hardwareService.onBackButtonClick(() => modal.dismiss());
|
|
3586
|
+
await modal.onDidDismiss();
|
|
3587
|
+
handler.remove();
|
|
3588
|
+
dismissed?.();
|
|
3589
|
+
}
|
|
2241
3590
|
var DetailsDirective = class DetailsDirective {
|
|
2242
3591
|
modalService = inject(ModalService);
|
|
2243
3592
|
hardwareService = inject(HardwareService);
|
|
3593
|
+
injector = inject(Injector);
|
|
3594
|
+
destroyed = false;
|
|
2244
3595
|
options = input.required({
|
|
2245
3596
|
...ngDevMode ? { debugName: "options" } : /* istanbul ignore next */ {},
|
|
2246
3597
|
alias: "smartDetails"
|
|
2247
3598
|
});
|
|
2248
3599
|
smartDetailsShowed = output();
|
|
2249
3600
|
smartDetailsDismissed = output();
|
|
3601
|
+
constructor() {
|
|
3602
|
+
inject(DestroyRef).onDestroy(() => this.destroyed = true);
|
|
3603
|
+
}
|
|
2250
3604
|
async click() {
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
3605
|
+
await showDetailsModal({
|
|
3606
|
+
modalService: this.modalService,
|
|
3607
|
+
hardwareService: this.hardwareService,
|
|
3608
|
+
injector: this.injector
|
|
3609
|
+
}, this.options(), {
|
|
3610
|
+
showed: () => {
|
|
3611
|
+
if (!this.destroyed) this.smartDetailsShowed.emit();
|
|
3612
|
+
},
|
|
3613
|
+
dismissed: () => {
|
|
3614
|
+
if (!this.destroyed) this.smartDetailsDismissed.emit();
|
|
3615
|
+
}
|
|
2260
3616
|
});
|
|
2261
|
-
await modal.onDidDismiss();
|
|
2262
|
-
handler.remove();
|
|
2263
|
-
modal = null;
|
|
2264
|
-
this.smartDetailsDismissed.emit();
|
|
2265
3617
|
}
|
|
2266
3618
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
2267
3619
|
minVersion: "12.0.0",
|
|
@@ -2301,6 +3653,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
2301
3653
|
type: Directive,
|
|
2302
3654
|
args: [{ selector: "[smartDetails]" }]
|
|
2303
3655
|
}],
|
|
3656
|
+
ctorParameters: () => [],
|
|
2304
3657
|
propDecorators: {
|
|
2305
3658
|
options: [{
|
|
2306
3659
|
type: i0.Input,
|
|
@@ -3962,9 +5315,9 @@ function getAccordionPresetContentClasses() {
|
|
|
3962
5315
|
function getAccordionPresetIconClasses() {
|
|
3963
5316
|
return "smart:size-3.5 smart:shrink-0";
|
|
3964
5317
|
}
|
|
3965
|
-
let nextId$
|
|
5318
|
+
let nextId$4 = 0;
|
|
3966
5319
|
var AccordionPresetComponent = class AccordionPresetComponent extends AccordionBaseComponent {
|
|
3967
|
-
contentId = `smart-accordion-preset-${nextId$
|
|
5320
|
+
contentId = `smart-accordion-preset-${nextId$4++}`;
|
|
3968
5321
|
iconClasses = getAccordionPresetIconClasses();
|
|
3969
5322
|
disabled = computed(() => this.options()?.disabled ?? false, ...ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []);
|
|
3970
5323
|
containerClasses = computed(() => {
|
|
@@ -6577,22 +7930,6 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
6577
7930
|
}]
|
|
6578
7931
|
}] }
|
|
6579
7932
|
});
|
|
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
7933
|
var ButtonComponent = class ButtonComponent {
|
|
6597
7934
|
injectedComponent = inject(BUTTON_STANDARD_COMPONENT_TOKEN, { optional: true });
|
|
6598
7935
|
options = input.required(...ngDevMode ? [{ debugName: "options" }] : /* istanbul ignore next */ []);
|
|
@@ -19217,16 +20554,54 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
19217
20554
|
});
|
|
19218
20555
|
var InputPossibilitiesBaseComponent = class InputPossibilitiesBaseComponent extends InputBaseComponent {
|
|
19219
20556
|
modelPossibilitiesProvider = inject(MODEL_POSSIBILITIES_PROVIDER, { optional: true });
|
|
20557
|
+
possibilitiesSources = signal({
|
|
20558
|
+
provider: null,
|
|
20559
|
+
options: null,
|
|
20560
|
+
model: null
|
|
20561
|
+
}, ...ngDevMode ? [{ debugName: "possibilitiesSources" }] : /* istanbul ignore next */ []);
|
|
20562
|
+
resolvedPossibilities = linkedSignal(() => {
|
|
20563
|
+
const { provider, options, model } = this.possibilitiesSources();
|
|
20564
|
+
return provider?.() ?? options?.() ?? model ?? null;
|
|
20565
|
+
}, ...ngDevMode ? [{ debugName: "resolvedPossibilities" }] : /* istanbul ignore next */ []);
|
|
20566
|
+
providerRefresh = null;
|
|
20567
|
+
possibilities = this.resolvedPossibilities;
|
|
20568
|
+
constructor() {
|
|
20569
|
+
super();
|
|
20570
|
+
effect(() => {
|
|
20571
|
+
this.resolvedPossibilities();
|
|
20572
|
+
untracked(() => this.afterPossibilitiesChange());
|
|
20573
|
+
});
|
|
20574
|
+
}
|
|
19220
20575
|
afterSetOptionsHandler() {
|
|
19221
|
-
|
|
19222
|
-
|
|
19223
|
-
|
|
19224
|
-
|
|
19225
|
-
|
|
19226
|
-
|
|
19227
|
-
this.
|
|
20576
|
+
untracked(() => {
|
|
20577
|
+
this.possibilitiesSources.set({
|
|
20578
|
+
provider: this.getPossibilitiesFromProvider(),
|
|
20579
|
+
options: this.internalOptions.possibilities ?? null,
|
|
20580
|
+
model: this.getModelPossibilities()
|
|
20581
|
+
});
|
|
20582
|
+
this.possibilities = this.resolvedPossibilities;
|
|
20583
|
+
this.afterPossibilitiesChange();
|
|
20584
|
+
this.watchProviderPossibilities();
|
|
19228
20585
|
});
|
|
19229
20586
|
}
|
|
20587
|
+
afterPossibilitiesChange() {}
|
|
20588
|
+
getModelPossibilities() {
|
|
20589
|
+
const possibilities = this.getModelFieldPossibilities();
|
|
20590
|
+
if (!possibilities || Array.isArray(possibilities)) return null;
|
|
20591
|
+
return Object.keys(possibilities).map((key) => ({
|
|
20592
|
+
id: possibilities[key],
|
|
20593
|
+
text: key,
|
|
20594
|
+
checked: false
|
|
20595
|
+
}));
|
|
20596
|
+
}
|
|
20597
|
+
getModelFieldPossibilities() {
|
|
20598
|
+
const model = this.internalOptions?.model;
|
|
20599
|
+
const fieldKey = this.internalOptions?.fieldKey;
|
|
20600
|
+
if (!model || !fieldKey) return null;
|
|
20601
|
+
let fieldOptions = getModelFieldOptions(model, fieldKey);
|
|
20602
|
+
if (!fieldOptions && model[0]) fieldOptions = getModelFieldOptions(model[0], fieldKey);
|
|
20603
|
+
return fieldOptions?.possibilities ?? null;
|
|
20604
|
+
}
|
|
19230
20605
|
getPossibilitiesFromProvider() {
|
|
19231
20606
|
if (!this.modelPossibilitiesProvider) return signal(null);
|
|
19232
20607
|
return this.modelPossibilitiesProvider.get({
|
|
@@ -19235,12 +20610,32 @@ var InputPossibilitiesBaseComponent = class InputPossibilitiesBaseComponent exte
|
|
|
19235
20610
|
instance: this.internalOptions.control.parent?.value
|
|
19236
20611
|
});
|
|
19237
20612
|
}
|
|
20613
|
+
refreshProviderPossibilities() {
|
|
20614
|
+
const sources = this.possibilitiesSources();
|
|
20615
|
+
const previous = sources.provider?.() ?? null;
|
|
20616
|
+
const next = this.getPossibilitiesFromProvider();
|
|
20617
|
+
this.possibilitiesSources.set({
|
|
20618
|
+
...sources,
|
|
20619
|
+
provider: previous ? computed(() => next() ?? previous) : next
|
|
20620
|
+
});
|
|
20621
|
+
}
|
|
20622
|
+
watchProviderPossibilities() {
|
|
20623
|
+
this.providerRefresh?.unsubscribe();
|
|
20624
|
+
this.providerRefresh = null;
|
|
20625
|
+
const changes = this.internalOptions.control.parent?.valueChanges;
|
|
20626
|
+
if (!this.modelPossibilitiesProvider || !changes) return;
|
|
20627
|
+
this.providerRefresh = changes.pipe(debounceTime(500), this.takeUntilDestroy).subscribe(() => {
|
|
20628
|
+
this.refreshProviderPossibilities();
|
|
20629
|
+
this.afterPossibilitiesChange();
|
|
20630
|
+
this.cd.detectChanges();
|
|
20631
|
+
});
|
|
20632
|
+
}
|
|
19238
20633
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
19239
20634
|
minVersion: "12.0.0",
|
|
19240
20635
|
version: "22.2.2",
|
|
19241
20636
|
ngImport: i0,
|
|
19242
20637
|
type: InputPossibilitiesBaseComponent,
|
|
19243
|
-
deps:
|
|
20638
|
+
deps: [],
|
|
19244
20639
|
target: i0.ɵɵFactoryTarget.Directive
|
|
19245
20640
|
});
|
|
19246
20641
|
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
@@ -19257,7 +20652,8 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
19257
20652
|
version: "22.2.2",
|
|
19258
20653
|
ngImport: i0,
|
|
19259
20654
|
type: InputPossibilitiesBaseComponent,
|
|
19260
|
-
decorators: [{ type: Directive }]
|
|
20655
|
+
decorators: [{ type: Directive }],
|
|
20656
|
+
ctorParameters: () => []
|
|
19261
20657
|
});
|
|
19262
20658
|
var InputColorComponent = class InputColorComponent extends InputBaseComponent {
|
|
19263
20659
|
color;
|
|
@@ -21577,7 +22973,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
21577
22973
|
}]
|
|
21578
22974
|
});
|
|
21579
22975
|
var InputCheckComponent = class InputCheckComponent extends InputPossibilitiesBaseComponent {
|
|
21580
|
-
|
|
22976
|
+
controlChanges = null;
|
|
21581
22977
|
labelClasses = computed(() => [
|
|
21582
22978
|
"smart:block",
|
|
21583
22979
|
"smart:text-sm/6",
|
|
@@ -21592,13 +22988,16 @@ var InputCheckComponent = class InputCheckComponent extends InputPossibilitiesBa
|
|
|
21592
22988
|
return classes.join(" ");
|
|
21593
22989
|
}, ...ngDevMode ? [{ debugName: "groupClasses" }] : /* istanbul ignore next */ []);
|
|
21594
22990
|
afterSetOptionsHandler() {
|
|
21595
|
-
|
|
21596
|
-
|
|
21597
|
-
|
|
21598
|
-
|
|
21599
|
-
|
|
22991
|
+
super.afterSetOptionsHandler();
|
|
22992
|
+
this.controlChanges?.unsubscribe();
|
|
22993
|
+
this.controlChanges = this.control.valueChanges.pipe(this.takeUntilDestroy).subscribe(() => this.syncCheckedWithControl());
|
|
22994
|
+
}
|
|
22995
|
+
afterPossibilitiesChange() {
|
|
21600
22996
|
this.syncCheckedWithControl();
|
|
21601
|
-
|
|
22997
|
+
}
|
|
22998
|
+
getModelPossibilities() {
|
|
22999
|
+
const possibilities = this.getModelFieldPossibilities();
|
|
23000
|
+
return Array.isArray(possibilities) ? possibilities : null;
|
|
21602
23001
|
}
|
|
21603
23002
|
syncCheckedWithControl() {
|
|
21604
23003
|
const list = this.possibilities();
|
|
@@ -21611,7 +23010,7 @@ var InputCheckComponent = class InputCheckComponent extends InputPossibilitiesBa
|
|
|
21611
23010
|
item.id = controlItem;
|
|
21612
23011
|
item.checked = true;
|
|
21613
23012
|
} else item.checked = false;
|
|
21614
|
-
} else item.checked = item.id === value;
|
|
23013
|
+
} else item.checked = Array.isArray(value) ? value.includes(item.id) : item.id === value;
|
|
21615
23014
|
});
|
|
21616
23015
|
this.cd.detectChanges();
|
|
21617
23016
|
}
|
|
@@ -24462,19 +25861,6 @@ var InputRadioComponent = class InputRadioComponent extends InputPossibilitiesBa
|
|
|
24462
25861
|
if (extra) classes.push(extra);
|
|
24463
25862
|
return classes.join(" ");
|
|
24464
25863
|
}, ...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
25864
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
24479
25865
|
minVersion: "12.0.0",
|
|
24480
25866
|
version: "22.2.2",
|
|
@@ -26307,7 +27693,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
26307
27693
|
}]
|
|
26308
27694
|
});
|
|
26309
27695
|
var InputCheckPresetComponent = class InputCheckPresetComponent extends InputPossibilitiesBaseComponent {
|
|
26310
|
-
|
|
27696
|
+
controlChanges = null;
|
|
26311
27697
|
labelClasses = computed(() => [
|
|
26312
27698
|
"smart:block",
|
|
26313
27699
|
"smart:text-sm",
|
|
@@ -26347,13 +27733,16 @@ var InputCheckPresetComponent = class InputCheckPresetComponent extends InputPos
|
|
|
26347
27733
|
"smart:dark:text-gray-400"
|
|
26348
27734
|
].join(" "), ...ngDevMode ? [{ debugName: "optionLabelClasses" }] : /* istanbul ignore next */ []);
|
|
26349
27735
|
afterSetOptionsHandler() {
|
|
26350
|
-
|
|
26351
|
-
|
|
26352
|
-
|
|
26353
|
-
|
|
26354
|
-
|
|
27736
|
+
super.afterSetOptionsHandler();
|
|
27737
|
+
this.controlChanges?.unsubscribe();
|
|
27738
|
+
this.controlChanges = this.control.valueChanges.pipe(this.takeUntilDestroy).subscribe(() => this.syncCheckedWithControl());
|
|
27739
|
+
}
|
|
27740
|
+
afterPossibilitiesChange() {
|
|
26355
27741
|
this.syncCheckedWithControl();
|
|
26356
|
-
|
|
27742
|
+
}
|
|
27743
|
+
getModelPossibilities() {
|
|
27744
|
+
const possibilities = this.getModelFieldPossibilities();
|
|
27745
|
+
return Array.isArray(possibilities) ? possibilities : null;
|
|
26357
27746
|
}
|
|
26358
27747
|
syncCheckedWithControl() {
|
|
26359
27748
|
const list = this.possibilities();
|
|
@@ -26366,7 +27755,7 @@ var InputCheckPresetComponent = class InputCheckPresetComponent extends InputPos
|
|
|
26366
27755
|
item.id = controlItem;
|
|
26367
27756
|
item.checked = true;
|
|
26368
27757
|
} else item.checked = false;
|
|
26369
|
-
} else item.checked = item.id === value;
|
|
27758
|
+
} else item.checked = Array.isArray(value) ? value.includes(item.id) : item.id === value;
|
|
26370
27759
|
});
|
|
26371
27760
|
this.cd.detectChanges();
|
|
26372
27761
|
}
|
|
@@ -27652,19 +29041,6 @@ var InputEnumPresetComponent = class InputEnumPresetComponent extends InputPossi
|
|
|
27652
29041
|
if (extra) classes.push(extra);
|
|
27653
29042
|
return classes.join(" ");
|
|
27654
29043
|
}, ...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
29044
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
27669
29045
|
minVersion: "12.0.0",
|
|
27670
29046
|
version: "22.2.2",
|
|
@@ -31348,19 +32724,6 @@ var InputRadioPresetComponent = class InputRadioPresetComponent extends InputPos
|
|
|
31348
32724
|
"smart:text-gray-500",
|
|
31349
32725
|
"smart:dark:text-gray-400"
|
|
31350
32726
|
].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
32727
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
31365
32728
|
minVersion: "12.0.0",
|
|
31366
32729
|
version: "22.2.2",
|
|
@@ -34315,6 +35678,122 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
34315
35678
|
}]
|
|
34316
35679
|
}
|
|
34317
35680
|
});
|
|
35681
|
+
var DetailsPage = class DetailsPage {
|
|
35682
|
+
modalService = inject(ModalService);
|
|
35683
|
+
styleService = inject(StyleService);
|
|
35684
|
+
elementRef = inject(ElementRef);
|
|
35685
|
+
value = input(...ngDevMode ? [void 0, { debugName: "value" }] : /* istanbul ignore next */ []);
|
|
35686
|
+
pageOptions = computed(() => {
|
|
35687
|
+
const value = this.value();
|
|
35688
|
+
return {
|
|
35689
|
+
title: value?.title ? value.title : "details",
|
|
35690
|
+
hideMenuButton: true,
|
|
35691
|
+
endButtons: this.getButtons(value)
|
|
35692
|
+
};
|
|
35693
|
+
}, ...ngDevMode ? [{ debugName: "pageOptions" }] : /* istanbul ignore next */ []);
|
|
35694
|
+
ngOnInit() {
|
|
35695
|
+
this.styleService.init(this.elementRef);
|
|
35696
|
+
}
|
|
35697
|
+
getButtons(value) {
|
|
35698
|
+
const buttons = [];
|
|
35699
|
+
if (value?.removeHandler) buttons.push({
|
|
35700
|
+
handler: () => {
|
|
35701
|
+
const item = value.item?.();
|
|
35702
|
+
if (item) value.removeHandler?.(item);
|
|
35703
|
+
this.modalService.dismiss();
|
|
35704
|
+
},
|
|
35705
|
+
icon: "trash"
|
|
35706
|
+
});
|
|
35707
|
+
if (value?.itemHandler) buttons.push({
|
|
35708
|
+
handler: () => {
|
|
35709
|
+
const item = value.item?.();
|
|
35710
|
+
if (item) value.itemHandler?.(item.id);
|
|
35711
|
+
this.modalService.dismiss();
|
|
35712
|
+
},
|
|
35713
|
+
icon: "arrow-forward-outline"
|
|
35714
|
+
});
|
|
35715
|
+
return buttons;
|
|
35716
|
+
}
|
|
35717
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
35718
|
+
minVersion: "12.0.0",
|
|
35719
|
+
version: "22.2.2",
|
|
35720
|
+
ngImport: i0,
|
|
35721
|
+
type: DetailsPage,
|
|
35722
|
+
deps: [],
|
|
35723
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
35724
|
+
});
|
|
35725
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
35726
|
+
minVersion: "17.0.0",
|
|
35727
|
+
version: "22.2.2",
|
|
35728
|
+
type: DetailsPage,
|
|
35729
|
+
isStandalone: true,
|
|
35730
|
+
selector: "ng-component",
|
|
35731
|
+
inputs: { value: {
|
|
35732
|
+
classPropertyName: "value",
|
|
35733
|
+
publicName: "value",
|
|
35734
|
+
isSignal: true,
|
|
35735
|
+
isRequired: false,
|
|
35736
|
+
transformFunction: null
|
|
35737
|
+
} },
|
|
35738
|
+
ngImport: i0,
|
|
35739
|
+
template: "@if (value(); as options) {\n<smart-details [options]=\"options\"></smart-details>\n}\n",
|
|
35740
|
+
styles: [":host{width:100%}\n"],
|
|
35741
|
+
dependencies: [{
|
|
35742
|
+
kind: "component",
|
|
35743
|
+
type: DetailsComponent,
|
|
35744
|
+
selector: "smart-details",
|
|
35745
|
+
inputs: ["options", "class"]
|
|
35746
|
+
}],
|
|
35747
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
35748
|
+
});
|
|
35749
|
+
};
|
|
35750
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
35751
|
+
minVersion: "12.0.0",
|
|
35752
|
+
version: "22.2.2",
|
|
35753
|
+
ngImport: i0,
|
|
35754
|
+
type: DetailsPage,
|
|
35755
|
+
decorators: [{
|
|
35756
|
+
type: Component,
|
|
35757
|
+
args: [{
|
|
35758
|
+
imports: [DetailsComponent],
|
|
35759
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
35760
|
+
template: "@if (value(); as options) {\n<smart-details [options]=\"options\"></smart-details>\n}\n",
|
|
35761
|
+
styles: [":host{width:100%}\n"]
|
|
35762
|
+
}]
|
|
35763
|
+
}],
|
|
35764
|
+
propDecorators: { value: [{
|
|
35765
|
+
type: i0.Input,
|
|
35766
|
+
args: [{
|
|
35767
|
+
isSignal: true,
|
|
35768
|
+
alias: "value",
|
|
35769
|
+
required: false
|
|
35770
|
+
}]
|
|
35771
|
+
}] }
|
|
35772
|
+
});
|
|
35773
|
+
function getListDefaultSort(sort) {
|
|
35774
|
+
if (!sort || typeof sort !== "object" || !sort.default) return null;
|
|
35775
|
+
return {
|
|
35776
|
+
key: sort.default,
|
|
35777
|
+
desc: !!sort.defaultDesc
|
|
35778
|
+
};
|
|
35779
|
+
}
|
|
35780
|
+
function getNextListSort(current, key) {
|
|
35781
|
+
return {
|
|
35782
|
+
key,
|
|
35783
|
+
desc: current?.key === key ? !current.desc : false
|
|
35784
|
+
};
|
|
35785
|
+
}
|
|
35786
|
+
function isListSortableKey(key) {
|
|
35787
|
+
return !key.startsWith("__array.");
|
|
35788
|
+
}
|
|
35789
|
+
function getListAriaSort(current, key) {
|
|
35790
|
+
if (current?.key !== key) return null;
|
|
35791
|
+
return current.desc ? "descending" : "ascending";
|
|
35792
|
+
}
|
|
35793
|
+
function getListSortIndicator(current, key) {
|
|
35794
|
+
if (current?.key !== key) return "↕";
|
|
35795
|
+
return current.desc ? "↓" : "↑";
|
|
35796
|
+
}
|
|
34318
35797
|
var ListBaseComponent = class ListBaseComponent {
|
|
34319
35798
|
static smartType = "list";
|
|
34320
35799
|
_fields;
|
|
@@ -34324,6 +35803,8 @@ var ListBaseComponent = class ListBaseComponent {
|
|
|
34324
35803
|
alertService = inject(AlertService);
|
|
34325
35804
|
cd = inject(ChangeDetectorRef);
|
|
34326
35805
|
translateService = inject(TranslateService);
|
|
35806
|
+
injector = inject(Injector);
|
|
35807
|
+
loadingNextPage = false;
|
|
34327
35808
|
detailsComponent;
|
|
34328
35809
|
selectMode;
|
|
34329
35810
|
detailsComponentProps;
|
|
@@ -34331,6 +35812,7 @@ var ListBaseComponent = class ListBaseComponent {
|
|
|
34331
35812
|
unselect;
|
|
34332
35813
|
itemHandler = null;
|
|
34333
35814
|
removeHandler = null;
|
|
35815
|
+
detailsHandler = null;
|
|
34334
35816
|
checkRemoveHandler;
|
|
34335
35817
|
detailsButtonOptions;
|
|
34336
35818
|
removed = /* @__PURE__ */ new Set();
|
|
@@ -34352,6 +35834,17 @@ var ListBaseComponent = class ListBaseComponent {
|
|
|
34352
35834
|
alias: "class"
|
|
34353
35835
|
});
|
|
34354
35836
|
contentTpl = viewChild("contentTpl", ...ngDevMode ? [{ debugName: "contentTpl" }] : /* istanbul ignore next */ []);
|
|
35837
|
+
sortable = computed(() => !!this.options().sort, ...ngDevMode ? [{ debugName: "sortable" }] : /* istanbul ignore next */ []);
|
|
35838
|
+
activeSort = linkedSignal({
|
|
35839
|
+
...ngDevMode ? { debugName: "activeSort" } : /* istanbul ignore next */ {},
|
|
35840
|
+
source: () => this.options().sort,
|
|
35841
|
+
computation: (sort, previous) => previous && previous.source === sort ? previous.value : getListDefaultSort(sort)
|
|
35842
|
+
});
|
|
35843
|
+
infiniteScroll = computed(() => {
|
|
35844
|
+
const pagination = this.options().pagination;
|
|
35845
|
+
return pagination?.mode === PaginationMode.infiniteScroll && (pagination.page?.() ?? 1) < (pagination.totalPages?.() ?? 0);
|
|
35846
|
+
}, ...ngDevMode ? [{ debugName: "infiniteScroll" }] : /* istanbul ignore next */ []);
|
|
35847
|
+
infiniteScrollAnchor = viewChild("infiniteScrollAnchor", ...ngDevMode ? [{ debugName: "infiniteScrollAnchor" }] : /* istanbul ignore next */ []);
|
|
34355
35848
|
constructor() {
|
|
34356
35849
|
effect(() => {
|
|
34357
35850
|
const options = this.options();
|
|
@@ -34395,21 +35888,23 @@ var ListBaseComponent = class ListBaseComponent {
|
|
|
34395
35888
|
};
|
|
34396
35889
|
}
|
|
34397
35890
|
const details = options.details;
|
|
35891
|
+
this.detailsHandler = null;
|
|
34398
35892
|
if (options.details) {
|
|
34399
35893
|
if (!details?.provider) throw Error("Must set details provider");
|
|
34400
|
-
|
|
34401
|
-
|
|
34402
|
-
|
|
34403
|
-
|
|
34404
|
-
|
|
34405
|
-
|
|
34406
|
-
|
|
34407
|
-
|
|
34408
|
-
|
|
34409
|
-
};
|
|
34410
|
-
}
|
|
35894
|
+
this.detailsComponent = details.component;
|
|
35895
|
+
this.detailsComponentProps = {
|
|
35896
|
+
item: details.provider.item,
|
|
35897
|
+
type: options.type,
|
|
35898
|
+
loading: details.provider.loading,
|
|
35899
|
+
itemHandler: this.itemHandler ?? null,
|
|
35900
|
+
removeHandler: this.removeHandler,
|
|
35901
|
+
componentFactories: details.componentFactories
|
|
35902
|
+
};
|
|
34411
35903
|
this.select = details.provider.getData;
|
|
34412
35904
|
this.unselect = details.provider.clearData;
|
|
35905
|
+
this.detailsHandler = (item) => {
|
|
35906
|
+
this.openDetails(item);
|
|
35907
|
+
};
|
|
34413
35908
|
}
|
|
34414
35909
|
if (options.pagination) {
|
|
34415
35910
|
this.loadNextPage = async (event = null) => {
|
|
@@ -34431,6 +35926,21 @@ var ListBaseComponent = class ListBaseComponent {
|
|
|
34431
35926
|
}
|
|
34432
35927
|
this.afterInitOptions();
|
|
34433
35928
|
});
|
|
35929
|
+
effect((onCleanup) => {
|
|
35930
|
+
const pagination = this.options().pagination;
|
|
35931
|
+
const target = this.infiniteScrollAnchor()?.nativeElement;
|
|
35932
|
+
pagination?.page?.();
|
|
35933
|
+
if (!this.infiniteScroll() || !target || typeof IntersectionObserver === "undefined") return;
|
|
35934
|
+
const observer = new IntersectionObserver((entries) => {
|
|
35935
|
+
if (this.loadingNextPage || !entries.some((entry) => entry.isIntersecting)) return;
|
|
35936
|
+
this.loadingNextPage = true;
|
|
35937
|
+
Promise.resolve(pagination?.loadNextPage?.()).finally(() => {
|
|
35938
|
+
this.loadingNextPage = false;
|
|
35939
|
+
});
|
|
35940
|
+
});
|
|
35941
|
+
observer.observe(target);
|
|
35942
|
+
onCleanup(() => observer.disconnect());
|
|
35943
|
+
});
|
|
34434
35944
|
this.detailsButtonOptions = {
|
|
34435
35945
|
loading: this.loading,
|
|
34436
35946
|
click: () => {
|
|
@@ -34466,6 +35976,39 @@ var ListBaseComponent = class ListBaseComponent {
|
|
|
34466
35976
|
this.loading = this.provider.loading;
|
|
34467
35977
|
}
|
|
34468
35978
|
afterInitOptions() {}
|
|
35979
|
+
isSortable(key) {
|
|
35980
|
+
return this.sortable() && isListSortableKey(key);
|
|
35981
|
+
}
|
|
35982
|
+
sortBy(key) {
|
|
35983
|
+
if (!this.isSortable(key)) return;
|
|
35984
|
+
const next = getNextListSort(this.activeSort(), key);
|
|
35985
|
+
const filter = {
|
|
35986
|
+
offset: 0,
|
|
35987
|
+
sortBy: next.key,
|
|
35988
|
+
sortDesc: next.desc
|
|
35989
|
+
};
|
|
35990
|
+
this.activeSort.set(next);
|
|
35991
|
+
this.provider.getData(filter);
|
|
35992
|
+
}
|
|
35993
|
+
ariaSort(key) {
|
|
35994
|
+
return this.isSortable(key) ? getListAriaSort(this.activeSort(), key) : null;
|
|
35995
|
+
}
|
|
35996
|
+
sortIndicator(key) {
|
|
35997
|
+
return getListSortIndicator(this.activeSort(), key);
|
|
35998
|
+
}
|
|
35999
|
+
async openDetails(item) {
|
|
36000
|
+
if (!this.select) return;
|
|
36001
|
+
this.unselect?.();
|
|
36002
|
+
await showDetailsModal({
|
|
36003
|
+
modalService: this.injector.get(ModalService),
|
|
36004
|
+
hardwareService: this.injector.get(HardwareService),
|
|
36005
|
+
injector: this.injector
|
|
36006
|
+
}, {
|
|
36007
|
+
component: this.detailsComponent ?? DetailsPage,
|
|
36008
|
+
params: this.detailsComponentProps,
|
|
36009
|
+
mode: "bottom"
|
|
36010
|
+
}, { showed: () => this.select(item.id) });
|
|
36011
|
+
}
|
|
34469
36012
|
handlePageChange(nextPage) {
|
|
34470
36013
|
const current = this.page?.() ?? 1;
|
|
34471
36014
|
if (nextPage > current) this.loadNextPage?.();
|
|
@@ -34506,6 +36049,12 @@ var ListBaseComponent = class ListBaseComponent {
|
|
|
34506
36049
|
predicate: ["contentTpl"],
|
|
34507
36050
|
descendants: true,
|
|
34508
36051
|
isSignal: true
|
|
36052
|
+
}, {
|
|
36053
|
+
propertyName: "infiniteScrollAnchor",
|
|
36054
|
+
first: true,
|
|
36055
|
+
predicate: ["infiniteScrollAnchor"],
|
|
36056
|
+
descendants: true,
|
|
36057
|
+
isSignal: true
|
|
34509
36058
|
}],
|
|
34510
36059
|
ngImport: i0
|
|
34511
36060
|
});
|
|
@@ -34537,6 +36086,10 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
34537
36086
|
contentTpl: [{
|
|
34538
36087
|
type: i0.ViewChild,
|
|
34539
36088
|
args: ["contentTpl", { isSignal: true }]
|
|
36089
|
+
}],
|
|
36090
|
+
infiniteScrollAnchor: [{
|
|
36091
|
+
type: i0.ViewChild,
|
|
36092
|
+
args: ["infiniteScrollAnchor", { isSignal: true }]
|
|
34540
36093
|
}]
|
|
34541
36094
|
}
|
|
34542
36095
|
});
|
|
@@ -34562,6 +36115,7 @@ var ListDesktopComponent = class ListDesktopComponent extends ListBaseComponent
|
|
|
34562
36115
|
if (this.keys) return [
|
|
34563
36116
|
...this.selectMode === "multi" ? ["selectMulti"] : [],
|
|
34564
36117
|
...this.keys,
|
|
36118
|
+
...this.detailsHandler ? ["detailsAction"] : [],
|
|
34565
36119
|
...this.removeHandler ? ["removeAction"] : [],
|
|
34566
36120
|
...this.itemHandler ? ["itemAction"] : []
|
|
34567
36121
|
];
|
|
@@ -34624,7 +36178,7 @@ var ListDesktopComponent = class ListDesktopComponent extends ListBaseComponent
|
|
|
34624
36178
|
}],
|
|
34625
36179
|
usesInheritance: true,
|
|
34626
36180
|
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",
|
|
36181
|
+
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
36182
|
dependencies: [
|
|
34629
36183
|
{
|
|
34630
36184
|
kind: "directive",
|
|
@@ -34792,7 +36346,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
34792
36346
|
CdkHeaderRowDef,
|
|
34793
36347
|
CdkRowDef
|
|
34794
36348
|
],
|
|
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"
|
|
36349
|
+
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
36350
|
}]
|
|
34797
36351
|
}],
|
|
34798
36352
|
propDecorators: { topTpl: [{
|
|
@@ -34866,7 +36420,7 @@ var ListMasonryGridComponent = class ListMasonryGridComponent extends ListBaseCo
|
|
|
34866
36420
|
}],
|
|
34867
36421
|
usesInheritance: true,
|
|
34868
36422
|
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",
|
|
36423
|
+
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
36424
|
dependencies: [
|
|
34871
36425
|
{
|
|
34872
36426
|
kind: "component",
|
|
@@ -34913,6 +36467,11 @@ var ListMasonryGridComponent = class ListMasonryGridComponent extends ListBaseCo
|
|
|
34913
36467
|
kind: "pipe",
|
|
34914
36468
|
type: ListCellPipe,
|
|
34915
36469
|
name: "smartListCell"
|
|
36470
|
+
},
|
|
36471
|
+
{
|
|
36472
|
+
kind: "pipe",
|
|
36473
|
+
type: TranslatePipe,
|
|
36474
|
+
name: "translate"
|
|
34916
36475
|
}
|
|
34917
36476
|
],
|
|
34918
36477
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
@@ -34934,9 +36493,10 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
34934
36493
|
PagingComponent,
|
|
34935
36494
|
FileUrlPipe,
|
|
34936
36495
|
NgOptimizedImage,
|
|
34937
|
-
ListCellPipe
|
|
36496
|
+
ListCellPipe,
|
|
36497
|
+
TranslatePipe
|
|
34938
36498
|
],
|
|
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"
|
|
36499
|
+
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
36500
|
}]
|
|
34941
36501
|
}],
|
|
34942
36502
|
propDecorators: { topTpl: [{
|
|
@@ -34995,7 +36555,7 @@ var ListMobileComponent = class ListMobileComponent extends ListBaseComponent {
|
|
|
34995
36555
|
}],
|
|
34996
36556
|
usesInheritance: true,
|
|
34997
36557
|
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",
|
|
36558
|
+
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
36559
|
dependencies: [
|
|
35000
36560
|
{
|
|
35001
36561
|
kind: "ngmodule",
|
|
@@ -35047,7 +36607,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
35047
36607
|
PagingComponent,
|
|
35048
36608
|
ListCellPipe
|
|
35049
36609
|
],
|
|
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"
|
|
36610
|
+
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
36611
|
}]
|
|
35052
36612
|
}],
|
|
35053
36613
|
propDecorators: { topTpl: [{
|
|
@@ -35224,6 +36784,20 @@ const HEADER_CELL = [
|
|
|
35224
36784
|
"smart:dark:text-gray-400",
|
|
35225
36785
|
"smart:uppercase"
|
|
35226
36786
|
];
|
|
36787
|
+
const SORT_BUTTON = [
|
|
36788
|
+
"smart:inline-flex",
|
|
36789
|
+
"smart:items-center",
|
|
36790
|
+
"smart:gap-x-1",
|
|
36791
|
+
"smart:uppercase",
|
|
36792
|
+
"smart:font-medium",
|
|
36793
|
+
"smart:text-gray-500",
|
|
36794
|
+
"smart:hover:text-gray-800",
|
|
36795
|
+
"smart:dark:text-gray-400",
|
|
36796
|
+
"smart:dark:hover:text-gray-200",
|
|
36797
|
+
"smart:focus:outline-hidden",
|
|
36798
|
+
"smart:focus-visible:underline"
|
|
36799
|
+
];
|
|
36800
|
+
const SORT_INDICATOR = ["smart:text-gray-400", "smart:dark:text-gray-500"];
|
|
35227
36801
|
const HEADER_ROW_MUTED = ["smart:bg-gray-50", "smart:dark:bg-gray-800"];
|
|
35228
36802
|
const HEADER_ROW_HIDDEN = ["smart:hidden"];
|
|
35229
36803
|
const CELL = [
|
|
@@ -35259,6 +36833,12 @@ function getListDesktopHeaderRowClasses(header = "default") {
|
|
|
35259
36833
|
function getListDesktopHeaderCellClasses() {
|
|
35260
36834
|
return HEADER_CELL.join(" ");
|
|
35261
36835
|
}
|
|
36836
|
+
function getListDesktopSortButtonClasses() {
|
|
36837
|
+
return SORT_BUTTON.join(" ");
|
|
36838
|
+
}
|
|
36839
|
+
function getListDesktopSortIndicatorClasses() {
|
|
36840
|
+
return SORT_INDICATOR.join(" ");
|
|
36841
|
+
}
|
|
35262
36842
|
function getListDesktopRowClasses(variant = "default", hoverable = false) {
|
|
35263
36843
|
const classes = [];
|
|
35264
36844
|
if (variant === "striped") classes.push(...ROW_STRIPED);
|
|
@@ -35276,6 +36856,8 @@ var ListDesktopPresetComponent = class ListDesktopPresetComponent extends ListDe
|
|
|
35276
36856
|
headerCellClasses = computed(() => getListDesktopHeaderCellClasses(), ...ngDevMode ? [{ debugName: "headerCellClasses" }] : /* istanbul ignore next */ []);
|
|
35277
36857
|
rowClasses = computed(() => getListDesktopRowClasses(this.presentation().variant, Boolean(this.presentation().hoverable)), ...ngDevMode ? [{ debugName: "rowClasses" }] : /* istanbul ignore next */ []);
|
|
35278
36858
|
cellClasses = computed(() => getListDesktopCellClasses(), ...ngDevMode ? [{ debugName: "cellClasses" }] : /* istanbul ignore next */ []);
|
|
36859
|
+
sortButtonClasses = getListDesktopSortButtonClasses();
|
|
36860
|
+
sortIndicatorClasses = getListDesktopSortIndicatorClasses();
|
|
35279
36861
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
35280
36862
|
minVersion: "12.0.0",
|
|
35281
36863
|
version: "22.2.2",
|
|
@@ -35292,7 +36874,7 @@ var ListDesktopPresetComponent = class ListDesktopPresetComponent extends ListDe
|
|
|
35292
36874
|
selector: "smart-list-desktop-preset",
|
|
35293
36875
|
usesInheritance: true,
|
|
35294
36876
|
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
|
|
36877
|
+
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
36878
|
dependencies: [
|
|
35297
36879
|
{
|
|
35298
36880
|
kind: "directive",
|
|
@@ -35460,7 +37042,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
35460
37042
|
CdkHeaderRowDef,
|
|
35461
37043
|
CdkRowDef
|
|
35462
37044
|
],
|
|
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
|
|
37045
|
+
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
37046
|
}]
|
|
35465
37047
|
}]
|
|
35466
37048
|
});
|
|
@@ -35490,7 +37072,7 @@ var ListMasonryGridPresetComponent = class ListMasonryGridPresetComponent extend
|
|
|
35490
37072
|
selector: "smart-list-masonry-grid-preset",
|
|
35491
37073
|
usesInheritance: true,
|
|
35492
37074
|
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",
|
|
37075
|
+
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
37076
|
dependencies: [
|
|
35495
37077
|
{
|
|
35496
37078
|
kind: "component",
|
|
@@ -35537,6 +37119,11 @@ var ListMasonryGridPresetComponent = class ListMasonryGridPresetComponent extend
|
|
|
35537
37119
|
kind: "pipe",
|
|
35538
37120
|
type: ListCellPipe,
|
|
35539
37121
|
name: "smartListCell"
|
|
37122
|
+
},
|
|
37123
|
+
{
|
|
37124
|
+
kind: "pipe",
|
|
37125
|
+
type: TranslatePipe,
|
|
37126
|
+
name: "translate"
|
|
35540
37127
|
}
|
|
35541
37128
|
],
|
|
35542
37129
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
@@ -35558,9 +37145,10 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
35558
37145
|
PagingComponent,
|
|
35559
37146
|
FileUrlPipe,
|
|
35560
37147
|
NgOptimizedImage,
|
|
35561
|
-
ListCellPipe
|
|
37148
|
+
ListCellPipe,
|
|
37149
|
+
TranslatePipe
|
|
35562
37150
|
],
|
|
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"
|
|
37151
|
+
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
37152
|
}]
|
|
35565
37153
|
}]
|
|
35566
37154
|
});
|
|
@@ -35602,7 +37190,7 @@ var ListMobilePresetComponent = class ListMobilePresetComponent extends ListMobi
|
|
|
35602
37190
|
selector: "smart-list-mobile-preset",
|
|
35603
37191
|
usesInheritance: true,
|
|
35604
37192
|
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",
|
|
37193
|
+
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
37194
|
dependencies: [
|
|
35607
37195
|
{
|
|
35608
37196
|
kind: "ngmodule",
|
|
@@ -35677,7 +37265,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
35677
37265
|
ListCellPipe,
|
|
35678
37266
|
FileUrlPipe
|
|
35679
37267
|
],
|
|
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"
|
|
37268
|
+
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
37269
|
}]
|
|
35682
37270
|
}]
|
|
35683
37271
|
});
|
|
@@ -36384,196 +37972,18 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
36384
37972
|
}]
|
|
36385
37973
|
}] }
|
|
36386
37974
|
});
|
|
36387
|
-
|
|
36388
|
-
|
|
36389
|
-
|
|
36390
|
-
|
|
36391
|
-
|
|
36392
|
-
|
|
36393
|
-
|
|
36394
|
-
|
|
36395
|
-
|
|
36396
|
-
|
|
36397
|
-
|
|
36398
|
-
|
|
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 ×\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 ×\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
|
-
});
|
|
37975
|
+
const openLayers = [];
|
|
37976
|
+
function openEscapeLayer(layer) {
|
|
37977
|
+
closeEscapeLayer(layer);
|
|
37978
|
+
openLayers.push(layer);
|
|
37979
|
+
}
|
|
37980
|
+
function closeEscapeLayer(layer) {
|
|
37981
|
+
const index = openLayers.indexOf(layer);
|
|
37982
|
+
if (index !== -1) openLayers.splice(index, 1);
|
|
37983
|
+
}
|
|
37984
|
+
function isTopEscapeLayer(layer) {
|
|
37985
|
+
return openLayers[openLayers.length - 1] === layer;
|
|
37986
|
+
}
|
|
36577
37987
|
const MODAL_BACKDROP = [
|
|
36578
37988
|
"smart:fixed",
|
|
36579
37989
|
"smart:inset-0",
|
|
@@ -36584,11 +37994,18 @@ const MODAL_BACKDROP = [
|
|
|
36584
37994
|
"smart:dark:bg-gray-900/80"
|
|
36585
37995
|
].join(" ");
|
|
36586
37996
|
const WRAPPER_BASE = ["smart:m-3", "smart:sm:mx-auto"].join(" ");
|
|
37997
|
+
const WRAPPER_BOTTOM_SHEET = [
|
|
37998
|
+
"smart:fixed",
|
|
37999
|
+
"smart:inset-x-0",
|
|
38000
|
+
"smart:bottom-0",
|
|
38001
|
+
"smart:sm:mx-auto"
|
|
38002
|
+
].join(" ");
|
|
36587
38003
|
const WRAPPER_WIDTH_BY_VARIANT = {
|
|
36588
38004
|
centered: "smart:sm:max-w-lg smart:sm:w-full",
|
|
36589
38005
|
wide: "smart:lg:max-w-4xl smart:lg:w-full",
|
|
36590
38006
|
alert: "smart:sm:max-w-md smart:sm:w-full",
|
|
36591
|
-
"left-aligned-buttons": "smart:sm:max-w-lg smart:sm:w-full"
|
|
38007
|
+
"left-aligned-buttons": "smart:sm:max-w-lg smart:sm:w-full",
|
|
38008
|
+
"bottom-sheet": "smart:w-full smart:sm:max-w-2xl"
|
|
36592
38009
|
};
|
|
36593
38010
|
const WRAPPER_CENTERED = [
|
|
36594
38011
|
"smart:min-h-[calc(100%-56px)]",
|
|
@@ -36607,6 +38024,22 @@ const PANEL_BASE = [
|
|
|
36607
38024
|
"smart:rounded-xl",
|
|
36608
38025
|
"smart:pointer-events-auto"
|
|
36609
38026
|
].join(" ");
|
|
38027
|
+
const PANEL_BOTTOM_SHEET = [
|
|
38028
|
+
"smart:flex",
|
|
38029
|
+
"smart:flex-col",
|
|
38030
|
+
"smart:w-full",
|
|
38031
|
+
"smart:max-h-[85dvh]",
|
|
38032
|
+
"smart:pb-[env(safe-area-inset-bottom)]",
|
|
38033
|
+
"smart:bg-white",
|
|
38034
|
+
"smart:dark:bg-gray-800",
|
|
38035
|
+
"smart:border-t",
|
|
38036
|
+
"smart:sm:border-x",
|
|
38037
|
+
"smart:border-gray-200",
|
|
38038
|
+
"smart:dark:border-gray-700",
|
|
38039
|
+
"smart:shadow-lg",
|
|
38040
|
+
"smart:sm:rounded-t-xl",
|
|
38041
|
+
"smart:pointer-events-auto"
|
|
38042
|
+
].join(" ");
|
|
36610
38043
|
const MODAL_HEADER = [
|
|
36611
38044
|
"smart:flex",
|
|
36612
38045
|
"smart:justify-between",
|
|
@@ -36658,11 +38091,8 @@ const FOOTER_BASE = [
|
|
|
36658
38091
|
"smart:border-gray-200",
|
|
36659
38092
|
"smart:dark:border-gray-700"
|
|
36660
38093
|
].join(" ");
|
|
36661
|
-
const FOOTER_GRAY = [
|
|
36662
|
-
|
|
36663
|
-
"smart:dark:bg-gray-800/50",
|
|
36664
|
-
"smart:rounded-b-xl"
|
|
36665
|
-
].join(" ");
|
|
38094
|
+
const FOOTER_GRAY = ["smart:bg-gray-50", "smart:dark:bg-gray-800/50"].join(" ");
|
|
38095
|
+
const FOOTER_GRAY_ROUNDED = "smart:rounded-b-xl";
|
|
36666
38096
|
const ACTION_BASE$1 = [
|
|
36667
38097
|
"smart:py-2",
|
|
36668
38098
|
"smart:px-3",
|
|
@@ -36684,21 +38114,28 @@ const ACTION_BY_VARIANT$1 = {
|
|
|
36684
38114
|
function isCentered(variant) {
|
|
36685
38115
|
return variant === "centered" || variant === "alert";
|
|
36686
38116
|
}
|
|
38117
|
+
function isBottomSheet(variant) {
|
|
38118
|
+
return variant === "bottom-sheet";
|
|
38119
|
+
}
|
|
36687
38120
|
function getModalWrapperClasses(variant) {
|
|
36688
38121
|
return [
|
|
36689
|
-
WRAPPER_BASE,
|
|
38122
|
+
isBottomSheet(variant) ? WRAPPER_BOTTOM_SHEET : WRAPPER_BASE,
|
|
36690
38123
|
WRAPPER_WIDTH_BY_VARIANT[variant],
|
|
36691
38124
|
isCentered(variant) ? WRAPPER_CENTERED : ""
|
|
36692
38125
|
].filter(Boolean).join(" ");
|
|
36693
38126
|
}
|
|
36694
38127
|
function getModalPanelClasses(variant) {
|
|
38128
|
+
if (isBottomSheet(variant)) return PANEL_BOTTOM_SHEET;
|
|
36695
38129
|
return [PANEL_BASE, isCentered(variant) ? "smart:w-full" : ""].filter(Boolean).join(" ");
|
|
36696
38130
|
}
|
|
36697
38131
|
function getModalFooterClasses(variant, footerStyle) {
|
|
38132
|
+
const alignment = variant === "left-aligned-buttons" ? "smart:justify-start" : "smart:justify-end";
|
|
38133
|
+
const gray = footerStyle === "gray";
|
|
36698
38134
|
return [
|
|
36699
38135
|
FOOTER_BASE,
|
|
36700
|
-
|
|
36701
|
-
|
|
38136
|
+
alignment,
|
|
38137
|
+
gray ? FOOTER_GRAY : "",
|
|
38138
|
+
gray && !isBottomSheet(variant) ? FOOTER_GRAY_ROUNDED : ""
|
|
36702
38139
|
].filter(Boolean).join(" ");
|
|
36703
38140
|
}
|
|
36704
38141
|
function getModalActionClasses(variant = "primary") {
|
|
@@ -36724,15 +38161,23 @@ var ModalPresetComponent = class ModalPresetComponent extends ModalBaseComponent
|
|
|
36724
38161
|
onBackdropClick(event) {
|
|
36725
38162
|
if (event.target === event.currentTarget) this.close();
|
|
36726
38163
|
}
|
|
38164
|
+
constructor() {
|
|
38165
|
+
super();
|
|
38166
|
+
effect(() => {
|
|
38167
|
+
if (this.open()) openEscapeLayer(this);
|
|
38168
|
+
else closeEscapeLayer(this);
|
|
38169
|
+
});
|
|
38170
|
+
inject(DestroyRef).onDestroy(() => closeEscapeLayer(this));
|
|
38171
|
+
}
|
|
36727
38172
|
onEscape() {
|
|
36728
|
-
if (this.open()) this.close();
|
|
38173
|
+
if (this.open() && isTopEscapeLayer(this)) this.close();
|
|
36729
38174
|
}
|
|
36730
38175
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
36731
38176
|
minVersion: "12.0.0",
|
|
36732
38177
|
version: "22.2.2",
|
|
36733
38178
|
ngImport: i0,
|
|
36734
38179
|
type: ModalPresetComponent,
|
|
36735
|
-
deps:
|
|
38180
|
+
deps: [],
|
|
36736
38181
|
target: i0.ɵɵFactoryTarget.Component
|
|
36737
38182
|
});
|
|
36738
38183
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
@@ -36771,6 +38216,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
36771
38216
|
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
38217
|
}]
|
|
36773
38218
|
}],
|
|
38219
|
+
ctorParameters: () => [],
|
|
36774
38220
|
propDecorators: { cssClass: [{
|
|
36775
38221
|
type: i0.Input,
|
|
36776
38222
|
args: [{
|
|
@@ -36780,292 +38226,6 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
36780
38226
|
}]
|
|
36781
38227
|
}] }
|
|
36782
38228
|
});
|
|
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
38229
|
var MultiColumnLayoutBaseComponent = class MultiColumnLayoutBaseComponent {
|
|
37070
38230
|
static smartType = "multi-column-layout";
|
|
37071
38231
|
options = input(...ngDevMode ? [void 0, { debugName: "options" }] : /* istanbul ignore next */ []);
|
|
@@ -38068,223 +39228,6 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
38068
39228
|
}]
|
|
38069
39229
|
}
|
|
38070
39230
|
});
|
|
38071
|
-
var NotificationBaseComponent = class NotificationBaseComponent {
|
|
38072
|
-
static smartType = "notification";
|
|
38073
|
-
title = input.required(...ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []);
|
|
38074
|
-
description = input(...ngDevMode ? [void 0, { debugName: "description" }] : /* istanbul ignore next */ []);
|
|
38075
|
-
iconName = input(...ngDevMode ? [void 0, { debugName: "iconName" }] : /* istanbul ignore next */ []);
|
|
38076
|
-
avatarUrl = input(...ngDevMode ? [void 0, { debugName: "avatarUrl" }] : /* istanbul ignore next */ []);
|
|
38077
|
-
actions = input([], ...ngDevMode ? [{ debugName: "actions" }] : /* istanbul ignore next */ []);
|
|
38078
|
-
dismissible = input(false, ...ngDevMode ? [{ debugName: "dismissible" }] : /* istanbul ignore next */ []);
|
|
38079
|
-
options = input(...ngDevMode ? [void 0, { debugName: "options" }] : /* istanbul ignore next */ []);
|
|
38080
|
-
cssClass = input("", {
|
|
38081
|
-
...ngDevMode ? { debugName: "cssClass" } : /* istanbul ignore next */ {},
|
|
38082
|
-
alias: "class"
|
|
38083
|
-
});
|
|
38084
|
-
dismissed = output();
|
|
38085
|
-
actionClick = output();
|
|
38086
|
-
dismiss() {
|
|
38087
|
-
this.dismissed.emit();
|
|
38088
|
-
}
|
|
38089
|
-
invokeAction(actionId) {
|
|
38090
|
-
this.actionClick.emit({ actionId });
|
|
38091
|
-
}
|
|
38092
|
-
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
38093
|
-
minVersion: "12.0.0",
|
|
38094
|
-
version: "22.2.2",
|
|
38095
|
-
ngImport: i0,
|
|
38096
|
-
type: NotificationBaseComponent,
|
|
38097
|
-
deps: [],
|
|
38098
|
-
target: i0.ɵɵFactoryTarget.Directive
|
|
38099
|
-
});
|
|
38100
|
-
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
38101
|
-
minVersion: "17.1.0",
|
|
38102
|
-
version: "22.2.2",
|
|
38103
|
-
type: NotificationBaseComponent,
|
|
38104
|
-
isStandalone: true,
|
|
38105
|
-
inputs: {
|
|
38106
|
-
title: {
|
|
38107
|
-
classPropertyName: "title",
|
|
38108
|
-
publicName: "title",
|
|
38109
|
-
isSignal: true,
|
|
38110
|
-
isRequired: true,
|
|
38111
|
-
transformFunction: null
|
|
38112
|
-
},
|
|
38113
|
-
description: {
|
|
38114
|
-
classPropertyName: "description",
|
|
38115
|
-
publicName: "description",
|
|
38116
|
-
isSignal: true,
|
|
38117
|
-
isRequired: false,
|
|
38118
|
-
transformFunction: null
|
|
38119
|
-
},
|
|
38120
|
-
iconName: {
|
|
38121
|
-
classPropertyName: "iconName",
|
|
38122
|
-
publicName: "iconName",
|
|
38123
|
-
isSignal: true,
|
|
38124
|
-
isRequired: false,
|
|
38125
|
-
transformFunction: null
|
|
38126
|
-
},
|
|
38127
|
-
avatarUrl: {
|
|
38128
|
-
classPropertyName: "avatarUrl",
|
|
38129
|
-
publicName: "avatarUrl",
|
|
38130
|
-
isSignal: true,
|
|
38131
|
-
isRequired: false,
|
|
38132
|
-
transformFunction: null
|
|
38133
|
-
},
|
|
38134
|
-
actions: {
|
|
38135
|
-
classPropertyName: "actions",
|
|
38136
|
-
publicName: "actions",
|
|
38137
|
-
isSignal: true,
|
|
38138
|
-
isRequired: false,
|
|
38139
|
-
transformFunction: null
|
|
38140
|
-
},
|
|
38141
|
-
dismissible: {
|
|
38142
|
-
classPropertyName: "dismissible",
|
|
38143
|
-
publicName: "dismissible",
|
|
38144
|
-
isSignal: true,
|
|
38145
|
-
isRequired: false,
|
|
38146
|
-
transformFunction: null
|
|
38147
|
-
},
|
|
38148
|
-
options: {
|
|
38149
|
-
classPropertyName: "options",
|
|
38150
|
-
publicName: "options",
|
|
38151
|
-
isSignal: true,
|
|
38152
|
-
isRequired: false,
|
|
38153
|
-
transformFunction: null
|
|
38154
|
-
},
|
|
38155
|
-
cssClass: {
|
|
38156
|
-
classPropertyName: "cssClass",
|
|
38157
|
-
publicName: "class",
|
|
38158
|
-
isSignal: true,
|
|
38159
|
-
isRequired: false,
|
|
38160
|
-
transformFunction: null
|
|
38161
|
-
}
|
|
38162
|
-
},
|
|
38163
|
-
outputs: {
|
|
38164
|
-
dismissed: "dismissed",
|
|
38165
|
-
actionClick: "actionClick"
|
|
38166
|
-
},
|
|
38167
|
-
ngImport: i0
|
|
38168
|
-
});
|
|
38169
|
-
};
|
|
38170
|
-
i0.ɵɵngDeclareClassMetadata({
|
|
38171
|
-
minVersion: "12.0.0",
|
|
38172
|
-
version: "22.2.2",
|
|
38173
|
-
ngImport: i0,
|
|
38174
|
-
type: NotificationBaseComponent,
|
|
38175
|
-
decorators: [{ type: Directive }],
|
|
38176
|
-
propDecorators: {
|
|
38177
|
-
title: [{
|
|
38178
|
-
type: i0.Input,
|
|
38179
|
-
args: [{
|
|
38180
|
-
isSignal: true,
|
|
38181
|
-
alias: "title",
|
|
38182
|
-
required: true
|
|
38183
|
-
}]
|
|
38184
|
-
}],
|
|
38185
|
-
description: [{
|
|
38186
|
-
type: i0.Input,
|
|
38187
|
-
args: [{
|
|
38188
|
-
isSignal: true,
|
|
38189
|
-
alias: "description",
|
|
38190
|
-
required: false
|
|
38191
|
-
}]
|
|
38192
|
-
}],
|
|
38193
|
-
iconName: [{
|
|
38194
|
-
type: i0.Input,
|
|
38195
|
-
args: [{
|
|
38196
|
-
isSignal: true,
|
|
38197
|
-
alias: "iconName",
|
|
38198
|
-
required: false
|
|
38199
|
-
}]
|
|
38200
|
-
}],
|
|
38201
|
-
avatarUrl: [{
|
|
38202
|
-
type: i0.Input,
|
|
38203
|
-
args: [{
|
|
38204
|
-
isSignal: true,
|
|
38205
|
-
alias: "avatarUrl",
|
|
38206
|
-
required: false
|
|
38207
|
-
}]
|
|
38208
|
-
}],
|
|
38209
|
-
actions: [{
|
|
38210
|
-
type: i0.Input,
|
|
38211
|
-
args: [{
|
|
38212
|
-
isSignal: true,
|
|
38213
|
-
alias: "actions",
|
|
38214
|
-
required: false
|
|
38215
|
-
}]
|
|
38216
|
-
}],
|
|
38217
|
-
dismissible: [{
|
|
38218
|
-
type: i0.Input,
|
|
38219
|
-
args: [{
|
|
38220
|
-
isSignal: true,
|
|
38221
|
-
alias: "dismissible",
|
|
38222
|
-
required: false
|
|
38223
|
-
}]
|
|
38224
|
-
}],
|
|
38225
|
-
options: [{
|
|
38226
|
-
type: i0.Input,
|
|
38227
|
-
args: [{
|
|
38228
|
-
isSignal: true,
|
|
38229
|
-
alias: "options",
|
|
38230
|
-
required: false
|
|
38231
|
-
}]
|
|
38232
|
-
}],
|
|
38233
|
-
cssClass: [{
|
|
38234
|
-
type: i0.Input,
|
|
38235
|
-
args: [{
|
|
38236
|
-
isSignal: true,
|
|
38237
|
-
alias: "class",
|
|
38238
|
-
required: false
|
|
38239
|
-
}]
|
|
38240
|
-
}],
|
|
38241
|
-
dismissed: [{
|
|
38242
|
-
type: i0.Output,
|
|
38243
|
-
args: ["dismissed"]
|
|
38244
|
-
}],
|
|
38245
|
-
actionClick: [{
|
|
38246
|
-
type: i0.Output,
|
|
38247
|
-
args: ["actionClick"]
|
|
38248
|
-
}]
|
|
38249
|
-
}
|
|
38250
|
-
});
|
|
38251
|
-
var NotificationStandardComponent = class NotificationStandardComponent extends NotificationBaseComponent {
|
|
38252
|
-
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
38253
|
-
minVersion: "12.0.0",
|
|
38254
|
-
version: "22.2.2",
|
|
38255
|
-
ngImport: i0,
|
|
38256
|
-
type: NotificationStandardComponent,
|
|
38257
|
-
deps: null,
|
|
38258
|
-
target: i0.ɵɵFactoryTarget.Component
|
|
38259
|
-
});
|
|
38260
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
38261
|
-
minVersion: "17.0.0",
|
|
38262
|
-
version: "22.2.2",
|
|
38263
|
-
type: NotificationStandardComponent,
|
|
38264
|
-
isStandalone: true,
|
|
38265
|
-
selector: "smart-notification-standard",
|
|
38266
|
-
usesInheritance: true,
|
|
38267
|
-
ngImport: i0,
|
|
38268
|
-
template: "<div\n role=\"status\"\n [attr.aria-live]=\"options()?.ariaLive ?? 'polite'\"\n [class]=\"cssClass()\"\n>\n <h3>{{ title() }}</h3>\n @if (description()) {\n <p>{{ description() }}</p>\n }\n @if (dismissible()) {\n <button type=\"button\" aria-label=\"Close\" (click)=\"dismiss()\">\n ×\n </button>\n }\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</div>\n",
|
|
38269
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
38270
|
-
encapsulation: i0.ViewEncapsulation.None
|
|
38271
|
-
});
|
|
38272
|
-
};
|
|
38273
|
-
i0.ɵɵngDeclareClassMetadata({
|
|
38274
|
-
minVersion: "12.0.0",
|
|
38275
|
-
version: "22.2.2",
|
|
38276
|
-
ngImport: i0,
|
|
38277
|
-
type: NotificationStandardComponent,
|
|
38278
|
-
decorators: [{
|
|
38279
|
-
type: Component,
|
|
38280
|
-
args: [{
|
|
38281
|
-
selector: "smart-notification-standard",
|
|
38282
|
-
encapsulation: ViewEncapsulation.None,
|
|
38283
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
38284
|
-
template: "<div\n role=\"status\"\n [attr.aria-live]=\"options()?.ariaLive ?? 'polite'\"\n [class]=\"cssClass()\"\n>\n <h3>{{ title() }}</h3>\n @if (description()) {\n <p>{{ description() }}</p>\n }\n @if (dismissible()) {\n <button type=\"button\" aria-label=\"Close\" (click)=\"dismiss()\">\n ×\n </button>\n }\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</div>\n"
|
|
38285
|
-
}]
|
|
38286
|
-
}]
|
|
38287
|
-
});
|
|
38288
39231
|
const CONTAINER$4 = [
|
|
38289
39232
|
"smart:max-w-xs",
|
|
38290
39233
|
"smart:w-full",
|
|
@@ -38429,10 +39372,10 @@ function getNotificationActionClasses(variant, actionVariant) {
|
|
|
38429
39372
|
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
39373
|
return actionVariant === "secondary" ? ACTION_LINK_SECONDARY : ACTION_LINK_PRIMARY;
|
|
38431
39374
|
}
|
|
38432
|
-
let nextId$
|
|
39375
|
+
let nextId$3 = 0;
|
|
38433
39376
|
var NotificationPresetComponent = class NotificationPresetComponent extends NotificationBaseComponent {
|
|
38434
39377
|
cssClass = input("", ...ngDevMode ? [{ debugName: "cssClass" }] : /* istanbul ignore next */ []);
|
|
38435
|
-
labelId = `smart-notification-preset-${nextId$
|
|
39378
|
+
labelId = `smart-notification-preset-${nextId$3++}`;
|
|
38436
39379
|
variant = computed(() => this.options()?.variant ?? "simple", ...ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []);
|
|
38437
39380
|
ariaLive = computed(() => this.options()?.ariaLive ?? "polite", ...ngDevMode ? [{ debugName: "ariaLive" }] : /* istanbul ignore next */ []);
|
|
38438
39381
|
containerClasses = computed(() => getNotificationContainerClasses(), ...ngDevMode ? [{ debugName: "containerClasses" }] : /* istanbul ignore next */ []);
|
|
@@ -38498,282 +39441,6 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
38498
39441
|
}]
|
|
38499
39442
|
}] }
|
|
38500
39443
|
});
|
|
38501
|
-
var NotificationComponent = class NotificationComponent {
|
|
38502
|
-
injectedComponent = inject(NOTIFICATION_STANDARD_COMPONENT_TOKEN, { optional: true });
|
|
38503
|
-
title = input.required(...ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []);
|
|
38504
|
-
description = input(...ngDevMode ? [void 0, { debugName: "description" }] : /* istanbul ignore next */ []);
|
|
38505
|
-
iconName = input(...ngDevMode ? [void 0, { debugName: "iconName" }] : /* istanbul ignore next */ []);
|
|
38506
|
-
avatarUrl = input(...ngDevMode ? [void 0, { debugName: "avatarUrl" }] : /* istanbul ignore next */ []);
|
|
38507
|
-
actions = input([], ...ngDevMode ? [{ debugName: "actions" }] : /* istanbul ignore next */ []);
|
|
38508
|
-
dismissible = input(false, ...ngDevMode ? [{ debugName: "dismissible" }] : /* istanbul ignore next */ []);
|
|
38509
|
-
options = input(...ngDevMode ? [void 0, { debugName: "options" }] : /* istanbul ignore next */ []);
|
|
38510
|
-
cssClass = input("", {
|
|
38511
|
-
...ngDevMode ? { debugName: "cssClass" } : /* istanbul ignore next */ {},
|
|
38512
|
-
alias: "class"
|
|
38513
|
-
});
|
|
38514
|
-
dismissed = output();
|
|
38515
|
-
actionClick = output();
|
|
38516
|
-
componentType = computed(() => this.injectedComponent ?? null, ...ngDevMode ? [{ debugName: "componentType" }] : /* istanbul ignore next */ []);
|
|
38517
|
-
componentInputs = computed(() => outletInputs(this.componentType(), {
|
|
38518
|
-
title: this.title(),
|
|
38519
|
-
description: this.description(),
|
|
38520
|
-
iconName: this.iconName(),
|
|
38521
|
-
avatarUrl: this.avatarUrl(),
|
|
38522
|
-
actions: this.actions(),
|
|
38523
|
-
dismissible: this.dismissible(),
|
|
38524
|
-
options: this.options(),
|
|
38525
|
-
cssClass: this.cssClass()
|
|
38526
|
-
}), ...ngDevMode ? [{ debugName: "componentInputs" }] : /* istanbul ignore next */ []);
|
|
38527
|
-
outlet = viewChild(NgComponentOutlet, ...ngDevMode ? [{ debugName: "outlet" }] : /* istanbul ignore next */ []);
|
|
38528
|
-
constructor() {
|
|
38529
|
-
forwardOutletOutputs(this.outlet, {
|
|
38530
|
-
dismissed: this.dismissed,
|
|
38531
|
-
actionClick: this.actionClick
|
|
38532
|
-
});
|
|
38533
|
-
}
|
|
38534
|
-
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
38535
|
-
minVersion: "12.0.0",
|
|
38536
|
-
version: "22.2.2",
|
|
38537
|
-
ngImport: i0,
|
|
38538
|
-
type: NotificationComponent,
|
|
38539
|
-
deps: [],
|
|
38540
|
-
target: i0.ɵɵFactoryTarget.Component
|
|
38541
|
-
});
|
|
38542
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
38543
|
-
minVersion: "17.0.0",
|
|
38544
|
-
version: "22.2.2",
|
|
38545
|
-
type: NotificationComponent,
|
|
38546
|
-
isStandalone: true,
|
|
38547
|
-
selector: "smart-notification",
|
|
38548
|
-
inputs: {
|
|
38549
|
-
title: {
|
|
38550
|
-
classPropertyName: "title",
|
|
38551
|
-
publicName: "title",
|
|
38552
|
-
isSignal: true,
|
|
38553
|
-
isRequired: true,
|
|
38554
|
-
transformFunction: null
|
|
38555
|
-
},
|
|
38556
|
-
description: {
|
|
38557
|
-
classPropertyName: "description",
|
|
38558
|
-
publicName: "description",
|
|
38559
|
-
isSignal: true,
|
|
38560
|
-
isRequired: false,
|
|
38561
|
-
transformFunction: null
|
|
38562
|
-
},
|
|
38563
|
-
iconName: {
|
|
38564
|
-
classPropertyName: "iconName",
|
|
38565
|
-
publicName: "iconName",
|
|
38566
|
-
isSignal: true,
|
|
38567
|
-
isRequired: false,
|
|
38568
|
-
transformFunction: null
|
|
38569
|
-
},
|
|
38570
|
-
avatarUrl: {
|
|
38571
|
-
classPropertyName: "avatarUrl",
|
|
38572
|
-
publicName: "avatarUrl",
|
|
38573
|
-
isSignal: true,
|
|
38574
|
-
isRequired: false,
|
|
38575
|
-
transformFunction: null
|
|
38576
|
-
},
|
|
38577
|
-
actions: {
|
|
38578
|
-
classPropertyName: "actions",
|
|
38579
|
-
publicName: "actions",
|
|
38580
|
-
isSignal: true,
|
|
38581
|
-
isRequired: false,
|
|
38582
|
-
transformFunction: null
|
|
38583
|
-
},
|
|
38584
|
-
dismissible: {
|
|
38585
|
-
classPropertyName: "dismissible",
|
|
38586
|
-
publicName: "dismissible",
|
|
38587
|
-
isSignal: true,
|
|
38588
|
-
isRequired: false,
|
|
38589
|
-
transformFunction: null
|
|
38590
|
-
},
|
|
38591
|
-
options: {
|
|
38592
|
-
classPropertyName: "options",
|
|
38593
|
-
publicName: "options",
|
|
38594
|
-
isSignal: true,
|
|
38595
|
-
isRequired: false,
|
|
38596
|
-
transformFunction: null
|
|
38597
|
-
},
|
|
38598
|
-
cssClass: {
|
|
38599
|
-
classPropertyName: "cssClass",
|
|
38600
|
-
publicName: "class",
|
|
38601
|
-
isSignal: true,
|
|
38602
|
-
isRequired: false,
|
|
38603
|
-
transformFunction: null
|
|
38604
|
-
}
|
|
38605
|
-
},
|
|
38606
|
-
outputs: {
|
|
38607
|
-
dismissed: "dismissed",
|
|
38608
|
-
actionClick: "actionClick"
|
|
38609
|
-
},
|
|
38610
|
-
host: { classAttribute: "smart:contents" },
|
|
38611
|
-
viewQueries: [{
|
|
38612
|
-
propertyName: "outlet",
|
|
38613
|
-
first: true,
|
|
38614
|
-
predicate: NgComponentOutlet,
|
|
38615
|
-
descendants: true,
|
|
38616
|
-
isSignal: true
|
|
38617
|
-
}],
|
|
38618
|
-
ngImport: i0,
|
|
38619
|
-
template: `
|
|
38620
|
-
@if (componentType()) {
|
|
38621
|
-
<ng-container
|
|
38622
|
-
*ngComponentOutlet="componentType(); inputs: componentInputs()"
|
|
38623
|
-
/>
|
|
38624
|
-
} @else {
|
|
38625
|
-
<smart-notification-standard
|
|
38626
|
-
[title]="title()"
|
|
38627
|
-
[description]="description()"
|
|
38628
|
-
[iconName]="iconName()"
|
|
38629
|
-
[avatarUrl]="avatarUrl()"
|
|
38630
|
-
[actions]="actions()"
|
|
38631
|
-
[dismissible]="dismissible()"
|
|
38632
|
-
[options]="options()"
|
|
38633
|
-
[class]="cssClass()"
|
|
38634
|
-
(dismissed)="dismissed.emit()"
|
|
38635
|
-
(actionClick)="actionClick.emit($event)"
|
|
38636
|
-
/>
|
|
38637
|
-
}
|
|
38638
|
-
`,
|
|
38639
|
-
isInline: true,
|
|
38640
|
-
dependencies: [{
|
|
38641
|
-
kind: "component",
|
|
38642
|
-
type: NotificationStandardComponent,
|
|
38643
|
-
selector: "smart-notification-standard"
|
|
38644
|
-
}, {
|
|
38645
|
-
kind: "directive",
|
|
38646
|
-
type: NgComponentOutlet,
|
|
38647
|
-
selector: "[ngComponentOutlet]",
|
|
38648
|
-
inputs: [
|
|
38649
|
-
"ngComponentOutlet",
|
|
38650
|
-
"ngComponentOutletInputs",
|
|
38651
|
-
"ngComponentOutletInjector",
|
|
38652
|
-
"ngComponentOutletEnvironmentInjector",
|
|
38653
|
-
"ngComponentOutletContent",
|
|
38654
|
-
"ngComponentOutletNgModule"
|
|
38655
|
-
],
|
|
38656
|
-
exportAs: ["ngComponentOutlet"]
|
|
38657
|
-
}],
|
|
38658
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
38659
|
-
encapsulation: i0.ViewEncapsulation.None
|
|
38660
|
-
});
|
|
38661
|
-
};
|
|
38662
|
-
i0.ɵɵngDeclareClassMetadata({
|
|
38663
|
-
minVersion: "12.0.0",
|
|
38664
|
-
version: "22.2.2",
|
|
38665
|
-
ngImport: i0,
|
|
38666
|
-
type: NotificationComponent,
|
|
38667
|
-
decorators: [{
|
|
38668
|
-
type: Component,
|
|
38669
|
-
args: [{
|
|
38670
|
-
selector: "smart-notification",
|
|
38671
|
-
template: `
|
|
38672
|
-
@if (componentType()) {
|
|
38673
|
-
<ng-container
|
|
38674
|
-
*ngComponentOutlet="componentType(); inputs: componentInputs()"
|
|
38675
|
-
/>
|
|
38676
|
-
} @else {
|
|
38677
|
-
<smart-notification-standard
|
|
38678
|
-
[title]="title()"
|
|
38679
|
-
[description]="description()"
|
|
38680
|
-
[iconName]="iconName()"
|
|
38681
|
-
[avatarUrl]="avatarUrl()"
|
|
38682
|
-
[actions]="actions()"
|
|
38683
|
-
[dismissible]="dismissible()"
|
|
38684
|
-
[options]="options()"
|
|
38685
|
-
[class]="cssClass()"
|
|
38686
|
-
(dismissed)="dismissed.emit()"
|
|
38687
|
-
(actionClick)="actionClick.emit($event)"
|
|
38688
|
-
/>
|
|
38689
|
-
}
|
|
38690
|
-
`,
|
|
38691
|
-
encapsulation: ViewEncapsulation.None,
|
|
38692
|
-
imports: [NotificationStandardComponent, NgComponentOutlet],
|
|
38693
|
-
host: { class: "smart:contents" },
|
|
38694
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
38695
|
-
}]
|
|
38696
|
-
}],
|
|
38697
|
-
ctorParameters: () => [],
|
|
38698
|
-
propDecorators: {
|
|
38699
|
-
title: [{
|
|
38700
|
-
type: i0.Input,
|
|
38701
|
-
args: [{
|
|
38702
|
-
isSignal: true,
|
|
38703
|
-
alias: "title",
|
|
38704
|
-
required: true
|
|
38705
|
-
}]
|
|
38706
|
-
}],
|
|
38707
|
-
description: [{
|
|
38708
|
-
type: i0.Input,
|
|
38709
|
-
args: [{
|
|
38710
|
-
isSignal: true,
|
|
38711
|
-
alias: "description",
|
|
38712
|
-
required: false
|
|
38713
|
-
}]
|
|
38714
|
-
}],
|
|
38715
|
-
iconName: [{
|
|
38716
|
-
type: i0.Input,
|
|
38717
|
-
args: [{
|
|
38718
|
-
isSignal: true,
|
|
38719
|
-
alias: "iconName",
|
|
38720
|
-
required: false
|
|
38721
|
-
}]
|
|
38722
|
-
}],
|
|
38723
|
-
avatarUrl: [{
|
|
38724
|
-
type: i0.Input,
|
|
38725
|
-
args: [{
|
|
38726
|
-
isSignal: true,
|
|
38727
|
-
alias: "avatarUrl",
|
|
38728
|
-
required: false
|
|
38729
|
-
}]
|
|
38730
|
-
}],
|
|
38731
|
-
actions: [{
|
|
38732
|
-
type: i0.Input,
|
|
38733
|
-
args: [{
|
|
38734
|
-
isSignal: true,
|
|
38735
|
-
alias: "actions",
|
|
38736
|
-
required: false
|
|
38737
|
-
}]
|
|
38738
|
-
}],
|
|
38739
|
-
dismissible: [{
|
|
38740
|
-
type: i0.Input,
|
|
38741
|
-
args: [{
|
|
38742
|
-
isSignal: true,
|
|
38743
|
-
alias: "dismissible",
|
|
38744
|
-
required: false
|
|
38745
|
-
}]
|
|
38746
|
-
}],
|
|
38747
|
-
options: [{
|
|
38748
|
-
type: i0.Input,
|
|
38749
|
-
args: [{
|
|
38750
|
-
isSignal: true,
|
|
38751
|
-
alias: "options",
|
|
38752
|
-
required: false
|
|
38753
|
-
}]
|
|
38754
|
-
}],
|
|
38755
|
-
cssClass: [{
|
|
38756
|
-
type: i0.Input,
|
|
38757
|
-
args: [{
|
|
38758
|
-
isSignal: true,
|
|
38759
|
-
alias: "class",
|
|
38760
|
-
required: false
|
|
38761
|
-
}]
|
|
38762
|
-
}],
|
|
38763
|
-
dismissed: [{
|
|
38764
|
-
type: i0.Output,
|
|
38765
|
-
args: ["dismissed"]
|
|
38766
|
-
}],
|
|
38767
|
-
actionClick: [{
|
|
38768
|
-
type: i0.Output,
|
|
38769
|
-
args: ["actionClick"]
|
|
38770
|
-
}],
|
|
38771
|
-
outlet: [{
|
|
38772
|
-
type: i0.ViewChild,
|
|
38773
|
-
args: [i0.forwardRef(() => NgComponentOutlet), { isSignal: true }]
|
|
38774
|
-
}]
|
|
38775
|
-
}
|
|
38776
|
-
});
|
|
38777
39444
|
var PageBaseComponent = class PageBaseComponent {
|
|
38778
39445
|
el = inject(ElementRef);
|
|
38779
39446
|
renderer = inject(Renderer2);
|
|
@@ -38903,78 +39570,80 @@ var PageStandardComponent = class PageStandardComponent extends PageBaseComponen
|
|
|
38903
39570
|
usesInheritance: true,
|
|
38904
39571
|
ngImport: i0,
|
|
38905
39572
|
template: `
|
|
38906
|
-
|
|
38907
|
-
|
|
38908
|
-
|
|
38909
|
-
|
|
38910
|
-
|
|
38911
|
-
<div class="smart:
|
|
38912
|
-
|
|
38913
|
-
|
|
38914
|
-
|
|
38915
|
-
|
|
38916
|
-
|
|
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"
|
|
39573
|
+
<div [class]="cssClass()" data-role="page">
|
|
39574
|
+
@if (!options()?.hideHeader) {
|
|
39575
|
+
<div
|
|
39576
|
+
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"
|
|
39577
|
+
>
|
|
39578
|
+
<div class="smart:min-w-0 smart:flex-1">
|
|
39579
|
+
<div class="smart:flex smart:items-center smart:gap-x-3">
|
|
39580
|
+
@if (options()?.showBackButton) {
|
|
39581
|
+
<button
|
|
39582
|
+
type="button"
|
|
39583
|
+
(click)="back()"
|
|
39584
|
+
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
39585
|
>
|
|
38924
|
-
<
|
|
38925
|
-
|
|
38926
|
-
|
|
38927
|
-
|
|
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
|
|
39586
|
+
<svg
|
|
39587
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
39588
|
+
viewBox="0 0 20 20"
|
|
39589
|
+
fill="currentColor"
|
|
39590
|
+
class="smart:size-5"
|
|
38966
39591
|
>
|
|
38967
|
-
|
|
38968
|
-
|
|
38969
|
-
|
|
39592
|
+
<path
|
|
39593
|
+
fill-rule="evenodd"
|
|
39594
|
+
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"
|
|
39595
|
+
clip-rule="evenodd"
|
|
39596
|
+
/>
|
|
39597
|
+
</svg>
|
|
39598
|
+
</button>
|
|
39599
|
+
}
|
|
39600
|
+
<h2
|
|
39601
|
+
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"
|
|
39602
|
+
>
|
|
39603
|
+
{{ options()?.title ?? '' | translate }}
|
|
39604
|
+
</h2>
|
|
39605
|
+
</div>
|
|
38970
39606
|
</div>
|
|
39607
|
+
@if (options()?.endButtons?.length || options()?.search) {
|
|
39608
|
+
<div
|
|
39609
|
+
class="smart:mt-4 smart:flex smart:shrink-0 smart:gap-x-2 smart:md:ml-4 smart:md:mt-0"
|
|
39610
|
+
>
|
|
39611
|
+
@if (options()?.search; as search) {
|
|
39612
|
+
<div class="smart:relative smart:rounded-md smart:shadow-xs">
|
|
39613
|
+
<input
|
|
39614
|
+
type="text"
|
|
39615
|
+
[value]="search.text() ?? ''"
|
|
39616
|
+
(input)="search.set($any($event.target).value)"
|
|
39617
|
+
[placeholder]="'search' | translate"
|
|
39618
|
+
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"
|
|
39619
|
+
/>
|
|
39620
|
+
</div>
|
|
39621
|
+
}
|
|
39622
|
+
@for (btn of options()?.endButtons ?? []; track btn.icon) {
|
|
39623
|
+
<smart-button
|
|
39624
|
+
[options]="getButtonOptions(btn)"
|
|
39625
|
+
[disabled]="!!(btn.disabled$ | async)"
|
|
39626
|
+
>
|
|
39627
|
+
@if (btn.text) {
|
|
39628
|
+
{{ btn.text | translate }}
|
|
39629
|
+
}
|
|
39630
|
+
@if (btn.number) {
|
|
39631
|
+
<span
|
|
39632
|
+
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"
|
|
39633
|
+
>{{ btn.number }}</span
|
|
39634
|
+
>
|
|
39635
|
+
}
|
|
39636
|
+
</smart-button>
|
|
39637
|
+
}
|
|
39638
|
+
</div>
|
|
39639
|
+
}
|
|
39640
|
+
</div>
|
|
39641
|
+
}
|
|
39642
|
+
<div class="smart:px-4 smart:sm:px-6 smart:lg:px-8">
|
|
39643
|
+
@if (options()?.bodyTpl; as bodyTpl) {
|
|
39644
|
+
<ng-container [ngTemplateOutlet]="bodyTpl"></ng-container>
|
|
38971
39645
|
}
|
|
38972
39646
|
</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
39647
|
</div>
|
|
38979
39648
|
`,
|
|
38980
39649
|
isInline: true,
|
|
@@ -39024,78 +39693,80 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
39024
39693
|
args: [{
|
|
39025
39694
|
selector: "smart-page-standard",
|
|
39026
39695
|
template: `
|
|
39027
|
-
|
|
39028
|
-
|
|
39029
|
-
|
|
39030
|
-
|
|
39031
|
-
|
|
39032
|
-
<div class="smart:
|
|
39033
|
-
|
|
39034
|
-
|
|
39035
|
-
|
|
39036
|
-
|
|
39037
|
-
|
|
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"
|
|
39696
|
+
<div [class]="cssClass()" data-role="page">
|
|
39697
|
+
@if (!options()?.hideHeader) {
|
|
39698
|
+
<div
|
|
39699
|
+
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"
|
|
39700
|
+
>
|
|
39701
|
+
<div class="smart:min-w-0 smart:flex-1">
|
|
39702
|
+
<div class="smart:flex smart:items-center smart:gap-x-3">
|
|
39703
|
+
@if (options()?.showBackButton) {
|
|
39704
|
+
<button
|
|
39705
|
+
type="button"
|
|
39706
|
+
(click)="back()"
|
|
39707
|
+
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
39708
|
>
|
|
39045
|
-
<
|
|
39046
|
-
|
|
39047
|
-
|
|
39048
|
-
|
|
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
|
|
39709
|
+
<svg
|
|
39710
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
39711
|
+
viewBox="0 0 20 20"
|
|
39712
|
+
fill="currentColor"
|
|
39713
|
+
class="smart:size-5"
|
|
39087
39714
|
>
|
|
39088
|
-
|
|
39089
|
-
|
|
39090
|
-
|
|
39715
|
+
<path
|
|
39716
|
+
fill-rule="evenodd"
|
|
39717
|
+
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"
|
|
39718
|
+
clip-rule="evenodd"
|
|
39719
|
+
/>
|
|
39720
|
+
</svg>
|
|
39721
|
+
</button>
|
|
39722
|
+
}
|
|
39723
|
+
<h2
|
|
39724
|
+
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"
|
|
39725
|
+
>
|
|
39726
|
+
{{ options()?.title ?? '' | translate }}
|
|
39727
|
+
</h2>
|
|
39728
|
+
</div>
|
|
39091
39729
|
</div>
|
|
39730
|
+
@if (options()?.endButtons?.length || options()?.search) {
|
|
39731
|
+
<div
|
|
39732
|
+
class="smart:mt-4 smart:flex smart:shrink-0 smart:gap-x-2 smart:md:ml-4 smart:md:mt-0"
|
|
39733
|
+
>
|
|
39734
|
+
@if (options()?.search; as search) {
|
|
39735
|
+
<div class="smart:relative smart:rounded-md smart:shadow-xs">
|
|
39736
|
+
<input
|
|
39737
|
+
type="text"
|
|
39738
|
+
[value]="search.text() ?? ''"
|
|
39739
|
+
(input)="search.set($any($event.target).value)"
|
|
39740
|
+
[placeholder]="'search' | translate"
|
|
39741
|
+
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"
|
|
39742
|
+
/>
|
|
39743
|
+
</div>
|
|
39744
|
+
}
|
|
39745
|
+
@for (btn of options()?.endButtons ?? []; track btn.icon) {
|
|
39746
|
+
<smart-button
|
|
39747
|
+
[options]="getButtonOptions(btn)"
|
|
39748
|
+
[disabled]="!!(btn.disabled$ | async)"
|
|
39749
|
+
>
|
|
39750
|
+
@if (btn.text) {
|
|
39751
|
+
{{ btn.text | translate }}
|
|
39752
|
+
}
|
|
39753
|
+
@if (btn.number) {
|
|
39754
|
+
<span
|
|
39755
|
+
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"
|
|
39756
|
+
>{{ btn.number }}</span
|
|
39757
|
+
>
|
|
39758
|
+
}
|
|
39759
|
+
</smart-button>
|
|
39760
|
+
}
|
|
39761
|
+
</div>
|
|
39762
|
+
}
|
|
39763
|
+
</div>
|
|
39764
|
+
}
|
|
39765
|
+
<div class="smart:px-4 smart:sm:px-6 smart:lg:px-8">
|
|
39766
|
+
@if (options()?.bodyTpl; as bodyTpl) {
|
|
39767
|
+
<ng-container [ngTemplateOutlet]="bodyTpl"></ng-container>
|
|
39092
39768
|
}
|
|
39093
39769
|
</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
39770
|
</div>
|
|
39100
39771
|
`,
|
|
39101
39772
|
imports: [
|
|
@@ -42507,10 +43178,10 @@ function textareaActionClasses(actionVariant, variant) {
|
|
|
42507
43178
|
function textareaTabClasses(selected) {
|
|
42508
43179
|
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
43180
|
}
|
|
42510
|
-
let nextId = 0;
|
|
43181
|
+
let nextId$2 = 0;
|
|
42511
43182
|
var TextareaPresetComponent = class TextareaPresetComponent extends TextareaBaseComponent {
|
|
42512
43183
|
cssClass = input("", ...ngDevMode ? [{ debugName: "cssClass" }] : /* istanbul ignore next */ []);
|
|
42513
|
-
fieldId = `smart-textarea-preset-${nextId++}`;
|
|
43184
|
+
fieldId = `smart-textarea-preset-${nextId$2++}`;
|
|
42514
43185
|
mode = signal("write", ...ngDevMode ? [{ debugName: "mode" }] : /* istanbul ignore next */ []);
|
|
42515
43186
|
fieldRef = viewChild("field", ...ngDevMode ? [{ debugName: "fieldRef" }] : /* istanbul ignore next */ []);
|
|
42516
43187
|
variant = computed(() => this.options()?.variant ?? "simple", ...ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []);
|
|
@@ -42984,8 +43655,12 @@ const NAV = [
|
|
|
42984
43655
|
"smart:-me-0.5",
|
|
42985
43656
|
"smart:flex",
|
|
42986
43657
|
"smart:flex-col",
|
|
42987
|
-
"smart:space-y-3"
|
|
43658
|
+
"smart:space-y-3",
|
|
43659
|
+
"smart:my-0",
|
|
43660
|
+
"smart:p-0",
|
|
43661
|
+
"smart:list-none"
|
|
42988
43662
|
].join(" ");
|
|
43663
|
+
const LIST_ITEM = ["smart:flex", "smart:flex-col"].join(" ");
|
|
42989
43664
|
const GROUP_TITLE = [
|
|
42990
43665
|
"smart:px-1",
|
|
42991
43666
|
"smart:pb-1",
|
|
@@ -43058,6 +43733,9 @@ function getVerticalNavContainerClasses() {
|
|
|
43058
43733
|
function getVerticalNavNavClasses() {
|
|
43059
43734
|
return NAV;
|
|
43060
43735
|
}
|
|
43736
|
+
function getVerticalNavListItemClasses() {
|
|
43737
|
+
return LIST_ITEM;
|
|
43738
|
+
}
|
|
43061
43739
|
function getVerticalNavGroupTitleClasses() {
|
|
43062
43740
|
return GROUP_TITLE;
|
|
43063
43741
|
}
|
|
@@ -43073,6 +43751,7 @@ function getVerticalNavInitialClasses() {
|
|
|
43073
43751
|
function getVerticalNavBadgeClasses() {
|
|
43074
43752
|
return ITEM_BADGE;
|
|
43075
43753
|
}
|
|
43754
|
+
let nextId$1 = 0;
|
|
43076
43755
|
var VerticalNavigationPresetComponent = class VerticalNavigationPresetComponent extends VerticalNavigationBaseComponent {
|
|
43077
43756
|
cssClass = input("", ...ngDevMode ? [{ debugName: "cssClass" }] : /* istanbul ignore next */ []);
|
|
43078
43757
|
groups = computed(() => this.resolvedGroups(), ...ngDevMode ? [{ debugName: "groups" }] : /* istanbul ignore next */ []);
|
|
@@ -43082,6 +43761,11 @@ var VerticalNavigationPresetComponent = class VerticalNavigationPresetComponent
|
|
|
43082
43761
|
iconClasses = getVerticalNavIconClasses();
|
|
43083
43762
|
initialClasses = getVerticalNavInitialClasses();
|
|
43084
43763
|
badgeClasses = getVerticalNavBadgeClasses();
|
|
43764
|
+
listItemClasses = getVerticalNavListItemClasses();
|
|
43765
|
+
idPrefix = `smart-vertical-navigation-${nextId$1++}`;
|
|
43766
|
+
groupTitleId(groupIndex) {
|
|
43767
|
+
return `${this.idPrefix}-group-${groupIndex}`;
|
|
43768
|
+
}
|
|
43085
43769
|
itemClasses(current) {
|
|
43086
43770
|
return getVerticalNavItemClasses(Boolean(current));
|
|
43087
43771
|
}
|
|
@@ -43111,7 +43795,7 @@ var VerticalNavigationPresetComponent = class VerticalNavigationPresetComponent
|
|
|
43111
43795
|
} },
|
|
43112
43796
|
usesInheritance: true,
|
|
43113
43797
|
ngImport: i0,
|
|
43114
|
-
template: "<
|
|
43798
|
+
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
43799
|
dependencies: [{
|
|
43116
43800
|
kind: "directive",
|
|
43117
43801
|
type: NgTemplateOutlet,
|
|
@@ -43138,7 +43822,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
43138
43822
|
encapsulation: ViewEncapsulation.None,
|
|
43139
43823
|
imports: [NgTemplateOutlet],
|
|
43140
43824
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
43141
|
-
template: "<
|
|
43825
|
+
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
43826
|
}]
|
|
43143
43827
|
}],
|
|
43144
43828
|
propDecorators: { cssClass: [{
|
|
@@ -46561,7 +47245,12 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
46561
47245
|
}]
|
|
46562
47246
|
}
|
|
46563
47247
|
});
|
|
47248
|
+
let nextId = 0;
|
|
46564
47249
|
var VerticalNavigationStandardComponent = class VerticalNavigationStandardComponent extends VerticalNavigationBaseComponent {
|
|
47250
|
+
idPrefix = `smart-vertical-navigation-standard-${nextId++}`;
|
|
47251
|
+
groupTitleId(groupIndex) {
|
|
47252
|
+
return `${this.idPrefix}-group-${groupIndex}`;
|
|
47253
|
+
}
|
|
46565
47254
|
onItemClick(itemId) {
|
|
46566
47255
|
this.itemClick.emit({ itemId });
|
|
46567
47256
|
}
|
|
@@ -46584,7 +47273,7 @@ var VerticalNavigationStandardComponent = class VerticalNavigationStandardCompon
|
|
|
46584
47273
|
selector: "smart-vertical-navigation-standard",
|
|
46585
47274
|
usesInheritance: true,
|
|
46586
47275
|
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
|
|
47276
|
+
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
47277
|
dependencies: [{
|
|
46589
47278
|
kind: "directive",
|
|
46590
47279
|
type: NgTemplateOutlet,
|
|
@@ -46611,7 +47300,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
46611
47300
|
encapsulation: ViewEncapsulation.None,
|
|
46612
47301
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
46613
47302
|
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
|
|
47303
|
+
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
47304
|
}]
|
|
46616
47305
|
}]
|
|
46617
47306
|
});
|
|
@@ -46764,97 +47453,6 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
46764
47453
|
}]
|
|
46765
47454
|
}
|
|
46766
47455
|
});
|
|
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
47456
|
const ACCORDION_COMPONENTS = [
|
|
46859
47457
|
AccordionComponent,
|
|
46860
47458
|
AccordionDefaultComponent,
|
|
@@ -47812,6 +48410,6 @@ function SmartNgModuleDecorator(options) {
|
|
|
47812
48410
|
return NgModule(options)(constructor);
|
|
47813
48411
|
};
|
|
47814
48412
|
}
|
|
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 };
|
|
48413
|
+
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
48414
|
|
|
47817
48415
|
//# sourceMappingURL=smartsoft001-angular.mjs.map
|