@gravionlabs/helix-shell 22.2.0 → 22.2.2
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": "@gravionlabs/helix-shell",
|
|
3
|
-
"version": "22.2.
|
|
3
|
+
"version": "22.2.2",
|
|
4
4
|
"description": "Helix application shell for Angular — layout (topbar, nav rail, footer), auth pages, landing widgets, and a signal-store-backed layout state.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
package/styles.css
CHANGED
|
@@ -23,9 +23,7 @@
|
|
|
23
23
|
--color-teal-200: oklch(91% 0.096 180.426);
|
|
24
24
|
--color-teal-500: oklch(70.4% 0.14 182.503);
|
|
25
25
|
--color-teal-700: oklch(51.1% 0.096 186.391);
|
|
26
|
-
--color-cyan-100: oklch(95.6% 0.045 203.388);
|
|
27
26
|
--color-cyan-200: oklch(91.7% 0.08 205.041);
|
|
28
|
-
--color-cyan-400: oklch(78.9% 0.154 211.53);
|
|
29
27
|
--color-cyan-500: oklch(71.5% 0.143 215.221);
|
|
30
28
|
--color-cyan-700: oklch(52% 0.105 223.128);
|
|
31
29
|
--color-blue-50: oklch(97% 0.014 254.604);
|
|
@@ -675,9 +673,6 @@
|
|
|
675
673
|
.bg-blue-500 {
|
|
676
674
|
background-color: var(--color-blue-500);
|
|
677
675
|
}
|
|
678
|
-
.bg-cyan-100 {
|
|
679
|
-
background-color: var(--color-cyan-100);
|
|
680
|
-
}
|
|
681
676
|
.bg-cyan-200 {
|
|
682
677
|
background-color: var(--color-cyan-200);
|
|
683
678
|
}
|
|
@@ -1288,12 +1283,6 @@
|
|
|
1288
1283
|
background-color: color-mix(in oklab, var(--color-blue-400) 10%, transparent);
|
|
1289
1284
|
}
|
|
1290
1285
|
}
|
|
1291
|
-
.dark\:bg-cyan-400\/10:where([class*="app-dark"], [class*="app-dark"] *) {
|
|
1292
|
-
background-color: color-mix(in srgb, oklch(78.9% 0.154 211.53) 10%, transparent);
|
|
1293
|
-
@supports (color: color-mix(in lab, red, red)) {
|
|
1294
|
-
background-color: color-mix(in oklab, var(--color-cyan-400) 10%, transparent);
|
|
1295
|
-
}
|
|
1296
|
-
}
|
|
1297
1286
|
.dark\:bg-green-400\/10:where([class*="app-dark"], [class*="app-dark"] *) {
|
|
1298
1287
|
background-color: color-mix(in srgb, oklch(79.2% 0.209 151.711) 10%, transparent);
|
|
1299
1288
|
@supports (color: color-mix(in lab, red, red)) {
|
|
@@ -1486,4 +1486,187 @@ export declare class HelixNotfound {
|
|
|
1486
1486
|
};
|
|
1487
1487
|
}, {}, never, never, true, never>;
|
|
1488
1488
|
}
|
|
1489
|
-
|
|
1489
|
+
type HelixEmptyStateSize = 'small' | 'medium';
|
|
1490
|
+
/**
|
|
1491
|
+
* The state of a list, table or page that has nothing to show: an icon, a title, a sentence that says what to do,
|
|
1492
|
+
* and projected actions (a button, a link).
|
|
1493
|
+
*
|
|
1494
|
+
* ```html
|
|
1495
|
+
* <helix-empty-state icon="pi pi-inbox" title="No invoices yet" description="Invoices you create appear here.">
|
|
1496
|
+
* <button hx-button type="button">New invoice</button>
|
|
1497
|
+
* </helix-empty-state>
|
|
1498
|
+
* ```
|
|
1499
|
+
*
|
|
1500
|
+
* `small` fits inside a table or a card, `medium` (default) is the page-level state.
|
|
1501
|
+
*/
|
|
1502
|
+
export declare class HelixEmptyState {
|
|
1503
|
+
readonly title: import("@angular/core").InputSignal<string>;
|
|
1504
|
+
readonly description: import("@angular/core").InputSignal<string | undefined>;
|
|
1505
|
+
/** Icon classes (`pi pi-inbox`). */
|
|
1506
|
+
readonly icon: import("@angular/core").InputSignal<string | undefined>;
|
|
1507
|
+
readonly size: import("@angular/core").InputSignal<HelixEmptyStateSize>;
|
|
1508
|
+
/** The heading element of the title (2–6). */
|
|
1509
|
+
readonly headingLevel: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
1510
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HelixEmptyState, never>;
|
|
1511
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HelixEmptyState, "helix-empty-state", never, {
|
|
1512
|
+
"title": {
|
|
1513
|
+
"alias": "title";
|
|
1514
|
+
"required": true;
|
|
1515
|
+
"isSignal": true;
|
|
1516
|
+
};
|
|
1517
|
+
"description": {
|
|
1518
|
+
"alias": "description";
|
|
1519
|
+
"required": false;
|
|
1520
|
+
"isSignal": true;
|
|
1521
|
+
};
|
|
1522
|
+
"icon": {
|
|
1523
|
+
"alias": "icon";
|
|
1524
|
+
"required": false;
|
|
1525
|
+
"isSignal": true;
|
|
1526
|
+
};
|
|
1527
|
+
"size": {
|
|
1528
|
+
"alias": "size";
|
|
1529
|
+
"required": false;
|
|
1530
|
+
"isSignal": true;
|
|
1531
|
+
};
|
|
1532
|
+
"headingLevel": {
|
|
1533
|
+
"alias": "headingLevel";
|
|
1534
|
+
"required": false;
|
|
1535
|
+
"isSignal": true;
|
|
1536
|
+
};
|
|
1537
|
+
}, {}, never, ["*"], true, never>;
|
|
1538
|
+
}
|
|
1539
|
+
/**
|
|
1540
|
+
* The header of a page: an optional breadcrumb, the title (an `h1` by default) with a subtitle, and the page's
|
|
1541
|
+
* actions on the end edge. The actions are projected and wrap under the title on narrow screens.
|
|
1542
|
+
*
|
|
1543
|
+
* ```html
|
|
1544
|
+
* <helix-page-header title="Invoices" subtitle="Open and paid invoices" [breadcrumb]="crumbs">
|
|
1545
|
+
* <button helixPageActions hx-button type="button">New invoice</button>
|
|
1546
|
+
* </helix-page-header>
|
|
1547
|
+
* ```
|
|
1548
|
+
*/
|
|
1549
|
+
export declare class HelixPageHeader {
|
|
1550
|
+
readonly title: import("@angular/core").InputSignal<string>;
|
|
1551
|
+
readonly subtitle: import("@angular/core").InputSignal<string | undefined>;
|
|
1552
|
+
/** The trail above the title; the current page is its last item. */
|
|
1553
|
+
readonly breadcrumb: import("@angular/core").InputSignal<readonly import("@gravionlabs/helix-ui").HxMenuItem[] | undefined>;
|
|
1554
|
+
/** The first item of the breadcrumb (usually a home icon). */
|
|
1555
|
+
readonly home: import("@angular/core").InputSignal<import("@gravionlabs/helix-ui").HxMenuItem | undefined>;
|
|
1556
|
+
/** The heading element of the title (1–6). */
|
|
1557
|
+
readonly headingLevel: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
1558
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HelixPageHeader, never>;
|
|
1559
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HelixPageHeader, "helix-page-header", never, {
|
|
1560
|
+
"title": {
|
|
1561
|
+
"alias": "title";
|
|
1562
|
+
"required": true;
|
|
1563
|
+
"isSignal": true;
|
|
1564
|
+
};
|
|
1565
|
+
"subtitle": {
|
|
1566
|
+
"alias": "subtitle";
|
|
1567
|
+
"required": false;
|
|
1568
|
+
"isSignal": true;
|
|
1569
|
+
};
|
|
1570
|
+
"breadcrumb": {
|
|
1571
|
+
"alias": "breadcrumb";
|
|
1572
|
+
"required": false;
|
|
1573
|
+
"isSignal": true;
|
|
1574
|
+
};
|
|
1575
|
+
"home": {
|
|
1576
|
+
"alias": "home";
|
|
1577
|
+
"required": false;
|
|
1578
|
+
"isSignal": true;
|
|
1579
|
+
};
|
|
1580
|
+
"headingLevel": {
|
|
1581
|
+
"alias": "headingLevel";
|
|
1582
|
+
"required": false;
|
|
1583
|
+
"isSignal": true;
|
|
1584
|
+
};
|
|
1585
|
+
}, {}, never, ["[helixPageActions]"], true, never>;
|
|
1586
|
+
}
|
|
1587
|
+
type HelixStatSeverity = 'primary' | 'info' | 'success' | 'warn' | 'danger';
|
|
1588
|
+
/**
|
|
1589
|
+
* A dashboard figure: a label, the value, an icon in a tinted box, and a trend ("+12 % since last month") whose
|
|
1590
|
+
* direction is shown by an arrow and colour and read out as "up" or "down".
|
|
1591
|
+
*
|
|
1592
|
+
* ```html
|
|
1593
|
+
* <helix-stat-card label="Orders" [value]="152" icon="pi pi-shopping-cart" [trend]="24" trendUnit="" trendLabel="new since last visit" />
|
|
1594
|
+
* <helix-stat-card label="Revenue" [value]="2100" [format]="{ style: 'currency', currency: 'EUR' }" [trend]="-3.2" trendLabel="since last week" severity="warn" />
|
|
1595
|
+
* ```
|
|
1596
|
+
*/
|
|
1597
|
+
export declare class HelixStatCard {
|
|
1598
|
+
readonly label: import("@angular/core").InputSignal<string>;
|
|
1599
|
+
readonly value: import("@angular/core").InputSignal<string | number>;
|
|
1600
|
+
/** Formats a numeric value with `Intl.NumberFormat`. */
|
|
1601
|
+
readonly format: import("@angular/core").InputSignal<Intl.NumberFormatOptions | undefined>;
|
|
1602
|
+
readonly locale: import("@angular/core").InputSignal<string | undefined>;
|
|
1603
|
+
/** Icon classes (`pi pi-users`). */
|
|
1604
|
+
readonly icon: import("@angular/core").InputSignal<string | undefined>;
|
|
1605
|
+
/** The colour of the icon box. */
|
|
1606
|
+
readonly severity: import("@angular/core").InputSignal<HelixStatSeverity>;
|
|
1607
|
+
/** The change: positive is up, negative is down, 0 is flat. */
|
|
1608
|
+
readonly trend: import("@angular/core").InputSignalWithTransform<number | undefined, unknown>;
|
|
1609
|
+
/** Appended to the trend figure. */
|
|
1610
|
+
readonly trendUnit: import("@angular/core").InputSignal<string>;
|
|
1611
|
+
/** The text after the trend ("since last month"). */
|
|
1612
|
+
readonly trendLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
1613
|
+
/** Fraction digits of the trend. */
|
|
1614
|
+
readonly trendDigits: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
1615
|
+
protected readonly formattedValue: import("@angular/core").Signal<string>;
|
|
1616
|
+
protected readonly direction: import("@angular/core").Signal<"flat" | "up" | "down" | null>;
|
|
1617
|
+
protected readonly trendText: import("@angular/core").Signal<string>;
|
|
1618
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HelixStatCard, never>;
|
|
1619
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HelixStatCard, "helix-stat-card", never, {
|
|
1620
|
+
"label": {
|
|
1621
|
+
"alias": "label";
|
|
1622
|
+
"required": true;
|
|
1623
|
+
"isSignal": true;
|
|
1624
|
+
};
|
|
1625
|
+
"value": {
|
|
1626
|
+
"alias": "value";
|
|
1627
|
+
"required": true;
|
|
1628
|
+
"isSignal": true;
|
|
1629
|
+
};
|
|
1630
|
+
"format": {
|
|
1631
|
+
"alias": "format";
|
|
1632
|
+
"required": false;
|
|
1633
|
+
"isSignal": true;
|
|
1634
|
+
};
|
|
1635
|
+
"locale": {
|
|
1636
|
+
"alias": "locale";
|
|
1637
|
+
"required": false;
|
|
1638
|
+
"isSignal": true;
|
|
1639
|
+
};
|
|
1640
|
+
"icon": {
|
|
1641
|
+
"alias": "icon";
|
|
1642
|
+
"required": false;
|
|
1643
|
+
"isSignal": true;
|
|
1644
|
+
};
|
|
1645
|
+
"severity": {
|
|
1646
|
+
"alias": "severity";
|
|
1647
|
+
"required": false;
|
|
1648
|
+
"isSignal": true;
|
|
1649
|
+
};
|
|
1650
|
+
"trend": {
|
|
1651
|
+
"alias": "trend";
|
|
1652
|
+
"required": false;
|
|
1653
|
+
"isSignal": true;
|
|
1654
|
+
};
|
|
1655
|
+
"trendUnit": {
|
|
1656
|
+
"alias": "trendUnit";
|
|
1657
|
+
"required": false;
|
|
1658
|
+
"isSignal": true;
|
|
1659
|
+
};
|
|
1660
|
+
"trendLabel": {
|
|
1661
|
+
"alias": "trendLabel";
|
|
1662
|
+
"required": false;
|
|
1663
|
+
"isSignal": true;
|
|
1664
|
+
};
|
|
1665
|
+
"trendDigits": {
|
|
1666
|
+
"alias": "trendDigits";
|
|
1667
|
+
"required": false;
|
|
1668
|
+
"isSignal": true;
|
|
1669
|
+
};
|
|
1670
|
+
}, {}, never, ["*"], true, never>;
|
|
1671
|
+
}
|
|
1672
|
+
export type { AlertItem, BadgeSeverity, Environment, HelixBreadcrumb, HelixEmptyStateSize, HelixFeature, HelixFooterColumn, HelixFooterLink, HelixHighlight, HelixLoginCredentials, HelixNavGroup, HelixNavLink, HelixNavStyle, HelixNotfoundSuggestion, HelixPricingPlan, HelixRouteMenuItem, HelixStatSeverity, HelixStatusBarTone, HelixStatusBarVersion, HelixTestimonial, HelixTopbarAction, HelixTopbarItem, HelixTopbarItemType };
|