aril 0.0.2

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 (103) hide show
  1. package/README.md +26 -0
  2. package/esm2022/aril.mjs +5 -0
  3. package/esm2022/http/aril-http.mjs +5 -0
  4. package/esm2022/http/index.mjs +4 -0
  5. package/esm2022/http/lib/enums.mjs +22 -0
  6. package/esm2022/http/lib/interfaces.mjs +35 -0
  7. package/esm2022/http/src/httpClient.mjs +11 -0
  8. package/esm2022/http/src/serviceBase.mjs +79 -0
  9. package/esm2022/http/src/serviceStateMethods.mjs +26 -0
  10. package/esm2022/public-api.mjs +2 -0
  11. package/esm2022/ui/aril-ui.mjs +5 -0
  12. package/esm2022/ui/button/aril-ui-button.mjs +5 -0
  13. package/esm2022/ui/button/index.mjs +2 -0
  14. package/esm2022/ui/button/src/button.component.mjs +11 -0
  15. package/esm2022/ui/calendar/aril-ui-calendar.mjs +5 -0
  16. package/esm2022/ui/calendar/index.mjs +2 -0
  17. package/esm2022/ui/calendar/src/calendar.component.mjs +11 -0
  18. package/esm2022/ui/checkbox/aril-ui-checkbox.mjs +5 -0
  19. package/esm2022/ui/checkbox/index.mjs +2 -0
  20. package/esm2022/ui/checkbox/src/checkbox.component.mjs +11 -0
  21. package/esm2022/ui/index.mjs +2 -0
  22. package/esm2022/ui/lib/aril-ui-lib.mjs +5 -0
  23. package/esm2022/ui/lib/index.mjs +5 -0
  24. package/esm2022/ui/lib/src/form/form-field-builder.mjs +23 -0
  25. package/esm2022/ui/lib/src/form/form-validation.mjs +14 -0
  26. package/esm2022/ui/lib/src/input/common-input-validators.service.mjs +49 -0
  27. package/esm2022/ui/lib/src/input/input-disabled.directive.mjs +25 -0
  28. package/esm2022/util/aril-util.mjs +5 -0
  29. package/esm2022/util/index.mjs +2 -0
  30. package/esm2022/util/init-event/aril-util-init-event.mjs +5 -0
  31. package/esm2022/util/init-event/index.mjs +2 -0
  32. package/esm2022/util/init-event/src/init-event.directive.mjs +22 -0
  33. package/esm2022/util/lib/aril-util-lib.mjs +5 -0
  34. package/esm2022/util/lib/index.mjs +3 -0
  35. package/esm2022/util/lib/src/interfaces.mjs +2 -0
  36. package/esm2022/util/lib/src/types.mjs +2 -0
  37. package/esm2022/util/primitive-extensions/aril-util-primitive-extensions.mjs +5 -0
  38. package/esm2022/util/primitive-extensions/index.mjs +5 -0
  39. package/esm2022/util/primitive-extensions/src/boolean.extensions.mjs +2 -0
  40. package/esm2022/util/primitive-extensions/src/date.extensions.mjs +95 -0
  41. package/esm2022/util/primitive-extensions/src/number.extensions.mjs +33 -0
  42. package/esm2022/util/primitive-extensions/src/string.extensions.mjs +17 -0
  43. package/esm2022/util/pub-sub/aril-util-pub-sub.mjs +5 -0
  44. package/esm2022/util/pub-sub/index.mjs +2 -0
  45. package/esm2022/util/pub-sub/src/pub-sub.service.mjs +27 -0
  46. package/fesm2022/aril-http.mjs +174 -0
  47. package/fesm2022/aril-http.mjs.map +1 -0
  48. package/fesm2022/aril-ui-button.mjs +18 -0
  49. package/fesm2022/aril-ui-button.mjs.map +1 -0
  50. package/fesm2022/aril-ui-calendar.mjs +18 -0
  51. package/fesm2022/aril-ui-calendar.mjs.map +1 -0
  52. package/fesm2022/aril-ui-checkbox.mjs +18 -0
  53. package/fesm2022/aril-ui-checkbox.mjs.map +1 -0
  54. package/fesm2022/aril-ui-lib.mjs +115 -0
  55. package/fesm2022/aril-ui-lib.mjs.map +1 -0
  56. package/fesm2022/aril-ui.mjs +8 -0
  57. package/fesm2022/aril-ui.mjs.map +1 -0
  58. package/fesm2022/aril-util-init-event.mjs +29 -0
  59. package/fesm2022/aril-util-init-event.mjs.map +1 -0
  60. package/fesm2022/aril-util-lib.mjs +4 -0
  61. package/fesm2022/aril-util-lib.mjs.map +1 -0
  62. package/fesm2022/aril-util-primitive-extensions.mjs +146 -0
  63. package/fesm2022/aril-util-primitive-extensions.mjs.map +1 -0
  64. package/fesm2022/aril-util-pub-sub.mjs +34 -0
  65. package/fesm2022/aril-util-pub-sub.mjs.map +1 -0
  66. package/fesm2022/aril-util.mjs +8 -0
  67. package/fesm2022/aril-util.mjs.map +1 -0
  68. package/fesm2022/aril.mjs +8 -0
  69. package/fesm2022/aril.mjs.map +1 -0
  70. package/http/index.d.ts +3 -0
  71. package/http/lib/enums.d.ts +17 -0
  72. package/http/lib/interfaces.d.ts +41 -0
  73. package/http/src/httpClient.d.ts +10 -0
  74. package/http/src/serviceBase.d.ts +2 -0
  75. package/http/src/serviceStateMethods.d.ts +4 -0
  76. package/index.d.ts +5 -0
  77. package/package.json +91 -0
  78. package/public-api.d.ts +1 -0
  79. package/ui/button/index.d.ts +1 -0
  80. package/ui/button/src/button.component.d.ts +5 -0
  81. package/ui/calendar/index.d.ts +1 -0
  82. package/ui/calendar/src/calendar.component.d.ts +5 -0
  83. package/ui/checkbox/index.d.ts +1 -0
  84. package/ui/checkbox/src/checkbox.component.d.ts +5 -0
  85. package/ui/index.d.ts +1 -0
  86. package/ui/lib/index.d.ts +4 -0
  87. package/ui/lib/src/form/form-field-builder.d.ts +7 -0
  88. package/ui/lib/src/form/form-validation.d.ts +2 -0
  89. package/ui/lib/src/input/common-input-validators.service.d.ts +19 -0
  90. package/ui/lib/src/input/input-disabled.directive.d.ts +9 -0
  91. package/util/index.d.ts +1 -0
  92. package/util/init-event/index.d.ts +1 -0
  93. package/util/init-event/src/init-event.directive.d.ts +8 -0
  94. package/util/lib/index.d.ts +2 -0
  95. package/util/lib/src/interfaces.d.ts +38 -0
  96. package/util/lib/src/types.d.ts +22 -0
  97. package/util/primitive-extensions/index.d.ts +4 -0
  98. package/util/primitive-extensions/src/boolean.extensions.d.ts +1 -0
  99. package/util/primitive-extensions/src/date.extensions.d.ts +8 -0
  100. package/util/primitive-extensions/src/number.extensions.d.ts +12 -0
  101. package/util/primitive-extensions/src/string.extensions.d.ts +10 -0
  102. package/util/pub-sub/index.d.ts +1 -0
  103. package/util/pub-sub/src/pub-sub.service.d.ts +21 -0
@@ -0,0 +1,38 @@
1
+ export declare namespace Interfaces {
2
+ interface MapStringString {
3
+ [key: string]: string;
4
+ }
5
+ interface MapStringNumber {
6
+ [key: string]: number;
7
+ }
8
+ interface MapStringBoolean {
9
+ [key: string]: boolean;
10
+ }
11
+ interface MapStringObject<T> {
12
+ [key: string]: T;
13
+ }
14
+ interface MapStringAny {
15
+ [key: string]: any;
16
+ }
17
+ interface MapNumberString {
18
+ [key: number]: string;
19
+ }
20
+ interface MapNumberNumber {
21
+ [key: number]: number;
22
+ }
23
+ interface MapNumberBoolean {
24
+ [key: number]: boolean;
25
+ }
26
+ interface MapNumberObject<T> {
27
+ [key: number]: T;
28
+ }
29
+ interface MapNumberArray<T> {
30
+ [key: number]: Array<T>;
31
+ }
32
+ interface MapNumberAny {
33
+ [key: number]: any;
34
+ }
35
+ interface MapEnums {
36
+ [key: number]: MapStringString;
37
+ }
38
+ }
@@ -0,0 +1,22 @@
1
+ import { FormControl, FormGroup } from "@angular/forms";
2
+ export declare namespace Types {
3
+ type MarkComponentProps<Component> = {
4
+ [Key in keyof Component]: Component[Key] extends Function ? never : Key;
5
+ };
6
+ type KeyOfComponentProps<T> = MarkComponentProps<T>[keyof T];
7
+ type ComponentProps<T> = Pick<T, KeyOfComponentProps<T>>;
8
+ export type NgChanges<Component, Props = ComponentProps<Component>> = {
9
+ [Key in keyof Props]: {
10
+ previousValue: Props[Key];
11
+ currentValue: Props[Key];
12
+ firstChange: boolean;
13
+ isFirstChange(): boolean;
14
+ };
15
+ };
16
+ export type ControlsOf<T extends Record<string, any>> = {
17
+ [K in keyof T]: T[K] extends Record<any, any> ? T[K] extends any[] ? FormControl<T[K] | null> : FormGroup<ControlsOf<T[K]>> : FormControl<T[K] | null>;
18
+ };
19
+ type Enumerate<N extends number, Acc extends number[] = []> = Acc['length'] extends N ? Acc[number] : Enumerate<N, [...Acc, Acc['length']]>;
20
+ export type NumberRange<F extends number, T extends number> = Exclude<Enumerate<T>, Enumerate<F>>;
21
+ export {};
22
+ }
@@ -0,0 +1,4 @@
1
+ import "./src/boolean.extensions";
2
+ import "./src/date.extensions";
3
+ import "./src/number.extensions";
4
+ import "./src/string.extensions";
@@ -0,0 +1,8 @@
1
+ declare global {
2
+ interface Date {
3
+ safeBool(): boolean;
4
+ dateToString(format?: string): string | undefined;
5
+ dateToLong(zoomLevel?: string): string | undefined;
6
+ }
7
+ }
8
+ export {};
@@ -0,0 +1,12 @@
1
+ declare global {
2
+ interface Number {
3
+ safeBool(): boolean;
4
+ isNull(): boolean;
5
+ isUndefined(): boolean;
6
+ isNullOrUndefined(): boolean;
7
+ longToDate(): Date | undefined;
8
+ longToString(format?: string): string | undefined;
9
+ decimalToString(format: string): string | undefined;
10
+ }
11
+ }
12
+ export {};
@@ -0,0 +1,10 @@
1
+ declare global {
2
+ interface String {
3
+ safeBool(): boolean;
4
+ escapeRegExp(): string;
5
+ toCamelCase(): string;
6
+ toPascalCase(): string;
7
+ toCapitalizeFirstLetter(): string;
8
+ }
9
+ }
10
+ export {};
@@ -0,0 +1 @@
1
+ export * from './src/pub-sub.service';
@@ -0,0 +1,21 @@
1
+ import * as i0 from "@angular/core";
2
+ type CustomEvent = {
3
+ name: string;
4
+ data: {
5
+ path: string;
6
+ custom?: any;
7
+ };
8
+ };
9
+ export declare const PubSubEvents: {
10
+ popstate: string;
11
+ navigateBetweenApps: string;
12
+ navigateInApps: string;
13
+ };
14
+ export declare class PubSubService {
15
+ publish(e: CustomEvent): void;
16
+ subscribe(eventName: string, listener: (data: any) => void): void;
17
+ unSubscribe(eventName: string, listener: () => void): void;
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<PubSubService, never>;
19
+ static ɵprov: i0.ɵɵInjectableDeclaration<PubSubService>;
20
+ }
21
+ export {};