Comparing version 0.2.3 to 0.2.4
@@ -9,2 +9,4 @@ import { Component } from '@a11d/lit'; | ||
* | ||
* @ssr true | ||
* | ||
* @attr icon | ||
@@ -27,3 +29,4 @@ * @attr label | ||
protected readonly instanceofAttributeController: InstanceofAttributeController; | ||
protected readonly mutationController: MutationController<unknown>; | ||
protected readonly mutationController: MutationController<unknown> | undefined; | ||
protected initialized(): void; | ||
static get styles(): import("@a11d/lit").CSSResult; | ||
@@ -30,0 +33,0 @@ protected get label(): string | undefined; |
import { __decorate } from "tslib"; | ||
import { Component, component, css, html, ifDefined, property } from '@a11d/lit'; | ||
import { Component, component, css, html, ifDefined, isServer, property } from '@a11d/lit'; | ||
import { MutationController } from '@3mo/mutation-observer'; | ||
@@ -10,2 +10,4 @@ import { InstanceofAttributeController } from '@3mo/instanceof-attribute-controller'; | ||
* | ||
* @ssr true | ||
* | ||
* @attr icon | ||
@@ -29,3 +31,3 @@ * @attr label | ||
this.instanceofAttributeController = new InstanceofAttributeController(this); | ||
this.mutationController = new MutationController(this, { | ||
this.mutationController = isServer ? undefined : new MutationController(this, { | ||
config: { | ||
@@ -38,2 +40,5 @@ subtree: true, | ||
} | ||
initialized() { | ||
this.requestUpdate(); | ||
} | ||
static get styles() { | ||
@@ -40,0 +45,0 @@ return css ` |
{ | ||
"name": "@3mo/fab", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"description": "A floating action button web-component based on Material Web Components.", | ||
@@ -5,0 +5,0 @@ "repository": { |
# FAB (Floating Action Button) | ||
A floating action button web-component based on Material Web Components. |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
80425
142