wini-web-components 2.2.7 → 2.3.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/dist/component/button/button.d.ts +16 -16
- package/dist/component/button/button.js +39 -39
- package/dist/component/calendar/calendar.d.ts +30 -46
- package/dist/component/calendar/calendar.js +437 -432
- package/dist/component/checkbox/checkbox.d.ts +22 -22
- package/dist/component/checkbox/checkbox.js +80 -81
- package/dist/component/component-status.d.ts +8 -8
- package/dist/component/component-status.js +39 -39
- package/dist/component/date-picker/date-picker.d.ts +25 -36
- package/dist/component/date-picker/date-picker.js +362 -359
- package/dist/component/dialog/dialog.d.ts +36 -34
- package/dist/component/dialog/dialog.js +99 -97
- package/dist/component/import-file/import-file.d.ts +24 -36
- package/dist/component/import-file/import-file.js +154 -119
- package/dist/component/infinite-scroll/infinite-scroll.d.ts +17 -17
- package/dist/component/infinite-scroll/infinite-scroll.js +103 -103
- package/dist/component/input-multi-select/input-multi-select.d.ts +21 -38
- package/dist/component/input-multi-select/input-multi-select.js +334 -323
- package/dist/component/input-opt/input-opt.d.ts +21 -0
- package/dist/component/input-opt/input-opt.js +157 -0
- package/dist/component/number-picker/number-picker.d.ts +19 -19
- package/dist/component/number-picker/number-picker.js +137 -127
- package/dist/component/pagination/pagination.d.ts +13 -13
- package/dist/component/pagination/pagination.js +93 -82
- package/dist/component/popup/popup.d.ts +33 -33
- package/dist/component/popup/popup.js +138 -105
- package/dist/component/progress-bar/progress-bar.d.ts +16 -16
- package/dist/component/progress-bar/progress-bar.js +35 -36
- package/dist/component/progress-circle/progress-circle.d.ts +14 -14
- package/dist/component/progress-circle/progress-circle.js +30 -31
- package/dist/component/radio-button/radio-button.d.ts +20 -20
- package/dist/component/radio-button/radio-button.js +64 -64
- package/dist/component/rating/rating.d.ts +23 -23
- package/dist/component/rating/rating.js +73 -74
- package/dist/component/select1/select1.d.ts +31 -50
- package/dist/component/select1/select1.js +320 -309
- package/dist/component/slider/slider.d.ts +31 -31
- package/dist/component/slider/slider.js +80 -81
- package/dist/component/switch/switch.d.ts +23 -23
- package/dist/component/switch/switch.js +80 -81
- package/dist/component/table/table.d.ts +51 -51
- package/dist/component/table/table.js +119 -119
- package/dist/component/tag/tag.d.ts +17 -17
- package/dist/component/tag/tag.js +39 -39
- package/dist/component/text/text.d.ts +16 -16
- package/dist/component/text/text.js +51 -51
- package/dist/component/text-area/text-area.d.ts +28 -28
- package/dist/component/text-area/text-area.js +83 -73
- package/dist/component/text-field/text-field.d.ts +33 -33
- package/dist/component/text-field/text-field.js +107 -97
- package/dist/component/toast-noti/toast-noti.d.ts +5 -5
- package/dist/component/toast-noti/toast-noti.js +28 -28
- package/dist/component/wini-icon/winicon.d.ts +16 -16
- package/dist/component/wini-icon/winicon.js +121 -112
- package/dist/form/login/view.d.ts +40 -40
- package/dist/form/login/view.js +66 -65
- package/dist/i18n.d.ts +2 -0
- package/dist/i18n.js +125 -0
- package/dist/index.d.ts +32 -30
- package/dist/index.js +1 -1
- package/dist/language/i18n.d.ts +2 -0
- package/dist/language/i18n.js +125 -0
- package/package.json +5 -3
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import React, { CSSProperties, ReactNode } from 'react';
|
|
2
|
-
interface ButtonProps {
|
|
3
|
-
id?: string;
|
|
4
|
-
label: string;
|
|
5
|
-
prefix?: ReactNode;
|
|
6
|
-
suffix?: ReactNode;
|
|
7
|
-
disabled?: boolean;
|
|
8
|
-
style?: CSSProperties;
|
|
9
|
-
type?: "button" | "reset" | "submit";
|
|
10
|
-
className?: string;
|
|
11
|
-
onClick?: React.MouseEventHandler<HTMLButtonElement>;
|
|
12
|
-
}
|
|
13
|
-
export declare class Button extends React.Component<ButtonProps> {
|
|
14
|
-
render(): React.JSX.Element;
|
|
15
|
-
}
|
|
16
|
-
export {};
|
|
1
|
+
import React, { CSSProperties, ReactNode } from 'react';
|
|
2
|
+
interface ButtonProps {
|
|
3
|
+
id?: string;
|
|
4
|
+
label: string;
|
|
5
|
+
prefix?: ReactNode;
|
|
6
|
+
suffix?: ReactNode;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
style?: CSSProperties;
|
|
9
|
+
type?: "button" | "reset" | "submit";
|
|
10
|
+
className?: string;
|
|
11
|
+
onClick?: React.MouseEventHandler<HTMLButtonElement>;
|
|
12
|
+
}
|
|
13
|
+
export declare class Button extends React.Component<ButtonProps> {
|
|
14
|
+
render(): React.JSX.Element;
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
18
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
19
|
-
};
|
|
20
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
-
exports.Button = void 0;
|
|
22
|
-
var react_1 = __importDefault(require("react"));
|
|
23
|
-
var text_1 = require("../text/text");
|
|
24
|
-
var button_module_css_1 = __importDefault(require("./button.module.css"));
|
|
25
|
-
var Button = /** @class */ (function (_super) {
|
|
26
|
-
__extends(Button, _super);
|
|
27
|
-
function Button() {
|
|
28
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
29
|
-
}
|
|
30
|
-
Button.prototype.render = function () {
|
|
31
|
-
var _a, _b;
|
|
32
|
-
return react_1.default.createElement("button", { id: this.props.id, type: (_a = this.props.type) !== null && _a !== void 0 ? _a : "button", disabled: this.props.disabled, className: "".concat(button_module_css_1.default['button-container'], " row ").concat((_b = this.props.className) !== null && _b !== void 0 ? _b : "button-text-3"), style: this.props.style, onClick: this.props.onClick },
|
|
33
|
-
this.props.prefix,
|
|
34
|
-
react_1.default.createElement(text_1.Text, { maxLine: 1, className: button_module_css_1.default['button-label'] }, this.props.label),
|
|
35
|
-
this.props.suffix);
|
|
36
|
-
};
|
|
37
|
-
return Button;
|
|
38
|
-
}(react_1.default.Component));
|
|
39
|
-
exports.Button = Button;
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
18
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
19
|
+
};
|
|
20
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
+
exports.Button = void 0;
|
|
22
|
+
var react_1 = __importDefault(require("react"));
|
|
23
|
+
var text_1 = require("../text/text");
|
|
24
|
+
var button_module_css_1 = __importDefault(require("./button.module.css"));
|
|
25
|
+
var Button = /** @class */ (function (_super) {
|
|
26
|
+
__extends(Button, _super);
|
|
27
|
+
function Button() {
|
|
28
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
29
|
+
}
|
|
30
|
+
Button.prototype.render = function () {
|
|
31
|
+
var _a, _b;
|
|
32
|
+
return react_1.default.createElement("button", { id: this.props.id, type: (_a = this.props.type) !== null && _a !== void 0 ? _a : "button", disabled: this.props.disabled, className: "".concat(button_module_css_1.default['button-container'], " row ").concat((_b = this.props.className) !== null && _b !== void 0 ? _b : "button-text-3"), style: this.props.style, onClick: this.props.onClick },
|
|
33
|
+
this.props.prefix,
|
|
34
|
+
react_1.default.createElement(text_1.Text, { maxLine: 1, className: button_module_css_1.default['button-label'] }, this.props.label),
|
|
35
|
+
this.props.suffix);
|
|
36
|
+
};
|
|
37
|
+
return Button;
|
|
38
|
+
}(react_1.default.Component));
|
|
39
|
+
exports.Button = Button;
|
|
@@ -1,46 +1,30 @@
|
|
|
1
|
-
import React, { CSSProperties, ReactNode } from "react";
|
|
2
|
-
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const
|
|
6
|
-
export declare
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
selectMonth: number;
|
|
32
|
-
selectYear: number;
|
|
33
|
-
selectHours: number;
|
|
34
|
-
selectMinutes: number;
|
|
35
|
-
selectSeconds: number;
|
|
36
|
-
type: CalendarType;
|
|
37
|
-
}
|
|
38
|
-
export declare class Calendar extends React.Component<CalendarProps, CalendarState> {
|
|
39
|
-
state: Readonly<CalendarState>;
|
|
40
|
-
showDateInMonth(): React.JSX.Element;
|
|
41
|
-
showMonthInYear(): React.JSX.Element;
|
|
42
|
-
showYearInRange(): React.JSX.Element;
|
|
43
|
-
getTitle(): string | number;
|
|
44
|
-
render(): React.ReactNode;
|
|
45
|
-
}
|
|
46
|
-
export {};
|
|
1
|
+
import React, { CSSProperties, ReactNode } from "react";
|
|
2
|
+
import { WithTranslation } from 'react-i18next';
|
|
3
|
+
export declare const today: Date;
|
|
4
|
+
export declare const startDate: Date;
|
|
5
|
+
export declare const endDate: Date;
|
|
6
|
+
export declare const inRangeTime: (date: Date, startDate: Date, endDate: Date) => boolean;
|
|
7
|
+
export declare enum CalendarType {
|
|
8
|
+
DATE = 0,
|
|
9
|
+
MONTH = 1,
|
|
10
|
+
YEAR = 2,
|
|
11
|
+
DATETIME = 3
|
|
12
|
+
}
|
|
13
|
+
interface CalendarProps extends WithTranslation {
|
|
14
|
+
id?: string;
|
|
15
|
+
value?: Date;
|
|
16
|
+
min?: Date;
|
|
17
|
+
max?: Date;
|
|
18
|
+
onSelect?: (props: Date) => void;
|
|
19
|
+
disabled?: boolean;
|
|
20
|
+
helperText?: string;
|
|
21
|
+
helperTextColor?: string;
|
|
22
|
+
placeholder?: string;
|
|
23
|
+
className?: string;
|
|
24
|
+
style?: CSSProperties;
|
|
25
|
+
type: CalendarType;
|
|
26
|
+
showSidebar?: boolean;
|
|
27
|
+
footer?: ReactNode;
|
|
28
|
+
}
|
|
29
|
+
export declare const Calendar: React.ComponentType<Omit<import("react-i18next/helpers").$Subtract<CalendarProps, import("react-i18next").WithTranslationProps>, keyof WithTranslation<Ns, undefined>> & import("react-i18next").WithTranslationProps>;
|
|
30
|
+
export {};
|