1.0.0-beta.57 • Published 2 years ago

@humany/widget-types-agent-portal v1.0.0-beta.57

Weekly downloads
51
License
SEE LICENSE IN LI...
Repository
-
Last release
2 years ago

Humany Agent Portal Widget

General commands

The following commands are part of the Webprovisions widget definition and are available for all widget types.

initialize(): Promise

Gets the widget config from the ServiceClient and maps it to $settings on the Container.
Creates and registers a new TextManager on the Container.
Finally removes any found triggerElements.

activate(widgetActivationOptions?: { widgetDOMElement?: HTMLElement }): Promise

Uses the passed widgetDOMElement or creates new widgetDOMElement, appends to document.body and adds it to the Container.
Initializes the widget router.
Connects the widget data source.
Finally renders the widget inside the widgetDOMElement.

deactivate(): Promise

Deactivates the widget router and removes the widgetDOMElement from the DOM.

Services

Both asynchronous and synchronous services are available on the Container:

Async services:

// ES stage 3 syntax
const theService = await container.getAsync('theService');

// ES6 syntax
container.getAsync('theService').then((theService) => {

});

Sync services:

const theService = container.get('theService');

The following service is registered when an Agent Portal widget is created.

data: DataSource: Data source containing a stream of entries used to display data.
writer: DataWriter: Writer used to write and/or update entries on the data source.
router: RoutingService: Router used to handle routing.
storage: StorageProvider: Storage service used to store things in the browser, i.e cookies, session and local storage.
matchingClient: ServiceClient: Simple HTTP-client used to get data from the Humany Service.
texts: TextManager: Simple handler for localized and translated texts.

1.0.0-beta.56

2 years ago

1.0.0-beta.57

2 years ago

1.0.0-beta.55

3 years ago

1.0.0-beta.53

3 years ago

1.0.0-beta.54

3 years ago

1.0.0-beta.51

3 years ago

1.0.0-beta.52

3 years ago

1.0.0-beta.50

3 years ago

1.0.0-beta.48

3 years ago

1.0.0-beta.49

3 years ago

1.0.0-beta.46

3 years ago

1.0.0-beta.47

3 years ago

1.0.0-beta.45

3 years ago

1.0.0-beta.44

3 years ago

1.0.0-beta.43

4 years ago

1.0.0-beta.42

4 years ago

1.0.0-beta.41

4 years ago

1.0.0-beta.40

4 years ago

1.0.0-beta.39

4 years ago

1.0.0-beta.38

4 years ago

1.0.0-beta.37

4 years ago

1.0.0-beta.36

4 years ago

1.0.0-beta.35

4 years ago

1.0.0-beta.34

4 years ago

1.0.0-beta.33

4 years ago

1.0.0-beta.32

4 years ago

1.0.0-beta.31

4 years ago

1.0.0-beta.30

4 years ago

1.0.0-beta.29

5 years ago

1.0.0-beta.28

5 years ago

1.0.0-beta.27

5 years ago

1.0.0-beta.26

5 years ago

1.0.0-beta.25

5 years ago

1.0.0-beta.24

5 years ago

1.0.0-beta.23

5 years ago

1.0.0-beta.22

5 years ago

1.0.0-beta.21

5 years ago

1.0.0-beta.20

5 years ago

1.0.0-beta.19

5 years ago

1.0.0-beta.18

5 years ago

1.0.0-beta.17

5 years ago

1.0.0-beta.16

5 years ago

1.0.0-beta.15

5 years ago

1.0.0-beta.14

5 years ago

1.0.0-beta.13

5 years ago

1.0.0-beta.12

5 years ago

1.0.0-beta.11

5 years ago

1.0.0-beta.10

5 years ago

1.0.0-beta.9

5 years ago

1.0.0-beta.8

6 years ago

1.0.0-beta.7

6 years ago

1.0.0-beta.6

6 years ago

1.0.0-beta.5

6 years ago

1.0.0-beta.4

6 years ago

1.0.0-beta.3

6 years ago

1.0.0-beta.2

6 years ago

1.0.0-beta.1

6 years ago

1.0.0-alpha.0

6 years ago