@pumpkin-tech/pumpkin-tech-ng 0.2.11 → 0.2.12

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.
@@ -119,6 +119,9 @@ class PtechGridDirective {
119
119
  this.destroy$.next();
120
120
  this.destroy$.complete();
121
121
  }
122
+ ngOnChanges(_) {
123
+ this.updateCols();
124
+ }
122
125
  pickActive(bps) {
123
126
  const order = ['xl', 'lg', 'md', 'sm', 'xs']; // prioridade do maior pro menor
124
127
  for (const key of order)
@@ -155,7 +158,7 @@ class PtechGridDirective {
155
158
  return Number.isFinite(n) ? n : fallback;
156
159
  }
157
160
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PtechGridDirective, deps: [{ token: i1.BreakpointObserver }], target: i0.ɵɵFactoryTarget.Directive });
158
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.16", type: PtechGridDirective, isStandalone: true, selector: "[ptechGrid]", inputs: { ptechCols: "ptechCols", ptechColsXs: "ptechColsXs", ptechColsSm: "ptechColsSm", ptechColsMd: "ptechColsMd", ptechColsLg: "ptechColsLg", ptechColsXl: "ptechColsXl", ptechGap: "ptechGap", ptechVertical: "ptechVertical" }, host: { properties: { "style.gap": "this.gapCss", "style.display": "this.display", "style.gridTemplateColumns": "this.columns" } }, ngImport: i0 });
161
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.16", type: PtechGridDirective, isStandalone: true, selector: "[ptechGrid]", inputs: { ptechCols: "ptechCols", ptechColsXs: "ptechColsXs", ptechColsSm: "ptechColsSm", ptechColsMd: "ptechColsMd", ptechColsLg: "ptechColsLg", ptechColsXl: "ptechColsXl", ptechGap: "ptechGap", ptechVertical: "ptechVertical" }, host: { properties: { "style.gap": "this.gapCss", "style.display": "this.display", "style.gridTemplateColumns": "this.columns" } }, usesOnChanges: true, ngImport: i0 });
159
162
  }
160
163
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PtechGridDirective, decorators: [{
161
164
  type: Directive,
@@ -293,6 +296,9 @@ class PtechColDirective {
293
296
  this.destroy$.next();
294
297
  this.destroy$.complete();
295
298
  }
299
+ ngOnChanges(_) {
300
+ this.updateSpan();
301
+ }
296
302
  findGridParent(el) {
297
303
  let p = el.parentElement;
298
304
  while (p) {
@@ -356,7 +362,7 @@ class PtechColDirective {
356
362
  return Number.isFinite(n) ? n : fallback;
357
363
  }
358
364
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PtechColDirective, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: i1.BreakpointObserver }], target: i0.ɵɵFactoryTarget.Directive });
359
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.16", type: PtechColDirective, isStandalone: true, selector: "[ptechCol]", inputs: { ptechColMode: "ptechColMode", ptechCol: "ptechCol", ptechColXs: "ptechColXs", ptechColSm: "ptechColSm", ptechColMd: "ptechColMd", ptechColLg: "ptechColLg", ptechColXl: "ptechColXl" }, host: { properties: { "style.gridColumn": "this.gridColumn", "style.minWidth": "this.minWidth" } }, ngImport: i0 });
365
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.16", type: PtechColDirective, isStandalone: true, selector: "[ptechCol]", inputs: { ptechColMode: "ptechColMode", ptechCol: "ptechCol", ptechColXs: "ptechColXs", ptechColSm: "ptechColSm", ptechColMd: "ptechColMd", ptechColLg: "ptechColLg", ptechColXl: "ptechColXl" }, host: { properties: { "style.gridColumn": "this.gridColumn", "style.minWidth": "this.minWidth" } }, usesOnChanges: true, ngImport: i0 });
360
366
  }
361
367
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PtechColDirective, decorators: [{
362
368
  type: Directive,