@bizy/core 19.0.0

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 (155) hide show
  1. package/fesm2022/bizy-core.mjs +6836 -0
  2. package/fesm2022/bizy-core.mjs.map +1 -0
  3. package/index.d.ts +5 -0
  4. package/lib/components/accordion/accordion.component.d.ts +15 -0
  5. package/lib/components/accordion/index.d.ts +2 -0
  6. package/lib/components/bar-line-chart/bar-line-chart.component.d.ts +29 -0
  7. package/lib/components/bar-line-chart/bar-line-chart.types.d.ts +17 -0
  8. package/lib/components/bar-line-chart/index.d.ts +3 -0
  9. package/lib/components/breadcrumb/breadcrumb.component.d.ts +15 -0
  10. package/lib/components/breadcrumb/breadcrumb.types.d.ts +6 -0
  11. package/lib/components/breadcrumb/index.d.ts +3 -0
  12. package/lib/components/button/button.component.d.ts +13 -0
  13. package/lib/components/button/index.d.ts +2 -0
  14. package/lib/components/calendar/calendar.component.d.ts +47 -0
  15. package/lib/components/calendar/calendar.formatter.d.ts +7 -0
  16. package/lib/components/calendar/calendar.types.d.ts +32 -0
  17. package/lib/components/calendar/index.d.ts +3 -0
  18. package/lib/components/card/card.component.d.ts +12 -0
  19. package/lib/components/card/index.d.ts +2 -0
  20. package/lib/components/checkbox/checkbox.component.d.ts +13 -0
  21. package/lib/components/checkbox/index.d.ts +2 -0
  22. package/lib/components/date-picker/date-picker.component.d.ts +45 -0
  23. package/lib/components/date-picker/index.d.ts +2 -0
  24. package/lib/components/file-uploader/file-uploader.component.d.ts +46 -0
  25. package/lib/components/file-uploader/file-uploader.service.d.ts +51 -0
  26. package/lib/components/file-uploader/index.d.ts +4 -0
  27. package/lib/components/filter/filter-content/filter-content.component.d.ts +5 -0
  28. package/lib/components/filter/filter-section/filter-section.component.d.ts +24 -0
  29. package/lib/components/filter/filter-section-checkbox-option/filter-section-checkbox-option.component.d.ts +17 -0
  30. package/lib/components/filter/filter-section-range-option/filter-section-range-option.component.d.ts +34 -0
  31. package/lib/components/filter/filter-section-search-option/filter-section-search-option.component.d.ts +21 -0
  32. package/lib/components/filter/filter-sections/filter-sections.component.d.ts +5 -0
  33. package/lib/components/filter/filter.component.d.ts +27 -0
  34. package/lib/components/filter/index.d.ts +10 -0
  35. package/lib/components/filter/pipes/filter.pipe.d.ts +10 -0
  36. package/lib/components/filter/pipes/index.d.ts +2 -0
  37. package/lib/components/filter/pipes/range-filter.pipe.d.ts +10 -0
  38. package/lib/components/form/form.component.d.ts +19 -0
  39. package/lib/components/form/index.d.ts +2 -0
  40. package/lib/components/grid/grid-row/grid-row.component.d.ts +12 -0
  41. package/lib/components/grid/grid.component.d.ts +26 -0
  42. package/lib/components/grid/grid.directive.d.ts +13 -0
  43. package/lib/components/grid/index.d.ts +5 -0
  44. package/lib/components/index.d.ts +26 -0
  45. package/lib/components/input/index.d.ts +3 -0
  46. package/lib/components/input/input-option/input-option.component.d.ts +16 -0
  47. package/lib/components/input/input.component.d.ts +56 -0
  48. package/lib/components/list/index.d.ts +2 -0
  49. package/lib/components/list/list.component.d.ts +7 -0
  50. package/lib/components/menu/index.d.ts +4 -0
  51. package/lib/components/menu/menu-option/menu-option.component.d.ts +20 -0
  52. package/lib/components/menu/menu-title/menu-title.component.d.ts +6 -0
  53. package/lib/components/menu/menu.component.d.ts +26 -0
  54. package/lib/components/pie-chart/index.d.ts +3 -0
  55. package/lib/components/pie-chart/pie-chart.component.d.ts +28 -0
  56. package/lib/components/pie-chart/pie-chart.types.d.ts +5 -0
  57. package/lib/components/radio/index.d.ts +2 -0
  58. package/lib/components/radio/radio.component.d.ts +13 -0
  59. package/lib/components/select/index.d.ts +3 -0
  60. package/lib/components/select/select-option/select-option.component.d.ts +21 -0
  61. package/lib/components/select/select.component.d.ts +37 -0
  62. package/lib/components/sidebar/index.d.ts +5 -0
  63. package/lib/components/sidebar/sidebar-floating-option/sidebar-floating-option.component.d.ts +34 -0
  64. package/lib/components/sidebar/sidebar-floating-option-title/sidebar-floating-option-title.component.d.ts +7 -0
  65. package/lib/components/sidebar/sidebar-option/sidebar-option.component.d.ts +23 -0
  66. package/lib/components/sidebar/sidebar.component.d.ts +19 -0
  67. package/lib/components/skeleton/index.d.ts +3 -0
  68. package/lib/components/skeleton/skeleton.component.d.ts +12 -0
  69. package/lib/components/skeleton/skeleton.types.d.ts +4 -0
  70. package/lib/components/slider/index.d.ts +2 -0
  71. package/lib/components/slider/slider.component.d.ts +20 -0
  72. package/lib/components/table/directives/index.d.ts +1 -0
  73. package/lib/components/table/directives/table-column-fixed.directive.d.ts +9 -0
  74. package/lib/components/table/index.d.ts +12 -0
  75. package/lib/components/table/table-column/table-column.component.d.ts +12 -0
  76. package/lib/components/table/table-column-arrows/table-column-arrows.component.d.ts +8 -0
  77. package/lib/components/table/table-footer/table-footer.component.d.ts +19 -0
  78. package/lib/components/table/table-header/table-header.component.d.ts +23 -0
  79. package/lib/components/table/table-row/table-row.component.d.ts +28 -0
  80. package/lib/components/table/table-row-expand-content/table-row-expand-content.component.d.ts +5 -0
  81. package/lib/components/table/table-scrolling/table-scrolling.component.d.ts +23 -0
  82. package/lib/components/table/table-scrolling/table-scrolling.directive.d.ts +15 -0
  83. package/lib/components/table/table.component.d.ts +30 -0
  84. package/lib/components/tabs/index.d.ts +3 -0
  85. package/lib/components/tabs/tab/tab.component.d.ts +16 -0
  86. package/lib/components/tabs/tabs.component.d.ts +21 -0
  87. package/lib/components/tag/index.d.ts +3 -0
  88. package/lib/components/tag/tag.component.d.ts +11 -0
  89. package/lib/components/tag/tag.types.d.ts +7 -0
  90. package/lib/components/toggle/index.d.ts +3 -0
  91. package/lib/components/toggle/toggle.component.d.ts +12 -0
  92. package/lib/components/toggle/toggle.types.d.ts +1 -0
  93. package/lib/components/toolbar/index.d.ts +2 -0
  94. package/lib/components/toolbar/toolbar.component.d.ts +5 -0
  95. package/lib/directives/copy-to-clipboard.directive.d.ts +16 -0
  96. package/lib/directives/currency-format.directive.d.ts +16 -0
  97. package/lib/directives/index.d.ts +11 -0
  98. package/lib/directives/loading.directive.d.ts +16 -0
  99. package/lib/directives/long-press.directive.d.ts +12 -0
  100. package/lib/directives/only-numbers.directive.d.ts +12 -0
  101. package/lib/directives/only-phone-digits.directive.d.ts +8 -0
  102. package/lib/directives/text-ellipsis.directive.d.ts +12 -0
  103. package/lib/directives/tooltip.directive.d.ts +24 -0
  104. package/lib/directives/track-by-id.directive.d.ts +12 -0
  105. package/lib/pipes/average.pipe.d.ts +7 -0
  106. package/lib/pipes/enum-to-array.pipe.d.ts +10 -0
  107. package/lib/pipes/format-seconds.pipe.d.ts +13 -0
  108. package/lib/pipes/index.d.ts +13 -0
  109. package/lib/pipes/order-by.pipe.d.ts +8 -0
  110. package/lib/pipes/reduce.pipe.d.ts +7 -0
  111. package/lib/pipes/repeat.pipe.d.ts +7 -0
  112. package/lib/pipes/safe.pipe.d.ts +10 -0
  113. package/lib/pipes/search/index.d.ts +2 -0
  114. package/lib/pipes/search/search.model.d.ts +45 -0
  115. package/lib/pipes/search/search.pipe.d.ts +16 -0
  116. package/lib/pipes/selected.pipe.d.ts +11 -0
  117. package/lib/pipes/set-to-array.pipe.d.ts +7 -0
  118. package/lib/pipes/translate.pipe.d.ts +10 -0
  119. package/lib/services/animation.service.d.ts +24 -0
  120. package/lib/services/cache.service.d.ts +13 -0
  121. package/lib/services/copy-to-clipboard.service.d.ts +10 -0
  122. package/lib/services/export-to-csv.service.d.ts +19 -0
  123. package/lib/services/format-seconds.service.d.ts +22 -0
  124. package/lib/services/index.d.ts +17 -0
  125. package/lib/services/keyboard.service.d.ts +11 -0
  126. package/lib/services/log.service.d.ts +27 -0
  127. package/lib/services/popup/index.d.ts +2 -0
  128. package/lib/services/popup/popup-wrapper/popup-wrapper.component.d.ts +11 -0
  129. package/lib/services/popup/popup.service.d.ts +24 -0
  130. package/lib/services/popup/popup.types.d.ts +4 -0
  131. package/lib/services/router.service.d.ts +29 -0
  132. package/lib/services/storage.service.d.ts +9 -0
  133. package/lib/services/toast/index.d.ts +1 -0
  134. package/lib/services/toast/toast-wrapper/toast-wrapper.component.d.ts +19 -0
  135. package/lib/services/toast/toast.service.d.ts +45 -0
  136. package/lib/services/translate/index.d.ts +2 -0
  137. package/lib/services/translate/translate.module.d.ts +7 -0
  138. package/lib/services/translate/translate.service.d.ts +23 -0
  139. package/lib/services/user-agent/uach-retrofill.d.ts +34 -0
  140. package/lib/services/user-agent/user-agent.service.d.ts +6 -0
  141. package/lib/services/validator.service.d.ts +16 -0
  142. package/lib/services/viewport.service.d.ts +17 -0
  143. package/package.json +41 -0
  144. package/public-api.d.ts +4 -0
  145. package/styles/animations.css +186 -0
  146. package/styles/calendar.css +851 -0
  147. package/styles/date-picker.css +2 -0
  148. package/styles/file-uploader.css +2 -0
  149. package/styles/loading.css +90 -0
  150. package/styles/normalize.css +102 -0
  151. package/styles/overlay.css +1 -0
  152. package/styles/popup.css +21 -0
  153. package/styles/toast.css +83 -0
  154. package/styles/tooltip.css +55 -0
  155. package/styles/variables.css +288 -0
@@ -0,0 +1,13 @@
1
+ import { BizyRouterService } from './router.service';
2
+ import * as i0 from "@angular/core";
3
+ export declare class BizyCacheService {
4
+ private router;
5
+ readonly CACHE_PREFIX = "BIZY-CACHE";
6
+ constructor(router: BizyRouterService);
7
+ getData<T>(key?: string): T;
8
+ setData<T>(value: T, key?: string, expiresAt?: number): void;
9
+ remove(key?: string): void;
10
+ removeAll(): void;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<BizyCacheService, never>;
12
+ static ɵprov: i0.ɵɵInjectableDeclaration<BizyCacheService>;
13
+ }
@@ -0,0 +1,10 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class BizyCopyToClipboardService {
3
+ #private;
4
+ copy(data: string | {
5
+ items: Array<unknown>;
6
+ model: Record<string, string>;
7
+ }): Promise<void>;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<BizyCopyToClipboardService, never>;
9
+ static ɵprov: i0.ɵɵInjectableDeclaration<BizyCopyToClipboardService>;
10
+ }
@@ -0,0 +1,19 @@
1
+ import { RendererFactory2 } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class BizyExportToCSVService {
4
+ #private;
5
+ private document;
6
+ private rendererFactory;
7
+ constructor(document: Document, rendererFactory: RendererFactory2);
8
+ download(data: {
9
+ items: Array<unknown>;
10
+ model: Record<string, string>;
11
+ fileName: string;
12
+ }): void;
13
+ getCSV(data: {
14
+ items: Array<any>;
15
+ model: Record<string, string>;
16
+ }): string;
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<BizyExportToCSVService, never>;
18
+ static ɵprov: i0.ɵɵInjectableDeclaration<BizyExportToCSVService>;
19
+ }
@@ -0,0 +1,22 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare enum BIZY_FORMAT_SECONDS_LANGUAGE {
3
+ SPANISH = "es",
4
+ ENGLISH = "en"
5
+ }
6
+ export declare enum BIZY_FORMAT_SECONDS_FORMAT {
7
+ DATE_TIME = "date-time",
8
+ TIME = "time"
9
+ }
10
+ export declare class BizyFormatSecondsService {
11
+ #private;
12
+ getOptions(): {
13
+ language: BIZY_FORMAT_SECONDS_LANGUAGE;
14
+ format: BIZY_FORMAT_SECONDS_FORMAT;
15
+ };
16
+ setOptions(options: {
17
+ language?: BIZY_FORMAT_SECONDS_LANGUAGE;
18
+ format?: BIZY_FORMAT_SECONDS_FORMAT;
19
+ }): void;
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<BizyFormatSecondsService, never>;
21
+ static ɵprov: i0.ɵɵInjectableDeclaration<BizyFormatSecondsService>;
22
+ }
@@ -0,0 +1,17 @@
1
+ import { BizyAnimationService } from './animation.service';
2
+ import { BizyViewportService } from './viewport.service';
3
+ import { BizyKeyboardService } from './keyboard.service';
4
+ import { BizyExportToCSVService } from './export-to-csv.service';
5
+ import { BizyCacheService } from './cache.service';
6
+ import { BizyUserAgentService } from "./user-agent/user-agent.service";
7
+ import { BizyValidatorService } from "./validator.service";
8
+ import { BizyStorageService } from "./storage.service";
9
+ import { BizyLogService } from "./log.service";
10
+ import { BizyRouterService } from "./router.service";
11
+ import { BizyCopyToClipboardService } from "./copy-to-clipboard.service";
12
+ import { BizyTranslateService } from './translate';
13
+ import { BizyPopupService } from './popup';
14
+ import { BizyToastService } from './toast';
15
+ export { ILocale, LANGUAGE } from './translate';
16
+ export { BizyTranslateModule } from './translate';
17
+ export declare const BizyServices: readonly [typeof BizyPopupService, typeof BizyToastService, typeof BizyAnimationService, typeof BizyViewportService, typeof BizyKeyboardService, typeof BizyExportToCSVService, typeof BizyCacheService, typeof BizyUserAgentService, typeof BizyValidatorService, typeof BizyStorageService, typeof BizyLogService, typeof BizyRouterService, typeof BizyCopyToClipboardService, typeof BizyTranslateService];
@@ -0,0 +1,11 @@
1
+ import { Observable } from 'rxjs';
2
+ import * as i0 from "@angular/core";
3
+ export declare class BizyKeyboardService {
4
+ #private;
5
+ private document;
6
+ get shiftHolding$(): Observable<boolean>;
7
+ constructor(document: Document);
8
+ isShiftHolding(): boolean;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<BizyKeyboardService, never>;
10
+ static ɵprov: i0.ɵɵInjectableDeclaration<BizyKeyboardService>;
11
+ }
@@ -0,0 +1,27 @@
1
+ import * as i0 from "@angular/core";
2
+ interface ILogData {
3
+ fileName: string;
4
+ functionName: string;
5
+ param?: unknown;
6
+ }
7
+ export declare class BizyLogService {
8
+ #private;
9
+ debug(data: string | ILogData, param?: unknown): void;
10
+ info(data: string | ILogData, param?: unknown): void;
11
+ success(data: string | ILogData, param?: unknown): void;
12
+ warning(data: string | ILogData, param?: unknown): void;
13
+ error(data: string | ILogData, param?: unknown): void;
14
+ /** DEPRECATED */
15
+ templateDebug(data: ILogData): void;
16
+ /** DEPRECATED */
17
+ templateSucc(data: ILogData): void;
18
+ /** DEPRECATED */
19
+ templateInfo(data: ILogData): void;
20
+ /** DEPRECATED */
21
+ templateWarn(data: ILogData): void;
22
+ /** DEPRECATED */
23
+ templateError(data: ILogData): void;
24
+ static ɵfac: i0.ɵɵFactoryDeclaration<BizyLogService, never>;
25
+ static ɵprov: i0.ɵɵInjectableDeclaration<BizyLogService>;
26
+ }
27
+ export {};
@@ -0,0 +1,2 @@
1
+ export { IBizyPopupResponse } from './popup.types';
2
+ export { BizyPopupService } from './popup.service';
@@ -0,0 +1,11 @@
1
+ import { ViewContainerRef } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class BizyPopupWrapperComponent<T> {
4
+ #private;
5
+ dynamicComponentContainer: ViewContainerRef;
6
+ ngAfterViewInit(): void;
7
+ loadDynamicComponent(): void;
8
+ close(): void;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<BizyPopupWrapperComponent<any>, never>;
10
+ static ɵcmp: i0.ɵɵComponentDeclaration<BizyPopupWrapperComponent<any>, "bizy-popup-wrapper", never, {}, {}, never, never, true, never>;
11
+ }
@@ -0,0 +1,24 @@
1
+ import { ComponentType } from "@angular/cdk/portal";
2
+ import { BizyPopupWrapperComponent } from "./popup-wrapper/popup-wrapper.component";
3
+ import { DialogRef } from '@angular/cdk/dialog';
4
+ import * as i0 from "@angular/core";
5
+ export declare class BizyPopupService {
6
+ #private;
7
+ static dialogs: Set<DialogRef<unknown, BizyPopupWrapperComponent<unknown>>>;
8
+ open<R>(data: {
9
+ component: ComponentType<unknown>;
10
+ data?: unknown;
11
+ customClass?: string;
12
+ disableClose?: boolean;
13
+ id?: string;
14
+ }, callback?: (res: R) => void): void;
15
+ getData<D>(): D;
16
+ close(data?: {
17
+ id?: string;
18
+ response?: unknown;
19
+ }): void;
20
+ closeAll(): void;
21
+ openedPopups(): number;
22
+ static ɵfac: i0.ɵɵFactoryDeclaration<BizyPopupService, never>;
23
+ static ɵprov: i0.ɵɵInjectableDeclaration<BizyPopupService>;
24
+ }
@@ -0,0 +1,4 @@
1
+ export interface IBizyPopupResponse {
2
+ id: string;
3
+ response: unknown;
4
+ }
@@ -0,0 +1,29 @@
1
+ import { ActivatedRoute, ActivatedRouteSnapshot, Router } from '@angular/router';
2
+ import { Observable } from 'rxjs';
3
+ import * as i0 from "@angular/core";
4
+ export declare class BizyRouterService {
5
+ private router;
6
+ private _backPath;
7
+ transitionsEnd$: Observable<ActivatedRouteSnapshot>;
8
+ transitionsStart$: Observable<ActivatedRouteSnapshot>;
9
+ popStateEvent$: Observable<PopStateEvent>;
10
+ constructor(router: Router);
11
+ getURL(): string;
12
+ getBackPath(): string;
13
+ getId(activatedRoute: ActivatedRoute, param: string): string | null;
14
+ getQueryParam(activatedRoute: ActivatedRoute, param: string): string | null;
15
+ getAllQueryParam(): Record<string, string>;
16
+ goTo(data: {
17
+ path: string;
18
+ params?: Record<string, string>;
19
+ replace?: boolean;
20
+ skip?: boolean;
21
+ }): void;
22
+ goBack(data?: {
23
+ path: string;
24
+ }): void;
25
+ reload(force?: boolean): void;
26
+ private _serialize;
27
+ static ɵfac: i0.ɵɵFactoryDeclaration<BizyRouterService, never>;
28
+ static ɵprov: i0.ɵɵInjectableDeclaration<BizyRouterService>;
29
+ }
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class BizyStorageService {
3
+ get<T>(key: string): T;
4
+ set(key: string, value: unknown): void;
5
+ remove(key: string): void;
6
+ clear(): void;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<BizyStorageService, never>;
8
+ static ɵprov: i0.ɵɵInjectableDeclaration<BizyStorageService>;
9
+ }
@@ -0,0 +1 @@
1
+ export { BizyToastService } from './toast.service';
@@ -0,0 +1,19 @@
1
+ import { TOAST, BizyToastService } from '../toast.service';
2
+ import * as i0 from "@angular/core";
3
+ export declare class BizyToastWrapperComponent {
4
+ private data;
5
+ private toast;
6
+ type: TOAST;
7
+ title: string;
8
+ msg: string;
9
+ id: string;
10
+ constructor(data: {
11
+ type: TOAST;
12
+ title: string;
13
+ msg: string;
14
+ id: string;
15
+ }, toast: BizyToastService);
16
+ close(): void;
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<BizyToastWrapperComponent, never>;
18
+ static ɵcmp: i0.ɵɵComponentDeclaration<BizyToastWrapperComponent, "bizy-toast-wrapper", never, {}, {}, never, never, true, never>;
19
+ }
@@ -0,0 +1,45 @@
1
+ import { Dialog } from '@angular/cdk/dialog';
2
+ import * as i0 from "@angular/core";
3
+ export declare enum TOAST {
4
+ DEFAULT = "default",
5
+ SUCCESS = "success",
6
+ INFO = "info",
7
+ WARNING = "warning",
8
+ DANGER = "danger"
9
+ }
10
+ export declare class BizyToastService {
11
+ #private;
12
+ private dialog;
13
+ duration: number;
14
+ defaultSuccessTitle: string;
15
+ defaultDangerTitle: string;
16
+ constructor(dialog: Dialog);
17
+ config(data: {
18
+ defaultSuccessTitle?: string;
19
+ defaultDangerTitle?: string;
20
+ duration?: number;
21
+ }): void;
22
+ default(data: string | {
23
+ title: string;
24
+ msg?: string;
25
+ }): void;
26
+ info(data: string | {
27
+ title: string;
28
+ msg?: string;
29
+ }): void;
30
+ success(data?: string | {
31
+ title: string;
32
+ msg?: string;
33
+ }): void;
34
+ warning(data: string | {
35
+ title: string;
36
+ msg?: string;
37
+ }): void;
38
+ danger(data?: string | {
39
+ title: string;
40
+ msg?: string;
41
+ }): void;
42
+ close: (id: string) => void;
43
+ static ɵfac: i0.ɵɵFactoryDeclaration<BizyToastService, never>;
44
+ static ɵprov: i0.ɵɵInjectableDeclaration<BizyToastService>;
45
+ }
@@ -0,0 +1,2 @@
1
+ export { BizyTranslateModule } from './translate.module';
2
+ export * from './translate.service';
@@ -0,0 +1,7 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "@ngx-translate/core";
3
+ export declare class BizyTranslateModule {
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<BizyTranslateModule, never>;
5
+ static ɵmod: i0.ɵɵNgModuleDeclaration<BizyTranslateModule, never, [typeof i1.TranslateModule], never>;
6
+ static ɵinj: i0.ɵɵInjectorDeclaration<BizyTranslateModule>;
7
+ }
@@ -0,0 +1,23 @@
1
+ import { TranslateService } from '@ngx-translate/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare enum LANGUAGE {
4
+ SPANISH = "es",
5
+ ENGLISH = "en"
6
+ }
7
+ export interface ILocale {
8
+ lang: LANGUAGE;
9
+ translations: Record<string, unknown>;
10
+ }
11
+ export declare class BizyTranslateService {
12
+ private translate;
13
+ constructor(translate: TranslateService);
14
+ loadTranslations(...args: ILocale[]): void;
15
+ addLangs(langs: Array<LANGUAGE>): void;
16
+ getLangs(): Array<LANGUAGE>;
17
+ setDefault(lang: LANGUAGE): void;
18
+ getCurrentLang(): LANGUAGE;
19
+ use(lang: LANGUAGE): void;
20
+ get(translation: string): string;
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<BizyTranslateService, never>;
22
+ static ɵprov: i0.ɵɵInjectableDeclaration<BizyTranslateService>;
23
+ }
@@ -0,0 +1,34 @@
1
+ /**
2
+ * Copyright 2020 Google LLC
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the 'License');
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an 'AS IS' BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ /**
17
+ * @param {string[]} hints
18
+ * @return {Promise<string|undefined>} A Promise that resolves to a string if a
19
+ * UA could be synthesized from client hints, otherwise undefined.
20
+ */
21
+ declare function getUserAgentUsingClientHints(hints: ['architecture', 'bitness', 'model', 'platformVersion', 'uaFullVersion', 'fullVersionList']): Promise<string>;
22
+ declare function getVersion(fullVersionList: any[], majorVersion: any): any;
23
+ declare function getWindowsPlatformVersion(platformVersion: string): string;
24
+ /**
25
+ * @param {string[]} hints
26
+ * @return {Promise<string|undefined>} A Promise that resolves on overriding the
27
+ * navigator.userAgent string.
28
+ */
29
+ declare function overrideUserAgentUsingClientHints(hints: ['architecture', 'bitness', 'model', 'platformVersion', 'uaFullVersion', 'fullVersionList']): Promise<string>;
30
+ export declare const exportedForTests: {
31
+ getVersion: typeof getVersion;
32
+ getWindowsPlatformVersion: typeof getWindowsPlatformVersion;
33
+ };
34
+ export { getUserAgentUsingClientHints, overrideUserAgentUsingClientHints as getUserAgent };
@@ -0,0 +1,6 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class BizyUserAgentService {
3
+ get(): Promise<string>;
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<BizyUserAgentService, never>;
5
+ static ɵprov: i0.ɵɵInjectableDeclaration<BizyUserAgentService>;
6
+ }
@@ -0,0 +1,16 @@
1
+ import { ValidatorFn } from '@angular/forms';
2
+ import * as i0 from "@angular/core";
3
+ export declare class BizyValidatorService {
4
+ isEmail(email: unknown): boolean;
5
+ isPassFormat(pass: unknown): boolean;
6
+ isNoSpecialCharacter(name: string): boolean;
7
+ isNumber(number: unknown): number is number;
8
+ isPhoneNumber(number: string): boolean;
9
+ isString(string: unknown): string is string;
10
+ isJSON(text: string): boolean;
11
+ emailValidator(): ValidatorFn;
12
+ phoneNumberValidator(): ValidatorFn;
13
+ numberValidator(): ValidatorFn;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<BizyValidatorService, never>;
15
+ static ɵprov: i0.ɵɵInjectableDeclaration<BizyValidatorService>;
16
+ }
@@ -0,0 +1,17 @@
1
+ import { Observable } from 'rxjs';
2
+ import * as i0 from "@angular/core";
3
+ interface IViewportSize {
4
+ height: number;
5
+ width: number;
6
+ }
7
+ export declare class BizyViewportService {
8
+ #private;
9
+ private window;
10
+ get sizeChange$(): Observable<IViewportSize>;
11
+ constructor(window: Window);
12
+ width(): number;
13
+ height(): number;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<BizyViewportService, never>;
15
+ static ɵprov: i0.ɵɵInjectableDeclaration<BizyViewportService>;
16
+ }
17
+ export {};
package/package.json ADDED
@@ -0,0 +1,41 @@
1
+ {
2
+ "name": "@bizy/core",
3
+ "version": "19.0.0",
4
+ "peerDependencies": {
5
+ "@angular/cdk": "19.2.2",
6
+ "@angular/common": "19.2.1",
7
+ "@angular/core": "19.2.1",
8
+ "@angular/forms": "19.2.1",
9
+ "@angular/platform-browser": "19.2.1",
10
+ "@angular/platform-browser-dynamic": "19.2.1",
11
+ "@angular/router": "19.2.1",
12
+ "@ngx-translate/core": "16.0.4",
13
+ "@uppy/core": "3.13.1",
14
+ "@uppy/dashboard": "3.8.3",
15
+ "@uppy/locales": "3.5.3",
16
+ "@uppy/xhr-upload": "3.6.7",
17
+ "angular-calendar": "0.31.1",
18
+ "autonumeric": "4.10.8",
19
+ "date-fns": "4.1.0",
20
+ "echarts": "5.6.0",
21
+ "flatpickr": "4.6.13",
22
+ "fuse.js": "7.1.0",
23
+ "html2canvas": "1.4.1",
24
+ "rxjs": "7.8.2"
25
+ },
26
+ "dependencies": {
27
+ "tslib": "2.8.1"
28
+ },
29
+ "sideEffects": false,
30
+ "module": "fesm2022/bizy-core.mjs",
31
+ "typings": "index.d.ts",
32
+ "exports": {
33
+ "./package.json": {
34
+ "default": "./package.json"
35
+ },
36
+ ".": {
37
+ "types": "./index.d.ts",
38
+ "default": "./fesm2022/bizy-core.mjs"
39
+ }
40
+ }
41
+ }
@@ -0,0 +1,4 @@
1
+ export * from './lib/components';
2
+ export * from './lib/services';
3
+ export * from './lib/pipes';
4
+ export * from './lib/directives';
@@ -0,0 +1,186 @@
1
+ @keyframes slide-in-left {
2
+ from {
3
+ transform: translate3d(-100%, 0, 0);
4
+ visibility: visible;
5
+ }
6
+
7
+ to {
8
+ transform: translate3d(0, 0, 0);
9
+ }
10
+ }
11
+
12
+ .slide-in-left {
13
+ animation-name: slide-in-left;
14
+ }
15
+
16
+ @keyframes slide-in-right {
17
+ from {
18
+ transform: translate3d(100%, 0, 0);
19
+ visibility: visible;
20
+ }
21
+
22
+ to {
23
+ transform: translate3d(0, 0, 0);
24
+ }
25
+ }
26
+
27
+ .slide-in-right {
28
+ animation-name: slide-in-right;
29
+ }
30
+
31
+ @keyframes slide-out-left {
32
+ from {
33
+ transform: translate3d(0, 0, 0);
34
+ }
35
+
36
+ to {
37
+ visibility: hidden;
38
+ transform: translate3d(-100%, 0, 0);
39
+ }
40
+ }
41
+
42
+ .slide-out-left {
43
+ animation-name: slide-out-left;
44
+ }
45
+
46
+ @keyframes slide-out-right {
47
+ from {
48
+ transform: translate3d(0, 0, 0);
49
+ }
50
+
51
+ to {
52
+ visibility: hidden;
53
+ transform: translate3d(100%, 0, 0);
54
+ }
55
+ }
56
+
57
+ .slide-out-right {
58
+ animation-name: slide-out-right;
59
+ }
60
+
61
+ @keyframes fade-in {
62
+ from {
63
+ opacity: 0;
64
+ }
65
+
66
+ to {
67
+ opacity: 1;
68
+ }
69
+ }
70
+
71
+ .fade-in {
72
+ animation-name: fade-in;
73
+ }
74
+
75
+ @keyframes fade-in-down {
76
+ from {
77
+ opacity: 0;
78
+ transform: translate3d(0, -100%, 0);
79
+ }
80
+
81
+ to {
82
+ opacity: 1;
83
+ transform: translate3d(0, 0, 0);
84
+ }
85
+ }
86
+
87
+ .fade-in-down {
88
+ animation-name: fade-in-down;
89
+ }
90
+
91
+ @keyframes fade-in-left {
92
+ from {
93
+ opacity: 0;
94
+ transform: translate3d(-100%, 0, 0);
95
+ }
96
+
97
+ to {
98
+ opacity: 1;
99
+ transform: translate3d(0, 0, 0);
100
+ }
101
+ }
102
+
103
+ .fade-in-left {
104
+ animation-name: fade-in-left;
105
+ }
106
+
107
+ @keyframes fade-in-right {
108
+ from {
109
+ opacity: 0;
110
+ transform: translate3d(100%, 0, 0);
111
+ }
112
+
113
+ to {
114
+ opacity: 1;
115
+ transform: translate3d(0, 0, 0);
116
+ }
117
+ }
118
+
119
+ .fade-in-right {
120
+ animation-name: fade-in-right;
121
+ }
122
+
123
+ @keyframes fade-in-up {
124
+ from {
125
+ opacity: 0;
126
+ transform: translate3d(0, 100%, 0);
127
+ }
128
+
129
+ to {
130
+ opacity: 1;
131
+ transform: translate3d(0, 0, 0);
132
+ }
133
+ }
134
+
135
+ .fade-in-up {
136
+ animation-name: fade-in-up;
137
+ }
138
+
139
+ @keyframes fade-out {
140
+ from {
141
+ opacity: 1;
142
+ }
143
+
144
+ to {
145
+ opacity: 0;
146
+ }
147
+ }
148
+
149
+ .fade-out {
150
+ animation-name: fade-out;
151
+ }
152
+
153
+ @keyframes slide-in-up {
154
+ from {
155
+ transform: translate3d(0, 100%, 0);
156
+ visibility: visible;
157
+ }
158
+
159
+ to {
160
+ transform: translate3d(0, 0, 0);
161
+ }
162
+ }
163
+
164
+ .slide-in-up {
165
+ animation-name: slide-in-up;
166
+ }
167
+
168
+ @keyframes slide-in-down {
169
+ from {
170
+ transform: translate3d(0, -100%, 0);
171
+ visibility: visible;
172
+ }
173
+
174
+ to {
175
+ transform: translate3d(0, 0, 0);
176
+ }
177
+ }
178
+
179
+ .slide-in-down {
180
+ animation-name: slide-in-down;
181
+ }
182
+
183
+ .animated {
184
+ animation-duration: var(--bizy-animation-timeout);
185
+ animation-fill-mode: both;
186
+ }