mithril-materialized 1.2.2 → 1.3.1
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/dist/button.d.ts +1 -1
- package/dist/carousel.d.ts +2 -0
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +1 -1
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/utils.d.ts +0 -44
- package/package.json +4 -4
package/dist/utils.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { IInputOptions } from './input-options';
|
|
2
1
|
/**
|
|
3
2
|
* Create a unique ID
|
|
4
3
|
* @see https://stackoverflow.com/a/2117523/319711
|
|
@@ -13,33 +12,8 @@ export declare const uniqueId: () => string;
|
|
|
13
12
|
* @returns RFC4122 version 4 compliant GUID
|
|
14
13
|
*/
|
|
15
14
|
export declare const uuid4: () => string;
|
|
16
|
-
export declare const compose: <F extends (d: any) => any, T>(...functions: F[]) => (data: T) => T;
|
|
17
|
-
export declare const map: <T>(f: (...args: any[]) => any) => (x: T[]) => unknown[];
|
|
18
|
-
export declare const join: <T>(seperator: string) => (list: T[]) => string;
|
|
19
|
-
/**
|
|
20
|
-
* Convert camel case to snake case.
|
|
21
|
-
*
|
|
22
|
-
* @param {string} cc: Camel case string
|
|
23
|
-
*/
|
|
24
|
-
export declare const camelToSnake: (cc: string) => string;
|
|
25
|
-
/** Convert an object to a string of HTML attributes */
|
|
26
|
-
export declare const toAttributeString: <T extends {
|
|
27
|
-
[key: string]: any;
|
|
28
|
-
}>(x?: T) => "" | T;
|
|
29
|
-
/** Add the disabled attribute when required */
|
|
30
|
-
export declare const disable: ({ disabled }: {
|
|
31
|
-
disabled?: boolean;
|
|
32
|
-
}) => "" | "[disabled]";
|
|
33
|
-
/** Add the required and aria-required attribute when required */
|
|
34
|
-
export declare const req: ({ required, isMandatory }: {
|
|
35
|
-
required?: boolean;
|
|
36
|
-
isMandatory?: boolean;
|
|
37
|
-
}) => "" | "[required][aria-required=true]";
|
|
38
|
-
/** Convert input options to a set of input attributes */
|
|
39
|
-
export declare const toAttrs: <T>(o: IInputOptions<T>) => string;
|
|
40
15
|
/** Check if a string or number is numeric. @see https://stackoverflow.com/a/9716488/319711 */
|
|
41
16
|
export declare const isNumeric: (n: string | number) => boolean;
|
|
42
|
-
export declare const pipe: (...fncs: Array<(x: any) => any>) => <T>(x: T) => T;
|
|
43
17
|
/**
|
|
44
18
|
* Pad left, default width 2 with a '0'
|
|
45
19
|
*
|
|
@@ -50,21 +24,3 @@ export declare const pipe: (...fncs: Array<(x: any) => any>) => <T>(x: T) => T;
|
|
|
50
24
|
* @returns
|
|
51
25
|
*/
|
|
52
26
|
export declare const padLeft: (n: string | number, width?: number, z?: string) => string;
|
|
53
|
-
/**
|
|
54
|
-
* Swap two elements at index i and j.
|
|
55
|
-
* Mutates the original array.
|
|
56
|
-
*
|
|
57
|
-
* @param arr array of items
|
|
58
|
-
* @param i from index
|
|
59
|
-
* @param j to index
|
|
60
|
-
*/
|
|
61
|
-
export declare const swap: <T>(arr: T[], i: number, j: number) => void;
|
|
62
|
-
/**
|
|
63
|
-
* Move an element at index i to index j.
|
|
64
|
-
* Mutates the original array.
|
|
65
|
-
*
|
|
66
|
-
* @param arr array of items
|
|
67
|
-
* @param i from index
|
|
68
|
-
* @param j to index
|
|
69
|
-
*/
|
|
70
|
-
export declare const move: <T>(arr: T[], i: number, j: number) => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mithril-materialized",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"description": "A materialize library for mithril.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"license": "MIT",
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"materialize-css": "^1.0.0",
|
|
38
|
-
"mithril": "^2.2.
|
|
38
|
+
"mithril": "^2.2.12"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@types/materialize-css": "^1.0.14",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"microbundle": "^0.15.1",
|
|
45
45
|
"rimraf": "^6.0.1",
|
|
46
46
|
"tslib": "^2.8.1",
|
|
47
|
-
"typedoc": "^0.
|
|
48
|
-
"typescript": "^5.
|
|
47
|
+
"typedoc": "^0.27.6",
|
|
48
|
+
"typescript": "^5.7.3"
|
|
49
49
|
}
|
|
50
50
|
}
|