bways-report 0.2.7 → 0.2.9
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/README.md +6 -1
- package/esm2022/lib/core/config/bways-report-config.mjs +4 -1
- package/esm2022/lib/core/models/report-menu.model.mjs +1 -1
- package/esm2022/lib/core/utils/report-menu-route.util.mjs +23 -0
- package/esm2022/lib/data-access/adapters/endpoint-persistence.adapter.mjs +6 -3
- package/esm2022/lib/data-access/adapters/http-persistence.adapter.mjs +6 -3
- package/esm2022/lib/data-access/adapters/report-save-response.mjs +11 -0
- package/esm2022/lib/data-access/contracts/report-persistence.contract.mjs +3 -1
- package/esm2022/lib/features/designer/components/dialogs/report-saved-dialog.component.mjs +36 -16
- package/esm2022/lib/features/designer/components/menu-selector/report-menu-selector.component.mjs +3 -3
- package/esm2022/lib/features/designer/services/designer-endpoints.service.mjs +4 -2
- package/esm2022/lib/features/persistence/services/report-store.service.mjs +3 -1
- package/fesm2022/bways-report.mjs +85 -20
- package/fesm2022/bways-report.mjs.map +1 -1
- package/lib/core/models/report-menu.model.d.ts +18 -0
- package/lib/core/utils/report-menu-route.util.d.ts +2 -0
- package/lib/data-access/adapters/endpoint-persistence.adapter.d.ts +1 -0
- package/lib/data-access/adapters/http-persistence.adapter.d.ts +1 -0
- package/lib/data-access/adapters/report-save-response.d.ts +3 -0
- package/lib/data-access/contracts/report-persistence.contract.d.ts +4 -0
- package/lib/features/designer/components/dialogs/report-saved-dialog.component.d.ts +2 -1
- package/package.json +1 -1
|
@@ -19,6 +19,29 @@ import { A11yModule } from '@angular/cdk/a11y';
|
|
|
19
19
|
import * as i1$2 from '@angular/cdk/drag-drop';
|
|
20
20
|
import { DragDropModule } from '@angular/cdk/drag-drop';
|
|
21
21
|
|
|
22
|
+
function validateMenuRouteSave(config) {
|
|
23
|
+
const identifier = /^[A-Za-z_][A-Za-z0-9_]*$/;
|
|
24
|
+
if (!config || typeof config.table !== 'string' || config.table.split('.').length > 2 || !config.table.split('.').every(part => identifier.test(part)))
|
|
25
|
+
throw new Error('menu.routeSave.table must be a table or schema.table identifier.');
|
|
26
|
+
for (const column of [config.column, config.keyColumn ?? 'MENU_KEY', config.moduleColumn ?? 'MODULE_NO', ...(config.parentColumn !== undefined ? [config.parentColumn] : [])]) {
|
|
27
|
+
if (typeof column !== 'string' || !identifier.test(column))
|
|
28
|
+
throw new Error('menu.routeSave column names must be identifiers.');
|
|
29
|
+
}
|
|
30
|
+
const protectedColumns = [config.column, config.keyColumn ?? 'MENU_KEY', config.moduleColumn ?? 'MODULE_NO', config.parentColumn].filter(Boolean).map(value => value.toLowerCase());
|
|
31
|
+
if (new Set(protectedColumns).size !== protectedColumns.length)
|
|
32
|
+
throw new Error('menu.routeSave route and identity columns must be distinct.');
|
|
33
|
+
if (config.updateColumns !== undefined && (!config.updateColumns || typeof config.updateColumns !== 'object' || Array.isArray(config.updateColumns)))
|
|
34
|
+
throw new Error('menu.routeSave.updateColumns must be an object of column/value pairs.');
|
|
35
|
+
const names = new Set(protectedColumns);
|
|
36
|
+
for (const [column, value] of Object.entries(config.updateColumns ?? {})) {
|
|
37
|
+
if (!identifier.test(column) || names.has(column.toLowerCase()))
|
|
38
|
+
throw new Error('menu.routeSave update columns must be distinct from route and identity columns.');
|
|
39
|
+
names.add(column.toLowerCase());
|
|
40
|
+
if (value !== null && !['string', 'number', 'boolean'].includes(typeof value) || typeof value === 'number' && !Number.isFinite(value))
|
|
41
|
+
throw new Error('menu.routeSave update values must be finite scalar values.');
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
22
45
|
/** Built-in report storage uses the same reporting service; no separate save URL is required. */
|
|
23
46
|
function resolveReportsEndpoint(source) {
|
|
24
47
|
const clean = (value) => value.trim().replace(/\/+$/, '');
|
|
@@ -57,6 +80,8 @@ const PALETTE_CATEGORY_MAP = {
|
|
|
57
80
|
*/
|
|
58
81
|
function normalizeBwaysConfig(config) {
|
|
59
82
|
if (config.menu != null) {
|
|
83
|
+
if (config.menu.routeSave !== undefined)
|
|
84
|
+
validateMenuRouteSave(config.menu.routeSave);
|
|
60
85
|
if (config.menu.format !== undefined && config.menu.format !== 'tree' && config.menu.format !== 'erp')
|
|
61
86
|
throw new Error('menu.format must be tree or erp.');
|
|
62
87
|
if (typeof config.menu.load !== 'function')
|
|
@@ -2268,6 +2293,8 @@ class MasterDataProvider {
|
|
|
2268
2293
|
* ```
|
|
2269
2294
|
*/
|
|
2270
2295
|
class ReportPersistenceAdapter {
|
|
2296
|
+
/** Custom adapters must opt in and perform the route update atomically with report saving. */
|
|
2297
|
+
supportsMenuRouteSave() { return false; }
|
|
2271
2298
|
/** Returns true when this ID exists. Legacy host adapters may use the catalog fallback. */
|
|
2272
2299
|
checkId(reportId) {
|
|
2273
2300
|
return this.list().pipe(map$1(reports => reports.some(report => report.id.toLowerCase() === reportId.toLowerCase())));
|
|
@@ -2514,6 +2541,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
2514
2541
|
}] });
|
|
2515
2542
|
const HttpDataSourceAdapter = HttpReportDataSourceAdapter;
|
|
2516
2543
|
|
|
2544
|
+
/** Old backends must not silently acknowledge a report-only save as a menu update. */
|
|
2545
|
+
function confirmMenuRouteSave(saved, requested) {
|
|
2546
|
+
if (!requested)
|
|
2547
|
+
return saved;
|
|
2548
|
+
const response = saved;
|
|
2549
|
+
if (response?.menuRouteSaved !== true)
|
|
2550
|
+
throw new Error('The backend did not confirm the menu route update. The report may already be saved; verify backend support before retrying.');
|
|
2551
|
+
const { menuRouteSaved, ...report } = response;
|
|
2552
|
+
return report;
|
|
2553
|
+
}
|
|
2554
|
+
|
|
2517
2555
|
function reportIdAvailability(http, url, headers, fallback) {
|
|
2518
2556
|
return http.get(url, { headers }).pipe(map$1(result => {
|
|
2519
2557
|
if (typeof result?.exists !== 'boolean')
|
|
@@ -2554,14 +2592,16 @@ class HttpReportPersistenceAdapter extends ReportPersistenceAdapter {
|
|
|
2554
2592
|
load(id) {
|
|
2555
2593
|
return this.request('GET', '/' + encodeURIComponent(id));
|
|
2556
2594
|
}
|
|
2595
|
+
supportsMenuRouteSave() { return true; }
|
|
2557
2596
|
save(report, options) {
|
|
2558
2597
|
return this.request('POST', '', {
|
|
2559
2598
|
id: report.id, name: report.name, description: report.description,
|
|
2560
2599
|
category: report.category, version: report.version,
|
|
2561
2600
|
isPublished: report.isPublished ?? false, definition: report,
|
|
2601
|
+
...(options?.menuRoute ? { menuRoute: options.menuRoute } : {}),
|
|
2562
2602
|
...(options?.createOnly ? { createOnly: true } : {}),
|
|
2563
2603
|
...(options?.expectedVersion !== undefined ? { expectedVersion: options.expectedVersion } : {}),
|
|
2564
|
-
});
|
|
2604
|
+
}).pipe(map$1(saved => confirmMenuRouteSave(saved, !!options?.menuRoute)));
|
|
2565
2605
|
}
|
|
2566
2606
|
list() {
|
|
2567
2607
|
return this.request('GET', '');
|
|
@@ -3517,6 +3557,7 @@ class EndpointPersistenceAdapter extends ReportPersistenceAdapter {
|
|
|
3517
3557
|
return throwError(() => new Error(Array.isArray(msg) ? msg.join(', ') : msg));
|
|
3518
3558
|
}));
|
|
3519
3559
|
}
|
|
3560
|
+
supportsMenuRouteSave() { return true; }
|
|
3520
3561
|
save(report, options) {
|
|
3521
3562
|
const url = resolveReportsEndpoint(this.endpoints);
|
|
3522
3563
|
if (!url) {
|
|
@@ -3531,10 +3572,11 @@ class EndpointPersistenceAdapter extends ReportPersistenceAdapter {
|
|
|
3531
3572
|
version: report.version,
|
|
3532
3573
|
isPublished: report.isPublished,
|
|
3533
3574
|
definition: report,
|
|
3575
|
+
...(options?.menuRoute ? { menuRoute: options.menuRoute } : {}),
|
|
3534
3576
|
...(options?.createOnly ? { createOnly: true } : {}),
|
|
3535
3577
|
...(options?.expectedVersion !== undefined ? { expectedVersion: options.expectedVersion } : {}),
|
|
3536
3578
|
};
|
|
3537
|
-
return this.http.post(url, payload, { headers: this.headers }).pipe(catchError((err) => {
|
|
3579
|
+
return this.http.post(url, payload, { headers: this.headers }).pipe(map(saved => confirmMenuRouteSave(saved, !!options?.menuRoute)), catchError((err) => {
|
|
3538
3580
|
const msg = err?.error?.message || err?.message || 'Failed to save report';
|
|
3539
3581
|
return throwError(() => new Error(Array.isArray(msg) ? msg.join(', ') : msg));
|
|
3540
3582
|
}));
|
|
@@ -11919,11 +11961,11 @@ class ReportMenuSelectorComponent {
|
|
|
11919
11961
|
this.list()?.nativeElement.querySelectorAll('[role="treeitem"]')[index]?.scrollIntoView({ block: 'nearest' });
|
|
11920
11962
|
}
|
|
11921
11963
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ReportMenuSelectorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
11922
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: ReportMenuSelectorComponent, isStandalone: true, selector: "rpt-report-menu-selector", inputs: { config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: true, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selectionChange: "selectionChange", validityChange: "validityChange" }, viewQueries: [{ propertyName: "trigger", first: true, predicate: ["trigger"], descendants: true, isSignal: true }, { propertyName: "search", first: true, predicate: ["search"], descendants: true, isSignal: true }, { propertyName: "list", first: true, predicate: ["list"], descendants: true, isSignal: true }], ngImport: i0, template: "<div cdkOverlayOrigin #origin=\"cdkOverlayOrigin\" class=\"rpt-menu-root\">\n <div class=\"rpt-menu-controls\">\n <button\n #trigger\n type=\"button\"\n class=\"rpt-menu-trigger\"\n [class.is-open]=\"open()\"\n [class.has-selection]=\"!!selection()\"\n [class.is-invalid]=\"unavailable()\"\n [disabled]=\"disabled()\"\n aria-label=\"Menu destination\"\n aria-haspopup=\"tree\"\n [attr.aria-expanded]=\"open()\"\n [attr.aria-controls]=\"panelId\"\n (click)=\"toggle()\"\n (keydown)=\"triggerKey($event)\"\n >\n <span class=\"rpt-menu-trigger-left\">\n <span class=\"rpt-menu-trigger-icon\" aria-hidden=\"true\">\n <rpt-icon [name]=\"selection() ? 'file-text' : 'folder'\" [size]=\"15\" />\n </span>\n <span class=\"rpt-menu-trigger-label\" [class.is-placeholder]=\"!selection()\">\n {{ selection()?.menuCaption || 'Select menu destination...' }}\n </span>\n </span>\n <span class=\"rpt-menu-chevron\" [class.is-open]=\"open()\" aria-hidden=\"true\">\n <rpt-icon name=\"chevron-down\" [size]=\"14\" />\n </span>\n </button>\n\n @if (selection()) {\n <button\n type=\"button\"\n class=\"rpt-menu-clear\"\n [disabled]=\"disabled()\"\n (click)=\"clear()\"\n aria-label=\"Clear menu destination\"\n title=\"Clear menu destination\"\n >\n <rpt-icon name=\"close\" [size]=\"13\" />\n </button>\n }\n </div>\n\n @if (selection()) {\n <p class=\"rpt-menu-path\" [title]=\"selection()!.path.join(' / ')\">\n <rpt-icon name=\"folder-open\" [size]=\"12\" class=\"rpt-menu-path-icon\" />\n <span class=\"rpt-menu-path-text\">{{ selection()!.path.join(' / ') }}</span>\n </p>\n }\n\n @if (unavailable()) {\n <p class=\"rpt-menu-error rpt-menu-inline-error\" role=\"alert\">\n <rpt-icon name=\"warning\" [size]=\"13\" />\n <span>This menu destination is unavailable. Select another menu or clear it.</span>\n </p>\n }\n</div>\n\n<ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"origin\"\n [cdkConnectedOverlayOpen]=\"open()\"\n [cdkConnectedOverlayPositions]=\"positions\"\n [cdkConnectedOverlayWidth]=\"width()\"\n [cdkConnectedOverlayFlexibleDimensions]=\"true\"\n [cdkConnectedOverlayViewportMargin]=\"8\"\n [cdkConnectedOverlayPush]=\"true\"\n [cdkConnectedOverlayScrollStrategy]=\"scrollStrategy\"\n (overlayOutsideClick)=\"close(false)\"\n (attach)=\"attached()\"\n (detach)=\"close(false)\"\n>\n <div class=\"rpt-menu-panel\" (keydown)=\"key($event)\">\n <div class=\"rpt-menu-tools\">\n <div class=\"rpt-menu-search-wrap\">\n <span class=\"rpt-menu-search-icon\" aria-hidden=\"true\">\n <rpt-icon name=\"search\" [size]=\"13\" />\n </span>\n <input\n #search\n type=\"search\"\n class=\"rpt-menu-search\"\n aria-label=\"Search menu destinations\"\n placeholder=\"Search menus...\"\n [ngModel]=\"query()\"\n (ngModelChange)=\"onQuery($event)\"\n [ngModelOptions]=\"{ standalone: true }\"\n />\n @if (query()) {\n <button\n type=\"button\"\n class=\"rpt-menu-search-clear\"\n tabindex=\"-1\"\n aria-label=\"Clear search\"\n (click)=\"onQuery(''); search.focus()\"\n >\n <rpt-icon name=\"close\" [size]=\"11\" />\n </button>\n }\n </div>\n <button\n type=\"button\"\n class=\"rpt-menu-refresh\"\n [disabled]=\"loading()\"\n (click)=\"reload()\"\n title=\"Refresh menu tree\"\n >\n <rpt-icon name=\"refresh\" [size]=\"12\" [class.rpt-spin]=\"loading()\" />\n <span>Refresh</span>\n </button>\n </div>\n\n @if (loading()) {\n <p class=\"rpt-menu-status\" role=\"status\">\n <rpt-icon name=\"refresh\" [size]=\"14\" class=\"rpt-spin\" />\n <span>Loading menus...</span>\n </p>\n }\n\n @if (error()) {\n <div class=\"rpt-menu-error rpt-menu-panel-error\" role=\"alert\">\n <div class=\"rpt-menu-error-msg\">\n <rpt-icon name=\"warning\" [size]=\"14\" />\n <span>{{ error() }}</span>\n </div>\n <button type=\"button\" class=\"rpt-menu-refresh rpt-menu-retry\" (click)=\"reload()\">\n <rpt-icon name=\"refresh\" [size]=\"11\" />\n <span>Retry</span>\n </button>\n </div>\n }\n\n <div\n #list\n class=\"rpt-menu-tree\"\n role=\"tree\"\n aria-label=\"Menu destinations\"\n tabindex=\"0\"\n [attr.aria-busy]=\"loading()\"\n [attr.aria-activedescendant]=\"visible().length ? panelId + '-row-' + active() : null\"\n >\n @for (row of visible(); track row.node.id; let i = $index) {\n <div\n role=\"treeitem\"\n [id]=\"panelId + '-row-' + i\"\n [attr.aria-level]=\"row.depth + 1\"\n [attr.aria-expanded]=\"row.node.children?.length ? isExpanded(row) : null\"\n [attr.aria-selected]=\"row.node.selectable ? selection()?.targetId === row.node.id : null\"\n class=\"rpt-menu-row\"\n [class.rpt-menu-active]=\"active() === i\"\n [class.rpt-menu-selected]=\"selection()?.targetId === row.node.id\"\n [class.is-group]=\"!!row.node.children?.length && !row.node.selectable\"\n [class.is-selectable]=\"row.node.selectable\"\n [style.padding-left.px]=\"8 + row.depth * 16\"\n (click)=\"active.set(i); choose(row)\"\n >\n @if (row.node.children?.length) {\n <button\n type=\"button\"\n class=\"rpt-menu-expand\"\n tabindex=\"-1\"\n [attr.aria-label]=\"(isExpanded(row) ? 'Collapse ' : 'Expand ') + row.node.caption\"\n (click)=\"$event.stopPropagation(); active.set(i); expand(row)\"\n >\n <rpt-icon [name]=\"isExpanded(row) ? 'chevron-down' : 'chevron-right'\" [size]=\"12\" />\n </button>\n <span class=\"rpt-menu-node-icon is-folder\" [class.is-open]=\"isExpanded(row)\" aria-hidden=\"true\">\n <rpt-icon [name]=\"isExpanded(row) ? 'folder-open' : 'folder'\" [size]=\"14\" />\n </span>\n } @else {\n <span class=\"rpt-menu-leaf\" aria-hidden=\"true\"></span>\n <span class=\"rpt-menu-node-icon is-file\" [class.is-selectable]=\"row.node.selectable\" aria-hidden=\"true\">\n <rpt-icon [name]=\"row.node.selectable ? 'file-text' : 'file'\" [size]=\"14\" />\n </span>\n }\n\n <span class=\"rpt-menu-caption\">{{ row.node.caption }}</span>\n\n @if (row.node.children?.length; as childCount) {\n <span class=\"rpt-menu-count\" aria-hidden=\"true\">{{ childCount }}</span>\n } @else if (selection()?.targetId === row.node.id) {\n <span class=\"rpt-menu-check\" aria-hidden=\"true\">\n <rpt-icon name=\"check\" [size]=\"13\" />\n </span>\n }\n </div>\n }\n </div>\n\n @if (loaded() && !loading() && !visible().length) {\n <p class=\"rpt-menu-empty\" role=\"status\">\n <rpt-icon name=\"folder\" [size]=\"15\" />\n <span>{{ query() ? 'No matching menus.' : 'No menus available.' }}</span>\n </p>\n }\n </div>\n</ng-template>\n", styles: [":host{display:block;min-width:0;font:inherit;color:inherit}*{box-sizing:border-box}.rpt-menu-root{display:flex;flex-direction:column;gap:6px}.rpt-menu-controls{display:flex;align-items:stretch;gap:6px}.rpt-menu-trigger,.rpt-menu-clear,.rpt-menu-refresh,.rpt-menu-expand{font:inherit;margin:0;width:auto;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#1e293b;cursor:pointer;letter-spacing:normal;text-transform:none;box-shadow:0 1px 2px #0f172a0a;transition:border-color .15s ease,background-color .15s ease,box-shadow .15s ease,color .15s ease}.rpt-menu-trigger{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-width:0;min-height:36px;padding:6px 10px;text-align:left;font-size:13px;font-weight:500}.rpt-menu-trigger:hover:not(:disabled){border-color:#94a3b8;background:#f8fafc}.rpt-menu-trigger.is-open{border-color:#2563eb;background:#fff;box-shadow:0 0 0 3px #2563eb1f}.rpt-menu-trigger.is-invalid{border-color:#ef4444;background:#fef2f2}.rpt-menu-trigger-left{display:flex;align-items:center;gap:8px;min-width:0;flex:1}.rpt-menu-trigger-icon{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:5px;background:#f1f5f9;color:#64748b;flex-shrink:0;transition:background-color .15s ease,color .15s ease}.rpt-menu-trigger.has-selection .rpt-menu-trigger-icon{background:#eff6ff;color:#2563eb}.rpt-menu-trigger-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#0f172a}.rpt-menu-trigger-label.is-placeholder{color:#64748b;font-weight:400}.rpt-menu-chevron{display:inline-flex;align-items:center;justify-content:center;color:#64748b;flex-shrink:0;transition:transform .18s ease,color .15s ease}.rpt-menu-chevron.is-open{transform:rotate(180deg);color:#2563eb}.rpt-menu-clear{display:inline-flex;align-items:center;justify-content:center;width:36px;min-height:36px;padding:0;flex:none;color:#64748b}.rpt-menu-clear:hover:not(:disabled){background:#fef2f2;border-color:#fecaca;color:#dc2626}.rpt-menu-path{display:flex;align-items:center;gap:6px;font-size:11.5px;line-height:1.4;color:#475569;background:#f8fafc;border:1px solid #e2e8f0;border-radius:6px;padding:5px 8px;margin:0;overflow-wrap:anywhere}.rpt-menu-path-icon{color:#3b82f6;flex-shrink:0}.rpt-menu-path-text{min-width:0;font-weight:500}.rpt-menu-panel{display:flex;flex-direction:column;max-height:min(360px,62dvh);width:100%;min-width:260px;overflow:hidden;background:#fff;color:#1e293b;font:13px/1.45 var(--rpt-font-family, \"Inter\", system-ui, -apple-system, sans-serif);border:1px solid #cbd5e1;border-radius:10px;box-shadow:0 12px 28px -6px #0f172a29,0 4px 10px -2px #0f172a14}.rpt-menu-tools{display:flex;align-items:center;gap:6px;padding:8px;background:#f8fafc;border-bottom:1px solid #e2e8f0;flex:none}.rpt-menu-search-wrap{position:relative;display:flex;align-items:center;flex:1;min-width:0}.rpt-menu-search-icon{position:absolute;left:9px;display:inline-flex;align-items:center;justify-content:center;color:#94a3b8;pointer-events:none}.rpt-menu-search{font:inherit;font-size:12.5px;color:#0f172a;background:#fff;border:1px solid #cbd5e1;border-radius:7px;width:100%;min-width:0;height:32px;padding:5px 26px 5px 28px;margin:0;transition:border-color .15s ease,box-shadow .15s ease}.rpt-menu-search::placeholder{color:#94a3b8}.rpt-menu-search:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 2px #2563eb24}.rpt-menu-search::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none}.rpt-menu-search-clear{position:absolute;right:5px;display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;padding:0;border:none;border-radius:4px;background:transparent;color:#94a3b8;cursor:pointer}.rpt-menu-search-clear:hover{background:#f1f5f9;color:#475569}.rpt-menu-refresh{display:inline-flex;align-items:center;justify-content:center;gap:5px;flex:none;height:32px;min-height:32px;padding:0 10px;font-size:12px;font-weight:600;color:#334155;border-radius:7px;background:#fff}.rpt-menu-refresh:hover:not(:disabled){background:#f1f5f9;border-color:#94a3b8;color:#0f172a}.rpt-menu-tree{overflow-y:auto;overflow-x:hidden;min-height:0;overscroll-behavior:contain;padding:6px;scrollbar-width:thin;scrollbar-color:#cbd5e1 transparent}.rpt-menu-row{display:flex;gap:6px;align-items:center;min-height:32px;padding:4px 8px;margin-bottom:1px;border-radius:6px;cursor:pointer;overflow-wrap:anywhere;color:#334155;transition:background-color .12s ease,color .12s ease;-webkit-user-select:none;user-select:none}.rpt-menu-row.is-group{font-weight:600;color:#1e293b}.rpt-menu-row:hover,.rpt-menu-active{background:#f1f5f9;color:#0f172a}.rpt-menu-selected{background:#eff6ff;color:#1d4ed8;font-weight:600}.rpt-menu-selected:hover,.rpt-menu-selected.rpt-menu-active{background:#dbeafe;color:#1e40af}.rpt-menu-expand{display:inline-flex;align-items:center;justify-content:center;border:0;padding:0;width:20px;height:20px;min-height:20px;border-radius:4px;flex:none;background:transparent;color:#64748b;box-shadow:none}.rpt-menu-expand:hover{background:#e2e8f0;color:#0f172a}.rpt-menu-leaf{width:20px;height:20px;flex:none}.rpt-menu-node-icon{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:4px;flex:none}.rpt-menu-node-icon.is-folder{color:#f59e0b}.rpt-menu-node-icon.is-folder.is-open{color:#d97706}.rpt-menu-node-icon.is-file{color:#64748b}.rpt-menu-node-icon.is-file.is-selectable{color:#3b82f6}.rpt-menu-selected .rpt-menu-node-icon.is-file{color:#1d4ed8}.rpt-menu-caption{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12.5px}.rpt-menu-count{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:#f1f5f9;color:#64748b;font-size:10.5px;font-weight:600;flex:none}.rpt-menu-row:hover .rpt-menu-count,.rpt-menu-active .rpt-menu-count{background:#e2e8f0;color:#334155}.rpt-menu-check{display:inline-flex;align-items:center;justify-content:center;color:#2563eb;flex:none;margin-left:4px}.rpt-menu-status,.rpt-menu-empty{display:flex;align-items:center;justify-content:center;gap:8px;padding:18px 12px;margin:0;font-size:12.5px;color:#64748b;text-align:center}.rpt-menu-error{color:#b91c1c;font-size:12px;margin:0}.rpt-menu-inline-error{display:flex;align-items:flex-start;gap:6px;padding:6px 8px;background:#fef2f2;border:1px solid #fecaca;border-radius:6px;line-height:1.4}.rpt-menu-panel-error{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 10px;margin:6px 6px 0;background:#fef2f2;border:1px solid #fecaca;border-radius:7px}.rpt-menu-error-msg{display:flex;align-items:center;gap:6px;min-width:0;line-height:1.35}.rpt-menu-retry{height:26px;min-height:26px;padding:0 8px;font-size:11.5px;border-color:#fca5a5;color:#b91c1c}.rpt-menu-retry:hover:not(:disabled){background:#fee2e2;border-color:#f87171;color:#991b1b}@keyframes rptMenuSpin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.rpt-spin{animation:rptMenuSpin .9s linear infinite}:is(button,input,[role=tree]):focus-visible{outline:2px solid #2563eb;outline-offset:2px}.rpt-menu-search:focus-visible{outline:none}button:disabled{opacity:.55;cursor:default}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: OverlayModule }, { kind: "directive", type: i2.CdkConnectedOverlay, selector: "[cdk-connected-overlay], [connected-overlay], [cdkConnectedOverlay]", inputs: ["cdkConnectedOverlayOrigin", "cdkConnectedOverlayPositions", "cdkConnectedOverlayPositionStrategy", "cdkConnectedOverlayOffsetX", "cdkConnectedOverlayOffsetY", "cdkConnectedOverlayWidth", "cdkConnectedOverlayHeight", "cdkConnectedOverlayMinWidth", "cdkConnectedOverlayMinHeight", "cdkConnectedOverlayBackdropClass", "cdkConnectedOverlayPanelClass", "cdkConnectedOverlayViewportMargin", "cdkConnectedOverlayScrollStrategy", "cdkConnectedOverlayOpen", "cdkConnectedOverlayDisableClose", "cdkConnectedOverlayTransformOriginOn", "cdkConnectedOverlayHasBackdrop", "cdkConnectedOverlayLockPosition", "cdkConnectedOverlayFlexibleDimensions", "cdkConnectedOverlayGrowAfterOpen", "cdkConnectedOverlayPush", "cdkConnectedOverlayDisposeOnNavigation"], outputs: ["backdropClick", "positionChange", "attach", "detach", "overlayKeydown", "overlayOutsideClick"], exportAs: ["cdkConnectedOverlay"] }, { kind: "directive", type: i2.CdkOverlayOrigin, selector: "[cdk-overlay-origin], [overlay-origin], [cdkOverlayOrigin]", exportAs: ["cdkOverlayOrigin"] }, { kind: "component", type: RptIconComponent, selector: "rpt-icon", inputs: ["name", "size", "color", "strokeWidth"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
11964
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: ReportMenuSelectorComponent, isStandalone: true, selector: "rpt-report-menu-selector", inputs: { config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: true, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selectionChange: "selectionChange", validityChange: "validityChange" }, viewQueries: [{ propertyName: "trigger", first: true, predicate: ["trigger"], descendants: true, isSignal: true }, { propertyName: "search", first: true, predicate: ["search"], descendants: true, isSignal: true }, { propertyName: "list", first: true, predicate: ["list"], descendants: true, isSignal: true }], ngImport: i0, template: "<div cdkOverlayOrigin #origin=\"cdkOverlayOrigin\" class=\"rpt-menu-root\">\n <div class=\"rpt-menu-controls\">\n <button\n #trigger\n type=\"button\"\n class=\"rpt-menu-trigger\"\n [class.is-open]=\"open()\"\n [class.has-selection]=\"!!selection()\"\n [class.is-invalid]=\"unavailable()\"\n [disabled]=\"disabled()\"\n aria-label=\"Menu destination\"\n aria-haspopup=\"tree\"\n [attr.aria-expanded]=\"open()\"\n [attr.aria-controls]=\"panelId\"\n (click)=\"toggle()\"\n (keydown)=\"triggerKey($event)\"\n >\n <span class=\"rpt-menu-trigger-left\">\n <span class=\"rpt-menu-trigger-icon\" aria-hidden=\"true\">\n <rpt-icon [name]=\"selection() ? 'file-text' : 'folder'\" [size]=\"13\" />\n </span>\n <span class=\"rpt-menu-trigger-label\" [class.is-placeholder]=\"!selection()\">\n {{ selection()?.menuCaption || 'Select menu destination...' }}\n </span>\n </span>\n <span class=\"rpt-menu-chevron\" [class.is-open]=\"open()\" aria-hidden=\"true\">\n <rpt-icon name=\"chevron-down\" [size]=\"12\" />\n </span>\n </button>\n\n @if (selection()) {\n <button\n type=\"button\"\n class=\"rpt-menu-clear\"\n [disabled]=\"disabled()\"\n (click)=\"clear()\"\n aria-label=\"Clear menu destination\"\n title=\"Clear menu destination\"\n >\n <rpt-icon name=\"close\" [size]=\"12\" />\n </button>\n }\n </div>\n\n @if (selection()) {\n <p class=\"rpt-menu-path\" [title]=\"selection()!.path.join(' / ')\">\n <rpt-icon name=\"folder-open\" [size]=\"12\" class=\"rpt-menu-path-icon\" />\n <span class=\"rpt-menu-path-text\">{{ selection()!.path.join(' / ') }}</span>\n </p>\n }\n\n @if (unavailable()) {\n <p class=\"rpt-menu-error rpt-menu-inline-error\" role=\"alert\">\n <rpt-icon name=\"warning\" [size]=\"13\" />\n <span>This menu destination is unavailable. Select another menu or clear it.</span>\n </p>\n }\n</div>\n\n<ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"origin\"\n [cdkConnectedOverlayOpen]=\"open()\"\n [cdkConnectedOverlayPositions]=\"positions\"\n [cdkConnectedOverlayWidth]=\"width()\"\n [cdkConnectedOverlayFlexibleDimensions]=\"true\"\n [cdkConnectedOverlayViewportMargin]=\"8\"\n [cdkConnectedOverlayPush]=\"true\"\n [cdkConnectedOverlayScrollStrategy]=\"scrollStrategy\"\n (overlayOutsideClick)=\"close(false)\"\n (attach)=\"attached()\"\n (detach)=\"close(false)\"\n>\n <div class=\"rpt-menu-panel\" (keydown)=\"key($event)\">\n <div class=\"rpt-menu-tools\">\n <div class=\"rpt-menu-search-wrap\">\n <span class=\"rpt-menu-search-icon\" aria-hidden=\"true\">\n <rpt-icon name=\"search\" [size]=\"13\" />\n </span>\n <input\n #search\n type=\"search\"\n class=\"rpt-menu-search\"\n aria-label=\"Search menu destinations\"\n placeholder=\"Search menus...\"\n [ngModel]=\"query()\"\n (ngModelChange)=\"onQuery($event)\"\n [ngModelOptions]=\"{ standalone: true }\"\n />\n @if (query()) {\n <button\n type=\"button\"\n class=\"rpt-menu-search-clear\"\n tabindex=\"-1\"\n aria-label=\"Clear search\"\n (click)=\"onQuery(''); search.focus()\"\n >\n <rpt-icon name=\"close\" [size]=\"11\" />\n </button>\n }\n </div>\n <button\n type=\"button\"\n class=\"rpt-menu-refresh\"\n [disabled]=\"loading()\"\n (click)=\"reload()\"\n title=\"Refresh menu tree\"\n >\n <rpt-icon name=\"refresh\" [size]=\"12\" [class.rpt-spin]=\"loading()\" />\n <span>Refresh</span>\n </button>\n </div>\n\n @if (loading()) {\n <p class=\"rpt-menu-status\" role=\"status\">\n <rpt-icon name=\"refresh\" [size]=\"14\" class=\"rpt-spin\" />\n <span>Loading menus...</span>\n </p>\n }\n\n @if (error()) {\n <div class=\"rpt-menu-error rpt-menu-panel-error\" role=\"alert\">\n <div class=\"rpt-menu-error-msg\">\n <rpt-icon name=\"warning\" [size]=\"14\" />\n <span>{{ error() }}</span>\n </div>\n <button type=\"button\" class=\"rpt-menu-refresh rpt-menu-retry\" (click)=\"reload()\">\n <rpt-icon name=\"refresh\" [size]=\"11\" />\n <span>Retry</span>\n </button>\n </div>\n }\n\n <div\n #list\n class=\"rpt-menu-tree\"\n role=\"tree\"\n aria-label=\"Menu destinations\"\n tabindex=\"0\"\n [attr.aria-busy]=\"loading()\"\n [attr.aria-activedescendant]=\"visible().length ? panelId + '-row-' + active() : null\"\n >\n @for (row of visible(); track row.node.id; let i = $index) {\n <div\n role=\"treeitem\"\n [id]=\"panelId + '-row-' + i\"\n [attr.aria-level]=\"row.depth + 1\"\n [attr.aria-expanded]=\"row.node.children?.length ? isExpanded(row) : null\"\n [attr.aria-selected]=\"row.node.selectable ? selection()?.targetId === row.node.id : null\"\n class=\"rpt-menu-row\"\n [class.rpt-menu-active]=\"active() === i\"\n [class.rpt-menu-selected]=\"selection()?.targetId === row.node.id\"\n [class.is-group]=\"!!row.node.children?.length && !row.node.selectable\"\n [class.is-selectable]=\"row.node.selectable\"\n [style.padding-left.px]=\"8 + row.depth * 16\"\n (click)=\"active.set(i); choose(row)\"\n >\n @if (row.node.children?.length) {\n <button\n type=\"button\"\n class=\"rpt-menu-expand\"\n tabindex=\"-1\"\n [attr.aria-label]=\"(isExpanded(row) ? 'Collapse ' : 'Expand ') + row.node.caption\"\n (click)=\"$event.stopPropagation(); active.set(i); expand(row)\"\n >\n <rpt-icon [name]=\"isExpanded(row) ? 'chevron-down' : 'chevron-right'\" [size]=\"12\" />\n </button>\n <span class=\"rpt-menu-node-icon is-folder\" [class.is-open]=\"isExpanded(row)\" aria-hidden=\"true\">\n <rpt-icon [name]=\"isExpanded(row) ? 'folder-open' : 'folder'\" [size]=\"14\" />\n </span>\n } @else {\n <span class=\"rpt-menu-leaf\" aria-hidden=\"true\"></span>\n <span class=\"rpt-menu-node-icon is-file\" [class.is-selectable]=\"row.node.selectable\" aria-hidden=\"true\">\n <rpt-icon [name]=\"row.node.selectable ? 'file-text' : 'file'\" [size]=\"14\" />\n </span>\n }\n\n <span class=\"rpt-menu-caption\">{{ row.node.caption }}</span>\n\n @if (row.node.children?.length; as childCount) {\n <span class=\"rpt-menu-count\" aria-hidden=\"true\">{{ childCount }}</span>\n } @else if (selection()?.targetId === row.node.id) {\n <span class=\"rpt-menu-check\" aria-hidden=\"true\">\n <rpt-icon name=\"check\" [size]=\"13\" />\n </span>\n }\n </div>\n }\n </div>\n\n @if (loaded() && !loading() && !visible().length) {\n <p class=\"rpt-menu-empty\" role=\"status\">\n <rpt-icon name=\"folder\" [size]=\"15\" />\n <span>{{ query() ? 'No matching menus.' : 'No menus available.' }}</span>\n </p>\n }\n </div>\n</ng-template>\n", styles: [":host{display:block;min-width:0;font:inherit;color:inherit}*{box-sizing:border-box}.rpt-menu-root{display:flex;flex-direction:column;gap:4px}.rpt-menu-controls{display:flex;align-items:center;gap:4px}.rpt-menu-trigger,.rpt-menu-clear,.rpt-menu-refresh,.rpt-menu-expand{font-family:inherit;margin:0;width:auto;border:1px solid #cbd5e1;border-radius:5px;background:#fff;color:#0f172a;cursor:pointer;letter-spacing:normal;text-transform:none;box-shadow:none;transition:all .12s ease}.rpt-menu-trigger{display:flex;align-items:center;justify-content:space-between;gap:6px;width:100%;min-width:0;height:28px;min-height:28px;max-height:28px;padding:0 8px;text-align:left;font-size:.775rem;font-weight:400;line-height:1.25}.rpt-menu-trigger:hover:not(:disabled){border-color:#94a3b8}.rpt-menu-trigger:focus,.rpt-menu-trigger.is-open{outline:none;border-color:#2563eb;background:#fff;box-shadow:0 0 0 2px #2563eb24}.rpt-menu-trigger.is-invalid{border-color:#ef4444;background:#fef2f2}.rpt-menu-trigger-left{display:flex;align-items:center;gap:6px;min-width:0;flex:1}.rpt-menu-trigger-icon{display:inline-flex;align-items:center;justify-content:center;width:14px;height:14px;color:#64748b;flex-shrink:0;transition:color .12s ease}.rpt-menu-trigger.has-selection .rpt-menu-trigger-icon{color:#2563eb}.rpt-menu-trigger-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#0f172a;font-size:.775rem;line-height:1.25}.rpt-menu-trigger-label.is-placeholder{color:#94a3b8;font-weight:400}.rpt-menu-chevron{display:inline-flex;align-items:center;justify-content:center;color:#64748b;flex-shrink:0;transition:transform .16s ease,color .12s ease}.rpt-menu-chevron.is-open{transform:rotate(180deg);color:#2563eb}.rpt-menu-clear{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;min-height:28px;max-height:28px;padding:0;flex:none;color:#64748b}.rpt-menu-clear:hover:not(:disabled){background:#fef2f2;border-color:#fecaca;color:#dc2626}.rpt-menu-path{display:flex;align-items:center;gap:5px;font-size:.68rem;line-height:1.3;color:#475569;background:#fff;border:1px solid #e2e8f0;border-radius:5px;padding:3px 7px;margin:0;overflow-wrap:anywhere}.rpt-menu-path-icon{color:#3b82f6;flex-shrink:0}.rpt-menu-path-text{min-width:0;font-weight:500}.rpt-menu-panel{display:flex;flex-direction:column;max-height:min(320px,58dvh);width:100%;min-width:250px;overflow:hidden;background:#fff;color:#1e293b;font:12.5px/1.4 var(--rpt-font-family, \"Inter\", system-ui, -apple-system, sans-serif);border:1px solid #cbd5e1;border-radius:8px;box-shadow:0 12px 28px -6px #0f172a29,0 4px 10px -2px #0f172a14}.rpt-menu-tools{display:flex;align-items:center;gap:5px;padding:6px;background:#f8fafc;border-bottom:1px solid #e2e8f0;flex:none}.rpt-menu-search-wrap{position:relative;display:flex;align-items:center;flex:1;min-width:0}.rpt-menu-search-icon{position:absolute;left:8px;display:inline-flex;align-items:center;justify-content:center;color:#94a3b8;pointer-events:none}.rpt-menu-search{font:inherit;font-size:.75rem;color:#0f172a;background:#fff;border:1px solid #cbd5e1;border-radius:5px;width:100%;min-width:0;height:28px;min-height:28px;max-height:28px;padding:3px 24px 3px 26px;margin:0;transition:border-color .12s ease,box-shadow .12s ease}.rpt-menu-search::placeholder{color:#94a3b8}.rpt-menu-search:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 2px #2563eb24}.rpt-menu-search::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none}.rpt-menu-search-clear{position:absolute;right:4px;display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;padding:0;border:none;border-radius:4px;background:transparent;color:#94a3b8;cursor:pointer}.rpt-menu-search-clear:hover{background:#f1f5f9;color:#475569}.rpt-menu-refresh{display:inline-flex;align-items:center;justify-content:center;gap:4px;flex:none;height:28px;min-height:28px;max-height:28px;padding:0 8px;font-size:.72rem;font-weight:500;color:#334155;border-radius:5px;background:#fff}.rpt-menu-refresh:hover:not(:disabled){background:#f1f5f9;border-color:#94a3b8;color:#0f172a}.rpt-menu-tree{overflow-y:auto;overflow-x:hidden;min-height:0;overscroll-behavior:contain;padding:4px;scrollbar-width:thin;scrollbar-color:#cbd5e1 transparent}.rpt-menu-row{display:flex;gap:5px;align-items:center;min-height:28px;padding:3px 8px;margin-bottom:1px;border-radius:5px;cursor:pointer;overflow-wrap:anywhere;color:#334155;transition:background-color .12s ease,color .12s ease;-webkit-user-select:none;user-select:none}.rpt-menu-row.is-group{font-weight:600;color:#1e293b}.rpt-menu-row:hover,.rpt-menu-active{background:#f1f5f9;color:#0f172a}.rpt-menu-selected{background:#eff6ff;color:#1d4ed8;font-weight:600}.rpt-menu-selected:hover,.rpt-menu-selected.rpt-menu-active{background:#dbeafe;color:#1e40af}.rpt-menu-expand{display:inline-flex;align-items:center;justify-content:center;border:0;padding:0;width:18px;height:18px;min-height:18px;border-radius:4px;flex:none;background:transparent;color:#64748b;box-shadow:none}.rpt-menu-expand:hover{background:#e2e8f0;color:#0f172a}.rpt-menu-leaf{width:18px;height:18px;flex:none}.rpt-menu-node-icon{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;flex:none}.rpt-menu-node-icon.is-folder{color:#f59e0b}.rpt-menu-node-icon.is-folder.is-open{color:#d97706}.rpt-menu-node-icon.is-file{color:#64748b}.rpt-menu-node-icon.is-file.is-selectable{color:#3b82f6}.rpt-menu-selected .rpt-menu-node-icon.is-file{color:#1d4ed8}.rpt-menu-caption{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.76rem}.rpt-menu-count{display:inline-flex;align-items:center;justify-content:center;min-width:16px;height:16px;padding:0 5px;border-radius:999px;background:#f1f5f9;color:#64748b;font-size:10px;font-weight:600;flex:none}.rpt-menu-row:hover .rpt-menu-count,.rpt-menu-active .rpt-menu-count{background:#e2e8f0;color:#334155}.rpt-menu-check{display:inline-flex;align-items:center;justify-content:center;color:#2563eb;flex:none;margin-left:4px}.rpt-menu-status,.rpt-menu-empty{display:flex;align-items:center;justify-content:center;gap:6px;padding:14px 10px;margin:0;font-size:.75rem;color:#64748b;text-align:center}.rpt-menu-error{color:#b91c1c;font-size:.72rem;margin:0}.rpt-menu-inline-error{display:flex;align-items:flex-start;gap:5px;padding:4px 7px;background:#fef2f2;border:1px solid #fecaca;border-radius:5px;line-height:1.35}.rpt-menu-panel-error{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:6px 8px;margin:5px 5px 0;background:#fef2f2;border:1px solid #fecaca;border-radius:5px}.rpt-menu-error-msg{display:flex;align-items:center;gap:5px;min-width:0;line-height:1.3}.rpt-menu-retry{height:24px;min-height:24px;max-height:24px;padding:0 7px;font-size:.7rem;border-color:#fca5a5;color:#b91c1c}.rpt-menu-retry:hover:not(:disabled){background:#fee2e2;border-color:#f87171;color:#991b1b}@keyframes rptMenuSpin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.rpt-spin{animation:rptMenuSpin .9s linear infinite}:is(button,input,[role=tree]):focus-visible{outline:2px solid #2563eb;outline-offset:2px}.rpt-menu-trigger:focus-visible,.rpt-menu-search:focus-visible{outline:none}button:disabled{opacity:.55;cursor:default}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: OverlayModule }, { kind: "directive", type: i2.CdkConnectedOverlay, selector: "[cdk-connected-overlay], [connected-overlay], [cdkConnectedOverlay]", inputs: ["cdkConnectedOverlayOrigin", "cdkConnectedOverlayPositions", "cdkConnectedOverlayPositionStrategy", "cdkConnectedOverlayOffsetX", "cdkConnectedOverlayOffsetY", "cdkConnectedOverlayWidth", "cdkConnectedOverlayHeight", "cdkConnectedOverlayMinWidth", "cdkConnectedOverlayMinHeight", "cdkConnectedOverlayBackdropClass", "cdkConnectedOverlayPanelClass", "cdkConnectedOverlayViewportMargin", "cdkConnectedOverlayScrollStrategy", "cdkConnectedOverlayOpen", "cdkConnectedOverlayDisableClose", "cdkConnectedOverlayTransformOriginOn", "cdkConnectedOverlayHasBackdrop", "cdkConnectedOverlayLockPosition", "cdkConnectedOverlayFlexibleDimensions", "cdkConnectedOverlayGrowAfterOpen", "cdkConnectedOverlayPush", "cdkConnectedOverlayDisposeOnNavigation"], outputs: ["backdropClick", "positionChange", "attach", "detach", "overlayKeydown", "overlayOutsideClick"], exportAs: ["cdkConnectedOverlay"] }, { kind: "directive", type: i2.CdkOverlayOrigin, selector: "[cdk-overlay-origin], [overlay-origin], [cdkOverlayOrigin]", exportAs: ["cdkOverlayOrigin"] }, { kind: "component", type: RptIconComponent, selector: "rpt-icon", inputs: ["name", "size", "color", "strokeWidth"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
11923
11965
|
}
|
|
11924
11966
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ReportMenuSelectorComponent, decorators: [{
|
|
11925
11967
|
type: Component,
|
|
11926
|
-
args: [{ selector: 'rpt-report-menu-selector', standalone: true, imports: [FormsModule, OverlayModule, RptIconComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div cdkOverlayOrigin #origin=\"cdkOverlayOrigin\" class=\"rpt-menu-root\">\n <div class=\"rpt-menu-controls\">\n <button\n #trigger\n type=\"button\"\n class=\"rpt-menu-trigger\"\n [class.is-open]=\"open()\"\n [class.has-selection]=\"!!selection()\"\n [class.is-invalid]=\"unavailable()\"\n [disabled]=\"disabled()\"\n aria-label=\"Menu destination\"\n aria-haspopup=\"tree\"\n [attr.aria-expanded]=\"open()\"\n [attr.aria-controls]=\"panelId\"\n (click)=\"toggle()\"\n (keydown)=\"triggerKey($event)\"\n >\n <span class=\"rpt-menu-trigger-left\">\n <span class=\"rpt-menu-trigger-icon\" aria-hidden=\"true\">\n <rpt-icon [name]=\"selection() ? 'file-text' : 'folder'\" [size]=\"15\" />\n </span>\n <span class=\"rpt-menu-trigger-label\" [class.is-placeholder]=\"!selection()\">\n {{ selection()?.menuCaption || 'Select menu destination...' }}\n </span>\n </span>\n <span class=\"rpt-menu-chevron\" [class.is-open]=\"open()\" aria-hidden=\"true\">\n <rpt-icon name=\"chevron-down\" [size]=\"14\" />\n </span>\n </button>\n\n @if (selection()) {\n <button\n type=\"button\"\n class=\"rpt-menu-clear\"\n [disabled]=\"disabled()\"\n (click)=\"clear()\"\n aria-label=\"Clear menu destination\"\n title=\"Clear menu destination\"\n >\n <rpt-icon name=\"close\" [size]=\"13\" />\n </button>\n }\n </div>\n\n @if (selection()) {\n <p class=\"rpt-menu-path\" [title]=\"selection()!.path.join(' / ')\">\n <rpt-icon name=\"folder-open\" [size]=\"12\" class=\"rpt-menu-path-icon\" />\n <span class=\"rpt-menu-path-text\">{{ selection()!.path.join(' / ') }}</span>\n </p>\n }\n\n @if (unavailable()) {\n <p class=\"rpt-menu-error rpt-menu-inline-error\" role=\"alert\">\n <rpt-icon name=\"warning\" [size]=\"13\" />\n <span>This menu destination is unavailable. Select another menu or clear it.</span>\n </p>\n }\n</div>\n\n<ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"origin\"\n [cdkConnectedOverlayOpen]=\"open()\"\n [cdkConnectedOverlayPositions]=\"positions\"\n [cdkConnectedOverlayWidth]=\"width()\"\n [cdkConnectedOverlayFlexibleDimensions]=\"true\"\n [cdkConnectedOverlayViewportMargin]=\"8\"\n [cdkConnectedOverlayPush]=\"true\"\n [cdkConnectedOverlayScrollStrategy]=\"scrollStrategy\"\n (overlayOutsideClick)=\"close(false)\"\n (attach)=\"attached()\"\n (detach)=\"close(false)\"\n>\n <div class=\"rpt-menu-panel\" (keydown)=\"key($event)\">\n <div class=\"rpt-menu-tools\">\n <div class=\"rpt-menu-search-wrap\">\n <span class=\"rpt-menu-search-icon\" aria-hidden=\"true\">\n <rpt-icon name=\"search\" [size]=\"13\" />\n </span>\n <input\n #search\n type=\"search\"\n class=\"rpt-menu-search\"\n aria-label=\"Search menu destinations\"\n placeholder=\"Search menus...\"\n [ngModel]=\"query()\"\n (ngModelChange)=\"onQuery($event)\"\n [ngModelOptions]=\"{ standalone: true }\"\n />\n @if (query()) {\n <button\n type=\"button\"\n class=\"rpt-menu-search-clear\"\n tabindex=\"-1\"\n aria-label=\"Clear search\"\n (click)=\"onQuery(''); search.focus()\"\n >\n <rpt-icon name=\"close\" [size]=\"11\" />\n </button>\n }\n </div>\n <button\n type=\"button\"\n class=\"rpt-menu-refresh\"\n [disabled]=\"loading()\"\n (click)=\"reload()\"\n title=\"Refresh menu tree\"\n >\n <rpt-icon name=\"refresh\" [size]=\"12\" [class.rpt-spin]=\"loading()\" />\n <span>Refresh</span>\n </button>\n </div>\n\n @if (loading()) {\n <p class=\"rpt-menu-status\" role=\"status\">\n <rpt-icon name=\"refresh\" [size]=\"14\" class=\"rpt-spin\" />\n <span>Loading menus...</span>\n </p>\n }\n\n @if (error()) {\n <div class=\"rpt-menu-error rpt-menu-panel-error\" role=\"alert\">\n <div class=\"rpt-menu-error-msg\">\n <rpt-icon name=\"warning\" [size]=\"14\" />\n <span>{{ error() }}</span>\n </div>\n <button type=\"button\" class=\"rpt-menu-refresh rpt-menu-retry\" (click)=\"reload()\">\n <rpt-icon name=\"refresh\" [size]=\"11\" />\n <span>Retry</span>\n </button>\n </div>\n }\n\n <div\n #list\n class=\"rpt-menu-tree\"\n role=\"tree\"\n aria-label=\"Menu destinations\"\n tabindex=\"0\"\n [attr.aria-busy]=\"loading()\"\n [attr.aria-activedescendant]=\"visible().length ? panelId + '-row-' + active() : null\"\n >\n @for (row of visible(); track row.node.id; let i = $index) {\n <div\n role=\"treeitem\"\n [id]=\"panelId + '-row-' + i\"\n [attr.aria-level]=\"row.depth + 1\"\n [attr.aria-expanded]=\"row.node.children?.length ? isExpanded(row) : null\"\n [attr.aria-selected]=\"row.node.selectable ? selection()?.targetId === row.node.id : null\"\n class=\"rpt-menu-row\"\n [class.rpt-menu-active]=\"active() === i\"\n [class.rpt-menu-selected]=\"selection()?.targetId === row.node.id\"\n [class.is-group]=\"!!row.node.children?.length && !row.node.selectable\"\n [class.is-selectable]=\"row.node.selectable\"\n [style.padding-left.px]=\"8 + row.depth * 16\"\n (click)=\"active.set(i); choose(row)\"\n >\n @if (row.node.children?.length) {\n <button\n type=\"button\"\n class=\"rpt-menu-expand\"\n tabindex=\"-1\"\n [attr.aria-label]=\"(isExpanded(row) ? 'Collapse ' : 'Expand ') + row.node.caption\"\n (click)=\"$event.stopPropagation(); active.set(i); expand(row)\"\n >\n <rpt-icon [name]=\"isExpanded(row) ? 'chevron-down' : 'chevron-right'\" [size]=\"12\" />\n </button>\n <span class=\"rpt-menu-node-icon is-folder\" [class.is-open]=\"isExpanded(row)\" aria-hidden=\"true\">\n <rpt-icon [name]=\"isExpanded(row) ? 'folder-open' : 'folder'\" [size]=\"14\" />\n </span>\n } @else {\n <span class=\"rpt-menu-leaf\" aria-hidden=\"true\"></span>\n <span class=\"rpt-menu-node-icon is-file\" [class.is-selectable]=\"row.node.selectable\" aria-hidden=\"true\">\n <rpt-icon [name]=\"row.node.selectable ? 'file-text' : 'file'\" [size]=\"14\" />\n </span>\n }\n\n <span class=\"rpt-menu-caption\">{{ row.node.caption }}</span>\n\n @if (row.node.children?.length; as childCount) {\n <span class=\"rpt-menu-count\" aria-hidden=\"true\">{{ childCount }}</span>\n } @else if (selection()?.targetId === row.node.id) {\n <span class=\"rpt-menu-check\" aria-hidden=\"true\">\n <rpt-icon name=\"check\" [size]=\"13\" />\n </span>\n }\n </div>\n }\n </div>\n\n @if (loaded() && !loading() && !visible().length) {\n <p class=\"rpt-menu-empty\" role=\"status\">\n <rpt-icon name=\"folder\" [size]=\"15\" />\n <span>{{ query() ? 'No matching menus.' : 'No menus available.' }}</span>\n </p>\n }\n </div>\n</ng-template>\n", styles: [":host{display:block;min-width:0;font:inherit;color:inherit}*{box-sizing:border-box}.rpt-menu-root{display:flex;flex-direction:column;gap:6px}.rpt-menu-controls{display:flex;align-items:stretch;gap:6px}.rpt-menu-trigger,.rpt-menu-clear,.rpt-menu-refresh,.rpt-menu-expand{font:inherit;margin:0;width:auto;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#1e293b;cursor:pointer;letter-spacing:normal;text-transform:none;box-shadow:0 1px 2px #0f172a0a;transition:border-color .15s ease,background-color .15s ease,box-shadow .15s ease,color .15s ease}.rpt-menu-trigger{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-width:0;min-height:36px;padding:6px 10px;text-align:left;font-size:13px;font-weight:500}.rpt-menu-trigger:hover:not(:disabled){border-color:#94a3b8;background:#f8fafc}.rpt-menu-trigger.is-open{border-color:#2563eb;background:#fff;box-shadow:0 0 0 3px #2563eb1f}.rpt-menu-trigger.is-invalid{border-color:#ef4444;background:#fef2f2}.rpt-menu-trigger-left{display:flex;align-items:center;gap:8px;min-width:0;flex:1}.rpt-menu-trigger-icon{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:5px;background:#f1f5f9;color:#64748b;flex-shrink:0;transition:background-color .15s ease,color .15s ease}.rpt-menu-trigger.has-selection .rpt-menu-trigger-icon{background:#eff6ff;color:#2563eb}.rpt-menu-trigger-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#0f172a}.rpt-menu-trigger-label.is-placeholder{color:#64748b;font-weight:400}.rpt-menu-chevron{display:inline-flex;align-items:center;justify-content:center;color:#64748b;flex-shrink:0;transition:transform .18s ease,color .15s ease}.rpt-menu-chevron.is-open{transform:rotate(180deg);color:#2563eb}.rpt-menu-clear{display:inline-flex;align-items:center;justify-content:center;width:36px;min-height:36px;padding:0;flex:none;color:#64748b}.rpt-menu-clear:hover:not(:disabled){background:#fef2f2;border-color:#fecaca;color:#dc2626}.rpt-menu-path{display:flex;align-items:center;gap:6px;font-size:11.5px;line-height:1.4;color:#475569;background:#f8fafc;border:1px solid #e2e8f0;border-radius:6px;padding:5px 8px;margin:0;overflow-wrap:anywhere}.rpt-menu-path-icon{color:#3b82f6;flex-shrink:0}.rpt-menu-path-text{min-width:0;font-weight:500}.rpt-menu-panel{display:flex;flex-direction:column;max-height:min(360px,62dvh);width:100%;min-width:260px;overflow:hidden;background:#fff;color:#1e293b;font:13px/1.45 var(--rpt-font-family, \"Inter\", system-ui, -apple-system, sans-serif);border:1px solid #cbd5e1;border-radius:10px;box-shadow:0 12px 28px -6px #0f172a29,0 4px 10px -2px #0f172a14}.rpt-menu-tools{display:flex;align-items:center;gap:6px;padding:8px;background:#f8fafc;border-bottom:1px solid #e2e8f0;flex:none}.rpt-menu-search-wrap{position:relative;display:flex;align-items:center;flex:1;min-width:0}.rpt-menu-search-icon{position:absolute;left:9px;display:inline-flex;align-items:center;justify-content:center;color:#94a3b8;pointer-events:none}.rpt-menu-search{font:inherit;font-size:12.5px;color:#0f172a;background:#fff;border:1px solid #cbd5e1;border-radius:7px;width:100%;min-width:0;height:32px;padding:5px 26px 5px 28px;margin:0;transition:border-color .15s ease,box-shadow .15s ease}.rpt-menu-search::placeholder{color:#94a3b8}.rpt-menu-search:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 2px #2563eb24}.rpt-menu-search::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none}.rpt-menu-search-clear{position:absolute;right:5px;display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;padding:0;border:none;border-radius:4px;background:transparent;color:#94a3b8;cursor:pointer}.rpt-menu-search-clear:hover{background:#f1f5f9;color:#475569}.rpt-menu-refresh{display:inline-flex;align-items:center;justify-content:center;gap:5px;flex:none;height:32px;min-height:32px;padding:0 10px;font-size:12px;font-weight:600;color:#334155;border-radius:7px;background:#fff}.rpt-menu-refresh:hover:not(:disabled){background:#f1f5f9;border-color:#94a3b8;color:#0f172a}.rpt-menu-tree{overflow-y:auto;overflow-x:hidden;min-height:0;overscroll-behavior:contain;padding:6px;scrollbar-width:thin;scrollbar-color:#cbd5e1 transparent}.rpt-menu-row{display:flex;gap:6px;align-items:center;min-height:32px;padding:4px 8px;margin-bottom:1px;border-radius:6px;cursor:pointer;overflow-wrap:anywhere;color:#334155;transition:background-color .12s ease,color .12s ease;-webkit-user-select:none;user-select:none}.rpt-menu-row.is-group{font-weight:600;color:#1e293b}.rpt-menu-row:hover,.rpt-menu-active{background:#f1f5f9;color:#0f172a}.rpt-menu-selected{background:#eff6ff;color:#1d4ed8;font-weight:600}.rpt-menu-selected:hover,.rpt-menu-selected.rpt-menu-active{background:#dbeafe;color:#1e40af}.rpt-menu-expand{display:inline-flex;align-items:center;justify-content:center;border:0;padding:0;width:20px;height:20px;min-height:20px;border-radius:4px;flex:none;background:transparent;color:#64748b;box-shadow:none}.rpt-menu-expand:hover{background:#e2e8f0;color:#0f172a}.rpt-menu-leaf{width:20px;height:20px;flex:none}.rpt-menu-node-icon{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:4px;flex:none}.rpt-menu-node-icon.is-folder{color:#f59e0b}.rpt-menu-node-icon.is-folder.is-open{color:#d97706}.rpt-menu-node-icon.is-file{color:#64748b}.rpt-menu-node-icon.is-file.is-selectable{color:#3b82f6}.rpt-menu-selected .rpt-menu-node-icon.is-file{color:#1d4ed8}.rpt-menu-caption{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12.5px}.rpt-menu-count{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:#f1f5f9;color:#64748b;font-size:10.5px;font-weight:600;flex:none}.rpt-menu-row:hover .rpt-menu-count,.rpt-menu-active .rpt-menu-count{background:#e2e8f0;color:#334155}.rpt-menu-check{display:inline-flex;align-items:center;justify-content:center;color:#2563eb;flex:none;margin-left:4px}.rpt-menu-status,.rpt-menu-empty{display:flex;align-items:center;justify-content:center;gap:8px;padding:18px 12px;margin:0;font-size:12.5px;color:#64748b;text-align:center}.rpt-menu-error{color:#b91c1c;font-size:12px;margin:0}.rpt-menu-inline-error{display:flex;align-items:flex-start;gap:6px;padding:6px 8px;background:#fef2f2;border:1px solid #fecaca;border-radius:6px;line-height:1.4}.rpt-menu-panel-error{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 10px;margin:6px 6px 0;background:#fef2f2;border:1px solid #fecaca;border-radius:7px}.rpt-menu-error-msg{display:flex;align-items:center;gap:6px;min-width:0;line-height:1.35}.rpt-menu-retry{height:26px;min-height:26px;padding:0 8px;font-size:11.5px;border-color:#fca5a5;color:#b91c1c}.rpt-menu-retry:hover:not(:disabled){background:#fee2e2;border-color:#f87171;color:#991b1b}@keyframes rptMenuSpin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.rpt-spin{animation:rptMenuSpin .9s linear infinite}:is(button,input,[role=tree]):focus-visible{outline:2px solid #2563eb;outline-offset:2px}.rpt-menu-search:focus-visible{outline:none}button:disabled{opacity:.55;cursor:default}\n"] }]
|
|
11968
|
+
args: [{ selector: 'rpt-report-menu-selector', standalone: true, imports: [FormsModule, OverlayModule, RptIconComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div cdkOverlayOrigin #origin=\"cdkOverlayOrigin\" class=\"rpt-menu-root\">\n <div class=\"rpt-menu-controls\">\n <button\n #trigger\n type=\"button\"\n class=\"rpt-menu-trigger\"\n [class.is-open]=\"open()\"\n [class.has-selection]=\"!!selection()\"\n [class.is-invalid]=\"unavailable()\"\n [disabled]=\"disabled()\"\n aria-label=\"Menu destination\"\n aria-haspopup=\"tree\"\n [attr.aria-expanded]=\"open()\"\n [attr.aria-controls]=\"panelId\"\n (click)=\"toggle()\"\n (keydown)=\"triggerKey($event)\"\n >\n <span class=\"rpt-menu-trigger-left\">\n <span class=\"rpt-menu-trigger-icon\" aria-hidden=\"true\">\n <rpt-icon [name]=\"selection() ? 'file-text' : 'folder'\" [size]=\"13\" />\n </span>\n <span class=\"rpt-menu-trigger-label\" [class.is-placeholder]=\"!selection()\">\n {{ selection()?.menuCaption || 'Select menu destination...' }}\n </span>\n </span>\n <span class=\"rpt-menu-chevron\" [class.is-open]=\"open()\" aria-hidden=\"true\">\n <rpt-icon name=\"chevron-down\" [size]=\"12\" />\n </span>\n </button>\n\n @if (selection()) {\n <button\n type=\"button\"\n class=\"rpt-menu-clear\"\n [disabled]=\"disabled()\"\n (click)=\"clear()\"\n aria-label=\"Clear menu destination\"\n title=\"Clear menu destination\"\n >\n <rpt-icon name=\"close\" [size]=\"12\" />\n </button>\n }\n </div>\n\n @if (selection()) {\n <p class=\"rpt-menu-path\" [title]=\"selection()!.path.join(' / ')\">\n <rpt-icon name=\"folder-open\" [size]=\"12\" class=\"rpt-menu-path-icon\" />\n <span class=\"rpt-menu-path-text\">{{ selection()!.path.join(' / ') }}</span>\n </p>\n }\n\n @if (unavailable()) {\n <p class=\"rpt-menu-error rpt-menu-inline-error\" role=\"alert\">\n <rpt-icon name=\"warning\" [size]=\"13\" />\n <span>This menu destination is unavailable. Select another menu or clear it.</span>\n </p>\n }\n</div>\n\n<ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"origin\"\n [cdkConnectedOverlayOpen]=\"open()\"\n [cdkConnectedOverlayPositions]=\"positions\"\n [cdkConnectedOverlayWidth]=\"width()\"\n [cdkConnectedOverlayFlexibleDimensions]=\"true\"\n [cdkConnectedOverlayViewportMargin]=\"8\"\n [cdkConnectedOverlayPush]=\"true\"\n [cdkConnectedOverlayScrollStrategy]=\"scrollStrategy\"\n (overlayOutsideClick)=\"close(false)\"\n (attach)=\"attached()\"\n (detach)=\"close(false)\"\n>\n <div class=\"rpt-menu-panel\" (keydown)=\"key($event)\">\n <div class=\"rpt-menu-tools\">\n <div class=\"rpt-menu-search-wrap\">\n <span class=\"rpt-menu-search-icon\" aria-hidden=\"true\">\n <rpt-icon name=\"search\" [size]=\"13\" />\n </span>\n <input\n #search\n type=\"search\"\n class=\"rpt-menu-search\"\n aria-label=\"Search menu destinations\"\n placeholder=\"Search menus...\"\n [ngModel]=\"query()\"\n (ngModelChange)=\"onQuery($event)\"\n [ngModelOptions]=\"{ standalone: true }\"\n />\n @if (query()) {\n <button\n type=\"button\"\n class=\"rpt-menu-search-clear\"\n tabindex=\"-1\"\n aria-label=\"Clear search\"\n (click)=\"onQuery(''); search.focus()\"\n >\n <rpt-icon name=\"close\" [size]=\"11\" />\n </button>\n }\n </div>\n <button\n type=\"button\"\n class=\"rpt-menu-refresh\"\n [disabled]=\"loading()\"\n (click)=\"reload()\"\n title=\"Refresh menu tree\"\n >\n <rpt-icon name=\"refresh\" [size]=\"12\" [class.rpt-spin]=\"loading()\" />\n <span>Refresh</span>\n </button>\n </div>\n\n @if (loading()) {\n <p class=\"rpt-menu-status\" role=\"status\">\n <rpt-icon name=\"refresh\" [size]=\"14\" class=\"rpt-spin\" />\n <span>Loading menus...</span>\n </p>\n }\n\n @if (error()) {\n <div class=\"rpt-menu-error rpt-menu-panel-error\" role=\"alert\">\n <div class=\"rpt-menu-error-msg\">\n <rpt-icon name=\"warning\" [size]=\"14\" />\n <span>{{ error() }}</span>\n </div>\n <button type=\"button\" class=\"rpt-menu-refresh rpt-menu-retry\" (click)=\"reload()\">\n <rpt-icon name=\"refresh\" [size]=\"11\" />\n <span>Retry</span>\n </button>\n </div>\n }\n\n <div\n #list\n class=\"rpt-menu-tree\"\n role=\"tree\"\n aria-label=\"Menu destinations\"\n tabindex=\"0\"\n [attr.aria-busy]=\"loading()\"\n [attr.aria-activedescendant]=\"visible().length ? panelId + '-row-' + active() : null\"\n >\n @for (row of visible(); track row.node.id; let i = $index) {\n <div\n role=\"treeitem\"\n [id]=\"panelId + '-row-' + i\"\n [attr.aria-level]=\"row.depth + 1\"\n [attr.aria-expanded]=\"row.node.children?.length ? isExpanded(row) : null\"\n [attr.aria-selected]=\"row.node.selectable ? selection()?.targetId === row.node.id : null\"\n class=\"rpt-menu-row\"\n [class.rpt-menu-active]=\"active() === i\"\n [class.rpt-menu-selected]=\"selection()?.targetId === row.node.id\"\n [class.is-group]=\"!!row.node.children?.length && !row.node.selectable\"\n [class.is-selectable]=\"row.node.selectable\"\n [style.padding-left.px]=\"8 + row.depth * 16\"\n (click)=\"active.set(i); choose(row)\"\n >\n @if (row.node.children?.length) {\n <button\n type=\"button\"\n class=\"rpt-menu-expand\"\n tabindex=\"-1\"\n [attr.aria-label]=\"(isExpanded(row) ? 'Collapse ' : 'Expand ') + row.node.caption\"\n (click)=\"$event.stopPropagation(); active.set(i); expand(row)\"\n >\n <rpt-icon [name]=\"isExpanded(row) ? 'chevron-down' : 'chevron-right'\" [size]=\"12\" />\n </button>\n <span class=\"rpt-menu-node-icon is-folder\" [class.is-open]=\"isExpanded(row)\" aria-hidden=\"true\">\n <rpt-icon [name]=\"isExpanded(row) ? 'folder-open' : 'folder'\" [size]=\"14\" />\n </span>\n } @else {\n <span class=\"rpt-menu-leaf\" aria-hidden=\"true\"></span>\n <span class=\"rpt-menu-node-icon is-file\" [class.is-selectable]=\"row.node.selectable\" aria-hidden=\"true\">\n <rpt-icon [name]=\"row.node.selectable ? 'file-text' : 'file'\" [size]=\"14\" />\n </span>\n }\n\n <span class=\"rpt-menu-caption\">{{ row.node.caption }}</span>\n\n @if (row.node.children?.length; as childCount) {\n <span class=\"rpt-menu-count\" aria-hidden=\"true\">{{ childCount }}</span>\n } @else if (selection()?.targetId === row.node.id) {\n <span class=\"rpt-menu-check\" aria-hidden=\"true\">\n <rpt-icon name=\"check\" [size]=\"13\" />\n </span>\n }\n </div>\n }\n </div>\n\n @if (loaded() && !loading() && !visible().length) {\n <p class=\"rpt-menu-empty\" role=\"status\">\n <rpt-icon name=\"folder\" [size]=\"15\" />\n <span>{{ query() ? 'No matching menus.' : 'No menus available.' }}</span>\n </p>\n }\n </div>\n</ng-template>\n", styles: [":host{display:block;min-width:0;font:inherit;color:inherit}*{box-sizing:border-box}.rpt-menu-root{display:flex;flex-direction:column;gap:4px}.rpt-menu-controls{display:flex;align-items:center;gap:4px}.rpt-menu-trigger,.rpt-menu-clear,.rpt-menu-refresh,.rpt-menu-expand{font-family:inherit;margin:0;width:auto;border:1px solid #cbd5e1;border-radius:5px;background:#fff;color:#0f172a;cursor:pointer;letter-spacing:normal;text-transform:none;box-shadow:none;transition:all .12s ease}.rpt-menu-trigger{display:flex;align-items:center;justify-content:space-between;gap:6px;width:100%;min-width:0;height:28px;min-height:28px;max-height:28px;padding:0 8px;text-align:left;font-size:.775rem;font-weight:400;line-height:1.25}.rpt-menu-trigger:hover:not(:disabled){border-color:#94a3b8}.rpt-menu-trigger:focus,.rpt-menu-trigger.is-open{outline:none;border-color:#2563eb;background:#fff;box-shadow:0 0 0 2px #2563eb24}.rpt-menu-trigger.is-invalid{border-color:#ef4444;background:#fef2f2}.rpt-menu-trigger-left{display:flex;align-items:center;gap:6px;min-width:0;flex:1}.rpt-menu-trigger-icon{display:inline-flex;align-items:center;justify-content:center;width:14px;height:14px;color:#64748b;flex-shrink:0;transition:color .12s ease}.rpt-menu-trigger.has-selection .rpt-menu-trigger-icon{color:#2563eb}.rpt-menu-trigger-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#0f172a;font-size:.775rem;line-height:1.25}.rpt-menu-trigger-label.is-placeholder{color:#94a3b8;font-weight:400}.rpt-menu-chevron{display:inline-flex;align-items:center;justify-content:center;color:#64748b;flex-shrink:0;transition:transform .16s ease,color .12s ease}.rpt-menu-chevron.is-open{transform:rotate(180deg);color:#2563eb}.rpt-menu-clear{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;min-height:28px;max-height:28px;padding:0;flex:none;color:#64748b}.rpt-menu-clear:hover:not(:disabled){background:#fef2f2;border-color:#fecaca;color:#dc2626}.rpt-menu-path{display:flex;align-items:center;gap:5px;font-size:.68rem;line-height:1.3;color:#475569;background:#fff;border:1px solid #e2e8f0;border-radius:5px;padding:3px 7px;margin:0;overflow-wrap:anywhere}.rpt-menu-path-icon{color:#3b82f6;flex-shrink:0}.rpt-menu-path-text{min-width:0;font-weight:500}.rpt-menu-panel{display:flex;flex-direction:column;max-height:min(320px,58dvh);width:100%;min-width:250px;overflow:hidden;background:#fff;color:#1e293b;font:12.5px/1.4 var(--rpt-font-family, \"Inter\", system-ui, -apple-system, sans-serif);border:1px solid #cbd5e1;border-radius:8px;box-shadow:0 12px 28px -6px #0f172a29,0 4px 10px -2px #0f172a14}.rpt-menu-tools{display:flex;align-items:center;gap:5px;padding:6px;background:#f8fafc;border-bottom:1px solid #e2e8f0;flex:none}.rpt-menu-search-wrap{position:relative;display:flex;align-items:center;flex:1;min-width:0}.rpt-menu-search-icon{position:absolute;left:8px;display:inline-flex;align-items:center;justify-content:center;color:#94a3b8;pointer-events:none}.rpt-menu-search{font:inherit;font-size:.75rem;color:#0f172a;background:#fff;border:1px solid #cbd5e1;border-radius:5px;width:100%;min-width:0;height:28px;min-height:28px;max-height:28px;padding:3px 24px 3px 26px;margin:0;transition:border-color .12s ease,box-shadow .12s ease}.rpt-menu-search::placeholder{color:#94a3b8}.rpt-menu-search:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 2px #2563eb24}.rpt-menu-search::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none}.rpt-menu-search-clear{position:absolute;right:4px;display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;padding:0;border:none;border-radius:4px;background:transparent;color:#94a3b8;cursor:pointer}.rpt-menu-search-clear:hover{background:#f1f5f9;color:#475569}.rpt-menu-refresh{display:inline-flex;align-items:center;justify-content:center;gap:4px;flex:none;height:28px;min-height:28px;max-height:28px;padding:0 8px;font-size:.72rem;font-weight:500;color:#334155;border-radius:5px;background:#fff}.rpt-menu-refresh:hover:not(:disabled){background:#f1f5f9;border-color:#94a3b8;color:#0f172a}.rpt-menu-tree{overflow-y:auto;overflow-x:hidden;min-height:0;overscroll-behavior:contain;padding:4px;scrollbar-width:thin;scrollbar-color:#cbd5e1 transparent}.rpt-menu-row{display:flex;gap:5px;align-items:center;min-height:28px;padding:3px 8px;margin-bottom:1px;border-radius:5px;cursor:pointer;overflow-wrap:anywhere;color:#334155;transition:background-color .12s ease,color .12s ease;-webkit-user-select:none;user-select:none}.rpt-menu-row.is-group{font-weight:600;color:#1e293b}.rpt-menu-row:hover,.rpt-menu-active{background:#f1f5f9;color:#0f172a}.rpt-menu-selected{background:#eff6ff;color:#1d4ed8;font-weight:600}.rpt-menu-selected:hover,.rpt-menu-selected.rpt-menu-active{background:#dbeafe;color:#1e40af}.rpt-menu-expand{display:inline-flex;align-items:center;justify-content:center;border:0;padding:0;width:18px;height:18px;min-height:18px;border-radius:4px;flex:none;background:transparent;color:#64748b;box-shadow:none}.rpt-menu-expand:hover{background:#e2e8f0;color:#0f172a}.rpt-menu-leaf{width:18px;height:18px;flex:none}.rpt-menu-node-icon{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;flex:none}.rpt-menu-node-icon.is-folder{color:#f59e0b}.rpt-menu-node-icon.is-folder.is-open{color:#d97706}.rpt-menu-node-icon.is-file{color:#64748b}.rpt-menu-node-icon.is-file.is-selectable{color:#3b82f6}.rpt-menu-selected .rpt-menu-node-icon.is-file{color:#1d4ed8}.rpt-menu-caption{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.76rem}.rpt-menu-count{display:inline-flex;align-items:center;justify-content:center;min-width:16px;height:16px;padding:0 5px;border-radius:999px;background:#f1f5f9;color:#64748b;font-size:10px;font-weight:600;flex:none}.rpt-menu-row:hover .rpt-menu-count,.rpt-menu-active .rpt-menu-count{background:#e2e8f0;color:#334155}.rpt-menu-check{display:inline-flex;align-items:center;justify-content:center;color:#2563eb;flex:none;margin-left:4px}.rpt-menu-status,.rpt-menu-empty{display:flex;align-items:center;justify-content:center;gap:6px;padding:14px 10px;margin:0;font-size:.75rem;color:#64748b;text-align:center}.rpt-menu-error{color:#b91c1c;font-size:.72rem;margin:0}.rpt-menu-inline-error{display:flex;align-items:flex-start;gap:5px;padding:4px 7px;background:#fef2f2;border:1px solid #fecaca;border-radius:5px;line-height:1.35}.rpt-menu-panel-error{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:6px 8px;margin:5px 5px 0;background:#fef2f2;border:1px solid #fecaca;border-radius:5px}.rpt-menu-error-msg{display:flex;align-items:center;gap:5px;min-width:0;line-height:1.3}.rpt-menu-retry{height:24px;min-height:24px;max-height:24px;padding:0 7px;font-size:.7rem;border-color:#fca5a5;color:#b91c1c}.rpt-menu-retry:hover:not(:disabled){background:#fee2e2;border-color:#f87171;color:#991b1b}@keyframes rptMenuSpin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.rpt-spin{animation:rptMenuSpin .9s linear infinite}:is(button,input,[role=tree]):focus-visible{outline:2px solid #2563eb;outline-offset:2px}.rpt-menu-trigger:focus-visible,.rpt-menu-search:focus-visible{outline:none}button:disabled{opacity:.55;cursor:default}\n"] }]
|
|
11927
11969
|
}], ctorParameters: () => [] });
|
|
11928
11970
|
|
|
11929
11971
|
/**
|
|
@@ -12092,6 +12134,8 @@ class ReportStoreService {
|
|
|
12092
12134
|
}
|
|
12093
12135
|
/** Saves a validated report definition and updates the local cache. */
|
|
12094
12136
|
saveReport(report, options) {
|
|
12137
|
+
if (options?.menuRoute && !this.adapter?.supportsMenuRouteSave?.())
|
|
12138
|
+
return throwError(() => new Error('The report persistence adapter does not support atomic menu route saving.'));
|
|
12095
12139
|
const context = this.ensureCacheContext();
|
|
12096
12140
|
this.validator.assertValid(report);
|
|
12097
12141
|
if (!this.adapter) {
|
|
@@ -12339,6 +12383,23 @@ class ReportSavedDialogComponent {
|
|
|
12339
12383
|
const menuSelection = this.menuConfig() ? this.menuSelection() : undefined;
|
|
12340
12384
|
const menuContext = this.menuContext();
|
|
12341
12385
|
const menuConfig = this.menuConfig();
|
|
12386
|
+
let menuRoute;
|
|
12387
|
+
if (menuConfig?.routeSave && menuSelection) {
|
|
12388
|
+
try {
|
|
12389
|
+
validateMenuRouteSave(menuConfig.routeSave);
|
|
12390
|
+
if (!this.isPublished())
|
|
12391
|
+
throw new Error('Publish the report before assigning its menu route.');
|
|
12392
|
+
if (!menuSelection.moduleNo || !menuSelection.menuKey || (menuConfig.routeSave.parentColumn && menuSelection.parentKey === undefined))
|
|
12393
|
+
throw new Error('The selected menu is missing its module, key or parent identity.');
|
|
12394
|
+
menuRoute = { ...menuConfig.routeSave, updateColumns: { ...menuConfig.routeSave.updateColumns },
|
|
12395
|
+
keyColumn: menuConfig.routeSave.keyColumn ?? 'MENU_KEY', moduleColumn: menuConfig.routeSave.moduleColumn ?? 'MODULE_NO',
|
|
12396
|
+
menuKey: menuSelection.menuKey, moduleNo: menuSelection.moduleNo, parentKey: menuSelection.parentKey, route: this.fullRoute() };
|
|
12397
|
+
}
|
|
12398
|
+
catch (error) {
|
|
12399
|
+
this.saveError.set(error instanceof Error ? error.message : 'Invalid menu route configuration.');
|
|
12400
|
+
return;
|
|
12401
|
+
}
|
|
12402
|
+
}
|
|
12342
12403
|
const reviewed = {
|
|
12343
12404
|
...this.report, id: this.reportId().trim(),
|
|
12344
12405
|
name: this.name().trim(), slug: this.slug().trim(),
|
|
@@ -12366,12 +12427,12 @@ class ReportSavedDialogComponent {
|
|
|
12366
12427
|
this.idStatus.set(this.idChanged() ? 'duplicate' : 'current');
|
|
12367
12428
|
this.idMessage.set('This report ID already exists. Confirm the update or cancel.');
|
|
12368
12429
|
this.updateConfirmation.set({ report: reviewed, action, expectedVersion: status.version,
|
|
12369
|
-
existingName: status.name || reviewed.id, contextKey, menuSelection, menuContext, menuConfig });
|
|
12430
|
+
existingName: status.name || reviewed.id, contextKey, menuSelection, menuContext, menuConfig, menuRoute });
|
|
12370
12431
|
}
|
|
12371
12432
|
else {
|
|
12372
12433
|
this.idStatus.set('available');
|
|
12373
12434
|
this.idMessage.set('This report ID is available.');
|
|
12374
|
-
this.persist(reviewed, action, { createOnly: true }, menuSelection);
|
|
12435
|
+
this.persist(reviewed, action, { createOnly: true, ...(menuRoute ? { menuRoute } : {}) }, menuSelection);
|
|
12375
12436
|
}
|
|
12376
12437
|
},
|
|
12377
12438
|
error: error => {
|
|
@@ -12393,7 +12454,7 @@ class ReportSavedDialogComponent {
|
|
|
12393
12454
|
this.saveError.set('Reporting context changed. Review the details and save again.');
|
|
12394
12455
|
return;
|
|
12395
12456
|
}
|
|
12396
|
-
this.persist(confirmation.report, confirmation.action, { expectedVersion: confirmation.expectedVersion }, confirmation.menuSelection);
|
|
12457
|
+
this.persist(confirmation.report, confirmation.action, { expectedVersion: confirmation.expectedVersion, ...(confirmation.menuRoute ? { menuRoute: confirmation.menuRoute } : {}) }, confirmation.menuSelection);
|
|
12397
12458
|
}
|
|
12398
12459
|
persist(report, action, options, menuSelection) {
|
|
12399
12460
|
this.isSaving.set(true);
|
|
@@ -12526,15 +12587,15 @@ class ReportSavedDialogComponent {
|
|
|
12526
12587
|
[attr.aria-describedby]="nameError() ? 'rpt-dlg-name-error' : null"
|
|
12527
12588
|
placeholder="e.g. Sales Register"
|
|
12528
12589
|
/>
|
|
12590
|
+
@if (nameError()) {
|
|
12591
|
+
<p id="rpt-dlg-name-error" class="rpt-field-error" role="alert">{{ nameError() }}</p>
|
|
12592
|
+
}
|
|
12529
12593
|
</div>
|
|
12530
12594
|
|
|
12531
|
-
@if (nameError()) {
|
|
12532
|
-
<p id="rpt-dlg-name-error" class="rpt-field-error" role="alert">{{ nameError() }}</p>
|
|
12533
|
-
}
|
|
12534
|
-
|
|
12535
12595
|
<div class="rpt-form-group">
|
|
12536
12596
|
<label class="rpt-label" for="rpt-dlg-description">Description</label>
|
|
12537
12597
|
<textarea id="rpt-dlg-description" class="rpt-input" rows="2"
|
|
12598
|
+
placeholder="Brief summary of this report..."
|
|
12538
12599
|
[ngModel]="description()" (ngModelChange)="description.set($event)"
|
|
12539
12600
|
[ngModelOptions]="{standalone: true}" [disabled]="isSaving()"></textarea>
|
|
12540
12601
|
</div>
|
|
@@ -12566,6 +12627,7 @@ class ReportSavedDialogComponent {
|
|
|
12566
12627
|
<div class="rpt-form-group">
|
|
12567
12628
|
<label class="rpt-label" for="rpt-dlg-category">Category</label>
|
|
12568
12629
|
<input id="rpt-dlg-category" class="rpt-input" type="text"
|
|
12630
|
+
placeholder="e.g. Sales, Inventory, Finance"
|
|
12569
12631
|
[ngModel]="category()" (ngModelChange)="category.set($event)"
|
|
12570
12632
|
[ngModelOptions]="{standalone: true}" [disabled]="isSaving()" />
|
|
12571
12633
|
</div>
|
|
@@ -12576,7 +12638,7 @@ class ReportSavedDialogComponent {
|
|
|
12576
12638
|
<rpt-report-menu-selector [config]="menu" [value]="menuSelection()"
|
|
12577
12639
|
[disabled]="isSaving() || isCheckingId() || !!updateConfirmation()"
|
|
12578
12640
|
(selectionChange)="menuSelection.set($event)" (validityChange)="menuValid.set($event)" />
|
|
12579
|
-
<span class="rpt-help-text">Select the destination for review. Menu storage and route activation are managed by your application
|
|
12641
|
+
<span class="rpt-help-text">{{ menu.routeSave ? 'Saving will update the selected menu to open this report.' : 'Select the destination for review. Menu storage and route activation are managed by your application.' }}</span>
|
|
12580
12642
|
@if (attempted() && !menuValid()) { <p class="rpt-field-error" role="alert">Choose an available menu destination{{ menu.required ? '.' : ' or clear the selection.' }}</p> }
|
|
12581
12643
|
</div>
|
|
12582
12644
|
}
|
|
@@ -12729,7 +12791,7 @@ class ReportSavedDialogComponent {
|
|
|
12729
12791
|
</div>
|
|
12730
12792
|
}
|
|
12731
12793
|
</div>
|
|
12732
|
-
`, isInline: true, styles: ["@keyframes rptSpin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.rpt-spin{display:inline-block;animation:rptSpin 1s linear infinite}@keyframes rptOverlayIn{0%{opacity:0}to{opacity:1}}@keyframes rptCardIn{0%{opacity:0;transform:scale(.96) translateY(6px)}to{opacity:1;transform:scale(1) translateY(0)}}.rpt-id-actions{display:flex;align-items:center;gap:6px;margin-top:4px}.rpt-id-action-btn{display:inline-flex;align-items:center;gap:5px;height:25px;padding:0 9px;font-size:.7rem;font-weight:500;color:#334155;background:#fff;border:1px solid #cbd5e1;border-radius:5px;cursor:pointer;transition:all .15s ease;box-sizing:border-box;white-space:nowrap;font-family:inherit;line-height:1}.rpt-id-action-btn:hover:not(:disabled){background:#f1f5f9;color:#0f172a;border-color:#94a3b8;box-shadow:0 1px 2px #0f172a0d}.rpt-id-action-btn:active:not(:disabled){background:#e2e8f0}.rpt-id-action-btn:disabled{opacity:.5;cursor:not-allowed}.rpt-id-action-btn.is-checking{color:#2563eb;border-color:#93c5fd;background:#eff6ff}.rpt-id-status{display:inline-flex;align-items:center;gap:5px;font-size:.72rem;line-height:1.3;margin:4px 0 0;padding:3px 8px;border-radius:5px;transition:all .15s ease;width:fit-content;max-width:100%;box-sizing:border-box}.rpt-id-status:empty{display:none}.rpt-status-icon{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}.rpt-id-status-success{color:#15803d;background:#f0fdf4;border:1px solid #bbf7d0}.rpt-id-status-warning{color:#b45309;background:#fffbeb;border:1px solid #fef3c7}.rpt-id-status-error{color:#b91c1c;background:#fef2f2;border:1px solid #fecaca}.rpt-id-status-checking{color:#1d4ed8;background:#eff6ff;border:1px solid #dbeafe}.rpt-update-overlay{position:absolute;inset:0;z-index:50;background:#0f172a73;backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px);display:flex;align-items:center;justify-content:center;padding:16px;box-sizing:border-box;animation:rptOverlayIn .16s cubic-bezier(.16,1,.3,1) forwards}.rpt-update-card{box-sizing:border-box;width:min(440px,100%);max-height:94%;background:#fff;border-radius:10px;box-shadow:0 20px 45px -8px #0f172a52,0 0 0 1px #0f172a14;border:1px solid #e2e8f0;overflow:hidden;display:flex;flex-direction:column;animation:rptCardIn .18s cubic-bezier(.16,1,.3,1) forwards}.rpt-update-card-header{display:flex;align-items:center;gap:12px;padding:12px 16px;background:#fffbeb;border-bottom:1px solid #fef3c7;flex-shrink:0}.rpt-update-icon-badge{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:8px;background:#fef3c7;border:1px solid #fde68a;color:#b45309;flex-shrink:0}.rpt-update-header-info{flex:1;min-width:0}.rpt-update-title{margin:0;font-size:.925rem;font-weight:700;color:#92400e;line-height:1.25}.rpt-update-subtitle{font-size:.7rem;color:#b45309;margin-top:1px;display:block}.rpt-update-card-body{padding:14px 16px;display:flex;flex-direction:column;gap:11px;overflow-y:auto;box-sizing:border-box}.rpt-update-prompt{margin:0;font-size:.8rem;line-height:1.45;color:#334155}.rpt-conflict-card{background:#f8fafc;border:1px solid #e2e8f0;border-radius:7px;padding:9px 12px;display:flex;flex-direction:column;gap:7px}.rpt-conflict-row{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:.735rem}.rpt-conflict-label{color:#64748b;font-weight:500;flex-shrink:0}.rpt-conflict-code{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.72rem;background:#e2e8f0;color:#0f172a;padding:2px 6px;border-radius:4px;font-weight:600}.rpt-conflict-name{font-weight:600;color:#0f172a;text-align:right;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rpt-conflict-badge{font-size:.68rem;font-weight:600;padding:1px 7px;border-radius:9999px;background:#e0f2fe;color:#0369a1;border:1px solid #bae6fd}.rpt-overwrite-notice{display:flex;align-items:flex-start;gap:7px;font-size:.715rem;color:#b45309;background:#fffbeb;border:1px solid #fef3c7;padding:7px 10px;border-radius:6px;line-height:1.35}.rpt-overwrite-notice rpt-icon{flex-shrink:0;margin-top:1px}.rpt-update-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:10px 16px;background:#f8fafc;border-top:1px solid #e2e8f0;flex-shrink:0}.rpt-btn-confirm-save{background:linear-gradient(135deg,#2563eb,#1d4ed8);color:#fff;box-shadow:0 1px 2px #2563eb33}.rpt-btn-confirm-save:hover{background:linear-gradient(135deg,#1d4ed8,#1e40af);box-shadow:0 2px 4px #2563eb40}#rpt-dlg-id-error:empty,#rpt-dlg-id-status:empty{display:none}.rpt-dialog-footer,.rpt-footer-actions{flex-wrap:wrap;gap:8px}.rpt-btn,.rpt-dialog-close{min-height:36px}@media (max-width: 640px){.rpt-btn,.rpt-dialog-close{min-height:44px;min-width:44px}.rpt-footer-left{width:100%}}.rpt-field-error{color:#b91c1c;font-size:.8rem;margin:4px 0}button:disabled{opacity:.6;cursor:wait}textarea.rpt-input{resize:vertical;min-height:56px}.rpt-footer-left{min-width:0;padding-right:12px}:host{display:flex;width:100%;min-width:0;min-height:0;max-height:inherit;align-items:center;justify-content:center;font-family:var(--rpt-font-family, system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, sans-serif);color:#0f172a;box-sizing:border-box}.rpt-dialog-shell{position:relative;display:flex;flex-direction:column;width:100%;max-width:100%;min-height:0;max-height:min(540px,calc(100vh - 32px));max-height:min(540px,calc(100dvh - 32px));background:#fff;border-radius:10px;box-shadow:0 20px 40px -12px #0f172a47,0 0 0 1px #0f172a14;overflow:hidden;box-sizing:border-box;animation:rptDialogIn .18s cubic-bezier(.16,1,.3,1) forwards}@keyframes rptDialogIn{0%{opacity:0;transform:scale(.97) translateY(4px)}to{opacity:1;transform:scale(1) translateY(0)}}.rpt-dialog-header{display:flex;align-items:center;justify-content:space-between;padding:10px 16px;border-bottom:1px solid #e2e8f0;background:#f8fafc;flex-shrink:0;box-sizing:border-box}.rpt-header-left{display:flex;align-items:center;gap:10px}.rpt-review-icon-badge{display:flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;background:#dbeafe;border:1px solid #a7f3d0;color:#1d4ed8;flex-shrink:0}.rpt-dialog-title{margin:0;font-size:.925rem;font-weight:700;color:#0f172a;line-height:1.25}.rpt-dialog-subtitle{margin:1px 0 0;font-size:.725rem;color:#64748b;line-height:1.2}.rpt-dialog-close{background:transparent;border:none;color:#94a3b8;cursor:pointer;padding:4px;border-radius:5px;display:flex;align-items:center;justify-content:center;transition:all .12s ease}.rpt-dialog-close:hover{background:#e2e8f0;color:#0f172a}.rpt-dialog-body{display:grid;grid-template-columns:280px minmax(0,1fr);grid-template-rows:minmax(0,1fr);flex:1;min-height:0;min-width:0;overflow:hidden;box-sizing:border-box}@media (max-width: 780px){.rpt-dialog-body{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto;overflow-y:auto;overscroll-behavior:contain}}.rpt-settings-column{display:flex;flex-direction:column;gap:9px;padding:12px 14px;background:#f8fafc;border-right:1px solid #e2e8f0;overflow-y:auto;min-height:0;overscroll-behavior:contain;box-sizing:border-box}.rpt-section-header{font-size:.675rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:#475569;margin-bottom:1px}.rpt-form-group{display:flex;flex-direction:column;gap:3px}.rpt-label{font-size:.725rem;font-weight:600;color:#334155}.rpt-input{width:100%;box-sizing:border-box;height:28px;padding:4px 8px;font-size:.775rem;border:1px solid #cbd5e1;border-radius:5px;background:#fff;color:#0f172a;outline:none;transition:all .12s ease}.rpt-input:focus{border-color:#2563eb;box-shadow:0 0 0 2px #2563eb24}.rpt-slug-input-wrapper{display:flex;align-items:center;background:#fff;border:1px solid #cbd5e1;border-radius:5px;height:28px;overflow:hidden;box-sizing:border-box;transition:all .12s ease}.rpt-slug-input-wrapper:focus-within{border-color:#2563eb;box-shadow:0 0 0 2px #2563eb24}.rpt-slug-prefix{padding:0 0 0 8px;font-size:.725rem;color:#64748b;background:transparent;-webkit-user-select:none;user-select:none;line-height:28px}.rpt-slug-field{border:none!important;padding-left:2px!important;box-shadow:none!important;height:100%!important}.rpt-help-text{font-size:.65rem;color:#64748b;line-height:1.2}.rpt-publish-card{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:6px 10px;background:#fff;border:1px solid #e2e8f0;border-radius:6px;box-sizing:border-box}.rpt-publish-text{display:flex;flex-direction:column;gap:1px}.rpt-publish-title{font-size:.75rem;font-weight:600;color:#0f172a}.rpt-publish-desc{font-size:.65rem;color:#64748b;line-height:1.2}.rpt-switch{position:relative;display:inline-block;width:32px;height:18px;flex-shrink:0}.rpt-switch input{opacity:0;width:0;height:0}.rpt-slider{position:absolute;cursor:pointer;inset:0;background-color:#cbd5e1;transition:.18s;border-radius:9999px}.rpt-slider:before{position:absolute;content:\"\";height:14px;width:14px;left:2px;bottom:2px;background-color:#fff;transition:.18s;border-radius:50%}input:checked+.rpt-slider{background-color:#2563eb}input:checked+.rpt-slider:before{transform:translate(14px)}.rpt-share-card{padding:6px 9px;background:#eff6ff;border:1px solid #bfdbfe;border-radius:6px;box-sizing:border-box}.rpt-share-url-row{display:flex;align-items:center;gap:6px;overflow:hidden}.rpt-share-label{font-size:.675rem;font-weight:600;color:#1e40af;flex-shrink:0}.rpt-share-code{flex:1;font-size:.6875rem;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;color:#1e3a8a;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rpt-btn-copy{display:inline-flex;align-items:center;gap:3px;padding:2px 6px;background:#fff;border:1px solid #93c5fd;border-radius:4px;font-size:.65rem;font-weight:600;color:#2563eb;cursor:pointer;flex-shrink:0;transition:all .12s ease;height:20px}.rpt-btn-copy:hover{background:#dbeafe}.rpt-preview-column{display:flex;flex-direction:column;background:#fff;overflow:hidden;min-width:0;box-sizing:border-box}.rpt-preview-header{display:flex;align-items:center;justify-content:space-between;padding:8px 14px;border-bottom:1px solid #e2e8f0;background:#fff;flex-shrink:0;box-sizing:border-box}.rpt-preview-badge{display:flex;align-items:center;gap:6px;font-size:.725rem;font-weight:600;color:#0f172a}.rpt-live-dot{width:6px;height:6px;border-radius:50%;background:#10b981;box-shadow:0 0 0 2px #10b98133}.rpt-preview-hint{font-size:.675rem;color:#64748b}.rpt-preview-runtime-wrapper{flex:1;min-height:0;overscroll-behavior:contain;overflow-y:auto;overflow-x:hidden;padding:10px 12px;background:#f8fafc;box-sizing:border-box}.rpt-preview-runtime-wrapper::-webkit-scrollbar,.rpt-settings-column::-webkit-scrollbar{width:5px}.rpt-preview-runtime-wrapper::-webkit-scrollbar-thumb,.rpt-settings-column::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:9999px}.rpt-preview-runtime-wrapper::-webkit-scrollbar-thumb:hover,.rpt-settings-column::-webkit-scrollbar-thumb:hover{background:#94a3b8}.rpt-preview-card-frame{background:#fff;border:1px solid #e2e8f0;border-radius:8px;box-shadow:0 1px 3px #0f172a0a;padding:10px;min-height:100%;box-sizing:border-box;overflow-x:hidden}@media (max-width: 780px){.rpt-settings-column{overflow-y:visible}.rpt-preview-runtime-wrapper{flex:none;max-height:320px}.rpt-preview-hint{display:none}}.rpt-dialog-footer{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between;padding:8px 16px;background:#f8fafc;border-top:1px solid #e2e8f0;flex-shrink:0;box-sizing:border-box}.rpt-saved-pill{display:inline-flex;align-items:center;gap:4px;font-size:.7rem;font-weight:600;color:#15803d;background:#dcfce7;padding:2px 7px;border-radius:9999px}.rpt-footer-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-left:auto}.rpt-btn{display:inline-flex;align-items:center;gap:5px;padding:5px 13px;font-size:.75rem;font-weight:600;border-radius:6px;cursor:pointer;transition:all .12s ease;border:1px solid transparent;box-sizing:border-box;line-height:1.4}.rpt-btn-secondary{background:#fff;border-color:#cbd5e1;color:#334155}.rpt-btn-secondary:hover{background:#f1f5f9;color:#0f172a;border-color:#94a3b8}.rpt-btn-primary{background:linear-gradient(135deg,#2563eb,#1d4ed8);color:#fff;box-shadow:0 1px 2px #2563eb33}.rpt-btn-primary:hover{background:linear-gradient(135deg,#1d4ed8,#1e40af);box-shadow:0 2px 4px #2563eb40}\n"], dependencies: [{ kind: "component", type: ReportMenuSelectorComponent, selector: "rpt-report-menu-selector", inputs: ["config", "value", "disabled"], outputs: ["selectionChange", "validityChange"] }, { kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: A11yModule }, { kind: "directive", type: i2$1.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { kind: "directive", type: CdkScrollable, selector: "[cdk-scrollable], [cdkScrollable]" }, { kind: "component", type: ReportRuntimeComponent, selector: "rpt-report-runtime, rpt-runtime", inputs: ["reportId", "report", "resultData"], outputs: ["resetRequested", "execute", "executed", "exportRequested", "printRequested", "customActionTriggered", "gridStateChange", "columnDefsChange", "selectionChange", "selectionChanged", "rowActionTriggered", "drilldownRequested"] }, { kind: "component", type: RptIconComponent, selector: "rpt-icon", inputs: ["name", "size", "color", "strokeWidth"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
12794
|
+
`, isInline: true, styles: ["@keyframes rptSpin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.rpt-spin{display:inline-block;animation:rptSpin 1s linear infinite}@keyframes rptOverlayIn{0%{opacity:0}to{opacity:1}}@keyframes rptCardIn{0%{opacity:0;transform:scale(.96) translateY(6px)}to{opacity:1;transform:scale(1) translateY(0)}}.rpt-id-actions{display:flex;align-items:center;gap:6px;margin-top:4px}.rpt-id-action-btn{display:inline-flex;align-items:center;gap:5px;height:25px;padding:0 9px;font-size:.7rem;font-weight:500;color:#334155;background:#fff;border:1px solid #cbd5e1;border-radius:5px;cursor:pointer;transition:all .15s ease;box-sizing:border-box;white-space:nowrap;font-family:inherit;line-height:1}.rpt-id-action-btn:hover:not(:disabled){background:#f1f5f9;color:#0f172a;border-color:#94a3b8;box-shadow:0 1px 2px #0f172a0d}.rpt-id-action-btn:active:not(:disabled){background:#e2e8f0}.rpt-id-action-btn:disabled{opacity:.5;cursor:not-allowed}.rpt-id-action-btn.is-checking{color:#2563eb;border-color:#93c5fd;background:#eff6ff}.rpt-id-status{display:inline-flex;align-items:center;gap:5px;font-size:.72rem;line-height:1.3;margin:4px 0 0;padding:3px 8px;border-radius:5px;transition:all .15s ease;width:fit-content;max-width:100%;box-sizing:border-box}.rpt-id-status:empty{display:none}.rpt-status-icon{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}.rpt-id-status-success{color:#15803d;background:#f0fdf4;border:1px solid #bbf7d0}.rpt-id-status-warning{color:#b45309;background:#fffbeb;border:1px solid #fef3c7}.rpt-id-status-error{color:#b91c1c;background:#fef2f2;border:1px solid #fecaca}.rpt-id-status-checking{color:#1d4ed8;background:#eff6ff;border:1px solid #dbeafe}.rpt-update-overlay{position:absolute;inset:0;z-index:50;background:#0f172a73;backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px);display:flex;align-items:center;justify-content:center;padding:16px;box-sizing:border-box;animation:rptOverlayIn .16s cubic-bezier(.16,1,.3,1) forwards}.rpt-update-card{box-sizing:border-box;width:min(440px,100%);max-height:94%;background:#fff;border-radius:10px;box-shadow:0 20px 45px -8px #0f172a52,0 0 0 1px #0f172a14;border:1px solid #e2e8f0;overflow:hidden;display:flex;flex-direction:column;animation:rptCardIn .18s cubic-bezier(.16,1,.3,1) forwards}.rpt-update-card-header{display:flex;align-items:center;gap:12px;padding:12px 16px;background:#fffbeb;border-bottom:1px solid #fef3c7;flex-shrink:0}.rpt-update-icon-badge{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:8px;background:#fef3c7;border:1px solid #fde68a;color:#b45309;flex-shrink:0}.rpt-update-header-info{flex:1;min-width:0}.rpt-update-title{margin:0;font-size:.925rem;font-weight:700;color:#92400e;line-height:1.25}.rpt-update-subtitle{font-size:.7rem;color:#b45309;margin-top:1px;display:block}.rpt-update-card-body{padding:14px 16px;display:flex;flex-direction:column;gap:11px;overflow-y:auto;box-sizing:border-box}.rpt-update-prompt{margin:0;font-size:.8rem;line-height:1.45;color:#334155}.rpt-conflict-card{background:#f8fafc;border:1px solid #e2e8f0;border-radius:7px;padding:9px 12px;display:flex;flex-direction:column;gap:7px}.rpt-conflict-row{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:.735rem}.rpt-conflict-label{color:#64748b;font-weight:500;flex-shrink:0}.rpt-conflict-code{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.72rem;background:#e2e8f0;color:#0f172a;padding:2px 6px;border-radius:4px;font-weight:600}.rpt-conflict-name{font-weight:600;color:#0f172a;text-align:right;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rpt-conflict-badge{font-size:.68rem;font-weight:600;padding:1px 7px;border-radius:9999px;background:#e0f2fe;color:#0369a1;border:1px solid #bae6fd}.rpt-overwrite-notice{display:flex;align-items:flex-start;gap:7px;font-size:.715rem;color:#b45309;background:#fffbeb;border:1px solid #fef3c7;padding:7px 10px;border-radius:6px;line-height:1.35}.rpt-overwrite-notice rpt-icon{flex-shrink:0;margin-top:1px}.rpt-update-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:10px 16px;background:#f8fafc;border-top:1px solid #e2e8f0;flex-shrink:0}.rpt-btn-confirm-save{background:linear-gradient(135deg,#2563eb,#1d4ed8);color:#fff;box-shadow:0 1px 2px #2563eb33}.rpt-btn-confirm-save:hover{background:linear-gradient(135deg,#1d4ed8,#1e40af);box-shadow:0 2px 4px #2563eb40}#rpt-dlg-id-error:empty,#rpt-dlg-id-status:empty{display:none}.rpt-dialog-footer,.rpt-footer-actions{flex-wrap:wrap;gap:8px}.rpt-btn,.rpt-dialog-close{min-height:36px}@media (max-width: 640px){.rpt-btn,.rpt-dialog-close{min-height:44px;min-width:44px}.rpt-footer-left{width:100%}}.rpt-field-error{color:#b91c1c;font-size:.8rem;margin:4px 0}button:disabled{opacity:.6;cursor:wait}textarea.rpt-input{resize:vertical;min-height:56px}.rpt-footer-left{min-width:0;padding-right:12px}:host{display:flex;width:100%;min-width:0;min-height:0;max-height:inherit;align-items:center;justify-content:center;font-family:var(--rpt-font-family, system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, sans-serif);color:#0f172a;box-sizing:border-box}.rpt-dialog-shell{position:relative;display:flex;flex-direction:column;width:100%;max-width:100%;min-height:0;max-height:min(540px,calc(100vh - 32px));max-height:min(540px,calc(100dvh - 32px));background:#fff;border-radius:10px;box-shadow:0 20px 40px -12px #0f172a47,0 0 0 1px #0f172a14;overflow:hidden;box-sizing:border-box;animation:rptDialogIn .18s cubic-bezier(.16,1,.3,1) forwards}@keyframes rptDialogIn{0%{opacity:0;transform:scale(.97) translateY(4px)}to{opacity:1;transform:scale(1) translateY(0)}}.rpt-dialog-header{display:flex;align-items:center;justify-content:space-between;padding:10px 16px;border-bottom:1px solid #e2e8f0;background:#f8fafc;flex-shrink:0;box-sizing:border-box}.rpt-header-left{display:flex;align-items:center;gap:10px}.rpt-review-icon-badge{display:flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;background:#dbeafe;border:1px solid #a7f3d0;color:#1d4ed8;flex-shrink:0}.rpt-dialog-title{margin:0;font-size:.925rem;font-weight:700;color:#0f172a;line-height:1.25}.rpt-dialog-subtitle{margin:1px 0 0;font-size:.725rem;color:#64748b;line-height:1.2}.rpt-dialog-close{background:transparent;border:none;color:#94a3b8;cursor:pointer;padding:4px;border-radius:5px;display:flex;align-items:center;justify-content:center;transition:all .12s ease}.rpt-dialog-close:hover{background:#e2e8f0;color:#0f172a}.rpt-dialog-body{display:grid;grid-template-columns:280px minmax(0,1fr);grid-template-rows:minmax(0,1fr);flex:1;min-height:0;min-width:0;overflow:hidden;box-sizing:border-box}@media (max-width: 780px){.rpt-dialog-body{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto;overflow-y:auto;overscroll-behavior:contain}}.rpt-settings-column{display:flex;flex-direction:column;gap:9px;padding:12px 14px;background:#f8fafc;border-right:1px solid #e2e8f0;overflow-y:auto;min-height:0;overscroll-behavior:contain;box-sizing:border-box}.rpt-section-header{font-size:.675rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:#475569;margin-bottom:1px}.rpt-form-group{display:flex;flex-direction:column;gap:3px}.rpt-label{font-size:.725rem;font-weight:600;color:#334155}.rpt-input{width:100%;box-sizing:border-box;height:28px;min-height:28px;max-height:28px;margin:0;padding:0 8px;font-size:.775rem;line-height:1.25;border:1px solid #cbd5e1;border-radius:5px;background:#fff;color:#0f172a;outline:none;box-shadow:none;transition:all .12s ease}.rpt-input::placeholder{color:#94a3b8;font-weight:400}.rpt-input:hover:not(:disabled){border-color:#94a3b8}.rpt-input:focus{border-color:#2563eb;box-shadow:0 0 0 2px #2563eb24}textarea.rpt-input{height:auto;min-height:52px;max-height:120px;padding:5px 8px;line-height:1.4;resize:vertical}.rpt-slug-input-wrapper{display:flex;align-items:center;background:#fff;border:1px solid #cbd5e1;border-radius:5px;height:28px;min-height:28px;max-height:28px;overflow:hidden;box-sizing:border-box;transition:all .12s ease}.rpt-slug-input-wrapper:hover{border-color:#94a3b8}.rpt-slug-input-wrapper:focus-within{border-color:#2563eb;box-shadow:0 0 0 2px #2563eb24}.rpt-slug-prefix{padding:0 0 0 8px;font-size:.725rem;color:#64748b;background:transparent;-webkit-user-select:none;user-select:none;line-height:26px;flex-shrink:0}.rpt-slug-field{border:none!important;padding-left:2px!important;box-shadow:none!important;height:100%!important;min-height:0!important;max-height:none!important}.rpt-help-text{font-size:.65rem;color:#64748b;line-height:1.2}.rpt-publish-card{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:6px 10px;background:#fff;border:1px solid #e2e8f0;border-radius:6px;box-sizing:border-box}.rpt-publish-text{display:flex;flex-direction:column;gap:1px}.rpt-publish-title{font-size:.75rem;font-weight:600;color:#0f172a}.rpt-publish-desc{font-size:.65rem;color:#64748b;line-height:1.2}.rpt-switch{position:relative;display:inline-block;width:32px;height:18px;flex-shrink:0}.rpt-switch input{opacity:0;width:0;height:0}.rpt-slider{position:absolute;cursor:pointer;inset:0;background-color:#cbd5e1;transition:.18s;border-radius:9999px}.rpt-slider:before{position:absolute;content:\"\";height:14px;width:14px;left:2px;bottom:2px;background-color:#fff;transition:.18s;border-radius:50%}input:checked+.rpt-slider{background-color:#2563eb}input:checked+.rpt-slider:before{transform:translate(14px)}.rpt-share-card{padding:6px 9px;background:#eff6ff;border:1px solid #bfdbfe;border-radius:6px;box-sizing:border-box}.rpt-share-url-row{display:flex;align-items:center;gap:6px;overflow:hidden}.rpt-share-label{font-size:.675rem;font-weight:600;color:#1e40af;flex-shrink:0}.rpt-share-code{flex:1;font-size:.6875rem;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;color:#1e3a8a;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rpt-btn-copy{display:inline-flex;align-items:center;gap:3px;padding:2px 6px;background:#fff;border:1px solid #93c5fd;border-radius:4px;font-size:.65rem;font-weight:600;color:#2563eb;cursor:pointer;flex-shrink:0;transition:all .12s ease;height:20px}.rpt-btn-copy:hover{background:#dbeafe}.rpt-preview-column{display:flex;flex-direction:column;background:#fff;overflow:hidden;min-width:0;box-sizing:border-box}.rpt-preview-header{display:flex;align-items:center;justify-content:space-between;padding:8px 14px;border-bottom:1px solid #e2e8f0;background:#fff;flex-shrink:0;box-sizing:border-box}.rpt-preview-badge{display:flex;align-items:center;gap:6px;font-size:.725rem;font-weight:600;color:#0f172a}.rpt-live-dot{width:6px;height:6px;border-radius:50%;background:#10b981;box-shadow:0 0 0 2px #10b98133}.rpt-preview-hint{font-size:.675rem;color:#64748b}.rpt-preview-runtime-wrapper{flex:1;min-height:0;overscroll-behavior:contain;overflow-y:auto;overflow-x:hidden;padding:10px 12px;background:#f8fafc;box-sizing:border-box}.rpt-preview-runtime-wrapper::-webkit-scrollbar,.rpt-settings-column::-webkit-scrollbar{width:5px}.rpt-preview-runtime-wrapper::-webkit-scrollbar-thumb,.rpt-settings-column::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:9999px}.rpt-preview-runtime-wrapper::-webkit-scrollbar-thumb:hover,.rpt-settings-column::-webkit-scrollbar-thumb:hover{background:#94a3b8}.rpt-preview-card-frame{background:#fff;border:1px solid #e2e8f0;border-radius:8px;box-shadow:0 1px 3px #0f172a0a;padding:10px;min-height:100%;box-sizing:border-box;overflow-x:hidden}@media (max-width: 780px){.rpt-settings-column{overflow-y:visible}.rpt-preview-runtime-wrapper{flex:none;max-height:320px}.rpt-preview-hint{display:none}}.rpt-dialog-footer{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between;padding:8px 16px;background:#f8fafc;border-top:1px solid #e2e8f0;flex-shrink:0;box-sizing:border-box}.rpt-saved-pill{display:inline-flex;align-items:center;gap:4px;font-size:.7rem;font-weight:600;color:#15803d;background:#dcfce7;padding:2px 7px;border-radius:9999px}.rpt-footer-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-left:auto}.rpt-btn{display:inline-flex;align-items:center;gap:5px;padding:5px 13px;font-size:.75rem;font-weight:600;border-radius:6px;cursor:pointer;transition:all .12s ease;border:1px solid transparent;box-sizing:border-box;line-height:1.4}.rpt-btn-secondary{background:#fff;border-color:#cbd5e1;color:#334155}.rpt-btn-secondary:hover{background:#f1f5f9;color:#0f172a;border-color:#94a3b8}.rpt-btn-primary{background:linear-gradient(135deg,#2563eb,#1d4ed8);color:#fff;box-shadow:0 1px 2px #2563eb33}.rpt-btn-primary:hover{background:linear-gradient(135deg,#1d4ed8,#1e40af);box-shadow:0 2px 4px #2563eb40}\n"], dependencies: [{ kind: "component", type: ReportMenuSelectorComponent, selector: "rpt-report-menu-selector", inputs: ["config", "value", "disabled"], outputs: ["selectionChange", "validityChange"] }, { kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: A11yModule }, { kind: "directive", type: i2$1.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { kind: "directive", type: CdkScrollable, selector: "[cdk-scrollable], [cdkScrollable]" }, { kind: "component", type: ReportRuntimeComponent, selector: "rpt-report-runtime, rpt-runtime", inputs: ["reportId", "report", "resultData"], outputs: ["resetRequested", "execute", "executed", "exportRequested", "printRequested", "customActionTriggered", "gridStateChange", "columnDefsChange", "selectionChange", "selectionChanged", "rowActionTriggered", "drilldownRequested"] }, { kind: "component", type: RptIconComponent, selector: "rpt-icon", inputs: ["name", "size", "color", "strokeWidth"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
12733
12795
|
}
|
|
12734
12796
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ReportSavedDialogComponent, decorators: [{
|
|
12735
12797
|
type: Component,
|
|
@@ -12838,15 +12900,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
12838
12900
|
[attr.aria-describedby]="nameError() ? 'rpt-dlg-name-error' : null"
|
|
12839
12901
|
placeholder="e.g. Sales Register"
|
|
12840
12902
|
/>
|
|
12903
|
+
@if (nameError()) {
|
|
12904
|
+
<p id="rpt-dlg-name-error" class="rpt-field-error" role="alert">{{ nameError() }}</p>
|
|
12905
|
+
}
|
|
12841
12906
|
</div>
|
|
12842
12907
|
|
|
12843
|
-
@if (nameError()) {
|
|
12844
|
-
<p id="rpt-dlg-name-error" class="rpt-field-error" role="alert">{{ nameError() }}</p>
|
|
12845
|
-
}
|
|
12846
|
-
|
|
12847
12908
|
<div class="rpt-form-group">
|
|
12848
12909
|
<label class="rpt-label" for="rpt-dlg-description">Description</label>
|
|
12849
12910
|
<textarea id="rpt-dlg-description" class="rpt-input" rows="2"
|
|
12911
|
+
placeholder="Brief summary of this report..."
|
|
12850
12912
|
[ngModel]="description()" (ngModelChange)="description.set($event)"
|
|
12851
12913
|
[ngModelOptions]="{standalone: true}" [disabled]="isSaving()"></textarea>
|
|
12852
12914
|
</div>
|
|
@@ -12878,6 +12940,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
12878
12940
|
<div class="rpt-form-group">
|
|
12879
12941
|
<label class="rpt-label" for="rpt-dlg-category">Category</label>
|
|
12880
12942
|
<input id="rpt-dlg-category" class="rpt-input" type="text"
|
|
12943
|
+
placeholder="e.g. Sales, Inventory, Finance"
|
|
12881
12944
|
[ngModel]="category()" (ngModelChange)="category.set($event)"
|
|
12882
12945
|
[ngModelOptions]="{standalone: true}" [disabled]="isSaving()" />
|
|
12883
12946
|
</div>
|
|
@@ -12888,7 +12951,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
12888
12951
|
<rpt-report-menu-selector [config]="menu" [value]="menuSelection()"
|
|
12889
12952
|
[disabled]="isSaving() || isCheckingId() || !!updateConfirmation()"
|
|
12890
12953
|
(selectionChange)="menuSelection.set($event)" (validityChange)="menuValid.set($event)" />
|
|
12891
|
-
<span class="rpt-help-text">Select the destination for review. Menu storage and route activation are managed by your application
|
|
12954
|
+
<span class="rpt-help-text">{{ menu.routeSave ? 'Saving will update the selected menu to open this report.' : 'Select the destination for review. Menu storage and route activation are managed by your application.' }}</span>
|
|
12892
12955
|
@if (attempted() && !menuValid()) { <p class="rpt-field-error" role="alert">Choose an available menu destination{{ menu.required ? '.' : ' or clear the selection.' }}</p> }
|
|
12893
12956
|
</div>
|
|
12894
12957
|
}
|
|
@@ -13041,7 +13104,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
13041
13104
|
</div>
|
|
13042
13105
|
}
|
|
13043
13106
|
</div>
|
|
13044
|
-
`, styles: ["@keyframes rptSpin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.rpt-spin{display:inline-block;animation:rptSpin 1s linear infinite}@keyframes rptOverlayIn{0%{opacity:0}to{opacity:1}}@keyframes rptCardIn{0%{opacity:0;transform:scale(.96) translateY(6px)}to{opacity:1;transform:scale(1) translateY(0)}}.rpt-id-actions{display:flex;align-items:center;gap:6px;margin-top:4px}.rpt-id-action-btn{display:inline-flex;align-items:center;gap:5px;height:25px;padding:0 9px;font-size:.7rem;font-weight:500;color:#334155;background:#fff;border:1px solid #cbd5e1;border-radius:5px;cursor:pointer;transition:all .15s ease;box-sizing:border-box;white-space:nowrap;font-family:inherit;line-height:1}.rpt-id-action-btn:hover:not(:disabled){background:#f1f5f9;color:#0f172a;border-color:#94a3b8;box-shadow:0 1px 2px #0f172a0d}.rpt-id-action-btn:active:not(:disabled){background:#e2e8f0}.rpt-id-action-btn:disabled{opacity:.5;cursor:not-allowed}.rpt-id-action-btn.is-checking{color:#2563eb;border-color:#93c5fd;background:#eff6ff}.rpt-id-status{display:inline-flex;align-items:center;gap:5px;font-size:.72rem;line-height:1.3;margin:4px 0 0;padding:3px 8px;border-radius:5px;transition:all .15s ease;width:fit-content;max-width:100%;box-sizing:border-box}.rpt-id-status:empty{display:none}.rpt-status-icon{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}.rpt-id-status-success{color:#15803d;background:#f0fdf4;border:1px solid #bbf7d0}.rpt-id-status-warning{color:#b45309;background:#fffbeb;border:1px solid #fef3c7}.rpt-id-status-error{color:#b91c1c;background:#fef2f2;border:1px solid #fecaca}.rpt-id-status-checking{color:#1d4ed8;background:#eff6ff;border:1px solid #dbeafe}.rpt-update-overlay{position:absolute;inset:0;z-index:50;background:#0f172a73;backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px);display:flex;align-items:center;justify-content:center;padding:16px;box-sizing:border-box;animation:rptOverlayIn .16s cubic-bezier(.16,1,.3,1) forwards}.rpt-update-card{box-sizing:border-box;width:min(440px,100%);max-height:94%;background:#fff;border-radius:10px;box-shadow:0 20px 45px -8px #0f172a52,0 0 0 1px #0f172a14;border:1px solid #e2e8f0;overflow:hidden;display:flex;flex-direction:column;animation:rptCardIn .18s cubic-bezier(.16,1,.3,1) forwards}.rpt-update-card-header{display:flex;align-items:center;gap:12px;padding:12px 16px;background:#fffbeb;border-bottom:1px solid #fef3c7;flex-shrink:0}.rpt-update-icon-badge{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:8px;background:#fef3c7;border:1px solid #fde68a;color:#b45309;flex-shrink:0}.rpt-update-header-info{flex:1;min-width:0}.rpt-update-title{margin:0;font-size:.925rem;font-weight:700;color:#92400e;line-height:1.25}.rpt-update-subtitle{font-size:.7rem;color:#b45309;margin-top:1px;display:block}.rpt-update-card-body{padding:14px 16px;display:flex;flex-direction:column;gap:11px;overflow-y:auto;box-sizing:border-box}.rpt-update-prompt{margin:0;font-size:.8rem;line-height:1.45;color:#334155}.rpt-conflict-card{background:#f8fafc;border:1px solid #e2e8f0;border-radius:7px;padding:9px 12px;display:flex;flex-direction:column;gap:7px}.rpt-conflict-row{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:.735rem}.rpt-conflict-label{color:#64748b;font-weight:500;flex-shrink:0}.rpt-conflict-code{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.72rem;background:#e2e8f0;color:#0f172a;padding:2px 6px;border-radius:4px;font-weight:600}.rpt-conflict-name{font-weight:600;color:#0f172a;text-align:right;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rpt-conflict-badge{font-size:.68rem;font-weight:600;padding:1px 7px;border-radius:9999px;background:#e0f2fe;color:#0369a1;border:1px solid #bae6fd}.rpt-overwrite-notice{display:flex;align-items:flex-start;gap:7px;font-size:.715rem;color:#b45309;background:#fffbeb;border:1px solid #fef3c7;padding:7px 10px;border-radius:6px;line-height:1.35}.rpt-overwrite-notice rpt-icon{flex-shrink:0;margin-top:1px}.rpt-update-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:10px 16px;background:#f8fafc;border-top:1px solid #e2e8f0;flex-shrink:0}.rpt-btn-confirm-save{background:linear-gradient(135deg,#2563eb,#1d4ed8);color:#fff;box-shadow:0 1px 2px #2563eb33}.rpt-btn-confirm-save:hover{background:linear-gradient(135deg,#1d4ed8,#1e40af);box-shadow:0 2px 4px #2563eb40}#rpt-dlg-id-error:empty,#rpt-dlg-id-status:empty{display:none}.rpt-dialog-footer,.rpt-footer-actions{flex-wrap:wrap;gap:8px}.rpt-btn,.rpt-dialog-close{min-height:36px}@media (max-width: 640px){.rpt-btn,.rpt-dialog-close{min-height:44px;min-width:44px}.rpt-footer-left{width:100%}}.rpt-field-error{color:#b91c1c;font-size:.8rem;margin:4px 0}button:disabled{opacity:.6;cursor:wait}textarea.rpt-input{resize:vertical;min-height:56px}.rpt-footer-left{min-width:0;padding-right:12px}:host{display:flex;width:100%;min-width:0;min-height:0;max-height:inherit;align-items:center;justify-content:center;font-family:var(--rpt-font-family, system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, sans-serif);color:#0f172a;box-sizing:border-box}.rpt-dialog-shell{position:relative;display:flex;flex-direction:column;width:100%;max-width:100%;min-height:0;max-height:min(540px,calc(100vh - 32px));max-height:min(540px,calc(100dvh - 32px));background:#fff;border-radius:10px;box-shadow:0 20px 40px -12px #0f172a47,0 0 0 1px #0f172a14;overflow:hidden;box-sizing:border-box;animation:rptDialogIn .18s cubic-bezier(.16,1,.3,1) forwards}@keyframes rptDialogIn{0%{opacity:0;transform:scale(.97) translateY(4px)}to{opacity:1;transform:scale(1) translateY(0)}}.rpt-dialog-header{display:flex;align-items:center;justify-content:space-between;padding:10px 16px;border-bottom:1px solid #e2e8f0;background:#f8fafc;flex-shrink:0;box-sizing:border-box}.rpt-header-left{display:flex;align-items:center;gap:10px}.rpt-review-icon-badge{display:flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;background:#dbeafe;border:1px solid #a7f3d0;color:#1d4ed8;flex-shrink:0}.rpt-dialog-title{margin:0;font-size:.925rem;font-weight:700;color:#0f172a;line-height:1.25}.rpt-dialog-subtitle{margin:1px 0 0;font-size:.725rem;color:#64748b;line-height:1.2}.rpt-dialog-close{background:transparent;border:none;color:#94a3b8;cursor:pointer;padding:4px;border-radius:5px;display:flex;align-items:center;justify-content:center;transition:all .12s ease}.rpt-dialog-close:hover{background:#e2e8f0;color:#0f172a}.rpt-dialog-body{display:grid;grid-template-columns:280px minmax(0,1fr);grid-template-rows:minmax(0,1fr);flex:1;min-height:0;min-width:0;overflow:hidden;box-sizing:border-box}@media (max-width: 780px){.rpt-dialog-body{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto;overflow-y:auto;overscroll-behavior:contain}}.rpt-settings-column{display:flex;flex-direction:column;gap:9px;padding:12px 14px;background:#f8fafc;border-right:1px solid #e2e8f0;overflow-y:auto;min-height:0;overscroll-behavior:contain;box-sizing:border-box}.rpt-section-header{font-size:.675rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:#475569;margin-bottom:1px}.rpt-form-group{display:flex;flex-direction:column;gap:3px}.rpt-label{font-size:.725rem;font-weight:600;color:#334155}.rpt-input{width:100%;box-sizing:border-box;height:28px;padding:4px 8px;font-size:.775rem;border:1px solid #cbd5e1;border-radius:5px;background:#fff;color:#0f172a;outline:none;transition:all .12s ease}.rpt-input:focus{border-color:#2563eb;box-shadow:0 0 0 2px #2563eb24}.rpt-slug-input-wrapper{display:flex;align-items:center;background:#fff;border:1px solid #cbd5e1;border-radius:5px;height:28px;overflow:hidden;box-sizing:border-box;transition:all .12s ease}.rpt-slug-input-wrapper:focus-within{border-color:#2563eb;box-shadow:0 0 0 2px #2563eb24}.rpt-slug-prefix{padding:0 0 0 8px;font-size:.725rem;color:#64748b;background:transparent;-webkit-user-select:none;user-select:none;line-height:28px}.rpt-slug-field{border:none!important;padding-left:2px!important;box-shadow:none!important;height:100%!important}.rpt-help-text{font-size:.65rem;color:#64748b;line-height:1.2}.rpt-publish-card{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:6px 10px;background:#fff;border:1px solid #e2e8f0;border-radius:6px;box-sizing:border-box}.rpt-publish-text{display:flex;flex-direction:column;gap:1px}.rpt-publish-title{font-size:.75rem;font-weight:600;color:#0f172a}.rpt-publish-desc{font-size:.65rem;color:#64748b;line-height:1.2}.rpt-switch{position:relative;display:inline-block;width:32px;height:18px;flex-shrink:0}.rpt-switch input{opacity:0;width:0;height:0}.rpt-slider{position:absolute;cursor:pointer;inset:0;background-color:#cbd5e1;transition:.18s;border-radius:9999px}.rpt-slider:before{position:absolute;content:\"\";height:14px;width:14px;left:2px;bottom:2px;background-color:#fff;transition:.18s;border-radius:50%}input:checked+.rpt-slider{background-color:#2563eb}input:checked+.rpt-slider:before{transform:translate(14px)}.rpt-share-card{padding:6px 9px;background:#eff6ff;border:1px solid #bfdbfe;border-radius:6px;box-sizing:border-box}.rpt-share-url-row{display:flex;align-items:center;gap:6px;overflow:hidden}.rpt-share-label{font-size:.675rem;font-weight:600;color:#1e40af;flex-shrink:0}.rpt-share-code{flex:1;font-size:.6875rem;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;color:#1e3a8a;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rpt-btn-copy{display:inline-flex;align-items:center;gap:3px;padding:2px 6px;background:#fff;border:1px solid #93c5fd;border-radius:4px;font-size:.65rem;font-weight:600;color:#2563eb;cursor:pointer;flex-shrink:0;transition:all .12s ease;height:20px}.rpt-btn-copy:hover{background:#dbeafe}.rpt-preview-column{display:flex;flex-direction:column;background:#fff;overflow:hidden;min-width:0;box-sizing:border-box}.rpt-preview-header{display:flex;align-items:center;justify-content:space-between;padding:8px 14px;border-bottom:1px solid #e2e8f0;background:#fff;flex-shrink:0;box-sizing:border-box}.rpt-preview-badge{display:flex;align-items:center;gap:6px;font-size:.725rem;font-weight:600;color:#0f172a}.rpt-live-dot{width:6px;height:6px;border-radius:50%;background:#10b981;box-shadow:0 0 0 2px #10b98133}.rpt-preview-hint{font-size:.675rem;color:#64748b}.rpt-preview-runtime-wrapper{flex:1;min-height:0;overscroll-behavior:contain;overflow-y:auto;overflow-x:hidden;padding:10px 12px;background:#f8fafc;box-sizing:border-box}.rpt-preview-runtime-wrapper::-webkit-scrollbar,.rpt-settings-column::-webkit-scrollbar{width:5px}.rpt-preview-runtime-wrapper::-webkit-scrollbar-thumb,.rpt-settings-column::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:9999px}.rpt-preview-runtime-wrapper::-webkit-scrollbar-thumb:hover,.rpt-settings-column::-webkit-scrollbar-thumb:hover{background:#94a3b8}.rpt-preview-card-frame{background:#fff;border:1px solid #e2e8f0;border-radius:8px;box-shadow:0 1px 3px #0f172a0a;padding:10px;min-height:100%;box-sizing:border-box;overflow-x:hidden}@media (max-width: 780px){.rpt-settings-column{overflow-y:visible}.rpt-preview-runtime-wrapper{flex:none;max-height:320px}.rpt-preview-hint{display:none}}.rpt-dialog-footer{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between;padding:8px 16px;background:#f8fafc;border-top:1px solid #e2e8f0;flex-shrink:0;box-sizing:border-box}.rpt-saved-pill{display:inline-flex;align-items:center;gap:4px;font-size:.7rem;font-weight:600;color:#15803d;background:#dcfce7;padding:2px 7px;border-radius:9999px}.rpt-footer-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-left:auto}.rpt-btn{display:inline-flex;align-items:center;gap:5px;padding:5px 13px;font-size:.75rem;font-weight:600;border-radius:6px;cursor:pointer;transition:all .12s ease;border:1px solid transparent;box-sizing:border-box;line-height:1.4}.rpt-btn-secondary{background:#fff;border-color:#cbd5e1;color:#334155}.rpt-btn-secondary:hover{background:#f1f5f9;color:#0f172a;border-color:#94a3b8}.rpt-btn-primary{background:linear-gradient(135deg,#2563eb,#1d4ed8);color:#fff;box-shadow:0 1px 2px #2563eb33}.rpt-btn-primary:hover{background:linear-gradient(135deg,#1d4ed8,#1e40af);box-shadow:0 2px 4px #2563eb40}\n"] }]
|
|
13107
|
+
`, styles: ["@keyframes rptSpin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.rpt-spin{display:inline-block;animation:rptSpin 1s linear infinite}@keyframes rptOverlayIn{0%{opacity:0}to{opacity:1}}@keyframes rptCardIn{0%{opacity:0;transform:scale(.96) translateY(6px)}to{opacity:1;transform:scale(1) translateY(0)}}.rpt-id-actions{display:flex;align-items:center;gap:6px;margin-top:4px}.rpt-id-action-btn{display:inline-flex;align-items:center;gap:5px;height:25px;padding:0 9px;font-size:.7rem;font-weight:500;color:#334155;background:#fff;border:1px solid #cbd5e1;border-radius:5px;cursor:pointer;transition:all .15s ease;box-sizing:border-box;white-space:nowrap;font-family:inherit;line-height:1}.rpt-id-action-btn:hover:not(:disabled){background:#f1f5f9;color:#0f172a;border-color:#94a3b8;box-shadow:0 1px 2px #0f172a0d}.rpt-id-action-btn:active:not(:disabled){background:#e2e8f0}.rpt-id-action-btn:disabled{opacity:.5;cursor:not-allowed}.rpt-id-action-btn.is-checking{color:#2563eb;border-color:#93c5fd;background:#eff6ff}.rpt-id-status{display:inline-flex;align-items:center;gap:5px;font-size:.72rem;line-height:1.3;margin:4px 0 0;padding:3px 8px;border-radius:5px;transition:all .15s ease;width:fit-content;max-width:100%;box-sizing:border-box}.rpt-id-status:empty{display:none}.rpt-status-icon{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}.rpt-id-status-success{color:#15803d;background:#f0fdf4;border:1px solid #bbf7d0}.rpt-id-status-warning{color:#b45309;background:#fffbeb;border:1px solid #fef3c7}.rpt-id-status-error{color:#b91c1c;background:#fef2f2;border:1px solid #fecaca}.rpt-id-status-checking{color:#1d4ed8;background:#eff6ff;border:1px solid #dbeafe}.rpt-update-overlay{position:absolute;inset:0;z-index:50;background:#0f172a73;backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px);display:flex;align-items:center;justify-content:center;padding:16px;box-sizing:border-box;animation:rptOverlayIn .16s cubic-bezier(.16,1,.3,1) forwards}.rpt-update-card{box-sizing:border-box;width:min(440px,100%);max-height:94%;background:#fff;border-radius:10px;box-shadow:0 20px 45px -8px #0f172a52,0 0 0 1px #0f172a14;border:1px solid #e2e8f0;overflow:hidden;display:flex;flex-direction:column;animation:rptCardIn .18s cubic-bezier(.16,1,.3,1) forwards}.rpt-update-card-header{display:flex;align-items:center;gap:12px;padding:12px 16px;background:#fffbeb;border-bottom:1px solid #fef3c7;flex-shrink:0}.rpt-update-icon-badge{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:8px;background:#fef3c7;border:1px solid #fde68a;color:#b45309;flex-shrink:0}.rpt-update-header-info{flex:1;min-width:0}.rpt-update-title{margin:0;font-size:.925rem;font-weight:700;color:#92400e;line-height:1.25}.rpt-update-subtitle{font-size:.7rem;color:#b45309;margin-top:1px;display:block}.rpt-update-card-body{padding:14px 16px;display:flex;flex-direction:column;gap:11px;overflow-y:auto;box-sizing:border-box}.rpt-update-prompt{margin:0;font-size:.8rem;line-height:1.45;color:#334155}.rpt-conflict-card{background:#f8fafc;border:1px solid #e2e8f0;border-radius:7px;padding:9px 12px;display:flex;flex-direction:column;gap:7px}.rpt-conflict-row{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:.735rem}.rpt-conflict-label{color:#64748b;font-weight:500;flex-shrink:0}.rpt-conflict-code{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.72rem;background:#e2e8f0;color:#0f172a;padding:2px 6px;border-radius:4px;font-weight:600}.rpt-conflict-name{font-weight:600;color:#0f172a;text-align:right;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rpt-conflict-badge{font-size:.68rem;font-weight:600;padding:1px 7px;border-radius:9999px;background:#e0f2fe;color:#0369a1;border:1px solid #bae6fd}.rpt-overwrite-notice{display:flex;align-items:flex-start;gap:7px;font-size:.715rem;color:#b45309;background:#fffbeb;border:1px solid #fef3c7;padding:7px 10px;border-radius:6px;line-height:1.35}.rpt-overwrite-notice rpt-icon{flex-shrink:0;margin-top:1px}.rpt-update-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:10px 16px;background:#f8fafc;border-top:1px solid #e2e8f0;flex-shrink:0}.rpt-btn-confirm-save{background:linear-gradient(135deg,#2563eb,#1d4ed8);color:#fff;box-shadow:0 1px 2px #2563eb33}.rpt-btn-confirm-save:hover{background:linear-gradient(135deg,#1d4ed8,#1e40af);box-shadow:0 2px 4px #2563eb40}#rpt-dlg-id-error:empty,#rpt-dlg-id-status:empty{display:none}.rpt-dialog-footer,.rpt-footer-actions{flex-wrap:wrap;gap:8px}.rpt-btn,.rpt-dialog-close{min-height:36px}@media (max-width: 640px){.rpt-btn,.rpt-dialog-close{min-height:44px;min-width:44px}.rpt-footer-left{width:100%}}.rpt-field-error{color:#b91c1c;font-size:.8rem;margin:4px 0}button:disabled{opacity:.6;cursor:wait}textarea.rpt-input{resize:vertical;min-height:56px}.rpt-footer-left{min-width:0;padding-right:12px}:host{display:flex;width:100%;min-width:0;min-height:0;max-height:inherit;align-items:center;justify-content:center;font-family:var(--rpt-font-family, system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, sans-serif);color:#0f172a;box-sizing:border-box}.rpt-dialog-shell{position:relative;display:flex;flex-direction:column;width:100%;max-width:100%;min-height:0;max-height:min(540px,calc(100vh - 32px));max-height:min(540px,calc(100dvh - 32px));background:#fff;border-radius:10px;box-shadow:0 20px 40px -12px #0f172a47,0 0 0 1px #0f172a14;overflow:hidden;box-sizing:border-box;animation:rptDialogIn .18s cubic-bezier(.16,1,.3,1) forwards}@keyframes rptDialogIn{0%{opacity:0;transform:scale(.97) translateY(4px)}to{opacity:1;transform:scale(1) translateY(0)}}.rpt-dialog-header{display:flex;align-items:center;justify-content:space-between;padding:10px 16px;border-bottom:1px solid #e2e8f0;background:#f8fafc;flex-shrink:0;box-sizing:border-box}.rpt-header-left{display:flex;align-items:center;gap:10px}.rpt-review-icon-badge{display:flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;background:#dbeafe;border:1px solid #a7f3d0;color:#1d4ed8;flex-shrink:0}.rpt-dialog-title{margin:0;font-size:.925rem;font-weight:700;color:#0f172a;line-height:1.25}.rpt-dialog-subtitle{margin:1px 0 0;font-size:.725rem;color:#64748b;line-height:1.2}.rpt-dialog-close{background:transparent;border:none;color:#94a3b8;cursor:pointer;padding:4px;border-radius:5px;display:flex;align-items:center;justify-content:center;transition:all .12s ease}.rpt-dialog-close:hover{background:#e2e8f0;color:#0f172a}.rpt-dialog-body{display:grid;grid-template-columns:280px minmax(0,1fr);grid-template-rows:minmax(0,1fr);flex:1;min-height:0;min-width:0;overflow:hidden;box-sizing:border-box}@media (max-width: 780px){.rpt-dialog-body{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto;overflow-y:auto;overscroll-behavior:contain}}.rpt-settings-column{display:flex;flex-direction:column;gap:9px;padding:12px 14px;background:#f8fafc;border-right:1px solid #e2e8f0;overflow-y:auto;min-height:0;overscroll-behavior:contain;box-sizing:border-box}.rpt-section-header{font-size:.675rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:#475569;margin-bottom:1px}.rpt-form-group{display:flex;flex-direction:column;gap:3px}.rpt-label{font-size:.725rem;font-weight:600;color:#334155}.rpt-input{width:100%;box-sizing:border-box;height:28px;min-height:28px;max-height:28px;margin:0;padding:0 8px;font-size:.775rem;line-height:1.25;border:1px solid #cbd5e1;border-radius:5px;background:#fff;color:#0f172a;outline:none;box-shadow:none;transition:all .12s ease}.rpt-input::placeholder{color:#94a3b8;font-weight:400}.rpt-input:hover:not(:disabled){border-color:#94a3b8}.rpt-input:focus{border-color:#2563eb;box-shadow:0 0 0 2px #2563eb24}textarea.rpt-input{height:auto;min-height:52px;max-height:120px;padding:5px 8px;line-height:1.4;resize:vertical}.rpt-slug-input-wrapper{display:flex;align-items:center;background:#fff;border:1px solid #cbd5e1;border-radius:5px;height:28px;min-height:28px;max-height:28px;overflow:hidden;box-sizing:border-box;transition:all .12s ease}.rpt-slug-input-wrapper:hover{border-color:#94a3b8}.rpt-slug-input-wrapper:focus-within{border-color:#2563eb;box-shadow:0 0 0 2px #2563eb24}.rpt-slug-prefix{padding:0 0 0 8px;font-size:.725rem;color:#64748b;background:transparent;-webkit-user-select:none;user-select:none;line-height:26px;flex-shrink:0}.rpt-slug-field{border:none!important;padding-left:2px!important;box-shadow:none!important;height:100%!important;min-height:0!important;max-height:none!important}.rpt-help-text{font-size:.65rem;color:#64748b;line-height:1.2}.rpt-publish-card{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:6px 10px;background:#fff;border:1px solid #e2e8f0;border-radius:6px;box-sizing:border-box}.rpt-publish-text{display:flex;flex-direction:column;gap:1px}.rpt-publish-title{font-size:.75rem;font-weight:600;color:#0f172a}.rpt-publish-desc{font-size:.65rem;color:#64748b;line-height:1.2}.rpt-switch{position:relative;display:inline-block;width:32px;height:18px;flex-shrink:0}.rpt-switch input{opacity:0;width:0;height:0}.rpt-slider{position:absolute;cursor:pointer;inset:0;background-color:#cbd5e1;transition:.18s;border-radius:9999px}.rpt-slider:before{position:absolute;content:\"\";height:14px;width:14px;left:2px;bottom:2px;background-color:#fff;transition:.18s;border-radius:50%}input:checked+.rpt-slider{background-color:#2563eb}input:checked+.rpt-slider:before{transform:translate(14px)}.rpt-share-card{padding:6px 9px;background:#eff6ff;border:1px solid #bfdbfe;border-radius:6px;box-sizing:border-box}.rpt-share-url-row{display:flex;align-items:center;gap:6px;overflow:hidden}.rpt-share-label{font-size:.675rem;font-weight:600;color:#1e40af;flex-shrink:0}.rpt-share-code{flex:1;font-size:.6875rem;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;color:#1e3a8a;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rpt-btn-copy{display:inline-flex;align-items:center;gap:3px;padding:2px 6px;background:#fff;border:1px solid #93c5fd;border-radius:4px;font-size:.65rem;font-weight:600;color:#2563eb;cursor:pointer;flex-shrink:0;transition:all .12s ease;height:20px}.rpt-btn-copy:hover{background:#dbeafe}.rpt-preview-column{display:flex;flex-direction:column;background:#fff;overflow:hidden;min-width:0;box-sizing:border-box}.rpt-preview-header{display:flex;align-items:center;justify-content:space-between;padding:8px 14px;border-bottom:1px solid #e2e8f0;background:#fff;flex-shrink:0;box-sizing:border-box}.rpt-preview-badge{display:flex;align-items:center;gap:6px;font-size:.725rem;font-weight:600;color:#0f172a}.rpt-live-dot{width:6px;height:6px;border-radius:50%;background:#10b981;box-shadow:0 0 0 2px #10b98133}.rpt-preview-hint{font-size:.675rem;color:#64748b}.rpt-preview-runtime-wrapper{flex:1;min-height:0;overscroll-behavior:contain;overflow-y:auto;overflow-x:hidden;padding:10px 12px;background:#f8fafc;box-sizing:border-box}.rpt-preview-runtime-wrapper::-webkit-scrollbar,.rpt-settings-column::-webkit-scrollbar{width:5px}.rpt-preview-runtime-wrapper::-webkit-scrollbar-thumb,.rpt-settings-column::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:9999px}.rpt-preview-runtime-wrapper::-webkit-scrollbar-thumb:hover,.rpt-settings-column::-webkit-scrollbar-thumb:hover{background:#94a3b8}.rpt-preview-card-frame{background:#fff;border:1px solid #e2e8f0;border-radius:8px;box-shadow:0 1px 3px #0f172a0a;padding:10px;min-height:100%;box-sizing:border-box;overflow-x:hidden}@media (max-width: 780px){.rpt-settings-column{overflow-y:visible}.rpt-preview-runtime-wrapper{flex:none;max-height:320px}.rpt-preview-hint{display:none}}.rpt-dialog-footer{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between;padding:8px 16px;background:#f8fafc;border-top:1px solid #e2e8f0;flex-shrink:0;box-sizing:border-box}.rpt-saved-pill{display:inline-flex;align-items:center;gap:4px;font-size:.7rem;font-weight:600;color:#15803d;background:#dcfce7;padding:2px 7px;border-radius:9999px}.rpt-footer-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-left:auto}.rpt-btn{display:inline-flex;align-items:center;gap:5px;padding:5px 13px;font-size:.75rem;font-weight:600;border-radius:6px;cursor:pointer;transition:all .12s ease;border:1px solid transparent;box-sizing:border-box;line-height:1.4}.rpt-btn-secondary{background:#fff;border-color:#cbd5e1;color:#334155}.rpt-btn-secondary:hover{background:#f1f5f9;color:#0f172a;border-color:#94a3b8}.rpt-btn-primary{background:linear-gradient(135deg,#2563eb,#1d4ed8);color:#fff;box-shadow:0 1px 2px #2563eb33}.rpt-btn-primary:hover{background:linear-gradient(135deg,#1d4ed8,#1e40af);box-shadow:0 2px 4px #2563eb40}\n"] }]
|
|
13045
13108
|
}] });
|
|
13046
13109
|
|
|
13047
13110
|
/** Private state owned by one designer; never mutates application providers. */
|
|
@@ -13135,6 +13198,8 @@ function scopedAdapter(token, type, keys, fallback) {
|
|
|
13135
13198
|
const builtIn = parent instanceof type || [HttpReportDataSourceAdapter, HttpReportPersistenceAdapter,
|
|
13136
13199
|
HttpReportLookupAdapter, HttpReportSchemaDiscoveryAdapter, HttpMasterDataAdapter].some(adapter => parent instanceof adapter);
|
|
13137
13200
|
const target = overridden || !parent || (scope.isConfigured() && builtIn) ? scope.adapter(type) : parent;
|
|
13201
|
+
if (property === 'supportsMenuRouteSave' && typeof target[property] !== 'function')
|
|
13202
|
+
return false;
|
|
13138
13203
|
if (property === 'clearCache' && typeof target[property] !== 'function')
|
|
13139
13204
|
return;
|
|
13140
13205
|
if ((property === 'checkId' || property === 'inspectId') && typeof target[property] !== 'function') {
|
|
@@ -13158,7 +13223,7 @@ const DESIGNER_ENDPOINT_PROVIDERS = [
|
|
|
13158
13223
|
scopedAdapter(ReportDataSourceAdapter, EndpointDataSourceAdapter, ['executeEndpoint'], { execute: unavailable }),
|
|
13159
13224
|
scopedAdapter(ReportPersistenceAdapter, EndpointPersistenceAdapter, (scope, parent) => scope.hasOverride(['reportsEndpoint']) || (parent instanceof HttpReportPersistenceAdapter && scope.usesDefaultStorageBase() &&
|
|
13160
13225
|
scope.hasOverride(['executeEndpoint', 'spEndpoint', 'tablesEndpoint', 'lookupEndpoint', 'apisEndpoint'])), {
|
|
13161
|
-
inspectId: unavailable, checkId: unavailable, load: unavailable, save: unavailable, list: () => of([]), delete: unavailable, publish: unavailable,
|
|
13226
|
+
supportsMenuRouteSave: () => false, inspectId: unavailable, checkId: unavailable, load: unavailable, save: unavailable, list: () => of([]), delete: unavailable, publish: unavailable,
|
|
13162
13227
|
}),
|
|
13163
13228
|
scopedAdapter(ReportSchemaDiscoveryAdapter, EndpointSchemaDiscoveryAdapter, ['spEndpoint', 'tablesEndpoint'], {
|
|
13164
13229
|
clearCache: () => { }, getEntities: () => of([]), getColumns: () => of([]), getParameters: () => of([]),
|