@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.
@@ -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, filename/download,
6
- * summary and date — plus a navigation link to the container (the dossier),
7
- * instead of a generic field form.
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
- /** Filename + download button — the only file-related UI this component owns;
55
- * inline preview rendering is entirely the host's responsibility. */
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, filename/download,
230
- * summary and date — plus a navigation link to the container (the dossier),
231
- * instead of a generic field form.
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, filename/download,
1064
- * summary and date — plus a navigation link to the container (the dossier),
1065
- * instead of a generic field form.
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, filename/download,
1689
- * summary and date — plus a navigation link to the container (the dossier),
1690
- * instead of a generic field form.
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, filename/download,
2598
- * summary and date — plus a navigation link to the container (the dossier),
2599
- * instead of a generic field form.
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?: number | Record<string, number>;
140
+ count?: Record<string, number>;
142
141
  sum?: Record<string, number>;
143
142
  avg?: Record<string, number>;
144
143
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mmlogic/components",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "Stencil.js web component library for dynamic forms and virtual-scroll data tables",
5
5
  "license": "MIT",
6
6
  "author": "Mosterd",