@xplortech/apollo-data 0.0.3-draft.64d0fa1
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/LICENSE +21 -0
- package/README.md +112 -0
- package/dist/apollo-data/apollo-data.esm.js +1 -0
- package/dist/apollo-data/index.esm.js +1 -0
- package/dist/apollo-data/p-Bb2nY-Tf.js +2 -0
- package/dist/apollo-data/p-DQuL1Twl.js +1 -0
- package/dist/apollo-data/p-e6584598.entry.js +11 -0
- package/dist/cjs/apollo-data-bar-chart_2.cjs.entry.js +68368 -0
- package/dist/cjs/apollo-data.cjs.js +25 -0
- package/dist/cjs/app-globals-V2Kpy_OQ.js +5 -0
- package/dist/cjs/index-Cl7HgRm0.js +1198 -0
- package/dist/cjs/index.cjs.js +7 -0
- package/dist/cjs/loader.cjs.js +13 -0
- package/dist/collection/apollo-data-base.js +38 -0
- package/dist/collection/collection-manifest.json +13 -0
- package/dist/collection/components/apollo-data-bar/apollo-data-bar.js +367 -0
- package/dist/collection/components/apollo-data-donut/apollo-data-donut.js +479 -0
- package/dist/collection/examples/apollo-data-bar.examples.js +160 -0
- package/dist/collection/examples/apollo-data-donut.examples.js +100 -0
- package/dist/collection/examples/index.js +2 -0
- package/dist/collection/index.js +10 -0
- package/dist/collection/utils/code-generator.js +240 -0
- package/dist/collection/utils/constants.js +2 -0
- package/dist/collection/utils/utils.js +3 -0
- package/dist/components/apollo-data-bar-chart.d.ts +11 -0
- package/dist/components/apollo-data-bar-chart.js +1 -0
- package/dist/components/apollo-data-donut-chart.d.ts +11 -0
- package/dist/components/apollo-data-donut-chart.js +1 -0
- package/dist/components/index.d.ts +35 -0
- package/dist/components/index.js +1 -0
- package/dist/components/p-7XF5Cax8.js +11 -0
- package/dist/components/p-Dws5s-Xe.js +1 -0
- package/dist/esm/apollo-data-bar-chart_2.entry.js +68365 -0
- package/dist/esm/apollo-data.js +21 -0
- package/dist/esm/app-globals-DQuL1Twl.js +3 -0
- package/dist/esm/index-Bb2nY-Tf.js +1190 -0
- package/dist/esm/index.js +5 -0
- package/dist/esm/loader.js +11 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/types/apollo-data-base.d.ts +7 -0
- package/dist/types/components/apollo-data-bar/apollo-data-bar.d.ts +298 -0
- package/dist/types/components/apollo-data-donut/apollo-data-donut.d.ts +533 -0
- package/dist/types/components.d.ts +102 -0
- package/dist/types/examples/apollo-data-bar.examples.d.ts +12 -0
- package/dist/types/examples/apollo-data-donut.examples.d.ts +11 -0
- package/dist/types/examples/index.d.ts +2 -0
- package/dist/types/index.d.ts +11 -0
- package/dist/types/stencil-public-runtime.d.ts +1839 -0
- package/dist/types/utils/code-generator.d.ts +12 -0
- package/dist/types/utils/constants.d.ts +2 -0
- package/dist/types/utils/utils.d.ts +1 -0
- package/loader/cdn.js +1 -0
- package/loader/index.cjs.js +1 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +1 -0
- package/loader/index.js +2 -0
- package/package.json +92 -0
- package/src/examples/apollo-data-bar.examples.ts +172 -0
- package/src/examples/apollo-data-donut.examples.ts +118 -0
- package/src/examples/index.ts +2 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { b as bootstrapLazy } from './index-Bb2nY-Tf.js';
|
|
2
|
+
export { s as setNonce } from './index-Bb2nY-Tf.js';
|
|
3
|
+
import { g as globalScripts } from './app-globals-DQuL1Twl.js';
|
|
4
|
+
|
|
5
|
+
const defineCustomElements = async (win, options) => {
|
|
6
|
+
if (typeof window === 'undefined') return undefined;
|
|
7
|
+
await globalScripts();
|
|
8
|
+
return bootstrapLazy([["apollo-data-bar-chart_2",[[513,"apollo-data-bar-chart",{"adData":[1,"ad-data"],"adSpec":[1,"ad-spec"]}],[513,"apollo-data-donut-chart",{"adData":[1,"ad-data"],"adSpec":[1,"ad-spec"]}]]]], options);
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export { defineCustomElements };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('./cjs/index.cjs.js');
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './esm/index.js';
|
|
@@ -0,0 +1,298 @@
|
|
|
1
|
+
import { ComponentInterface } from '../../stencil-public-runtime';
|
|
2
|
+
import { ApolloBase } from '../../apollo-data-base';
|
|
3
|
+
export interface BarDataItem {
|
|
4
|
+
label: string;
|
|
5
|
+
category: string;
|
|
6
|
+
value: number;
|
|
7
|
+
periodId: string;
|
|
8
|
+
}
|
|
9
|
+
export interface BarSpec {
|
|
10
|
+
colorSet?: string[];
|
|
11
|
+
tooltipPrefix?: string;
|
|
12
|
+
currencySymbol?: string;
|
|
13
|
+
yAxisTitle?: string;
|
|
14
|
+
xAxisTitle?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare class ApolloDataBarChart extends ApolloBase<BarDataItem[], BarSpec> implements ComponentInterface {
|
|
17
|
+
el: HTMLElement;
|
|
18
|
+
adData: string | BarDataItem[];
|
|
19
|
+
adSpec: string | BarSpec;
|
|
20
|
+
private static tooltipStylesInjected;
|
|
21
|
+
componentDidLoad(): void;
|
|
22
|
+
componentDidRender(): Promise<void>;
|
|
23
|
+
private injectTooltipStyles;
|
|
24
|
+
protected getViewData(data: BarDataItem[], spec?: BarSpec): Promise<{
|
|
25
|
+
$schema: string;
|
|
26
|
+
config: {
|
|
27
|
+
text: {
|
|
28
|
+
fill: string;
|
|
29
|
+
font: string;
|
|
30
|
+
labelFontSize: number;
|
|
31
|
+
labelFontWeight: number;
|
|
32
|
+
};
|
|
33
|
+
axis: {
|
|
34
|
+
labelColor: string;
|
|
35
|
+
titleColor: string;
|
|
36
|
+
labelFont: string;
|
|
37
|
+
titleFont: string;
|
|
38
|
+
titleFontWeight: number;
|
|
39
|
+
};
|
|
40
|
+
legend: {
|
|
41
|
+
labelColor: string;
|
|
42
|
+
titleColor: string;
|
|
43
|
+
labelFont: string;
|
|
44
|
+
titleFont: string;
|
|
45
|
+
labelFontSize: number;
|
|
46
|
+
labelLimit: number;
|
|
47
|
+
};
|
|
48
|
+
title: {
|
|
49
|
+
color: string;
|
|
50
|
+
font: string;
|
|
51
|
+
labelFontSize: number;
|
|
52
|
+
labelFontWeight: number;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
height: number;
|
|
56
|
+
autosize: {
|
|
57
|
+
type: string;
|
|
58
|
+
contains: string;
|
|
59
|
+
resize: boolean;
|
|
60
|
+
};
|
|
61
|
+
signals: ({
|
|
62
|
+
name: string;
|
|
63
|
+
update: string;
|
|
64
|
+
value?: undefined;
|
|
65
|
+
on?: undefined;
|
|
66
|
+
} | {
|
|
67
|
+
name: string;
|
|
68
|
+
value: any;
|
|
69
|
+
on: {
|
|
70
|
+
events: string;
|
|
71
|
+
update: string;
|
|
72
|
+
}[];
|
|
73
|
+
update?: undefined;
|
|
74
|
+
})[];
|
|
75
|
+
width: {
|
|
76
|
+
signal: string;
|
|
77
|
+
};
|
|
78
|
+
data: ({
|
|
79
|
+
name: string;
|
|
80
|
+
values: BarDataItem[];
|
|
81
|
+
source?: undefined;
|
|
82
|
+
transform?: undefined;
|
|
83
|
+
} | {
|
|
84
|
+
name: string;
|
|
85
|
+
source: string;
|
|
86
|
+
transform: {
|
|
87
|
+
type: string;
|
|
88
|
+
groupby: string[];
|
|
89
|
+
fields: string[];
|
|
90
|
+
ops: string[];
|
|
91
|
+
as: string[];
|
|
92
|
+
}[];
|
|
93
|
+
values?: undefined;
|
|
94
|
+
} | {
|
|
95
|
+
name: string;
|
|
96
|
+
source: string;
|
|
97
|
+
transform: ({
|
|
98
|
+
type: string;
|
|
99
|
+
from: string;
|
|
100
|
+
key: string;
|
|
101
|
+
fields: string[];
|
|
102
|
+
values: string[];
|
|
103
|
+
as: string[];
|
|
104
|
+
groupby?: undefined;
|
|
105
|
+
sort?: undefined;
|
|
106
|
+
field?: undefined;
|
|
107
|
+
expr?: undefined;
|
|
108
|
+
} | {
|
|
109
|
+
type: string;
|
|
110
|
+
groupby: string[];
|
|
111
|
+
sort: {
|
|
112
|
+
field: string;
|
|
113
|
+
};
|
|
114
|
+
field: string;
|
|
115
|
+
from?: undefined;
|
|
116
|
+
key?: undefined;
|
|
117
|
+
fields?: undefined;
|
|
118
|
+
values?: undefined;
|
|
119
|
+
as?: undefined;
|
|
120
|
+
expr?: undefined;
|
|
121
|
+
} | {
|
|
122
|
+
type: string;
|
|
123
|
+
as: string;
|
|
124
|
+
expr: string;
|
|
125
|
+
from?: undefined;
|
|
126
|
+
key?: undefined;
|
|
127
|
+
fields?: undefined;
|
|
128
|
+
values?: undefined;
|
|
129
|
+
groupby?: undefined;
|
|
130
|
+
sort?: undefined;
|
|
131
|
+
field?: undefined;
|
|
132
|
+
})[];
|
|
133
|
+
values?: undefined;
|
|
134
|
+
} | {
|
|
135
|
+
name: string;
|
|
136
|
+
source: string;
|
|
137
|
+
transform: {
|
|
138
|
+
type: string;
|
|
139
|
+
groupby: string[];
|
|
140
|
+
}[];
|
|
141
|
+
values?: undefined;
|
|
142
|
+
})[];
|
|
143
|
+
scales: ({
|
|
144
|
+
name: string;
|
|
145
|
+
type: string;
|
|
146
|
+
domain: {
|
|
147
|
+
data: string;
|
|
148
|
+
field: string;
|
|
149
|
+
};
|
|
150
|
+
range: string;
|
|
151
|
+
paddingInner: number;
|
|
152
|
+
paddingOuter: number;
|
|
153
|
+
nice?: undefined;
|
|
154
|
+
zero?: undefined;
|
|
155
|
+
} | {
|
|
156
|
+
name: string;
|
|
157
|
+
type: string;
|
|
158
|
+
domain: {
|
|
159
|
+
data: string;
|
|
160
|
+
field: string;
|
|
161
|
+
};
|
|
162
|
+
range: {
|
|
163
|
+
data: string;
|
|
164
|
+
field: string;
|
|
165
|
+
};
|
|
166
|
+
paddingInner?: undefined;
|
|
167
|
+
paddingOuter?: undefined;
|
|
168
|
+
nice?: undefined;
|
|
169
|
+
zero?: undefined;
|
|
170
|
+
} | {
|
|
171
|
+
name: string;
|
|
172
|
+
type: string;
|
|
173
|
+
domain: {
|
|
174
|
+
data: string;
|
|
175
|
+
field: string;
|
|
176
|
+
};
|
|
177
|
+
nice: boolean;
|
|
178
|
+
zero: boolean;
|
|
179
|
+
range: string;
|
|
180
|
+
paddingInner?: undefined;
|
|
181
|
+
paddingOuter?: undefined;
|
|
182
|
+
} | {
|
|
183
|
+
name: string;
|
|
184
|
+
type: string;
|
|
185
|
+
domain: string[];
|
|
186
|
+
range: string[];
|
|
187
|
+
paddingInner?: undefined;
|
|
188
|
+
paddingOuter?: undefined;
|
|
189
|
+
nice?: undefined;
|
|
190
|
+
zero?: undefined;
|
|
191
|
+
})[];
|
|
192
|
+
axes: ({
|
|
193
|
+
orient: string;
|
|
194
|
+
scale: string;
|
|
195
|
+
title: string;
|
|
196
|
+
labelPadding: number;
|
|
197
|
+
titlePadding: number;
|
|
198
|
+
labelAngle: number;
|
|
199
|
+
labelAlign: string;
|
|
200
|
+
labelBaseline: string;
|
|
201
|
+
tickSize: number;
|
|
202
|
+
labelFontSize: number;
|
|
203
|
+
titleFontSize: number;
|
|
204
|
+
ticks: boolean;
|
|
205
|
+
domain: boolean;
|
|
206
|
+
encode: {
|
|
207
|
+
labels: {
|
|
208
|
+
update: {
|
|
209
|
+
text: {
|
|
210
|
+
signal: string;
|
|
211
|
+
};
|
|
212
|
+
};
|
|
213
|
+
};
|
|
214
|
+
};
|
|
215
|
+
format?: undefined;
|
|
216
|
+
grid?: undefined;
|
|
217
|
+
tickCount?: undefined;
|
|
218
|
+
tickBand?: undefined;
|
|
219
|
+
} | {
|
|
220
|
+
orient: string;
|
|
221
|
+
scale: string;
|
|
222
|
+
title: string;
|
|
223
|
+
format: string;
|
|
224
|
+
grid: boolean;
|
|
225
|
+
tickCount: number;
|
|
226
|
+
labelFontSize: number;
|
|
227
|
+
titleFontSize: number;
|
|
228
|
+
ticks: boolean;
|
|
229
|
+
domain: boolean;
|
|
230
|
+
tickBand: string;
|
|
231
|
+
labelPadding: number;
|
|
232
|
+
titlePadding?: undefined;
|
|
233
|
+
labelAngle?: undefined;
|
|
234
|
+
labelAlign?: undefined;
|
|
235
|
+
labelBaseline?: undefined;
|
|
236
|
+
tickSize?: undefined;
|
|
237
|
+
encode?: undefined;
|
|
238
|
+
})[];
|
|
239
|
+
legends: {
|
|
240
|
+
fill: string;
|
|
241
|
+
orient: string;
|
|
242
|
+
direction: string;
|
|
243
|
+
columns: {
|
|
244
|
+
signal: string;
|
|
245
|
+
};
|
|
246
|
+
title: any;
|
|
247
|
+
symbolType: string;
|
|
248
|
+
rowPadding: number;
|
|
249
|
+
symbolOffset: number;
|
|
250
|
+
symbolSize: number;
|
|
251
|
+
labelOffset: number;
|
|
252
|
+
labelLimit: number;
|
|
253
|
+
}[];
|
|
254
|
+
marks: {
|
|
255
|
+
type: string;
|
|
256
|
+
from: {
|
|
257
|
+
data: string;
|
|
258
|
+
};
|
|
259
|
+
encode: {
|
|
260
|
+
enter: {
|
|
261
|
+
x: {
|
|
262
|
+
scale: string;
|
|
263
|
+
field: string;
|
|
264
|
+
};
|
|
265
|
+
width: {
|
|
266
|
+
scale: string;
|
|
267
|
+
band: number;
|
|
268
|
+
};
|
|
269
|
+
y: {
|
|
270
|
+
scale: string;
|
|
271
|
+
field: string;
|
|
272
|
+
};
|
|
273
|
+
y2: {
|
|
274
|
+
scale: string;
|
|
275
|
+
field: string;
|
|
276
|
+
};
|
|
277
|
+
fill: {
|
|
278
|
+
scale: string;
|
|
279
|
+
field: string;
|
|
280
|
+
};
|
|
281
|
+
tooltip: {
|
|
282
|
+
signal: string;
|
|
283
|
+
};
|
|
284
|
+
};
|
|
285
|
+
update: {
|
|
286
|
+
opacity: ({
|
|
287
|
+
test: string;
|
|
288
|
+
value: number;
|
|
289
|
+
} | {
|
|
290
|
+
value: number;
|
|
291
|
+
test?: undefined;
|
|
292
|
+
})[];
|
|
293
|
+
};
|
|
294
|
+
};
|
|
295
|
+
}[];
|
|
296
|
+
}>;
|
|
297
|
+
render(): any;
|
|
298
|
+
}
|