tikal-ui-components 1.0.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,19 +1,21 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import { Component, Pipe, input, model, output, signal } from "@angular/core";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
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";
|
|
7
8
|
import { FormField, FormRoot, disabled, form, maxLength, required } from "@angular/forms/signals";
|
|
8
|
-
import * as i1$2 from "
|
|
9
|
-
import { SkeletonModule } from "
|
|
10
|
-
import * as i1$1 from "
|
|
11
|
-
import { ChipModule } from "
|
|
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";
|
|
12
13
|
import { TranslocoDirective } from "@jsverse/transloco";
|
|
14
|
+
import { Crown } from "@primeicons/angular/crown";
|
|
13
15
|
import * as i2 from "@angular/forms";
|
|
14
16
|
import { FormsModule } from "@angular/forms";
|
|
15
|
-
import * as i1 from "
|
|
16
|
-
import { SelectButtonModule } from "
|
|
17
|
+
import * as i1 from "primeng/selectbutton";
|
|
18
|
+
import { SelectButtonModule } from "primeng/selectbutton";
|
|
17
19
|
var EnumMapPipe = class EnumMapPipe {
|
|
18
20
|
transform(value, enumMap, defaultValue) {
|
|
19
21
|
return enumMap[value] ?? defaultValue ?? value;
|
|
@@ -50,7 +52,7 @@ var ButtonComponent = class ButtonComponent {
|
|
|
50
52
|
colour = input("primary", ...ngDevMode ? [{ debugName: "colour" }] : /* istanbul ignore next */ []);
|
|
51
53
|
size = input("normal", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
|
|
52
54
|
sizeMap = { normal: void 0 };
|
|
53
|
-
label = input(
|
|
55
|
+
label = input(...ngDevMode ? [void 0, { debugName: "label" }] : /* istanbul ignore next */ []);
|
|
54
56
|
isLoading = input(false, ...ngDevMode ? [{ debugName: "isLoading" }] : /* istanbul ignore next */ []);
|
|
55
57
|
outline = input(false, ...ngDevMode ? [{ debugName: "outline" }] : /* istanbul ignore next */ []);
|
|
56
58
|
type = input("button", ...ngDevMode ? [{ debugName: "type" }] : /* istanbul ignore next */ []);
|
|
@@ -66,7 +68,7 @@ var ButtonComponent = class ButtonComponent {
|
|
|
66
68
|
target: i0.ɵɵFactoryTarget.Component
|
|
67
69
|
});
|
|
68
70
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
69
|
-
minVersion: "17.
|
|
71
|
+
minVersion: "17.0.0",
|
|
70
72
|
version: "22.2.3",
|
|
71
73
|
type: ButtonComponent,
|
|
72
74
|
isStandalone: true,
|
|
@@ -138,7 +140,7 @@ var ButtonComponent = class ButtonComponent {
|
|
|
138
140
|
},
|
|
139
141
|
outputs: { clicked: "clicked" },
|
|
140
142
|
ngImport: i0,
|
|
141
|
-
template: "<
|
|
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",
|
|
142
144
|
styles: [""],
|
|
143
145
|
dependencies: [
|
|
144
146
|
{
|
|
@@ -146,44 +148,39 @@ var ButtonComponent = class ButtonComponent {
|
|
|
146
148
|
type: ButtonModule
|
|
147
149
|
},
|
|
148
150
|
{
|
|
149
|
-
kind: "
|
|
150
|
-
type: i1$4.
|
|
151
|
-
selector: "
|
|
151
|
+
kind: "directive",
|
|
152
|
+
type: i1$4.ButtonDirective,
|
|
153
|
+
selector: "[pButton]",
|
|
152
154
|
inputs: [
|
|
155
|
+
"pButton",
|
|
156
|
+
"pButtonPT",
|
|
157
|
+
"pButtonUnstyled",
|
|
153
158
|
"hostName",
|
|
154
|
-
"type",
|
|
155
|
-
"badge",
|
|
156
|
-
"disabled",
|
|
157
|
-
"raised",
|
|
158
|
-
"rounded",
|
|
159
159
|
"text",
|
|
160
160
|
"plain",
|
|
161
|
+
"raised",
|
|
162
|
+
"size",
|
|
161
163
|
"outlined",
|
|
162
164
|
"link",
|
|
163
|
-
"
|
|
164
|
-
"
|
|
165
|
+
"rounded",
|
|
166
|
+
"fluid",
|
|
165
167
|
"variant",
|
|
166
|
-
"
|
|
167
|
-
"styleClass",
|
|
168
|
-
"badgeClass",
|
|
169
|
-
"badgeSeverity",
|
|
170
|
-
"ariaLabel",
|
|
171
|
-
"autofocus",
|
|
172
|
-
"iconPos",
|
|
173
|
-
"icon",
|
|
174
|
-
"label",
|
|
168
|
+
"iconOnly",
|
|
175
169
|
"loading",
|
|
176
|
-
"
|
|
177
|
-
"severity",
|
|
178
|
-
"buttonProps",
|
|
179
|
-
"fluid"
|
|
180
|
-
],
|
|
181
|
-
outputs: [
|
|
182
|
-
"onClick",
|
|
183
|
-
"onFocus",
|
|
184
|
-
"onBlur"
|
|
170
|
+
"severity"
|
|
185
171
|
]
|
|
186
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
|
+
},
|
|
187
184
|
{
|
|
188
185
|
kind: "pipe",
|
|
189
186
|
type: EnumMapPipe,
|
|
@@ -201,8 +198,13 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
201
198
|
type: Component,
|
|
202
199
|
args: [{
|
|
203
200
|
selector: "tikal-button",
|
|
204
|
-
imports: [
|
|
205
|
-
|
|
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"
|
|
206
208
|
}]
|
|
207
209
|
}],
|
|
208
210
|
propDecorators: {
|
|
@@ -386,7 +388,6 @@ var InputComponent = class InputComponent {
|
|
|
386
388
|
selector: "[pInputText]",
|
|
387
389
|
inputs: [
|
|
388
390
|
"hostName",
|
|
389
|
-
"ptInputText",
|
|
390
391
|
"pInputTextPT",
|
|
391
392
|
"pInputTextUnstyled",
|
|
392
393
|
"pSize",
|
|
@@ -682,7 +683,6 @@ var SkeletonComponent = class SkeletonComponent {
|
|
|
682
683
|
type: i1$2.Skeleton,
|
|
683
684
|
selector: "p-skeleton",
|
|
684
685
|
inputs: [
|
|
685
|
-
"styleClass",
|
|
686
686
|
"shape",
|
|
687
687
|
"animation",
|
|
688
688
|
"borderRadius",
|
|
@@ -790,7 +790,7 @@ var ChipComponent = class ChipComponent {
|
|
|
790
790
|
target: i0.ɵɵFactoryTarget.Component
|
|
791
791
|
});
|
|
792
792
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
793
|
-
minVersion: "17.
|
|
793
|
+
minVersion: "17.0.0",
|
|
794
794
|
version: "22.2.3",
|
|
795
795
|
type: ChipComponent,
|
|
796
796
|
isStandalone: true,
|
|
@@ -812,28 +812,36 @@ var ChipComponent = class ChipComponent {
|
|
|
812
812
|
}
|
|
813
813
|
},
|
|
814
814
|
ngImport: i0,
|
|
815
|
-
template: "<p-chip [
|
|
815
|
+
template: "<p-chip [label]=\"label()\">\n @if (icon()) {\n <svg [pIcon]=\"icon()\"></svg>\n }\n</p-chip>\n",
|
|
816
816
|
styles: [""],
|
|
817
|
-
dependencies: [
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
"
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
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
|
+
]
|
|
837
845
|
});
|
|
838
846
|
};
|
|
839
847
|
i0.ɵɵngDeclareClassMetadata({
|
|
@@ -845,8 +853,8 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
845
853
|
type: Component,
|
|
846
854
|
args: [{
|
|
847
855
|
selector: "tikal-chip",
|
|
848
|
-
imports: [ChipModule],
|
|
849
|
-
template: "<p-chip [
|
|
856
|
+
imports: [ChipModule, PIcon],
|
|
857
|
+
template: "<p-chip [label]=\"label()\">\n @if (icon()) {\n <svg [pIcon]=\"icon()\"></svg>\n }\n</p-chip>\n"
|
|
850
858
|
}]
|
|
851
859
|
}],
|
|
852
860
|
propDecorators: {
|
|
@@ -942,6 +950,7 @@ var PlayerSlotComponent = class PlayerSlotComponent {
|
|
|
942
950
|
colour = input.required(...ngDevMode ? [{ debugName: "colour" }] : /* istanbul ignore next */ []);
|
|
943
951
|
isReady = input.required(...ngDevMode ? [{ debugName: "isReady" }] : /* istanbul ignore next */ []);
|
|
944
952
|
isOwner = input.required(...ngDevMode ? [{ debugName: "isOwner" }] : /* istanbul ignore next */ []);
|
|
953
|
+
isMe = input.required(...ngDevMode ? [{ debugName: "isMe" }] : /* istanbul ignore next */ []);
|
|
945
954
|
colourMap = {
|
|
946
955
|
red: "var(--p-red-500)",
|
|
947
956
|
green: "var(--p-green-500)",
|
|
@@ -990,29 +999,44 @@ var PlayerSlotComponent = class PlayerSlotComponent {
|
|
|
990
999
|
isSignal: true,
|
|
991
1000
|
isRequired: true,
|
|
992
1001
|
transformFunction: null
|
|
1002
|
+
},
|
|
1003
|
+
isMe: {
|
|
1004
|
+
classPropertyName: "isMe",
|
|
1005
|
+
publicName: "isMe",
|
|
1006
|
+
isSignal: true,
|
|
1007
|
+
isRequired: true,
|
|
1008
|
+
transformFunction: null
|
|
993
1009
|
}
|
|
994
1010
|
},
|
|
995
1011
|
ngImport: i0,
|
|
996
|
-
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 <
|
|
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",
|
|
997
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"],
|
|
998
|
-
dependencies: [
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
"
|
|
1006
|
-
|
|
1007
|
-
"
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
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
|
+
]
|
|
1016
1040
|
});
|
|
1017
1041
|
};
|
|
1018
1042
|
i0.ɵɵngDeclareClassMetadata({
|
|
@@ -1024,8 +1048,12 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
1024
1048
|
type: Component,
|
|
1025
1049
|
args: [{
|
|
1026
1050
|
selector: "tikal-player-slot",
|
|
1027
|
-
imports: [
|
|
1028
|
-
|
|
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",
|
|
1029
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"]
|
|
1030
1058
|
}]
|
|
1031
1059
|
}],
|
|
@@ -1061,6 +1089,14 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
1061
1089
|
alias: "isOwner",
|
|
1062
1090
|
required: true
|
|
1063
1091
|
}]
|
|
1092
|
+
}],
|
|
1093
|
+
isMe: [{
|
|
1094
|
+
type: i0.Input,
|
|
1095
|
+
args: [{
|
|
1096
|
+
isSignal: true,
|
|
1097
|
+
alias: "isMe",
|
|
1098
|
+
required: true
|
|
1099
|
+
}]
|
|
1064
1100
|
}]
|
|
1065
1101
|
}
|
|
1066
1102
|
});
|
|
@@ -1106,7 +1142,7 @@ var PlayerSlotListComponent = class PlayerSlotListComponent {
|
|
|
1106
1142
|
}
|
|
1107
1143
|
},
|
|
1108
1144
|
ngImport: i0,
|
|
1109
|
-
template: "<ng-container *transloco=\"let t; prefix: 'player-slot-list'\">\n <div class=\"header\">\n <span>{{ t('players') }}</span>\n <
|
|
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",
|
|
1110
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"],
|
|
1111
1147
|
dependencies: [
|
|
1112
1148
|
{
|
|
@@ -1117,7 +1153,8 @@ var PlayerSlotListComponent = class PlayerSlotListComponent {
|
|
|
1117
1153
|
"name",
|
|
1118
1154
|
"colour",
|
|
1119
1155
|
"isReady",
|
|
1120
|
-
"isOwner"
|
|
1156
|
+
"isOwner",
|
|
1157
|
+
"isMe"
|
|
1121
1158
|
]
|
|
1122
1159
|
},
|
|
1123
1160
|
{
|
|
@@ -1126,6 +1163,11 @@ var PlayerSlotListComponent = class PlayerSlotListComponent {
|
|
|
1126
1163
|
selector: "tikal-empty-player-slot",
|
|
1127
1164
|
inputs: ["isLoading"]
|
|
1128
1165
|
},
|
|
1166
|
+
{
|
|
1167
|
+
kind: "component",
|
|
1168
|
+
type: User,
|
|
1169
|
+
selector: "svg[data-p-icon=\"user\"]"
|
|
1170
|
+
},
|
|
1129
1171
|
{
|
|
1130
1172
|
kind: "directive",
|
|
1131
1173
|
type: TranslocoDirective,
|
|
@@ -1155,9 +1197,10 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
1155
1197
|
imports: [
|
|
1156
1198
|
PlayerSlotComponent,
|
|
1157
1199
|
EmptyPlayerSlotComponent,
|
|
1200
|
+
User,
|
|
1158
1201
|
TranslocoDirective
|
|
1159
1202
|
],
|
|
1160
|
-
template: "<ng-container *transloco=\"let t; prefix: 'player-slot-list'\">\n <div class=\"header\">\n <span>{{ t('players') }}</span>\n <
|
|
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",
|
|
1161
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"]
|
|
1162
1205
|
}]
|
|
1163
1206
|
}],
|
|
@@ -1247,7 +1290,7 @@ var MaxPlayerSelectComponent = class MaxPlayerSelectComponent {
|
|
|
1247
1290
|
{
|
|
1248
1291
|
kind: "component",
|
|
1249
1292
|
type: i1.SelectButton,
|
|
1250
|
-
selector: "p-
|
|
1293
|
+
selector: "p-selectbutton, p-select-button",
|
|
1251
1294
|
inputs: [
|
|
1252
1295
|
"options",
|
|
1253
1296
|
"optionLabel",
|
|
@@ -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"],"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 { EnumMapPipe } from '../../../pipes/enum-map';\nimport { ButtonModule } from '@openng/optimus-ui/button';\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, EnumMapPipe],\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 /** 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","<p-button\n [attr.form]=\"form()\"\n [disabled]=\"isLoading()\"\n [icon]=\"'pi pi-' + icon()\"\n [label]=\"label()\"\n [loading]=\"isLoading()\"\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","import { Component, model, input } from '@angular/core';\nimport { FormValueControl } from '@angular/forms/signals';\nimport { InputTextModule } from '@openng/optimus-ui/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 '@openng/optimus-ui/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 '@openng/optimus-ui/chip';\n\n@Component({\n selector: 'tikal-chip',\n imports: [ChipModule],\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 [icon]=\"icon() ? 'pi pi-' + icon() : undefined\" [label]=\"label()\" />\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 { TranslocoDirective } from '@jsverse/transloco';\n\nexport type PlayerColour = 'red' | 'black' | 'green' | 'blue' | 'yellow';\n\n@Component({\n selector: 'tikal-player-slot',\n imports: [EnumMapPipe, 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 /** @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 (isOwner()) {\n <i class=\"pi pi-crown\" style=\"color: var(--p-yellow-600)\"></i>\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 { TranslocoDirective } from '@jsverse/transloco';\n\nexport type PlayerSlotData = {\n name: string;\n selectedColour: PlayerColour;\n isReady: boolean;\n isOwner: boolean;\n};\n\n@Component({\n selector: 'tikal-player-slot-list',\n imports: [PlayerSlotComponent, EmptyPlayerSlotComponent, 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 <i class=\"pi pi-user\"></i>\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","import { Component, input, model } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { FormValueControl } from '@angular/forms/signals';\nimport { SelectButtonModule } from '@openng/optimus-ui/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"],"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,CAAA;;AAAX,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAW,YAAA,CAAA;EAHvB,MAAA;EAAK,MAAA,CAAA,EACJ,MAAM,UACP,CAAA;;;ACYD,IAAa,kBAAb,MAAa,gBAAe;CAEjB,OAAO,MAAc,IAAG,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,CAAA,CAAA;CAGxB,SAAS,MAAoB,WAAU,GAAA,YAAA,CAAA,EAAA,WAAA,SAAA,CAAA,+BAAA,CAAA,CAAA;CAGvC,OAAO,MAAkB,UAAS,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,CAAA,CAAA;CAGlC,UAAU,EACjB,QAAQ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,MAAA,CAAA;GAAA,UAAA;GAAyB,SAC1B,CAAC,oBAAoB,WAAW;GAAC,UAAA;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"],"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 /** 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.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"],"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,CAAA;;AAAX,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAW,YAAA,CAAA;EAHvB,MAAA;EAAK,MAAA,CAAA,EACJ,MAAM,UACP,CAAA;;;ACaD,IAAa,kBAAb,MAAa,gBAAe;CAEjB,OAAO,MAAc,IAAG,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,CAAA,CAAA;CAGxB,SAAS,MAAoB,WAAU,GAAA,YAAA,CAAA,EAAA,WAAA,SAAA,CAAA,+BAAA,CAAA,CAAA;CAGvC,OAAO,MAAkB,UAAS,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,CAAA,CAAA;CAGlC,UAAU,EACjB,QAAQ,OACT;CAGQ,QAAQ,MAAe,GAAA,YAAA,CAAA,QAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;CAGvB,YAAY,MAAe,OAAM,GAAA,YAAA,CAAA,EAAA,WAAA,YAAA,CAAA,+BAAA,CAAA,CAAA;CAGjC,UAAU,MAAe,OAAM,GAAA,YAAA,CAAA,EAAA,W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;IAAA,UAAA,CAAA,SAAA;GAAA;EAAA;CAAA,CAAA;;AAI9B,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAwB,YAAA,CAAA;EANpC,MAAA;EACW,MAAA,CAAA;GAAA,UAAA;GAAyB,SAC1B,CAAC,oBAAoB,WAAW;GAAC,UAAA;EAAA,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tikal-ui-components",
|
|
3
|
-
"
|
|
4
|
-
"version": "1.0.0",
|
|
3
|
+
"version": "1.1.0",
|
|
5
4
|
"repository": {
|
|
6
5
|
"type": "git",
|
|
7
6
|
"url": "https://github.com/Tikal-online/tikal-game.git"
|
|
8
7
|
},
|
|
9
8
|
"peerDependencies": {
|
|
10
|
-
"@angular/common": "^22.
|
|
11
|
-
"@angular/core": "^22.
|
|
12
|
-
"@angular/forms": "^22.
|
|
13
|
-
"@angular/router": "^22.
|
|
9
|
+
"@angular/common": "^22.1.0",
|
|
10
|
+
"@angular/core": "^22.1.0",
|
|
11
|
+
"@angular/forms": "^22.1.0",
|
|
12
|
+
"@angular/router": "^22.1.0",
|
|
14
13
|
"@jsverse/transloco": "^8.4.0",
|
|
15
|
-
"@
|
|
16
|
-
"@
|
|
17
|
-
"
|
|
14
|
+
"@primeuix/themes": "^3.0.0",
|
|
15
|
+
"@primeicons/angular": "^8.0.0",
|
|
16
|
+
"primeng": "^22.1.0"
|
|
18
17
|
},
|
|
19
18
|
"dependencies": {
|
|
20
19
|
"tslib": "^2.3.0"
|
|
@@ -30,5 +29,6 @@
|
|
|
30
29
|
"types": "./types/tikal-ui-components.d.ts",
|
|
31
30
|
"default": "./fesm2022/tikal-ui-components.mjs"
|
|
32
31
|
}
|
|
33
|
-
}
|
|
32
|
+
},
|
|
33
|
+
"type": "module"
|
|
34
34
|
}
|
|
@@ -15,7 +15,7 @@ export declare class ButtonComponent {
|
|
|
15
15
|
normal: undefined;
|
|
16
16
|
};
|
|
17
17
|
/** What text should the button display? */
|
|
18
|
-
readonly label: import("@angular/core").InputSignal<string>;
|
|
18
|
+
readonly label: import("@angular/core").InputSignal<string | undefined>;
|
|
19
19
|
/** Is the action related to the button currently running? */
|
|
20
20
|
readonly isLoading: import("@angular/core").InputSignal<boolean>;
|
|
21
21
|
/** Should the button have an outline? */
|
|
@@ -253,6 +253,8 @@ export declare class PlayerSlotComponent {
|
|
|
253
253
|
readonly isReady: import("@angular/core").InputSignal<boolean>;
|
|
254
254
|
/** Is the player an owner of the lobby? */
|
|
255
255
|
readonly isOwner: import("@angular/core").InputSignal<boolean>;
|
|
256
|
+
/** Is the player the currently authenticated user? */
|
|
257
|
+
readonly isMe: import("@angular/core").InputSignal<boolean>;
|
|
256
258
|
/** @ignore */
|
|
257
259
|
readonly colourMap: {
|
|
258
260
|
red: string;
|
|
@@ -282,6 +284,11 @@ export declare class PlayerSlotComponent {
|
|
|
282
284
|
"required": true;
|
|
283
285
|
"isSignal": true;
|
|
284
286
|
};
|
|
287
|
+
"isMe": {
|
|
288
|
+
"alias": "isMe";
|
|
289
|
+
"required": true;
|
|
290
|
+
"isSignal": true;
|
|
291
|
+
};
|
|
285
292
|
}, {}, never, never, true, never>;
|
|
286
293
|
}
|
|
287
294
|
export type PlayerSlotData = {
|
|
@@ -289,6 +296,7 @@ export type PlayerSlotData = {
|
|
|
289
296
|
selectedColour: PlayerColour;
|
|
290
297
|
isReady: boolean;
|
|
291
298
|
isOwner: boolean;
|
|
299
|
+
isMe: boolean;
|
|
292
300
|
};
|
|
293
301
|
export declare class PlayerSlotListComponent {
|
|
294
302
|
/** How many players fit in the lobby? */
|