@blueprintui/grid 2.1.5 → 2.1.7
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 +13 -0
- package/dist/grid/dom.controller.js +1 -1
- package/dist/grid/element.css.js +1 -1
- package/dist/placeholder/element.css.js +1 -1
- package/package.json +60 -49
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# [@blueprintui/grid-v2.1.7](https://github.com/blueprintui/blueprintui/compare/@blueprintui/grid-v2.1.6...@blueprintui/grid-v2.1.7) (2024-12-14)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **grid:** reset dom cachce on drag event ([855d0cb](https://github.com/blueprintui/blueprintui/commit/855d0cbdd0ddfa58dbd90d135c10af45f3f974a6))
|
|
7
|
+
|
|
8
|
+
# [@blueprintui/grid-v2.1.6](https://github.com/blueprintui/blueprintui/compare/@blueprintui/grid-v2.1.5...@blueprintui/grid-v2.1.6) (2024-11-19)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* package metadata ([4d84b3a](https://github.com/blueprintui/blueprintui/commit/4d84b3a717074c70f0d7816efee57f4381e90d4a))
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{insertSpanningCells as t}from"@blueprintui/grid/internals";class s{#t;get placeholder(){return this.#t||(this.#t=this.host.querySelector("bp-grid-placeholder")),this.#t}#s;get footer(){return this.#s||(this.#s=this.host.querySelector("bp-grid-footer")),this.#s}#e;get rows(){return this.#e||(this.#e=Array.from(this.host.querySelectorAll("bp-grid-row"))),this.#e}#r;get columns(){return this.#r||(this.#r=Array.from(this.host.querySelectorAll("bp-grid-column"))),this.#r}#o;get cells(){return this.#o||(this.#o=Array.from(this.host.querySelectorAll("bp-grid-cell"))),this.#o}#
|
|
1
|
+
import{insertSpanningCells as t}from"@blueprintui/grid/internals";class s{#t;get placeholder(){return this.#t||(this.#t=this.host.querySelector("bp-grid-placeholder")),this.#t}#s;get footer(){return this.#s||(this.#s=this.host.querySelector("bp-grid-footer")),this.#s}#e;get rows(){return this.#e||(this.#e=Array.from(this.host.querySelectorAll("bp-grid-row"))),this.#e}#r;get columns(){return this.#r||(this.#r=Array.from(this.host.querySelectorAll("bp-grid-column"))),this.#r}#o;get cells(){return this.#o||(this.#o=Array.from(this.host.querySelectorAll("bp-grid-cell"))),this.#o}#i;get grid(){if(!this.#i){const s=this.columns.filter((t=>!t.ariaColSpan)),e=t([...s,...Array.from(this.cells)]);for(this.#i=[];e.length;)this.#i.push(e.splice(0,s.length))}return this.#i}#h=0;get isStatic(){return this.#h++,1===this.#h&&!this.host.rangeSelection&&!this.host.querySelector("bp-grid-column bp-button-resize")&&!Array.from(this.columns).find((t=>void 0!==t.position||t.draggable||t.width))}constructor(t){this.host=t,this.host.addController(this)}async hostConnected(){await this.host.updateComplete,this.host.shadowRoot.addEventListener("slotchange",(async()=>{await this.host.updateComplete,this.#l(),this.host.shadowRoot.dispatchEvent(new CustomEvent("bp-slotchange"))})),this.host.addEventListener("bp-crane-end",(async()=>{await this.host.updateComplete,this.#l()}))}#l(){this.#i=null,this.#r=null,this.#e=null,this.#o=null,this.#t=null,this.#s=null}}export{s as GridDOMController};
|
package/dist/grid/element.css.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const o=new CSSStyleSheet;o.replaceSync("[hidden]{display:none!important}:host{--background:var(--bp-layer-background-200);--body-height:auto;--body-min-height:auto;--scrollbar-background:var(--background);--scrollbar-thumb-background:var(--border-color);--column-height:var(--bp-size-900);--row-height:var(--bp-size-900);--scroll-padding-top:var(--column-height);--row-content-visibility:auto;--border:0;--border-width:var(--bp-object-border-width-100);--border-color:var(--bp-object-border-color-100);width:100%;display:block;position:relative}:host([range-selection]){user-select:none}:host([column-style*=border]) ::slotted(bp-grid-row){--cell-border-width:var(--border-width);--border-top:0;--border-bottom:0}:host([row-style*=border]) ::slotted(bp-grid-row){--border-top:var(--border-width)solid var(--border-color)}:host([row-style*=border]) ::slotted(bp-grid-row:last-of-type){--border-bottom:var(--border-width)solid var(--border-color)}:host([row-style*=border]) ::slotted(bp-grid-row:first-of-type){--border-top:0}:host([row-style*=stripe]) ::slotted(bp-grid-row){--border-top:0;--border-bottom:0}:host([row-style*=stripe]) ::slotted(bp-grid-row:nth-child(2n)),:host([row-style*=hover]) ::slotted(bp-grid-row:hover){--bp-interaction-offset:var(--bp-interaction-hover-offset)}:host([layer=flat]){--border-color:var(--bp-object-border-color-200);--background:inherit!important}[part=internal]{border:var(--border);border-radius:var(--bp-object-border-radius-100);background:var(--background);position:relative}.scroll-container{box-shadow:var(--box-shadow);border:var(--border);height:var(--body-height,100%);min-height:var(--body-min-height,auto);scroll-padding-top:var(--scroll-padding-top);scrollbar-color:var(--scrollbar-thumb-background)var(--scrollbar-background);scrollbar-width:thin;flex-direction:column;width:100%;display:flex;overflow:auto}:host([scroll-lock]) .scroll-container{overflow:hidden}.body-row-group{margin-top:var(--bp-size-200);flex-direction:column;flex:1;
|
|
1
|
+
const o=new CSSStyleSheet;o.replaceSync("[hidden]{display:none!important}:host{--background:var(--bp-layer-background-200);--body-height:auto;--body-min-height:auto;--scrollbar-background:var(--background);--scrollbar-thumb-background:var(--border-color);--column-height:var(--bp-size-900);--row-height:var(--bp-size-900);--scroll-padding-top:var(--column-height);--row-content-visibility:auto;--border:0;--border-width:var(--bp-object-border-width-100);--border-color:var(--bp-object-border-color-100);width:100%;display:block;position:relative}:host([range-selection]){user-select:none}:host([column-style*=border]) ::slotted(bp-grid-row){--cell-border-width:var(--border-width);--border-top:0;--border-bottom:0}:host([row-style*=border]) ::slotted(bp-grid-row){--border-top:var(--border-width)solid var(--border-color)}:host([row-style*=border]) ::slotted(bp-grid-row:last-of-type){--border-bottom:var(--border-width)solid var(--border-color)}:host([row-style*=border]) ::slotted(bp-grid-row:first-of-type){--border-top:0}:host([row-style*=stripe]) ::slotted(bp-grid-row){--border-top:0;--border-bottom:0}:host([row-style*=stripe]) ::slotted(bp-grid-row:nth-child(2n)),:host([row-style*=hover]) ::slotted(bp-grid-row:hover){--bp-interaction-offset:var(--bp-interaction-hover-offset)}:host([layer=flat]){--border-color:var(--bp-object-border-color-200);--background:inherit!important}[part=internal]{border:var(--border);border-radius:var(--bp-object-border-radius-100);background:var(--background);position:relative}.scroll-container{box-shadow:var(--box-shadow);border:var(--border);height:var(--body-height,100%);min-height:var(--body-min-height,auto);scroll-padding-top:var(--scroll-padding-top);scrollbar-color:var(--scrollbar-thumb-background)var(--scrollbar-background);scrollbar-width:thin;flex-direction:column;width:100%;display:flex;overflow:auto}:host([scroll-lock]) .scroll-container{overflow:hidden}.body-row-group{min-width:fit-content;margin-top:var(--bp-size-200);flex-direction:column;flex:1;display:flex}slot[name=header]{z-index:99;flex-direction:column;min-width:fit-content;display:flex;position:sticky;top:0}::slotted(bp-grid-row:not([bp-draggable=target]):first-of-type){--box-shadow:var(--border-width)solid transparent}@keyframes fadein{0%{opacity:0}to{opacity:1}}");export{o as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a=new CSSStyleSheet;a.replaceSync(":host{--box-shadow:none;--color:var(--bp-text-color-500);--padding:var(--bp-size-400);--gap:var(--bp-space-md);content-visibility:var(--row-content-visibility,auto);flex:1}[part=internal]{box-shadow:var(--box-shadow);padding:var(--padding);min-height:var(--bp-size-800);background:var(--background);justify-content:center;align-items:center;gap:var(--gap);color:var(--color);text-align:center;flex-direction:column;grid-column:1/-1;
|
|
1
|
+
const a=new CSSStyleSheet;a.replaceSync(":host{--box-shadow:none;--color:var(--bp-text-color-500);--padding:var(--bp-size-400);--gap:var(--bp-space-md);content-visibility:var(--row-content-visibility,auto);flex:1}[part=internal]{box-shadow:var(--box-shadow);padding:var(--padding);min-height:var(--bp-size-800);background:var(--background);justify-content:center;align-items:center;gap:var(--gap);width:100%;height:100%;color:var(--color);text-align:center;flex-direction:column;grid-column:1/-1;display:flex;position:relative}:host([draggable=false]) [part=internal]{min-height:var(--bp-size-1000)}:host([bp-draggable*=target]){--box-shadow:inset 0 var(--bp-object-border-width-300)0 calc(var(--bp-size-100)*-1)var(--bp-interaction-accent-background)}");export{a as default};
|
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blueprintui/grid",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"package.json",
|
|
7
|
+
"CHANGELOG.md",
|
|
7
8
|
"README.md",
|
|
8
9
|
"LICENSE.md",
|
|
9
10
|
"dist/**/*"
|
|
@@ -41,6 +42,10 @@
|
|
|
41
42
|
"types": "./dist/include/*.d.ts",
|
|
42
43
|
"default": "./dist/include/*.js"
|
|
43
44
|
},
|
|
45
|
+
"./csv/*.js": {
|
|
46
|
+
"types": "./dist/csv/*.d.ts",
|
|
47
|
+
"default": "./dist/csv/*.js"
|
|
48
|
+
},
|
|
44
49
|
"./internals": {
|
|
45
50
|
"types": "./dist/internals/index.d.ts",
|
|
46
51
|
"default": "./dist/internals/index.js"
|
|
@@ -55,47 +60,29 @@
|
|
|
55
60
|
}
|
|
56
61
|
},
|
|
57
62
|
"dependencies": {
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"@blueprintui/
|
|
61
|
-
"@blueprintui/
|
|
62
|
-
"@blueprintui/typewriter": "
|
|
63
|
-
"
|
|
64
|
-
"
|
|
63
|
+
"lit": "^3.2.1",
|
|
64
|
+
"tslib": "^2.8.1",
|
|
65
|
+
"@blueprintui/components": "^2.2.0",
|
|
66
|
+
"@blueprintui/icons": "^2.1.6",
|
|
67
|
+
"@blueprintui/typewriter": "^2.1.11",
|
|
68
|
+
"@blueprintui/crane": "^2.1.8",
|
|
69
|
+
"@blueprintui/themes": "^2.1.10"
|
|
65
70
|
},
|
|
66
71
|
"devDependencies": {
|
|
67
|
-
"@
|
|
68
|
-
"@
|
|
69
|
-
"@
|
|
70
|
-
"@web/
|
|
71
|
-
"@web/
|
|
72
|
-
"@web/
|
|
73
|
-
"@web/test-runner": "
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
|
|
81
|
-
"scripts": {
|
|
82
|
-
"ci": "wireit",
|
|
83
|
-
"start": "wireit",
|
|
84
|
-
"build": "wireit",
|
|
85
|
-
"build:watch": "wireit",
|
|
86
|
-
"drafter": "wireit",
|
|
87
|
-
"drafter:watch": "wireit",
|
|
88
|
-
"test": "wireit",
|
|
89
|
-
"test:watch": "node ../test/dist/wtr.js --watch",
|
|
90
|
-
"test:unit": "wireit",
|
|
91
|
-
"test:coverage": "wireit",
|
|
92
|
-
"test:a11y": "wireit",
|
|
93
|
-
"test:performance": "wireit",
|
|
94
|
-
"test:visual": "wireit",
|
|
95
|
-
"test:visual:update": "wireit",
|
|
96
|
-
"test:api": "wireit",
|
|
97
|
-
"test:api:update": "wireit",
|
|
98
|
-
"sourcemap": "wireit"
|
|
72
|
+
"@web/dev-server": "0.4.6",
|
|
73
|
+
"@web/dev-server-esbuild": "1.0.3",
|
|
74
|
+
"@web/dev-server-rollup": "0.6.4",
|
|
75
|
+
"@web/test-runner": "0.19.0",
|
|
76
|
+
"@web/test-runner-core": "0.13.4",
|
|
77
|
+
"@web/test-runner-playwright": "0.11.0",
|
|
78
|
+
"@web/test-runner-visual-regression": "0.10.0",
|
|
79
|
+
"del-cli": "6.0.0",
|
|
80
|
+
"modern-normalize": "^3.0.1",
|
|
81
|
+
"playwright": "1.48.2",
|
|
82
|
+
"publint": "0.2.10",
|
|
83
|
+
"@blueprintui/layout": "^2.1.6",
|
|
84
|
+
"@blueprintui/test": "^0.0.0",
|
|
85
|
+
"@blueprintui/typography": "^2.1.6"
|
|
99
86
|
},
|
|
100
87
|
"wireit": {
|
|
101
88
|
"ci": {
|
|
@@ -190,11 +177,11 @@
|
|
|
190
177
|
]
|
|
191
178
|
},
|
|
192
179
|
"test:watch": {
|
|
193
|
-
"command": "node
|
|
180
|
+
"command": "node node_modules/@blueprintui/test/dist/wtr.js --watch",
|
|
194
181
|
"service": true
|
|
195
182
|
},
|
|
196
183
|
"test:unit": {
|
|
197
|
-
"command": "del ./.coverage && node
|
|
184
|
+
"command": "del ./.coverage && node node_modules/@blueprintui/test/dist/wtr.js",
|
|
198
185
|
"dependencies": [
|
|
199
186
|
"../test:build",
|
|
200
187
|
"build"
|
|
@@ -202,6 +189,7 @@
|
|
|
202
189
|
"files": [
|
|
203
190
|
"./src/**/*",
|
|
204
191
|
"!./src/**/*.performance.ts",
|
|
192
|
+
"./blueprint.config.js",
|
|
205
193
|
"./web-dev-server.config.mjs",
|
|
206
194
|
"./web-test-runner.config.mjs",
|
|
207
195
|
"./tsconfig.spec.json",
|
|
@@ -210,22 +198,26 @@
|
|
|
210
198
|
"output": []
|
|
211
199
|
},
|
|
212
200
|
"test:coverage": {
|
|
213
|
-
"command": "del ./.coverage && node
|
|
201
|
+
"command": "del ./.coverage && node node_modules/@blueprintui/test/dist/wtr.js --coverage",
|
|
214
202
|
"dependencies": [
|
|
215
|
-
"../test:build"
|
|
203
|
+
"../test:build",
|
|
204
|
+
"build"
|
|
216
205
|
],
|
|
217
206
|
"files": [
|
|
218
207
|
"./src/**/*",
|
|
219
208
|
"!./src/**/*.performance.ts",
|
|
209
|
+
"./blueprint.config.js",
|
|
220
210
|
"./web-dev-server.config.mjs",
|
|
221
|
-
"./web-test-runner.config.mjs"
|
|
211
|
+
"./web-test-runner.config.mjs",
|
|
212
|
+
"./tsconfig.spec.json",
|
|
213
|
+
"./tsconfig.json"
|
|
222
214
|
],
|
|
223
215
|
"output": [
|
|
224
216
|
"./.coverage"
|
|
225
217
|
]
|
|
226
218
|
},
|
|
227
219
|
"test:a11y": {
|
|
228
|
-
"command": "node
|
|
220
|
+
"command": "node node_modules/@blueprintui/test/dist/wtr.js --config ./web-test-runner.a11y.mjs",
|
|
229
221
|
"dependencies": [
|
|
230
222
|
"../test:build",
|
|
231
223
|
"build"
|
|
@@ -239,7 +231,7 @@
|
|
|
239
231
|
"output": []
|
|
240
232
|
},
|
|
241
233
|
"test:performance": {
|
|
242
|
-
"command": "node
|
|
234
|
+
"command": "node node_modules/@blueprintui/test/dist/wtr.js --config ./web-test-runner.performance.mjs",
|
|
243
235
|
"dependencies": [
|
|
244
236
|
"../test:build",
|
|
245
237
|
"build"
|
|
@@ -268,7 +260,7 @@
|
|
|
268
260
|
"output": []
|
|
269
261
|
},
|
|
270
262
|
"test:visual:update": {
|
|
271
|
-
"command": "node
|
|
263
|
+
"command": "node node_modules/@blueprintui/test/dist/wtr.js --update-visual-baseline --config ./web-test-runner.visual.mjs",
|
|
272
264
|
"dependencies": [
|
|
273
265
|
"build"
|
|
274
266
|
],
|
|
@@ -306,5 +298,24 @@
|
|
|
306
298
|
"build"
|
|
307
299
|
]
|
|
308
300
|
}
|
|
301
|
+
},
|
|
302
|
+
"scripts": {
|
|
303
|
+
"ci": "wireit",
|
|
304
|
+
"start": "wireit",
|
|
305
|
+
"build": "wireit",
|
|
306
|
+
"build:watch": "wireit",
|
|
307
|
+
"drafter": "wireit",
|
|
308
|
+
"drafter:watch": "wireit",
|
|
309
|
+
"test": "wireit",
|
|
310
|
+
"test:watch": "node node_modules/@blueprintui/test/dist/wtr.js --watch",
|
|
311
|
+
"test:unit": "wireit",
|
|
312
|
+
"test:coverage": "wireit",
|
|
313
|
+
"test:a11y": "wireit",
|
|
314
|
+
"test:performance": "wireit",
|
|
315
|
+
"test:visual": "wireit",
|
|
316
|
+
"test:visual:update": "wireit",
|
|
317
|
+
"test:api": "wireit",
|
|
318
|
+
"test:api:update": "wireit",
|
|
319
|
+
"sourcemap": "wireit"
|
|
309
320
|
}
|
|
310
|
-
}
|
|
321
|
+
}
|