@blueprintui/grid 2.1.6 → 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 CHANGED
@@ -1,3 +1,10 @@
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
+
1
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)
2
9
 
3
10
 
@@ -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}#l;get grid(){if(!this.#l){const s=this.columns.filter((t=>!t.ariaColSpan)),e=t([...s,...Array.from(this.cells)]);for(this.#l=[];e.length;)this.#l.push(e.splice(0,s.length))}return this.#l}#i=0;get isStatic(){return this.#i++,1===this.#i&&!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",(()=>this.host.updateComplete.then((()=>{this.#h(),this.host.shadowRoot.dispatchEvent(new CustomEvent("bp-slotchange"))}))))}#h(){this.#l=null,this.#r=null,this.#e=null,this.#o=null,this.#t=null,this.#s=null}}export{s as GridDOMController};
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blueprintui/grid",
3
- "version": "2.1.6",
3
+ "version": "2.1.7",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "package.json",
@@ -42,6 +42,10 @@
42
42
  "types": "./dist/include/*.d.ts",
43
43
  "default": "./dist/include/*.js"
44
44
  },
45
+ "./csv/*.js": {
46
+ "types": "./dist/csv/*.d.ts",
47
+ "default": "./dist/csv/*.js"
48
+ },
45
49
  "./internals": {
46
50
  "types": "./dist/internals/index.d.ts",
47
51
  "default": "./dist/internals/index.js"
@@ -58,11 +62,11 @@
58
62
  "dependencies": {
59
63
  "lit": "^3.2.1",
60
64
  "tslib": "^2.8.1",
61
- "@blueprintui/components": "^2.1.6",
62
- "@blueprintui/crane": "^2.1.8",
65
+ "@blueprintui/components": "^2.2.0",
63
66
  "@blueprintui/icons": "^2.1.6",
64
- "@blueprintui/themes": "^2.1.10",
65
- "@blueprintui/typewriter": "^2.1.11"
67
+ "@blueprintui/typewriter": "^2.1.11",
68
+ "@blueprintui/crane": "^2.1.8",
69
+ "@blueprintui/themes": "^2.1.10"
66
70
  },
67
71
  "devDependencies": {
68
72
  "@web/dev-server": "0.4.6",
@@ -73,11 +77,12 @@
73
77
  "@web/test-runner-playwright": "0.11.0",
74
78
  "@web/test-runner-visual-regression": "0.10.0",
75
79
  "del-cli": "6.0.0",
80
+ "modern-normalize": "^3.0.1",
76
81
  "playwright": "1.48.2",
77
82
  "publint": "0.2.10",
83
+ "@blueprintui/layout": "^2.1.6",
78
84
  "@blueprintui/test": "^0.0.0",
79
- "@blueprintui/typography": "^2.1.6",
80
- "@blueprintui/layout": "^2.1.6"
85
+ "@blueprintui/typography": "^2.1.6"
81
86
  },
82
87
  "wireit": {
83
88
  "ci": {
@@ -172,11 +177,11 @@
172
177
  ]
173
178
  },
174
179
  "test:watch": {
175
- "command": "node ../test/dist/wtr.js --watch",
180
+ "command": "node node_modules/@blueprintui/test/dist/wtr.js --watch",
176
181
  "service": true
177
182
  },
178
183
  "test:unit": {
179
- "command": "del ./.coverage && node ../test/dist/wtr.js",
184
+ "command": "del ./.coverage && node node_modules/@blueprintui/test/dist/wtr.js",
180
185
  "dependencies": [
181
186
  "../test:build",
182
187
  "build"
@@ -184,6 +189,7 @@
184
189
  "files": [
185
190
  "./src/**/*",
186
191
  "!./src/**/*.performance.ts",
192
+ "./blueprint.config.js",
187
193
  "./web-dev-server.config.mjs",
188
194
  "./web-test-runner.config.mjs",
189
195
  "./tsconfig.spec.json",
@@ -192,22 +198,26 @@
192
198
  "output": []
193
199
  },
194
200
  "test:coverage": {
195
- "command": "del ./.coverage && node ../test/dist/wtr.js --coverage",
201
+ "command": "del ./.coverage && node node_modules/@blueprintui/test/dist/wtr.js --coverage",
196
202
  "dependencies": [
197
- "../test:build"
203
+ "../test:build",
204
+ "build"
198
205
  ],
199
206
  "files": [
200
207
  "./src/**/*",
201
208
  "!./src/**/*.performance.ts",
209
+ "./blueprint.config.js",
202
210
  "./web-dev-server.config.mjs",
203
- "./web-test-runner.config.mjs"
211
+ "./web-test-runner.config.mjs",
212
+ "./tsconfig.spec.json",
213
+ "./tsconfig.json"
204
214
  ],
205
215
  "output": [
206
216
  "./.coverage"
207
217
  ]
208
218
  },
209
219
  "test:a11y": {
210
- "command": "node ../test/dist/wtr.js --config ./web-test-runner.a11y.mjs",
220
+ "command": "node node_modules/@blueprintui/test/dist/wtr.js --config ./web-test-runner.a11y.mjs",
211
221
  "dependencies": [
212
222
  "../test:build",
213
223
  "build"
@@ -221,7 +231,7 @@
221
231
  "output": []
222
232
  },
223
233
  "test:performance": {
224
- "command": "node ../test/dist/wtr.js --config ./web-test-runner.performance.mjs",
234
+ "command": "node node_modules/@blueprintui/test/dist/wtr.js --config ./web-test-runner.performance.mjs",
225
235
  "dependencies": [
226
236
  "../test:build",
227
237
  "build"
@@ -250,7 +260,7 @@
250
260
  "output": []
251
261
  },
252
262
  "test:visual:update": {
253
- "command": "node ../test/dist/wtr.js --update-visual-baseline --config ./web-test-runner.visual.mjs",
263
+ "command": "node node_modules/@blueprintui/test/dist/wtr.js --update-visual-baseline --config ./web-test-runner.visual.mjs",
254
264
  "dependencies": [
255
265
  "build"
256
266
  ],
@@ -297,7 +307,7 @@
297
307
  "drafter": "wireit",
298
308
  "drafter:watch": "wireit",
299
309
  "test": "wireit",
300
- "test:watch": "node ../test/dist/wtr.js --watch",
310
+ "test:watch": "node node_modules/@blueprintui/test/dist/wtr.js --watch",
301
311
  "test:unit": "wireit",
302
312
  "test:coverage": "wireit",
303
313
  "test:a11y": "wireit",