tikal-ui-components 1.2.1 → 1.4.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.
@@ -1505,6 +1505,318 @@ i0.ɵɵngDeclareClassMetadata({
1505
1505
  }]
1506
1506
  }
1507
1507
  });
1508
- export { ButtonComponent, ChatFormComponent, ChipComponent, EmptyPlayerSlotComponent, InputComponent, MaxPlayerSelectComponent, NavLinkComponent, PlayerCountComponent, PlayerSlotComponent, PlayerSlotListComponent, SkeletonComponent };
1508
+ var ActiveSessionLinkComponent = class ActiveSessionLinkComponent {
1509
+ type = input.required(...ngDevMode ? [{ debugName: "type" }] : /* istanbul ignore next */ []);
1510
+ name = input.required(...ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []);
1511
+ route = input.required(...ngDevMode ? [{ debugName: "route" }] : /* istanbul ignore next */ []);
1512
+ static ɵfac = i0.ɵɵngDeclareFactory({
1513
+ minVersion: "12.0.0",
1514
+ version: "22.2.3",
1515
+ ngImport: i0,
1516
+ type: ActiveSessionLinkComponent,
1517
+ deps: [],
1518
+ target: i0.ɵɵFactoryTarget.Component
1519
+ });
1520
+ static ɵcmp = i0.ɵɵngDeclareComponent({
1521
+ minVersion: "17.1.0",
1522
+ version: "22.2.3",
1523
+ type: ActiveSessionLinkComponent,
1524
+ isStandalone: true,
1525
+ selector: "tikal-active-session-link",
1526
+ inputs: {
1527
+ type: {
1528
+ classPropertyName: "type",
1529
+ publicName: "type",
1530
+ isSignal: true,
1531
+ isRequired: true,
1532
+ transformFunction: null
1533
+ },
1534
+ name: {
1535
+ classPropertyName: "name",
1536
+ publicName: "name",
1537
+ isSignal: true,
1538
+ isRequired: true,
1539
+ transformFunction: null
1540
+ },
1541
+ route: {
1542
+ classPropertyName: "route",
1543
+ publicName: "route",
1544
+ isSignal: true,
1545
+ isRequired: true,
1546
+ transformFunction: null
1547
+ }
1548
+ },
1549
+ ngImport: i0,
1550
+ template: "<a\n *transloco=\"let t; prefix: 'active-session-link'\"\n ariaCurrentWhenActive=\"page\"\n outlined\n pButton\n routerLinkActive=\"active\"\n severity=\"secondary\"\n [routerLink]=\"route()\"\n>\n <span aria-hidden=\"true\" class=\"dot\"></span>\n {{ t(type(), { name: name() }) }}\n</a>\n",
1551
+ styles: ["a{--p-button-outlined-secondary-color: var(--p-text-color);--p-button-outlined-secondary-border-color: var(--p-form-field-border-color);--p-button-outlined-secondary-hover-background: var(--p-content-hover-background);background-color:var(--p-content-background);font-weight:600;white-space:nowrap;text-decoration:none}a.active{--p-button-outlined-secondary-border-color: var(--p-primary-color)}.dot{flex-shrink:0;width:.5rem;height:.5rem;border-radius:50%;background-color:var(--p-primary-color)}\n"],
1552
+ dependencies: [
1553
+ {
1554
+ kind: "directive",
1555
+ type: RouterLink,
1556
+ selector: "[routerLink]",
1557
+ inputs: [
1558
+ "target",
1559
+ "queryParams",
1560
+ "fragment",
1561
+ "queryParamsHandling",
1562
+ "state",
1563
+ "info",
1564
+ "relativeTo",
1565
+ "preserveFragment",
1566
+ "skipLocationChange",
1567
+ "replaceUrl",
1568
+ "browserUrl",
1569
+ "routerLink"
1570
+ ]
1571
+ },
1572
+ {
1573
+ kind: "directive",
1574
+ type: RouterLinkActive,
1575
+ selector: "[routerLinkActive]",
1576
+ inputs: [
1577
+ "routerLinkActiveOptions",
1578
+ "ariaCurrentWhenActive",
1579
+ "routerLinkActive"
1580
+ ],
1581
+ outputs: ["isActiveChange"],
1582
+ exportAs: ["routerLinkActive"]
1583
+ },
1584
+ {
1585
+ kind: "ngmodule",
1586
+ type: ButtonModule
1587
+ },
1588
+ {
1589
+ kind: "directive",
1590
+ type: i1$4.ButtonDirective,
1591
+ selector: "[pButton]",
1592
+ inputs: [
1593
+ "pButton",
1594
+ "pButtonPT",
1595
+ "pButtonUnstyled",
1596
+ "hostName",
1597
+ "text",
1598
+ "plain",
1599
+ "raised",
1600
+ "size",
1601
+ "outlined",
1602
+ "link",
1603
+ "rounded",
1604
+ "fluid",
1605
+ "variant",
1606
+ "iconOnly",
1607
+ "loading",
1608
+ "severity"
1609
+ ]
1610
+ },
1611
+ {
1612
+ kind: "directive",
1613
+ type: TranslocoDirective,
1614
+ selector: "[transloco]",
1615
+ inputs: [
1616
+ "transloco",
1617
+ "translocoParams",
1618
+ "translocoScope",
1619
+ "translocoRead",
1620
+ "translocoPrefix",
1621
+ "translocoLang",
1622
+ "translocoLoadingTpl"
1623
+ ]
1624
+ }
1625
+ ]
1626
+ });
1627
+ };
1628
+ i0.ɵɵngDeclareClassMetadata({
1629
+ minVersion: "12.0.0",
1630
+ version: "22.2.3",
1631
+ ngImport: i0,
1632
+ type: ActiveSessionLinkComponent,
1633
+ decorators: [{
1634
+ type: Component,
1635
+ args: [{
1636
+ selector: "tikal-active-session-link",
1637
+ imports: [
1638
+ RouterLink,
1639
+ RouterLinkActive,
1640
+ ButtonModule,
1641
+ TranslocoDirective
1642
+ ],
1643
+ template: "<a\n *transloco=\"let t; prefix: 'active-session-link'\"\n ariaCurrentWhenActive=\"page\"\n outlined\n pButton\n routerLinkActive=\"active\"\n severity=\"secondary\"\n [routerLink]=\"route()\"\n>\n <span aria-hidden=\"true\" class=\"dot\"></span>\n {{ t(type(), { name: name() }) }}\n</a>\n",
1644
+ styles: ["a{--p-button-outlined-secondary-color: var(--p-text-color);--p-button-outlined-secondary-border-color: var(--p-form-field-border-color);--p-button-outlined-secondary-hover-background: var(--p-content-hover-background);background-color:var(--p-content-background);font-weight:600;white-space:nowrap;text-decoration:none}a.active{--p-button-outlined-secondary-border-color: var(--p-primary-color)}.dot{flex-shrink:0;width:.5rem;height:.5rem;border-radius:50%;background-color:var(--p-primary-color)}\n"]
1645
+ }]
1646
+ }],
1647
+ propDecorators: {
1648
+ type: [{
1649
+ type: i0.Input,
1650
+ args: [{
1651
+ isSignal: true,
1652
+ alias: "type",
1653
+ required: true
1654
+ }]
1655
+ }],
1656
+ name: [{
1657
+ type: i0.Input,
1658
+ args: [{
1659
+ isSignal: true,
1660
+ alias: "name",
1661
+ required: true
1662
+ }]
1663
+ }],
1664
+ route: [{
1665
+ type: i0.Input,
1666
+ args: [{
1667
+ isSignal: true,
1668
+ alias: "route",
1669
+ required: true
1670
+ }]
1671
+ }]
1672
+ }
1673
+ });
1674
+ var HeaderComponent = class HeaderComponent {
1675
+ homeRoute = input("/", ...ngDevMode ? [{ debugName: "homeRoute" }] : /* istanbul ignore next */ []);
1676
+ links = input([], ...ngDevMode ? [{ debugName: "links" }] : /* istanbul ignore next */ []);
1677
+ darkMode = input(false, ...ngDevMode ? [{ debugName: "darkMode" }] : /* istanbul ignore next */ []);
1678
+ darkModeToggled = output();
1679
+ static ɵfac = i0.ɵɵngDeclareFactory({
1680
+ minVersion: "12.0.0",
1681
+ version: "22.2.3",
1682
+ ngImport: i0,
1683
+ type: HeaderComponent,
1684
+ deps: [],
1685
+ target: i0.ɵɵFactoryTarget.Component
1686
+ });
1687
+ static ɵcmp = i0.ɵɵngDeclareComponent({
1688
+ minVersion: "17.0.0",
1689
+ version: "22.2.3",
1690
+ type: HeaderComponent,
1691
+ isStandalone: true,
1692
+ selector: "tikal-header",
1693
+ inputs: {
1694
+ homeRoute: {
1695
+ classPropertyName: "homeRoute",
1696
+ publicName: "homeRoute",
1697
+ isSignal: true,
1698
+ isRequired: false,
1699
+ transformFunction: null
1700
+ },
1701
+ links: {
1702
+ classPropertyName: "links",
1703
+ publicName: "links",
1704
+ isSignal: true,
1705
+ isRequired: false,
1706
+ transformFunction: null
1707
+ },
1708
+ darkMode: {
1709
+ classPropertyName: "darkMode",
1710
+ publicName: "darkMode",
1711
+ isSignal: true,
1712
+ isRequired: false,
1713
+ transformFunction: null
1714
+ }
1715
+ },
1716
+ outputs: { darkModeToggled: "darkModeToggled" },
1717
+ ngImport: i0,
1718
+ template: "<a class=\"brand\" [routerLink]=\"homeRoute()\">\n <span class=\"brand-name\">Tikal</span>\n</a>\n\n@if (links().length) {\n <nav aria-label=\"Navigation\">\n @for (link of links(); track link.label) {\n <tikal-nav-link [exact]=\"link.exact ?? false\" [label]=\"link.label\" [route]=\"link.route\" />\n }\n </nav>\n}\n\n<span class=\"spacer\"></span>\n\n<tikal-button\n colour=\"secondary\"\n [ariaLabel]=\"darkMode() ? 'switch-to-light' : 'switch-to-dark'\"\n [icon]=\"darkMode() ? 'sun' : 'moon'\"\n [text]=\"true\"\n (clicked)=\"darkModeToggled.emit()\"\n/>\n",
1719
+ styles: [":host{display:flex;align-items:center;max-width:75rem;min-height:4rem;margin:0 auto;padding:0 clamp(1rem,3vw,2rem);gap:.5rem 1.5rem}.brand{text-decoration:none}.brand-name{color:var(--p-text-color);font-size:1.25rem;font-weight:700}nav{display:flex;gap:.25rem}.spacer{flex:1}\n"],
1720
+ dependencies: [
1721
+ {
1722
+ kind: "directive",
1723
+ type: RouterLink,
1724
+ selector: "[routerLink]",
1725
+ inputs: [
1726
+ "target",
1727
+ "queryParams",
1728
+ "fragment",
1729
+ "queryParamsHandling",
1730
+ "state",
1731
+ "info",
1732
+ "relativeTo",
1733
+ "preserveFragment",
1734
+ "skipLocationChange",
1735
+ "replaceUrl",
1736
+ "browserUrl",
1737
+ "routerLink"
1738
+ ]
1739
+ },
1740
+ {
1741
+ kind: "component",
1742
+ type: NavLinkComponent,
1743
+ selector: "tikal-nav-link",
1744
+ inputs: [
1745
+ "label",
1746
+ "route",
1747
+ "exact"
1748
+ ]
1749
+ },
1750
+ {
1751
+ kind: "component",
1752
+ type: ButtonComponent,
1753
+ selector: "tikal-button",
1754
+ inputs: [
1755
+ "icon",
1756
+ "colour",
1757
+ "size",
1758
+ "label",
1759
+ "ariaLabel",
1760
+ "isLoading",
1761
+ "outline",
1762
+ "type",
1763
+ "text",
1764
+ "form"
1765
+ ],
1766
+ outputs: ["clicked"]
1767
+ }
1768
+ ]
1769
+ });
1770
+ };
1771
+ i0.ɵɵngDeclareClassMetadata({
1772
+ minVersion: "12.0.0",
1773
+ version: "22.2.3",
1774
+ ngImport: i0,
1775
+ type: HeaderComponent,
1776
+ decorators: [{
1777
+ type: Component,
1778
+ args: [{
1779
+ selector: "tikal-header",
1780
+ imports: [
1781
+ RouterLink,
1782
+ NavLinkComponent,
1783
+ ButtonComponent
1784
+ ],
1785
+ template: "<a class=\"brand\" [routerLink]=\"homeRoute()\">\n <span class=\"brand-name\">Tikal</span>\n</a>\n\n@if (links().length) {\n <nav aria-label=\"Navigation\">\n @for (link of links(); track link.label) {\n <tikal-nav-link [exact]=\"link.exact ?? false\" [label]=\"link.label\" [route]=\"link.route\" />\n }\n </nav>\n}\n\n<span class=\"spacer\"></span>\n\n<tikal-button\n colour=\"secondary\"\n [ariaLabel]=\"darkMode() ? 'switch-to-light' : 'switch-to-dark'\"\n [icon]=\"darkMode() ? 'sun' : 'moon'\"\n [text]=\"true\"\n (clicked)=\"darkModeToggled.emit()\"\n/>\n",
1786
+ styles: [":host{display:flex;align-items:center;max-width:75rem;min-height:4rem;margin:0 auto;padding:0 clamp(1rem,3vw,2rem);gap:.5rem 1.5rem}.brand{text-decoration:none}.brand-name{color:var(--p-text-color);font-size:1.25rem;font-weight:700}nav{display:flex;gap:.25rem}.spacer{flex:1}\n"]
1787
+ }]
1788
+ }],
1789
+ propDecorators: {
1790
+ homeRoute: [{
1791
+ type: i0.Input,
1792
+ args: [{
1793
+ isSignal: true,
1794
+ alias: "homeRoute",
1795
+ required: false
1796
+ }]
1797
+ }],
1798
+ links: [{
1799
+ type: i0.Input,
1800
+ args: [{
1801
+ isSignal: true,
1802
+ alias: "links",
1803
+ required: false
1804
+ }]
1805
+ }],
1806
+ darkMode: [{
1807
+ type: i0.Input,
1808
+ args: [{
1809
+ isSignal: true,
1810
+ alias: "darkMode",
1811
+ required: false
1812
+ }]
1813
+ }],
1814
+ darkModeToggled: [{
1815
+ type: i0.Output,
1816
+ args: ["darkModeToggled"]
1817
+ }]
1818
+ }
1819
+ });
1820
+ export { ActiveSessionLinkComponent, ButtonComponent, ChatFormComponent, ChipComponent, EmptyPlayerSlotComponent, HeaderComponent, InputComponent, MaxPlayerSelectComponent, NavLinkComponent, PlayerCountComponent, PlayerSlotComponent, PlayerSlotListComponent, SkeletonComponent };
1509
1821
 
1510
1822
  //# sourceMappingURL=tikal-ui-components.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"tikal-ui-components.mjs","names":[],"sources":["../../../projects/tikal-ui-components/src/pipes/enum-map.ts","../../../projects/tikal-ui-components/src/lib/components/button/button.ts","../../../projects/tikal-ui-components/src/lib/components/button/button.html","../../../projects/tikal-ui-components/src/lib/components/input/input.ts","../../../projects/tikal-ui-components/src/lib/components/input/input.html","../../../projects/tikal-ui-components/src/lib/components/chat-form/chat-form.ts","../../../projects/tikal-ui-components/src/lib/components/chat-form/chat-form.html","../../../projects/tikal-ui-components/src/lib/components/skeleton/skeleton.ts","../../../projects/tikal-ui-components/src/lib/components/skeleton/skeleton.html","../../../projects/tikal-ui-components/src/lib/components/player-count/player-count.ts","../../../projects/tikal-ui-components/src/lib/components/player-count/player-count.html","../../../projects/tikal-ui-components/src/lib/components/chip/chip.ts","../../../projects/tikal-ui-components/src/lib/components/chip/chip.html","../../../projects/tikal-ui-components/src/lib/components/empty-player-slot/empty-player-slot.ts","../../../projects/tikal-ui-components/src/lib/components/empty-player-slot/empty-player-slot.html","../../../projects/tikal-ui-components/src/lib/components/player-slot/player-slot.ts","../../../projects/tikal-ui-components/src/lib/components/player-slot/player-slot.html","../../../projects/tikal-ui-components/src/lib/components/player-slot-list/player-slot-list.ts","../../../projects/tikal-ui-components/src/lib/components/player-slot-list/player-slot-list.html","../../../projects/tikal-ui-components/src/lib/components/max-player-select/max-player-select.ts","../../../projects/tikal-ui-components/src/lib/components/max-player-select/max-player-select.html","../../../projects/tikal-ui-components/src/lib/components/nav-link/nav-link.ts","../../../projects/tikal-ui-components/src/lib/components/nav-link/nav-link.html"],"sourcesContent":["import { Pipe, PipeTransform } from '@angular/core';\n\n@Pipe({\n name: 'enumMap',\n})\nexport class EnumMapPipe<T> implements PipeTransform {\n transform(value: unknown, enumMap: object, defaultValue?: T): T {\n return enumMap[value as keyof typeof enumMap] ?? defaultValue ?? value;\n }\n}\n","import { Component, input, output } from '@angular/core';\nimport { PIcon, Spinner } from '@primeicons/angular';\nimport { ButtonModule } from 'primeng/button';\nimport { EnumMapPipe } from '../../../pipes/enum-map';\n\nexport type ButtonColour = 'primary' | 'secondary';\n\nexport type ButtonSize = 'small' | 'normal' | 'large';\n\nexport type ButtonType = 'button' | 'submit' | 'reset';\n\n@Component({\n selector: 'tikal-button',\n imports: [ButtonModule, PIcon, EnumMapPipe, Spinner],\n templateUrl: './button.html',\n styleUrl: './button.scss',\n})\nexport class ButtonComponent {\n /** What icon should the button display? */\n readonly icon = input<string>('');\n\n /** What colour should the button be? */\n readonly colour = input<ButtonColour>('primary');\n\n /** What size should the button be? */\n readonly size = input<ButtonSize>('normal');\n\n /** @ignore */\n readonly sizeMap = {\n normal: undefined,\n };\n\n /** What text should the button display? */\n readonly label = input<string>();\n\n /** How should assistive technology announce the button? Required for buttons without a label. */\n readonly ariaLabel = input<string>();\n\n /** Is the action related to the button currently running? */\n readonly isLoading = input<boolean>(false);\n\n /** Should the button have an outline? */\n readonly outline = input<boolean>(false);\n\n /** What type should the button be? */\n readonly type = input<ButtonType>('button');\n\n /** Should the button only appear as text? */\n readonly text = input<boolean>(false);\n\n /** @ignore */\n readonly clicked = output<void>();\n\n /** What form should the button belong to? */\n readonly form = input<string>();\n}\n","<button\n pButton\n [attr.aria-label]=\"ariaLabel()\"\n [attr.form]=\"form()\"\n [disabled]=\"isLoading()\"\n [iconOnly]=\"!label()\"\n [outlined]=\"outline()\"\n [severity]=\"colour()\"\n [size]=\"size() | enumMap: sizeMap\"\n [type]=\"type()\"\n [variant]=\"text() ? 'text' : undefined\"\n (click)=\"clicked.emit()\"\n>\n @if (isLoading()) {\n <svg data-p-icon=\"spinner\" [spin]=\"true\"></svg>\n } @else if (icon()) {\n <svg [pIcon]=\"icon()\"></svg>\n }\n {{ label() }}\n</button>\n","import { Component, model, input } from '@angular/core';\nimport { FormValueControl } from '@angular/forms/signals';\nimport { InputTextModule } from 'primeng/inputtext';\n\n@Component({\n selector: 'tikal-input',\n imports: [InputTextModule],\n templateUrl: './input.html',\n styleUrl: './input.scss',\n})\nexport class InputComponent implements FormValueControl<string> {\n /** What value should the input have */\n readonly value = model('');\n\n /** Should the input be disabled */\n readonly disabled = input<boolean>(false);\n\n /** Is the content of the input invalid? */\n readonly invalid = input<boolean>(false);\n\n /** Is the input required? */\n readonly required = input<boolean>(false);\n\n /** Was the input touched */\n readonly touched = input<boolean>(false);\n\n /** What is the max input length? */\n readonly maxLength = input<number>();\n\n /** What is the label of the input element? */\n readonly label = input<string>();\n\n /** What placeholder should the input display? */\n readonly placeholder = input<string>();\n\n /** Should the input take the full widht? */\n readonly expand = input<boolean>(false);\n}\n","<input\n pInputText\n [ariaLabel]=\"label()\"\n [class.full-length]=\"expand()\"\n [disabled]=\"disabled()\"\n [invalid]=\"invalid() && touched()\"\n [maxLength]=\"maxLength()\"\n [placeholder]=\"placeholder()\"\n [required]=\"required()\"\n [value]=\"value()\"\n (input)=\"value.set($event.target.value)\"\n/>\n","import { Component, input, signal } from '@angular/core';\nimport { disabled, form, required, FormRoot, FormField, maxLength } from '@angular/forms/signals';\nimport { InputComponent } from '../input/input';\nimport { ButtonComponent } from '../button/button';\n\ntype ChatFormData = {\n message: string;\n};\n\n@Component({\n selector: 'tikal-chat-form',\n imports: [FormRoot, FormField, InputComponent, ButtonComponent],\n templateUrl: './chat-form.html',\n styleUrl: './chat-form.scss',\n})\nexport class ChatFormComponent {\n /** @ignore */\n private readonly chatFormData = signal<ChatFormData>({ message: '' });\n\n /** What should happen when the form is submitted? */\n readonly onSubmission = input.required<(message: string) => Promise<void>>();\n\n /** What placeholder should be displayed on the input? */\n readonly placeholder = input<string>();\n\n /** What is the max input length? */\n readonly maxLength = input<number>(50);\n\n /** What is the label of the input element? */\n readonly label = input<string>();\n\n /** @ignore */\n readonly chatForm = form(\n this.chatFormData,\n (schemaPath) => {\n required(schemaPath.message);\n maxLength(schemaPath.message, () => this.maxLength());\n disabled(schemaPath, { when: () => this.chatForm().submitting() });\n },\n {\n submission: {\n action: async (field) => {\n const message = field().value().message;\n\n await this.onSubmission()(message);\n\n field.message().reset('');\n },\n },\n },\n );\n}\n","<form [formRoot]=\"chatForm\">\n <tikal-input [formField]=\"chatForm.message\" [label]=\"label()\" [placeholder]=\"placeholder()\" />\n <tikal-button icon=\"send\" type=\"submit\" [isLoading]=\"chatForm().submitting()\" />\n</form>\n","import { Component } from '@angular/core';\nimport { SkeletonModule } from 'primeng/skeleton';\n\n@Component({\n selector: 'tikal-skeleton',\n imports: [SkeletonModule],\n templateUrl: './skeleton.html',\n styleUrl: './skeleton.scss',\n})\nexport class SkeletonComponent {}\n","<p-skeleton />\n","import { Component, input } from '@angular/core';\n\n@Component({\n selector: 'tikal-player-count',\n imports: [],\n templateUrl: './player-count.html',\n styleUrl: './player-count.scss',\n})\nexport class PlayerCountComponent {\n /** How many players are currently in the lobby? */\n readonly currentPlayers = input.required<number>();\n\n /** How many players fit in the lobby? */\n readonly maxPlayers = input.required<number>();\n}\n","<p>{{ currentPlayers() }}/{{ maxPlayers() }}</p>\n<div class=\"bar\">\n <div\n class=\"bar-fill\"\n [class.full]=\"currentPlayers() >= maxPlayers()\"\n [style.width]=\"(currentPlayers() / maxPlayers()) * 100 + '%'\"\n ></div>\n</div>\n","import { Component, input } from '@angular/core';\nimport { ChipModule } from 'primeng/chip';\nimport { PIcon } from '@primeicons/angular';\n\n@Component({\n selector: 'tikal-chip',\n imports: [ChipModule, PIcon],\n templateUrl: './chip.html',\n styleUrl: './chip.scss',\n})\nexport class ChipComponent {\n /** What icon should the chip display? */\n readonly icon = input<string>('');\n\n /** What text should the chip display? */\n readonly label = input.required<string>();\n}\n","<p-chip [label]=\"label()\">\n @if (icon()) {\n <svg [pIcon]=\"icon()\"></svg>\n }\n</p-chip>\n","import { Component, input } from '@angular/core';\nimport { TranslocoDirective } from '@jsverse/transloco';\nimport { SkeletonComponent } from '../skeleton/skeleton';\n\n@Component({\n selector: 'tikal-empty-player-slot',\n imports: [TranslocoDirective, SkeletonComponent],\n templateUrl: './empty-player-slot.html',\n styleUrl: './empty-player-slot.scss',\n})\nexport class EmptyPlayerSlotComponent {\n /** Is the player currently loading? */\n readonly isLoading = input<boolean>(false);\n}\n","@if (isLoading()) {\n <tikal-skeleton />\n} @else {\n <ng-container *transloco=\"let t; prefix: 'empty-player-slot'\">\n <span class=\"dot\"></span>\n <p>{{ t('open-slot') }}</p>\n </ng-container>\n}\n","import { Component, input } from '@angular/core';\nimport { EnumMapPipe } from '../../../pipes/enum-map';\nimport { Crown } from '@primeicons/angular/crown';\nimport { TranslocoDirective } from '@jsverse/transloco';\n\nexport type PlayerColour = 'red' | 'black' | 'green' | 'blue' | 'yellow';\n\n@Component({\n selector: 'tikal-player-slot',\n imports: [EnumMapPipe, Crown, TranslocoDirective],\n templateUrl: './player-slot.html',\n styleUrl: './player-slot.scss',\n})\nexport class PlayerSlotComponent {\n /** What is the name of the player? */\n readonly name = input.required<string>();\n\n /** What is the colour of the player? */\n readonly colour = input.required<PlayerColour>();\n\n /** Is the player ready? */\n readonly isReady = input.required<boolean>();\n\n /** Is the player an owner of the lobby? */\n readonly isOwner = input.required<boolean>();\n\n /** Is the player the currently authenticated user? */\n readonly isMe = input.required<boolean>();\n\n /** @ignore */\n readonly colourMap = {\n red: 'var(--p-red-500)',\n green: 'var(--p-green-500)',\n blue: 'var(--p-blue-500)',\n yellow: 'var(--p-yellow-500)',\n };\n}\n","<ng-container *transloco=\"let t; prefix: 'player-slot'\">\n <div class=\"main-group\">\n <span class=\"dot\" [style.background-color]=\"colour() | enumMap: colourMap\"></span>\n <p>{{ name() }}</p>\n @if (isMe()) {\n <p>({{ t('you') }})</p>\n }\n @if (isOwner()) {\n <svg aria-label=\"crown\" color=\"var(--p-yellow-600)\" data-p-icon=\"crown\" [size]=\"20\"></svg>\n }\n </div>\n @if (isReady()) {\n <p class=\"ready\">{{ t('ready') }}</p>\n } @else {\n <p class=\"not-ready\">{{ t('not-ready') }}</p>\n }\n</ng-container>\n","import { Component, input } from '@angular/core';\nimport { PlayerColour, PlayerSlotComponent } from '../player-slot/player-slot';\nimport { EmptyPlayerSlotComponent } from '../empty-player-slot/empty-player-slot';\nimport { User } from '@primeicons/angular';\nimport { TranslocoDirective } from '@jsverse/transloco';\n\nexport type PlayerSlotData = {\n name: string;\n selectedColour: PlayerColour;\n isReady: boolean;\n isOwner: boolean;\n isMe: boolean;\n};\n\n@Component({\n selector: 'tikal-player-slot-list',\n imports: [PlayerSlotComponent, EmptyPlayerSlotComponent, User, TranslocoDirective],\n templateUrl: './player-slot-list.html',\n styleUrl: './player-slot-list.scss',\n})\nexport class PlayerSlotListComponent {\n /** How many players fit in the lobby? */\n readonly maxPlayers = input.required<number>();\n\n /** What players are currently in the lobby? */\n readonly players = input.required<PlayerSlotData[]>();\n\n /** Are the players currenlty loading? */\n readonly isLoading = input<boolean>(false);\n}\n","<ng-container *transloco=\"let t; prefix: 'player-slot-list'\">\n <div class=\"header\">\n <span>{{ t('players') }}</span>\n <svg aria-label=\"user\" data-p-icon=\"user\"></svg>\n <span>{{ players().length }}/{{ maxPlayers() }}</span>\n </div>\n <div class=\"players\">\n @if (isLoading()) {\n @for (empty of [].constructor(maxPlayers()); track $index) {\n <tikal-empty-player-slot [isLoading]=\"true\" />\n }\n } @else {\n @for (player of players(); track $index) {\n <tikal-player-slot\n [colour]=\"player.selectedColour\"\n [isMe]=\"player.isMe\"\n [isOwner]=\"player.isOwner\"\n [isReady]=\"player.isReady\"\n [name]=\"player.name\"\n />\n }\n @for (empty of [].constructor(maxPlayers() - players().length); track $index) {\n <tikal-empty-player-slot />\n }\n }\n </div>\n</ng-container>\n","import { Component, input, model } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { FormValueControl } from '@angular/forms/signals';\nimport { SelectButtonModule } from 'primeng/selectbutton';\n\n@Component({\n selector: 'tikal-max-player-select',\n imports: [SelectButtonModule, FormsModule],\n templateUrl: './max-player-select.html',\n styleUrl: './max-player-select.scss',\n})\nexport class MaxPlayerSelectComponent implements FormValueControl<number> {\n /** What value should the input have? */\n readonly value = model(3);\n\n /** Does the control hold an invalid value? */\n readonly invalid = input(false);\n\n /** @ignore */\n readonly options = [\n { label: '2', value: 2 },\n { label: '3', value: 3 },\n { label: '4', value: 4 },\n ];\n}\n","<p-selectbutton\n optionLabel=\"label\"\n optionValue=\"value\"\n [invalid]=\"invalid()\"\n [options]=\"options\"\n [(ngModel)]=\"value\"\n/>\n","import { Component, computed, input } from '@angular/core';\nimport { RouterLink, RouterLinkActive } from '@angular/router';\n\n@Component({\n selector: 'tikal-nav-link',\n imports: [RouterLink, RouterLinkActive],\n templateUrl: './nav-link.html',\n styleUrl: './nav-link.scss',\n})\nexport class NavLinkComponent {\n /** What text should the link display? */\n readonly label = input.required<string>();\n\n /** What route should the link navigate to? */\n readonly route = input.required<string | readonly unknown[]>();\n\n /** Should the link only be marked active when the route matches exactly (not for child routes)? */\n readonly exact = input<boolean>(false);\n\n /** @ignore */\n readonly activeOptions = computed(() => ({ exact: this.exact() }));\n}\n","<a\n ariaCurrentWhenActive=\"page\"\n routerLinkActive=\"active\"\n [routerLink]=\"route()\"\n [routerLinkActiveOptions]=\"activeOptions()\"\n >{{ label() }}</a\n>\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAKA,IAAa,cAAb,MAAa,YAAW;CACtB,UAAU,OAAgB,SAAiB,cAAgB;EACzD,OAAO,QAAQ,UAAkC,gBAAgB;CACnE;CAHW,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAW,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAAX,OAAA,QAAA,GAAA,gBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAW,cAAA;EAAA,MAAA;CAAA,C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AAA,UAAA;CAAA,MAAA;CAAgB,YAAA,CAAA;EAN5B,MAAA;EACW,MAAA,CAAA;GAAA,UAAA;GAAgB,SACjB,CAAC,YAAY,gBAAgB;GAAC,UAAA;GAAA,QAAA,CAAA,qYAAA;EAAA,CAAA"}
1
+ {"version":3,"file":"tikal-ui-components.mjs","names":[],"sources":["../../../projects/tikal-ui-components/src/pipes/enum-map.ts","../../../projects/tikal-ui-components/src/lib/components/button/button.ts","../../../projects/tikal-ui-components/src/lib/components/button/button.html","../../../projects/tikal-ui-components/src/lib/components/input/input.ts","../../../projects/tikal-ui-components/src/lib/components/input/input.html","../../../projects/tikal-ui-components/src/lib/components/chat-form/chat-form.ts","../../../projects/tikal-ui-components/src/lib/components/chat-form/chat-form.html","../../../projects/tikal-ui-components/src/lib/components/skeleton/skeleton.ts","../../../projects/tikal-ui-components/src/lib/components/skeleton/skeleton.html","../../../projects/tikal-ui-components/src/lib/components/player-count/player-count.ts","../../../projects/tikal-ui-components/src/lib/components/player-count/player-count.html","../../../projects/tikal-ui-components/src/lib/components/chip/chip.ts","../../../projects/tikal-ui-components/src/lib/components/chip/chip.html","../../../projects/tikal-ui-components/src/lib/components/empty-player-slot/empty-player-slot.ts","../../../projects/tikal-ui-components/src/lib/components/empty-player-slot/empty-player-slot.html","../../../projects/tikal-ui-components/src/lib/components/player-slot/player-slot.ts","../../../projects/tikal-ui-components/src/lib/components/player-slot/player-slot.html","../../../projects/tikal-ui-components/src/lib/components/player-slot-list/player-slot-list.ts","../../../projects/tikal-ui-components/src/lib/components/player-slot-list/player-slot-list.html","../../../projects/tikal-ui-components/src/lib/components/max-player-select/max-player-select.ts","../../../projects/tikal-ui-components/src/lib/components/max-player-select/max-player-select.html","../../../projects/tikal-ui-components/src/lib/components/nav-link/nav-link.ts","../../../projects/tikal-ui-components/src/lib/components/nav-link/nav-link.html","../../../projects/tikal-ui-components/src/lib/components/active-session-link/active-session-link.ts","../../../projects/tikal-ui-components/src/lib/components/active-session-link/active-session-link.html","../../../projects/tikal-ui-components/src/lib/components/header/header.ts","../../../projects/tikal-ui-components/src/lib/components/header/header.html"],"sourcesContent":["import { Pipe, PipeTransform } from '@angular/core';\n\n@Pipe({\n name: 'enumMap',\n})\nexport class EnumMapPipe<T> implements PipeTransform {\n transform(value: unknown, enumMap: object, defaultValue?: T): T {\n return enumMap[value as keyof typeof enumMap] ?? defaultValue ?? value;\n }\n}\n","import { Component, input, output } from '@angular/core';\nimport { PIcon, Spinner } from '@primeicons/angular';\nimport { ButtonModule } from 'primeng/button';\nimport { EnumMapPipe } from '../../../pipes/enum-map';\n\nexport type ButtonColour = 'primary' | 'secondary';\n\nexport type ButtonSize = 'small' | 'normal' | 'large';\n\nexport type ButtonType = 'button' | 'submit' | 'reset';\n\n@Component({\n selector: 'tikal-button',\n imports: [ButtonModule, PIcon, EnumMapPipe, Spinner],\n templateUrl: './button.html',\n styleUrl: './button.scss',\n})\nexport class ButtonComponent {\n /** What icon should the button display? */\n readonly icon = input<string>('');\n\n /** What colour should the button be? */\n readonly colour = input<ButtonColour>('primary');\n\n /** What size should the button be? */\n readonly size = input<ButtonSize>('normal');\n\n /** @ignore */\n readonly sizeMap = {\n normal: undefined,\n };\n\n /** What text should the button display? */\n readonly label = input<string>();\n\n /** How should assistive technology announce the button? Required for buttons without a label. */\n readonly ariaLabel = input<string>();\n\n /** Is the action related to the button currently running? */\n readonly isLoading = input<boolean>(false);\n\n /** Should the button have an outline? */\n readonly outline = input<boolean>(false);\n\n /** What type should the button be? */\n readonly type = input<ButtonType>('button');\n\n /** Should the button only appear as text? */\n readonly text = input<boolean>(false);\n\n /** @ignore */\n readonly clicked = output<void>();\n\n /** What form should the button belong to? */\n readonly form = input<string>();\n}\n","<button\n pButton\n [attr.aria-label]=\"ariaLabel()\"\n [attr.form]=\"form()\"\n [disabled]=\"isLoading()\"\n [iconOnly]=\"!label()\"\n [outlined]=\"outline()\"\n [severity]=\"colour()\"\n [size]=\"size() | enumMap: sizeMap\"\n [type]=\"type()\"\n [variant]=\"text() ? 'text' : undefined\"\n (click)=\"clicked.emit()\"\n>\n @if (isLoading()) {\n <svg data-p-icon=\"spinner\" [spin]=\"true\"></svg>\n } @else if (icon()) {\n <svg [pIcon]=\"icon()\"></svg>\n }\n {{ label() }}\n</button>\n","import { Component, model, input } from '@angular/core';\nimport { FormValueControl } from '@angular/forms/signals';\nimport { InputTextModule } from 'primeng/inputtext';\n\n@Component({\n selector: 'tikal-input',\n imports: [InputTextModule],\n templateUrl: './input.html',\n styleUrl: './input.scss',\n})\nexport class InputComponent implements FormValueControl<string> {\n /** What value should the input have */\n readonly value = model('');\n\n /** Should the input be disabled */\n readonly disabled = input<boolean>(false);\n\n /** Is the content of the input invalid? */\n readonly invalid = input<boolean>(false);\n\n /** Is the input required? */\n readonly required = input<boolean>(false);\n\n /** Was the input touched */\n readonly touched = input<boolean>(false);\n\n /** What is the max input length? */\n readonly maxLength = input<number>();\n\n /** What is the label of the input element? */\n readonly label = input<string>();\n\n /** What placeholder should the input display? */\n readonly placeholder = input<string>();\n\n /** Should the input take the full widht? */\n readonly expand = input<boolean>(false);\n}\n","<input\n pInputText\n [ariaLabel]=\"label()\"\n [class.full-length]=\"expand()\"\n [disabled]=\"disabled()\"\n [invalid]=\"invalid() && touched()\"\n [maxLength]=\"maxLength()\"\n [placeholder]=\"placeholder()\"\n [required]=\"required()\"\n [value]=\"value()\"\n (input)=\"value.set($event.target.value)\"\n/>\n","import { Component, input, signal } from '@angular/core';\nimport { disabled, form, required, FormRoot, FormField, maxLength } from '@angular/forms/signals';\nimport { InputComponent } from '../input/input';\nimport { ButtonComponent } from '../button/button';\n\ntype ChatFormData = {\n message: string;\n};\n\n@Component({\n selector: 'tikal-chat-form',\n imports: [FormRoot, FormField, InputComponent, ButtonComponent],\n templateUrl: './chat-form.html',\n styleUrl: './chat-form.scss',\n})\nexport class ChatFormComponent {\n /** @ignore */\n private readonly chatFormData = signal<ChatFormData>({ message: '' });\n\n /** What should happen when the form is submitted? */\n readonly onSubmission = input.required<(message: string) => Promise<void>>();\n\n /** What placeholder should be displayed on the input? */\n readonly placeholder = input<string>();\n\n /** What is the max input length? */\n readonly maxLength = input<number>(50);\n\n /** What is the label of the input element? */\n readonly label = input<string>();\n\n /** @ignore */\n readonly chatForm = form(\n this.chatFormData,\n (schemaPath) => {\n required(schemaPath.message);\n maxLength(schemaPath.message, () => this.maxLength());\n disabled(schemaPath, { when: () => this.chatForm().submitting() });\n },\n {\n submission: {\n action: async (field) => {\n const message = field().value().message;\n\n await this.onSubmission()(message);\n\n field.message().reset('');\n },\n },\n },\n );\n}\n","<form [formRoot]=\"chatForm\">\n <tikal-input [formField]=\"chatForm.message\" [label]=\"label()\" [placeholder]=\"placeholder()\" />\n <tikal-button icon=\"send\" type=\"submit\" [isLoading]=\"chatForm().submitting()\" />\n</form>\n","import { Component } from '@angular/core';\nimport { SkeletonModule } from 'primeng/skeleton';\n\n@Component({\n selector: 'tikal-skeleton',\n imports: [SkeletonModule],\n templateUrl: './skeleton.html',\n styleUrl: './skeleton.scss',\n})\nexport class SkeletonComponent {}\n","<p-skeleton />\n","import { Component, input } from '@angular/core';\n\n@Component({\n selector: 'tikal-player-count',\n imports: [],\n templateUrl: './player-count.html',\n styleUrl: './player-count.scss',\n})\nexport class PlayerCountComponent {\n /** How many players are currently in the lobby? */\n readonly currentPlayers = input.required<number>();\n\n /** How many players fit in the lobby? */\n readonly maxPlayers = input.required<number>();\n}\n","<p>{{ currentPlayers() }}/{{ maxPlayers() }}</p>\n<div class=\"bar\">\n <div\n class=\"bar-fill\"\n [class.full]=\"currentPlayers() >= maxPlayers()\"\n [style.width]=\"(currentPlayers() / maxPlayers()) * 100 + '%'\"\n ></div>\n</div>\n","import { Component, input } from '@angular/core';\nimport { ChipModule } from 'primeng/chip';\nimport { PIcon } from '@primeicons/angular';\n\n@Component({\n selector: 'tikal-chip',\n imports: [ChipModule, PIcon],\n templateUrl: './chip.html',\n styleUrl: './chip.scss',\n})\nexport class ChipComponent {\n /** What icon should the chip display? */\n readonly icon = input<string>('');\n\n /** What text should the chip display? */\n readonly label = input.required<string>();\n}\n","<p-chip [label]=\"label()\">\n @if (icon()) {\n <svg [pIcon]=\"icon()\"></svg>\n }\n</p-chip>\n","import { Component, input } from '@angular/core';\nimport { TranslocoDirective } from '@jsverse/transloco';\nimport { SkeletonComponent } from '../skeleton/skeleton';\n\n@Component({\n selector: 'tikal-empty-player-slot',\n imports: [TranslocoDirective, SkeletonComponent],\n templateUrl: './empty-player-slot.html',\n styleUrl: './empty-player-slot.scss',\n})\nexport class EmptyPlayerSlotComponent {\n /** Is the player currently loading? */\n readonly isLoading = input<boolean>(false);\n}\n","@if (isLoading()) {\n <tikal-skeleton />\n} @else {\n <ng-container *transloco=\"let t; prefix: 'empty-player-slot'\">\n <span class=\"dot\"></span>\n <p>{{ t('open-slot') }}</p>\n </ng-container>\n}\n","import { Component, input } from '@angular/core';\nimport { EnumMapPipe } from '../../../pipes/enum-map';\nimport { Crown } from '@primeicons/angular/crown';\nimport { TranslocoDirective } from '@jsverse/transloco';\n\nexport type PlayerColour = 'red' | 'black' | 'green' | 'blue' | 'yellow';\n\n@Component({\n selector: 'tikal-player-slot',\n imports: [EnumMapPipe, Crown, TranslocoDirective],\n templateUrl: './player-slot.html',\n styleUrl: './player-slot.scss',\n})\nexport class PlayerSlotComponent {\n /** What is the name of the player? */\n readonly name = input.required<string>();\n\n /** What is the colour of the player? */\n readonly colour = input.required<PlayerColour>();\n\n /** Is the player ready? */\n readonly isReady = input.required<boolean>();\n\n /** Is the player an owner of the lobby? */\n readonly isOwner = input.required<boolean>();\n\n /** Is the player the currently authenticated user? */\n readonly isMe = input.required<boolean>();\n\n /** @ignore */\n readonly colourMap = {\n red: 'var(--p-red-500)',\n green: 'var(--p-green-500)',\n blue: 'var(--p-blue-500)',\n yellow: 'var(--p-yellow-500)',\n };\n}\n","<ng-container *transloco=\"let t; prefix: 'player-slot'\">\n <div class=\"main-group\">\n <span class=\"dot\" [style.background-color]=\"colour() | enumMap: colourMap\"></span>\n <p>{{ name() }}</p>\n @if (isMe()) {\n <p>({{ t('you') }})</p>\n }\n @if (isOwner()) {\n <svg aria-label=\"crown\" color=\"var(--p-yellow-600)\" data-p-icon=\"crown\" [size]=\"20\"></svg>\n }\n </div>\n @if (isReady()) {\n <p class=\"ready\">{{ t('ready') }}</p>\n } @else {\n <p class=\"not-ready\">{{ t('not-ready') }}</p>\n }\n</ng-container>\n","import { Component, input } from '@angular/core';\nimport { PlayerColour, PlayerSlotComponent } from '../player-slot/player-slot';\nimport { EmptyPlayerSlotComponent } from '../empty-player-slot/empty-player-slot';\nimport { User } from '@primeicons/angular';\nimport { TranslocoDirective } from '@jsverse/transloco';\n\nexport type PlayerSlotData = {\n name: string;\n selectedColour: PlayerColour;\n isReady: boolean;\n isOwner: boolean;\n isMe: boolean;\n};\n\n@Component({\n selector: 'tikal-player-slot-list',\n imports: [PlayerSlotComponent, EmptyPlayerSlotComponent, User, TranslocoDirective],\n templateUrl: './player-slot-list.html',\n styleUrl: './player-slot-list.scss',\n})\nexport class PlayerSlotListComponent {\n /** How many players fit in the lobby? */\n readonly maxPlayers = input.required<number>();\n\n /** What players are currently in the lobby? */\n readonly players = input.required<PlayerSlotData[]>();\n\n /** Are the players currenlty loading? */\n readonly isLoading = input<boolean>(false);\n}\n","<ng-container *transloco=\"let t; prefix: 'player-slot-list'\">\n <div class=\"header\">\n <span>{{ t('players') }}</span>\n <svg aria-label=\"user\" data-p-icon=\"user\"></svg>\n <span>{{ players().length }}/{{ maxPlayers() }}</span>\n </div>\n <div class=\"players\">\n @if (isLoading()) {\n @for (empty of [].constructor(maxPlayers()); track $index) {\n <tikal-empty-player-slot [isLoading]=\"true\" />\n }\n } @else {\n @for (player of players(); track $index) {\n <tikal-player-slot\n [colour]=\"player.selectedColour\"\n [isMe]=\"player.isMe\"\n [isOwner]=\"player.isOwner\"\n [isReady]=\"player.isReady\"\n [name]=\"player.name\"\n />\n }\n @for (empty of [].constructor(maxPlayers() - players().length); track $index) {\n <tikal-empty-player-slot />\n }\n }\n </div>\n</ng-container>\n","import { Component, input, model } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { FormValueControl } from '@angular/forms/signals';\nimport { SelectButtonModule } from 'primeng/selectbutton';\n\n@Component({\n selector: 'tikal-max-player-select',\n imports: [SelectButtonModule, FormsModule],\n templateUrl: './max-player-select.html',\n styleUrl: './max-player-select.scss',\n})\nexport class MaxPlayerSelectComponent implements FormValueControl<number> {\n /** What value should the input have? */\n readonly value = model(3);\n\n /** Does the control hold an invalid value? */\n readonly invalid = input(false);\n\n /** @ignore */\n readonly options = [\n { label: '2', value: 2 },\n { label: '3', value: 3 },\n { label: '4', value: 4 },\n ];\n}\n","<p-selectbutton\n optionLabel=\"label\"\n optionValue=\"value\"\n [invalid]=\"invalid()\"\n [options]=\"options\"\n [(ngModel)]=\"value\"\n/>\n","import { Component, computed, input } from '@angular/core';\nimport { RouterLink, RouterLinkActive } from '@angular/router';\n\n@Component({\n selector: 'tikal-nav-link',\n imports: [RouterLink, RouterLinkActive],\n templateUrl: './nav-link.html',\n styleUrl: './nav-link.scss',\n})\nexport class NavLinkComponent {\n /** What text should the link display? */\n readonly label = input.required<string>();\n\n /** What route should the link navigate to? */\n readonly route = input.required<string | readonly unknown[]>();\n\n /** Should the link only be marked active when the route matches exactly (not for child routes)? */\n readonly exact = input<boolean>(false);\n\n /** @ignore */\n readonly activeOptions = computed(() => ({ exact: this.exact() }));\n}\n","<a\n ariaCurrentWhenActive=\"page\"\n routerLinkActive=\"active\"\n [routerLink]=\"route()\"\n [routerLinkActiveOptions]=\"activeOptions()\"\n >{{ label() }}</a\n>\n","import { Component, input } from '@angular/core';\nimport { RouterLink, RouterLinkActive } from '@angular/router';\nimport { ButtonModule } from 'primeng/button';\nimport { TranslocoDirective } from '@jsverse/transloco';\n\nexport type SessionType = 'lobby' | 'game';\n\n@Component({\n selector: 'tikal-active-session-link',\n imports: [RouterLink, RouterLinkActive, ButtonModule, TranslocoDirective],\n templateUrl: './active-session-link.html',\n styleUrl: './active-session-link.scss',\n})\nexport class ActiveSessionLinkComponent {\n /** Is the player in a lobby or in a game? */\n readonly type = input.required<SessionType>();\n\n /** What is the name of the lobby or game? */\n readonly name = input.required<string>();\n\n /** What route should the link navigate to? */\n readonly route = input.required<string | readonly unknown[]>();\n}\n","<a\n *transloco=\"let t; prefix: 'active-session-link'\"\n ariaCurrentWhenActive=\"page\"\n outlined\n pButton\n routerLinkActive=\"active\"\n severity=\"secondary\"\n [routerLink]=\"route()\"\n>\n <span aria-hidden=\"true\" class=\"dot\"></span>\n {{ t(type(), { name: name() }) }}\n</a>\n","import { Component, input, output } from '@angular/core';\nimport { RouterLink } from '@angular/router';\nimport { ButtonComponent } from '../button/button';\nimport { NavLinkComponent } from '../nav-link/nav-link';\n\nexport type HeaderLink = {\n label: string;\n route: string | readonly unknown[];\n exact?: boolean;\n};\n\n@Component({\n selector: 'tikal-header',\n imports: [RouterLink, NavLinkComponent, ButtonComponent],\n templateUrl: './header.html',\n styleUrl: './header.scss',\n})\nexport class HeaderComponent {\n /** What route should the brand link navigate to? */\n readonly homeRoute = input<string | readonly unknown[]>('/');\n\n /** What links should the main navigation display? */\n readonly links = input<readonly HeaderLink[]>([]);\n\n /** Is dark mode currently enabled? */\n readonly darkMode = input<boolean>(false);\n\n /** @ignore */\n readonly darkModeToggled = output<void>();\n}\n","<a class=\"brand\" [routerLink]=\"homeRoute()\">\n <span class=\"brand-name\">Tikal</span>\n</a>\n\n@if (links().length) {\n <nav aria-label=\"Navigation\">\n @for (link of links(); track link.label) {\n <tikal-nav-link [exact]=\"link.exact ?? false\" [label]=\"link.label\" [route]=\"link.route\" />\n }\n </nav>\n}\n\n<span class=\"spacer\"></span>\n\n<tikal-button\n colour=\"secondary\"\n [ariaLabel]=\"darkMode() ? 'switch-to-light' : 'switch-to-dark'\"\n [icon]=\"darkMode() ? 'sun' : 'moon'\"\n [text]=\"true\"\n (clicked)=\"darkModeToggled.emit()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AAA;EAN3B,MAAA;EACW,MAAA,CAAA;GAAA,UAAA;GAAc,SACf;IAAC;IAAY;IAAkB;GAAe;GAAC,UAAA;GAAA,QAAA,CAAA,uRAAA;EAAA,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tikal-ui-components",
3
- "version": "1.2.1",
3
+ "version": "1.4.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/Tikal-online/tikal-game.git"
@@ -387,4 +387,66 @@ export declare class NavLinkComponent {
387
387
  };
388
388
  }, {}, never, never, true, never>;
389
389
  }
390
+ export type SessionType = 'lobby' | 'game';
391
+ export declare class ActiveSessionLinkComponent {
392
+ /** Is the player in a lobby or in a game? */
393
+ readonly type: import("@angular/core").InputSignal<SessionType>;
394
+ /** What is the name of the lobby or game? */
395
+ readonly name: import("@angular/core").InputSignal<string>;
396
+ /** What route should the link navigate to? */
397
+ readonly route: import("@angular/core").InputSignal<string | readonly unknown[]>;
398
+ static ɵfac: i0.ɵɵFactoryDeclaration<ActiveSessionLinkComponent, never>;
399
+ static ɵcmp: i0.ɵɵComponentDeclaration<ActiveSessionLinkComponent, "tikal-active-session-link", never, {
400
+ "type": {
401
+ "alias": "type";
402
+ "required": true;
403
+ "isSignal": true;
404
+ };
405
+ "name": {
406
+ "alias": "name";
407
+ "required": true;
408
+ "isSignal": true;
409
+ };
410
+ "route": {
411
+ "alias": "route";
412
+ "required": true;
413
+ "isSignal": true;
414
+ };
415
+ }, {}, never, never, true, never>;
416
+ }
417
+ export type HeaderLink = {
418
+ label: string;
419
+ route: string | readonly unknown[];
420
+ exact?: boolean;
421
+ };
422
+ export declare class HeaderComponent {
423
+ /** What route should the brand link navigate to? */
424
+ readonly homeRoute: import("@angular/core").InputSignal<string | readonly unknown[]>;
425
+ /** What links should the main navigation display? */
426
+ readonly links: import("@angular/core").InputSignal<readonly HeaderLink[]>;
427
+ /** Is dark mode currently enabled? */
428
+ readonly darkMode: import("@angular/core").InputSignal<boolean>;
429
+ /** @ignore */
430
+ readonly darkModeToggled: import("@angular/core").OutputEmitterRef<void>;
431
+ static ɵfac: i0.ɵɵFactoryDeclaration<HeaderComponent, never>;
432
+ static ɵcmp: i0.ɵɵComponentDeclaration<HeaderComponent, "tikal-header", never, {
433
+ "homeRoute": {
434
+ "alias": "homeRoute";
435
+ "required": false;
436
+ "isSignal": true;
437
+ };
438
+ "links": {
439
+ "alias": "links";
440
+ "required": false;
441
+ "isSignal": true;
442
+ };
443
+ "darkMode": {
444
+ "alias": "darkMode";
445
+ "required": false;
446
+ "isSignal": true;
447
+ };
448
+ }, {
449
+ "darkModeToggled": "darkModeToggled";
450
+ }, never, never, true, never>;
451
+ }
390
452
  export {};