@etsoo/shared 1.1.27 → 1.1.30
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/README.md +4 -3
- package/lib/cjs/index.d.ts +2 -0
- package/lib/cjs/index.js +2 -0
- package/lib/cjs/types/EHistory.d.ts +1 -1
- package/lib/mjs/index.d.ts +2 -0
- package/lib/mjs/index.js +2 -0
- package/lib/mjs/types/EHistory.d.ts +1 -1
- package/package.json +1 -1
- package/src/index.ts +2 -0
- package/src/types/EHistory.ts +1 -1
package/README.md
CHANGED
|
@@ -26,6 +26,7 @@ Etsoo implmented Color
|
|
|
26
26
|
|static getColors|Get HEX or RGB colors|
|
|
27
27
|
|static getEColors|Get EColors|
|
|
28
28
|
|static parse|Parse HTML color to EColor|
|
|
29
|
+
|Methods||
|
|
29
30
|
|clone|Clone color with adjustments|
|
|
30
31
|
|getContrastRatio|Get contrast ratio, a value between 0 and 1|
|
|
31
32
|
|getDeltaValue|Get Delta value (perceptible by human eyes)|
|
|
@@ -63,7 +64,7 @@ ETSOO Extended abstract history class
|
|
|
63
64
|
|length|States length|
|
|
64
65
|
|state|Current state|
|
|
65
66
|
|states|States|
|
|
66
|
-
|
|
67
|
+
|Methods||
|
|
67
68
|
|back|Back to the previous state|
|
|
68
69
|
|clear|Clear all states but keep event listeners|
|
|
69
70
|
|forward|Forward to the next state|
|
|
@@ -104,7 +105,7 @@ Data type definitions and type safe functions
|
|
|
104
105
|
|StringRecord|String key, unknown value Record|
|
|
105
106
|
|VAlign|Vertical align|
|
|
106
107
|
|VAlignEnum|Vertical align enum|
|
|
107
|
-
|
|
108
|
+
|Methods||
|
|
108
109
|
|convert|Convert value to target type|
|
|
109
110
|
|convertByType|Convert by type name like 'string'|
|
|
110
111
|
|convertSimple|Convert value to target enum type|
|
|
@@ -132,7 +133,7 @@ Dates related utilities
|
|
|
132
133
|
|DayFormat|YYYY-MM-DD|
|
|
133
134
|
|MinuteFormat|YYYY-MM-DD hh:mm|
|
|
134
135
|
|SecondFormat|YYYY-MM-DD hh:mm:ss|
|
|
135
|
-
|
|
136
|
+
|Methods||
|
|
136
137
|
|getDays|Get month's days|
|
|
137
138
|
|forma|Format dates|
|
|
138
139
|
|jsonParser|JSON parser|
|
package/lib/cjs/index.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export * from './types/DelayedExecutorType';
|
|
2
2
|
export * from './types/EColor';
|
|
3
|
+
export * from './types/EHistory';
|
|
4
|
+
export * from './types/EventClass';
|
|
3
5
|
export * from './types/FormData';
|
|
4
6
|
export * from './storage/IStorage';
|
|
5
7
|
export * from './storage/WindowStorage';
|
package/lib/cjs/index.js
CHANGED
|
@@ -16,6 +16,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./types/DelayedExecutorType"), exports);
|
|
18
18
|
__exportStar(require("./types/EColor"), exports);
|
|
19
|
+
__exportStar(require("./types/EHistory"), exports);
|
|
20
|
+
__exportStar(require("./types/EventClass"), exports);
|
|
19
21
|
__exportStar(require("./types/FormData"), exports);
|
|
20
22
|
__exportStar(require("./storage/IStorage"), exports);
|
|
21
23
|
__exportStar(require("./storage/WindowStorage"), exports);
|
|
@@ -15,7 +15,7 @@ export interface EHistoryEventData {
|
|
|
15
15
|
/**
|
|
16
16
|
* ETSOO Extended abstract history class
|
|
17
17
|
*/
|
|
18
|
-
export declare abstract class EHistory<T, D extends EHistoryEventData> extends EventClass<EHistoryEventType, D> {
|
|
18
|
+
export declare abstract class EHistory<T, D extends EHistoryEventData = EHistoryEventData> extends EventClass<EHistoryEventType, D> {
|
|
19
19
|
private _index;
|
|
20
20
|
/**
|
|
21
21
|
* States
|
package/lib/mjs/index.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export * from './types/DelayedExecutorType';
|
|
2
2
|
export * from './types/EColor';
|
|
3
|
+
export * from './types/EHistory';
|
|
4
|
+
export * from './types/EventClass';
|
|
3
5
|
export * from './types/FormData';
|
|
4
6
|
export * from './storage/IStorage';
|
|
5
7
|
export * from './storage/WindowStorage';
|
package/lib/mjs/index.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export * from './types/DelayedExecutorType';
|
|
2
2
|
export * from './types/EColor';
|
|
3
|
+
export * from './types/EHistory';
|
|
4
|
+
export * from './types/EventClass';
|
|
3
5
|
export * from './types/FormData';
|
|
4
6
|
export * from './storage/IStorage';
|
|
5
7
|
export * from './storage/WindowStorage';
|
|
@@ -15,7 +15,7 @@ export interface EHistoryEventData {
|
|
|
15
15
|
/**
|
|
16
16
|
* ETSOO Extended abstract history class
|
|
17
17
|
*/
|
|
18
|
-
export declare abstract class EHistory<T, D extends EHistoryEventData> extends EventClass<EHistoryEventType, D> {
|
|
18
|
+
export declare abstract class EHistory<T, D extends EHistoryEventData = EHistoryEventData> extends EventClass<EHistoryEventType, D> {
|
|
19
19
|
private _index;
|
|
20
20
|
/**
|
|
21
21
|
* States
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
package/src/types/EHistory.ts
CHANGED