x-tql-component 1.19.4

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 (92) hide show
  1. package/README.md +24 -0
  2. package/fesm2022/x-tql-component.mjs +5224 -0
  3. package/fesm2022/x-tql-component.mjs.map +1 -0
  4. package/index.d.ts +5 -0
  5. package/lib/components/basic/basic.module.d.ts +19 -0
  6. package/lib/components/basic/tql-collapse/tql-collapse.component.d.ts +39 -0
  7. package/lib/components/basic/tql-input/tql-input.component.d.ts +106 -0
  8. package/lib/components/basic/tql-loading-bar/tql-loading-bar.component.d.ts +13 -0
  9. package/lib/components/basic/tql-resizable/tql-resizable.component.d.ts +35 -0
  10. package/lib/components/basic/tql-select/tql-select.component.d.ts +66 -0
  11. package/lib/components/basic/tql-spinner/tql-spinner.component.d.ts +10 -0
  12. package/lib/components/basic/tql-tab/tql-tab.component.d.ts +14 -0
  13. package/lib/components/basic/tql-table-filter-widget/tql-table-filter-widget.component.d.ts +85 -0
  14. package/lib/components/components.module.d.ts +10 -0
  15. package/lib/components/layouts/index.d.ts +5 -0
  16. package/lib/components/layouts/layouts.module.d.ts +15 -0
  17. package/lib/components/layouts/tql-empty-layout/tql-empty-layout.component.d.ts +8 -0
  18. package/lib/components/layouts/tql-header-layout/tql-header-layout.component.d.ts +11 -0
  19. package/lib/components/layouts/tql-main-layout/tql-main-layout.component.d.ts +8 -0
  20. package/lib/components/layouts/tql-navbar-layout/tql-navbar-layout.component.d.ts +27 -0
  21. package/lib/components/template/index.d.ts +22 -0
  22. package/lib/components/template/template.module.d.ts +35 -0
  23. package/lib/components/template/tql-action-bar/tql-action-bar.component.d.ts +27 -0
  24. package/lib/components/template/tql-action-bar-menu/tql-action-bar-menu.component.d.ts +12 -0
  25. package/lib/components/template/tql-action-drawer/tql-action-drawer.component.d.ts +30 -0
  26. package/lib/components/template/tql-breadcrumb/tql-breadcrumb.component.d.ts +26 -0
  27. package/lib/components/template/tql-code-editor/tql-code-editor.component.d.ts +79 -0
  28. package/lib/components/template/tql-collapse-group/tql-collapse-group.component.d.ts +27 -0
  29. package/lib/components/template/tql-dynamic-component/tql-dynamic-component.component.d.ts +19 -0
  30. package/lib/components/template/tql-header/tql-header.component.d.ts +8 -0
  31. package/lib/components/template/tql-highlight-list/tql-highlight-list.component.d.ts +8 -0
  32. package/lib/components/template/tql-image-card/tql-image-card.component.d.ts +18 -0
  33. package/lib/components/template/tql-listed-tree/tql-listed-tree.component.d.ts +73 -0
  34. package/lib/components/template/tql-navbar/index.d.ts +4 -0
  35. package/lib/components/template/tql-navbar/tql-navbar/tql-navbar.component.d.ts +68 -0
  36. package/lib/components/template/tql-navbar/tql-navbar-logo/tql-navbar-logo.component.d.ts +13 -0
  37. package/lib/components/template/tql-navbar/tql-navbar-title/tql-navbar-title.component.d.ts +15 -0
  38. package/lib/components/template/tql-navbar/tql-navbar.module.d.ts +14 -0
  39. package/lib/components/template/tql-nested-list/tql-nested-list.component.d.ts +52 -0
  40. package/lib/components/template/tql-panel/tql-panel.component.d.ts +52 -0
  41. package/lib/components/template/tql-progress-list/tql-progress-list.component.d.ts +36 -0
  42. package/lib/components/template/tql-simple-card/tql-simple-card.component.d.ts +11 -0
  43. package/lib/components/template/tql-simple-list/tql-simple-list.component.d.ts +66 -0
  44. package/lib/components/template/tql-spin/tql-spin.component.d.ts +16 -0
  45. package/lib/components/template/tql-status-list/tql-status-list.component.d.ts +13 -0
  46. package/lib/components/template/tql-table/tql-table.component.d.ts +8 -0
  47. package/lib/components/template/tql-tabs-header/tql-tabs-header.component.d.ts +13 -0
  48. package/lib/components/template/tql-tree/tql-tree.component.d.ts +122 -0
  49. package/lib/constants/error-type.constant.d.ts +12 -0
  50. package/lib/constants/index.d.ts +4 -0
  51. package/lib/constants/interface/i-breadcrumb.d.ts +4 -0
  52. package/lib/constants/interface/i-dynamic-component.d.ts +6 -0
  53. package/lib/constants/interface/i-dynamic-item.d.ts +6 -0
  54. package/lib/constants/interface/i-list-item-option.d.ts +19 -0
  55. package/lib/constants/interface/i-list-item.d.ts +39 -0
  56. package/lib/constants/interface/i-navbar-component.d.ts +3 -0
  57. package/lib/constants/interface/i-router-data.d.ts +23 -0
  58. package/lib/constants/interface/index.d.ts +7 -0
  59. package/lib/constants/models/code-editor.model.d.ts +85 -0
  60. package/lib/constants/models/index.d.ts +1 -0
  61. package/lib/constants/values/actions.constant.d.ts +28 -0
  62. package/lib/constants/values/index.d.ts +2 -0
  63. package/lib/constants/values/mics.constant.d.ts +7 -0
  64. package/lib/controllers/index.d.ts +4 -0
  65. package/lib/controllers/tql-collapse/tql-collapse-controller.service.d.ts +19 -0
  66. package/lib/controllers/tql-dynamic-component/tql-dynamic-controller.service.d.ts +11 -0
  67. package/lib/controllers/tql-header/tql-header-controller.service.d.ts +11 -0
  68. package/lib/controllers/tql-helper/tql-helper.service.d.ts +11 -0
  69. package/lib/controllers/tql-navbar/tql-navbar-controller.service.d.ts +24 -0
  70. package/lib/directives/directives.module.d.ts +16 -0
  71. package/lib/directives/ng-var/ng-var.directive.d.ts +12 -0
  72. package/lib/directives/tql-click-outside/tql-click-outside.directive.d.ts +40 -0
  73. package/lib/directives/tql-collapse/tql-collapse.directive.d.ts +53 -0
  74. package/lib/directives/tql-dynamic-component-host/tql-dynamic-component-host.directive.d.ts +8 -0
  75. package/lib/directives/tql-hover-class/tql-hover-class.directive.d.ts +11 -0
  76. package/lib/directives/tql-resizable/tql-resizable.directive.d.ts +22 -0
  77. package/lib/directives/tql-resized/tql-resized.directive.d.ts +16 -0
  78. package/lib/directives/tql-resized/tql-resized.event.d.ts +6 -0
  79. package/lib/directives/tql-spin/tql-spin.directive.d.ts +34 -0
  80. package/lib/directives/tql-table-filter-widget/tql-table-filter-widget.directive.d.ts +53 -0
  81. package/lib/pipes/pipes.module.d.ts +11 -0
  82. package/lib/pipes/tql-highlight/tql-highlight.pipe.d.ts +8 -0
  83. package/lib/pipes/tql-key-value-order/tql-key-value-order.pipe.d.ts +8 -0
  84. package/lib/pipes/tql-order-by/tql-order-by.pipe.d.ts +7 -0
  85. package/lib/pipes/tql-url-safe/tql-url-safe.pipe.d.ts +10 -0
  86. package/lib/tql-component.module.d.ts +9 -0
  87. package/lib/validators/email.validator.d.ts +2 -0
  88. package/lib/validators/funtions.d.ts +2 -0
  89. package/lib/validators/index.d.ts +3 -0
  90. package/lib/validators/no-white-space.validator.d.ts +2 -0
  91. package/package.json +23 -0
  92. package/public-api.d.ts +31 -0
package/index.d.ts ADDED
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="x-tql-component" />
5
+ export * from './public-api';
@@ -0,0 +1,19 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./tql-input/tql-input.component";
3
+ import * as i2 from "./tql-select/tql-select.component";
4
+ import * as i3 from "./tql-collapse/tql-collapse.component";
5
+ import * as i4 from "./tql-loading-bar/tql-loading-bar.component";
6
+ import * as i5 from "./tql-tab/tql-tab.component";
7
+ import * as i6 from "./tql-resizable/tql-resizable.component";
8
+ import * as i7 from "./tql-spinner/tql-spinner.component";
9
+ import * as i8 from "./tql-table-filter-widget/tql-table-filter-widget.component";
10
+ import * as i9 from "@angular/common";
11
+ import * as i10 from "x-tql-theme";
12
+ import * as i11 from "@ngx-loading-bar/http-client";
13
+ import * as i12 from "@ngx-loading-bar/core";
14
+ import * as i13 from "@angular/forms";
15
+ export declare class BasicModule {
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<BasicModule, never>;
17
+ static ɵmod: i0.ɵɵNgModuleDeclaration<BasicModule, [typeof i1.TqlInputComponent, typeof i2.TqlSelectComponent, typeof i3.TqlCollapseComponent, typeof i4.TqlLoadingBarComponent, typeof i5.TqlTabComponent, typeof i6.TqlResizableComponent, typeof i7.TqlSpinnerComponent, typeof i8.TqlTableFilterWidgetComponent], [typeof i9.CommonModule, typeof i10.MaterialsModule, typeof i11.LoadingBarHttpClientModule, typeof i12.LoadingBarModule, typeof i13.ReactiveFormsModule], [typeof i1.TqlInputComponent, typeof i2.TqlSelectComponent, typeof i3.TqlCollapseComponent, typeof i4.TqlLoadingBarComponent, typeof i5.TqlTabComponent, typeof i6.TqlResizableComponent, typeof i7.TqlSpinnerComponent, typeof i8.TqlTableFilterWidgetComponent]>;
18
+ static ɵinj: i0.ɵɵInjectorDeclaration<BasicModule>;
19
+ }
@@ -0,0 +1,39 @@
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
+ import { DefaultComponent } from 'x-tql-service';
3
+ import { IDynamicComponent } from '../../../constants';
4
+ import { TqlCollapseControllerService } from '../../../controllers';
5
+ import * as i0 from "@angular/core";
6
+ export declare class TqlCollapseComponent extends DefaultComponent implements OnInit, IDynamicComponent {
7
+ private _TqlCollapseControllerService;
8
+ name: string;
9
+ label: string;
10
+ labelClassName: string;
11
+ hasLine: boolean;
12
+ hideIconWhenCollapsed: boolean;
13
+ hideIcon: boolean;
14
+ isCollapse: any;
15
+ offset: number;
16
+ direction: string | TqlCollapseComponent.ENUM_DIRECTION;
17
+ event: EventEmitter<any>;
18
+ readonly directions: typeof TqlCollapseComponent.ENUM_DIRECTION;
19
+ get initializeClass(): boolean;
20
+ data: any;
21
+ constructor(_TqlCollapseControllerService: TqlCollapseControllerService);
22
+ ngOnInit(): void;
23
+ onDataChange(): void;
24
+ /**
25
+ * toggle collapse
26
+ */
27
+ toggleCollapse(isCollapsed?: any): void;
28
+ generateOffset(): string;
29
+ static ɵfac: i0.ɵɵFactoryDeclaration<TqlCollapseComponent, never>;
30
+ static ɵcmp: i0.ɵɵComponentDeclaration<TqlCollapseComponent, "tql-collapse", never, { "name": { "alias": "name"; "required": false; }; "label": { "alias": "label"; "required": false; }; "labelClassName": { "alias": "labelClassName"; "required": false; }; "hasLine": { "alias": "hasLine"; "required": false; }; "hideIconWhenCollapsed": { "alias": "hideIconWhenCollapsed"; "required": false; }; "hideIcon": { "alias": "hideIcon"; "required": false; }; "isCollapse": { "alias": "isCollapse"; "required": false; }; "offset": { "alias": "offset"; "required": false; }; "direction": { "alias": "direction"; "required": false; }; }, { "event": "event"; }, never, never, false, never>;
31
+ }
32
+ export declare namespace TqlCollapseComponent {
33
+ enum ENUM_DIRECTION {
34
+ TOP = "top",
35
+ BOTTOM = "bottom",
36
+ RIGHT = "right",
37
+ LEFT = "left"
38
+ }
39
+ }
@@ -0,0 +1,106 @@
1
+ import { EventEmitter, OnInit, TemplateRef } from '@angular/core';
2
+ import { AbstractControl, FormControl } from '@angular/forms';
3
+ import { IListItem } from '../../../constants';
4
+ import * as i0 from "@angular/core";
5
+ export declare class TqlInputComponent implements OnInit {
6
+ icon: string;
7
+ readonly: boolean;
8
+ placeholder: string;
9
+ className: string;
10
+ wrapperClassName: string;
11
+ inputWrapperClassName: string;
12
+ type: string;
13
+ theme: TqlInputComponent.THEME;
14
+ disabled: boolean;
15
+ checkError: boolean;
16
+ label: string;
17
+ labelClassName: string;
18
+ labelCustomTemplate: TemplateRef<any>;
19
+ fileContentFC: FormControl | null;
20
+ fileAccepts: string[];
21
+ filePreviewTemplate: TemplateRef<any>;
22
+ isShowPreview: boolean;
23
+ onFileContentChange: EventEmitter<string>;
24
+ onFileChange: EventEmitter<File>;
25
+ blur: EventEmitter<any>;
26
+ checkboxLabel: string;
27
+ radioItems: IListItem[];
28
+ templateRadio: TemplateRef<any>;
29
+ min: number;
30
+ max: number;
31
+ isAreaNonResize: boolean;
32
+ isPreventPaste: boolean;
33
+ private _direction;
34
+ directionClassName: string;
35
+ set direction(v: TqlInputComponent.DIRECTIONS);
36
+ readonly TYPES: typeof TqlInputComponent.TYPE;
37
+ readonly THEMES: typeof TqlInputComponent.THEME;
38
+ /**
39
+ * input data
40
+ * @type {FormControl | null}
41
+ * @private
42
+ */
43
+ changed: EventEmitter<any>;
44
+ _input: FormControl;
45
+ set input(value: AbstractControl | undefined);
46
+ constructor();
47
+ ngOnInit(): void;
48
+ /**
49
+ * get error list from input
50
+ * @returns {string[]}
51
+ */
52
+ getError(): string[];
53
+ /**
54
+ * check if input is required
55
+ * @returns {boolean}
56
+ */
57
+ get isRequired(): boolean;
58
+ /**
59
+ * get error message
60
+ * @returns {any}
61
+ */
62
+ getErrorMessage(): string;
63
+ /**
64
+ * handle browsing file
65
+ * @param $event
66
+ */
67
+ onBrowseFile($event: Event): void;
68
+ /**
69
+ *
70
+ * @param file
71
+ * @returns {Promise<unknown>}
72
+ */
73
+ readFileContent(file: File): Promise<unknown>;
74
+ /**
75
+ *
76
+ * @returns {boolean}
77
+ */
78
+ noPaste(): boolean;
79
+ onDataChanged($event: any): void;
80
+ static ɵfac: i0.ɵɵFactoryDeclaration<TqlInputComponent, never>;
81
+ static ɵcmp: i0.ɵɵComponentDeclaration<TqlInputComponent, "tql-input", never, { "icon": { "alias": "icon"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "className": { "alias": "className"; "required": false; }; "wrapperClassName": { "alias": "wrapperClassName"; "required": false; }; "inputWrapperClassName": { "alias": "inputWrapperClassName"; "required": false; }; "type": { "alias": "type"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "checkError": { "alias": "checkError"; "required": false; }; "label": { "alias": "label"; "required": false; }; "labelClassName": { "alias": "labelClassName"; "required": false; }; "labelCustomTemplate": { "alias": "labelCustomTemplate"; "required": false; }; "fileContentFC": { "alias": "fileContentFC"; "required": false; }; "fileAccepts": { "alias": "fileAccepts"; "required": false; }; "filePreviewTemplate": { "alias": "filePreviewTemplate"; "required": false; }; "isShowPreview": { "alias": "isShowPreview"; "required": false; }; "checkboxLabel": { "alias": "checkboxLabel"; "required": false; }; "radioItems": { "alias": "radioItems"; "required": false; }; "templateRadio": { "alias": "templateRadio"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "isAreaNonResize": { "alias": "isAreaNonResize"; "required": false; }; "isPreventPaste": { "alias": "isPreventPaste"; "required": false; }; "direction": { "alias": "direction"; "required": false; }; "input": { "alias": "input"; "required": false; }; }, { "onFileContentChange": "onFileContentChange"; "onFileChange": "onFileChange"; "blur": "blur"; "changed": "changed"; }, never, ["*"], false, never>;
82
+ }
83
+ export declare namespace TqlInputComponent {
84
+ enum TYPE {
85
+ TEXT = "text",
86
+ NUMBER = "number",
87
+ PASSWORD = "password",
88
+ TEXT_AREA = "textarea",
89
+ FILE_BROWSE = "browseFile",
90
+ RADIO = "radio",
91
+ DROPDOWN = "dropdown",
92
+ CHECKBOX = "checkbox"
93
+ }
94
+ enum THEME {
95
+ NORMAL = "normal",
96
+ DARK = "dark",
97
+ DARKER = "darker"
98
+ }
99
+ enum STYLES {
100
+ SMALL = "small"
101
+ }
102
+ enum DIRECTIONS {
103
+ VERTICAL = "vertical",
104
+ HORIZONTAL = "horizontal"
105
+ }
106
+ }
@@ -0,0 +1,13 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { ThemeControllerService } from 'x-tql-theme';
3
+ import * as i0 from "@angular/core";
4
+ export declare class TqlLoadingBarComponent implements OnInit {
5
+ private _ThemeControllerService;
6
+ color: string;
7
+ hasSpinner: boolean;
8
+ isFixed: boolean;
9
+ constructor(_ThemeControllerService: ThemeControllerService);
10
+ ngOnInit(): void;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<TqlLoadingBarComponent, never>;
12
+ static ɵcmp: i0.ɵɵComponentDeclaration<TqlLoadingBarComponent, "tql-loading-bar", never, { "color": { "alias": "color"; "required": false; }; "hasSpinner": { "alias": "hasSpinner"; "required": false; }; "isFixed": { "alias": "isFixed"; "required": false; }; }, {}, never, never, false, never>;
13
+ }
@@ -0,0 +1,35 @@
1
+ import { ElementRef, OnInit, Renderer2 } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class TqlResizableComponent implements OnInit {
4
+ private renderer;
5
+ parentElement: ElementRef;
6
+ private _directions;
7
+ set directions(v: (string | TqlResizableComponent.ENUM_DIRECTIONS)[]);
8
+ get directions(): (string | TqlResizableComponent.ENUM_DIRECTIONS)[];
9
+ get initializeClass(): boolean;
10
+ resize($event: any): void;
11
+ stopResize($event: any): void;
12
+ private direction;
13
+ private start;
14
+ private width;
15
+ private height;
16
+ constructor(renderer: Renderer2);
17
+ ngOnInit(): void;
18
+ onResizeStart($event: MouseEvent, direction: TqlResizableComponent.ENUM_DIRECTIONS): void;
19
+ private onResizeEnd;
20
+ private onResize;
21
+ private isHorizontalResize;
22
+ private getClientX;
23
+ private getClientY;
24
+ static ɵfac: i0.ɵɵFactoryDeclaration<TqlResizableComponent, never>;
25
+ static ɵcmp: i0.ɵɵComponentDeclaration<TqlResizableComponent, "tql-resizable", never, { "parentElement": { "alias": "parentElement"; "required": false; }; "directions": { "alias": "directions"; "required": false; }; }, {}, never, never, false, never>;
26
+ }
27
+ export declare namespace TqlResizableComponent {
28
+ enum ENUM_DIRECTIONS {
29
+ NONE = "none",
30
+ TOP = "top",
31
+ BOTTOM = "bottom",
32
+ LEFT = "left",
33
+ RIGHT = "right"
34
+ }
35
+ }
@@ -0,0 +1,66 @@
1
+ import { ChangeDetectorRef, EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
2
+ import { AbstractControl, FormControl } from '@angular/forms';
3
+ import { IListItem } from '../../../constants';
4
+ import { DefaultComponent } from 'x-tql-service';
5
+ import { MatMenuTrigger } from '@angular/material/menu';
6
+ import * as i0 from "@angular/core";
7
+ export declare class TqlSelectComponent extends DefaultComponent implements OnInit, OnChanges {
8
+ private _ChangeDetectorRef;
9
+ matMenuTrigger: MatMenuTrigger;
10
+ mappingName: string;
11
+ mappingValue: string;
12
+ disabled: boolean;
13
+ className: string;
14
+ placeholder: string;
15
+ icon: string;
16
+ _multiple: boolean;
17
+ set multiple(v: boolean);
18
+ get multiple(): boolean;
19
+ /**
20
+ * options for selections
21
+ * @type {any[]}
22
+ * @private
23
+ */
24
+ _options: any[];
25
+ _optionsRaw: any[];
26
+ set options(list: any[]);
27
+ get options(): any[];
28
+ _originalInputValue: any;
29
+ _input: FormControl | null;
30
+ set input(value: AbstractControl | undefined);
31
+ inputValueChanged: EventEmitter<any>;
32
+ constructor(_ChangeDetectorRef: ChangeDetectorRef);
33
+ ngOnInit(): void;
34
+ ngOnChanges(changes: SimpleChanges): void;
35
+ generateOptions(): void;
36
+ listenInputChange(): void;
37
+ get isRequired(): boolean;
38
+ /**
39
+ * get error message
40
+ * @returns {any}
41
+ */
42
+ getErrorMessage(): string;
43
+ /**
44
+ * select item
45
+ * @param status
46
+ * @param items
47
+ * @param isFirst
48
+ */
49
+ select(status: boolean, items: TqlSelectComponent.SelectOption[], isFirst?: boolean): void;
50
+ get value(): string;
51
+ onClosed($event: any): void;
52
+ onOpened(): void;
53
+ static ɵfac: i0.ɵɵFactoryDeclaration<TqlSelectComponent, never>;
54
+ static ɵcmp: i0.ɵɵComponentDeclaration<TqlSelectComponent, "tql-select", never, { "mappingName": { "alias": "mappingName"; "required": false; }; "mappingValue": { "alias": "mappingValue"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "className": { "alias": "className"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "options": { "alias": "options"; "required": false; }; "input": { "alias": "input"; "required": false; }; }, { "inputValueChanged": "inputValueChanged"; }, never, never, false, never>;
55
+ }
56
+ export declare namespace TqlSelectComponent {
57
+ class SelectOption implements IListItem {
58
+ value: any;
59
+ label: string;
60
+ isChecked: boolean;
61
+ data: any;
62
+ disabled: boolean;
63
+ constructor(label: string, value: any, isChecked?: boolean, disabled?: boolean, data?: any);
64
+ changeCheck(status: boolean): void;
65
+ }
66
+ }
@@ -0,0 +1,10 @@
1
+ import { OnInit } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class TqlSpinnerComponent implements OnInit {
4
+ color: string;
5
+ diameter: string | number;
6
+ constructor();
7
+ ngOnInit(): void;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<TqlSpinnerComponent, never>;
9
+ static ɵcmp: i0.ɵɵComponentDeclaration<TqlSpinnerComponent, "tql-spinner", never, { "color": { "alias": "color"; "required": false; }; "diameter": { "alias": "diameter"; "required": false; }; }, {}, never, never, false, never>;
10
+ }
@@ -0,0 +1,14 @@
1
+ import { AfterViewInit, ChangeDetectorRef, EventEmitter, OnInit, QueryList } from '@angular/core';
2
+ import { MatTab, MatTabGroup } from '@angular/material/tabs';
3
+ import * as i0 from "@angular/core";
4
+ export declare class TqlTabComponent implements OnInit, AfterViewInit {
5
+ private _ChangeDetectorRef;
6
+ tabGroup: MatTabGroup;
7
+ tabContent: QueryList<MatTab>;
8
+ selectedTabChange: EventEmitter<number>;
9
+ constructor(_ChangeDetectorRef: ChangeDetectorRef);
10
+ ngOnInit(): void;
11
+ ngAfterViewInit(): void;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<TqlTabComponent, never>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<TqlTabComponent, "tql-tab", never, {}, { "selectedTabChange": "selectedTabChange"; }, ["tabContent"], ["*"], false, never>;
14
+ }
@@ -0,0 +1,85 @@
1
+ import { AfterViewInit, EventEmitter, OnInit } from '@angular/core';
2
+ import { IDynamicComponent } from '../../../constants';
3
+ import { FormControl } from '@angular/forms';
4
+ import { DefaultComponent, TqlTableControllerService } from 'x-tql-service';
5
+ import * as i0 from "@angular/core";
6
+ export declare class TqlTableFilterWidgetComponent extends DefaultComponent implements OnInit, AfterViewInit, IDynamicComponent {
7
+ private _TqlTableControllerService;
8
+ event: EventEmitter<TqlTableFilterWidgetComponent.IFilter>;
9
+ hasSort: boolean;
10
+ filterKey: string;
11
+ iconClassName: string;
12
+ emptyLabel: string;
13
+ /**
14
+ * list of data
15
+ * @type {{label: any, value: any}[]}
16
+ * @private
17
+ */
18
+ private _list;
19
+ set list(v: {
20
+ label: any;
21
+ value: any[];
22
+ }[]);
23
+ get list(): {
24
+ label: any;
25
+ value: any[];
26
+ }[];
27
+ sort: TqlTableFilterWidgetComponent.ENUM_SORT_DIRECTION;
28
+ sortDirections: typeof TqlTableFilterWidgetComponent.ENUM_SORT_DIRECTION;
29
+ displayedList: {
30
+ label: any;
31
+ value: any[];
32
+ }[];
33
+ selectedList: {
34
+ label: any;
35
+ value: any[];
36
+ }[];
37
+ searchFC: FormControl;
38
+ isOpened: boolean;
39
+ filter: TqlTableFilterWidgetComponent.IFilter;
40
+ constructor(_TqlTableControllerService: TqlTableControllerService);
41
+ ngOnInit(): void;
42
+ ngAfterViewInit(): void;
43
+ onDataChange(): void;
44
+ reset(): void;
45
+ checkFilter(): void;
46
+ toggleSort(direction: TqlTableFilterWidgetComponent.ENUM_SORT_DIRECTION, isCallEvent?: boolean): void;
47
+ toggleFilter(items: any[], isCallEvent?: boolean): void;
48
+ selectAll($event: MouseEvent): void;
49
+ unSelectAll($event: MouseEvent): void;
50
+ hasFilter(): boolean | "";
51
+ clearSearch(): void;
52
+ onChanged(filter?: any): void;
53
+ isFilterSelected(item: {
54
+ label: any;
55
+ value: any[];
56
+ }, list?: {
57
+ label: any;
58
+ value: any[];
59
+ }[]): boolean;
60
+ onSearchChanged($event: any): void;
61
+ sortDisplayedList(): {
62
+ label: any;
63
+ value: any[];
64
+ }[];
65
+ onOpened(): void;
66
+ onClosed(): void;
67
+ static ɵfac: i0.ɵɵFactoryDeclaration<TqlTableFilterWidgetComponent, never>;
68
+ static ɵcmp: i0.ɵɵComponentDeclaration<TqlTableFilterWidgetComponent, "lib-tql-table-filter-widget", never, { "hasSort": { "alias": "hasSort"; "required": false; }; "filterKey": { "alias": "filterKey"; "required": false; }; "iconClassName": { "alias": "iconClassName"; "required": false; }; "emptyLabel": { "alias": "emptyLabel"; "required": false; }; "list": { "alias": "list"; "required": false; }; }, { "event": "event"; }, never, never, false, never>;
69
+ }
70
+ export declare namespace TqlTableFilterWidgetComponent {
71
+ enum ENUM_SORT_DIRECTION {
72
+ ASC = "asc",
73
+ DES = "desc",
74
+ RD = "random"
75
+ }
76
+ interface IFilter {
77
+ _id?: string;
78
+ key?: string;
79
+ sort?: TqlTableFilterWidgetComponent.ENUM_SORT_DIRECTION;
80
+ data?: any[];
81
+ _filter?: any;
82
+ control?: any;
83
+ filteredKeys?: any[];
84
+ }
85
+ }
@@ -0,0 +1,10 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "@angular/common";
3
+ import * as i2 from "./basic/basic.module";
4
+ import * as i3 from "./template/template.module";
5
+ import * as i4 from "./layouts/layouts.module";
6
+ export declare class ComponentsModule {
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<ComponentsModule, never>;
8
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ComponentsModule, never, [typeof i1.CommonModule], [typeof i2.BasicModule, typeof i3.TemplateModule, typeof i4.LayoutsModule]>;
9
+ static ɵinj: i0.ɵɵInjectorDeclaration<ComponentsModule>;
10
+ }
@@ -0,0 +1,5 @@
1
+ export * from './layouts.module';
2
+ export * from './tql-empty-layout/tql-empty-layout.component';
3
+ export * from './tql-header-layout/tql-header-layout.component';
4
+ export * from './tql-navbar-layout/tql-navbar-layout.component';
5
+ export * from './tql-main-layout/tql-main-layout.component';
@@ -0,0 +1,15 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./tql-empty-layout/tql-empty-layout.component";
3
+ import * as i2 from "./tql-header-layout/tql-header-layout.component";
4
+ import * as i3 from "./tql-main-layout/tql-main-layout.component";
5
+ import * as i4 from "./tql-navbar-layout/tql-navbar-layout.component";
6
+ import * as i5 from "@angular/common";
7
+ import * as i6 from "@angular/router";
8
+ import * as i7 from "x-tql-theme";
9
+ import * as i8 from "../template/template.module";
10
+ import * as i9 from "../template/tql-navbar/tql-navbar.module";
11
+ export declare class LayoutsModule {
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<LayoutsModule, never>;
13
+ static ɵmod: i0.ɵɵNgModuleDeclaration<LayoutsModule, [typeof i1.TqlEmptyLayoutComponent, typeof i2.TqlHeaderLayoutComponent, typeof i3.TqlMainLayoutComponent, typeof i4.TqlNavbarLayoutComponent], [typeof i5.CommonModule, typeof i6.RouterModule, typeof i7.MaterialsModule, typeof i8.TemplateModule, typeof i9.TqlNavbarModule], [typeof i1.TqlEmptyLayoutComponent, typeof i2.TqlHeaderLayoutComponent, typeof i3.TqlMainLayoutComponent, typeof i4.TqlNavbarLayoutComponent]>;
14
+ static ɵinj: i0.ɵɵInjectorDeclaration<LayoutsModule>;
15
+ }
@@ -0,0 +1,8 @@
1
+ import { OnInit } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class TqlEmptyLayoutComponent implements OnInit {
4
+ constructor();
5
+ ngOnInit(): void;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<TqlEmptyLayoutComponent, never>;
7
+ static ɵcmp: i0.ɵɵComponentDeclaration<TqlEmptyLayoutComponent, "lib-tql-empty-layout", never, {}, {}, never, never, false, never>;
8
+ }
@@ -0,0 +1,11 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { TqlHeaderControllerService } from '../../../controllers';
3
+ import * as i0 from "@angular/core";
4
+ export declare class TqlHeaderLayoutComponent implements OnInit {
5
+ private _TqlHeaderControllerService;
6
+ contentComponent: any;
7
+ constructor(_TqlHeaderControllerService: TqlHeaderControllerService);
8
+ ngOnInit(): void;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<TqlHeaderLayoutComponent, never>;
10
+ static ɵcmp: i0.ɵɵComponentDeclaration<TqlHeaderLayoutComponent, "tql-header-layout", never, {}, {}, never, never, false, never>;
11
+ }
@@ -0,0 +1,8 @@
1
+ import { OnInit } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class TqlMainLayoutComponent implements OnInit {
4
+ constructor();
5
+ ngOnInit(): void;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<TqlMainLayoutComponent, never>;
7
+ static ɵcmp: i0.ɵɵComponentDeclaration<TqlMainLayoutComponent, "tql-main-layout", never, {}, {}, never, never, false, never>;
8
+ }
@@ -0,0 +1,27 @@
1
+ import { AfterViewInit, ChangeDetectorRef, Component, ComponentFactoryResolver, Injector, OnInit, ViewContainerRef } from '@angular/core';
2
+ import { Router } from '@angular/router';
3
+ import { DynamicDataModel, DefaultComponent } from 'x-tql-service';
4
+ import { IListItem, INavbarComponent } from '../../../constants/interface';
5
+ import { TqlNavbarControllerService } from '../../../controllers/tql-navbar/tql-navbar-controller.service';
6
+ import * as i0 from "@angular/core";
7
+ export declare class TqlNavbarLayoutComponent extends DefaultComponent implements OnInit, AfterViewInit {
8
+ private _Router;
9
+ private _Injector;
10
+ private _ComponentFactoryResolver;
11
+ private _TqlNavbarControllerService;
12
+ private _ChangeDetectorRef;
13
+ dynamicElement: ViewContainerRef;
14
+ subMenus: IListItem[];
15
+ contentComponent: any;
16
+ menuComponent: DynamicDataModel;
17
+ instance: INavbarComponent;
18
+ navbarComponent: Component | null;
19
+ constructor(_Router: Router, _Injector: Injector, _ComponentFactoryResolver: ComponentFactoryResolver, _TqlNavbarControllerService: TqlNavbarControllerService, _ChangeDetectorRef: ChangeDetectorRef);
20
+ ngOnInit(): void;
21
+ ngAfterViewInit(): void;
22
+ addComponent(component: Component | null): void;
23
+ logout(): void;
24
+ goToProfile(): void;
25
+ static ɵfac: i0.ɵɵFactoryDeclaration<TqlNavbarLayoutComponent, never>;
26
+ static ɵcmp: i0.ɵɵComponentDeclaration<TqlNavbarLayoutComponent, "tql-navbar-layout", never, {}, {}, never, never, false, never>;
27
+ }
@@ -0,0 +1,22 @@
1
+ export * from './template.module';
2
+ export * from './tql-navbar';
3
+ export * from './tql-action-drawer/tql-action-drawer.component';
4
+ export * from './tql-breadcrumb/tql-breadcrumb.component';
5
+ export * from './tql-panel/tql-panel.component';
6
+ export * from './tql-simple-list/tql-simple-list.component';
7
+ export * from './tql-simple-card/tql-simple-card.component';
8
+ export * from './tql-header/tql-header.component';
9
+ export * from './tql-collapse-group/tql-collapse-group.component';
10
+ export * from './tql-highlight-list/tql-highlight-list.component';
11
+ export * from './tql-status-list/tql-status-list.component';
12
+ export * from './tql-tree/tql-tree.component';
13
+ export * from './tql-image-card/tql-image-card.component';
14
+ export * from './tql-tabs-header/tql-tabs-header.component';
15
+ export * from './tql-action-bar/tql-action-bar.component';
16
+ export * from './tql-code-editor/tql-code-editor.component';
17
+ export * from './tql-nested-list/tql-nested-list.component';
18
+ export * from './tql-dynamic-component/tql-dynamic-component.component';
19
+ export * from './tql-progress-list/tql-progress-list.component';
20
+ export * from './tql-table/tql-table.component';
21
+ export * from './tql-listed-tree/tql-listed-tree.component';
22
+ export * from './tql-spin/tql-spin.component';
@@ -0,0 +1,35 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./tql-simple-list/tql-simple-list.component";
3
+ import * as i2 from "./tql-action-drawer/tql-action-drawer.component";
4
+ import * as i3 from "./tql-panel/tql-panel.component";
5
+ import * as i4 from "./tql-breadcrumb/tql-breadcrumb.component";
6
+ import * as i5 from "./tql-header/tql-header.component";
7
+ import * as i6 from "./tql-collapse-group/tql-collapse-group.component";
8
+ import * as i7 from "./tql-status-list/tql-status-list.component";
9
+ import * as i8 from "./tql-highlight-list/tql-highlight-list.component";
10
+ import * as i9 from "./tql-image-card/tql-image-card.component";
11
+ import * as i10 from "./tql-simple-card/tql-simple-card.component";
12
+ import * as i11 from "./tql-tree/tql-tree.component";
13
+ import * as i12 from "./tql-tabs-header/tql-tabs-header.component";
14
+ import * as i13 from "./tql-action-bar/tql-action-bar.component";
15
+ import * as i14 from "./tql-nested-list/tql-nested-list.component";
16
+ import * as i15 from "./tql-dynamic-component/tql-dynamic-component.component";
17
+ import * as i16 from "./tql-progress-list/tql-progress-list.component";
18
+ import * as i17 from "./tql-table/tql-table.component";
19
+ import * as i18 from "./tql-listed-tree/tql-listed-tree.component";
20
+ import * as i19 from "./tql-spin/tql-spin.component";
21
+ import * as i20 from "./tql-action-bar-menu/tql-action-bar-menu.component";
22
+ import * as i21 from "./tql-code-editor/tql-code-editor.component";
23
+ import * as i22 from "@angular/common";
24
+ import * as i23 from "x-tql-theme";
25
+ import * as i24 from "./tql-navbar/tql-navbar.module";
26
+ import * as i25 from "../../directives/directives.module";
27
+ import * as i26 from "@angular/router";
28
+ import * as i27 from "@ctrl/ngx-codemirror";
29
+ import * as i28 from "@angular/forms";
30
+ import * as i29 from "@ngx-translate/core";
31
+ export declare class TemplateModule {
32
+ static ɵfac: i0.ɵɵFactoryDeclaration<TemplateModule, never>;
33
+ static ɵmod: i0.ɵɵNgModuleDeclaration<TemplateModule, [typeof i1.TqlSimpleListComponent, typeof i2.TqlActionDrawerComponent, typeof i3.TqlPanelComponent, typeof i4.TqlBreadcrumbComponent, typeof i5.TqlHeaderComponent, typeof i6.TqlCollapseGroupComponent, typeof i7.TqlStatusListComponent, typeof i8.TqlHighlightListComponent, typeof i9.TqlImageCardComponent, typeof i10.TqlSimpleCardComponent, typeof i11.TqlTreeComponent, typeof i11.TqlRouteTreeComponent, typeof i12.TqlTabsHeaderComponent, typeof i13.TqlActionBarComponent, typeof i14.TqlNestedListComponent, typeof i15.TqlDynamicComponentComponent, typeof i16.TqlProgressListComponent, typeof i17.TqlTableComponent, typeof i18.TqlListedTreeComponent, typeof i19.TqlSpinComponent, typeof i20.TqlActionBarMenuComponent, typeof i21.TqlCodeEditorComponent], [typeof i22.CommonModule, typeof i23.MaterialsModule, typeof i24.TqlNavbarModule, typeof i25.DirectivesModule, typeof i26.RouterModule, typeof i27.CodemirrorModule, typeof i28.ReactiveFormsModule, typeof i29.TranslateModule], [typeof i1.TqlSimpleListComponent, typeof i2.TqlActionDrawerComponent, typeof i3.TqlPanelComponent, typeof i4.TqlBreadcrumbComponent, typeof i5.TqlHeaderComponent, typeof i6.TqlCollapseGroupComponent, typeof i7.TqlStatusListComponent, typeof i8.TqlHighlightListComponent, typeof i9.TqlImageCardComponent, typeof i10.TqlSimpleCardComponent, typeof i11.TqlTreeComponent, typeof i11.TqlRouteTreeComponent, typeof i24.TqlNavbarModule, typeof i12.TqlTabsHeaderComponent, typeof i13.TqlActionBarComponent, typeof i14.TqlNestedListComponent, typeof i15.TqlDynamicComponentComponent, typeof i16.TqlProgressListComponent, typeof i17.TqlTableComponent, typeof i18.TqlListedTreeComponent, typeof i19.TqlSpinComponent, typeof i21.TqlCodeEditorComponent]>;
34
+ static ɵinj: i0.ɵɵInjectorDeclaration<TemplateModule>;
35
+ }
@@ -0,0 +1,27 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { IListItemOption } from '../../../constants/interface/i-list-item-option';
3
+ import * as i0 from "@angular/core";
4
+ export declare class TqlActionBarComponent implements OnInit {
5
+ data: any;
6
+ notCompressMin: number;
7
+ action: IListItemOption;
8
+ listStyle: TqlActionBarComponent.ENUM_STYLE | string;
9
+ ENUM_STYLE: typeof TqlActionBarComponent.ENUM_STYLE;
10
+ compressedGroup: IListItemOption[];
11
+ unCompressedGroup: IListItemOption[];
12
+ _list: IListItemOption[];
13
+ nestedArrowIcon: string;
14
+ set list(list: IListItemOption[]);
15
+ get list(): IListItemOption[];
16
+ constructor();
17
+ ngOnInit(): void;
18
+ convertActionGroup(options: IListItemOption[]): void;
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<TqlActionBarComponent, never>;
20
+ static ɵcmp: i0.ɵɵComponentDeclaration<TqlActionBarComponent, "tql-action-bar", never, { "data": { "alias": "data"; "required": false; }; "notCompressMin": { "alias": "notCompressMin"; "required": false; }; "action": { "alias": "action"; "required": false; }; "listStyle": { "alias": "listStyle"; "required": false; }; "list": { "alias": "list"; "required": false; }; }, {}, never, never, false, never>;
21
+ }
22
+ export declare namespace TqlActionBarComponent {
23
+ enum ENUM_STYLE {
24
+ NORMAL = "normal",
25
+ SMALL = "small"
26
+ }
27
+ }
@@ -0,0 +1,12 @@
1
+ import { IListItemOption } from '../../../constants';
2
+ import * as i0 from "@angular/core";
3
+ export declare class TqlActionBarMenuComponent {
4
+ item: IListItemOption;
5
+ data: any;
6
+ nestedArrowIcon: string;
7
+ timedOutCloser: any;
8
+ mouseEnter(trigger: any): void;
9
+ mouseLeave(trigger: any): void;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<TqlActionBarMenuComponent, never>;
11
+ static ɵcmp: i0.ɵɵComponentDeclaration<TqlActionBarMenuComponent, "tql-action-bar-menu", never, { "item": { "alias": "item"; "required": false; }; "data": { "alias": "data"; "required": false; }; }, {}, never, never, false, never>;
12
+ }
@@ -0,0 +1,30 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { IListItemOption } from '../../../constants/interface/i-list-item-option';
3
+ import { IListItem } from '../../../constants/interface/i-list-item';
4
+ import * as i0 from "@angular/core";
5
+ export declare class TqlActionDrawerComponent implements OnInit {
6
+ width: number;
7
+ isResizable: boolean;
8
+ _leftActions: IListItem[];
9
+ set leftActions(v: IListItem[]);
10
+ _rightActions: IListItem[];
11
+ set rightActions(v: IListItem[]);
12
+ headingClass: string;
13
+ moreAction: IListItemOption;
14
+ constructor();
15
+ ngOnInit(): void;
16
+ triggerAction(item: IListItem): void;
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<TqlActionDrawerComponent, never>;
18
+ static ɵcmp: i0.ɵɵComponentDeclaration<TqlActionDrawerComponent, "tql-action-drawer", never, { "width": { "alias": "width"; "required": false; }; "isResizable": { "alias": "isResizable"; "required": false; }; "leftActions": { "alias": "leftActions"; "required": false; }; "rightActions": { "alias": "rightActions"; "required": false; }; "headingClass": { "alias": "headingClass"; "required": false; }; }, {}, never, ["*"], false, never>;
19
+ }
20
+ export declare namespace TqlActionDrawerComponent {
21
+ enum ENUM_ACTIONS {
22
+ REFRESH = "REFRESH",
23
+ SEARCH = "SEARCH",
24
+ COLLAPSE_ALL = "COLLAPSE_ALL",
25
+ EXPAND_ALL = "EXPAND_ALL"
26
+ }
27
+ const ACTION_ICONS: {
28
+ [key in TqlActionDrawerComponent.ENUM_ACTIONS]: IListItem;
29
+ };
30
+ }