@everymatrix/general-input 1.10.0
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/cjs/checkbox-input_9.cjs.entry.js +686 -0
- package/dist/cjs/general-input.cjs.entry.js +45 -0
- package/dist/cjs/general-input.cjs.js +19 -0
- package/dist/cjs/index-64a5cb7f.js +1214 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/loader.cjs.js +21 -0
- package/dist/collection/collection-manifest.json +21 -0
- package/dist/collection/components/checkbox-input/checkbox-input.css +20 -0
- package/dist/collection/components/checkbox-input/checkbox-input.js +196 -0
- package/dist/collection/components/date-input/date-input.css +60 -0
- package/dist/collection/components/date-input/date-input.js +242 -0
- package/dist/collection/components/email-input/email-input.css +60 -0
- package/dist/collection/components/email-input/email-input.js +259 -0
- package/dist/collection/components/general-input/general-input.css +3 -0
- package/dist/collection/components/general-input/general-input.js +204 -0
- package/dist/collection/components/number-input/number-input.css +67 -0
- package/dist/collection/components/number-input/number-input.js +245 -0
- package/dist/collection/components/password-input/password-input.css +60 -0
- package/dist/collection/components/password-input/password-input.js +210 -0
- package/dist/collection/components/radio-input/radio-input.css +22 -0
- package/dist/collection/components/radio-input/radio-input.js +245 -0
- package/dist/collection/components/select-input/select-input.css +49 -0
- package/dist/collection/components/select-input/select-input.js +308 -0
- package/dist/collection/components/tel-input/tel-input.css +67 -0
- package/dist/collection/components/tel-input/tel-input.js +294 -0
- package/dist/collection/components/text-input/text-input.css +60 -0
- package/dist/collection/components/text-input/text-input.js +278 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/utils/locale.utils.js +27 -0
- package/dist/collection/utils/types.js +1 -0
- package/dist/collection/utils/utils.js +5 -0
- package/dist/components/checkbox-input.d.ts +11 -0
- package/dist/components/checkbox-input.js +6 -0
- package/dist/components/checkbox-input2.js +78 -0
- package/dist/components/date-input.d.ts +11 -0
- package/dist/components/date-input.js +6 -0
- package/dist/components/date-input2.js +90 -0
- package/dist/components/email-input.d.ts +11 -0
- package/dist/components/email-input.js +6 -0
- package/dist/components/email-input2.js +108 -0
- package/dist/components/general-input.d.ts +11 -0
- package/dist/components/general-input.js +123 -0
- package/dist/components/index.d.ts +26 -0
- package/dist/components/index.js +1 -0
- package/dist/components/locale.utils.js +29 -0
- package/dist/components/number-input.d.ts +11 -0
- package/dist/components/number-input.js +6 -0
- package/dist/components/number-input2.js +96 -0
- package/dist/components/password-input.d.ts +11 -0
- package/dist/components/password-input.js +6 -0
- package/dist/components/password-input2.js +93 -0
- package/dist/components/radio-input.d.ts +11 -0
- package/dist/components/radio-input.js +6 -0
- package/dist/components/radio-input2.js +89 -0
- package/dist/components/select-input.d.ts +11 -0
- package/dist/components/select-input.js +6 -0
- package/dist/components/select-input2.js +127 -0
- package/dist/components/tel-input.d.ts +11 -0
- package/dist/components/tel-input.js +6 -0
- package/dist/components/tel-input2.js +111 -0
- package/dist/components/text-input.d.ts +11 -0
- package/dist/components/text-input.js +6 -0
- package/dist/components/text-input2.js +112 -0
- package/dist/esm/checkbox-input_9.entry.js +674 -0
- package/dist/esm/general-input.entry.js +41 -0
- package/dist/esm/general-input.js +17 -0
- package/dist/esm/index-df80f936.js +1188 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/loader.js +17 -0
- package/dist/esm/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/css-shim.js +1 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- package/dist/general-input/general-input.esm.js +1 -0
- package/dist/general-input/index.esm.js +0 -0
- package/dist/general-input/p-c9e79656.entry.js +1 -0
- package/dist/general-input/p-d9f7fa2e.js +1 -0
- package/dist/general-input/p-dea0a4ac.entry.js +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/stencil.config.js +22 -0
- package/dist/types/Users/user/workspace/everymatrix/widgets-stencil/packages/general-input/.stencil/packages/general-input/stencil.config.d.ts +2 -0
- package/dist/types/components/checkbox-input/checkbox-input.d.ts +39 -0
- package/dist/types/components/date-input/date-input.d.ts +47 -0
- package/dist/types/components/email-input/email-input.d.ts +51 -0
- package/dist/types/components/general-input/general-input.d.ts +40 -0
- package/dist/types/components/number-input/number-input.d.ts +48 -0
- package/dist/types/components/password-input/password-input.d.ts +42 -0
- package/dist/types/components/radio-input/radio-input.d.ts +48 -0
- package/dist/types/components/select-input/select-input.d.ts +55 -0
- package/dist/types/components/tel-input/tel-input.d.ts +59 -0
- package/dist/types/components.d.ts +749 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/stencil-public-runtime.d.ts +1565 -0
- package/dist/types/utils/locale.utils.d.ts +5 -0
- package/dist/types/utils/types.d.ts +55 -0
- package/dist/types/utils/utils.d.ts +1 -0
- package/loader/cdn.js +3 -0
- package/loader/index.cjs.js +3 -0
- package/loader/index.d.ts +12 -0
- package/loader/index.es2017.js +3 -0
- package/loader/index.js +4 -0
- package/loader/package.json +10 -0
- package/package.json +19 -0
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
export interface RegistrationConfig {
|
|
2
|
+
type: string;
|
|
3
|
+
content: RegCfgContent;
|
|
4
|
+
}
|
|
5
|
+
interface RegCfgContent {
|
|
6
|
+
actions: string[];
|
|
7
|
+
fields: RegCfgContentField[];
|
|
8
|
+
registrationID: string;
|
|
9
|
+
step: string;
|
|
10
|
+
}
|
|
11
|
+
interface RegCfgContentField {
|
|
12
|
+
action: string;
|
|
13
|
+
autofill: boolean;
|
|
14
|
+
data: string;
|
|
15
|
+
defaultValue: string;
|
|
16
|
+
inputType: string;
|
|
17
|
+
multiple: false;
|
|
18
|
+
name: string;
|
|
19
|
+
readOnly: boolean;
|
|
20
|
+
validate: ValidationSchema;
|
|
21
|
+
}
|
|
22
|
+
export interface ValidationSchema {
|
|
23
|
+
mandatory: boolean;
|
|
24
|
+
type?: string;
|
|
25
|
+
custom?: CustomValidationRules[];
|
|
26
|
+
minLength: number;
|
|
27
|
+
maxLength: number;
|
|
28
|
+
min: number;
|
|
29
|
+
max: number;
|
|
30
|
+
}
|
|
31
|
+
interface CustomValidationRules {
|
|
32
|
+
rule: string;
|
|
33
|
+
pattern?: string;
|
|
34
|
+
errorMessage: string;
|
|
35
|
+
}
|
|
36
|
+
export interface CustomRule {
|
|
37
|
+
rule: string;
|
|
38
|
+
errorMessage: string;
|
|
39
|
+
}
|
|
40
|
+
export interface Option {
|
|
41
|
+
value: string;
|
|
42
|
+
label: string;
|
|
43
|
+
}
|
|
44
|
+
export interface InputStateEvent {
|
|
45
|
+
valid: boolean;
|
|
46
|
+
name: string;
|
|
47
|
+
}
|
|
48
|
+
export interface InputValueEvent {
|
|
49
|
+
value: string | number | boolean;
|
|
50
|
+
name: string;
|
|
51
|
+
}
|
|
52
|
+
export interface RegisterStep {
|
|
53
|
+
registrationId: string;
|
|
54
|
+
}
|
|
55
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function formatName(name: any): string;
|
package/loader/cdn.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export * from '../dist/types/components';
|
|
2
|
+
export interface CustomElementsDefineOptions {
|
|
3
|
+
exclude?: string[];
|
|
4
|
+
resourcesUrl?: string;
|
|
5
|
+
syncQueue?: boolean;
|
|
6
|
+
jmp?: (c: Function) => any;
|
|
7
|
+
raf?: (c: FrameRequestCallback) => number;
|
|
8
|
+
ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
9
|
+
rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
10
|
+
}
|
|
11
|
+
export declare function defineCustomElements(win?: Window, opts?: CustomElementsDefineOptions): Promise<void>;
|
|
12
|
+
export declare function applyPolyfills(): Promise<void>;
|
package/loader/index.js
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
|
|
2
|
+
(function(){if("undefined"!==typeof window&&void 0!==window.Reflect&&void 0!==window.customElements){var a=HTMLElement;window.HTMLElement=function(){return Reflect.construct(a,[],this.constructor)};HTMLElement.prototype=a.prototype;HTMLElement.prototype.constructor=HTMLElement;Object.setPrototypeOf(HTMLElement,a)}})();
|
|
3
|
+
export * from '../dist/esm/polyfills/index.js';
|
|
4
|
+
export * from '../dist/esm/loader.js';
|
package/package.json
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@everymatrix/general-input",
|
|
3
|
+
"version": "1.10.0",
|
|
4
|
+
"main": "./dist/index.cjs.js",
|
|
5
|
+
"module": "./dist/index.js",
|
|
6
|
+
"es2015": "./dist/esm/index.mjs",
|
|
7
|
+
"es2017": "./dist/esm/index.mjs",
|
|
8
|
+
"types": "./dist/types/index.d.ts",
|
|
9
|
+
"collection": "./dist/collection/collection-manifest.json",
|
|
10
|
+
"collection:main": "./dist/collection/index.js",
|
|
11
|
+
"unpkg": "./dist/general-input/general-input.esm.js",
|
|
12
|
+
"files": [
|
|
13
|
+
"dist/",
|
|
14
|
+
"loader/"
|
|
15
|
+
],
|
|
16
|
+
"publishConfig": {
|
|
17
|
+
"access": "public"
|
|
18
|
+
}
|
|
19
|
+
}
|