Skip to content

Commit

Permalink
Version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalbaljet committed Aug 25, 2022
1 parent 073df6f commit 1b664b0
Show file tree
Hide file tree
Showing 7 changed files with 43 additions and 34 deletions.
36 changes: 18 additions & 18 deletions app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"build": "vite build && vite build --ssr"
},
"devDependencies": {
"@protonemedia/laravel-splade": "file:../protonemedia-laravel-splade-0.4.7.tgz",
"@protonemedia/laravel-splade": "file:../protonemedia-laravel-splade-0.4.8.tgz",
"@tailwindcss/forms": "^0.5.2",
"@tailwindcss/typography": "^0.5.2",
"@vitejs/plugin-vue": "^3.0.0",
Expand Down
27 changes: 18 additions & 9 deletions dist/protone-media-laravel-splade.js
Original file line number Diff line number Diff line change
Expand Up @@ -3321,8 +3321,9 @@ const qf = {
$put(e, t) {
return Vi(this.values, e, t);
},
submit() {
if (!this.confirm)
submit(e) {
const t = e.submitter;
if (t.name && this.$put(t.name, t.value), !this.confirm)
return this.request();
m.confirm(
Ki(this.confirm) ? "" : this.confirm,
Expand Down Expand Up @@ -3389,15 +3390,17 @@ const qf = {
default: () => ({})
},
modelValue: {
type: String,
type: [String, Number],
required: !1
}
},
emits: ["update:modelValue"],
data() {
return {
disabled: !1,
element: null,
flatpickrInstance: null
flatpickrInstance: null,
observer: null
};
},
watch: {
Expand All @@ -3406,10 +3409,16 @@ const qf = {
}
},
mounted() {
this.element = this.$refs.input.querySelector("input"), this.flatpickr && this.initFlatpickr(this.element);
this.element = this.$refs.input.querySelector("input"), this.flatpickr && this.initFlatpickr(this.element), this.disabled = this.element.disabled;
const e = this;
this.observer = new MutationObserver(function(t) {
t.forEach(function(r) {
r.attributeName === "disabled" && (e.disabled = r.target.disabled);
});
}), this.observer.observe(this.element, { attributes: !0 });
},
beforeUnmount() {
this.flatpickrInstance && this.flatpickrInstance.destroy();
this.observer.disconnect(), this.flatpickrInstance && this.flatpickrInstance.destroy();
},
methods: {
initFlatpickr(e) {
Expand All @@ -3428,7 +3437,7 @@ const qf = {
}, Nf = { ref: "input" };
function kf(e, t, r, n, i, o) {
return R(), se("div", Nf, [
ge(e.$slots, "default")
ge(e.$slots, "default", { disabled: i.disabled })
], 512);
}
const Hf = /* @__PURE__ */ ft(Mf, [["render", kf]]), Vf = ["href", "onClick"], Uf = {
Expand Down Expand Up @@ -3653,7 +3662,7 @@ const sd = ad, ld = {
default: !1
},
modelValue: {
type: [String, Array],
type: [String, Number, Array],
required: !1
},
placeholder: {
Expand Down Expand Up @@ -3992,7 +4001,7 @@ const $d = {
default: !1
},
modelValue: {
type: String,
type: [String, Number],
required: !1
}
},
Expand Down
4 changes: 2 additions & 2 deletions dist/protone-media-laravel-splade.umd.cjs

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@protonemedia/laravel-splade",
"version": "0.4.7",
"version": "0.4.8",
"description": "Laravel Splade: the magic of Inertia.js with the simplicity of Blade.",
"private": false,
"author": "Pascal Baljet <pascal@protone.media>",
Expand Down
2 changes: 1 addition & 1 deletion src/Commands/SpladeInstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function handle(): int
// Install NPM packages...
$this->updateNodePackages(function ($packages) {
return [
'@protonemedia/laravel-splade' => '^0.4.7',
'@protonemedia/laravel-splade' => '^0.4.8',
'@tailwindcss/forms' => '^0.5.2',
'@tailwindcss/typography' => '^0.5.2',
'@vitejs/plugin-vue' => '^3.0.0',
Expand Down

0 comments on commit 1b664b0

Please sign in to comment.