@appartmint/mint 2.6.19 → 2.6.21

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.
@@ -1,6 +1,3 @@
1
- /**
2
- * Color
3
- */
4
1
  export declare class mintColor {
5
2
  protected static hexBase: number;
6
3
  protected static hexMax: string;
@@ -11,22 +8,9 @@ export declare class mintColor {
11
8
  constructor(args: {
12
9
  [key: string]: number | string;
13
10
  });
14
- /**
15
- * Constructor from a string argument
16
- */
17
11
  protected stringConstructor(str: string): void;
18
- /**
19
- * Constructor from a hex argument
20
- */
21
12
  protected hexConstructor(hex: string): void;
22
- /**
23
- * Constructor from an rgba argument
24
- */
25
13
  protected rgbConstructor(rgb: string): void;
26
- /**
27
- * Returns the perceived brightness of the color
28
- */
29
14
  getBrightness(): number;
30
15
  }
31
- export default mintColor;
32
16
  //# sourceMappingURL=color.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"color.d.ts","sourceRoot":"","sources":["../../../../src/ts/imports/models/color.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,qBAAa,SAAS;IAClB,SAAS,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAM;IACtC,SAAS,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAQ;IAChC,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;gBAEJ,IAAI,EAAE;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAA;KAAC;IAUnD;;OAEG;IACH,SAAS,CAAC,iBAAiB,CAAE,GAAG,EAAE,MAAM,GAAI,IAAI;IAWhD;;OAEG;IACH,SAAS,CAAC,cAAc,CAAE,GAAG,EAAE,MAAM,GAAI,IAAI;IA+B7C;;OAEG;IACH,SAAS,CAAC,cAAc,CAAE,GAAG,EAAE,MAAM,GAAI,IAAI;IAU7C;;OAEG;IACH,aAAa,IAAM,MAAM;CAS5B;AACD,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"color.d.ts","sourceRoot":"","sources":["../../../../src/ts/imports/models/color.ts"],"names":[],"mappings":"AAAA,qBAAa,SAAS;IAClB,SAAS,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAK;IACrC,SAAS,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAO;IAC/B,CAAC,EAAE,MAAM,CAAA;IACT,CAAC,EAAE,MAAM,CAAA;IACT,CAAC,EAAE,MAAM,CAAA;IACT,CAAC,EAAE,MAAM,CAAA;gBAEH,IAAI,EAAE;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAA;KAAC;IAUnD,SAAS,CAAC,iBAAiB,CAAE,GAAG,EAAE,MAAM,GAAI,IAAI;IAWhD,SAAS,CAAC,cAAc,CAAE,GAAG,EAAE,MAAM,GAAI,IAAI;IA+B7C,SAAS,CAAC,cAAc,CAAE,GAAG,EAAE,MAAM,GAAI,IAAI;IAU7C,aAAa,IAAM,MAAM;CAS5B"}
@@ -1,11 +1,9 @@
1
- /**
2
- * Forward all exports from the models directory
3
- */
4
1
  export * from './color';
5
2
  export * from './event';
6
3
  export * from './file';
7
4
  export * from './item';
8
5
  export * from './minify';
9
6
  export * from './page';
7
+ export * from './primitive';
10
8
  export * from './recaptcha';
11
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +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,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ts/imports/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA;AACvB,cAAc,QAAQ,CAAA;AACtB,cAAc,QAAQ,CAAA;AACtB,cAAc,UAAU,CAAA;AACxB,cAAc,QAAQ,CAAA;AACtB,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA"}
@@ -0,0 +1,3 @@
1
+ export type MintTPrimitive = string | number | boolean | undefined;
2
+ export type MintTJson = Record<string, MintTPrimitive | MintTPrimitive[] | MintTJson[]>;
3
+ //# sourceMappingURL=primitive.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"primitive.d.ts","sourceRoot":"","sources":["../../../../src/ts/imports/models/primitive.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;AACnE,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,cAAc,GAAG,cAAc,EAAE,GAAG,SAAS,EAAE,CAAC,CAAC"}
package/dist/js/index.js CHANGED
@@ -784,12 +784,8 @@ __webpack_require__.r(__webpack_exports__);
784
784
 
785
785
  __webpack_require__.r(__webpack_exports__);
786
786
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
787
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
788
787
  /* harmony export */ mintColor: () => (/* binding */ mintColor)
789
788
  /* harmony export */ });
790
- /**
791
- * Color
792
- */
793
789
  class mintColor {
794
790
  static hexBase = 16;
795
791
  static hexMax = 'FF';
@@ -806,9 +802,6 @@ class mintColor {
806
802
  this.stringConstructor(args.color);
807
803
  }
808
804
  }
809
- /**
810
- * Constructor from a string argument
811
- */
812
805
  stringConstructor(str) {
813
806
  if (str.startsWith('#')) {
814
807
  this.hexConstructor(str);
@@ -820,9 +813,6 @@ class mintColor {
820
813
  this.rgbConstructor(str);
821
814
  }
822
815
  }
823
- /**
824
- * Constructor from a hex argument
825
- */
826
816
  hexConstructor(hex) {
827
817
  switch (hex.length) {
828
818
  case 1:
@@ -852,9 +842,6 @@ class mintColor {
852
842
  this.b = parseInt(hex.substring(5, 7), mintColor.hexBase);
853
843
  this.a = parseInt(hex.substring(7, 9), mintColor.hexBase) / mintColor.hexBase ** 2;
854
844
  }
855
- /**
856
- * Constructor from an rgba argument
857
- */
858
845
  rgbConstructor(rgb) {
859
846
  let match = rgb.match(/rgba?\((\d{1,3}), ?(\d{1,3}), ?(\d{1,3})\)?(?:, ?(\d(?:\.\d*)?)\))?/);
860
847
  if (match) {
@@ -864,9 +851,6 @@ class mintColor {
864
851
  this.a = parseFloat(match[4]);
865
852
  }
866
853
  }
867
- /**
868
- * Returns the perceived brightness of the color
869
- */
870
854
  getBrightness() {
871
855
  if (this.a === 0) {
872
856
  return 262;
@@ -877,7 +861,6 @@ class mintColor {
877
861
  return -1;
878
862
  }
879
863
  }
880
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (mintColor);
881
864
 
882
865
 
883
866
  /***/ }),
@@ -923,10 +906,9 @@ __webpack_require__.r(__webpack_exports__);
923
906
  /* harmony import */ var _item__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./item */ "./src/ts/imports/models/item.ts");
924
907
  /* harmony import */ var _minify__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./minify */ "./src/ts/imports/models/minify.ts");
925
908
  /* harmony import */ var _page__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./page */ "./src/ts/imports/models/page.ts");
926
- /* harmony import */ var _recaptcha__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./recaptcha */ "./src/ts/imports/models/recaptcha.ts");
927
- /**
928
- * Forward all exports from the models directory
929
- */
909
+ /* harmony import */ var _primitive__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./primitive */ "./src/ts/imports/models/primitive.ts");
910
+ /* harmony import */ var _recaptcha__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./recaptcha */ "./src/ts/imports/models/recaptcha.ts");
911
+
930
912
 
931
913
 
932
914
 
@@ -1044,6 +1026,18 @@ __webpack_require__.r(__webpack_exports__);
1044
1026
 
1045
1027
 
1046
1028
 
1029
+ /***/ }),
1030
+
1031
+ /***/ "./src/ts/imports/models/primitive.ts":
1032
+ /*!********************************************!*\
1033
+ !*** ./src/ts/imports/models/primitive.ts ***!
1034
+ \********************************************/
1035
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1036
+
1037
+ __webpack_require__.r(__webpack_exports__);
1038
+
1039
+
1040
+
1047
1041
  /***/ }),
1048
1042
 
1049
1043
  /***/ "./src/ts/imports/models/recaptcha.ts":