Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Libraries update #65

Merged
merged 2 commits into from
Apr 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions samples/DatabaseGpt.Web/DatabaseGpt.Web.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

<ItemGroup>
<PackageReference Include="LigerShark.WebOptimizer.Core" Version="3.0.405" />
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="8.0.3" />
<PackageReference Include="MinimalHelpers.OpenApi" Version="2.0.3" />
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="8.0.4" />
<PackageReference Include="MinimalHelpers.OpenApi" Version="2.0.5" />
<PackageReference Include="MinimalHelpers.Routing.Analyzers" Version="1.0.7" />
<PackageReference Include="OperationResultTools.AspNetCore.Http" Version="1.0.22" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.5.0" />
Expand Down
4 changes: 2 additions & 2 deletions samples/DatabaseGpt.Web/libman.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
"destination": "wwwroot/lib/jquery"
},
{
"library": "alpinejs@3.13.7",
"library": "alpinejs@3.13.8",
"destination": "wwwroot/lib/alpinejs"
},
{
"library": "marked@12.0.1",
"library": "marked@12.0.2",
"destination": "wwwroot/lib/marked"
}
]
Expand Down
32 changes: 25 additions & 7 deletions samples/DatabaseGpt.Web/wwwroot/lib/alpinejs/cdn.js
Original file line number Diff line number Diff line change
Expand Up @@ -1397,7 +1397,6 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
"checked",
"required",
"readonly",
"hidden",
"open",
"selected",
"autofocus",
Expand Down Expand Up @@ -1621,7 +1620,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
get raw() {
return raw;
},
version: "3.13.7",
version: "3.13.8",
flushAndStopDeferringMutations,
dontAutoEvaluateFunctions,
disableEffectScheduling,
Expand Down Expand Up @@ -2798,7 +2797,9 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
});
if (modifiers.includes("fill")) {
if ([void 0, null, ""].includes(getValue()) || el.type === "checkbox" && Array.isArray(getValue())) {
el.dispatchEvent(new Event(event, {}));
setValue(
getInputValue(el, modifiers, { target: el }, getValue())
);
}
}
if (!el._x_removeModelListeners)
Expand Down Expand Up @@ -2867,12 +2868,25 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
return option.value || option.text;
});
} else {
let newValue;
if (el.type === "radio") {
if (event.target.checked) {
newValue = event.target.value;
} else {
newValue = currentValue;
}
} else {
newValue = event.target.value;
}
if (modifiers.includes("number")) {
return safeParseNumber(event.target.value);
return safeParseNumber(newValue);
} else if (modifiers.includes("boolean")) {
return safeParseBoolean(event.target.value);
return safeParseBoolean(newValue);
} else if (modifiers.includes("trim")) {
return newValue.trim();
} else {
return newValue;
}
return modifiers.includes("trim") ? event.target.value.trim() : event.target.value;
}
});
}
Expand Down Expand Up @@ -2931,7 +2945,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);

// packages/alpinejs/src/directives/x-bind.js
mapAttributes(startingWith(":", into(prefix("bind:"))));
var handler2 = (el, { value, modifiers, expression, original }, { effect: effect3 }) => {
var handler2 = (el, { value, modifiers, expression, original }, { effect: effect3, cleanup: cleanup2 }) => {
if (!value) {
let bindingProviders = {};
injectBindingProviders(bindingProviders);
Expand All @@ -2953,6 +2967,10 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
}
mutateDom(() => bind(el, value, result, modifiers));
}));
cleanup2(() => {
el._x_undoAddedClasses && el._x_undoAddedClasses();
el._x_undoAddedStyles && el._x_undoAddedStyles();
});
};
handler2.inline = (el, { value, modifiers, expression }) => {
if (!value)
Expand Down
4 changes: 2 additions & 2 deletions samples/DatabaseGpt.Web/wwwroot/lib/alpinejs/cdn.min.js

Large diffs are not rendered by default.

32 changes: 25 additions & 7 deletions samples/DatabaseGpt.Web/wwwroot/lib/alpinejs/module.cjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -2810,7 +2810,6 @@ function isBooleanAttr(attrName) {
"checked",
"required",
"readonly",
"hidden",
"open",
"selected",
"autofocus",
Expand Down Expand Up @@ -3034,7 +3033,7 @@ var Alpine = {
get raw() {
return raw;
},
version: "3.13.7",
version: "3.13.8",
flushAndStopDeferringMutations,
dontAutoEvaluateFunctions,
disableEffectScheduling,
Expand Down Expand Up @@ -3506,7 +3505,9 @@ directive("model", (el, { modifiers, expression }, { effect: effect3, cleanup })
});
if (modifiers.includes("fill")) {
if ([void 0, null, ""].includes(getValue()) || el.type === "checkbox" && Array.isArray(getValue())) {
el.dispatchEvent(new Event(event, {}));
setValue(
getInputValue(el, modifiers, { target: el }, getValue())
);
}
}
if (!el._x_removeModelListeners)
Expand Down Expand Up @@ -3575,12 +3576,25 @@ function getInputValue(el, modifiers, event, currentValue) {
return option.value || option.text;
});
} else {
let newValue;
if (el.type === "radio") {
if (event.target.checked) {
newValue = event.target.value;
} else {
newValue = currentValue;
}
} else {
newValue = event.target.value;
}
if (modifiers.includes("number")) {
return safeParseNumber(event.target.value);
return safeParseNumber(newValue);
} else if (modifiers.includes("boolean")) {
return safeParseBoolean(event.target.value);
return safeParseBoolean(newValue);
} else if (modifiers.includes("trim")) {
return newValue.trim();
} else {
return newValue;
}
return modifiers.includes("trim") ? event.target.value.trim() : event.target.value;
}
});
}
Expand Down Expand Up @@ -3639,7 +3653,7 @@ directive("html", (el, { expression }, { effect: effect3, evaluateLater: evaluat

// packages/alpinejs/src/directives/x-bind.js
mapAttributes(startingWith(":", into(prefix("bind:"))));
var handler2 = (el, { value, modifiers, expression, original }, { effect: effect3 }) => {
var handler2 = (el, { value, modifiers, expression, original }, { effect: effect3, cleanup }) => {
if (!value) {
let bindingProviders = {};
injectBindingProviders(bindingProviders);
Expand All @@ -3661,6 +3675,10 @@ var handler2 = (el, { value, modifiers, expression, original }, { effect: effect
}
mutateDom(() => bind(el, value, result, modifiers));
}));
cleanup(() => {
el._x_undoAddedClasses && el._x_undoAddedClasses();
el._x_undoAddedStyles && el._x_undoAddedStyles();
});
};
handler2.inline = (el, { value, modifiers, expression }) => {
if (!value)
Expand Down

Large diffs are not rendered by default.

32 changes: 25 additions & 7 deletions samples/DatabaseGpt.Web/wwwroot/lib/alpinejs/module.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -1396,7 +1396,6 @@ function isBooleanAttr(attrName) {
"checked",
"required",
"readonly",
"hidden",
"open",
"selected",
"autofocus",
Expand Down Expand Up @@ -1620,7 +1619,7 @@ var Alpine = {
get raw() {
return raw;
},
version: "3.13.7",
version: "3.13.8",
flushAndStopDeferringMutations,
dontAutoEvaluateFunctions,
disableEffectScheduling,
Expand Down Expand Up @@ -2797,7 +2796,9 @@ directive("model", (el, { modifiers, expression }, { effect: effect3, cleanup: c
});
if (modifiers.includes("fill")) {
if ([void 0, null, ""].includes(getValue()) || el.type === "checkbox" && Array.isArray(getValue())) {
el.dispatchEvent(new Event(event, {}));
setValue(
getInputValue(el, modifiers, { target: el }, getValue())
);
}
}
if (!el._x_removeModelListeners)
Expand Down Expand Up @@ -2866,12 +2867,25 @@ function getInputValue(el, modifiers, event, currentValue) {
return option.value || option.text;
});
} else {
let newValue;
if (el.type === "radio") {
if (event.target.checked) {
newValue = event.target.value;
} else {
newValue = currentValue;
}
} else {
newValue = event.target.value;
}
if (modifiers.includes("number")) {
return safeParseNumber(event.target.value);
return safeParseNumber(newValue);
} else if (modifiers.includes("boolean")) {
return safeParseBoolean(event.target.value);
return safeParseBoolean(newValue);
} else if (modifiers.includes("trim")) {
return newValue.trim();
} else {
return newValue;
}
return modifiers.includes("trim") ? event.target.value.trim() : event.target.value;
}
});
}
Expand Down Expand Up @@ -2930,7 +2944,7 @@ directive("html", (el, { expression }, { effect: effect3, evaluateLater: evaluat

// packages/alpinejs/src/directives/x-bind.js
mapAttributes(startingWith(":", into(prefix("bind:"))));
var handler2 = (el, { value, modifiers, expression, original }, { effect: effect3 }) => {
var handler2 = (el, { value, modifiers, expression, original }, { effect: effect3, cleanup: cleanup2 }) => {
if (!value) {
let bindingProviders = {};
injectBindingProviders(bindingProviders);
Expand All @@ -2952,6 +2966,10 @@ var handler2 = (el, { value, modifiers, expression, original }, { effect: effect
}
mutateDom(() => bind(el, value, result, modifiers));
}));
cleanup2(() => {
el._x_undoAddedClasses && el._x_undoAddedClasses();
el._x_undoAddedStyles && el._x_undoAddedStyles();
});
};
handler2.inline = (el, { value, modifiers, expression }) => {
if (!value)
Expand Down

Large diffs are not rendered by default.

10 changes: 6 additions & 4 deletions samples/DatabaseGpt.Web/wwwroot/lib/marked/lib/marked.esm.js

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

Large diffs are not rendered by default.

10 changes: 6 additions & 4 deletions samples/DatabaseGpt.Web/wwwroot/lib/marked/lib/marked.umd.js

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

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions samples/DatabaseGpt.Web/wwwroot/lib/marked/marked.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/DatabaseGpt.Sqlite/DatabaseGpt.Sqlite.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Dapper" Version="2.1.28" />
<PackageReference Include="Microsoft.Data.Sqlite" Version="8.0.1" />
<PackageReference Include="Dapper" Version="2.1.35" />
<PackageReference Include="Microsoft.Data.Sqlite" Version="8.0.4" />
</ItemGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/DatabaseGpt/DatabaseGpt.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<ItemGroup>
<PackageReference Include="ChatGptNet" Version="3.2.10" />
<PackageReference Include="Microsoft.Extensions.Http.Resilience" Version="8.3.0" />
<PackageReference Include="Microsoft.Extensions.Http.Resilience" Version="8.4.0" />
<PackageReference Include="Polly.Extensions" Version="8.3.1" />
</ItemGroup>

Expand Down
Loading