@resolveio/client-lib-core 0.0.3 → 0.0.5
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/lib/logger/logger.component.mjs +2 -3
- package/esm2020/lib/report-builder.permission.mjs +13 -0
- package/esm2020/lib/super-admin.permission.mjs +9 -0
- package/esm2020/lib/widgets/date-shortcut/date-shortcut.component.mjs +2 -3
- package/esm2020/lib/widgets/scheduler/scheduler.component.mjs +2 -3
- package/esm2020/public_api.mjs +3 -1
- package/fesm2015/resolveio-client-lib-core.mjs +61 -42
- package/fesm2015/resolveio-client-lib-core.mjs.map +1 -1
- package/fesm2020/resolveio-client-lib-core.mjs +61 -42
- package/fesm2020/resolveio-client-lib-core.mjs.map +1 -1
- package/lib/report-builder.permission.d.ts +2 -0
- package/lib/super-admin.permission.d.ts +2 -0
- package/package.json +1 -1
- package/public_api.d.ts +2 -0
|
@@ -5,7 +5,7 @@ import * as i1$2 from '@angular/router';
|
|
|
5
5
|
import { RouterModule } from '@angular/router';
|
|
6
6
|
import { finalize } from 'rxjs/operators';
|
|
7
7
|
import { detailedDiff } from 'deep-object-diff';
|
|
8
|
-
import * as moment
|
|
8
|
+
import * as moment from 'moment';
|
|
9
9
|
import * as i1 from 'ngx-localstorage';
|
|
10
10
|
import { NgxLocalStorageModule } from 'ngx-localstorage';
|
|
11
11
|
import * as i1$1 from 'ngx-toastr';
|
|
@@ -210,8 +210,8 @@ function getDeepDiffDetails(obj1, obj2) {
|
|
|
210
210
|
let key = Object.keys(diff['updated'])[i];
|
|
211
211
|
let newKey = Object.keys(newDiff['updated'])[i];
|
|
212
212
|
if ((key.substr(0, 2) !== 'id')) {
|
|
213
|
-
if (diff['updated'][key] && moment
|
|
214
|
-
diffString += 'Updated: \n' + toTitleCase(key.replace(/_/g, ' ')) + ': "' + moment
|
|
213
|
+
if (diff['updated'][key] && moment.isDate(diff['updated'][key])) {
|
|
214
|
+
diffString += 'Updated: \n' + toTitleCase(key.replace(/_/g, ' ')) + ': "' + moment(diff['updated'][key]).format('llll') + '" to "' + moment(newDiff['updated'][newKey]).format('llll') + '"\n';
|
|
215
215
|
}
|
|
216
216
|
else if (diff['updated'][key] && typeof (diff['updated'][key]) === 'object') {
|
|
217
217
|
let objString = '';
|
|
@@ -4613,7 +4613,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
4613
4613
|
}]
|
|
4614
4614
|
}] });
|
|
4615
4615
|
|
|
4616
|
-
const moment$2 = moment$3;
|
|
4617
4616
|
class LoggerComponent extends BaseComponent {
|
|
4618
4617
|
constructor(_services, _ds, _cd) {
|
|
4619
4618
|
super(_services);
|
|
@@ -4643,7 +4642,7 @@ class LoggerComponent extends BaseComponent {
|
|
|
4643
4642
|
}));
|
|
4644
4643
|
let jsDateStart = new Date();
|
|
4645
4644
|
jsDateStart.setHours(0, 0, 0, 0);
|
|
4646
|
-
let date_start = new Date(moment
|
|
4645
|
+
let date_start = new Date(moment(jsDateStart).subtract(10, 'days').toDate());
|
|
4647
4646
|
this.dateStartElem = { year: date_start.getFullYear(), month: date_start.getMonth() + 1, day: date_start.getDate() };
|
|
4648
4647
|
this.timeStartElem = { hour: 0, minute: 0, second: 0 };
|
|
4649
4648
|
let jsDateEnd = new Date();
|
|
@@ -8137,7 +8136,6 @@ function type(label) {
|
|
|
8137
8136
|
return label;
|
|
8138
8137
|
}
|
|
8139
8138
|
|
|
8140
|
-
const moment$1 = moment$3;
|
|
8141
8139
|
class DateShortcutComponent extends BaseComponent {
|
|
8142
8140
|
constructor(_services, _cd) {
|
|
8143
8141
|
super(_services);
|
|
@@ -8159,83 +8157,83 @@ class DateShortcutComponent extends BaseComponent {
|
|
|
8159
8157
|
}
|
|
8160
8158
|
onSelectShortcut() {
|
|
8161
8159
|
if (this.shortcutValue) {
|
|
8162
|
-
let startDate = moment
|
|
8163
|
-
let endDate = moment
|
|
8160
|
+
let startDate = moment(new Date(this.startDateObj['year'], this.startDateObj['month'] - 1, this.startDateObj['day'])).toDate();
|
|
8161
|
+
let endDate = moment(new Date(this.endDateObj['year'], this.endDateObj['month'] - 1, this.endDateObj['day'])).toDate();
|
|
8164
8162
|
if (this.shortcutValue === 'Q1') {
|
|
8165
|
-
startDate = moment
|
|
8166
|
-
endDate = moment
|
|
8163
|
+
startDate = moment().startOf('year').toDate();
|
|
8164
|
+
endDate = moment().startOf('year').quarter(2).subtract(1, 'days').toDate();
|
|
8167
8165
|
}
|
|
8168
8166
|
else if (this.shortcutValue === 'Q2') {
|
|
8169
|
-
startDate = moment
|
|
8170
|
-
endDate = moment
|
|
8167
|
+
startDate = moment().startOf('year').quarter(2).toDate();
|
|
8168
|
+
endDate = moment().startOf('year').quarter(3).subtract(1, 'days').toDate();
|
|
8171
8169
|
}
|
|
8172
8170
|
else if (this.shortcutValue === 'Q3') {
|
|
8173
|
-
startDate = moment
|
|
8174
|
-
endDate = moment
|
|
8171
|
+
startDate = moment().startOf('year').quarter(3).toDate();
|
|
8172
|
+
endDate = moment().startOf('year').quarter(4).subtract(1, 'days').toDate();
|
|
8175
8173
|
}
|
|
8176
8174
|
else if (this.shortcutValue === 'Q4') {
|
|
8177
|
-
startDate = moment
|
|
8178
|
-
endDate = moment
|
|
8175
|
+
startDate = moment().startOf('year').quarter(4).toDate();
|
|
8176
|
+
endDate = moment().endOf('year').toDate();
|
|
8179
8177
|
}
|
|
8180
8178
|
else if (this.shortcutValue === 'Last Q1') {
|
|
8181
|
-
startDate = moment
|
|
8182
|
-
endDate = moment
|
|
8179
|
+
startDate = moment().startOf('year').subtract(1, 'year').toDate();
|
|
8180
|
+
endDate = moment().startOf('year').subtract(1, 'year').quarter(2).subtract(1, 'days').toDate();
|
|
8183
8181
|
}
|
|
8184
8182
|
else if (this.shortcutValue === 'Last Q2') {
|
|
8185
|
-
startDate = moment
|
|
8186
|
-
endDate = moment
|
|
8183
|
+
startDate = moment().startOf('year').subtract(1, 'year').quarter(2).toDate();
|
|
8184
|
+
endDate = moment().startOf('year').subtract(1, 'year').quarter(3).subtract(1, 'days').toDate();
|
|
8187
8185
|
}
|
|
8188
8186
|
else if (this.shortcutValue === 'Last Q3') {
|
|
8189
|
-
startDate = moment
|
|
8190
|
-
endDate = moment
|
|
8187
|
+
startDate = moment().startOf('year').subtract(1, 'year').quarter(3).toDate();
|
|
8188
|
+
endDate = moment().startOf('year').subtract(1, 'year').quarter(4).subtract(1, 'days').toDate();
|
|
8191
8189
|
}
|
|
8192
8190
|
else if (this.shortcutValue === 'Last Q4') {
|
|
8193
|
-
startDate = moment
|
|
8194
|
-
endDate = moment
|
|
8191
|
+
startDate = moment().startOf('year').subtract(1, 'year').quarter(4).toDate();
|
|
8192
|
+
endDate = moment().endOf('year').subtract(1, 'year').toDate();
|
|
8195
8193
|
}
|
|
8196
8194
|
else if (this.shortcutValue === 'Today') {
|
|
8197
|
-
startDate = moment
|
|
8195
|
+
startDate = moment().startOf('day').toDate();
|
|
8198
8196
|
endDate = new Date();
|
|
8199
8197
|
}
|
|
8200
8198
|
else if (this.shortcutValue === 'Yesterday') {
|
|
8201
|
-
startDate = moment
|
|
8202
|
-
endDate = moment
|
|
8199
|
+
startDate = moment().subtract(1, 'days').startOf('day').toDate();
|
|
8200
|
+
endDate = moment().subtract(1, 'days').endOf('day').toDate();
|
|
8203
8201
|
}
|
|
8204
8202
|
else if (this.shortcutValue === 'Week') {
|
|
8205
|
-
startDate = moment
|
|
8203
|
+
startDate = moment().startOf('isoWeek').toDate();
|
|
8206
8204
|
endDate = new Date();
|
|
8207
8205
|
}
|
|
8208
8206
|
else if (this.shortcutValue === 'Last Week') {
|
|
8209
|
-
endDate = moment
|
|
8210
|
-
startDate = moment
|
|
8207
|
+
endDate = moment().startOf('isoWeek').subtract(1, 'days').toDate();
|
|
8208
|
+
startDate = moment(endDate).startOf('isoWeek').toDate();
|
|
8211
8209
|
}
|
|
8212
8210
|
else if (this.shortcutValue === 'Month') {
|
|
8213
|
-
startDate = moment
|
|
8211
|
+
startDate = moment().startOf('month').toDate();
|
|
8214
8212
|
endDate = new Date();
|
|
8215
8213
|
}
|
|
8216
8214
|
else if (this.shortcutValue === 'Last Month') {
|
|
8217
|
-
endDate = moment
|
|
8218
|
-
startDate = moment
|
|
8215
|
+
endDate = moment().startOf('month').subtract(1, 'days').endOf('day').toDate();
|
|
8216
|
+
startDate = moment(endDate).startOf('month').toDate();
|
|
8219
8217
|
}
|
|
8220
8218
|
else if (this.shortcutValue === 'Last 30 Days') {
|
|
8221
8219
|
endDate = new Date();
|
|
8222
|
-
startDate = moment
|
|
8220
|
+
startDate = moment().subtract(30, 'days').startOf('day').toDate();
|
|
8223
8221
|
}
|
|
8224
8222
|
else if (this.shortcutValue === 'Quarter') {
|
|
8225
|
-
startDate = moment
|
|
8223
|
+
startDate = moment().startOf('year').quarter(moment().quarter()).toDate();
|
|
8226
8224
|
endDate = new Date();
|
|
8227
8225
|
}
|
|
8228
8226
|
else if (this.shortcutValue === 'Last Quarter') {
|
|
8229
|
-
endDate = moment
|
|
8230
|
-
startDate = moment
|
|
8227
|
+
endDate = moment().startOf('year').quarter(moment().quarter()).subtract(1, 'days').endOf('day').toDate();
|
|
8228
|
+
startDate = moment(endDate).startOf('quarter').toDate();
|
|
8231
8229
|
}
|
|
8232
8230
|
else if (this.shortcutValue === 'Year') {
|
|
8233
|
-
startDate = moment
|
|
8231
|
+
startDate = moment().startOf('year').toDate();
|
|
8234
8232
|
endDate = new Date();
|
|
8235
8233
|
}
|
|
8236
8234
|
else if (this.shortcutValue === 'Last Year') {
|
|
8237
|
-
endDate = moment
|
|
8238
|
-
startDate = moment
|
|
8235
|
+
endDate = moment().startOf('year').subtract(1, 'days').endOf('day').toDate();
|
|
8236
|
+
startDate = moment(endDate).startOf('year').toDate();
|
|
8239
8237
|
}
|
|
8240
8238
|
else if (this.shortcutValue === 'All') {
|
|
8241
8239
|
startDate = new Date(2017, 0, 1, 0, 0, 0, 0);
|
|
@@ -8353,7 +8351,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
8353
8351
|
}]
|
|
8354
8352
|
}] });
|
|
8355
8353
|
|
|
8356
|
-
const moment = moment$3;
|
|
8357
8354
|
class SchedulerComponent extends BaseComponent {
|
|
8358
8355
|
constructor(_services) {
|
|
8359
8356
|
super(_services);
|
|
@@ -8836,6 +8833,28 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
8836
8833
|
}]
|
|
8837
8834
|
}] });
|
|
8838
8835
|
|
|
8836
|
+
const ReportBuilderModulePermission = {
|
|
8837
|
+
name: 'report-builder',
|
|
8838
|
+
views: [
|
|
8839
|
+
{ link: '/report-builder/list', label: 'List', has_parameter: false },
|
|
8840
|
+
{ link: '/report-builder/new', label: 'New', has_parameter: false },
|
|
8841
|
+
{ link: '/report-builder/scheduled-job', label: 'Scheduled Job', has_parameter: false },
|
|
8842
|
+
{ link: '/report-builder/dashboard-builder', label: 'Dashboard Builder', has_parameter: false },
|
|
8843
|
+
{ link: '/report-builder/detail', label: 'Detail', has_parameter: true },
|
|
8844
|
+
{ link: '/report-builder/edit', label: 'Edit', has_parameter: true },
|
|
8845
|
+
{ link: '/report-builder/delete', label: 'Delete', has_parameter: true },
|
|
8846
|
+
]
|
|
8847
|
+
};
|
|
8848
|
+
|
|
8849
|
+
const SuperAdminModulePermission = {
|
|
8850
|
+
name: 'super-admin',
|
|
8851
|
+
views: [
|
|
8852
|
+
{ link: '/super-admin/dashboard', label: 'Dashboard', has_parameter: false },
|
|
8853
|
+
{ link: '/super-admin/apm', label: 'APM', has_parameter: false },
|
|
8854
|
+
{ link: '/super-admin/monitor', label: 'Monitor', has_parameter: false }
|
|
8855
|
+
]
|
|
8856
|
+
};
|
|
8857
|
+
|
|
8839
8858
|
/*
|
|
8840
8859
|
* Public API Surface of @resolveio/client-lib-core
|
|
8841
8860
|
*/
|
|
@@ -8844,5 +8863,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
8844
8863
|
* Generated bundle index. Do not edit.
|
|
8845
8864
|
*/
|
|
8846
8865
|
|
|
8847
|
-
export { AboutUsComponent, AccountManagerService, AlertService, Auth365Component, AuthGuard, AuthPermissionService, AuthService, AwsService, BaseComponent, CanDeactivateGuard, ChartComponent, ChartModule, CollapseTableComponent, CollapseTableModule, ContactUsComponent, ContactUsStandardComponent, CoreComponent, CoreModule, CoreService, DatatableComponent, DatatableModule, DateShortcutComponent, DateShortcutModule, DemoComponent, DialogService, DomSanitizorPipe, EnrollComponent, FAQComponent, FeaturesComponent, FileModule, FileUploadComponent, FilterEqualPipe, FilterNotEqualPipe, FocusDirective, ForgotPasswordComponent, FormButtonComponent, FormButtonModule, HomeComponent, HomeModule, HomeStandardComponent, HowItWorkComponent, JsonParsePipe, LoggerComponent, LoginSignupComponent, MinusCurrencyPipe, NavbarMainComponent, NavbarModuleComponent, NgbTourService, OfflineManagerService, PhonePipe, PipeModule, PricingComponent, ProviderService, ResizeService, ResponsiveButtonGroupComponent, ResponsiveButtonGroupModule, ReversePipe, SchedulerComponent, SchedulerModule, ScrollDirective, SharedModule, SocketManagerService, SocketService, SortTableDirective, SortTableHeaderComponent, SortTableModule, SortTableNgForComponent, StandardPagesModule, StorageDB, SupportTicketComponent, SupportTicketDetailComponent, SupportTicketEditComponent, SupportTicketListComponent, SupportTicketModule, SupportTicketNewComponent, SupportTicketRouting, SupportTicketService, TitleCaseAndUnderscorePipe, TokenManagerService, TourAnchorNgBootstrapDirective, TourAnchorNgBootstrapPopoverDirective, TourNgBootstrapModule, TourStepTemplateComponent, TourStepTemplateService, UserRoleComponent, UserRoleModule, ValidationService, WindowRefService, b64toBlobURL, blobToFile, dateReviver, deepCopy, generateCronStringFromDate, getDeepDiffDetails, isUpperCase, mergeDeep, pad, s2ab, toDataURL, toTitleCase, type };
|
|
8866
|
+
export { AboutUsComponent, AccountManagerService, AlertService, Auth365Component, AuthGuard, AuthPermissionService, AuthService, AwsService, BaseComponent, CanDeactivateGuard, ChartComponent, ChartModule, CollapseTableComponent, CollapseTableModule, ContactUsComponent, ContactUsStandardComponent, CoreComponent, CoreModule, CoreService, DatatableComponent, DatatableModule, DateShortcutComponent, DateShortcutModule, DemoComponent, DialogService, DomSanitizorPipe, EnrollComponent, FAQComponent, FeaturesComponent, FileModule, FileUploadComponent, FilterEqualPipe, FilterNotEqualPipe, FocusDirective, ForgotPasswordComponent, FormButtonComponent, FormButtonModule, HomeComponent, HomeModule, HomeStandardComponent, HowItWorkComponent, JsonParsePipe, LoggerComponent, LoginSignupComponent, MinusCurrencyPipe, NavbarMainComponent, NavbarModuleComponent, NgbTourService, OfflineManagerService, PhonePipe, PipeModule, PricingComponent, ProviderService, ReportBuilderModulePermission, ResizeService, ResponsiveButtonGroupComponent, ResponsiveButtonGroupModule, ReversePipe, SchedulerComponent, SchedulerModule, ScrollDirective, SharedModule, SocketManagerService, SocketService, SortTableDirective, SortTableHeaderComponent, SortTableModule, SortTableNgForComponent, StandardPagesModule, StorageDB, SuperAdminModulePermission, SupportTicketComponent, SupportTicketDetailComponent, SupportTicketEditComponent, SupportTicketListComponent, SupportTicketModule, SupportTicketNewComponent, SupportTicketRouting, SupportTicketService, TitleCaseAndUnderscorePipe, TokenManagerService, TourAnchorNgBootstrapDirective, TourAnchorNgBootstrapPopoverDirective, TourNgBootstrapModule, TourStepTemplateComponent, TourStepTemplateService, UserRoleComponent, UserRoleModule, ValidationService, WindowRefService, b64toBlobURL, blobToFile, dateReviver, deepCopy, generateCronStringFromDate, getDeepDiffDetails, isUpperCase, mergeDeep, pad, s2ab, toDataURL, toTitleCase, type };
|
|
8848
8867
|
//# sourceMappingURL=resolveio-client-lib-core.mjs.map
|