@slickgrid-universal/vanilla-force-bundle 2.4.1 → 2.6.0

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.
@@ -62,7 +62,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
62
62
  * Date: 2022-12-20T21:28Z
63
63
  */
64
64
 
65
- /*! @license DOMPurify 2.4.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.4.3/LICENSE */
65
+ /*! @license DOMPurify 3.0.0 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.0/LICENSE */
66
66
 
67
67
  /**
68
68
  * @license
@@ -73,7 +73,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
73
73
  * Distributed under MIT license.
74
74
  * All rights reserved.
75
75
  *
76
- * SlickGrid v3.0.3
76
+ * SlickGrid v3.0.4
77
77
  *
78
78
  * NOTES:
79
79
  * Cell/row DOM manipulations are done directly bypassing jQuery's DOM manipulation methods.
@@ -1,42 +1,42 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Slicker = exports.VanillaForceGridBundle = exports.SlickPaginationComponent = exports.SlickEmptyWarningComponent = exports.SlickCompositeEditorComponent = exports.Utilities = exports.SortComparers = exports.GroupTotalFormatters = exports.Formatters = exports.Filters = exports.EventPubSubService = exports.Enums = exports.Editors = exports.Aggregators = exports.BindingService = void 0;
4
- const common_1 = require("@slickgrid-universal/common");
5
- Object.defineProperty(exports, "Aggregators", { enumerable: true, get: function () { return common_1.Aggregators; } });
6
- Object.defineProperty(exports, "Editors", { enumerable: true, get: function () { return common_1.Editors; } });
7
- Object.defineProperty(exports, "Enums", { enumerable: true, get: function () { return common_1.Enums; } });
8
- Object.defineProperty(exports, "Filters", { enumerable: true, get: function () { return common_1.Filters; } });
9
- Object.defineProperty(exports, "Formatters", { enumerable: true, get: function () { return common_1.Formatters; } });
10
- Object.defineProperty(exports, "GroupTotalFormatters", { enumerable: true, get: function () { return common_1.GroupTotalFormatters; } });
11
- Object.defineProperty(exports, "SortComparers", { enumerable: true, get: function () { return common_1.SortComparers; } });
12
- Object.defineProperty(exports, "Utilities", { enumerable: true, get: function () { return common_1.Utilities; } });
13
- const binding_1 = require("@slickgrid-universal/binding");
14
- Object.defineProperty(exports, "BindingService", { enumerable: true, get: function () { return binding_1.BindingService; } });
15
- const event_pub_sub_1 = require("@slickgrid-universal/event-pub-sub");
16
- Object.defineProperty(exports, "EventPubSubService", { enumerable: true, get: function () { return event_pub_sub_1.EventPubSubService; } });
17
- const composite_editor_component_1 = require("@slickgrid-universal/composite-editor-component");
18
- Object.defineProperty(exports, "SlickCompositeEditorComponent", { enumerable: true, get: function () { return composite_editor_component_1.SlickCompositeEditorComponent; } });
19
- const empty_warning_component_1 = require("@slickgrid-universal/empty-warning-component");
20
- Object.defineProperty(exports, "SlickEmptyWarningComponent", { enumerable: true, get: function () { return empty_warning_component_1.SlickEmptyWarningComponent; } });
21
- const pagination_component_1 = require("@slickgrid-universal/pagination-component");
22
- Object.defineProperty(exports, "SlickPaginationComponent", { enumerable: true, get: function () { return pagination_component_1.SlickPaginationComponent; } });
23
- const vanilla_force_bundle_1 = require("./vanilla-force-bundle");
24
- Object.defineProperty(exports, "VanillaForceGridBundle", { enumerable: true, get: function () { return vanilla_force_bundle_1.VanillaForceGridBundle; } });
25
- const Slicker = {
26
- GridBundle: vanilla_force_bundle_1.VanillaForceGridBundle,
27
- Aggregators: common_1.Aggregators,
28
- BindingService: binding_1.BindingService,
29
- Editors: common_1.Editors,
30
- Enums: common_1.Enums,
31
- Filters: common_1.Filters,
32
- Formatters: common_1.Formatters,
33
- GroupTotalFormatters: common_1.GroupTotalFormatters,
34
- SortComparers: common_1.SortComparers,
35
- Utilities: common_1.Utilities,
36
- };
37
- exports.Slicker = Slicker;
38
- // expose the bundle on the global "window" object as Slicker
39
- if (typeof window !== 'undefined') {
40
- window.Slicker = Slicker;
41
- }
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Slicker = exports.VanillaForceGridBundle = exports.SlickPaginationComponent = exports.SlickEmptyWarningComponent = exports.SlickCompositeEditorComponent = exports.Utilities = exports.SortComparers = exports.GroupTotalFormatters = exports.Formatters = exports.Filters = exports.EventPubSubService = exports.Enums = exports.Editors = exports.Aggregators = exports.BindingService = void 0;
4
+ const common_1 = require("@slickgrid-universal/common");
5
+ Object.defineProperty(exports, "Aggregators", { enumerable: true, get: function () { return common_1.Aggregators; } });
6
+ Object.defineProperty(exports, "Editors", { enumerable: true, get: function () { return common_1.Editors; } });
7
+ Object.defineProperty(exports, "Enums", { enumerable: true, get: function () { return common_1.Enums; } });
8
+ Object.defineProperty(exports, "Filters", { enumerable: true, get: function () { return common_1.Filters; } });
9
+ Object.defineProperty(exports, "Formatters", { enumerable: true, get: function () { return common_1.Formatters; } });
10
+ Object.defineProperty(exports, "GroupTotalFormatters", { enumerable: true, get: function () { return common_1.GroupTotalFormatters; } });
11
+ Object.defineProperty(exports, "SortComparers", { enumerable: true, get: function () { return common_1.SortComparers; } });
12
+ Object.defineProperty(exports, "Utilities", { enumerable: true, get: function () { return common_1.Utilities; } });
13
+ const binding_1 = require("@slickgrid-universal/binding");
14
+ Object.defineProperty(exports, "BindingService", { enumerable: true, get: function () { return binding_1.BindingService; } });
15
+ const event_pub_sub_1 = require("@slickgrid-universal/event-pub-sub");
16
+ Object.defineProperty(exports, "EventPubSubService", { enumerable: true, get: function () { return event_pub_sub_1.EventPubSubService; } });
17
+ const composite_editor_component_1 = require("@slickgrid-universal/composite-editor-component");
18
+ Object.defineProperty(exports, "SlickCompositeEditorComponent", { enumerable: true, get: function () { return composite_editor_component_1.SlickCompositeEditorComponent; } });
19
+ const empty_warning_component_1 = require("@slickgrid-universal/empty-warning-component");
20
+ Object.defineProperty(exports, "SlickEmptyWarningComponent", { enumerable: true, get: function () { return empty_warning_component_1.SlickEmptyWarningComponent; } });
21
+ const pagination_component_1 = require("@slickgrid-universal/pagination-component");
22
+ Object.defineProperty(exports, "SlickPaginationComponent", { enumerable: true, get: function () { return pagination_component_1.SlickPaginationComponent; } });
23
+ const vanilla_force_bundle_1 = require("./vanilla-force-bundle");
24
+ Object.defineProperty(exports, "VanillaForceGridBundle", { enumerable: true, get: function () { return vanilla_force_bundle_1.VanillaForceGridBundle; } });
25
+ const Slicker = {
26
+ GridBundle: vanilla_force_bundle_1.VanillaForceGridBundle,
27
+ Aggregators: common_1.Aggregators,
28
+ BindingService: binding_1.BindingService,
29
+ Editors: common_1.Editors,
30
+ Enums: common_1.Enums,
31
+ Filters: common_1.Filters,
32
+ Formatters: common_1.Formatters,
33
+ GroupTotalFormatters: common_1.GroupTotalFormatters,
34
+ SortComparers: common_1.SortComparers,
35
+ Utilities: common_1.Utilities,
36
+ };
37
+ exports.Slicker = Slicker;
38
+ // expose the bundle on the global "window" object as Slicker
39
+ if (typeof window !== 'undefined') {
40
+ window.Slicker = Slicker;
41
+ }
42
42
  //# sourceMappingURL=index.js.map
@@ -1,87 +1,86 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SalesforceGlobalGridOptions = void 0;
4
- const event_pub_sub_1 = require("@slickgrid-universal/event-pub-sub");
5
- /** Global Grid Options Defaults for Salesforce */
6
- exports.SalesforceGlobalGridOptions = {
7
- autoEdit: true,
8
- autoCommitEdit: true,
9
- autoFixResizeTimeout: 5 * 60 * 60,
10
- autoFixResizeRequiredGoodCount: 5 * 60 * 60,
11
- autoFixResizeWhenBrokenStyleDetected: true,
12
- cellValueCouldBeUndefined: true,
13
- contextMenu: {
14
- hideCloseButton: false,
15
- },
16
- eventNamingStyle: event_pub_sub_1.EventNamingStyle.lowerCaseWithoutOnPrefix,
17
- compositeEditorOptions: {
18
- resetEditorButtonCssClass: 'mdi mdi-refresh mdi-15px mdi-v-align-text-top',
19
- resetFormButtonIconCssClass: 'mdi mdi-refresh mdi-16px mdi-flip-h mdi-v-align-text-top',
20
- shouldPreviewMassChangeDataset: true,
21
- },
22
- datasetIdPropertyName: 'Id',
23
- emptyDataWarning: {
24
- message: `<span class="mdi mdi-alert color-warning"></span> No data to display.`,
25
- },
26
- enableDeepCopyDatasetOnPageLoad: true,
27
- enableTextExport: true,
28
- textExportOptions: {
29
- exportWithFormatter: true,
30
- sanitizeDataExport: true,
31
- },
32
- enableCellNavigation: true,
33
- customTooltip: {
34
- tooltipTextMaxLength: 650,
35
- },
36
- enableExcelExport: true,
37
- excelExportOptions: {
38
- mimeType: '',
39
- sanitizeDataExport: true
40
- },
41
- filterTypingDebounce: 250,
42
- formatterOptions: {
43
- minDecimal: 0,
44
- maxDecimal: 2,
45
- thousandSeparator: ','
46
- },
47
- frozenHeaderWidthCalcDifferential: 2,
48
- columnPicker: {
49
- hideForceFitButton: true,
50
- },
51
- gridMenu: {
52
- commandLabels: {
53
- clearFrozenColumnsCommandKey: 'UNFREEZE_COLUMNS',
54
- },
55
- hideTogglePreHeaderCommand: true,
56
- hideRefreshDatasetCommand: true,
57
- hideClearFrozenColumnsCommand: false,
58
- hideForceFitButton: true,
59
- },
60
- headerMenu: {
61
- hideFreezeColumnsCommand: false,
62
- iconSortAscCommand: 'fa fa-sort-amount-asc mdi mdi-arrow-up',
63
- iconSortDescCommand: 'fa fa-sort-amount-desc mdi mdi-arrow-down',
64
- },
65
- sanitizer: (dirtyHtml) => typeof dirtyHtml === 'string' ? dirtyHtml.replace(/(\b)(on[a-z]+)(\s*)=|javascript:([^>]*)[^>]*|(<\s*)(\/*)script([<>]*).*(<\s*)(\/*)script(>*)|(&lt;)(\/*)(script|script defer)(.*)(&gt;|&gt;">)/gi, '') : dirtyHtml,
66
- showCustomFooter: true,
67
- customFooterOptions: {
68
- hideMetrics: false,
69
- hideTotalItemCount: false,
70
- hideLastUpdateTimestamp: true,
71
- metricTexts: {
72
- itemsSelectedKey: 'RECORDS_SELECTED',
73
- }
74
- },
75
- headerRowHeight: 35,
76
- rowHeight: 33,
77
- resizeByContentOnlyOnFirstLoad: false,
78
- resizeByContentOptions: {
79
- formatterPaddingWidthInPx: 8,
80
- maxItemToInspectCellContentWidth: 500,
81
- },
82
- rowMoveManager: {
83
- hideRowMoveShadow: false,
84
- },
85
- useSalesforceDefaultGridOptions: true,
86
- };
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SalesforceGlobalGridOptions = void 0;
4
+ const event_pub_sub_1 = require("@slickgrid-universal/event-pub-sub");
5
+ /** Global Grid Options Defaults for Salesforce */
6
+ exports.SalesforceGlobalGridOptions = {
7
+ autoEdit: true,
8
+ autoCommitEdit: true,
9
+ autoFixResizeTimeout: 5 * 60 * 60,
10
+ autoFixResizeRequiredGoodCount: 5 * 60 * 60,
11
+ autoFixResizeWhenBrokenStyleDetected: true,
12
+ cellValueCouldBeUndefined: true,
13
+ contextMenu: {
14
+ hideCloseButton: false,
15
+ },
16
+ eventNamingStyle: event_pub_sub_1.EventNamingStyle.lowerCaseWithoutOnPrefix,
17
+ compositeEditorOptions: {
18
+ resetEditorButtonCssClass: 'mdi mdi-refresh mdi-15px mdi-v-align-text-top',
19
+ resetFormButtonIconCssClass: 'mdi mdi-refresh mdi-16px mdi-flip-h mdi-v-align-text-top',
20
+ shouldPreviewMassChangeDataset: true,
21
+ },
22
+ datasetIdPropertyName: 'Id',
23
+ emptyDataWarning: {
24
+ message: `<span class="mdi mdi-alert color-warning"></span> No data to display.`,
25
+ },
26
+ enableDeepCopyDatasetOnPageLoad: true,
27
+ enableTextExport: true,
28
+ textExportOptions: {
29
+ exportWithFormatter: true,
30
+ sanitizeDataExport: true,
31
+ },
32
+ enableCellNavigation: true,
33
+ customTooltip: {
34
+ tooltipTextMaxLength: 650,
35
+ },
36
+ enableExcelExport: true,
37
+ excelExportOptions: {
38
+ exportWithFormatter: true,
39
+ mimeType: '',
40
+ sanitizeDataExport: true
41
+ },
42
+ filterTypingDebounce: 250,
43
+ formatterOptions: {
44
+ thousandSeparator: ','
45
+ },
46
+ frozenHeaderWidthCalcDifferential: 2,
47
+ columnPicker: {
48
+ hideForceFitButton: true,
49
+ },
50
+ gridMenu: {
51
+ commandLabels: {
52
+ clearFrozenColumnsCommandKey: 'UNFREEZE_COLUMNS',
53
+ },
54
+ hideTogglePreHeaderCommand: true,
55
+ hideRefreshDatasetCommand: true,
56
+ hideClearFrozenColumnsCommand: false,
57
+ hideForceFitButton: true,
58
+ },
59
+ headerMenu: {
60
+ hideFreezeColumnsCommand: false,
61
+ iconSortAscCommand: 'fa fa-sort-amount-asc mdi mdi-arrow-up',
62
+ iconSortDescCommand: 'fa fa-sort-amount-desc mdi mdi-arrow-down',
63
+ },
64
+ sanitizer: (dirtyHtml) => typeof dirtyHtml === 'string' ? dirtyHtml.replace(/(\b)(on[a-z]+)(\s*)=|javascript:([^>]*)[^>]*|(<\s*)(\/*)script([<>]*).*(<\s*)(\/*)script(>*)|(&lt;)(\/*)(script|script defer)(.*)(&gt;|&gt;">)/gi, '') : dirtyHtml,
65
+ showCustomFooter: true,
66
+ customFooterOptions: {
67
+ hideMetrics: false,
68
+ hideTotalItemCount: false,
69
+ hideLastUpdateTimestamp: true,
70
+ metricTexts: {
71
+ itemsSelectedKey: 'RECORDS_SELECTED',
72
+ }
73
+ },
74
+ headerRowHeight: 35,
75
+ rowHeight: 33,
76
+ resizeByContentOnlyOnFirstLoad: false,
77
+ resizeByContentOptions: {
78
+ formatterPaddingWidthInPx: 8,
79
+ maxItemToInspectCellContentWidth: 500,
80
+ },
81
+ rowMoveManager: {
82
+ hideRowMoveShadow: false,
83
+ },
84
+ useSalesforceDefaultGridOptions: true,
85
+ };
87
86
  //# sourceMappingURL=salesforce-global-grid-options.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"salesforce-global-grid-options.js","sourceRoot":"","sources":["../../src/salesforce-global-grid-options.ts"],"names":[],"mappings":";;;AACA,sEAAsE;AAEtE,kDAAkD;AACrC,QA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,KAAK;QAC/B,kBAAkB,EAAE,wCAAwC;QAC5D,mBAAmB,EAAE,2CAA2C;KACjE;IACD,SAAS,EAAE,CAAC,SAAiB,EAAE,EAAE,CAAC,OAAO,SAAS,KAAK,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,OAAO,CAAC,kJAAkJ,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS;IACvP,gBAAgB,EAAE,IAAI;IACtB,mBAAmB,EAAE;QACnB,WAAW,EAAE,KAAK;QAClB,kBAAkB,EAAE,KAAK;QACzB,uBAAuB,EAAE,IAAI;QAC7B,WAAW,EAAE;YACX,gBAAgB,EAAE,kBAAkB;SACrC;KACF;IACD,eAAe,EAAE,EAAE;IACnB,SAAS,EAAE,EAAE;IACb,8BAA8B,EAAE,KAAK;IACrC,sBAAsB,EAAE;QACtB,yBAAyB,EAAE,CAAC;QAC5B,gCAAgC,EAAE,GAAG;KACtC;IACD,cAAc,EAAE;QACd,iBAAiB,EAAE,KAAK;KACzB;IACD,+BAA+B,EAAE,IAAI;CACxB,CAAC"}
1
+ {"version":3,"file":"salesforce-global-grid-options.js","sourceRoot":"","sources":["../../src/salesforce-global-grid-options.ts"],"names":[],"mappings":";;;AACA,sEAAsE;AAEtE,kDAAkD;AACrC,QAAA,2BAA2B,GAAG;IACzC,QAAQ,EAAE,IAAI;IACd,cAAc,EAAE,IAAI;IACpB,oBAAoB,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE;IACjC,8BAA8B,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE;IAC3C,oCAAoC,EAAE,IAAI;IAC1C,yBAAyB,EAAE,IAAI;IAC/B,WAAW,EAAE;QACX,eAAe,EAAE,KAAK;KACvB;IACD,gBAAgB,EAAE,gCAAgB,CAAC,wBAAwB;IAC3D,sBAAsB,EAAE;QACtB,yBAAyB,EAAE,+CAA+C;QAC1E,2BAA2B,EAAE,0DAA0D;QACvF,8BAA8B,EAAE,IAAI;KACrC;IACD,qBAAqB,EAA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,EAAE;IACb,8BAA8B,EAAE,KAAK;IACrC,sBAAsB,EAAE;QACtB,yBAAyB,EAAE,CAAC;QAC5B,gCAAgC,EAAE,GAAG;KACtC;IACD,cAAc,EAAE;QACd,iBAAiB,EAAE,KAAK;KACzB;IACD,+BAA+B,EAAE,IAAI;CACxB,CAAC"}
@@ -1,104 +1,104 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.VanillaForceGridBundle = void 0;
4
- const common_1 = require("@slickgrid-universal/common");
5
- const excel_export_1 = require("@slickgrid-universal/excel-export");
6
- const composite_editor_component_1 = require("@slickgrid-universal/composite-editor-component");
7
- const empty_warning_component_1 = require("@slickgrid-universal/empty-warning-component");
8
- const custom_tooltip_plugin_1 = require("@slickgrid-universal/custom-tooltip-plugin");
9
- const text_export_1 = require("@slickgrid-universal/text-export");
10
- const vanilla_bundle_1 = require("@slickgrid-universal/vanilla-bundle");
11
- const salesforce_global_grid_options_1 = require("./salesforce-global-grid-options");
12
- class VanillaForceGridBundle extends vanilla_bundle_1.SlickVanillaGridBundle {
13
- /**
14
- * Salesforce Slicker Grid Bundle constructor
15
- * @param {Object} gridParentContainerElm - div HTML DOM element container
16
- * @param {Array<Column>} columnDefs - Column Definitions
17
- * @param {Object} options - Grid Options
18
- * @param {Array<Object>} dataset - Dataset
19
- * @param {Array<Object>} hierarchicalDataset - Hierarchical Dataset
20
- * @param {Object} services - Typically only used for Unit Testing when we want to pass Mocked/Stub Services
21
- */
22
- constructor(gridParentContainerElm, columnDefs, options, dataset, hierarchicalDataset, services) {
23
- super(gridParentContainerElm, columnDefs, options, dataset, hierarchicalDataset, services);
24
- }
25
- mergeGridOptions(gridOptions) {
26
- var _a;
27
- const extraOptions = (gridOptions.useSalesforceDefaultGridOptions || ((_a = this._gridOptions) === null || _a === void 0 ? void 0 : _a.useSalesforceDefaultGridOptions)) ? salesforce_global_grid_options_1.SalesforceGlobalGridOptions : {};
28
- const options = $.extend(true, {}, common_1.GlobalGridOptions, extraOptions, gridOptions);
29
- // also make sure to show the header row if user have enabled filtering
30
- if (options.enableFiltering && !options.showHeaderRow) {
31
- options.showHeaderRow = options.enableFiltering;
32
- }
33
- // using jQuery extend to do a deep clone has an unwanted side on objects and pageSizes but ES6 spread has other worst side effects
34
- // so we will just overwrite the pageSizes when needed, this is the only one causing issues so far.
35
- // jQuery wrote this on their docs:: On a deep extend, Object and Array are extended, but object wrappers on primitive types such as String, Boolean, and Number are not.
36
- if ((options === null || options === void 0 ? void 0 : options.pagination) && (gridOptions.enablePagination || gridOptions.backendServiceApi) && gridOptions.pagination && Array.isArray(gridOptions.pagination.pageSizes)) {
37
- options.pagination.pageSizes = gridOptions.pagination.pageSizes;
38
- }
39
- // when we use Pagination on Local Grid, it doesn't seem to work without enableFiltering
40
- // so we'll enable the filtering but we'll keep the header row hidden
41
- if (!options.enableFiltering && options.enablePagination && this._isLocalGrid) {
42
- options.enableFiltering = true;
43
- options.showHeaderRow = false;
44
- this._hideHeaderRowAfterPageLoad = true;
45
- if (this.sharedService) {
46
- this.sharedService.hideHeaderRowAfterPageLoad = true;
47
- }
48
- }
49
- return options;
50
- }
51
- // --
52
- // protected functions
53
- // ------------------
54
- registerResources() {
55
- // when using Salesforce, we want the Export to CSV always enabled without registering it
56
- if (this.gridOptions.enableTextExport) {
57
- this._registeredResources.push(new text_export_1.TextExportService());
58
- }
59
- if (this.gridOptions.enableTextExport) {
60
- this._registeredResources.push(new excel_export_1.ExcelExportService());
61
- }
62
- this._registeredResources.push(new custom_tooltip_plugin_1.SlickCustomTooltip());
63
- // at this point, we consider all the registered services as external services, anything else registered afterward aren't external
64
- if (Array.isArray(this._registeredResources)) {
65
- this.sharedService.externalRegisteredResources = this._registeredResources;
66
- }
67
- // push all other Services that we want to be registered
68
- this._registeredResources.push(this.gridService, this.gridStateService);
69
- // when using Grouping/DraggableGrouping/Colspan register its Service
70
- if (this.gridOptions.createPreHeaderPanel && !this.gridOptions.enableDraggableGrouping) {
71
- this._registeredResources.push(this.groupingService);
72
- }
73
- // when using Tree Data View, register its Service
74
- if (this.gridOptions.enableTreeData) {
75
- this._registeredResources.push(this.treeDataService);
76
- }
77
- // when user enables translation, we need to translate Headers on first pass & subsequently in the bindDifferentHooks
78
- if (this.gridOptions.enableTranslate) {
79
- this.extensionService.translateColumnHeaders();
80
- }
81
- // also initialize (render) the empty warning component
82
- this.slickEmptyWarning = new empty_warning_component_1.SlickEmptyWarningComponent();
83
- this._registeredResources.push(this.slickEmptyWarning);
84
- // also initialize (render) the pagination component when using the salesforce default options
85
- // however before adding a new instance, just make sure there isn't one that might have been loaded by calling "registerExternalResources"
86
- if (this.gridOptions.enableCompositeEditor) {
87
- if (!this._registeredResources.some((resource => resource instanceof composite_editor_component_1.SlickCompositeEditorComponent))) {
88
- this.slickCompositeEditor = new composite_editor_component_1.SlickCompositeEditorComponent();
89
- this._registeredResources.push(this.slickCompositeEditor);
90
- }
91
- }
92
- // bind & initialize all Components/Services that were tagged as enabled
93
- // register all services by executing their init method and providing them with the Grid object
94
- if (Array.isArray(this._registeredResources)) {
95
- for (const resource of this._registeredResources) {
96
- if (this.slickGrid && typeof resource.init === 'function') {
97
- resource.init(this.slickGrid, this.universalContainerService);
98
- }
99
- }
100
- }
101
- }
102
- }
103
- exports.VanillaForceGridBundle = VanillaForceGridBundle;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.VanillaForceGridBundle = void 0;
4
+ const common_1 = require("@slickgrid-universal/common");
5
+ const excel_export_1 = require("@slickgrid-universal/excel-export");
6
+ const composite_editor_component_1 = require("@slickgrid-universal/composite-editor-component");
7
+ const empty_warning_component_1 = require("@slickgrid-universal/empty-warning-component");
8
+ const custom_tooltip_plugin_1 = require("@slickgrid-universal/custom-tooltip-plugin");
9
+ const text_export_1 = require("@slickgrid-universal/text-export");
10
+ const vanilla_bundle_1 = require("@slickgrid-universal/vanilla-bundle");
11
+ const salesforce_global_grid_options_1 = require("./salesforce-global-grid-options");
12
+ class VanillaForceGridBundle extends vanilla_bundle_1.SlickVanillaGridBundle {
13
+ /**
14
+ * Salesforce Slicker Grid Bundle constructor
15
+ * @param {Object} gridParentContainerElm - div HTML DOM element container
16
+ * @param {Array<Column>} columnDefs - Column Definitions
17
+ * @param {Object} options - Grid Options
18
+ * @param {Array<Object>} dataset - Dataset
19
+ * @param {Array<Object>} hierarchicalDataset - Hierarchical Dataset
20
+ * @param {Object} services - Typically only used for Unit Testing when we want to pass Mocked/Stub Services
21
+ */
22
+ constructor(gridParentContainerElm, columnDefs, options, dataset, hierarchicalDataset, services) {
23
+ super(gridParentContainerElm, columnDefs, options, dataset, hierarchicalDataset, services);
24
+ }
25
+ mergeGridOptions(gridOptions) {
26
+ var _a;
27
+ const extraOptions = (gridOptions.useSalesforceDefaultGridOptions || ((_a = this._gridOptions) === null || _a === void 0 ? void 0 : _a.useSalesforceDefaultGridOptions)) ? salesforce_global_grid_options_1.SalesforceGlobalGridOptions : {};
28
+ const options = $.extend(true, {}, common_1.GlobalGridOptions, extraOptions, gridOptions);
29
+ // also make sure to show the header row if user have enabled filtering
30
+ if (options.enableFiltering && !options.showHeaderRow) {
31
+ options.showHeaderRow = options.enableFiltering;
32
+ }
33
+ // using jQuery extend to do a deep clone has an unwanted side on objects and pageSizes but ES6 spread has other worst side effects
34
+ // so we will just overwrite the pageSizes when needed, this is the only one causing issues so far.
35
+ // jQuery wrote this on their docs:: On a deep extend, Object and Array are extended, but object wrappers on primitive types such as String, Boolean, and Number are not.
36
+ if ((options === null || options === void 0 ? void 0 : options.pagination) && (gridOptions.enablePagination || gridOptions.backendServiceApi) && gridOptions.pagination && Array.isArray(gridOptions.pagination.pageSizes)) {
37
+ options.pagination.pageSizes = gridOptions.pagination.pageSizes;
38
+ }
39
+ // when we use Pagination on Local Grid, it doesn't seem to work without enableFiltering
40
+ // so we'll enable the filtering but we'll keep the header row hidden
41
+ if (!options.enableFiltering && options.enablePagination && this._isLocalGrid) {
42
+ options.enableFiltering = true;
43
+ options.showHeaderRow = false;
44
+ this._hideHeaderRowAfterPageLoad = true;
45
+ if (this.sharedService) {
46
+ this.sharedService.hideHeaderRowAfterPageLoad = true;
47
+ }
48
+ }
49
+ return options;
50
+ }
51
+ // --
52
+ // protected functions
53
+ // ------------------
54
+ registerResources() {
55
+ // when using Salesforce, we want the Export to CSV always enabled without registering it
56
+ if (this.gridOptions.enableTextExport) {
57
+ this._registeredResources.push(new text_export_1.TextExportService());
58
+ }
59
+ if (this.gridOptions.enableTextExport) {
60
+ this._registeredResources.push(new excel_export_1.ExcelExportService());
61
+ }
62
+ this._registeredResources.push(new custom_tooltip_plugin_1.SlickCustomTooltip());
63
+ // at this point, we consider all the registered services as external services, anything else registered afterward aren't external
64
+ if (Array.isArray(this._registeredResources)) {
65
+ this.sharedService.externalRegisteredResources = this._registeredResources;
66
+ }
67
+ // push all other Services that we want to be registered
68
+ this._registeredResources.push(this.gridService, this.gridStateService);
69
+ // when using Grouping/DraggableGrouping/Colspan register its Service
70
+ if (this.gridOptions.createPreHeaderPanel && !this.gridOptions.enableDraggableGrouping) {
71
+ this._registeredResources.push(this.groupingService);
72
+ }
73
+ // when using Tree Data View, register its Service
74
+ if (this.gridOptions.enableTreeData) {
75
+ this._registeredResources.push(this.treeDataService);
76
+ }
77
+ // when user enables translation, we need to translate Headers on first pass & subsequently in the bindDifferentHooks
78
+ if (this.gridOptions.enableTranslate) {
79
+ this.extensionService.translateColumnHeaders();
80
+ }
81
+ // also initialize (render) the empty warning component
82
+ this.slickEmptyWarning = new empty_warning_component_1.SlickEmptyWarningComponent();
83
+ this._registeredResources.push(this.slickEmptyWarning);
84
+ // also initialize (render) the pagination component when using the salesforce default options
85
+ // however before adding a new instance, just make sure there isn't one that might have been loaded by calling "registerExternalResources"
86
+ if (this.gridOptions.enableCompositeEditor) {
87
+ if (!this._registeredResources.some((resource => resource instanceof composite_editor_component_1.SlickCompositeEditorComponent))) {
88
+ this.slickCompositeEditor = new composite_editor_component_1.SlickCompositeEditorComponent();
89
+ this._registeredResources.push(this.slickCompositeEditor);
90
+ }
91
+ }
92
+ // bind & initialize all Components/Services that were tagged as enabled
93
+ // register all services by executing their init method and providing them with the Grid object
94
+ if (Array.isArray(this._registeredResources)) {
95
+ for (const resource of this._registeredResources) {
96
+ if (this.slickGrid && typeof resource.init === 'function') {
97
+ resource.init(this.slickGrid, this.universalContainerService);
98
+ }
99
+ }
100
+ }
101
+ }
102
+ }
103
+ exports.VanillaForceGridBundle = VanillaForceGridBundle;
104
104
  //# sourceMappingURL=vanilla-force-bundle.js.map
package/dist/esm/index.js CHANGED
@@ -1,28 +1,28 @@
1
- import { Aggregators, Editors, Enums, Filters, Formatters, GroupTotalFormatters, SortComparers, Utilities } from '@slickgrid-universal/common';
2
- import { BindingService } from '@slickgrid-universal/binding';
3
- import { EventPubSubService } from '@slickgrid-universal/event-pub-sub';
4
- import { SlickCompositeEditorComponent } from '@slickgrid-universal/composite-editor-component';
5
- import { SlickEmptyWarningComponent } from '@slickgrid-universal/empty-warning-component';
6
- import { SlickPaginationComponent } from '@slickgrid-universal/pagination-component';
7
- import { VanillaForceGridBundle } from './vanilla-force-bundle';
8
- const Slicker = {
9
- GridBundle: VanillaForceGridBundle,
10
- Aggregators,
11
- BindingService,
12
- Editors,
13
- Enums,
14
- Filters,
15
- Formatters,
16
- GroupTotalFormatters,
17
- SortComparers,
18
- Utilities,
19
- };
20
- // expose the bundle on the global "window" object as Slicker
21
- if (typeof window !== 'undefined') {
22
- window.Slicker = Slicker;
23
- }
24
- export { BindingService };
25
- export { Aggregators, Editors, Enums, EventPubSubService, Filters, Formatters, GroupTotalFormatters, SortComparers, Utilities };
26
- export { SlickCompositeEditorComponent, SlickEmptyWarningComponent, SlickPaginationComponent, VanillaForceGridBundle }; // export the custom components & interfaces
27
- export { Slicker };
1
+ import { Aggregators, Editors, Enums, Filters, Formatters, GroupTotalFormatters, SortComparers, Utilities } from '@slickgrid-universal/common';
2
+ import { BindingService } from '@slickgrid-universal/binding';
3
+ import { EventPubSubService } from '@slickgrid-universal/event-pub-sub';
4
+ import { SlickCompositeEditorComponent } from '@slickgrid-universal/composite-editor-component';
5
+ import { SlickEmptyWarningComponent } from '@slickgrid-universal/empty-warning-component';
6
+ import { SlickPaginationComponent } from '@slickgrid-universal/pagination-component';
7
+ import { VanillaForceGridBundle } from './vanilla-force-bundle';
8
+ const Slicker = {
9
+ GridBundle: VanillaForceGridBundle,
10
+ Aggregators,
11
+ BindingService,
12
+ Editors,
13
+ Enums,
14
+ Filters,
15
+ Formatters,
16
+ GroupTotalFormatters,
17
+ SortComparers,
18
+ Utilities,
19
+ };
20
+ // expose the bundle on the global "window" object as Slicker
21
+ if (typeof window !== 'undefined') {
22
+ window.Slicker = Slicker;
23
+ }
24
+ export { BindingService };
25
+ export { Aggregators, Editors, Enums, EventPubSubService, Filters, Formatters, GroupTotalFormatters, SortComparers, Utilities };
26
+ export { SlickCompositeEditorComponent, SlickEmptyWarningComponent, SlickPaginationComponent, VanillaForceGridBundle }; // export the custom components & interfaces
27
+ export { Slicker };
28
28
  //# sourceMappingURL=index.js.map