From 2e1b4ba5b4a46abb0d7b0a3f970f568d54db9baa Mon Sep 17 00:00:00 2001 From: fboeller Date: Sun, 7 Mar 2021 17:31:06 +0100 Subject: [PATCH] Rename things to ngx-loading-customizer --- CONTRIBUTING.md | 4 ++-- README.md | 24 +++++++++---------- angular.json | 18 +++++++------- package-lock.json | 2 +- package.json | 14 +++++------ ...ustom-default-loading-example.component.ts | 4 ++-- .../custom-default-loading-example.module.ts | 2 +- ...stom-loading-template-example.component.ts | 4 ++-- .../custom-loading-template-example.module.ts | 2 +- .../default-example.component.ts | 4 ++-- .../default-example/default-example.module.ts | 2 +- .../lightweight-example.component.ts | 4 ++-- .../lightweight-example.module.ts | 2 +- .../ngrx-example/ngrx-example.module.ts | 2 +- .../src/app/examples/ngrx-example/reducer.ts | 4 ++-- .../src/app/examples/ngrx-example/selector.ts | 2 +- .../src/app/load-form/load-form.component.ts | 4 ++-- .../ng-package.json | 2 +- .../package.json | 10 ++++---- .../setup-jest.ts | 0 .../src/lib/angular/is-loading.pipe.spec.ts | 0 .../src/lib/angular/is-loading.pipe.ts | 0 .../src/lib/angular/loadable-error.type.ts | 0 .../loadable-error.component.css | 0 .../loadable-error.component.html | 0 .../loadable-error.component.ts | 0 .../loadable-loading.component.css | 0 .../loadable-loading.component.html | 0 .../loadable-loading.component.ts | 0 .../src/lib/angular/loadable.module.spec.ts | 0 .../src/lib/angular/loadable.module.ts | 0 .../src/lib/angular/loadable.tokens.ts | 0 .../angular/loadable/loadable.component.css | 0 .../loadable/loadable.component.fixtures.ts | 0 .../angular/loadable/loadable.component.html | 0 .../loadable/loadable.component.spec.ts | 0 .../angular/loadable/loadable.component.ts | 0 .../src/lib/angular/loaded-value.pipe.spec.ts | 0 .../src/lib/angular/loaded-value.pipe.ts | 0 .../lib/angular/loading-state.pipe.spec.ts | 0 .../src/lib/angular/loading-state.pipe.ts | 0 .../src/lib/angular/module.options.ts | 0 .../lib/functions/flat-map.function.spec.ts | 0 .../src/lib/functions/flat-map.function.ts | 0 .../functions/from-promise.function.spec.ts | 0 .../lib/functions/from-promise.function.ts | 0 .../src/lib/functions/map.function.spec.ts | 0 .../src/lib/functions/map.function.ts | 0 .../src/lib/functions/of.function.ts | 0 .../functions/to-loadable.function.spec.ts | 0 .../src/lib/functions/to-loadable.function.ts | 0 .../src/lib/loadable.constructors.ts | 0 .../src/lib/loadable.functions.spec.ts | 0 .../src/lib/loadable.functions.ts | 0 .../src/lib/loadable.type.ts | 0 .../src/public-api.ts | 0 .../tsconfig.lib.json | 0 .../tsconfig.lib.prod.json | 0 .../tsconfig.spec.json | 0 .../tslint.json | 0 60 files changed, 55 insertions(+), 55 deletions(-) rename projects/{ngx-loadable => ngx-loading-customizer}/ng-package.json (72%) rename projects/{ngx-loadable => ngx-loading-customizer}/package.json (55%) rename projects/{ngx-loadable => ngx-loading-customizer}/setup-jest.ts (100%) rename projects/{ngx-loadable => ngx-loading-customizer}/src/lib/angular/is-loading.pipe.spec.ts (100%) rename projects/{ngx-loadable => ngx-loading-customizer}/src/lib/angular/is-loading.pipe.ts (100%) rename projects/{ngx-loadable => ngx-loading-customizer}/src/lib/angular/loadable-error.type.ts (100%) rename projects/{ngx-loadable => ngx-loading-customizer}/src/lib/angular/loadable-error/loadable-error.component.css (100%) rename projects/{ngx-loadable => ngx-loading-customizer}/src/lib/angular/loadable-error/loadable-error.component.html (100%) rename projects/{ngx-loadable => ngx-loading-customizer}/src/lib/angular/loadable-error/loadable-error.component.ts (100%) rename projects/{ngx-loadable => ngx-loading-customizer}/src/lib/angular/loadable-loading/loadable-loading.component.css (100%) rename projects/{ngx-loadable => ngx-loading-customizer}/src/lib/angular/loadable-loading/loadable-loading.component.html (100%) rename projects/{ngx-loadable => ngx-loading-customizer}/src/lib/angular/loadable-loading/loadable-loading.component.ts (100%) rename projects/{ngx-loadable => ngx-loading-customizer}/src/lib/angular/loadable.module.spec.ts (100%) rename projects/{ngx-loadable => ngx-loading-customizer}/src/lib/angular/loadable.module.ts (100%) rename projects/{ngx-loadable => ngx-loading-customizer}/src/lib/angular/loadable.tokens.ts (100%) rename projects/{ngx-loadable => ngx-loading-customizer}/src/lib/angular/loadable/loadable.component.css (100%) rename projects/{ngx-loadable => ngx-loading-customizer}/src/lib/angular/loadable/loadable.component.fixtures.ts (100%) rename projects/{ngx-loadable => ngx-loading-customizer}/src/lib/angular/loadable/loadable.component.html (100%) rename projects/{ngx-loadable => ngx-loading-customizer}/src/lib/angular/loadable/loadable.component.spec.ts (100%) rename projects/{ngx-loadable => ngx-loading-customizer}/src/lib/angular/loadable/loadable.component.ts (100%) rename projects/{ngx-loadable => ngx-loading-customizer}/src/lib/angular/loaded-value.pipe.spec.ts (100%) rename projects/{ngx-loadable => ngx-loading-customizer}/src/lib/angular/loaded-value.pipe.ts (100%) rename projects/{ngx-loadable => ngx-loading-customizer}/src/lib/angular/loading-state.pipe.spec.ts (100%) rename projects/{ngx-loadable => ngx-loading-customizer}/src/lib/angular/loading-state.pipe.ts (100%) rename projects/{ngx-loadable => ngx-loading-customizer}/src/lib/angular/module.options.ts (100%) rename projects/{ngx-loadable => ngx-loading-customizer}/src/lib/functions/flat-map.function.spec.ts (100%) rename projects/{ngx-loadable => ngx-loading-customizer}/src/lib/functions/flat-map.function.ts (100%) rename projects/{ngx-loadable => ngx-loading-customizer}/src/lib/functions/from-promise.function.spec.ts (100%) rename projects/{ngx-loadable => ngx-loading-customizer}/src/lib/functions/from-promise.function.ts (100%) rename projects/{ngx-loadable => ngx-loading-customizer}/src/lib/functions/map.function.spec.ts (100%) rename projects/{ngx-loadable => ngx-loading-customizer}/src/lib/functions/map.function.ts (100%) rename projects/{ngx-loadable => ngx-loading-customizer}/src/lib/functions/of.function.ts (100%) rename projects/{ngx-loadable => ngx-loading-customizer}/src/lib/functions/to-loadable.function.spec.ts (100%) rename projects/{ngx-loadable => ngx-loading-customizer}/src/lib/functions/to-loadable.function.ts (100%) rename projects/{ngx-loadable => ngx-loading-customizer}/src/lib/loadable.constructors.ts (100%) rename projects/{ngx-loadable => ngx-loading-customizer}/src/lib/loadable.functions.spec.ts (100%) rename projects/{ngx-loadable => ngx-loading-customizer}/src/lib/loadable.functions.ts (100%) rename projects/{ngx-loadable => ngx-loading-customizer}/src/lib/loadable.type.ts (100%) rename projects/{ngx-loadable => ngx-loading-customizer}/src/public-api.ts (100%) rename projects/{ngx-loadable => ngx-loading-customizer}/tsconfig.lib.json (100%) rename projects/{ngx-loadable => ngx-loading-customizer}/tsconfig.lib.prod.json (100%) rename projects/{ngx-loadable => ngx-loading-customizer}/tsconfig.spec.json (100%) rename projects/{ngx-loadable => ngx-loading-customizer}/tslint.json (100%) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 3fa917e..3639d90 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -13,6 +13,6 @@ ## Publish -- Adjust version in [package.json](./projects/ngx-loadable/package.json) +- Adjust version in [package.json](./projects/ngx-loading-customizer/package.json) - `npm run package` -- (You need to have npm access to do that): `npm publish ./dist/ngx-loadable/ngx-loadable-x.x.x.tgz` +- (You need to have npm access to do that): `npm publish ./dist/ngx-loading-customizer/ngx-loading-customizer-x.x.x.tgz` diff --git a/README.md b/README.md index 0d2b444..53f4cd5 100644 --- a/README.md +++ b/README.md @@ -11,16 +11,16 @@ Angular Loadable is a library that helps you represent and show data that needs ## Installation ``` -npm install --save ngx-loadable +npm install --save ngx-loading-customizer ``` ## Try it -This repo includes an example application showcasing the usage of ngx-loadable. +This repo includes an example application showcasing the usage of ngx-loading-customizer. ``` -$ git clone https://github.com/fboeller/ngx-loadable.git -$ cd ngx-loadable +$ git clone https://github.com/fboeller/ngx-loading-customizer.git +$ cd ngx-loading-customizer $ npm install $ npm start example-app ``` @@ -32,7 +32,7 @@ $ npm start example-app Given an observable, you can construct a loadable with the operator `toLoadable`. ```typescript -import { toLoadable } from "ngx-loadable"; +import { toLoadable } from "ngx-loading-customizer"; import { of } from "rxjs"; const loadable$ = of({ id: 42 }).pipe(toLoadable); @@ -46,7 +46,7 @@ First, make sure to import the `LoadableModule` in your module. ```typescript import { NgModule } from "@angular/core"; -import { LoadableModule } from "ngx-loadable"; +import { LoadableModule } from "ngx-loading-customizer"; import { CommonModule } from "@angular/common"; @NgModule({ @@ -60,7 +60,7 @@ You can use `idle`, `loading`, `loaded('value')` and `errored('error')` to const ```typescript import { Component } from "@angular/core"; -import { idle, Loadable } from "ngx-loadable"; +import { idle, Loadable } from "ngx-loading-customizer"; @Component({ selector: "app-some", @@ -92,7 +92,7 @@ Create your custom loading animation component and pass it to the `LoadableModul ```typescript import { NgModule } from "@angular/core"; -import { LoadableModule } from "ngx-loadable"; +import { LoadableModule } from "ngx-loading-customizer"; import { CustomLoadingAnimationComponent } from "./custom-loading-animation.component"; @NgModule({ @@ -148,8 +148,8 @@ In case you would like to show a loading animation immediately, you can change t ```typescript import { NgModule } from "@angular/core"; -import { LoadableModule } from "ngx-loadable"; -import { LoadableLoadingComponent } from "ngx-loadable"; +import { LoadableModule } from "ngx-loading-customizer"; +import { LoadableLoadingComponent } from "ngx-loading-customizer"; @NgModule({ imports: [ @@ -171,7 +171,7 @@ It defines some utility functions to work with it. If you have a loadable and want to change its value once it is loaded, you can use `map`. ```typescript -import { map, loaded } from "ngx-loadable"; +import { map, loaded } from "ngx-loading-customizer"; const loadable = loaded(5); const result = map((x) => x + 10, loadable); // loaded(15) ``` @@ -179,7 +179,7 @@ const result = map((x) => x + 10, loadable); // loaded(15) If you have a loadable and want to map it to another loadable once it is loaded, you can use `flatMap`. ```typescript -import { flatMap, loaded } from "ngx-loadable"; +import { flatMap, loaded } from "ngx-loading-customizer"; const loadable = loaded(5); const result = flatMap((x) => loaded(x + 10), loadable); // loaded(15) ``` diff --git a/angular.json b/angular.json index bac35f1..5b56ceb 100644 --- a/angular.json +++ b/angular.json @@ -3,21 +3,21 @@ "version": 1, "newProjectRoot": "projects", "projects": { - "ngx-loadable": { + "ngx-loading-customizer": { "projectType": "library", - "root": "projects/ngx-loadable", - "sourceRoot": "projects/ngx-loadable/src", + "root": "projects/ngx-loading-customizer", + "sourceRoot": "projects/ngx-loading-customizer/src", "prefix": "ld", "architect": { "build": { "builder": "@angular-devkit/build-angular:ng-packagr", "options": { - "tsConfig": "projects/ngx-loadable/tsconfig.lib.json", - "project": "projects/ngx-loadable/ng-package.json" + "tsConfig": "projects/ngx-loading-customizer/tsconfig.lib.json", + "project": "projects/ngx-loading-customizer/ng-package.json" }, "configurations": { "production": { - "tsConfig": "projects/ngx-loadable/tsconfig.lib.prod.json" + "tsConfig": "projects/ngx-loading-customizer/tsconfig.lib.prod.json" } } }, @@ -25,8 +25,8 @@ "builder": "@angular-devkit/build-angular:tslint", "options": { "tsConfig": [ - "projects/ngx-loadable/tsconfig.lib.json", - "projects/ngx-loadable/tsconfig.spec.json" + "projects/ngx-loading-customizer/tsconfig.lib.json", + "projects/ngx-loading-customizer/tsconfig.spec.json" ], "exclude": ["**/node_modules/**"] } @@ -106,5 +106,5 @@ } } }, - "defaultProject": "ngx-loadable" + "defaultProject": "ngx-loading-customizer" } diff --git a/package-lock.json b/package-lock.json index 9fcf46d..f4ac6e4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,5 +1,5 @@ { - "name": "ngx-loadable", + "name": "ngx-loading-customizer", "requires": true, "lockfileVersion": 1, "dependencies": { diff --git a/package.json b/package.json index 640dec8..0e4226a 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "ngx-loadable", + "name": "ngx-loading-customizer", "scripts": { "ng": "ng", "start": "ng serve", @@ -9,8 +9,8 @@ "prettier": "npx prettier --write .", "prettier-check": "npx prettier --check .", "check": "npm run lint && npm run test && npm run prettier-check", - "build-lib": "ng build ngx-loadable --prod && cp ./README.md ./dist/ngx-loadable/ && cp ./LICENSE ./dist/ngx-loadable/", - "npm-pack": "cd dist/ngx-loadable && npm pack && cd ../..", + "build-lib": "ng build ngx-loading-customizer --prod && cp ./README.md ./dist/ngx-loading-customizer/ && cp ./LICENSE ./dist/ngx-loading-customizer/", + "npm-pack": "cd dist/ngx-loading-customizer && npm pack && cd ../..", "package": "npm run build-lib && npm run npm-pack" }, "husky": { @@ -21,14 +21,14 @@ "jest": { "preset": "jest-preset-angular", "setupFilesAfterEnv": [ - "/projects/ngx-loadable/setup-jest.ts" + "/projects/ngx-loading-customizer/setup-jest.ts" ], "roots": [ - "/projects/ngx-loadable/src" + "/projects/ngx-loading-customizer/src" ], "collectCoverage": true, "collectCoverageFrom": [ - "/projects/ngx-loadable/src/**/{!(public-api),}.{ts,js}" + "/projects/ngx-loading-customizer/src/**/{!(public-api),}.{ts,js}" ], "clearMocks": true, "coverageThreshold": { @@ -41,7 +41,7 @@ }, "globals": { "ts-jest": { - "tsconfig": "/projects/ngx-loadable/tsconfig.spec.json" + "tsconfig": "/projects/ngx-loading-customizer/tsconfig.spec.json" } } }, diff --git a/projects/example-app/src/app/examples/custom-default-loading-example/custom-default-loading-example.component.ts b/projects/example-app/src/app/examples/custom-default-loading-example/custom-default-loading-example.component.ts index 253500c..09b3acb 100644 --- a/projects/example-app/src/app/examples/custom-default-loading-example/custom-default-loading-example.component.ts +++ b/projects/example-app/src/app/examples/custom-default-loading-example/custom-default-loading-example.component.ts @@ -1,6 +1,6 @@ import { Component } from '@angular/core'; -import { idle } from 'projects/ngx-loadable/src/lib/loadable.constructors'; -import { Loadable } from 'projects/ngx-loadable/src/lib/loadable.type'; +import { idle } from 'projects/ngx-loading-customizer/src/lib/loadable.constructors'; +import { Loadable } from 'projects/ngx-loading-customizer/src/lib/loadable.type'; @Component({ selector: 'app-custom-default-loading-example', diff --git a/projects/example-app/src/app/examples/custom-default-loading-example/custom-default-loading-example.module.ts b/projects/example-app/src/app/examples/custom-default-loading-example/custom-default-loading-example.module.ts index d571576..86589e3 100644 --- a/projects/example-app/src/app/examples/custom-default-loading-example/custom-default-loading-example.module.ts +++ b/projects/example-app/src/app/examples/custom-default-loading-example/custom-default-loading-example.module.ts @@ -1,6 +1,6 @@ import { NgModule } from '@angular/core'; -import { LoadableModule } from 'projects/ngx-loadable/src/lib/angular/loadable.module'; +import { LoadableModule } from 'projects/ngx-loading-customizer/src/lib/angular/loadable.module'; import { LoadFormModule } from '../../load-form/load-form.module'; import { CustomDefaultLoadingExampleComponent } from './custom-default-loading-example.component'; import { LoadingSpinnerComponent } from './loading-spinner/loading-spinner.component'; diff --git a/projects/example-app/src/app/examples/custom-loading-template-example/custom-loading-template-example.component.ts b/projects/example-app/src/app/examples/custom-loading-template-example/custom-loading-template-example.component.ts index 954e8d1..7a410ad 100644 --- a/projects/example-app/src/app/examples/custom-loading-template-example/custom-loading-template-example.component.ts +++ b/projects/example-app/src/app/examples/custom-loading-template-example/custom-loading-template-example.component.ts @@ -1,6 +1,6 @@ import { Component } from '@angular/core'; -import { idle } from 'projects/ngx-loadable/src/lib/loadable.constructors'; -import { Loadable } from 'projects/ngx-loadable/src/lib/loadable.type'; +import { idle } from 'projects/ngx-loading-customizer/src/lib/loadable.constructors'; +import { Loadable } from 'projects/ngx-loading-customizer/src/lib/loadable.type'; @Component({ selector: 'app-custom-loading-template-example', diff --git a/projects/example-app/src/app/examples/custom-loading-template-example/custom-loading-template-example.module.ts b/projects/example-app/src/app/examples/custom-loading-template-example/custom-loading-template-example.module.ts index ead9d80..6ea2cc0 100644 --- a/projects/example-app/src/app/examples/custom-loading-template-example/custom-loading-template-example.module.ts +++ b/projects/example-app/src/app/examples/custom-loading-template-example/custom-loading-template-example.module.ts @@ -1,6 +1,6 @@ import { NgModule } from '@angular/core'; -import { LoadableModule } from 'projects/ngx-loadable/src/lib/angular/loadable.module'; +import { LoadableModule } from 'projects/ngx-loading-customizer/src/lib/angular/loadable.module'; import { CustomLoadingTemplateExampleComponent } from './custom-loading-template-example.component'; import { LoadFormModule } from '../../load-form/load-form.module'; import { CommonModule } from '@angular/common'; diff --git a/projects/example-app/src/app/examples/default-example/default-example.component.ts b/projects/example-app/src/app/examples/default-example/default-example.component.ts index b50b412..b135674 100644 --- a/projects/example-app/src/app/examples/default-example/default-example.component.ts +++ b/projects/example-app/src/app/examples/default-example/default-example.component.ts @@ -1,6 +1,6 @@ import { Component } from '@angular/core'; -import { idle } from 'projects/ngx-loadable/src/lib/loadable.constructors'; -import { Loadable } from 'projects/ngx-loadable/src/lib/loadable.type'; +import { idle } from 'projects/ngx-loading-customizer/src/lib/loadable.constructors'; +import { Loadable } from 'projects/ngx-loading-customizer/src/lib/loadable.type'; @Component({ selector: 'app-default-example', diff --git a/projects/example-app/src/app/examples/default-example/default-example.module.ts b/projects/example-app/src/app/examples/default-example/default-example.module.ts index f73051e..f23f482 100644 --- a/projects/example-app/src/app/examples/default-example/default-example.module.ts +++ b/projects/example-app/src/app/examples/default-example/default-example.module.ts @@ -1,6 +1,6 @@ import { NgModule } from '@angular/core'; -import { LoadableModule } from 'projects/ngx-loadable/src/lib/angular/loadable.module'; +import { LoadableModule } from 'projects/ngx-loading-customizer/src/lib/angular/loadable.module'; import { DefaultExampleComponent } from './default-example.component'; import { LoadFormModule } from '../../load-form/load-form.module'; import { CommonModule } from '@angular/common'; diff --git a/projects/example-app/src/app/examples/lightweight-example/lightweight-example.component.ts b/projects/example-app/src/app/examples/lightweight-example/lightweight-example.component.ts index a5f58a8..ead2f8b 100644 --- a/projects/example-app/src/app/examples/lightweight-example/lightweight-example.component.ts +++ b/projects/example-app/src/app/examples/lightweight-example/lightweight-example.component.ts @@ -1,6 +1,6 @@ import { Component } from '@angular/core'; -import { idle } from 'projects/ngx-loadable/src/lib/loadable.constructors'; -import { Loadable } from 'projects/ngx-loadable/src/lib/loadable.type'; +import { idle } from 'projects/ngx-loading-customizer/src/lib/loadable.constructors'; +import { Loadable } from 'projects/ngx-loading-customizer/src/lib/loadable.type'; @Component({ selector: 'app-lightweight-example', diff --git a/projects/example-app/src/app/examples/lightweight-example/lightweight-example.module.ts b/projects/example-app/src/app/examples/lightweight-example/lightweight-example.module.ts index 8dbc3b3..1ca351b 100644 --- a/projects/example-app/src/app/examples/lightweight-example/lightweight-example.module.ts +++ b/projects/example-app/src/app/examples/lightweight-example/lightweight-example.module.ts @@ -1,6 +1,6 @@ import { NgModule } from '@angular/core'; -import { LoadableModule } from 'projects/ngx-loadable/src/lib/angular/loadable.module'; +import { LoadableModule } from 'projects/ngx-loading-customizer/src/lib/angular/loadable.module'; import { LightweightExampleComponent } from './lightweight-example.component'; import { LoadFormModule } from '../../load-form/load-form.module'; import { CommonModule } from '@angular/common'; diff --git a/projects/example-app/src/app/examples/ngrx-example/ngrx-example.module.ts b/projects/example-app/src/app/examples/ngrx-example/ngrx-example.module.ts index 5cc7345..c8b210e 100644 --- a/projects/example-app/src/app/examples/ngrx-example/ngrx-example.module.ts +++ b/projects/example-app/src/app/examples/ngrx-example/ngrx-example.module.ts @@ -5,7 +5,7 @@ import { StoreModule } from '@ngrx/store'; import { responseReducer } from './reducer'; import { EffectsModule } from '@ngrx/effects'; import { LoadEffects } from './effects'; -import { LoadableModule } from 'projects/ngx-loadable/src/lib/angular/loadable.module'; +import { LoadableModule } from 'projects/ngx-loading-customizer/src/lib/angular/loadable.module'; import { CommonModule } from '@angular/common'; import { RouterModule } from '@angular/router'; diff --git a/projects/example-app/src/app/examples/ngrx-example/reducer.ts b/projects/example-app/src/app/examples/ngrx-example/reducer.ts index 4ea442c..ff4fc6d 100644 --- a/projects/example-app/src/app/examples/ngrx-example/reducer.ts +++ b/projects/example-app/src/app/examples/ngrx-example/reducer.ts @@ -4,8 +4,8 @@ import { idle, loaded, loading, -} from 'projects/ngx-loadable/src/lib/loadable.constructors'; -import { Loadable } from 'projects/ngx-loadable/src/lib/loadable.type'; +} from 'projects/ngx-loading-customizer/src/lib/loadable.constructors'; +import { Loadable } from 'projects/ngx-loading-customizer/src/lib/loadable.type'; import { load, loadError, loadSuccess } from './actions'; const reducer = createReducer( diff --git a/projects/example-app/src/app/examples/ngrx-example/selector.ts b/projects/example-app/src/app/examples/ngrx-example/selector.ts index 66db8aa..8b65a43 100644 --- a/projects/example-app/src/app/examples/ngrx-example/selector.ts +++ b/projects/example-app/src/app/examples/ngrx-example/selector.ts @@ -1,5 +1,5 @@ import { createFeatureSelector } from '@ngrx/store'; -import { Loadable } from 'projects/ngx-loadable/src/lib/loadable.type'; +import { Loadable } from 'projects/ngx-loading-customizer/src/lib/loadable.type'; export const selectResponse = createFeatureSelector>( 'response' diff --git a/projects/example-app/src/app/load-form/load-form.component.ts b/projects/example-app/src/app/load-form/load-form.component.ts index 4fcf13c..731d0f7 100644 --- a/projects/example-app/src/app/load-form/load-form.component.ts +++ b/projects/example-app/src/app/load-form/load-form.component.ts @@ -1,6 +1,6 @@ import { Component, EventEmitter, OnInit, Output } from '@angular/core'; -import { toLoadable } from 'projects/ngx-loadable/src/lib/functions/to-loadable.function'; -import { Loadable } from 'projects/ngx-loadable/src/public-api'; +import { toLoadable } from 'projects/ngx-loading-customizer/src/lib/functions/to-loadable.function'; +import { Loadable } from 'projects/ngx-loading-customizer/src/public-api'; import { Subject } from 'rxjs'; import { switchMap } from 'rxjs/operators'; import { LoadService } from '../load.service'; diff --git a/projects/ngx-loadable/ng-package.json b/projects/ngx-loading-customizer/ng-package.json similarity index 72% rename from projects/ngx-loadable/ng-package.json rename to projects/ngx-loading-customizer/ng-package.json index 374e67e..c0379e5 100644 --- a/projects/ngx-loadable/ng-package.json +++ b/projects/ngx-loading-customizer/ng-package.json @@ -1,6 +1,6 @@ { "$schema": "../../node_modules/ng-packagr/ng-package.schema.json", - "dest": "../../dist/ngx-loadable", + "dest": "../../dist/ngx-loading-customizer", "lib": { "entryFile": "src/public-api.ts" } diff --git a/projects/ngx-loadable/package.json b/projects/ngx-loading-customizer/package.json similarity index 55% rename from projects/ngx-loadable/package.json rename to projects/ngx-loading-customizer/package.json index f6a661e..b59501b 100644 --- a/projects/ngx-loadable/package.json +++ b/projects/ngx-loading-customizer/package.json @@ -1,7 +1,7 @@ { - "name": "ngx-loadable", + "name": "ngx-loading-customizer", "version": "0.0.1", - "description": "Angular Loadable is a library that helps you represent and show data that needs to be loaded from a backend and can therefore be in a loading state.", + "description": "Angular Loading Customizer is a library that helps you represent and show data that needs to be loaded from an external source.", "author": "Fabian Böller", "license": "MIT", "publishConfig": { @@ -10,10 +10,10 @@ "private": false, "repository": { "type": "git", - "url": "git+https://github.com/fboeller/ngx-loadable.git" + "url": "git+https://github.com/fboeller/ngx-loading-customizer.git" }, "bugs": { - "url": "https://github.com/fboeller/ngx-loadable/issues" + "url": "https://github.com/fboeller/ngx-loading-customizer/issues" }, "keywords": [ "angular", @@ -22,7 +22,7 @@ ], "np": { "yarn": false, - "contents": "dist/ngx-loadable" + "contents": "dist/ngx-loading-customizer" }, "peerDependencies": { "@angular/common": ">=10.2.0", diff --git a/projects/ngx-loadable/setup-jest.ts b/projects/ngx-loading-customizer/setup-jest.ts similarity index 100% rename from projects/ngx-loadable/setup-jest.ts rename to projects/ngx-loading-customizer/setup-jest.ts diff --git a/projects/ngx-loadable/src/lib/angular/is-loading.pipe.spec.ts b/projects/ngx-loading-customizer/src/lib/angular/is-loading.pipe.spec.ts similarity index 100% rename from projects/ngx-loadable/src/lib/angular/is-loading.pipe.spec.ts rename to projects/ngx-loading-customizer/src/lib/angular/is-loading.pipe.spec.ts diff --git a/projects/ngx-loadable/src/lib/angular/is-loading.pipe.ts b/projects/ngx-loading-customizer/src/lib/angular/is-loading.pipe.ts similarity index 100% rename from projects/ngx-loadable/src/lib/angular/is-loading.pipe.ts rename to projects/ngx-loading-customizer/src/lib/angular/is-loading.pipe.ts diff --git a/projects/ngx-loadable/src/lib/angular/loadable-error.type.ts b/projects/ngx-loading-customizer/src/lib/angular/loadable-error.type.ts similarity index 100% rename from projects/ngx-loadable/src/lib/angular/loadable-error.type.ts rename to projects/ngx-loading-customizer/src/lib/angular/loadable-error.type.ts diff --git a/projects/ngx-loadable/src/lib/angular/loadable-error/loadable-error.component.css b/projects/ngx-loading-customizer/src/lib/angular/loadable-error/loadable-error.component.css similarity index 100% rename from projects/ngx-loadable/src/lib/angular/loadable-error/loadable-error.component.css rename to projects/ngx-loading-customizer/src/lib/angular/loadable-error/loadable-error.component.css diff --git a/projects/ngx-loadable/src/lib/angular/loadable-error/loadable-error.component.html b/projects/ngx-loading-customizer/src/lib/angular/loadable-error/loadable-error.component.html similarity index 100% rename from projects/ngx-loadable/src/lib/angular/loadable-error/loadable-error.component.html rename to projects/ngx-loading-customizer/src/lib/angular/loadable-error/loadable-error.component.html diff --git a/projects/ngx-loadable/src/lib/angular/loadable-error/loadable-error.component.ts b/projects/ngx-loading-customizer/src/lib/angular/loadable-error/loadable-error.component.ts similarity index 100% rename from projects/ngx-loadable/src/lib/angular/loadable-error/loadable-error.component.ts rename to projects/ngx-loading-customizer/src/lib/angular/loadable-error/loadable-error.component.ts diff --git a/projects/ngx-loadable/src/lib/angular/loadable-loading/loadable-loading.component.css b/projects/ngx-loading-customizer/src/lib/angular/loadable-loading/loadable-loading.component.css similarity index 100% rename from projects/ngx-loadable/src/lib/angular/loadable-loading/loadable-loading.component.css rename to projects/ngx-loading-customizer/src/lib/angular/loadable-loading/loadable-loading.component.css diff --git a/projects/ngx-loadable/src/lib/angular/loadable-loading/loadable-loading.component.html b/projects/ngx-loading-customizer/src/lib/angular/loadable-loading/loadable-loading.component.html similarity index 100% rename from projects/ngx-loadable/src/lib/angular/loadable-loading/loadable-loading.component.html rename to projects/ngx-loading-customizer/src/lib/angular/loadable-loading/loadable-loading.component.html diff --git a/projects/ngx-loadable/src/lib/angular/loadable-loading/loadable-loading.component.ts b/projects/ngx-loading-customizer/src/lib/angular/loadable-loading/loadable-loading.component.ts similarity index 100% rename from projects/ngx-loadable/src/lib/angular/loadable-loading/loadable-loading.component.ts rename to projects/ngx-loading-customizer/src/lib/angular/loadable-loading/loadable-loading.component.ts diff --git a/projects/ngx-loadable/src/lib/angular/loadable.module.spec.ts b/projects/ngx-loading-customizer/src/lib/angular/loadable.module.spec.ts similarity index 100% rename from projects/ngx-loadable/src/lib/angular/loadable.module.spec.ts rename to projects/ngx-loading-customizer/src/lib/angular/loadable.module.spec.ts diff --git a/projects/ngx-loadable/src/lib/angular/loadable.module.ts b/projects/ngx-loading-customizer/src/lib/angular/loadable.module.ts similarity index 100% rename from projects/ngx-loadable/src/lib/angular/loadable.module.ts rename to projects/ngx-loading-customizer/src/lib/angular/loadable.module.ts diff --git a/projects/ngx-loadable/src/lib/angular/loadable.tokens.ts b/projects/ngx-loading-customizer/src/lib/angular/loadable.tokens.ts similarity index 100% rename from projects/ngx-loadable/src/lib/angular/loadable.tokens.ts rename to projects/ngx-loading-customizer/src/lib/angular/loadable.tokens.ts diff --git a/projects/ngx-loadable/src/lib/angular/loadable/loadable.component.css b/projects/ngx-loading-customizer/src/lib/angular/loadable/loadable.component.css similarity index 100% rename from projects/ngx-loadable/src/lib/angular/loadable/loadable.component.css rename to projects/ngx-loading-customizer/src/lib/angular/loadable/loadable.component.css diff --git a/projects/ngx-loadable/src/lib/angular/loadable/loadable.component.fixtures.ts b/projects/ngx-loading-customizer/src/lib/angular/loadable/loadable.component.fixtures.ts similarity index 100% rename from projects/ngx-loadable/src/lib/angular/loadable/loadable.component.fixtures.ts rename to projects/ngx-loading-customizer/src/lib/angular/loadable/loadable.component.fixtures.ts diff --git a/projects/ngx-loadable/src/lib/angular/loadable/loadable.component.html b/projects/ngx-loading-customizer/src/lib/angular/loadable/loadable.component.html similarity index 100% rename from projects/ngx-loadable/src/lib/angular/loadable/loadable.component.html rename to projects/ngx-loading-customizer/src/lib/angular/loadable/loadable.component.html diff --git a/projects/ngx-loadable/src/lib/angular/loadable/loadable.component.spec.ts b/projects/ngx-loading-customizer/src/lib/angular/loadable/loadable.component.spec.ts similarity index 100% rename from projects/ngx-loadable/src/lib/angular/loadable/loadable.component.spec.ts rename to projects/ngx-loading-customizer/src/lib/angular/loadable/loadable.component.spec.ts diff --git a/projects/ngx-loadable/src/lib/angular/loadable/loadable.component.ts b/projects/ngx-loading-customizer/src/lib/angular/loadable/loadable.component.ts similarity index 100% rename from projects/ngx-loadable/src/lib/angular/loadable/loadable.component.ts rename to projects/ngx-loading-customizer/src/lib/angular/loadable/loadable.component.ts diff --git a/projects/ngx-loadable/src/lib/angular/loaded-value.pipe.spec.ts b/projects/ngx-loading-customizer/src/lib/angular/loaded-value.pipe.spec.ts similarity index 100% rename from projects/ngx-loadable/src/lib/angular/loaded-value.pipe.spec.ts rename to projects/ngx-loading-customizer/src/lib/angular/loaded-value.pipe.spec.ts diff --git a/projects/ngx-loadable/src/lib/angular/loaded-value.pipe.ts b/projects/ngx-loading-customizer/src/lib/angular/loaded-value.pipe.ts similarity index 100% rename from projects/ngx-loadable/src/lib/angular/loaded-value.pipe.ts rename to projects/ngx-loading-customizer/src/lib/angular/loaded-value.pipe.ts diff --git a/projects/ngx-loadable/src/lib/angular/loading-state.pipe.spec.ts b/projects/ngx-loading-customizer/src/lib/angular/loading-state.pipe.spec.ts similarity index 100% rename from projects/ngx-loadable/src/lib/angular/loading-state.pipe.spec.ts rename to projects/ngx-loading-customizer/src/lib/angular/loading-state.pipe.spec.ts diff --git a/projects/ngx-loadable/src/lib/angular/loading-state.pipe.ts b/projects/ngx-loading-customizer/src/lib/angular/loading-state.pipe.ts similarity index 100% rename from projects/ngx-loadable/src/lib/angular/loading-state.pipe.ts rename to projects/ngx-loading-customizer/src/lib/angular/loading-state.pipe.ts diff --git a/projects/ngx-loadable/src/lib/angular/module.options.ts b/projects/ngx-loading-customizer/src/lib/angular/module.options.ts similarity index 100% rename from projects/ngx-loadable/src/lib/angular/module.options.ts rename to projects/ngx-loading-customizer/src/lib/angular/module.options.ts diff --git a/projects/ngx-loadable/src/lib/functions/flat-map.function.spec.ts b/projects/ngx-loading-customizer/src/lib/functions/flat-map.function.spec.ts similarity index 100% rename from projects/ngx-loadable/src/lib/functions/flat-map.function.spec.ts rename to projects/ngx-loading-customizer/src/lib/functions/flat-map.function.spec.ts diff --git a/projects/ngx-loadable/src/lib/functions/flat-map.function.ts b/projects/ngx-loading-customizer/src/lib/functions/flat-map.function.ts similarity index 100% rename from projects/ngx-loadable/src/lib/functions/flat-map.function.ts rename to projects/ngx-loading-customizer/src/lib/functions/flat-map.function.ts diff --git a/projects/ngx-loadable/src/lib/functions/from-promise.function.spec.ts b/projects/ngx-loading-customizer/src/lib/functions/from-promise.function.spec.ts similarity index 100% rename from projects/ngx-loadable/src/lib/functions/from-promise.function.spec.ts rename to projects/ngx-loading-customizer/src/lib/functions/from-promise.function.spec.ts diff --git a/projects/ngx-loadable/src/lib/functions/from-promise.function.ts b/projects/ngx-loading-customizer/src/lib/functions/from-promise.function.ts similarity index 100% rename from projects/ngx-loadable/src/lib/functions/from-promise.function.ts rename to projects/ngx-loading-customizer/src/lib/functions/from-promise.function.ts diff --git a/projects/ngx-loadable/src/lib/functions/map.function.spec.ts b/projects/ngx-loading-customizer/src/lib/functions/map.function.spec.ts similarity index 100% rename from projects/ngx-loadable/src/lib/functions/map.function.spec.ts rename to projects/ngx-loading-customizer/src/lib/functions/map.function.spec.ts diff --git a/projects/ngx-loadable/src/lib/functions/map.function.ts b/projects/ngx-loading-customizer/src/lib/functions/map.function.ts similarity index 100% rename from projects/ngx-loadable/src/lib/functions/map.function.ts rename to projects/ngx-loading-customizer/src/lib/functions/map.function.ts diff --git a/projects/ngx-loadable/src/lib/functions/of.function.ts b/projects/ngx-loading-customizer/src/lib/functions/of.function.ts similarity index 100% rename from projects/ngx-loadable/src/lib/functions/of.function.ts rename to projects/ngx-loading-customizer/src/lib/functions/of.function.ts diff --git a/projects/ngx-loadable/src/lib/functions/to-loadable.function.spec.ts b/projects/ngx-loading-customizer/src/lib/functions/to-loadable.function.spec.ts similarity index 100% rename from projects/ngx-loadable/src/lib/functions/to-loadable.function.spec.ts rename to projects/ngx-loading-customizer/src/lib/functions/to-loadable.function.spec.ts diff --git a/projects/ngx-loadable/src/lib/functions/to-loadable.function.ts b/projects/ngx-loading-customizer/src/lib/functions/to-loadable.function.ts similarity index 100% rename from projects/ngx-loadable/src/lib/functions/to-loadable.function.ts rename to projects/ngx-loading-customizer/src/lib/functions/to-loadable.function.ts diff --git a/projects/ngx-loadable/src/lib/loadable.constructors.ts b/projects/ngx-loading-customizer/src/lib/loadable.constructors.ts similarity index 100% rename from projects/ngx-loadable/src/lib/loadable.constructors.ts rename to projects/ngx-loading-customizer/src/lib/loadable.constructors.ts diff --git a/projects/ngx-loadable/src/lib/loadable.functions.spec.ts b/projects/ngx-loading-customizer/src/lib/loadable.functions.spec.ts similarity index 100% rename from projects/ngx-loadable/src/lib/loadable.functions.spec.ts rename to projects/ngx-loading-customizer/src/lib/loadable.functions.spec.ts diff --git a/projects/ngx-loadable/src/lib/loadable.functions.ts b/projects/ngx-loading-customizer/src/lib/loadable.functions.ts similarity index 100% rename from projects/ngx-loadable/src/lib/loadable.functions.ts rename to projects/ngx-loading-customizer/src/lib/loadable.functions.ts diff --git a/projects/ngx-loadable/src/lib/loadable.type.ts b/projects/ngx-loading-customizer/src/lib/loadable.type.ts similarity index 100% rename from projects/ngx-loadable/src/lib/loadable.type.ts rename to projects/ngx-loading-customizer/src/lib/loadable.type.ts diff --git a/projects/ngx-loadable/src/public-api.ts b/projects/ngx-loading-customizer/src/public-api.ts similarity index 100% rename from projects/ngx-loadable/src/public-api.ts rename to projects/ngx-loading-customizer/src/public-api.ts diff --git a/projects/ngx-loadable/tsconfig.lib.json b/projects/ngx-loading-customizer/tsconfig.lib.json similarity index 100% rename from projects/ngx-loadable/tsconfig.lib.json rename to projects/ngx-loading-customizer/tsconfig.lib.json diff --git a/projects/ngx-loadable/tsconfig.lib.prod.json b/projects/ngx-loading-customizer/tsconfig.lib.prod.json similarity index 100% rename from projects/ngx-loadable/tsconfig.lib.prod.json rename to projects/ngx-loading-customizer/tsconfig.lib.prod.json diff --git a/projects/ngx-loadable/tsconfig.spec.json b/projects/ngx-loading-customizer/tsconfig.spec.json similarity index 100% rename from projects/ngx-loadable/tsconfig.spec.json rename to projects/ngx-loading-customizer/tsconfig.spec.json diff --git a/projects/ngx-loadable/tslint.json b/projects/ngx-loading-customizer/tslint.json similarity index 100% rename from projects/ngx-loadable/tslint.json rename to projects/ngx-loading-customizer/tslint.json