@conduction/nextcloud-vue 2.146.0 → 2.147.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/esm/components/CnFactsWidget/CnFactsWidget.vue.js +1 -1
- package/dist/esm/components/CnFactsWidget/CnFactsWidget.vue2.js +68 -9
- package/dist/esm/components/CnFactsWidget/CnFactsWidget.vue2.js.map +1 -1
- package/dist/esm/components/CnFactsWidget/CnFactsWidget.vue3.js +37 -13
- package/dist/esm/components/CnFactsWidget/CnFactsWidget.vue3.js.map +1 -1
- package/dist/esm/components/CnObjectPartiesWidget/CnObjectPartiesWidget.vue.js +1 -1
- package/dist/esm/components/CnObjectPartiesWidget/CnObjectPartiesWidget.vue2.js +2 -2
- package/dist/esm/components/CnObjectPartiesWidget/CnObjectPartiesWidget.vue2.js.map +1 -1
- package/dist/esm/components/CnObjectPartiesWidget/CnObjectPartiesWidget.vue3.js.map +1 -1
- package/dist/esm/library-style.js +1 -1
- package/dist/esm/nextcloud-vue.css +83 -71
- package/dist/esm/utils/objectParties.js +30 -1
- package/dist/esm/utils/objectParties.js.map +1 -1
- package/dist/nextcloud-vue.cjs.js +193 -81
- package/dist/nextcloud-vue.cjs.js.map +2 -2
- package/dist/nextcloud-vue.css +83 -71
- package/package.json +1 -1
- package/src/components/CnFactsWidget/CnFactsWidget.vue +96 -9
- package/src/components/CnObjectPartiesWidget/CnObjectPartiesWidget.vue +2 -1
- package/src/utils/objectParties.js +29 -0
|
@@ -47,7 +47,16 @@ const _hoisted_24 = ["aria-label", "aria-valuenow", "aria-valuemax", "aria-value
|
|
|
47
47
|
const _hoisted_25 = ["data-testid"];
|
|
48
48
|
const _hoisted_26 = ["aria-label", "aria-valuenow", "data-testid"];
|
|
49
49
|
const _hoisted_27 = { class: "cn-facts-widget__line" };
|
|
50
|
-
const _hoisted_28 = {
|
|
50
|
+
const _hoisted_28 = {
|
|
51
|
+
key: 7,
|
|
52
|
+
class: "cn-facts-widget__pills"
|
|
53
|
+
};
|
|
54
|
+
const _hoisted_29 = { key: 8 };
|
|
55
|
+
const _hoisted_30 = {
|
|
56
|
+
key: 5,
|
|
57
|
+
class: "cn-facts-widget__footnote",
|
|
58
|
+
"data-testid": "cn-facts-footnote"
|
|
59
|
+
};
|
|
51
60
|
|
|
52
61
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
53
62
|
const _component_NcLoadingIcon = resolveComponent("NcLoadingIcon");
|
|
@@ -305,16 +314,28 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
305
314
|
: createCommentVNode("v-if", true),
|
|
306
315
|
createElementVNode("span", _hoisted_27, toDisplayString(block.value), 1 /* TEXT */)
|
|
307
316
|
], 8 /* PROPS */, _hoisted_25))
|
|
308
|
-
: (block.kind === '
|
|
317
|
+
: (block.kind === 'pills')
|
|
309
318
|
? (openBlock(), createElementBlock("div", _hoisted_28, [
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
319
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(block.pills, (pill) => {
|
|
320
|
+
return (openBlock(), createBlock(_component_CnStatusBadge, {
|
|
321
|
+
key: pill.key,
|
|
322
|
+
label: pill.value,
|
|
323
|
+
variant: pill.variant,
|
|
324
|
+
size: "small",
|
|
325
|
+
"data-testid": `cn-fact-${pill.key}`
|
|
326
|
+
}, null, 8 /* PROPS */, ["label", "variant", "data-testid"]))
|
|
327
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
316
328
|
]))
|
|
317
|
-
:
|
|
329
|
+
: (block.kind === 'pill')
|
|
330
|
+
? (openBlock(), createElementBlock("div", _hoisted_29, [
|
|
331
|
+
createVNode(_component_CnStatusBadge, {
|
|
332
|
+
label: block.value,
|
|
333
|
+
variant: block.variant,
|
|
334
|
+
size: "small",
|
|
335
|
+
"data-testid": `cn-fact-${block.key}`
|
|
336
|
+
}, null, 8 /* PROPS */, ["label", "variant", "data-testid"])
|
|
337
|
+
]))
|
|
338
|
+
: createCommentVNode("v-if", true)
|
|
318
339
|
], 64 /* STABLE_FRAGMENT */))
|
|
319
340
|
}), 128 /* KEYED_FRAGMENT */)),
|
|
320
341
|
($options.notice && $options.record)
|
|
@@ -330,9 +351,12 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
330
351
|
_: 1 /* STABLE */
|
|
331
352
|
}, 8 /* PROPS */, ["type"]))
|
|
332
353
|
: createCommentVNode("v-if", true),
|
|
354
|
+
($options.footnote && $options.record)
|
|
355
|
+
? (openBlock(), createElementBlock("div", _hoisted_30, toDisplayString($options.footnote), 1 /* TEXT */))
|
|
356
|
+
: createCommentVNode("v-if", true),
|
|
333
357
|
($options.link && $options.link.sidebarTab && $options.record)
|
|
334
358
|
? (openBlock(), createElementBlock("button", {
|
|
335
|
-
key:
|
|
359
|
+
key: 6,
|
|
336
360
|
type: "button",
|
|
337
361
|
class: "cn-facts-widget__link cn-facts-widget__link--button",
|
|
338
362
|
"data-testid": "cn-facts-link",
|
|
@@ -349,7 +373,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
349
373
|
]))
|
|
350
374
|
: ($options.link && $options.record)
|
|
351
375
|
? (openBlock(), createBlock(resolveDynamicComponent($options.link.to ? 'router-link' : 'a'), {
|
|
352
|
-
key:
|
|
376
|
+
key: 7,
|
|
353
377
|
to: $options.link.to || undefined,
|
|
354
378
|
href: $options.link.href || undefined,
|
|
355
379
|
target: $options.link.target || undefined,
|
|
@@ -372,7 +396,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
372
396
|
: createCommentVNode("v-if", true),
|
|
373
397
|
($options.action && $options.record)
|
|
374
398
|
? (openBlock(), createElementBlock("button", {
|
|
375
|
-
key:
|
|
399
|
+
key: 8,
|
|
376
400
|
type: "button",
|
|
377
401
|
class: "cn-facts-widget__action",
|
|
378
402
|
"data-testid": "cn-facts-action",
|
|
@@ -390,7 +414,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
390
414
|
: createCommentVNode("v-if", true),
|
|
391
415
|
($options.drawnActions.length > 0)
|
|
392
416
|
? (openBlock(), createBlock(_component_CnActionButtons, {
|
|
393
|
-
key:
|
|
417
|
+
key: 9,
|
|
394
418
|
class: "cn-facts-widget__actions",
|
|
395
419
|
actions: $options.drawnActions,
|
|
396
420
|
"data-testid": "cn-facts-actions"
|