@anglr/common 21.3.0-beta.20241115051814 → 21.3.0-beta.20241115055546

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.
Files changed (75) hide show
  1. package/changelog.md +86 -1
  2. package/es2022/src/index.js +2 -1
  3. package/es2022/src/index.js.map +1 -1
  4. package/es2022/src/modules/file/components/file/file.component.js +119 -0
  5. package/es2022/src/modules/file/components/file/file.component.js.map +1 -0
  6. package/es2022/src/modules/file/components/fileInput/fileInput.component.js +62 -0
  7. package/es2022/src/modules/file/components/fileInput/fileInput.component.js.map +1 -0
  8. package/es2022/src/modules/file/components/index.js +4 -0
  9. package/es2022/src/modules/file/components/index.js.map +1 -0
  10. package/es2022/src/modules/file/components/uploadButton/uploadButton.component.js +59 -0
  11. package/es2022/src/modules/file/components/uploadButton/uploadButton.component.js.map +1 -0
  12. package/es2022/src/modules/file/directive/fileInput/fileInput.directive.js +154 -0
  13. package/es2022/src/modules/file/directive/fileInput/fileInput.directive.js.map +1 -0
  14. package/es2022/src/modules/file/directive/fileTemplate/fileTemplate.context.js +2 -0
  15. package/es2022/src/modules/file/directive/fileTemplate/fileTemplate.context.js.map +1 -0
  16. package/es2022/src/modules/file/directive/fileTemplate/fileTemplate.directive.js +24 -0
  17. package/es2022/src/modules/file/directive/fileTemplate/fileTemplate.directive.js.map +1 -0
  18. package/es2022/src/modules/file/directive/index.js +4 -0
  19. package/es2022/src/modules/file/directive/index.js.map +1 -0
  20. package/es2022/src/modules/file/index.js +6 -0
  21. package/es2022/src/modules/file/index.js.map +1 -0
  22. package/es2022/src/modules/file/interfaces/fileVisual/fileVisual.interface.js +2 -0
  23. package/es2022/src/modules/file/interfaces/fileVisual/fileVisual.interface.js.map +1 -0
  24. package/es2022/src/modules/file/interfaces/index.js +2 -0
  25. package/es2022/src/modules/file/interfaces/index.js.map +1 -0
  26. package/es2022/src/modules/file/misc/tokens.js +6 -0
  27. package/es2022/src/modules/file/misc/tokens.js.map +1 -0
  28. package/es2022/src/modules/file/modules/file.module.js +40 -0
  29. package/es2022/src/modules/file/modules/file.module.js.map +1 -0
  30. package/es2022/src/modules/file/modules/index.js +2 -0
  31. package/es2022/src/modules/file/modules/index.js.map +1 -0
  32. package/es2022/src/pipes/firstUppercase/firstUppercase.pipe.js.map +1 -1
  33. package/es2022/src/pipes/firstUppercaseLocalize/firstUppercaseLocalize.pipe.js.map +1 -1
  34. package/package.json +1 -1
  35. package/src/index.d.ts +2 -1
  36. package/src/index.d.ts.map +1 -1
  37. package/src/modules/file/components/file/file.component.css +16 -0
  38. package/src/modules/file/components/file/file.component.d.ts +85 -0
  39. package/src/modules/file/components/file/file.component.d.ts.map +1 -0
  40. package/src/modules/file/components/file/file.component.html +14 -0
  41. package/src/modules/file/components/fileInput/fileInput.component.css +27 -0
  42. package/src/modules/file/components/fileInput/fileInput.component.d.ts +37 -0
  43. package/src/modules/file/components/fileInput/fileInput.component.d.ts.map +1 -0
  44. package/src/modules/file/components/fileInput/fileInput.component.html +7 -0
  45. package/src/modules/file/components/index.d.ts +4 -0
  46. package/src/modules/file/components/index.d.ts.map +1 -0
  47. package/src/modules/file/components/uploadButton/uploadButton.component.css +52 -0
  48. package/src/modules/file/components/uploadButton/uploadButton.component.d.ts +36 -0
  49. package/src/modules/file/components/uploadButton/uploadButton.component.d.ts.map +1 -0
  50. package/src/modules/file/components/uploadButton/uploadButton.component.html +16 -0
  51. package/src/modules/file/directive/fileInput/fileInput.directive.d.ts +69 -0
  52. package/src/modules/file/directive/fileInput/fileInput.directive.d.ts.map +1 -0
  53. package/src/modules/file/directive/fileTemplate/fileTemplate.context.d.ts +30 -0
  54. package/src/modules/file/directive/fileTemplate/fileTemplate.context.d.ts.map +1 -0
  55. package/src/modules/file/directive/fileTemplate/fileTemplate.directive.d.ts +14 -0
  56. package/src/modules/file/directive/fileTemplate/fileTemplate.directive.d.ts.map +1 -0
  57. package/src/modules/file/directive/index.d.ts +4 -0
  58. package/src/modules/file/directive/index.d.ts.map +1 -0
  59. package/src/modules/file/index.d.ts +6 -0
  60. package/src/modules/file/index.d.ts.map +1 -0
  61. package/src/modules/file/interfaces/fileVisual/fileVisual.interface.d.ts +12 -0
  62. package/src/modules/file/interfaces/fileVisual/fileVisual.interface.d.ts.map +1 -0
  63. package/src/modules/file/interfaces/index.d.ts +2 -0
  64. package/src/modules/file/interfaces/index.d.ts.map +1 -0
  65. package/src/modules/file/misc/tokens.d.ts +7 -0
  66. package/src/modules/file/misc/tokens.d.ts.map +1 -0
  67. package/src/modules/file/modules/file.module.d.ts +15 -0
  68. package/src/modules/file/modules/file.module.d.ts.map +1 -0
  69. package/src/modules/file/modules/index.d.ts +2 -0
  70. package/src/modules/file/modules/index.d.ts.map +1 -0
  71. package/src/pipes/firstUppercase/firstUppercase.pipe.d.ts +1 -1
  72. package/src/pipes/firstUppercase/firstUppercase.pipe.d.ts.map +1 -1
  73. package/src/pipes/firstUppercaseLocalize/firstUppercaseLocalize.pipe.d.ts +1 -1
  74. package/src/pipes/firstUppercaseLocalize/firstUppercaseLocalize.pipe.d.ts.map +1 -1
  75. package/version.bak +1 -1
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Context passed to file template
3
+ */
4
+ export interface FileTemplateContext {
5
+ /**
6
+ * Instance of selected file or null if none is selected
7
+ */
8
+ file: File | undefined | null;
9
+ /**
10
+ * Name of selected file
11
+ */
12
+ fileName: string | undefined | null;
13
+ /**
14
+ * Instance of selected array of files or null if none is selected
15
+ */
16
+ files: File[] | undefined | null;
17
+ /**
18
+ * Array of names of selected files
19
+ */
20
+ filesNames: string[] | undefined | null;
21
+ /**
22
+ * Indication whether multiple files selection is enabled
23
+ */
24
+ multiple: boolean;
25
+ /**
26
+ * Clears selected file
27
+ */
28
+ clearFile(): void;
29
+ }
30
+ //# sourceMappingURL=fileTemplate.context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fileTemplate.context.d.ts","sourceRoot":"","sources":["fileTemplate.context.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAEhC;;OAEG;IACH,IAAI,EAAE,IAAI,GAAC,SAAS,GAAC,IAAI,CAAC;IAE1B;;OAEG;IACH,QAAQ,EAAE,MAAM,GAAC,SAAS,GAAC,IAAI,CAAC;IAEhC;;OAEG;IACH,KAAK,EAAE,IAAI,EAAE,GAAC,SAAS,GAAC,IAAI,CAAC;IAE7B;;OAEG;IACH,UAAU,EAAE,MAAM,EAAE,GAAC,SAAS,GAAC,IAAI,CAAC;IAEpC;;OAEG;IACH,QAAQ,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,SAAS,IAAI,IAAI,CAAC;CACrB"}
@@ -0,0 +1,14 @@
1
+ import { FileTemplateContext } from './fileTemplate.context';
2
+ import * as i0 from "@angular/core";
3
+ /**
4
+ * Directive used for obtaining file component visual template
5
+ */
6
+ export declare class FileTemplateDirective {
7
+ /**
8
+ * Allows typechecking for template
9
+ */
10
+ static ngTemplateContextGuard(_dir: FileTemplateDirective, _ctx: unknown): _ctx is FileTemplateContext;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<FileTemplateDirective, never>;
12
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FileTemplateDirective, "[fileTemplate]", never, {}, {}, never, never, true, never>;
13
+ }
14
+ //# sourceMappingURL=fileTemplate.directive.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fileTemplate.directive.d.ts","sourceRoot":"","sources":["fileTemplate.directive.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,mBAAmB,EAAC,MAAM,wBAAwB,CAAC;;AAE3D;;GAEG;AACH,qBAKa,qBAAqB;IAI9B;;OAEG;IACH,MAAM,CAAC,sBAAsB,CAAC,IAAI,EAAE,qBAAqB,EAAE,IAAI,EAAE,OAAO,GAAG,IAAI,IAAI,mBAAmB;yCAP7F,qBAAqB;2CAArB,qBAAqB;CAWjC"}
@@ -0,0 +1,4 @@
1
+ export * from './fileInput/fileInput.directive';
2
+ export * from './fileTemplate/fileTemplate.context';
3
+ export * from './fileTemplate/fileTemplate.directive';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC;AAChD,cAAc,qCAAqC,CAAC;AACpD,cAAc,uCAAuC,CAAC"}
@@ -0,0 +1,6 @@
1
+ export * from './components';
2
+ export * from './directive';
3
+ export * from './interfaces';
4
+ export * from './misc/tokens';
5
+ export * from './modules';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { WritableSignal } from '@angular/core';
2
+ import { FileTemplateContext } from '../../directive';
3
+ /**
4
+ * Represents type that handles visualizing of file input value
5
+ */
6
+ export interface FileVisual {
7
+ /**
8
+ * Instance of file template context passed to file visual to display info about selected files
9
+ */
10
+ fileTemplateContext: WritableSignal<FileTemplateContext | undefined | null>;
11
+ }
12
+ //# sourceMappingURL=fileVisual.interface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fileVisual.interface.d.ts","sourceRoot":"","sources":["fileVisual.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAC,MAAM,eAAe,CAAC;AAE7C,OAAO,EAAC,mBAAmB,EAAC,MAAM,iBAAiB,CAAC;AAEpD;;GAEG;AACH,MAAM,WAAW,UAAU;IAEvB;;OAEG;IACH,mBAAmB,EAAE,cAAc,CAAC,mBAAmB,GAAC,SAAS,GAAC,IAAI,CAAC,CAAC;CAC3E"}
@@ -0,0 +1,2 @@
1
+ export * from './fileVisual/fileVisual.interface';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,mCAAmC,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { InjectionToken } from '@angular/core';
2
+ import { FileVisual } from '../interfaces';
3
+ /**
4
+ * Injection token used for obtaining implementation of file visual component
5
+ */
6
+ export declare const FILE_VISUAL: InjectionToken<FileVisual>;
7
+ //# sourceMappingURL=tokens.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["tokens.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAC,MAAM,eAAe,CAAC;AAE7C,OAAO,EAAC,UAAU,EAAC,MAAM,eAAe,CAAC;AAEzC;;GAEG;AACH,eAAO,MAAM,WAAW,EAAE,cAAc,CAAC,UAAU,CAAiD,CAAC"}
@@ -0,0 +1,15 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "../components/file/file.component";
3
+ import * as i2 from "../directive/fileInput/fileInput.directive";
4
+ import * as i3 from "../directive/fileTemplate/fileTemplate.directive";
5
+ import * as i4 from "../components/uploadButton/uploadButton.component";
6
+ import * as i5 from "../components/fileInput/fileInput.component";
7
+ /**
8
+ * Module for grouping File components and directives
9
+ */
10
+ export declare class FileModule {
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<FileModule, never>;
12
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FileModule, never, [typeof i1.FileComponent, typeof i2.FileInputDirective, typeof i3.FileTemplateDirective, typeof i4.UploadButtonComponent, typeof i5.FileInputComponent], [typeof i1.FileComponent, typeof i5.FileInputComponent, typeof i4.UploadButtonComponent, typeof i2.FileInputDirective, typeof i3.FileTemplateDirective]>;
13
+ static ɵinj: i0.ɵɵInjectorDeclaration<FileModule>;
14
+ }
15
+ //# sourceMappingURL=file.module.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file.module.d.ts","sourceRoot":"","sources":["file.module.ts"],"names":[],"mappings":";;;;;;AAKA;;GAEG;AACH,qBAmBa,UAAU;yCAAV,UAAU;0CAAV,UAAU;0CAAV,UAAU;CAEtB"}
@@ -0,0 +1,2 @@
1
+ export * from './file.module';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC"}
@@ -8,7 +8,7 @@ export declare class FirstUppercaseSAPipe implements PipeTransform {
8
8
  * Converts first letter of text to uppercase
9
9
  * @param value - Value to be converted
10
10
  */
11
- transform(value: string | undefined | null): string | undefined | null;
11
+ transform<TValue extends string | undefined | null>(value: TValue): TValue;
12
12
  static ɵfac: i0.ɵɵFactoryDeclaration<FirstUppercaseSAPipe, never>;
13
13
  static ɵpipe: i0.ɵɵPipeDeclaration<FirstUppercaseSAPipe, "firstUppercase", true>;
14
14
  }
@@ -1 +1 @@
1
- {"version":3,"file":"firstUppercase.pipe.d.ts","sourceRoot":"","sources":["firstUppercase.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,aAAa,EAAC,MAAM,eAAe,CAAC;;AAElD;;GAEG;AACH,qBAKa,oBAAqB,YAAW,aAAa;IAEtD;;;OAGG;IACI,SAAS,CAAC,KAAK,EAAE,MAAM,GAAC,SAAS,GAAC,IAAI,GAAG,MAAM,GAAC,SAAS,GAAC,IAAI;yCAN5D,oBAAoB;uCAApB,oBAAoB;CAehC"}
1
+ {"version":3,"file":"firstUppercase.pipe.d.ts","sourceRoot":"","sources":["firstUppercase.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,aAAa,EAAC,MAAM,eAAe,CAAC;;AAElD;;GAEG;AACH,qBAKa,oBAAqB,YAAW,aAAa;IAEtD;;;OAGG;IACA,SAAS,CAAC,MAAM,SAAS,MAAM,GAAC,SAAS,GAAC,IAAI,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM;yCANhE,oBAAoB;uCAApB,oBAAoB;CAehC"}
@@ -28,7 +28,7 @@ export declare class FirstUppercaseLocalizeSAPipe implements PipeTransform, OnDe
28
28
  * @param value - Value to be converted
29
29
  * @param interpolateParams - Optional object storing interpolation parameters
30
30
  */
31
- transform(value: string | undefined | null, interpolateParams?: Object): string | undefined | null;
31
+ transform(value: string | undefined | null, interpolateParams?: Object): string;
32
32
  /**
33
33
  * Initialize component
34
34
  */
@@ -1 +1 @@
1
- {"version":3,"file":"firstUppercaseLocalize.pipe.d.ts","sourceRoot":"","sources":["firstUppercaseLocalize.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,aAAa,EAAU,iBAAiB,EAAE,SAAS,EAAC,MAAM,eAAe,CAAC;AACxF,OAAO,EAAC,YAAY,EAAC,MAAM,MAAM,CAAC;AAGlC,OAAO,EAAC,kBAAkB,EAAC,MAAM,mCAAmC,CAAC;AACrE,OAAO,EAAC,cAAc,EAAC,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAC,oBAAoB,EAAC,MAAM,uCAAuC,CAAC;;AAE3E;;GAEG;AACH,qBAMa,4BAA6B,YAAW,aAAa,EAAE,SAAS;IAoBhC,SAAS,CAAC,eAAe,EAAE,kBAAkB;IAC1E,SAAS,CAAC,cAAc,EAAE,iBAAiB;IAjBvD;;OAEG;IACH,SAAS,CAAC,YAAY,EAAE,cAAc,CAAC;IAEvC;;OAEG;IACH,SAAS,CAAC,kBAAkB,EAAE,oBAAoB,CAAC;IAEnD;;OAEG;IACH,SAAS,CAAC,YAAY,EAAE,YAAY,GAAC,SAAS,GAAC,IAAI,CAAC;gBAGD,eAAe,EAAE,kBAAkB,EAChE,cAAc,EAAE,iBAAiB;IAQvD;;;;OAIG;IACI,SAAS,CAAC,KAAK,EAAE,MAAM,GAAC,SAAS,GAAC,IAAI,EAAE,iBAAiB,CAAC,EAAE,MAAM,GAAG,MAAM,GAAC,SAAS,GAAC,IAAI;IAOjG;;OAEG;IACI,QAAQ,IAAI,IAAI;IAOvB;;OAEG;IACI,WAAW,IAAI,IAAI;yCAtDjB,4BAA4B;uCAA5B,4BAA4B;CA0DxC"}
1
+ {"version":3,"file":"firstUppercaseLocalize.pipe.d.ts","sourceRoot":"","sources":["firstUppercaseLocalize.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,aAAa,EAAU,iBAAiB,EAAE,SAAS,EAAC,MAAM,eAAe,CAAC;AACxF,OAAO,EAAC,YAAY,EAAC,MAAM,MAAM,CAAC;AAGlC,OAAO,EAAC,kBAAkB,EAAC,MAAM,mCAAmC,CAAC;AACrE,OAAO,EAAC,cAAc,EAAC,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAC,oBAAoB,EAAC,MAAM,uCAAuC,CAAC;;AAE3E;;GAEG;AACH,qBAMa,4BAA6B,YAAW,aAAa,EAAE,SAAS;IAoBhC,SAAS,CAAC,eAAe,EAAE,kBAAkB;IAC1E,SAAS,CAAC,cAAc,EAAE,iBAAiB;IAjBvD;;OAEG;IACH,SAAS,CAAC,YAAY,EAAE,cAAc,CAAC;IAEvC;;OAEG;IACH,SAAS,CAAC,kBAAkB,EAAE,oBAAoB,CAAC;IAEnD;;OAEG;IACH,SAAS,CAAC,YAAY,EAAE,YAAY,GAAC,SAAS,GAAC,IAAI,CAAC;gBAGD,eAAe,EAAE,kBAAkB,EAChE,cAAc,EAAE,iBAAiB;IAQvD;;;;OAIG;IACI,SAAS,CAAC,KAAK,EAAE,MAAM,GAAC,SAAS,GAAC,IAAI,EAAE,iBAAiB,CAAC,EAAE,MAAM,GAAG,MAAM;IAOlF;;OAEG;IACI,QAAQ,IAAI,IAAI;IAOvB;;OAEG;IACI,WAAW,IAAI,IAAI;yCAtDjB,4BAA4B;uCAA5B,4BAA4B;CA0DxC"}
package/version.bak CHANGED
@@ -1 +1 @@
1
- 21.3.0-beta.20241115051814
1
+ 21.3.0-beta.20241115055546