cps-ui-kit 17.9.0 → 17.10.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/esm2022/lib/components/cps-autocomplete/cps-autocomplete.component.mjs +1 -1
- package/esm2022/lib/components/cps-button-toggle/cps-button-toggle.component.mjs +1 -1
- package/esm2022/lib/components/cps-datepicker/cps-datepicker.component.mjs +1 -1
- package/esm2022/lib/components/cps-icon/cps-icon.component.mjs +1 -1
- package/esm2022/lib/components/cps-input/cps-input.component.mjs +1 -1
- package/esm2022/lib/components/cps-menu/cps-menu.component.mjs +1 -1
- package/esm2022/lib/components/cps-radio-group/cps-radio-group.component.mjs +1 -1
- package/esm2022/lib/components/cps-select/cps-select.component.mjs +1 -1
- package/esm2022/lib/components/cps-sidebar-menu/cps-sidebar-menu.component.mjs +1 -1
- package/esm2022/lib/components/cps-tab-group/cps-tab-group.component.mjs +1 -1
- package/esm2022/lib/components/cps-table/cps-column-filter-types.mjs +1 -1
- package/esm2022/lib/components/cps-table/cps-table.component.mjs +1 -1
- package/esm2022/lib/components/cps-timepicker/cps-timepicker.component.mjs +1 -1
- package/esm2022/lib/components/cps-tree-autocomplete/cps-tree-autocomplete.component.mjs +1 -1
- package/esm2022/lib/components/cps-tree-select/cps-tree-select.component.mjs +1 -1
- package/esm2022/lib/components/cps-tree-table/cps-tree-table.component.mjs +1 -1
- package/esm2022/lib/directives/cps-tooltip/cps-tooltip.directive.mjs +1 -1
- package/esm2022/lib/services/cps-notification/utils/cps-notification-config.mjs +1 -1
- package/esm2022/lib/services/cps-notification/utils/internal/cps-notification-data.mjs +1 -1
- package/fesm2022/cps-ui-kit.mjs.map +1 -1
- package/lib/components/cps-autocomplete/cps-autocomplete.component.d.ts +4 -0
- package/lib/components/cps-button-toggle/cps-button-toggle.component.d.ts +4 -0
- package/lib/components/cps-datepicker/cps-datepicker.component.d.ts +4 -0
- package/lib/components/cps-icon/cps-icon.component.d.ts +8 -0
- package/lib/components/cps-input/cps-input.component.d.ts +4 -0
- package/lib/components/cps-menu/cps-menu.component.d.ts +8 -0
- package/lib/components/cps-radio-group/cps-radio-group.component.d.ts +4 -0
- package/lib/components/cps-select/cps-select.component.d.ts +4 -0
- package/lib/components/cps-sidebar-menu/cps-sidebar-menu.component.d.ts +4 -0
- package/lib/components/cps-tab-group/cps-tab-group.component.d.ts +18 -0
- package/lib/components/cps-table/cps-column-filter-types.d.ts +8 -0
- package/lib/components/cps-table/cps-table.component.d.ts +16 -0
- package/lib/components/cps-timepicker/cps-timepicker.component.d.ts +4 -0
- package/lib/components/cps-tree-autocomplete/cps-tree-autocomplete.component.d.ts +4 -0
- package/lib/components/cps-tree-select/cps-tree-select.component.d.ts +4 -0
- package/lib/components/cps-tree-table/cps-tree-table.component.d.ts +12 -0
- package/lib/directives/cps-tooltip/cps-tooltip.directive.d.ts +8 -0
- package/lib/services/cps-notification/utils/cps-notification-config.d.ts +4 -0
- package/lib/services/cps-notification/utils/internal/cps-notification-data.d.ts +4 -0
- package/package.json +1 -1
|
@@ -6,6 +6,10 @@ import { VirtualScroller } from 'primeng/virtualscroller';
|
|
|
6
6
|
import { CpsTooltipPosition } from '../../directives/cps-tooltip/cps-tooltip.directive';
|
|
7
7
|
import { CpsMenuComponent } from '../cps-menu/cps-menu.component';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
|
+
/**
|
|
10
|
+
* CpsAutocompleteAppearanceType is used to define the border of the autocomplete input.
|
|
11
|
+
* @group Types
|
|
12
|
+
*/
|
|
9
13
|
export type CpsAutocompleteAppearanceType = 'outlined' | 'underlined' | 'borderless';
|
|
10
14
|
/**
|
|
11
15
|
* CpsAutocompleteComponent is an input component that provides real-time suggestions when being typed.
|
|
@@ -2,6 +2,10 @@ import { EventEmitter, OnInit, Renderer2 } from '@angular/core';
|
|
|
2
2
|
import { ControlValueAccessor, NgControl } from '@angular/forms';
|
|
3
3
|
import { CpsTooltipPosition } from '../../directives/cps-tooltip/cps-tooltip.directive';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
+
/**
|
|
6
|
+
* CpsButtonToggleOption is used to define the options of the CpsButtonToggleComponent.
|
|
7
|
+
* @group Types
|
|
8
|
+
*/
|
|
5
9
|
export type CpsButtonToggleOption = {
|
|
6
10
|
value: any;
|
|
7
11
|
label?: string;
|
|
@@ -4,6 +4,10 @@ import { CpsInputComponent } from '../cps-input/cps-input.component';
|
|
|
4
4
|
import { CpsTooltipPosition } from '../../directives/cps-tooltip/cps-tooltip.directive';
|
|
5
5
|
import { CpsMenuComponent } from '../cps-menu/cps-menu.component';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
|
+
/**
|
|
8
|
+
* CpsDatepickerAppearanceType is used to define the border of the datepicker input.
|
|
9
|
+
* @group Types
|
|
10
|
+
*/
|
|
7
11
|
export type CpsDatepickerAppearanceType = 'outlined' | 'underlined' | 'borderless';
|
|
8
12
|
/**
|
|
9
13
|
* CpsDatepickerComponent is an input component to provide date input.
|
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
import { OnChanges } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare const iconNames: string[];
|
|
4
|
+
/**
|
|
5
|
+
* IconType is used to define the type of the icon.
|
|
6
|
+
* @group Types
|
|
7
|
+
*/
|
|
4
8
|
export type IconType = (typeof iconNames)[number];
|
|
9
|
+
/**
|
|
10
|
+
* iconSizeType is used to define the size of the icon.
|
|
11
|
+
* @group Types
|
|
12
|
+
*/
|
|
5
13
|
export type iconSizeType = number | string | 'fill' | 'xsmall' | 'small' | 'normal' | 'large';
|
|
6
14
|
/**
|
|
7
15
|
* CpsIconComponent is a component that is used for icons.
|
|
@@ -3,6 +3,10 @@ import { ControlValueAccessor, NgControl } from '@angular/forms';
|
|
|
3
3
|
import { IconType, iconSizeType } from '../cps-icon/cps-icon.component';
|
|
4
4
|
import { CpsTooltipPosition } from '../../directives/cps-tooltip/cps-tooltip.directive';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
|
+
/**
|
|
7
|
+
* CpsInputAppearanceType is used to define the border of the input field.
|
|
8
|
+
* @group Types
|
|
9
|
+
*/
|
|
6
10
|
export type CpsInputAppearanceType = 'outlined' | 'underlined' | 'borderless';
|
|
7
11
|
/**
|
|
8
12
|
* CpsInputComponent is used to enter values in a certain formats such as numeric, text or password.
|
|
@@ -6,6 +6,10 @@ import { Subscription } from 'rxjs';
|
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
type Nullable<T = void> = T | null | undefined;
|
|
8
8
|
type VoidListener = () => void | null | undefined;
|
|
9
|
+
/**
|
|
10
|
+
* CpsMenuItem is used to define the items of the CpsMenuComponent.
|
|
11
|
+
* @group Types
|
|
12
|
+
*/
|
|
9
13
|
export type CpsMenuItem = {
|
|
10
14
|
title?: string;
|
|
11
15
|
action?: (event?: any) => void;
|
|
@@ -16,6 +20,10 @@ export type CpsMenuItem = {
|
|
|
16
20
|
disabled?: boolean;
|
|
17
21
|
loading?: boolean;
|
|
18
22
|
};
|
|
23
|
+
/**
|
|
24
|
+
* CpsMenuAttachPosition is used to define attachment position of the CpsMenuComponent.
|
|
25
|
+
* @group Types
|
|
26
|
+
*/
|
|
19
27
|
export type CpsMenuAttachPosition = 'tr' | 'br' | 'tl' | 'bl' | 'default';
|
|
20
28
|
/**
|
|
21
29
|
* CpsMenuComponent is a popup element, that contains menu items or arbitrary content.
|
|
@@ -2,6 +2,10 @@ import { EventEmitter, InjectionToken, OnDestroy, OnInit } from '@angular/core';
|
|
|
2
2
|
import { ControlValueAccessor, NgControl } from '@angular/forms';
|
|
3
3
|
import { CpsTooltipPosition } from '../../directives/cps-tooltip/cps-tooltip.directive';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
+
/**
|
|
6
|
+
* CpsRadioOption is used to define the options of the CpsRadioGroupComponent.
|
|
7
|
+
* @group Types
|
|
8
|
+
*/
|
|
5
9
|
export type CpsRadioOption = {
|
|
6
10
|
value: any;
|
|
7
11
|
label?: string;
|
|
@@ -5,6 +5,10 @@ import { VirtualScroller } from 'primeng/virtualscroller';
|
|
|
5
5
|
import { CpsTooltipPosition } from '../../directives/cps-tooltip/cps-tooltip.directive';
|
|
6
6
|
import { CpsMenuComponent } from '../cps-menu/cps-menu.component';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
|
+
/**
|
|
9
|
+
* CpsSelectAppearanceType is used to define the border of the select input.
|
|
10
|
+
* @group Types
|
|
11
|
+
*/
|
|
8
12
|
export type CpsSelectAppearanceType = 'outlined' | 'underlined' | 'borderless';
|
|
9
13
|
/**
|
|
10
14
|
* CpsSelectComponent is used to select items from a collection.
|
|
@@ -2,6 +2,10 @@ import { OnInit, QueryList } from '@angular/core';
|
|
|
2
2
|
import { Router } from '@angular/router';
|
|
3
3
|
import { CpsMenuComponent, CpsMenuItem } from '../cps-menu/cps-menu.component';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
+
/**
|
|
6
|
+
* CpsSidebarMenuItem is used to define the items of the CpsSidebarMenuComponent.
|
|
7
|
+
* @group Types
|
|
8
|
+
*/
|
|
5
9
|
export type CpsSidebarMenuItem = {
|
|
6
10
|
title: string;
|
|
7
11
|
icon: string;
|
|
@@ -2,11 +2,29 @@ import { AfterContentInit, AfterViewInit, ChangeDetectorRef, ElementRef, EventEm
|
|
|
2
2
|
import { CpsTabComponent } from './cps-tab/cps-tab.component';
|
|
3
3
|
import { Subscription } from 'rxjs';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
+
/**
|
|
6
|
+
* CpsTabChangeEvent is used to define the tab change event.
|
|
7
|
+
* @group Interface
|
|
8
|
+
*/
|
|
5
9
|
export interface CpsTabChangeEvent {
|
|
10
|
+
/**
|
|
11
|
+
* Index of the previous tab.
|
|
12
|
+
*/
|
|
6
13
|
previousIndex: number;
|
|
14
|
+
/**
|
|
15
|
+
* Index of the new tab.
|
|
16
|
+
*/
|
|
7
17
|
newIndex: number;
|
|
8
18
|
}
|
|
19
|
+
/**
|
|
20
|
+
* CpsTabsAnimationType is used to define the transition options of how content appears.
|
|
21
|
+
* @group Types
|
|
22
|
+
*/
|
|
9
23
|
export type CpsTabsAnimationType = 'slide' | 'fade';
|
|
24
|
+
/**
|
|
25
|
+
* CpsTabsAlignmentType is used to define the horizontal alignment of tabs.
|
|
26
|
+
* @group Types
|
|
27
|
+
*/
|
|
10
28
|
export type CpsTabsAlignmentType = 'left' | 'center' | 'right';
|
|
11
29
|
/**
|
|
12
30
|
* CpsTabGroupComponent is a navigation component that displays items as tab headers.
|
|
@@ -20,6 +20,10 @@ export declare enum CpsColumnFilterMatchMode {
|
|
|
20
20
|
DATE_BEFORE = "dateBefore",
|
|
21
21
|
DATE_AFTER = "dateAfter"
|
|
22
22
|
}
|
|
23
|
+
/**
|
|
24
|
+
* CpsColumnFilterCategoryOption is used to define the options of the CpsColumnFilterCategoryComponent.
|
|
25
|
+
* @group Types
|
|
26
|
+
*/
|
|
23
27
|
export type CpsColumnFilterCategoryOption = {
|
|
24
28
|
value: any;
|
|
25
29
|
label?: string;
|
|
@@ -27,4 +31,8 @@ export type CpsColumnFilterCategoryOption = {
|
|
|
27
31
|
disabled?: boolean;
|
|
28
32
|
tooltip?: string;
|
|
29
33
|
};
|
|
34
|
+
/**
|
|
35
|
+
* CpsColumnFilterType is used to define the type of the column filter.
|
|
36
|
+
* @group Types
|
|
37
|
+
*/
|
|
30
38
|
export type CpsColumnFilterType = 'text' | 'number' | 'date' | 'boolean' | 'category';
|
|
@@ -6,9 +6,25 @@ import { CpsMenuComponent, CpsMenuItem } from '../cps-menu/cps-menu.component';
|
|
|
6
6
|
import { TableUnsortDirective } from './directives/internal/table-unsort.directive';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
export declare function tableFactory(tableComponent: CpsTableComponent): Table;
|
|
9
|
+
/**
|
|
10
|
+
* CpsTableExportFormat is used to define the format of the exported file.
|
|
11
|
+
* @group Types
|
|
12
|
+
*/
|
|
9
13
|
export type CpsTableExportFormat = 'csv' | 'xlsx';
|
|
14
|
+
/**
|
|
15
|
+
* CpsTableAppearanceType is used to define the border of the table.
|
|
16
|
+
* @group Types
|
|
17
|
+
*/
|
|
10
18
|
export type CpsTableSize = 'small' | 'normal' | 'large';
|
|
19
|
+
/**
|
|
20
|
+
* CpsTableToolbarSize is used to define the size of the toolbar.
|
|
21
|
+
* @group Types
|
|
22
|
+
*/
|
|
11
23
|
export type CpsTableToolbarSize = 'small' | 'normal';
|
|
24
|
+
/**
|
|
25
|
+
* CpsTableSortMode is used to define the sorting mode of the table.
|
|
26
|
+
* @group Types
|
|
27
|
+
*/
|
|
12
28
|
export type CpsTableSortMode = 'single' | 'multiple';
|
|
13
29
|
/**
|
|
14
30
|
* CpsTableComponent displays data in tabular format.
|
|
@@ -4,6 +4,10 @@ import { CpsButtonToggleOption } from '../cps-button-toggle/cps-button-toggle.co
|
|
|
4
4
|
import { CpsAutocompleteComponent } from '../cps-autocomplete/cps-autocomplete.component';
|
|
5
5
|
import { CpsTooltipPosition } from '../../directives/cps-tooltip/cps-tooltip.directive';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
|
+
/**
|
|
8
|
+
* CpsTime is used to define the time format.
|
|
9
|
+
* @group Interface
|
|
10
|
+
*/
|
|
7
11
|
export interface CpsTime {
|
|
8
12
|
hours: string;
|
|
9
13
|
minutes: string;
|
|
@@ -3,6 +3,10 @@ import { NgControl } from '@angular/forms';
|
|
|
3
3
|
import { TreeNode } from 'primeng/api';
|
|
4
4
|
import { CpsBaseTreeDropdownComponent } from '../internal/cps-base-tree-dropdown/cps-base-tree-dropdown.component';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
|
+
/**
|
|
7
|
+
* CpsTreeAutocompleteAppearanceType is used to define the border of the tree autocomplete input field.
|
|
8
|
+
* @group Types
|
|
9
|
+
*/
|
|
6
10
|
export type CpsTreeAutocompleteAppearanceType = 'outlined' | 'underlined' | 'borderless';
|
|
7
11
|
/**
|
|
8
12
|
* CpsTreeAutocompleteComponent allows to choose items from hierarchical data dropdown and provides real-time suggestions when being typed.
|
|
@@ -2,6 +2,10 @@ import { AfterViewInit, ChangeDetectorRef, OnDestroy, OnInit } from '@angular/co
|
|
|
2
2
|
import { NgControl } from '@angular/forms';
|
|
3
3
|
import { CpsBaseTreeDropdownComponent } from '../internal/cps-base-tree-dropdown/cps-base-tree-dropdown.component';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
+
/**
|
|
6
|
+
* CpsTreeSelectAppearanceType is used to define the border of the tree select input field.
|
|
7
|
+
* @group Types
|
|
8
|
+
*/
|
|
5
9
|
export type CpsTreeSelectAppearanceType = 'outlined' | 'underlined' | 'borderless';
|
|
6
10
|
/**
|
|
7
11
|
* CpsTreeSelectComponent allows to select items from hierarchical data dropdown.
|
|
@@ -5,8 +5,20 @@ import { CpsInputComponent } from '../cps-input/cps-input.component';
|
|
|
5
5
|
import { CpsMenuComponent } from '../cps-menu/cps-menu.component';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare function treeTableFactory(tableComponent: CpsTreeTableComponent): TreeTable;
|
|
8
|
+
/**
|
|
9
|
+
* CpsTreeTableSize is used to define the size of the tree table.
|
|
10
|
+
* @group Types
|
|
11
|
+
*/
|
|
8
12
|
export type CpsTreeTableSize = 'small' | 'normal' | 'large';
|
|
13
|
+
/**
|
|
14
|
+
* CpsTreeTableToolbarSize is used to define the size of the tree table toolbar.
|
|
15
|
+
* @group Types
|
|
16
|
+
*/
|
|
9
17
|
export type CpsTreeTableToolbarSize = 'small' | 'normal';
|
|
18
|
+
/**
|
|
19
|
+
* CpsTreeTableSortMode is used to define the sorting mode of the tree table.
|
|
20
|
+
* @group Types
|
|
21
|
+
*/
|
|
10
22
|
export type CpsTreeTableSortMode = 'single' | 'multiple';
|
|
11
23
|
/**
|
|
12
24
|
* CpsTreeTableComponent is used to display hierarchical data in tabular format.
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
import { ElementRef, OnDestroy } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* CpsTooltipPosition is used to define the position of the tooltip.
|
|
5
|
+
* @group Types
|
|
6
|
+
*/
|
|
3
7
|
export type CpsTooltipPosition = 'top' | 'bottom' | 'left' | 'right';
|
|
8
|
+
/**
|
|
9
|
+
* CpsTooltipOpenOn is used to define the event on which the tooltip should open.
|
|
10
|
+
* @group Types
|
|
11
|
+
*/
|
|
4
12
|
export type CpsTooltipOpenOn = 'hover' | 'click' | 'focus';
|
|
5
13
|
/**
|
|
6
14
|
* CpsTooltipDirective provides advisory information for a target element.
|
|
@@ -19,6 +19,10 @@ export declare enum CpsNotificationPosition {
|
|
|
19
19
|
BOTTOMLEFT = "bottom-left",
|
|
20
20
|
BOTTOMRIGHT = "bottom-right"
|
|
21
21
|
}
|
|
22
|
+
/**
|
|
23
|
+
* Configuration for the notification service.
|
|
24
|
+
* @group Interface
|
|
25
|
+
*/
|
|
22
26
|
export interface CpsNotificationConfig {
|
|
23
27
|
/**
|
|
24
28
|
* Position of the notification, options are "center", "top", "bottom", "left", "right", "top-left", "top-right", "bottom-left" or "bottom-right".
|
|
@@ -7,6 +7,10 @@ export declare enum CpsNotificationType {
|
|
|
7
7
|
WARNING = "warning",
|
|
8
8
|
INFO = "info"
|
|
9
9
|
}
|
|
10
|
+
/**
|
|
11
|
+
* Defines data type for the notification data.
|
|
12
|
+
* @group Interface
|
|
13
|
+
*/
|
|
10
14
|
export interface CpsNotificationData {
|
|
11
15
|
/**
|
|
12
16
|
* Message to be displayed in the notification.
|