mithril-materialized 0.19.3 → 0.19.7

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,4 +1,5 @@
1
1
  /// <reference types="materialize-css" />
2
+ /// <reference types="materialize-css" />
2
3
  import 'tslib';
3
4
  import m, { Component } from 'mithril';
4
5
  import { IInputOption } from './option';
@@ -52,8 +53,8 @@ export interface IConvertibleType {
52
53
  * @param value Initial value of the property item
53
54
  * @param options Component options
54
55
  */
55
- export declare const fieldToComponent: ({ component, required: isMandatory, options: selectOptions, autogenerate, ...props }: IModelField, value?: string | number | boolean | Date | (string | number)[] | undefined, options?: {
56
- onchange?: ((v: string | number | boolean | Date | Array<string | number>, overwrite?: boolean | undefined) => void) | undefined;
56
+ export declare const fieldToComponent: ({ component, required: isMandatory, options: selectOptions, autogenerate, ...props }: IModelField, value?: string | number | boolean | Date | Array<string | number>, options?: {
57
+ onchange?: ((v: string | number | boolean | Date | Array<string | number>, overwrite?: boolean) => void) | undefined;
57
58
  containerId?: string | undefined;
58
59
  autofocus?: boolean | undefined;
59
60
  disabled?: boolean | undefined;
package/dist/option.d.ts CHANGED
@@ -14,8 +14,10 @@ export declare const InputCheckbox: FactoryComponent<IInputCheckbox>;
14
14
  export interface IInputOption {
15
15
  /** Option ID */
16
16
  id: string | number;
17
- /** Title or label */
17
+ /** Displayed label */
18
18
  label: string;
19
+ /** Optional title, often used to display a tooltip - will only work when choosing browser-defaults */
20
+ title?: string;
19
21
  /** Is the option disabled? */
20
22
  disabled?: boolean;
21
23
  }
package/dist/pickers.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  /// <reference types="materialize-css" />
2
+ /// <reference types="materialize-css" />
2
3
  import { FactoryComponent } from 'mithril';
3
4
  import { IInputOptions } from './input-options';
4
5
  /** Component to pick a date */
package/package.json CHANGED
@@ -1,50 +1,50 @@
1
- {
2
- "name": "mithril-materialized",
3
- "version": "0.19.3",
4
- "description": "A materialize library for mithril.",
5
- "main": "dist/index.js",
6
- "module": "dist/index.esm.js",
7
- "exports": {
8
- ".": "./dist/index.modern.js",
9
- "./index.css": "./dist/index.css"
10
- },
11
- "unpkg": "dist/index.umd.js",
12
- "types": "dist/index.d.ts",
13
- "scripts": {
14
- "build": "microbundle ./src/index.ts",
15
- "dev": "microbundle watch ./src/index.ts",
16
- "start": "npm run dev",
17
- "clean": "rimraf dist node_modules/.cache",
18
- "link:old": "pnpm link",
19
- "typedoc": "typedoc --out ../../docs/typedoc src",
20
- "build:domain": "npm run clean && npm run build && typedoc --out ../../docs/typedoc src",
21
- "dry-run": "npm publish --dry-run",
22
- "patch-release": "npm run clean && npm run build && npm version patch --force -m \"Patch release\" && npm publish && git push --follow-tags",
23
- "minor-release": "npm run clean && npm run build && npm version minor --force -m \"Minor release\" && npm publish && git push --follow-tags",
24
- "major-release": "npm run clean && npm run build && npm version major --force -m \"Major release\" && npm publish && git push --follow-tags"
25
- },
26
- "repository": {
27
- "type": "git",
28
- "url": "git://github.com/erikvullings/mithril-materialized.git"
29
- },
30
- "keywords": [
31
- "mithril",
32
- "materialize-css"
33
- ],
34
- "author": "Erik Vullings <erik.vullings@gmail.com> (http://www.tno.nl)",
35
- "license": "MIT",
36
- "devDependencies": {
37
- "@types/materialize-css": "^1.0.11",
38
- "@types/mithril": "^2.0.8",
39
- "js-yaml": "^4.1.0",
40
- "microbundle": "^0.14.1",
41
- "rimraf": "^3.0.2",
42
- "tslib": "^2.3.1",
43
- "typedoc": "^0.22.6",
44
- "typescript": "^4.4.4"
45
- },
46
- "dependencies": {
47
- "materialize-css": "^1.0.0",
48
- "mithril": "^2.0.4"
49
- }
50
- }
1
+ {
2
+ "name": "mithril-materialized",
3
+ "version": "0.19.7",
4
+ "description": "A materialize library for mithril.",
5
+ "main": "dist/index.js",
6
+ "module": "dist/index.esm.js",
7
+ "exports": {
8
+ ".": "./dist/index.modern.js",
9
+ "./index.css": "./dist/index.css"
10
+ },
11
+ "unpkg": "dist/index.umd.js",
12
+ "types": "dist/index.d.ts",
13
+ "scripts": {
14
+ "build": "microbundle ./src/index.ts",
15
+ "dev": "microbundle watch ./src/index.ts",
16
+ "start": "npm run dev",
17
+ "clean": "rimraf dist node_modules/.cache",
18
+ "link:old": "pnpm link",
19
+ "typedoc": "typedoc --out ../../docs/typedoc src",
20
+ "build:domain": "npm run clean && npm run build && typedoc --out ../../docs/typedoc src",
21
+ "dry-run": "npm publish --dry-run",
22
+ "patch-release": "npm run clean && npm run build && npm version patch --force -m \"Patch release\" && npm publish && git push --follow-tags",
23
+ "minor-release": "npm run clean && npm run build && npm version minor --force -m \"Minor release\" && npm publish && git push --follow-tags",
24
+ "major-release": "npm run clean && npm run build && npm version major --force -m \"Major release\" && npm publish && git push --follow-tags"
25
+ },
26
+ "repository": {
27
+ "type": "git",
28
+ "url": "git://github.com/erikvullings/mithril-materialized.git"
29
+ },
30
+ "keywords": [
31
+ "mithril",
32
+ "materialize-css"
33
+ ],
34
+ "author": "Erik Vullings <erik.vullings@gmail.com> (http://www.tno.nl)",
35
+ "license": "MIT",
36
+ "dependencies": {
37
+ "mithril": "^2.2.2",
38
+ "materialize-css": "^1.0.0"
39
+ },
40
+ "devDependencies": {
41
+ "@types/materialize-css": "^1.0.11",
42
+ "@types/mithril": "^2.0.11",
43
+ "js-yaml": "^4.1.0",
44
+ "microbundle": "^0.15.0",
45
+ "rimraf": "^3.0.2",
46
+ "tslib": "^2.4.0",
47
+ "typedoc": "^0.22.17",
48
+ "typescript": "^4.7.2"
49
+ }
50
+ }