@creative-web-solution/front-library 7.1.2 → 7.1.3

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 7.1.3
4
+
5
+ * Typescript: Fix some type
6
+
3
7
 
4
8
  ## 7.1.2
5
9
 
@@ -33,7 +33,7 @@ export default class HistoryController {
33
33
  #hasPushstate: boolean;
34
34
  #hasPopStateEvent: boolean;
35
35
  #currentState: FLib.Events.History.StateObject;
36
- #registeredFunctionList: (( url: UrlParser, state: any ) => void)[];
36
+ #registeredFunctionList: (( url: FLib.Helpers.UrlParser, state: any ) => void)[];
37
37
 
38
38
 
39
39
  get state(): FLib.Events.History.StateObject {
@@ -69,7 +69,7 @@ export default class HistoryController {
69
69
 
70
70
 
71
71
  // Call each registered function for popstate event
72
- #callRegisteredFunction = ( url: UrlParser, state: any ): void => {
72
+ #callRegisteredFunction = ( url: FLib.Helpers.UrlParser, state: any ): void => {
73
73
  if ( !this.#registeredFunctionList.length ) {
74
74
  return;
75
75
  }
@@ -123,7 +123,7 @@ export default class Input implements FLib.Validator.Input {
123
123
 
124
124
  if ( this.#hasValidator && options.hasLiveValidation && this.#inputType !== 'hidden' ) {
125
125
  on( this.#isRadio ? this.#$group : $input, {
126
- "eventsName": options.liveValidation?.eventsName[ this.#inputType ],
126
+ "eventsName": options.liveValidation?.eventsName?.[ this.#inputType ] as string,
127
127
  "callback": this.#onLiveValidation
128
128
  } );
129
129
  }
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Front Library
2
2
 
3
- @version: 7.1.2
3
+ @version: 7.1.3
4
4
 
5
5
 
6
6
  ## Use
@@ -84,8 +84,8 @@ declare namespace FLib {
84
84
  select?: string;
85
85
  /** @defaultValue input */
86
86
  inputText?: string;
87
- }
88
- eventsHook
87
+ };
88
+ eventsHook?;
89
89
  }
90
90
  }
91
91
 
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@creative-web-solution/front-library",
3
3
  "title": "Frontend library",
4
4
  "description": "Frontend functions and modules",
5
- "version": "7.1.2",
5
+ "version": "7.1.3",
6
6
  "homepage": "https://github.com/creative-web-solution/front-library",
7
7
  "author": "Creative Web Solution <contact@cws-studio.com> (https://www.cws-studio.com)",
8
8
  "keywords": [],