wini-web-components 2.2.8 → 2.3.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.
Files changed (63) hide show
  1. package/dist/component/button/button.d.ts +16 -16
  2. package/dist/component/button/button.js +39 -39
  3. package/dist/component/calendar/calendar.d.ts +30 -46
  4. package/dist/component/calendar/calendar.js +437 -432
  5. package/dist/component/checkbox/checkbox.d.ts +24 -22
  6. package/dist/component/checkbox/checkbox.js +120 -81
  7. package/dist/component/component-status.d.ts +8 -8
  8. package/dist/component/component-status.js +39 -39
  9. package/dist/component/date-picker/date-picker.d.ts +25 -36
  10. package/dist/component/date-picker/date-picker.js +362 -359
  11. package/dist/component/dialog/dialog.d.ts +36 -34
  12. package/dist/component/dialog/dialog.js +99 -97
  13. package/dist/component/import-file/import-file.d.ts +24 -36
  14. package/dist/component/import-file/import-file.js +154 -119
  15. package/dist/component/infinite-scroll/infinite-scroll.d.ts +17 -17
  16. package/dist/component/infinite-scroll/infinite-scroll.js +103 -103
  17. package/dist/component/input-multi-select/input-multi-select.d.ts +21 -38
  18. package/dist/component/input-multi-select/input-multi-select.js +334 -323
  19. package/dist/component/input-opt/input-opt.d.ts +21 -21
  20. package/dist/component/input-opt/input-opt.js +157 -147
  21. package/dist/component/number-picker/number-picker.d.ts +19 -19
  22. package/dist/component/number-picker/number-picker.js +137 -127
  23. package/dist/component/pagination/pagination.d.ts +13 -13
  24. package/dist/component/pagination/pagination.js +93 -82
  25. package/dist/component/popup/popup.d.ts +33 -33
  26. package/dist/component/popup/popup.js +138 -105
  27. package/dist/component/progress-bar/progress-bar.d.ts +16 -16
  28. package/dist/component/progress-bar/progress-bar.js +35 -36
  29. package/dist/component/progress-circle/progress-circle.d.ts +14 -14
  30. package/dist/component/progress-circle/progress-circle.js +30 -31
  31. package/dist/component/radio-button/radio-button.d.ts +20 -20
  32. package/dist/component/radio-button/radio-button.js +64 -64
  33. package/dist/component/rating/rating.d.ts +23 -23
  34. package/dist/component/rating/rating.js +73 -74
  35. package/dist/component/select1/select1.d.ts +31 -50
  36. package/dist/component/select1/select1.js +320 -309
  37. package/dist/component/slider/slider.d.ts +31 -31
  38. package/dist/component/slider/slider.js +80 -81
  39. package/dist/component/switch/switch.d.ts +23 -23
  40. package/dist/component/switch/switch.js +80 -81
  41. package/dist/component/table/table.d.ts +51 -51
  42. package/dist/component/table/table.js +119 -119
  43. package/dist/component/tag/tag.d.ts +17 -17
  44. package/dist/component/tag/tag.js +39 -39
  45. package/dist/component/text/text.d.ts +16 -16
  46. package/dist/component/text/text.js +51 -51
  47. package/dist/component/text-area/text-area.d.ts +28 -28
  48. package/dist/component/text-area/text-area.js +83 -73
  49. package/dist/component/text-field/text-field.d.ts +33 -33
  50. package/dist/component/text-field/text-field.js +107 -97
  51. package/dist/component/toast-noti/toast-noti.d.ts +5 -5
  52. package/dist/component/toast-noti/toast-noti.js +28 -28
  53. package/dist/component/wini-icon/winicon.d.ts +16 -16
  54. package/dist/component/wini-icon/winicon.js +121 -112
  55. package/dist/form/login/view.d.ts +40 -40
  56. package/dist/form/login/view.js +66 -65
  57. package/dist/i18n.d.ts +2 -0
  58. package/dist/i18n.js +125 -0
  59. package/dist/index.d.ts +32 -31
  60. package/dist/index.js +1 -1
  61. package/dist/language/i18n.d.ts +2 -0
  62. package/dist/language/i18n.js +125 -0
  63. 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
- export declare const today: Date;
3
- export declare const startDate: Date;
4
- export declare const endDate: Date;
5
- export declare const inRangeTime: (date: Date, startDate: Date, endDate: Date) => boolean;
6
- export declare enum CalendarType {
7
- DATE = 0,
8
- MONTH = 1,
9
- YEAR = 2,
10
- DATETIME = 3
11
- }
12
- interface CalendarProps {
13
- id?: string;
14
- value?: Date;
15
- min?: Date;
16
- max?: Date;
17
- onSelect?: (props: Date) => void;
18
- disabled?: boolean;
19
- helperText?: string;
20
- helperTextColor?: string;
21
- placeholder?: string;
22
- className?: string;
23
- style?: CSSProperties;
24
- type: CalendarType;
25
- showSidebar?: boolean;
26
- footer?: ReactNode;
27
- }
28
- interface CalendarState {
29
- value: Date;
30
- selectDate?: Date;
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 {};