@synergy-design-system/components 1.0.0-main.2 → 1.0.0-main.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +28 -0
- package/README.md +6 -0
- package/dist/chunks/chunk.2FIY3TX5.js +32 -0
- package/dist/chunks/chunk.2FIY3TX5.js.map +7 -0
- package/dist/chunks/chunk.5OIEI73E.js +45 -0
- package/dist/chunks/chunk.5OIEI73E.js.map +7 -0
- package/dist/chunks/chunk.5PZUAKCS.js +202 -0
- package/dist/chunks/chunk.5PZUAKCS.js.map +7 -0
- package/dist/chunks/chunk.6C4JXZZN.js +15 -0
- package/dist/chunks/chunk.6C4JXZZN.js.map +7 -0
- package/dist/chunks/chunk.7EGSHKGV.js +12 -0
- package/dist/chunks/chunk.7EGSHKGV.js.map +7 -0
- package/dist/chunks/chunk.A3SKDWCT.js +42 -0
- package/dist/chunks/chunk.A3SKDWCT.js.map +7 -0
- package/dist/chunks/chunk.BQPK6UKU.js +498 -0
- package/dist/chunks/chunk.BQPK6UKU.js.map +7 -0
- package/dist/chunks/chunk.BREU4ILT.js +28 -0
- package/dist/chunks/chunk.BREU4ILT.js.map +7 -0
- package/dist/chunks/chunk.C7624ITA.js +30 -0
- package/dist/chunks/chunk.C7624ITA.js.map +7 -0
- package/dist/chunks/chunk.DJOAQ4JU.js +36 -0
- package/dist/chunks/chunk.DJOAQ4JU.js.map +7 -0
- package/dist/chunks/chunk.DREO4ZTN.js +10 -0
- package/dist/chunks/chunk.DREO4ZTN.js.map +7 -0
- package/dist/chunks/chunk.EW2JZPYV.js +12 -0
- package/dist/chunks/chunk.EW2JZPYV.js.map +7 -0
- package/dist/chunks/chunk.FUYWF5Y2.js +278 -0
- package/dist/chunks/chunk.FUYWF5Y2.js.map +7 -0
- package/dist/chunks/chunk.ILONRPL4.js +10 -0
- package/dist/chunks/chunk.ILONRPL4.js.map +7 -0
- package/dist/chunks/chunk.N2I6HVX3.js +71 -0
- package/dist/chunks/chunk.N2I6HVX3.js.map +7 -0
- package/dist/chunks/chunk.O7USYXBT.js +23 -0
- package/dist/chunks/chunk.O7USYXBT.js.map +7 -0
- package/dist/chunks/chunk.P22LQI5J.js +376 -0
- package/dist/chunks/chunk.P22LQI5J.js.map +7 -0
- package/dist/chunks/chunk.Q77OTWF2.js +378 -0
- package/dist/chunks/chunk.Q77OTWF2.js.map +7 -0
- package/dist/chunks/chunk.R6VNLE6N.js +11 -0
- package/dist/chunks/chunk.R6VNLE6N.js.map +7 -0
- package/dist/chunks/chunk.SLLG4KJR.js +63 -0
- package/dist/chunks/chunk.SLLG4KJR.js.map +7 -0
- package/dist/chunks/chunk.U7ZJ22QM.js +128 -0
- package/dist/chunks/chunk.U7ZJ22QM.js.map +7 -0
- package/dist/chunks/chunk.WDCAHRYG.js +273 -0
- package/dist/chunks/chunk.WDCAHRYG.js.map +7 -0
- package/dist/chunks/chunk.WTCUSH7V.js +42 -0
- package/dist/chunks/chunk.WTCUSH7V.js.map +7 -0
- package/dist/chunks/chunk.XGXFE6IF.js +49 -0
- package/dist/chunks/chunk.XGXFE6IF.js.map +7 -0
- package/dist/components/button/button.component.d.ts +123 -0
- package/dist/components/button/button.component.js +24 -0
- package/dist/components/button/button.component.js.map +7 -0
- package/dist/components/button/button.custom.styles.d.ts +2 -0
- package/dist/components/button/button.custom.styles.js +8 -0
- package/dist/components/button/button.custom.styles.js.map +7 -0
- package/dist/components/button/button.d.ts +8 -0
- package/dist/components/button/button.js +25 -0
- package/dist/components/button/button.js.map +7 -0
- package/dist/components/button/button.styles.d.ts +2 -0
- package/dist/components/button/button.styles.js +10 -0
- package/dist/components/button/button.styles.js.map +7 -0
- package/dist/components/checkbox/checkbox.custom.styles.d.ts +2 -0
- package/dist/components/checkbox/checkbox.custom.styles.js +11 -0
- package/dist/components/checkbox/checkbox.custom.styles.js.map +7 -0
- package/dist/components/icon/icon.component.d.ts +42 -0
- package/dist/components/icon/icon.component.js +15 -0
- package/dist/components/icon/icon.component.js.map +7 -0
- package/dist/components/icon/icon.d.ts +8 -0
- package/dist/components/icon/icon.js +19 -0
- package/dist/components/icon/icon.js.map +7 -0
- package/dist/components/icon/icon.styles.d.ts +2 -0
- package/dist/components/icon/icon.styles.js +9 -0
- package/dist/components/icon/icon.styles.js.map +7 -0
- package/dist/components/icon/library.d.ts +19 -0
- package/dist/components/icon/library.default.d.ts +3 -0
- package/dist/components/icon/library.default.js +9 -0
- package/dist/components/icon/library.default.js.map +7 -0
- package/dist/components/icon/library.js +19 -0
- package/dist/components/icon/library.js.map +7 -0
- package/dist/components/icon/library.system.d.ts +3 -0
- package/dist/components/icon/library.system.js +8 -0
- package/dist/components/icon/library.system.js.map +7 -0
- package/dist/components/input/input.component.d.ts +175 -0
- package/dist/components/input/input.component.js +22 -0
- package/dist/components/input/input.component.js.map +7 -0
- package/dist/components/input/input.custom.styles.d.ts +2 -0
- package/dist/components/input/input.custom.styles.js +8 -0
- package/dist/components/input/input.custom.styles.js.map +7 -0
- package/dist/components/input/input.d.ts +8 -0
- package/dist/components/input/input.js +23 -0
- package/dist/components/input/input.js.map +7 -0
- package/dist/components/input/input.styles.d.ts +2 -0
- package/dist/components/input/input.styles.js +10 -0
- package/dist/components/input/input.styles.js.map +7 -0
- package/dist/components/spinner/spinner.component.d.ts +20 -0
- package/dist/components/spinner/spinner.component.js +13 -0
- package/dist/components/spinner/spinner.component.js.map +7 -0
- package/dist/components/spinner/spinner.styles.d.ts +2 -0
- package/dist/components/spinner/spinner.styles.js +9 -0
- package/dist/components/spinner/spinner.styles.js.map +7 -0
- package/dist/components/textarea/textarea.custom.styles.d.ts +2 -0
- package/dist/components/textarea/textarea.custom.styles.js +11 -0
- package/dist/components/textarea/textarea.custom.styles.js.map +7 -0
- package/dist/custom-elements.json +1870 -0
- package/dist/events/events.d.ts +8 -0
- package/dist/events/syn-blur.d.ts +6 -0
- package/dist/events/syn-change.d.ts +6 -0
- package/dist/events/syn-clear.d.ts +6 -0
- package/dist/events/syn-error.d.ts +8 -0
- package/dist/events/syn-focus.d.ts +6 -0
- package/dist/events/syn-input.d.ts +6 -0
- package/dist/events/syn-invalid.d.ts +6 -0
- package/dist/events/syn-load.d.ts +6 -0
- package/dist/internal/default-value.d.ts +2 -0
- package/dist/internal/form.d.ts +73 -0
- package/dist/internal/slot.d.ts +23 -0
- package/dist/internal/synergy-element.d.ts +47 -0
- package/dist/internal/test/form-control-base-tests.d.ts +7 -0
- package/dist/internal/watch.d.ts +26 -0
- package/dist/styles/component.styles.d.ts +2 -0
- package/dist/styles/form-control.styles.d.ts +2 -0
- package/dist/synergy-autoloader.d.ts +4 -0
- package/dist/synergy-autoloader.js +41 -0
- package/dist/synergy-autoloader.js.map +7 -0
- package/dist/synergy.d.ts +4 -0
- package/dist/synergy.js +38 -0
- package/dist/synergy.js.map +7 -0
- package/dist/translations/de.d.ts +3 -0
- package/dist/translations/de.js +46 -0
- package/dist/translations/de.js.map +7 -0
- package/dist/translations/en.d.ts +3 -0
- package/dist/translations/en.js +8 -0
- package/dist/translations/en.js.map +7 -0
- package/dist/utilities/base-path.d.ts +18 -0
- package/dist/utilities/base-path.js +10 -0
- package/dist/utilities/base-path.js.map +7 -0
- package/dist/utilities/form.d.ts +11 -0
- package/dist/utilities/form.js +11 -0
- package/dist/utilities/form.js.map +7 -0
- package/dist/utilities/localize.d.ts +33 -0
- package/dist/utilities/localize.js +11 -0
- package/dist/utilities/localize.js.map +7 -0
- package/dist/vscode.html-custom-data.json +371 -0
- package/dist/web-types.json +738 -0
- package/package.json +39 -25
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import {
|
|
2
|
+
button_default
|
|
3
|
+
} from "../../chunks/chunk.7EGSHKGV.js";
|
|
4
|
+
import "../../chunks/chunk.FUYWF5Y2.js";
|
|
5
|
+
import "../../chunks/chunk.2FIY3TX5.js";
|
|
6
|
+
import "../../chunks/chunk.N2I6HVX3.js";
|
|
7
|
+
import "../../chunks/chunk.XGXFE6IF.js";
|
|
8
|
+
import "../../chunks/chunk.R6VNLE6N.js";
|
|
9
|
+
import "../../chunks/chunk.A3SKDWCT.js";
|
|
10
|
+
import "../../chunks/chunk.WDCAHRYG.js";
|
|
11
|
+
import "../../chunks/chunk.P22LQI5J.js";
|
|
12
|
+
import "../../chunks/chunk.DREO4ZTN.js";
|
|
13
|
+
import "../../chunks/chunk.5PZUAKCS.js";
|
|
14
|
+
import "../../chunks/chunk.SLLG4KJR.js";
|
|
15
|
+
import "../../chunks/chunk.BREU4ILT.js";
|
|
16
|
+
import "../../chunks/chunk.5OIEI73E.js";
|
|
17
|
+
import "../../chunks/chunk.6C4JXZZN.js";
|
|
18
|
+
import "../../chunks/chunk.U7ZJ22QM.js";
|
|
19
|
+
import "../../chunks/chunk.C7624ITA.js";
|
|
20
|
+
import "../../chunks/chunk.O7USYXBT.js";
|
|
21
|
+
import "../../chunks/chunk.DJOAQ4JU.js";
|
|
22
|
+
export {
|
|
23
|
+
button_default as default
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=button.js.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {
|
|
2
|
+
button_styles_default
|
|
3
|
+
} from "../../chunks/chunk.P22LQI5J.js";
|
|
4
|
+
import "../../chunks/chunk.DREO4ZTN.js";
|
|
5
|
+
import "../../chunks/chunk.O7USYXBT.js";
|
|
6
|
+
import "../../chunks/chunk.DJOAQ4JU.js";
|
|
7
|
+
export {
|
|
8
|
+
button_styles_default as default
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=button.styles.js.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import "../../chunks/chunk.DJOAQ4JU.js";
|
|
2
|
+
|
|
3
|
+
// src/components/checkbox/checkbox.custom.styles.ts
|
|
4
|
+
import { css } from "lit";
|
|
5
|
+
var checkbox_custom_styles_default = css`
|
|
6
|
+
/* Write custom CSS here */
|
|
7
|
+
`;
|
|
8
|
+
export {
|
|
9
|
+
checkbox_custom_styles_default as default
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=checkbox.custom.styles.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/components/checkbox/checkbox.custom.styles.ts"],
|
|
4
|
+
"sourcesContent": ["import { css } from 'lit';\n\nexport default css`\n /* Write custom CSS here */\n`;\n"],
|
|
5
|
+
"mappings": ";;;AAAA,SAAS,WAAW;AAEpB,IAAO,iCAAQ;AAAA;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import SynergyElement from '../../internal/synergy-element.js';
|
|
2
|
+
import type { CSSResultGroup, HTMLTemplateResult } from 'lit';
|
|
3
|
+
/**
|
|
4
|
+
* @summary Icons are symbols that can be used to represent various options within an application.
|
|
5
|
+
* @documentation https://synergy.style/components/icon
|
|
6
|
+
* @status stable
|
|
7
|
+
* @since 2.0
|
|
8
|
+
*
|
|
9
|
+
* @event syn-load - Emitted when the icon has loaded. When using `spriteSheet: true` this will not emit.
|
|
10
|
+
* @event syn-error - Emitted when the icon fails to load due to an error. When using `spriteSheet: true` this will not emit.
|
|
11
|
+
*
|
|
12
|
+
* @csspart svg - The internal SVG element.
|
|
13
|
+
* @csspart use - The <use> element generated when using `spriteSheet: true`
|
|
14
|
+
*/
|
|
15
|
+
export default class SynIcon extends SynergyElement {
|
|
16
|
+
static styles: CSSResultGroup;
|
|
17
|
+
private initialRender;
|
|
18
|
+
/** Given a URL, this function returns the resulting SVG element or an appropriate error symbol. */
|
|
19
|
+
private resolveIcon;
|
|
20
|
+
private svg;
|
|
21
|
+
/** The name of the icon to draw. Available names depend on the icon library being used. */
|
|
22
|
+
name?: string;
|
|
23
|
+
/**
|
|
24
|
+
* An external URL of an SVG file. Be sure you trust the content you are including, as it will be executed as code and
|
|
25
|
+
* can result in XSS attacks.
|
|
26
|
+
*/
|
|
27
|
+
src?: string;
|
|
28
|
+
/**
|
|
29
|
+
* An alternate description to use for assistive devices. If omitted, the icon will be considered presentational and
|
|
30
|
+
* ignored by assistive devices.
|
|
31
|
+
*/
|
|
32
|
+
label: string;
|
|
33
|
+
/** The name of a registered custom icon library. */
|
|
34
|
+
library: string;
|
|
35
|
+
connectedCallback(): void;
|
|
36
|
+
firstUpdated(): void;
|
|
37
|
+
disconnectedCallback(): void;
|
|
38
|
+
private getIconSource;
|
|
39
|
+
handleLabelChange(): void;
|
|
40
|
+
setIcon(): Promise<void>;
|
|
41
|
+
render(): SVGElement | HTMLTemplateResult | null;
|
|
42
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import {
|
|
2
|
+
SynIcon
|
|
3
|
+
} from "../../chunks/chunk.5PZUAKCS.js";
|
|
4
|
+
import "../../chunks/chunk.SLLG4KJR.js";
|
|
5
|
+
import "../../chunks/chunk.BREU4ILT.js";
|
|
6
|
+
import "../../chunks/chunk.5OIEI73E.js";
|
|
7
|
+
import "../../chunks/chunk.6C4JXZZN.js";
|
|
8
|
+
import "../../chunks/chunk.U7ZJ22QM.js";
|
|
9
|
+
import "../../chunks/chunk.C7624ITA.js";
|
|
10
|
+
import "../../chunks/chunk.O7USYXBT.js";
|
|
11
|
+
import "../../chunks/chunk.DJOAQ4JU.js";
|
|
12
|
+
export {
|
|
13
|
+
SynIcon as default
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=icon.component.js.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import {
|
|
2
|
+
SynIcon
|
|
3
|
+
} from "../../chunks/chunk.5PZUAKCS.js";
|
|
4
|
+
import "../../chunks/chunk.SLLG4KJR.js";
|
|
5
|
+
import "../../chunks/chunk.BREU4ILT.js";
|
|
6
|
+
import "../../chunks/chunk.5OIEI73E.js";
|
|
7
|
+
import "../../chunks/chunk.6C4JXZZN.js";
|
|
8
|
+
import "../../chunks/chunk.U7ZJ22QM.js";
|
|
9
|
+
import "../../chunks/chunk.C7624ITA.js";
|
|
10
|
+
import "../../chunks/chunk.O7USYXBT.js";
|
|
11
|
+
import "../../chunks/chunk.DJOAQ4JU.js";
|
|
12
|
+
|
|
13
|
+
// src/components/icon/icon.ts
|
|
14
|
+
var icon_default = SynIcon;
|
|
15
|
+
SynIcon.define("syn-icon");
|
|
16
|
+
export {
|
|
17
|
+
icon_default as default
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=icon.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/components/icon/icon.ts"],
|
|
4
|
+
"sourcesContent": ["// ---------------------------------------------------------------------\n// \uD83D\uDD12 AUTOGENERATED BY VENDORISM\n// Removing this comment will prevent it from being managed by it.\n// ---------------------------------------------------------------------\n\n/* eslint-disable */\nimport SynIcon from './icon.component.js';\n\nexport * from './icon.component.js';\nexport default SynIcon;\n\nSynIcon.define('syn-icon');\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'syn-icon': SynIcon;\n }\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;AASA,IAAO,eAAQ;AAEf,QAAQ,OAAO,UAAU;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type SynIcon from '../icon/icon.js';
|
|
2
|
+
export type IconLibraryResolver = (name: string) => string;
|
|
3
|
+
export type IconLibraryMutator = (svg: SVGElement) => void;
|
|
4
|
+
export interface IconLibrary {
|
|
5
|
+
name: string;
|
|
6
|
+
resolver: IconLibraryResolver;
|
|
7
|
+
mutator?: IconLibraryMutator;
|
|
8
|
+
spriteSheet?: boolean;
|
|
9
|
+
}
|
|
10
|
+
/** Adds an icon to the list of watched icons. */
|
|
11
|
+
export declare function watchIcon(icon: SynIcon): void;
|
|
12
|
+
/** Removes an icon from the list of watched icons. */
|
|
13
|
+
export declare function unwatchIcon(icon: SynIcon): void;
|
|
14
|
+
/** Returns a library from the registry. */
|
|
15
|
+
export declare function getIconLibrary(name?: string): IconLibrary | undefined;
|
|
16
|
+
/** Adds an icon library to the registry, or overrides an existing one. */
|
|
17
|
+
export declare function registerIconLibrary(name: string, options: Omit<IconLibrary, 'name'>): void;
|
|
18
|
+
/** Removes an icon library from the registry. */
|
|
19
|
+
export declare function unregisterIconLibrary(name: string): void;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getIconLibrary,
|
|
3
|
+
registerIconLibrary,
|
|
4
|
+
unregisterIconLibrary,
|
|
5
|
+
unwatchIcon,
|
|
6
|
+
watchIcon
|
|
7
|
+
} from "../../chunks/chunk.5OIEI73E.js";
|
|
8
|
+
import "../../chunks/chunk.6C4JXZZN.js";
|
|
9
|
+
import "../../chunks/chunk.U7ZJ22QM.js";
|
|
10
|
+
import "../../chunks/chunk.C7624ITA.js";
|
|
11
|
+
import "../../chunks/chunk.DJOAQ4JU.js";
|
|
12
|
+
export {
|
|
13
|
+
getIconLibrary,
|
|
14
|
+
registerIconLibrary,
|
|
15
|
+
unregisterIconLibrary,
|
|
16
|
+
unwatchIcon,
|
|
17
|
+
watchIcon
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=library.js.map
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
import SynergyElement from '../../internal/synergy-element.js';
|
|
2
|
+
import SynIcon from '../icon/icon.component.js';
|
|
3
|
+
import type { CSSResultGroup } from 'lit';
|
|
4
|
+
import type { SynergyFormControl } from '../../internal/synergy-element.js';
|
|
5
|
+
/**
|
|
6
|
+
* @summary Inputs collect data from the user.
|
|
7
|
+
* @documentation https://synergy.style/components/input
|
|
8
|
+
* @status stable
|
|
9
|
+
* @since 2.0
|
|
10
|
+
*
|
|
11
|
+
* @dependency syn-icon
|
|
12
|
+
*
|
|
13
|
+
* @slot label - The input's label. Alternatively, you can use the `label` attribute.
|
|
14
|
+
* @slot prefix - Used to prepend a presentational icon or similar element to the input.
|
|
15
|
+
* @slot suffix - Used to append a presentational icon or similar element to the input.
|
|
16
|
+
* @slot clear-icon - An icon to use in lieu of the default clear icon.
|
|
17
|
+
* @slot show-password-icon - An icon to use in lieu of the default show password icon.
|
|
18
|
+
* @slot hide-password-icon - An icon to use in lieu of the default hide password icon.
|
|
19
|
+
* @slot help-text - Text that describes how to use the input. Alternatively, you can use the `help-text` attribute.
|
|
20
|
+
*
|
|
21
|
+
* @event syn-blur - Emitted when the control loses focus.
|
|
22
|
+
* @event syn-change - Emitted when an alteration to the control's value is committed by the user.
|
|
23
|
+
* @event syn-clear - Emitted when the clear button is activated.
|
|
24
|
+
* @event syn-focus - Emitted when the control gains focus.
|
|
25
|
+
* @event syn-input - Emitted when the control receives input.
|
|
26
|
+
* @event syn-invalid - Emitted when the form control has been checked for validity and its constraints aren't satisfied.
|
|
27
|
+
*
|
|
28
|
+
* @csspart form-control - The form control that wraps the label, input, and help text.
|
|
29
|
+
* @csspart form-control-label - The label's wrapper.
|
|
30
|
+
* @csspart form-control-input - The input's wrapper.
|
|
31
|
+
* @csspart form-control-help-text - The help text's wrapper.
|
|
32
|
+
* @csspart base - The component's base wrapper.
|
|
33
|
+
* @csspart input - The internal `<input>` control.
|
|
34
|
+
* @csspart prefix - The container that wraps the prefix.
|
|
35
|
+
* @csspart clear-button - The clear button.
|
|
36
|
+
* @csspart password-toggle-button - The password toggle button.
|
|
37
|
+
* @csspart suffix - The container that wraps the suffix.
|
|
38
|
+
*/
|
|
39
|
+
export default class SynInput extends SynergyElement implements SynergyFormControl {
|
|
40
|
+
static styles: CSSResultGroup;
|
|
41
|
+
static dependencies: {
|
|
42
|
+
'syn-icon': typeof SynIcon;
|
|
43
|
+
};
|
|
44
|
+
private readonly formControlController;
|
|
45
|
+
private readonly hasSlotController;
|
|
46
|
+
private readonly localize;
|
|
47
|
+
input: HTMLInputElement;
|
|
48
|
+
private hasFocus;
|
|
49
|
+
title: string;
|
|
50
|
+
private __numberInput;
|
|
51
|
+
private __dateInput;
|
|
52
|
+
/**
|
|
53
|
+
* The type of input. Works the same as a native `<input>` element, but only a subset of types are supported. Defaults
|
|
54
|
+
* to `text`.
|
|
55
|
+
*/
|
|
56
|
+
type: 'date' | 'datetime-local' | 'email' | 'number' | 'password' | 'search' | 'tel' | 'text' | 'time' | 'url';
|
|
57
|
+
/** The name of the input, submitted as a name/value pair with form data. */
|
|
58
|
+
name: string;
|
|
59
|
+
/** The current value of the input, submitted as a name/value pair with form data. */
|
|
60
|
+
value: string;
|
|
61
|
+
/** The default value of the form control. Primarily used for resetting the form control. */
|
|
62
|
+
defaultValue: string;
|
|
63
|
+
/** The input's size. */
|
|
64
|
+
size: 'small' | 'medium' | 'large';
|
|
65
|
+
/** The input's label. If you need to display HTML, use the `label` slot instead. */
|
|
66
|
+
label: string;
|
|
67
|
+
/** The input's help text. If you need to display HTML, use the `help-text` slot instead. */
|
|
68
|
+
helpText: string;
|
|
69
|
+
/** Adds a clear button when the input is not empty. */
|
|
70
|
+
clearable: boolean;
|
|
71
|
+
/** Disables the input. */
|
|
72
|
+
disabled: boolean;
|
|
73
|
+
/** Placeholder text to show as a hint when the input is empty. */
|
|
74
|
+
placeholder: string;
|
|
75
|
+
/** Makes the input readonly. */
|
|
76
|
+
readonly: boolean;
|
|
77
|
+
/** Adds a button to toggle the password's visibility. Only applies to password types. */
|
|
78
|
+
passwordToggle: boolean;
|
|
79
|
+
/** Determines whether or not the password is currently visible. Only applies to password input types. */
|
|
80
|
+
passwordVisible: boolean;
|
|
81
|
+
/** Hides the browser's built-in increment/decrement spin buttons for number inputs. */
|
|
82
|
+
noSpinButtons: boolean;
|
|
83
|
+
/**
|
|
84
|
+
* By default, form controls are associated with the nearest containing `<form>` element. This attribute allows you
|
|
85
|
+
* to place the form control outside of a form and associate it with the form that has this `id`. The form must be in
|
|
86
|
+
* the same document or shadow root for this to work.
|
|
87
|
+
*/
|
|
88
|
+
form: string;
|
|
89
|
+
/** Makes the input a required field. */
|
|
90
|
+
required: boolean;
|
|
91
|
+
/** A regular expression pattern to validate input against. */
|
|
92
|
+
pattern: string;
|
|
93
|
+
/** The minimum length of input that will be considered valid. */
|
|
94
|
+
minlength: number;
|
|
95
|
+
/** The maximum length of input that will be considered valid. */
|
|
96
|
+
maxlength: number;
|
|
97
|
+
/** The input's minimum value. Only applies to date and number input types. */
|
|
98
|
+
min: number | string;
|
|
99
|
+
/** The input's maximum value. Only applies to date and number input types. */
|
|
100
|
+
max: number | string;
|
|
101
|
+
/**
|
|
102
|
+
* Specifies the granularity that the value must adhere to, or the special value `any` which means no stepping is
|
|
103
|
+
* implied, allowing any numeric value. Only applies to date and number input types.
|
|
104
|
+
*/
|
|
105
|
+
step: number | 'any';
|
|
106
|
+
/** Controls whether and how text input is automatically capitalized as it is entered by the user. */
|
|
107
|
+
autocapitalize: 'off' | 'none' | 'on' | 'sentences' | 'words' | 'characters';
|
|
108
|
+
/** Indicates whether the browser's autocorrect feature is on or off. */
|
|
109
|
+
autocorrect: 'off' | 'on';
|
|
110
|
+
/**
|
|
111
|
+
* Specifies what permission the browser has to provide assistance in filling out form field values. Refer to
|
|
112
|
+
* [this page on MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete) for available values.
|
|
113
|
+
*/
|
|
114
|
+
autocomplete: string;
|
|
115
|
+
/** Indicates that the input should receive focus on page load. */
|
|
116
|
+
autofocus: boolean;
|
|
117
|
+
/** Used to customize the label or icon of the Enter key on virtual keyboards. */
|
|
118
|
+
enterkeyhint: 'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send';
|
|
119
|
+
/** Enables spell checking on the input. */
|
|
120
|
+
spellcheck: boolean;
|
|
121
|
+
/**
|
|
122
|
+
* Tells the browser what type of data will be entered by the user, allowing it to display the appropriate virtual
|
|
123
|
+
* keyboard on supportive devices.
|
|
124
|
+
*/
|
|
125
|
+
inputmode: 'none' | 'text' | 'decimal' | 'numeric' | 'tel' | 'search' | 'email' | 'url';
|
|
126
|
+
/**
|
|
127
|
+
* Gets or sets the current value as a `Date` object. Returns `null` if the value can't be converted. This will use the native `<input type="{{type}}">` implementation and may result in an error.
|
|
128
|
+
*/
|
|
129
|
+
get valueAsDate(): Date | null;
|
|
130
|
+
set valueAsDate(newValue: Date | null);
|
|
131
|
+
/** Gets or sets the current value as a number. Returns `NaN` if the value can't be converted. */
|
|
132
|
+
get valueAsNumber(): number;
|
|
133
|
+
set valueAsNumber(newValue: number);
|
|
134
|
+
/** Gets the validity state object */
|
|
135
|
+
get validity(): ValidityState;
|
|
136
|
+
/** Gets the validation message */
|
|
137
|
+
get validationMessage(): string;
|
|
138
|
+
firstUpdated(): void;
|
|
139
|
+
private handleBlur;
|
|
140
|
+
private handleChange;
|
|
141
|
+
private handleClearClick;
|
|
142
|
+
private handleFocus;
|
|
143
|
+
private handleInput;
|
|
144
|
+
private handleInvalid;
|
|
145
|
+
private handleKeyDown;
|
|
146
|
+
private handlePasswordToggle;
|
|
147
|
+
handleDisabledChange(): void;
|
|
148
|
+
handleStepChange(): void;
|
|
149
|
+
handleValueChange(): Promise<void>;
|
|
150
|
+
/** Sets focus on the input. */
|
|
151
|
+
focus(options?: FocusOptions): void;
|
|
152
|
+
/** Removes focus from the input. */
|
|
153
|
+
blur(): void;
|
|
154
|
+
/** Selects all the text in the input. */
|
|
155
|
+
select(): void;
|
|
156
|
+
/** Sets the start and end positions of the text selection (0-based). */
|
|
157
|
+
setSelectionRange(selectionStart: number, selectionEnd: number, selectionDirection?: 'forward' | 'backward' | 'none'): void;
|
|
158
|
+
/** Replaces a range of text with a new string. */
|
|
159
|
+
setRangeText(replacement: string, start?: number, end?: number, selectMode?: 'select' | 'start' | 'end' | 'preserve'): void;
|
|
160
|
+
/** Displays the browser picker for an input element (only works if the browser supports it for the input type). */
|
|
161
|
+
showPicker(): void;
|
|
162
|
+
/** Increments the value of a numeric input type by the value of the step attribute. */
|
|
163
|
+
stepUp(): void;
|
|
164
|
+
/** Decrements the value of a numeric input type by the value of the step attribute. */
|
|
165
|
+
stepDown(): void;
|
|
166
|
+
/** Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid. */
|
|
167
|
+
checkValidity(): boolean;
|
|
168
|
+
/** Gets the associated form, if one exists. */
|
|
169
|
+
getForm(): HTMLFormElement | null;
|
|
170
|
+
/** Checks for validity and shows the browser's validation message if the control is invalid. */
|
|
171
|
+
reportValidity(): boolean;
|
|
172
|
+
/** Sets a custom validation message. Pass an empty string to restore validity. */
|
|
173
|
+
setCustomValidity(message: string): void;
|
|
174
|
+
render(): import("lit").TemplateResult<1>;
|
|
175
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import {
|
|
2
|
+
SynInput
|
|
3
|
+
} from "../../chunks/chunk.BQPK6UKU.js";
|
|
4
|
+
import "../../chunks/chunk.Q77OTWF2.js";
|
|
5
|
+
import "../../chunks/chunk.ILONRPL4.js";
|
|
6
|
+
import "../../chunks/chunk.XGXFE6IF.js";
|
|
7
|
+
import "../../chunks/chunk.R6VNLE6N.js";
|
|
8
|
+
import "../../chunks/chunk.A3SKDWCT.js";
|
|
9
|
+
import "../../chunks/chunk.WDCAHRYG.js";
|
|
10
|
+
import "../../chunks/chunk.5PZUAKCS.js";
|
|
11
|
+
import "../../chunks/chunk.SLLG4KJR.js";
|
|
12
|
+
import "../../chunks/chunk.BREU4ILT.js";
|
|
13
|
+
import "../../chunks/chunk.5OIEI73E.js";
|
|
14
|
+
import "../../chunks/chunk.6C4JXZZN.js";
|
|
15
|
+
import "../../chunks/chunk.U7ZJ22QM.js";
|
|
16
|
+
import "../../chunks/chunk.C7624ITA.js";
|
|
17
|
+
import "../../chunks/chunk.O7USYXBT.js";
|
|
18
|
+
import "../../chunks/chunk.DJOAQ4JU.js";
|
|
19
|
+
export {
|
|
20
|
+
SynInput as default
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=input.component.js.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import {
|
|
2
|
+
input_default
|
|
3
|
+
} from "../../chunks/chunk.EW2JZPYV.js";
|
|
4
|
+
import "../../chunks/chunk.BQPK6UKU.js";
|
|
5
|
+
import "../../chunks/chunk.Q77OTWF2.js";
|
|
6
|
+
import "../../chunks/chunk.ILONRPL4.js";
|
|
7
|
+
import "../../chunks/chunk.XGXFE6IF.js";
|
|
8
|
+
import "../../chunks/chunk.R6VNLE6N.js";
|
|
9
|
+
import "../../chunks/chunk.A3SKDWCT.js";
|
|
10
|
+
import "../../chunks/chunk.WDCAHRYG.js";
|
|
11
|
+
import "../../chunks/chunk.5PZUAKCS.js";
|
|
12
|
+
import "../../chunks/chunk.SLLG4KJR.js";
|
|
13
|
+
import "../../chunks/chunk.BREU4ILT.js";
|
|
14
|
+
import "../../chunks/chunk.5OIEI73E.js";
|
|
15
|
+
import "../../chunks/chunk.6C4JXZZN.js";
|
|
16
|
+
import "../../chunks/chunk.U7ZJ22QM.js";
|
|
17
|
+
import "../../chunks/chunk.C7624ITA.js";
|
|
18
|
+
import "../../chunks/chunk.O7USYXBT.js";
|
|
19
|
+
import "../../chunks/chunk.DJOAQ4JU.js";
|
|
20
|
+
export {
|
|
21
|
+
input_default as default
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=input.js.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {
|
|
2
|
+
input_styles_default
|
|
3
|
+
} from "../../chunks/chunk.Q77OTWF2.js";
|
|
4
|
+
import "../../chunks/chunk.ILONRPL4.js";
|
|
5
|
+
import "../../chunks/chunk.O7USYXBT.js";
|
|
6
|
+
import "../../chunks/chunk.DJOAQ4JU.js";
|
|
7
|
+
export {
|
|
8
|
+
input_styles_default as default
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=input.styles.js.map
|