This commit is contained in:
Dan Harrin
2022-05-05 11:01:48 +01:00
parent 03016f34c3
commit 56d461c581
9 changed files with 31803 additions and 21822 deletions
+1 -1
View File
@@ -9,6 +9,6 @@ esbuild.build({
outfile: 'packages/forms/dist/module.esm.js',
bundle: true,
platform: 'neutral',
mainFields: ['module'],
mainFields: ['main'],
watch: shouldWatch,
}).catch(() => process.exit(1))
+1 -1
View File
File diff suppressed because one or more lines are too long
+48 -47
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -1,4 +1,4 @@
{
"/app.js": "/app.js?id=7607f9d64a6cf65aa541ab3aebab7c64",
"/app.js": "/app.js?id=f79c6d2515d8bec912e04096aa1ba204",
"/app.css": "/app.css?id=29ff649ad454702b44cb627b726b5236"
}
+1 -1
View File
@@ -1532,9 +1532,9 @@ trix-editor .attachment__metadata .attachment__size {
background-size: 8px 8px;
}
.filament-forms-color-picker-preview::after {
@apply absolute inset-0;
content: "";
background: var(--color);
@apply absolute inset-0;
}
/* packages/forms/resources/css/components/file-upload.css */
+31740 -21764
View File
File diff suppressed because one or more lines are too long
@@ -5,7 +5,7 @@
}
.filament-forms-color-picker-preview::after {
@apply absolute inset-0;
content: '';
background: var(--color);
@apply absolute inset-0
}
@@ -110,12 +110,14 @@ export default (Alpine) => {
return
}
this.select.clearStore()
await this.refreshChoices({
const choices = await this.getChoices({
withInitialOptions: ! hasDynamicOptions,
})
this.select.clearStore()
this.setChoices(choices)
if (! [null, undefined, ''].includes(this.state)) {
this.select.setChoiceByValue(this.formatState(this.state))
}
@@ -123,9 +125,11 @@ export default (Alpine) => {
},
refreshChoices: async function (config = {}) {
const choices = await this.getChoices(config)
this.setChoices(await this.getChoices(config))
},
await this.select.setChoices(
setChoices: function (choices) {
this.select.setChoices(
choices,
'value',
'label',