@spectrum-web-components/grid 1.8.0 → 1.9.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.
@@ -80,7 +80,7 @@
80
80
  "text": "{\n width: number;\n height: number;\n }"
81
81
  },
82
82
  "privacy": "public",
83
- "default": "{\n width: 200,\n height: 200,\n }",
83
+ "default": "{ width: 200, height: 200, }",
84
84
  "attribute": "itemSize"
85
85
  },
86
86
  {
@@ -96,7 +96,7 @@
96
96
  {
97
97
  "kind": "field",
98
98
  "name": "gridController",
99
- "default": "new GridController<HTMLElement>(this, {\n elements: () => [],\n itemSize: () => this.itemSize,\n /* c8 ignore next 2 */\n gap: () => this.gap,\n padding: () => this.padding || this.gap,\n })"
99
+ "default": "new GridController<HTMLElement>(this, { elements: () => [], itemSize: () => this.itemSize, /* c8 ignore next 2 */ gap: () => this.gap, padding: () => this.padding || this.gap, })"
100
100
  },
101
101
  {
102
102
  "kind": "field",
@@ -175,7 +175,7 @@
175
175
  "type": {
176
176
  "text": "{\n width: number;\n height: number;\n }"
177
177
  },
178
- "default": "{\n width: 200,\n height: 200,\n }",
178
+ "default": "{ width: 200, height: 200, }",
179
179
  "fieldName": "itemSize"
180
180
  },
181
181
  {
@@ -229,7 +229,7 @@
229
229
  "type": {
230
230
  "text": "ResizeController"
231
231
  },
232
- "default": "new ResizeController(this.host, {\n callback: (entries: ResizeObserverEntry[]): void => {\n entries.forEach((entry) => {\n this.measureDirectionLength(entry.contentRect);\n });\n },\n })"
232
+ "default": "new ResizeController(this.host, { callback: (entries: ResizeObserverEntry[]): void => { entries.forEach((entry) => { this.measureDirectionLength(entry.contentRect); }); }, })"
233
233
  },
234
234
  {
235
235
  "kind": "field",
@@ -237,7 +237,7 @@
237
237
  "type": {
238
238
  "text": "RovingTabindexController<T>"
239
239
  },
240
- "default": "new RovingTabindexController<T>(\n this.host,\n {\n direction: 'grid',\n elements,\n focusInIndex: () => {\n const activeElement = (this.host.getRootNode() as Document)\n .activeElement as HTMLElement;\n return activeElement === this.host ? 0 : -1;\n },\n }\n )"
240
+ "default": "new RovingTabindexController<T>( this.host, { direction: 'grid', elements, focusInIndex: () => { const activeElement = (this.host.getRootNode() as Document) .activeElement as HTMLElement; return activeElement === this.host ? 0 : -1; }, } )"
241
241
  },
242
242
  {
243
243
  "kind": "field",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spectrum-web-components/grid",
3
- "version": "1.8.0",
3
+ "version": "1.9.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -68,10 +68,10 @@
68
68
  "css"
69
69
  ],
70
70
  "dependencies": {
71
- "@lit-labs/observers": "^2.0.2",
72
- "@lit-labs/virtualizer": "^2.0.12",
73
- "@spectrum-web-components/base": "1.8.0",
74
- "@spectrum-web-components/reactive-controllers": "1.8.0",
71
+ "@lit-labs/observers": "2.0.2",
72
+ "@lit-labs/virtualizer": "2.0.12",
73
+ "@spectrum-web-components/base": "1.9.0",
74
+ "@spectrum-web-components/reactive-controllers": "1.9.0",
75
75
  "lit": "^2.5.0 || ^3.1.3"
76
76
  },
77
77
  "types": "./src/index.d.ts",