@types/semantic-ui-popup
Advanced tools
Comparing version 2.2.3 to 2.2.4
@@ -12,66 +12,66 @@ interface JQuery { | ||
*/ | ||
(behavior: 'show'): JQuery; | ||
(behavior: "show"): JQuery; | ||
/** | ||
* Hides popup | ||
*/ | ||
(behavior: 'hide'): JQuery; | ||
(behavior: "hide"): JQuery; | ||
/** | ||
* Hides all visible pop ups on the page | ||
*/ | ||
(behavior: 'hide all'): JQuery; | ||
(behavior: "hide all"): JQuery; | ||
/** | ||
* Returns current popup dom element | ||
*/ | ||
(behavior: 'get popup'): JQuery; | ||
(behavior: "get popup"): JQuery; | ||
/** | ||
* Changes current popup content | ||
*/ | ||
(behavior: 'change content', html: string): JQuery; | ||
(behavior: "change content", html: string): JQuery; | ||
/** | ||
* Toggles visibility of popup | ||
*/ | ||
(behavior: 'toggle'): JQuery; | ||
(behavior: "toggle"): JQuery; | ||
/** | ||
* Returns whether popup is visible | ||
*/ | ||
(behavior: 'is visible'): boolean; | ||
(behavior: "is visible"): boolean; | ||
/** | ||
* Returns whether popup is hidden | ||
*/ | ||
(behavior: 'is hidden'): boolean; | ||
(behavior: "is hidden"): boolean; | ||
/** | ||
* Returns whether popup is created and inserted into the page | ||
*/ | ||
(behavior: 'exists'): boolean; | ||
(behavior: "exists"): boolean; | ||
/** | ||
* Adjusts popup when content size changes (only necessary for centered popups) | ||
*/ | ||
(behavior: 'reposition'): JQuery; | ||
(behavior: "reposition"): JQuery; | ||
/** | ||
* Repositions a popup | ||
*/ | ||
(behavior: 'set position', position: string): JQuery; | ||
(behavior: "set position", position: string): JQuery; | ||
/** | ||
* @since 2.2.11 | ||
*/ | ||
(behavior: 'bind clickaway'): JQuery; | ||
(behavior: "bind clickaway"): JQuery; | ||
/** | ||
* @since 2.2.11 | ||
*/ | ||
(behavior: 'bind touch close'): JQuery; | ||
(behavior: "bind touch close"): JQuery; | ||
/** | ||
* @since 2.2.11 | ||
*/ | ||
(behavior: 'bind close on scroll'): JQuery; | ||
(behavior: "bind close on scroll"): JQuery; | ||
/** | ||
* Removes popup from the page and removes all events | ||
*/ | ||
(behavior: 'destroy'): JQuery; | ||
(behavior: "destroy"): JQuery; | ||
/** | ||
* Removes popup from the page | ||
*/ | ||
(behavior: 'remove popup'): JQuery; | ||
<K extends keyof PopupSettings>(behavior: 'setting', name: K, value?: undefined): PopupSettings._Impl[K]; | ||
<K extends keyof PopupSettings>(behavior: 'setting', name: K, value: PopupSettings._Impl[K]): JQuery; | ||
(behavior: 'setting', value: PopupSettings): JQuery; | ||
(behavior: "remove popup"): JQuery; | ||
<K extends keyof PopupSettings>(behavior: "setting", name: K, value?: undefined): PopupSettings._Impl[K]; | ||
<K extends keyof PopupSettings>(behavior: "setting", name: K, value: PopupSettings._Impl[K]): JQuery; | ||
(behavior: "setting", value: PopupSettings): JQuery; | ||
(settings?: PopupSettings): JQuery; | ||
@@ -86,50 +86,53 @@ } | ||
namespace PopupSettings { | ||
type Param = (Pick<_Impl, 'popup'> | | ||
Pick<_Impl, 'exclusive'> | | ||
Pick<_Impl, 'movePopup'> | | ||
Pick<_Impl, 'observeChanges'> | | ||
Pick<_Impl, 'boundary'> | | ||
Pick<_Impl, 'context'> | | ||
Pick<_Impl, 'scrollContext'> | | ||
Pick<_Impl, 'jitter'> | | ||
Pick<_Impl, 'position'> | | ||
Pick<_Impl, 'inline'> | | ||
Pick<_Impl, 'preserve'> | | ||
Pick<_Impl, 'prefer'> | | ||
Pick<_Impl, 'lastResort'> | | ||
Pick<_Impl, 'on'> | | ||
Pick<_Impl, 'delay'> | | ||
Pick<_Impl, 'transition'> | | ||
Pick<_Impl, 'duration'> | | ||
Pick<_Impl, 'setFluidWidth'> | | ||
Pick<_Impl, 'hoverable'> | | ||
Pick<_Impl, 'closable'> | | ||
Pick<_Impl, 'addTouchEvents'> | | ||
Pick<_Impl, 'hideOnScroll'> | | ||
Pick<_Impl, 'target'> | | ||
Pick<_Impl, 'distanceAway'> | | ||
Pick<_Impl, 'offset'> | | ||
Pick<_Impl, 'maxSearchDepth'> | | ||
Pick<_Impl, 'onCreate'> | | ||
Pick<_Impl, 'onRemove'> | | ||
Pick<_Impl, 'onShow'> | | ||
Pick<_Impl, 'onVisible'> | | ||
Pick<_Impl, 'onHide'> | | ||
Pick<_Impl, 'onHidden'> | | ||
Pick<_Impl, 'onUnplaceable'> | | ||
Pick<_Impl, 'variation'> | | ||
Pick<_Impl, 'content'> | | ||
Pick<_Impl, 'title'> | | ||
Pick<_Impl, 'html'> | | ||
Pick<_Impl, 'selector'> | | ||
Pick<_Impl, 'metadata'> | | ||
Pick<_Impl, 'className'> | | ||
Pick<_Impl, 'error'> | | ||
Pick<_Impl, 'namespace'> | | ||
Pick<_Impl, 'name'> | | ||
Pick<_Impl, 'silent'> | | ||
Pick<_Impl, 'debug'> | | ||
Pick<_Impl, 'performance'> | | ||
Pick<_Impl, 'verbose'>) & | ||
Partial<Pick<_Impl, keyof _Impl>>; | ||
type Param = | ||
& ( | ||
| Pick<_Impl, "popup"> | ||
| Pick<_Impl, "exclusive"> | ||
| Pick<_Impl, "movePopup"> | ||
| Pick<_Impl, "observeChanges"> | ||
| Pick<_Impl, "boundary"> | ||
| Pick<_Impl, "context"> | ||
| Pick<_Impl, "scrollContext"> | ||
| Pick<_Impl, "jitter"> | ||
| Pick<_Impl, "position"> | ||
| Pick<_Impl, "inline"> | ||
| Pick<_Impl, "preserve"> | ||
| Pick<_Impl, "prefer"> | ||
| Pick<_Impl, "lastResort"> | ||
| Pick<_Impl, "on"> | ||
| Pick<_Impl, "delay"> | ||
| Pick<_Impl, "transition"> | ||
| Pick<_Impl, "duration"> | ||
| Pick<_Impl, "setFluidWidth"> | ||
| Pick<_Impl, "hoverable"> | ||
| Pick<_Impl, "closable"> | ||
| Pick<_Impl, "addTouchEvents"> | ||
| Pick<_Impl, "hideOnScroll"> | ||
| Pick<_Impl, "target"> | ||
| Pick<_Impl, "distanceAway"> | ||
| Pick<_Impl, "offset"> | ||
| Pick<_Impl, "maxSearchDepth"> | ||
| Pick<_Impl, "onCreate"> | ||
| Pick<_Impl, "onRemove"> | ||
| Pick<_Impl, "onShow"> | ||
| Pick<_Impl, "onVisible"> | ||
| Pick<_Impl, "onHide"> | ||
| Pick<_Impl, "onHidden"> | ||
| Pick<_Impl, "onUnplaceable"> | ||
| Pick<_Impl, "variation"> | ||
| Pick<_Impl, "content"> | ||
| Pick<_Impl, "title"> | ||
| Pick<_Impl, "html"> | ||
| Pick<_Impl, "selector"> | ||
| Pick<_Impl, "metadata"> | ||
| Pick<_Impl, "className"> | ||
| Pick<_Impl, "error"> | ||
| Pick<_Impl, "namespace"> | ||
| Pick<_Impl, "name"> | ||
| Pick<_Impl, "silent"> | ||
| Pick<_Impl, "debug"> | ||
| Pick<_Impl, "performance"> | ||
| Pick<_Impl, "verbose"> | ||
) | ||
& Partial<Pick<_Impl, keyof _Impl>>; | ||
@@ -210,3 +213,3 @@ interface _Impl { | ||
*/ | ||
prefer: 'adjacent' | 'opposite'; | ||
prefer: "adjacent" | "opposite"; | ||
/** | ||
@@ -225,3 +228,3 @@ * When set to false, a popup will not appear and produce an error message if it cannot entirely fit on page. | ||
*/ | ||
on: 'focus' | 'click' | 'hover' | 'manual'; | ||
on: "focus" | "click" | "hover" | "manual"; | ||
/** | ||
@@ -272,3 +275,3 @@ * Delay in milliseconds before showing or hiding a popup on hover or focus | ||
*/ | ||
hideOnScroll: 'auto' | false; | ||
hideOnScroll: "auto" | false; | ||
/** | ||
@@ -422,5 +425,8 @@ * If a selector or jQuery object is specified this allows the popup to be positioned relative to that element. | ||
namespace DelaySettings { | ||
type Param = (Pick<_Impl, 'show'> | | ||
Pick<_Impl, 'hide'>) & | ||
Partial<Pick<_Impl, keyof _Impl>>; | ||
type Param = | ||
& ( | ||
| Pick<_Impl, "show"> | ||
| Pick<_Impl, "hide"> | ||
) | ||
& Partial<Pick<_Impl, keyof _Impl>>; | ||
@@ -436,4 +442,5 @@ interface _Impl { | ||
namespace SelectorSettings { | ||
type Param = (Pick<_Impl, 'popup'>) & | ||
Partial<Pick<_Impl, keyof _Impl>>; | ||
type Param = | ||
& (Pick<_Impl, "popup">) | ||
& Partial<Pick<_Impl, keyof _Impl>>; | ||
@@ -451,9 +458,12 @@ interface _Impl { | ||
namespace MetadataSettings { | ||
type Param = (Pick<_Impl, 'content'> | | ||
Pick<_Impl, 'html'> | | ||
Pick<_Impl, 'offset'> | | ||
Pick<_Impl, 'position'> | | ||
Pick<_Impl, 'title'> | | ||
Pick<_Impl, 'variation'>) & | ||
Partial<Pick<_Impl, keyof _Impl>>; | ||
type Param = | ||
& ( | ||
| Pick<_Impl, "content"> | ||
| Pick<_Impl, "html"> | ||
| Pick<_Impl, "offset"> | ||
| Pick<_Impl, "position"> | ||
| Pick<_Impl, "title"> | ||
| Pick<_Impl, "variation"> | ||
) | ||
& Partial<Pick<_Impl, keyof _Impl>>; | ||
@@ -491,8 +501,11 @@ interface _Impl { | ||
namespace ClassNameSettings { | ||
type Param = (Pick<_Impl, 'loading'> | | ||
Pick<_Impl, 'popup'> | | ||
Pick<_Impl, 'position'> | | ||
Pick<_Impl, 'visible'> | | ||
Pick<_Impl, 'popupVisible'>) & | ||
Partial<Pick<_Impl, keyof _Impl>>; | ||
type Param = | ||
& ( | ||
| Pick<_Impl, "loading"> | ||
| Pick<_Impl, "popup"> | ||
| Pick<_Impl, "position"> | ||
| Pick<_Impl, "visible"> | ||
| Pick<_Impl, "popupVisible"> | ||
) | ||
& Partial<Pick<_Impl, keyof _Impl>>; | ||
@@ -526,8 +539,11 @@ interface _Impl { | ||
namespace ErrorSettings { | ||
type Param = (Pick<_Impl, 'invalidPosition'> | | ||
Pick<_Impl, 'cannotPlace'> | | ||
Pick<_Impl, 'method'> | | ||
Pick<_Impl, 'noTransition'> | | ||
Pick<_Impl, 'notFound'>) & | ||
Partial<Pick<_Impl, keyof _Impl>>; | ||
type Param = | ||
& ( | ||
| Pick<_Impl, "invalidPosition"> | ||
| Pick<_Impl, "cannotPlace"> | ||
| Pick<_Impl, "method"> | ||
| Pick<_Impl, "noTransition"> | ||
| Pick<_Impl, "notFound"> | ||
) | ||
& Partial<Pick<_Impl, keyof _Impl>>; | ||
@@ -534,0 +550,0 @@ interface _Impl { |
{ | ||
"name": "@types/semantic-ui-popup", | ||
"version": "2.2.3", | ||
"version": "2.2.4", | ||
"description": "TypeScript definitions for semantic-ui-popup", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/semantic-ui-popup", | ||
"license": "MIT", | ||
@@ -9,9 +10,12 @@ "contributors": [ | ||
"name": "Leonard Thieu", | ||
"url": "https://github.com/leonard-thieu" | ||
"url": "https://github.com/leonard-thieu", | ||
"githubUsername": "leonard-thieu" | ||
} | ||
], | ||
"main": "", | ||
"types": "index.d.ts", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git" | ||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", | ||
"directory": "types/semantic-ui-popup" | ||
}, | ||
@@ -22,5 +26,4 @@ "scripts": {}, | ||
}, | ||
"peerDependencies": {}, | ||
"typesPublisherContentHash": "0c50d1704d90b4523631b616b4039bd0e6bd2c5aeef02e825c2c5bf527d9af1a", | ||
"typeScriptVersion": "2.3" | ||
"typesPublisherContentHash": "7a2c9fcce620c78e6cf8983cbed8516620ef4b83cad356959f94507e83f212ca", | ||
"typeScriptVersion": "4.5" | ||
} |
@@ -8,10 +8,10 @@ # Installation | ||
# Details | ||
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/semantic-ui-popup | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/semantic-ui-popup. | ||
Additional Details | ||
* Last updated: Thu, 27 Jul 2017 21:51:09 GMT | ||
* Dependencies: jquery | ||
### Additional Details | ||
* Last updated: Mon, 25 Sep 2023 13:39:06 GMT | ||
* Dependencies: [@types/jquery](https://npmjs.com/package/@types/jquery) | ||
* Global values: none | ||
# Credits | ||
These definitions were written by Leonard Thieu <https://github.com/leonard-thieu>. | ||
These definitions were written by [Leonard Thieu](https://github.com/leonard-thieu). |
Sorry, the diff of this file is not supported yet
21638
531