@acorex/components 17.0.23 → 17.0.24
Sign up to get free protection for your applications and to get access to all the features.
- package/common/index.d.ts +1 -0
- package/common/lib/directives/inverted-color.directive.d.ts +11 -0
- package/data-pager/lib/data-pager.module.d.ts +2 -1
- package/data-table/lib/columns/data-table-column.d.ts +1 -0
- package/data-table/lib/columns/data-text-column.component.d.ts +4 -1
- package/data-table/lib/columns/row-command-column.component.d.ts +8 -2
- package/data-table/lib/columns/row-index-column.component.d.ts +4 -1
- package/data-table/lib/columns/row-select-column.component.d.ts +2 -0
- package/data-table/lib/data-table/data-table.component.d.ts +4 -1
- package/esm2022/common/index.mjs +2 -1
- package/esm2022/common/lib/directives/inverted-color.directive.mjs +50 -0
- package/esm2022/data-pager/lib/data-pager-numeric-selector.component.mjs +37 -28
- package/esm2022/data-pager/lib/data-pager.component.mjs +2 -2
- package/esm2022/data-pager/lib/data-pager.module.mjs +6 -3
- package/esm2022/data-table/lib/columns/data-table-column.mjs +1 -1
- package/esm2022/data-table/lib/columns/data-text-column.component.mjs +13 -3
- package/esm2022/data-table/lib/columns/row-command-column.component.mjs +34 -10
- package/esm2022/data-table/lib/columns/row-index-column.component.mjs +15 -5
- package/esm2022/data-table/lib/columns/row-select-column.component.mjs +12 -4
- package/esm2022/data-table/lib/data-table/data-table.component.mjs +13 -4
- package/fesm2022/acorex-components-common.mjs +50 -2
- package/fesm2022/acorex-components-common.mjs.map +1 -1
- package/fesm2022/acorex-components-data-pager.mjs +42 -30
- package/fesm2022/acorex-components-data-pager.mjs.map +1 -1
- package/fesm2022/acorex-components-data-table.mjs +82 -21
- package/fesm2022/acorex-components-data-table.mjs.map +1 -1
- package/package.json +7 -7
package/common/index.d.ts
CHANGED
@@ -22,6 +22,7 @@ export * from './lib/directives/auto-focus.directive';
|
|
22
22
|
export * from './lib/directives/delayed-value-changed.directive';
|
23
23
|
export * from './lib/directives/hotkey.directive';
|
24
24
|
export * from './lib/directives/infinite-scroll.directive';
|
25
|
+
export * from './lib/directives/inverted-color.directive';
|
25
26
|
export * from './lib/directives/responsive.directive';
|
26
27
|
export * from './lib/directives/ripple.directive';
|
27
28
|
export * from './lib/services/dom.service';
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { ViewContainerRef } from '@angular/core';
|
2
|
+
import { AXStyleColorType } from '../classes/styles.class';
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
export declare class AXInvertedColorDirective {
|
5
|
+
color: import("@angular/core").InputSignal<AXStyleColorType>;
|
6
|
+
ref: ViewContainerRef;
|
7
|
+
constructor();
|
8
|
+
protected invertColor(): void;
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXInvertedColorDirective, never>;
|
10
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AXInvertedColorDirective, "[axInvertedColor]", never, { "color": { "alias": "color"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
11
|
+
}
|
@@ -14,8 +14,9 @@ import * as i12 from "@acorex/components/number-box";
|
|
14
14
|
import * as i13 from "@acorex/components/dropdown";
|
15
15
|
import * as i14 from "@acorex/components/decorators";
|
16
16
|
import * as i15 from "@acorex/core/translation";
|
17
|
+
import * as i16 from "@acorex/components/skeleton";
|
17
18
|
export declare class AXDataPagerModule {
|
18
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXDataPagerModule, never>;
|
19
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AXDataPagerModule, [typeof i1.AXDataPagerComponent, typeof i2.AXDataPagerNextButtonsComponent, typeof i3.AXDataPagerPrevButtonsComponent, typeof i4.AXDataPagerPageSizesComponent, typeof i5.AXDataPagerNumericSelectorComponent, typeof i6.AXDataPagerInputSelectorComponent, typeof i7.AXDataPagerInfoComponent], [typeof i8.CommonModule, typeof i9.FormsModule, typeof i10.AXButtonModule, typeof i11.AXButtonGroupModule, typeof i12.AXNumberBoxModule, typeof i13.AXDropdownModule, typeof i14.AXDecoratorModule, typeof i15.AXTranslationModule], [typeof i1.AXDataPagerComponent, typeof i2.AXDataPagerNextButtonsComponent, typeof i3.AXDataPagerPrevButtonsComponent, typeof i4.AXDataPagerPageSizesComponent, typeof i5.AXDataPagerNumericSelectorComponent, typeof i6.AXDataPagerInputSelectorComponent, typeof i7.AXDataPagerInfoComponent]>;
|
20
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AXDataPagerModule, [typeof i1.AXDataPagerComponent, typeof i2.AXDataPagerNextButtonsComponent, typeof i3.AXDataPagerPrevButtonsComponent, typeof i4.AXDataPagerPageSizesComponent, typeof i5.AXDataPagerNumericSelectorComponent, typeof i6.AXDataPagerInputSelectorComponent, typeof i7.AXDataPagerInfoComponent], [typeof i8.CommonModule, typeof i9.FormsModule, typeof i10.AXButtonModule, typeof i11.AXButtonGroupModule, typeof i12.AXNumberBoxModule, typeof i13.AXDropdownModule, typeof i14.AXDecoratorModule, typeof i15.AXTranslationModule, typeof i16.AXSkeletonModule], [typeof i1.AXDataPagerComponent, typeof i2.AXDataPagerNextButtonsComponent, typeof i3.AXDataPagerPrevButtonsComponent, typeof i4.AXDataPagerPageSizesComponent, typeof i5.AXDataPagerNumericSelectorComponent, typeof i6.AXDataPagerInputSelectorComponent, typeof i7.AXDataPagerInfoComponent]>;
|
20
21
|
static ɵinj: i0.ɵɵInjectorDeclaration<AXDataPagerModule>;
|
21
22
|
}
|
@@ -11,6 +11,7 @@ export declare abstract class AXDataTableColumnComponent {
|
|
11
11
|
sortOrder: AXSortOrder | undefined;
|
12
12
|
abstract get renderCellTemplate(): TemplateRef<unknown>;
|
13
13
|
abstract get renderHeaderTemplate(): TemplateRef<unknown>;
|
14
|
+
abstract get renderFooterTemplate(): TemplateRef<unknown>;
|
14
15
|
abstract get loadingEnabled(): boolean;
|
15
16
|
abstract get name(): string;
|
16
17
|
get cssClass(): string | undefined;
|
@@ -8,6 +8,9 @@ export declare class AXDataTableTextColumnComponent extends AXDataTableColumnCom
|
|
8
8
|
cellTemplate: TemplateRef<unknown>;
|
9
9
|
private _contentCellTemplate;
|
10
10
|
get renderCellTemplate(): TemplateRef<unknown>;
|
11
|
+
footerTemplate: TemplateRef<unknown>;
|
12
|
+
private _contentFooterTemplate;
|
13
|
+
get renderFooterTemplate(): TemplateRef<unknown>;
|
11
14
|
headerTemplate: TemplateRef<unknown>;
|
12
15
|
private _contentHeaderTemplate;
|
13
16
|
get renderHeaderTemplate(): TemplateRef<unknown>;
|
@@ -18,5 +21,5 @@ export declare class AXDataTableTextColumnComponent extends AXDataTableColumnCom
|
|
18
21
|
format: string;
|
19
22
|
formatOptions: AXFormatOptions;
|
20
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXDataTableTextColumnComponent, never>;
|
21
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AXDataTableTextColumnComponent, "ax-text-column", never, { "width": { "alias": "width"; "required": false; }; "caption": { "alias": "caption"; "required": false; }; "allowSorting": { "alias": "allowSorting"; "required": false; }; "allowResizing": { "alias": "allowResizing"; "required": false; }; "fixed": { "alias": "fixed"; "required": false; }; "dataField": { "alias": "dataField"; "required": false; }; "wrapText": { "alias": "wrapText"; "required": false; }; "cellTemplate": { "alias": "cellTemplate"; "required": false; }; "headerTemplate": { "alias": "headerTemplate"; "required": false; }; "format": { "alias": "format"; "required": false; }; "formatOptions": { "alias": "formatOptions"; "required": false; }; }, {}, never, never, false, never>;
|
24
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AXDataTableTextColumnComponent, "ax-text-column", never, { "width": { "alias": "width"; "required": false; }; "caption": { "alias": "caption"; "required": false; }; "allowSorting": { "alias": "allowSorting"; "required": false; }; "allowResizing": { "alias": "allowResizing"; "required": false; }; "fixed": { "alias": "fixed"; "required": false; }; "dataField": { "alias": "dataField"; "required": false; }; "wrapText": { "alias": "wrapText"; "required": false; }; "cellTemplate": { "alias": "cellTemplate"; "required": false; }; "footerTemplate": { "alias": "footerTemplate"; "required": false; }; "headerTemplate": { "alias": "headerTemplate"; "required": false; }; "format": { "alias": "format"; "required": false; }; "formatOptions": { "alias": "formatOptions"; "required": false; }; }, {}, never, never, false, never>;
|
22
25
|
}
|
@@ -19,6 +19,9 @@ export declare class AXRowDropdownCommandColumnComponent extends AXBaseRowComman
|
|
19
19
|
get renderCellTemplate(): TemplateRef<unknown>;
|
20
20
|
private _contentHeaderTemplate;
|
21
21
|
get renderHeaderTemplate(): TemplateRef<unknown>;
|
22
|
+
footerTemplate: TemplateRef<unknown>;
|
23
|
+
private _contentFooterTemplate;
|
24
|
+
get renderFooterTemplate(): TemplateRef<unknown>;
|
22
25
|
get name(): string;
|
23
26
|
protected _items: AXRowCommandItem[];
|
24
27
|
items: AXRowCommandItem[] | ((rowData: unknown) => AXRowCommandItem[] | Promise<AXRowCommandItem[]>);
|
@@ -26,17 +29,20 @@ export declare class AXRowDropdownCommandColumnComponent extends AXBaseRowComman
|
|
26
29
|
protected handleOnClosed(): void;
|
27
30
|
protected handleOnItemClick(e: AXItemClickEvent<AXButtonItemComponent>, data: unknown): void;
|
28
31
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXRowDropdownCommandColumnComponent, never>;
|
29
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AXRowDropdownCommandColumnComponent, "ax-dropdown-command-column", never, { "width": { "alias": "width"; "required": false; }; "caption": { "alias": "caption"; "required": false; }; "fixed": { "alias": "fixed"; "required": false; }; "items": { "alias": "items"; "required": false; }; }, { "onItemClick": "onItemClick"; }, never, never, false, never>;
|
32
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AXRowDropdownCommandColumnComponent, "ax-dropdown-command-column", never, { "width": { "alias": "width"; "required": false; }; "caption": { "alias": "caption"; "required": false; }; "fixed": { "alias": "fixed"; "required": false; }; "footerTemplate": { "alias": "footerTemplate"; "required": false; }; "items": { "alias": "items"; "required": false; }; }, { "onItemClick": "onItemClick"; }, never, never, false, never>;
|
30
33
|
}
|
31
34
|
export declare class AXRowCommandColumnComponent extends AXBaseRowCommandColumnComponent {
|
32
35
|
private _cellTemplate;
|
33
36
|
get renderCellTemplate(): TemplateRef<unknown>;
|
34
37
|
private _contentHeaderTemplate;
|
35
38
|
get renderHeaderTemplate(): TemplateRef<unknown>;
|
39
|
+
footerTemplate: TemplateRef<unknown>;
|
40
|
+
private _contentFooterTemplate;
|
41
|
+
get renderFooterTemplate(): TemplateRef<unknown>;
|
36
42
|
get name(): string;
|
37
43
|
items: AXRowCommandItem[] | ((rowData: unknown) => AXRowCommandItem[]);
|
38
44
|
protected getItems(rowData: unknown): AXRowCommandItem[];
|
39
45
|
protected handleOnItemClick(e: MouseEvent, item: AXRowCommandItem, data: unknown): void;
|
40
46
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXRowCommandColumnComponent, never>;
|
41
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AXRowCommandColumnComponent, "ax-command-column", never, { "width": { "alias": "width"; "required": false; }; "caption": { "alias": "caption"; "required": false; }; "fixed": { "alias": "fixed"; "required": false; }; "items": { "alias": "items"; "required": false; }; }, { "onItemClick": "onItemClick"; }, never, never, false, never>;
|
47
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AXRowCommandColumnComponent, "ax-command-column", never, { "width": { "alias": "width"; "required": false; }; "caption": { "alias": "caption"; "required": false; }; "fixed": { "alias": "fixed"; "required": false; }; "footerTemplate": { "alias": "footerTemplate"; "required": false; }; "items": { "alias": "items"; "required": false; }; }, { "onItemClick": "onItemClick"; }, never, never, false, never>;
|
42
48
|
}
|
@@ -8,6 +8,9 @@ export declare class AXRowIndexColumnComponent extends AXDataTableColumnComponen
|
|
8
8
|
get renderCellTemplate(): TemplateRef<unknown>;
|
9
9
|
private _contentHeaderTemplate;
|
10
10
|
get renderHeaderTemplate(): TemplateRef<unknown>;
|
11
|
+
footerTemplate: TemplateRef<unknown>;
|
12
|
+
private _contentFooterTemplate;
|
13
|
+
get renderFooterTemplate(): TemplateRef<unknown>;
|
11
14
|
get name(): string;
|
12
15
|
padZero: boolean;
|
13
16
|
protected formatCount: number;
|
@@ -16,5 +19,5 @@ export declare class AXRowIndexColumnComponent extends AXDataTableColumnComponen
|
|
16
19
|
get loadingEnabled(): boolean;
|
17
20
|
get cssClass(): string | undefined;
|
18
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXRowIndexColumnComponent, never>;
|
19
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AXRowIndexColumnComponent, "ax-index-column", never, { "width": { "alias": "width"; "required": false; }; "caption": { "alias": "caption"; "required": false; }; "fixed": { "alias": "fixed"; "required": false; }; "padZero": { "alias": "padZero"; "required": false; }; }, {}, never, never, false, never>;
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AXRowIndexColumnComponent, "ax-index-column", never, { "width": { "alias": "width"; "required": false; }; "caption": { "alias": "caption"; "required": false; }; "fixed": { "alias": "fixed"; "required": false; }; "footerTemplate": { "alias": "footerTemplate"; "required": false; }; "padZero": { "alias": "padZero"; "required": false; }; }, {}, never, never, false, never>;
|
20
23
|
}
|
@@ -7,6 +7,8 @@ export declare class AXRowSelectColumnComponent extends AXDataTableColumnCompone
|
|
7
7
|
get renderCellTemplate(): TemplateRef<unknown>;
|
8
8
|
private _contentHeaderTemplate;
|
9
9
|
get renderHeaderTemplate(): TemplateRef<unknown>;
|
10
|
+
private _contentFooterTemplate;
|
11
|
+
get renderFooterTemplate(): TemplateRef<unknown>;
|
10
12
|
get name(): string;
|
11
13
|
protected isSelected(item: unknown): boolean;
|
12
14
|
protected checkAllSelected(rows: any): any;
|
@@ -31,8 +31,11 @@ export declare class AXDataTableComponent extends AXBaseDataTable implements OnI
|
|
31
31
|
protected startRowIndex: number;
|
32
32
|
rowTemplate?: TemplateRef<unknown>;
|
33
33
|
emptyTemplate?: TemplateRef<unknown>;
|
34
|
+
alternative: boolean;
|
34
35
|
showHeader: boolean;
|
35
36
|
fixedHeader: boolean;
|
37
|
+
showFooter: boolean;
|
38
|
+
fixedFooter: boolean;
|
36
39
|
itemHeight: number | 'auto';
|
37
40
|
allowReordering: boolean;
|
38
41
|
paging: boolean;
|
@@ -68,5 +71,5 @@ export declare class AXDataTableComponent extends AXBaseDataTable implements OnI
|
|
68
71
|
private resetResizingProcess;
|
69
72
|
private calculateStickyColumnsPositions;
|
70
73
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXDataTableComponent, never>;
|
71
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AXDataTableComponent, "ax-data-table", never, { "dataSource": { "alias": "dataSource"; "required": false; }; "rowTemplate": { "alias": "rowTemplate"; "required": false; }; "emptyTemplate": { "alias": "emptyTemplate"; "required": false; }; "showHeader": { "alias": "showHeader"; "required": false; }; "fixedHeader": { "alias": "fixedHeader"; "required": false; }; "itemHeight": { "alias": "itemHeight"; "required": false; }; "allowReordering": { "alias": "allowReordering"; "required": false; }; "paging": { "alias": "paging"; "required": false; }; "fetchDataMode": { "alias": "fetchDataMode"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "focusedRow": { "alias": "focusedRow"; "required": false; }; }, { "focusedRowChange": "focusedRowChange"; "onRowClick": "onRowClick"; "onRowDbClick": "onRowDbClick"; "onColumnsOrderChanged": "onColumnsOrderChanged"; }, ["columns"], ["ax-header", "ax-footer"], false, never>;
|
74
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AXDataTableComponent, "ax-data-table", never, { "dataSource": { "alias": "dataSource"; "required": false; }; "rowTemplate": { "alias": "rowTemplate"; "required": false; }; "emptyTemplate": { "alias": "emptyTemplate"; "required": false; }; "alternative": { "alias": "alternative"; "required": false; }; "showHeader": { "alias": "showHeader"; "required": false; }; "fixedHeader": { "alias": "fixedHeader"; "required": false; }; "showFooter": { "alias": "showFooter"; "required": false; }; "fixedFooter": { "alias": "fixedFooter"; "required": false; }; "itemHeight": { "alias": "itemHeight"; "required": false; }; "allowReordering": { "alias": "allowReordering"; "required": false; }; "paging": { "alias": "paging"; "required": false; }; "fetchDataMode": { "alias": "fetchDataMode"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "focusedRow": { "alias": "focusedRow"; "required": false; }; }, { "focusedRowChange": "focusedRowChange"; "onRowClick": "onRowClick"; "onRowDbClick": "onRowDbClick"; "onColumnsOrderChanged": "onColumnsOrderChanged"; }, ["columns"], ["ax-header", "ax-footer"], false, never>;
|
72
75
|
}
|
package/esm2022/common/index.mjs
CHANGED
@@ -22,8 +22,9 @@ export * from './lib/directives/auto-focus.directive';
|
|
22
22
|
export * from './lib/directives/delayed-value-changed.directive';
|
23
23
|
export * from './lib/directives/hotkey.directive';
|
24
24
|
export * from './lib/directives/infinite-scroll.directive';
|
25
|
+
export * from './lib/directives/inverted-color.directive';
|
25
26
|
export * from './lib/directives/responsive.directive';
|
26
27
|
export * from './lib/directives/ripple.directive';
|
27
28
|
export * from './lib/services/dom.service';
|
28
29
|
export * from './lib/services/hotkey.service';
|
29
|
-
//# sourceMappingURL=data:application/json;base64,
|
30
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9saWJzL2NvbXBvbmVudHMvY29tbW9uL3NyYy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLHVCQUF1QixDQUFDO0FBQ3RDLGNBQWMseUJBQXlCLENBQUM7QUFDeEMsY0FBYyx1QkFBdUIsQ0FBQztBQUN0QyxjQUFjLG1CQUFtQixDQUFDO0FBQ2xDLGNBQWMsNEJBQTRCLENBQUM7QUFFM0MsY0FBYyxnQ0FBZ0MsQ0FBQztBQUMvQyxjQUFjLDhCQUE4QixDQUFDO0FBQzdDLGNBQWMsZ0NBQWdDLENBQUM7QUFDL0MsY0FBYyw0QkFBNEIsQ0FBQztBQUMzQyxjQUFjLDRCQUE0QixDQUFDO0FBRTNDLGNBQWMscUJBQXFCLENBQUM7QUFFcEMsY0FBYyx1Q0FBdUMsQ0FBQztBQUN0RCxjQUFjLDhDQUE4QyxDQUFDO0FBQzdELGNBQWMsd0NBQXdDLENBQ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jcm9sbC5kaXJlY3RpdmUnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvZGlyZWN0aXZlcy9pbnZlcnRlZC1jb2xvci5kaXJlY3RpdmUnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvZGlyZWN0aXZlcy9yZXNwb25zaXZlLmRpcmVjdGl2ZSc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9kaXJlY3RpdmVzL3JpcHBsZS5kaXJlY3RpdmUnO1xuXG5leHBvcnQgKiBmcm9tICcuL2xpYi9zZXJ2aWNlcy9kb20uc2VydmljZSc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9zZXJ2aWNlcy9ob3RrZXkuc2VydmljZSc7XG4iXX0=
|
@@ -0,0 +1,50 @@
|
|
1
|
+
import { AfterRenderPhase, Directive, ViewContainerRef, afterNextRender, effect, inject, input } from '@angular/core';
|
2
|
+
import * as i0 from "@angular/core";
|
3
|
+
export class AXInvertedColorDirective {
|
4
|
+
constructor() {
|
5
|
+
this.color = input.required();
|
6
|
+
this.ref = inject(ViewContainerRef);
|
7
|
+
afterNextRender(() => {
|
8
|
+
this.invertColor();
|
9
|
+
console.log('changed');
|
10
|
+
}, { phase: AfterRenderPhase.MixedReadWrite });
|
11
|
+
effect(() => {
|
12
|
+
this.invertColor();
|
13
|
+
console.log('changed');
|
14
|
+
});
|
15
|
+
}
|
16
|
+
invertColor() {
|
17
|
+
let color;
|
18
|
+
let foreColor;
|
19
|
+
const invertedVariables = [];
|
20
|
+
if (this.color() === 'ghost') {
|
21
|
+
color = getComputedStyle(document.documentElement).getPropertyValue(`--ax-color-${this.color()}`);
|
22
|
+
foreColor = getComputedStyle(document.documentElement).getPropertyValue(`--ax-color-${this.color()}-fore`);
|
23
|
+
invertedVariables.push({ name: `--ax-color-ghost`, value: `${foreColor}` });
|
24
|
+
invertedVariables.push({ name: `--ax-color-ghost-fore`, value: `${color}` });
|
25
|
+
}
|
26
|
+
else {
|
27
|
+
const range = [50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950];
|
28
|
+
color = getComputedStyle(document.documentElement).getPropertyValue(`--ax-color-${this.color()}-500`);
|
29
|
+
foreColor = getComputedStyle(document.documentElement).getPropertyValue(`--ax-color-${this.color()}-fore`);
|
30
|
+
range.forEach((c) => {
|
31
|
+
invertedVariables.push({ name: `--ax-color-${this.color()}-${c}`, value: `${foreColor}` });
|
32
|
+
});
|
33
|
+
invertedVariables.push({ name: `--ax-color-${this.color()}-fore`, value: `${color}` });
|
34
|
+
invertedVariables.push({ name: `--ax-color-${this.color()}-fore-tint`, value: `${color}` });
|
35
|
+
}
|
36
|
+
invertedVariables.forEach((c) => {
|
37
|
+
this.ref.element.nativeElement.style.setProperty(c.name, c.value);
|
38
|
+
});
|
39
|
+
}
|
40
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXInvertedColorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
41
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "17.3.2", type: AXInvertedColorDirective, isStandalone: true, selector: "[axInvertedColor]", inputs: { color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0 }); }
|
42
|
+
}
|
43
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXInvertedColorDirective, decorators: [{
|
44
|
+
type: Directive,
|
45
|
+
args: [{
|
46
|
+
selector: '[axInvertedColor]',
|
47
|
+
standalone: true,
|
48
|
+
}]
|
49
|
+
}], ctorParameters: () => [] });
|
50
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW52ZXJ0ZWQtY29sb3IuZGlyZWN0aXZlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL2Nvb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sgbmFtZTogYC0tYXgtY29sb3ItJHt0aGlzLmNvbG9yKCl9LWZvcmVgLCB2YWx1ZTogYCR7Y29sb3J9YCB9KTtcbiAgICAgIGludmVydGVkVmFyaWFibGVzLnB1c2goeyBuYW1lOiBgLS1heC1jb2xvci0ke3RoaXMuY29sb3IoKX0tZm9yZS10aW50YCwgdmFsdWU6IGAke2NvbG9yfWAgfSk7XG4gICAgfVxuXG4gICAgaW52ZXJ0ZWRWYXJpYWJsZXMuZm9yRWFjaCgoYykgPT4ge1xuICAgICAgKHRoaXMucmVmLmVsZW1lbnQubmF0aXZlRWxlbWVudCBhcyBIVE1MRWxlbWVudCkuc3R5bGUuc2V0UHJvcGVydHkoYy5uYW1lLCBjLnZhbHVlKTtcbiAgICB9KTtcbiAgfVxufVxuIl19
|
@@ -5,6 +5,7 @@ import * as i0 from "@angular/core";
|
|
5
5
|
import * as i1 from "@angular/common";
|
6
6
|
import * as i2 from "@acorex/components/button";
|
7
7
|
import * as i3 from "@acorex/components/decorators";
|
8
|
+
import * as i4 from "@acorex/components/skeleton";
|
8
9
|
export class AXDataPagerNumericSelectorComponent extends AXDataPagerChild {
|
9
10
|
constructor() {
|
10
11
|
super(...arguments);
|
@@ -58,19 +59,23 @@ export class AXDataPagerNumericSelectorComponent extends AXDataPagerChild {
|
|
58
59
|
<ax-button [disabled]="_currentPage === 1 || _parent.disabled" look="blank" class="ax-sm" (onClick)="_handleOnItemClick({ data: 1 })">
|
59
60
|
<ax-icon class="ax-icon ax-icon-first-page ax-text-xl"></ax-icon>
|
60
61
|
</ax-button>
|
61
|
-
@
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
62
|
+
@if (_items.length) {
|
63
|
+
@for (item of _items; track $index) {
|
64
|
+
<ax-button
|
65
|
+
class="ax-sm"
|
66
|
+
[disabled]="_parent.disabled"
|
67
|
+
[color]="_currentPage === item.data ? 'primary' : 'solid'"
|
68
|
+
[look]="_currentPage === item.data ? 'solid' : 'blank'"
|
69
|
+
[text]="item.text"
|
70
|
+
(onClick)="_handleOnItemClick(item)"
|
71
|
+
>
|
72
|
+
@if (item.iconClass) {
|
73
|
+
<ax-icon class="ax-icon ax-text-xl" [ngClass]="item.iconClass"></ax-icon>
|
74
|
+
}
|
75
|
+
</ax-button>
|
76
|
+
}
|
77
|
+
} @else {
|
78
|
+
<ax-skeleton></ax-skeleton>
|
74
79
|
}
|
75
80
|
|
76
81
|
<ax-button
|
@@ -81,7 +86,7 @@ export class AXDataPagerNumericSelectorComponent extends AXDataPagerChild {
|
|
81
86
|
>
|
82
87
|
<ax-icon class="ax-icon ax-icon-last-page ax-text-xl"></ax-icon>
|
83
88
|
</ax-button>
|
84
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: i2.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "type"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange"] }, { kind: "component", type: i3.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
89
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: i2.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "type"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange"] }, { kind: "component", type: i3.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i4.AXSkeletonComponent, selector: "ax-skeleton", inputs: ["animated"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
85
90
|
}
|
86
91
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXDataPagerNumericSelectorComponent, decorators: [{
|
87
92
|
type: Component,
|
@@ -91,19 +96,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImpor
|
|
91
96
|
<ax-button [disabled]="_currentPage === 1 || _parent.disabled" look="blank" class="ax-sm" (onClick)="_handleOnItemClick({ data: 1 })">
|
92
97
|
<ax-icon class="ax-icon ax-icon-first-page ax-text-xl"></ax-icon>
|
93
98
|
</ax-button>
|
94
|
-
@
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
99
|
+
@if (_items.length) {
|
100
|
+
@for (item of _items; track $index) {
|
101
|
+
<ax-button
|
102
|
+
class="ax-sm"
|
103
|
+
[disabled]="_parent.disabled"
|
104
|
+
[color]="_currentPage === item.data ? 'primary' : 'solid'"
|
105
|
+
[look]="_currentPage === item.data ? 'solid' : 'blank'"
|
106
|
+
[text]="item.text"
|
107
|
+
(onClick)="_handleOnItemClick(item)"
|
108
|
+
>
|
109
|
+
@if (item.iconClass) {
|
110
|
+
<ax-icon class="ax-icon ax-text-xl" [ngClass]="item.iconClass"></ax-icon>
|
111
|
+
}
|
112
|
+
</ax-button>
|
113
|
+
}
|
114
|
+
} @else {
|
115
|
+
<ax-skeleton></ax-skeleton>
|
107
116
|
}
|
108
117
|
|
109
118
|
<ax-button
|
@@ -126,4 +135,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImpor
|
|
126
135
|
],
|
127
136
|
}]
|
128
137
|
}] });
|
129
|
-
//# sourceMappingURL=data:application/json;base64,
|
138
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIj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ICAgICAgfSk7XG4gICAgfVxuICAgIGlmIChlbmQgPCB0aGlzLl9sYXN0UGFnZSkge1xuICAgICAgdGhpcy5faXRlbXMucHVzaCh7XG4gICAgICAgIGljb25DbGFzczogJ2F4LWljb24tbW9yZS1ob3Jpem9udGFsJyxcbiAgICAgICAgZGF0YTogZW5kICsgMSxcbiAgICAgIH0pO1xuICAgIH1cbiAgICB0aGlzLmNkci5kZXRlY3RDaGFuZ2VzKCk7XG4gIH1cblxuICBfaGFuZGxlT25JdGVtQ2xpY2soZTogYW55KSB7XG4gICAgaWYgKHRoaXMuX3BhcmVudC5yZWFkb25seSB8fCB0aGlzLl9wYXJlbnQuZGlzYWJsZWQpIHJldHVybjtcbiAgICB0aGlzLl9wYXJlbnQuZ29Ub1BhZ2UoTnVtYmVyKGUuZGF0YSkpO1xuICB9XG59XG4iXX0=
|
@@ -144,7 +144,7 @@ export class AXDataPagerComponent extends MXValueComponent {
|
|
144
144
|
useExisting: forwardRef(() => AXDataPagerComponent),
|
145
145
|
multi: true,
|
146
146
|
},
|
147
|
-
], usesInheritance: true, ngImport: i0, template: "@switch(displayMode){\n@case('full'){\n<ax-prefix>\n <ax-data-pager-numeric-selector>\n </ax-data-pager-numeric-selector>\n <ax-data-pager-page-sizes>\n </ax-data-pager-page-sizes>\n</ax-prefix>\n<ax-suffix>\n <ax-data-pager-info>\n </ax-data-pager-info>\n</ax-suffix>\n}\n@case('compact'){\n<ax-prefix>\n <ax-data-pager-prev-buttons>\n </ax-data-pager-prev-buttons>\n <ax-data-pager-input-selector>\n </ax-data-pager-input-selector>\n <ax-data-pager-next-buttons>\n </ax-data-pager-next-buttons>\n</ax-prefix>\n<ax-suffix>\n <ax-data-pager-info>\n </ax-data-pager-info>\n</ax-suffix>\n}\n@default{\n<ng-content select=\"ax-prefix\"></ng-content>\n<ng-content select=\"ax-suffix\"></ng-content>\n}\n}", styles: ["html[dir=rtl] ax-data-pager ax-data-pager-numeric-selector .ax-icon-first-page,html[dir=rtl] ax-data-pager ax-data-pager-numeric-selector .ax-icon-last-page{rotate:180deg}ax-data-pager{display:flex;width:100%;align-items:center;justify-content:space-between;gap:.5rem;padding:.5rem;font-size:.875rem;line-height:1.25rem}ax-data-pager ax-button-group{display:flex!important;gap:1rem!important;border-radius:0!important;border-width:0px!important}ax-data-pager ax-button-group ax-button-item{border-radius:0!important;border-width:0px!important;padding:0!important}ax-data-pager ax-button-group ax-button-item.ax-state-selected{border-width:1px!important}ax-data-pager ax-data-pager-input-selector .ax-input{width:4rem!important;max-width:10rem!important;text-align:center!important}ax-data-pager ax-data-pager-next-buttons,ax-data-pager ax-data-pager-prev-buttons,ax-data-pager ax-data-pager-numeric-selector{display:flex;gap:.5rem}ax-data-pager ax-data-pager-page-sizes ax-button{border-radius:var(--ax-rounded-border-default);border-width:1px;border-color:rgba(var(--ax-color-border-default))}ax-data-pager ax-prefix,ax-data-pager ax-suffix{display:flex}\n"], dependencies: [{ kind: "component", type: i1.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title , ax-sub-title, ax-placeholder, ax-overlay" }, { kind: "component", type: i2.AXDataPagerNextButtonsComponent, selector: "ax-data-pager-next-buttons" }, { kind: "component", type: i3.AXDataPagerPrevButtonsComponent, selector: "ax-data-pager-prev-buttons" }, { kind: "component", type: i4.AXDataPagerPageSizesComponent, selector: "ax-data-pager-page-sizes", inputs: ["sizes"] }, { kind: "component", type: i5.AXDataPagerNumericSelectorComponent, selector: "ax-data-pager-numeric-selector" }, { kind: "component", type: i6.AXDataPagerInputSelectorComponent, selector: "ax-data-pager-input-selector" }, { kind: "component", type: i7.AXDataPagerInfoComponent, selector: "ax-data-pager-info", inputs: ["text"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
147
|
+
], usesInheritance: true, ngImport: i0, template: "@switch(displayMode){\n@case('full'){\n<ax-prefix>\n <ax-data-pager-numeric-selector>\n </ax-data-pager-numeric-selector>\n <ax-data-pager-page-sizes>\n </ax-data-pager-page-sizes>\n</ax-prefix>\n<ax-suffix>\n <ax-data-pager-info>\n </ax-data-pager-info>\n</ax-suffix>\n}\n@case('compact'){\n<ax-prefix>\n <ax-data-pager-prev-buttons>\n </ax-data-pager-prev-buttons>\n <ax-data-pager-input-selector>\n </ax-data-pager-input-selector>\n <ax-data-pager-next-buttons>\n </ax-data-pager-next-buttons>\n</ax-prefix>\n<ax-suffix>\n <ax-data-pager-info>\n </ax-data-pager-info>\n</ax-suffix>\n}\n@default{\n<ng-content select=\"ax-prefix\"></ng-content>\n<ng-content select=\"ax-suffix\"></ng-content>\n}\n}", styles: ["html[dir=rtl] ax-data-pager ax-data-pager-numeric-selector .ax-icon-first-page,html[dir=rtl] ax-data-pager ax-data-pager-numeric-selector .ax-icon-last-page{rotate:180deg}ax-data-pager{display:flex;width:100%;align-items:center;justify-content:space-between;gap:.5rem;padding:.5rem;font-size:.875rem;line-height:1.25rem}ax-data-pager ax-button-group{display:flex!important;gap:1rem!important;border-radius:0!important;border-width:0px!important}ax-data-pager ax-button-group ax-button-item{border-radius:0!important;border-width:0px!important;padding:0!important}ax-data-pager ax-button-group ax-button-item.ax-state-selected{border-width:1px!important}ax-data-pager ax-data-pager-input-selector .ax-input{width:4rem!important;max-width:10rem!important;text-align:center!important}ax-data-pager ax-data-pager-next-buttons,ax-data-pager ax-data-pager-prev-buttons,ax-data-pager ax-data-pager-numeric-selector{display:flex;gap:.5rem}ax-data-pager ax-data-pager-next-buttons ax-skeleton,ax-data-pager ax-data-pager-prev-buttons ax-skeleton,ax-data-pager ax-data-pager-numeric-selector ax-skeleton{width:100%;min-width:14rem;border-radius:var(--ax-rounded-border-default)}ax-data-pager ax-data-pager-page-sizes ax-button{border-radius:var(--ax-rounded-border-default);border-width:1px;border-color:rgba(var(--ax-color-border-default))}ax-data-pager ax-prefix,ax-data-pager ax-suffix{display:flex}\n"], dependencies: [{ kind: "component", type: i1.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title , ax-sub-title, ax-placeholder, ax-overlay" }, { kind: "component", type: i2.AXDataPagerNextButtonsComponent, selector: "ax-data-pager-next-buttons" }, { kind: "component", type: i3.AXDataPagerPrevButtonsComponent, selector: "ax-data-pager-prev-buttons" }, { kind: "component", type: i4.AXDataPagerPageSizesComponent, selector: "ax-data-pager-page-sizes", inputs: ["sizes"] }, { kind: "component", type: i5.AXDataPagerNumericSelectorComponent, selector: "ax-data-pager-numeric-selector" }, { kind: "component", type: i6.AXDataPagerInputSelectorComponent, selector: "ax-data-pager-input-selector" }, { kind: "component", type: i7.AXDataPagerInfoComponent, selector: "ax-data-pager-info", inputs: ["text"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
148
148
|
}
|
149
149
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXDataPagerComponent, decorators: [{
|
150
150
|
type: Component,
|
@@ -155,7 +155,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImpor
|
|
155
155
|
useExisting: forwardRef(() => AXDataPagerComponent),
|
156
156
|
multi: true,
|
157
157
|
},
|
158
|
-
], template: "@switch(displayMode){\n@case('full'){\n<ax-prefix>\n <ax-data-pager-numeric-selector>\n </ax-data-pager-numeric-selector>\n <ax-data-pager-page-sizes>\n </ax-data-pager-page-sizes>\n</ax-prefix>\n<ax-suffix>\n <ax-data-pager-info>\n </ax-data-pager-info>\n</ax-suffix>\n}\n@case('compact'){\n<ax-prefix>\n <ax-data-pager-prev-buttons>\n </ax-data-pager-prev-buttons>\n <ax-data-pager-input-selector>\n </ax-data-pager-input-selector>\n <ax-data-pager-next-buttons>\n </ax-data-pager-next-buttons>\n</ax-prefix>\n<ax-suffix>\n <ax-data-pager-info>\n </ax-data-pager-info>\n</ax-suffix>\n}\n@default{\n<ng-content select=\"ax-prefix\"></ng-content>\n<ng-content select=\"ax-suffix\"></ng-content>\n}\n}", styles: ["html[dir=rtl] ax-data-pager ax-data-pager-numeric-selector .ax-icon-first-page,html[dir=rtl] ax-data-pager ax-data-pager-numeric-selector .ax-icon-last-page{rotate:180deg}ax-data-pager{display:flex;width:100%;align-items:center;justify-content:space-between;gap:.5rem;padding:.5rem;font-size:.875rem;line-height:1.25rem}ax-data-pager ax-button-group{display:flex!important;gap:1rem!important;border-radius:0!important;border-width:0px!important}ax-data-pager ax-button-group ax-button-item{border-radius:0!important;border-width:0px!important;padding:0!important}ax-data-pager ax-button-group ax-button-item.ax-state-selected{border-width:1px!important}ax-data-pager ax-data-pager-input-selector .ax-input{width:4rem!important;max-width:10rem!important;text-align:center!important}ax-data-pager ax-data-pager-next-buttons,ax-data-pager ax-data-pager-prev-buttons,ax-data-pager ax-data-pager-numeric-selector{display:flex;gap:.5rem}ax-data-pager ax-data-pager-page-sizes ax-button{border-radius:var(--ax-rounded-border-default);border-width:1px;border-color:rgba(var(--ax-color-border-default))}ax-data-pager ax-prefix,ax-data-pager ax-suffix{display:flex}\n"] }]
|
158
|
+
], template: "@switch(displayMode){\n@case('full'){\n<ax-prefix>\n <ax-data-pager-numeric-selector>\n </ax-data-pager-numeric-selector>\n <ax-data-pager-page-sizes>\n </ax-data-pager-page-sizes>\n</ax-prefix>\n<ax-suffix>\n <ax-data-pager-info>\n </ax-data-pager-info>\n</ax-suffix>\n}\n@case('compact'){\n<ax-prefix>\n <ax-data-pager-prev-buttons>\n </ax-data-pager-prev-buttons>\n <ax-data-pager-input-selector>\n </ax-data-pager-input-selector>\n <ax-data-pager-next-buttons>\n </ax-data-pager-next-buttons>\n</ax-prefix>\n<ax-suffix>\n <ax-data-pager-info>\n </ax-data-pager-info>\n</ax-suffix>\n}\n@default{\n<ng-content select=\"ax-prefix\"></ng-content>\n<ng-content select=\"ax-suffix\"></ng-content>\n}\n}", styles: ["html[dir=rtl] ax-data-pager ax-data-pager-numeric-selector .ax-icon-first-page,html[dir=rtl] ax-data-pager ax-data-pager-numeric-selector .ax-icon-last-page{rotate:180deg}ax-data-pager{display:flex;width:100%;align-items:center;justify-content:space-between;gap:.5rem;padding:.5rem;font-size:.875rem;line-height:1.25rem}ax-data-pager ax-button-group{display:flex!important;gap:1rem!important;border-radius:0!important;border-width:0px!important}ax-data-pager ax-button-group ax-button-item{border-radius:0!important;border-width:0px!important;padding:0!important}ax-data-pager ax-button-group ax-button-item.ax-state-selected{border-width:1px!important}ax-data-pager ax-data-pager-input-selector .ax-input{width:4rem!important;max-width:10rem!important;text-align:center!important}ax-data-pager ax-data-pager-next-buttons,ax-data-pager ax-data-pager-prev-buttons,ax-data-pager ax-data-pager-numeric-selector{display:flex;gap:.5rem}ax-data-pager ax-data-pager-next-buttons ax-skeleton,ax-data-pager ax-data-pager-prev-buttons ax-skeleton,ax-data-pager ax-data-pager-numeric-selector ax-skeleton{width:100%;min-width:14rem;border-radius:var(--ax-rounded-border-default)}ax-data-pager ax-data-pager-page-sizes ax-button{border-radius:var(--ax-rounded-border-default);border-width:1px;border-color:rgba(var(--ax-color-border-default))}ax-data-pager ax-prefix,ax-data-pager ax-suffix{display:flex}\n"] }]
|
159
159
|
}], ctorParameters: () => [{ type: i8.AXPagedComponent, decorators: [{
|
160
160
|
type: Optional
|
161
161
|
}, {
|
@@ -3,6 +3,8 @@ import { AXButtonGroupModule } from '@acorex/components/button-group';
|
|
3
3
|
import { AXDecoratorModule } from '@acorex/components/decorators';
|
4
4
|
import { AXDropdownModule } from '@acorex/components/dropdown';
|
5
5
|
import { AXNumberBoxModule } from '@acorex/components/number-box';
|
6
|
+
import { AXSkeletonModule } from '@acorex/components/skeleton';
|
7
|
+
import { AXTranslationModule } from '@acorex/core/translation';
|
6
8
|
import { CommonModule } from '@angular/common';
|
7
9
|
import { NgModule } from '@angular/core';
|
8
10
|
import { FormsModule } from '@angular/forms';
|
@@ -13,7 +15,6 @@ import { AXDataPagerNumericSelectorComponent } from './data-pager-numeric-select
|
|
13
15
|
import { AXDataPagerPageSizesComponent } from './data-pager-pagesize-dropdown.component';
|
14
16
|
import { AXDataPagerPrevButtonsComponent } from './data-pager-prev-buttons.component';
|
15
17
|
import { AXDataPagerComponent } from './data-pager.component';
|
16
|
-
import { AXTranslationModule } from '@acorex/core/translation';
|
17
18
|
import * as i0 from "@angular/core";
|
18
19
|
const COMPONENT = [
|
19
20
|
AXDataPagerComponent,
|
@@ -33,6 +34,7 @@ const MODULES = [
|
|
33
34
|
AXDropdownModule,
|
34
35
|
AXDecoratorModule,
|
35
36
|
AXTranslationModule,
|
37
|
+
AXSkeletonModule,
|
36
38
|
];
|
37
39
|
export class AXDataPagerModule {
|
38
40
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXDataPagerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
@@ -49,7 +51,8 @@ export class AXDataPagerModule {
|
|
49
51
|
AXNumberBoxModule,
|
50
52
|
AXDropdownModule,
|
51
53
|
AXDecoratorModule,
|
52
|
-
AXTranslationModule
|
54
|
+
AXTranslationModule,
|
55
|
+
AXSkeletonModule], exports: [AXDataPagerComponent,
|
53
56
|
AXDataPagerNextButtonsComponent,
|
54
57
|
AXDataPagerPrevButtonsComponent,
|
55
58
|
AXDataPagerPageSizesComponent,
|
@@ -67,4 +70,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImpor
|
|
67
70
|
providers: [],
|
68
71
|
}]
|
69
72
|
}] });
|
70
|
-
//# sourceMappingURL=data:application/json;base64,
|
73
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0YS1wYWdlci5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL2NvbXBvbmVudHMvZGF0YS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vdXBNb2R1bGUsXG4gIEFYTnVtYmVyQm94TW9kdWxlLFxuICBBWERyb3Bkb3duTW9kdWxlLFxuICBBWERlY29yYXRvck1vZHVsZSxcbiAgQVhUcmFuc2xhdGlvbk1vZHVsZSxcbiAgQVhTa2VsZXRvbk1vZHVsZSxcbl07XG5cbkBOZ01vZHVsZSh7XG4gIGRlY2xhcmF0aW9uczogWy4uLkNPTVBPTkVOVF0sXG4gIGltcG9ydHM6IFsuLi5NT0RVTEVTXSxcbiAgZXhwb3J0czogWy4uLkNPTVBPTkVOVF0sXG4gIHByb3ZpZGVyczogW10sXG59KVxuZXhwb3J0IGNsYXNzIEFYRGF0YVBhZ2VyTW9kdWxlIHt9XG4iXX0=
|
@@ -31,4 +31,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImpor
|
|
31
31
|
}], sortOrder: [{
|
32
32
|
type: Input
|
33
33
|
}] } });
|
34
|
-
//# sourceMappingURL=data:application/json;base64,
|
34
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0YS10YWJsZS1jb2x1bW4uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2NvbXBvbmVudHMvZGF0YS10YWJsZS9zcmMvbGliL2NvbHVtbnMvZGF0YS10YWJsZS1jb2x1bW4udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsT0FBTyxFQUFFLFVBQVUsRUFBRSxLQUFLLEVBQWUsTUFBTSxlQUFlLENBQUM7O0FBRy9ELE1BQU0sT0FBZ0IsMEJBQTBCO0lBRGhEO1FBTUUsVUFBSyxHQUFvQixNQUFNLENBQUM7UUFNaEMsaUJBQVksR0FBRyxLQUFLLENBQUM7UUFHckIsa0JBQWEsR0FBRyxLQUFLLENBQUM7UUFHdEIsY0FBUyxHQUF1QixTQUFTLENBQUM7UUFHMUMsY0FBU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1bmRlZmluZWQgPSB1bmRlZmluZWQ7XG5cbiAgYWJzdHJhY3QgZ2V0IHJlbmRlckNlbGxUZW1wbGF0ZSgpOiBUZW1wbGF0ZVJlZjx1bmtub3duPjtcbiAgYWJzdHJhY3QgZ2V0IHJlbmRlckhlYWRlclRlbXBsYXRlKCk6IFRlbXBsYXRlUmVmPHVua25vd24+O1xuICBhYnN0cmFjdCBnZXQgcmVuZGVyRm9vdGVyVGVtcGxhdGUoKTogVGVtcGxhdGVSZWY8dW5rbm93bj47XG5cbiAgYWJzdHJhY3QgZ2V0IGxvYWRpbmdFbmFibGVkKCk6IGJvb2xlYW47XG5cbiAgYWJzdHJhY3QgZ2V0IG5hbWUoKTogc3RyaW5nO1xuXG4gIGdldCBjc3NDbGFzcygpOiBzdHJpbmcgfCB1bmRlZmluZWQge1xuICAgIHJldHVybiBudWxsO1xuICB9XG59XG4iXX0=
|
@@ -13,6 +13,9 @@ export class AXDataTableTextColumnComponent extends AXDataTableColumnComponent {
|
|
13
13
|
get renderCellTemplate() {
|
14
14
|
return this.cellTemplate ?? this._contentCellTemplate;
|
15
15
|
}
|
16
|
+
get renderFooterTemplate() {
|
17
|
+
return this.footerTemplate ?? this._contentFooterTemplate;
|
18
|
+
}
|
16
19
|
get renderHeaderTemplate() {
|
17
20
|
return this.headerTemplate ?? this._contentHeaderTemplate;
|
18
21
|
}
|
@@ -27,16 +30,17 @@ export class AXDataTableTextColumnComponent extends AXDataTableColumnComponent {
|
|
27
30
|
return !this.format ? value : this.formatService.format(value, this.format, this.formatOptions);
|
28
31
|
}
|
29
32
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXDataTableTextColumnComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
30
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.2", type: AXDataTableTextColumnComponent, selector: "ax-text-column", inputs: { width: "width", caption: "caption", allowSorting: "allowSorting", allowResizing: "allowResizing", fixed: "fixed", dataField: "dataField", wrapText: "wrapText", cellTemplate: "cellTemplate", headerTemplate: "headerTemplate", format: "format", formatOptions: "formatOptions" }, providers: [
|
33
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.2", type: AXDataTableTextColumnComponent, selector: "ax-text-column", inputs: { width: "width", caption: "caption", allowSorting: "allowSorting", allowResizing: "allowResizing", fixed: "fixed", dataField: "dataField", wrapText: "wrapText", cellTemplate: "cellTemplate", footerTemplate: "footerTemplate", headerTemplate: "headerTemplate", format: "format", formatOptions: "formatOptions" }, providers: [
|
31
34
|
{
|
32
35
|
provide: AXDataTableColumnComponent,
|
33
36
|
useExisting: AXDataTableTextColumnComponent,
|
34
37
|
},
|
35
|
-
], viewQueries: [{ propertyName: "_contentCellTemplate", first: true, predicate: ["cell"], descendants: true }, { propertyName: "_contentHeaderTemplate", first: true, predicate: ["header"], descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
38
|
+
], viewQueries: [{ propertyName: "_contentCellTemplate", first: true, predicate: ["cell"], descendants: true }, { propertyName: "_contentFooterTemplate", first: true, predicate: ["footer"], descendants: true }, { propertyName: "_contentHeaderTemplate", first: true, predicate: ["header"], descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
36
39
|
<ng-template #header>{{ caption }}</ng-template>
|
37
40
|
<ng-template #cell let-row>
|
38
41
|
{{ getDisplayText(row.data, this.dataField) }}
|
39
42
|
</ng-template>
|
43
|
+
<ng-template #footer></ng-template>
|
40
44
|
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
41
45
|
}
|
42
46
|
__decorate([
|
@@ -54,6 +58,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImpor
|
|
54
58
|
<ng-template #cell let-row>
|
55
59
|
{{ getDisplayText(row.data, this.dataField) }}
|
56
60
|
</ng-template>
|
61
|
+
<ng-template #footer></ng-template>
|
57
62
|
`,
|
58
63
|
encapsulation: ViewEncapsulation.None,
|
59
64
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
@@ -74,6 +79,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImpor
|
|
74
79
|
}], _contentCellTemplate: [{
|
75
80
|
type: ViewChild,
|
76
81
|
args: ['cell']
|
82
|
+
}], footerTemplate: [{
|
83
|
+
type: Input
|
84
|
+
}], _contentFooterTemplate: [{
|
85
|
+
type: ViewChild,
|
86
|
+
args: ['footer']
|
77
87
|
}], headerTemplate: [{
|
78
88
|
type: Input
|
79
89
|
}], _contentHeaderTemplate: [{
|
@@ -84,4 +94,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImpor
|
|
84
94
|
}], formatOptions: [{
|
85
95
|
type: Input
|
86
96
|
}] } });
|
87
|
-
//# sourceMappingURL=data:application/json;base64,
|
97
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0YS10ZXh0LWNvbHVtbi5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2NvbXBvbmVudHMvZGF0YS10YWJsZS9zcmMvbGliL2NvbHVtbnMvZGF0YS10ZXh0LWNvbHVtbi5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBbUIsZUFBZSxFQUFFLE1BQU0scUJBQXFCLENBQUM7QUFDdkUsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLHVCQUF1QixDQUFDO0FBQ2pELE9BQU8sRUFBRSx1QkFBdUIsRUFBRSxTQUFTLEVBQUUsS0FBSyxFQUFFLFdBQVcsRUFBRSxTQUFTLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSxFQUFFLE1BQU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