@meshmakers/octo-ui 3.5.90 → 3.5.110
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/package.json
CHANGED
|
@@ -1473,16 +1473,18 @@ declare enum DefaultPropertyCategory {
|
|
|
1473
1473
|
Metadata = "Metadata"
|
|
1474
1474
|
}
|
|
1475
1475
|
/**
|
|
1476
|
-
* Event data for binary download requests
|
|
1476
|
+
* Event data for binary download requests: the clicked `BINARY_LINKED` value itself.
|
|
1477
|
+
* Structurally a `BinaryReference` of `@meshmakers/octo-services`, so a host can pass it straight to
|
|
1478
|
+
* `FileDownloadService.downloadBinary()` — no owner-type lookup needed (AB#6179).
|
|
1477
1479
|
*/
|
|
1478
1480
|
interface BinaryDownloadEvent {
|
|
1479
|
-
/** The binary ID to download */
|
|
1480
|
-
binaryId
|
|
1481
|
+
/** The binary ID to download. Absent only when the value carries just a `downloadUri`. */
|
|
1482
|
+
binaryId?: string;
|
|
1481
1483
|
/** Optional filename for the download */
|
|
1482
1484
|
filename?: string;
|
|
1483
1485
|
/** Optional content type */
|
|
1484
1486
|
contentType?: string;
|
|
1485
|
-
/**
|
|
1487
|
+
/** Download URI if the value carries one (typed `LargeBinaryInfo` fields do, the generic attribute projection does not) */
|
|
1486
1488
|
downloadUri?: string;
|
|
1487
1489
|
}
|
|
1488
1490
|
|
|
@@ -1607,6 +1609,7 @@ declare class PropertyGridComponent implements OnInit, OnChanges {
|
|
|
1607
1609
|
propertyChange: EventEmitter<PropertyChangeEvent>;
|
|
1608
1610
|
saveRequested: EventEmitter<PropertyGridItem[]>;
|
|
1609
1611
|
binaryDownload: EventEmitter<BinaryDownloadEvent>;
|
|
1612
|
+
private readonly injector;
|
|
1610
1613
|
filteredData: PropertyGridItem[];
|
|
1611
1614
|
searchTerm: string;
|
|
1612
1615
|
hasChanges: boolean;
|
|
@@ -1649,7 +1652,8 @@ declare class PropertyGridComponent implements OnInit, OnChanges {
|
|
|
1649
1652
|
*/
|
|
1650
1653
|
onPropertyChange(property: PropertyGridItem, oldValue: unknown, newValue: unknown): void;
|
|
1651
1654
|
/**
|
|
1652
|
-
* Handle binary download request from property value display
|
|
1655
|
+
* Handle binary download request from property value display: forwarded to the host when it binds
|
|
1656
|
+
* `(binaryDownload)`, otherwise downloaded here with the user's bearer (AB#6179).
|
|
1653
1657
|
*/
|
|
1654
1658
|
onBinaryDownload(event: BinaryDownloadEvent): void;
|
|
1655
1659
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PropertyGridComponent, never>;
|
|
@@ -1673,6 +1677,7 @@ declare class PropertyValueDisplayComponent implements OnInit, OnChanges {
|
|
|
1673
1677
|
binaryDownload: EventEmitter<BinaryDownloadEvent>;
|
|
1674
1678
|
isExpanded: boolean;
|
|
1675
1679
|
private readonly windowService;
|
|
1680
|
+
private readonly injector;
|
|
1676
1681
|
private readonly locale;
|
|
1677
1682
|
/** Non-null when the value is a secret state (SECRET value type or record member marker). */
|
|
1678
1683
|
secretStatus: SecretStatus | null;
|
|
@@ -1776,7 +1781,11 @@ declare class PropertyValueDisplayComponent implements OnInit, OnChanges {
|
|
|
1776
1781
|
*/
|
|
1777
1782
|
private formatFileSize;
|
|
1778
1783
|
/**
|
|
1779
|
-
* Handle download button click
|
|
1784
|
+
* Handle download button click.
|
|
1785
|
+
*
|
|
1786
|
+
* Emits {@link binaryDownload} with the clicked value when a host listens. Without a listener the
|
|
1787
|
+
* component downloads the value itself through `FileDownloadService` — an authenticated blob
|
|
1788
|
+
* download with the user's bearer, never `window.open(rawUrl)`, which carries no token (AB#6179).
|
|
1780
1789
|
*/
|
|
1781
1790
|
onDownload(): void;
|
|
1782
1791
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PropertyValueDisplayComponent, never>;
|