@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
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: block;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.panel {
|
|
6
|
+
padding: 24px;
|
|
7
|
+
border: 1px solid rgba(15, 23, 42, 0.08);
|
|
8
|
+
border-radius: 28px;
|
|
9
|
+
background: rgba(255, 255, 255, 0.92);
|
|
10
|
+
box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.panel-header {
|
|
14
|
+
display: flex;
|
|
15
|
+
align-items: start;
|
|
16
|
+
justify-content: space-between;
|
|
17
|
+
gap: 14px;
|
|
18
|
+
margin-bottom: 18px;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.panel-header h2 {
|
|
22
|
+
margin: 0 0 8px;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.panel-header p {
|
|
26
|
+
margin: 0;
|
|
27
|
+
color: #475569;
|
|
28
|
+
line-height: 1.7;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
button {
|
|
32
|
+
display: inline-flex;
|
|
33
|
+
align-items: center;
|
|
34
|
+
justify-content: center;
|
|
35
|
+
gap: 8px;
|
|
36
|
+
padding: 11px 16px;
|
|
37
|
+
border-radius: 999px;
|
|
38
|
+
border: 1px solid transparent;
|
|
39
|
+
cursor: pointer;
|
|
40
|
+
font: inherit;
|
|
41
|
+
background: linear-gradient(135deg, #38bdf8, #2563eb);
|
|
42
|
+
color: #ffffff;
|
|
43
|
+
font-weight: 700;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.ghost-button {
|
|
47
|
+
background: rgba(255, 255, 255, 0.92);
|
|
48
|
+
color: #0f172a;
|
|
49
|
+
border-color: rgba(15, 23, 42, 0.08);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.code-block,
|
|
53
|
+
.code-preview {
|
|
54
|
+
overflow: auto;
|
|
55
|
+
padding: 14px 16px;
|
|
56
|
+
border-radius: 18px;
|
|
57
|
+
background: #0f172a;
|
|
58
|
+
color: #dbeafe;
|
|
59
|
+
line-height: 1.6;
|
|
60
|
+
font-family: "SFMono-Regular", Consolas, monospace;
|
|
61
|
+
font-size: 13px;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.playground-shell {
|
|
65
|
+
display: grid;
|
|
66
|
+
grid-template-columns: minmax(300px, 340px) minmax(0, 1fr);
|
|
67
|
+
gap: 20px;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.playground-controls,
|
|
71
|
+
.playground-preview {
|
|
72
|
+
padding: 20px;
|
|
73
|
+
border-radius: 22px;
|
|
74
|
+
border: 1px solid rgba(15, 23, 42, 0.08);
|
|
75
|
+
background: #f8fbff;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.playground-controls {
|
|
79
|
+
display: grid;
|
|
80
|
+
align-content: start;
|
|
81
|
+
gap: 16px;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.field {
|
|
85
|
+
display: grid;
|
|
86
|
+
gap: 8px;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.field label,
|
|
90
|
+
.field span {
|
|
91
|
+
color: #475569;
|
|
92
|
+
font-size: 13px;
|
|
93
|
+
font-weight: 600;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.field input,
|
|
97
|
+
.field select {
|
|
98
|
+
width: 100%;
|
|
99
|
+
min-height: 42px;
|
|
100
|
+
padding: 0 12px;
|
|
101
|
+
border-radius: 14px;
|
|
102
|
+
border: 1px solid rgba(15, 23, 42, 0.1);
|
|
103
|
+
background: rgba(255, 255, 255, 0.98);
|
|
104
|
+
color: #0f172a;
|
|
105
|
+
font: inherit;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.toggle-row {
|
|
109
|
+
display: flex;
|
|
110
|
+
flex-wrap: wrap;
|
|
111
|
+
gap: 10px 14px;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.toggle-row label {
|
|
115
|
+
display: inline-flex;
|
|
116
|
+
align-items: center;
|
|
117
|
+
gap: 8px;
|
|
118
|
+
color: #334155;
|
|
119
|
+
font-size: 13px;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.playground-actions {
|
|
123
|
+
display: flex;
|
|
124
|
+
flex-wrap: wrap;
|
|
125
|
+
gap: 12px;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.playground-preview-tabs {
|
|
129
|
+
display: inline-flex;
|
|
130
|
+
flex-wrap: wrap;
|
|
131
|
+
gap: 8px;
|
|
132
|
+
margin-bottom: 12px;
|
|
133
|
+
padding: 6px;
|
|
134
|
+
border: 1px solid rgba(15, 23, 42, 0.08);
|
|
135
|
+
border-radius: 999px;
|
|
136
|
+
background: rgba(255, 255, 255, 0.9);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.playground-preview-tab {
|
|
140
|
+
border: 0;
|
|
141
|
+
border-radius: 999px;
|
|
142
|
+
background: transparent;
|
|
143
|
+
color: #475569;
|
|
144
|
+
padding: 9px 14px;
|
|
145
|
+
cursor: pointer;
|
|
146
|
+
transition: 180ms ease;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.playground-preview-tab.is-active {
|
|
150
|
+
background: rgba(37, 99, 235, 0.14);
|
|
151
|
+
color: #0f172a;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.playground-description {
|
|
155
|
+
margin: 0 0 14px;
|
|
156
|
+
color: #475569;
|
|
157
|
+
line-height: 1.7;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.playground-stage {
|
|
161
|
+
min-height: 440px;
|
|
162
|
+
margin-bottom: 18px;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.playground-surface,
|
|
166
|
+
.playground-chart-host,
|
|
167
|
+
.playground-chart-slot {
|
|
168
|
+
display: block;
|
|
169
|
+
width: 100%;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.playground-surface {
|
|
173
|
+
padding: 18px;
|
|
174
|
+
border-radius: 20px;
|
|
175
|
+
border: 1px solid rgba(15, 23, 42, 0.08);
|
|
176
|
+
background: rgba(255, 255, 255, 0.96);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.playground-chart-host,
|
|
180
|
+
.playground-chart-slot {
|
|
181
|
+
min-height: 220px;
|
|
182
|
+
border-radius: 20px;
|
|
183
|
+
overflow: hidden;
|
|
184
|
+
border: 1px solid rgba(15, 23, 42, 0.08);
|
|
185
|
+
background: rgba(255, 255, 255, 0.98);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.surface-head {
|
|
189
|
+
display: flex;
|
|
190
|
+
align-items: center;
|
|
191
|
+
justify-content: space-between;
|
|
192
|
+
gap: 12px;
|
|
193
|
+
margin-bottom: 14px;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.surface-head span {
|
|
197
|
+
color: #64748b;
|
|
198
|
+
font-size: 13px;
|
|
199
|
+
text-transform: uppercase;
|
|
200
|
+
letter-spacing: 0.08em;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.surface-head strong {
|
|
204
|
+
font-size: 14px;
|
|
205
|
+
color: #0f172a;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.surface-widget {
|
|
209
|
+
background: linear-gradient(180deg, #fffdf9, #f8fbff);
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.widget-card {
|
|
213
|
+
padding: 16px;
|
|
214
|
+
border-radius: 18px;
|
|
215
|
+
background: rgba(255, 255, 255, 0.98);
|
|
216
|
+
border: 1px solid rgba(15, 23, 42, 0.08);
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.widget-label {
|
|
220
|
+
margin-bottom: 12px;
|
|
221
|
+
color: #64748b;
|
|
222
|
+
font-size: 13px;
|
|
223
|
+
text-transform: uppercase;
|
|
224
|
+
letter-spacing: 0.08em;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.playground-chart-slot.is-compact {
|
|
228
|
+
min-height: 180px;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.surface-dark {
|
|
232
|
+
background: linear-gradient(180deg, #111b2f, #091323);
|
|
233
|
+
border-color: rgba(148, 163, 184, 0.16);
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.surface-head.is-dark strong,
|
|
237
|
+
.surface-head.is-dark span {
|
|
238
|
+
color: #e2e8f0;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.playground-chart-slot.is-dark {
|
|
242
|
+
border-color: rgba(148, 163, 184, 0.16);
|
|
243
|
+
background: rgba(9, 19, 35, 0.96);
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
@media (max-width: 1080px) {
|
|
247
|
+
.playground-shell {
|
|
248
|
+
grid-template-columns: 1fr;
|
|
249
|
+
}
|
|
250
|
+
}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
<article class="panel" id="playground">
|
|
2
|
+
<div class="panel-header">
|
|
3
|
+
<h2>Playground</h2>
|
|
4
|
+
<p>Try the Angular wrapper in a real chart surface and copy the generated snippet for your app.</p>
|
|
5
|
+
</div>
|
|
6
|
+
|
|
7
|
+
<div class="playground-shell">
|
|
8
|
+
<form class="playground-controls">
|
|
9
|
+
<div class="field">
|
|
10
|
+
<label for="playground-type">Chart type</label>
|
|
11
|
+
<select id="playground-type"
|
|
12
|
+
name="type"
|
|
13
|
+
[(ngModel)]="state.type"
|
|
14
|
+
(ngModelChange)="applyPlaygroundState(false)">
|
|
15
|
+
<option *ngFor="let chartType of chartTypes" [value]="chartType.value">{{ chartType.label }}</option>
|
|
16
|
+
</select>
|
|
17
|
+
</div>
|
|
18
|
+
|
|
19
|
+
<div class="field">
|
|
20
|
+
<label for="playground-theme">Theme</label>
|
|
21
|
+
<select id="playground-theme"
|
|
22
|
+
name="theme"
|
|
23
|
+
[(ngModel)]="state.theme"
|
|
24
|
+
(ngModelChange)="applyPlaygroundState(false)">
|
|
25
|
+
<option value="light">Light</option>
|
|
26
|
+
<option value="dark">Dark</option>
|
|
27
|
+
</select>
|
|
28
|
+
</div>
|
|
29
|
+
|
|
30
|
+
<div class="field">
|
|
31
|
+
<label for="playground-height">Height <span>{{ state.height }}px</span></label>
|
|
32
|
+
<input id="playground-height"
|
|
33
|
+
name="height"
|
|
34
|
+
type="range"
|
|
35
|
+
min="220"
|
|
36
|
+
max="420"
|
|
37
|
+
step="10"
|
|
38
|
+
[(ngModel)]="state.height"
|
|
39
|
+
(ngModelChange)="applyPlaygroundState(false)" />
|
|
40
|
+
</div>
|
|
41
|
+
|
|
42
|
+
<div class="toggle-row">
|
|
43
|
+
<label><input type="checkbox" name="showLegend" [(ngModel)]="state.showLegend" (ngModelChange)="applyPlaygroundState(false)" /> Show legend</label>
|
|
44
|
+
<label><input type="checkbox" name="showTooltip" [(ngModel)]="state.showTooltip" (ngModelChange)="applyPlaygroundState(false)" /> Show tooltip</label>
|
|
45
|
+
<label><input type="checkbox" name="showNumber" [(ngModel)]="state.showNumber" (ngModelChange)="applyPlaygroundState(false)" /> Show number</label>
|
|
46
|
+
<label><input type="checkbox" name="reducedMotion" [(ngModel)]="state.reducedMotion" (ngModelChange)="applyPlaygroundState(false)" /> Reduced motion</label>
|
|
47
|
+
</div>
|
|
48
|
+
|
|
49
|
+
<div class="playground-actions">
|
|
50
|
+
<button type="button" (click)="shuffleData()">Randomize data</button>
|
|
51
|
+
<button type="button" class="ghost-button" (click)="copyCode()">{{ copyButtonLabel }}</button>
|
|
52
|
+
</div>
|
|
53
|
+
</form>
|
|
54
|
+
|
|
55
|
+
<div class="playground-preview">
|
|
56
|
+
<div class="playground-preview-tabs" role="tablist" aria-label="Preview surfaces">
|
|
57
|
+
<button *ngFor="let surface of surfaces"
|
|
58
|
+
type="button"
|
|
59
|
+
role="tab"
|
|
60
|
+
class="playground-preview-tab"
|
|
61
|
+
[class.is-active]="isSurfaceActive(surface.id)"
|
|
62
|
+
[attr.aria-selected]="isSurfaceActive(surface.id)"
|
|
63
|
+
(click)="setSurface(surface.id)">
|
|
64
|
+
{{ surface.label }}
|
|
65
|
+
</button>
|
|
66
|
+
</div>
|
|
67
|
+
|
|
68
|
+
<p class="playground-description">{{ getActiveSurfaceDescription() }}</p>
|
|
69
|
+
|
|
70
|
+
<div class="playground-stage" [ngSwitch]="activeSurface">
|
|
71
|
+
<div *ngSwitchCase="'component'" class="playground-surface">
|
|
72
|
+
<revive-infinity-chart
|
|
73
|
+
class="playground-chart-host"
|
|
74
|
+
[style.display]="'block'"
|
|
75
|
+
[style.height.px]="state.height"
|
|
76
|
+
[config]="previewConfig"></revive-infinity-chart>
|
|
77
|
+
</div>
|
|
78
|
+
|
|
79
|
+
<div *ngSwitchCase="'dashboard'" class="playground-surface surface-dashboard">
|
|
80
|
+
<div class="surface-head">
|
|
81
|
+
<span>Quarterly overview</span>
|
|
82
|
+
<strong>Directive slot</strong>
|
|
83
|
+
</div>
|
|
84
|
+
<div class="playground-chart-slot"
|
|
85
|
+
[style.height.px]="state.height"
|
|
86
|
+
[reviveInfinityChart]="previewConfig"></div>
|
|
87
|
+
</div>
|
|
88
|
+
|
|
89
|
+
<div *ngSwitchCase="'widget'" class="playground-surface surface-widget">
|
|
90
|
+
<div class="widget-card">
|
|
91
|
+
<div class="widget-label">Compact widget</div>
|
|
92
|
+
<div class="playground-chart-slot is-compact"
|
|
93
|
+
[style.height.px]="state.height - 40"
|
|
94
|
+
[reviveInfinityChart]="previewConfig"></div>
|
|
95
|
+
</div>
|
|
96
|
+
</div>
|
|
97
|
+
|
|
98
|
+
<div *ngSwitchDefault class="playground-surface surface-dark">
|
|
99
|
+
<div class="surface-head is-dark">
|
|
100
|
+
<span>Analytics shell</span>
|
|
101
|
+
<strong>Dark chrome</strong>
|
|
102
|
+
</div>
|
|
103
|
+
<div class="playground-chart-slot is-dark"
|
|
104
|
+
[style.height.px]="state.height"
|
|
105
|
+
[reviveInfinityChart]="previewConfig"></div>
|
|
106
|
+
</div>
|
|
107
|
+
</div>
|
|
108
|
+
|
|
109
|
+
<pre class="code-block code-preview"><code>{{ generatedCode }}</code></pre>
|
|
110
|
+
</div>
|
|
111
|
+
</div>
|
|
112
|
+
</article>
|