tailjng 0.0.12 → 0.0.13

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 (52) hide show
  1. package/cli/tailjng.js +105 -0
  2. package/fesm2022/tailjng.mjs +27 -4472
  3. package/fesm2022/tailjng.mjs.map +1 -1
  4. package/lib/services/icons.service.d.ts +9 -0
  5. package/lib/tailjng.component.d.ts +5 -0
  6. package/lib/tailjng.service.d.ts +6 -0
  7. package/package.json +8 -2
  8. package/public-api.d.ts +3 -30
  9. package/src/lib/components/label/label.component.css +0 -0
  10. package/src/lib/components/label/label.component.html +25 -0
  11. package/src/lib/components/label/label.component.ts +27 -0
  12. package/src/lib/components/tooltip/tooltip.directive.ts +341 -0
  13. package/src/lib/components/tooltip/tooltip.service.ts +192 -0
  14. package/lib/colors/colors.service.d.ts +0 -16
  15. package/lib/colors/theme/elements/theme.service.d.ts +0 -15
  16. package/lib/colors/theme/theme.component.d.ts +0 -87
  17. package/lib/components/alert-dialog/alert-dialog.component.d.ts +0 -24
  18. package/lib/components/alert-dialog/elements/alert-dialog.interface.d.ts +0 -41
  19. package/lib/components/alert-dialog/elements/alert-dialog.service.d.ts +0 -24
  20. package/lib/components/alert-toast/alert-toast.component.d.ts +0 -27
  21. package/lib/components/alert-toast/elements/alert-toast.interface.d.ts +0 -47
  22. package/lib/components/alert-toast/elements/alert-toast.service.d.ts +0 -26
  23. package/lib/components/button/button.component.d.ts +0 -35
  24. package/lib/components/checkbox/checkbox.component.d.ts +0 -21
  25. package/lib/components/crud/card-component/card.component.d.ts +0 -91
  26. package/lib/components/crud/filter-component/elements/filter.interface.d.ts +0 -62
  27. package/lib/components/crud/filter-component/filter.component.d.ts +0 -54
  28. package/lib/components/crud/form-component/components/content-form/content-form.component.d.ts +0 -8
  29. package/lib/components/crud/form-component/components/error-message/error-message.component.d.ts +0 -13
  30. package/lib/components/crud/form-component/form.component.d.ts +0 -29
  31. package/lib/components/crud/paginator-component/paginator.component.d.ts +0 -27
  32. package/lib/components/crud/table-component/elements/table.interface.d.ts +0 -65
  33. package/lib/components/crud/table-component/table.component.d.ts +0 -97
  34. package/lib/components/dialog/dialog.component.d.ts +0 -37
  35. package/lib/components/input/input.component.d.ts +0 -47
  36. package/lib/components/label/label.component.d.ts +0 -13
  37. package/lib/components/mode-toggle/mode-toggle.component.d.ts +0 -15
  38. package/lib/components/select/option/option.component.d.ts +0 -15
  39. package/lib/components/select/select.component.d.ts +0 -93
  40. package/lib/components/toggle-radio/toggle-radio.component.d.ts +0 -48
  41. package/lib/components/tooltip/tooltip.directive.d.ts +0 -20
  42. package/lib/components/tooltip/tooltip.service.d.ts +0 -16
  43. package/lib/http/api-url.d.ts +0 -2
  44. package/lib/http/converter.service.d.ts +0 -21
  45. package/lib/http/crud-generic.service.d.ts +0 -86
  46. package/lib/http/http-error.service.d.ts +0 -24
  47. package/lib/http/http-rest.service.d.ts +0 -9
  48. package/lib/http/interface/api-response.d.ts +0 -20
  49. package/lib/service/calendar.service.d.ts +0 -26
  50. package/lib/shared/dialog.shared.d.ts +0 -9
  51. package/lib/shared/form.shared.d.ts +0 -28
  52. package/tailjng-theme.css +0 -2810
@@ -1,15 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export type ThemeMode = 'light' | 'dark';
3
- export declare class ThemeService {
4
- private readonly _theme;
5
- readonly themeSignal: import("@angular/core").Signal<ThemeMode>;
6
- constructor();
7
- private initializeTheme;
8
- private listenToExternalChanges;
9
- private applyTheme;
10
- toggleTheme(): void;
11
- setTheme(theme: ThemeMode): void;
12
- getThemeMode(): ThemeMode;
13
- static ɵfac: i0.ɵɵFactoryDeclaration<ThemeService, never>;
14
- static ɵprov: i0.ɵɵInjectableDeclaration<ThemeService>;
15
- }
@@ -1,87 +0,0 @@
1
- import { ThemeMode } from './elements/theme.service';
2
- import * as i0 from "@angular/core";
3
- interface ColorPosition {
4
- x: number;
5
- y: number;
6
- }
7
- interface GeneratedColors {
8
- background: string;
9
- foreground: string;
10
- card: string;
11
- cardForeground: string;
12
- popover: string;
13
- popoverForeground: string;
14
- primary: string;
15
- primaryForeground: string;
16
- secondary: string;
17
- secondaryForeground: string;
18
- muted: string;
19
- mutedForeground: string;
20
- accent: string;
21
- accentForeground: string;
22
- destructive: string;
23
- destructiveForeground: string;
24
- border: string;
25
- input: string;
26
- ring: string;
27
- darkBackground: string;
28
- darkForeground: string;
29
- darkCard: string;
30
- darkCardForeground: string;
31
- darkPopover: string;
32
- darkPopoverForeground: string;
33
- darkPrimary: string;
34
- darkPrimaryForeground: string;
35
- darkSecondary: string;
36
- darkSecondaryForeground: string;
37
- darkMuted: string;
38
- darkMutedForeground: string;
39
- darkAccent: string;
40
- darkAccentForeground: string;
41
- darkDestructive: string;
42
- darkDestructiveForeground: string;
43
- darkBorder: string;
44
- darkInput: string;
45
- darkRing: string;
46
- }
47
- export declare class JThemeComponent {
48
- private readonly themeService;
49
- icons: {
50
- [key: string]: any;
51
- };
52
- baseColor: string;
53
- saturation: number;
54
- lightness: number;
55
- huePosition: number;
56
- colorPickerPosition: ColorPosition;
57
- previewMode: ThemeMode;
58
- private lastTheme;
59
- isPickingColor: boolean;
60
- copied: boolean;
61
- themeCode: string;
62
- generatedColors: GeneratedColors;
63
- ngOnInit(): void;
64
- get hueGradient(): string;
65
- getCurrentTheme(): string;
66
- toggleTheme(): void;
67
- setPreviewMode(mode: ThemeMode): void;
68
- startColorPicking(event: MouseEvent): void;
69
- updateColorPicking(event: MouseEvent): void;
70
- stopColorPicking(): void;
71
- updateColorFromPosition(event: MouseEvent): void;
72
- updateHueFromInput(event: Event): void;
73
- updateFromHexInput(): void;
74
- syncFromHSL(): void;
75
- hexToHSL(hex: string): {
76
- h: number;
77
- s: number;
78
- l: number;
79
- };
80
- hslToHex(h: number, s: number, l: number): string;
81
- generateTheme(): void;
82
- copyThemeToClipboard(): void;
83
- mixHsl(h1: number, s1: number, l1: number, h2: number, s2: number, l2: number, ratio: number): string;
84
- static ɵfac: i0.ɵɵFactoryDeclaration<JThemeComponent, never>;
85
- static ɵcmp: i0.ɵɵComponentDeclaration<JThemeComponent, "JTheme", never, {}, {}, never, never, true, never>;
86
- }
87
- export {};
@@ -1,24 +0,0 @@
1
- import { JColorsService } from "../../colors/colors.service";
2
- import * as i0 from "@angular/core";
3
- export declare class JAlertDialogComponent {
4
- private readonly colorsService;
5
- monocromatic: boolean;
6
- private readonly alertDialogService;
7
- constructor(colorsService: JColorsService);
8
- dialogs: import("@angular/core").Signal<import("./elements/alert-dialog.interface").Dialog[]>;
9
- icons: {
10
- [key: string]: any;
11
- };
12
- getIcon(type: string): any;
13
- handleAction(action: "confirm" | "cancel" | "retry"): void;
14
- getDialogClass(type: string): "border-green-500 bg-green-50 dark:bg-[#15241f]" | "border-red-500 bg-red-50 dark:bg-[#21181c]" | "border-yellow-500 bg-yellow-50 dark:bg-[#1f1c1a]" | "border-blue-500 bg-blue-50 dark:bg-[#1a1a24]" | "border-purple-500 bg-purple-50 dark:bg-[#241732]" | "border-gray-500 bg-gray-50 dark:bg-[#15181e]" | "border-gray-500" | "bg-white dark:bg-dark-popover border-border dark:border-dark-border";
15
- getIconClass(type: string): "text-green-500" | "text-red-500" | "text-yellow-500" | "text-blue-500" | "text-purple-500" | "text-gray-500" | "text-primary";
16
- getButtonClass(type: string): {
17
- [key: string]: boolean;
18
- };
19
- getButtonSecondaryClass(type: string): {
20
- [key: string]: boolean;
21
- };
22
- static ɵfac: i0.ɵɵFactoryDeclaration<JAlertDialogComponent, never>;
23
- static ɵcmp: i0.ɵɵComponentDeclaration<JAlertDialogComponent, "JAlertDialog", never, { "monocromatic": { "alias": "monocromatic"; "required": false; }; }, {}, never, never, true, never>;
24
- }
@@ -1,41 +0,0 @@
1
- interface BaseAlertDialogProps {
2
- title: string;
3
- description: string;
4
- }
5
- interface SuccessAlertDialogProps extends BaseAlertDialogProps {
6
- type: "success";
7
- onConfirm: () => Promise<void> | void;
8
- }
9
- interface InfoAlertDialogProps extends BaseAlertDialogProps {
10
- type: "info";
11
- onConfirm: () => Promise<void> | void;
12
- onCancel?: () => Promise<void> | void;
13
- }
14
- interface WarningAlertDialogProps extends BaseAlertDialogProps {
15
- type: "warning";
16
- onConfirm: () => Promise<void> | void;
17
- onCancel?: () => Promise<void> | void;
18
- }
19
- interface QuestionAlertDialogProps extends BaseAlertDialogProps {
20
- type: "question";
21
- onConfirm: () => Promise<void> | void;
22
- onCancel: () => Promise<void> | void;
23
- }
24
- interface ErrorAlertDialogProps extends BaseAlertDialogProps {
25
- type: "error";
26
- onConfirm: () => Promise<void> | void;
27
- onCancel?: () => Promise<void> | void;
28
- onRetry?: () => Promise<void> | void;
29
- }
30
- interface LoadingAlertDialogProps extends BaseAlertDialogProps {
31
- type: "loading";
32
- onCancel: () => Promise<void> | void;
33
- }
34
- export type AlertDialogProps = SuccessAlertDialogProps | InfoAlertDialogProps | WarningAlertDialogProps | QuestionAlertDialogProps | ErrorAlertDialogProps | LoadingAlertDialogProps;
35
- export interface Dialog {
36
- config: AlertDialogProps;
37
- isConfirmLoading: boolean;
38
- isCancelLoading: boolean;
39
- isRetryLoading: boolean;
40
- }
41
- export {};
@@ -1,24 +0,0 @@
1
- import { AlertDialogProps, Dialog } from "./alert-dialog.interface";
2
- import * as i0 from "@angular/core";
3
- export declare class JAlertDialogService {
4
- private readonly isOpenSignal;
5
- private readonly configSignal;
6
- private readonly isLoadingConfirm;
7
- private readonly isLoadingCancel;
8
- private readonly isLoadingRetry;
9
- private onConfirmCallback?;
10
- private onCancelCallback?;
11
- private onRetryCallback?;
12
- isOpen: import("@angular/core").Signal<boolean>;
13
- config: import("@angular/core").Signal<AlertDialogProps | null>;
14
- isConfirmLoading: import("@angular/core").Signal<boolean>;
15
- isCancelLoading: import("@angular/core").Signal<boolean>;
16
- isRetryLoading: import("@angular/core").Signal<boolean>;
17
- dialogs: import("@angular/core").Signal<Dialog[]>;
18
- getConfig(): AlertDialogProps | null;
19
- AlertDialog(config: AlertDialogProps): void;
20
- closeDialog(): void;
21
- executeAction(action: "confirm" | "cancel" | "retry"): Promise<void>;
22
- static ɵfac: i0.ɵɵFactoryDeclaration<JAlertDialogService, never>;
23
- static ɵprov: i0.ɵɵInjectableDeclaration<JAlertDialogService>;
24
- }
@@ -1,27 +0,0 @@
1
- import { JColorsService } from '../../colors/colors.service';
2
- import * as i0 from "@angular/core";
3
- export declare class JAlertToastComponent {
4
- private readonly colorsService;
5
- monocromatic: boolean;
6
- position: 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left';
7
- private readonly alertToastService;
8
- constructor(colorsService: JColorsService);
9
- toasts: import("@angular/core").Signal<import("./elements/alert-toast.interface").Toast[]>;
10
- icons: {
11
- [key: string]: any;
12
- };
13
- getIcon(type: string): any;
14
- handleAction(toastId: string, action: "action" | "cancel"): void;
15
- closeToast(toastId: string): void;
16
- getToastClass(type: string): "border-green-500 bg-green-50 dark:bg-[#15241f]" | "border-red-500 bg-red-50 dark:bg-[#21181c]" | "border-yellow-500 bg-yellow-50 dark:bg-[#1f1c1a]" | "border-blue-500 bg-blue-50 dark:bg-[#1a1a24]" | "border-purple-500 bg-purple-50 dark:bg-[#241732]" | "border-gray-500 bg-gray-50 dark:bg-[#15181e]" | "border-gray-500" | "bg-white dark:bg-dark-popover border-border dark:border-dark-border";
17
- getIconClass(type: string): "text-green-500" | "text-red-500" | "text-yellow-500" | "text-blue-500" | "text-purple-500" | "text-gray-500" | "text-primary";
18
- getButtonClass(type: string): {
19
- [key: string]: boolean;
20
- };
21
- getButtonSecondaryClass(type: string): {
22
- [key: string]: boolean;
23
- };
24
- getPositionClass(): string;
25
- static ɵfac: i0.ɵɵFactoryDeclaration<JAlertToastComponent, never>;
26
- static ɵcmp: i0.ɵɵComponentDeclaration<JAlertToastComponent, "JAlertToast", never, { "monocromatic": { "alias": "monocromatic"; "required": false; }; "position": { "alias": "position"; "required": false; }; }, {}, never, never, true, never>;
27
- }
@@ -1,47 +0,0 @@
1
- interface BaseAlertToastProps {
2
- title: string;
3
- description: string;
4
- autoClose?: boolean;
5
- autoCloseDelay?: number;
6
- actionButtonText?: string;
7
- }
8
- interface SuccessAlertToastProps extends BaseAlertToastProps {
9
- type: "success";
10
- onAction?: () => Promise<void> | void;
11
- }
12
- interface InfoAlertToastProps extends BaseAlertToastProps {
13
- type: "info";
14
- onAction?: () => Promise<void> | void;
15
- onCancel?: () => Promise<void> | void;
16
- }
17
- interface WarningAlertToastProps extends BaseAlertToastProps {
18
- type: "warning";
19
- onAction?: () => Promise<void> | void;
20
- onCancel?: () => Promise<void> | void;
21
- }
22
- interface QuestionAlertToastProps extends BaseAlertToastProps {
23
- type: "question";
24
- onAction: () => Promise<void> | void;
25
- onCancel: () => Promise<void> | void;
26
- }
27
- interface ErrorAlertToastProps extends BaseAlertToastProps {
28
- type: "error";
29
- onAction?: () => Promise<void> | void;
30
- onCancel?: () => Promise<void> | void;
31
- }
32
- interface LoadingAlertToastProps extends BaseAlertToastProps {
33
- type: "loading";
34
- onCancel: () => Promise<void> | void;
35
- }
36
- export type AlertToastProps = SuccessAlertToastProps | InfoAlertToastProps | WarningAlertToastProps | QuestionAlertToastProps | ErrorAlertToastProps | LoadingAlertToastProps;
37
- export interface Toast {
38
- id: string;
39
- config: AlertToastProps;
40
- isActionLoading: boolean;
41
- isCancelLoading: boolean;
42
- onActionCallback?: () => Promise<void> | void;
43
- onCancelCallback?: () => Promise<void> | void;
44
- actionNameButton: string;
45
- createdAt: number;
46
- }
47
- export {};
@@ -1,26 +0,0 @@
1
- import { AlertToastProps, Toast } from "./alert-toast.interface";
2
- import * as i0 from "@angular/core";
3
- export declare class JAlertToastService {
4
- private readonly toastsSignal;
5
- private readonly autoCloseTimers;
6
- private readonly DEFAULT_AUTO_CLOSE_DELAY;
7
- private readonly DEFAULT_ACTION_BUTTON_TEXT;
8
- private readonly isOpenSignal;
9
- private readonly configSignal;
10
- private readonly isLoadingAction;
11
- private readonly isLoadingCancel;
12
- toasts: import("@angular/core").Signal<Toast[]>;
13
- isOpen: import("@angular/core").Signal<boolean>;
14
- config: import("@angular/core").Signal<AlertToastProps | null>;
15
- isActionLoading: import("@angular/core").Signal<boolean>;
16
- isCancelLoading: import("@angular/core").Signal<boolean>;
17
- getConfig(): AlertToastProps | null;
18
- AlertToast(config: AlertToastProps): `${string}-${string}-${string}-${string}-${string}`;
19
- closeToastById(toastId: string): void;
20
- closeAllToasts(): void;
21
- executeToastAction(toastId: string, action: "action" | "cancel"): Promise<void>;
22
- closeToast(): void;
23
- executeAction(action: "action" | "cancel"): Promise<void>;
24
- static ɵfac: i0.ɵɵFactoryDeclaration<JAlertToastService, never>;
25
- static ɵprov: i0.ɵɵInjectableDeclaration<JAlertToastService>;
26
- }
@@ -1,35 +0,0 @@
1
- import { EventEmitter } from "@angular/core";
2
- import * as i0 from "@angular/core";
3
- export declare class JButtonComponent {
4
- icons: {
5
- [key: string]: any;
6
- };
7
- private readonly colorsService;
8
- type: "button" | "submit" | "reset";
9
- disabled: boolean;
10
- isLoading: boolean;
11
- icon: any;
12
- iconSize: number;
13
- text: string | number;
14
- isChangeIcon: boolean;
15
- iconChange: any;
16
- tooltip: string;
17
- tooltipPosition: "top" | "right" | "bottom" | "left";
18
- clicked: EventEmitter<Event>;
19
- classes: string;
20
- ngClasses: {
21
- [key: string]: boolean;
22
- };
23
- private hasClass;
24
- get variantClasses(): string;
25
- private getActiveVariant;
26
- get computedClasses(): {
27
- [x: string]: boolean;
28
- "flex gap-3 items-center justify-center font-semibold border border-border dark:border-dark-border px-3 py-2 rounded transition duration-300 select-none": boolean;
29
- "cursor-pointer": boolean;
30
- "cursor-default opacity-50 pointer-events-none": boolean;
31
- };
32
- handleClick(event: Event): void;
33
- static ɵfac: i0.ɵɵFactoryDeclaration<JButtonComponent, never>;
34
- static ɵcmp: i0.ɵɵComponentDeclaration<JButtonComponent, "JButton", never, { "type": { "alias": "type"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "iconSize": { "alias": "iconSize"; "required": false; }; "text": { "alias": "text"; "required": false; }; "isChangeIcon": { "alias": "isChangeIcon"; "required": false; }; "iconChange": { "alias": "iconChange"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; "tooltipPosition": { "alias": "tooltipPosition"; "required": false; }; "classes": { "alias": "classes"; "required": false; }; "ngClasses": { "alias": "ngClasses"; "required": false; }; }, { "clicked": "clicked"; }, never, ["*"], true, never>;
35
- }
@@ -1,21 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class JCheckboxComponent {
3
- icons: {
4
- [key: string]: any;
5
- };
6
- type: 'checkbox' | 'switch';
7
- icon: any;
8
- iconSize: number;
9
- disabled?: boolean;
10
- isLoading?: boolean;
11
- classes: string;
12
- title: string;
13
- isChecked: boolean;
14
- item: any;
15
- column: any;
16
- getValue: (item: any, column: any) => boolean;
17
- onCheckboxChange: (item: any, column: any) => void;
18
- toggleSwitch: (isChecked: boolean) => void;
19
- static ɵfac: i0.ɵɵFactoryDeclaration<JCheckboxComponent, never>;
20
- static ɵcmp: i0.ɵɵComponentDeclaration<JCheckboxComponent, "JCheckbox", never, { "type": { "alias": "type"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "iconSize": { "alias": "iconSize"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; }; "classes": { "alias": "classes"; "required": false; }; "title": { "alias": "title"; "required": false; }; "isChecked": { "alias": "isChecked"; "required": false; }; "item": { "alias": "item"; "required": false; }; "column": { "alias": "column"; "required": false; }; "getValue": { "alias": "getValue"; "required": false; }; "onCheckboxChange": { "alias": "onCheckboxChange"; "required": false; }; "toggleSwitch": { "alias": "toggleSwitch"; "required": false; }; }, {}, never, never, true, never>;
21
- }
@@ -1,91 +0,0 @@
1
- import { EventEmitter, OnInit } from '@angular/core';
2
- import { CurrencyPipe } from '@angular/common';
3
- import { Params } from '@angular/router';
4
- import { JConverterService } from '../../../http/converter.service';
5
- import { FilterButton, FilterSelect } from '../filter-component/elements/filter.interface';
6
- import { LoadingState, LoadingStates, OptionsTable, SortDirection, TableColumn } from '../table-component/elements/table.interface';
7
- import { JGenericService } from '../../../http/crud-generic.service';
8
- import { JAlertToastService } from '../../../../public-api';
9
- import { JCalendarService } from '../../../service/calendar.service';
10
- import * as i0 from "@angular/core";
11
- export declare class CardComponent implements OnInit {
12
- private readonly currencyPipe;
13
- private readonly genericService;
14
- private readonly alertToastService;
15
- private readonly converterService;
16
- private readonly calendarService;
17
- Math: Math;
18
- dataLoaded: EventEmitter<void>;
19
- loadingStates: LoadingStates;
20
- icons: {
21
- [key: string]: any;
22
- };
23
- endpoint: string;
24
- columns: TableColumn<any>[];
25
- defaultFilters: {
26
- [key: string]: any;
27
- };
28
- isPaginator: boolean;
29
- isSearch: boolean;
30
- data: any[];
31
- itemTemplate: any;
32
- expandTemplate?: (row: any) => string;
33
- expandedRows: Set<any>;
34
- currentPage: number;
35
- itemsPerPageOptions: number[];
36
- itemsPerPage: number;
37
- totalItems: number;
38
- sortColumn: string | null;
39
- sortDirection: SortDirection;
40
- sortingColumn: string | null;
41
- searchQuery: string;
42
- searchPlaceholder: string;
43
- filters: any;
44
- displayData: any[];
45
- pages: number[];
46
- get startIndex(): number;
47
- get totalPages(): number;
48
- filtersButton: FilterButton[];
49
- filtersSelect: FilterSelect[];
50
- constructor(currencyPipe: CurrencyPipe, genericService: JGenericService, alertToastService: JAlertToastService, converterService: JConverterService, calendarService: JCalendarService);
51
- ngOnInit(): void;
52
- overrideFilterEvents(): void;
53
- loadData(loadingType?: keyof LoadingStates, onFinally?: () => void): void;
54
- updateDisplayData(): void;
55
- onCheckboxChange(item: any, column: TableColumn<any>): void;
56
- onClearFilters(buttonType: string): void;
57
- columnDefaults(): void;
58
- getVisibleColumnsCount(): number;
59
- isBoolean(value: any): boolean;
60
- getValue(item: any, column: TableColumn<any>): any;
61
- formatData(value: any, column: TableColumn<any>): any;
62
- getQueryParams(): Params;
63
- getRowNumber(index: number): number;
64
- onSort(column: TableColumn<any>): void;
65
- getSortKey(value: any): string;
66
- onSortKeyPress(event: KeyboardEvent, column: TableColumn<any>): void;
67
- onSearch(): void;
68
- onItemsPerPageChange(): void;
69
- generatePagination(): void;
70
- handlePageChange(page: number): void;
71
- onButtonClick(button: OptionsTable, element: any): void;
72
- getTooltip(tooltip: string | ((data?: any) => string), data: any): string;
73
- getIcon(icon: ((data?: any) => any), data: any): any;
74
- getDisabled(option: OptionsTable, data: any): boolean;
75
- getIsVisible(option: OptionsTable, data: any): boolean;
76
- mergeNgClasses(optionNgClass: ((data?: any) => any), data: any): any;
77
- isLoading(state: keyof LoadingStates): boolean;
78
- isAnyLoading(): boolean;
79
- setLoadingState(state: keyof LoadingStates, value: LoadingState | {
80
- [buttonType: string]: LoadingState;
81
- }): void;
82
- setAditionalButtonLoading(buttonType: string, id?: number | string): void;
83
- clearAditionalButtonLoading(buttonType: string, id?: number | string): void;
84
- isAditionalButtonLoading(buttonType: string, id?: number | string): boolean;
85
- hasExpandable(): boolean;
86
- toggleRow(row: any): void;
87
- getExpandedContent(row: any): string;
88
- getExpansionState(row: any): 'expanded' | 'collapsed';
89
- static ɵfac: i0.ɵɵFactoryDeclaration<CardComponent, never>;
90
- static ɵcmp: i0.ɵɵComponentDeclaration<CardComponent, "JCrudCard", never, { "endpoint": { "alias": "endpoint"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "defaultFilters": { "alias": "defaultFilters"; "required": false; }; "isPaginator": { "alias": "isPaginator"; "required": false; }; "isSearch": { "alias": "isSearch"; "required": false; }; "itemTemplate": { "alias": "itemTemplate"; "required": false; }; "itemsPerPageOptions": { "alias": "itemsPerPageOptions"; "required": false; }; "searchPlaceholder": { "alias": "searchPlaceholder"; "required": false; }; "filtersButton": { "alias": "filtersButton"; "required": false; }; "filtersSelect": { "alias": "filtersSelect"; "required": false; }; }, { "dataLoaded": "dataLoaded"; }, never, never, true, never>;
91
- }
@@ -1,62 +0,0 @@
1
- import { TableColumn } from "../../table-component/elements/table.interface";
2
- type CommonFilterButtonProps = {
3
- type?: 'filter' | 'clear' | 'excel' | 'pdf' | 'copy';
4
- icon?: any;
5
- clicked?: (data?: any) => void;
6
- classes?: string;
7
- tooltip?: ((data?: any) => string) | string;
8
- disabled?: ((data?: any) => boolean) | boolean;
9
- isVisible?: ((data?: any) => boolean) | boolean;
10
- tooltipPosition?: 'top' | 'right' | 'bottom' | 'left';
11
- };
12
- type FilterButtonWithChangeIcon = CommonFilterButtonProps & {
13
- isChangeIcon: boolean | (() => boolean);
14
- iconChange: any;
15
- };
16
- type FilterButtonWithoutChangeIcon = CommonFilterButtonProps & {
17
- isChangeIcon?: undefined;
18
- iconChange?: any;
19
- };
20
- export type FilterButton = FilterButtonWithChangeIcon | FilterButtonWithoutChangeIcon;
21
- export interface DropdownFilterSelect {
22
- type: 'dropdown';
23
- selected: any;
24
- initSelected?: any;
25
- onSelected?: (value: any) => void;
26
- optionLabel?: string;
27
- optionValue?: string;
28
- placeholder?: string;
29
- showClear?: boolean;
30
- options: any[];
31
- deep?: string;
32
- }
33
- export interface SearchableFilterSelect {
34
- type: 'searchable';
35
- selected: any;
36
- initSelected?: any;
37
- onSelected?: (value: any) => void;
38
- endpoint: string;
39
- isSearch?: boolean;
40
- optionLabel: string;
41
- optionValue: string;
42
- placeholder?: string;
43
- showClear?: boolean;
44
- loadOnInit?: boolean;
45
- searchFields?: string[];
46
- defaultFilters?: {
47
- [key: string]: any;
48
- };
49
- deep?: string;
50
- }
51
- export interface MultiTableFilterSelect {
52
- type: 'multi-table';
53
- selected: any;
54
- initSelected?: any;
55
- onSelected?: (value: any) => void;
56
- columns: TableColumn<any>[];
57
- btnText?: string;
58
- placeholder?: string;
59
- deep?: string;
60
- }
61
- export type FilterSelect = DropdownFilterSelect | SearchableFilterSelect | MultiTableFilterSelect;
62
- export {};
@@ -1,54 +0,0 @@
1
- import { EventEmitter, OnDestroy, OnInit, ChangeDetectorRef } from '@angular/core';
2
- import { FilterButton, FilterSelect } from './elements/filter.interface';
3
- import { LoadingState, TableColumn } from '../table-component/elements/table.interface';
4
- import { JDialogShared } from '../../../shared/dialog.shared';
5
- import { JAlertToastService } from '../../../../public-api';
6
- import * as i0 from "@angular/core";
7
- export declare class JFilterComponent implements OnInit, OnDestroy {
8
- readonly dialog: JDialogShared;
9
- private readonly alertToastService;
10
- private readonly cdr;
11
- icons: {
12
- [key: string]: any;
13
- };
14
- isLoadingSearch: boolean;
15
- isLoadingPerPage: boolean;
16
- isLoadingAditionalButtons: {
17
- [key: string]: LoadingState;
18
- };
19
- searchPlaceholder: string;
20
- columns: TableColumn<any>[];
21
- itemsPerPageOptions: number[];
22
- search: EventEmitter<void>;
23
- itemsPerPageChange: EventEmitter<number>;
24
- searchQueryChange: EventEmitter<string>;
25
- onItemsPerPageChangeEvent: EventEmitter<void>;
26
- clearFilters: EventEmitter<string>;
27
- private _itemsPerPage;
28
- get itemsPerPage(): number;
29
- private _searchQuery;
30
- get searchQuery(): string;
31
- private readonly searchSubject;
32
- private searchSubscription;
33
- private isInitialized;
34
- filtersButton: FilterButton[];
35
- filtersSelect: FilterSelect[];
36
- get visibleColumns(): TableColumn<any>[];
37
- constructor(dialog: JDialogShared, alertToastService: JAlertToastService, cdr: ChangeDetectorRef);
38
- ngOnInit(): void;
39
- ngOnDestroy(): void;
40
- set itemsPerPage(value: number);
41
- set searchQuery(value: string);
42
- onSearch(): void;
43
- clearSearch(): void;
44
- onItemsPerPageChange(): void;
45
- normalizeFilterButtons(buttons: FilterButton[]): FilterButton[];
46
- filterBottomClick(button: FilterButton): void;
47
- isButtonLoading(button: FilterButton): boolean;
48
- getIsChangeIcon(button: FilterButton): boolean;
49
- getTooltip(button: FilterButton): string;
50
- getDisabled(button: FilterButton): boolean;
51
- getIsVisible(button: FilterButton): boolean;
52
- static ɵfac: i0.ɵɵFactoryDeclaration<JFilterComponent, never>;
53
- static ɵcmp: i0.ɵɵComponentDeclaration<JFilterComponent, "JFilter", never, { "isLoadingSearch": { "alias": "isLoadingSearch"; "required": false; }; "isLoadingPerPage": { "alias": "isLoadingPerPage"; "required": false; }; "isLoadingAditionalButtons": { "alias": "isLoadingAditionalButtons"; "required": false; }; "searchPlaceholder": { "alias": "searchPlaceholder"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "itemsPerPageOptions": { "alias": "itemsPerPageOptions"; "required": false; }; "itemsPerPage": { "alias": "itemsPerPage"; "required": false; }; "searchQuery": { "alias": "searchQuery"; "required": false; }; "filtersButton": { "alias": "filtersButton"; "required": false; }; "filtersSelect": { "alias": "filtersSelect"; "required": false; }; }, { "search": "search"; "itemsPerPageChange": "itemsPerPageChange"; "searchQueryChange": "searchQueryChange"; "onItemsPerPageChangeEvent": "onItemsPerPageChangeEvent"; "clearFilters": "clearFilters"; }, never, never, true, never>;
54
- }
@@ -1,8 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class JContentFormComponent {
3
- columns: number;
4
- rows: boolean;
5
- getClasses(): string;
6
- static ɵfac: i0.ɵɵFactoryDeclaration<JContentFormComponent, never>;
7
- static ɵcmp: i0.ɵɵComponentDeclaration<JContentFormComponent, "JContentForm", never, { "columns": { "alias": "columns"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; }, {}, never, ["*"], true, never>;
8
- }
@@ -1,13 +0,0 @@
1
- import { AbstractControl } from '@angular/forms';
2
- import * as i0 from "@angular/core";
3
- export declare class JErrorMessageComponent {
4
- control: AbstractControl | null;
5
- errorMessages: {
6
- [key: string]: string;
7
- };
8
- classes: string;
9
- get hasErrors(): boolean;
10
- get errors(): string[];
11
- static ɵfac: i0.ɵɵFactoryDeclaration<JErrorMessageComponent, never>;
12
- static ɵcmp: i0.ɵɵComponentDeclaration<JErrorMessageComponent, "JErrorMessage", never, { "control": { "alias": "control"; "required": false; }; "errorMessages": { "alias": "errorMessages"; "required": false; }; "classes": { "alias": "classes"; "required": false; }; }, {}, never, never, true, never>;
13
- }
@@ -1,29 +0,0 @@
1
- import { EventEmitter, TemplateRef } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export type FormType = 'none' | 'create' | 'update';
4
- export interface DynamicCheckbox {
5
- title: string;
6
- isChecked: boolean;
7
- isLoading?: boolean;
8
- isVisible?: boolean;
9
- onClick: (checked: boolean, index: number) => void;
10
- }
11
- export declare class JFormComponent {
12
- icons: {
13
- [key: string]: any;
14
- };
15
- formTemplate: TemplateRef<any>;
16
- submitForm: EventEmitter<void>;
17
- openForm: boolean;
18
- closeForm: EventEmitter<void>;
19
- typeForm: FormType;
20
- titleForm: string;
21
- isLoading: boolean;
22
- checkboxes: DynamicCheckbox[];
23
- constructor();
24
- onSubmit(): void;
25
- onClose(): void;
26
- handleEscape(event: KeyboardEvent): void;
27
- static ɵfac: i0.ɵɵFactoryDeclaration<JFormComponent, never>;
28
- static ɵcmp: i0.ɵɵComponentDeclaration<JFormComponent, "JCrudForm", never, { "formTemplate": { "alias": "formTemplate"; "required": false; }; "openForm": { "alias": "openForm"; "required": false; }; "typeForm": { "alias": "typeForm"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; }; "checkboxes": { "alias": "checkboxes"; "required": false; }; }, { "submitForm": "submitForm"; "closeForm": "closeForm"; }, never, never, true, never>;
29
- }
@@ -1,27 +0,0 @@
1
- import { EventEmitter } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class JPaginatorComponent {
4
- Math: Math;
5
- icons: {
6
- [key: string]: any;
7
- };
8
- isLoading: boolean;
9
- loadingButton: 'first' | 'prev' | 'next' | 'last' | number | null;
10
- currentPage: number;
11
- itemsPerPageOptions: number[];
12
- itemsPerPage: number;
13
- totalItems: number;
14
- pages: number[];
15
- pageChange: EventEmitter<number>;
16
- get startIndex(): number;
17
- get endIndex(): number;
18
- get totalPages(): number;
19
- onPageChange(page: number): void;
20
- goToFirstPage(): void;
21
- goToPreviousPage(): void;
22
- goToNextPage(): void;
23
- goToLastPage(): void;
24
- isButtonLoading(button: 'first' | 'prev' | 'next' | 'last' | number): boolean;
25
- static ɵfac: i0.ɵɵFactoryDeclaration<JPaginatorComponent, never>;
26
- static ɵcmp: i0.ɵɵComponentDeclaration<JPaginatorComponent, "JPaginator", never, { "isLoading": { "alias": "isLoading"; "required": false; }; "currentPage": { "alias": "currentPage"; "required": false; }; "itemsPerPageOptions": { "alias": "itemsPerPageOptions"; "required": false; }; "itemsPerPage": { "alias": "itemsPerPage"; "required": false; }; "totalItems": { "alias": "totalItems"; "required": false; }; "pages": { "alias": "pages"; "required": false; }; }, { "pageChange": "pageChange"; }, never, never, true, never>;
27
- }