@masmarino/gabarit 0.1.2 → 0.2.0

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": "@masmarino/gabarit",
3
- "version": "0.1.2",
3
+ "version": "0.2.0",
4
4
  "description": "Angular design system — UI components and dataviz for self-hosted applications.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/Masmarino/Gabarit",
@@ -36,6 +36,13 @@
36
36
  --color-error-bg: var(--red-100);
37
37
  --color-error-bg-text: var(--red-800);
38
38
 
39
+ --bg-inverse: var(--grey-900);
40
+
41
+ --color-success-vivid-base: var(--green-500);
42
+ --color-warning-vivid-base: #c38927;
43
+ --color-error-vivid-base: var(--red-500);
44
+ --color-info-vivid-base: #2f6feb;
45
+
39
46
  --chart-series-1-base: #bd8200;
40
47
  --chart-series-2-base: #009e73;
41
48
  --chart-series-3-base: #0072b2;
@@ -3,7 +3,7 @@ import * as _angular_core from '@angular/core';
3
3
  import { OnDestroy, TemplateRef, ElementRef, InjectionToken, Signal } from '@angular/core';
4
4
  import { ControlValueAccessor } from '@angular/forms';
5
5
 
6
- declare const GABARIT_VERSION = "0.1.2";
6
+ declare const GABARIT_VERSION = "0.2.0";
7
7
 
8
8
  declare class Icon {
9
9
  private readonly sanitizer;
@@ -784,5 +784,52 @@ declare class Menu {
784
784
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<Menu, "gbt-menu", never, { "label": { "alias": "label"; "required": true; "isSignal": true; }; "align": { "alias": "align"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
785
785
  }
786
786
 
787
- export { AppShell, BarChart, BarSeries, Button, CHART_CONTEXT, Card, ChartAxis, ChartEmpty, ChartFrame, ChartLegend, ChartTable, ChartTooltip, Checkbox, DimensionCard, FunnelChart, GABARIT_VERSION, GaugeBar, GbtInput, Icon, IconRegistry, LineChart, LineSeries, Menu, Modal, SearchBar, Select, Sparkline, Tab, Table, Tabs, TimelineChart, TimelineSeries, areaPath, bandScale, formatCompact, formatDuration, formatNumber, formatPercent, linePath, linearScale, nearestIndex, niceTicks, niceXDomain, niceYDomain, timeScale, timeTicks };
788
- export type { AxisSpec, BandScale, ChartBox, ChartInterval, ChartMargin, ChartPoint, ChartReader, ChartSeries, DimensionRow, FunnelStep, LegendEntry, LinearAxisSpec, Point, PointValue, Scale, SearchResultCategory, SelectOption, TableColumn, TimeTicks, TimeUnit, TooltipPoint, TooltipRow };
787
+ type ToastVariant = 'success' | 'error' | 'warning' | 'info';
788
+ type ToasterPosition = 'top-right' | 'top-left' | 'top-center' | 'bottom-right' | 'bottom-left' | 'bottom-center';
789
+ interface ToastItem {
790
+ id: string;
791
+ variant: ToastVariant;
792
+ message: string;
793
+ duration?: number;
794
+ }
795
+ declare class Toaster implements OnDestroy {
796
+ toasts: _angular_core.InputSignal<ToastItem[]>;
797
+ position: _angular_core.InputSignal<ToasterPosition>;
798
+ closeLabel: _angular_core.InputSignal<string>;
799
+ dismissed: _angular_core.OutputEmitterRef<string>;
800
+ private readonly timers;
801
+ constructor();
802
+ ngOnDestroy(): void;
803
+ protected roleFor(variant: ToastVariant): 'alert' | 'status';
804
+ protected iconFor(variant: ToastVariant): string;
805
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<Toaster, never>;
806
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<Toaster, "gbt-toaster", never, { "toasts": { "alias": "toasts"; "required": true; "isSignal": true; }; "position": { "alias": "position"; "required": false; "isSignal": true; }; "closeLabel": { "alias": "closeLabel"; "required": false; "isSignal": true; }; }, { "dismissed": "dismissed"; }, never, never, true, never>;
807
+ }
808
+
809
+ type TooltipPosition = 'top' | 'bottom' | 'left' | 'right';
810
+ interface TooltipCoords {
811
+ top: number;
812
+ left: number;
813
+ }
814
+ declare class Tooltip implements OnDestroy {
815
+ private readonly elementRef;
816
+ text: _angular_core.InputSignal<string>;
817
+ position: _angular_core.InputSignal<TooltipPosition>;
818
+ readonly tooltipId: string;
819
+ protected readonly visible: _angular_core.WritableSignal<boolean>;
820
+ protected readonly closing: _angular_core.WritableSignal<boolean>;
821
+ protected readonly coords: _angular_core.WritableSignal<TooltipCoords | null>;
822
+ private showTimer;
823
+ private hideTimer;
824
+ protected onMouseEnter(): void;
825
+ protected onFocusIn(): void;
826
+ private show;
827
+ protected updatePosition(): void;
828
+ protected hide(): void;
829
+ ngOnDestroy(): void;
830
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<Tooltip, never>;
831
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<Tooltip, "gbt-tooltip", ["gbtTooltip"], { "text": { "alias": "text"; "required": true; "isSignal": true; }; "position": { "alias": "position"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
832
+ }
833
+
834
+ export { AppShell, BarChart, BarSeries, Button, CHART_CONTEXT, Card, ChartAxis, ChartEmpty, ChartFrame, ChartLegend, ChartTable, ChartTooltip, Checkbox, DimensionCard, FunnelChart, GABARIT_VERSION, GaugeBar, GbtInput, Icon, IconRegistry, LineChart, LineSeries, Menu, Modal, SearchBar, Select, Sparkline, Tab, Table, Tabs, TimelineChart, TimelineSeries, Toaster, Tooltip, areaPath, bandScale, formatCompact, formatDuration, formatNumber, formatPercent, linePath, linearScale, nearestIndex, niceTicks, niceXDomain, niceYDomain, timeScale, timeTicks };
835
+ export type { AxisSpec, BandScale, ChartBox, ChartInterval, ChartMargin, ChartPoint, ChartReader, ChartSeries, DimensionRow, FunnelStep, LegendEntry, LinearAxisSpec, Point, PointValue, Scale, SearchResultCategory, SelectOption, TableColumn, TimeTicks, TimeUnit, ToastItem, ToastVariant, ToasterPosition, TooltipPoint, TooltipPosition, TooltipRow };