@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
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
export enum FilterType {
|
|
3
|
-
NumberEquals = 'Equals',
|
|
4
|
-
NumberNotEqual = 'Does Not Equal',
|
|
5
|
-
NumberGreaterThan = 'Greater Than',
|
|
6
|
-
NumberLessThan = 'Less Than',
|
|
7
|
-
NumberBetween = 'Between',
|
|
8
|
-
StringEquals = 'Equals',
|
|
9
|
-
StringContains = 'Contains',
|
|
10
|
-
StringDoesNotContain = 'Does Not Contain',
|
|
11
|
-
StringStartWith = 'Start With',
|
|
12
|
-
StringEndsWith = 'Ends With',
|
|
13
|
-
DateIsOn = 'Is on',
|
|
14
|
-
DateIsNotOn = 'Is Not On',
|
|
15
|
-
DateOnOrAfter = 'On or After',
|
|
16
|
-
DateOnOrBefore = 'On or Before',
|
|
17
|
-
DateBetween = 'Between',
|
|
18
|
-
BooleanEquals = 'Is',
|
|
19
|
-
IsNull = 'Is Blank',
|
|
20
|
-
Or = 'Or',
|
|
21
|
-
And = 'And',
|
|
22
|
-
In = 'In',
|
|
23
|
-
Custom = 'Custom',
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export const NumberFilterMap:FilterToFiltersMap = {
|
|
27
|
-
[FilterType.NumberEquals]: [FilterType.NumberEquals],
|
|
28
|
-
[FilterType.NumberNotEqual]: [FilterType.NumberNotEqual],
|
|
29
|
-
[FilterType.NumberGreaterThan]: [FilterType.NumberGreaterThan],
|
|
30
|
-
[FilterType.NumberLessThan]: [FilterType.NumberLessThan],
|
|
31
|
-
[FilterType.NumberBetween]: [FilterType.NumberBetween],
|
|
32
|
-
[FilterType.IsNull]: [FilterType.IsNull],
|
|
33
|
-
[FilterType.In]: [FilterType.In],
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
export const StringFilterMap:FilterToFiltersMap = {
|
|
37
|
-
[FilterType.StringEquals]: [FilterType.StringEquals],
|
|
38
|
-
[FilterType.StringContains]: [FilterType.StringContains],
|
|
39
|
-
[FilterType.StringDoesNotContain]: [FilterType.StringDoesNotContain],
|
|
40
|
-
[FilterType.StringStartWith]: [FilterType.StringStartWith],
|
|
41
|
-
[FilterType.StringEndsWith]: [FilterType.StringEndsWith],
|
|
42
|
-
[FilterType.IsNull]: [FilterType.IsNull],
|
|
43
|
-
[FilterType.In]: [FilterType.In],
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
export const DateFilterMap:FilterToFiltersMap = {
|
|
47
|
-
[FilterType.DateIsOn]: [FilterType.DateIsOn],
|
|
48
|
-
[FilterType.DateIsNotOn]: [FilterType.DateIsNotOn],
|
|
49
|
-
[FilterType.DateOnOrAfter]: [FilterType.DateOnOrAfter],
|
|
50
|
-
[FilterType.DateOnOrBefore]: [FilterType.DateOnOrBefore],
|
|
51
|
-
[FilterType.DateBetween]: [FilterType.DateBetween],
|
|
52
|
-
[FilterType.IsNull]: [FilterType.IsNull],
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
export const BooleanFilterMap :FilterToFiltersMap = {
|
|
56
|
-
[FilterType.BooleanEquals]: [FilterType.BooleanEquals],
|
|
57
|
-
[FilterType.IsNull]: [FilterType.IsNull],
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
export const EnumFilterMap : FilterToFiltersMap = {
|
|
61
|
-
[FilterType.IsNull] : [FilterType.IsNull],
|
|
62
|
-
[FilterType.In] : [FilterType.In]
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
export type FilterToFiltersMap = Partial<{[key in FilterType]: FilterType[]}>;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { FilterFunc, FilterInfo } from '../classes/filter-info';
|
|
2
|
-
import { FilterType } from '../enums/filterTypes';
|
|
3
|
-
import { Dictionary } from '../interfaces/dictionary';
|
|
4
|
-
import { isNull } from './null-filter-function';
|
|
5
|
-
|
|
6
|
-
const booleanEqualsFunc : FilterFunc<boolean> = (filterInfo:FilterInfo) => (val): boolean => {
|
|
7
|
-
return filterInfo.filterValue === val;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export const BooleanFilterFuncs: Dictionary<FilterFunc<any,any>> = {
|
|
11
|
-
[FilterType.BooleanEquals]: booleanEqualsFunc,
|
|
12
|
-
[FilterType.IsNull]: isNull,
|
|
13
|
-
};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { FilterFunc, FilterInfo, Range } from '../classes/filter-info';
|
|
2
|
-
import { FilterType } from '../enums/filterTypes';
|
|
3
|
-
import { Dictionary } from '../interfaces/dictionary';
|
|
4
|
-
import { isNull } from './null-filter-function';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const dateIsOnFunc:FilterFunc<Date> = (filterInfo:FilterInfo) => {
|
|
8
|
-
const isOnVal = new Date( filterInfo.filterValue).getTime();
|
|
9
|
-
return ((val)=>val.getTime() === isOnVal);
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
const dateIsNotOnFunc:FilterFunc<Date> = (filterInfo:FilterInfo) => {
|
|
13
|
-
const isNotOnVal = new Date( filterInfo.filterValue).getTime();
|
|
14
|
-
return ((val)=>val?.getTime() !== isNotOnVal);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
const dateIsOnOrAfterFunc:FilterFunc<Date> = (filterInfo:FilterInfo) => {
|
|
18
|
-
const afterVal = new Date( filterInfo.filterValue).getTime();
|
|
19
|
-
return ((val)=>val.getTime() >= afterVal);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
const dateIsOnOrBeforeFunc:FilterFunc<Date> = (filterInfo:FilterInfo) => {
|
|
23
|
-
const beforeVal = new Date( filterInfo.filterValue).getTime();
|
|
24
|
-
return ((val)=>val.getTime() <= beforeVal);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
const dateBetweenFunc:FilterFunc<Range<Date>,Date> = (filterInfo:FilterInfo) => {
|
|
28
|
-
const startVal = new Date(filterInfo.filterValue.Start);
|
|
29
|
-
const endVal = new Date(filterInfo.filterValue.End);
|
|
30
|
-
return ((val)=>val>=startVal && val <= endVal);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export const DateFilterFuncs: Dictionary<FilterFunc<any,any>> = {
|
|
34
|
-
[FilterType.DateIsOn]: dateIsOnFunc,
|
|
35
|
-
[FilterType.DateIsNotOn]: dateIsNotOnFunc,
|
|
36
|
-
[FilterType.DateOnOrAfter]: dateIsOnOrAfterFunc,
|
|
37
|
-
[FilterType.DateOnOrBefore]: dateIsOnOrBeforeFunc,
|
|
38
|
-
[FilterType.DateBetween]: dateBetweenFunc,
|
|
39
|
-
[FilterType.IsNull]: isNull,
|
|
40
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export function downloadData(data: string, filename: string, mimeType: string) {
|
|
2
|
-
const url = URL.createObjectURL(new Blob([data], { type: mimeType }));
|
|
3
|
-
const downloadLink = document.createElement('a');
|
|
4
|
-
downloadLink.download = filename;
|
|
5
|
-
downloadLink.href = url;
|
|
6
|
-
downloadLink.style.display = 'none';
|
|
7
|
-
document.body.appendChild(downloadLink);
|
|
8
|
-
downloadLink.click();
|
|
9
|
-
document.body.removeChild(downloadLink);
|
|
10
|
-
URL.revokeObjectURL(url);
|
|
11
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { FilterFunc, FilterInfo } from '../classes/filter-info';
|
|
2
|
-
|
|
3
|
-
export const isNull:FilterFunc<boolean,any> = (filterInfo:FilterInfo) => {
|
|
4
|
-
const func = filterInfo.filterValue ?
|
|
5
|
-
(val: any) => val == null || val === ''
|
|
6
|
-
:
|
|
7
|
-
(val: any) => val != null && val !== '';
|
|
8
|
-
return func;
|
|
9
|
-
}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { Range, FilterFunc, FilterInfo } from '../classes/filter-info';
|
|
2
|
-
import { FilterType } from '../enums/filterTypes';
|
|
3
|
-
import { Dictionary } from '../interfaces/dictionary';
|
|
4
|
-
import { isNull } from './null-filter-function';
|
|
5
|
-
|
|
6
|
-
type NumberFilterFunc = FilterFunc<number>
|
|
7
|
-
|
|
8
|
-
const numberEqalsFunc:NumberFilterFunc = (filterInfo : FilterInfo<number>) => (val: number): boolean =>{
|
|
9
|
-
return val === filterInfo.filterValue;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
const numberNotEqualFunc:NumberFilterFunc= (filterInfo : FilterInfo<number>) => (val: number): boolean =>{
|
|
13
|
-
return val !== filterInfo.filterValue;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
const numberGreaterThanFunc:NumberFilterFunc= (filterInfo : FilterInfo<number>) => (val: number): boolean => {
|
|
17
|
-
return val > filterInfo.filterValue;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
const numberLessThanFunc:NumberFilterFunc= (filterInfo : FilterInfo<number>) => (val: number): boolean => {
|
|
21
|
-
return val < filterInfo.filterValue;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
const numberBetweenFunc:FilterFunc<Range<number>,number> = (filterInfo : FilterInfo) => {
|
|
25
|
-
const startVal = Number(filterInfo.filterValue.Start);
|
|
26
|
-
const endVal = Number(filterInfo.filterValue.End);
|
|
27
|
-
return ((val)=>(val > startVal) && (val < endVal));
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export const multipleNumberValuesEqualsFunc:FilterFunc<number[],number> = (filterInfo:FilterInfo) => {
|
|
31
|
-
return ((val)=>filterInfo.filterValue.some((value: any) => val === value));
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export const NumberFilterFuncs: Dictionary<FilterFunc<any,any>> = {
|
|
35
|
-
[FilterType.NumberEquals]: numberEqalsFunc,
|
|
36
|
-
[FilterType.NumberNotEqual]: numberNotEqualFunc,
|
|
37
|
-
[FilterType.NumberGreaterThan]: numberGreaterThanFunc,
|
|
38
|
-
[FilterType.NumberLessThan]: numberLessThanFunc,
|
|
39
|
-
[FilterType.NumberBetween]: numberBetweenFunc,
|
|
40
|
-
[FilterType.IsNull]: isNull,
|
|
41
|
-
[FilterType.In]: multipleNumberValuesEqualsFunc,
|
|
42
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Sort, SortDirection } from "@angular/material/sort";
|
|
2
|
-
import { orderBy } from 'lodash';
|
|
3
|
-
|
|
4
|
-
export type direc = 'asc' | 'desc' | boolean;
|
|
5
|
-
|
|
6
|
-
export function sortData<T>(data: T[], sorted: Sort[]): T[] {
|
|
7
|
-
return orderBy(data, sorted.map(r => r.active), sorted.map(r => r.direction as direc ));
|
|
8
|
-
}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { FilterFunc, FilterInfo } from '../classes/filter-info';
|
|
2
|
-
import { FilterType } from '../enums/filterTypes';
|
|
3
|
-
import { Dictionary } from '../interfaces/dictionary';
|
|
4
|
-
import { isNull } from './null-filter-function';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const stringEqualFunc:FilterFunc<string> = (filterInfo:FilterInfo) => {
|
|
8
|
-
const equelsVal = prepareForStringCompare(filterInfo.filterValue);
|
|
9
|
-
return ((val)=>prepareForStringCompare(val) === equelsVal );
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
const stringContainsFunc:FilterFunc<string> = (filterInfo:FilterInfo) => {
|
|
13
|
-
const containsVal = prepareForStringCompare(filterInfo.filterValue);
|
|
14
|
-
return ((val)=>prepareForStringCompare(val).includes(containsVal));
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
const stringDoesNotContainFunc:FilterFunc<string> = (filterInfo:FilterInfo) => {
|
|
18
|
-
const doesNotContainVal = prepareForStringCompare(filterInfo.filterValue);
|
|
19
|
-
return ((val)=>!prepareForStringCompare(val)?.includes(doesNotContainVal));
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
const stringStartsWithFunc:FilterFunc<string> = (filterInfo:FilterInfo) => {
|
|
23
|
-
const startsWith = prepareForStringCompare(filterInfo.filterValue);
|
|
24
|
-
return ((val)=>prepareForStringCompare(val).startsWith(startsWith));
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
const stringEndsWithFunc:FilterFunc<string> = (filterInfo:FilterInfo) => {
|
|
28
|
-
const startsWith = prepareForStringCompare(filterInfo.filterValue);
|
|
29
|
-
return ((val)=>prepareForStringCompare(val).endsWith(startsWith));
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
const multipleStringValuesEqualsFunc:FilterFunc<string[],string> = (filterInfo:FilterInfo) => {
|
|
33
|
-
const filterVals = filterInfo.filterValue.map( (v: string) => prepareForStringCompare(v));
|
|
34
|
-
return ((val)=> filterVals.some((s:string) => prepareForStringCompare(val) === s));
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export const StringFilterFuncs: {[k:string]: FilterFunc<any,any>} = {
|
|
38
|
-
[FilterType.StringEquals]: stringEqualFunc,
|
|
39
|
-
[FilterType.StringContains]: stringContainsFunc,
|
|
40
|
-
[FilterType.StringDoesNotContain]: stringDoesNotContainFunc,
|
|
41
|
-
[FilterType.StringStartWith]: stringStartsWithFunc,
|
|
42
|
-
[FilterType.StringEndsWith]: stringEndsWithFunc,
|
|
43
|
-
[FilterType.IsNull]: isNull,
|
|
44
|
-
[FilterType.In]: multipleStringValuesEqualsFunc,
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
export const EnumFilterFuncs: Dictionary<FilterFunc<any,any>> = {
|
|
48
|
-
[FilterType.IsNull]: isNull,
|
|
49
|
-
[FilterType.In] : multipleStringValuesEqualsFunc,
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
export const prepareForStringCompare = (val : any):string => val?.toString().trim().toLowerCase();
|
|
@@ -1,131 +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
|
-
|
|
6
|
-
|
|
7
|
-
export enum FieldType {
|
|
8
|
-
Unknown = 0,
|
|
9
|
-
Date = 1,
|
|
10
|
-
Link = 2,
|
|
11
|
-
ImageUrl = 3,
|
|
12
|
-
Currency = 4,
|
|
13
|
-
Array = 5,
|
|
14
|
-
Hidden = 6,
|
|
15
|
-
Number = 7,
|
|
16
|
-
String = 8,
|
|
17
|
-
Boolean = 9,
|
|
18
|
-
PhoneNumber = 10,
|
|
19
|
-
Expression = 11,
|
|
20
|
-
Enum = 12,
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export enum SortDirection {
|
|
24
|
-
asc= 'asc',
|
|
25
|
-
desc= 'desc'
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export enum Target {
|
|
29
|
-
Blank = '_blank',
|
|
30
|
-
Self = '_self',
|
|
31
|
-
Parent = '_parent',
|
|
32
|
-
Top = '_top'
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export interface MetaData<T = any, AdditionalFields extends string[] = []> {
|
|
36
|
-
key: (keyof T | AdditionalFields[number]) & string;
|
|
37
|
-
displayName?: string;
|
|
38
|
-
fieldType: FieldType;
|
|
39
|
-
additional?: Additional<T>;
|
|
40
|
-
order?: number;
|
|
41
|
-
preSort?: SortDef;
|
|
42
|
-
_internalNotUserDefined?: boolean;
|
|
43
|
-
width?: string;
|
|
44
|
-
noExport?: boolean;
|
|
45
|
-
noFilter?: boolean;
|
|
46
|
-
customCell?: boolean;
|
|
47
|
-
transform?: ((o: T, ...args: any[])=> any) | ((o: string, ...args: any[])=> any) | PipeTransform;
|
|
48
|
-
click?: (element: T, key: string ) => void;
|
|
49
|
-
template?: TemplateRef<any>;
|
|
50
|
-
classes?: Dictionary<Predicate<T>>;
|
|
51
|
-
toolTip?: string;
|
|
52
|
-
useIcon?: boolean;
|
|
53
|
-
}
|
|
54
|
-
export interface ReportDef<DataType = any> {
|
|
55
|
-
data: DataType[];
|
|
56
|
-
metaData: MetaData [];
|
|
57
|
-
totalRecords?: number;
|
|
58
|
-
count: number;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
export interface SortDef {
|
|
62
|
-
direction: SortDirection;
|
|
63
|
-
precedence?: number;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
export interface FilterOptions {
|
|
67
|
-
filterableValues : string[]
|
|
68
|
-
}
|
|
69
|
-
type interpolatedRoute = string;
|
|
70
|
-
export interface Additional<T = any> {
|
|
71
|
-
link? : {
|
|
72
|
-
base?: string;
|
|
73
|
-
urlKey?: string;
|
|
74
|
-
target?: Target;
|
|
75
|
-
useRouterLink?: boolean;
|
|
76
|
-
/**
|
|
77
|
-
* If you want to use a route with interpolated params, you can use this. Wrap the property name in curly braces.
|
|
78
|
-
* For example, if interpolatedRoute = /users/{id}/edit, {id} will be replaced with the value of the element's id property.
|
|
79
|
-
*/
|
|
80
|
-
interpolatedRoute?: interpolatedRoute;
|
|
81
|
-
routerLinkOptions?:{
|
|
82
|
-
queryParams?: [string, interpolatedRoute][];
|
|
83
|
-
fragment?: string;
|
|
84
|
-
preserveFragment?: boolean;
|
|
85
|
-
queryParamsHandling?: QueryParamsHandling;
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
/**
|
|
89
|
-
* @deprecated Please use link.base
|
|
90
|
-
*/
|
|
91
|
-
base?: string;
|
|
92
|
-
/**
|
|
93
|
-
* @deprecated Please use link.urlKey
|
|
94
|
-
*/
|
|
95
|
-
urlKey?: string;
|
|
96
|
-
/**
|
|
97
|
-
* @deprecated Please use link.target
|
|
98
|
-
*/
|
|
99
|
-
target?: Target;
|
|
100
|
-
/**
|
|
101
|
-
* @deprecated Please use link.useRouterLink
|
|
102
|
-
*/
|
|
103
|
-
useRouterLink?: boolean;
|
|
104
|
-
footer?: { type: 'sum' };
|
|
105
|
-
grouping?: { groupBy?: boolean, sum?: boolean; groupTitleFn?: (val: any) => string }
|
|
106
|
-
export?: TableBuilderExport;
|
|
107
|
-
dateFormat?: string;
|
|
108
|
-
filterOptions?: FilterOptions;
|
|
109
|
-
styles?: Dictionary<string>;
|
|
110
|
-
columnPartStyles?: {
|
|
111
|
-
header?: Dictionary<string>,
|
|
112
|
-
body?: Dictionary<string>,
|
|
113
|
-
footer?: Dictionary<string>,
|
|
114
|
-
}
|
|
115
|
-
enumMap?: {[key:number]:string};
|
|
116
|
-
boolean? : {
|
|
117
|
-
showForFalse? : true | { icon : string },
|
|
118
|
-
forTrue? : { icon : string }
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
export enum ArrayStyle {
|
|
123
|
-
CommaDelimited,
|
|
124
|
-
NewLine
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
export interface ArrayAdditional extends Additional {
|
|
128
|
-
metaData?: MetaData;
|
|
129
|
-
limit?: number;
|
|
130
|
-
arrayStyle?: ArrayStyle;
|
|
131
|
-
}
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { NgModule } from '@angular/core';
|
|
3
|
-
|
|
4
|
-
import { MatAutocompleteModule } from '@angular/material/autocomplete';
|
|
5
|
-
import { MatBadgeModule } from '@angular/material/badge';
|
|
6
|
-
import { MatButtonModule } from '@angular/material/button';
|
|
7
|
-
import { MatCardModule } from '@angular/material/card';
|
|
8
|
-
import { MatCheckboxModule } from '@angular/material/checkbox';
|
|
9
|
-
import { MatNativeDateModule } from '@angular/material/core';
|
|
10
|
-
import { MatDatepickerModule } from '@angular/material/datepicker';
|
|
11
|
-
import { MatDialogModule } from '@angular/material/dialog';
|
|
12
|
-
import { MatExpansionModule } from '@angular/material/expansion';
|
|
13
|
-
import { MatGridListModule } from '@angular/material/grid-list';
|
|
14
|
-
import { MatIconModule } from '@angular/material/icon';
|
|
15
|
-
import { MatInputModule } from '@angular/material/input';
|
|
16
|
-
import { MatMenuModule } from '@angular/material/menu';
|
|
17
|
-
import { MatPaginatorModule } from '@angular/material/paginator';
|
|
18
|
-
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
|
19
|
-
import { MatRadioModule } from '@angular/material/radio';
|
|
20
|
-
import { MatSelectModule } from '@angular/material/select';
|
|
21
|
-
import { MatSidenavModule } from '@angular/material/sidenav';
|
|
22
|
-
import { MatSlideToggleModule } from '@angular/material/slide-toggle';
|
|
23
|
-
import { MatSortModule } from '@angular/material/sort';
|
|
24
|
-
import { MatStepperModule } from '@angular/material/stepper';
|
|
25
|
-
import { MatTableModule } from '@angular/material/table';
|
|
26
|
-
import { MatTabsModule } from '@angular/material/tabs';
|
|
27
|
-
import { MatToolbarModule } from '@angular/material/toolbar';
|
|
28
|
-
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
29
|
-
import { MatChipsModule } from '@angular/material/chips';
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
@NgModule({
|
|
33
|
-
imports: [
|
|
34
|
-
MatSlideToggleModule,
|
|
35
|
-
MatTableModule,
|
|
36
|
-
MatSelectModule,
|
|
37
|
-
MatDialogModule,
|
|
38
|
-
MatDatepickerModule,
|
|
39
|
-
MatRadioModule,
|
|
40
|
-
MatButtonModule,
|
|
41
|
-
MatExpansionModule,
|
|
42
|
-
MatStepperModule,
|
|
43
|
-
MatToolbarModule,
|
|
44
|
-
MatTooltipModule,
|
|
45
|
-
MatNativeDateModule,
|
|
46
|
-
MatProgressSpinnerModule,
|
|
47
|
-
MatGridListModule,
|
|
48
|
-
MatCardModule,
|
|
49
|
-
MatSidenavModule,
|
|
50
|
-
MatTabsModule,
|
|
51
|
-
MatInputModule,
|
|
52
|
-
MatTabsModule,
|
|
53
|
-
MatCheckboxModule,
|
|
54
|
-
MatMenuModule,
|
|
55
|
-
MatIconModule,
|
|
56
|
-
MatBadgeModule,
|
|
57
|
-
MatSortModule,
|
|
58
|
-
MatAutocompleteModule,
|
|
59
|
-
MatPaginatorModule,
|
|
60
|
-
MatChipsModule,
|
|
61
|
-
MatDialogModule,
|
|
62
|
-
],
|
|
63
|
-
exports: [
|
|
64
|
-
MatSlideToggleModule,
|
|
65
|
-
MatTableModule,
|
|
66
|
-
MatSelectModule,
|
|
67
|
-
MatDialogModule,
|
|
68
|
-
MatDatepickerModule,
|
|
69
|
-
MatRadioModule,
|
|
70
|
-
MatButtonModule,
|
|
71
|
-
MatExpansionModule,
|
|
72
|
-
MatStepperModule,
|
|
73
|
-
MatToolbarModule,
|
|
74
|
-
MatTooltipModule,
|
|
75
|
-
MatNativeDateModule,
|
|
76
|
-
MatProgressSpinnerModule,
|
|
77
|
-
MatGridListModule,
|
|
78
|
-
MatCardModule,
|
|
79
|
-
MatSidenavModule,
|
|
80
|
-
MatTabsModule,
|
|
81
|
-
MatInputModule,
|
|
82
|
-
MatTabsModule,
|
|
83
|
-
MatCheckboxModule,
|
|
84
|
-
MatMenuModule,
|
|
85
|
-
MatIconModule,
|
|
86
|
-
MatBadgeModule,
|
|
87
|
-
MatSortModule,
|
|
88
|
-
MatAutocompleteModule,
|
|
89
|
-
MatPaginatorModule,
|
|
90
|
-
MatChipsModule,
|
|
91
|
-
MatDialogModule,
|
|
92
|
-
]
|
|
93
|
-
|
|
94
|
-
})
|
|
95
|
-
export class MaterialModule { }
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { createAction, props } from '@ngrx/store';
|
|
2
|
-
|
|
3
|
-
export const setLocalProfile = createAction('[State Storage] Set Local Profile', props<{key: string, value: any, persist?: boolean}>());
|
|
4
|
-
|
|
5
|
-
export const setLocalProfilesState = createAction('[State Storage] Set Local Profiles Current', props<{key: string, current: string}>());
|
|
6
|
-
|
|
7
|
-
export const deleteLocalProfilesState = createAction('[State Storage] Delete Local Profiles Current', props<{key: string, stateKey: string}>());
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { Injectable } from '@angular/core';
|
|
2
|
-
import { Actions, concatLatestFrom, createEffect, ofType } from '@ngrx/effects';
|
|
3
|
-
import { defaultStorageState, GlobalStorageState} from './reducer';
|
|
4
|
-
import { tap, filter, mergeMap, first, map } from 'rxjs/operators';
|
|
5
|
-
import * as tableActions from './actions';
|
|
6
|
-
import { select, Store } from '@ngrx/store';
|
|
7
|
-
import { selectLocalProfile } from './selectors';
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
@Injectable()
|
|
11
|
-
export class SaveTableEffects {
|
|
12
|
-
|
|
13
|
-
saveLocalProfile$ = createEffect(
|
|
14
|
-
() => this.actions$.pipe(
|
|
15
|
-
ofType(tableActions.setLocalProfile),
|
|
16
|
-
filter( action => !!action.persist),
|
|
17
|
-
concatLatestFrom( (action) => this.store.pipe(
|
|
18
|
-
select(selectLocalProfile(action.key))
|
|
19
|
-
)),
|
|
20
|
-
tap( ([action,profile]) => {
|
|
21
|
-
const globalSavedState: GlobalStorageState = JSON.parse(localStorage.getItem('global-state-storage') ?? JSON.stringify(defaultStorageState) );
|
|
22
|
-
if(!profile) {
|
|
23
|
-
profile = {default: 'default', current: 'default', states : {default: action.value}};
|
|
24
|
-
globalSavedState.localProfiles[action.key] = profile;
|
|
25
|
-
} {
|
|
26
|
-
if(!globalSavedState.localProfiles[action.key]) {
|
|
27
|
-
globalSavedState.localProfiles[action.key] = {...profile,states: {[profile.current ?? profile.default]: action.value}};
|
|
28
|
-
} else {
|
|
29
|
-
globalSavedState.localProfiles[action.key].states[profile.current ?? profile.default] = action.value;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
localStorage.setItem('global-state-storage', JSON.stringify( globalSavedState));
|
|
34
|
-
}),
|
|
35
|
-
), { dispatch: false }
|
|
36
|
-
);
|
|
37
|
-
|
|
38
|
-
deleteLocalProfile$ = createEffect(
|
|
39
|
-
() => this.actions$.pipe(
|
|
40
|
-
ofType(tableActions.deleteLocalProfilesState),
|
|
41
|
-
tap( (a) => {
|
|
42
|
-
const globalSavedState: GlobalStorageState = JSON.parse(localStorage.getItem('global-state-storage') ?? JSON.stringify(defaultStorageState) );
|
|
43
|
-
if(!globalSavedState.localProfiles[a.key]) {
|
|
44
|
-
return;
|
|
45
|
-
} else {
|
|
46
|
-
delete globalSavedState.localProfiles[a.key].states[a.stateKey];
|
|
47
|
-
}
|
|
48
|
-
localStorage.setItem('global-state-storage', JSON.stringify( globalSavedState));
|
|
49
|
-
}),
|
|
50
|
-
), { dispatch: false }
|
|
51
|
-
);
|
|
52
|
-
|
|
53
|
-
constructor( private actions$: Actions, private store: Store<any> ) {}
|
|
54
|
-
}
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { createReducer, Action, on } from '@ngrx/store';
|
|
2
|
-
import * as tableActions from './actions';
|
|
3
|
-
import { Dictionary } from '../interfaces/dictionary';
|
|
4
|
-
|
|
5
|
-
export interface Profile<T = any> {
|
|
6
|
-
default: string;
|
|
7
|
-
current: string;
|
|
8
|
-
states: Dictionary<T>;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export interface GlobalStorageState {
|
|
12
|
-
globalProfileKeys : string [];
|
|
13
|
-
currentGlobalProfile: string;
|
|
14
|
-
globalProfiles: Dictionary<Profile>;
|
|
15
|
-
localProfiles: Dictionary<Profile>;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export const defaultStorageState: GlobalStorageState = {
|
|
19
|
-
globalProfileKeys: ['Default'],
|
|
20
|
-
currentGlobalProfile: 'Default',
|
|
21
|
-
globalProfiles: {},
|
|
22
|
-
localProfiles: {}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
function loadGlobalStorageState() : GlobalStorageState {
|
|
27
|
-
const storage = localStorage.getItem('global-state-storage');
|
|
28
|
-
if(storage) {
|
|
29
|
-
return {...defaultStorageState, ...JSON.parse(storage)};
|
|
30
|
-
}
|
|
31
|
-
return defaultStorageState;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
const reducer = createReducer(
|
|
35
|
-
loadGlobalStorageState(),
|
|
36
|
-
on(tableActions.setLocalProfile, (state,{key,value})=> {
|
|
37
|
-
let profile = state.localProfiles[key];
|
|
38
|
-
if(!profile) {
|
|
39
|
-
profile = {default: 'default', current: 'default', states : {
|
|
40
|
-
default: value
|
|
41
|
-
}};
|
|
42
|
-
} else {
|
|
43
|
-
profile = {...profile, states: {...profile.states, [profile.current ?? profile.default] : value} };
|
|
44
|
-
}
|
|
45
|
-
return {...state, localProfiles: {...state.localProfiles, [key]: profile} }
|
|
46
|
-
}),
|
|
47
|
-
on(tableActions.setLocalProfilesState, (state, {key,current}) => {
|
|
48
|
-
let profile = state.localProfiles[key];
|
|
49
|
-
if(!profile) {
|
|
50
|
-
profile = {default: current, current , states : {[current]: null }};
|
|
51
|
-
} else {
|
|
52
|
-
const state = profile.states[current] ?? profile.states[profile.current ?? profile.default];
|
|
53
|
-
profile = {...profile, current, states: {...profile.states, [current] : state }};
|
|
54
|
-
}
|
|
55
|
-
return {...state, localProfiles: {...state.localProfiles, [key]: profile}};
|
|
56
|
-
}),
|
|
57
|
-
on(tableActions.deleteLocalProfilesState, (state, {key,stateKey}) => {
|
|
58
|
-
let profile = state.localProfiles[key];
|
|
59
|
-
if(profile) {
|
|
60
|
-
const current = profile.current === stateKey ? profile.default : profile.current;
|
|
61
|
-
profile = {...profile,current, states: { ...profile.states}};
|
|
62
|
-
delete profile.states[stateKey];
|
|
63
|
-
return {...state, localProfiles: {...state.localProfiles, [key]: profile} };
|
|
64
|
-
} else {
|
|
65
|
-
return state;
|
|
66
|
-
}
|
|
67
|
-
})
|
|
68
|
-
);
|
|
69
|
-
|
|
70
|
-
export function storageStateReducer(state: GlobalStorageState | undefined, action: Action) {
|
|
71
|
-
return reducer(state, action);
|
|
72
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { createSelector } from '@ngrx/store';
|
|
2
|
-
import { GlobalStorageState, Profile } from './reducer';
|
|
3
|
-
|
|
4
|
-
export const selectGlobalStorageState = (state: {globalStorageState: GlobalStorageState}) => state.globalStorageState;
|
|
5
|
-
|
|
6
|
-
export const selectGlobalProfileKeys = createSelector(selectGlobalStorageState, state => state.globalProfileKeys )
|
|
7
|
-
|
|
8
|
-
export const selectCurrentGlobalProfile = createSelector(selectGlobalStorageState, state => state.globalProfiles[state.currentGlobalProfile]);
|
|
9
|
-
|
|
10
|
-
export const selectLocalProfile = <T>(key:string) => createSelector(selectGlobalStorageState, state => state.localProfiles[key]);
|
|
11
|
-
|
|
12
|
-
export const selectLocalProfileState = <T>(key:string) => createSelector(
|
|
13
|
-
selectLocalProfile(key),
|
|
14
|
-
(profile: Profile<T>) => {
|
|
15
|
-
if(profile) {
|
|
16
|
-
return profile.states[profile.current ?? profile.default];
|
|
17
|
-
}
|
|
18
|
-
return null;
|
|
19
|
-
});
|
|
20
|
-
|
|
21
|
-
export const selectLocalProfileCurrentKey = <T>(key:string) => createSelector(
|
|
22
|
-
selectLocalProfile(key),
|
|
23
|
-
(profile: Profile<T>) => {
|
|
24
|
-
if(profile) {
|
|
25
|
-
return profile.current ?? profile.default;
|
|
26
|
-
}
|
|
27
|
-
return 'default';
|
|
28
|
-
});
|
|
29
|
-
|
|
30
|
-
export const selectLocalProfileKeys = <T>(key:string) => createSelector(
|
|
31
|
-
selectLocalProfile(key),
|
|
32
|
-
(profile: Profile<T>) => {
|
|
33
|
-
if(profile) {
|
|
34
|
-
return Object.keys(profile.states).filter( key => key);
|
|
35
|
-
}
|
|
36
|
-
return null;
|
|
37
|
-
});
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Pipe, PipeTransform } from '@angular/core';
|
|
2
|
-
import { MetaData } from '../interfaces/report-def';
|
|
3
|
-
import {sumBy} from 'lodash';
|
|
4
|
-
|
|
5
|
-
@Pipe({ name: 'columnTotal' })
|
|
6
|
-
export class ColumnTotalPipe implements PipeTransform {
|
|
7
|
-
transform(data: any[], metaData: MetaData) {
|
|
8
|
-
const dataToCalculate = data.filter(d => !d.isGroupHeader && !d.isGroupFooter)
|
|
9
|
-
switch (metaData.additional!.footer!.type) {
|
|
10
|
-
case 'sum':
|
|
11
|
-
return sumBy(dataToCalculate, metaData.key);
|
|
12
|
-
}
|
|
13
|
-
return null;
|
|
14
|
-
}
|
|
15
|
-
}
|