@bimdata/bcf-components 2.0.0-rc.7 → 2.0.0-rc.8
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.
|
@@ -4073,7 +4073,7 @@ const b = { xxxs: 10, xxs: 13, xs: 16, s: 18, m: 22, l: 28, xl: 36, xxl: 45, xxx
|
|
|
4073
4073
|
var g;
|
|
4074
4074
|
const h = a({ render: function() {
|
|
4075
4075
|
var r2 = this, o2 = r2.$createElement, a2 = r2._self._c || o2;
|
|
4076
|
-
return a2("div", { staticClass: "bimdata-table" }, [a2("div", { staticClass: "bimdata-table__container", style: { height: r2.paginated ? (r2.perPage + 1) * r2.rowHeight + "px" : void 0 } }, [a2("table", { style: { width: r2.tableWidth } }, [a2("thead", [a2("tr", { key: "head-row-0", style: { height: r2.rowHeight + "px" } }, [r2.selectable ? a2("th", { staticClass: "cell-checkbox" }, [a2("BIMDataCheckbox", { attrs: { disabled: r2.rows.length === 0, modelValue: r2.rows.length > 0 && r2.selection.size === r2.rows.length }, on: { "update:modelValue": r2.toggleFullSelection } })], 1) : r2._e(), r2._v(" "), r2._l(r2.columns, function(o3, e2) {
|
|
4076
|
+
return a2("div", { staticClass: "bimdata-table" }, [a2("div", { staticClass: "bimdata-table__container", style: { height: r2.paginated ? (r2.perPage + 1) * r2.rowHeight + "px" : void 0 } }, [a2("table", { style: { width: r2.tableWidth, tableLayout: r2.tableLayout } }, [a2("thead", [a2("tr", { key: "head-row-0", style: { height: r2.rowHeight + "px" } }, [r2.selectable ? a2("th", { staticClass: "cell-checkbox" }, [a2("BIMDataCheckbox", { attrs: { disabled: r2.rows.length === 0, modelValue: r2.rows.length > 0 && r2.selection.size === r2.rows.length }, on: { "update:modelValue": r2.toggleFullSelection } })], 1) : r2._e(), r2._v(" "), r2._l(r2.columns, function(o3, e2) {
|
|
4077
4077
|
return a2("th", { key: "head-row-0-col-" + e2, style: { width: o3.width || "auto", textAlign: o3.align || "left" } }, [r2._v("\n " + r2._s(o3.id ? o3.label || o3.id : o3) + "\n ")]);
|
|
4078
4078
|
})], 2)]), r2._v(" "), a2("tbody", r2._l(r2.rows, function(o3, e2) {
|
|
4079
4079
|
return a2("tr", { directives: [{ name: "show", rawName: "v-show", value: r2.displayedRows.includes(e2), expression: "displayedRows.includes(i)" }], key: "body-row-" + e2, style: { height: r2.rowHeight + "px" } }, [r2.selectable ? a2("td", { staticClass: "cell-checkbox" }, [a2("BIMDataCheckbox", { attrs: { modelValue: r2.selection.has(e2) }, on: { "update:modelValue": function(o4) {
|
|
@@ -4089,7 +4089,7 @@ const h = a({ render: function() {
|
|
|
4089
4089
|
r2.pageIndex++;
|
|
4090
4090
|
} } }, [a2("BIMDataIconChevron", { attrs: { size: "s" } })], 1)], 1) : r2._e()]);
|
|
4091
4091
|
}, staticRenderFns: [] }, function(r2) {
|
|
4092
|
-
r2 && r2("data-v-
|
|
4092
|
+
r2 && r2("data-v-2b0e9988_0", { source: 'html[data-v-2b0e9988]{--color-primary-lighter:rgba(248, 249, 250, 1);--color-primary-light:rgba(67, 78, 105, 1);--color-primary:rgba(47, 55, 74, 1);--color-primary-dark:rgba(27, 32, 43, 1);--color-secondary-lighter:rgba(255, 252, 242, 1);--color-secondary-light:rgba(250, 212, 94, 1);--color-secondary:rgba(249, 199, 44, 1);--color-secondary-dark:rgba(235, 180, 7, 1);--color-white:rgba(255, 255, 255, 1);--color-silver-light:rgba(247, 247, 247, 1);--color-silver:rgba(216, 216, 216, 1);--color-silver-dark:rgba(189, 189, 189, 1);--color-granite-light:rgba(122, 122, 122, 1);--color-granite:rgba(96, 96, 96, 1);--color-black:rgba(0, 0, 0, 1);--color-text:rgba(47, 55, 74, 1);--color-black-100:rgba(0, 0, 0, 0.1);--color-success-lighter:rgba(226, 255, 239, 1);--color-success-light:rgba(0, 200, 92, 1);--color-success:rgba(0, 175, 80, 1);--color-success-dark:rgba(0, 149, 68, 1);--color-warning-lighter:rgba(255, 233, 204, 1);--color-warning-light:rgba(255, 167, 51, 1);--color-warning:rgba(255, 145, 0, 1);--color-warning-dark:rgba(204, 116, 0, 1);--color-high-lighter:rgba(255, 237, 234, 1);--color-high-light:rgba(255, 104, 81, 1);--color-high:rgba(255, 61, 30, 1);--color-high-dark:rgba(234, 31, 0, 1);--font-size:14px;--box-shadow:0px 2px 10px rgba(0, 0, 0, 0.1);--border-radius-tiny:3px;--spacing-unit:12px;--size-btn-options:45px;--primary-font:"roboto",sans-serif}.bimdata-table[data-v-2b0e9988]{width:100%;font-size:.9rem;background-color:var(--color-white)}.bimdata-table__container table[data-v-2b0e9988]{border-collapse:collapse;border-spacing:0}.bimdata-table__container table tbody tr[data-v-2b0e9988]:nth-child(odd){background-color:var(--color-silver-light)}.bimdata-table__container table td[data-v-2b0e9988],.bimdata-table__container table th[data-v-2b0e9988]{min-height:calc(var(--spacing-unit) * 2);padding:0 var(--spacing-unit)}.bimdata-table__container table td.cell-checkbox[data-v-2b0e9988]:deep(),.bimdata-table__container table th.cell-checkbox[data-v-2b0e9988]:deep(){width:42px}.bimdata-table__container table th[data-v-2b0e9988]{font-weight:700;color:var(--color-primary)}.bimdata-table__container table td[data-v-2b0e9988]{color:var(--color-granite)}.bimdata-table__container__placeholder[data-v-2b0e9988]{display:flex;justify-content:center;align-items:center;padding:var(--spacing-unit);font-size:1rem;font-weight:700;background-color:var(--color-silver-light)}.bimdata-table__page-nav[data-v-2b0e9988]{display:flex;justify-content:flex-end;align-items:center;padding:var(--spacing-unit)}.bimdata-table__page-nav__text[data-v-2b0e9988]{margin:0 var(--spacing-unit)}', map: void 0, media: void 0 });
|
|
4093
4093
|
}, { components: { BIMDataButton: c, BIMDataCheckbox: n, BIMDataIconChevron: a({ render: function() {
|
|
4094
4094
|
var r2 = this.$createElement, o2 = this._self._c || r2;
|
|
4095
4095
|
return o2("svg", { class: this.classes, style: this.style, attrs: { xmlns: "http://www.w3.org/2000/svg", preserveAspectRatio: "xMidYMid meet", viewBox: "0 0 24 24", width: "100%", fill: this.fillColor, color: this.color } }, [o2("Chevron")], 1);
|
|
@@ -4102,7 +4102,7 @@ const h = a({ render: function() {
|
|
|
4102
4102
|
return { width: r2 + "px", minWidth: r2 + "px", height: r2 + "px", minHeight: r2 + "px", margin: "" + this.margin, transform: `rotate(${this.rotate}deg)` };
|
|
4103
4103
|
} }, methods: { getPixelSize() {
|
|
4104
4104
|
return this.customSize ? this.customSize : b[this.size];
|
|
4105
|
-
} } }, "data-v-20c38c94", false, void 0, false, t, void 0, void 0) }, props: { columns: { type: Array, required: true }, rows: { type: Array, required: true }, rowHeight: { type: Number, default: 50 }, selectable: { type: Boolean, default: false }, paginated: { type: Boolean, default: false }, perPage: { type: Number, default: 10 }, placeholder: { type: String, default: "" }, tableWidth: { type:
|
|
4105
|
+
} } }, "data-v-20c38c94", false, void 0, false, t, void 0, void 0) }, props: { columns: { type: Array, required: true }, rows: { type: Array, required: true }, rowHeight: { type: Number, default: 50 }, selectable: { type: Boolean, default: false }, paginated: { type: Boolean, default: false }, perPage: { type: Number, default: 10 }, placeholder: { type: String, default: "" }, tableWidth: { type: String, default: "100%" }, tableLayout: { type: String, default: "auto" } }, emits: ["selection-changed", "row-selected", "row-unselected", "all-selected", "all-unselected"], data: () => ({ displayedRows: [], pageIndex: 0, pageStartIndex: 1, pageEndIndex: 1, selection: /* @__PURE__ */ new Map(), selectionRefs: [], oldSelectionRefs: [], fullSelectionRef: false }), watch: { rows: { immediate: true, handler(r2) {
|
|
4106
4106
|
this.selection = /* @__PURE__ */ new Map(), this.buildSelectionRefs(r2, false), this.setPagination();
|
|
4107
4107
|
} }, paginated: { immediate: true, handler() {
|
|
4108
4108
|
this.setPagination();
|
|
@@ -4137,7 +4137,7 @@ const h = a({ render: function() {
|
|
|
4137
4137
|
this.displayedRows = r2.slice(o2, a2), this.pageStartIndex = o2 + 1, this.pageEndIndex = Math.min(a2, this.$props.rows.length);
|
|
4138
4138
|
} else
|
|
4139
4139
|
this.displayedRows = r2;
|
|
4140
|
-
} } }, "data-v-
|
|
4140
|
+
} } }, "data-v-2b0e9988", false, void 0, false, t, void 0, void 0);
|
|
4141
4141
|
var render$4 = function() {
|
|
4142
4142
|
var _vm = this;
|
|
4143
4143
|
var _h = _vm.$createElement;
|
|
@@ -4288,7 +4288,7 @@ var render = function() {
|
|
|
4288
4288
|
var _vm = this;
|
|
4289
4289
|
var _h = _vm.$createElement;
|
|
4290
4290
|
var _c = _vm._self._c || _h;
|
|
4291
|
-
return _c("BIMDataTable", { staticClass: "bcf-topics-table", attrs: { "columns": _vm.displayedColumns.map(function(col) {
|
|
4291
|
+
return _c("BIMDataTable", { staticClass: "bcf-topics-table", attrs: { "tableLayout": "fixed", "columns": _vm.displayedColumns.map(function(col) {
|
|
4292
4292
|
return Object.assign({}, col, { label: col.label || _vm.$t("BcfComponents.BcfTopicsTable.headers." + col.id) });
|
|
4293
4293
|
}), "rows": _vm.bcfTopics, "rowKey": "guid", "paginated": _vm.paginated, "perPage": _vm.perPage, "rowHeight": 42 }, scopedSlots: _vm._u([{ key: "cell-index", fn: function(ref2) {
|
|
4294
4294
|
var bcfTopic = ref2.row;
|
|
@@ -4813,7 +4813,7 @@ x(".icon-fill--black {\n fill: var(--color-black);\n}\n.icon-fill--default {\n
|
|
|
4813
4813
|
const b2 = resolveComponent("Search");
|
|
4814
4814
|
return openBlock(), createElementBlock("svg", { xmlns: "http://www.w3.org/2000/svg", preserveAspectRatio: "xMidYMid meet", viewBox: "0 0 24 24", width: "100%", fill: e2.fillColor, color: e2.color, class: normalizeClass(e2.classes), style: normalizeStyle(e2.style) }, [createVNode(b2)], 14, Y);
|
|
4815
4815
|
}, z.__scopeId = "data-v-0993abf8", z.__file = "src/BIMDataComponents/BIMDataIcon/BIMDataIconStandalone/BIMDataIconSearch.vue";
|
|
4816
|
-
var P = { components: { BIMDataButton: f, BIMDataCheckbox: A, BIMDataIconChevron: C }, props: { columns: { type: Array, required: true }, rows: { type: Array, required: true }, rowHeight: { type: Number, default: 50 }, selectable: { type: Boolean, default: false }, paginated: { type: Boolean, default: false }, perPage: { type: Number, default: 10 }, placeholder: { type: String, default: "" }, tableWidth: { type:
|
|
4816
|
+
var P = { components: { BIMDataButton: f, BIMDataCheckbox: A, BIMDataIconChevron: C }, props: { columns: { type: Array, required: true }, rows: { type: Array, required: true }, rowHeight: { type: Number, default: 50 }, selectable: { type: Boolean, default: false }, paginated: { type: Boolean, default: false }, perPage: { type: Number, default: 10 }, placeholder: { type: String, default: "" }, tableWidth: { type: String, default: "100%" }, tableLayout: { type: String, default: "auto" } }, emits: ["selection-changed", "row-selected", "row-unselected", "all-selected", "all-unselected"], data: () => ({ displayedRows: [], pageIndex: 0, pageStartIndex: 1, pageEndIndex: 1, selection: /* @__PURE__ */ new Map(), selectionRefs: [], oldSelectionRefs: [], fullSelectionRef: false }), watch: { rows: { immediate: true, handler(n) {
|
|
4817
4817
|
this.selection = /* @__PURE__ */ new Map(), this.buildSelectionRefs(n, false), this.setPagination();
|
|
4818
4818
|
} }, paginated: { immediate: true, handler() {
|
|
4819
4819
|
this.setPagination();
|
|
@@ -4852,7 +4852,7 @@ var P = { components: { BIMDataButton: f, BIMDataCheckbox: A, BIMDataIconChevron
|
|
|
4852
4852
|
const X = { class: "bimdata-table" }, W = { key: 0, class: "cell-checkbox" }, $ = { key: 0, class: "cell-checkbox" }, Z = { class: "bimdata-table__page-nav__text" };
|
|
4853
4853
|
x('/* base COLORS --------------------------------------------- */\n/* colors BRAND */\n/* colors GREY SHADES - NEUTRAL */\n/* color TEXT */\n/* state colors */\n/* base FONT SIZE ----------------------------------------- */\n/* base BOX-SHADOW ----------------------------------------- */\n/* base SPACING UNIT -------------------------------------- */\n/* base FONTS -------------------------------------- */\nhtml[data-v-a29e0786] {\n /* base COLORS ------------------------------------------- */\n /* --------------------------------\n color PRIMARY & VARIANTS -------------------------------- */\n --color-primary-lighter: rgba(248, 249, 250, 1);\n --color-primary-light: rgba(67, 78, 105, 1);\n --color-primary: rgba(47, 55, 74, 1);\n --color-primary-dark: rgba(27, 32, 43, 1);\n /* --------------------------------\n color SECONDARY & VARIANTS -------------------------------- */\n --color-secondary-lighter: rgba(255, 252, 242, 1);\n --color-secondary-light: rgba(250, 212, 94, 1);\n --color-secondary: rgba(249, 199, 44, 1);\n --color-secondary-dark: rgba(235, 180, 7, 1);\n /* --------------------------------\n color GREY SHADES - NEUTRAL\n -------------------------------- */\n --color-white: rgba(255, 255, 255, 1);\n --color-silver-light: rgba(247, 247, 247, 1);\n --color-silver: rgba(216, 216, 216, 1);\n --color-silver-dark: rgba(189, 189, 189, 1);\n --color-granite-light: rgba(122, 122, 122, 1);\n --color-granite: rgba(96, 96, 96, 1);\n --color-black: rgba(0, 0, 0, 1);\n /* --------------------------------\n color TEXT -------------------------------- */\n --color-text: rgba(47, 55, 74, 1);\n /* --------------------------------\n color BLACK & VARIANTS -------------------------------- */\n --color-black-100: rgba(0, 0, 0, 0.1);\n /* --------------------------------\n color SUCCESS & VARIANTS -------------------------------- */\n --color-success-lighter: rgba(226, 255, 239, 1);\n --color-success-light: rgba(0, 200, 92, 1);\n --color-success: rgba(0, 175, 80, 1);\n --color-success-dark: rgba(0, 149, 68, 1);\n /* --------------------------------\n color WARNING & VARIANTS -------------------------------- */\n --color-warning-lighter: rgba(255, 233, 204, 1);\n --color-warning-light: rgba(255, 167, 51, 1);\n --color-warning: rgba(255, 145, 0, 1);\n --color-warning-dark: rgba(204, 116, 0, 1);\n /* --------------------------------\n color HIGH & VARIANTS -------------------------------- */\n --color-high-lighter: rgba(255, 237, 234, 1);\n --color-high-light: rgba(255, 104, 81, 1);\n --color-high: rgba(255, 61, 30, 1);\n --color-high-dark: rgba(234, 31, 0, 1);\n /* base FONT SIZE ----------------------------------------- */\n --font-size: 14px;\n /* base BOX-SHADOW ----------------------------------------- */\n --box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);\n /* base BORDER RADIUS ----------------------------------------- */\n --border-radius-tiny: 3px;\n /* base SPACING UNIT -------------------------------------- */\n --spacing-unit: 12px;\n --size-btn-options: 45px;\n /* base FONTS -------------------------------------- */\n --primary-font: "roboto", sans-serif;\n}\n.bimdata-table[data-v-a29e0786] {\n width: 100%;\n font-size: 0.9rem;\n background-color: var(--color-white);\n}\n.bimdata-table__container table[data-v-a29e0786] {\n border-collapse: collapse;\n border-spacing: 0;\n}\n.bimdata-table__container table tbody tr[data-v-a29e0786]:nth-child(odd) {\n background-color: var(--color-silver-light);\n}\n.bimdata-table__container table th[data-v-a29e0786],\n.bimdata-table__container table td[data-v-a29e0786] {\n min-height: calc(var(--spacing-unit) * 2);\n padding: 0 var(--spacing-unit);\n}\n.bimdata-table__container table th.cell-checkbox[data-v-a29e0786] ,\n.bimdata-table__container table td.cell-checkbox[data-v-a29e0786] {\n width: 42px;\n}\n.bimdata-table__container table th[data-v-a29e0786] {\n font-weight: 700;\n color: var(--color-primary);\n}\n.bimdata-table__container table td[data-v-a29e0786] {\n color: var(--color-granite);\n}\n.bimdata-table__container__placeholder[data-v-a29e0786] {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n padding: var(--spacing-unit);\n font-size: 1rem;\n font-weight: 700;\n background-color: var(--color-silver-light);\n}\n.bimdata-table__page-nav[data-v-a29e0786] {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: end;\n -ms-flex-pack: end;\n justify-content: flex-end;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n padding: var(--spacing-unit);\n}\n.bimdata-table__page-nav__text[data-v-a29e0786] {\n margin: 0 var(--spacing-unit);\n}'), P.render = function(o2, c2, s2, m2, f2, y2) {
|
|
4854
4854
|
const x2 = resolveComponent("BIMDataCheckbox"), A2 = resolveComponent("BIMDataIconChevron"), S2 = resolveComponent("BIMDataButton");
|
|
4855
|
-
return openBlock(), createElementBlock("div", X, [createElementVNode("div", { class: "bimdata-table__container", style: normalizeStyle({ height: s2.paginated ? (s2.perPage + 1) * s2.rowHeight + "px" : void 0 }) }, [createElementVNode("table", { style: normalizeStyle({ width: s2.tableWidth }) }, [createElementVNode("thead", null, [createElementVNode("tr", { key: "head-row-0", style: normalizeStyle({ height: s2.rowHeight + "px" }) }, [s2.selectable ? (openBlock(), createElementBlock("th", W, [createVNode(x2, { disabled: s2.rows.length === 0, modelValue: s2.rows.length > 0 && f2.selection.size === s2.rows.length, "onUpdate:modelValue": y2.toggleFullSelection }, null, 8, ["disabled", "modelValue", "onUpdate:modelValue"])])) : createCommentVNode("v-if", true), (openBlock(true), createElementBlock(Fragment, null, renderList(s2.columns, (o3, e2) => (openBlock(), createElementBlock("th", { key: "head-row-0-col-" + e2, style: normalizeStyle({ width: o3.width || "auto", textAlign: o3.align || "left" }) }, toDisplayString(o3.id ? o3.label || o3.id : o3), 5))), 128))], 4)]), createElementVNode("tbody", null, [(openBlock(true), createElementBlock(Fragment, null, renderList(s2.rows, (c3, b2) => withDirectives((openBlock(), createElementBlock("tr", { key: "body-row-" + b2, style: normalizeStyle({ height: s2.rowHeight + "px" }) }, [s2.selectable ? (openBlock(), createElementBlock("td", $, [createVNode(x2, { modelValue: f2.selection.has(b2), "onUpdate:modelValue": (n) => y2.toggleSelection(b2) }, null, 8, ["modelValue", "onUpdate:modelValue"])])) : createCommentVNode("v-if", true), (openBlock(true), createElementBlock(Fragment, null, renderList(s2.columns, (i2, s3) => (openBlock(), createElementBlock("td", { key: `body-row-${b2}-col-${s3}`, style: normalizeStyle({ width: i2.width || "auto", textAlign: i2.align || "left" }) }, [renderSlot(o2.$slots, "cell-" + i2.id, { row: c3 }, () => [createTextVNode(toDisplayString(c3[i2.id] || c3[s3] || ""), 1)])], 4))), 128))], 4)), [[vShow, f2.displayedRows.includes(b2)]])), 128))])], 4), s2.rows.length === 0 && s2.placeholder ? (openBlock(), createElementBlock("div", { key: 0, class: "bimdata-table__container__placeholder", style: normalizeStyle({ height: `calc(100% - ${s2.rowHeight}px)` }) }, toDisplayString(s2.placeholder), 5)) : createCommentVNode("v-if", true)], 4), s2.paginated ? (openBlock(), createElementBlock("div", { key: 0, class: "bimdata-table__page-nav", style: normalizeStyle({ visibility: s2.rows.length > s2.perPage ? "visible" : "hidden" }) }, [createVNode(S2, { ghost: "", rounded: "", icon: "", disabled: f2.pageStartIndex === 1, onClick: c2[0] || (c2[0] = (n) => f2.pageIndex--) }, { default: withCtx(() => [createVNode(A2, { size: "s", rotate: 180 })]), _: 1 }, 8, ["disabled"]), createElementVNode("span", Z, toDisplayString(`${f2.pageStartIndex} - ${f2.pageEndIndex} of ${s2.rows.length}`), 1), createVNode(S2, { ghost: "", rounded: "", icon: "", disabled: f2.pageEndIndex === s2.rows.length, onClick: c2[1] || (c2[1] = (n) => f2.pageIndex++) }, { default: withCtx(() => [createVNode(A2, { size: "s" })]), _: 1 }, 8, ["disabled"])], 4)) : createCommentVNode("v-if", true)]);
|
|
4855
|
+
return openBlock(), createElementBlock("div", X, [createElementVNode("div", { class: "bimdata-table__container", style: normalizeStyle({ height: s2.paginated ? (s2.perPage + 1) * s2.rowHeight + "px" : void 0 }) }, [createElementVNode("table", { style: normalizeStyle({ width: s2.tableWidth, tableLayout: s2.tableLayout }) }, [createElementVNode("thead", null, [createElementVNode("tr", { key: "head-row-0", style: normalizeStyle({ height: s2.rowHeight + "px" }) }, [s2.selectable ? (openBlock(), createElementBlock("th", W, [createVNode(x2, { disabled: s2.rows.length === 0, modelValue: s2.rows.length > 0 && f2.selection.size === s2.rows.length, "onUpdate:modelValue": y2.toggleFullSelection }, null, 8, ["disabled", "modelValue", "onUpdate:modelValue"])])) : createCommentVNode("v-if", true), (openBlock(true), createElementBlock(Fragment, null, renderList(s2.columns, (o3, e2) => (openBlock(), createElementBlock("th", { key: "head-row-0-col-" + e2, style: normalizeStyle({ width: o3.width || "auto", textAlign: o3.align || "left" }) }, toDisplayString(o3.id ? o3.label || o3.id : o3), 5))), 128))], 4)]), createElementVNode("tbody", null, [(openBlock(true), createElementBlock(Fragment, null, renderList(s2.rows, (c3, b2) => withDirectives((openBlock(), createElementBlock("tr", { key: "body-row-" + b2, style: normalizeStyle({ height: s2.rowHeight + "px" }) }, [s2.selectable ? (openBlock(), createElementBlock("td", $, [createVNode(x2, { modelValue: f2.selection.has(b2), "onUpdate:modelValue": (n) => y2.toggleSelection(b2) }, null, 8, ["modelValue", "onUpdate:modelValue"])])) : createCommentVNode("v-if", true), (openBlock(true), createElementBlock(Fragment, null, renderList(s2.columns, (i2, s3) => (openBlock(), createElementBlock("td", { key: `body-row-${b2}-col-${s3}`, style: normalizeStyle({ width: i2.width || "auto", textAlign: i2.align || "left" }) }, [renderSlot(o2.$slots, "cell-" + i2.id, { row: c3 }, () => [createTextVNode(toDisplayString(c3[i2.id] || c3[s3] || ""), 1)])], 4))), 128))], 4)), [[vShow, f2.displayedRows.includes(b2)]])), 128))])], 4), s2.rows.length === 0 && s2.placeholder ? (openBlock(), createElementBlock("div", { key: 0, class: "bimdata-table__container__placeholder", style: normalizeStyle({ height: `calc(100% - ${s2.rowHeight}px)` }) }, toDisplayString(s2.placeholder), 5)) : createCommentVNode("v-if", true)], 4), s2.paginated ? (openBlock(), createElementBlock("div", { key: 0, class: "bimdata-table__page-nav", style: normalizeStyle({ visibility: s2.rows.length > s2.perPage ? "visible" : "hidden" }) }, [createVNode(S2, { ghost: "", rounded: "", icon: "", disabled: f2.pageStartIndex === 1, onClick: c2[0] || (c2[0] = (n) => f2.pageIndex--) }, { default: withCtx(() => [createVNode(A2, { size: "s", rotate: 180 })]), _: 1 }, 8, ["disabled"]), createElementVNode("span", Z, toDisplayString(`${f2.pageStartIndex} - ${f2.pageEndIndex} of ${s2.rows.length}`), 1), createVNode(S2, { ghost: "", rounded: "", icon: "", disabled: f2.pageEndIndex === s2.rows.length, onClick: c2[1] || (c2[1] = (n) => f2.pageIndex++) }, { default: withCtx(() => [createVNode(A2, { size: "s" })]), _: 1 }, 8, ["disabled"])], 4)) : createCommentVNode("v-if", true)]);
|
|
4856
4856
|
}, P.__scopeId = "data-v-a29e0786", P.__file = "src/BIMDataComponents/BIMDataTable/BIMDataTable.vue";
|
|
4857
4857
|
var BcfTopicActionsCell_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
4858
4858
|
const _sfc_main$4 = {
|
|
@@ -5031,6 +5031,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5031
5031
|
const _component_BIMDataTable = resolveComponent("BIMDataTable");
|
|
5032
5032
|
return openBlock(), createBlock(_component_BIMDataTable, {
|
|
5033
5033
|
class: "bcf-topics-table",
|
|
5034
|
+
tableLayout: "fixed",
|
|
5034
5035
|
columns: $setup.displayedColumns.map((col) => __spreadProps(__spreadValues({}, col), {
|
|
5035
5036
|
label: col.label || _ctx.$t(`BcfComponents.BcfTopicsTable.headers.${col.id}`)
|
|
5036
5037
|
})),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bimdata/bcf-components",
|
|
3
|
-
"version": "2.0.0-rc.
|
|
3
|
+
"version": "2.0.0-rc.8",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist",
|
|
6
6
|
"vue2-plugin.js",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"release": "semantic-release"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@bimdata/design-system": "1.4.0-rc.
|
|
19
|
+
"@bimdata/design-system": "1.4.0-rc.23"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
22
22
|
"vue": "^2.7 || ^3.0"
|