@pumpkin-tech/pumpkin-tech-ng 0.1.3 → 0.1.4

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.
@@ -7,18 +7,23 @@ export declare class CheckBoxComponent implements ControlValueAccessor {
7
7
  required: boolean;
8
8
  color: string;
9
9
  indeterminate: boolean;
10
+ /** ⚠️ mantém o nome para compatibilidade com o consumidor */
11
+ change: EventEmitter<boolean>;
10
12
  indeterminateChange: EventEmitter<boolean>;
11
- change: EventEmitter<any>;
12
- private _value;
13
+ _value: boolean;
14
+ /** Atualização programática NUNCA emite evento nem CVA */
15
+ set value(v: any);
13
16
  get value(): boolean;
14
- set value(v: boolean);
15
- onChange: any;
16
- onTouch: any;
17
- writeValue(value: any): void;
17
+ private onChangeFn;
18
+ private onTouchFn;
19
+ writeValue(v: any): void;
18
20
  registerOnChange(fn: any): void;
19
21
  registerOnTouched(fn: any): void;
20
22
  setDisabledState(isDisabled: boolean): void;
23
+ /** Apenas interação do usuário dispara tudo */
21
24
  onCheckboxChange(checked: boolean): void;
25
+ /** Coerção robusta para boolean */
26
+ private toBool;
22
27
  static ɵfac: i0.ɵɵFactoryDeclaration<CheckBoxComponent, never>;
23
- static ɵcmp: i0.ɵɵComponentDeclaration<CheckBoxComponent, "ptech-check-box", never, { "label": { "alias": "label"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "required": { "alias": "required"; "required": false; }; "color": { "alias": "color"; "required": false; }; "indeterminate": { "alias": "indeterminate"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "indeterminateChange": "indeterminateChange"; "change": "change"; }, never, never, true, never>;
28
+ static ɵcmp: i0.ɵɵComponentDeclaration<CheckBoxComponent, "ptech-check-box", never, { "label": { "alias": "label"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "required": { "alias": "required"; "required": false; }; "color": { "alias": "color"; "required": false; }; "indeterminate": { "alias": "indeterminate"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "change": "change"; "indeterminateChange": "indeterminateChange"; }, never, never, true, never>;
24
29
  }
@@ -4,6 +4,8 @@ import { MatFormFieldAppearance } from '@angular/material/form-field';
4
4
  import { BooleanInput } from '@angular/cdk/coercion';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class InputComponent implements ControlValueAccessor, OnInit {
7
+ private el;
8
+ constructor(el: ElementRef<HTMLElement>);
7
9
  _elementRef?: ElementRef<HTMLInputElement>;
8
10
  suffixRef?: TemplateRef<any>;
9
11
  buttonClick: EventEmitter<void>;
@@ -45,8 +47,9 @@ export declare class InputComponent implements ControlValueAccessor, OnInit {
45
47
  pattern?: string;
46
48
  fullWidth: boolean;
47
49
  private _col;
48
- set ptechCol(v: number | string | null | undefined);
49
- get gridColumn(): string;
50
+ set col(v: number | string | null | undefined);
51
+ private hasPtechColAttrs;
52
+ get gridColumn(): string | null;
50
53
  private _val;
51
54
  ngOnInit(): void;
52
55
  get value(): any;
@@ -61,5 +64,5 @@ export declare class InputComponent implements ControlValueAccessor, OnInit {
61
64
  isThemeColor(c: string | null | undefined, theme: 'primary' | 'accent' | 'warn'): boolean;
62
65
  get customIconColor(): string | null;
63
66
  static ɵfac: i0.ɵɵFactoryDeclaration<InputComponent, never>;
64
- static ɵcmp: i0.ɵɵComponentDeclaration<InputComponent, "ptech-input", never, { "required": { "alias": "required"; "required": false; }; "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "maxlength": { "alias": "maxlength"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "type": { "alias": "type"; "required": false; }; "name": { "alias": "name"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "iconColor": { "alias": "iconColor"; "required": false; }; "iconWidth": { "alias": "iconWidth"; "required": false; }; "iconHeight": { "alias": "iconHeight"; "required": false; }; "iconSize": { "alias": "iconSize"; "required": false; }; "iconPosition": { "alias": "iconPosition"; "required": false; }; "forceFixedIcon": { "alias": "forceFixedIcon"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "autocomplete": { "alias": "autocomplete"; "required": false; }; "inputmode": { "alias": "inputmode"; "required": false; }; "pattern": { "alias": "pattern"; "required": false; }; "fullWidth": { "alias": "fullWidth"; "required": false; }; "ptechCol": { "alias": "ptechCol"; "required": false; }; }, { "buttonClick": "buttonClick"; }, ["suffixRef"], ["[matPrefix]", "[matSuffix]", "mat-hint, [mat-hint]", "mat-error, [mat-error]"], true, never>;
67
+ static ɵcmp: i0.ɵɵComponentDeclaration<InputComponent, "ptech-input", never, { "required": { "alias": "required"; "required": false; }; "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "maxlength": { "alias": "maxlength"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "type": { "alias": "type"; "required": false; }; "name": { "alias": "name"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "iconColor": { "alias": "iconColor"; "required": false; }; "iconWidth": { "alias": "iconWidth"; "required": false; }; "iconHeight": { "alias": "iconHeight"; "required": false; }; "iconSize": { "alias": "iconSize"; "required": false; }; "iconPosition": { "alias": "iconPosition"; "required": false; }; "forceFixedIcon": { "alias": "forceFixedIcon"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "autocomplete": { "alias": "autocomplete"; "required": false; }; "inputmode": { "alias": "inputmode"; "required": false; }; "pattern": { "alias": "pattern"; "required": false; }; "fullWidth": { "alias": "fullWidth"; "required": false; }; "col": { "alias": "col"; "required": false; }; }, { "buttonClick": "buttonClick"; }, ["suffixRef"], ["[matPrefix]", "[matSuffix]", "mat-hint, [mat-hint]", "mat-error, [mat-error]"], true, never>;
65
68
  }
@@ -1,9 +1,16 @@
1
- import { OnDestroy } from '@angular/core';
1
+ import { ElementRef, NgZone, OnDestroy } from '@angular/core';
2
2
  import { BreakpointObserver } from '@angular/cdk/layout';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class PtechColDirective implements OnDestroy {
5
+ private el;
6
+ private ngZone;
5
7
  private bp;
6
8
  private destroy$;
9
+ private ro?;
10
+ private roScheduled;
11
+ private lastSpan;
12
+ /** Controla de onde vêm os breakpoints (viewport ou container). */
13
+ ptechColMode: 'viewport' | 'container' | 'auto';
7
14
  private _col;
8
15
  set ptechCol(v: number | string | null | undefined);
9
16
  ptechColXs?: number | string;
@@ -12,14 +19,16 @@ export declare class PtechColDirective implements OnDestroy {
12
19
  ptechColLg?: number | string;
13
20
  ptechColXl?: number | string;
14
21
  private activeBp;
22
+ private activeSource;
15
23
  gridColumn: string;
16
24
  minWidth: string;
17
- constructor(bp: BreakpointObserver);
25
+ constructor(el: ElementRef<HTMLElement>, ngZone: NgZone, bp: BreakpointObserver);
18
26
  ngOnDestroy(): void;
27
+ private findGridParent;
19
28
  private pickActive;
20
29
  private updateSpan;
21
30
  private resolveColForBp;
22
31
  private asNum;
23
32
  static ɵfac: i0.ɵɵFactoryDeclaration<PtechColDirective, never>;
24
- static ɵdir: i0.ɵɵDirectiveDeclaration<PtechColDirective, "[ptechCol]", never, { "ptechCol": { "alias": "ptechCol"; "required": false; }; "ptechColXs": { "alias": "ptechColXs"; "required": false; }; "ptechColSm": { "alias": "ptechColSm"; "required": false; }; "ptechColMd": { "alias": "ptechColMd"; "required": false; }; "ptechColLg": { "alias": "ptechColLg"; "required": false; }; "ptechColXl": { "alias": "ptechColXl"; "required": false; }; }, {}, never, never, true, never>;
33
+ static ɵdir: i0.ɵɵDirectiveDeclaration<PtechColDirective, "[ptechCol]", never, { "ptechColMode": { "alias": "ptechColMode"; "required": false; }; "ptechCol": { "alias": "ptechCol"; "required": false; }; "ptechColXs": { "alias": "ptechColXs"; "required": false; }; "ptechColSm": { "alias": "ptechColSm"; "required": false; }; "ptechColMd": { "alias": "ptechColMd"; "required": false; }; "ptechColLg": { "alias": "ptechColLg"; "required": false; }; "ptechColXl": { "alias": "ptechColXl"; "required": false; }; }, {}, never, never, true, never>;
25
34
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pumpkin-tech/pumpkin-tech-ng",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "Biblioteca Angular com utilitários e componentes Pumpkin Tech",
5
5
  "license": "MIT",
6
6
  "keywords": [