@everymatrix/general-input 0.0.1 → 1.0.69
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/app-globals-3a1e7e63.js +5 -0
- package/dist/cjs/checkbox-group-input_10.cjs.entry.js +20007 -16663
- package/dist/cjs/general-input.cjs.entry.js +67 -40
- package/dist/cjs/general-input.cjs.js +17 -11
- package/dist/cjs/index-8cb018cb.js +1316 -0
- package/dist/cjs/index.cjs.js +16 -0
- package/dist/cjs/loader.cjs.js +7 -13
- package/dist/cjs/locale.utils-7a3dfe2f.js +128 -0
- package/dist/cjs/toggle-checkbox-input.cjs.entry.js +91 -0
- package/dist/cjs/tooltipIcon-7e9ee226.js +5 -0
- package/dist/collection/collection-manifest.json +14 -13
- package/dist/collection/components/checkbox-group-input/checkbox-group-input.css +26 -6
- package/dist/collection/components/checkbox-group-input/checkbox-group-input.js +372 -335
- package/dist/collection/components/checkbox-input/checkbox-input.css +16 -10
- package/dist/collection/components/checkbox-input/checkbox-input.js +325 -310
- package/dist/collection/components/date-input/date-input.css +35 -19
- package/dist/collection/components/date-input/date-input.js +401 -328
- package/dist/collection/components/email-input/email-input.css +30 -18
- package/dist/collection/components/email-input/email-input.js +405 -365
- package/dist/collection/components/general-input/general-input.css +1 -0
- package/dist/collection/components/general-input/general-input.js +374 -291
- package/dist/collection/components/general-input/index.js +1 -0
- package/dist/collection/components/number-input/number-input.css +28 -16
- package/dist/collection/components/number-input/number-input.js +371 -334
- package/dist/collection/components/password-input/password-input.css +105 -11
- package/dist/collection/components/password-input/password-input.js +518 -378
- package/dist/collection/components/radio-input/radio-input.css +4 -4
- package/dist/collection/components/radio-input/radio-input.js +301 -287
- package/dist/collection/components/select-input/select-input.css +47 -19
- package/dist/collection/components/select-input/select-input.js +428 -398
- package/dist/collection/components/tel-input/tel-input.css +52 -23
- package/dist/collection/components/tel-input/tel-input.js +441 -404
- package/dist/collection/components/text-input/text-input.css +33 -18
- package/dist/collection/components/text-input/text-input.js +446 -389
- package/dist/collection/components/toggle-checkbox-input/toggle-checkbox-input.css +82 -0
- package/dist/collection/components/toggle-checkbox-input/toggle-checkbox-input.js +336 -0
- package/dist/collection/index.js +16 -0
- package/dist/collection/utils/locale.utils.js +118 -21
- package/dist/collection/utils/tooltipIcon.svg +4 -4
- package/dist/collection/utils/utils.js +3 -3
- package/dist/esm/app-globals-0f993ce5.js +3 -0
- package/dist/esm/checkbox-group-input_10.entry.js +20007 -16663
- package/dist/esm/general-input.entry.js +67 -40
- package/dist/esm/general-input.js +14 -11
- package/dist/esm/index-514fda47.js +1287 -0
- package/dist/esm/index.js +16 -1
- package/dist/esm/loader.js +7 -13
- package/dist/esm/locale.utils-21605050.js +125 -0
- package/dist/esm/toggle-checkbox-input.entry.js +87 -0
- package/dist/esm/tooltipIcon-0a5a06a2.js +3 -0
- package/dist/general-input/general-input.esm.js +1 -1
- package/dist/general-input/index.esm.js +1 -0
- package/dist/general-input/p-03e81c11.js +2 -0
- package/dist/general-input/p-2dccd0bf.js +1 -0
- package/dist/general-input/p-34939f14.entry.js +1 -0
- package/dist/general-input/p-b32f19c2.entry.js +5430 -0
- package/dist/general-input/p-c43bb82e.entry.js +1 -0
- package/dist/general-input/p-cfe9eb31.js +1 -0
- package/dist/general-input/p-e1255160.js +1 -0
- package/dist/stencil.config.dev.js +17 -0
- package/dist/stencil.config.js +14 -19
- package/dist/types/Users/raul.vasile/workspace/everymatrix/widgets-monorepo/packages/stencil/general-input/.stencil/packages/stencil/general-input/stencil.config.d.ts +2 -0
- package/dist/types/Users/raul.vasile/workspace/everymatrix/widgets-monorepo/packages/stencil/general-input/.stencil/packages/stencil/general-input/stencil.config.dev.d.ts +2 -0
- package/dist/types/components/checkbox-group-input/checkbox-group-input.d.ts +69 -67
- package/dist/types/components/checkbox-input/checkbox-input.d.ts +61 -60
- package/dist/types/components/date-input/date-input.d.ts +79 -65
- package/dist/types/components/email-input/email-input.d.ts +76 -73
- package/dist/types/components/general-input/general-input.d.ts +72 -57
- package/dist/types/components/general-input/index.d.ts +1 -0
- package/dist/types/components/number-input/number-input.d.ts +70 -66
- package/dist/types/components/password-input/password-input.d.ts +87 -75
- package/dist/types/components/radio-input/radio-input.d.ts +55 -55
- package/dist/types/components/select-input/select-input.d.ts +78 -77
- package/dist/types/components/tel-input/tel-input.d.ts +84 -80
- package/dist/types/components/text-input/text-input.d.ts +81 -78
- package/dist/types/components/toggle-checkbox-input/toggle-checkbox-input.d.ts +67 -0
- package/dist/types/components.d.ts +331 -25
- package/dist/types/stencil-public-runtime.d.ts +142 -33
- package/dist/types/utils/locale.utils.d.ts +13 -1
- package/dist/types/utils/types.d.ts +58 -47
- package/loader/cdn.js +1 -3
- package/loader/index.cjs.js +1 -3
- package/loader/index.d.ts +13 -1
- package/loader/index.es2017.js +1 -3
- package/loader/index.js +1 -3
- package/loader/package.json +1 -0
- package/package.json +9 -9
- package/dist/cjs/index-1768513d.js +0 -1286
- package/dist/components/active-mixin.js +0 -975
- package/dist/components/checkbox-group-input.d.ts +0 -11
- package/dist/components/checkbox-group-input.js +0 -6
- package/dist/components/checkbox-group-input2.js +0 -5793
- package/dist/components/checkbox-input.d.ts +0 -11
- package/dist/components/checkbox-input.js +0 -6
- package/dist/components/checkbox-input2.js +0 -127
- package/dist/components/date-input.d.ts +0 -11
- package/dist/components/date-input.js +0 -6
- package/dist/components/date-input2.js +0 -5182
- package/dist/components/email-input.d.ts +0 -11
- package/dist/components/email-input.js +0 -6
- package/dist/components/email-input2.js +0 -150
- package/dist/components/field-mixin.js +0 -12712
- package/dist/components/general-input.d.ts +0 -11
- package/dist/components/general-input.js +0 -140
- package/dist/components/index.d.ts +0 -26
- package/dist/components/index.js +0 -1
- package/dist/components/input-field-shared-styles.js +0 -1067
- package/dist/components/number-input.d.ts +0 -11
- package/dist/components/number-input.js +0 -6
- package/dist/components/number-input2.js +0 -139
- package/dist/components/password-input.d.ts +0 -11
- package/dist/components/password-input.js +0 -6
- package/dist/components/password-input2.js +0 -879
- package/dist/components/pattern-mixin.js +0 -85
- package/dist/components/radio-input.d.ts +0 -11
- package/dist/components/radio-input.js +0 -6
- package/dist/components/radio-input2.js +0 -115
- package/dist/components/select-input.d.ts +0 -11
- package/dist/components/select-input.js +0 -6
- package/dist/components/select-input2.js +0 -166
- package/dist/components/tel-input.d.ts +0 -11
- package/dist/components/tel-input.js +0 -6
- package/dist/components/tel-input2.js +0 -178
- package/dist/components/text-input.d.ts +0 -11
- package/dist/components/text-input.js +0 -6
- package/dist/components/text-input2.js +0 -157
- package/dist/components/tooltipIcon.js +0 -30
- package/dist/components/vaadin-button.js +0 -461
- package/dist/components/vaadin-combo-box.js +0 -4329
- package/dist/components/virtual-keyboard-controller.js +0 -2693
- package/dist/esm/index-7e24a6f1.js +0 -1259
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/css-shim.js +0 -1
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/es5-html-element.js +0 -1
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/general-input/p-61d76ec3.entry.js +0 -1
- package/dist/general-input/p-a79eb0a3.entry.js +0 -4413
- package/dist/general-input/p-fb647820.js +0 -1
- package/dist/types/Users/adrian.pripon/Documents/Work/stencil/widgets-stencil/packages/general-input/.stencil/packages/general-input/stencil.config.d.ts +0 -2
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface GeneralInput extends Components.GeneralInput, HTMLElement {}
|
|
4
|
-
export const GeneralInput: {
|
|
5
|
-
prototype: GeneralInput;
|
|
6
|
-
new (): GeneralInput;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
2
|
-
import { d as defineCustomElement$b } from './checkbox-group-input2.js';
|
|
3
|
-
import { d as defineCustomElement$a } from './checkbox-input2.js';
|
|
4
|
-
import { d as defineCustomElement$9 } from './date-input2.js';
|
|
5
|
-
import { d as defineCustomElement$8 } from './email-input2.js';
|
|
6
|
-
import { d as defineCustomElement$7 } from './number-input2.js';
|
|
7
|
-
import { d as defineCustomElement$6 } from './password-input2.js';
|
|
8
|
-
import { d as defineCustomElement$5 } from './radio-input2.js';
|
|
9
|
-
import { d as defineCustomElement$4 } from './select-input2.js';
|
|
10
|
-
import { d as defineCustomElement$3 } from './tel-input2.js';
|
|
11
|
-
import { d as defineCustomElement$2 } from './text-input2.js';
|
|
12
|
-
|
|
13
|
-
const generalInputCss = ":host{display:block}";
|
|
14
|
-
|
|
15
|
-
const GeneralInput$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
16
|
-
constructor() {
|
|
17
|
-
super();
|
|
18
|
-
this.__registerHost();
|
|
19
|
-
this.__attachShadow();
|
|
20
|
-
/**
|
|
21
|
-
* Type the general-input should take. Can take the default HTML input values.
|
|
22
|
-
*/
|
|
23
|
-
this.type = 'text';
|
|
24
|
-
/**
|
|
25
|
-
* Client custom styling via inline style
|
|
26
|
-
*/
|
|
27
|
-
this.clientStyling = '';
|
|
28
|
-
}
|
|
29
|
-
render() {
|
|
30
|
-
var _a;
|
|
31
|
-
switch ((_a = this.type) === null || _a === void 0 ? void 0 : _a.toLowerCase()) {
|
|
32
|
-
case 'text':
|
|
33
|
-
return h("text-input", { name: this.name, displayName: this.displayName, validation: this.validation, defaultValue: this.defaultValue, autofilled: this.autofilled, emitValue: this.emitValue, language: this.language, isDuplicateInput: this.isDuplicateInput, "client-styling": this.clientStyling, tooltip: this.tooltip, placeholder: this.placeholder });
|
|
34
|
-
case 'email':
|
|
35
|
-
return h("email-input", { name: this.name, displayName: this.displayName, validation: this.validation, defaultValue: this.defaultValue, autofilled: this.autofilled, emitValue: this.emitValue, language: this.language, isDuplicateInput: this.isDuplicateInput, "client-styling": this.clientStyling, tooltip: this.tooltip, placeholder: this.placeholder });
|
|
36
|
-
case 'number':
|
|
37
|
-
return h("number-input", { name: this.name, displayName: this.displayName, validation: this.validation, defaultValue: this.defaultValue, autofilled: this.autofilled, emitValue: this.emitValue, language: this.language, "client-styling": this.clientStyling, tooltip: this.tooltip, placeholder: this.placeholder });
|
|
38
|
-
case 'checkbox':
|
|
39
|
-
return h("checkbox-input", { name: this.name, displayName: this.displayName, validation: this.validation, emitValue: this.emitValue, defaultValue: this.defaultValue, autofilled: this.autofilled, language: this.language, "client-styling": this.clientStyling, tooltip: this.tooltip });
|
|
40
|
-
case 'checkboxgroup':
|
|
41
|
-
return h("checkbox-group-input", { name: this.name, displayName: this.displayName, validation: this.validation, defaultValue: this.defaultValue, autofilled: this.autofilled, emitValue: this.emitValue, language: this.language, "client-styling": this.clientStyling, tooltip: this.tooltip, options: this.options });
|
|
42
|
-
case 'datetime':
|
|
43
|
-
return h("date-input", { name: this.name, displayName: this.displayName, validation: this.validation, defaultValue: this.defaultValue, autofilled: this.autofilled, emitValue: this.emitValue, language: this.language, "client-styling": this.clientStyling, tooltip: this.tooltip, placeholder: this.placeholder });
|
|
44
|
-
case 'password':
|
|
45
|
-
return h("password-input", { name: this.name, displayName: this.displayName, validation: this.validation, defaultValue: this.defaultValue, autofilled: this.autofilled, emitValue: this.emitValue, language: this.language, isDuplicateInput: this.isDuplicateInput, "client-styling": this.clientStyling, tooltip: this.tooltip, placeholder: this.placeholder });
|
|
46
|
-
case 'radio':
|
|
47
|
-
return h("radio-input", { name: this.name, displayName: this.displayName, optionsGroup: this.options, validation: this.validation, emitValue: this.emitValue, language: this.language, "client-styling": this.clientStyling });
|
|
48
|
-
case 'tel':
|
|
49
|
-
return h("tel-input", { name: this.name, action: this.action, displayName: this.displayName, validation: this.validation, defaultValue: this.defaultValue, emitValue: this.emitValue, language: this.language, autofilled: this.autofilled, "client-styling": this.clientStyling, tooltip: this.tooltip, placeholder: this.placeholder });
|
|
50
|
-
case 'dropdown':
|
|
51
|
-
return h("select-input", { name: this.name, action: this.action, defaultValue: this.defaultValue, displayName: this.displayName, options: this.options, validation: this.validation, emitValue: this.emitValue, autofilled: this.autofilled, language: this.language, "client-styling": this.clientStyling, tooltip: this.tooltip, placeholder: this.placeholder });
|
|
52
|
-
default:
|
|
53
|
-
return h("p", null, "The ", this.type, " input type is not valid");
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
static get style() { return generalInputCss; }
|
|
57
|
-
}, [1, "general-input", {
|
|
58
|
-
"type": [513],
|
|
59
|
-
"name": [513],
|
|
60
|
-
"displayName": [513, "display-name"],
|
|
61
|
-
"placeholder": [513],
|
|
62
|
-
"action": [513],
|
|
63
|
-
"validation": [16],
|
|
64
|
-
"options": [520],
|
|
65
|
-
"language": [513],
|
|
66
|
-
"autofilled": [516],
|
|
67
|
-
"tooltip": [513],
|
|
68
|
-
"defaultValue": [520, "default-value"],
|
|
69
|
-
"emitValue": [516, "emit-value"],
|
|
70
|
-
"isDuplicateInput": [516, "is-duplicate-input"],
|
|
71
|
-
"clientStyling": [520, "client-styling"]
|
|
72
|
-
}]);
|
|
73
|
-
function defineCustomElement$1() {
|
|
74
|
-
if (typeof customElements === "undefined") {
|
|
75
|
-
return;
|
|
76
|
-
}
|
|
77
|
-
const components = ["general-input", "checkbox-group-input", "checkbox-input", "date-input", "email-input", "number-input", "password-input", "radio-input", "select-input", "tel-input", "text-input"];
|
|
78
|
-
components.forEach(tagName => { switch (tagName) {
|
|
79
|
-
case "general-input":
|
|
80
|
-
if (!customElements.get(tagName)) {
|
|
81
|
-
customElements.define(tagName, GeneralInput$1);
|
|
82
|
-
}
|
|
83
|
-
break;
|
|
84
|
-
case "checkbox-group-input":
|
|
85
|
-
if (!customElements.get(tagName)) {
|
|
86
|
-
defineCustomElement$b();
|
|
87
|
-
}
|
|
88
|
-
break;
|
|
89
|
-
case "checkbox-input":
|
|
90
|
-
if (!customElements.get(tagName)) {
|
|
91
|
-
defineCustomElement$a();
|
|
92
|
-
}
|
|
93
|
-
break;
|
|
94
|
-
case "date-input":
|
|
95
|
-
if (!customElements.get(tagName)) {
|
|
96
|
-
defineCustomElement$9();
|
|
97
|
-
}
|
|
98
|
-
break;
|
|
99
|
-
case "email-input":
|
|
100
|
-
if (!customElements.get(tagName)) {
|
|
101
|
-
defineCustomElement$8();
|
|
102
|
-
}
|
|
103
|
-
break;
|
|
104
|
-
case "number-input":
|
|
105
|
-
if (!customElements.get(tagName)) {
|
|
106
|
-
defineCustomElement$7();
|
|
107
|
-
}
|
|
108
|
-
break;
|
|
109
|
-
case "password-input":
|
|
110
|
-
if (!customElements.get(tagName)) {
|
|
111
|
-
defineCustomElement$6();
|
|
112
|
-
}
|
|
113
|
-
break;
|
|
114
|
-
case "radio-input":
|
|
115
|
-
if (!customElements.get(tagName)) {
|
|
116
|
-
defineCustomElement$5();
|
|
117
|
-
}
|
|
118
|
-
break;
|
|
119
|
-
case "select-input":
|
|
120
|
-
if (!customElements.get(tagName)) {
|
|
121
|
-
defineCustomElement$4();
|
|
122
|
-
}
|
|
123
|
-
break;
|
|
124
|
-
case "tel-input":
|
|
125
|
-
if (!customElements.get(tagName)) {
|
|
126
|
-
defineCustomElement$3();
|
|
127
|
-
}
|
|
128
|
-
break;
|
|
129
|
-
case "text-input":
|
|
130
|
-
if (!customElements.get(tagName)) {
|
|
131
|
-
defineCustomElement$2();
|
|
132
|
-
}
|
|
133
|
-
break;
|
|
134
|
-
} });
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
const GeneralInput = GeneralInput$1;
|
|
138
|
-
const defineCustomElement = defineCustomElement$1;
|
|
139
|
-
|
|
140
|
-
export { GeneralInput, defineCustomElement };
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/* GeneralInput custom elements */
|
|
2
|
-
|
|
3
|
-
import type { Components, JSX } from "../types/components";
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Used to manually set the base path where assets can be found.
|
|
7
|
-
* If the script is used as "module", it's recommended to use "import.meta.url",
|
|
8
|
-
* such as "setAssetPath(import.meta.url)". Other options include
|
|
9
|
-
* "setAssetPath(document.currentScript.src)", or using a bundler's replace plugin to
|
|
10
|
-
* dynamically set the path at build time, such as "setAssetPath(process.env.ASSET_PATH)".
|
|
11
|
-
* But do note that this configuration depends on how your script is bundled, or lack of
|
|
12
|
-
* bundling, and where your assets can be loaded from. Additionally custom bundling
|
|
13
|
-
* will have to ensure the static assets are copied to its build directory.
|
|
14
|
-
*/
|
|
15
|
-
export declare const setAssetPath: (path: string) => void;
|
|
16
|
-
|
|
17
|
-
export interface SetPlatformOptions {
|
|
18
|
-
raf?: (c: FrameRequestCallback) => number;
|
|
19
|
-
ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
20
|
-
rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
21
|
-
}
|
|
22
|
-
export declare const setPlatformOptions: (opts: SetPlatformOptions) => void;
|
|
23
|
-
|
|
24
|
-
export type { Components, JSX };
|
|
25
|
-
|
|
26
|
-
export * from '../types';
|
package/dist/components/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { setAssetPath, setPlatformOptions } from '@stencil/core/internal/client';
|