@acorex/components 17.0.23 → 17.0.25
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-base.component.d.ts +1 -0
- package/data-pager/lib/data-pager-numeric-selector.component.d.ts +1 -0
- package/data-pager/lib/data-pager.component.d.ts +4 -1
- 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-base.component.mjs +4 -8
- package/esm2022/data-pager/lib/data-pager-numeric-selector.component.mjs +39 -28
- package/esm2022/data-pager/lib/data-pager.component.mjs +15 -6
- 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 +58 -39
- 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
|
+
}
|
@@ -31,6 +31,7 @@ export declare class AXDataPagerChangedEvent extends AXEvent implements AXDataPa
|
|
31
31
|
export declare abstract class AXDataPagerParentComponent {
|
32
32
|
abstract readonly: boolean;
|
33
33
|
abstract disabled: boolean;
|
34
|
+
abstract isLoading: boolean;
|
34
35
|
abstract onChanged: EventEmitter<AXDataPagerChangedEvent>;
|
35
36
|
abstract onOptionChanged: EventEmitter<AXOptionChangedEvent>;
|
36
37
|
abstract get displayInfo(): AXDataPagerData;
|
@@ -4,6 +4,9 @@ import { AXDataPagerChangedEvent, AXDataPagerData } from './data-pager-base.comp
|
|
4
4
|
import * as i0 from "@angular/core";
|
5
5
|
export declare class AXDataPagerComponent extends MXValueComponent<number> {
|
6
6
|
private _parent;
|
7
|
+
private _isLoading;
|
8
|
+
get isLoading(): boolean;
|
9
|
+
set isLoading(v: boolean);
|
7
10
|
private _size;
|
8
11
|
get size(): number;
|
9
12
|
set size(v: number);
|
@@ -31,5 +34,5 @@ export declare class AXDataPagerComponent extends MXValueComponent<number> {
|
|
31
34
|
goPrevPage(): void;
|
32
35
|
goToPage(page: number): void;
|
33
36
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXDataPagerComponent, [{ optional: true; }]>;
|
34
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AXDataPagerComponent, "ax-data-pager", never, { "value": { "alias": "value"; "required": false; }; "name": { "alias": "name"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "size": { "alias": "size"; "required": false; }; "total": { "alias": "total"; "required": false; }; "displayMode": { "alias": "displayMode"; "required": false; }; }, { "valueChange": "valueChange"; "onValueChanged": "onValueChanged"; "disabledChange": "disabledChange"; "readonlyChange": "readonlyChange"; "displayModeChange": "displayModeChange"; "onChanged": "onChanged"; }, never, ["ax-prefix", "ax-suffix"], false, never>;
|
37
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AXDataPagerComponent, "ax-data-pager", never, { "value": { "alias": "value"; "required": false; }; "name": { "alias": "name"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; }; "size": { "alias": "size"; "required": false; }; "total": { "alias": "total"; "required": false; }; "displayMode": { "alias": "displayMode"; "required": false; }; }, { "valueChange": "valueChange"; "onValueChanged": "onValueChanged"; "disabledChange": "disabledChange"; "readonlyChange": "readonlyChange"; "displayModeChange": "displayModeChange"; "onChanged": "onChanged"; }, never, ["ax-prefix", "ax-suffix"], false, never>;
|
35
38
|
}
|
@@ -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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9saWJzL2NvbXBvbmVudHMvY29tbW9uL3NyYy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUF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2xpYi9jb21wb25lbnRzL3NlbGVjdGlvbi1iYXNlLmNvbXBvbmVudC5jbGFzcyc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9jb21wb25lbnRzL3ZhbHVlLWNvbXBvbmVudC5jbGFzcyc7XG5cbmV4cG9ydCAqIGZyb20gJy4vbGliL2RpcmVjdGl2ZXMvYXV0by1mb2N1cy5kaXJlY3RpdmUnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvZGlyZWN0aXZlcy9kZWxheWVkLXZhbHVlLWNoYW5nZWQuZGlyZWN0aXZlJztcbmV4cG9ydCAqIGZyb20gJy4vbGliL2RpcmVjdGl2ZXMvaG90a2V5LmRpcmVjdGl2ZSc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9kaXJlY3RpdmVzL2luZmluaXRlLXNjcm9sbC5kaXJlY3RpdmUnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvZGlyZWN0aXZlcy9pbnZlcnRlZC1jb2xvci5kaXJlY3RpdmUnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvZGlyZWN0aXZlcy9yZXNwb25zaXZlLmRpcmVjdGl2ZSc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9kaXJlY3RpdmVzL3JpcHBsZS5kaXJlY3RpdmUnO1xuXG5leHBvcnQgKiBmcm9tICcuL2xpYi9zZXJ2aWNlcy9kb20uc2VydmljZSc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9zZXJ2aWNlcy9ob3RrZXkuc2VydmljZSc7XG4iXX0=
|
@@ -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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW52ZXJ0ZWQtY29sb3IuZGlyZWN0aXZlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL2NvbW1vbi9zcmMvbGliL2RpcmVjdGl2ZXMvaW52ZXJ0ZWQtY29sb3IuZGlyZWN0aXZlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxnQkFBZ0IsRUFBRSxTQUFTLEVBQUUsZ0JBQWdCLEVBQUUsZUFBZSxFQUFFLE1BQU0sRUFBRSxNQUFNLEVBQUUsS0FBSyxFQUFFLE1BQU0sZUFBZSxDQUFDOztBQU90SCxNQUFNLE9BQU8sd0JBQXdCO0lBR25DO1FBRkEsVUFBSyxHQUFHLEtBQUssQ0FBQyxRQUFRLEVBQW9CLENBQUM7UUFDM0MsUUFBRyxHQUFHLE1BQU0sQ0FBQyxnQkFBZ0IsQ0FBQyxDQUFDO1FBRTdCLGVBQWUsQ0FDYixHQUFHLEVBQUU7WUFDSCxJQUFJLENBQUMsV0FBVyxFQUFFLENBQUM7WUFDbkIsT0FBTyxDQUFDLEdBQUcsQ0FBQyxTQUFTLENBQUMsQ0FBQztRQUN6QixDQUFDLEVBQ0QsRUFBRSxLQUFLLEVBQUUsZ0JBQWdCLENBQUMsY0FBYyxFQUFFLENBQzNDLENBQUM7UUFD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sdWUoYC0tYXgtY29sb3ItJHt0aGlzLmNvbG9yKCl9LTUwMGApO1xuICAgICAgZm9yZUNvbG9yID0gZ2V0Q29tcHV0ZWRTdHlsZShkb2N1bWVudC5kb2N1bWVudEVsZW1lbnQpLmdldFByb3BlcnR5VmFsdWUoYC0tYXgtY29sb3ItJHt0aGlzLmNvbG9yKCl9LWZvcmVgKTtcbiAgICAgIHJhbmdlLmZvckVhY2goKGMpID0+IHtcbiAgICAgICAgaW52ZXJ0ZWRWYXJpYWJsZXMucHVzaCh7IG5hbWU6IGAtLWF4LWNvbG9yLSR7dGhpcy5jb2xvcigpfS0ke2N9YCwgdmFsdWU6IGAke2ZvcmVDb2xvcn1gIH0pO1xuICAgICAgfSk7XG4gICAgICBpbnZlcnRlZFZhcmlhYmxlcy5wdXNoKHsgbmFtZTogYC0tYXgtY29sb3ItJHt0aGlzLmNvbG9yKCl9LWZvcmVgLCB2YWx1ZTogYCR7Y29sb3J9YCB9KTtcbiAgICAgIGludmVydGVkVmFyaWFibGVzLnB1c2goeyBuYW1lOiBgLS1heC1jb2xvci0ke3RoaXMuY29sb3IoKX0tZm9yZS10aW50YCwgdmFsdWU6IGAke2NvbG9yfWAgfSk7XG4gICAgfVxuXG4gICAgaW52ZXJ0ZWRWYXJpYWJsZXMuZm9yRWFjaCgoYykgPT4ge1xuICAgICAgKHRoaXMucmVmLmVsZW1lbnQubmF0aXZlRWxlbWVudCBhcyBIVE1MRWxlbWVudCkuc3R5bGUuc2V0UHJvcGVydHkoYy5uYW1lLCBjLnZhbHVlKTtcbiAgICB9KTtcbiAgfVxufVxuIl19
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { AXEvent, MXInteractiveComponent
|
1
|
+
import { AXEvent, MXInteractiveComponent } from '@acorex/components/common';
|
2
2
|
import { AXUnsubscriber } from '@acorex/core/utils';
|
3
3
|
import { Injectable, inject } from '@angular/core';
|
4
4
|
import * as i0 from "@angular/core";
|
@@ -26,15 +26,11 @@ export class AXDataPagerChild extends MXInteractiveComponent {
|
|
26
26
|
this._parent = inject(AXDataPagerParentComponent);
|
27
27
|
this._unsubscriber = inject(AXUnsubscriber);
|
28
28
|
//
|
29
|
-
this._parent.onChanged
|
30
|
-
.pipe(this._unsubscriber.takeUntilDestroy)
|
31
|
-
.subscribe((c) => {
|
29
|
+
this._parent.onChanged.pipe(this._unsubscriber.takeUntilDestroy).subscribe((c) => {
|
32
30
|
this.applyParent();
|
33
31
|
});
|
34
32
|
//
|
35
|
-
this._parent.onOptionChanged
|
36
|
-
.pipe(this._unsubscriber.takeUntilDestroy)
|
37
|
-
.subscribe((c) => {
|
33
|
+
this._parent.onOptionChanged.pipe(this._unsubscriber.takeUntilDestroy).subscribe((c) => {
|
38
34
|
this.applyParent();
|
39
35
|
});
|
40
36
|
}
|
@@ -47,4 +43,4 @@ export class AXDataPagerChild extends MXInteractiveComponent {
|
|
47
43
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXDataPagerChild, decorators: [{
|
48
44
|
type: Injectable
|
49
45
|
}], ctorParameters: () => [] });
|
50
|
-
//# sourceMappingURL=data:application/json;base64,
|
46
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0YS1wYWdlci1iYXNlLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy9kYXRhLXBhZ2VyL3NyYy9saWIvZGF0YS1wYWdlci1iYXNlLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsT0FBTyxFQUF3QixzQkFBc0IsRUFBRSxNQUFNLDJCQUEyQixDQUFDO0FBQ2xHLE9BQU8sRUFBRSxjQUFjLEVBQUUsTUFBTSxvQkFBb0IsQ0FBQztBQUNwRCxPQUFPLEVBQWdCLFVBQVUsR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wb25lbnQge1xuICBwcm90ZWN0ZWQgX3BhcmVudDogQVhEYXRhUGFnZXJQYXJlbnRDb21wb25lbnQgPSBpbmplY3QoQVhEYXRhUGFnZXJQYXJlbnRDb21wb25lbnQpO1xuICBwcm90ZWN0ZWQgX3Vuc3Vic2NyaWJlcjogQVhVbnN1YnNjcmliZXIgPSBpbmplY3QoQVhVbnN1YnNjcmliZXIpO1xuXG4gIGNvbnN0cnVjdG9yKCkge1xuICAgIHN1cGVyKCk7XG4gICAgLy9cbiAgICB0aGlzLl9wYXJlbnQub25DaGFuZ2VkLnBpcGUodGhpcy5fdW5zdWJzY3JpYmVyLnRha2VVbnRpbERlc3Ryb3kpLnN1YnNjcmliZSgoYykgPT4ge1xuICAgICAgdGhpcy5hcHBseVBhcmVudCgpO1xuICAgIH0pO1xuICAgIC8vXG4gICAgdGhpcy5fcGFyZW50Lm9uT3B0aW9uQ2hhbmdlZC5waXBlKHRoaXMuX3Vuc3Vic2NyaWJlci50YWtlVW50aWxEZXN0cm95KS5zdWJzY3JpYmUoKGMpID0+IHtcbiAgICAgIHRoaXMuYXBwbHlQYXJlbnQoKTtcbiAgICB9KTtcbiAgfVxuXG4gIG5nQWZ0ZXJWaWV3SW5pdCgpIHtcbiAgICB0aGlzLmFwcGx5UGFyZW50KCk7XG4gIH1cblxuICBwcm90ZWN0ZWQgYWJzdHJhY3QgYXBwbHlQYXJlbnQoKTogdm9pZDtcbn1cbiJdfQ==
|
@@ -5,16 +5,19 @@ 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);
|
11
12
|
this._items = [];
|
12
13
|
this._currentPage = 1;
|
13
14
|
this._lastPage = 1;
|
15
|
+
this._loading = false;
|
14
16
|
this._displayCount = 5;
|
15
17
|
}
|
16
18
|
applyParent() {
|
17
19
|
this._currentPage = this._parent.displayInfo.page;
|
20
|
+
this._loading = this._parent.isLoading;
|
18
21
|
this._lastPage = this._parent.displayInfo.totalPages;
|
19
22
|
//
|
20
23
|
this._items = [];
|
@@ -58,19 +61,23 @@ export class AXDataPagerNumericSelectorComponent extends AXDataPagerChild {
|
|
58
61
|
<ax-button [disabled]="_currentPage === 1 || _parent.disabled" look="blank" class="ax-sm" (onClick)="_handleOnItemClick({ data: 1 })">
|
59
62
|
<ax-icon class="ax-icon ax-icon-first-page ax-text-xl"></ax-icon>
|
60
63
|
</ax-button>
|
61
|
-
@
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
64
|
+
@if (!_parent.isLoading) {
|
65
|
+
@for (item of _items; track $index) {
|
66
|
+
<ax-button
|
67
|
+
class="ax-sm"
|
68
|
+
[disabled]="_parent.disabled"
|
69
|
+
[color]="_currentPage === item.data ? 'primary' : 'solid'"
|
70
|
+
[look]="_currentPage === item.data ? 'solid' : 'blank'"
|
71
|
+
[text]="item.text"
|
72
|
+
(onClick)="_handleOnItemClick(item)"
|
73
|
+
>
|
74
|
+
@if (item.iconClass) {
|
75
|
+
<ax-icon class="ax-icon ax-text-xl" [ngClass]="item.iconClass"></ax-icon>
|
76
|
+
}
|
77
|
+
</ax-button>
|
78
|
+
}
|
79
|
+
} @else {
|
80
|
+
<ax-skeleton></ax-skeleton>
|
74
81
|
}
|
75
82
|
|
76
83
|
<ax-button
|
@@ -81,7 +88,7 @@ export class AXDataPagerNumericSelectorComponent extends AXDataPagerChild {
|
|
81
88
|
>
|
82
89
|
<ax-icon class="ax-icon ax-icon-last-page ax-text-xl"></ax-icon>
|
83
90
|
</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 }); }
|
91
|
+
`, 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
92
|
}
|
86
93
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXDataPagerNumericSelectorComponent, decorators: [{
|
87
94
|
type: Component,
|
@@ -91,19 +98,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImpor
|
|
91
98
|
<ax-button [disabled]="_currentPage === 1 || _parent.disabled" look="blank" class="ax-sm" (onClick)="_handleOnItemClick({ data: 1 })">
|
92
99
|
<ax-icon class="ax-icon ax-icon-first-page ax-text-xl"></ax-icon>
|
93
100
|
</ax-button>
|
94
|
-
@
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
101
|
+
@if (!_parent.isLoading) {
|
102
|
+
@for (item of _items; track $index) {
|
103
|
+
<ax-button
|
104
|
+
class="ax-sm"
|
105
|
+
[disabled]="_parent.disabled"
|
106
|
+
[color]="_currentPage === item.data ? 'primary' : 'solid'"
|
107
|
+
[look]="_currentPage === item.data ? 'solid' : 'blank'"
|
108
|
+
[text]="item.text"
|
109
|
+
(onClick)="_handleOnItemClick(item)"
|
110
|
+
>
|
111
|
+
@if (item.iconClass) {
|
112
|
+
<ax-icon class="ax-icon ax-text-xl" [ngClass]="item.iconClass"></ax-icon>
|
113
|
+
}
|
114
|
+
</ax-button>
|
115
|
+
}
|
116
|
+
} @else {
|
117
|
+
<ax-skeleton></ax-skeleton>
|
107
118
|
}
|
108
119
|
|
109
120
|
<ax-button
|
@@ -126,4 +137,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImpor
|
|
126
137
|
],
|
127
138
|
}]
|
128
139
|
}] });
|
129
|
-
//# sourceMappingURL=data:application/json;base64,
|
140
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0YS1wYWdlci1udW1lcmljLXNlbGVjdG9yLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy9kYXRhLXBhZ2VyL3NyYy9saWIvZGF0YS1wYWdlci1udW1lcmljLXNlbGVjdG9yLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFDQSxPQUFPLEVBQUUsY0FBYyxFQUFFLE1BQU0sb0JBQW9CLENBQUM7QUFDcEQsT0FBTyxFQUFFLHVCQUF1QixFQUFFLFNBQVMsRUFBRSxpQkFBaUIsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN0RixPQUFPLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSw2QkFBNkIsQ0FBQzs7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