@public-ui/hydrate 1.7.27-rc.1 → 1.7.27

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.
Files changed (2) hide show
  1. package/dist/index.js +12 -14
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -4378,8 +4378,7 @@ function pushPath(object, path, newValue, concat) {
4378
4378
  k
4379
4379
  } = getLastOfPath(object, path, Object);
4380
4380
  obj[k] = obj[k] || [];
4381
- if (concat) obj[k] = obj[k].concat(newValue);
4382
- if (!concat) obj[k].push(newValue);
4381
+ obj[k].push(newValue);
4383
4382
  }
4384
4383
  function getPath(object, path) {
4385
4384
  const {
@@ -4910,13 +4909,13 @@ class Translator extends EventEmitter {
4910
4909
  ...this.options.interpolation.defaultVariables,
4911
4910
  ...data
4912
4911
  };
4913
- res = this.interpolator.interpolate(res, data, options.lng || this.language, options);
4912
+ res = this.interpolator.interpolate(res, data, options.lng || this.language || resolved.usedLng, options);
4914
4913
  if (skipOnVariables) {
4915
4914
  const na = res.match(this.interpolator.nestingRegexp);
4916
4915
  const nestAft = na && na.length;
4917
4916
  if (nestBef < nestAft) options.nest = false;
4918
4917
  }
4919
- if (!options.lng && this.options.compatibilityAPI !== 'v1' && resolved && resolved.res) options.lng = resolved.usedLng;
4918
+ if (!options.lng && this.options.compatibilityAPI !== 'v1' && resolved && resolved.res) options.lng = this.language || resolved.usedLng;
4920
4919
  if (options.nest !== false) res = this.interpolator.nest(res, function () {
4921
4920
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
4922
4921
  args[_key] = arguments[_key];
@@ -6410,7 +6409,7 @@ class I18n extends EventEmitter {
6410
6409
  options.lng = options.lng || fixedT.lng;
6411
6410
  options.lngs = options.lngs || fixedT.lngs;
6412
6411
  options.ns = options.ns || fixedT.ns;
6413
- options.keyPrefix = options.keyPrefix || keyPrefix || fixedT.keyPrefix;
6412
+ if (options.keyPrefix !== '') options.keyPrefix = options.keyPrefix || keyPrefix || fixedT.keyPrefix;
6414
6413
  const keySeparator = _this3.options.keySeparator || '.';
6415
6414
  let resultKey;
6416
6415
  if (options.keyPrefix && Array.isArray(key)) {
@@ -15352,9 +15351,9 @@ function isTopLayer(element) {
15352
15351
  }
15353
15352
  });
15354
15353
  }
15355
- function isContainingBlock(element) {
15354
+ function isContainingBlock(elementOrCss) {
15356
15355
  const webkit = isWebKit();
15357
- const css = getComputedStyle(element);
15356
+ const css = isElement(elementOrCss) ? getComputedStyle(elementOrCss) : elementOrCss;
15358
15357
 
15359
15358
  // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
15360
15359
  return css.transform !== 'none' || css.perspective !== 'none' || (css.containerType ? css.containerType !== 'normal' : false) || !webkit && (css.backdropFilter ? css.backdropFilter !== 'none' : false) || !webkit && (css.filter ? css.filter !== 'none' : false) || ['transform', 'perspective', 'filter'].some(value => (css.willChange || '').includes(value)) || ['paint', 'layout', 'strict', 'content'].some(value => (css.contain || '').includes(value));
@@ -15362,11 +15361,10 @@ function isContainingBlock(element) {
15362
15361
  function getContainingBlock(element) {
15363
15362
  let currentNode = getParentNode(element);
15364
15363
  while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {
15365
- if (isTopLayer(currentNode)) {
15366
- return null;
15367
- }
15368
15364
  if (isContainingBlock(currentNode)) {
15369
15365
  return currentNode;
15366
+ } else if (isTopLayer(currentNode)) {
15367
+ return null;
15370
15368
  }
15371
15369
  currentNode = getParentNode(currentNode);
15372
15370
  }
@@ -26021,11 +26019,11 @@ class KolTable {
26021
26019
  }
26022
26020
  render() {
26023
26021
  var _a, _b;
26024
- const displayedData = this.selectDisplayedData(this.state._sortedData, this.showPagination ? (_b = (_a = this.state._pagination) === null || _a === void 0 ? void 0 : _a._pageSize) !== null && _b !== void 0 ? _b : 10 : this.state._sortedData.length, this.state._pagination._page || 1);
26022
+ const displayedData = this.selectDisplayedData(this.state._sortedData, this.showPagination ? ((_b = (_a = this.state._pagination) === null || _a === void 0 ? void 0 : _a._pageSize) !== null && _b !== void 0 ? _b : 10) : this.state._sortedData.length, this.state._pagination._page || 1);
26025
26023
  const dataField = this.createDataField(displayedData, this.state._headers);
26026
- return (hAsync(Host, { key: '0451f72bde8b8c5118374ed4f90d9e626ec50e11', class: "kol-table" }, this.pageEndSlice > 0 && this.showPagination && (hAsync("div", { key: '0bfaf1f27ec41da3eb607c968d0d1dcf8a164cab', class: "pagination" }, hAsync("span", { key: 'f32425359cf48e55b6e7612e27ab6e2dd220f547' }, "Eintr\u00E4ge ", this.pageEndSlice > 0 ? this.pageStartSlice + 1 : 0, " bis ", this.pageEndSlice, " von", ' ', this.state._pagination._max || (Array.isArray(this.state._data) ? this.state._data.length : 0), " angezeigt"), hAsync("div", { key: '46e17d1c8c5d5f5141fe73aadd7575aced388f37' }, hAsync(KolPaginationTag, { key: '2813edeb2ce9cfbcae7aa6179991c43c745359b1', _boundaryCount: this.state._pagination._boundaryCount, _customClass: this.state._pagination._customClass, _on: this.handlePagination, _page: this.state._pagination._page, _pageSize: this.state._pagination._pageSize, _pageSizeOptions: this.state._pagination._pageSizeOptions || PAGINATION_OPTIONS, _siblingCount: this.state._pagination._siblingCount, _tooltipAlign: "bottom", _max: this.state._pagination._max || this.state._pagination._total || this.state._data.length, _label: translate('kol-table-pagination-label', { placeholders: { label: this.state._label } }) })))), hAsync("div", { key: 'db52557d2c7a19a98726031b5985b4b373049416', ref: (element) => (this.tableDivElement = element), class: "table", tabindex: this.tableDivElementHasScrollbar ? '-1' : undefined }, hAsync("table", { key: 'a42cba198c1b958b5ff8581a26dcda638826781f', style: {
26024
+ return (hAsync(Host, { key: 'a0f79a799d0a3c99d08dc7b8dc794eb31e503d86', class: "kol-table" }, this.pageEndSlice > 0 && this.showPagination && (hAsync("div", { key: '3109966e849e27d9436ae5cf93d622bcea305e02', class: "pagination" }, hAsync("span", { key: '46e05bc8bb33a040b15522501e2ee83e1bc26a84' }, "Eintr\u00E4ge ", this.pageEndSlice > 0 ? this.pageStartSlice + 1 : 0, " bis ", this.pageEndSlice, " von", ' ', this.state._pagination._max || (Array.isArray(this.state._data) ? this.state._data.length : 0), " angezeigt"), hAsync("div", { key: 'ed319db4503d1c41c516e121f11e72fb052c3687' }, hAsync(KolPaginationTag, { key: '06b8bfd75135d83f0def7283a2d8b96c579bce28', _boundaryCount: this.state._pagination._boundaryCount, _customClass: this.state._pagination._customClass, _on: this.handlePagination, _page: this.state._pagination._page, _pageSize: this.state._pagination._pageSize, _pageSizeOptions: this.state._pagination._pageSizeOptions || PAGINATION_OPTIONS, _siblingCount: this.state._pagination._siblingCount, _tooltipAlign: "bottom", _max: this.state._pagination._max || this.state._pagination._total || this.state._data.length, _label: translate('kol-table-pagination-label', { placeholders: { label: this.state._label } }) })))), hAsync("div", { key: 'dd271efd5f7a5cb66db8e6ce801a75dfe67900d9', ref: (element) => (this.tableDivElement = element), class: "table", tabindex: this.tableDivElementHasScrollbar ? '-1' : undefined }, hAsync("table", { key: '9524025a152083e03e6f06f40190a83c4e0351e3', style: {
26027
26025
  minWidth: this.state._minWidth,
26028
- } }, hAsync("div", { key: '4741735ee0c495b410a674d581b499e0b723392c', class: "focus-element", tabindex: this.tableDivElementHasScrollbar ? '0' : undefined, "aria-describedby": "caption" }, "\u00A0"), hAsync("caption", { key: '93a826bc5948e1963454d72ad8f91eb634fd8cab', id: "caption" }, this.state._label), Array.isArray(this.state._headers.horizontal) && (hAsync("thead", { key: '220ac1c8b7348f5e084f81ad960e9a239f762219' }, this.state._headers.horizontal.map((cols, rowIndex) => (hAsync("tr", { key: `thead-${rowIndex}` }, cols.map((col, colIndex) => {
26026
+ } }, hAsync("div", { key: '0342cafad3b583e620ca78aacced520ec744f783', class: "focus-element", tabindex: this.tableDivElementHasScrollbar ? '0' : undefined, "aria-describedby": "caption" }, "\u00A0"), hAsync("caption", { key: '3658cc2df2bae6ce4f46a7dc21ae0adff6167ce3', id: "caption" }, this.state._label), Array.isArray(this.state._headers.horizontal) && (hAsync("thead", { key: 'ab713d6e6f9cc885eaebdf5f47075a1fe1d6f0c4' }, this.state._headers.horizontal.map((cols, rowIndex) => (hAsync("tr", { key: `thead-${rowIndex}` }, cols.map((col, colIndex) => {
26029
26027
  if (col.asTd === true) {
26030
26028
  return (hAsync("td", { key: `thead-${rowIndex}-${colIndex}-${col.label}`, class: {
26031
26029
  [col.textAlign]: typeof col.textAlign === 'string' && col.textAlign.length > 0,
@@ -26075,7 +26073,7 @@ class KolTable {
26075
26073
  },
26076
26074
  } })) : (col.label)));
26077
26075
  }
26078
- })))))), hAsync("tbody", { key: '7ccf940ad961025f5969f0b0af48a43b6e417bd2' }, dataField.map(this.renderTableRow)), this.state._dataFoot.length > 0 ? this.renderFoot() : ''))));
26076
+ })))))), hAsync("tbody", { key: 'b349860a154beaaeeee6cc92f2224acf9f6dc450' }, dataField.map(this.renderTableRow)), this.state._dataFoot.length > 0 ? this.renderFoot() : ''))));
26079
26077
  }
26080
26078
  static get watchers() { return {
26081
26079
  "_caption": ["validateCaption"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@public-ui/hydrate",
3
- "version": "1.7.27-rc.1",
3
+ "version": "1.7.27",
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": "5.0.7",
49
- "@public-ui/components": "1.7.27-rc.1"
49
+ "@public-ui/components": "1.7.27"
50
50
  },
51
51
  "peerDependencies": {
52
- "@public-ui/components": "1.7.27-rc.1"
52
+ "@public-ui/components": "1.7.27"
53
53
  },
54
54
  "sideEffects": false,
55
55
  "type": "commonjs",