primeng 19.0.4 → 19.0.5
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/fesm2022/primeng-button.mjs +63 -61
- package/fesm2022/primeng-button.mjs.map +1 -1
- package/package.json +213 -213
| @@ -36,6 +36,12 @@ const theme = ({ dt }) => ` | |
| 36 36 | 
             
                gap: ${dt('button.gap')};
         | 
| 37 37 | 
             
            }
         | 
| 38 38 |  | 
| 39 | 
            +
            .p-button-icon,
         | 
| 40 | 
            +
            .p-button-icon:before,
         | 
| 41 | 
            +
            .p-button-icon:after {
         | 
| 42 | 
            +
                line-height: inherit;
         | 
| 43 | 
            +
            }
         | 
| 44 | 
            +
             | 
| 39 45 | 
             
            .p-button:disabled {
         | 
| 40 46 | 
             
                cursor: default;
         | 
| 41 47 | 
             
            }
         | 
| @@ -721,107 +727,93 @@ const _c1 = ["loading"]; | |
| 721 727 | 
             
            const _c2 = ["icon"];
         | 
| 722 728 | 
             
            const _c3 = ["*"];
         | 
| 723 729 | 
             
            const _c4 = a0 => ({ class: a0 });
         | 
| 724 | 
            -
            function  | 
| 730 | 
            +
            function Button_ng_container_2_Template(rf, ctx) { if (rf & 1) {
         | 
| 725 731 | 
             
                i0.ɵɵelementContainer(0);
         | 
| 726 732 | 
             
            } }
         | 
| 727 | 
            -
            function  | 
| 733 | 
            +
            function Button_ng_container_3_ng_container_1_span_1_Template(rf, ctx) { if (rf & 1) {
         | 
| 728 734 | 
             
                i0.ɵɵelement(0, "span", 8);
         | 
| 729 735 | 
             
            } if (rf & 2) {
         | 
| 730 | 
            -
                const ctx_r0 = i0.ɵɵnextContext( | 
| 736 | 
            +
                const ctx_r0 = i0.ɵɵnextContext(3);
         | 
| 731 737 | 
             
                i0.ɵɵproperty("ngClass", ctx_r0.iconClass());
         | 
| 732 738 | 
             
                i0.ɵɵattribute("aria-hidden", true)("data-pc-section", "loadingicon");
         | 
| 733 739 | 
             
            } }
         | 
| 734 | 
            -
            function  | 
| 740 | 
            +
            function Button_ng_container_3_ng_container_1_SpinnerIcon_2_Template(rf, ctx) { if (rf & 1) {
         | 
| 735 741 | 
             
                i0.ɵɵelement(0, "SpinnerIcon", 9);
         | 
| 736 742 | 
             
            } if (rf & 2) {
         | 
| 737 | 
            -
                const ctx_r0 = i0.ɵɵnextContext( | 
| 743 | 
            +
                const ctx_r0 = i0.ɵɵnextContext(3);
         | 
| 738 744 | 
             
                i0.ɵɵproperty("styleClass", ctx_r0.spinnerIconClass())("spin", true);
         | 
| 739 745 | 
             
                i0.ɵɵattribute("aria-hidden", true)("data-pc-section", "loadingicon");
         | 
| 740 746 | 
             
            } }
         | 
| 741 | 
            -
            function  | 
| 747 | 
            +
            function Button_ng_container_3_ng_container_1_Template(rf, ctx) { if (rf & 1) {
         | 
| 742 748 | 
             
                i0.ɵɵelementContainerStart(0);
         | 
| 743 | 
            -
                i0.ɵɵtemplate(1,  | 
| 749 | 
            +
                i0.ɵɵtemplate(1, Button_ng_container_3_ng_container_1_span_1_Template, 1, 3, "span", 6)(2, Button_ng_container_3_ng_container_1_SpinnerIcon_2_Template, 1, 4, "SpinnerIcon", 7);
         | 
| 744 750 | 
             
                i0.ɵɵelementContainerEnd();
         | 
| 745 751 | 
             
            } if (rf & 2) {
         | 
| 746 | 
            -
                const ctx_r0 = i0.ɵɵnextContext( | 
| 752 | 
            +
                const ctx_r0 = i0.ɵɵnextContext(2);
         | 
| 747 753 | 
             
                i0.ɵɵadvance();
         | 
| 748 754 | 
             
                i0.ɵɵproperty("ngIf", ctx_r0.loadingIcon);
         | 
| 749 755 | 
             
                i0.ɵɵadvance();
         | 
| 750 756 | 
             
                i0.ɵɵproperty("ngIf", !ctx_r0.loadingIcon);
         | 
| 751 757 | 
             
            } }
         | 
| 752 | 
            -
            function  | 
| 753 | 
            -
            function  | 
| 754 | 
            -
                i0.ɵɵtemplate(0,  | 
| 758 | 
            +
            function Button_ng_container_3_2_ng_template_0_Template(rf, ctx) { }
         | 
| 759 | 
            +
            function Button_ng_container_3_2_Template(rf, ctx) { if (rf & 1) {
         | 
| 760 | 
            +
                i0.ɵɵtemplate(0, Button_ng_container_3_2_ng_template_0_Template, 0, 0, "ng-template", 10);
         | 
| 755 761 | 
             
            } if (rf & 2) {
         | 
| 756 | 
            -
                const ctx_r0 = i0.ɵɵnextContext( | 
| 762 | 
            +
                const ctx_r0 = i0.ɵɵnextContext(2);
         | 
| 757 763 | 
             
                i0.ɵɵproperty("ngIf", ctx_r0.loadingIconTemplate || ctx_r0._loadingIconTemplate);
         | 
| 758 764 | 
             
            } }
         | 
| 759 | 
            -
            function  | 
| 765 | 
            +
            function Button_ng_container_3_Template(rf, ctx) { if (rf & 1) {
         | 
| 760 766 | 
             
                i0.ɵɵelementContainerStart(0);
         | 
| 761 | 
            -
                i0.ɵɵtemplate(1,  | 
| 767 | 
            +
                i0.ɵɵtemplate(1, Button_ng_container_3_ng_container_1_Template, 3, 2, "ng-container", 2)(2, Button_ng_container_3_2_Template, 1, 1, null, 5);
         | 
| 762 768 | 
             
                i0.ɵɵelementContainerEnd();
         | 
| 763 769 | 
             
            } if (rf & 2) {
         | 
| 764 | 
            -
                const ctx_r0 = i0.ɵɵnextContext( | 
| 770 | 
            +
                const ctx_r0 = i0.ɵɵnextContext();
         | 
| 765 771 | 
             
                i0.ɵɵadvance();
         | 
| 766 772 | 
             
                i0.ɵɵproperty("ngIf", !ctx_r0.loadingIconTemplate && !ctx_r0._loadingIconTemplate);
         | 
| 767 773 | 
             
                i0.ɵɵadvance();
         | 
| 768 774 | 
             
                i0.ɵɵproperty("ngTemplateOutlet", ctx_r0.loadingIconTemplate || ctx_r0._loadingIconTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction1(3, _c4, ctx_r0.iconClass()));
         | 
| 769 775 | 
             
            } }
         | 
| 770 | 
            -
            function  | 
| 776 | 
            +
            function Button_ng_container_4_span_1_Template(rf, ctx) { if (rf & 1) {
         | 
| 771 777 | 
             
                i0.ɵɵelement(0, "span", 8);
         | 
| 772 778 | 
             
            } if (rf & 2) {
         | 
| 773 | 
            -
                const ctx_r0 = i0.ɵɵnextContext( | 
| 779 | 
            +
                const ctx_r0 = i0.ɵɵnextContext(2);
         | 
| 774 780 | 
             
                i0.ɵɵclassMap(ctx_r0.icon);
         | 
| 775 781 | 
             
                i0.ɵɵproperty("ngClass", ctx_r0.iconClass());
         | 
| 776 782 | 
             
                i0.ɵɵattribute("data-pc-section", "icon");
         | 
| 777 783 | 
             
            } }
         | 
| 778 | 
            -
            function  | 
| 779 | 
            -
            function  | 
| 780 | 
            -
                i0.ɵɵtemplate(0,  | 
| 784 | 
            +
            function Button_ng_container_4_2_ng_template_0_Template(rf, ctx) { }
         | 
| 785 | 
            +
            function Button_ng_container_4_2_Template(rf, ctx) { if (rf & 1) {
         | 
| 786 | 
            +
                i0.ɵɵtemplate(0, Button_ng_container_4_2_ng_template_0_Template, 0, 0, "ng-template", 10);
         | 
| 781 787 | 
             
            } if (rf & 2) {
         | 
| 782 | 
            -
                const ctx_r0 = i0.ɵɵnextContext( | 
| 788 | 
            +
                const ctx_r0 = i0.ɵɵnextContext(2);
         | 
| 783 789 | 
             
                i0.ɵɵproperty("ngIf", !ctx_r0.icon && (ctx_r0.iconTemplate || ctx_r0._iconTemplate));
         | 
| 784 790 | 
             
            } }
         | 
| 785 | 
            -
            function  | 
| 791 | 
            +
            function Button_ng_container_4_Template(rf, ctx) { if (rf & 1) {
         | 
| 786 792 | 
             
                i0.ɵɵelementContainerStart(0);
         | 
| 787 | 
            -
                i0.ɵɵtemplate(1,  | 
| 793 | 
            +
                i0.ɵɵtemplate(1, Button_ng_container_4_span_1_Template, 1, 4, "span", 11)(2, Button_ng_container_4_2_Template, 1, 1, null, 5);
         | 
| 788 794 | 
             
                i0.ɵɵelementContainerEnd();
         | 
| 789 795 | 
             
            } if (rf & 2) {
         | 
| 790 | 
            -
                const ctx_r0 = i0.ɵɵnextContext( | 
| 796 | 
            +
                const ctx_r0 = i0.ɵɵnextContext();
         | 
| 791 797 | 
             
                i0.ɵɵadvance();
         | 
| 792 798 | 
             
                i0.ɵɵproperty("ngIf", ctx_r0.icon && !ctx_r0.iconTemplate && !ctx_r0._iconTemplate);
         | 
| 793 799 | 
             
                i0.ɵɵadvance();
         | 
| 794 800 | 
             
                i0.ɵɵproperty("ngTemplateOutlet", ctx_r0.iconTemplate || ctx_r0._iconTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction1(3, _c4, ctx_r0.iconClass()));
         | 
| 795 801 | 
             
            } }
         | 
| 796 | 
            -
            function  | 
| 802 | 
            +
            function Button_span_5_Template(rf, ctx) { if (rf & 1) {
         | 
| 797 803 | 
             
                i0.ɵɵelementStart(0, "span", 12);
         | 
| 798 804 | 
             
                i0.ɵɵtext(1);
         | 
| 799 805 | 
             
                i0.ɵɵelementEnd();
         | 
| 800 806 | 
             
            } if (rf & 2) {
         | 
| 801 | 
            -
                const ctx_r0 = i0.ɵɵnextContext( | 
| 807 | 
            +
                const ctx_r0 = i0.ɵɵnextContext();
         | 
| 802 808 | 
             
                i0.ɵɵattribute("aria-hidden", ctx_r0.icon && !ctx_r0.label)("data-pc-section", "label");
         | 
| 803 809 | 
             
                i0.ɵɵadvance();
         | 
| 804 | 
            -
                i0.ɵɵtextInterpolate(ctx_r0.label | 
| 810 | 
            +
                i0.ɵɵtextInterpolate(ctx_r0.label);
         | 
| 805 811 | 
             
            } }
         | 
| 806 | 
            -
            function  | 
| 812 | 
            +
            function Button_p_badge_6_Template(rf, ctx) { if (rf & 1) {
         | 
| 807 813 | 
             
                i0.ɵɵelement(0, "p-badge", 13);
         | 
| 808 | 
            -
            } if (rf & 2) {
         | 
| 809 | 
            -
                const ctx_r0 = i0.ɵɵnextContext(2);
         | 
| 810 | 
            -
                i0.ɵɵproperty("value", ctx_r0.badge)("severity", ctx_r0.badgeSeverity);
         | 
| 811 | 
            -
            } }
         | 
| 812 | 
            -
            function Button_ProjectionFallback_1_Template(rf, ctx) { if (rf & 1) {
         | 
| 813 | 
            -
                i0.ɵɵtemplate(0, Button_ProjectionFallback_1_ng_container_0_Template, 1, 0, "ng-container", 1)(1, Button_ProjectionFallback_1_ng_container_1_Template, 3, 5, "ng-container", 2)(2, Button_ProjectionFallback_1_ng_container_2_Template, 3, 5, "ng-container", 2)(3, Button_ProjectionFallback_1_span_3_Template, 2, 3, "span", 3)(4, Button_ProjectionFallback_1_p_badge_4_Template, 1, 2, "p-badge", 4);
         | 
| 814 814 | 
             
            } if (rf & 2) {
         | 
| 815 815 | 
             
                const ctx_r0 = i0.ɵɵnextContext();
         | 
| 816 | 
            -
                i0.ɵɵproperty(" | 
| 817 | 
            -
                i0.ɵɵadvance();
         | 
| 818 | 
            -
                i0.ɵɵproperty("ngIf", ctx_r0.loading);
         | 
| 819 | 
            -
                i0.ɵɵadvance();
         | 
| 820 | 
            -
                i0.ɵɵproperty("ngIf", !ctx_r0.loading);
         | 
| 821 | 
            -
                i0.ɵɵadvance();
         | 
| 822 | 
            -
                i0.ɵɵproperty("ngIf", !ctx_r0.contentTemplate && !ctx_r0._contentTemplate);
         | 
| 823 | 
            -
                i0.ɵɵadvance();
         | 
| 824 | 
            -
                i0.ɵɵproperty("ngIf", !ctx_r0.contentTemplate && !ctx_r0._contentTemplate && ctx_r0.badge);
         | 
| 816 | 
            +
                i0.ɵɵproperty("value", ctx_r0.badge)("severity", ctx_r0.badgeSeverity);
         | 
| 825 817 | 
             
            } }
         | 
| 826 818 | 
             
            const INTERNAL_BUTTON_CLASSES = {
         | 
| 827 819 | 
             
                button: 'p-button',
         | 
| @@ -1478,15 +1470,26 @@ class Button extends BaseComponent { | |
| 1478 1470 | 
             
                        i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.loadingIconTemplate = _t.first);
         | 
| 1479 1471 | 
             
                        i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.iconTemplate = _t.first);
         | 
| 1480 1472 | 
             
                        i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.templates = _t);
         | 
| 1481 | 
            -
                    } }, inputs: { type: "type", iconPos: "iconPos", icon: "icon", badge: "badge", label: "label", disabled: [2, "disabled", "disabled", booleanAttribute], loading: [2, "loading", "loading", booleanAttribute], loadingIcon: "loadingIcon", raised: [2, "raised", "raised", booleanAttribute], rounded: [2, "rounded", "rounded", booleanAttribute], text: [2, "text", "text", booleanAttribute], plain: [2, "plain", "plain", booleanAttribute], severity: "severity", outlined: [2, "outlined", "outlined", booleanAttribute], link: [2, "link", "link", booleanAttribute], tabindex: [2, "tabindex", "tabindex", numberAttribute], size: "size", variant: "variant", style: "style", styleClass: "styleClass", badgeClass: "badgeClass", badgeSeverity: "badgeSeverity", ariaLabel: "ariaLabel", autofocus: [2, "autofocus", "autofocus", booleanAttribute], fluid: [2, "fluid", "fluid", booleanAttribute], buttonProps: "buttonProps" }, outputs: { onClick: "onClick", onFocus: "onFocus", onBlur: "onBlur" }, features: [i0.ɵɵProvidersFeature([ButtonStyle]), i0.ɵɵInputTransformsFeature, i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c3, decls:  | 
| 1473 | 
            +
                    } }, inputs: { type: "type", iconPos: "iconPos", icon: "icon", badge: "badge", label: "label", disabled: [2, "disabled", "disabled", booleanAttribute], loading: [2, "loading", "loading", booleanAttribute], loadingIcon: "loadingIcon", raised: [2, "raised", "raised", booleanAttribute], rounded: [2, "rounded", "rounded", booleanAttribute], text: [2, "text", "text", booleanAttribute], plain: [2, "plain", "plain", booleanAttribute], severity: "severity", outlined: [2, "outlined", "outlined", booleanAttribute], link: [2, "link", "link", booleanAttribute], tabindex: [2, "tabindex", "tabindex", numberAttribute], size: "size", variant: "variant", style: "style", styleClass: "styleClass", badgeClass: "badgeClass", badgeSeverity: "badgeSeverity", ariaLabel: "ariaLabel", autofocus: [2, "autofocus", "autofocus", booleanAttribute], fluid: [2, "fluid", "fluid", booleanAttribute], buttonProps: "buttonProps" }, outputs: { onClick: "onClick", onFocus: "onFocus", onBlur: "onBlur" }, features: [i0.ɵɵProvidersFeature([ButtonStyle]), i0.ɵɵInputTransformsFeature, i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c3, decls: 7, vars: 14, consts: [["pRipple", "", 3, "click", "focus", "blur", "ngStyle", "disabled", "ngClass", "pAutoFocus"], [4, "ngTemplateOutlet"], [4, "ngIf"], ["class", "p-button-label", 4, "ngIf"], [3, "value", "severity", 4, "ngIf"], [4, "ngTemplateOutlet", "ngTemplateOutletContext"], [3, "ngClass", 4, "ngIf"], [3, "styleClass", "spin", 4, "ngIf"], [3, "ngClass"], [3, "styleClass", "spin"], [3, "ngIf"], [3, "class", "ngClass", 4, "ngIf"], [1, "p-button-label"], [3, "value", "severity"]], template: function Button_Template(rf, ctx) { if (rf & 1) {
         | 
| 1482 1474 | 
             
                        i0.ɵɵprojectionDef();
         | 
| 1483 1475 | 
             
                        i0.ɵɵelementStart(0, "button", 0);
         | 
| 1484 1476 | 
             
                        i0.ɵɵlistener("click", function Button_Template_button_click_0_listener($event) { return ctx.onClick.emit($event); })("focus", function Button_Template_button_focus_0_listener($event) { return ctx.onFocus.emit($event); })("blur", function Button_Template_button_blur_0_listener($event) { return ctx.onBlur.emit($event); });
         | 
| 1485 | 
            -
                        i0.ɵɵprojection(1 | 
| 1477 | 
            +
                        i0.ɵɵprojection(1);
         | 
| 1478 | 
            +
                        i0.ɵɵtemplate(2, Button_ng_container_2_Template, 1, 0, "ng-container", 1)(3, Button_ng_container_3_Template, 3, 5, "ng-container", 2)(4, Button_ng_container_4_Template, 3, 5, "ng-container", 2)(5, Button_span_5_Template, 2, 3, "span", 3)(6, Button_p_badge_6_Template, 1, 2, "p-badge", 4);
         | 
| 1486 1479 | 
             
                        i0.ɵɵelementEnd();
         | 
| 1487 1480 | 
             
                    } if (rf & 2) {
         | 
| 1488 1481 | 
             
                        i0.ɵɵproperty("ngStyle", ctx.style)("disabled", ctx.disabled || ctx.loading)("ngClass", ctx.buttonClass)("pAutoFocus", ctx.autofocus);
         | 
| 1489 1482 | 
             
                        i0.ɵɵattribute("type", ctx.type)("aria-label", ctx.ariaLabel)("data-pc-name", "button")("data-pc-section", "root")("tabindex", ctx.tabindex);
         | 
| 1483 | 
            +
                        i0.ɵɵadvance(2);
         | 
| 1484 | 
            +
                        i0.ɵɵproperty("ngTemplateOutlet", ctx.contentTemplate || ctx._contentTemplate);
         | 
| 1485 | 
            +
                        i0.ɵɵadvance();
         | 
| 1486 | 
            +
                        i0.ɵɵproperty("ngIf", ctx.loading);
         | 
| 1487 | 
            +
                        i0.ɵɵadvance();
         | 
| 1488 | 
            +
                        i0.ɵɵproperty("ngIf", !ctx.loading);
         | 
| 1489 | 
            +
                        i0.ɵɵadvance();
         | 
| 1490 | 
            +
                        i0.ɵɵproperty("ngIf", !ctx.contentTemplate && !ctx._contentTemplate && ctx.label);
         | 
| 1491 | 
            +
                        i0.ɵɵadvance();
         | 
| 1492 | 
            +
                        i0.ɵɵproperty("ngIf", !ctx.contentTemplate && !ctx._contentTemplate && ctx.badge);
         | 
| 1490 1493 | 
             
                    } }, dependencies: [CommonModule, i1.NgClass, i1.NgIf, i1.NgTemplateOutlet, i1.NgStyle, Ripple, AutoFocus, SpinnerIcon, BadgeModule, i2.Badge, SharedModule], encapsulation: 2, changeDetection: 0 });
         | 
| 1491 1494 | 
             
            }
         | 
| 1492 1495 | 
             
            (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(Button, [{
         | 
| @@ -1511,22 +1514,21 @@ class Button extends BaseComponent { | |
| 1511 1514 | 
             
                        [attr.tabindex]="tabindex"
         | 
| 1512 1515 | 
             
                        [pAutoFocus]="autofocus"
         | 
| 1513 1516 | 
             
                    >
         | 
| 1514 | 
            -
                        <ng-content>
         | 
| 1515 | 
            -
             | 
| 1516 | 
            -
             | 
| 1517 | 
            -
             | 
| 1518 | 
            -
             | 
| 1519 | 
            -
             | 
| 1520 | 
            -
                                </ng-container>
         | 
| 1521 | 
            -
                                <ng-template [ngIf]="loadingIconTemplate || _loadingIconTemplate" *ngTemplateOutlet="loadingIconTemplate || _loadingIconTemplate; context: { class: iconClass() }"></ng-template>
         | 
| 1522 | 
            -
                            </ng-container>
         | 
| 1523 | 
            -
                            <ng-container *ngIf="!loading">
         | 
| 1524 | 
            -
                                <span *ngIf="icon && !iconTemplate && !_iconTemplate" [class]="icon" [ngClass]="iconClass()" [attr.data-pc-section]="'icon'"></span>
         | 
| 1525 | 
            -
                                <ng-template [ngIf]="!icon && (iconTemplate || _iconTemplate)" *ngTemplateOutlet="iconTemplate || _iconTemplate; context: { class: iconClass() }"></ng-template>
         | 
| 1517 | 
            +
                        <ng-content></ng-content>
         | 
| 1518 | 
            +
                        <ng-container *ngTemplateOutlet="contentTemplate || _contentTemplate"></ng-container>
         | 
| 1519 | 
            +
                        <ng-container *ngIf="loading">
         | 
| 1520 | 
            +
                            <ng-container *ngIf="!loadingIconTemplate && !_loadingIconTemplate">
         | 
| 1521 | 
            +
                                <span *ngIf="loadingIcon" [ngClass]="iconClass()" [attr.aria-hidden]="true" [attr.data-pc-section]="'loadingicon'"></span>
         | 
| 1522 | 
            +
                                <SpinnerIcon *ngIf="!loadingIcon" [styleClass]="spinnerIconClass()" [spin]="true" [attr.aria-hidden]="true" [attr.data-pc-section]="'loadingicon'" />
         | 
| 1526 1523 | 
             
                            </ng-container>
         | 
| 1527 | 
            -
                            < | 
| 1528 | 
            -
             | 
| 1529 | 
            -
                         | 
| 1524 | 
            +
                            <ng-template [ngIf]="loadingIconTemplate || _loadingIconTemplate" *ngTemplateOutlet="loadingIconTemplate || _loadingIconTemplate; context: { class: iconClass() }"></ng-template>
         | 
| 1525 | 
            +
                        </ng-container>
         | 
| 1526 | 
            +
                        <ng-container *ngIf="!loading">
         | 
| 1527 | 
            +
                            <span *ngIf="icon && !iconTemplate && !_iconTemplate" [class]="icon" [ngClass]="iconClass()" [attr.data-pc-section]="'icon'"></span>
         | 
| 1528 | 
            +
                            <ng-template [ngIf]="!icon && (iconTemplate || _iconTemplate)" *ngTemplateOutlet="iconTemplate || _iconTemplate; context: { class: iconClass() }"></ng-template>
         | 
| 1529 | 
            +
                        </ng-container>
         | 
| 1530 | 
            +
                        <span class="p-button-label" [attr.aria-hidden]="icon && !label" *ngIf="!contentTemplate && !_contentTemplate && label" [attr.data-pc-section]="'label'">{{ label }}</span>
         | 
| 1531 | 
            +
                        <p-badge *ngIf="!contentTemplate && !_contentTemplate && badge" [value]="badge" [severity]="badgeSeverity"></p-badge>
         | 
| 1530 1532 | 
             
                    </button>
         | 
| 1531 1533 | 
             
                `,
         | 
| 1532 1534 | 
             
                            changeDetection: ChangeDetectionStrategy.OnPush,
         | 
| @@ -1615,7 +1617,7 @@ class Button extends BaseComponent { | |
| 1615 1617 | 
             
                        type: ContentChildren,
         | 
| 1616 1618 | 
             
                        args: [PrimeTemplate]
         | 
| 1617 1619 | 
             
                    }] }); })();
         | 
| 1618 | 
            -
            (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(Button, { className: "Button", filePath: "button.ts", lineNumber:  | 
| 1620 | 
            +
            (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(Button, { className: "Button", filePath: "button.ts", lineNumber: 471 }); })();
         | 
| 1619 1621 | 
             
            class ButtonModule {
         | 
| 1620 1622 | 
             
                static ɵfac = function ButtonModule_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ButtonModule)(); };
         | 
| 1621 1623 | 
             
                static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: ButtonModule });
         |