UNPKG

@adaptabletools/adaptable-cjs

Version:

Powerful data-agnostic HTML5 AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements

13 lines (12 loc) 610 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getAvailablePredicateDefinitions = void 0; const getAvailablePredicateDefinitions = (api, scope, alertType) => { let predicateDefs = []; if (alertType === 'DataChange' || alertType === 'Validation') { predicateDefs = api.alertApi.internalApi.getAlertPredicateDefsForScope(scope); predicateDefs = [...predicateDefs].sort((a, b) => a.id === 'AnyChange' ? -1 : b.id === 'AnyChange' ? 1 : 0); } return predicateDefs; }; exports.getAvailablePredicateDefinitions = getAvailablePredicateDefinitions;