@unipin/angular-applet 17.2.2 → 17.2.4

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.
Files changed (33) hide show
  1. package/esm2022/lib/components/approval/list/approval-list.component.mjs +1 -1
  2. package/esm2022/lib/components/audit/detail/audit-detail.component.mjs +14 -14
  3. package/esm2022/lib/components/containers/column-container/column-container.component.mjs +2 -2
  4. package/esm2022/lib/components/containers/column-container/directives/lazy-route.directive.mjs +23 -0
  5. package/esm2022/lib/components/containers/modal-container/modal-container.component.mjs +1 -1
  6. package/esm2022/lib/components/filter/filter.component.mjs +1 -1
  7. package/esm2022/lib/components/filter/interfaces/filter-config.interface.mjs +1 -1
  8. package/esm2022/lib/components/filter/interfaces/filter-field.interface.mjs +1 -1
  9. package/esm2022/lib/components/filter/interfaces/filter-search-event.interface.mjs +1 -1
  10. package/esm2022/lib/components/forms/date/form-date.component.mjs +1 -1
  11. package/esm2022/lib/components/forms/input/form-input.component.mjs +1 -1
  12. package/esm2022/lib/components/forms/password/form-password.component.mjs +1 -1
  13. package/esm2022/lib/components/forms/searchable-select/form-searchable-select.component.mjs +1 -1
  14. package/esm2022/lib/components/forms/select/form-select.component.mjs +1 -1
  15. package/esm2022/lib/components/forms/textarea/form-textarea.component.mjs +1 -1
  16. package/esm2022/lib/components/grids/grid-pagination/grid-pagination.component.mjs +1 -1
  17. package/esm2022/lib/components/grids/grid-snapshot/grid-snapshot.component.mjs +1 -1
  18. package/esm2022/lib/components/grids/interfaces/grid-config.interface.mjs +1 -1
  19. package/esm2022/lib/modules/permission/directive/permission.directive.mjs +1 -1
  20. package/esm2022/lib/modules/permission/guards/permission.guard.mjs +1 -1
  21. package/esm2022/lib/resolvers/auth/auth.resolver.mjs +1 -1
  22. package/esm2022/lib/services/auth/auth.service.mjs +4 -4
  23. package/esm2022/lib/services/country/country.service.mjs +1 -1
  24. package/esm2022/lib/services/currency/currency.service.mjs +1 -1
  25. package/esm2022/lib/services/profile/profile.service.mjs +3 -2
  26. package/fesm2022/unipin-angular-applet.mjs +17 -16
  27. package/fesm2022/unipin-angular-applet.mjs.map +1 -1
  28. package/lib/components/audit/detail/audit-detail.component.d.ts +2 -2
  29. package/lib/services/auth/auth.service.d.ts +4 -3
  30. package/lib/services/profile/profile.service.d.ts +2 -1
  31. package/package.json +1 -1
  32. package/esm2022/lib/components/containers/column-container/directives/lazyr-route.directive.mjs +0 -23
  33. /package/lib/components/containers/column-container/directives/{lazyr-route.directive.d.ts → lazy-route.directive.d.ts} +0 -0
@@ -7,8 +7,9 @@ export class ProfileService {
7
7
  constructor(apollo) {
8
8
  this.apollo = apollo;
9
9
  }
10
- getMyProfile() {
10
+ getMyProfile(fetchPolicy) {
11
11
  return this.apollo.query({
12
+ fetchPolicy,
12
13
  errorPolicy: 'all',
13
14
  query: gql `
14
15
  query getMyProfile {
@@ -60,4 +61,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.1", ngImpor
60
61
  providedIn: 'root'
61
62
  }]
62
63
  }], ctorParameters: () => [{ type: i1.Apollo }] });
63
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvZmlsZS5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdW5pcGluLWFuZ3VsYXIvc3JjL2xpYi9zZXJ2aWNlcy9wcm9maWxlL3Byb2ZpbGUuc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQzNDLE9BQU8sRUFBYyxHQUFHLEVBQUUsTUFBTSxNQUFNLENBQUM7QUFDdkMsT0FBTyxFQUFVLEdBQUcsRUFBRSxNQUFNLGdCQUFnQixDQUFDOzs7QUFNN0MsTUFBTSxPQUFPLGNBQWM7SUFFekIs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ZWFkb25seSBhcG9sbG86IEFwb2xsb1xuICApIHsgfVxuXG4gIHB1YmxpYyBnZXRNeVByb2ZpbGUoKTogT2JzZXJ2YWJsZTxBcHBMb2dpblN1YmplY3QgfCBudWxsPntcbiAgICByZXR1cm4gdGhpcy5hcG9sbG8ucXVlcnk8eyBhdXRoTXNNeVByb2ZpbGU6IEFwcExvZ2luU3ViamVjdCB9Pih7XG4gICAgICBlcnJvclBvbGljeTogJ2FsbCcsXG4gICAgICBxdWVyeTogZ3FsYFxuICAgICAgICBxdWVyeSBnZXRNeVByb2ZpbGUge1xuICAgICAgICAgIGF1dGhNc015UHJvZmlsZSB7XG4gICAgICAgICAgICBhcHBMb2dpblByaW5jaXBhbCB7XG4gICAgICAgICAgICAgIHByaW5jaXBhbElkXG4gICAgICAgICAgICAgIHByaW5jaXBhbFR5cGVcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGFwcExvZ2luRXh0IHtcbiAgICAgICAgICAgICAgcGFyYW1Db2RlXG4gICAgICAgICAgICAgIHBhcmFtVHlwZVxuICAgICAgICAgICAgICBmaWxlIHtcbiAgICAgICAgICAgICAgICBwdWJsaWNVcmxcbiAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICAgICAgYmlydGhkYXlcbiAgICAgICAgICAgIGNhdGVnb3J5XG4gICAgICAgICAgICBjb21wYW55IHtcbiAgICAgICAgICAgICAgY29kZVxuICAgICAgICAgICAgICBndWlkXG4gICAgICAgICAgICAgIGlzSW50ZXJuYWxcbiAgICAgICAgICAgICAgbmFtZVxuICAgICAgICAgICAgICBzdGF0dXNcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGdlbmRlclxuICAgICAgICAgICAgZ3VpZFxuICAgICAgICAgICAgbWVyY2hhbnRzIHtcbiAgICAgICAgICAgICAgZ3VpZFxuICAgICAgICAgICAgICBuYW1lXG4gICAgICAgICAgICAgIHN0YXR1c1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgbmFtZV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kYXlcbiAgICAgICAgICAgIGNhdGVnb3J5XG4gICAgICAgICAgICBjb21wYW55IHtcbiAgICAgICAgICAgICAgY29kZVxuICAgICAgICAgICAgICBndWlkXG4gICAgICAgICAgICAgIGlzSW50ZXJuYWxcbiAgICAgICAgICAgICAgbmFtZVxuICAgICAgICAgICAgICBzdGF0dXNcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGdlbmRlclxuICAgICAgICAgICAgZ3VpZFxuICAgICAgICAgICAgbWVyY2hhbnRzIHtcbiAgICAgICAgICAgICAgZ3VpZFxuICAgICAgICAgICAgICBuYW1lXG4gICAgICAgICAgICAgIHN0YXR1c1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgbmFtZVxuICAgICAgICAgICAgc3RhdHVzXG4gICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICBgLFxuICAgIH0pLnBpcGUoXG4gICAgICBtYXAoKHsgZGF0YTogeyBhdXRoTXNNeVByb2ZpbGUgfX0pID0+IHtcbiAgICAgICAgaWYgKCFhdXRoTXNNeVByb2ZpbGUpIHJldHVybiBudWxsO1xuICAgICAgICByZXR1cm4gYXV0aE1zTXlQcm9maWxlO1xuICAgICAgfSlcbiAgICApO1xuICB9XG59XG4iXX0=
@@ -1923,6 +1923,19 @@ class AuditDetailComponent {
1923
1923
  this.gridApi = api;
1924
1924
  this.getData();
1925
1925
  }
1926
+ isIsoDateString(str) {
1927
+ const regex = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{1,9})?Z$/;
1928
+ return regex.test(str);
1929
+ }
1930
+ formatData(value) {
1931
+ if (value === null)
1932
+ return value;
1933
+ if (typeof value === 'object')
1934
+ return JSON.stringify(value);
1935
+ if (this.isIsoDateString(value))
1936
+ return formatDate(value, 'dd MMM yyyy HH:mm', 'en-US');
1937
+ return value;
1938
+ }
1926
1939
  getData() {
1927
1940
  const newGuid = this.route.children[0].snapshot.params['audit'];
1928
1941
  if (!newGuid || this.guid === newGuid)
@@ -1969,19 +1982,6 @@ class AuditDetailComponent {
1969
1982
  }));
1970
1983
  this.gridApi.setGridOption('rowData', changedData);
1971
1984
  }
1972
- formatData(value) {
1973
- if (value === null)
1974
- return value;
1975
- if (typeof value === 'object')
1976
- return JSON.stringify(value);
1977
- if (this.isIsoDateString(value))
1978
- return formatDate(value, 'dd MMM yyyy HH:mm', 'en-US');
1979
- return value;
1980
- }
1981
- isIsoDateString(str) {
1982
- const regex = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{1,9})?Z$/;
1983
- return regex.test(str);
1984
- }
1985
1985
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: AuditDetailComponent, deps: [{ token: i1$3.FormBuilder }, { token: AuditService }, { token: i1$2.ActivatedRoute }, { token: i1.NavController }], target: i0.ɵɵFactoryTarget.Component }); }
1986
1986
  static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.2.1", type: AuditDetailComponent, isStandalone: true, selector: "up-audit-detail", ngImport: i0, template: "<up-tab-group class=\"h-100\">\n <up-tab-content header=\"Detail\" fragment=\"detail\">\n <form [formGroup]=\"form\" class=\"px-4 pb-4\" *ngIf=\"!isLoading; else loading\">\n <div class=\"d-flex align-items-center gap-2 pb-3\">\n <ion-icon name=\"information-circle\" />\n <h5 class=\"m-0\">Information</h5>\n </div>\n\n <div class=\"d-flex flex-column flex-lg-row gap-4\">\n <div class=\"flex-grow-1\">\n <up-input class=\"mb-lg-4\" label=\"Action\" formControlName=\"action\" />\n </div>\n\n <div class=\"flex-grow-1\">\n <up-input class=\"mb-4\" label=\"Source IP\" formControlName=\"sourceIp\" />\n </div>\n </div>\n \n <up-input class=\"mb-4\" label=\"User Name\" formControlName=\"userName\" />\n <up-textarea class=\"mb-4\" label=\"Description\" formControlName=\"description\" />\n\n <div class=\"d-flex align-items-center gap-2 pb-3 pt-2\">\n <ion-icon name=\"laptop\" />\n <h5 class=\"m-0\">System Information</h5>\n </div>\n\n <div class=\"d-flex flex-column flex-lg-row gap-4\">\n <div class=\"flex-grow-1\">\n <up-input class=\"mb-4\" label=\"Action Date\" formControlName=\"createdAt\" />\n <up-input class=\"mb-lg-4\" label=\"Source Platform\" formControlName=\"sourcePlatform\" />\n </div>\n\n <div class=\"flex-grow-1\">\n <up-input class=\"mb-4\" label=\"MS Source\" formControlName=\"msSource\" />\n <up-input class=\"mb-4\" label=\"Function\" formControlName=\"function\" />\n </div>\n </div>\n </form>\n\n <ng-template #loading>\n <ion-skeleton-text class=\"sk-input mx-4 mb-4\" *ngFor=\"let i of [0,1,2,3,4,5,6]\" />\n </ng-template> \n </up-tab-content>\n\n <up-tab-content header=\"Attributes\" fragment=\"attributes\">\n <up-pagination-grid id=\"grid-audit-detail\" rowModelType=\"clientSide\" [config]=\"gridConfig\" (onGridReady)=\"setGridApi($event)\" />\n </up-tab-content>\n</up-tab-group>\n", styles: ["ion-icon{font-size:24px;margin-right:5px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: IonicModule }, { kind: "component", type: i1.IonIcon, selector: "ion-icon", inputs: ["color", "flipRtl", "icon", "ios", "lazy", "md", "mode", "name", "sanitize", "size", "src"] }, { kind: "component", type: i1.IonSkeletonText, selector: "ion-skeleton-text", inputs: ["animated"] }, { kind: "component", type: GridPaginationComponent, selector: "up-pagination-grid", inputs: ["config", "rowData", "id", "rowModelType", "rowSelection"], outputs: ["onRowClick", "onGridReady", "onSelectionChanged"] }, { kind: "ngmodule", type: TabsComponentModule }, { kind: "component", type: TabGroupComponent, selector: "up-tab-group", outputs: ["onChange"] }, { kind: "component", type: TabContentComponent, selector: "up-tab-content", inputs: ["header"] }, { kind: "component", type: FormInputComponent, selector: "up-input", inputs: ["label", "value", "required", "disabled"], outputs: ["onInput"] }, { kind: "component", type: FormTextareaComponent, selector: "up-textarea", inputs: ["value", "required", "disabled"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$3.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1$3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$3.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$3.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }] }); }
1987
1987
  }
@@ -2558,8 +2558,9 @@ class ProfileService {
2558
2558
  constructor(apollo) {
2559
2559
  this.apollo = apollo;
2560
2560
  }
2561
- getMyProfile() {
2561
+ getMyProfile(fetchPolicy) {
2562
2562
  return this.apollo.query({
2563
+ fetchPolicy,
2563
2564
  errorPolicy: 'all',
2564
2565
  query: gql `
2565
2566
  query getMyProfile {
@@ -2673,8 +2674,8 @@ class AuthService {
2673
2674
  `
2674
2675
  });
2675
2676
  }
2676
- getProfile() {
2677
- return this.profileService.getMyProfile().pipe(tap((user) => {
2677
+ getProfile(fetchPolicy) {
2678
+ return this.profileService.getMyProfile(fetchPolicy).pipe(tap((user) => {
2678
2679
  if (!user)
2679
2680
  return;
2680
2681
  this.user = { ...user, photo: '/assets/imgs/profile.svg' };