@fkui/vue-labs 6.19.1 → 6.20.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/cjs/index.cjs.js +35 -38
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/esm/index.esm.js +35 -38
- package/dist/esm/index.esm.js.map +1 -1
- package/dist/types/index.d.ts +1 -6
- package/package.json +6 -6
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -2273,11 +2273,13 @@ const _sfc_main$a = vue.defineComponent({
|
|
|
2273
2273
|
extends: vue$1.FTextField,
|
|
2274
2274
|
mixins: [vue$1.TranslationMixin],
|
|
2275
2275
|
props: {
|
|
2276
|
+
/* eslint-disable-next-line vue/no-unused-properties -- used by FTextField (extended) */
|
|
2276
2277
|
formatter: {
|
|
2277
2278
|
type: Function,
|
|
2278
2279
|
required: false,
|
|
2279
2280
|
default: formatNumberToTime
|
|
2280
2281
|
},
|
|
2282
|
+
/* eslint-disable-next-line vue/no-unused-properties -- used by FTextField (extended) */
|
|
2281
2283
|
parser: {
|
|
2282
2284
|
type: Function,
|
|
2283
2285
|
required: false,
|
|
@@ -2736,8 +2738,7 @@ const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
|
|
|
2736
2738
|
__name: "ITableRow",
|
|
2737
2739
|
props: {
|
|
2738
2740
|
renderHeader: {
|
|
2739
|
-
type: Boolean
|
|
2740
|
-
default: false
|
|
2741
|
+
type: Boolean
|
|
2741
2742
|
},
|
|
2742
2743
|
rowKey: {
|
|
2743
2744
|
default: ""
|
|
@@ -2746,16 +2747,13 @@ const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
|
|
|
2746
2747
|
default: () => void 0
|
|
2747
2748
|
},
|
|
2748
2749
|
isTreegrid: {
|
|
2749
|
-
type: Boolean
|
|
2750
|
-
default: false
|
|
2750
|
+
type: Boolean
|
|
2751
2751
|
},
|
|
2752
2752
|
isExpandable: {
|
|
2753
|
-
type: Boolean
|
|
2754
|
-
default: false
|
|
2753
|
+
type: Boolean
|
|
2755
2754
|
},
|
|
2756
2755
|
isExpanded: {
|
|
2757
|
-
type: Boolean
|
|
2758
|
-
default: false
|
|
2756
|
+
type: Boolean
|
|
2759
2757
|
}
|
|
2760
2758
|
},
|
|
2761
2759
|
emits: ["toggle"],
|
|
@@ -2766,23 +2764,23 @@ const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
|
|
|
2766
2764
|
vue.provide("renderHeader", __props.renderHeader);
|
|
2767
2765
|
const toggleIcon = vue.computed(() => __props.isExpanded ? "arrow-down" : "arrow-right");
|
|
2768
2766
|
return (_ctx, _cache) => {
|
|
2769
|
-
return
|
|
2767
|
+
return __props.renderHeader ? (vue.openBlock(), vue.createElementBlock("tr", _hoisted_1$7, [__props.isTreegrid ? (vue.openBlock(), vue.createElementBlock("th", _hoisted_2$3)) : vue.createCommentVNode("", true), _cache[1] || (_cache[1] = vue.createTextVNode()), vue.renderSlot(_ctx.$slots, "default")])) : (vue.openBlock(), vue.createElementBlock("tr", {
|
|
2770
2768
|
key: 1,
|
|
2771
2769
|
class: "table-ng__row",
|
|
2772
|
-
"aria-level":
|
|
2773
|
-
}, [
|
|
2770
|
+
"aria-level": __props.ariaLevel
|
|
2771
|
+
}, [__props.isTreegrid ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
|
|
2774
2772
|
key: 0
|
|
2775
|
-
}, [
|
|
2773
|
+
}, [__props.isExpandable ? (vue.openBlock(), vue.createElementBlock("td", _hoisted_4$1, [vue.createElementVNode("button", {
|
|
2776
2774
|
"aria-label": "toggle",
|
|
2777
2775
|
type: "button",
|
|
2778
|
-
class: vue.normalizeClass(["expander", `level-${
|
|
2779
|
-
onClick: _cache[0] || (_cache[0] = ($event) => emit("toggle",
|
|
2776
|
+
class: vue.normalizeClass(["expander", `level-${__props.ariaLevel}`]),
|
|
2777
|
+
onClick: _cache[0] || (_cache[0] = ($event) => emit("toggle", __props.rowKey))
|
|
2780
2778
|
}, [vue.createVNode(vue.unref(vue$1.FIcon), {
|
|
2781
2779
|
class: "button__icon",
|
|
2782
2780
|
name: toggleIcon.value
|
|
2783
2781
|
}, null, 8, ["name"])], 2)])) : (vue.openBlock(), vue.createElementBlock("td", {
|
|
2784
2782
|
key: 1,
|
|
2785
|
-
class: vue.normalizeClass(`level-${
|
|
2783
|
+
class: vue.normalizeClass(`level-${__props.ariaLevel}`)
|
|
2786
2784
|
}, null, 2))], 64)) : vue.createCommentVNode("", true), _cache[2] || (_cache[2] = vue.createTextVNode()), vue.renderSlot(_ctx.$slots, "default")], 8, _hoisted_3$2));
|
|
2787
2785
|
};
|
|
2788
2786
|
}
|
|
@@ -2809,15 +2807,15 @@ const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
|
|
|
2809
2807
|
__props.column.update(__props.row, checked, !checked);
|
|
2810
2808
|
}
|
|
2811
2809
|
return (_ctx, _cache) => {
|
|
2812
|
-
return
|
|
2810
|
+
return __props.column.editable(__props.row) ? (vue.openBlock(), vue.createElementBlock("td", {
|
|
2813
2811
|
key: 0,
|
|
2814
2812
|
class: "table-ng__cell table-ng__cell--checkbox",
|
|
2815
2813
|
onTableActivateCell: onActivateCell
|
|
2816
2814
|
}, [vue.createElementVNode("input", {
|
|
2817
2815
|
ref: "target",
|
|
2818
|
-
checked:
|
|
2816
|
+
checked: __props.column.value(__props.row),
|
|
2819
2817
|
type: "checkbox",
|
|
2820
|
-
"aria-label":
|
|
2818
|
+
"aria-label": __props.column.header,
|
|
2821
2819
|
tabindex: "-1",
|
|
2822
2820
|
onChange
|
|
2823
2821
|
}, null, 40, _hoisted_1$6)], 32)) : (vue.openBlock(), vue.createElementBlock("td", {
|
|
@@ -2827,9 +2825,9 @@ const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
|
|
|
2827
2825
|
class: "table-ng__cell table-ng__cell--checkbox",
|
|
2828
2826
|
onTableActivateCell: onActivateCell
|
|
2829
2827
|
}, [vue.createElementVNode("input", {
|
|
2830
|
-
checked:
|
|
2828
|
+
checked: __props.column.value(__props.row),
|
|
2831
2829
|
type: "checkbox",
|
|
2832
|
-
"aria-label":
|
|
2830
|
+
"aria-label": __props.column.header
|
|
2833
2831
|
}, null, 8, _hoisted_2$2)], 544));
|
|
2834
2832
|
};
|
|
2835
2833
|
}
|
|
@@ -2861,8 +2859,8 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
|
2861
2859
|
}, [vue.createElementVNode("input", {
|
|
2862
2860
|
ref: "input",
|
|
2863
2861
|
type: "radio",
|
|
2864
|
-
checked:
|
|
2865
|
-
"aria-label":
|
|
2862
|
+
checked: __props.column.value(__props.row),
|
|
2863
|
+
"aria-label": __props.column.header,
|
|
2866
2864
|
tabindex: "-1",
|
|
2867
2865
|
onChange
|
|
2868
2866
|
}, null, 40, _hoisted_1$5)], 32);
|
|
@@ -2897,9 +2895,9 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
|
|
|
2897
2895
|
ref: "target",
|
|
2898
2896
|
class: "anchor anchor--block",
|
|
2899
2897
|
target: "_blank",
|
|
2900
|
-
href:
|
|
2898
|
+
href: __props.column.href,
|
|
2901
2899
|
tabindex: "-1"
|
|
2902
|
-
}, vue.toDisplayString(
|
|
2900
|
+
}, vue.toDisplayString(__props.column.value(__props.row)), 9, _hoisted_1$4)], 32)) : (vue.openBlock(), vue.createElementBlock("td", {
|
|
2903
2901
|
key: 1,
|
|
2904
2902
|
ref: "target",
|
|
2905
2903
|
tabindex: "-1",
|
|
@@ -2950,10 +2948,10 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
|
2950
2948
|
type: "button",
|
|
2951
2949
|
tabindex: "-1",
|
|
2952
2950
|
onClick: onClickButton
|
|
2953
|
-
}, [
|
|
2951
|
+
}, [__props.column.icon ? (vue.openBlock(), vue.createBlock(vue.unref(vue$1.FIcon), {
|
|
2954
2952
|
key: 0,
|
|
2955
|
-
name:
|
|
2956
|
-
}, null, 8, ["name"])) : vue.createCommentVNode("", true), _cache[0] || (_cache[0] = vue.createTextVNode()), vue.createElementVNode("span", _hoisted_1$3, vue.toDisplayString(
|
|
2953
|
+
name: __props.column.icon
|
|
2954
|
+
}, null, 8, ["name"])) : vue.createCommentVNode("", true), _cache[0] || (_cache[0] = vue.createTextVNode()), vue.createElementVNode("span", _hoisted_1$3, vue.toDisplayString(__props.column.value(__props.row)), 1)], 512)], 32)) : (vue.openBlock(), vue.createElementBlock("td", {
|
|
2957
2955
|
key: 1,
|
|
2958
2956
|
ref: "td",
|
|
2959
2957
|
tabindex: "-1",
|
|
@@ -3121,7 +3119,7 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
|
|
|
3121
3119
|
};
|
|
3122
3120
|
}
|
|
3123
3121
|
return (_ctx, _cache) => {
|
|
3124
|
-
return
|
|
3122
|
+
return __props.column.editable(__props.row) ? (vue.openBlock(), vue.createElementBlock("td", {
|
|
3125
3123
|
key: 0,
|
|
3126
3124
|
ref: "td",
|
|
3127
3125
|
tabindex: "-1",
|
|
@@ -3132,7 +3130,7 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
|
|
|
3132
3130
|
}, [vue.createElementVNode("div", _hoisted_1$2, [vue.createElementVNode("span", {
|
|
3133
3131
|
ref: "view",
|
|
3134
3132
|
class: "table-ng__editable__text"
|
|
3135
|
-
}, vue.toDisplayString(
|
|
3133
|
+
}, vue.toDisplayString(__props.column.value(__props.row)), 513), _cache[1] || (_cache[1] = vue.createTextVNode()), vue.withDirectives(vue.createElementVNode("input", {
|
|
3136
3134
|
ref: "input",
|
|
3137
3135
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => model.value = $event),
|
|
3138
3136
|
class: vue.normalizeClass(inputClasses.value),
|
|
@@ -3155,7 +3153,7 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
|
|
|
3155
3153
|
tabindex: "-1",
|
|
3156
3154
|
class: "table-ng__cell table-ng__cell--static",
|
|
3157
3155
|
onTableActivateCell: onActivateCell
|
|
3158
|
-
}, vue.toDisplayString(
|
|
3156
|
+
}, vue.toDisplayString(__props.column.value(__props.row)), 545));
|
|
3159
3157
|
};
|
|
3160
3158
|
}
|
|
3161
3159
|
});
|
|
@@ -3338,7 +3336,7 @@ const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
|
|
|
3338
3336
|
stopEdit2(editRef.value, "escape");
|
|
3339
3337
|
}
|
|
3340
3338
|
return (_ctx, _cache) => {
|
|
3341
|
-
return
|
|
3339
|
+
return __props.column.editable(__props.row) ? (vue.openBlock(), vue.createElementBlock("td", {
|
|
3342
3340
|
key: 0,
|
|
3343
3341
|
ref: "td",
|
|
3344
3342
|
class: "table-ng__cell table-ng__cell--select",
|
|
@@ -3366,7 +3364,7 @@ const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
|
|
|
3366
3364
|
}, vue.toDisplayString(viewValue.value), 41, _hoisted_3$1), [[vue.vShow, editing.value]]), _cache[4] || (_cache[4] = vue.createTextVNode()), vue.withDirectives(vue.createVNode(vue.unref(vue$1.IComboboxDropdown), {
|
|
3367
3365
|
id: "dropdownId",
|
|
3368
3366
|
"is-open": dropdownIsOpen.value,
|
|
3369
|
-
options:
|
|
3367
|
+
options: __props.column.options,
|
|
3370
3368
|
"active-option": activeOption.value,
|
|
3371
3369
|
"active-option-id": vue.unref(activeOptionId),
|
|
3372
3370
|
"input-node": editRef.value,
|
|
@@ -3378,7 +3376,7 @@ const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
|
|
|
3378
3376
|
tabindex: "-1",
|
|
3379
3377
|
class: "table-ng__cell table-ng__cell--static",
|
|
3380
3378
|
onTableActivateCell: onActivateCell
|
|
3381
|
-
}, vue.toDisplayString(
|
|
3379
|
+
}, vue.toDisplayString(__props.column.value(__props.row)), 545));
|
|
3382
3380
|
};
|
|
3383
3381
|
}
|
|
3384
3382
|
});
|
|
@@ -3403,7 +3401,7 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
|
3403
3401
|
class: "table-ng__cell table-ng__cell--rowheader",
|
|
3404
3402
|
scope: "row",
|
|
3405
3403
|
onTableActivateCell: onActivateCell
|
|
3406
|
-
}, vue.toDisplayString(
|
|
3404
|
+
}, vue.toDisplayString(__props.column.value(__props.row)), 545);
|
|
3407
3405
|
};
|
|
3408
3406
|
}
|
|
3409
3407
|
});
|
|
@@ -3613,9 +3611,9 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
|
3613
3611
|
default: vue.withCtx(() => [vue.createVNode(vue.unref(vue$1.IFlexItem), {
|
|
3614
3612
|
shrink: ""
|
|
3615
3613
|
}, {
|
|
3616
|
-
default: vue.withCtx(() => [vue.createTextVNode(vue.toDisplayString(
|
|
3614
|
+
default: vue.withCtx(() => [vue.createTextVNode(vue.toDisplayString(__props.column.header), 1)]),
|
|
3617
3615
|
_: 1
|
|
3618
|
-
}), _cache[0] || (_cache[0] = vue.createTextVNode()),
|
|
3616
|
+
}), _cache[0] || (_cache[0] = vue.createTextVNode()), __props.sortEnabled ? (vue.openBlock(), vue.createBlock(vue.unref(vue$1.IFlexItem), {
|
|
3619
3617
|
key: 0,
|
|
3620
3618
|
shrink: "",
|
|
3621
3619
|
align: "center"
|
|
@@ -3668,8 +3666,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
3668
3666
|
default: () => void 0
|
|
3669
3667
|
},
|
|
3670
3668
|
striped: {
|
|
3671
|
-
type: Boolean
|
|
3672
|
-
default: false
|
|
3669
|
+
type: Boolean
|
|
3673
3670
|
},
|
|
3674
3671
|
selectable: {
|
|
3675
3672
|
default: () => void 0
|