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
@@ -0,0 +1,26 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { ActivatedRoute, Router } from '@angular/router';
3
+ import { IBreadcrumb } from '../../../constants/interface';
4
+ import * as i0 from "@angular/core";
5
+ export declare class TqlBreadcrumbComponent implements OnInit {
6
+ private _Router;
7
+ private _ActivatedRoute;
8
+ hasPrefix: boolean;
9
+ noTranslate: boolean;
10
+ breadcrumbList: IBreadcrumb[];
11
+ _selector: any;
12
+ constructor(_Router: Router, _ActivatedRoute: ActivatedRoute);
13
+ ngOnInit(): void;
14
+ /**
15
+ * source
16
+ * https://github.com/piotrkorlaga/demo-angular-breadcrumb/blob/master/src/app/breadcrumb/breadcrumb.component.ts
17
+ * @param route
18
+ * @param url
19
+ * @param breadcrumbs
20
+ * @returns {IBreadcrumb[]}
21
+ */
22
+ private createBreadcrumbs;
23
+ goTo(url: string | undefined): void;
24
+ static ɵfac: i0.ɵɵFactoryDeclaration<TqlBreadcrumbComponent, never>;
25
+ static ɵcmp: i0.ɵɵComponentDeclaration<TqlBreadcrumbComponent, "tql-breadcrumb", never, { "hasPrefix": { "alias": "hasPrefix"; "required": false; }; "noTranslate": { "alias": "noTranslate"; "required": false; }; }, {}, never, never, false, never>;
26
+ }
@@ -0,0 +1,79 @@
1
+ import { AfterViewInit, EventEmitter, OnInit, QueryList, TemplateRef } from '@angular/core';
2
+ import { CodemirrorComponent } from '@ctrl/ngx-codemirror';
3
+ import { CodeEditorModel, IListItemOption } from '../../../constants';
4
+ import * as i0 from "@angular/core";
5
+ export declare class TqlCodeEditorComponent implements OnInit, AfterViewInit {
6
+ _closeActions: IListItemOption[];
7
+ _actions: IListItemOption[];
8
+ set actions(v: IListItemOption[]);
9
+ get actions(): IListItemOption[];
10
+ get moreActions(): IListItemOption[];
11
+ hideDefaultActions: boolean;
12
+ editors: QueryList<CodemirrorComponent>;
13
+ saveAction: ($event: CodeEditorModel) => Promise<boolean>;
14
+ showTabOnly: boolean;
15
+ _data: CodeEditorModel[];
16
+ /**
17
+ * list of code editors
18
+ * @param v
19
+ */
20
+ dataChange: EventEmitter<any>;
21
+ set data(v: CodeEditorModel[]);
22
+ get data(): CodeEditorModel[];
23
+ hasHeading: boolean;
24
+ headingClassName: string;
25
+ multiple: boolean;
26
+ hintMenuTemplate: TemplateRef<any>;
27
+ scrollToBottomWhenUpdate: boolean;
28
+ onChange: EventEmitter<any>;
29
+ onInit: EventEmitter<void>;
30
+ _readOnly: boolean;
31
+ /**
32
+ * set readonly
33
+ * @param v
34
+ */
35
+ set readOnly(v: boolean);
36
+ get readOnly(): boolean;
37
+ _selected: CodeEditorModel | null;
38
+ set selected(value: CodeEditorModel | null);
39
+ get selected(): CodeEditorModel | null;
40
+ questionIcon: IListItemOption;
41
+ saveIcon: IListItemOption;
42
+ formatIcon: IListItemOption;
43
+ moreIcon: IListItemOption;
44
+ closeIcon: IListItemOption;
45
+ unsavedIcon: IListItemOption;
46
+ _mode: string;
47
+ set mode(v: string);
48
+ constructor();
49
+ ngOnInit(): void;
50
+ ngAfterViewInit(): void;
51
+ private setReadOnlyForTabs;
52
+ massageEditor(): void;
53
+ codemirrorChange(text: string): void;
54
+ onSelectTab(item: CodeEditorModel): void;
55
+ onFormat(): void;
56
+ emitEvent(eventClass: TqlCodeEditorComponent.EventType): void;
57
+ onCloseItems(codeEditorModels: CodeEditorModel[]): void;
58
+ onCloseItemOthers(codeEditorModel: CodeEditorModel | null): void;
59
+ static ɵfac: i0.ɵɵFactoryDeclaration<TqlCodeEditorComponent, never>;
60
+ static ɵcmp: i0.ɵɵComponentDeclaration<TqlCodeEditorComponent, "tql-code-editor", never, { "actions": { "alias": "actions"; "required": false; }; "hideDefaultActions": { "alias": "hideDefaultActions"; "required": false; }; "saveAction": { "alias": "saveAction"; "required": false; }; "showTabOnly": { "alias": "showTabOnly"; "required": false; }; "data": { "alias": "data"; "required": false; }; "hasHeading": { "alias": "hasHeading"; "required": false; }; "headingClassName": { "alias": "headingClassName"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "hintMenuTemplate": { "alias": "hintMenuTemplate"; "required": false; }; "scrollToBottomWhenUpdate": { "alias": "scrollToBottomWhenUpdate"; "required": false; }; "readOnly": { "alias": "readOnly"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; }, { "dataChange": "dataChange"; "onChange": "onChange"; "onInit": "onInit"; }, never, never, false, never>;
61
+ }
62
+ export declare namespace TqlCodeEditorComponent {
63
+ type EventType = new () => IEvent;
64
+ interface IEvent {
65
+ editor: CodeEditorModel;
66
+ }
67
+ class CloseEvent implements IEvent {
68
+ editor: CodeEditorModel;
69
+ }
70
+ class SaveEvent implements IEvent {
71
+ editor: CodeEditorModel;
72
+ }
73
+ class EditorChangeEvent implements IEvent {
74
+ editor: CodeEditorModel;
75
+ }
76
+ class ContentChangeEvent implements IEvent {
77
+ editor: CodeEditorModel;
78
+ }
79
+ }
@@ -0,0 +1,27 @@
1
+ import { AfterViewInit, OnInit, TemplateRef } from '@angular/core';
2
+ import { IListItem } from '../../../constants';
3
+ import { NavbarPreview, TqlNavbarControllerService } from '../../../controllers';
4
+ import { DefaultComponent } from 'x-tql-service';
5
+ import * as i0 from "@angular/core";
6
+ export declare class TqlCollapseGroupComponent extends DefaultComponent implements OnInit, AfterViewInit {
7
+ private _TqlNavbarControllerService;
8
+ contentTemplate: TemplateRef<any>;
9
+ headingClassName: string;
10
+ data: IListItem;
11
+ inNavbar: boolean;
12
+ navbarClass: string;
13
+ /**
14
+ *
15
+ * @type {boolean}
16
+ */
17
+ isCollapse: boolean;
18
+ navBarPreview: NavbarPreview | null;
19
+ showNavBarPreview: NavbarPreview | null;
20
+ id: string;
21
+ constructor(_TqlNavbarControllerService: TqlNavbarControllerService);
22
+ ngOnInit(): void;
23
+ ngAfterViewInit(): void;
24
+ onShowContent($event: MouseEvent): void;
25
+ static ɵfac: i0.ɵɵFactoryDeclaration<TqlCollapseGroupComponent, never>;
26
+ static ɵcmp: i0.ɵɵComponentDeclaration<TqlCollapseGroupComponent, "tql-collapse-group", never, { "headingClassName": { "alias": "headingClassName"; "required": false; }; "data": { "alias": "data"; "required": false; }; "inNavbar": { "alias": "inNavbar"; "required": false; }; "navbarClass": { "alias": "navbarClass"; "required": false; }; }, {}, never, ["*"], false, never>;
27
+ }
@@ -0,0 +1,19 @@
1
+ import { ComponentFactoryResolver, EventEmitter, Injector, OnInit, ViewContainerRef } from '@angular/core';
2
+ import { TqlDynamicComponentHostDirective } from '../../../directives/tql-dynamic-component-host/tql-dynamic-component-host.directive';
3
+ import { IDynamicItem } from '../../../constants';
4
+ import * as i0 from "@angular/core";
5
+ export declare class TqlDynamicComponentComponent implements OnInit {
6
+ private _ViewContainerRef;
7
+ private _Injector;
8
+ private _ComponentFactoryResolver;
9
+ viewHost: TqlDynamicComponentHostDirective;
10
+ private _item;
11
+ set item(v: IDynamicItem);
12
+ get item(): IDynamicItem;
13
+ eventChanged: EventEmitter<any>;
14
+ constructor(_ViewContainerRef: ViewContainerRef, _Injector: Injector, _ComponentFactoryResolver: ComponentFactoryResolver);
15
+ ngOnInit(): void;
16
+ addComponent(): void;
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<TqlDynamicComponentComponent, never>;
18
+ static ɵcmp: i0.ɵɵComponentDeclaration<TqlDynamicComponentComponent, "tql-dynamic-component", never, { "item": { "alias": "item"; "required": false; }; }, { "eventChanged": "eventChanged"; }, never, never, false, never>;
19
+ }
@@ -0,0 +1,8 @@
1
+ import { OnInit } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class TqlHeaderComponent implements OnInit {
4
+ constructor();
5
+ ngOnInit(): void;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<TqlHeaderComponent, never>;
7
+ static ɵcmp: i0.ɵɵComponentDeclaration<TqlHeaderComponent, "tql-header", never, {}, {}, never, ["*"], false, never>;
8
+ }
@@ -0,0 +1,8 @@
1
+ import { OnInit } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class TqlHighlightListComponent implements OnInit {
4
+ constructor();
5
+ ngOnInit(): void;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<TqlHighlightListComponent, never>;
7
+ static ɵcmp: i0.ɵɵComponentDeclaration<TqlHighlightListComponent, "lib-tql-highlight-list", never, {}, {}, never, never, false, never>;
8
+ }
@@ -0,0 +1,18 @@
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class TqlImageCardComponent implements OnInit {
4
+ urlImage: string;
5
+ titleString: string;
6
+ description: string;
7
+ isSelected: boolean;
8
+ isSelectedChange: EventEmitter<boolean>;
9
+ onDetailClicked: EventEmitter<any>;
10
+ onLivePreviewClicked: EventEmitter<any>;
11
+ constructor();
12
+ ngOnInit(): void;
13
+ toggleSelect(): void;
14
+ onDetailClick(): void;
15
+ onLivePreviewClick(): void;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<TqlImageCardComponent, never>;
17
+ static ɵcmp: i0.ɵɵComponentDeclaration<TqlImageCardComponent, "tql-image-card", never, { "urlImage": { "alias": "urlImage"; "required": false; }; "titleString": { "alias": "titleString"; "required": false; }; "description": { "alias": "description"; "required": false; }; "isSelected": { "alias": "isSelected"; "required": false; }; }, { "isSelectedChange": "isSelectedChange"; "onDetailClicked": "onDetailClicked"; "onLivePreviewClicked": "onLivePreviewClicked"; }, never, never, false, never>;
18
+ }
@@ -0,0 +1,73 @@
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
+ import { IListItem, IListItemOption } from '../../../constants';
3
+ import * as i0 from "@angular/core";
4
+ export declare class TqlListedTreeComponent implements OnInit {
5
+ init: EventEmitter<TqlListedTreeComponent.ITreeControl>;
6
+ id: string;
7
+ draggable: boolean;
8
+ dropIds: string[];
9
+ dragging: boolean;
10
+ nodeList: IListItem[];
11
+ /**
12
+ * offset for each level
13
+ * @type {number}
14
+ */
15
+ levelOffset: number;
16
+ /**
17
+ * selectable
18
+ * @param v
19
+ */
20
+ _selectable: boolean;
21
+ set selectable(v: boolean);
22
+ get selectable(): boolean;
23
+ /**
24
+ * tree's nodes
25
+ * @type {IListItem[]}
26
+ * @private
27
+ */
28
+ _data: IListItem[];
29
+ isSingleLevelTree: boolean;
30
+ set data(v: IListItem[]);
31
+ get data(): IListItem[];
32
+ selectedClassName: string;
33
+ selectedChanged: EventEmitter<IListItem | null>;
34
+ _selected: IListItem | null;
35
+ set selected(v: IListItem | null);
36
+ get selected(): IListItem | null;
37
+ hoverNameClassName: string;
38
+ collapseClassName: string;
39
+ expandClassName: string;
40
+ hoverCollapseIconClassName: string;
41
+ alwaysShowExpandCollapseIcon: boolean;
42
+ moreAction: IListItemOption;
43
+ constructor();
44
+ ngOnInit(): void;
45
+ private render;
46
+ /**
47
+ *
48
+ * @param level
49
+ */
50
+ calculatePaddingLeft(level: number): string;
51
+ /**
52
+ * add level to each node
53
+ * @param data
54
+ * @param level
55
+ * @param parent
56
+ */
57
+ massageNode(data: IListItem[], level?: number, parent?: IListItem | null): void;
58
+ toggleCollapseExpand(node: IListItem): void;
59
+ isSelectedNode(node: IListItem): boolean;
60
+ onClick(node: IListItem): void;
61
+ toTreeControl(): TqlListedTreeComponent.ITreeControl;
62
+ collapseAll(): void;
63
+ expandAll(): void;
64
+ static ɵfac: i0.ɵɵFactoryDeclaration<TqlListedTreeComponent, never>;
65
+ static ɵcmp: i0.ɵɵComponentDeclaration<TqlListedTreeComponent, "tql-listed-tree", never, { "id": { "alias": "id"; "required": false; }; "draggable": { "alias": "draggable"; "required": false; }; "dropIds": { "alias": "dropIds"; "required": false; }; "levelOffset": { "alias": "levelOffset"; "required": false; }; "selectable": { "alias": "selectable"; "required": false; }; "data": { "alias": "data"; "required": false; }; "selectedClassName": { "alias": "selectedClassName"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "hoverNameClassName": { "alias": "hoverNameClassName"; "required": false; }; "collapseClassName": { "alias": "collapseClassName"; "required": false; }; "expandClassName": { "alias": "expandClassName"; "required": false; }; "hoverCollapseIconClassName": { "alias": "hoverCollapseIconClassName"; "required": false; }; "alwaysShowExpandCollapseIcon": { "alias": "alwaysShowExpandCollapseIcon"; "required": false; }; }, { "init": "init"; "selectedChanged": "selectedChanged"; }, never, never, false, never>;
66
+ }
67
+ export declare namespace TqlListedTreeComponent {
68
+ interface ITreeControl {
69
+ data: IListItem[];
70
+ collapseAll: Function;
71
+ expandAll: Function;
72
+ }
73
+ }
@@ -0,0 +1,4 @@
1
+ export * from './tql-navbar.module';
2
+ export * from './tql-navbar/tql-navbar.component';
3
+ export * from './tql-navbar-logo/tql-navbar-logo.component';
4
+ export * from './tql-navbar-title/tql-navbar-title.component';
@@ -0,0 +1,68 @@
1
+ import { AfterViewInit, ChangeDetectorRef, ComponentFactoryResolver, EventEmitter, OnInit, ViewContainerRef } from '@angular/core';
2
+ import { Router } from '@angular/router';
3
+ import { NavbarPreview, TqlNavbarControllerService } from '../../../../controllers';
4
+ import { DefaultComponent } from 'x-tql-service';
5
+ import { TqlResizableComponent } from '../../../basic/tql-resizable/tql-resizable.component';
6
+ import * as i0 from "@angular/core";
7
+ export declare class TqlNavbarComponent extends DefaultComponent implements OnInit, AfterViewInit {
8
+ private _Router;
9
+ private _ChangeDetectorRef;
10
+ private _ComponentFactoryResolver;
11
+ private _TqlNavbarControllerService;
12
+ isOverlappedStyle: boolean;
13
+ tqlNavbar: ViewContainerRef;
14
+ hiddenWhenCollapse: boolean;
15
+ resizable: boolean;
16
+ initialCollapsed: boolean;
17
+ expandWhenHover: boolean;
18
+ IconOffsetTop: number;
19
+ readonly smallScreenSize: number;
20
+ resizableDirections: typeof TqlResizableComponent.ENUM_DIRECTIONS;
21
+ _collapse: boolean;
22
+ _alwaysCollapse: any;
23
+ collapseEmit: EventEmitter<boolean>;
24
+ navBarPreview: NavbarPreview | null;
25
+ navBarPreviewTop: string;
26
+ set collapse(value: boolean);
27
+ set alwaysCollapsed(value: boolean);
28
+ id: string;
29
+ constructor(_Router: Router, _ChangeDetectorRef: ChangeDetectorRef, _ComponentFactoryResolver: ComponentFactoryResolver, _TqlNavbarControllerService: TqlNavbarControllerService);
30
+ ngOnInit(): void;
31
+ ngAfterViewInit(): void;
32
+ /**
33
+ * render preview template
34
+ * @param preview
35
+ */
36
+ renderPreview(preview?: NavbarPreview | null): void;
37
+ /**
38
+ * toggle left menu
39
+ * @param status: open is expand else collapse
40
+ */
41
+ toggleCollapse(status?: boolean): void;
42
+ /**
43
+ * resize screen
44
+ * @param $event
45
+ */
46
+ onResize($event: any): void;
47
+ /**
48
+ * for mobile and tablet, if click outside left menu then collapse it
49
+ * @param e
50
+ */
51
+ onClickedOutside(e?: Event | null): void;
52
+ /**
53
+ * for mobile and tablet, if click inside left menu then expand it
54
+ */
55
+ onClickedInside(): void;
56
+ /**
57
+ * check collapse change
58
+ * @param $event
59
+ */
60
+ onChangeCollapse($event: boolean): void;
61
+ /**
62
+ * when preview is closed, send null to preview item observable
63
+ */
64
+ onClosePreview(): void;
65
+ onHover(isHovered: boolean): void;
66
+ static ɵfac: i0.ɵɵFactoryDeclaration<TqlNavbarComponent, never>;
67
+ static ɵcmp: i0.ɵɵComponentDeclaration<TqlNavbarComponent, "tql-navbar", never, { "isOverlappedStyle": { "alias": "isOverlappedStyle"; "required": false; }; "hiddenWhenCollapse": { "alias": "hiddenWhenCollapse"; "required": false; }; "resizable": { "alias": "resizable"; "required": false; }; "initialCollapsed": { "alias": "initialCollapsed"; "required": false; }; "expandWhenHover": { "alias": "expandWhenHover"; "required": false; }; "IconOffsetTop": { "alias": "IconOffsetTop"; "required": false; }; "collapse": { "alias": "collapse"; "required": false; }; "alwaysCollapsed": { "alias": "alwaysCollapsed"; "required": false; }; }, {}, never, ["*"], false, never>;
68
+ }
@@ -0,0 +1,13 @@
1
+ import { OnInit } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class TqlNavbarLogoComponent implements OnInit {
4
+ logo: string;
5
+ logoRoute: string[];
6
+ collapseLogo: string;
7
+ width: string;
8
+ height: string;
9
+ constructor();
10
+ ngOnInit(): void;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<TqlNavbarLogoComponent, never>;
12
+ static ɵcmp: i0.ɵɵComponentDeclaration<TqlNavbarLogoComponent, "tql-navbar-logo", never, { "logo": { "alias": "logo"; "required": false; }; "logoRoute": { "alias": "logoRoute"; "required": false; }; "collapseLogo": { "alias": "collapseLogo"; "required": false; }; "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; }, {}, never, never, false, never>;
13
+ }
@@ -0,0 +1,15 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { IListItem, IListItemOption } from '../../../../constants/interface';
3
+ import * as i0 from "@angular/core";
4
+ export declare class TqlNavbarTitleComponent implements OnInit {
5
+ private _title;
6
+ private _options;
7
+ set data(v: IListItem);
8
+ get title(): IListItem;
9
+ get options(): IListItemOption[];
10
+ constructor();
11
+ ngOnInit(): void;
12
+ onClick(): void;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<TqlNavbarTitleComponent, never>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<TqlNavbarTitleComponent, "tql-navbar-title", never, { "data": { "alias": "data"; "required": false; }; }, {}, never, never, false, never>;
15
+ }
@@ -0,0 +1,14 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./tql-navbar/tql-navbar.component";
3
+ import * as i2 from "./tql-navbar-logo/tql-navbar-logo.component";
4
+ import * as i3 from "./tql-navbar-title/tql-navbar-title.component";
5
+ import * as i4 from "@angular/common";
6
+ import * as i5 from "@angular/router";
7
+ import * as i6 from "x-tql-theme";
8
+ import * as i7 from "../../basic/basic.module";
9
+ import * as i8 from "../../../directives/directives.module";
10
+ export declare class TqlNavbarModule {
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<TqlNavbarModule, never>;
12
+ static ɵmod: i0.ɵɵNgModuleDeclaration<TqlNavbarModule, [typeof i1.TqlNavbarComponent, typeof i2.TqlNavbarLogoComponent, typeof i3.TqlNavbarTitleComponent], [typeof i4.CommonModule, typeof i5.RouterModule, typeof i6.MaterialsModule, typeof i7.BasicModule, typeof i8.DirectivesModule], [typeof i1.TqlNavbarComponent, typeof i2.TqlNavbarLogoComponent, typeof i3.TqlNavbarTitleComponent]>;
13
+ static ɵinj: i0.ɵɵInjectorDeclaration<TqlNavbarModule>;
14
+ }
@@ -0,0 +1,52 @@
1
+ import { AfterViewInit, ElementRef, EventEmitter, OnInit, QueryList, TemplateRef } from '@angular/core';
2
+ import { DefaultComponent } from 'x-tql-service';
3
+ import { IListItem, IListItemOption } from '../../../constants';
4
+ import { NavbarPreview, TqlNavbarControllerService } from '../../../controllers';
5
+ import { TqlSimpleListComponent } from '../tql-simple-list/tql-simple-list.component';
6
+ import * as i0 from "@angular/core";
7
+ export declare class TqlNestedListComponent extends DefaultComponent implements OnInit, AfterViewInit {
8
+ private _TqlNavbarControllerService;
9
+ elements: QueryList<ElementRef>;
10
+ contentTemplate: QueryList<TemplateRef<any>>;
11
+ nameTemplate: TemplateRef<any>;
12
+ collapsingIconPosition: string;
13
+ listStyle: TqlSimpleListComponent.ENUM_STYLE;
14
+ hasConnectedLines: boolean;
15
+ private _list;
16
+ set list(v: IListItem[]);
17
+ get list(): IListItem[];
18
+ init: EventEmitter<TqlNestedListComponent.IControl>;
19
+ activeClassName: string;
20
+ deepLevel: number;
21
+ nestedLeftPadding: number;
22
+ inNavbar: boolean;
23
+ offsetInNavbar: number;
24
+ offsetNotInNavbar: number;
25
+ moreAction: IListItemOption;
26
+ navBarPreview: NavbarPreview | null;
27
+ showNavBarPreview: NavbarPreview | null;
28
+ ENUM_HANDLER_POSITION: typeof TqlSimpleListComponent.ENUM_HANDLER_POSITION;
29
+ selectedNode: IListItem;
30
+ constructor(_TqlNavbarControllerService: TqlNavbarControllerService);
31
+ ngOnInit(): void;
32
+ ngAfterViewInit(): void;
33
+ massageList(v: IListItem[]): void;
34
+ select(node: IListItem): void;
35
+ collapseAll(): void;
36
+ expandAll(): void;
37
+ toggleCollapse(item: IListItem, option: IListItem, isCollapsed?: boolean): void;
38
+ onShowContent($event: MouseEvent, index: number): void;
39
+ static ɵfac: i0.ɵɵFactoryDeclaration<TqlNestedListComponent, never>;
40
+ static ɵcmp: i0.ɵɵComponentDeclaration<TqlNestedListComponent, "tql-nested-list", never, { "nameTemplate": { "alias": "nameTemplate"; "required": false; }; "collapsingIconPosition": { "alias": "collapsingIconPosition"; "required": false; }; "listStyle": { "alias": "listStyle"; "required": false; }; "hasConnectedLines": { "alias": "hasConnectedLines"; "required": false; }; "list": { "alias": "list"; "required": false; }; "activeClassName": { "alias": "activeClassName"; "required": false; }; "deepLevel": { "alias": "deepLevel"; "required": false; }; "nestedLeftPadding": { "alias": "nestedLeftPadding"; "required": false; }; "inNavbar": { "alias": "inNavbar"; "required": false; }; "offsetInNavbar": { "alias": "offsetInNavbar"; "required": false; }; "offsetNotInNavbar": { "alias": "offsetNotInNavbar"; "required": false; }; "moreAction": { "alias": "moreAction"; "required": false; }; }, { "init": "init"; }, never, never, false, never>;
41
+ }
42
+ export declare namespace TqlNestedListComponent {
43
+ interface IControl {
44
+ list: IListItem[];
45
+ collapseAll: Function;
46
+ expandAll: Function;
47
+ select: Function;
48
+ }
49
+ enum ENUM_CSS_CLASS {
50
+ SMALL_ICON_SIZE = "font-size-10px"
51
+ }
52
+ }
@@ -0,0 +1,52 @@
1
+ import { OnInit, TemplateRef } from '@angular/core';
2
+ import { IListItem, IListItemOption } from '../../../constants/interface';
3
+ import { MatMenu } from '@angular/material/menu';
4
+ import * as i0 from "@angular/core";
5
+ export declare class TqlPanelComponent implements OnInit {
6
+ panelTitle: string | null;
7
+ panelTitleTemplate: TemplateRef<any>;
8
+ data: IListItem;
9
+ theme: TqlPanelComponent.THEMES;
10
+ style: TqlPanelComponent.STYLES;
11
+ headingClassName: string;
12
+ contentClassName: string;
13
+ hasBorder: boolean;
14
+ hasFullScreen: boolean;
15
+ hasCollapse: boolean;
16
+ hasOverflowXAuto: boolean;
17
+ hasOverflowYAuto: boolean;
18
+ hasAction: boolean;
19
+ isCollapsed: boolean;
20
+ hintMenu: MatMenu;
21
+ readonly THEMES: typeof TqlPanelComponent.THEMES;
22
+ readonly STYLES: typeof TqlPanelComponent.STYLES;
23
+ isFullScreen: boolean;
24
+ constructor();
25
+ ngOnInit(): void;
26
+ toggleFullScreen(): void;
27
+ triggerAction(item: IListItemOption): void;
28
+ toggleCollapse(): void;
29
+ hasTitle(): true;
30
+ static ɵfac: i0.ɵɵFactoryDeclaration<TqlPanelComponent, never>;
31
+ static ɵcmp: i0.ɵɵComponentDeclaration<TqlPanelComponent, "tql-panel", never, { "panelTitle": { "alias": "panelTitle"; "required": false; }; "panelTitleTemplate": { "alias": "panelTitleTemplate"; "required": false; }; "data": { "alias": "data"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; "style": { "alias": "style"; "required": false; }; "headingClassName": { "alias": "headingClassName"; "required": false; }; "contentClassName": { "alias": "contentClassName"; "required": false; }; "hasBorder": { "alias": "hasBorder"; "required": false; }; "hasFullScreen": { "alias": "hasFullScreen"; "required": false; }; "hasCollapse": { "alias": "hasCollapse"; "required": false; }; "hasOverflowXAuto": { "alias": "hasOverflowXAuto"; "required": false; }; "hasOverflowYAuto": { "alias": "hasOverflowYAuto"; "required": false; }; "hasAction": { "alias": "hasAction"; "required": false; }; "isCollapsed": { "alias": "isCollapsed"; "required": false; }; "hintMenu": { "alias": "hintMenu"; "required": false; }; }, {}, never, ["*"], false, never>;
32
+ }
33
+ export declare namespace TqlPanelComponent {
34
+ enum THEMES {
35
+ NORMAL = "normal",
36
+ BLACK = "black",
37
+ BLACK_BLUE = "black-blue"
38
+ }
39
+ enum STYLES {
40
+ NORMAL = "normal",
41
+ SMALL = "small"
42
+ }
43
+ enum DEFAULT_OPTIONS_KEYS {
44
+ FULL_SCREEN = 0
45
+ }
46
+ const DEFAULT_OPTIONS: {
47
+ 0: {
48
+ name: string;
49
+ iconClassName: string;
50
+ };
51
+ };
52
+ }
@@ -0,0 +1,36 @@
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
+ import { IListItem } from '../../../constants';
3
+ import { BehaviorSubject, Observable } from 'rxjs';
4
+ import { DefaultComponent } from 'x-tql-service';
5
+ import * as i0 from "@angular/core";
6
+ export declare class TqlProgressListComponent extends DefaultComponent implements OnInit {
7
+ inNavbar: boolean;
8
+ private _title;
9
+ private _children;
10
+ set data(v: IListItem);
11
+ get title(): IListItem;
12
+ get children(): IListItem[];
13
+ progressStatus: TqlProgressListComponent.ProgressStatus;
14
+ init: EventEmitter<TqlProgressListComponent.ProgressStatus>;
15
+ currentClass: string;
16
+ idleClass: string;
17
+ pendingClass: string;
18
+ completedClass: string;
19
+ constructor();
20
+ ngOnInit(): void;
21
+ generateStatusClass(): void;
22
+ static ɵfac: i0.ɵɵFactoryDeclaration<TqlProgressListComponent, never>;
23
+ static ɵcmp: i0.ɵɵComponentDeclaration<TqlProgressListComponent, "tql-progress-list", never, { "inNavbar": { "alias": "inNavbar"; "required": false; }; "data": { "alias": "data"; "required": false; }; }, { "init": "init"; }, never, never, false, never>;
24
+ }
25
+ export declare namespace TqlProgressListComponent {
26
+ enum ENUM_STATUSES {
27
+ IDLE = 0,
28
+ PENDING = 1,
29
+ COMPLETED = 2
30
+ }
31
+ class ProgressStatus {
32
+ progress$: BehaviorSubject<ENUM_STATUSES>;
33
+ constructor();
34
+ setProgress(observable: Observable<any>): void;
35
+ }
36
+ }
@@ -0,0 +1,11 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { IListItem } from '../../../constants/interface';
3
+ import * as i0 from "@angular/core";
4
+ export declare class TqlSimpleCardComponent implements OnInit {
5
+ item: IListItem;
6
+ class: string;
7
+ constructor();
8
+ ngOnInit(): void;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<TqlSimpleCardComponent, never>;
10
+ static ɵcmp: i0.ɵɵComponentDeclaration<TqlSimpleCardComponent, "tql-simple-card", never, { "item": { "alias": "item"; "required": false; }; "class": { "alias": "class"; "required": false; }; }, {}, never, never, false, never>;
11
+ }
@@ -0,0 +1,66 @@
1
+ import { EventEmitter, OnInit, TemplateRef } from '@angular/core';
2
+ import { IListItem, IListItemOption } from '../../../constants/interface';
3
+ import { CdkDragDrop } from '@angular/cdk/drag-drop';
4
+ import { DefaultComponent } from 'x-tql-service';
5
+ import { MatRipple } from '@angular/material/core';
6
+ import * as i0 from "@angular/core";
7
+ export declare class TqlSimpleListComponent extends DefaultComponent implements OnInit {
8
+ ripple: MatRipple;
9
+ contentTemplate: TemplateRef<any>;
10
+ nameTemplate: TemplateRef<any>;
11
+ listStyle: TqlSimpleListComponent.ENUM_STYLE;
12
+ ENUM_STYLE: typeof TqlSimpleListComponent.ENUM_STYLE;
13
+ hasConnectedLines: boolean;
14
+ level: number;
15
+ _items: IListItem[];
16
+ set items(v: IListItem[]);
17
+ get items(): IListItem[];
18
+ theme: TqlSimpleListComponent.ENUM_THEMES;
19
+ noActive: boolean;
20
+ activeClassName: string;
21
+ hasBorderBottom: boolean;
22
+ collapsingIconPosition: string;
23
+ draggable: boolean;
24
+ dragHandlerPosition: string;
25
+ dropIds: string[];
26
+ onDragStart: EventEmitter<any>;
27
+ onDragEnd: EventEmitter<any>;
28
+ inNavbar: boolean;
29
+ navbarClass: string;
30
+ ENUM_HANDLER_POSITION: typeof TqlSimpleListComponent.ENUM_HANDLER_POSITION;
31
+ DEFAULT_ITEM_HEIGHT: number;
32
+ DEFAULT_ITEM__SMALL_HEIGHT: number;
33
+ dragging: boolean;
34
+ itemStyle: string;
35
+ moreAction: IListItemOption;
36
+ constructor();
37
+ ngOnInit(): void;
38
+ onDrop($event: CdkDragDrop<any, any>): void;
39
+ onDragMove(): void;
40
+ dragHover(node: any): void;
41
+ dragStart(item: IListItem): void;
42
+ dragHoverEnd(): void;
43
+ dragEnd(): void;
44
+ filterOptions(options?: IListItemOption[], filter?: any, isRevert?: boolean): IListItemOption[];
45
+ calculateConnectedLinesHeight(item: any): string;
46
+ calculateNestedConnectedLinesHeight(item: any, isInit?: boolean): number;
47
+ calculateConnectedLinesTop(): string;
48
+ calculateConnectedNodTop(): string;
49
+ getDefaultItemHeight(): number;
50
+ static ɵfac: i0.ɵɵFactoryDeclaration<TqlSimpleListComponent, never>;
51
+ static ɵcmp: i0.ɵɵComponentDeclaration<TqlSimpleListComponent, "tql-simple-list", never, { "nameTemplate": { "alias": "nameTemplate"; "required": false; }; "listStyle": { "alias": "listStyle"; "required": false; }; "hasConnectedLines": { "alias": "hasConnectedLines"; "required": false; }; "level": { "alias": "level"; "required": false; }; "items": { "alias": "items"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; "noActive": { "alias": "noActive"; "required": false; }; "activeClassName": { "alias": "activeClassName"; "required": false; }; "hasBorderBottom": { "alias": "hasBorderBottom"; "required": false; }; "collapsingIconPosition": { "alias": "collapsingIconPosition"; "required": false; }; "draggable": { "alias": "draggable"; "required": false; }; "dragHandlerPosition": { "alias": "dragHandlerPosition"; "required": false; }; "dropIds": { "alias": "dropIds"; "required": false; }; "inNavbar": { "alias": "inNavbar"; "required": false; }; "navbarClass": { "alias": "navbarClass"; "required": false; }; "itemStyle": { "alias": "itemStyle"; "required": false; }; "moreAction": { "alias": "moreAction"; "required": false; }; }, { "onDragStart": "onDragStart"; "onDragEnd": "onDragEnd"; }, never, never, false, never>;
52
+ }
53
+ export declare namespace TqlSimpleListComponent {
54
+ enum ENUM_STYLE {
55
+ NORMAL = "normal",
56
+ SMALL = "small"
57
+ }
58
+ enum ENUM_THEMES {
59
+ DARK = "dark",
60
+ LIGHT = "light"
61
+ }
62
+ enum ENUM_HANDLER_POSITION {
63
+ LEFT = "left",
64
+ RIGHT = "right"
65
+ }
66
+ }
@@ -0,0 +1,16 @@
1
+ import { AfterViewInit, Injector, TemplateRef, ViewContainerRef } from '@angular/core';
2
+ import { TqlGlobalConfigService } from 'x-tql-service';
3
+ import * as i0 from "@angular/core";
4
+ export declare class TqlSpinComponent implements AfterViewInit {
5
+ private _ViewContainerRef;
6
+ private _TqlGlobalConfigService;
7
+ private _Injector;
8
+ container: ViewContainerRef;
9
+ opacity: number;
10
+ backgroundColor: string;
11
+ spinTemplate: TemplateRef<any>;
12
+ constructor(_ViewContainerRef: ViewContainerRef, _TqlGlobalConfigService: TqlGlobalConfigService, _Injector: Injector);
13
+ ngAfterViewInit(): void;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<TqlSpinComponent, never>;
15
+ static ɵcmp: i0.ɵɵComponentDeclaration<TqlSpinComponent, "lib-tql-spin", never, { "opacity": { "alias": "opacity"; "required": false; }; "backgroundColor": { "alias": "backgroundColor"; "required": false; }; "spinTemplate": { "alias": "spinTemplate"; "required": false; }; }, {}, never, never, false, never>;
16
+ }