Skip to content

Commit d029d3f

Browse files
author
Rob Tjalma
authored
Merge pull request #72 from com-pas/upload-file-existing-scl
Added upload button on versions editor, refactor some classes/components
2 parents 8fb14a5 + 40557ca commit d029d3f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+898
-2774
lines changed

__snapshots__/compas-comment.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# `compas-comment`
2+
3+
#### `looks like the latest snapshot`
4+
5+
```html
6+
<wizard-textfield
7+
disabled=""
8+
id="comment"
9+
label="[compas.comment]"
10+
nullable=""
11+
>
12+
</wizard-textfield>
13+
14+
```
15+

__snapshots__/compas-loading.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# `compas-loading`
2+
3+
#### `looks like the latest snapshot`
4+
5+
```html
6+
<mwc-list>
7+
<mwc-list-item
8+
aria-disabled="false"
9+
mwc-list-item=""
10+
tabindex="0"
11+
>
12+
[compas.loading]
13+
</mwc-list-item>
14+
</mwc-list>
15+
16+
```
17+

__snapshots__/compas-save-to.md

Lines changed: 6 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,8 @@
55
#### `looks like the latest snapshot`
66

77
```html
8-
<mwc-list>
9-
<mwc-list-item
10-
aria-disabled="false"
11-
mwc-list-item=""
12-
tabindex="0"
13-
>
14-
[compas.loading]
15-
</mwc-list-item>
16-
</mwc-list>
8+
<compas-loading>
9+
</compas-loading>
1710

1811
```
1912

@@ -32,13 +25,8 @@
3225
</mwc-textfield>
3326
<compas-scltype-radiogroup>
3427
</compas-scltype-radiogroup>
35-
<wizard-textfield
36-
disabled=""
37-
id="comment"
38-
label="[compas.saveTo.comment]"
39-
nullable=""
40-
>
41-
</wizard-textfield>
28+
<compas-comment>
29+
</compas-comment>
4230

4331
```
4432

@@ -49,13 +37,8 @@
4937
```html
5038
<compas-changeset-radiogroup>
5139
</compas-changeset-radiogroup>
52-
<wizard-textfield
53-
disabled=""
54-
id="comment"
55-
label="[compas.saveTo.comment]"
56-
nullable=""
57-
>
58-
</wizard-textfield>
40+
<compas-comment>
41+
</compas-comment>
5942

6043
```
6144

__snapshots__/compas-scl-list.md

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,8 @@
55
#### `looks like the latest snapshot`
66

77
```html
8-
<mwc-list>
9-
<mwc-list-item
10-
aria-disabled="false"
11-
mwc-list-item=""
12-
tabindex="0"
13-
>
14-
[compas.loading]
15-
</mwc-list-item>
16-
</mwc-list>
8+
<compas-loading>
9+
</compas-loading>
1710

1811
```
1912

__snapshots__/compas-scltype-list.md

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,8 @@
55
#### `looks like the latest snapshot`
66

77
```html
8-
<mwc-list>
9-
<mwc-list-item
10-
aria-disabled="false"
11-
mwc-list-item=""
12-
tabindex="0"
13-
>
14-
[compas.loading]
15-
</mwc-list-item>
16-
</mwc-list>
8+
<compas-loading>
9+
</compas-loading>
1710

1811
```
1912

__snapshots__/compas-scltype-radiogroup.md

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,8 @@
55
#### `looks like the latest snapshot`
66

77
```html
8-
<mwc-list>
9-
<mwc-list-item
10-
aria-disabled="false"
11-
mwc-list-item=""
12-
tabindex="0"
13-
>
14-
[compas.loading]
15-
</mwc-list-item>
16-
</mwc-list>
8+
<compas-loading>
9+
</compas-loading>
1710

1811
```
1912

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
# `compas-upload-version`
2+
3+
## `still determining if document exists in CoMPAS`
4+
5+
#### `looks like the latest snapshot`
6+
7+
```html
8+
<compas-loading>
9+
</compas-loading>
10+
11+
```
12+
13+
## `no document in compas (anymore)`
14+
15+
#### `looks like the latest snapshot`
16+
17+
```html
18+
<mwc-list>
19+
<mwc-list-item
20+
aria-disabled="false"
21+
mwc-list-item=""
22+
tabindex="0"
23+
>
24+
[compas.notExists]
25+
</mwc-list-item>
26+
</mwc-list>
27+
28+
```
29+
30+
## `existing document in compas`
31+
32+
#### `looks like the latest snapshot`
33+
34+
```html
35+
<input
36+
accept=".scd"
37+
hidden=""
38+
id="scl-file"
39+
required=""
40+
type="file"
41+
>
42+
<wizard-textfield
43+
id="filename"
44+
label="[compas.uploadVersion.filename]"
45+
required=""
46+
>
47+
</wizard-textfield>
48+
<mwc-button label="[compas.uploadVersion.selectButton]">
49+
</mwc-button>
50+
<compas-changeset-radiogroup>
51+
</compas-changeset-radiogroup>
52+
<compas-comment>
53+
</compas-comment>
54+
55+
```
56+
57+
## `existing document in compas through wizard`
58+
59+
#### `looks like the latest snapshot`
60+
61+
```html
62+
<mwc-dialog
63+
defaultaction="close"
64+
heading="[compas.uploadVersion.title]"
65+
open=""
66+
>
67+
<div id="wizard-content">
68+
<compas-upload-version>
69+
</compas-upload-version>
70+
</div>
71+
<mwc-button
72+
dialogaction="close"
73+
label="[cancel]"
74+
slot="secondaryAction"
75+
style="--mdc-theme-primary: var(--mdc-theme-error)"
76+
>
77+
</mwc-button>
78+
<mwc-button
79+
dialoginitialfocus=""
80+
icon="save"
81+
label="[save]"
82+
slot="primaryAction"
83+
trailingicon=""
84+
>
85+
</mwc-button>
86+
</mwc-dialog>
87+
88+
```
89+

__snapshots__/compas-versions-plugin.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,8 @@
2626
#### `looks like the latest snapshot`
2727

2828
```html
29-
<h1>
30-
<span style="color: var(--base1)">
31-
[compas.loading]
32-
</span>
33-
</h1>
29+
<compas-loading>
30+
</compas-loading>
3431
<wizard-dialog>
3532
</wizard-dialog>
3633

@@ -66,6 +63,8 @@
6663
<section tabindex="0">
6764
<h1>
6865
[compas.versions.title]
66+
<mwc-icon-button icon="note_add">
67+
</mwc-icon-button>
6968
<mwc-icon-button icon="delete_forever">
7069
</mwc-icon-button>
7170
</h1>

favicon.ico

-5.3 KB
Binary file not shown.

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<link rel="icon" type="image/png" sizes="32x32" href="public/favicon-32x32.png">
1919
<link rel="icon" type="image/png" sizes="192x192" href="public/icon-192x192.png">
2020

21-
<title>OpenSCD</title>
21+
<title>CoMPAS - OpenSCD</title>
2222
</head>
2323

2424
<body>

0 commit comments

Comments
 (0)