Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
danyill committed Nov 20, 2023
1 parent 6c0ee83 commit 6a23220
Show file tree
Hide file tree
Showing 28 changed files with 3,661 additions and 1,244 deletions.
2,276 changes: 1,894 additions & 382 deletions plugins/oscd-designer/__snapshots__/oscd-designer.spec.snap.js

Large diffs are not rendered by default.

343 changes: 280 additions & 63 deletions plugins/oscd-designer/icons.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion plugins/oscd-designer/icons.js.map

Large diffs are not rendered by default.

767 changes: 506 additions & 261 deletions plugins/oscd-designer/oscd-designer.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion plugins/oscd-designer/oscd-designer.js.map

Large diffs are not rendered by default.

308 changes: 184 additions & 124 deletions plugins/oscd-designer/oscd-designer.spec.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion plugins/oscd-designer/oscd-designer.spec.js.map

Large diffs are not rendered by default.

428 changes: 286 additions & 142 deletions plugins/oscd-designer/sld-editor.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion plugins/oscd-designer/sld-editor.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion plugins/oscd-designer/sw.js

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

2 changes: 1 addition & 1 deletion plugins/oscd-designer/sw.js.map

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

2 changes: 1 addition & 1 deletion plugins/oscd-designer/tsconfig.tsbuildinfo

Large diffs are not rendered by default.

51 changes: 41 additions & 10 deletions plugins/oscd-designer/util.js

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

2 changes: 1 addition & 1 deletion plugins/oscd-designer/util.js.map

Large diffs are not rendered by default.

15 changes: 15 additions & 0 deletions plugins/scl-wizarding/foundation/components/code-dialog.d.ts
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;
}
38 changes: 38 additions & 0 deletions plugins/scl-wizarding/foundation/components/oscd-checkbox.d.ts
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>;
}
30 changes: 30 additions & 0 deletions plugins/scl-wizarding/foundation/components/oscd-select.d.ts
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>;
}
49 changes: 49 additions & 0 deletions plugins/scl-wizarding/foundation/components/oscd-textfield.d.ts
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>;
}
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
import { LitElement, TemplateResult } from 'lit';
import 'ace-custom-element';
import '@material/mwc-button';
import '@material/mwc-dialog';
import { Dialog } from '@material/mwc-dialog';
import { Wizard, WizardInputElement, WizardPage, WizardActor } from '../../wizard-library/foundation.js';
import { CreateWizardRequest, EditWizardRequest } from '../../foundation.js';
/** A wizard style dialog consisting of several pages commiting some
* [[`EditorAction`]] on completion and aborting on dismissal. */
export declare class WizardDialog extends LitElement {
export declare class SclWizardDialog extends LitElement {
/** The [[`Wizard`]] implemented by this dialog. */
wizard: Wizard;
wizardRequest: EditWizardRequest | CreateWizardRequest | null;
element?: Element;
/** Index of the currently active [[`WizardPage`]] */
pageIndex: number;
dialogs: NodeListOf<Dialog>;
Expand Down
Loading

0 comments on commit 6a23220

Please sign in to comment.