@one-paragon/angular-utilities 0.1.0 → 0.1.2-8.beta
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 +1 -1
- package/action-state/ngrx.d.ts +1 -1
- package/esm2020/action-state/action-state-spinner/action-state-spinner.component.mjs +6 -6
- package/esm2020/action-state/action-state-ui/action-state-ui.module.mjs +6 -8
- package/esm2020/action-state/ngrx-ext/ngrx-ext.module.mjs +6 -8
- package/esm2020/action-state/ngrx.mjs +3 -3
- package/esm2020/http-request-state/HttpRequestStateFactory.mjs +3 -3
- package/esm2020/http-request-state/HttpRequestStateStore.mjs +31 -12
- package/esm2020/http-request-state/directives/HttpStateDirectiveBase.mjs +3 -3
- package/esm2020/http-request-state/directives/http-error-state-directive.mjs +3 -3
- package/esm2020/http-request-state/directives/http-inProgress-state-directive.mjs +3 -3
- package/esm2020/http-request-state/directives/http-notStarted-state-directive.mjs +3 -3
- package/esm2020/http-request-state/directives/http-success-state-directive.mjs +11 -6
- package/esm2020/http-request-state/directives/request-state-directive.mjs +7 -4
- package/esm2020/http-request-state/helpers.mjs +4 -1
- package/esm2020/http-request-state/http-state-module.mjs +5 -5
- package/esm2020/http-request-state/types.mjs +2 -1
- package/esm2020/ngrx/actionable-selector.mjs +76 -0
- package/esm2020/ngrx/index.mjs +2 -0
- package/esm2020/public-api.mjs +2 -1
- package/esm2020/rxjs/index.mjs +2 -1
- package/esm2020/rxjs/rxjs-operators.mjs +2 -2
- package/esm2020/rxjs/subjectifier.mjs +15 -0
- package/esm2020/table-builder/classes/TableState.mjs +13 -1
- package/esm2020/table-builder/classes/filter-info.mjs +3 -2
- package/esm2020/table-builder/classes/table-builder.mjs +7 -3
- package/esm2020/table-builder/classes/table-store.mjs +32 -10
- package/esm2020/table-builder/components/array-column.component.mjs +28 -28
- package/esm2020/table-builder/components/column-builder/column-builder.component.mjs +29 -17
- package/esm2020/table-builder/components/date-filter/date-filter.component.mjs +8 -8
- package/esm2020/table-builder/components/filter/filter.component.mjs +20 -20
- package/esm2020/table-builder/components/filter/in-list/in-list-filter.component.mjs +6 -6
- package/esm2020/table-builder/components/gen-col-displayer/gen-col-displayer.component.mjs +12 -12
- package/esm2020/table-builder/components/generic-table/generic-table.component.mjs +26 -13
- package/esm2020/table-builder/components/generic-table/paginator.component.mjs +7 -7
- 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 +17 -17
- package/esm2020/table-builder/components/in-filter/in-filter.component.mjs +5 -8
- package/esm2020/table-builder/components/index.mjs +2 -1
- package/esm2020/table-builder/components/initialization-component/initialization-component.mjs +10 -43
- package/esm2020/table-builder/components/link-column.component.mjs +66 -0
- package/esm2020/table-builder/components/number-filter/number-filter.component.mjs +9 -9
- package/esm2020/table-builder/components/sort-menu/sort-menu.component-store.mjs +3 -3
- package/esm2020/table-builder/components/sort-menu/sort-menu.component.mjs +14 -13
- package/esm2020/table-builder/components/table-container/table-container.mjs +103 -50
- package/esm2020/table-builder/components/table-container-filter/filter-list/filter-list.component.mjs +14 -14
- package/esm2020/table-builder/components/table-container-filter/gen-filter-displayer/gen-filter-displayer.component.mjs +11 -11
- package/esm2020/table-builder/components/table-container-filter/table-wrapper-filter-store.mjs +3 -3
- package/esm2020/table-builder/directives/custom-cell-directive.mjs +3 -3
- package/esm2020/table-builder/directives/index.mjs +2 -2
- package/esm2020/table-builder/directives/multi-sort.directive.mjs +3 -3
- package/esm2020/table-builder/directives/resize-column.directive.mjs +3 -3
- package/esm2020/table-builder/directives/table-wrapper.directive.mjs +10 -4
- package/esm2020/table-builder/directives/tb-filter.directive.mjs +80 -57
- package/esm2020/table-builder/interfaces/report-def.mjs +1 -1
- package/esm2020/table-builder/material.module.mjs +32 -48
- package/esm2020/table-builder/ngrx/effects.mjs +3 -3
- package/esm2020/table-builder/pipes/column-total.pipe.mjs +3 -3
- package/esm2020/table-builder/pipes/format-filter-type.pipe.mjs +3 -3
- package/esm2020/table-builder/pipes/format-filter-value.pipe.mjs +3 -3
- package/esm2020/table-builder/pipes/key-display.mjs +3 -3
- package/esm2020/table-builder/services/export-to-csv.service.mjs +6 -5
- package/esm2020/table-builder/services/link-creator.service.mjs +42 -0
- package/esm2020/table-builder/services/table-template-service.mjs +16 -10
- package/esm2020/table-builder/services/transform-creator.mjs +34 -14
- package/esm2020/table-builder/table-builder.module.mjs +29 -26
- package/esm2020/utilities/directives/auto-focus.directive.mjs +3 -3
- package/esm2020/utilities/directives/clickEmitterDirective.mjs +3 -3
- package/esm2020/utilities/directives/clickSubject.mjs +3 -3
- package/esm2020/utilities/directives/conditional-classes.directive.mjs +35 -0
- package/esm2020/utilities/directives/dialog-service.mjs +9 -9
- package/esm2020/utilities/directives/dialog.mjs +14 -8
- package/esm2020/utilities/directives/mat-toggle-group-directive.mjs +6 -5
- package/esm2020/utilities/directives/prevent-enter.directive.mjs +3 -3
- package/esm2020/utilities/directives/stop-propagation.directive.mjs +3 -3
- package/esm2020/utilities/directives/styler.mjs +3 -3
- package/esm2020/utilities/directives/trim-whitespace.directive.mjs +29 -0
- package/esm2020/utilities/index.mjs +3 -1
- package/esm2020/utilities/module.mjs +18 -8
- package/esm2020/utilities/pipes/function.pipe.mjs +3 -3
- package/esm2020/utilities/pipes/phone.pipe.mjs +3 -3
- package/esm2020/utilities/pipes/space-case.pipes.mjs +7 -7
- package/fesm2015/one-paragon-angular-utilities.mjs +1486 -1068
- package/fesm2015/one-paragon-angular-utilities.mjs.map +1 -1
- package/fesm2020/one-paragon-angular-utilities.mjs +1481 -1066
- package/fesm2020/one-paragon-angular-utilities.mjs.map +1 -1
- package/http-request-state/HttpRequestStateStore.d.ts +11 -3
- package/http-request-state/directives/HttpStateDirectiveBase.d.ts +1 -1
- package/http-request-state/directives/http-error-state-directive.d.ts +1 -1
- package/http-request-state/directives/http-inProgress-state-directive.d.ts +1 -1
- package/http-request-state/directives/http-notStarted-state-directive.d.ts +1 -1
- package/http-request-state/directives/http-success-state-directive.d.ts +9 -2
- package/http-request-state/directives/request-state-directive.d.ts +10 -4
- package/http-request-state/helpers.d.ts +1 -0
- package/http-request-state/rxjs/getRequestorState.d.ts +1 -1
- package/http-request-state/types.d.ts +6 -2
- package/ngrx/actionable-selector.d.ts +15 -0
- package/ngrx/index.d.ts +1 -0
- package/package.json +11 -11
- package/public-api.d.ts +1 -0
- package/rxjs/index.d.ts +1 -0
- package/rxjs/subjectifier.d.ts +9 -0
- package/table-builder/classes/TableState.d.ts +16 -1
- package/table-builder/classes/table-store.d.ts +14 -1
- package/table-builder/components/array-column.component.d.ts +1 -1
- package/table-builder/components/column-builder/column-builder.component.d.ts +6 -3
- package/table-builder/components/date-filter/date-filter.component.d.ts +1 -1
- package/table-builder/components/filter/filter.component.d.ts +1 -1
- package/table-builder/components/filter/in-list/in-list-filter.component.d.ts +1 -1
- package/table-builder/components/gen-col-displayer/gen-col-displayer.component.d.ts +1 -1
- package/table-builder/components/generic-table/generic-table.component.d.ts +7 -2
- package/table-builder/components/generic-table/paginator.component.d.ts +1 -1
- 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 +1 -1
- package/table-builder/components/in-filter/in-filter.component.d.ts +1 -2
- package/table-builder/components/index.d.ts +1 -0
- package/table-builder/components/initialization-component/initialization-component.d.ts +2 -12
- package/table-builder/components/link-column.component.d.ts +17 -0
- package/table-builder/components/number-filter/number-filter.component.d.ts +1 -1
- package/table-builder/components/sort-menu/sort-menu.component.d.ts +1 -1
- package/table-builder/components/table-container/table-container.d.ts +12 -4
- package/table-builder/components/table-container-filter/filter-list/filter-list.component.d.ts +1 -1
- package/table-builder/components/table-container-filter/gen-filter-displayer/gen-filter-displayer.component.d.ts +1 -1
- package/table-builder/directives/custom-cell-directive.d.ts +1 -1
- package/table-builder/directives/index.d.ts +1 -1
- package/table-builder/directives/multi-sort.directive.d.ts +1 -1
- package/table-builder/directives/resize-column.directive.d.ts +1 -1
- package/table-builder/directives/table-wrapper.directive.d.ts +3 -1
- package/table-builder/directives/tb-filter.directive.d.ts +27 -26
- package/table-builder/interfaces/report-def.d.ts +18 -6
- package/table-builder/material.module.d.ts +15 -17
- package/table-builder/ngrx/selectors.d.ts +6 -6
- package/table-builder/pipes/column-total.pipe.d.ts +1 -1
- package/table-builder/pipes/format-filter-type.pipe.d.ts +1 -1
- package/table-builder/pipes/format-filter-value.pipe.d.ts +1 -1
- package/table-builder/pipes/key-display.d.ts +1 -1
- package/table-builder/services/link-creator.service.d.ts +12 -0
- package/table-builder/services/table-template-service.d.ts +2 -2
- package/table-builder/services/transform-creator.d.ts +3 -1
- package/table-builder/table-builder.module.d.ts +24 -22
- package/utilities/directives/auto-focus.directive.d.ts +1 -1
- package/utilities/directives/clickEmitterDirective.d.ts +1 -1
- package/utilities/directives/clickSubject.d.ts +1 -1
- package/utilities/directives/conditional-classes.directive.d.ts +14 -0
- package/utilities/directives/dialog-service.d.ts +2 -2
- package/utilities/directives/dialog.d.ts +3 -2
- package/utilities/directives/mat-toggle-group-directive.d.ts +1 -1
- package/utilities/directives/prevent-enter.directive.d.ts +1 -1
- package/utilities/directives/stop-propagation.directive.d.ts +1 -1
- package/utilities/directives/styler.d.ts +1 -1
- package/utilities/directives/trim-whitespace.directive.d.ts +9 -0
- package/utilities/index.d.ts +2 -0
- package/utilities/module.d.ts +7 -5
- package/utilities/pipes/function.pipe.d.ts +1 -1
- package/utilities/pipes/phone.pipe.d.ts +1 -1
- package/utilities/pipes/space-case.pipes.d.ts +1 -1
- /package/{one-paragon-angular-utilities.d.ts → index.d.ts} +0 -0
|
@@ -2,11 +2,13 @@ import { NgModule } from "@angular/core";
|
|
|
2
2
|
import { AutoFocusDirective } from "./directives/auto-focus.directive";
|
|
3
3
|
import { ClickEmitterDirective } from "./directives/clickEmitterDirective";
|
|
4
4
|
import { ClickSubjectDirective } from "./directives/clickSubject";
|
|
5
|
+
import { ConditionalClassesDirective } from "./directives/conditional-classes.directive";
|
|
5
6
|
import { DialogDirective } from "./directives/dialog";
|
|
6
7
|
import { DialogService } from "./directives/dialog-service";
|
|
7
8
|
import { MatSlideToggleGroupDirective } from "./directives/mat-toggle-group-directive";
|
|
8
9
|
import { PreventEnterDirective } from "./directives/prevent-enter.directive";
|
|
9
10
|
import { StopPropagationDirective } from "./directives/stop-propagation.directive";
|
|
11
|
+
import { TrimWhitespaceDirective } from "./directives/trim-whitespace.directive";
|
|
10
12
|
import { StylerDirective } from "./directives/styler";
|
|
11
13
|
import { FunctionPipe } from "./pipes/function.pipe";
|
|
12
14
|
import { PhoneNumberPipe } from "./pipes/phone.pipe";
|
|
@@ -14,34 +16,38 @@ import { SpaceCasePipe } from "./pipes/space-case.pipes";
|
|
|
14
16
|
import * as i0 from "@angular/core";
|
|
15
17
|
export class UtilitiesModule {
|
|
16
18
|
}
|
|
17
|
-
UtilitiesModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
18
|
-
UtilitiesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
|
19
|
+
UtilitiesModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: UtilitiesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
20
|
+
UtilitiesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.2", ngImport: i0, type: UtilitiesModule, declarations: [SpaceCasePipe,
|
|
19
21
|
PhoneNumberPipe,
|
|
20
22
|
FunctionPipe,
|
|
21
23
|
StopPropagationDirective,
|
|
22
24
|
StylerDirective,
|
|
23
25
|
PreventEnterDirective,
|
|
24
26
|
AutoFocusDirective,
|
|
27
|
+
TrimWhitespaceDirective,
|
|
25
28
|
ClickSubjectDirective,
|
|
26
29
|
ClickEmitterDirective,
|
|
27
30
|
DialogDirective,
|
|
28
|
-
MatSlideToggleGroupDirective
|
|
31
|
+
MatSlideToggleGroupDirective,
|
|
32
|
+
ConditionalClassesDirective], exports: [StopPropagationDirective,
|
|
29
33
|
PreventEnterDirective,
|
|
30
34
|
SpaceCasePipe,
|
|
31
35
|
PhoneNumberPipe,
|
|
32
36
|
FunctionPipe,
|
|
33
37
|
StopPropagationDirective,
|
|
38
|
+
TrimWhitespaceDirective,
|
|
34
39
|
StylerDirective,
|
|
35
40
|
PreventEnterDirective,
|
|
36
41
|
AutoFocusDirective,
|
|
37
42
|
ClickSubjectDirective,
|
|
38
43
|
ClickEmitterDirective,
|
|
39
44
|
DialogDirective,
|
|
40
|
-
MatSlideToggleGroupDirective
|
|
41
|
-
|
|
45
|
+
MatSlideToggleGroupDirective,
|
|
46
|
+
ConditionalClassesDirective] });
|
|
47
|
+
UtilitiesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: UtilitiesModule, providers: [
|
|
42
48
|
DialogService
|
|
43
|
-
]
|
|
44
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
49
|
+
] });
|
|
50
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: UtilitiesModule, decorators: [{
|
|
45
51
|
type: NgModule,
|
|
46
52
|
args: [{
|
|
47
53
|
imports: [],
|
|
@@ -52,6 +58,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.5", ngImpor
|
|
|
52
58
|
PhoneNumberPipe,
|
|
53
59
|
FunctionPipe,
|
|
54
60
|
StopPropagationDirective,
|
|
61
|
+
TrimWhitespaceDirective,
|
|
55
62
|
StylerDirective,
|
|
56
63
|
PreventEnterDirective,
|
|
57
64
|
AutoFocusDirective,
|
|
@@ -59,6 +66,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.5", ngImpor
|
|
|
59
66
|
ClickEmitterDirective,
|
|
60
67
|
DialogDirective,
|
|
61
68
|
MatSlideToggleGroupDirective,
|
|
69
|
+
ConditionalClassesDirective,
|
|
62
70
|
],
|
|
63
71
|
declarations: [
|
|
64
72
|
SpaceCasePipe,
|
|
@@ -68,14 +76,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.5", ngImpor
|
|
|
68
76
|
StylerDirective,
|
|
69
77
|
PreventEnterDirective,
|
|
70
78
|
AutoFocusDirective,
|
|
79
|
+
TrimWhitespaceDirective,
|
|
71
80
|
ClickSubjectDirective,
|
|
72
81
|
ClickEmitterDirective,
|
|
73
82
|
DialogDirective,
|
|
74
83
|
MatSlideToggleGroupDirective,
|
|
84
|
+
ConditionalClassesDirective,
|
|
75
85
|
],
|
|
76
86
|
providers: [
|
|
77
87
|
DialogService
|
|
78
88
|
]
|
|
79
89
|
}]
|
|
80
90
|
}] });
|
|
81
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
91
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvYW5ndWxhci11dGlsaXRpZXMvc3JjL3V0aWxpdGllcy9tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN6QyxPQUFPLEVBQUUsa0JBQWtCLEVBQUUsTUFBTSxtQ0FBbUMsQ0FBQztBQUN2RSxPQUFPLEVBQUUscUJBQXFCLEVBQUUsTUFBTSxvQ0FBb0MsQ0FBQztBQUMzRSxPQUFPLEVBQUUscUJBQXFCLEVBQUUsTUFBTSwyQkFBMkIsQ0FBQztBQUNsRSxPQUFPLEVBQUUsMkJBQTJCLEVBQUUsTUFBTSw0Q0FBNEMsQ0FBQztBQUN6RixPQUFPLEVBQUUsZUFBZSxFQUFFLE1BQU0scUJBQXFC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l0ZXNwYWNlRGlyZWN0aXZlLFxuICAgICAgICBDbGlja1N1YmplY3REaXJlY3RpdmUsXG4gICAgICAgIENsaWNrRW1pdHRlckRpcmVjdGl2ZSxcbiAgICAgICAgRGlhbG9nRGlyZWN0aXZlLFxuICAgICAgICBNYXRTbGlkZVRvZ2dsZUdyb3VwRGlyZWN0aXZlLFxuICAgICAgICBDb25kaXRpb25hbENsYXNzZXNEaXJlY3RpdmUsXG4gICAgXSxcbiAgICBwcm92aWRlcnMgOiBbXG4gICAgICBEaWFsb2dTZXJ2aWNlXG4gICAgXVxufSlcbmV4cG9ydCBjbGFzcyBVdGlsaXRpZXNNb2R1bGUge1xufVxuIl19
|
|
@@ -10,9 +10,9 @@ export class FunctionPipe {
|
|
|
10
10
|
return func(...args);
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
|
-
FunctionPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
14
|
-
FunctionPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "
|
|
15
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
13
|
+
FunctionPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: FunctionPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
14
|
+
FunctionPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.0.2", ngImport: i0, type: FunctionPipe, name: "func" });
|
|
15
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: FunctionPipe, decorators: [{
|
|
16
16
|
type: Pipe,
|
|
17
17
|
args: [{
|
|
18
18
|
name: 'func'
|
|
@@ -11,9 +11,9 @@ export class PhoneNumberPipe {
|
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
|
-
PhoneNumberPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
15
|
-
PhoneNumberPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "
|
|
16
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
14
|
+
PhoneNumberPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: PhoneNumberPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
15
|
+
PhoneNumberPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.0.2", ngImport: i0, type: PhoneNumberPipe, name: "phone" });
|
|
16
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: PhoneNumberPipe, decorators: [{
|
|
17
17
|
type: Pipe,
|
|
18
18
|
args: [{ name: 'phone' }]
|
|
19
19
|
}] });
|
|
@@ -5,9 +5,9 @@ export class SpaceCasePipe {
|
|
|
5
5
|
return spaceCase(value);
|
|
6
6
|
}
|
|
7
7
|
}
|
|
8
|
-
SpaceCasePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
9
|
-
SpaceCasePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "
|
|
10
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
8
|
+
SpaceCasePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: SpaceCasePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
9
|
+
SpaceCasePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.0.2", ngImport: i0, type: SpaceCasePipe, name: "spaceCase" });
|
|
10
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: SpaceCasePipe, decorators: [{
|
|
11
11
|
type: Pipe,
|
|
12
12
|
args: [{ name: 'spaceCase' }]
|
|
13
13
|
}] });
|
|
@@ -21,8 +21,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.5", ngImpor
|
|
|
21
21
|
* Turns underscores into spaces
|
|
22
22
|
*/
|
|
23
23
|
export function spaceCase(value) {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
const phrase = value?.replace(/([a-z0-9])([A-Z])|([a-zA-Z0-9])([A-Z])(?=[a-z])|_/g, '$1$3 $2$4');
|
|
25
|
+
// uppercase the first character of every word
|
|
26
|
+
return phrase?.replace(/(^| )(\w)/g, x => x.toUpperCase());
|
|
27
27
|
}
|
|
28
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
28
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3BhY2UtY2FzZS5waXBlcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2FuZ3VsYXItdXRpbGl0aWVzL3NyYy91dGlsaXRpZXMvcGlwZXMvc3BhY2UtY2FzZS5waXBlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsSUFBSSxFQUFpQixNQUFNLGVBQWUsQ0FBQzs7QUFHcEQsTUFBTSxPQUFPLGFBQWE7SUFDeEIsU0FBUyxDQUFDLEtBQWE7UUFDckIsT0FBUSxTQUFTLENBQUMsS0FBSyxDQUFDLENBQUM7SUFDM0IsQ0FBQzs7MEdBSFUsYUFBYTt3R0FBYixhQUFhOzJGQUFiLGFBQWE7a0JBRHpCLElBQUk7bUJBQUMsRUFBQyxJQUFJLEVBQUUsV0FBVyxFQUFDOztBQU96Qjs7Ozs7Ozs7R0FRRztBQUNILE1BQU0sVUFBVSxTQUFTLENBQUMsS0FBYTtJQUNyQyxNQUFNLE1BQU0sR0FBRyxLQUFLLEVBQUUsT0FBTyxDQUFDL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