@fluxhub/fluxhub-lib 22.0.30 → 22.0.32

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.
@@ -5436,7 +5436,9 @@ class FHUploadComponent {
5436
5436
  if (event.type === HttpEventType.UploadProgress && event.total) {
5437
5437
  const progress = Math.round((100 * event.loaded) / event.total);
5438
5438
  if (this.dialogRef?.componentInstance) {
5439
- this.dialogRef?.componentInstance?.update_progess(progress);
5439
+ // 100 chiude l'attesa: si arriva a 100 solo con la risposta del server (il programma
5440
+ // post-upload, es. rename_attachment, puo' ancora rinominare o spostare il file)
5441
+ this.dialogRef?.componentInstance?.update_progess(Math.min(progress, 99));
5440
5442
  }
5441
5443
  }
5442
5444
  else if (event.type === HttpEventType.Response) {
@@ -40430,6 +40432,12 @@ class FHHomeLauncherComponent {
40430
40432
  get _ink() {
40431
40433
  return this.ink;
40432
40434
  }
40435
+ /**
40436
+ * Colora ogni sezione con il colore della sua categoria (applications_categories.color):
40437
+ * filetto, numero, icone e box. Le categorie senza colore usano [accent]/[accentDark].
40438
+ * Default false: resta l'accento unico del launcher.
40439
+ */
40440
+ useCategoryColors = false;
40433
40441
  // ---- Layout ----
40434
40442
  /** Mostra l'indice numerato (01, 02, ...) accanto al titolo categoria. */
40435
40443
  showIndex = true;
@@ -40617,8 +40625,13 @@ class FHHomeLauncherComponent {
40617
40625
  });
40618
40626
  }
40619
40627
  const cats = grouped.filter((c) => c.apps.length > 0);
40620
- for (const c of cats)
40628
+ for (const c of cats) {
40621
40629
  c.isBox = this.isBoxCat(c);
40630
+ // colore della categoria come accento della sezione (calcolato qui, non nel template)
40631
+ const col = this.useCategoryColors ? (c.color || '').trim() : '';
40632
+ c.accent = col || null;
40633
+ c.accentDark = col ? `color-mix(in srgb, ${col} 78%, #000)` : null;
40634
+ }
40622
40635
  this.categories = cats;
40623
40636
  this.is_loaded = true;
40624
40637
  });
@@ -40700,7 +40713,7 @@ class FHHomeLauncherComponent {
40700
40713
  this.appOpen.emit(app);
40701
40714
  }
40702
40715
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: FHHomeLauncherComponent, deps: [{ token: AppService }, { token: AuthenticationService }, { token: QueryService }, { token: UtilityService }, { token: i3$2.Router }], target: i0.ɵɵFactoryTarget.Component });
40703
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: FHHomeLauncherComponent, isStandalone: true, selector: "FHHomeLauncher", inputs: { accent: "accent", accentDark: "accentDark", ink: "ink", showIndex: "showIndex", columnWidth: "columnWidth", columnGap: "columnGap", boxCategoryIds: "boxCategoryIds", boxIcon: "boxIcon", boxActionLabel: "boxActionLabel", boxLayout: "boxLayout", enableFavorites: "enableFavorites", sqlCatPrefsGet: "sqlCatPrefsGet", sqlCatPrefsSave: "sqlCatPrefsSave", favoriteTooltip: "favoriteTooltip", unfavoriteTooltip: "unfavoriteTooltip", background: "background", showGridBackground: "showGridBackground", sqlUserAccess: "sqlUserAccess", sqlAllApps: "sqlAllApps", sqlApps: "sqlApps", sqlAccessLog: "sqlAccessLog", appVersion: "appVersion" }, outputs: { appOpen: "appOpen" }, host: { properties: { "style.--fh-home-accent": "this._a", "style.--fh-home-accent-dark": "this._ad", "style.--fh-home-ink": "this._ink" } }, ngImport: i0, template: `
40716
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: FHHomeLauncherComponent, isStandalone: true, selector: "FHHomeLauncher", inputs: { accent: "accent", accentDark: "accentDark", ink: "ink", useCategoryColors: "useCategoryColors", showIndex: "showIndex", columnWidth: "columnWidth", columnGap: "columnGap", boxCategoryIds: "boxCategoryIds", boxIcon: "boxIcon", boxActionLabel: "boxActionLabel", boxLayout: "boxLayout", enableFavorites: "enableFavorites", sqlCatPrefsGet: "sqlCatPrefsGet", sqlCatPrefsSave: "sqlCatPrefsSave", favoriteTooltip: "favoriteTooltip", unfavoriteTooltip: "unfavoriteTooltip", background: "background", showGridBackground: "showGridBackground", sqlUserAccess: "sqlUserAccess", sqlAllApps: "sqlAllApps", sqlApps: "sqlApps", sqlAccessLog: "sqlAccessLog", appVersion: "appVersion" }, outputs: { appOpen: "appOpen" }, host: { properties: { "style.--fh-home-accent": "this._a", "style.--fh-home-accent-dark": "this._ad", "style.--fh-home-ink": "this._ink" } }, ngImport: i0, template: `
40704
40717
  @if (is_loaded) {
40705
40718
  <div
40706
40719
  class="launcher"
@@ -40713,7 +40726,11 @@ class FHHomeLauncherComponent {
40713
40726
  [style.column-gap.px]="columnGap"
40714
40727
  >
40715
40728
  @for (cat of categories; track cat; let i = $index) {
40716
- <section class="cat">
40729
+ <section
40730
+ class="cat"
40731
+ [style.--fh-home-accent]="cat.accent"
40732
+ [style.--fh-home-accent-dark]="cat.accentDark"
40733
+ >
40717
40734
  <header class="cat-head">
40718
40735
  @if (showIndex) {
40719
40736
  <span class="cat-index">{{
@@ -40817,7 +40834,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImpor
40817
40834
  [style.column-gap.px]="columnGap"
40818
40835
  >
40819
40836
  @for (cat of categories; track cat; let i = $index) {
40820
- <section class="cat">
40837
+ <section
40838
+ class="cat"
40839
+ [style.--fh-home-accent]="cat.accent"
40840
+ [style.--fh-home-accent-dark]="cat.accentDark"
40841
+ >
40821
40842
  <header class="cat-head">
40822
40843
  @if (showIndex) {
40823
40844
  <span class="cat-index">{{
@@ -40920,6 +40941,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImpor
40920
40941
  }], _ink: [{
40921
40942
  type: HostBinding,
40922
40943
  args: ['style.--fh-home-ink']
40944
+ }], useCategoryColors: [{
40945
+ type: Input
40923
40946
  }], showIndex: [{
40924
40947
  type: Input
40925
40948
  }], columnWidth: [{