slick-table 1.1.17 → 1.1.18
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/index.cjs.js +80 -80
- package/dist/index.es.js +873 -862
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/shared/lib/slickgrid/index.d.ts +1 -1
- package/dist/types/shared/lib/slickgrid/index.d.ts.map +1 -1
- package/dist/types/shared/lib/slickgrid/model/SlickTable/hotKeys/DefaultHotKeys.d.ts.map +1 -1
- package/dist/types/shared/lib/slickgrid/model/SlickTable/hotKeys/decorators/WithSummary.d.ts +7 -0
- package/dist/types/shared/lib/slickgrid/model/SlickTable/hotKeys/decorators/WithSummary.d.ts.map +1 -0
- package/dist/types/shared/lib/slickgrid/model/SlickTable/hotKeys/decorators/index.d.ts +1 -0
- package/dist/types/shared/lib/slickgrid/model/SlickTable/hotKeys/decorators/index.d.ts.map +1 -1
- package/dist/types/shared/lib/slickgrid/model/SlickTable/hotKeys/index.d.ts +1 -1
- package/dist/types/shared/lib/slickgrid/model/SlickTable/hotKeys/index.d.ts.map +1 -1
- package/dist/types/shared/lib/slickgrid/model/SlickTable/index.d.ts +1 -1
- package/dist/types/shared/lib/slickgrid/model/SlickTable/index.d.ts.map +1 -1
- package/dist/types/shared/lib/slickgrid/model/index.d.ts +1 -1
- package/dist/types/shared/lib/slickgrid/model/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +2 -0
- package/src/shared/lib/slickgrid/index.ts +1 -0
- package/src/shared/lib/slickgrid/model/SlickTable/hotKeys/DefaultHotKeys.ts +0 -9
- package/src/shared/lib/slickgrid/model/SlickTable/hotKeys/decorators/WithSummary.ts +28 -0
- package/src/shared/lib/slickgrid/model/SlickTable/hotKeys/decorators/index.ts +1 -0
- package/src/shared/lib/slickgrid/model/SlickTable/hotKeys/index.ts +1 -0
- package/src/shared/lib/slickgrid/model/SlickTable/index.ts +1 -0
- package/src/shared/lib/slickgrid/model/index.ts +1 -0
package/dist/types/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export { PopupSummary } from './entities/popup-summary';
|
|
|
3
3
|
export { ColumnFilters } from './features/column-filters';
|
|
4
4
|
export { ContextMenu } from './features/context-menu';
|
|
5
5
|
export { HeaderContextMenu } from './features/header-context-menu';
|
|
6
|
-
export { Autocomplete, ColumnPicker, ColumnSorter, DecoratorColumnFilter, DecoratorFilter, DefaultHotKeys, DefaultPrinter, DeletedRowsFilter, Filter, HotKeysDecorator, PreventCopying, RedoUndoOnly, SlickTable, SlickgridTable, TotalCalculator, columnIsEdited, columnCheckboxSelector, commitCurrentEdit, copySelectedRows, formatterGroupTotals, getDisplayedRows, getNextId, handleHeaderButtons, headerButtons, hotKeysCopy, hotKeysDelete, hotKeysRedo, hotKeysUndo, openColumnFilter, openContextMenu, useListenIfTablesWereEdited, } from './shared/lib/slickgrid';
|
|
6
|
+
export { Autocomplete, ColumnPicker, ColumnSorter, DecoratorColumnFilter, DecoratorFilter, DefaultHotKeys, DefaultPrinter, DeletedRowsFilter, Filter, HotKeysDecorator, PreventCopying, RedoUndoOnly, SlickTable, SlickgridTable, TotalCalculator, WithSummary, WithoutHotKeys, columnIsEdited, columnCheckboxSelector, commitCurrentEdit, copySelectedRows, formatterGroupTotals, getDisplayedRows, getNextId, handleHeaderButtons, headerButtons, hotKeysCopy, hotKeysDelete, hotKeysRedo, hotKeysUndo, openColumnFilter, openContextMenu, useListenIfTablesWereEdited, } from './shared/lib/slickgrid';
|
|
7
7
|
export type { IColumn, IFilter, IFilterArguments, IHotKeysBehavior, IPrinter, ISlickTable, ITotalCalculator, } from './shared/model/types';
|
|
8
8
|
export { EColumnFilter, EColumnFiltersGroup, ESortType, } from './shared/model/enums';
|
|
9
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EACN,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,qBAAqB,EACrB,eAAe,EACf,cAAc,EACd,cAAc,EACd,iBAAiB,EACjB,MAAM,EACN,gBAAgB,EAChB,cAAc,EACd,YAAY,EACZ,UAAU,EACV,cAAc,EACd,eAAe,EACf,cAAc,EACd,sBAAsB,EACtB,iBAAiB,EACjB,gBAAgB,EAChB,oBAAoB,EACpB,gBAAgB,EAChB,SAAS,EACT,mBAAmB,EACnB,aAAa,EACb,WAAW,EACX,aAAa,EACb,WAAW,EACX,WAAW,EACX,gBAAgB,EAChB,eAAe,EACf,2BAA2B,GAC3B,MAAM,sBAAsB,CAAC;AAC9B,YAAY,EACX,OAAO,EACP,OAAO,EACP,gBAAgB,EAChB,gBAAgB,EAChB,QAAQ,EACR,WAAW,EACX,gBAAgB,GAChB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACN,aAAa,EACb,mBAAmB,EACnB,SAAS,GACT,MAAM,oBAAoB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EACN,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,qBAAqB,EACrB,eAAe,EACf,cAAc,EACd,cAAc,EACd,iBAAiB,EACjB,MAAM,EACN,gBAAgB,EAChB,cAAc,EACd,YAAY,EACZ,UAAU,EACV,cAAc,EACd,eAAe,EACf,WAAW,EACX,cAAc,EACd,cAAc,EACd,sBAAsB,EACtB,iBAAiB,EACjB,gBAAgB,EAChB,oBAAoB,EACpB,gBAAgB,EAChB,SAAS,EACT,mBAAmB,EACnB,aAAa,EACb,WAAW,EACX,aAAa,EACb,WAAW,EACX,WAAW,EACX,gBAAgB,EAChB,eAAe,EACf,2BAA2B,GAC3B,MAAM,sBAAsB,CAAC;AAC9B,YAAY,EACX,OAAO,EACP,OAAO,EACP,gBAAgB,EAChB,gBAAgB,EAChB,QAAQ,EACR,WAAW,EACX,gBAAgB,GAChB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACN,aAAa,EACb,mBAAmB,EACnB,SAAS,GACT,MAAM,oBAAoB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { Autocomplete, ColumnSorter, DateFormatter, DateValidator, EditorAmount, EditorAutocomplete, EditorDate, EditorSelectString, EditorSelectNumber, EditorSelectWithSearch, EmptyStringValidator, FORMATTER_NUMBER, FormatterCheck, getFormatterNumber, LengthValidator, PercentFormatter, FormatterCheckPrinter, StringFormatter, TotalCalculator, columnSorter, commitCurrentEdit, copySelectedRows, deleteRows, getDisplayedRows, getLastRow, getNextId, highlightCell, highlightColumns, hotKeysCopy, hotKeysDelete, hotKeysRedo, hotKeysUndo, isDeletionDangerous, onCellChange, onRowCountChanged, onRowsChanged, openContextMenu, selectedRows, formatterGroupTotals, useHotKeys, getUpdates, useListenIfTablesWereEdited, useUpdateTotal, wereEdited, } from './lib';
|
|
2
|
-
export { ColumnPicker, DownloadManager, DecoratorEndingDate, DecoratorFilter, DecoratorColumnFilter, DecoratorPeriod, DefaultHotKeys, DefaultPrinter, DeletedRowsFilter, Filter, HotKeysDecorator, PreventCopying, RedoUndoOnly, SlickTable, WithConfirmationOfDeletion, WithoutHotKeys, eventContextMenu, eventHeaderContextMenu, eventSummary, } from './model';
|
|
2
|
+
export { ColumnPicker, DownloadManager, DecoratorEndingDate, DecoratorFilter, DecoratorColumnFilter, DecoratorPeriod, DefaultHotKeys, DefaultPrinter, DeletedRowsFilter, Filter, HotKeysDecorator, PreventCopying, RedoUndoOnly, SlickTable, WithConfirmationOfDeletion, WithSummary, WithoutHotKeys, eventContextMenu, eventHeaderContextMenu, eventSummary, } from './model';
|
|
3
3
|
export { SlickgridTable, WithTableStyles, columnCheckboxSelector, columnIsEdited, eventOpenColumnFilters, handleHeaderButtons, headerButtons, openColumnFilter, } from './ui';
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/shared/lib/slickgrid/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,aAAa,EACb,YAAY,EACZ,kBAAkB,EAClB,UAAU,EACV,kBAAkB,EAClB,kBAAkB,EAClB,sBAAsB,EACtB,oBAAoB,EACpB,gBAAgB,EAChB,cAAc,EACd,kBAAkB,EAClB,eAAe,EACf,gBAAgB,EAChB,qBAAqB,EACrB,eAAe,EACf,eAAe,EACf,YAAY,EACZ,iBAAiB,EACjB,gBAAgB,EAChB,UAAU,EACV,gBAAgB,EAChB,UAAU,EACV,SAAS,EACT,aAAa,EACb,gBAAgB,EAChB,WAAW,EACX,aAAa,EACb,WAAW,EACX,WAAW,EACX,mBAAmB,EACnB,YAAY,EACZ,iBAAiB,EACjB,aAAa,EACb,eAAe,EACf,YAAY,EACZ,oBAAoB,EACpB,UAAU,EACV,UAAU,EACV,2BAA2B,EAC3B,cAAc,EACd,UAAU,GACV,MAAM,OAAO,CAAC;AACf,OAAO,EACN,YAAY,EACZ,eAAe,EACf,mBAAmB,EACnB,eAAe,EACf,qBAAqB,EACrB,eAAe,EACf,cAAc,EACd,cAAc,EACd,iBAAiB,EACjB,MAAM,EACN,gBAAgB,EAChB,cAAc,EACd,YAAY,EACZ,UAAU,EACV,0BAA0B,EAC1B,cAAc,EACd,gBAAgB,EAChB,sBAAsB,EACtB,YAAY,GACZ,MAAM,SAAS,CAAC;AACjB,OAAO,EACN,cAAc,EACd,eAAe,EACf,sBAAsB,EACtB,cAAc,EACd,sBAAsB,EACtB,mBAAmB,EACnB,aAAa,EACb,gBAAgB,GAChB,MAAM,MAAM,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/shared/lib/slickgrid/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,aAAa,EACb,YAAY,EACZ,kBAAkB,EAClB,UAAU,EACV,kBAAkB,EAClB,kBAAkB,EAClB,sBAAsB,EACtB,oBAAoB,EACpB,gBAAgB,EAChB,cAAc,EACd,kBAAkB,EAClB,eAAe,EACf,gBAAgB,EAChB,qBAAqB,EACrB,eAAe,EACf,eAAe,EACf,YAAY,EACZ,iBAAiB,EACjB,gBAAgB,EAChB,UAAU,EACV,gBAAgB,EAChB,UAAU,EACV,SAAS,EACT,aAAa,EACb,gBAAgB,EAChB,WAAW,EACX,aAAa,EACb,WAAW,EACX,WAAW,EACX,mBAAmB,EACnB,YAAY,EACZ,iBAAiB,EACjB,aAAa,EACb,eAAe,EACf,YAAY,EACZ,oBAAoB,EACpB,UAAU,EACV,UAAU,EACV,2BAA2B,EAC3B,cAAc,EACd,UAAU,GACV,MAAM,OAAO,CAAC;AACf,OAAO,EACN,YAAY,EACZ,eAAe,EACf,mBAAmB,EACnB,eAAe,EACf,qBAAqB,EACrB,eAAe,EACf,cAAc,EACd,cAAc,EACd,iBAAiB,EACjB,MAAM,EACN,gBAAgB,EAChB,cAAc,EACd,YAAY,EACZ,UAAU,EACV,0BAA0B,EAC1B,WAAW,EACX,cAAc,EACd,gBAAgB,EAChB,sBAAsB,EACtB,YAAY,GACZ,MAAM,SAAS,CAAC;AACjB,OAAO,EACN,cAAc,EACd,eAAe,EACf,sBAAsB,EACtB,cAAc,EACd,sBAAsB,EACtB,mBAAmB,EACnB,aAAa,EACb,gBAAgB,GAChB,MAAM,MAAM,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DefaultHotKeys.d.ts","sourceRoot":"","sources":["../../../../../../../../src/shared/lib/slickgrid/model/SlickTable/hotKeys/DefaultHotKeys.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,kBAAkB,EAElB,cAAc,EACd,SAAS,EACT,MAAM,WAAW,CAAC;AAEnB,OAAO,EACN,kBAAkB,EAClB,gBAAgB,EAEhB,WAAW,EAEX,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"DefaultHotKeys.d.ts","sourceRoot":"","sources":["../../../../../../../../src/shared/lib/slickgrid/model/SlickTable/hotKeys/DefaultHotKeys.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,kBAAkB,EAElB,cAAc,EACd,SAAS,EACT,MAAM,WAAW,CAAC;AAEnB,OAAO,EACN,kBAAkB,EAClB,gBAAgB,EAEhB,WAAW,EAEX,MAAM,oBAAoB,CAAC;AAW5B,qBAAa,cAAe,YAAW,gBAAgB;IACtD,OAAO,CAAC,iBAAiB,CAA0B;IACnD,OAAO,CAAC,YAAY,CAAqB;IACzC,OAAO,CAAC,UAAU,CAAM;IAExB,OAAO,CAAC,aAAa;IAGrB,OAAO,CAAC,aAAa;IAId,mBAAmB,CACzB,KAAK,EAAE,cAAc,CAAC,kBAAkB,CAAC,EACzC,KAAK,EAAE,WAAW,GAChB,IAAI;IAoDA,kBAAkB,CAAC,IAAI,EAAE,SAAS,GAAG,IAAI,GAAG,IAAI;IAUhD,UAAU,IAAI,IAAI;IAIlB,oBAAoB,CAAC,SAAS,EAAE,kBAAkB,GAAG,IAAI;IAGzD,oBAAoB,IAAI,kBAAkB;CAGjD"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { OnKeyDownEventArgs, SlickEventData } from 'slickgrid';
|
|
2
|
+
import { ISlickTable } from '../../../../../../model/types';
|
|
3
|
+
import { HotKeysDecorator } from './HotKeysDecorator';
|
|
4
|
+
export declare class WithSummary extends HotKeysDecorator {
|
|
5
|
+
handleKeyboardEvent(event: SlickEventData<OnKeyDownEventArgs>, table: ISlickTable): void;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=WithSummary.d.ts.map
|
package/dist/types/shared/lib/slickgrid/model/SlickTable/hotKeys/decorators/WithSummary.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WithSummary.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/shared/lib/slickgrid/model/SlickTable/hotKeys/decorators/WithSummary.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAG/D,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD,qBAAa,WAAY,SAAQ,gBAAgB;IACzC,mBAAmB,CACzB,KAAK,EAAE,cAAc,CAAC,kBAAkB,CAAC,EACzC,KAAK,EAAE,WAAW,GAChB,IAAI;CAeP"}
|
|
@@ -2,4 +2,5 @@ export { HotKeysDecorator } from './HotKeysDecorator';
|
|
|
2
2
|
export { PreventCopying } from './PreventCopying';
|
|
3
3
|
export { RedoUndoOnly } from './RedoUndoOnly';
|
|
4
4
|
export { WithConfirmationOfDeletion } from './WithConfirmationOfDeletion';
|
|
5
|
+
export { WithSummary } from './WithSummary';
|
|
5
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/shared/lib/slickgrid/model/SlickTable/hotKeys/decorators/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/shared/lib/slickgrid/model/SlickTable/hotKeys/decorators/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { DefaultHotKeys } from './DefaultHotKeys';
|
|
2
2
|
export { WithoutHotKeys } from './WithoutHotKeys';
|
|
3
|
-
export { HotKeysDecorator, PreventCopying, RedoUndoOnly, WithConfirmationOfDeletion, } from './decorators';
|
|
3
|
+
export { HotKeysDecorator, PreventCopying, RedoUndoOnly, WithConfirmationOfDeletion, WithSummary, } from './decorators';
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/shared/lib/slickgrid/model/SlickTable/hotKeys/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EACN,gBAAgB,EAChB,cAAc,EACd,YAAY,EACZ,0BAA0B,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/shared/lib/slickgrid/model/SlickTable/hotKeys/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EACN,gBAAgB,EAChB,cAAc,EACd,YAAY,EACZ,0BAA0B,EAC1B,WAAW,GACX,MAAM,cAAc,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { ColumnPicker } from './column-picker';
|
|
2
2
|
export { DownloadManager } from './csvDownloadManager';
|
|
3
|
-
export { DefaultHotKeys, HotKeysDecorator, PreventCopying, RedoUndoOnly, WithConfirmationOfDeletion, WithoutHotKeys, } from './hotKeys';
|
|
3
|
+
export { DefaultHotKeys, HotKeysDecorator, PreventCopying, RedoUndoOnly, WithConfirmationOfDeletion, WithSummary, WithoutHotKeys, } from './hotKeys';
|
|
4
4
|
export { DecoratorEndingDate, DecoratorFilter, DecoratorColumnFilter, DecoratorPeriod, DeletedRowsFilter, Filter, } from './filters';
|
|
5
5
|
export { DefaultPrinter } from './printer';
|
|
6
6
|
export { SlickTable } from './table';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/lib/slickgrid/model/SlickTable/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EACN,cAAc,EACd,gBAAgB,EAChB,cAAc,EACd,YAAY,EACZ,0BAA0B,EAC1B,cAAc,GACd,MAAM,WAAW,CAAC;AACnB,OAAO,EACN,mBAAmB,EACnB,eAAe,EACf,qBAAqB,EACrB,eAAe,EACf,iBAAiB,EACjB,MAAM,GACN,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/lib/slickgrid/model/SlickTable/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EACN,cAAc,EACd,gBAAgB,EAChB,cAAc,EACd,YAAY,EACZ,0BAA0B,EAC1B,WAAW,EACX,cAAc,GACd,MAAM,WAAW,CAAC;AACnB,OAAO,EACN,mBAAmB,EACnB,eAAe,EACf,qBAAqB,EACrB,eAAe,EACf,iBAAiB,EACjB,MAAM,GACN,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { ColumnPicker, DownloadManager, DecoratorEndingDate, DecoratorFilter, DecoratorColumnFilter, DecoratorPeriod, DefaultHotKeys, DefaultPrinter, DeletedRowsFilter, Filter, HotKeysDecorator, PreventCopying, RedoUndoOnly, SlickTable, WithConfirmationOfDeletion, WithoutHotKeys, } from './SlickTable';
|
|
1
|
+
export { ColumnPicker, DownloadManager, DecoratorEndingDate, DecoratorFilter, DecoratorColumnFilter, DecoratorPeriod, DefaultHotKeys, DefaultPrinter, DeletedRowsFilter, Filter, HotKeysDecorator, PreventCopying, RedoUndoOnly, SlickTable, WithConfirmationOfDeletion, WithSummary, WithoutHotKeys, } from './SlickTable';
|
|
2
2
|
export { eventContextMenu, eventHeaderContextMenu, eventSummary, } from './events';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/lib/slickgrid/model/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,YAAY,EACZ,eAAe,EACf,mBAAmB,EACnB,eAAe,EACf,qBAAqB,EACrB,eAAe,EACf,cAAc,EACd,cAAc,EACd,iBAAiB,EACjB,MAAM,EACN,gBAAgB,EAChB,cAAc,EACd,YAAY,EACZ,UAAU,EACV,0BAA0B,EAC1B,cAAc,GACd,MAAM,cAAc,CAAC;AACtB,OAAO,EACN,gBAAgB,EAChB,sBAAsB,EACtB,YAAY,GACZ,MAAM,UAAU,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/lib/slickgrid/model/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,YAAY,EACZ,eAAe,EACf,mBAAmB,EACnB,eAAe,EACf,qBAAqB,EACrB,eAAe,EACf,cAAc,EACd,cAAc,EACd,iBAAiB,EACjB,MAAM,EACN,gBAAgB,EAChB,cAAc,EACd,YAAY,EACZ,UAAU,EACV,0BAA0B,EAC1B,WAAW,EACX,cAAc,GACd,MAAM,cAAc,CAAC;AACtB,OAAO,EACN,gBAAgB,EAChB,sBAAsB,EACtB,YAAY,GACZ,MAAM,UAAU,CAAC"}
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -17,12 +17,10 @@ import {
|
|
|
17
17
|
copySelectedRows,
|
|
18
18
|
hotKeysCopy,
|
|
19
19
|
hotKeysDelete,
|
|
20
|
-
hotKeysOpenSummary,
|
|
21
20
|
hotKeysRedo,
|
|
22
21
|
hotKeysUndo,
|
|
23
22
|
nothingToCopy,
|
|
24
23
|
} from "../../../lib";
|
|
25
|
-
import { eventSummary } from "../../../model";
|
|
26
24
|
|
|
27
25
|
export class DefaultHotKeys implements IHotKeysBehavior {
|
|
28
26
|
private externalVariables: IExternalVariables = {};
|
|
@@ -89,13 +87,6 @@ export class DefaultHotKeys implements IHotKeysBehavior {
|
|
|
89
87
|
dataView.setItems(copy(this.commandQueue[newQueueIndex]));
|
|
90
88
|
grid.invalidate();
|
|
91
89
|
table.isEdited = true;
|
|
92
|
-
} else if (hotKeysOpenSummary(event)) {
|
|
93
|
-
if (!table.summaryColumnIds.length) return;
|
|
94
|
-
if (grid.getSelectedRows().length < 2) return;
|
|
95
|
-
event.preventDefault();
|
|
96
|
-
event.stopImmediatePropagation();
|
|
97
|
-
eventSummary.table = table;
|
|
98
|
-
eventSummary.open = true;
|
|
99
90
|
}
|
|
100
91
|
}
|
|
101
92
|
public pushToCommandQueue(grid: SlickGrid | null): void {
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { OnKeyDownEventArgs, SlickEventData } from "slickgrid";
|
|
2
|
+
|
|
3
|
+
import { eventSummary } from "shared/lib/slickgrid";
|
|
4
|
+
import { ISlickTable } from "shared/model/types";
|
|
5
|
+
|
|
6
|
+
import { hotKeysOpenSummary } from "../../../../lib";
|
|
7
|
+
import { HotKeysDecorator } from "./HotKeysDecorator";
|
|
8
|
+
|
|
9
|
+
export class WithSummary extends HotKeysDecorator {
|
|
10
|
+
public handleKeyboardEvent(
|
|
11
|
+
event: SlickEventData<OnKeyDownEventArgs>,
|
|
12
|
+
table: ISlickTable,
|
|
13
|
+
): void {
|
|
14
|
+
if (!table.isActive) return;
|
|
15
|
+
if (hotKeysOpenSummary(event)) {
|
|
16
|
+
if (!table.summaryColumnIds.length) return;
|
|
17
|
+
const grid = table.grid;
|
|
18
|
+
if (!grid) return;
|
|
19
|
+
if (grid.getSelectedRows().length < 2) return;
|
|
20
|
+
event.preventDefault();
|
|
21
|
+
event.stopImmediatePropagation();
|
|
22
|
+
eventSummary.table = table;
|
|
23
|
+
eventSummary.open = true;
|
|
24
|
+
} else {
|
|
25
|
+
super.handleKeyboardEvent.call(this, event, table);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -2,3 +2,4 @@ export { HotKeysDecorator } from "./HotKeysDecorator";
|
|
|
2
2
|
export { PreventCopying } from "./PreventCopying";
|
|
3
3
|
export { RedoUndoOnly } from "./RedoUndoOnly";
|
|
4
4
|
export { WithConfirmationOfDeletion } from "./WithConfirmationOfDeletion";
|
|
5
|
+
export { WithSummary } from "./WithSummary";
|