@fkui/vue-labs 6.41.0 → 6.42.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.
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -3984,7 +3984,7 @@ const _hoisted_3$3 = ["aria-expanded", "aria-controls", "aria-activedescendant",
|
|
|
3984
3984
|
const _hoisted_4$3 = {
|
|
3985
3985
|
class: "table-ng__editable__text"
|
|
3986
3986
|
};
|
|
3987
|
-
const _hoisted_5$
|
|
3987
|
+
const _hoisted_5$3 = {
|
|
3988
3988
|
key: 1,
|
|
3989
3989
|
tabindex: "-1",
|
|
3990
3990
|
class: "table-ng__cell table-ng__cell--static"
|
|
@@ -4162,7 +4162,7 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
|
4162
4162
|
"input-node": editRef.value,
|
|
4163
4163
|
onSelect: selectDropdownOption,
|
|
4164
4164
|
onClose: onDropdownClose
|
|
4165
|
-
}, null, 8, ["id", "is-open", "options", "active-option", "active-option-id", "input-node"]), [[vue.vShow, editing.value]])], 32)) : (vue.openBlock(), vue.createElementBlock("td", _hoisted_5$
|
|
4165
|
+
}, null, 8, ["id", "is-open", "options", "active-option", "active-option-id", "input-node"]), [[vue.vShow, editing.value]])], 32)) : (vue.openBlock(), vue.createElementBlock("td", _hoisted_5$3, vue.toDisplayString(__props.column.selected(__props.row)), 1));
|
|
4166
4166
|
};
|
|
4167
4167
|
}
|
|
4168
4168
|
});
|
|
@@ -4220,6 +4220,10 @@ const _hoisted_3$2 = {
|
|
|
4220
4220
|
class: "sr-only"
|
|
4221
4221
|
};
|
|
4222
4222
|
const _hoisted_4$2 = ["id", "aria-label", "aria-hidden"];
|
|
4223
|
+
const _hoisted_5$2 = {
|
|
4224
|
+
ref: "arrowAnchor",
|
|
4225
|
+
"aria-hidden": "true"
|
|
4226
|
+
};
|
|
4223
4227
|
const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
|
|
4224
4228
|
__name: "ITableText",
|
|
4225
4229
|
props: {
|
|
@@ -4312,6 +4316,7 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
|
|
|
4312
4316
|
});
|
|
4313
4317
|
const tdElement = vue.useTemplateRef("td");
|
|
4314
4318
|
const inputElement = vue.useTemplateRef("input");
|
|
4319
|
+
const arrowAnchorElement = vue.useTemplateRef("arrowAnchor");
|
|
4315
4320
|
const {
|
|
4316
4321
|
stopEdit: stopEdit2
|
|
4317
4322
|
} = useStartStopEdit();
|
|
@@ -4389,20 +4394,20 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
|
|
|
4389
4394
|
});
|
|
4390
4395
|
vue.watchEffect(() => {
|
|
4391
4396
|
if (hasError.value) {
|
|
4392
|
-
var _tdElement$value,
|
|
4397
|
+
var _tdElement$value, _arrowAnchorElement$v;
|
|
4393
4398
|
emit("onError", {
|
|
4394
4399
|
anchor: (_tdElement$value = tdElement.value) !== null && _tdElement$value !== void 0 ? _tdElement$value : void 0,
|
|
4395
|
-
arrowAnchor: (
|
|
4400
|
+
arrowAnchor: (_arrowAnchorElement$v = arrowAnchorElement.value) !== null && _arrowAnchorElement$v !== void 0 ? _arrowAnchorElement$v : void 0,
|
|
4396
4401
|
message: validity.value.validationMessage,
|
|
4397
4402
|
hasFocus: focused.value,
|
|
4398
4403
|
hasHover: isHovered.value,
|
|
4399
4404
|
inEdit: inEdit.value
|
|
4400
4405
|
});
|
|
4401
4406
|
} else {
|
|
4402
|
-
var _tdElement$value2,
|
|
4407
|
+
var _tdElement$value2, _arrowAnchorElement$v2;
|
|
4403
4408
|
emit("closeError", {
|
|
4404
4409
|
anchor: (_tdElement$value2 = tdElement.value) !== null && _tdElement$value2 !== void 0 ? _tdElement$value2 : void 0,
|
|
4405
|
-
arrowAnchor: (
|
|
4410
|
+
arrowAnchor: (_arrowAnchorElement$v2 = arrowAnchorElement.value) !== null && _arrowAnchorElement$v2 !== void 0 ? _arrowAnchorElement$v2 : void 0,
|
|
4406
4411
|
message: validity.value.validationMessage,
|
|
4407
4412
|
hasFocus: focused.value,
|
|
4408
4413
|
hasHover: isHovered.value,
|
|
@@ -4595,11 +4600,11 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
|
|
|
4595
4600
|
"aria-hidden": !inEdit.value,
|
|
4596
4601
|
onValidity,
|
|
4597
4602
|
onPendingValidity
|
|
4598
|
-
}), null, 16, _hoisted_4$2), [[vue.vModelText, viewValue.value]])], 2), _cache[
|
|
4603
|
+
}), null, 16, _hoisted_4$2), [[vue.vModelText, viewValue.value]]), _cache[4] || (_cache[4] = vue.createTextVNode()), vue.createElementVNode("span", _hoisted_5$2, null, 512)], 2), _cache[5] || (_cache[5] = vue.createTextVNode()), vue.createVNode(vue.unref(vue$1.IPopupError), {
|
|
4599
4604
|
anchor: tdElement.value,
|
|
4600
4605
|
"is-open": openPopupError.value,
|
|
4601
4606
|
"error-message": validity.value.validationMessage,
|
|
4602
|
-
"arrow-anchor":
|
|
4607
|
+
"arrow-anchor": arrowAnchorElement.value,
|
|
4603
4608
|
layout: "f-table"
|
|
4604
4609
|
}, null, 8, ["anchor", "is-open", "error-message", "arrow-anchor"])], 42, _hoisted_1$3)) : (vue.openBlock(), vue.createElementBlock("td", {
|
|
4605
4610
|
key: 1,
|
|
@@ -5253,9 +5258,6 @@ const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
|
|
|
5253
5258
|
keyAttribute: {
|
|
5254
5259
|
default: () => void 0
|
|
5255
5260
|
},
|
|
5256
|
-
expandableAttribute: {
|
|
5257
|
-
default: () => void 0
|
|
5258
|
-
},
|
|
5259
5261
|
rowClass: {
|
|
5260
5262
|
type: Function,
|
|
5261
5263
|
default: void 0
|
|
@@ -5286,9 +5288,12 @@ const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
|
|
|
5286
5288
|
} = vue$1.useSlotUtils();
|
|
5287
5289
|
const tableRef = vue.useTemplateRef("table");
|
|
5288
5290
|
const expandedKeys = vue.ref(/* @__PURE__ */ new Set());
|
|
5289
|
-
const
|
|
5290
|
-
|
|
5291
|
-
|
|
5291
|
+
const expandableAttribute = vue.computed(() => {
|
|
5292
|
+
return vue$1.getDatasetMetadata(__props.rows).nestedAttribute;
|
|
5293
|
+
});
|
|
5294
|
+
const keyedRows = vue.computed(() => vue$1.setItemIdentifiers(__props.rows, __props.keyAttribute, expandableAttribute.value));
|
|
5295
|
+
const metaRows = vue.computed(() => getMetaRows(keyedRows.value, expandedKeys.value, expandableAttribute.value));
|
|
5296
|
+
const isTreegrid = vue.computed(() => Boolean(expandableAttribute.value));
|
|
5292
5297
|
const role = vue.computed(() => isTreegrid.value ? "treegrid" : "grid");
|
|
5293
5298
|
const hasCaption = vue.computed(() => {
|
|
5294
5299
|
return hasSlot("caption", {}, {
|
|
@@ -5304,7 +5309,7 @@ const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
|
|
|
5304
5309
|
return footerRow;
|
|
5305
5310
|
}
|
|
5306
5311
|
const headerRow = 1;
|
|
5307
|
-
const bodyRows = getBodyRowCount(keyedRows.value,
|
|
5312
|
+
const bodyRows = getBodyRowCount(keyedRows.value, expandableAttribute.value);
|
|
5308
5313
|
return bodyRows + headerRow + footerRow;
|
|
5309
5314
|
});
|
|
5310
5315
|
const fullColspan = vue.computed(() => {
|