@blueprintui/grid 2.2.0 → 2.2.1
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/CHANGELOG.md +8 -0
- package/dist/grid/element.js +1 -1
- package/package.json +12 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
# [@blueprintui/grid-v2.2.1](https://github.com/blueprintui/blueprintui/compare/@blueprintui/grid-v2.2.0...@blueprintui/grid-v2.2.1) (2025-03-27)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **components:** button submit ([64ea371](https://github.com/blueprintui/blueprintui/commit/64ea371e2e2610d2f5a91ce765757eb991b67952))
|
|
7
|
+
* **grid:** improve global light dom styles ([d28f910](https://github.com/blueprintui/blueprintui/commit/d28f910535ecf14cc9c15c688c4adcab7b109ac5))
|
|
8
|
+
|
|
1
9
|
# [@blueprintui/grid-v2.2.0](https://github.com/blueprintui/blueprintui/compare/@blueprintui/grid-v2.1.7...@blueprintui/grid-v2.2.0) (2025-01-11)
|
|
2
10
|
|
|
3
11
|
|
package/dist/grid/element.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__decorate as t}from"tslib";import{LitElement as o,html as e}from"lit";import{property as r}from"lit/decorators/property.js";import{baseStyles as i,I18nService as l,createId as n,attachRootNodeStyles as s,dynamicControllers as a,i18n as h,typeMultiSelectable as c}from"@blueprintui/components/internals";import{interactionScrollVisibility as p}from"@blueprintui/grid/internals";import{GridLayoutController as d}from"./layout.controller.js";import{GridDOMController as u}from"./dom.controller.js";import m from"./element.global.css.js";import C from"./element.css.js";let y=class extends o{static{this.styles=[i,C]}get gridLayoutControllerConfig(){return{columns:this.#t.columns,columnLayout:this.columnLayout,height:this.height}}#t;get grid(){return this.#t.grid}get columns(){return this.#t.columns}get cells(){return this.#t.cells}get rows(){return this.#t.rows}get keyNavGrid(){return this.shadowRoot.querySelector(".scroll-container")}render(){return e`<div role="presentation" part="internal"><div role="presentation" class="scroll-container"><slot role="presentation" name="header"></slot><slot role="presentation" class="body-row-group"></slot></div><slot name="footer"></slot><slot name="detail"></slot></div>`}constructor(){super(),this.i18n=l.keys.actions,this.columnLayout="fixed",this.scrollLock=!1,this.layer="container",this.rangeSelection=!1,this._id=n(),this.gridLayoutController=new d(this),this._internals=this.attachInternals(),this.#t=new u(this),this._internals.role="grid",this._internals.states.add("bp-layer"),this.#o()}async connectedCallback(){super.connectedCallback(),s(this
|
|
1
|
+
import{__decorate as t}from"tslib";import{LitElement as o,html as e}from"lit";import{property as r}from"lit/decorators/property.js";import{baseStyles as i,I18nService as l,createId as n,attachRootNodeStyles as s,dynamicControllers as a,i18n as h,typeMultiSelectable as c}from"@blueprintui/components/internals";import{interactionScrollVisibility as p}from"@blueprintui/grid/internals";import{GridLayoutController as d}from"./layout.controller.js";import{GridDOMController as u}from"./dom.controller.js";import m from"./element.global.css.js";import C from"./element.css.js";let y=class extends o{static{this.styles=[i,C]}get gridLayoutControllerConfig(){return{columns:this.#t.columns,columnLayout:this.columnLayout,height:this.height}}#t;get grid(){return this.#t.grid}get columns(){return this.#t.columns}get cells(){return this.#t.cells}get rows(){return this.#t.rows}get keyNavGrid(){return this.shadowRoot.querySelector(".scroll-container")}render(){return e`<div role="presentation" part="internal"><div role="presentation" class="scroll-container"><slot role="presentation" name="header"></slot><slot role="presentation" class="body-row-group"></slot></div><slot name="footer"></slot><slot name="detail"></slot></div>`}constructor(){super(),this.i18n=l.keys.actions,this.columnLayout="fixed",this.scrollLock=!1,this.layer="container",this.rangeSelection=!1,this._id=n(),this.gridLayoutController=new d(this),this._internals=this.attachInternals(),this.#t=new u(this),this._internals.role="grid",this._internals.states.add("bp-layer"),this.#o()}async connectedCallback(){super.connectedCallback(),s(this,[m]),await this.updateComplete,this.shadowRoot.addEventListener("bp-slotchange",(()=>this.#e())),this.#e()}#o(){this.addEventListener("sort",(t=>{const o=t.composedPath().find((t=>"BP-GRID-COLUMN"===t.tagName));o&&(o.ariaSort=t.detail)}))}async#e(){this.#t.isStatic||(this.#r(),this.#i(),this.#l(),this.#n(),this.#s(),this.#a())}#r(){const t=Math.max(this.#t.rows?.length,1),o=this.#t.footer?1:0;this._internals.ariaRowCount=""+(1+t+o),this._internals.ariaColCount=""+this.#t.columns.length}#i(){this.#t.columns.forEach(((t,o)=>t.ariaColIndex=""+(o+1)))}#l(){this.#t.rows?.forEach(((t,o)=>t.ariaRowIndex=""+(o+2)))}#n(){this.#t.cells?.forEach(((t,o)=>t.ariaColIndex=""+(o%this.#t.columns.length+1)))}#s(){this.#t.placeholder&&(this.#t.placeholder.ariaRowCount=""+(this.#t.rows.length+1),this.#t.placeholder._colSpan=this._internals.ariaColCount)}#a(){this.#t.footer&&(this.#t.footer.ariaRowCount=""+(this.#t.rows.length+2),this.#t.footer._colSpan=this._internals.ariaColCount)}};t([r({type:Object})],y.prototype,"i18n",void 0),t([r({type:String,reflect:!0})],y.prototype,"height",void 0),t([r({type:String,reflect:!0,attribute:"column-layout"})],y.prototype,"columnLayout",void 0),t([r({type:String,reflect:!0,attribute:"row-style"})],y.prototype,"rowStyle",void 0),t([r({type:String,reflect:!0,attribute:"column-style"})],y.prototype,"columnStyle",void 0),t([r({type:String,reflect:!0})],y.prototype,"selectable",void 0),t([r({type:Boolean,reflect:!0,attribute:"scroll-lock"})],y.prototype,"scrollLock",void 0),t([r({type:String,reflect:!0})],y.prototype,"layer",void 0),t([r({type:Boolean,reflect:!0,attribute:"range-selection"})],y.prototype,"rangeSelection",void 0),t([r({type:String,reflect:!0})],y.prototype,"_id",void 0),y=t([a(),h({key:"actions"}),c(),p()],y);export{y as BpGrid};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blueprintui/grid",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"package.json",
|
|
@@ -62,11 +62,11 @@
|
|
|
62
62
|
"dependencies": {
|
|
63
63
|
"lit": "^3.2.1",
|
|
64
64
|
"tslib": "^2.8.1",
|
|
65
|
-
"@blueprintui/components": "^2.3.
|
|
65
|
+
"@blueprintui/components": "^2.3.1",
|
|
66
|
+
"@blueprintui/crane": "^2.1.8",
|
|
67
|
+
"@blueprintui/themes": "^2.1.11",
|
|
66
68
|
"@blueprintui/icons": "^2.1.6",
|
|
67
|
-
"@blueprintui/typewriter": "^2.1.11"
|
|
68
|
-
"@blueprintui/themes": "^2.1.10",
|
|
69
|
-
"@blueprintui/crane": "^2.1.8"
|
|
69
|
+
"@blueprintui/typewriter": "^2.1.11"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
72
|
"@web/dev-server": "0.4.6",
|
|
@@ -78,11 +78,13 @@
|
|
|
78
78
|
"@web/test-runner-visual-regression": "0.10.0",
|
|
79
79
|
"del-cli": "6.0.0",
|
|
80
80
|
"modern-normalize": "^3.0.1",
|
|
81
|
-
"playwright": "1.
|
|
81
|
+
"playwright": "1.49.1",
|
|
82
82
|
"publint": "0.2.10",
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
"@blueprintui/
|
|
83
|
+
"web-test-runner-jasmine": "0.0.7",
|
|
84
|
+
"web-test-runner-performance": "0.1.6",
|
|
85
|
+
"@blueprintui/layout": "^2.1.7",
|
|
86
|
+
"@blueprintui/test": "^0.0.0",
|
|
87
|
+
"@blueprintui/typography": "^2.2.0"
|
|
86
88
|
},
|
|
87
89
|
"wireit": {
|
|
88
90
|
"ci": {
|
|
@@ -307,7 +309,7 @@
|
|
|
307
309
|
"drafter": "wireit",
|
|
308
310
|
"drafter:watch": "wireit",
|
|
309
311
|
"test": "wireit",
|
|
310
|
-
"test:watch": "
|
|
312
|
+
"test:watch": "wireit",
|
|
311
313
|
"test:unit": "wireit",
|
|
312
314
|
"test:coverage": "wireit",
|
|
313
315
|
"test:a11y": "wireit",
|