@fluxhub/fluxhub-lib 19.0.185 → 19.0.187
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.
|
@@ -15565,7 +15565,7 @@ class FHIconPickerComponent {
|
|
|
15565
15565
|
</div>
|
|
15566
15566
|
</ng-template>
|
|
15567
15567
|
</div>
|
|
15568
|
-
`, isInline: true, styles: [":host{display:block}.fh-icon-picker{display:flex;flex-direction:column;gap:4px}.fh-ip-label{font-size:12px;font-weight:600;color:#5b6168}.fh-ip-req{color:#d32f2f}.fh-ip-trigger-row{display:flex;align-items:stretch;gap:6px}.fh-ip-trigger{flex:1 1 auto;display:flex;align-items:center;gap:10px;min-height:40px;padding:6px 12px;cursor:pointer;background:#fff;border:1.5px solid #d7dbe0;border-radius:8px;text-align:left;transition:border-color .15s ease,box-shadow .15s ease;font-size:14px;color:#161212;overflow:hidden}.fh-ip-trigger:hover:not(.disabled){border-color:#9aa1a9}.fh-ip-trigger.open,.fh-ip-trigger:focus-visible{outline:none;border-color:#2196f3;box-shadow:0 0 0 3px #2196f326}.fh-ip-trigger.open .fh-ip-caret{transform:rotate(180deg)}.fh-ip-trigger.disabled{background:#f4f5f6;color:#9aa1a9;cursor:not-allowed;opacity:.8}.fh-ip-trigger.error{border-color:#d32f2f}.fh-ip-preview{flex:0 0 auto;width:28px;height:28px;display:flex;align-items:center;justify-content:center;border-radius:6px;background:#eef2f6;font-size:16px;color:#2196f3}.fh-ip-preview.empty{color:#b6bcc3;background:#f4f5f6}.fh-ip-placeholder-icon{font-size:14px}.fh-ip-text{flex:1 1 auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-family:monospace;font-size:13px}.fh-ip-text.muted{color:#9aa1a9;font-family:inherit;font-style:italic}.fh-ip-caret{flex:0 0 auto;color:#9aa1a9;font-size:12px;transition:transform .2s ease}.fh-ip-clear{flex:0 0 auto;width:40px;border:1.5px solid #d7dbe0;border-radius:8px;background:#fff;cursor:pointer;color:#6b7178;transition:all .15s ease}.fh-ip-clear:hover{border-color:#d32f2f;color:#d32f2f;background:#fff5f5}.fh-ip-error{font-size:12px;color:#d32f2f}.fh-ip-panel{background:#fff;border:1px solid #e0e3e7;border-radius:12px;box-shadow:0 12px 32px #0000002e;overflow:hidden;display:flex;flex-direction:column;max-height:460px}.fh-ip-toolbar{display:flex;align-items:center;gap:8px;padding:10px 12px;border-bottom:1px solid #eef0f2;flex:0 0 auto;flex-wrap:wrap}.fh-ip-search{flex:1 1 150px;display:flex;align-items:center;gap:8px;background:#f4f5f6;border-radius:8px;padding:6px 10px;color:#6b7178}.fh-ip-search input{flex:1 1 auto;border:none;background:transparent;outline:none;font-size:14px;color:#161212;min-width:0}.fh-ip-search-clear{cursor:pointer}.fh-ip-search-clear:hover{color:#d32f2f}.fh-ip-tabs{display:flex;gap:4px;flex:0 0 auto}.fh-ip-tabs button{border:1px solid #d7dbe0;background:#fff;color:#5b6168;padding:6px 11px;border-radius:8px;cursor:pointer;font-size:12px;font-weight:600;transition:all .15s ease}.fh-ip-tabs button:hover{border-color:#9aa1a9}.fh-ip-tabs button.active{background:#2196f3;border-color:#2196f3;color:#fff}.fh-ip-view{display:flex;gap:2px;flex:0 0 auto}.fh-ip-view button{width:32px;height:32px;border:1px solid #d7dbe0;background:#fff;color:#8a9098;cursor:pointer;border-radius:8px;transition:all .15s ease}.fh-ip-view button:hover{border-color:#9aa1a9;color:#5b6168}.fh-ip-view button.active{background:#eef6fe;border-color:#2196f3;color:#2196f3}.fh-ip-recent{padding:8px 12px 4px;border-bottom:1px dashed #eef0f2;flex:0 0 auto}.fh-ip-section-lbl{font-size:10px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#9aa1a9}.fh-ip-recent-row{display:flex;gap:4px;margin-top:6px;flex-wrap:wrap}.fh-ip-recent-cell{width:34px;height:34px;display:flex;align-items:center;justify-content:center;border:1px solid transparent;border-radius:8px;background:#f4f5f6;cursor:pointer;color:#3a3f45;font-size:16px;transition:all .12s ease}.fh-ip-recent-cell:hover{background:#eef6fe;border-color:#bfe0fb}.fh-ip-recent-cell.selected{background:#e3f2fd;border-color:#2196f3;color:#1565c0}.fh-ip-grid{flex:1 1 auto;overflow-y:auto;overflow-x:hidden;padding:10px;display:grid;grid-template-columns:repeat(auto-fill,minmax(82px,1fr));gap:6px;align-content:start;scroll-behavior:smooth}.fh-ip-cell{display:flex;flex-direction:column;align-items:center;gap:6px;padding:10px 4px
|
|
15568
|
+
`, isInline: true, styles: [":host{display:block}.fh-icon-picker{display:flex;flex-direction:column;gap:4px}.fh-ip-label{font-size:12px;font-weight:600;color:#5b6168}.fh-ip-req{color:#d32f2f}.fh-ip-trigger-row{display:flex;align-items:stretch;gap:6px}.fh-ip-trigger{flex:1 1 auto;display:flex;align-items:center;gap:10px;min-height:40px;padding:6px 12px;cursor:pointer;background:#fff;border:1.5px solid #d7dbe0;border-radius:8px;text-align:left;transition:border-color .15s ease,box-shadow .15s ease;font-size:14px;color:#161212;overflow:hidden}.fh-ip-trigger:hover:not(.disabled){border-color:#9aa1a9}.fh-ip-trigger.open,.fh-ip-trigger:focus-visible{outline:none;border-color:#2196f3;box-shadow:0 0 0 3px #2196f326}.fh-ip-trigger.open .fh-ip-caret{transform:rotate(180deg)}.fh-ip-trigger.disabled{background:#f4f5f6;color:#9aa1a9;cursor:not-allowed;opacity:.8}.fh-ip-trigger.error{border-color:#d32f2f}.fh-ip-preview{flex:0 0 auto;width:28px;height:28px;display:flex;align-items:center;justify-content:center;border-radius:6px;background:#eef2f6;font-size:16px;color:#2196f3}.fh-ip-preview.empty{color:#b6bcc3;background:#f4f5f6}.fh-ip-placeholder-icon{font-size:14px}.fh-ip-text{flex:1 1 auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-family:monospace;font-size:13px}.fh-ip-text.muted{color:#9aa1a9;font-family:inherit;font-style:italic}.fh-ip-caret{flex:0 0 auto;color:#9aa1a9;font-size:12px;transition:transform .2s ease}.fh-ip-clear{flex:0 0 auto;width:40px;border:1.5px solid #d7dbe0;border-radius:8px;background:#fff;cursor:pointer;color:#6b7178;transition:all .15s ease}.fh-ip-clear:hover{border-color:#d32f2f;color:#d32f2f;background:#fff5f5}.fh-ip-error{font-size:12px;color:#d32f2f}.fh-ip-panel{background:#fff;border:1px solid #e0e3e7;border-radius:12px;box-shadow:0 12px 32px #0000002e;overflow:hidden;display:flex;flex-direction:column;max-height:460px}.fh-ip-toolbar{display:flex;align-items:center;gap:8px;padding:10px 12px;border-bottom:1px solid #eef0f2;flex:0 0 auto;flex-wrap:wrap}.fh-ip-search{flex:1 1 150px;display:flex;align-items:center;gap:8px;background:#f4f5f6;border-radius:8px;padding:6px 10px;color:#6b7178}.fh-ip-search input{flex:1 1 auto;border:none;background:transparent;outline:none;font-size:14px;color:#161212;min-width:0}.fh-ip-search-clear{cursor:pointer}.fh-ip-search-clear:hover{color:#d32f2f}.fh-ip-tabs{display:flex;gap:4px;flex:0 0 auto}.fh-ip-tabs button{border:1px solid #d7dbe0;background:#fff;color:#5b6168;padding:6px 11px;border-radius:8px;cursor:pointer;font-size:12px;font-weight:600;transition:all .15s ease}.fh-ip-tabs button:hover{border-color:#9aa1a9}.fh-ip-tabs button.active{background:#2196f3;border-color:#2196f3;color:#fff}.fh-ip-view{display:flex;gap:2px;flex:0 0 auto}.fh-ip-view button{width:32px;height:32px;border:1px solid #d7dbe0;background:#fff;color:#8a9098;cursor:pointer;border-radius:8px;transition:all .15s ease}.fh-ip-view button:hover{border-color:#9aa1a9;color:#5b6168}.fh-ip-view button.active{background:#eef6fe;border-color:#2196f3;color:#2196f3}.fh-ip-recent{padding:8px 12px 4px;border-bottom:1px dashed #eef0f2;flex:0 0 auto}.fh-ip-section-lbl{font-size:10px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#9aa1a9}.fh-ip-recent-row{display:flex;gap:4px;margin-top:6px;flex-wrap:wrap}.fh-ip-recent-cell{width:34px;height:34px;display:flex;align-items:center;justify-content:center;border:1px solid transparent;border-radius:8px;background:#f4f5f6;cursor:pointer;color:#3a3f45;font-size:16px;transition:all .12s ease;line-height:1;box-sizing:border-box}.fh-ip-recent-cell i{line-height:1}.fh-ip-recent-cell:hover{background:#eef6fe;border-color:#bfe0fb}.fh-ip-recent-cell.selected{background:#e3f2fd;border-color:#2196f3;color:#1565c0}.fh-ip-grid{flex:1 1 auto;overflow-y:auto;overflow-x:hidden;padding:10px;display:grid;grid-template-columns:repeat(auto-fill,minmax(82px,1fr));gap:6px;align-content:start;scroll-behavior:smooth}.fh-ip-cell{display:flex;flex-direction:column;align-items:center;gap:6px;padding:10px 4px 8px;border:1px solid transparent;border-radius:8px;background:transparent;cursor:pointer;transition:all .12s ease;color:#3a3f45;min-height:66px;box-sizing:border-box}.fh-ip-cell i{font-size:22px;line-height:1}.fh-ip-cell:hover,.fh-ip-cell.highlight{background:#eef6fe;border-color:#bfe0fb}.fh-ip-cell.selected{background:#e3f2fd;border-color:#2196f3;color:#1565c0}.fh-ip-cell.highlight{box-shadow:0 0 0 2px #2196f340}.fh-ip-cell-name{font-size:10px;color:#8a9098;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.fh-ip-cell.selected .fh-ip-cell-name{color:#1976d2}.fh-ip-list{flex:1 1 auto;overflow-y:auto;overflow-x:hidden;padding:6px;display:flex;flex-direction:column;scroll-behavior:smooth}.fh-ip-row{display:flex;align-items:center;gap:12px;width:100%;padding:8px 12px;border:1px solid transparent;border-radius:8px;background:transparent;cursor:pointer;transition:all .1s ease;color:#3a3f45;text-align:left}.fh-ip-row-ico{flex:0 0 auto;width:26px;height:24px;font-size:18px;color:#5b6168;display:flex;align-items:center;justify-content:center;line-height:1}.fh-ip-row-name{flex:1 1 auto;font-family:monospace;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.fh-ip-row-check{flex:0 0 auto;color:#2196f3}.fh-ip-row:hover,.fh-ip-row.highlight{background:#eef6fe}.fh-ip-row.selected{background:#e3f2fd;color:#1565c0}.fh-ip-row.selected .fh-ip-row-ico{color:#1565c0}.fh-ip-empty{grid-column:1 / -1;display:flex;flex-direction:column;align-items:center;gap:10px;padding:36px 0;color:#9aa1a9}.fh-ip-empty i{font-size:30px}.fh-ip-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 12px;border-top:1px solid #eef0f2;font-size:11px;color:#9aa1a9;flex:0 0 auto}.fh-ip-count{font-weight:600}.fh-ip-hint{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.fh-ip-hint kbd{background:#f0f1f3;border:1px solid #dcdfe3;border-radius:4px;padding:0 4px;font-family:monospace;font-size:10px;color:#6b7178}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i5.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i5$1.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: i5$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i5$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: OverlayModule }, { kind: "directive", type: i3$4.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: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i3.TranslatePipe, name: "translate" }] });
|
|
15569
15569
|
}
|
|
15570
15570
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: FHIconPickerComponent, decorators: [{
|
|
15571
15571
|
type: Component,
|
|
@@ -15698,7 +15698,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImpo
|
|
|
15698
15698
|
</div>
|
|
15699
15699
|
</ng-template>
|
|
15700
15700
|
</div>
|
|
15701
|
-
`, styles: [":host{display:block}.fh-icon-picker{display:flex;flex-direction:column;gap:4px}.fh-ip-label{font-size:12px;font-weight:600;color:#5b6168}.fh-ip-req{color:#d32f2f}.fh-ip-trigger-row{display:flex;align-items:stretch;gap:6px}.fh-ip-trigger{flex:1 1 auto;display:flex;align-items:center;gap:10px;min-height:40px;padding:6px 12px;cursor:pointer;background:#fff;border:1.5px solid #d7dbe0;border-radius:8px;text-align:left;transition:border-color .15s ease,box-shadow .15s ease;font-size:14px;color:#161212;overflow:hidden}.fh-ip-trigger:hover:not(.disabled){border-color:#9aa1a9}.fh-ip-trigger.open,.fh-ip-trigger:focus-visible{outline:none;border-color:#2196f3;box-shadow:0 0 0 3px #2196f326}.fh-ip-trigger.open .fh-ip-caret{transform:rotate(180deg)}.fh-ip-trigger.disabled{background:#f4f5f6;color:#9aa1a9;cursor:not-allowed;opacity:.8}.fh-ip-trigger.error{border-color:#d32f2f}.fh-ip-preview{flex:0 0 auto;width:28px;height:28px;display:flex;align-items:center;justify-content:center;border-radius:6px;background:#eef2f6;font-size:16px;color:#2196f3}.fh-ip-preview.empty{color:#b6bcc3;background:#f4f5f6}.fh-ip-placeholder-icon{font-size:14px}.fh-ip-text{flex:1 1 auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-family:monospace;font-size:13px}.fh-ip-text.muted{color:#9aa1a9;font-family:inherit;font-style:italic}.fh-ip-caret{flex:0 0 auto;color:#9aa1a9;font-size:12px;transition:transform .2s ease}.fh-ip-clear{flex:0 0 auto;width:40px;border:1.5px solid #d7dbe0;border-radius:8px;background:#fff;cursor:pointer;color:#6b7178;transition:all .15s ease}.fh-ip-clear:hover{border-color:#d32f2f;color:#d32f2f;background:#fff5f5}.fh-ip-error{font-size:12px;color:#d32f2f}.fh-ip-panel{background:#fff;border:1px solid #e0e3e7;border-radius:12px;box-shadow:0 12px 32px #0000002e;overflow:hidden;display:flex;flex-direction:column;max-height:460px}.fh-ip-toolbar{display:flex;align-items:center;gap:8px;padding:10px 12px;border-bottom:1px solid #eef0f2;flex:0 0 auto;flex-wrap:wrap}.fh-ip-search{flex:1 1 150px;display:flex;align-items:center;gap:8px;background:#f4f5f6;border-radius:8px;padding:6px 10px;color:#6b7178}.fh-ip-search input{flex:1 1 auto;border:none;background:transparent;outline:none;font-size:14px;color:#161212;min-width:0}.fh-ip-search-clear{cursor:pointer}.fh-ip-search-clear:hover{color:#d32f2f}.fh-ip-tabs{display:flex;gap:4px;flex:0 0 auto}.fh-ip-tabs button{border:1px solid #d7dbe0;background:#fff;color:#5b6168;padding:6px 11px;border-radius:8px;cursor:pointer;font-size:12px;font-weight:600;transition:all .15s ease}.fh-ip-tabs button:hover{border-color:#9aa1a9}.fh-ip-tabs button.active{background:#2196f3;border-color:#2196f3;color:#fff}.fh-ip-view{display:flex;gap:2px;flex:0 0 auto}.fh-ip-view button{width:32px;height:32px;border:1px solid #d7dbe0;background:#fff;color:#8a9098;cursor:pointer;border-radius:8px;transition:all .15s ease}.fh-ip-view button:hover{border-color:#9aa1a9;color:#5b6168}.fh-ip-view button.active{background:#eef6fe;border-color:#2196f3;color:#2196f3}.fh-ip-recent{padding:8px 12px 4px;border-bottom:1px dashed #eef0f2;flex:0 0 auto}.fh-ip-section-lbl{font-size:10px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#9aa1a9}.fh-ip-recent-row{display:flex;gap:4px;margin-top:6px;flex-wrap:wrap}.fh-ip-recent-cell{width:34px;height:34px;display:flex;align-items:center;justify-content:center;border:1px solid transparent;border-radius:8px;background:#f4f5f6;cursor:pointer;color:#3a3f45;font-size:16px;transition:all .12s ease}.fh-ip-recent-cell:hover{background:#eef6fe;border-color:#bfe0fb}.fh-ip-recent-cell.selected{background:#e3f2fd;border-color:#2196f3;color:#1565c0}.fh-ip-grid{flex:1 1 auto;overflow-y:auto;overflow-x:hidden;padding:10px;display:grid;grid-template-columns:repeat(auto-fill,minmax(82px,1fr));gap:6px;align-content:start;scroll-behavior:smooth}.fh-ip-cell{display:flex;flex-direction:column;align-items:center;gap:6px;padding:10px 4px
|
|
15701
|
+
`, styles: [":host{display:block}.fh-icon-picker{display:flex;flex-direction:column;gap:4px}.fh-ip-label{font-size:12px;font-weight:600;color:#5b6168}.fh-ip-req{color:#d32f2f}.fh-ip-trigger-row{display:flex;align-items:stretch;gap:6px}.fh-ip-trigger{flex:1 1 auto;display:flex;align-items:center;gap:10px;min-height:40px;padding:6px 12px;cursor:pointer;background:#fff;border:1.5px solid #d7dbe0;border-radius:8px;text-align:left;transition:border-color .15s ease,box-shadow .15s ease;font-size:14px;color:#161212;overflow:hidden}.fh-ip-trigger:hover:not(.disabled){border-color:#9aa1a9}.fh-ip-trigger.open,.fh-ip-trigger:focus-visible{outline:none;border-color:#2196f3;box-shadow:0 0 0 3px #2196f326}.fh-ip-trigger.open .fh-ip-caret{transform:rotate(180deg)}.fh-ip-trigger.disabled{background:#f4f5f6;color:#9aa1a9;cursor:not-allowed;opacity:.8}.fh-ip-trigger.error{border-color:#d32f2f}.fh-ip-preview{flex:0 0 auto;width:28px;height:28px;display:flex;align-items:center;justify-content:center;border-radius:6px;background:#eef2f6;font-size:16px;color:#2196f3}.fh-ip-preview.empty{color:#b6bcc3;background:#f4f5f6}.fh-ip-placeholder-icon{font-size:14px}.fh-ip-text{flex:1 1 auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-family:monospace;font-size:13px}.fh-ip-text.muted{color:#9aa1a9;font-family:inherit;font-style:italic}.fh-ip-caret{flex:0 0 auto;color:#9aa1a9;font-size:12px;transition:transform .2s ease}.fh-ip-clear{flex:0 0 auto;width:40px;border:1.5px solid #d7dbe0;border-radius:8px;background:#fff;cursor:pointer;color:#6b7178;transition:all .15s ease}.fh-ip-clear:hover{border-color:#d32f2f;color:#d32f2f;background:#fff5f5}.fh-ip-error{font-size:12px;color:#d32f2f}.fh-ip-panel{background:#fff;border:1px solid #e0e3e7;border-radius:12px;box-shadow:0 12px 32px #0000002e;overflow:hidden;display:flex;flex-direction:column;max-height:460px}.fh-ip-toolbar{display:flex;align-items:center;gap:8px;padding:10px 12px;border-bottom:1px solid #eef0f2;flex:0 0 auto;flex-wrap:wrap}.fh-ip-search{flex:1 1 150px;display:flex;align-items:center;gap:8px;background:#f4f5f6;border-radius:8px;padding:6px 10px;color:#6b7178}.fh-ip-search input{flex:1 1 auto;border:none;background:transparent;outline:none;font-size:14px;color:#161212;min-width:0}.fh-ip-search-clear{cursor:pointer}.fh-ip-search-clear:hover{color:#d32f2f}.fh-ip-tabs{display:flex;gap:4px;flex:0 0 auto}.fh-ip-tabs button{border:1px solid #d7dbe0;background:#fff;color:#5b6168;padding:6px 11px;border-radius:8px;cursor:pointer;font-size:12px;font-weight:600;transition:all .15s ease}.fh-ip-tabs button:hover{border-color:#9aa1a9}.fh-ip-tabs button.active{background:#2196f3;border-color:#2196f3;color:#fff}.fh-ip-view{display:flex;gap:2px;flex:0 0 auto}.fh-ip-view button{width:32px;height:32px;border:1px solid #d7dbe0;background:#fff;color:#8a9098;cursor:pointer;border-radius:8px;transition:all .15s ease}.fh-ip-view button:hover{border-color:#9aa1a9;color:#5b6168}.fh-ip-view button.active{background:#eef6fe;border-color:#2196f3;color:#2196f3}.fh-ip-recent{padding:8px 12px 4px;border-bottom:1px dashed #eef0f2;flex:0 0 auto}.fh-ip-section-lbl{font-size:10px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#9aa1a9}.fh-ip-recent-row{display:flex;gap:4px;margin-top:6px;flex-wrap:wrap}.fh-ip-recent-cell{width:34px;height:34px;display:flex;align-items:center;justify-content:center;border:1px solid transparent;border-radius:8px;background:#f4f5f6;cursor:pointer;color:#3a3f45;font-size:16px;transition:all .12s ease;line-height:1;box-sizing:border-box}.fh-ip-recent-cell i{line-height:1}.fh-ip-recent-cell:hover{background:#eef6fe;border-color:#bfe0fb}.fh-ip-recent-cell.selected{background:#e3f2fd;border-color:#2196f3;color:#1565c0}.fh-ip-grid{flex:1 1 auto;overflow-y:auto;overflow-x:hidden;padding:10px;display:grid;grid-template-columns:repeat(auto-fill,minmax(82px,1fr));gap:6px;align-content:start;scroll-behavior:smooth}.fh-ip-cell{display:flex;flex-direction:column;align-items:center;gap:6px;padding:10px 4px 8px;border:1px solid transparent;border-radius:8px;background:transparent;cursor:pointer;transition:all .12s ease;color:#3a3f45;min-height:66px;box-sizing:border-box}.fh-ip-cell i{font-size:22px;line-height:1}.fh-ip-cell:hover,.fh-ip-cell.highlight{background:#eef6fe;border-color:#bfe0fb}.fh-ip-cell.selected{background:#e3f2fd;border-color:#2196f3;color:#1565c0}.fh-ip-cell.highlight{box-shadow:0 0 0 2px #2196f340}.fh-ip-cell-name{font-size:10px;color:#8a9098;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.fh-ip-cell.selected .fh-ip-cell-name{color:#1976d2}.fh-ip-list{flex:1 1 auto;overflow-y:auto;overflow-x:hidden;padding:6px;display:flex;flex-direction:column;scroll-behavior:smooth}.fh-ip-row{display:flex;align-items:center;gap:12px;width:100%;padding:8px 12px;border:1px solid transparent;border-radius:8px;background:transparent;cursor:pointer;transition:all .1s ease;color:#3a3f45;text-align:left}.fh-ip-row-ico{flex:0 0 auto;width:26px;height:24px;font-size:18px;color:#5b6168;display:flex;align-items:center;justify-content:center;line-height:1}.fh-ip-row-name{flex:1 1 auto;font-family:monospace;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.fh-ip-row-check{flex:0 0 auto;color:#2196f3}.fh-ip-row:hover,.fh-ip-row.highlight{background:#eef6fe}.fh-ip-row.selected{background:#e3f2fd;color:#1565c0}.fh-ip-row.selected .fh-ip-row-ico{color:#1565c0}.fh-ip-empty{grid-column:1 / -1;display:flex;flex-direction:column;align-items:center;gap:10px;padding:36px 0;color:#9aa1a9}.fh-ip-empty i{font-size:30px}.fh-ip-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 12px;border-top:1px solid #eef0f2;font-size:11px;color:#9aa1a9;flex:0 0 auto}.fh-ip-count{font-weight:600}.fh-ip-hint{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.fh-ip-hint kbd{background:#f0f1f3;border:1px solid #dcdfe3;border-radius:4px;padding:0 4px;font-family:monospace;font-size:10px;color:#6b7178}\n"] }]
|
|
15702
15702
|
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }], propDecorators: { label: [{
|
|
15703
15703
|
type: Input
|
|
15704
15704
|
}], placeholder: [{
|
|
@@ -34926,35 +34926,47 @@ class AuthHttpRequestInterceptor {
|
|
|
34926
34926
|
return localStorage.getItem(this.appService.COMPANY_KEY + 'token') || 'ZZ';
|
|
34927
34927
|
}
|
|
34928
34928
|
refreshTokenSubject = new BehaviorSubject(null);
|
|
34929
|
+
// sentinel emesso ai waiter quando il refresh fallisce: NON devono ritentare
|
|
34930
|
+
static REFRESH_FAILED = 'ZZ';
|
|
34929
34931
|
handle401Error(request, next) {
|
|
34930
|
-
|
|
34931
|
-
|
|
34932
|
-
}
|
|
34933
|
-
const refreshToken = localStorage.getItem(this.appService.COMPANY_KEY + 'refreshToken') ||
|
|
34934
|
-
'ZZ';
|
|
34935
|
-
const token = localStorage.getItem(this.appService.COMPANY_KEY + 'token') || 'ZZ';
|
|
34932
|
+
const refreshToken = localStorage.getItem(this.appService.COMPANY_KEY + 'refreshToken');
|
|
34933
|
+
const token = localStorage.getItem(this.appService.COMPANY_KEY + 'token');
|
|
34936
34934
|
if (!token || !refreshToken) {
|
|
34937
34935
|
return next.handle(request);
|
|
34938
34936
|
}
|
|
34939
34937
|
if (!this.isRefreshing) {
|
|
34940
34938
|
this.isRefreshing = true;
|
|
34941
34939
|
this.refreshTokenSubject.next(null);
|
|
34942
|
-
return this.refreshToken(token, refreshToken).pipe(switchMap((
|
|
34940
|
+
return this.refreshToken(token, refreshToken).pipe(switchMap((res) => {
|
|
34943
34941
|
this.isRefreshing = false;
|
|
34944
|
-
|
|
34945
|
-
|
|
34946
|
-
|
|
34942
|
+
const newToken = localStorage.getItem(this.appService.COMPANY_KEY + 'token');
|
|
34943
|
+
// refresh fallito (ND / risposta non valida): NON ritentare col token
|
|
34944
|
+
// stantio, sblocca i waiter con il sentinel e fai logout pulito.
|
|
34945
|
+
if (!res ||
|
|
34946
|
+
(res.accessToken || 'ND') === 'ND' ||
|
|
34947
|
+
!newToken ||
|
|
34948
|
+
newToken === AuthHttpRequestInterceptor.REFRESH_FAILED) {
|
|
34949
|
+
this.refreshTokenSubject.next(AuthHttpRequestInterceptor.REFRESH_FAILED);
|
|
34950
|
+
this.loginservice.logout();
|
|
34951
|
+
return throwError(() => new Error('Refresh token non valido'));
|
|
34952
|
+
}
|
|
34953
|
+
this.refreshTokenSubject.next(newToken);
|
|
34954
|
+
return next.handle(this.addToken(request, newToken));
|
|
34947
34955
|
}), catchError((error) => {
|
|
34948
34956
|
this.isRefreshing = false;
|
|
34949
|
-
|
|
34957
|
+
this.refreshTokenSubject.next(AuthHttpRequestInterceptor.REFRESH_FAILED);
|
|
34950
34958
|
this.loginservice.logout();
|
|
34951
34959
|
return throwError(() => error);
|
|
34952
34960
|
}));
|
|
34953
34961
|
}
|
|
34954
34962
|
else {
|
|
34955
|
-
return this.refreshTokenSubject.pipe(filter((
|
|
34956
|
-
|
|
34957
|
-
|
|
34963
|
+
return this.refreshTokenSubject.pipe(filter((t) => t != null), take(1), switchMap((jwt) => {
|
|
34964
|
+
// se il refresh in corso è fallito, fallisci anche tu invece di
|
|
34965
|
+
// ritentare col token vecchio (evita la raffica di 401)
|
|
34966
|
+
if (jwt === AuthHttpRequestInterceptor.REFRESH_FAILED) {
|
|
34967
|
+
return throwError(() => new Error('Refresh token non valido'));
|
|
34968
|
+
}
|
|
34969
|
+
return next.handle(this.addToken(request, jwt));
|
|
34958
34970
|
}));
|
|
34959
34971
|
}
|
|
34960
34972
|
}
|
|
@@ -34970,13 +34982,12 @@ class AuthHttpRequestInterceptor {
|
|
|
34970
34982
|
}),
|
|
34971
34983
|
})
|
|
34972
34984
|
.pipe(tap((res) => {
|
|
34973
|
-
|
|
34974
|
-
|
|
34975
|
-
|
|
34976
|
-
|
|
34985
|
+
// scrivi i nuovi token SOLO se il refresh è andato a buon fine.
|
|
34986
|
+
// La gestione del fallimento (logout) avviene nel switchMap del chiamante.
|
|
34987
|
+
if (res && (res.accessToken || 'ND') !== 'ND') {
|
|
34988
|
+
localStorage.setItem(this.appService.COMPANY_KEY + 'token', res.accessToken);
|
|
34989
|
+
localStorage.setItem(this.appService.COMPANY_KEY + 'refreshToken', res.refreshToken);
|
|
34977
34990
|
}
|
|
34978
|
-
localStorage.setItem(this.appService.COMPANY_KEY + 'token', res.accessToken);
|
|
34979
|
-
localStorage.setItem(this.appService.COMPANY_KEY + 'refreshToken', res.refreshToken);
|
|
34980
34991
|
}));
|
|
34981
34992
|
}
|
|
34982
34993
|
addToken(request, token) {
|