@mmlogic/components 0.5.0 → 0.5.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/mrd-boolean-field_23.cjs.entry.js +17 -16
- package/dist/collection/components/documents/mrd-document-view/mrd-document-view.css +27 -24
- package/dist/collection/components/documents/mrd-document-view/mrd-document-view.js +16 -9
- package/dist/collection/components/table/mrd-table/mrd-table.js +2 -4
- package/dist/collection/components/table/mrd-table/table-parts.js +2 -5
- package/dist/collection/dev/example-data.js +2 -1
- package/dist/components/mrd-document-view2.js +1 -1
- package/dist/components/mrd-table2.js +1 -1
- package/dist/esm/mrd-boolean-field_23.entry.js +17 -16
- package/dist/mosterdcomponents/mosterdcomponents.esm.js +1 -1
- package/dist/mosterdcomponents/p-cdecc698.entry.js +1 -0
- package/dist/types/components/documents/mrd-document-view/mrd-document-view.d.ts +9 -5
- package/dist/types/components.d.ts +16 -12
- package/dist/types/types/client-layout.d.ts +2 -3
- package/package.json +1 -1
- package/dist/mosterdcomponents/p-b56f9802.entry.js +0 -1
|
@@ -2,9 +2,10 @@ import { EventEmitter } from '../../../stencil-public-runtime';
|
|
|
2
2
|
import { ClientArchetype, DocumentAttachment } from '../../../types/client-layout';
|
|
3
3
|
/**
|
|
4
4
|
* Archetype-driven single-document view. Given a `commons.document` binding and a
|
|
5
|
-
* data record, renders the document recognisably — title,
|
|
6
|
-
*
|
|
7
|
-
*
|
|
5
|
+
* data record, renders the document recognisably — title, date, a navigation
|
|
6
|
+
* link to the container (the dossier) presented like any other data-object link
|
|
7
|
+
* (primary-coloured text link), an optional muted folder path, a download button
|
|
8
|
+
* and summary — instead of a generic field form.
|
|
8
9
|
*
|
|
9
10
|
* The component keys on the slot→field map (`archetype.slots`) to locate values:
|
|
10
11
|
* value slots read `data[field]`; the `container` relation slot reads
|
|
@@ -50,9 +51,12 @@ export declare class MrdDocumentView {
|
|
|
50
51
|
private slotValue;
|
|
51
52
|
/** Relation link for a relation-slot: reads data._links[field]. */
|
|
52
53
|
private slotLink;
|
|
54
|
+
/** Container link (styled like relation links in layout sections: primary text
|
|
55
|
+
* link) plus a muted, non-interactive folder path when present. */
|
|
53
56
|
private renderContainer;
|
|
54
|
-
/**
|
|
55
|
-
*
|
|
57
|
+
/** Download button — the only file-related UI this component owns; the filename
|
|
58
|
+
* is deliberately not shown (rarely relevant, the title identifies the document)
|
|
59
|
+
* and inline preview rendering is entirely the host's responsibility. */
|
|
56
60
|
private renderFileMeta;
|
|
57
61
|
render(): any;
|
|
58
62
|
}
|
|
@@ -226,9 +226,10 @@ export namespace Components {
|
|
|
226
226
|
}
|
|
227
227
|
/**
|
|
228
228
|
* Archetype-driven single-document view. Given a `commons.document` binding and a
|
|
229
|
-
* data record, renders the document recognisably — title,
|
|
230
|
-
*
|
|
231
|
-
*
|
|
229
|
+
* data record, renders the document recognisably — title, date, a navigation
|
|
230
|
+
* link to the container (the dossier) presented like any other data-object link
|
|
231
|
+
* (primary-coloured text link), an optional muted folder path, a download button
|
|
232
|
+
* and summary — instead of a generic field form.
|
|
232
233
|
* The component keys on the slot→field map (`archetype.slots`) to locate values:
|
|
233
234
|
* value slots read `data[field]`; the `container` relation slot reads
|
|
234
235
|
* `data._links[field]` (`{ href, name }`). Empty slots are omitted.
|
|
@@ -1060,9 +1061,10 @@ declare global {
|
|
|
1060
1061
|
}
|
|
1061
1062
|
/**
|
|
1062
1063
|
* Archetype-driven single-document view. Given a `commons.document` binding and a
|
|
1063
|
-
* data record, renders the document recognisably — title,
|
|
1064
|
-
*
|
|
1065
|
-
*
|
|
1064
|
+
* data record, renders the document recognisably — title, date, a navigation
|
|
1065
|
+
* link to the container (the dossier) presented like any other data-object link
|
|
1066
|
+
* (primary-coloured text link), an optional muted folder path, a download button
|
|
1067
|
+
* and summary — instead of a generic field form.
|
|
1066
1068
|
* The component keys on the slot→field map (`archetype.slots`) to locate values:
|
|
1067
1069
|
* value slots read `data[field]`; the `container` relation slot reads
|
|
1068
1070
|
* `data._links[field]` (`{ href, name }`). Empty slots are omitted.
|
|
@@ -1685,9 +1687,10 @@ declare namespace LocalJSX {
|
|
|
1685
1687
|
}
|
|
1686
1688
|
/**
|
|
1687
1689
|
* Archetype-driven single-document view. Given a `commons.document` binding and a
|
|
1688
|
-
* data record, renders the document recognisably — title,
|
|
1689
|
-
*
|
|
1690
|
-
*
|
|
1690
|
+
* data record, renders the document recognisably — title, date, a navigation
|
|
1691
|
+
* link to the container (the dossier) presented like any other data-object link
|
|
1692
|
+
* (primary-coloured text link), an optional muted folder path, a download button
|
|
1693
|
+
* and summary — instead of a generic field form.
|
|
1691
1694
|
* The component keys on the slot→field map (`archetype.slots`) to locate values:
|
|
1692
1695
|
* value slots read `data[field]`; the `container` relation slot reads
|
|
1693
1696
|
* `data._links[field]` (`{ href, name }`). Empty slots are omitted.
|
|
@@ -2594,9 +2597,10 @@ declare module "@stencil/core" {
|
|
|
2594
2597
|
"mrd-document-list": LocalJSX.IntrinsicElements["mrd-document-list"] & JSXBase.HTMLAttributes<HTMLMrdDocumentListElement>;
|
|
2595
2598
|
/**
|
|
2596
2599
|
* Archetype-driven single-document view. Given a `commons.document` binding and a
|
|
2597
|
-
* data record, renders the document recognisably — title,
|
|
2598
|
-
*
|
|
2599
|
-
*
|
|
2600
|
+
* data record, renders the document recognisably — title, date, a navigation
|
|
2601
|
+
* link to the container (the dossier) presented like any other data-object link
|
|
2602
|
+
* (primary-coloured text link), an optional muted folder path, a download button
|
|
2603
|
+
* and summary — instead of a generic field form.
|
|
2600
2604
|
* The component keys on the slot→field map (`archetype.slots`) to locate values:
|
|
2601
2605
|
* value slots read `data[field]`; the `container` relation slot reads
|
|
2602
2606
|
* `data._links[field]` (`{ href, name }`). Empty slots are omitted.
|
|
@@ -134,11 +134,10 @@ export interface ClientLayoutItemField {
|
|
|
134
134
|
aggregate?: 'sum' | 'avg' | 'count' | null;
|
|
135
135
|
historyEnabled?: boolean;
|
|
136
136
|
}
|
|
137
|
-
/** Response shape from the /aggregations endpoint.
|
|
138
|
-
* `count` is a plain number (total record count) when returned at the top level. */
|
|
137
|
+
/** Response shape from the /aggregations endpoint. */
|
|
139
138
|
export interface AggregationResult {
|
|
140
139
|
total?: number;
|
|
141
|
-
count?:
|
|
140
|
+
count?: Record<string, number>;
|
|
142
141
|
sum?: Record<string, number>;
|
|
143
142
|
avg?: Record<string, number>;
|
|
144
143
|
}
|