@@ -12,7 +12,7 @@ npm i @openscd/oscd-action-pane
1212
1313``` html
1414<script type =" module" >
15- import ' oscd-action-pane' ;
15+ import ' @openscd/ oscd-action-pane' ;
1616 </script >
1717
1818<oscd-action-pane ></oscd-action-pane >
@@ -60,13 +60,24 @@ To build a production version of Storybook, run
6060npm run storybook:build
6161```
6262
63-
6463## Tooling configs
6564
6665For most of the tools, the configuration is in the ` package.json ` to reduce the amount of files in your project.
6766
6867If you customize the configuration a lot, you can consider moving them to individual files.
6968
69+ ### Icon font
70+
71+ Material Icons are being used for the icons. This font needs to be added in the html first.
72+ You can add it like so:
73+
74+ ``` html
75+ <link
76+ href =" https://fonts.googleapis.com/css?family=Material+Icons&display=block"
77+ rel =" stylesheet"
78+ />
79+ ```
80+
7081## Local Demo with ` web-dev-server `
7182
7283``` bash
@@ -75,31 +86,63 @@ npm start
7586
7687To run a local development server that serves the basic demo located in ` demo/index.html `
7788
78- ## ` oscd-action-pane.ts ` :
7989
80- ### class: ` OscdActionPane `
90+ ## ` src/oscd-action-pane.ts ` :
91+
92+ ### class: ` OscdActionPane ` , ` oscd-action-pane `
8193
8294#### Superclass
8395
8496| Name | Module | Package |
8597| ------------ | ------ | ------- |
8698| ` LitElement ` | | lit |
8799
88- #### Properties/Attributes
100+ #### Fields
101+
102+ | Name | Privacy | Type | Default | Description | Inherited From |
103+ | ------------- | ------- | --------------------- | ------- | ------------------------------------------------------------- | -------------- |
104+ | ` label ` | | ` string \| undefined ` | | caption text, displayed in the header | |
105+ | ` icon ` | | ` string \| undefined ` | | icon name, displayed unless the "icon" slot is filled | |
106+ | ` secondary ` | | ` boolean ` | ` false ` | color header with secondary theme color while focus is within | |
107+ | ` highlighted ` | | ` boolean ` | ` false ` | highlight pane with dotted outline | |
108+ | ` level ` | | ` number ` | ` 1 ` | nesting level, default (closest pane ancestor's level) + 1 | |
109+
110+ #### CSS Properties
111+
112+ | Name | Default | Description |
113+ | ------------------------------------- | ------------------------- | ---------------------------------- |
114+ | ` --oscd-action-icon-theme-primary ` | ` --oscd-theme-primary ` | Color for border on even levels. |
115+ | ` --oscd-action-icon-theme-on-primary ` | ` --oscd-theme-on-primary ` | Pane color for the uneven levels. |
116+ | ` --oscd-action-icon-theme-secondary ` | ` --oscd-theme-secondary ` | Color for border on uneven levels. |
117+ | ` --oscd-action-pane-theme-surface ` | ` --oscd-theme-surface ` | Pane color for the even levels. |
118+ | ` --oscd-action-icon-theme-on-surface ` | ` --oscd-theme-on-surface ` | Icon and label color. |
119+ | ` --oscd-action-icon-theme-font ` | ` --oscd-theme-font ` | Font for label. |
120+
121+ #### Slots
122+
123+ | Name | Description |
124+ | -------- | ------------------------------------------------------------------------ |
125+ | ` action ` | May contain up to eight icon buttons. |
126+ | ` icon ` | If filled overrides the icon property. |
127+ | | The default slot will be rendered into the pane body in a single column. |
89128
90- | Name | Type | Default | Description |
91- | ------------- | --------- | ----------- | -------------------------------------------------------------- |
92- | ` label ` | ` string ` | ` undefined ` | Caption text, displayed in the header. |
93- | ` icon ` | ` string ` | ` undefined ` | Icon name, displays icon as described in ` @material/mwc-icon ` . |
94- | ` secondary ` | ` boolean ` | ` false ` | Color header with secondary theme color while focus is within. |
95- | ` highlighted ` | ` boolean ` | ` false ` | highlight pane with dotted outline item. |
96- | ` level ` | ` number ` | ` 1 ` | nesting level, default (closest pane ancestor's level) + 1 |
97129<hr />
98130
99131### Exports
100132
101- | Kind | Name | Declaration | Module | Package |
102- | ---- | ------------------ | ---------------- | ------------------- | ------- |
103- | ` js ` | ` oscd-action-pane ` | oscd-action-pane | oscd-action-pane.ts | |
133+ | Kind | Name | Declaration | Module | Package |
134+ | ---- | ---------------- | -------------- | ----------------------- | ------- |
135+ | ` js ` | ` OscdActionPane ` | OscdActionPane | src/oscd-action-pane.ts | |
136+
137+ ## ` src/OscdActionPane.ts ` :
138+
139+ ### Exports
140+
141+ | Kind | Name | Declaration | Module | Package |
142+ | --------------------------- | ------------------ | -------------- | ------------------------ | ------- |
143+ | ` custom-element-definition ` | ` oscd-action-pane ` | OscdActionPane | /src/oscd-action-pane.js | |
144+ | ` js ` | ` OscdActionPane ` | OscdActionPane | src/OscdActionPane.ts | |
145+
146+
104147
105148© ; 2023 Alliander N.V.
0 commit comments