Importer components.

Classes

ImporterAddEvent

Dispatched when an importer has added asset objects.

Extends CustomEvent<ImporterAddEventDetail>.

new ImporterAddEvent(media): ImporterAddEvent

ParameterTypeDescription
mediaStorableMedia

Returns ImporterAddEvent. Overrides CustomEvent<ImporterAddEventDetail>.constructor.

PropertyModifierType
Typestaticstring

ImporterCompleteEvent

Dispatched when an importer has finished importing.

Extends StringEvent.

new ImporterCompleteEvent(): ImporterCompleteEvent

Returns ImporterCompleteEvent. Overrides StringEvent.constructor.

PropertyModifierType
Typestaticstring

ImporterContentElement

Extends ContentElementBase.

new ImporterContentElement(): ImporterContentElement

Returns ImporterContentElement. Inherited from ContentElementBase.constructor.

PropertyModifierType
chromeCssstaticCSSResult
connectedpublicboolean
contentCssstaticCSSResult
cssBorderBoxSizingstaticCSSResult
cssHostDroppingstaticCSSResult
cssHostFlexstaticCSSResult
cssSharedstaticCSSResult
defaultContentpublic readonlyOptionalContent
exportPartspublicundefined | string
iconNodespublicNode[]
masherpublic readonlyMasher
masherOrNotpublicundefined | Masher
partspublicstring
partSeparatorstaticstring
selectedpublicnumber
signalspublic readonlySignalsRecord
stylesstaticCSSResult

Methods

partContent(part, slots): OptionalContent

ParameterTypeDescription
partstring
slotsElement[]

Returns OptionalContent. Inherited from ContentElementBase.partContent.

refreshParts(): string

Returns string. Inherited from ContentElementBase.refreshParts.

templateContent(contents): TemplateContent

ParameterTypeDescription
contentsTemplateContents

Returns TemplateContent. Inherited from ContentElementBase.templateContent.

unsubscribe(arg, name?, type?): void

ParameterTypeDescription
argstring | PropertyObject
name?string
type?string

Returns void. Inherited from ContentElementBase.unsubscribe.

willUpdate(values): void

ParameterTypeDescription
valuesPropertyValueMap<ImporterContentElement>

Returns void. Overrides ContentElementBase.willUpdate.

ImporterElement

Extends PanelElementBase.

new ImporterElement(): ImporterElement

Returns ImporterElement. Inherited from PanelElementBase.constructor.

PropertyModifierType
connectedpublicboolean
cssBorderBoxSizingstaticCSSResult
cssHostDroppingstaticCSSResult
cssHostFlexstaticCSSResult
defaultContentpublic readonlyOptionalContent
exportPartspublicundefined | string
masherpublic readonlyMasher
masherOrNotpublicundefined | Masher
partspublicstring
partSeparatorstaticstring
signalspublic readonlySignalsRecord
stylesstaticCSSResult

Methods

contentContent(slots): OptionalContent

ParameterTypeDescription
slotsElement[]

Returns OptionalContent. Inherited from PanelElementBase.contentContent.

footerContent(slots): OptionalContent

ParameterTypeDescription
slotsElement[]

Returns OptionalContent. Inherited from PanelElementBase.footerContent.

headerContent(slots): OptionalContent

ParameterTypeDescription
slotsElement[]

Returns OptionalContent. Inherited from PanelElementBase.headerContent.

partContent(part, slots): OptionalContent

ParameterTypeDescription
partstring
slotsElement[]

Returns OptionalContent. Inherited from PanelElementBase.partContent.

refreshParts(): string

Returns string. Inherited from PanelElementBase.refreshParts.

templateContent(contents): TemplateContent

ParameterTypeDescription
contentsTemplateContents

Returns TemplateContent. Inherited from PanelElementBase.templateContent.

unsubscribe(arg, name?, type?): void

ParameterTypeDescription
argstring | PropertyObject
name?string
type?string

Returns void. Inherited from PanelElementBase.unsubscribe.

ImporterErrorEvent

Dispatched when an importer has encountered an error.

Extends CustomEvent<ImporterErrorEventDetail>.

new ImporterErrorEvent(errored): ImporterErrorEvent

ParameterTypeDescription
erroredErrored

Returns ImporterErrorEvent. Overrides CustomEvent<ImporterErrorEventDetail>.constructor.

PropertyModifierType
Typestaticstring

ImporterFooterElement

Extends FooterElementBase.

new ImporterFooterElement(): ImporterFooterElement

Returns ImporterFooterElement. Inherited from FooterElementBase.constructor.

PropertyModifierType
chromeCssstaticCSSResult
connectedpublicboolean
contentCssstaticCSSResult
countpublicnumber
cssBorderBoxSizingstaticCSSResult
cssHostDroppingstaticCSSResult
cssHostFlexstaticCSSResult
cssSharedstaticCSSResult
defaultContentpublic readonlyOptionalContent
exportPartspublicundefined | string
masherpublic readonlyMasher
masherOrNotpublicundefined | Masher
partspublicstring
partSeparatorstaticstring
signalspublic readonlySignalsRecord
stylesstaticCSSResult

Methods

partContent(part, slots): OptionalContent

ParameterTypeDescription
partstring
slotsElement[]

Returns OptionalContent. Inherited from FooterElementBase.partContent.

refreshParts(): string

Returns string. Inherited from FooterElementBase.refreshParts.

templateContent(contents): TemplateContent

ParameterTypeDescription
contentsTemplateContents

Returns TemplateContent. Inherited from FooterElementBase.templateContent.

unsubscribe(arg, name?, type?): void

ParameterTypeDescription
argstring | PropertyObject
name?string
type?string

Returns void. Inherited from FooterElementBase.unsubscribe.

ImporterHeaderElement

Extends HeaderElementBase.

new ImporterHeaderElement(): ImporterHeaderElement

Returns ImporterHeaderElement. Inherited from HeaderElementBase.constructor.

PropertyModifierType
chromeCssstaticCSSResult
connectedpublicboolean
contentCssstaticCSSResult
cssBorderBoxSizingstaticCSSResult
cssHostDroppingstaticCSSResult
cssHostFlexstaticCSSResult
cssSharedstaticCSSResult
defaultContentpublic readonlyOptionalContent
exportPartspublicundefined | string
masherpublic readonlyMasher
masherOrNotpublicundefined | Masher
partspublicstring
partSeparatorstaticstring
signalspublic readonlySignalsRecord
stylesstaticCSSResult

Methods

partContent(part, slots): OptionalContent

ParameterTypeDescription
partstring
slotsElement[]

Returns OptionalContent. Inherited from HeaderElementBase.partContent.

refreshParts(): string

Returns string. Inherited from HeaderElementBase.refreshParts.

templateContent(contents): TemplateContent

ParameterTypeDescription
contentsTemplateContents

Returns TemplateContent. Inherited from HeaderElementBase.templateContent.

unsubscribe(arg, name?, type?): void

ParameterTypeDescription
argstring | PropertyObject
name?string
type?string

Returns void. Inherited from HeaderElementBase.unsubscribe.

ImporterNodeFunctionEvent

Dispatch to retrieve a map with icon node and corresponding ui node promise.

Extends CustomEvent<ImporterNodeFunctionEventDetail>.

new ImporterNodeFunctionEvent(types?, sources?, map?): ImporterNodeFunctionEvent

ParameterTypeDescription
types?MediaType[]
sources?string[]
map?NodeFunctionMap

Returns ImporterNodeFunctionEvent. Overrides CustomEvent<ImporterNodeFunctionEventDetail>.constructor.

PropertyModifierType
Typestaticstring

ImporterRawElement

Extends ImporterRawElement_base.

new ImporterRawElement(): ImporterRawElement

Returns ImporterRawElement. Inherited from ImporterRawElement_base.constructor.

PropertyModifierType
acceptsClippublicboolean
connectedpublicboolean
cssBorderBoxSizingstaticCSSResult
cssHostDroppingstaticCSSResult
cssHostFlexstaticCSSResult
defaultContentpublic readonlyOptionalContent
masherpublic readonlyMasher
masherOrNotpublicundefined | Masher
signalspublic readonlySignalsRecord
sourcespublicstring[]
stylesstaticCSSResult

Methods

dropValid(dataTransfer?): boolean

ParameterType
dataTransfer?Not | DataTransfer

Returns boolean. Inherited from ImporterRawElement_base.dropValid.

handleDragged(): void

Returns void. Inherited from ImporterRawElement_base.handleDragged.

handleDropped(dataTransfer?, clientX?): void

ParameterType
dataTransfer?Not | DataTransfer
clientX?number

Returns void. Inherited from ImporterRawElement_base.handleDropped.

mashIndex(dataTransfer?, clientX?): undefined | ClipLocation

ParameterType
dataTransfer?Not | DataTransfer
clientX?number

Returns undefined | ClipLocation. Inherited from ImporterRawElement_base.mashIndex.

templateContent(contents): TemplateContent

ParameterTypeDescription
contentsTemplateContents

Returns TemplateContent. Inherited from ImporterRawElement_base.templateContent.

unsubscribe(arg, name?, type?): void

ParameterTypeDescription
argstring | PropertyObject
name?string
type?string

Returns void. Inherited from ImporterRawElement_base.unsubscribe.

ImporterRemoveEvent

Dispatched when an importer has removed asset objects.

Extends StringEvent.

new ImporterRemoveEvent(detail): ImporterRemoveEvent

ParameterTypeDescription
detailstring

Returns ImporterRemoveEvent. Overrides StringEvent.constructor.

PropertyModifierType
Typestaticstring

ImporterTextElement

Extends LoaderElementBase.

new ImporterTextElement(): ImporterTextElement

Returns ImporterTextElement. Inherited from LoaderElementBase.constructor.

PropertyModifierType
connectedpublicboolean
cssBorderBoxSizingstaticCSSResult
cssHostDroppingstaticCSSResult
cssHostFlexstaticCSSResult
defaultContentpublic readonlyOptionalContent
masherpublic readonlyMasher
masherOrNotpublicundefined | Masher
signalspublic readonlySignalsRecord
stylesstaticCSSResult

Methods

templateContent(contents): TemplateContent

ParameterTypeDescription
contentsTemplateContents

Returns TemplateContent. Inherited from LoaderElementBase.templateContent.

unsubscribe(arg, name?, type?): void

ParameterTypeDescription
argstring | PropertyObject
name?string
type?string

Returns void. Inherited from LoaderElementBase.unsubscribe.

ImportersEvent

Dispatch to retrieve an array of importers.

Extends CustomEvent<ImportersEventDetail>.

new ImportersEvent(importers?): ImportersEvent

ParameterTypeDescription
importers?Importer[]

Returns ImportersEvent. Overrides CustomEvent<ImportersEventDetail>.constructor.

PropertyModifierType
Typestaticstring

TextClientImporter

new TextClientImporter(): TextClientImporter

Returns TextClientImporter.

PropertyModifierType
canImportpublic readonlyboolean
iconpublic readonlyNode
idpublicstring
instancestatic readonlyTextClientImporter
labelpublicstring
stylesstaticCSSResult

Methods

import(): void

Returns void.

ui(): Node

Returns Node.

static handleImport(event): void

ParameterTypeDescription
eventEvent

Returns void.

static handleImporters(evt): void

ParameterType
evtEvent

Returns void.

Interfaces

ClientImporter

Extends Importer.

PropertyType
idstring
label?string

Importer

Extends Identified.Labeled. Extended by ClientImporter.

PropertyType
idstring
label?string

ImporterAddEventDetail

PropertyType
mediaStorableMedia
promise?Promise<DataOrError<StoredMedia>>

ImporterErrorEventDetail

Extends Object.

PropertyType
erroredErrored

ImporterNodeFunctionEventDetail

PropertyType
mapNodeFunctionMap
sourcesstring[]
typesMediaType[]

ImportersEventDetail

PropertyType
importersImporter[]

Variables

ImporterContentTag

const ImporterContentTag: "media-masher-importer-content"

ImporterFooterTag

const ImporterFooterTag: "media-masher-importer-footer"

ImporterHeaderTag

const ImporterHeaderTag: "media-masher-importer-header"

ImporterRawTag

const ImporterRawTag: "media-masher-importer-raw"

ImporterTag

const ImporterTag: "media-masher-importer"

ImporterTextTag

const ImporterTextTag: "media-masher-importer-text"