@capillarytech/blaze-ui 5.1.17 → 5.1.18

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 (45) hide show
  1. package/.DS_Store +0 -0
  2. package/CapCollapsibleNavbar/index.js +4 -1
  3. package/CapCollapsibleNavbar/index.js.map +1 -1
  4. package/CapCondition/index.js +4 -1
  5. package/CapCondition/index.js.map +1 -1
  6. package/CapDatePicker/index.js +4 -1
  7. package/CapDatePicker/index.js.map +1 -1
  8. package/CapDateTimePicker/README.md +136 -0
  9. package/CapDateTimePicker/index.d.ts +13 -0
  10. package/CapDateTimePicker/index.d.ts.map +1 -0
  11. package/CapDateTimePicker/index.js +97 -99
  12. package/CapDateTimePicker/index.js.map +1 -1
  13. package/CapDateTimePicker/messages.d.ts +9 -0
  14. package/CapDateTimePicker/messages.d.ts.map +1 -0
  15. package/CapDateTimePicker/types.d.ts +89 -0
  16. package/CapDateTimePicker/types.d.ts.map +1 -0
  17. package/CapDateTimeRangePicker/index.js +4 -1
  18. package/CapDateTimeRangePicker/index.js.map +1 -1
  19. package/CapEventCalendar/index.js +4 -1
  20. package/CapEventCalendar/index.js.map +1 -1
  21. package/CapLanguageProvider/index.js +4 -1
  22. package/CapLanguageProvider/index.js.map +1 -1
  23. package/CapNotificationDropdown/index.js +4 -1
  24. package/CapNotificationDropdown/index.js.map +1 -1
  25. package/CapReorderComponent/README.md +179 -0
  26. package/CapReorderComponent/Status.md +41 -0
  27. package/CapReorderComponent/index.d.ts +11 -0
  28. package/CapReorderComponent/index.d.ts.map +1 -0
  29. package/CapReorderComponent/index.js +48 -46
  30. package/CapReorderComponent/index.js.map +1 -1
  31. package/CapReorderComponent/types.d.ts +16 -0
  32. package/CapReorderComponent/types.d.ts.map +1 -0
  33. package/CapTimePicker/index.js +4 -1
  34. package/CapTimePicker/index.js.map +1 -1
  35. package/index.d.ts +4 -0
  36. package/index.d.ts.map +1 -1
  37. package/index.js +2207 -49
  38. package/index.js.map +1 -1
  39. package/package.json +1 -1
  40. package/utils/dayjs.d.ts +2 -0
  41. package/utils/dayjs.d.ts.map +1 -1
  42. package/utils/getCapThemeConfig.d.ts.map +1 -1
  43. package/utils/index.js +2 -0
  44. package/utils/index.js.map +1 -1
  45. package/.npmrc +0 -2
@@ -0,0 +1,9 @@
1
+ export declare const scope = "app.commonUtils.capUiLibrary.capDateTimePicker";
2
+ declare const _default: {
3
+ selectDateTimePlaceHolder: {
4
+ id: string;
5
+ defaultMessage: string;
6
+ };
7
+ };
8
+ export default _default;
9
+ //# sourceMappingURL=messages.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../components/CapDateTimePicker/messages.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,KAAK,mDAAmD,CAAC;;;;;;;AAEtE,wBAKG"}
@@ -0,0 +1,89 @@
1
+ import type { DatePickerProps } from 'antd-v5';
2
+ import type { Dayjs } from 'dayjs';
3
+ import type { Moment } from 'moment';
4
+ import React from 'react';
5
+ import type { WrappedComponentProps } from 'react-intl';
6
+ export interface CapDateTimePickerProps extends Omit<DatePickerProps<Dayjs>, 'value' | 'onChange' | 'cellRender' | 'popupClassName' | 'popupStyle' | 'getPopupContainer' | 'popupOpen' | 'onPopupOpenChange'> {
7
+ /**
8
+ * Selected datetime value (Dayjs, Moment, or ISO string)
9
+ */
10
+ value?: Dayjs | Moment | string | null;
11
+ /**
12
+ * Callback when datetime changes
13
+ * @param value - Dayjs or Moment object (matches input type) or null
14
+ * @param dateString - Formatted date string
15
+ */
16
+ onChange?: (value: Dayjs | Moment | null, dateString: string) => void;
17
+ /**
18
+ * Custom cell renderer for calendar cells (v6 API)
19
+ */
20
+ cellRender?: DatePickerProps<Dayjs>['cellRender'];
21
+ /**
22
+ * Timezone string (e.g., 'Asia/Kolkata')
23
+ * @default 'Asia/Kolkata'
24
+ */
25
+ timezone?: string;
26
+ /**
27
+ * Custom class name for the popup/dropdown (v6 API)
28
+ */
29
+ popupClassName?: string;
30
+ /**
31
+ * Custom style for the popup/dropdown (v6 API)
32
+ */
33
+ popupStyle?: React.CSSProperties;
34
+ /**
35
+ * Container for the popup (v6 API)
36
+ */
37
+ getPopupContainer?: (triggerNode: HTMLElement) => HTMLElement;
38
+ /**
39
+ * Whether the popup is open (v6 API)
40
+ */
41
+ popupOpen?: boolean;
42
+ /**
43
+ * Callback when popup open state changes (v6 API)
44
+ */
45
+ onPopupOpenChange?: (open: boolean) => void;
46
+ /**
47
+ * Custom cell renderer for calendar cells
48
+ * @deprecated Use `cellRender` instead. Will be removed in next major version.
49
+ */
50
+ dateRender?: (currentDate: Dayjs, today: Dayjs) => React.ReactNode;
51
+ /**
52
+ * Custom class name for the popup/dropdown
53
+ * @deprecated Use `popupClassName` instead. Will be removed in next major version.
54
+ */
55
+ dropdownClassName?: string;
56
+ /**
57
+ * Custom style for the popup/dropdown
58
+ * @deprecated Use `popupStyle` instead. Will be removed in next major version.
59
+ */
60
+ dropdownStyle?: React.CSSProperties;
61
+ /**
62
+ * Container for the calendar dropdown
63
+ * @deprecated Use `getPopupContainer` instead. Will be removed in next major version.
64
+ */
65
+ getCalendarContainer?: (triggerNode: HTMLElement) => HTMLElement;
66
+ /**
67
+ * Whether the dropdown is open
68
+ * @deprecated Use `popupOpen` instead. Will be removed in next major version.
69
+ */
70
+ open?: boolean;
71
+ /**
72
+ * Callback when dropdown open state changes
73
+ * @deprecated Use `onPopupOpenChange` instead. Will be removed in next major version.
74
+ */
75
+ onOpenChange?: (open: boolean) => void;
76
+ /**
77
+ * Whether to show today button
78
+ * @deprecated This prop is deprecated. Today button behavior is now handled internally by Ant Design.
79
+ */
80
+ showToday?: boolean;
81
+ /**
82
+ * Render extra footer in calendar panel
83
+ * @deprecated This prop is discouraged. Consider using custom panel components instead.
84
+ */
85
+ renderExtraFooter?: () => React.ReactNode;
86
+ }
87
+ /** Internal-only: adds react-intl's injected `intl` prop to the public props */
88
+ export type InternalProps = CapDateTimePickerProps & WrappedComponentProps;
89
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../components/CapDateTimePicker/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AACnC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAExD,MAAM,WAAW,sBACf,SAAQ,IAAI,CACV,eAAe,CAAC,KAAK,CAAC,EACpB,OAAO,GACP,UAAU,GACV,YAAY,GACZ,gBAAgB,GAChB,YAAY,GACZ,mBAAmB,GACnB,WAAW,GACX,mBAAmB,CACtB;IACD;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IAEvC;;;;OAIG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM,GAAG,IAAI,EAAE,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;IAEtE;;OAEG;IACH,UAAU,CAAC,EAAE,eAAe,CAAC,KAAK,CAAC,CAAC,YAAY,CAAC,CAAC;IAElD;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,UAAU,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAEjC;;OAEG;IACH,iBAAiB,CAAC,EAAE,CAAC,WAAW,EAAE,WAAW,KAAK,WAAW,CAAC;IAE9D;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,iBAAiB,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IAE5C;;;OAGG;IACH,UAAU,CAAC,EAAE,CAAC,WAAW,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,KAAK,KAAK,CAAC,SAAS,CAAC;IAEnE;;;OAGG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B;;;OAGG;IACH,aAAa,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAEpC;;;OAGG;IACH,oBAAoB,CAAC,EAAE,CAAC,WAAW,EAAE,WAAW,KAAK,WAAW,CAAC;IAEjE;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IAEf;;;OAGG;IACH,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IAEvC;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,MAAM,KAAK,CAAC,SAAS,CAAC;CAC3C;AAED,gFAAgF;AAChF,MAAM,MAAM,aAAa,GAAG,sBAAsB,GAAG,qBAAqB,CAAC"}
@@ -3826,7 +3826,7 @@ var _default = exports["default"] = SvgFile;
3826
3826
 
3827
3827
 
3828
3828
  exports.__esModule = true;
3829
- exports.TIME_UNITS = exports.FORMAT_TOKENS = void 0;
3829
+ exports.TIME_UNITS = exports.FORMAT_TOKENS = exports.DEFAULT_TIMEZONE = void 0;
3830
3830
  exports.dayjsToMoment = dayjsToMoment;
3831
3831
  exports["default"] = void 0;
3832
3832
  exports.hasMomentTimezoneSupport = hasMomentTimezoneSupport;
@@ -4022,6 +4022,8 @@ const FORMAT_TOKENS = exports.FORMAT_TOKENS = {
4022
4022
  MONTH_FULL: 'MMMM',
4023
4023
  YEAR: 'YYYY',
4024
4024
  YEAR_SHORT: 'YY',
4025
+ // Cap UI datetime picker format (DD-MM-YYYY | HH:mm)
4026
+ DATE_TIME: 'DD-MM-YYYY | HH:mm',
4025
4027
  // Localized formats
4026
4028
  DATE_LOCALIZED_SHORT: 'l',
4027
4029
  DATETIME_LOCALIZED_SHORT: 'll',
@@ -4032,6 +4034,7 @@ const FORMAT_TOKENS = exports.FORMAT_TOKENS = {
4032
4034
  DATETIME_LOCALIZED_LONG_TIME: 'LLL',
4033
4035
  DATETIME_LOCALIZED_LONG_TIME_WEEKDAY: 'LLLL'
4034
4036
  };
4037
+ const DEFAULT_TIMEZONE = exports.DEFAULT_TIMEZONE = 'Asia/Kolkata';
4035
4038
  function logDevError(message, error) {
4036
4039
  if (false) // removed by dead control flow
4037
4040
  {}