ods-component-lib 1.18.30 → 1.18.33
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/components/antd/datepicker/OdsDatepicker.d.ts +3 -3
- package/dist/components/antd/timepicker/OdsTimepicker.d.ts +1 -1
- package/dist/components/antd/timepicker/OdsTimepicker.styled.d.ts +1 -1
- package/dist/components/antd/typography/OdsLink.d.ts +3 -3
- package/dist/components/antd/typography/OdsParagraph.d.ts +1 -1
- package/dist/components/devextreme/OdsRemoteDataGrid.d.ts +1 -0
- package/dist/index.d.ts +0 -4
- package/dist/index.js +30 -123
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +32 -123
- package/dist/index.modern.js.map +1 -1
- package/dist/stories/OdsRemoteDataGrid/OdsRemoteDataGrid.Constants.d.ts +17 -0
- package/dist/stories/OdsRemoteDataGrid/OdsRemoteDataGrid.MockData.d.ts +5 -0
- package/package.json +1 -1
- /package/dist/components/antd/datepicker/{OdsDateRangepicker.d.ts → OdsDateRangePicker.d.ts} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DatePickerProps } from
|
|
2
|
-
import React from
|
|
3
|
-
declare
|
|
1
|
+
import { DatePickerProps } from "antd";
|
|
2
|
+
import React from "react";
|
|
3
|
+
declare const OdsDatepicker: (props: DatePickerProps) => React.JSX.Element;
|
|
4
4
|
export default OdsDatepicker;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const StyledTimepicker: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Pick<import("antd").TimePickerProps, "
|
|
2
|
+
export declare const StyledTimepicker: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Pick<import("antd").TimePickerProps, "defaultValue" | "value" | "onChange" | "onOk" | "locale" | "placeholder" | "id" | "disabled" | "onFocus" | "onBlur" | "onKeyDown" | "size" | "accept" | "alt" | "autoComplete" | "capture" | "checked" | "form" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "height" | "list" | "maxLength" | "minLength" | "multiple" | "name" | "pattern" | "readOnly" | "required" | "src" | "step" | "type" | "width" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "nonce" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocusCapture" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "prevIcon" | "nextIcon" | "superPrevIcon" | "superNextIcon" | "format" | "showNow" | "showHour" | "showMinute" | "showSecond" | "showMillisecond" | "use12Hours" | "hourStep" | "minuteStep" | "secondStep" | "millisecondStep" | "hideDisabledOptions" | "defaultOpenValue" | "disabledHours" | "disabledMinutes" | "disabledSeconds" | "disabledTime" | "changeOnScroll" | "removeIcon" | "maxTagCount" | "onCalendarChange" | "defaultPickerValue" | "pickerValue" | "onPickerValueChange" | "presets" | "mode" | "onPanelChange" | "direction" | "prefixCls" | "styles" | "classNames" | "showWeek" | "suffixIcon" | "allowClear" | "clearIcon" | "inputReadOnly" | "order" | "disabledDate" | "minDate" | "maxDate" | "defaultOpen" | "open" | "onOpenChange" | "popupAlign" | "getPopupContainer" | "placement" | "builtinPlacements" | "needConfirm" | "changeOnBlur" | "preserveInvalidOnBlur" | "transitionName" | "components" | "inputRender" | "cellRender" | "dateRender" | "monthCellRender" | "showToday" | "panelRender" | "renderExtraFooter" | "bordered" | "status" | "variant" | "dropdownClassName" | "popupClassName" | "rootClassName" | "popupStyle" | "key" | "addon"> & import("react").RefAttributes<any>> & {
|
|
3
3
|
RangePicker: import("react").ForwardRefExoticComponent<import("antd").TimeRangePickerProps & import("react").RefAttributes<any>>;
|
|
4
4
|
_InternalPanelDoNotUseOrYouWillBeFired: (props: Record<string | number | symbol, any>) => import("react").JSX.Element;
|
|
5
5
|
}, any, {}, never>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TypographyProps } from
|
|
2
|
-
import React from
|
|
3
|
-
declare
|
|
1
|
+
import { TypographyProps } from "antd";
|
|
2
|
+
import React from "react";
|
|
3
|
+
declare const OdsLink: (props?: TypographyProps) => React.JSX.Element;
|
|
4
4
|
export default OdsLink;
|
|
@@ -21,6 +21,7 @@ export interface IOdsDataGridProps extends IDataGridOptions {
|
|
|
21
21
|
isServerSide: boolean;
|
|
22
22
|
axiosRequest?: IAxiosProps;
|
|
23
23
|
customSummary?: ISummaryRowOptions;
|
|
24
|
+
handleEditorPreparing?: any;
|
|
24
25
|
}
|
|
25
26
|
interface ISummaryRowOptions {
|
|
26
27
|
summaryLoadedDataLabel?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -12,7 +12,6 @@ import OdsDatepicker from "./components/antd/datepicker/OdsDatepicker";
|
|
|
12
12
|
import OdsDivider from "./components/antd/divider/OdsDivider";
|
|
13
13
|
import OdsCollapse from "./components/antd/dropdown/OdsDropdown";
|
|
14
14
|
import OdsDropdown from "./components/antd/dropdown/OdsDropdown";
|
|
15
|
-
import OdsBasicForm from "./components/antd/form/OdsBasicForm";
|
|
16
15
|
import OdsImage from "./components/antd/image/OdsImage";
|
|
17
16
|
import OdsInput from "./components/antd/input/OdsInput.";
|
|
18
17
|
import OdsPassword from "./components/antd/input/OdsPassword";
|
|
@@ -21,7 +20,6 @@ import OdsSearch from "./components/antd/input/OdsSearch";
|
|
|
21
20
|
import OdsTextArea from "./components/antd/input/OdsTextArea";
|
|
22
21
|
import OdsInputNumber from "./components/antd/inputNumber/OdsInputNumber";
|
|
23
22
|
import OdsList from "./components/antd/list/OdsList";
|
|
24
|
-
import OdsMessage from "./components/antd/message/OdsMessage";
|
|
25
23
|
import OdsModal from "./components/antd/modal/OdsModal";
|
|
26
24
|
import OdsNotification from "./components/antd/notification/OdsNotification";
|
|
27
25
|
import OdsRadio from "./components/antd/radio/OdsRadio";
|
|
@@ -58,7 +56,6 @@ export { OdsDatepicker };
|
|
|
58
56
|
export { OdsSelect };
|
|
59
57
|
export { OdsRadio };
|
|
60
58
|
export { OdsAutoComplete };
|
|
61
|
-
export { OdsBasicForm };
|
|
62
59
|
export { OdsPassword };
|
|
63
60
|
export { OdsSearch };
|
|
64
61
|
export { OdsTextArea };
|
|
@@ -76,7 +73,6 @@ export { OdsCollapse };
|
|
|
76
73
|
export { OdsDateRangePicker };
|
|
77
74
|
export { OdsImage };
|
|
78
75
|
export { OdsList };
|
|
79
|
-
export { OdsMessage };
|
|
80
76
|
export { OdsRadioGroup };
|
|
81
77
|
export { OdsCheckboxGroup };
|
|
82
78
|
export { OdsSpin };
|
package/dist/index.js
CHANGED
|
@@ -10,7 +10,6 @@ var Card = _interopDefault(require('antd/es/card/Card'));
|
|
|
10
10
|
var icons = require('@ant-design/icons');
|
|
11
11
|
require('react-phone-input-2/lib/style.css');
|
|
12
12
|
var PhoneInput = _interopDefault(require('react-phone-input-2'));
|
|
13
|
-
var message = _interopDefault(require('antd/es/message'));
|
|
14
13
|
var Parser = _interopDefault(require('html-react-parser'));
|
|
15
14
|
var localization = require('devextreme/localization');
|
|
16
15
|
var DataGrid = require('devextreme-react/data-grid');
|
|
@@ -497,8 +496,8 @@ function OdsDateRangePicker(props) {
|
|
|
497
496
|
}))));
|
|
498
497
|
}
|
|
499
498
|
|
|
500
|
-
function
|
|
501
|
-
var _useState = React.useState(
|
|
499
|
+
function StyledOdsDatepicker(props) {
|
|
500
|
+
var _useState = React.useState("middle"),
|
|
502
501
|
size = _useState[0];
|
|
503
502
|
return React__default.createElement(React__default.Fragment, null, React__default.createElement(styled.ThemeProvider, {
|
|
504
503
|
theme: lightTheme
|
|
@@ -506,6 +505,9 @@ function OdsDatepicker(props) {
|
|
|
506
505
|
size: size
|
|
507
506
|
}))));
|
|
508
507
|
}
|
|
508
|
+
var OdsDatepicker = function OdsDatepicker(props) {
|
|
509
|
+
return React__default.createElement(StyledOdsDatepicker, Object.assign({}, props));
|
|
510
|
+
};
|
|
509
511
|
|
|
510
512
|
var _templateObject$7;
|
|
511
513
|
var StyledDivider = styled__default(antd.Divider)(_templateObject$7 || (_templateObject$7 = _taggedTemplateLiteralLoose(["\n //\n"])));
|
|
@@ -532,55 +534,6 @@ function OdsCollapse(props) {
|
|
|
532
534
|
}, props.children)));
|
|
533
535
|
}
|
|
534
536
|
|
|
535
|
-
var _templateObject$9;
|
|
536
|
-
var StyledInput = styled__default(antd.Input)(_templateObject$9 || (_templateObject$9 = _taggedTemplateLiteralLoose(["\n //\n"])));
|
|
537
|
-
|
|
538
|
-
function OdsInput(props) {
|
|
539
|
-
return React__default.createElement(React__default.Fragment, null, React__default.createElement(styled.ThemeProvider, {
|
|
540
|
-
theme: lightTheme
|
|
541
|
-
}, React__default.createElement(StyledInput, Object.assign({}, props), props === null || props === void 0 ? void 0 : props.children)));
|
|
542
|
-
}
|
|
543
|
-
|
|
544
|
-
var layout = {
|
|
545
|
-
labelCol: {
|
|
546
|
-
span: 8
|
|
547
|
-
},
|
|
548
|
-
wrapperCol: {
|
|
549
|
-
span: 16
|
|
550
|
-
}
|
|
551
|
-
};
|
|
552
|
-
function renderElement(type) {
|
|
553
|
-
switch (type) {
|
|
554
|
-
case 'text':
|
|
555
|
-
return React__default.createElement(OdsInput, null);
|
|
556
|
-
default:
|
|
557
|
-
return React__default.createElement(OdsInput, null);
|
|
558
|
-
}
|
|
559
|
-
}
|
|
560
|
-
function OdsBasicForm(props) {
|
|
561
|
-
var onFinish = function onFinish(values) {
|
|
562
|
-
console.log('Received values:', values);
|
|
563
|
-
};
|
|
564
|
-
var onFinishFailed = function onFinishFailed(errorInfo) {
|
|
565
|
-
console.log('Failed:', errorInfo);
|
|
566
|
-
};
|
|
567
|
-
return React__default.createElement(antd.Form, Object.assign({
|
|
568
|
-
onFinish: onFinish,
|
|
569
|
-
onFinishFailed: onFinishFailed
|
|
570
|
-
}, layout), props.formItems.map(function (formItem) {
|
|
571
|
-
return React__default.createElement(antd.Form.Item, {
|
|
572
|
-
label: formItem.label,
|
|
573
|
-
name: formItem.name,
|
|
574
|
-
rules: formItem.rules
|
|
575
|
-
}, renderElement(formItem.formItemType));
|
|
576
|
-
}), props.formButtons.map(function (formButton) {
|
|
577
|
-
React__default.createElement(antd.Form.Item, null, React__default.createElement(OdsButton, {
|
|
578
|
-
type: formButton.type,
|
|
579
|
-
htmlType: formButton.htmlType
|
|
580
|
-
}, formButton.children));
|
|
581
|
-
}));
|
|
582
|
-
}
|
|
583
|
-
|
|
584
537
|
function OdsImagePreviewGroup() {
|
|
585
538
|
var _useState = React.useState(false),
|
|
586
539
|
visible = _useState[0],
|
|
@@ -619,6 +572,15 @@ function OdsImage(props) {
|
|
|
619
572
|
return React__default.createElement(React__default.Fragment, null, isMultiple ? React__default.createElement(antd.Image, Object.assign({}, props)) : React__default.createElement(OdsImagePreviewGroup, Object.assign({}, props)));
|
|
620
573
|
}
|
|
621
574
|
|
|
575
|
+
var _templateObject$9;
|
|
576
|
+
var StyledInput = styled__default(antd.Input)(_templateObject$9 || (_templateObject$9 = _taggedTemplateLiteralLoose(["\n //\n"])));
|
|
577
|
+
|
|
578
|
+
function OdsInput(props) {
|
|
579
|
+
return React__default.createElement(React__default.Fragment, null, React__default.createElement(styled.ThemeProvider, {
|
|
580
|
+
theme: lightTheme
|
|
581
|
+
}, React__default.createElement(StyledInput, Object.assign({}, props), props === null || props === void 0 ? void 0 : props.children)));
|
|
582
|
+
}
|
|
583
|
+
|
|
622
584
|
function OdsPassword(props) {
|
|
623
585
|
return React__default.createElement(React__default.Fragment, null, React__default.createElement(styled.ThemeProvider, {
|
|
624
586
|
theme: lightTheme
|
|
@@ -684,68 +646,6 @@ function OdsList(props) {
|
|
|
684
646
|
}, props.children)));
|
|
685
647
|
}
|
|
686
648
|
|
|
687
|
-
function OdsMessage(type, content, duration) {
|
|
688
|
-
if (duration === void 0) {
|
|
689
|
-
duration = 10;
|
|
690
|
-
}
|
|
691
|
-
var _message$useMessage = message.useMessage(),
|
|
692
|
-
messageApi = _message$useMessage[0];
|
|
693
|
-
var success = function success() {
|
|
694
|
-
messageApi.open({
|
|
695
|
-
type: 'success',
|
|
696
|
-
content: content,
|
|
697
|
-
duration: duration
|
|
698
|
-
});
|
|
699
|
-
};
|
|
700
|
-
var error = function error() {
|
|
701
|
-
messageApi.open({
|
|
702
|
-
type: 'error',
|
|
703
|
-
content: content,
|
|
704
|
-
duration: duration
|
|
705
|
-
});
|
|
706
|
-
};
|
|
707
|
-
var warning = function warning() {
|
|
708
|
-
messageApi.open({
|
|
709
|
-
type: 'warning',
|
|
710
|
-
content: content,
|
|
711
|
-
duration: duration
|
|
712
|
-
});
|
|
713
|
-
};
|
|
714
|
-
var info = function info() {
|
|
715
|
-
messageApi.open({
|
|
716
|
-
type: 'info',
|
|
717
|
-
content: content,
|
|
718
|
-
duration: duration
|
|
719
|
-
});
|
|
720
|
-
};
|
|
721
|
-
var loading = function loading() {
|
|
722
|
-
messageApi.open({
|
|
723
|
-
type: 'loading',
|
|
724
|
-
content: content,
|
|
725
|
-
duration: duration
|
|
726
|
-
});
|
|
727
|
-
};
|
|
728
|
-
var contentt;
|
|
729
|
-
switch (type) {
|
|
730
|
-
case "info":
|
|
731
|
-
contentt = React__default.createElement("div", null, info);
|
|
732
|
-
break;
|
|
733
|
-
case "error":
|
|
734
|
-
contentt = React__default.createElement("div", null, error);
|
|
735
|
-
break;
|
|
736
|
-
case "warning":
|
|
737
|
-
contentt = React__default.createElement("div", null, warning);
|
|
738
|
-
break;
|
|
739
|
-
case "loading":
|
|
740
|
-
contentt = React__default.createElement("div", null, loading);
|
|
741
|
-
break;
|
|
742
|
-
case "success":
|
|
743
|
-
contentt = React__default.createElement("div", null, success);
|
|
744
|
-
break;
|
|
745
|
-
}
|
|
746
|
-
return React__default.createElement(React__default.Fragment, null, contentt);
|
|
747
|
-
}
|
|
748
|
-
|
|
749
649
|
function OdsModal(props) {
|
|
750
650
|
return React__default.createElement(React__default.Fragment, null, React__default.createElement(antd.Modal, Object.assign({}, props, {
|
|
751
651
|
open: props.open,
|
|
@@ -1205,25 +1105,34 @@ var dayjs_min = createCommonjsModule(function (module, exports) {
|
|
|
1205
1105
|
!function(t,e){module.exports=e();}(commonjsGlobal,(function(){var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",s="minute",u="hour",a="day",o="week",c="month",f="quarter",h="year",d="date",l="Invalid Date",$=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],n=t%100;return "["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}},m=function(t,e,n){var r=String(t);return !r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},v={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return (e<=0?"+":"-")+m(r,2,"0")+":"+m(i,2,"0")},m:function t(e,n){if(e.date()<n.date())return -t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,c),s=n-i<0,u=e.clone().add(r+(s?-1:1),c);return +(-(r+(n-i)/(s?i-u:u-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return {M:c,y:h,w:o,d:a,D:d,h:u,m:s,s:i,ms:r,Q:f}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},g="en",D={};D[g]=M;var p="$isDayjsObject",S=function(t){return t instanceof _||!(!t||!t[p])},w=function t(e,n,r){var i;if(!e)return g;if("string"==typeof e){var s=e.toLowerCase();D[s]&&(i=s),n&&(D[s]=n,i=s);var u=e.split("-");if(!i&&u.length>1)return t(u[0])}else {var a=e.name;D[a]=e,i=a;}return !r&&i&&(g=i),i||!r&&g},O=function(t,e){if(S(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new _(n)},b=v;b.l=w,b.i=S,b.w=function(t,e){return O(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function M(t){this.$L=w(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[p]=!0;}var m=M.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(b.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match($);if(r){var i=r[2]-1||0,s=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.init();},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds();},m.$utils=function(){return b},m.isValid=function(){return !(this.$d.toString()===l)},m.isSame=function(t,e){var n=O(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return O(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<O(t)},m.$g=function(t,e,n){return b.u(t)?this[e]:this.set(n,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var n=this,r=!!b.u(e)||e,f=b.p(t),l=function(t,e){var i=b.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(a)},$=function(t,e){return b.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},y=this.$W,M=this.$M,m=this.$D,v="set"+(this.$u?"UTC":"");switch(f){case h:return r?l(1,0):l(31,11);case c:return r?l(1,M):l(0,M+1);case o:var g=this.$locale().weekStart||0,D=(y<g?y+7:y)-g;return l(r?m-D:m+(6-D),M);case a:case d:return $(v+"Hours",0);case u:return $(v+"Minutes",1);case s:return $(v+"Seconds",2);case i:return $(v+"Milliseconds",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var n,o=b.p(t),f="set"+(this.$u?"UTC":""),l=(n={},n[a]=f+"Date",n[d]=f+"Date",n[c]=f+"Month",n[h]=f+"FullYear",n[u]=f+"Hours",n[s]=f+"Minutes",n[i]=f+"Seconds",n[r]=f+"Milliseconds",n)[o],$=o===a?this.$D+(e-this.$W):e;if(o===c||o===h){var y=this.clone().set(d,1);y.$d[l]($),y.init(),this.$d=y.set(d,Math.min(this.$D,y.daysInMonth())).$d;}else l&&this.$d[l]($);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[b.p(t)]()},m.add=function(r,f){var d,l=this;r=Number(r);var $=b.p(f),y=function(t){var e=O(l);return b.w(e.date(e.date()+Math.round(t*r)),l)};if($===c)return this.set(c,this.$M+r);if($===h)return this.set(h,this.$y+r);if($===a)return y(1);if($===o)return y(7);var M=(d={},d[s]=e,d[u]=n,d[i]=t,d)[$]||1,m=this.$d.getTime()+r*M;return b.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||l;var r=t||"YYYY-MM-DDTHH:mm:ssZ",i=b.z(this),s=this.$H,u=this.$m,a=this.$M,o=n.weekdays,c=n.months,f=n.meridiem,h=function(t,n,i,s){return t&&(t[n]||t(e,r))||i[n].slice(0,s)},d=function(t){return b.s(s%12||12,t,"0")},$=f||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(y,(function(t,r){return r||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return b.s(e.$y,4,"0");case"M":return a+1;case"MM":return b.s(a+1,2,"0");case"MMM":return h(n.monthsShort,a,c,3);case"MMMM":return h(c,a);case"D":return e.$D;case"DD":return b.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return h(n.weekdaysMin,e.$W,o,2);case"ddd":return h(n.weekdaysShort,e.$W,o,3);case"dddd":return o[e.$W];case"H":return String(s);case"HH":return b.s(s,2,"0");case"h":return d(1);case"hh":return d(2);case"a":return $(s,u,!0);case"A":return $(s,u,!1);case"m":return String(u);case"mm":return b.s(u,2,"0");case"s":return String(e.$s);case"ss":return b.s(e.$s,2,"0");case"SSS":return b.s(e.$ms,3,"0");case"Z":return i}return null}(t)||i.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(r,d,l){var $,y=this,M=b.p(d),m=O(r),v=(m.utcOffset()-this.utcOffset())*e,g=this-m,D=function(){return b.m(y,m)};switch(M){case h:$=D()/12;break;case c:$=D();break;case f:$=D()/3;break;case o:$=(g-v)/6048e5;break;case a:$=(g-v)/864e5;break;case u:$=g/n;break;case s:$=g/e;break;case i:$=g/t;break;default:$=g;}return l?$:b.a($)},m.daysInMonth=function(){return this.endOf(c).$D},m.$locale=function(){return D[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=w(t,e,!0);return r&&(n.$L=r),n},m.clone=function(){return b.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},M}(),k=_.prototype;return O.prototype=k,[["$ms",r],["$s",i],["$m",s],["$H",u],["$W",a],["$M",c],["$y",h],["$D",d]].forEach((function(t){k[t[1]]=function(e){return this.$g(e,t[0],t[1])};})),O.extend=function(t,e){return t.$i||(t(e,_,O),t.$i=!0),O},O.locale=w,O.isDayjs=S,O.unix=function(t){return O(1e3*t)},O.en=D[g],O.Ls=D,O.p={},O}));
|
|
1206
1106
|
});
|
|
1207
1107
|
|
|
1208
|
-
function
|
|
1209
|
-
var format =
|
|
1108
|
+
function StyledOdsTimepicker(props) {
|
|
1109
|
+
var format = "HH:mm";
|
|
1210
1110
|
return React__default.createElement(React__default.Fragment, null, React__default.createElement(StyledTimepicker, Object.assign({}, props, {
|
|
1211
|
-
defaultValue: dayjs_min(
|
|
1111
|
+
defaultValue: dayjs_min("00:00", format)
|
|
1212
1112
|
})));
|
|
1213
1113
|
}
|
|
1114
|
+
var OdsTimepicker = function OdsTimepicker(props) {
|
|
1115
|
+
return React__default.createElement(StyledOdsTimepicker, Object.assign({}, props));
|
|
1116
|
+
};
|
|
1214
1117
|
|
|
1215
1118
|
var _templateObject$m;
|
|
1216
1119
|
var StyledtTypography = styled__default(antd.Typography)(_templateObject$m || (_templateObject$m = _taggedTemplateLiteralLoose(["\n //\n"])));
|
|
1217
1120
|
|
|
1218
|
-
function
|
|
1121
|
+
function StyledOdsLink(props) {
|
|
1219
1122
|
return React__default.createElement(React__default.Fragment, null, React__default.createElement(StyledtTypography, Object.assign({}, props), props === null || props === void 0 ? void 0 : props.Link));
|
|
1220
1123
|
}
|
|
1124
|
+
var OdsLink = function OdsLink(props) {
|
|
1125
|
+
return React__default.createElement(StyledOdsLink, Object.assign({}, props));
|
|
1126
|
+
};
|
|
1221
1127
|
|
|
1222
|
-
function
|
|
1128
|
+
function StyledOdsParagraph(props) {
|
|
1223
1129
|
return React__default.createElement(React__default.Fragment, null, React__default.createElement(styled.ThemeProvider, {
|
|
1224
1130
|
theme: lightTheme
|
|
1225
1131
|
}, React__default.createElement(StyledtTypography.Paragraph, Object.assign({}, props), props)));
|
|
1226
1132
|
}
|
|
1133
|
+
var OdsParagraph = function OdsParagraph(props) {
|
|
1134
|
+
return React__default.createElement(StyledOdsParagraph, Object.assign({}, props));
|
|
1135
|
+
};
|
|
1227
1136
|
|
|
1228
1137
|
function OdsText(props) {
|
|
1229
1138
|
return React__default.createElement(React__default.Fragment, null, React__default.createElement(styled.ThemeProvider, {
|
|
@@ -17292,8 +17201,8 @@ var OdsRemoteDataGrid = function OdsRemoteDataGrid(props) {
|
|
|
17292
17201
|
e.editorOptions.onFocusIn = disableScrolling;
|
|
17293
17202
|
e.editorOptions.onFocusOut = enableScrolling;
|
|
17294
17203
|
}
|
|
17295
|
-
if (props.
|
|
17296
|
-
props.
|
|
17204
|
+
if (props.handleEditorPreparing) {
|
|
17205
|
+
props.handleEditorPreparing(e);
|
|
17297
17206
|
}
|
|
17298
17207
|
}
|
|
17299
17208
|
if (e.editorOptions && e.rowType === 'data' && e.parentType === 'dataRow') {
|
|
@@ -17668,7 +17577,6 @@ exports.DxTreeView = DxTreeView;
|
|
|
17668
17577
|
exports.OdsAlert = OdsAlert;
|
|
17669
17578
|
exports.OdsAutoComplete = OdsAutoComplete;
|
|
17670
17579
|
exports.OdsBannerAlert = OdsBannerAlert;
|
|
17671
|
-
exports.OdsBasicForm = OdsBasicForm;
|
|
17672
17580
|
exports.OdsBasicTable = OdsBasicTable;
|
|
17673
17581
|
exports.OdsButton = OdsButton;
|
|
17674
17582
|
exports.OdsCalendar = OdsCalendar;
|
|
@@ -17691,7 +17599,6 @@ exports.OdsInputNumber = OdsInputNumber;
|
|
|
17691
17599
|
exports.OdsLink = OdsLink;
|
|
17692
17600
|
exports.OdsList = OdsList;
|
|
17693
17601
|
exports.OdsLogin = OdsLogin;
|
|
17694
|
-
exports.OdsMessage = OdsMessage;
|
|
17695
17602
|
exports.OdsModal = OdsModal;
|
|
17696
17603
|
exports.OdsNotification = OdsNotification;
|
|
17697
17604
|
exports.OdsParagraph = OdsParagraph;
|