| Current Path : /var/www/homesaver/www/bitrix/js/ui/accessrights/v2/src/service/value/type/ |
| Current File : /var/www/homesaver/www/bitrix/js/ui/accessrights/v2/src/service/value/type/base.js |
import { Type } from 'main.core';
import type { AccessRightItem } from '../../../store/model/access-rights-model';
import { type ValueType } from './value-type';
/**
* @abstract
*/
export class Base implements ValueType
{
/*
* @abstract
*/
getComponentName(): string
{
throw new Error('not implemented');
}
getEmptyValue(item: AccessRightItem): Set<string>
{
return item.emptyValue ?? new Set();
}
getMinValue(item: AccessRightItem): ?Set<string>
{
if (!Type.isNil(item.minValue))
{
return item.minValue;
}
return null;
}
getMaxValue(item: AccessRightItem): ?Set<string>
{
if (!Type.isNil(item.maxValue))
{
return item.maxValue;
}
return null;
}
isRowValueConfigurable(): boolean
{
return true;
}
}