ids-enterprise-wc 1.15.9-patch.11 → 1.15.9-patch.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/chunks/{ids-chunk-4MSGTAOV-full.js → ids-chunk-5XYPHVID-full.js} +1 -1
  2. package/chunks/{ids-chunk-4MSGTAOV-full.js.map → ids-chunk-5XYPHVID-full.js.map} +2 -2
  3. package/chunks/{ids-chunk-SPEJ6VZH-full.js → ids-chunk-6YJ4HIUC-full.js} +24 -2
  4. package/chunks/ids-chunk-6YJ4HIUC-full.js.map +7 -0
  5. package/chunks/{ids-chunk-MZTBZCHG-full.js → ids-chunk-CVY6XSRY-full.js} +17 -4
  6. package/chunks/ids-chunk-CVY6XSRY-full.js.map +7 -0
  7. package/chunks/{ids-chunk-HR4HAGMR-full.js → ids-chunk-DSWFDICX-full.js} +221 -21
  8. package/chunks/ids-chunk-DSWFDICX-full.js.map +7 -0
  9. package/chunks/{ids-chunk-7NHSNXHZ-full.js → ids-chunk-O32SEXUF-full.js} +2 -2
  10. package/chunks/{ids-chunk-UD2BRVFR-full.js → ids-chunk-OP5EXDDT-full.js} +2 -2
  11. package/components/ids-accordion/ids-accordion.css +93 -9
  12. package/components/ids-button/ids-button.css +392 -43
  13. package/components/ids-calendar/ids-calendar.css +190 -265
  14. package/components/ids-checkbox/ids-checkbox.css +7 -580
  15. package/components/ids-data-grid/ids-data-grid-cell.js +1 -1
  16. package/components/ids-data-grid/ids-data-grid-column.d.ts +2 -0
  17. package/components/ids-data-grid/ids-data-grid-column.js +1 -1
  18. package/components/ids-data-grid/ids-data-grid-editors.js +1 -1
  19. package/components/ids-data-grid/ids-data-grid-filters.js +2 -2
  20. package/components/ids-data-grid/ids-data-grid-row.js +2 -2
  21. package/components/ids-data-grid/ids-data-grid.css +54 -1
  22. package/components/ids-data-grid/ids-data-grid.d.ts +18 -0
  23. package/components/ids-data-grid/ids-data-grid.js +6 -6
  24. package/components/ids-date-picker/ids-date-picker.css +59 -96
  25. package/components/ids-hyperlink/ids-hyperlink.css +15 -188
  26. package/components/ids-layout-grid/ids-layout-grid.css +10 -21300
  27. package/components/ids-list-box/ids-list-box.css +66 -98
  28. package/components/ids-list-view/ids-list-view.css +15 -112
  29. package/components/ids-menu/ids-menu.css +337 -3
  30. package/components/ids-modal/ids-modal.css +23 -94
  31. package/components/ids-pager/ids-pager.css +3 -37
  32. package/components/ids-toolbar/ids-toolbar.css +122 -12
  33. package/custom-elements.json +2832 -2738
  34. package/enterprise-wc.all.iife.js +254 -19
  35. package/enterprise-wc.all.iife.js.map +2 -2
  36. package/enterprise-wc.js +6 -6
  37. package/package.json +1 -1
  38. package/vscode.html-custom-data.json +1 -1
  39. package/chunks/ids-chunk-HR4HAGMR-full.js.map +0 -7
  40. package/chunks/ids-chunk-MZTBZCHG-full.js.map +0 -7
  41. package/chunks/ids-chunk-SPEJ6VZH-full.js.map +0 -7
  42. /package/chunks/{ids-chunk-7NHSNXHZ-full.js.map → ids-chunk-O32SEXUF-full.js.map} +0 -0
  43. /package/chunks/{ids-chunk-UD2BRVFR-full.js.map → ids-chunk-OP5EXDDT-full.js.map} +0 -0
@@ -9,4 +9,4 @@ var DEFAULT_COLUMN_MIN_WIDTH = 12;
9
9
  export {
10
10
  DEFAULT_COLUMN_MIN_WIDTH
11
11
  };
12
- //# sourceMappingURL=ids-chunk-4MSGTAOV-full.js.map
12
+ //# sourceMappingURL=ids-chunk-5XYPHVID-full.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/components/ids-data-grid/ids-data-grid-column.ts"],
4
- "sourcesContent": ["import { type IdsColorValue } from '../../utils/ids-color-utils/ids-color-utils';\nimport type IdsDataGrid from './ids-data-grid';\nimport { IdsDataGridEditor } from './ids-data-grid-editors';\n\ntype IdsDateNumberOptions = Omit<Intl.DateTimeFormatOptions, 'localeMatcher'> & Omit<Intl.NumberFormatOptions, 'localeMatcher'> & {\n localeMatcher?: 'best fit' | 'lookup';\n};\n\nexport interface IdsDataGridColumnFormatOptions extends IdsDateNumberOptions {\n /* Set the style of the number */\n style?: 'decimal' | 'currency' | 'percent' | 'unit' | any;\n /* Sets the incoming locale */\n locale?: string;\n /** Sets the group (thousands) seperator (to something outside the current locale) */\n group?: string;\n /** Sets Intl.NumberFormat option to use grouping */\n useGrouping?: boolean;\n /** Sets the decimal seperator (to something outside the current locale) */\n decimal?: string;\n /** Date format to use for parsing ect */\n dateFormat?: string;\n /** Date format to use for parsing ect (more generic) */\n format?: string;\n /** legacy pattern for date formats */\n pattern?: string;\n /** Tag for the picker that it shows time */\n showTime?: boolean;\n}\n\nexport interface IdsDataGridColumnGroup {\n /* Set the id for the column group object */\n id?: string;\n /* Set the title/name for the column group */\n name?: string;\n /* Set the number of columns to span */\n colspan: number,\n /** Align the column text to either `left`, `center` or `right` */\n align?: string;\n /** Name of the header icon to use for formatters that support it */\n headerIcon?: string;\n /** Sets the header icon tooltip content */\n headerIconTooltip?: string;\n}\n\nexport interface IdsDataGridTooltipCallback {\n /* Column id */\n columnId?: string;\n /* Column data */\n columnData?: any;\n /* Column index */\n columnIndex?: number;\n /* Column group id */\n columnGroupId?: string;\n /* Column group data */\n columnGroupData?: any;\n /* Column group index */\n columnGroupIndex?: number;\n /* Field data */\n fieldData?: any;\n /* The grid api object */\n grid?: any;\n /* Is header group */\n isHeaderGroup?: boolean;\n /* Row data */\n rowData?: any;\n /* Row index */\n rowIndex?: number,\n /* The current text content */\n text?: string;\n /* Type of tooltip as unique identifier */\n type?: string;\n}\n\nexport interface IdsDataGridDatePickerOptions {\n /** Option to show today or not (for date type filters) */\n showToday?: boolean;\n /** Option to show apply button or not (for date type filters) */\n showApply?: boolean;\n /** Option to show cancel button or not (for date type filters) */\n showCancel?: boolean;\n /** Option to show clear button or not (for date type filters) */\n showClear?: boolean;\n /** First day of the week (for date type filters) */\n firstDayOfWeek?: number;\n /** Whether or not to show week numbers in the picklist (for date type filters) */\n showPicklistWeek?: boolean;\n /** Whether or not to show a list of months in the picklist (for date type filters) */\n showPicklistMonth?: boolean;\n /** Whether or not to show a list of years in the picklist (for date type filters) */\n showPicklistYear?: boolean;\n /** Show week numbers in front of each week of date picker (for date type filters) */\n showWeekNumbers?: boolean;\n /** Set whether or not to show current time in the time picker dropdowns */\n useCurrentTime?: boolean;\n /** Whether or not the component should be a range picker */\n useRange?: boolean;\n}\n\nexport interface IdsDataGridTooltipOptions {\n /* The tooltip placement */\n placement?: 'top' | 'right' | 'bottom' | 'left'\n /* Sets tooltip edge horizontal space */\n x?: number;\n /* Sets tooltip edge vertical space */\n y?: number;\n /* The header tooltip placement */\n headerPlacement?: 'top' | 'right' | 'bottom' | 'left';\n /* Sets tooltip edge horizontal space */\n headerX?: number;\n /* Sets tooltip edge vertical space */\n headerY?: number;\n /* The header icon tooltip placement */\n headerIconPlacement?: 'top' | 'right' | 'bottom' | 'left';\n /* Sets tooltip edge horizontal space */\n headerIconX?: number;\n /* Sets tooltip edge vertical space */\n headerIconY?: number;\n /* The filter button tooltip placement */\n filterButtonPlacement?: 'top' | 'right' | 'bottom' | 'left';\n /* Sets tooltip edge horizontal space */\n filterButtonX?: number;\n /* Sets tooltip edge vertical space */\n filterButtonY?: number;\n}\n\nexport interface IdsDataGridEditorValidation {\n /* Custom validation function */\n check: (input: any) => boolean;\n /* Validation error message */\n message: string;\n /** Validation Message Translation key */\n messageId?: string;\n /* Validation rul id */\n id: string;\n}\n\nexport interface IdsDataGridHeaderTextName {\n /** The header text for one line */\n text: string;\n /** The font style to use */\n emphasis?: 'normal' | 'subtle';\n}\n\nexport interface IdsDataGridColumn {\n /** The columns unique id */\n id: string;\n /** The columns name */\n name?: string | Array<IdsDataGridHeaderTextName>;\n /** The columns field in the array to use */\n field?: string;\n /** The subsitute text to use (for hyperlink and some formatters) */\n text?: string | ((row: number, value: any, column: IdsDataGridColumn, index: Record<string, any>) => string | undefined);\n /** Max value of a range */\n max?: number;\n /** Mininum value of a range */\n min?: number;\n /** Adds expand/collapse icon to a column */\n showHeaderExpander?: boolean;\n /** Allow column sorting */\n sortable?: boolean;\n /** Allow column hide/show */\n hideable?: boolean;\n /** Allow column resizing */\n resizable?: boolean;\n /** Adds a drag indicator and allows the columns to be moved by dragging */\n reorderable?: boolean;\n /** Set a column width in pixel or percent */\n width?: number | string;\n /** When width is 'max-content', controls text measurement: true uses raw values, false (default) uses formatted values */\n useValueForSizing?: boolean;\n /** Set a min column width for resizing */\n minWidth?: number | string;\n /** Set a max column width for resizing */\n maxWidth?: number | string;\n /** Hide a column to be shown later */\n hidden?: boolean;\n /** Column Formatter Function */\n formatter?: (\n rowData: Record<string, unknown>, columnData: IdsDataGridColumn, index: number, parentDataGrid: IdsDataGrid\n ) => string;\n /** Set the column to checked or unchecked (filtering) */\n isChecked?: (value: boolean) => boolean;\n /** If column is selected */\n isSelected?: boolean;\n /** Enable Href / Link Columns */\n href?: string | ((rowData: Record<string, unknown>, columnData: IdsDataGridColumn) => string);\n /** Fires for clickable formatters (like button) */\n click?: (rowData: Record<string, unknown>, columnData: IdsDataGridColumn, event: MouseEvent) => void;\n /** Fires for menuId formatters (like button) */\n selected?: (rowData: Record<string, unknown>, columnData: IdsDataGridColumn, event: CustomEvent) => void;\n /** Selector for menu id */\n menuId?: string;\n /** Get the color dynamically from a function or as text */\n // eslint-disable-next-line max-len\n color?: IdsColorValue | ((row: number, value: any, column: IdsDataGridColumn, index: Record<string, any>) => string | undefined);\n /** Suppress the ids-color tooltip */\n suppressColorTooltip?: boolean;\n /** Get the size dynamically from a function or as text */\n size?: string | ((row: number, value: any, column: IdsDataGridColumn, index: Record<string, any>) => string | undefined);\n /** Options to pass to the formatter */\n formatOptions?: IdsDataGridColumnFormatOptions;\n /** Column Filter to use */\n filterType?: string | any;\n /** Column Filter options to show */\n filterConditions?: any[];\n /** Options to pass to the filter */\n filterOptions?: {\n /** The columns unique id */\n columnId?: string;\n /** Define a custom id for the inputs */\n customId?: string | ((columnData: IdsDataGridColumn) => string);\n /** The label in the filter */\n label?: string;\n /** The size of the input field */\n size?: string;\n /** The filter type */\n type?: string;\n /** Disable the filter */\n disabled?: boolean;\n /** Make the filter readonly */\n readonly?: boolean;\n /** Date formation to show (for date type filters) */\n format?: string;\n /** Placeholder to show for empty inputs */\n placeholder?: string;\n /** The interval between minutes (for time type filters) */\n minuteInterval?: number;\n /** The interval between seconds (for time type filters) */\n secondInterval?: number;\n /** Sets the auto select attribute (for time type filters) */\n autoselect?: boolean;\n /** Sets the auto update attribute (for time type filters) */\n autoupdate?: boolean;\n /** If the filter type is \"contents\" lets you set a blank string to a text value (matched by ID) */\n notFilteredItem?: { value: string, label: string }\n /** For filter type input, sets the text to all upper case when typed */\n uppercase?: boolean;\n /** For filter type input, sets the text max lenght when typed */\n maxlength?: number;\n /** Adds the autocomplete attribute to the input element allowing for browser autocomplete */\n browserAutocomplete?: string\n } & IdsDataGridDatePickerOptions;\n /** Lets you make a dynamic filter function */\n filterFunction?: any;\n /** True if the row is selected */\n rowSelected?: boolean;\n /** True if the row is activated */\n rowActivated?: boolean;\n /** Sets a custom css-part for styling the cell */\n cssPart?: string | ((args: object) => string);\n /** Sets a custom css-part for styling cell when it's selected */\n cellSelectedCssPart?: string | ((args: object) => string);\n /** Pass the type option to formatters that support it */\n type?: string;\n /** Disable the column with a boolean or a dynamic function */\n disabled?: boolean | ((row: number, value: any, col: IdsDataGridColumn, item: Record<string, any>) => boolean);\n /** Make the column readonly with a boolean or a dynamic function */\n readonly?: boolean | ((row: number, value: any, col: IdsDataGridColumn, item: Record<string, any>) => boolean);\n /** Column will not be styled as readonly when the readonly property is true */\n excludeReadonlyStyling?: boolean;\n /** Name of the icon too use for formatters that support it */\n icon?: string | ((row: number, value: any, column: IdsDataGridColumn, index: Record<string, any>) => string | undefined);\n /** Name of the header icon */\n headerIcon?: string;\n /** Align the column to either `left`, `center` or `right` */\n align?: string;\n /** Separately align the filter row contents to either `left`, `center`, or `right` */\n filterAlign?: string;\n /** Seperately align the header to either `left`, `center` or `right` */\n headerAlign?: string;\n /** Freeze the columns to either the `left` or `right` sides */\n frozen?: string;\n /** If a tree or expandable row will set the state of the row */\n rowExpanded?: boolean;\n /** Sets the tooltip options */\n tooltipOptions?: IdsDataGridTooltipOptions | ((options: IdsDataGridTooltipCallback) => IdsDataGridTooltipOptions);\n /** Sets the tooltip content */\n tooltip?: string | ((options: IdsDataGridTooltipCallback) => string | Promise<string>);\n /** Sets the header tooltip content */\n headerTooltip?: string;\n /** Sets the header icon tooltip content */\n headerIconTooltip?: string;\n /** Sets the header filter button tooltip content */\n filterButtonTooltip?: string;\n /** Sets the tooltip css part */\n tooltipCssPart?: string | ((options: IdsDataGridTooltipCallback) => string);\n /** Sets the header tooltip css part */\n headerTooltipCssPart?: string;\n /** Sets the header icon tooltip css part */\n headerIconTooltipCssPart?: string;\n /** Sets the header filter button tooltip css part */\n filterButtonTooltipCssPart?: string;\n /** Sets the hyperlink behavior. options: 'default' | 'no-select' | 'de-select' | 'none' */\n hyperlinkBehavior?: string;\n /** Sets the character count to reveal when cell value is masked */\n textMaskCharacter?: number;\n /** Setup an editor */\n editor?: {\n type: 'input' | 'date' | 'time' | 'checkbox' | 'dropdown' | 'datepicker' | 'timepicker' | 'tree' | 'lookup' | 'password',\n inline?: boolean,\n /** If true, the editor icon will always be visible */\n showEditorIcons?: boolean;\n editor?: IdsDataGridEditor,\n editorSettings?: Record<string, unknown>,\n editorValidation?: IdsDataGridEditorValidation,\n },\n /** If a true will set the text to uppercase */\n uppercase?: boolean | 'true' | ((type: 'body-cell' | 'header-cell', col: IdsDataGridColumn, index?: number, value?: any, item?: Record<string, any>) => boolean);\n /** If set to false the column will not be exported in exportToExcel functionality */\n exportable?: boolean\n /** Function to transform values during export */\n exportFormatter?: (value: unknown, rowData?: Record<any, unknown>) => unknown;\n /** If true, shows a red asterisk (*) next to the column header text to indicate a required field */\n required?: boolean;\n}\n\nexport const DEFAULT_COLUMN_MIN_WIDTH = 12;\n"],
5
- "mappings": ";;;;;;AA4TO,IAAM,2BAA2B;",
4
+ "sourcesContent": ["import { type IdsColorValue } from '../../utils/ids-color-utils/ids-color-utils';\nimport type IdsDataGrid from './ids-data-grid';\nimport { IdsDataGridEditor } from './ids-data-grid-editors';\n\ntype IdsDateNumberOptions = Omit<Intl.DateTimeFormatOptions, 'localeMatcher'> & Omit<Intl.NumberFormatOptions, 'localeMatcher'> & {\n localeMatcher?: 'best fit' | 'lookup';\n};\n\nexport interface IdsDataGridColumnFormatOptions extends IdsDateNumberOptions {\n /* Set the style of the number */\n style?: 'decimal' | 'currency' | 'percent' | 'unit' | any;\n /* Sets the incoming locale */\n locale?: string;\n /** Sets the group (thousands) seperator (to something outside the current locale) */\n group?: string;\n /** Sets Intl.NumberFormat option to use grouping */\n useGrouping?: boolean;\n /** Sets the decimal seperator (to something outside the current locale) */\n decimal?: string;\n /** Date format to use for parsing ect */\n dateFormat?: string;\n /** Date format to use for parsing ect (more generic) */\n format?: string;\n /** legacy pattern for date formats */\n pattern?: string;\n /** Tag for the picker that it shows time */\n showTime?: boolean;\n}\n\nexport interface IdsDataGridColumnGroup {\n /* Set the id for the column group object */\n id?: string;\n /* Set the title/name for the column group */\n name?: string;\n /* Set the number of columns to span */\n colspan: number,\n /** Align the column text to either `left`, `center` or `right` */\n align?: string;\n /** Name of the header icon to use for formatters that support it */\n headerIcon?: string;\n /** Sets the header icon tooltip content */\n headerIconTooltip?: string;\n}\n\nexport interface IdsDataGridTooltipCallback {\n /* Column id */\n columnId?: string;\n /* Column data */\n columnData?: any;\n /* Column index */\n columnIndex?: number;\n /* Column group id */\n columnGroupId?: string;\n /* Column group data */\n columnGroupData?: any;\n /* Column group index */\n columnGroupIndex?: number;\n /* Field data */\n fieldData?: any;\n /* The grid api object */\n grid?: any;\n /* Is header group */\n isHeaderGroup?: boolean;\n /* Row data */\n rowData?: any;\n /* Row index */\n rowIndex?: number,\n /* The current text content */\n text?: string;\n /* Type of tooltip as unique identifier */\n type?: string;\n}\n\nexport interface IdsDataGridDatePickerOptions {\n /** Option to show today or not (for date type filters) */\n showToday?: boolean;\n /** Option to show apply button or not (for date type filters) */\n showApply?: boolean;\n /** Option to show cancel button or not (for date type filters) */\n showCancel?: boolean;\n /** Option to show clear button or not (for date type filters) */\n showClear?: boolean;\n /** First day of the week (for date type filters) */\n firstDayOfWeek?: number;\n /** Whether or not to show week numbers in the picklist (for date type filters) */\n showPicklistWeek?: boolean;\n /** Whether or not to show a list of months in the picklist (for date type filters) */\n showPicklistMonth?: boolean;\n /** Whether or not to show a list of years in the picklist (for date type filters) */\n showPicklistYear?: boolean;\n /** Show week numbers in front of each week of date picker (for date type filters) */\n showWeekNumbers?: boolean;\n /** Set whether or not to show current time in the time picker dropdowns */\n useCurrentTime?: boolean;\n /** Whether or not the component should be a range picker */\n useRange?: boolean;\n}\n\nexport interface IdsDataGridTooltipOptions {\n /* The tooltip placement */\n placement?: 'top' | 'right' | 'bottom' | 'left'\n /* Sets tooltip edge horizontal space */\n x?: number;\n /* Sets tooltip edge vertical space */\n y?: number;\n /* The header tooltip placement */\n headerPlacement?: 'top' | 'right' | 'bottom' | 'left';\n /* Sets tooltip edge horizontal space */\n headerX?: number;\n /* Sets tooltip edge vertical space */\n headerY?: number;\n /* The header icon tooltip placement */\n headerIconPlacement?: 'top' | 'right' | 'bottom' | 'left';\n /* Sets tooltip edge horizontal space */\n headerIconX?: number;\n /* Sets tooltip edge vertical space */\n headerIconY?: number;\n /* The filter button tooltip placement */\n filterButtonPlacement?: 'top' | 'right' | 'bottom' | 'left';\n /* Sets tooltip edge horizontal space */\n filterButtonX?: number;\n /* Sets tooltip edge vertical space */\n filterButtonY?: number;\n}\n\nexport interface IdsDataGridEditorValidation {\n /* Custom validation function */\n check: (input: any) => boolean;\n /* Validation error message */\n message: string;\n /** Validation Message Translation key */\n messageId?: string;\n /* Validation rul id */\n id: string;\n}\n\nexport interface IdsDataGridHeaderTextName {\n /** The header text for one line */\n text: string;\n /** The font style to use */\n emphasis?: 'normal' | 'subtle';\n}\n\nexport interface IdsDataGridColumn {\n /** The columns unique id */\n id: string;\n /** The columns name */\n name?: string | Array<IdsDataGridHeaderTextName>;\n /** The columns field in the array to use */\n field?: string;\n /** The subsitute text to use (for hyperlink and some formatters) */\n text?: string | ((row: number, value: any, column: IdsDataGridColumn, index: Record<string, any>) => string | undefined);\n /** Max value of a range */\n max?: number;\n /** Mininum value of a range */\n min?: number;\n /** Adds expand/collapse icon to a column */\n showHeaderExpander?: boolean;\n /** Allow column sorting */\n sortable?: boolean;\n /** Allow column hide/show */\n hideable?: boolean;\n /** Allow column resizing */\n resizable?: boolean;\n /** Adds a drag indicator and allows the columns to be moved by dragging */\n reorderable?: boolean;\n /** Set a column width in pixel or percent */\n width?: number | string;\n /** When width is 'max-content', controls text measurement: true uses raw values, false (default) uses formatted values */\n useValueForSizing?: boolean;\n /** Set a min column width for resizing */\n minWidth?: number | string;\n /** Set a max column width for resizing */\n maxWidth?: number | string;\n /** Hide a column to be shown later */\n hidden?: boolean;\n /** Column Formatter Function */\n formatter?: (\n rowData: Record<string, unknown>, columnData: IdsDataGridColumn, index: number, parentDataGrid: IdsDataGrid\n ) => string;\n /** Set the column to checked or unchecked (filtering) */\n isChecked?: (value: boolean) => boolean;\n /** If column is selected */\n isSelected?: boolean;\n /** Enable Href / Link Columns */\n href?: string | ((rowData: Record<string, unknown>, columnData: IdsDataGridColumn) => string);\n /** Fires for clickable formatters (like button) */\n click?: (rowData: Record<string, unknown>, columnData: IdsDataGridColumn, event: MouseEvent) => void;\n /** Fires for menuId formatters (like button) */\n selected?: (rowData: Record<string, unknown>, columnData: IdsDataGridColumn, event: CustomEvent) => void;\n /** Selector for menu id */\n menuId?: string;\n /** Get the color dynamically from a function or as text */\n // eslint-disable-next-line max-len\n color?: IdsColorValue | ((row: number, value: any, column: IdsDataGridColumn, index: Record<string, any>) => string | undefined);\n /** Suppress the ids-color tooltip */\n suppressColorTooltip?: boolean;\n /** Get the size dynamically from a function or as text */\n size?: string | ((row: number, value: any, column: IdsDataGridColumn, index: Record<string, any>) => string | undefined);\n /** Options to pass to the formatter */\n formatOptions?: IdsDataGridColumnFormatOptions;\n /** Column Filter to use */\n filterType?: string | any;\n /** Column Filter options to show */\n filterConditions?: any[];\n /** Options to pass to the filter */\n filterOptions?: {\n /** The columns unique id */\n columnId?: string;\n /** Define a custom id for the inputs */\n customId?: string | ((columnData: IdsDataGridColumn) => string);\n /** The label in the filter */\n label?: string;\n /** The size of the input field */\n size?: string;\n /** The filter type */\n type?: string;\n /** Disable the filter */\n disabled?: boolean;\n /** Make the filter readonly */\n readonly?: boolean;\n /** Date formation to show (for date type filters) */\n format?: string;\n /** Placeholder to show for empty inputs */\n placeholder?: string;\n /** The interval between minutes (for time type filters) */\n minuteInterval?: number;\n /** The interval between seconds (for time type filters) */\n secondInterval?: number;\n /** Sets the auto select attribute (for time type filters) */\n autoselect?: boolean;\n /** Sets the auto update attribute (for time type filters) */\n autoupdate?: boolean;\n /** If the filter type is \"contents\" lets you set a blank string to a text value (matched by ID) */\n notFilteredItem?: { value: string, label: string }\n /** For filter type input, sets the text to all upper case when typed */\n uppercase?: boolean;\n /** For filter type input, sets the text max lenght when typed */\n maxlength?: number;\n /** Adds the autocomplete attribute to the input element allowing for browser autocomplete */\n browserAutocomplete?: string\n } & IdsDataGridDatePickerOptions;\n /** Lets you make a dynamic filter function */\n filterFunction?: any;\n /** True if the row is selected */\n rowSelected?: boolean;\n /** True if the row is activated */\n rowActivated?: boolean;\n /** Sets a custom css-part for styling the cell */\n cssPart?: string | ((args: object) => string);\n /** Sets a custom css-part for styling cell when it's selected */\n cellSelectedCssPart?: string | ((args: object) => string);\n /** Pass the type option to formatters that support it */\n type?: string;\n /** Disable the column with a boolean or a dynamic function */\n disabled?: boolean | ((row: number, value: any, col: IdsDataGridColumn, item: Record<string, any>) => boolean);\n /** Make the column readonly with a boolean or a dynamic function */\n readonly?: boolean | ((row: number, value: any, col: IdsDataGridColumn, item: Record<string, any>) => boolean);\n /** Column will not be styled as readonly when the readonly property is true */\n excludeReadonlyStyling?: boolean;\n /** Name of the icon too use for formatters that support it */\n icon?: string | ((row: number, value: any, column: IdsDataGridColumn, index: Record<string, any>) => string | undefined);\n /** Name of the header icon */\n headerIcon?: string;\n /** Align the column to either `left`, `center` or `right` */\n align?: string;\n /** Separately align the filter row contents to either `left`, `center`, or `right` */\n filterAlign?: string;\n /** Seperately align the header to either `left`, `center` or `right` */\n headerAlign?: string;\n /** Freeze the columns to either the `left` or `right` sides */\n frozen?: string;\n /** If a tree or expandable row will set the state of the row */\n rowExpanded?: boolean;\n /** Sets the tooltip options */\n tooltipOptions?: IdsDataGridTooltipOptions | ((options: IdsDataGridTooltipCallback) => IdsDataGridTooltipOptions);\n /** Sets the tooltip content */\n tooltip?: string | ((options: IdsDataGridTooltipCallback) => string | Promise<string>);\n /** Sets the header tooltip content */\n headerTooltip?: string;\n /** Sets the header icon tooltip content */\n headerIconTooltip?: string;\n /** Sets the header filter button tooltip content */\n filterButtonTooltip?: string;\n /** Sets the tooltip css part */\n tooltipCssPart?: string | ((options: IdsDataGridTooltipCallback) => string);\n /** Sets the header tooltip css part */\n headerTooltipCssPart?: string;\n /** Sets the header icon tooltip css part */\n headerIconTooltipCssPart?: string;\n /** Sets the header filter button tooltip css part */\n filterButtonTooltipCssPart?: string;\n /** Sets the hyperlink behavior. options: 'default' | 'no-select' | 'de-select' | 'none' */\n hyperlinkBehavior?: string;\n /** Sets the character count to reveal when cell value is masked */\n textMaskCharacter?: number;\n /** Setup an editor */\n editor?: {\n type: 'input' | 'date' | 'time' | 'checkbox' | 'dropdown' | 'datepicker' | 'timepicker' | 'tree' | 'lookup' | 'password',\n inline?: boolean,\n /** If true, the editor icon will always be visible */\n showEditorIcons?: boolean;\n editor?: IdsDataGridEditor,\n editorSettings?: Record<string, unknown>,\n editorValidation?: IdsDataGridEditorValidation,\n },\n /** If a true will set the text to uppercase */\n uppercase?: boolean | 'true' | ((type: 'body-cell' | 'header-cell', col: IdsDataGridColumn, index?: number, value?: any, item?: Record<string, any>) => boolean);\n /** If true, the cell will expand to show full multi-line content when activated (clicked/focused) */\n expandOnActivate?: boolean;\n /** If set to false the column will not be exported in exportToExcel functionality */\n exportable?: boolean\n /** Function to transform values during export */\n exportFormatter?: (value: unknown, rowData?: Record<any, unknown>) => unknown;\n /** If true, shows a red asterisk (*) next to the column header text to indicate a required field */\n required?: boolean;\n}\n\nexport const DEFAULT_COLUMN_MIN_WIDTH = 12;\n"],
5
+ "mappings": ";;;;;;AA8TO,IAAM,2BAA2B;",
6
6
  "names": []
7
7
  }
@@ -407,7 +407,8 @@ var IdsDataGridCell = class extends ids_events_mixin_default(IdsElement) {
407
407
  cssClasses += column?.editor ? ` is-editable` : "";
408
408
  cssClasses += hoverable ? ` is-hoverable` : "";
409
409
  cssClasses += hasInlineClass && (!hasReadonlyClass || hasReadonlyClass && !column.excludeReadonlyStyling) ? ` is-inline` : "";
410
- cssClasses += column?.formatter?.name === "selectionCheckbox" ? " is-editable" : "";
410
+ cssClasses += formatterName === "selectionCheckbox" ? " is-editable" : "";
411
+ cssClasses += column?.expandOnActivate ? " is-expandable" : "";
411
412
  IdsDataGridCell.cellCache[cellCacheKey] = cssClasses;
412
413
  return cssClasses;
413
414
  }
@@ -420,7 +421,13 @@ var IdsDataGridCell = class extends ids_events_mixin_default(IdsElement) {
420
421
  activate(nofocus = false, reason) {
421
422
  const previousActiveCell = this.dataGrid.activeCell.node;
422
423
  if (previousActiveCell === this && this.dataGrid.virtualScroll && this.isEditing) return this;
424
+ if (previousActiveCell && previousActiveCell !== this) {
425
+ this.dataGrid.collapseCell();
426
+ }
423
427
  this.dataGrid.activeCell.node = this;
428
+ if (this.column?.expandOnActivate) {
429
+ this.dataGrid.expandCell(this.rowIndex, this.columnIndex);
430
+ }
424
431
  if (!nofocus) {
425
432
  this.dataGrid.shadowRoot?.querySelector('ids-data-grid-cell[tabindex="0"]')?.setAttribute("tabindex", "-1");
426
433
  this.tabIndex = 0;
@@ -481,6 +488,21 @@ var IdsDataGridCell = class extends ids_events_mixin_default(IdsElement) {
481
488
  * @param {boolean} trigger whether to trigger the beforecelledit event
482
489
  */
483
490
  startCellEdit(clickEvent, trigger = true) {
491
+ if (this.dataGrid.virtualScroll && this.rowIndex !== void 0) {
492
+ const container = this.dataGrid.container;
493
+ if (container) {
494
+ const rowHeight = this.dataGrid.virtualScrollSettings?.ROW_HEIGHT || 30;
495
+ const scrollTop = container.scrollTop || 0;
496
+ const containerHeight = container.clientHeight || 0;
497
+ const effectiveRowIndex = this.dataGrid.treeGrid ? this.dataGrid.virtualRows.findIndex((row) => row === this.dataGrid.data[this.rowIndex]) : this.rowIndex;
498
+ if (effectiveRowIndex === -1) return;
499
+ const rowTop = effectiveRowIndex * rowHeight;
500
+ const rowBottom = rowTop + rowHeight;
501
+ if (rowBottom < scrollTop || rowTop > scrollTop + containerHeight) {
502
+ return;
503
+ }
504
+ }
505
+ }
484
506
  if (this.dataGrid.activeCellEditor instanceof IdsDataGridCell && this.dataGrid.activeCellEditor !== this) {
485
507
  this.dataGrid.activeCellEditor.endCellEdit();
486
508
  }
@@ -865,4 +887,4 @@ IdsDataGridCell = __decorateClass([
865
887
  export {
866
888
  IdsDataGridCell
867
889
  };
868
- //# sourceMappingURL=ids-chunk-SPEJ6VZH-full.js.map
890
+ //# sourceMappingURL=ids-chunk-6YJ4HIUC-full.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/components/ids-data-grid/ids-data-grid-cell.ts"],
4
+ "sourcesContent": ["import { customElement } from '../../core/ids-decorators';\nimport IdsElement from '../../core/ids-element';\nimport IdsEventsMixin from '../../mixins/ids-events-mixin/ids-events-mixin';\nimport { IdsDirection } from '../../core/ids-attributes';\nimport type IdsDataGrid from './ids-data-grid';\nimport type IdsDropdown from '../ids-dropdown/ids-dropdown';\nimport type IdsInput from '../ids-input/ids-input';\nimport type IdsLookup from '../ids-lookup/ids-lookup';\nimport type IdsTriggerField from '../ids-trigger-field/ids-trigger-field';\nimport type { IdsDataGridColumn } from './ids-data-grid-column';\nimport type IdsDataGridRow from './ids-data-grid-row';\nimport { IdsDataGridEditor } from './ids-data-grid-editors';\n\nexport type IdsDataGridActivationReason = 'keyboard' | 'method' | 'internal' | 'redraw' | 'mouse' | 'click';\n\n@customElement('ids-data-grid-cell')\nexport default class IdsDataGridCell extends IdsEventsMixin(IdsElement) {\n rootNode?: any;\n\n isInValid = false;\n\n /** The editor element */\n editor?: IdsDataGridEditor;\n\n constructor() {\n super({ noShadowRoot: true });\n }\n\n connectedCallback(): void {\n // NOTE: bypassing super.connectedCallback() for performance reasons\n this.renderCell();\n this.tabIndex = this.rowIndex === 0 && this.columnIndex === 0 ? 0 : -1;\n this.setAttribute('tabindex', String(this.tabIndex));\n\n this.addEventListener('focus', this.onFocus);\n\n if (this.isDraggable) {\n this.parentRow?.setAttribute('draggable', 'true');\n }\n }\n\n get parentRow(): IdsDataGridRow | null {\n return this.parentElement as IdsDataGridRow;\n }\n\n onFocus() {\n this.dataGrid.lastActiveCell = this.activate(false, 'keyboard');\n this.dataGrid.offEvent('blur.ids-data-grid-cell', this);\n this.dataGrid.onEvent('blur.ids-data-grid-cell', this, this.onBlur);\n }\n\n onBlur() {\n this.dataGrid.offEvent('focus.ids-data-grid-cell', this);\n this.dataGrid.offEvent('blur.ids-data-grid-cell', this);\n }\n\n disconnectedCallback() {\n // NOTE: bypassing super.disconnectedCallback() for performance reasons\n this.offEvent('focusin.ids-cell', this);\n this.offEvent('focusout.ids-cell', this);\n }\n\n get isDraggable(): boolean {\n return this.formatter?.name === 'rowReorder';\n }\n\n get isEditable(): boolean {\n if (this.classList.contains('is-readonly') || this.classList.contains('is-disabled')) return false;\n\n const column = this.column;\n if (column.formatter?.name === 'selectionCheckbox') return true;\n\n if (!column.editor) return false;\n const columnEditor = this.dataGrid.editors.find((editor) => editor.type === column?.editor?.type);\n return !!columnEditor?.editor;\n }\n\n /**\n * Reference to the data grid parent\n * @returns {IdsDataGrid} the data grid parent\n */\n get dataGrid() {\n if (!this.rootNode) this.rootNode = (this.getRootNode() as any).host;\n return (this.rootNode) as IdsDataGrid;\n }\n\n /**\n * Gets data grid row below this cell\n * @returns {IdsDataGridRow} row below\n */\n get rowBelow(): IdsDataGridRow | null {\n if (this.dataGrid.treeGrid) {\n let nextRow = this.parentElement?.nextElementSibling as IdsDataGridRow;\n\n // traverse nextElementSiblings until visible row is found\n while (nextRow?.hasAttribute('hidden')) {\n nextRow = nextRow?.nextElementSibling as IdsDataGridRow;\n }\n\n return nextRow ?? null;\n }\n\n return this.dataGrid.rowByIndex(this.rowIndex + 1) ?? null;\n }\n\n /**\n * Gets data grid row above this cell\n * @returns {IdsDataGridRow} row above\n */\n get rowAbove(): IdsDataGridRow | null {\n if (this.dataGrid.treeGrid) {\n let prevRow = this.parentElement?.previousElementSibling as IdsDataGridRow;\n\n // traverse previousElementSiblings until visible row is found\n while (prevRow?.hasAttribute('hidden')) {\n prevRow = prevRow?.previousElementSibling as IdsDataGridRow;\n }\n\n return prevRow ?? null;\n }\n\n return this.dataGrid.rowByIndex(this.rowIndex - 1) ?? null;\n }\n\n /**\n * Get the cell above this cell\n * @returns {IdsDataGridCell | null} the cell above this cell\n */\n get cellAbove(): IdsDataGridCell | null {\n return this.dataGrid?.findNextNavigableCell(this, IdsDirection.Up) ?? null;\n }\n\n /**\n * Get the cell below this cell\n * @returns {IdsDataGridCell | null} the cell below this cell\n */\n get cellBelow(): IdsDataGridCell | null {\n return this.dataGrid?.findNextNavigableCell(this, IdsDirection.Down) ?? null;\n }\n\n /**\n * Get the cell to the left of this cell\n * @returns {IdsDataGridCell | null} the cell to the left of this cell\n */\n get cellLeft(): IdsDataGridCell | null {\n return this.dataGrid?.findNextNavigableCell(this, IdsDirection.Left) ?? null;\n }\n\n /**\n * Get the cell to the right of this cell\n * @returns {IdsDataGridCell | null} the cell to the right of this cell\n */\n get cellRight(): IdsDataGridCell | null {\n return this.dataGrid?.findNextNavigableCell(this, IdsDirection.Right) ?? null;\n }\n\n /**\n * Get the next editable cell to the left of this cell\n * @returns {IdsDataGridCell | null} the next editabled cell to the left of this cell\n */\n get cellLeftEditable(): IdsDataGridCell | null {\n if (!this.dataGrid?.isEditable) return null;\n if (this?.columnIndex === 0 && this?.rowIndex === 0) return null;\n\n let nextCell = this.cellLeft;\n const maxColumns = this.dataGrid?.visibleColumns?.length || 0;\n let attempts = 0;\n\n while (nextCell && !nextCell.isEditable && attempts < maxColumns) {\n nextCell = nextCell.cellLeft;\n attempts++;\n }\n\n // If we've tried all columns and found no editable cell, return null\n if (attempts >= maxColumns || !nextCell?.isEditable) {\n return null;\n }\n\n return nextCell;\n }\n\n /**\n * Get the next editable cell to the right of this cell\n * @returns {IdsDataGridCell | null} the next editabled cell to the right of this cell\n */\n get cellRightEditable(): IdsDataGridCell | null {\n if (!this.dataGrid?.isEditable) return null;\n\n let nextCell = this.cellRight;\n const maxColumns = this.dataGrid?.visibleColumns?.length || 0;\n let attempts = 0;\n\n while (nextCell && !nextCell.isEditable && attempts < maxColumns) {\n nextCell = nextCell.cellRight;\n attempts++;\n }\n\n // If we've tried all columns and found no editable cell, return null\n if (attempts >= maxColumns || !nextCell?.isEditable) {\n return null;\n }\n\n return nextCell;\n }\n\n /**\n * Update this cell's dataset and refresh\n * @param {string} value the new data for the cell\n * @param {boolean} refresh if true, rerender the cell\n */\n updateData(value: string, refresh = true) {\n const rowIndex = this.rowIndex;\n const record = this.dataGrid?.data[rowIndex];\n const columnIndex = this.columnIndex;\n\n // a cell exists in a row of a visible-columns\n const visibleColumns = this.dataGrid?.visibleColumns;\n\n const column = visibleColumns[columnIndex];\n if (!column?.field) return;\n\n const updatedRecord = {\n ...record,\n [column.field]: value,\n };\n\n this.editor?.change?.(value);\n\n if (refresh) {\n this.dataGrid?.updateDatasetAndRefresh?.(this.rowIndex, updatedRecord, false);\n } else {\n this.dataGrid?.updateDataset?.(this.rowIndex, updatedRecord, false);\n }\n }\n\n // Add memoization for frequently accessed properties\n #memoizedColumn?: IdsDataGridColumn;\n\n // Add memoization for frequently accessed properties\n #memoizedColumnIndex?: number;\n\n /**\n * Get the column definition\n * @returns {IdsDataGridColumn} the current cells column\n */\n get column() {\n if (!this.#memoizedColumn || this.columnIndex !== this.#memoizedColumnIndex) {\n this.#memoizedColumn = this.dataGrid?.visibleColumns[this.columnIndex];\n this.#memoizedColumnIndex = this.columnIndex;\n }\n return this.#memoizedColumn;\n }\n\n /**\n * Get the column header cell element\n * @returns {IdsDataGridColumn} the current cells column\n */\n get columnHeader() {\n return this.dataGrid?.header?.columns[this.columnIndex];\n }\n\n /**\n * Gets the column # in which this cell exists\n * @returns {number} the column-index\n */\n get columnIndex(): number {\n return Number(this.getAttribute?.('aria-colindex') ?? 1) - 1;\n }\n\n /**\n * Gets the row-index # in which this cell exists\n * @returns {number} the row-index\n */\n get rowIndex(): number {\n return Number(this.parentElement?.getAttribute?.('row-index') ?? -1);\n }\n\n get formatter(): IdsDataGridColumn['formatter'] {\n return this.column?.formatter;\n }\n\n /**\n * Get row of table cell\n * @returns {number} table row index\n */\n get row(): number {\n return this.rowIndex;\n }\n\n /**\n * Get data value of this cell\n * @returns {any} the data value of this cell\n */\n get value(): any {\n // NOTE: the editor is a singleton, so we must ensure the input is still in this cell's DOM.\n if (this.editor && this.contains(this.editor?.input ?? null)) {\n return this.editor?.value?.();\n }\n\n const column = this.dataGrid?.visibleColumns?.[this.columnIndex];\n const record = this.dataGrid?.data?.[this.rowIndex];\n\n return record?.[(column?.field ?? -1)] ?? this.textContent ?? '';\n }\n\n /**\n * Get the default/original value of this cell\n * @returns {any} the default value of this cell\n */\n get defaultValue(): any {\n const column = this.dataGrid?.visibleColumns?.[this.columnIndex];\n const record = this.dataGrid?.data?.[this.rowIndex];\n const dirtyCells = record?.dirtyCells ?? [];\n return dirtyCells.find((row: Record<string, any>) => row?.columnId === column?.id)?.originalValue ?? this.value;\n }\n\n /**\n * Rerender a cell - may be used later\n */\n renderCell() {\n const dataGrid = this.dataGrid;\n\n const rowIndex = this.rowIndex;\n const rowData: Record<string, any> | undefined = dataGrid?.data[rowIndex];\n\n if (rowData?.isGroupRow) return;\n\n if (dataGrid.virtualScroll) {\n const tooManyColumns = dataGrid.columns.length > dataGrid.TOO_MANY_COLUMNS;\n\n const columnsStale = dataGrid.hasAttribute('columns-stale');\n const columnsFresh = !columnsStale;\n\n const columnHeaders = this.columnHeader;\n const columnOffScreen = columnHeaders?.hasAttribute('column-offscreen');\n\n if (tooManyColumns && columnsFresh && columnOffScreen) {\n // NOTE: skip renderCell if cell is NOT on-screen\n return;\n }\n\n const columnOnScreen = columnHeaders?.hasAttribute('column-onscreen');\n const columnOffScreenLeft = columnHeaders?.hasAttribute('column-offscreen-left');\n const columnOffScreenRight = columnHeaders?.hasAttribute('column-offscreen-right');\n this.toggleAttribute('column-onscreen', columnOnScreen);\n this.toggleAttribute('column-offscreen', columnOffScreen);\n this.toggleAttribute('column-offscreen-left', columnOffScreenLeft);\n this.toggleAttribute('column-offscreen-right', columnOffScreenRight);\n }\n\n const column = this.column;\n const columnIndex = this.columnIndex;\n\n const template = IdsDataGridCell.template(rowData, column, rowIndex, dataGrid);\n if (this.innerHTML !== template) {\n try {\n this.innerHTML = template;\n } catch (e) {\n requestAnimationFrame(() => {\n this.innerHTML = template;\n });\n }\n }\n const cssClasses = this?.cellCssClasses(column, columnIndex, template) ?? '';\n\n if (cssClasses) {\n this.classList.remove(...this.classList);\n this.classList.add(...cssClasses.split(' '));\n }\n\n const cssPart = this?.cellCssPart(column, columnIndex) ?? '';\n if (cssPart) this.setAttribute('part', cssPart);\n\n if (dataGrid.lastActiveCell?.cell === columnIndex && dataGrid.lastActiveCell?.row === rowIndex) {\n this.onFocus();\n }\n }\n\n /**\n * Return the cells' css part\n * @param {IdsDataGridColumn} column - the column definition\n * @param {number} columnIndex - the column index\n * @returns {string} The css part string for the cell\n */\n cellCssPart(column: IdsDataGridColumn, columnIndex: number): string {\n const dataGrid = this.dataGrid;\n const rowIndex = this.rowIndex;\n const rowData = dataGrid.data[rowIndex];\n\n const cacheKey = IdsDataGridCell.cacheKey(rowIndex, rowData, column, dataGrid);\n const cellCacheKey = `${cacheKey}:${dataGrid.cacheCellPart}`;\n\n if (IdsDataGridCell.cellCache[cellCacheKey]) {\n return IdsDataGridCell.cellCache[cellCacheKey];\n }\n\n let part = column.cssPart || 'cell';\n const rowSelection = dataGrid?.rowSelection;\n const isSelectable = rowSelection === 'mixed' || rowSelection === 'single' || rowSelection === 'multiple';\n if (isSelectable && rowData.rowSelected) {\n if (column.cellSelectedCssPart) part = column.cellSelectedCssPart;\n else part = 'cell-selected';\n }\n\n if (typeof part === 'function') {\n part = part({\n rowIndex,\n columnIndex,\n recordIndex: this.parentRow?.recordIndex ?? null,\n rowData\n });\n }\n\n IdsDataGridCell.cellCache[cellCacheKey] = part;\n\n return part;\n }\n\n /**\n * Return the cells' css classes\n * @param {IdsDataGridColumn} column - the column definition\n * @param {number} columnIndex - the column index\n * @param {string} content - the cells html or text content\n * @returns {string} The classList string for the cell\n */\n cellCssClasses(column: IdsDataGridColumn, columnIndex: number, content: string): string {\n const dataGrid = this.dataGrid;\n const rowIndex = this.rowIndex;\n const rowData = dataGrid.data[rowIndex];\n\n const cacheKey = IdsDataGridCell.cacheKey(rowIndex, rowData, column, dataGrid);\n const cellCacheKey = `${cacheKey}:${dataGrid.cacheCellClass}`;\n\n if (IdsDataGridCell.cellCache[cellCacheKey]) {\n return IdsDataGridCell.cellCache[cellCacheKey];\n }\n\n const isDirtyCell = (currentRow: Record<string, unknown>): boolean => {\n if (!currentRow.dirtyCells) return false;\n return (currentRow.dirtyCells as any).findIndex((item: any) => item.cell === columnIndex) !== -1;\n };\n\n const isInvalidCell = (currentRow: Record<string, unknown>): boolean => {\n if (!currentRow.invalidCells) return false;\n return (currentRow.invalidCells as any).findIndex((item: any) => item.cell === columnIndex) !== -1;\n };\n\n const isReadonly = (): boolean => {\n if (column.readonly && column?.readonly === true) return true;\n if (typeof column?.readonly === 'function') return column?.readonly(rowIndex, content, column, rowData);\n return false;\n };\n\n const isColumnDisabled = (): boolean => {\n if (!column?.disabled) return false;\n if (typeof column?.disabled === 'function') return column?.disabled(rowIndex, content, column, rowData);\n if (typeof column?.disabled === 'boolean') return column?.disabled;\n return false;\n };\n\n const isUppercase = (): boolean => {\n if (typeof column?.uppercase === 'function') return column.uppercase('body-cell', column, rowIndex, content, rowData);\n return (column?.uppercase === 'true' || column?.uppercase === true);\n };\n\n const frozenLast = dataGrid?.leftFrozenColumns.length;\n\n const hasReadonlyClass = isReadonly();\n const hasDisabledClass = this.parentRow?.disabled || isColumnDisabled();\n const hasUppercaseClass = isUppercase();\n const hasInlineClass = column?.editor && column?.editor?.inline;\n const hoverable = ['textmask'].includes(column?.formatter?.name || '');\n const editorType = column.editor?.type;\n const formatterName = column.formatter?.name === 'rowReorder' ? 'row-reorder' : column.formatter?.name;\n\n let cssClasses = 'ids-data-grid-cell';\n cssClasses += editorType ? ` is-${editorType}` : '';\n cssClasses += column.excludeReadonlyStyling ? ' exclude-readonly-style' : '';\n cssClasses += hasReadonlyClass ? ' is-readonly' : '';\n cssClasses += hasDisabledClass ? ' is-disabled' : '';\n cssClasses += hasUppercaseClass ? ' is-uppercase' : '';\n cssClasses += isDirtyCell(rowData) ? ' is-dirty' : '';\n cssClasses += isInvalidCell(rowData) ? ' is-invalid' : '';\n cssClasses += column?.align ? ` align-${column?.align}` : '';\n cssClasses += column?.formatter?.name ? ` formatter-${formatterName}` : '';\n cssClasses += column?.frozen ? ` frozen frozen-${column?.frozen}${columnIndex + 1 === frozenLast ? ' frozen-last' : ''}` : '';\n cssClasses += column?.editor ? ` is-editable` : '';\n cssClasses += hoverable ? ` is-hoverable` : '';\n cssClasses += hasInlineClass && (!hasReadonlyClass || (hasReadonlyClass && !column.excludeReadonlyStyling)) ? ` is-inline` : '';\n cssClasses += formatterName === 'selectionCheckbox' ? ' is-editable' : '';\n cssClasses += column?.expandOnActivate ? ' is-expandable' : '';\n\n IdsDataGridCell.cellCache[cellCacheKey] = cssClasses;\n\n return cssClasses;\n }\n\n /**\n * Set the active cell for focus\n * @param {boolean} nofocus If true, do not focus the cell\n * @param {string} reason Reason the method was called (e.g. 'keyboard', 'mouse', 'redraw', 'internal', 'click')\n * @returns {object} the current active cell\n */\n activate(nofocus: boolean = false, reason?: IdsDataGridActivationReason): IdsDataGridCell {\n const previousActiveCell = this.dataGrid.activeCell.node;\n if (previousActiveCell === this && this.dataGrid.virtualScroll && this.isEditing) return this;\n\n if (previousActiveCell && previousActiveCell !== this) {\n this.dataGrid.collapseCell();\n }\n\n this.dataGrid.activeCell.node = this;\n\n if (this.column?.expandOnActivate) {\n this.dataGrid.expandCell(this.rowIndex, this.columnIndex);\n }\n\n if (!nofocus) {\n this.dataGrid.shadowRoot?.querySelector('ids-data-grid-cell[tabindex=\"0\"]')?.setAttribute('tabindex', '-1');\n this.tabIndex = 0;\n this.focus();\n }\n\n if (previousActiveCell === undefined || (previousActiveCell !== this && document.hasFocus())) {\n this.dataGrid.triggerEvent('activecellchanged', this.dataGrid, {\n detail: {\n elem: this, activeCell: this.dataGrid.activeCell, previousActiveCell, reason\n }\n });\n }\n return this;\n }\n\n /** Previous Value before Editing */\n originalValue: unknown;\n\n /** Previous Invalid state before reseting */\n previousInvalidState = '';\n\n /** If currently in edit mode */\n isEditing?:boolean;\n\n /**\n * Validate cell\n */\n validateCell() {\n const column = this.column;\n if (!column.editor) return;\n\n const columnEditor = this.dataGrid.editors.find((obj) => obj.type === column?.editor?.type);\n if (!columnEditor || !columnEditor.editor) return;\n\n this.originalValue = this.value;\n\n this.editor = columnEditor.editor;\n this.editor.init(this);\n\n const input = this.editor?.input as any;\n\n if (!input) return;\n\n const editorType = (this.editor?.type as string);\n input?.offEvent('focusout', input);\n input?.offEvent('close', input);\n\n if (['input', 'tree'].includes(editorType) && input?.setDirtyTracker) {\n input?.setDirtyTracker(input?.value as any);\n }\n\n if (['input', 'tree'].includes(editorType) && input?.checkValidation) {\n (<IdsInput>input)?.checkValidation();\n }\n\n if (editorType === 'dropdown') {\n (<IdsDropdown>input)?.input?.checkValidation();\n }\n\n if (editorType === 'timepicker' || editorType === 'datepicker') {\n (<IdsTriggerField>input)?.checkValidation();\n }\n\n const isValid = input?.isValid;\n const newValue = this.editor?.save(this);\n this.#saveCellValue(newValue?.value);\n\n if (!isValid) this.#saveValidState(input?.validationMessages);\n if (this.isInValid && isValid) this.#resetValidState();\n this.isInValid = !isValid;\n\n this.editor?.destroy(this);\n this.renderCell();\n }\n\n /**\n * Start Edit Mode\n * @param {MouseEvent} clickEvent event passed if activated by click (vs keyboard)\n * @param {boolean} trigger whether to trigger the beforecelledit event\n */\n startCellEdit(clickEvent?: MouseEvent, trigger: boolean = true) {\n // Skip editing if the cell's row is not visible in the viewport (virtual scroll recycled it)\n if (this.dataGrid.virtualScroll && this.rowIndex !== undefined) {\n const container = this.dataGrid.container;\n if (container) {\n const rowHeight = this.dataGrid.virtualScrollSettings?.ROW_HEIGHT || 30;\n const scrollTop = container.scrollTop || 0;\n const containerHeight = container.clientHeight || 0;\n const effectiveRowIndex = this.dataGrid.treeGrid\n ? this.dataGrid.virtualRows.findIndex((row) => row === this.dataGrid.data[this.rowIndex])\n : this.rowIndex;\n if (effectiveRowIndex === -1) return;\n const rowTop = effectiveRowIndex * rowHeight;\n const rowBottom = rowTop + rowHeight;\n if (rowBottom < scrollTop || rowTop > scrollTop + containerHeight) {\n return;\n }\n }\n }\n\n // end previous cell edit\n if (this.dataGrid.activeCellEditor instanceof IdsDataGridCell && this.dataGrid.activeCellEditor !== this) {\n this.dataGrid.activeCellEditor.endCellEdit();\n }\n\n const column = this.column;\n if (!column.editor) return;\n const columnEditor = this.dataGrid.editors.find((obj) => obj.type === column?.editor?.type);\n if (!columnEditor || !columnEditor.editor || this.isEditing) return;\n\n // Init Editor\n let canEdit: any = !(this.classList.contains('is-readonly') || this.classList.contains('is-disabled'));\n if (!canEdit) {\n return;\n }\n\n if (trigger) {\n this.dataGrid.triggerEvent('beforecelledit', this.dataGrid, {\n detail: {\n elem: this,\n editor: this.editor,\n column,\n data: this.dataGrid.data[this.dataGrid.activeCell.row],\n response: (veto: boolean | Promise<void | boolean>) => {\n canEdit = veto;\n }\n }\n });\n }\n\n if (trigger && (canEdit instanceof Promise || canEdit?.constructor?.name === 'AsyncFunction')) {\n (canEdit instanceof Promise ? canEdit : canEdit())\n .then((veto?: boolean) => { if (veto !== false) this.#startCellEdit(column, columnEditor, clickEvent, trigger); })\n .catch(() => { /** ignore if promise rejected */ });\n } else if (!trigger || canEdit !== false) {\n this.#startCellEdit(column, columnEditor, clickEvent, trigger);\n }\n }\n\n /* Start Cell Edit */\n #startCellEdit(\n column: IdsDataGridColumn,\n columnEditor: { type: string, editor?: IdsDataGridEditor },\n clickEvent?: MouseEvent,\n trigger: boolean = true\n ) {\n if (!columnEditor || !columnEditor.editor || this.isEditing) return;\n\n this.detachTooltipEvents();\n this.originalValue = this.value;\n this.editor = columnEditor.editor;\n this.editor.clickEvent = clickEvent;\n\n const editorType = this.editor.type;\n // Override original value if dropdown\n if (editorType === 'dropdown') {\n this.originalValue = this.querySelector('[data-value]')?.getAttribute('data-value');\n }\n\n this.classList.add('is-editing');\n this.editor.init(this);\n\n const expandButton = this.querySelector('.expand-button');\n if (expandButton) {\n expandButton.removeAttribute('disabled');\n this.offEvent('mousedown', expandButton);\n this.onEvent('mousedown', expandButton, (e: MouseEvent) => {\n e.stopPropagation();\n e.preventDefault();\n this.endCellEdit();\n const row = this.parentElement as IdsDataGridRow;\n row?.toggleExpandCollapse();\n });\n }\n\n // Set states\n if (this.classList.contains('is-invalid')) {\n this.classList.remove('is-invalid');\n this.isInValid = true;\n }\n if (column.editor?.inline) this.classList.add('is-inline');\n this.isEditing = true;\n\n // Pass column text alignment rules into the cell editor\n if (column.align) {\n let columnAlign = column.align;\n if (columnAlign === 'left') columnAlign = 'start';\n if (columnAlign === 'right') columnAlign = 'end';\n this.editor?.input?.setAttribute('text-align', `${columnAlign}`);\n }\n\n // Save on Click Out Event\n if (['datepicker', 'timepicker', 'lookup'].includes(editorType)) {\n // When the popup is closed, end the edit\n this.editor.input?.onEvent('focusout', this.editor.input, () => {\n requestAnimationFrame(() => {\n if (this.editor?.popup?.visible || this.contains(this.dataGrid!.shadowRoot!.activeElement)) return;\n this.tabIndex = -1;\n });\n });\n\n // When the popup is closed, end the edit\n this.onEvent('hide.popup', this.editor?.popup, () => {\n this.offEvent('hide.popup');\n this.endCellEdit();\n this.focus();\n });\n } else if (editorType === 'dropdown') {\n this.editor.input?.onEvent('close', this.editor.input, () => {\n this.endCellEdit();\n this.focus();\n });\n } else if (editorType === 'password') {\n const maskIcon = this.querySelector('ids-icon');\n\n // stop events when clicking the maskIcon to prevent deselecting the input when editing\n this.offEvent('mousedown', maskIcon);\n this.onEvent('mousedown', maskIcon, (e) => {\n e.stopPropagation();\n e.preventDefault();\n });\n\n this.editor.input?.onEvent('focusout', this.editor.input, () => {\n this.dataGrid.clearActiveCellCache(true);\n this.endCellEdit();\n });\n } else {\n this.editor.input?.onEvent('focusout', this.editor.input, () => {\n this.dataGrid.clearActiveCellCache(true);\n this.endCellEdit();\n });\n }\n\n this.onEvent('keyup', this.editor?.input, () => {\n this.dataGrid.updateActiveCellCache(this.row, this.columnIndex, this.editor?.input?.value || '', true);\n });\n\n this.onEvent('keydown', this.editor?.input, (e: KeyboardEvent) => {\n if (e.key === 'Enter') {\n this.dataGrid.clearActiveCellCache();\n }\n });\n\n this.onEvent('focusout.endcelledit', this.dataGrid, () => {\n if (!this.dataGrid.contains(document.activeElement)) {\n this.endCellEdit();\n }\n });\n\n if (trigger) {\n this.dataGrid?.triggerEvent('celledit', this.dataGrid, {\n detail: {\n elem: this, editor: this.editor, column, data: this.dataGrid.data[this.row]\n }\n });\n }\n\n // Add a small delay before starting new edit to ensure cleanup\n this.dataGrid.activeCellEditor = this;\n }\n\n /* End Cell Edit */\n endCellEdit() {\n const column = this.column;\n const input = this.editor?.input as any;\n\n if (!input) return;\n\n this.offEvent('focusout.endcelledit', this.dataGrid);\n this.offEvent('keydown', this.editor?.input);\n this.offEvent('keyup', this.editor?.input);\n\n const editorType = (this.editor?.type as string);\n input?.offEvent('focusout', input);\n input?.offEvent('close', input);\n\n if (['input', 'tree'].includes(editorType) && input?.setDirtyTracker) {\n input?.setDirtyTracker(input?.value as any);\n }\n\n if (['input', 'tree'].includes(editorType) && input?.checkValidation) {\n (<IdsInput>input)?.checkValidation();\n }\n\n if (editorType === 'dropdown') {\n (<IdsDropdown>input)?.input?.checkValidation();\n }\n\n if (editorType === 'lookup') {\n (<IdsLookup>input)?.input?.checkValidation();\n }\n\n if (editorType === 'timepicker' || editorType === 'datepicker') {\n (<IdsTriggerField>input)?.checkValidation();\n }\n\n const isDirty = column.editor?.editorSettings?.dirtyTracker && (input?.isDirty || input?.input.isDirty);\n const isDirtyCheckbox = column.editor?.editorSettings?.dirtyTracker && editorType === 'checkbox' && input?.isDirty;\n\n // combobox accepts anything\n const isComboBox = column.editor?.editorSettings?.comboBox ?? false;\n\n const isValid = input?.isValid;\n const newValue = this.editor?.save(this);\n this.#saveCellValue(newValue?.value);\n\n // Save dirty and valid state on the row\n if ((isDirty || isDirtyCheckbox) && !isComboBox) this.#saveDirtyState(newValue?.dirtyCheckValue ?? newValue?.value);\n if (!isValid && !isComboBox) this.#saveValidState(input?.validationMessages);\n if (this.isInValid && isValid && !isComboBox) this.#resetValidState();\n this.isInValid = !isComboBox ? !isValid : false;\n this.editor?.destroy(this);\n this.renderCell();\n this.isEditing = false;\n this.classList.remove('is-editing');\n\n // Reset focus and tabindex\n this.tabIndex = -1;\n this.blur();\n\n this.dataGrid?.triggerEvent('endcelledit', this.dataGrid, {\n detail: {\n elem: this, editor: this.editor, column, data: this.dataGrid.data[this.row]\n }\n });\n this.detachTooltipEvents();\n this.dataGrid.activeCellEditor = undefined;\n this.dataGrid.openMenu = null;\n }\n\n /* Cancel Cell Edit */\n cancelCellEdit() {\n const column = this.column;\n const input = this.editor?.input as any;\n input?.offEvent('focusout', input);\n input?.setDirtyTracker(input?.value as any);\n\n this.dataGrid?.updateDataset(this.row, { [String(column?.field)]: this.originalValue });\n this.editor?.destroy(this);\n this.renderCell();\n this.isEditing = false;\n this.classList.remove('is-editing');\n\n this.dataGrid?.triggerEvent('cancelcelledit', this.dataGrid, {\n detail: {\n elem: this,\n editor: this.editor,\n column,\n data: this.dataGrid.data[this.row],\n oldValue: this.originalValue\n }\n });\n this.dataGrid.activeCellEditor = undefined;\n this.dataGrid.openMenu = null;\n }\n\n /**\n * Save cell Edit Back into data set\n * @param {any} newValue the value to coerce and save\n */\n #saveCellValue(newValue: any) {\n const column = this.column;\n this.dataGrid.resetCache(this.dataGrid?.activeCell.row);\n if (column.editor?.editorSettings?.mask === 'date') {\n newValue = this.dataGrid.localeAPI.parseDate(newValue, column.formatOptions);\n }\n this.dataGrid?.updateDataset(this.row, {\n [String(column?.field)]: newValue,\n });\n }\n\n /**\n * Save the dirty state info on the row\n * @param {boolean} newValue the current value\n * @param {boolean} programmaticUpdate if true, the value was changed by a progammaticUpdate update\n */\n #saveDirtyState(newValue: any, programmaticUpdate = false) {\n let rowDirtyCells = this.dataGrid.data[this.row].dirtyCells;\n if (rowDirtyCells === undefined) rowDirtyCells = [];\n const cell = Number(this.getAttribute('aria-colindex')) - 1;\n const previousCellInfo = rowDirtyCells.filter((item: any) => item.cell === cell);\n\n if (previousCellInfo[0] && newValue === previousCellInfo[0].originalValue) {\n const oldIndex = rowDirtyCells.findIndex((item: any) => item.cell === cell);\n rowDirtyCells.splice(oldIndex, 1);\n // Value was reset\n this?.classList.remove('is-dirty');\n this.dataGrid?.updateDataset(this.row, {\n dirtyCells: rowDirtyCells\n });\n return;\n }\n\n this?.classList.add('is-dirty');\n\n if (previousCellInfo.length === 0) {\n const originalValue = this?.editor?.type === 'checkbox' || programmaticUpdate ? this.originalValue : (this?.editor?.input as any)?.dirty?.original;\n\n rowDirtyCells.push({\n cell: Number(this?.getAttribute('aria-colindex')) - 1,\n columnId: this.column.id,\n originalValue,\n });\n this.dataGrid?.updateDataset(this.row, {\n dirtyCells: rowDirtyCells\n });\n }\n }\n\n /**\n * Track value changes for dirty tracking\n * @param {any} newValue the new value\n * @param {boolean} programmaticUpdate if true, the value was changed by a programmatic update\n */\n trackValueChange(newValue: any, programmaticUpdate = false) {\n this.#saveDirtyState(newValue, programmaticUpdate);\n }\n\n /**\n * Save the validation state info on the row\n * @param {any} validationMessages the current value\n */\n #saveValidState(validationMessages: any) {\n let rowInvalidCells = this.dataGrid.data[this.row].invalidCells;\n if (!rowInvalidCells) rowInvalidCells = [];\n const cell = Number(this.getAttribute('aria-colindex')) - 1;\n const previousCellInfo = rowInvalidCells.filter((item: any) => item.cell === cell);\n\n this?.classList.add('is-invalid');\n\n if (previousCellInfo.length === 0) {\n this.previousInvalidState = validationMessages.id;\n rowInvalidCells.push({\n cell: Number(this?.getAttribute('aria-colindex')) - 1,\n columnId: this.column.id,\n validationMessages\n });\n this.dataGrid?.updateDataset(this.row, {\n invalidCells: rowInvalidCells\n });\n }\n }\n\n /**\n * Set back the valid state\n */\n #resetValidState() {\n this?.classList.remove('is-invalid');\n this.dataGrid?.updateDataset(this.row, {\n invalidCells: undefined\n });\n this.isInValid = false;\n }\n\n // NOTE: check memory footprint of this caching strategy\n static cellCache: { [key: string]: string } = {};\n\n /**\n * Return the Template for the cell contents\n * @param {object} rowData The data item for the row\n * @param {object} column The column data for the row\n * @param {object} rowIndex The running row-index\n * @param {IdsDataGrid} dataGrid The dataGrid instance\n * @returns {string} The template to display\n */\n static template(\n rowData: Record<string, unknown>,\n column: IdsDataGridColumn,\n rowIndex: number,\n dataGrid: IdsDataGrid\n ): string {\n const cacheKey = IdsDataGridCell.cacheKey(rowIndex, rowData, column, dataGrid);\n // combobox accepts anything\n const isComboBox = column.editor?.editorSettings?.comboBox ?? false;\n\n // NOTE: This is how we could disable cache until a proper cache-busting strategy is in place\n // delete IdsDataGridCell.cellCache[cacheKey];\n\n // NOTE: this type of param-based caching is good for upscroll when revisiting rows that have been seen already.\n // NOTE: we also need a content-cache that caches based on the actual data that's being rendered\n // NOTE: content-cache should probably be done in the IdsDataGridFormatters class\n if (!IdsDataGridCell.cellCache[cacheKey]) {\n const dataGridFormatters = (dataGrid.formatters as any);\n let template = '';\n\n if (!dataGridFormatters[column?.formatter?.name || 'text'] && column?.formatter) template = column?.formatter(rowData, column, rowIndex, dataGrid);\n else template = dataGridFormatters[column?.formatter?.name || 'text'](rowData, column, rowIndex, dataGrid);\n\n if (rowData.invalidCells && !isComboBox) {\n const message = (rowData.invalidCells as any).find((info: any) => info.cell === dataGrid.columnIdxById(column.id));\n if (message) template += `<ids-alert icon=\"error\" tooltip=\"${message?.validationMessages[0]?.message}\"></ids-alert>`;\n }\n IdsDataGridCell.cellCache[cacheKey] = template;\n }\n\n return IdsDataGridCell.cellCache[cacheKey];\n }\n\n /**\n * Return cache key of current cell\n * @param {number} rowIndex number\n * @param {object} rowData The data item for the row\n * @param {object} column The column data for the row\n * @param {IdsDataGrid} dataGrid The dataGrid instance\n * @returns {string} Cache key\n */\n static cacheKey(\n rowIndex: number,\n rowData: Record<string, unknown>,\n column: IdsDataGridColumn,\n dataGrid: IdsDataGrid\n ): string {\n const cacheHash = dataGrid.cacheHash;\n const selected = rowData.rowSelected ? dataGrid.cacheSelected : dataGrid.cacheDeselected;\n const expanded = rowData.rowExpanded ? dataGrid.cacheExpanded : dataGrid.cacheCollapsed;\n return `${cacheHash}:${column.id}:${rowIndex}:${selected}:${expanded}`;\n }\n\n /**\n * Clears cell cache\n */\n clearCache() {\n const dataGrid = this.dataGrid;\n const rowIndex = Number(this.parentElement?.getAttribute('row-index'));\n const row = dataGrid.data[rowIndex] as any;\n const cacheKey = IdsDataGridCell.cacheKey(rowIndex, row, this.column, dataGrid);\n\n delete IdsDataGridCell.cellCache[cacheKey];\n }\n\n /**\n * Refreshes the cell\n */\n refreshCell() {\n this.clearCache();\n this.renderCell();\n }\n\n /**\n * Checks on the cell editor to see if its current state allows it to be closed.\n * @returns {boolean} true if the cell editor is able to \"close\"\n */\n canClose(): boolean {\n if (this.isEditing) return false;\n if (this.editor?.popup?.visible) return false;\n if (this.column?.editor?.inline) return false;\n\n return true;\n }\n\n /**\n * Removes all tooltip-related event listeners from the data grid cell\n * @private\n * @description Detaches hover, click, popup, longpress, and focus events\n * associated with the tooltip functionality\n */\n detachTooltipEvents() {\n this.dataGrid.tooltip?.offEvent('hoverend.tooltip', this);\n this.dataGrid.tooltip?.offEvent('click.tooltip', this);\n this.dataGrid.tooltip?.offEvent('click.popup', this.dataGrid.tooltip?.popup);\n this.dataGrid.tooltip?.offEvent('longpress.tooltip', this);\n this.dataGrid.tooltip?.offEvent('focusin.tooltip', this);\n this.dataGrid.tooltip?.offEvent('focus.keyboardfocus', this);\n }\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;AAgBA,IAAqB,kBAArB,cAA6C,yBAAe,UAAU,EAAE;AAAA,EAQtE,cAAc;AACZ,UAAM,EAAE,cAAc,KAAK,CAAC;AAThC;AACE;AAEA,qCAAY;AAGZ;AAAA;AAsNA;AAAA;AAGA;AAAA;AAuSA;AAAA;AAGA;AAAA,gDAAuB;AAGvB;AAAA;AAAA,EAlgBA;AAAA,EAEA,oBAA0B;AAExB,SAAK,WAAW;AAChB,SAAK,WAAW,KAAK,aAAa,KAAK,KAAK,gBAAgB,IAAI,IAAI;AACpE,SAAK,aAAa,YAAY,OAAO,KAAK,QAAQ,CAAC;AAEnD,SAAK,iBAAiB,SAAS,KAAK,OAAO;AAE3C,QAAI,KAAK,aAAa;AACpB,WAAK,WAAW,aAAa,aAAa,MAAM;AAAA,IAClD;AAAA,EACF;AAAA,EAEA,IAAI,YAAmC;AACrC,WAAO,KAAK;AAAA,EACd;AAAA,EAEA,UAAU;AACR,SAAK,SAAS,iBAAiB,KAAK,SAAS,OAAO,UAAU;AAC9D,SAAK,SAAS,SAAS,2BAA2B,IA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AY;AAAA,IACd,CAAC;AAAA,EACH;AACF;AAAA;AAAA;AAAA;AAAA;AAeA,oBAAe,SAAC,oBAAyB;AACvC,MAAI,kBAAkB,KAAK,SAAS,KAAK,KAAK,GAAG,EAAE;AACnD,MAAI,CAAC,gBAAiB,mBAAkB,CAAC;AACzC,QAAM,OAAO,OAAO,KAAK,aAAa,eAAe,CAAC,IAAI;AAC1D,QAAM,mBAAmB,gBAAgB,OAAO,CAAC,SAAc,KAAK,SAAS,IAAI;AAEjF,QAAM,UAAU,IAAI,YAAY;AAEhC,MAAI,iBAAiB,WAAW,GAAG;AACjC,SAAK,uBAAuB,mBAAmB;AAC/C,oBAAgB,KAAK;AAAA,MACnB,MAAM,OAAO,MAAM,aAAa,eAAe,CAAC,IAAI;AAAA,MACpD,UAAU,KAAK,OAAO;AAAA,MACtB;AAAA,IACF,CAAC;AACD,SAAK,UAAU,cAAc,KAAK,KAAK;AAAA,MACrC,cAAc;AAAA,IAChB,CAAC;AAAA,EACH;AACF;AAAA;AAAA;AAAA;AAKA,qBAAgB,WAAG;AACjB,QAAM,UAAU,OAAO,YAAY;AACnC,OAAK,UAAU,cAAc,KAAK,KAAK;AAAA,IACrC,cAAc;AAAA,EAChB,CAAC;AACD,OAAK,YAAY;AACnB;AAAA;AAGA,cA77BmB,iBA67BZ,aAAuC,CAAC;AA77B5B,kBAArB;AAAA,EADC,cAAc,oBAAoB;AAAA,GACd;",
6
+ "names": []
7
+ }
@@ -72,14 +72,27 @@ var InputEditor = class {
72
72
  this.input.fieldHeight = String(cell?.dataGrid?.rowHeight) === "xxs" ? `xs` : String(cell?.dataGrid?.rowHeight);
73
73
  this.input.labelState = "collapsed";
74
74
  const value = cell?.innerText;
75
- cell.innerHTML = "";
76
- cell?.appendChild(this.input);
75
+ const treeFieldContainer = cell?.querySelector(".ids-data-grid-tree-field-container");
76
+ if (treeFieldContainer) {
77
+ treeFieldContainer.innerHTML = "";
78
+ treeFieldContainer.appendChild(this.input);
79
+ } else {
80
+ cell.innerHTML = "";
81
+ cell?.appendChild(this.input);
82
+ }
77
83
  this.input.addEventListener("keydown", (e) => applyEditorEndCellEdit(cell, e));
78
84
  this.input.value = value;
79
85
  if (this.input instanceof IdsInput && cell) {
80
86
  if (!isInline) this.input.shadowRoot?.querySelector("input")?.style.setProperty("width", `${cell.offsetWidth - 5}px`);
81
- applyEditorSettings(this.input, cell?.column.editor?.editorSettings);
87
+ const settings = { ...cell?.column.editor?.editorSettings };
88
+ const shouldAutoselect = settings?.autoselect;
89
+ delete settings.autoselect;
90
+ applyEditorSettings(this.input, settings);
82
91
  applyEditorValidation(this.input, cell?.column.editor?.editorValidation);
92
+ const nativeInput = this.input.shadowRoot?.querySelector("input");
93
+ if (shouldAutoselect) {
94
+ nativeInput?.select();
95
+ }
83
96
  }
84
97
  this.input.focus();
85
98
  }
@@ -802,4 +815,4 @@ export {
802
815
  LookupEditor,
803
816
  editors
804
817
  };
805
- //# sourceMappingURL=ids-chunk-MZTBZCHG-full.js.map
818
+ //# sourceMappingURL=ids-chunk-CVY6XSRY-full.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/components/ids-data-grid/ids-data-grid-editors.ts"],
4
+ "sourcesContent": ["// eslint-disable-next-line max-classes-per-file\nimport { isValidDate } from '../../utils/ids-date-utils/ids-date-utils';\nimport { stringToBool } from '../../utils/ids-string-utils/ids-string-utils';\nimport IdsCheckbox from '../ids-checkbox/ids-checkbox';\nimport IdsDropdown from '../ids-dropdown/ids-dropdown';\nimport IdsDropdownList from '../ids-dropdown/ids-dropdown-list';\nimport IdsInput from '../ids-input/ids-input';\nimport IdsTriggerField from '../ids-trigger-field/ids-trigger-field';\nimport type IdsButton from '../ids-button/ids-button';\nimport type IdsDataGridCell from './ids-data-grid-cell';\nimport type IdsDatePicker from '../ids-date-picker/ids-date-picker';\nimport type IdsDatePickerPopup from '../ids-date-picker/ids-date-picker-popup';\nimport type IdsLookup from '../ids-lookup/ids-lookup';\nimport type IdsModal from '../ids-modal/ids-modal';\nimport type IdsTimePicker from '../ids-time-picker/ids-time-picker';\nimport type IdsTimePickerPopup from '../ids-time-picker/ids-time-picker-popup';\nimport '../ids-time-picker/ids-time-picker';\nimport '../ids-date-picker/ids-date-picker';\nimport '../ids-lookup/ids-lookup';\nimport { IdsValidationRule } from '../../mixins/ids-validation-mixin/ids-validation-mixin';\nimport { attributes } from '../../core/ids-attributes';\nimport IdsIcon from '../ids-icon/ids-icon';\nimport { getClosest } from '../../utils/ids-dom-utils/ids-dom-utils';\n\nexport interface IdsDataGridEditorOptions {\n /** The type of editor (i.e. text, data, time, dropdown, checkbox, number ect) */\n type: string;\n /** The field in the data set to show */\n field: string;\n /** If true the editor will remain visible */\n inline: boolean;\n}\n\nexport interface IdsDataGridSaveValue {\n // value to be saved in data set\n value?: string | number | boolean | null;\n // (optional) value used for dirty checking\n dirtyCheckValue?: string | number | boolean | null;\n}\n\nexport interface IdsDataGridEditor {\n /** The type of editor (i.e. input, dropdown, checkbox ect) */\n type: string;\n /** The main editor element */\n input?: IdsInput | IdsCheckbox | IdsDropdown | IdsDatePicker | IdsTimePicker | IdsLookup;\n /** Optional Popup interface for some cell types */\n popup?: IdsDatePickerPopup | IdsTimePickerPopup | IdsModal;\n /** The function that invokes and sets values on the input */\n init: (cell?: IdsDataGridCell) => void;\n /** The function that transforms and saved the editor */\n save: (cell?: IdsDataGridCell) => IdsDataGridSaveValue | undefined | null;\n /** The function that tears down all aspects of the editor */\n destroy: (cell?: IdsDataGridCell) => void;\n /** MouseEvent if click was used to edit */\n clickEvent?: MouseEvent;\n /** The function that returns the input-element's value */\n value: () => boolean | number | string;\n /** The function that changes the input-element's value */\n change: (newValue: boolean | number | string) => void;\n}\n\nconst applyEditorSettings = (elem: any, settings?: Record<string, any>) => {\n // eslint-disable-next-line guard-for-in\n for (const setting in settings) {\n elem[setting] = settings[setting];\n }\n};\n\nconst applyEditorValidation = (elem: any, validation?: Partial<IdsValidationRule>) => {\n if (elem?.addValidationRule && validation) {\n validation.type = 'error';\n elem?.addValidationRule?.(validation);\n }\n};\n\nconst applyEditorDropdownFocus = async (editor: IdsDataGridEditor) => {\n const autoOpen = (<HTMLElement> editor.clickEvent?.target)?.classList?.contains('editor-cell-icon');\n if (autoOpen) {\n await editor.input?.open();\n }\n editor.input?.dropdownList?.focus();\n};\n\nconst applyEditorPopupFocus = async (editor: IdsDataGridEditor) => {\n const autoOpen = (<HTMLElement> editor.clickEvent?.target)?.classList?.contains('editor-cell-icon');\n if (autoOpen) {\n await editor.popup?.show();\n editor.popup?.focus();\n } else {\n editor.input?.focus();\n }\n};\n\nconst applyEditorEndCellEdit = (cell: IdsDataGridCell, e: KeyboardEvent) => {\n if (e.code === 'Escape') {\n e.stopImmediatePropagation();\n e.stopPropagation();\n e.preventDefault();\n cell?.cancelCellEdit();\n cell?.focus();\n }\n};\n\nexport class InputEditor implements IdsDataGridEditor {\n /** The type of editor (i.e. input, dropdown, checkbox ect) */\n type = 'input';\n\n /** Holds the Editor */\n input?: IdsInput;\n\n /**\n * Create an input and set the value and focus states\n * @param {IdsDataGridCell} cell the cell element\n */\n init(cell?: IdsDataGridCell) {\n const isInline = cell?.column.editor?.inline;\n this.input = <IdsInput> document.createElement('ids-input');\n this.input.colorVariant = isInline ? 'in-cell' : 'borderless';\n this.input.size = 'full';\n this.input.fieldHeight = String(cell?.dataGrid?.rowHeight) === 'xxs' ? `xs` : String(cell?.dataGrid?.rowHeight);\n this.input.labelState = 'collapsed';\n\n // Clear cell and set value\n const value = cell?.innerText;\n const treeFieldContainer = cell?.querySelector('.ids-data-grid-tree-field-container');\n if (treeFieldContainer) {\n // For tree-formatted cells, replace only the text container to preserve the expand/collapse icon\n treeFieldContainer.innerHTML = '';\n treeFieldContainer.appendChild(this.input as any);\n } else {\n cell!.innerHTML = '';\n cell?.appendChild(this.input as any);\n }\n this.input.addEventListener('keydown', (e) => applyEditorEndCellEdit(cell!, e));\n\n this.input.value = value;\n\n if (this.input instanceof IdsInput && cell) {\n if (!isInline) this.input.shadowRoot?.querySelector('input')?.style.setProperty('width', `${cell.offsetWidth - 5}px`);\n const settings = { ...cell?.column.editor?.editorSettings };\n const shouldAutoselect = settings?.autoselect;\n delete settings.autoselect;\n applyEditorSettings(this.input, settings);\n applyEditorValidation(this.input, cell?.column.editor?.editorValidation);\n const nativeInput = this.input.shadowRoot?.querySelector('input');\n if (shouldAutoselect) {\n nativeInput?.select();\n }\n }\n this.input.focus();\n }\n\n /* Transform the value */\n save() {\n return { value: this.input?.value };\n }\n\n /* Destroy the editor */\n destroy() {\n this.input = undefined;\n }\n\n value() {\n return this.input?.value ?? '';\n }\n\n change(newValue: boolean | number | string) {\n if (this.input) this.input.value = String(newValue);\n }\n}\n\n/**\n * Password Input Editor for IDS Data Grid\n * Shows masked input with revealed last characters and toggle button\n */\nexport class PasswordInputEditor extends InputEditor {\n type = 'password';\n\n #toggleButton?: IdsIcon;\n\n /**\n * Create a password input and set the value and focus states\n * @param {IdsDataGridCell} cell the cell element\n */\n init(cell?: IdsDataGridCell) {\n super.init(cell);\n const dataIndex = getClosest(cell, 'ids-data-grid-row').getAttribute('data-index');\n const rowData = getClosest(cell, 'ids-data-grid').data[dataIndex];\n const isInline = cell?.column.editor?.inline;\n\n // Make the input password type\n this.input!.type = 'password';\n\n // Create toggle button\n this.#toggleButton = <IdsIcon> document.createElement('ids-icon');\n this.#toggleButton.icon = 'show-item';\n this.#toggleButton.classList.add('editor-cell-icon');\n this.#toggleButton.classList.add('text-mask');\n\n // Clear cell and set value\n const value = rowData[cell!.column.id];\n cell!.innerHTML = '';\n\n // Add input and button to container\n cell?.appendChild(this.input as any);\n cell?.appendChild(this.#toggleButton as any);\n\n // set value to the input\n this.input!.value = value;\n\n // Handle toggle button click\n this.#toggleButton.offEvent('click');\n this.#toggleButton.onEvent('click', this.#toggleButton, () => {\n if (!this.input || !this.#toggleButton) {\n return;\n }\n\n const masked = this.input.type === 'password';\n\n const inputEl = this.input.shadowRoot?.querySelector('input');\n\n // Store current cursor position\n let cursorPos = 0;\n if (inputEl) {\n cursorPos = inputEl.selectionStart || 0;\n }\n\n if (masked) {\n this.input.type = 'text';\n this.#toggleButton.icon = 'hide-item';\n } else {\n this.#toggleButton.icon = 'show-item';\n this.input.type = 'password';\n }\n\n this.input.focus();\n\n // Restore cursor position\n if (inputEl) {\n setTimeout(() => {\n inputEl.setSelectionRange(cursorPos, cursorPos);\n }, 0);\n }\n });\n\n if (this.input instanceof IdsInput && cell) {\n if (!isInline) this.input.shadowRoot?.querySelector('input')?.style.setProperty('width', `100%`);\n applyEditorSettings(this.input, cell?.column.editor?.editorSettings);\n applyEditorValidation(this.input, cell?.column.editor?.editorValidation);\n }\n this.input!.focus();\n }\n\n /**\n * Transform the value for saving\n * @returns {IdsDataGridSaveValue} The value to save\n */\n save() {\n return { value: this.input?.value };\n }\n\n /**\n * Destroy the editor\n */\n destroy() {\n this.input?.removeEventListener('input', () => {});\n this.#toggleButton?.removeEventListener('click', () => {});\n this.input = undefined;\n this.#toggleButton = undefined;\n }\n}\n\nexport class CheckboxEditor implements IdsDataGridEditor {\n /** The type of editor (i.e. input, dropdown, checkbox ect) */\n type = 'checkbox';\n\n /** Holds the Editor */\n input?: IdsCheckbox;\n\n /** MouseEvent if click was used to edit */\n clickEvent?: MouseEvent;\n\n /** Cache original value type for proper saving */\n #originalValue?: any;\n\n /** Cache custom functions from editorSettings */\n #customSave?: (value: any) => void;\n\n #customValidate?: (value: any) => void;\n\n /**\n * Create an input and set the value and focus states\n * @param {IdsDataGridCell} cell the cell element\n */\n init(cell?: IdsDataGridCell) {\n this.input = <IdsCheckbox> document.createElement('ids-checkbox');\n\n const row = getClosest(cell, 'ids-data-grid-row');\n const dataIndex = row?.getAttribute('data-index');\n const grid = getClosest(cell, 'ids-data-grid');\n const rowData = dataIndex !== null && grid?.data ? grid.data[dataIndex] : undefined;\n this.#originalValue = rowData && cell ? rowData[cell.column.id] : undefined;\n\n const settings = cell?.column.editor?.editorSettings;\n this.#customSave = typeof settings?.customSave === 'function' ? settings.customSave as (value: any) => void : undefined;\n this.#customValidate = typeof settings?.customValidate === 'function' ? settings.customValidate as (value: any) => void : undefined;\n\n // Clear cell and set value\n const value = stringToBool(cell?.querySelector('[aria-checked]')?.getAttribute('aria-checked'));\n cell!.innerHTML = '';\n if (!this.clickEvent) this.input.noAnimation = true;\n this.input.checked = this.clickEvent ? !value : value;\n (this.input as any).isDirty = !!this.clickEvent;\n\n applyEditorSettings(this.input, settings);\n\n cell?.appendChild(this.input as any);\n\n requestAnimationFrame(() => {\n cell?.endCellEdit();\n cell?.focus();\n });\n }\n\n /* Transform the value */\n save() {\n const checked = this.input?.checked;\n let value: any = checked;\n\n if (typeof this.#originalValue === 'number') {\n value = checked ? 1 : 0;\n } else if (typeof this.#originalValue === 'string') {\n value = checked ? 'true' : 'false';\n }\n if (this.#customValidate) this.#customValidate(value);\n if (this.#customSave) this.#customSave(value);\n\n return { value };\n }\n\n /* Destroy the editor */\n destroy() {\n this.input?.offEvent('keydown');\n this.input = undefined;\n this.#originalValue = undefined;\n this.#customSave = undefined;\n this.#customValidate = undefined;\n }\n\n value() {\n return !!this.input?.checked;\n }\n\n change(newValue: boolean | number | string) {\n if (this.input) this.input.checked = Boolean(newValue);\n }\n}\n\nexport class DropdownEditor implements IdsDataGridEditor {\n /** The type of editor (i.e. input, dropdown, checkbox ect) */\n type = 'dropdown';\n\n /** Holds the Editor */\n input?: IdsDropdown;\n\n /** Holds the separate Dropdown List */\n list?: IdsDropdownList;\n\n /** Cache cell reference */\n #cell?: IdsDataGridCell;\n\n /** Cache dropdown value */\n #value?: string | null;\n\n /** Callback reference to handle blur event propagation */\n #stopPropagationCb = this.stopPropagation.bind(this);\n\n /** MouseEvent if click was used to edit */\n clickEvent?: MouseEvent;\n\n async init(cell?: IdsDataGridCell): Promise<void> {\n this.#value = cell?.querySelector('[data-value]')?.getAttribute('data-value') ?? cell?.value ?? null;\n const isInline = cell?.column.editor?.inline;\n const settings = { ...cell?.column?.editor?.editorSettings };\n const validation = { ...cell?.column?.editor?.editorValidation };\n let settingsOptions = <any[]>settings?.options ?? [];\n\n this.input = <IdsDropdown>document.createElement('ids-dropdown');\n this.list = <IdsDropdownList>document.createElement('ids-dropdown-list');\n\n // Set combobox if specified in settings\n if (cell?.column?.editor?.editorSettings?.comboBox) {\n this.input.combobox = true;\n }\n\n if (cell?.column?.editor?.editorSettings?.source !== undefined\n && cell?.column?.editor?.editorSettings?.source instanceof Function) {\n cell?.column?.editor?.editorSettings?.source().then(async (result: any) => {\n const newOptions = await result;\n settings.options = newOptions;\n settingsOptions = newOptions;\n this.input?.loadDataSet(settingsOptions);\n });\n }\n\n // apply user settings\n delete settings.options;\n applyEditorSettings(this.input, settings);\n if ([null, false, undefined].includes(this.input.typeahead)) {\n this.input.typeahead = false;\n }\n\n cell!.innerHTML = '';\n cell!.appendChild(this.input);\n this.input.addEventListener('keydown', (e) => applyEditorEndCellEdit(cell!, e));\n\n cell!.appendChild(this.list);\n cell!.classList.add('is-focused');\n this.#cell = cell!;\n\n this.list.insertAdjacentHTML('beforeend', '<ids-list-box></ids-list-box>');\n this.list.setAttribute('trigger-type', 'custom');\n this.input.setAttribute('id', 'ids-dropdown-active-cell');\n this.list.setAttribute('id', 'ids-dropdown-list-active-cell');\n this.input.setAttribute('list', '#ids-dropdown-list-active-cell');\n\n const optionValues = settingsOptions.map((row) => String(row.value).toLowerCase());\n const defaultValue = cell?.defaultValue || this.#value;\n\n if (defaultValue && !optionValues.includes(defaultValue.toLowerCase())) {\n const [firstOption, ...remainingOptions] = settingsOptions;\n const defaultValueOption = { id: defaultValue, label: defaultValue, value: defaultValue };\n if (this.input.comboBox) {\n settingsOptions = [firstOption, ...remainingOptions];\n } else {\n settingsOptions = [firstOption, defaultValueOption, ...remainingOptions];\n }\n }\n\n this.input.loadDataSet(settingsOptions);\n\n this.list.configurePopup();\n this.list.setAttribute('slot', 'menu-container');\n this.list.setAttribute('size', 'full');\n this.list.setAttribute('attachment', '.ids-data-grid-wrapper');\n this.list.appendToTargetParent();\n\n if (this.list?.popup) {\n this.list.popup.alignTarget = this.input;\n this.list.popup.onPlaceEnd = (popupRect: DOMRect, domElement) => {\n if (cell?.dataGrid?.rowHeight === 'xxs') {\n domElement.style.top = `${parseInt(domElement.style.top) - 1}px`;\n }\n\n // Get the current x position of cell\n const cellLeft = cell?.getBoundingClientRect().left || 0;\n // Get the current x position of container\n const containerLeft = domElement.offsetParent?.getBoundingClientRect().left || 0;\n domElement.style.left = `${cellLeft - containerLeft}px`;\n return popupRect;\n };\n }\n\n this.input.value = this.#value ?? '';\n this.input.size = 'full';\n this.input.labelState = 'collapsed';\n this.input.colorVariant = isInline ? 'in-cell' : 'borderless';\n this.input.fieldHeight = String(cell?.dataGrid?.rowHeight);\n const triggerField = this.input.container?.querySelector<IdsTriggerField>('ids-trigger-field');\n if (triggerField) {\n triggerField.focus();\n triggerField.colorVariant = isInline ? 'in-cell' : 'borderless';\n }\n\n if (this.input.comboBox) {\n this.input.dropdownList?.classList.add('is-combobox');\n triggerField?.setAttribute('combobox', 'true');\n triggerField?.setAttribute('autoselect', 'true');\n triggerField?.classList.add('combo-filter');\n if (triggerField?.input) triggerField.input.value = this.input.value;\n }\n\n // apply user validation\n if (validation) {\n applyEditorValidation(this.input.input, validation);\n }\n\n this.#attachEventListeners();\n // Only open if initiated by a click\n if (this.clickEvent && !this.input.comboBox) {\n await this.input?.open(this.input.typeahead);\n }\n if (this.input.comboBox) {\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n applyEditorDropdownFocus(this);\n }\n }\n\n /**\n * Overrides data grid cell's focusout event handling\n * @param {FocusEvent} evt focus event\n */\n stopPropagation(evt: FocusEvent) {\n const tagName = evt.relatedTarget instanceof HTMLElement ? evt.relatedTarget.tagName : evt.relatedTarget;\n\n if (tagName === 'IDS-DROPDOWN' || tagName === 'IDS-LIST-BOX-OPTION') {\n evt.stopPropagation();\n evt.stopImmediatePropagation();\n }\n }\n\n /**\n * Attach dropdown event handlers\n */\n #attachEventListeners() {\n this.input?.onEvent('change', this.input, (evt) => { this.#value = evt.detail.value; });\n this.input?.onEvent('focusout', this.input, this.#stopPropagationCb);\n if (this.list) {\n this.list.onOutsideClick = (e: MouseEvent) => {\n if (!e.composedPath().includes(this.list!)) {\n this.input?.close();\n }\n };\n this.list.refreshTriggerEvents();\n // Close code is in #startCellEdit\n }\n\n this.input?.onEvent('keydown', this.list, (e) => {\n const key = e.key;\n if (key === 'Enter') {\n e.stopPropagation();\n }\n });\n }\n\n /* Save selected dropdown value */\n save() {\n return {\n value: this.input?.value,\n dirtyCheckValue: this.input?.input?.value\n };\n }\n\n /**\n * Destroy dropdown editor\n */\n destroy(): void {\n this.input?.offEvent('click');\n this.input?.offEvent('change');\n this.input?.offEvent('focusout', this.input, this.#stopPropagationCb);\n this.list?.offEvent('keydown');\n this.list?.remove();\n this.#value = undefined;\n\n this.#cell?.classList?.remove('is-focused');\n this.#cell = undefined;\n }\n\n value() {\n return this.input?.value ?? '';\n }\n\n change(newValue: boolean | number | string) {\n if (this.input) this.input.value = String(newValue);\n }\n}\n\nexport class DatePickerEditor implements IdsDataGridEditor {\n public type = 'datepicker';\n\n public input?: IdsTriggerField;\n\n public popup?: IdsDatePickerPopup;\n\n clickEvent?: MouseEvent;\n\n #value?: Date;\n\n #displayValue = '';\n\n init(cell?: IdsDataGridCell) {\n this.input = this.#buildDatePickerTriggerField(cell!);\n this.popup = this.#buildDatePickerPopup(cell!);\n\n // parse date string\n this.#update(cell!, cell!.originalValue as string);\n\n // insert datepicker component and focus\n cell!.innerHTML = '';\n cell!.appendChild(this.popup);\n cell!.appendChild(this.input);\n this.input.addEventListener('keydown', (e) => applyEditorEndCellEdit(cell!, e));\n\n this.input.value = this.#displayValue;\n this.popup?.syncDateAttributes(this.#value ?? new Date());\n if (this.input) this.input.autoselect = (cell?.column?.editor?.editorSettings?.autoselect as boolean) || true;\n\n const validation = cell?.column.editor?.editorValidation;\n if (validation) {\n applyEditorValidation(this.input, validation);\n }\n\n if (this.popup) {\n const popup = this.popup;\n this.popup.value = this.#displayValue;\n this.popup.attachment = '.ids-data-grid-wrapper';\n this.popup.slot = 'menu-container';\n\n this.popup.appendToTargetParent();\n if (this.popup.popup) {\n this.popup.popup.positionStyle = 'fixed';\n this.popup.popup.popupOpenEventsTarget = document.body;\n this.popup.popup.onOutsideClick = (e: MouseEvent) => {\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n if (!e.composedPath().includes(popup)) { popup.hide(); }\n };\n }\n\n // apply popup required settings\n this.popup.id = `${cell!.column.field}-date-picker-popup`;\n this.popup.triggerType = 'click';\n this.popup.triggerElem = `#${cell!.column.field}-date-picker-btn`;\n this.popup.target = `#${cell!.column.field}-date-picker`;\n this.popup.popup!.align = 'bottom, right';\n this.popup.popup!.arrowTarget = `#${cell!.column.field}-date-picker-btn`;\n this.popup.popup!.y = 16;\n this.popup.refreshTriggerEvents();\n\n // Show button group\n if (this.popup.hasTime()) {\n this.popup.showApply = true;\n const buttonGroup = this.popup.container?.querySelector('.popup-footer');\n buttonGroup?.classList.remove('hidden');\n }\n\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n applyEditorPopupFocus(this);\n }\n\n this.#attachEventListeners(cell);\n }\n\n #buildDatePickerTriggerField(cell: IdsDataGridCell): IdsTriggerField {\n const component = <IdsTriggerField>document.createElement('ids-trigger-field');\n\n // apply user settings\n applyEditorSettings(component, cell?.column.editor?.editorSettings);\n\n component.id = `${cell.column.field}-date-picker`;\n component.fieldHeight = String(cell?.dataGrid?.rowHeight) === 'xxs' ? `xs` : String(cell?.dataGrid?.rowHeight);\n component.labelState = 'collapsed';\n component.colorVariant = 'borderless';\n component.size = 'full';\n component.mask = true;\n\n component.insertAdjacentHTML(\n 'beforeend',\n `<ids-trigger-button\n class=\"ids-trigger-field-slot-trigger-end\"\n id=\"${cell.column.field}-date-picker-btn\"\n slot=\"trigger-end\"\n icon=\"calendar\"></ids-trigger-button>`\n );\n\n return component;\n }\n\n #buildDatePickerPopup(cell: IdsDataGridCell): IdsDatePickerPopup {\n const component = <IdsDatePickerPopup>document.createElement('ids-date-picker-popup');\n // apply user settings\n applyEditorSettings(component, cell?.column.editor?.editorSettings);\n return component;\n }\n\n #update(cell: IdsDataGridCell, dateString: string) {\n const inputDate = cell?.dataGrid.localeAPI.parseDate(\n dateString,\n { dateFormat: cell?.column?.editor?.editorSettings?.format || undefined }\n ) as Date;\n\n if (!dateString || !isValidDate(inputDate)) {\n this.#displayValue = dateString;\n this.#value = undefined;\n return;\n }\n\n // update original date value, preserving time from input if available\n if (this.#value instanceof Date) {\n this.#value.setFullYear(inputDate.getFullYear());\n this.#value.setMonth(inputDate.getMonth());\n this.#value.setDate(inputDate.getDate());\n // Update time components if they differ from default (00:00:00)\n if (inputDate.getHours() !== 0 || inputDate.getMinutes() !== 0\n || inputDate.getSeconds() !== 0 || inputDate.getMilliseconds() !== 0) {\n this.#value.setHours(inputDate.getHours());\n this.#value.setMinutes(inputDate.getMinutes());\n this.#value.setSeconds(inputDate.getSeconds());\n this.#value.setMilliseconds(inputDate.getMilliseconds());\n }\n } else {\n this.#value = inputDate;\n }\n\n this.#displayValue = cell!.dataGrid.localeAPI.formatDate(this.#value, cell.column?.editor?.editorSettings);\n }\n\n #stopPropagation(evt: FocusEvent): void {\n const isOpen = this.input?.popup?.hidden === false;\n if (isOpen) evt.stopImmediatePropagation();\n }\n\n #attachEventListeners(cell?: IdsDataGridCell | undefined) {\n const focusOutHandler = (evt: FocusEvent) => this.#stopPropagation(evt);\n this.input?.onEvent('focusout', this.input, focusOutHandler, { capture: true });\n this.popup?.onEvent('hide', this.popup, () => {\n if (cell!.contains(cell!.dataGrid!.shadowRoot!.activeElement)) return;\n if (!cell!.dataGrid!.contains(document.activeElement)) return;\n if (!cell!.dataGrid!.shadowRoot!.contains(document.activeElement)) return;\n\n cell?.focus();\n });\n }\n\n save(cell?: IdsDataGridCell) {\n this.#update(cell!, cell?.value);\n\n return {\n value: this.#value?.toISOString() ?? '',\n dirtyCheckValue: this.#displayValue\n };\n }\n\n destroy() {\n this.input?.offEvent('focusout');\n this.input?.offEvent('outsideclick.datepicker');\n this.popup?.offEvent('hide');\n this.popup?.remove();\n\n this.#value = undefined;\n this.#displayValue = '';\n }\n\n value() {\n return this.input?.input?.value ?? '';\n }\n\n change(newValue: boolean | number | string) {\n if (this.input?.input) this.input.input.value = String(newValue);\n }\n}\n\nexport class TimePickerEditor implements IdsDataGridEditor {\n type = 'timepicker';\n\n input?: IdsTriggerField;\n\n popup?: IdsTimePickerPopup;\n\n clickEvent?: MouseEvent;\n\n #originalDate?: Date;\n\n init(cell?: IdsDataGridCell | undefined) {\n this.input = this.#buildTimePickerTriggerField(cell!);\n this.popup = this.#buildTimePickerPopup(cell!);\n\n // parse date string\n const dateString = cell!.originalValue as string ?? '';\n const date = cell!.dataGrid!.localeAPI!.parseDate(dateString, undefined, true) as Date;\n const isValid = isValidDate(date);\n this.#originalDate = isValid ? date : undefined;\n this.input.value = isValid ? cell!.dataGrid!.localeAPI!.formatDate(this.#originalDate, { pattern: this.input.format }) : '';\n\n // insert time picker and focus\n cell!.innerHTML = '';\n cell!.appendChild(this.popup);\n cell!.appendChild(this.input);\n this.input.addEventListener('keydown', (e) => applyEditorEndCellEdit(cell!, e));\n\n this.input.autoselect = (cell?.column?.editor?.editorSettings?.autoselect as boolean) || true;\n\n if (this.popup) {\n const popup = this.popup;\n this.popup.attachment = '.ids-data-grid-wrapper';\n this.popup.slot = 'menu-container';\n\n this.popup.appendToTargetParent();\n if (this.popup.popup) {\n this.popup.popup.positionStyle = 'fixed';\n this.popup.popup.popupOpenEventsTarget = document.body;\n this.popup.popup.onOutsideClick = async (e: MouseEvent) => {\n if (!e.composedPath().includes(popup)) { await popup.hide(); }\n };\n }\n\n // apply popup required settings\n this.popup.id = `${cell!.column.field}-time-picker-popup`;\n this.popup.triggerType = 'click';\n this.popup.triggerElem = `#${cell!.column.field}-time-picker-btn`;\n this.popup.target = `#${cell!.column.field}-time-picker`;\n this.popup.popup!.align = 'bottom, right';\n this.popup.popup!.arrowTarget = `#${cell!.column.field}-time-picker-btn`;\n this.popup.popup!.y = 16;\n this.popup.refreshTriggerEvents();\n\n if (this.#originalDate) {\n const hours = this.#originalDate.getHours();\n this.popup.hours = hours > 11 ? hours - 12 : hours;\n this.popup.minutes = this.#originalDate.getMinutes();\n this.popup.seconds = this.#originalDate.getSeconds();\n this.popup.period = hours > 11 ? 'PM' : 'AM';\n }\n\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n applyEditorPopupFocus(this);\n }\n\n this.#attachEventListeners(cell);\n }\n\n #buildTimePickerTriggerField(cell: IdsDataGridCell): IdsTriggerField {\n const component = <IdsTriggerField>document.createElement('ids-trigger-field');\n\n // apply user settings\n applyEditorSettings(component, cell?.column.editor?.editorSettings);\n\n // apply required settings\n component.id = `${cell.column.field}-time-picker`;\n component.fieldHeight = String(cell?.dataGrid?.rowHeight) === 'xxs' ? `xs` : String(cell?.dataGrid?.rowHeight);\n component.labelState = 'collapsed';\n component.colorVariant = 'borderless';\n component.size = 'full';\n component.mask = true;\n\n component.insertAdjacentHTML(\n 'beforeend',\n `<ids-trigger-button\n class=\"ids-trigger-field-slot-trigger-end\"\n id=\"${cell.column.field}-time-picker-btn\"\n slot=\"trigger-end\"\n icon=\"clock\"></ids-trigger-button>`\n );\n\n return component;\n }\n\n #buildTimePickerPopup(cell: IdsDataGridCell): IdsTimePickerPopup {\n const popup = <IdsTimePickerPopup>document.createElement('ids-time-picker-popup');\n\n // apply user settings\n applyEditorSettings(popup, cell?.column.editor?.editorSettings);\n\n return popup;\n }\n\n #attachEventListeners(cell?: IdsDataGridCell | undefined) {\n this.popup?.onEvent('hide', this.popup, () => {\n if (cell!.contains(cell!.dataGrid!.shadowRoot!.activeElement)) return;\n cell?.focus();\n });\n }\n\n save(cell?: IdsDataGridCell) {\n let date;\n const inputValue = this.input!.value;\n if (inputValue) {\n date = cell!.dataGrid.localeAPI!.parseDate(inputValue, { pattern: this.input!.format }, true) as Date;\n\n // Timepicker formats don't include the \"date\" portion,\n // So this fills in the missing parts from the `#originalDate` if possible to save a valid date value.\n if (this.#originalDate && (\n this.#originalDate.getMonth() !== date?.getMonth()\n || this.#originalDate.getFullYear() !== date?.getFullYear()\n || this.#originalDate.getDate() !== date?.getDate()\n )) {\n date?.setMonth(this.#originalDate.getMonth());\n date?.setFullYear(this.#originalDate.getFullYear());\n date?.setDate(this.#originalDate.getDate());\n }\n }\n\n return {\n value: date && isValidDate(date) ? date?.toISOString() : undefined,\n dirtyCheckValue: inputValue\n };\n }\n\n destroy() {\n this.input?.offEvent('focusout');\n this.input?.detachAllListeners();\n this.input?.remove();\n this.popup?.offEvent('hide');\n this.popup?.detachAllListeners();\n this.popup?.remove();\n this.#originalDate = undefined;\n }\n\n value() {\n return this.input?.value ?? '';\n }\n\n change(newValue: boolean | number | string) {\n if (this.input) this.input.value = String(newValue);\n }\n}\n\nexport class TreeEditor extends InputEditor {\n expandButton?: IdsButton;\n\n fieldContainer?: HTMLElement;\n\n /**\n * Adds extra button element for mimicking the tree formatter's display\n * @param {IdsDataGridCell} cell the cell element\n */\n init(cell?: IdsDataGridCell) {\n super.init(cell);\n\n const buttonHTML = this.#isExpandable(cell!) ? `<ids-button class=\"expand-button\" disabled=\"true\">\n <ids-icon icon=\"plusminus-folder-${this.#isExpanded(cell!) ? 'open' : 'closed'}\"></ids-icon>\n </ids-button>` : '';\n\n cell!.insertAdjacentHTML('afterbegin', `<span class=\"ids-data-grid-tree-container\">\n ${buttonHTML}\n <span class=\"ids-data-grid-tree-field-container\"></span>\n </span>`);\n\n this.expandButton = cell!.querySelector<IdsButton>('.expand-button')!;\n this.fieldContainer = cell!.querySelector<HTMLElement>('.ids-data-grid-tree-field-container')!;\n this.fieldContainer.appendChild(this.input!);\n }\n\n #isExpanded(cell: IdsDataGridCell) {\n const rowData = cell.dataGrid.data[cell.rowIndex];\n if (rowData) return rowData.rowExpanded !== false;\n return false;\n }\n\n #isExpandable(cell: IdsDataGridCell) {\n const rowData = cell.dataGrid.data[cell.rowIndex];\n if (rowData && Array.isArray(rowData.children)) {\n return rowData.children.length > 0;\n }\n return false;\n }\n\n destroy() {\n super.destroy();\n this.expandButton?.remove();\n this.fieldContainer?.remove();\n this.expandButton = undefined;\n this.fieldContainer = undefined;\n }\n}\n\nexport class LookupEditor implements IdsDataGridEditor {\n type = 'lookup';\n\n input?: IdsLookup;\n\n popup?: IdsModal;\n\n clickEvent?: MouseEvent;\n\n /**\n * Create an input and set the value and focus states\n * @param {IdsDataGridCell} cell the cell element\n */\n init(cell?: IdsDataGridCell) {\n const isInline = cell?.column.editor?.inline;\n this.input = <IdsLookup>document.createElement('ids-lookup');\n this.input.size = isInline ? 'full' : '';\n\n this.input.clearable = true;\n this.input.labelState = 'collapsed';\n\n // Clear cell and set value\n const value = cell?.innerText ?? '';\n cell!.innerHTML = '';\n cell?.appendChild(this.input as any);\n this.input.addEventListener('keydown', (e) => applyEditorEndCellEdit(cell!, e));\n\n this.input.value = value;\n\n this.popup = this.input.modal ?? undefined;\n\n applyEditorSettings(this.input, { ...cell?.column.editor?.editorSettings });\n applyEditorValidation(this.input?.input, cell?.column.editor?.editorValidation);\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n applyEditorPopupFocus(this);\n\n if (this.input?.triggerField) {\n this.input.triggerField.labelState = 'collapsed';\n this.input.triggerField.colorVariant = isInline ? 'in-cell' : 'borderless';\n this.input.triggerField.focus();\n this.input.triggerField.offEvent('paste', this.input.triggerField.input);\n this.input.triggerField.onEvent('paste', this.input.triggerField.input, (e) => {\n e.stopPropagation();\n });\n }\n\n const rowHeight = String(cell?.dataGrid?.rowHeight);\n\n // TODO: these are hacks... we should fix styles for xxs and not cheat by giving them styles for xs\n this.input.fieldHeight = rowHeight === 'xxs' ? `xs` : rowHeight;\n this.input.triggerField?.toggleAttribute(attributes.NO_MARGINS, rowHeight !== 'xxs');\n this.input.triggerField?.clearableButton?.toggleAttribute(attributes.NO_MARGINS, rowHeight !== 'xxs');\n this.input.triggerButton?.toggleAttribute(attributes.NO_MARGINS, rowHeight !== 'xxs');\n }\n\n value() {\n return this.input?.value ?? '';\n }\n\n change(newValue: boolean | number | string) {\n if (this.input) this.input.value = String(newValue);\n }\n\n /* Save selected dropdown value */\n save(): IdsDataGridSaveValue | undefined | null {\n return {\n value: this.input?.value,\n dirtyCheckValue: this.input?.input?.value\n };\n }\n\n /* Destroy the editor */\n destroy() {\n this.input?.offEvent('keydown');\n this.input?.offEvent('change');\n this.input = undefined;\n }\n}\n\nexport const editors: Array<{ type: string, editor?: IdsDataGridEditor }> = [];\n\neditors.push({\n type: 'input',\n editor: new InputEditor()\n});\n\neditors.push({\n type: 'password',\n editor: new PasswordInputEditor()\n});\n\neditors.push({\n type: 'checkbox',\n editor: new CheckboxEditor()\n});\n\neditors.push({\n type: 'dropdown',\n editor: new DropdownEditor()\n});\n\neditors.push({\n type: 'datepicker',\n editor: new DatePickerEditor()\n});\n\neditors.push({\n type: 'timepicker',\n editor: new TimePickerEditor()\n});\n\neditors.push({\n type: 'tree',\n editor: new TreeEditor()\n});\n\neditors.push({\n type: 'lookup',\n editor: new LookupEditor()\n});\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;AA6DA,IAAM,sBAAsB,CAAC,MAAW,aAAmC;AAEzE,aAAW,WAAW,UAAU;AAC9B,SAAK,OAAO,IAAI,SAAS,OAAO;AAAA,EAClC;AACF;AAEA,IAAM,wBAAwB,CAAC,MAAW,eAA4C;AACpF,MAAI,MAAM,qBAAqB,YAAY;AACzC,eAAW,OAAO;AAClB,UAAM,oBAAoB,UAAU;AAAA,EACtC;AACF;AAEA,IAAM,2BAA2B,OAAO,WAA8B;AACpE,QAAM,WAA0B,OAAO,YAAY,QAAS,WAAW,SAAS,kBAAkB;AAClG,MAAI,UAAU;AACZ,UAAM,OAAO,OAAO,KAAK;AAAA,EAC3B;AACA,SAAO,OAAO,cAAc,MAAM;AACpC;AAEA,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