@wolkabout/commons 0.0.18 → 0.0.20

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.
@@ -2756,6 +2756,8 @@ class RequiresPermissionDirective {
2756
2756
  permissions;
2757
2757
  set appRequiresPermission(permissions) {
2758
2758
  if (!permissions) {
2759
+ this.viewContainer.clear();
2760
+ this.viewContainer.createEmbeddedView(this.templateRef);
2759
2761
  return;
2760
2762
  }
2761
2763
  this.permissions.hasAnyPermission(Array.isArray(permissions) ? permissions : [permissions]).pipe(distinctUntilChanged()).subscribe((hasPermissions) => {
@@ -5158,15 +5160,15 @@ class MasterDetailsViewComponent {
5158
5160
  calculateWidth() {
5159
5161
  switch (this.displayRatio) {
5160
5162
  case 'full':
5161
- return 'basis-1/5 max-w-1/5';
5163
+ return 'w-1/5 max-w-1/5';
5162
5164
  case 'wide':
5163
- return 'basis-1/4 max-w-1/4';
5165
+ return 'w-1/4 max-w-1/4';
5164
5166
  case 'medium':
5165
- return 'basis-1/3 max-w-1/3';
5167
+ return 'w-1/3 max-w-1/3';
5166
5168
  case 'narrow':
5167
- return 'basis-1/2 max-w-1/2';
5169
+ return 'w-1/2 max-w-1/2';
5168
5170
  case 'reverse':
5169
- return 'basis-3/4 max-w-3/4';
5171
+ return 'w-3/4 max-w-3/4';
5170
5172
  default:
5171
5173
  throw Error('Too deep!');
5172
5174
  }