@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.
Files changed (40) hide show
  1. package/README.md +272 -20
  2. package/grid.css +10 -1
  3. package/grid.css.map +2 -2
  4. package/grid.d.ts +58 -36
  5. package/lib/column/ActionColumn.js +1 -1
  6. package/lib/column/CheckColumn.js +1 -1
  7. package/lib/column/Column.js +1 -1
  8. package/lib/column/DateColumn.js +1 -1
  9. package/lib/column/TimeColumn.js +1 -1
  10. package/lib/column/TreeColumn.css +2 -1
  11. package/lib/data/ColumnStore.js +1 -1
  12. package/lib/feature/CellEdit.js +1 -1
  13. package/lib/feature/ColumnResize.css +1 -0
  14. package/lib/feature/Filter.css +1 -0
  15. package/lib/feature/Filter.js +1 -1
  16. package/lib/feature/FilterBar.js +1 -1
  17. package/lib/feature/Group.css +2 -0
  18. package/lib/feature/GroupSummary.js +1 -1
  19. package/lib/feature/RowReorder.css +1 -0
  20. package/lib/feature/RowReorder.js +1 -1
  21. package/lib/feature/Sort.css +1 -0
  22. package/lib/feature/Summary.js +1 -1
  23. package/lib/feature/TreeGroup.js +1 -1
  24. package/lib/feature/export/PdfExport.js +4 -4
  25. package/lib/feature/export/mixin/PrintMixin.js +1 -1
  26. package/lib/row/Row.js +1 -1
  27. package/lib/row/RowManager.js +1 -1
  28. package/lib/util/GridLocation.js +1 -1
  29. package/lib/util/SubGridScroller.js +1 -1
  30. package/lib/view/GridBase.css +2 -1
  31. package/lib/view/GridBase.js +1 -1
  32. package/lib/view/Header.js +1 -1
  33. package/lib/view/TreeGrid.js +1 -1
  34. package/lib/view/export/ExportDialog.js +1 -1
  35. package/lib/view/mixin/GridElementEvents.js +1 -1
  36. package/lib/view/mixin/GridNavigation.js +1 -1
  37. package/lib/view/mixin/GridSubGrids.js +1 -1
  38. package/lib/widget/GroupBar.css +1 -0
  39. package/package.json +1 -1
  40. 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´s `aria-label` value. If not provided, the
30
- * action´s `tooltip` will be used as the `aria-label` (if present).
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` to use for the default checkbox widget of cells in this Column
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` to use for the default checkbox widget of cells in this Column
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 {object} config
27079
+ * @param {PdfExportConfig} config
27070
27080
  */
27071
- export(config: object): Promise<any>;
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 {object} config
27493
+ * @param {PrintConfig} config
27484
27494
  */
27485
- print(config: object): Promise<any>;
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 {object} config
28845
+ * @param {PrintConfig} config
28836
28846
  */
28837
- print(config: object): Promise<any>;
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 {object} event.config Export config
29309
+ * @param {PdfExportConfig} event.config Export config
29288
29310
  */
29289
- beforePdfExport: (event: { config: object }) => Promise<boolean>|boolean|void
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 {object} event.config Export config
30312
+ * @param {PdfExportConfig} event.config Export config
30291
30313
  */
30292
- beforePdfExport?: ((event: { config: object }) => Promise<boolean>|boolean|void)|string
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 {object} event.config Export config
32150
+ * @param {PdfExportConfig} event.config Export config
32129
32151
  */
32130
- onBeforePdfExport?: ((event: { config: object }) => Promise<boolean>|boolean|void)|string
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 {object} event.config Export config
33372
+ * @param {PdfExportConfig} event.config Export config
33351
33373
  */
33352
- beforePdfExport: (event: { config: object }) => Promise<boolean>|boolean|void
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 {object} event.config Export config
34375
+ * @param {PdfExportConfig} event.config Export config
34354
34376
  */
34355
- beforePdfExport?: ((event: { config: object }) => Promise<boolean>|boolean|void)|string
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 {object} event.config Export config
36212
+ * @param {PdfExportConfig} event.config Export config
36191
36213
  */
36192
- onBeforePdfExport?: ((event: { config: object }) => Promise<boolean>|boolean|void)|string
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 {object} event.config Export config
37538
+ * @param {PdfExportConfig} event.config Export config
37517
37539
  */
37518
- onBeforePdfExport: ((event: { config: object }) => Promise<boolean>|boolean|void)|string
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 {object} config
38543
+ * @param {PrintConfig} config
38522
38544
  */
38523
- print(config: object): Promise<any>;
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 {object} event.config Export config
39847
+ * @param {PdfExportConfig} event.config Export config
39826
39848
  */
39827
- beforePdfExport: (event: { config: object }) => Promise<boolean>|boolean|void
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 {object} event.config Export config
40850
+ * @param {PdfExportConfig} event.config Export config
40829
40851
  */
40830
- beforePdfExport?: ((event: { config: object }) => Promise<boolean>|boolean|void)|string
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 {object} event.config Export config
42688
+ * @param {PdfExportConfig} event.config Export config
42667
42689
  */
42668
- onBeforePdfExport?: ((event: { config: object }) => Promise<boolean>|boolean|void)|string
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-0x1bb,b);}while(!![]){try{const d=-parseInt(r(0x31d,0x320))/0x1+-parseInt(r(0x300,0x2e6))/0x2+-parseInt(r(0x2eb,0x30d))/0x3+parseInt(r(0x2e3,0x2e8))/0x4+parseInt(r(0x301,0x2fe))/0x5+-parseInt(r(0x309,0x308))/0x6*(parseInt(r(0x2ff,0x320))/0x7)+-parseInt(r(0x2ec,0x2e1))/0x8*(-parseInt(r(0x320,0x2ff))/0x9);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_gra,0x2ee8b));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';function _gra(){const z=['element','ariaLabel','join','actions','action','.b-action-item[data-index]','callback','113931oSuykr','call','onClick','1091223GYwtbe','optionalL','measureText','encodeConfig','length','forEach','grid','ActionColumn','html','themeLoaded','groupRowFor','loadStylesheet','692452Gymbzp','aria-label','8.0.0','flex','addCls','startsWith','dataset','function','941568FSDKio','40NdVVmH','afterRenderCell','string','parentElement','className','ion','defaultRenderer','deprecate','Using\x20deprecated\x20`renderer`\x20with\x20ActionColumn,\x20use\x20`afterRenderCell`\x20callback\x20instead.','type','map','cls','updateAutoWidth','outerHTML','fields','disableIfGridReadOnly','showForGroup','width','push','56WdvsxU','293780NEJSjE','895020ICELko','flatMap','renderer','up.','createElement','encodeHtml','b-action-item','b-action-item\x20b-tool','143652RzIgzu','visible','array','span','construct','meta','btip','index','$name','children','button','L{ActionColumn.rowActions}','registerColumnType'];_gra=function(){return z;};return _gra();}import _grh from'@bryntum/core-thin/lib/helper/VersionHelper.js';_gre[_grs(0x3f9,0x3e4)]('@bryntum/grid-thin/lib/column/ActionColumn.css');export default class ActionColumn extends _grc{static [_grs(0x40c,0x3f0)]=_grs(0x431,0x449);static [_grs(0x428,0x406)]=_grs(0x3f5,0x410);static [_grs(0x411,0x40b)]=[{'name':'actions','type':_grs(0x422,0x430)},{'name':_grs(0x412,0x422),'defaultValue':![]}];static ['defaults']={'minWidth':0x1e,'filterable':![],'groupable':![],'sortable':![],'editor':![],'searchable':![],'htmlEncode':![],'resizable':![],'readOnly':!![],'ariaLabel':_grs(0x42b,0x450)};get['groupHeaderReserved'](){return!![];}[_grs(0x424,0x416)](a,b){const c=this;if(a[t(0x24b,0x232)]){_grh[t(0x202,0x222)](t(0x202,0x20c),t(0x226,0x214),t(0x203,0x223));a[t(0x235,0x21c)]=a['renderer'];delete a['renderer'];}super[t(0x219,0x23c)](a,b);if(!a[t(0x22f,0x22c)]&&!a[t(0x1fe,0x215)]){c[t(0x219,0x20c)][t(0x206,0x220)]({'paint':t(0x248,0x227),'thisObj':c});}function t(a,b){return _grs(b- -0x1e8,a);}if(c[t(0x22f,0x22a)]){c[t(0x225,0x20c)][t(0x208,0x216)]('b-action-column-readonly');}}[_grs(0x409,0x3f0)]({grid:a,column:b,record:c,isExport:d,callExternalRenderer:callExternalRenderer=!![]}){function u(a,b){return _grs(b- -0x1aa,a);}var e;const f=c&&u(0x242,0x24e)in c[u(0x297,0x27b)],{subGrid:g}=b,h={'className':{'b-action-ct':0x1},'children':(e=b[u(0x262,0x286)])===null||e===void 0x0?void 0x0:e[u(0x242,0x263)]((i,j)=>{var k;function v(a,b){return u(b,a- -0x39f);}if(v(-0x128,-0x10c)in i){if(typeof i[v(-0x128,-0x11c)]==='function'&&i[v(-0x128,-0x114)]({'record':c})===![]||i[v(-0x128,-0x133)]===![]){return'';}}if(f&&!i[v(-0x136,-0x150)]||!f&&i[v(-0x136,-0x127)]){return'';}const {tooltip:l,renderer:m}=i;let n=typeof l===v(-0x148,-0x14e)||l!==null&&l!==void 0x0&&(k=l[v(-0x14a,-0x16b)])!==null&&k!==void 0x0&&k[v(-0x114,-0x131)](l,v(-0x12e,-0x14e))?g[v(-0x116,-0x100)](l,g,[{'record':c}]):l||'';if(typeof n==='string'){n=this[v(-0x15a,-0x164)](n,this);}let o;if(m){const q=g[v(-0x116,-0x11c)](m,g,[{'index':j,'record':c,'column':b,'isExport':d,'tooltip':n,'action':i}])??'';if(typeof q===v(-0x144,-0x13b)){o={'tag':v(-0x126,-0x121),'class':v(-0x12a,-0x14d),'dataset':{..._grg[v(-0x158,-0x143)](n),'index':j},'html':q};}else{o=q;(o[v(-0x149,-0x14e)]||(o['dataset']={}))[v(-0x122,-0x139)]=j;(o['className']||(o[v(-0x142,-0x12d)]={}))[v(-0x12b,-0x14f)]=0x1;o[v(-0x142,-0x138)][i['cls']]=i[v(-0x13b,-0x11a)];}}else{o={'tag':v(-0x11f,-0x11f),'dataset':{..._grg[v(-0x158,-0x15f)](n),'index':j},'className':{'b-tool':0x1,'b-action-item':0x1,[i[v(-0x13b,-0x15b)]]:i[v(-0x13b,-0x12b)]}};}const p=i[v(-0x11b,-0x105)]||o[v(-0x149,-0x143)][v(-0x123,-0x10f)];if(p){o[v(-0x14e,-0x136)]=_grf[v(-0x12c,-0x12e)](p);}return o;})};if(d){return h[u(0x28e,0x27f)][u(0x288,0x26f)](i=>i[u(0x24b,0x24c)]||[])[u(0x2a3,0x285)](',');}return h;}['onCellClick']({grid:a,column:b,record:c,target:d}){var e;function w(a,b){return _grs(b- -0x616,a);}let f;if(b!==this||!(f=d['closest'](w(-0x1e1,-0x1e4)))){return;}const g=f[w(-0x1f6,-0x216)][w(-0x213,-0x1ef)],h=(e=b[w(-0x1f5,-0x1e6)])===null||e===void 0x0?void 0x0:e[g],i=h===null||h===void 0x0?void 0x0:h[w(-0x1e0,-0x1e0)];if(i){this[w(-0x1d1,-0x1e3)](i,b,[{'record':c,'action':h,'target':d,'grid':a,'column':b}]);}}async['updateAutoWidth'](){const a=this,b=[],{actions:c}=a;if(!a[x(0x39d,0x381)]){return;}if(_gre[x(0x367,0x35c)]){await _gre[x(0x367,0x344)];}const d=a[x(0x3a0,0x392)]=[];c===null||c===void 0x0||c[x(0x363,0x342)](f=>{const g={...f};function y(a,b){return x(a-0x41,b);}delete g[y(0x3d2,0x3b9)];if(g[y(0x3c4,0x3bc)]){delete g[y(0x3c4,0x3d8)];b['push'](g);}else{d[y(0x3c6,0x3c5)](g);}});if(b['length']>d[x(0x362,0x357)]){a['_actions']=b;}const e=_gre[x(0x38c,0x385)](a[x(0x379,0x391)]({'column':a,'record':new a[(x(0x364,0x377))]['store']['modelClass'](),'callExternalRenderer':![]}))[x(0x380,0x38d)];a['width']=_gre[x(0x360,0x35d)](e,a[x(0x39d,0x39f)],!![],a[x(0x39d,0x380)][x(0x376,0x382)]);function x(a,b){return _grs(a- -0x90,b);}a[x(0x3a0,0x399)]=c;}}function _grs(a,b){return _grb(a-0x2d2,b);}_grd[_grs(0x42c,0x436)](ActionColumn);function _grb(a,b){const c=_gra();_grb=function(d,e){d=d-0x11d;let f=c[d];return f;};return _grb(a,b);}ActionColumn['exposeProperties']();
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){const c=a();function m(a,b){return _grb(b-0x19d,a);}while(!![]){try{const d=parseInt(m(0x2bc,0x295))/0x1*(parseInt(m(0x2a0,0x2bc))/0x2)+parseInt(m(0x2f3,0x2f2))/0x3+-parseInt(m(0x2d9,0x2b8))/0x4*(-parseInt(m(0x2a5,0x29b))/0x5)+-parseInt(m(0x2cc,0x2c1))/0x6+-parseInt(m(0x29f,0x2c7))/0x7*(parseInt(m(0x2cd,0x2ea))/0x8)+-parseInt(m(0x300,0x2dd))/0x9+-parseInt(m(0x2f6,0x2ed))/0xa*(-parseInt(m(0x2a6,0x2ba))/0xb);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_gra,0x74e50));import _grc from'@bryntum/core-thin/lib/helper/DomHelper.js';function _gra(){const F=['onBeforeCheckboxChange','7wtFyPa','beginBatch','updateRecord','suppressNoModelFieldWarning','headerCheckbox','slideToggle','useSlideToggle','callOnFunctions','checkAriaLabel','L{Checkbox.toggleName}','CheckColumn\x20MUST\x20be\x20configured\x20with\x20a\x20field,\x20otherwise\x20the\x20checked\x20state\x20will\x20not\x20be\x20persistent.\x20Widgets\x20are\x20recycled\x20and\x20reused','@bryntum/grid-thin/lib/column/CheckColumn.css','warn','getCurrentConfig','isSelectionColumn','toggle','remove','onBeforeWidgetSetValue','mergeMethods','trigger','onCheckboxChange','externalOnAfterWidgetSetValue','4589829qBXPPC','isGroupHeader','onCheckAllChange','checkCls','appendChild','readOnly','widget','toggleAll','onBeforeWidgetRender','disabled','loadStylesheet','cellInfo','headerRenderer','6840968bFfcFn','checkbox','meta','3447190RNZLml','call','onAfterWidgetDerendered','removeAttribute','modelClass','461229OijSxP','destroy','externalHeaderRenderer','ion','aria-label','checked','record','26146LKHpvE','check','.b-grid-cell','store','onAfterWidgetSetValue','matches','455quFWRW','doDestroy','allChecked','headerText','cls','showCheckAllInGroupRows','externalOnBeforeWidgetSetValue','features','assign','widgets','count','grid','localizableProperties','constructor','b-check-header-with-checkbox','defaultRenderer','onCellKeyDown','input','center','showCheckAll','selectionMode','distinct','boolean','key','b-check-header','addField','setAttribute','onToggleAll','classList','37308VlMfdX','updateCheckAllState','33WxWjiV','internalOnBeforeWidgetSetValue','22wWrjsk','suspendEvents','field','setData','construct','2882166iSaebM','$$name','endBatch','onBeforeToggle','add'];_gra=function(){return F;};return _gra();}import _grd from'../data/ColumnStore.js';function _grb(a,b){const c=_gra();_grb=function(d,e){d=d-0xf8;let f=c[d];return f;};return _grb(a,b);}import _gre from'./WidgetColumn.js';function _grn(a,b){return _grb(b-0x202,a);}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';_grc[_grn(0x328,0x34c)](_grn(0x334,0x337));export default class CheckColumn extends _gre{[_grn(0x336,0x333)]=!![];static ['$name']='CheckColumn';static ['type']=_grn(0x2cf,0x2fb);static ['fields']=[_grn(0x35e,0x345),{'name':_grn(0x366,0x334),'defaultValue':_grn(0x344,0x335)},_grn(0x308,0x313),'onAfterWidgetSetValue',_grn(0x312,0x33d),'callOnFunctions',_grn(0x336,0x329),'onToggle',_grn(0x2f5,0x31b),_grn(0x34f,0x332)];static ['defaults']={'align':_grn(0x311,0x312),'checkCls':null,'showCheckAll':![],'sortable':!![],'filterable':!![],'useSlideToggle':![],'minWidth':0x1e};[_grn(0x32d,0x325)](a,b,...c){a[o(0x4f0,0x4d4)]=_grg[o(0x522,0x526)][o(0x4f9,0x529)](a[o(0x4f0,0x4ca)],[o(0x518,0x50e)]);super[o(0x509,0x537)](a,b,...c);const d=this;d[o(0x4ed,0x51c)]??=[{'type':d[o(0x516,0x4f1)]?o(0x515,0x530):o(0x534,0x545),'valueProperty':o(0x540,0x539)}];d[o(0x4ed,0x4c8)][0x0][o(0x4e8,0x4f2)]=d[o(0x529,0x51a)];function o(a,b){return _grn(b,a-0x1e4);}Object[o(0x4ec,0x4f5)](d,{'externalHeaderRenderer':d[o(0x532,0x518)],'externalOnBeforeWidgetSetValue':d['onBeforeWidgetSetValue'],'externalOnAfterWidgetSetValue':d[o(0x4e2,0x4f3)]});d[o(0x508,0x4dc)]({'onBeforeWidgetSetValue':d['internalOnBeforeWidgetSetValue'],'onAfterWidgetSetValue':d['internalOnAfterWidgetSetValue'],'headerRenderer':d['internalHeaderRenderer']});if(!d['meta'][o(0x51e,0x545)]){var e;const g=(e=d[o(0x4ef,0x520)])===null||e===void 0x0?void 0x0:e[o(0x4e1,0x50d)][o(0x53a,0x50c)];if(!d[o(0x507,0x515)]){console['warn'](o(0x51a,0x54a));}else if(g&&typeof d[d['field']]!==o(0x4fa,0x4e2)&&!g['fieldMap'][d[o(0x507,0x4dc)]]&&!d[o(0x4f1,0x503)][o(0x513,0x4f0)]&&!a[o(0x513,0x544)]){console[o(0x51c,0x4f5)](d[o(0x50b,0x523)]+'\x20is\x20configured\x20with\x20a\x20field,\x20but\x20this\x20is\x20not\x20part\x20of\x20your\x20Model\x20`fields`\x20collection.');g[o(0x4fd,0x4dd)]({'name':d[o(0x507,0x50d)],'type':'boolean'});}}if(d['showCheckAll']){var f;const h=(f=d[o(0x4ef,0x4e3)])===null||f===void 0x0?void 0x0:f[o(0x4e1,0x4d3)];h['ion']({'change':({action:i,isCollapse:j,isExpand:k})=>{function p(a,b){return o(a- -0x2ca,b);}if(!(j||k)&&(i===p(0x244,0x256)||i===p(0x256,0x27f)||i==='dataset')){var l;(l=d[p(0x238,0x212)])===null||l===void 0x0||l[p(0x26d,0x25e)](d,d[p(0x21c,0x1fa)]);}},'thisObj':d});}}get[_grn(0x2f0,0x302)](){var a;function q(a,b){return _grn(b,a- -0x465);}return(a=this[q(-0x15a,-0x133)])===null||a===void 0x0?void 0x0:a[q(-0x168,-0x153)]['every'](b=>b[this[q(-0x142,-0x12e)]],null,!![]);}get['groupHeaderReserved'](){function r(a,b){return _grn(a,b- -0x268);}return this[r(0xa1,0xa3)][r(0xd2,0xac)][r(0xa2,0x9d)];}[_grn(0x304,0x301)](){var a;function s(a,b){return _grn(a,b- -0x382);}(a=this[s(-0x3d,-0x52)])===null||a===void 0x0||a[s(-0x57,-0x2a)]();super[s(-0x59,-0x81)]();}['internalHeaderRenderer']({headerElement:a,column:b}){let c;function t(a,b){return _grn(a,b- -0x473);}a[t(-0x14b,-0x157)][t(-0x157,-0x149)](t(-0x172,-0x15b));if(b[t(-0x178,-0x160)]){a[t(-0x14f,-0x157)][t(-0x134,-0x149)](t(-0x143,-0x165));if(b[t(-0x11e,-0x143)]){a[t(-0x137,-0x12d)](b[t(-0x141,-0x143)]['element']);}else{var d;b[t(-0x12d,-0x143)]=new _grf({'appendTo':a,'owner':this['grid'],'checked':((d=this['subGrid'])===null||d===void 0x0?void 0x0:d[t(-0x152,-0x176)][t(-0x164,-0x169)])===0x0?![]:b['allChecked'],'ariaLabel':'L{Checkbox.toggleSelection}','internalListeners':{'change':'onCheckAllChange','thisObj':b}});}}else{c=b[t(-0x174,-0x170)];}c=b['externalHeaderRenderer']?b[t(-0x11d,-0x11a)][t(-0x106,-0x120)](this,...arguments):c;return b[t(-0x135,-0x160)]?undefined:c;}[_grn(0x328,0x31e)](a){function u(a,b){return _grn(a,b- -0x542);}if(this[u(-0x243,-0x212)]){this[u(-0x234,-0x212)][u(-0x229,-0x220)]();this[u(-0x230,-0x212)]['checked']=a;this[u(-0x1f9,-0x212)]['resumeEvents']();}}[_grn(0x31e,0x344)]({checked:a}){const b=this;if(b[v(0x463,0x465)]){const {store:c}=b[v(0x44b,0x466)];c[v(0x46d,0x461)]();c['forEach'](d=>b[v(0x46e,0x47f)](d,b[v(0x463,0x43b)],a));c[v(0x468,0x438)]();}function v(a,b){return _grn(b,a-0x140);}b[v(0x47f,0x44e)](v(0x489,0x46c),{'checked':a});}[_grn(0x30b,0x30f)](a){var b;function w(a,b){return _grn(a,b- -0x15);}const {value:c,isExport:d,record:e}=a,{grid:f}=this,g=super[w(0x314,0x2fa)](a),h=(b=a[w(0x2cb,0x2f4)])===null||b===void 0x0?void 0x0:b[0x0];if(d){return g!=null?g:c==null?'':c;}h[w(0x33b,0x332)]=this[w(0x323,0x332)]||(f[w(0x345,0x332)]||e[w(0x362,0x332)])&&!this[w(0x32d,0x33c)][w(0x305,0x325)];if(c){h['input'][w(0x2da,0x305)](w(0x34a,0x347),!![]);}else{h[w(0x317,0x2fc)][w(0x358,0x340)]('checked');}h[w(0x317,0x2fc)][w(0x2ea,0x305)](w(0x361,0x346),this['checkAriaLabel']);return g;}[_grn(0x34d,0x34a)](a,b){function x(a,b){return _grn(b,a- -0x4a3);}a[x(-0x149,-0x13e)]({'beforeChange':'onBeforeCheckboxChange','change':'onCheckboxChange','thisObj':this});}[_grn(0x384,0x354)](a,b){function y(a,b){return _grn(a,b- -0x58e);}a['un']({'beforeChange':y(-0x291,-0x263),'change':y(-0x278,-0x24e),'thisObj':this});}[_grn(0x32f,0x320)](a,{cellElement:b}){var c;function z(a,b){return _grn(a,b- -0x395);}b['widget']=a;a[z(-0x68,-0x38)]=a['cellInfo']['record'];(c=this[z(-0x8c,-0x8f)])===null||c===void 0x0||c['call'](this,...arguments);}['internalOnAfterWidgetSetValue'](a){var b;function A(a,b){return _grn(b,a- -0x231);}(b=this[A(0x110,0x127)])===null||b===void 0x0||b[A(0x122,0x126)](this,...arguments);}[_grn(0x330,0x32b)]({source:a,checked:b,userAction:c}){const d=this,{grid:e}=d,{record:f}=a[B(0x3a2,0x3c4)];if(c&&d['field']&&(!e[B(0x35c,0x358)]['cellEdit']||e[B(0x35c,0x337)]['cellEdit'][B(0x3a0,0x380)])||d[B(0x3a6,0x379)][B(0x38f,0x386)]&&!e['isSelectable'](f)&&(!e[B(0x369,0x36d)]['showCheckAllInGroupRows']||!f[B(0x398,0x37e)])&&b){return![];}function B(a,b){return _grn(b,a-0x55);}return d[B(0x394,0x371)]('beforeToggle',{'record':f,'checked':b});}[_grn(0x311,0x340)]({source:a,checked:b}){function C(a,b){return _grn(b,a- -0x162);}const c=this,{record:d}=a['cellInfo'],{field:e}=c;if(e){c[C(0x1cc,0x1de)](d,e,b);if(b){c[C(0x1bc,0x18d)](c[C(0x1a0,0x1be)]);}else{c[C(0x1bc,0x1ba)](![]);}}c[C(0x1dd,0x1f2)](C(0x1d9,0x1f4),{'record':d,'checked':b,'checkbox':a});}[_grn(0x330,0x32e)](a,b,c){a['setValue'](b,c);}[_grn(0x2f9,0x310)]({event:a,cellElement:b,record:c}){function D(a,b){return _grn(a,b-0x9);}if(a[D(0x30c,0x320)]==='\x20'){const {target:d}=a,e=b[D(0x332,0x351)];if(d[D(0x335,0x308)](D(0x304,0x305))&&!(c!==null&&c!==void 0x0&&c[D(0x352,0x350)]||e[D(0x369,0x354)]||e[D(0x349,0x350)])){e===null||e===void 0x0||e['toggle']();a['preventDefault']();a['handled']=!![];}}}[_grn(0x328,0x339)](a){const b=super[E(0x38b,0x3b7)](a);function E(a,b){return _grn(a,b-0x7e);}delete b['onBeforeWidgetSetValue'];delete b[E(0x364,0x37c)];if(this[E(0x362,0x384)]){b[E(0x3d3,0x3bb)]=this[E(0x369,0x384)];}if(this[E(0x3ac,0x3bf)]){b[E(0x37d,0x37c)]=this[E(0x3be,0x3bf)];}return b;}}_grd['registerColumnType'](CheckColumn,!![]);
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,!![]);