bways-report 0.2.7 → 0.2.8
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/esm2022/lib/features/designer/components/dialogs/report-saved-dialog.component.mjs +13 -11
- package/esm2022/lib/features/designer/components/menu-selector/report-menu-selector.component.mjs +3 -3
- package/fesm2022/bways-report.mjs +14 -12
- package/fesm2022/bways-report.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -11919,11 +11919,11 @@ class ReportMenuSelectorComponent {
|
|
|
11919
11919
|
this.list()?.nativeElement.querySelectorAll('[role="treeitem"]')[index]?.scrollIntoView({ block: 'nearest' });
|
|
11920
11920
|
}
|
|
11921
11921
|
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 });
|
|
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]=\"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
11923
|
}
|
|
11924
11924
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ReportMenuSelectorComponent, decorators: [{
|
|
11925
11925
|
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"] }]
|
|
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]=\"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
11927
|
}], ctorParameters: () => [] });
|
|
11928
11928
|
|
|
11929
11929
|
/**
|
|
@@ -12526,15 +12526,15 @@ class ReportSavedDialogComponent {
|
|
|
12526
12526
|
[attr.aria-describedby]="nameError() ? 'rpt-dlg-name-error' : null"
|
|
12527
12527
|
placeholder="e.g. Sales Register"
|
|
12528
12528
|
/>
|
|
12529
|
+
@if (nameError()) {
|
|
12530
|
+
<p id="rpt-dlg-name-error" class="rpt-field-error" role="alert">{{ nameError() }}</p>
|
|
12531
|
+
}
|
|
12529
12532
|
</div>
|
|
12530
12533
|
|
|
12531
|
-
@if (nameError()) {
|
|
12532
|
-
<p id="rpt-dlg-name-error" class="rpt-field-error" role="alert">{{ nameError() }}</p>
|
|
12533
|
-
}
|
|
12534
|
-
|
|
12535
12534
|
<div class="rpt-form-group">
|
|
12536
12535
|
<label class="rpt-label" for="rpt-dlg-description">Description</label>
|
|
12537
12536
|
<textarea id="rpt-dlg-description" class="rpt-input" rows="2"
|
|
12537
|
+
placeholder="Brief summary of this report..."
|
|
12538
12538
|
[ngModel]="description()" (ngModelChange)="description.set($event)"
|
|
12539
12539
|
[ngModelOptions]="{standalone: true}" [disabled]="isSaving()"></textarea>
|
|
12540
12540
|
</div>
|
|
@@ -12566,6 +12566,7 @@ class ReportSavedDialogComponent {
|
|
|
12566
12566
|
<div class="rpt-form-group">
|
|
12567
12567
|
<label class="rpt-label" for="rpt-dlg-category">Category</label>
|
|
12568
12568
|
<input id="rpt-dlg-category" class="rpt-input" type="text"
|
|
12569
|
+
placeholder="e.g. Sales, Inventory, Finance"
|
|
12569
12570
|
[ngModel]="category()" (ngModelChange)="category.set($event)"
|
|
12570
12571
|
[ngModelOptions]="{standalone: true}" [disabled]="isSaving()" />
|
|
12571
12572
|
</div>
|
|
@@ -12729,7 +12730,7 @@ class ReportSavedDialogComponent {
|
|
|
12729
12730
|
</div>
|
|
12730
12731
|
}
|
|
12731
12732
|
</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 });
|
|
12733
|
+
`, 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
12734
|
}
|
|
12734
12735
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ReportSavedDialogComponent, decorators: [{
|
|
12735
12736
|
type: Component,
|
|
@@ -12838,15 +12839,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
12838
12839
|
[attr.aria-describedby]="nameError() ? 'rpt-dlg-name-error' : null"
|
|
12839
12840
|
placeholder="e.g. Sales Register"
|
|
12840
12841
|
/>
|
|
12842
|
+
@if (nameError()) {
|
|
12843
|
+
<p id="rpt-dlg-name-error" class="rpt-field-error" role="alert">{{ nameError() }}</p>
|
|
12844
|
+
}
|
|
12841
12845
|
</div>
|
|
12842
12846
|
|
|
12843
|
-
@if (nameError()) {
|
|
12844
|
-
<p id="rpt-dlg-name-error" class="rpt-field-error" role="alert">{{ nameError() }}</p>
|
|
12845
|
-
}
|
|
12846
|
-
|
|
12847
12847
|
<div class="rpt-form-group">
|
|
12848
12848
|
<label class="rpt-label" for="rpt-dlg-description">Description</label>
|
|
12849
12849
|
<textarea id="rpt-dlg-description" class="rpt-input" rows="2"
|
|
12850
|
+
placeholder="Brief summary of this report..."
|
|
12850
12851
|
[ngModel]="description()" (ngModelChange)="description.set($event)"
|
|
12851
12852
|
[ngModelOptions]="{standalone: true}" [disabled]="isSaving()"></textarea>
|
|
12852
12853
|
</div>
|
|
@@ -12878,6 +12879,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
12878
12879
|
<div class="rpt-form-group">
|
|
12879
12880
|
<label class="rpt-label" for="rpt-dlg-category">Category</label>
|
|
12880
12881
|
<input id="rpt-dlg-category" class="rpt-input" type="text"
|
|
12882
|
+
placeholder="e.g. Sales, Inventory, Finance"
|
|
12881
12883
|
[ngModel]="category()" (ngModelChange)="category.set($event)"
|
|
12882
12884
|
[ngModelOptions]="{standalone: true}" [disabled]="isSaving()" />
|
|
12883
12885
|
</div>
|
|
@@ -13041,7 +13043,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
13041
13043
|
</div>
|
|
13042
13044
|
}
|
|
13043
13045
|
</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"] }]
|
|
13046
|
+
`, 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
13047
|
}] });
|
|
13046
13048
|
|
|
13047
13049
|
/** Private state owned by one designer; never mutates application providers. */
|