@conduction/nextcloud-vue 2.149.0 → 2.150.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/CnChartWidget/CnChartWidget.vue.js +1 -1
- package/dist/esm/components/CnChartWidget/CnChartWidget.vue2.js +12 -0
- package/dist/esm/components/CnChartWidget/CnChartWidget.vue2.js.map +1 -1
- package/dist/esm/components/CnChartWidget/CnChartWidget.vue3.js.map +1 -1
- package/dist/esm/library-style.js +1 -1
- package/dist/esm/nextcloud-vue.css +84 -76
- package/dist/esm/utils/fillTemplate.js +19 -2
- package/dist/esm/utils/fillTemplate.js.map +1 -1
- package/dist/nextcloud-vue.cjs.js +32 -3
- package/dist/nextcloud-vue.cjs.js.map +2 -2
- package/dist/nextcloud-vue.css +84 -76
- package/package.json +1 -1
- package/src/components/CnChartWidget/CnChartWidget.md +1 -1
- package/src/components/CnChartWidget/CnChartWidget.vue +12 -0
- package/src/css/board.css +2 -0
- package/src/css/look-board-index.css +5 -1
- package/src/utils/fillTemplate.js +19 -2
|
@@ -2,7 +2,7 @@ import script from './CnChartWidget.vue2.js';
|
|
|
2
2
|
import { render } from './CnChartWidget.vue3.js';
|
|
3
3
|
|
|
4
4
|
script.render = render;
|
|
5
|
-
script.__scopeId = "data-v-
|
|
5
|
+
script.__scopeId = "data-v-37644514";
|
|
6
6
|
const __sfc_main = script;
|
|
7
7
|
|
|
8
8
|
export { __sfc_main as default };
|
|
@@ -848,6 +848,9 @@ var script = {
|
|
|
848
848
|
aggregateData: null,
|
|
849
849
|
// The `cellSource` matrix, laid out (`{ series, categories, columnKeys }`), or null.
|
|
850
850
|
cellData: null,
|
|
851
|
+
// The record a `cellSource` with `cellsPath` read its cells from, for
|
|
852
|
+
// `@source.<field>` in the notice.
|
|
853
|
+
cellRecord: null,
|
|
851
854
|
// Active `views[]` switcher key (null = the first view). Local
|
|
852
855
|
// UI state only — never persisted.
|
|
853
856
|
activeViewKey: null,
|
|
@@ -1492,6 +1495,14 @@ var script = {
|
|
|
1492
1495
|
}
|
|
1493
1496
|
const declared = def.values && typeof def.values === 'object' ? def.values : {};
|
|
1494
1497
|
const resolved = resolveFilterTokens(declared, this.chartTokenCtx());
|
|
1498
|
+
// `@source.<field>`: a field of the record the matrix read its cells
|
|
1499
|
+
// from (the matrix's name and version on an enforcement advice).
|
|
1500
|
+
for (const [name, token] of Object.entries(declared)) {
|
|
1501
|
+
if (typeof token === 'string' && token.startsWith('@source.')) {
|
|
1502
|
+
const value = token.slice('@source.'.length).split('.').reduce((at, key) => (at && typeof at === 'object' ? at[key] : undefined), this.cellRecord);
|
|
1503
|
+
resolved[name] = value === undefined ? null : value;
|
|
1504
|
+
}
|
|
1505
|
+
}
|
|
1495
1506
|
const source = this.cellSource && typeof this.cellSource === 'object' ? this.cellSource : {};
|
|
1496
1507
|
const maps = { rows: source.rowLabels, columns: source.columnLabels, values: source.valueLabels };
|
|
1497
1508
|
const words = {};
|
|
@@ -2220,6 +2231,7 @@ var script = {
|
|
|
2220
2231
|
if (this._cellRequest !== key) {
|
|
2221
2232
|
return
|
|
2222
2233
|
}
|
|
2234
|
+
this.cellRecord = this.cellSource.cellsPath ? (records[0] || null) : null;
|
|
2223
2235
|
if (this.cellSource.cellsPath) {
|
|
2224
2236
|
const { cells, config } = cellsFromRecord(records[0] || null, this.cellSource, cellFilter);
|
|
2225
2237
|
this.cellData = pivotCells(cells, config);
|