@main-class/componentes 3.3.3 → 3.3.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.
@@ -0,0 +1,27 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Pipe } from '@angular/core';
3
+
4
+ class NomeResumidoPipe {
5
+ transform(value, ...args) {
6
+ if (value && value.trim().indexOf(' ') >= 0) {
7
+ const parts = value.trim().split(' ');
8
+ return parts[0] + ' ' + parts[parts.length - 1];
9
+ }
10
+ return value;
11
+ }
12
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: NomeResumidoPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
13
+ static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.5", ngImport: i0, type: NomeResumidoPipe, isStandalone: true, name: "nomeResumido" });
14
+ }
15
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: NomeResumidoPipe, decorators: [{
16
+ type: Pipe,
17
+ args: [{
18
+ name: 'nomeResumido'
19
+ }]
20
+ }] });
21
+
22
+ /**
23
+ * Generated bundle index. Do not edit.
24
+ */
25
+
26
+ export { NomeResumidoPipe };
27
+ //# sourceMappingURL=main-class-componentes-pipe.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"main-class-componentes-pipe.mjs","sources":["../../../../projects/main-class/componentes/pipe/src/nome-resumido.pipe.ts","../../../../projects/main-class/componentes/pipe/main-class-componentes-pipe.ts"],"sourcesContent":["import {Pipe, PipeTransform} from '@angular/core';\n\n@Pipe({\n name: 'nomeResumido'\n})\nexport class NomeResumidoPipe implements PipeTransform {\n transform(value: any, ...args: any[]): any {\n\n if (value && value.trim().indexOf(' ') >= 0) {\n const parts = value.trim().split(' ');\n return parts[0] + ' ' + parts[parts.length - 1];\n }\n\n return value;\n }\n\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAKa,gBAAgB,CAAA;AAC3B,IAAA,SAAS,CAAC,KAAU,EAAE,GAAG,IAAW,EAAA;AAElC,QAAA,IAAI,KAAK,IAAI,KAAK,CAAC,IAAI,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;YAC3C,MAAM,KAAK,GAAG,KAAK,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC;AACrC,YAAA,OAAO,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,KAAK,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC;;AAGjD,QAAA,OAAO,KAAK;;uGARH,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA;qGAAhB,gBAAgB,EAAA,YAAA,EAAA,IAAA,EAAA,IAAA,EAAA,cAAA,EAAA,CAAA;;2FAAhB,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAH5B,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACJ,oBAAA,IAAI,EAAE;AACP,iBAAA;;;ACJD;;AAEG;;;;"}
@@ -16,6 +16,7 @@ export declare abstract class AbstractMatFormFieldSelectControl<T> extends Abstr
16
16
  trackBy: (val: any) => any;
17
17
  private options;
18
18
  private defaultOptionProvider;
19
+ get empty(): boolean;
19
20
  get shouldFilter(): boolean;
20
21
  doTrackBy(val: any): any;
21
22
  set args(args: any);
@@ -1,8 +1,11 @@
1
- import { AbstractMatFormFieldControl } from '../abstract-mat-form-field-control';
1
+ import { AbstractControl, ValidationErrors } from '@angular/forms';
2
2
  import { MatDatetimepickerComponent } from '@mat-datetimepicker/core';
3
3
  import { Moment } from 'moment';
4
+ import 'moment/locale/pt-br.js';
4
5
  import { InputMaskComponent } from '../input-mask/input-mask.component';
6
+ import { AbstractMatFormFieldControl } from '../abstract-mat-form-field-control';
5
7
  import * as i0 from "@angular/core";
8
+ export declare function validateDateTime(control: AbstractControl): ValidationErrors | null;
6
9
  export declare class InputDatetimeComponent extends AbstractMatFormFieldControl<Date | Moment | undefined> {
7
10
  private readonly locale;
8
11
  private readonly formats;
@@ -26,5 +29,5 @@ export declare class InputDatetimeComponent extends AbstractMatFormFieldControl<
26
29
  set value(value: Date | Moment | undefined);
27
30
  writeValue(value: Date | undefined): void;
28
31
  static ɵfac: i0.ɵɵFactoryDeclaration<InputDatetimeComponent, never>;
29
- static ɵcmp: i0.ɵɵComponentDeclaration<InputDatetimeComponent, "mcl-input-datetime", never, { "type": { "alias": "type"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "name": { "alias": "name"; "required": false; }; }, {}, never, never, true, never>;
32
+ static ɵcmp: i0.ɵɵComponentDeclaration<InputDatetimeComponent, "tcn-input-datetime", never, { "type": { "alias": "type"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "name": { "alias": "name"; "required": false; }; }, {}, never, never, true, never>;
30
33
  }
@@ -11,5 +11,5 @@ export declare class SelectAutocompleteComponent extends AbstractMatFormFieldSel
11
11
  ngOnDestroy(): void;
12
12
  setDisabledState(isDisabled: boolean): void;
13
13
  static ɵfac: i0.ɵɵFactoryDeclaration<SelectAutocompleteComponent, never>;
14
- static ɵcmp: i0.ɵɵComponentDeclaration<SelectAutocompleteComponent, "mcl-select-autocomplete", never, { "readonly": { "alias": "readonly"; "required": false; }; }, { "select": "select"; "blur": "blur"; }, never, never, true, never>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<SelectAutocompleteComponent, "tcn-select-autocomplete", never, { "readonly": { "alias": "readonly"; "required": false; }; }, { "select": "select"; "blur": "blur"; }, never, never, true, never>;
15
15
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@main-class/componentes",
3
- "version": "3.3.3",
3
+ "version": "3.3.5",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^19.2.0",
6
6
  "@angular/core": "^19.2.0"
@@ -27,26 +27,26 @@
27
27
  "types": "./core/index.d.ts",
28
28
  "default": "./fesm2022/main-class-componentes-core.mjs"
29
29
  },
30
- "./dialog": {
31
- "types": "./dialog/index.d.ts",
32
- "default": "./fesm2022/main-class-componentes-dialog.mjs"
33
- },
34
30
  "./crud": {
35
31
  "types": "./crud/index.d.ts",
36
32
  "default": "./fesm2022/main-class-componentes-crud.mjs"
37
33
  },
34
+ "./dialog": {
35
+ "types": "./dialog/index.d.ts",
36
+ "default": "./fesm2022/main-class-componentes-dialog.mjs"
37
+ },
38
38
  "./form": {
39
39
  "types": "./form/index.d.ts",
40
40
  "default": "./fesm2022/main-class-componentes-form.mjs"
41
41
  },
42
- "./input": {
43
- "types": "./input/index.d.ts",
44
- "default": "./fesm2022/main-class-componentes-input.mjs"
45
- },
46
42
  "./loader": {
47
43
  "types": "./loader/index.d.ts",
48
44
  "default": "./fesm2022/main-class-componentes-loader.mjs"
49
45
  },
46
+ "./input": {
47
+ "types": "./input/index.d.ts",
48
+ "default": "./fesm2022/main-class-componentes-input.mjs"
49
+ },
50
50
  "./misc": {
51
51
  "types": "./misc/index.d.ts",
52
52
  "default": "./fesm2022/main-class-componentes-misc.mjs"
@@ -0,0 +1 @@
1
+ export * from "./src/nome-resumido.pipe";
@@ -0,0 +1,7 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class NomeResumidoPipe implements PipeTransform {
4
+ transform(value: any, ...args: any[]): any;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<NomeResumidoPipe, never>;
6
+ static ɵpipe: i0.ɵɵPipeDeclaration<NomeResumidoPipe, "nomeResumido", true>;
7
+ }