@public-ui/hydrate 2.2.4 → 2.2.5-rc.1
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 +85 -57
- package/dist/index.mjs +85 -57
- package/dist/package.json +12 -0
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -4044,7 +4044,7 @@ const validateDownload = (component, value) => {
|
|
|
4044
4044
|
};
|
|
4045
4045
|
|
|
4046
4046
|
const validateErrorList = (component, value) => {
|
|
4047
|
-
watchValidator(component, 'errorList', (value) =>
|
|
4047
|
+
watchValidator(component, 'errorList', (value) => Array.isArray(value) && value.find((v) => !(typeof v === 'string' || typeof v === 'function')) === undefined, new Set(['string', 'function']), value);
|
|
4048
4048
|
};
|
|
4049
4049
|
|
|
4050
4050
|
const validateHasCloser = (component, value) => {
|
|
@@ -4228,10 +4228,6 @@ const validateMax = (component, value, options) => {
|
|
|
4228
4228
|
watchNumber(component, '_max', value, options);
|
|
4229
4229
|
};
|
|
4230
4230
|
|
|
4231
|
-
const validateModal = (component, value) => {
|
|
4232
|
-
watchBoolean(component, '_modal', value);
|
|
4233
|
-
};
|
|
4234
|
-
|
|
4235
4231
|
const validateMsg = (component, value) => {
|
|
4236
4232
|
objectObjectHandler(value, () => {
|
|
4237
4233
|
try {
|
|
@@ -4364,6 +4360,7 @@ const validateTableDataFoot = (component, value, setStateHooks) => {
|
|
|
4364
4360
|
});
|
|
4365
4361
|
};
|
|
4366
4362
|
|
|
4363
|
+
const HEADER_CELL_WIDTH_VALIDATOR = /^\d+(\.\d+)?([a-z]+)?$/;
|
|
4367
4364
|
const validateTableHeaderCells = (component, value) => {
|
|
4368
4365
|
emptyStringByArrayHandler(value, () => {
|
|
4369
4366
|
objectObjectHandler(value, () => {
|
|
@@ -4372,7 +4369,30 @@ const validateTableHeaderCells = (component, value) => {
|
|
|
4372
4369
|
}
|
|
4373
4370
|
catch (e) {
|
|
4374
4371
|
}
|
|
4375
|
-
watchValidator(component, '_headerCells', (value) => typeof value === 'object' &&
|
|
4372
|
+
watchValidator(component, '_headerCells', (value) => typeof value === 'object' &&
|
|
4373
|
+
value !== null &&
|
|
4374
|
+
(value.horizontal === undefined ||
|
|
4375
|
+
(Array.isArray(value.horizontal) && value.horizontal.find((headerRow) => !Array.isArray(headerRow)) === undefined)) &&
|
|
4376
|
+
(value.vertical === undefined || (Array.isArray(value.vertical) && value.vertical.find((headerCol) => !Array.isArray(headerCol)) === undefined)) &&
|
|
4377
|
+
true, new Set(['TableHeaderCellsPropType']), value, {
|
|
4378
|
+
hooks: {
|
|
4379
|
+
afterPatch: (value, state) => {
|
|
4380
|
+
var _a;
|
|
4381
|
+
const headerCells = value;
|
|
4382
|
+
const widths = [];
|
|
4383
|
+
(_a = headerCells.horizontal) === null || _a === void 0 ? void 0 : _a.forEach((headerRow) => {
|
|
4384
|
+
headerRow.forEach((headerCell) => {
|
|
4385
|
+
if (headerCell.width && HEADER_CELL_WIDTH_VALIDATOR.test(headerCell.width)) {
|
|
4386
|
+
widths.push(headerCell.width);
|
|
4387
|
+
}
|
|
4388
|
+
});
|
|
4389
|
+
});
|
|
4390
|
+
if (widths.length > 0) {
|
|
4391
|
+
state._minWidth = `calc(${widths.join(' + ')})`;
|
|
4392
|
+
}
|
|
4393
|
+
},
|
|
4394
|
+
},
|
|
4395
|
+
});
|
|
4376
4396
|
});
|
|
4377
4397
|
});
|
|
4378
4398
|
};
|
|
@@ -6939,14 +6959,9 @@ class KolDrawer {
|
|
|
6939
6959
|
};
|
|
6940
6960
|
}
|
|
6941
6961
|
async open() {
|
|
6942
|
-
var _a
|
|
6962
|
+
var _a;
|
|
6943
6963
|
this.state = Object.assign(Object.assign({}, this.state), { _open: true });
|
|
6944
|
-
|
|
6945
|
-
(_a = this.dialogElement) === null || _a === void 0 ? void 0 : _a.showModal();
|
|
6946
|
-
}
|
|
6947
|
-
else {
|
|
6948
|
-
(_b = this.dialogElement) === null || _b === void 0 ? void 0 : _b.show();
|
|
6949
|
-
}
|
|
6964
|
+
(_a = this.dialogElement) === null || _a === void 0 ? void 0 : _a.showModal();
|
|
6950
6965
|
}
|
|
6951
6966
|
async close() {
|
|
6952
6967
|
this.state = Object.assign(Object.assign({}, this.state), { _open: false });
|
|
@@ -6963,8 +6978,7 @@ class KolDrawer {
|
|
|
6963
6978
|
return (hAsync("div", { ref: this.getWrapperRef, class: `drawer__wrapper drawer__wrapper--${align} ${this.state._open ? 'drawer__wrapper--open' : 'is-closing'}`, "aria-label": this.state._label }, hAsync("div", { class: "drawer__content" }, hAsync("slot", null))));
|
|
6964
6979
|
}
|
|
6965
6980
|
render() {
|
|
6966
|
-
|
|
6967
|
-
return (hAsync(Host, { key: '9c670b4923f78c3060bafe6f2e90c45a20b89fd7', class: `kol-drawer drawer ${isModal ? 'drawer--modal' : ''}`, ref: (el) => (this.hostElement = el) }, hAsync("dialog", { key: 'd94fade1430bfed4dac37660d07ae5265b994f4f', class: "drawer__dialog", ref: this.getRef }, this.renderDialogContent())));
|
|
6981
|
+
return (hAsync(Host, { key: '18007fd3e3eb1d4794cafd1d18780b7f3a58fe4e', class: `kol-drawer drawer`, ref: (el) => (this.hostElement = el) }, hAsync("dialog", { key: '07cd87f6d086e51002c4fcea7402ca0910bc2c7a', class: "drawer__dialog", ref: this.getRef }, this.renderDialogContent())));
|
|
6968
6982
|
}
|
|
6969
6983
|
validateLabel(value) {
|
|
6970
6984
|
validateLabel(this, value, {
|
|
@@ -6974,9 +6988,6 @@ class KolDrawer {
|
|
|
6974
6988
|
validateAlign(value) {
|
|
6975
6989
|
validateAlign(this, value);
|
|
6976
6990
|
}
|
|
6977
|
-
validateModal(value) {
|
|
6978
|
-
validateModal(this, value);
|
|
6979
|
-
}
|
|
6980
6991
|
async validateOpen(value) {
|
|
6981
6992
|
if (typeof value === 'boolean') {
|
|
6982
6993
|
validateOpen(this, value);
|
|
@@ -7019,13 +7030,11 @@ class KolDrawer {
|
|
|
7019
7030
|
this.validateLabel(this._label);
|
|
7020
7031
|
await this.validateOpen(this._open);
|
|
7021
7032
|
this.validateAlign(this._align);
|
|
7022
|
-
this.validateModal(this._modal);
|
|
7023
7033
|
this.validateOn(this._on);
|
|
7024
7034
|
}
|
|
7025
7035
|
static get watchers() { return {
|
|
7026
7036
|
"_label": ["validateLabel"],
|
|
7027
7037
|
"_align": ["validateAlign"],
|
|
7028
|
-
"_modal": ["validateModal"],
|
|
7029
7038
|
"_open": ["validateOpen"],
|
|
7030
7039
|
"_on": ["validateOn"]
|
|
7031
7040
|
}; }
|
|
@@ -7073,16 +7082,11 @@ class KolForm {
|
|
|
7073
7082
|
(_b = this.state._on) === null || _b === void 0 ? void 0 : _b.onReset(event);
|
|
7074
7083
|
}
|
|
7075
7084
|
};
|
|
7076
|
-
this.handleLinkClick = (
|
|
7077
|
-
|
|
7078
|
-
|
|
7079
|
-
|
|
7080
|
-
|
|
7081
|
-
const targetElement = document.querySelector(hrefUrl.hash);
|
|
7082
|
-
if (targetElement && typeof targetElement.focus === 'function') {
|
|
7083
|
-
targetElement.scrollIntoView({ behavior: 'smooth' });
|
|
7084
|
-
targetElement.focus();
|
|
7085
|
-
}
|
|
7085
|
+
this.handleLinkClick = (selector) => {
|
|
7086
|
+
const targetElement = document.querySelector(selector);
|
|
7087
|
+
if (targetElement && typeof targetElement.focus === 'function') {
|
|
7088
|
+
targetElement.scrollIntoView({ behavior: 'smooth' });
|
|
7089
|
+
targetElement.focus();
|
|
7086
7090
|
}
|
|
7087
7091
|
};
|
|
7088
7092
|
this._on = undefined;
|
|
@@ -7091,9 +7095,13 @@ class KolForm {
|
|
|
7091
7095
|
this.state = {};
|
|
7092
7096
|
}
|
|
7093
7097
|
renderErrorList(errorList) {
|
|
7094
|
-
return (hAsync(KolAlertFc$1, {
|
|
7095
|
-
|
|
7096
|
-
|
|
7098
|
+
return (hAsync(KolAlertFc$1, { ref: (el) => {
|
|
7099
|
+
this.errorListBlock = el;
|
|
7100
|
+
}, type: "error", variant: "card", label: translate('kol-error-list-message') }, hAsync("nav", { "aria-label": translate('kol-error-list') }, hAsync("ul", null, errorList === null || errorList === void 0 ? void 0 : errorList.map((error, index) => (hAsync("li", { key: index }, hAsync(KolLinkWcTag, { _href: "", _label: error.message, _on: { onClick: typeof error.selector === 'string' ? () => this.handleLinkClick(String(error.selector)) : error.selector }, ref: (el) => {
|
|
7101
|
+
if (index === 0) {
|
|
7102
|
+
this.errorListFirstLink = el;
|
|
7103
|
+
this.scrollToErrorList();
|
|
7104
|
+
}
|
|
7097
7105
|
} }))))))));
|
|
7098
7106
|
}
|
|
7099
7107
|
renderFormElement() {
|
|
@@ -7101,13 +7109,21 @@ class KolForm {
|
|
|
7101
7109
|
}
|
|
7102
7110
|
render() {
|
|
7103
7111
|
const hasErrorList = Array.isArray(this._errorList) && this._errorList.length > 0;
|
|
7104
|
-
return (hAsync(Host, { key: '
|
|
7112
|
+
return (hAsync(Host, { key: '69dbcbe8a46d038040ba381cdf6ec67c8e39f0dc', class: "kol-form" }, hasErrorList && this.renderErrorList(this._errorList), this.renderFormElement()));
|
|
7105
7113
|
}
|
|
7106
|
-
|
|
7114
|
+
scrollToErrorList() {
|
|
7107
7115
|
var _a;
|
|
7108
|
-
|
|
7109
|
-
|
|
7110
|
-
|
|
7116
|
+
(_a = this.errorListBlock) === null || _a === void 0 ? void 0 : _a.scrollIntoView({
|
|
7117
|
+
behavior: 'smooth',
|
|
7118
|
+
block: 'start',
|
|
7119
|
+
});
|
|
7120
|
+
setTimeout(() => {
|
|
7121
|
+
var _a, _b;
|
|
7122
|
+
(_b = (_a = this.errorListFirstLink) === null || _a === void 0 ? void 0 : _a.querySelector('a')) === null || _b === void 0 ? void 0 : _b.focus();
|
|
7123
|
+
}, 250);
|
|
7124
|
+
}
|
|
7125
|
+
async focusErrorList() {
|
|
7126
|
+
this.scrollToErrorList();
|
|
7111
7127
|
return Promise.resolve();
|
|
7112
7128
|
}
|
|
7113
7129
|
validateOn(value) {
|
|
@@ -9366,11 +9382,7 @@ class KolInputNumber {
|
|
|
9366
9382
|
this.controller.validateTouched(value);
|
|
9367
9383
|
}
|
|
9368
9384
|
validateValue(value) {
|
|
9369
|
-
this.controller.validateValueEx(value
|
|
9370
|
-
if (v === '' && this.inputRef) {
|
|
9371
|
-
this.inputRef.value = '';
|
|
9372
|
-
}
|
|
9373
|
-
});
|
|
9385
|
+
this.controller.validateValueEx(value);
|
|
9374
9386
|
}
|
|
9375
9387
|
componentWillLoad() {
|
|
9376
9388
|
this._touched = this._touched === true;
|
|
@@ -13351,7 +13363,8 @@ function isContainingBlock(elementOrCss) {
|
|
|
13351
13363
|
const css = isElement(elementOrCss) ? getComputedStyle(elementOrCss) : elementOrCss;
|
|
13352
13364
|
|
|
13353
13365
|
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
13354
|
-
|
|
13366
|
+
// https://drafts.csswg.org/css-transforms-2/#individual-transforms
|
|
13367
|
+
return ['transform', 'translate', 'scale', 'rotate', 'perspective'].some(value => css[value] ? css[value] !== 'none' : false) || (css.containerType ? css.containerType !== 'normal' : false) || !webkit && (css.backdropFilter ? css.backdropFilter !== 'none' : false) || !webkit && (css.filter ? css.filter !== 'none' : false) || ['transform', 'translate', 'scale', 'rotate', 'perspective', 'filter'].some(value => (css.willChange || '').includes(value)) || ['paint', 'layout', 'strict', 'content'].some(value => (css.contain || '').includes(value));
|
|
13355
13368
|
}
|
|
13356
13369
|
function getContainingBlock(element) {
|
|
13357
13370
|
let currentNode = getParentNode(element);
|
|
@@ -13909,6 +13922,10 @@ const platform = {
|
|
|
13909
13922
|
isRTL
|
|
13910
13923
|
};
|
|
13911
13924
|
|
|
13925
|
+
function rectsAreEqual(a, b) {
|
|
13926
|
+
return a.x === b.x && a.y === b.y && a.width === b.width && a.height === b.height;
|
|
13927
|
+
}
|
|
13928
|
+
|
|
13912
13929
|
// https://samthor.au/2021/observing-dom/
|
|
13913
13930
|
function observeMove(element, onMove) {
|
|
13914
13931
|
let io = null;
|
|
@@ -13928,12 +13945,13 @@ function observeMove(element, onMove) {
|
|
|
13928
13945
|
threshold = 1;
|
|
13929
13946
|
}
|
|
13930
13947
|
cleanup();
|
|
13948
|
+
const elementRectForRootMargin = element.getBoundingClientRect();
|
|
13931
13949
|
const {
|
|
13932
13950
|
left,
|
|
13933
13951
|
top,
|
|
13934
13952
|
width,
|
|
13935
13953
|
height
|
|
13936
|
-
} =
|
|
13954
|
+
} = elementRectForRootMargin;
|
|
13937
13955
|
if (!skip) {
|
|
13938
13956
|
onMove();
|
|
13939
13957
|
}
|
|
@@ -13966,6 +13984,16 @@ function observeMove(element, onMove) {
|
|
|
13966
13984
|
refresh(false, ratio);
|
|
13967
13985
|
}
|
|
13968
13986
|
}
|
|
13987
|
+
if (ratio === 1 && !rectsAreEqual(elementRectForRootMargin, element.getBoundingClientRect())) {
|
|
13988
|
+
// It's possible that even though the ratio is reported as 1, the
|
|
13989
|
+
// element is not actually fully within the IntersectionObserver's root
|
|
13990
|
+
// area anymore. This can happen under performance constraints. This may
|
|
13991
|
+
// be a bug in the browser's IntersectionObserver implementation. To
|
|
13992
|
+
// work around this, we compare the element's bounding rect now with
|
|
13993
|
+
// what it was at the time we created the IntersectionObserver. If they
|
|
13994
|
+
// are not equal then the element moved, so we refresh.
|
|
13995
|
+
refresh();
|
|
13996
|
+
}
|
|
13969
13997
|
isFirstUpdate = false;
|
|
13970
13998
|
}
|
|
13971
13999
|
|
|
@@ -14043,7 +14071,7 @@ function autoUpdate(reference, floating, update, options) {
|
|
|
14043
14071
|
}
|
|
14044
14072
|
function frameLoop() {
|
|
14045
14073
|
const nextRefRect = getBoundingClientRect(reference);
|
|
14046
|
-
if (prevRefRect && (
|
|
14074
|
+
if (prevRefRect && !rectsAreEqual(prevRefRect, nextRefRect)) {
|
|
14047
14075
|
update();
|
|
14048
14076
|
}
|
|
14049
14077
|
prevRefRect = nextRefRect;
|
|
@@ -23987,7 +24015,7 @@ class KolTable {
|
|
|
23987
24015
|
this._on = undefined;
|
|
23988
24016
|
}
|
|
23989
24017
|
render() {
|
|
23990
|
-
return (hAsync(KolTableStatefulTag, { key: '
|
|
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 }));
|
|
23991
24019
|
}
|
|
23992
24020
|
static get cmpMeta() { return {
|
|
23993
24021
|
"$flags$": 9,
|
|
@@ -24412,7 +24440,7 @@ class KolTableStateful {
|
|
|
24412
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) })))),
|
|
24413
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) })))),
|
|
24414
24442
|
};
|
|
24415
|
-
return (hAsync(Host, { key: '
|
|
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: {
|
|
24416
24444
|
onSort: (_, payload) => {
|
|
24417
24445
|
this.handleSort(payload);
|
|
24418
24446
|
},
|
|
@@ -24475,7 +24503,7 @@ class KolTableStateless$1 {
|
|
|
24475
24503
|
this._selection = undefined;
|
|
24476
24504
|
}
|
|
24477
24505
|
render() {
|
|
24478
|
-
return (hAsync(Host, { key: '
|
|
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 })));
|
|
24479
24507
|
}
|
|
24480
24508
|
static get style() { return {
|
|
24481
24509
|
default: KolTableStatelessDefaultStyle0
|
|
@@ -24571,7 +24599,7 @@ class KolTableStateless {
|
|
|
24571
24599
|
});
|
|
24572
24600
|
}
|
|
24573
24601
|
validateMinWidth(value) {
|
|
24574
|
-
watchString(this, '
|
|
24602
|
+
watchString(this, '_deprecatedMinWidth', value, {
|
|
24575
24603
|
defaultValue: undefined,
|
|
24576
24604
|
});
|
|
24577
24605
|
}
|
|
@@ -24924,9 +24952,9 @@ class KolTableStateless {
|
|
|
24924
24952
|
render() {
|
|
24925
24953
|
const dataField = this.createDataField(this.state._data, this.state._headerCells);
|
|
24926
24954
|
this.checkboxRefs = [];
|
|
24927
|
-
return (hAsync(Host, { key: '
|
|
24928
|
-
minWidth: this.state._minWidth,
|
|
24929
|
-
} }, hAsync("div", { key: '
|
|
24955
|
+
return (hAsync(Host, { key: '9518b44a4421b5843936ee7623532733b6134a2a', class: "kol-table-stateless-wc" }, hAsync("div", { key: '5bfd8c297dd3bed301c7e7e455b60278e270af24', ref: (element) => (this.tableDivElement = element), class: "table", tabindex: this.tableDivElementHasScrollbar ? '-1' : undefined }, hAsync("table", { key: '6906eae36940a1a00a5eed7401526a218949e990', style: {
|
|
24956
|
+
minWidth: this.state._deprecatedMinWidth || this.state._minWidth,
|
|
24957
|
+
} }, hAsync("div", { key: 'ee461a67c036209a11cd55134023a85090c371d8', class: "focus-element", tabindex: this.tableDivElementHasScrollbar ? '0' : undefined, "aria-describedby": "caption" }, "\u00A0"), hAsync("caption", { key: 'a8aa614eb1b4db063238a818022bf2139b269b09', id: "caption" }, this.state._label), Array.isArray(this.state._headerCells.horizontal) && (hAsync("thead", { key: '1c88c8dba9d88ef7163645b686d1d5007cc75f47' }, [
|
|
24930
24958
|
this.state._headerCells.horizontal.map((cols, rowIndex) => (hAsync("tr", { key: `thead-${rowIndex}` }, this.state._selection && this.renderHeadingSelectionCell(), rowIndex === 0 && this.renderHeaderTdCell(), Array.isArray(cols) &&
|
|
24931
24959
|
cols.map((cell, colIndex) => {
|
|
24932
24960
|
if (cell.asTd === true) {
|
|
@@ -24946,7 +24974,7 @@ class KolTableStateless {
|
|
|
24946
24974
|
}
|
|
24947
24975
|
})))),
|
|
24948
24976
|
this.renderSpacer('head', this.state._headerCells.horizontal),
|
|
24949
|
-
])), hAsync("tbody", { key: '
|
|
24977
|
+
])), hAsync("tbody", { key: 'd5983096363ef26b192a129bec8ab8e1df051056' }, dataField.map((row, rowIndex) => this.renderTableRow(row, rowIndex, true))), this.renderFoot()))));
|
|
24950
24978
|
}
|
|
24951
24979
|
get host() { return getElement(this); }
|
|
24952
24980
|
static get watchers() { return {
|
|
@@ -26035,7 +26063,7 @@ class KolTree {
|
|
|
26035
26063
|
this._label = undefined;
|
|
26036
26064
|
}
|
|
26037
26065
|
render() {
|
|
26038
|
-
return (hAsync(Host, { key: '
|
|
26066
|
+
return (hAsync(Host, { key: 'f264ff4f437f2d94209b5e1b408fc12bae1e3715', class: "kol-tree" }, hAsync(KolTreeWcTag, { key: '074485479eab7e05309d0804a5d9afefac16a243', _label: this._label }, hAsync("slot", { key: '7b2f6a10e88584659e00d2cb9123ee9e8ed7b0ea' }))));
|
|
26039
26067
|
}
|
|
26040
26068
|
static get style() { return {
|
|
26041
26069
|
default: KolTreeDefaultStyle0
|
|
@@ -26083,7 +26111,7 @@ class KolTreeItem {
|
|
|
26083
26111
|
return (_b = (await ((_a = this.element) === null || _a === void 0 ? void 0 : _a.isOpen()))) !== null && _b !== void 0 ? _b : false;
|
|
26084
26112
|
}
|
|
26085
26113
|
render() {
|
|
26086
|
-
return (hAsync(KolTreeItemWcTag, { key: '
|
|
26114
|
+
return (hAsync(KolTreeItemWcTag, { key: 'fdaac019e361b8efe063a22a47f3b67fab18d1ba', class: "kol-tree-item", _active: this._active, _label: this._label, _open: this._open, _href: this._href, ref: (element) => (this.element = element) }, hAsync("slot", { key: '73d1d194d03797ef974eab18f49c830148649110' })));
|
|
26087
26115
|
}
|
|
26088
26116
|
static get style() { return {
|
|
26089
26117
|
default: KolTreeItemDefaultStyle0
|
|
@@ -26237,7 +26265,7 @@ class KolTreeWc {
|
|
|
26237
26265
|
validateLabel(this, value);
|
|
26238
26266
|
}
|
|
26239
26267
|
render() {
|
|
26240
|
-
return (hAsync(Host, { key: '
|
|
26268
|
+
return (hAsync(Host, { key: 'fc79fee1595fed55d37dc2fb4f3509ff6c16686b', onSlotchange: this.handleSlotchange.bind(this), class: "kol-tree-wc" }, hAsync("nav", { key: 'd8d4800627e61c9766150d1d9a440889cf122440', class: "tree", "aria-label": this.state._label }, hAsync("ul", { key: '40b1ee8c5d89febb2975168f5630fdd01b6e4e97', class: "treeview-navigation", role: "tree", "aria-label": this.state._label }, hAsync("slot", { key: '86f66e7236df8aa03d942450c06a2f2f5930b987' })))));
|
|
26241
26269
|
}
|
|
26242
26270
|
static isTreeItem(element) {
|
|
26243
26271
|
return (element === null || element === void 0 ? void 0 : element.tagName) === KolTreeItemTag.toUpperCase();
|
package/dist/index.mjs
CHANGED
|
@@ -4040,7 +4040,7 @@ const validateDownload = (component, value) => {
|
|
|
4040
4040
|
};
|
|
4041
4041
|
|
|
4042
4042
|
const validateErrorList = (component, value) => {
|
|
4043
|
-
watchValidator(component, 'errorList', (value) =>
|
|
4043
|
+
watchValidator(component, 'errorList', (value) => Array.isArray(value) && value.find((v) => !(typeof v === 'string' || typeof v === 'function')) === undefined, new Set(['string', 'function']), value);
|
|
4044
4044
|
};
|
|
4045
4045
|
|
|
4046
4046
|
const validateHasCloser = (component, value) => {
|
|
@@ -4224,10 +4224,6 @@ const validateMax = (component, value, options) => {
|
|
|
4224
4224
|
watchNumber(component, '_max', value, options);
|
|
4225
4225
|
};
|
|
4226
4226
|
|
|
4227
|
-
const validateModal = (component, value) => {
|
|
4228
|
-
watchBoolean(component, '_modal', value);
|
|
4229
|
-
};
|
|
4230
|
-
|
|
4231
4227
|
const validateMsg = (component, value) => {
|
|
4232
4228
|
objectObjectHandler(value, () => {
|
|
4233
4229
|
try {
|
|
@@ -4360,6 +4356,7 @@ const validateTableDataFoot = (component, value, setStateHooks) => {
|
|
|
4360
4356
|
});
|
|
4361
4357
|
};
|
|
4362
4358
|
|
|
4359
|
+
const HEADER_CELL_WIDTH_VALIDATOR = /^\d+(\.\d+)?([a-z]+)?$/;
|
|
4363
4360
|
const validateTableHeaderCells = (component, value) => {
|
|
4364
4361
|
emptyStringByArrayHandler(value, () => {
|
|
4365
4362
|
objectObjectHandler(value, () => {
|
|
@@ -4368,7 +4365,30 @@ const validateTableHeaderCells = (component, value) => {
|
|
|
4368
4365
|
}
|
|
4369
4366
|
catch (e) {
|
|
4370
4367
|
}
|
|
4371
|
-
watchValidator(component, '_headerCells', (value) => typeof value === 'object' &&
|
|
4368
|
+
watchValidator(component, '_headerCells', (value) => typeof value === 'object' &&
|
|
4369
|
+
value !== null &&
|
|
4370
|
+
(value.horizontal === undefined ||
|
|
4371
|
+
(Array.isArray(value.horizontal) && value.horizontal.find((headerRow) => !Array.isArray(headerRow)) === undefined)) &&
|
|
4372
|
+
(value.vertical === undefined || (Array.isArray(value.vertical) && value.vertical.find((headerCol) => !Array.isArray(headerCol)) === undefined)) &&
|
|
4373
|
+
true, new Set(['TableHeaderCellsPropType']), value, {
|
|
4374
|
+
hooks: {
|
|
4375
|
+
afterPatch: (value, state) => {
|
|
4376
|
+
var _a;
|
|
4377
|
+
const headerCells = value;
|
|
4378
|
+
const widths = [];
|
|
4379
|
+
(_a = headerCells.horizontal) === null || _a === void 0 ? void 0 : _a.forEach((headerRow) => {
|
|
4380
|
+
headerRow.forEach((headerCell) => {
|
|
4381
|
+
if (headerCell.width && HEADER_CELL_WIDTH_VALIDATOR.test(headerCell.width)) {
|
|
4382
|
+
widths.push(headerCell.width);
|
|
4383
|
+
}
|
|
4384
|
+
});
|
|
4385
|
+
});
|
|
4386
|
+
if (widths.length > 0) {
|
|
4387
|
+
state._minWidth = `calc(${widths.join(' + ')})`;
|
|
4388
|
+
}
|
|
4389
|
+
},
|
|
4390
|
+
},
|
|
4391
|
+
});
|
|
4372
4392
|
});
|
|
4373
4393
|
});
|
|
4374
4394
|
};
|
|
@@ -6935,14 +6955,9 @@ class KolDrawer {
|
|
|
6935
6955
|
};
|
|
6936
6956
|
}
|
|
6937
6957
|
async open() {
|
|
6938
|
-
var _a
|
|
6958
|
+
var _a;
|
|
6939
6959
|
this.state = Object.assign(Object.assign({}, this.state), { _open: true });
|
|
6940
|
-
|
|
6941
|
-
(_a = this.dialogElement) === null || _a === void 0 ? void 0 : _a.showModal();
|
|
6942
|
-
}
|
|
6943
|
-
else {
|
|
6944
|
-
(_b = this.dialogElement) === null || _b === void 0 ? void 0 : _b.show();
|
|
6945
|
-
}
|
|
6960
|
+
(_a = this.dialogElement) === null || _a === void 0 ? void 0 : _a.showModal();
|
|
6946
6961
|
}
|
|
6947
6962
|
async close() {
|
|
6948
6963
|
this.state = Object.assign(Object.assign({}, this.state), { _open: false });
|
|
@@ -6959,8 +6974,7 @@ class KolDrawer {
|
|
|
6959
6974
|
return (hAsync("div", { ref: this.getWrapperRef, class: `drawer__wrapper drawer__wrapper--${align} ${this.state._open ? 'drawer__wrapper--open' : 'is-closing'}`, "aria-label": this.state._label }, hAsync("div", { class: "drawer__content" }, hAsync("slot", null))));
|
|
6960
6975
|
}
|
|
6961
6976
|
render() {
|
|
6962
|
-
|
|
6963
|
-
return (hAsync(Host, { key: '9c670b4923f78c3060bafe6f2e90c45a20b89fd7', class: `kol-drawer drawer ${isModal ? 'drawer--modal' : ''}`, ref: (el) => (this.hostElement = el) }, hAsync("dialog", { key: 'd94fade1430bfed4dac37660d07ae5265b994f4f', class: "drawer__dialog", ref: this.getRef }, this.renderDialogContent())));
|
|
6977
|
+
return (hAsync(Host, { key: '18007fd3e3eb1d4794cafd1d18780b7f3a58fe4e', class: `kol-drawer drawer`, ref: (el) => (this.hostElement = el) }, hAsync("dialog", { key: '07cd87f6d086e51002c4fcea7402ca0910bc2c7a', class: "drawer__dialog", ref: this.getRef }, this.renderDialogContent())));
|
|
6964
6978
|
}
|
|
6965
6979
|
validateLabel(value) {
|
|
6966
6980
|
validateLabel(this, value, {
|
|
@@ -6970,9 +6984,6 @@ class KolDrawer {
|
|
|
6970
6984
|
validateAlign(value) {
|
|
6971
6985
|
validateAlign(this, value);
|
|
6972
6986
|
}
|
|
6973
|
-
validateModal(value) {
|
|
6974
|
-
validateModal(this, value);
|
|
6975
|
-
}
|
|
6976
6987
|
async validateOpen(value) {
|
|
6977
6988
|
if (typeof value === 'boolean') {
|
|
6978
6989
|
validateOpen(this, value);
|
|
@@ -7015,13 +7026,11 @@ class KolDrawer {
|
|
|
7015
7026
|
this.validateLabel(this._label);
|
|
7016
7027
|
await this.validateOpen(this._open);
|
|
7017
7028
|
this.validateAlign(this._align);
|
|
7018
|
-
this.validateModal(this._modal);
|
|
7019
7029
|
this.validateOn(this._on);
|
|
7020
7030
|
}
|
|
7021
7031
|
static get watchers() { return {
|
|
7022
7032
|
"_label": ["validateLabel"],
|
|
7023
7033
|
"_align": ["validateAlign"],
|
|
7024
|
-
"_modal": ["validateModal"],
|
|
7025
7034
|
"_open": ["validateOpen"],
|
|
7026
7035
|
"_on": ["validateOn"]
|
|
7027
7036
|
}; }
|
|
@@ -7069,16 +7078,11 @@ class KolForm {
|
|
|
7069
7078
|
(_b = this.state._on) === null || _b === void 0 ? void 0 : _b.onReset(event);
|
|
7070
7079
|
}
|
|
7071
7080
|
};
|
|
7072
|
-
this.handleLinkClick = (
|
|
7073
|
-
|
|
7074
|
-
|
|
7075
|
-
|
|
7076
|
-
|
|
7077
|
-
const targetElement = document.querySelector(hrefUrl.hash);
|
|
7078
|
-
if (targetElement && typeof targetElement.focus === 'function') {
|
|
7079
|
-
targetElement.scrollIntoView({ behavior: 'smooth' });
|
|
7080
|
-
targetElement.focus();
|
|
7081
|
-
}
|
|
7081
|
+
this.handleLinkClick = (selector) => {
|
|
7082
|
+
const targetElement = document.querySelector(selector);
|
|
7083
|
+
if (targetElement && typeof targetElement.focus === 'function') {
|
|
7084
|
+
targetElement.scrollIntoView({ behavior: 'smooth' });
|
|
7085
|
+
targetElement.focus();
|
|
7082
7086
|
}
|
|
7083
7087
|
};
|
|
7084
7088
|
this._on = undefined;
|
|
@@ -7087,9 +7091,13 @@ class KolForm {
|
|
|
7087
7091
|
this.state = {};
|
|
7088
7092
|
}
|
|
7089
7093
|
renderErrorList(errorList) {
|
|
7090
|
-
return (hAsync(KolAlertFc$1, {
|
|
7091
|
-
|
|
7092
|
-
|
|
7094
|
+
return (hAsync(KolAlertFc$1, { ref: (el) => {
|
|
7095
|
+
this.errorListBlock = el;
|
|
7096
|
+
}, type: "error", variant: "card", label: translate('kol-error-list-message') }, hAsync("nav", { "aria-label": translate('kol-error-list') }, hAsync("ul", null, errorList === null || errorList === void 0 ? void 0 : errorList.map((error, index) => (hAsync("li", { key: index }, hAsync(KolLinkWcTag, { _href: "", _label: error.message, _on: { onClick: typeof error.selector === 'string' ? () => this.handleLinkClick(String(error.selector)) : error.selector }, ref: (el) => {
|
|
7097
|
+
if (index === 0) {
|
|
7098
|
+
this.errorListFirstLink = el;
|
|
7099
|
+
this.scrollToErrorList();
|
|
7100
|
+
}
|
|
7093
7101
|
} }))))))));
|
|
7094
7102
|
}
|
|
7095
7103
|
renderFormElement() {
|
|
@@ -7097,13 +7105,21 @@ class KolForm {
|
|
|
7097
7105
|
}
|
|
7098
7106
|
render() {
|
|
7099
7107
|
const hasErrorList = Array.isArray(this._errorList) && this._errorList.length > 0;
|
|
7100
|
-
return (hAsync(Host, { key: '
|
|
7108
|
+
return (hAsync(Host, { key: '69dbcbe8a46d038040ba381cdf6ec67c8e39f0dc', class: "kol-form" }, hasErrorList && this.renderErrorList(this._errorList), this.renderFormElement()));
|
|
7101
7109
|
}
|
|
7102
|
-
|
|
7110
|
+
scrollToErrorList() {
|
|
7103
7111
|
var _a;
|
|
7104
|
-
|
|
7105
|
-
|
|
7106
|
-
|
|
7112
|
+
(_a = this.errorListBlock) === null || _a === void 0 ? void 0 : _a.scrollIntoView({
|
|
7113
|
+
behavior: 'smooth',
|
|
7114
|
+
block: 'start',
|
|
7115
|
+
});
|
|
7116
|
+
setTimeout(() => {
|
|
7117
|
+
var _a, _b;
|
|
7118
|
+
(_b = (_a = this.errorListFirstLink) === null || _a === void 0 ? void 0 : _a.querySelector('a')) === null || _b === void 0 ? void 0 : _b.focus();
|
|
7119
|
+
}, 250);
|
|
7120
|
+
}
|
|
7121
|
+
async focusErrorList() {
|
|
7122
|
+
this.scrollToErrorList();
|
|
7107
7123
|
return Promise.resolve();
|
|
7108
7124
|
}
|
|
7109
7125
|
validateOn(value) {
|
|
@@ -9362,11 +9378,7 @@ class KolInputNumber {
|
|
|
9362
9378
|
this.controller.validateTouched(value);
|
|
9363
9379
|
}
|
|
9364
9380
|
validateValue(value) {
|
|
9365
|
-
this.controller.validateValueEx(value
|
|
9366
|
-
if (v === '' && this.inputRef) {
|
|
9367
|
-
this.inputRef.value = '';
|
|
9368
|
-
}
|
|
9369
|
-
});
|
|
9381
|
+
this.controller.validateValueEx(value);
|
|
9370
9382
|
}
|
|
9371
9383
|
componentWillLoad() {
|
|
9372
9384
|
this._touched = this._touched === true;
|
|
@@ -13347,7 +13359,8 @@ function isContainingBlock(elementOrCss) {
|
|
|
13347
13359
|
const css = isElement(elementOrCss) ? getComputedStyle(elementOrCss) : elementOrCss;
|
|
13348
13360
|
|
|
13349
13361
|
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
13350
|
-
|
|
13362
|
+
// https://drafts.csswg.org/css-transforms-2/#individual-transforms
|
|
13363
|
+
return ['transform', 'translate', 'scale', 'rotate', 'perspective'].some(value => css[value] ? css[value] !== 'none' : false) || (css.containerType ? css.containerType !== 'normal' : false) || !webkit && (css.backdropFilter ? css.backdropFilter !== 'none' : false) || !webkit && (css.filter ? css.filter !== 'none' : false) || ['transform', 'translate', 'scale', 'rotate', 'perspective', 'filter'].some(value => (css.willChange || '').includes(value)) || ['paint', 'layout', 'strict', 'content'].some(value => (css.contain || '').includes(value));
|
|
13351
13364
|
}
|
|
13352
13365
|
function getContainingBlock(element) {
|
|
13353
13366
|
let currentNode = getParentNode(element);
|
|
@@ -13905,6 +13918,10 @@ const platform = {
|
|
|
13905
13918
|
isRTL
|
|
13906
13919
|
};
|
|
13907
13920
|
|
|
13921
|
+
function rectsAreEqual(a, b) {
|
|
13922
|
+
return a.x === b.x && a.y === b.y && a.width === b.width && a.height === b.height;
|
|
13923
|
+
}
|
|
13924
|
+
|
|
13908
13925
|
// https://samthor.au/2021/observing-dom/
|
|
13909
13926
|
function observeMove(element, onMove) {
|
|
13910
13927
|
let io = null;
|
|
@@ -13924,12 +13941,13 @@ function observeMove(element, onMove) {
|
|
|
13924
13941
|
threshold = 1;
|
|
13925
13942
|
}
|
|
13926
13943
|
cleanup();
|
|
13944
|
+
const elementRectForRootMargin = element.getBoundingClientRect();
|
|
13927
13945
|
const {
|
|
13928
13946
|
left,
|
|
13929
13947
|
top,
|
|
13930
13948
|
width,
|
|
13931
13949
|
height
|
|
13932
|
-
} =
|
|
13950
|
+
} = elementRectForRootMargin;
|
|
13933
13951
|
if (!skip) {
|
|
13934
13952
|
onMove();
|
|
13935
13953
|
}
|
|
@@ -13962,6 +13980,16 @@ function observeMove(element, onMove) {
|
|
|
13962
13980
|
refresh(false, ratio);
|
|
13963
13981
|
}
|
|
13964
13982
|
}
|
|
13983
|
+
if (ratio === 1 && !rectsAreEqual(elementRectForRootMargin, element.getBoundingClientRect())) {
|
|
13984
|
+
// It's possible that even though the ratio is reported as 1, the
|
|
13985
|
+
// element is not actually fully within the IntersectionObserver's root
|
|
13986
|
+
// area anymore. This can happen under performance constraints. This may
|
|
13987
|
+
// be a bug in the browser's IntersectionObserver implementation. To
|
|
13988
|
+
// work around this, we compare the element's bounding rect now with
|
|
13989
|
+
// what it was at the time we created the IntersectionObserver. If they
|
|
13990
|
+
// are not equal then the element moved, so we refresh.
|
|
13991
|
+
refresh();
|
|
13992
|
+
}
|
|
13965
13993
|
isFirstUpdate = false;
|
|
13966
13994
|
}
|
|
13967
13995
|
|
|
@@ -14039,7 +14067,7 @@ function autoUpdate(reference, floating, update, options) {
|
|
|
14039
14067
|
}
|
|
14040
14068
|
function frameLoop() {
|
|
14041
14069
|
const nextRefRect = getBoundingClientRect(reference);
|
|
14042
|
-
if (prevRefRect && (
|
|
14070
|
+
if (prevRefRect && !rectsAreEqual(prevRefRect, nextRefRect)) {
|
|
14043
14071
|
update();
|
|
14044
14072
|
}
|
|
14045
14073
|
prevRefRect = nextRefRect;
|
|
@@ -23983,7 +24011,7 @@ class KolTable {
|
|
|
23983
24011
|
this._on = undefined;
|
|
23984
24012
|
}
|
|
23985
24013
|
render() {
|
|
23986
|
-
return (hAsync(KolTableStatefulTag, { key: '
|
|
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 }));
|
|
23987
24015
|
}
|
|
23988
24016
|
static get cmpMeta() { return {
|
|
23989
24017
|
"$flags$": 9,
|
|
@@ -24408,7 +24436,7 @@ class KolTableStateful {
|
|
|
24408
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) })))),
|
|
24409
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) })))),
|
|
24410
24438
|
};
|
|
24411
|
-
return (hAsync(Host, { key: '
|
|
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: {
|
|
24412
24440
|
onSort: (_, payload) => {
|
|
24413
24441
|
this.handleSort(payload);
|
|
24414
24442
|
},
|
|
@@ -24471,7 +24499,7 @@ class KolTableStateless$1 {
|
|
|
24471
24499
|
this._selection = undefined;
|
|
24472
24500
|
}
|
|
24473
24501
|
render() {
|
|
24474
|
-
return (hAsync(Host, { key: '
|
|
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 })));
|
|
24475
24503
|
}
|
|
24476
24504
|
static get style() { return {
|
|
24477
24505
|
default: KolTableStatelessDefaultStyle0
|
|
@@ -24567,7 +24595,7 @@ class KolTableStateless {
|
|
|
24567
24595
|
});
|
|
24568
24596
|
}
|
|
24569
24597
|
validateMinWidth(value) {
|
|
24570
|
-
watchString(this, '
|
|
24598
|
+
watchString(this, '_deprecatedMinWidth', value, {
|
|
24571
24599
|
defaultValue: undefined,
|
|
24572
24600
|
});
|
|
24573
24601
|
}
|
|
@@ -24920,9 +24948,9 @@ class KolTableStateless {
|
|
|
24920
24948
|
render() {
|
|
24921
24949
|
const dataField = this.createDataField(this.state._data, this.state._headerCells);
|
|
24922
24950
|
this.checkboxRefs = [];
|
|
24923
|
-
return (hAsync(Host, { key: '
|
|
24924
|
-
minWidth: this.state._minWidth,
|
|
24925
|
-
} }, hAsync("div", { key: '
|
|
24951
|
+
return (hAsync(Host, { key: '9518b44a4421b5843936ee7623532733b6134a2a', class: "kol-table-stateless-wc" }, hAsync("div", { key: '5bfd8c297dd3bed301c7e7e455b60278e270af24', ref: (element) => (this.tableDivElement = element), class: "table", tabindex: this.tableDivElementHasScrollbar ? '-1' : undefined }, hAsync("table", { key: '6906eae36940a1a00a5eed7401526a218949e990', style: {
|
|
24952
|
+
minWidth: this.state._deprecatedMinWidth || this.state._minWidth,
|
|
24953
|
+
} }, hAsync("div", { key: 'ee461a67c036209a11cd55134023a85090c371d8', class: "focus-element", tabindex: this.tableDivElementHasScrollbar ? '0' : undefined, "aria-describedby": "caption" }, "\u00A0"), hAsync("caption", { key: 'a8aa614eb1b4db063238a818022bf2139b269b09', id: "caption" }, this.state._label), Array.isArray(this.state._headerCells.horizontal) && (hAsync("thead", { key: '1c88c8dba9d88ef7163645b686d1d5007cc75f47' }, [
|
|
24926
24954
|
this.state._headerCells.horizontal.map((cols, rowIndex) => (hAsync("tr", { key: `thead-${rowIndex}` }, this.state._selection && this.renderHeadingSelectionCell(), rowIndex === 0 && this.renderHeaderTdCell(), Array.isArray(cols) &&
|
|
24927
24955
|
cols.map((cell, colIndex) => {
|
|
24928
24956
|
if (cell.asTd === true) {
|
|
@@ -24942,7 +24970,7 @@ class KolTableStateless {
|
|
|
24942
24970
|
}
|
|
24943
24971
|
})))),
|
|
24944
24972
|
this.renderSpacer('head', this.state._headerCells.horizontal),
|
|
24945
|
-
])), hAsync("tbody", { key: '
|
|
24973
|
+
])), hAsync("tbody", { key: 'd5983096363ef26b192a129bec8ab8e1df051056' }, dataField.map((row, rowIndex) => this.renderTableRow(row, rowIndex, true))), this.renderFoot()))));
|
|
24946
24974
|
}
|
|
24947
24975
|
get host() { return getElement(this); }
|
|
24948
24976
|
static get watchers() { return {
|
|
@@ -26031,7 +26059,7 @@ class KolTree {
|
|
|
26031
26059
|
this._label = undefined;
|
|
26032
26060
|
}
|
|
26033
26061
|
render() {
|
|
26034
|
-
return (hAsync(Host, { key: '
|
|
26062
|
+
return (hAsync(Host, { key: 'f264ff4f437f2d94209b5e1b408fc12bae1e3715', class: "kol-tree" }, hAsync(KolTreeWcTag, { key: '074485479eab7e05309d0804a5d9afefac16a243', _label: this._label }, hAsync("slot", { key: '7b2f6a10e88584659e00d2cb9123ee9e8ed7b0ea' }))));
|
|
26035
26063
|
}
|
|
26036
26064
|
static get style() { return {
|
|
26037
26065
|
default: KolTreeDefaultStyle0
|
|
@@ -26079,7 +26107,7 @@ class KolTreeItem {
|
|
|
26079
26107
|
return (_b = (await ((_a = this.element) === null || _a === void 0 ? void 0 : _a.isOpen()))) !== null && _b !== void 0 ? _b : false;
|
|
26080
26108
|
}
|
|
26081
26109
|
render() {
|
|
26082
|
-
return (hAsync(KolTreeItemWcTag, { key: '
|
|
26110
|
+
return (hAsync(KolTreeItemWcTag, { key: 'fdaac019e361b8efe063a22a47f3b67fab18d1ba', class: "kol-tree-item", _active: this._active, _label: this._label, _open: this._open, _href: this._href, ref: (element) => (this.element = element) }, hAsync("slot", { key: '73d1d194d03797ef974eab18f49c830148649110' })));
|
|
26083
26111
|
}
|
|
26084
26112
|
static get style() { return {
|
|
26085
26113
|
default: KolTreeItemDefaultStyle0
|
|
@@ -26233,7 +26261,7 @@ class KolTreeWc {
|
|
|
26233
26261
|
validateLabel(this, value);
|
|
26234
26262
|
}
|
|
26235
26263
|
render() {
|
|
26236
|
-
return (hAsync(Host, { key: '
|
|
26264
|
+
return (hAsync(Host, { key: 'fc79fee1595fed55d37dc2fb4f3509ff6c16686b', onSlotchange: this.handleSlotchange.bind(this), class: "kol-tree-wc" }, hAsync("nav", { key: 'd8d4800627e61c9766150d1d9a440889cf122440', class: "tree", "aria-label": this.state._label }, hAsync("ul", { key: '40b1ee8c5d89febb2975168f5630fdd01b6e4e97', class: "treeview-navigation", role: "tree", "aria-label": this.state._label }, hAsync("slot", { key: '86f66e7236df8aa03d942450c06a2f2f5930b987' })))));
|
|
26237
26265
|
}
|
|
26238
26266
|
static isTreeItem(element) {
|
|
26239
26267
|
return (element === null || element === void 0 ? void 0 : element.tagName) === KolTreeItemTag.toUpperCase();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@public-ui/hydrate",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.5-rc.1",
|
|
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.
|
|
49
|
+
"@public-ui/components": "2.2.5-rc.1"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
|
-
"@public-ui/components": "2.2.
|
|
52
|
+
"@public-ui/components": "2.2.5-rc.1"
|
|
53
53
|
},
|
|
54
54
|
"sideEffects": false,
|
|
55
55
|
"type": "commonjs",
|