mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-06 05:24:01 -06:00
ENH: model info display UI
Change-Id: I066c0e7f8ce87ec00b1141a1b44430444a819b42 (cherry picked from commit 05907a1a42da82737090d55046974d401f8af057)
This commit is contained in:
parent
0cc953ad41
commit
b4ffa91cb4
343 changed files with 54828 additions and 2 deletions
21
resources/web/include/swiper/node_modules/dom7/LICENSE
generated
vendored
Normal file
21
resources/web/include/swiper/node_modules/dom7/LICENSE
generated
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
MIT License
|
||||
|
||||
Copyright (c) 2017 Vladimir Kharlampidi
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
47
resources/web/include/swiper/node_modules/dom7/README.md
generated
vendored
Normal file
47
resources/web/include/swiper/node_modules/dom7/README.md
generated
vendored
Normal file
|
@ -0,0 +1,47 @@
|
|||
# Dom7
|
||||
|
||||
### Minimalistic JavaScript library for DOM manipulation, with a jQuery-compatible API
|
||||
|
||||
Dom7 - is the default DOM manipulation library built-in [Framework7](https://framework7.io). It utilizes most edge and high-performance methods for DOM manipulation. You don’t need to learn something new, its usage is very simple because it has the same syntax as well known jQuery library with support of the most popular and widely used methods and jQuery-like chaining.
|
||||
|
||||
See [Framework7 Dom7](https://framework7.io/docs/dom7.html) documentation for usage examples and available methods.
|
||||
|
||||
## Installation
|
||||
|
||||
Dom7 can be installed with NPM:
|
||||
|
||||
```
|
||||
npm install dom7 --save
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
// import Dom7 and methods you need
|
||||
import { $, addClass, removeClass, toggleClass, on } from 'dom7';
|
||||
|
||||
// install methods
|
||||
$.fn.addClass = addClass;
|
||||
$.fn.removeClass = removeClass;
|
||||
$.fn.toggleClass = toggleClass;
|
||||
$.fn.on = on;
|
||||
|
||||
// use
|
||||
$('p').addClass('custom-paragraph');
|
||||
|
||||
$('p').on('click', function() {
|
||||
$(this).toggleClass('custom-paragraph');
|
||||
});
|
||||
```
|
||||
|
||||
## Documentation
|
||||
|
||||
See [full documenation here](https://framework7.io/docs/dom7.html)
|
||||
|
||||
## Contribution
|
||||
|
||||
Yes please! See the [contributing guidelines](https://github.com/nolimits4web/dom7/blob/master/CONTRIBUTING.md) for details.
|
||||
|
||||
## Licence
|
||||
|
||||
This project is licensed under the terms of the [MIT license](https://github.com/nolimits4web/dom7/blob/master/LICENSE).
|
628
resources/web/include/swiper/node_modules/dom7/dom7.d.ts
generated
vendored
Normal file
628
resources/web/include/swiper/node_modules/dom7/dom7.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,628 @@
|
|||
export interface Dom7Array {
|
||||
/* ====== DEFAULT ARRAY METHODS ====== */
|
||||
/**
|
||||
* Gets or sets the length of the array. This is a number one higher than the highest element defined in an array.
|
||||
*/
|
||||
length: number;
|
||||
|
||||
/**
|
||||
* Removes the last element from an array and returns it.
|
||||
*/
|
||||
pop(): Element | undefined;
|
||||
/**
|
||||
* Appends new elements to an array, and returns the new length of the array.
|
||||
* @param items New elements of the Array.
|
||||
*/
|
||||
push(...items: Element[]): number;
|
||||
/**
|
||||
* Combines two or more arrays.
|
||||
* @param items Additional items to add to the end of array1.
|
||||
*/
|
||||
concat(...items: ConcatArray<Element>[]): Element[];
|
||||
/**
|
||||
* Combines two or more arrays.
|
||||
* @param items Additional items to add to the end of array1.
|
||||
*/
|
||||
concat(...items: (Element | ConcatArray<Element>)[]): Element[];
|
||||
/**
|
||||
* Adds all the elements of an array separated by the specified separator string.
|
||||
* @param separator A string used to separate one element of an array from the next in the resulting String. If omitted, the array elements are separated with a comma.
|
||||
*/
|
||||
join(separator?: string): string;
|
||||
/**
|
||||
* Reverses the elements in an Array.
|
||||
*/
|
||||
reverse(): Element[];
|
||||
/**
|
||||
* Removes the first element from an array and returns it.
|
||||
*/
|
||||
shift(): Element | undefined;
|
||||
/**
|
||||
* Returns a section of an array.
|
||||
* @param start The beginning of the specified portion of the array.
|
||||
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
|
||||
*/
|
||||
slice(start?: number, end?: number): Element[];
|
||||
/**
|
||||
* Sorts an array.
|
||||
* @param compareFn Function used to determine the order of the elements. It is expected to return
|
||||
* a negative value if first argument is less than second argument, zero if they're equal and a positive
|
||||
* value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
|
||||
* ```ts
|
||||
* [11,2,22,1].sort((a, b) => a - b)
|
||||
* ```
|
||||
*/
|
||||
sort(compareFn?: (a: Element, b: Element) => number): this;
|
||||
/**
|
||||
* Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.
|
||||
* @param start The zero-based location in the array from which to start removing elements.
|
||||
* @param deleteCount The number of elements to remove.
|
||||
*/
|
||||
splice(start: number, deleteCount?: number): Element[];
|
||||
/**
|
||||
* Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.
|
||||
* @param start The zero-based location in the array from which to start removing elements.
|
||||
* @param deleteCount The number of elements to remove.
|
||||
* @param items Elements to insert into the array in place of the deleted elements.
|
||||
*/
|
||||
splice(start: number, deleteCount: number, ...items: Element[]): Element[];
|
||||
/**
|
||||
* Inserts new elements at the start of an array.
|
||||
* @param items Elements to insert at the start of the Array.
|
||||
*/
|
||||
unshift(...items: Element[]): number;
|
||||
/**
|
||||
* Returns the index of the first occurrence of a value in an array.
|
||||
* @param searchElement The value to locate in the array.
|
||||
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.
|
||||
*/
|
||||
indexOf(searchElement: Element, fromIndex?: number): number;
|
||||
/**
|
||||
* Returns the index of the last occurrence of a specified value in an array.
|
||||
* @param searchElement The value to locate in the array.
|
||||
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at the last index in the array.
|
||||
*/
|
||||
lastIndexOf(searchElement: Element, fromIndex?: number): number;
|
||||
/**
|
||||
* Determines whether all the members of an array satisfy the specified test.
|
||||
* @param callbackfn A function that accepts up to three arguments. The every method calls
|
||||
* the callbackfn function for each element in the array until the callbackfn returns a value
|
||||
* which is coercible to the Boolean value false, or until the end of the array.
|
||||
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
||||
* If thisArg is omitted, undefined is used as the this value.
|
||||
*/
|
||||
every(
|
||||
callbackfn: (value: Element, index: number, array: Element[]) => unknown,
|
||||
thisArg?: any,
|
||||
): boolean;
|
||||
/**
|
||||
* Determines whether the specified callback function returns true for any element of an array.
|
||||
* @param callbackfn A function that accepts up to three arguments. The some method calls
|
||||
* the callbackfn function for each element in the array until the callbackfn returns a value
|
||||
* which is coercible to the Boolean value true, or until the end of the array.
|
||||
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
||||
* If thisArg is omitted, undefined is used as the this value.
|
||||
*/
|
||||
some(
|
||||
callbackfn: (value: Element, index: number, array: Element[]) => unknown,
|
||||
thisArg?: any,
|
||||
): boolean;
|
||||
/**
|
||||
* Performs the specified action for each element in an array.
|
||||
* @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.
|
||||
* @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
|
||||
*/
|
||||
forEach(
|
||||
callbackfn: (value: Element, index: number, array: Element[]) => void,
|
||||
thisArg?: any,
|
||||
): void;
|
||||
/**
|
||||
* Calls a defined callback function on each element of an array, and returns an array that contains the results.
|
||||
* @param callbackfn A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.
|
||||
* @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
|
||||
*/
|
||||
map<U>(
|
||||
callbackfn: (value: Element, index: number, array: Element[]) => U,
|
||||
thisArg?: any,
|
||||
): U[];
|
||||
|
||||
/* ====== DOM7 ARRAY METHODS ====== */
|
||||
|
||||
/** Retrieve one of the elements matched by the Dom7Array object (jQuery syntax). **/
|
||||
[index: number]: Element;
|
||||
|
||||
// CLASSES
|
||||
/** Add class to elements */
|
||||
addClass(className: string): Dom7Array;
|
||||
/** Remove specified class */
|
||||
removeClass(className: string): Dom7Array;
|
||||
/** Determine whether any of the matched elements are assigned the given class */
|
||||
hasClass(className: string): Dom7Array;
|
||||
/** Remove (if class is present) or add (if not) one or more classes from each element in the set of matched elements */
|
||||
toggleClass(className: string): Dom7Array;
|
||||
|
||||
// ATTRIBUTES AND PROPERTIES
|
||||
/** Get property value */
|
||||
prop(propName: string): any;
|
||||
/** Set single property value */
|
||||
prop(propName: string, propValue: any): Dom7Array;
|
||||
/** Set multiple properties */
|
||||
prop(propertiesObject: any): Dom7Array;
|
||||
/** Get attribute value */
|
||||
attr(attrName: string): string;
|
||||
/** Set single attribute value */
|
||||
attr(attrName: string, attrValue: string): Dom7Array;
|
||||
/** Set multiple attributes */
|
||||
attr(attributesObject: any): Dom7Array;
|
||||
/** Remove specified attribute */
|
||||
removeAttr(attrName: string): Dom7Array;
|
||||
/** Get the current value of the first element in the set of matched elements */
|
||||
val(): any;
|
||||
/** Set the value of every matched element */
|
||||
val(newValue: any): Dom7Array;
|
||||
|
||||
// DATA
|
||||
/** Store arbitrary data associated with the matched elements */
|
||||
data(key: string, value: any): Dom7Array;
|
||||
/** Return the value at the named data store for the first element in the collection, as set by data(key, value) or by an HTML5 data-* attribute */
|
||||
data(key: string): any;
|
||||
/** Remove specified data */
|
||||
removeData(key: string): void;
|
||||
/** Returns element's data set (set of data- attributes) as plain Object */
|
||||
dataset(): any;
|
||||
|
||||
// CSS TRASFORMS, TRANSITIONS
|
||||
/** Adds prefixed CSS transform property */
|
||||
transform(CSSTransformString: string): Dom7Array;
|
||||
/** Set CSS transition-duration property to collection */
|
||||
transition(transitionDuration: number): Dom7Array;
|
||||
|
||||
// EVENTS
|
||||
/** Add event handler function to one or more events to the selected elements */
|
||||
on(
|
||||
eventName: string,
|
||||
handler: (event: Event) => void,
|
||||
useCapture?: boolean,
|
||||
): Dom7Array;
|
||||
/** Live/delegated event handler */
|
||||
on(
|
||||
eventName: string,
|
||||
delegatedTarget: string,
|
||||
handler: (event: Event) => void,
|
||||
useCapture?: boolean,
|
||||
): Dom7Array;
|
||||
/** Add event handler function to one or more events to the selected elements that will be executed only once */
|
||||
once(
|
||||
eventName: string,
|
||||
handler: (event: Event) => void,
|
||||
useCapture?: boolean,
|
||||
): Dom7Array;
|
||||
/** Live/delegated event handler that will be executed only once */
|
||||
once(
|
||||
eventName: string,
|
||||
delegatedTarget: string,
|
||||
handler: (event: Event) => void,
|
||||
useCapture?: boolean,
|
||||
): Dom7Array;
|
||||
/** Remove event handler */
|
||||
off(
|
||||
eventName: string,
|
||||
handler: (event: Event) => void,
|
||||
useCapture?: boolean,
|
||||
): Dom7Array;
|
||||
/** Remove live/delegated event handler */
|
||||
off(
|
||||
eventName: string,
|
||||
delegatedTarget: string,
|
||||
handler: (event: Event) => void,
|
||||
useCapture?: boolean,
|
||||
): Dom7Array;
|
||||
/** Execute all handlers added to the matched elements for the specified event */
|
||||
trigger(eventName: string, eventData?: any): Dom7Array;
|
||||
/** Adds transitionEnd event handler to collection */
|
||||
transitionEnd(callback: () => void): Dom7Array;
|
||||
/** Adds animationEnd event handler to collection */
|
||||
animationEnd(callback: () => void): Dom7Array;
|
||||
|
||||
// STYLES
|
||||
/** Get the current computed width for the first element in the set of matched elements */
|
||||
width(): number;
|
||||
/** Set width for the first element in the set of matched elements */
|
||||
width(value: string | number): Dom7Array;
|
||||
/** Get the current computed width for the first element in the set of matched elements, including padding and border, and margin (if includeMargin is true) */
|
||||
outerWidth(includeMargin?: boolean): number;
|
||||
/** Set width for the first element in the set of matched elements, including padding and border, and margin (if includeMargin is true) */
|
||||
outerWidth(value: string | number): Dom7Array;
|
||||
/** Get the current computed height for the first element in the set of matched elements */
|
||||
height(): number;
|
||||
/** Set height for the first element in the set of matched elements */
|
||||
height(value: string | number): Dom7Array;
|
||||
/** Get the current computed height for the first element in the set of matched elements, including padding and border, and margin (if includeMargin is true) */
|
||||
outerHeight(includeMargin?: boolean): number;
|
||||
/** Set height for the first element in the set of matched elements, including padding and border, and margin (if includeMargin is true) */
|
||||
outerHeight(value: string | number): Dom7Array;
|
||||
/** Get the current coordinates of the first element relative to the document */
|
||||
offset(): { top: number; left: number };
|
||||
/** Set the coordinates of the first element relative to the document */
|
||||
offset(value: string | number): Dom7Array;
|
||||
/** Set "display:none" to the matched elements */
|
||||
hide(): void;
|
||||
/** Set "display:block" to the matched elements */
|
||||
show(): void;
|
||||
/** Get value of specified CSS property for the first element */
|
||||
css(property: string): string | number;
|
||||
/** Set specified CSS property to the matched elements */
|
||||
css(property: string, value: string | number): Dom7Array;
|
||||
/** Set multiple CSS properties to the matched elements */
|
||||
css(propertiesObject: any): Dom7Array;
|
||||
|
||||
// SCROLL
|
||||
/** Get scrollTop position of element */
|
||||
scrollTop(): number;
|
||||
/** Set scrollTop "position" with animation during "duration" (in ms). Scroll top position will be set immediately if duration is not specified. If you have specified "callback" function, then it will be executed after scrolling completed */
|
||||
scrollTop(
|
||||
position: number,
|
||||
duration?: number,
|
||||
callback?: () => void,
|
||||
): Dom7Array;
|
||||
/** Get scrollLeft position of element */
|
||||
scrollLeft(): number;
|
||||
/** Set scrollLeft "position" with animation during "duration" (in ms). Scroll left postion will be set immediately if duration is not specified. If you have specified "callback" function, then it will be executed after scrolling completed */
|
||||
scrollLeft(
|
||||
position: number,
|
||||
duration?: number,
|
||||
callback?: () => void,
|
||||
): Dom7Array;
|
||||
/** Set scroll left and scroll top with animation during "duration" (in ms). Scroll postion will be set immediately if duration is not specified. If you have specified "callback" function, then it will be executed after scrolling completed */
|
||||
scrollTo(
|
||||
left: number,
|
||||
top: number,
|
||||
duration?: number,
|
||||
callback?: () => void,
|
||||
): Dom7Array;
|
||||
|
||||
// DOM MANIPULATION
|
||||
/** Add HTML element to the set of matched elements */
|
||||
add(html: string): Dom7Array;
|
||||
/** Create a new Dom7Array collection with elements added to the set of matched elements */
|
||||
add(...elements: Array<Element | Dom7Array>): Dom7Array;
|
||||
/** Iterate over collection, executing a callback function for each matched element */
|
||||
each(callback: (element: any, index: number) => void): Dom7Array;
|
||||
/** Get the HTML contents of the first element in the set of matched elements */
|
||||
html(): string;
|
||||
/** Set the HTML contents of every matched element */
|
||||
html(newInnerHTML: string): Dom7Array;
|
||||
/** Get the text contents of the first element in the set of matched elements */
|
||||
text(): string;
|
||||
/** Set the text contents of every matched element */
|
||||
text(newTextContent: string): Dom7Array;
|
||||
/** `.is(CSSSelector)` :
|
||||
* Check the current matched set of elements against CSS selector
|
||||
*
|
||||
* `.is(HTMLElement)` :
|
||||
* Check the current matched set of elements against HTML element or Dom7Array collection
|
||||
* */
|
||||
is(CSSSelector: string | Element | Dom7Array): boolean;
|
||||
/** Return the position of the first element within the Dom7Array collection relative to its sibling elements */
|
||||
index(): number;
|
||||
/** Reduce the set of matched elements to the one at the specified index */
|
||||
eq(index: number): Dom7Array;
|
||||
/** `.append(HTMLString)` :
|
||||
* Insert content, specified by the parameter, to the end of each element in the set of matched elements
|
||||
*
|
||||
* `.append(HTMLElement)` :
|
||||
* Insert specified HTML element to the end of element in the set of matched elements
|
||||
* */
|
||||
append(element: string | Element | Dom7Array): Dom7Array;
|
||||
/** Insert content/elements, to the end of element specified in parameter */
|
||||
appendTo(element: string | Element | Dom7Array): Dom7Array;
|
||||
/** `.prepend(newHTML)` :
|
||||
* Insert content, specified by the parameter, to the beginning of each element in the set of matched elements
|
||||
*
|
||||
* `.prepend(HTMLElement)` :
|
||||
* Insert specified HTML element to the beginning of element in the set of matched elements
|
||||
* */
|
||||
prepend(element: string | Element | Dom7Array): Dom7Array;
|
||||
/** Insert content/elements, to the beginning of element specified in parameter */
|
||||
prependTo(element: string | Element | Dom7Array): Dom7Array;
|
||||
/** Insert every element in the set of matched elements before the target. Target could be specified as CSS selector or HTML element or Dom7Array collection */
|
||||
insertBefore(element: string | Element | Dom7Array): Dom7Array;
|
||||
/** Insert every element in the set of matched elements after the target. Target could be specified as CSS selector or HTML element or Dom7Array collection */
|
||||
insertAfter(element: string | Element | Dom7Array): Dom7Array;
|
||||
/** Get the immediately following sibling of each element in the set of matched elements. If a selector is provided, it retrieves the next sibling only if it matches that selector */
|
||||
next(selector?: string): Dom7Array;
|
||||
/** Get all following siblings of each element in the set of matched elements, optionally filtered by a selector */
|
||||
nextAll(selector?: string): Dom7Array;
|
||||
/** Get the immediately preceding sibling of each element in the set of matched elements, optionally filtered by a selector */
|
||||
prev(selector?: string): Dom7Array;
|
||||
/** Get all preceding siblings of each element in the set of matched elements, optionally filtered by a selector */
|
||||
prevAll(selector?: string): Dom7Array;
|
||||
/** Get the siblings of each element in the set of matched elements, optionally filtered by a selector */
|
||||
siblings(selector?: string): Dom7Array;
|
||||
/** Get the first parent of each element in the current set of matched elements, optionally filtered by a selector */
|
||||
parent(selector?: string): Dom7Array;
|
||||
/** Get the ancestors of each element in the current set of matched elements, optionally filtered by a selector */
|
||||
parents(selector?: string): Dom7Array;
|
||||
/** For each element in the set, get the first element that matches the selector by testing the element itself and traversing up through its ancestors in the DOM tree */
|
||||
closest(selector?: string): Dom7Array;
|
||||
/** Get the descendants of each element in the current set of matched elements, filtered by a selector */
|
||||
find(selector?: string): Dom7Array;
|
||||
/** Get the children of each element in the set of matched elements, optionally filtered by a selector */
|
||||
children(selector?: string): Dom7Array;
|
||||
/** Filter collection of elements */
|
||||
filter(callback: (element: any, index: number) => boolean): Dom7Array;
|
||||
/** Remove/detach matched elements from the Dom */
|
||||
remove(): Dom7Array;
|
||||
/** Remove all child nodes of the set of matched elements from the DOM. Alias for `.html('')` */
|
||||
empty(): Dom7Array;
|
||||
|
||||
// SHORTCUTS
|
||||
/** Trigger "click" event on collection */
|
||||
click(): Dom7Array;
|
||||
/** Add "click" event handler to collection */
|
||||
click(handler: (event: Event) => void): Dom7Array;
|
||||
/** Trigger "blur" event on collection */
|
||||
blur(): Dom7Array;
|
||||
/** Add "blur" event handler to collection */
|
||||
blur(handler: (event: Event) => void): Dom7Array;
|
||||
/** Trigger "focus" event on collection */
|
||||
focus(): Dom7Array;
|
||||
/** Add "focus" event handler to collection */
|
||||
focus(handler: (event: Event) => void): Dom7Array;
|
||||
/** Trigger "focusin" event on collection */
|
||||
focusin(): Dom7Array;
|
||||
/** Add "focusin" event handler to collection */
|
||||
focusin(handler: (event: Event) => void): Dom7Array;
|
||||
/** Trigger "focusout" event on collection */
|
||||
focusout(): Dom7Array;
|
||||
/** Add "focusout" event handler to collection */
|
||||
focusout(handler: (event: Event) => void): Dom7Array;
|
||||
/** Trigger "keyup" event on collection */
|
||||
keyup(): Dom7Array;
|
||||
/** Add "keyup" event handler to collection */
|
||||
keyup(handler: (event: Event) => void): Dom7Array;
|
||||
/** Trigger "keydown" event on collection */
|
||||
keydown(): Dom7Array;
|
||||
/** Add "keydown" event handler to collection */
|
||||
keydown(handler: (event: Event) => void): Dom7Array;
|
||||
/** Trigger "keypress" event on collection */
|
||||
keypress(): Dom7Array;
|
||||
/** Add "keypress" event handler to collection */
|
||||
keypress(handler: (event: Event) => void): Dom7Array;
|
||||
/** Trigger "submit" event on collection */
|
||||
submit(): Dom7Array;
|
||||
/** Add "submit" event handler to collection */
|
||||
submit(handler: (event: Event) => void): Dom7Array;
|
||||
/** Trigger "change" event on collection */
|
||||
change(): Dom7Array;
|
||||
/** Add "change" event handler to collection */
|
||||
change(handler: (event: Event) => void): Dom7Array;
|
||||
/** Trigger "mousedown" event on collection */
|
||||
mousedown(): Dom7Array;
|
||||
/** Add "mousedown" event handler to collection */
|
||||
mousedown(handler: (event: Event) => void): Dom7Array;
|
||||
/** Trigger "mousemove" event on collection */
|
||||
mousemove(): Dom7Array;
|
||||
/** Add "mousemove" event handler to collection */
|
||||
mousemove(handler: (event: Event) => void): Dom7Array;
|
||||
/** Trigger "mouseup" event on collection */
|
||||
mouseup(): Dom7Array;
|
||||
/** Add "mouseup" event handler to collection */
|
||||
mouseup(handler: (event: Event) => void): Dom7Array;
|
||||
/** Trigger "mouseenter" event on collection */
|
||||
mouseenter(): Dom7Array;
|
||||
/** Add "mouseenter" event handler to collection */
|
||||
mouseenter(handler: (event: Event) => void): Dom7Array;
|
||||
/** Trigger "mouseleave" event on collection */
|
||||
mouseleave(): Dom7Array;
|
||||
/** Add "mouseleave" event handler to collection */
|
||||
mouseleave(handler: (event: Event) => void): Dom7Array;
|
||||
/** Trigger "mouseout" event on collection */
|
||||
mouseout(): Dom7Array;
|
||||
/** Add "mouseout" event handler to collection */
|
||||
mouseout(handler: (event: Event) => void): Dom7Array;
|
||||
/** Trigger "mouseover" event on collection */
|
||||
mouseover(): Dom7Array;
|
||||
/** Add "mouseover" event handler to collection */
|
||||
mouseover(handler: (event: Event) => void): Dom7Array;
|
||||
/** Trigger "touchstart" event on collection */
|
||||
touchstart(): Dom7Array;
|
||||
/** Add "touchstart" event handler to collection */
|
||||
touchstart(handler: (event: Event) => void): Dom7Array;
|
||||
/** Trigger "touchend" event on collection */
|
||||
touchend(): Dom7Array;
|
||||
/** Add "touchend" event handler to collection */
|
||||
touchend(handler: (event: Event) => void): Dom7Array;
|
||||
/** Trigger "touchmove" event on collection */
|
||||
touchmove(): Dom7Array;
|
||||
/** Add "touchmove" event handler to collection */
|
||||
touchmove(handler: (event: Event) => void): Dom7Array;
|
||||
/** Add "resize" event handler to collection */
|
||||
resize(handler: (event: Event) => void): Dom7Array;
|
||||
/** Add "scroll" event handler to collection */
|
||||
scroll(handler: (event: Event) => void): Dom7Array;
|
||||
/** Perform a custom animation of a set of CSS properties */
|
||||
animate(properties: any, parameters: any): Dom7Array;
|
||||
}
|
||||
|
||||
export interface Dom7 {
|
||||
(): Dom7Array;
|
||||
(selector: string, context?: Element | Dom7Array): Dom7Array;
|
||||
(element: Element): Dom7Array;
|
||||
(element: Document): Dom7Array;
|
||||
(elementArray: Element[]): Dom7Array;
|
||||
(event: EventTarget): Dom7Array;
|
||||
fn: any;
|
||||
}
|
||||
|
||||
declare const Dom7: Dom7;
|
||||
|
||||
declare const add: () => void;
|
||||
declare const addClass: () => void;
|
||||
declare const animate: () => void;
|
||||
declare const animationEnd: () => void;
|
||||
declare const append: () => void;
|
||||
declare const appendTo: () => void;
|
||||
declare const attr: () => void;
|
||||
declare const blur: () => void;
|
||||
declare const change: () => void;
|
||||
declare const children: () => void;
|
||||
declare const click: () => void;
|
||||
declare const closest: () => void;
|
||||
declare const css: () => void;
|
||||
declare const data: () => void;
|
||||
declare const dataset: () => void;
|
||||
declare const detach: () => void;
|
||||
declare const each: () => void;
|
||||
declare const empty: () => void;
|
||||
declare const eq: () => void;
|
||||
declare const filter: () => void;
|
||||
declare const find: () => void;
|
||||
declare const focus: () => void;
|
||||
declare const focusin: () => void;
|
||||
declare const focusout: () => void;
|
||||
declare const hasClass: () => void;
|
||||
declare const height: () => void;
|
||||
declare const hide: () => void;
|
||||
declare const html: () => void;
|
||||
declare const insertAfter: () => void;
|
||||
declare const insertBefore: () => void;
|
||||
declare const is: () => void;
|
||||
declare const keydown: () => void;
|
||||
declare const keypress: () => void;
|
||||
declare const keyup: () => void;
|
||||
declare const mousedown: () => void;
|
||||
declare const mouseenter: () => void;
|
||||
declare const mouseleave: () => void;
|
||||
declare const mousemove: () => void;
|
||||
declare const mouseout: () => void;
|
||||
declare const mouseover: () => void;
|
||||
declare const mouseup: () => void;
|
||||
declare const next: () => void;
|
||||
declare const nextAll: () => void;
|
||||
declare const off: () => void;
|
||||
declare const offset: () => void;
|
||||
declare const on: () => void;
|
||||
declare const once: () => void;
|
||||
declare const outerHeight: () => void;
|
||||
declare const outerWidth: () => void;
|
||||
declare const parent: () => void;
|
||||
declare const parents: () => void;
|
||||
declare const prepend: () => void;
|
||||
declare const prependTo: () => void;
|
||||
declare const prev: () => void;
|
||||
declare const prevAll: () => void;
|
||||
declare const prop: () => void;
|
||||
declare const remove: () => void;
|
||||
declare const removeAttr: () => void;
|
||||
declare const removeClass: () => void;
|
||||
declare const removeData: () => void;
|
||||
declare const resize: () => void;
|
||||
declare const scroll: () => void;
|
||||
declare const scrollLeft: () => void;
|
||||
declare const scrollTo: () => void;
|
||||
declare const scrollTop: () => void;
|
||||
declare const show: () => void;
|
||||
declare const siblings: () => void;
|
||||
declare const stop: () => void;
|
||||
declare const styles: () => void;
|
||||
declare const submit: () => void;
|
||||
declare const text: () => void;
|
||||
declare const toggleClass: () => void;
|
||||
declare const touchend: () => void;
|
||||
declare const touchmove: () => void;
|
||||
declare const touchstart: () => void;
|
||||
declare const transform: () => void;
|
||||
declare const transition: () => void;
|
||||
declare const transitionEnd: () => void;
|
||||
declare const trigger: () => void;
|
||||
declare const val: () => void;
|
||||
declare const value: () => void;
|
||||
declare const width: () => void;
|
||||
|
||||
export {
|
||||
Dom7 as $,
|
||||
add,
|
||||
addClass,
|
||||
animate,
|
||||
animationEnd,
|
||||
append,
|
||||
appendTo,
|
||||
attr,
|
||||
blur,
|
||||
change,
|
||||
children,
|
||||
click,
|
||||
closest,
|
||||
css,
|
||||
data,
|
||||
dataset,
|
||||
detach,
|
||||
each,
|
||||
empty,
|
||||
eq,
|
||||
filter,
|
||||
find,
|
||||
focus,
|
||||
focusin,
|
||||
focusout,
|
||||
hasClass,
|
||||
height,
|
||||
hide,
|
||||
html,
|
||||
insertAfter,
|
||||
insertBefore,
|
||||
is,
|
||||
keydown,
|
||||
keypress,
|
||||
keyup,
|
||||
mousedown,
|
||||
mouseenter,
|
||||
mouseleave,
|
||||
mousemove,
|
||||
mouseout,
|
||||
mouseover,
|
||||
mouseup,
|
||||
next,
|
||||
nextAll,
|
||||
off,
|
||||
offset,
|
||||
on,
|
||||
once,
|
||||
outerHeight,
|
||||
outerWidth,
|
||||
parent,
|
||||
parents,
|
||||
prepend,
|
||||
prependTo,
|
||||
prev,
|
||||
prevAll,
|
||||
prop,
|
||||
remove,
|
||||
removeAttr,
|
||||
removeClass,
|
||||
removeData,
|
||||
resize,
|
||||
scroll,
|
||||
scrollLeft,
|
||||
scrollTo,
|
||||
scrollTop,
|
||||
show,
|
||||
siblings,
|
||||
stop,
|
||||
styles,
|
||||
submit,
|
||||
text,
|
||||
toggleClass,
|
||||
touchend,
|
||||
touchmove,
|
||||
touchstart,
|
||||
transform,
|
||||
transition,
|
||||
transitionEnd,
|
||||
trigger,
|
||||
val,
|
||||
value,
|
||||
width,
|
||||
};
|
||||
export default Dom7;
|
1478
resources/web/include/swiper/node_modules/dom7/dom7.esm.js
generated
vendored
Normal file
1478
resources/web/include/swiper/node_modules/dom7/dom7.esm.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
1768
resources/web/include/swiper/node_modules/dom7/dom7.js
generated
vendored
Normal file
1768
resources/web/include/swiper/node_modules/dom7/dom7.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
1
resources/web/include/swiper/node_modules/dom7/dom7.js.map
generated
vendored
Normal file
1
resources/web/include/swiper/node_modules/dom7/dom7.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
13
resources/web/include/swiper/node_modules/dom7/dom7.min.js
generated
vendored
Normal file
13
resources/web/include/swiper/node_modules/dom7/dom7.min.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1
resources/web/include/swiper/node_modules/dom7/dom7.min.js.map
generated
vendored
Normal file
1
resources/web/include/swiper/node_modules/dom7/dom7.min.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
60
resources/web/include/swiper/node_modules/dom7/package.json
generated
vendored
Normal file
60
resources/web/include/swiper/node_modules/dom7/package.json
generated
vendored
Normal file
|
@ -0,0 +1,60 @@
|
|||
{
|
||||
"_from": "dom7@^4.0.1",
|
||||
"_id": "dom7@4.0.1",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-y/RWjw3gK3qQnZz6IqDaIoqH6+xBhcB3Wsh5HFwl0abwuO/NAgbSB31ZbxtBDcuDe8jAX5NYUNDLTx4Ul48sIw==",
|
||||
"_location": "/swiper/dom7",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "dom7@^4.0.1",
|
||||
"name": "dom7",
|
||||
"escapedName": "dom7",
|
||||
"rawSpec": "^4.0.1",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^4.0.1"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/swiper"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/dom7/-/dom7-4.0.1.tgz",
|
||||
"_shasum": "821209df1bfdf97dd82b5156e50f7cb66b3f166c",
|
||||
"_spec": "dom7@^4.0.1",
|
||||
"_where": "C:\\Users\\Administrator\\node_modules\\swiper",
|
||||
"author": {
|
||||
"name": "Vladimir Kharlampidi"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/nolimits4web/dom7/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"dependencies": {
|
||||
"ssr-window": "^4.0.0"
|
||||
},
|
||||
"deprecated": false,
|
||||
"description": "Minimalistic JavaScript library for DOM manipulation, with a jQuery-compatible API",
|
||||
"exports": {
|
||||
".": "./dom7.esm.js"
|
||||
},
|
||||
"homepage": "https://framework7.io/docs/dom7.html",
|
||||
"keywords": [
|
||||
"dom",
|
||||
"dom7",
|
||||
"jquery",
|
||||
"mobile",
|
||||
"framework7"
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "./dom7.esm.js",
|
||||
"module": "./dom7.esm.js",
|
||||
"name": "dom7",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/nolimits4web/dom7.git"
|
||||
},
|
||||
"sideEffects": false,
|
||||
"type": "module",
|
||||
"types": "dom7.d.ts",
|
||||
"version": "4.0.1"
|
||||
}
|
21
resources/web/include/swiper/node_modules/ssr-window/LICENSE
generated
vendored
Normal file
21
resources/web/include/swiper/node_modules/ssr-window/LICENSE
generated
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
MIT License
|
||||
|
||||
Copyright (c) 2018 Vladimir Kharlampidi
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
59
resources/web/include/swiper/node_modules/ssr-window/README.md
generated
vendored
Normal file
59
resources/web/include/swiper/node_modules/ssr-window/README.md
generated
vendored
Normal file
|
@ -0,0 +1,59 @@
|
|||
# SSR Window
|
||||
|
||||
Better handling for `window` and `document` object in SSR environment.
|
||||
|
||||
This library doesn't implement the DOM (like JSDOM), it just patches (or creates `window` and `document` objects) to avoid them to fail (throw errors) during server-side rendering.
|
||||
|
||||
Was created for use in:
|
||||
|
||||
- [Dom7](https://github.com/nolimits4web/dom7)
|
||||
- [Swiper](https://github.com/nolimits4web/swiper)
|
||||
- [Framework7](https://github.com/framework7io/framework7)
|
||||
|
||||
## Installation
|
||||
|
||||
Library available on NPM:
|
||||
|
||||
```
|
||||
npm i ssr-window
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
import { window, document } from 'ssr-window';
|
||||
|
||||
window.addEventListener('resize', () => {});
|
||||
|
||||
const div = document.querySelectorAll('div');
|
||||
```
|
||||
|
||||
## Extending
|
||||
|
||||
If you rely on some window/document properties which are not included here, you can use `extend` helper to add them:
|
||||
|
||||
```js
|
||||
import { window, document, extend } from 'ssr-window';
|
||||
|
||||
// add window.navigator.language
|
||||
extend(window, {
|
||||
navigator: {
|
||||
language: 'en',
|
||||
},
|
||||
});
|
||||
|
||||
// add document.body
|
||||
extend(document, {
|
||||
body: {
|
||||
/* ... */
|
||||
},
|
||||
});
|
||||
```
|
||||
|
||||
## Contribution
|
||||
|
||||
Yes please! See the [contributing guidelines](https://github.com/nolimits4web/ssr-window/blob/master/CONTRIBUTING.md) for details.
|
||||
|
||||
## Licence
|
||||
|
||||
This project is licensed under the terms of the [MIT license](https://github.com/nolimits4web/ssr-window/blob/master/LICENSE).
|
55
resources/web/include/swiper/node_modules/ssr-window/package.json
generated
vendored
Normal file
55
resources/web/include/swiper/node_modules/ssr-window/package.json
generated
vendored
Normal file
|
@ -0,0 +1,55 @@
|
|||
{
|
||||
"_from": "ssr-window@^4.0.1",
|
||||
"_id": "ssr-window@4.0.1",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-5q936lkCk5Lg5hM6tG8Nutdym4vNiuFSWorslTzOn71PWb3Wnx44q/k2Ryn1LWA1G4FtxMzjywUFOiOxPkVGrA==",
|
||||
"_location": "/swiper/ssr-window",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "ssr-window@^4.0.1",
|
||||
"name": "ssr-window",
|
||||
"escapedName": "ssr-window",
|
||||
"rawSpec": "^4.0.1",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^4.0.1"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/swiper",
|
||||
"/swiper/dom7"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/ssr-window/-/ssr-window-4.0.1.tgz",
|
||||
"_shasum": "514bf2ca81952f63fe88e8b0c623a23f90f7feb3",
|
||||
"_spec": "ssr-window@^4.0.1",
|
||||
"_where": "C:\\Users\\Administrator\\node_modules\\swiper",
|
||||
"author": {
|
||||
"name": "Vladimir Kharlampidi"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/nolimits4web/ssr-window/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"deprecated": false,
|
||||
"description": "Better handling for window object in SSR environment",
|
||||
"exports": {
|
||||
".": "./ssr-window.esm.js"
|
||||
},
|
||||
"homepage": "https://github.com/nolimits4web/ssr-window",
|
||||
"keywords": [
|
||||
"ssr",
|
||||
"window",
|
||||
"document"
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "./ssr-window.esm.js",
|
||||
"module": "./ssr-window.esm.js",
|
||||
"name": "ssr-window",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/nolimits4web/ssr-window.git"
|
||||
},
|
||||
"type": "module",
|
||||
"typings": "types/ssr-window.d.ts",
|
||||
"version": "4.0.1"
|
||||
}
|
148
resources/web/include/swiper/node_modules/ssr-window/ssr-window.esm.js
generated
vendored
Normal file
148
resources/web/include/swiper/node_modules/ssr-window/ssr-window.esm.js
generated
vendored
Normal file
|
@ -0,0 +1,148 @@
|
|||
/**
|
||||
* SSR Window 4.0.1
|
||||
* Better handling for window object in SSR environment
|
||||
* https://github.com/nolimits4web/ssr-window
|
||||
*
|
||||
* Copyright 2021, Vladimir Kharlampidi
|
||||
*
|
||||
* Licensed under MIT
|
||||
*
|
||||
* Released on: October 27, 2021
|
||||
*/
|
||||
/* eslint-disable no-param-reassign */
|
||||
function isObject(obj) {
|
||||
return (obj !== null &&
|
||||
typeof obj === 'object' &&
|
||||
'constructor' in obj &&
|
||||
obj.constructor === Object);
|
||||
}
|
||||
function extend(target = {}, src = {}) {
|
||||
Object.keys(src).forEach((key) => {
|
||||
if (typeof target[key] === 'undefined')
|
||||
target[key] = src[key];
|
||||
else if (isObject(src[key]) &&
|
||||
isObject(target[key]) &&
|
||||
Object.keys(src[key]).length > 0) {
|
||||
extend(target[key], src[key]);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
const ssrDocument = {
|
||||
body: {},
|
||||
addEventListener() { },
|
||||
removeEventListener() { },
|
||||
activeElement: {
|
||||
blur() { },
|
||||
nodeName: '',
|
||||
},
|
||||
querySelector() {
|
||||
return null;
|
||||
},
|
||||
querySelectorAll() {
|
||||
return [];
|
||||
},
|
||||
getElementById() {
|
||||
return null;
|
||||
},
|
||||
createEvent() {
|
||||
return {
|
||||
initEvent() { },
|
||||
};
|
||||
},
|
||||
createElement() {
|
||||
return {
|
||||
children: [],
|
||||
childNodes: [],
|
||||
style: {},
|
||||
setAttribute() { },
|
||||
getElementsByTagName() {
|
||||
return [];
|
||||
},
|
||||
};
|
||||
},
|
||||
createElementNS() {
|
||||
return {};
|
||||
},
|
||||
importNode() {
|
||||
return null;
|
||||
},
|
||||
location: {
|
||||
hash: '',
|
||||
host: '',
|
||||
hostname: '',
|
||||
href: '',
|
||||
origin: '',
|
||||
pathname: '',
|
||||
protocol: '',
|
||||
search: '',
|
||||
},
|
||||
};
|
||||
function getDocument() {
|
||||
const doc = typeof document !== 'undefined' ? document : {};
|
||||
extend(doc, ssrDocument);
|
||||
return doc;
|
||||
}
|
||||
|
||||
const ssrWindow = {
|
||||
document: ssrDocument,
|
||||
navigator: {
|
||||
userAgent: '',
|
||||
},
|
||||
location: {
|
||||
hash: '',
|
||||
host: '',
|
||||
hostname: '',
|
||||
href: '',
|
||||
origin: '',
|
||||
pathname: '',
|
||||
protocol: '',
|
||||
search: '',
|
||||
},
|
||||
history: {
|
||||
replaceState() { },
|
||||
pushState() { },
|
||||
go() { },
|
||||
back() { },
|
||||
},
|
||||
CustomEvent: function CustomEvent() {
|
||||
return this;
|
||||
},
|
||||
addEventListener() { },
|
||||
removeEventListener() { },
|
||||
getComputedStyle() {
|
||||
return {
|
||||
getPropertyValue() {
|
||||
return '';
|
||||
},
|
||||
};
|
||||
},
|
||||
Image() { },
|
||||
Date() { },
|
||||
screen: {},
|
||||
setTimeout() { },
|
||||
clearTimeout() { },
|
||||
matchMedia() {
|
||||
return {};
|
||||
},
|
||||
requestAnimationFrame(callback) {
|
||||
if (typeof setTimeout === 'undefined') {
|
||||
callback();
|
||||
return null;
|
||||
}
|
||||
return setTimeout(callback, 0);
|
||||
},
|
||||
cancelAnimationFrame(id) {
|
||||
if (typeof setTimeout === 'undefined') {
|
||||
return;
|
||||
}
|
||||
clearTimeout(id);
|
||||
},
|
||||
};
|
||||
function getWindow() {
|
||||
const win = typeof window !== 'undefined' ? window : {};
|
||||
extend(win, ssrWindow);
|
||||
return win;
|
||||
}
|
||||
|
||||
export { extend, getDocument, getWindow, ssrDocument, ssrWindow };
|
163
resources/web/include/swiper/node_modules/ssr-window/ssr-window.umd.js
generated
vendored
Normal file
163
resources/web/include/swiper/node_modules/ssr-window/ssr-window.umd.js
generated
vendored
Normal file
|
@ -0,0 +1,163 @@
|
|||
/**
|
||||
* SSR Window 4.0.1
|
||||
* Better handling for window object in SSR environment
|
||||
* https://github.com/nolimits4web/ssr-window
|
||||
*
|
||||
* Copyright 2021, Vladimir Kharlampidi
|
||||
*
|
||||
* Licensed under MIT
|
||||
*
|
||||
* Released on: October 27, 2021
|
||||
*/
|
||||
(function (global, factory) {
|
||||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
||||
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
||||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.ssrWindow = {}));
|
||||
}(this, (function (exports) { 'use strict';
|
||||
|
||||
/* eslint-disable no-param-reassign */
|
||||
function isObject(obj) {
|
||||
return (obj !== null &&
|
||||
typeof obj === 'object' &&
|
||||
'constructor' in obj &&
|
||||
obj.constructor === Object);
|
||||
}
|
||||
function extend(target = {}, src = {}) {
|
||||
Object.keys(src).forEach((key) => {
|
||||
if (typeof target[key] === 'undefined')
|
||||
target[key] = src[key];
|
||||
else if (isObject(src[key]) &&
|
||||
isObject(target[key]) &&
|
||||
Object.keys(src[key]).length > 0) {
|
||||
extend(target[key], src[key]);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
const ssrDocument = {
|
||||
body: {},
|
||||
addEventListener() { },
|
||||
removeEventListener() { },
|
||||
activeElement: {
|
||||
blur() { },
|
||||
nodeName: '',
|
||||
},
|
||||
querySelector() {
|
||||
return null;
|
||||
},
|
||||
querySelectorAll() {
|
||||
return [];
|
||||
},
|
||||
getElementById() {
|
||||
return null;
|
||||
},
|
||||
createEvent() {
|
||||
return {
|
||||
initEvent() { },
|
||||
};
|
||||
},
|
||||
createElement() {
|
||||
return {
|
||||
children: [],
|
||||
childNodes: [],
|
||||
style: {},
|
||||
setAttribute() { },
|
||||
getElementsByTagName() {
|
||||
return [];
|
||||
},
|
||||
};
|
||||
},
|
||||
createElementNS() {
|
||||
return {};
|
||||
},
|
||||
importNode() {
|
||||
return null;
|
||||
},
|
||||
location: {
|
||||
hash: '',
|
||||
host: '',
|
||||
hostname: '',
|
||||
href: '',
|
||||
origin: '',
|
||||
pathname: '',
|
||||
protocol: '',
|
||||
search: '',
|
||||
},
|
||||
};
|
||||
function getDocument() {
|
||||
const doc = typeof document !== 'undefined' ? document : {};
|
||||
extend(doc, ssrDocument);
|
||||
return doc;
|
||||
}
|
||||
|
||||
const ssrWindow = {
|
||||
document: ssrDocument,
|
||||
navigator: {
|
||||
userAgent: '',
|
||||
},
|
||||
location: {
|
||||
hash: '',
|
||||
host: '',
|
||||
hostname: '',
|
||||
href: '',
|
||||
origin: '',
|
||||
pathname: '',
|
||||
protocol: '',
|
||||
search: '',
|
||||
},
|
||||
history: {
|
||||
replaceState() { },
|
||||
pushState() { },
|
||||
go() { },
|
||||
back() { },
|
||||
},
|
||||
CustomEvent: function CustomEvent() {
|
||||
return this;
|
||||
},
|
||||
addEventListener() { },
|
||||
removeEventListener() { },
|
||||
getComputedStyle() {
|
||||
return {
|
||||
getPropertyValue() {
|
||||
return '';
|
||||
},
|
||||
};
|
||||
},
|
||||
Image() { },
|
||||
Date() { },
|
||||
screen: {},
|
||||
setTimeout() { },
|
||||
clearTimeout() { },
|
||||
matchMedia() {
|
||||
return {};
|
||||
},
|
||||
requestAnimationFrame(callback) {
|
||||
if (typeof setTimeout === 'undefined') {
|
||||
callback();
|
||||
return null;
|
||||
}
|
||||
return setTimeout(callback, 0);
|
||||
},
|
||||
cancelAnimationFrame(id) {
|
||||
if (typeof setTimeout === 'undefined') {
|
||||
return;
|
||||
}
|
||||
clearTimeout(id);
|
||||
},
|
||||
};
|
||||
function getWindow() {
|
||||
const win = typeof window !== 'undefined' ? window : {};
|
||||
extend(win, ssrWindow);
|
||||
return win;
|
||||
}
|
||||
|
||||
exports.extend = extend;
|
||||
exports.getDocument = getDocument;
|
||||
exports.getWindow = getWindow;
|
||||
exports.ssrDocument = ssrDocument;
|
||||
exports.ssrWindow = ssrWindow;
|
||||
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
|
||||
})));
|
||||
//# sourceMappingURL=ssr-window.umd.js.map
|
1
resources/web/include/swiper/node_modules/ssr-window/ssr-window.umd.js.map
generated
vendored
Normal file
1
resources/web/include/swiper/node_modules/ssr-window/ssr-window.umd.js.map
generated
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"ssr-window.umd.js.map","sources":["../src/extend.ts","../src/document.ts","../src/window.ts"],"sourcesContent":[null,null,null],"names":[],"mappings":"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"}
|
13
resources/web/include/swiper/node_modules/ssr-window/ssr-window.umd.min.js
generated
vendored
Normal file
13
resources/web/include/swiper/node_modules/ssr-window/ssr-window.umd.min.js
generated
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
/**
|
||||
* SSR Window 4.0.1
|
||||
* Better handling for window object in SSR environment
|
||||
* https://github.com/nolimits4web/ssr-window
|
||||
*
|
||||
* Copyright 2021, Vladimir Kharlampidi
|
||||
*
|
||||
* Licensed under MIT
|
||||
*
|
||||
* Released on: October 27, 2021
|
||||
*/
|
||||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).ssrWindow={})}(this,(function(e){"use strict";function t(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function n(e={},o={}){Object.keys(o).forEach((i=>{void 0===e[i]?e[i]=o[i]:t(o[i])&&t(e[i])&&Object.keys(o[i]).length>0&&n(e[i],o[i])}))}const o={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};const i={document:o,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:e=>"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0),cancelAnimationFrame(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};e.extend=n,e.getDocument=function(){const e="undefined"!=typeof document?document:{};return n(e,o),e},e.getWindow=function(){const e="undefined"!=typeof window?window:{};return n(e,i),e},e.ssrDocument=o,e.ssrWindow=i,Object.defineProperty(e,"__esModule",{value:!0})}));
|
||||
//# sourceMappingURL=ssr-window.umd.min.js.map
|
1
resources/web/include/swiper/node_modules/ssr-window/ssr-window.umd.min.js.map
generated
vendored
Normal file
1
resources/web/include/swiper/node_modules/ssr-window/ssr-window.umd.min.js.map
generated
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
{"version":3,"sources":["../src/extend.ts","../src/document.ts","../src/window.ts"],"names":["isObject","obj","constructor","Object","extend","target","src","keys","forEach","key","length","ssrDocument","body","addEventListener","removeEventListener","activeElement","blur","nodeName","querySelector","querySelectorAll","getElementById","createEvent","initEvent","createElement","children","childNodes","style","setAttribute","getElementsByTagName","createElementNS","importNode","location","hash","host","hostname","href","origin","pathname","protocol","search","ssrWindow","document","navigator","userAgent","history","replaceState","pushState","go","back","CustomEvent","this","getComputedStyle","getPropertyValue","Image","Date","screen","setTimeout","clearTimeout","matchMedia","requestAnimationFrame","callback","cancelAnimationFrame","id","doc","win","window"],"mappings":";;;;;;;;;;;iPACA,SAASA,EAASC,GAChB,OACU,OAARA,GACe,iBAARA,GACP,gBAAiBA,GACjBA,EAAIC,cAAgBC,OAIxB,SAASC,EAAOC,EAAc,GAAIC,EAAW,IAC3CH,OAAOI,KAAKD,GAAKE,SAASC,SACG,IAAhBJ,EAAOI,GAAsBJ,EAAOI,GAAOH,EAAIG,GAExDT,EAASM,EAAIG,KACbT,EAASK,EAAOI,KAChBN,OAAOI,KAAKD,EAAIG,IAAMC,OAAS,GAE/BN,EAAOC,EAAOI,GAAMH,EAAIG,aChBxBE,EAAc,CAClBC,KAAM,GACNC,qBACAC,wBACAC,cAAe,CACbC,SACAC,SAAU,IAEZC,cAAa,IACJ,KAETC,iBAAgB,IACP,GAETC,eAAc,IACL,KAETC,YAAW,KACF,CACLC,gBAGJC,cAAa,KACJ,CACLC,SAAU,GACVC,WAAY,GACZC,MAAO,GACPC,iBACAC,qBAAoB,IACX,KAIbC,gBAAe,KACN,IAETC,WAAU,IACD,KAETC,SAAU,CACRC,KAAM,GACNC,KAAM,GACNC,SAAU,GACVC,KAAM,GACNC,OAAQ,GACRC,SAAU,GACVC,SAAU,GACVC,OAAQ,WC9CNC,EAAY,CAChBC,SAAU9B,EACV+B,UAAW,CACTC,UAAW,IAEbZ,SAAU,CACRC,KAAM,GACNC,KAAM,GACNC,SAAU,GACVC,KAAM,GACNC,OAAQ,GACRC,SAAU,GACVC,SAAU,GACVC,OAAQ,IAEVK,QAAS,CACPC,iBACAC,cACAC,OACAC,UAEFC,YAAa,WACX,OAAOC,MAETrC,qBACAC,wBACAqC,iBAAgB,KACP,CACLC,iBAAgB,IACP,KAIbC,UACAC,SACAC,OAAQ,GACRC,eACAC,iBACAC,WAAU,KACD,IAETC,sBAAsBC,GACM,oBAAfJ,YACTI,IACO,MAEFJ,WAAWI,EAAU,GAE9BC,qBAAqBC,GACO,oBAAfN,YAGXC,aAAaK,8BDFjB,WACE,MAAMC,EACgB,oBAAbtB,SAA2BA,SAAY,GAEhD,OADArC,EAAO2D,EAAKpD,GACLoD,eCET,WACE,MAAMC,EAAgC,oBAAXC,OAAyBA,OAAU,GAE9D,OADA7D,EAAO4D,EAAKxB,GACLwB","file":"ssr-window.umd.min.js"}
|
36
resources/web/include/swiper/node_modules/ssr-window/types/document.d.ts
generated
vendored
Normal file
36
resources/web/include/swiper/node_modules/ssr-window/types/document.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,36 @@
|
|||
declare const ssrDocument: {
|
||||
body: {};
|
||||
addEventListener(): void;
|
||||
removeEventListener(): void;
|
||||
activeElement: {
|
||||
blur(): void;
|
||||
nodeName: string;
|
||||
};
|
||||
querySelector(): any;
|
||||
querySelectorAll(): any[];
|
||||
getElementById(): any;
|
||||
createEvent(): {
|
||||
initEvent(): void;
|
||||
};
|
||||
createElement(): {
|
||||
children: any[];
|
||||
childNodes: any[];
|
||||
style: {};
|
||||
setAttribute(): void;
|
||||
getElementsByTagName(): any[];
|
||||
};
|
||||
createElementNS(): {};
|
||||
importNode(): any;
|
||||
location: {
|
||||
hash: string;
|
||||
host: string;
|
||||
hostname: string;
|
||||
href: string;
|
||||
origin: string;
|
||||
pathname: string;
|
||||
protocol: string;
|
||||
search: string;
|
||||
};
|
||||
};
|
||||
declare function getDocument(): Document;
|
||||
export { getDocument, ssrDocument };
|
2
resources/web/include/swiper/node_modules/ssr-window/types/extend.d.ts
generated
vendored
Normal file
2
resources/web/include/swiper/node_modules/ssr-window/types/extend.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
declare function extend(target?: any, src?: any): void;
|
||||
export default extend;
|
4
resources/web/include/swiper/node_modules/ssr-window/types/ssr-window.d.ts
generated
vendored
Normal file
4
resources/web/include/swiper/node_modules/ssr-window/types/ssr-window.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
import { getDocument, ssrDocument } from './document';
|
||||
import { getWindow, ssrWindow } from './window';
|
||||
import extend from './extend';
|
||||
export { getDocument, ssrDocument, getWindow, ssrWindow, extend };
|
72
resources/web/include/swiper/node_modules/ssr-window/types/window.d.ts
generated
vendored
Normal file
72
resources/web/include/swiper/node_modules/ssr-window/types/window.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,72 @@
|
|||
/// <reference types="node" />
|
||||
declare const ssrWindow: {
|
||||
document: {
|
||||
body: {};
|
||||
addEventListener(): void;
|
||||
removeEventListener(): void;
|
||||
activeElement: {
|
||||
blur(): void;
|
||||
nodeName: string;
|
||||
};
|
||||
querySelector(): any;
|
||||
querySelectorAll(): any[];
|
||||
getElementById(): any;
|
||||
createEvent(): {
|
||||
initEvent(): void;
|
||||
};
|
||||
createElement(): {
|
||||
children: any[];
|
||||
childNodes: any[];
|
||||
style: {};
|
||||
setAttribute(): void;
|
||||
getElementsByTagName(): any[];
|
||||
};
|
||||
createElementNS(): {};
|
||||
importNode(): any;
|
||||
location: {
|
||||
hash: string;
|
||||
host: string;
|
||||
hostname: string;
|
||||
href: string;
|
||||
origin: string;
|
||||
pathname: string;
|
||||
protocol: string;
|
||||
search: string;
|
||||
};
|
||||
};
|
||||
navigator: {
|
||||
userAgent: string;
|
||||
};
|
||||
location: {
|
||||
hash: string;
|
||||
host: string;
|
||||
hostname: string;
|
||||
href: string;
|
||||
origin: string;
|
||||
pathname: string;
|
||||
protocol: string;
|
||||
search: string;
|
||||
};
|
||||
history: {
|
||||
replaceState(): void;
|
||||
pushState(): void;
|
||||
go(): void;
|
||||
back(): void;
|
||||
};
|
||||
CustomEvent: () => any;
|
||||
addEventListener(): void;
|
||||
removeEventListener(): void;
|
||||
getComputedStyle(): {
|
||||
getPropertyValue(): string;
|
||||
};
|
||||
Image(): void;
|
||||
Date(): void;
|
||||
screen: {};
|
||||
setTimeout(): void;
|
||||
clearTimeout(): void;
|
||||
matchMedia(): {};
|
||||
requestAnimationFrame(callback: any): NodeJS.Timeout;
|
||||
cancelAnimationFrame(id: any): void;
|
||||
};
|
||||
declare function getWindow(): Window;
|
||||
export { getWindow, ssrWindow };
|
Loading…
Add table
Add a link
Reference in a new issue