@bimdata/bcf-components 1.1.0-rc.12 → 1.1.0-rc.13
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.
|
@@ -3887,6 +3887,12 @@ var columnsDef = [
|
|
|
3887
3887
|
label: "Titre",
|
|
3888
3888
|
align: "left"
|
|
3889
3889
|
},
|
|
3890
|
+
{
|
|
3891
|
+
id: "creator",
|
|
3892
|
+
label: "Cr\xE9\xE9 par",
|
|
3893
|
+
width: "120px",
|
|
3894
|
+
align: "center"
|
|
3895
|
+
},
|
|
3890
3896
|
{
|
|
3891
3897
|
id: "date",
|
|
3892
3898
|
label: "Date",
|
|
@@ -4172,7 +4178,7 @@ var render = function() {
|
|
|
4172
4178
|
var _vm = this;
|
|
4173
4179
|
var _h = _vm.$createElement;
|
|
4174
4180
|
var _c = _vm._self._c || _h;
|
|
4175
|
-
return _c("BIMDataTable", { staticClass: "bcf-topics-table", attrs: { "columns": _vm.
|
|
4181
|
+
return _c("BIMDataTable", { staticClass: "bcf-topics-table", attrs: { "columns": _vm.displayedColumns, "rows": _vm.bcfTopics, "rowKey": "guid", "paginated": _vm.paginated, "perPage": _vm.perPage, "rowHeight": 42 }, scopedSlots: _vm._u([{ key: "cell-index", fn: function(ref2) {
|
|
4176
4182
|
var bcfTopic = ref2.row;
|
|
4177
4183
|
return [_vm._v(" " + _vm._s(bcfTopic.index) + " ")];
|
|
4178
4184
|
} }, { key: "cell-priority", fn: function(ref2) {
|
|
@@ -4184,6 +4190,11 @@ var render = function() {
|
|
|
4184
4190
|
} }, { key: "cell-title", fn: function(ref2) {
|
|
4185
4191
|
var bcfTopic = ref2.row;
|
|
4186
4192
|
return [_c("BIMDataTextbox", { attrs: { "maxWidth": "100%", "text": bcfTopic.title } })];
|
|
4193
|
+
} }, { key: "cell-creator", fn: function(ref2) {
|
|
4194
|
+
var ref_row = ref2.row;
|
|
4195
|
+
var creator = ref_row.creator;
|
|
4196
|
+
var creationAuthor = ref_row.creationAuthor;
|
|
4197
|
+
return [creator ? [_c("UserAvatar", { staticStyle: { "margin": "auto" }, attrs: { "user": creator, "size": 30 } })] : [_c("BIMDataTextbox", { attrs: { "maxWidth": "120px", "text": creationAuthor } })]];
|
|
4187
4198
|
} }, { key: "cell-date", fn: function(ref2) {
|
|
4188
4199
|
var bcfTopic = ref2.row;
|
|
4189
4200
|
return [_vm._v(" " + _vm._s(_vm.$d(bcfTopic.creationDate, "short")) + " ")];
|
|
@@ -4201,7 +4212,8 @@ const __vue2_script = {
|
|
|
4201
4212
|
BcfTopicPriorityCell,
|
|
4202
4213
|
BcfTopicStatusCell,
|
|
4203
4214
|
BIMDataTable: h,
|
|
4204
|
-
BIMDataTextbox: l$2
|
|
4215
|
+
BIMDataTextbox: l$2,
|
|
4216
|
+
UserAvatar
|
|
4205
4217
|
},
|
|
4206
4218
|
props: {
|
|
4207
4219
|
bcfTopics: {
|
|
@@ -4212,18 +4224,25 @@ const __vue2_script = {
|
|
|
4212
4224
|
type: Object,
|
|
4213
4225
|
required: true
|
|
4214
4226
|
},
|
|
4227
|
+
paginated: {
|
|
4228
|
+
type: Boolean,
|
|
4229
|
+
default: false
|
|
4230
|
+
},
|
|
4215
4231
|
perPage: {
|
|
4216
4232
|
type: Number,
|
|
4217
|
-
default:
|
|
4233
|
+
default: 10
|
|
4234
|
+
},
|
|
4235
|
+
columns: {
|
|
4236
|
+
type: Array
|
|
4218
4237
|
}
|
|
4219
4238
|
},
|
|
4220
4239
|
emits: [
|
|
4221
4240
|
"open-bcf-topic"
|
|
4222
4241
|
],
|
|
4223
|
-
setup() {
|
|
4224
|
-
const
|
|
4242
|
+
setup(props) {
|
|
4243
|
+
const displayedColumns = computed(() => props.columns && props.columns.length > 0 ? columnsDef.filter((c2) => props.columns.includes(c2.id)) : columnsDef);
|
|
4225
4244
|
return {
|
|
4226
|
-
|
|
4245
|
+
displayedColumns
|
|
4227
4246
|
};
|
|
4228
4247
|
}
|
|
4229
4248
|
};
|
|
@@ -4612,6 +4612,12 @@ var columnsDef = [
|
|
|
4612
4612
|
label: "Titre",
|
|
4613
4613
|
align: "left"
|
|
4614
4614
|
},
|
|
4615
|
+
{
|
|
4616
|
+
id: "creator",
|
|
4617
|
+
label: "Cr\xE9\xE9 par",
|
|
4618
|
+
width: "120px",
|
|
4619
|
+
align: "center"
|
|
4620
|
+
},
|
|
4615
4621
|
{
|
|
4616
4622
|
id: "date",
|
|
4617
4623
|
label: "Date",
|
|
@@ -4861,7 +4867,8 @@ const _sfc_main = {
|
|
|
4861
4867
|
BcfTopicPriorityCell,
|
|
4862
4868
|
BcfTopicStatusCell,
|
|
4863
4869
|
BIMDataTable: P,
|
|
4864
|
-
BIMDataTextbox: s$1
|
|
4870
|
+
BIMDataTextbox: s$1,
|
|
4871
|
+
UserAvatar
|
|
4865
4872
|
},
|
|
4866
4873
|
props: {
|
|
4867
4874
|
bcfTopics: {
|
|
@@ -4872,18 +4879,25 @@ const _sfc_main = {
|
|
|
4872
4879
|
type: Object,
|
|
4873
4880
|
required: true
|
|
4874
4881
|
},
|
|
4882
|
+
paginated: {
|
|
4883
|
+
type: Boolean,
|
|
4884
|
+
default: false
|
|
4885
|
+
},
|
|
4875
4886
|
perPage: {
|
|
4876
4887
|
type: Number,
|
|
4877
|
-
default:
|
|
4888
|
+
default: 10
|
|
4889
|
+
},
|
|
4890
|
+
columns: {
|
|
4891
|
+
type: Array
|
|
4878
4892
|
}
|
|
4879
4893
|
},
|
|
4880
4894
|
emits: [
|
|
4881
4895
|
"open-bcf-topic"
|
|
4882
4896
|
],
|
|
4883
|
-
setup() {
|
|
4884
|
-
const
|
|
4897
|
+
setup(props) {
|
|
4898
|
+
const displayedColumns = computed(() => props.columns && props.columns.length > 0 ? columnsDef.filter((c2) => props.columns.includes(c2.id)) : columnsDef);
|
|
4885
4899
|
return {
|
|
4886
|
-
|
|
4900
|
+
displayedColumns
|
|
4887
4901
|
};
|
|
4888
4902
|
}
|
|
4889
4903
|
};
|
|
@@ -4891,14 +4905,15 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4891
4905
|
const _component_BcfTopicPriorityCell = resolveComponent("BcfTopicPriorityCell");
|
|
4892
4906
|
const _component_BcfTopicStatusCell = resolveComponent("BcfTopicStatusCell");
|
|
4893
4907
|
const _component_BIMDataTextbox = resolveComponent("BIMDataTextbox");
|
|
4908
|
+
const _component_UserAvatar = resolveComponent("UserAvatar");
|
|
4894
4909
|
const _component_BcfTopicActionsCell = resolveComponent("BcfTopicActionsCell");
|
|
4895
4910
|
const _component_BIMDataTable = resolveComponent("BIMDataTable");
|
|
4896
4911
|
return openBlock(), createBlock(_component_BIMDataTable, {
|
|
4897
4912
|
class: "bcf-topics-table",
|
|
4898
|
-
columns: $setup.
|
|
4913
|
+
columns: $setup.displayedColumns,
|
|
4899
4914
|
rows: $props.bcfTopics,
|
|
4900
4915
|
rowKey: "guid",
|
|
4901
|
-
paginated:
|
|
4916
|
+
paginated: $props.paginated,
|
|
4902
4917
|
perPage: $props.perPage,
|
|
4903
4918
|
rowHeight: 42
|
|
4904
4919
|
}, {
|
|
@@ -4924,6 +4939,18 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4924
4939
|
text: bcfTopic.title
|
|
4925
4940
|
}, null, 8, ["text"])
|
|
4926
4941
|
]),
|
|
4942
|
+
"cell-creator": withCtx(({ row: { creator, creationAuthor } }) => [
|
|
4943
|
+
creator ? (openBlock(), createBlock(_component_UserAvatar, {
|
|
4944
|
+
key: 0,
|
|
4945
|
+
user: creator,
|
|
4946
|
+
size: 30,
|
|
4947
|
+
style: { "margin": "auto" }
|
|
4948
|
+
}, null, 8, ["user"])) : (openBlock(), createBlock(_component_BIMDataTextbox, {
|
|
4949
|
+
key: 1,
|
|
4950
|
+
maxWidth: "120px",
|
|
4951
|
+
text: creationAuthor
|
|
4952
|
+
}, null, 8, ["text"]))
|
|
4953
|
+
]),
|
|
4927
4954
|
"cell-date": withCtx(({ row: bcfTopic }) => [
|
|
4928
4955
|
createTextVNode(toDisplayString(_ctx.$d(bcfTopic.creationDate, "short")), 1)
|
|
4929
4956
|
]),
|
|
@@ -4934,7 +4961,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4934
4961
|
}, null, 8, ["bcfTopic"])
|
|
4935
4962
|
]),
|
|
4936
4963
|
_: 1
|
|
4937
|
-
}, 8, ["columns", "rows", "perPage"]);
|
|
4964
|
+
}, 8, ["columns", "rows", "paginated", "perPage"]);
|
|
4938
4965
|
}
|
|
4939
4966
|
var BcfTopicsTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
4940
4967
|
const components = {
|