tikal-ui-components 0.12.0 → 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.
@@ -1,278 +1,1374 @@
1
- import * as i0 from '@angular/core';
2
- import { Pipe, input, output, Component, model, signal } from '@angular/core';
3
- import { PIcon, Spinner, User } from '@primeicons/angular';
4
- import * as i1 from 'primeng/button';
5
- import { ButtonModule } from 'primeng/button';
6
- import * as i1$1 from 'primeng/inputtext';
7
- import { InputTextModule } from 'primeng/inputtext';
8
- import { form, required, maxLength, disabled, FormRoot, FormField } from '@angular/forms/signals';
9
- import * as i1$2 from 'primeng/skeleton';
10
- import { SkeletonModule } from 'primeng/skeleton';
11
- import * as i1$3 from 'primeng/chip';
12
- import { ChipModule } from 'primeng/chip';
13
- import { TranslocoDirective } from '@jsverse/transloco';
14
- import { Crown } from '@primeicons/angular/crown';
15
- import * as i2 from '@angular/forms';
16
- import { FormsModule } from '@angular/forms';
17
- import * as i1$4 from 'primeng/selectbutton';
18
- import { SelectButtonModule } from 'primeng/selectbutton';
19
-
20
- class EnumMapPipe {
21
- transform(value, enumMap, defaultValue) {
22
- return enumMap[value] ?? defaultValue ?? value;
23
- }
24
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: EnumMapPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
25
- static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "22.1.3", ngImport: i0, type: EnumMapPipe, isStandalone: true, name: "enumMap" });
26
- }
27
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: EnumMapPipe, decorators: [{
28
- type: Pipe,
29
- args: [{
30
- name: 'enumMap',
31
- }]
32
- }] });
33
-
34
- class ButtonComponent {
35
- /** What icon should the button display? */
36
- icon = input('', /* @ts-ignore */
37
- ...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
38
- /** What colour should the button be? */
39
- colour = input('primary', /* @ts-ignore */
40
- ...(ngDevMode ? [{ debugName: "colour" }] : /* istanbul ignore next */ []));
41
- /** What size should the button be? */
42
- size = input('normal', /* @ts-ignore */
43
- ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
44
- /** @ignore */
45
- sizeMap = {
46
- normal: undefined,
47
- };
48
- /** What text should the button display? */
49
- label = input(/* @ts-ignore */
50
- ...(ngDevMode ? [undefined, { debugName: "label" }] : /* istanbul ignore next */ []));
51
- /** Is the action related to the button currently running? */
52
- isLoading = input(false, /* @ts-ignore */
53
- ...(ngDevMode ? [{ debugName: "isLoading" }] : /* istanbul ignore next */ []));
54
- /** Should the button have an outline? */
55
- outline = input(false, /* @ts-ignore */
56
- ...(ngDevMode ? [{ debugName: "outline" }] : /* istanbul ignore next */ []));
57
- /** What type should the button be? */
58
- type = input('button', /* @ts-ignore */
59
- ...(ngDevMode ? [{ debugName: "type" }] : /* istanbul ignore next */ []));
60
- /** Should the button only appear as text? */
61
- text = input(false, /* @ts-ignore */
62
- ...(ngDevMode ? [{ debugName: "text" }] : /* istanbul ignore next */ []));
63
- /** @ignore */
64
- clicked = output();
65
- /** What form should the button belong to? */
66
- form = input(/* @ts-ignore */
67
- ...(ngDevMode ? [undefined, { debugName: "form" }] : /* istanbul ignore next */ []));
68
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: ButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
69
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: ButtonComponent, isStandalone: true, selector: "tikal-button", inputs: { icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, colour: { classPropertyName: "colour", publicName: "colour", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, isLoading: { classPropertyName: "isLoading", publicName: "isLoading", isSignal: true, isRequired: false, transformFunction: null }, outline: { classPropertyName: "outline", publicName: "outline", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, text: { classPropertyName: "text", publicName: "text", isSignal: true, isRequired: false, transformFunction: null }, form: { classPropertyName: "form", publicName: "form", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { clicked: "clicked" }, ngImport: i0, template: "<button\n pButton\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", styles: [""], dependencies: [{ kind: "ngmodule", type: ButtonModule }, { kind: "directive", type: i1.ButtonDirective, selector: "[pButton]", inputs: ["pButton", "pButtonPT", "pButtonUnstyled", "hostName", "text", "plain", "raised", "size", "outlined", "link", "rounded", "fluid", "variant", "iconOnly", "loading", "severity"] }, { kind: "component", type: PIcon, selector: "svg[pIcon]", inputs: ["pIcon"] }, { kind: "component", type: Spinner, selector: "svg[data-p-icon=\"spinner\"]" }, { kind: "pipe", type: EnumMapPipe, name: "enumMap" }] });
70
- }
71
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: ButtonComponent, decorators: [{
72
- type: Component,
73
- args: [{ selector: 'tikal-button', imports: [ButtonModule, PIcon, EnumMapPipe, Spinner], template: "<button\n pButton\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" }]
74
- }], propDecorators: { icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], colour: [{ type: i0.Input, args: [{ isSignal: true, alias: "colour", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], isLoading: [{ type: i0.Input, args: [{ isSignal: true, alias: "isLoading", required: false }] }], outline: [{ type: i0.Input, args: [{ isSignal: true, alias: "outline", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], text: [{ type: i0.Input, args: [{ isSignal: true, alias: "text", required: false }] }], clicked: [{ type: i0.Output, args: ["clicked"] }], form: [{ type: i0.Input, args: [{ isSignal: true, alias: "form", required: false }] }] } });
75
-
76
- class InputComponent {
77
- /** What value should the input have */
78
- value = model('', /* @ts-ignore */
79
- ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
80
- /** Should the input be disabled */
81
- disabled = input(false, /* @ts-ignore */
82
- ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
83
- /** Is the content of the input invalid? */
84
- invalid = input(false, /* @ts-ignore */
85
- ...(ngDevMode ? [{ debugName: "invalid" }] : /* istanbul ignore next */ []));
86
- /** Is the input required? */
87
- required = input(false, /* @ts-ignore */
88
- ...(ngDevMode ? [{ debugName: "required" }] : /* istanbul ignore next */ []));
89
- /** Was the input touched */
90
- touched = input(false, /* @ts-ignore */
91
- ...(ngDevMode ? [{ debugName: "touched" }] : /* istanbul ignore next */ []));
92
- /** What is the max input length? */
93
- maxLength = input(/* @ts-ignore */
94
- ...(ngDevMode ? [undefined, { debugName: "maxLength" }] : /* istanbul ignore next */ []));
95
- /** What is the label of the input element? */
96
- label = input(/* @ts-ignore */
97
- ...(ngDevMode ? [undefined, { debugName: "label" }] : /* istanbul ignore next */ []));
98
- /** What placeholder should the input display? */
99
- placeholder = input(/* @ts-ignore */
100
- ...(ngDevMode ? [undefined, { debugName: "placeholder" }] : /* istanbul ignore next */ []));
101
- /** Should the input take the full widht? */
102
- expand = input(false, /* @ts-ignore */
103
- ...(ngDevMode ? [{ debugName: "expand" }] : /* istanbul ignore next */ []));
104
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: InputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
105
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.3", type: InputComponent, isStandalone: true, selector: "tikal-input", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, touched: { classPropertyName: "touched", publicName: "touched", isSignal: true, isRequired: false, transformFunction: null }, maxLength: { classPropertyName: "maxLength", publicName: "maxLength", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, expand: { classPropertyName: "expand", publicName: "expand", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, ngImport: i0, template: "<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", styles: [".full-length{width:100%}\n"], dependencies: [{ kind: "ngmodule", type: InputTextModule }, { kind: "directive", type: i1$1.InputText, selector: "[pInputText]", inputs: ["hostName", "pInputTextPT", "pInputTextUnstyled", "pSize", "variant", "fluid", "invalid"] }] });
106
- }
107
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: InputComponent, decorators: [{
108
- type: Component,
109
- args: [{ selector: 'tikal-input', imports: [InputTextModule], template: "<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", styles: [".full-length{width:100%}\n"] }]
110
- }], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], touched: [{ type: i0.Input, args: [{ isSignal: true, alias: "touched", required: false }] }], maxLength: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxLength", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], expand: [{ type: i0.Input, args: [{ isSignal: true, alias: "expand", required: false }] }] } });
111
-
112
- class ChatFormComponent {
113
- /** @ignore */
114
- chatFormData = signal({ message: '' }, /* @ts-ignore */
115
- ...(ngDevMode ? [{ debugName: "chatFormData" }] : /* istanbul ignore next */ []));
116
- /** What should happen when the form is submitted? */
117
- onSubmission = input.required(/* @ts-ignore */
118
- ...(ngDevMode ? [{ debugName: "onSubmission" }] : /* istanbul ignore next */ []));
119
- /** What placeholder should be displayed on the input? */
120
- placeholder = input(/* @ts-ignore */
121
- ...(ngDevMode ? [undefined, { debugName: "placeholder" }] : /* istanbul ignore next */ []));
122
- /** What is the max input length? */
123
- maxLength = input(50, /* @ts-ignore */
124
- ...(ngDevMode ? [{ debugName: "maxLength" }] : /* istanbul ignore next */ []));
125
- /** What is the label of the input element? */
126
- label = input(/* @ts-ignore */
127
- ...(ngDevMode ? [undefined, { debugName: "label" }] : /* istanbul ignore next */ []));
128
- /** @ignore */
129
- chatForm = form(this.chatFormData, (schemaPath) => {
130
- required(schemaPath.message);
131
- maxLength(schemaPath.message, () => this.maxLength());
132
- disabled(schemaPath, { when: () => this.chatForm().submitting() });
133
- }, {
134
- submission: {
135
- action: async (field) => {
136
- const message = field().value().message;
137
- await this.onSubmission()(message);
138
- field.message().reset('');
139
- },
140
- },
141
- });
142
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: ChatFormComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
143
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.3", type: ChatFormComponent, isStandalone: true, selector: "tikal-chat-form", inputs: { onSubmission: { classPropertyName: "onSubmission", publicName: "onSubmission", isSignal: true, isRequired: true, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, maxLength: { classPropertyName: "maxLength", publicName: "maxLength", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<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", styles: ["form{display:flex;gap:.5rem}\n"], dependencies: [{ kind: "directive", type: FormRoot, selector: "form[formRoot]", inputs: ["formRoot"] }, { kind: "directive", type: FormField, selector: "[formField]", inputs: ["formField"], exportAs: ["formField"] }, { kind: "component", type: InputComponent, selector: "tikal-input", inputs: ["value", "disabled", "invalid", "required", "touched", "maxLength", "label", "placeholder", "expand"], outputs: ["valueChange"] }, { kind: "component", type: ButtonComponent, selector: "tikal-button", inputs: ["icon", "colour", "size", "label", "isLoading", "outline", "type", "text", "form"], outputs: ["clicked"] }] });
144
- }
145
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: ChatFormComponent, decorators: [{
146
- type: Component,
147
- args: [{ selector: 'tikal-chat-form', imports: [FormRoot, FormField, InputComponent, ButtonComponent], template: "<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", styles: ["form{display:flex;gap:.5rem}\n"] }]
148
- }], propDecorators: { onSubmission: [{ type: i0.Input, args: [{ isSignal: true, alias: "onSubmission", required: true }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], maxLength: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxLength", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }] } });
149
-
150
- class SkeletonComponent {
151
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: SkeletonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
152
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.1.3", type: SkeletonComponent, isStandalone: true, selector: "tikal-skeleton", ngImport: i0, template: "<p-skeleton />\n", styles: [""], dependencies: [{ kind: "ngmodule", type: SkeletonModule }, { kind: "component", type: i1$2.Skeleton, selector: "p-skeleton", inputs: ["shape", "animation", "borderRadius", "size", "width", "height"] }] });
153
- }
154
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: SkeletonComponent, decorators: [{
155
- type: Component,
156
- args: [{ selector: 'tikal-skeleton', imports: [SkeletonModule], template: "<p-skeleton />\n" }]
157
- }] });
158
-
159
- class PlayerCountComponent {
160
- /** How many players are currently in the lobby? */
161
- currentPlayers = input.required(/* @ts-ignore */
162
- ...(ngDevMode ? [{ debugName: "currentPlayers" }] : /* istanbul ignore next */ []));
163
- /** How many players fit in the lobby? */
164
- maxPlayers = input.required(/* @ts-ignore */
165
- ...(ngDevMode ? [{ debugName: "maxPlayers" }] : /* istanbul ignore next */ []));
166
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: PlayerCountComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
167
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.3", type: PlayerCountComponent, isStandalone: true, selector: "tikal-player-count", inputs: { currentPlayers: { classPropertyName: "currentPlayers", publicName: "currentPlayers", isSignal: true, isRequired: true, transformFunction: null }, maxPlayers: { classPropertyName: "maxPlayers", publicName: "maxPlayers", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "<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", styles: [":host{display:flex;flex-direction:row;gap:.5rem}p{margin:0}.bar{align-self:center;height:.45rem;width:4rem;border-radius:9999px;background-color:var(--p-surface-300)}.bar-fill{height:100%;border-radius:9999px;background-color:var(--p-green-600)}.full{background-color:var(--p-red-600)}\n"] });
168
- }
169
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: PlayerCountComponent, decorators: [{
170
- type: Component,
171
- args: [{ selector: 'tikal-player-count', imports: [], template: "<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", styles: [":host{display:flex;flex-direction:row;gap:.5rem}p{margin:0}.bar{align-self:center;height:.45rem;width:4rem;border-radius:9999px;background-color:var(--p-surface-300)}.bar-fill{height:100%;border-radius:9999px;background-color:var(--p-green-600)}.full{background-color:var(--p-red-600)}\n"] }]
172
- }], propDecorators: { currentPlayers: [{ type: i0.Input, args: [{ isSignal: true, alias: "currentPlayers", required: true }] }], maxPlayers: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxPlayers", required: true }] }] } });
173
-
174
- class ChipComponent {
175
- /** What icon should the chip display? */
176
- icon = input('', /* @ts-ignore */
177
- ...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
178
- /** What text should the chip display? */
179
- label = input.required(/* @ts-ignore */
180
- ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
181
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: ChipComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
182
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: ChipComponent, isStandalone: true, selector: "tikal-chip", inputs: { icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "<p-chip [label]=\"label()\">\n @if (icon()) {\n <svg [pIcon]=\"icon()\"></svg>\n }\n</p-chip>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: ChipModule }, { kind: "component", type: i1$3.Chip, selector: "p-chip", inputs: ["label", "icon", "image", "alt", "disabled", "removable", "removeIcon", "chipProps"], outputs: ["onRemove", "onImageError"] }, { kind: "component", type: PIcon, selector: "svg[pIcon]", inputs: ["pIcon"] }] });
183
- }
184
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: ChipComponent, decorators: [{
185
- type: Component,
186
- args: [{ selector: 'tikal-chip', imports: [ChipModule, PIcon], template: "<p-chip [label]=\"label()\">\n @if (icon()) {\n <svg [pIcon]=\"icon()\"></svg>\n }\n</p-chip>\n" }]
187
- }], propDecorators: { icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: true }] }] } });
188
-
189
- class EmptyPlayerSlotComponent {
190
- /** Is the player currently loading? */
191
- isLoading = input(false, /* @ts-ignore */
192
- ...(ngDevMode ? [{ debugName: "isLoading" }] : /* istanbul ignore next */ []));
193
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: EmptyPlayerSlotComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
194
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: EmptyPlayerSlotComponent, isStandalone: true, selector: "tikal-empty-player-slot", inputs: { isLoading: { classPropertyName: "isLoading", publicName: "isLoading", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "@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", styles: [":host{display:flex;flex-direction:row;align-items:center;height:3.25rem;padding:1rem;gap:.75rem;background-color:var(--p-surface-100)}:host-context(.dark) :host{background-color:var(--p-surface-800)}.dot{width:.75rem;height:.75rem;border-radius:50%;background-color:var(--p-surface-400)}:host-context(.dark) .dot{background-color:var(--p-surface-600)}p{margin:0;color:var(--p-surface-500)}:host-context(.dark) p{color:var(--p-surface-400)}tikal-skeleton{width:100%}\n"], dependencies: [{ kind: "directive", type: TranslocoDirective, selector: "[transloco]", inputs: ["transloco", "translocoParams", "translocoScope", "translocoRead", "translocoPrefix", "translocoLang", "translocoLoadingTpl"] }, { kind: "component", type: SkeletonComponent, selector: "tikal-skeleton" }] });
195
- }
196
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: EmptyPlayerSlotComponent, decorators: [{
197
- type: Component,
198
- args: [{ selector: 'tikal-empty-player-slot', imports: [TranslocoDirective, SkeletonComponent], template: "@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", styles: [":host{display:flex;flex-direction:row;align-items:center;height:3.25rem;padding:1rem;gap:.75rem;background-color:var(--p-surface-100)}:host-context(.dark) :host{background-color:var(--p-surface-800)}.dot{width:.75rem;height:.75rem;border-radius:50%;background-color:var(--p-surface-400)}:host-context(.dark) .dot{background-color:var(--p-surface-600)}p{margin:0;color:var(--p-surface-500)}:host-context(.dark) p{color:var(--p-surface-400)}tikal-skeleton{width:100%}\n"] }]
199
- }], propDecorators: { isLoading: [{ type: i0.Input, args: [{ isSignal: true, alias: "isLoading", required: false }] }] } });
200
-
201
- class PlayerSlotComponent {
202
- /** What is the name of the player? */
203
- name = input.required(/* @ts-ignore */
204
- ...(ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []));
205
- /** What is the colour of the player? */
206
- colour = input.required(/* @ts-ignore */
207
- ...(ngDevMode ? [{ debugName: "colour" }] : /* istanbul ignore next */ []));
208
- /** Is the player ready? */
209
- isReady = input.required(/* @ts-ignore */
210
- ...(ngDevMode ? [{ debugName: "isReady" }] : /* istanbul ignore next */ []));
211
- /** Is the player an owner of the lobby? */
212
- isOwner = input.required(/* @ts-ignore */
213
- ...(ngDevMode ? [{ debugName: "isOwner" }] : /* istanbul ignore next */ []));
214
- /** @ignore */
215
- colourMap = {
216
- red: 'var(--p-red-500)',
217
- green: 'var(--p-green-500)',
218
- blue: 'var(--p-blue-500)',
219
- yellow: 'var(--p-yellow-500)',
220
- };
221
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: PlayerSlotComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
222
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: PlayerSlotComponent, isStandalone: true, selector: "tikal-player-slot", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: true, transformFunction: null }, colour: { classPropertyName: "colour", publicName: "colour", isSignal: true, isRequired: true, transformFunction: null }, isReady: { classPropertyName: "isReady", publicName: "isReady", isSignal: true, isRequired: true, transformFunction: null }, isOwner: { classPropertyName: "isOwner", publicName: "isOwner", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "<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 (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", styles: [":host{display:flex;flex-direction:row;justify-content:space-between;height:3.25rem;padding:1rem;background-color:var(--p-surface-100)}:host-context(.dark) :host{background-color:var(--p-surface-800)}.main-group{display:flex;flex-direction:row;align-items:center;gap:.75rem}.dot{width:.75rem;height:.75rem;border-radius:50%}.ready{color:var(--p-green-500)}.not-ready{color:var(--p-red-500)}p{margin:0}\n"], dependencies: [{ kind: "component", type: Crown, selector: "svg[data-p-icon=\"crown\"]" }, { kind: "directive", type: TranslocoDirective, selector: "[transloco]", inputs: ["transloco", "translocoParams", "translocoScope", "translocoRead", "translocoPrefix", "translocoLang", "translocoLoadingTpl"] }, { kind: "pipe", type: EnumMapPipe, name: "enumMap" }] });
223
- }
224
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: PlayerSlotComponent, decorators: [{
225
- type: Component,
226
- args: [{ selector: 'tikal-player-slot', imports: [EnumMapPipe, Crown, TranslocoDirective], template: "<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 (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", styles: [":host{display:flex;flex-direction:row;justify-content:space-between;height:3.25rem;padding:1rem;background-color:var(--p-surface-100)}:host-context(.dark) :host{background-color:var(--p-surface-800)}.main-group{display:flex;flex-direction:row;align-items:center;gap:.75rem}.dot{width:.75rem;height:.75rem;border-radius:50%}.ready{color:var(--p-green-500)}.not-ready{color:var(--p-red-500)}p{margin:0}\n"] }]
227
- }], propDecorators: { name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: true }] }], colour: [{ type: i0.Input, args: [{ isSignal: true, alias: "colour", required: true }] }], isReady: [{ type: i0.Input, args: [{ isSignal: true, alias: "isReady", required: true }] }], isOwner: [{ type: i0.Input, args: [{ isSignal: true, alias: "isOwner", required: true }] }] } });
228
-
229
- class PlayerSlotListComponent {
230
- /** How many players fit in the lobby? */
231
- maxPlayers = input.required(/* @ts-ignore */
232
- ...(ngDevMode ? [{ debugName: "maxPlayers" }] : /* istanbul ignore next */ []));
233
- /** What players are currently in the lobby? */
234
- players = input.required(/* @ts-ignore */
235
- ...(ngDevMode ? [{ debugName: "players" }] : /* istanbul ignore next */ []));
236
- /** Are the players currenlty loading? */
237
- isLoading = input(false, /* @ts-ignore */
238
- ...(ngDevMode ? [{ debugName: "isLoading" }] : /* istanbul ignore next */ []));
239
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: PlayerSlotListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
240
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: PlayerSlotListComponent, isStandalone: true, selector: "tikal-player-slot-list", inputs: { maxPlayers: { classPropertyName: "maxPlayers", publicName: "maxPlayers", isSignal: true, isRequired: true, transformFunction: null }, players: { classPropertyName: "players", publicName: "players", isSignal: true, isRequired: true, transformFunction: null }, isLoading: { classPropertyName: "isLoading", publicName: "isLoading", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<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 [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", styles: [":host{display:flex;flex-direction:column;width:20rem}.players{border:var(--p-content-border-color) solid 1px;border-radius:var(--p-content-border-radius);overflow:hidden}.players>*+*{border-top:var(--p-content-border-color) solid 1px}.header{display:flex;flex-direction:row;align-items:center;gap:.5rem;padding:.5rem .1rem}\n"], dependencies: [{ kind: "component", type: PlayerSlotComponent, selector: "tikal-player-slot", inputs: ["name", "colour", "isReady", "isOwner"] }, { kind: "component", type: EmptyPlayerSlotComponent, selector: "tikal-empty-player-slot", inputs: ["isLoading"] }, { kind: "component", type: User, selector: "svg[data-p-icon=\"user\"]" }, { kind: "directive", type: TranslocoDirective, selector: "[transloco]", inputs: ["transloco", "translocoParams", "translocoScope", "translocoRead", "translocoPrefix", "translocoLang", "translocoLoadingTpl"] }] });
241
- }
242
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: PlayerSlotListComponent, decorators: [{
243
- type: Component,
244
- args: [{ selector: 'tikal-player-slot-list', imports: [PlayerSlotComponent, EmptyPlayerSlotComponent, User, TranslocoDirective], template: "<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 [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", styles: [":host{display:flex;flex-direction:column;width:20rem}.players{border:var(--p-content-border-color) solid 1px;border-radius:var(--p-content-border-radius);overflow:hidden}.players>*+*{border-top:var(--p-content-border-color) solid 1px}.header{display:flex;flex-direction:row;align-items:center;gap:.5rem;padding:.5rem .1rem}\n"] }]
245
- }], propDecorators: { maxPlayers: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxPlayers", required: true }] }], players: [{ type: i0.Input, args: [{ isSignal: true, alias: "players", required: true }] }], isLoading: [{ type: i0.Input, args: [{ isSignal: true, alias: "isLoading", required: false }] }] } });
246
-
247
- class MaxPlayerSelectComponent {
248
- /** What value should the input have? */
249
- value = model(3, /* @ts-ignore */
250
- ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
251
- /** Does the control hold an invalid value? */
252
- invalid = input(false, /* @ts-ignore */
253
- ...(ngDevMode ? [{ debugName: "invalid" }] : /* istanbul ignore next */ []));
254
- /** @ignore */
255
- options = [
256
- { label: '2', value: 2 },
257
- { label: '3', value: 3 },
258
- { label: '4', value: 4 },
259
- ];
260
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: MaxPlayerSelectComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
261
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.3", type: MaxPlayerSelectComponent, isStandalone: true, selector: "tikal-max-player-select", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, ngImport: i0, template: "<p-selectbutton\n optionLabel=\"label\"\n optionValue=\"value\"\n [invalid]=\"invalid()\"\n [options]=\"options\"\n [(ngModel)]=\"value\"\n/>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: SelectButtonModule }, { kind: "component", type: i1$4.SelectButton, selector: "p-selectbutton, p-select-button", inputs: ["options", "optionLabel", "optionValue", "optionDisabled", "unselectable", "tabindex", "multiple", "allowEmpty", "styleClass", "ariaLabelledBy", "dataKey", "autofocus", "size", "fluid"], outputs: ["onOptionClick", "onChange"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] });
262
- }
263
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: MaxPlayerSelectComponent, decorators: [{
264
- type: Component,
265
- args: [{ selector: 'tikal-max-player-select', imports: [SelectButtonModule, FormsModule], template: "<p-selectbutton\n optionLabel=\"label\"\n optionValue=\"value\"\n [invalid]=\"invalid()\"\n [options]=\"options\"\n [(ngModel)]=\"value\"\n/>\n" }]
266
- }], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }] } });
267
-
268
- /*
269
- * Public API Surface of tikal-ui-components
270
- */
271
- // Button
272
-
273
- /**
274
- * Generated bundle index. Do not edit.
275
- */
276
-
1
+ import * as i0 from "@angular/core";
2
+ import { Component, Pipe, input, model, output, signal } from "@angular/core";
3
+ import { PIcon, Spinner, User } from "@primeicons/angular";
4
+ import * as i1$4 from "primeng/button";
5
+ import { ButtonModule } from "primeng/button";
6
+ import * as i1$3 from "primeng/inputtext";
7
+ import { InputTextModule } from "primeng/inputtext";
8
+ import { FormField, FormRoot, disabled, form, maxLength, required } from "@angular/forms/signals";
9
+ import * as i1$2 from "primeng/skeleton";
10
+ import { SkeletonModule } from "primeng/skeleton";
11
+ import * as i1$1 from "primeng/chip";
12
+ import { ChipModule } from "primeng/chip";
13
+ import { TranslocoDirective } from "@jsverse/transloco";
14
+ import { Crown } from "@primeicons/angular/crown";
15
+ import * as i2 from "@angular/forms";
16
+ import { FormsModule } from "@angular/forms";
17
+ import * as i1 from "primeng/selectbutton";
18
+ import { SelectButtonModule } from "primeng/selectbutton";
19
+ var EnumMapPipe = class EnumMapPipe {
20
+ transform(value, enumMap, defaultValue) {
21
+ return enumMap[value] ?? defaultValue ?? value;
22
+ }
23
+ static ɵfac = i0.ɵɵngDeclareFactory({
24
+ minVersion: "12.0.0",
25
+ version: "22.2.3",
26
+ ngImport: i0,
27
+ type: EnumMapPipe,
28
+ deps: [],
29
+ target: i0.ɵɵFactoryTarget.Pipe
30
+ });
31
+ static ɵpipe = i0.ɵɵngDeclarePipe({
32
+ minVersion: "14.0.0",
33
+ version: "22.2.3",
34
+ ngImport: i0,
35
+ type: EnumMapPipe,
36
+ isStandalone: true,
37
+ name: "enumMap"
38
+ });
39
+ };
40
+ i0.ɵɵngDeclareClassMetadata({
41
+ minVersion: "12.0.0",
42
+ version: "22.2.3",
43
+ ngImport: i0,
44
+ type: EnumMapPipe,
45
+ decorators: [{
46
+ type: Pipe,
47
+ args: [{ name: "enumMap" }]
48
+ }]
49
+ });
50
+ var ButtonComponent = class ButtonComponent {
51
+ icon = input("", ...ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []);
52
+ colour = input("primary", ...ngDevMode ? [{ debugName: "colour" }] : /* istanbul ignore next */ []);
53
+ size = input("normal", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
54
+ sizeMap = { normal: void 0 };
55
+ label = input(...ngDevMode ? [void 0, { debugName: "label" }] : /* istanbul ignore next */ []);
56
+ isLoading = input(false, ...ngDevMode ? [{ debugName: "isLoading" }] : /* istanbul ignore next */ []);
57
+ outline = input(false, ...ngDevMode ? [{ debugName: "outline" }] : /* istanbul ignore next */ []);
58
+ type = input("button", ...ngDevMode ? [{ debugName: "type" }] : /* istanbul ignore next */ []);
59
+ text = input(false, ...ngDevMode ? [{ debugName: "text" }] : /* istanbul ignore next */ []);
60
+ clicked = output();
61
+ form = input(...ngDevMode ? [void 0, { debugName: "form" }] : /* istanbul ignore next */ []);
62
+ static ɵfac = i0.ɵɵngDeclareFactory({
63
+ minVersion: "12.0.0",
64
+ version: "22.2.3",
65
+ ngImport: i0,
66
+ type: ButtonComponent,
67
+ deps: [],
68
+ target: i0.ɵɵFactoryTarget.Component
69
+ });
70
+ static ɵcmp = i0.ɵɵngDeclareComponent({
71
+ minVersion: "17.0.0",
72
+ version: "22.2.3",
73
+ type: ButtonComponent,
74
+ isStandalone: true,
75
+ selector: "tikal-button",
76
+ inputs: {
77
+ icon: {
78
+ classPropertyName: "icon",
79
+ publicName: "icon",
80
+ isSignal: true,
81
+ isRequired: false,
82
+ transformFunction: null
83
+ },
84
+ colour: {
85
+ classPropertyName: "colour",
86
+ publicName: "colour",
87
+ isSignal: true,
88
+ isRequired: false,
89
+ transformFunction: null
90
+ },
91
+ size: {
92
+ classPropertyName: "size",
93
+ publicName: "size",
94
+ isSignal: true,
95
+ isRequired: false,
96
+ transformFunction: null
97
+ },
98
+ label: {
99
+ classPropertyName: "label",
100
+ publicName: "label",
101
+ isSignal: true,
102
+ isRequired: false,
103
+ transformFunction: null
104
+ },
105
+ isLoading: {
106
+ classPropertyName: "isLoading",
107
+ publicName: "isLoading",
108
+ isSignal: true,
109
+ isRequired: false,
110
+ transformFunction: null
111
+ },
112
+ outline: {
113
+ classPropertyName: "outline",
114
+ publicName: "outline",
115
+ isSignal: true,
116
+ isRequired: false,
117
+ transformFunction: null
118
+ },
119
+ type: {
120
+ classPropertyName: "type",
121
+ publicName: "type",
122
+ isSignal: true,
123
+ isRequired: false,
124
+ transformFunction: null
125
+ },
126
+ text: {
127
+ classPropertyName: "text",
128
+ publicName: "text",
129
+ isSignal: true,
130
+ isRequired: false,
131
+ transformFunction: null
132
+ },
133
+ form: {
134
+ classPropertyName: "form",
135
+ publicName: "form",
136
+ isSignal: true,
137
+ isRequired: false,
138
+ transformFunction: null
139
+ }
140
+ },
141
+ outputs: { clicked: "clicked" },
142
+ ngImport: i0,
143
+ template: "<button\n pButton\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",
144
+ styles: [""],
145
+ dependencies: [
146
+ {
147
+ kind: "ngmodule",
148
+ type: ButtonModule
149
+ },
150
+ {
151
+ kind: "directive",
152
+ type: i1$4.ButtonDirective,
153
+ selector: "[pButton]",
154
+ inputs: [
155
+ "pButton",
156
+ "pButtonPT",
157
+ "pButtonUnstyled",
158
+ "hostName",
159
+ "text",
160
+ "plain",
161
+ "raised",
162
+ "size",
163
+ "outlined",
164
+ "link",
165
+ "rounded",
166
+ "fluid",
167
+ "variant",
168
+ "iconOnly",
169
+ "loading",
170
+ "severity"
171
+ ]
172
+ },
173
+ {
174
+ kind: "component",
175
+ type: PIcon,
176
+ selector: "svg[pIcon]",
177
+ inputs: ["pIcon"]
178
+ },
179
+ {
180
+ kind: "component",
181
+ type: Spinner,
182
+ selector: "svg[data-p-icon=\"spinner\"]"
183
+ },
184
+ {
185
+ kind: "pipe",
186
+ type: EnumMapPipe,
187
+ name: "enumMap"
188
+ }
189
+ ]
190
+ });
191
+ };
192
+ i0.ɵɵngDeclareClassMetadata({
193
+ minVersion: "12.0.0",
194
+ version: "22.2.3",
195
+ ngImport: i0,
196
+ type: ButtonComponent,
197
+ decorators: [{
198
+ type: Component,
199
+ args: [{
200
+ selector: "tikal-button",
201
+ imports: [
202
+ ButtonModule,
203
+ PIcon,
204
+ EnumMapPipe,
205
+ Spinner
206
+ ],
207
+ template: "<button\n pButton\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"
208
+ }]
209
+ }],
210
+ propDecorators: {
211
+ icon: [{
212
+ type: i0.Input,
213
+ args: [{
214
+ isSignal: true,
215
+ alias: "icon",
216
+ required: false
217
+ }]
218
+ }],
219
+ colour: [{
220
+ type: i0.Input,
221
+ args: [{
222
+ isSignal: true,
223
+ alias: "colour",
224
+ required: false
225
+ }]
226
+ }],
227
+ size: [{
228
+ type: i0.Input,
229
+ args: [{
230
+ isSignal: true,
231
+ alias: "size",
232
+ required: false
233
+ }]
234
+ }],
235
+ label: [{
236
+ type: i0.Input,
237
+ args: [{
238
+ isSignal: true,
239
+ alias: "label",
240
+ required: false
241
+ }]
242
+ }],
243
+ isLoading: [{
244
+ type: i0.Input,
245
+ args: [{
246
+ isSignal: true,
247
+ alias: "isLoading",
248
+ required: false
249
+ }]
250
+ }],
251
+ outline: [{
252
+ type: i0.Input,
253
+ args: [{
254
+ isSignal: true,
255
+ alias: "outline",
256
+ required: false
257
+ }]
258
+ }],
259
+ type: [{
260
+ type: i0.Input,
261
+ args: [{
262
+ isSignal: true,
263
+ alias: "type",
264
+ required: false
265
+ }]
266
+ }],
267
+ text: [{
268
+ type: i0.Input,
269
+ args: [{
270
+ isSignal: true,
271
+ alias: "text",
272
+ required: false
273
+ }]
274
+ }],
275
+ clicked: [{
276
+ type: i0.Output,
277
+ args: ["clicked"]
278
+ }],
279
+ form: [{
280
+ type: i0.Input,
281
+ args: [{
282
+ isSignal: true,
283
+ alias: "form",
284
+ required: false
285
+ }]
286
+ }]
287
+ }
288
+ });
289
+ var InputComponent = class InputComponent {
290
+ value = model("", ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
291
+ disabled = input(false, ...ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []);
292
+ invalid = input(false, ...ngDevMode ? [{ debugName: "invalid" }] : /* istanbul ignore next */ []);
293
+ required = input(false, ...ngDevMode ? [{ debugName: "required" }] : /* istanbul ignore next */ []);
294
+ touched = input(false, ...ngDevMode ? [{ debugName: "touched" }] : /* istanbul ignore next */ []);
295
+ maxLength = input(...ngDevMode ? [void 0, { debugName: "maxLength" }] : /* istanbul ignore next */ []);
296
+ label = input(...ngDevMode ? [void 0, { debugName: "label" }] : /* istanbul ignore next */ []);
297
+ placeholder = input(...ngDevMode ? [void 0, { debugName: "placeholder" }] : /* istanbul ignore next */ []);
298
+ expand = input(false, ...ngDevMode ? [{ debugName: "expand" }] : /* istanbul ignore next */ []);
299
+ static ɵfac = i0.ɵɵngDeclareFactory({
300
+ minVersion: "12.0.0",
301
+ version: "22.2.3",
302
+ ngImport: i0,
303
+ type: InputComponent,
304
+ deps: [],
305
+ target: i0.ɵɵFactoryTarget.Component
306
+ });
307
+ static ɵcmp = i0.ɵɵngDeclareComponent({
308
+ minVersion: "17.1.0",
309
+ version: "22.2.3",
310
+ type: InputComponent,
311
+ isStandalone: true,
312
+ selector: "tikal-input",
313
+ inputs: {
314
+ value: {
315
+ classPropertyName: "value",
316
+ publicName: "value",
317
+ isSignal: true,
318
+ isRequired: false,
319
+ transformFunction: null
320
+ },
321
+ disabled: {
322
+ classPropertyName: "disabled",
323
+ publicName: "disabled",
324
+ isSignal: true,
325
+ isRequired: false,
326
+ transformFunction: null
327
+ },
328
+ invalid: {
329
+ classPropertyName: "invalid",
330
+ publicName: "invalid",
331
+ isSignal: true,
332
+ isRequired: false,
333
+ transformFunction: null
334
+ },
335
+ required: {
336
+ classPropertyName: "required",
337
+ publicName: "required",
338
+ isSignal: true,
339
+ isRequired: false,
340
+ transformFunction: null
341
+ },
342
+ touched: {
343
+ classPropertyName: "touched",
344
+ publicName: "touched",
345
+ isSignal: true,
346
+ isRequired: false,
347
+ transformFunction: null
348
+ },
349
+ maxLength: {
350
+ classPropertyName: "maxLength",
351
+ publicName: "maxLength",
352
+ isSignal: true,
353
+ isRequired: false,
354
+ transformFunction: null
355
+ },
356
+ label: {
357
+ classPropertyName: "label",
358
+ publicName: "label",
359
+ isSignal: true,
360
+ isRequired: false,
361
+ transformFunction: null
362
+ },
363
+ placeholder: {
364
+ classPropertyName: "placeholder",
365
+ publicName: "placeholder",
366
+ isSignal: true,
367
+ isRequired: false,
368
+ transformFunction: null
369
+ },
370
+ expand: {
371
+ classPropertyName: "expand",
372
+ publicName: "expand",
373
+ isSignal: true,
374
+ isRequired: false,
375
+ transformFunction: null
376
+ }
377
+ },
378
+ outputs: { value: "valueChange" },
379
+ ngImport: i0,
380
+ template: "<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",
381
+ styles: [".full-length{width:100%}\n"],
382
+ dependencies: [{
383
+ kind: "ngmodule",
384
+ type: InputTextModule
385
+ }, {
386
+ kind: "directive",
387
+ type: i1$3.InputText,
388
+ selector: "[pInputText]",
389
+ inputs: [
390
+ "hostName",
391
+ "pInputTextPT",
392
+ "pInputTextUnstyled",
393
+ "pSize",
394
+ "variant",
395
+ "fluid",
396
+ "invalid"
397
+ ]
398
+ }]
399
+ });
400
+ };
401
+ i0.ɵɵngDeclareClassMetadata({
402
+ minVersion: "12.0.0",
403
+ version: "22.2.3",
404
+ ngImport: i0,
405
+ type: InputComponent,
406
+ decorators: [{
407
+ type: Component,
408
+ args: [{
409
+ selector: "tikal-input",
410
+ imports: [InputTextModule],
411
+ template: "<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",
412
+ styles: [".full-length{width:100%}\n"]
413
+ }]
414
+ }],
415
+ propDecorators: {
416
+ value: [{
417
+ type: i0.Input,
418
+ args: [{
419
+ isSignal: true,
420
+ alias: "value",
421
+ required: false
422
+ }]
423
+ }, {
424
+ type: i0.Output,
425
+ args: ["valueChange"]
426
+ }],
427
+ disabled: [{
428
+ type: i0.Input,
429
+ args: [{
430
+ isSignal: true,
431
+ alias: "disabled",
432
+ required: false
433
+ }]
434
+ }],
435
+ invalid: [{
436
+ type: i0.Input,
437
+ args: [{
438
+ isSignal: true,
439
+ alias: "invalid",
440
+ required: false
441
+ }]
442
+ }],
443
+ required: [{
444
+ type: i0.Input,
445
+ args: [{
446
+ isSignal: true,
447
+ alias: "required",
448
+ required: false
449
+ }]
450
+ }],
451
+ touched: [{
452
+ type: i0.Input,
453
+ args: [{
454
+ isSignal: true,
455
+ alias: "touched",
456
+ required: false
457
+ }]
458
+ }],
459
+ maxLength: [{
460
+ type: i0.Input,
461
+ args: [{
462
+ isSignal: true,
463
+ alias: "maxLength",
464
+ required: false
465
+ }]
466
+ }],
467
+ label: [{
468
+ type: i0.Input,
469
+ args: [{
470
+ isSignal: true,
471
+ alias: "label",
472
+ required: false
473
+ }]
474
+ }],
475
+ placeholder: [{
476
+ type: i0.Input,
477
+ args: [{
478
+ isSignal: true,
479
+ alias: "placeholder",
480
+ required: false
481
+ }]
482
+ }],
483
+ expand: [{
484
+ type: i0.Input,
485
+ args: [{
486
+ isSignal: true,
487
+ alias: "expand",
488
+ required: false
489
+ }]
490
+ }]
491
+ }
492
+ });
493
+ var ChatFormComponent = class ChatFormComponent {
494
+ chatFormData = signal({ message: "" }, ...ngDevMode ? [{ debugName: "chatFormData" }] : /* istanbul ignore next */ []);
495
+ onSubmission = input.required(...ngDevMode ? [{ debugName: "onSubmission" }] : /* istanbul ignore next */ []);
496
+ placeholder = input(...ngDevMode ? [void 0, { debugName: "placeholder" }] : /* istanbul ignore next */ []);
497
+ maxLength = input(50, ...ngDevMode ? [{ debugName: "maxLength" }] : /* istanbul ignore next */ []);
498
+ label = input(...ngDevMode ? [void 0, { debugName: "label" }] : /* istanbul ignore next */ []);
499
+ chatForm = form(this.chatFormData, (schemaPath) => {
500
+ required(schemaPath.message);
501
+ maxLength(schemaPath.message, () => this.maxLength());
502
+ disabled(schemaPath, { when: () => this.chatForm().submitting() });
503
+ }, { submission: { action: async (field) => {
504
+ const message = field().value().message;
505
+ await this.onSubmission()(message);
506
+ field.message().reset("");
507
+ } } });
508
+ static ɵfac = i0.ɵɵngDeclareFactory({
509
+ minVersion: "12.0.0",
510
+ version: "22.2.3",
511
+ ngImport: i0,
512
+ type: ChatFormComponent,
513
+ deps: [],
514
+ target: i0.ɵɵFactoryTarget.Component
515
+ });
516
+ static ɵcmp = i0.ɵɵngDeclareComponent({
517
+ minVersion: "17.1.0",
518
+ version: "22.2.3",
519
+ type: ChatFormComponent,
520
+ isStandalone: true,
521
+ selector: "tikal-chat-form",
522
+ inputs: {
523
+ onSubmission: {
524
+ classPropertyName: "onSubmission",
525
+ publicName: "onSubmission",
526
+ isSignal: true,
527
+ isRequired: true,
528
+ transformFunction: null
529
+ },
530
+ placeholder: {
531
+ classPropertyName: "placeholder",
532
+ publicName: "placeholder",
533
+ isSignal: true,
534
+ isRequired: false,
535
+ transformFunction: null
536
+ },
537
+ maxLength: {
538
+ classPropertyName: "maxLength",
539
+ publicName: "maxLength",
540
+ isSignal: true,
541
+ isRequired: false,
542
+ transformFunction: null
543
+ },
544
+ label: {
545
+ classPropertyName: "label",
546
+ publicName: "label",
547
+ isSignal: true,
548
+ isRequired: false,
549
+ transformFunction: null
550
+ }
551
+ },
552
+ ngImport: i0,
553
+ template: "<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",
554
+ styles: ["form{display:flex;gap:.5rem}\n"],
555
+ dependencies: [
556
+ {
557
+ kind: "directive",
558
+ type: FormRoot,
559
+ selector: "form[formRoot]",
560
+ inputs: ["formRoot"]
561
+ },
562
+ {
563
+ kind: "directive",
564
+ type: FormField,
565
+ selector: "[formField]",
566
+ inputs: ["formField"],
567
+ exportAs: ["formField"]
568
+ },
569
+ {
570
+ kind: "component",
571
+ type: InputComponent,
572
+ selector: "tikal-input",
573
+ inputs: [
574
+ "value",
575
+ "disabled",
576
+ "invalid",
577
+ "required",
578
+ "touched",
579
+ "maxLength",
580
+ "label",
581
+ "placeholder",
582
+ "expand"
583
+ ],
584
+ outputs: ["valueChange"]
585
+ },
586
+ {
587
+ kind: "component",
588
+ type: ButtonComponent,
589
+ selector: "tikal-button",
590
+ inputs: [
591
+ "icon",
592
+ "colour",
593
+ "size",
594
+ "label",
595
+ "isLoading",
596
+ "outline",
597
+ "type",
598
+ "text",
599
+ "form"
600
+ ],
601
+ outputs: ["clicked"]
602
+ }
603
+ ]
604
+ });
605
+ };
606
+ i0.ɵɵngDeclareClassMetadata({
607
+ minVersion: "12.0.0",
608
+ version: "22.2.3",
609
+ ngImport: i0,
610
+ type: ChatFormComponent,
611
+ decorators: [{
612
+ type: Component,
613
+ args: [{
614
+ selector: "tikal-chat-form",
615
+ imports: [
616
+ FormRoot,
617
+ FormField,
618
+ InputComponent,
619
+ ButtonComponent
620
+ ],
621
+ template: "<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",
622
+ styles: ["form{display:flex;gap:.5rem}\n"]
623
+ }]
624
+ }],
625
+ propDecorators: {
626
+ onSubmission: [{
627
+ type: i0.Input,
628
+ args: [{
629
+ isSignal: true,
630
+ alias: "onSubmission",
631
+ required: true
632
+ }]
633
+ }],
634
+ placeholder: [{
635
+ type: i0.Input,
636
+ args: [{
637
+ isSignal: true,
638
+ alias: "placeholder",
639
+ required: false
640
+ }]
641
+ }],
642
+ maxLength: [{
643
+ type: i0.Input,
644
+ args: [{
645
+ isSignal: true,
646
+ alias: "maxLength",
647
+ required: false
648
+ }]
649
+ }],
650
+ label: [{
651
+ type: i0.Input,
652
+ args: [{
653
+ isSignal: true,
654
+ alias: "label",
655
+ required: false
656
+ }]
657
+ }]
658
+ }
659
+ });
660
+ var SkeletonComponent = class SkeletonComponent {
661
+ static ɵfac = i0.ɵɵngDeclareFactory({
662
+ minVersion: "12.0.0",
663
+ version: "22.2.3",
664
+ ngImport: i0,
665
+ type: SkeletonComponent,
666
+ deps: [],
667
+ target: i0.ɵɵFactoryTarget.Component
668
+ });
669
+ static ɵcmp = i0.ɵɵngDeclareComponent({
670
+ minVersion: "14.0.0",
671
+ version: "22.2.3",
672
+ type: SkeletonComponent,
673
+ isStandalone: true,
674
+ selector: "tikal-skeleton",
675
+ ngImport: i0,
676
+ template: "<p-skeleton />\n",
677
+ styles: [""],
678
+ dependencies: [{
679
+ kind: "ngmodule",
680
+ type: SkeletonModule
681
+ }, {
682
+ kind: "component",
683
+ type: i1$2.Skeleton,
684
+ selector: "p-skeleton",
685
+ inputs: [
686
+ "shape",
687
+ "animation",
688
+ "borderRadius",
689
+ "size",
690
+ "width",
691
+ "height"
692
+ ]
693
+ }]
694
+ });
695
+ };
696
+ i0.ɵɵngDeclareClassMetadata({
697
+ minVersion: "12.0.0",
698
+ version: "22.2.3",
699
+ ngImport: i0,
700
+ type: SkeletonComponent,
701
+ decorators: [{
702
+ type: Component,
703
+ args: [{
704
+ selector: "tikal-skeleton",
705
+ imports: [SkeletonModule],
706
+ template: "<p-skeleton />\n"
707
+ }]
708
+ }]
709
+ });
710
+ var PlayerCountComponent = class PlayerCountComponent {
711
+ currentPlayers = input.required(...ngDevMode ? [{ debugName: "currentPlayers" }] : /* istanbul ignore next */ []);
712
+ maxPlayers = input.required(...ngDevMode ? [{ debugName: "maxPlayers" }] : /* istanbul ignore next */ []);
713
+ static ɵfac = i0.ɵɵngDeclareFactory({
714
+ minVersion: "12.0.0",
715
+ version: "22.2.3",
716
+ ngImport: i0,
717
+ type: PlayerCountComponent,
718
+ deps: [],
719
+ target: i0.ɵɵFactoryTarget.Component
720
+ });
721
+ static ɵcmp = i0.ɵɵngDeclareComponent({
722
+ minVersion: "17.1.0",
723
+ version: "22.2.3",
724
+ type: PlayerCountComponent,
725
+ isStandalone: true,
726
+ selector: "tikal-player-count",
727
+ inputs: {
728
+ currentPlayers: {
729
+ classPropertyName: "currentPlayers",
730
+ publicName: "currentPlayers",
731
+ isSignal: true,
732
+ isRequired: true,
733
+ transformFunction: null
734
+ },
735
+ maxPlayers: {
736
+ classPropertyName: "maxPlayers",
737
+ publicName: "maxPlayers",
738
+ isSignal: true,
739
+ isRequired: true,
740
+ transformFunction: null
741
+ }
742
+ },
743
+ ngImport: i0,
744
+ template: "<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",
745
+ styles: [":host{display:flex;flex-direction:row;gap:.5rem}p{margin:0}.bar{align-self:center;height:.45rem;width:4rem;border-radius:9999px;background-color:var(--p-surface-300)}.bar-fill{height:100%;border-radius:9999px;background-color:var(--p-green-600)}.full{background-color:var(--p-red-600)}\n"]
746
+ });
747
+ };
748
+ i0.ɵɵngDeclareClassMetadata({
749
+ minVersion: "12.0.0",
750
+ version: "22.2.3",
751
+ ngImport: i0,
752
+ type: PlayerCountComponent,
753
+ decorators: [{
754
+ type: Component,
755
+ args: [{
756
+ selector: "tikal-player-count",
757
+ imports: [],
758
+ template: "<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",
759
+ styles: [":host{display:flex;flex-direction:row;gap:.5rem}p{margin:0}.bar{align-self:center;height:.45rem;width:4rem;border-radius:9999px;background-color:var(--p-surface-300)}.bar-fill{height:100%;border-radius:9999px;background-color:var(--p-green-600)}.full{background-color:var(--p-red-600)}\n"]
760
+ }]
761
+ }],
762
+ propDecorators: {
763
+ currentPlayers: [{
764
+ type: i0.Input,
765
+ args: [{
766
+ isSignal: true,
767
+ alias: "currentPlayers",
768
+ required: true
769
+ }]
770
+ }],
771
+ maxPlayers: [{
772
+ type: i0.Input,
773
+ args: [{
774
+ isSignal: true,
775
+ alias: "maxPlayers",
776
+ required: true
777
+ }]
778
+ }]
779
+ }
780
+ });
781
+ var ChipComponent = class ChipComponent {
782
+ icon = input("", ...ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []);
783
+ label = input.required(...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
784
+ static ɵfac = i0.ɵɵngDeclareFactory({
785
+ minVersion: "12.0.0",
786
+ version: "22.2.3",
787
+ ngImport: i0,
788
+ type: ChipComponent,
789
+ deps: [],
790
+ target: i0.ɵɵFactoryTarget.Component
791
+ });
792
+ static ɵcmp = i0.ɵɵngDeclareComponent({
793
+ minVersion: "17.0.0",
794
+ version: "22.2.3",
795
+ type: ChipComponent,
796
+ isStandalone: true,
797
+ selector: "tikal-chip",
798
+ inputs: {
799
+ icon: {
800
+ classPropertyName: "icon",
801
+ publicName: "icon",
802
+ isSignal: true,
803
+ isRequired: false,
804
+ transformFunction: null
805
+ },
806
+ label: {
807
+ classPropertyName: "label",
808
+ publicName: "label",
809
+ isSignal: true,
810
+ isRequired: true,
811
+ transformFunction: null
812
+ }
813
+ },
814
+ ngImport: i0,
815
+ template: "<p-chip [label]=\"label()\">\n @if (icon()) {\n <svg [pIcon]=\"icon()\"></svg>\n }\n</p-chip>\n",
816
+ styles: [""],
817
+ dependencies: [
818
+ {
819
+ kind: "ngmodule",
820
+ type: ChipModule
821
+ },
822
+ {
823
+ kind: "component",
824
+ type: i1$1.Chip,
825
+ selector: "p-chip",
826
+ inputs: [
827
+ "label",
828
+ "icon",
829
+ "image",
830
+ "alt",
831
+ "disabled",
832
+ "removable",
833
+ "removeIcon",
834
+ "chipProps"
835
+ ],
836
+ outputs: ["onRemove", "onImageError"]
837
+ },
838
+ {
839
+ kind: "component",
840
+ type: PIcon,
841
+ selector: "svg[pIcon]",
842
+ inputs: ["pIcon"]
843
+ }
844
+ ]
845
+ });
846
+ };
847
+ i0.ɵɵngDeclareClassMetadata({
848
+ minVersion: "12.0.0",
849
+ version: "22.2.3",
850
+ ngImport: i0,
851
+ type: ChipComponent,
852
+ decorators: [{
853
+ type: Component,
854
+ args: [{
855
+ selector: "tikal-chip",
856
+ imports: [ChipModule, PIcon],
857
+ template: "<p-chip [label]=\"label()\">\n @if (icon()) {\n <svg [pIcon]=\"icon()\"></svg>\n }\n</p-chip>\n"
858
+ }]
859
+ }],
860
+ propDecorators: {
861
+ icon: [{
862
+ type: i0.Input,
863
+ args: [{
864
+ isSignal: true,
865
+ alias: "icon",
866
+ required: false
867
+ }]
868
+ }],
869
+ label: [{
870
+ type: i0.Input,
871
+ args: [{
872
+ isSignal: true,
873
+ alias: "label",
874
+ required: true
875
+ }]
876
+ }]
877
+ }
878
+ });
879
+ var EmptyPlayerSlotComponent = class EmptyPlayerSlotComponent {
880
+ isLoading = input(false, ...ngDevMode ? [{ debugName: "isLoading" }] : /* istanbul ignore next */ []);
881
+ static ɵfac = i0.ɵɵngDeclareFactory({
882
+ minVersion: "12.0.0",
883
+ version: "22.2.3",
884
+ ngImport: i0,
885
+ type: EmptyPlayerSlotComponent,
886
+ deps: [],
887
+ target: i0.ɵɵFactoryTarget.Component
888
+ });
889
+ static ɵcmp = i0.ɵɵngDeclareComponent({
890
+ minVersion: "17.0.0",
891
+ version: "22.2.3",
892
+ type: EmptyPlayerSlotComponent,
893
+ isStandalone: true,
894
+ selector: "tikal-empty-player-slot",
895
+ inputs: { isLoading: {
896
+ classPropertyName: "isLoading",
897
+ publicName: "isLoading",
898
+ isSignal: true,
899
+ isRequired: false,
900
+ transformFunction: null
901
+ } },
902
+ ngImport: i0,
903
+ template: "@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",
904
+ styles: [":host{display:flex;flex-direction:row;align-items:center;height:3.25rem;padding:1rem;gap:.75rem;background-color:var(--p-surface-100)}:host-context(.dark) :host{background-color:var(--p-surface-800)}.dot{width:.75rem;height:.75rem;border-radius:50%;background-color:var(--p-surface-400)}:host-context(.dark) .dot{background-color:var(--p-surface-600)}p{margin:0;color:var(--p-surface-500)}:host-context(.dark) p{color:var(--p-surface-400)}tikal-skeleton{width:100%}\n"],
905
+ dependencies: [{
906
+ kind: "directive",
907
+ type: TranslocoDirective,
908
+ selector: "[transloco]",
909
+ inputs: [
910
+ "transloco",
911
+ "translocoParams",
912
+ "translocoScope",
913
+ "translocoRead",
914
+ "translocoPrefix",
915
+ "translocoLang",
916
+ "translocoLoadingTpl"
917
+ ]
918
+ }, {
919
+ kind: "component",
920
+ type: SkeletonComponent,
921
+ selector: "tikal-skeleton"
922
+ }]
923
+ });
924
+ };
925
+ i0.ɵɵngDeclareClassMetadata({
926
+ minVersion: "12.0.0",
927
+ version: "22.2.3",
928
+ ngImport: i0,
929
+ type: EmptyPlayerSlotComponent,
930
+ decorators: [{
931
+ type: Component,
932
+ args: [{
933
+ selector: "tikal-empty-player-slot",
934
+ imports: [TranslocoDirective, SkeletonComponent],
935
+ template: "@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",
936
+ styles: [":host{display:flex;flex-direction:row;align-items:center;height:3.25rem;padding:1rem;gap:.75rem;background-color:var(--p-surface-100)}:host-context(.dark) :host{background-color:var(--p-surface-800)}.dot{width:.75rem;height:.75rem;border-radius:50%;background-color:var(--p-surface-400)}:host-context(.dark) .dot{background-color:var(--p-surface-600)}p{margin:0;color:var(--p-surface-500)}:host-context(.dark) p{color:var(--p-surface-400)}tikal-skeleton{width:100%}\n"]
937
+ }]
938
+ }],
939
+ propDecorators: { isLoading: [{
940
+ type: i0.Input,
941
+ args: [{
942
+ isSignal: true,
943
+ alias: "isLoading",
944
+ required: false
945
+ }]
946
+ }] }
947
+ });
948
+ var PlayerSlotComponent = class PlayerSlotComponent {
949
+ name = input.required(...ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []);
950
+ colour = input.required(...ngDevMode ? [{ debugName: "colour" }] : /* istanbul ignore next */ []);
951
+ isReady = input.required(...ngDevMode ? [{ debugName: "isReady" }] : /* istanbul ignore next */ []);
952
+ isOwner = input.required(...ngDevMode ? [{ debugName: "isOwner" }] : /* istanbul ignore next */ []);
953
+ isMe = input.required(...ngDevMode ? [{ debugName: "isMe" }] : /* istanbul ignore next */ []);
954
+ colourMap = {
955
+ red: "var(--p-red-500)",
956
+ green: "var(--p-green-500)",
957
+ blue: "var(--p-blue-500)",
958
+ yellow: "var(--p-yellow-500)"
959
+ };
960
+ static ɵfac = i0.ɵɵngDeclareFactory({
961
+ minVersion: "12.0.0",
962
+ version: "22.2.3",
963
+ ngImport: i0,
964
+ type: PlayerSlotComponent,
965
+ deps: [],
966
+ target: i0.ɵɵFactoryTarget.Component
967
+ });
968
+ static ɵcmp = i0.ɵɵngDeclareComponent({
969
+ minVersion: "17.0.0",
970
+ version: "22.2.3",
971
+ type: PlayerSlotComponent,
972
+ isStandalone: true,
973
+ selector: "tikal-player-slot",
974
+ inputs: {
975
+ name: {
976
+ classPropertyName: "name",
977
+ publicName: "name",
978
+ isSignal: true,
979
+ isRequired: true,
980
+ transformFunction: null
981
+ },
982
+ colour: {
983
+ classPropertyName: "colour",
984
+ publicName: "colour",
985
+ isSignal: true,
986
+ isRequired: true,
987
+ transformFunction: null
988
+ },
989
+ isReady: {
990
+ classPropertyName: "isReady",
991
+ publicName: "isReady",
992
+ isSignal: true,
993
+ isRequired: true,
994
+ transformFunction: null
995
+ },
996
+ isOwner: {
997
+ classPropertyName: "isOwner",
998
+ publicName: "isOwner",
999
+ isSignal: true,
1000
+ isRequired: true,
1001
+ transformFunction: null
1002
+ },
1003
+ isMe: {
1004
+ classPropertyName: "isMe",
1005
+ publicName: "isMe",
1006
+ isSignal: true,
1007
+ isRequired: true,
1008
+ transformFunction: null
1009
+ }
1010
+ },
1011
+ ngImport: i0,
1012
+ template: "<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",
1013
+ styles: [":host{display:flex;flex-direction:row;justify-content:space-between;height:3.25rem;padding:1rem;background-color:var(--p-surface-100)}:host-context(.dark) :host{background-color:var(--p-surface-800)}.main-group{display:flex;flex-direction:row;align-items:center;gap:.75rem}.dot{width:.75rem;height:.75rem;border-radius:50%}.ready{color:var(--p-green-500)}.not-ready{color:var(--p-red-500)}p{margin:0}\n"],
1014
+ dependencies: [
1015
+ {
1016
+ kind: "component",
1017
+ type: Crown,
1018
+ selector: "svg[data-p-icon=\"crown\"]"
1019
+ },
1020
+ {
1021
+ kind: "directive",
1022
+ type: TranslocoDirective,
1023
+ selector: "[transloco]",
1024
+ inputs: [
1025
+ "transloco",
1026
+ "translocoParams",
1027
+ "translocoScope",
1028
+ "translocoRead",
1029
+ "translocoPrefix",
1030
+ "translocoLang",
1031
+ "translocoLoadingTpl"
1032
+ ]
1033
+ },
1034
+ {
1035
+ kind: "pipe",
1036
+ type: EnumMapPipe,
1037
+ name: "enumMap"
1038
+ }
1039
+ ]
1040
+ });
1041
+ };
1042
+ i0.ɵɵngDeclareClassMetadata({
1043
+ minVersion: "12.0.0",
1044
+ version: "22.2.3",
1045
+ ngImport: i0,
1046
+ type: PlayerSlotComponent,
1047
+ decorators: [{
1048
+ type: Component,
1049
+ args: [{
1050
+ selector: "tikal-player-slot",
1051
+ imports: [
1052
+ EnumMapPipe,
1053
+ Crown,
1054
+ TranslocoDirective
1055
+ ],
1056
+ template: "<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",
1057
+ styles: [":host{display:flex;flex-direction:row;justify-content:space-between;height:3.25rem;padding:1rem;background-color:var(--p-surface-100)}:host-context(.dark) :host{background-color:var(--p-surface-800)}.main-group{display:flex;flex-direction:row;align-items:center;gap:.75rem}.dot{width:.75rem;height:.75rem;border-radius:50%}.ready{color:var(--p-green-500)}.not-ready{color:var(--p-red-500)}p{margin:0}\n"]
1058
+ }]
1059
+ }],
1060
+ propDecorators: {
1061
+ name: [{
1062
+ type: i0.Input,
1063
+ args: [{
1064
+ isSignal: true,
1065
+ alias: "name",
1066
+ required: true
1067
+ }]
1068
+ }],
1069
+ colour: [{
1070
+ type: i0.Input,
1071
+ args: [{
1072
+ isSignal: true,
1073
+ alias: "colour",
1074
+ required: true
1075
+ }]
1076
+ }],
1077
+ isReady: [{
1078
+ type: i0.Input,
1079
+ args: [{
1080
+ isSignal: true,
1081
+ alias: "isReady",
1082
+ required: true
1083
+ }]
1084
+ }],
1085
+ isOwner: [{
1086
+ type: i0.Input,
1087
+ args: [{
1088
+ isSignal: true,
1089
+ alias: "isOwner",
1090
+ required: true
1091
+ }]
1092
+ }],
1093
+ isMe: [{
1094
+ type: i0.Input,
1095
+ args: [{
1096
+ isSignal: true,
1097
+ alias: "isMe",
1098
+ required: true
1099
+ }]
1100
+ }]
1101
+ }
1102
+ });
1103
+ var PlayerSlotListComponent = class PlayerSlotListComponent {
1104
+ maxPlayers = input.required(...ngDevMode ? [{ debugName: "maxPlayers" }] : /* istanbul ignore next */ []);
1105
+ players = input.required(...ngDevMode ? [{ debugName: "players" }] : /* istanbul ignore next */ []);
1106
+ isLoading = input(false, ...ngDevMode ? [{ debugName: "isLoading" }] : /* istanbul ignore next */ []);
1107
+ static ɵfac = i0.ɵɵngDeclareFactory({
1108
+ minVersion: "12.0.0",
1109
+ version: "22.2.3",
1110
+ ngImport: i0,
1111
+ type: PlayerSlotListComponent,
1112
+ deps: [],
1113
+ target: i0.ɵɵFactoryTarget.Component
1114
+ });
1115
+ static ɵcmp = i0.ɵɵngDeclareComponent({
1116
+ minVersion: "17.0.0",
1117
+ version: "22.2.3",
1118
+ type: PlayerSlotListComponent,
1119
+ isStandalone: true,
1120
+ selector: "tikal-player-slot-list",
1121
+ inputs: {
1122
+ maxPlayers: {
1123
+ classPropertyName: "maxPlayers",
1124
+ publicName: "maxPlayers",
1125
+ isSignal: true,
1126
+ isRequired: true,
1127
+ transformFunction: null
1128
+ },
1129
+ players: {
1130
+ classPropertyName: "players",
1131
+ publicName: "players",
1132
+ isSignal: true,
1133
+ isRequired: true,
1134
+ transformFunction: null
1135
+ },
1136
+ isLoading: {
1137
+ classPropertyName: "isLoading",
1138
+ publicName: "isLoading",
1139
+ isSignal: true,
1140
+ isRequired: false,
1141
+ transformFunction: null
1142
+ }
1143
+ },
1144
+ ngImport: i0,
1145
+ template: "<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",
1146
+ styles: [":host{display:flex;flex-direction:column;width:20rem}.players{border:var(--p-content-border-color) solid 1px;border-radius:var(--p-content-border-radius);overflow:hidden}.players>*+*{border-top:var(--p-content-border-color) solid 1px}.header{display:flex;flex-direction:row;align-items:center;gap:.5rem;padding:.5rem .1rem}\n"],
1147
+ dependencies: [
1148
+ {
1149
+ kind: "component",
1150
+ type: PlayerSlotComponent,
1151
+ selector: "tikal-player-slot",
1152
+ inputs: [
1153
+ "name",
1154
+ "colour",
1155
+ "isReady",
1156
+ "isOwner",
1157
+ "isMe"
1158
+ ]
1159
+ },
1160
+ {
1161
+ kind: "component",
1162
+ type: EmptyPlayerSlotComponent,
1163
+ selector: "tikal-empty-player-slot",
1164
+ inputs: ["isLoading"]
1165
+ },
1166
+ {
1167
+ kind: "component",
1168
+ type: User,
1169
+ selector: "svg[data-p-icon=\"user\"]"
1170
+ },
1171
+ {
1172
+ kind: "directive",
1173
+ type: TranslocoDirective,
1174
+ selector: "[transloco]",
1175
+ inputs: [
1176
+ "transloco",
1177
+ "translocoParams",
1178
+ "translocoScope",
1179
+ "translocoRead",
1180
+ "translocoPrefix",
1181
+ "translocoLang",
1182
+ "translocoLoadingTpl"
1183
+ ]
1184
+ }
1185
+ ]
1186
+ });
1187
+ };
1188
+ i0.ɵɵngDeclareClassMetadata({
1189
+ minVersion: "12.0.0",
1190
+ version: "22.2.3",
1191
+ ngImport: i0,
1192
+ type: PlayerSlotListComponent,
1193
+ decorators: [{
1194
+ type: Component,
1195
+ args: [{
1196
+ selector: "tikal-player-slot-list",
1197
+ imports: [
1198
+ PlayerSlotComponent,
1199
+ EmptyPlayerSlotComponent,
1200
+ User,
1201
+ TranslocoDirective
1202
+ ],
1203
+ template: "<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",
1204
+ styles: [":host{display:flex;flex-direction:column;width:20rem}.players{border:var(--p-content-border-color) solid 1px;border-radius:var(--p-content-border-radius);overflow:hidden}.players>*+*{border-top:var(--p-content-border-color) solid 1px}.header{display:flex;flex-direction:row;align-items:center;gap:.5rem;padding:.5rem .1rem}\n"]
1205
+ }]
1206
+ }],
1207
+ propDecorators: {
1208
+ maxPlayers: [{
1209
+ type: i0.Input,
1210
+ args: [{
1211
+ isSignal: true,
1212
+ alias: "maxPlayers",
1213
+ required: true
1214
+ }]
1215
+ }],
1216
+ players: [{
1217
+ type: i0.Input,
1218
+ args: [{
1219
+ isSignal: true,
1220
+ alias: "players",
1221
+ required: true
1222
+ }]
1223
+ }],
1224
+ isLoading: [{
1225
+ type: i0.Input,
1226
+ args: [{
1227
+ isSignal: true,
1228
+ alias: "isLoading",
1229
+ required: false
1230
+ }]
1231
+ }]
1232
+ }
1233
+ });
1234
+ var MaxPlayerSelectComponent = class MaxPlayerSelectComponent {
1235
+ value = model(3, ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
1236
+ invalid = input(false, ...ngDevMode ? [{ debugName: "invalid" }] : /* istanbul ignore next */ []);
1237
+ options = [
1238
+ {
1239
+ label: "2",
1240
+ value: 2
1241
+ },
1242
+ {
1243
+ label: "3",
1244
+ value: 3
1245
+ },
1246
+ {
1247
+ label: "4",
1248
+ value: 4
1249
+ }
1250
+ ];
1251
+ static ɵfac = i0.ɵɵngDeclareFactory({
1252
+ minVersion: "12.0.0",
1253
+ version: "22.2.3",
1254
+ ngImport: i0,
1255
+ type: MaxPlayerSelectComponent,
1256
+ deps: [],
1257
+ target: i0.ɵɵFactoryTarget.Component
1258
+ });
1259
+ static ɵcmp = i0.ɵɵngDeclareComponent({
1260
+ minVersion: "17.1.0",
1261
+ version: "22.2.3",
1262
+ type: MaxPlayerSelectComponent,
1263
+ isStandalone: true,
1264
+ selector: "tikal-max-player-select",
1265
+ inputs: {
1266
+ value: {
1267
+ classPropertyName: "value",
1268
+ publicName: "value",
1269
+ isSignal: true,
1270
+ isRequired: false,
1271
+ transformFunction: null
1272
+ },
1273
+ invalid: {
1274
+ classPropertyName: "invalid",
1275
+ publicName: "invalid",
1276
+ isSignal: true,
1277
+ isRequired: false,
1278
+ transformFunction: null
1279
+ }
1280
+ },
1281
+ outputs: { value: "valueChange" },
1282
+ ngImport: i0,
1283
+ template: "<p-selectbutton\n optionLabel=\"label\"\n optionValue=\"value\"\n [invalid]=\"invalid()\"\n [options]=\"options\"\n [(ngModel)]=\"value\"\n/>\n",
1284
+ styles: [""],
1285
+ dependencies: [
1286
+ {
1287
+ kind: "ngmodule",
1288
+ type: SelectButtonModule
1289
+ },
1290
+ {
1291
+ kind: "component",
1292
+ type: i1.SelectButton,
1293
+ selector: "p-selectbutton, p-select-button",
1294
+ inputs: [
1295
+ "options",
1296
+ "optionLabel",
1297
+ "optionValue",
1298
+ "optionDisabled",
1299
+ "unselectable",
1300
+ "tabindex",
1301
+ "multiple",
1302
+ "allowEmpty",
1303
+ "styleClass",
1304
+ "ariaLabelledBy",
1305
+ "dataKey",
1306
+ "autofocus",
1307
+ "size",
1308
+ "fluid"
1309
+ ],
1310
+ outputs: ["onOptionClick", "onChange"]
1311
+ },
1312
+ {
1313
+ kind: "ngmodule",
1314
+ type: FormsModule
1315
+ },
1316
+ {
1317
+ kind: "directive",
1318
+ type: i2.NgControlStatus,
1319
+ selector: "[formControlName],[ngModel],[formControl]"
1320
+ },
1321
+ {
1322
+ kind: "directive",
1323
+ type: i2.NgModel,
1324
+ selector: "[ngModel]:not([formControlName]):not([formControl])",
1325
+ inputs: [
1326
+ "name",
1327
+ "disabled",
1328
+ "ngModel",
1329
+ "ngModelOptions"
1330
+ ],
1331
+ outputs: ["ngModelChange"],
1332
+ exportAs: ["ngModel"]
1333
+ }
1334
+ ]
1335
+ });
1336
+ };
1337
+ i0.ɵɵngDeclareClassMetadata({
1338
+ minVersion: "12.0.0",
1339
+ version: "22.2.3",
1340
+ ngImport: i0,
1341
+ type: MaxPlayerSelectComponent,
1342
+ decorators: [{
1343
+ type: Component,
1344
+ args: [{
1345
+ selector: "tikal-max-player-select",
1346
+ imports: [SelectButtonModule, FormsModule],
1347
+ template: "<p-selectbutton\n optionLabel=\"label\"\n optionValue=\"value\"\n [invalid]=\"invalid()\"\n [options]=\"options\"\n [(ngModel)]=\"value\"\n/>\n"
1348
+ }]
1349
+ }],
1350
+ propDecorators: {
1351
+ value: [{
1352
+ type: i0.Input,
1353
+ args: [{
1354
+ isSignal: true,
1355
+ alias: "value",
1356
+ required: false
1357
+ }]
1358
+ }, {
1359
+ type: i0.Output,
1360
+ args: ["valueChange"]
1361
+ }],
1362
+ invalid: [{
1363
+ type: i0.Input,
1364
+ args: [{
1365
+ isSignal: true,
1366
+ alias: "invalid",
1367
+ required: false
1368
+ }]
1369
+ }]
1370
+ }
1371
+ });
277
1372
  export { ButtonComponent, ChatFormComponent, ChipComponent, EmptyPlayerSlotComponent, InputComponent, MaxPlayerSelectComponent, PlayerCountComponent, PlayerSlotComponent, PlayerSlotListComponent, SkeletonComponent };
278
- //# sourceMappingURL=tikal-ui-components.mjs.map
1373
+
1374
+ //# sourceMappingURL=tikal-ui-components.mjs.map