Skip to content

Commit a180425

Browse files
committed
Progress fixing bugs moving to ES2023
1 parent cf53c5a commit a180425

File tree

24 files changed

+2447
-1626
lines changed

24 files changed

+2447
-1626
lines changed

package-lock.json

Lines changed: 2268 additions & 1599 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@
2626
"remarkable": "^2.0.1"
2727
},
2828
"devDependencies": {
29-
"@pictogrammers/element": "0.0.42",
29+
"@pictogrammers/element": "0.0.44",
3030
"@pictogrammers/element-jest": "^0.1.7",
31-
"@pictogrammers/element-webpack": "^0.1.40",
31+
"@pictogrammers/element-webpack": "^0.1.42",
3232
"cross-env": "^7.0.3",
3333
"npm-run-all": "^4.1.5",
3434
"raw-loader": "^4.0.2",
35-
"typescript": "^5.7.3"
35+
"typescript": "^5.8.2"
3636
}
3737
}

src/pg/inputPixelEditor/__examples__/basic/basic.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
border: 1px solid #FFF;
99
}
1010

11+
[part="value1"] {
12+
word-wrap: break-word;
13+
}
14+
1115
.props {
1216
display: flex;
1317
flex-direction: row;

src/pg/inputSelect/inputSelect.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ interface InputSelectItem {
1515
})
1616
export default class PgInputSelect extends HTMLElement {
1717
@Prop() options: InputSelectItem[] = [];
18-
@Prop() value: string;
18+
@Prop() value: string = '';
1919
@Prop() name: string = '';
2020

2121
@Part() $select: HTMLSelectElement;

src/pg/inputUserSelect/inputUserSelect.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const mdiShape = 'M11,13.5V21.5H3V13.5H11M12,2L17.5,11H6.5L12,2M17.5,13C20,13 22
3434
template
3535
})
3636
export default class PgInputUserSelect extends HTMLElement {
37-
@Prop() options: User[] | null = null;
37+
@Prop() options: User[] = [];
3838
@Prop() value: User | null = null;
3939
@Prop() clear: boolean = false;
4040
@Prop() noDataText: string = 'Empty Users List';

src/pg/menu/README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# `<pg-menu>`
2+
3+
The `pg-menu` component renders a menu list.
4+
5+
```typescript
6+
import '@pictogrammers/components/pgMenu.js';
7+
```
8+
9+
```html
10+
<pg-menu></pg-menu>
11+
```
12+
13+
| Attributes | Tested | Description |
14+
| ---------- | -------- | ----------- |
15+
| `items` | | Set items list. |
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<div class="example">
2+
<pg-nav
3+
logo="M2,2H8V4H16V2H22V8H20V16H22V22H16V20H8V22H2V16H4V8H2V2M16,8V6H8V8H6V16H8V18H16V16H18V8H16M4,4V6H6V4H4M18,4V6H20V4H18M4,18V20H6V18H4M18,18V20H20V18H18Z"
4+
name="Material Design Icons"></pg-nav>
5+
</div>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { Component, Part, Prop } from '@pictogrammers/element';
2+
3+
import template from './basic.html';
4+
5+
@Component({
6+
selector: 'x-pg-nav-basic',
7+
template
8+
})
9+
export default class XPgNavBasic extends HTMLElement {
10+
11+
}

src/pg/menu/menu.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
:host {
2+
display: contents;
3+
}

src/pg/menu/menu.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<div part="items"></div>

0 commit comments

Comments
 (0)