@mmlogic/components 0.2.0 → 0.3.1
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/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mosterdcomponents.cjs.js +1 -1
- package/dist/cjs/mrd-boolean-field_19.cjs.entry.js +323 -184
- package/dist/collection/components/mrd-layout-section/mrd-layout-section.js +61 -177
- package/dist/collection/components/mrd-table/mrd-table.js +325 -214
- package/dist/collection/dev/api.js +23 -6
- package/dist/collection/dev/app.js +358 -268
- package/dist/components/mrd-layout-section.js +1 -1
- package/dist/components/mrd-table2.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/mosterdcomponents.js +1 -1
- package/dist/esm/mrd-boolean-field_19.entry.js +323 -184
- package/dist/mosterdcomponents/mosterdcomponents.esm.js +1 -1
- package/dist/mosterdcomponents/p-af4c247e.entry.js +1 -0
- package/dist/types/components/mrd-layout-section/mrd-layout-section.d.ts +18 -32
- package/dist/types/components/mrd-table/mrd-table.d.ts +54 -29
- package/dist/types/components.d.ts +42 -88
- package/dist/types/types/client-layout.d.ts +18 -17
- package/package.json +1 -1
- package/dist/mosterdcomponents/p-61ef0232.entry.js +0 -1
|
@@ -8,24 +8,19 @@ export class MrdLayoutSection {
|
|
|
8
8
|
this.items = [];
|
|
9
9
|
/** Record data object; keys are field names, _links holds relation and related-view links. */
|
|
10
10
|
this.data = {};
|
|
11
|
-
/**
|
|
11
|
+
/** Legacy: view metadata map (ClientDashboardMetadata.views). Not needed in new flat format. */
|
|
12
12
|
this.views = {};
|
|
13
|
-
/**
|
|
13
|
+
/** Legacy: top-level _links from ClientDashboardMetadata. Not needed in new flat format. */
|
|
14
14
|
this.links = {};
|
|
15
15
|
this.locale = navigator.language;
|
|
16
16
|
this.searchQueryMap = {};
|
|
17
17
|
this.searchResultsMap = {};
|
|
18
18
|
this.imagePreviewUrl = null;
|
|
19
19
|
this.imagePreviews = {};
|
|
20
|
-
this.activeViewMap = {};
|
|
21
|
-
this.viewLinksMap = {};
|
|
22
|
-
this.activeFiltersMap = {};
|
|
23
20
|
this.searchTimers = {};
|
|
24
21
|
this.handleViewLoadPage = (e, name) => {
|
|
25
|
-
var _a;
|
|
26
22
|
e.stopPropagation();
|
|
27
|
-
|
|
28
|
-
this.mrdLoadViewPage.emit({ name, page: e.detail.page, sort: e.detail.sort, filters });
|
|
23
|
+
this.mrdLoadViewPage.emit({ name, page: e.detail.page, sort: e.detail.sort, path: e.detail.path, qs: e.detail.qs });
|
|
29
24
|
};
|
|
30
25
|
this.handleSearchInput = (dataClass, query) => {
|
|
31
26
|
this.searchQueryMap = Object.assign(Object.assign({}, this.searchQueryMap), { [dataClass]: query });
|
|
@@ -42,59 +37,29 @@ export class MrdLayoutSection {
|
|
|
42
37
|
}
|
|
43
38
|
componentDidLoad() {
|
|
44
39
|
setTimeout(() => {
|
|
45
|
-
this.
|
|
40
|
+
this.initEmbeddedTables();
|
|
46
41
|
this.emitLoadImages();
|
|
47
42
|
}, 0);
|
|
48
43
|
}
|
|
49
|
-
linksChanged(newVal) {
|
|
50
|
-
if (Object.keys(newVal !== null && newVal !== void 0 ? newVal : {}).length > 0) {
|
|
51
|
-
this.emitLoadViews();
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
44
|
dataChanged(newVal) {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
this.emitLoadViews();
|
|
45
|
+
if (newVal && Object.keys(newVal).length > 0) {
|
|
46
|
+
setTimeout(() => this.initEmbeddedTables(), 0);
|
|
58
47
|
}
|
|
59
48
|
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
switch (f.operator) {
|
|
66
|
-
case 'FROM': return Object.assign(Object.assign({}, base), { from: (_a = f.value) !== null && _a !== void 0 ? _a : null });
|
|
67
|
-
case 'TO': return Object.assign(Object.assign({}, base), { to: (_b = f.value) !== null && _b !== void 0 ? _b : null });
|
|
68
|
-
case 'STARTS_WITH': return Object.assign(Object.assign({}, base), { operator: 'startsWith', value: (_c = f.value) !== null && _c !== void 0 ? _c : null });
|
|
69
|
-
case 'NOT_EMPTY': return Object.assign(Object.assign({}, base), { operator: 'isNotEmpty' });
|
|
70
|
-
case 'EMPTY': return Object.assign(Object.assign({}, base), { operator: 'isEmpty' });
|
|
71
|
-
default: return Object.assign(Object.assign({}, base), { operator: 'equals', value: (_d = f.value) !== null && _d !== void 0 ? _d : null });
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
}
|
|
75
|
-
emitLoadViews() {
|
|
76
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
77
|
-
const dataLinks = ((_b = (_a = this.data) === null || _a === void 0 ? void 0 : _a._links) !== null && _b !== void 0 ? _b : {});
|
|
78
|
-
for (const item of this.flattenItems(this.items)) {
|
|
79
|
-
if (item.type === ClientLayoutItemType.RELATED_VIEW && item.name) {
|
|
80
|
-
const viewConfig = this.views[item.name];
|
|
81
|
-
if (!viewConfig)
|
|
82
|
-
continue;
|
|
83
|
-
const href = (_d = dataLinks[(_c = item.relatedClass) !== null && _c !== void 0 ? _c : '']) === null || _d === void 0 ? void 0 : _d.href;
|
|
84
|
-
this.mrdLoadView.emit({ name: item.name, href, viewConfig, sort: (_e = viewConfig.defaultSort) !== null && _e !== void 0 ? _e : '', filters: this.resolveViewFilters(viewConfig) });
|
|
85
|
-
}
|
|
86
|
-
else if (item.type === ClientLayoutItemType.VIEW) {
|
|
87
|
-
const viewName = item.name;
|
|
88
|
-
if (!viewName)
|
|
89
|
-
continue;
|
|
90
|
-
const viewConfig = this.views[viewName];
|
|
91
|
-
if (!viewConfig)
|
|
92
|
-
continue;
|
|
93
|
-
const href = (_f = this.links[viewName]) === null || _f === void 0 ? void 0 : _f.href;
|
|
94
|
-
this.mrdLoadView.emit({ name: viewName, href, viewConfig, sort: (_g = viewConfig.defaultSort) !== null && _g !== void 0 ? _g : '', filters: this.resolveViewFilters(viewConfig) });
|
|
49
|
+
async initEmbeddedTables() {
|
|
50
|
+
const tables = this.el.querySelectorAll('mrd-table[data-view]');
|
|
51
|
+
for (const table of Array.from(tables)) {
|
|
52
|
+
if (typeof table.init === 'function') {
|
|
53
|
+
await table.init();
|
|
95
54
|
}
|
|
96
55
|
}
|
|
97
56
|
}
|
|
57
|
+
viewKeyFor(item) {
|
|
58
|
+
var _a, _b, _c, _d;
|
|
59
|
+
if (item.type === ClientLayoutItemType.RELATED_VIEW)
|
|
60
|
+
return (_b = (_a = item.relatedClass) !== null && _a !== void 0 ? _a : item.name) !== null && _b !== void 0 ? _b : '';
|
|
61
|
+
return (_d = (_c = item.dataClass) !== null && _c !== void 0 ? _c : item.name) !== null && _d !== void 0 ? _d : '';
|
|
62
|
+
}
|
|
98
63
|
emitLoadImages() {
|
|
99
64
|
for (const item of this.flattenItems(this.items)) {
|
|
100
65
|
if (item.type === ClientLayoutItemType.FIELD && item.dataType === ClientLayoutItemFieldDataType.IMAGE) {
|
|
@@ -124,21 +89,17 @@ export class MrdLayoutSection {
|
|
|
124
89
|
}
|
|
125
90
|
/**
|
|
126
91
|
* Inject data into an embedded mrd-table for a RELATED_VIEW or VIEW item.
|
|
127
|
-
* Pass totalElements
|
|
128
|
-
* Pass
|
|
92
|
+
* Pass totalElements to update the pagination total (safe to pass on every page).
|
|
93
|
+
* Pass hasNext (from _links.next presence) so the table can decide whether to emit aggregations.
|
|
129
94
|
*/
|
|
130
|
-
async setViewPage(name, page, rows, totalElements,
|
|
131
|
-
if (pageLinks) {
|
|
132
|
-
this.viewLinksMap = Object.assign(Object.assign({}, this.viewLinksMap), { [name]: pageLinks });
|
|
133
|
-
}
|
|
95
|
+
async setViewPage(name, page, rows, totalElements, hasNext) {
|
|
134
96
|
const table = this.el.querySelector(`mrd-table[data-view="${name}"]`);
|
|
135
97
|
if (!table)
|
|
136
98
|
return;
|
|
137
99
|
if (totalElements !== undefined) {
|
|
138
100
|
table.totalElements = totalElements;
|
|
139
|
-
await table.init();
|
|
140
101
|
}
|
|
141
|
-
await table.setPage(page, rows);
|
|
102
|
+
await table.setPage(page, rows, hasNext);
|
|
142
103
|
}
|
|
143
104
|
/** Inject aggregation totals into an embedded mrd-table for a VIEW or RELATED_VIEW item. */
|
|
144
105
|
async setViewAggregations(name, data) {
|
|
@@ -272,63 +233,36 @@ export class MrdLayoutSection {
|
|
|
272
233
|
return (h("div", { class: "mrd-layout-section__search", key: `search-${dataClass}` }, h("div", { class: "mrd-layout-section__search-wrap" }, h("svg", { class: "mrd-layout-section__search-icon", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "currentColor", "aria-hidden": "true" }, h("path", { "fill-rule": "evenodd", d: "M9 3.5a5.5 5.5 0 100 11 5.5 5.5 0 000-11zM2 9a7 7 0 1112.452 4.391l3.328 3.329a.75.75 0 11-1.06 1.06l-3.329-3.328A7 7 0 012 9z", "clip-rule": "evenodd" })), h("input", { class: "mrd-layout-section__search-input", type: "text", value: query, placeholder: (_c = item.label) !== null && _c !== void 0 ? _c : '', onInput: e => this.handleSearchInput(dataClass, e.target.value) })), results.length > 0 && (h("ul", { class: "mrd-layout-section__search-results" }, results.map(r => (h("li", { key: r.id, class: "mrd-layout-section__search-result" }, h("button", { class: "mrd-layout-section__search-result-btn", onClick: () => this.mrdNavigate.emit({ href: r.id, label: r.label }) }, h("span", { class: "mrd-layout-section__search-result-label" }, r.label), r.description && h("span", { class: "mrd-layout-section__search-result-desc" }, r.description)))))))));
|
|
273
234
|
}
|
|
274
235
|
renderRelatedView(item) {
|
|
275
|
-
var _a, _b, _c, _d, _e, _f
|
|
276
|
-
const
|
|
277
|
-
|
|
278
|
-
if (!name)
|
|
236
|
+
var _a, _b, _c, _d, _e, _f;
|
|
237
|
+
const key = this.viewKeyFor(item);
|
|
238
|
+
if (!key)
|
|
279
239
|
return null;
|
|
280
|
-
|
|
281
|
-
if (!viewConfig)
|
|
240
|
+
if (!item.view)
|
|
282
241
|
return null;
|
|
283
242
|
const showTitle = (_a = item.showTitle) !== null && _a !== void 0 ? _a : false;
|
|
284
|
-
|
|
285
|
-
const
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
const activeEntry = allViews.find(v => v.name === activeName);
|
|
290
|
-
const viewLabel = (_k = (_j = (_h = activeEntry === null || activeEntry === void 0 ? void 0 : activeEntry.label) !== null && _h !== void 0 ? _h : activeViewConfig.pluralLabel) !== null && _j !== void 0 ? _j : activeViewConfig.singularLabel) !== null && _k !== void 0 ? _k : '';
|
|
291
|
-
const altViews = allViews.filter(v => v.name !== activeName);
|
|
292
|
-
const rawActions = (_l = item.actions) !== null && _l !== void 0 ? _l : ['NEW', 'EXPORT'];
|
|
293
|
-
const tableActions = rawActions.reduce((acc, a) => {
|
|
294
|
-
if (a === 'NEW')
|
|
295
|
-
acc.push({ action: 'create', label: t('table_new_record', this.locale), icon: 'assets/sprites.svg#icon-plus', variant: 'primary' });
|
|
296
|
-
if (a === 'EXPORT')
|
|
297
|
-
acc.push({ action: 'export', label: t('table_export_excel', this.locale), icon: 'assets/sprites.svg#icon-file-excel' });
|
|
298
|
-
return acc;
|
|
299
|
-
}, []);
|
|
300
|
-
return (h("div", { class: "mrd-layout-section__related-view", key: `view-${name}` }, showTitle && item.label && h("h3", { class: "mrd-layout-section__related-view-title" }, item.label), h("mrd-table", { "data-view": name, columns: activeViewConfig.values, locale: this.locale, defaultSort: (_m = activeViewConfig.defaultSort) !== null && _m !== void 0 ? _m : '', viewLabel: viewLabel, alternativeViews: altViews, actions: tableActions, onMrdLoadPage: (e) => this.handleViewLoadPage(e, name), onMrdSwitchView: (e) => {
|
|
301
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
302
|
-
e.stopPropagation();
|
|
303
|
-
const newViewName = e.detail.name;
|
|
304
|
-
const newViewConfig = this.views[newViewName];
|
|
305
|
-
if (!newViewConfig)
|
|
306
|
-
return;
|
|
307
|
-
this.activeViewMap = Object.assign(Object.assign({}, this.activeViewMap), { [name]: newViewName });
|
|
308
|
-
this.activeFiltersMap = Object.assign(Object.assign({}, this.activeFiltersMap), { [name]: [] });
|
|
309
|
-
const dataLinks = ((_b = (_a = this.data) === null || _a === void 0 ? void 0 : _a._links) !== null && _b !== void 0 ? _b : {});
|
|
310
|
-
const href = isRelated
|
|
311
|
-
? (_d = dataLinks[(_c = item.relatedClass) !== null && _c !== void 0 ? _c : '']) === null || _d === void 0 ? void 0 : _d.href
|
|
312
|
-
: ((_f = (_e = this.links[newViewName]) === null || _e === void 0 ? void 0 : _e.href) !== null && _f !== void 0 ? _f : (_g = this.links[name]) === null || _g === void 0 ? void 0 : _g.href);
|
|
313
|
-
this.mrdLoadView.emit({ name, href, viewConfig: newViewConfig, sort: (_h = newViewConfig.defaultSort) !== null && _h !== void 0 ? _h : '', filters: this.resolveViewFilters(newViewConfig) });
|
|
314
|
-
}, onMrdFilter: (e) => {
|
|
243
|
+
// Extract parentId from data._links.self.href for RELATED_VIEW path construction
|
|
244
|
+
const selfHref = (_e = (_d = (_c = (_b = this.data) === null || _b === void 0 ? void 0 : _b._links) === null || _c === void 0 ? void 0 : _c.self) === null || _d === void 0 ? void 0 : _d.href) !== null && _e !== void 0 ? _e : '';
|
|
245
|
+
const parentId = (_f = selfHref.split('/').filter(Boolean).pop()) !== null && _f !== void 0 ? _f : '';
|
|
246
|
+
return (h("div", { class: "mrd-layout-section__related-view", key: `view-${key}` }, showTitle && item.label && h("h3", { class: "mrd-layout-section__related-view-title" }, item.label), h("mrd-table", { "data-view": key, item: item, parentId: parentId, locale: this.locale, onMrdLoadPage: (e) => this.handleViewLoadPage(e, key), onMrdLoadAggregations: (e) => {
|
|
247
|
+
var _a;
|
|
315
248
|
e.stopPropagation();
|
|
316
|
-
this.
|
|
317
|
-
},
|
|
318
|
-
var _a, _b, _c
|
|
249
|
+
this.mrdLoadViewAggregations.emit(Object.assign({ name: key, dataClass: (_a = item.dataClass) !== null && _a !== void 0 ? _a : key }, e.detail));
|
|
250
|
+
}, onMrdRowClick: (e) => {
|
|
251
|
+
var _a, _b, _c;
|
|
319
252
|
e.stopPropagation();
|
|
320
|
-
const
|
|
321
|
-
|
|
322
|
-
? (_d = dataLinks[(_c = item.relatedClass) !== null && _c !== void 0 ? _c : '']) === null || _d === void 0 ? void 0 : _d.href
|
|
323
|
-
: ((_g = (_f = this.links[(_e = this.activeViewMap[name]) !== null && _e !== void 0 ? _e : name]) === null || _f === void 0 ? void 0 : _f.href) !== null && _g !== void 0 ? _g : (_h = this.links[name]) === null || _h === void 0 ? void 0 : _h.href);
|
|
324
|
-
const filters = (_j = this.activeFiltersMap[name]) !== null && _j !== void 0 ? _j : [];
|
|
325
|
-
this.mrdLoadViewAggregations.emit(Object.assign({ name, href, filters }, e.detail));
|
|
253
|
+
const row = e.detail;
|
|
254
|
+
this.mrdNavigate.emit({ href: (_b = (_a = row === null || row === void 0 ? void 0 : row._links) === null || _a === void 0 ? void 0 : _a.self) === null || _b === void 0 ? void 0 : _b.href, label: (_c = row === null || row === void 0 ? void 0 : row.name) !== null && _c !== void 0 ? _c : '' });
|
|
326
255
|
}, onMrdAction: (e) => {
|
|
327
|
-
var _a
|
|
256
|
+
var _a;
|
|
328
257
|
e.stopPropagation();
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
258
|
+
this.mrdViewAction.emit({
|
|
259
|
+
name: key,
|
|
260
|
+
action: e.detail.action,
|
|
261
|
+
dataClass: (_a = item.dataClass) !== null && _a !== void 0 ? _a : key,
|
|
262
|
+
path: e.detail.path,
|
|
263
|
+
qs: e.detail.qs,
|
|
264
|
+
parentPath: e.detail.parentPath,
|
|
265
|
+
});
|
|
332
266
|
} })));
|
|
333
267
|
}
|
|
334
268
|
renderItem(item) {
|
|
@@ -362,7 +296,7 @@ export class MrdLayoutSection {
|
|
|
362
296
|
return (h("div", { class: "mrd-layout-section__modal-backdrop", onClick: () => { this.imagePreviewUrl = null; } }, h("div", { class: "mrd-layout-section__modal", onClick: (e) => e.stopPropagation() }, h("button", { class: "mrd-layout-section__modal-close", onClick: () => { this.imagePreviewUrl = null; } }, "\u2715"), h("img", { class: "mrd-layout-section__modal-image", src: this.imagePreviewUrl, alt: "" }))));
|
|
363
297
|
}
|
|
364
298
|
render() {
|
|
365
|
-
return (h(Host, { key: '
|
|
299
|
+
return (h(Host, { key: '0a3a58f5c80716bc0a7ba1b9468b721706d2ce4a' }, h("div", { key: '7cf63580c584811c1bb84b419e8d13026e432fba', class: "mrd-layout-section" }, this.items.map(item => this.renderItem(item))), this.renderImageModal()));
|
|
366
300
|
}
|
|
367
301
|
static get is() { return "mrd-layout-section"; }
|
|
368
302
|
static get encapsulation() { return "scoped"; }
|
|
@@ -449,7 +383,7 @@ export class MrdLayoutSection {
|
|
|
449
383
|
"optional": false,
|
|
450
384
|
"docs": {
|
|
451
385
|
"tags": [],
|
|
452
|
-
"text": "
|
|
386
|
+
"text": "Legacy: view metadata map (ClientDashboardMetadata.views). Not needed in new flat format."
|
|
453
387
|
},
|
|
454
388
|
"getter": false,
|
|
455
389
|
"setter": false,
|
|
@@ -472,7 +406,7 @@ export class MrdLayoutSection {
|
|
|
472
406
|
"optional": false,
|
|
473
407
|
"docs": {
|
|
474
408
|
"tags": [],
|
|
475
|
-
"text": "
|
|
409
|
+
"text": "Legacy: top-level _links from ClientDashboardMetadata. Not needed in new flat format."
|
|
476
410
|
},
|
|
477
411
|
"getter": false,
|
|
478
412
|
"setter": false,
|
|
@@ -505,8 +439,7 @@ export class MrdLayoutSection {
|
|
|
505
439
|
"searchQueryMap": {},
|
|
506
440
|
"searchResultsMap": {},
|
|
507
441
|
"imagePreviewUrl": {},
|
|
508
|
-
"imagePreviews": {}
|
|
509
|
-
"activeViewMap": {}
|
|
442
|
+
"imagePreviews": {}
|
|
510
443
|
};
|
|
511
444
|
}
|
|
512
445
|
static get events() {
|
|
@@ -562,34 +495,6 @@ export class MrdLayoutSection {
|
|
|
562
495
|
"resolved": "{ href: string; fileName: string; }",
|
|
563
496
|
"references": {}
|
|
564
497
|
}
|
|
565
|
-
}, {
|
|
566
|
-
"method": "mrdLoadView",
|
|
567
|
-
"name": "mrdLoadView",
|
|
568
|
-
"bubbles": true,
|
|
569
|
-
"cancelable": true,
|
|
570
|
-
"composed": true,
|
|
571
|
-
"docs": {
|
|
572
|
-
"tags": [],
|
|
573
|
-
"text": "Fired once on load for each RELATED_VIEW and VIEW item; host fetches page 0 and calls setViewPage()."
|
|
574
|
-
},
|
|
575
|
-
"complexType": {
|
|
576
|
-
"original": "{ name: string; href?: string; viewConfig: ClientViewMetadata; sort: string; filters: ColumnFilter[] }",
|
|
577
|
-
"resolved": "{ name: string; href?: string | undefined; viewConfig: ClientViewMetadata; sort: string; filters: ColumnFilter[]; }",
|
|
578
|
-
"references": {
|
|
579
|
-
"ClientViewMetadata": {
|
|
580
|
-
"location": "import",
|
|
581
|
-
"path": "../../types/client-layout",
|
|
582
|
-
"id": "src/types/client-layout.ts::ClientViewMetadata",
|
|
583
|
-
"referenceLocation": "ClientViewMetadata"
|
|
584
|
-
},
|
|
585
|
-
"ColumnFilter": {
|
|
586
|
-
"location": "import",
|
|
587
|
-
"path": "../../utils/cell-renderer",
|
|
588
|
-
"id": "src/utils/cell-renderer.ts::ColumnFilter",
|
|
589
|
-
"referenceLocation": "ColumnFilter"
|
|
590
|
-
}
|
|
591
|
-
}
|
|
592
|
-
}
|
|
593
498
|
}, {
|
|
594
499
|
"method": "mrdLoadViewPage",
|
|
595
500
|
"name": "mrdLoadViewPage",
|
|
@@ -601,16 +506,9 @@ export class MrdLayoutSection {
|
|
|
601
506
|
"text": "Re-emitted from an embedded mrd-table's mrdLoadPage; host fetches the next page and calls setViewPage()."
|
|
602
507
|
},
|
|
603
508
|
"complexType": {
|
|
604
|
-
"original": "{ name: string; page: number; sort: string;
|
|
605
|
-
"resolved": "{ name: string; page: number; sort: string;
|
|
606
|
-
"references": {
|
|
607
|
-
"ColumnFilter": {
|
|
608
|
-
"location": "import",
|
|
609
|
-
"path": "../../utils/cell-renderer",
|
|
610
|
-
"id": "src/utils/cell-renderer.ts::ColumnFilter",
|
|
611
|
-
"referenceLocation": "ColumnFilter"
|
|
612
|
-
}
|
|
613
|
-
}
|
|
509
|
+
"original": "{ name: string; page: number; sort: string; path: string; qs: string }",
|
|
510
|
+
"resolved": "{ name: string; page: number; sort: string; path: string; qs: string; }",
|
|
511
|
+
"references": {}
|
|
614
512
|
}
|
|
615
513
|
}, {
|
|
616
514
|
"method": "mrdLoadImage",
|
|
@@ -635,11 +533,11 @@ export class MrdLayoutSection {
|
|
|
635
533
|
"composed": true,
|
|
636
534
|
"docs": {
|
|
637
535
|
"tags": [],
|
|
638
|
-
"text": "Re-emitted from an embedded mrd-table's mrdAction;
|
|
536
|
+
"text": "Re-emitted from an embedded mrd-table's mrdAction; host builds the target URL from dataClass."
|
|
639
537
|
},
|
|
640
538
|
"complexType": {
|
|
641
|
-
"original": "{ name: string; action: string;
|
|
642
|
-
"resolved": "{ name: string; action: string;
|
|
539
|
+
"original": "{ name: string; action: string; dataClass: string; path?: string; qs?: string; parentPath?: string | null }",
|
|
540
|
+
"resolved": "{ name: string; action: string; dataClass: string; path?: string | undefined; qs?: string | undefined; parentPath?: string | null | undefined; }",
|
|
643
541
|
"references": {}
|
|
644
542
|
}
|
|
645
543
|
}, {
|
|
@@ -653,16 +551,9 @@ export class MrdLayoutSection {
|
|
|
653
551
|
"text": "Re-emitted from an embedded mrd-table's mrdLoadAggregations; host calls setViewAggregations() with the result."
|
|
654
552
|
},
|
|
655
553
|
"complexType": {
|
|
656
|
-
"original": "{ name: string;
|
|
657
|
-
"resolved": "{ name: string;
|
|
658
|
-
"references": {
|
|
659
|
-
"ColumnFilter": {
|
|
660
|
-
"location": "import",
|
|
661
|
-
"path": "../../utils/cell-renderer",
|
|
662
|
-
"id": "src/utils/cell-renderer.ts::ColumnFilter",
|
|
663
|
-
"referenceLocation": "ColumnFilter"
|
|
664
|
-
}
|
|
665
|
-
}
|
|
554
|
+
"original": "{ name: string; dataClass: string; path: string; qs: string; aggQs: string }",
|
|
555
|
+
"resolved": "{ name: string; dataClass: string; path: string; qs: string; aggQs: string; }",
|
|
556
|
+
"references": {}
|
|
666
557
|
}
|
|
667
558
|
}];
|
|
668
559
|
}
|
|
@@ -701,7 +592,7 @@ export class MrdLayoutSection {
|
|
|
701
592
|
},
|
|
702
593
|
"setViewPage": {
|
|
703
594
|
"complexType": {
|
|
704
|
-
"signature": "(name: string, page: number, rows: any[], totalElements?: number,
|
|
595
|
+
"signature": "(name: string, page: number, rows: any[], totalElements?: number, hasNext?: boolean) => Promise<void>",
|
|
705
596
|
"parameters": [{
|
|
706
597
|
"name": "name",
|
|
707
598
|
"type": "string",
|
|
@@ -719,24 +610,20 @@ export class MrdLayoutSection {
|
|
|
719
610
|
"type": "number | undefined",
|
|
720
611
|
"docs": ""
|
|
721
612
|
}, {
|
|
722
|
-
"name": "
|
|
723
|
-
"type": "
|
|
613
|
+
"name": "hasNext",
|
|
614
|
+
"type": "boolean | undefined",
|
|
724
615
|
"docs": ""
|
|
725
616
|
}],
|
|
726
617
|
"references": {
|
|
727
618
|
"Promise": {
|
|
728
619
|
"location": "global",
|
|
729
620
|
"id": "global::Promise"
|
|
730
|
-
},
|
|
731
|
-
"Record": {
|
|
732
|
-
"location": "global",
|
|
733
|
-
"id": "global::Record"
|
|
734
621
|
}
|
|
735
622
|
},
|
|
736
623
|
"return": "Promise<void>"
|
|
737
624
|
},
|
|
738
625
|
"docs": {
|
|
739
|
-
"text": "Inject data into an embedded mrd-table for a RELATED_VIEW or VIEW item.\nPass totalElements
|
|
626
|
+
"text": "Inject data into an embedded mrd-table for a RELATED_VIEW or VIEW item.\nPass totalElements to update the pagination total (safe to pass on every page).\nPass hasNext (from _links.next presence) so the table can decide whether to emit aggregations.",
|
|
740
627
|
"tags": []
|
|
741
628
|
}
|
|
742
629
|
},
|
|
@@ -816,9 +703,6 @@ export class MrdLayoutSection {
|
|
|
816
703
|
static get elementRef() { return "el"; }
|
|
817
704
|
static get watchers() {
|
|
818
705
|
return [{
|
|
819
|
-
"propName": "links",
|
|
820
|
-
"methodName": "linksChanged"
|
|
821
|
-
}, {
|
|
822
706
|
"propName": "data",
|
|
823
707
|
"methodName": "dataChanged"
|
|
824
708
|
}];
|