@one-paragon/angular-utilities 0.1.21 → 0.1.23
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/action-state/action-state-spinner/action-state-spinner.component.d.ts +12 -0
- package/action-state/action-state-ui/action-state-ui.module.d.ts +9 -0
- package/{src/action-state/index.ts → action-state/index.d.ts} +0 -4
- package/action-state/ngrx-ext/ngrx-ext.module.d.ts +8 -0
- package/action-state/ngrx.d.ts +31 -0
- package/esm2020/action-state/action-state-spinner/action-state-spinner.component.mjs +23 -0
- package/esm2020/action-state/action-state-ui/action-state-ui.module.mjs +28 -0
- package/esm2020/action-state/index.mjs +8 -0
- package/esm2020/action-state/ngrx-ext/ngrx-ext.module.mjs +23 -0
- package/esm2020/action-state/ngrx.mjs +42 -0
- package/esm2020/http-request-state/HttpRequestStateFactory.mjs +27 -0
- package/esm2020/http-request-state/HttpRequestStateStore.mjs +97 -0
- package/esm2020/http-request-state/directives/HttpStateDirectiveBase.mjs +34 -0
- package/esm2020/http-request-state/directives/http-error-state-directive.mjs +29 -0
- package/esm2020/http-request-state/directives/http-inProgress-state-directive.mjs +29 -0
- package/esm2020/http-request-state/directives/http-notStarted-state-directive.mjs +29 -0
- package/esm2020/http-request-state/directives/http-success-state-directive.mjs +29 -0
- package/esm2020/http-request-state/directives/index.mjs +6 -0
- package/esm2020/http-request-state/directives/request-state-directive.mjs +57 -0
- package/esm2020/http-request-state/helpers.mjs +22 -0
- package/esm2020/http-request-state/http-request-state.mjs +39 -0
- package/esm2020/http-request-state/http-state-module.mjs +41 -0
- package/esm2020/http-request-state/index.mjs +7 -0
- package/esm2020/http-request-state/rxjs/getRequestorBody.mjs +4 -0
- package/esm2020/http-request-state/rxjs/getRequestorState.mjs +3 -0
- package/esm2020/http-request-state/rxjs/index.mjs +5 -0
- package/esm2020/http-request-state/rxjs/tapError.mjs +12 -0
- package/esm2020/http-request-state/rxjs/tapSuccess.mjs +12 -0
- package/esm2020/http-request-state/types.mjs +16 -0
- package/esm2020/ngrx/actionable-selector.mjs +76 -0
- package/esm2020/ngrx/index.mjs +2 -0
- package/esm2020/one-paragon-angular-utilities.mjs +5 -0
- package/esm2020/public-api.mjs +19 -0
- package/esm2020/rxjs/defaultShareReplay.mjs +7 -0
- package/esm2020/rxjs/index.mjs +5 -0
- package/esm2020/rxjs/mapError.mjs +8 -0
- package/esm2020/rxjs/rxjs-operators.mjs +91 -0
- package/esm2020/rxjs/subjectifier.mjs +15 -0
- package/esm2020/table-builder/classes/DefaultSettings.mjs +6 -0
- package/esm2020/table-builder/classes/GenericTableDataSource.mjs +13 -0
- package/esm2020/table-builder/classes/MatTableObservableDataSource.mjs +21 -0
- package/esm2020/table-builder/classes/TableBuilderConfig.mjs +3 -0
- package/esm2020/table-builder/classes/TableState.mjs +32 -0
- package/esm2020/table-builder/classes/data-filter.mjs +26 -0
- package/esm2020/table-builder/classes/display-col.mjs +2 -0
- package/esm2020/table-builder/classes/filter-info.mjs +71 -0
- package/esm2020/table-builder/classes/table-builder-general-settings.mjs +68 -0
- package/esm2020/table-builder/classes/table-builder.mjs +61 -0
- package/esm2020/table-builder/classes/table-store.mjs +292 -0
- package/esm2020/table-builder/components/array-column.component.mjs +57 -0
- package/esm2020/table-builder/components/column-builder/column-builder.component.mjs +111 -0
- package/esm2020/table-builder/components/date-filter/date-filter.component.mjs +25 -0
- package/esm2020/table-builder/components/filter/filter.component.mjs +53 -0
- package/esm2020/table-builder/components/filter/in-list/in-list-filter.component.mjs +91 -0
- package/esm2020/table-builder/components/gen-col-displayer/gen-col-displayer.component.mjs +45 -0
- package/esm2020/table-builder/components/generic-table/generic-table.component.mjs +198 -0
- package/esm2020/table-builder/components/generic-table/paginator.component.mjs +74 -0
- package/esm2020/table-builder/components/group-by-list/group-by-list.component.mjs +22 -0
- package/esm2020/table-builder/components/header-menu/header-menu.component.mjs +90 -0
- package/esm2020/table-builder/components/in-filter/in-filter.component.mjs +63 -0
- package/esm2020/table-builder/components/index.mjs +10 -0
- package/esm2020/table-builder/components/initialization-component/initialization-component.mjs +33 -0
- package/esm2020/table-builder/components/link-column.component.mjs +66 -0
- package/esm2020/table-builder/components/number-filter/number-filter.component.mjs +27 -0
- package/esm2020/table-builder/components/sort-menu/sort-menu.component-store.mjs +42 -0
- package/esm2020/table-builder/components/sort-menu/sort-menu.component.mjs +75 -0
- package/esm2020/table-builder/components/table-container/table-container.mjs +312 -0
- package/esm2020/table-builder/components/table-container-filter/filter-list/filter-list.component.mjs +42 -0
- package/esm2020/table-builder/components/table-container-filter/gen-filter-displayer/gen-filter-displayer.component.mjs +30 -0
- package/esm2020/table-builder/components/table-container-filter/table-wrapper-filter-store.mjs +25 -0
- package/esm2020/table-builder/directives/custom-cell-directive.mjs +59 -0
- package/esm2020/table-builder/directives/index.mjs +6 -0
- package/esm2020/table-builder/directives/multi-sort.directive.mjs +42 -0
- package/esm2020/table-builder/directives/resize-column.directive.mjs +86 -0
- package/esm2020/table-builder/directives/table-wrapper.directive.mjs +26 -0
- package/esm2020/table-builder/directives/tb-filter.directive.mjs +403 -0
- package/esm2020/table-builder/enums/filterTypes.mjs +59 -0
- package/esm2020/table-builder/functions/boolean-filter-function.mjs +10 -0
- package/esm2020/table-builder/functions/date-filter-function.mjs +32 -0
- package/esm2020/table-builder/functions/download-data.mjs +12 -0
- package/esm2020/table-builder/functions/null-filter-function.mjs +8 -0
- package/esm2020/table-builder/functions/number-filter-function.mjs +32 -0
- package/esm2020/table-builder/functions/sort-data-function.mjs +5 -0
- package/esm2020/table-builder/functions/string-filter-function.mjs +41 -0
- package/esm2020/table-builder/interfaces/ColumnInfo.mjs +2 -0
- package/esm2020/table-builder/interfaces/dictionary.mjs +2 -0
- package/esm2020/table-builder/interfaces/report-def.mjs +34 -0
- package/esm2020/table-builder/material.module.mjs +207 -0
- package/esm2020/table-builder/ngrx/actions.mjs +5 -0
- package/esm2020/table-builder/ngrx/effects.mjs +48 -0
- package/esm2020/table-builder/ngrx/reducer.mjs +52 -0
- package/esm2020/table-builder/ngrx/selectors.mjs +24 -0
- package/esm2020/table-builder/pipes/column-total.pipe.mjs +20 -0
- package/esm2020/table-builder/pipes/format-filter-type.pipe.mjs +18 -0
- package/esm2020/table-builder/pipes/format-filter-value.pipe.mjs +46 -0
- package/esm2020/table-builder/pipes/key-display.mjs +20 -0
- package/esm2020/table-builder/services/export-to-csv.service.mjs +84 -0
- package/esm2020/table-builder/services/link-creator.service.mjs +42 -0
- package/esm2020/table-builder/services/table-template-service.mjs +43 -0
- package/esm2020/table-builder/services/transform-creator.mjs +70 -0
- package/esm2020/table-builder/table-builder.module.mjs +204 -0
- package/esm2020/utilities/directives/auto-focus.directive.mjs +26 -0
- package/esm2020/utilities/directives/clickEmitterDirective.mjs +21 -0
- package/esm2020/utilities/directives/clickSubject.mjs +27 -0
- package/esm2020/utilities/directives/conditional-classes.directive.mjs +35 -0
- package/esm2020/utilities/directives/dialog-service.mjs +25 -0
- package/esm2020/utilities/directives/dialog.mjs +137 -0
- package/esm2020/utilities/directives/mat-toggle-group-directive.mjs +59 -0
- package/esm2020/utilities/directives/prevent-enter.directive.mjs +19 -0
- package/esm2020/utilities/directives/stop-propagation.directive.mjs +25 -0
- package/esm2020/utilities/directives/styler.mjs +26 -0
- package/esm2020/utilities/directives/trim-whitespace.directive.mjs +29 -0
- package/esm2020/utilities/index.mjs +16 -0
- package/esm2020/utilities/module.mjs +91 -0
- package/esm2020/utilities/pipes/function.pipe.mjs +21 -0
- package/esm2020/utilities/pipes/phone.pipe.mjs +20 -0
- package/esm2020/utilities/pipes/space-case.pipes.mjs +28 -0
- package/fesm2015/one-paragon-angular-utilities.mjs +4687 -0
- package/fesm2015/one-paragon-angular-utilities.mjs.map +1 -0
- package/fesm2020/one-paragon-angular-utilities.mjs +4655 -0
- package/fesm2020/one-paragon-angular-utilities.mjs.map +1 -0
- package/http-request-state/HttpRequestStateFactory.d.ts +14 -0
- package/http-request-state/HttpRequestStateStore.d.ts +48 -0
- package/http-request-state/directives/HttpStateDirectiveBase.d.ts +16 -0
- package/http-request-state/directives/http-error-state-directive.d.ts +12 -0
- package/http-request-state/directives/http-inProgress-state-directive.d.ts +12 -0
- package/http-request-state/directives/http-notStarted-state-directive.d.ts +12 -0
- package/http-request-state/directives/http-success-state-directive.d.ts +14 -0
- package/{src/http-request-state/directives/index.ts → http-request-state/directives/index.d.ts} +5 -5
- package/http-request-state/directives/request-state-directive.d.ts +29 -0
- package/http-request-state/helpers.d.ts +9 -0
- package/http-request-state/http-request-state.d.ts +12 -0
- package/http-request-state/http-state-module.d.ts +11 -0
- package/{src/http-request-state/index.ts → http-request-state/index.d.ts} +6 -6
- package/http-request-state/rxjs/getRequestorBody.d.ts +3 -0
- package/http-request-state/rxjs/getRequestorState.d.ts +3 -0
- package/{src/http-request-state/rxjs/index.ts → http-request-state/rxjs/index.d.ts} +4 -4
- package/http-request-state/rxjs/tapError.d.ts +3 -0
- package/http-request-state/rxjs/tapSuccess.d.ts +3 -0
- package/http-request-state/types.d.ts +36 -0
- package/index.d.ts +5 -0
- package/ngrx/actionable-selector.d.ts +15 -0
- package/ngrx/index.d.ts +1 -0
- package/package.json +36 -16
- package/{src/public-api.ts → public-api.d.ts} +3 -21
- package/rxjs/defaultShareReplay.d.ts +2 -0
- package/{src/rxjs/index.ts → rxjs/index.d.ts} +1 -1
- package/rxjs/mapError.d.ts +2 -0
- package/rxjs/rxjs-operators.d.ts +12 -0
- package/rxjs/subjectifier.d.ts +9 -0
- package/table-builder/classes/DefaultSettings.d.ts +8 -0
- package/table-builder/classes/GenericTableDataSource.d.ts +8 -0
- package/table-builder/classes/MatTableObservableDataSource.d.ts +9 -0
- package/table-builder/classes/TableBuilderConfig.d.ts +19 -0
- package/table-builder/classes/TableState.d.ts +46 -0
- package/table-builder/classes/data-filter.d.ts +9 -0
- package/{src/table-builder/classes/display-col.ts → table-builder/classes/display-col.d.ts} +5 -5
- package/table-builder/classes/filter-info.d.ts +40 -0
- package/table-builder/classes/table-builder-general-settings.d.ts +43 -0
- package/table-builder/classes/table-builder.d.ts +14 -0
- package/table-builder/classes/table-store.d.ts +114 -0
- package/table-builder/components/array-column.component.d.ts +14 -0
- package/table-builder/components/column-builder/column-builder.component.d.ts +50 -0
- package/table-builder/components/date-filter/date-filter.component.d.ts +10 -0
- package/table-builder/components/filter/filter.component.d.ts +294 -0
- package/table-builder/components/filter/in-list/in-list-filter.component.d.ts +27 -0
- package/table-builder/components/gen-col-displayer/gen-col-displayer.component.d.ts +16 -0
- package/table-builder/components/generic-table/generic-table.component.d.ts +71 -0
- package/table-builder/components/generic-table/paginator.component.d.ts +28 -0
- package/table-builder/components/group-by-list/group-by-list.component.d.ts +10 -0
- package/table-builder/components/header-menu/header-menu.component.d.ts +25 -0
- package/table-builder/components/in-filter/in-filter.component.d.ts +21 -0
- package/{src/table-builder/components/index.ts → table-builder/components/index.d.ts} +0 -0
- package/table-builder/components/initialization-component/initialization-component.d.ts +12 -0
- package/table-builder/components/link-column.component.d.ts +17 -0
- package/table-builder/components/number-filter/number-filter.component.d.ts +12 -0
- package/table-builder/components/sort-menu/sort-menu.component-store.d.ts +24 -0
- package/table-builder/components/sort-menu/sort-menu.component.d.ts +25 -0
- package/table-builder/components/table-container/table-container.d.ts +65 -0
- package/table-builder/components/table-container-filter/filter-list/filter-list.component.d.ts +17 -0
- package/table-builder/components/table-container-filter/gen-filter-displayer/gen-filter-displayer.component.d.ts +14 -0
- package/table-builder/components/table-container-filter/table-wrapper-filter-store.d.ts +14 -0
- package/table-builder/directives/custom-cell-directive.d.ts +19 -0
- package/{src/table-builder/directives/index.ts → table-builder/directives/index.d.ts} +0 -1
- package/table-builder/directives/multi-sort.directive.d.ts +11 -0
- package/table-builder/directives/resize-column.directive.d.ts +43 -0
- package/table-builder/directives/table-wrapper.directive.d.ts +11 -0
- package/table-builder/directives/tb-filter.directive.d.ts +120 -0
- package/table-builder/enums/filterTypes.d.ts +31 -0
- package/table-builder/functions/boolean-filter-function.d.ts +3 -0
- package/table-builder/functions/date-filter-function.d.ts +3 -0
- package/table-builder/functions/download-data.d.ts +1 -0
- package/table-builder/functions/null-filter-function.d.ts +2 -0
- package/table-builder/functions/number-filter-function.d.ts +4 -0
- package/table-builder/functions/sort-data-function.d.ts +3 -0
- package/table-builder/functions/string-filter-function.d.ts +7 -0
- package/{src/table-builder/interfaces/ColumnInfo.ts → table-builder/interfaces/ColumnInfo.d.ts} +6 -7
- package/{src/table-builder/interfaces/dictionary.ts → table-builder/interfaces/dictionary.d.ts} +1 -1
- package/table-builder/interfaces/report-def.d.ts +135 -0
- package/table-builder/material.module.d.ts +32 -0
- package/table-builder/ngrx/actions.d.ts +23 -0
- package/table-builder/ngrx/effects.d.ts +19 -0
- package/table-builder/ngrx/reducer.d.ts +15 -0
- package/table-builder/ngrx/selectors.d.ts +22 -0
- package/table-builder/pipes/column-total.pipe.d.ts +8 -0
- package/table-builder/pipes/format-filter-type.pipe.d.ts +8 -0
- package/table-builder/pipes/format-filter-value.pipe.d.ts +14 -0
- package/table-builder/pipes/key-display.d.ts +11 -0
- package/table-builder/services/export-to-csv.service.d.ts +22 -0
- package/table-builder/services/link-creator.service.d.ts +12 -0
- package/table-builder/services/table-template-service.d.ts +14 -0
- package/table-builder/services/transform-creator.d.ts +19 -0
- package/table-builder/table-builder.module.d.ts +45 -0
- package/utilities/directives/auto-focus.directive.d.ts +10 -0
- package/utilities/directives/clickEmitterDirective.d.ts +7 -0
- package/utilities/directives/clickSubject.d.ts +9 -0
- package/utilities/directives/conditional-classes.directive.d.ts +14 -0
- package/utilities/directives/dialog-service.d.ts +10 -0
- package/utilities/directives/dialog.d.ts +46 -0
- package/utilities/directives/mat-toggle-group-directive.d.ts +21 -0
- package/utilities/directives/prevent-enter.directive.d.ts +6 -0
- package/utilities/directives/stop-propagation.directive.d.ts +7 -0
- package/utilities/directives/styler.d.ts +9 -0
- package/utilities/directives/trim-whitespace.directive.d.ts +9 -0
- package/{src/utilities/index.ts → utilities/index.d.ts} +1 -8
- package/utilities/module.d.ts +19 -0
- package/utilities/pipes/function.pipe.d.ts +7 -0
- package/utilities/pipes/phone.pipe.d.ts +7 -0
- package/utilities/pipes/space-case.pipes.d.ts +17 -0
- package/karma.conf.js +0 -44
- package/ng-package.json +0 -7
- package/src/action-state/action-state-spinner/action-state-spinner.component.css +0 -16
- package/src/action-state/action-state-spinner/action-state-spinner.component.html +0 -3
- package/src/action-state/action-state-spinner/action-state-spinner.component.spec.ts +0 -25
- package/src/action-state/action-state-spinner/action-state-spinner.component.ts +0 -22
- package/src/action-state/action-state-ui/action-state-ui.module.ts +0 -19
- package/src/action-state/ngrx-ext/ngrx-ext.module.ts +0 -15
- package/src/action-state/ngrx.ts +0 -69
- package/src/http-request-state/HttpRequestStateFactory.ts +0 -26
- package/src/http-request-state/HttpRequestStateStore.ts +0 -147
- package/src/http-request-state/directives/HttpStateDirectiveBase.ts +0 -38
- package/src/http-request-state/directives/http-error-state-directive.ts +0 -32
- package/src/http-request-state/directives/http-inProgress-state-directive.ts +0 -32
- package/src/http-request-state/directives/http-notStarted-state-directive.ts +0 -31
- package/src/http-request-state/directives/http-success-state-directive.ts +0 -31
- package/src/http-request-state/directives/request-state-directive.spec.ts +0 -72
- package/src/http-request-state/directives/request-state-directive.ts +0 -70
- package/src/http-request-state/helpers.ts +0 -30
- package/src/http-request-state/http-request-state.ts +0 -69
- package/src/http-request-state/http-state-module.ts +0 -26
- package/src/http-request-state/observable.spec.ts +0 -43
- package/src/http-request-state/rxjs/getRequestorBody.ts +0 -10
- package/src/http-request-state/rxjs/getRequestorState.ts +0 -8
- package/src/http-request-state/rxjs/tapError.ts +0 -16
- package/src/http-request-state/rxjs/tapSuccess.ts +0 -16
- package/src/http-request-state/strategies.spec.ts +0 -42
- package/src/http-request-state/types.ts +0 -50
- package/src/ngrx/actionable-selector.ts +0 -95
- package/src/ngrx/index.ts +0 -1
- package/src/rxjs/defaultShareReplay.ts +0 -8
- package/src/rxjs/mapError.ts +0 -8
- package/src/rxjs/rxjs-operators.ts +0 -130
- package/src/rxjs/subjectifier.ts +0 -15
- package/src/specs/clickSubject.spec.ts +0 -95
- package/src/specs/dialog.spec.ts +0 -101
- package/src/specs/toggleGroupDirective.spec.ts +0 -231
- package/src/table-builder/classes/DefaultSettings.ts +0 -10
- package/src/table-builder/classes/GenericTableDataSource.ts +0 -22
- package/src/table-builder/classes/MatTableObservableDataSource.ts +0 -23
- package/src/table-builder/classes/TableBuilderConfig.ts +0 -19
- package/src/table-builder/classes/TableState.ts +0 -63
- package/src/table-builder/classes/data-filter.spec.ts +0 -72
- package/src/table-builder/classes/data-filter.ts +0 -32
- package/src/table-builder/classes/filter-info.ts +0 -132
- package/src/table-builder/classes/table-builder-general-settings.ts +0 -73
- package/src/table-builder/classes/table-builder.ts +0 -71
- package/src/table-builder/classes/table-store.ts +0 -360
- package/src/table-builder/components/array-column.component.ts +0 -39
- package/src/table-builder/components/column-builder/column-builder.component.html +0 -66
- package/src/table-builder/components/column-builder/column-builder.component.scss +0 -43
- package/src/table-builder/components/column-builder/column-builder.component.spec.ts +0 -51
- package/src/table-builder/components/column-builder/column-builder.component.ts +0 -126
- package/src/table-builder/components/date-filter/date-filter.component.html +0 -24
- package/src/table-builder/components/date-filter/date-filter.component.ts +0 -17
- package/src/table-builder/components/filter/filter.component.html +0 -78
- package/src/table-builder/components/filter/filter.component.scss +0 -64
- package/src/table-builder/components/filter/filter.component.spec.ts +0 -89
- package/src/table-builder/components/filter/filter.component.ts +0 -35
- package/src/table-builder/components/filter/in-list/in-list-filter.component.ts +0 -82
- package/src/table-builder/components/gen-col-displayer/gen-col-displayer.component.html +0 -52
- package/src/table-builder/components/gen-col-displayer/gen-col-displayer.component.scss +0 -57
- package/src/table-builder/components/gen-col-displayer/gen-col-displayer.component.ts +0 -44
- package/src/table-builder/components/generic-table/generic-table.component.html +0 -77
- package/src/table-builder/components/generic-table/generic-table.component.scss +0 -45
- package/src/table-builder/components/generic-table/generic-table.component.ts +0 -221
- package/src/table-builder/components/generic-table/paginator.component.ts +0 -89
- package/src/table-builder/components/group-by-list/group-by-list.component.css +0 -8
- package/src/table-builder/components/group-by-list/group-by-list.component.html +0 -10
- package/src/table-builder/components/group-by-list/group-by-list.component.spec.ts +0 -23
- package/src/table-builder/components/group-by-list/group-by-list.component.ts +0 -16
- package/src/table-builder/components/header-menu/header-menu.component.html +0 -117
- package/src/table-builder/components/header-menu/header-menu.component.scss +0 -92
- package/src/table-builder/components/header-menu/header-menu.component.ts +0 -81
- package/src/table-builder/components/in-filter/in-filter.component.css +0 -3
- package/src/table-builder/components/in-filter/in-filter.component.html +0 -13
- package/src/table-builder/components/in-filter/in-filter.component.ts +0 -60
- package/src/table-builder/components/initialization-component/initialization-component.html +0 -21
- package/src/table-builder/components/initialization-component/initialization-component.ts +0 -15
- package/src/table-builder/components/link-column.component.ts +0 -33
- package/src/table-builder/components/number-filter/number-filter.component.css +0 -10
- package/src/table-builder/components/number-filter/number-filter.component.html +0 -21
- package/src/table-builder/components/number-filter/number-filter.component.spec.ts +0 -30
- package/src/table-builder/components/number-filter/number-filter.component.ts +0 -19
- package/src/table-builder/components/sort-menu/sort-menu.component-store.ts +0 -59
- package/src/table-builder/components/sort-menu/sort-menu.component.html +0 -101
- package/src/table-builder/components/sort-menu/sort-menu.component.scss +0 -119
- package/src/table-builder/components/sort-menu/sort-menu.component.ts +0 -82
- package/src/table-builder/components/table-container/table-container.css +0 -26
- package/src/table-builder/components/table-container/table-container.html +0 -113
- package/src/table-builder/components/table-container/table-container.spec.ts +0 -157
- package/src/table-builder/components/table-container/table-container.ts +0 -344
- package/src/table-builder/components/table-container-filter/filter-list/filter-list.component.html +0 -26
- package/src/table-builder/components/table-container-filter/filter-list/filter-list.component.ts +0 -38
- package/src/table-builder/components/table-container-filter/gen-filter-displayer/gen-filter-displayer.component.css +0 -37
- package/src/table-builder/components/table-container-filter/gen-filter-displayer/gen-filter-displayer.component.html +0 -8
- package/src/table-builder/components/table-container-filter/gen-filter-displayer/gen-filter-displayer.component.spec.ts +0 -88
- package/src/table-builder/components/table-container-filter/gen-filter-displayer/gen-filter-displayer.component.ts +0 -27
- package/src/table-builder/components/table-container-filter/table-wrapper-filter-store.ts +0 -23
- package/src/table-builder/directives/custom-cell-directive.ts +0 -45
- package/src/table-builder/directives/multi-sort.directive.spec.ts +0 -124
- package/src/table-builder/directives/multi-sort.directive.ts +0 -41
- package/src/table-builder/directives/resize-column.directive.ts +0 -104
- package/src/table-builder/directives/table-wrapper.directive.ts +0 -16
- package/src/table-builder/directives/tb-filter.directive.ts +0 -363
- package/src/table-builder/enums/filterTypes.ts +0 -65
- package/src/table-builder/functions/boolean-filter-function.ts +0 -13
- package/src/table-builder/functions/date-filter-function.ts +0 -40
- package/src/table-builder/functions/download-data.ts +0 -11
- package/src/table-builder/functions/null-filter-function.ts +0 -9
- package/src/table-builder/functions/number-filter-function.ts +0 -42
- package/src/table-builder/functions/sort-data-function.ts +0 -8
- package/src/table-builder/functions/string-filter-function.ts +0 -52
- package/src/table-builder/interfaces/column-template.ts +0 -9
- package/src/table-builder/interfaces/report-def.ts +0 -131
- package/src/table-builder/material.module.ts +0 -95
- package/src/table-builder/ngrx/actions.ts +0 -7
- package/src/table-builder/ngrx/effects.ts +0 -54
- package/src/table-builder/ngrx/reducer.ts +0 -72
- package/src/table-builder/ngrx/selectors.ts +0 -37
- package/src/table-builder/pipes/column-total.pipe.ts +0 -15
- package/src/table-builder/pipes/format-filter-type.pipe.ts +0 -12
- package/src/table-builder/pipes/format-filter-value.pipe.ts +0 -40
- package/src/table-builder/pipes/key-display.ts +0 -16
- package/src/table-builder/services/export-to-csv.service.ts +0 -92
- package/src/table-builder/services/link-creator.service.ts +0 -48
- package/src/table-builder/services/table-template-service.ts +0 -44
- package/src/table-builder/services/transform-creator.ts +0 -61
- package/src/table-builder/specs/table-custom-filters.spec.ts +0 -262
- package/src/table-builder/styles/collapser.styles.scss +0 -21
- package/src/table-builder/table-builder.module.ts +0 -138
- package/src/test.ts +0 -17
- package/src/utilities/directives/auto-focus.directive.ts +0 -19
- package/src/utilities/directives/clickEmitterDirective.ts +0 -15
- package/src/utilities/directives/clickSubject.ts +0 -19
- package/src/utilities/directives/conditional-classes.directive.ts +0 -35
- package/src/utilities/directives/dialog-service.ts +0 -22
- package/src/utilities/directives/dialog.ts +0 -142
- package/src/utilities/directives/mat-toggle-group-directive.ts +0 -60
- package/src/utilities/directives/prevent-enter.directive.ts +0 -12
- package/src/utilities/directives/stop-propagation.directive.ts +0 -19
- package/src/utilities/directives/styler.ts +0 -16
- package/src/utilities/directives/trim-whitespace.directive.ts +0 -20
- package/src/utilities/module.ts +0 -58
- package/src/utilities/pipes/function.pipe.ts +0 -15
- package/src/utilities/pipes/phone.pipe.ts +0 -15
- package/src/utilities/pipes/space-case.pipes.spec.ts +0 -47
- package/src/utilities/pipes/space-case.pipes.ts +0 -23
- package/tsconfig.lib.json +0 -19
- package/tsconfig.lib.prod.json +0 -10
- package/tsconfig.spec.json +0 -17
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export declare class GeneralTableSettings {
|
|
2
|
+
constructor(settings?: TableBuilderSettings);
|
|
3
|
+
headerSettings: TableWrapperHeaderSettings;
|
|
4
|
+
footerSettings: TableWrapperFooterSettings;
|
|
5
|
+
columnHeaderSettings: TableColumnHeaderSettings;
|
|
6
|
+
}
|
|
7
|
+
export interface TableBuilderSettings {
|
|
8
|
+
headerSettings?: Partial<TableWrapperHeaderSettings>;
|
|
9
|
+
footerSettings?: Partial<TableWrapperFooterSettings>;
|
|
10
|
+
columnHeaderSettings?: Partial<TableColumnHeaderSettings>;
|
|
11
|
+
}
|
|
12
|
+
export declare class TableWrapperHeaderSettings {
|
|
13
|
+
hideExport: boolean;
|
|
14
|
+
hideFilter: boolean;
|
|
15
|
+
hideColumnSettings: boolean;
|
|
16
|
+
hideHeader: boolean;
|
|
17
|
+
hideSort: boolean;
|
|
18
|
+
collapse: boolean;
|
|
19
|
+
showTitleWhenCollapsed: boolean;
|
|
20
|
+
}
|
|
21
|
+
export declare class TableWrapperFooterSettings {
|
|
22
|
+
collapse: boolean;
|
|
23
|
+
}
|
|
24
|
+
export declare class TableColumnHeaderSettings {
|
|
25
|
+
noFilters: boolean;
|
|
26
|
+
noHeader: boolean;
|
|
27
|
+
}
|
|
28
|
+
export declare class PesrsistedTableSettings {
|
|
29
|
+
constructor(tableSettings?: GeneralTableSettings | PesrsistedTableSettings);
|
|
30
|
+
collapseHeader: boolean;
|
|
31
|
+
collapseFooter: boolean;
|
|
32
|
+
}
|
|
33
|
+
export declare class NotPersisitedTableSettings {
|
|
34
|
+
constructor(tableSettings?: GeneralTableSettings);
|
|
35
|
+
hideExport: boolean;
|
|
36
|
+
hideFilter: boolean;
|
|
37
|
+
hideColumnSettings: boolean;
|
|
38
|
+
hideSort: boolean;
|
|
39
|
+
showTitleWhenHeaderCollapsed: boolean;
|
|
40
|
+
hideHeader: boolean;
|
|
41
|
+
hideColumnHeaderFilters: boolean;
|
|
42
|
+
hideColumnHeader: boolean;
|
|
43
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { MetaData, ReportDef } from '../interfaces/report-def';
|
|
3
|
+
import { GeneralTableSettings, TableBuilderSettings } from './table-builder-general-settings';
|
|
4
|
+
export declare class TableBuilder<T = any> {
|
|
5
|
+
private data$;
|
|
6
|
+
metaData$: Observable<MetaData<T>[]>;
|
|
7
|
+
constructor(data$: Observable<T[]>, metaData$?: Observable<MetaData<T, any>[]>, settings?: TableBuilderSettings | Observable<TableBuilderSettings>);
|
|
8
|
+
settings: Observable<GeneralTableSettings>;
|
|
9
|
+
getData$(): Observable<any[]>;
|
|
10
|
+
createMetaData(obj: any): MetaData[];
|
|
11
|
+
cleanVal(val: any, metaData: MetaData): any;
|
|
12
|
+
cleanRecord(record: T, metadata: MetaData[]): T;
|
|
13
|
+
}
|
|
14
|
+
export declare const CreateTableBuilder: (reportDef$: Observable<ReportDef>) => TableBuilder;
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { MetaData } from '../interfaces/report-def';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { Group, InitializationState, PersistedTableState, TableState } from './TableState';
|
|
4
|
+
import { Predicate } from '@angular/core';
|
|
5
|
+
import { TableBuilderConfig } from './TableBuilderConfig';
|
|
6
|
+
import { CustomFilter, FilterInfo } from './filter-info';
|
|
7
|
+
import { Sort, SortDirection } from '@angular/material/sort';
|
|
8
|
+
import { ComponentStore } from '@ngrx/component-store';
|
|
9
|
+
import { Dictionary } from '../interfaces/dictionary';
|
|
10
|
+
import { GeneralTableSettings, NotPersisitedTableSettings, PesrsistedTableSettings } from './table-builder-general-settings';
|
|
11
|
+
import * as i0 from "@angular/core";
|
|
12
|
+
export declare function stateIs(initializationState: InitializationState): (state: TableState) => boolean;
|
|
13
|
+
export declare class TableStore extends ComponentStore<TableState> {
|
|
14
|
+
constructor(config: TableBuilderConfig);
|
|
15
|
+
getSavableState(): Observable<PersistedTableState>;
|
|
16
|
+
on: <V>(srcObservable: Observable<V>, func: (obj: V) => void) => void;
|
|
17
|
+
onLast(callback: (state: TableState) => void): void;
|
|
18
|
+
readonly metaData$: Observable<Dictionary<MetaData<any, []>>>;
|
|
19
|
+
readonly metaDataArray$: Observable<MetaData<any, []>[]>;
|
|
20
|
+
getMetaData$: (key: string) => Observable<MetaData>;
|
|
21
|
+
getUserDefinedWidth$: (key: string) => Observable<number>;
|
|
22
|
+
getUserDefinedWidths$: Observable<Dictionary<number>>;
|
|
23
|
+
private displayedColumns;
|
|
24
|
+
readonly displayedColumns$: Observable<string[]>;
|
|
25
|
+
readonly hideColumn: (observableOrValue: string | Observable<string>) => import("rxjs").Subscription;
|
|
26
|
+
readonly resetState: () => void;
|
|
27
|
+
readonly showColumn: (observableOrValue: string | Observable<string>) => import("rxjs").Subscription;
|
|
28
|
+
readonly setHiddenColumns: (observableOrValue: {
|
|
29
|
+
key: string;
|
|
30
|
+
visible: boolean;
|
|
31
|
+
}[] | Observable<{
|
|
32
|
+
key: string;
|
|
33
|
+
visible: boolean;
|
|
34
|
+
}[]>) => import("rxjs").Subscription;
|
|
35
|
+
setUserDefinedWidth: (observableOrValue: {
|
|
36
|
+
key: string;
|
|
37
|
+
widthInPixel: number;
|
|
38
|
+
}[] | Observable<{
|
|
39
|
+
key: string;
|
|
40
|
+
widthInPixel: number;
|
|
41
|
+
}[]>) => import("rxjs").Subscription;
|
|
42
|
+
setUserDefinedOrder: (observableOrValue: {
|
|
43
|
+
newOrder: number;
|
|
44
|
+
oldOrder: number;
|
|
45
|
+
} | Observable<{
|
|
46
|
+
newOrder: number;
|
|
47
|
+
oldOrder: number;
|
|
48
|
+
}>) => import("rxjs").Subscription;
|
|
49
|
+
readonly filters$: Observable<Dictionary<FilterInfo<any> | CustomFilter<any>>>;
|
|
50
|
+
readonly getFilter$: (filterId: string) => Observable<FilterInfo | CustomFilter | undefined>;
|
|
51
|
+
readonly addFilter: (observableOrValue: FilterInfo<any> | CustomFilter<any> | Observable<FilterInfo<any> | CustomFilter<any>>) => import("rxjs").Subscription;
|
|
52
|
+
readonly addFilters: (observableOrValue: (FilterInfo<any> | CustomFilter<any>)[] | Observable<(FilterInfo<any> | CustomFilter<any>)[]>) => import("rxjs").Subscription;
|
|
53
|
+
private addFiltersToState;
|
|
54
|
+
readonly removeFilter: (observableOrValue: string | Observable<string>) => import("rxjs").Subscription;
|
|
55
|
+
readonly removeFilters: (observableOrValue: string[] | Observable<string[]>) => import("rxjs").Subscription;
|
|
56
|
+
readonly clearFilters: () => void;
|
|
57
|
+
readonly sorted$: Observable<Sort[]>;
|
|
58
|
+
createPreSort: (metaDatas: Dictionary<MetaData>) => Sort[];
|
|
59
|
+
readonly setSort: (observableOrValue: {
|
|
60
|
+
key: string;
|
|
61
|
+
direction?: SortDirection | undefined;
|
|
62
|
+
} | Observable<{
|
|
63
|
+
key: string;
|
|
64
|
+
direction?: SortDirection | undefined;
|
|
65
|
+
}>) => import("rxjs").Subscription;
|
|
66
|
+
readonly setAllSort: (observableOrValue: Sort[] | Observable<Sort[]>) => import("rxjs").Subscription;
|
|
67
|
+
updateStateFunc: (state: TableState, incomingTableState: Partial<TableState>) => TableState;
|
|
68
|
+
readonly setPageSize: (observableOrValue: number | Observable<number>) => import("rxjs").Subscription;
|
|
69
|
+
readonly updateState: (observableOrValue: Partial<TableState> | Observable<Partial<TableState>>) => import("rxjs").Subscription;
|
|
70
|
+
cleanPersistedState(state: TableState, pState: PersistedTableState): {
|
|
71
|
+
filters: any;
|
|
72
|
+
sorted: Sort[];
|
|
73
|
+
hiddenKeys?: string[] | undefined;
|
|
74
|
+
pageSize?: number | undefined;
|
|
75
|
+
userDefined: {
|
|
76
|
+
order: Dictionary<number>;
|
|
77
|
+
widths: Dictionary<number>;
|
|
78
|
+
table: {
|
|
79
|
+
width?: number | undefined;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
persistedTableSettings: PesrsistedTableSettings;
|
|
83
|
+
groupByKeys: string[];
|
|
84
|
+
groups: Group[];
|
|
85
|
+
};
|
|
86
|
+
readonly updateStateFromPersistedState: (observableOrValue: PersistedTableState | Observable<PersistedTableState>) => import("rxjs").Subscription;
|
|
87
|
+
getUserDefinedTableSize$: Observable<number | undefined>;
|
|
88
|
+
setTableWidth: (observableOrValue: number | Observable<number>) => import("rxjs").Subscription;
|
|
89
|
+
mergeMeta: (orig: MetaData, merge: MetaData) => MetaData;
|
|
90
|
+
readonly setIntializationState: (observableOrValue: InitializationState | Observable<InitializationState>) => import("rxjs").Subscription;
|
|
91
|
+
runOnceWhen(predicate: Predicate<TableState>, func: (state: TableState) => void): void;
|
|
92
|
+
onReady(func: (state: TableState) => void): void;
|
|
93
|
+
readonly setMetaData: (observableOrValue: MetaData<any, []> | MetaData<any, []>[] | Observable<MetaData<any, []> | MetaData<any, []>[]>) => import("rxjs").Subscription;
|
|
94
|
+
private initializeOrder;
|
|
95
|
+
toggleCollapseHeader: () => void;
|
|
96
|
+
toggleCollapseFooter: () => void;
|
|
97
|
+
addGroupByKey: (observableOrValue: string | Observable<string>) => import("rxjs").Subscription;
|
|
98
|
+
removeGroupByKey: (observableOrValue: string | Observable<string>) => import("rxjs").Subscription;
|
|
99
|
+
updateGroup: (observableOrValue: Group | Observable<Group>) => import("rxjs").Subscription;
|
|
100
|
+
groupByKeys$: Observable<string[]>;
|
|
101
|
+
groups$: Observable<Group[]>;
|
|
102
|
+
setTableSettings: (observableOrValue: GeneralTableSettings | Observable<GeneralTableSettings>) => import("rxjs").Subscription;
|
|
103
|
+
tableSettings$: Observable<PesrsistedTableSettings & NotPersisitedTableSettings>;
|
|
104
|
+
setLinkMaps: (() => void) | ((observableOrValue: any) => import("rxjs").Subscription);
|
|
105
|
+
getLinkMap: (md: MetaData) => Observable<{
|
|
106
|
+
link: (t: any) => string;
|
|
107
|
+
useRouterLink: boolean;
|
|
108
|
+
target: import("../interfaces/report-def").Target;
|
|
109
|
+
}>;
|
|
110
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TableStore, never>;
|
|
111
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TableStore>;
|
|
112
|
+
}
|
|
113
|
+
export declare const orderViewableMetaData: (state: TableState) => MetaData<any, []>[];
|
|
114
|
+
export declare const orderMetaData: (state: TableState) => MetaData<any, []>[];
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ArrayStyle, ArrayAdditional, MetaData } from '../interfaces/report-def';
|
|
2
|
+
import { TableBuilderConfig } from '../classes/TableBuilderConfig';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ArrayColumnComponent {
|
|
5
|
+
private config;
|
|
6
|
+
ArrayStyle: typeof ArrayStyle;
|
|
7
|
+
additional: ArrayAdditional;
|
|
8
|
+
array: any[];
|
|
9
|
+
metaData: MetaData;
|
|
10
|
+
constructor(config: TableBuilderConfig);
|
|
11
|
+
ngOnInit(): void;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ArrayColumnComponent, never>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ArrayColumnComponent, "tb-array-column", never, { "array": "array"; "metaData": "metaData"; }, {}, never, never, false, never>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { TemplateRef, OnInit, Predicate, Injector } from '@angular/core';
|
|
2
|
+
import { FieldType, MetaData } from '../../interfaces/report-def';
|
|
3
|
+
import { MatColumnDef, MatTable } from '@angular/material/table';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
5
|
+
import { CustomCellDirective } from '../../directives';
|
|
6
|
+
import { FilterInfo } from '../../classes/filter-info';
|
|
7
|
+
import { TransformCreator } from '../../services/transform-creator';
|
|
8
|
+
import { TableStore } from '../../classes/table-store';
|
|
9
|
+
import { TableTemplateService } from '../../services/table-template-service';
|
|
10
|
+
import { Dictionary } from '@ngrx/entity';
|
|
11
|
+
import * as i0 from "@angular/core";
|
|
12
|
+
interface widthStyle {
|
|
13
|
+
flex?: string;
|
|
14
|
+
maxWidth?: string;
|
|
15
|
+
}
|
|
16
|
+
interface allStyles {
|
|
17
|
+
body: widthStyle;
|
|
18
|
+
header: widthStyle;
|
|
19
|
+
footer: widthStyle;
|
|
20
|
+
}
|
|
21
|
+
export declare class ColumnBuilderComponent implements OnInit {
|
|
22
|
+
private transformCreator;
|
|
23
|
+
private table;
|
|
24
|
+
state: TableStore;
|
|
25
|
+
private templateService;
|
|
26
|
+
protected injector: Injector;
|
|
27
|
+
FieldType: typeof FieldType;
|
|
28
|
+
filter: Partial<FilterInfo>;
|
|
29
|
+
metaData: MetaData;
|
|
30
|
+
customCell: CustomCellDirective;
|
|
31
|
+
data$: Observable<any[]>;
|
|
32
|
+
columnDef: MatColumnDef;
|
|
33
|
+
outerTemplate: TemplateRef<any>;
|
|
34
|
+
innerTemplate: TemplateRef<any>;
|
|
35
|
+
transform: (o: any, ...args: any[]) => any;
|
|
36
|
+
bodyTemplate: TemplateRef<any>;
|
|
37
|
+
constructor(transformCreator: TransformCreator, table: MatTable<any>, state: TableStore, templateService: TableTemplateService, injector: Injector);
|
|
38
|
+
getInnerTemplate(): TemplateRef<any>;
|
|
39
|
+
showfilters$: Observable<boolean>;
|
|
40
|
+
getOuterTemplate(): TemplateRef<any>;
|
|
41
|
+
classes?: Dictionary<Predicate<any>>;
|
|
42
|
+
ngOnInit(): void;
|
|
43
|
+
ngAfterViewInit(): void;
|
|
44
|
+
cellClicked(element: any, key: string): void;
|
|
45
|
+
mapWidth: ([previousUserDefinedWidth, currentUserDefinedWidth]: [number, number]) => widthStyle;
|
|
46
|
+
styles$: Observable<allStyles>;
|
|
47
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ColumnBuilderComponent, never>;
|
|
48
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ColumnBuilderComponent, "tb-column-builder", never, { "metaData": "metaData"; "customCell": "customCell"; "data$": "data$"; }, {}, never, never, false, never>;
|
|
49
|
+
}
|
|
50
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PartialFilter } from '../../classes/filter-info';
|
|
2
|
+
import { FilterType } from '../../enums/filterTypes';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class DateFilterComponent {
|
|
5
|
+
FilterType: typeof FilterType;
|
|
6
|
+
info: PartialFilter;
|
|
7
|
+
CurrentFilterType: FilterType;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DateFilterComponent, never>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DateFilterComponent, "tb-date-filter", never, { "info": "info"; "CurrentFilterType": "CurrentFilterType"; }, {}, never, never, false, never>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,294 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { FilterInfo, UnmappedTypes, mappedFieldTypes, PartialFilter } from '../../classes/filter-info';
|
|
3
|
+
import { TableStore } from '../../classes/table-store';
|
|
4
|
+
import { FilterType } from '../../enums/filterTypes';
|
|
5
|
+
import { FieldType } from '../../interfaces/report-def';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class FilterComponent<T extends mappedFieldTypes = any> {
|
|
8
|
+
state: TableStore;
|
|
9
|
+
filterTypes: Omit<{
|
|
10
|
+
0: Partial<{
|
|
11
|
+
Equals: FilterType[];
|
|
12
|
+
"Does Not Equal": FilterType[];
|
|
13
|
+
"Greater Than": FilterType[];
|
|
14
|
+
"Less Than": FilterType[];
|
|
15
|
+
Between: FilterType[];
|
|
16
|
+
Contains: FilterType[];
|
|
17
|
+
"Does Not Contain": FilterType[];
|
|
18
|
+
"Start With": FilterType[];
|
|
19
|
+
"Ends With": FilterType[];
|
|
20
|
+
"Is on": FilterType[];
|
|
21
|
+
"Is Not On": FilterType[];
|
|
22
|
+
"On or After": FilterType[];
|
|
23
|
+
"On or Before": FilterType[];
|
|
24
|
+
Is: FilterType[];
|
|
25
|
+
"Is Blank": FilterType[];
|
|
26
|
+
Or: FilterType[];
|
|
27
|
+
And: FilterType[];
|
|
28
|
+
In: FilterType[];
|
|
29
|
+
Custom: FilterType[];
|
|
30
|
+
}>;
|
|
31
|
+
1: Partial<{
|
|
32
|
+
Equals: FilterType[];
|
|
33
|
+
"Does Not Equal": FilterType[];
|
|
34
|
+
"Greater Than": FilterType[];
|
|
35
|
+
"Less Than": FilterType[];
|
|
36
|
+
Between: FilterType[];
|
|
37
|
+
Contains: FilterType[];
|
|
38
|
+
"Does Not Contain": FilterType[];
|
|
39
|
+
"Start With": FilterType[];
|
|
40
|
+
"Ends With": FilterType[];
|
|
41
|
+
"Is on": FilterType[];
|
|
42
|
+
"Is Not On": FilterType[];
|
|
43
|
+
"On or After": FilterType[];
|
|
44
|
+
"On or Before": FilterType[];
|
|
45
|
+
Is: FilterType[];
|
|
46
|
+
"Is Blank": FilterType[];
|
|
47
|
+
Or: FilterType[];
|
|
48
|
+
And: FilterType[];
|
|
49
|
+
In: FilterType[];
|
|
50
|
+
Custom: FilterType[];
|
|
51
|
+
}>;
|
|
52
|
+
2: Partial<{
|
|
53
|
+
Equals: FilterType[];
|
|
54
|
+
"Does Not Equal": FilterType[];
|
|
55
|
+
"Greater Than": FilterType[];
|
|
56
|
+
"Less Than": FilterType[];
|
|
57
|
+
Between: FilterType[];
|
|
58
|
+
Contains: FilterType[];
|
|
59
|
+
"Does Not Contain": FilterType[];
|
|
60
|
+
"Start With": FilterType[];
|
|
61
|
+
"Ends With": FilterType[];
|
|
62
|
+
"Is on": FilterType[];
|
|
63
|
+
"Is Not On": FilterType[];
|
|
64
|
+
"On or After": FilterType[];
|
|
65
|
+
"On or Before": FilterType[];
|
|
66
|
+
Is: FilterType[];
|
|
67
|
+
"Is Blank": FilterType[];
|
|
68
|
+
Or: FilterType[];
|
|
69
|
+
And: FilterType[];
|
|
70
|
+
In: FilterType[];
|
|
71
|
+
Custom: FilterType[];
|
|
72
|
+
}>;
|
|
73
|
+
3: Partial<{
|
|
74
|
+
Equals: FilterType[];
|
|
75
|
+
"Does Not Equal": FilterType[];
|
|
76
|
+
"Greater Than": FilterType[];
|
|
77
|
+
"Less Than": FilterType[];
|
|
78
|
+
Between: FilterType[];
|
|
79
|
+
Contains: FilterType[];
|
|
80
|
+
"Does Not Contain": FilterType[];
|
|
81
|
+
"Start With": FilterType[];
|
|
82
|
+
"Ends With": FilterType[];
|
|
83
|
+
"Is on": FilterType[];
|
|
84
|
+
"Is Not On": FilterType[];
|
|
85
|
+
"On or After": FilterType[];
|
|
86
|
+
"On or Before": FilterType[];
|
|
87
|
+
Is: FilterType[];
|
|
88
|
+
"Is Blank": FilterType[];
|
|
89
|
+
Or: FilterType[];
|
|
90
|
+
And: FilterType[];
|
|
91
|
+
In: FilterType[];
|
|
92
|
+
Custom: FilterType[];
|
|
93
|
+
}>;
|
|
94
|
+
4: Partial<{
|
|
95
|
+
Equals: FilterType[];
|
|
96
|
+
"Does Not Equal": FilterType[];
|
|
97
|
+
"Greater Than": FilterType[];
|
|
98
|
+
"Less Than": FilterType[];
|
|
99
|
+
Between: FilterType[];
|
|
100
|
+
Contains: FilterType[];
|
|
101
|
+
"Does Not Contain": FilterType[];
|
|
102
|
+
"Start With": FilterType[];
|
|
103
|
+
"Ends With": FilterType[];
|
|
104
|
+
"Is on": FilterType[];
|
|
105
|
+
"Is Not On": FilterType[];
|
|
106
|
+
"On or After": FilterType[];
|
|
107
|
+
"On or Before": FilterType[];
|
|
108
|
+
Is: FilterType[];
|
|
109
|
+
"Is Blank": FilterType[];
|
|
110
|
+
Or: FilterType[];
|
|
111
|
+
And: FilterType[];
|
|
112
|
+
In: FilterType[];
|
|
113
|
+
Custom: FilterType[];
|
|
114
|
+
}>;
|
|
115
|
+
5: Partial<{
|
|
116
|
+
Equals: FilterType[];
|
|
117
|
+
"Does Not Equal": FilterType[];
|
|
118
|
+
"Greater Than": FilterType[];
|
|
119
|
+
"Less Than": FilterType[];
|
|
120
|
+
Between: FilterType[];
|
|
121
|
+
Contains: FilterType[];
|
|
122
|
+
"Does Not Contain": FilterType[];
|
|
123
|
+
"Start With": FilterType[];
|
|
124
|
+
"Ends With": FilterType[];
|
|
125
|
+
"Is on": FilterType[];
|
|
126
|
+
"Is Not On": FilterType[];
|
|
127
|
+
"On or After": FilterType[];
|
|
128
|
+
"On or Before": FilterType[];
|
|
129
|
+
Is: FilterType[];
|
|
130
|
+
"Is Blank": FilterType[];
|
|
131
|
+
Or: FilterType[];
|
|
132
|
+
And: FilterType[];
|
|
133
|
+
In: FilterType[];
|
|
134
|
+
Custom: FilterType[];
|
|
135
|
+
}>;
|
|
136
|
+
6: Partial<{
|
|
137
|
+
Equals: FilterType[];
|
|
138
|
+
"Does Not Equal": FilterType[];
|
|
139
|
+
"Greater Than": FilterType[];
|
|
140
|
+
"Less Than": FilterType[];
|
|
141
|
+
Between: FilterType[];
|
|
142
|
+
Contains: FilterType[];
|
|
143
|
+
"Does Not Contain": FilterType[];
|
|
144
|
+
"Start With": FilterType[];
|
|
145
|
+
"Ends With": FilterType[];
|
|
146
|
+
"Is on": FilterType[];
|
|
147
|
+
"Is Not On": FilterType[];
|
|
148
|
+
"On or After": FilterType[];
|
|
149
|
+
"On or Before": FilterType[];
|
|
150
|
+
Is: FilterType[];
|
|
151
|
+
"Is Blank": FilterType[];
|
|
152
|
+
Or: FilterType[];
|
|
153
|
+
And: FilterType[];
|
|
154
|
+
In: FilterType[];
|
|
155
|
+
Custom: FilterType[];
|
|
156
|
+
}>;
|
|
157
|
+
7: Partial<{
|
|
158
|
+
Equals: FilterType[];
|
|
159
|
+
"Does Not Equal": FilterType[];
|
|
160
|
+
"Greater Than": FilterType[];
|
|
161
|
+
"Less Than": FilterType[];
|
|
162
|
+
Between: FilterType[];
|
|
163
|
+
Contains: FilterType[];
|
|
164
|
+
"Does Not Contain": FilterType[];
|
|
165
|
+
"Start With": FilterType[];
|
|
166
|
+
"Ends With": FilterType[];
|
|
167
|
+
"Is on": FilterType[];
|
|
168
|
+
"Is Not On": FilterType[];
|
|
169
|
+
"On or After": FilterType[];
|
|
170
|
+
"On or Before": FilterType[];
|
|
171
|
+
Is: FilterType[];
|
|
172
|
+
"Is Blank": FilterType[];
|
|
173
|
+
Or: FilterType[];
|
|
174
|
+
And: FilterType[];
|
|
175
|
+
In: FilterType[];
|
|
176
|
+
Custom: FilterType[];
|
|
177
|
+
}>;
|
|
178
|
+
8: Partial<{
|
|
179
|
+
Equals: FilterType[];
|
|
180
|
+
"Does Not Equal": FilterType[];
|
|
181
|
+
"Greater Than": FilterType[];
|
|
182
|
+
"Less Than": FilterType[];
|
|
183
|
+
Between: FilterType[];
|
|
184
|
+
Contains: FilterType[];
|
|
185
|
+
"Does Not Contain": FilterType[];
|
|
186
|
+
"Start With": FilterType[];
|
|
187
|
+
"Ends With": FilterType[];
|
|
188
|
+
"Is on": FilterType[];
|
|
189
|
+
"Is Not On": FilterType[];
|
|
190
|
+
"On or After": FilterType[];
|
|
191
|
+
"On or Before": FilterType[];
|
|
192
|
+
Is: FilterType[];
|
|
193
|
+
"Is Blank": FilterType[];
|
|
194
|
+
Or: FilterType[];
|
|
195
|
+
And: FilterType[];
|
|
196
|
+
In: FilterType[];
|
|
197
|
+
Custom: FilterType[];
|
|
198
|
+
}>;
|
|
199
|
+
9: Partial<{
|
|
200
|
+
Equals: FilterType[];
|
|
201
|
+
"Does Not Equal": FilterType[];
|
|
202
|
+
"Greater Than": FilterType[];
|
|
203
|
+
"Less Than": FilterType[];
|
|
204
|
+
Between: FilterType[];
|
|
205
|
+
Contains: FilterType[];
|
|
206
|
+
"Does Not Contain": FilterType[];
|
|
207
|
+
"Start With": FilterType[];
|
|
208
|
+
"Ends With": FilterType[];
|
|
209
|
+
"Is on": FilterType[];
|
|
210
|
+
"Is Not On": FilterType[];
|
|
211
|
+
"On or After": FilterType[];
|
|
212
|
+
"On or Before": FilterType[];
|
|
213
|
+
Is: FilterType[];
|
|
214
|
+
"Is Blank": FilterType[];
|
|
215
|
+
Or: FilterType[];
|
|
216
|
+
And: FilterType[];
|
|
217
|
+
In: FilterType[];
|
|
218
|
+
Custom: FilterType[];
|
|
219
|
+
}>;
|
|
220
|
+
10: Partial<{
|
|
221
|
+
Equals: FilterType[];
|
|
222
|
+
"Does Not Equal": FilterType[];
|
|
223
|
+
"Greater Than": FilterType[];
|
|
224
|
+
"Less Than": FilterType[];
|
|
225
|
+
Between: FilterType[];
|
|
226
|
+
Contains: FilterType[];
|
|
227
|
+
"Does Not Contain": FilterType[];
|
|
228
|
+
"Start With": FilterType[];
|
|
229
|
+
"Ends With": FilterType[];
|
|
230
|
+
"Is on": FilterType[];
|
|
231
|
+
"Is Not On": FilterType[];
|
|
232
|
+
"On or After": FilterType[];
|
|
233
|
+
"On or Before": FilterType[];
|
|
234
|
+
Is: FilterType[];
|
|
235
|
+
"Is Blank": FilterType[];
|
|
236
|
+
Or: FilterType[];
|
|
237
|
+
And: FilterType[];
|
|
238
|
+
In: FilterType[];
|
|
239
|
+
Custom: FilterType[];
|
|
240
|
+
}>;
|
|
241
|
+
11: Partial<{
|
|
242
|
+
Equals: FilterType[];
|
|
243
|
+
"Does Not Equal": FilterType[];
|
|
244
|
+
"Greater Than": FilterType[];
|
|
245
|
+
"Less Than": FilterType[];
|
|
246
|
+
Between: FilterType[];
|
|
247
|
+
Contains: FilterType[];
|
|
248
|
+
"Does Not Contain": FilterType[];
|
|
249
|
+
"Start With": FilterType[];
|
|
250
|
+
"Ends With": FilterType[];
|
|
251
|
+
"Is on": FilterType[];
|
|
252
|
+
"Is Not On": FilterType[];
|
|
253
|
+
"On or After": FilterType[];
|
|
254
|
+
"On or Before": FilterType[];
|
|
255
|
+
Is: FilterType[];
|
|
256
|
+
"Is Blank": FilterType[];
|
|
257
|
+
Or: FilterType[];
|
|
258
|
+
And: FilterType[];
|
|
259
|
+
In: FilterType[];
|
|
260
|
+
Custom: FilterType[];
|
|
261
|
+
}>;
|
|
262
|
+
12: Partial<{
|
|
263
|
+
Equals: FilterType[];
|
|
264
|
+
"Does Not Equal": FilterType[];
|
|
265
|
+
"Greater Than": FilterType[];
|
|
266
|
+
"Less Than": FilterType[];
|
|
267
|
+
Between: FilterType[];
|
|
268
|
+
Contains: FilterType[];
|
|
269
|
+
"Does Not Contain": FilterType[];
|
|
270
|
+
"Start With": FilterType[];
|
|
271
|
+
"Ends With": FilterType[];
|
|
272
|
+
"Is on": FilterType[];
|
|
273
|
+
"Is Not On": FilterType[];
|
|
274
|
+
"On or After": FilterType[];
|
|
275
|
+
"On or Before": FilterType[];
|
|
276
|
+
Is: FilterType[];
|
|
277
|
+
"Is Blank": FilterType[];
|
|
278
|
+
Or: FilterType[];
|
|
279
|
+
And: FilterType[];
|
|
280
|
+
In: FilterType[];
|
|
281
|
+
Custom: FilterType[];
|
|
282
|
+
}>;
|
|
283
|
+
}, UnmappedTypes>;
|
|
284
|
+
FilterType: typeof FilterType;
|
|
285
|
+
FieldType: typeof FieldType;
|
|
286
|
+
filter: PartialFilter;
|
|
287
|
+
close: EventEmitter<any>;
|
|
288
|
+
currentFilterType?: FilterType;
|
|
289
|
+
constructor(state: TableStore);
|
|
290
|
+
ngOnInit(): void;
|
|
291
|
+
onEnter(filter: FilterInfo, event: any): void;
|
|
292
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FilterComponent<any>, never>;
|
|
293
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FilterComponent<any>, "tb-filter", never, { "filter": "filter"; }, { "close": "close"; }, never, never, false, never>;
|
|
294
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ChangeDetectorRef } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import { TableStore } from '../../../classes/table-store';
|
|
5
|
+
import { Dictionary } from '../../../interfaces/dictionary';
|
|
6
|
+
import { FieldType, MetaData } from '../../../interfaces/report-def';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class InListFilterComponent implements ControlValueAccessor {
|
|
9
|
+
private ref;
|
|
10
|
+
private tableState;
|
|
11
|
+
constructor(ref: ChangeDetectorRef, tableState: TableStore);
|
|
12
|
+
value: string[];
|
|
13
|
+
FieldType: typeof FieldType;
|
|
14
|
+
writeValue(obj: string[]): void;
|
|
15
|
+
onChange: (_: any) => void;
|
|
16
|
+
registerOnChange(fn: any): void;
|
|
17
|
+
onTouched: () => void;
|
|
18
|
+
registerOnTouched(fn: any): void;
|
|
19
|
+
key: string;
|
|
20
|
+
keyValues$: Observable<Dictionary<string>>;
|
|
21
|
+
selectedKeys: string[];
|
|
22
|
+
metaData: MetaData;
|
|
23
|
+
ngOnInit(): void;
|
|
24
|
+
selectFilterChanged($event: any, val: any): void;
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InListFilterComponent, never>;
|
|
26
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InListFilterComponent, "tb-in-list-filter , [tb-in-list-filter]", never, { "key": "key"; }, {}, never, never, false, never>;
|
|
27
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { DisplayCol } from '../../classes/display-col';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { TableStore } from '../../classes/table-store';
|
|
4
|
+
import { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class GenColDisplayerComponent {
|
|
7
|
+
private tableState;
|
|
8
|
+
columns$: Observable<DisplayCol[]>;
|
|
9
|
+
constructor(tableState: TableStore);
|
|
10
|
+
reset(displayCols: DisplayCol[]): void;
|
|
11
|
+
drop(event: CdkDragDrop<string[]>): void;
|
|
12
|
+
unset(displayCols: DisplayCol[]): void;
|
|
13
|
+
emit(displayCols: DisplayCol[]): void;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GenColDisplayerComponent, never>;
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GenColDisplayerComponent, "tb-col-displayer", never, {}, {}, never, never, false, never>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { SimpleChanges, OnInit, QueryList, ViewContainerRef, ElementRef, Injector, TemplateRef } from '@angular/core';
|
|
2
|
+
import { MatSort } from '@angular/material/sort';
|
|
3
|
+
import { MatRowDef, MatTable } from '@angular/material/table';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
5
|
+
import { SelectionModel } from '@angular/cdk/collections';
|
|
6
|
+
import { TableStore } from '../../classes/table-store';
|
|
7
|
+
import { ColumnBuilderComponent } from '../column-builder/column-builder.component';
|
|
8
|
+
import { Dictionary } from '../../interfaces/dictionary';
|
|
9
|
+
import { GenericTableDataSource } from '../../classes/GenericTableDataSource';
|
|
10
|
+
import { ColumnInfo } from '../../interfaces/ColumnInfo';
|
|
11
|
+
import { CdkDragDrop, CdkDropList } from '@angular/cdk/drag-drop';
|
|
12
|
+
import { Group } from '../../classes/TableState';
|
|
13
|
+
import * as i0 from "@angular/core";
|
|
14
|
+
export declare class GenericTableComponent implements OnInit {
|
|
15
|
+
private sort;
|
|
16
|
+
state: TableStore;
|
|
17
|
+
private viewContainer;
|
|
18
|
+
drop(event: CdkDragDrop<string[]>): void;
|
|
19
|
+
data$: Observable<any[]>;
|
|
20
|
+
IndexColumn: boolean;
|
|
21
|
+
SelectionColumn: boolean;
|
|
22
|
+
trackBy: string;
|
|
23
|
+
rows: QueryList<MatRowDef<any>>;
|
|
24
|
+
isSticky: boolean;
|
|
25
|
+
columnBuilders: ColumnBuilderComponent[];
|
|
26
|
+
columnInfos: Observable<ColumnInfo[]>;
|
|
27
|
+
groupHeaderTemplate: TemplateRef<any>;
|
|
28
|
+
private _disableSort;
|
|
29
|
+
set disableSort(val: boolean);
|
|
30
|
+
get disableSort(): boolean;
|
|
31
|
+
table: MatTable<any>;
|
|
32
|
+
dropList: CdkDropList;
|
|
33
|
+
tableElRef: ElementRef;
|
|
34
|
+
currentColumns: string[];
|
|
35
|
+
dataSource: GenericTableDataSource<any>;
|
|
36
|
+
keys: string[];
|
|
37
|
+
injector: Injector;
|
|
38
|
+
rowDefArr: MatRowDef<any>[];
|
|
39
|
+
columns: string[];
|
|
40
|
+
myColumns: Dictionary<ColumnBuilderComponent>;
|
|
41
|
+
showHeader$: Observable<boolean>;
|
|
42
|
+
constructor(sort: MatSort, state: TableStore, viewContainer: ViewContainerRef, injector: Injector);
|
|
43
|
+
trackByFunction: (index: number, item: any) => any;
|
|
44
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
45
|
+
ngOnInit(): void;
|
|
46
|
+
createDataSource(): void;
|
|
47
|
+
isGroupHeader(_: number, row: {
|
|
48
|
+
isGroupHeader: boolean;
|
|
49
|
+
}): boolean;
|
|
50
|
+
isGroupFooter(_: number, row: {
|
|
51
|
+
isGroupFooter: boolean;
|
|
52
|
+
}): boolean;
|
|
53
|
+
updateGroup(group: Group): void;
|
|
54
|
+
addMetaData(column: ColumnInfo): void;
|
|
55
|
+
initializeRowDefs: (defs: MatRowDef<any>[]) => void;
|
|
56
|
+
selection: SelectionModel<any>;
|
|
57
|
+
selection$: Observable<any>;
|
|
58
|
+
masterToggleChecked$: Observable<boolean>;
|
|
59
|
+
masterToggleIndeterminate$: Observable<boolean>;
|
|
60
|
+
isAllSelected(): boolean;
|
|
61
|
+
/** Selects all rows if they are not all selected; otherwise clear selection. */
|
|
62
|
+
masterToggle(): void;
|
|
63
|
+
tableWidth: Observable<{
|
|
64
|
+
width: string;
|
|
65
|
+
} | {
|
|
66
|
+
width?: undefined;
|
|
67
|
+
}>;
|
|
68
|
+
collapseFooter$: Observable<boolean>;
|
|
69
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GenericTableComponent, never>;
|
|
70
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GenericTableComponent, "tb-generic-table", never, { "data$": "data$"; "IndexColumn": "IndexColumn"; "SelectionColumn": "SelectionColumn"; "trackBy": "trackBy"; "rows": "rows"; "isSticky": "isSticky"; "columnBuilders": "columnBuilders"; "columnInfos": "columnInfos"; "groupHeaderTemplate": "groupHeaderTemplate"; "disableSort": "disableSort"; }, { "selection$": "selection$"; }, never, never, false, never>;
|
|
71
|
+
}
|