@avora-labs/meta-forge 1.6.0 → 1.7.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@avora-labs/meta-forge",
3
- "version": "1.6.0",
3
+ "version": "1.7.1",
4
4
  "description": "AvoraMetaForge — A meta-driven Angular framework. Define entire applications through structured TypeScript metadata.",
5
5
  "keywords": [
6
6
  "angular",
@@ -2306,12 +2306,6 @@ declare class AppConfigService implements OnDestroy {
2306
2306
  * form is submitted). Maps each key to the appropriate runtime effect.
2307
2307
  */
2308
2308
  private applySettingChange;
2309
- /**
2310
- * Toggles dark / light mode by setting data-color-scheme on <html>.
2311
- * Dark mode = no attribute (uses :root CSS vars from _variables.scss).
2312
- * Light mode = data-color-scheme="light" (overrides via _themes.scss).
2313
- */
2314
- private applyColorScheme;
2315
2309
  static ɵfac: i0.ɵɵFactoryDeclaration<AppConfigService, never>;
2316
2310
  static ɵprov: i0.ɵɵInjectableDeclaration<AppConfigService>;
2317
2311
  }
@@ -2356,23 +2350,44 @@ declare const authGuard: CanActivateFn;
2356
2350
  */
2357
2351
  declare const authInterceptor: HttpInterceptorFn;
2358
2352
 
2359
- /**
2360
- * Manages runtime theming by toggling the `data-theme` attribute on the <body> element.
2361
- * Allows switching brand skins without recompiling styles.
2362
- */
2353
+ interface ColorPreset {
2354
+ name: string;
2355
+ primary: string;
2356
+ hover: string;
2357
+ light: string;
2358
+ glow: string;
2359
+ }
2360
+ interface SurfacePreset {
2361
+ name: string;
2362
+ bg: string;
2363
+ bgSecondary: string;
2364
+ sidebarBg: string;
2365
+ navbarBg: string;
2366
+ }
2367
+ interface ThemeConfig {
2368
+ primaryPreset: string;
2369
+ surfacePreset: string;
2370
+ colorScheme: 'light' | 'dark';
2371
+ menuType: 'static' | 'overlay' | 'slim' | 'slim-plus' | 'reveal' | 'drawer' | 'horizontal';
2372
+ menuProfile: 'start' | 'end';
2373
+ }
2374
+ declare const THEME_PRESETS: ColorPreset[];
2375
+ declare const SURFACE_PRESETS: SurfacePreset[];
2376
+ declare const DEFAULT_THEME_CONFIG: ThemeConfig;
2377
+
2363
2378
  declare class ThemeService {
2364
- /** Currently active theme name */
2365
- readonly currentTheme: i0.WritableSignal<string>;
2366
- /** Available theme names */
2367
- readonly availableThemes: ReadonlyArray<{
2368
- name: string;
2369
- label: string;
2370
- }>;
2371
- constructor();
2372
- /** Switch to a named theme */
2373
- setTheme(themeName: string): void;
2374
- /** Cycle to the next theme */
2375
- cycleTheme(): void;
2379
+ private platformId;
2380
+ private readonly STORAGE_KEY;
2381
+ config: i0.WritableSignal<ThemeConfig>;
2382
+ customizerOpen: i0.WritableSignal<boolean>;
2383
+ private readonly stateService;
2384
+ constructor(platformId: Object);
2385
+ updateConfig(partial: Partial<ThemeConfig>): void;
2386
+ private loadConfig;
2387
+ private saveConfig;
2388
+ private applyTheme;
2389
+ private applyPrimaryPalette;
2390
+ private applySurfacePalette;
2376
2391
  static ɵfac: i0.ɵɵFactoryDeclaration<ThemeService, never>;
2377
2392
  static ɵprov: i0.ɵɵInjectableDeclaration<ThemeService>;
2378
2393
  }
@@ -2411,5 +2426,5 @@ declare class LayoutComponent {
2411
2426
  static ɵcmp: i0.ɵɵComponentDeclaration<LayoutComponent, "app-layout", never, {}, {}, never, never, true, never>;
2412
2427
  }
2413
2428
 
2414
- export { APP_META_CONFIG_TOKEN, AccordionSectionComponent, ActionDispatcherService, AmfDialogHostComponent, AmfDrawerHostComponent, AppConfigService, AuthService, CardSectionComponent, ComponentRegistryService, ConditionEvaluatorService, FormRendererComponent, LayoutComponent, LayoutType, META_SECTION_CONFIG, META_SECTION_CONTEXT, MetaApiService, MetaModalHostComponent, MetaPageComponent, MetaRendererComponent, MetaRouterService, MetaStateService, NotificationService, PageHeaderSectionComponent, PluginRegistryService, RepeaterFieldComponent, StatsGridSectionComponent, StepperFormRendererComponent, TableRendererComponent, ThemeService, authGuard, authInterceptor, getAmfRoutes, initializeAvoraMetaForge, metaCanDeactivateGuard, metaGuard, provideAvoraMetaForge };
2415
- export type { AccordionMeta, AccordionPanelMeta, ActionMeta, ActionType, AggregateRowMeta, AlertMeta, ApiActionConfig, ApiAuthMeta, ApiEndpointMeta, ApiPaginationMeta, AppBrandingMeta, AppMeta, AuthUser, AutosaveMeta, AvoraMetaForgePlugin, BreadcrumbMeta, CacheMeta, CardMeta, CellType, ClearStateActionConfig, ColumnEditValidatorMeta, ColumnMeta, ComputeFieldMeta, ConditionMeta, ConditionOperator, ConditionalActionConfig, ConfirmActionConfig, CopyToClipboardActionConfig, CrossFieldValidatorMeta, CustomComponentMeta, DelayActionConfig, DialogConfig, DispatchMultipleActionConfig, DividerMeta, DownloadFileActionConfig, DrawerActionConfig, EmitActionConfig, EmptyStateMeta, EnvironmentConfig, FieldMeta, FieldType, FocusActionConfig, FooterLinkMeta, ForEachActionConfig, FormLayout, FormMeta, FormStepMeta, GlobalAuthMeta, GuardMeta, HtmlMeta, HttpMethod$1 as HttpMethod, IframeMeta, LayoutConfigMeta, LayoutMeta, LayoutTypeKey, LoadingActionConfig, LogActionConfig, MetaSectionComponent, ModalActionConfig, NavGroupMeta, NavItemMeta, NavigateActionConfig, Notification, NotificationType, NotifyActionConfig, OpenUrlActionConfig, OptionMeta, PageHeaderActionMeta, PageHeaderMeta, PageMeta, PaginationMeta, PatchFormActionConfig, PrintActionConfig, ReloadTableActionConfig, ResetFormActionConfig, ResolverMeta, RetryMeta, RowClassMeta, ScrollToActionConfig, SectionMeta, ServerPaginationConfig, SetStateActionConfig, SetTitleActionConfig, SpacerMeta, StatCardMeta, StateChange, StatsGridMeta, StorageActionConfig, SubmitFormActionConfig, TabMeta, TableActionMeta, TableFilterMeta, TableMeta, TabsMeta, ThemeMeta, TimelineItemMeta, TimelineMeta, ToggleClassActionConfig, TransformContextActionConfig, TransformMeta, ValidatorMeta };
2429
+ export { APP_META_CONFIG_TOKEN, AccordionSectionComponent, ActionDispatcherService, AmfDialogHostComponent, AmfDrawerHostComponent, AppConfigService, AuthService, CardSectionComponent, ComponentRegistryService, ConditionEvaluatorService, DEFAULT_THEME_CONFIG, FormRendererComponent, LayoutComponent, LayoutType, META_SECTION_CONFIG, META_SECTION_CONTEXT, MetaApiService, MetaModalHostComponent, MetaPageComponent, MetaRendererComponent, MetaRouterService, MetaStateService, NotificationService, PageHeaderSectionComponent, PluginRegistryService, RepeaterFieldComponent, SURFACE_PRESETS, StatsGridSectionComponent, StepperFormRendererComponent, THEME_PRESETS, TableRendererComponent, ThemeService, authGuard, authInterceptor, getAmfRoutes, initializeAvoraMetaForge, metaCanDeactivateGuard, metaGuard, provideAvoraMetaForge };
2430
+ export type { AccordionMeta, AccordionPanelMeta, ActionMeta, ActionType, AggregateRowMeta, AlertMeta, ApiActionConfig, ApiAuthMeta, ApiEndpointMeta, ApiPaginationMeta, AppBrandingMeta, AppMeta, AuthUser, AutosaveMeta, AvoraMetaForgePlugin, BreadcrumbMeta, CacheMeta, CardMeta, CellType, ClearStateActionConfig, ColorPreset, ColumnEditValidatorMeta, ColumnMeta, ComputeFieldMeta, ConditionMeta, ConditionOperator, ConditionalActionConfig, ConfirmActionConfig, CopyToClipboardActionConfig, CrossFieldValidatorMeta, CustomComponentMeta, DelayActionConfig, DialogConfig, DispatchMultipleActionConfig, DividerMeta, DownloadFileActionConfig, DrawerActionConfig, EmitActionConfig, EmptyStateMeta, EnvironmentConfig, FieldMeta, FieldType, FocusActionConfig, FooterLinkMeta, ForEachActionConfig, FormLayout, FormMeta, FormStepMeta, GlobalAuthMeta, GuardMeta, HtmlMeta, HttpMethod$1 as HttpMethod, IframeMeta, LayoutConfigMeta, LayoutMeta, LayoutTypeKey, LoadingActionConfig, LogActionConfig, MetaSectionComponent, ModalActionConfig, NavGroupMeta, NavItemMeta, NavigateActionConfig, Notification, NotificationType, NotifyActionConfig, OpenUrlActionConfig, OptionMeta, PageHeaderActionMeta, PageHeaderMeta, PageMeta, PaginationMeta, PatchFormActionConfig, PrintActionConfig, ReloadTableActionConfig, ResetFormActionConfig, ResolverMeta, RetryMeta, RowClassMeta, ScrollToActionConfig, SectionMeta, ServerPaginationConfig, SetStateActionConfig, SetTitleActionConfig, SpacerMeta, StatCardMeta, StateChange, StatsGridMeta, StorageActionConfig, SubmitFormActionConfig, SurfacePreset, TabMeta, TableActionMeta, TableFilterMeta, TableMeta, TabsMeta, ThemeConfig, ThemeMeta, TimelineItemMeta, TimelineMeta, ToggleClassActionConfig, TransformContextActionConfig, TransformMeta, ValidatorMeta };