@conduction/nextcloud-vue 2.91.0 → 2.92.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/CnDataTable/CnDataTable.vue2.js +10 -5
- package/dist/esm/components/CnDataTable/CnDataTable.vue2.js.map +1 -1
- package/dist/esm/components/CnDataTable/CnDataTable.vue3.js.map +1 -1
- package/dist/esm/components/CnFormDialog/CnFormDialog.vue.js +1 -1
- package/dist/esm/components/CnFormDialog/CnFormDialog.vue2.js +18 -10
- package/dist/esm/components/CnFormDialog/CnFormDialog.vue2.js.map +1 -1
- package/dist/esm/components/CnFormDialog/CnFormDialog.vue3.js +16 -8
- package/dist/esm/components/CnFormDialog/CnFormDialog.vue3.js.map +1 -1
- package/dist/esm/components/CnLinkCardsPage/CnLinkCardsPage.vue.js +1 -1
- package/dist/esm/components/CnLinkCardsPage/CnLinkCardsPage.vue2.js +156 -3
- package/dist/esm/components/CnLinkCardsPage/CnLinkCardsPage.vue2.js.map +1 -1
- package/dist/esm/components/CnLinkCardsPage/CnLinkCardsPage.vue3.js +168 -52
- package/dist/esm/components/CnLinkCardsPage/CnLinkCardsPage.vue3.js.map +1 -1
- package/dist/esm/components/CnModuleCard/CnModuleCard.vue.js +9 -0
- package/dist/esm/components/CnModuleCard/CnModuleCard.vue.js.map +1 -0
- package/dist/esm/components/CnModuleCard/CnModuleCard.vue2.js +83 -0
- package/dist/esm/components/CnModuleCard/CnModuleCard.vue2.js.map +1 -0
- package/dist/esm/components/CnModuleCard/CnModuleCard.vue3.js +119 -0
- package/dist/esm/components/CnModuleCard/CnModuleCard.vue3.js.map +1 -0
- package/dist/esm/components/CnTabsWidget/CnTabsWidget.vue.js +1 -1
- package/dist/esm/components/CnTabsWidget/CnTabsWidget.vue2.js +33 -2
- package/dist/esm/components/CnTabsWidget/CnTabsWidget.vue2.js.map +1 -1
- package/dist/esm/components/CnTabsWidget/CnTabsWidget.vue3.js.map +1 -1
- package/dist/esm/components/CnTextWidget/CnTextWidget.vue.js +1 -1
- package/dist/esm/components/CnTextWidget/CnTextWidget.vue2.js +63 -4
- package/dist/esm/components/CnTextWidget/CnTextWidget.vue2.js.map +1 -1
- package/dist/esm/components/CnTextWidget/CnTextWidget.vue3.js +19 -2
- package/dist/esm/components/CnTextWidget/CnTextWidget.vue3.js.map +1 -1
- package/dist/esm/l10n/en.json.js +22 -1
- package/dist/esm/l10n/en.json.js.map +1 -1
- package/dist/esm/l10n/nl.json.js +21 -1
- package/dist/esm/l10n/nl.json.js.map +1 -1
- package/dist/esm/library-style.js +1 -1
- package/dist/esm/nextcloud-vue.css +317 -103
- package/dist/esm/utils/boardDate.js +35 -1
- package/dist/esm/utils/boardDate.js.map +1 -1
- package/dist/esm/utils/fillTemplate.js +12 -3
- package/dist/esm/utils/fillTemplate.js.map +1 -1
- package/dist/esm/utils/validateManifestV2.compiled.js +3 -3
- package/dist/esm/utils/validateManifestV2.compiled.js.map +1 -1
- package/dist/nextcloud-vue.cjs.js +11451 -10784
- package/dist/nextcloud-vue.cjs.js.map +2 -2
- package/dist/nextcloud-vue.css +317 -103
- package/l10n/en.json +22 -1
- package/l10n/nl.json +21 -1
- package/package.json +1 -1
- package/src/components/CnDataTable/CnDataTable.vue +10 -5
- package/src/components/CnFormDialog/CnFormDialog.md +1 -0
- package/src/components/CnFormDialog/CnFormDialog.vue +13 -0
- package/src/components/CnLinkCardsPage/CnLinkCardsPage.vue +338 -5
- package/src/components/CnModuleCard/CnModuleCard.vue +258 -0
- package/src/components/CnTabsWidget/CnTabsWidget.vue +33 -2
- package/src/components/CnTextWidget/CnTextWidget.vue +89 -4
- package/src/schemas/app-manifest-v2.schema.json +59 -2
- package/src/utils/boardDate.js +34 -0
- package/src/utils/fillTemplate.js +12 -3
- package/src/utils/validateManifestV2.compiled.js +3 -3
|
@@ -9,6 +9,7 @@ import __sfc_main$1 from './CnColumnFilterPopover.vue.js';
|
|
|
9
9
|
import { useClickDragGuard } from '../../composables/useClickDragGuard.js';
|
|
10
10
|
import { normalizeLook } from '../../composables/useLook.js';
|
|
11
11
|
import { columnFilterDef, columnFilterState, isColumnFilterActive, columnFilterParams, clearedColumnFilterParams, isColumnSortable } from '../../utils/columnFilters.js';
|
|
12
|
+
import { fillTemplate } from '../../utils/fillTemplate.js';
|
|
12
13
|
import { lensUnavailableText, readLensReports } from '../../utils/lensAvailability.js';
|
|
13
14
|
import { resolveHref, openRowTarget, followLinkClick } from '../../utils/linkNavigation.js';
|
|
14
15
|
import { nextSortState } from '../../utils/multiColumnSort.js';
|
|
@@ -161,8 +162,8 @@ var script = {
|
|
|
161
162
|
*
|
|
162
163
|
* `secondary` draws a second, muted line under the cell's value: a field
|
|
163
164
|
* key (`"number"`), a template with `{field}` placeholders
|
|
164
|
-
* (`"{number} · {requester}"`, dotted paths allowed
|
|
165
|
-
* the row. Empty fields leave their placeholder blank; a line that
|
|
165
|
+
* (`"{number} · {requester}"`, dotted paths allowed; `{startAt|weekday}`
|
|
166
|
+
* formats through `fillTemplate`), or a function of the row. Empty fields leave their placeholder blank; a line that
|
|
166
167
|
* resolves to nothing is not drawn.
|
|
167
168
|
*
|
|
168
169
|
* @type {Array<{key: string, label: string, description: string, sortable: boolean, width: string, class: string, cellClass: string, secondary: (string|((row: object) => string))}|string>}
|
|
@@ -1369,8 +1370,10 @@ var script = {
|
|
|
1369
1370
|
/**
|
|
1370
1371
|
* The secondary line of a cell, from `col.secondary`: a function is
|
|
1371
1372
|
* called with the row; a string with `{field}` placeholders is a
|
|
1372
|
-
* template filled from the row (dotted paths allowed)
|
|
1373
|
-
*
|
|
1373
|
+
* template filled from the row (dotted paths allowed), where a
|
|
1374
|
+
* `{field|format}` token is formatted by `fillTemplate` ("{startAt|weekday}"
|
|
1375
|
+
* reads "wo 7 okt"); any other string is a field key. Returns '' when
|
|
1376
|
+
* there is nothing to draw.
|
|
1374
1377
|
*
|
|
1375
1378
|
* @spec openspec/changes/zuiddrecht-pixel-gaps/specs/zuiddrecht-pixel-gaps/spec.md#requirement-a-table-column-carries-a-secondary-line
|
|
1376
1379
|
* @param {object} row The row.
|
|
@@ -1387,7 +1390,9 @@ var script = {
|
|
|
1387
1390
|
return ''
|
|
1388
1391
|
}
|
|
1389
1392
|
if (spec.includes('{')) {
|
|
1390
|
-
const filled = fillSecondaryTemplate(spec, (key) =>
|
|
1393
|
+
const filled = fillSecondaryTemplate(spec, (key) => (key.includes('|')
|
|
1394
|
+
? fillTemplate(`{${key}}`, row)
|
|
1395
|
+
: this.secondaryFieldText(row, key)));
|
|
1391
1396
|
// A template whose every field is empty leaves only separators:
|
|
1392
1397
|
// nothing worth a line.
|
|
1393
1398
|
return /[\p{L}\p{N}]/u.test(filled) ? filled.trim() : ''
|