From 671b9bf8927826d1c6244bcc468a7ceb5b544d5f Mon Sep 17 00:00:00 2001 From: Vladimir Kharlampidi Date: Thu, 14 Jul 2022 12:43:47 +0300 Subject: [PATCH] 7.0.6 release --- CHANGELOG.md | 12 + packages/core/package.json | 214 +++++++++++++----- packages/react/package.json | 2 +- packages/svelte/package.json | 2 +- packages/vue/framework7-vue-web-types.json | 2 +- packages/vue/package.json | 4 +- src/core/components/accordion/accordion.d.ts | 8 +- src/core/components/actions/actions.d.ts | 22 +- src/core/components/app/app-class.d.ts | 49 ++-- src/core/components/appbar/appbar.d.ts | 12 +- .../components/area-chart/area-chart.d.ts | 18 +- .../components/autocomplete/autocomplete.d.ts | 26 ++- src/core/components/badge/badge.d.ts | 12 +- src/core/components/block/block.d.ts | 12 +- .../components/breadcrumbs/breadcrumbs.d.ts | 6 +- src/core/components/button/button.d.ts | 12 +- src/core/components/calendar/calendar.d.ts | 38 ++-- src/core/components/card/card.d.ts | 46 ++-- src/core/components/checkbox/checkbox.d.ts | 12 +- src/core/components/chip/chip.d.ts | 12 +- .../components/color-picker/color-picker.d.ts | 24 +- .../contacts-list/contacts-list.d.ts | 12 +- .../components/data-table/data-table.d.ts | 16 +- src/core/components/dialog/dialog.d.ts | 102 +++++---- src/core/components/elevation/elevation.d.ts | 12 +- src/core/components/fab/fab.d.ts | 16 +- src/core/components/form/form.d.ts | 18 +- src/core/components/gauge/gauge.d.ts | 18 +- src/core/components/grid/grid.d.ts | 10 +- src/core/components/icon/icon.d.ts | 12 +- .../infinite-scroll/infinite-scroll.d.ts | 12 +- src/core/components/input/input.d.ts | 44 ++-- src/core/components/lazy/lazy.d.ts | 34 +-- src/core/components/link/link.d.ts | 12 +- .../components/list-index/list-index.d.ts | 30 +-- src/core/components/list/list.d.ts | 12 +- .../components/login-screen/login-screen.d.ts | 22 +- src/core/components/menu/menu.d.ts | 12 +- .../components/messagebar/messagebar.d.ts | 74 +++--- src/core/components/messages/messages.d.ts | 38 ++-- src/core/components/modal/modal.d.ts | 16 +- src/core/components/navbar/navbar.d.ts | 68 +++--- .../components/notification/notification.d.ts | 20 +- src/core/components/page/page.d.ts | 12 +- src/core/components/panel/panel.d.ts | 46 ++-- .../photo-browser/photo-browser.d.ts | 24 +- src/core/components/picker/picker.d.ts | 28 ++- src/core/components/pie-chart/pie-chart.d.ts | 18 +- src/core/components/popover/popover.d.ts | 24 +- src/core/components/popup/popup.d.ts | 22 +- src/core/components/preloader/preloader.d.ts | 18 +- .../components/progressbar/progressbar.d.ts | 24 +- .../pull-to-refresh/pull-to-refresh.d.ts | 48 ++-- src/core/components/radio/radio.d.ts | 12 +- src/core/components/range/range.d.ts | 22 +- src/core/components/searchbar/searchbar.d.ts | 34 +-- src/core/components/sheet/sheet.d.ts | 36 +-- src/core/components/skeleton/skeleton.d.ts | 12 +- .../components/smart-select/smart-select.d.ts | 30 +-- src/core/components/sortable/sortable.d.ts | 16 +- src/core/components/statusbar/statusbar.d.ts | 60 ++--- src/core/components/stepper/stepper.d.ts | 30 +-- src/core/components/subnavbar/subnavbar.d.ts | 6 +- src/core/components/swipeout/swipeout.d.ts | 32 +-- src/core/components/swiper/swiper.d.ts | 18 +- src/core/components/tabs/tabs.d.ts | 8 +- .../components/text-editor/text-editor.d.ts | 24 +- src/core/components/timeline/timeline.d.ts | 12 +- src/core/components/toast/toast.d.ts | 24 +- src/core/components/toggle/toggle.d.ts | 16 +- src/core/components/toolbar/toolbar.d.ts | 24 +- src/core/components/tooltip/tooltip.d.ts | 28 ++- .../components/touch-ripple/touch-ripple.d.ts | 14 +- src/core/components/treeview/treeview.d.ts | 14 +- .../components/typography/typography.d.ts | 12 +- src/core/components/view/view.d.ts | 18 +- .../components/virtual-list/virtual-list.d.ts | 46 ++-- src/core/modules/component/component.d.ts | 14 +- src/core/modules/device/device.d.ts | 4 +- src/core/modules/request/request.d.ts | 4 +- src/core/modules/resize/resize.d.ts | 2 +- src/core/modules/router/router.d.ts | 72 +++--- .../service-worker/service-worker.d.ts | 4 +- src/core/modules/store/store.d.ts | 2 +- src/core/modules/support/support.d.ts | 4 +- src/core/modules/touch/touch.d.ts | 54 ++--- src/core/modules/utils/utils.d.ts | 4 +- 87 files changed, 1252 insertions(+), 879 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3a98ad81d7..896ddb1d52 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,18 @@ # Change Log +# [7.0.6](https://github.com/framework7io/framework7/compare/v7.0.5...v7.0.6) (2022-07-14) + +### Bug Fixes + +- **core:** fix core components types file not found in typescript when import ([#4059](https://github.com/framework7io/framework7/issues/4059)) ([1886a76](https://github.com/framework7io/framework7/commit/1886a76fccbfd885a3125d59041270c5d3178187)) +- **core:** fix getWindow/Document getters in lazy components ([41a7c50](https://github.com/framework7io/framework7/commit/41a7c5083fa0cee734191d8450a19c268d1b1958)), closes [#4052](https://github.com/framework7io/framework7/issues/4052) +- **panel:** fix closeByBackdropClick ignored on instance ([48e966f](https://github.com/framework7io/framework7/commit/48e966fdccb80efaa5c79eb66126adfbbce3f361)) + +### Features + +- **svelte:** searchbar: add html attributes auto-complete/correct/capitalize fixes ([d5934d6](https://github.com/framework7io/framework7/commit/d5934d612c4ab41f99676efe52258e8ed54c1e10)) + # [7.0.5](https://github.com/framework7io/framework7/compare/v7.0.4...v7.0.5) (2022-05-31) ### Bug Fixes diff --git a/packages/core/package.json b/packages/core/package.json index 95b6fa9351..a59045c631 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "framework7", - "version": "7.0.5", + "version": "7.0.6", "description": "Full featured mobile HTML framework for building iOS & Android apps", "type": "module", "exports": { @@ -267,59 +267,165 @@ ".": [ "./framework7.d.ts" ], - "components/appbar": ["./components/appbar/appbar.d.ts"], - "components/dialog": ["./components/dialog/dialog.d.ts"], - "components/popup": ["./components/popup/popup.d.ts"], - "components/login-screen": ["./components/login-screen/login-screen.d.ts"], - "components/popover": ["./components/popover/popover.d.ts"], - "components/actions": ["./components/actions/actions.d.ts"], - "components/sheet": ["./components/sheet/sheet.d.ts"], - "components/toast": ["./components/toast/toast.d.ts"], - "components/preloader": ["./components/preloader/preloader.d.ts"], - "components/progressbar": ["./components/progressbar/progressbar.d.ts"], - "components/sortable": ["./components/sortable/sortable.d.ts"], - "components/swipeout": ["./components/swipeout/swipeout.d.ts"], - "components/accordion": ["./components/accordion/accordion.d.ts"], - "components/contacts-list": ["./components/contacts-list/contacts-list.d.ts"], - "components/virtual-list": ["./components/virtual-list/virtual-list.d.ts"], - "components/list-index": ["./components/list-index/list-index.d.ts"], - "components/timeline": ["./components/timeline/timeline.d.ts"], - "components/tabs": ["./components/tabs/tabs.d.ts"], - "components/panel": ["./components/panel/panel.d.ts"], - "components/card": ["./components/card/card.d.ts"], - "components/chip": ["./components/chip/chip.d.ts"], - "components/form": ["./components/form/form.d.ts"], - "components/input": ["./components/input/input.d.ts"], - "components/checkbox": ["./components/checkbox/checkbox.d.ts"], - "components/radio": ["./components/radio/radio.d.ts"], - "components/toggle": ["./components/toggle/toggle.d.ts"], - "components/range": ["./components/range/range.d.ts"], - "components/stepper": ["./components/stepper/stepper.d.ts"], - "components/smart-select": ["./components/smart-select/smart-select.d.ts"], - "components/grid": ["./components/grid/grid.d.ts"], - "components/calendar": ["./components/calendar/calendar.d.ts"], - "components/picker": ["./components/picker/picker.d.ts"], - "components/infinite-scroll": ["./components/infinite-scroll/infinite-scroll.d.ts"], - "components/pull-to-refresh": ["./components/pull-to-refresh/pull-to-refresh"], - "components/lazy": ["./components/lazy/lazy.d.ts"], - "components/data-table": ["./components/data-table/data-table.d.ts"], - "components/fab": ["./components/fab/fab.d.ts"], - "components/searchbar": ["./components/searchbar/searchbar.d.ts"], - "components/messages": ["./components/messages/messages.d.ts"], - "components/messagebar": ["./components/messagebar/messagebar.d.ts"], - "components/swiper": ["./components/swiper/swiper.d.ts"], - "components/photo-browser": ["./components/photo-browser/photo-browser.d.ts"], - "components/notification": ["./components/notification/notification.d.ts"], - "components/autocomplete": ["./components/autocomplete/autocomplete.d.ts"], - "components/tooltip": ["./components/tooltip/tooltip.d.ts"], - "components/skeleton": ["./components/skeleton/skeleton.d.ts"], - "components/menu": ["./components/menu/menu.d.ts"], - "components/color-picker": ["./components/color-picker/color-picker.d.ts"], - "components/treeview": ["./components/treeview/treeview.d.ts"], - "components/text-editor": ["./components/text-editor/text-editor.d.ts"], - "components/elevation": ["./components/elevation/elevation.d.ts"], - "components/typography": ["./components/typography/typography.d.ts"], - "lite": ["./framework7.d.ts"], + "components/appbar": [ + "./components/appbar/appbar.d.ts" + ], + "components/dialog": [ + "./components/dialog/dialog.d.ts" + ], + "components/popup": [ + "./components/popup/popup.d.ts" + ], + "components/login-screen": [ + "./components/login-screen/login-screen.d.ts" + ], + "components/popover": [ + "./components/popover/popover.d.ts" + ], + "components/actions": [ + "./components/actions/actions.d.ts" + ], + "components/sheet": [ + "./components/sheet/sheet.d.ts" + ], + "components/toast": [ + "./components/toast/toast.d.ts" + ], + "components/preloader": [ + "./components/preloader/preloader.d.ts" + ], + "components/progressbar": [ + "./components/progressbar/progressbar.d.ts" + ], + "components/sortable": [ + "./components/sortable/sortable.d.ts" + ], + "components/swipeout": [ + "./components/swipeout/swipeout.d.ts" + ], + "components/accordion": [ + "./components/accordion/accordion.d.ts" + ], + "components/contacts-list": [ + "./components/contacts-list/contacts-list.d.ts" + ], + "components/virtual-list": [ + "./components/virtual-list/virtual-list.d.ts" + ], + "components/list-index": [ + "./components/list-index/list-index.d.ts" + ], + "components/timeline": [ + "./components/timeline/timeline.d.ts" + ], + "components/tabs": [ + "./components/tabs/tabs.d.ts" + ], + "components/panel": [ + "./components/panel/panel.d.ts" + ], + "components/card": [ + "./components/card/card.d.ts" + ], + "components/chip": [ + "./components/chip/chip.d.ts" + ], + "components/form": [ + "./components/form/form.d.ts" + ], + "components/input": [ + "./components/input/input.d.ts" + ], + "components/checkbox": [ + "./components/checkbox/checkbox.d.ts" + ], + "components/radio": [ + "./components/radio/radio.d.ts" + ], + "components/toggle": [ + "./components/toggle/toggle.d.ts" + ], + "components/range": [ + "./components/range/range.d.ts" + ], + "components/stepper": [ + "./components/stepper/stepper.d.ts" + ], + "components/smart-select": [ + "./components/smart-select/smart-select.d.ts" + ], + "components/grid": [ + "./components/grid/grid.d.ts" + ], + "components/calendar": [ + "./components/calendar/calendar.d.ts" + ], + "components/picker": [ + "./components/picker/picker.d.ts" + ], + "components/infinite-scroll": [ + "./components/infinite-scroll/infinite-scroll.d.ts" + ], + "components/pull-to-refresh": [ + "./components/pull-to-refresh/pull-to-refresh" + ], + "components/lazy": [ + "./components/lazy/lazy.d.ts" + ], + "components/data-table": [ + "./components/data-table/data-table.d.ts" + ], + "components/fab": [ + "./components/fab/fab.d.ts" + ], + "components/searchbar": [ + "./components/searchbar/searchbar.d.ts" + ], + "components/messages": [ + "./components/messages/messages.d.ts" + ], + "components/messagebar": [ + "./components/messagebar/messagebar.d.ts" + ], + "components/swiper": [ + "./components/swiper/swiper.d.ts" + ], + "components/photo-browser": [ + "./components/photo-browser/photo-browser.d.ts" + ], + "components/notification": [ + "./components/notification/notification.d.ts" + ], + "components/autocomplete": [ + "./components/autocomplete/autocomplete.d.ts" + ], + "components/tooltip": [ + "./components/tooltip/tooltip.d.ts" + ], + "components/skeleton": [ + "./components/skeleton/skeleton.d.ts" + ], + "components/menu": [ + "./components/menu/menu.d.ts" + ], + "components/color-picker": [ + "./components/color-picker/color-picker.d.ts" + ], + "components/treeview": [ + "./components/treeview/treeview.d.ts" + ], + "components/text-editor": [ + "./components/text-editor/text-editor.d.ts" + ], + "components/elevation": [ + "./components/elevation/elevation.d.ts" + ], + "components/typography": [ + "./components/typography/typography.d.ts" + ], + "lite": [ + "./framework7.d.ts" + ], "types": [ "./framework7-types.d.ts" ] diff --git a/packages/react/package.json b/packages/react/package.json index 9b17f0322b..264ac9e62a 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -1,6 +1,6 @@ { "name": "framework7-react", - "version": "7.0.5", + "version": "7.0.6", "description": "Build full featured iOS & Android apps using Framework7 & React", "type": "module", "exports": { diff --git a/packages/svelte/package.json b/packages/svelte/package.json index 6aa9a7e196..dab3fbf0cd 100644 --- a/packages/svelte/package.json +++ b/packages/svelte/package.json @@ -1,6 +1,6 @@ { "name": "framework7-svelte", - "version": "7.0.5", + "version": "7.0.6", "description": "Build full featured iOS & Android apps using Framework7 & Svelte", "type": "module", "svelte": "./framework7-svelte.js", diff --git a/packages/vue/framework7-vue-web-types.json b/packages/vue/framework7-vue-web-types.json index b11cffcc65..b3b0dc7662 100644 --- a/packages/vue/framework7-vue-web-types.json +++ b/packages/vue/framework7-vue-web-types.json @@ -2,7 +2,7 @@ "$schema": "http://json-schema.org/draft-04/schema#", "framework": "vue", "name": "framework7-vue", - "version": "7.0.5", + "version": "7.0.6", "contributions": { "html": { "types-syntax": "typescript", diff --git a/packages/vue/package.json b/packages/vue/package.json index cd5c3b8d9e..b2b358fd1c 100644 --- a/packages/vue/package.json +++ b/packages/vue/package.json @@ -1,6 +1,6 @@ { "name": "framework7-vue", - "version": "7.0.5", + "version": "7.0.6", "description": "Build full featured iOS & Android apps using Framework7 & Vue", "type": "module", "exports": { @@ -51,4 +51,4 @@ "type": "patreon", "url": "https://www.patreon.com/framework7" } -} +} \ No newline at end of file diff --git a/src/core/components/accordion/accordion.d.ts b/src/core/components/accordion/accordion.d.ts index 6d8eac1b8f..2d7053baab 100644 --- a/src/core/components/accordion/accordion.d.ts +++ b/src/core/components/accordion/accordion.d.ts @@ -5,16 +5,16 @@ export namespace Accordion { interface AppMethods { accordion: { /** open specified accordion item */ - open (el: HTMLElement | CSSSelector): void; + open(el: HTMLElement | CSSSelector): void; /** close specified accordion item */ - close (el: HTMLElement | CSSSelector): void; + close(el: HTMLElement | CSSSelector): void; /** toggle specified accordion item */ - toggle (el: HTMLElement | CSSSelector): void; + toggle(el: HTMLElement | CSSSelector): void; }; } - interface AppParams { } + interface AppParams {} interface DomEvents { /** Event will be triggered right before accordion content starts its opening animation. event.detail.prevent contains function that will prevent accordion from opening when called */ 'accordion:beforeopen': () => void; diff --git a/src/core/components/actions/actions.d.ts b/src/core/components/actions/actions.d.ts index 35050173bd..459644c00f 100644 --- a/src/core/components/actions/actions.d.ts +++ b/src/core/components/actions/actions.d.ts @@ -1,5 +1,9 @@ import { Dom7Array } from 'dom7'; -import Framework7, { CSSSelector, Framework7EventsClass, Framework7Plugin } from '../app/app-class.js'; +import Framework7, { + CSSSelector, + Framework7EventsClass, + Framework7Plugin, +} from '../app/app-class.js'; export namespace Actions { interface Actions extends Framework7EventsClass { @@ -19,11 +23,11 @@ export namespace Actions { opened: boolean; /** Open action sheet. Where animate - boolean (by default true) - defines whether it should be opened with animation */ - open (animate?: boolean): void; + open(animate?: boolean): void; /** Close action sheet. Where animate - boolean (by default true) - defines whether it should be closed with animation */ - close (animate?: boolean): void; + close(animate?: boolean): void; /** Destroy action sheet */ - destroy (): void; + destroy(): void; } interface Button { @@ -127,15 +131,15 @@ export namespace Actions { interface AppMethods { actions: { /** create Action Sheet instance */ - create (parameters: Parameters): Actions; + create(parameters: Parameters): Actions; /** destroy Action Sheet instance */ - destroy (el: HTMLElement | CSSSelector | Actions): void; + destroy(el: HTMLElement | CSSSelector | Actions): void; /** get Action Sheet instance by HTML element */ - get (el?: HTMLElement | CSSSelector): Actions; + get(el?: HTMLElement | CSSSelector): Actions; /** opens Action Sheet */ - open (el?: HTMLElement | CSSSelector, animate?: boolean): Actions; + open(el?: HTMLElement | CSSSelector, animate?: boolean): Actions; /** closes Action Sheet */ - close (el?: HTMLElement | CSSSelector, animate?: boolean): Actions; + close(el?: HTMLElement | CSSSelector, animate?: boolean): Actions; }; } interface AppParams { diff --git a/src/core/components/app/app-class.d.ts b/src/core/components/app/app-class.d.ts index dd70f055f9..ba051dfb3e 100644 --- a/src/core/components/app/app-class.d.ts +++ b/src/core/components/app/app-class.d.ts @@ -4,38 +4,41 @@ import { DeviceParams, Device } from '../../shared/get-device.js'; import { Support } from '../../shared/get-support.js'; import { Request } from '../../shared/request.js'; import { Utils } from '../../shared/utils.js'; -import { ComponentClass, ComponentFunction as Component } from '../../modules/component/component.js'; +import { + ComponentClass, + ComponentFunction as Component, +} from '../../modules/component/component.js'; import { StoreObject, StoreParameters } from '../../modules/store/store.js'; // Css Selector string is an option on many F7 methods // Giving this alias makes the typename show in the intellisense // instead of just `string`. -export interface CSSSelector extends String { } +export interface CSSSelector extends String {} export interface Framework7Class { /** Add event handler */ - on (event: E, handler: Events[E]): void; + on(event: E, handler: Events[E]): void; /** Add event handler that will be removed after it was fired */ - once (event: E, handler: Events[E]): void; + once(event: E, handler: Events[E]): void; /** Remove event handler */ - off (event: E, handler: Events[E]): void; + off(event: E, handler: Events[E]): void; /** Remove all handlers for specified event */ - off (event: E): void; + off(event: E): void; /** Fire event on instance */ - emit (event: E, ...args: any[]): void; + emit(event: E, ...args: any[]): void; } export interface Framework7EventsClass { /** Add event handler */ - on (event: E, handler: Events[E]): void; + on(event: E, handler: Events[E]): void; /** Add event handler that will be removed after it was fired */ - once (event: E, handler: Events[E]): void; + once(event: E, handler: Events[E]): void; /** Remove event handler */ - off (event: E, handler: Events[E]): void; + off(event: E, handler: Events[E]): void; /** Remove all handlers for specified event */ - off (event: E): void; + off(event: E): void; /** Fire event on instance */ - emit (event: E, ...args: any[]): void; + emit(event: E, ...args: any[]): void; } export interface Framework7Parameters { @@ -84,7 +87,7 @@ export interface Framework7Plugin { install: () => void; /** Create callback It will be executed in the very beginning of class initilization (when we create new instance of the class) */ - create (instance: Framework7): () => void; + create(instance: Framework7): () => void; /** Object with default class/plugin parameters */ params?: { [plugin_name: string]: { @@ -160,23 +163,23 @@ interface Framework7 extends Framework7Class { /** App parameters */ params: Framework7Parameters; /** Enables auto dark mode detection */ - enableAutoDarkMode (): void; + enableAutoDarkMode(): void; /** Disables auto dark mode detection */ - disableAutoDarkMode (): void; + disableAutoDarkMode(): void; /** Initialize app. In case you disabled auto initialization with init: false parameter */ - init (): void; + init(): void; /** Load module */ - loadModule (module: string | Function | Framework7Plugin): Promise; + loadModule(module: string | Function | Framework7Plugin): Promise; /** Load modules */ - loadModules (modules: any[]): Promise; + loadModules(modules: any[]): Promise; } -interface Events extends Framework7EventsClass { } +interface Events extends Framework7EventsClass {} declare class Framework7 implements Framework7 { constructor(parameters?: Framework7Parameters); - static use (plugin: Framework7Plugin): void; - static use (plugins: Framework7Plugin[]): void; + static use(plugin: Framework7Plugin): void; + static use(plugins: Framework7Plugin[]): void; static getDevice: (overrides?: DeviceParams) => Device; static getSupport: () => Support; static device: Device; @@ -186,9 +189,9 @@ declare class Framework7 implements Framework7 { static Events: Events; static Component: ComponentClass; /** Register custom component */ - static registerComponent (tagName: string, component: Component): void; + static registerComponent(tagName: string, component: Component): void; /** Unregister custom component */ - static unregisterComponent (tagName: string): void; + static unregisterComponent(tagName: string): void; /** Create new store */ createStore: (storeParameters: StoreParameters) => StoreObject; } diff --git a/src/core/components/appbar/appbar.d.ts b/src/core/components/appbar/appbar.d.ts index 1bd5b5f3fc..cdb08133cb 100644 --- a/src/core/components/appbar/appbar.d.ts +++ b/src/core/components/appbar/appbar.d.ts @@ -1,9 +1,13 @@ -import Framework7, { CSSSelector, Framework7EventsClass, Framework7Plugin } from '../app/app-class.js'; +import Framework7, { + CSSSelector, + Framework7EventsClass, + Framework7Plugin, +} from '../app/app-class.js'; export namespace Appbar { - interface AppMethods { } - interface AppParams { } - interface AppEvents { } + interface AppMethods {} + interface AppParams {} + interface AppEvents {} } declare const AppbarComponent: Framework7Plugin; diff --git a/src/core/components/area-chart/area-chart.d.ts b/src/core/components/area-chart/area-chart.d.ts index 2d656f3faa..cb643a2e24 100644 --- a/src/core/components/area-chart/area-chart.d.ts +++ b/src/core/components/area-chart/area-chart.d.ts @@ -1,5 +1,9 @@ import { Dom7Array } from 'dom7'; -import Framework7, { CSSSelector, Framework7EventsClass, Framework7Plugin } from '../app/app-class.js'; +import Framework7, { + CSSSelector, + Framework7EventsClass, + Framework7Plugin, +} from '../app/app-class.js'; export namespace AreaChart { interface AreaChart extends Framework7EventsClass { @@ -17,9 +21,9 @@ export namespace AreaChart { params: Parameters; /** Update/rerender chart SVG element according to passed parameters. It accepts object with same parameters required for chart initialization. You can pass only parameters that needs to be updated */ - update (parameters: Parameters): AreaChart; + update(parameters: Parameters): AreaChart; /** Destroys chart instance */ - destroy (): void; + destroy(): void; } interface Dataset { @@ -99,13 +103,13 @@ export namespace AreaChart { interface AppMethods { areaChart: { /** create Area chart instance */ - create (parameters: Parameters): AreaChart; + create(parameters: Parameters): AreaChart; /** destroy Area chart instance */ - destroy (el: HTMLElement | CSSSelector | AreaChart): void; + destroy(el: HTMLElement | CSSSelector | AreaChart): void; /** get Area chart instance by HTML element */ - get (el: HTMLElement | CSSSelector): AreaChart; + get(el: HTMLElement | CSSSelector): AreaChart; /** update/rerender Area chart SVG according to passed parameters */ - update (parameters: Parameters): AreaChart; + update(parameters: Parameters): AreaChart; }; } interface AppParams { diff --git a/src/core/components/autocomplete/autocomplete.d.ts b/src/core/components/autocomplete/autocomplete.d.ts index 1b8d6c1df1..c105a6a489 100644 --- a/src/core/components/autocomplete/autocomplete.d.ts +++ b/src/core/components/autocomplete/autocomplete.d.ts @@ -1,5 +1,9 @@ import { Dom7Array } from 'dom7'; -import Framework7, { CSSSelector, Framework7EventsClass, Framework7Plugin } from '../app/app-class.js'; +import Framework7, { + CSSSelector, + Framework7EventsClass, + Framework7Plugin, +} from '../app/app-class.js'; import { Searchbar } from '../searchbar/searchbar.js'; import { View } from '../view/view.js'; @@ -35,15 +39,15 @@ export namespace Autocomplete { searchbar: Searchbar.Searchbar; /** Open Autocomplete (Dropdown, Page or Popup) */ - open (): void; + open(): void; /** Close Autocomplete */ - close (): void; + close(): void; /** Show autocomplete preloader */ - preloaderShow (): void; + preloaderShow(): void; /** Hide autocomplete preloader */ - preloaderHide (): void; + preloaderHide(): void; /** Destroy Autocomplete instance and remove all events */ - destroy (): void; + destroy(): void; } interface Parameters { @@ -157,15 +161,15 @@ export namespace Autocomplete { interface AppMethods { autocomplete: { /** create Autocomplete instance */ - create (parameters: Parameters): Autocomplete; + create(parameters: Parameters): Autocomplete; /** destroy Autocomplete instance */ - destroy (el: HTMLElement | CSSSelector): void; + destroy(el: HTMLElement | CSSSelector): void; /** get Autocomplete instance by HTML element */ - get (el: HTMLElement | CSSSelector): Autocomplete; + get(el: HTMLElement | CSSSelector): Autocomplete; /** open Autocomplete */ - open (el: HTMLElement | CSSSelector): Autocomplete; + open(el: HTMLElement | CSSSelector): Autocomplete; /** closes Autocomplete */ - close (el: HTMLElement | CSSSelector): Autocomplete; + close(el: HTMLElement | CSSSelector): Autocomplete; }; } interface AppParams { diff --git a/src/core/components/badge/badge.d.ts b/src/core/components/badge/badge.d.ts index cb53c68dd3..3ec13d586a 100644 --- a/src/core/components/badge/badge.d.ts +++ b/src/core/components/badge/badge.d.ts @@ -1,9 +1,13 @@ -import Framework7, { CSSSelector, Framework7EventsClass, Framework7Plugin } from '../app/app-class.js'; +import Framework7, { + CSSSelector, + Framework7EventsClass, + Framework7Plugin, +} from '../app/app-class.js'; export namespace Badge { - interface AppMethods { } - interface AppParams { } - interface AppEvents { } + interface AppMethods {} + interface AppParams {} + interface AppEvents {} } declare const BadgeComponent: Framework7Plugin; diff --git a/src/core/components/block/block.d.ts b/src/core/components/block/block.d.ts index 359ae8bffe..c9ca214861 100644 --- a/src/core/components/block/block.d.ts +++ b/src/core/components/block/block.d.ts @@ -1,9 +1,13 @@ -import Framework7, { CSSSelector, Framework7EventsClass, Framework7Plugin } from '../app/app-class.js'; +import Framework7, { + CSSSelector, + Framework7EventsClass, + Framework7Plugin, +} from '../app/app-class.js'; export namespace Block { - interface AppMethods { } - interface AppParams { } - interface AppEvents { } + interface AppMethods {} + interface AppParams {} + interface AppEvents {} } declare const BlockComponent: Framework7Plugin; diff --git a/src/core/components/breadcrumbs/breadcrumbs.d.ts b/src/core/components/breadcrumbs/breadcrumbs.d.ts index e4539b4c8a..b92d4c7fc7 100644 --- a/src/core/components/breadcrumbs/breadcrumbs.d.ts +++ b/src/core/components/breadcrumbs/breadcrumbs.d.ts @@ -5,9 +5,9 @@ export namespace Breadcrumbs { interface AppMethods { breadcrumbs: {}; } - interface AppParams { } - interface DomEvents { } - interface AppEvents { } + interface AppParams {} + interface DomEvents {} + interface AppEvents {} } declare const BreadcrumbsComponent: Framework7Plugin; diff --git a/src/core/components/button/button.d.ts b/src/core/components/button/button.d.ts index 58a0b5734d..e0fa3036b6 100644 --- a/src/core/components/button/button.d.ts +++ b/src/core/components/button/button.d.ts @@ -1,9 +1,13 @@ -import Framework7, { CSSSelector, Framework7EventsClass, Framework7Plugin } from '../app/app-class.js'; +import Framework7, { + CSSSelector, + Framework7EventsClass, + Framework7Plugin, +} from '../app/app-class.js'; export namespace Button { - interface AppMethods { } - interface AppParams { } - interface AppEvents { } + interface AppMethods {} + interface AppParams {} + interface AppEvents {} } declare const ButtonComponent: Framework7Plugin; diff --git a/src/core/components/calendar/calendar.d.ts b/src/core/components/calendar/calendar.d.ts index 5dd98fb894..1722af8e43 100644 --- a/src/core/components/calendar/calendar.d.ts +++ b/src/core/components/calendar/calendar.d.ts @@ -1,5 +1,9 @@ import { Dom7Array } from 'dom7'; -import Framework7, { CSSSelector, Framework7EventsClass, Framework7Plugin } from '../app/app-class.js'; +import Framework7, { + CSSSelector, + Framework7EventsClass, + Framework7Plugin, +} from '../app/app-class.js'; import { View } from '../view/view.js'; export namespace Calendar { @@ -40,29 +44,29 @@ export namespace Calendar { allowTouchMove: boolean; /** Set new selected dates. values is array where each item represents selected date */ - setValue (values: Date[]): void; + setValue(values: Date[]): void; /** Returns current calendar value */ - getValue (): Date[]; + getValue(): Date[]; /** Adds value to the values array. Useful in case if multiple selection is enabled (with multiple: true parameter) */ - addValue (value: Date): void; + addValue(value: Date): void; /** Rerenders calendar. Useful in case you added/changed values dynamically and need to update calendar layout */ - update (): void; + update(): void; /** Calendar transition to next month for specified duration in ms */ - nextMonth (duration: number): void; + nextMonth(duration: number): void; /** Calendar transition to previous month for specified duration in ms */ - prevMonth (duration: number): void; + prevMonth(duration: number): void; /** Calendar transition to next year */ - nextYear (): void; + nextYear(): void; /** Calendar transition to previous year */ - prevYear (): void; + prevYear(): void; /** Calendar transition to specified year, month for specified duration in ms */ - setYearMonth (year: number, month: number, duration: number): void; + setYearMonth(year: number, month: number, duration: number): void; /** Open Calendar */ - open (): void; + open(): void; /** Close Calendar */ - close (): void; + close(): void; /** Destroy Calendar instance and remove all events */ - destroy (): void; + destroy(): void; } type DateRangeItem = @@ -254,16 +258,16 @@ export namespace Calendar { interface AppMethods { calendar: { /** create Calendar instance */ - create (parameters: Parameters): Calendar; + create(parameters: Parameters): Calendar; /** destroy Calendar instance */ - destroy (el: HTMLElement | CSSSelector | Calendar): void; + destroy(el: HTMLElement | CSSSelector | Calendar): void; /** get Calendar instance by HTML element */ - get (el: HTMLElement | CSSSelector): Calendar; + get(el: HTMLElement | CSSSelector): Calendar; /** closes Calendar */ - close (el: HTMLElement | CSSSelector): Calendar; + close(el: HTMLElement | CSSSelector): Calendar; }; } interface AppParams { diff --git a/src/core/components/card/card.d.ts b/src/core/components/card/card.d.ts index 86a6a26847..989fa4fce7 100644 --- a/src/core/components/card/card.d.ts +++ b/src/core/components/card/card.d.ts @@ -1,35 +1,39 @@ -import Framework7, { CSSSelector, Framework7EventsClass, Framework7Plugin } from '../app/app-class.js'; +import Framework7, { + CSSSelector, + Framework7EventsClass, + Framework7Plugin, +} from '../app/app-class.js'; export namespace Card { interface AppMethods { card: { /** Open expandable card */ - open (cardEl: HTMLElement | CSSSelector, animate?: boolean): void; + open(cardEl: HTMLElement | CSSSelector, animate?: boolean): void; /** Close expandable card */ - close (cardEl: HTMLElement | CSSSelector, animate?: boolean): void; + close(cardEl: HTMLElement | CSSSelector, animate?: boolean): void; /** Toggle expandable card */ - toggle (cardEl: HTMLElement | CSSSelector, animate?: boolean): void; + toggle(cardEl: HTMLElement | CSSSelector, animate?: boolean): void; }; } interface AppParams { card?: - | { - /** Will hide Navbar on expandable card open. (default true) */ - hideNavbarOnOpen?: boolean; - /** Will hide Toolbar on expandable card open. (default true) */ - hideToolbarOnOpen?: boolean; - /** Will hide "Statusbar" on expandable card open. (default true) */ - hideStatusbarOnOpen?: boolean; - /** Custom scrollable container CSS selector, (default '.card-content') */ - scrollableEl?: string; - /** Allows to close expandable card with swipe (default true) */ - swipeToClose?: boolean; - /** Enables expandable card backdrop layer (default true) */ - backdrop?: boolean; - /** When enabled, expandable card will be closed on backdrop click. (default true) */ - closeByBackdropClick?: boolean; - } - | undefined; + | { + /** Will hide Navbar on expandable card open. (default true) */ + hideNavbarOnOpen?: boolean; + /** Will hide Toolbar on expandable card open. (default true) */ + hideToolbarOnOpen?: boolean; + /** Will hide "Statusbar" on expandable card open. (default true) */ + hideStatusbarOnOpen?: boolean; + /** Custom scrollable container CSS selector, (default '.card-content') */ + scrollableEl?: string; + /** Allows to close expandable card with swipe (default true) */ + swipeToClose?: boolean; + /** Enables expandable card backdrop layer (default true) */ + backdrop?: boolean; + /** When enabled, expandable card will be closed on backdrop click. (default true) */ + closeByBackdropClick?: boolean; + } + | undefined; } interface DomEvents { /** Event will be triggered right before expandable card starts its opening animation. event.detail.prevent contains function that will prevent card from opening when called */ diff --git a/src/core/components/checkbox/checkbox.d.ts b/src/core/components/checkbox/checkbox.d.ts index 288fe2f15a..a56c423883 100644 --- a/src/core/components/checkbox/checkbox.d.ts +++ b/src/core/components/checkbox/checkbox.d.ts @@ -1,9 +1,13 @@ -import Framework7, { CSSSelector, Framework7EventsClass, Framework7Plugin } from '../app/app-class.js'; +import Framework7, { + CSSSelector, + Framework7EventsClass, + Framework7Plugin, +} from '../app/app-class.js'; export namespace Checkbox { - interface AppMethods { } - interface AppParams { } - interface AppEvents { } + interface AppMethods {} + interface AppParams {} + interface AppEvents {} } declare const CheckboxComponent: Framework7Plugin; diff --git a/src/core/components/chip/chip.d.ts b/src/core/components/chip/chip.d.ts index 7cbb3aefb5..81e7b8fd92 100644 --- a/src/core/components/chip/chip.d.ts +++ b/src/core/components/chip/chip.d.ts @@ -1,9 +1,13 @@ -import Framework7, { CSSSelector, Framework7EventsClass, Framework7Plugin } from '../app/app-class.js'; +import Framework7, { + CSSSelector, + Framework7EventsClass, + Framework7Plugin, +} from '../app/app-class.js'; export namespace Chip { - interface AppMethods { } - interface AppParams { } - interface AppEvents { } + interface AppMethods {} + interface AppParams {} + interface AppEvents {} } declare const ChipComponent: Framework7Plugin; diff --git a/src/core/components/color-picker/color-picker.d.ts b/src/core/components/color-picker/color-picker.d.ts index 03dd21aff2..957b83ee5f 100644 --- a/src/core/components/color-picker/color-picker.d.ts +++ b/src/core/components/color-picker/color-picker.d.ts @@ -1,5 +1,9 @@ import { Dom7Array } from 'dom7'; -import Framework7, { CSSSelector, Framework7EventsClass, Framework7Plugin } from '../app/app-class.js'; +import Framework7, { + CSSSelector, + Framework7EventsClass, + Framework7Plugin, +} from '../app/app-class.js'; import { View } from '../view/view.js'; export namespace ColorPicker { @@ -47,15 +51,15 @@ export namespace ColorPicker { params: Parameters; /** Set new color. Value is the Color Picker Value object */ - setValue (value: ColorPickerValue): void; + setValue(value: ColorPickerValue): void; /** Returns current Color Picker value */ - getValue (): ColorPickerValue; + getValue(): ColorPickerValue; /** Open Color Picker */ - open (): void; + open(): void; /** Close Color Picker */ - close (): void; + close(): void; /** Destroy Color Picker instance and remove all events */ - destroy (): void; + destroy(): void; } interface Parameters { @@ -193,16 +197,16 @@ export namespace ColorPicker { interface AppMethods { colorPicker: { /** create ColorPicker instance */ - create (parameters: Parameters): ColorPicker; + create(parameters: Parameters): ColorPicker; /** destroy ColorPicker instance */ - destroy (el: HTMLElement | CSSSelector | ColorPicker): void; + destroy(el: HTMLElement | CSSSelector | ColorPicker): void; /** get ColorPicker instance by HTML element */ - get (el: HTMLElement | CSSSelector): ColorPicker; + get(el: HTMLElement | CSSSelector): ColorPicker; /** closes ColorPicker */ - close (el: HTMLElement | CSSSelector): ColorPicker; + close(el: HTMLElement | CSSSelector): ColorPicker; }; } interface AppParams { diff --git a/src/core/components/contacts-list/contacts-list.d.ts b/src/core/components/contacts-list/contacts-list.d.ts index dd409c54be..e3a31dc90f 100644 --- a/src/core/components/contacts-list/contacts-list.d.ts +++ b/src/core/components/contacts-list/contacts-list.d.ts @@ -1,9 +1,13 @@ -import Framework7, { CSSSelector, Framework7EventsClass, Framework7Plugin } from '../app/app-class.js'; +import Framework7, { + CSSSelector, + Framework7EventsClass, + Framework7Plugin, +} from '../app/app-class.js'; export namespace ContactsList { - interface AppMethods { } - interface AppParams { } - interface AppEvents { } + interface AppMethods {} + interface AppParams {} + interface AppEvents {} } declare const ContactsListComponent: Framework7Plugin; diff --git a/src/core/components/data-table/data-table.d.ts b/src/core/components/data-table/data-table.d.ts index ee863785bf..f63f6e6fae 100644 --- a/src/core/components/data-table/data-table.d.ts +++ b/src/core/components/data-table/data-table.d.ts @@ -1,5 +1,9 @@ import { Dom7Array } from 'dom7'; -import Framework7, { CSSSelector, Framework7EventsClass, Framework7Plugin } from '../app/app-class.js'; +import Framework7, { + CSSSelector, + Framework7EventsClass, + Framework7Plugin, +} from '../app/app-class.js'; export namespace DataTable { interface DataTable extends Framework7EventsClass { @@ -8,7 +12,7 @@ export namespace DataTable { /** Dom7 instance with Data table HTML element */ $el: Dom7Array; /** Destroy data table */ - destroy (): void; + destroy(): void; } interface Parameters { @@ -30,14 +34,14 @@ export namespace DataTable { interface AppMethods { dataTable: { /** create DataTable instance */ - create (parameters: Parameters): DataTable; + create(parameters: Parameters): DataTable; /** destroy DataTable instance */ - destroy (el: HTMLElement | CSSSelector | DataTable): void; + destroy(el: HTMLElement | CSSSelector | DataTable): void; /** get DataTable instance by HTML element */ - get (el: HTMLElement | CSSSelector): DataTable; + get(el: HTMLElement | CSSSelector): DataTable; }; } - interface AppParams { } + interface AppParams {} interface DomEvents { /** Event will be triggered data table sort changed */ 'datatable:sort': () => void; diff --git a/src/core/components/dialog/dialog.d.ts b/src/core/components/dialog/dialog.d.ts index b61d7cbf55..5aa19b52e0 100644 --- a/src/core/components/dialog/dialog.d.ts +++ b/src/core/components/dialog/dialog.d.ts @@ -1,5 +1,9 @@ import { Dom7Array } from 'dom7'; -import Framework7, { CSSSelector, Framework7EventsClass, Framework7Plugin } from '../app/app-class.js'; +import Framework7, { + CSSSelector, + Framework7EventsClass, + Framework7Plugin, +} from '../app/app-class.js'; export namespace Dialog { interface Dialog extends Framework7EventsClass { @@ -19,22 +23,22 @@ export namespace Dialog { opened: boolean; /** Open dialog */ - open (animate?: boolean): void; + open(animate?: boolean): void; /** Close dialog. */ - close (animate?: boolean): void; + close(animate?: boolean): void; /** Sets dialog progress when Dialog Progress shortcut in use */ - setProgress ( + setProgress( /** progressbar progress (from 0 to 100) */ progress: number, /** (in ms) - progressbar progress change duration */ duration?: number, ): void; /** Sets dialog's title */ - setTitle (title: string): void; + setTitle(title: string): void; /** Sets dialog's text */ - setText (text: string): void; + setText(text: string): void; /** Destroy dialog */ - destroy (): void; + destroy(): void; } interface DialogButton { @@ -114,33 +118,33 @@ export namespace Dialog { interface AppMethods { dialog: { /** create Dialog instance */ - create (parameters: Parameters): Dialog; + create(parameters: Parameters): Dialog; /** destroy Dialog instance */ - destroy (el: HTMLElement | CSSSelector | Dialog): void; + destroy(el: HTMLElement | CSSSelector | Dialog): void; /** get Dialog instance by HTML element */ - get (el?: HTMLElement | CSSSelector): Dialog; + get(el?: HTMLElement | CSSSelector): Dialog; /** opens Dialog */ - open (el?: HTMLElement | CSSSelector, animate?: boolean): Dialog; + open(el?: HTMLElement | CSSSelector, animate?: boolean): Dialog; /** closes Dialog */ - close (el?: HTMLElement | CSSSelector, animate?: boolean): Dialog; + close(el?: HTMLElement | CSSSelector, animate?: boolean): Dialog; /** create Alert Dialog and open it */ - alert (text: string, title: string, callback?: () => void): Dialog; + alert(text: string, title: string, callback?: () => void): Dialog; /** create Alert Dialog with default title and open it */ - alert (text: string, callback?: () => void): Dialog; + alert(text: string, callback?: () => void): Dialog; /** create Confirm Dialog and open it */ - confirm ( + confirm( text: string, title: string, callbackOk?: () => void, callbackCancel?: () => void, ): Dialog; /** create Confirm Dialog with default title and open it */ - confirm (text: string, callbackOk?: () => void, callbackCancel?: () => void): Dialog; + confirm(text: string, callbackOk?: () => void, callbackCancel?: () => void): Dialog; /** create Prompt Dialog and open it */ - prompt ( + prompt( text: string, title: string, callbackOk?: (value: string) => void, @@ -148,7 +152,7 @@ export namespace Dialog { defaultValue?: string, ): Dialog; /** create Prompt Dialog with default title and open it */ - prompt ( + prompt( text: string, callbackOk?: (value: string) => void, callbackCancel?: (value: string) => void, @@ -156,38 +160,38 @@ export namespace Dialog { ): Dialog; /** create Login Dialog and open it */ - login ( + login( text: string, title: string, callbackOk?: (username: string, password: string) => void, callbackCancel?: (username: string, password: string) => void, ): Dialog; /** create Login Dialog with default title and open it */ - login ( + login( text: string, callbackOk?: (username: string, password: string) => void, callbackCancel?: (username: string, password: string) => void, ): Dialog; /** create Password Dialog and open it */ - password ( + password( text: string, title: string, callbackOk?: (password: string) => void, callbackCancel?: (password: string) => void, ): Dialog; /** create Password Dialog with default title and open it */ - password ( + password( text: string, callbackOk?: (password: string) => void, callbackCancel?: (password: string) => void, ): Dialog; /** create Preloader Dialog and open it */ - preloader (title?: string, color?: string): Dialog; + preloader(title?: string, color?: string): Dialog; /** create Progress Dialog and open it */ - progress ( + progress( title?: string, /** Optional. Progressbar progress (from 0 to 100). If no number passed then it will have infinite progressbar. */ progress?: number, @@ -197,31 +201,31 @@ export namespace Dialog { } interface AppParams { dialog?: - | { - /** Default dialogs shortcuts title. If not specified, will be equal to app.name. */ - title?: string; - /** Default "OK" button text. (default OK) */ - buttonOk?: string; - /** Default "Cancel" button text. (default Cancel) */ - buttonCancel?: string; - /** Default username field placeholder in Login dialog. (default Username) */ - usernamePlaceholder?: string; - /** Default password field placeholder in Login & Password dialogs. (default Password) */ - passwordPlaceholder?: string; - /** Default title for Preloader dialog. (default Loading...) */ - preloaderTitle?: string; - /** Default title for Progress dialog. (default Loading...) */ - progressTitle?: string; - /** Will automatically destroy all predefined dialogs (Alert, Confirm, Prompt, etc.) on close. (default true) */ - destroyPredefinedDialogs?: boolean; - /** Enables keyboard shortcuts (Enter and Esc) keys for predefined dialogs (Alert, Confirm, Prompt, Login, Password) "Ok" and "Cancel" buttons. (default true) */ - keyboardActions?: boolean; - /** When enabled, dialog will be closed on backdrop click. (default true) */ - closeByBackdropClick?: boolean; - /** When enabled it will auto focus input in predefined dialogs (like .prompt(), .login() and .password()) */ - autoFocus?: boolean; - } - | undefined; + | { + /** Default dialogs shortcuts title. If not specified, will be equal to app.name. */ + title?: string; + /** Default "OK" button text. (default OK) */ + buttonOk?: string; + /** Default "Cancel" button text. (default Cancel) */ + buttonCancel?: string; + /** Default username field placeholder in Login dialog. (default Username) */ + usernamePlaceholder?: string; + /** Default password field placeholder in Login & Password dialogs. (default Password) */ + passwordPlaceholder?: string; + /** Default title for Preloader dialog. (default Loading...) */ + preloaderTitle?: string; + /** Default title for Progress dialog. (default Loading...) */ + progressTitle?: string; + /** Will automatically destroy all predefined dialogs (Alert, Confirm, Prompt, etc.) on close. (default true) */ + destroyPredefinedDialogs?: boolean; + /** Enables keyboard shortcuts (Enter and Esc) keys for predefined dialogs (Alert, Confirm, Prompt, Login, Password) "Ok" and "Cancel" buttons. (default true) */ + keyboardActions?: boolean; + /** When enabled, dialog will be closed on backdrop click. (default true) */ + closeByBackdropClick?: boolean; + /** When enabled it will auto focus input in predefined dialogs (like .prompt(), .login() and .password()) */ + autoFocus?: boolean; + } + | undefined; } interface AppEvents { /** Event will be triggered when Dialog starts its opening animation. As an argument event handler receives dialog instance */ diff --git a/src/core/components/elevation/elevation.d.ts b/src/core/components/elevation/elevation.d.ts index d2e26a61fa..56999d39c6 100644 --- a/src/core/components/elevation/elevation.d.ts +++ b/src/core/components/elevation/elevation.d.ts @@ -1,9 +1,13 @@ -import Framework7, { CSSSelector, Framework7EventsClass, Framework7Plugin } from '../app/app-class.js'; +import Framework7, { + CSSSelector, + Framework7EventsClass, + Framework7Plugin, +} from '../app/app-class.js'; export namespace Elevation { - interface AppMethods { } - interface AppParams { } - interface AppEvents { } + interface AppMethods {} + interface AppParams {} + interface AppEvents {} } declare const ElevationComponent: Framework7Plugin; diff --git a/src/core/components/fab/fab.d.ts b/src/core/components/fab/fab.d.ts index 595d4c7bf0..08a674b5c8 100644 --- a/src/core/components/fab/fab.d.ts +++ b/src/core/components/fab/fab.d.ts @@ -1,4 +1,8 @@ -import Framework7, { CSSSelector, Framework7EventsClass, Framework7Plugin } from '../app/app-class.js'; +import Framework7, { + CSSSelector, + Framework7EventsClass, + Framework7Plugin, +} from '../app/app-class.js'; export namespace Fab { interface DomEvents { @@ -12,15 +16,15 @@ export namespace Fab { /** currently opened FAB HTML Element */ openedEl: HTMLElement; /** Open FAB speed dial actions/buttons, or morph it to specified target */ - open (fabEl?: HTMLElement | CSSSelector, morphTargetEl?: HTMLElement | CSSSelector): void; + open(fabEl?: HTMLElement | CSSSelector, morphTargetEl?: HTMLElement | CSSSelector): void; /** Close FAB speed dial actions/buttons, or morph it back from specified target */ - close (fabEl?: HTMLElement | CSSSelector): void; + close(fabEl?: HTMLElement | CSSSelector): void; /** Toggle FAB speed dial actions/buttons */ - toggle (fabEl?: HTMLElement | CSSSelector): void; + toggle(fabEl?: HTMLElement | CSSSelector): void; }; } - interface AppParams { } - interface AppEvents { } + interface AppParams {} + interface AppEvents {} } declare const FabComponent: Framework7Plugin; diff --git a/src/core/components/form/form.d.ts b/src/core/components/form/form.d.ts index 25be05b673..e4b7b01b1c 100644 --- a/src/core/components/form/form.d.ts +++ b/src/core/components/form/form.d.ts @@ -1,4 +1,8 @@ -import Framework7, { CSSSelector, Framework7EventsClass, Framework7Plugin } from '../app/app-class.js'; +import Framework7, { + CSSSelector, + Framework7EventsClass, + Framework7Plugin, +} from '../app/app-class.js'; export namespace Form { interface DomEvents { @@ -22,20 +26,20 @@ export namespace Form { interface AppMethods { form: { /** convert form fields values to data object */ - convertToData (form: HTMLElement | CSSSelector): object; + convertToData(form: HTMLElement | CSSSelector): object; /** fill up form according to data object */ - fillFromData (form: HTMLElement | CSSSelector, data: object): void; + fillFromData(form: HTMLElement | CSSSelector, data: object): void; /** get form data for the form with specified id attribute */ - getFormData (formId: string): object; + getFormData(formId: string): object; /** store form data for the form with specified id attribute */ - storeFormData (formId: string, data: object): void; + storeFormData(formId: string, data: object): void; /** remove form data for the form with specified id attribute */ - removeFormData (formId: string): void; + removeFormData(formId: string): void; }; } - interface AppParams { } + interface AppParams {} interface AppEvents { /** Event will be triggered on form when calling app.form.convertToData */ formToData: (form: HTMLElement, data: object) => void; diff --git a/src/core/components/gauge/gauge.d.ts b/src/core/components/gauge/gauge.d.ts index 1fe946dfaf..3fc989b3d5 100644 --- a/src/core/components/gauge/gauge.d.ts +++ b/src/core/components/gauge/gauge.d.ts @@ -1,5 +1,9 @@ import { Dom7Array } from 'dom7'; -import Framework7, { CSSSelector, Framework7EventsClass, Framework7Plugin } from '../app/app-class.js'; +import Framework7, { + CSSSelector, + Framework7EventsClass, + Framework7Plugin, +} from '../app/app-class.js'; export namespace Gauge { interface Gauge extends Framework7EventsClass { @@ -17,9 +21,9 @@ export namespace Gauge { params: Parameters; /** Update/rerender gauge SVG element according to passed parameters. It accepts object with same parameters required for gauge initialization. You can pass only parameters that needs to be updated */ - update (parameters: Omit): Gauge; + update(parameters: Omit): Gauge; /** Destroys gauge instance */ - destroy (): void; + destroy(): void; } interface Parameters { @@ -73,13 +77,13 @@ export namespace Gauge { interface AppMethods { gauge: { /** create Gauge instance */ - create (parameters: Gauge.Parameters): Gauge; + create(parameters: Gauge.Parameters): Gauge; /** destroy Gauge instance */ - destroy (el: HTMLElement | CSSSelector | Gauge): void; + destroy(el: HTMLElement | CSSSelector | Gauge): void; /** get Gauge instance by HTML element */ - get (el: HTMLElement | CSSSelector): Gauge; + get(el: HTMLElement | CSSSelector): Gauge; /** update/rerender Gauge SVG according to passed parameters */ - update (parameters: Omit): Gauge; + update(parameters: Omit): Gauge; }; } interface AppParams { diff --git a/src/core/components/grid/grid.d.ts b/src/core/components/grid/grid.d.ts index 807530ad6b..f86ce02f16 100644 --- a/src/core/components/grid/grid.d.ts +++ b/src/core/components/grid/grid.d.ts @@ -1,8 +1,12 @@ -import Framework7, { CSSSelector, Framework7EventsClass, Framework7Plugin } from '../app/app-class.js'; +import Framework7, { + CSSSelector, + Framework7EventsClass, + Framework7Plugin, +} from '../app/app-class.js'; export namespace Grid { - interface AppMethods { } - interface AppParams { } + interface AppMethods {} + interface AppParams {} interface DomEvents { /** Event will be triggered on resizable grid column (or row) resize */ 'grid:resize': () => void; diff --git a/src/core/components/icon/icon.d.ts b/src/core/components/icon/icon.d.ts index 2c3857b34d..13b4671d9e 100644 --- a/src/core/components/icon/icon.d.ts +++ b/src/core/components/icon/icon.d.ts @@ -1,9 +1,13 @@ -import Framework7, { CSSSelector, Framework7EventsClass, Framework7Plugin } from '../app/app-class.js'; +import Framework7, { + CSSSelector, + Framework7EventsClass, + Framework7Plugin, +} from '../app/app-class.js'; export namespace Icon { - interface AppMethods { } - interface AppParams { } - interface AppEvents { } + interface AppMethods {} + interface AppParams {} + interface AppEvents {} } declare const IconComponent: Framework7Plugin; diff --git a/src/core/components/infinite-scroll/infinite-scroll.d.ts b/src/core/components/infinite-scroll/infinite-scroll.d.ts index 7b72b27525..b75bb1f019 100644 --- a/src/core/components/infinite-scroll/infinite-scroll.d.ts +++ b/src/core/components/infinite-scroll/infinite-scroll.d.ts @@ -1,4 +1,8 @@ -import Framework7, { CSSSelector, Framework7EventsClass, Framework7Plugin } from '../app/app-class.js'; +import Framework7, { + CSSSelector, + Framework7EventsClass, + Framework7Plugin, +} from '../app/app-class.js'; export namespace InfiniteScroll { interface DomEvents { @@ -8,12 +12,12 @@ export namespace InfiniteScroll { interface AppMethods { infiniteScroll: { /** Add infinite scroll event listener to the specified HTML element */ - create (el: HTMLElement | CSSSelector): void; + create(el: HTMLElement | CSSSelector): void; /** Remove infinite scroll event listener from the specified HTML container */ - destroy (el: HTMLElement | CSSSelector): void; + destroy(el: HTMLElement | CSSSelector): void; }; } - interface AppParams { } + interface AppParams {} interface AppEvents { infinite: (el: HTMLElement, event: Event) => void; } diff --git a/src/core/components/input/input.d.ts b/src/core/components/input/input.d.ts index 9522bd63a5..023298fb19 100644 --- a/src/core/components/input/input.d.ts +++ b/src/core/components/input/input.d.ts @@ -1,4 +1,8 @@ -import Framework7, { CSSSelector, Framework7EventsClass, Framework7Plugin } from '../app/app-class.js'; +import Framework7, { + CSSSelector, + Framework7EventsClass, + Framework7Plugin, +} from '../app/app-class.js'; export namespace Input { interface DomEvents { @@ -14,41 +18,41 @@ export namespace Input { interface AppMethods { input: { /** Scroll input into view */ - scrollIntoView ( + scrollIntoView( inputEl: HTMLElement | CSSSelector, durationMS?: number, centered?: boolean, force?: boolean, ): void; /** Will add additional required styles and classes on input like when it is focused*/ - focus (inputEl: HTMLElement | CSSSelector): void; + focus(inputEl: HTMLElement | CSSSelector): void; /** Will remove additional required styles and classes on input like when it loses focus */ - blur (inputEl: HTMLElement | CSSSelector): void; + blur(inputEl: HTMLElement | CSSSelector): void; /** Force resizable textarea to resize depending on its content */ - resizeTextarea (textareaEl: HTMLElement | CSSSelector): void; + resizeTextarea(textareaEl: HTMLElement | CSSSelector): void; /** Recalculate required additional styles and classes on input element based on whether it has value or not */ - checkEmptyState (inputEl: HTMLElement | CSSSelector): void; + checkEmptyState(inputEl: HTMLElement | CSSSelector): void; /** Validate input */ - validate (inputEl: HTMLElement | CSSSelector): boolean; + validate(inputEl: HTMLElement | CSSSelector): boolean; /** Validate all inputs in passed container */ - validateInputs (containerEl: HTMLElement | CSSSelector): boolean; + validateInputs(containerEl: HTMLElement | CSSSelector): boolean; }; } interface AppParams { input?: - | { - /** When enabled will scroll input into view on input focus. By default it is enabled for android devices only, as it helps to solve issue when on-screen keyboard may overlap the input. */ - scrollIntoViewOnFocus?: boolean; - /** Tweaks behavior of previous parameter to scroll input into the center of view on input focus. (default false) */ - scrollIntoViewCentered?: boolean; - /** Default duration for scrolling input into view. (default 0) */ - scrollIntoViewDuration?: number; - /** When enabled will scroll input into view no matter is it outside of view or not. (default false) */ - scrollIntoViewAlways?: boolean; - } - | undefined; + | { + /** When enabled will scroll input into view on input focus. By default it is enabled for android devices only, as it helps to solve issue when on-screen keyboard may overlap the input. */ + scrollIntoViewOnFocus?: boolean; + /** Tweaks behavior of previous parameter to scroll input into the center of view on input focus. (default false) */ + scrollIntoViewCentered?: boolean; + /** Default duration for scrolling input into view. (default 0) */ + scrollIntoViewDuration?: number; + /** When enabled will scroll input into view no matter is it outside of view or not. (default false) */ + scrollIntoViewAlways?: boolean; + } + | undefined; } - interface AppEvents { } + interface AppEvents {} } declare const InputComponent: Framework7Plugin; diff --git a/src/core/components/lazy/lazy.d.ts b/src/core/components/lazy/lazy.d.ts index 6da15264ac..8387d79758 100644 --- a/src/core/components/lazy/lazy.d.ts +++ b/src/core/components/lazy/lazy.d.ts @@ -1,4 +1,8 @@ -import Framework7, { CSSSelector, Framework7EventsClass, Framework7Plugin } from '../app/app-class.js'; +import Framework7, { + CSSSelector, + Framework7EventsClass, + Framework7Plugin, +} from '../app/app-class.js'; export namespace Lazy { interface DomEvents { @@ -12,11 +16,11 @@ export namespace Lazy { interface AppMethods { lazy: { /** initialize lazy loading on page */ - create (pageEl: HTMLElement | CSSSelector): void; + create(pageEl: HTMLElement | CSSSelector): void; /** destroy/disable lazy loading on page */ - destroy (pageEl: HTMLElement | CSSSelector): void; + destroy(pageEl: HTMLElement | CSSSelector): void; /** force to load lazy image */ - loadImage ( + loadImage( /** lazy image or element (element with lazy class). Required. */ pageEl: HTMLElement | CSSSelector, /** Callback when image is loaded or error loading image happend */ @@ -26,17 +30,17 @@ export namespace Lazy { } interface AppParams { lazy?: - | { - /** Lazy load image placeholder source to show while image is not yet loaded. By default it is 1x1 px image. */ - placeholder?: string; - /** By default images are loaded when they appear on the screen. Use this parameter if you want to load images earlier. Setting it to 50 will load image when it 50 pixels before it appears on viewport. (default 0) */ - threshold?: number; - /** If enabled, then lazy images will be loaded one by one when they appear in viewport. (default true) */ - sequential?: boolean; - /** When enabled, it uses IntersectionObserver API (if supported by browser) to detect when image is in viewport. Potentially provides better performance and more accurate intersection detection, but "threshold" parameter will be ignored. (default true) */ - observer?: boolean; - } - | undefined; + | { + /** Lazy load image placeholder source to show while image is not yet loaded. By default it is 1x1 px image. */ + placeholder?: string; + /** By default images are loaded when they appear on the screen. Use this parameter if you want to load images earlier. Setting it to 50 will load image when it 50 pixels before it appears on viewport. (default 0) */ + threshold?: number; + /** If enabled, then lazy images will be loaded one by one when they appear in viewport. (default true) */ + sequential?: boolean; + /** When enabled, it uses IntersectionObserver API (if supported by browser) to detect when image is in viewport. Potentially provides better performance and more accurate intersection detection, but "threshold" parameter will be ignored. (default true) */ + observer?: boolean; + } + | undefined; } interface AppEvents { /** Event will be triggered in the beginning of image file loading. As an argument it receives lazy loading HTML element. */ diff --git a/src/core/components/link/link.d.ts b/src/core/components/link/link.d.ts index bf6ac4715e..bb32f20848 100644 --- a/src/core/components/link/link.d.ts +++ b/src/core/components/link/link.d.ts @@ -1,9 +1,13 @@ -import Framework7, { CSSSelector, Framework7EventsClass, Framework7Plugin } from '../app/app-class.js'; +import Framework7, { + CSSSelector, + Framework7EventsClass, + Framework7Plugin, +} from '../app/app-class.js'; export namespace Link { - interface AppMethods { } - interface AppParams { } - interface AppEvents { } + interface AppMethods {} + interface AppParams {} + interface AppEvents {} } declare const LinkComponent: Framework7Plugin; diff --git a/src/core/components/list-index/list-index.d.ts b/src/core/components/list-index/list-index.d.ts index bcffe26b94..c0856fd18a 100644 --- a/src/core/components/list-index/list-index.d.ts +++ b/src/core/components/list-index/list-index.d.ts @@ -1,5 +1,9 @@ import { Dom7Array } from 'dom7'; -import Framework7, { CSSSelector, Framework7EventsClass, Framework7Plugin } from '../app/app-class.js'; +import Framework7, { + CSSSelector, + Framework7EventsClass, + Framework7Plugin, +} from '../app/app-class.js'; export namespace ListIndex { interface ListIndex extends Framework7EventsClass { @@ -23,11 +27,11 @@ export namespace ListIndex { params: Parameters; /** Recalculates indexes, sizes and rerenders list index */ - update (): ListIndex; + update(): ListIndex; /** Scrolls related list to specified index content */ - scrollToList (itemContent: string): ListIndex; + scrollToList(itemContent: string): ListIndex; /** Destroys list index instance */ - destroy (): void; + destroy(): void; } interface Parameters { @@ -55,11 +59,11 @@ export namespace ListIndex { interface Events { /** Event will be triggered on index select rather by click or swiping. As an argument event handler receives list index instance and selected index item content */ - select (listIndex: ListIndex, itemContent: string, itemIndex: number): void; + select(listIndex: ListIndex, itemContent: string, itemIndex: number): void; /** Event will be triggered on index click. As an argument event handler receives list index instance and clicked index item content */ - click (listIndex: ListIndex, itemContent: string, itemIndex: number): void; + click(listIndex: ListIndex, itemContent: string, itemIndex: number): void; /** Event will be triggered right before List Index instance will be destroyed. As an argument event handler receives list index instance */ - beforeDestroy (listIndex: ListIndex): void; + beforeDestroy(listIndex: ListIndex): void; } interface DomEvents { @@ -74,11 +78,11 @@ export namespace ListIndex { interface AppMethods { listIndex: { /** create ListIndex instance */ - create (parameters: Parameters): ListIndex; + create(parameters: Parameters): ListIndex; /** destroy ListIndex instance */ - destroy (el: HTMLElement | CSSSelector | ListIndex): void; + destroy(el: HTMLElement | CSSSelector | ListIndex): void; /** get ListIndex instance by HTML element */ - get (el: HTMLElement | CSSSelector): ListIndex; + get(el: HTMLElement | CSSSelector): ListIndex; }; } interface AppParams { @@ -86,11 +90,11 @@ export namespace ListIndex { } interface AppEvents { /** Event will be triggered on index select rather by click or swiping. As an argument event handler receives list index instance and selected index item content */ - listIndexSelect (listIndex: ListIndex, itemContent: string, itemIndex: number): void; + listIndexSelect(listIndex: ListIndex, itemContent: string, itemIndex: number): void; /** Event will be triggered on index click. As an argument event handler receives list index instance and clicked index item content */ - listIndexClick (listIndex: ListIndex, itemContent: string, itemIndex: number): void; + listIndexClick(listIndex: ListIndex, itemContent: string, itemIndex: number): void; /** Event will be triggered right before List Index instance will be destroyed. As an argument event handler receives list index instance */ - listIndexBeforeDestroy (listIndex: ListIndex): void; + listIndexBeforeDestroy(listIndex: ListIndex): void; } } diff --git a/src/core/components/list/list.d.ts b/src/core/components/list/list.d.ts index 44b9992005..b118fe5590 100644 --- a/src/core/components/list/list.d.ts +++ b/src/core/components/list/list.d.ts @@ -1,9 +1,13 @@ -import Framework7, { CSSSelector, Framework7EventsClass, Framework7Plugin } from '../app/app-class.js'; +import Framework7, { + CSSSelector, + Framework7EventsClass, + Framework7Plugin, +} from '../app/app-class.js'; export namespace List { - interface AppMethods { } - interface AppParams { } - interface AppEvents { } + interface AppMethods {} + interface AppParams {} + interface AppEvents {} } declare const ListComponent: Framework7Plugin; diff --git a/src/core/components/login-screen/login-screen.d.ts b/src/core/components/login-screen/login-screen.d.ts index dd8f9189b5..83fd8ffeae 100644 --- a/src/core/components/login-screen/login-screen.d.ts +++ b/src/core/components/login-screen/login-screen.d.ts @@ -1,5 +1,9 @@ import { Dom7Array } from 'dom7'; -import Framework7, { CSSSelector, Framework7EventsClass, Framework7Plugin } from '../app/app-class.js'; +import Framework7, { + CSSSelector, + Framework7EventsClass, + Framework7Plugin, +} from '../app/app-class.js'; export namespace LoginScreen { interface LoginScreen extends Framework7EventsClass { @@ -15,11 +19,11 @@ export namespace LoginScreen { opened: boolean; /** Open login screen. Where */ - open (animate?: boolean): LoginScreen; + open(animate?: boolean): LoginScreen; /** Close login screen. Where */ - close (animate?: boolean): LoginScreen; + close(animate?: boolean): LoginScreen; /** Destroy login screen */ - destroy (): void; + destroy(): void; } interface Parameters { @@ -62,15 +66,15 @@ export namespace LoginScreen { interface AppMethods { loginScreen: { /** create LoginScreen instance */ - create (parameters: Parameters): LoginScreen; + create(parameters: Parameters): LoginScreen; /** destroy LoginScreen instance */ - destroy (el: HTMLElement | CSSSelector | LoginScreen): void; + destroy(el: HTMLElement | CSSSelector | LoginScreen): void; /** get LoginScreen instance by HTML element */ - get (el?: HTMLElement | CSSSelector): LoginScreen; + get(el?: HTMLElement | CSSSelector): LoginScreen; /** open LoginScreen */ - open (el?: HTMLElement | CSSSelector, animate?: boolean): LoginScreen; + open(el?: HTMLElement | CSSSelector, animate?: boolean): LoginScreen; /** closes LoginScreen */ - close (el?: HTMLElement | CSSSelector, animate?: boolean): LoginScreen; + close(el?: HTMLElement | CSSSelector, animate?: boolean): LoginScreen; }; } interface AppParams { diff --git a/src/core/components/menu/menu.d.ts b/src/core/components/menu/menu.d.ts index 8b1d4e8bd0..75d49fc417 100644 --- a/src/core/components/menu/menu.d.ts +++ b/src/core/components/menu/menu.d.ts @@ -1,4 +1,8 @@ -import Framework7, { CSSSelector, Framework7EventsClass, Framework7Plugin } from '../app/app-class.js'; +import Framework7, { + CSSSelector, + Framework7EventsClass, + Framework7Plugin, +} from '../app/app-class.js'; export namespace Menu { interface DomEvents { @@ -10,12 +14,12 @@ export namespace Menu { interface AppMethods { menu: { /** open Menu dropdown */ - open (el?: HTMLElement | CSSSelector): void; + open(el?: HTMLElement | CSSSelector): void; /** close Menu dropdown */ - close (el?: HTMLElement | CSSSelector): void; + close(el?: HTMLElement | CSSSelector): void; }; } - interface AppParams { } + interface AppParams {} interface AppEvents { /** Event will be triggered right after menu dropdown will be opened. As an argument event handler receives menu dropdown item element */ menuOpened: (el: HTMLElement) => void; diff --git a/src/core/components/messagebar/messagebar.d.ts b/src/core/components/messagebar/messagebar.d.ts index e18bbe0ad1..26e4b78cc3 100644 --- a/src/core/components/messagebar/messagebar.d.ts +++ b/src/core/components/messagebar/messagebar.d.ts @@ -1,5 +1,9 @@ import { Dom7Array } from 'dom7'; -import Framework7, { CSSSelector, Framework7EventsClass, Framework7Plugin } from '../app/app-class.js'; +import Framework7, { + CSSSelector, + Framework7EventsClass, + Framework7Plugin, +} from '../app/app-class.js'; export namespace Messagebar { interface Messagebar extends Framework7EventsClass { @@ -17,39 +21,39 @@ export namespace Messagebar { attachments: string[]; /** Get messagebar textarea value */ - getValue (): string; + getValue(): string; /** Set messagebar textarea value/text */ - setValue (value: string): Messagebar; + setValue(value: string): Messagebar; /** Clear textarea and update/reset its size */ - clear (): Messagebar; + clear(): Messagebar; /** Focus messagebar textarea */ - focus (): Messagebar; + focus(): Messagebar; /** Remove focus from messagebar textarea */ - blur (): Messagebar; + blur(): Messagebar; /** Set/change messagebar placeholder text */ - setPlaceholder (placeholder: string): Messagebar; + setPlaceholder(placeholder: string): Messagebar; /** Force Messagebar to resize messages page depending on messagebar height/size */ - resizePage (): Messagebar; + resizePage(): Messagebar; /** Dynamically create attachments block HTML element */ - attachmentsCreate (): Messagebar; + attachmentsCreate(): Messagebar; /** Show attachments block */ - attachmentsShow (): Messagebar; + attachmentsShow(): Messagebar; /** Hide attachments block */ - attachmentsHide (): Messagebar; + attachmentsHide(): Messagebar; /** Toggle attachments block */ - attachmentsToggle (): Messagebar; + attachmentsToggle(): Messagebar; /** Render attachments block based on attachments data */ - renderAttachments (): Messagebar; + renderAttachments(): Messagebar; /** Dynamically create messagebar sheet block HTML element */ - sheetCreate (): Messagebar; + sheetCreate(): Messagebar; /** Show messagebar sheet */ - sheetShow (): Messagebar; + sheetShow(): Messagebar; /** Hide messagebar sheet */ - sheetHide (): Messagebar; + sheetHide(): Messagebar; /** Toggle messagebar sheet */ - sheetToggle (): Messagebar; + sheetToggle(): Messagebar; /** Destroy messagebar instance */ - destroy (): void; + destroy(): void; } interface Parameters { @@ -76,27 +80,27 @@ export namespace Messagebar { interface Events { /** Event will be triggered after messagebar textarea value changed. As an argument event handler receives messagebar instance */ - change (messagebar: Messagebar): void; + change(messagebar: Messagebar): void; /** Event will be triggered when messagebar textarea gets focus. As an argument event handler receives messagebar instance */ - focus (messagebar: Messagebar): void; + focus(messagebar: Messagebar): void; /** Event will be triggered when messagebar textarea loses focus. As an argument event handler receives messagebar instance */ - blur (messagebar: Messagebar): void; + blur(messagebar: Messagebar): void; /** Event will be triggered when messagebar resizes messages page. As an argument event handler receives messagebar instance */ - resizePage (messagebar: Messagebar): void; + resizePage(messagebar: Messagebar): void; /** Event will be triggered after click on messagebar attachment delete button. As an argument event handler receives messagebar instance, clicked attachment HTML element and attachment index number */ - attachmentDelete ( + attachmentDelete( messagebar: Messagebar, attachmentEl: HTMLElement, attachmentIndex: number, ): void; /** Event will be triggered on messagebar attachment click. As an argument event handler receives messagebar instance, clicked attachment HTML element and attachment index number */ - attachmentClick ( + attachmentClick( messagebar: Messagebar, attachmentEl: HTMLElement, attachmentIndex: number, ): void; /** Event will be triggered right before Messagebar instance will be destroyed */ - beforeDestroy (messagebar: Messagebar): void; + beforeDestroy(messagebar: Messagebar): void; } interface DomEvents { @@ -118,13 +122,13 @@ export namespace Messagebar { interface AppMethods { messagebar: { /** create Messagebar instance */ - create (parameters: Parameters): Messagebar; + create(parameters: Parameters): Messagebar; /** destroy Messagebar instance */ - destroy (el: HTMLElement | CSSSelector | Messagebar): void; + destroy(el: HTMLElement | CSSSelector | Messagebar): void; /** get Messagebar instance by HTML element */ - get (el: HTMLElement | CSSSelector): Messagebar; + get(el: HTMLElement | CSSSelector): Messagebar; }; } interface AppParams { @@ -132,27 +136,27 @@ export namespace Messagebar { } interface AppEvents { /** Event will be triggered after messagebar textarea value changed. As an argument event handler receives messagebar instance */ - messagebarChange (messagebar: Messagebar): void; + messagebarChange(messagebar: Messagebar): void; /** Event will be triggered when messagebar textarea gets focus. As an argument event handler receives messagebar instance */ - messagebarFocus (messagebar: Messagebar): void; + messagebarFocus(messagebar: Messagebar): void; /** Event will be triggered when messagebar textarea loses focus. As an argument event handler receives messagebar instance */ - messagebarBlur (messagebar: Messagebar): void; + messagebarBlur(messagebar: Messagebar): void; /** Event will be triggered when messagebar resizes messages page. As an argument event handler receives messagebar instance */ - messagebarResizePage (messagebar: Messagebar): void; + messagebarResizePage(messagebar: Messagebar): void; /** Event will be triggered after click on messagebar attachment delete button. As an argument event handler receives messagebar instance, clicked attachment HTML element and attachment index number */ - messagebarAttachmentDelete ( + messagebarAttachmentDelete( messagebar: Messagebar, attachmentEl: HTMLElement, attachmentIndex: number, ): void; /** Event will be triggered on messagebar attachment click. As an argument event handler receives messagebar instance, clicked attachment HTML element and attachment index number */ - messagebarAttachmentClick ( + messagebarAttachmentClick( messagebar: Messagebar, attachmentEl: HTMLElement, attachmentIndex: number, ): void; /** Event will be triggered right before Messagebar instance will be destroyed */ - messagebarBeforeDestroy (messagebar: Messagebar): void; + messagebarBeforeDestroy(messagebar: Messagebar): void; } } diff --git a/src/core/components/messages/messages.d.ts b/src/core/components/messages/messages.d.ts index f463d84d7a..11e52920d4 100644 --- a/src/core/components/messages/messages.d.ts +++ b/src/core/components/messages/messages.d.ts @@ -1,5 +1,9 @@ import { Dom7Array } from 'dom7'; -import Framework7, { CSSSelector, Framework7EventsClass, Framework7Plugin } from '../app/app-class.js'; +import Framework7, { + CSSSelector, + Framework7EventsClass, + Framework7Plugin, +} from '../app/app-class.js'; export namespace Messages { interface Messages extends Framework7EventsClass { @@ -13,27 +17,27 @@ export namespace Messages { messages: Message[]; /** Show typing message indicator */ - showTyping (message: Message): void; + showTyping(message: Message): void; /** Hide typing message indicator */ - hideTyping (): void; + hideTyping(): void; /** Add new message to the end or to the beginning depending on method parameter */ - addMessage (message: Message, method: 'append' | 'prepend', animate?: boolean): Messages; + addMessage(message: Message, method: 'append' | 'prepend', animate?: boolean): Messages; /** Add multiple messages per once. */ - addMessages (messages: Message[], method: 'append' | 'prepend', animate?: boolean): Messages; + addMessages(messages: Message[], method: 'append' | 'prepend', animate?: boolean): Messages; /** Remove message */ - removeMessage (message: Message): Messages; + removeMessage(message: Message): Messages; /** Remove multiple messages */ - removeMessages (messages: Message[]): Messages; + removeMessages(messages: Message[]): Messages; /** Scroll messages to top/bottom depending on newMessagesFirst parameter */ - scroll (durationMS: number, position: number): Messages; + scroll(durationMS: number, position: number): Messages; /** Render messages HTML depending on messages array */ - renderMessages (): Messages; + renderMessages(): Messages; /** Force messages auto layout */ - layout (): Messages; + layout(): Messages; /** Clear/remove all the messages */ - clear (): Messages; + clear(): Messages; /** Destroy messages instance */ - destroy (): void; + destroy(): void; } interface Message { @@ -124,7 +128,7 @@ export namespace Messages { interface Events { /** Event will be triggered right before Messages instance will be destroyed */ - beforeDestroy (messages: Messages): void; + beforeDestroy(messages: Messages): void; } interface DomEvents { @@ -135,13 +139,13 @@ export namespace Messages { interface AppMethods { messages: { /** create Messages instance */ - create (parameters: Parameters): Messages; + create(parameters: Parameters): Messages; /** destroy Messages instance */ - destroy (el: HTMLElement | CSSSelector | Messages): void; + destroy(el: HTMLElement | CSSSelector | Messages): void; /** get Messages instance by HTML element */ - get (el: HTMLElement | CSSSelector): Messages; + get(el: HTMLElement | CSSSelector): Messages; }; } interface AppParams { @@ -149,7 +153,7 @@ export namespace Messages { } interface AppEvents { /** Event will be triggered right before Messages instance will be destroyed */ - messagesBeforeDestroy (messages: Messages): void; + messagesBeforeDestroy(messages: Messages): void; } } diff --git a/src/core/components/modal/modal.d.ts b/src/core/components/modal/modal.d.ts index 569038a7c9..48ab8b6d4b 100644 --- a/src/core/components/modal/modal.d.ts +++ b/src/core/components/modal/modal.d.ts @@ -1,5 +1,9 @@ import { Dom7Array } from 'dom7'; -import Framework7, { CSSSelector, Framework7EventsClass, Framework7Plugin } from '../app/app-class.js'; +import Framework7, { + CSSSelector, + Framework7EventsClass, + Framework7Plugin, +} from '../app/app-class.js'; export namespace Modal { interface Modal extends Framework7EventsClass { @@ -19,11 +23,11 @@ export namespace Modal { opened: boolean; /** Open modal */ - open (animate: boolean): Modal; + open(animate: boolean): Modal; /** Close modal. */ - close (animate: boolean): Modal; + close(animate: boolean): Modal; /** Destroy modal */ - destroy (): void; + destroy(): void; } interface Parameters { /** Modal element. Can be useful if you already have Modal element in your HTML and want to create new instance using this element. */ @@ -55,10 +59,10 @@ export namespace Modal { interface AppMethods { customModal: { /** Creates Custom modal */ - create (parameters: Parameters): Modal; + create(parameters: Parameters): Modal; }; } - interface AppParams { } + interface AppParams {} interface AppEvents { /** Event will be triggered when Modal starts its opening animation. As an argument event handler receives modal instance */ customModalOpen: (modal: Modal) => void; diff --git a/src/core/components/navbar/navbar.d.ts b/src/core/components/navbar/navbar.d.ts index 39ae2bf144..cf8419797b 100644 --- a/src/core/components/navbar/navbar.d.ts +++ b/src/core/components/navbar/navbar.d.ts @@ -1,51 +1,55 @@ -import Framework7, { CSSSelector, Framework7EventsClass, Framework7Plugin } from '../app/app-class.js'; +import Framework7, { + CSSSelector, + Framework7EventsClass, + Framework7Plugin, +} from '../app/app-class.js'; export namespace Navbar { interface AppMethods { navbar: { /** Hide navbar */ - hide (navbarEl: HTMLElement | CSSSelector, animate?: boolean, hideStatusbar?: boolean): void; + hide(navbarEl: HTMLElement | CSSSelector, animate?: boolean, hideStatusbar?: boolean): void; /** Show navbar */ - show (navbarEl: HTMLElement | CSSSelector, animate?: boolean): void; + show(navbarEl: HTMLElement | CSSSelector, animate?: boolean): void; /** Recalculate positional styles for Navbar elements. It could be useful after you change some of Navbar elements dynamically. This will have effect only in iOS theme */ - size (navbarEl: HTMLElement | CSSSelector): void; + size(navbarEl: HTMLElement | CSSSelector): void; /** Get navbar HTML element by specified page element. Useful only when dynamic navbar is enabled. In this case it is out of the page container. This will have effect only in iOS theme */ - getElByPage (pageEl: HTMLElement | CSSSelector): HTMLElement; + getElByPage(pageEl: HTMLElement | CSSSelector): HTMLElement; /** Get page HTML element by specified Navbar element. Useful only when dynamic navbar is enabled. In this case it is out of the page container. This will have effect only in iOS theme */ - getPageByEl (navbarEl: HTMLElement | CSSSelector): HTMLElement; + getPageByEl(navbarEl: HTMLElement | CSSSelector): HTMLElement; /** Collapse large navbar title */ - collapseLargeTitle (navbarEl: HTMLElement | CSSSelector): void; + collapseLargeTitle(navbarEl: HTMLElement | CSSSelector): void; /** Expand large navbar title */ - expandLargeTitle (navbarEl: HTMLElement | CSSSelector): void; + expandLargeTitle(navbarEl: HTMLElement | CSSSelector): void; /** Toggle large navbar title */ - toggleLargeTitle (navbarEl: HTMLElement | CSSSelector): void; + toggleLargeTitle(navbarEl: HTMLElement | CSSSelector): void; }; } interface AppParams { navbar?: - | { - /** Will hide Navbars on page scroll. (default false) */ - hideOnPageScroll?: boolean; - /** Set to true to show hidden Navbar when scrolling reaches end of the page. (default true) */ - showOnPageScrollEnd?: boolean; - /** Set to false and hidden Navbar will not become visible when you scroll page to top everytime. They will become visible only at the most top scroll position, in the beginning of the page. (default true) */ - showOnPageScrollTop?: boolean; - /** When enabled then every click on navbar's title element will scroll related page to the top. (default true) */ - scrollTopOnTitleClick?: boolean; - /** When enabled then it will position title at the center in iOS theme. This will have effect only in iOS theme. (default true) */ - iosCenterTitle?: boolean; - /** When enabled then it will position title at the center in MD theme. This will have effect only in MD theme. (default false) */ - mdCenterTitle?: boolean; - /** When enabled then it will position title at the center in Aurora theme. This will have effect only in Aurora theme. (default true) */ - auroraCenterTitle?: boolean; - /** When enabled it will collapse large title on page scroll (default true) */ - collapseLargeTitleOnScroll?: boolean; - /** When enabled it will snap page scroll to large title (default true) */ - snapPageScrollToLargeTitle?: boolean; - /** When enabled it will snap page scroll to transparent title (default true) */ - snapPageScrollToTransparentNavbar?: boolean; - } - | undefined; + | { + /** Will hide Navbars on page scroll. (default false) */ + hideOnPageScroll?: boolean; + /** Set to true to show hidden Navbar when scrolling reaches end of the page. (default true) */ + showOnPageScrollEnd?: boolean; + /** Set to false and hidden Navbar will not become visible when you scroll page to top everytime. They will become visible only at the most top scroll position, in the beginning of the page. (default true) */ + showOnPageScrollTop?: boolean; + /** When enabled then every click on navbar's title element will scroll related page to the top. (default true) */ + scrollTopOnTitleClick?: boolean; + /** When enabled then it will position title at the center in iOS theme. This will have effect only in iOS theme. (default true) */ + iosCenterTitle?: boolean; + /** When enabled then it will position title at the center in MD theme. This will have effect only in MD theme. (default false) */ + mdCenterTitle?: boolean; + /** When enabled then it will position title at the center in Aurora theme. This will have effect only in Aurora theme. (default true) */ + auroraCenterTitle?: boolean; + /** When enabled it will collapse large title on page scroll (default true) */ + collapseLargeTitleOnScroll?: boolean; + /** When enabled it will snap page scroll to large title (default true) */ + snapPageScrollToLargeTitle?: boolean; + /** When enabled it will snap page scroll to transparent title (default true) */ + snapPageScrollToTransparentNavbar?: boolean; + } + | undefined; } interface DomEvents { diff --git a/src/core/components/notification/notification.d.ts b/src/core/components/notification/notification.d.ts index 1ba820fbc3..ceaaeae0c5 100644 --- a/src/core/components/notification/notification.d.ts +++ b/src/core/components/notification/notification.d.ts @@ -1,5 +1,9 @@ import { Dom7Array } from 'dom7'; -import Framework7, { CSSSelector, Framework7EventsClass, Framework7Plugin } from '../app/app-class.js'; +import Framework7, { + CSSSelector, + Framework7EventsClass, + Framework7Plugin, +} from '../app/app-class.js'; export namespace Notification { interface Notification extends Framework7EventsClass { @@ -13,9 +17,9 @@ export namespace Notification { params: Parameters; /** Open notification */ - open (animate?: boolean): Notification; + open(animate?: boolean): Notification; /** Close notification */ - close (animate?: boolean): Notification; + close(animate?: boolean): Notification; } interface Parameters { @@ -79,19 +83,19 @@ export namespace Notification { interface AppMethods { notification: { /** create Notification instance */ - create (parameters: Parameters): Notification; + create(parameters: Parameters): Notification; /** destroy Notification instance */ - destroy (el: HTMLElement | CSSSelector | Notification): void; + destroy(el: HTMLElement | CSSSelector | Notification): void; /** get Notification instance by HTML element */ - get (el: HTMLElement | CSSSelector): Notification; + get(el: HTMLElement | CSSSelector): Notification; /** open Notification */ - open (el: HTMLElement | CSSSelector, animate?: boolean): Notification; + open(el: HTMLElement | CSSSelector, animate?: boolean): Notification; /** closes Notification */ - close (el: HTMLElement | CSSSelector, animate?: boolean): Notification; + close(el: HTMLElement | CSSSelector, animate?: boolean): Notification; }; } interface AppParams { diff --git a/src/core/components/page/page.d.ts b/src/core/components/page/page.d.ts index c3dcbd4298..cc702938f5 100644 --- a/src/core/components/page/page.d.ts +++ b/src/core/components/page/page.d.ts @@ -1,9 +1,13 @@ -import Framework7, { CSSSelector, Framework7EventsClass, Framework7Plugin } from '../app/app-class.js'; +import Framework7, { + CSSSelector, + Framework7EventsClass, + Framework7Plugin, +} from '../app/app-class.js'; export namespace Page { - interface AppMethods { } - interface AppParams { } - interface AppEvents { } + interface AppMethods {} + interface AppParams {} + interface AppEvents {} } declare const PageComponent: Framework7Plugin; diff --git a/src/core/components/panel/panel.d.ts b/src/core/components/panel/panel.d.ts index b59d265e39..56bbe28a21 100644 --- a/src/core/components/panel/panel.d.ts +++ b/src/core/components/panel/panel.d.ts @@ -1,5 +1,9 @@ import { Dom7Array } from 'dom7'; -import Framework7, { CSSSelector, Framework7EventsClass, Framework7Plugin } from '../app/app-class.js'; +import Framework7, { + CSSSelector, + Framework7EventsClass, + Framework7Plugin, +} from '../app/app-class.js'; export namespace Panel { interface Events { @@ -86,37 +90,37 @@ export namespace Panel { $containerEl: Dom7Array; /** Open panel. */ - open (animate: boolean): void; + open(animate: boolean): void; /** Close panel. */ - close (animate: boolean): void; + close(animate: boolean): void; /** Toggle panel */ - toggle (animate: boolean): void; + toggle(animate: boolean): void; /** Destroy panel instance */ - destroy (): void; + destroy(): void; /** Enable visible breakpoint */ - enableVisibleBreakpoint (): void; + enableVisibleBreakpoint(): void; /** Disable visible breakpoint */ - disableVisibleBreakpoint (): void; + disableVisibleBreakpoint(): void; /** Toggle visible breakpoint */ - toggleVisibleBreakpoint (): void; + toggleVisibleBreakpoint(): void; /** Enable collapsed breakpoint */ - enableCollapsedBreakpoint (): void; + enableCollapsedBreakpoint(): void; /** Disable collapsed breakpoint */ - disableCollapsedBreakpoint (): void; + disableCollapsedBreakpoint(): void; /** Toggle collapsed breakpoint */ - toggleCollapsedBreakpoint (): void; + toggleCollapsedBreakpoint(): void; /** Enable resizable panel */ - enableResizable (): void; + enableResizable(): void; /** Disable resizable panel */ - disableResizable (): void; + disableResizable(): void; /** Enable swipeable panel */ - enableSwipe (): void; + enableSwipe(): void; /** Disable swipeable panel */ - disableSwipe (): void; + disableSwipe(): void; } interface DomEvents { @@ -147,17 +151,17 @@ export namespace Panel { interface AppMethods { panel: { /** create new panel instance */ - create (parameters: Parameters): Panel; + create(parameters: Parameters): Panel; /** open panel */ - open (el?: HTMLElement | CSSSelector | Panel | 'left' | 'right', animate?: boolean): boolean; + open(el?: HTMLElement | CSSSelector | Panel | 'left' | 'right', animate?: boolean): boolean; /** close panel */ - close (el?: HTMLElement | CSSSelector | Panel | 'left' | 'right', animate?: boolean): boolean; + close(el?: HTMLElement | CSSSelector | Panel | 'left' | 'right', animate?: boolean): boolean; /** toggle panel */ - toggle (el?: HTMLElement | CSSSelector | Panel | 'left' | 'right', animate?: boolean): boolean; + toggle(el?: HTMLElement | CSSSelector | Panel | 'left' | 'right', animate?: boolean): boolean; /** get Panel instance by specified side */ - get (el?: HTMLElement | CSSSelector | Panel | 'left' | 'right', animate?: boolean): Panel; + get(el?: HTMLElement | CSSSelector | Panel | 'left' | 'right', animate?: boolean): Panel; /** destroy Panel instance */ - destroy (el: HTMLElement | CSSSelector | Panel | 'left' | 'right'): void; + destroy(el: HTMLElement | CSSSelector | Panel | 'left' | 'right'): void; }; } interface AppParams { diff --git a/src/core/components/photo-browser/photo-browser.d.ts b/src/core/components/photo-browser/photo-browser.d.ts index 81a1a484bd..fa39ec739a 100644 --- a/src/core/components/photo-browser/photo-browser.d.ts +++ b/src/core/components/photo-browser/photo-browser.d.ts @@ -1,5 +1,9 @@ import { Dom7Array } from 'dom7'; -import Framework7, { CSSSelector, Framework7EventsClass, Framework7Plugin } from '../app/app-class.js'; +import Framework7, { + CSSSelector, + Framework7EventsClass, + Framework7Plugin, +} from '../app/app-class.js'; import { View } from '../view/view.js'; export namespace PhotoBrowser { @@ -95,17 +99,17 @@ export namespace PhotoBrowser { params: Parameters; /** Open Photo Browser on photo with index number equal to "index" parameter. If "index" parameter is not specified, it will be opened on last closed photo */ - open (index?: number): PhotoBrowser; + open(index?: number): PhotoBrowser; /** Close Photo Browser */ - close (): PhotoBrowser; + close(): PhotoBrowser; /** Toggle exposition mode */ - expositionToggle (): PhotoBrowser; + expositionToggle(): PhotoBrowser; /** Enable exposition mode */ - expositionEnable (): PhotoBrowser; + expositionEnable(): PhotoBrowser; /** Disable exposition mode */ - expositionDisable (): PhotoBrowser; + expositionDisable(): PhotoBrowser; /** Destroy Photo Browser */ - destroy (): void; + destroy(): void; } interface Events { /** Event will be fired when user close photo browser with swipe up/down */ @@ -165,11 +169,11 @@ export namespace PhotoBrowser { interface AppMethods { photoBrowser: { /** create Photo Browser instance */ - create (parameters: Parameters): PhotoBrowser; + create(parameters: Parameters): PhotoBrowser; /** destroy Photo Browser instance */ - destroy (el: HTMLElement | CSSSelector | PhotoBrowser): void; + destroy(el: HTMLElement | CSSSelector | PhotoBrowser): void; /** get Photo Browser instance by HTML element */ - get (el: HTMLElement | CSSSelector): PhotoBrowser; + get(el: HTMLElement | CSSSelector): PhotoBrowser; }; } interface AppParams { diff --git a/src/core/components/picker/picker.d.ts b/src/core/components/picker/picker.d.ts index 1be981aaca..0b3588d4de 100644 --- a/src/core/components/picker/picker.d.ts +++ b/src/core/components/picker/picker.d.ts @@ -1,5 +1,9 @@ import { Dom7Array } from 'dom7'; -import Framework7, { CSSSelector, Framework7EventsClass, Framework7Plugin } from '../app/app-class.js'; +import Framework7, { + CSSSelector, + Framework7EventsClass, + Framework7Plugin, +} from '../app/app-class.js'; import { View } from '../view/view.js'; export namespace Picker { @@ -33,15 +37,15 @@ export namespace Picker { /** Object with initialization parameters */ params: Parameters; /** Set new picker value. values is array where each item represents value for each column. duration - transition duration in ms */ - setValue (values: unknown[]): void; + setValue(values: unknown[]): void; /** Returns current picker value */ - getValue (): unknown; + getValue(): unknown; /** Open Picker */ - open (): void; + open(): void; /** Close Picker */ - close (): void; + close(): void; /** Destroy Picker instance and remove all events */ - destroy (): void; + destroy(): void; } interface Column { @@ -59,9 +63,9 @@ export namespace Picker { activeIndex: number; /** Set new value for current column. value is a new value, duration - transition duration in ms */ - setValue (value: unknown): void; + setValue(value: unknown): void; /** Replace column values and displayValues with new ones */ - replaceValues (values: unknown[], displayValues: unknown[]): void; + replaceValues(values: unknown[], displayValues: unknown[]): void; } interface ColumnParameters { @@ -170,13 +174,13 @@ export namespace Picker { interface AppMethods { picker: { /** create Picker instance */ - create (parameters: Parameters): Picker; + create(parameters: Parameters): Picker; /** destroy Picker instance */ - destroy (el: HTMLElement | CSSSelector | Picker): void; + destroy(el: HTMLElement | CSSSelector | Picker): void; /** get Picker instance by HTML element */ - get (el: HTMLElement | CSSSelector): Picker; + get(el: HTMLElement | CSSSelector): Picker; /** closes Picker */ - close (el: HTMLElement | CSSSelector): Picker; + close(el: HTMLElement | CSSSelector): Picker; }; } interface AppParams { diff --git a/src/core/components/pie-chart/pie-chart.d.ts b/src/core/components/pie-chart/pie-chart.d.ts index 14134e3f70..85bcf3cf80 100644 --- a/src/core/components/pie-chart/pie-chart.d.ts +++ b/src/core/components/pie-chart/pie-chart.d.ts @@ -1,5 +1,9 @@ import { Dom7Array } from 'dom7'; -import Framework7, { CSSSelector, Framework7EventsClass, Framework7Plugin } from '../app/app-class.js'; +import Framework7, { + CSSSelector, + Framework7EventsClass, + Framework7Plugin, +} from '../app/app-class.js'; export namespace PieChart { interface PieChart extends Framework7EventsClass { @@ -17,9 +21,9 @@ export namespace PieChart { params: Parameters; /** Update/rerender chart SVG element according to passed parameters. It accepts object with same parameters required for chart initialization. You can pass only parameters that needs to be updated */ - update (parameters: Parameters): PieChart; + update(parameters: Parameters): PieChart; /** Destroys chart instance */ - destroy (): void; + destroy(): void; } interface Dataset { @@ -70,13 +74,13 @@ export namespace PieChart { interface AppMethods { pieChart: { /** create Pie chart instance */ - create (parameters: Parameters): PieChart; + create(parameters: Parameters): PieChart; /** destroy Pie chart instance */ - destroy (el: HTMLElement | CSSSelector | PieChart): void; + destroy(el: HTMLElement | CSSSelector | PieChart): void; /** get Pie chart instance by HTML element */ - get (el: HTMLElement | CSSSelector): PieChart; + get(el: HTMLElement | CSSSelector): PieChart; /** update/rerender Pie chart SVG according to passed parameters */ - update (parameters: Parameters): PieChart; + update(parameters: Parameters): PieChart; }; } interface AppParams { diff --git a/src/core/components/popover/popover.d.ts b/src/core/components/popover/popover.d.ts index 3e03a9a294..d1848f0327 100644 --- a/src/core/components/popover/popover.d.ts +++ b/src/core/components/popover/popover.d.ts @@ -1,5 +1,9 @@ import { Dom7Array } from 'dom7'; -import Framework7, { CSSSelector, Framework7EventsClass, Framework7Plugin } from '../app/app-class.js'; +import Framework7, { + CSSSelector, + Framework7EventsClass, + Framework7Plugin, +} from '../app/app-class.js'; export namespace Popover { interface Events { @@ -73,12 +77,12 @@ export namespace Popover { opened: boolean; /** Open popover. */ - open (targetEl: HTMLElement | CSSSelector, animate?: boolean): Popover; - open (animate?: boolean): Popover; + open(targetEl: HTMLElement | CSSSelector, animate?: boolean): Popover; + open(animate?: boolean): Popover; /** Close popover. */ - close (animate?: boolean): Popover; + close(animate?: boolean): Popover; /** Destroy popover */ - destroy (): void; + destroy(): void; } interface DomEvents { /** Event will be triggered when Popover starts its opening animation */ @@ -94,19 +98,19 @@ export namespace Popover { interface AppMethods { popover: { /** create Popover instance */ - create (parameters: Parameters): Popover; + create(parameters: Parameters): Popover; /** destroy Popover instance */ - destroy (el: HTMLElement | CSSSelector | Popover): void; + destroy(el: HTMLElement | CSSSelector | Popover): void; /** get Popover instance by HTML element */ - get (el?: HTMLElement | CSSSelector): Popover; + get(el?: HTMLElement | CSSSelector): Popover; /** open Popover */ - open ( + open( el?: HTMLElement | CSSSelector, targetEl?: HTMLElement | CSSSelector, animate?: boolean, ): Popover; /** closes Popover */ - close (el?: HTMLElement | CSSSelector, animate?: boolean): Popover; + close(el?: HTMLElement | CSSSelector, animate?: boolean): Popover; }; } interface AppParams { diff --git a/src/core/components/popup/popup.d.ts b/src/core/components/popup/popup.d.ts index ae221c7d76..c2d07555a7 100644 --- a/src/core/components/popup/popup.d.ts +++ b/src/core/components/popup/popup.d.ts @@ -1,5 +1,9 @@ import { Dom7Array } from 'dom7'; -import Framework7, { CSSSelector, Framework7EventsClass, Framework7Plugin } from '../app/app-class.js'; +import Framework7, { + CSSSelector, + Framework7EventsClass, + Framework7Plugin, +} from '../app/app-class.js'; export namespace Popup { interface Events { @@ -70,11 +74,11 @@ export namespace Popup { opened: boolean; /** Open popup. */ - open (animate?: boolean): Popup; + open(animate?: boolean): Popup; /** Close popup. */ - close (animate?: boolean): Popup; + close(animate?: boolean): Popup; /** Destroy popup */ - destroy (): void; + destroy(): void; } interface DomEvents { /** Event will be triggered in the beginning of swipe-to-close interaction (when user just started to drag popup) */ @@ -98,15 +102,15 @@ export namespace Popup { interface AppMethods { popup: { /** create Popup instance */ - create (parameters: Parameters): Popup; + create(parameters: Parameters): Popup; /** destroy Popup instance */ - destroy (el: HTMLElement | CSSSelector | Popup): void; + destroy(el: HTMLElement | CSSSelector | Popup): void; /** get Popup instance by HTML element */ - get (el?: HTMLElement | CSSSelector): Popup; + get(el?: HTMLElement | CSSSelector): Popup; /** open Popup */ - open (el?: HTMLElement | CSSSelector, animate?: boolean): Popup; + open(el?: HTMLElement | CSSSelector, animate?: boolean): Popup; /** closes Popup */ - close (el?: HTMLElement | CSSSelector, animate?: boolean): Popup; + close(el?: HTMLElement | CSSSelector, animate?: boolean): Popup; }; } interface AppParams { diff --git a/src/core/components/preloader/preloader.d.ts b/src/core/components/preloader/preloader.d.ts index 024815d4e7..900e5b81a1 100644 --- a/src/core/components/preloader/preloader.d.ts +++ b/src/core/components/preloader/preloader.d.ts @@ -1,20 +1,24 @@ -import Framework7, { CSSSelector, Framework7EventsClass, Framework7Plugin } from '../app/app-class.js'; +import Framework7, { + CSSSelector, + Framework7EventsClass, + Framework7Plugin, +} from '../app/app-class.js'; export namespace Preloader { interface AppMethods { preloader: { /** Show Preloader overlay */ - show (color?: string | 'white'): void; + show(color?: string | 'white'): void; /** Show Preloader overlay in specified element */ - showIn (el: HTMLElement | CSSSelector, color?: string): void; + showIn(el: HTMLElement | CSSSelector, color?: string): void; /** Hide Preloader overlay */ - hide (): void; + hide(): void; /** Hide Preloader overlay in specified element */ - hideIn (el: HTMLElement | CSSSelector): void; + hideIn(el: HTMLElement | CSSSelector): void; }; } - interface AppParams { } - interface AppEvents { } + interface AppParams {} + interface AppEvents {} } declare const PreloaderComponent: Framework7Plugin; diff --git a/src/core/components/progressbar/progressbar.d.ts b/src/core/components/progressbar/progressbar.d.ts index 0ea4e50aaa..8731eceefe 100644 --- a/src/core/components/progressbar/progressbar.d.ts +++ b/src/core/components/progressbar/progressbar.d.ts @@ -1,25 +1,29 @@ -import Framework7, { CSSSelector, Framework7EventsClass, Framework7Plugin } from '../app/app-class.js'; +import Framework7, { + CSSSelector, + Framework7EventsClass, + Framework7Plugin, +} from '../app/app-class.js'; export namespace Progressbar { interface AppMethods { progressbar: { /** set progress for Determinate Progressbar */ - set (el: HTMLElement | CSSSelector, progress: number, duration: number): void; + set(el: HTMLElement | CSSSelector, progress: number, duration: number): void; /** set progress for Determinate Progressbar which is under the app root element */ - set (progress: number, duration: number): void; + set(progress: number, duration: number): void; /** create and show or just show (if already presented) Progressbar */ - show (el?: HTMLElement | CSSSelector, progress?: number, color?: string): void; - show (el?: HTMLElement | CSSSelector, color?: string): void; + show(el?: HTMLElement | CSSSelector, progress?: number, color?: string): void; + show(el?: HTMLElement | CSSSelector, color?: string): void; /** create and show Determinate Progressbar under app root */ - show (progress?: number, color?: string): void; + show(progress?: number, color?: string): void; /** create and show infinite Progressbar under app root */ - show (color?: string): void; + show(color?: string): void; /** hide Progressbar */ - hide (el?: HTMLElement | CSSSelector): void; + hide(el?: HTMLElement | CSSSelector): void; }; } - interface AppParams { } - interface AppEvents { } + interface AppParams {} + interface AppEvents {} } declare const ProgressbarComponent: Framework7Plugin; diff --git a/src/core/components/pull-to-refresh/pull-to-refresh.d.ts b/src/core/components/pull-to-refresh/pull-to-refresh.d.ts index 273028368a..a8709b3f6f 100644 --- a/src/core/components/pull-to-refresh/pull-to-refresh.d.ts +++ b/src/core/components/pull-to-refresh/pull-to-refresh.d.ts @@ -1,5 +1,9 @@ import { Dom7Array } from 'dom7'; -import Framework7, { CSSSelector, Framework7EventsClass, Framework7Plugin } from '../app/app-class.js'; +import Framework7, { + CSSSelector, + Framework7EventsClass, + Framework7Plugin, +} from '../app/app-class.js'; export namespace PullToRefresh { interface PullToRefresh extends Framework7EventsClass { @@ -10,26 +14,26 @@ export namespace PullToRefresh { /** Dom7 instance with PTR HTML element (ptr-content) */ $el: Dom7Array; /** Reset PTR state */ - done (): void; + done(): void; /** Trigger PTR */ - refresh (): void; + refresh(): void; /** Destroy PTR instance and remove PTR event listeners from the specified HTML element */ - destroy (): void; + destroy(): void; } interface Events { /** Event will be triggered when you start to move pull to refresh content. As an argument event handler receives ptr element */ - pullStart (el: HTMLElement): void; + pullStart(el: HTMLElement): void; /** */ - pullMove (el: HTMLElement, data: Data): void; + pullMove(el: HTMLElement, data: Data): void; /** */ - pullEnd (el: HTMLElement, data: Data): void; + pullEnd(el: HTMLElement, data: Data): void; /** */ - refresh (el: HTMLElement, done: () => void): void; + refresh(el: HTMLElement, done: () => void): void; /** */ - done (el: HTMLElement): void; + done(el: HTMLElement): void; /** */ - beforeDestroy (ptr: PullToRefresh): void; + beforeDestroy(ptr: PullToRefresh): void; } interface DomEvents { @@ -60,37 +64,37 @@ export namespace PullToRefresh { interface AppMethods { ptr: { /** initialise PTR on specified HTML element container */ - create (el: HTMLElement | CSSSelector): PullToRefresh; + create(el: HTMLElement | CSSSelector): PullToRefresh; /** remove PTR event listeners from the specified HTML element */ - destroy (el: HTMLElement | CSSSelector | PullToRefresh): void; + destroy(el: HTMLElement | CSSSelector | PullToRefresh): void; /** get PTR instance by HTML element */ - get (el: HTMLElement | CSSSelector): PullToRefresh; + get(el: HTMLElement | CSSSelector): PullToRefresh; /** reset PTR state on specified PTR content element */ - done (el: HTMLElement | CSSSelector): PullToRefresh; + done(el: HTMLElement | CSSSelector): PullToRefresh; /** trigger PTR on specified PTR content element */ - refresh (el: HTMLElement | CSSSelector): PullToRefresh; + refresh(el: HTMLElement | CSSSelector): PullToRefresh; }; } - interface AppParams { } + interface AppParams {} interface AppEvents { /** Event will be triggered when you start to move pull to refresh content. As an argument event handler receives ptr element */ - ptrPullStart (el: HTMLElement): void; + ptrPullStart(el: HTMLElement): void; /** */ - ptrPullMove (el: HTMLElement, data: Data): void; + ptrPullMove(el: HTMLElement, data: Data): void; /** */ - ptrPullEnd (el: HTMLElement, data: Data): void; + ptrPullEnd(el: HTMLElement, data: Data): void; /** */ - ptrRefresh (el: HTMLElement, done: () => void): void; + ptrRefresh(el: HTMLElement, done: () => void): void; /** */ - ptrDone (el: HTMLElement): void; + ptrDone(el: HTMLElement): void; /** */ - ptrBeforeDestroy (ptr: PullToRefresh): void; + ptrBeforeDestroy(ptr: PullToRefresh): void; } } diff --git a/src/core/components/radio/radio.d.ts b/src/core/components/radio/radio.d.ts index 283b15e991..6dba420f37 100644 --- a/src/core/components/radio/radio.d.ts +++ b/src/core/components/radio/radio.d.ts @@ -1,9 +1,13 @@ -import Framework7, { CSSSelector, Framework7EventsClass, Framework7Plugin } from '../app/app-class.js'; +import Framework7, { + CSSSelector, + Framework7EventsClass, + Framework7Plugin, +} from '../app/app-class.js'; export namespace Radio { - interface AppMethods { } - interface AppParams { } - interface AppEvents { } + interface AppMethods {} + interface AppParams {} + interface AppEvents {} } declare const RadioComponent: Framework7Plugin; diff --git a/src/core/components/range/range.d.ts b/src/core/components/range/range.d.ts index 76030bb97d..0a32a64d00 100644 --- a/src/core/components/range/range.d.ts +++ b/src/core/components/range/range.d.ts @@ -1,5 +1,9 @@ import { Dom7Array } from 'dom7'; -import Framework7, { CSSSelector, Framework7EventsClass, Framework7Plugin } from '../app/app-class.js'; +import Framework7, { + CSSSelector, + Framework7EventsClass, + Framework7Plugin, +} from '../app/app-class.js'; export namespace Range { interface Parameters { @@ -84,11 +88,11 @@ export namespace Range { /** Range parameters */ params: Parameters; /** Returns range slider value */ - getValue (): number | number[]; + getValue(): number | number[]; /** Set new range slider value */ - setValue (value: number | number[]): Range; + setValue(value: number | number[]): Range; /** Destroy range slider */ - destroy (): void; + destroy(): void; } interface Events { /** Event will be triggered when range value has been changed. As an argument event handler receives range instance */ @@ -110,15 +114,15 @@ export namespace Range { interface AppMethods { range: { /** create Range Slider instance */ - create (parameters: Parameters): Range; + create(parameters: Parameters): Range; /** get Range Slider instance by HTML element */ - get (el: HTMLElement | CSSSelector | Range): Range; + get(el: HTMLElement | CSSSelector | Range): Range; /** get Range Slider value */ - getValue (el: HTMLElement | CSSSelector | Range): number | number[]; + getValue(el: HTMLElement | CSSSelector | Range): number | number[]; /** set new Range Slider value */ - setValue (el: HTMLElement | CSSSelector | Range, value: number | number[]): void; + setValue(el: HTMLElement | CSSSelector | Range, value: number | number[]): void; /** destroy Range Slider instance */ - destroy (el: HTMLElement | CSSSelector | Range): void; + destroy(el: HTMLElement | CSSSelector | Range): void; }; } interface AppParams { diff --git a/src/core/components/searchbar/searchbar.d.ts b/src/core/components/searchbar/searchbar.d.ts index 4bcbe1969c..cf1d7e6c07 100644 --- a/src/core/components/searchbar/searchbar.d.ts +++ b/src/core/components/searchbar/searchbar.d.ts @@ -1,5 +1,9 @@ import { Dom7Array } from 'dom7'; -import Framework7, { CSSSelector, Framework7EventsClass, Framework7Plugin } from '../app/app-class.js'; +import Framework7, { + CSSSelector, + Framework7EventsClass, + Framework7Plugin, +} from '../app/app-class.js'; export namespace Searchbar { interface Parameters { @@ -78,17 +82,17 @@ export namespace Searchbar { /** Searchbar parameters */ params: Parameters; /** Force searchbar to search passed query */ - search (query: string): Searchbar; + search(query: string): Searchbar; /** Enable/activate searchbar */ - enable (): Searchbar; + enable(): Searchbar; /** Disable/deactivate searchbar */ - disable (): Searchbar; + disable(): Searchbar; /** Toggle searchbar */ - toggle (): Searchbar; + toggle(): Searchbar; /** Clear search query and update results */ - clear (): Searchbar; + clear(): Searchbar; /** Destroy searchbar */ - destroy (): void; + destroy(): void; } interface Events { /** Event will be triggered during search (search field change). As an argument event handler receives searchbar instance, current query and previous query */ @@ -118,21 +122,21 @@ export namespace Searchbar { interface AppMethods { searchbar: { /** create Searchbar instance */ - create (parameters: Parameters): Searchbar; + create(parameters: Parameters): Searchbar; /** get Searchbar instance by HTML element */ - get (el: HTMLElement | CSSSelector | Searchbar): Searchbar; + get(el: HTMLElement | CSSSelector | Searchbar): Searchbar; /** destroy Searchbar instance */ - destroy (el: HTMLElement | CSSSelector | Searchbar): void; + destroy(el: HTMLElement | CSSSelector | Searchbar): void; /** Clear search query and update results */ - clear (el: HTMLElement | CSSSelector | Searchbar): Searchbar; + clear(el: HTMLElement | CSSSelector | Searchbar): Searchbar; /** Enable/activate searchbar */ - enable (el: HTMLElement | CSSSelector | Searchbar): Searchbar; + enable(el: HTMLElement | CSSSelector | Searchbar): Searchbar; /** Disable/deactivate searchbar */ - disable (el: HTMLElement | CSSSelector | Searchbar): Searchbar; + disable(el: HTMLElement | CSSSelector | Searchbar): Searchbar; /** Toggle searchbar */ - toggle (el: HTMLElement | CSSSelector | Searchbar): Searchbar; + toggle(el: HTMLElement | CSSSelector | Searchbar): Searchbar; /** Force searchbar to search passed query */ - search (el: HTMLElement | CSSSelector | Searchbar, query: string): Searchbar; + search(el: HTMLElement | CSSSelector | Searchbar, query: string): Searchbar; }; } interface AppParams { diff --git a/src/core/components/sheet/sheet.d.ts b/src/core/components/sheet/sheet.d.ts index 1d7bc0a107..df5ef4cafa 100644 --- a/src/core/components/sheet/sheet.d.ts +++ b/src/core/components/sheet/sheet.d.ts @@ -1,5 +1,9 @@ import { Dom7Array } from 'dom7'; -import Framework7, { CSSSelector, Framework7EventsClass, Framework7Plugin } from '../app/app-class.js'; +import Framework7, { + CSSSelector, + Framework7EventsClass, + Framework7Plugin, +} from '../app/app-class.js'; export namespace Sheet { interface Events { @@ -74,19 +78,19 @@ export namespace Sheet { opened: boolean; /** Open sheet. */ - open (animate?: boolean): Sheet; + open(animate?: boolean): Sheet; /** Close sheet. */ - close (animate?: boolean): Sheet; + close(animate?: boolean): Sheet; /** Open/expand sheet swipe step */ - stepOpen (): void; + stepOpen(): void; /** Close/collapse sheet swipe step */ - stepClose (): void; + stepClose(): void; /** Toggle (open or close) sheet swipe step */ - stepToggle (): void; + stepToggle(): void; /** Update step position. Required to call after content of sheet modal has been modified manually when it is opened */ - setSwipeStep (): void; + setSwipeStep(): void; /** Destroy sheet */ - destroy (): void; + destroy(): void; } interface DomEvents { /** Event will be triggered when Sheet Modal starts its opening animation */ @@ -108,21 +112,21 @@ export namespace Sheet { interface AppMethods { sheet: { /** create Sheet Modal instance */ - create (parameters: Parameters): Sheet; + create(parameters: Parameters): Sheet; /** destroy Sheet Modal instance */ - destroy (el: HTMLElement | CSSSelector | Sheet): void; + destroy(el: HTMLElement | CSSSelector | Sheet): void; /** get Sheet Modal instance by HTML element */ - get (el?: HTMLElement | CSSSelector): Sheet; + get(el?: HTMLElement | CSSSelector): Sheet; /** open Sheet Modal */ - open (el?: HTMLElement | CSSSelector, animate?: boolean): Sheet; + open(el?: HTMLElement | CSSSelector, animate?: boolean): Sheet; /** closes Sheet Modal */ - close (el?: HTMLElement | CSSSelector, animate?: boolean): Sheet; + close(el?: HTMLElement | CSSSelector, animate?: boolean): Sheet; /** open/expand Sheet swipe step */ - stepOpen (el?: HTMLElement | CSSSelector): Sheet; + stepOpen(el?: HTMLElement | CSSSelector): Sheet; /** close/collapse Sheet swipe step */ - stepClose (el?: HTMLElement | CSSSelector): Sheet; + stepClose(el?: HTMLElement | CSSSelector): Sheet; /** toggle (open or close) Sheet swipe step */ - stepToggle (el?: HTMLElement | CSSSelector): Sheet; + stepToggle(el?: HTMLElement | CSSSelector): Sheet; }; } interface AppParams { diff --git a/src/core/components/skeleton/skeleton.d.ts b/src/core/components/skeleton/skeleton.d.ts index fb563c0268..03ab195db6 100644 --- a/src/core/components/skeleton/skeleton.d.ts +++ b/src/core/components/skeleton/skeleton.d.ts @@ -1,9 +1,13 @@ -import Framework7, { CSSSelector, Framework7EventsClass, Framework7Plugin } from '../app/app-class.js'; +import Framework7, { + CSSSelector, + Framework7EventsClass, + Framework7Plugin, +} from '../app/app-class.js'; export namespace Skeleton { - interface AppMethods { } - interface AppParams { } - interface AppEvents { } + interface AppMethods {} + interface AppParams {} + interface AppEvents {} } declare const SkeletonComponent: Framework7Plugin; diff --git a/src/core/components/smart-select/smart-select.d.ts b/src/core/components/smart-select/smart-select.d.ts index 1107bb3497..56c376a455 100644 --- a/src/core/components/smart-select/smart-select.d.ts +++ b/src/core/components/smart-select/smart-select.d.ts @@ -1,5 +1,9 @@ import { Dom7Array } from 'dom7'; -import Framework7, { CSSSelector, Framework7EventsClass, Framework7Plugin } from '../app/app-class.js'; +import Framework7, { + CSSSelector, + Framework7EventsClass, + Framework7Plugin, +} from '../app/app-class.js'; import { View } from '../view/view.js'; import { Searchbar } from '../searchbar/searchbar.js'; @@ -134,19 +138,19 @@ export namespace SmartSelect { params: Parameters; /** Scroll smart select content to first selected item */ - scrollToSelectedItem (): SmartSelect; + scrollToSelectedItem(): SmartSelect; /** Set new smart select value. In case of select is multiple it must be an array with new values */ - setValue (value: string | number | any[]): SmartSelect; + setValue(value: string | number | any[]): SmartSelect; /** Unset smart select value */ - unsetValue (): SmartSelect; + unsetValue(): SmartSelect; /** Returns smart select value. In case of select is multiple it returns array with selected values */ - getValue (): string | number | any[]; + getValue(): string | number | any[]; /** Open smart select. */ - open (): SmartSelect; + open(): SmartSelect; /** Close smart select. */ - close (): SmartSelect; + close(): SmartSelect; /** Destroy smart select */ - destroy (): void; + destroy(): void; } interface DomEvents { /** Event will be triggered before Smart Select open. event.detail.prevent is a function that can be called to prevent Smart Select from opening */ @@ -166,15 +170,15 @@ export namespace SmartSelect { interface AppMethods { smartSelect: { /** create Smart Select instance */ - create (parameters: Parameters): SmartSelect; + create(parameters: Parameters): SmartSelect; /** destroy Smart Select instance */ - destroy (el: HTMLElement | CSSSelector | SmartSelect): void; + destroy(el: HTMLElement | CSSSelector | SmartSelect): void; /** get Smart Select instance by HTML element */ - get (el: HTMLElement | CSSSelector): SmartSelect; + get(el: HTMLElement | CSSSelector): SmartSelect; /** open Smart Select */ - open (el: HTMLElement | CSSSelector): SmartSelect; + open(el: HTMLElement | CSSSelector): SmartSelect; /** close Smart Select */ - close (el: HTMLElement | CSSSelector): SmartSelect; + close(el: HTMLElement | CSSSelector): SmartSelect; }; } interface AppParams { diff --git a/src/core/components/sortable/sortable.d.ts b/src/core/components/sortable/sortable.d.ts index 5c0d4c3699..bbf328f01e 100644 --- a/src/core/components/sortable/sortable.d.ts +++ b/src/core/components/sortable/sortable.d.ts @@ -18,20 +18,20 @@ export namespace Sortable { interface AppMethods { sortable: { /** enable sorting mode on sortable list */ - enable (listEl?: HTMLElement | CSSSelector): void; + enable(listEl?: HTMLElement | CSSSelector): void; /** disable sorting mode on sortable list */ - disable (listEl?: HTMLElement | CSSSelector): void; + disable(listEl?: HTMLElement | CSSSelector): void; /** toggle sorting mode on sortable list */ - toggle (listEl?: HTMLElement | CSSSelector): void; + toggle(listEl?: HTMLElement | CSSSelector): void; }; } interface AppParams { sortable?: - | { - /** When enabled then it will move (reorder) HTML elements according to new sortable order. It is useful to disable it if you use other library for DOM manipulation, like React or Vue (default true) */ - moveElements?: boolean; - } - | undefined; + | { + /** When enabled then it will move (reorder) HTML elements according to new sortable order. It is useful to disable it if you use other library for DOM manipulation, like React or Vue (default true) */ + moveElements?: boolean; + } + | undefined; } interface AppEvents { /** Event will be triggered when sortable mode is enabled */ diff --git a/src/core/components/statusbar/statusbar.d.ts b/src/core/components/statusbar/statusbar.d.ts index 7021af7434..fdf54b6692 100644 --- a/src/core/components/statusbar/statusbar.d.ts +++ b/src/core/components/statusbar/statusbar.d.ts @@ -1,49 +1,53 @@ -import Framework7, { CSSSelector, Framework7EventsClass, Framework7Plugin } from '../app/app-class.js'; +import Framework7, { + CSSSelector, + Framework7EventsClass, + Framework7Plugin, +} from '../app/app-class.js'; export namespace Statusbar { interface AppParams { /** Statusbar parameters */ statusbar?: - | { - /** Enables statusbar handling by Framework7. Disable it if you don't want Framework7 to handle statusbar behavior */ - enabled?: boolean; - /** If enabled, then click on statusbar overlay will scroll top page content to the top.This functionality is only available when app is running under cordova/capacitor environment with installed cordova-plugin-statusbar */ - scrollTopOnClick?: boolean; - /** Hex string (#RRGGBB) with background color when app running under iOS device. If passed then it will override CSS value */ - iosBackgroundColor?: string; - /** Makes the statusbar overlay or not overlay the WebView. This functionality is only available when app is running on iOS device under cordova/capacitor environment with installed cordova-plugin-statusbar*/ - iosOverlaysWebView?: boolean; - /** Statusbar text color. Can be white or black. This functionality is only available when app is running on iOS under cordova/capacitor environment with installed cordova-plugin-statusbar */ - iosTextColor?: string; - /** Hex string (#RRGGBB) with background color when app running on Android device. If passed then it will override CSS value */ - androidBackgroundColor?: string; - /** Makes the statusbar overlay or not overlay the WebView. This functionality is only available when app is running on Android and under cordova/capacitor environment with installed cordova-plugin-statusbar - */ - androidOverlaysWebView?: boolean; - /** Statusbar text color. Can be white or black. This functionality is only available when app is running on Android and under cordova/capacitor environment with installed cordova-plugin-statusbar */ - androidTextColor?: string; - } - | undefined; + | { + /** Enables statusbar handling by Framework7. Disable it if you don't want Framework7 to handle statusbar behavior */ + enabled?: boolean; + /** If enabled, then click on statusbar overlay will scroll top page content to the top.This functionality is only available when app is running under cordova/capacitor environment with installed cordova-plugin-statusbar */ + scrollTopOnClick?: boolean; + /** Hex string (#RRGGBB) with background color when app running under iOS device. If passed then it will override CSS value */ + iosBackgroundColor?: string; + /** Makes the statusbar overlay or not overlay the WebView. This functionality is only available when app is running on iOS device under cordova/capacitor environment with installed cordova-plugin-statusbar*/ + iosOverlaysWebView?: boolean; + /** Statusbar text color. Can be white or black. This functionality is only available when app is running on iOS under cordova/capacitor environment with installed cordova-plugin-statusbar */ + iosTextColor?: string; + /** Hex string (#RRGGBB) with background color when app running on Android device. If passed then it will override CSS value */ + androidBackgroundColor?: string; + /** Makes the statusbar overlay or not overlay the WebView. This functionality is only available when app is running on Android and under cordova/capacitor environment with installed cordova-plugin-statusbar + */ + androidOverlaysWebView?: boolean; + /** Statusbar text color. Can be white or black. This functionality is only available when app is running on Android and under cordova/capacitor environment with installed cordova-plugin-statusbar */ + androidTextColor?: string; + } + | undefined; } interface AppMethods { /** Statusbar methods and properties */ statusbar: { /** Hide statusbar. In webapp it just hides statusbar overlay, but in cordova app it will hide statusbar at all. Hiding device statusbar is available when app is running under cordova/capacitor environment with installed cordova-plugin-statusbar */ - hide (): void; + hide(): void; /** Show statusbar */ - show (): void; + show(): void; /** Makes the statusbar overlay or not overlay the WebView. This functionality is only available when app is running under cordova/capacitor environment with installed cordova-plugin-statusbar */ - overlaysWebView (overlays: boolean): void; + overlaysWebView(overlays: boolean): void; /** "Set/change statusbar text color. "color" can be white or black. This functionality is only available when app is running under cordova/capacitor environment with installed cordova-plugin-statusbar" */ - setTextColor (color: string): void; + setTextColor(color: string): void; /** Set/change statusbar background colorhex - string - Hex string (#RRGGBB) with background color */ - setBackgroundColor (hex: string): void; + setBackgroundColor(hex: string): void; /** Returns Promise resolved with "true" if system statusbar is visible and false when it is not visible. This functionality is only available when app is running under cordova/capacitor/capacitor environment with installed cordova-plugin-statusbar */ - isVisible (): Promise; + isVisible(): Promise; }; } - interface AppEvents { } + interface AppEvents {} } declare const StatusbarComponent: Framework7Plugin; diff --git a/src/core/components/stepper/stepper.d.ts b/src/core/components/stepper/stepper.d.ts index e270592bdc..1158c83821 100644 --- a/src/core/components/stepper/stepper.d.ts +++ b/src/core/components/stepper/stepper.d.ts @@ -1,5 +1,9 @@ import { Dom7Array } from 'dom7'; -import Framework7, { CSSSelector, Framework7EventsClass, Framework7Plugin } from '../app/app-class.js'; +import Framework7, { + CSSSelector, + Framework7EventsClass, + Framework7Plugin, +} from '../app/app-class.js'; export namespace Stepper { interface Parameters { @@ -60,19 +64,19 @@ export namespace Stepper { /** Stepper parameters */ params: Parameters; /** Returns stepper value */ - getValue (): number; + getValue(): number; /** Set new stepper value */ - setValue (value: number): Stepper; + setValue(value: number): Stepper; /** Increment stepper value, similar to clicking on its "plus" button */ - incremenet (): Stepper; + incremenet(): Stepper; /** Increment stepper value, similar to clicking on its "plus" button */ - plus (): Stepper; + plus(): Stepper; /** Decrement stepper value, similar to clicking on its "minus" button */ - decrement (): Stepper; + decrement(): Stepper; /** Decrement stepper value, similar to clicking on its "minus" button */ - minus (): Stepper; + minus(): Stepper; /** Destroy stepper */ - destroy (): void; + destroy(): void; } interface Events { /** Event will be triggered when stepper value has been changed. As an argument event handler receives stepper instance and stepper value */ @@ -90,15 +94,15 @@ export namespace Stepper { interface AppMethods { stepper: { /** create Stepper instance */ - create (parameters: Parameters): Stepper; + create(parameters: Parameters): Stepper; /** get Stepper instance by HTML element */ - get (el: HTMLElement | CSSSelector | Stepper): Stepper; + get(el: HTMLElement | CSSSelector | Stepper): Stepper; /** get Stepper value */ - getValue (el: HTMLElement | CSSSelector | Stepper): number | number[]; + getValue(el: HTMLElement | CSSSelector | Stepper): number | number[]; /** set new Stepper value */ - setValue (el: HTMLElement | CSSSelector | Stepper, value: number | number[]): void; + setValue(el: HTMLElement | CSSSelector | Stepper, value: number | number[]): void; /** destroy Stepper instance */ - destroy (el: HTMLElement | CSSSelector | Stepper): void; + destroy(el: HTMLElement | CSSSelector | Stepper): void; }; } interface AppParams { diff --git a/src/core/components/subnavbar/subnavbar.d.ts b/src/core/components/subnavbar/subnavbar.d.ts index d2969d6f55..7e779992b0 100644 --- a/src/core/components/subnavbar/subnavbar.d.ts +++ b/src/core/components/subnavbar/subnavbar.d.ts @@ -1,9 +1,9 @@ import { Framework7Plugin } from '../app/app-class.js'; export namespace Subnavbar { - interface AppMethods { } - interface AppParams { } - interface AppEvents { } + interface AppMethods {} + interface AppParams {} + interface AppEvents {} } declare const SubnavbarComponent: Framework7Plugin; diff --git a/src/core/components/swipeout/swipeout.d.ts b/src/core/components/swipeout/swipeout.d.ts index c6876f6d9e..b5450357b1 100644 --- a/src/core/components/swipeout/swipeout.d.ts +++ b/src/core/components/swipeout/swipeout.d.ts @@ -22,28 +22,28 @@ export namespace Swipeout { /** Currently opened swipeout HTMLElement. Or undefined if there is no opened swipeout element */ el: HTMLElement | CSSSelector | undefined; /** reveal swipeout actions on specified element */ - open (el: HTMLElement | CSSSelector, side?: 'left' | 'right', callback?: Function): void; + open(el: HTMLElement | CSSSelector, side?: 'left' | 'right', callback?: Function): void; /** close swipeout actions on specified element */ - close (el: HTMLElement | CSSSelector, callback?: Function): void; + close(el: HTMLElement | CSSSelector, callback?: Function): void; /** delete specified swipeout element */ - delete (el: HTMLElement | CSSSelector, callback?: Function): void; + delete(el: HTMLElement | CSSSelector, callback?: Function): void; }; } interface AppParams { swipeout?: - | { - /** Fallback option for potentially better performance on old/slow devices. If you enable it, then swipeout item will not follow your finger during touch, it will be automatically opened/closed on swipe left/right. (default false) */ - noFollow?: boolean; - /** When disabled, then framework will not remove swipeout element from DOM on "swipeout-delete" click. Useful to enable if you use another library like Vue or React to manage (remove) swipeout items (default true) */ - removeElements?: boolean; - /** When enabled, then framework will remove swipeout element from DOM on "swipeout-delete" click after specified delay (default false) */ - removeElementsWithTimeout?: boolean; - /** Delay in ms to remove swipeout item if removeElementsWithTimeout is enabled */ - removeElementsTimeout?: number; - /** Defines how much/hard needed to swipe to trigger overswipe (defaults to 1.2) */ - overswipeRatio?: number; - } - | undefined; + | { + /** Fallback option for potentially better performance on old/slow devices. If you enable it, then swipeout item will not follow your finger during touch, it will be automatically opened/closed on swipe left/right. (default false) */ + noFollow?: boolean; + /** When disabled, then framework will not remove swipeout element from DOM on "swipeout-delete" click. Useful to enable if you use another library like Vue or React to manage (remove) swipeout items (default true) */ + removeElements?: boolean; + /** When enabled, then framework will remove swipeout element from DOM on "swipeout-delete" click after specified delay (default false) */ + removeElementsWithTimeout?: boolean; + /** Delay in ms to remove swipeout item if removeElementsWithTimeout is enabled */ + removeElementsTimeout?: number; + /** Defines how much/hard needed to swipe to trigger overswipe (defaults to 1.2) */ + overswipeRatio?: number; + } + | undefined; } interface AppEvents { /** Event will be triggered while you move swipeout element */ diff --git a/src/core/components/swiper/swiper.d.ts b/src/core/components/swiper/swiper.d.ts index 09862fec3e..61de576563 100644 --- a/src/core/components/swiper/swiper.d.ts +++ b/src/core/components/swiper/swiper.d.ts @@ -1,20 +1,24 @@ -import Framework7, { CSSSelector, Framework7EventsClass, Framework7Plugin } from '../app/app-class.js'; +import Framework7, { + CSSSelector, + Framework7EventsClass, + Framework7Plugin, +} from '../app/app-class.js'; import { Swiper } from 'swiper/bundle'; export namespace Swiper { - interface Parameters { } + interface Parameters {} interface AppMethods { swiper: { /** initialize slider with options */ - create (swiperEl: HTMLElement | CSSSelector, params?: Parameters): Swiper; + create(swiperEl: HTMLElement | CSSSelector, params?: Parameters): Swiper; /** get Swiper instance by HTML element */ - get (swiperEl: HTMLElement | CSSSelector): Swiper; + get(swiperEl: HTMLElement | CSSSelector): Swiper; /** destroy Swiper instance */ - get (swiperEl: HTMLElement | CSSSelector): void; + get(swiperEl: HTMLElement | CSSSelector): void; }; } - interface AppParams { } - interface AppEvents { } + interface AppParams {} + interface AppEvents {} } declare const SwiperComponent: Framework7Plugin; diff --git a/src/core/components/tabs/tabs.d.ts b/src/core/components/tabs/tabs.d.ts index 8945f1b18d..0bb0da83dc 100644 --- a/src/core/components/tabs/tabs.d.ts +++ b/src/core/components/tabs/tabs.d.ts @@ -4,7 +4,7 @@ export namespace Tabs { interface TabShowResult { newTabEl: HTMLElement; oldTabEl: HTMLElement | undefined; - onTabsChanged (callback: Function): void; + onTabsChanged(callback: Function): void; animated: boolean; } interface DomEvents { @@ -16,16 +16,16 @@ export namespace Tabs { interface AppMethods { tab: { /** Show tab */ - show (tabEl: HTMLElement | CSSSelector, animate?: boolean): TabShowResult; + show(tabEl: HTMLElement | CSSSelector, animate?: boolean): TabShowResult; /** Show tab */ - show ( + show( tabEl: HTMLElement | CSSSelector, tabLinkEl?: HTMLElement | CSSSelector, animate?: boolean, ): TabShowResult; }; } - interface AppParams { } + interface AppParams {} interface AppEvents { /** Event will be triggered when Tab becomes visible/active */ tabShow: (tabEl: HTMLElement) => void; diff --git a/src/core/components/text-editor/text-editor.d.ts b/src/core/components/text-editor/text-editor.d.ts index cdec70862f..7fa90d6d25 100644 --- a/src/core/components/text-editor/text-editor.d.ts +++ b/src/core/components/text-editor/text-editor.d.ts @@ -1,5 +1,9 @@ import { Dom7Array } from 'dom7'; -import Framework7, { CSSSelector, Framework7EventsClass, Framework7Plugin } from '../app/app-class.js'; +import Framework7, { + CSSSelector, + Framework7EventsClass, + Framework7Plugin, +} from '../app/app-class.js'; export namespace TextEditor { interface Parameters { @@ -45,17 +49,17 @@ export namespace TextEditor { /** Editor parameters */ params: Parameters; /** Returns editor value */ - getValue (): number; + getValue(): number; /** Set new editor value */ - setValue (value: string): TextEditor; + setValue(value: string): TextEditor; /** Clear editor value */ - clearValue (): TextEditor; + clearValue(): TextEditor; /** Returns current selection Range */ - getSelectionRange (): Range; + getSelectionRange(): Range; /** Set selection based on passed Range */ - setSelectionRange (range: Range): void; + setSelectionRange(range: Range): void; /** Destroy text editor */ - destroy (): void; + destroy(): void; } interface Events { /** Event will be triggered when editor value has been changed. As an argument event handler receives editor instance and value */ @@ -117,11 +121,11 @@ export namespace TextEditor { interface AppMethods { textEditor: { /** create Text Editor instance */ - create (parameters: Parameters): TextEditor; + create(parameters: Parameters): TextEditor; /** get Text Editor instance by HTML element */ - get (el: HTMLElement | CSSSelector | TextEditor): TextEditor; + get(el: HTMLElement | CSSSelector | TextEditor): TextEditor; /** destroy Text Editor instance */ - destroy (el: HTMLElement | CSSSelector | TextEditor): void; + destroy(el: HTMLElement | CSSSelector | TextEditor): void; }; } interface AppParams { diff --git a/src/core/components/timeline/timeline.d.ts b/src/core/components/timeline/timeline.d.ts index c9b7675ead..e13c1e160a 100644 --- a/src/core/components/timeline/timeline.d.ts +++ b/src/core/components/timeline/timeline.d.ts @@ -1,9 +1,13 @@ -import Framework7, { CSSSelector, Framework7EventsClass, Framework7Plugin } from '../app/app-class.js'; +import Framework7, { + CSSSelector, + Framework7EventsClass, + Framework7Plugin, +} from '../app/app-class.js'; export namespace Timeline { - interface AppMethods { } - interface AppParams { } - interface AppEvents { } + interface AppMethods {} + interface AppParams {} + interface AppEvents {} } declare const TimelineComponent: Framework7Plugin; diff --git a/src/core/components/toast/toast.d.ts b/src/core/components/toast/toast.d.ts index dde44a8d6d..45893a2082 100644 --- a/src/core/components/toast/toast.d.ts +++ b/src/core/components/toast/toast.d.ts @@ -1,5 +1,9 @@ import { Dom7Array } from 'dom7'; -import Framework7, { CSSSelector, Framework7EventsClass, Framework7Plugin } from '../app/app-class.js'; +import Framework7, { + CSSSelector, + Framework7EventsClass, + Framework7Plugin, +} from '../app/app-class.js'; export namespace Toast { interface Events { @@ -60,11 +64,11 @@ export namespace Toast { params: Parameters; /** Open toast */ - open (animate?: boolean): Toast; + open(animate?: boolean): Toast; /** Close toast */ - close (animate?: boolean): Toast; + close(animate?: boolean): Toast; /** Destroy toast */ - destroy (): void; + destroy(): void; } interface DomEvents { /** Event will be triggered when Toast starts its opening animation */ @@ -80,17 +84,17 @@ export namespace Toast { interface AppMethods { toast: { /** create Toast instance */ - create (parameters: Parameters): Toast; + create(parameters: Parameters): Toast; /** destroy Toast instance */ - destroy (el: HTMLElement | CSSSelector | Toast): void; + destroy(el: HTMLElement | CSSSelector | Toast): void; /** get Toast instance by HTML element */ - get (el: HTMLElement | CSSSelector): Toast; + get(el: HTMLElement | CSSSelector): Toast; /** open Toast */ - open (el: HTMLElement | CSSSelector, animate?: boolean): Toast; + open(el: HTMLElement | CSSSelector, animate?: boolean): Toast; /** closes Toast */ - close (el: HTMLElement | CSSSelector, animate?: boolean): Toast; + close(el: HTMLElement | CSSSelector, animate?: boolean): Toast; /** create Toast instance and show immediately */ - show (parameters: Parameters): Toast; + show(parameters: Parameters): Toast; }; } interface AppParams { diff --git a/src/core/components/toggle/toggle.d.ts b/src/core/components/toggle/toggle.d.ts index 30f68a8e85..ce1fe4c2c2 100644 --- a/src/core/components/toggle/toggle.d.ts +++ b/src/core/components/toggle/toggle.d.ts @@ -1,5 +1,9 @@ import { Dom7Array } from 'dom7'; -import Framework7, { CSSSelector, Framework7EventsClass, Framework7Plugin } from '../app/app-class.js'; +import Framework7, { + CSSSelector, + Framework7EventsClass, + Framework7Plugin, +} from '../app/app-class.js'; export namespace Toggle { interface Parameters { @@ -26,9 +30,9 @@ export namespace Toggle { /** Toggle parameters */ params: Parameters; /** Toggle input state */ - toggle (): number; + toggle(): number; /** Destroy Toggle */ - destroy (): void; + destroy(): void; } interface Events { /** Event will be triggered when toggle state has been changed. As an argument event handler receives toggle instance */ @@ -46,11 +50,11 @@ export namespace Toggle { interface AppMethods { toggle: { /** create Toggle instance */ - create (parameters: Parameters): Toggle; + create(parameters: Parameters): Toggle; /** get Toggle instance by HTML element */ - get (el: HTMLElement | CSSSelector | Toggle): Toggle; + get(el: HTMLElement | CSSSelector | Toggle): Toggle; /** destroy Toggle instance */ - destroy (el: HTMLElement | CSSSelector | Toggle): void; + destroy(el: HTMLElement | CSSSelector | Toggle): void; }; } interface AppParams { diff --git a/src/core/components/toolbar/toolbar.d.ts b/src/core/components/toolbar/toolbar.d.ts index e73a284674..5c31398d03 100644 --- a/src/core/components/toolbar/toolbar.d.ts +++ b/src/core/components/toolbar/toolbar.d.ts @@ -5,24 +5,24 @@ export namespace Toolbar { interface AppMethods { toolbar: { /** Hide toolbar */ - hide (toolbarEl: HTMLElement | CSSSelector, animate?: boolean): void; + hide(toolbarEl: HTMLElement | CSSSelector, animate?: boolean): void; /** Show toolbar */ - show (toolbarEl: HTMLElement | CSSSelector, animate?: boolean): void; + show(toolbarEl: HTMLElement | CSSSelector, animate?: boolean): void; /** Set highlight on tab links according to active one (This will have effect only in MD theme) */ - setHighlight (tabbarEl: HTMLElement | CSSSelector): void; + setHighlight(tabbarEl: HTMLElement | CSSSelector): void; }; } interface AppParams { toolbar?: - | { - /** Will hide Toolbars/Tabbars on page scroll (default false) */ - hideOnPageScroll?: boolean; - /** Set to true to show hidden Toolbar/Tabbar when scrolling reaches end of the page (default true) */ - showOnPageScrollEnd?: boolean; - /** Set to false and hidden Toolbar/Tabbar will not become visible when you scroll page to top everytime. They will become visible only at the most top scroll position, in the beginning of the page (default true) */ - showOnPageScrollTop?: boolean; - } - | undefined; + | { + /** Will hide Toolbars/Tabbars on page scroll (default false) */ + hideOnPageScroll?: boolean; + /** Set to true to show hidden Toolbar/Tabbar when scrolling reaches end of the page (default true) */ + showOnPageScrollEnd?: boolean; + /** Set to false and hidden Toolbar/Tabbar will not become visible when you scroll page to top everytime. They will become visible only at the most top scroll position, in the beginning of the page (default true) */ + showOnPageScrollTop?: boolean; + } + | undefined; } interface DomEvents { /** Event will be triggered when Toolbar becomes hidden */ diff --git a/src/core/components/tooltip/tooltip.d.ts b/src/core/components/tooltip/tooltip.d.ts index 2fb69345aa..254bf86c21 100644 --- a/src/core/components/tooltip/tooltip.d.ts +++ b/src/core/components/tooltip/tooltip.d.ts @@ -1,4 +1,8 @@ -import Framework7, { CSSSelector, Framework7EventsClass, Framework7Plugin } from '../app/app-class.js'; +import Framework7, { + CSSSelector, + Framework7EventsClass, + Framework7Plugin, +} from '../app/app-class.js'; import { Dom7Array } from 'dom7'; export namespace Tooltip { @@ -58,30 +62,30 @@ export namespace Tooltip { /** Boolean property indicating whether it is opened/visible or not */ opened: boolean; /** Show tooltip around targetEl element. If targetEl is not specified, then it will use targetEl passed in parameters on initialization */ - show (targetEl: HTMLElement | CSSSelector): Tooltip; + show(targetEl: HTMLElement | CSSSelector): Tooltip; /** Hide tooltip */ - hide (): Tooltip; + hide(): Tooltip; /** Change tooltip text or HTML content to the new one */ - setText (text: string): Tooltip; + setText(text: string): Tooltip; /** Change tooltip target HTML element */ - setTargetEl (targetEl: HTMLElement | CSSSelector): Tooltip; + setTargetEl(targetEl: HTMLElement | CSSSelector): Tooltip; /** Destroys tooltip instance */ - destroy (): void; + destroy(): void; } interface AppMethods { tooltip: { /** create Tooltip instance */ - create (parameters: Parameters): Tooltip; + create(parameters: Parameters): Tooltip; /** destroy Tooltip instance */ - destroy (targetEl: HTMLElement | CSSSelector): void; + destroy(targetEl: HTMLElement | CSSSelector): void; /** get Tooltip instance by its target HTML element */ - get (targetEl: HTMLElement | CSSSelector): Tooltip; + get(targetEl: HTMLElement | CSSSelector): Tooltip; /** show Tooltip */ - show (targetEl: HTMLElement | CSSSelector): Tooltip; + show(targetEl: HTMLElement | CSSSelector): Tooltip; /** hide Tooltip */ - hide (targetEl: HTMLElement | CSSSelector): Tooltip; + hide(targetEl: HTMLElement | CSSSelector): Tooltip; /** change Tooltip text */ - setText (targetEl: HTMLElement | CSSSelector, text: string): Tooltip; + setText(targetEl: HTMLElement | CSSSelector, text: string): Tooltip; }; } interface AppParams { diff --git a/src/core/components/touch-ripple/touch-ripple.d.ts b/src/core/components/touch-ripple/touch-ripple.d.ts index d6523c3419..7dd6c21fc8 100644 --- a/src/core/components/touch-ripple/touch-ripple.d.ts +++ b/src/core/components/touch-ripple/touch-ripple.d.ts @@ -1,20 +1,24 @@ import { Dom7Array } from 'dom7'; -import Framework7, { CSSSelector, Framework7EventsClass, Framework7Plugin } from '../app/app-class.js'; +import Framework7, { + CSSSelector, + Framework7EventsClass, + Framework7Plugin, +} from '../app/app-class.js'; export namespace TouchRipple { interface TouchRipple { $rippleWaveEl: Dom7Array; rippleTransform: string; removing: boolean; - remove (): void; + remove(): void; } interface AppMethods { touchRipple: { - create ($el: Dom7Array, x: number, y: number): TouchRipple; + create($el: Dom7Array, x: number, y: number): TouchRipple; }; } - interface AppParams { } - interface AppEvents { } + interface AppParams {} + interface AppEvents {} } declare const TouchRippleComponent: Framework7Plugin; diff --git a/src/core/components/treeview/treeview.d.ts b/src/core/components/treeview/treeview.d.ts index cfaa9575fc..84d1adb592 100644 --- a/src/core/components/treeview/treeview.d.ts +++ b/src/core/components/treeview/treeview.d.ts @@ -1,19 +1,23 @@ -import Framework7, { CSSSelector, Framework7EventsClass, Framework7Plugin } from '../app/app-class.js'; +import Framework7, { + CSSSelector, + Framework7EventsClass, + Framework7Plugin, +} from '../app/app-class.js'; export namespace Treeview { interface AppMethods { treeview: { /** open specified treeview item */ - open (el: HTMLElement | CSSSelector): void; + open(el: HTMLElement | CSSSelector): void; /** close specified treeview item */ - close (el: HTMLElement | CSSSelector): void; + close(el: HTMLElement | CSSSelector): void; /** toggle specified treeview item */ - toggle (el: HTMLElement | CSSSelector): void; + toggle(el: HTMLElement | CSSSelector): void; }; } - interface AppParams { } + interface AppParams {} interface DomEvents { /** Event will be triggered on Treeview item open */ 'treeview:open': () => void; diff --git a/src/core/components/typography/typography.d.ts b/src/core/components/typography/typography.d.ts index 9b0916e753..3f8d4176c8 100644 --- a/src/core/components/typography/typography.d.ts +++ b/src/core/components/typography/typography.d.ts @@ -1,9 +1,13 @@ -import Framework7, { CSSSelector, Framework7EventsClass, Framework7Plugin } from '../app/app-class.js'; +import Framework7, { + CSSSelector, + Framework7EventsClass, + Framework7Plugin, +} from '../app/app-class.js'; export namespace Typography { - interface AppMethods { } - interface AppParams { } - interface AppEvents { } + interface AppMethods {} + interface AppParams {} + interface AppEvents {} } declare const TypographyComponent: Framework7Plugin; diff --git a/src/core/components/view/view.d.ts b/src/core/components/view/view.d.ts index 95676ddab4..cc1788b318 100644 --- a/src/core/components/view/view.d.ts +++ b/src/core/components/view/view.d.ts @@ -1,5 +1,9 @@ import { Dom7Array } from 'dom7'; -import Framework7, { CSSSelector, Framework7EventsClass, Framework7Plugin } from '../app/app-class.js'; +import Framework7, { + CSSSelector, + Framework7EventsClass, + Framework7Plugin, +} from '../app/app-class.js'; import { Router } from '../../modules/router/router.js'; export namespace View { @@ -23,7 +27,7 @@ export namespace View { /** View's initialized router instance */ router: Router.Router; /** Destroy view instance */ - destroy (): void; + destroy(): void; } interface Parameters { /** If enabled and View is tab, it won't initialize router and load initial page until View tab becomes visible */ @@ -167,7 +171,7 @@ export namespace View { [event in keyof Events]?: Events[event]; }; } - interface View extends Router.AppMethods { } + interface View extends Router.AppMethods {} interface Events extends Router.Events { /** Event will be fired on View init */ init: (view: View) => void; @@ -184,14 +188,14 @@ export namespace View { view: { current: View; main: View; - create (viewEl: HTMLElement | CSSSelector, parameters?: Parameters): View; - get (viewEl: HTMLElement | CSSSelector): View; + create(viewEl: HTMLElement | CSSSelector, parameters?: Parameters): View; + get(viewEl: HTMLElement | CSSSelector): View; }; views: { current: View; main: View; - create (viewEl: HTMLElement | CSSSelector, parameters?: Parameters): View; - get (viewEl: HTMLElement | CSSSelector): View; + create(viewEl: HTMLElement | CSSSelector, parameters?: Parameters): View; + get(viewEl: HTMLElement | CSSSelector): View; }; } interface AppParams { diff --git a/src/core/components/virtual-list/virtual-list.d.ts b/src/core/components/virtual-list/virtual-list.d.ts index 1316b31f90..d657caf66b 100644 --- a/src/core/components/virtual-list/virtual-list.d.ts +++ b/src/core/components/virtual-list/virtual-list.d.ts @@ -1,5 +1,9 @@ import { Dom7Array } from 'dom7'; -import Framework7, { CSSSelector, Framework7EventsClass, Framework7Plugin } from '../app/app-class.js'; +import Framework7, { + CSSSelector, + Framework7EventsClass, + Framework7Plugin, +} from '../app/app-class.js'; export namespace VirtualList { interface VirtualListRenderData { @@ -31,39 +35,39 @@ export namespace VirtualList { reachEnd: boolean; /** Filter virtual list by passing array with indexes of items to show */ - filterItems (indexes: number[]): void; + filterItems(indexes: number[]): void; /** Disable filter and display all items again */ - resetFilter (): void; + resetFilter(): void; /** Append item to virtual list */ - appendItem (item: any): void; + appendItem(item: any): void; /** Append array with items to virtual list */ - appendItems (items: any[]): void; + appendItems(items: any[]): void; /** Prepend item to virtual list */ - prependItem (item: any): void; + prependItem(item: any): void; /** Prepend array with items to virtual list */ - prependItems (items: any[]): void; + prependItems(items: any[]): void; /** Replace item at specified index with the new one */ - replaceItem (index: number, item: any): void; + replaceItem(index: number, item: any): void; /** Replace all items with arrays of new items */ - replaceAllItems (items: any[]): void; + replaceAllItems(items: any[]): void; /** Move virtual item from oldIndex to newIndex */ - moveItem (oldIndex: number, newIndex: number): void; + moveItem(oldIndex: number, newIndex: number): void; /** Insert new item before item with specified index */ - insertItemBefore (index: number, item: any): void; + insertItemBefore(index: number, item: any): void; /** Delete item at specified index */ - deleteItem (index: number): void; + deleteItem(index: number): void; /** Delete items at specified array of indexes */ - deleteItems (indexes: number[]): void; + deleteItems(indexes: number[]): void; /** Delete all items */ - deleteAllItems (): void; + deleteAllItems(): void; /** Clear virtual list cached DOM elements */ - clearCache (): void; + clearCache(): void; /** Destory initialized virtual list and detach all events */ - destroy (): void; + destroy(): void; /** Update virtual list, including recalculation of list sizes and re-rendering of virtual list */ - update (): void; + update(): void; /** Scroll Virtual List to specified item by its index number */ - scrollToItem (index: number): void; + scrollToItem(index: number): void; } interface Parameters { /** Target List Block element. In case of string - CSS selector of list block element */ @@ -116,11 +120,11 @@ export namespace VirtualList { interface AppMethods { virtualList: { /** initialize virtual list with parameters */ - create (parameters: Parameters): VirtualList; + create(parameters: Parameters): VirtualList; /** destroy Virtual List instance */ - destroy (el: HTMLElement | CSSSelector): void; + destroy(el: HTMLElement | CSSSelector): void; /** get Virtual List instance by HTML element */ - get (el: HTMLElement | CSSSelector): VirtualList; + get(el: HTMLElement | CSSSelector): VirtualList; }; } interface AppParams { diff --git a/src/core/modules/component/component.d.ts b/src/core/modules/component/component.d.ts index 0e81b3623d..bf5a2c9c31 100644 --- a/src/core/modules/component/component.d.ts +++ b/src/core/modules/component/component.d.ts @@ -7,7 +7,7 @@ import { Dom7, Dom7Array } from 'dom7'; import { Router } from '../../modules/router/router.js'; import { StoreObject as Store } from '../../modules/store/store.js'; -interface ComponentRender extends Function { } +interface ComponentRender extends Function {} export interface ComponentContext { /** Component ID */ @@ -74,21 +74,21 @@ export namespace Component { /** Object with router/view cache data */ component: { /** Create and init component */ - create ( + create( component: ComponentFunction, props?: object, context?: object, ): Promise; /** Parse component from single file component-style string */ - parse (componentString: string): ComponentFunction; + parse(componentString: string): ComponentFunction; /** Register custom component */ - registerComponent (tagName: string, component: ComponentFunction): void; + registerComponent(tagName: string, component: ComponentFunction): void; /** Unregister custom component */ - unregisterComponent (tagName: string): void; + unregisterComponent(tagName: string): void; }; } - interface AppParams { } - interface AppEvents { } + interface AppParams {} + interface AppEvents {} } declare const ComponentModule: Framework7Plugin; diff --git a/src/core/modules/device/device.d.ts b/src/core/modules/device/device.d.ts index 10e0d2ea21..788a78a8fe 100644 --- a/src/core/modules/device/device.d.ts +++ b/src/core/modules/device/device.d.ts @@ -6,8 +6,8 @@ export namespace Device { /** Object with properties about device */ device: Device; } - interface AppParams { } - interface AppEvents { } + interface AppParams {} + interface AppEvents {} } declare const DeviceModule: Framework7Plugin; diff --git a/src/core/modules/request/request.d.ts b/src/core/modules/request/request.d.ts index 999cfa3af2..f98bdc34f1 100644 --- a/src/core/modules/request/request.d.ts +++ b/src/core/modules/request/request.d.ts @@ -6,8 +6,8 @@ export namespace Request { /** Object with properties about supported features */ request: Request; } - interface AppParams { } - interface AppEvents { } + interface AppParams {} + interface AppEvents {} } declare const RequestModule: Framework7Plugin; diff --git a/src/core/modules/resize/resize.d.ts b/src/core/modules/resize/resize.d.ts index c634619753..86c610330a 100644 --- a/src/core/modules/resize/resize.d.ts +++ b/src/core/modules/resize/resize.d.ts @@ -11,7 +11,7 @@ export namespace Resize { /** App top offset in px */ top: number; } - interface AppParams { } + interface AppParams {} interface AppEvents { /** Event will be fired on app resize (window resize). */ resize: () => void; diff --git a/src/core/modules/router/router.d.ts b/src/core/modules/router/router.d.ts index 2453a769bd..5d326fe3ea 100644 --- a/src/core/modules/router/router.d.ts +++ b/src/core/modules/router/router.d.ts @@ -211,7 +211,7 @@ export namespace Router { /** Boolean property indicating is it allowed to change page / navigate or not */ allowPageChange: boolean; /** Generate route url based on a given route name */ - generateUrl (parameters: { + generateUrl(parameters: { /** route name */ name: string; /** route params */ @@ -220,17 +220,17 @@ export namespace Router { query: any; }): string; /** Navigate to (load) new page */ - navigate (url: string, options?: RouteOptions): Router; + navigate(url: string, options?: RouteOptions): Router; /** Navigate to (load) new page by parameters. This method allows to navigate to route by its name */ - navigate (parameters: NavigateParameters, options?: RouteOptions): Router; + navigate(parameters: NavigateParameters, options?: RouteOptions): Router; /** Go back to previous page, going back in View history */ - back (url?: string, options?: RouteOptions): Router; + back(url?: string, options?: RouteOptions): Router; /** Refresh/reload current page */ - refreshPage (): Router; + refreshPage(): Router; /** Clear router previous pages history and remove all previous pages from DOM */ - clearPreviousHistory (): Router; + clearPreviousHistory(): Router; /** Updates current route url, and updates `router.currentRoute` properties (query, params, hash, etc.) based on passed url. This method doesn't load or reload any content. It just changes current route url */ - updateCurrentUrl (url: string): Router; + updateCurrentUrl(url: string): Router; } interface SwipeBackData { percentage: number; @@ -241,67 +241,67 @@ export namespace Router { } interface Events { /** Event will be fired on current route change */ - routeChange (newRoute: Route, previousRoute: Route, router: Router): void; + routeChange(newRoute: Route, previousRoute: Route, router: Router): void; /** Event will be fired on current route change and after page transitions */ - routeChanged (newRoute: Route, previousRoute: Route, router: Router): void; + routeChanged(newRoute: Route, previousRoute: Route, router: Router): void; /** Event will be fired when router.updateCurrentUrl method called */ - routeUrlUpdate (newRoute: Route, router: Router): void; + routeUrlUpdate(newRoute: Route, router: Router): void; /** Event will be fired after router XHR opened and before XHR send. Can be used to modify the XHR object before it is sent. Use this callback to set custom headers, etc. As an arguments receives XHR object and navigating options object */ - routerAjaxStart (xhr: XMLHttpRequest, options: RouteOptions): void; + routerAjaxStart(xhr: XMLHttpRequest, options: RouteOptions): void; /** Event will be fired when the request succeeds. As an arguments receives XHR object and navigating options object */ - routerAjaxSuccess (xhr: XMLHttpRequest, options: RouteOptions): void; + routerAjaxSuccess(xhr: XMLHttpRequest, options: RouteOptions): void; /** Event will be fired if the request fails. As an arguments receives XHR object and navigating options object */ - routerAjaxError (xhr: XMLHttpRequest, options: RouteOptions): void; + routerAjaxError(xhr: XMLHttpRequest, options: RouteOptions): void; /** Event will be fired when the request finishes. As an arguments receives XHR object and navigating options object */ - routerAjaxComplete (xhr: XMLHttpRequest, options: RouteOptions): void; + routerAjaxComplete(xhr: XMLHttpRequest, options: RouteOptions): void; /** Event will be triggered during swipe back move */ - swipebackMove (data: SwipeBackData): void; + swipebackMove(data: SwipeBackData): void; /** Event will be triggered right before swipe back animation to previous page when you release it */ - swipebackBeforeChange (data: SwipeBackData): void; + swipebackBeforeChange(data: SwipeBackData): void; /** Event will be triggered after swipe back animation to previous page when you release it */ - swipebackAfterChange (data: SwipeBackData): void; + swipebackAfterChange(data: SwipeBackData): void; /** Event will be triggered right before swipe back animation to current page when you release it */ - swipebackBeforeReset (data: SwipeBackData): void; + swipebackBeforeReset(data: SwipeBackData): void; /** Event will be triggered after swipe back animation to current page when you release it */ - swipebackAfterReset (data: SwipeBackData): void; + swipebackAfterReset(data: SwipeBackData): void; /** Event will be triggered when new page just inserted to DOM. As an argument event receives Page Data */ - pageMounted (page: Page): void; + pageMounted(page: Page): void; /** Event will be triggered after Router initialize required page's components and navbar. As an argument event receives Page Data */ - pageInit (page: Page): void; + pageInit(page: Page): void; /** This event will be triggered in case of navigating to the page that was already initialized. As an argument event receives Page Data */ - pageReinit (page: Page): void; + pageReinit(page: Page): void; /** Event will be triggered when everything initialized and page is ready to be transitioned into view (into active/current position). As an argument event receives Page Data */ - pageBeforeIn (page: Page): void; + pageBeforeIn(page: Page): void; /** Event will be triggered after page transitioned into view. As an argument event receives Page Data */ - pageAfterIn (page: Page): void; + pageAfterIn(page: Page): void; /** Event will be triggered right before page is going to be transitioned out of view. As an argument event receives Page Data */ - pageBeforeOut (page: Page): void; + pageBeforeOut(page: Page): void; /** Event will be triggered after page transitioned out of view. As an argument event receives Page Data */ - pageAfterOut (page: Page): void; + pageAfterOut(page: Page): void; /** Event will be triggered right before Page will be removed from DOM. This event could be very useful if you need to detach some events / destroy some plugins to free memory. As an argument event receives Page Data */ - pageBeforeRemove (page: Page): void; + pageBeforeRemove(page: Page): void; /** Event will be triggered on page's parent View-Tab show */ - pageTabShow (pageEl: HTMLElement): void; + pageTabShow(pageEl: HTMLElement): void; /** Event will be triggered on page's parent View-Tab hide */ - pageTabHide (pageEl: HTMLElement): void; + pageTabHide(pageEl: HTMLElement): void; /** Event will be triggered right after routable Tab content will be loaded */ - tabInit (newTabEl: HTMLElement, tabRoute: Route): void; + tabInit(newTabEl: HTMLElement, tabRoute: Route): void; /** Event will be triggered right after routable Tab content will be loaded */ - tabMounted (newTabEl: HTMLElement, tabRoute: Route): void; + tabMounted(newTabEl: HTMLElement, tabRoute: Route): void; /** Event will be triggered right before routable Tab content will be removed */ - tabBeforeRemove (oldTabEl: HTMLElement, newTabEl: HTMLElement, tabRoute: Route): void; + tabBeforeRemove(oldTabEl: HTMLElement, newTabEl: HTMLElement, tabRoute: Route): void; /** Event will be triggered right after routable modal content will be loaded and added to DOM */ - modalInit (modalEl: HTMLElement, modalRoute: Route, modal: any): void; + modalInit(modalEl: HTMLElement, modalRoute: Route, modal: any): void; /** Event will be triggered right after routable modal content will be loaded and added to DOM */ - modalMounted (modalEl: HTMLElement, modalRoute: Route, modal: any): void; + modalMounted(modalEl: HTMLElement, modalRoute: Route, modal: any): void; /** Event will be triggered right before routable modal will be removed from DOM and destroyed */ - modalBeforeRemove (modalEl: HTMLElement, modalRoute: Route, modal: any): void; + modalBeforeRemove(modalEl: HTMLElement, modalRoute: Route, modal: any): void; } interface DomEvents { /** Event will be triggered during swipe back move */ @@ -348,7 +348,7 @@ export namespace Router { /** Set to false to disable the router. */ router?: false; } - interface AppEvents { } + interface AppEvents {} } declare const RouterModule: Framework7Plugin; diff --git a/src/core/modules/service-worker/service-worker.d.ts b/src/core/modules/service-worker/service-worker.d.ts index f6cbebeb5f..2869fa4521 100644 --- a/src/core/modules/service-worker/service-worker.d.ts +++ b/src/core/modules/service-worker/service-worker.d.ts @@ -8,9 +8,9 @@ export namespace ServiceWorker { /** Array with service workers registrations */ registrations: ServiceWorkerRegistration[]; /** Register service worker */ - register (path: string, scope?: string): Promise; + register(path: string, scope?: string): Promise; /** Unregister service worker */ - unregister (registration?: ServiceWorkerRegistration): Promise; + unregister(registration?: ServiceWorkerRegistration): Promise; }; } interface AppParams { diff --git a/src/core/modules/store/store.d.ts b/src/core/modules/store/store.d.ts index 44d162c6ab..b0b9d57b69 100644 --- a/src/core/modules/store/store.d.ts +++ b/src/core/modules/store/store.d.ts @@ -33,7 +33,7 @@ export namespace Store { /** Store */ store?: StoreParameters | StoreObject; } - interface AppEvents { } + interface AppEvents {} } declare const StoreModule: Framework7Plugin; diff --git a/src/core/modules/support/support.d.ts b/src/core/modules/support/support.d.ts index b4b3f5ad73..de8b2375e2 100644 --- a/src/core/modules/support/support.d.ts +++ b/src/core/modules/support/support.d.ts @@ -6,8 +6,8 @@ export namespace Support { /** Object with properties about supported features */ support: Support; } - interface AppParams { } - interface AppEvents { } + interface AppParams {} + interface AppEvents {} } declare const SupportModule: Framework7Plugin; diff --git a/src/core/modules/touch/touch.d.ts b/src/core/modules/touch/touch.d.ts index a7b64ecb53..bec558ff29 100644 --- a/src/core/modules/touch/touch.d.ts +++ b/src/core/modules/touch/touch.d.ts @@ -11,33 +11,33 @@ export namespace Touch { interface AppParams { /** Object with touch-module related parameters */ touch?: - | { - /** Distance threshold (in px) to prevent short swipes. So if tap/move distance is larger than this value then "click" will not be triggered. (default 5) */ - touchClicksDistanceThreshold?: number; - /** . (default true) */ - disableContextMenu?: boolean; - /** Enables tap hold. (default false) */ - tapHold?: boolean; - /** Determines how long (in ms) the user must hold their tap before the taphold event is fired on the target element. (default 750) */ - tapHoldDelay?: number; - /** When enabled (by default), then click event will not be fired after tap hold event. (default true) */ - tapHoldPreventClicks?: boolean; - /** When enabled, app will add "active-state" class to currently touched (:active) element.. (default true) */ - activeState?: boolean; - /** CSS selector of elements where enabled activeState will add appropriate active class. (default a, button, label, span, .actions-button, .stepper-button, .stepper-button-plus, .stepper-button-minus, .card-expandable, .menu-item, .link, .item-link) */ - activeStateElements?: string; - /** Enables MD-theme specific touch ripple effect. (default true) */ - mdTouchRipple?: boolean; - /** Enables iOS-theme specific touch ripple effect. (default false) */ - iosTouchRipple?: boolean; - /** Enables Aurora-theme specific touch ripple effect. (default false) */ - auroraTouchRipple?: boolean; - /** CSS selector of elements to apply touch ripple effect on click. (default .ripple, .link, .item-link, .list-button, .links-list a, .button, button, .input-clear-button, .dialog-button, .tab-link, .item-radio, .item-checkbox, .actions-button, .searchbar-disable-button, .fab a, .checkbox, .radio, .data-table .sortable-cell:not(.input-cell), .notification-close-button, .stepper-button, .stepper-button-minus, .stepper-button-plus, .menu-item-content) */ - touchRippleElements?: string; - /** CSS selector of elements to with inset touch ripple effect. (default .ripple-inset, .icon-only, .searchbar-disable-button, .input-clear-button, .notification-close-button, .md .navbar .link.back) */ - touchRippleInsetElements?: string; - } - | undefined; + | { + /** Distance threshold (in px) to prevent short swipes. So if tap/move distance is larger than this value then "click" will not be triggered. (default 5) */ + touchClicksDistanceThreshold?: number; + /** . (default true) */ + disableContextMenu?: boolean; + /** Enables tap hold. (default false) */ + tapHold?: boolean; + /** Determines how long (in ms) the user must hold their tap before the taphold event is fired on the target element. (default 750) */ + tapHoldDelay?: number; + /** When enabled (by default), then click event will not be fired after tap hold event. (default true) */ + tapHoldPreventClicks?: boolean; + /** When enabled, app will add "active-state" class to currently touched (:active) element.. (default true) */ + activeState?: boolean; + /** CSS selector of elements where enabled activeState will add appropriate active class. (default a, button, label, span, .actions-button, .stepper-button, .stepper-button-plus, .stepper-button-minus, .card-expandable, .menu-item, .link, .item-link) */ + activeStateElements?: string; + /** Enables MD-theme specific touch ripple effect. (default true) */ + mdTouchRipple?: boolean; + /** Enables iOS-theme specific touch ripple effect. (default false) */ + iosTouchRipple?: boolean; + /** Enables Aurora-theme specific touch ripple effect. (default false) */ + auroraTouchRipple?: boolean; + /** CSS selector of elements to apply touch ripple effect on click. (default .ripple, .link, .item-link, .list-button, .links-list a, .button, button, .input-clear-button, .dialog-button, .tab-link, .item-radio, .item-checkbox, .actions-button, .searchbar-disable-button, .fab a, .checkbox, .radio, .data-table .sortable-cell:not(.input-cell), .notification-close-button, .stepper-button, .stepper-button-minus, .stepper-button-plus, .menu-item-content) */ + touchRippleElements?: string; + /** CSS selector of elements to with inset touch ripple effect. (default .ripple-inset, .icon-only, .searchbar-disable-button, .input-clear-button, .notification-close-button, .md .navbar .link.back) */ + touchRippleInsetElements?: string; + } + | undefined; } interface AppEvents { /** Event will be fired on app click */ diff --git a/src/core/modules/utils/utils.d.ts b/src/core/modules/utils/utils.d.ts index a9b08edfb4..542ce73f20 100644 --- a/src/core/modules/utils/utils.d.ts +++ b/src/core/modules/utils/utils.d.ts @@ -6,8 +6,8 @@ export namespace Utils { /** Object with set of helper methods */ utils: Utils; } - interface AppParams { } - interface AppEvents { } + interface AppParams {} + interface AppEvents {} } declare const UtilsModule: Framework7Plugin;