import { LitElement, TemplateResult } from 'lit'; import { FromSchema } from 'json-schema-to-ts'; import '../shared/lit-icon.js'; import '../shared/lit-button.js'; import '../shared/lit-menu.js'; import '../shared/lit-menu-item.js'; import '../shared/lit-checkbox.js'; import '../shared/lit-input.js'; import '../shared/simple-popper.js'; import '../assets/illustration/not-found.js'; import '../shared/lit-tooltip.js'; import '../shared/lit-progress-bar.js'; import '../shared/lit-modal.js'; import '../shared/lit-modal-header.js'; import '../shared/lit-modal-body.js'; import '../shared/lit-modal-footer.js'; import '../shared/lit-select-field.js'; import '../shared/lit-select.js'; import '../shared/lit-label.js'; import '../shared/lit-icon-button.js'; import '../shared/lit-toggle.js'; import '../shared/lit-text-field.js'; import './lit-tabs-overview.js'; import { DateFormats } from './lit-data-grid-tanstack.js'; import type { LitDataGridTanstack } from './lit-data-grid-tanstack.js'; import { litCaseVariablesTabSchema, litCaseVariablesTabCellSchema } from '../schemas/index.js'; export type CaseVariablesTabProps = FromSchema; export type Cell = FromSchema; export type SupportedLang = 'cs' | 'en' | 'de' | 'sk' | 'pl' | 'hu' | 'fr' | 'it' | 'es' | 'sr'; export type cellSize = 0 | 1 | 2 | 3 | 4; export type TCaseVariable = Record; export type DataGridRefEntry = { id: string; label: string; ref: LitDataGridTanstack; }; export declare class LitCaseVariablesTab extends LitElement { rows: Cell[]; variables: Cell[]; hideTabWhen: boolean; userLang?: SupportedLang; allowedLang: string[]; dateFormat?: DateFormats; isLoading: boolean; enableSettings?: boolean; tabId?: string; gridVariables: boolean; onSettingsChanged?: Function; hostURL: string; dataGridRef?: LitDataGridTanstack; dataGridRefs?: DataGridRefEntry[]; private currentBreakpoint; private isOpen; private filterText; private isMobile; private expertModeModalOpen; private expertModeCell; private expertModeConfig; private _resolvedExpertValues; private _resizeListener; private sortableInstances; private settingsPanes; private operatorInputs; private conditionValueInputs; private hideOperatorInputs; private hideValueInputs; private sortableGroupId; private static VARIANT_CSS_VARS; private activeSettingsCell; private settingsPopperOpen; private normalizeConditions; private createDefaultCondition; private conditionSubFolders; private rebuildConditionFolders; private buildSingleConditionFolder; private createCellSettingsConfig; private getOperatorOptionsForCell; private getDefaultOperatorForCell; private getVariableTypeByField; private getValueOptionsByField; private updateConditionalFormattingOperators; private updateHideConditionOperators; private addHideConditionValueInput; private addConditionalFormattingValueInput; private language; static styles: import("lit").CSSResult[]; private BREAKPOINTS; getBreakpoint(): "xl" | "lg" | "md" | "sm" | "xs"; handleResize(): void; connectedCallback(): void; disconnectedCallback(): void; firstUpdated(): void; private setFontWeight; private getAllAvailableVariables; private setConditionalFormatting; private addConditionToCell; private removeConditionFromCell; private setCellStyle; private setCellVariant; private setValueVariant; private enableCellCustomStyles; private enableValueCustomStyles; private destroySortables; private destroySettingsPanes; private toggleSettingsPane; private closeSettingsPopper; private getVariantColor; private colorizeVariantSelect; private sanitizeFieldName; private renderSettingsContent; updated(changedProperties: Map): void; private initializeTweakpaneWithRetry; private initializeTweakpane; private addCellTypeSpecificControls; private getCellTypeTabTitle; private addStringControls; private addLinkControls; private attachInfoTooltip; private addNumberControls; private addButtonControls; private addCurrencyControls; private addDateControls; private addProgressControls; private getVariableValue; private evaluateCondition; private computeCellStyles; private getCellVariantStyle; private computeValueStyles; private parseProgressValue; private computeProgressColor; private getValueVariantStyle; private shouldHideCell; private initSortable; private getLocaleLang; private handleSettingsChanged; setCellSize(size: cellSize, cell: Cell, breakpoint?: 'xs' | 'sm' | 'md' | 'lg' | 'xl'): void; setCellType(cell: Cell, type: Cell['type']): void; private setHideCondition; setHref(cell: Cell, href: string): void; setOpenInNewTab(cell: Cell, openInNewTab: boolean): void; setLinkType(cell: Cell, linkType: 'custom' | 'dynamic'): void; setNumberOfDecimal(cell: Cell, numberOfDecimal: number): void; setButtonVariant(cell: Cell, variant: Cell['buttonVariant']): void; setButtonColor(cell: Cell, color: Cell['buttonColor']): void; setButtonFullWidth(cell: Cell, fullWidth: boolean): void; setCurrencyType(cell: Cell, currencyType: Cell['currencyType']): void; setProgressMax(cell: Cell, progressMax: number): void; setProgressColor(cell: Cell, progressColor: 'primary' | 'success' | 'warning' | 'error' | 'info'): void; setCellHeaderName(cell: Cell, headerName: string): void; setCellValue(cell: Cell, value: string): void; removeCellFromRows(field: string): void; private closePopover; private toggleCustomPopover; get existingFields(): string[]; private toggleRowCell; private addCustomEmptyCell; private getHeaderActions; private getHeaderLabel; private getHeader; private handleButtonClick; private dispatchDynamicLinkEvent; private getCellButton; private getCellLink; private replaceDynamicVariables; private collapseEmptyPathSegments; private getLinkUrl; private formatDisplayValue; private getAllDataGridRefs; private hasAnyDataGridRef; private getDataGridBySource; private resolveExpertOperand; private computeExpertValue; private precomputeExpertValues; private getCellWithExpertValue; private openExpertModeModal; private saveExpertMode; private getGridColumnOptions; private getGridSourceOptions; private getExpertVariableOptions; private getExpertModePreviewValue; private computeProgressMaxExpertValue; private getProgressMaxPreviewValue; private getExpertOperandLabel; private renderExpertOperandSelector; private renderExpertModeModal; private getCellValue; private getCellDate; private static SUPPORTED_CURRENCIES; private resolveCurrencyType; private getCellCurrency; private getCellNumber; private resolveProgressMax; private getCellProgress; private parseBooleanValue; private getCellCheckbox; private getInlineCellValue; render(): TemplateResult | null; } declare global { interface HTMLElementTagNameMap { 'lit-case-variables-tab': LitCaseVariablesTab; } }