@public-ui/hydrate 2.2.5-rc.0 → 2.2.5

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/dist/index.js CHANGED
@@ -4360,6 +4360,7 @@ const validateTableDataFoot = (component, value, setStateHooks) => {
4360
4360
  });
4361
4361
  };
4362
4362
 
4363
+ const HEADER_CELL_WIDTH_VALIDATOR = /^\d+(\.\d+)?([a-z]+)?$/;
4363
4364
  const validateTableHeaderCells = (component, value) => {
4364
4365
  emptyStringByArrayHandler(value, () => {
4365
4366
  objectObjectHandler(value, () => {
@@ -4381,7 +4382,7 @@ const validateTableHeaderCells = (component, value) => {
4381
4382
  const widths = [];
4382
4383
  (_a = headerCells.horizontal) === null || _a === void 0 ? void 0 : _a.forEach((headerRow) => {
4383
4384
  headerRow.forEach((headerCell) => {
4384
- if (headerCell.width) {
4385
+ if (headerCell.width && HEADER_CELL_WIDTH_VALIDATOR.test(headerCell.width)) {
4385
4386
  widths.push(headerCell.width);
4386
4387
  }
4387
4388
  });
@@ -24014,7 +24015,7 @@ class KolTable {
24014
24015
  this._on = undefined;
24015
24016
  }
24016
24017
  render() {
24017
- return (hAsync(KolTableStatefulTag, { key: '78e54fb25d9d1f36e5360a6c8bb8e9cbc21912f2', _allowMultiSort: this._allowMultiSort, _data: this._data, _dataFoot: this._dataFoot, _headers: this._headers, _label: this._label, _minWidth: this._minWidth, _pagination: this._pagination, _paginationPosition: this._paginationPosition, _selection: this._selection, _on: this._on }));
24018
+ return (hAsync(KolTableStatefulTag, { key: 'f4794620879a9bec878a3a1178e96c005f8150f9', _allowMultiSort: this._allowMultiSort, _data: this._data, _dataFoot: this._dataFoot, _headers: this._headers, _label: this._label, _minWidth: this._minWidth, _pagination: this._pagination, _paginationPosition: this._paginationPosition, _selection: this._selection, _on: this._on }));
24018
24019
  }
24019
24020
  static get cmpMeta() { return {
24020
24021
  "$flags$": 9,
@@ -24439,7 +24440,7 @@ class KolTableStateful {
24439
24440
  horizontal: (_c = this.state._headers.horizontal) === null || _c === void 0 ? void 0 : _c.map((row) => row.map((cell) => (Object.assign(Object.assign({}, cell), { sortDirection: this.getHeaderCellSortState(cell) })))),
24440
24441
  vertical: (_d = this.state._headers.vertical) === null || _d === void 0 ? void 0 : _d.map((column) => column.map((cell) => (Object.assign(Object.assign({}, cell), { sortDirection: this.getHeaderCellSortState(cell) })))),
24441
24442
  };
24442
- return (hAsync(Host, { key: 'b1d2e0679c35089d9d648174ac72de0f2a6349f8', class: "kol-table-stateful" }, this.pageEndSlice > 0 && this.showPagination && paginationTop, hAsync(KolTableStatelessWcTag, { key: 'bd022abcb18d07cc26bebb98ccfcd7e96fb90da7', ref: this.catchRef, _data: displayedData, _headerCells: headerCells, _label: this.state._label, _dataFoot: this.state._dataFoot, _minWidth: this.state._minWidth, _on: {
24443
+ return (hAsync(Host, { key: '2d471104de44ada86910ebd7d31f73577085b449', class: "kol-table-stateful" }, this.pageEndSlice > 0 && this.showPagination && paginationTop, hAsync(KolTableStatelessWcTag, { key: '36aed71807ef42ce071ea35964eed001139e5ee0', ref: this.catchRef, _data: displayedData, _headerCells: headerCells, _label: this.state._label, _dataFoot: this.state._dataFoot, _minWidth: this.state._minWidth, _on: {
24443
24444
  onSort: (_, payload) => {
24444
24445
  this.handleSort(payload);
24445
24446
  },
@@ -24502,7 +24503,7 @@ class KolTableStateless$1 {
24502
24503
  this._selection = undefined;
24503
24504
  }
24504
24505
  render() {
24505
- return (hAsync(Host, { key: 'b2811bdfce1d51f659bbcb931639ba1fc3f65bb1', class: "kol-table-stateless" }, hAsync(KolTableStatelessWcTag, { key: 'a6affae87b6b8768b566ed611976a998b74fef5c', _data: this._data, _dataFoot: this._dataFoot, _headerCells: this._headerCells, _label: this._label, _minWidth: this._minWidth, _on: this._on, _selection: this._selection })));
24506
+ return (hAsync(Host, { key: 'd24602f9b15c5b8b6a53ab9ee353de48fa3fe809', class: "kol-table-stateless" }, hAsync(KolTableStatelessWcTag, { key: '4e502f9a6d479ec885207865cf3ba53490d8b2dd', _data: this._data, _dataFoot: this._dataFoot, _headerCells: this._headerCells, _label: this._label, _minWidth: this._minWidth, _on: this._on, _selection: this._selection })));
24506
24507
  }
24507
24508
  static get style() { return {
24508
24509
  default: KolTableStatelessDefaultStyle0
package/dist/index.mjs CHANGED
@@ -4356,6 +4356,7 @@ const validateTableDataFoot = (component, value, setStateHooks) => {
4356
4356
  });
4357
4357
  };
4358
4358
 
4359
+ const HEADER_CELL_WIDTH_VALIDATOR = /^\d+(\.\d+)?([a-z]+)?$/;
4359
4360
  const validateTableHeaderCells = (component, value) => {
4360
4361
  emptyStringByArrayHandler(value, () => {
4361
4362
  objectObjectHandler(value, () => {
@@ -4377,7 +4378,7 @@ const validateTableHeaderCells = (component, value) => {
4377
4378
  const widths = [];
4378
4379
  (_a = headerCells.horizontal) === null || _a === void 0 ? void 0 : _a.forEach((headerRow) => {
4379
4380
  headerRow.forEach((headerCell) => {
4380
- if (headerCell.width) {
4381
+ if (headerCell.width && HEADER_CELL_WIDTH_VALIDATOR.test(headerCell.width)) {
4381
4382
  widths.push(headerCell.width);
4382
4383
  }
4383
4384
  });
@@ -24010,7 +24011,7 @@ class KolTable {
24010
24011
  this._on = undefined;
24011
24012
  }
24012
24013
  render() {
24013
- return (hAsync(KolTableStatefulTag, { key: '78e54fb25d9d1f36e5360a6c8bb8e9cbc21912f2', _allowMultiSort: this._allowMultiSort, _data: this._data, _dataFoot: this._dataFoot, _headers: this._headers, _label: this._label, _minWidth: this._minWidth, _pagination: this._pagination, _paginationPosition: this._paginationPosition, _selection: this._selection, _on: this._on }));
24014
+ return (hAsync(KolTableStatefulTag, { key: 'f4794620879a9bec878a3a1178e96c005f8150f9', _allowMultiSort: this._allowMultiSort, _data: this._data, _dataFoot: this._dataFoot, _headers: this._headers, _label: this._label, _minWidth: this._minWidth, _pagination: this._pagination, _paginationPosition: this._paginationPosition, _selection: this._selection, _on: this._on }));
24014
24015
  }
24015
24016
  static get cmpMeta() { return {
24016
24017
  "$flags$": 9,
@@ -24435,7 +24436,7 @@ class KolTableStateful {
24435
24436
  horizontal: (_c = this.state._headers.horizontal) === null || _c === void 0 ? void 0 : _c.map((row) => row.map((cell) => (Object.assign(Object.assign({}, cell), { sortDirection: this.getHeaderCellSortState(cell) })))),
24436
24437
  vertical: (_d = this.state._headers.vertical) === null || _d === void 0 ? void 0 : _d.map((column) => column.map((cell) => (Object.assign(Object.assign({}, cell), { sortDirection: this.getHeaderCellSortState(cell) })))),
24437
24438
  };
24438
- return (hAsync(Host, { key: 'b1d2e0679c35089d9d648174ac72de0f2a6349f8', class: "kol-table-stateful" }, this.pageEndSlice > 0 && this.showPagination && paginationTop, hAsync(KolTableStatelessWcTag, { key: 'bd022abcb18d07cc26bebb98ccfcd7e96fb90da7', ref: this.catchRef, _data: displayedData, _headerCells: headerCells, _label: this.state._label, _dataFoot: this.state._dataFoot, _minWidth: this.state._minWidth, _on: {
24439
+ return (hAsync(Host, { key: '2d471104de44ada86910ebd7d31f73577085b449', class: "kol-table-stateful" }, this.pageEndSlice > 0 && this.showPagination && paginationTop, hAsync(KolTableStatelessWcTag, { key: '36aed71807ef42ce071ea35964eed001139e5ee0', ref: this.catchRef, _data: displayedData, _headerCells: headerCells, _label: this.state._label, _dataFoot: this.state._dataFoot, _minWidth: this.state._minWidth, _on: {
24439
24440
  onSort: (_, payload) => {
24440
24441
  this.handleSort(payload);
24441
24442
  },
@@ -24498,7 +24499,7 @@ class KolTableStateless$1 {
24498
24499
  this._selection = undefined;
24499
24500
  }
24500
24501
  render() {
24501
- return (hAsync(Host, { key: 'b2811bdfce1d51f659bbcb931639ba1fc3f65bb1', class: "kol-table-stateless" }, hAsync(KolTableStatelessWcTag, { key: 'a6affae87b6b8768b566ed611976a998b74fef5c', _data: this._data, _dataFoot: this._dataFoot, _headerCells: this._headerCells, _label: this._label, _minWidth: this._minWidth, _on: this._on, _selection: this._selection })));
24502
+ return (hAsync(Host, { key: 'd24602f9b15c5b8b6a53ab9ee353de48fa3fe809', class: "kol-table-stateless" }, hAsync(KolTableStatelessWcTag, { key: '4e502f9a6d479ec885207865cf3ba53490d8b2dd', _data: this._data, _dataFoot: this._dataFoot, _headerCells: this._headerCells, _label: this._label, _minWidth: this._minWidth, _on: this._on, _selection: this._selection })));
24502
24503
  }
24503
24504
  static get style() { return {
24504
24505
  default: KolTableStatelessDefaultStyle0
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "@public-ui/components/hydrate",
3
+ "description": "kolibri component hydration app.",
4
+ "main": "index.js",
5
+ "types": "index.d.ts",
6
+ "exports": {
7
+ ".": {
8
+ "require": "./index.js",
9
+ "import": "./index.mjs"
10
+ }
11
+ }
12
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@public-ui/hydrate",
3
- "version": "2.2.5-rc.0",
3
+ "version": "2.2.5",
4
4
  "license": "EUPL-1.2",
5
5
  "homepage": "https://public-ui.github.io",
6
6
  "repository": {
@@ -46,10 +46,10 @@
46
46
  ],
47
47
  "devDependencies": {
48
48
  "rimraf": "6.0.1",
49
- "@public-ui/components": "2.2.5-rc.0"
49
+ "@public-ui/components": "2.2.5"
50
50
  },
51
51
  "peerDependencies": {
52
- "@public-ui/components": "2.2.5-rc.0"
52
+ "@public-ui/components": "2.2.5"
53
53
  },
54
54
  "sideEffects": false,
55
55
  "type": "commonjs",