@one-paragon/angular-utilities 0.1.20 → 0.1.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/karma.conf.js +44 -0
- package/ng-package.json +7 -0
- package/package.json +16 -36
- package/src/action-state/action-state-spinner/action-state-spinner.component.css +16 -0
- package/src/action-state/action-state-spinner/action-state-spinner.component.html +3 -0
- package/src/action-state/action-state-spinner/action-state-spinner.component.spec.ts +25 -0
- package/src/action-state/action-state-spinner/action-state-spinner.component.ts +22 -0
- package/src/action-state/action-state-ui/action-state-ui.module.ts +19 -0
- package/{action-state/index.d.ts → src/action-state/index.ts} +8 -4
- package/src/action-state/ngrx-ext/ngrx-ext.module.ts +15 -0
- package/src/action-state/ngrx.ts +69 -0
- package/src/http-request-state/HttpRequestStateFactory.ts +26 -0
- package/src/http-request-state/HttpRequestStateStore.ts +147 -0
- package/src/http-request-state/directives/HttpStateDirectiveBase.ts +38 -0
- package/src/http-request-state/directives/http-error-state-directive.ts +32 -0
- package/src/http-request-state/directives/http-inProgress-state-directive.ts +32 -0
- package/src/http-request-state/directives/http-notStarted-state-directive.ts +31 -0
- package/src/http-request-state/directives/http-success-state-directive.ts +31 -0
- package/{http-request-state/directives/index.d.ts → src/http-request-state/directives/index.ts} +0 -0
- package/src/http-request-state/directives/request-state-directive.spec.ts +72 -0
- package/src/http-request-state/directives/request-state-directive.ts +70 -0
- package/src/http-request-state/helpers.ts +30 -0
- package/src/http-request-state/http-request-state.ts +69 -0
- package/src/http-request-state/http-state-module.ts +26 -0
- package/{http-request-state/index.d.ts → src/http-request-state/index.ts} +1 -1
- package/src/http-request-state/observable.spec.ts +43 -0
- package/src/http-request-state/rxjs/getRequestorBody.ts +10 -0
- package/src/http-request-state/rxjs/getRequestorState.ts +8 -0
- package/{http-request-state/rxjs/index.d.ts → src/http-request-state/rxjs/index.ts} +0 -0
- package/src/http-request-state/rxjs/tapError.ts +16 -0
- package/src/http-request-state/rxjs/tapSuccess.ts +16 -0
- package/src/http-request-state/strategies.spec.ts +42 -0
- package/src/http-request-state/types.ts +50 -0
- package/src/ngrx/actionable-selector.ts +95 -0
- package/src/ngrx/index.ts +1 -0
- package/{public-api.d.ts → src/public-api.ts} +33 -15
- package/src/rxjs/defaultShareReplay.ts +8 -0
- package/{rxjs/index.d.ts → src/rxjs/index.ts} +4 -4
- package/src/rxjs/mapError.ts +8 -0
- package/src/rxjs/rxjs-operators.ts +130 -0
- package/src/rxjs/subjectifier.ts +15 -0
- package/src/specs/clickSubject.spec.ts +95 -0
- package/src/specs/dialog.spec.ts +101 -0
- package/src/specs/toggleGroupDirective.spec.ts +231 -0
- package/src/table-builder/classes/DefaultSettings.ts +10 -0
- package/src/table-builder/classes/GenericTableDataSource.ts +22 -0
- package/src/table-builder/classes/MatTableObservableDataSource.ts +23 -0
- package/src/table-builder/classes/TableBuilderConfig.ts +19 -0
- package/src/table-builder/classes/TableState.ts +63 -0
- package/src/table-builder/classes/data-filter.spec.ts +72 -0
- package/src/table-builder/classes/data-filter.ts +32 -0
- package/{table-builder/classes/display-col.d.ts → src/table-builder/classes/display-col.ts} +0 -0
- package/src/table-builder/classes/filter-info.ts +132 -0
- package/src/table-builder/classes/table-builder-general-settings.ts +73 -0
- package/src/table-builder/classes/table-builder.ts +71 -0
- package/src/table-builder/classes/table-store.ts +360 -0
- package/src/table-builder/components/array-column.component.ts +39 -0
- package/src/table-builder/components/column-builder/column-builder.component.html +66 -0
- package/src/table-builder/components/column-builder/column-builder.component.scss +43 -0
- package/src/table-builder/components/column-builder/column-builder.component.spec.ts +51 -0
- package/src/table-builder/components/column-builder/column-builder.component.ts +126 -0
- package/src/table-builder/components/date-filter/date-filter.component.html +24 -0
- package/src/table-builder/components/date-filter/date-filter.component.ts +17 -0
- package/src/table-builder/components/filter/filter.component.html +78 -0
- package/src/table-builder/components/filter/filter.component.scss +64 -0
- package/src/table-builder/components/filter/filter.component.spec.ts +89 -0
- package/src/table-builder/components/filter/filter.component.ts +35 -0
- package/src/table-builder/components/filter/in-list/in-list-filter.component.ts +82 -0
- package/src/table-builder/components/gen-col-displayer/gen-col-displayer.component.html +52 -0
- package/src/table-builder/components/gen-col-displayer/gen-col-displayer.component.scss +57 -0
- package/src/table-builder/components/gen-col-displayer/gen-col-displayer.component.ts +44 -0
- package/src/table-builder/components/generic-table/generic-table.component.html +77 -0
- package/src/table-builder/components/generic-table/generic-table.component.scss +45 -0
- package/src/table-builder/components/generic-table/generic-table.component.ts +221 -0
- package/src/table-builder/components/generic-table/paginator.component.ts +89 -0
- package/src/table-builder/components/group-by-list/group-by-list.component.css +8 -0
- package/src/table-builder/components/group-by-list/group-by-list.component.html +10 -0
- package/src/table-builder/components/group-by-list/group-by-list.component.spec.ts +23 -0
- package/src/table-builder/components/group-by-list/group-by-list.component.ts +16 -0
- package/src/table-builder/components/header-menu/header-menu.component.html +117 -0
- package/src/table-builder/components/header-menu/header-menu.component.scss +92 -0
- package/src/table-builder/components/header-menu/header-menu.component.ts +81 -0
- package/src/table-builder/components/in-filter/in-filter.component.css +3 -0
- package/src/table-builder/components/in-filter/in-filter.component.html +13 -0
- package/src/table-builder/components/in-filter/in-filter.component.ts +60 -0
- package/{table-builder/components/index.d.ts → src/table-builder/components/index.ts} +9 -9
- package/src/table-builder/components/initialization-component/initialization-component.html +21 -0
- package/src/table-builder/components/initialization-component/initialization-component.ts +15 -0
- package/src/table-builder/components/link-column.component.ts +33 -0
- package/src/table-builder/components/number-filter/number-filter.component.css +10 -0
- package/src/table-builder/components/number-filter/number-filter.component.html +21 -0
- package/src/table-builder/components/number-filter/number-filter.component.spec.ts +30 -0
- package/src/table-builder/components/number-filter/number-filter.component.ts +19 -0
- package/src/table-builder/components/sort-menu/sort-menu.component-store.ts +59 -0
- package/src/table-builder/components/sort-menu/sort-menu.component.html +101 -0
- package/src/table-builder/components/sort-menu/sort-menu.component.scss +119 -0
- package/src/table-builder/components/sort-menu/sort-menu.component.ts +82 -0
- package/src/table-builder/components/table-container/table-container.css +26 -0
- package/src/table-builder/components/table-container/table-container.html +113 -0
- package/src/table-builder/components/table-container/table-container.spec.ts +157 -0
- package/src/table-builder/components/table-container/table-container.ts +344 -0
- package/src/table-builder/components/table-container-filter/filter-list/filter-list.component.html +26 -0
- package/src/table-builder/components/table-container-filter/filter-list/filter-list.component.ts +38 -0
- package/src/table-builder/components/table-container-filter/gen-filter-displayer/gen-filter-displayer.component.css +37 -0
- package/src/table-builder/components/table-container-filter/gen-filter-displayer/gen-filter-displayer.component.html +8 -0
- package/src/table-builder/components/table-container-filter/gen-filter-displayer/gen-filter-displayer.component.spec.ts +88 -0
- package/src/table-builder/components/table-container-filter/gen-filter-displayer/gen-filter-displayer.component.ts +27 -0
- package/src/table-builder/components/table-container-filter/table-wrapper-filter-store.ts +23 -0
- package/src/table-builder/directives/custom-cell-directive.ts +45 -0
- package/{table-builder/directives/index.d.ts → src/table-builder/directives/index.ts} +6 -5
- package/src/table-builder/directives/multi-sort.directive.spec.ts +124 -0
- package/src/table-builder/directives/multi-sort.directive.ts +41 -0
- package/src/table-builder/directives/resize-column.directive.ts +104 -0
- package/src/table-builder/directives/table-wrapper.directive.ts +16 -0
- package/src/table-builder/directives/tb-filter.directive.ts +363 -0
- package/src/table-builder/enums/filterTypes.ts +65 -0
- package/src/table-builder/functions/boolean-filter-function.ts +13 -0
- package/src/table-builder/functions/date-filter-function.ts +40 -0
- package/src/table-builder/functions/download-data.ts +11 -0
- package/src/table-builder/functions/null-filter-function.ts +9 -0
- package/src/table-builder/functions/number-filter-function.ts +42 -0
- package/src/table-builder/functions/sort-data-function.ts +8 -0
- package/src/table-builder/functions/string-filter-function.ts +52 -0
- package/{table-builder/interfaces/ColumnInfo.d.ts → src/table-builder/interfaces/ColumnInfo.ts} +3 -2
- package/src/table-builder/interfaces/column-template.ts +9 -0
- package/{table-builder/interfaces/dictionary.d.ts → src/table-builder/interfaces/dictionary.ts} +3 -3
- package/src/table-builder/interfaces/report-def.ts +131 -0
- package/src/table-builder/material.module.ts +95 -0
- package/src/table-builder/ngrx/actions.ts +7 -0
- package/src/table-builder/ngrx/effects.ts +54 -0
- package/src/table-builder/ngrx/reducer.ts +72 -0
- package/src/table-builder/ngrx/selectors.ts +37 -0
- package/src/table-builder/pipes/column-total.pipe.ts +15 -0
- package/src/table-builder/pipes/format-filter-type.pipe.ts +12 -0
- package/src/table-builder/pipes/format-filter-value.pipe.ts +40 -0
- package/src/table-builder/pipes/key-display.ts +16 -0
- package/src/table-builder/services/export-to-csv.service.ts +92 -0
- package/src/table-builder/services/link-creator.service.ts +48 -0
- package/src/table-builder/services/table-template-service.ts +44 -0
- package/src/table-builder/services/transform-creator.ts +61 -0
- package/src/table-builder/specs/table-custom-filters.spec.ts +262 -0
- package/src/table-builder/styles/collapser.styles.scss +21 -0
- package/src/table-builder/table-builder.module.ts +138 -0
- package/src/test.ts +17 -0
- package/src/utilities/directives/auto-focus.directive.ts +19 -0
- package/src/utilities/directives/clickEmitterDirective.ts +15 -0
- package/src/utilities/directives/clickSubject.ts +19 -0
- package/src/utilities/directives/conditional-classes.directive.ts +35 -0
- package/src/utilities/directives/dialog-service.ts +22 -0
- package/src/utilities/directives/dialog.ts +142 -0
- package/src/utilities/directives/mat-toggle-group-directive.ts +60 -0
- package/src/utilities/directives/prevent-enter.directive.ts +12 -0
- package/src/utilities/directives/stop-propagation.directive.ts +19 -0
- package/src/utilities/directives/styler.ts +16 -0
- package/src/utilities/directives/trim-whitespace.directive.ts +20 -0
- package/{utilities/index.d.ts → src/utilities/index.ts} +22 -15
- package/src/utilities/module.ts +58 -0
- package/src/utilities/pipes/function.pipe.ts +15 -0
- package/src/utilities/pipes/phone.pipe.ts +15 -0
- package/src/utilities/pipes/space-case.pipes.spec.ts +47 -0
- package/src/utilities/pipes/space-case.pipes.ts +23 -0
- package/tsconfig.lib.json +19 -0
- package/tsconfig.lib.prod.json +10 -0
- package/tsconfig.spec.json +17 -0
- package/action-state/action-state-spinner/action-state-spinner.component.d.ts +0 -12
- package/action-state/action-state-ui/action-state-ui.module.d.ts +0 -9
- package/action-state/ngrx-ext/ngrx-ext.module.d.ts +0 -8
- package/action-state/ngrx.d.ts +0 -31
- 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/index.mjs +0 -8
- package/esm2020/action-state/ngrx-ext/ngrx-ext.module.mjs +0 -23
- package/esm2020/action-state/ngrx.mjs +0 -42
- 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 -29
- package/esm2020/http-request-state/directives/index.mjs +0 -6
- package/esm2020/http-request-state/directives/request-state-directive.mjs +0 -57
- package/esm2020/http-request-state/helpers.mjs +0 -22
- package/esm2020/http-request-state/http-request-state.mjs +0 -39
- package/esm2020/http-request-state/http-state-module.mjs +0 -41
- package/esm2020/http-request-state/index.mjs +0 -7
- package/esm2020/http-request-state/rxjs/getRequestorBody.mjs +0 -4
- package/esm2020/http-request-state/rxjs/getRequestorState.mjs +0 -3
- package/esm2020/http-request-state/rxjs/index.mjs +0 -5
- package/esm2020/http-request-state/rxjs/tapError.mjs +0 -12
- package/esm2020/http-request-state/rxjs/tapSuccess.mjs +0 -12
- package/esm2020/http-request-state/types.mjs +0 -16
- package/esm2020/ngrx/actionable-selector.mjs +0 -76
- package/esm2020/ngrx/index.mjs +0 -2
- package/esm2020/one-paragon-angular-utilities.mjs +0 -5
- package/esm2020/public-api.mjs +0 -19
- package/esm2020/rxjs/defaultShareReplay.mjs +0 -7
- package/esm2020/rxjs/index.mjs +0 -5
- package/esm2020/rxjs/mapError.mjs +0 -8
- package/esm2020/rxjs/rxjs-operators.mjs +0 -91
- package/esm2020/rxjs/subjectifier.mjs +0 -15
- package/esm2020/table-builder/classes/DefaultSettings.mjs +0 -6
- package/esm2020/table-builder/classes/GenericTableDataSource.mjs +0 -13
- package/esm2020/table-builder/classes/MatTableObservableDataSource.mjs +0 -21
- package/esm2020/table-builder/classes/TableBuilderConfig.mjs +0 -3
- package/esm2020/table-builder/classes/TableState.mjs +0 -32
- package/esm2020/table-builder/classes/data-filter.mjs +0 -26
- package/esm2020/table-builder/classes/display-col.mjs +0 -2
- package/esm2020/table-builder/classes/filter-info.mjs +0 -71
- package/esm2020/table-builder/classes/table-builder-general-settings.mjs +0 -68
- package/esm2020/table-builder/classes/table-builder.mjs +0 -61
- 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 -111
- package/esm2020/table-builder/components/date-filter/date-filter.component.mjs +0 -25
- package/esm2020/table-builder/components/filter/filter.component.mjs +0 -53
- 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 -198
- 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 -21
- package/esm2020/table-builder/components/header-menu/header-menu.component.mjs +0 -90
- package/esm2020/table-builder/components/in-filter/in-filter.component.mjs +0 -66
- package/esm2020/table-builder/components/index.mjs +0 -10
- package/esm2020/table-builder/components/initialization-component/initialization-component.mjs +0 -33
- package/esm2020/table-builder/components/link-column.component.mjs +0 -66
- 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/sort-menu/sort-menu.component.mjs +0 -75
- package/esm2020/table-builder/components/table-container/table-container.mjs +0 -312
- 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/index.mjs +0 -6
- 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/enums/filterTypes.mjs +0 -59
- package/esm2020/table-builder/functions/boolean-filter-function.mjs +0 -10
- package/esm2020/table-builder/functions/date-filter-function.mjs +0 -32
- package/esm2020/table-builder/functions/download-data.mjs +0 -12
- package/esm2020/table-builder/functions/null-filter-function.mjs +0 -8
- package/esm2020/table-builder/functions/number-filter-function.mjs +0 -32
- package/esm2020/table-builder/functions/sort-data-function.mjs +0 -5
- package/esm2020/table-builder/functions/string-filter-function.mjs +0 -41
- package/esm2020/table-builder/interfaces/ColumnInfo.mjs +0 -2
- package/esm2020/table-builder/interfaces/dictionary.mjs +0 -2
- package/esm2020/table-builder/interfaces/report-def.mjs +0 -34
- package/esm2020/table-builder/material.module.mjs +0 -221
- package/esm2020/table-builder/ngrx/actions.mjs +0 -5
- package/esm2020/table-builder/ngrx/effects.mjs +0 -48
- package/esm2020/table-builder/ngrx/reducer.mjs +0 -52
- package/esm2020/table-builder/ngrx/selectors.mjs +0 -24
- 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 -46
- package/esm2020/table-builder/pipes/key-display.mjs +0 -20
- package/esm2020/table-builder/services/export-to-csv.service.mjs +0 -84
- package/esm2020/table-builder/services/link-creator.service.mjs +0 -42
- package/esm2020/table-builder/services/table-template-service.mjs +0 -43
- package/esm2020/table-builder/services/transform-creator.mjs +0 -70
- package/esm2020/table-builder/table-builder.module.mjs +0 -204
- 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 -131
- 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/index.mjs +0 -16
- 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 -4698
- package/fesm2015/one-paragon-angular-utilities.mjs.map +0 -1
- package/fesm2020/one-paragon-angular-utilities.mjs +0 -4666
- package/fesm2020/one-paragon-angular-utilities.mjs.map +0 -1
- package/http-request-state/HttpRequestStateFactory.d.ts +0 -14
- package/http-request-state/HttpRequestStateStore.d.ts +0 -48
- package/http-request-state/directives/HttpStateDirectiveBase.d.ts +0 -16
- package/http-request-state/directives/http-error-state-directive.d.ts +0 -12
- package/http-request-state/directives/http-inProgress-state-directive.d.ts +0 -12
- package/http-request-state/directives/http-notStarted-state-directive.d.ts +0 -12
- package/http-request-state/directives/http-success-state-directive.d.ts +0 -14
- package/http-request-state/directives/request-state-directive.d.ts +0 -29
- package/http-request-state/helpers.d.ts +0 -9
- package/http-request-state/http-request-state.d.ts +0 -12
- package/http-request-state/http-state-module.d.ts +0 -11
- package/http-request-state/rxjs/getRequestorBody.d.ts +0 -3
- package/http-request-state/rxjs/getRequestorState.d.ts +0 -3
- package/http-request-state/rxjs/tapError.d.ts +0 -3
- package/http-request-state/rxjs/tapSuccess.d.ts +0 -3
- package/http-request-state/types.d.ts +0 -36
- package/index.d.ts +0 -5
- package/ngrx/actionable-selector.d.ts +0 -15
- package/ngrx/index.d.ts +0 -1
- package/rxjs/defaultShareReplay.d.ts +0 -2
- package/rxjs/mapError.d.ts +0 -2
- package/rxjs/rxjs-operators.d.ts +0 -12
- package/rxjs/subjectifier.d.ts +0 -9
- package/table-builder/classes/DefaultSettings.d.ts +0 -8
- package/table-builder/classes/GenericTableDataSource.d.ts +0 -8
- package/table-builder/classes/MatTableObservableDataSource.d.ts +0 -9
- package/table-builder/classes/TableBuilderConfig.d.ts +0 -19
- package/table-builder/classes/TableState.d.ts +0 -46
- package/table-builder/classes/data-filter.d.ts +0 -9
- package/table-builder/classes/filter-info.d.ts +0 -40
- package/table-builder/classes/table-builder-general-settings.d.ts +0 -43
- package/table-builder/classes/table-builder.d.ts +0 -14
- package/table-builder/classes/table-store.d.ts +0 -114
- package/table-builder/components/array-column.component.d.ts +0 -14
- package/table-builder/components/column-builder/column-builder.component.d.ts +0 -50
- package/table-builder/components/date-filter/date-filter.component.d.ts +0 -10
- package/table-builder/components/filter/filter.component.d.ts +0 -294
- package/table-builder/components/filter/in-list/in-list-filter.component.d.ts +0 -27
- package/table-builder/components/gen-col-displayer/gen-col-displayer.component.d.ts +0 -16
- package/table-builder/components/generic-table/generic-table.component.d.ts +0 -71
- package/table-builder/components/generic-table/paginator.component.d.ts +0 -28
- package/table-builder/components/group-by-list/group-by-list.component.d.ts +0 -10
- package/table-builder/components/header-menu/header-menu.component.d.ts +0 -25
- package/table-builder/components/in-filter/in-filter.component.d.ts +0 -22
- package/table-builder/components/initialization-component/initialization-component.d.ts +0 -12
- package/table-builder/components/link-column.component.d.ts +0 -17
- package/table-builder/components/number-filter/number-filter.component.d.ts +0 -12
- package/table-builder/components/sort-menu/sort-menu.component-store.d.ts +0 -24
- package/table-builder/components/sort-menu/sort-menu.component.d.ts +0 -25
- package/table-builder/components/table-container/table-container.d.ts +0 -65
- package/table-builder/components/table-container-filter/filter-list/filter-list.component.d.ts +0 -17
- package/table-builder/components/table-container-filter/gen-filter-displayer/gen-filter-displayer.component.d.ts +0 -14
- package/table-builder/components/table-container-filter/table-wrapper-filter-store.d.ts +0 -14
- package/table-builder/directives/custom-cell-directive.d.ts +0 -19
- package/table-builder/directives/multi-sort.directive.d.ts +0 -11
- package/table-builder/directives/resize-column.directive.d.ts +0 -43
- package/table-builder/directives/table-wrapper.directive.d.ts +0 -11
- package/table-builder/directives/tb-filter.directive.d.ts +0 -120
- package/table-builder/enums/filterTypes.d.ts +0 -31
- package/table-builder/functions/boolean-filter-function.d.ts +0 -3
- package/table-builder/functions/date-filter-function.d.ts +0 -3
- package/table-builder/functions/download-data.d.ts +0 -1
- package/table-builder/functions/null-filter-function.d.ts +0 -2
- package/table-builder/functions/number-filter-function.d.ts +0 -4
- package/table-builder/functions/sort-data-function.d.ts +0 -3
- package/table-builder/functions/string-filter-function.d.ts +0 -7
- package/table-builder/interfaces/report-def.d.ts +0 -135
- package/table-builder/material.module.d.ts +0 -34
- package/table-builder/ngrx/actions.d.ts +0 -23
- package/table-builder/ngrx/effects.d.ts +0 -19
- package/table-builder/ngrx/reducer.d.ts +0 -15
- package/table-builder/ngrx/selectors.d.ts +0 -22
- package/table-builder/pipes/column-total.pipe.d.ts +0 -8
- package/table-builder/pipes/format-filter-type.pipe.d.ts +0 -8
- package/table-builder/pipes/format-filter-value.pipe.d.ts +0 -14
- package/table-builder/pipes/key-display.d.ts +0 -11
- package/table-builder/services/export-to-csv.service.d.ts +0 -22
- package/table-builder/services/link-creator.service.d.ts +0 -12
- package/table-builder/services/table-template-service.d.ts +0 -14
- package/table-builder/services/transform-creator.d.ts +0 -19
- package/table-builder/table-builder.module.d.ts +0 -45
- package/utilities/directives/auto-focus.directive.d.ts +0 -10
- package/utilities/directives/clickEmitterDirective.d.ts +0 -7
- package/utilities/directives/clickSubject.d.ts +0 -9
- package/utilities/directives/conditional-classes.directive.d.ts +0 -14
- package/utilities/directives/dialog-service.d.ts +0 -10
- package/utilities/directives/dialog.d.ts +0 -45
- package/utilities/directives/mat-toggle-group-directive.d.ts +0 -21
- package/utilities/directives/prevent-enter.directive.d.ts +0 -6
- package/utilities/directives/stop-propagation.directive.d.ts +0 -7
- package/utilities/directives/styler.d.ts +0 -9
- package/utilities/directives/trim-whitespace.directive.d.ts +0 -9
- package/utilities/module.d.ts +0 -19
- package/utilities/pipes/function.pipe.d.ts +0 -7
- package/utilities/pipes/phone.pipe.d.ts +0 -7
- package/utilities/pipes/space-case.pipes.d.ts +0 -17
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { Directive, TemplateRef, Input, OnDestroy, Component, Output, EventEmitter, ViewContainerRef, Injector, ComponentFactoryResolver } from '@angular/core';
|
|
2
|
+
import { MatDialog, MatDialogRef, MatDialogConfig } from '@angular/material/dialog';
|
|
3
|
+
import { Observable, Subscription, Subject } from 'rxjs';
|
|
4
|
+
import { switchAll } from 'rxjs/operators';
|
|
5
|
+
import { DialogService } from './dialog-service';
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
interface DialogViewContext<T> {
|
|
9
|
+
$implicit: T,
|
|
10
|
+
opDialog: T,
|
|
11
|
+
close: () => void,
|
|
12
|
+
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@Component({
|
|
16
|
+
selector: 'app-dialog-content',
|
|
17
|
+
template: ``
|
|
18
|
+
})
|
|
19
|
+
export class DialogWrapper<T = any> {
|
|
20
|
+
viewEmbeded = false;
|
|
21
|
+
viewContext = {
|
|
22
|
+
close: () => {},
|
|
23
|
+
} as DialogViewContext<T>;
|
|
24
|
+
set template(tmpl: TemplateRef<DialogViewContext<T>>) {
|
|
25
|
+
if (this.viewEmbeded) {
|
|
26
|
+
this.vcr.clear();
|
|
27
|
+
}
|
|
28
|
+
this.viewEmbeded = true;
|
|
29
|
+
this.vcr.createEmbeddedView(tmpl, this.viewContext);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
set close(closeMethod: () => void ) {
|
|
33
|
+
this.viewContext.close = closeMethod;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
set data(value: T) {
|
|
37
|
+
this.viewContext.$implicit = value;
|
|
38
|
+
this.viewContext.opDialog = value;
|
|
39
|
+
}
|
|
40
|
+
constructor(private vcr: ViewContainerRef ) {
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
const defaultDialogConfig: MatDialogConfig = {
|
|
47
|
+
maxHeight: '95vh',
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
@Directive(
|
|
52
|
+
{ selector: '[opDialog]' }
|
|
53
|
+
) export class DialogDirective<T> implements OnDestroy {
|
|
54
|
+
@Output() opDialogClosed: EventEmitter<boolean> = new EventEmitter();
|
|
55
|
+
_dialogConfig: MatDialogConfig<T> = defaultDialogConfig;
|
|
56
|
+
@Input() add_opDialog_Class = true;
|
|
57
|
+
@Input() set opDialogConfig(config: MatDialogConfig<T>) {
|
|
58
|
+
|
|
59
|
+
this._dialogConfig = { ...defaultDialogConfig, ...config };
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
get opDialogConfig() : MatDialogConfig<T> {
|
|
63
|
+
return this._dialogConfig;
|
|
64
|
+
}
|
|
65
|
+
@Input('opDialog') set state(open_close: Observable<T>) {
|
|
66
|
+
this._data.next(open_close);
|
|
67
|
+
}
|
|
68
|
+
@Input('opDialogOrigin') nativeElement? : HTMLElement;
|
|
69
|
+
dialogRef?: MatDialogRef<any, boolean>;
|
|
70
|
+
subscription: Subscription;
|
|
71
|
+
componentWrapper?: DialogWrapper<T>;
|
|
72
|
+
|
|
73
|
+
constructor(
|
|
74
|
+
private templateRef: TemplateRef<DialogViewContext<T>>,
|
|
75
|
+
private dialog: MatDialog,
|
|
76
|
+
private service: DialogService) {
|
|
77
|
+
this.subscription = this._data.pipe(
|
|
78
|
+
switchAll()
|
|
79
|
+
).subscribe(d => {
|
|
80
|
+
if (d) {
|
|
81
|
+
this.opDialogConfig.data = d;
|
|
82
|
+
this.setDialogState(true);
|
|
83
|
+
} else {
|
|
84
|
+
this.setDialogState(false);
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
_data = new Subject<Observable<T>>();
|
|
90
|
+
|
|
91
|
+
close() {
|
|
92
|
+
this.dialogRef?.close();
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
initDialog() {
|
|
96
|
+
if(this.nativeElement){
|
|
97
|
+
const rect = this.nativeElement.getBoundingClientRect();
|
|
98
|
+
const position = { left: `${rect.left}px`, top: `${rect.bottom - 50}px` };
|
|
99
|
+
this.opDialogConfig = {...this.opDialogConfig , position};
|
|
100
|
+
}
|
|
101
|
+
if (this.add_opDialog_Class) {
|
|
102
|
+
this.opDialogConfig.panelClass = [...(Array.isArray(this.opDialogConfig.panelClass) ? this.opDialogConfig.panelClass : this.opDialogConfig.panelClass ? [this.opDialogConfig.panelClass] : []), 'opDialog'];
|
|
103
|
+
}
|
|
104
|
+
this.dialogRef = this.dialog.open(DialogWrapper, this.opDialogConfig);
|
|
105
|
+
this.componentWrapper = this.dialogRef.componentInstance;
|
|
106
|
+
this.componentWrapper!.close = () => this.dialogRef?.close();
|
|
107
|
+
this.componentWrapper!.data = this.opDialogConfig.data as T;
|
|
108
|
+
this.componentWrapper!.template = this.templateRef;
|
|
109
|
+
if (!this.opDialogConfig.disableClose) {
|
|
110
|
+
this.service.addDialogRef(this.dialogRef);
|
|
111
|
+
}
|
|
112
|
+
const sub = this.dialogRef.afterClosed().subscribe(() => {
|
|
113
|
+
this.opDialogClosed.emit(true);
|
|
114
|
+
this.service.removeDialogRef(this.dialogRef!);
|
|
115
|
+
this.dialogRef = undefined;
|
|
116
|
+
sub.unsubscribe();
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
setDialogState(open: boolean) {
|
|
121
|
+
if (open) {
|
|
122
|
+
if (!this.dialogRef) {
|
|
123
|
+
this.initDialog();
|
|
124
|
+
} else {
|
|
125
|
+
this.componentWrapper!.data = this.opDialogConfig.data as T;
|
|
126
|
+
}
|
|
127
|
+
} else if (!open && this.dialogRef) {
|
|
128
|
+
this.dialogRef.close();
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
ngOnDestroy() {
|
|
133
|
+
if (this.subscription) {
|
|
134
|
+
this.subscription.unsubscribe();
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
static ngTemplateContextGuard<T>(dir: DialogDirective<T>, ctx: any): ctx is DialogViewContext<Exclude<T, false|0|''|null|undefined>> {
|
|
139
|
+
return true;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { ContentChildren, Directive, Input, Output, QueryList } from "@angular/core";
|
|
2
|
+
import { MatSlideToggle } from "@angular/material/slide-toggle";
|
|
3
|
+
import { merge, Observable, ReplaySubject, scan, startWith, switchMap } from "rxjs";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
@Directive(
|
|
7
|
+
{ selector: '[opMatSlideToggleGroup]' ,
|
|
8
|
+
}
|
|
9
|
+
) export class MatSlideToggleGroupDirective {
|
|
10
|
+
@Input() allowMultiple = false;
|
|
11
|
+
|
|
12
|
+
_toggles!: QueryList<MatSlideToggle>;
|
|
13
|
+
@ContentChildren(MatSlideToggle) set toggles(val: QueryList<MatSlideToggle>) {
|
|
14
|
+
this._toggles = val;
|
|
15
|
+
this._ready.next(true);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
private _ready = new ReplaySubject<boolean>(1);
|
|
19
|
+
|
|
20
|
+
@Output() get valueEmitter() : Observable<{[key:string]: boolean}> {
|
|
21
|
+
return this._ready.pipe( switchMap( _ => this.getObs()));
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
getInitValue() {
|
|
26
|
+
const startValue = this._toggles.reduce( (prev,cur) => {
|
|
27
|
+
if(!cur.name) {
|
|
28
|
+
throw new Error('toggle must have the name attribute set');
|
|
29
|
+
}
|
|
30
|
+
prev[cur.name] = cur.checked
|
|
31
|
+
return prev;
|
|
32
|
+
}, {} as {[k:string]: boolean});
|
|
33
|
+
return startValue;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
getObs() {
|
|
37
|
+
var toggleChanges = merge(...this._toggles.map( toggle => toggle.change ));
|
|
38
|
+
|
|
39
|
+
const startValue = this.getInitValue();
|
|
40
|
+
|
|
41
|
+
return toggleChanges.pipe(
|
|
42
|
+
scan( (prev,cur) => {
|
|
43
|
+
const toggleName = cur.source.name!;
|
|
44
|
+
const newVal = {...prev,[toggleName]:cur.checked};
|
|
45
|
+
if(cur.checked && !this.allowMultiple) {
|
|
46
|
+
Object.keys(prev)
|
|
47
|
+
.filter( key => key !== toggleName && prev[key])
|
|
48
|
+
.forEach( key => {
|
|
49
|
+
newVal[key] = false;
|
|
50
|
+
this._toggles.find( toggle => toggle.name === key)!.toggle();
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
return newVal;
|
|
54
|
+
},startValue),
|
|
55
|
+
startWith(startValue),
|
|
56
|
+
);
|
|
57
|
+
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import {Directive, HostListener} from "@angular/core";
|
|
2
|
+
|
|
3
|
+
@Directive({
|
|
4
|
+
selector: "[stop-propagation]"
|
|
5
|
+
})
|
|
6
|
+
export class StopPropagationDirective
|
|
7
|
+
{
|
|
8
|
+
@HostListener("click", ["$event"])
|
|
9
|
+
public onClick(event: any): void
|
|
10
|
+
{
|
|
11
|
+
event.stopPropagation();
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@HostListener("mousedown", ["$event"])
|
|
15
|
+
public onMousedown(event: any): void
|
|
16
|
+
{
|
|
17
|
+
event.stopPropagation();
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Directive, Input, ElementRef } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
@Directive({
|
|
5
|
+
selector: '[styler]',
|
|
6
|
+
}) export class StylerDirective {
|
|
7
|
+
@Input() set styler(styles){
|
|
8
|
+
if(styles){
|
|
9
|
+
Object.keys(styles).forEach( style => {
|
|
10
|
+
this.el.nativeElement.style[style] = styles[style];
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
constructor(private el: ElementRef) {
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Directive, ElementRef, HostListener } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
@Directive({
|
|
4
|
+
selector: 'input[trimWhitespace]',
|
|
5
|
+
})
|
|
6
|
+
export class TrimWhitespaceDirective {
|
|
7
|
+
|
|
8
|
+
constructor(private elem: ElementRef) { }
|
|
9
|
+
|
|
10
|
+
@HostListener('blur') onBlur() {
|
|
11
|
+
const inputString = this.elem.nativeElement.value;
|
|
12
|
+
if(inputString) {
|
|
13
|
+
const newValue = inputString.trim().replace(/\t/g, '');
|
|
14
|
+
if(inputString !== newValue) {
|
|
15
|
+
this.elem.nativeElement.value = newValue;
|
|
16
|
+
this.elem.nativeElement.dispatchEvent(new Event('input', {bubbles:true}));
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -1,15 +1,22 @@
|
|
|
1
|
-
export * from './directives/prevent-enter.directive';
|
|
2
|
-
export * from './directives/stop-propagation.directive';
|
|
3
|
-
export * from './directives/auto-focus.directive';
|
|
4
|
-
export * from './directives/clickSubject';
|
|
5
|
-
export * from './directives/clickEmitterDirective';
|
|
6
|
-
export * from './directives/dialog';
|
|
7
|
-
export * from './directives/styler';
|
|
8
|
-
export * from './directives/mat-toggle-group-directive';
|
|
9
|
-
export * from './directives/trim-whitespace.directive';
|
|
10
|
-
|
|
11
|
-
export * from './pipes/
|
|
12
|
-
export * from './pipes/
|
|
13
|
-
export * from './
|
|
14
|
-
|
|
15
|
-
export * from './
|
|
1
|
+
export * from './directives/prevent-enter.directive';
|
|
2
|
+
export * from './directives/stop-propagation.directive';
|
|
3
|
+
export * from './directives/auto-focus.directive';
|
|
4
|
+
export * from './directives/clickSubject';
|
|
5
|
+
export * from './directives/clickEmitterDirective';
|
|
6
|
+
export * from './directives/dialog';
|
|
7
|
+
export * from './directives/styler';
|
|
8
|
+
export * from './directives/mat-toggle-group-directive';
|
|
9
|
+
export * from './directives/trim-whitespace.directive';
|
|
10
|
+
|
|
11
|
+
export * from './pipes/function.pipe';
|
|
12
|
+
export * from './pipes/phone.pipe';
|
|
13
|
+
export * from './pipes/space-case.pipes';
|
|
14
|
+
|
|
15
|
+
export * from './directives/dialog-service';
|
|
16
|
+
|
|
17
|
+
export * from './directives/conditional-classes.directive'
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
export * from './module';
|
|
21
|
+
|
|
22
|
+
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { NgModule } from "@angular/core";
|
|
2
|
+
import { AutoFocusDirective } from "./directives/auto-focus.directive";
|
|
3
|
+
import { ClickEmitterDirective } from "./directives/clickEmitterDirective";
|
|
4
|
+
import { ClickSubjectDirective } from "./directives/clickSubject";
|
|
5
|
+
import { ConditionalClassesDirective } from "./directives/conditional-classes.directive";
|
|
6
|
+
import { DialogDirective } from "./directives/dialog";
|
|
7
|
+
import { DialogService } from "./directives/dialog-service";
|
|
8
|
+
import { MatSlideToggleGroupDirective } from "./directives/mat-toggle-group-directive";
|
|
9
|
+
import { PreventEnterDirective } from "./directives/prevent-enter.directive";
|
|
10
|
+
import { StopPropagationDirective } from "./directives/stop-propagation.directive";
|
|
11
|
+
import { TrimWhitespaceDirective } from "./directives/trim-whitespace.directive";
|
|
12
|
+
import { StylerDirective } from "./directives/styler";
|
|
13
|
+
import { FunctionPipe } from "./pipes/function.pipe";
|
|
14
|
+
import { PhoneNumberPipe } from "./pipes/phone.pipe";
|
|
15
|
+
import { SpaceCasePipe } from "./pipes/space-case.pipes";
|
|
16
|
+
|
|
17
|
+
@NgModule({
|
|
18
|
+
imports: [
|
|
19
|
+
|
|
20
|
+
],
|
|
21
|
+
exports: [
|
|
22
|
+
StopPropagationDirective,
|
|
23
|
+
PreventEnterDirective,
|
|
24
|
+
SpaceCasePipe,
|
|
25
|
+
PhoneNumberPipe,
|
|
26
|
+
FunctionPipe,
|
|
27
|
+
StopPropagationDirective,
|
|
28
|
+
TrimWhitespaceDirective,
|
|
29
|
+
StylerDirective,
|
|
30
|
+
PreventEnterDirective,
|
|
31
|
+
AutoFocusDirective,
|
|
32
|
+
ClickSubjectDirective,
|
|
33
|
+
ClickEmitterDirective,
|
|
34
|
+
DialogDirective,
|
|
35
|
+
MatSlideToggleGroupDirective,
|
|
36
|
+
ConditionalClassesDirective,
|
|
37
|
+
],
|
|
38
|
+
declarations: [
|
|
39
|
+
SpaceCasePipe,
|
|
40
|
+
PhoneNumberPipe,
|
|
41
|
+
FunctionPipe,
|
|
42
|
+
StopPropagationDirective,
|
|
43
|
+
StylerDirective,
|
|
44
|
+
PreventEnterDirective,
|
|
45
|
+
AutoFocusDirective,
|
|
46
|
+
TrimWhitespaceDirective,
|
|
47
|
+
ClickSubjectDirective,
|
|
48
|
+
ClickEmitterDirective,
|
|
49
|
+
DialogDirective,
|
|
50
|
+
MatSlideToggleGroupDirective,
|
|
51
|
+
ConditionalClassesDirective,
|
|
52
|
+
],
|
|
53
|
+
providers : [
|
|
54
|
+
DialogService
|
|
55
|
+
]
|
|
56
|
+
})
|
|
57
|
+
export class UtilitiesModule {
|
|
58
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Pipe, PipeTransform } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
@Pipe({
|
|
4
|
+
name: 'func'
|
|
5
|
+
})
|
|
6
|
+
export class FunctionPipe implements PipeTransform {
|
|
7
|
+
transform(func: ( (...args: any[])=> any ) | string, ...args: any[]): any {
|
|
8
|
+
if(typeof func === 'string') {
|
|
9
|
+
const [instance, ...tail] = args;
|
|
10
|
+
const method = instance[func].bind(instance);
|
|
11
|
+
return method(...tail);
|
|
12
|
+
}
|
|
13
|
+
return func(...args);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Pipe, PipeTransform } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
@Pipe({name: 'phone'})
|
|
4
|
+
export class PhoneNumberPipe implements PipeTransform {
|
|
5
|
+
|
|
6
|
+
transform(phoneNum: string): any {
|
|
7
|
+
if (phoneNum) {
|
|
8
|
+
phoneNum = phoneNum.replace(/\D/g,'');
|
|
9
|
+
if(phoneNum[0] === '1') {
|
|
10
|
+
phoneNum = phoneNum.substring(1);
|
|
11
|
+
}
|
|
12
|
+
return '(' + phoneNum.slice(0, 3) + ') ' + phoneNum.slice(3, 6) + '-' + phoneNum.slice(6, 10) + ' ' + phoneNum.slice(10);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { SpaceCasePipe } from './space-case.pipes';
|
|
2
|
+
|
|
3
|
+
const pipe = new SpaceCasePipe();
|
|
4
|
+
|
|
5
|
+
describe('Space Case Pipe', () => {
|
|
6
|
+
|
|
7
|
+
it('one word camel case', () => {
|
|
8
|
+
const result = pipe.transform('promissory');
|
|
9
|
+
expect(result).toEqual('Promissory');
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
it('one word pascal case', () => {
|
|
13
|
+
const result = pipe.transform('Promissory');
|
|
14
|
+
expect(result).toEqual('Promissory');
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
it('two words camel case', () => {
|
|
18
|
+
const result = pipe.transform('promissoryNote');
|
|
19
|
+
expect(result).toEqual('Promissory Note');
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
it('two words pascal case', () => {
|
|
23
|
+
const result = pipe.transform('PromissoryNote');
|
|
24
|
+
expect(result).toEqual('Promissory Note');
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
it('bunch of capital letters in a row', () => {
|
|
28
|
+
const result = pipe.transform('IRALLCSingleMember');
|
|
29
|
+
expect(result).toEqual('IRALLC Single Member');
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
it('underscores', () => {
|
|
33
|
+
const result = pipe.transform('Secured_promissory_Note_more');
|
|
34
|
+
expect(result).toEqual('Secured Promissory Note More');
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
it('underscores', () => {
|
|
38
|
+
const result = pipe.transform('IRA_LLCSingleMember');
|
|
39
|
+
expect(result).toEqual('IRA LLC Single Member');
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
it('blank', () => {
|
|
43
|
+
const result = pipe.transform('');
|
|
44
|
+
expect(result).toEqual('');
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
});
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Pipe, PipeTransform } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
@Pipe({name: 'spaceCase'})
|
|
4
|
+
export class SpaceCasePipe implements PipeTransform {
|
|
5
|
+
transform(value: string): string {
|
|
6
|
+
return spaceCase(value);
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Adds a space before uppercase letters that either
|
|
12
|
+
* 1. follows a lowercase letter or digit
|
|
13
|
+
* 2. or precedes a lowercase letter and follows an alpha-numeric character
|
|
14
|
+
*
|
|
15
|
+
* Uppercases the first digit
|
|
16
|
+
*
|
|
17
|
+
* Turns underscores into spaces
|
|
18
|
+
*/
|
|
19
|
+
export function spaceCase(value: string){
|
|
20
|
+
const phrase = value?.replace(/([a-z0-9])([A-Z])|([a-zA-Z0-9])([A-Z])(?=[a-z])|_/g, '$1$3 $2$4')
|
|
21
|
+
// uppercase the first character of every word
|
|
22
|
+
return phrase?.replace(/(^| )(\w)/g, x => x.toUpperCase());
|
|
23
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/* To learn more about this file see: https://angular.io/config/tsconfig. */
|
|
2
|
+
{
|
|
3
|
+
"extends": "../../tsconfig.json",
|
|
4
|
+
"compilerOptions": {
|
|
5
|
+
"outDir": "../../out-tsc/lib",
|
|
6
|
+
"declaration": true,
|
|
7
|
+
"declarationMap": true,
|
|
8
|
+
"inlineSources": true,
|
|
9
|
+
"types": [],
|
|
10
|
+
"lib": [
|
|
11
|
+
"dom",
|
|
12
|
+
"es2021"
|
|
13
|
+
]
|
|
14
|
+
},
|
|
15
|
+
"exclude": [
|
|
16
|
+
"src/test.ts",
|
|
17
|
+
"**/*.spec.ts"
|
|
18
|
+
]
|
|
19
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/* To learn more about this file see: https://angular.io/config/tsconfig. */
|
|
2
|
+
{
|
|
3
|
+
"extends": "../../tsconfig.json",
|
|
4
|
+
"compilerOptions": {
|
|
5
|
+
"outDir": "../../out-tsc/spec",
|
|
6
|
+
"types": [
|
|
7
|
+
"jasmine"
|
|
8
|
+
]
|
|
9
|
+
},
|
|
10
|
+
"files": [
|
|
11
|
+
"src/test.ts"
|
|
12
|
+
],
|
|
13
|
+
"include": [
|
|
14
|
+
"**/*.spec.ts",
|
|
15
|
+
"**/*.d.ts"
|
|
16
|
+
]
|
|
17
|
+
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { ActionStatus, serverStatusTypes } from '../ngrx';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class ActionStateSpinnerComponent implements OnInit {
|
|
6
|
-
status$: Observable<ActionStatus>;
|
|
7
|
-
serverActionStatus$: Observable<ActionStatus>;
|
|
8
|
-
serverStatusTypes: typeof serverStatusTypes;
|
|
9
|
-
ngOnInit(): void;
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ActionStateSpinnerComponent, never>;
|
|
11
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ActionStateSpinnerComponent, "lib-action-state-spinner", never, { "status$": "status$"; }, {}, never, never, false, never>;
|
|
12
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "../action-state-spinner/action-state-spinner.component";
|
|
3
|
-
import * as i2 from "@angular/common";
|
|
4
|
-
import * as i3 from "@angular/material/legacy-progress-spinner";
|
|
5
|
-
export declare class ActionStateUiModule {
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ActionStateUiModule, never>;
|
|
7
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ActionStateUiModule, [typeof i1.ActionStateSpinnerComponent], [typeof i2.CommonModule, typeof i3.MatLegacyProgressSpinnerModule], [typeof i1.ActionStateSpinnerComponent]>;
|
|
8
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<ActionStateUiModule>;
|
|
9
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "@angular/common";
|
|
3
|
-
import * as i2 from "@ngrx/store";
|
|
4
|
-
export declare class NgrxExtModule {
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NgrxExtModule, never>;
|
|
6
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NgrxExtModule, never, [typeof i1.CommonModule, typeof i2.StoreFeatureModule], never>;
|
|
7
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<NgrxExtModule>;
|
|
8
|
-
}
|
package/action-state/ngrx.d.ts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { Action } from '@ngrx/store';
|
|
2
|
-
import { EntityState } from '@ngrx/entity';
|
|
3
|
-
export declare class AppStatusState {
|
|
4
|
-
readonly ActionStatusBar: ActionStatus[];
|
|
5
|
-
}
|
|
6
|
-
export interface StatusState {
|
|
7
|
-
ids: string[];
|
|
8
|
-
entities: {
|
|
9
|
-
[id: string]: ActionStatus;
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
export declare class ActionStatus {
|
|
13
|
-
id: string;
|
|
14
|
-
displayName?: string;
|
|
15
|
-
status: serverStatusTypes;
|
|
16
|
-
responsePayload?: any;
|
|
17
|
-
}
|
|
18
|
-
export declare enum serverStatusTypes {
|
|
19
|
-
notStarted = 0,
|
|
20
|
-
inProgress = 1,
|
|
21
|
-
success = 2,
|
|
22
|
-
error = 3
|
|
23
|
-
}
|
|
24
|
-
export declare const statusAdapter: import("@ngrx/entity").EntityAdapter<ActionStatus>;
|
|
25
|
-
export interface State extends EntityState<ActionStatus> {
|
|
26
|
-
}
|
|
27
|
-
export declare const initialState: StatusState;
|
|
28
|
-
export declare const getStatusState: import("@ngrx/store").MemoizedSelector<object, State, import("@ngrx/store").DefaultProjectorFn<State>>;
|
|
29
|
-
export declare const selectIds: (state: object) => string[] | number[], selectEntities: (state: object) => import("@ngrx/entity").Dictionary<ActionStatus>, selectAll: (state: object) => ActionStatus[], selectTotal: (state: object) => number;
|
|
30
|
-
export declare const selectEntity: (id: string) => import("@ngrx/store").MemoizedSelector<object, any, (s1: import("@ngrx/entity").Dictionary<ActionStatus>) => any>;
|
|
31
|
-
export declare function actionStatusReducer(state: StatusState | undefined, action: Action): StatusState;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { Component, Input } from '@angular/core';
|
|
2
|
-
import { serverStatusTypes } from '../ngrx';
|
|
3
|
-
import { delayOn } from '../../rxjs';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
import * as i1 from "@angular/common";
|
|
6
|
-
import * as i2 from "@angular/material/legacy-progress-spinner";
|
|
7
|
-
export class ActionStateSpinnerComponent {
|
|
8
|
-
constructor() {
|
|
9
|
-
this.serverStatusTypes = serverStatusTypes;
|
|
10
|
-
}
|
|
11
|
-
ngOnInit() {
|
|
12
|
-
this.serverActionStatus$ = this.status$.pipe(delayOn(a => a.status === serverStatusTypes.inProgress, 500));
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
ActionStateSpinnerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ActionStateSpinnerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
16
|
-
ActionStateSpinnerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.2", type: ActionStateSpinnerComponent, selector: "lib-action-state-spinner", inputs: { status$: "status$" }, ngImport: i0, template: "<div id=\"blocker\" *ngIf=\"(serverActionStatus$ | async)?.status === serverStatusTypes.inProgress\">\n <mat-spinner class=\"spinner\" [diameter]=\"200\"></mat-spinner>\n</div>\n", styles: ["#blocker{position:fixed;top:0;left:0;width:100%;height:100%;background-color:#0e0d0d69;z-index:999999}.spinner{position:absolute;top:50%;left:40%;transform:translate(-50%,-50%)}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.MatLegacyProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "diameter", "strokeWidth", "mode", "value"], exportAs: ["matProgressSpinner"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }] });
|
|
17
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ActionStateSpinnerComponent, decorators: [{
|
|
18
|
-
type: Component,
|
|
19
|
-
args: [{ selector: 'lib-action-state-spinner', template: "<div id=\"blocker\" *ngIf=\"(serverActionStatus$ | async)?.status === serverStatusTypes.inProgress\">\n <mat-spinner class=\"spinner\" [diameter]=\"200\"></mat-spinner>\n</div>\n", styles: ["#blocker{position:fixed;top:0;left:0;width:100%;height:100%;background-color:#0e0d0d69;z-index:999999}.spinner{position:absolute;top:50%;left:40%;transform:translate(-50%,-50%)}\n"] }]
|
|
20
|
-
}], propDecorators: { status$: [{
|
|
21
|
-
type: Input
|
|
22
|
-
}] } });
|
|
23
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWN0aW9uLXN0YXRlLXNwaW5uZXIuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYW5ndWxhci11dGlsaXRpZXMvc3JjL2FjdGlvbi1zdGF0ZS9hY3Rpb24tc3RhdGUtc3Bpbm5lci9hY3Rpb24tc3RhdGUtc3Bpbm5lci5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hbmd1bGFyLXV0aWxpdGllcy9zcmMvYWN0aW9uLXN0YXRlL2FjdGlvbi1zdGF0ZS1zcGlubmVyL2FjdGlvbi1zdGF0ZS1zcGlubmVyLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQVUsS0FBSyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBRXpELE9BQU8sRUFBZ0IsaUJBQWlCLEVBQUUsTUFBTSxTQUFTLENBQUM7QUFDMUQsT0FBTyxFQUFFLE9BQU8sRUFBRSxNQUFNLFlBQVksQ0FBQzs7OztBQU9yQyxNQUFNLE9BQU8sMkJBQTJCO0lBTHhDO1FBU0Usc0JBQWlCLEdBQUcsaUJBQWlCLENBQUM7S0FPdkM7SUFMQyxRQUFRO1FBQ04sSUFBSSxDQUFDLG1CQUFtQixHQUFHLElBQUksQ0FBQyxPQUFPLENBQUMsSUFBSSxDQUMxQyxPQUFPLENBQUUsQ0FBQyxDQUFDLEVBQUUsQ0FBQyxDQUFDLENBQUMsTUFBTSxLQUFLLGlCQUFpQixDQUFDLFVBQVUsRUFBRyxHQUFHLENBQUMsQ0FDL0QsQ0FBQztJQUNKLENBQUM7O3dIQVZVLDJCQUEyQjs0R0FBM0IsMkJBQTJCLGdHQ1Z4QyxxTEFHQTsyRkRPYSwyQkFBMkI7a0JBTHZDLFNBQVM7K0JBQ0UsMEJBQTBCOzhCQU0zQixPQUFPO3NCQUFmLEtBQUsiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBDb21wb25lbnQsIE9uSW5pdCwgSW5wdXQgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcbmltcG9ydCB7IE9ic2VydmFibGUgfSBmcm9tICdyeGpzJztcbmltcG9ydCB7IEFjdGlvblN0YXR1cywgc2VydmVyU3RhdHVzVHlwZXMgfSBmcm9tICcuLi9uZ3J4JztcbmltcG9ydCB7IGRlbGF5T24gfSBmcm9tICcuLi8uLi9yeGpzJztcblxuQENvbXBvbmVudCh7XG4gIHNlbGVjdG9yOiAnbGliLWFjdGlvbi1zdGF0ZS1zcGlubmVyJyxcbiAgdGVtcGxhdGVVcmw6ICcuL2FjdGlvbi1zdGF0ZS1zcGlubmVyLmNvbXBvbmVudC5odG1sJyxcbiAgc3R5bGVVcmxzOiBbJy4vYWN0aW9uLXN0YXRlLXNwaW5uZXIuY29tcG9uZW50LmNzcyddXG59KVxuZXhwb3J0IGNsYXNzIEFjdGlvblN0YXRlU3Bpbm5lckNvbXBvbmVudCBpbXBsZW1lbnRzIE9uSW5pdCB7XG5cbiAgQElucHV0KCkgc3RhdHVzJCE6IE9ic2VydmFibGU8QWN0aW9uU3RhdHVzPjtcbiAgc2VydmVyQWN0aW9uU3RhdHVzJCE6IE9ic2VydmFibGU8QWN0aW9uU3RhdHVzPjtcbiAgc2VydmVyU3RhdHVzVHlwZXMgPSBzZXJ2ZXJTdGF0dXNUeXBlcztcblxuICBuZ09uSW5pdCgpIHtcbiAgICB0aGlzLnNlcnZlckFjdGlvblN0YXR1cyQgPSB0aGlzLnN0YXR1cyQucGlwZShcbiAgICAgIGRlbGF5T24oIGEgPT4gYS5zdGF0dXMgPT09IHNlcnZlclN0YXR1c1R5cGVzLmluUHJvZ3Jlc3MgLCA1MDApXG4gICAgKTtcbiAgfVxufVxuIiwiPGRpdiBpZD1cImJsb2NrZXJcIiAqbmdJZj1cIihzZXJ2ZXJBY3Rpb25TdGF0dXMkIHwgYXN5bmMpPy5zdGF0dXMgPT09IHNlcnZlclN0YXR1c1R5cGVzLmluUHJvZ3Jlc3NcIj5cbiAgPG1hdC1zcGlubmVyIGNsYXNzPVwic3Bpbm5lclwiIFtkaWFtZXRlcl09XCIyMDBcIj48L21hdC1zcGlubmVyPlxuPC9kaXY+XG4iXX0=
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { CommonModule } from '@angular/common';
|
|
3
|
-
import { ActionStateSpinnerComponent } from '../action-state-spinner/action-state-spinner.component';
|
|
4
|
-
import { MatLegacyProgressSpinnerModule as MatProgressSpinnerModule } from '@angular/material/legacy-progress-spinner';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export class ActionStateUiModule {
|
|
7
|
-
}
|
|
8
|
-
ActionStateUiModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ActionStateUiModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
9
|
-
ActionStateUiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.2", ngImport: i0, type: ActionStateUiModule, declarations: [ActionStateSpinnerComponent], imports: [CommonModule,
|
|
10
|
-
MatProgressSpinnerModule], exports: [ActionStateSpinnerComponent] });
|
|
11
|
-
ActionStateUiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ActionStateUiModule, imports: [CommonModule,
|
|
12
|
-
MatProgressSpinnerModule] });
|
|
13
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ActionStateUiModule, decorators: [{
|
|
14
|
-
type: NgModule,
|
|
15
|
-
args: [{
|
|
16
|
-
declarations: [
|
|
17
|
-
ActionStateSpinnerComponent,
|
|
18
|
-
],
|
|
19
|
-
imports: [
|
|
20
|
-
CommonModule,
|
|
21
|
-
MatProgressSpinnerModule,
|
|
22
|
-
],
|
|
23
|
-
exports: [
|
|
24
|
-
ActionStateSpinnerComponent,
|
|
25
|
-
]
|
|
26
|
-
}]
|
|
27
|
-
}] });
|
|
28
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWN0aW9uLXN0YXRlLXVpLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2FuZ3VsYXItdXRpbGl0aWVzL3NyYy9hY3Rpb24tc3RhdGUvYWN0aW9uLXN0YXRlLXVpL2FjdGlvbi1zdGF0ZS11aS5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN6QyxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDL0MsT0FBTyxFQUFFLDJCQUEyQixFQUFFLE1BQU0sd0RBQXdELENBQUM7QUFDckcsT0FBTyxFQUFFLDhCQUE4QixJQUFJLHdCQUF3QixFQUFFLE1BQU0sMkNBQTJDLENBQUM7O0FBZXZILE1BQU0sT0FBTyxtQkFBbUI7O2dIQUFuQixtQkFBbUI7aUhBQW5CLG1CQUFtQixpQkFWNUIsMkJBQTJCLGFBRzNCLFlBQVk7UUFDWix3QkFBd0IsYUFHeEIsMkJBQTJCO2lIQUdsQixtQkFBbUIsWUFQNUIsWUFBWTtRQUNaLHdCQUF3QjsyRkFNZixtQkFBbUI7a0JBWi9CLFFBQVE7bUJBQUM7b0JBQ1IsWUFBWSxFQUFFO3dCQUNaLDJCQUEyQjtxQkFDNUI7b0JBQ0QsT0FBTyxFQUFFO3dCQUNQLFlBQVk7d0JBQ1osd0JBQXdCO3FCQUN6QjtvQkFDRCxPQUFPLEVBQUU7d0JBQ1AsMkJBQTJCO3FCQUM1QjtpQkFDRiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IE5nTW9kdWxlIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5pbXBvcnQgeyBDb21tb25Nb2R1bGUgfSBmcm9tICdAYW5ndWxhci9jb21tb24nO1xuaW1wb3J0IHsgQWN0aW9uU3RhdGVTcGlubmVyQ29tcG9uZW50IH0gZnJvbSAnLi4vYWN0aW9uLXN0YXRlLXNwaW5uZXIvYWN0aW9uLXN0YXRlLXNwaW5uZXIuY29tcG9uZW50JztcbmltcG9ydCB7IE1hdExlZ2FjeVByb2dyZXNzU3Bpbm5lck1vZHVsZSBhcyBNYXRQcm9ncmVzc1NwaW5uZXJNb2R1bGUgfSBmcm9tICdAYW5ndWxhci9tYXRlcmlhbC9sZWdhY3ktcHJvZ3Jlc3Mtc3Bpbm5lcic7XG5cblxuQE5nTW9kdWxlKHtcbiAgZGVjbGFyYXRpb25zOiBbXG4gICAgQWN0aW9uU3RhdGVTcGlubmVyQ29tcG9uZW50LFxuICBdLFxuICBpbXBvcnRzOiBbXG4gICAgQ29tbW9uTW9kdWxlLFxuICAgIE1hdFByb2dyZXNzU3Bpbm5lck1vZHVsZSxcbiAgXSxcbiAgZXhwb3J0czogW1xuICAgIEFjdGlvblN0YXRlU3Bpbm5lckNvbXBvbmVudCxcbiAgXVxufSlcbmV4cG9ydCBjbGFzcyBBY3Rpb25TdGF0ZVVpTW9kdWxlIHsgfVxuIl19
|