-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { LitElement, TemplateResult } from 'lit'; | ||
import 'ace-custom-element'; | ||
import '@material/mwc-dialog'; | ||
import type AceEditor from 'ace-custom-element'; | ||
/** */ | ||
export default class CodeDialog extends LitElement { | ||
element: Element; | ||
editor: AceEditor; | ||
save(element: Element): void; | ||
onClosed(ae: CustomEvent<{ | ||
action: string; | ||
}>): void; | ||
render(): TemplateResult; | ||
static styles: import("lit").CSSResult; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import '@material/mwc-formfield'; | ||
import '@material/mwc-switch'; | ||
import '@material/mwc-checkbox'; | ||
import type { Checkbox } from '@material/mwc-checkbox'; | ||
import type { Switch } from '@material/mwc-switch'; | ||
import { LitElement } from 'lit'; | ||
/** A potentially `nullable` labelled checkbox. */ | ||
export declare class OscdCheckbox extends LitElement { | ||
label: string; | ||
/** Parenthetical information rendered after the label: `label (helper)` */ | ||
helper: string; | ||
/** Whether [[`maybeValue`]] may be `null` */ | ||
nullable: boolean; | ||
/** The default `checked` state while [[`maybeValue`]] is `null`. */ | ||
defaultChecked: boolean; | ||
/** Is `"true"` when checked, `"false"` un-checked, `null` if [[`nullable`]]. */ | ||
get maybeValue(): string | null; | ||
set maybeValue(check: string | null); | ||
/** Disables component including null switch */ | ||
disabled: boolean; | ||
private isNull; | ||
private get null(); | ||
private set null(value); | ||
private initChecked; | ||
get checked(): boolean; | ||
set checked(value: boolean); | ||
private deactivateCheckbox; | ||
get formfieldLabel(): string; | ||
nullSwitch?: Switch; | ||
checkbox?: Checkbox; | ||
checkValidity(): boolean; | ||
private nulled; | ||
private enable; | ||
private disable; | ||
firstUpdated(): void; | ||
renderSwitch(): import("lit-html").TemplateResult<1>; | ||
render(): import("lit-html").TemplateResult<1>; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import '@material/mwc-switch'; | ||
import type { Switch } from '@material/mwc-switch'; | ||
import { Select } from '@material/mwc-select'; | ||
/** A potentially `nullable` `Select`. | ||
* | ||
* NB: Use `maybeValue: string | null` instead of `value` if `nullable`! */ | ||
export declare class OscdSelect extends Select { | ||
/** Whether [[`maybeValue`]] may be `null` */ | ||
nullable: boolean; | ||
private isNull; | ||
private get null(); | ||
private set null(value); | ||
/** Replacement for `value`, can only be `null` if [[`nullable`]]. */ | ||
get maybeValue(): string | null; | ||
set maybeValue(value: string | null); | ||
/** The default `value` displayed if [[`maybeValue`]] is `null`. */ | ||
defaultValue: string; | ||
/** Additional values that cause validation to fail. */ | ||
reservedValues: string[]; | ||
private disabledSwitch; | ||
nullSwitch?: Switch; | ||
private nulled; | ||
private enable; | ||
private disable; | ||
firstUpdated(): Promise<void>; | ||
checkValidity(): boolean; | ||
constructor(); | ||
renderSwitch(): import("lit-html").TemplateResult<1>; | ||
render(): import("lit-html").TemplateResult<1>; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
import '@material/mwc-icon-button'; | ||
import '@material/mwc-list/mwc-list-item'; | ||
import '@material/mwc-menu'; | ||
import '@material/mwc-switch'; | ||
import type { IconButton } from '@material/mwc-icon-button'; | ||
import type { Menu } from '@material/mwc-menu'; | ||
import type { Switch } from '@material/mwc-switch'; | ||
import { TextField } from '@material/mwc-textfield'; | ||
/** A potentially `nullable` `TextField` that allows for selection of an SI | ||
* `multiplier` if an SI `unit` is given. | ||
* | ||
* NB: Use `maybeValue: string | null` instead of `value` if `nullable`! */ | ||
export declare class OscdTextfield extends TextField { | ||
/** Whether [[`maybeValue`]] may be `null` */ | ||
nullable: boolean; | ||
/** Selectable SI multipliers for a non-empty [[`unit`]]. */ | ||
multipliers: (string | null)[]; | ||
private multiplierIndex; | ||
get multiplier(): string | null; | ||
set multiplier(value: string | null); | ||
/** SI Unit, must be non-empty to allow for selecting a [[`multiplier`]]. | ||
* Overrides `suffix`. */ | ||
unit: string; | ||
private isNull; | ||
private get null(); | ||
private set null(value); | ||
/** Replacement for `value`, can only be `null` if [[`nullable`]]. */ | ||
get maybeValue(): string | null; | ||
set maybeValue(value: string | null); | ||
/** The default `value` displayed if [[`maybeValue`]] is `null`. */ | ||
defaultValue: string; | ||
/** Additional values that cause validation to fail. */ | ||
reservedValues: string[]; | ||
private disabledSwitch; | ||
nullSwitch?: Switch; | ||
multiplierMenu?: Menu; | ||
multiplierButton?: IconButton; | ||
private nulled; | ||
private selectMultiplier; | ||
private enable; | ||
private disable; | ||
firstUpdated(): Promise<void>; | ||
checkValidity(): boolean; | ||
constructor(); | ||
renderUnitSelector(): import("lit-html").TemplateResult<1>; | ||
renderMulplierList(): import("lit-html").TemplateResult<1>; | ||
renderSwitch(): import("lit-html").TemplateResult<1>; | ||
render(): import("lit-html").TemplateResult<1>; | ||
} |