UNPKG

ag-grid-enterprise

Version:

Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue

1,317 lines (1,306 loc) 1.56 MB
var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropNames = Object.getOwnPropertyNames; var __hasOwnProp = Object.prototype.hasOwnProperty; var __export = (target, all) => { for (var name in all) __defProp(target, name, { get: all[name], enumerable: true }); }; var __copyProps = (to, from, except, desc) => { if (from && typeof from === "object" || typeof from === "function") { for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); } return to; }; var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default")); var __decorateClass = (decorators, target, key, kind) => { var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target; for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result; if (kind && result) __defProp(target, key, result); return result; }; // packages/ag-grid-enterprise/src/main.ts var main_exports = {}; __export(main_exports, { ALWAYS_SYNC_GLOBAL_EVENTS: () => ALWAYS_SYNC_GLOBAL_EVENTS, AbstractHeaderCellCtrl: () => AbstractHeaderCellCtrl, AdvancedFilterModule: () => AdvancedFilterModule, AgAbstractField: () => AgAbstractField, AgAbstractLabel: () => AgAbstractLabel2, AgAutocomplete: () => AgAutocomplete2, AgCheckbox: () => AgCheckbox, AgDialog: () => AgDialog5, AgGroupComponent: () => AgGroupComponent6, AgInputDateField: () => AgInputDateField2, AgInputNumberField: () => AgInputNumberField2, AgInputRange: () => AgInputRange, AgInputTextArea: () => AgInputTextArea, AgInputTextField: () => AgInputTextField3, AgMenuItemComponent: () => AgMenuItemComponent5, AgMenuItemRenderer: () => AgMenuItemRenderer2, AgMenuList: () => AgMenuList4, AgMenuPanel: () => AgMenuPanel, AgPanel: () => AgPanel2, AgPickerField: () => AgPickerField2, AgPromise: () => AgPromise8, AgPromiseStatus: () => AgPromiseStatus, AgRadioButton: () => AgRadioButton, AgRichSelect: () => AgRichSelect4, AgSelect: () => AgSelect8, AgSlider: () => AgSlider3, AgStackComponentsRegistry: () => AgStackComponentsRegistry, AgToggleButton: () => AgToggleButton5, AlignedGridsService: () => AlignedGridsService, AnimateShowChangeCellRenderer: () => AnimateShowChangeCellRenderer, AnimateSlideCellRenderer: () => AnimateSlideCellRenderer, AnimationFrameService: () => AnimationFrameService, AutoScrollService: () => AutoScrollService2, AutoWidthCalculator: () => AutoWidthCalculator, Autowired: () => Autowired81, BarColumnLabelPlacement: () => BarColumnLabelPlacement, BaseComponentWrapper: () => BaseComponentWrapper, Bean: () => Bean18, BeanStub: () => BeanStub36, Beans: () => Beans, BodyDropPivotTarget: () => BodyDropPivotTarget, BodyDropTarget: () => BodyDropTarget, CellComp: () => CellComp, CellCtrl: () => CellCtrl2, CellNavigationService: () => CellNavigationService2, CellPositionUtils: () => CellPositionUtils2, CellRangeType: () => CellRangeType3, ChangedPath: () => ChangedPath2, CheckboxCellEditor: () => CheckboxCellEditor, CheckboxCellRenderer: () => CheckboxCellRenderer, CheckboxSelectionComponent: () => CheckboxSelectionComponent, ClientSideRowModelSteps: () => ClientSideRowModelSteps, ClipboardModule: () => ClipboardModule, ColDefUtil: () => ColDefUtil, Column: () => Column, ColumnApi: () => ColumnApi, ColumnFactory: () => ColumnFactory, ColumnGroup: () => ColumnGroup, ColumnKeyCreator: () => ColumnKeyCreator, ColumnModel: () => ColumnModel, ColumnUtils: () => ColumnUtils, ColumnsToolPanelModule: () => ColumnsToolPanelModule, Component: () => Component64, ComponentUtil: () => ComponentUtil, Context: () => Context, CssClassApplier: () => CssClassApplier4, CssClassManager: () => CssClassManager, CtrlsService: () => CtrlsService, DataTypeService: () => DataTypeService, DateCellEditor: () => DateCellEditor, DateFilter: () => DateFilter, DateStringCellEditor: () => DateStringCellEditor, DisplayedGroupCreator: () => DisplayedGroupCreator, DragAndDropService: () => DragAndDropService7, DragService: () => DragService, DragSourceType: () => DragSourceType6, EnterpriseCoreModule: () => EnterpriseCoreModule, Environment: () => Environment, EventService: () => EventService3, Events: () => Events39, ExcelExportModule: () => ExcelExportModule, ExcelFactoryMode: () => ExcelFactoryMode2, ExpansionService: () => ExpansionService2, ExpressionService: () => ExpressionService, FilterManager: () => FilterManager, FiltersToolPanelModule: () => FiltersToolPanelModule, FloatingFilterMapper: () => FloatingFilterMapper, FocusService: () => FocusService, GROUP_AUTO_COLUMN_ID: () => GROUP_AUTO_COLUMN_ID3, Grid: () => Grid, GridApi: () => GridApi6, GridBodyComp: () => GridBodyComp, GridBodyCtrl: () => GridBodyCtrl, GridChartsModule: () => GridChartsModule, GridComp: () => GridComp, GridCoreCreator: () => GridCoreCreator, GridCtrl: () => GridCtrl, GridHeaderComp: () => GridHeaderComp, GridHeaderCtrl: () => GridHeaderCtrl, GridOptionsService: () => GridOptionsService, GroupCellRenderer: () => GroupCellRenderer, GroupCellRendererCtrl: () => GroupCellRendererCtrl, GroupInstanceIdCreator: () => GroupInstanceIdCreator, HeaderCellCtrl: () => HeaderCellCtrl, HeaderFilterCellComp: () => HeaderFilterCellComp, HeaderFilterCellCtrl: () => HeaderFilterCellCtrl, HeaderGroupCellCtrl: () => HeaderGroupCellCtrl, HeaderNavigationDirection: () => HeaderNavigationDirection, HeaderNavigationService: () => HeaderNavigationService, HeaderPositionUtils: () => HeaderPositionUtils, HeaderRowComp: () => HeaderRowComp, HeaderRowContainerComp: () => HeaderRowContainerComp, HeaderRowContainerCtrl: () => HeaderRowContainerCtrl, HeaderRowCtrl: () => HeaderRowCtrl, HeaderRowType: () => HeaderRowType, HorizontalDirection: () => HorizontalDirection, HorizontalResizeService: () => HorizontalResizeService, KeyCode: () => KeyCode12, LargeTextCellEditor: () => LargeTextCellEditor, LayoutCssClasses: () => LayoutCssClasses, LicenseManager: () => GridLicenseManager, LocaleService: () => LocaleService, Logger: () => Logger, LoggerFactory: () => LoggerFactory, ManagedFocusFeature: () => ManagedFocusFeature2, MasterDetailModule: () => MasterDetailModule, MenuModule: () => MenuModule, MenuService: () => MenuService, ModuleNames: () => ModuleNames20, ModuleRegistry: () => ModuleRegistry8, MouseEventService: () => MouseEventService, MoveColumnFeature: () => MoveColumnFeature, MultiFilter: () => MultiFilter, MultiFilterModule: () => MultiFilterModule, NavigationService: () => NavigationService, NumberCellEditor: () => NumberCellEditor, NumberFilter: () => NumberFilter, NumberSequence: () => NumberSequence2, Optional: () => Optional8, PaginationProxy: () => PaginationProxy, PillDragComp: () => PillDragComp3, PillDropZonePanel: () => PillDropZonePanel3, PinnedRowModel: () => PinnedRowModel, PivotDropZonePanel: () => PivotDropZonePanel, PopupComponent: () => PopupComponent2, PopupEditorWrapper: () => PopupEditorWrapper, PopupService: () => PopupService, PositionableFeature: () => PositionableFeature2, PostConstruct: () => PostConstruct76, PreConstruct: () => PreConstruct4, PreDestroy: () => PreDestroy9, PrimaryColsPanel: () => PrimaryColsPanel, PropertyKeys: () => PropertyKeys, ProvidedColumnGroup: () => ProvidedColumnGroup6, ProvidedFilter: () => ProvidedFilter3, Qualifier: () => Qualifier, QuerySelector: () => QuerySelector, RangeSelectionModule: () => RangeSelectionModule, RefSelector: () => RefSelector38, ResizeObserverService: () => ResizeObserverService, RichSelectModule: () => RichSelectModule, RowAnimationCssClasses: () => RowAnimationCssClasses, RowContainerComp: () => RowContainerComp, RowContainerCtrl: () => RowContainerCtrl, RowContainerName: () => RowContainerName, RowContainerType: () => RowContainerType, RowCtrl: () => RowCtrl, RowGroupDropZonePanel: () => RowGroupDropZonePanel, RowGroupingModule: () => RowGroupingModule, RowHighlightPosition: () => RowHighlightPosition, RowNode: () => RowNode3, RowNodeBlock: () => RowNodeBlock2, RowNodeBlockLoader: () => RowNodeBlockLoader, RowNodeSorter: () => RowNodeSorter, RowPositionUtils: () => RowPositionUtils2, RowRenderer: () => RowRenderer2, ScalarFilter: () => ScalarFilter, ScrollVisibleService: () => ScrollVisibleService, SelectCellEditor: () => SelectCellEditor, SelectableService: () => SelectableService, SelectionHandleType: () => SelectionHandleType5, ServerSideRowModelModule: () => ServerSideRowModelModule, ServerSideTransactionResultStatus: () => ServerSideTransactionResultStatus4, SetFilter: () => SetFilter, SetFilterModule: () => SetFilterModule, SetLeftFeature: () => SetLeftFeature, SideBarModule: () => SideBarModule, SimpleFilter: () => SimpleFilter, SortController: () => SortController, SortIndicatorComp: () => SortIndicatorComp, SparklinesModule: () => SparklinesModule, StandardMenuFactory: () => StandardMenuFactory, StatusBarModule: () => StatusBarModule, StylingService: () => StylingService, TabGuardClassNames: () => TabGuardClassNames, TabGuardComp: () => TabGuardComp5, TabGuardCtrl: () => TabGuardCtrl, TabbedLayout: () => TabbedLayout3, TemplateService: () => TemplateService, TextCellEditor: () => TextCellEditor, TextFilter: () => TextFilter2, TextFloatingFilter: () => TextFloatingFilter, Timer: () => Timer, ToolPanelColDefService: () => ToolPanelColDefService, TooltipFeature: () => TooltipFeature4, TooltipStateManager: () => TooltipStateManager, TouchListener: () => TouchListener2, UserComponentFactory: () => UserComponentFactory2, UserComponentRegistry: () => UserComponentRegistry, ValueCache: () => ValueCache, ValueFormatterService: () => ValueFormatterService, ValueParserService: () => ValueParserService, ValueService: () => ValueService2, ValuesDropZonePanel: () => ValuesDropZonePanel, VanillaFrameworkOverrides: () => VanillaFrameworkOverrides, VerticalDirection: () => VerticalDirection, ViewportRowModelModule: () => ViewportRowModelModule, VirtualList: () => VirtualList5, VirtualListDragFeature: () => VirtualListDragFeature3, _: () => _76, __FORCE_MODULE_DETECTION_AG_GRID_CORE_EXT: () => __FORCE_MODULE_DETECTION_AG_GRID_CORE_EXT, agCharts: () => agCharts, createGrid: () => createGrid2, exportMultipleSheetsAsExcel: () => exportMultipleSheetsAsExcel, getMultipleSheetsAsExcel: () => getMultipleSheetsAsExcel, getRowContainerTypeForName: () => getRowContainerTypeForName }); import { ModuleRegistry as ModuleRegistry7 } from "ag-grid-community"; import { ClientSideRowModelModule } from "ag-grid-community"; import { InfiniteRowModelModule } from "ag-grid-community"; import { CsvExportModule as CsvExportModule3 } from "ag-grid-community"; // enterprise-modules/advanced-filter/dist/package/main.esm.mjs import { ModuleNames as ModuleNames2 } from "ag-grid-community"; // enterprise-modules/core/src/agGridEnterpriseModule.ts import { ModuleNames } from "ag-grid-community"; // enterprise-modules/core/src/license/gridLicenseManager.ts import { Bean, BeanStub, PreConstruct } from "ag-grid-community"; // enterprise-modules/core/src/license/shared/md5.ts var MD5 = class { constructor() { this.ieCompatibility = false; } init() { this.ieCompatibility = this.md5("hello") != "5d41402abc4b2a76b9719d911017c592"; } md5cycle(x, k) { let a = x[0], b = x[1], c = x[2], d = x[3]; a = this.ff(a, b, c, d, k[0], 7, -680876936); d = this.ff(d, a, b, c, k[1], 12, -389564586); c = this.ff(c, d, a, b, k[2], 17, 606105819); b = this.ff(b, c, d, a, k[3], 22, -1044525330); a = this.ff(a, b, c, d, k[4], 7, -176418897); d = this.ff(d, a, b, c, k[5], 12, 1200080426); c = this.ff(c, d, a, b, k[6], 17, -1473231341); b = this.ff(b, c, d, a, k[7], 22, -45705983); a = this.ff(a, b, c, d, k[8], 7, 1770035416); d = this.ff(d, a, b, c, k[9], 12, -1958414417); c = this.ff(c, d, a, b, k[10], 17, -42063); b = this.ff(b, c, d, a, k[11], 22, -1990404162); a = this.ff(a, b, c, d, k[12], 7, 1804603682); d = this.ff(d, a, b, c, k[13], 12, -40341101); c = this.ff(c, d, a, b, k[14], 17, -1502002290); b = this.ff(b, c, d, a, k[15], 22, 1236535329); a = this.gg(a, b, c, d, k[1], 5, -165796510); d = this.gg(d, a, b, c, k[6], 9, -1069501632); c = this.gg(c, d, a, b, k[11], 14, 643717713); b = this.gg(b, c, d, a, k[0], 20, -373897302); a = this.gg(a, b, c, d, k[5], 5, -701558691); d = this.gg(d, a, b, c, k[10], 9, 38016083); c = this.gg(c, d, a, b, k[15], 14, -660478335); b = this.gg(b, c, d, a, k[4], 20, -405537848); a = this.gg(a, b, c, d, k[9], 5, 568446438); d = this.gg(d, a, b, c, k[14], 9, -1019803690); c = this.gg(c, d, a, b, k[3], 14, -187363961); b = this.gg(b, c, d, a, k[8], 20, 1163531501); a = this.gg(a, b, c, d, k[13], 5, -1444681467); d = this.gg(d, a, b, c, k[2], 9, -51403784); c = this.gg(c, d, a, b, k[7], 14, 1735328473); b = this.gg(b, c, d, a, k[12], 20, -1926607734); a = this.hh(a, b, c, d, k[5], 4, -378558); d = this.hh(d, a, b, c, k[8], 11, -2022574463); c = this.hh(c, d, a, b, k[11], 16, 1839030562); b = this.hh(b, c, d, a, k[14], 23, -35309556); a = this.hh(a, b, c, d, k[1], 4, -1530992060); d = this.hh(d, a, b, c, k[4], 11, 1272893353); c = this.hh(c, d, a, b, k[7], 16, -155497632); b = this.hh(b, c, d, a, k[10], 23, -1094730640); a = this.hh(a, b, c, d, k[13], 4, 681279174); d = this.hh(d, a, b, c, k[0], 11, -358537222); c = this.hh(c, d, a, b, k[3], 16, -722521979); b = this.hh(b, c, d, a, k[6], 23, 76029189); a = this.hh(a, b, c, d, k[9], 4, -640364487); d = this.hh(d, a, b, c, k[12], 11, -421815835); c = this.hh(c, d, a, b, k[15], 16, 530742520); b = this.hh(b, c, d, a, k[2], 23, -995338651); a = this.ii(a, b, c, d, k[0], 6, -198630844); d = this.ii(d, a, b, c, k[7], 10, 1126891415); c = this.ii(c, d, a, b, k[14], 15, -1416354905); b = this.ii(b, c, d, a, k[5], 21, -57434055); a = this.ii(a, b, c, d, k[12], 6, 1700485571); d = this.ii(d, a, b, c, k[3], 10, -1894986606); c = this.ii(c, d, a, b, k[10], 15, -1051523); b = this.ii(b, c, d, a, k[1], 21, -2054922799); a = this.ii(a, b, c, d, k[8], 6, 1873313359); d = this.ii(d, a, b, c, k[15], 10, -30611744); c = this.ii(c, d, a, b, k[6], 15, -1560198380); b = this.ii(b, c, d, a, k[13], 21, 1309151649); a = this.ii(a, b, c, d, k[4], 6, -145523070); d = this.ii(d, a, b, c, k[11], 10, -1120210379); c = this.ii(c, d, a, b, k[2], 15, 718787259); b = this.ii(b, c, d, a, k[9], 21, -343485551); x[0] = this.add32(a, x[0]); x[1] = this.add32(b, x[1]); x[2] = this.add32(c, x[2]); x[3] = this.add32(d, x[3]); } cmn(q, a, b, x, s, t) { a = this.add32(this.add32(a, q), this.add32(x, t)); return this.add32(a << s | a >>> 32 - s, b); } ff(a, b, c, d, x, s, t) { return this.cmn(b & c | ~b & d, a, b, x, s, t); } gg(a, b, c, d, x, s, t) { return this.cmn(b & d | c & ~d, a, b, x, s, t); } hh(a, b, c, d, x, s, t) { return this.cmn(b ^ c ^ d, a, b, x, s, t); } ii(a, b, c, d, x, s, t) { return this.cmn(c ^ (b | ~d), a, b, x, s, t); } md51(s) { const n = s.length; const state = [1732584193, -271733879, -1732584194, 271733878]; let i; for (i = 64; i <= s.length; i += 64) { this.md5cycle(state, this.md5blk(s.substring(i - 64, i))); } s = s.substring(i - 64); const tail = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; for (i = 0; i < s.length; i++) { tail[i >> 2] |= s.charCodeAt(i) << (i % 4 << 3); } tail[i >> 2] |= 128 << (i % 4 << 3); if (i > 55) { this.md5cycle(state, tail); for (i = 0; i < 16; i++) { tail[i] = 0; } } tail[14] = n * 8; this.md5cycle(state, tail); return state; } /* there needs to be support for Unicode here, * unless we pretend that we can redefine the MD-5 * algorithm for multi-byte characters (perhaps by adding every four 16-bit characters and * shortening the sum to 32 bits). Otherwise I suthis.ggest performing MD-5 as if every character * was two bytes--e.g., 0040 0025 = @%--but then how will an ordinary MD-5 sum be matched? * There is no way to standardize text to something like UTF-8 before transformation; speed cost is * utterly prohibitive. The JavaScript standard itself needs to look at this: it should start * providing access to strings as preformed UTF-8 8-bit unsigned value arrays. */ md5blk(s) { const md5blks = []; for (let i = 0; i < 64; i += 4) { md5blks[i >> 2] = s.charCodeAt(i) + (s.charCodeAt(i + 1) << 8) + (s.charCodeAt(i + 2) << 16) + (s.charCodeAt(i + 3) << 24); } return md5blks; } rhex(n) { const hex_chr = "0123456789abcdef".split(""); let s = "", j = 0; for (; j < 4; j++) { s += hex_chr[n >> j * 8 + 4 & 15] + hex_chr[n >> j * 8 & 15]; } return s; } hex(x) { for (let i = 0; i < x.length; i++) { x[i] = this.rhex(x[i]); } return x.join(""); } md5(s) { return this.hex(this.md51(s)); } add32(a, b) { return this.ieCompatibility ? this.add32Compat(a, b) : this.add32Std(a, b); } /* this function is much faster, so if possible we use it. Some IEs are the only ones I know of that need the idiotic second function, generated by an if clause. */ add32Std(a, b) { return a + b & 4294967295; } add32Compat(x, y) { const lsw = (x & 65535) + (y & 65535), msw = (x >> 16) + (y >> 16) + (lsw >> 16); return msw << 16 | lsw & 65535; } }; // enterprise-modules/core/src/license/shared/licenseManager.ts function missingOrEmpty(value) { return value == null || value.length === 0; } var LICENSE_TYPES = { "01": "GRID", "02": "CHARTS", "0102": "BOTH" }; var _LicenseManager = class _LicenseManager { constructor(document2) { this.watermarkMessage = void 0; this.totalMessageLength = 124; this.document = document2; this.md5 = new MD5(); this.md5.init(); } validateLicense() { const licenseDetails = this.getLicenseDetails(_LicenseManager.licenseKey); const currentLicenseName = `AG Grid ${licenseDetails.currentLicenseType === "BOTH" ? "and AG Charts " : ""}Enterprise`; const suppliedLicenseName = licenseDetails.suppliedLicenseType === void 0 ? "" : `AG ${licenseDetails.suppliedLicenseType === "BOTH" ? "Grid and AG Charts" : licenseDetails.suppliedLicenseType === "GRID" ? "Grid" : "Charts"} Enterprise`; if (licenseDetails.missing) { if (!this.isWebsiteUrl() || this.isForceWatermark()) { this.outputMissingLicenseKey(currentLicenseName); } } else if (licenseDetails.expired) { const gridReleaseDate = _LicenseManager.getGridReleaseDate(); const formattedReleaseDate = _LicenseManager.formatDate(gridReleaseDate); this.outputExpiredKey(licenseDetails.expiry, formattedReleaseDate, currentLicenseName, suppliedLicenseName); } else if (!licenseDetails.valid) { this.outputInvalidLicenseKey(!!licenseDetails.incorrectLicenseType, currentLicenseName, suppliedLicenseName); } else if (licenseDetails.isTrial && licenseDetails.trialExpired) { this.outputExpiredTrialKey(licenseDetails.expiry, currentLicenseName, suppliedLicenseName); } } static extractExpiry(license) { const restrictionHashed = license.substring(license.lastIndexOf("_") + 1, license.length); return new Date(parseInt(_LicenseManager.decode(restrictionHashed), 10)); } static extractLicenseComponents(licenseKey) { let cleanedLicenseKey = licenseKey.replace(/[\u200B-\u200D\uFEFF]/g, ""); cleanedLicenseKey = cleanedLicenseKey.replace(/\r?\n|\r/g, ""); if (licenseKey.length <= 32) { return { md5: null, license: licenseKey, version: null, isTrial: null }; } const hashStart = cleanedLicenseKey.length - 32; const md5 = cleanedLicenseKey.substring(hashStart); const license = cleanedLicenseKey.substring(0, hashStart); const [version, isTrial, type] = _LicenseManager.extractBracketedInformation(cleanedLicenseKey); return { md5, license, version, isTrial, type }; } getLicenseDetails(licenseKey) { const currentLicenseType = _LicenseManager.chartsLicenseManager ? "BOTH" : "GRID"; if (missingOrEmpty(licenseKey)) { return { licenseKey, valid: false, missing: true, currentLicenseType }; } const gridReleaseDate = _LicenseManager.getGridReleaseDate(); const { md5, license, version, isTrial, type } = _LicenseManager.extractLicenseComponents(licenseKey); let valid = md5 === this.md5.md5(license) && licenseKey.indexOf("For_Trialing_ag-Grid_Only") === -1; let trialExpired = void 0; let expired = void 0; let expiry = null; let incorrectLicenseType = false; let suppliedLicenseType = void 0; function handleTrial() { const now = /* @__PURE__ */ new Date(); trialExpired = expiry < now; expired = void 0; } if (valid) { expiry = _LicenseManager.extractExpiry(license); valid = !isNaN(expiry.getTime()); if (valid) { expired = gridReleaseDate > expiry; switch (version) { case "legacy": case "2": { if (isTrial) { handleTrial(); } break; } case "3": { if (missingOrEmpty(type)) { valid = false; } else { suppliedLicenseType = type; if (type !== LICENSE_TYPES["01"] && type !== LICENSE_TYPES["0102"] || currentLicenseType === "BOTH" && suppliedLicenseType !== "BOTH") { valid = false; incorrectLicenseType = true; } else if (isTrial) { handleTrial(); } } } } } } if (!valid) { return { licenseKey, valid, incorrectLicenseType, currentLicenseType, suppliedLicenseType }; } return { licenseKey, valid, expiry: _LicenseManager.formatDate(expiry), expired, version, isTrial, trialExpired, incorrectLicenseType, currentLicenseType, suppliedLicenseType }; } isDisplayWatermark() { return this.isForceWatermark() || !this.isLocalhost() && !this.isWebsiteUrl() && !missingOrEmpty(this.watermarkMessage); } getWatermarkMessage() { return this.watermarkMessage || ""; } getHostname() { const win = this.document.defaultView || window; const loc = win.location; const { hostname = "" } = loc; return hostname; } isForceWatermark() { const win = this.document.defaultView || window; const loc = win.location; const { pathname } = loc; return pathname ? pathname.indexOf("forceWatermark") !== -1 : false; } isWebsiteUrl() { const hostname = this.getHostname(); return hostname.match(/^((?:[\w-]+\.)?ag-grid\.com)$/) !== null; } isLocalhost() { const hostname = this.getHostname(); return hostname.match(/^(?:127\.0\.0\.1|localhost)$/) !== null; } static formatDate(date) { const monthNames = [ "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" ]; const day = date.getDate(); const monthIndex = date.getMonth(); const year = date.getFullYear(); return day + " " + monthNames[monthIndex] + " " + year; } static getGridReleaseDate() { return new Date(parseInt(_LicenseManager.decode(_LicenseManager.RELEASE_INFORMATION), 10)); } static decode(input) { const keystr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; let t = ""; let n, r, i; let s, o, u, a; let f = 0; const e = input.replace(/[^A-Za-z0-9+/=]/g, ""); while (f < e.length) { s = keystr.indexOf(e.charAt(f++)); o = keystr.indexOf(e.charAt(f++)); u = keystr.indexOf(e.charAt(f++)); a = keystr.indexOf(e.charAt(f++)); n = s << 2 | o >> 4; r = (o & 15) << 4 | u >> 2; i = (u & 3) << 6 | a; t = t + String.fromCharCode(n); if (u != 64) { t = t + String.fromCharCode(r); } if (a != 64) { t = t + String.fromCharCode(i); } } t = _LicenseManager.utf8_decode(t); return t; } static utf8_decode(input) { input = input.replace(/rn/g, "n"); let t = ""; for (let n = 0; n < input.length; n++) { const r = input.charCodeAt(n); if (r < 128) { t += String.fromCharCode(r); } else if (r > 127 && r < 2048) { t += String.fromCharCode(r >> 6 | 192); t += String.fromCharCode(r & 63 | 128); } else { t += String.fromCharCode(r >> 12 | 224); t += String.fromCharCode(r >> 6 & 63 | 128); t += String.fromCharCode(r & 63 | 128); } } return t; } static setChartsLicenseManager(dependantLicenseManager) { this.chartsLicenseManager = dependantLicenseManager; } static setLicenseKey(licenseKey) { this.licenseKey = licenseKey; if (this.chartsLicenseManager) { this.chartsLicenseManager.setLicenseKey(licenseKey, true); } } static extractBracketedInformation(licenseKey) { if (!licenseKey.includes("[")) { return ["legacy", false, void 0]; } const matches = licenseKey.match(/\[(.*?)\]/g).map((match) => match.replace("[", "").replace("]", "")); if (!matches || matches.length === 0) { return ["legacy", false, void 0]; } const isTrial = matches.filter((match) => match === "TRIAL").length === 1; const rawVersion = matches.filter((match) => match.indexOf("v") === 0)[0]; const version = rawVersion ? rawVersion.replace("v", "") : "legacy"; const type = LICENSE_TYPES[matches.filter((match) => LICENSE_TYPES[match])[0]]; return [version, isTrial, type]; } centerPadAndOutput(input) { const paddingRequired = this.totalMessageLength - input.length; console.error(input.padStart(paddingRequired / 2 + input.length, "*").padEnd(this.totalMessageLength, "*")); } padAndOutput(input, padding = "*", terminateWithPadding = "") { console.error(input.padEnd(this.totalMessageLength - terminateWithPadding.length, padding) + terminateWithPadding); } outputInvalidLicenseKey(incorrectLicenseType, currentLicenseName, suppliedLicenseName) { if (incorrectLicenseType) { this.centerPadAndOutput(""); this.centerPadAndOutput(` ${currentLicenseName} License `); this.centerPadAndOutput(" Incompatible License Key "); this.padAndOutput(`* Your license key is for ${suppliedLicenseName} only and does not cover you for ${currentLicenseName}.`, " ", "*"); this.padAndOutput("* Please contact info@ag-grid.com to obtain a combined license key.", " ", "*"); this.centerPadAndOutput(""); this.centerPadAndOutput(""); } else { this.centerPadAndOutput(""); this.centerPadAndOutput(` ${currentLicenseName} License `); this.centerPadAndOutput(" Invalid License Key "); this.padAndOutput(`* Your license key is not valid - please contact info@ag-grid.com to obtain a valid license.`, " ", "*"); this.centerPadAndOutput(""); this.centerPadAndOutput(""); } this.watermarkMessage = "Invalid License"; } outputExpiredTrialKey(formattedExpiryDate, currentLicenseName, suppliedLicenseName) { this.centerPadAndOutput(""); this.centerPadAndOutput(` ${currentLicenseName} License `); this.centerPadAndOutput(" Trial Period Expired. "); this.padAndOutput(`* Your trial only license for ${suppliedLicenseName} expired on ${formattedExpiryDate}.`, " ", "*"); this.padAndOutput("* Please email info@ag-grid.com to purchase a license.", " ", "*"); this.centerPadAndOutput(""); this.centerPadAndOutput(""); this.watermarkMessage = "Trial Period Expired"; } outputMissingLicenseKey(currentLicenseName) { this.centerPadAndOutput(""); this.centerPadAndOutput(` ${currentLicenseName} License `); this.centerPadAndOutput(" License Key Not Found "); this.padAndOutput(`* All ${currentLicenseName} features are unlocked for trial.`, " ", "*"); this.padAndOutput("* If you want to hide the watermark please email info@ag-grid.com for a trial license key.", " ", "*"); this.centerPadAndOutput(""); this.centerPadAndOutput(""); this.watermarkMessage = "For Trial Use Only"; } outputExpiredKey(formattedExpiryDate, formattedReleaseDate, currentLicenseName, suppliedLicenseName) { this.centerPadAndOutput(""); this.centerPadAndOutput(` ${currentLicenseName} License `); this.centerPadAndOutput(" Incompatible Software Version "); this.padAndOutput(`* Your license key works with versions of ${suppliedLicenseName} released before ${formattedExpiryDate}.`, " ", "*"); this.padAndOutput(`* The version you are trying to use was released on ${formattedReleaseDate}.`, " ", "*"); this.padAndOutput("* Please contact info@ag-grid.com to renew your license key.", " ", "*"); this.centerPadAndOutput(""); this.centerPadAndOutput(""); this.watermarkMessage = "License Expired"; } }; _LicenseManager.RELEASE_INFORMATION = "MTcxMDY5MjgwODc5NQ=="; var LicenseManager = _LicenseManager; // enterprise-modules/core/src/license/gridLicenseManager.ts var GridLicenseManager = class extends BeanStub { validateLicense() { this.licenseManager = new LicenseManager(this.gridOptionsService.getDocument()); this.licenseManager.validateLicense(); } static getLicenseDetails(licenseKey) { return new LicenseManager(null).getLicenseDetails(licenseKey); } isDisplayWatermark() { return this.licenseManager.isDisplayWatermark(); } getWatermarkMessage() { return this.licenseManager.getWatermarkMessage(); } static setLicenseKey(licenseKey) { LicenseManager.setLicenseKey(licenseKey); } static setChartsLicenseManager(chartsLicenseManager) { LicenseManager.setChartsLicenseManager(chartsLicenseManager); } }; __decorateClass([ PreConstruct ], GridLicenseManager.prototype, "validateLicense", 1); GridLicenseManager = __decorateClass([ Bean("licenseManager") ], GridLicenseManager); // enterprise-modules/core/src/license/watermark.ts import { Autowired as Autowired2, Component, PostConstruct, RefSelector } from "ag-grid-community"; var WatermarkComp = class extends Component { constructor() { super( /* html*/ `<div class="ag-watermark"> <div ref="eLicenseTextRef" class="ag-watermark-text"></div> </div>` ); } postConstruct() { const show = this.shouldDisplayWatermark(); this.setDisplayed(show); if (show) { this.eLicenseTextRef.innerText = this.licenseManager.getWatermarkMessage(); window.setTimeout(() => this.addCssClass("ag-opacity-zero"), 0); window.setTimeout(() => this.setDisplayed(false), 5e3); } } shouldDisplayWatermark() { return this.licenseManager.isDisplayWatermark(); } }; __decorateClass([ Autowired2("licenseManager") ], WatermarkComp.prototype, "licenseManager", 2); __decorateClass([ RefSelector("eLicenseTextRef") ], WatermarkComp.prototype, "eLicenseTextRef", 2); __decorateClass([ PostConstruct ], WatermarkComp.prototype, "postConstruct", 1); // enterprise-modules/core/src/version.ts var VERSION = "31.2.0"; // enterprise-modules/core/src/agGridEnterpriseModule.ts var EnterpriseCoreModule = { version: VERSION, moduleName: ModuleNames.EnterpriseCoreModule, beans: [GridLicenseManager], agStackComponents: [ { componentName: "AgWatermark", componentClass: WatermarkComp } ] }; // enterprise-modules/advanced-filter/dist/package/main.esm.mjs import { AgAutocomplete, Autowired as Autowired9, Component as Component8, PostConstruct as PostConstruct9, RefSelector as RefSelector5, _ as _12 } from "ag-grid-community"; import { AgDialog, Autowired as Autowired8, BeanStub as BeanStub3, Events as Events5, PostConstruct as PostConstruct8, _ as _11 } from "ag-grid-community"; import { Autowired as Autowired3, Component as Component2, Events, KeyCode, PostConstruct as PostConstruct2, _ as _2 } from "ag-grid-community"; import { Autowired as Autowired7, Component as Component7, PostConstruct as PostConstruct7, RefSelector as RefSelector4, TooltipFeature as TooltipFeature3, VirtualList as VirtualList3, _ as _10 } from "ag-grid-community"; import { Autowired as Autowired5, DragAndDropService, DragSourceType as DragSourceType2, Events as Events3, KeyCode as KeyCode4, PostConstruct as PostConstruct5, RefSelector as RefSelector2, TabGuardComp, TooltipFeature, _ as _8 } from "ag-grid-community"; import { AgRichSelect, _ as _22 } from "ag-grid-community"; import { BeanStub as BeanStub2, DragSourceType, PostConstruct as PostConstruct22, VirtualListDragFeature } from "ag-grid-community"; import { BeanStub as BeanStub22, KeyCode as KeyCode2, PostConstruct as PostConstruct3, _ as _3 } from "ag-grid-community"; import { Autowired as Autowired22, Component as Component3, _ as _4 } from "ag-grid-community"; import { AgInputDateField, AgInputNumberField, AgInputTextField, Autowired as Autowired32, Component as Component4, Events as Events2, KeyCode as KeyCode3, PostConstruct as PostConstruct4, RefSelector as RefSelector3, _ as _5 } from "ag-grid-community"; import { Autowired as Autowired4, Component as Component5 } from "ag-grid-community"; import { AgRichSelect as AgRichSelect2, _ as _7 } from "ag-grid-community"; import { Autowired as Autowired6, Component as Component6, Events as Events4, PostConstruct as PostConstruct6, RefSelector as RefSelector32, TooltipFeature as TooltipFeature2, _ as _9 } from "ag-grid-community"; import { Autowired as Autowired10, Bean as Bean2, BeanStub as BeanStub4, PostConstruct as PostConstruct10, _ as _13 } from "ag-grid-community"; import { Autowired as Autowired11, Bean as Bean22, BeanStub as BeanStub5, Events as Events6, PostConstruct as PostConstruct11, _ as _14 } from "ag-grid-community"; var __defProp2 = Object.defineProperty; var __defProps = Object.defineProperties; var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor; var __getOwnPropDescs = Object.getOwnPropertyDescriptors; var __getOwnPropSymbols = Object.getOwnPropertySymbols; var __hasOwnProp2 = Object.prototype.hasOwnProperty; var __propIsEnum = Object.prototype.propertyIsEnumerable; var __defNormalProp = (obj, key, value) => key in obj ? __defProp2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; var __spreadValues = (a, b) => { for (var prop in b || (b = {})) if (__hasOwnProp2.call(b, prop)) __defNormalProp(a, prop, b[prop]); if (__getOwnPropSymbols) for (var prop of __getOwnPropSymbols(b)) { if (__propIsEnum.call(b, prop)) __defNormalProp(a, prop, b[prop]); } return a; }; var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); var __decorateClass2 = (decorators, target, key, kind) => { var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc2(target, key) : target; for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result; if (kind && result) __defProp2(target, key, result); return result; }; var AdvancedFilterHeaderComp = class extends Component2 { constructor(enabled) { super( /* html */ ` <div class="ag-advanced-filter-header" role="row"> </div>` ); this.enabled = enabled; } postConstruct() { this.setupAdvancedFilter(this.enabled); this.addDestroyFunc(() => this.destroyBean(this.eAdvancedFilter)); this.addManagedListener(this.eventService, Events.EVENT_GRID_COLUMNS_CHANGED, () => this.onGridColumnsChanged()); this.addGuiEventListener("keydown", (event) => this.onKeyDown(event)); this.addGuiEventListener("focusout", (event) => { if (!this.getFocusableElement().contains(event.relatedTarget)) { this.focusService.clearAdvancedFilterColumn(); } }); } getFocusableElement() { var _a, _b; return (_b = (_a = this.eAdvancedFilter) == null ? void 0 : _a.getGui()) != null ? _b : this.getGui(); } setEnabled(enabled) { if (enabled === this.enabled) { return; } this.setupAdvancedFilter(enabled); } refresh() { var _a; (_a = this.eAdvancedFilter) == null ? void 0 : _a.refresh(); } getHeight() { return this.height; } setInputDisabled(disabled) { var _a; (_a = this.eAdvancedFilter) == null ? void 0 : _a.setInputDisabled(disabled); } setupAdvancedFilter(enabled) { const eGui = this.getGui(); if (enabled) { this.eAdvancedFilter = this.createBean(new AdvancedFilterComp()); const eAdvancedFilterGui = this.eAdvancedFilter.getGui(); this.eAdvancedFilter.addCssClass("ag-advanced-filter-header-cell"); this.height = this.columnModel.getFloatingFiltersHeight(); const height = `${this.height}px`; eGui.style.height = height; eGui.style.minHeight = height; this.setAriaRowIndex(); _2.setAriaRole(eAdvancedFilterGui, "gridcell"); _2.setAriaColIndex(eAdvancedFilterGui, 1); this.setAriaColumnCount(eAdvancedFilterGui); eGui.appendChild(eAdvancedFilterGui); } else { _2.clearElement(eGui); this.destroyBean(this.eAdvancedFilter); this.height = 0; } _2.setDisplayed(eGui, enabled); this.enabled = enabled; } setAriaColumnCount(eAdvancedFilterGui) { _2.setAriaColSpan(eAdvancedFilterGui, this.columnModel.getAllGridColumns().length); } setAriaRowIndex() { _2.setAriaRowIndex(this.getGui(), this.headerNavigationService.getHeaderRowCount()); } onGridColumnsChanged() { if (!this.eAdvancedFilter) { return; } this.setAriaColumnCount(this.eAdvancedFilter.getGui()); this.setAriaRowIndex(); } onKeyDown(event) { switch (event.key) { case KeyCode.ENTER: { if (this.hasFocus()) { if (this.focusService.focusInto(this.getFocusableElement())) { event.preventDefault(); } } break; } case KeyCode.ESCAPE: if (!this.hasFocus()) { this.getFocusableElement().focus(); } break; case KeyCode.UP: this.navigateUpDown(true, event); break; case KeyCode.DOWN: this.navigateUpDown(false, event); break; case KeyCode.TAB: if (this.hasFocus()) { this.navigateLeftRight(event); } else { const nextFocusableEl = this.focusService.findNextFocusableElement(this.getFocusableElement(), null, event.shiftKey); if (nextFocusableEl) { event.preventDefault(); nextFocusableEl.focus(); } else { this.navigateLeftRight(event); } } break; } } navigateUpDown(backwards, event) { if (this.hasFocus()) { if (this.focusService.focusNextFromAdvancedFilter(backwards)) { event.preventDefault(); } ; } } navigateLeftRight(event) { if (event.shiftKey ? this.focusService.focusLastHeader() : this.focusService.focusNextFromAdvancedFilter(false, true)) { event.preventDefault(); } } hasFocus() { const eDocument = this.gridOptionsService.getDocument(); return eDocument.activeElement === this.getFocusableElement(); } }; __decorateClass2([ Autowired3("columnModel") ], AdvancedFilterHeaderComp.prototype, "columnModel", 2); __decorateClass2([ Autowired3("focusService") ], AdvancedFilterHeaderComp.prototype, "focusService", 2); __decorateClass2([ Autowired3("headerNavigationService") ], AdvancedFilterHeaderComp.prototype, "headerNavigationService", 2); __decorateClass2([ PostConstruct2 ], AdvancedFilterHeaderComp.prototype, "postConstruct", 1); var AddDropdownComp = class extends AgRichSelect { constructor(params) { super(__spreadProps(__spreadValues({}, params), { template: ( /* html */ ` <div class="ag-picker-field" role="presentation"> <div ref="eLabel"></div> <div ref="eWrapper" class="ag-wrapper ag-picker-collapsed"> <div ref="eDisplayField" class="ag-picker-field-display"></div> <ag-input-text-field ref="eInput" class="ag-rich-select-field-input"></ag-input-text-field> <div ref="eIcon" class="ag-picker-field-icon" aria-hidden="true"></div> </div> </div>` ) })); this.params = params; } showPicker() { setTimeout(() => super.showPicker()); } hidePicker() { setTimeout(() => super.hidePicker()); } postConstruct() { super.postConstruct(); const { wrapperClassName, ariaLabel } = this.params; _22.setDisplayed(this.eDisplayField, false); if (wrapperClassName) { this.eWrapper.classList.add(wrapperClassName); } _22.setAriaLabelledBy(this.eWrapper, ""); _22.setAriaLabel(this.eWrapper, ariaLabel); } onEnterKeyDown(event) { _22.stopPropagationForAgGrid(event); if (this.isPickerDisplayed) { super.onEnterKeyDown(event); } else { event.preventDefault(); this.showPicker(); } } }; var _AdvancedFilterBuilderDragFeature = class _AdvancedFilterBuilderDragFeature2 extends BeanStub2 { constructor(comp, virtualList) { super(); this.comp = comp; this.virtualList = virtualList; } postConstruct() { this.createManagedBean(new VirtualListDragFeature( this.comp, this.virtualList, { dragSourceType: DragSourceType.AdvancedFilterBuilder, listItemDragStartEvent: _AdvancedFilterBuilderDragFeature2.EVENT_DRAG_STARTED, listItemDragEndEvent: _AdvancedFilterBuilderDragFeature2.EVENT_DRAG_ENDED, eventSource: this, getCurrentDragValue: (listItemDragStartEvent) => this.getCurrentDragValue(listItemDragStartEvent), isMoveBlocked: () => false, getNumRows: (comp) => comp.getNumItems(), moveItem: (currentDragValue, lastHoveredListItem) => this.moveItem(currentDragValue, lastHoveredListItem) } )); } getCurrentDragValue(listItemDragStartEvent) { return listItemDragStartEvent.item; } moveItem(currentDragValue, lastHoveredListItem) { this.comp.moveItem(currentDragValue, lastHoveredListItem); } }; _AdvancedFilterBuilderDragFeature.EVENT_DRAG_STARTED = "advancedFilterBuilderDragStarted"; _AdvancedFilterBuilderDragFeature.EVENT_DRAG_ENDED = "advancedFilterBuilderDragEnded"; __decorateClass2([ PostConstruct22 ], _AdvancedFilterBuilderDragFeature.prototype, "postConstruct", 1); var AdvancedFilterBuilderDragFeature = _AdvancedFilterBuilderDragFeature; var AdvancedFilterBuilderItemNavigationFeature = class extends BeanStub22 { constructor(eGui, focusWrapper, eFocusableComp) { super(); this.eGui = eGui; this.focusWrapper = focusWrapper; this.eFocusableComp = eFocusableComp; } postConstruct() { this.addManagedListener(this.eGui, "keydown", (event) => { switch (event.key) { case KeyCode2.TAB: if (!event.defaultPrevented) { _3.stopPropagationForAgGrid(event); } break; case KeyCode2.UP: case KeyCode2.DOWN: _3.stopPropagationForAgGrid(event); break; case KeyCode2.ESCAPE: if (_3.isStopPropagationForAgGrid(event)) { return; } const eDocument = this.gridOptionsService.getDocument(); if (this.eGui.contains(eDocument.activeElement)) { event.preventDefault(); _3.stopPropagationForAgGrid(event); this.focusWrapper.focus(); } break; } }); this.addManagedListener(this.focusWrapper, "keydown", (event) => { switch (event.key) { case KeyCode2.ENTER: if (_3.isStopPropagationForAgGrid(event)) { return; } const eDocument = this.gridOptionsService.getDocument(); if (eDocument.activeElement === this.focusWrapper) { event.preventDefault(); _3.stopPropagationForAgGrid(event); this.eFocusableComp.getFocusableElement().focus(); } break; } }); this.addManagedListener(this.focusWrapper, "focusin", () => { this.focusWrapper.classList.add("ag-advanced-filter-builder-virtual-list-item-highlight"); }); this.addManagedListener(this.focusWrapper, "focusout", (event) => { if (!this.focusWrapper.contains(event.relatedTarget)) { this.focusWrapper.classList.remove("ag-advanced-filter-builder-virtual-list-item-highlight"); } }); } }; __decorateClass2([ PostConstruct3 ], AdvancedFilterBuilderItemNavigationFeature.prototype, "postConstruct", 1); function getAdvancedFilterBuilderAddButtonParams(translate, maxPickerWidth) { return { pickerAriaLabelKey: "ariaLabelAdvancedFilterBuilderAddField", pickerAriaLabelValue: "Advanced Filter Builder Add Field", pickerType: "ag-list", valueList: [{ key: "condition", displayValue: translate("advancedFilterBuilderAddCondition") }, { key: "join", displayValue: translate("advancedFilterBuilderAddJoin") }], valueFormatter: (value) => { var _a; return value == null ? null : (_a = value.displayValue) != null ? _a : value.key; }, pickerIcon: "advancedFilterBuilderAdd", maxPickerWidth: `${maxPickerWidth != null ? maxPickerWidth : 120}px`, wrapperClassName: "ag-advanced-filter-builder-item-button", ariaLabel: translate("advancedFilterBuilderAddButtonTooltip") }; } var AdvancedFilterBuilderEvents = class { }; AdvancedFilterBuilderEvents.EVENT_ADDED = "advancedFilterBuilderAdded"; AdvancedFilterBuilderEvents.EVENT_MOVED = "advancedFilterBuilderMoved"; AdvancedFilterBuilderEvents.EVENT_REMOVED = "advancedFilterBuilderRemoved"; AdvancedFilterBuilderEvents.EVENT_VALUE_CHANGED = "advancedFilterBuilderValueChanged"; AdvancedFilterBuilderEvents.EVENT_VALID_CHANGED = "advancedFilterBuilderValidChanged"; var ConditionPillWrapperComp = class extends Component3 { constructor() { super( /* html */ ` <div class="ag-advanced-filter-builder-item-condition" role="presentation"></div> ` ); this.validationMessage = null; } init(params) { const { item, createPill } = params; this.item = item; this.createPill = createPill; this.filterModel = item.filterModel; this.setupColumnCondition(this.filterModel); this.validate(); this.addDestroyFunc(() => this.destroyBeans([this.eColumnPill, this.eOperatorPill, this.eOperandPill])); } getDragName() { return this.filterModel.colId ? this.advancedFilterExpressionService.parseColumnFilterModel(this.filterModel) : this.getDefaultColumnDisplayValue(); } getAriaLabel() { return `${this.advancedFilterExpressionService.translate("ariaAdvancedFilterBuilderFilterItem")} ${this.getDragName()}`; } getValidationMessage() { return this.validationMessage; } getFocusableElement() { return this.eColumnPill.getFocusableElement(); } setupColumnCondition(filterModel) { var _a; const columnDetails = this.advancedFilterExpressionService.getColumnDetails(filterModel.colId); this.baseCellDataType = columnDetails.baseCellDataType; this.column = columnDetails.column; this.numOperands = this.getNumOperands(this.getOperatorKey()); this.eColumnPill = this.createPill({ key: this.getColumnKey(), displayValue: (_a = this.getColumnDisplayValue()) != null ? _a : this.getDefaultColumnDisplayValue(), cssClass: "ag-advanced-filter-builder-column-pill", isSelect: true, getEditorParams: () => ({ values: this.advancedFilterExpressionService.getColumnAutocompleteEntries() }), update: (key) => this.setColumnKey(key), pickerAriaLabelKey: "ariaLabelAdvancedFilterBuilderColumnSelectField", pickerAriaLabelValue: "Advanced Filter Builder Column Select Field", ariaLabel: this.advancedFilterExpressionService.translate("ariaAdvancedFilterBuilderColumn") }); this.getGui().appendChild(this.eColumnPill.getGui()); if (_4.exists(this.getColumnKey())) { this.createOperatorPill(); if (this.hasOperand()) { this.createOperandPill(); } } } createOperatorPill() { var _a; this.eOperatorPill = this.createPill({ key: this.getOperatorKey(), displayValue: (_a = this.getOperatorDisplayValue()) != null ? _a : this.getDefaultOptionSelectValue(), cssClass: "ag-advanced-filter-builder-option-pill", isSelect: true, getEditorParams: () => ({ values: this.getOperatorAutocompleteEntries() }), update: (key) => this.setOperatorKey(key), pickerAriaLabelKey: "ariaLabelAdvancedFilterBuilderO