@appartmint/mint 1.3.1 → 1.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/README.md +3 -3
  2. package/dist/css/mint.css.map +1 -1
  3. package/dist/css/mint.min.css.map +1 -1
  4. package/dist/js/imports/components/header.d.ts +124 -124
  5. package/dist/js/imports/components/index.d.ts +4 -4
  6. package/dist/js/imports/enums/index.d.ts +4 -4
  7. package/dist/js/imports/enums/side.d.ts +9 -9
  8. package/dist/js/imports/index.d.ts +7 -7
  9. package/dist/js/imports/models/color.d.ts +31 -31
  10. package/dist/js/imports/models/file.d.ts +20 -20
  11. package/dist/js/imports/models/index.d.ts +9 -9
  12. package/dist/js/imports/models/item.d.ts +74 -74
  13. package/dist/js/imports/models/minify.d.ts +11 -11
  14. package/dist/js/imports/models/page.d.ts +17 -17
  15. package/dist/js/imports/models/recaptcha.d.ts +8 -8
  16. package/dist/js/imports/util/async.d.ts +10 -10
  17. package/dist/js/imports/util/display.d.ts +24 -24
  18. package/dist/js/imports/util/event.d.ts +40 -40
  19. package/dist/js/imports/util/icon.d.ts +28 -28
  20. package/dist/js/imports/util/index.d.ts +15 -15
  21. package/dist/js/imports/util/list.d.ts +22 -22
  22. package/dist/js/imports/util/math.d.ts +13 -13
  23. package/dist/js/imports/util/object.d.ts +82 -82
  24. package/dist/js/imports/util/scroll.d.ts +22 -22
  25. package/dist/js/imports/util/selectors.d.ts +121 -121
  26. package/dist/js/imports/util/settings.d.ts +38 -38
  27. package/dist/js/imports/util/text.d.ts +45 -45
  28. package/dist/js/imports/util/window.d.ts +11 -11
  29. package/dist/js/index.d.ts +9 -9
  30. package/dist/js/index.js +362 -362
  31. package/dist/js/index.js.map +1 -1
  32. package/dist/js/index.min.js.map +1 -1
  33. package/package.json +2 -2
  34. package/src/scss/imports/global/_icons.scss +6 -6
@@ -1,11 +1,11 @@
1
- /**
2
- * Handles asynchronous operations
3
- */
4
- export declare abstract class MintAsync {
5
- /**
6
- * Wait n milliseconds
7
- */
8
- static wait(ms: number): Promise<void>;
9
- }
10
- export default MintAsync;
1
+ /**
2
+ * Handles asynchronous operations
3
+ */
4
+ export declare abstract class MintAsync {
5
+ /**
6
+ * Wait n milliseconds
7
+ */
8
+ static wait(ms: number): Promise<void>;
9
+ }
10
+ export default MintAsync;
11
11
  //# sourceMappingURL=async.d.ts.map
@@ -1,25 +1,25 @@
1
- /**
2
- * Imports
3
- */
4
- import { EMintSide } from '../enums';
5
- /**
6
- * Handles the display of elements
7
- */
8
- export declare abstract class MintDisplay {
9
- /**
10
- * Sets the element's height to its `innerHeight`, then to `auto` after a delay
11
- * @param el - the element whose height will be set
12
- * @param delay - the amount of time in milliseconds that the show animation will be active
13
- * @param from - the side that the element is animating from
14
- */
15
- static show(el?: HTMLElement | null, delay?: number, from?: EMintSide): void;
16
- /**
17
- * Sets the element's height to 0
18
- * @param el - the element whose height will be set
19
- * @param delay - the amount of time in milliseconds that the show animation will be active
20
- * @param from - the side that the element is animating from
21
- */
22
- static hide(el?: HTMLElement | null, delay?: number, from?: EMintSide): void;
23
- }
24
- export default MintDisplay;
1
+ /**
2
+ * Imports
3
+ */
4
+ import { EMintSide } from '../enums';
5
+ /**
6
+ * Handles the display of elements
7
+ */
8
+ export declare abstract class MintDisplay {
9
+ /**
10
+ * Sets the element's height to its `innerHeight`, then to `auto` after a delay
11
+ * @param el - the element whose height will be set
12
+ * @param delay - the amount of time in milliseconds that the show animation will be active
13
+ * @param from - the side that the element is animating from
14
+ */
15
+ static show(el?: HTMLElement | null, delay?: number, from?: EMintSide): void;
16
+ /**
17
+ * Sets the element's height to 0
18
+ * @param el - the element whose height will be set
19
+ * @param delay - the amount of time in milliseconds that the show animation will be active
20
+ * @param from - the side that the element is animating from
21
+ */
22
+ static hide(el?: HTMLElement | null, delay?: number, from?: EMintSide): void;
23
+ }
24
+ export default MintDisplay;
25
25
  //# sourceMappingURL=display.d.ts.map
@@ -1,41 +1,41 @@
1
- /**
2
- * Event helper functions
3
- */
4
- export declare abstract class MintEvent {
5
- /**
6
- * Ensures that a function `func` is run only after not being called for `wait` milliseconds
7
- * @param func - the function to debounce
8
- * @param wait - the amount of time to wait before running the function
9
- * @returns - the debounced function
10
- */
11
- static debounce(func: Function, wait?: number): Function;
12
- /**
13
- * Ensures that a function `func` is run only after not being called for `wait` milliseconds
14
- * @param func - the function to debounce
15
- * @param wait - the amount of time to wait before running the function
16
- * @returns - the debounced function as an EventListener
17
- */
18
- static debounceEvent(func: Function, wait?: number): EventListener;
19
- /**
20
- * Ensures that a function `func` is called at most every `wait` milliseconds with optional leading and trailing calls
21
- * @param func - the function to throttle
22
- * @param wait - the amount of time between function calls
23
- * @param options - leading and trailing options: default = \{ leading: true, trailing, true \}
24
- * @returns - the throttled function
25
- */
26
- static throttle(func: Function, wait?: number, options?: {
27
- [key: string]: boolean;
28
- }): Function;
29
- /**
30
- * Ensures that a function `func` is called at most every `wait` milliseconds with optional leading and trailing calls
31
- * @param func - the function to throttle
32
- * @param wait - the amount of time between function calls
33
- * @param options - leading and trailing options: default = \{ leading: true, trailing, true \}
34
- * @returns - the throttled function as an EventListener
35
- */
36
- static throttleEvent(func: Function, wait?: number, options?: {
37
- [key: string]: boolean;
38
- }): EventListener;
39
- }
40
- export default MintEvent;
1
+ /**
2
+ * Event helper functions
3
+ */
4
+ export declare abstract class MintEvent {
5
+ /**
6
+ * Ensures that a function `func` is run only after not being called for `wait` milliseconds
7
+ * @param func - the function to debounce
8
+ * @param wait - the amount of time to wait before running the function
9
+ * @returns - the debounced function
10
+ */
11
+ static debounce(func: Function, wait?: number): Function;
12
+ /**
13
+ * Ensures that a function `func` is run only after not being called for `wait` milliseconds
14
+ * @param func - the function to debounce
15
+ * @param wait - the amount of time to wait before running the function
16
+ * @returns - the debounced function as an EventListener
17
+ */
18
+ static debounceEvent(func: Function, wait?: number): EventListener;
19
+ /**
20
+ * Ensures that a function `func` is called at most every `wait` milliseconds with optional leading and trailing calls
21
+ * @param func - the function to throttle
22
+ * @param wait - the amount of time between function calls
23
+ * @param options - leading and trailing options: default = \{ leading: true, trailing, true \}
24
+ * @returns - the throttled function
25
+ */
26
+ static throttle(func: Function, wait?: number, options?: {
27
+ [key: string]: boolean;
28
+ }): Function;
29
+ /**
30
+ * Ensures that a function `func` is called at most every `wait` milliseconds with optional leading and trailing calls
31
+ * @param func - the function to throttle
32
+ * @param wait - the amount of time between function calls
33
+ * @param options - leading and trailing options: default = \{ leading: true, trailing, true \}
34
+ * @returns - the throttled function as an EventListener
35
+ */
36
+ static throttleEvent(func: Function, wait?: number, options?: {
37
+ [key: string]: boolean;
38
+ }): EventListener;
39
+ }
40
+ export default MintEvent;
41
41
  //# sourceMappingURL=event.d.ts.map
@@ -1,29 +1,29 @@
1
- /**
2
- * Icon helper functions
3
- */
4
- export declare abstract class MintIcon {
5
- /**
6
- * Default icons
7
- */
8
- static icons: {
9
- [key: string]: string;
10
- };
11
- /**
12
- * Appends the given icon to the given selector if there is not already an icon appended
13
- */
14
- static append(icon: string, selector: string): void;
15
- /**
16
- * Updates the icons
17
- * @param icons - the icons to update
18
- */
19
- static update(icons?: {
20
- [key: string]: string | false;
21
- }): void;
22
- /**
23
- * Removes the given icon from the given selector
24
- * @param icon - the icon to remove
25
- */
26
- static remove(icon: string, selector: string): void;
27
- }
28
- export default MintIcon;
1
+ /**
2
+ * Icon helper functions
3
+ */
4
+ export declare abstract class MintIcon {
5
+ /**
6
+ * Default icons
7
+ */
8
+ static icons: {
9
+ [key: string]: string;
10
+ };
11
+ /**
12
+ * Appends the given icon to the given selector if there is not already an icon appended
13
+ */
14
+ static append(icon: string, selector: string): void;
15
+ /**
16
+ * Updates the icons
17
+ * @param icons - the icons to update
18
+ */
19
+ static update(icons?: {
20
+ [key: string]: string | false;
21
+ }): void;
22
+ /**
23
+ * Removes the given icon from the given selector
24
+ * @param icon - the icon to remove
25
+ */
26
+ static remove(icon: string, selector: string): void;
27
+ }
28
+ export default MintIcon;
29
29
  //# sourceMappingURL=icon.d.ts.map
@@ -1,16 +1,16 @@
1
- /**
2
- * Forward all exports from the util directory
3
- */
4
- export * from './async';
5
- export * from './display';
6
- export * from './event';
7
- export * from './icon';
8
- export * from './list';
9
- export * from './math';
10
- export * from './object';
11
- export * from './scroll';
12
- export * from './selectors';
13
- export * from './settings';
14
- export * from './text';
15
- export * from './window';
1
+ /**
2
+ * Forward all exports from the util directory
3
+ */
4
+ export * from './async';
5
+ export * from './display';
6
+ export * from './event';
7
+ export * from './icon';
8
+ export * from './list';
9
+ export * from './math';
10
+ export * from './object';
11
+ export * from './scroll';
12
+ export * from './selectors';
13
+ export * from './settings';
14
+ export * from './text';
15
+ export * from './window';
16
16
  //# sourceMappingURL=index.d.ts.map
@@ -1,23 +1,23 @@
1
- /**
2
- * List functions for the util library
3
- */
4
- export declare abstract class MintList {
5
- /**
6
- * Returns a copy of the provided list with the items in random order
7
- * @param list - the list to shuffle
8
- * @returns - the shuffled list
9
- */
10
- static shuffleCopy(list: any[]): any[];
11
- /**
12
- * Filters the array in place based on a test condition and returns the filtered array.
13
- * This method modifies the original array by removing elements that do not pass the test implemented by the provided function.
14
- *
15
- * @template T The type of elements in the array.
16
- * @param {T[]} list The array to filter, which will be modified in place.
17
- * @param {(item: T) => boolean} test A function that tests each element of the array. Return `true` to keep the element, `false` otherwise.
18
- * @returns {T[]} The original array with only the elements that passed the test.
19
- */
20
- static filter<T>(list: T[], test: (item: T) => boolean): T[];
21
- }
22
- export default MintList;
1
+ /**
2
+ * List functions for the util library
3
+ */
4
+ export declare abstract class MintList {
5
+ /**
6
+ * Returns a copy of the provided list with the items in random order
7
+ * @param list - the list to shuffle
8
+ * @returns - the shuffled list
9
+ */
10
+ static shuffleCopy(list: any[]): any[];
11
+ /**
12
+ * Filters the array in place based on a test condition and returns the filtered array.
13
+ * This method modifies the original array by removing elements that do not pass the test implemented by the provided function.
14
+ *
15
+ * @template T The type of elements in the array.
16
+ * @param {T[]} list The array to filter, which will be modified in place.
17
+ * @param {(item: T) => boolean} test A function that tests each element of the array. Return `true` to keep the element, `false` otherwise.
18
+ * @returns {T[]} The original array with only the elements that passed the test.
19
+ */
20
+ static filter<T>(list: T[], test: (item: T) => boolean): T[];
21
+ }
22
+ export default MintList;
23
23
  //# sourceMappingURL=list.d.ts.map
@@ -1,14 +1,14 @@
1
- /**
2
- * Math functions for the util library
3
- */
4
- export declare abstract class MintMath {
5
- /**
6
- * Get a random integer between min and max
7
- * @param max Maximum value to return
8
- * @param min Minimum value to return (default is 0)
9
- * @returns a random integer between min and max
10
- */
11
- static randomInt(max: number, min?: number): number;
12
- }
13
- export default MintMath;
1
+ /**
2
+ * Math functions for the util library
3
+ */
4
+ export declare abstract class MintMath {
5
+ /**
6
+ * Get a random integer between min and max
7
+ * @param max Maximum value to return
8
+ * @param min Minimum value to return (default is 0)
9
+ * @returns a random integer between min and max
10
+ */
11
+ static randomInt(max: number, min?: number): number;
12
+ }
13
+ export default MintMath;
14
14
  //# sourceMappingURL=math.d.ts.map
@@ -1,83 +1,83 @@
1
- /**
2
- * Object functions for the util library
3
- */
4
- export declare abstract class MintObject {
5
- /**
6
- * Returns true if the provided objects have the same entries
7
- */
8
- static isSimilar(obj1: any, obj2: any): boolean;
9
- /**
10
- * Returns true if the first object has at least the same
11
- * entries as the second object
12
- * @param superset - the object to check
13
- * @param subset - the object whose entries are required
14
- * @returns - true if the first object is a superset of the second
15
- * @recursive
16
- */
17
- static isSuperset(superset: any, subset: any): boolean;
18
- /**
19
- * Removes object entries by key
20
- * @alias mintObject.removeKeys
21
- * @param object - the object to remove entries from
22
- * @param keys - the keys to remove
23
- */
24
- static remove(object: any, keys: string[]): Object;
25
- /**
26
- * Removes object entries by key
27
- * @param object - the object to remove entries from
28
- * @param keys - the keys to remove
29
- */
30
- static removeKeys(object: any, keys: string[]): any;
31
- /**
32
- * Removes object entries by value
33
- */
34
- static removeValues(object: any, values: any[]): any;
35
- /**
36
- * Sorts an object's entries alphabetically by key
37
- */
38
- static sort(object: any, compareFn?: (a: string, b: string) => number): any;
39
- /**
40
- * Sorts an object's entries alphabetically by key
41
- */
42
- static sortKeys(object: any, compareFn?: (a: string, b: string) => number): any;
43
- /**
44
- * Sorts an object's entries alphabetically by value
45
- */
46
- static sortValues(object: any, compareFn: (a: any, b: any) => number): any;
47
- /**
48
- * @alias mintObject.filterKeys
49
- */
50
- static filter(object: any, keys: string[]): Object;
51
- /**
52
- * Filters an object by its keys
53
- * @param object - the object to filter
54
- * @param keys - the keys to keep
55
- * @returns - the filtered object
56
- */
57
- static filterKeys(object: any, keys: string[]): Object;
58
- /**
59
- * Filters an object by its values
60
- * @param object - the object to filter
61
- * @param values - the values to keep
62
- * @returns - the filtered object
63
- */
64
- static filterValues(object: any, values: any[]): Object;
65
- /**
66
- * Update two sets of objects
67
- * @param original - the original object
68
- * @param update - the object to update the original with
69
- * @returns - the original objects with updated data from the update
70
- */
71
- static updateArray(original: any[], update?: any[], key?: string): any;
72
- /**
73
- * Get an object's key by value
74
- */
75
- static getKeyByValue(object: any, value: any): string | undefined;
76
- /**
77
- * Create a deep copy of an object
78
- * @recursive
79
- */
80
- static deepClone(object: any): any;
81
- }
82
- export default MintObject;
1
+ /**
2
+ * Object functions for the util library
3
+ */
4
+ export declare abstract class MintObject {
5
+ /**
6
+ * Returns true if the provided objects have the same entries
7
+ */
8
+ static isSimilar(obj1: any, obj2: any): boolean;
9
+ /**
10
+ * Returns true if the first object has at least the same
11
+ * entries as the second object
12
+ * @param superset - the object to check
13
+ * @param subset - the object whose entries are required
14
+ * @returns - true if the first object is a superset of the second
15
+ * @recursive
16
+ */
17
+ static isSuperset(superset: any, subset: any): boolean;
18
+ /**
19
+ * Removes object entries by key
20
+ * @alias mintObject.removeKeys
21
+ * @param object - the object to remove entries from
22
+ * @param keys - the keys to remove
23
+ */
24
+ static remove(object: any, keys: string[]): Object;
25
+ /**
26
+ * Removes object entries by key
27
+ * @param object - the object to remove entries from
28
+ * @param keys - the keys to remove
29
+ */
30
+ static removeKeys(object: any, keys: string[]): any;
31
+ /**
32
+ * Removes object entries by value
33
+ */
34
+ static removeValues(object: any, values: any[]): any;
35
+ /**
36
+ * Sorts an object's entries alphabetically by key
37
+ */
38
+ static sort(object: any, compareFn?: (a: string, b: string) => number): any;
39
+ /**
40
+ * Sorts an object's entries alphabetically by key
41
+ */
42
+ static sortKeys(object: any, compareFn?: (a: string, b: string) => number): any;
43
+ /**
44
+ * Sorts an object's entries alphabetically by value
45
+ */
46
+ static sortValues(object: any, compareFn: (a: any, b: any) => number): any;
47
+ /**
48
+ * @alias mintObject.filterKeys
49
+ */
50
+ static filter(object: any, keys: string[]): Object;
51
+ /**
52
+ * Filters an object by its keys
53
+ * @param object - the object to filter
54
+ * @param keys - the keys to keep
55
+ * @returns - the filtered object
56
+ */
57
+ static filterKeys(object: any, keys: string[]): Object;
58
+ /**
59
+ * Filters an object by its values
60
+ * @param object - the object to filter
61
+ * @param values - the values to keep
62
+ * @returns - the filtered object
63
+ */
64
+ static filterValues(object: any, values: any[]): Object;
65
+ /**
66
+ * Update two sets of objects
67
+ * @param original - the original object
68
+ * @param update - the object to update the original with
69
+ * @returns - the original objects with updated data from the update
70
+ */
71
+ static updateArray(original: any[], update?: any[], key?: string): any;
72
+ /**
73
+ * Get an object's key by value
74
+ */
75
+ static getKeyByValue(object: any, value: any): string | undefined;
76
+ /**
77
+ * Create a deep copy of an object
78
+ * @recursive
79
+ */
80
+ static deepClone(object: any): any;
81
+ }
82
+ export default MintObject;
83
83
  //# sourceMappingURL=object.d.ts.map
@@ -1,23 +1,23 @@
1
- /**
2
- * Scroll functions
3
- */
4
- export declare abstract class MintScroll {
5
- /**
6
- * Scroll to the top of the page
7
- */
8
- static toTop(): void;
9
- /**
10
- * Scroll to the bottom of the page
11
- */
12
- static toBottom(): void;
13
- /**
14
- * Show visible elements
15
- */
16
- static showElements(): void;
17
- /**
18
- * Show visible elements on scroll
19
- */
20
- static showElementsOnScroll(): void;
21
- }
22
- export default MintScroll;
1
+ /**
2
+ * Scroll functions
3
+ */
4
+ export declare abstract class MintScroll {
5
+ /**
6
+ * Scroll to the top of the page
7
+ */
8
+ static toTop(): void;
9
+ /**
10
+ * Scroll to the bottom of the page
11
+ */
12
+ static toBottom(): void;
13
+ /**
14
+ * Show visible elements
15
+ */
16
+ static showElements(): void;
17
+ /**
18
+ * Show visible elements on scroll
19
+ */
20
+ static showElementsOnScroll(): void;
21
+ }
22
+ export default MintScroll;
23
23
  //# sourceMappingURL=scroll.d.ts.map