{"version":3,"file":"ironsource-fusion-ui-components-table-common-entities.mjs","sources":["../../../projects/fusion-ui/components/table/common/entities/table-options.ts","../../../projects/fusion-ui/components/table/common/entities/table-column-type.enum.ts","../../../projects/fusion-ui/components/table/common/entities/table-row-classes.enum.ts","../../../projects/fusion-ui/components/table/common/entities/table.config.ts","../../../projects/fusion-ui/components/table/common/entities/ironsource-fusion-ui-components-table-common-entities.ts"],"sourcesContent":["import {TableMultipleActions, TableRowRemoveAction} from './table-row-remove-action';\nimport {TableColumn} from './table-column';\nimport {DynamicComponentConfiguration} from '@ironsource/fusion-ui/components/dynamic-components/common/entities';\nimport {IconData} from '@ironsource/fusion-ui/components/icon/common/entities';\nimport {EventEmitter} from '@angular/core';\nimport {MenuDropItem} from '@ironsource/fusion-ui/components/menu-drop';\nimport {EmptyStateType} from '@ironsource/fusion-ui/components/empty-state/v4';\n\nexport interface TableLabel {\n    text: string;\n    icon?: IconData;\n    tooltip?: string;\n}\n\nexport interface TableSearchOptions {\n    placeholder?: string;\n    onSearch?: EventEmitter<string>;\n    initalValue?: string;\n}\n\nexport interface TableOptions {\n    tableId?: string; // auto-generated table id\n    tableLabel?: TableLabel; // table label with info tooltip (v3)\n    noTableFooter?: boolean; // no display table footer\n    searchOptions?: TableSearchOptions; // table search (v3)\n    hasReturnToTopButton?: boolean; // has return to top button\n    scrollElementSelector?: string; // for vertically scroll listener - default table wrapper (v3)\n    stickyHeaderTopOffset?: number; // offset top (px) for stickyHeader in case scrollElementSelector exist\n    sortingType?: string; // 'external' for back-end sorting\n    remove?: TableRowRemoveAction;\n    rowActionsMenu?: TableMultipleActions;\n    isAllRowsSelectable?: boolean;\n    isLoadingOverlayMode?: boolean; // show data main loading as overlay on the whole table (if not set - default as true)\n    noDataMessage?: string;\n    noDataSubMessage?: string;\n    noDataImageBgUrl?: string; // custom image for empty table as background URL (v3)\n    emptyTableIcon?: string;\n    emptyTableType?: EmptyStateType; // used for empty table v4 state\n    customNoData?: DynamicComponentConfiguration; // user defined \"no data\" content\n    isGroupedTable?: boolean;\n    pagination?: TablePaginationOption;\n    hasTotalsRow?: boolean;\n    stickyHeader?: boolean; // is sticky header table\n    hideHeaderOnEmpty?: boolean; // is need to hide columns headers if table empty\n    cellBorders?: boolean;\n    rowStyle?: any;\n    rowHeight?: TableRowHeight;\n    rowTrackingOption?: string;\n    headerRowStyle?: any;\n    hasRowSpan?: boolean;\n    rowsExpandableOptions?: TableRowsExpandableOptions;\n    rowsOptions?: {\n        [rowNumber: number]: TableRowOptions;\n        global?: TableRowOptions;\n        headerRow?: TableRowOptions;\n        ignoredParentSelectorsRowClickEvent?: string[];\n    };\n    notAvailableText?: string;\n    isFloatingActionDisabled?(row: any, action?: MenuDropItem): boolean;\n    isRemoveIconHiddenForRow?(row: any): boolean;\n    infoIconForRowOnHover?(row: any): string;\n}\n\nexport interface TablePaginationOption {\n    enable: boolean;\n    loading?: boolean;\n    handleLoadingFromHost?: boolean;\n}\n\nexport interface TableRowOptions {\n    [optionName: string]: any;\n}\n\nexport interface TableRowMetaData {\n    readonly?: boolean;\n    inRequest?: boolean;\n    disabled?: boolean;\n    cellToolTip?: {[columnKey: string]: string};\n    rowspanColumnsData?: {[key: string]: number};\n    maxRowspanInColumn?: number;\n}\n\nexport type InnerEntityType = 'innerRows' | 'dynamicComponent'; // used in table v4 default is 'innerRows'\n\nexport interface TableRowsExpandableOptions {\n    key: string;\n    columns: TableColumn[];\n    innerEntityType?: InnerEntityType;\n    sticky?: boolean;\n    keyToIgnore?: string;\n    expandLevels?: number;\n    expendChunkSize?: number;\n}\n\nexport enum TableRowHeight {\n    Small = 'small',\n    Medium = 'medium',\n    Big = 'big'\n}\n","export enum TableColumnTypeEnum {\n    String,\n    Component,\n    Checkbox,\n    ToggleButton,\n    InputEdit,\n    Date,\n    Currency,\n    Number,\n    Percent\n}\n","/*\n * Created on 2020.2.26 By Andy Kononenko (andyk@ironsrc.com)\n */\nexport enum TableRowClassesEnum {\n    Selected = 'is-row-selected',\n    Disabled = 'is-row-disabled',\n    Loading = 'is-row-loading'\n}\n","import {InjectionToken} from '@angular/core';\nimport {TableModuleOptions} from './table-module-options';\nimport {ERROR_MESSAGES} from '@ironsource/fusion-ui/components/error-message/common/entities';\nimport {IconData} from '@ironsource/fusion-ui/components/icon/v1';\n\nexport const TABLE_OPTIONS_DEFAULT_VALUES: TableModuleOptions = {\n    errorMessages: ERROR_MESSAGES\n};\n\nexport const TABLE_OPTIONS_TOKEN = new InjectionToken<TableModuleOptions>('Table options');\n\nexport const DEFAULT_REMOVE_ICON = 'close';\nexport const DEFAULT_REMOVE_ICON_V3 = {iconName: 'delete', iconVersion: 'v3'};\nexport const DEFAULT_REMOVE_TOOLTIP_TEXT = 'Remove';\nexport const DEFAULT_REMOVE_TOOLTIP_WIDTH = '71';\nexport const CELL_PADDING = '20px';\n\nexport interface TableIconsConfigByStyle {\n    iconSort: IconData;\n    iconInfo: IconData;\n}\n\nexport const CONFIG_TABLE_BY_UI_STYLE: {[styleKey: string]: TableIconsConfigByStyle} = {\n    style_v1: {\n        iconSort: {iconName: 'arrow-sort-table', iconVersion: 'v1'},\n        iconInfo: {iconName: 'info-tooltip', iconVersion: 'v1'}\n    },\n    style_v2: {\n        iconSort: {iconName: 'arrow-sort-down', iconVersion: 'v2'},\n        iconInfo: {iconName: 'info-circle', iconVersion: 'v2'}\n    }\n};\n\nexport const MAXIMUM_EXPANDABLE_LEVEL = 2;\nexport const DEFAULT_EXPANDABLE_LEVEL = 1;\n\nexport const ROW_CLICK_SUPPRESS_FOR_PARENT_SELECTORS = [\n    'fusion-checkbox',\n    'fusion-toggle',\n    'fusion-input',\n    'fusion-icon.icon-edit',\n    'fusion-icon.icon-save',\n    'fusion-button',\n    '[fusion-button]',\n    'li.fu-menu-item'\n];\n\nexport const ROW_HOVERED_CLASS_NAME = 'fu-hovered';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;IA8FY,eAIX;AAJD,CAAA,UAAY,cA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