@revivejs/angular-infinity-charts 2.0.0 → 21.0.0
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/dist/LICENSE +21 -0
- package/dist/README.md +254 -0
- package/dist/fesm2022/revivejs-angular-infinity-charts.mjs +520 -0
- package/dist/fesm2022/revivejs-angular-infinity-charts.mjs.map +1 -0
- package/dist/types/revivejs-angular-infinity-charts.d.ts +300 -0
- package/docs/.nojekyll +0 -0
- package/docs/angular-2/app/app.component.css +325 -0
- package/docs/angular-2/app/app.component.html +185 -0
- package/docs/angular-2/app/app.component.ts +243 -0
- package/docs/angular-2/app/app.module.ts +18 -0
- package/docs/angular-2/app/data/api.ts +14 -0
- package/docs/angular-2/app/data/release-line.ts +7 -0
- package/docs/angular-2/app/playground.component.css +250 -0
- package/docs/angular-2/app/playground.component.html +112 -0
- package/docs/angular-2/app/playground.component.ts +428 -0
- package/docs/angular-2/index.html +31 -0
- package/docs/angular-2/main.ts +8 -0
- package/docs/angular-2/styles.css +47 -0
- package/docs/angular-2/systemjs.config.js +55 -0
- package/docs/angular-21/180.8cbb300931475cea.js +1 -0
- package/docs/angular-21/323.8cbb300931475cea.js +1 -0
- package/docs/angular-21/37.8cbb300931475cea.js +1 -0
- package/docs/angular-21/3rdpartylicenses.txt +402 -0
- package/docs/angular-21/418.8cbb300931475cea.js +1 -0
- package/docs/angular-21/541.120110ba2fead634.js +1 -0
- package/docs/angular-21/561.8cbb300931475cea.js +1 -0
- package/docs/angular-21/639.5c36f0da162f2724.js +1 -0
- package/docs/angular-21/704.8cbb300931475cea.js +1 -0
- package/docs/angular-21/799.8cbb300931475cea.js +1 -0
- package/docs/angular-21/84.5baca81d04c90457.js +1 -0
- package/docs/angular-21/942.8cbb300931475cea.js +1 -0
- package/docs/angular-21/common.4fd5fdcf7b48f062.js +1 -0
- package/docs/angular-21/index.html +19 -0
- package/docs/angular-21/main.4daffff4ca1c294e.js +1 -0
- package/docs/angular-21/polyfills.37944fe611f86dfa.js +1 -0
- package/docs/angular-21/runtime.4d8a748cbea51380.js +1 -0
- package/docs/angular-21/styles.d345eaa39dd99983.css +1 -0
- package/docs/index.html +289 -0
- package/package.json +90 -17
- /package/{index.d.ts → docs/angular-2/vendor/angular-infinity-charts/index.d.ts} +0 -0
- /package/{index.js → docs/angular-2/vendor/angular-infinity-charts/index.js} +0 -0
- /package/{index.js.map → docs/angular-2/vendor/angular-infinity-charts/index.js.map} +0 -0
- /package/{src → docs/angular-2/vendor/angular-infinity-charts/src}/InfinityChartComponent.d.ts +0 -0
- /package/{src → docs/angular-2/vendor/angular-infinity-charts/src}/InfinityChartComponent.js +0 -0
- /package/{src → docs/angular-2/vendor/angular-infinity-charts/src}/InfinityChartComponent.js.map +0 -0
- /package/{src → docs/angular-2/vendor/angular-infinity-charts/src}/InfinityChartController.d.ts +0 -0
- /package/{src → docs/angular-2/vendor/angular-infinity-charts/src}/InfinityChartController.js +0 -0
- /package/{src → docs/angular-2/vendor/angular-infinity-charts/src}/InfinityChartController.js.map +0 -0
- /package/{src → docs/angular-2/vendor/angular-infinity-charts/src}/InfinityChartDirective.d.ts +0 -0
- /package/{src → docs/angular-2/vendor/angular-infinity-charts/src}/InfinityChartDirective.js +0 -0
- /package/{src → docs/angular-2/vendor/angular-infinity-charts/src}/InfinityChartDirective.js.map +0 -0
- /package/{src → docs/angular-2/vendor/angular-infinity-charts/src}/InfinityChartService.d.ts +0 -0
- /package/{src → docs/angular-2/vendor/angular-infinity-charts/src}/InfinityChartService.js +0 -0
- /package/{src → docs/angular-2/vendor/angular-infinity-charts/src}/InfinityChartService.js.map +0 -0
- /package/{src → docs/angular-2/vendor/angular-infinity-charts/src}/public_api.d.ts +0 -0
- /package/{src → docs/angular-2/vendor/angular-infinity-charts/src}/public_api.js +0 -0
- /package/{src → docs/angular-2/vendor/angular-infinity-charts/src}/public_api.js.map +0 -0
- /package/{src → docs/angular-2/vendor/angular-infinity-charts/src}/types.d.ts +0 -0
- /package/{src → docs/angular-2/vendor/angular-infinity-charts/src}/types.js +0 -0
- /package/{src → docs/angular-2/vendor/angular-infinity-charts/src}/types.js.map +0 -0
- /package/{vendor → docs/angular-2/vendor}/infinity-charts/index.js +0 -0
package/dist/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Alexandro Marques
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/dist/README.md
ADDED
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
# @revivejs/angular-loading
|
|
2
|
+
|
|
3
|
+
> A maintained Angular wrapper for **@revivejs/loading** with a declarative component API, a host directive for overlays and inline states, and a service for fullscreen or programmatic loaders.
|
|
4
|
+
|
|
5
|
+
[](https://www.npmjs.com/package/@revivejs/angular-loading)
|
|
6
|
+
[](https://www.npmjs.com/package/@revivejs/angular-loading)
|
|
7
|
+
[](https://github.com/alexandroit/angular-loading/blob/main/LICENSE)
|
|
8
|
+
[](https://angular.dev)
|
|
9
|
+
[](https://www.typescriptlang.org)
|
|
10
|
+
|
|
11
|
+
**[Documentation & Live Demos](https://alexandroit.github.io/angular-loading/)** | **[npm](https://www.npmjs.com/package/@revivejs/angular-loading)** | **[Issues](https://github.com/alexandroit/angular-loading/issues)** | **[Repository](https://github.com/alexandroit/angular-loading)**
|
|
12
|
+
|
|
13
|
+
**Latest version:** `21.0.0`
|
|
14
|
+
|
|
15
|
+
## Why this library?
|
|
16
|
+
|
|
17
|
+
`@revivejs/angular-loading` brings the full ReviveJS loading toolkit into Angular apps without forcing a framework-specific visual system.
|
|
18
|
+
|
|
19
|
+
It gives Angular teams three practical integration paths:
|
|
20
|
+
|
|
21
|
+
- `<revive-loading>` when the loader itself is the primary thing being rendered
|
|
22
|
+
- `[reviveLoading]` when an existing card, table, button, modal, or section should become busy
|
|
23
|
+
- `LoadingService` when the loading state is fullscreen, global, or fully programmatic
|
|
24
|
+
|
|
25
|
+
The wrapper stays intentionally thin so the real power continues to live in the core package:
|
|
26
|
+
|
|
27
|
+
- polished variants from `@revivejs/loading`
|
|
28
|
+
- delay and `minVisible` anti-flicker behavior
|
|
29
|
+
- inline, overlay, container, and fullscreen modes
|
|
30
|
+
- accessibility defaults and visible labels
|
|
31
|
+
- a versioned docs history from `angular-2` through `angular-21`
|
|
32
|
+
|
|
33
|
+
## Features
|
|
34
|
+
|
|
35
|
+
| Feature | Supported |
|
|
36
|
+
| :--- | :---: |
|
|
37
|
+
| Angular wrapper component | ✅ |
|
|
38
|
+
| Angular directive for host overlays and inline states | ✅ |
|
|
39
|
+
| Angular service for imperative loaders | ✅ |
|
|
40
|
+
| Access to the same loader variants as the core package | ✅ |
|
|
41
|
+
| Delay and minimum visible duration support | ✅ |
|
|
42
|
+
| Fullscreen, card, table, modal, upload, and button patterns | ✅ |
|
|
43
|
+
| Rich versioned docs history | ✅ |
|
|
44
|
+
| Angular 2 historical docs line | ✅ |
|
|
45
|
+
| Angular 4 through Angular 21 docs lines | ✅ |
|
|
46
|
+
|
|
47
|
+
## Table of Contents
|
|
48
|
+
|
|
49
|
+
1. [Angular Version Compatibility](#angular-version-compatibility)
|
|
50
|
+
2. [Installation](#installation)
|
|
51
|
+
3. [Setup](#setup)
|
|
52
|
+
4. [Usage Patterns](#usage-patterns)
|
|
53
|
+
5. [API Overview](#api-overview)
|
|
54
|
+
6. [Run Locally](#run-locally)
|
|
55
|
+
7. [License](#license)
|
|
56
|
+
|
|
57
|
+
## Angular Version Compatibility
|
|
58
|
+
|
|
59
|
+
| Package version | Angular version | TypeScript version | Demo link |
|
|
60
|
+
| :---: | :---: | :---: | :--- |
|
|
61
|
+
| **21.0.0** | **21.2.x** | **5.9.x** | [Angular 21 demo](https://alexandroit.github.io/angular-loading/angular-21/) |
|
|
62
|
+
| **20.0.0** | **20.3.x** | **5.9.x** | [Angular 20 demo](https://alexandroit.github.io/angular-loading/angular-20/) |
|
|
63
|
+
| **19.0.0** | **19.2.x** | **5.8.x** | [Angular 19 demo](https://alexandroit.github.io/angular-loading/angular-19/) |
|
|
64
|
+
| **18.0.0** | **18.2.x** | **5.5.x** | [Angular 18 demo](https://alexandroit.github.io/angular-loading/angular-18/) |
|
|
65
|
+
| **17.0.0** | **17.3.x** | **5.4.x** | [Angular 17 demo](https://alexandroit.github.io/angular-loading/angular-17/) |
|
|
66
|
+
| **16.0.0** | **16.2.x** | **5.1.x** | [Angular 16 demo](https://alexandroit.github.io/angular-loading/angular-16/) |
|
|
67
|
+
| **15.0.0** | **15.2.x** | **4.9.x** | [Angular 15 demo](https://alexandroit.github.io/angular-loading/angular-15/) |
|
|
68
|
+
| **14.0.0** | **14.3.x** | **4.8.x** | [Angular 14 demo](https://alexandroit.github.io/angular-loading/angular-14/) |
|
|
69
|
+
| **13.0.0** | **13.4.x** | **4.6.x** | [Angular 13 demo](https://alexandroit.github.io/angular-loading/angular-13/) |
|
|
70
|
+
| **12.0.0** | **12.2.x** | **4.3.x** | [Angular 12 demo](https://alexandroit.github.io/angular-loading/angular-12/) |
|
|
71
|
+
| **11.0.0** | **11.2.x** | **4.1.x** | [Angular 11 demo](https://alexandroit.github.io/angular-loading/angular-11/) |
|
|
72
|
+
| **10.0.0** | **10.2.x** | **3.9.x** | [Angular 10 demo](https://alexandroit.github.io/angular-loading/angular-10/) |
|
|
73
|
+
| **9.0.0** | **9.1.x** | **3.8.x** | [Angular 9 demo](https://alexandroit.github.io/angular-loading/angular-9/) |
|
|
74
|
+
| **8.0.0** | **8.2.x** | **3.5.x** | [Angular 8 demo](https://alexandroit.github.io/angular-loading/angular-8/) |
|
|
75
|
+
| **7.0.0** | **7.2.x** | **3.2.x** | [Angular 7 demo](https://alexandroit.github.io/angular-loading/angular-7/) |
|
|
76
|
+
| **6.0.0** | **6.1.x** | **2.7.x** | [Angular 6 demo](https://alexandroit.github.io/angular-loading/angular-6/) |
|
|
77
|
+
| **5.0.0** | **5.2.x** | **2.6.x** | [Angular 5 demo](https://alexandroit.github.io/angular-loading/angular-5/) |
|
|
78
|
+
| **4.0.0** | **4.4.x** | **2.4.x** | [Angular 4 demo](https://alexandroit.github.io/angular-loading/angular-4/) |
|
|
79
|
+
| **2.0.0** | **2.4.x** | **2.4.x** | [Angular 2 demo](https://alexandroit.github.io/angular-loading/angular-2/) |
|
|
80
|
+
|
|
81
|
+
## Installation
|
|
82
|
+
|
|
83
|
+
```bash
|
|
84
|
+
npm install @revivejs/angular-loading
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
## Setup
|
|
88
|
+
|
|
89
|
+
### 1. Import the module
|
|
90
|
+
|
|
91
|
+
```ts
|
|
92
|
+
import { BrowserModule } from '@angular/platform-browser';
|
|
93
|
+
import { NgModule } from '@angular/core';
|
|
94
|
+
import { LoadingModule } from '@revivejs/angular-loading';
|
|
95
|
+
|
|
96
|
+
import { AppComponent } from './app.component';
|
|
97
|
+
|
|
98
|
+
@NgModule({
|
|
99
|
+
declarations: [AppComponent],
|
|
100
|
+
imports: [
|
|
101
|
+
BrowserModule,
|
|
102
|
+
LoadingModule.forRoot()
|
|
103
|
+
],
|
|
104
|
+
bootstrap: [AppComponent]
|
|
105
|
+
})
|
|
106
|
+
export class AppModule {}
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
### 2. Use the component directly
|
|
110
|
+
|
|
111
|
+
```html
|
|
112
|
+
<revive-loading
|
|
113
|
+
[visible]="true"
|
|
114
|
+
[options]="{
|
|
115
|
+
variant: 'orbit',
|
|
116
|
+
size: 56,
|
|
117
|
+
centered: true,
|
|
118
|
+
label: 'Loading preview'
|
|
119
|
+
}">
|
|
120
|
+
</revive-loading>
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
### 3. Or turn an existing host into a loading surface
|
|
124
|
+
|
|
125
|
+
```html
|
|
126
|
+
<div
|
|
127
|
+
[reviveLoading]="isLoading"
|
|
128
|
+
[loadingOptions]="{
|
|
129
|
+
overlay: true,
|
|
130
|
+
centered: true,
|
|
131
|
+
variant: 'glass-spinner',
|
|
132
|
+
label: 'Loading sales card'
|
|
133
|
+
}">
|
|
134
|
+
<h3>Revenue</h3>
|
|
135
|
+
<p>$128,400</p>
|
|
136
|
+
</div>
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
## Usage Patterns
|
|
140
|
+
|
|
141
|
+
### Component
|
|
142
|
+
|
|
143
|
+
Use `<revive-loading>` when the loader itself is the thing being rendered.
|
|
144
|
+
|
|
145
|
+
### Directive
|
|
146
|
+
|
|
147
|
+
Use `[reviveLoading]` for:
|
|
148
|
+
|
|
149
|
+
- cards
|
|
150
|
+
- tables
|
|
151
|
+
- dashboards
|
|
152
|
+
- buttons
|
|
153
|
+
- modal bodies
|
|
154
|
+
- upload zones
|
|
155
|
+
|
|
156
|
+
### Service
|
|
157
|
+
|
|
158
|
+
Use `LoadingService` when you need to create a loader from code:
|
|
159
|
+
|
|
160
|
+
```ts
|
|
161
|
+
import { Component } from '@angular/core';
|
|
162
|
+
import { LoadingService } from '@revivejs/angular-loading';
|
|
163
|
+
|
|
164
|
+
@Component({
|
|
165
|
+
selector: 'app-root',
|
|
166
|
+
template: `<button (click)="showLoader()">Show fullscreen loader</button>`
|
|
167
|
+
})
|
|
168
|
+
export class AppComponent {
|
|
169
|
+
constructor(private loadingService: LoadingService) {}
|
|
170
|
+
|
|
171
|
+
showLoader(): void {
|
|
172
|
+
const loader = this.loadingService.create(document.body, {
|
|
173
|
+
fullscreen: true,
|
|
174
|
+
centered: true,
|
|
175
|
+
variant: 'galaxy',
|
|
176
|
+
label: 'Loading workspace'
|
|
177
|
+
});
|
|
178
|
+
|
|
179
|
+
loader.show();
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
## API Overview
|
|
185
|
+
|
|
186
|
+
### `LoadingModule.forRoot()`
|
|
187
|
+
|
|
188
|
+
Registers the wrapper services for the current Angular app.
|
|
189
|
+
|
|
190
|
+
### `LoadingComponent`
|
|
191
|
+
|
|
192
|
+
Inputs:
|
|
193
|
+
|
|
194
|
+
- `visible`
|
|
195
|
+
- `options`
|
|
196
|
+
|
|
197
|
+
Methods:
|
|
198
|
+
|
|
199
|
+
- `show()`
|
|
200
|
+
- `hide()`
|
|
201
|
+
- `getInstance()`
|
|
202
|
+
|
|
203
|
+
### `LoadingDirective`
|
|
204
|
+
|
|
205
|
+
Inputs:
|
|
206
|
+
|
|
207
|
+
- `reviveLoading`
|
|
208
|
+
- `loadingOptions`
|
|
209
|
+
|
|
210
|
+
Outputs:
|
|
211
|
+
|
|
212
|
+
- `create`
|
|
213
|
+
- `shown`
|
|
214
|
+
- `hidden`
|
|
215
|
+
- `updated`
|
|
216
|
+
- `destroyed`
|
|
217
|
+
|
|
218
|
+
### `LoadingService`
|
|
219
|
+
|
|
220
|
+
Methods:
|
|
221
|
+
|
|
222
|
+
- `create(target, options)`
|
|
223
|
+
- `show(target, options)`
|
|
224
|
+
- `mount(target, options)`
|
|
225
|
+
- `hide(instance)`
|
|
226
|
+
|
|
227
|
+
## Run Locally
|
|
228
|
+
|
|
229
|
+
```bash
|
|
230
|
+
npm install
|
|
231
|
+
npm run docs:generate
|
|
232
|
+
npm run build:lib
|
|
233
|
+
npm run build:docs:angular-2
|
|
234
|
+
npm run docs:install:angular-21
|
|
235
|
+
npm run build:docs:angular-21
|
|
236
|
+
node scripts/write-docs-root.js
|
|
237
|
+
npm run serve:docs
|
|
238
|
+
```
|
|
239
|
+
|
|
240
|
+
Then open:
|
|
241
|
+
|
|
242
|
+
```text
|
|
243
|
+
http://127.0.0.1:8081/angular-21/
|
|
244
|
+
```
|
|
245
|
+
|
|
246
|
+
Angular 2 remains available at:
|
|
247
|
+
|
|
248
|
+
```text
|
|
249
|
+
http://127.0.0.1:8081/angular-2/
|
|
250
|
+
```
|
|
251
|
+
|
|
252
|
+
## License
|
|
253
|
+
|
|
254
|
+
MIT
|