Skip to content

Commit

Permalink
chore(release): publish version 5.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ghiscoding committed Dec 9, 2023
1 parent ba5cea9 commit d2205e9
Show file tree
Hide file tree
Showing 23 changed files with 99 additions and 50 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [5.6.1](https://github.com/6pac/SlickGrid/compare/5.6.0...5.6.1) (2023-12-09)

### Bug Fixes

* Row Detail no longer displayed after CSP safe code implemented ([#947](https://github.com/6pac/SlickGrid/issues/947)) ([ba5cea9](https://github.com/6pac/SlickGrid/commit/ba5cea94c983afed2c4cf21c380445da67590ebc))
* the `devMode` should be `false` or an object with other options ([e7ccc1d](https://github.com/6pac/SlickGrid/commit/e7ccc1d60295c417a0ac26b6dcee48b10dc5722e))
* the `devMode` should be `false` or an object with other options ([bbddea7](https://github.com/6pac/SlickGrid/commit/bbddea7aa16982f55406dc7250dd7860d49b2973))
* the `devMode` should be `false` or an object with other options ([8478ff1](https://github.com/6pac/SlickGrid/commit/8478ff13cfb59cb15b500db59cdc065a73aff10f))

# [5.6.0](https://github.com/6pac/SlickGrid/compare/5.5.6...5.6.0) (2023-12-08)

### Bug Fixes
Expand Down
14 changes: 11 additions & 3 deletions dist/browser/plugins/slick.rowdetailview.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/browser/plugins/slick.rowdetailview.js.map

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions dist/browser/slick.core.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/browser/slick.core.js.map

Large diffs are not rendered by default.

11 changes: 5 additions & 6 deletions dist/browser/slick.grid.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/browser/slick.grid.js.map

Large diffs are not rendered by default.

27 changes: 19 additions & 8 deletions dist/cjs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -592,6 +592,9 @@ var BindingEventService = class {
static getElementProp(elm, property) {
return elm?.getComputedStyle ? window.getComputedStyle(elm, null).getPropertyValue(property) : null;
}
static insertAfterElement(referenceNode, newNode) {
referenceNode.parentNode?.insertBefore(newNode, referenceNode.nextSibling);
}
static isEmptyObject(obj) {
return obj == null ? !0 : Object.entries(obj).length === 0;
}
Expand Down Expand Up @@ -4308,12 +4311,20 @@ var SlickEvent16 = SlickEvent, SlickEventHandler8 = SlickEventHandler, Utils22 =
if (dataContext[`${this._keyPrefix}collapsed`] === void 0 && (dataContext[`${this._keyPrefix}collapsed`] = !0, dataContext[`${this._keyPrefix}sizePadding`] = 0, dataContext[`${this._keyPrefix}height`] = 0, dataContext[`${this._keyPrefix}isPadding`] = !1, dataContext[`${this._keyPrefix}parent`] = void 0, dataContext[`${this._keyPrefix}offset`] = 0), !dataContext[`${this._keyPrefix}isPadding`])
if (dataContext[`${this._keyPrefix}collapsed`]) {
let collapsedClasses = this._options.cssClass + " expand ";
return this._options.collapsedClass && (collapsedClasses += this._options.collapsedClass), '<div class="' + collapsedClasses + '"></div>';
return this._options.collapsedClass && (collapsedClasses += this._options.collapsedClass), Utils22.createDomElement("div", { className: collapsedClasses });
} else {
let html = [], rowHeight = this._gridOptions.rowHeight, outterHeight = dataContext[`${this._keyPrefix}sizePadding`] * this._gridOptions.rowHeight;
let rowHeight = this._gridOptions.rowHeight, outterHeight = dataContext[`${this._keyPrefix}sizePadding`] * this._gridOptions.rowHeight;
this._options.maxRows !== void 0 && dataContext[`${this._keyPrefix}sizePadding`] > this._options.maxRows && (outterHeight = this._options.maxRows * rowHeight, dataContext[`${this._keyPrefix}sizePadding`] = this._options.maxRows);
let expandedClasses = this._options.cssClass + " collapse ";
return this._options.expandedClass && (expandedClasses += this._options.expandedClass), html.push('<div class="' + expandedClasses + '"></div></div>'), html.push(`<div class="dynamic-cell-detail cellDetailView_${dataContext[this._dataViewIdProperty]}" `), html.push(`style="height: ${outterHeight}px;`), html.push(`top: ${rowHeight}px">`), html.push(`<div class="detail-container detailViewContainer_${dataContext[this._dataViewIdProperty]}">`), html.push(`<div class="innerDetailView_${dataContext[this._dataViewIdProperty]}">${dataContext[`${this._keyPrefix}detailContent`]}</div></div>`), html.join("");
this._options.expandedClass && (expandedClasses += this._options.expandedClass);
let cellDetailContainerElm = Utils22.createDomElement("div", {
className: `dynamic-cell-detail cellDetailView_${dataContext[this._dataViewIdProperty]}`,
style: { height: `${outterHeight}px`, top: `${rowHeight}px` }
}), innerContainerElm = Utils22.createDomElement("div", { className: `detail-container detailViewContainer_${dataContext[this._dataViewIdProperty]}` }), innerDetailViewElm = Utils22.createDomElement("div", { className: `innerDetailView_${dataContext[this._dataViewIdProperty]}` });
return innerDetailViewElm.innerHTML = this._grid.sanitizeHtmlString(dataContext[`${this._keyPrefix}detailContent`]), innerContainerElm.appendChild(innerDetailViewElm), cellDetailContainerElm.appendChild(innerContainerElm), {
html: Utils22.createDomElement("div", { className: expandedClasses }),
insertElementAfterTarget: cellDetailContainerElm
};
}
} else
return "";
Expand Down Expand Up @@ -6520,7 +6531,7 @@ var SlickGrid = class {
this.externalPubSub = externalPubSub;
//////////////////////////////////////////////////////////////////////////////////////////////
// Public API
__publicField(this, "slickGridVersion", "5.6.0");
__publicField(this, "slickGridVersion", "5.6.1");
/** optional grid state clientId */
__publicField(this, "cid", "");
// Events
Expand Down Expand Up @@ -7564,7 +7575,7 @@ var SlickGrid = class {
let i;
if (!this.stylesheet) {
let sheets = (this._options.shadowRoot || document).styleSheets;
for (typeof this.options.devMode?.ownerNodeIndex == "number" && this.options.devMode.ownerNodeIndex >= 0 && (sheets[this.options.devMode.ownerNodeIndex].ownerNode = this._style), i = 0; i < sheets.length; i++)
for (this.options.devMode && typeof this.options.devMode?.ownerNodeIndex == "number" && this.options.devMode.ownerNodeIndex >= 0 && (sheets[this.options.devMode.ownerNodeIndex].ownerNode = this._style), i = 0; i < sheets.length; i++)
if ((sheets[i].ownerNode || sheets[i].owningElement) === this._style) {
this.stylesheet = sheets[i];
break;
Expand Down Expand Up @@ -8195,7 +8206,7 @@ var SlickGrid = class {
let cellResult = Object.prototype.toString.call(formatterResult) !== "[object Object]" ? formatterResult : formatterResult.html || formatterResult.text;
this.applyHtmlCode(cellDiv, cellResult);
}
divRow.appendChild(cellDiv), this.rowsCache[row].cellRenderQueue.push(cell), this.rowsCache[row].cellColSpans[cell] = colspan;
divRow.appendChild(cellDiv), formatterResult.insertElementAfterTarget && Utils30.insertAfterElement(cellDiv, formatterResult.insertElementAfterTarget), this.rowsCache[row].cellRenderQueue.push(cell), this.rowsCache[row].cellColSpans[cell] = colspan;
}
cleanupRows(rangeToKeep) {
for (let rowId in this.rowsCache)
Expand Down Expand Up @@ -8330,7 +8341,7 @@ var SlickGrid = class {
return this.numVisibleRows = Math.ceil(this.viewportH / this._options.rowHeight), this.viewportH;
}
getViewportWidth() {
return this.viewportW = parseFloat(Utils30.innerSize(this._container, "width")) || this.options.devMode?.containerClientWidth || 0, this.viewportW;
return this.viewportW = parseFloat(Utils30.innerSize(this._container, "width")) || this.options.devMode && this.options.devMode.containerClientWidth || 0, this.viewportW;
}
/** Execute a Resize of the Grid Canvas */
resizeCanvas() {
Expand Down Expand Up @@ -9708,7 +9719,7 @@ var SlickRemoteModel = class {
* Distributed under MIT license.
* All rights reserved.
*
* SlickGrid v5.6.0
* SlickGrid v5.6.1
*
* NOTES:
* Cell/row DOM manipulations are done directly bypassing JS DOM manipulation methods.
Expand Down
4 changes: 2 additions & 2 deletions dist/cjs/index.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit d2205e9

Please sign in to comment.