Skip to content

Commit

Permalink
chore: remove unused SlickGrid AutoSize feature, keep only legacy (#1201
Browse files Browse the repository at this point in the history
)

- 6pack/SlickGrid fork had implement a column AutoSize, however Slickgrid-Universal also have its own column autosize (inside ResizerService) and for that reason we never used the 6pack implementation, removing it is a better option
  • Loading branch information
ghiscoding authored Nov 21, 2023
1 parent c2869a1 commit c9d6261
Show file tree
Hide file tree
Showing 11 changed files with 17 additions and 610 deletions.
1 change: 0 additions & 1 deletion packages/common/src/core/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
export * from './models/autoSize.interface';
export * from './slickCore';
export * from './slickDataview';
export * from './slickGrid';
Expand Down
19 changes: 0 additions & 19 deletions packages/common/src/core/models/autoSize.interface.ts

This file was deleted.

41 changes: 1 addition & 40 deletions packages/common/src/core/slickCore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -833,48 +833,9 @@ const SlickCore = {
A: 65
},
preClickClassName: 'slick-edit-preclick',

GridAutosizeColsMode: {
None: 'NOA',
LegacyOff: 'LOF',
LegacyForceFit: 'LFF',
IgnoreViewport: 'IGV',
FitColsToViewport: 'FCV',
FitViewportToCols: 'FVC'
},

'ColAutosizeMode': {
Locked: 'LCK',
Guide: 'GUI',
Content: 'CON',
ContentExpandOnly: 'CXO',
ContentIntelligent: 'CTI'
},

'RowSelectionMode': {
FirstRow: 'FS1',
FirstNRows: 'FSN',
AllRows: 'ALL',
LastRow: 'LS1'
},

'ValueFilterMode': {
None: 'NONE',
DeDuplicate: 'DEDP',
GetGreatestAndSub: 'GR8T',
GetLongestTextAndSub: 'LNSB',
GetLongestText: 'LNSC'
},

WidthEvalMode: {
Auto: 'AUTO',
TextOnly: 'CANV',
HTML: 'HTML'
}
};

export const {
EditorLock, Event, EventData, EventHandler, Group, GroupTotals, NonDataRow, Range,
RegexSanitizer, GlobalEditorLock, keyCode, preClickClassName, GridAutosizeColsMode, ColAutosizeMode,
RowSelectionMode, ValueFilterMode, WidthEvalMode
RegexSanitizer, GlobalEditorLock, keyCode, preClickClassName,
} = SlickCore;
Loading

0 comments on commit c9d6261

Please sign in to comment.