@fluxhub/fluxhub-lib 22.0.31 → 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.
@@ -40432,6 +40432,12 @@ class FHHomeLauncherComponent {
40432
40432
  get _ink() {
40433
40433
  return this.ink;
40434
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;
40435
40441
  // ---- Layout ----
40436
40442
  /** Mostra l'indice numerato (01, 02, ...) accanto al titolo categoria. */
40437
40443
  showIndex = true;
@@ -40619,8 +40625,13 @@ class FHHomeLauncherComponent {
40619
40625
  });
40620
40626
  }
40621
40627
  const cats = grouped.filter((c) => c.apps.length > 0);
40622
- for (const c of cats)
40628
+ for (const c of cats) {
40623
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
+ }
40624
40635
  this.categories = cats;
40625
40636
  this.is_loaded = true;
40626
40637
  });
@@ -40702,7 +40713,7 @@ class FHHomeLauncherComponent {
40702
40713
  this.appOpen.emit(app);
40703
40714
  }
40704
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 });
40705
- 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: `
40706
40717
  @if (is_loaded) {
40707
40718
  <div
40708
40719
  class="launcher"
@@ -40715,7 +40726,11 @@ class FHHomeLauncherComponent {
40715
40726
  [style.column-gap.px]="columnGap"
40716
40727
  >
40717
40728
  @for (cat of categories; track cat; let i = $index) {
40718
- <section class="cat">
40729
+ <section
40730
+ class="cat"
40731
+ [style.--fh-home-accent]="cat.accent"
40732
+ [style.--fh-home-accent-dark]="cat.accentDark"
40733
+ >
40719
40734
  <header class="cat-head">
40720
40735
  @if (showIndex) {
40721
40736
  <span class="cat-index">{{
@@ -40819,7 +40834,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImpor
40819
40834
  [style.column-gap.px]="columnGap"
40820
40835
  >
40821
40836
  @for (cat of categories; track cat; let i = $index) {
40822
- <section class="cat">
40837
+ <section
40838
+ class="cat"
40839
+ [style.--fh-home-accent]="cat.accent"
40840
+ [style.--fh-home-accent-dark]="cat.accentDark"
40841
+ >
40823
40842
  <header class="cat-head">
40824
40843
  @if (showIndex) {
40825
40844
  <span class="cat-index">{{
@@ -40922,6 +40941,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImpor
40922
40941
  }], _ink: [{
40923
40942
  type: HostBinding,
40924
40943
  args: ['style.--fh-home-ink']
40944
+ }], useCategoryColors: [{
40945
+ type: Input
40925
40946
  }], showIndex: [{
40926
40947
  type: Input
40927
40948
  }], columnWidth: [{