@orangelogic/design-system 2.57.0 → 2.58.0
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.
- package/library/chunks/{button.2-Io1Wm4.js → button.kTTrlOjj.js} +2 -2
- package/library/chunks/{color-swatch-group.VXPK-2tU.js → color-swatch-group.ClKQ2WzZ.js} +4 -4
- package/library/chunks/{color-swatch.8OhqVqb6.js → color-swatch.BdV7Nsvx.js} +2 -2
- package/library/chunks/{confirm-popover.DGvyB12c.js → confirm-popover.CMeOJWvb.js} +3 -3
- package/library/chunks/{dialog.CIeu0rVD.js → dialog.B_63yVcD.js} +2 -2
- package/library/chunks/{dom.CaZCTJCL.js → dom.Dc-BF08t.js} +28 -22
- package/library/chunks/{dot-pagination.CyCA3kSP.js → dot-pagination.C8zQgnjD.js} +1 -1
- package/library/chunks/{file-on-demand.aux9gsvH.js → file-on-demand.CAxlBbwj.js} +10 -10
- package/library/chunks/{folder-select.B7u40ijN.js → folder-select.DMyWzPjA.js} +5 -5
- package/library/chunks/{form.DycFDdkp.js → form.D1R9s3Mf.js} +1 -1
- package/library/chunks/{format-time.C56HetWv.js → format-time.CxG-siAa.js} +1 -1
- package/library/chunks/{header.RvymymCe.js → header.NqYF4Nlq.js} +1 -1
- package/library/chunks/{i18n.dCiJrmqj.js → i18n.DwnDne7p.js} +10 -8
- package/library/chunks/{iframe.Cwqniwf2.js → iframe.qomerN2u.js} +1 -1
- package/library/chunks/{image.gpleN29o.js → image.2h_mxSth.js} +3 -3
- package/library/chunks/{list-editor.BToq5cqp.js → list-editor.Cofa7Vyh.js} +7 -7
- package/library/chunks/{option.CJ1p2V0m.js → option.B4tI5rHw.js} +1 -1
- package/library/chunks/pagination.Bp5dTjrN.js +339 -0
- package/library/chunks/{popup.BE5MfEQJ.js → popup.CQSGj4zE.js} +1 -1
- package/library/chunks/{select.xBh4yerC.js → select.D_Ee1gDW.js} +5 -6
- package/library/chunks/{string.DPf4puTr.js → string.BF2AikHa.js} +13 -9
- package/library/chunks/{tab-group.CjvHb3OJ.js → tab-group.CT6rt4_n.js} +3 -3
- package/library/chunks/{table.CrX_NJiY.js → table.keGRLyqZ.js} +3165 -2612
- package/library/chunks/{timecode.XXmVg6tU.js → timecode.DE8W5tFV.js} +1 -1
- package/library/chunks/{tree.CDaFhGjU.js → tree.CBc6xKk4.js} +1 -1
- package/library/components/alert.js +1 -1
- package/library/components/asset-link-format.js +4 -4
- package/library/components/atoms.js +15 -15
- package/library/components/border-input-group.js +1 -1
- package/library/components/breadcrumb.js +1 -1
- package/library/components/button.js +3 -3
- package/library/components/checkbox.js +1 -1
- package/library/components/color-picker.js +4 -4
- package/library/components/color-swatch-group.js +5 -5
- package/library/components/color-swatch.js +3 -3
- package/library/components/confirm-popover.js +4 -4
- package/library/components/copy-button.js +1 -1
- package/library/components/corner-position-input-group.js +3 -3
- package/library/components/details.js +1 -1
- package/library/components/dialog.js +3 -3
- package/library/components/dot-pagination.js +2 -2
- package/library/components/drawer.js +1 -1
- package/library/components/dropdown.js +2 -2
- package/library/components/dynamic-select.js +5 -5
- package/library/components/element-clamp.js +2 -2
- package/library/components/file-on-demand.js +11 -11
- package/library/components/folder-select.js +4 -4
- package/library/components/format-bytes.js +1 -1
- package/library/components/format-date.js +1 -1
- package/library/components/format-number.js +1 -1
- package/library/components/format-time.js +2 -2
- package/library/components/header.js +2 -2
- package/library/components/icon-button.js +1 -1
- package/library/components/iframe.js +2 -2
- package/library/components/image-comparer.js +1 -1
- package/library/components/image.js +3 -3
- package/library/components/input.js +2 -2
- package/library/components/line-clamp.js +2 -2
- package/library/components/list-editor.js +6 -6
- package/library/components/masonry.js +1 -1
- package/library/components/menu-item.js +2 -2
- package/library/components/menu.js +1 -1
- package/library/components/molecules.js +4 -4
- package/library/components/option.js +2 -2
- package/library/components/organisms.js +2 -2
- package/library/components/pagination.js +16 -336
- package/library/components/popup.js +2 -2
- package/library/components/position-picker.js +1 -1
- package/library/components/progress-bar.js +1 -1
- package/library/components/progress-ring.js +1 -1
- package/library/components/radio-group.js +1 -1
- package/library/components/range.js +3 -3
- package/library/components/rating.js +1 -1
- package/library/components/relative-time.js +1 -1
- package/library/components/select.js +5 -5
- package/library/components/share-option-list.js +2 -2
- package/library/components/size-input-group.js +2 -2
- package/library/components/spinner.js +1 -1
- package/library/components/split-panel.js +1 -1
- package/library/components/switch.js +1 -1
- package/library/components/tab-group.js +4 -4
- package/library/components/tab.js +1 -1
- package/library/components/table.js +65 -57
- package/library/components/tag.js +1 -1
- package/library/components/textarea.js +51 -51
- package/library/components/timecode.js +2 -2
- package/library/components/tooltip.js +2 -2
- package/library/components/tree-item.js +2 -2
- package/library/components/tree.js +2 -2
- package/library/components/typeface.js +1 -1
- package/library/components/types.js +30 -30
- package/library/components/video.js +2 -2
- package/library/css/ol-base.css +4 -4
- package/library/package.json +1 -1
- package/library/packages/atoms/src/components/space/space.d.ts +1 -2
- package/library/packages/atoms/src/components/table/components/table-row-actions/table-row-actions-dropdown.d.ts +2 -1
- package/library/packages/atoms/src/components/table/components/table-row-actions/table-row-actions.d.ts +4 -4
- package/library/packages/atoms/src/components/table/components/table-toolbar/table-dropdown-filter.d.ts +36 -0
- package/library/packages/atoms/src/components/table/components/table-toolbar/table-toolbar.d.ts +10 -1
- package/library/packages/atoms/src/components/table/filter-controller.d.ts +84 -0
- package/library/packages/atoms/src/components/table/modules/HoverMenu.d.ts +9 -1
- package/library/packages/atoms/src/components/table/table.d.ts +41 -4
- package/library/packages/atoms/src/components/table/tabulator-tables/core/ColumnManager.d.ts +1 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/core/RowManager.d.ts +3 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/core/TabulatorFull.d.ts +1 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/core/cell/Cell.d.ts +1 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/core/cell/CellComponent.d.ts +1 -1
- package/library/packages/atoms/src/components/table/tabulator-tables/index.d.ts +1 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Edit/List.d.ts +49 -58
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Edit/defaults/editors/list.d.ts +3 -2
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Filter/Filter.d.ts +15 -8
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Format/Format.d.ts +1 -3
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Format/defaults/formatters/composite.d.ts +5 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Format/defaults/formatters/icon.d.ts +13 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Format/defaults/formatters/image.d.ts +4 -1
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Format/defaults/formatters/number.d.ts +13 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Format/defaults/formatters/plaintext.d.ts +6 -1
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Format/defaults/formatters/textarea.d.ts +4 -1
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Format/defaults/formatters/time.d.ts +9 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Format/defaults/formatters/traffic.d.ts +3 -7
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Format/defaults/formatters/typography.d.ts +13 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Format/defaults/formatters.d.ts +10 -0
- package/library/packages/events/src/cx-table-dropdown-filter-change.d.ts +13 -0
- package/library/packages/events/src/cx-table-row-action-click.d.ts +2 -1
- package/library/packages/events/src/events.d.ts +1 -0
- package/library/packages/types/src/table.d.ts +195 -22
- package/library/packages/utils/src/custom-element/i18n.d.ts +2 -0
- package/library/packages/utils/src/dom/dom.d.ts +2 -1
- package/library/packages/utils/src/string/string.d.ts +1 -0
- package/library/react-web-component.d.ts +18 -6
- package/package.json +1 -1
- package/library/chunks/pagination.y5oqoPVr.js +0 -4
package/library/css/ol-base.css
CHANGED
|
@@ -111,9 +111,9 @@
|
|
|
111
111
|
--cx-input-letter-spacing : var(--cx-letter-spacing-normal);
|
|
112
112
|
--cx-input-required-content : '*';
|
|
113
113
|
--cx-input-required-content-offset: -2px;
|
|
114
|
-
--cx-input-spacing-large : var(--cx-spacing-
|
|
114
|
+
--cx-input-spacing-large : var(--cx-spacing-medium);
|
|
115
115
|
--cx-input-spacing-medium : var(--cx-spacing-medium);
|
|
116
|
-
--cx-input-spacing-small : var(--cx-spacing-
|
|
116
|
+
--cx-input-spacing-small : var(--cx-spacing-medium);
|
|
117
117
|
|
|
118
118
|
/* Font tokens */
|
|
119
119
|
--cx-font-heading-2x-large: var(--cx-font-weight-semi-bold,600) var(--cx-font-size-2x-large,28px)/var(--cx-font-line-height-32,32px) var(--cx-font-sans,'Inter');
|
|
@@ -131,8 +131,8 @@
|
|
|
131
131
|
|
|
132
132
|
|
|
133
133
|
/* Labels */
|
|
134
|
-
--cx-input-label-font-size-large : var(--cx-font-size-
|
|
135
|
-
--cx-input-label-font-size-medium : var(--cx-font-size-small);
|
|
134
|
+
--cx-input-label-font-size-large : var(--cx-font-size-x-small);
|
|
135
|
+
--cx-input-label-font-size-medium : var(--cx-font-size-x-small);
|
|
136
136
|
--cx-input-label-font-size-small : var(--cx-font-size-x-small);
|
|
137
137
|
--cx-input-label-text-transform : none;
|
|
138
138
|
--cx-radio-label-text-transform : none;
|
package/library/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { default as CortexElement } from '../../../../base/src/cortex-element.ts';
|
|
2
|
+
import { SpacingProp } from '../../../../types/src/space';
|
|
2
3
|
import { CSSResultGroup } from 'lit';
|
|
3
4
|
|
|
4
|
-
type SpacingProp = '3x-small' | '2x-small' | 'x-small' | 'small' | 'medium' | 'large' | 'x-large' | '2x-large' | '3x-large' | '4x-large';
|
|
5
5
|
/**
|
|
6
6
|
* @summary SpacingContainer allows for flexible layout spacing between child elements, vertically or horizontally, with varying sizes.
|
|
7
7
|
*
|
|
@@ -48,4 +48,3 @@ declare global {
|
|
|
48
48
|
'cx-space': SpacingContainer;
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
|
-
export {};
|
|
@@ -7,7 +7,7 @@ import { default as CxMenuSection } from '../../../menu-section/menu-section.ts'
|
|
|
7
7
|
import { RowComponent } from '../../table.ts';
|
|
8
8
|
import { default as CxTooltip } from '../../../tooltip/tooltip.ts';
|
|
9
9
|
import { default as CortexElement } from '../../../../../../base/src/cortex-element.ts';
|
|
10
|
-
import { DropdownItem, RowAction } from '../../../../../../types/src/table';
|
|
10
|
+
import { DropdownItem, ICellComponent, RowAction } from '../../../../../../types/src/table';
|
|
11
11
|
import { nothing } from 'lit';
|
|
12
12
|
|
|
13
13
|
export default class CxTableRowActionsDropdown extends CortexElement {
|
|
@@ -23,6 +23,7 @@ export default class CxTableRowActionsDropdown extends CortexElement {
|
|
|
23
23
|
private readonly localize;
|
|
24
24
|
action: RowAction;
|
|
25
25
|
row: RowComponent;
|
|
26
|
+
cell?: ICellComponent;
|
|
26
27
|
groupedDropdownItems: Record<string, DropdownItem[]>;
|
|
27
28
|
sections: string[];
|
|
28
29
|
createRenderRoot(): this;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { default as CxButton } from '../../../button/button.ts';
|
|
2
2
|
import { default as CxIcon } from '../../../icon/icon.ts';
|
|
3
3
|
import { default as CxSpace } from '../../../space/space.ts';
|
|
4
|
-
import { RowComponent } from '../../table.ts';
|
|
5
4
|
import { default as CxTooltip } from '../../../tooltip/tooltip.ts';
|
|
6
5
|
import { default as CortexElement } from '../../../../../../base/src/cortex-element.ts';
|
|
7
|
-
import { RowAction } from '../../../../../../types/src/table';
|
|
6
|
+
import { ICellComponent, IRowComponent, RowAction } from '../../../../../../types/src/table';
|
|
8
7
|
import { CSSResultGroup } from 'lit';
|
|
9
8
|
import { default as CxTableRowActionsDropdown } from './table-row-actions-dropdown';
|
|
10
9
|
|
|
@@ -17,7 +16,7 @@ import { default as CxTableRowActionsDropdown } from './table-row-actions-dropdo
|
|
|
17
16
|
* @dependency cx-space
|
|
18
17
|
* @dependency cx-table-row-actions-dropdown
|
|
19
18
|
*
|
|
20
|
-
* @event {{ name: string, row: RowComponent }} cx-table-row-action-click - Emitted when an action is clicked.
|
|
19
|
+
* @event {{ name: string, row: RowComponent, cell?: CellComponent }} cx-table-row-action-click - Emitted when an action is clicked.
|
|
21
20
|
*
|
|
22
21
|
* @property {RowAction[]} actions - The list of actions to display.
|
|
23
22
|
* @property {number} rowIndex - The index of the row.
|
|
@@ -32,7 +31,8 @@ export default class CxTableRowActions extends CortexElement {
|
|
|
32
31
|
'cx-tooltip': typeof CxTooltip;
|
|
33
32
|
};
|
|
34
33
|
actions: RowAction[];
|
|
35
|
-
row:
|
|
34
|
+
row: IRowComponent;
|
|
35
|
+
cell?: ICellComponent;
|
|
36
36
|
private handleActionClick;
|
|
37
37
|
private renderButton;
|
|
38
38
|
private renderDropdown;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { default as CxButton } from '../../../button/button.ts';
|
|
2
|
+
import { default as CxDropdown } from '../../../dropdown/dropdown.ts';
|
|
3
|
+
import { default as CxMenu } from '../../../menu/menu.ts';
|
|
4
|
+
import { default as CxMenuItem } from '../../../menu-item/menu-item.ts';
|
|
5
|
+
import { default as CortexElement } from '../../../../../../base/src/cortex-element.ts';
|
|
6
|
+
import { TableDropdownFilterData, TableDropdownFilterDataOption } from '../../../../../../types/src/table';
|
|
7
|
+
import { CSSResultGroup } from 'lit';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* @summary CxTableDropdownFilter
|
|
11
|
+
*/
|
|
12
|
+
export default class CxTableDropdownFilter extends CortexElement {
|
|
13
|
+
static readonly styles: CSSResultGroup;
|
|
14
|
+
static readonly dependencies: {
|
|
15
|
+
'cx-button': typeof CxButton;
|
|
16
|
+
'cx-dropdown': typeof CxDropdown;
|
|
17
|
+
'cx-menu': typeof CxMenu;
|
|
18
|
+
'cx-menu-item': typeof CxMenuItem;
|
|
19
|
+
};
|
|
20
|
+
data: TableDropdownFilterData;
|
|
21
|
+
activeOptionId: string;
|
|
22
|
+
optionsMap: Record<string, TableDropdownFilterDataOption>;
|
|
23
|
+
get activeOption(): TableDropdownFilterDataOption;
|
|
24
|
+
createRenderRoot(): this;
|
|
25
|
+
private createOptionsMap;
|
|
26
|
+
private selectOptionWithId;
|
|
27
|
+
handleDataChange(): void;
|
|
28
|
+
private handleMenuSelect;
|
|
29
|
+
private renderMenuItems;
|
|
30
|
+
render(): import('lit').TemplateResult<1>;
|
|
31
|
+
}
|
|
32
|
+
declare global {
|
|
33
|
+
interface HTMLElementTagNameMap {
|
|
34
|
+
'cx-table-dropdown-filter': CxTableDropdownFilter;
|
|
35
|
+
}
|
|
36
|
+
}
|
package/library/packages/atoms/src/components/table/components/table-toolbar/table-toolbar.d.ts
CHANGED
|
@@ -5,12 +5,14 @@ import { default as CxIconButton } from '../../../icon-button/icon-button.ts';
|
|
|
5
5
|
import { default as CxInput } from '../../../input/input.ts';
|
|
6
6
|
import { default as CxMenu } from '../../../menu/menu.ts';
|
|
7
7
|
import { default as CxMenuItem } from '../../../menu-item/menu-item.ts';
|
|
8
|
+
import { default as CxPagination } from '../../../pagination/pagination.ts';
|
|
8
9
|
import { default as CxSpace } from '../../../space/space.ts';
|
|
9
10
|
import { default as CxTooltip } from '../../../tooltip/tooltip.ts';
|
|
10
11
|
import { default as CxTypography } from '../../../typography/typography.ts';
|
|
11
12
|
import { default as CortexElement } from '../../../../../../base/src/cortex-element.ts';
|
|
12
|
-
import { SavedSearchItem } from '../../../../../../types/src/table';
|
|
13
|
+
import { SavedSearchItem, TableDropdownFilterData } from '../../../../../../types/src/table';
|
|
13
14
|
import { CSSResultGroup } from 'lit';
|
|
15
|
+
import { default as CxTableDropdownFilter } from './table-dropdown-filter';
|
|
14
16
|
import { default as CxTableSavedSearchDropdown } from './table-saved-search-dropdown';
|
|
15
17
|
|
|
16
18
|
/**
|
|
@@ -27,7 +29,9 @@ export default class CxTableToolbar extends CortexElement {
|
|
|
27
29
|
'cx-input': typeof CxInput;
|
|
28
30
|
'cx-menu': typeof CxMenu;
|
|
29
31
|
'cx-menu-item': typeof CxMenuItem;
|
|
32
|
+
'cx-pagination': typeof CxPagination;
|
|
30
33
|
'cx-space': typeof CxSpace;
|
|
34
|
+
'cx-table-dropdown-filter': typeof CxTableDropdownFilter;
|
|
31
35
|
'cx-table-saved-search-dropdown': typeof CxTableSavedSearchDropdown;
|
|
32
36
|
'cx-tooltip': typeof CxTooltip;
|
|
33
37
|
'cx-typography': typeof CxTypography;
|
|
@@ -66,6 +70,10 @@ export default class CxTableToolbar extends CortexElement {
|
|
|
66
70
|
* Whether to display a export custom button
|
|
67
71
|
*/
|
|
68
72
|
canExportCustom: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* The dropdown filters to display in the toolbar.
|
|
75
|
+
*/
|
|
76
|
+
dropdownFilters: TableDropdownFilterData[];
|
|
69
77
|
/**
|
|
70
78
|
* Whether to display a save report button
|
|
71
79
|
*/
|
|
@@ -107,6 +115,7 @@ export default class CxTableToolbar extends CortexElement {
|
|
|
107
115
|
private renderAddButton;
|
|
108
116
|
private renderSavedSearchDropdown;
|
|
109
117
|
private renderExportDropdown;
|
|
118
|
+
private renderDropdownFilters;
|
|
110
119
|
render(): import('lit').TemplateResult<1>;
|
|
111
120
|
}
|
|
112
121
|
declare global {
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { Filter, TableDropdownFilterData } from '../../../../types/src/table';
|
|
2
|
+
import { ReactiveController, ReactiveControllerHost } from 'lit';
|
|
3
|
+
import { default as CxTable } from './table';
|
|
4
|
+
|
|
5
|
+
export type FilterSource = 'search' | `dropdown:${string}`;
|
|
6
|
+
/**
|
|
7
|
+
* A reactive controller to manage programmatic filter state across multiple sources (search, dropdowns).
|
|
8
|
+
* Coordinates filter operations to prevent conflicts between different filter sources.
|
|
9
|
+
*
|
|
10
|
+
* Note: This controller only manages programmatic filters (set via search and dropdown sources).
|
|
11
|
+
* Header filters (set directly on table columns) are managed separately by the Filter class
|
|
12
|
+
* and are not affected by this controller's operations.
|
|
13
|
+
*
|
|
14
|
+
* The controller also preserves initialFilter (if set) when applying filters, ensuring that
|
|
15
|
+
* initial filters are not lost when FilterController-managed filters are applied.
|
|
16
|
+
*/
|
|
17
|
+
export declare class FilterController implements ReactiveController {
|
|
18
|
+
private readonly host;
|
|
19
|
+
private readonly filters;
|
|
20
|
+
private isConnected;
|
|
21
|
+
constructor(host: ReactiveControllerHost & CxTable);
|
|
22
|
+
hostConnected(): void;
|
|
23
|
+
hostDisconnected(): void;
|
|
24
|
+
hostUpdated(): void;
|
|
25
|
+
/**
|
|
26
|
+
* Set filters for a specific source, replacing any existing filters for that source.
|
|
27
|
+
* @param source - The filter source identifier
|
|
28
|
+
* @param filters - Array of filters to set for this source
|
|
29
|
+
*/
|
|
30
|
+
setSourceFilters(source: FilterSource, filters: Filter[]): void;
|
|
31
|
+
/**
|
|
32
|
+
* Add a single filter to a specific source.
|
|
33
|
+
* @param source - The filter source identifier
|
|
34
|
+
* @param filterEntry - The filter to add
|
|
35
|
+
*/
|
|
36
|
+
addFilter(source: FilterSource, filter: Filter): void;
|
|
37
|
+
/**
|
|
38
|
+
* Clear all filters for a specific source, or all filters if no source is provided.
|
|
39
|
+
* @param source - Optional filter source identifier. If not provided, clears all filters.
|
|
40
|
+
*/
|
|
41
|
+
clearSourceFilters(source?: FilterSource): void;
|
|
42
|
+
/**
|
|
43
|
+
* Removes sources for dropdown ids no longer present, clears sources when `defaultOption` is unset,
|
|
44
|
+
* and applies filters for each configured `defaultOption`
|
|
45
|
+
*/
|
|
46
|
+
syncDropdownFilterSources(configs: readonly TableDropdownFilterData[]): void;
|
|
47
|
+
/**
|
|
48
|
+
* Remove filters for a specific field, optionally scoped to a specific source.
|
|
49
|
+
* @param field - The field name to remove filters for
|
|
50
|
+
* @param source - Optional source to limit removal to
|
|
51
|
+
*/
|
|
52
|
+
removeFieldFilters(field: string, source?: FilterSource): void;
|
|
53
|
+
/**
|
|
54
|
+
* Get all active programmatic filters from all sources managed by this controller.
|
|
55
|
+
* Note: This does not include header filters (managed separately) or initialFilter
|
|
56
|
+
* (which is included separately when applying filters).
|
|
57
|
+
* @returns Array of all active programmatic filters from controller-managed sources
|
|
58
|
+
*/
|
|
59
|
+
getFilters(): Filter[];
|
|
60
|
+
/**
|
|
61
|
+
* Get filters for a specific source.
|
|
62
|
+
* @param source - The filter source identifier
|
|
63
|
+
* @returns Array of filters for the specified source, or empty array if none exist
|
|
64
|
+
*/
|
|
65
|
+
getSourceFilters(source: FilterSource): Filter[];
|
|
66
|
+
/**
|
|
67
|
+
* Check if a specific source has any active filters.
|
|
68
|
+
* @param source - The filter source identifier
|
|
69
|
+
* @returns True if the source has active filters
|
|
70
|
+
*/
|
|
71
|
+
hasSourceFilters(source: FilterSource): boolean;
|
|
72
|
+
/**
|
|
73
|
+
* Reconcile all programmatic filters from all sources and apply them to the Tabulator instance.
|
|
74
|
+
* This method replaces all existing programmatic filters (filterList) in Tabulator and
|
|
75
|
+
* re-applies all filters from all sources to ensure consistency.
|
|
76
|
+
*
|
|
77
|
+
* Note: This only affects programmatic filters. Header filters are managed separately
|
|
78
|
+
* by the Filter class and are not modified by this method.
|
|
79
|
+
*
|
|
80
|
+
* This method also includes initialFilter (if set) to ensure it is preserved when
|
|
81
|
+
* FilterController applies its filters.
|
|
82
|
+
*/
|
|
83
|
+
applyFilters(): void;
|
|
84
|
+
}
|
|
@@ -1,13 +1,21 @@
|
|
|
1
1
|
import { IHoverMenu } from '../../../../../types/src/table';
|
|
2
|
-
import {
|
|
2
|
+
import { CxTableRowActions } from '../components';
|
|
3
|
+
import { Cell, Row, Tabulator } from '../tabulator-tables';
|
|
3
4
|
import { default as Module } from '../tabulator-tables/core/Module';
|
|
4
5
|
|
|
5
6
|
export default class HoverMenu extends Module implements IHoverMenu {
|
|
6
7
|
static readonly moduleName = "hoverMenu";
|
|
8
|
+
private static readonly placementDataAttribute;
|
|
7
9
|
hoverMenuField: string;
|
|
8
10
|
constructor(table: Tabulator);
|
|
9
11
|
initialize(): void;
|
|
10
12
|
handleRowMouseEnter(e: Event, row: Row): void;
|
|
11
13
|
handleRowMouseLeave(e: Event, row: Row): void;
|
|
14
|
+
handleCellMouseEnter(e: Event, cell: Cell): void;
|
|
15
|
+
handleCellMouseLeave(e: Event, cell: Cell): void;
|
|
16
|
+
createHoverMenuElement(): CxTableRowActions;
|
|
12
17
|
layoutRow(row: Row): void;
|
|
18
|
+
private getMenuPlacement;
|
|
19
|
+
private applyMenuPosition;
|
|
20
|
+
layoutCell(cell: Cell): void;
|
|
13
21
|
}
|
|
@@ -1,12 +1,19 @@
|
|
|
1
|
+
import { default as CxButton } from '../button/button.ts';
|
|
1
2
|
import { default as CxCheckbox } from '../checkbox/checkbox.ts';
|
|
3
|
+
import { default as CxDivider } from '../divider/divider.ts';
|
|
4
|
+
import { default as CxFormatNumber } from '../format-number/format-number.ts';
|
|
5
|
+
import { default as CxFormatTime } from '../format-time/format-time.ts';
|
|
6
|
+
import { default as CxIcon } from '../icon/icon.ts';
|
|
2
7
|
import { default as CxIconButton } from '../icon-button/icon-button.ts';
|
|
3
8
|
import { default as CxLineClamp } from '../line-clamp/line-clamp.ts';
|
|
9
|
+
import { default as CxSelect } from '../select/select.ts';
|
|
4
10
|
import { default as CxSpace } from '../space/space.ts';
|
|
5
11
|
import { default as CxSpinner } from '../spinner/spinner.ts';
|
|
6
12
|
import { default as CxTag } from '../tag/tag.ts';
|
|
13
|
+
import { default as CxTypography } from '../typography/typography.ts';
|
|
7
14
|
import { default as CortexElement } from '../../../../base/src/cortex-element.ts';
|
|
8
15
|
import { PaginationCounter } from '../../../../types/src/pagination';
|
|
9
|
-
import { HoverMenuOptions, SavedSearchItem, ColumnDefinition, Options, OptionsColumns, OptionsSpreadsheet, SheetDefinition } from '../../../../types/src/table';
|
|
16
|
+
import { HoverMenuOptions, SavedSearchItem, TableDropdownFilterData, ColumnDefinition, Options, OptionsColumns, OptionsSpreadsheet, SheetDefinition } from '../../../../types/src/table';
|
|
10
17
|
import { CSSResultGroup, TemplateResult } from 'lit';
|
|
11
18
|
import { CxTableRowActions, CxTableToolbar } from './components';
|
|
12
19
|
import { RowComponent, TabulatorFull as Tabulator } from './tabulator-tables';
|
|
@@ -49,6 +56,11 @@ import { RowComponent, TabulatorFull as Tabulator } from './tabulator-tables';
|
|
|
49
56
|
* @cssproperty [--placeholder-font-weight=var(--cx-font-weight-regular)] - The font weight of the table placeholder.
|
|
50
57
|
* @cssproperty [--placeholder-font-size=var(--cx-font-size-medium-large)] - The font size of the table placeholder.
|
|
51
58
|
* @cssproperty [--hover-menu-background-color=var(--cx-color-neutral-50)] - The background color of the table hover menu.
|
|
59
|
+
* @cssproperty [--table-selected-only-cell-background-color=transparent] - The background color of a single selected cell.
|
|
60
|
+
* @cssproperty [--table-selected-range-cell-background-color=var(--cx-color-neutral-100)] - The background color of selected cells within a range.
|
|
61
|
+
* @cssproperty [--table-selected-cell-border-color=var(--cx-color-primary-200)] - The border color of the active selected cell.
|
|
62
|
+
* @cssproperty [--table-selected-cell-border-width=1px] - The border width of the active selected cell.
|
|
63
|
+
* @cssproperty [--table-selected-cell-border-style=solid] - The border style of the active selected cell.
|
|
52
64
|
*
|
|
53
65
|
* @event {{ args: any[] }} cx-table.[event_name] - Emitted when the event with such name is emitted on the table.
|
|
54
66
|
* Must register the event listener on the table element to receive the event.
|
|
@@ -59,18 +71,27 @@ export default class CxTable extends CortexElement {
|
|
|
59
71
|
static readonly styles: CSSResultGroup;
|
|
60
72
|
private readonly localize;
|
|
61
73
|
static readonly dependencies: {
|
|
74
|
+
'cx-button': typeof CxButton;
|
|
62
75
|
'cx-checkbox': typeof CxCheckbox;
|
|
76
|
+
'cx-divider': typeof CxDivider;
|
|
77
|
+
'cx-format-number': typeof CxFormatNumber;
|
|
78
|
+
'cx-format-time': typeof CxFormatTime;
|
|
79
|
+
'cx-icon': typeof CxIcon;
|
|
63
80
|
'cx-icon-button': typeof CxIconButton;
|
|
64
81
|
'cx-line-clamp': typeof CxLineClamp;
|
|
82
|
+
'cx-select': typeof CxSelect;
|
|
65
83
|
'cx-space': typeof CxSpace;
|
|
66
84
|
'cx-spinner': typeof CxSpinner;
|
|
67
85
|
'cx-table-row-actions': typeof CxTableRowActions;
|
|
68
86
|
'cx-table-toolbar': typeof CxTableToolbar;
|
|
69
87
|
'cx-tag': typeof CxTag;
|
|
88
|
+
'cx-typography': typeof CxTypography;
|
|
70
89
|
};
|
|
71
|
-
private
|
|
90
|
+
private verticalOsInstance;
|
|
91
|
+
private horizontalOsInstance;
|
|
72
92
|
private resizeObserver;
|
|
73
93
|
private overflowObserver;
|
|
94
|
+
private readonly filterController;
|
|
74
95
|
private readonly tabulatorHolder;
|
|
75
96
|
private readonly tabulatorElement;
|
|
76
97
|
private readonly table;
|
|
@@ -211,6 +232,10 @@ export default class CxTable extends CortexElement {
|
|
|
211
232
|
* The parameter name for the page number for the saved search dropdown
|
|
212
233
|
*/
|
|
213
234
|
savedSearchPageNumberParam: string;
|
|
235
|
+
/**
|
|
236
|
+
* The dropdown filters to display in the toolbar.
|
|
237
|
+
*/
|
|
238
|
+
dropdownFilters: TableDropdownFilterData[];
|
|
214
239
|
/**
|
|
215
240
|
* The URL to load the data from.
|
|
216
241
|
*/
|
|
@@ -618,6 +643,10 @@ export default class CxTable extends CortexElement {
|
|
|
618
643
|
* The placeholder text to display when table is empty due to active filters.
|
|
619
644
|
*/
|
|
620
645
|
placeholderHeaderFilter: Options['placeholderHeaderFilter'];
|
|
646
|
+
/**
|
|
647
|
+
* The placeholder text to display when all columns are hidden.
|
|
648
|
+
*/
|
|
649
|
+
noColumnPlaceholderText: string;
|
|
621
650
|
/**
|
|
622
651
|
* Enables the overlay scrollbar plugin, which provides a custom scrollbar that does not take up any content space.
|
|
623
652
|
*/
|
|
@@ -635,10 +664,15 @@ export default class CxTable extends CortexElement {
|
|
|
635
664
|
initTable(): Promise<void>;
|
|
636
665
|
handleUseOverlayScrollbarChange(): void;
|
|
637
666
|
constructor();
|
|
638
|
-
runFirstUpdated(): void;
|
|
639
667
|
connectedCallback(): void;
|
|
668
|
+
runFirstUpdated(): void;
|
|
669
|
+
/**
|
|
670
|
+
* All logic that needs to run when the table is built should be placed here.
|
|
671
|
+
*/
|
|
672
|
+
private readonly handleTableBuilt;
|
|
640
673
|
disconnectedCallback(): void;
|
|
641
|
-
private
|
|
674
|
+
private initVerticalScrollbar;
|
|
675
|
+
private initHorizontalScrollbar;
|
|
642
676
|
private readonly checkHorizontalOverflow;
|
|
643
677
|
private initOverflowObserver;
|
|
644
678
|
private registerEventListeners;
|
|
@@ -649,6 +683,7 @@ export default class CxTable extends CortexElement {
|
|
|
649
683
|
handleDataChange(): void;
|
|
650
684
|
handleSpreadsheetDataChange(): void;
|
|
651
685
|
handleColumnsChange(): void;
|
|
686
|
+
handleNoColumnPlaceholderTextChange(): void;
|
|
652
687
|
handleGroupByChange(): void;
|
|
653
688
|
handleGroupHeaderChange(): void;
|
|
654
689
|
handleGroupValuesChange(): void;
|
|
@@ -657,7 +692,9 @@ export default class CxTable extends CortexElement {
|
|
|
657
692
|
search(searchText: string): void;
|
|
658
693
|
private handleSearch;
|
|
659
694
|
handleSearchFieldsChange(): void;
|
|
695
|
+
handleDropdownFiltersPropChange(): void;
|
|
660
696
|
private handleTableExport;
|
|
697
|
+
private handleDropdownFilterChange;
|
|
661
698
|
render(): TemplateResult;
|
|
662
699
|
}
|
|
663
700
|
declare global {
|
package/library/packages/atoms/src/components/table/tabulator-tables/core/ColumnManager.d.ts
CHANGED
|
@@ -64,6 +64,7 @@ export default class ColumnManager extends CoreFeature implements IColumnManager
|
|
|
64
64
|
addColumn(definition: ColumnDefinition, before?: boolean, nextToColumn?: IColumn | IColumnComponent | false): Promise<IColumn>;
|
|
65
65
|
deregisterColumn(column: IColumn): void;
|
|
66
66
|
rerenderColumns(update?: boolean, silent?: boolean): void;
|
|
67
|
+
refreshVisibilityLayout(): void;
|
|
67
68
|
blockRedraw(): void;
|
|
68
69
|
restoreRedraw(): void;
|
|
69
70
|
redraw(force?: boolean): void;
|
|
@@ -132,6 +132,9 @@ export default class RowManager extends CoreFeature implements IRowManager {
|
|
|
132
132
|
_clearTable(): void;
|
|
133
133
|
tableEmpty(): void;
|
|
134
134
|
checkPlaceholder(): void;
|
|
135
|
+
hasVisibleColumns(): boolean;
|
|
136
|
+
shouldShowPlaceholder(): boolean;
|
|
137
|
+
syncColumnVisibilityState(): void;
|
|
135
138
|
_showPlaceholder(): void;
|
|
136
139
|
_clearPlaceholder(): void;
|
|
137
140
|
_positionPlaceholder(): void;
|
package/library/packages/atoms/src/components/table/tabulator-tables/core/TabulatorFull.d.ts
CHANGED
|
@@ -43,6 +43,7 @@ declare class TabulatorFull extends Tabulator implements ITabulatorFull {
|
|
|
43
43
|
getSheetData: (key?: SheetLookup) => unknown[][];
|
|
44
44
|
getPage: () => Page;
|
|
45
45
|
setFilter: Filter['setFilter'];
|
|
46
|
+
createFilterFieldFunction: Filter['createFilterFieldFunction'];
|
|
46
47
|
clearFilter: Filter['clearFilter'];
|
|
47
48
|
selectRow: SelectRow['selectRows'];
|
|
48
49
|
deselectRow: SelectRow['deselectRows'];
|
|
@@ -18,6 +18,7 @@ export default class Cell extends CoreFeature implements ICell {
|
|
|
18
18
|
component: ICellComponent | null;
|
|
19
19
|
loaded: boolean;
|
|
20
20
|
calcs?: Record<string, any>;
|
|
21
|
+
hoverMenuElement: HTMLElement | null;
|
|
21
22
|
constructor(column: IColumn, row: IRow);
|
|
22
23
|
/**
|
|
23
24
|
* Setup Functions
|
package/library/packages/atoms/src/components/table/tabulator-tables/core/cell/CellComponent.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export default class CellComponent implements ICellComponent {
|
|
|
10
10
|
getElement(): HTMLElement | null;
|
|
11
11
|
getContentElement(): HTMLElement | null;
|
|
12
12
|
getRow(): import('../../../../../../../types/src/table').IRowComponent;
|
|
13
|
-
getData(transform
|
|
13
|
+
getData(transform?: string): Record<string, any>;
|
|
14
14
|
getType(): string;
|
|
15
15
|
getField(): string;
|
|
16
16
|
getColumn(): import('../../../../../../../types/src/table').IColumnComponent;
|
|
@@ -10,5 +10,6 @@ export { default as RangeComponent } from './modules/SelectRange/RangeComponent'
|
|
|
10
10
|
export { default as SheetComponent } from './modules/Spreadsheet/SheetComponent';
|
|
11
11
|
export { default as PseudoRow } from './core/row/PseudoRow';
|
|
12
12
|
export { default as Row } from './core/row/Row';
|
|
13
|
+
export { default as Cell } from './core/cell/Cell';
|
|
13
14
|
export { default as Module } from './core/Module';
|
|
14
15
|
export { default as Renderer } from './core/rendering/Renderer';
|
|
@@ -1,115 +1,106 @@
|
|
|
1
1
|
import { ITabulator } from '../../../../../../../types/src/table';
|
|
2
2
|
import { default as Cell } from '../../core/cell/Cell';
|
|
3
|
-
import { default as
|
|
4
|
-
import { default as
|
|
3
|
+
import { default as CxOption } from '../../../../option/option.ts';
|
|
4
|
+
import { default as CxSelect } from '../../../../select/select.ts';
|
|
5
5
|
import { ListEditorParams } from '../../core/types';
|
|
6
6
|
import { default as Edit } from './Edit';
|
|
7
7
|
|
|
8
8
|
interface ListItem {
|
|
9
|
-
element
|
|
10
|
-
elementAttributes?: Record<string, string>;
|
|
9
|
+
element?: CxOption;
|
|
11
10
|
group?: boolean;
|
|
12
11
|
itemParams?: any;
|
|
13
12
|
label: string;
|
|
14
13
|
level: number;
|
|
15
14
|
options?: ListItem[];
|
|
16
15
|
original: any;
|
|
16
|
+
sanitizedValue: string;
|
|
17
17
|
selected: boolean;
|
|
18
18
|
value: string | number | boolean;
|
|
19
19
|
visible: boolean;
|
|
20
20
|
}
|
|
21
21
|
interface ListParams extends ListEditorParams {
|
|
22
|
+
closedByDefault?: boolean;
|
|
22
23
|
emptyValue: any;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
freeWidth?: boolean;
|
|
25
|
+
placeholder?: string;
|
|
26
|
+
prefixElement?: HTMLElement | string;
|
|
26
27
|
verticalNavigation: 'editor' | 'table' | 'hybrid';
|
|
27
28
|
}
|
|
28
29
|
type SuccessCallback = (value: any) => void;
|
|
29
30
|
type CancelCallback = () => void;
|
|
30
31
|
type OnRenderedCallback = (callback: () => void) => void;
|
|
32
|
+
type ListInputValues = Record<string, string> | ListItem[] | Array<string | number>;
|
|
31
33
|
export default class List {
|
|
32
|
-
edit: Edit;
|
|
33
34
|
table: ITabulator;
|
|
34
35
|
cell: Cell;
|
|
35
36
|
params: ListParams;
|
|
36
37
|
data: ListItem[];
|
|
38
|
+
_itemsMap: Map<string, ListItem>;
|
|
37
39
|
displayItems: ListItem[];
|
|
38
40
|
currentItems: ListItem[];
|
|
39
41
|
focusedItem: ListItem | null;
|
|
40
|
-
input:
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
42
|
+
input: CxSelect;
|
|
43
|
+
initialValues: string[];
|
|
44
|
+
/**
|
|
45
|
+
* Whether the cell is a header cell, used for header filter of type list
|
|
46
|
+
*/
|
|
47
|
+
isHeaderFilter: boolean;
|
|
46
48
|
typing: boolean;
|
|
47
|
-
values: any[];
|
|
48
|
-
popup: Popup | null;
|
|
49
49
|
listIteration: number;
|
|
50
50
|
lastAction: string;
|
|
51
|
-
filterTerm: string;
|
|
52
|
-
blurable: boolean;
|
|
53
51
|
actions: {
|
|
54
52
|
cancel: CancelCallback;
|
|
55
53
|
success: SuccessCallback;
|
|
56
54
|
};
|
|
57
55
|
constructor(editor: Edit, cell: Cell, onRendered: OnRenderedCallback, success: SuccessCallback, cancel: CancelCallback, editorParams: ListEditorParams);
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
56
|
+
/**
|
|
57
|
+
* cx-select only accepts string values without spaces
|
|
58
|
+
* @param value - The value to sanitize
|
|
59
|
+
*/
|
|
60
|
+
sanitizeValue(value: any): string;
|
|
61
|
+
_initializeValue(): Promise<void>;
|
|
62
|
+
_onRendered(): Promise<void>;
|
|
63
|
+
clickStop(e: MouseEvent): void;
|
|
64
|
+
/**
|
|
65
|
+
* Refreshes {@link List._itemsMap} from {@link List.data} (O(n) once per options parse).
|
|
66
|
+
*/
|
|
67
|
+
_rebuildItemsMap(): void;
|
|
68
|
+
handleCxInputChange(): Promise<void>;
|
|
69
|
+
createPrefixElement(): HTMLElement | null;
|
|
70
|
+
_createSelectElement(): CxSelect;
|
|
64
71
|
_initializeParams(params: ListEditorParams): ListParams;
|
|
65
|
-
_bindInputEvents(input:
|
|
66
|
-
_inputFocus(): void;
|
|
67
|
-
_filter(): void;
|
|
72
|
+
_bindInputEvents(input: CxSelect): void;
|
|
68
73
|
_inputClick(e: MouseEvent): void;
|
|
69
|
-
_inputBlur(): void;
|
|
70
|
-
_inputSearch(): void;
|
|
74
|
+
_inputBlur(e: FocusEvent): void;
|
|
71
75
|
_inputKeyDown(e: KeyboardEvent): void;
|
|
72
|
-
_inputKeyUp(e: KeyboardEvent): void;
|
|
73
|
-
_preventPopupBlur(): void;
|
|
74
|
-
_preventBlur(): void;
|
|
75
|
-
_keyTab(_e?: KeyboardEvent): void;
|
|
76
|
-
_keyUp(e: KeyboardEvent): void;
|
|
77
|
-
_keyDown(e: KeyboardEvent): void;
|
|
78
|
-
_keySide(e: KeyboardEvent): void;
|
|
79
76
|
_keyEnter(): void;
|
|
80
77
|
_keyEsc(): void;
|
|
81
|
-
_keyHomeEnd(e: KeyboardEvent): void;
|
|
82
|
-
_keySelectLetter(e: KeyboardEvent): void;
|
|
83
|
-
_keyAutoCompLetter(_e?: KeyboardEvent): void;
|
|
84
|
-
_scrollToValue(char: number): void;
|
|
85
|
-
_focusItem(item: ListItem | null): void;
|
|
86
78
|
headerFilterInitialListGen(): void;
|
|
87
|
-
rebuildOptionsList(): void
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
_addPlaceholder(contents: string | HTMLElement | ((cell: CellComponent, listEl: HTMLElement) => string | HTMLElement)): void;
|
|
91
|
-
_ajaxRequest(url: string, term: string): Promise<any>;
|
|
79
|
+
rebuildOptionsList(): Promise<void>;
|
|
80
|
+
_generateOptions(): Promise<ListItem[]>;
|
|
81
|
+
_ajaxRequest(url: string, term: string): Promise<ListInputValues>;
|
|
92
82
|
_uniqueColumnValues(field?: string): string[];
|
|
93
83
|
_emptyValueCheck(value: any): boolean;
|
|
94
|
-
_parseList(inputValues:
|
|
95
|
-
_parseListItem(option: any,
|
|
84
|
+
_parseList(inputValues: ListInputValues | Record<string, any>): ListItem[];
|
|
85
|
+
_parseListItem(option: any, level: number): ListItem;
|
|
96
86
|
_parseListGroup(option: any, level: number): ListItem;
|
|
97
87
|
_sortOptions(options: ListItem[]): ListItem[];
|
|
98
88
|
_sortGroup(sorter: (a: string, b: string) => number, options: ListItem[]): void;
|
|
99
89
|
_defaultSortFunction(as: string, bs: string): number;
|
|
100
|
-
_filterOptions(): ListItem[];
|
|
101
|
-
_filterItem(func: (term: string, label: string, value: any, item: any) => boolean, term: string, item: ListItem): boolean;
|
|
102
|
-
_defaultFilterFunc(term: string, label: string, value: any): boolean;
|
|
103
90
|
_clearList(): void;
|
|
104
91
|
_buildList(data: ListItem[]): void;
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
92
|
+
/**
|
|
93
|
+
* Builds listbox content to match cx-select grouping (see Select docs): `<small>` labels and
|
|
94
|
+
* `<cx-divider>` between sections; only leaf rows are `<cx-option>`.
|
|
95
|
+
*/
|
|
96
|
+
_appendListItemSequence(items: ListItem[]): void;
|
|
97
|
+
_appendDivider(): void;
|
|
98
|
+
_appendSectionLabel(label: string): void;
|
|
99
|
+
_appendLeafOption(item: ListItem): void;
|
|
100
|
+
formatItemLabel(item: ListItem, el: HTMLElement): HTMLElement | string;
|
|
110
101
|
_cancel(): void;
|
|
111
|
-
_clearChoices(): void;
|
|
112
102
|
_chooseItem(item: ListItem, silent?: boolean): void;
|
|
113
|
-
|
|
103
|
+
_getCommittedOutput(): any;
|
|
104
|
+
_resolveValue(commitItem?: ListItem): void;
|
|
114
105
|
}
|
|
115
106
|
export {};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { EditorParams } from '../../../../../../../../../types/src/table';
|
|
1
2
|
import { default as CellComponent } from '../../../../core/cell/CellComponent';
|
|
2
|
-
import {
|
|
3
|
+
import { Cell } from '../../../../core/types';
|
|
3
4
|
import { default as Edit } from '../../Edit';
|
|
4
5
|
|
|
5
|
-
type EditorFunction = (this: Edit, cell: CellComponent, onRendered: (callback: () => void) => void, success: (value: any) => boolean, cancel: () => void, editorParams: EditorParams) => HTMLElement | false;
|
|
6
|
+
type EditorFunction = (this: Edit, cell: Cell | CellComponent, onRendered: (callback: () => void) => void, success: (value: any) => boolean, cancel: () => void, editorParams: EditorParams) => HTMLElement | false;
|
|
6
7
|
declare const list: EditorFunction;
|
|
7
8
|
export default list;
|