update
This commit is contained in:
@@ -270,7 +270,7 @@ export class SioFab extends DeesElement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public async updated(changedProperties: Map<string | number | symbol, unknown>) {
|
public async updated(changedProperties: Map<string | number | symbol, unknown>) {
|
||||||
await super.updated(changedProperties);
|
super.updated(changedProperties);
|
||||||
|
|
||||||
// Set reference object when combox is rendered
|
// Set reference object when combox is rendered
|
||||||
if ((changedProperties.has('showCombox') || changedProperties.has('hasShownOnce')) &&
|
if ((changedProperties.has('showCombox') || changedProperties.has('hasShownOnce')) &&
|
||||||
|
|||||||
@@ -8,11 +8,12 @@ import {
|
|||||||
css,
|
css,
|
||||||
unsafeCSS,
|
unsafeCSS,
|
||||||
state,
|
state,
|
||||||
|
PropertyValues,
|
||||||
} from '@design.estate/dees-element';
|
} from '@design.estate/dees-element';
|
||||||
|
|
||||||
// Import design tokens
|
// Import design tokens
|
||||||
import { colors, bdTheme } from './00colors.js';
|
import { bdTheme } from './00colors.js';
|
||||||
import { spacing, radius, shadows, transitions } from './00tokens.js';
|
import { spacing, radius, shadows } from './00tokens.js';
|
||||||
import { fontFamilies } from './00fonts.js';
|
import { fontFamilies } from './00fonts.js';
|
||||||
|
|
||||||
declare global {
|
declare global {
|
||||||
@@ -398,8 +399,8 @@ export class SioPdfViewer extends DeesElement {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected async firstUpdated() {
|
public async firstUpdated(_changedProperties: PropertyValues) {
|
||||||
await super.firstUpdated();
|
super.firstUpdated(_changedProperties);
|
||||||
|
|
||||||
// Set up resize observer for responsive rendering after first render
|
// Set up resize observer for responsive rendering after first render
|
||||||
const container = this.shadowRoot?.querySelector('.pdf-container');
|
const container = this.shadowRoot?.querySelector('.pdf-container');
|
||||||
@@ -414,7 +415,7 @@ export class SioPdfViewer extends DeesElement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public async updated(changedProperties: Map<string | number | symbol, unknown>) {
|
public async updated(changedProperties: Map<string | number | symbol, unknown>) {
|
||||||
await super.updated(changedProperties);
|
super.updated(changedProperties);
|
||||||
if (changedProperties.has('url') && this.url) {
|
if (changedProperties.has('url') && this.url) {
|
||||||
await this.loadPdf();
|
await this.loadPdf();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user