@polygrid/core 1.0.3-a → 1.0.3

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.
@@ -1 +1 @@
1
- {"version":3,"file":"set-up-resize-observer.d.ts","sourceRoot":"","sources":["../../../../../src/engine/services/layout/methods/set-up-resize-observer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE1D,wBAAgB,mBAAmB,CACjC,cAAc,EAAE,cAAc,EAC9B,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,aAAa,kBAgBrB"}
1
+ {"version":3,"file":"set-up-resize-observer.d.ts","sourceRoot":"","sources":["../../../../../src/engine/services/layout/methods/set-up-resize-observer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE1D,wBAAgB,mBAAmB,CACjC,cAAc,EAAE,cAAc,EAC9B,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,aAAa,kBAkBrB"}
@@ -6,6 +6,8 @@ export function setUpResizeObserver(resizeObserver, gridDom, store) {
6
6
  const headerHeight = gridDom.headerViewport.getBoundingClientRect().height;
7
7
  const footerHeight = gridDom.footerViewport.getBoundingClientRect().height;
8
8
  store.update((draft) => {
9
+ draft.viewportWidth = gridWidth; // at this moment this is the full grid width without a v scroll bar
10
+ draft.viewportHeight = gridHeight - headerHeight - footerHeight; // at this moment this is the full grid height without a h scroll bar
9
11
  draft.rawViewportWidth = gridWidth;
10
12
  draft.rawViewportHeight = gridHeight - headerHeight - footerHeight;
11
13
  });
@@ -1 +1 @@
1
- {"version":3,"file":"set-up-resize-observer.js","sourceRoot":"","sources":["../../../../../src/engine/services/layout/methods/set-up-resize-observer.ts"],"names":[],"mappings":"AAGA,MAAM,UAAU,mBAAmB,CACjC,cAA8B,EAC9B,OAAgB,EAChB,KAAoB;IAEpB,OAAO,CAAC,cAAc,GAAG,IAAI,cAAc,CAAC,CAAC,OAAO,EAAE,EAAE;QACtD,KAAK,MAAM,KAAK,IAAI,OAAO,EAAE,CAAC;YAC5B,MAAM,SAAS,GAAG,KAAK,CAAC,WAAW,CAAC,KAAK,CAAC;YAC1C,MAAM,UAAU,GAAG,KAAK,CAAC,WAAW,CAAC,MAAM,CAAC;YAC5C,MAAM,YAAY,GAChB,OAAO,CAAC,cAAc,CAAC,qBAAqB,EAAE,CAAC,MAAM,CAAC;YACxD,MAAM,YAAY,GAChB,OAAO,CAAC,cAAc,CAAC,qBAAqB,EAAE,CAAC,MAAM,CAAC;YACxD,KAAK,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE;gBACrB,KAAK,CAAC,gBAAgB,GAAG,SAAS,CAAC;gBACnC,KAAK,CAAC,iBAAiB,GAAG,UAAU,GAAG,YAAY,GAAG,YAAY,CAAC;YACrE,CAAC,CAAC,CAAC;QACL,CAAC;IACH,CAAC,CAAC,CAAC,CAAC;AACN,CAAC"}
1
+ {"version":3,"file":"set-up-resize-observer.js","sourceRoot":"","sources":["../../../../../src/engine/services/layout/methods/set-up-resize-observer.ts"],"names":[],"mappings":"AAGA,MAAM,UAAU,mBAAmB,CACjC,cAA8B,EAC9B,OAAgB,EAChB,KAAoB;IAEpB,OAAO,CAAC,cAAc,GAAG,IAAI,cAAc,CAAC,CAAC,OAAO,EAAE,EAAE;QACtD,KAAK,MAAM,KAAK,IAAI,OAAO,EAAE,CAAC;YAC5B,MAAM,SAAS,GAAG,KAAK,CAAC,WAAW,CAAC,KAAK,CAAC;YAC1C,MAAM,UAAU,GAAG,KAAK,CAAC,WAAW,CAAC,MAAM,CAAC;YAC5C,MAAM,YAAY,GAChB,OAAO,CAAC,cAAc,CAAC,qBAAqB,EAAE,CAAC,MAAM,CAAC;YACxD,MAAM,YAAY,GAChB,OAAO,CAAC,cAAc,CAAC,qBAAqB,EAAE,CAAC,MAAM,CAAC;YACxD,KAAK,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE;gBACrB,KAAK,CAAC,aAAa,GAAG,SAAS,CAAC,CAAC,oEAAoE;gBACrG,KAAK,CAAC,cAAc,GAAG,UAAU,GAAG,YAAY,GAAG,YAAY,CAAC,CAAC,qEAAqE;gBACtI,KAAK,CAAC,gBAAgB,GAAG,SAAS,CAAC;gBACnC,KAAK,CAAC,iBAAiB,GAAG,UAAU,GAAG,YAAY,GAAG,YAAY,CAAC;YACrE,CAAC,CAAC,CAAC;QACL,CAAC;IACH,CAAC,CAAC,CAAC,CAAC;AACN,CAAC"}
package/package.json CHANGED
@@ -1,32 +1,42 @@
1
- {
2
- "name": "@polygrid/core",
3
- "version": "1.0.3a",
4
- "description": "",
5
- "type": "module",
6
- "main": "./dist/index.js",
7
- "types": "./dist/index.d.ts",
8
- "exports": {
9
- ".": {
10
- "import": "./dist/index.js",
11
- "types": "./dist/index.d.ts"
12
- },
13
- "./*": {
14
- "import": "./dist/*.js",
15
- "types": "./dist/*.d.ts"
16
- }
17
- },
18
- "files": [
19
- "dist/**/*"
20
- ],
21
- "scripts": {
22
- "clean": "rimraf dist angular/dist",
23
- "build": "npm run clean && tsc --outDir dist && npm run build:css",
24
- "build:angular": "npm run build --workspace=@polygrid/angular",
25
- "build:all": "npm run clean && npm run build && npm run build:angular",
26
- "build:css": "postcss src/styles/index.css -o dist/polygrid.css"
27
- },
28
- "keywords": [],
29
- "author": "",
30
- "license": "ISC",
31
- "devDependencies": {}
32
- }
1
+ {
2
+ "name": "@polygrid/core",
3
+ "version": "1.0.3",
4
+ "description": "",
5
+ "type": "module",
6
+ "main": "./dist/index.js",
7
+ "types": "./dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "import": "./dist/index.js",
11
+ "types": "./dist/index.d.ts"
12
+ },
13
+ "./*": {
14
+ "import": "./dist/*.js",
15
+ "types": "./dist/*.d.ts"
16
+ }
17
+ },
18
+ "files": [
19
+ "dist/**/*"
20
+ ],
21
+ "scripts": {
22
+ "dev": "vite",
23
+ "clean": "rimraf dist angular/dist",
24
+ "build": "npm run clean && tsc --outDir dist && npm run build:css",
25
+ "build:angular": "npm run build --workspace=@polygrid/angular",
26
+ "build:all": "npm run clean && npm run build && npm run build:angular",
27
+ "build:css": "postcss src/styles/index.css -o dist/polygrid.css",
28
+ "preview": "vite preview"
29
+ },
30
+ "keywords": [],
31
+ "author": "",
32
+ "license": "ISC",
33
+ "devDependencies": {
34
+ "@types/node": "^25.0.3",
35
+ "postcss": "^8.5.6",
36
+ "postcss-cli": "^11.0.1",
37
+ "postcss-import": "^16.1.1",
38
+ "rimraf": "^6.1.2",
39
+ "typescript": "^5.9.3",
40
+ "vite": "^7.3.0"
41
+ }
42
+ }