Skip to content
Snippets Groups Projects
Unverified Commit 7419e4b8 authored by Bekerle, Patrizio's avatar Bekerle, Patrizio :fire:
Browse files

Switch to "...super.properties"

parent 6c35a841
Branches
No related tags found
No related merge requests found
Pipeline #16357 passed
Showing
with 60 additions and 40 deletions
......@@ -227,7 +227,8 @@ export class AppShell extends ScopedElementsMixin(AdapterLitElement) {
}
static get properties() {
return this.getProperties({
return {
...super.properties,
lang: { type: String, reflect: true },
src: { type: String },
basePath: { type: String, attribute: 'base-path' },
......@@ -249,7 +250,7 @@ export class AppShell extends ScopedElementsMixin(AdapterLitElement) {
buildUrl: { type: String, attribute: "build-url" },
buildTime: { type: String, attribute: "build-time" },
env: { type: String },
});
};
}
_updateAuth(login) {
......
......@@ -28,11 +28,12 @@ export class AuthMenuButton extends ScopedElementsMixin(AdapterLitElement) {
}
static get properties() {
return this.getProperties({
return {
...super.properties,
lang: { type: String },
showImage: { type: Boolean, attribute: 'show-image' },
_loginData: { type: Object, attribute: false },
});
};
}
onWindowResize() {
......
......@@ -13,12 +13,13 @@ export class BuildInfo extends AdapterLitElement {
}
static get properties() {
return this.getProperties({
return {
...super.properties,
env: { type: String },
buildUrl: { type: String, attribute: "build-url" },
buildTime: { type: String, attribute: "build-time" },
gitInfo: { type: String, attribute: "git-info" }
});
};
}
static get styles() {
......
......@@ -14,9 +14,10 @@ export class TUGrazLogo extends AdapterLitElement {
}
static get properties() {
return this.getProperties({
return {
...super.properties,
lang: { type: String }
});
};
}
update(changedProperties) {
......
......@@ -148,7 +148,8 @@ export class AuthKeycloak extends AdapterLitElement {
}
static get properties() {
return this.getProperties({
return {
...super.properties,
lang: { type: String },
forceLogin: { type: Boolean, attribute: 'force-login' },
tryLogin: { type: Boolean, attribute: 'try-login' },
......@@ -166,7 +167,7 @@ export class AuthKeycloak extends AdapterLitElement {
silentCheckSsoRedirectUri: { type: String, attribute: 'silent-check-sso-redirect-uri' },
scope: { type: String },
idpHint: { type: String, attribute: 'idp-hint' },
});
};
}
connectedCallback() {
......
......@@ -22,10 +22,11 @@ class AuthDemo extends ScopedElementsMixin(DBPLitElement) {
}
static get properties() {
return this.getProperties({
return {
...super.properties,
lang: { type: String },
entryPointUrl: { type: String, attribute: 'entry-point-url' },
});
};
}
update(changedProperties) {
......
......@@ -57,7 +57,8 @@ export class CheckInPlaceSelect extends ScopedElementsMixin(AdapterLitElement) {
}
static get properties() {
return this.getProperties({
return {
...super.properties,
lang: { type: String },
active: { type: Boolean, attribute: false },
entryPointUrl: { type: String, attribute: 'entry-point-url' },
......@@ -66,7 +67,7 @@ export class CheckInPlaceSelect extends ScopedElementsMixin(AdapterLitElement) {
showReloadButton: { type: Boolean, attribute: 'show-reload-button' },
reloadButtonTitle: { type: String, attribute: 'reload-button-title' },
showCapacity: { type: Boolean, attribute: 'show-capacity' },
});
};
}
clear() {
......
......@@ -24,11 +24,12 @@ export class CheckInPlaceSelectDemo extends ScopedElementsMixin(DBPLitElement) {
}
static get properties() {
return this.getProperties({
return {
...super.properties,
lang: { type: String },
entryPointUrl: { type: String, attribute: 'entry-point-url' },
noAuth: { type: Boolean, attribute: 'no-auth' },
});
};
}
connectedCallback() {
......
......@@ -49,7 +49,8 @@ export class DataTableView extends AdapterLitElement {
}
static get properties() {
return this.getProperties({
return {
...super.properties,
lang: { type: String },
table: { type: Object, attribute: false },
paging: { type: Boolean },
......@@ -62,7 +63,7 @@ export class DataTableView extends AdapterLitElement {
exportName: { type: String, attribute: 'export-name' },
columnSearching: { type: Boolean, attribute: 'column-searching'},
defaultOrder: { type: Array, attribute: 'default-order'}
});
};
}
set_columns(cols) {
......
......@@ -24,11 +24,12 @@ export class DataTableViewDemo extends ScopedElementsMixin(DBPLitElement) {
}
static get properties() {
return this.getProperties({
return {
...super.properties,
lang: { type: String },
entryPointUrl: { type: String, attribute: 'entry-point-url' },
noAuth: { type: Boolean, attribute: 'no-auth' },
});
};
}
connectedCallback() {
......
......@@ -64,7 +64,8 @@ export class NextcloudFilePicker extends ScopedElementsMixin(DBPLitElement) {
* See: https://lit-element.polymer-project.org/guide/properties#initialize
*/
static get properties() {
return this.getProperties({
return {
...super.properties,
lang: { type: String },
authUrl: { type: String, attribute: 'auth-url' },
webDavUrl: { type: String, attribute: 'web-dav-url' },
......@@ -85,7 +86,7 @@ export class NextcloudFilePicker extends ScopedElementsMixin(DBPLitElement) {
activeDirectoryACL: { type: String, attribute: false },
selectAllButton: { type: Boolean, attribute: false },
abortUploadButton: { type: Boolean, attribute: false },
});
};
}
......
......@@ -50,7 +50,8 @@ export class FileSink extends ScopedElementsMixin(DBPLitElement) {
* See: https://lit-element.polymer-project.org/guide/properties#initialize
*/
static get properties() {
return this.getProperties({
return {
...super.properties,
context: {type: String, attribute: 'context'},
lang: {type: String},
filename: {type: String},
......@@ -69,7 +70,7 @@ export class FileSink extends ScopedElementsMixin(DBPLitElement) {
firstOpen: {type: Boolean, attribute: false},
nextcloudDefaultDir: {type: String, attribute: 'nextcloud-default'},
nextcloudDir: {type: String, attribute: false},
});
};
}
......
......@@ -68,7 +68,8 @@ export class FileSource extends ScopedElementsMixin(DBPLitElement) {
* See: https://lit-element.polymer-project.org/guide/properties#initialize
*/
static get properties() {
return this.getProperties({
return {
...super.properties,
context: { type: String, attribute: 'context'},
lang: { type: String },
allowedMimeTypes: { type: String, attribute: 'allowed-mime-types' },
......@@ -88,7 +89,7 @@ export class FileSource extends ScopedElementsMixin(DBPLitElement) {
firstOpen: { type: Boolean, attribute: false },
nextcloudDefaultDir: { type: String, attribute: 'nextcloud-default' },
nextcloudDir: { type: String, attribute: false },
});
};
}
update(changedProperties) {
......
......@@ -24,11 +24,12 @@ export class KnowledgeBaseWebPageElementViewDemo extends ScopedElementsMixin(DBP
}
static get properties() {
return this.getProperties({
return {
...super.properties,
lang: { type: String },
entryPointUrl: { type: String, attribute: 'entry-point-url' },
noAuth: { type: Boolean, attribute: 'no-auth' },
});
};
}
update(changedProperties) {
......
......@@ -28,13 +28,14 @@ export class MatomoDemo extends ScopedElementsMixin(DBPLitElement) {
}
static get properties() {
return this.getProperties({
return {
...super.properties,
lang: { type: String },
entryPointUrl: { type: String, attribute: 'entry-point-url' },
matomoUrl: { type: String, attribute: "matomo-url" },
matomoSiteId: { type: Number, attribute: "matomo-site-id" },
noAuth: { type: Boolean, attribute: 'no-auth' },
});
};
}
connectedCallback() {
......
......@@ -17,9 +17,10 @@ export class Notification extends DBPLitElement {
* See: https://lit-element.polymer-project.org/guide/properties#initialize
*/
static get properties() {
return this.getProperties({
return {
...super.properties,
lang: { type: String },
});
};
}
connectedCallback() {
......
......@@ -30,13 +30,14 @@ export class PersonProfileDemo extends ScopedElementsMixin(DBPLitElement) {
}
static get properties() {
return this.getProperties({
return {
...super.properties,
lang: { type: String },
entryPointUrl: { type: String, attribute: 'entry-point-url' },
person: { type: String, attribute: false },
selectedPerson: { type: String, attribute: false },
noAuth: { type: Boolean, attribute: 'no-auth' },
});
};
}
connectedCallback() {
......
......@@ -24,11 +24,12 @@ export class PersonSelectDemo extends ScopedElementsMixin(DBPLitElement) {
}
static get properties() {
return this.getProperties({
return {
...super.properties,
lang: { type: String },
entryPointUrl: { type: String, attribute: 'entry-point-url' },
noAuth: { type: Boolean, attribute: 'no-auth' },
});
};
}
connectedCallback() {
......
......@@ -55,7 +55,8 @@ export class PersonSelect extends ScopedElementsMixin(AdapterLitElement) {
}
static get properties() {
return this.getProperties({
return {
...super.properties,
lang: { type: String },
active: { type: Boolean, attribute: false },
entryPointUrl: { type: String, attribute: 'entry-point-url' },
......@@ -64,7 +65,7 @@ export class PersonSelect extends ScopedElementsMixin(AdapterLitElement) {
showReloadButton: { type: Boolean, attribute: 'show-reload-button' },
reloadButtonTitle: { type: String, attribute: 'reload-button-title' },
showBirthDate: { type: Boolean, attribute: 'show-birth-date' },
});
};
}
clear() {
......
......@@ -144,7 +144,8 @@ class DemoConsumer extends DBPLitElement {
}
static get properties() {
return this.getProperties({
return {
...super.properties,
lang: { type: String },
entryPointUrl: { type: String, attribute: 'entry-point-url' },
foo: { type: String },
......@@ -152,7 +153,7 @@ class DemoConsumer extends DBPLitElement {
gong: { type: String },
borderColor: { type: String, attribute: 'border-color' },
ping: { type: String }
});
};
}
attributeChangedCallback(name, oldValue, newValue) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment