@igo2/context 21.0.0-next.51 → 21.0.0-next.53

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.
@@ -71,6 +71,7 @@ import { PanelComponent } from '@igo2/common/panel';
71
71
  const ServiceType = [
72
72
  'wms',
73
73
  'wmts',
74
+ 'xyz',
74
75
  'arcgisrest',
75
76
  'imagearcgisrest',
76
77
  'tilearcgisrest'
@@ -82,6 +83,7 @@ var ServiceTypeEnum;
82
83
  ServiceTypeEnum[ServiceTypeEnum["arcgisrest"] = 2] = "arcgisrest";
83
84
  ServiceTypeEnum[ServiceTypeEnum["imagearcgisrest"] = 3] = "imagearcgisrest";
84
85
  ServiceTypeEnum[ServiceTypeEnum["tilearcgisrest"] = 4] = "tilearcgisrest";
86
+ ServiceTypeEnum[ServiceTypeEnum["xyz"] = 5] = "xyz";
85
87
  })(ServiceTypeEnum || (ServiceTypeEnum = {}));
86
88
  const BaseLayerParamsKeys = [
87
89
  'visible',
@@ -3138,19 +3140,11 @@ class ContextPermissionItemComponent {
3138
3140
  user = input(...(ngDevMode ? [undefined, { debugName: "user" }] : /* istanbul ignore next */ []));
3139
3141
  type = computed(() => {
3140
3142
  const permission = this.permission();
3141
- return isContextPermissionUser(permission)
3142
- ? this.isUserExtranet(permission)
3143
- ? 'Extranet'
3144
- : 'Intranet'
3145
- : 'Profil';
3143
+ return isContextPermissionUser(permission) ? 'Intranet' : 'Profil';
3146
3144
  }, ...(ngDevMode ? [{ debugName: "type" }] : /* istanbul ignore next */ []));
3147
3145
  icon = computed(() => {
3148
3146
  const permission = this.permission();
3149
- return permission.profilType === 'user'
3150
- ? this.isUserExtranet(permission)
3151
- ? 'person'
3152
- : 'person_shield'
3153
- : 'badge';
3147
+ return permission.profilType === 'user' ? 'person_shield' : 'badge';
3154
3148
  }, ...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
3155
3149
  canDelete = computed(() => {
3156
3150
  const permission = this.permission();
@@ -3160,10 +3154,6 @@ class ContextPermissionItemComponent {
3160
3154
  }, ...(ngDevMode ? [{ debugName: "canDelete" }] : /* istanbul ignore next */ []));
3161
3155
  delete = output();
3162
3156
  isContextPermissionUser = isContextPermissionUser;
3163
- isUserExtranet(permission) {
3164
- return (isContextPermissionUser(permission) &&
3165
- permission.userSource.includes('extranet'));
3166
- }
3167
3157
  onDelete() {
3168
3158
  this.delete.emit(this.permission());
3169
3159
  }