@one-paragon/angular-utilities 2.2.4 → 2.2.6
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/karma.conf.js +44 -0
- package/ng-package.json +7 -0
- package/package.json +15 -27
- package/src/action-state/action-state-spinner/action-state-spinner.component.css +16 -0
- package/src/action-state/action-state-spinner/action-state-spinner.component.html +7 -0
- package/src/action-state/action-state-spinner/action-state-spinner.component.spec.ts +25 -0
- package/src/action-state/action-state-spinner/action-state-spinner.component.ts +25 -0
- package/src/action-state/action-state-ui/action-state-ui.module.ts +13 -0
- package/{action-state/index.d.ts → src/action-state/index.ts} +8 -4
- package/src/action-state/ngrx-ext/ngrx-ext.module.ts +14 -0
- package/src/action-state/ngrx.ts +69 -0
- package/src/http-request-state/RequestStateFactory.ts +56 -0
- package/src/http-request-state/RequestStateStore.ts +284 -0
- package/{http-request-state/deprecated.d.ts → src/http-request-state/deprecated.ts} +20 -20
- package/src/http-request-state/directives/HttpStateDirectiveBase.ts +29 -0
- package/src/http-request-state/directives/http-error-state-directive.ts +21 -0
- package/src/http-request-state/directives/http-inProgress-state-directive.ts +19 -0
- package/src/http-request-state/directives/http-notStarted-state-directive.ts +19 -0
- package/src/http-request-state/directives/http-success-state-directive.ts +29 -0
- package/{http-request-state/directives/index.d.ts → src/http-request-state/directives/index.ts} +5 -5
- package/src/http-request-state/directives/request-state-directive.spec.ts +73 -0
- package/src/http-request-state/directives/request-state-directive.ts +78 -0
- package/src/http-request-state/helpers.ts +30 -0
- package/src/http-request-state/http-state-module.ts +23 -0
- package/{http-request-state/index.d.ts → src/http-request-state/index.ts} +7 -7
- package/src/http-request-state/models/view-context.ts +18 -0
- package/src/http-request-state/observable.spec.ts +43 -0
- package/src/http-request-state/request-state.ts +66 -0
- package/src/http-request-state/rxjs/getRequestorBody.ts +10 -0
- package/src/http-request-state/rxjs/getRequestorState.ts +8 -0
- package/{http-request-state/rxjs/index.d.ts → src/http-request-state/rxjs/index.ts} +4 -4
- package/src/http-request-state/rxjs/tapError.ts +16 -0
- package/src/http-request-state/rxjs/tapSuccess.ts +16 -0
- package/src/http-request-state/strategies.spec.ts +42 -0
- package/src/http-request-state/types.ts +54 -0
- package/src/ngrx/actionable-selector.ts +160 -0
- package/src/ngrx/index.ts +1 -0
- package/{public-api.d.ts → src/public-api.ts} +35 -16
- package/src/rxjs/defaultShareReplay.ts +8 -0
- package/{rxjs/index.d.ts → src/rxjs/index.ts} +5 -5
- package/src/rxjs/mapError.ts +8 -0
- package/src/rxjs/rxjs-operators.ts +130 -0
- package/src/rxjs/subjectifier.ts +17 -0
- package/src/rxjs/subscriber.directive.ts +57 -0
- package/src/specs/clickSubject.spec.ts +95 -0
- package/src/specs/dialog.spec.ts +101 -0
- package/src/specs/toggleGroupDirective.spec.ts +229 -0
- package/src/table-builder/classes/DefaultSettings.ts +11 -0
- package/src/table-builder/classes/MatTableObservableDataSource.ts +23 -0
- package/src/table-builder/classes/TableBuilderConfig.ts +50 -0
- package/src/table-builder/classes/TableBuilderDataSource.ts +64 -0
- package/src/table-builder/classes/TableState.ts +125 -0
- package/src/table-builder/classes/data-store.ts +10 -0
- package/{table-builder/classes/display-col.d.ts → src/table-builder/classes/display-col.ts} +5 -5
- package/src/table-builder/classes/filter-info.ts +125 -0
- package/src/table-builder/classes/table-builder-general-settings.ts +205 -0
- package/src/table-builder/classes/table-builder.ts +105 -0
- package/src/table-builder/classes/table-store.helpers.ts +104 -0
- package/src/table-builder/classes/table-store.ts +440 -0
- package/src/table-builder/components/array-column.component.ts +34 -0
- package/src/table-builder/components/column-builder/column-builder.component.html +87 -0
- package/src/table-builder/components/column-builder/column-builder.component.scss +43 -0
- package/src/table-builder/components/column-builder/column-builder.component.spec.ts +49 -0
- package/src/table-builder/components/column-builder/column-builder.component.ts +129 -0
- package/src/table-builder/components/column-builder/column-helpers.ts +54 -0
- package/src/table-builder/components/column-header-menu/column-header-menu.component.html +110 -0
- package/src/table-builder/components/column-header-menu/column-header-menu.component.scss +97 -0
- package/src/table-builder/components/column-header-menu/column-header-menu.component.ts +94 -0
- package/src/table-builder/components/date-filter/date-filter.component.html +25 -0
- package/src/table-builder/components/date-filter/date-filter.component.ts +22 -0
- package/src/table-builder/components/date-time-filter/date-time-filter.component.html +11 -0
- package/src/table-builder/components/date-time-filter/date-time-filter.component.ts +20 -0
- package/src/table-builder/components/filter/filter.component.html +109 -0
- package/src/table-builder/components/filter/filter.component.scss +60 -0
- package/src/table-builder/components/filter/filter.component.spec.ts +86 -0
- package/src/table-builder/components/filter/filter.component.ts +64 -0
- package/src/table-builder/components/filter/in-list/in-list-filter.component.ts +102 -0
- package/src/table-builder/components/gen-col-displayer/gen-col-displayer.component.html +60 -0
- package/src/table-builder/components/gen-col-displayer/gen-col-displayer.component.scss +57 -0
- package/src/table-builder/components/gen-col-displayer/gen-col-displayer.component.ts +44 -0
- package/src/table-builder/components/generic-table/generic-table.component.html +97 -0
- package/src/table-builder/components/generic-table/generic-table.component.scss +38 -0
- package/src/table-builder/components/generic-table/generic-table.component.ts +403 -0
- package/src/table-builder/components/generic-table/paginator.component.ts +112 -0
- package/src/table-builder/components/group-by-list/group-by-list.component.css +17 -0
- package/src/table-builder/components/group-by-list/group-by-list.component.html +14 -0
- package/src/table-builder/components/group-by-list/group-by-list.component.spec.ts +23 -0
- package/src/table-builder/components/group-by-list/group-by-list.component.ts +25 -0
- package/src/table-builder/components/in-filter/in-filter.component.css +3 -0
- package/src/table-builder/components/in-filter/in-filter.component.html +23 -0
- package/src/table-builder/components/in-filter/in-filter.component.ts +65 -0
- package/{table-builder/components/index.d.ts → src/table-builder/components/index.ts} +9 -9
- package/src/table-builder/components/initialization-component/initialization.component.html +78 -0
- package/src/table-builder/components/initialization-component/initialization.component.ts +27 -0
- package/src/table-builder/components/link-column.component.ts +42 -0
- package/src/table-builder/components/number-filter/number-filter.component.css +10 -0
- package/src/table-builder/components/number-filter/number-filter.component.html +25 -0
- package/src/table-builder/components/number-filter/number-filter.component.spec.ts +30 -0
- package/src/table-builder/components/number-filter/number-filter.component.ts +25 -0
- package/src/table-builder/components/profiles-menu/profiles-menu.component.html +77 -0
- package/src/table-builder/components/profiles-menu/profiles-menu.component.scss +126 -0
- package/src/table-builder/components/profiles-menu/profiles-menu.component.spec.ts +23 -0
- package/src/table-builder/components/profiles-menu/profiles-menu.component.ts +63 -0
- package/src/table-builder/components/reset-menu/reset-menu.component.css +3 -0
- package/src/table-builder/components/reset-menu/reset-menu.component.html +10 -0
- package/src/table-builder/components/reset-menu/reset-menu.component.ts +87 -0
- package/src/table-builder/components/scroll-strategy.ts +139 -0
- package/src/table-builder/components/sort-menu/sort-menu.component-store.ts +57 -0
- package/src/table-builder/components/sort-menu/sort-menu.component.html +115 -0
- package/src/table-builder/components/sort-menu/sort-menu.component.scss +119 -0
- package/src/table-builder/components/sort-menu/sort-menu.component.ts +88 -0
- package/src/table-builder/components/table-container/table-container.component.html +81 -0
- package/src/table-builder/components/table-container/table-container.component.ts +403 -0
- package/src/table-builder/components/table-container/table-container.helpers/data-state.helpers.ts +113 -0
- package/src/table-builder/components/table-container/table-container.helpers/filter-state.helpers.ts +125 -0
- package/src/table-builder/components/table-container/table-container.helpers/groupBy.helpers.ts +122 -0
- package/src/table-builder/components/table-container/table-container.helpers/meta-data.helpers.ts +16 -0
- package/src/table-builder/components/table-container/table-container.helpers/sort-state.helpers.ts +47 -0
- package/src/table-builder/components/table-container/table-container.scss +47 -0
- package/src/table-builder/components/table-container/tableProps.ts +18 -0
- package/src/table-builder/components/table-container/virtual-scroll-container.ts +216 -0
- package/src/table-builder/components/table-container-filter/filter-list/filter-list.component.html +35 -0
- package/src/table-builder/components/table-container-filter/filter-list/filter-list.component.ts +44 -0
- package/src/table-builder/components/table-container-filter/gen-filter-displayer/gen-filter-displayer.component.css +40 -0
- package/src/table-builder/components/table-container-filter/gen-filter-displayer/gen-filter-displayer.component.html +11 -0
- package/src/table-builder/components/table-container-filter/gen-filter-displayer/gen-filter-displayer.component.spec.ts +85 -0
- package/src/table-builder/components/table-container-filter/gen-filter-displayer/gen-filter-displayer.component.ts +36 -0
- package/src/table-builder/components/table-container-filter/table-wrapper-filter-store.ts +23 -0
- package/src/table-builder/components/table-header-menu/table-header-menu.component.css +21 -0
- package/src/table-builder/components/table-header-menu/table-header-menu.component.html +50 -0
- package/src/table-builder/components/table-header-menu/table-header-menu.component.ts +35 -0
- package/src/table-builder/directives/custom-cell-directive.ts +57 -0
- package/{table-builder/directives/index.d.ts → src/table-builder/directives/index.ts} +6 -5
- package/src/table-builder/directives/multi-sort.directive.spec.ts +124 -0
- package/src/table-builder/directives/multi-sort.directive.ts +50 -0
- package/src/table-builder/directives/resize-column.directive.ts +107 -0
- package/src/table-builder/directives/table-wrapper.directive.ts +13 -0
- package/src/table-builder/directives/tb-filter.directive.ts +376 -0
- package/src/table-builder/enums/filterTypes.ts +40 -0
- package/src/table-builder/functions/boolean-filter-function.ts +12 -0
- package/src/table-builder/functions/date-filter-function.ts +78 -0
- package/src/table-builder/functions/download-data.ts +11 -0
- package/src/table-builder/functions/null-filter-function.ts +9 -0
- package/src/table-builder/functions/number-filter-function.ts +41 -0
- package/src/table-builder/functions/sort-data-function.ts +80 -0
- package/src/table-builder/functions/string-filter-function.ts +53 -0
- package/{table-builder/interfaces/ColumnInfo.d.ts → src/table-builder/interfaces/ColumnInfo.ts} +7 -6
- package/{table-builder/interfaces/dictionary.d.ts → src/table-builder/interfaces/dictionary.ts} +3 -3
- package/src/table-builder/interfaces/report-def.ts +254 -0
- package/src/table-builder/ngrx/tableBuilderStateStore.ts +197 -0
- package/src/table-builder/pipes/column-total.pipe.ts +16 -0
- package/src/table-builder/pipes/format-filter-type.pipe.ts +12 -0
- package/src/table-builder/pipes/format-filter-value.pipe.ts +67 -0
- package/src/table-builder/pipes/key-display.ts +13 -0
- package/src/table-builder/services/export-to-csv.service.ts +113 -0
- package/src/table-builder/services/link-creator.service.ts +98 -0
- package/src/table-builder/services/table-template-service.ts +47 -0
- package/src/table-builder/services/transform-creator.ts +96 -0
- package/src/table-builder/specs/table-custom-filters.spec.ts +262 -0
- package/src/table-builder/styles/collapser.styles.scss +16 -0
- package/src/table-builder/table-builder.module.ts +38 -0
- package/src/test.ts +17 -0
- package/src/utilities/array-helpers.ts +13 -0
- package/src/utilities/directives/auto-focus.directive.ts +20 -0
- package/src/utilities/directives/clickEmitterDirective.ts +15 -0
- package/src/utilities/directives/clickSubject.ts +19 -0
- package/src/utilities/directives/conditional-classes.directive.ts +36 -0
- package/src/utilities/directives/dialog-service.ts +19 -0
- package/src/utilities/directives/dialog.ts +144 -0
- package/src/utilities/directives/mat-toggle-group-directive.ts +60 -0
- package/src/utilities/directives/prevent-enter.directive.ts +12 -0
- package/src/utilities/directives/stop-propagation.directive.ts +19 -0
- package/src/utilities/directives/styler.ts +44 -0
- package/src/utilities/directives/trim-whitespace.directive.ts +20 -0
- package/{utilities/index.d.ts → src/utilities/index.ts} +22 -15
- package/src/utilities/module.ts +53 -0
- package/src/utilities/pipes/function.pipe.ts +21 -0
- package/src/utilities/pipes/phone.pipe.ts +20 -0
- package/src/utilities/pipes/space-case.pipes.spec.ts +47 -0
- package/src/utilities/pipes/space-case.pipes.ts +26 -0
- package/tsconfig.lib.json +20 -0
- package/tsconfig.lib.prod.json +10 -0
- package/tsconfig.spec.json +17 -0
- package/action-state/action-state-spinner/action-state-spinner.component.d.ts +0 -12
- package/action-state/action-state-ui/action-state-ui.module.d.ts +0 -7
- package/action-state/ngrx-ext/ngrx-ext.module.d.ts +0 -8
- package/action-state/ngrx.d.ts +0 -31
- package/fesm2022/one-paragon-angular-utilities.mjs +0 -6531
- package/fesm2022/one-paragon-angular-utilities.mjs.map +0 -1
- package/http-request-state/RequestStateFactory.d.ts +0 -17
- package/http-request-state/RequestStateStore.d.ts +0 -101
- package/http-request-state/directives/HttpStateDirectiveBase.d.ts +0 -14
- package/http-request-state/directives/http-error-state-directive.d.ts +0 -10
- package/http-request-state/directives/http-inProgress-state-directive.d.ts +0 -10
- package/http-request-state/directives/http-notStarted-state-directive.d.ts +0 -10
- package/http-request-state/directives/http-success-state-directive.d.ts +0 -17
- package/http-request-state/directives/request-state-directive.d.ts +0 -34
- package/http-request-state/helpers.d.ts +0 -9
- package/http-request-state/http-state-module.d.ts +0 -11
- package/http-request-state/request-state.d.ts +0 -12
- package/http-request-state/rxjs/getRequestorBody.d.ts +0 -3
- package/http-request-state/rxjs/getRequestorState.d.ts +0 -3
- package/http-request-state/rxjs/tapError.d.ts +0 -3
- package/http-request-state/rxjs/tapSuccess.d.ts +0 -3
- package/http-request-state/types.d.ts +0 -41
- package/index.d.ts +0 -5
- package/ngrx/actionable-selector.d.ts +0 -32
- package/ngrx/index.d.ts +0 -1
- package/rxjs/defaultShareReplay.d.ts +0 -2
- package/rxjs/mapError.d.ts +0 -2
- package/rxjs/rxjs-operators.d.ts +0 -13
- package/rxjs/subjectifier.d.ts +0 -10
- package/rxjs/subscriber.directive.d.ts +0 -14
- package/table-builder/classes/DefaultSettings.d.ts +0 -9
- package/table-builder/classes/MatTableObservableDataSource.d.ts +0 -9
- package/table-builder/classes/TableBuilderConfig.d.ts +0 -23
- package/table-builder/classes/TableBuilderDataSource.d.ts +0 -18
- package/table-builder/classes/TableState.d.ts +0 -81
- package/table-builder/classes/data-store.d.ts +0 -8
- package/table-builder/classes/filter-info.d.ts +0 -39
- package/table-builder/classes/table-builder-general-settings.d.ts +0 -119
- package/table-builder/classes/table-builder.d.ts +0 -22
- package/table-builder/classes/table-store.d.ts +0 -146
- package/table-builder/classes/table-store.helpers.d.ts +0 -31
- package/table-builder/components/array-column.component.d.ts +0 -15
- package/table-builder/components/column-builder/column-builder.component.d.ts +0 -41
- package/table-builder/components/column-builder/column-helpers.d.ts +0 -38
- package/table-builder/components/column-header-menu/column-header-menu.component.d.ts +0 -50
- package/table-builder/components/date-filter/date-filter.component.d.ts +0 -37
- package/table-builder/components/date-time-filter/date-time-filter.component.d.ts +0 -37
- package/table-builder/components/filter/filter.component.d.ts +0 -48
- package/table-builder/components/filter/in-list/in-list-filter.component.d.ts +0 -22
- package/table-builder/components/gen-col-displayer/gen-col-displayer.component.d.ts +0 -17
- package/table-builder/components/generic-table/generic-table.component.d.ts +0 -85
- package/table-builder/components/generic-table/paginator.component.d.ts +0 -26
- package/table-builder/components/group-by-list/group-by-list.component.d.ts +0 -11
- package/table-builder/components/in-filter/in-filter.component.d.ts +0 -20
- package/table-builder/components/initialization-component/initialization.component.d.ts +0 -15
- package/table-builder/components/link-column.component.d.ts +0 -23
- package/table-builder/components/number-filter/number-filter.component.d.ts +0 -39
- package/table-builder/components/profiles-menu/profiles-menu.component.d.ts +0 -33
- package/table-builder/components/reset-menu/reset-menu.component.d.ts +0 -25
- package/table-builder/components/scroll-strategy.d.ts +0 -45
- package/table-builder/components/sort-menu/sort-menu.component-store.d.ts +0 -24
- package/table-builder/components/sort-menu/sort-menu.component.d.ts +0 -19
- package/table-builder/components/table-container/table-container.component.d.ts +0 -104
- package/table-builder/components/table-container/table-container.helpers/data-state.helpers.d.ts +0 -7
- package/table-builder/components/table-container/table-container.helpers/filter-state.helpers.d.ts +0 -19
- package/table-builder/components/table-container/table-container.helpers/groupBy.helpers.d.ts +0 -19
- package/table-builder/components/table-container/table-container.helpers/meta-data.helpers.d.ts +0 -2
- package/table-builder/components/table-container/table-container.helpers/sort-state.helpers.d.ts +0 -12
- package/table-builder/components/table-container/tableProps.d.ts +0 -10
- package/table-builder/components/table-container/virtual-scroll-container.d.ts +0 -40
- package/table-builder/components/table-container-filter/filter-list/filter-list.component.d.ts +0 -15
- package/table-builder/components/table-container-filter/gen-filter-displayer/gen-filter-displayer.component.d.ts +0 -12
- package/table-builder/components/table-container-filter/table-wrapper-filter-store.d.ts +0 -14
- package/table-builder/components/table-header-menu/table-header-menu.component.d.ts +0 -15
- package/table-builder/directives/custom-cell-directive.d.ts +0 -34
- package/table-builder/directives/multi-sort.directive.d.ts +0 -10
- package/table-builder/directives/resize-column.directive.d.ts +0 -43
- package/table-builder/directives/table-wrapper.directive.d.ts +0 -8
- package/table-builder/directives/tb-filter.directive.d.ts +0 -116
- package/table-builder/enums/filterTypes.d.ts +0 -36
- package/table-builder/functions/boolean-filter-function.d.ts +0 -3
- package/table-builder/functions/date-filter-function.d.ts +0 -4
- package/table-builder/functions/download-data.d.ts +0 -1
- package/table-builder/functions/null-filter-function.d.ts +0 -2
- package/table-builder/functions/number-filter-function.d.ts +0 -4
- package/table-builder/functions/sort-data-function.d.ts +0 -6
- package/table-builder/functions/string-filter-function.d.ts +0 -5
- package/table-builder/interfaces/report-def.d.ts +0 -223
- package/table-builder/ngrx/tableBuilderStateStore.d.ts +0 -69
- package/table-builder/pipes/column-total.pipe.d.ts +0 -8
- package/table-builder/pipes/format-filter-type.pipe.d.ts +0 -8
- package/table-builder/pipes/format-filter-value.pipe.d.ts +0 -11
- package/table-builder/pipes/key-display.d.ts +0 -9
- package/table-builder/services/export-to-csv.service.d.ts +0 -14
- package/table-builder/services/link-creator.service.d.ts +0 -16
- package/table-builder/services/table-template-service.d.ts +0 -14
- package/table-builder/services/transform-creator.d.ts +0 -9
- package/table-builder/table-builder.module.d.ts +0 -14
- package/utilities/array-helpers.d.ts +0 -1
- package/utilities/directives/auto-focus.directive.d.ts +0 -9
- package/utilities/directives/clickEmitterDirective.d.ts +0 -7
- package/utilities/directives/clickSubject.d.ts +0 -9
- package/utilities/directives/conditional-classes.directive.d.ts +0 -12
- package/utilities/directives/dialog-service.d.ts +0 -10
- package/utilities/directives/dialog.d.ts +0 -45
- package/utilities/directives/mat-toggle-group-directive.d.ts +0 -21
- package/utilities/directives/prevent-enter.directive.d.ts +0 -6
- package/utilities/directives/stop-propagation.directive.d.ts +0 -7
- package/utilities/directives/styler.d.ts +0 -16
- package/utilities/directives/trim-whitespace.directive.d.ts +0 -7
- package/utilities/module.d.ts +0 -19
- package/utilities/pipes/function.pipe.d.ts +0 -11
- package/utilities/pipes/phone.pipe.d.ts +0 -8
- package/utilities/pipes/space-case.pipes.d.ts +0 -17
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { MetaData } from '../../../interfaces/report-def';
|
|
2
|
-
import { TableStore } from '../../../classes/table-store';
|
|
3
|
-
import { WrapperFilterStore } from '../table-wrapper-filter-store';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class GenFilterDisplayerComponent {
|
|
6
|
-
protected tableState: TableStore;
|
|
7
|
-
protected filterStore: WrapperFilterStore;
|
|
8
|
-
$filterCols: import("@angular/core").Signal<MetaData[]>;
|
|
9
|
-
addFilter(metaData: MetaData): void;
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<GenFilterDisplayerComponent, never>;
|
|
11
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<GenFilterDisplayerComponent, "tb-filter-displayer", never, {}, {}, never, never, true, never>;
|
|
12
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ComponentStore } from "@ngrx/component-store";
|
|
2
|
-
import { PartialFilter } from "../../classes/filter-info";
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class WrapperFilterStore extends ComponentStore<{
|
|
5
|
-
filterInfo: PartialFilter[];
|
|
6
|
-
}> {
|
|
7
|
-
constructor();
|
|
8
|
-
clearAll: () => void;
|
|
9
|
-
deleteByIndex: (observableOrValue: number | import("rxjs").Observable<number>) => import("rxjs").Subscription;
|
|
10
|
-
$currentFilters: import("@angular/core").Signal<PartialFilter[]>;
|
|
11
|
-
addFilter: (observableOrValue: PartialFilter | import("rxjs").Observable<PartialFilter>) => import("rxjs").Subscription;
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<WrapperFilterStore, never>;
|
|
13
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<WrapperFilterStore>;
|
|
14
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { MatMenu } from '@angular/material/menu';
|
|
2
|
-
import { TableContainerComponent } from '../table-container/table-container.component';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class TableHeaderMenuComponent {
|
|
5
|
-
menu: import("@angular/core").Signal<MatMenu>;
|
|
6
|
-
private exportToCsvService;
|
|
7
|
-
protected tableContainer: TableContainerComponent<any>;
|
|
8
|
-
state: import("../../classes/table-store").TableStore;
|
|
9
|
-
$rowHeightNum: import("@angular/core").Signal<number | undefined>;
|
|
10
|
-
$headerHeightNum: import("@angular/core").Signal<number | undefined>;
|
|
11
|
-
protected exportToCsv(): void;
|
|
12
|
-
updateHeight(v: 'row' | 'header', element: HTMLInputElement): void;
|
|
13
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TableHeaderMenuComponent, never>;
|
|
14
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TableHeaderMenuComponent, "lib-table-header-menu", never, {}, {}, never, never, true, never>;
|
|
15
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { TemplateRef, OnInit } from '@angular/core';
|
|
2
|
-
import { CdkColumnDef } from '@angular/cdk/table';
|
|
3
|
-
import { CustomCellMeta, SortDef } from '../interfaces/report-def';
|
|
4
|
-
import { TableBuilder } from '../classes/table-builder';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
interface CustomCellContext<T> {
|
|
7
|
-
$implicit: T;
|
|
8
|
-
element: T;
|
|
9
|
-
}
|
|
10
|
-
export declare class CustomCellDirective<T = any> implements OnInit {
|
|
11
|
-
private templateRef;
|
|
12
|
-
columnDef: CdkColumnDef | null;
|
|
13
|
-
$customCell: import("@angular/core").InputSignal<string>;
|
|
14
|
-
$displayName: import("@angular/core").InputSignal<string | undefined>;
|
|
15
|
-
$preSort: import("@angular/core").InputSignal<SortDef | undefined>;
|
|
16
|
-
$templateRef: import("@angular/core").InputSignal<TemplateRef<any> | undefined>;
|
|
17
|
-
$customCellOrder: import("@angular/core").InputSignal<number | undefined>;
|
|
18
|
-
$customCellWidth: import("@angular/core").InputSignal<string | undefined>;
|
|
19
|
-
/**
|
|
20
|
-
* for type safety, this is a reference to the table builder instance.
|
|
21
|
-
*/
|
|
22
|
-
$customCellTableRef: import("@angular/core").InputSignal<TableBuilder<T> | undefined>;
|
|
23
|
-
/**
|
|
24
|
-
* true if column not mapped to a property in the data source. Default is false.
|
|
25
|
-
*/
|
|
26
|
-
$customCellNotMapped: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
27
|
-
$metaData: import("@angular/core").Signal<CustomCellMeta | undefined>;
|
|
28
|
-
$inited: import("@angular/core").WritableSignal<boolean>;
|
|
29
|
-
ngOnInit(): void;
|
|
30
|
-
static ngTemplateContextGuard<T>(dir: CustomCellDirective<T>, ctx: any): ctx is CustomCellContext<T>;
|
|
31
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CustomCellDirective<any>, never>;
|
|
32
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CustomCellDirective<any>, "[customCell]", never, { "$customCell": { "alias": "customCell"; "required": true; "isSignal": true; }; "$displayName": { "alias": "customCellDisplayName"; "required": false; "isSignal": true; }; "$preSort": { "alias": "preSort"; "required": false; "isSignal": true; }; "$templateRef": { "alias": "templateRef"; "required": false; "isSignal": true; }; "$customCellOrder": { "alias": "customCellOrder"; "required": false; "isSignal": true; }; "$customCellWidth": { "alias": "customCellWidth"; "required": false; "isSignal": true; }; "$customCellTableRef": { "alias": "customCellTableRef"; "required": false; "isSignal": true; }; "$customCellNotMapped": { "alias": "customCellNotMapped"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
33
|
-
}
|
|
34
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { OnInit, OnDestroy } from '@angular/core';
|
|
2
|
-
import { MatSort, Sort } from '@angular/material/sort';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class MultiSortDirective extends MatSort implements OnInit, OnDestroy {
|
|
5
|
-
private state;
|
|
6
|
-
constructor();
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MultiSortDirective, never>;
|
|
8
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MultiSortDirective, "[multiSort]", ["multiSort"], { "disabled": { "alias": "matSortDisabled"; "required": false; }; }, {}, never, never, true, never>;
|
|
9
|
-
}
|
|
10
|
-
export declare function sortsAreSame(a: Sort[], b: Sort[]): boolean;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { OnInit } from "@angular/core";
|
|
2
|
-
import { TableStore } from "../classes/table-store";
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class ResizeColumnDirective implements OnInit {
|
|
5
|
-
private renderer;
|
|
6
|
-
private el;
|
|
7
|
-
store: TableStore;
|
|
8
|
-
resizable: boolean | string;
|
|
9
|
-
key: string;
|
|
10
|
-
ngOnInit(): void;
|
|
11
|
-
createResizerSpanInColumnHead(columnHead: HTMLElement): any;
|
|
12
|
-
getTableAndColumnHeadHtmlElements(): {
|
|
13
|
-
table: HTMLElement;
|
|
14
|
-
columnHead: HTMLElement;
|
|
15
|
-
};
|
|
16
|
-
mouseDownThroughMouseUpEventMapper(resizer: HTMLElement, columnHead: HTMLElement, table: HTMLElement): import("rxjs").Observable<{
|
|
17
|
-
mouseDownData: {
|
|
18
|
-
startPageX: number;
|
|
19
|
-
startColumnWidth: number;
|
|
20
|
-
startTableWidth: number;
|
|
21
|
-
};
|
|
22
|
-
mouseMove: MouseEvent;
|
|
23
|
-
}>;
|
|
24
|
-
resizerMouseDownEventMapper(resizer: HTMLElement, columnHead: HTMLElement, table: HTMLElement): import("rxjs").Observable<{
|
|
25
|
-
startPageX: number;
|
|
26
|
-
startColumnWidth: number;
|
|
27
|
-
startTableWidth: number;
|
|
28
|
-
}>;
|
|
29
|
-
calculateNewWidths(mouseDownData: MouseDownData, mouseMove: MouseEvent): {
|
|
30
|
-
newTableWidth: number;
|
|
31
|
-
newColumnWidth: number;
|
|
32
|
-
};
|
|
33
|
-
getElementWidth: (elem: HTMLElement) => number;
|
|
34
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ResizeColumnDirective, never>;
|
|
35
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ResizeColumnDirective, "[resizeColumn]", never, { "resizable": { "alias": "resizeColumn"; "required": false; }; "key": { "alias": "key"; "required": false; }; }, {}, never, never, true, never>;
|
|
36
|
-
static ngAcceptInputType_resizable: unknown;
|
|
37
|
-
}
|
|
38
|
-
interface MouseDownData {
|
|
39
|
-
startPageX: number;
|
|
40
|
-
startColumnWidth: number;
|
|
41
|
-
startTableWidth: number;
|
|
42
|
-
}
|
|
43
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { TableCustomFilterDirective, TableFilterDirective } from "./tb-filter.directive";
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class TableWrapperDirective {
|
|
4
|
-
$registrations: import("@angular/core").WritableSignal<(TableCustomFilterDirective | TableFilterDirective)[]>;
|
|
5
|
-
register(filter: TableCustomFilterDirective | TableFilterDirective): void;
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TableWrapperDirective, never>;
|
|
7
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TableWrapperDirective, "[tbWrapper]", never, {}, {}, never, never, true, never>;
|
|
8
|
-
}
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
import { Predicate, Signal, SimpleChanges, OnChanges, OnInit, OnDestroy } from "@angular/core";
|
|
2
|
-
import { Observable, ReplaySubject } from "rxjs";
|
|
3
|
-
import { CustomFilter, FilterInfo } from "../classes/filter-info";
|
|
4
|
-
import { FilterType } from "../enums/filterTypes";
|
|
5
|
-
import { FieldType } from "../interfaces/report-def";
|
|
6
|
-
import { NgControl } from "@angular/forms";
|
|
7
|
-
import { TableWrapperDirective } from "./table-wrapper.directive";
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
export declare abstract class TableCustomFilterDirective {
|
|
10
|
-
abstract filter$: Observable<CustomFilter>;
|
|
11
|
-
abstract $filter: Signal<CustomFilter | undefined>;
|
|
12
|
-
filterId: string;
|
|
13
|
-
savable: boolean;
|
|
14
|
-
abstract active: boolean;
|
|
15
|
-
abstract reset(): void;
|
|
16
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TableCustomFilterDirective, never>;
|
|
17
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TableCustomFilterDirective, "tb-abstract", never, {}, {}, never, never, true, never>;
|
|
18
|
-
}
|
|
19
|
-
export declare class TableFilterDirective implements OnChanges, OnInit {
|
|
20
|
-
protected model: NgControl | null;
|
|
21
|
-
private wrapper;
|
|
22
|
-
constructor();
|
|
23
|
-
reset(): void;
|
|
24
|
-
filter$: ReplaySubject<FilterInfo<any, any>>;
|
|
25
|
-
$filter: Signal<FilterInfo<any, any> | undefined>;
|
|
26
|
-
filterType: FilterType;
|
|
27
|
-
key: string;
|
|
28
|
-
fieldType: FieldType;
|
|
29
|
-
filterId: string;
|
|
30
|
-
active: boolean;
|
|
31
|
-
filterValue: any;
|
|
32
|
-
setFilterValue(value: any): void;
|
|
33
|
-
savable: boolean;
|
|
34
|
-
ready: boolean;
|
|
35
|
-
_userActive: boolean;
|
|
36
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
37
|
-
ngOnInit(): void;
|
|
38
|
-
protected setFilter(filter: FilterInfo): void;
|
|
39
|
-
update(): void;
|
|
40
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TableFilterDirective, never>;
|
|
41
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TableFilterDirective, "[tbFilter]", never, { "filterType": { "alias": "filterType"; "required": false; }; "key": { "alias": "key"; "required": false; }; "fieldType": { "alias": "fieldType"; "required": false; }; "filterId": { "alias": "filterId"; "required": false; }; "active": { "alias": "active"; "required": false; }; "filterValue": { "alias": "filterValue"; "required": false; }; }, {}, never, never, true, never>;
|
|
42
|
-
}
|
|
43
|
-
export declare class TableFilterStringContainsDirective extends TableFilterDirective implements OnChanges {
|
|
44
|
-
constructor();
|
|
45
|
-
reset(): void;
|
|
46
|
-
setFilter(filter: FilterInfo): void;
|
|
47
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
48
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TableFilterStringContainsDirective, never>;
|
|
49
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TableFilterStringContainsDirective, "[tbFilterStringContains]", never, { "key": { "alias": "tbFilterStringContains"; "required": false; }; "filterValue": { "alias": "filterValue"; "required": false; }; "filterId": { "alias": "filterId"; "required": false; }; "active": { "alias": "active"; "required": false; }; }, {}, never, never, true, never>;
|
|
50
|
-
}
|
|
51
|
-
export declare abstract class TableCustomFilterDirectiveBase<T = any> extends TableCustomFilterDirective implements OnInit {
|
|
52
|
-
filter$: ReplaySubject<CustomFilter<any>>;
|
|
53
|
-
$filter: Signal<CustomFilter<any> | undefined>;
|
|
54
|
-
filter: CustomFilter;
|
|
55
|
-
_predicate: Predicate<T>;
|
|
56
|
-
set predicate(val: Predicate<T>);
|
|
57
|
-
_active: boolean;
|
|
58
|
-
ready: boolean;
|
|
59
|
-
update(val: Partial<CustomFilter>): void;
|
|
60
|
-
set active(val: boolean);
|
|
61
|
-
get active(): boolean;
|
|
62
|
-
ngOnInit(): void;
|
|
63
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TableCustomFilterDirectiveBase<any>, never>;
|
|
64
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TableCustomFilterDirectiveBase<any>, "[tbCustomFilter]", never, { "predicate": { "alias": "tbCustomFilter"; "required": false; }; "active": { "alias": "active"; "required": false; }; }, {}, never, never, true, never>;
|
|
65
|
-
}
|
|
66
|
-
export declare abstract class TbSelectedFilterDirective extends TableCustomFilterDirectiveBase implements OnDestroy, OnInit {
|
|
67
|
-
private change;
|
|
68
|
-
private isActive;
|
|
69
|
-
protected wrapper: TableWrapperDirective | null;
|
|
70
|
-
protected constructor(change: Observable<any>, isActive: () => boolean);
|
|
71
|
-
reset(): void;
|
|
72
|
-
destroySubject$: ReplaySubject<void>;
|
|
73
|
-
ngOnDestroy(): void;
|
|
74
|
-
ngOnInit(): void;
|
|
75
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TbSelectedFilterDirective, never>;
|
|
76
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TbSelectedFilterDirective, never, never, {}, {}, never, never, true, never>;
|
|
77
|
-
}
|
|
78
|
-
export declare class MatCheckboxTbFilterDirective extends TbSelectedFilterDirective {
|
|
79
|
-
private matCheckbox;
|
|
80
|
-
set active(val: boolean);
|
|
81
|
-
constructor();
|
|
82
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MatCheckboxTbFilterDirective, never>;
|
|
83
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MatCheckboxTbFilterDirective, "mat-checkbox[tbCustomFilter]", never, { "predicate": { "alias": "tbCustomFilter"; "required": false; }; "filterId": { "alias": "filterId"; "required": false; }; }, {}, never, never, true, never>;
|
|
84
|
-
}
|
|
85
|
-
export declare class MatSlideToggleTbFilterDirective extends TbSelectedFilterDirective implements OnInit {
|
|
86
|
-
private matSlideToggle;
|
|
87
|
-
set active(val: boolean);
|
|
88
|
-
constructor();
|
|
89
|
-
ngOnInit(): void;
|
|
90
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MatSlideToggleTbFilterDirective, never>;
|
|
91
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MatSlideToggleTbFilterDirective, "mat-slide-toggle[tbCustomFilter]", never, { "predicate": { "alias": "tbCustomFilter"; "required": false; }; "filterId": { "alias": "filterId"; "required": false; }; }, {}, never, never, true, never>;
|
|
92
|
-
}
|
|
93
|
-
export declare class MatRadioButtonTbFilterDirective extends TbSelectedFilterDirective implements OnInit {
|
|
94
|
-
private matRadioButton;
|
|
95
|
-
set active(val: boolean);
|
|
96
|
-
constructor();
|
|
97
|
-
ngOnInit(): void;
|
|
98
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MatRadioButtonTbFilterDirective, never>;
|
|
99
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MatRadioButtonTbFilterDirective, "mat-radio-button[tbCustomFilter]", never, { "predicate": { "alias": "tbCustomFilter"; "required": false; }; }, {}, never, never, true, never>;
|
|
100
|
-
}
|
|
101
|
-
export declare class MatOptionTbFilterDirective extends TbSelectedFilterDirective implements OnInit {
|
|
102
|
-
private matOption;
|
|
103
|
-
set active(val: boolean);
|
|
104
|
-
constructor();
|
|
105
|
-
ngOnInit(): void;
|
|
106
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MatOptionTbFilterDirective, never>;
|
|
107
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MatOptionTbFilterDirective, "mat-option[tbCustomFilter]", never, { "predicate": { "alias": "tbCustomFilter"; "required": false; }; "filterId": { "alias": "filterId"; "required": false; }; }, {}, never, never, true, never>;
|
|
108
|
-
}
|
|
109
|
-
export declare class MatButtonToggleFilterDirective extends TbSelectedFilterDirective implements OnInit {
|
|
110
|
-
private matButtonToggle;
|
|
111
|
-
set active(val: boolean);
|
|
112
|
-
constructor();
|
|
113
|
-
ngOnInit(): void;
|
|
114
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MatButtonToggleFilterDirective, never>;
|
|
115
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MatButtonToggleFilterDirective, "mat-button-toggle[tbCustomFilter]", never, { "predicate": { "alias": "tbCustomFilter"; "required": false; }; "filterId": { "alias": "filterId"; "required": false; }; }, {}, never, never, true, never>;
|
|
116
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
export declare const FilterType: {
|
|
2
|
-
readonly NumberEquals: "Equals";
|
|
3
|
-
readonly NumberNotEqual: "Does Not Equal";
|
|
4
|
-
readonly NumberGreaterThan: "Greater Than";
|
|
5
|
-
readonly NumberLessThan: "Less Than";
|
|
6
|
-
readonly NumberBetween: "Between";
|
|
7
|
-
readonly StringEquals: "Equals";
|
|
8
|
-
readonly StringContains: "Contains";
|
|
9
|
-
readonly StringDoesNotContain: "Does Not Contain";
|
|
10
|
-
readonly StringStartWith: "Start With";
|
|
11
|
-
readonly StringEndsWith: "Ends With";
|
|
12
|
-
readonly DateIsOn: "Is on";
|
|
13
|
-
readonly DateIsNotOn: "Is Not On";
|
|
14
|
-
readonly DateOnOrAfter: "On or After";
|
|
15
|
-
readonly DateOnOrBefore: "On or Before";
|
|
16
|
-
readonly DateBetween: "Between";
|
|
17
|
-
readonly DateTimeIsAt: "Is At";
|
|
18
|
-
readonly DateTimeIsNotAt: "Is Not At";
|
|
19
|
-
readonly DateTimeAtOrAfter: "At or After";
|
|
20
|
-
readonly DateTimeAtOrBefore: "At or Before";
|
|
21
|
-
readonly DateTimeBetween: "Between";
|
|
22
|
-
readonly BooleanEquals: "Is";
|
|
23
|
-
readonly IsNull: "Is Blank";
|
|
24
|
-
readonly Or: "Or";
|
|
25
|
-
readonly And: "And";
|
|
26
|
-
readonly In: "In";
|
|
27
|
-
readonly Custom: "Custom";
|
|
28
|
-
};
|
|
29
|
-
export type FilterType = typeof FilterType[keyof typeof FilterType];
|
|
30
|
-
export type SubFilterTypes<T extends typeof FilterType[keyof typeof FilterType]> = T;
|
|
31
|
-
export type StringFilterTypes = SubFilterTypes<'Equals' | 'Contains' | 'Does Not Contain' | 'Start With' | 'Ends With' | 'Is Blank' | 'In'>;
|
|
32
|
-
export type NumberFilterTypes = SubFilterTypes<'Equals' | 'Does Not Equal' | 'Greater Than' | 'Less Than' | 'Between' | 'Is Blank' | 'In'>;
|
|
33
|
-
export type DateFilterTypes = SubFilterTypes<'Is on' | 'Is Not On' | 'On or After' | 'On or Before' | 'Between' | 'Is Blank' | 'In'>;
|
|
34
|
-
export type DateTimeFilterTypes = SubFilterTypes<'Is At' | 'Is Not At' | 'At or After' | 'At or Before' | 'Between' | DateFilterTypes>;
|
|
35
|
-
export type BooleanFilterTypes = SubFilterTypes<'Is' | 'Is Blank'>;
|
|
36
|
-
export type EnumFilterTypes = SubFilterTypes<'In' | 'Is Blank'>;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { FilterFuncs } from '../classes/filter-info';
|
|
2
|
-
import { DateFilterTypes, DateTimeFilterTypes } from '../enums/filterTypes';
|
|
3
|
-
export declare const DateFilterFuncs: FilterFuncs<DateFilterTypes>;
|
|
4
|
-
export declare const DateTimeFilterFuncs: FilterFuncs<DateTimeFilterTypes>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function downloadData(data: string, filename: string, mimeType: string): void;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { FilterFunc, FilterFuncs } from '../classes/filter-info';
|
|
2
|
-
import { NumberFilterTypes } from '../enums/filterTypes';
|
|
3
|
-
export declare const multipleNumberValuesEqualsFunc: FilterFunc<number[], number>;
|
|
4
|
-
export declare const NumberFilterFuncs: FilterFuncs<NumberFilterTypes>;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { Predicate } from "@angular/core";
|
|
2
|
-
import { TableBuilderSort } from "../components/table-container/table-container.helpers/sort-state.helpers";
|
|
3
|
-
export declare function sortData<T>(data: T[], sorted: TableBuilderSort[]): T[];
|
|
4
|
-
export declare function filterData<T>(data: T[], filters: Predicate<T>[], resetAll?: boolean): T[];
|
|
5
|
-
export declare const tbNoShowSymbol: unique symbol;
|
|
6
|
-
export declare function getFactory(b: string): (a: any) => any;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { FilterFuncs } from '../classes/filter-info';
|
|
2
|
-
import { EnumFilterTypes, StringFilterTypes } from '../enums/filterTypes';
|
|
3
|
-
export declare const StringFilterFuncs: FilterFuncs<StringFilterTypes>;
|
|
4
|
-
export declare const EnumFilterFuncs: FilterFuncs<EnumFilterTypes>;
|
|
5
|
-
export declare const prepareForStringCompare: (val: any) => string;
|
|
@@ -1,223 +0,0 @@
|
|
|
1
|
-
import { Dictionary } from './dictionary';
|
|
2
|
-
import { PipeTransform, Predicate, TemplateRef } from '@angular/core';
|
|
3
|
-
import { TableBuilderExport } from '../classes/TableBuilderConfig';
|
|
4
|
-
import { QueryParamsHandling } from '@angular/router';
|
|
5
|
-
import { StylerStyle } from '../../utilities/directives/styler';
|
|
6
|
-
export declare enum FieldType {
|
|
7
|
-
Unknown = 0,
|
|
8
|
-
Date = 1,
|
|
9
|
-
/**
|
|
10
|
-
* @deprecated If `additional.link` is set the column will be treated as a link.
|
|
11
|
-
*/
|
|
12
|
-
Link = 2,
|
|
13
|
-
ImageUrl = 3,
|
|
14
|
-
Currency = 4,
|
|
15
|
-
Array = 5,
|
|
16
|
-
Hidden = 6,
|
|
17
|
-
Number = 7,
|
|
18
|
-
String = 8,
|
|
19
|
-
Boolean = 9,
|
|
20
|
-
PhoneNumber = 10,
|
|
21
|
-
/**
|
|
22
|
-
* @deprecated For mapped properties use proper type (for sorting and filtering) with `map`.
|
|
23
|
-
* For unmapped properties use `FieldType.NotMapped` with map.
|
|
24
|
-
*/
|
|
25
|
-
Expression = 11,
|
|
26
|
-
Enum = 12,
|
|
27
|
-
DateTime = 13,
|
|
28
|
-
NotMapped = 14
|
|
29
|
-
}
|
|
30
|
-
export declare enum SortDirection {
|
|
31
|
-
asc = "asc",
|
|
32
|
-
desc = "desc"
|
|
33
|
-
}
|
|
34
|
-
export declare enum Target {
|
|
35
|
-
Blank = "_blank",
|
|
36
|
-
Self = "_self",
|
|
37
|
-
Parent = "_parent",
|
|
38
|
-
Top = "_top"
|
|
39
|
-
}
|
|
40
|
-
interface BaseMeta<T = any> {
|
|
41
|
-
displayName?: string;
|
|
42
|
-
order?: number;
|
|
43
|
-
preSort?: SortDef;
|
|
44
|
-
sortLogic?: {
|
|
45
|
-
/**
|
|
46
|
-
* defaults to last
|
|
47
|
-
*/
|
|
48
|
-
nulls?: 'first' | 'last';
|
|
49
|
-
sortBy?: ((t: T) => any) | 'use map';
|
|
50
|
-
};
|
|
51
|
-
noSort?: boolean;
|
|
52
|
-
width?: string;
|
|
53
|
-
noExport?: boolean;
|
|
54
|
-
filterLogic?: {
|
|
55
|
-
filterBy?: ((t: T) => any) | 'use map';
|
|
56
|
-
/**
|
|
57
|
-
* defaults to the MetaData's Field type
|
|
58
|
-
*/
|
|
59
|
-
filterType?: FieldType;
|
|
60
|
-
};
|
|
61
|
-
noFilter?: boolean;
|
|
62
|
-
customCell?: boolean;
|
|
63
|
-
/**
|
|
64
|
-
* @deprecated Use `map`
|
|
65
|
-
*/
|
|
66
|
-
transform?: ((o: T, ...args: any[]) => any) | ((o: string, ...args: any[]) => any) | PipeTransform;
|
|
67
|
-
click?: (element: T, key?: string, event?: MouseEvent) => void;
|
|
68
|
-
template?: TemplateRef<any>;
|
|
69
|
-
classes?: Dictionary<Predicate<T> | true>;
|
|
70
|
-
toolTip?: string | ((t: T) => string);
|
|
71
|
-
useIcon?: boolean;
|
|
72
|
-
map?: (t: T) => any;
|
|
73
|
-
}
|
|
74
|
-
type Path<T, U = never, P = never> = (T extends P ? never : T extends object ? {
|
|
75
|
-
[K in keyof T]: K extends string | number ? `${K}` | (T[K] extends (Array<any> | undefined) ? `${K}.${keyof Array<any> & (string | number)}` : `${K}.${Path<T[K], T[K], P | U>}`) : never;
|
|
76
|
-
}[keyof T] : never);
|
|
77
|
-
export interface BaseMappedMetaData<T = any, AdditionalFields extends string[] = []> extends BaseMeta<T> {
|
|
78
|
-
key: (Path<T> | AdditionalFields[number]) & string;
|
|
79
|
-
/**
|
|
80
|
-
* if used with map, `mapItem` will only be used where the row is not available, ex. group header
|
|
81
|
-
*/
|
|
82
|
-
mapItem?: (i: any) => any;
|
|
83
|
-
}
|
|
84
|
-
export interface MappedMetaData<T = any, AdditionalFields extends string[] = []> extends BaseMappedMetaData<T, AdditionalFields> {
|
|
85
|
-
fieldType: FieldType.String | FieldType.PhoneNumber | FieldType.ImageUrl | FieldType.Link | FieldType.Hidden | FieldType.Unknown;
|
|
86
|
-
additional?: Additional<T>;
|
|
87
|
-
mapItem?: (i: string) => any;
|
|
88
|
-
}
|
|
89
|
-
export interface MappedNumberMetaData<T = any, AdditionalFields extends string[] = []> extends BaseMappedMetaData<T, AdditionalFields> {
|
|
90
|
-
fieldType: FieldType.Number | FieldType.Currency;
|
|
91
|
-
mapItem?: (i: number) => any;
|
|
92
|
-
additional?: NumberAdditional<T>;
|
|
93
|
-
}
|
|
94
|
-
export interface MappedEnumMetaData<T = any, AdditionalFields extends string[] = []> extends BaseMappedMetaData<T, AdditionalFields> {
|
|
95
|
-
fieldType: FieldType.Enum;
|
|
96
|
-
mapItem?: (i: number) => any;
|
|
97
|
-
additional?: EnumAdditional<T>;
|
|
98
|
-
}
|
|
99
|
-
export interface MappedDateMetaData<T = any, AdditionalFields extends string[] = []> extends BaseMappedMetaData<T, AdditionalFields> {
|
|
100
|
-
fieldType: FieldType.Date | FieldType.DateTime;
|
|
101
|
-
mapItem?: (i: Date) => any;
|
|
102
|
-
additional?: Additional<T, Date>;
|
|
103
|
-
}
|
|
104
|
-
export interface MappedBooleanMetaData<T = any, AdditionalFields extends string[] = []> extends BaseMappedMetaData<T, AdditionalFields> {
|
|
105
|
-
fieldType: FieldType.Boolean;
|
|
106
|
-
mapItem?: (i: boolean) => any;
|
|
107
|
-
additional?: BooleanAdditional<T>;
|
|
108
|
-
}
|
|
109
|
-
export interface MappedArrayMetaData<T = any, AdditionalFields extends string[] = []> extends BaseMappedMetaData<T, AdditionalFields> {
|
|
110
|
-
fieldType: FieldType.Array;
|
|
111
|
-
mapItem?: (i: string) => any;
|
|
112
|
-
additional?: ArrayAdditional<T>;
|
|
113
|
-
}
|
|
114
|
-
export type MetaData<T = any, AdditionalFields extends string[] = []> = MappedMetaData<T, AdditionalFields> | NotMappedMetaData<T> | MappedNumberMetaData<T, AdditionalFields> | MappedEnumMetaData<T, AdditionalFields> | MappedBooleanMetaData<T, AdditionalFields> | MappedDateMetaData<T, AdditionalFields> | MappedArrayMetaData<T, AdditionalFields>;
|
|
115
|
-
export interface NotMappedMetaData<T = any> extends BaseMeta<T> {
|
|
116
|
-
key: string;
|
|
117
|
-
fieldType: FieldType.NotMapped | FieldType.Expression;
|
|
118
|
-
additional?: Additional<T>;
|
|
119
|
-
}
|
|
120
|
-
export interface ReportDef<DataType = any> {
|
|
121
|
-
data: DataType[];
|
|
122
|
-
metaData: MetaData[];
|
|
123
|
-
totalRecords?: number;
|
|
124
|
-
count: number;
|
|
125
|
-
}
|
|
126
|
-
export interface SortDef {
|
|
127
|
-
direction: SortDirection;
|
|
128
|
-
precedence?: number;
|
|
129
|
-
}
|
|
130
|
-
export interface FilterOptions<T = string> {
|
|
131
|
-
filterableValues: T[];
|
|
132
|
-
}
|
|
133
|
-
export interface DateTimeOptions {
|
|
134
|
-
format?: string;
|
|
135
|
-
includeSeconds?: boolean;
|
|
136
|
-
includeMilliseconds: boolean;
|
|
137
|
-
}
|
|
138
|
-
type interpolatedRoute = string;
|
|
139
|
-
interface BaseAdditional<T = any> {
|
|
140
|
-
link?: {
|
|
141
|
-
base?: string;
|
|
142
|
-
urlKey?: string;
|
|
143
|
-
target?: Target;
|
|
144
|
-
useRouterLink?: boolean;
|
|
145
|
-
/**
|
|
146
|
-
* If you want to use a route with interpolated params, you can use this. Wrap the property name in curly braces.
|
|
147
|
-
* For example, if interpolatedRoute = /users/{id}/edit, {id} will be replaced with the value of the element's id property.
|
|
148
|
-
*/
|
|
149
|
-
interpolatedRoute?: interpolatedRoute | ((t: T) => string);
|
|
150
|
-
routerLinkOptions?: {
|
|
151
|
-
queryParams?: [string, interpolatedRoute | ((t: T) => string)][];
|
|
152
|
-
fragment?: string;
|
|
153
|
-
preserveFragment?: boolean;
|
|
154
|
-
queryParamsHandling?: QueryParamsHandling;
|
|
155
|
-
};
|
|
156
|
-
};
|
|
157
|
-
export?: TableBuilderExport;
|
|
158
|
-
dateFormat?: string;
|
|
159
|
-
dateTimeOptions?: DateTimeOptions;
|
|
160
|
-
styles?: StylerStyle<T>;
|
|
161
|
-
columnPartStyles?: {
|
|
162
|
-
header?: Dictionary<string>;
|
|
163
|
-
body?: StylerStyle<T>;
|
|
164
|
-
innerBody?: StylerStyle<T>;
|
|
165
|
-
footer?: Dictionary<string>;
|
|
166
|
-
};
|
|
167
|
-
columnPartClasses?: {
|
|
168
|
-
header?: Dictionary<Predicate<T> | true>;
|
|
169
|
-
footer?: Dictionary<Predicate<T> | true>;
|
|
170
|
-
};
|
|
171
|
-
footer?: {
|
|
172
|
-
type: any;
|
|
173
|
-
};
|
|
174
|
-
}
|
|
175
|
-
export interface Additional<T = any, V = string> extends BaseAdditional<T> {
|
|
176
|
-
filterOptions?: FilterOptions<V>;
|
|
177
|
-
footer?: {
|
|
178
|
-
type: never;
|
|
179
|
-
};
|
|
180
|
-
}
|
|
181
|
-
interface NumberAdditional<T = any> extends BaseAdditional<T> {
|
|
182
|
-
filterOptions?: FilterOptions<number>;
|
|
183
|
-
footer?: {
|
|
184
|
-
type: 'sum';
|
|
185
|
-
};
|
|
186
|
-
}
|
|
187
|
-
interface EnumAdditional<T = any> extends BaseAdditional<T> {
|
|
188
|
-
filterOptions?: FilterOptions<number>;
|
|
189
|
-
enumMap?: {
|
|
190
|
-
[key: number]: string;
|
|
191
|
-
};
|
|
192
|
-
footer?: {
|
|
193
|
-
type: never;
|
|
194
|
-
};
|
|
195
|
-
}
|
|
196
|
-
interface BooleanAdditional<T = any> extends BaseAdditional<T> {
|
|
197
|
-
filterOptions?: FilterOptions<never>;
|
|
198
|
-
footer?: {
|
|
199
|
-
type: never;
|
|
200
|
-
};
|
|
201
|
-
boolean?: {
|
|
202
|
-
showForFalse?: true | {
|
|
203
|
-
icon: string;
|
|
204
|
-
};
|
|
205
|
-
forTrue?: {
|
|
206
|
-
icon: string;
|
|
207
|
-
};
|
|
208
|
-
};
|
|
209
|
-
}
|
|
210
|
-
export declare enum ArrayStyle {
|
|
211
|
-
CommaDelimited = 0,
|
|
212
|
-
NewLine = 1
|
|
213
|
-
}
|
|
214
|
-
export interface ArrayAdditional<T = any> extends Additional<T> {
|
|
215
|
-
limit?: number;
|
|
216
|
-
arrayStyle?: ArrayStyle;
|
|
217
|
-
}
|
|
218
|
-
export declare function metaDataArrToDict<T = MetaData>(arr: MetaData[], transform?: (m: MetaData) => T): Dictionary<T>;
|
|
219
|
-
export interface CustomCellMeta extends Pick<MetaData, 'key' | 'displayName' | 'preSort' | 'fieldType' | 'order' | 'width'> {
|
|
220
|
-
customCell: true;
|
|
221
|
-
noExport?: boolean;
|
|
222
|
-
}
|
|
223
|
-
export {};
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { ComponentStore } from "@ngrx/component-store";
|
|
2
|
-
import { Signal } from "@angular/core";
|
|
3
|
-
import { Dictionary } from "../interfaces/dictionary";
|
|
4
|
-
import { PersistedTableState } from "../classes/TableState";
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class TableBuilderStateStore extends ComponentStore<GlobalStorageState> {
|
|
7
|
-
constructor();
|
|
8
|
-
$selectLocalTableProfile: (profileKey: string) => Signal<Profile | undefined>;
|
|
9
|
-
$selectLocalTableStateForView: (tableId: string) => Signal<PersistedTableState | null>;
|
|
10
|
-
$selectLocalProfileCurrentKey: (key: string) => Signal<string | undefined>;
|
|
11
|
-
$selectLocalProfileDefaultKey: (key: string) => Signal<string | undefined>;
|
|
12
|
-
$selectLocalProfileKeys: (tableId: string) => Signal<string[]>;
|
|
13
|
-
saveTableSettingsToLocalAndStorage: (tableId: string, stateName: string, tableState: PersistedTableState, asDefault?: boolean) => void;
|
|
14
|
-
saveTableStateToLocal: (observableOrValue: {
|
|
15
|
-
tableId: string;
|
|
16
|
-
tableState: PersistedTableState;
|
|
17
|
-
stateName?: string;
|
|
18
|
-
asDefault?: boolean;
|
|
19
|
-
} | import("rxjs").Observable<{
|
|
20
|
-
tableId: string;
|
|
21
|
-
tableState: PersistedTableState;
|
|
22
|
-
stateName?: string;
|
|
23
|
-
asDefault?: boolean;
|
|
24
|
-
}>) => import("rxjs").Subscription;
|
|
25
|
-
saveTableStateToStorage: (tableId: string, stateName: string, tableState: PersistedTableState, asDefault?: boolean) => void;
|
|
26
|
-
addNewStateToLocalAndStorage: (tableId: string, newStateName: string, tableState: PersistedTableState, asDefault?: boolean) => void;
|
|
27
|
-
setLocalCurrentState: (observableOrValue: {
|
|
28
|
-
tableId: string;
|
|
29
|
-
currentStateKey: string;
|
|
30
|
-
} | import("rxjs").Observable<{
|
|
31
|
-
tableId: string;
|
|
32
|
-
currentStateKey: string;
|
|
33
|
-
}>) => import("rxjs").Subscription;
|
|
34
|
-
setDefaultInLocalAndStorage: (tableId: string, newDefault: string) => void;
|
|
35
|
-
setDefaultInLocal: (observableOrValue: {
|
|
36
|
-
key: string;
|
|
37
|
-
default: string;
|
|
38
|
-
} | import("rxjs").Observable<{
|
|
39
|
-
key: string;
|
|
40
|
-
default: string;
|
|
41
|
-
}>) => import("rxjs").Subscription;
|
|
42
|
-
unsetDefaultFromLocalAndStorage: (tableId: string) => void;
|
|
43
|
-
unsetDefaultFromLocal: (tableId: string) => void;
|
|
44
|
-
unsetDefaultFromStorage: (tableId: string) => void;
|
|
45
|
-
setDefaultInStorage: (tableId: string, stateName: string) => void;
|
|
46
|
-
deleteLocalProfilesState: (observableOrValue: {
|
|
47
|
-
key: string;
|
|
48
|
-
stateKey: string;
|
|
49
|
-
} | import("rxjs").Observable<{
|
|
50
|
-
key: string;
|
|
51
|
-
stateKey: string;
|
|
52
|
-
}>) => import("rxjs").Subscription;
|
|
53
|
-
deleteProfileFromLocalAndStorage: (key: string, stateKey: string) => void;
|
|
54
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TableBuilderStateStore, never>;
|
|
55
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<TableBuilderStateStore>;
|
|
56
|
-
}
|
|
57
|
-
interface PersistedProfile {
|
|
58
|
-
states: Dictionary<PersistedTableState>;
|
|
59
|
-
default?: string;
|
|
60
|
-
}
|
|
61
|
-
export interface Profile extends PersistedProfile {
|
|
62
|
-
current?: string;
|
|
63
|
-
localSavedState?: PersistedTableState;
|
|
64
|
-
}
|
|
65
|
-
export interface GlobalStorageState {
|
|
66
|
-
localProfiles: Dictionary<Profile>;
|
|
67
|
-
}
|
|
68
|
-
export declare const defaultStorageState: GlobalStorageState;
|
|
69
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import { MetaData } from '../interfaces/report-def';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class ColumnTotalPipe implements PipeTransform {
|
|
5
|
-
transform(data: any[], metaData: MetaData): number;
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ColumnTotalPipe, never>;
|
|
7
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<ColumnTotalPipe, "columnTotal", true>;
|
|
8
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import { FilterType } from '../enums/filterTypes';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class FormatFilterTypePipe implements PipeTransform {
|
|
5
|
-
transform(filterType: FilterType, value: any): "Equals" | "Does Not Equal" | "Greater Than" | "Less Than" | "Between" | "Contains" | "Does Not Contain" | "Start With" | "Ends With" | "Is on" | "Is Not On" | "On or After" | "On or Before" | "Is At" | "Is Not At" | "At or After" | "At or Before" | "Is" | "Is Blank" | "Or" | "And" | "In" | "Custom" | "Is Not Blank";
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormatFilterTypePipe, never>;
|
|
7
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<FormatFilterTypePipe, "formatFilterType", true>;
|
|
8
|
-
}
|