@revolist/revogrid 4.13.1 → 4.13.2
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/dist/cjs/{column.drag.plugin-0ce0b39a.js → column.drag.plugin-0f367fe1.js} +2 -1
- package/dist/cjs/column.drag.plugin-0f367fe1.js.map +1 -0
- package/dist/cjs/{sorting.sign-a1e9d97a.js → grouping.row.renderer-d6119ced.js} +6 -6
- package/dist/cjs/grouping.row.renderer-d6119ced.js.map +1 -0
- package/dist/cjs/index.cjs.js +7 -6
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/revo-grid.cjs.entry.js +1 -1
- package/dist/cjs/revogr-data_4.cjs.entry.js +5 -5
- package/dist/cjs/revogr-data_4.cjs.entry.js.map +1 -1
- package/dist/collection/plugins/sorting/sorting.plugin.js +2 -0
- package/dist/collection/plugins/sorting/sorting.plugin.js.map +1 -1
- package/dist/{revo-grid/column.drag.plugin-017c4fb3.js → esm/column.drag.plugin-d201beb7.js} +2 -2
- package/dist/{revo-grid/column.drag.plugin-017c4fb3.js.map → esm/column.drag.plugin-d201beb7.js.map} +1 -1
- package/dist/esm/{sorting.sign-c02e3b12.js → grouping.row.renderer-95f32c6b.js} +6 -6
- package/dist/esm/grouping.row.renderer-95f32c6b.js.map +1 -0
- package/dist/esm/index.js +3 -3
- package/dist/esm/revo-grid.entry.js +1 -1
- package/dist/esm/revogr-data_4.entry.js +1 -1
- package/dist/{esm/column.drag.plugin-017c4fb3.js → revo-grid/column.drag.plugin-d201beb7.js} +2 -2
- package/dist/{esm/column.drag.plugin-017c4fb3.js.map → revo-grid/column.drag.plugin-d201beb7.js.map} +1 -1
- package/dist/revo-grid/{sorting.sign-c02e3b12.js → grouping.row.renderer-95f32c6b.js} +6 -6
- package/dist/revo-grid/grouping.row.renderer-95f32c6b.js.map +1 -0
- package/dist/revo-grid/index.esm.js +3 -3
- package/dist/revo-grid/revo-grid.entry.js +1 -1
- package/dist/revo-grid/revogr-data_4.entry.js +1 -1
- package/dist/types/plugins/sorting/sorting.plugin.d.ts +2 -0
- package/hydrate/index.js +5 -5
- package/hydrate/index.mjs +5 -5
- package/package.json +1 -1
- package/standalone/index.js +1 -1
- package/standalone/revo-grid.js +1 -1
- package/standalone/revo-grid.js.map +1 -1
- package/dist/cjs/column.drag.plugin-0ce0b39a.js.map +0 -1
- package/dist/cjs/sorting.sign-a1e9d97a.js.map +0 -1
- package/dist/esm/sorting.sign-c02e3b12.js.map +0 -1
- package/dist/revo-grid/sorting.sign-c02e3b12.js.map +0 -1
|
@@ -5,6 +5,11 @@ import { h } from './index-f6fae858.js';
|
|
|
5
5
|
import { y as DATA_ROW } from './dimension.helpers-5567e424.js';
|
|
6
6
|
import { k as GROUP_EXPAND_BTN, P as PSEUDO_GROUP_ITEM, f as GROUP_EXPANDED, G as GROUP_DEPTH } from './column.service-f39c0a1d.js';
|
|
7
7
|
|
|
8
|
+
const SortingSign = ({ column }) => {
|
|
9
|
+
var _a;
|
|
10
|
+
return h("i", { class: (_a = column === null || column === void 0 ? void 0 : column.order) !== null && _a !== void 0 ? _a : 'sort-off' });
|
|
11
|
+
};
|
|
12
|
+
|
|
8
13
|
const PADDING_DEPTH = 10;
|
|
9
14
|
const RowRenderer = ({ rowClass, index, size, start, depth }, cells) => {
|
|
10
15
|
const props = Object.assign({ [DATA_ROW]: index });
|
|
@@ -55,11 +60,6 @@ const expandSvgIconVNode = (expanded = false) => {
|
|
|
55
60
|
h("path", { fill: "currentColor", d: "M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z" })));
|
|
56
61
|
};
|
|
57
62
|
|
|
58
|
-
const SortingSign = ({ column }) => {
|
|
59
|
-
var _a;
|
|
60
|
-
return h("i", { class: (_a = column === null || column === void 0 ? void 0 : column.order) !== null && _a !== void 0 ? _a : 'sort-off' });
|
|
61
|
-
};
|
|
62
|
-
|
|
63
63
|
export { GroupingRowRenderer as G, PADDING_DEPTH as P, RowRenderer as R, SortingSign as S, expandSvgIconVNode as a, expandEvent as e };
|
|
64
64
|
|
|
65
|
-
//# sourceMappingURL=
|
|
65
|
+
//# sourceMappingURL=grouping.row.renderer-95f32c6b.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"grouping.row.renderer-95f32c6b.js","mappings":";;;;;;;MAMa,WAAW,GAAG,CAAC,EAAE,MAAM,EAAS;;IAC3C,OAAO,SAAG,KAAK,EAAE,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,KAAK,mCAAI,UAAU,GAAI,CAAC;AACnD;;MCIa,aAAa,GAAG,GAAG;MAE1B,WAAW,GAAG,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAY,EAAE,KAAc;IACpF,MAAM,KAAK,iBACN,EAAE,CAAC,QAAQ,GAAG,KAAK,EAAE,CACzB,CAAC;IACF,QACE,2BACM,KAAK,IACT,KAAK,EAAE,SAAS,QAAQ,IAAI,EAAE,EAAE,EAChC,KAAK,EAAE;YACL,MAAM,EAAE,GAAG,IAAI,IAAI;YACnB,SAAS,EAAE,cAAc,KAAK,KAAK;YACnC,WAAW,EAAE,KAAK,GAAG,GAAG,aAAa,GAAG,KAAK,IAAI,GAAG,SAAS;SAC9D,KAEA,KAAK,CACF,EACN;AACJ;;SCZgB,WAAW,CAAC,CAAa,EAAE,KAAe,EAAE,YAAoB;;IAC9E,MAAM,KAAK,GAAG,IAAI,WAAW,CAAC,kBAAkB,EAAE;QAChD,MAAM,EAAE;YACN,KAAK;YACL,YAAY;SACb;QACD,UAAU,EAAE,IAAI;QAChB,OAAO,EAAE,IAAI;KACd,CAAiE,CAAC;IACnE,MAAA,CAAC,CAAC,MAAM,0CAAE,aAAa,CAAC,KAAK,CAAC,CAAC;AACjC,CAAC;MAEY,mBAAmB,GAAG,CAAC,KAAuB;IACzD,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,sBAAsB,EAAE,SAAS,EAAE,GACtE,KAAK,CAAC;IACR,MAAM,IAAI,GAAG,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACtC,MAAM,QAAQ,GAAG,KAAK,CAAC,cAAc,CAAC,CAAC;IACvC,MAAM,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC,WAAW,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC;IAEpD,IAAI,CAAC,SAAS,EAAE;QACd,OAAO,EAAC,WAAW,oBAAK,KAAK,IAAE,QAAQ,EAAC,aAAa,EAAC,KAAK,EAAE,KAAK,IAAI,CAAC;KACxE;IAED,IAAI,sBAAsB,EAAE;QAC1B,QACE,EAAC,WAAW,oBAAK,KAAK,IAAE,QAAQ,EAAC,aAAa,EAAC,KAAK,EAAE,KAAK;YACzD,WAAK,OAAO,EAAE,CAAC,IAAI,WAAW,CAAC,CAAC,EAAE,KAAK,EAAE,SAAS,CAAC,IAChD,sBAAsB,CAAC,CAAC,EAAE;gBACzB,IAAI;gBACJ,KAAK;gBACL,SAAS;gBACT,QAAQ;gBACR,KAAK;gBACL,SAAS;aACV,CAAC,CACE,CACM,EACd;KACH;IAED,QACE,EAAC,WAAW,oBAAK,KAAK,IAAE,QAAQ,EAAC,aAAa,EAAC,KAAK,EAAE,KAAK;QACzD,cACE,KAAK,EAAE,EAAE,CAAC,gBAAgB,GAAG,IAAI,EAAE,EACnC,OAAO,EAAE,CAAC,IAAI,WAAW,CAAC,CAAC,EAAE,KAAK,EAAE,SAAS,CAAC,IAE7C,kBAAkB,CAAC,QAAQ,CAAC,CACtB;QACR,IAAI,CACO,EACd;AACJ,EAAE;MAEW,kBAAkB,GAAG,CAAC,QAAQ,GAAG,KAAK;IACjD,QACE,0BACc,MAAM,EAClB,KAAK,EAAE,EAAE,SAAS,EAAE,UAAU,CAAC,QAAQ,GAAG,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,EACzD,SAAS,EAAC,OAAO,EACjB,OAAO,EAAC,aAAa;QAErB,YACE,IAAI,EAAC,cAAc,EACnB,CAAC,EAAC,yRAAyR,GACrR,CACJ,EACN;AACJ;;;;","names":[],"sources":["src/plugins/sorting/sorting.sign.tsx","src/components/data/row-renderer.tsx","src/plugins/groupingRow/grouping.row.renderer.tsx"],"sourcesContent":["import { h } from '@stencil/core';\nimport { ColumnRegular } from '@type';\n\ntype Props = {\n column: ColumnRegular;\n};\nexport const SortingSign = ({ column }: Props) => {\n return <i class={column?.order ?? 'sort-off'} />;\n};\n","import { h, type VNode } from '@stencil/core';\nimport { JSXBase } from '@stencil/core/internal';\nimport { DATA_ROW } from '../../utils/consts';\n\nexport interface RowProps extends JSXBase.HTMLAttributes {\n size: number;\n start: number;\n index: number;\n rowClass?: string;\n depth?: number;\n}\n\nexport const PADDING_DEPTH = 10;\n\nconst RowRenderer = ({ rowClass, index, size, start, depth }: RowProps, cells: VNode[]) => {\n const props = {\n ...{ [DATA_ROW]: index },\n };\n return (\n <div\n {...props}\n class={`rgRow ${rowClass || ''}`}\n style={{\n height: `${size}px`,\n transform: `translateY(${start}px)`,\n paddingLeft: depth ? `${PADDING_DEPTH * depth}px` : undefined,\n }}\n >\n {cells}\n </div>\n );\n};\n\nexport default RowRenderer;\n","import { h } from '@stencil/core';\nimport RowRenderer, { RowProps } from '../../components/data/row-renderer';\nimport {\n GROUP_DEPTH,\n GROUP_EXPANDED,\n GROUP_EXPAND_BTN,\n PSEUDO_GROUP_ITEM,\n} from './grouping.const';\nimport { GroupLabelTemplateFunc } from './grouping.row.types';\nimport { DataType, PositionItem, Providers } from '@type';\n\ninterface GroupRowPros extends RowProps {\n model: DataType;\n hasExpand: boolean;\n providers: Providers;\n groupingCustomRenderer?: GroupLabelTemplateFunc | null;\n}\nexport type RowGroupingProps = GroupRowPros & PositionItem;\n\nexport function expandEvent(e: MouseEvent, model: DataType, virtualIndex: number) {\n const event = new CustomEvent('groupexpandclick', {\n detail: {\n model,\n virtualIndex,\n },\n cancelable: true,\n bubbles: true,\n }) as CustomEvent<HTMLRevoGridElementEventMap['groupexpandclick']>;\n e.target?.dispatchEvent(event);\n}\n\nexport const GroupingRowRenderer = (props: RowGroupingProps) => {\n const { model, itemIndex, hasExpand, groupingCustomRenderer, providers } =\n props;\n const name = model[PSEUDO_GROUP_ITEM];\n const expanded = model[GROUP_EXPANDED];\n const depth = parseInt(model[GROUP_DEPTH], 10) || 0;\n\n if (!hasExpand) {\n return <RowRenderer {...props} rowClass=\"groupingRow\" depth={depth} />;\n }\n\n if (groupingCustomRenderer) {\n return (\n <RowRenderer {...props} rowClass=\"groupingRow\" depth={depth}>\n <div onClick={e => expandEvent(e, model, itemIndex)}>\n {groupingCustomRenderer(h, {\n name,\n model,\n itemIndex,\n expanded,\n depth,\n providers,\n })}\n </div>\n </RowRenderer>\n );\n }\n\n return (\n <RowRenderer {...props} rowClass=\"groupingRow\" depth={depth}>\n <button\n class={{ [GROUP_EXPAND_BTN]: true }}\n onClick={e => expandEvent(e, model, itemIndex)}\n >\n {expandSvgIconVNode(expanded)}\n </button>\n {name}\n </RowRenderer>\n );\n};\n\nexport const expandSvgIconVNode = (expanded = false) => {\n return (\n <svg\n aria-hidden=\"true\"\n style={{ transform: `rotate(${!expanded ? -90 : 0}deg)` }}\n focusable=\"false\"\n viewBox=\"0 0 448 512\"\n >\n <path\n fill=\"currentColor\"\n d=\"M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z\"\n ></path>\n </svg>\n );\n};\n\nexport default GroupingRowRenderer;\n"],"version":3}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built by Revolist OU ❤️
|
|
3
3
|
*/
|
|
4
|
-
import { B as BasePlugin } from './column.drag.plugin-
|
|
5
|
-
export { A as AutoSizeColumnPlugin, B as BasePlugin, C as ColumnMovePlugin, D as DimensionStore, b as ExportCsv, E as ExportFilePlugin, d as FILTER_CONFIG_CHANGED_EVENT, F as FILTER_TRIMMED_TYPE, e as FILTE_PANEL, f as FilterPlugin, G as GroupingRowPlugin, n as SortingPlugin, S as StretchColumn, c as columnTypes, k as doCollapse, l as doExpand, g as filterCoreFunctionsIndexedByType, j as filterNames, h as filterTypes, m as getLeftRelative, i as isRowType, a as isStretchPlugin, r as rowTypes } from './column.drag.plugin-
|
|
4
|
+
import { B as BasePlugin } from './column.drag.plugin-d201beb7.js';
|
|
5
|
+
export { A as AutoSizeColumnPlugin, B as BasePlugin, C as ColumnMovePlugin, D as DimensionStore, b as ExportCsv, E as ExportFilePlugin, d as FILTER_CONFIG_CHANGED_EVENT, F as FILTER_TRIMMED_TYPE, e as FILTE_PANEL, f as FilterPlugin, G as GroupingRowPlugin, n as SortingPlugin, S as StretchColumn, c as columnTypes, k as doCollapse, l as doExpand, g as filterCoreFunctionsIndexedByType, j as filterNames, h as filterTypes, m as getLeftRelative, i as isRowType, a as isStretchPlugin, r as rowTypes, s as sortIndexByItems } from './column.drag.plugin-d201beb7.js';
|
|
6
6
|
export { d as dispatch, a as dispatchByEvent } from './header-cell-renderer-31f53644.js';
|
|
7
7
|
export { h } from './index-f6fae858.js';
|
|
8
8
|
export { C as CELL_CLASS, L as CELL_HANDLER_CLASS, x as DATA_COL, y as DATA_ROW, z as DISABLED_CLASS, I as DRAGGABLE_CLASS, O as DRAGG_TEXT, G as DRAG_ICON_CLASS, D as DataStore, N as EDIT_INPUT_WR, J as FOCUS_CLASS, P as GRID_INTERNALS, F as HEADER_ACTUAL_ROW_CLASS, H as HEADER_CLASS, E as HEADER_ROW_CLASS, B as HEADER_SORTABLE_CLASS, M as MIN_COL_SIZE, K as MOBILE_CLASS, R as RESIZE_INTERVAL, Q as ROW_FOCUSED_CLASS, A as ROW_HEADER_TYPE, S as SELECTION_BORDER_CLASS, T as TMP_SELECTION_BG_CLASS, v as applyMixins, i as calculateDimensionData, U as codesLetter, l as findPositionInArray, h as gatherTrimmedItems, k as getItemByIndex, j as getItemByPosition, g as getPhysical, o as getScrollbarSize, b as getSourceItem, f as getSourceItemVirtualIndexByProp, c as getSourcePhysicalIndex, a as getVisibleSourceItem, V as keyValues, n as mergeSortedArray, p as proxyPlugin, m as pushSorted, r as range, q as scaleValue, e as setItems, d as setSourceByPhysicalIndex, s as setSourceByVirtualIndex, w as setStore, u as timeout, t as trimmedPlugin } from './dimension.helpers-5567e424.js';
|
|
9
9
|
export { m as GROUPING_ROW_TYPE, h as GROUP_COLUMN_PROP, G as GROUP_DEPTH, f as GROUP_EXPANDED, k as GROUP_EXPAND_BTN, l as GROUP_EXPAND_EVENT, j as GROUP_ORIGINAL_INDEX, e as PSEUDO_GROUP_COLUMN, P as PSEUDO_GROUP_ITEM, b as PSEUDO_GROUP_ITEM_ID, d as PSEUDO_GROUP_ITEM_VALUE, S as SelectionStore, c as cropCellToMax, E as gatherGroup, q as gatherGrouping, x as getCellData, z as getCellDataParsed, y as getCellRaw, F as getColumnByProp, B as getColumnSizes, A as getColumnType, D as getColumns, p as getExpanded, r as getGroupingName, v as getParsedGroup, g as getRange, o as getSource, C as isColGrouping, s as isGrouping, t as isGroupingColumn, i as isHiddenStore, a as isRangeSingleCell, w as isSameGroup, u as measureEqualDepth, n as nextCell } from './column.service-f39c0a1d.js';
|
|
10
|
-
export { G as GroupingRowRenderer, S as SortingSign, e as expandEvent, a as expandSvgIconVNode } from './
|
|
10
|
+
export { G as GroupingRowRenderer, S as SortingSign, e as expandEvent, a as expandSvgIconVNode } from './grouping.row.renderer-95f32c6b.js';
|
|
11
11
|
export { T as TextEditor } from './text-editor-e47e56c3.js';
|
|
12
12
|
export { V as ViewportStore, a as addMissingItems, f as calculateRowHeaderSize, d as getFirstItem, b as getItems, e as getLastItem, g as getUpdatedItemsByPosition, i as isActiveRange, c as isActiveRangeOutsideLastItem, r as recombineByOffset, s as setItemSizes, u as updateMissingAndRange } from './viewport.store-c18a25a6.js';
|
|
13
13
|
export { A as AND_OR_BUTTON, e as AndOrButton, a as FILTER_BUTTON_ACTIVE, F as FILTER_BUTTON_CLASS, b as FILTER_PROP, c as FilterButton, T as TRASH_BUTTON, d as TrashButton, i as isFilterBtn } from './filter.button-84396156.js';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { h, r as registerInstance, c as createEvent, H as Host, a as getElement } from './index-f6fae858.js';
|
|
5
5
|
import { H as reduce, A as getColumnType, B as getColumnSizes, K as EMPTY_INDEX, F as getColumnByProp, D as getColumns, L as SelectionStoreConnector } from './column.service-f39c0a1d.js';
|
|
6
|
-
import { c as columnTypes, o as forEach, r as rowTypes, i as isRowType, D as DimensionStore, B as BasePlugin, G as GroupingRowPlugin, S as StretchColumn, a as isStretchPlugin, A as AutoSizeColumnPlugin, f as FilterPlugin, E as ExportFilePlugin, n as SortingPlugin, C as ColumnMovePlugin } from './column.drag.plugin-
|
|
6
|
+
import { c as columnTypes, o as forEach, r as rowTypes, i as isRowType, D as DimensionStore, B as BasePlugin, G as GroupingRowPlugin, S as StretchColumn, a as isStretchPlugin, A as AutoSizeColumnPlugin, f as FilterPlugin, E as ExportFilePlugin, n as SortingPlugin, C as ColumnMovePlugin } from './column.drag.plugin-d201beb7.js';
|
|
7
7
|
import { D as DataStore, b as getSourceItem, f as getSourceItemVirtualIndexByProp, d as setSourceByPhysicalIndex, s as setSourceByVirtualIndex, a as getVisibleSourceItem, h as gatherTrimmedItems, k as getItemByIndex, R as RESIZE_INTERVAL, u as timeout } from './dimension.helpers-5567e424.js';
|
|
8
8
|
import { d as debounce } from './debounce-b3166f78.js';
|
|
9
9
|
import { V as ViewportStore } from './viewport.store-c18a25a6.js';
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { h, B as Build, r as registerInstance, c as createEvent, H as Host, a as getElement } from './index-f6fae858.js';
|
|
5
5
|
import { O as isRowDragService, z as getCellDataParsed, M as ColumnService, s as isGrouping, I as baseEach } from './column.service-f39c0a1d.js';
|
|
6
6
|
import { M as MIN_COL_SIZE, H as HEADER_CLASS, a7 as findIndex, k as getItemByIndex, E as HEADER_ROW_CLASS, Q as ROW_FOCUSED_CLASS, G as DRAG_ICON_CLASS, I as DRAGGABLE_CLASS, b as getSourceItem, x as DATA_COL, y as DATA_ROW, a8 as getNative, Y as isArray, a4 as baseIteratee, J as FOCUS_CLASS, B as HEADER_SORTABLE_CLASS, F as HEADER_ACTUAL_ROW_CLASS } from './dimension.helpers-5567e424.js';
|
|
7
|
-
import { G as GroupingRowRenderer, R as RowRenderer, P as PADDING_DEPTH, S as SortingSign } from './
|
|
7
|
+
import { G as GroupingRowRenderer, R as RowRenderer, P as PADDING_DEPTH, S as SortingSign } from './grouping.row.renderer-95f32c6b.js';
|
|
8
8
|
import { c as FilterButton } from './filter.button-84396156.js';
|
|
9
9
|
import { H as HeaderCellRenderer } from './header-cell-renderer-31f53644.js';
|
|
10
10
|
import { t as throttle, L as LocalScrollTimer, a as LocalScrollService } from './throttle-dec28f5b.js';
|
|
@@ -2,6 +2,8 @@ import { BasePlugin } from '../base.plugin';
|
|
|
2
2
|
import type { ColumnProp, Order, CellCompareFunc, ColumnRegular, DataType, DimensionRows, PluginProviders } from "../../types/index";
|
|
3
3
|
import type { SortingConfig, SortingOrder, SortingOrderFunction } from './sorting.types';
|
|
4
4
|
export * from './sorting.types';
|
|
5
|
+
export * from './sorting.func';
|
|
6
|
+
export * from './sorting.sign';
|
|
5
7
|
/**
|
|
6
8
|
* Lifecycle
|
|
7
9
|
* 1. @event `beforesorting` - Triggered when sorting just starts. Nothing has happened yet. This can be triggered from a column or from the source. If the type is from rows, the column will be undefined.
|
package/hydrate/index.js
CHANGED
|
@@ -12072,6 +12072,11 @@ function sortIndexByItems(indexes, source, sortingFunc = {}) {
|
|
|
12072
12072
|
});
|
|
12073
12073
|
}
|
|
12074
12074
|
|
|
12075
|
+
const SortingSign = ({ column }) => {
|
|
12076
|
+
var _a;
|
|
12077
|
+
return hAsync("i", { class: (_a = column === null || column === void 0 ? void 0 : column.order) !== null && _a !== void 0 ? _a : 'sort-off' });
|
|
12078
|
+
};
|
|
12079
|
+
|
|
12075
12080
|
/**
|
|
12076
12081
|
* Lifecycle
|
|
12077
12082
|
* 1. @event `beforesorting` - Triggered when sorting just starts. Nothing has happened yet. This can be triggered from a column or from the source. If the type is from rows, the column will be undefined.
|
|
@@ -16015,11 +16020,6 @@ var keyBy = createAggregator(function(result, value, key) {
|
|
|
16015
16020
|
|
|
16016
16021
|
var keyBy$1 = keyBy;
|
|
16017
16022
|
|
|
16018
|
-
const SortingSign = ({ column }) => {
|
|
16019
|
-
var _a;
|
|
16020
|
-
return hAsync("i", { class: (_a = column === null || column === void 0 ? void 0 : column.order) !== null && _a !== void 0 ? _a : 'sort-off' });
|
|
16021
|
-
};
|
|
16022
|
-
|
|
16023
16023
|
const HeaderRenderer = (p) => {
|
|
16024
16024
|
var _a, _b, _c, _d, _e;
|
|
16025
16025
|
const cellClass = {
|
package/hydrate/index.mjs
CHANGED
|
@@ -12068,6 +12068,11 @@ function sortIndexByItems(indexes, source, sortingFunc = {}) {
|
|
|
12068
12068
|
});
|
|
12069
12069
|
}
|
|
12070
12070
|
|
|
12071
|
+
const SortingSign = ({ column }) => {
|
|
12072
|
+
var _a;
|
|
12073
|
+
return hAsync("i", { class: (_a = column === null || column === void 0 ? void 0 : column.order) !== null && _a !== void 0 ? _a : 'sort-off' });
|
|
12074
|
+
};
|
|
12075
|
+
|
|
12071
12076
|
/**
|
|
12072
12077
|
* Lifecycle
|
|
12073
12078
|
* 1. @event `beforesorting` - Triggered when sorting just starts. Nothing has happened yet. This can be triggered from a column or from the source. If the type is from rows, the column will be undefined.
|
|
@@ -16011,11 +16016,6 @@ var keyBy = createAggregator(function(result, value, key) {
|
|
|
16011
16016
|
|
|
16012
16017
|
var keyBy$1 = keyBy;
|
|
16013
16018
|
|
|
16014
|
-
const SortingSign = ({ column }) => {
|
|
16015
|
-
var _a;
|
|
16016
|
-
return hAsync("i", { class: (_a = column === null || column === void 0 ? void 0 : column.order) !== null && _a !== void 0 ? _a : 'sort-off' });
|
|
16017
|
-
};
|
|
16018
|
-
|
|
16019
16019
|
const HeaderRenderer = (p) => {
|
|
16020
16020
|
var _a, _b, _c, _d, _e;
|
|
16021
16021
|
const cellClass = {
|
package/package.json
CHANGED
package/standalone/index.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { setMode } from '@stencil/core/internal/client';
|
|
5
5
|
export { getAssetPath, h, setAssetPath, setNonce, setPlatformOptions } from '@stencil/core/internal/client';
|
|
6
6
|
import { g as getTheme, B as BasePlugin } from './revo-grid.js';
|
|
7
|
-
export { A as AutoSizeColumnPlugin, B as BasePlugin, C as ColumnMovePlugin, D as DimensionStore, b as ExportCsv, E as ExportFilePlugin, d as FILTER_CONFIG_CHANGED_EVENT, F as FILTER_TRIMMED_TYPE, e as FILTE_PANEL, f as FilterPlugin, G as GroupingRowPlugin, RevoGrid, o as SortingPlugin, S as StretchColumn, c as columnTypes, defineCustomElement as defineCustomElementRevoGrid, l as doCollapse, m as doExpand, h as filterCoreFunctionsIndexedByType, k as filterNames, j as filterTypes, n as getLeftRelative, i as isRowType, a as isStretchPlugin, r as rowTypes } from './revo-grid.js';
|
|
7
|
+
export { A as AutoSizeColumnPlugin, B as BasePlugin, C as ColumnMovePlugin, D as DimensionStore, b as ExportCsv, E as ExportFilePlugin, d as FILTER_CONFIG_CHANGED_EVENT, F as FILTER_TRIMMED_TYPE, e as FILTE_PANEL, f as FilterPlugin, G as GroupingRowPlugin, RevoGrid, o as SortingPlugin, S as StretchColumn, c as columnTypes, defineCustomElement as defineCustomElementRevoGrid, l as doCollapse, m as doExpand, h as filterCoreFunctionsIndexedByType, k as filterNames, j as filterTypes, n as getLeftRelative, i as isRowType, a as isStretchPlugin, r as rowTypes, s as sortIndexByItems } from './revo-grid.js';
|
|
8
8
|
export { S as SortingSign, d as dispatch, a as dispatchByEvent } from './revogr-header2.js';
|
|
9
9
|
export { C as CELL_CLASS, j as CELL_HANDLER_CLASS, D as DATA_COL, a as DATA_ROW, b as DISABLED_CLASS, h as DRAGGABLE_CLASS, k as DRAGG_TEXT, g as DRAG_ICON_CLASS, E as EDIT_INPUT_WR, F as FOCUS_CLASS, G as GRID_INTERNALS, f as HEADER_ACTUAL_ROW_CLASS, H as HEADER_CLASS, e as HEADER_ROW_CLASS, d as HEADER_SORTABLE_CLASS, M as MIN_COL_SIZE, i as MOBILE_CLASS, R as RESIZE_INTERVAL, l as ROW_FOCUSED_CLASS, c as ROW_HEADER_TYPE, S as SELECTION_BORDER_CLASS, T as TMP_SELECTION_BG_CLASS } from './consts.js';
|
|
10
10
|
export { a as applyMixins, f as findPositionInArray, g as getScrollbarSize, m as mergeSortedArray, p as pushSorted, r as range, s as scaleValue, t as timeout } from './index2.js';
|
package/standalone/revo-grid.js
CHANGED
|
@@ -4633,6 +4633,6 @@ function defineCustomElement$1() {
|
|
|
4633
4633
|
const RevoGrid = RevoGridComponent;
|
|
4634
4634
|
const defineCustomElement = defineCustomElement$1;
|
|
4635
4635
|
|
|
4636
|
-
export { AutoSizeColumnPlugin as A, BasePlugin as B, ColumnMovePlugin as C, DimensionStore as D, ExportFilePlugin as E, FILTER_TRIMMED_TYPE as F, GroupingRowPlugin as G, RevoGrid, StretchColumn as S, isStretchPlugin as a, ExportCsv as b, columnTypes as c, FILTER_CONFIG_CHANGED_EVENT as d, defineCustomElement, FILTE_PANEL as e, FilterPlugin as f, getTheme as g, filterCoreFunctionsIndexedByType as h, isRowType as i, filterTypes as j, filterNames as k, doCollapse as l, doExpand as m, getLeftRelative as n, SortingPlugin as o, rowTypes as r };
|
|
4636
|
+
export { AutoSizeColumnPlugin as A, BasePlugin as B, ColumnMovePlugin as C, DimensionStore as D, ExportFilePlugin as E, FILTER_TRIMMED_TYPE as F, GroupingRowPlugin as G, RevoGrid, StretchColumn as S, isStretchPlugin as a, ExportCsv as b, columnTypes as c, FILTER_CONFIG_CHANGED_EVENT as d, defineCustomElement, FILTE_PANEL as e, FilterPlugin as f, getTheme as g, filterCoreFunctionsIndexedByType as h, isRowType as i, filterTypes as j, filterNames as k, doCollapse as l, doExpand as m, getLeftRelative as n, SortingPlugin as o, rowTypes as r, sortIndexByItems as s };
|
|
4637
4637
|
|
|
4638
4638
|
//# sourceMappingURL=revo-grid.js.map
|