@blueprintui/grid 2.3.0 → 2.4.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.
- package/CHANGELOG.md +7 -0
- package/dist/column/element.js +1 -1
- package/dist/custom-elements.json +32 -8
- package/dist/detail/element.js +1 -1
- package/dist/footer/element.js +1 -1
- package/dist/grid/element.js +1 -1
- package/dist/placeholder/element.js +1 -1
- package/dist/row/element.js +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [@blueprintui/grid-v2.4.0](https://github.com/blueprintui/blueprintui/compare/@blueprintui/grid-v2.3.0...@blueprintui/grid-v2.4.0) (2025-06-08)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **components:** add page and panel components ([0ad25b3](https://github.com/blueprintui/blueprintui/commit/0ad25b36232ea1d2cac064eaab11561c8543e2fb))
|
|
7
|
+
|
|
1
8
|
# [@blueprintui/grid-v2.3.0](https://github.com/blueprintui/blueprintui/compare/@blueprintui/grid-v2.2.1...@blueprintui/grid-v2.3.0) (2025-05-20)
|
|
2
9
|
|
|
3
10
|
|
package/dist/column/element.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__decorate as t}from"tslib";import{LitElement as r,html as
|
|
1
|
+
import{__decorate as t}from"tslib";import{LitElement as r,html as s}from"lit";import{baseStyles as e,dynamicControllers as i}from"@blueprintui/components/internals";import n from"../internals/styles/focus.css.js";import{GridColumnWidthController as o}from"./width.controller.js";import l from"./element.css.js";let a=class extends r{static{this.properties={width:{type:String},position:{type:String,reflect:!0},alignment:{type:String,reflect:!0}}}static{this.styles=[e,l,n]}render(){return s`<div role="group" part="internal" focusable><slot> </slot><slot name="resize"><div class="border"></div></slot><div class="line"></div></div>`}constructor(){super(),this._internals=this.attachInternals(),new o(this),this._internals.role="columnheader",this._internals.ariaSort="none"}};a=t([i()],a);export{a as BpGridColumn};
|
|
@@ -77,7 +77,10 @@
|
|
|
77
77
|
"package": "lit"
|
|
78
78
|
},
|
|
79
79
|
"tagName": "bp-grid-cell",
|
|
80
|
-
"customElement": true
|
|
80
|
+
"customElement": true,
|
|
81
|
+
"metadata": {
|
|
82
|
+
"since": "1.0.0"
|
|
83
|
+
}
|
|
81
84
|
}
|
|
82
85
|
],
|
|
83
86
|
"exports": [
|
|
@@ -450,7 +453,10 @@
|
|
|
450
453
|
"package": "lit"
|
|
451
454
|
},
|
|
452
455
|
"tagName": "bp-grid-column",
|
|
453
|
-
"customElement": true
|
|
456
|
+
"customElement": true,
|
|
457
|
+
"metadata": {
|
|
458
|
+
"since": "1.0.0"
|
|
459
|
+
}
|
|
454
460
|
}
|
|
455
461
|
],
|
|
456
462
|
"exports": [
|
|
@@ -847,7 +853,10 @@
|
|
|
847
853
|
"package": "lit"
|
|
848
854
|
},
|
|
849
855
|
"tagName": "bp-grid-detail",
|
|
850
|
-
"customElement": true
|
|
856
|
+
"customElement": true,
|
|
857
|
+
"metadata": {
|
|
858
|
+
"since": "1.0.0"
|
|
859
|
+
}
|
|
851
860
|
}
|
|
852
861
|
],
|
|
853
862
|
"exports": [
|
|
@@ -1037,7 +1046,10 @@
|
|
|
1037
1046
|
"package": "lit"
|
|
1038
1047
|
},
|
|
1039
1048
|
"tagName": "bp-grid-footer",
|
|
1040
|
-
"customElement": true
|
|
1049
|
+
"customElement": true,
|
|
1050
|
+
"metadata": {
|
|
1051
|
+
"since": "1.0.0"
|
|
1052
|
+
}
|
|
1041
1053
|
}
|
|
1042
1054
|
],
|
|
1043
1055
|
"exports": [
|
|
@@ -1543,7 +1555,10 @@
|
|
|
1543
1555
|
"package": "lit"
|
|
1544
1556
|
},
|
|
1545
1557
|
"tagName": "bp-grid",
|
|
1546
|
-
"customElement": true
|
|
1558
|
+
"customElement": true,
|
|
1559
|
+
"metadata": {
|
|
1560
|
+
"since": "1.0.0"
|
|
1561
|
+
}
|
|
1547
1562
|
}
|
|
1548
1563
|
],
|
|
1549
1564
|
"exports": [
|
|
@@ -1795,7 +1810,10 @@
|
|
|
1795
1810
|
"package": "lit"
|
|
1796
1811
|
},
|
|
1797
1812
|
"tagName": "bp-grid-header",
|
|
1798
|
-
"customElement": true
|
|
1813
|
+
"customElement": true,
|
|
1814
|
+
"metadata": {
|
|
1815
|
+
"since": "1.0.0"
|
|
1816
|
+
}
|
|
1799
1817
|
}
|
|
1800
1818
|
],
|
|
1801
1819
|
"exports": [
|
|
@@ -2439,7 +2457,10 @@
|
|
|
2439
2457
|
"package": "lit"
|
|
2440
2458
|
},
|
|
2441
2459
|
"tagName": "bp-grid-placeholder",
|
|
2442
|
-
"customElement": true
|
|
2460
|
+
"customElement": true,
|
|
2461
|
+
"metadata": {
|
|
2462
|
+
"since": "1.0.0"
|
|
2463
|
+
}
|
|
2443
2464
|
}
|
|
2444
2465
|
],
|
|
2445
2466
|
"exports": [
|
|
@@ -2591,7 +2612,10 @@
|
|
|
2591
2612
|
"package": "lit"
|
|
2592
2613
|
},
|
|
2593
2614
|
"tagName": "bp-grid-row",
|
|
2594
|
-
"customElement": true
|
|
2615
|
+
"customElement": true,
|
|
2616
|
+
"metadata": {
|
|
2617
|
+
"since": "1.0.0"
|
|
2618
|
+
}
|
|
2595
2619
|
}
|
|
2596
2620
|
],
|
|
2597
2621
|
"exports": [
|
package/dist/detail/element.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__decorate as t}from"tslib";import{LitElement as e,html as i,nothing as r}from"lit";import{
|
|
1
|
+
import{__decorate as t}from"tslib";import{LitElement as e,html as i,nothing as r}from"lit";import{I18nService as s,baseStyles as n,typePopover as o,i18n as l,stateDirection as a,interactionResponsive as g}from"@blueprintui/components/internals";import h from"./element.css.js";let d=class extends e{static{this.properties={i18n:{type:Object},position:{type:String,reflect:!0},trigger:{type:String},closable:{type:Boolean}}}constructor(){super(...arguments),this.i18n=s.keys.actions,this.position="inline-end"}get#t(){return this.parentElement}#e;get#i(){return"string"==typeof this.trigger?this.getRootNode().querySelector("#"+this.trigger):this.trigger}get#r(){return this.#i?.closest("bp-grid-row")}get#s(){return parseInt(getComputedStyle(this).getPropertyValue("--full-width-breakpoint"))}static{this.styles=[n,h]}render(){return i`<div part="internal" role="presentation">${this.closable?i`<bp-button-icon @click="${this.hidePopover}" aria-label="${this.i18n.close}" shape="close" action="flat" type="button"></bp-button-icon>`:r}<slot></slot></div>${this.trigger?i`<div part="pointer" role="presentation"></div>`:r}`}async connectedCallback(){super.connectedCallback(),this.slot="detail",this.#n()}firstUpdated(t){super.firstUpdated(t),this.#o(),this.addEventListener("toggle",(t=>{"open"===t.newState&&this.#o()}))}async updated(t){super.updated(t),await this.updateComplete,t.has("trigger")&&t.get("trigger")!==this.#i&&!this.hidden&&this.#l(t.get("trigger"))}disconnectedCallback(){super.disconnectedCallback(),this.#e.disconnect()}#l(t){t?.closest&&t?.closest("bp-grid-row")?.removeAttribute("_detail-row");const e=this.#i?.getBoundingClientRect()?.top-this.getBoundingClientRect().top;this.style.setProperty("--pointer-top",e-2+"px")}#n(){this.addEventListener("resize-layout",(t=>{t.detail.width<this.#s?this.setAttribute("full-width",""):t.detail.width>this.#s+parseInt(this.style.insetInlineStart)&&(this.removeAttribute("full-width"),this.#o())}))}async#o(){this.#t.scrollLock=!this.hidden,await this.updateComplete;const t=Array.from(this.#r?this.#r.querySelectorAll("bp-grid-cell"):[]).find((t=>"rowheader"===t.role));if(t){const e=this.#t?.getBoundingClientRect(),i=t.getBoundingClientRect();this.style.width="auto","inline-start"===this.position||"rtl"===this.#t?.getAttribute("dir")?this.style.insetInlineStart=Math.floor(e.right-i.left)+"px":this.style.insetInlineStart=Math.floor(i.right-e.left)+"px"}}};d=t([o((()=>({focusTrap:!0}))),l({key:"actions"}),a(),g()],d);export{d as BpGridDetail};
|
package/dist/footer/element.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{LitElement as t,html as e}from"lit";import{baseStyles as r}from"@blueprintui/components/internals";import s from"./element.css.js";class n extends t{constructor(){super(),this._colSpan=""}static{this.properties={_colSpan:{state:!0}}}static{this.styles=[r,s]}#t=this.attachInternals();render(){return e`<slot role="gridcell" part="internal" .ariaColSpan="${this._colSpan}"></slot>`}connectedCallback(){super.connectedCallback(),this.slot="footer",this.#t.role="row"}}export{n as BpGridFooter};
|
package/dist/grid/element.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__decorate as t}from"tslib";import{LitElement as
|
|
1
|
+
import{__decorate as t}from"tslib";import{LitElement as e,html as o}from"lit";import{baseStyles as r,I18nService as l,createId as i,attachRootNodeStyles as n,dynamicControllers as s,i18n as a,typeMultiSelectable as h}from"@blueprintui/components/internals";import{interactionScrollVisibility as c}from"@blueprintui/grid/internals";import{GridLayoutController as u}from"./layout.controller.js";import{GridDOMController as d}from"./dom.controller.js";import C from"./element.global.css.js";import m from"./element.css.js";let p=class extends e{static{this.properties={i18n:{type:Object},height:{type:String,reflect:!0},columnLayout:{type:String,reflect:!0,attribute:"column-layout"},rowStyle:{type:String,reflect:!0,attribute:"row-style"},columnStyle:{type:String,reflect:!0,attribute:"column-style"},selectable:{type:String,reflect:!0},scrollLock:{type:Boolean,reflect:!0,attribute:"scroll-lock"},layer:{type:String,reflect:!0},rangeSelection:{type:Boolean,reflect:!0,attribute:"range-selection"},_id:{type:String,reflect:!0}}}static{this.styles=[r,m]}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 o`<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.gridLayoutController=new u(this),this._internals=this.attachInternals(),this.#t=new d(this),this._internals.role="grid",this._internals.states.add("bp-layer"),this.#e(),this.i18n=l.keys.actions,this.columnLayout="fixed",this.scrollLock=!1,this.layer="container",this.rangeSelection=!1,this._id=i()}async connectedCallback(){super.connectedCallback(),n(this,[C]),await this.updateComplete,this.shadowRoot.addEventListener("bp-slotchange",(()=>this.#o())),this.#o()}#e(){this.addEventListener("sort",(t=>{const e=t.composedPath().find((t=>"BP-GRID-COLUMN"===t.tagName));e&&(e.ariaSort=t.detail)}))}async#o(){this.#t.isStatic||(this.#r(),this.#l(),this.#i(),this.#n(),this.#s(),this.#a())}#r(){const t=Math.max(this.#t.rows?.length,1),e=this.#t.footer?1:0;this._internals.ariaRowCount=""+(1+t+e),this._internals.ariaColCount=""+this.#t.columns.length}#l(){this.#t.columns.forEach(((t,e)=>t.ariaColIndex=""+(e+1)))}#i(){this.#t.rows?.forEach(((t,e)=>t.ariaRowIndex=""+(e+2)))}#n(){this.#t.cells?.forEach(((t,e)=>t.ariaColIndex=""+(e%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)}};p=t([s(),a({key:"actions"}),h(),c()],p);export{p as BpGrid};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__decorate as t}from"tslib";import{LitElement as
|
|
1
|
+
import{__decorate as t}from"tslib";import{LitElement as e,html as r}from"lit";import{I18nService as s,baseStyles as n,i18n as i}from"@blueprintui/components/internals";import o from"./element.css.js";let a=class extends e{static{this.properties={i18n:{type:Object},_colSpan:{state:!0},bpDraggableItem:{state:!0}}}constructor(){super(...arguments),this.i18n=s.keys.actions,this._colSpan="0"}static{this.styles=[n,o]}#t=this.attachInternals();render(){return r`<slot role="gridcell" part="internal" .ariaColSpan="${this._colSpan}">${"dropzone"===this.bpDraggableItem?r`<p sr-only>${this.i18n.dropTarget}</p>`:""}</slot>`}connectedCallback(){super.connectedCallback(),this.#t.role="row"}};a=t([i({key:"actions"})],a);export{a as BpGridPlaceholder};
|
package/dist/row/element.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__decorate as t}from"tslib";import{LitElement as
|
|
1
|
+
import{__decorate as t}from"tslib";import{LitElement as e,html as r}from"lit";import{baseStyles as s,dynamicControllers as i}from"@blueprintui/components/internals";import o from"./element.css.js";let n=class extends e{static{this.properties={selected:{type:Boolean,reflect:!0},position:{type:String,reflect:!0}}}static{this.styles=[s,o]}render(){return r`<slot></slot>`}constructor(){super(),this._internals=this.attachInternals(),this._internals.role="row"}};n=t([i()],n);export{n as BpGridRow};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blueprintui/grid",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"package.json",
|
|
@@ -62,11 +62,11 @@
|
|
|
62
62
|
"dependencies": {
|
|
63
63
|
"lit": "^3.3.0",
|
|
64
64
|
"tslib": "^2.8.1",
|
|
65
|
-
"@blueprintui/components": "^2.
|
|
66
|
-
"@blueprintui/icons": "^2.1.6",
|
|
65
|
+
"@blueprintui/components": "^2.6.0",
|
|
67
66
|
"@blueprintui/crane": "^2.1.8",
|
|
68
|
-
"@blueprintui/
|
|
69
|
-
"@blueprintui/typewriter": "^2.1.11"
|
|
67
|
+
"@blueprintui/icons": "^2.1.6",
|
|
68
|
+
"@blueprintui/typewriter": "^2.1.11",
|
|
69
|
+
"@blueprintui/themes": "^2.1.11"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
72
|
"@web/dev-server": "0.4.6",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"publint": "0.2.10",
|
|
83
83
|
"web-test-runner-jasmine": "0.1.2",
|
|
84
84
|
"web-test-runner-performance": "0.1.6",
|
|
85
|
-
"@blueprintui/layout": "^2.
|
|
85
|
+
"@blueprintui/layout": "^2.2.0",
|
|
86
86
|
"@blueprintui/test": "^0.0.0",
|
|
87
87
|
"@blueprintui/typography": "^2.2.0"
|
|
88
88
|
},
|