@pumpkin-tech/pumpkin-tech-ng 0.2.32 → 0.2.33
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { HostBinding, Input, Directive, Injectable, NgModule, EventEmitter, ElementRef, forwardRef, Output, ContentChild, ViewChild, ChangeDetectionStrategy, Component, HostListener, Inject, InjectionToken,
|
|
2
|
+
import { HostBinding, Input, Directive, Injectable, NgModule, Optional, Self, EventEmitter, ElementRef, forwardRef, Output, ContentChild, ViewChild, ChangeDetectionStrategy, Component, HostListener, Inject, InjectionToken, Pipe, ContentChildren, inject } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/cdk/layout';
|
|
4
4
|
import * as i2$4 from 'rxjs';
|
|
5
5
|
import { Subject, BehaviorSubject, takeUntil as takeUntil$1, delay, tap, map, filter, of } from 'rxjs';
|
|
@@ -513,8 +513,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
513
513
|
// projects/.../base/base-field.ts
|
|
514
514
|
class BaseField {
|
|
515
515
|
el;
|
|
516
|
-
|
|
516
|
+
ptechColDirective;
|
|
517
|
+
constructor(el, ptechColDirective) {
|
|
517
518
|
this.el = el;
|
|
519
|
+
this.ptechColDirective = ptechColDirective;
|
|
518
520
|
}
|
|
519
521
|
// ===== Coercion hints (Angular) =====
|
|
520
522
|
static ngAcceptInputType_required;
|
|
@@ -554,6 +556,9 @@ class BaseField {
|
|
|
554
556
|
}
|
|
555
557
|
/** Se a diretiva [ptechCol*] estiver presente, ela domina o layout. */
|
|
556
558
|
hasPtechColAttrs() {
|
|
559
|
+
if (this.ptechColDirective) {
|
|
560
|
+
return true;
|
|
561
|
+
}
|
|
557
562
|
const el = this.el.nativeElement;
|
|
558
563
|
return el.hasAttribute('ptechCol') || el.hasAttribute('ptechcol') ||
|
|
559
564
|
el.hasAttribute('ptechColXs') || el.hasAttribute('ptechcolxs') ||
|
|
@@ -566,12 +571,16 @@ class BaseField {
|
|
|
566
571
|
return this.hasPtechColAttrs() ? null : `auto / span ${this._col}`;
|
|
567
572
|
}
|
|
568
573
|
hostDisplay = 'block';
|
|
569
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BaseField, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
574
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BaseField, deps: [{ token: i0.ElementRef }, { token: PtechColDirective, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
570
575
|
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.16", type: BaseField, isStandalone: true, inputs: { required: "required", disabled: "disabled", readonly: "readonly", loading: "loading", fullWidth: "fullWidth", label: "label", placeholder: "placeholder", name: "name", ariaLabel: "ariaLabel", ariaLabelledby: "ariaLabelledby", appearance: "appearance", col: "col" }, host: { properties: { "style.grid-column": "this.gridColumn", "style.display": "this.hostDisplay" } }, ngImport: i0 });
|
|
571
576
|
}
|
|
572
577
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BaseField, decorators: [{
|
|
573
578
|
type: Directive
|
|
574
|
-
}], ctorParameters: () => [{ type: i0.ElementRef }
|
|
579
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: PtechColDirective, decorators: [{
|
|
580
|
+
type: Optional
|
|
581
|
+
}, {
|
|
582
|
+
type: Self
|
|
583
|
+
}] }], propDecorators: { required: [{
|
|
575
584
|
type: Input
|
|
576
585
|
}], disabled: [{
|
|
577
586
|
type: Input
|