[Feature] PEPPER in enviPath (#332)

Co-authored-by: Tim Lorsbach <tim@lorsba.ch>
Reviewed-on: enviPath/enviPy#332
This commit is contained in:
2026-03-06 22:11:22 +13:00
parent 6e00926371
commit c6ff97694d
43 changed files with 3793 additions and 371 deletions

View File

@ -161,8 +161,18 @@ document.addEventListener("alpine:init", () => {
set value(v) {
this.data[this.fieldName] = v;
},
get multiple() {
return !!(this.fieldSchema.items && this.fieldSchema.items.enum);
},
get options() {
return this.fieldSchema.enum || [];
if (this.fieldSchema.enum) {
return this.fieldSchema.enum;
} else if (this.fieldSchema.items && this.fieldSchema.items.enum) {
return this.fieldSchema.items.enum;
} else {
return [];
}
},
}),
);