Skip to content
This repository was archived by the owner on Oct 20, 2025. It is now read-only.

Commit 1b664b0

Browse files
committed
Version bump
1 parent 073df6f commit 1b664b0

File tree

7 files changed

+43
-34
lines changed

7 files changed

+43
-34
lines changed

app/package-lock.json

Lines changed: 18 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"build": "vite build && vite build --ssr"
66
},
77
"devDependencies": {
8-
"@protonemedia/laravel-splade": "file:../protonemedia-laravel-splade-0.4.7.tgz",
8+
"@protonemedia/laravel-splade": "file:../protonemedia-laravel-splade-0.4.8.tgz",
99
"@tailwindcss/forms": "^0.5.2",
1010
"@tailwindcss/typography": "^0.5.2",
1111
"@vitejs/plugin-vue": "^3.0.0",

dist/protone-media-laravel-splade.js

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3321,8 +3321,9 @@ const qf = {
33213321
$put(e, t) {
33223322
return Vi(this.values, e, t);
33233323
},
3324-
submit() {
3325-
if (!this.confirm)
3324+
submit(e) {
3325+
const t = e.submitter;
3326+
if (t.name && this.$put(t.name, t.value), !this.confirm)
33263327
return this.request();
33273328
m.confirm(
33283329
Ki(this.confirm) ? "" : this.confirm,
@@ -3389,15 +3390,17 @@ const qf = {
33893390
default: () => ({})
33903391
},
33913392
modelValue: {
3392-
type: String,
3393+
type: [String, Number],
33933394
required: !1
33943395
}
33953396
},
33963397
emits: ["update:modelValue"],
33973398
data() {
33983399
return {
3400+
disabled: !1,
33993401
element: null,
3400-
flatpickrInstance: null
3402+
flatpickrInstance: null,
3403+
observer: null
34013404
};
34023405
},
34033406
watch: {
@@ -3406,10 +3409,16 @@ const qf = {
34063409
}
34073410
},
34083411
mounted() {
3409-
this.element = this.$refs.input.querySelector("input"), this.flatpickr && this.initFlatpickr(this.element);
3412+
this.element = this.$refs.input.querySelector("input"), this.flatpickr && this.initFlatpickr(this.element), this.disabled = this.element.disabled;
3413+
const e = this;
3414+
this.observer = new MutationObserver(function(t) {
3415+
t.forEach(function(r) {
3416+
r.attributeName === "disabled" && (e.disabled = r.target.disabled);
3417+
});
3418+
}), this.observer.observe(this.element, { attributes: !0 });
34103419
},
34113420
beforeUnmount() {
3412-
this.flatpickrInstance && this.flatpickrInstance.destroy();
3421+
this.observer.disconnect(), this.flatpickrInstance && this.flatpickrInstance.destroy();
34133422
},
34143423
methods: {
34153424
initFlatpickr(e) {
@@ -3428,7 +3437,7 @@ const qf = {
34283437
}, Nf = { ref: "input" };
34293438
function kf(e, t, r, n, i, o) {
34303439
return R(), se("div", Nf, [
3431-
ge(e.$slots, "default")
3440+
ge(e.$slots, "default", { disabled: i.disabled })
34323441
], 512);
34333442
}
34343443
const Hf = /* @__PURE__ */ ft(Mf, [["render", kf]]), Vf = ["href", "onClick"], Uf = {
@@ -3653,7 +3662,7 @@ const sd = ad, ld = {
36533662
default: !1
36543663
},
36553664
modelValue: {
3656-
type: [String, Array],
3665+
type: [String, Number, Array],
36573666
required: !1
36583667
},
36593668
placeholder: {
@@ -3992,7 +4001,7 @@ const $d = {
39924001
default: !1
39934002
},
39944003
modelValue: {
3995-
type: String,
4004+
type: [String, Number],
39964005
required: !1
39974006
}
39984007
},

dist/protone-media-laravel-splade.umd.cjs

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@protonemedia/laravel-splade",
3-
"version": "0.4.7",
3+
"version": "0.4.8",
44
"description": "Laravel Splade: the magic of Inertia.js with the simplicity of Blade.",
55
"private": false,
66
"author": "Pascal Baljet <[email protected]>",

src/Commands/SpladeInstallCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public function handle(): int
2121
// Install NPM packages...
2222
$this->updateNodePackages(function ($packages) {
2323
return [
24-
'@protonemedia/laravel-splade' => '^0.4.7',
24+
'@protonemedia/laravel-splade' => '^0.4.8',
2525
'@tailwindcss/forms' => '^0.5.2',
2626
'@tailwindcss/typography' => '^0.5.2',
2727
'@vitejs/plugin-vue' => '^3.0.0',

0 commit comments

Comments
 (0)