@smartsoft001/angular 2.203.0 → 2.205.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 +879 -589
- package/fesm2022/smartsoft001-angular.mjs.map +1 -1
- package/package.json +4 -4
- package/styles.css +27 -0
- package/types/smartsoft001-angular.d.ts +70 -12
|
@@ -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",
|
|
@@ -1719,7 +2528,23 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
1719
2528
|
}]
|
|
1720
2529
|
}
|
|
1721
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(" ");
|
|
1722
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 */ []);
|
|
1723
2548
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
1724
2549
|
minVersion: "12.0.0",
|
|
1725
2550
|
version: "22.2.2",
|
|
@@ -1736,7 +2561,7 @@ var ModalStandardComponent = class ModalStandardComponent extends ModalBaseCompo
|
|
|
1736
2561
|
selector: "smart-modal-standard",
|
|
1737
2562
|
usesInheritance: true,
|
|
1738
2563
|
ngImport: i0,
|
|
1739
|
-
template: "<dialog\n [open]=\"open()\"\n [class]=\"
|
|
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",
|
|
1740
2565
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
1741
2566
|
encapsulation: i0.ViewEncapsulation.None
|
|
1742
2567
|
});
|
|
@@ -1752,76 +2577,10 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
1752
2577
|
selector: "smart-modal-standard",
|
|
1753
2578
|
encapsulation: ViewEncapsulation.None,
|
|
1754
2579
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1755
|
-
template: "<dialog\n [open]=\"open()\"\n [class]=\"
|
|
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"
|
|
1756
2581
|
}]
|
|
1757
2582
|
}]
|
|
1758
2583
|
});
|
|
1759
|
-
const FORM_COMPONENT_TOKEN = new InjectionToken("FORM_COMPONENT");
|
|
1760
|
-
const DETAILS_COMPONENT_TOKEN = new InjectionToken("DETAILS_COMPONENT_TOKEN");
|
|
1761
|
-
const ACTION_PANEL_STANDARD_COMPONENT_TOKEN = new InjectionToken("ACTION_PANEL_STANDARD_COMPONENT");
|
|
1762
|
-
const ALERT_STANDARD_COMPONENT_TOKEN = new InjectionToken("ALERT_STANDARD_COMPONENT");
|
|
1763
|
-
const BREADCRUMBS_STANDARD_COMPONENT_TOKEN = new InjectionToken("BREADCRUMBS_STANDARD_COMPONENT");
|
|
1764
|
-
const BUTTON_STANDARD_COMPONENT_TOKEN = new InjectionToken("BUTTON_STANDARD_COMPONENT");
|
|
1765
|
-
const CALENDAR_STANDARD_COMPONENT_TOKEN = new InjectionToken("CALENDAR_STANDARD_COMPONENT");
|
|
1766
|
-
const CARD_STANDARD_COMPONENT_TOKEN = new InjectionToken("CARD_STANDARD_COMPONENT");
|
|
1767
|
-
const CARD_HEADING_STANDARD_COMPONENT_TOKEN = new InjectionToken("CARD_HEADING_STANDARD_COMPONENT");
|
|
1768
|
-
const COMMAND_PALETTE_STANDARD_COMPONENT_TOKEN = new InjectionToken("COMMAND_PALETTE_STANDARD_COMPONENT");
|
|
1769
|
-
const DETAILS_STANDARD_COMPONENT_TOKEN = new InjectionToken("DETAILS_STANDARD_COMPONENT");
|
|
1770
|
-
const DETAIL_FIELD_COMPONENTS_TOKEN = new InjectionToken("DETAIL_FIELD_COMPONENTS_TOKEN");
|
|
1771
|
-
const EMPTY_STATE_STANDARD_COMPONENT_TOKEN = new InjectionToken("EMPTY_STATE_STANDARD_COMPONENT");
|
|
1772
|
-
const FEED_STANDARD_COMPONENT_TOKEN = new InjectionToken("FEED_STANDARD_COMPONENT");
|
|
1773
|
-
const DESCRIPTION_LIST_STANDARD_COMPONENT_TOKEN = new InjectionToken("DESCRIPTION_LIST_STANDARD_COMPONENT");
|
|
1774
|
-
const FORM_STANDARD_COMPONENT_TOKEN = new InjectionToken("FORM_STANDARD_COMPONENT");
|
|
1775
|
-
const GRID_LIST_STANDARD_COMPONENT_TOKEN = new InjectionToken("GRID_LIST_STANDARD_COMPONENT");
|
|
1776
|
-
const INFO_STANDARD_COMPONENT_TOKEN = new InjectionToken("INFO_STANDARD_COMPONENT");
|
|
1777
|
-
const INPUT_FIELD_COMPONENTS_TOKEN = new InjectionToken("INPUT_FIELD_COMPONENTS_TOKEN");
|
|
1778
|
-
const LIST_MODE_COMPONENTS_TOKEN = new InjectionToken("LIST_MODE_COMPONENTS");
|
|
1779
|
-
const LOADER_STANDARD_COMPONENT_TOKEN = new InjectionToken("LOADER_STANDARD_COMPONENT");
|
|
1780
|
-
const MODAL_STANDARD_COMPONENT_TOKEN = new InjectionToken("MODAL_STANDARD_COMPONENT");
|
|
1781
|
-
const AVATAR_STANDARD_COMPONENT_TOKEN = new InjectionToken("AVATAR_STANDARD_COMPONENT");
|
|
1782
|
-
const BADGE_STANDARD_COMPONENT_TOKEN = new InjectionToken("BADGE_STANDARD_COMPONENT");
|
|
1783
|
-
const BUTTON_GROUP_STANDARD_COMPONENT_TOKEN = new InjectionToken("BUTTON_GROUP_STANDARD_COMPONENT");
|
|
1784
|
-
const CONTAINER_STANDARD_COMPONENT_TOKEN = new InjectionToken("CONTAINER_STANDARD_COMPONENT");
|
|
1785
|
-
const DIVIDER_STANDARD_COMPONENT_TOKEN = new InjectionToken("DIVIDER_STANDARD_COMPONENT");
|
|
1786
|
-
const DRAWER_STANDARD_COMPONENT_TOKEN = new InjectionToken("DRAWER_STANDARD_COMPONENT");
|
|
1787
|
-
const DROPDOWN_STANDARD_COMPONENT_TOKEN = new InjectionToken("DROPDOWN_STANDARD_COMPONENT");
|
|
1788
|
-
const LIST_CONTAINER_STANDARD_COMPONENT_TOKEN = new InjectionToken("LIST_CONTAINER_STANDARD_COMPONENT");
|
|
1789
|
-
const MEDIA_OBJECT_STANDARD_COMPONENT_TOKEN = new InjectionToken("MEDIA_OBJECT_STANDARD_COMPONENT");
|
|
1790
|
-
const NOTIFICATION_STANDARD_COMPONENT_TOKEN = new InjectionToken("NOTIFICATION_STANDARD_COMPONENT");
|
|
1791
|
-
const MULTI_COLUMN_LAYOUT_STANDARD_COMPONENT_TOKEN = new InjectionToken("MULTI_COLUMN_LAYOUT_STANDARD_COMPONENT");
|
|
1792
|
-
const NAVBAR_STANDARD_COMPONENT_TOKEN = new InjectionToken("NAVBAR_STANDARD_COMPONENT");
|
|
1793
|
-
const PAGE_VARIANT_COMPONENTS_TOKEN = new InjectionToken("PAGE_VARIANT_COMPONENTS");
|
|
1794
|
-
const PAGE_HEADING_STANDARD_COMPONENT_TOKEN = new InjectionToken("PAGE_HEADING_STANDARD_COMPONENT");
|
|
1795
|
-
const PAGING_STANDARD_COMPONENT_TOKEN = new InjectionToken("PAGING_STANDARD_COMPONENT");
|
|
1796
|
-
const PASSWORD_STRENGTH_STANDARD_COMPONENT_TOKEN = new InjectionToken("PASSWORD_STRENGTH_STANDARD_COMPONENT");
|
|
1797
|
-
const PROGRESS_BARS_STANDARD_COMPONENT_TOKEN = new InjectionToken("PROGRESS_BARS_STANDARD_COMPONENT");
|
|
1798
|
-
const SEARCHBAR_STANDARD_COMPONENT_TOKEN = new InjectionToken("SEARCHBAR_STANDARD_COMPONENT");
|
|
1799
|
-
const SECTION_HEADING_STANDARD_COMPONENT_TOKEN = new InjectionToken("SECTION_HEADING_STANDARD_COMPONENT");
|
|
1800
|
-
const SELECT_MENU_STANDARD_COMPONENT_TOKEN = new InjectionToken("SELECT_MENU_STANDARD_COMPONENT");
|
|
1801
|
-
const SIDEBAR_LAYOUT_STANDARD_COMPONENT_TOKEN = new InjectionToken("SIDEBAR_LAYOUT_STANDARD_COMPONENT");
|
|
1802
|
-
const SIDEBAR_NAVIGATION_STANDARD_COMPONENT_TOKEN = new InjectionToken("SIDEBAR_NAVIGATION_STANDARD_COMPONENT");
|
|
1803
|
-
const SIGN_IN_FORM_STANDARD_COMPONENT_TOKEN = new InjectionToken("SIGN_IN_FORM_STANDARD_COMPONENT");
|
|
1804
|
-
const STACKED_LAYOUT_STANDARD_COMPONENT_TOKEN = new InjectionToken("STACKED_LAYOUT_STANDARD_COMPONENT");
|
|
1805
|
-
const STACKED_LIST_STANDARD_COMPONENT_TOKEN = new InjectionToken("STACKED_LIST_STANDARD_COMPONENT");
|
|
1806
|
-
const STATS_STANDARD_COMPONENT_TOKEN = new InjectionToken("STATS_STANDARD_COMPONENT");
|
|
1807
|
-
const TABLE_STANDARD_COMPONENT_TOKEN = new InjectionToken("TABLE_STANDARD_COMPONENT");
|
|
1808
|
-
const TABS_STANDARD_COMPONENT_TOKEN = new InjectionToken("TABS_STANDARD_COMPONENT");
|
|
1809
|
-
const TEXTAREA_STANDARD_COMPONENT_TOKEN = new InjectionToken("TEXTAREA_STANDARD_COMPONENT");
|
|
1810
|
-
const TOGGLE_STANDARD_COMPONENT_TOKEN = new InjectionToken("TOGGLE_STANDARD_COMPONENT");
|
|
1811
|
-
const VERTICAL_NAVIGATION_STANDARD_COMPONENT_TOKEN = new InjectionToken("VERTICAL_NAVIGATION_STANDARD_COMPONENT");
|
|
1812
|
-
function forwardOutletOutputs(outlet, targets) {
|
|
1813
|
-
afterRenderEffect((onCleanup) => {
|
|
1814
|
-
const instance = outlet()?.componentInstance;
|
|
1815
|
-
if (!instance) return;
|
|
1816
|
-
const subscriptions = [];
|
|
1817
|
-
for (const [name, target] of Object.entries(targets)) {
|
|
1818
|
-
const source = instance[name];
|
|
1819
|
-
if (typeof source?.subscribe !== "function") continue;
|
|
1820
|
-
subscriptions.push(source.subscribe((value) => "emit" in target ? target.emit(value) : target.set(value)));
|
|
1821
|
-
}
|
|
1822
|
-
onCleanup(() => subscriptions.forEach((sub) => sub.unsubscribe()));
|
|
1823
|
-
});
|
|
1824
|
-
}
|
|
1825
2584
|
function outletContent(template) {
|
|
1826
2585
|
const destroyRef = inject(DestroyRef);
|
|
1827
2586
|
const renderer = inject(Renderer2);
|
|
@@ -1838,21 +2597,6 @@ function outletContent(template) {
|
|
|
1838
2597
|
return content;
|
|
1839
2598
|
};
|
|
1840
2599
|
}
|
|
1841
|
-
function outletInputs(component, inputs) {
|
|
1842
|
-
const declared = component ? reflectComponentType(component)?.inputs : null;
|
|
1843
|
-
if (!declared) return inputs;
|
|
1844
|
-
const publicName = /* @__PURE__ */ new Map();
|
|
1845
|
-
for (const { propName, templateName } of declared) {
|
|
1846
|
-
publicName.set(propName, templateName);
|
|
1847
|
-
publicName.set(templateName, templateName);
|
|
1848
|
-
}
|
|
1849
|
-
const resolved = {};
|
|
1850
|
-
for (const [key, value] of Object.entries(inputs)) {
|
|
1851
|
-
const name = publicName.get(key);
|
|
1852
|
-
if (name) resolved[name] = value;
|
|
1853
|
-
}
|
|
1854
|
-
return resolved;
|
|
1855
|
-
}
|
|
1856
2600
|
var ModalComponent = class ModalComponent {
|
|
1857
2601
|
injectedComponent = inject(MODAL_STANDARD_COMPONENT_TOKEN, { optional: true });
|
|
1858
2602
|
open = model(false, ...ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []);
|
|
@@ -2139,6 +2883,11 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
2139
2883
|
}]
|
|
2140
2884
|
}
|
|
2141
2885
|
});
|
|
2886
|
+
const MODAL_OPTIONS = { withDismiss: true };
|
|
2887
|
+
const BOTTOM_SHEET_MODAL_OPTIONS = {
|
|
2888
|
+
withDismiss: true,
|
|
2889
|
+
variant: "bottom-sheet"
|
|
2890
|
+
};
|
|
2142
2891
|
var ModalService = class ModalService {
|
|
2143
2892
|
appRef = inject(ApplicationRef);
|
|
2144
2893
|
environmentInjector = inject(EnvironmentInjector);
|
|
@@ -2195,7 +2944,7 @@ var ModalService = class ModalService {
|
|
|
2195
2944
|
dismiss: entry.modal.dismiss
|
|
2196
2945
|
});
|
|
2197
2946
|
ref.setInput("open", true);
|
|
2198
|
-
ref.setInput("options",
|
|
2947
|
+
ref.setInput("options", options.mode === "bottom" ? BOTTOM_SHEET_MODAL_OPTIONS : MODAL_OPTIONS);
|
|
2199
2948
|
ref.setInput("class", this.getClasses(options).join(" "));
|
|
2200
2949
|
ref.instance.closed.subscribe(() => entry.modal.dismiss());
|
|
2201
2950
|
element.setAttribute("data-mode", options.mode ?? "default");
|
|
@@ -2624,7 +3373,14 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
2624
3373
|
decorators: [{ type: Injectable }]
|
|
2625
3374
|
});
|
|
2626
3375
|
var UIService = class UIService {
|
|
2627
|
-
|
|
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
|
+
}
|
|
2628
3384
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
2629
3385
|
minVersion: "12.0.0",
|
|
2630
3386
|
version: "22.2.2",
|
|
@@ -37238,11 +37994,18 @@ const MODAL_BACKDROP = [
|
|
|
37238
37994
|
"smart:dark:bg-gray-900/80"
|
|
37239
37995
|
].join(" ");
|
|
37240
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(" ");
|
|
37241
38003
|
const WRAPPER_WIDTH_BY_VARIANT = {
|
|
37242
38004
|
centered: "smart:sm:max-w-lg smart:sm:w-full",
|
|
37243
38005
|
wide: "smart:lg:max-w-4xl smart:lg:w-full",
|
|
37244
38006
|
alert: "smart:sm:max-w-md smart:sm:w-full",
|
|
37245
|
-
"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"
|
|
37246
38009
|
};
|
|
37247
38010
|
const WRAPPER_CENTERED = [
|
|
37248
38011
|
"smart:min-h-[calc(100%-56px)]",
|
|
@@ -37261,6 +38024,22 @@ const PANEL_BASE = [
|
|
|
37261
38024
|
"smart:rounded-xl",
|
|
37262
38025
|
"smart:pointer-events-auto"
|
|
37263
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(" ");
|
|
37264
38043
|
const MODAL_HEADER = [
|
|
37265
38044
|
"smart:flex",
|
|
37266
38045
|
"smart:justify-between",
|
|
@@ -37312,11 +38091,8 @@ const FOOTER_BASE = [
|
|
|
37312
38091
|
"smart:border-gray-200",
|
|
37313
38092
|
"smart:dark:border-gray-700"
|
|
37314
38093
|
].join(" ");
|
|
37315
|
-
const FOOTER_GRAY = [
|
|
37316
|
-
|
|
37317
|
-
"smart:dark:bg-gray-800/50",
|
|
37318
|
-
"smart:rounded-b-xl"
|
|
37319
|
-
].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";
|
|
37320
38096
|
const ACTION_BASE$1 = [
|
|
37321
38097
|
"smart:py-2",
|
|
37322
38098
|
"smart:px-3",
|
|
@@ -37338,21 +38114,28 @@ const ACTION_BY_VARIANT$1 = {
|
|
|
37338
38114
|
function isCentered(variant) {
|
|
37339
38115
|
return variant === "centered" || variant === "alert";
|
|
37340
38116
|
}
|
|
38117
|
+
function isBottomSheet(variant) {
|
|
38118
|
+
return variant === "bottom-sheet";
|
|
38119
|
+
}
|
|
37341
38120
|
function getModalWrapperClasses(variant) {
|
|
37342
38121
|
return [
|
|
37343
|
-
WRAPPER_BASE,
|
|
38122
|
+
isBottomSheet(variant) ? WRAPPER_BOTTOM_SHEET : WRAPPER_BASE,
|
|
37344
38123
|
WRAPPER_WIDTH_BY_VARIANT[variant],
|
|
37345
38124
|
isCentered(variant) ? WRAPPER_CENTERED : ""
|
|
37346
38125
|
].filter(Boolean).join(" ");
|
|
37347
38126
|
}
|
|
37348
38127
|
function getModalPanelClasses(variant) {
|
|
38128
|
+
if (isBottomSheet(variant)) return PANEL_BOTTOM_SHEET;
|
|
37349
38129
|
return [PANEL_BASE, isCentered(variant) ? "smart:w-full" : ""].filter(Boolean).join(" ");
|
|
37350
38130
|
}
|
|
37351
38131
|
function getModalFooterClasses(variant, footerStyle) {
|
|
38132
|
+
const alignment = variant === "left-aligned-buttons" ? "smart:justify-start" : "smart:justify-end";
|
|
38133
|
+
const gray = footerStyle === "gray";
|
|
37352
38134
|
return [
|
|
37353
38135
|
FOOTER_BASE,
|
|
37354
|
-
|
|
37355
|
-
|
|
38136
|
+
alignment,
|
|
38137
|
+
gray ? FOOTER_GRAY : "",
|
|
38138
|
+
gray && !isBottomSheet(variant) ? FOOTER_GRAY_ROUNDED : ""
|
|
37356
38139
|
].filter(Boolean).join(" ");
|
|
37357
38140
|
}
|
|
37358
38141
|
function getModalActionClasses(variant = "primary") {
|
|
@@ -38445,223 +39228,6 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
38445
39228
|
}]
|
|
38446
39229
|
}
|
|
38447
39230
|
});
|
|
38448
|
-
var NotificationBaseComponent = class NotificationBaseComponent {
|
|
38449
|
-
static smartType = "notification";
|
|
38450
|
-
title = input.required(...ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []);
|
|
38451
|
-
description = input(...ngDevMode ? [void 0, { debugName: "description" }] : /* istanbul ignore next */ []);
|
|
38452
|
-
iconName = input(...ngDevMode ? [void 0, { debugName: "iconName" }] : /* istanbul ignore next */ []);
|
|
38453
|
-
avatarUrl = input(...ngDevMode ? [void 0, { debugName: "avatarUrl" }] : /* istanbul ignore next */ []);
|
|
38454
|
-
actions = input([], ...ngDevMode ? [{ debugName: "actions" }] : /* istanbul ignore next */ []);
|
|
38455
|
-
dismissible = input(false, ...ngDevMode ? [{ debugName: "dismissible" }] : /* istanbul ignore next */ []);
|
|
38456
|
-
options = input(...ngDevMode ? [void 0, { debugName: "options" }] : /* istanbul ignore next */ []);
|
|
38457
|
-
cssClass = input("", {
|
|
38458
|
-
...ngDevMode ? { debugName: "cssClass" } : /* istanbul ignore next */ {},
|
|
38459
|
-
alias: "class"
|
|
38460
|
-
});
|
|
38461
|
-
dismissed = output();
|
|
38462
|
-
actionClick = output();
|
|
38463
|
-
dismiss() {
|
|
38464
|
-
this.dismissed.emit();
|
|
38465
|
-
}
|
|
38466
|
-
invokeAction(actionId) {
|
|
38467
|
-
this.actionClick.emit({ actionId });
|
|
38468
|
-
}
|
|
38469
|
-
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
38470
|
-
minVersion: "12.0.0",
|
|
38471
|
-
version: "22.2.2",
|
|
38472
|
-
ngImport: i0,
|
|
38473
|
-
type: NotificationBaseComponent,
|
|
38474
|
-
deps: [],
|
|
38475
|
-
target: i0.ɵɵFactoryTarget.Directive
|
|
38476
|
-
});
|
|
38477
|
-
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
38478
|
-
minVersion: "17.1.0",
|
|
38479
|
-
version: "22.2.2",
|
|
38480
|
-
type: NotificationBaseComponent,
|
|
38481
|
-
isStandalone: true,
|
|
38482
|
-
inputs: {
|
|
38483
|
-
title: {
|
|
38484
|
-
classPropertyName: "title",
|
|
38485
|
-
publicName: "title",
|
|
38486
|
-
isSignal: true,
|
|
38487
|
-
isRequired: true,
|
|
38488
|
-
transformFunction: null
|
|
38489
|
-
},
|
|
38490
|
-
description: {
|
|
38491
|
-
classPropertyName: "description",
|
|
38492
|
-
publicName: "description",
|
|
38493
|
-
isSignal: true,
|
|
38494
|
-
isRequired: false,
|
|
38495
|
-
transformFunction: null
|
|
38496
|
-
},
|
|
38497
|
-
iconName: {
|
|
38498
|
-
classPropertyName: "iconName",
|
|
38499
|
-
publicName: "iconName",
|
|
38500
|
-
isSignal: true,
|
|
38501
|
-
isRequired: false,
|
|
38502
|
-
transformFunction: null
|
|
38503
|
-
},
|
|
38504
|
-
avatarUrl: {
|
|
38505
|
-
classPropertyName: "avatarUrl",
|
|
38506
|
-
publicName: "avatarUrl",
|
|
38507
|
-
isSignal: true,
|
|
38508
|
-
isRequired: false,
|
|
38509
|
-
transformFunction: null
|
|
38510
|
-
},
|
|
38511
|
-
actions: {
|
|
38512
|
-
classPropertyName: "actions",
|
|
38513
|
-
publicName: "actions",
|
|
38514
|
-
isSignal: true,
|
|
38515
|
-
isRequired: false,
|
|
38516
|
-
transformFunction: null
|
|
38517
|
-
},
|
|
38518
|
-
dismissible: {
|
|
38519
|
-
classPropertyName: "dismissible",
|
|
38520
|
-
publicName: "dismissible",
|
|
38521
|
-
isSignal: true,
|
|
38522
|
-
isRequired: false,
|
|
38523
|
-
transformFunction: null
|
|
38524
|
-
},
|
|
38525
|
-
options: {
|
|
38526
|
-
classPropertyName: "options",
|
|
38527
|
-
publicName: "options",
|
|
38528
|
-
isSignal: true,
|
|
38529
|
-
isRequired: false,
|
|
38530
|
-
transformFunction: null
|
|
38531
|
-
},
|
|
38532
|
-
cssClass: {
|
|
38533
|
-
classPropertyName: "cssClass",
|
|
38534
|
-
publicName: "class",
|
|
38535
|
-
isSignal: true,
|
|
38536
|
-
isRequired: false,
|
|
38537
|
-
transformFunction: null
|
|
38538
|
-
}
|
|
38539
|
-
},
|
|
38540
|
-
outputs: {
|
|
38541
|
-
dismissed: "dismissed",
|
|
38542
|
-
actionClick: "actionClick"
|
|
38543
|
-
},
|
|
38544
|
-
ngImport: i0
|
|
38545
|
-
});
|
|
38546
|
-
};
|
|
38547
|
-
i0.ɵɵngDeclareClassMetadata({
|
|
38548
|
-
minVersion: "12.0.0",
|
|
38549
|
-
version: "22.2.2",
|
|
38550
|
-
ngImport: i0,
|
|
38551
|
-
type: NotificationBaseComponent,
|
|
38552
|
-
decorators: [{ type: Directive }],
|
|
38553
|
-
propDecorators: {
|
|
38554
|
-
title: [{
|
|
38555
|
-
type: i0.Input,
|
|
38556
|
-
args: [{
|
|
38557
|
-
isSignal: true,
|
|
38558
|
-
alias: "title",
|
|
38559
|
-
required: true
|
|
38560
|
-
}]
|
|
38561
|
-
}],
|
|
38562
|
-
description: [{
|
|
38563
|
-
type: i0.Input,
|
|
38564
|
-
args: [{
|
|
38565
|
-
isSignal: true,
|
|
38566
|
-
alias: "description",
|
|
38567
|
-
required: false
|
|
38568
|
-
}]
|
|
38569
|
-
}],
|
|
38570
|
-
iconName: [{
|
|
38571
|
-
type: i0.Input,
|
|
38572
|
-
args: [{
|
|
38573
|
-
isSignal: true,
|
|
38574
|
-
alias: "iconName",
|
|
38575
|
-
required: false
|
|
38576
|
-
}]
|
|
38577
|
-
}],
|
|
38578
|
-
avatarUrl: [{
|
|
38579
|
-
type: i0.Input,
|
|
38580
|
-
args: [{
|
|
38581
|
-
isSignal: true,
|
|
38582
|
-
alias: "avatarUrl",
|
|
38583
|
-
required: false
|
|
38584
|
-
}]
|
|
38585
|
-
}],
|
|
38586
|
-
actions: [{
|
|
38587
|
-
type: i0.Input,
|
|
38588
|
-
args: [{
|
|
38589
|
-
isSignal: true,
|
|
38590
|
-
alias: "actions",
|
|
38591
|
-
required: false
|
|
38592
|
-
}]
|
|
38593
|
-
}],
|
|
38594
|
-
dismissible: [{
|
|
38595
|
-
type: i0.Input,
|
|
38596
|
-
args: [{
|
|
38597
|
-
isSignal: true,
|
|
38598
|
-
alias: "dismissible",
|
|
38599
|
-
required: false
|
|
38600
|
-
}]
|
|
38601
|
-
}],
|
|
38602
|
-
options: [{
|
|
38603
|
-
type: i0.Input,
|
|
38604
|
-
args: [{
|
|
38605
|
-
isSignal: true,
|
|
38606
|
-
alias: "options",
|
|
38607
|
-
required: false
|
|
38608
|
-
}]
|
|
38609
|
-
}],
|
|
38610
|
-
cssClass: [{
|
|
38611
|
-
type: i0.Input,
|
|
38612
|
-
args: [{
|
|
38613
|
-
isSignal: true,
|
|
38614
|
-
alias: "class",
|
|
38615
|
-
required: false
|
|
38616
|
-
}]
|
|
38617
|
-
}],
|
|
38618
|
-
dismissed: [{
|
|
38619
|
-
type: i0.Output,
|
|
38620
|
-
args: ["dismissed"]
|
|
38621
|
-
}],
|
|
38622
|
-
actionClick: [{
|
|
38623
|
-
type: i0.Output,
|
|
38624
|
-
args: ["actionClick"]
|
|
38625
|
-
}]
|
|
38626
|
-
}
|
|
38627
|
-
});
|
|
38628
|
-
var NotificationStandardComponent = class NotificationStandardComponent extends NotificationBaseComponent {
|
|
38629
|
-
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
38630
|
-
minVersion: "12.0.0",
|
|
38631
|
-
version: "22.2.2",
|
|
38632
|
-
ngImport: i0,
|
|
38633
|
-
type: NotificationStandardComponent,
|
|
38634
|
-
deps: null,
|
|
38635
|
-
target: i0.ɵɵFactoryTarget.Component
|
|
38636
|
-
});
|
|
38637
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
38638
|
-
minVersion: "17.0.0",
|
|
38639
|
-
version: "22.2.2",
|
|
38640
|
-
type: NotificationStandardComponent,
|
|
38641
|
-
isStandalone: true,
|
|
38642
|
-
selector: "smart-notification-standard",
|
|
38643
|
-
usesInheritance: true,
|
|
38644
|
-
ngImport: i0,
|
|
38645
|
-
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",
|
|
38646
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
38647
|
-
encapsulation: i0.ViewEncapsulation.None
|
|
38648
|
-
});
|
|
38649
|
-
};
|
|
38650
|
-
i0.ɵɵngDeclareClassMetadata({
|
|
38651
|
-
minVersion: "12.0.0",
|
|
38652
|
-
version: "22.2.2",
|
|
38653
|
-
ngImport: i0,
|
|
38654
|
-
type: NotificationStandardComponent,
|
|
38655
|
-
decorators: [{
|
|
38656
|
-
type: Component,
|
|
38657
|
-
args: [{
|
|
38658
|
-
selector: "smart-notification-standard",
|
|
38659
|
-
encapsulation: ViewEncapsulation.None,
|
|
38660
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
38661
|
-
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"
|
|
38662
|
-
}]
|
|
38663
|
-
}]
|
|
38664
|
-
});
|
|
38665
39231
|
const CONTAINER$4 = [
|
|
38666
39232
|
"smart:max-w-xs",
|
|
38667
39233
|
"smart:w-full",
|
|
@@ -38875,282 +39441,6 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
38875
39441
|
}]
|
|
38876
39442
|
}] }
|
|
38877
39443
|
});
|
|
38878
|
-
var NotificationComponent = class NotificationComponent {
|
|
38879
|
-
injectedComponent = inject(NOTIFICATION_STANDARD_COMPONENT_TOKEN, { optional: true });
|
|
38880
|
-
title = input.required(...ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []);
|
|
38881
|
-
description = input(...ngDevMode ? [void 0, { debugName: "description" }] : /* istanbul ignore next */ []);
|
|
38882
|
-
iconName = input(...ngDevMode ? [void 0, { debugName: "iconName" }] : /* istanbul ignore next */ []);
|
|
38883
|
-
avatarUrl = input(...ngDevMode ? [void 0, { debugName: "avatarUrl" }] : /* istanbul ignore next */ []);
|
|
38884
|
-
actions = input([], ...ngDevMode ? [{ debugName: "actions" }] : /* istanbul ignore next */ []);
|
|
38885
|
-
dismissible = input(false, ...ngDevMode ? [{ debugName: "dismissible" }] : /* istanbul ignore next */ []);
|
|
38886
|
-
options = input(...ngDevMode ? [void 0, { debugName: "options" }] : /* istanbul ignore next */ []);
|
|
38887
|
-
cssClass = input("", {
|
|
38888
|
-
...ngDevMode ? { debugName: "cssClass" } : /* istanbul ignore next */ {},
|
|
38889
|
-
alias: "class"
|
|
38890
|
-
});
|
|
38891
|
-
dismissed = output();
|
|
38892
|
-
actionClick = output();
|
|
38893
|
-
componentType = computed(() => this.injectedComponent ?? null, ...ngDevMode ? [{ debugName: "componentType" }] : /* istanbul ignore next */ []);
|
|
38894
|
-
componentInputs = computed(() => outletInputs(this.componentType(), {
|
|
38895
|
-
title: this.title(),
|
|
38896
|
-
description: this.description(),
|
|
38897
|
-
iconName: this.iconName(),
|
|
38898
|
-
avatarUrl: this.avatarUrl(),
|
|
38899
|
-
actions: this.actions(),
|
|
38900
|
-
dismissible: this.dismissible(),
|
|
38901
|
-
options: this.options(),
|
|
38902
|
-
cssClass: this.cssClass()
|
|
38903
|
-
}), ...ngDevMode ? [{ debugName: "componentInputs" }] : /* istanbul ignore next */ []);
|
|
38904
|
-
outlet = viewChild(NgComponentOutlet, ...ngDevMode ? [{ debugName: "outlet" }] : /* istanbul ignore next */ []);
|
|
38905
|
-
constructor() {
|
|
38906
|
-
forwardOutletOutputs(this.outlet, {
|
|
38907
|
-
dismissed: this.dismissed,
|
|
38908
|
-
actionClick: this.actionClick
|
|
38909
|
-
});
|
|
38910
|
-
}
|
|
38911
|
-
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
38912
|
-
minVersion: "12.0.0",
|
|
38913
|
-
version: "22.2.2",
|
|
38914
|
-
ngImport: i0,
|
|
38915
|
-
type: NotificationComponent,
|
|
38916
|
-
deps: [],
|
|
38917
|
-
target: i0.ɵɵFactoryTarget.Component
|
|
38918
|
-
});
|
|
38919
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
38920
|
-
minVersion: "17.0.0",
|
|
38921
|
-
version: "22.2.2",
|
|
38922
|
-
type: NotificationComponent,
|
|
38923
|
-
isStandalone: true,
|
|
38924
|
-
selector: "smart-notification",
|
|
38925
|
-
inputs: {
|
|
38926
|
-
title: {
|
|
38927
|
-
classPropertyName: "title",
|
|
38928
|
-
publicName: "title",
|
|
38929
|
-
isSignal: true,
|
|
38930
|
-
isRequired: true,
|
|
38931
|
-
transformFunction: null
|
|
38932
|
-
},
|
|
38933
|
-
description: {
|
|
38934
|
-
classPropertyName: "description",
|
|
38935
|
-
publicName: "description",
|
|
38936
|
-
isSignal: true,
|
|
38937
|
-
isRequired: false,
|
|
38938
|
-
transformFunction: null
|
|
38939
|
-
},
|
|
38940
|
-
iconName: {
|
|
38941
|
-
classPropertyName: "iconName",
|
|
38942
|
-
publicName: "iconName",
|
|
38943
|
-
isSignal: true,
|
|
38944
|
-
isRequired: false,
|
|
38945
|
-
transformFunction: null
|
|
38946
|
-
},
|
|
38947
|
-
avatarUrl: {
|
|
38948
|
-
classPropertyName: "avatarUrl",
|
|
38949
|
-
publicName: "avatarUrl",
|
|
38950
|
-
isSignal: true,
|
|
38951
|
-
isRequired: false,
|
|
38952
|
-
transformFunction: null
|
|
38953
|
-
},
|
|
38954
|
-
actions: {
|
|
38955
|
-
classPropertyName: "actions",
|
|
38956
|
-
publicName: "actions",
|
|
38957
|
-
isSignal: true,
|
|
38958
|
-
isRequired: false,
|
|
38959
|
-
transformFunction: null
|
|
38960
|
-
},
|
|
38961
|
-
dismissible: {
|
|
38962
|
-
classPropertyName: "dismissible",
|
|
38963
|
-
publicName: "dismissible",
|
|
38964
|
-
isSignal: true,
|
|
38965
|
-
isRequired: false,
|
|
38966
|
-
transformFunction: null
|
|
38967
|
-
},
|
|
38968
|
-
options: {
|
|
38969
|
-
classPropertyName: "options",
|
|
38970
|
-
publicName: "options",
|
|
38971
|
-
isSignal: true,
|
|
38972
|
-
isRequired: false,
|
|
38973
|
-
transformFunction: null
|
|
38974
|
-
},
|
|
38975
|
-
cssClass: {
|
|
38976
|
-
classPropertyName: "cssClass",
|
|
38977
|
-
publicName: "class",
|
|
38978
|
-
isSignal: true,
|
|
38979
|
-
isRequired: false,
|
|
38980
|
-
transformFunction: null
|
|
38981
|
-
}
|
|
38982
|
-
},
|
|
38983
|
-
outputs: {
|
|
38984
|
-
dismissed: "dismissed",
|
|
38985
|
-
actionClick: "actionClick"
|
|
38986
|
-
},
|
|
38987
|
-
host: { classAttribute: "smart:contents" },
|
|
38988
|
-
viewQueries: [{
|
|
38989
|
-
propertyName: "outlet",
|
|
38990
|
-
first: true,
|
|
38991
|
-
predicate: NgComponentOutlet,
|
|
38992
|
-
descendants: true,
|
|
38993
|
-
isSignal: true
|
|
38994
|
-
}],
|
|
38995
|
-
ngImport: i0,
|
|
38996
|
-
template: `
|
|
38997
|
-
@if (componentType()) {
|
|
38998
|
-
<ng-container
|
|
38999
|
-
*ngComponentOutlet="componentType(); inputs: componentInputs()"
|
|
39000
|
-
/>
|
|
39001
|
-
} @else {
|
|
39002
|
-
<smart-notification-standard
|
|
39003
|
-
[title]="title()"
|
|
39004
|
-
[description]="description()"
|
|
39005
|
-
[iconName]="iconName()"
|
|
39006
|
-
[avatarUrl]="avatarUrl()"
|
|
39007
|
-
[actions]="actions()"
|
|
39008
|
-
[dismissible]="dismissible()"
|
|
39009
|
-
[options]="options()"
|
|
39010
|
-
[class]="cssClass()"
|
|
39011
|
-
(dismissed)="dismissed.emit()"
|
|
39012
|
-
(actionClick)="actionClick.emit($event)"
|
|
39013
|
-
/>
|
|
39014
|
-
}
|
|
39015
|
-
`,
|
|
39016
|
-
isInline: true,
|
|
39017
|
-
dependencies: [{
|
|
39018
|
-
kind: "component",
|
|
39019
|
-
type: NotificationStandardComponent,
|
|
39020
|
-
selector: "smart-notification-standard"
|
|
39021
|
-
}, {
|
|
39022
|
-
kind: "directive",
|
|
39023
|
-
type: NgComponentOutlet,
|
|
39024
|
-
selector: "[ngComponentOutlet]",
|
|
39025
|
-
inputs: [
|
|
39026
|
-
"ngComponentOutlet",
|
|
39027
|
-
"ngComponentOutletInputs",
|
|
39028
|
-
"ngComponentOutletInjector",
|
|
39029
|
-
"ngComponentOutletEnvironmentInjector",
|
|
39030
|
-
"ngComponentOutletContent",
|
|
39031
|
-
"ngComponentOutletNgModule"
|
|
39032
|
-
],
|
|
39033
|
-
exportAs: ["ngComponentOutlet"]
|
|
39034
|
-
}],
|
|
39035
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
39036
|
-
encapsulation: i0.ViewEncapsulation.None
|
|
39037
|
-
});
|
|
39038
|
-
};
|
|
39039
|
-
i0.ɵɵngDeclareClassMetadata({
|
|
39040
|
-
minVersion: "12.0.0",
|
|
39041
|
-
version: "22.2.2",
|
|
39042
|
-
ngImport: i0,
|
|
39043
|
-
type: NotificationComponent,
|
|
39044
|
-
decorators: [{
|
|
39045
|
-
type: Component,
|
|
39046
|
-
args: [{
|
|
39047
|
-
selector: "smart-notification",
|
|
39048
|
-
template: `
|
|
39049
|
-
@if (componentType()) {
|
|
39050
|
-
<ng-container
|
|
39051
|
-
*ngComponentOutlet="componentType(); inputs: componentInputs()"
|
|
39052
|
-
/>
|
|
39053
|
-
} @else {
|
|
39054
|
-
<smart-notification-standard
|
|
39055
|
-
[title]="title()"
|
|
39056
|
-
[description]="description()"
|
|
39057
|
-
[iconName]="iconName()"
|
|
39058
|
-
[avatarUrl]="avatarUrl()"
|
|
39059
|
-
[actions]="actions()"
|
|
39060
|
-
[dismissible]="dismissible()"
|
|
39061
|
-
[options]="options()"
|
|
39062
|
-
[class]="cssClass()"
|
|
39063
|
-
(dismissed)="dismissed.emit()"
|
|
39064
|
-
(actionClick)="actionClick.emit($event)"
|
|
39065
|
-
/>
|
|
39066
|
-
}
|
|
39067
|
-
`,
|
|
39068
|
-
encapsulation: ViewEncapsulation.None,
|
|
39069
|
-
imports: [NotificationStandardComponent, NgComponentOutlet],
|
|
39070
|
-
host: { class: "smart:contents" },
|
|
39071
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
39072
|
-
}]
|
|
39073
|
-
}],
|
|
39074
|
-
ctorParameters: () => [],
|
|
39075
|
-
propDecorators: {
|
|
39076
|
-
title: [{
|
|
39077
|
-
type: i0.Input,
|
|
39078
|
-
args: [{
|
|
39079
|
-
isSignal: true,
|
|
39080
|
-
alias: "title",
|
|
39081
|
-
required: true
|
|
39082
|
-
}]
|
|
39083
|
-
}],
|
|
39084
|
-
description: [{
|
|
39085
|
-
type: i0.Input,
|
|
39086
|
-
args: [{
|
|
39087
|
-
isSignal: true,
|
|
39088
|
-
alias: "description",
|
|
39089
|
-
required: false
|
|
39090
|
-
}]
|
|
39091
|
-
}],
|
|
39092
|
-
iconName: [{
|
|
39093
|
-
type: i0.Input,
|
|
39094
|
-
args: [{
|
|
39095
|
-
isSignal: true,
|
|
39096
|
-
alias: "iconName",
|
|
39097
|
-
required: false
|
|
39098
|
-
}]
|
|
39099
|
-
}],
|
|
39100
|
-
avatarUrl: [{
|
|
39101
|
-
type: i0.Input,
|
|
39102
|
-
args: [{
|
|
39103
|
-
isSignal: true,
|
|
39104
|
-
alias: "avatarUrl",
|
|
39105
|
-
required: false
|
|
39106
|
-
}]
|
|
39107
|
-
}],
|
|
39108
|
-
actions: [{
|
|
39109
|
-
type: i0.Input,
|
|
39110
|
-
args: [{
|
|
39111
|
-
isSignal: true,
|
|
39112
|
-
alias: "actions",
|
|
39113
|
-
required: false
|
|
39114
|
-
}]
|
|
39115
|
-
}],
|
|
39116
|
-
dismissible: [{
|
|
39117
|
-
type: i0.Input,
|
|
39118
|
-
args: [{
|
|
39119
|
-
isSignal: true,
|
|
39120
|
-
alias: "dismissible",
|
|
39121
|
-
required: false
|
|
39122
|
-
}]
|
|
39123
|
-
}],
|
|
39124
|
-
options: [{
|
|
39125
|
-
type: i0.Input,
|
|
39126
|
-
args: [{
|
|
39127
|
-
isSignal: true,
|
|
39128
|
-
alias: "options",
|
|
39129
|
-
required: false
|
|
39130
|
-
}]
|
|
39131
|
-
}],
|
|
39132
|
-
cssClass: [{
|
|
39133
|
-
type: i0.Input,
|
|
39134
|
-
args: [{
|
|
39135
|
-
isSignal: true,
|
|
39136
|
-
alias: "class",
|
|
39137
|
-
required: false
|
|
39138
|
-
}]
|
|
39139
|
-
}],
|
|
39140
|
-
dismissed: [{
|
|
39141
|
-
type: i0.Output,
|
|
39142
|
-
args: ["dismissed"]
|
|
39143
|
-
}],
|
|
39144
|
-
actionClick: [{
|
|
39145
|
-
type: i0.Output,
|
|
39146
|
-
args: ["actionClick"]
|
|
39147
|
-
}],
|
|
39148
|
-
outlet: [{
|
|
39149
|
-
type: i0.ViewChild,
|
|
39150
|
-
args: [i0.forwardRef(() => NgComponentOutlet), { isSignal: true }]
|
|
39151
|
-
}]
|
|
39152
|
-
}
|
|
39153
|
-
});
|
|
39154
39444
|
var PageBaseComponent = class PageBaseComponent {
|
|
39155
39445
|
el = inject(ElementRef);
|
|
39156
39446
|
renderer = inject(Renderer2);
|