@teipublisher/pb-components 2.26.0-next-3.12 → 2.26.0-next-3.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/main.yml +3 -3
- package/.github/workflows/node.js.yml +3 -3
- package/.github/workflows/release.js.yml +3 -3
- package/CHANGELOG.md +30 -0
- package/Dockerfile +78 -70
- package/css/components.css +5 -5
- package/dist/demo/pb-drawer2.html +1 -1
- package/dist/demo/pb-leaflet-map.html +1 -1
- package/dist/demo/pb-progress.html +2 -2
- package/dist/demo/pb-repeat.html +1 -3
- package/dist/demo/pb-view3.html +1 -1
- package/dist/{paper-icon-button-0fb125c4.js → paper-icon-button-72125e67.js} +1 -1
- package/dist/pb-code-editor.js +25 -20
- package/dist/pb-component-docs.js +58 -54
- package/dist/pb-components-bundle.js +1937 -1782
- package/dist/pb-edit-app.js +167 -107
- package/dist/pb-elements.json +45 -45
- package/dist/{pb-i18n-0611135a.js → pb-i18n-4cc00bfe.js} +1 -1
- package/dist/pb-leaflet-map.js +23 -23
- package/dist/pb-mei.js +56 -41
- package/dist/{pb-mixin-b1caa22e.js → pb-mixin-886ece32.js} +1 -1
- package/dist/pb-odd-editor.js +923 -756
- package/dist/pb-tify.js +2 -2
- package/dist/{vaadin-element-mixin-49ab4037.js → vaadin-element-mixin-84fb7d82.js} +178 -163
- package/gh-pages.js +5 -3
- package/i18n/common/pl.json +2 -2
- package/lib/openseadragon.min.js +1 -1
- package/package.json +2 -2
- package/pb-elements.json +45 -45
- package/src/assets/components.css +5 -5
- package/src/authority/airtable.js +20 -21
- package/src/authority/anton.js +129 -129
- package/src/authority/custom.js +23 -21
- package/src/authority/geonames.js +38 -32
- package/src/authority/gnd.js +47 -42
- package/src/authority/kbga.js +137 -134
- package/src/authority/metagrid.js +44 -46
- package/src/authority/reconciliation.js +66 -67
- package/src/authority/registry.js +4 -4
- package/src/docs/pb-component-docs.js +2 -2
- package/src/docs/pb-component-view.js +5 -5
- package/src/docs/pb-components-list.js +2 -2
- package/src/docs/pb-demo-snippet.js +2 -2
- package/src/dts-client.js +299 -297
- package/src/dts-select-endpoint.js +90 -82
- package/src/parse-date-service.js +184 -135
- package/src/pb-ajax.js +150 -146
- package/src/pb-authority-lookup.js +183 -146
- package/src/pb-autocomplete.js +292 -280
- package/src/pb-blacklab-highlight.js +264 -259
- package/src/pb-blacklab-results.js +236 -221
- package/src/pb-browse-docs.js +540 -475
- package/src/pb-browse.js +68 -65
- package/src/pb-clipboard.js +79 -76
- package/src/pb-code-editor.js +110 -102
- package/src/pb-code-highlight.js +209 -204
- package/src/pb-codepen.js +79 -72
- package/src/pb-collapse.js +212 -207
- package/src/pb-combo-box.js +190 -190
- package/src/pb-components-bundle.js +1 -1
- package/src/pb-custom-form.js +151 -149
- package/src/pb-dialog.js +94 -85
- package/src/pb-document.js +89 -90
- package/src/pb-download.js +210 -198
- package/src/pb-drawer.js +145 -148
- package/src/pb-edit-app.js +301 -229
- package/src/pb-edit-xml.js +98 -96
- package/src/pb-events.js +114 -107
- package/src/pb-facs-link.js +104 -102
- package/src/pb-facsimile.js +411 -413
- package/src/pb-formula.js +151 -153
- package/src/pb-geolocation.js +129 -131
- package/src/pb-grid-action.js +53 -56
- package/src/pb-grid.js +231 -228
- package/src/pb-highlight.js +140 -140
- package/src/pb-hotkeys.js +40 -42
- package/src/pb-i18n.js +101 -104
- package/src/pb-image-strip.js +84 -78
- package/src/pb-lang.js +132 -128
- package/src/pb-leaflet-map.js +488 -485
- package/src/pb-link.js +126 -124
- package/src/pb-load.js +431 -426
- package/src/pb-login.js +291 -248
- package/src/pb-manage-odds.js +364 -318
- package/src/pb-map-icon.js +89 -89
- package/src/pb-map-layer.js +85 -85
- package/src/pb-markdown.js +90 -99
- package/src/pb-media-query.js +74 -72
- package/src/pb-mei.js +306 -295
- package/src/pb-message.js +144 -144
- package/src/pb-mixin.js +269 -264
- package/src/pb-navigation.js +80 -82
- package/src/pb-observable.js +38 -38
- package/src/pb-odd-editor.js +1053 -955
- package/src/pb-odd-elementspec-editor.js +348 -297
- package/src/pb-odd-model-editor.js +1061 -901
- package/src/pb-odd-parameter-editor.js +200 -178
- package/src/pb-odd-rendition-editor.js +136 -124
- package/src/pb-page.js +431 -421
- package/src/pb-paginate.js +202 -190
- package/src/pb-panel.js +191 -179
- package/src/pb-popover-themes.js +7 -5
- package/src/pb-popover.js +296 -287
- package/src/pb-print-preview.js +127 -127
- package/src/pb-progress.js +51 -51
- package/src/pb-repeat.js +105 -104
- package/src/pb-restricted.js +84 -77
- package/src/pb-search.js +252 -241
- package/src/pb-select-feature.js +127 -120
- package/src/pb-select-odd.js +132 -124
- package/src/pb-select-template.js +89 -78
- package/src/pb-select.js +251 -227
- package/src/pb-split-list.js +179 -174
- package/src/pb-svg.js +80 -79
- package/src/pb-table-column.js +54 -54
- package/src/pb-table-grid.js +221 -203
- package/src/pb-tabs.js +61 -63
- package/src/pb-tify.js +154 -154
- package/src/pb-timeline.js +271 -229
- package/src/pb-toggle-feature.js +182 -175
- package/src/pb-upload.js +184 -174
- package/src/pb-version.js +30 -30
- package/src/pb-view-annotate.js +132 -98
- package/src/pb-view.js +1289 -1270
- package/src/pb-zoom.js +75 -59
- package/src/polymer-hack.js +1 -1
- package/src/search-result-service.js +256 -223
- package/src/seed-element.js +13 -20
- package/src/settings.js +4 -4
- package/src/theming.js +96 -96
- package/src/urls.js +289 -289
- package/src/utils.js +53 -51
package/src/pb-edit-app.js
CHANGED
|
@@ -17,246 +17,318 @@ import '@polymer/iron-form';
|
|
|
17
17
|
* @fires pb-end-update - Fired after the element has finished updating its content
|
|
18
18
|
*/
|
|
19
19
|
export class PbEditApp extends pbMixin(LitElement) {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
20
|
+
static get properties() {
|
|
21
|
+
return {
|
|
22
|
+
...super.properties,
|
|
23
|
+
error: {
|
|
24
|
+
type: String,
|
|
25
|
+
},
|
|
26
|
+
url: {
|
|
27
|
+
type: String,
|
|
28
|
+
},
|
|
29
|
+
templates: {
|
|
30
|
+
type: Array,
|
|
31
|
+
},
|
|
32
|
+
odds: {
|
|
33
|
+
type: Array,
|
|
34
|
+
},
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
37
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
38
|
+
constructor() {
|
|
39
|
+
super();
|
|
40
|
+
this.templates = [];
|
|
41
|
+
this.odds = [];
|
|
42
|
+
}
|
|
43
43
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
44
|
+
connectedCallback() {
|
|
45
|
+
super.connectedCallback();
|
|
46
|
+
}
|
|
47
47
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
48
|
+
firstUpdated() {
|
|
49
|
+
const form = this.shadowRoot.getElementById('form');
|
|
50
|
+
const defaultView = this.shadowRoot.getElementById('defaultView');
|
|
51
|
+
const index = this.shadowRoot.getElementById('index');
|
|
52
|
+
const template = this.shadowRoot.getElementById('template');
|
|
53
|
+
this.subscribeTo(
|
|
54
|
+
'pb-i18n-update',
|
|
55
|
+
options => {
|
|
56
|
+
// clear paper-listbox selection after language updates
|
|
57
|
+
const defaultViewListbox = this.shadowRoot.querySelector('#defaultView paper-listbox');
|
|
58
|
+
let old = defaultViewListbox.selected;
|
|
59
|
+
defaultViewListbox.selected = undefined;
|
|
60
|
+
defaultViewListbox.selected = old;
|
|
59
61
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
} else {
|
|
83
|
-
url = `${detail.endpoint}/modules/lib/components-list-odds.xql`;
|
|
84
|
-
}
|
|
85
|
-
fetch(url, {
|
|
86
|
-
method: 'GET',
|
|
87
|
-
mode: 'cors',
|
|
88
|
-
credentials: 'same-origin'
|
|
89
|
-
})
|
|
90
|
-
.then((response) => response.json())
|
|
91
|
-
.then(json => { this.odds = json });
|
|
92
|
-
|
|
93
|
-
const htmlForm = this.shadowRoot.querySelector('form');
|
|
94
|
-
if (this.minApiVersion('1.0.0')) {
|
|
95
|
-
htmlForm.action = `${detail.endpoint}/api/apps/generate`;
|
|
96
|
-
} else {
|
|
97
|
-
htmlForm.action = `${detail.endpoint}/modules/components-generate.xql`;
|
|
98
|
-
}
|
|
62
|
+
const indexListbox = this.shadowRoot.querySelector('#index paper-listbox');
|
|
63
|
+
old = indexListbox.selected;
|
|
64
|
+
indexListbox.selected = undefined;
|
|
65
|
+
indexListbox.selected = old;
|
|
66
|
+
},
|
|
67
|
+
[],
|
|
68
|
+
);
|
|
69
|
+
waitOnce('pb-page-ready', detail => {
|
|
70
|
+
let url;
|
|
71
|
+
if (this.minApiVersion('1.0.0')) {
|
|
72
|
+
url = `${detail.endpoint}/api/templates`;
|
|
73
|
+
} else {
|
|
74
|
+
url = `${detail.endpoint}/modules/lib/components-list-templates.xql`;
|
|
75
|
+
}
|
|
76
|
+
fetch(url, {
|
|
77
|
+
method: 'GET',
|
|
78
|
+
mode: 'cors',
|
|
79
|
+
credentials: 'same-origin',
|
|
80
|
+
})
|
|
81
|
+
.then(response => response.json())
|
|
82
|
+
.then(json => {
|
|
83
|
+
this.templates = json;
|
|
99
84
|
});
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
85
|
+
|
|
86
|
+
if (this.minApiVersion('1.0.0')) {
|
|
87
|
+
url = `${detail.endpoint}/api/odd`;
|
|
88
|
+
} else {
|
|
89
|
+
url = `${detail.endpoint}/modules/lib/components-list-odds.xql`;
|
|
90
|
+
}
|
|
91
|
+
fetch(url, {
|
|
92
|
+
method: 'GET',
|
|
93
|
+
mode: 'cors',
|
|
94
|
+
credentials: 'same-origin',
|
|
95
|
+
})
|
|
96
|
+
.then(response => response.json())
|
|
97
|
+
.then(json => {
|
|
98
|
+
this.odds = json;
|
|
105
99
|
});
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
100
|
+
|
|
101
|
+
const htmlForm = this.shadowRoot.querySelector('form');
|
|
102
|
+
if (this.minApiVersion('1.0.0')) {
|
|
103
|
+
htmlForm.action = `${detail.endpoint}/api/apps/generate`;
|
|
104
|
+
} else {
|
|
105
|
+
htmlForm.action = `${detail.endpoint}/modules/components-generate.xql`;
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
form.addEventListener('iron-form-presubmit', function () {
|
|
109
|
+
const view = defaultView.selectedItem.getAttribute('value');
|
|
110
|
+
this.request.body['default-view'] = view;
|
|
111
|
+
this.request.body.index = index.selectedItem.getAttribute('value');
|
|
112
|
+
this.request.body.template = template.selectedItem.getAttribute('value');
|
|
113
|
+
});
|
|
114
|
+
form.addEventListener('iron-form-response', event => {
|
|
115
|
+
console.log(event);
|
|
116
|
+
event.detail.completes.then(r => {
|
|
117
|
+
this.emitTo('pb-end-update');
|
|
118
|
+
const result = r.parseResponse();
|
|
119
|
+
console.log('<pb-edit-app> Received response: %o', result);
|
|
120
|
+
if (result.target) {
|
|
121
|
+
const baseURL = window.location.href.replace(/^(.*)\/tei-publisher\/.*/, '$1');
|
|
122
|
+
this.url = `${baseURL}/${
|
|
123
|
+
this.shadowRoot.querySelector('paper-input[name=abbrev]').value
|
|
124
|
+
}`;
|
|
125
|
+
this.error = null;
|
|
126
|
+
} else {
|
|
127
|
+
this.error = result.description;
|
|
121
128
|
}
|
|
122
|
-
);
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
129
|
+
this.shadowRoot.getElementById('dialog').open();
|
|
130
|
+
});
|
|
131
|
+
});
|
|
132
|
+
form.addEventListener('iron-form-error', event => {
|
|
133
|
+
this.emitTo('pb-end-update');
|
|
134
|
+
|
|
135
|
+
console.log('<pb-edit-app> Received response: %o', event.detail.request.response);
|
|
136
|
+
this.error = event.detail.request.response.description;
|
|
137
|
+
this.shadowRoot.getElementById('dialog').open();
|
|
138
|
+
});
|
|
139
|
+
form.addEventListener('iron-form-invalid', () => this.emitTo('pb-end-update'));
|
|
140
|
+
}
|
|
134
141
|
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
142
|
+
_doSubmit() {
|
|
143
|
+
this.emitTo('pb-start-update');
|
|
144
|
+
const form = this.shadowRoot.getElementById('form');
|
|
145
|
+
form.submit();
|
|
146
|
+
}
|
|
140
147
|
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
148
|
+
render() {
|
|
149
|
+
return html`
|
|
150
|
+
<iron-form id="form">
|
|
151
|
+
<form method="POST" accept="application/json" enctype="application/json">
|
|
152
|
+
<fieldset>
|
|
153
|
+
<legend>${translate('document.selectODD')}</legend>
|
|
154
|
+
${this.odds.map(
|
|
155
|
+
odd =>
|
|
156
|
+
html`<paper-checkbox name="odd" value="${odd.name}">${odd.label}</paper-checkbox>`,
|
|
157
|
+
)}
|
|
158
|
+
</fieldset>
|
|
159
|
+
<paper-input
|
|
160
|
+
name="uri"
|
|
161
|
+
type="url"
|
|
162
|
+
required
|
|
163
|
+
placeholder="https://e-editiones.org/apps/my-simple-app"
|
|
164
|
+
label="${translate('appgen.uri')}"
|
|
165
|
+
auto-validate
|
|
166
|
+
></paper-input>
|
|
167
|
+
<paper-input
|
|
168
|
+
id="abbrev"
|
|
169
|
+
name="abbrev"
|
|
170
|
+
pattern="[a-zA-Z0-9-_]+"
|
|
171
|
+
required
|
|
172
|
+
placeholder="${translate('appgen.abbrev.placeholder')}"
|
|
173
|
+
label="${translate('appgen.abbrev.label')}"
|
|
174
|
+
auto-validate
|
|
175
|
+
></paper-input>
|
|
176
|
+
<paper-input
|
|
177
|
+
name="data-collection"
|
|
178
|
+
pattern="[a-zA-Z0-9-_/]+"
|
|
179
|
+
placeholder="data"
|
|
180
|
+
label="${translate('appgen.collection')}"
|
|
181
|
+
auto-validate
|
|
182
|
+
></paper-input>
|
|
183
|
+
<paper-input
|
|
184
|
+
name="title"
|
|
185
|
+
required
|
|
186
|
+
placeholder="${translate('appgen.title.label')}"
|
|
187
|
+
label="${translate('appgen.title.help')}"
|
|
188
|
+
></paper-input>
|
|
189
|
+
<fieldset>
|
|
190
|
+
<legend>${translate('appgen.template.help')}</legend>
|
|
191
|
+
<paper-dropdown-menu
|
|
192
|
+
id="template"
|
|
193
|
+
label="${translate('appgen.template.label')}"
|
|
194
|
+
name="template"
|
|
195
|
+
>
|
|
196
|
+
<paper-listbox
|
|
197
|
+
slot="dropdown-content"
|
|
198
|
+
class="dropdown-content"
|
|
199
|
+
attr-for-selected="value"
|
|
200
|
+
selected="view.html"
|
|
201
|
+
>
|
|
202
|
+
${this.templates.map(
|
|
203
|
+
t => html`<paper-item value="${t.name}">${t.title}</paper-item>`,
|
|
204
|
+
)}
|
|
205
|
+
</paper-listbox>
|
|
206
|
+
</paper-dropdown-menu>
|
|
207
|
+
</fieldset>
|
|
208
|
+
<fieldset>
|
|
209
|
+
<legend>${translate('appgen.view.help')}</legend>
|
|
210
|
+
<paper-dropdown-menu
|
|
211
|
+
id="defaultView"
|
|
212
|
+
label="${translate('appgen.label')}"
|
|
213
|
+
name="default-view"
|
|
214
|
+
>
|
|
215
|
+
<paper-listbox
|
|
216
|
+
slot="dropdown-content"
|
|
217
|
+
class="dropdown-content"
|
|
218
|
+
selected="div"
|
|
219
|
+
attr-for-selected="value"
|
|
220
|
+
>
|
|
221
|
+
<paper-item value="div">${translate('appgen.view.div')}</paper-item>
|
|
222
|
+
<paper-item value="page">${translate('appgen.view.page')}</paper-item>
|
|
223
|
+
</paper-listbox>
|
|
224
|
+
</paper-dropdown-menu>
|
|
225
|
+
</fieldset>
|
|
226
|
+
<fieldset>
|
|
227
|
+
<legend>${translate('appgen.index.help')}</legend>
|
|
228
|
+
<paper-dropdown-menu id="index" label="${translate('appgen.index.label')}" name="index">
|
|
229
|
+
<paper-listbox
|
|
230
|
+
slot="dropdown-content"
|
|
231
|
+
class="dropdown-content"
|
|
232
|
+
selected="tei:div"
|
|
233
|
+
attr-for-selected="value"
|
|
234
|
+
>
|
|
235
|
+
<paper-item value="tei:div">${translate('appgen.index.index-div')}</paper-item>
|
|
236
|
+
<paper-item value="tei:text">${translate('appgen.index.index-text')}</paper-item>
|
|
237
|
+
</paper-listbox>
|
|
238
|
+
</paper-dropdown-menu>
|
|
239
|
+
</fieldset>
|
|
240
|
+
<fieldset>
|
|
241
|
+
<legend>${translate('appgen.account.user')}</legend>
|
|
242
|
+
<paper-input
|
|
243
|
+
name="owner"
|
|
244
|
+
required
|
|
245
|
+
placeholder="${translate('login.user')}"
|
|
246
|
+
label="${translate('appgen.account.owner')}"
|
|
247
|
+
auto-validate
|
|
248
|
+
></paper-input>
|
|
249
|
+
<paper-input
|
|
250
|
+
name="password"
|
|
251
|
+
type="password"
|
|
252
|
+
required
|
|
253
|
+
placeholder="${translate('login.password')}"
|
|
254
|
+
label="${translate('appgen.account.password')}"
|
|
255
|
+
auto-validate
|
|
256
|
+
></paper-input>
|
|
257
|
+
</fieldset>
|
|
258
|
+
<paper-button id="submit" @click="${this._doSubmit}"
|
|
259
|
+
><iron-icon icon="save"></iron-icon> ${translate('appgen.submit')}</paper-button
|
|
260
|
+
>
|
|
261
|
+
</form>
|
|
262
|
+
</iron-form>
|
|
263
|
+
<paper-dialog id="dialog">
|
|
264
|
+
<h2>${translate('appgen.dialog.title')}</h2>
|
|
265
|
+
<div id="dialogContent">
|
|
266
|
+
${this.error
|
|
267
|
+
? html`<div id="error">${this.error}</div>`
|
|
268
|
+
: html`<a href="${this.url}" target="_blank">
|
|
269
|
+
<paper-button
|
|
270
|
+
><iron-icon icon="icons:open-in-new"></iron-icon> ${translate(
|
|
271
|
+
'appgen.open',
|
|
272
|
+
)}</paper-button
|
|
273
|
+
>
|
|
274
|
+
</a>
|
|
275
|
+
<p>${translate('appgen.success')}</p>`}
|
|
276
|
+
</div>
|
|
277
|
+
<div class="buttons">
|
|
278
|
+
<paper-button dialog-dismiss autofocus>${translate('dialogs.close')}</paper-button>
|
|
279
|
+
</div>
|
|
280
|
+
</paper-dialog>
|
|
281
|
+
`;
|
|
282
|
+
}
|
|
211
283
|
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
284
|
+
static get styles() {
|
|
285
|
+
return css`
|
|
286
|
+
:host {
|
|
287
|
+
display: block;
|
|
288
|
+
}
|
|
289
|
+
paper-dropdown-menu {
|
|
290
|
+
width: 100%;
|
|
291
|
+
max-width: 864px;
|
|
292
|
+
}
|
|
293
|
+
fieldset {
|
|
294
|
+
margin-top: 16px;
|
|
295
|
+
margin-bottom: 16px;
|
|
296
|
+
padding: 0;
|
|
297
|
+
border: 0;
|
|
298
|
+
}
|
|
299
|
+
legend {
|
|
300
|
+
color: #909090;
|
|
301
|
+
}
|
|
302
|
+
paper-checkbox {
|
|
303
|
+
display: block;
|
|
304
|
+
margin-left: 20px;
|
|
305
|
+
margin-top: 10px;
|
|
306
|
+
}
|
|
307
|
+
paper-dialog {
|
|
308
|
+
min-width: 420px;
|
|
309
|
+
max-width: 640px;
|
|
310
|
+
min-height: 128px;
|
|
311
|
+
}
|
|
240
312
|
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
313
|
+
paper-dialog h2 {
|
|
314
|
+
background-color: #607d8b;
|
|
315
|
+
padding: 16px 8px;
|
|
316
|
+
margin-top: 0;
|
|
317
|
+
color: #f0f0f0;
|
|
318
|
+
}
|
|
247
319
|
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
320
|
+
.content {
|
|
321
|
+
display: flex;
|
|
322
|
+
flex-direction: row;
|
|
323
|
+
justify-content: space-between;
|
|
324
|
+
align-items: center;
|
|
325
|
+
}
|
|
254
326
|
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
327
|
+
.content a {
|
|
328
|
+
display: block;
|
|
329
|
+
flex: 1 0;
|
|
330
|
+
}
|
|
331
|
+
`;
|
|
332
|
+
}
|
|
261
333
|
}
|
|
262
|
-
customElements.define('pb-edit-app', PbEditApp);
|
|
334
|
+
customElements.define('pb-edit-app', PbEditApp);
|