@resolveio/client-lib-core 0.1.2 → 1.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/esm2020/public_api.mjs +1 -3
- package/fesm2015/resolveio-client-lib-core.mjs +1 -99
- package/fesm2015/resolveio-client-lib-core.mjs.map +1 -1
- package/fesm2020/resolveio-client-lib-core.mjs +1 -99
- package/fesm2020/resolveio-client-lib-core.mjs.map +1 -1
- package/package.json +1 -3
- package/public_api.d.ts +0 -2
- package/esm2020/lib/widgets/chartjs/chart.component.mjs +0 -86
- package/esm2020/lib/widgets/chartjs/chart.module.mjs +0 -17
- package/lib/widgets/chartjs/chart.component.d.ts +0 -22
- package/lib/widgets/chartjs/chart.module.d.ts +0 -8
|
@@ -29,7 +29,6 @@ import * as i5 from 'ngx-file-drop';
|
|
|
29
29
|
import { NgxFileDropModule } from 'ngx-file-drop';
|
|
30
30
|
import * as i6$1 from 'ngx-doc-viewer';
|
|
31
31
|
import { NgxDocViewerModule } from 'ngx-doc-viewer';
|
|
32
|
-
import { Chart } from '@resolveio/chartjs';
|
|
33
32
|
|
|
34
33
|
class CoreService {
|
|
35
34
|
// customHomePage = new BehaviorSubject(false);
|
|
@@ -7929,103 +7928,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImpor
|
|
|
7929
7928
|
}]
|
|
7930
7929
|
}] });
|
|
7931
7930
|
|
|
7932
|
-
class ChartComponent {
|
|
7933
|
-
constructor(elementRef, ngZone) {
|
|
7934
|
-
this.elementRef = elementRef;
|
|
7935
|
-
this.ngZone = ngZone;
|
|
7936
|
-
this.clickCanvas = new EventEmitter();
|
|
7937
|
-
this.clickDataset = new EventEmitter();
|
|
7938
|
-
this.clickElements = new EventEmitter();
|
|
7939
|
-
this.clickElement = new EventEmitter();
|
|
7940
|
-
}
|
|
7941
|
-
ngOnInit() {
|
|
7942
|
-
this.create();
|
|
7943
|
-
}
|
|
7944
|
-
ngOnChanges(changes) {
|
|
7945
|
-
if (this.chart) {
|
|
7946
|
-
if (changes['type'] || changes['options']) {
|
|
7947
|
-
this.create();
|
|
7948
|
-
}
|
|
7949
|
-
else if (changes['data']) {
|
|
7950
|
-
let currentValue = changes['data'].currentValue;
|
|
7951
|
-
['datasets', 'labels', 'xLabels', 'yLabels'].forEach(property => {
|
|
7952
|
-
this.chart.data[property] = currentValue[property];
|
|
7953
|
-
});
|
|
7954
|
-
this.chart.update();
|
|
7955
|
-
}
|
|
7956
|
-
}
|
|
7957
|
-
}
|
|
7958
|
-
create() {
|
|
7959
|
-
this.ngZone.runOutsideAngular(() => {
|
|
7960
|
-
if (this.canvas) {
|
|
7961
|
-
this.elementRef.nativeElement.removeChild(this.canvas);
|
|
7962
|
-
}
|
|
7963
|
-
this.canvas = document.createElement('canvas');
|
|
7964
|
-
this.elementRef.nativeElement.appendChild(this.canvas);
|
|
7965
|
-
this.chart = new Chart(this.canvas, {
|
|
7966
|
-
type: this.type,
|
|
7967
|
-
data: this.data,
|
|
7968
|
-
options: this.options
|
|
7969
|
-
});
|
|
7970
|
-
this.canvas.onclick = e => {
|
|
7971
|
-
this.ngZone.run(() => {
|
|
7972
|
-
this.clickCanvas.next(e);
|
|
7973
|
-
if (this.clickDataset.observers.length) {
|
|
7974
|
-
this.clickDataset.next(this.chart.getDatasetAtEvent(e));
|
|
7975
|
-
}
|
|
7976
|
-
if (this.clickElements.observers.length) {
|
|
7977
|
-
this.clickElements.next(this.chart.getElementsAtEvent(e));
|
|
7978
|
-
}
|
|
7979
|
-
if (this.clickElement.observers.length) {
|
|
7980
|
-
this.clickElement.next(this.chart.getElementAtEvent(e));
|
|
7981
|
-
}
|
|
7982
|
-
});
|
|
7983
|
-
};
|
|
7984
|
-
});
|
|
7985
|
-
}
|
|
7986
|
-
resetZoom() {
|
|
7987
|
-
this.chart.resetZoom();
|
|
7988
|
-
}
|
|
7989
|
-
}
|
|
7990
|
-
ChartComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: ChartComponent, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
7991
|
-
ChartComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.2", type: ChartComponent, selector: "chart", inputs: { type: "type", data: "data", options: "options" }, outputs: { clickCanvas: "clickCanvas", clickDataset: "clickDataset", clickElements: "clickElements", clickElement: "clickElement" }, usesOnChanges: true, ngImport: i0, template: '', isInline: true, styles: [":host{display:block}\n"] });
|
|
7992
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: ChartComponent, decorators: [{
|
|
7993
|
-
type: Component,
|
|
7994
|
-
args: [{
|
|
7995
|
-
selector: 'chart',
|
|
7996
|
-
template: '',
|
|
7997
|
-
styles: [':host { display: block; }']
|
|
7998
|
-
}]
|
|
7999
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.NgZone }]; }, propDecorators: { type: [{
|
|
8000
|
-
type: Input
|
|
8001
|
-
}], data: [{
|
|
8002
|
-
type: Input
|
|
8003
|
-
}], options: [{
|
|
8004
|
-
type: Input
|
|
8005
|
-
}], clickCanvas: [{
|
|
8006
|
-
type: Output
|
|
8007
|
-
}], clickDataset: [{
|
|
8008
|
-
type: Output
|
|
8009
|
-
}], clickElements: [{
|
|
8010
|
-
type: Output
|
|
8011
|
-
}], clickElement: [{
|
|
8012
|
-
type: Output
|
|
8013
|
-
}] } });
|
|
8014
|
-
|
|
8015
|
-
class ChartModule {
|
|
8016
|
-
constructor() { }
|
|
8017
|
-
}
|
|
8018
|
-
ChartModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: ChartModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
8019
|
-
ChartModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: ChartModule, declarations: [ChartComponent], exports: [ChartComponent] });
|
|
8020
|
-
ChartModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: ChartModule });
|
|
8021
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: ChartModule, decorators: [{
|
|
8022
|
-
type: NgModule,
|
|
8023
|
-
args: [{
|
|
8024
|
-
declarations: [ChartComponent],
|
|
8025
|
-
exports: [ChartComponent]
|
|
8026
|
-
}]
|
|
8027
|
-
}], ctorParameters: function () { return []; } });
|
|
8028
|
-
|
|
8029
7931
|
const ReportBuilderModulePermission = {
|
|
8030
7932
|
name: 'report-builder',
|
|
8031
7933
|
views: [
|
|
@@ -8056,5 +7958,5 @@ const SuperAdminModulePermission = {
|
|
|
8056
7958
|
* Generated bundle index. Do not edit.
|
|
8057
7959
|
*/
|
|
8058
7960
|
|
|
8059
|
-
export { AccountManagerService, AlertService, Auth365Component, AuthGuard, AuthPermissionService, AuthService, AwsService, BaseComponent, CanDeactivateGuard,
|
|
7961
|
+
export { AccountManagerService, AlertService, Auth365Component, AuthGuard, AuthPermissionService, AuthService, AwsService, BaseComponent, CanDeactivateGuard, CollapseTableComponent, CollapseTableModule, CoreComponent, CoreModule, CoreService, DatatableComponent, DatatableModule, DateShortcutComponent, DateShortcutModule, DialogService, DomSanitizorPipe, EnrollComponent, FileModule, FileUploadComponent, FilterEqualPipe, FilterNotEqualPipe, FocusDirective, ForgotPasswordComponent, FormButtonComponent, FormButtonModule, HomeComponent, JsonParsePipe, LoggerComponent, MinusCurrencyPipe, NavbarMainComponent, NavbarModuleComponent, OfflineManagerService, PhonePipe, PipeModule, ProviderService, ReportBuilderModulePermission, ResizeService, ResponsiveButtonGroupComponent, ResponsiveButtonGroupModule, ReversePipe, SchedulerComponent, SchedulerModule, ScrollDirective, SharedModule, SocketManagerService, SocketService, SortTableDirective, SortTableHeaderComponent, SortTableModule, SortTableNgForComponent, StorageDB, SuperAdminModulePermission, SupportTicketComponent, SupportTicketDetailComponent, SupportTicketEditComponent, SupportTicketListComponent, SupportTicketModule, SupportTicketNewComponent, SupportTicketRouting, SupportTicketService, TitleCaseAndUnderscorePipe, TokenManagerService, UserRoleComponent, UserRoleModule, ValidationService, WindowRefService, b64toBlobURL, blobToFile, dateReviver, deepCopy, generateCronStringFromDate, getDeepDiffDetails, isUpperCase, mergeDeep, pad, s2ab, toDataURL, toTitleCase, type };
|
|
8060
7962
|
//# sourceMappingURL=resolveio-client-lib-core.mjs.map
|