Skip to content

Commit a746852

Browse files
author
github-actions
committed
Deploy Blazor app to GitHub Pages
0 parents  commit a746852

File tree

767 files changed

+110731
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

767 files changed

+110731
-0
lines changed

.nojekyll

Whitespace-only changes.

LaunchApp.styles.css

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
@import '_content/Masa.Blazor/Masa.Blazor.bundle.scp.css';
2+

_content/LumexUI/js/LumexUI.js

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// Copyright (c) LumexUI 2024
2+
// LumexUI licenses this file to you under the MIT license
3+
// See the license here https://github.com/LumexUI/lumexui/blob/main/LICENSE
4+
5+
import { elementReference } from './elementReference.js'
6+
7+
export const Lumex = {
8+
elementReference
9+
};
10+
11+
window['Lumex'] = Lumex
+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// Copyright (c) LumexUI 2024
2+
// LumexUI licenses this file to you under the MIT license
3+
// See the license here https://github.com/LumexUI/lumexui/blob/main/LICENSE
4+
5+
function getValidationMessage(element) {
6+
if (!(element instanceof HTMLElement)) {
7+
throw new Error('The provided element is not a valid HTMLElement.');
8+
}
9+
10+
if (element instanceof HTMLInputElement ||
11+
element instanceof HTMLTextAreaElement ||
12+
element instanceof HTMLSelectElement) {
13+
return element.validationMessage;
14+
} else {
15+
throw new Error('The provided element does not support validation.');
16+
}
17+
}
18+
19+
export const input = {
20+
getValidationMessage
21+
}

0 commit comments

Comments
 (0)