Socket
Book a DemoInstallSign in
Socket

@openenergytools/multi-page-dialog

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@openenergytools/multi-page-dialog

Multi-page dialog based on mwc-dialog

latest
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

<multi-page-dialog>

This webcomponent follows the open-wc recommendation.

Installation

npm i multi-page-dialog

Usage

<script type="module">
  import 'multi-page-dialog';
</script>

<multi-page-dialog></multi-page-dialog>

Linting and formatting

To scan the project for linting and formatting errors, run

npm run lint

To automatically fix linting and formatting errors, run

npm run format

Testing with Web Test Runner

To execute a single test run:

npm run test

To run the tests in interactive watch mode run:

npm run test:watch

Demoing with Storybook

To run a local instance of Storybook for your component, run

npm run storybook

To build a production version of Storybook, run

npm run storybook:build

Tooling configs

For most of the tools, the configuration is in the package.json to reduce the amount of files in your project.

If you customize the configuration a lot, you can consider moving them to individual files.

Local Demo with web-dev-server

npm start

To run a local development server that serves the basic demo located in demo/index.html

multi-page-dialog.ts:

class: MultiPageDialog

Superclass

NameModulePackage
LitElementlit

Fields

NamePrivacyTypeDefaultDescriptionInherited From
openbooleanfalseWhether dialog is open
stackedbooleanfalseWhether dialog actions are stacked
headingstring''Dialogs header content
dialogDialog

Events

NameTypeDescriptionInherited From
turn-pageNavigate to the next, previous or user defined page

CSS Properties

NameDefaultDescription
--mdc-theme-errorColor of the cancel button

Slots

NameDescription
defaultContent of the dialog
secondaryActionOverwrites default `secondaryAction` buttons
primaryActionOverwrites default `primaryAction` buttons
Private API

Fields

NamePrivacyTypeDefaultDescriptionInherited From
prevPageprivateMultiPageDialog | null
nextPageprivateMultiPageDialog | null
allDescendantsprivateElement[]

Methods

NamePrivacyDescriptionParametersReturnInherited From
invalidDescendantprivateboolean
turnPageprivateincrement: numberPromise<void>
onTurnPageprivateevt: CustomEvent<TurnPageDetail>void
onClosedprivateae: CustomEvent<{ action: string } | null>Promise<void>

Exports

KindNameDeclarationModulePackage
jsMultiPageDialogMultiPageDialogmulti-page-dialog.ts

© 2023 THE AUTHORS

FAQs

Package last updated on 18 Sep 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts