@indigina/ui-kit 1.1.88 → 1.1.90

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.
@@ -54,6 +54,10 @@ export declare class KitGridComponent<T> {
54
54
  * Data to display in the footer row
55
55
  */
56
56
  footerData?: Partial<Record<keyof T, T[keyof T]>>;
57
+ /**
58
+ * Method to add additional logic to the row class
59
+ */
60
+ addRowClass?: (context?: RowClassArgs) => Record<string, boolean>;
57
61
  /**
58
62
  * An action which is emitted when the page of the grid is changed
59
63
  */
@@ -95,5 +99,5 @@ export declare class KitGridComponent<T> {
95
99
  getPagerSettings(): boolean | PagerSettings;
96
100
  private collapseAllRows;
97
101
  static ɵfac: i0.ɵɵFactoryDeclaration<KitGridComponent<any>, never>;
98
- static ɵcmp: i0.ɵɵComponentDeclaration<KitGridComponent<any>, "kit-grid", never, { "data": { "alias": "data"; "required": false; }; "gridDataBinding": { "alias": "gridDataBinding"; "required": false; }; "sortable": { "alias": "sortable"; "required": false; }; "sort": { "alias": "sort"; "required": false; }; "pageable": { "alias": "pageable"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "skip": { "alias": "skip"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "detailTemplateShowIf": { "alias": "detailTemplateShowIf"; "required": false; }; "showFooter": { "alias": "showFooter"; "required": false; }; "footerTitle": { "alias": "footerTitle"; "required": false; }; "footerData": { "alias": "footerData"; "required": false; }; }, { "pageChanged": "pageChanged"; "sortChanged": "sortChanged"; "dataStateChanged": "dataStateChanged"; "detailExpanded": "detailExpanded"; "detailCollapsed": "detailCollapsed"; "cellClicked": "cellClicked"; }, ["columns", "kitGridDetailTemplate"], never, false, never>;
102
+ static ɵcmp: i0.ɵɵComponentDeclaration<KitGridComponent<any>, "kit-grid", never, { "data": { "alias": "data"; "required": false; }; "gridDataBinding": { "alias": "gridDataBinding"; "required": false; }; "sortable": { "alias": "sortable"; "required": false; }; "sort": { "alias": "sort"; "required": false; }; "pageable": { "alias": "pageable"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "skip": { "alias": "skip"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "detailTemplateShowIf": { "alias": "detailTemplateShowIf"; "required": false; }; "showFooter": { "alias": "showFooter"; "required": false; }; "footerTitle": { "alias": "footerTitle"; "required": false; }; "footerData": { "alias": "footerData"; "required": false; }; "addRowClass": { "alias": "addRowClass"; "required": false; }; }, { "pageChanged": "pageChanged"; "sortChanged": "sortChanged"; "dataStateChanged": "dataStateChanged"; "detailExpanded": "detailExpanded"; "detailCollapsed": "detailCollapsed"; "cellClicked": "cellClicked"; }, ["columns", "kitGridDetailTemplate"], never, false, never>;
99
103
  }
@@ -0,0 +1,24 @@
1
+ import { Signal, TemplateRef } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class KitSortableComponent<T> {
4
+ /**
5
+ * An items list which is going to be rendered as sortable items
6
+ */
7
+ items: T[];
8
+ /**
9
+ * Defines the number of columns of the component
10
+ */
11
+ columnCount?: number;
12
+ /**
13
+ * Defines the css class which is applied to each item
14
+ */
15
+ itemClass?: string;
16
+ /**
17
+ * Defines the css class which is applied to the active item.
18
+ */
19
+ activeItemClass?: string;
20
+ readonly itemTemplate: Signal<TemplateRef<HTMLElement> | undefined>;
21
+ get columnsCount(): number | null;
22
+ static ɵfac: i0.ɵɵFactoryDeclaration<KitSortableComponent<any>, never>;
23
+ static ɵcmp: i0.ɵɵComponentDeclaration<KitSortableComponent<any>, "kit-sortable", never, { "items": { "alias": "items"; "required": false; }; "columnCount": { "alias": "columnCount"; "required": false; }; "itemClass": { "alias": "itemClass"; "required": false; }; "activeItemClass": { "alias": "activeItemClass"; "required": false; }; }, {}, ["itemTemplate"], never, true, never>;
24
+ }
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "components",
8
8
  "shared"
9
9
  ],
10
- "version": "1.1.88",
10
+ "version": "1.1.90",
11
11
  "peerDependencies": {
12
12
  "@angular/common": "^18.2.6",
13
13
  "@angular/core": "^18.2.6"
@@ -30,6 +30,7 @@
30
30
  "@progress/kendo-angular-navigation": "16.10.0",
31
31
  "@progress/kendo-angular-popup": "16.10.0",
32
32
  "@progress/kendo-angular-progressbar": "16.10.0",
33
+ "@progress/kendo-angular-sortable": "16.10.0",
33
34
  "@progress/kendo-angular-tooltip": "16.10.0",
34
35
  "@progress/kendo-angular-treeview": "16.10.0",
35
36
  "@progress/kendo-angular-upload": "16.10.0",
package/public-api.d.ts CHANGED
@@ -154,3 +154,4 @@ export { KitDataFieldComponent } from './lib/components/kit-data-field/kit-data-
154
154
  export { KitSearchBarModule } from './lib/components/kit-search-bar/kit-search-bar.module';
155
155
  export { KitSearchBarComponent } from './lib/components/kit-search-bar/kit-search-bar.component';
156
156
  export { KitEmptySectionComponent } from './lib/components/kit-empty-section/kit-empty-section.component';
157
+ export { KitSortableComponent } from './lib/components/kit-sortable/kit-sortable.component';
@@ -29,6 +29,7 @@
29
29
  --ui-kit-color-grey-14: #565963;
30
30
  --ui-kit-color-grey-15: #f0f0f0;
31
31
  --ui-kit-color-grey-16: #ececf8;
32
+ --ui-kit-color-grey-17: #878787;
32
33
 
33
34
  --ui-kit-color-green: #00b0ad;
34
35
  --ui-kit-color-green-1: #39c237;