@one-paragon/angular-utilities 0.1.32 → 0.1.34
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 -12
- package/action-state/action-state-ui/action-state-ui.module.d.ts +9 -9
- package/action-state/index.d.ts +4 -4
- package/action-state/ngrx-ext/ngrx-ext.module.d.ts +8 -8
- package/action-state/ngrx.d.ts +31 -31
- package/esm2022/action-state/action-state-spinner/action-state-spinner.component.mjs +24 -0
- package/esm2022/action-state/action-state-ui/action-state-ui.module.mjs +29 -0
- package/{esm2020 → esm2022}/action-state/index.mjs +7 -7
- package/esm2022/action-state/ngrx-ext/ngrx-ext.module.mjs +24 -0
- package/{esm2020 → esm2022}/action-state/ngrx.mjs +41 -41
- package/esm2022/http-request-state/HttpRequestStateFactory.mjs +28 -0
- package/esm2022/http-request-state/HttpRequestStateStore.mjs +98 -0
- package/esm2022/http-request-state/directives/HttpStateDirectiveBase.mjs +35 -0
- package/esm2022/http-request-state/directives/http-error-state-directive.mjs +30 -0
- package/esm2022/http-request-state/directives/http-inProgress-state-directive.mjs +30 -0
- package/esm2022/http-request-state/directives/http-notStarted-state-directive.mjs +30 -0
- package/esm2022/http-request-state/directives/http-success-state-directive.mjs +35 -0
- package/{esm2020 → esm2022}/http-request-state/directives/index.mjs +5 -5
- package/esm2022/http-request-state/directives/request-state-directive.mjs +61 -0
- package/{esm2020 → esm2022}/http-request-state/helpers.mjs +21 -21
- package/{esm2020 → esm2022}/http-request-state/http-request-state.mjs +38 -38
- package/esm2022/http-request-state/http-state-module.mjs +42 -0
- package/{esm2020 → esm2022}/http-request-state/index.mjs +6 -6
- package/{esm2020 → esm2022}/http-request-state/rxjs/getRequestorBody.mjs +3 -3
- package/{esm2020 → esm2022}/http-request-state/rxjs/getRequestorState.mjs +2 -2
- package/{esm2020 → esm2022}/http-request-state/rxjs/index.mjs +4 -4
- package/{esm2020 → esm2022}/http-request-state/rxjs/tapError.mjs +11 -11
- package/{esm2020 → esm2022}/http-request-state/rxjs/tapSuccess.mjs +11 -11
- package/{esm2020 → esm2022}/http-request-state/types.mjs +15 -15
- package/{esm2020 → esm2022}/ngrx/actionable-selector.mjs +74 -74
- package/{esm2020 → esm2022}/ngrx/index.mjs +1 -1
- package/{esm2020 → esm2022}/one-paragon-angular-utilities.mjs +4 -4
- package/{esm2020 → esm2022}/public-api.mjs +18 -18
- package/{esm2020 → esm2022}/rxjs/defaultShareReplay.mjs +6 -6
- package/{esm2020 → esm2022}/rxjs/index.mjs +4 -4
- package/{esm2020 → esm2022}/rxjs/mapError.mjs +7 -7
- package/{esm2020 → esm2022}/rxjs/rxjs-operators.mjs +90 -90
- package/{esm2020 → esm2022}/rxjs/subjectifier.mjs +14 -14
- package/{esm2020 → esm2022}/table-builder/classes/DefaultSettings.mjs +5 -5
- package/{esm2020 → esm2022}/table-builder/classes/GenericTableDataSource.mjs +12 -12
- package/{esm2020 → esm2022}/table-builder/classes/MatTableObservableDataSource.mjs +20 -20
- package/{esm2020 → esm2022}/table-builder/classes/TableBuilderConfig.mjs +2 -2
- package/{esm2020 → esm2022}/table-builder/classes/TableState.mjs +31 -31
- package/{esm2020 → esm2022}/table-builder/classes/data-filter.mjs +25 -25
- package/{esm2020 → esm2022}/table-builder/classes/display-col.mjs +1 -1
- package/{esm2020 → esm2022}/table-builder/classes/filter-info.mjs +72 -72
- package/{esm2020 → esm2022}/table-builder/classes/table-builder-general-settings.mjs +67 -67
- package/{esm2020 → esm2022}/table-builder/classes/table-builder.mjs +75 -75
- package/esm2022/table-builder/classes/table-store.mjs +293 -0
- package/esm2022/table-builder/components/array-column.component.mjs +58 -0
- package/esm2022/table-builder/components/column-builder/column-builder.component.mjs +113 -0
- package/esm2022/table-builder/components/date-filter/date-filter.component.mjs +26 -0
- package/esm2022/table-builder/components/date-time-filter/date-time-filter.component.mjs +23 -0
- package/esm2022/table-builder/components/filter/filter.component.mjs +55 -0
- package/esm2022/table-builder/components/filter/in-list/in-list-filter.component.mjs +92 -0
- package/esm2022/table-builder/components/gen-col-displayer/gen-col-displayer.component.mjs +46 -0
- package/esm2022/table-builder/components/generic-table/generic-table.component.mjs +203 -0
- package/esm2022/table-builder/components/generic-table/paginator.component.mjs +75 -0
- package/esm2022/table-builder/components/group-by-list/group-by-list.component.mjs +23 -0
- package/esm2022/table-builder/components/header-menu/header-menu.component.mjs +92 -0
- package/esm2022/table-builder/components/in-filter/in-filter.component.mjs +64 -0
- package/{esm2020 → esm2022}/table-builder/components/index.mjs +9 -9
- package/esm2022/table-builder/components/initialization-component/initialization-component.mjs +34 -0
- package/{esm2020 → esm2022}/table-builder/components/link-column.component.mjs +32 -31
- package/esm2022/table-builder/components/number-filter/number-filter.component.mjs +28 -0
- package/esm2022/table-builder/components/sort-menu/sort-menu.component-store.mjs +43 -0
- package/{esm2020 → esm2022}/table-builder/components/sort-menu/sort-menu.component.mjs +76 -75
- package/esm2022/table-builder/components/table-container/table-container.mjs +323 -0
- package/esm2022/table-builder/components/table-container-filter/filter-list/filter-list.component.mjs +43 -0
- package/esm2022/table-builder/components/table-container-filter/gen-filter-displayer/gen-filter-displayer.component.mjs +31 -0
- package/esm2022/table-builder/components/table-container-filter/table-wrapper-filter-store.mjs +26 -0
- package/esm2022/table-builder/directives/custom-cell-directive.mjs +60 -0
- package/{esm2020 → esm2022}/table-builder/directives/index.mjs +5 -5
- package/esm2022/table-builder/directives/multi-sort.directive.mjs +43 -0
- package/esm2022/table-builder/directives/resize-column.directive.mjs +87 -0
- package/esm2022/table-builder/directives/table-wrapper.directive.mjs +27 -0
- package/esm2022/table-builder/directives/tb-filter.directive.mjs +413 -0
- package/{esm2020 → esm2022}/table-builder/enums/filterTypes.mjs +71 -71
- package/{esm2020 → esm2022}/table-builder/functions/boolean-filter-function.mjs +9 -9
- package/{esm2020 → esm2022}/table-builder/functions/date-filter-function.mjs +57 -57
- package/{esm2020 → esm2022}/table-builder/functions/download-data.mjs +11 -11
- package/{esm2020 → esm2022}/table-builder/functions/null-filter-function.mjs +7 -7
- package/{esm2020 → esm2022}/table-builder/functions/number-filter-function.mjs +31 -31
- package/{esm2020 → esm2022}/table-builder/functions/sort-data-function.mjs +4 -4
- package/{esm2020 → esm2022}/table-builder/functions/string-filter-function.mjs +40 -40
- package/{esm2020 → esm2022}/table-builder/interfaces/ColumnInfo.mjs +1 -1
- package/{esm2020 → esm2022}/table-builder/interfaces/dictionary.mjs +1 -1
- package/{esm2020 → esm2022}/table-builder/interfaces/report-def.mjs +34 -34
- package/esm2022/table-builder/material.module.mjs +208 -0
- package/{esm2020 → esm2022}/table-builder/ngrx/actions.mjs +4 -4
- package/esm2022/table-builder/ngrx/effects.mjs +49 -0
- package/{esm2020 → esm2022}/table-builder/ngrx/reducer.mjs +51 -51
- package/{esm2020 → esm2022}/table-builder/ngrx/selectors.mjs +23 -23
- package/esm2022/table-builder/pipes/column-total.pipe.mjs +21 -0
- package/esm2022/table-builder/pipes/format-filter-type.pipe.mjs +19 -0
- package/esm2022/table-builder/pipes/format-filter-value.pipe.mjs +46 -0
- package/esm2022/table-builder/pipes/key-display.mjs +21 -0
- package/esm2022/table-builder/services/export-to-csv.service.mjs +89 -0
- package/{esm2020 → esm2022}/table-builder/services/link-creator.service.mjs +41 -41
- package/esm2022/table-builder/services/table-template-service.mjs +45 -0
- package/esm2022/table-builder/services/transform-creator.mjs +76 -0
- package/esm2022/table-builder/table-builder.module.mjs +208 -0
- package/esm2022/utilities/directives/auto-focus.directive.mjs +27 -0
- package/esm2022/utilities/directives/clickEmitterDirective.mjs +22 -0
- package/esm2022/utilities/directives/clickSubject.mjs +28 -0
- package/esm2022/utilities/directives/conditional-classes.directive.mjs +36 -0
- package/esm2022/utilities/directives/dialog-service.mjs +26 -0
- package/esm2022/utilities/directives/dialog.mjs +139 -0
- package/esm2022/utilities/directives/mat-toggle-group-directive.mjs +60 -0
- package/esm2022/utilities/directives/prevent-enter.directive.mjs +20 -0
- package/esm2022/utilities/directives/stop-propagation.directive.mjs +26 -0
- package/esm2022/utilities/directives/styler.mjs +27 -0
- package/esm2022/utilities/directives/trim-whitespace.directive.mjs +30 -0
- package/{esm2020 → esm2022}/utilities/index.mjs +15 -15
- package/esm2022/utilities/module.mjs +92 -0
- package/esm2022/utilities/pipes/function.pipe.mjs +22 -0
- package/esm2022/utilities/pipes/phone.pipe.mjs +21 -0
- package/esm2022/utilities/pipes/space-case.pipes.mjs +29 -0
- package/{fesm2020 → fesm2022}/one-paragon-angular-utilities.mjs +4398 -4398
- package/fesm2022/one-paragon-angular-utilities.mjs.map +1 -0
- package/http-request-state/HttpRequestStateFactory.d.ts +14 -14
- package/http-request-state/HttpRequestStateStore.d.ts +48 -48
- package/http-request-state/directives/HttpStateDirectiveBase.d.ts +16 -16
- package/http-request-state/directives/http-error-state-directive.d.ts +12 -12
- package/http-request-state/directives/http-inProgress-state-directive.d.ts +12 -12
- package/http-request-state/directives/http-notStarted-state-directive.d.ts +12 -12
- package/http-request-state/directives/http-success-state-directive.d.ts +21 -21
- package/http-request-state/directives/index.d.ts +5 -5
- package/http-request-state/directives/request-state-directive.d.ts +35 -35
- package/http-request-state/helpers.d.ts +9 -9
- package/http-request-state/http-request-state.d.ts +12 -12
- package/http-request-state/http-state-module.d.ts +11 -11
- package/http-request-state/index.d.ts +6 -6
- package/http-request-state/rxjs/getRequestorBody.d.ts +3 -3
- package/http-request-state/rxjs/getRequestorState.d.ts +3 -3
- package/http-request-state/rxjs/index.d.ts +4 -4
- package/http-request-state/rxjs/tapError.d.ts +3 -3
- package/http-request-state/rxjs/tapSuccess.d.ts +3 -3
- package/http-request-state/types.d.ts +36 -36
- package/index.d.ts +5 -5
- package/ngrx/actionable-selector.d.ts +15 -15
- package/ngrx/index.d.ts +1 -1
- package/package.json +13 -19
- package/public-api.d.ts +15 -15
- package/rxjs/defaultShareReplay.d.ts +2 -2
- package/rxjs/index.d.ts +4 -4
- package/rxjs/mapError.d.ts +2 -2
- package/rxjs/rxjs-operators.d.ts +12 -12
- package/rxjs/subjectifier.d.ts +9 -9
- package/table-builder/classes/DefaultSettings.d.ts +9 -9
- package/table-builder/classes/GenericTableDataSource.d.ts +8 -8
- package/table-builder/classes/MatTableObservableDataSource.d.ts +9 -9
- package/table-builder/classes/TableBuilderConfig.d.ts +20 -20
- package/table-builder/classes/TableState.d.ts +46 -46
- package/table-builder/classes/data-filter.d.ts +9 -9
- package/table-builder/classes/display-col.d.ts +5 -5
- package/table-builder/classes/filter-info.d.ts +40 -40
- package/table-builder/classes/table-builder-general-settings.d.ts +43 -43
- package/table-builder/classes/table-builder.d.ts +14 -14
- package/table-builder/classes/table-store.d.ts +114 -114
- package/table-builder/components/array-column.component.d.ts +14 -14
- package/table-builder/components/column-builder/column-builder.component.d.ts +50 -50
- package/table-builder/components/date-filter/date-filter.component.d.ts +10 -10
- package/table-builder/components/date-time-filter/date-time-filter.component.d.ts +10 -10
- package/table-builder/components/filter/filter.component.d.ts +371 -371
- package/table-builder/components/filter/in-list/in-list-filter.component.d.ts +27 -27
- package/table-builder/components/gen-col-displayer/gen-col-displayer.component.d.ts +16 -16
- package/table-builder/components/generic-table/generic-table.component.d.ts +73 -73
- package/table-builder/components/generic-table/paginator.component.d.ts +28 -28
- package/table-builder/components/group-by-list/group-by-list.component.d.ts +10 -10
- package/table-builder/components/header-menu/header-menu.component.d.ts +25 -25
- package/table-builder/components/in-filter/in-filter.component.d.ts +21 -21
- package/table-builder/components/index.d.ts +9 -9
- package/table-builder/components/initialization-component/initialization-component.d.ts +12 -12
- package/table-builder/components/link-column.component.d.ts +17 -17
- package/table-builder/components/number-filter/number-filter.component.d.ts +12 -12
- package/table-builder/components/sort-menu/sort-menu.component-store.d.ts +24 -24
- package/table-builder/components/sort-menu/sort-menu.component.d.ts +25 -25
- package/table-builder/components/table-container/table-container.d.ts +68 -68
- package/table-builder/components/table-container-filter/filter-list/filter-list.component.d.ts +17 -17
- package/table-builder/components/table-container-filter/gen-filter-displayer/gen-filter-displayer.component.d.ts +14 -14
- package/table-builder/components/table-container-filter/table-wrapper-filter-store.d.ts +14 -14
- package/table-builder/directives/custom-cell-directive.d.ts +19 -19
- package/table-builder/directives/index.d.ts +5 -5
- package/table-builder/directives/multi-sort.directive.d.ts +11 -11
- package/table-builder/directives/resize-column.directive.d.ts +43 -43
- package/table-builder/directives/table-wrapper.directive.d.ts +11 -11
- package/table-builder/directives/tb-filter.directive.d.ts +120 -120
- package/table-builder/enums/filterTypes.d.ts +37 -37
- package/table-builder/functions/boolean-filter-function.d.ts +3 -3
- package/table-builder/functions/date-filter-function.d.ts +4 -4
- package/table-builder/functions/download-data.d.ts +1 -1
- package/table-builder/functions/null-filter-function.d.ts +2 -2
- package/table-builder/functions/number-filter-function.d.ts +4 -4
- package/table-builder/functions/sort-data-function.d.ts +3 -3
- package/table-builder/functions/string-filter-function.d.ts +7 -7
- package/table-builder/interfaces/ColumnInfo.d.ts +6 -6
- package/table-builder/interfaces/dictionary.d.ts +3 -3
- package/table-builder/interfaces/report-def.d.ts +142 -142
- package/table-builder/material.module.d.ts +32 -32
- package/table-builder/ngrx/actions.d.ts +23 -23
- package/table-builder/ngrx/effects.d.ts +19 -19
- package/table-builder/ngrx/reducer.d.ts +15 -15
- package/table-builder/ngrx/selectors.d.ts +22 -22
- package/table-builder/pipes/column-total.pipe.d.ts +8 -8
- package/table-builder/pipes/format-filter-type.pipe.d.ts +8 -8
- package/table-builder/pipes/format-filter-value.pipe.d.ts +14 -14
- package/table-builder/pipes/key-display.d.ts +11 -11
- package/table-builder/services/export-to-csv.service.d.ts +22 -22
- package/table-builder/services/link-creator.service.d.ts +12 -12
- package/table-builder/services/table-template-service.d.ts +14 -14
- package/table-builder/services/transform-creator.d.ts +19 -19
- package/table-builder/table-builder.module.d.ts +46 -46
- package/utilities/directives/auto-focus.directive.d.ts +10 -10
- package/utilities/directives/clickEmitterDirective.d.ts +7 -7
- package/utilities/directives/clickSubject.d.ts +9 -9
- package/utilities/directives/conditional-classes.directive.d.ts +14 -14
- package/utilities/directives/dialog-service.d.ts +10 -10
- package/utilities/directives/dialog.d.ts +46 -46
- package/utilities/directives/mat-toggle-group-directive.d.ts +21 -21
- package/utilities/directives/prevent-enter.directive.d.ts +6 -6
- package/utilities/directives/stop-propagation.directive.d.ts +7 -7
- package/utilities/directives/styler.d.ts +9 -9
- package/utilities/directives/trim-whitespace.directive.d.ts +9 -9
- package/utilities/index.d.ts +15 -15
- package/utilities/module.d.ts +19 -19
- package/utilities/pipes/function.pipe.d.ts +7 -7
- package/utilities/pipes/phone.pipe.d.ts +7 -7
- package/utilities/pipes/space-case.pipes.d.ts +17 -17
- package/esm2020/action-state/action-state-spinner/action-state-spinner.component.mjs +0 -23
- package/esm2020/action-state/action-state-ui/action-state-ui.module.mjs +0 -28
- package/esm2020/action-state/ngrx-ext/ngrx-ext.module.mjs +0 -23
- package/esm2020/http-request-state/HttpRequestStateFactory.mjs +0 -27
- package/esm2020/http-request-state/HttpRequestStateStore.mjs +0 -97
- package/esm2020/http-request-state/directives/HttpStateDirectiveBase.mjs +0 -34
- package/esm2020/http-request-state/directives/http-error-state-directive.mjs +0 -29
- package/esm2020/http-request-state/directives/http-inProgress-state-directive.mjs +0 -29
- package/esm2020/http-request-state/directives/http-notStarted-state-directive.mjs +0 -29
- package/esm2020/http-request-state/directives/http-success-state-directive.mjs +0 -34
- package/esm2020/http-request-state/directives/request-state-directive.mjs +0 -60
- package/esm2020/http-request-state/http-state-module.mjs +0 -41
- package/esm2020/table-builder/classes/table-store.mjs +0 -292
- package/esm2020/table-builder/components/array-column.component.mjs +0 -57
- package/esm2020/table-builder/components/column-builder/column-builder.component.mjs +0 -112
- package/esm2020/table-builder/components/date-filter/date-filter.component.mjs +0 -25
- package/esm2020/table-builder/components/date-time-filter/date-time-filter.component.mjs +0 -22
- package/esm2020/table-builder/components/filter/filter.component.mjs +0 -54
- package/esm2020/table-builder/components/filter/in-list/in-list-filter.component.mjs +0 -91
- package/esm2020/table-builder/components/gen-col-displayer/gen-col-displayer.component.mjs +0 -45
- package/esm2020/table-builder/components/generic-table/generic-table.component.mjs +0 -202
- package/esm2020/table-builder/components/generic-table/paginator.component.mjs +0 -74
- package/esm2020/table-builder/components/group-by-list/group-by-list.component.mjs +0 -22
- package/esm2020/table-builder/components/header-menu/header-menu.component.mjs +0 -91
- package/esm2020/table-builder/components/in-filter/in-filter.component.mjs +0 -63
- package/esm2020/table-builder/components/initialization-component/initialization-component.mjs +0 -33
- package/esm2020/table-builder/components/number-filter/number-filter.component.mjs +0 -27
- package/esm2020/table-builder/components/sort-menu/sort-menu.component-store.mjs +0 -42
- package/esm2020/table-builder/components/table-container/table-container.mjs +0 -322
- package/esm2020/table-builder/components/table-container-filter/filter-list/filter-list.component.mjs +0 -42
- package/esm2020/table-builder/components/table-container-filter/gen-filter-displayer/gen-filter-displayer.component.mjs +0 -30
- package/esm2020/table-builder/components/table-container-filter/table-wrapper-filter-store.mjs +0 -25
- package/esm2020/table-builder/directives/custom-cell-directive.mjs +0 -59
- package/esm2020/table-builder/directives/multi-sort.directive.mjs +0 -42
- package/esm2020/table-builder/directives/resize-column.directive.mjs +0 -86
- package/esm2020/table-builder/directives/table-wrapper.directive.mjs +0 -26
- package/esm2020/table-builder/directives/tb-filter.directive.mjs +0 -403
- package/esm2020/table-builder/material.module.mjs +0 -207
- package/esm2020/table-builder/ngrx/effects.mjs +0 -48
- package/esm2020/table-builder/pipes/column-total.pipe.mjs +0 -20
- package/esm2020/table-builder/pipes/format-filter-type.pipe.mjs +0 -18
- package/esm2020/table-builder/pipes/format-filter-value.pipe.mjs +0 -45
- package/esm2020/table-builder/pipes/key-display.mjs +0 -20
- package/esm2020/table-builder/services/export-to-csv.service.mjs +0 -88
- package/esm2020/table-builder/services/table-template-service.mjs +0 -44
- package/esm2020/table-builder/services/transform-creator.mjs +0 -75
- package/esm2020/table-builder/table-builder.module.mjs +0 -207
- package/esm2020/utilities/directives/auto-focus.directive.mjs +0 -26
- package/esm2020/utilities/directives/clickEmitterDirective.mjs +0 -21
- package/esm2020/utilities/directives/clickSubject.mjs +0 -27
- package/esm2020/utilities/directives/conditional-classes.directive.mjs +0 -35
- package/esm2020/utilities/directives/dialog-service.mjs +0 -25
- package/esm2020/utilities/directives/dialog.mjs +0 -137
- package/esm2020/utilities/directives/mat-toggle-group-directive.mjs +0 -59
- package/esm2020/utilities/directives/prevent-enter.directive.mjs +0 -19
- package/esm2020/utilities/directives/stop-propagation.directive.mjs +0 -25
- package/esm2020/utilities/directives/styler.mjs +0 -26
- package/esm2020/utilities/directives/trim-whitespace.directive.mjs +0 -29
- package/esm2020/utilities/module.mjs +0 -91
- package/esm2020/utilities/pipes/function.pipe.mjs +0 -21
- package/esm2020/utilities/pipes/phone.pipe.mjs +0 -20
- package/esm2020/utilities/pipes/space-case.pipes.mjs +0 -28
- package/fesm2015/one-paragon-angular-utilities.mjs +0 -4777
- package/fesm2015/one-paragon-angular-utilities.mjs.map +0 -1
- package/fesm2020/one-paragon-angular-utilities.mjs.map +0 -1
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Pipe } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
class FunctionPipe {
|
|
4
|
+
transform(func, ...args) {
|
|
5
|
+
if (typeof func === 'string') {
|
|
6
|
+
const [instance, ...tail] = args;
|
|
7
|
+
const method = instance[func].bind(instance);
|
|
8
|
+
return method(...tail);
|
|
9
|
+
}
|
|
10
|
+
return func(...args);
|
|
11
|
+
}
|
|
12
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.1", ngImport: i0, type: FunctionPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
13
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.0.1", ngImport: i0, type: FunctionPipe, name: "func" }); }
|
|
14
|
+
}
|
|
15
|
+
export { FunctionPipe };
|
|
16
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version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bmd1bGFyL2NvcmUnO1xuXG5AUGlwZSh7XG4gIG5hbWU6ICdmdW5jJ1xufSlcbmV4cG9ydCBjbGFzcyBGdW5jdGlvblBpcGUgaW1wbGVtZW50cyBQaXBlVHJhbnNmb3JtIHtcbiAgdHJhbnNmb3JtKGZ1bmM6ICggKC4uLmFyZ3M6IGFueVtdKT0+IGFueSApIHwgc3RyaW5nLCAuLi5hcmdzOiBhbnlbXSk6IGFueSB7XG4gICAgaWYodHlwZW9mIGZ1bmMgPT09ICdzdHJpbmcnKSB7XG4gICAgICBjb25zdCBbaW5zdGFuY2UsIC4uLnRhaWxdID0gYXJncztcbiAgICAgIGNvbnN0IG1ldGhvZCA9IGluc3RhbmNlW2Z1bmNdLmJpbmQoaW5zdGFuY2UpO1xuICAgICAgcmV0dXJuIG1ldGhvZCguLi50YWlsKTtcbiAgICB9XG4gICAgICByZXR1cm4gZnVuYyguLi5hcmdzKTtcbiAgfVxufVxuIl19
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Pipe } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
class PhoneNumberPipe {
|
|
4
|
+
transform(phoneNum) {
|
|
5
|
+
if (phoneNum) {
|
|
6
|
+
phoneNum = phoneNum.replace(/\D/g, '');
|
|
7
|
+
if (phoneNum[0] === '1') {
|
|
8
|
+
phoneNum = phoneNum.substring(1);
|
|
9
|
+
}
|
|
10
|
+
return '(' + phoneNum.slice(0, 3) + ') ' + phoneNum.slice(3, 6) + '-' + phoneNum.slice(6, 10) + ' ' + phoneNum.slice(10);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.1", ngImport: i0, type: PhoneNumberPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
14
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.0.1", ngImport: i0, type: PhoneNumberPipe, name: "phone" }); }
|
|
15
|
+
}
|
|
16
|
+
export { PhoneNumberPipe };
|
|
17
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.1", ngImport: i0, type: PhoneNumberPipe, decorators: [{
|
|
18
|
+
type: Pipe,
|
|
19
|
+
args: [{ name: 'phone' }]
|
|
20
|
+
}] });
|
|
21
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGhvbmUucGlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2FuZ3VsYXItdXRpbGl0aWVzL3NyYy91dGlsaXRpZXMvcGlwZXMvcGhvbmUucGlwZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsSUFBSSxFQUFpQixNQUFNLGVBQWUsQ0FBQzs7QUFFcEQsTUFDYSxlQUFlO0lBRTFCLFNBQVMsQ0FBQyxRQUFnQjtRQUN4QixJQUFJLFFBQVEsRUFBRTtZQUNaLFFBQVEsR0FBRyxRQUFRLENBQUMsT0FBTyxDQUFDLEtBQUssRUFBQyxFQUFFLENBQUMsQ0FBQztZQUN0QyxJQUFHLFFBQVEsQ0FBQyxDQUFDLENBQUMsS0FBSyxHQUFHLEVBQUU7Z0JBQ3RCLFFBQVEsR0FBRyxRQUFRLENBQUMsU0FBUyxDQUFDLENBQUMsQ0FBQyxDQUFDO2FBQ2xDO1lBQ0QsT0FBTyxHQUFHLEdBQUksUUFBUSxDQUFDLEtBQUssQ0FBQyxDQUFDLEVBQUUsQ0FBQyxDQUFDLEdBQUcsSUFBSSxHQUFHLFFBQVEsQ0FBQyxLQUFLLENBQUMsQ0FBQyxFQUFFLENBQUMsQ0FBQyxHQUFHLEdBQUcsR0FBRyxRQUFRLENBQUMsS0FBSyxDQUFDLENBQUMsRUFBRSxFQUFFLENBQUMsR0FBRyxHQUFHLEdBQUcsUUFBUSxDQUFDLEtBQUssQ0FBQyxFQUFFLENBQUMsQ0FBQztTQUMzSDtJQUNILENBQUM7OEdBVlUsZUFBZTs0R0FBZixlQUFlOztTQUFmLGVBQWU7MkZBQWYsZUFBZTtrQkFEM0IsSUFBSTttQkFBQyxFQUFDLElBQUksRUFBRSxPQUFPLEVBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBQaXBlLCBQaXBlVHJhbnNmb3JtIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5cbkBQaXBlKHtuYW1lOiAncGhvbmUnfSlcbmV4cG9ydCBjbGFzcyBQaG9uZU51bWJlclBpcGUgaW1wbGVtZW50cyBQaXBlVHJhbnNmb3JtIHtcblxuICB0cmFuc2Zvcm0ocGhvbmVOdW06IHN0cmluZyk6IGFueSB7XG4gICAgaWYgKHBob25lTnVtKSB7XG4gICAgICBwaG9uZU51bSA9IHBob25lTnVtLnJlcGxhY2UoL1xcRC9nLCcnKTtcbiAgICAgIGlmKHBob25lTnVtWzBdID09PSAnMScpIHtcbiAgICAgICAgcGhvbmVOdW0gPSBwaG9uZU51bS5zdWJzdHJpbmcoMSk7XG4gICAgICB9XG4gICAgICByZXR1cm4gJygnICsgIHBob25lTnVtLnNsaWNlKDAsIDMpICsgJykgJyArIHBob25lTnVtLnNsaWNlKDMsIDYpICsgJy0nICsgcGhvbmVOdW0uc2xpY2UoNiwgMTApICsgJyAnICsgcGhvbmVOdW0uc2xpY2UoMTApO1xuICAgIH1cbiAgfVxufVxuIl19
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Pipe } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
class SpaceCasePipe {
|
|
4
|
+
transform(value) {
|
|
5
|
+
return spaceCase(value);
|
|
6
|
+
}
|
|
7
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.1", ngImport: i0, type: SpaceCasePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
8
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.0.1", ngImport: i0, type: SpaceCasePipe, name: "spaceCase" }); }
|
|
9
|
+
}
|
|
10
|
+
export { SpaceCasePipe };
|
|
11
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.1", ngImport: i0, type: SpaceCasePipe, decorators: [{
|
|
12
|
+
type: Pipe,
|
|
13
|
+
args: [{ name: 'spaceCase' }]
|
|
14
|
+
}] });
|
|
15
|
+
/**
|
|
16
|
+
* Adds a space before uppercase letters that either
|
|
17
|
+
* 1. follows a lowercase letter or digit
|
|
18
|
+
* 2. or precedes a lowercase letter and follows an alpha-numeric character
|
|
19
|
+
*
|
|
20
|
+
* Uppercases the first digit
|
|
21
|
+
*
|
|
22
|
+
* Turns underscores into spaces
|
|
23
|
+
*/
|
|
24
|
+
export function spaceCase(value) {
|
|
25
|
+
const phrase = value?.replace(/([a-z0-9])([A-Z])|([a-zA-Z0-9])([A-Z])(?=[a-z])|_/g, '$1$3 $2$4');
|
|
26
|
+
// uppercase the first character of every word
|
|
27
|
+
return phrase?.replace(/(^| )(\w)/g, x => x.toUpperCase());
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3BhY2UtY2FzZS5waXBlcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2FuZ3VsYXItdXRpbGl0aWVzL3NyYy91dGlsaXRpZXMvcGlwZXMvc3BhY2UtY2FzZS5waXBlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsSUFBSSxFQUFpQixNQUFNLGVBQWUsQ0FBQzs7QUFFcEQsTUFDYSxhQUFhO0lBQ3hCLFNBQVMsQ0FBQyxLQUFhO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