[59329aa] | 1 | import { NgModule, Component, Input, Output, EventEmitter, ChangeDetectionStrategy, ViewEncapsulation, ContentChildren } from '@angular/core';
|
---|
| 2 | import { CommonModule } from '@angular/common';
|
---|
| 3 | import { ButtonModule } from 'primeng/button';
|
---|
| 4 | import { PrimeTemplate } from 'primeng/api';
|
---|
| 5 | import * as i0 from "@angular/core";
|
---|
| 6 | import * as i1 from "@angular/common";
|
---|
| 7 | import * as i2 from "primeng/button";
|
---|
| 8 | export class InplaceDisplay {
|
---|
| 9 | }
|
---|
| 10 | InplaceDisplay.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: InplaceDisplay, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
---|
| 11 | InplaceDisplay.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0", type: InplaceDisplay, selector: "p-inplaceDisplay", host: { classAttribute: "p-element" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true });
|
---|
| 12 | i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: InplaceDisplay, decorators: [{
|
---|
| 13 | type: Component,
|
---|
| 14 | args: [{
|
---|
| 15 | selector: 'p-inplaceDisplay',
|
---|
| 16 | template: '<ng-content></ng-content>',
|
---|
| 17 | host: {
|
---|
| 18 | 'class': 'p-element'
|
---|
| 19 | }
|
---|
| 20 | }]
|
---|
| 21 | }] });
|
---|
| 22 | export class InplaceContent {
|
---|
| 23 | }
|
---|
| 24 | InplaceContent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: InplaceContent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
---|
| 25 | InplaceContent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0", type: InplaceContent, selector: "p-inplaceContent", host: { classAttribute: "p-element" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true });
|
---|
| 26 | i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: InplaceContent, decorators: [{
|
---|
| 27 | type: Component,
|
---|
| 28 | args: [{
|
---|
| 29 | selector: 'p-inplaceContent',
|
---|
| 30 | template: '<ng-content></ng-content>',
|
---|
| 31 | host: {
|
---|
| 32 | 'class': 'p-element'
|
---|
| 33 | }
|
---|
| 34 | }]
|
---|
| 35 | }] });
|
---|
| 36 | export class Inplace {
|
---|
| 37 | constructor(cd) {
|
---|
| 38 | this.cd = cd;
|
---|
| 39 | this.closeIcon = 'pi pi-times';
|
---|
| 40 | this.onActivate = new EventEmitter();
|
---|
| 41 | this.onDeactivate = new EventEmitter();
|
---|
| 42 | }
|
---|
| 43 | ngAfterContentInit() {
|
---|
| 44 | this.templates.forEach((item) => {
|
---|
| 45 | switch (item.getType()) {
|
---|
| 46 | case 'display':
|
---|
| 47 | this.displayTemplate = item.template;
|
---|
| 48 | break;
|
---|
| 49 | case 'content':
|
---|
| 50 | this.contentTemplate = item.template;
|
---|
| 51 | break;
|
---|
| 52 | }
|
---|
| 53 | });
|
---|
| 54 | }
|
---|
| 55 | onActivateClick(event) {
|
---|
| 56 | if (!this.preventClick)
|
---|
| 57 | this.activate(event);
|
---|
| 58 | }
|
---|
| 59 | onDeactivateClick(event) {
|
---|
| 60 | if (!this.preventClick)
|
---|
| 61 | this.deactivate(event);
|
---|
| 62 | }
|
---|
| 63 | activate(event) {
|
---|
| 64 | if (!this.disabled) {
|
---|
| 65 | this.active = true;
|
---|
| 66 | this.onActivate.emit(event);
|
---|
| 67 | this.cd.markForCheck();
|
---|
| 68 | }
|
---|
| 69 | }
|
---|
| 70 | deactivate(event) {
|
---|
| 71 | if (!this.disabled) {
|
---|
| 72 | this.active = false;
|
---|
| 73 | this.hover = false;
|
---|
| 74 | this.onDeactivate.emit(event);
|
---|
| 75 | this.cd.markForCheck();
|
---|
| 76 | }
|
---|
| 77 | }
|
---|
| 78 | onKeydown(event) {
|
---|
| 79 | if (event.which === 13) {
|
---|
| 80 | this.activate(event);
|
---|
| 81 | event.preventDefault();
|
---|
| 82 | }
|
---|
| 83 | }
|
---|
| 84 | }
|
---|
| 85 | Inplace.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: Inplace, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
---|
| 86 | Inplace.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0", type: Inplace, selector: "p-inplace", inputs: { active: "active", closable: "closable", disabled: "disabled", preventClick: "preventClick", style: "style", styleClass: "styleClass", closeIcon: "closeIcon" }, outputs: { onActivate: "onActivate", onDeactivate: "onDeactivate" }, host: { classAttribute: "p-element" }, queries: [{ propertyName: "templates", predicate: PrimeTemplate }], ngImport: i0, template: `
|
---|
| 87 | <div [ngClass]="{'p-inplace p-component': true, 'p-inplace-closable': closable}" [ngStyle]="style" [class]="styleClass">
|
---|
| 88 | <div class="p-inplace-display" (click)="onActivateClick($event)" tabindex="0" (keydown)="onKeydown($event)"
|
---|
| 89 | [ngClass]="{'p-disabled':disabled}" *ngIf="!active">
|
---|
| 90 | <ng-content select="[pInplaceDisplay]"></ng-content>
|
---|
| 91 | <ng-container *ngTemplateOutlet="displayTemplate"></ng-container>
|
---|
| 92 | </div>
|
---|
| 93 | <div class="p-inplace-content" *ngIf="active">
|
---|
| 94 | <ng-content select="[pInplaceContent]"></ng-content>
|
---|
| 95 | <ng-container *ngTemplateOutlet="contentTemplate"></ng-container>
|
---|
| 96 | <button type="button" [icon]="closeIcon" pButton (click)="onDeactivateClick($event)" *ngIf="closable"></button>
|
---|
| 97 | </div>
|
---|
| 98 | </div>
|
---|
| 99 | `, isInline: true, styles: [".p-inplace .p-inplace-display{display:inline;cursor:pointer}.p-inplace .p-inplace-content{display:inline}.p-fluid .p-inplace.p-inplace-closable .p-inplace-content{display:flex}.p-fluid .p-inplace.p-inplace-closable .p-inplace-content>.p-inputtext{flex:1 1 auto;width:1%}\n"], directives: [{ type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i2.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
---|
| 100 | i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: Inplace, decorators: [{
|
---|
| 101 | type: Component,
|
---|
| 102 | args: [{ selector: 'p-inplace', template: `
|
---|
| 103 | <div [ngClass]="{'p-inplace p-component': true, 'p-inplace-closable': closable}" [ngStyle]="style" [class]="styleClass">
|
---|
| 104 | <div class="p-inplace-display" (click)="onActivateClick($event)" tabindex="0" (keydown)="onKeydown($event)"
|
---|
| 105 | [ngClass]="{'p-disabled':disabled}" *ngIf="!active">
|
---|
| 106 | <ng-content select="[pInplaceDisplay]"></ng-content>
|
---|
| 107 | <ng-container *ngTemplateOutlet="displayTemplate"></ng-container>
|
---|
| 108 | </div>
|
---|
| 109 | <div class="p-inplace-content" *ngIf="active">
|
---|
| 110 | <ng-content select="[pInplaceContent]"></ng-content>
|
---|
| 111 | <ng-container *ngTemplateOutlet="contentTemplate"></ng-container>
|
---|
| 112 | <button type="button" [icon]="closeIcon" pButton (click)="onDeactivateClick($event)" *ngIf="closable"></button>
|
---|
| 113 | </div>
|
---|
| 114 | </div>
|
---|
| 115 | `, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: {
|
---|
| 116 | 'class': 'p-element'
|
---|
| 117 | }, styles: [".p-inplace .p-inplace-display{display:inline;cursor:pointer}.p-inplace .p-inplace-content{display:inline}.p-fluid .p-inplace.p-inplace-closable .p-inplace-content{display:flex}.p-fluid .p-inplace.p-inplace-closable .p-inplace-content>.p-inputtext{flex:1 1 auto;width:1%}\n"] }]
|
---|
| 118 | }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { active: [{
|
---|
| 119 | type: Input
|
---|
| 120 | }], closable: [{
|
---|
| 121 | type: Input
|
---|
| 122 | }], disabled: [{
|
---|
| 123 | type: Input
|
---|
| 124 | }], preventClick: [{
|
---|
| 125 | type: Input
|
---|
| 126 | }], style: [{
|
---|
| 127 | type: Input
|
---|
| 128 | }], styleClass: [{
|
---|
| 129 | type: Input
|
---|
| 130 | }], closeIcon: [{
|
---|
| 131 | type: Input
|
---|
| 132 | }], templates: [{
|
---|
| 133 | type: ContentChildren,
|
---|
| 134 | args: [PrimeTemplate]
|
---|
| 135 | }], onActivate: [{
|
---|
| 136 | type: Output
|
---|
| 137 | }], onDeactivate: [{
|
---|
| 138 | type: Output
|
---|
| 139 | }] } });
|
---|
| 140 | export class InplaceModule {
|
---|
| 141 | }
|
---|
| 142 | InplaceModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: InplaceModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
---|
| 143 | InplaceModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: InplaceModule, declarations: [Inplace, InplaceDisplay, InplaceContent], imports: [CommonModule, ButtonModule], exports: [Inplace, InplaceDisplay, InplaceContent, ButtonModule] });
|
---|
| 144 | InplaceModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: InplaceModule, imports: [[CommonModule, ButtonModule], ButtonModule] });
|
---|
| 145 | i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: InplaceModule, decorators: [{
|
---|
| 146 | type: NgModule,
|
---|
| 147 | args: [{
|
---|
| 148 | imports: [CommonModule, ButtonModule],
|
---|
| 149 | exports: [Inplace, InplaceDisplay, InplaceContent, ButtonModule],
|
---|
| 150 | declarations: [Inplace, InplaceDisplay, InplaceContent]
|
---|
| 151 | }]
|
---|
| 152 | }] });
|
---|
| 153 | //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5wbGFjZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9hcHAvY29tcG9uZW50cy9pbnBsYWNlL2lucGxhY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFDLFFBQVEsRUFBQyxTQUFTLEVBQUMsS0FBSyxFQUFDLE1BQU0sRUFBQyxZQUFZLEVBQUMsdUJBQXVCLEVBQUUsaUJBQWlCLEVBQStELGVBQWUsRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUNwTSxPQUFPLEVBQUMsWUFBWSxFQUFDLE1BQU0saUJBQWlCLENBQUM7QUFDN0MsT0FBTyxFQUFDLFlBQVksRUFBQyxNQUFNLGdCQUFnQixDQUFDO0FBQzVDLE9BQU8sRUFBQyxhQUFhLEVBQUMsTUFBTSxhQUFhLENBQUM7Ozs7QUFTMUMsTUFBTSxPQUFPLGNBQWM7OzJHQUFkLGNBQWM7K0ZBQWQsY0FBYywrRkFMYiwyQkFBMkI7MkZBSzVCLGNBQWM7a0JBUDFCLFNBQVM7bUJBQUM7b0JBQ1AsUUFBUSxFQUFFLGtCQUFrQjtvQkFDNUIsUUFBUSxFQUFFLDJCQUEyQjtvQkFDckMsSUFBSSxFQUFFO3dCQUNGLE9BQU8sRUFBRSxXQUFXO3FCQUN2QjtpQkFDSjs7QUFVRCxNQUFNLE9BQU8sY0FBYzs7MkdBQWQsY0FBYzsrRkFBZCxjQUFjLCtGQUxiLDJCQUEyQ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GVzLmZvckVhY2goKGl0ZW0pID0+IHtcbiAgICAgICAgICAgIHN3aXRjaChpdGVtLmdldFR5cGUoKSkge1xuICAgICAgICAgICAgICAgIGNhc2UgJ2Rpc3BsYXknOlxuICAgICAgICAgICAgICAgICAgICB0aGlzLmRpc3BsYXlUZW1wbGF0ZSA9IGl0ZW0udGVtcGxhdGU7XG4gICAgICAgICAgICAgICAgYnJlYWs7XG5cbiAgICAgICAgICAgICAgICBjYXNlICdjb250ZW50JzpcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5jb250ZW50VGVtcGxhdGUgPSBpdGVtLnRlbXBsYXRlO1xuICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgfVxuICAgICAgICB9KTtcbiAgICB9XG5cbiAgICBvbkFjdGl2YXRlQ2xpY2soZXZlbnQpIHtcbiAgICAgICAgaWYgKCF0aGlzLnByZXZlbnRDbGljaylcbiAgICAgICAgICAgIHRoaXMuYWN0aXZhdGUoZXZlbnQpO1xuICAgIH1cblxuICAgIG9uRGVhY3RpdmF0ZUNsaWNrKGV2ZW50KSB7XG4gICAgICAgIGlmICghdGhpcy5wcmV2ZW50Q2xpY2spXG4gICAgICAgICAgICB0aGlzLmRlYWN0aXZhdGUoZXZlbnQpO1xuICAgIH1cblxuICAgIGFjdGl2YXRlKGV2ZW50PzogRXZlbnQpIHtcbiAgICAgICAgaWYgKCF0aGlzLmRpc2FibGVkKSB7XG4gICAgICAgICAgICB0aGlzLmFjdGl2ZSA9IHRydWU7XG4gICAgICAgICAgICB0aGlzLm9uQWN0aXZhdGUuZW1pdChldmVudCk7XG4gICAgICAgICAgICB0aGlzLmNkLm1hcmtGb3JDaGVjaygpO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgZGVhY3RpdmF0ZShldmVudD86IEV2ZW50KSB7XG4gICAgICAgIGlmICghdGhpcy5kaXNhYmxlZCkge1xuICAgICAgICAgICAgdGhpcy5hY3RpdmUgPSBmYWxzZTtcbiAgICAgICAgICA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