Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(editor-container): replace with more generic action-pane #400

Merged
merged 3 commits into from
Nov 30, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions __snapshots__/action-pane.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# `action-pane`

#### `looks like the latest snapshot`

```html
<section>
<h1>
<span>
<slot name="icon">
</slot>
</span>
<nav>
<slot name="action">
</slot>
</nav>
</h1>
<div>
<slot>
</slot>
</div>
</section>

```

## `with icon property set`

#### `looks like the latest snapshot`

```html
<section>
<h1>
<span>
<slot name="icon">
<mwc-icon>
edit
</mwc-icon>
</slot>
</span>
<nav>
<slot name="action">
</slot>
</nav>
</h1>
<div>
<slot>
</slot>
</div>
</section>

```

102 changes: 86 additions & 16 deletions __snapshots__/bay-editor.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,45 +3,80 @@
#### `looks like the latest snapshot`

```html
<editor-container
nomargin=""
<action-pane
label="COUPLING_BAY - Bay"
tabindex="0"
>
<abbr
slot="header"
slot="action"
title="[lnode.tooltip]"
>
<mwc-icon-button icon="account_tree">
</mwc-icon-button>
</abbr>
<abbr
slot="header"
slot="action"
title="[duplicate]"
>
<mwc-icon-button icon="content_copy">
</mwc-icon-button>
</abbr>
<abbr
slot="header"
slot="action"
title="[edit]"
>
<mwc-icon-button icon="edit">
</mwc-icon-button>
</abbr>
<abbr
slot="header"
slot="action"
title="[move]"
>
<mwc-icon-button icon="forward">
</mwc-icon-button>
</abbr>
<abbr
slot="header"
slot="action"
title="[remove]"
>
<mwc-icon-button icon="delete">
</mwc-icon-button>
</abbr>
<abbr
slot="action"
style="position:relative;"
title="[add]"
>
<mwc-icon-button icon="playlist_add">
</mwc-icon-button>
<mwc-menu
corner="BOTTOM_RIGHT"
menucorner="END"
>
<mwc-list-item
aria-disabled="false"
mwc-list-item=""
role="menuitem"
tabindex="0"
value="LNode"
>
<span>
LNode
</span>
</mwc-list-item>
<mwc-list-item
aria-disabled="false"
mwc-list-item=""
role="menuitem"
tabindex="-1"
value="ConductingEquipment"
>
<span>
ConductingEquipment
</span>
</mwc-list-item>
</mwc-menu>
</abbr>
<div id="ceContainer">
<conducting-equipment-editor>
</conducting-equipment-editor>
Expand All @@ -54,7 +89,7 @@
<conducting-equipment-editor>
</conducting-equipment-editor>
</div>
</editor-container>
</action-pane>

```

Expand All @@ -63,45 +98,80 @@
#### `looks like the latest snapshot`

```html
<editor-container
nomargin=""
<action-pane
label="COUPLING_BAY - Bay"
tabindex="0"
>
<abbr
slot="header"
slot="action"
title="[lnode.tooltip]"
>
<mwc-icon-button icon="account_tree">
</mwc-icon-button>
</abbr>
<abbr
slot="header"
slot="action"
title="[duplicate]"
>
<mwc-icon-button icon="content_copy">
</mwc-icon-button>
</abbr>
<abbr
slot="header"
slot="action"
title="[edit]"
>
<mwc-icon-button icon="edit">
</mwc-icon-button>
</abbr>
<abbr
slot="header"
slot="action"
title="[move]"
>
<mwc-icon-button icon="forward">
</mwc-icon-button>
</abbr>
<abbr
slot="header"
slot="action"
title="[remove]"
>
<mwc-icon-button icon="delete">
</mwc-icon-button>
</abbr>
<abbr
slot="action"
style="position:relative;"
title="[add]"
>
<mwc-icon-button icon="playlist_add">
</mwc-icon-button>
<mwc-menu
corner="BOTTOM_RIGHT"
menucorner="END"
>
<mwc-list-item
aria-disabled="false"
mwc-list-item=""
role="menuitem"
tabindex="0"
value="LNode"
>
<span>
LNode
</span>
</mwc-list-item>
<mwc-list-item
aria-disabled="false"
mwc-list-item=""
role="menuitem"
tabindex="-1"
value="ConductingEquipment"
>
<span>
ConductingEquipment
</span>
</mwc-list-item>
</mwc-menu>
</abbr>
<div id="ceContainer">
<conducting-equipment-editor readonly="">
</conducting-equipment-editor>
Expand All @@ -114,7 +184,7 @@
<conducting-equipment-editor readonly="">
</conducting-equipment-editor>
</div>
</editor-container>
</action-pane>

```

Loading