UNPKG

ag-grid-enterprise

Version:

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

1,199 lines (1,188 loc) 1.57 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 __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); 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: () => import_core217.ALWAYS_SYNC_GLOBAL_EVENTS, AbstractHeaderCellCtrl: () => import_core218.AbstractHeaderCellCtrl, AdvancedFilterModule: () => AdvancedFilterModule, AgAbstractField: () => import_core219.AgAbstractField, AgAbstractLabel: () => import_core220.AgAbstractLabel, AgAutocomplete: () => import_core221.AgAutocomplete, AgCheckbox: () => import_core222.AgCheckbox, AgDialog: () => import_core223.AgDialog, AgGroupComponent: () => import_core224.AgGroupComponent, AgInputDateField: () => import_core225.AgInputDateField, AgInputNumberField: () => import_core226.AgInputNumberField, AgInputRange: () => import_core227.AgInputRange, AgInputTextArea: () => import_core228.AgInputTextArea, AgInputTextField: () => import_core229.AgInputTextField, AgMenuItemComponent: () => import_core230.AgMenuItemComponent, AgMenuItemRenderer: () => import_core231.AgMenuItemRenderer, AgMenuList: () => import_core232.AgMenuList, AgMenuPanel: () => import_core233.AgMenuPanel, AgPanel: () => import_core234.AgPanel, AgPickerField: () => import_core235.AgPickerField, AgPromise: () => import_core236.AgPromise, AgPromiseStatus: () => import_core237.AgPromiseStatus, AgRadioButton: () => import_core238.AgRadioButton, AgRichSelect: () => import_core239.AgRichSelect, AgSelect: () => import_core240.AgSelect, AgSlider: () => import_core241.AgSlider, AgStackComponentsRegistry: () => import_core242.AgStackComponentsRegistry, AgToggleButton: () => import_core243.AgToggleButton, AlignedGridsService: () => import_core244.AlignedGridsService, AnimateShowChangeCellRenderer: () => import_core245.AnimateShowChangeCellRenderer, AnimateSlideCellRenderer: () => import_core246.AnimateSlideCellRenderer, AnimationFrameService: () => import_core247.AnimationFrameService, AutoScrollService: () => import_core248.AutoScrollService, AutoWidthCalculator: () => import_core249.AutoWidthCalculator, Autowired: () => import_core250.Autowired, BarColumnLabelPlacement: () => import_core251.BarColumnLabelPlacement, BaseComponentWrapper: () => import_core252.BaseComponentWrapper, Bean: () => import_core253.Bean, BeanStub: () => import_core254.BeanStub, Beans: () => import_core255.Beans, BodyDropPivotTarget: () => import_core256.BodyDropPivotTarget, BodyDropTarget: () => import_core257.BodyDropTarget, CellComp: () => import_core258.CellComp, CellCtrl: () => import_core259.CellCtrl, CellNavigationService: () => import_core260.CellNavigationService, CellPositionUtils: () => import_core261.CellPositionUtils, CellRangeType: () => import_core262.CellRangeType, ChangedPath: () => import_core263.ChangedPath, CheckboxCellEditor: () => import_core264.CheckboxCellEditor, CheckboxCellRenderer: () => import_core265.CheckboxCellRenderer, CheckboxSelectionComponent: () => import_core266.CheckboxSelectionComponent, ClientSideRowModelSteps: () => import_core267.ClientSideRowModelSteps, ClipboardModule: () => ClipboardModule, ColDefUtil: () => import_core268.ColDefUtil, Column: () => import_core269.Column, ColumnApi: () => import_core270.ColumnApi, ColumnFactory: () => import_core271.ColumnFactory, ColumnGroup: () => import_core272.ColumnGroup, ColumnKeyCreator: () => import_core273.ColumnKeyCreator, ColumnModel: () => import_core274.ColumnModel, ColumnUtils: () => import_core275.ColumnUtils, ColumnsToolPanelModule: () => ColumnsToolPanelModule, Component: () => import_core276.Component, ComponentUtil: () => import_core277.ComponentUtil, Context: () => import_core278.Context, CssClassApplier: () => import_core279.CssClassApplier, CssClassManager: () => import_core280.CssClassManager, CtrlsService: () => import_core281.CtrlsService, DataTypeService: () => import_core282.DataTypeService, DateCellEditor: () => import_core283.DateCellEditor, DateFilter: () => import_core284.DateFilter, DateStringCellEditor: () => import_core285.DateStringCellEditor, DisplayedGroupCreator: () => import_core286.DisplayedGroupCreator, DragAndDropService: () => import_core287.DragAndDropService, DragService: () => import_core288.DragService, DragSourceType: () => import_core289.DragSourceType, EnterpriseCoreModule: () => EnterpriseCoreModule, Environment: () => import_core290.Environment, EventService: () => import_core291.EventService, Events: () => import_core292.Events, ExcelExportModule: () => ExcelExportModule, ExcelFactoryMode: () => import_core293.ExcelFactoryMode, ExpansionService: () => import_core294.ExpansionService, ExpressionService: () => import_core295.ExpressionService, FilterManager: () => import_core296.FilterManager, FiltersToolPanelModule: () => FiltersToolPanelModule, FloatingFilterMapper: () => import_core297.FloatingFilterMapper, FocusService: () => import_core298.FocusService, GROUP_AUTO_COLUMN_ID: () => import_core299.GROUP_AUTO_COLUMN_ID, Grid: () => import_core300.Grid, GridApi: () => import_core301.GridApi, GridBodyComp: () => import_core302.GridBodyComp, GridBodyCtrl: () => import_core303.GridBodyCtrl, GridChartsModule: () => GridChartsModule, GridComp: () => import_core304.GridComp, GridCoreCreator: () => import_core305.GridCoreCreator, GridCtrl: () => import_core306.GridCtrl, GridHeaderComp: () => import_core307.GridHeaderComp, GridHeaderCtrl: () => import_core308.GridHeaderCtrl, GridOptionsService: () => import_core309.GridOptionsService, GroupCellRenderer: () => import_core310.GroupCellRenderer, GroupCellRendererCtrl: () => import_core311.GroupCellRendererCtrl, GroupInstanceIdCreator: () => import_core312.GroupInstanceIdCreator, HeaderCellCtrl: () => import_core313.HeaderCellCtrl, HeaderFilterCellComp: () => import_core314.HeaderFilterCellComp, HeaderFilterCellCtrl: () => import_core315.HeaderFilterCellCtrl, HeaderGroupCellCtrl: () => import_core316.HeaderGroupCellCtrl, HeaderNavigationDirection: () => import_core317.HeaderNavigationDirection, HeaderNavigationService: () => import_core318.HeaderNavigationService, HeaderPositionUtils: () => import_core319.HeaderPositionUtils, HeaderRowComp: () => import_core320.HeaderRowComp, HeaderRowContainerComp: () => import_core321.HeaderRowContainerComp, HeaderRowContainerCtrl: () => import_core322.HeaderRowContainerCtrl, HeaderRowCtrl: () => import_core323.HeaderRowCtrl, HeaderRowType: () => import_core324.HeaderRowType, HorizontalDirection: () => import_core325.HorizontalDirection, HorizontalResizeService: () => import_core326.HorizontalResizeService, KeyCode: () => import_core327.KeyCode, LargeTextCellEditor: () => import_core328.LargeTextCellEditor, LayoutCssClasses: () => import_core329.LayoutCssClasses, LicenseManager: () => GridLicenseManager, LocaleService: () => import_core330.LocaleService, Logger: () => import_core331.Logger, LoggerFactory: () => import_core332.LoggerFactory, ManagedFocusFeature: () => import_core333.ManagedFocusFeature, MasterDetailModule: () => MasterDetailModule, MenuModule: () => MenuModule, MenuService: () => import_core334.MenuService, ModuleNames: () => import_core335.ModuleNames, ModuleRegistry: () => import_core336.ModuleRegistry, MouseEventService: () => import_core337.MouseEventService, MoveColumnFeature: () => import_core338.MoveColumnFeature, MultiFilter: () => MultiFilter, MultiFilterModule: () => MultiFilterModule, NavigationService: () => import_core339.NavigationService, NumberCellEditor: () => import_core340.NumberCellEditor, NumberFilter: () => import_core341.NumberFilter, NumberSequence: () => import_core342.NumberSequence, Optional: () => import_core343.Optional, PaginationProxy: () => import_core344.PaginationProxy, PillDragComp: () => import_core345.PillDragComp, PillDropZonePanel: () => import_core346.PillDropZonePanel, PinnedRowModel: () => import_core347.PinnedRowModel, PivotDropZonePanel: () => PivotDropZonePanel, PopupComponent: () => import_core348.PopupComponent, PopupEditorWrapper: () => import_core349.PopupEditorWrapper, PopupService: () => import_core350.PopupService, PositionableFeature: () => import_core351.PositionableFeature, PostConstruct: () => import_core352.PostConstruct, PreConstruct: () => import_core353.PreConstruct, PreDestroy: () => import_core354.PreDestroy, PrimaryColsPanel: () => PrimaryColsPanel, PropertyKeys: () => import_core355.PropertyKeys, ProvidedColumnGroup: () => import_core356.ProvidedColumnGroup, ProvidedFilter: () => import_core357.ProvidedFilter, Qualifier: () => import_core358.Qualifier, QuerySelector: () => import_core359.QuerySelector, RangeSelectionModule: () => RangeSelectionModule, RefSelector: () => import_core360.RefSelector, ResizeObserverService: () => import_core361.ResizeObserverService, RichSelectModule: () => RichSelectModule, RowAnimationCssClasses: () => import_core362.RowAnimationCssClasses, RowContainerComp: () => import_core363.RowContainerComp, RowContainerCtrl: () => import_core364.RowContainerCtrl, RowContainerName: () => import_core365.RowContainerName, RowContainerType: () => import_core366.RowContainerType, RowCtrl: () => import_core367.RowCtrl, RowGroupDropZonePanel: () => RowGroupDropZonePanel, RowGroupingModule: () => RowGroupingModule, RowHighlightPosition: () => import_core368.RowHighlightPosition, RowNode: () => import_core369.RowNode, RowNodeBlock: () => import_core370.RowNodeBlock, RowNodeBlockLoader: () => import_core371.RowNodeBlockLoader, RowNodeSorter: () => import_core372.RowNodeSorter, RowPositionUtils: () => import_core373.RowPositionUtils, RowRenderer: () => import_core374.RowRenderer, ScalarFilter: () => import_core375.ScalarFilter, ScrollVisibleService: () => import_core376.ScrollVisibleService, SelectCellEditor: () => import_core377.SelectCellEditor, SelectableService: () => import_core378.SelectableService, SelectionHandleType: () => import_core379.SelectionHandleType, ServerSideRowModelModule: () => ServerSideRowModelModule, ServerSideTransactionResultStatus: () => import_core380.ServerSideTransactionResultStatus, SetFilter: () => SetFilter, SetFilterModule: () => SetFilterModule, SetLeftFeature: () => import_core381.SetLeftFeature, SideBarModule: () => SideBarModule, SimpleFilter: () => import_core382.SimpleFilter, SortController: () => import_core383.SortController, SortIndicatorComp: () => import_core384.SortIndicatorComp, SparklinesModule: () => SparklinesModule, StandardMenuFactory: () => import_core385.StandardMenuFactory, StatusBarModule: () => StatusBarModule, StylingService: () => import_core386.StylingService, TabGuardClassNames: () => import_core387.TabGuardClassNames, TabGuardComp: () => import_core388.TabGuardComp, TabGuardCtrl: () => import_core389.TabGuardCtrl, TabbedLayout: () => import_core390.TabbedLayout, TemplateService: () => import_core391.TemplateService, TextCellEditor: () => import_core392.TextCellEditor, TextFilter: () => import_core393.TextFilter, TextFloatingFilter: () => import_core394.TextFloatingFilter, Timer: () => import_core395.Timer, ToolPanelColDefService: () => ToolPanelColDefService, TooltipFeature: () => import_core396.TooltipFeature, TooltipStateManager: () => import_core397.TooltipStateManager, TouchListener: () => import_core398.TouchListener, UserComponentFactory: () => import_core399.UserComponentFactory, UserComponentRegistry: () => import_core400.UserComponentRegistry, ValueCache: () => import_core401.ValueCache, ValueFormatterService: () => import_core402.ValueFormatterService, ValueParserService: () => import_core403.ValueParserService, ValueService: () => import_core404.ValueService, ValuesDropZonePanel: () => ValuesDropZonePanel, VanillaFrameworkOverrides: () => import_core405.VanillaFrameworkOverrides, VerticalDirection: () => import_core406.VerticalDirection, ViewportRowModelModule: () => ViewportRowModelModule, VirtualList: () => import_core407.VirtualList, VirtualListDragFeature: () => import_core408.VirtualListDragFeature, _: () => import_core409._, __FORCE_MODULE_DETECTION_AG_GRID_CORE_EXT: () => __FORCE_MODULE_DETECTION_AG_GRID_CORE_EXT, agCharts: () => agCharts, createGrid: () => import_core410.createGrid, exportMultipleSheetsAsExcel: () => exportMultipleSheetsAsExcel, getMultipleSheetsAsExcel: () => getMultipleSheetsAsExcel, getRowContainerTypeForName: () => import_core411.getRowContainerTypeForName }); module.exports = __toCommonJS(main_exports); var import_core216 = require("ag-grid-community"); var import_client_side_row_model = require("ag-grid-community"); var import_infinite_row_model = require("ag-grid-community"); var import_csv_export7 = require("ag-grid-community"); // enterprise-modules/advanced-filter/dist/package/main.esm.mjs var import_core4 = require("ag-grid-community"); // enterprise-modules/core/src/agGridEnterpriseModule.ts var import_core3 = require("ag-grid-community"); // enterprise-modules/core/src/license/gridLicenseManager.ts var import_core = require("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 import_core.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([ import_core.PreConstruct ], GridLicenseManager.prototype, "validateLicense", 1); GridLicenseManager = __decorateClass([ (0, import_core.Bean)("licenseManager") ], GridLicenseManager); // enterprise-modules/core/src/license/watermark.ts var import_core2 = require("ag-grid-community"); var WatermarkComp = class extends import_core2.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([ (0, import_core2.Autowired)("licenseManager") ], WatermarkComp.prototype, "licenseManager", 2); __decorateClass([ (0, import_core2.RefSelector)("eLicenseTextRef") ], WatermarkComp.prototype, "eLicenseTextRef", 2); __decorateClass([ import_core2.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: import_core3.ModuleNames.EnterpriseCoreModule, beans: [GridLicenseManager], agStackComponents: [ { componentName: "AgWatermark", componentClass: WatermarkComp } ] }; // enterprise-modules/advanced-filter/dist/package/main.esm.mjs var import_core6 = require("ag-grid-community"); var import_core7 = require("ag-grid-community"); var import_core8 = require("ag-grid-community"); var import_core9 = require("ag-grid-community"); var import_core10 = require("ag-grid-community"); var import_core11 = require("ag-grid-community"); var import_core12 = require("ag-grid-community"); var import_core13 = require("ag-grid-community"); var import_core14 = require("ag-grid-community"); var import_core15 = require("ag-grid-community"); var import_core16 = require("ag-grid-community"); var import_core17 = require("ag-grid-community"); var import_core18 = require("ag-grid-community"); var import_core19 = require("ag-grid-community"); var import_core20 = require("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 import_core8.Component { 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, import_core8.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(); import_core8._.setAriaRole(eAdvancedFilterGui, "gridcell"); import_core8._.setAriaColIndex(eAdvancedFilterGui, 1); this.setAriaColumnCount(eAdvancedFilterGui); eGui.appendChild(eAdvancedFilterGui); } else { import_core8._.clearElement(eGui); this.destroyBean(this.eAdvancedFilter); this.height = 0; } import_core8._.setDisplayed(eGui, enabled); this.enabled = enabled; } setAriaColumnCount(eAdvancedFilterGui) { import_core8._.setAriaColSpan(eAdvancedFilterGui, this.columnModel.getAllGridColumns().length); } setAriaRowIndex() { import_core8._.setAriaRowIndex(this.getGui(), this.headerNavigationService.getHeaderRowCount()); } onGridColumnsChanged() { if (!this.eAdvancedFilter) { return; } this.setAriaColumnCount(this.eAdvancedFilter.getGui()); this.setAriaRowIndex(); } onKeyDown(event) { switch (event.key) { case import_core8.KeyCode.ENTER: { if (this.hasFocus()) { if (this.focusService.focusInto(this.getFocusableElement())) { event.preventDefault(); } } break; } case import_core8.KeyCode.ESCAPE: if (!this.hasFocus()) { this.getFocusableElement().focus(); } break; case import_core8.KeyCode.UP: this.navigateUpDown(true, event); break; case import_core8.KeyCode.DOWN: this.navigateUpDown(false, event); break; case import_core8.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([ (0, import_core8.Autowired)("columnModel") ], AdvancedFilterHeaderComp.prototype, "columnModel", 2); __decorateClass2([ (0, import_core8.Autowired)("focusService") ], AdvancedFilterHeaderComp.prototype, "focusService", 2); __decorateClass2([ (0, import_core8.Autowired)("headerNavigationService") ], AdvancedFilterHeaderComp.prototype, "headerNavigationService", 2); __decorateClass2([ import_core8.PostConstruct ], AdvancedFilterHeaderComp.prototype, "postConstruct", 1); var AddDropdownComp = class extends import_core11.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; import_core11._.setDisplayed(this.eDisplayField, false); if (wrapperClassName) { this.eWrapper.classList.add(wrapperClassName); } import_core11._.setAriaLabelledBy(this.eWrapper, ""); import_core11._.setAriaLabel(this.eWrapper, ariaLabel); } onEnterKeyDown(event) { import_core11._.stopPropagationForAgGrid(event); if (this.isPickerDisplayed) { super.onEnterKeyDown(event); } else { event.preventDefault(); this.showPicker(); } } }; var _AdvancedFilterBuilderDragFeature = class _AdvancedFilterBuilderDragFeature2 extends import_core12.BeanStub { constructor(comp, virtualList) { super(); this.comp = comp; this.virtualList = virtualList; } postConstruct() { this.createManagedBean(new import_core12.VirtualListDragFeature( this.comp, this.virtualList, { dragSourceType: import_core12.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([ import_core12.PostConstruct ], _AdvancedFilterBuilderDragFeature.prototype, "postConstruct", 1); var AdvancedFilterBuilderDragFeature = _AdvancedFilterBuilderDragFeature; var AdvancedFilterBuilderItemNavigationFeature = class extends import_core13.BeanStub { 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 import_core13.KeyCode.TAB: if (!event.defaultPrevented) { import_core13._.stopPropagationForAgGrid(event); } break; case import_core13.KeyCode.UP: case import_core13.KeyCode.DOWN: import_core13._.stopPropagationForAgGrid(event); break; case import_core13.KeyCode.ESCAPE: if (import_core13._.isStopPropagationForAgGrid(event)) { return; } const eDocument = this.gridOptionsService.getDocument(); if (this.eGui.contains(eDocument.activeElement)) { event.preventDefault(); import_core13._.stopPropagationForAgGrid(event); this.focusWrapper.focus(); } break; } }); this.addManagedListener(this.focusWrapper, "keydown", (event) => { switch (event.key) { case import_core13.KeyCode.ENTER: if (import_core13._.isStopPropagationForAgGrid(event)) { return; } const eDocument = this.gridOptionsService.getDocument(); if (eDocument.activeElement === this.focusWrapper) { event.preventDefault(); import_core13._.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([ import_core13.PostConstruct ], 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 import_core14.Component { 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.val