@amodx/schemas 0.0.1 → 0.0.21

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,201 +1,48 @@
1
- import { PropertyInputBase, PropertyInputMetaData } from "./PropertyInput";
2
- declare class StringInput extends PropertyInputBase<string, {
1
+ declare const StringInput: import("./registerInput").RegisteredInput<string, import("./PropertyInput").PropertyInputBaseProperties & {
3
2
  min: number;
4
3
  max: number;
5
- }> {
6
- static Meta: {
7
- id: string;
8
- name: string;
9
- };
10
- static Create(data: Partial<StringInput["data"]>): StringInput["data"];
11
- compare(value1: string, value2: string): boolean;
12
- getClass(): typeof StringInput;
13
- getMeta(): PropertyInputMetaData;
14
- }
15
- declare class ColorInput extends PropertyInputBase<string, {}> {
16
- static Meta: {
17
- id: string;
18
- name: string;
19
- };
20
- static Create(data: Partial<ColorInput["data"]>): ColorInput["data"];
21
- compare(value1: string, value2: string): boolean;
22
- getClass(): typeof ColorInput;
23
- getMeta(): PropertyInputMetaData;
24
- }
25
- declare class RangeInput extends PropertyInputBase<number, {
4
+ }>;
5
+ declare const HEXColorInput: import("./registerInput").RegisteredInput<string, import("./PropertyInput").PropertyInputBaseProperties>;
6
+ declare const Color3Input: import("./registerInput").RegisteredInput<{
7
+ r: number;
8
+ g: number;
9
+ b: number;
10
+ }, import("./PropertyInput").PropertyInputBaseProperties>;
11
+ declare const Color4Input: import("./registerInput").RegisteredInput<{
12
+ r: number;
13
+ g: number;
14
+ b: number;
15
+ a: number;
16
+ }, import("./PropertyInput").PropertyInputBaseProperties>;
17
+ declare const RangeInput: import("./registerInput").RegisteredInput<number, import("./PropertyInput").PropertyInputBaseProperties & {
26
18
  min: number;
27
19
  max: number;
28
20
  step: number;
29
- }> {
30
- static Meta: {
31
- id: string;
32
- name: string;
33
- };
34
- static Create(data: Partial<RangeInput["data"]>): RangeInput["data"];
35
- compare(value1: number, value2: number): boolean;
36
- getClass(): typeof RangeInput;
37
- getMeta(): PropertyInputMetaData;
38
- }
39
- declare class FloatInput extends PropertyInputBase<number, {
21
+ }>;
22
+ declare const FloatInput: import("./registerInput").RegisteredInput<number, import("./PropertyInput").PropertyInputBaseProperties & {
40
23
  min: number;
41
24
  max: number;
42
- }> {
43
- static Meta: {
44
- id: string;
45
- name: string;
46
- };
47
- static Create(data: Partial<FloatInput["data"]>): FloatInput["data"];
48
- compare(value1: number, value2: number): boolean;
49
- getClass(): typeof FloatInput;
50
- getMeta(): PropertyInputMetaData;
51
- }
52
- declare class Vec2Input extends PropertyInputBase<{
25
+ }>;
26
+ declare const Vec2Input: import("./registerInput").RegisteredInput<{
53
27
  x: number;
54
28
  y: number;
55
- }, {
29
+ }, import("./PropertyInput").PropertyInputBaseProperties & {
56
30
  valueType: "position" | "dimension";
57
- }> {
58
- static Meta: {
59
- id: string;
60
- name: string;
61
- };
62
- static Create(data: Partial<Vec2Input["data"]>): Vec2Input["data"];
63
- compare(value1: {
64
- x: number;
65
- y: number;
66
- }, value2: {
67
- x: number;
68
- y: number;
69
- }): boolean;
70
- getClass(): typeof Vec2Input;
71
- getMeta(): PropertyInputMetaData;
72
- }
73
- declare class Vec3Input extends PropertyInputBase<{
31
+ }>;
32
+ declare const Vec3Input: import("./registerInput").RegisteredInput<{
74
33
  x: number;
75
34
  y: number;
76
35
  z: number;
77
- }, {
36
+ }, import("./PropertyInput").PropertyInputBaseProperties & {
78
37
  valueType: "position" | "dimension";
79
- }> {
80
- static Meta: {
81
- id: string;
82
- name: string;
83
- };
84
- static Create(data: Partial<Vec3Input["data"]>): Vec3Input["data"];
85
- compare(value1: {
86
- x: number;
87
- y: number;
88
- z: number;
89
- }, value2: {
90
- x: number;
91
- y: number;
92
- z: number;
93
- }): boolean;
94
- getClass(): typeof Vec3Input;
95
- getMeta(): PropertyInputMetaData;
96
- }
97
- declare class IntInput extends PropertyInputBase<number, {
38
+ }>;
39
+ declare const IntInput: import("./registerInput").RegisteredInput<number, import("./PropertyInput").PropertyInputBaseProperties & {
98
40
  min: number;
99
41
  max: number;
100
- }> {
101
- static Meta: {
102
- id: string;
103
- name: string;
104
- };
105
- static Create(data: Partial<IntInput["data"]>): IntInput["data"];
106
- compare(value1: number, value2: number): boolean;
107
- getClass(): typeof IntInput;
108
- getMeta(): PropertyInputMetaData;
109
- }
110
- declare class SelectInput extends PropertyInputBase<string | number, {
111
- options: string[] | [display: string, value: string | number][];
42
+ }>;
43
+ declare const SelectInput: import("./registerInput").RegisteredInput<string | number, import("./PropertyInput").PropertyInputBaseProperties & {
44
+ options: string[] | [string, string | number][];
112
45
  mode?: string;
113
- }> {
114
- static Meta: {
115
- id: string;
116
- name: string;
117
- };
118
- static Create(data: Partial<SelectInput["data"]>): SelectInput["data"];
119
- compare(value1: string | number, value2: string | number): boolean;
120
- getClass(): typeof SelectInput;
121
- getMeta(): PropertyInputMetaData;
122
- }
123
- declare class FilePathInput extends PropertyInputBase<string, {
124
- acceptedFileExtensions: string[];
125
- }> {
126
- static Meta: {
127
- id: string;
128
- name: string;
129
- };
130
- static Create(data: Partial<FilePathInput["data"]>): FilePathInput["data"];
131
- compare(value1: string, value2: string): boolean;
132
- getClass(): typeof FilePathInput;
133
- getMeta(): PropertyInputMetaData;
134
- }
135
- declare class PasswordInput extends PropertyInputBase<string, {
136
- min: number;
137
- max: number;
138
- }> {
139
- static Meta: {
140
- id: string;
141
- name: string;
142
- };
143
- static Create(data: Partial<PasswordInput["data"]>): PasswordInput["data"];
144
- compare(value1: string, value2: string): boolean;
145
- getClass(): typeof PasswordInput;
146
- getMeta(): PropertyInputMetaData;
147
- }
148
- declare class CheckboxInput extends PropertyInputBase<boolean, {}> {
149
- static Meta: {
150
- id: string;
151
- name: string;
152
- };
153
- static Create(data: Partial<CheckboxInput["data"]>): CheckboxInput["data"];
154
- compare(value1: boolean, value2: boolean): boolean;
155
- getClass(): typeof CheckboxInput;
156
- getMeta(): PropertyInputMetaData;
157
- }
158
- declare class DateInput extends PropertyInputBase<string, {}> {
159
- static Meta: {
160
- id: string;
161
- name: string;
162
- };
163
- static Create(data: Partial<DateInput["data"]>): DateInput["data"];
164
- compare(value1: string, value2: string): boolean;
165
- getClass(): typeof DateInput;
166
- getMeta(): PropertyInputMetaData;
167
- }
168
- declare class TextareaInput extends PropertyInputBase<string, {
169
- rows: number;
170
- cols: number;
171
- }> {
172
- static Meta: {
173
- id: string;
174
- name: string;
175
- };
176
- static Create(data: Partial<TextareaInput["data"]>): TextareaInput["data"];
177
- compare(value1: string, value2: string): boolean;
178
- getClass(): typeof TextareaInput;
179
- getMeta(): PropertyInputMetaData;
180
- }
181
- declare class EmailInput extends PropertyInputBase<string, {}> {
182
- static Meta: {
183
- id: string;
184
- name: string;
185
- };
186
- static Create(data: Partial<EmailInput["data"]>): EmailInput["data"];
187
- compare(value1: string, value2: string): boolean;
188
- getClass(): typeof EmailInput;
189
- getMeta(): PropertyInputMetaData;
190
- }
191
- declare class UrlInput extends PropertyInputBase<string, {}> {
192
- static Meta: {
193
- id: string;
194
- name: string;
195
- };
196
- static Create(data: Partial<UrlInput["data"]>): UrlInput["data"];
197
- compare(value1: string, value2: string): boolean;
198
- getClass(): typeof UrlInput;
199
- getMeta(): PropertyInputMetaData;
200
- }
201
- export { ColorInput as ColorPropertyInput, RangeInput as RangePropertyInput, FloatInput as FloatPropertyInput, Vec2Input as Vec2PropertyInput, Vec3Input as Vec3PropertyInput, IntInput as IntPropertyInput, StringInput as StringPropertyInput, SelectInput as SelectPropertyInput, FilePathInput as FilePathPropertyInput, PasswordInput as PasswordPropertyInput, CheckboxInput as CheckboxPropertyInput, DateInput as DatePropertyInput, TextareaInput as TextareaPropertyInput, EmailInput as EmailPropertyInput, UrlInput as UrlPropertyInput, };
46
+ }>;
47
+ declare const BooleanInput: import("./registerInput").RegisteredInput<boolean, import("./PropertyInput").PropertyInputBaseProperties>;
48
+ export { HEXColorInput as HexColorPropertyInput, Color3Input as Color3PropertyInput, Color4Input as Color4PropertyInput, RangeInput as RangePropertyInput, FloatInput as FloatPropertyInput, Vec2Input as Vec2PropertyInput, Vec3Input as Vec3PropertyInput, IntInput as IntPropertyInput, StringInput as StringPropertyInput, SelectInput as SelectPropertyInput, BooleanInput as BooleanPropertyInput, };