forked from ddnexus/pagy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reduced the public interface of pagy.js and relative files to just ve…
…rsion and init()
- Loading branch information
Showing
6 changed files
with
140 additions
and
167 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,5 @@ | ||
declare type NavArgs = readonly [Tags, Sequels, null | LabelSequels, string?]; | ||
declare type ComboArgs = readonly [string, string?]; | ||
declare type SelectorArgs = readonly [number, string, string?]; | ||
interface Tags { | ||
readonly before: string; | ||
readonly link: string; | ||
readonly active: string; | ||
readonly gap: string; | ||
readonly after: string; | ||
} | ||
interface Sequels { | ||
readonly [width: string]: (string | number | "gap")[]; | ||
} | ||
interface LabelSequels { | ||
readonly [width: string]: string[]; | ||
} | ||
interface NavElement extends Element { | ||
pagyRender(): void; | ||
} | ||
declare const Pagy: { | ||
version: string; | ||
init(arg?: Element | never): void; | ||
initNav(el: NavElement, [tags, sequels, labelSequels, trimParam]: NavArgs): void; | ||
rjsObserver: ResizeObserver; | ||
initCombo(el: Element, [link, trimParam]: ComboArgs): void; | ||
initSelector(el: Element, [from, link, trimParam]: SelectorArgs): void; | ||
initInput(el: Element, getVars: (v: string) => [string, string], trimParam?: string): void; | ||
trim: (link: string, param: string) => string; | ||
}; | ||
export default Pagy; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
import Pagy from "./pagy-module"; | ||
// Toplevel var (needed for generating the production file) | ||
window.Pagy = Pagy; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFpbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIm1haW4udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxJQUFJLE1BQU0sZUFBZSxDQUFDO0FBTWpDLDJEQUEyRDtBQUMzRCxNQUFNLENBQUMsSUFBSSxHQUFHLElBQUksQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBQYWd5IGZyb20gXCIuL3BhZ3ktbW9kdWxlXCI7XG5kZWNsYXJlIGdsb2JhbCB7XG4gICAgaW50ZXJmYWNlIFdpbmRvdyB7XG4gICAgICAgIFBhZ3k6IHR5cGVvZiBQYWd5O1xuICAgIH1cbn1cbi8vIFRvcGxldmVsIHZhciAobmVlZGVkIGZvciBnZW5lcmF0aW5nIHRoZSBwcm9kdWN0aW9uIGZpbGUpXG53aW5kb3cuUGFneSA9IFBhZ3k7XG4iXX0= |
Oops, something went wrong.