-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
github-actions
committed
Nov 29, 2024
0 parents
commit c3f9a27
Showing
767 changed files
with
110,731 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
@import '_content/Masa.Blazor/Masa.Blazor.bundle.scp.css'; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// Copyright (c) LumexUI 2024 | ||
// LumexUI licenses this file to you under the MIT license | ||
// See the license here https://github.com/LumexUI/lumexui/blob/main/LICENSE | ||
|
||
import { elementReference } from './elementReference.js' | ||
|
||
export const Lumex = { | ||
elementReference | ||
}; | ||
|
||
window['Lumex'] = Lumex |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// Copyright (c) LumexUI 2024 | ||
// LumexUI licenses this file to you under the MIT license | ||
// See the license here https://github.com/LumexUI/lumexui/blob/main/LICENSE | ||
|
||
function getValidationMessage(element) { | ||
if (!(element instanceof HTMLElement)) { | ||
throw new Error('The provided element is not a valid HTMLElement.'); | ||
} | ||
|
||
if (element instanceof HTMLInputElement || | ||
element instanceof HTMLTextAreaElement || | ||
element instanceof HTMLSelectElement) { | ||
return element.validationMessage; | ||
} else { | ||
throw new Error('The provided element does not support validation.'); | ||
} | ||
} | ||
|
||
export const input = { | ||
getValidationMessage | ||
} |
Oops, something went wrong.