mirror of
https://github.com/filamentphp/filament.git
synced 2026-09-24 15:42:09 +08:00
wip
This commit is contained in:
+1
-1
@@ -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))
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+48
-47
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
@@ -1,4 +1,4 @@
|
||||
{
|
||||
"/app.js": "/app.js?id=7607f9d64a6cf65aa541ab3aebab7c64",
|
||||
"/app.js": "/app.js?id=f79c6d2515d8bec912e04096aa1ba204",
|
||||
"/app.css": "/app.css?id=29ff649ad454702b44cb627b726b5236"
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -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 */
|
||||
|
||||
Vendored
+31740
-21764
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',
|
||||
|
||||
Reference in New Issue
Block a user