enwawa-ui 4.1.1 → 4.1.3
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/lib/index.d.ts +23 -2
- package/lib/index.d.ts.map +1 -1
- package/lib/index.es.js +78 -49
- package/lib/index.es.js.map +1 -1
- package/lib/index.js +78 -49
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -1548,6 +1548,10 @@ export interface AtTextInputProps {
|
|
|
1548
1548
|
* Callback when user input
|
|
1549
1549
|
*/
|
|
1550
1550
|
onChange?: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
1551
|
+
/**
|
|
1552
|
+
* the input only receive numeric characters
|
|
1553
|
+
*/
|
|
1554
|
+
onlyNumbers?: boolean;
|
|
1551
1555
|
}
|
|
1552
1556
|
/**
|
|
1553
1557
|
* Primary input UI component for user interaction
|
|
@@ -2098,6 +2102,7 @@ export interface OrCalendarProps {
|
|
|
2098
2102
|
* Current date of the calendar
|
|
2099
2103
|
*/
|
|
2100
2104
|
currentDate: Date | string | number;
|
|
2105
|
+
loading?: boolean;
|
|
2101
2106
|
}
|
|
2102
2107
|
export const OrCalendar: React.FC<OrCalendarProps>;
|
|
2103
2108
|
export interface MlDetailsCardProps extends MlCardProps {
|
|
@@ -3996,6 +4001,10 @@ export interface OrFormInLineItem {
|
|
|
3996
4001
|
* input props
|
|
3997
4002
|
*/
|
|
3998
4003
|
inputProps?: AtTextInputProps | AtNumberInputProps;
|
|
4004
|
+
/**
|
|
4005
|
+
* The props for loading state in input list
|
|
4006
|
+
*/
|
|
4007
|
+
loading?: boolean;
|
|
3999
4008
|
}
|
|
4000
4009
|
export interface OrFormItemsInlineProps {
|
|
4001
4010
|
inputs?: Array<OrFormInLineItem | Array<OrFormInLineItem | OrFormInLineItem[]>>;
|
|
@@ -4395,6 +4404,10 @@ export interface OrModuleCalendarHeaderProps {
|
|
|
4395
4404
|
* Handles date selection
|
|
4396
4405
|
*/
|
|
4397
4406
|
onSelectDate?: (value: Dayjs | null) => void;
|
|
4407
|
+
/**
|
|
4408
|
+
* Handles loading state
|
|
4409
|
+
*/
|
|
4410
|
+
loadingSearchFilter?: boolean;
|
|
4398
4411
|
}
|
|
4399
4412
|
export const OrModuleCalendarHeader: React.FC<OrModuleCalendarHeaderProps>;
|
|
4400
4413
|
export interface OrOneDataCardProps {
|
|
@@ -4455,7 +4468,7 @@ export interface TmCalendarPageProps<_RecordType = AnyObject, FormType = any> {
|
|
|
4455
4468
|
/**
|
|
4456
4469
|
* Loading status of table
|
|
4457
4470
|
*/
|
|
4458
|
-
loadingTable?:
|
|
4471
|
+
loadingTable?: boolean;
|
|
4459
4472
|
/**
|
|
4460
4473
|
* Config of pagination. You can ref table pagination config or full pagination document, hide it by setting it to false
|
|
4461
4474
|
*/
|
|
@@ -4698,8 +4711,12 @@ export interface TmCalendarPageProps<_RecordType = AnyObject, FormType = any> {
|
|
|
4698
4711
|
* Handles date selection
|
|
4699
4712
|
*/
|
|
4700
4713
|
onSelectDate?: (value: Dayjs | null) => void;
|
|
4714
|
+
/**
|
|
4715
|
+
* Handles loading state
|
|
4716
|
+
*/
|
|
4717
|
+
loadingSearchFilter?: boolean;
|
|
4701
4718
|
}
|
|
4702
|
-
export const TmCalendarPage: <RecordType extends AnyObject, FormType extends Store>({ formSteps, onValuesChange, onCloseLeftDrawer, leftDrawerContent, openLeftDrawer, buttonAddText, buttonIcon, buttonOnClick, open, currentFormStep, titleLeftDrawer, leftDrawerWidth, drawerContent, showDrawerContent, drawerTitle, drawerWidth, firstButtonText, secondButtonText, onClickFirstButton, onClickSecondButton, $margin, title, actionPopOverText, disabledButtons, handleCloseCallback, showFormStepper, onBack, events, resources, resourceTitle, displayDate, onChangeSegment, segmentOptions, columnsFilters, buttonsFilters, filterText, leftArrowOnOnClick, rightArrowOnOnClick, currentDate, onSelectResource, onSelectDate, }: TmCalendarPageProps<RecordType, FormType>) => import("react/jsx-runtime").JSX.Element;
|
|
4719
|
+
export const TmCalendarPage: <RecordType extends AnyObject, FormType extends Store>({ formSteps, onValuesChange, onCloseLeftDrawer, leftDrawerContent, openLeftDrawer, buttonAddText, buttonIcon, buttonOnClick, open, currentFormStep, titleLeftDrawer, leftDrawerWidth, drawerContent, showDrawerContent, drawerTitle, drawerWidth, firstButtonText, secondButtonText, onClickFirstButton, onClickSecondButton, $margin, title, actionPopOverText, disabledButtons, handleCloseCallback, showFormStepper, onBack, events, resources, resourceTitle, displayDate, onChangeSegment, segmentOptions, columnsFilters, buttonsFilters, filterText, leftArrowOnOnClick, rightArrowOnOnClick, currentDate, onSelectResource, loadingSearchFilter, onSelectDate, loadingTable, }: TmCalendarPageProps<RecordType, FormType>) => import("react/jsx-runtime").JSX.Element;
|
|
4703
4720
|
export interface MarkersArrayMap {
|
|
4704
4721
|
type: 'add' | 'oneWay' | 'return';
|
|
4705
4722
|
color?: OrMarkProps['color'];
|
|
@@ -6721,6 +6738,10 @@ export interface AtSelectProps {
|
|
|
6721
6738
|
* maxCount
|
|
6722
6739
|
*/
|
|
6723
6740
|
maxCount?: SelectProps['maxCount'];
|
|
6741
|
+
/**
|
|
6742
|
+
* spinner loading color
|
|
6743
|
+
*/
|
|
6744
|
+
loadingColor?: string;
|
|
6724
6745
|
}
|
|
6725
6746
|
export const AtSelect: React.FC<AtSelectProps>;
|
|
6726
6747
|
export interface AtSpinProps extends SpinProps {
|