wini-web-components 2.7.0 → 2.7.2
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/types/index.d.ts +1 -0
- package/dist/vite.svg +1 -0
- package/dist/wini-web-components.css +4 -0
- package/dist/wini-web-components.js +32 -0
- package/dist/wini-web-components.mjs +6753 -0
- package/package.json +48 -82
- package/README.md +0 -21
- package/dist/component/button/button.d.ts +0 -21
- package/dist/component/button/button.js +0 -73
- package/dist/component/calendar/calendar.d.ts +0 -30
- package/dist/component/calendar/calendar.js +0 -357
- package/dist/component/card/card-info.d.ts +0 -15
- package/dist/component/card/card-info.js +0 -51
- package/dist/component/card/card.d.ts +0 -13
- package/dist/component/card/card.js +0 -33
- package/dist/component/checkbox/checkbox.d.ts +0 -24
- package/dist/component/checkbox/checkbox.js +0 -90
- package/dist/component/ck-editor/ckeditor.d.ts +0 -36
- package/dist/component/ck-editor/ckeditor.js +0 -392
- package/dist/component/component-status.d.ts +0 -8
- package/dist/component/component-status.js +0 -39
- package/dist/component/date-picker/date-picker.d.ts +0 -25
- package/dist/component/date-picker/date-picker.js +0 -329
- package/dist/component/date-time-picker/date-time-picker.d.ts +0 -36
- package/dist/component/date-time-picker/date-time-picker.js +0 -528
- package/dist/component/dialog/dialog.d.ts +0 -18
- package/dist/component/dialog/dialog.js +0 -113
- package/dist/component/import-file/import-file.d.ts +0 -33
- package/dist/component/import-file/import-file.js +0 -151
- package/dist/component/infinite-scroll/infinite-scroll.d.ts +0 -17
- package/dist/component/infinite-scroll/infinite-scroll.js +0 -37
- package/dist/component/input-multi-select/input-multi-select.d.ts +0 -21
- package/dist/component/input-multi-select/input-multi-select.js +0 -260
- package/dist/component/input-opt/input-opt.d.ts +0 -21
- package/dist/component/input-opt/input-opt.js +0 -157
- package/dist/component/input-otp/input-otp.d.ts +0 -22
- package/dist/component/input-otp/input-otp.js +0 -131
- package/dist/component/number-picker/number-picker.d.ts +0 -23
- package/dist/component/number-picker/number-picker.js +0 -125
- package/dist/component/pagination/pagination.d.ts +0 -13
- package/dist/component/pagination/pagination.js +0 -90
- package/dist/component/popup/popup.d.ts +0 -40
- package/dist/component/popup/popup.js +0 -125
- package/dist/component/progress-bar/progress-bar.d.ts +0 -16
- package/dist/component/progress-bar/progress-bar.js +0 -23
- package/dist/component/progress-circle/progress-circle.d.ts +0 -14
- package/dist/component/progress-circle/progress-circle.js +0 -19
- package/dist/component/radio-button/radio-button.d.ts +0 -20
- package/dist/component/radio-button/radio-button.js +0 -33
- package/dist/component/rating/rating.d.ts +0 -23
- package/dist/component/rating/rating.js +0 -54
- package/dist/component/select1/select1.d.ts +0 -31
- package/dist/component/select1/select1.js +0 -249
- package/dist/component/slider/slider.d.ts +0 -31
- package/dist/component/slider/slider.js +0 -64
- package/dist/component/switch/switch.d.ts +0 -23
- package/dist/component/switch/switch.js +0 -50
- package/dist/component/table/table.d.ts +0 -51
- package/dist/component/table/table.js +0 -66
- package/dist/component/tag/tag.d.ts +0 -22
- package/dist/component/tag/tag.js +0 -19
- package/dist/component/text/text.d.ts +0 -16
- package/dist/component/text/text.js +0 -20
- package/dist/component/text-area/text-area.d.ts +0 -27
- package/dist/component/text-area/text-area.js +0 -57
- package/dist/component/text-field/text-field.d.ts +0 -36
- package/dist/component/text-field/text-field.js +0 -80
- package/dist/component/toast-noti/toast-noti.d.ts +0 -5
- package/dist/component/toast-noti/toast-noti.js +0 -25
- package/dist/component/wini-icon/winicon.d.ts +0 -20
- package/dist/component/wini-icon/winicon.js +0 -176
- package/dist/form/login/view.d.ts +0 -40
- package/dist/form/login/view.js +0 -66
- package/dist/i18n.d.ts +0 -2
- package/dist/i18n.js +0 -125
- package/dist/index.d.ts +0 -33
- package/dist/index.js +0 -2
- package/dist/index.js.LICENSE.txt +0 -18
- package/dist/language/i18n.d.ts +0 -2
- package/dist/language/i18n.js +0 -146
- package/global.d.ts +0 -4
- /package/{public → dist}/favicon.ico +0 -0
- /package/{public → dist}/index.html +0 -0
- /package/{public → dist}/logo192.png +0 -0
- /package/{public → dist}/logo512.png +0 -0
- /package/{public → dist}/manifest.json +0 -0
- /package/{public → dist}/robots.txt +0 -0
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
36
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
|
-
};
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.TextArea = void 0;
|
|
40
|
-
const react_1 = __importStar(require("react"));
|
|
41
|
-
const text_area_module_css_1 = __importDefault(require("./text-area.module.css"));
|
|
42
|
-
class TextArea extends react_1.default.Component {
|
|
43
|
-
constructor() {
|
|
44
|
-
super(...arguments);
|
|
45
|
-
this.containerRef = (0, react_1.createRef)();
|
|
46
|
-
this.getTextarea = () => {
|
|
47
|
-
var _a;
|
|
48
|
-
return (_a = this.containerRef.current) === null || _a === void 0 ? void 0 : _a.querySelector("textarea");
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
render() {
|
|
52
|
-
var _a, _b, _c, _d;
|
|
53
|
-
return react_1.default.createElement("div", { ref: this.containerRef, id: this.props.id, className: `${text_area_module_css_1.default['text-area-container']} row ${(_a = this.props.className) !== null && _a !== void 0 ? _a : 'body-3'} ${((_b = this.props.helperText) === null || _b === void 0 ? void 0 : _b.length) ? text_area_module_css_1.default['helper-text'] : ""}`, "helper-text": this.props.helperText, style: this.props.style ? Object.assign(Object.assign({}, { '--helper-text-color': (_c = this.props.helperTextColor) !== null && _c !== void 0 ? _c : '#e14337' }), this.props.style) : { '--helper-text-color': (_d = this.props.helperTextColor) !== null && _d !== void 0 ? _d : '#e14337' } }, this.props.register ?
|
|
54
|
-
react_1.default.createElement("textarea", Object.assign({ name: this.props.name, autoFocus: this.props.autoFocus }, this.props.register, { maxLength: this.props.maxLength, placeholder: this.props.placeholder, readOnly: this.props.readOnly, disabled: this.props.disabled, onFocus: this.props.onFocus })) : react_1.default.createElement("textarea", { autoFocus: this.props.autoFocus, maxLength: this.props.maxLength, name: this.props.name, defaultValue: this.props.defaultValue, value: this.props.value, placeholder: this.props.placeholder, readOnly: this.props.readOnly, disabled: this.props.disabled, onChange: this.props.onChange, onFocus: this.props.onFocus, onBlur: this.props.onBlur }));
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
exports.TextArea = TextArea;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import React, { CSSProperties, ReactNode } from "react";
|
|
2
|
-
import { UseFormRegister } from "react-hook-form";
|
|
3
|
-
interface TextFieldProps {
|
|
4
|
-
id?: string;
|
|
5
|
-
value?: string;
|
|
6
|
-
maxLength?: number;
|
|
7
|
-
defaultValue?: string;
|
|
8
|
-
onChange?: React.ChangeEventHandler<HTMLInputElement>;
|
|
9
|
-
onComplete?: React.KeyboardEventHandler<HTMLInputElement>;
|
|
10
|
-
onBlur?: React.FocusEventHandler<HTMLInputElement>;
|
|
11
|
-
onFocus?: React.FocusEventHandler<HTMLInputElement>;
|
|
12
|
-
placeholder?: string;
|
|
13
|
-
disabled?: boolean;
|
|
14
|
-
readOnly?: boolean;
|
|
15
|
-
/**
|
|
16
|
-
* default: size40: body-3
|
|
17
|
-
* recommend: size48: body-3 | size32: body-3 | size24: body-3
|
|
18
|
-
* */
|
|
19
|
-
className?: string;
|
|
20
|
-
helperText?: string;
|
|
21
|
-
name?: string;
|
|
22
|
-
suffix?: ReactNode;
|
|
23
|
-
prefix?: ReactNode;
|
|
24
|
-
helperTextColor?: string;
|
|
25
|
-
style?: CSSProperties;
|
|
26
|
-
type?: React.HTMLInputTypeAttribute;
|
|
27
|
-
autoFocus?: boolean;
|
|
28
|
-
autoComplete?: React.HTMLInputAutoCompleteAttribute;
|
|
29
|
-
register?: UseFormRegister<{}>;
|
|
30
|
-
}
|
|
31
|
-
export declare class TextField extends React.Component<TextFieldProps> {
|
|
32
|
-
private containerRef;
|
|
33
|
-
getInput: () => HTMLInputElement | null | undefined;
|
|
34
|
-
render(): React.ReactNode;
|
|
35
|
-
}
|
|
36
|
-
export {};
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
36
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
|
-
};
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.TextField = void 0;
|
|
40
|
-
const react_1 = __importStar(require("react"));
|
|
41
|
-
const text_field_module_css_1 = __importDefault(require("./text-field.module.css"));
|
|
42
|
-
class TextField extends react_1.default.Component {
|
|
43
|
-
constructor() {
|
|
44
|
-
super(...arguments);
|
|
45
|
-
this.containerRef = (0, react_1.createRef)();
|
|
46
|
-
this.getInput = () => {
|
|
47
|
-
var _a;
|
|
48
|
-
return (_a = this.containerRef.current) === null || _a === void 0 ? void 0 : _a.querySelector("input");
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
render() {
|
|
52
|
-
var _a, _b, _c, _d, _e, _f;
|
|
53
|
-
return react_1.default.createElement("div", { ref: this.containerRef, id: this.props.id, className: `${text_field_module_css_1.default['text-field-container']} row ${(_a = this.props.className) !== null && _a !== void 0 ? _a : 'body-3'} ${((_b = this.props.helperText) === null || _b === void 0 ? void 0 : _b.length) ? text_field_module_css_1.default['helper-text'] : ""}`, "helper-text": this.props.helperText, style: this.props.style ? Object.assign(Object.assign({}, { '--helper-text-color': (_c = this.props.helperTextColor) !== null && _c !== void 0 ? _c : '#e14337' }), this.props.style) : { '--helper-text-color': (_d = this.props.helperTextColor) !== null && _d !== void 0 ? _d : '#e14337' } },
|
|
54
|
-
this.props.prefix,
|
|
55
|
-
this.props.register ?
|
|
56
|
-
react_1.default.createElement("input", Object.assign({ name: this.props.name }, this.props.register, { autoComplete: this.props.autoComplete, autoFocus: this.props.autoFocus, maxLength: this.props.maxLength, type: (_e = this.props.type) !== null && _e !== void 0 ? _e : 'text', placeholder: this.props.placeholder, readOnly: this.props.readOnly, disabled: this.props.disabled, onFocus: this.props.onFocus, onKeyDown: this.props.onComplete ? (ev) => {
|
|
57
|
-
if (this.props.onComplete) {
|
|
58
|
-
switch (ev.key.toLowerCase()) {
|
|
59
|
-
case "enter":
|
|
60
|
-
this.props.onComplete(ev);
|
|
61
|
-
break;
|
|
62
|
-
default:
|
|
63
|
-
break;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
} : undefined })) : react_1.default.createElement("input", { autoComplete: this.props.autoComplete, autoFocus: this.props.autoFocus, maxLength: this.props.maxLength, name: this.props.name, type: (_f = this.props.type) !== null && _f !== void 0 ? _f : 'text', defaultValue: this.props.defaultValue, value: this.props.value, placeholder: this.props.placeholder, readOnly: this.props.readOnly, disabled: this.props.disabled, onChange: this.props.onChange, onFocus: this.props.onFocus, onBlur: this.props.onBlur, onKeyDown: this.props.onComplete ? (ev) => {
|
|
67
|
-
if (this.props.onComplete) {
|
|
68
|
-
switch (ev.key.toLowerCase()) {
|
|
69
|
-
case "enter":
|
|
70
|
-
this.props.onComplete(ev);
|
|
71
|
-
break;
|
|
72
|
-
default:
|
|
73
|
-
break;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
} : undefined }),
|
|
77
|
-
this.props.suffix);
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
exports.TextField = TextField;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ToastMessage = void 0;
|
|
4
|
-
const react_toastify_1 = require("react-toastify");
|
|
5
|
-
require("./toast-noti.css");
|
|
6
|
-
class ToastMessage {
|
|
7
|
-
static success(message) {
|
|
8
|
-
react_toastify_1.toast.success(message, {
|
|
9
|
-
hideProgressBar: true,
|
|
10
|
-
transition: react_toastify_1.Slide,
|
|
11
|
-
autoClose: 800,
|
|
12
|
-
theme: "colored",
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
|
-
static errors(message) {
|
|
16
|
-
react_toastify_1.toast.error(message, {
|
|
17
|
-
theme: "colored",
|
|
18
|
-
pauseOnHover: false,
|
|
19
|
-
hideProgressBar: true,
|
|
20
|
-
transition: react_toastify_1.Slide,
|
|
21
|
-
autoClose: 800,
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
exports.ToastMessage = ToastMessage;
|