@appartmint/mint 0.15.11 → 1.0.0

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 (66) hide show
  1. package/dist/js/imports/components/header.d.ts +2 -2
  2. package/dist/js/imports/components/header.d.ts.map +1 -1
  3. package/dist/js/imports/components/index.d.ts +5 -0
  4. package/dist/js/imports/components/index.d.ts.map +1 -0
  5. package/dist/js/imports/enums/index.d.ts +5 -0
  6. package/dist/js/imports/enums/index.d.ts.map +1 -0
  7. package/dist/js/imports/{enum.d.ts → enums/side.d.ts} +2 -2
  8. package/dist/js/imports/enums/side.d.ts.map +1 -0
  9. package/dist/js/imports/index.d.ts +8 -0
  10. package/dist/js/imports/index.d.ts.map +1 -0
  11. package/dist/js/imports/models/index.d.ts +6 -0
  12. package/dist/js/imports/models/index.d.ts.map +1 -0
  13. package/dist/js/imports/models/item.d.ts +6 -6
  14. package/dist/js/imports/util/display.d.ts +20 -2
  15. package/dist/js/imports/util/display.d.ts.map +1 -1
  16. package/dist/js/imports/util/event.d.ts +36 -2
  17. package/dist/js/imports/util/event.d.ts.map +1 -1
  18. package/dist/js/imports/util/icon.d.ts +2 -2
  19. package/dist/js/imports/util/index.d.ts +15 -0
  20. package/dist/js/imports/util/index.d.ts.map +1 -0
  21. package/dist/js/imports/util/list.d.ts +2 -2
  22. package/dist/js/imports/util/math.d.ts +2 -2
  23. package/dist/js/imports/util/object.d.ts +2 -2
  24. package/dist/js/imports/util/scroll.d.ts +2 -2
  25. package/dist/js/imports/util/selectors.d.ts +2 -2
  26. package/dist/js/imports/util/settings.d.ts +2 -2
  27. package/dist/js/imports/util/settings.d.ts.map +1 -1
  28. package/dist/js/imports/util/text.d.ts +15 -2
  29. package/dist/js/imports/util/text.d.ts.map +1 -1
  30. package/dist/js/imports/util/window.d.ts +7 -2
  31. package/dist/js/imports/util/window.d.ts.map +1 -1
  32. package/dist/js/index.d.ts +1 -16
  33. package/dist/js/index.d.ts.map +1 -1
  34. package/dist/js/index.js +541 -475
  35. package/dist/js/index.js.map +1 -1
  36. package/dist/js/index.min.js +1 -1
  37. package/dist/js/index.min.js.map +1 -1
  38. package/package.json +1 -1
  39. package/src/ts/imports/components/header.ts +34 -29
  40. package/src/ts/imports/components/index.ts +4 -0
  41. package/src/ts/imports/enums/index.ts +4 -0
  42. package/src/ts/imports/{enum.ts → enums/side.ts} +1 -1
  43. package/src/ts/imports/index.ts +7 -0
  44. package/src/ts/imports/models/index.ts +5 -0
  45. package/src/ts/imports/models/item.ts +6 -6
  46. package/src/ts/imports/util/display.ts +67 -2
  47. package/src/ts/imports/util/event.ts +88 -2
  48. package/src/ts/imports/util/icon.ts +2 -2
  49. package/src/ts/imports/util/index.ts +14 -0
  50. package/src/ts/imports/util/list.ts +2 -2
  51. package/src/ts/imports/util/math.ts +2 -2
  52. package/src/ts/imports/util/object.ts +3 -3
  53. package/src/ts/imports/util/scroll.ts +2 -2
  54. package/src/ts/imports/util/selectors.ts +3 -3
  55. package/src/ts/imports/util/settings.ts +2 -3
  56. package/src/ts/imports/util/text.ts +43 -2
  57. package/src/ts/imports/util/window.ts +10 -3
  58. package/src/ts/index.ts +1 -25
  59. package/dist/js/imports/enum.d.ts.map +0 -1
  60. package/dist/js/util.d.ts +0 -78
  61. package/dist/js/util.d.ts.map +0 -1
  62. package/dist/js/util.js +0 -399
  63. package/dist/js/util.js.map +0 -1
  64. package/dist/js/util.min.js +0 -2
  65. package/dist/js/util.min.js.map +0 -1
  66. package/src/ts/util.ts +0 -209
@@ -2,7 +2,7 @@
2
2
  * Main header functionality
3
3
  * @public
4
4
  */
5
- export declare class mintHeader {
5
+ export declare class MintHeader {
6
6
  /**
7
7
  * Navbar settings
8
8
  */
@@ -121,5 +121,5 @@ export declare class mintHeader {
121
121
  */
122
122
  eTransitionEnd(): void;
123
123
  }
124
- export default mintHeader;
124
+ export default MintHeader;
125
125
  //# sourceMappingURL=header.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"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W,GAAG,IAAI,GAAI,IAAI;IAWlD;;;OAGG;IACH,iBAAiB,CAAE,MAAM,CAAC,EAAE,WAAW,GAAG,IAAI,GAAI,IAAI;IAUtD;;OAEG;IACH,aAAa,IAAM,IAAI;IAOvB;;OAEG;IACH,eAAe,IAAM,IAAI;IAezB;;OAEG;IACH,gBAAgB,IAAM,IAAI;IAc1B;;OAEG;IACH,iBAAiB,IAAM,IAAI;IAQ3B;;OAEG;IACH,aAAa,IAAM,IAAI;IAoBvB;;OAEG;IACH,aAAa,IAAM,IAAI;IAIvB;;;OAGG;IACH,QAAQ,CAAE,CAAC,EAAE,aAAa,GAAI,IAAI;IASlC;;;OAGG;IACH,qBAAqB,CAAE,CAAC,EAAE,aAAa,GAAI,IAAI;IAyB/C;;;OAGG;IACH,mBAAmB,CAAE,CAAC,EAAE,aAAa,GAAI,IAAI;IAiB7C;;;OAGG;IACH,eAAe,CAAE,CAAC,EAAE,aAAa,GAAI,IAAI;IAezC;;OAEG;IACH,iBAAiB,IAAM,IAAI;IAI3B;;;OAGG;IACH,WAAW,CAAE,CAAC,EAAE,UAAU,GAAI,IAAI;IAMlC;;OAEG;IACH,cAAc,IAAM,IAAI;CAK3B;AACD,eAAe,UAAU,CAAC"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Forward all exports from the components directory
3
+ */
4
+ export * from './header';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ts/imports/components/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,UAAU,CAAC"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Forward all exports from the enums directory
3
+ */
4
+ export * from './side';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ts/imports/enums/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,QAAQ,CAAC"}
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * Side Enum
3
3
  */
4
- export declare enum mintSide {
4
+ export declare enum EMintSide {
5
5
  Top = 0,
6
6
  Right = 1,
7
7
  Bottom = 2,
8
8
  Left = 3
9
9
  }
10
- //# sourceMappingURL=enum.d.ts.map
10
+ //# sourceMappingURL=side.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"side.d.ts","sourceRoot":"","sources":["../../../../src/ts/imports/enums/side.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,SAAS;IACjB,GAAG,IAAA;IACH,KAAK,IAAA;IACL,MAAM,IAAA;IACN,IAAI,IAAA;CACP"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Forward all exports from the imports directory
3
+ */
4
+ export * from './components';
5
+ export * from './enums';
6
+ export * from './models';
7
+ export * from './util';
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ts/imports/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Forward all exports from the models directory
3
+ */
4
+ export * from './color';
5
+ export * from './item';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ts/imports/models/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC"}
@@ -3,7 +3,7 @@
3
3
  * @note - this class must be convertable with JSON
4
4
  * - only add strings, numbers, booleans, arrays, and objects
5
5
  */
6
- export declare class mintItem {
6
+ export declare class MintItem {
7
7
  /**
8
8
  * Item settings
9
9
  */
@@ -30,7 +30,7 @@ export declare class mintItem {
30
30
  category?: string;
31
31
  type?: string;
32
32
  unit?: string;
33
- logo?: mintItem;
33
+ logo?: MintItem;
34
34
  icon?: string;
35
35
  position?: string;
36
36
  transform?: string;
@@ -62,9 +62,9 @@ export declare class mintItem {
62
62
  */
63
63
  paragraphs?: string[];
64
64
  classes?: string[];
65
- items?: mintItem[];
66
- images?: mintItem[];
67
- buttons?: mintItem[];
65
+ items?: MintItem[];
66
+ images?: MintItem[];
67
+ buttons?: MintItem[];
68
68
  }
69
- export default mintItem;
69
+ export default MintItem;
70
70
  //# sourceMappingURL=item.d.ts.map
@@ -1,7 +1,25 @@
1
+ /**
2
+ * Imports
3
+ */
4
+ import { EMintSide } from '../enums';
1
5
  /**
2
6
  * Handles the display of elements
3
7
  */
4
- export declare abstract class mintDisplay {
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;
5
23
  }
6
- export default mintDisplay;
24
+ export default MintDisplay;
7
25
  //# sourceMappingURL=display.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"display.d.ts","sourceRoot":"","sources":["../../../../src/ts/imports/util/display.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,8BAAsB,WAAW;CAEhC;AACD,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"display.d.ts","sourceRoot":"","sources":["../../../../src/ts/imports/util/display.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAGrC;;GAEG;AACH,8BAAsB,WAAW;IAChC;;;;;OAKM;IACH,MAAM,CAAC,IAAI,CAAE,EAAE,CAAC,EAAE,WAAW,GAAG,IAAI,EAAE,KAAK,GAAE,MAAmC,EAAE,IAAI,GAAE,SAAyB,GAAI,IAAI;IAqBzH;;;;;OAKG;IACH,MAAM,CAAC,IAAI,CAAE,EAAE,CAAC,EAAE,WAAW,GAAG,IAAI,EAAE,KAAK,GAAE,MAAmC,EAAE,IAAI,GAAE,SAAyB,GAAI,IAAI;CA2B5H;AACD,eAAe,WAAW,CAAC"}
@@ -1,7 +1,41 @@
1
1
  /**
2
2
  * Event helper functions
3
3
  */
4
- export declare abstract class mintEvent {
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;
5
39
  }
6
- export default mintEvent;
40
+ export default MintEvent;
7
41
  //# sourceMappingURL=event.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"event.d.ts","sourceRoot":"","sources":["../../../../src/ts/imports/util/event.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,8BAAsB,SAAS;CAE9B;AACD,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"event.d.ts","sourceRoot":"","sources":["../../../../src/ts/imports/util/event.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,8BAAsB,SAAS;IAC9B;;;;;OAKM;IACH,MAAM,CAAC,QAAQ,CAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,GAAE,MAAmC,GAAI,QAAQ;IAUtF;;;;;OAKG;IACH,MAAM,CAAC,aAAa,CAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,GAAE,MAAmC,GAAI,aAAa;IAIhG;;;;;;OAMG;IACH,MAAM,CAAC,QAAQ,CAAE,IAAI,EAAE,QAAQ,EACd,IAAI,GAAE,MAAmC,EACzC,OAAO,CAAC,EAAE;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAC,GAAI,QAAQ;IAsC/D;;;;;;OAMG;IACH,MAAM,CAAC,aAAa,CAAE,IAAI,EAAE,QAAQ,EACd,IAAI,GAAE,MAAmC,EACzC,OAAO,CAAC,EAAE;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAC,GAAI,aAAa;CAG5E;AACD,eAAe,SAAS,CAAC"}
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Icon helper functions
3
3
  */
4
- export declare abstract class mintIcon {
4
+ export declare abstract class MintIcon {
5
5
  /**
6
6
  * Default icons
7
7
  */
@@ -25,5 +25,5 @@ export declare abstract class mintIcon {
25
25
  */
26
26
  static remove(icon: string, selector: string): void;
27
27
  }
28
- export default mintIcon;
28
+ export default MintIcon;
29
29
  //# sourceMappingURL=icon.d.ts.map
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Forward all exports from the util directory
3
+ */
4
+ export * from './display';
5
+ export * from './event';
6
+ export * from './icon';
7
+ export * from './list';
8
+ export * from './math';
9
+ export * from './object';
10
+ export * from './scroll';
11
+ export * from './selectors';
12
+ export * from './settings';
13
+ export * from './text';
14
+ export * from './window';
15
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ts/imports/util/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC"}
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * List functions for the util library
3
3
  */
4
- export declare abstract class mintList {
4
+ export declare abstract class MintList {
5
5
  /**
6
6
  * Returns a copy of the provided list with the items in random order
7
7
  * @param list - the list to shuffle
@@ -19,5 +19,5 @@ export declare abstract class mintList {
19
19
  */
20
20
  static filter<T>(list: T[], test: (item: T) => boolean): T[];
21
21
  }
22
- export default mintList;
22
+ export default MintList;
23
23
  //# sourceMappingURL=list.d.ts.map
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Math functions for the util library
3
3
  */
4
- export declare abstract class mintMath {
4
+ export declare abstract class MintMath {
5
5
  /**
6
6
  * Get a random integer between min and max
7
7
  * @param max Maximum value to return
@@ -10,5 +10,5 @@ export declare abstract class mintMath {
10
10
  */
11
11
  static randomInt(max: number, min?: number): number;
12
12
  }
13
- export default mintMath;
13
+ export default MintMath;
14
14
  //# sourceMappingURL=math.d.ts.map
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Object functions for the util library
3
3
  */
4
- export declare abstract class mintObject {
4
+ export declare abstract class MintObject {
5
5
  /**
6
6
  * Returns true if the provided objects have the same entries
7
7
  */
@@ -70,5 +70,5 @@ export declare abstract class mintObject {
70
70
  */
71
71
  static updateArray(original: any[], update?: any[], key?: string): any;
72
72
  }
73
- export default mintObject;
73
+ export default MintObject;
74
74
  //# sourceMappingURL=object.d.ts.map
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Scroll functions
3
3
  */
4
- export declare abstract class mintScroll {
4
+ export declare abstract class MintScroll {
5
5
  /**
6
6
  * Scroll to the top of the page
7
7
  */
@@ -15,5 +15,5 @@ export declare abstract class mintScroll {
15
15
  */
16
16
  static showElements(): void;
17
17
  }
18
- export default mintScroll;
18
+ export default MintScroll;
19
19
  //# sourceMappingURL=scroll.d.ts.map
@@ -2,7 +2,7 @@
2
2
  * CSS-selector helpers
3
3
  * @public
4
4
  */
5
- export declare abstract class mintSelectors {
5
+ export declare abstract class MintSelectors {
6
6
  /**
7
7
  * The library name that will be added as a prefix
8
8
  */
@@ -118,5 +118,5 @@ export declare abstract class mintSelectors {
118
118
  */
119
119
  static isFocusable(el: HTMLElement): boolean;
120
120
  }
121
- export default mintSelectors;
121
+ export default MintSelectors;
122
122
  //# sourceMappingURL=selectors.d.ts.map
@@ -2,7 +2,7 @@
2
2
  * Settings management
3
3
  * @public
4
4
  */
5
- export declare abstract class mintSettings {
5
+ export declare abstract class MintSettings {
6
6
  /**
7
7
  * Value added to all delay variables
8
8
  */
@@ -35,5 +35,5 @@ export declare abstract class mintSettings {
35
35
  */
36
36
  protected static setDelay(): void;
37
37
  }
38
- export default mintSettings;
38
+ export default MintSettings;
39
39
  //# sourceMappingURL=settings.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../../src/ts/imports/util/settings.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,8BAAsB,YAAY;IAC9B;;OAEG;IACH,MAAM,CAAC,SAAS,EAAE,MAAM,CAAK;IAE7B;;OAEG;IACH,MAAM,CAAC,SAAS,EAAE,MAAM,CAAO;IAE/B;;OAEG;IACH,MAAM,CAAC,KAAK,EAAE;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAC,CAOnC;IAEF;;OAEG;IACH,MAAM,CAAC,KAAK,EAAE;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAC,CAOnC;IAEF;;;OAGG;IACH,MAAM,CAAC,GAAG,CAAE,QAAQ,EAAE;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAC,GAAI,IAAI;IA2BlD;;OAEG;IACH,SAAS,CAAC,MAAM,CAAC,QAAQ,IAAM,IAAI;CAUtC;AAED,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../../src/ts/imports/util/settings.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,8BAAsB,YAAY;IAC9B;;OAEG;IACH,MAAM,CAAC,SAAS,EAAE,MAAM,CAAK;IAE7B;;OAEG;IACH,MAAM,CAAC,SAAS,EAAE,MAAM,CAAO;IAE/B;;OAEG;IACH,MAAM,CAAC,KAAK,EAAE;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAC,CAOnC;IAEF;;OAEG;IACH,MAAM,CAAC,KAAK,EAAE;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAC,CAOnC;IAEF;;;OAGG;IACH,MAAM,CAAC,GAAG,CAAE,QAAQ,EAAE;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAC,GAAI,IAAI;IA2BlD;;OAEG;IACH,SAAS,CAAC,MAAM,CAAC,QAAQ,IAAM,IAAI;CAUtC;AACD,eAAe,YAAY,CAAC"}
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Functions for analyzing and manipulating text.
3
3
  */
4
- export declare abstract class mintText {
4
+ export declare abstract class MintText {
5
5
  /**
6
6
  * Generate a slug from a string
7
7
  * @param text - The string to slugify
@@ -22,6 +22,19 @@ export declare abstract class mintText {
22
22
  * Capitalize the first letter of the given word
23
23
  */
24
24
  static titleCase(text: string): string;
25
+ /**
26
+ * Copies the provided text to the clipboard
27
+ * @param text - the text to copy
28
+ * @returns - true if the text was successfully copied to the clipboard; else false
29
+ */
30
+ static copyText(text: string): boolean;
31
+ /**
32
+ * Tests the validity of an email address
33
+ * @see {@link https://stackoverflow.com/questions/201323/how-can-i-validate-an-email-address-using-a-regular-expression}
34
+ * @param text - the string to test
35
+ * @returns - true if the given string is an email address; false if not
36
+ */
37
+ static isEmail(text: string): boolean;
25
38
  }
26
- export default mintText;
39
+ export default MintText;
27
40
  //# sourceMappingURL=text.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../../../src/ts/imports/util/text.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,8BAAsB,QAAQ;IAE7B;;;;OAIG;IACH,MAAM,CAAC,IAAI,CAAE,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM;IAInC;;;;OAIG;IACH,MAAM,CAAC,KAAK,CAAE,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM;IA6C9C;;OAEG;IACH,MAAM,CAAC,SAAS,CAAE,IAAI,EAAE,MAAM,GAAG,MAAM;IAkBvC;;OAEG;IACH,MAAM,CAAC,SAAS,CAAE,IAAI,EAAE,MAAM,GAAG,MAAM;CAKvC;AACD,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../../../src/ts/imports/util/text.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,8BAAsB,QAAQ;IAE7B;;;;OAIG;IACH,MAAM,CAAC,IAAI,CAAE,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM;IAInC;;;;OAIG;IACH,MAAM,CAAC,KAAK,CAAE,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM;IA6C9C;;OAEG;IACH,MAAM,CAAC,SAAS,CAAE,IAAI,EAAE,MAAM,GAAG,MAAM;IAkBvC;;OAEG;IACH,MAAM,CAAC,SAAS,CAAE,IAAI,EAAE,MAAM,GAAG,MAAM;IAMvC;;;;OAIM;IACH,MAAM,CAAC,QAAQ,CAAE,IAAI,EAAE,MAAM,GAAI,OAAO;IA0BxC;;;;;OAKG;IACH,MAAM,CAAC,OAAO,CAAE,IAAI,EAAE,MAAM,GAAI,OAAO;CAG1C;AACD,eAAe,QAAQ,CAAC"}
@@ -1,7 +1,12 @@
1
1
  /**
2
2
  * Functions related to the browser window.
3
3
  */
4
- export declare abstract class mintWindow {
4
+ export declare abstract class MintWindow {
5
+ /**
6
+ * Returns the width of the window, including fractional pixels
7
+ * @returns the width of the window
8
+ */
9
+ static width(): number;
5
10
  }
6
- export default mintWindow;
11
+ export default MintWindow;
7
12
  //# sourceMappingURL=window.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"window.d.ts","sourceRoot":"","sources":["../../../../src/ts/imports/util/window.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,8BAAsB,UAAU;CAE/B;AACD,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"window.d.ts","sourceRoot":"","sources":["../../../../src/ts/imports/util/window.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,8BAAsB,UAAU;IAC/B;;;OAGM;IACH,MAAM,CAAC,KAAK,IAAM,MAAM;CAI3B;AACD,eAAe,UAAU,CAAC"}
@@ -6,20 +6,5 @@
6
6
  /**
7
7
  * Exports
8
8
  */
9
- export { mintSide } from './imports/enum';
10
- export { mintHeader } from './imports/components/header';
11
- export { mintColor } from './imports/models/color';
12
- export { mintItem } from './imports/models/item';
13
- export { mintDisplay } from './imports/util/display';
14
- export { mintEvent } from './imports/util/event';
15
- export { mintIcon } from './imports/util/icon';
16
- export { mintList } from './imports/util/list';
17
- export { mintMath } from './imports/util/math';
18
- export { mintObject } from './imports/util/object';
19
- export { mintScroll } from './imports/util/scroll';
20
- export { mintText } from './imports/util/text';
21
- export { mintWindow } from './imports/util/window';
22
- export { mintSelectors } from './imports/util/selectors';
23
- export { mintSettings } from './imports/util/settings';
24
- export { mintUtil, default } from './util';
9
+ export * from './imports';
25
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ts/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;GAEG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAG1C,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAGzD,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAGjD,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAGnD,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ts/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;GAEG;AACH,cAAc,WAAW,CAAC"}