@resolveio/client-lib-core 21.0.28 → 21.0.30

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@resolveio/client-lib-core",
3
- "version": "21.0.28",
3
+ "version": "21.0.30",
4
4
  "module": "fesm2022/resolveio-client-lib-core.min.mjs",
5
5
  "typings": "types/resolveio-client-lib-core.d.ts",
6
6
  "exports": {
@@ -15,6 +15,7 @@ import { NgbModal, NgbModalOptions, NgbActiveModal } from '@ng-bootstrap/ng-boot
15
15
  import * as i2 from '@angular/common';
16
16
  import { DomSanitizer, SafeHtml, SafeStyle, SafeScript, SafeUrl, SafeResourceUrl } from '@angular/platform-browser';
17
17
  import * as i9 from '@resolveio/client-lib-ng-select';
18
+ import { StickySelectPreference, NgSelectStickyAdapter } from '@resolveio/client-lib-ng-select';
18
19
  import * as i14 from '@resolveio/client-lib-date-picker';
19
20
  import * as i7 from 'ngx-file-drop';
20
21
  import * as i8 from '@resolveio/client-lib-pdf-viewer';
@@ -103,6 +104,7 @@ interface UserModel extends CollectionDocument {
103
104
  last?: Date;
104
105
  settings?: UserSettingsModel;
105
106
  services?: Object;
107
+ is_customer?: boolean;
106
108
  }
107
109
  interface UserSettingsModel {
108
110
  table_color: string;
@@ -144,9 +146,9 @@ interface UserRoleModel {
144
146
  }
145
147
  interface UserRoleApprovalModel {
146
148
  type: string;
147
- key_1: string;
148
- key_2: string;
149
- key_3: string;
149
+ key_1?: string;
150
+ key_2?: string;
151
+ key_3?: string;
150
152
  name: string;
151
153
  }
152
154
  interface UserRoleGroupModel {
@@ -155,8 +157,43 @@ interface UserRoleGroupModel {
155
157
  yards?: string[];
156
158
  }
157
159
  interface OtherObject {
160
+ customer_type?: string;
161
+ id_customer?: string;
162
+ customer?: string;
163
+ yards?: string[];
164
+ signature?: string;
165
+ delegates?: UserDelegateModel[];
166
+ supervisors?: UserSupervisorModel[];
167
+ notifications?: UserNotificationModel[];
168
+ employment_level?: UserEmploymentLevelType;
169
+ date_picker_day_start?: 'S' | 'M';
158
170
  [key: string]: any;
159
171
  }
172
+ type UserEmploymentLevelType = '' | 'Field' | 'Yard' | 'Account Manager' | 'Area Manager' | 'Mid Level' | 'Senior Management';
173
+ interface UserDelegateModel {
174
+ id_user: string;
175
+ user: string;
176
+ id_shared_user: string;
177
+ id_cron: string;
178
+ date_start: Date;
179
+ date_end: Date;
180
+ }
181
+ interface UserSupervisorModel {
182
+ id_user: string;
183
+ user: string;
184
+ }
185
+ interface UserNotificationModel {
186
+ id_notification: string;
187
+ notification_name: string;
188
+ delivery_method_email: boolean;
189
+ delivery_method_sms: boolean;
190
+ id_yards: string[];
191
+ id_users: string[];
192
+ data: UserNotificationConfigModel;
193
+ }
194
+ interface UserNotificationConfigModel {
195
+ [key: string]: number;
196
+ }
160
197
 
161
198
  interface AppStatusModel extends CollectionDocument {
162
199
  message: string;
@@ -1545,14 +1582,19 @@ declare class UsersSettingsComponent extends BaseComponent implements OnInit, On
1545
1582
  private _us;
1546
1583
  private _services;
1547
1584
  private _ds;
1585
+ private _stickyAdapter?;
1548
1586
  subscription$: Subscription[];
1549
1587
  form: FormGroup;
1550
1588
  disableFormButton: boolean;
1551
1589
  user: UserModel;
1552
1590
  client: string;
1553
1591
  views: any[];
1592
+ stickySelects: StickySelectPreference[];
1593
+ stickySelections: {
1594
+ [key: string]: any;
1595
+ };
1554
1596
  hasSubmit: boolean;
1555
- constructor(_aps: AuthPermissionService, _us: UserSettingsService, _services: ProviderService, _ds: DialogService);
1597
+ constructor(_aps: AuthPermissionService, _us: UserSettingsService, _services: ProviderService, _ds: DialogService, _stickyAdapter?: NgSelectStickyAdapter);
1556
1598
  ngOnInit(): void;
1557
1599
  ngOnDestroy(): void;
1558
1600
  changePrimaryColor(): void;
@@ -1581,8 +1623,12 @@ declare class UsersSettingsComponent extends BaseComponent implements OnInit, On
1581
1623
  changeSecondaryHoverColor(): void;
1582
1624
  changeSecondaryButtonFontColor(): void;
1583
1625
  reset(): void;
1626
+ updateStickyDefault(key: string, value: any): void;
1627
+ private _loadStickySelects;
1628
+ private _resolveStickyLabel;
1584
1629
  submitForm(form: any): void;
1585
- static ɵfac: i0.ɵɵFactoryDeclaration<UsersSettingsComponent, never>;
1630
+ private _normalizeDatePickerDayStart;
1631
+ static ɵfac: i0.ɵɵFactoryDeclaration<UsersSettingsComponent, [null, null, null, null, { optional: true; }]>;
1586
1632
  static ɵcmp: i0.ɵɵComponentDeclaration<UsersSettingsComponent, "resolveio-users-settings", never, {}, {}, never, never, false, never>;
1587
1633
  }
1588
1634
 
@@ -1681,6 +1727,9 @@ declare class UserSettingsModule {
1681
1727
  static ɵinj: i0.ɵɵInjectorDeclaration<UserSettingsModule>;
1682
1728
  }
1683
1729
 
1730
+ declare function rioDatePickerConfigFactory(_account: AccountManagerService): {
1731
+ resolveFirstDayOfWeek: () => "S" | "M";
1732
+ };
1684
1733
  declare class CoreModule {
1685
1734
  static ɵfac: i0.ɵɵFactoryDeclaration<CoreModule, never>;
1686
1735
  static ɵmod: i0.ɵɵNgModuleDeclaration<CoreModule, [typeof CoreComponent, typeof HomeComponent, typeof LoggerComponent, typeof HtmlDiffViewerComponent, typeof NavbarMainComponent, typeof NavbarModuleComponent, typeof ForgotPasswordComponent, typeof EnrollComponent, typeof Auth365Component, typeof FocusDirective, typeof ScrollDirective, typeof DialogConfirmContent, typeof DialogErrorContent, typeof DialogInputContent, typeof DialogNotifyContent, typeof DialogSelectDateTimeContent, typeof DialogSelectDataLabelsContent, typeof DialogLoginContent, typeof DialogRegisterContent, typeof DialogSelectWithButtonsURLContent, typeof DialogSelectArrayObjsContent, typeof DialogSelectArrayContent], [typeof SharedModule, typeof i4.NgbModule, typeof i25.ToastrModule, typeof UserSettingsModule, typeof i27.BrowserAnimationsModule, typeof CollapseTableModule], [typeof CoreComponent, typeof HomeComponent, typeof LoggerComponent, typeof NavbarMainComponent, typeof NavbarModuleComponent, typeof ForgotPasswordComponent, typeof EnrollComponent, typeof Auth365Component, typeof FocusDirective, typeof ScrollDirective]>;
@@ -1709,7 +1758,7 @@ interface CanComponentDeactivate {
1709
1758
  canDeactivate: () => Observable<boolean> | Promise<boolean> | boolean;
1710
1759
  }
1711
1760
  declare class CanDeactivateGuard {
1712
- canDeactivate(component: CanComponentDeactivate): boolean | Observable<boolean> | Promise<boolean>;
1761
+ canDeactivate(component: CanComponentDeactivate): boolean | Promise<boolean> | Observable<boolean>;
1713
1762
  static ɵfac: i0.ɵɵFactoryDeclaration<CanDeactivateGuard, never>;
1714
1763
  static ɵprov: i0.ɵɵInjectableDeclaration<CanDeactivateGuard>;
1715
1764
  }
@@ -2111,5 +2160,5 @@ declare const ReportBuilderModulePermission: ModulePermissionModel;
2111
2160
 
2112
2161
  declare const SuperAdminModulePermission: ModulePermissionModel;
2113
2162
 
2114
- export { AccountManagerService, AlertService, Auth365Component, AuthGuard, AuthPermissionService, AuthService, AwsService, BaseComponent, CanDeactivateGuard, CollapseTableComponent, CollapseTableModule, CoreComponent, CoreModule, CoreService, DatatableComponent, DatatableModule, DateShortcutComponent, DateShortcutModule, DialogService, DomSanitizorPipe, Draggable, DropEvent, Droppable, EnrollComponent, FileModule, FileUploadComponent, FilterEqualPipe, FilterNotEqualPipe, FocusDirective, ForgotPasswordComponent, FormButtonComponent, FormButtonModule, HomeComponent, JsonParsePipe, LoggerComponent, MinusCurrencyPipe, NavbarMainComponent, NavbarModuleComponent, NgDragDropModule, NgDragDropService, OfflineManagerService, PhonePipe, PipeModule, ProviderService, ReportBuilderModulePermission, ResizeService, ResponsiveButtonGroupComponent, ResponsiveButtonGroupModule, ReversePipe, SchedulerComponent, SchedulerModule, ScrollDirective, SharedModule, SocketManagerService, SocketService, SortTableDirective, SortTableHeaderComponent, SortTableModule, SortTableNgForComponent, Sortable as SortableJs, SortablejsDirective, SortablejsModule, StorageDB, SuperAdminModulePermission, SupportTicketComponent, SupportTicketDetailComponent, SupportTicketEditComponent, SupportTicketListComponent, SupportTicketModule, SupportTicketNewComponent, SupportTicketRouting, SupportTicketService, TitleCaseAndUnderscorePipe, TokenManagerService, UserRoleComponent, UserRoleModule, ValidationService, WindowRefService, applyMongoUpdate, b64toBlobURL, blobToFile, dateReviver, deepCopy, deepDiffDetails, exportCsv, generateCronStringFromDate, isUpperCase, mergeDeep, pad, round, s2ab, toDataURL, toTitleCase, type };
2115
- export type { ActiveClientSubscriptionModel, AppStatusModel, CanComponentDeactivate, CollectionDocument, CronJobModel, CsvExportOptions, DatatableColumn, DatatableModel, DialogInputFieldModel, DialogInputFieldSelectOptions, DialogSelectWithButtonsOptionModel, FileModel, LogMethodLatencyModel, ModulePermissionApprovalModel, ModulePermissionModel, ModulePermissionViewModel, NavbarMainTabLinkModel, NavbarMainTabModel, NavbarMainTabType, NavbarModel, NavbarTabModel, OtherObject, PaginationOptions, ScrollEvent, SelectDataLabelModel, Sort, SortDirection, SortDirectionType, SortMongo, Sortable$1 as Sortable, SortableEvent as SortablejsEvent, Options as SortablejsOptions, SubscriptionModel, SubscriptionPubModel, SupportTicketClientUserModel, SupportTicketMessageModel, SupportTicketModel, SupportTicketNoteModel, SupportTicketPriority, SupportTicketStatus, SupportTicketSubstatus, SupportTicketTaskModel, SupportTicketType, SupportTicketUserAssignedModel, SupportTicketWatchersModel, UserGroupModel, UserGroupNotificationModel, UserGroupPermissionModel, UserGroupViewModel, UserModel, UserRoleApprovalModel, UserRoleGroupModel, UserRoleModel, UserSettingsModel, alertType };
2163
+ export { AccountManagerService, AlertService, Auth365Component, AuthGuard, AuthPermissionService, AuthService, AwsService, BaseComponent, CanDeactivateGuard, CollapseTableComponent, CollapseTableModule, CoreComponent, CoreModule, CoreService, DatatableComponent, DatatableModule, DateShortcutComponent, DateShortcutModule, DialogService, DomSanitizorPipe, Draggable, DropEvent, Droppable, EnrollComponent, FileModule, FileUploadComponent, FilterEqualPipe, FilterNotEqualPipe, FocusDirective, ForgotPasswordComponent, FormButtonComponent, FormButtonModule, HomeComponent, JsonParsePipe, LoggerComponent, MinusCurrencyPipe, NavbarMainComponent, NavbarModuleComponent, NgDragDropModule, NgDragDropService, OfflineManagerService, PhonePipe, PipeModule, ProviderService, ReportBuilderModulePermission, ResizeService, ResponsiveButtonGroupComponent, ResponsiveButtonGroupModule, ReversePipe, SchedulerComponent, SchedulerModule, ScrollDirective, SharedModule, SocketManagerService, SocketService, SortTableDirective, SortTableHeaderComponent, SortTableModule, SortTableNgForComponent, Sortable as SortableJs, SortablejsDirective, SortablejsModule, StorageDB, SuperAdminModulePermission, SupportTicketComponent, SupportTicketDetailComponent, SupportTicketEditComponent, SupportTicketListComponent, SupportTicketModule, SupportTicketNewComponent, SupportTicketRouting, SupportTicketService, TitleCaseAndUnderscorePipe, TokenManagerService, UserRoleComponent, UserRoleModule, ValidationService, WindowRefService, applyMongoUpdate, b64toBlobURL, blobToFile, dateReviver, deepCopy, deepDiffDetails, exportCsv, generateCronStringFromDate, isUpperCase, mergeDeep, pad, rioDatePickerConfigFactory, round, s2ab, toDataURL, toTitleCase, type };
2164
+ export type { ActiveClientSubscriptionModel, AppStatusModel, CanComponentDeactivate, CollectionDocument, CronJobModel, CsvExportOptions, DatatableColumn, DatatableModel, DialogInputFieldModel, DialogInputFieldSelectOptions, DialogSelectWithButtonsOptionModel, FileModel, LogMethodLatencyModel, ModulePermissionApprovalModel, ModulePermissionModel, ModulePermissionViewModel, NavbarMainTabLinkModel, NavbarMainTabModel, NavbarMainTabType, NavbarModel, NavbarTabModel, OtherObject, PaginationOptions, ScrollEvent, SelectDataLabelModel, Sort, SortDirection, SortDirectionType, SortMongo, Sortable$1 as Sortable, SortableEvent as SortablejsEvent, Options as SortablejsOptions, SubscriptionModel, SubscriptionPubModel, SupportTicketClientUserModel, SupportTicketMessageModel, SupportTicketModel, SupportTicketNoteModel, SupportTicketPriority, SupportTicketStatus, SupportTicketSubstatus, SupportTicketTaskModel, SupportTicketType, SupportTicketUserAssignedModel, SupportTicketWatchersModel, UserDelegateModel, UserEmploymentLevelType, UserGroupModel, UserGroupNotificationModel, UserGroupPermissionModel, UserGroupViewModel, UserModel, UserNotificationConfigModel, UserNotificationModel, UserRoleApprovalModel, UserRoleGroupModel, UserRoleModel, UserSettingsModel, UserSupervisorModel, alertType };