@bryntum/grid-thin-trial 7.1.1 → 7.1.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/README.md +272 -20
- package/grid.css +10 -1
- package/grid.css.map +2 -2
- package/grid.d.ts +58 -36
- package/lib/column/ActionColumn.js +1 -1
- package/lib/column/CheckColumn.js +1 -1
- package/lib/column/Column.js +1 -1
- package/lib/column/DateColumn.js +1 -1
- package/lib/column/TimeColumn.js +1 -1
- package/lib/column/TreeColumn.css +2 -1
- package/lib/data/ColumnStore.js +1 -1
- package/lib/feature/CellEdit.js +1 -1
- package/lib/feature/ColumnResize.css +1 -0
- package/lib/feature/Filter.css +1 -0
- package/lib/feature/Filter.js +1 -1
- package/lib/feature/FilterBar.js +1 -1
- package/lib/feature/Group.css +2 -0
- package/lib/feature/GroupSummary.js +1 -1
- package/lib/feature/RowReorder.css +1 -0
- package/lib/feature/RowReorder.js +1 -1
- package/lib/feature/Sort.css +1 -0
- package/lib/feature/Summary.js +1 -1
- package/lib/feature/TreeGroup.js +1 -1
- package/lib/feature/export/PdfExport.js +4 -4
- package/lib/feature/export/mixin/PrintMixin.js +1 -1
- package/lib/row/Row.js +1 -1
- package/lib/row/RowManager.js +1 -1
- package/lib/util/GridLocation.js +1 -1
- package/lib/util/SubGridScroller.js +1 -1
- package/lib/view/GridBase.css +2 -1
- package/lib/view/GridBase.js +1 -1
- package/lib/view/Header.js +1 -1
- package/lib/view/TreeGrid.js +1 -1
- package/lib/view/export/ExportDialog.js +1 -1
- package/lib/view/mixin/GridElementEvents.js +1 -1
- package/lib/view/mixin/GridNavigation.js +1 -1
- package/lib/view/mixin/GridSubGrids.js +1 -1
- package/lib/widget/GroupBar.css +1 -0
- package/package.json +1 -1
- package/postinstall.cjs +4 -5
package/grid.d.ts
CHANGED
|
@@ -26,10 +26,16 @@ type ActionConfig = {
|
|
|
26
26
|
*/
|
|
27
27
|
cls?: string
|
|
28
28
|
/**
|
|
29
|
-
* A text to use for the action element
|
|
30
|
-
* action
|
|
29
|
+
* A text to use for the action element's `aria-label` value. If not provided, the
|
|
30
|
+
* action's `tooltip` will be used as the `aria-label` (if present).
|
|
31
31
|
*/
|
|
32
32
|
ariaLabel?: string
|
|
33
|
+
/**
|
|
34
|
+
* A value to use for the action element's `aria-haspopup` attribute.
|
|
35
|
+
* Set to indicate that the action triggers a popup. This helps assistive technologies inform users that activating
|
|
36
|
+
* the action will display a popup element.
|
|
37
|
+
*/
|
|
38
|
+
ariaHasPopup?: 'true'|'false'|'menu'|'listbox'|'tree'|'grid'|'dialog'|boolean
|
|
33
39
|
/**
|
|
34
40
|
* Tooltip text, or a config object which can reconfigure the shared
|
|
35
41
|
* tooltip by setting boolean, numeric and string config values, or a function to return the tooltip text, passed the
|
|
@@ -289,7 +295,7 @@ type EmptyTextDomConfig = DomConfig & {
|
|
|
289
295
|
/**
|
|
290
296
|
* The grid region to add the empty text to
|
|
291
297
|
*/
|
|
292
|
-
region?: string
|
|
298
|
+
region?: 'locked'|'normal'|string
|
|
293
299
|
}
|
|
294
300
|
|
|
295
301
|
type GridScrollOptions = {
|
|
@@ -2958,7 +2964,7 @@ type CheckColumnConfig = {
|
|
|
2958
2964
|
*/
|
|
2959
2965
|
cellMenuItems?: Record<string, MenuItemEntry>
|
|
2960
2966
|
/**
|
|
2961
|
-
* The `aria-label`
|
|
2967
|
+
* The `aria-label` used for the default checkbox widget in this column’s cells.
|
|
2962
2968
|
*/
|
|
2963
2969
|
checkAriaLabel?: string
|
|
2964
2970
|
/**
|
|
@@ -3517,7 +3523,7 @@ export class CheckColumn extends WidgetColumn {
|
|
|
3517
3523
|
*/
|
|
3518
3524
|
static readonly isCheckColumn: boolean
|
|
3519
3525
|
/**
|
|
3520
|
-
* The `aria-label`
|
|
3526
|
+
* The `aria-label` used for the default checkbox widget in this column’s cells.
|
|
3521
3527
|
*/
|
|
3522
3528
|
checkAriaLabel: string
|
|
3523
3529
|
/**
|
|
@@ -11754,7 +11760,8 @@ type TimeColumnConfig = {
|
|
|
11754
11760
|
*/
|
|
11755
11761
|
flex?: number|string
|
|
11756
11762
|
/**
|
|
11757
|
-
* Time format
|
|
11763
|
+
* Time format for time displayed in cell and editor
|
|
11764
|
+
* (see [format](https://bryntum.com/products/grid/docs/api/Core/helper/DateHelper#function-format-static) for formatting options)
|
|
11758
11765
|
*/
|
|
11759
11766
|
format?: string
|
|
11760
11767
|
/**
|
|
@@ -12151,7 +12158,8 @@ export class TimeColumn extends Column {
|
|
|
12151
12158
|
*/
|
|
12152
12159
|
static readonly isTimeColumn: boolean
|
|
12153
12160
|
/**
|
|
12154
|
-
* Time format
|
|
12161
|
+
* Time format for time displayed in cell and editor
|
|
12162
|
+
* (see [format](https://bryntum.com/products/grid/docs/api/Core/helper/DateHelper#function-format-static) for formatting options)
|
|
12155
12163
|
*/
|
|
12156
12164
|
format: string
|
|
12157
12165
|
/**
|
|
@@ -14409,7 +14417,9 @@ type ColumnStoreConfig = {
|
|
|
14409
14417
|
*/
|
|
14410
14418
|
pageStartParamName?: string
|
|
14411
14419
|
/**
|
|
14412
|
-
* Specify true to reapply filters when a record is added to the store.
|
|
14420
|
+
* Specify `true` to reapply filters when a record is added to or moved within the store.
|
|
14421
|
+
* This includes tree node operations like indent/outdent in Gantt, or any move operation
|
|
14422
|
+
* that changes a node's parent.
|
|
14413
14423
|
*/
|
|
14414
14424
|
reapplyFilterOnAdd?: boolean
|
|
14415
14425
|
/**
|
|
@@ -27066,9 +27076,9 @@ export class PdfExport extends InstancePlugin {
|
|
|
27066
27076
|
/**
|
|
27067
27077
|
* Starts the export process. Accepts a config object which overrides any default configs.
|
|
27068
27078
|
* <strong>NOTE</strong>. Component should not be interacted with when export is in progress
|
|
27069
|
-
* @param {
|
|
27079
|
+
* @param {PdfExportConfig} config
|
|
27070
27080
|
*/
|
|
27071
|
-
export(config:
|
|
27081
|
+
export(config: PdfExportConfig): Promise<any>;
|
|
27072
27082
|
/**
|
|
27073
27083
|
* This method accepts all stylesheets (link and style tags) which are supposed to be put on the page. Use
|
|
27074
27084
|
* this hook method to filter or modify them.
|
|
@@ -27480,9 +27490,9 @@ export class Print extends PdfExport {
|
|
|
27480
27490
|
/**
|
|
27481
27491
|
* Starts the print process. Accepts a config object which overrides any default configs.
|
|
27482
27492
|
* <strong>NOTE</strong> Component should not be interacted with when print is in progress
|
|
27483
|
-
* @param {
|
|
27493
|
+
* @param {PrintConfig} config
|
|
27484
27494
|
*/
|
|
27485
|
-
print(config:
|
|
27495
|
+
print(config: PrintConfig): Promise<any>;
|
|
27486
27496
|
/**
|
|
27487
27497
|
* Shows the [print dialog](https://bryntum.com/products/grid/docs/api/Grid/view/export/ExportDialog)
|
|
27488
27498
|
*/
|
|
@@ -28832,9 +28842,9 @@ export class PrintMixinClass {
|
|
|
28832
28842
|
/**
|
|
28833
28843
|
* Starts the print process. Accepts a config object which overrides any default configs.
|
|
28834
28844
|
* <strong>NOTE</strong> Component should not be interacted with when print is in progress
|
|
28835
|
-
* @param {
|
|
28845
|
+
* @param {PrintConfig} config
|
|
28836
28846
|
*/
|
|
28837
|
-
print(config:
|
|
28847
|
+
print(config: PrintConfig): Promise<any>;
|
|
28838
28848
|
/**
|
|
28839
28849
|
* Shows the [print dialog](https://bryntum.com/products/grid/docs/api/Grid/view/export/ExportDialog)
|
|
28840
28850
|
*/
|
|
@@ -29022,6 +29032,10 @@ export class GridLocation {
|
|
|
29022
29032
|
* The cell DOM element which this `GridLocation` references.
|
|
29023
29033
|
*/
|
|
29024
29034
|
readonly cell: HTMLElement
|
|
29035
|
+
/**
|
|
29036
|
+
* Yields the [Column](https://bryntum.com/products/grid/docs/api/Grid/column/Column) of this location.
|
|
29037
|
+
*/
|
|
29038
|
+
readonly column: Column
|
|
29025
29039
|
/**
|
|
29026
29040
|
* Yields the column index of this location.
|
|
29027
29041
|
*/
|
|
@@ -29030,6 +29044,10 @@ export class GridLocation {
|
|
|
29030
29044
|
* This property is `true` if the focus is inside the cell, not *on* the cell.
|
|
29031
29045
|
*/
|
|
29032
29046
|
readonly containsFocus: boolean
|
|
29047
|
+
/**
|
|
29048
|
+
* The grid which this `GridLocation` references.
|
|
29049
|
+
*/
|
|
29050
|
+
readonly grid: Grid
|
|
29033
29051
|
/**
|
|
29034
29052
|
* This property is `true` if the focus target is not the cell itself.
|
|
29035
29053
|
*/
|
|
@@ -29046,6 +29064,10 @@ export class GridLocation {
|
|
|
29046
29064
|
* Yields `true` if the cell and row are selectable.
|
|
29047
29065
|
*/
|
|
29048
29066
|
readonly isSelectable: boolean
|
|
29067
|
+
/**
|
|
29068
|
+
* Yields the [Model](https://bryntum.com/products/grid/docs/api/Core/data/Model) of this location, or `null` if the location is a column header.
|
|
29069
|
+
*/
|
|
29070
|
+
readonly record: Model
|
|
29049
29071
|
/**
|
|
29050
29072
|
* Yields the row index of this location.
|
|
29051
29073
|
*/
|
|
@@ -29284,9 +29306,9 @@ type GridListenersTypes = {
|
|
|
29284
29306
|
/**
|
|
29285
29307
|
* Fires on the owning Grid before export started. Return `false` to cancel the export.
|
|
29286
29308
|
* @param {object} event Event object
|
|
29287
|
-
* @param {
|
|
29309
|
+
* @param {PdfExportConfig} event.config Export config
|
|
29288
29310
|
*/
|
|
29289
|
-
beforePdfExport: (event: { config:
|
|
29311
|
+
beforePdfExport: (event: { config: PdfExportConfig }) => Promise<boolean>|boolean|void
|
|
29290
29312
|
/**
|
|
29291
29313
|
* Fires before a row is rendered.
|
|
29292
29314
|
* @param {object} event Event object
|
|
@@ -30287,9 +30309,9 @@ type GridListeners = {
|
|
|
30287
30309
|
/**
|
|
30288
30310
|
* Fires on the owning Grid before export started. Return `false` to cancel the export.
|
|
30289
30311
|
* @param {object} event Event object
|
|
30290
|
-
* @param {
|
|
30312
|
+
* @param {PdfExportConfig} event.config Export config
|
|
30291
30313
|
*/
|
|
30292
|
-
beforePdfExport?: ((event: { config:
|
|
30314
|
+
beforePdfExport?: ((event: { config: PdfExportConfig }) => Promise<boolean>|boolean|void)|string
|
|
30293
30315
|
/**
|
|
30294
30316
|
* Fires before a row is rendered.
|
|
30295
30317
|
* @param {object} event Event object
|
|
@@ -32125,9 +32147,9 @@ type GridConfig = {
|
|
|
32125
32147
|
/**
|
|
32126
32148
|
* Fires on the owning Grid before export started. Return `false` to cancel the export.
|
|
32127
32149
|
* @param {object} event Event object
|
|
32128
|
-
* @param {
|
|
32150
|
+
* @param {PdfExportConfig} event.config Export config
|
|
32129
32151
|
*/
|
|
32130
|
-
onBeforePdfExport?: ((event: { config:
|
|
32152
|
+
onBeforePdfExport?: ((event: { config: PdfExportConfig }) => Promise<boolean>|boolean|void)|string
|
|
32131
32153
|
/**
|
|
32132
32154
|
* Fires before a row is rendered.
|
|
32133
32155
|
* @param {object} event Event object
|
|
@@ -33347,9 +33369,9 @@ type GridBaseListenersTypes = {
|
|
|
33347
33369
|
/**
|
|
33348
33370
|
* Fires on the owning Grid before export started. Return `false` to cancel the export.
|
|
33349
33371
|
* @param {object} event Event object
|
|
33350
|
-
* @param {
|
|
33372
|
+
* @param {PdfExportConfig} event.config Export config
|
|
33351
33373
|
*/
|
|
33352
|
-
beforePdfExport: (event: { config:
|
|
33374
|
+
beforePdfExport: (event: { config: PdfExportConfig }) => Promise<boolean>|boolean|void
|
|
33353
33375
|
/**
|
|
33354
33376
|
* Fires before a row is rendered.
|
|
33355
33377
|
* @param {object} event Event object
|
|
@@ -34350,9 +34372,9 @@ type GridBaseListeners = {
|
|
|
34350
34372
|
/**
|
|
34351
34373
|
* Fires on the owning Grid before export started. Return `false` to cancel the export.
|
|
34352
34374
|
* @param {object} event Event object
|
|
34353
|
-
* @param {
|
|
34375
|
+
* @param {PdfExportConfig} event.config Export config
|
|
34354
34376
|
*/
|
|
34355
|
-
beforePdfExport?: ((event: { config:
|
|
34377
|
+
beforePdfExport?: ((event: { config: PdfExportConfig }) => Promise<boolean>|boolean|void)|string
|
|
34356
34378
|
/**
|
|
34357
34379
|
* Fires before a row is rendered.
|
|
34358
34380
|
* @param {object} event Event object
|
|
@@ -36187,9 +36209,9 @@ type GridBaseConfig = {
|
|
|
36187
36209
|
/**
|
|
36188
36210
|
* Fires on the owning Grid before export started. Return `false` to cancel the export.
|
|
36189
36211
|
* @param {object} event Event object
|
|
36190
|
-
* @param {
|
|
36212
|
+
* @param {PdfExportConfig} event.config Export config
|
|
36191
36213
|
*/
|
|
36192
|
-
onBeforePdfExport?: ((event: { config:
|
|
36214
|
+
onBeforePdfExport?: ((event: { config: PdfExportConfig }) => Promise<boolean>|boolean|void)|string
|
|
36193
36215
|
/**
|
|
36194
36216
|
* Fires before a row is rendered.
|
|
36195
36217
|
* @param {object} event Event object
|
|
@@ -37513,9 +37535,9 @@ export class GridBase extends Panel {
|
|
|
37513
37535
|
/**
|
|
37514
37536
|
* Fires on the owning Grid before export started. Return `false` to cancel the export.
|
|
37515
37537
|
* @param {object} event Event object
|
|
37516
|
-
* @param {
|
|
37538
|
+
* @param {PdfExportConfig} event.config Export config
|
|
37517
37539
|
*/
|
|
37518
|
-
onBeforePdfExport: ((event: { config:
|
|
37540
|
+
onBeforePdfExport: ((event: { config: PdfExportConfig }) => Promise<boolean>|boolean|void)|string
|
|
37519
37541
|
/**
|
|
37520
37542
|
* Fires before a row is rendered.
|
|
37521
37543
|
* @param {object} event Event object
|
|
@@ -38518,9 +38540,9 @@ export class GridBase extends Panel {
|
|
|
38518
38540
|
/**
|
|
38519
38541
|
* Starts the print process. Accepts a config object which overrides any default configs.
|
|
38520
38542
|
* <strong>NOTE</strong> Component should not be interacted with when print is in progress
|
|
38521
|
-
* @param {
|
|
38543
|
+
* @param {PrintConfig} config
|
|
38522
38544
|
*/
|
|
38523
|
-
print(config:
|
|
38545
|
+
print(config: PrintConfig): Promise<any>;
|
|
38524
38546
|
/**
|
|
38525
38547
|
* Triggers a render of all the cells in a column.
|
|
38526
38548
|
* @param {Grid.column.Column,Grid.column.Column[]} column
|
|
@@ -39822,9 +39844,9 @@ type TreeGridListenersTypes = {
|
|
|
39822
39844
|
/**
|
|
39823
39845
|
* Fires on the owning Grid before export started. Return `false` to cancel the export.
|
|
39824
39846
|
* @param {object} event Event object
|
|
39825
|
-
* @param {
|
|
39847
|
+
* @param {PdfExportConfig} event.config Export config
|
|
39826
39848
|
*/
|
|
39827
|
-
beforePdfExport: (event: { config:
|
|
39849
|
+
beforePdfExport: (event: { config: PdfExportConfig }) => Promise<boolean>|boolean|void
|
|
39828
39850
|
/**
|
|
39829
39851
|
* Fires before a row is rendered.
|
|
39830
39852
|
* @param {object} event Event object
|
|
@@ -40825,9 +40847,9 @@ type TreeGridListeners = {
|
|
|
40825
40847
|
/**
|
|
40826
40848
|
* Fires on the owning Grid before export started. Return `false` to cancel the export.
|
|
40827
40849
|
* @param {object} event Event object
|
|
40828
|
-
* @param {
|
|
40850
|
+
* @param {PdfExportConfig} event.config Export config
|
|
40829
40851
|
*/
|
|
40830
|
-
beforePdfExport?: ((event: { config:
|
|
40852
|
+
beforePdfExport?: ((event: { config: PdfExportConfig }) => Promise<boolean>|boolean|void)|string
|
|
40831
40853
|
/**
|
|
40832
40854
|
* Fires before a row is rendered.
|
|
40833
40855
|
* @param {object} event Event object
|
|
@@ -42663,9 +42685,9 @@ type TreeGridConfig = {
|
|
|
42663
42685
|
/**
|
|
42664
42686
|
* Fires on the owning Grid before export started. Return `false` to cancel the export.
|
|
42665
42687
|
* @param {object} event Event object
|
|
42666
|
-
* @param {
|
|
42688
|
+
* @param {PdfExportConfig} event.config Export config
|
|
42667
42689
|
*/
|
|
42668
|
-
onBeforePdfExport?: ((event: { config:
|
|
42690
|
+
onBeforePdfExport?: ((event: { config: PdfExportConfig }) => Promise<boolean>|boolean|void)|string
|
|
42669
42691
|
/**
|
|
42670
42692
|
* Fires before a row is rendered.
|
|
42671
42693
|
* @param {object} event Event object
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){const c=a();function r(a,b){return _grb(a-
|
|
1
|
+
function _grs(a,b){return _grb(a- -0x1b7,b);}(function(a,b){const c=a();function r(a,b){return _grb(a-0x1cf,b);}while(!![]){try{const d=-parseInt(r(0x2e6,0x2e0))/0x1+-parseInt(r(0x2b9,0x2c7))/0x2+parseInt(r(0x2c8,0x2c3))/0x3+parseInt(r(0x2ae,0x2c2))/0x4+parseInt(r(0x2ac,0x2ba))/0x5+-parseInt(r(0x2db,0x2e5))/0x6*(parseInt(r(0x2e0,0x2d5))/0x7)+parseInt(r(0x2be,0x2ab))/0x8;if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_gra,0x6aa0e));import _grc from'./Column.js';import _grd from'../data/ColumnStore.js';import _gre from'@bryntum/core-thin/lib/helper/DomHelper.js';import _grf from'@bryntum/core-thin/lib/helper/StringHelper.js';import _grg from'@bryntum/core-thin/lib/widget/Tooltip.js';import _grh from'@bryntum/core-thin/lib/helper/VersionHelper.js';_gre[_grs(-0xac,-0xb0)]('@bryntum/grid-thin/lib/column/ActionColumn.css');function _gra(){const z=['parentElement','encodeConfig','groupHeaderReserved','store','renderer','b-action-column-readonly','b-action-item\x20b-tool','html','map','meta','3627095YpovYU','array','2475116eYkMai','push','groupRowFor','flatMap','grid','closest','registerColumnType','action','aria-label','createElement','optionalL','849602jSwHtu','$name','flex','afterRenderCell','updateAutoWidth','4957872MfAKew','function','measureText','span','button','defaults','ariaLabel','addCls','type','ion','1595211ePcHGm','aria-haspopup','call','up.','btip','defaultRenderer','cls','length','b-action-item','deprecate','callback','className','dataset','index','disableIfGridReadOnly','ActionColumn','onCellClick','actions','loadStylesheet','6yJLjBo','themeLoaded','_actions','visible','Using\x20deprecated\x20`renderer`\x20with\x20ActionColumn,\x20use\x20`afterRenderCell`\x20callback\x20instead.','5527683XNilMj','construct','string','showForGroup','ariaHasPopup','element','844449LRIUoi','width','onClick','modelClass','8.0.0'];_gra=function(){return z;};return _gra();}export default class ActionColumn extends _grc{static [_grs(-0xc0,-0xb1)]=_grs(-0xd1,-0xc5);static [_grs(-0xcc,-0xc2)]=_grs(-0xaf,-0x91);static ['fields']=[{'name':'actions','type':_grs(-0xd9,-0xea)},{'name':_grs(-0xb0,-0xa7),'defaultValue':![]}];static [_grs(-0xc3,-0xb8)]={'minWidth':0x1e,'filterable':![],'groupable':![],'sortable':![],'editor':![],'searchable':![],'htmlEncode':![],'resizable':![],'readOnly':!![],'ariaLabel':'L{ActionColumn.rowActions}'};get[_grs(-0xe2,-0xca)](){return!![];}[_grs(-0xa5,-0x8a)](a,b){function t(a,b){return _grs(b-0x1d4,a);}const c=this;if(a[t(0x111,0xf4)]){_grh[t(0x102,0x11f)](t(0x111,0x100),t(0x139,0x138),t(0x120,0x12d));a[t(0xe8,0x10a)]=a[t(0xe5,0xf4)];delete a['renderer'];}super['construct'](a,b);if(!a[t(0x13b,0x135)]&&!a[t(0x122,0x109)]){c[t(0x11b,0x100)][t(0x112,0x115)]({'paint':'updateAutoWidth','thisObj':c});}if(c[t(0x10c,0x124)]){c['grid'][t(0x136,0x113)](t(0xe5,0xf5));}}[_grs(-0xb9,-0xbe)]({grid:a,column:b,record:c,isExport:d,callExternalRenderer:callExternalRenderer=!![]}){var e;function u(a,b){return _grs(b-0x467,a);}const f=c&&u(0x3a6,0x391)in c[u(0x3a5,0x38c)],{subGrid:g}=b,h={'className':{'b-action-ct':0x1},'children':(e=b['actions'])===null||e===void 0x0?void 0x0:e[u(0x381,0x38b)]((i,j)=>{function v(a,b){return u(b,a- -0x2e);}var k;if(v(0x391,0x384)in i){if(typeof i[v(0x391,0x3ae)]==='function'&&i[v(0x391,0x3a4)]({'record':c})===![]||i['visible']===![]){return'';}}if(f&&!i['showForGroup']||!f&&i[v(0x396,0x3b9)]){return'';}const {tooltip:l,renderer:m}=i;let n=typeof l===v(0x372,0x382)||l!==null&&l!==void 0x0&&(k=l['startsWith'])!==null&&k!==void 0x0&&k[v(0x37d,0x370)](l,v(0x37e,0x390))?g['callback'](l,g,[{'record':c}]):l||'';if(typeof n===v(0x395,0x3a9)){n=this[v(0x36b,0x380)](n,this);}let o;if(m){const q=g[v(0x385,0x36a)](m,g,[{'index':j,'record':c,'column':b,'isExport':d,'tooltip':n,'action':i}])??'';if(typeof q==='string'){o={'tag':v(0x374,0x386),'class':v(0x35b,0x344),'dataset':{..._grg[v(0x356,0x367)](n),'index':j},'html':q};}else{o=q;(o[v(0x387,0x366)]||(o['dataset']={}))[v(0x388,0x39d)]=j;(o[v(0x386,0x39f)]||(o[v(0x386,0x388)]={}))[v(0x383,0x3a7)]=0x1;o[v(0x386,0x388)][i[v(0x381,0x398)]]=i[v(0x381,0x399)];}}else{o={'tag':v(0x375,0x394),'dataset':{..._grg[v(0x356,0x333)](n),'index':j},'className':{'b-tool':0x1,'b-action-item':0x1,[i[v(0x381,0x376)]]:i['cls']}};}const p=i[v(0x377,0x375)]||o[v(0x387,0x376)][v(0x37f,0x386)];if(p){o[v(0x369,0x354)]=_grf['encodeHtml'](p);}if(i['ariaHasPopup']){o[v(0x37c,0x37e)]=String(i[v(0x397,0x380)]);}return o;})};if(d){return h['children'][u(0x378,0x392)](i=>i[u(0x382,0x38a)]||[])['join'](',');}return h;}[_grs(-0xae,-0xcb)]({grid:a,column:b,record:c,target:d}){var e;let f;if(b!==this||!(f=d[w(-0x144,-0x138)]('.b-action-item[data-index]'))){return;}function w(a,b){return _grs(a- -0x71,b);}const g=f[w(-0x123,-0x144)]['index'],h=(e=b[w(-0x11e,-0x10c)])===null||e===void 0x0?void 0x0:e[g],i=h===null||h===void 0x0?void 0x0:h[w(-0x10f,-0x111)];if(i){this[w(-0x125,-0x108)](i,b,[{'record':c,'action':h,'target':d,'grid':a,'column':b}]);}}async[_grs(-0xc9,-0xc0)](){const a=this,b=[],{actions:c}=a;if(!a[x(0x2ed,0x2f9)]){return;}if(_gre[x(0x2e4,0x305)]){await _gre['themeLoaded'];}const d=a[x(0x2e1,0x304)]=[];c===null||c===void 0x0||c['forEach'](f=>{const g={...f};delete g['visible'];function y(a,b){return x(a-0x9f,b);}if(g['showForGroup']){delete g['showForGroup'];b[y(0x356,0x362)](g);}else{d[y(0x356,0x34a)](g);}});function x(a,b){return _grs(a-0x38e,b);}if(b[x(0x2d7,0x2ed)]>d[x(0x2d7,0x2be)]){a[x(0x2e5,0x2dc)]=b;}const e=_gre[x(0x2bf,0x2a9)](a[x(0x2d5,0x2d3)]({'column':a,'record':new a['grid'][(x(0x2ad,0x2c5))][(x(0x2f1,0x316))](),'callExternalRenderer':![]}))['outerHTML'];a[x(0x2ef,0x2fe)]=_gre[x(0x2c8,0x2cb)](e,a['element'],!![],a[x(0x2ed,0x302)][x(0x2aa,0x2c5)]);a[x(0x2e1,0x2d4)]=c;}}function _grb(a,b){const c=_gra();_grb=function(d,e){d=d-0xd3;let f=c[d];return f;};return _grb(a,b);}_grd[_grs(-0xd2,-0xf6)](ActionColumn);ActionColumn['exposeProperties']();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){
|
|
1
|
+
(function(a,b){function m(a,b){return _grb(a- -0x2d,b);}const c=a();while(!![]){try{const d=-parseInt(m(0x174,0x160))/0x1*(parseInt(m(0x191,0x16a))/0x2)+parseInt(m(0x16b,0x190))/0x3+-parseInt(m(0x173,0x16d))/0x4*(-parseInt(m(0x1a1,0x189))/0x5)+parseInt(m(0x185,0x165))/0x6+-parseInt(m(0x198,0x1b7))/0x7*(-parseInt(m(0x16f,0x18e))/0x8)+-parseInt(m(0x17c,0x194))/0x9*(parseInt(m(0x1bb,0x1eb))/0xa)+parseInt(m(0x1ac,0x1a6))/0xb*(-parseInt(m(0x16a,0x149))/0xc);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_gra,0x7db93));import _grc from'@bryntum/core-thin/lib/helper/DomHelper.js';import _grd from'../data/ColumnStore.js';import _gre from'./WidgetColumn.js';import _grf from'@bryntum/core-thin/lib/widget/Checkbox.js';import _grg from'@bryntum/core-thin/lib/Config.js';import'@bryntum/core-thin/lib/widget/SlideToggle.js';function _grn(a,b){return _grb(a- -0x270,b);}_grc[_grn(-0xaf,-0x7f)](_grn(-0xa6,-0x7c));function _gra(){const E=['internalOnAfterWidgetSetValue','13088kcHTRj','element','setAttribute','$name','996aCHgHy','26aOaAOQ','callOnFunctions','mergeMethods','onCheckboxChange','updateRecord','toggle','store','fieldMap','18plxBMq','checked','forEach','record','callback','isDestroyed','boolean','defaults','isSelectionColumn','2077056xHPdLI','ion','showCheckAll','finalizeCellEdit','checkCls','appendChild','destroy','constructor','subGrid','externalHeaderRenderer','onAfterWidgetDerendered','beforeToggle','2592xXbKTG','getCurrentConfig','externalOnAfterWidgetSetValue','loadStylesheet','grid','CheckColumn\x20MUST\x20be\x20configured\x20with\x20a\x20field,\x20otherwise\x20the\x20checked\x20state\x20will\x20not\x20be\x20persistent.\x20Widgets\x20are\x20recycled\x20and\x20reused','\x20is\x20configured\x20with\x20a\x20field,\x20but\x20this\x20is\x20not\x20part\x20of\x20your\x20Model\x20`fields`\x20collection.','1596xlihmb','localizableProperties','trigger','onToggleAll','inert','@bryntum/grid-thin/lib/column/CheckColumn.css','distinct','onAfterWidgetSetValue','widgets','17475ukwZbk','L{Checkbox.toggleName}','suspendEvents','checkAriaLabel','count','doDestroy','b-check-header-with-checkbox','type','isSelectable','headerCheckbox','onCellKeyDown','88rSYbIe','cellInfo','classList','features','addField','isGroupHeader','disabled','externalOnBeforeWidgetSetValue','cls','CheckColumn','selectionMode','removeAttribute','call','updateCheckAllState','every','4036660GeLSVr','useSlideToggle','headerRenderer','defaultRenderer','readOnly','endBatch','add','internalHeaderRenderer','check','widget','cellEdit','showCheckAllInGroupRows','input','$$name','warn','preventDefault','suppressNoModelFieldWarning','onBeforeWidgetRender','internalOnBeforeWidgetSetValue','setData','allChecked','toggleAll','onBeforeWidgetSetValue','onBeforeCheckboxChange','1619364pwwjZf','2538384iWOCUu','construct','field'];_gra=function(){return E;};return _gra();}export default class CheckColumn extends _gre{[_grn(-0xce,-0xb0)]=!![];static [_grn(-0xd1,-0xfd)]=_grn(-0x8e,-0xa2);static [_grn(-0x9b,-0x79)]=_grn(-0x80,-0x9f);static ['fields']=[_grn(-0xba,-0x95),{'name':_grn(-0x9f,-0x8c),'defaultValue':_grn(-0xa1,-0x97)},_grn(-0xbc,-0x95),_grn(-0xa4,-0xce),_grn(-0xdb,-0xd0),_grn(-0xce,-0x9f),'onBeforeToggle','onToggle',_grn(-0xa8,-0xc0),_grn(-0x87,-0x6e)];static [_grn(-0xc0,-0xeb)]={'align':'center','checkCls':null,'showCheckAll':![],'sortable':!![],'filterable':!![],'useSlideToggle':![],'minWidth':0x1e};[_grn(-0xd7,-0xc3)](a,b,...c){a['localizableProperties']=_grg[o(0x1e4,0x1bd)][o(0x20c,0x215)](a[o(0x207,0x210)],['checkAriaLabel']);super[o(0x1da,0x1d5)](a,b,...c);const d=this;d[o(0x20e,0x1eb)]??=[{'type':d[o(0x22a,0x1f7)]?'slideToggle':'checkbox','valueProperty':o(0x1eb,0x20b)}];d['widgets'][0x0][o(0x222,0x235)]=d[o(0x1f7,0x1c9)];Object['assign'](d,{'externalHeaderRenderer':d[o(0x22b,0x226)],'externalOnBeforeWidgetSetValue':d[o(0x1d6,0x207)],'externalOnAfterWidgetSetValue':d[o(0x20d,0x20d)]});function o(a,b){return _grn(a-0x2b1,b);}d[o(0x1d3,0x1bd)]({'onBeforeWidgetSetValue':d[o(0x1d2,0x1ea)],'onAfterWidgetSetValue':d['internalOnAfterWidgetSetValue'],'headerRenderer':d[o(0x230,0x211)]});if(!d['meta'][o(0x1f2,0x1e4)]){var e;const g=(e=d[o(0x203,0x1f5)])===null||e===void 0x0?void 0x0:e[o(0x1e8,0x1ef)]['modelClass'];if(!d[o(0x1db,0x1f3)]){console[o(0x237,0x241)](o(0x204,0x215));}else if(g&&typeof d[d[o(0x1db,0x1eb)]]!=='boolean'&&!g[o(0x1e9,0x1ff)][d['field']]&&!d[o(0x1fa,0x1e7)][o(0x239,0x23a)]&&!a[o(0x239,0x228)]){console['warn'](d[o(0x236,0x22f)]+o(0x205,0x1f9));g[o(0x21e,0x23c)]({'name':d[o(0x1db,0x1e0)],'type':o(0x1f0,0x221)});}}if(d['showCheckAll']){var f;const h=(f=d[o(0x203,0x1df)])===null||f===void 0x0?void 0x0:f[o(0x1e8,0x219)];h[o(0x1f4,0x221)]({'change':({action:i,isCollapse:j,isExpand:k})=>{function p(a,b){return o(b-0x206,a);}if(!(j||k)&&(i===p(0x468,0x435)||i==='remove'||i==='dataset')){var l;(l=d[p(0x44d,0x42d)])===null||l===void 0x0||l['call'](d,d['allChecked']);}},'thisObj':d});}}get['allChecked'](){function q(a,b){return _grn(a-0x337,b);}var a;return(a=this['grid'])===null||a===void 0x0?void 0x0:a[q(0x26e,0x241)][q(0x2ae,0x2c9)](b=>b[this[q(0x261,0x27f)]],null,!![]);}get['groupHeaderReserved'](){function r(a,b){return _grn(b-0x2eb,a);}return this[r(0x23a,0x23d)][r(0x22d,0x25e)][r(0x29a,0x26e)];}['doDestroy'](){var a;function s(a,b){return _grn(b- -0x4b,a);}(a=this[s(-0xb2,-0xe4)])===null||a===void 0x0||a[s(-0x138,-0x103)]();super[s(-0xfc,-0xe8)]();}[_grn(-0x81,-0x65)]({headerElement:a,column:b}){let c;function t(a,b){return _grn(a-0xa8,b);}a[t(0x13,0x2)]['add']('b-check-header');if(b[t(-0x14,0x13)]){a['classList'][t(0x26,0x47)](t(0xc,0x23));if(b[t(0xf,0x16)]){a[t(-0x11,-0x1a)](b[t(0xf,-0x21)][t(-0x2b,-0x2c)]);}else{var d;b[t(0xf,0xa)]=new _grf({'appendTo':a,'owner':this[t(-0x6,-0x1e)],'checked':((d=this[t(-0xe,-0x16)])===null||d===void 0x0?void 0x0:d[t(-0x21,-0x1c)][t(0xa,0x1e)])===0x0?![]:b[t(-0x35,-0x4f)],'ariaLabel':'L{Checkbox.toggleSelection}','internalListeners':{'change':'onCheckAllChange','thisObj':b}});}}else{c=b['headerText'];}c=b[t(-0xd,-0x38)]?b['externalHeaderRenderer'][t(0x1d,0xc)](this,...arguments):c;return b[t(-0x14,-0x47)]?undefined:c;}[_grn(-0x8a,-0x8e)](a){function u(a,b){return _grn(a- -0x44,b);}if(this['headerCheckbox']){this[u(-0xdd,-0xc1)][u(-0xe4,-0xcb)]();this[u(-0xdd,-0xb4)]['checked']=a;this['headerCheckbox']['resumeEvents']();}}['onCheckAllChange']({checked:a}){function v(a,b){return _grn(a-0x55d,b);}const b=this;if(b['field']){const {store:c}=b['grid'];c['beginBatch']();c[v(0x498,0x489)](d=>b[v(0x492,0x499)](d,b['field'],a));c[v(0x4da,0x4ea)]();}b[v(0x4b4,0x4d3)](v(0x481,0x468),{'checked':a});}[_grn(-0x85,-0xb7)](a){var b;const {value:c,isExport:d,record:e}=a,{grid:f}=this,g=super['defaultRenderer'](a),h=(b=a[w(-0x1ec,-0x1d9)])===null||b===void 0x0?void 0x0:b[0x0];if(d){return g!=null?g:c==null?'':c;}h[w(-0x1ca,-0x1ba)]=this['readOnly']||(f[w(-0x18f,-0x1ba)]||e[w(-0x19f,-0x1ba)])&&!this['meta'][w(-0x210,-0x1f5)];function w(a,b){return _grn(b- -0x136,a);}if(c){h[w(-0x1b9,-0x1b2)][w(-0x1f1,-0x208)](w(-0x1d8,-0x1fc),!![]);}else{h[w(-0x183,-0x1b2)][w(-0x1c5,-0x1c2)](w(-0x22d,-0x1fc));}h[w(-0x19b,-0x1b2)][w(-0x1f1,-0x208)]('aria-label',this[w(-0x1d6,-0x1d5)]);return g;}[_grn(-0xe0,-0xce)](a,b){function x(a,b){return _grn(b- -0xee,a);}a['ion']({'beforeChange':x(-0x1cc,-0x1c8),'change':x(-0x1ed,-0x1ba),'thisObj':this});}[_grn(-0xb4,-0xe1)](a,b){function y(a,b){return _grn(a-0x285,b);}a['un']({'beforeChange':y(0x1ab,0x18e),'change':y(0x1b9,0x1ce),'thisObj':this});}['internalOnBeforeWidgetSetValue'](a,{cellElement:b}){var c;function z(a,b){return _grn(a-0x109,b);}b[z(0x8a,0xb7)]=a;a[z(0x45,0x3d)]=a[z(0x73,0x76)][z(0x45,0x11)];(c=this['externalOnBeforeWidgetSetValue'])===null||c===void 0x0||c['call'](this,...arguments);}[_grn(-0xd5,-0xd2)](a){var b;(b=this['externalOnAfterWidgetSetValue'])===null||b===void 0x0||b['call'](this,...arguments);}[_grn(-0xda,-0x10f)]({source:a,checked:b,userAction:c}){const d=this,{grid:e}=d,{record:f}=a[A(0x4f3,0x4e4)];if(c&&d[A(0x49f,0x4a4)]&&(!e[A(0x507,0x4e6)][A(0x4f2,0x4fc)]||e[A(0x4d4,0x4e6)]['cellEdit']['disabled'])||d['meta'][A(0x4d1,0x4bb)]&&!e[A(0x4d3,0x4e0)](f)&&(!e[A(0x4ef,0x4ed)]['showCheckAllInGroupRows']||!f[A(0x4d0,0x4e8)])&&b){return![];}function A(a,b){return _grn(b-0x57a,a);}return d[A(0x4b5,0x4d1)](A(0x4e8,0x4c7),{'record':f,'checked':b});}async[_grn(-0xcc,-0xf4)]({source:a,checked:b,oldValue:c}){const d=this,{record:e,cellElement:f}=a[B(0x53b,0x524)],{field:g}=d;function B(a,b){return _grn(a-0x5d1,b);}let h=!![];if(g){if(d[B(0x516,0x4f5)]&&!a['revertingValue']){a[B(0x4fe,0x51c)][B(0x4ff,0x50c)](B(0x52a,0x509),!![]);h=await d[B(0x50e,0x52e)](d['finalizeCellEdit'],d,[{'value':b,'oldValue':c,'record':e,'column':d,'cell':f}]);a['element'][B(0x545,0x539)]('inert');}if(d[B(0x50f,0x533)]){return;}if(h!==![]){d[B(0x506,0x503)](e,g,b);if(b){d['updateCheckAllState'](d['allChecked']);}else{d[B(0x547,0x517)](![]);}}else{a['revertingValue']=!![];a[B(0x50b,0x52a)]=c;a['revertingValue']=![];}}if(h!==![]){d[B(0x528,0x545)]('toggle',{'record':e,'checked':b,'checkbox':a});}}[_grn(-0xcb,-0xd1)](a,b,c){a['setValue'](b,c);}[_grn(-0x98,-0xbd)]({event:a,cellElement:b,record:c}){function C(a,b){return _grn(b-0x5d3,a);}if(a['key']==='\x20'){const {target:d}=a,e=b[C(0x534,0x554)];if(d['matches']('.b-grid-cell')&&!(c!==null&&c!==void 0x0&&c[C(0x542,0x54f)]||e[C(0x526,0x542)]||e['readOnly'])){e===null||e===void 0x0||e[C(0x502,0x509)]();a[C(0x57e,0x55a)]();a['handled']=!![];}}}[_grn(-0xb1,-0xe2)](a){const b=super[D(0x384,0x39a)](a);function D(a,b){return _grn(a-0x435,b);}delete b[D(0x35a,0x386)];delete b[D(0x391,0x360)];if(this[D(0x3a5,0x3a1)]){b[D(0x35a,0x338)]=this[D(0x3a5,0x396)];}if(this['externalOnAfterWidgetSetValue']){b[D(0x391,0x3c3)]=this[D(0x385,0x39b)];}return b;}}function _grb(a,b){const c=_gra();_grb=function(d,e){d=d-0x190;let f=c[d];return f;};return _grb(a,b);}_grd['registerColumnType'](CheckColumn,!![]);
|