@masmarino/gabarit 1.0.3 → 1.1.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": "1.0.3",
3
+ "version": "1.1.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",
@@ -4,7 +4,7 @@ import { OnDestroy, TemplateRef, ElementRef, InjectionToken, Signal } from '@ang
4
4
  import { ControlValueAccessor, FormControl } from '@angular/forms';
5
5
  import { Observable } from 'rxjs';
6
6
 
7
- declare const GABARIT_VERSION = "1.0.3";
7
+ declare const GABARIT_VERSION = "1.1.0";
8
8
 
9
9
  declare class Icon {
10
10
  private readonly sanitizer;
@@ -1561,9 +1561,49 @@ declare class Stepper {
1561
1561
  orientation: _angular_core.InputSignal<StepperOrientation>;
1562
1562
  completedLabel: _angular_core.InputSignal<string>;
1563
1563
  errorLabel: _angular_core.InputSignal<string>;
1564
+ interactive: _angular_core.InputSignalWithTransform<boolean, unknown>;
1565
+ selectedIndex: _angular_core.ModelSignal<number | null>;
1566
+ selectedLabel: _angular_core.InputSignal<string>;
1567
+ protected select(index: number): void;
1568
+ protected isSelected(index: number): boolean;
1564
1569
  protected statusOf(index: number): StepperStatus;
1565
1570
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<Stepper, never>;
1566
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<Stepper, "gbt-stepper", never, { "steps": { "alias": "steps"; "required": true; "isSignal": true; }; "activeIndex": { "alias": "activeIndex"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "completedLabel": { "alias": "completedLabel"; "required": false; "isSignal": true; }; "errorLabel": { "alias": "errorLabel"; "required": false; "isSignal": true; }; }, { "activeIndex": "activeIndexChange"; }, never, never, true, never>;
1571
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<Stepper, "gbt-stepper", never, { "steps": { "alias": "steps"; "required": true; "isSignal": true; }; "activeIndex": { "alias": "activeIndex"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "completedLabel": { "alias": "completedLabel"; "required": false; "isSignal": true; }; "errorLabel": { "alias": "errorLabel"; "required": false; "isSignal": true; }; "interactive": { "alias": "interactive"; "required": false; "isSignal": true; }; "selectedIndex": { "alias": "selectedIndex"; "required": false; "isSignal": true; }; "selectedLabel": { "alias": "selectedLabel"; "required": false; "isSignal": true; }; }, { "activeIndex": "activeIndexChange"; "selectedIndex": "selectedIndexChange"; }, never, never, true, never>;
1572
+ }
1573
+
1574
+ type JobGraphStatus = 'pending' | 'running' | 'success' | 'failed' | 'canceled';
1575
+ interface JobGraphJob {
1576
+ id: string;
1577
+ name: string;
1578
+ status: JobGraphStatus;
1579
+ durationLabel?: string;
1580
+ /** Names (not ids) of the jobs this job depends on; names are unique within a graph. */
1581
+ needs: string[];
1582
+ }
1583
+ interface JobGraphStage {
1584
+ name: string;
1585
+ jobs: JobGraphJob[];
1586
+ }
1587
+
1588
+ interface GraphLink {
1589
+ key: string;
1590
+ d: string;
1591
+ done: boolean;
1592
+ }
1593
+ declare class JobGraph {
1594
+ stages: _angular_core.InputSignal<JobGraphStage[]>;
1595
+ selectedJobId: _angular_core.InputSignal<string | null>;
1596
+ statusLabels: _angular_core.InputSignal<Record<JobGraphStatus, string>>;
1597
+ needsLabel: _angular_core.InputSignal<string>;
1598
+ ariaLabel: _angular_core.InputSignal<string>;
1599
+ jobSelected: _angular_core.OutputEmitterRef<string>;
1600
+ protected readonly links: _angular_core.WritableSignal<GraphLink[]>;
1601
+ private readonly graph;
1602
+ private readonly destroyRef;
1603
+ constructor();
1604
+ private measure;
1605
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<JobGraph, never>;
1606
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<JobGraph, "gbt-job-graph", never, { "stages": { "alias": "stages"; "required": true; "isSignal": true; }; "selectedJobId": { "alias": "selectedJobId"; "required": false; "isSignal": true; }; "statusLabels": { "alias": "statusLabels"; "required": false; "isSignal": true; }; "needsLabel": { "alias": "needsLabel"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, { "jobSelected": "jobSelected"; }, never, never, true, never>;
1567
1607
  }
1568
1608
 
1569
1609
  declare function formatFileSize(bytes: number): string;
@@ -1682,5 +1722,5 @@ declare class Tree {
1682
1722
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<Tree, "gbt-tree", never, { "items": { "alias": "items"; "required": true; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "selectedId": { "alias": "selectedId"; "required": false; "isSignal": true; }; "expandedIds": { "alias": "expandedIds"; "required": false; "isSignal": true; }; "expandLabel": { "alias": "expandLabel"; "required": false; "isSignal": true; }; "collapseLabel": { "alias": "collapseLabel"; "required": false; "isSignal": true; }; }, { "selectedId": "selectedIdChange"; "expandedIds": "expandedIdsChange"; }, never, never, true, never>;
1683
1723
  }
1684
1724
 
1685
- export { Accordion, AccordionItem, Alert, AppShell, Autocomplete, Avatar, AvatarGroup, Badge, BarChart, BarSeries, Breadcrumb, Button, CHART_CONTEXT, Card, ChartAxis, ChartEmpty, ChartFrame, ChartLegend, ChartTable, ChartTooltip, Checkbox, ConfirmDangerModal, DatePicker, DateRangePicker, DescriptionList, DimensionCard, Divider, Drawer, EmptyState, FileUpload, FunnelChart, GABARIT_VERSION, GaugeBar, GbtInput, Icon, IconRegistry, LineChart, LineSeries, ListToolbar, Menu, Modal, NotificationDot, Pagination, PieChart, Popover, RadioGroup, SearchBar, SegmentedControl, Select, Skeleton, Slider, Sparkline, Spinner, Stepper, Switch, Tab, Table, Tabs, Tag, TagInput, Textarea, TimelineChart, TimelineSeries, Toaster, Tooltip, Tree, arcPath, areaPath, bandScale, formatCompact, formatDuration, formatNumber, formatPercent, linePath, linearScale, nearestIndex, niceTicks, niceXDomain, niceYDomain, timeScale, timeTicks };
1686
- export type { AccordionMode, AlertVariant, Arc, AutocompleteSearchFn, AvatarGroupItem, AvatarSize, AxisSpec, BadgeVariant, BandScale, CalendarDay, ChartBox, ChartInterval, ChartMargin, ChartPoint, ChartReader, ChartSeries, DateRangeValue, DescriptionListEntry, DescriptionListLayout, DimensionRow, DividerOrientation, DrawerEdge, EmptyStateIllustration, FlatTreeNode, FunnelStep, LegendEntry, LinearAxisSpec, ListToolbarSortOption, NotificationDotVariant, PieSlice, Point, PointValue, PopoverAlign, RadioOption, Scale, SearchResultCategory, SegmentedControlOption, SelectOption, SkeletonVariant, SpinnerSize, StepperOrientation, StepperStatus, StepperStep, TableColumn, TimeTicks, TimeUnit, ToastItem, ToastVariant, ToasterPosition, TooltipPoint, TooltipPosition, TooltipRow, TreeNode, WeekStartsOn };
1725
+ export { Accordion, AccordionItem, Alert, AppShell, Autocomplete, Avatar, AvatarGroup, Badge, BarChart, BarSeries, Breadcrumb, Button, CHART_CONTEXT, Card, ChartAxis, ChartEmpty, ChartFrame, ChartLegend, ChartTable, ChartTooltip, Checkbox, ConfirmDangerModal, DatePicker, DateRangePicker, DescriptionList, DimensionCard, Divider, Drawer, EmptyState, FileUpload, FunnelChart, GABARIT_VERSION, GaugeBar, GbtInput, Icon, IconRegistry, JobGraph, LineChart, LineSeries, ListToolbar, Menu, Modal, NotificationDot, Pagination, PieChart, Popover, RadioGroup, SearchBar, SegmentedControl, Select, Skeleton, Slider, Sparkline, Spinner, Stepper, Switch, Tab, Table, Tabs, Tag, TagInput, Textarea, TimelineChart, TimelineSeries, Toaster, Tooltip, Tree, arcPath, areaPath, bandScale, formatCompact, formatDuration, formatNumber, formatPercent, linePath, linearScale, nearestIndex, niceTicks, niceXDomain, niceYDomain, timeScale, timeTicks };
1726
+ export type { AccordionMode, AlertVariant, Arc, AutocompleteSearchFn, AvatarGroupItem, AvatarSize, AxisSpec, BadgeVariant, BandScale, CalendarDay, ChartBox, ChartInterval, ChartMargin, ChartPoint, ChartReader, ChartSeries, DateRangeValue, DescriptionListEntry, DescriptionListLayout, DimensionRow, DividerOrientation, DrawerEdge, EmptyStateIllustration, FlatTreeNode, FunnelStep, JobGraphJob, JobGraphStage, JobGraphStatus, LegendEntry, LinearAxisSpec, ListToolbarSortOption, NotificationDotVariant, PieSlice, Point, PointValue, PopoverAlign, RadioOption, Scale, SearchResultCategory, SegmentedControlOption, SelectOption, SkeletonVariant, SpinnerSize, StepperOrientation, StepperStatus, StepperStep, TableColumn, TimeTicks, TimeUnit, ToastItem, ToastVariant, ToasterPosition, TooltipPoint, TooltipPosition, TooltipRow, TreeNode, WeekStartsOn };