@gravitee/ui-particles-angular 7.52.0 → 7.53.0-apim-3442-menu-icon-9b5a91a

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.
@@ -4833,6 +4833,15 @@ class GioLicenseService {
4833
4833
  }
4834
4834
  return this.getLicense$().pipe(map(license => license == null || license.features.find(feat => feat === licenseOptions.feature) == null));
4835
4835
  }
4836
+ hasAllFeatures$(licenseOptions) {
4837
+ if (!licenseOptions) {
4838
+ return of(true);
4839
+ }
4840
+ if (licenseOptions?.find(o => o.feature != null && o.deployed === false) != null) {
4841
+ return of(false);
4842
+ }
4843
+ return this.getLicense$().pipe(map(license => license != null && licenseOptions?.every(o => license.features.find(feat => feat === o.feature) != null)));
4844
+ }
4836
4845
  getFeatureInfo(licenseOptions) {
4837
4846
  if (!licenseOptions.feature) {
4838
4847
  throw new Error(`feature is undefined`);