@fxlt/common-ui 0.0.4-beta1 → 0.0.4-beta2

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/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { OnDestroy, Injector, ApplicationRef, OnInit, AfterViewInit, ChangeDetectorRef, Type, EventEmitter, ModuleWithProviders, TemplateRef, ViewContainerRef, ElementRef, AfterContentInit, QueryList, Renderer2, OnChanges, NgZone } from '@angular/core';
2
+ import { OnDestroy, Injector, ApplicationRef, OnInit, AfterViewInit, ChangeDetectorRef, Type, EventEmitter, ModuleWithProviders, TemplateRef, ViewContainerRef, ElementRef, RendererFactory2, AfterContentInit, QueryList, Renderer2, OnChanges, NgZone } from '@angular/core';
3
3
  import * as i39 from '@angular/material/paginator';
4
4
  import { MatPaginator } from '@angular/material/paginator';
5
5
  import * as i40 from '@angular/material/table';
@@ -355,6 +355,22 @@ declare class QuillStyleLoaderService {
355
355
  static ɵprov: i0.ɵɵInjectableDeclaration<QuillStyleLoaderService>;
356
356
  }
357
357
 
358
+ declare class ThemeService {
359
+ private renderer;
360
+ private lightClass;
361
+ private theme$;
362
+ themeStorageKey: string;
363
+ constructor(rendererFactory: RendererFactory2);
364
+ setLightMode(enable: boolean): void;
365
+ toggleTheme(): void;
366
+ themeChanges(): rxjs.Observable<"light" | "dark">;
367
+ getCurrentTheme(): 'light' | 'dark';
368
+ isLight(): boolean;
369
+ getLogoPath(): string;
370
+ static ɵfac: i0.ɵɵFactoryDeclaration<ThemeService, never>;
371
+ static ɵprov: i0.ɵɵInjectableDeclaration<ThemeService>;
372
+ }
373
+
358
374
  type ErrorMessages = {
359
375
  [key: string]: any;
360
376
  };
@@ -863,5 +879,5 @@ declare class UiModule {
863
879
  static ɵinj: i0.ɵɵInjectorDeclaration<UiModule>;
864
880
  }
865
881
 
866
- export { AuthInterceptor, AuthStateService, BaseComponent, BaseDialogComponent, BaseResolver, BaseTableComponent, BreadcrumbService, ButtonComponent, ChartComponent, CheckboxComponent, CircleProgressBar, ConfirmationDialogComponent, DatetimePicker, DndUploadComponent, FlowConnection, FxLoadingService, FxStorageService, FxToastrService, FxUtils, HasPermissionDirective, HeroIconComponent, HttpLoaderFactory, HttpWrapper, InputComponent, LoadingPanel, MY_MOMENT_FORMATS, PermissionGuard, PermissionService, QuillStyleLoaderService, RadioButtonComponent, RadioButtonToggleComponent, RichTextAreaComponent, SearchBarComponent, SelectComponent, SkeletonTableLoadingComponent, SliderComponent, SwitchComponent, TabComponent, TabGroupComponent, TagComponent, ToastComponent, ToastContainerComponent, TranslationModule, TranslationService, TreeDiagram, TrimOnBlurDirective, UiModule };
882
+ export { AuthInterceptor, AuthStateService, BaseComponent, BaseDialogComponent, BaseResolver, BaseTableComponent, BreadcrumbService, ButtonComponent, ChartComponent, CheckboxComponent, CircleProgressBar, ConfirmationDialogComponent, DatetimePicker, DndUploadComponent, FlowConnection, FxLoadingService, FxStorageService, FxToastrService, FxUtils, HasPermissionDirective, HeroIconComponent, HttpLoaderFactory, HttpWrapper, InputComponent, LoadingPanel, MY_MOMENT_FORMATS, PermissionGuard, PermissionService, QuillStyleLoaderService, RadioButtonComponent, RadioButtonToggleComponent, RichTextAreaComponent, SearchBarComponent, SelectComponent, SkeletonTableLoadingComponent, SliderComponent, SwitchComponent, TabComponent, TabGroupComponent, TagComponent, ThemeService, ToastComponent, ToastContainerComponent, TranslationModule, TranslationService, TreeDiagram, TrimOnBlurDirective, UiModule };
867
883
  export type { Breadcrumb, IChartType, IRadioButton, TableResult, TagType, ToastData, TreeNode, UploadResult };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fxlt/common-ui",
3
- "version": "0.0.4-beta1",
3
+ "version": "0.0.4-beta2",
4
4
  "license": "MIT",
5
5
  "main": "bundles/ui.umd.js",
6
6
  "module": "fesm2022/fxlt-common-ui.mjs",
@@ -1,4 +1,4 @@
1
- :root {
1
+ .light_theme {
2
2
  --bg-primary: 255 255 255;
3
3
  --primary: 236 25 56;
4
4
  --success: 15 140 96;
@@ -30,7 +30,7 @@
30
30
  --shadow-color: 0 0 0;
31
31
  }
32
32
 
33
- /* :root {
33
+ :root {
34
34
  --bg-primary: 12 14 18;
35
35
  --primary: 236 25 56;
36
36
  --success: 76 175 80;
@@ -60,4 +60,4 @@
60
60
  --border-secondary-hover: 0 199 205;
61
61
  --bg-secondary-hover: 6 59 70;
62
62
  --shadow-color: 255 255 255;
63
- } */
63
+ }
package/theme.css CHANGED
@@ -1,4 +1,4 @@
1
- :root {
1
+ .light_theme {
2
2
  --bg-primary: 255 255 255;
3
3
  --primary: 236 25 56;
4
4
  --success: 15 140 96;
@@ -30,7 +30,7 @@
30
30
  --shadow-color: 0 0 0;
31
31
  }
32
32
 
33
- /* :root {
33
+ :root {
34
34
  --bg-primary: 12 14 18;
35
35
  --primary: 236 25 56;
36
36
  --success: 76 175 80;
@@ -60,4 +60,4 @@
60
60
  --border-secondary-hover: 0 199 205;
61
61
  --bg-secondary-hover: 6 59 70;
62
62
  --shadow-color: 255 255 255;
63
- } */
63
+ }