@inspark/inspark-components 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/full/assets/error.svg +6 -0
- package/full/assets/falsevalue.svg +6 -0
- package/full/assets/icon.svg +6 -0
- package/full/assets/none.svg +6 -0
- package/full/assets/success.svg +6 -0
- package/full/assets/warning.svg +6 -0
- package/full/bundles/inspark-inspark-components.umd.js +3758 -0
- package/full/bundles/inspark-inspark-components.umd.js.map +1 -0
- package/full/bundles/inspark-inspark-components.umd.min.js +16 -0
- package/full/bundles/inspark-inspark-components.umd.min.js.map +1 -0
- package/full/components/breadcrumb/breadcrumb.component.d.ts +7 -0
- package/full/components/button/button.component.d.ts +57 -0
- package/full/components/checkbox/checkbox.component.d.ts +36 -0
- package/full/components/communication.service.d.ts +6 -0
- package/full/components/component-container/component-container.component.d.ts +5 -0
- package/full/components/content-toggle/content-toggle.component.d.ts +10 -0
- package/full/components/dropdown/dropdown.component.d.ts +68 -0
- package/full/components/empty/empty.component.d.ts +2 -0
- package/full/components/file/file.component.d.ts +14 -0
- package/full/components/header/header.component.d.ts +7 -0
- package/full/components/inline-message/inline-message.component.d.ts +4 -0
- package/full/components/input-text/input-text.component.d.ts +44 -0
- package/full/components/inspark.module.d.ts +2 -0
- package/full/components/inspark.shared.d.ts +8 -0
- package/full/components/link/link.component.d.ts +43 -0
- package/full/components/modal-input-text/modal-input-text.component.d.ts +32 -0
- package/full/components/object-tree/object-tree.component.d.ts +5 -0
- package/full/components/panel/panel.component.d.ts +2 -0
- package/full/components/preloader/preloader.component.d.ts +10 -0
- package/full/components/primeng.module.d.ts +2 -0
- package/full/components/radiobutton/radiobutton.component.d.ts +17 -0
- package/full/components/select-button/select-button.component.d.ts +55 -0
- package/full/components/select-list/select-list.component.d.ts +25 -0
- package/full/components/status-circle/status-circle.component.d.ts +10 -0
- package/full/components/sticky/sticky.component.d.ts +20 -0
- package/full/components/svg/svg.component.d.ts +9 -0
- package/full/components/switcher/switcher.component.d.ts +45 -0
- package/full/components/table/table-click-outside.directive.d.ts +7 -0
- package/full/components/table/table-columns-multiselect/table-columns-multiselect.component.d.ts +17 -0
- package/full/components/table/table-menu-overlay/table-menu-overlay.component.d.ts +9 -0
- package/full/components/table/table.component.d.ts +95 -0
- package/full/components/textarea/textarea.component.d.ts +32 -0
- package/full/components/toolbar/toolbar.component.d.ts +14 -0
- package/full/components/tooltip/tooltip.component.d.ts +5 -0
- package/full/components/tree-table/tree-table.component.d.ts +65 -0
- package/full/esm2015/components/breadcrumb/breadcrumb.component.js +23 -0
- package/full/esm2015/components/button/button.component.js +209 -0
- package/full/esm2015/components/checkbox/checkbox.component.js +104 -0
- package/full/esm2015/components/communication.service.js +24 -0
- package/full/esm2015/components/component-container/component-container.component.js +20 -0
- package/full/esm2015/components/content-toggle/content-toggle.component.js +44 -0
- package/full/esm2015/components/dropdown/dropdown.component.js +346 -0
- package/full/esm2015/components/empty/empty.component.js +13 -0
- package/full/esm2015/components/file/file.component.js +65 -0
- package/full/esm2015/components/header/header.component.js +30 -0
- package/full/esm2015/components/inline-message/inline-message.component.js +25 -0
- package/full/esm2015/components/input-text/input-text.component.js +157 -0
- package/full/esm2015/components/inspark.module.js +128 -0
- package/full/esm2015/components/inspark.shared.js +30 -0
- package/full/esm2015/components/link/link.component.js +164 -0
- package/full/esm2015/components/modal-input-text/modal-input-text.component.js +94 -0
- package/full/esm2015/components/object-tree/object-tree.component.js +18 -0
- package/full/esm2015/components/panel/panel.component.js +13 -0
- package/full/esm2015/components/preloader/preloader.component.js +34 -0
- package/full/esm2015/components/primeng.module.js +19 -0
- package/full/esm2015/components/radiobutton/radiobutton.component.js +75 -0
- package/full/esm2015/components/select-button/select-button.component.js +176 -0
- package/full/esm2015/components/select-list/select-list.component.js +60 -0
- package/full/esm2015/components/status-circle/status-circle.component.js +51 -0
- package/full/esm2015/components/sticky/sticky.component.js +82 -0
- package/full/esm2015/components/svg/svg.component.js +36 -0
- package/full/esm2015/components/switcher/switcher.component.js +148 -0
- package/full/esm2015/components/table/table-click-outside.directive.js +38 -0
- package/full/esm2015/components/table/table-columns-multiselect/table-columns-multiselect.component.js +37 -0
- package/full/esm2015/components/table/table-menu-overlay/table-menu-overlay.component.js +35 -0
- package/full/esm2015/components/table/table.component.js +426 -0
- package/full/esm2015/components/textarea/textarea.component.js +101 -0
- package/full/esm2015/components/toolbar/toolbar.component.js +40 -0
- package/full/esm2015/components/tooltip/tooltip.component.js +18 -0
- package/full/esm2015/components/tree-table/tree-table.component.js +255 -0
- package/full/esm2015/inspark-inspark-components.js +16 -0
- package/full/esm2015/interface.js +1 -0
- package/full/esm2015/pipes/pipes.module.js +16 -0
- package/full/esm2015/pipes/propertyValue.pipe.js +23 -0
- package/full/esm2015/pipes/safeUrl.pipe.js +37 -0
- package/full/esm2015/pipes/sort-by.pipe.js +26 -0
- package/full/esm2015/pipes/time.pipe.js +201 -0
- package/full/esm2015/public_api.js +43 -0
- package/full/esm2015/services/inspark-message.service.js +73 -0
- package/full/esm2015/utils/gettextMarker.function.js +5 -0
- package/full/esm2015/utils/hybrid/prime-table/row-state.enum.js +9 -0
- package/full/esm2015/utils/hybrid/prime-table/table-row-data.model.js +1 -0
- package/full/esm5/components/breadcrumb/breadcrumb.component.js +24 -0
- package/full/esm5/components/button/button.component.js +212 -0
- package/full/esm5/components/checkbox/checkbox.component.js +106 -0
- package/full/esm5/components/communication.service.js +25 -0
- package/full/esm5/components/component-container/component-container.component.js +21 -0
- package/full/esm5/components/content-toggle/content-toggle.component.js +45 -0
- package/full/esm5/components/dropdown/dropdown.component.js +351 -0
- package/full/esm5/components/empty/empty.component.js +16 -0
- package/full/esm5/components/file/file.component.js +66 -0
- package/full/esm5/components/header/header.component.js +31 -0
- package/full/esm5/components/inline-message/inline-message.component.js +26 -0
- package/full/esm5/components/input-text/input-text.component.js +159 -0
- package/full/esm5/components/inspark.module.js +131 -0
- package/full/esm5/components/inspark.shared.js +31 -0
- package/full/esm5/components/link/link.component.js +165 -0
- package/full/esm5/components/modal-input-text/modal-input-text.component.js +98 -0
- package/full/esm5/components/object-tree/object-tree.component.js +20 -0
- package/full/esm5/components/panel/panel.component.js +16 -0
- package/full/esm5/components/preloader/preloader.component.js +35 -0
- package/full/esm5/components/primeng.module.js +22 -0
- package/full/esm5/components/radiobutton/radiobutton.component.js +76 -0
- package/full/esm5/components/select-button/select-button.component.js +179 -0
- package/full/esm5/components/select-list/select-list.component.js +62 -0
- package/full/esm5/components/status-circle/status-circle.component.js +52 -0
- package/full/esm5/components/sticky/sticky.component.js +84 -0
- package/full/esm5/components/svg/svg.component.js +39 -0
- package/full/esm5/components/switcher/switcher.component.js +150 -0
- package/full/esm5/components/table/table-click-outside.directive.js +39 -0
- package/full/esm5/components/table/table-columns-multiselect/table-columns-multiselect.component.js +38 -0
- package/full/esm5/components/table/table-menu-overlay/table-menu-overlay.component.js +36 -0
- package/full/esm5/components/table/table.component.js +446 -0
- package/full/esm5/components/textarea/textarea.component.js +103 -0
- package/full/esm5/components/toolbar/toolbar.component.js +41 -0
- package/full/esm5/components/tooltip/tooltip.component.js +20 -0
- package/full/esm5/components/tree-table/tree-table.component.js +280 -0
- package/full/esm5/inspark-inspark-components.js +16 -0
- package/full/esm5/interface.js +1 -0
- package/full/esm5/pipes/pipes.module.js +19 -0
- package/full/esm5/pipes/propertyValue.pipe.js +26 -0
- package/full/esm5/pipes/safeUrl.pipe.js +38 -0
- package/full/esm5/pipes/sort-by.pipe.js +29 -0
- package/full/esm5/pipes/time.pipe.js +212 -0
- package/full/esm5/public_api.js +43 -0
- package/full/esm5/services/inspark-message.service.js +78 -0
- package/full/esm5/utils/gettextMarker.function.js +5 -0
- package/full/esm5/utils/hybrid/prime-table/row-state.enum.js +9 -0
- package/full/esm5/utils/hybrid/prime-table/table-row-data.model.js +1 -0
- package/full/fesm2015/inspark-inspark-components.js +3331 -0
- package/full/fesm2015/inspark-inspark-components.js.map +1 -0
- package/full/fesm5/inspark-inspark-components.js +3464 -0
- package/full/fesm5/inspark-inspark-components.js.map +1 -0
- package/full/fonts/primeicons.eot +0 -0
- package/full/fonts/primeicons.svg +163 -0
- package/full/fonts/primeicons.ttf +0 -0
- package/full/fonts/primeicons.woff +0 -0
- package/full/index.css +4012 -0
- package/full/index.js +1 -0
- package/full/inspark-inspark-components.d.ts +15 -0
- package/full/inspark-inspark-components.metadata.json +1 -0
- package/full/interface.d.ts +25 -0
- package/full/package.json +26 -0
- package/full/pipes/pipes.module.d.ts +2 -0
- package/full/pipes/propertyValue.pipe.d.ts +4 -0
- package/full/pipes/safeUrl.pipe.d.ts +20 -0
- package/full/pipes/sort-by.pipe.d.ts +4 -0
- package/full/pipes/time.pipe.d.ts +25 -0
- package/full/public_api.d.ts +41 -0
- package/full/services/inspark-message.service.d.ts +18 -0
- package/full/utils/gettextMarker.function.d.ts +1 -0
- package/full/utils/hybrid/prime-table/row-state.enum.d.ts +7 -0
- package/full/utils/hybrid/prime-table/table-row-data.model.d.ts +6 -0
- package/interface/bundles/inspark-inspark-components.umd.js +11 -0
- package/interface/bundles/inspark-inspark-components.umd.js.map +1 -0
- package/interface/bundles/inspark-inspark-components.umd.min.js +2 -0
- package/interface/bundles/inspark-inspark-components.umd.min.js.map +1 -0
- package/interface/esm2015/inspark-inspark-components.js +4 -0
- package/interface/esm2015/interface.js +1 -0
- package/interface/esm2015/public_api.js +4 -0
- package/interface/esm5/inspark-inspark-components.js +4 -0
- package/interface/esm5/interface.js +1 -0
- package/interface/esm5/public_api.js +4 -0
- package/interface/fesm2015/inspark-inspark-components.js +4 -0
- package/interface/fesm2015/inspark-inspark-components.js.map +1 -0
- package/interface/fesm5/inspark-inspark-components.js +4 -0
- package/interface/fesm5/inspark-inspark-components.js.map +1 -0
- package/interface/inspark-inspark-components.d.ts +4 -0
- package/interface/inspark-inspark-components.metadata.json +1 -0
- package/interface/interface.d.ts +25 -0
- package/interface/package.json +26 -0
- package/interface/public_api.d.ts +1 -0
- package/package.json +26 -0
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
+
export declare class InputTextComponent implements ControlValueAccessor {
|
|
4
|
+
name: any;
|
|
5
|
+
autocomplete: boolean;
|
|
6
|
+
label: any;
|
|
7
|
+
required: boolean;
|
|
8
|
+
error: any;
|
|
9
|
+
size: number;
|
|
10
|
+
maxlength: number;
|
|
11
|
+
width: string;
|
|
12
|
+
placeholder: string;
|
|
13
|
+
id: any;
|
|
14
|
+
testId: any;
|
|
15
|
+
disabled: boolean;
|
|
16
|
+
opacity: boolean;
|
|
17
|
+
shadow: boolean;
|
|
18
|
+
type: string;
|
|
19
|
+
step: number;
|
|
20
|
+
min: number;
|
|
21
|
+
max: number;
|
|
22
|
+
focus: EventEmitter<any>;
|
|
23
|
+
blur: EventEmitter<any>;
|
|
24
|
+
value: string;
|
|
25
|
+
/**
|
|
26
|
+
* Write form value to the DOM element (model => view)
|
|
27
|
+
*/
|
|
28
|
+
writeValue(value: any): void;
|
|
29
|
+
/**
|
|
30
|
+
* Write form disabled state to the DOM element (model => view)
|
|
31
|
+
*/
|
|
32
|
+
setDisabledState(isDisabled: boolean): void;
|
|
33
|
+
/**
|
|
34
|
+
* Update form when DOM element value changes (view => model)
|
|
35
|
+
*/
|
|
36
|
+
registerOnChange(fn: any): void;
|
|
37
|
+
/**
|
|
38
|
+
* Update form when DOM element is blurred (view => model)
|
|
39
|
+
*/
|
|
40
|
+
registerOnTouched(fn: any): void;
|
|
41
|
+
private propagateChange;
|
|
42
|
+
onChange(_: any): void;
|
|
43
|
+
private onTouched;
|
|
44
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { EventEmitter, OnChanges, OnInit } from '@angular/core';
|
|
2
|
+
import { Menu, MenuItem } from 'primeng/primeng';
|
|
3
|
+
declare type LinkColor = 'normal' | 'secondary' | 'danger' | 'primary' | 'transparent';
|
|
4
|
+
declare type IconPos = 'left' | 'right';
|
|
5
|
+
export declare class LinkComponent implements OnInit, OnChanges {
|
|
6
|
+
color: LinkColor;
|
|
7
|
+
name: string;
|
|
8
|
+
testId: string;
|
|
9
|
+
label: string;
|
|
10
|
+
icon: string;
|
|
11
|
+
className: string;
|
|
12
|
+
svg: string;
|
|
13
|
+
link: string;
|
|
14
|
+
/**
|
|
15
|
+
* external - ссылка на внешний источник
|
|
16
|
+
* internal - ссылка внутри приложения
|
|
17
|
+
* auto - определяется автоматически исходя из link
|
|
18
|
+
*/
|
|
19
|
+
linkType: 'auto' | 'external' | 'internal';
|
|
20
|
+
/**
|
|
21
|
+
* self - открывается в этом же окне
|
|
22
|
+
* blank - открывается в новом окне
|
|
23
|
+
* auto - определяется автоматически исходя из linkType
|
|
24
|
+
*/
|
|
25
|
+
linkTarget: 'auto' | 'self' | 'blank';
|
|
26
|
+
pressed: boolean;
|
|
27
|
+
disabled: boolean;
|
|
28
|
+
iconPos: IconPos;
|
|
29
|
+
menuItems: MenuItem[];
|
|
30
|
+
_menu: Menu;
|
|
31
|
+
focus: EventEmitter<any>;
|
|
32
|
+
blur: EventEmitter<any>;
|
|
33
|
+
click: EventEmitter<any>;
|
|
34
|
+
style: {};
|
|
35
|
+
_target: string;
|
|
36
|
+
_linkType: 'auto' | 'external' | 'internal';
|
|
37
|
+
isMaterialIcon: boolean;
|
|
38
|
+
ngOnInit(): void;
|
|
39
|
+
ngOnChanges(changes: any): void;
|
|
40
|
+
updateData(): void;
|
|
41
|
+
_onClick($event: Event): void;
|
|
42
|
+
}
|
|
43
|
+
export {};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { Router } from '@angular/router';
|
|
3
|
+
import { DynamicDialogConfig, DynamicDialogRef } from 'primeng/api';
|
|
4
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
5
|
+
import { InsparkMessageService } from "../../services/inspark-message.service";
|
|
6
|
+
export declare class ModalInputTextComponent implements OnInit {
|
|
7
|
+
ref: DynamicDialogRef;
|
|
8
|
+
config: DynamicDialogConfig;
|
|
9
|
+
private translateService;
|
|
10
|
+
private messageService;
|
|
11
|
+
router: Router;
|
|
12
|
+
objects: any[];
|
|
13
|
+
selected: Boolean[];
|
|
14
|
+
title: string;
|
|
15
|
+
objs: any;
|
|
16
|
+
options: {
|
|
17
|
+
value: string;
|
|
18
|
+
checked: boolean;
|
|
19
|
+
}[];
|
|
20
|
+
param: any;
|
|
21
|
+
isShowSpinner: boolean;
|
|
22
|
+
maxLength: number;
|
|
23
|
+
constructor(ref: DynamicDialogRef, config: DynamicDialogConfig, translateService: TranslateService, messageService: InsparkMessageService, router: Router);
|
|
24
|
+
ngOnInit(): void;
|
|
25
|
+
closeModal(val?: any): void;
|
|
26
|
+
applySelection(): void;
|
|
27
|
+
select(i: any): void;
|
|
28
|
+
checkSelected(): boolean;
|
|
29
|
+
highlight(value: string, text: any): string;
|
|
30
|
+
calculateWidth(): void;
|
|
31
|
+
translate(str: string): string;
|
|
32
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
declare type PreloaderSize = 'small' | 'normal';
|
|
3
|
+
export declare class PreloaderComponent implements OnInit {
|
|
4
|
+
inline: boolean;
|
|
5
|
+
overlay: boolean;
|
|
6
|
+
size: PreloaderSize;
|
|
7
|
+
constructor();
|
|
8
|
+
ngOnInit(): void;
|
|
9
|
+
}
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
export declare class RadiobuttonComponent {
|
|
3
|
+
name: any;
|
|
4
|
+
label: any;
|
|
5
|
+
required: boolean;
|
|
6
|
+
error: any;
|
|
7
|
+
placeholder: string;
|
|
8
|
+
id: any;
|
|
9
|
+
disabled: boolean;
|
|
10
|
+
value: any;
|
|
11
|
+
values: any;
|
|
12
|
+
keyLabel: any;
|
|
13
|
+
item: any;
|
|
14
|
+
change: EventEmitter<any>;
|
|
15
|
+
constructor();
|
|
16
|
+
onChangeEvent(value: any): void;
|
|
17
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { ChangeDetectorRef, EventEmitter, OnChanges, OnInit } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
+
declare type IconPos = 'left' | 'right';
|
|
4
|
+
interface SelectOption {
|
|
5
|
+
label: string;
|
|
6
|
+
title?: string;
|
|
7
|
+
value: any;
|
|
8
|
+
icon?: string;
|
|
9
|
+
readonly?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare class SelectButtonComponent implements ControlValueAccessor, OnInit, OnChanges {
|
|
12
|
+
private cdRef;
|
|
13
|
+
name: string;
|
|
14
|
+
testId: string;
|
|
15
|
+
label: string;
|
|
16
|
+
icon: string;
|
|
17
|
+
error: string;
|
|
18
|
+
iconPos: IconPos;
|
|
19
|
+
options: SelectOption[];
|
|
20
|
+
disabled: boolean;
|
|
21
|
+
required: boolean;
|
|
22
|
+
multiple: boolean;
|
|
23
|
+
initial?: any[];
|
|
24
|
+
focus: EventEmitter<any>;
|
|
25
|
+
blur: EventEmitter<any>;
|
|
26
|
+
click: EventEmitter<any>;
|
|
27
|
+
change: EventEmitter<any>;
|
|
28
|
+
selected: any[];
|
|
29
|
+
value: Object | Object[];
|
|
30
|
+
bindingtype: any;
|
|
31
|
+
constructor(cdRef: ChangeDetectorRef);
|
|
32
|
+
ngOnInit(): void;
|
|
33
|
+
ngOnChanges(): void;
|
|
34
|
+
clickButton(option: any): boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Write form value to the DOM element (model => view)
|
|
37
|
+
*/
|
|
38
|
+
writeValue(value: any): void;
|
|
39
|
+
/**
|
|
40
|
+
* Write form disabled state to the DOM element (model => view)
|
|
41
|
+
*/
|
|
42
|
+
setDisabledState(isDisabled: boolean): void;
|
|
43
|
+
/**
|
|
44
|
+
* Update form when DOM element value changes (view => model)
|
|
45
|
+
*/
|
|
46
|
+
registerOnChange(fn: any): void;
|
|
47
|
+
/**
|
|
48
|
+
* Update form when DOM element is blurred (view => model)
|
|
49
|
+
*/
|
|
50
|
+
registerOnTouched(fn: any): void;
|
|
51
|
+
private propagateChange;
|
|
52
|
+
private onChange;
|
|
53
|
+
private onTouched;
|
|
54
|
+
}
|
|
55
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { Router } from '@angular/router';
|
|
3
|
+
import { DynamicDialogConfig, DynamicDialogRef } from 'primeng/api';
|
|
4
|
+
import { InsparkMessageService } from "../../services/inspark-message.service";
|
|
5
|
+
export declare class SelectListComponent implements OnInit {
|
|
6
|
+
ref: DynamicDialogRef;
|
|
7
|
+
config: DynamicDialogConfig;
|
|
8
|
+
private messageService;
|
|
9
|
+
router: Router;
|
|
10
|
+
objects: any[];
|
|
11
|
+
selected: Boolean[];
|
|
12
|
+
title: string;
|
|
13
|
+
objs: any;
|
|
14
|
+
options: {
|
|
15
|
+
value: string;
|
|
16
|
+
checked: boolean;
|
|
17
|
+
}[];
|
|
18
|
+
isShowSpinner: boolean;
|
|
19
|
+
constructor(ref: DynamicDialogRef, config: DynamicDialogConfig, messageService: InsparkMessageService, router: Router);
|
|
20
|
+
ngOnInit(): void;
|
|
21
|
+
closeModal(val?: any): void;
|
|
22
|
+
applySelection(): void;
|
|
23
|
+
select(i: any): void;
|
|
24
|
+
highlight(value: string, text: any): string;
|
|
25
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ChangeDetectorRef, ElementRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
export declare class InsparkStickyComponent implements OnInit, OnDestroy {
|
|
3
|
+
private cdr;
|
|
4
|
+
stickyRef: ElementRef;
|
|
5
|
+
top: number;
|
|
6
|
+
isInline: boolean;
|
|
7
|
+
isFloated: boolean;
|
|
8
|
+
zIndex: number;
|
|
9
|
+
class: string;
|
|
10
|
+
isSticky: boolean;
|
|
11
|
+
height: number;
|
|
12
|
+
width: number;
|
|
13
|
+
left: number;
|
|
14
|
+
right: number;
|
|
15
|
+
constructor(cdr: ChangeDetectorRef);
|
|
16
|
+
ngOnInit(): void;
|
|
17
|
+
ngOnDestroy(): void;
|
|
18
|
+
resize: () => void;
|
|
19
|
+
scroll: () => void;
|
|
20
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { ChangeDetectorRef, ElementRef, EventEmitter, OnChanges, OnInit } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
+
import { Router } from '@angular/router';
|
|
4
|
+
export declare class SwitcherComponent implements OnInit, OnChanges, ControlValueAccessor {
|
|
5
|
+
element: ElementRef;
|
|
6
|
+
private cdRef;
|
|
7
|
+
router: Router;
|
|
8
|
+
name: any;
|
|
9
|
+
label: any;
|
|
10
|
+
error: any;
|
|
11
|
+
iconOff: string;
|
|
12
|
+
iconOn: string;
|
|
13
|
+
labelOff: string;
|
|
14
|
+
labelOn: string;
|
|
15
|
+
faIconOn: string;
|
|
16
|
+
faIconOff: string;
|
|
17
|
+
id: any;
|
|
18
|
+
disabled: boolean;
|
|
19
|
+
waiting?: boolean;
|
|
20
|
+
change: EventEmitter<any>;
|
|
21
|
+
_isBoolean: boolean;
|
|
22
|
+
value: boolean;
|
|
23
|
+
constructor(element: ElementRef, cdRef: ChangeDetectorRef, router: Router);
|
|
24
|
+
ngOnInit(): void;
|
|
25
|
+
ngOnChanges(changes: any): void;
|
|
26
|
+
/**
|
|
27
|
+
* Write form value to the DOM element (model => view)
|
|
28
|
+
*/
|
|
29
|
+
writeValue(value: any): void;
|
|
30
|
+
/**
|
|
31
|
+
* Write form disabled state to the DOM element (model => view)
|
|
32
|
+
*/
|
|
33
|
+
setDisabledState(isDisabled: boolean): void;
|
|
34
|
+
/**
|
|
35
|
+
* Update form when DOM element value changes (view => model)
|
|
36
|
+
*/
|
|
37
|
+
registerOnChange(fn: any): void;
|
|
38
|
+
/**
|
|
39
|
+
* Update form when DOM element is blurred (view => model)
|
|
40
|
+
*/
|
|
41
|
+
registerOnTouched(fn: any): void;
|
|
42
|
+
private propagateChange;
|
|
43
|
+
onChange(e: Event): void;
|
|
44
|
+
private onTouched;
|
|
45
|
+
}
|
package/full/components/table/table-columns-multiselect/table-columns-multiselect.component.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { TableColumns } from "../../../interface";
|
|
3
|
+
export declare class TableColumnsMultiselectComponent implements OnInit {
|
|
4
|
+
isExpanded: boolean;
|
|
5
|
+
columns: TableColumns[];
|
|
6
|
+
/**
|
|
7
|
+
* true - все активные чекбоксы становятся неактивными
|
|
8
|
+
* false - не влияет на чекбоксы
|
|
9
|
+
*/
|
|
10
|
+
disableActiveCheckboxes: boolean;
|
|
11
|
+
columnsChange: EventEmitter<{
|
|
12
|
+
event: any;
|
|
13
|
+
column: TableColumns;
|
|
14
|
+
}>;
|
|
15
|
+
constructor();
|
|
16
|
+
ngOnInit(): void;
|
|
17
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
|
+
export declare class TableMenuOverlayComponent {
|
|
3
|
+
private element;
|
|
4
|
+
isExpanded: boolean;
|
|
5
|
+
positionClass: string;
|
|
6
|
+
isFromTimepickerShown: any;
|
|
7
|
+
constructor(element: ElementRef);
|
|
8
|
+
isClickedOutsideOverlay(event: any): void;
|
|
9
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { AfterContentInit, AfterViewInit, EventEmitter, OnChanges, OnInit, QueryList, SimpleChanges, TemplateRef } from '@angular/core';
|
|
2
|
+
import { InsparkTemplate } from '../inspark.shared';
|
|
3
|
+
import { TableRowData } from "../../utils/hybrid/prime-table/table-row-data.model";
|
|
4
|
+
import { TableColumns } from "../../interface";
|
|
5
|
+
export declare class TableComponent implements OnInit, AfterContentInit, AfterViewInit, OnChanges {
|
|
6
|
+
columns: TableColumns[];
|
|
7
|
+
filteredColumns: TableColumns[];
|
|
8
|
+
globalFilteredColumns: string[];
|
|
9
|
+
primaryColumns: TableColumns[];
|
|
10
|
+
values: any[];
|
|
11
|
+
scrollHeight: string;
|
|
12
|
+
scrollable: boolean;
|
|
13
|
+
selectionMode: string;
|
|
14
|
+
label: string;
|
|
15
|
+
error: string;
|
|
16
|
+
class: string;
|
|
17
|
+
required: boolean;
|
|
18
|
+
style: any;
|
|
19
|
+
toolbar: any;
|
|
20
|
+
checkboxSelection: boolean;
|
|
21
|
+
active: any;
|
|
22
|
+
sortField: any;
|
|
23
|
+
isAscending: any;
|
|
24
|
+
dataKey: any;
|
|
25
|
+
stateKey: any;
|
|
26
|
+
isGrouped: boolean;
|
|
27
|
+
customSort: boolean;
|
|
28
|
+
isGroupedExpanded?: boolean;
|
|
29
|
+
activeChange: EventEmitter<any>;
|
|
30
|
+
templates: QueryList<InsparkTemplate>;
|
|
31
|
+
selectionChange: EventEmitter<any>;
|
|
32
|
+
addAction: EventEmitter<any>;
|
|
33
|
+
csvAction: EventEmitter<any>;
|
|
34
|
+
saveAction: EventEmitter<any>;
|
|
35
|
+
removeAction: EventEmitter<any>;
|
|
36
|
+
unlinkAction: EventEmitter<any>;
|
|
37
|
+
groupEditAction: EventEmitter<any>;
|
|
38
|
+
sortFunction: EventEmitter<any>;
|
|
39
|
+
dt: any;
|
|
40
|
+
groupMode: number;
|
|
41
|
+
groupInfo: {};
|
|
42
|
+
groupIndex: {};
|
|
43
|
+
headerTemplate: TemplateRef<any>;
|
|
44
|
+
bodyTemplate: TemplateRef<any>;
|
|
45
|
+
loadingBodyTemplate: TemplateRef<any>;
|
|
46
|
+
captionTemplate: TemplateRef<any>;
|
|
47
|
+
frozenRowsTemplate: TemplateRef<any>;
|
|
48
|
+
footerTemplate: TemplateRef<any>;
|
|
49
|
+
summaryTemplate: TemplateRef<any>;
|
|
50
|
+
colGroupTemplate: TemplateRef<any>;
|
|
51
|
+
expandedRowTemplate: TemplateRef<any>;
|
|
52
|
+
frozenHeaderTemplate: TemplateRef<any>;
|
|
53
|
+
frozenBodyTemplate: TemplateRef<any>;
|
|
54
|
+
frozenFooterTemplate: TemplateRef<any>;
|
|
55
|
+
frozenColGroupTemplate: TemplateRef<any>;
|
|
56
|
+
emptyMessageTemplate: TemplateRef<any>;
|
|
57
|
+
paginatorLeftTemplate: TemplateRef<any>;
|
|
58
|
+
paginatorRightTemplate: TemplateRef<any>;
|
|
59
|
+
valueTemplate: TemplateRef<any>;
|
|
60
|
+
searchText: string;
|
|
61
|
+
_selection: any;
|
|
62
|
+
set selection(val: any);
|
|
63
|
+
get selectionValue(): any;
|
|
64
|
+
set selectionValue(val: any);
|
|
65
|
+
isRowActive(row: TableRowData): boolean;
|
|
66
|
+
ngOnInit(): void;
|
|
67
|
+
ngAfterViewInit(): void;
|
|
68
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
69
|
+
updateData(): void;
|
|
70
|
+
ngAfterContentInit(): void;
|
|
71
|
+
visibleColumns(): TableColumns[];
|
|
72
|
+
columnsChange(data: any): void;
|
|
73
|
+
showTooltip(event: any): void;
|
|
74
|
+
colFilter(field: any): any;
|
|
75
|
+
onFilter(event: any): void;
|
|
76
|
+
stateSave(state: any): void;
|
|
77
|
+
saveToLocalStorage(state: any, key: any): void;
|
|
78
|
+
saveHiddenColumns(): void;
|
|
79
|
+
countVisibleColumns(): number;
|
|
80
|
+
restoreSearchText(): void;
|
|
81
|
+
resetColumnWidthIfToWide(): void;
|
|
82
|
+
resetColumnWidth(): void;
|
|
83
|
+
restoreHiddenColumns(): void;
|
|
84
|
+
calcWidth(idx: any, label: any, width: any): any;
|
|
85
|
+
onSort(): void;
|
|
86
|
+
isShowGroup(key: any, rowIndex: any): boolean;
|
|
87
|
+
toggleGroup(rowIndex: number, key: string): void;
|
|
88
|
+
localSearch(dt: any, text: any): void;
|
|
89
|
+
private sortByGroup;
|
|
90
|
+
countGroup(groupKey: any, g: number): number;
|
|
91
|
+
toggleNodes(isExpanded: boolean): void;
|
|
92
|
+
toggleMode(item: any): void;
|
|
93
|
+
}
|
|
94
|
+
export declare class TableComponentModule {
|
|
95
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
2
|
+
export declare class TextareaComponent implements ControlValueAccessor {
|
|
3
|
+
name: any;
|
|
4
|
+
label: any;
|
|
5
|
+
required: boolean;
|
|
6
|
+
error: any;
|
|
7
|
+
placeholder: string;
|
|
8
|
+
id: any;
|
|
9
|
+
disabled: boolean;
|
|
10
|
+
minHeight: number;
|
|
11
|
+
maxlength: number;
|
|
12
|
+
value: string;
|
|
13
|
+
/**
|
|
14
|
+
* Write form value to the DOM element (model => view)
|
|
15
|
+
*/
|
|
16
|
+
writeValue(value: any): void;
|
|
17
|
+
/**
|
|
18
|
+
* Write form disabled state to the DOM element (model => view)
|
|
19
|
+
*/
|
|
20
|
+
setDisabledState(isDisabled: boolean): void;
|
|
21
|
+
/**
|
|
22
|
+
* Update form when DOM element value changes (view => model)
|
|
23
|
+
*/
|
|
24
|
+
registerOnChange(fn: any): void;
|
|
25
|
+
/**
|
|
26
|
+
* Update form when DOM element is blurred (view => model)
|
|
27
|
+
*/
|
|
28
|
+
registerOnTouched(fn: any): void;
|
|
29
|
+
private propagateChange;
|
|
30
|
+
onChange(_: any): void;
|
|
31
|
+
private onTouched;
|
|
32
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ChangeDetectorRef, ElementRef, OnInit } from '@angular/core';
|
|
2
|
+
import { Router } from '@angular/router';
|
|
3
|
+
export declare class ToolbarComponent implements OnInit {
|
|
4
|
+
element: ElementRef;
|
|
5
|
+
private cdRef;
|
|
6
|
+
router: Router;
|
|
7
|
+
title: string;
|
|
8
|
+
display: boolean;
|
|
9
|
+
objects: any;
|
|
10
|
+
selected: any;
|
|
11
|
+
constructor(element: ElementRef, cdRef: ChangeDetectorRef, router: Router);
|
|
12
|
+
ngOnInit(): void;
|
|
13
|
+
clickedOutsideOverlay(event: any): void;
|
|
14
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { AfterContentInit, EventEmitter, QueryList, TemplateRef } from '@angular/core';
|
|
2
|
+
import { InsparkTemplate } from '../inspark.shared';
|
|
3
|
+
import { TableRowData } from "../../utils/hybrid/prime-table/table-row-data.model";
|
|
4
|
+
import { TableColumns } from "../../interface";
|
|
5
|
+
export declare class TreeTableComponent implements AfterContentInit {
|
|
6
|
+
columns: TableColumns[];
|
|
7
|
+
values: any[];
|
|
8
|
+
scrollHeight: string;
|
|
9
|
+
scrollable: boolean;
|
|
10
|
+
selectionMode: string;
|
|
11
|
+
label: string;
|
|
12
|
+
error: string;
|
|
13
|
+
class: string;
|
|
14
|
+
required: boolean;
|
|
15
|
+
style: any;
|
|
16
|
+
toolbar: any;
|
|
17
|
+
checkboxSelection: boolean;
|
|
18
|
+
active: any;
|
|
19
|
+
sortField: any;
|
|
20
|
+
isAscending: any;
|
|
21
|
+
dataKey: any;
|
|
22
|
+
activeChange: EventEmitter<any>;
|
|
23
|
+
templates: QueryList<InsparkTemplate>;
|
|
24
|
+
selectionChange: EventEmitter<any>;
|
|
25
|
+
addAction: EventEmitter<any>;
|
|
26
|
+
csvAction: EventEmitter<any>;
|
|
27
|
+
saveAction: EventEmitter<any>;
|
|
28
|
+
collapseAction: EventEmitter<any>;
|
|
29
|
+
removeAction: EventEmitter<any>;
|
|
30
|
+
unlinkAction: EventEmitter<any>;
|
|
31
|
+
groupEditAction: EventEmitter<any>;
|
|
32
|
+
groupAddAction: EventEmitter<any>;
|
|
33
|
+
headerTemplate: TemplateRef<any>;
|
|
34
|
+
bodyTemplate: TemplateRef<any>;
|
|
35
|
+
loadingBodyTemplate: TemplateRef<any>;
|
|
36
|
+
captionTemplate: TemplateRef<any>;
|
|
37
|
+
frozenRowsTemplate: TemplateRef<any>;
|
|
38
|
+
footerTemplate: TemplateRef<any>;
|
|
39
|
+
summaryTemplate: TemplateRef<any>;
|
|
40
|
+
colGroupTemplate: TemplateRef<any>;
|
|
41
|
+
expandedRowTemplate: TemplateRef<any>;
|
|
42
|
+
frozenHeaderTemplate: TemplateRef<any>;
|
|
43
|
+
frozenBodyTemplate: TemplateRef<any>;
|
|
44
|
+
frozenFooterTemplate: TemplateRef<any>;
|
|
45
|
+
frozenColGroupTemplate: TemplateRef<any>;
|
|
46
|
+
emptyMessageTemplate: TemplateRef<any>;
|
|
47
|
+
paginatorLeftTemplate: TemplateRef<any>;
|
|
48
|
+
paginatorRightTemplate: TemplateRef<any>;
|
|
49
|
+
valueTemplate: TemplateRef<any>;
|
|
50
|
+
searchText: string;
|
|
51
|
+
rowIndex: number;
|
|
52
|
+
isCollapse: boolean;
|
|
53
|
+
_selection: any;
|
|
54
|
+
set selection(val: any);
|
|
55
|
+
get selectionValue(): any;
|
|
56
|
+
set selectionValue(val: any);
|
|
57
|
+
isRowActive(row: TableRowData): boolean;
|
|
58
|
+
visibleColumns(): TableColumns[];
|
|
59
|
+
columnsChange(data: any): void;
|
|
60
|
+
ngAfterContentInit(): void;
|
|
61
|
+
collapse(event: any, dt: any): void;
|
|
62
|
+
toggleCollapse(node: any, isCollapsed: boolean): void;
|
|
63
|
+
}
|
|
64
|
+
export declare class TreeTableComponentModule {
|
|
65
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { __decorate, __metadata } from "tslib";
|
|
2
|
+
import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
|
|
3
|
+
let BreadcrumbComponent = class BreadcrumbComponent {
|
|
4
|
+
constructor() {
|
|
5
|
+
}
|
|
6
|
+
ngOnInit() {
|
|
7
|
+
}
|
|
8
|
+
};
|
|
9
|
+
__decorate([
|
|
10
|
+
Input(),
|
|
11
|
+
__metadata("design:type", Array)
|
|
12
|
+
], BreadcrumbComponent.prototype, "items", void 0);
|
|
13
|
+
BreadcrumbComponent = __decorate([
|
|
14
|
+
Component({
|
|
15
|
+
selector: 'in-breadcrumb',
|
|
16
|
+
template: "<div>\n <ul class=\"c-crumb\">\n <li class=\"c-crumb__item\">\n <a [routerLink]=\"['/main/page/home']\" translate=\"\">{{'Home' | translate }}</a>\n </li>\n <li *ngFor=\"let item of items; last as isLast\" class=\"c-crumb__item\">\n <a *ngIf=\"item.url && !isLast; else noUrl\" [routerLink]=\"item.url\" translate=\"\">{{item.label}}</a>\n <ng-template #noUrl>\n <span translate=\"\">{{item.label}}</span>\n </ng-template>\n </li>\n </ul>\n</div>\n",
|
|
17
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
18
|
+
styles: [""]
|
|
19
|
+
}),
|
|
20
|
+
__metadata("design:paramtypes", [])
|
|
21
|
+
], BreadcrumbComponent);
|
|
22
|
+
export { BreadcrumbComponent };
|
|
23
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnJlYWRjcnVtYi5jb21wb25lbnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AaW5zcGFyay9pbnNwYXJrLWNvbXBvbmVudHMvIiwic291cmNlcyI6WyJjb21wb25lbnRzL2JyZWFkY3J1bWIvYnJlYWRjcnVtYi5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBQyx1QkFBdUIsRUFBRSxTQUFTLEVBQUUsS0FBSyxFQUFTLE1BQU0sZUFBZSxDQUFDO0FBU2hGLElBQWEsbUJBQW1CLEdBQWhDLE1BQWEsbUJBQW1CO0lBSTlCO0lBQ0EsQ0FBQztJQUVELFFBQVE7SUFDUixDQUFDO0NBQ0YsQ0FBQTtBQVBVO0lBQVIsS0FBSyxFQUFFOztrREFBbUI7QUFGaEIsbUJBQW1CO0lBTi9CLFNBQVMsQ0FBQztRQUNULFFBQVEsRUFBRSxlQUFlO1FBQ3pCLHFmQUEwQztRQUUxQyxlQUFlLEVBQUUsdUJBQXVCLENBQUMsTUFBTTs7S0FDaEQsQ0FBQzs7R0FDVyxtQkFBbUIsQ0FTL0I7U0FUWSxtQkFBbUIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQge0NoYW5nZURldGVjdGlvblN0cmF0ZWd5LCBDb21wb25lbnQsIElucHV0LCBPbkluaXR9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuaW1wb3J0IHtNZW51SXRlbX0gZnJvbSAncHJpbWVuZy9hcGknO1xuXG5AQ29tcG9uZW50KHtcbiAgc2VsZWN0b3I6ICdpbi1icmVhZGNydW1iJyxcbiAgdGVtcGxhdGVVcmw6ICcuL2JyZWFkY3J1bWIuY29tcG9uZW50Lmh0bWwnLFxuICBzdHlsZVVybHM6IFsnLi9icmVhZGNydW1iLmNvbXBvbmVudC5zY3NzJ10sXG4gIGNoYW5nZURldGVjdGlvbjogQ2hhbmdlRGV0ZWN0aW9uU3RyYXRlZ3kuT25QdXNoXG59KVxuZXhwb3J0IGNsYXNzIEJyZWFkY3J1bWJDb21wb25lbnQgaW1wbGVtZW50cyBPbkluaXQge1xuXG4gIEBJbnB1dCgpIGl0ZW1zOiBNZW51SXRlbVtdO1xuXG4gIGNvbnN0cnVjdG9yKCkge1xuICB9XG5cbiAgbmdPbkluaXQoKSB7XG4gIH1cbn1cbiJdfQ==
|