enwawa-ui 4.1.24 → 4.1.26

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 CHANGED
@@ -2866,6 +2866,22 @@ export interface OrModuleCalendarHeaderProps {
2866
2866
  * Set validation status
2867
2867
  */
2868
2868
  atDatePickerValue?: DatePickerProps['value'];
2869
+ /**
2870
+ * Secondary button value
2871
+ */
2872
+ secondaryButtonValue?: string;
2873
+ /**
2874
+ * Secondary button onClick
2875
+ */
2876
+ secondaryButtonOnClick?: (React.MouseEventHandler<HTMLAnchorElement> & React.MouseEventHandler<HTMLButtonElement>) | undefined;
2877
+ /**
2878
+ * Icon for secondary button
2879
+ */
2880
+ secondaryButtonIcon?: string;
2881
+ /**
2882
+ * Tooltip for secondary button
2883
+ */
2884
+ secondaryButtonTooltip?: string;
2869
2885
  }
2870
2886
  export const OrModuleCalendarHeader: React.FC<OrModuleCalendarHeaderProps>;
2871
2887
  export interface ICustomButtons extends AtButtonProps {
@@ -3484,8 +3500,15 @@ export interface TmCalendarPageProps<_RecordType = AnyObject, FormType = any> {
3484
3500
  * Set validation value
3485
3501
  */
3486
3502
  atDatePickerValue?: DatePickerProps['value'];
3503
+ /**
3504
+ * Icon for secondary button
3505
+ */
3506
+ secondaryButtonIcon?: string;
3507
+ /** * Tooltip for secondary button
3508
+ */
3509
+ secondaryButtonTooltip?: string;
3487
3510
  }
3488
- 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, eventClickFunction, $margin, title, actionPopOverText, disabledButtons, handleCloseCallback, showFormStepper, onBack, events, resources, resourceTitle, displayDate, onChangeSegment, segmentOptions, columnsFilters, buttonsFilters, filterText, leftArrowOnOnClick, rightArrowOnOnClick, currentDate, onSelectResource, selectedResources, loadingSearchFilter, onSelectDate, onSelectedTimeRange, loadingTable, loadingDutyData, atTimeRangePickerValue, atDatePickerValue }: TmCalendarPageProps<RecordType, FormType>) => JSX.Element;
3511
+ 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, eventClickFunction, $margin, title, actionPopOverText, disabledButtons, handleCloseCallback, showFormStepper, onBack, events, resources, resourceTitle, displayDate, onChangeSegment, segmentOptions, columnsFilters, buttonsFilters, filterText, leftArrowOnOnClick, rightArrowOnOnClick, currentDate, onSelectResource, selectedResources, loadingSearchFilter, onSelectDate, onSelectedTimeRange, loadingTable, loadingDutyData, atTimeRangePickerValue, atDatePickerValue, secondaryButtonText, secondaryOnClick, secondaryButtonIcon, secondaryButtonTooltip, }: TmCalendarPageProps<RecordType, FormType>) => JSX.Element;
3489
3512
  export interface MarkersArrayMap {
3490
3513
  type: 'add' | 'oneWay' | 'return';
3491
3514
  color?: OrMarkProps['color'];
@@ -3692,7 +3715,7 @@ export interface TmCustomTabsPageProps<FormType = any> {
3692
3715
  /**
3693
3716
  * Main button label
3694
3717
  */
3695
- mainButtonLabel: string;
3718
+ mainButtonLabel?: string;
3696
3719
  /**
3697
3720
  * Secondary button label
3698
3721
  */
@@ -4231,7 +4254,7 @@ export const useModal: () => {
4231
4254
  destroy: () => void;
4232
4255
  update: (configUpdate: _ConfigUpdate1) => void;
4233
4256
  } & {
4234
- then<T>(resolve: (confirmed: boolean) => T, reject: VoidFunction): Promise<T>;
4257
+ then: <T>(resolve: (confirmed: boolean) => T, reject: VoidFunction) => Promise<T>;
4235
4258
  };
4236
4259
  setVariant: Dispatch<SetStateAction<"warning" | "info" | "error" | "confirm">>;
4237
4260
  contextHolder: ReactElement<any, string | JSXElementConstructor<any>>;
@@ -5258,6 +5281,8 @@ export interface OrFormInLineItem {
5258
5281
  items?: OrCollapseProps['items'];
5259
5282
  iconItems?: MlInfoListProps['items'];
5260
5283
  summaryDescriptionsProps?: OrDescriptionsProps;
5284
+ showTime?: AtDatePickerPros['showTime'];
5285
+ halfHourMinutes?: AtDatePickerPros['halfHourMinutes'];
5261
5286
  /**
5262
5287
  * Format of the date
5263
5288
  */
@@ -6304,7 +6329,7 @@ export interface OrTabsModuleLayoutProps<FormType = any> {
6304
6329
  /**
6305
6330
  * Main button label
6306
6331
  */
6307
- mainButtonLabel: string;
6332
+ mainButtonLabel?: string;
6308
6333
  /**
6309
6334
  * Secondary button label
6310
6335
  */
@@ -6467,7 +6492,7 @@ export interface AtDatePickerPros {
6467
6492
  /**
6468
6493
  * Show time on date
6469
6494
  */
6470
- showTime?: boolean;
6495
+ showTime?: DatePickerProps['showTime'];
6471
6496
  /**
6472
6497
  * To determine the size of the input box, the height of large and small, are 40px and 24px respectively, while default size is 32px
6473
6498
  */
@@ -6488,6 +6513,10 @@ export interface AtDatePickerPros {
6488
6513
  * set format on 12h
6489
6514
  */
6490
6515
  use12Hours?: boolean;
6516
+ /**
6517
+ * If true, minutes options are only 00 and 30; otherwise, 00 to 59
6518
+ */
6519
+ halfHourMinutes?: boolean;
6491
6520
  /**
6492
6521
  * The computed style of the svg element
6493
6522
  */