asksuite-citrus 0.18.2 → 0.19.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/asksuite-citrus.module.mjs +9 -4
- package/esm2022/lib/components/table/table.component.mjs +41 -0
- package/esm2022/public-api.mjs +2 -1
- package/fesm2022/asksuite-citrus.mjs +45 -4
- package/fesm2022/asksuite-citrus.mjs.map +1 -1
- package/lib/asksuite-citrus.module.d.ts +8 -7
- package/lib/components/table/table.component.d.ts +29 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
@@ -27,14 +27,15 @@ import * as i25 from "./components/modal/directives/modal-footer.directive";
|
|
27
27
|
import * as i26 from "./components/character-counter/character-counter.component";
|
28
28
|
import * as i27 from "./components/accordion/accordion.component";
|
29
29
|
import * as i28 from "./components/accordion/extendable-panel/extendable-panel.component";
|
30
|
-
import * as i29 from "
|
31
|
-
import * as i30 from "@angular/
|
32
|
-
import * as i31 from "@angular/
|
33
|
-
import * as i32 from "@
|
34
|
-
import * as i33 from "ngx-
|
35
|
-
import * as i34 from "
|
30
|
+
import * as i29 from "./components/table/table.component";
|
31
|
+
import * as i30 from "@angular/common";
|
32
|
+
import * as i31 from "@angular/forms";
|
33
|
+
import * as i32 from "@angular/cdk/overlay";
|
34
|
+
import * as i33 from "@ngx-translate/core";
|
35
|
+
import * as i34 from "ngx-skeleton-loader";
|
36
|
+
import * as i35 from "@angular/material/tooltip";
|
36
37
|
export declare class AsksuiteCitrusModule {
|
37
38
|
static ɵfac: i0.ɵɵFactoryDeclaration<AsksuiteCitrusModule, never>;
|
38
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AsksuiteCitrusModule, [typeof i1.ButtonComponent, typeof i2.InputComponent, typeof i3.SelectComponent, typeof i4.BoxComponent, typeof i5.AvatarComponent, typeof i6.DropdownContainerComponent, typeof i7.AskDropdownDirective, typeof i8.AutocompleteComponent, typeof i9.ChipsComponent, typeof i10.CheckboxComponent, typeof i11.DatePickerComponent, typeof i12.DatePickerCalendarComponent, typeof i13.SkeletonComponent, typeof i14.SpinnerComponent, typeof i15.SpinnerDirective, typeof i16.BadgeDirective, typeof i17.AutofocusDirective, typeof i18.ScrollDirective, typeof i19.AskTooltipDirective, typeof i20.ToastComponent, typeof i21.AskButtonDirective, typeof i22.ModalComponent, typeof i23.ModalBodyDirective, typeof i24.ModalHeaderDirective, typeof i25.ModalFooterDirective, typeof i26.CharacterCounterComponent, typeof i27.AccordionComponent, typeof i28.ExtendablePanelComponent], [typeof
|
39
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AsksuiteCitrusModule, [typeof i1.ButtonComponent, typeof i2.InputComponent, typeof i3.SelectComponent, typeof i4.BoxComponent, typeof i5.AvatarComponent, typeof i6.DropdownContainerComponent, typeof i7.AskDropdownDirective, typeof i8.AutocompleteComponent, typeof i9.ChipsComponent, typeof i10.CheckboxComponent, typeof i11.DatePickerComponent, typeof i12.DatePickerCalendarComponent, typeof i13.SkeletonComponent, typeof i14.SpinnerComponent, typeof i15.SpinnerDirective, typeof i16.BadgeDirective, typeof i17.AutofocusDirective, typeof i18.ScrollDirective, typeof i19.AskTooltipDirective, typeof i20.ToastComponent, typeof i21.AskButtonDirective, typeof i22.ModalComponent, typeof i23.ModalBodyDirective, typeof i24.ModalHeaderDirective, typeof i25.ModalFooterDirective, typeof i26.CharacterCounterComponent, typeof i27.AccordionComponent, typeof i28.ExtendablePanelComponent, typeof i29.TableComponent], [typeof i30.CommonModule, typeof i31.FormsModule, typeof i31.ReactiveFormsModule, typeof i32.CdkOverlayOrigin, typeof i32.CdkConnectedOverlay, typeof i32.OverlayModule, typeof i33.TranslateModule, typeof i34.NgxSkeletonLoaderModule, typeof i35.MatTooltipModule], [typeof i1.ButtonComponent, typeof i2.InputComponent, typeof i3.SelectComponent, typeof i4.BoxComponent, typeof i5.AvatarComponent, typeof i6.DropdownContainerComponent, typeof i7.AskDropdownDirective, typeof i8.AutocompleteComponent, typeof i9.ChipsComponent, typeof i10.CheckboxComponent, typeof i11.DatePickerComponent, typeof i12.DatePickerCalendarComponent, typeof i13.SkeletonComponent, typeof i15.SpinnerDirective, typeof i16.BadgeDirective, typeof i17.AutofocusDirective, typeof i18.ScrollDirective, typeof i19.AskTooltipDirective, typeof i21.AskButtonDirective, typeof i23.ModalBodyDirective, typeof i24.ModalHeaderDirective, typeof i25.ModalFooterDirective, typeof i26.CharacterCounterComponent, typeof i27.AccordionComponent, typeof i28.ExtendablePanelComponent, typeof i29.TableComponent]>;
|
39
40
|
static ɵinj: i0.ɵɵInjectorDeclaration<AsksuiteCitrusModule>;
|
40
41
|
}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
2
|
+
import * as i0 from "@angular/core";
|
3
|
+
export type ColumnConfig = {
|
4
|
+
title: string;
|
5
|
+
sortable: boolean;
|
6
|
+
propName: string;
|
7
|
+
justify: 'left' | 'right' | 'center';
|
8
|
+
sort?: 'asc' | 'desc';
|
9
|
+
};
|
10
|
+
export type PaginationConfig = {
|
11
|
+
itemsPerPage: number;
|
12
|
+
totalItems: number;
|
13
|
+
currentPage: number;
|
14
|
+
totalPages: number;
|
15
|
+
};
|
16
|
+
export type TableConfig = {
|
17
|
+
columnConfig: ColumnConfig[];
|
18
|
+
paginationConfig?: PaginationConfig;
|
19
|
+
hasTotalizer?: boolean;
|
20
|
+
};
|
21
|
+
export declare class TableComponent {
|
22
|
+
tableConfig: TableConfig;
|
23
|
+
data: any[];
|
24
|
+
sort: EventEmitter<any>;
|
25
|
+
onPageChange(): void;
|
26
|
+
onSort(column: ColumnConfig): void;
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TableComponent, never>;
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent, "ask-table", never, { "tableConfig": { "alias": "tableConfig"; "required": false; }; "data": { "alias": "data"; "required": false; }; }, { "sort": "sort"; }, never, ["[ask-table-body]", "[ask-table-totalizer]"], false, never>;
|
29
|
+
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
@@ -14,6 +14,7 @@ export * from './lib/components/skeleton/skeleton.component';
|
|
14
14
|
export * from './lib/components/character-counter/character-counter.component';
|
15
15
|
export * from './lib/components/accordion/accordion.component';
|
16
16
|
export * from './lib/components/accordion/extendable-panel/extendable-panel.component';
|
17
|
+
export * from './lib/components/table/table.component';
|
17
18
|
export * from './lib/directives';
|
18
19
|
export * from './lib/components/modal/directives';
|
19
20
|
export * from './lib/services/toast/toast.service';
|