agnostics 0.0.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/README.md +3 -0
- package/lib/helpers/_Express.js +30 -0
- package/lib/helpers/_Parsers.js +73 -0
- package/lib/helpers/_Window.js +0 -0
- package/lib/helpers/_Yargs.js +328 -0
- package/lib/helpers/index.js +9 -0
- package/lib/index.js +11 -0
- package/lib/inputs/_Callers.js +122 -0
- package/lib/inputs/_Checker.js +3 -0
- package/lib/inputs/_Native.js +223 -0
- package/lib/inputs/_Types.js +112 -0
- package/lib/inputs/index.js +10 -0
- package/lib/logger/_ASCII.js +39 -0
- package/lib/logger/_Defs.js +55 -0
- package/lib/logger/_Logger.js +159 -0
- package/lib/logger/_Settings.js +52 -0
- package/lib/logger/_System.js +191 -0
- package/lib/logger/chars.js +730 -0
- package/lib/logger/index.js +5 -0
- package/lib/schema/_Schema.js +33 -0
- package/lib/schema/index.js +16 -0
- package/lib/specification/_Properties.js +144 -0
- package/lib/specification/index.js +9 -0
- package/package.json +32 -0
- package/types/helpers/_Express.d.ts +2 -0
- package/types/helpers/_Express.d.ts.map +1 -0
- package/types/helpers/_Parsers.d.ts +2 -0
- package/types/helpers/_Parsers.d.ts.map +1 -0
- package/types/helpers/_Window.d.ts +2 -0
- package/types/helpers/_Window.d.ts.map +1 -0
- package/types/helpers/_Yargs.d.ts +44 -0
- package/types/helpers/_Yargs.d.ts.map +1 -0
- package/types/helpers/index.d.ts +2 -0
- package/types/helpers/index.d.ts.map +1 -0
- package/types/index.d.ts +4 -0
- package/types/index.d.ts.map +1 -0
- package/types/inputs/_Callers.d.ts +14 -0
- package/types/inputs/_Callers.d.ts.map +1 -0
- package/types/inputs/_Checker.d.ts +2 -0
- package/types/inputs/_Checker.d.ts.map +1 -0
- package/types/inputs/_Native.d.ts +212 -0
- package/types/inputs/_Native.d.ts.map +1 -0
- package/types/inputs/_Types.d.ts +34 -0
- package/types/inputs/_Types.d.ts.map +1 -0
- package/types/inputs/index.d.ts +3 -0
- package/types/inputs/index.d.ts.map +1 -0
- package/types/logger/_ASCII.d.ts +2 -0
- package/types/logger/_ASCII.d.ts.map +1 -0
- package/types/logger/_Defs.d.ts +54 -0
- package/types/logger/_Defs.d.ts.map +1 -0
- package/types/logger/_Logger.d.ts +5 -0
- package/types/logger/_Logger.d.ts.map +1 -0
- package/types/logger/_Settings.d.ts +24 -0
- package/types/logger/_Settings.d.ts.map +1 -0
- package/types/logger/_System.d.ts +10 -0
- package/types/logger/_System.d.ts.map +1 -0
- package/types/logger/chars.d.ts +93 -0
- package/types/logger/chars.d.ts.map +1 -0
- package/types/logger/index.d.ts +6 -0
- package/types/logger/index.d.ts.map +1 -0
- package/types/schema/_Schema.d.ts +11 -0
- package/types/schema/_Schema.d.ts.map +1 -0
- package/types/schema/index.d.ts +3 -0
- package/types/schema/index.d.ts.map +1 -0
- package/types/specification/_Properties.d.ts +158 -0
- package/types/specification/_Properties.d.ts.map +1 -0
- package/types/specification/index.d.ts +2 -0
- package/types/specification/index.d.ts.map +1 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
import { default as Types } from './_Types.js'
|
|
7
|
+
|
|
8
|
+
export class Schema {
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
$data = {}
|
|
12
|
+
|
|
13
|
+
constructor( properties = null ) {
|
|
14
|
+
this.$data = Types.Obj( properties )
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export class Yargs {
|
|
19
|
+
|
|
20
|
+
$positionals = {}
|
|
21
|
+
$options = {}
|
|
22
|
+
|
|
23
|
+
constructor( positionals = {}, options = {} ) {
|
|
24
|
+
this.$positionals = Types.Obj( positionals )
|
|
25
|
+
this.$options = Types.Obj( options )
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
run() {
|
|
31
|
+
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
import { default as Types } from './_Types.js'
|
|
4
|
+
import { default as Inputs } from './_Inputs.js'
|
|
5
|
+
import * as Properties from './_Properties.js'
|
|
6
|
+
import * as Schema from './_Schema.js'
|
|
7
|
+
|
|
8
|
+
const library = {
|
|
9
|
+
...Types,
|
|
10
|
+
...Inputs,
|
|
11
|
+
...Properties,
|
|
12
|
+
...Schema
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export default library
|
|
16
|
+
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
//////////////////////////////////////////
|
|
2
|
+
// //
|
|
3
|
+
// //
|
|
4
|
+
// SPECIFICATION //
|
|
5
|
+
// //
|
|
6
|
+
// //
|
|
7
|
+
//////////////////////////////////////////
|
|
8
|
+
|
|
9
|
+
export const Properties = {
|
|
10
|
+
|
|
11
|
+
// --------- DEFINITION ---------
|
|
12
|
+
|
|
13
|
+
type: {
|
|
14
|
+
description: 'not that important, except for translation / adaptors',
|
|
15
|
+
matches: ['type']
|
|
16
|
+
},
|
|
17
|
+
|
|
18
|
+
subtype: {
|
|
19
|
+
description: 'original type when inputted / translation',
|
|
20
|
+
matches: ['subtype']
|
|
21
|
+
},
|
|
22
|
+
|
|
23
|
+
// --------- UNIQUE KEYS AND INDEXES ---------
|
|
24
|
+
|
|
25
|
+
index: {
|
|
26
|
+
description: 'unique index (inherited == null)',
|
|
27
|
+
matches: ['index', 'idx']
|
|
28
|
+
},
|
|
29
|
+
key: {
|
|
30
|
+
description: 'unique key (inherited == null)',
|
|
31
|
+
matches: [ 'key', 'id' ]
|
|
32
|
+
},
|
|
33
|
+
|
|
34
|
+
// --------- VISUAL AND TEXTUAL ---------
|
|
35
|
+
|
|
36
|
+
label: {
|
|
37
|
+
description: 'human readable name of property',
|
|
38
|
+
matches: [ 'label', 'name', 'title']
|
|
39
|
+
},
|
|
40
|
+
description: {
|
|
41
|
+
description: 'human readable description',
|
|
42
|
+
matches: [ 'description', 'desc', 'summary']
|
|
43
|
+
},
|
|
44
|
+
|
|
45
|
+
// --------- UNIVERSAL ---------
|
|
46
|
+
|
|
47
|
+
default: {
|
|
48
|
+
description: 'default value (standard)',
|
|
49
|
+
matches: ['default', 'value']
|
|
50
|
+
},
|
|
51
|
+
gui: {
|
|
52
|
+
description: 'what user interface to use (can be HTML config)',
|
|
53
|
+
matches: [ 'gui', 'interface','widget','ui:widget']
|
|
54
|
+
},
|
|
55
|
+
classname: {
|
|
56
|
+
description: 'name of class associated to',
|
|
57
|
+
matches: [ 'classname', 'class', 'object', 'objectname']
|
|
58
|
+
},
|
|
59
|
+
required: {
|
|
60
|
+
description: 'required property flag',
|
|
61
|
+
matches: [ 'required', 'require', 'mandatory','demandOption']
|
|
62
|
+
},
|
|
63
|
+
disabled: {
|
|
64
|
+
description: 'gui interaction is disabled',
|
|
65
|
+
matches: [ 'disabled', 'inactive']
|
|
66
|
+
},
|
|
67
|
+
readonly: {
|
|
68
|
+
description: 'property can only be read',
|
|
69
|
+
matches: ['readonly', 'ro']
|
|
70
|
+
},
|
|
71
|
+
oncheck: {
|
|
72
|
+
description: 'callback for checking value',
|
|
73
|
+
matches: [ 'oncheck', 'validate', 'coerce', 'check']
|
|
74
|
+
},
|
|
75
|
+
onupdate: {
|
|
76
|
+
description: 'callback for updated value',
|
|
77
|
+
matches: [ 'onupdate', 'update', 'change', 'onchange']
|
|
78
|
+
},
|
|
79
|
+
|
|
80
|
+
// --------- STRUCTURAL ---------
|
|
81
|
+
|
|
82
|
+
properties: {
|
|
83
|
+
description: 'an object of further properties',
|
|
84
|
+
matches: ['properties', 'props']
|
|
85
|
+
},
|
|
86
|
+
items: {
|
|
87
|
+
description: 'property definition for items in array',
|
|
88
|
+
matches: ['items', 'array']
|
|
89
|
+
},
|
|
90
|
+
enum: {
|
|
91
|
+
description: 'list of options / allowed values',
|
|
92
|
+
matches: [ 'enum', 'enums', 'enumNames', 'oneOf', 'autocomplete']
|
|
93
|
+
},
|
|
94
|
+
|
|
95
|
+
// --------- INPUT SPECIFIC ---------
|
|
96
|
+
|
|
97
|
+
pattern: {
|
|
98
|
+
description: 'regex or shorthand string validation',
|
|
99
|
+
matches: [ 'pattern', 'regex','match', 'regularexp']
|
|
100
|
+
},
|
|
101
|
+
step: {
|
|
102
|
+
description: 'iterator of numbers',
|
|
103
|
+
matches: [ 'step', 'increment','resolution']
|
|
104
|
+
},
|
|
105
|
+
unit: {
|
|
106
|
+
description: 'unit of measurement (numbers)',
|
|
107
|
+
matches: [ 'unit', 'measure','metric','factor']
|
|
108
|
+
},
|
|
109
|
+
min: {
|
|
110
|
+
description: 'minimum number or string length',
|
|
111
|
+
matches: [ 'min', 'minlength', 'minimum']
|
|
112
|
+
},
|
|
113
|
+
max: {
|
|
114
|
+
description: 'maximum number or string length',
|
|
115
|
+
matches: [ 'max', 'maxlength', 'maximum']
|
|
116
|
+
},
|
|
117
|
+
placeholder: {
|
|
118
|
+
description: 'only used in textual inputs',
|
|
119
|
+
matches: [ 'placeholder']
|
|
120
|
+
},
|
|
121
|
+
accept: {
|
|
122
|
+
description: 'only used in file / url inputs',
|
|
123
|
+
matches: ['accept','extensions','mime']
|
|
124
|
+
},
|
|
125
|
+
size: {
|
|
126
|
+
description: 'used for textarea rows and select static box',
|
|
127
|
+
matches: ['rows', 'size']
|
|
128
|
+
},
|
|
129
|
+
|
|
130
|
+
// --------- MISC ---------
|
|
131
|
+
|
|
132
|
+
misc: {
|
|
133
|
+
description: 'everything else'
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
// export const Table = '\n'+Object.keys(Specification).map( key => {
|
|
139
|
+
// const desc = Specification[key].description
|
|
140
|
+
// const type = (Specification[key].type || '🚨')
|
|
141
|
+
// const keys = Specification[key].keys ? '('+Specification[key].keys.join(', ')+')' : ''
|
|
142
|
+
// return `${key.padEnd(16)}${type.padEnd(24)}${desc} ${keys}`
|
|
143
|
+
// }).join('\n')
|
|
144
|
+
|
package/package.json
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "agnostics",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"author": "Autr <g@sinnott.cc>",
|
|
5
|
+
"description": "featherless birds",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": {
|
|
8
|
+
"types": "./types/lib/index.d.ts",
|
|
9
|
+
"default": "./lib/index.js"
|
|
10
|
+
},
|
|
11
|
+
"./inputs": {
|
|
12
|
+
"types": "./types/lib/inputs/index.d.ts",
|
|
13
|
+
"default": "./lib/inputs/index.js"
|
|
14
|
+
},
|
|
15
|
+
"./helpers": {
|
|
16
|
+
"types": "./types/lib/helpers/index.d.ts",
|
|
17
|
+
"default": "./lib/helpers/index.js"
|
|
18
|
+
},
|
|
19
|
+
"./specification": {
|
|
20
|
+
"types": "./types/lib/specification/index.d.ts",
|
|
21
|
+
"default": "./lib/specification/index.js"
|
|
22
|
+
},
|
|
23
|
+
"./logger": {
|
|
24
|
+
"types": "./types/lib/logger/index.d.ts",
|
|
25
|
+
"default": "./lib/logger/index.js"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"files": [ "lib", "types" ],
|
|
29
|
+
"esversion": 6,
|
|
30
|
+
"type": "module",
|
|
31
|
+
"dependencies": {}
|
|
32
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_Express.d.ts","sourceRoot":"","sources":["../../lib/helpers/_Express.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_Parsers.d.ts","sourceRoot":"","sources":["../../lib/helpers/_Parsers.js"],"names":[],"mappings":"AA8BO,mDA0CN"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_Window.d.ts","sourceRoot":"","sources":["../../lib/helpers/_Window.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export function GetYargsType(type: any): "number" | "string" | "boolean";
|
|
2
|
+
export function GetParsedYargsOptions(agOptions: any, aliasStore?: any[]): {};
|
|
3
|
+
export function ConvertYargsProperty(def: any, override?: {}): {
|
|
4
|
+
array: any;
|
|
5
|
+
describe: any;
|
|
6
|
+
type: string;
|
|
7
|
+
coerce: any;
|
|
8
|
+
default: any;
|
|
9
|
+
accept: any[];
|
|
10
|
+
};
|
|
11
|
+
export function YargsProcessWorkaround(): void;
|
|
12
|
+
export class YargsCommand {
|
|
13
|
+
constructor({ positionals, options, description, version }: {
|
|
14
|
+
positionals: any;
|
|
15
|
+
options?: {};
|
|
16
|
+
description?: string;
|
|
17
|
+
version?: string;
|
|
18
|
+
});
|
|
19
|
+
command: string;
|
|
20
|
+
description: string;
|
|
21
|
+
version: string;
|
|
22
|
+
positionals: {};
|
|
23
|
+
options: {};
|
|
24
|
+
$positionals: {};
|
|
25
|
+
$options: {};
|
|
26
|
+
$aliasStore: any[];
|
|
27
|
+
run(runCallback?: (yargsData: any) => Promise<void>): Promise<any>;
|
|
28
|
+
}
|
|
29
|
+
export class YargsCLI {
|
|
30
|
+
constructor({ commands, options, description, version }: {
|
|
31
|
+
commands: any;
|
|
32
|
+
options?: {};
|
|
33
|
+
description?: string;
|
|
34
|
+
version?: string;
|
|
35
|
+
});
|
|
36
|
+
options: any;
|
|
37
|
+
description: string;
|
|
38
|
+
version: string;
|
|
39
|
+
$aliasStore: any[];
|
|
40
|
+
$options: {};
|
|
41
|
+
$commands: {};
|
|
42
|
+
run(runCallback?: (cmdKey: any, yargsData: any) => Promise<void>): Promise<any>;
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=_Yargs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_Yargs.d.ts","sourceRoot":"","sources":["../../lib/helpers/_Yargs.js"],"names":[],"mappings":"AAwEA,yEAIC;AAGD,8EA4BC;AAED;;;;;;;EAYC;AAGD,+CAUC;AAED;IAYC;;;;;OAuCC;IAjDD,gBAAc;IACd,oBAAmB;IACnB,gBAAe;IACf,gBAAgB;IAChB,YAAY;IAEZ,iBAAiB;IACjB,aAAa;IACb,mBAAgB;IA2ChB,mBAA+B,cAAS,kCA+CvC;CACD;AAGD;IAUC;;;;;OAkBC;IA1BD,aAAc;IACd,oBAAmB;IACnB,gBAAe;IAEf,mBAAgB;IAChB,aAAa;IACb,cAAc;IAsBd,mBAAgC,WAAM,EAAE,cAAS,kCAmDhD;CAGD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/helpers/index.js"],"names":[],"mappings":""}
|
package/types/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../lib/index.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export function Caller(data: any): any;
|
|
2
|
+
/** @type {typeof MinMaxCaller} */
|
|
3
|
+
export function MinMaxCaller(value: any, min: any, max: any, schema: any): any;
|
|
4
|
+
/** @type {typeof DefaultCaller} */
|
|
5
|
+
export function DefaultCaller(value: any, schema: any): any;
|
|
6
|
+
/** @type {typeof EnumCaller} */
|
|
7
|
+
export function EnumCaller(value: any, enumOptions: any, schema: any): any;
|
|
8
|
+
/** @type {typeof ObjCaller} */
|
|
9
|
+
export function ObjCaller(properties: any, schema: any): any;
|
|
10
|
+
/** @type {typeof ArrCaller} */
|
|
11
|
+
export function ArrCaller(value: any, items: any, schema: any): any;
|
|
12
|
+
/** @type {typeof EventCaller} */
|
|
13
|
+
export function EventCaller(event: any, schema: any): any;
|
|
14
|
+
//# sourceMappingURL=_Callers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_Callers.d.ts","sourceRoot":"","sources":["../../lib/inputs/_Callers.js"],"names":[],"mappings":"AAYA,uCA4DC;AAWD,kCAAkC;AAClC,+EAGC;AAED,mCAAmC;AACnC,4DAGC;AAED,gCAAgC;AAChC,2EAEC;AAED,+BAA+B;AAC/B,6DAQC;AAED,+BAA+B;AAC/B,oEAGC;AAED,iCAAiC;AACjC,0DAGC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_Checker.d.ts","sourceRoot":"","sources":["../../lib/inputs/_Checker.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
export function Button(event: any, schema: any): any;
|
|
2
|
+
export function ButtonHtml(def: any): {
|
|
3
|
+
nodeName: string;
|
|
4
|
+
type: string;
|
|
5
|
+
};
|
|
6
|
+
export function Checkbox(value: any, schema: any): any;
|
|
7
|
+
export function CheckboxHtml(def: any): {
|
|
8
|
+
nodeName: string;
|
|
9
|
+
type: string;
|
|
10
|
+
};
|
|
11
|
+
export function ColorPicker(value: any, schema: any): any;
|
|
12
|
+
export function ColorPickerHtml(def: any): {
|
|
13
|
+
nodeName: string;
|
|
14
|
+
type: string;
|
|
15
|
+
};
|
|
16
|
+
export function Date(value: any, schema: any): any;
|
|
17
|
+
export function DateHtml(def: any): {
|
|
18
|
+
nodeName: string;
|
|
19
|
+
type: string;
|
|
20
|
+
};
|
|
21
|
+
export function Datetime(value: any, schema: any): any;
|
|
22
|
+
export function DatetimeHtml(def: any): {
|
|
23
|
+
nodeName: string;
|
|
24
|
+
type: string;
|
|
25
|
+
};
|
|
26
|
+
export function Email(value: any, schema: any): any;
|
|
27
|
+
export function EmailHtml(def: any): {
|
|
28
|
+
nodeName: string;
|
|
29
|
+
type: string;
|
|
30
|
+
};
|
|
31
|
+
export function File(value: any, schema: any): any;
|
|
32
|
+
export function FileHtml(def: any): {
|
|
33
|
+
accept: any;
|
|
34
|
+
nodeName: string;
|
|
35
|
+
type: string;
|
|
36
|
+
};
|
|
37
|
+
export function Files(value: any, schema: any): any;
|
|
38
|
+
export function FilesHtml(def: any): {
|
|
39
|
+
accept: any;
|
|
40
|
+
multiple: boolean;
|
|
41
|
+
nodeName: string;
|
|
42
|
+
type: string;
|
|
43
|
+
};
|
|
44
|
+
export function Hidden(value: any, items: any, schema: any): any;
|
|
45
|
+
export function HiddenHtml(def: any): {
|
|
46
|
+
nodeName: string;
|
|
47
|
+
type: string;
|
|
48
|
+
};
|
|
49
|
+
export function Month(value: any, schema: any): any;
|
|
50
|
+
export function MonthHtml(def: any): {
|
|
51
|
+
nodeName: string;
|
|
52
|
+
type: string;
|
|
53
|
+
};
|
|
54
|
+
export function Number(value: any, schema: any): any;
|
|
55
|
+
export function NumberHtml(def: any): {
|
|
56
|
+
nodeName: string;
|
|
57
|
+
type: string;
|
|
58
|
+
};
|
|
59
|
+
export function Password(value: any, schema: any): any;
|
|
60
|
+
export function PasswordHtml(def: any): {
|
|
61
|
+
nodeName: string;
|
|
62
|
+
type: string;
|
|
63
|
+
};
|
|
64
|
+
export function Radio(value: any, enumOptions: any, schema: any): any;
|
|
65
|
+
export function RadioHtml(def: any): {
|
|
66
|
+
nodeName: string;
|
|
67
|
+
children: any;
|
|
68
|
+
};
|
|
69
|
+
export function Range(value: any, min: any, max: any, schema: any): any;
|
|
70
|
+
export function RangeHtml(def: any): {
|
|
71
|
+
nodeName: string;
|
|
72
|
+
type: string;
|
|
73
|
+
min: any;
|
|
74
|
+
max: any;
|
|
75
|
+
step: any;
|
|
76
|
+
aria: {
|
|
77
|
+
formValuemin: any;
|
|
78
|
+
formValuemax: any;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
export function Reset(event: any, schema: any): any;
|
|
82
|
+
export function ResetHtml(def: any): {
|
|
83
|
+
nodeName: string;
|
|
84
|
+
type: string;
|
|
85
|
+
};
|
|
86
|
+
export function Search(value: any, schema: any): any;
|
|
87
|
+
export function SearchHtml(def: any): {
|
|
88
|
+
nodeName: string;
|
|
89
|
+
type: string;
|
|
90
|
+
};
|
|
91
|
+
export function Select(value: any, enumOptions: any, schema: any): any;
|
|
92
|
+
export function SelectHtml(def: any): {
|
|
93
|
+
nodeName: string;
|
|
94
|
+
children: any;
|
|
95
|
+
};
|
|
96
|
+
export function Multiselect(value: any, enumOptions: any, schema: any): any;
|
|
97
|
+
export function MultiselectHtml(def: any): {
|
|
98
|
+
nodeName: string;
|
|
99
|
+
multiple: boolean;
|
|
100
|
+
children: any;
|
|
101
|
+
};
|
|
102
|
+
export function Submit(event: any, schema: any): any;
|
|
103
|
+
export function SubmitHtml(def: any): {
|
|
104
|
+
nodeName: string;
|
|
105
|
+
type: string;
|
|
106
|
+
};
|
|
107
|
+
export function Tel(value: any, schema: any): any;
|
|
108
|
+
export function TelHtml(def: any): {
|
|
109
|
+
nodeName: string;
|
|
110
|
+
type: string;
|
|
111
|
+
};
|
|
112
|
+
export function Text(value: any, schema: any): any;
|
|
113
|
+
export function TextHtml(def: any): {
|
|
114
|
+
nodeName: string;
|
|
115
|
+
type: string;
|
|
116
|
+
placeholder: any;
|
|
117
|
+
pattern: any;
|
|
118
|
+
minlength: any;
|
|
119
|
+
maxlength: any;
|
|
120
|
+
};
|
|
121
|
+
export function Textarea(value: any, schema: any): any;
|
|
122
|
+
export function TextareaHtml(def: any): {
|
|
123
|
+
nodeName: string;
|
|
124
|
+
placeholder: any;
|
|
125
|
+
minlength: any;
|
|
126
|
+
maxlength: any;
|
|
127
|
+
rows: any;
|
|
128
|
+
aria: {
|
|
129
|
+
multiline: boolean;
|
|
130
|
+
};
|
|
131
|
+
};
|
|
132
|
+
export function Time(value: any, schema: any): any;
|
|
133
|
+
export function TimeHtml(def: any): {
|
|
134
|
+
nodeName: string;
|
|
135
|
+
type: string;
|
|
136
|
+
};
|
|
137
|
+
export function Url(value: any, schema: any): any;
|
|
138
|
+
export function UrlHtml(def: any): {
|
|
139
|
+
nodeName: string;
|
|
140
|
+
type: string;
|
|
141
|
+
};
|
|
142
|
+
export function Week(value: any, schema: any): any;
|
|
143
|
+
export function WeekHtml(def: any): {
|
|
144
|
+
nodeName: string;
|
|
145
|
+
type: string;
|
|
146
|
+
};
|
|
147
|
+
export function Meter(value: any, schema: any): any;
|
|
148
|
+
export function MeterHtml(def: any): {
|
|
149
|
+
nodeName: string;
|
|
150
|
+
min: any;
|
|
151
|
+
max: any;
|
|
152
|
+
low: any;
|
|
153
|
+
high: any;
|
|
154
|
+
};
|
|
155
|
+
export function Fieldset(properties: any, schema: any): any;
|
|
156
|
+
export function FieldsetHtml(def: any): {
|
|
157
|
+
nodeName: string;
|
|
158
|
+
};
|
|
159
|
+
export function Form(properties: any, schema: any): any;
|
|
160
|
+
export function FormHtml(def: any): {
|
|
161
|
+
nodeName: string;
|
|
162
|
+
};
|
|
163
|
+
export function Data(value: any, schema: any): any;
|
|
164
|
+
export function DataHtml(def: any): {
|
|
165
|
+
nodeName: string;
|
|
166
|
+
};
|
|
167
|
+
export function XY(value: any, enumOptions: any, schema: any): any;
|
|
168
|
+
export function XYHtml(def: any): {
|
|
169
|
+
nodeName: string;
|
|
170
|
+
children: {
|
|
171
|
+
nodeName: string;
|
|
172
|
+
type: string;
|
|
173
|
+
min: any;
|
|
174
|
+
max: any;
|
|
175
|
+
step: any;
|
|
176
|
+
aria: {
|
|
177
|
+
formValuemin: any;
|
|
178
|
+
formValuemax: any;
|
|
179
|
+
};
|
|
180
|
+
}[];
|
|
181
|
+
};
|
|
182
|
+
export function XYZ(value: any, enumOptions: any, schema: any): any;
|
|
183
|
+
export function XYZHtml(def: any): {
|
|
184
|
+
nodeName: string;
|
|
185
|
+
children: {
|
|
186
|
+
nodeName: string;
|
|
187
|
+
type: string;
|
|
188
|
+
min: any;
|
|
189
|
+
max: any;
|
|
190
|
+
step: any;
|
|
191
|
+
aria: {
|
|
192
|
+
formValuemin: any;
|
|
193
|
+
formValuemax: any;
|
|
194
|
+
};
|
|
195
|
+
}[];
|
|
196
|
+
};
|
|
197
|
+
export function XYZW(value: any, enumOptions: any, schema: any): any;
|
|
198
|
+
export function XYZWHtml(def: any): {
|
|
199
|
+
nodeName: string;
|
|
200
|
+
children: {
|
|
201
|
+
nodeName: string;
|
|
202
|
+
type: string;
|
|
203
|
+
min: any;
|
|
204
|
+
max: any;
|
|
205
|
+
step: any;
|
|
206
|
+
aria: {
|
|
207
|
+
formValuemin: any;
|
|
208
|
+
formValuemax: any;
|
|
209
|
+
};
|
|
210
|
+
}[];
|
|
211
|
+
};
|
|
212
|
+
//# sourceMappingURL=_Native.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_Native.d.ts","sourceRoot":"","sources":["../../lib/inputs/_Native.js"],"names":[],"mappings":"AAkBO,qDAAmG;AACnG;;;EAAiE;AAIjE,uDAAyG;AACzG;;;EAAqE;AAIrE,0DAA6G;AAC7G;;;EAAqE;AAIrE,mDAAgG;AAChG;;;EAA6D;AAI7D,uDAAwG;AACxG;;;EAA2E;AAI3E,oDAAkG;AAClG;;;EAA+D;AAI/D,mDAAgG;AAChG;;;;EAAiF;AAIjF,oDAAiG;AACjG;;;;;EAAkG;AAIlG,iEAA4G;AAC5G;;;EAAiE;AAIjE,oDAAkG;AAClG;;;EAA+D;AAI/D,qDAAoG;AACpG;;;EAAiE;AAIjE,uDAAwG;AACxG;;;EAAqE;AAIrE,sEAA8H;AAC9H;;;EAGL;AAIK,wEAAqH;AACrH;;;;;;;;;;EAGL;AAIK,oDAAiG;AACjG;;;EAA+D;AAI/D,qDAAoG;AACpG;;;EAAiE;AAIjE,uEAAgI;AAChI;;;EAGL;AAIK,4EAAoI;AACpI;;;;EAGL;AAIK,qDAAmG;AACnG;;;EAAiE;AAIjE,kDAA8F;AAC9F;;;EAA2D;AAI3D,mDAAgG;AAChG;;;;;;;EAGL;AAIK,uDAAwG;AACxG;;;;;;;;;EAIL;AAIK,mDAAgG;AAChG;;;EAA6D;AAI7D,kDAA8F;AAC9F;;;EAA2D;AAI3D,mDAAgG;AAChG;;;EAA6D;AAI7D,oDAAkG;AAClG;;;;;;EAAyG;AAIzG,4DAA8G;AAC9G;;EAAsD;AAItD,wDAAsG;AACtG;;EAA8C;AAI9C,mDAAgG;AAChG;;EAA8C;AAI9C,mEAAiH;AACjH;;;;;;;;;;;;;EAGL;AAIK,oEAAmH;AACnH;;;;;;;;;;;;;EAGL;AAIK,qEAAqH;AACrH;;;;;;;;;;;;;EAGL"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export function isBang(type: any): any;
|
|
2
|
+
export function Bang(event: any, schema: any): any;
|
|
3
|
+
export function isInt(type: any): any;
|
|
4
|
+
export function Int(value: any, min: any, max: any, schema: any): any;
|
|
5
|
+
export function isFloat(type: any): any;
|
|
6
|
+
export function Float(value: any, min: any, max: any, schema: any): any;
|
|
7
|
+
export function isNum(type: any): any;
|
|
8
|
+
export function Num(value: any, min: any, max: any, schema: any): any;
|
|
9
|
+
export function isEnum(type: any): any;
|
|
10
|
+
export function Enum(value: any, enumOptions: any, schema: any): any;
|
|
11
|
+
export function isArr(type: any): any;
|
|
12
|
+
export function Arr(value: any, items: any, schema: any): any;
|
|
13
|
+
export function isObj(type: any): any;
|
|
14
|
+
export function Obj(properties: any, schema: any): any;
|
|
15
|
+
export function isStr(type: any): any;
|
|
16
|
+
export function Str(value: any, schema: any): any;
|
|
17
|
+
export function isBool(type: any): any;
|
|
18
|
+
export function Bool(value: any, schema: any): any;
|
|
19
|
+
export function isColor(type: any): any;
|
|
20
|
+
export function Color(value: any, schema: any): any;
|
|
21
|
+
export function isVec2(type: any): any;
|
|
22
|
+
export function Vec2(value: any, schema: any): any;
|
|
23
|
+
export function isVec3(type: any): any;
|
|
24
|
+
export function Vec3(value: any, schema: any): any;
|
|
25
|
+
export function isVec4(type: any): any;
|
|
26
|
+
export function Vec4(value: any, schema: any): any;
|
|
27
|
+
export const BUFF: "buffer";
|
|
28
|
+
export function isBuff(type: any): any;
|
|
29
|
+
export function Buff(value: any, schema: any): any;
|
|
30
|
+
export function isTex(type: any): any;
|
|
31
|
+
export function Tex(value: any, schema: any): any;
|
|
32
|
+
export function isAny(type: any): boolean;
|
|
33
|
+
export function Any(value: any, schema: any): any;
|
|
34
|
+
//# sourceMappingURL=_Types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_Types.d.ts","sourceRoot":"","sources":["../../lib/inputs/_Types.js"],"names":[],"mappings":"AAuBO,uCAA8C;AAC9C,mDAA8F;AAI9F,sCAA4C;AAC5C,sEAAqH;AAIrH,wCAA4E;AAC5E,wEAAqH;AAIrH,sCAImB;AACnB,sEAAoH;AAIpH,uCAA8C;AAC9C,qEAA8H;AAI9H,sCAA4C;AAC5C,8DAA+G;AAI/G,sCAGkB;AAClB,uDAAyG;AAIzG,sCAA4C;AAC5C,kDAA+F;AAI/F,uCAA8C;AAC9C,mDAAqG;AAIrG,wCAIiB;AACjB,oDAAiG;AAIjG,uCAAmE;AACnE,mDAA4F;AAI5F,uCAAmE;AACnE,mDAA6F;AAI7F,uCAAmE;AACnE,mDAA8F;AAIrG,mBAAoB,QAAQ,CAAA;AACrB,uCAAyE;AACzE,mDAAgG;AAIhG,sCAAuE;AACvE,kDAAgG;AAIhG,0CAA0B;AAC1B,kDAA4F"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/inputs/index.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_ASCII.d.ts","sourceRoot":"","sources":["../../lib/logger/_ASCII.js"],"names":[],"mappings":"AAYA,6CAwBC"}
|