@indigina/ui-kit 1.1.93 → 1.1.95
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/kit-breadcrumbs/kit-breadcrumbs.component.mjs +3 -3
- package/esm2022/lib/components/kit-cta-panel-confirmation/kit-cta-panel-confirmation.component.mjs +1 -1
- package/esm2022/lib/components/kit-dropdown/kit-dropdown.component.mjs +10 -7
- package/esm2022/lib/components/kit-dropdown/kit-dropdown.const.mjs +8 -0
- package/esm2022/lib/components/kit-grid/kit-grid.component.mjs +9 -9
- package/esm2022/lib/components/kit-grid/kit-grid.const.mjs +1 -6
- package/esm2022/lib/components/kit-grid/kit-grid.model.mjs +1 -1
- package/esm2022/lib/components/kit-popup/kit-popup.component.mjs +3 -6
- package/esm2022/lib/components/kit-profile-menu/kit-profile-menu.component.mjs +3 -3
- package/esm2022/lib/components/kit-textbox/kit-textbox.component.mjs +2 -2
- package/esm2022/lib/components/kit-timeline/kit-timeline-card/kit-timeline-card.component.mjs +3 -3
- package/esm2022/lib/components/kit-timeline/kit-timeline.component.mjs +3 -3
- package/esm2022/lib/utils/kit-data-query/kit-data-query.const.mjs +28 -0
- package/esm2022/lib/utils/kit-data-query/kit-data-query.model.mjs +2 -0
- package/esm2022/lib/utils/kit-data-query/kit-data-query.util.mjs +3 -0
- package/esm2022/public-api.mjs +6 -2
- package/fesm2022/indigina-ui-kit.mjs +71 -38
- package/fesm2022/indigina-ui-kit.mjs.map +1 -1
- package/lib/components/kit-dropdown/kit-dropdown.component.d.ts +7 -2
- package/lib/components/kit-dropdown/kit-dropdown.const.d.ts +6 -0
- package/lib/components/kit-grid/kit-grid.component.d.ts +11 -10
- package/lib/components/kit-grid/kit-grid.const.d.ts +0 -4
- package/lib/components/kit-grid/kit-grid.model.d.ts +6 -8
- package/lib/components/kit-popup/kit-popup.component.d.ts +1 -1
- package/lib/utils/kit-data-query/kit-data-query.const.d.ts +24 -0
- package/lib/utils/kit-data-query/kit-data-query.model.d.ts +14 -0
- package/lib/utils/kit-data-query/kit-data-query.util.d.ts +2 -0
- package/package.json +1 -1
- package/public-api.d.ts +6 -2
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { ChangeDetectorRef, EventEmitter, Predicate, TemplateRef, WritableSignal } from '@angular/core';
|
|
1
|
+
import { ChangeDetectorRef, EventEmitter, InputSignal, Predicate, TemplateRef, WritableSignal } from '@angular/core';
|
|
2
2
|
import { DropDownListComponent, ItemArgs, ItemDisabledFn, PopupSettings } from '@progress/kendo-angular-dropdowns';
|
|
3
3
|
import { KitSvgIcon } from '../kit-svg-icon/kit-svg-icon.const';
|
|
4
4
|
import { ControlValueAccessor } from '@angular/forms';
|
|
5
|
+
import { KitDropdownSize } from './kit-dropdown.const';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
export interface KitDropdownItemDisabledFnArgs<T> extends ItemArgs {
|
|
7
8
|
dataItem: KitDropdownItem<T>;
|
|
@@ -59,6 +60,10 @@ export declare class KitDropdownComponent<T> implements ControlValueAccessor {
|
|
|
59
60
|
* Defines the icon which going to be the icon for the dropdown toggle button
|
|
60
61
|
*/
|
|
61
62
|
toggleIcon: KitSvgIcon;
|
|
63
|
+
/**
|
|
64
|
+
* Defines the size of the dropdown
|
|
65
|
+
*/
|
|
66
|
+
readonly size: InputSignal<KitDropdownSize>;
|
|
62
67
|
/**
|
|
63
68
|
* occurs once an item in the dropdown is selected
|
|
64
69
|
*/
|
|
@@ -101,5 +106,5 @@ export declare class KitDropdownComponent<T> implements ControlValueAccessor {
|
|
|
101
106
|
onClose(): void;
|
|
102
107
|
getCssClasses(): Record<string, boolean>;
|
|
103
108
|
static ɵfac: i0.ɵɵFactoryDeclaration<KitDropdownComponent<any>, never>;
|
|
104
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KitDropdownComponent<any>, "kit-dropdown", never, { "items": { "alias": "items"; "required": false; }; "selectedItem": { "alias": "selectedItem"; "required": false; }; "label": { "alias": "label"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "messageIcon": { "alias": "messageIcon"; "required": false; }; "messageText": { "alias": "messageText"; "required": false; }; "invalid": { "alias": "invalid"; "required": false; }; "defaultItem": { "alias": "defaultItem"; "required": false; }; "listHeight": { "alias": "listHeight"; "required": false; }; "hideDefaultItem": { "alias": "hideDefaultItem"; "required": false; }; "toggleIcon": { "alias": "toggleIcon"; "required": false; }; }, { "selected": "selected"; }, ["kitDropdownValueTemplate", "kitDropdownItemTemplate"], never, false, never>;
|
|
109
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KitDropdownComponent<any>, "kit-dropdown", never, { "items": { "alias": "items"; "required": false; }; "selectedItem": { "alias": "selectedItem"; "required": false; }; "label": { "alias": "label"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "messageIcon": { "alias": "messageIcon"; "required": false; }; "messageText": { "alias": "messageText"; "required": false; }; "invalid": { "alias": "invalid"; "required": false; }; "defaultItem": { "alias": "defaultItem"; "required": false; }; "listHeight": { "alias": "listHeight"; "required": false; }; "hideDefaultItem": { "alias": "hideDefaultItem"; "required": false; }; "toggleIcon": { "alias": "toggleIcon"; "required": false; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; }, { "selected": "selected"; }, ["kitDropdownValueTemplate", "kitDropdownItemTemplate"], never, false, never>;
|
|
105
110
|
}
|
|
@@ -2,14 +2,15 @@ import { EventEmitter, Signal, TemplateRef } from '@angular/core';
|
|
|
2
2
|
import { KitGridColumnComponent } from './kit-grid-column/kit-grid-column.component';
|
|
3
3
|
import { PagerSettings, RowClassArgs } from '@progress/kendo-angular-grid';
|
|
4
4
|
import { KitSvgIcon } from '../kit-svg-icon/kit-svg-icon.const';
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { KitGridCellClickEvent, KitGridDataStateChangeEvent, KitGridDetailCollapseEvent, KitGridDetailExpandEvent, KitGridPageChangeEvent, KitGridSortSettings } from './kit-grid.model';
|
|
6
|
+
import { KitDataResult, KitSortDescriptor } from '../../utils/kit-data-query/kit-data-query.model';
|
|
7
|
+
import { KitSortDirection } from '../../utils/kit-data-query/kit-data-query.const';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
9
|
export declare class KitGridComponent<T> {
|
|
9
10
|
/**
|
|
10
11
|
* Sets the data of the grid. Allows user to implement data operations manually
|
|
11
12
|
*/
|
|
12
|
-
data?: T[] |
|
|
13
|
+
data?: T[] | KitDataResult<T>;
|
|
13
14
|
/**
|
|
14
15
|
* Sets the data of the grid. Allows user to implement data operations automatically
|
|
15
16
|
*/
|
|
@@ -21,7 +22,7 @@ export declare class KitGridComponent<T> {
|
|
|
21
22
|
/**
|
|
22
23
|
* The descriptors by which the data will be sorted
|
|
23
24
|
*/
|
|
24
|
-
sort:
|
|
25
|
+
sort: KitSortDescriptor[];
|
|
25
26
|
/**
|
|
26
27
|
* Enables the pager of the grid
|
|
27
28
|
*/
|
|
@@ -43,8 +44,8 @@ export declare class KitGridComponent<T> {
|
|
|
43
44
|
*/
|
|
44
45
|
detailTemplateShowIf: (dataItem: T) => boolean;
|
|
45
46
|
/**
|
|
46
|
-
|
|
47
|
-
|
|
47
|
+
* Function to determine if the caret of detail template should be disabled
|
|
48
|
+
*/
|
|
48
49
|
detailTemplateExpandDisableIf: (dataItem: T) => boolean;
|
|
49
50
|
/**
|
|
50
51
|
* Flag to show or hide the footer row
|
|
@@ -65,7 +66,7 @@ export declare class KitGridComponent<T> {
|
|
|
65
66
|
/**
|
|
66
67
|
* An action which is emitted once the sorting of the grid is changed
|
|
67
68
|
*/
|
|
68
|
-
sortChanged: EventEmitter<
|
|
69
|
+
sortChanged: EventEmitter<KitSortDescriptor[]>;
|
|
69
70
|
/**
|
|
70
71
|
* An action which is emitted when the data state of the grid is changed
|
|
71
72
|
*/
|
|
@@ -84,11 +85,11 @@ export declare class KitGridComponent<T> {
|
|
|
84
85
|
cellClicked: EventEmitter<KitGridCellClickEvent>;
|
|
85
86
|
kitGridDetailTemplate: TemplateRef<HTMLElement> | null;
|
|
86
87
|
readonly columns: Signal<readonly KitGridColumnComponent[]>;
|
|
87
|
-
readonly
|
|
88
|
-
readonly
|
|
88
|
+
readonly kitSvgIcon: typeof KitSvgIcon;
|
|
89
|
+
readonly kitSortDirection: typeof KitSortDirection;
|
|
89
90
|
expandedRows: T[];
|
|
90
91
|
onDataStateChange(event: KitGridDataStateChangeEvent): void;
|
|
91
|
-
onSortChange(event:
|
|
92
|
+
onSortChange(event: KitSortDescriptor[]): void;
|
|
92
93
|
getSortingDirection(columnField: string): string | null;
|
|
93
94
|
isColumnSortable(column: KitGridColumnComponent): boolean;
|
|
94
95
|
onDetailExpand(event: KitGridDetailExpandEvent): void;
|
|
@@ -1,16 +1,14 @@
|
|
|
1
|
-
import { CellClickEvent,
|
|
2
|
-
import { SortDescriptor, State } from '@progress/kendo-data-query';
|
|
1
|
+
import { CellClickEvent, DetailCollapseEvent, DetailExpandEvent, PageChangeEvent } from '@progress/kendo-angular-grid';
|
|
3
2
|
import { KitGridSortSettingsMode } from './kit-grid.const';
|
|
3
|
+
import { KitSortDescriptor } from '../../utils/kit-data-query/kit-data-query.model';
|
|
4
4
|
export interface KitGridSortSettings {
|
|
5
5
|
mode: KitGridSortSettingsMode;
|
|
6
6
|
}
|
|
7
|
-
export interface
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
export interface KitGridDataStateChangeEvent {
|
|
8
|
+
skip: number;
|
|
9
|
+
take: number;
|
|
10
|
+
sort?: KitSortDescriptor[];
|
|
10
11
|
}
|
|
11
|
-
export type KitGridDataState = State;
|
|
12
|
-
export type KitGridSortDescriptor = SortDescriptor;
|
|
13
|
-
export type KitGridDataStateChangeEvent = DataStateChangeEvent;
|
|
14
12
|
export type KitGridPageChangeEvent = PageChangeEvent;
|
|
15
13
|
export type KitGridDetailExpandEvent = DetailExpandEvent;
|
|
16
14
|
export type KitGridDetailCollapseEvent = DetailCollapseEvent;
|
|
@@ -6,7 +6,7 @@ export declare class KitPopupComponent implements OnInit {
|
|
|
6
6
|
/**
|
|
7
7
|
* Specifies the element that will be used as an anchor. The Popup opens next to that element
|
|
8
8
|
*/
|
|
9
|
-
anchor
|
|
9
|
+
anchor?: ElementRef | HTMLElement | null;
|
|
10
10
|
/**
|
|
11
11
|
* Defines whether to close popup when the user clicks outside its boundaries
|
|
12
12
|
*/
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export declare enum KitSortDirection {
|
|
2
|
+
ASC = "asc",
|
|
3
|
+
DESC = "desc"
|
|
4
|
+
}
|
|
5
|
+
export declare enum KitFilterLogic {
|
|
6
|
+
AND = "and",
|
|
7
|
+
OR = "or"
|
|
8
|
+
}
|
|
9
|
+
export declare enum KitFilterOperator {
|
|
10
|
+
EQ = "eq",
|
|
11
|
+
NEQ = "neq",
|
|
12
|
+
IS_NULL = "isnull",
|
|
13
|
+
IS_NOT_NULL = "isnotnull",
|
|
14
|
+
LT = "lt",
|
|
15
|
+
LTE = "lte",
|
|
16
|
+
GT = "gt",
|
|
17
|
+
GTE = "gte",
|
|
18
|
+
STARTS_WITH = "startswith",
|
|
19
|
+
ENDS_WITH = "endswith",
|
|
20
|
+
CONTAINS = "contains",
|
|
21
|
+
DOES_NOT_CONTAIN = "doesnotcontain",
|
|
22
|
+
IS_EMPTY = "isempty",
|
|
23
|
+
IS_NOT_EMPTY = "isnotempty"
|
|
24
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FilterDescriptor, SortDescriptor, CompositeFilterDescriptor } from '@progress/kendo-data-query';
|
|
2
|
+
export interface KitDataResult<T> {
|
|
3
|
+
data: T[];
|
|
4
|
+
total: number;
|
|
5
|
+
}
|
|
6
|
+
export interface KitDataState {
|
|
7
|
+
skip?: number;
|
|
8
|
+
take?: number;
|
|
9
|
+
sort?: KitSortDescriptor[];
|
|
10
|
+
filter?: KitCompositeFilterDescriptor;
|
|
11
|
+
}
|
|
12
|
+
export type KitCompositeFilterDescriptor = CompositeFilterDescriptor;
|
|
13
|
+
export type KitFilterDescriptor = FilterDescriptor;
|
|
14
|
+
export type KitSortDescriptor = SortDescriptor;
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ export { KitInputMessageComponent } from './lib/components/kit-input-message/kit
|
|
|
21
21
|
export { KitInputMessageModule } from './lib/components/kit-input-message/kit-input-message.module';
|
|
22
22
|
export { KitDropdownComponent, KitDropdownItem } from './lib/components/kit-dropdown/kit-dropdown.component';
|
|
23
23
|
export { KitDropdownModule } from './lib/components/kit-dropdown/kit-dropdown.module';
|
|
24
|
+
export { KitDropdownSize } from './lib/components/kit-dropdown/kit-dropdown.const';
|
|
24
25
|
export { KitTextareaComponent } from './lib/components/kit-textarea/kit-textarea.component';
|
|
25
26
|
export { KitTextareaModule } from './lib/components/kit-textarea/kit-textarea.module';
|
|
26
27
|
export { KitTextareaState } from './lib/components/kit-textarea/kit-textarea.const';
|
|
@@ -124,8 +125,8 @@ export { KitBreadcrumbsComponent } from './lib/components/kit-breadcrumbs/kit-br
|
|
|
124
125
|
export { KitBreadcrumbsItem } from './lib/components/kit-breadcrumbs/kit-breadcrumbs.model';
|
|
125
126
|
export { KitGridModule } from './lib/components/kit-grid/kit-grid.module';
|
|
126
127
|
export { KitGridComponent } from './lib/components/kit-grid/kit-grid.component';
|
|
127
|
-
export {
|
|
128
|
-
export {
|
|
128
|
+
export { KitGridDataStateChangeEvent, KitGridPageChangeEvent, KitGridDetailExpandEvent, KitGridDetailCollapseEvent, KitGridSortSettings, KitGridCellClickEvent, } from './lib/components/kit-grid/kit-grid.model';
|
|
129
|
+
export { KitGridSortSettingsMode } from './lib/components/kit-grid/kit-grid.const';
|
|
129
130
|
export { KitGridColumnComponent } from './lib/components/kit-grid/kit-grid-column/kit-grid-column.component';
|
|
130
131
|
export { KitGridCellTemplateDirective } from './lib/components/kit-grid/kit-grid-cell-template.directive';
|
|
131
132
|
export { KitGridDetailTemplateDirective } from './lib/components/kit-grid/kit-grid-detail-template.directive';
|
|
@@ -152,3 +153,6 @@ export { KitSearchBarModule } from './lib/components/kit-search-bar/kit-search-b
|
|
|
152
153
|
export { KitSearchBarComponent } from './lib/components/kit-search-bar/kit-search-bar.component';
|
|
153
154
|
export { KitEmptySectionComponent } from './lib/components/kit-empty-section/kit-empty-section.component';
|
|
154
155
|
export { KitSortableComponent } from './lib/components/kit-sortable/kit-sortable.component';
|
|
156
|
+
export { kitDataStateToODataString } from './lib/utils/kit-data-query/kit-data-query.util';
|
|
157
|
+
export { KitSortDescriptor, KitDataResult, KitDataState, KitFilterDescriptor, KitCompositeFilterDescriptor, } from './lib/utils/kit-data-query/kit-data-query.model';
|
|
158
|
+
export { KitFilterOperator, KitFilterLogic, KitSortDirection } from './lib/utils/kit-data-query/kit-data-query.const';
|