cps-ui-kit 0.128.0 → 0.130.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/README.md +1 -0
  2. package/assets/icons.svg +8 -0
  3. package/esm2020/lib/components/cps-autocomplete/cps-autocomplete.component.mjs +3 -3
  4. package/esm2020/lib/components/cps-button-toggle/cps-button-toggle.component.mjs +3 -3
  5. package/esm2020/lib/components/cps-checkbox/cps-checkbox.component.mjs +1 -1
  6. package/esm2020/lib/components/cps-datepicker/cps-datepicker.component.mjs +3 -3
  7. package/esm2020/lib/components/cps-expansion-panel/cps-expansion-panel.component.mjs +3 -3
  8. package/esm2020/lib/components/cps-icon/cps-icon.component.mjs +3 -1
  9. package/esm2020/lib/components/cps-info-circle/cps-info-circle.component.mjs +1 -1
  10. package/esm2020/lib/components/cps-input/cps-input.component.mjs +1 -1
  11. package/esm2020/lib/components/cps-menu/cps-menu.component.mjs +3 -3
  12. package/esm2020/lib/components/cps-paginator/cps-paginator.component.mjs +3 -3
  13. package/esm2020/lib/components/cps-radio-group/cps-radio-group.component.mjs +1 -1
  14. package/esm2020/lib/components/cps-select/cps-select.component.mjs +3 -3
  15. package/esm2020/lib/components/cps-sidebar-menu/cps-sidebar-menu.component.mjs +3 -3
  16. package/esm2020/lib/components/cps-table/cps-table.component.mjs +3 -3
  17. package/esm2020/lib/components/cps-textarea/cps-textarea.component.mjs +1 -1
  18. package/esm2020/lib/components/cps-tree-autocomplete/cps-tree-autocomplete.component.mjs +8 -5
  19. package/esm2020/lib/components/cps-tree-select/cps-tree-select.component.mjs +8 -5
  20. package/esm2020/lib/components/cps-tree-table/cps-tree-table.component.mjs +76 -47
  21. package/esm2020/lib/components/cps-tree-table/tree-table-sort-icon/tree-table-sort-icon.component.mjs +3 -5
  22. package/esm2020/lib/components/internal/cps-base-tree-dropdown/cps-base-tree-dropdown.component.mjs +499 -0
  23. package/esm2020/lib/directives/cps-tooltip.directive.mjs +1 -1
  24. package/esm2020/lib/services/cps-dialog/cps-dialog.service.mjs +87 -0
  25. package/esm2020/lib/services/cps-dialog/internal/components/cps-confirmation/cps-confirmation.component.mjs +25 -0
  26. package/esm2020/lib/services/cps-dialog/internal/components/cps-dialog/cps-dialog.component.mjs +466 -0
  27. package/esm2020/lib/services/cps-dialog/internal/directives/cps-dialog-content.directive.mjs +18 -0
  28. package/esm2020/lib/services/cps-dialog/utils/cps-dialog-config.mjs +3 -0
  29. package/esm2020/lib/services/cps-dialog/utils/cps-dialog-ref.mjs +128 -0
  30. package/esm2020/public-api.mjs +4 -1
  31. package/fesm2015/cps-ui-kit.mjs +829 -84
  32. package/fesm2015/cps-ui-kit.mjs.map +1 -1
  33. package/fesm2020/cps-ui-kit.mjs +813 -85
  34. package/fesm2020/cps-ui-kit.mjs.map +1 -1
  35. package/lib/components/cps-autocomplete/cps-autocomplete.component.d.ts +2 -2
  36. package/lib/components/cps-button-toggle/cps-button-toggle.component.d.ts +3 -3
  37. package/lib/components/cps-checkbox/cps-checkbox.component.d.ts +2 -2
  38. package/lib/components/cps-datepicker/cps-datepicker.component.d.ts +2 -2
  39. package/lib/components/cps-info-circle/cps-info-circle.component.d.ts +2 -2
  40. package/lib/components/cps-input/cps-input.component.d.ts +2 -2
  41. package/lib/components/cps-radio-group/cps-radio-group.component.d.ts +2 -2
  42. package/lib/components/cps-select/cps-select.component.d.ts +2 -2
  43. package/lib/components/cps-textarea/cps-textarea.component.d.ts +2 -2
  44. package/lib/components/cps-tree-autocomplete/cps-tree-autocomplete.component.d.ts +4 -3
  45. package/lib/components/cps-tree-select/cps-tree-select.component.d.ts +4 -3
  46. package/lib/components/cps-tree-table/cps-tree-table.component.d.ts +6 -1
  47. package/lib/{base_components/base-tree-dropdown.component.d.ts → components/internal/cps-base-tree-dropdown/cps-base-tree-dropdown.component.d.ts} +7 -8
  48. package/lib/directives/cps-tooltip.directive.d.ts +4 -4
  49. package/lib/services/cps-dialog/cps-dialog.service.d.ts +22 -0
  50. package/lib/services/cps-dialog/internal/components/cps-confirmation/cps-confirmation.component.d.ts +12 -0
  51. package/lib/services/cps-dialog/internal/components/cps-dialog/cps-dialog.component.d.ts +93 -0
  52. package/lib/services/cps-dialog/internal/directives/cps-dialog-content.directive.d.ts +8 -0
  53. package/lib/services/cps-dialog/utils/cps-dialog-config.d.ts +151 -0
  54. package/lib/services/cps-dialog/utils/cps-dialog-ref.d.ts +101 -0
  55. package/package.json +1 -1
  56. package/public-api.d.ts +3 -0
  57. package/styles/_colors.scss +4 -0
  58. package/esm2020/lib/base_components/base-tree-dropdown.component.mjs +0 -502
@@ -3,7 +3,7 @@ import { ControlValueAccessor, NgControl } from '@angular/forms';
3
3
  import { IconType, iconSizeType } from '../cps-icon/cps-icon.component';
4
4
  import { LabelByValuePipe } from '../../pipes/internal/label-by-value.pipe';
5
5
  import { VirtualScroller } from 'primeng/virtualscroller';
6
- import { TooltipPosition } from '../../directives/cps-tooltip.directive';
6
+ import { CpsTooltipPosition } from '../../directives/cps-tooltip.directive';
7
7
  import { CpsMenuComponent } from '../cps-menu/cps-menu.component';
8
8
  import * as i0 from "@angular/core";
9
9
  export type CpsAutocompleteAppearanceType = 'outlined' | 'underlined' | 'borderless';
@@ -38,7 +38,7 @@ export declare class CpsAutocompleteComponent implements ControlValueAccessor, O
38
38
  infoTooltipClass: string;
39
39
  infoTooltipMaxWidth: number | string;
40
40
  infoTooltipPersistent: boolean;
41
- infoTooltipPosition: TooltipPosition;
41
+ infoTooltipPosition: CpsTooltipPosition;
42
42
  appearance: CpsAutocompleteAppearanceType;
43
43
  _value: any;
44
44
  get value(): any;
@@ -1,6 +1,6 @@
1
1
  import { EventEmitter, OnInit, Renderer2 } from '@angular/core';
2
2
  import { ControlValueAccessor, NgControl } from '@angular/forms';
3
- import { TooltipPosition } from '../../directives/cps-tooltip.directive';
3
+ import { CpsTooltipPosition } from '../../directives/cps-tooltip.directive';
4
4
  import * as i0 from "@angular/core";
5
5
  export type CpsButtonToggleOption = {
6
6
  value: any;
@@ -18,12 +18,12 @@ export declare class CpsButtonToggleComponent implements ControlValueAccessor, O
18
18
  disabled: boolean;
19
19
  mandatory: boolean;
20
20
  equalWidths: boolean;
21
- optionTooltipPosition: TooltipPosition;
21
+ optionTooltipPosition: CpsTooltipPosition;
22
22
  infoTooltip: string;
23
23
  infoTooltipClass: string;
24
24
  infoTooltipMaxWidth: number | string;
25
25
  infoTooltipPersistent: boolean;
26
- infoTooltipPosition: TooltipPosition;
26
+ infoTooltipPosition: CpsTooltipPosition;
27
27
  _value: any;
28
28
  set value(value: any);
29
29
  get value(): any;
@@ -1,6 +1,6 @@
1
1
  import { ElementRef, EventEmitter, OnInit } from '@angular/core';
2
2
  import { ControlValueAccessor, NgControl } from '@angular/forms';
3
- import { TooltipPosition } from '../../directives/cps-tooltip.directive';
3
+ import { CpsTooltipPosition } from '../../directives/cps-tooltip.directive';
4
4
  import { IconType } from '../cps-icon/cps-icon.component';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class CpsCheckboxComponent implements OnInit, ControlValueAccessor {
@@ -12,7 +12,7 @@ export declare class CpsCheckboxComponent implements OnInit, ControlValueAccesso
12
12
  infoTooltipClass: string;
13
13
  infoTooltipMaxWidth: number | string;
14
14
  infoTooltipPersistent: boolean;
15
- infoTooltipPosition: TooltipPosition;
15
+ infoTooltipPosition: CpsTooltipPosition;
16
16
  icon: IconType;
17
17
  iconColor: string;
18
18
  set value(value: boolean);
@@ -1,7 +1,7 @@
1
1
  import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
2
  import { ControlValueAccessor, NgControl } from '@angular/forms';
3
3
  import { CpsInputComponent } from '../cps-input/cps-input.component';
4
- import { TooltipPosition } from '../../directives/cps-tooltip.directive';
4
+ import { CpsTooltipPosition } from '../../directives/cps-tooltip.directive';
5
5
  import { CpsMenuComponent } from '../cps-menu/cps-menu.component';
6
6
  import * as i0 from "@angular/core";
7
7
  export type CpsDatepickerAppearanceType = 'outlined' | 'underlined' | 'borderless';
@@ -21,7 +21,7 @@ export declare class CpsDatepickerComponent implements ControlValueAccessor, OnI
21
21
  infoTooltipClass: string;
22
22
  infoTooltipMaxWidth: number | string;
23
23
  infoTooltipPersistent: boolean;
24
- infoTooltipPosition: TooltipPosition;
24
+ infoTooltipPosition: CpsTooltipPosition;
25
25
  appearance: CpsDatepickerAppearanceType;
26
26
  minDate: Date;
27
27
  maxDate: Date;
@@ -1,10 +1,10 @@
1
1
  import { iconSizeType } from '../cps-icon/cps-icon.component';
2
- import { TooltipPosition } from '../../directives/cps-tooltip.directive';
2
+ import { CpsTooltipPosition } from '../../directives/cps-tooltip.directive';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class CpsInfoCircleComponent {
5
5
  size: iconSizeType;
6
6
  tooltipText: string;
7
- tooltipPosition: TooltipPosition;
7
+ tooltipPosition: CpsTooltipPosition;
8
8
  tooltipContentClass: string;
9
9
  tooltipMaxWidth: number | string;
10
10
  tooltipPersistent: boolean;
@@ -1,7 +1,7 @@
1
1
  import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
2
  import { ControlValueAccessor, NgControl } from '@angular/forms';
3
3
  import { IconType, iconSizeType } from '../cps-icon/cps-icon.component';
4
- import { TooltipPosition } from '../../directives/cps-tooltip.directive';
4
+ import { CpsTooltipPosition } from '../../directives/cps-tooltip.directive';
5
5
  import * as i0 from "@angular/core";
6
6
  export type CpsInputAppearanceType = 'outlined' | 'underlined' | 'borderless';
7
7
  export declare class CpsInputComponent implements ControlValueAccessor, OnInit, AfterViewInit, OnDestroy {
@@ -28,7 +28,7 @@ export declare class CpsInputComponent implements ControlValueAccessor, OnInit,
28
28
  infoTooltipClass: string;
29
29
  infoTooltipMaxWidth: number | string;
30
30
  infoTooltipPersistent: boolean;
31
- infoTooltipPosition: TooltipPosition;
31
+ infoTooltipPosition: CpsTooltipPosition;
32
32
  appearance: CpsInputAppearanceType;
33
33
  valueToDisplay: string;
34
34
  set value(value: string);
@@ -1,6 +1,6 @@
1
1
  import { EventEmitter, InjectionToken } from '@angular/core';
2
2
  import { ControlValueAccessor, NgControl } from '@angular/forms';
3
- import { TooltipPosition } from '../../directives/cps-tooltip.directive';
3
+ import { CpsTooltipPosition } from '../../directives/cps-tooltip.directive';
4
4
  import * as i0 from "@angular/core";
5
5
  export type CpsRadioOption = {
6
6
  value: any;
@@ -19,7 +19,7 @@ export declare class CpsRadioGroupComponent implements ControlValueAccessor {
19
19
  infoTooltipClass: string;
20
20
  infoTooltipMaxWidth: number | string;
21
21
  infoTooltipPersistent: boolean;
22
- infoTooltipPosition: TooltipPosition;
22
+ infoTooltipPosition: CpsTooltipPosition;
23
23
  set value(value: any);
24
24
  get value(): any;
25
25
  valueChanged: EventEmitter<boolean>;
@@ -2,7 +2,7 @@ import { AfterViewInit, ElementRef, EventEmitter, OnDestroy, OnInit } from '@ang
2
2
  import { ControlValueAccessor, NgControl } from '@angular/forms';
3
3
  import { iconSizeType, IconType } from '../cps-icon/cps-icon.component';
4
4
  import { VirtualScroller } from 'primeng/virtualscroller';
5
- import { TooltipPosition } from '../../directives/cps-tooltip.directive';
5
+ import { CpsTooltipPosition } from '../../directives/cps-tooltip.directive';
6
6
  import { CpsMenuComponent } from '../cps-menu/cps-menu.component';
7
7
  import * as i0 from "@angular/core";
8
8
  export type CpsSelectAppearanceType = 'outlined' | 'underlined' | 'borderless';
@@ -35,7 +35,7 @@ export declare class CpsSelectComponent implements ControlValueAccessor, OnInit,
35
35
  infoTooltipClass: string;
36
36
  infoTooltipMaxWidth: number | string;
37
37
  infoTooltipPersistent: boolean;
38
- infoTooltipPosition: TooltipPosition;
38
+ infoTooltipPosition: CpsTooltipPosition;
39
39
  optionsClass: string;
40
40
  appearance: CpsSelectAppearanceType;
41
41
  _value: any;
@@ -1,6 +1,6 @@
1
1
  import { ElementRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
2
  import { ControlValueAccessor, NgControl } from '@angular/forms';
3
- import { TooltipPosition } from '../../directives/cps-tooltip.directive';
3
+ import { CpsTooltipPosition } from '../../directives/cps-tooltip.directive';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class CpsTextareaComponent implements ControlValueAccessor, OnInit, OnDestroy {
6
6
  private _control;
@@ -22,7 +22,7 @@ export declare class CpsTextareaComponent implements ControlValueAccessor, OnIni
22
22
  infoTooltipClass: string;
23
23
  infoTooltipMaxWidth: number | string;
24
24
  infoTooltipPersistent: boolean;
25
- infoTooltipPosition: TooltipPosition;
25
+ infoTooltipPosition: CpsTooltipPosition;
26
26
  set value(value: string);
27
27
  get value(): string;
28
28
  valueChanged: EventEmitter<string>;
@@ -1,14 +1,15 @@
1
1
  import { AfterViewInit, ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
2
2
  import { NgControl } from '@angular/forms';
3
3
  import { TreeNode } from 'primeng/api';
4
- import { BaseTreeDropdownComponent } from '../../base_components/base-tree-dropdown.component';
4
+ import { CpsBaseTreeDropdownComponent } from '../internal/cps-base-tree-dropdown/cps-base-tree-dropdown.component';
5
5
  import * as i0 from "@angular/core";
6
6
  export type CpsTreeAutocompleteAppearanceType = 'outlined' | 'underlined' | 'borderless';
7
- export declare class CpsTreeAutocompleteComponent extends BaseTreeDropdownComponent implements OnInit, AfterViewInit, OnDestroy {
7
+ export declare class CpsTreeAutocompleteComponent extends CpsBaseTreeDropdownComponent implements OnInit, AfterViewInit, OnDestroy {
8
8
  control: NgControl;
9
9
  cdRef: ChangeDetectorRef;
10
10
  emptyMessage: string;
11
11
  appearance: CpsTreeAutocompleteAppearanceType;
12
+ placeholder: string;
12
13
  inputText: string;
13
14
  backspaceClickedOnce: boolean;
14
15
  activeSingle: boolean;
@@ -35,5 +36,5 @@ export declare class CpsTreeAutocompleteComponent extends BaseTreeDropdownCompon
35
36
  private _confirmInput;
36
37
  private _removeLastValue;
37
38
  static ɵfac: i0.ɵɵFactoryDeclaration<CpsTreeAutocompleteComponent, [{ optional: true; }, null]>;
38
- static ɵcmp: i0.ɵɵComponentDeclaration<CpsTreeAutocompleteComponent, "cps-tree-autocomplete", never, { "emptyMessage": "emptyMessage"; "appearance": "appearance"; }, {}, never, never, true, never>;
39
+ static ɵcmp: i0.ɵɵComponentDeclaration<CpsTreeAutocompleteComponent, "cps-tree-autocomplete", never, { "emptyMessage": "emptyMessage"; "appearance": "appearance"; "placeholder": "placeholder"; }, {}, never, never, true, never>;
39
40
  }
@@ -1,12 +1,13 @@
1
1
  import { AfterViewInit, ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
2
2
  import { NgControl } from '@angular/forms';
3
- import { BaseTreeDropdownComponent } from '../../base_components/base-tree-dropdown.component';
3
+ import { CpsBaseTreeDropdownComponent } from '../internal/cps-base-tree-dropdown/cps-base-tree-dropdown.component';
4
4
  import * as i0 from "@angular/core";
5
5
  export type CpsTreeSelectAppearanceType = 'outlined' | 'underlined' | 'borderless';
6
- export declare class CpsTreeSelectComponent extends BaseTreeDropdownComponent implements OnInit, AfterViewInit, OnDestroy {
6
+ export declare class CpsTreeSelectComponent extends CpsBaseTreeDropdownComponent implements OnInit, AfterViewInit, OnDestroy {
7
7
  control: NgControl;
8
8
  cdRef: ChangeDetectorRef;
9
9
  appearance: CpsTreeSelectAppearanceType;
10
+ placeholder: string;
10
11
  constructor(control: NgControl, cdRef: ChangeDetectorRef);
11
12
  ngOnInit(): void;
12
13
  ngAfterViewInit(): void;
@@ -15,5 +16,5 @@ export declare class CpsTreeSelectComponent extends BaseTreeDropdownComponent im
15
16
  onBoxClick(): void;
16
17
  onKeyDown(event: any): void;
17
18
  static ɵfac: i0.ɵɵFactoryDeclaration<CpsTreeSelectComponent, [{ optional: true; }, null]>;
18
- static ɵcmp: i0.ɵɵComponentDeclaration<CpsTreeSelectComponent, "cps-tree-select", never, { "appearance": "appearance"; }, {}, never, never, true, never>;
19
+ static ɵcmp: i0.ɵɵComponentDeclaration<CpsTreeSelectComponent, "cps-tree-select", never, { "appearance": "appearance"; "placeholder": "placeholder"; }, {}, never, never, true, never>;
19
20
  }
@@ -16,6 +16,7 @@ export declare class CpsTreeTableComponent implements OnInit, AfterViewInit, OnD
16
16
  }[];
17
17
  colHeaderName: string;
18
18
  colFieldName: string;
19
+ minWidth: number;
19
20
  striped: boolean;
20
21
  bordered: boolean;
21
22
  size: CpsTreeTableSize;
@@ -36,6 +37,7 @@ export declare class CpsTreeTableComponent implements OnInit, AfterViewInit, OnD
36
37
  scrollable: boolean;
37
38
  scrollHeight: string;
38
39
  virtualScroll: boolean;
40
+ maxVirtualScrollItemHeight: number;
39
41
  numToleratedItems: number;
40
42
  paginator: boolean;
41
43
  alwaysShowPaginator: boolean;
@@ -110,9 +112,12 @@ export declare class CpsTreeTableComponent implements OnInit, AfterViewInit, OnD
110
112
  headerBox: any;
111
113
  scrollableBody: any;
112
114
  scrollbarWidth: number;
115
+ observerDebouncers: WeakMap<object, any>;
116
+ observerHandlers: WeakMap<object, any>;
113
117
  constructor(cdRef: ChangeDetectorRef);
114
118
  ngOnInit(): void;
115
119
  ngAfterViewInit(): void;
120
+ private _updateVirtualScrollItemSize;
116
121
  ngAfterViewChecked(): void;
117
122
  ngOnChanges(changes: SimpleChanges): void;
118
123
  ngOnDestroy(): void;
@@ -148,5 +153,5 @@ export declare class CpsTreeTableComponent implements OnInit, AfterViewInit, OnD
148
153
  onSelectColumn(col: any): void;
149
154
  onSelectionChanged(selection: any[]): void;
150
155
  static ɵfac: i0.ɵɵFactoryDeclaration<CpsTreeTableComponent, never>;
151
- static ɵcmp: i0.ɵɵComponentDeclaration<CpsTreeTableComponent, "cps-tree-table", never, { "data": "data"; "columns": "columns"; "colHeaderName": "colHeaderName"; "colFieldName": "colFieldName"; "striped": "striped"; "bordered": "bordered"; "size": "size"; "selectable": "selectable"; "rowHover": "rowHover"; "showRowMenu": "showRowMenu"; "loading": "loading"; "tableStyle": "tableStyle"; "tableStyleClass": "tableStyleClass"; "sortable": "sortable"; "sortMode": "sortMode"; "customSort": "customSort"; "hasToolbar": "hasToolbar"; "toolbarSize": "toolbarSize"; "toolbarTitle": "toolbarTitle"; "toolbarIcon": "toolbarIcon"; "toolbarIconColor": "toolbarIconColor"; "scrollable": "scrollable"; "scrollHeight": "scrollHeight"; "virtualScroll": "virtualScroll"; "numToleratedItems": "numToleratedItems"; "paginator": "paginator"; "alwaysShowPaginator": "alwaysShowPaginator"; "rowsPerPageOptions": "rowsPerPageOptions"; "first": "first"; "rows": "rows"; "resetPageOnRowsChange": "resetPageOnRowsChange"; "resetPageOnSort": "resetPageOnSort"; "totalRecords": "totalRecords"; "emptyMessage": "emptyMessage"; "emptyBodyHeight": "emptyBodyHeight"; "lazy": "lazy"; "lazyLoadOnInit": "lazyLoadOnInit"; "showGlobalFilter": "showGlobalFilter"; "globalFilterPlaceholder": "globalFilterPlaceholder"; "globalFilterFields": "globalFilterFields"; "clearGlobalFilterOnLoading": "clearGlobalFilterOnLoading"; "showRemoveBtnOnSelect": "showRemoveBtnOnSelect"; "removeBtnOnSelectDisabled": "removeBtnOnSelectDisabled"; "showAdditionalBtnOnSelect": "showAdditionalBtnOnSelect"; "additionalBtnOnSelectTitle": "additionalBtnOnSelectTitle"; "additionalBtnOnSelectDisabled": "additionalBtnOnSelectDisabled"; "showActionBtn": "showActionBtn"; "actionBtnTitle": "actionBtnTitle"; "actionBtnDisabled": "actionBtnDisabled"; "showDataReloadBtn": "showDataReloadBtn"; "dataReloadBtnDisabled": "dataReloadBtnDisabled"; "showColumnsToggleBtn": "showColumnsToggleBtn"; "columnsToggleBtnDisabled": "columnsToggleBtnDisabled"; }, { "selectionChanged": "selectionChanged"; "actionBtnClicked": "actionBtnClicked"; "additionalBtnOnSelectClicked": "additionalBtnOnSelectClicked"; "editRowBtnClicked": "editRowBtnClicked"; "rowsRemoved": "rowsRemoved"; "pageChanged": "pageChanged"; "sorted": "sorted"; "filtered": "filtered"; "columnsSelected": "columnsSelected"; "lazyLoaded": "lazyLoaded"; "dataReloadBtnClicked": "dataReloadBtnClicked"; "nodeExpanded": "nodeExpanded"; "nodeCollapsed": "nodeCollapsed"; "nodeSelected": "nodeSelected"; "nodeUnselected": "nodeUnselected"; "customSortFunction": "customSortFunction"; }, ["toolbarTemplate", "headerTemplate", "nestedHeaderTemplate", "bodyTemplate"], never, true, never>;
156
+ static ɵcmp: i0.ɵɵComponentDeclaration<CpsTreeTableComponent, "cps-tree-table", never, { "data": "data"; "columns": "columns"; "colHeaderName": "colHeaderName"; "colFieldName": "colFieldName"; "minWidth": "minWidth"; "striped": "striped"; "bordered": "bordered"; "size": "size"; "selectable": "selectable"; "rowHover": "rowHover"; "showRowMenu": "showRowMenu"; "loading": "loading"; "tableStyle": "tableStyle"; "tableStyleClass": "tableStyleClass"; "sortable": "sortable"; "sortMode": "sortMode"; "customSort": "customSort"; "hasToolbar": "hasToolbar"; "toolbarSize": "toolbarSize"; "toolbarTitle": "toolbarTitle"; "toolbarIcon": "toolbarIcon"; "toolbarIconColor": "toolbarIconColor"; "scrollable": "scrollable"; "scrollHeight": "scrollHeight"; "virtualScroll": "virtualScroll"; "maxVirtualScrollItemHeight": "maxVirtualScrollItemHeight"; "numToleratedItems": "numToleratedItems"; "paginator": "paginator"; "alwaysShowPaginator": "alwaysShowPaginator"; "rowsPerPageOptions": "rowsPerPageOptions"; "first": "first"; "rows": "rows"; "resetPageOnRowsChange": "resetPageOnRowsChange"; "resetPageOnSort": "resetPageOnSort"; "totalRecords": "totalRecords"; "emptyMessage": "emptyMessage"; "emptyBodyHeight": "emptyBodyHeight"; "lazy": "lazy"; "lazyLoadOnInit": "lazyLoadOnInit"; "showGlobalFilter": "showGlobalFilter"; "globalFilterPlaceholder": "globalFilterPlaceholder"; "globalFilterFields": "globalFilterFields"; "clearGlobalFilterOnLoading": "clearGlobalFilterOnLoading"; "showRemoveBtnOnSelect": "showRemoveBtnOnSelect"; "removeBtnOnSelectDisabled": "removeBtnOnSelectDisabled"; "showAdditionalBtnOnSelect": "showAdditionalBtnOnSelect"; "additionalBtnOnSelectTitle": "additionalBtnOnSelectTitle"; "additionalBtnOnSelectDisabled": "additionalBtnOnSelectDisabled"; "showActionBtn": "showActionBtn"; "actionBtnTitle": "actionBtnTitle"; "actionBtnDisabled": "actionBtnDisabled"; "showDataReloadBtn": "showDataReloadBtn"; "dataReloadBtnDisabled": "dataReloadBtnDisabled"; "showColumnsToggleBtn": "showColumnsToggleBtn"; "columnsToggleBtnDisabled": "columnsToggleBtnDisabled"; }, { "selectionChanged": "selectionChanged"; "actionBtnClicked": "actionBtnClicked"; "additionalBtnOnSelectClicked": "additionalBtnOnSelectClicked"; "editRowBtnClicked": "editRowBtnClicked"; "rowsRemoved": "rowsRemoved"; "pageChanged": "pageChanged"; "sorted": "sorted"; "filtered": "filtered"; "columnsSelected": "columnsSelected"; "lazyLoaded": "lazyLoaded"; "dataReloadBtnClicked": "dataReloadBtnClicked"; "nodeExpanded": "nodeExpanded"; "nodeCollapsed": "nodeCollapsed"; "nodeSelected": "nodeSelected"; "nodeUnselected": "nodeUnselected"; "customSortFunction": "customSortFunction"; }, ["toolbarTemplate", "headerTemplate", "nestedHeaderTemplate", "bodyTemplate"], never, true, never>;
152
157
  }
@@ -1,16 +1,15 @@
1
1
  import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
2
  import { ControlValueAccessor, NgControl } from '@angular/forms';
3
3
  import { TreeNode } from 'primeng/api';
4
- import { IconType, iconSizeType } from '../components/cps-icon/cps-icon.component';
5
4
  import { Tree } from 'primeng/tree';
6
- import { TooltipPosition } from '../directives/cps-tooltip.directive';
7
- import { CpsMenuComponent } from '../components/cps-menu/cps-menu.component';
5
+ import { IconType, iconSizeType } from '../../cps-icon/cps-icon.component';
6
+ import { CpsTooltipPosition } from '../../../directives/cps-tooltip.directive';
7
+ import { CpsMenuComponent } from '../../cps-menu/cps-menu.component';
8
8
  import * as i0 from "@angular/core";
9
- export declare class BaseTreeDropdownComponent implements ControlValueAccessor, OnInit, AfterViewInit, OnDestroy {
9
+ export declare class CpsBaseTreeDropdownComponent implements ControlValueAccessor, OnInit, AfterViewInit, OnDestroy {
10
10
  control: NgControl;
11
11
  cdRef: ChangeDetectorRef;
12
12
  label: string;
13
- placeholder: string;
14
13
  hint: string;
15
14
  multiple: boolean;
16
15
  disabled: boolean;
@@ -32,7 +31,7 @@ export declare class BaseTreeDropdownComponent implements ControlValueAccessor,
32
31
  infoTooltipClass: string;
33
32
  infoTooltipMaxWidth: number | string;
34
33
  infoTooltipPersistent: boolean;
35
- infoTooltipPosition: TooltipPosition;
34
+ infoTooltipPosition: CpsTooltipPosition;
36
35
  initialExpandDirectories: boolean;
37
36
  initialExpandAll: boolean;
38
37
  set options(options: any[]);
@@ -95,6 +94,6 @@ export declare class BaseTreeDropdownComponent implements ControlValueAccessor,
95
94
  treeSelectionToValue(selection: any): any;
96
95
  private _valueToTreeSelection;
97
96
  updateOptions(): void;
98
- static ɵfac: i0.ɵɵFactoryDeclaration<BaseTreeDropdownComponent, [{ optional: true; self: true; }, null]>;
99
- static ɵcmp: i0.ɵɵComponentDeclaration<BaseTreeDropdownComponent, "ng-component", never, { "label": "label"; "placeholder": "placeholder"; "hint": "hint"; "multiple": "multiple"; "disabled": "disabled"; "width": "width"; "chips": "chips"; "closableChips": "closableChips"; "clearable": "clearable"; "openOnClear": "openOnClear"; "optionLabel": "optionLabel"; "optionInfo": "optionInfo"; "hideDetails": "hideDetails"; "persistentClear": "persistentClear"; "prefixIcon": "prefixIcon"; "prefixIconSize": "prefixIconSize"; "loading": "loading"; "virtualScroll": "virtualScroll"; "numToleratedItems": "numToleratedItems"; "infoTooltip": "infoTooltip"; "infoTooltipClass": "infoTooltipClass"; "infoTooltipMaxWidth": "infoTooltipMaxWidth"; "infoTooltipPersistent": "infoTooltipPersistent"; "infoTooltipPosition": "infoTooltipPosition"; "initialExpandDirectories": "initialExpandDirectories"; "initialExpandAll": "initialExpandAll"; "options": "options"; "_value": "value"; }, { "valueChanged": "valueChanged"; }, never, never, false, never>;
97
+ static ɵfac: i0.ɵɵFactoryDeclaration<CpsBaseTreeDropdownComponent, [{ optional: true; self: true; }, null]>;
98
+ static ɵcmp: i0.ɵɵComponentDeclaration<CpsBaseTreeDropdownComponent, "ng-component", never, { "label": "label"; "hint": "hint"; "multiple": "multiple"; "disabled": "disabled"; "width": "width"; "chips": "chips"; "closableChips": "closableChips"; "clearable": "clearable"; "openOnClear": "openOnClear"; "optionLabel": "optionLabel"; "optionInfo": "optionInfo"; "hideDetails": "hideDetails"; "persistentClear": "persistentClear"; "prefixIcon": "prefixIcon"; "prefixIconSize": "prefixIconSize"; "loading": "loading"; "virtualScroll": "virtualScroll"; "numToleratedItems": "numToleratedItems"; "infoTooltip": "infoTooltip"; "infoTooltipClass": "infoTooltipClass"; "infoTooltipMaxWidth": "infoTooltipMaxWidth"; "infoTooltipPersistent": "infoTooltipPersistent"; "infoTooltipPosition": "infoTooltipPosition"; "initialExpandDirectories": "initialExpandDirectories"; "initialExpandAll": "initialExpandAll"; "options": "options"; "_value": "value"; }, { "valueChanged": "valueChanged"; }, never, never, false, never>;
100
99
  }
@@ -1,14 +1,14 @@
1
1
  import { ElementRef, OnDestroy } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
- export type TooltipPosition = 'top' | 'bottom' | 'left' | 'right';
4
- export type TooltipOpenOn = 'hover' | 'click' | 'focus';
3
+ export type CpsTooltipPosition = 'top' | 'bottom' | 'left' | 'right';
4
+ export type CpsTooltipOpenOn = 'hover' | 'click' | 'focus';
5
5
  export declare class CpsTooltipDirective implements OnDestroy {
6
6
  private _elementRef;
7
7
  tooltip: string;
8
8
  tooltipOpenDelay: string | number;
9
9
  tooltipCloseDelay: string | number;
10
- tooltipOpenOn: TooltipOpenOn;
11
- tooltipPosition: TooltipPosition;
10
+ tooltipOpenOn: CpsTooltipOpenOn;
11
+ tooltipPosition: CpsTooltipPosition;
12
12
  tooltipPersistent: boolean;
13
13
  tooltipDisabled: boolean;
14
14
  tooltipMaxWidth: number | string;
@@ -0,0 +1,22 @@
1
+ import { Injector, Type, ComponentRef, ViewContainerRef } from '@angular/core';
2
+ import { CpsDialogRef } from './utils/cps-dialog-ref';
3
+ import { CpsDialogConfig } from './utils/cps-dialog-config';
4
+ import { CpsDialogComponent } from './internal/components/cps-dialog/cps-dialog.component';
5
+ import * as i0 from "@angular/core";
6
+ /**
7
+ * Service for showing CpsDialog.
8
+ * @group Service
9
+ */
10
+ export declare class CpsDialogService {
11
+ private viewContainerRef;
12
+ private injector;
13
+ private document;
14
+ dialogComponentRefMap: Map<CpsDialogRef, ComponentRef<CpsDialogComponent>>;
15
+ constructor(viewContainerRef: ViewContainerRef, injector: Injector, document: Document);
16
+ open(componentType: Type<any>, config: CpsDialogConfig): CpsDialogRef;
17
+ openConfirmationDialog(config: CpsDialogConfig): CpsDialogRef;
18
+ private appendDialogComponentToBody;
19
+ private removeDialogComponentFromBody;
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<CpsDialogService, never>;
21
+ static ɵprov: i0.ɵɵInjectableDeclaration<CpsDialogService>;
22
+ }
@@ -0,0 +1,12 @@
1
+ import { CpsDialogRef } from '../../../utils/cps-dialog-ref';
2
+ import { CpsDialogConfig } from '../../../utils/cps-dialog-config';
3
+ import * as i0 from "@angular/core";
4
+ export declare class CpsConfirmationComponent {
5
+ private _dialogRef;
6
+ private _config;
7
+ subtitle: string;
8
+ constructor(_dialogRef: CpsDialogRef, _config: CpsDialogConfig);
9
+ close(confirm: boolean): void;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<CpsConfirmationComponent, never>;
11
+ static ɵcmp: i0.ɵɵComponentDeclaration<CpsConfirmationComponent, "cps-confirmation", never, {}, {}, never, never, true, never>;
12
+ }
@@ -0,0 +1,93 @@
1
+ import { AnimationEvent } from '@angular/animations';
2
+ import { AfterViewInit, ChangeDetectorRef, ComponentRef, ElementRef, EventEmitter, NgZone, OnDestroy, Renderer2, Type } from '@angular/core';
3
+ import { PrimeNGConfig } from 'primeng/api';
4
+ import { CpsDialogContentDirective } from '../../directives/cps-dialog-content.directive';
5
+ import { CpsDialogConfig } from '../../../utils/cps-dialog-config';
6
+ import { CpsDialogRef } from '../../../utils/cps-dialog-ref';
7
+ import * as i0 from "@angular/core";
8
+ type Nullable<T = void> = T | null | undefined;
9
+ type VoidListener = () => void | null | undefined;
10
+ export declare class CpsDialogComponent implements AfterViewInit, OnDestroy {
11
+ private document;
12
+ private platformId;
13
+ private _dialogRef;
14
+ private _cdRef;
15
+ renderer: Renderer2;
16
+ config: CpsDialogConfig;
17
+ zone: NgZone;
18
+ primeNGConfig: PrimeNGConfig;
19
+ visible: boolean;
20
+ componentRef: Nullable<ComponentRef<any>>;
21
+ resizing: boolean | undefined;
22
+ dragging: boolean | undefined;
23
+ maximized: boolean | undefined;
24
+ _style: any;
25
+ originalStyle: any;
26
+ lastPageX: number | undefined;
27
+ lastPageY: number | undefined;
28
+ insertionPoint: Nullable<CpsDialogContentDirective>;
29
+ maskViewChild: Nullable<ElementRef>;
30
+ contentViewChild: Nullable<ElementRef>;
31
+ headerViewChild: Nullable<ElementRef>;
32
+ childComponentType: Nullable<Type<any>>;
33
+ container: Nullable<HTMLDivElement>;
34
+ wrapper: Nullable<HTMLElement>;
35
+ documentEscapeListener: VoidListener | null;
36
+ maskClickListener: VoidListener | null;
37
+ transformOptions: string;
38
+ documentResizeListener: VoidListener | null;
39
+ documentResizeEndListener: VoidListener | null;
40
+ documentDragListener: VoidListener | null;
41
+ documentDragEndListener: VoidListener | null;
42
+ _openStateChanged: EventEmitter<void>;
43
+ _dragStarted: EventEmitter<MouseEvent>;
44
+ _dragEnded: EventEmitter<MouseEvent>;
45
+ _resizeStarted: EventEmitter<MouseEvent>;
46
+ _resizeEnded: EventEmitter<MouseEvent>;
47
+ _maximizedStateChanged: EventEmitter<boolean>;
48
+ get minX(): number;
49
+ get minY(): number;
50
+ get keepInViewport(): boolean;
51
+ get maximizable(): boolean;
52
+ get draggable(): boolean;
53
+ get resizable(): boolean;
54
+ get style(): any;
55
+ set style(value: any);
56
+ get position(): string;
57
+ get parent(): Element | undefined;
58
+ constructor(document: Document, platformId: any, _dialogRef: CpsDialogRef, _cdRef: ChangeDetectorRef, renderer: Renderer2, config: CpsDialogConfig, zone: NgZone, primeNGConfig: PrimeNGConfig);
59
+ ngAfterViewInit(): void;
60
+ loadChildComponent(componentType: Type<any>): void;
61
+ moveOnTop(): void;
62
+ onAnimationStart(event: AnimationEvent): void;
63
+ onAnimationEnd(event: AnimationEvent): void;
64
+ onContainerDestroy(): void;
65
+ close(): void;
66
+ hide(): void;
67
+ enableModality(): void;
68
+ disableModality(): void;
69
+ focus(): void;
70
+ toggleMaximized(value?: boolean): void;
71
+ initResize(event: MouseEvent): void;
72
+ onResize(event: MouseEvent): void;
73
+ resizeEnd(event: MouseEvent): void;
74
+ initDrag(event: MouseEvent): void;
75
+ onDrag(event: MouseEvent): void;
76
+ endDrag(event: MouseEvent): void;
77
+ resetPosition(): void;
78
+ bindDocumentDragListener(): void;
79
+ bindDocumentDragEndListener(): void;
80
+ unbindDocumentDragEndListener(): void;
81
+ unbindDocumentDragListener(): void;
82
+ bindDocumentResizeListeners(): void;
83
+ unbindDocumentResizeListeners(): void;
84
+ bindGlobalListeners(): void;
85
+ unbindGlobalListeners(): void;
86
+ bindDocumentEscapeListener(): void;
87
+ unbindDocumentEscapeListener(): void;
88
+ unbindMaskClickListener(): void;
89
+ ngOnDestroy(): void;
90
+ static ɵfac: i0.ɵɵFactoryDeclaration<CpsDialogComponent, never>;
91
+ static ɵcmp: i0.ɵɵComponentDeclaration<CpsDialogComponent, "cps-dialog", never, {}, {}, never, never, true, never>;
92
+ }
93
+ export {};
@@ -0,0 +1,8 @@
1
+ import { ViewContainerRef } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class CpsDialogContentDirective {
4
+ viewContainerRef: ViewContainerRef;
5
+ constructor(viewContainerRef: ViewContainerRef);
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<CpsDialogContentDirective, never>;
7
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CpsDialogContentDirective, "[cpsDialogContent]", never, {}, {}, never, never, true, never>;
8
+ }
@@ -0,0 +1,151 @@
1
+ import { CpsTooltipPosition } from '../../../directives/cps-tooltip.directive';
2
+ export declare class CpsDialogConfig<T = any> {
3
+ /**
4
+ * An object to pass to the component loaded inside the Dialog.
5
+ */
6
+ data?: T;
7
+ /**
8
+ * Whether to show the header or not.
9
+ */
10
+ showHeader?: boolean;
11
+ /**
12
+ * Header text of the dialog.
13
+ */
14
+ headerTitle?: string;
15
+ /**
16
+ * Header information tooltip.
17
+ */
18
+ headerInfoTooltip?: string;
19
+ /**
20
+ * Header information tooltip position.
21
+ */
22
+ headerInfoTooltipPosition?: CpsTooltipPosition;
23
+ /**
24
+ * Header icon.
25
+ */
26
+ headerIcon?: string;
27
+ /**
28
+ * Header icon color.
29
+ */
30
+ headerIconColor?: string;
31
+ /**
32
+ * Whether to show the header left border.
33
+ */
34
+ showHeaderLeftBorder?: boolean;
35
+ /**
36
+ * Whether to show the header bottom border.
37
+ */
38
+ showHeaderBottomBorder?: boolean;
39
+ /**
40
+ * Identifies the element (or elements) that labels the element it is applied to.
41
+ */
42
+ ariaLabelledBy?: string;
43
+ /**
44
+ * Width of the dialog.
45
+ */
46
+ width?: string;
47
+ /**
48
+ * Height of the dialog.
49
+ */
50
+ height?: string;
51
+ /**
52
+ * Min-width of the dialog.
53
+ */
54
+ minWidth?: string;
55
+ /**
56
+ * Min-height of the dialog.
57
+ */
58
+ minHeight?: string;
59
+ /**
60
+ * Max-width of the dialog.
61
+ */
62
+ maxWidth?: string;
63
+ /**
64
+ * Max-height of the dialog.
65
+ */
66
+ maxHeight?: string;
67
+ /**
68
+ * Specifies if pressing escape key should hide the dialog.
69
+ */
70
+ closeOnEscape?: boolean;
71
+ /**
72
+ * Base zIndex value to use in layering.
73
+ */
74
+ baseZIndex?: number;
75
+ /**
76
+ * Whether to automatically manage layering.
77
+ */
78
+ autoZIndex?: boolean;
79
+ /**
80
+ * Specifies whether the user is allowed to close the dialog.
81
+ */
82
+ disableClose?: boolean;
83
+ /**
84
+ * Inline style of the component.
85
+ */
86
+ style?: {
87
+ [klass: string]: any;
88
+ } | null | undefined;
89
+ /**
90
+ * Style class of the component.
91
+ */
92
+ styleClass?: string;
93
+ /**
94
+ * Inline style of the content.
95
+ */
96
+ contentStyle?: {
97
+ [klass: string]: any;
98
+ } | null | undefined;
99
+ /**
100
+ * Style class of the content.
101
+ */
102
+ contentStyleClass?: string;
103
+ /**
104
+ * Transition options of the animation.
105
+ */
106
+ transitionOptions?: string;
107
+ /**
108
+ * Adds a close button to the header to hide the dialog.
109
+ */
110
+ showCloseBtn?: boolean;
111
+ /**
112
+ * Defines if background should be blocked when dialog is displayed.
113
+ */
114
+ modal?: boolean;
115
+ /**
116
+ * Style class of the mask.
117
+ */
118
+ maskStyleClass?: string;
119
+ /**
120
+ * Enables resizing of the content.
121
+ */
122
+ resizable?: boolean;
123
+ /**
124
+ * Enables dragging to change the position using header.
125
+ */
126
+ draggable?: boolean;
127
+ /**
128
+ * Keeps dialog in the viewport.
129
+ */
130
+ keepInViewport?: boolean;
131
+ /**
132
+ * Minimum value for the left coordinate of dialog in dragging.
133
+ */
134
+ minX?: number;
135
+ /**
136
+ * Minimum value for the top coordinate of dialog in dragging.
137
+ */
138
+ minY?: number;
139
+ /**
140
+ * Whether the dialog can be displayed full screen.
141
+ */
142
+ maximizable?: boolean;
143
+ /**
144
+ * Whether the dialog is initially opened as full screen.
145
+ */
146
+ maximized?: boolean;
147
+ /**
148
+ * Position of the dialog, options are "center", "top", "bottom", "left", "right", "top-left", "top-right", "bottom-left" or "bottom-right".
149
+ */
150
+ position?: 'center' | 'top' | 'bottom' | 'left' | 'right' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
151
+ }