@capillarytech/blaze-ui 6.2.0 → 6.4.0
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/CapDateRangePicker/index.d.ts.map +1 -1
- package/CapDateRangePicker/index.js +1 -5
- package/CapDateRangePicker/styles.css +0 -28
- package/CapDateRangePicker/styles.module.scss.js +1 -2
- package/CapDateRangePicker/styles.scss +0 -37
- package/CapDateRangePicker/types.d.ts +0 -5
- package/CapDateRangePicker/types.d.ts.map +1 -1
- package/CapDragAndDrop/index.d.ts +3 -19
- package/CapDragAndDrop/index.d.ts.map +1 -1
- package/CapDragAndDrop/index.js +24 -29
- package/CapDragAndDrop/messages.d.ts +25 -0
- package/CapDragAndDrop/messages.d.ts.map +1 -0
- package/CapDragAndDrop/messages.js +28 -0
- package/CapDragAndDrop/styles.css +17 -15
- package/CapDragAndDrop/styles.module.scss.js +21 -0
- package/CapDragAndDrop/styles.scss +18 -16
- package/CapDragAndDrop/types.d.ts +17 -0
- package/CapDragAndDrop/types.d.ts.map +1 -0
- package/CapMobileDateRangePicker/index.d.ts +21 -5
- package/CapMobileDateRangePicker/index.d.ts.map +1 -1
- package/CapMobileDateRangePicker/index.js +309 -262
- package/CapMobileDateRangePicker/styles.css +144 -107
- package/CapMobileDateRangePicker/styles.scss +192 -188
- package/CapTimeline/CapTimelineCard.d.ts +4 -27
- package/CapTimeline/CapTimelineCard.d.ts.map +1 -1
- package/CapTimeline/CapTimelineCard.js +40 -157
- package/CapTimeline/CapTimelinePanesWrapper.d.ts +4 -25
- package/CapTimeline/CapTimelinePanesWrapper.d.ts.map +1 -1
- package/CapTimeline/CapTimelinePanesWrapper.js +24 -20
- package/CapTimeline/index.d.ts +2 -17
- package/CapTimeline/index.d.ts.map +1 -1
- package/CapTimeline/index.js +62 -23
- package/CapTimeline/messages.d.ts +21 -0
- package/CapTimeline/messages.d.ts.map +1 -0
- package/CapTimeline/messages.js +24 -0
- package/CapTimeline/styles.css +40 -40
- package/CapTimeline/styles.module.scss.js +30 -0
- package/CapTimeline/styles.scss +76 -57
- package/CapTimeline/tests/CapTimeline.mockData.d.ts +14 -0
- package/CapTimeline/tests/CapTimeline.mockData.d.ts.map +1 -0
- package/CapTimeline/types.d.ts +60 -0
- package/CapTimeline/types.d.ts.map +1 -0
- package/CapTimeline/types.js +1 -0
- package/index.d.ts +4 -2
- package/index.d.ts.map +1 -1
- package/index.js +99 -97
- package/package.json +1 -1
- package/utils/dayjs.d.ts +0 -29
- package/utils/dayjs.d.ts.map +1 -1
- package/utils/dayjs.js +0 -30
- package/utils/getCapThemeConfig.d.ts.map +1 -1
- package/utils/getCapThemeConfig.js +9 -1
- package/CapMobileDateRangePicker/DateRangeInputSelectors.d.ts +0 -7
- package/CapMobileDateRangePicker/DateRangeInputSelectors.d.ts.map +0 -1
- package/CapMobileDateRangePicker/DateRangeInputSelectors.js +0 -68
- package/CapMobileDateRangePicker/messages.d.ts +0 -17
- package/CapMobileDateRangePicker/messages.d.ts.map +0 -1
- package/CapMobileDateRangePicker/messages.js +0 -20
- package/CapMobileDateRangePicker/styles.module.scss.js +0 -21
- package/CapMobileDateRangePicker/tests/CapMobileDateRangePicker.mockData.d.ts +0 -18
- package/CapMobileDateRangePicker/tests/CapMobileDateRangePicker.mockData.d.ts.map +0 -1
- package/CapMobileDateRangePicker/types.d.ts +0 -95
- package/CapMobileDateRangePicker/types.d.ts.map +0 -1
- package/CapVirtualSelect/actions.d.ts +0 -16
- package/CapVirtualSelect/actions.d.ts.map +0 -1
- package/CapVirtualSelect/actions.js +0 -21
- package/CapVirtualSelect/constants.d.ts +0 -13
- package/CapVirtualSelect/constants.d.ts.map +0 -1
- package/CapVirtualSelect/constants.js +0 -26
- package/CapVirtualSelect/index.d.ts +0 -169
- package/CapVirtualSelect/index.d.ts.map +0 -1
- package/CapVirtualSelect/index.js +0 -409
- package/CapVirtualSelect/messages.d.ts +0 -9
- package/CapVirtualSelect/messages.d.ts.map +0 -1
- package/CapVirtualSelect/messages.js +0 -12
- package/CapVirtualSelect/reducer.d.ts +0 -4
- package/CapVirtualSelect/reducer.d.ts.map +0 -1
- package/CapVirtualSelect/reducer.js +0 -63
- package/CapVirtualSelect/saga.d.ts +0 -40
- package/CapVirtualSelect/saga.d.ts.map +0 -1
- package/CapVirtualSelect/saga.js +0 -91
- package/CapVirtualSelect/selectors.d.ts +0 -28
- package/CapVirtualSelect/selectors.d.ts.map +0 -1
- package/CapVirtualSelect/selectors.js +0 -30
- package/CapVirtualSelect/styles.css +0 -110
- package/CapVirtualSelect/styles.scss +0 -106
- package/CapVirtualSelect/tests/mockData.d.ts +0 -7
- package/CapVirtualSelect/tests/mockData.d.ts.map +0 -1
- package/CapVirtualSelect/utils.d.ts +0 -2
- package/CapVirtualSelect/utils.d.ts.map +0 -1
- package/CapVirtualSelect/utils.js +0 -12
- /package/{CapMobileDateRangePicker → CapDragAndDrop}/types.js +0 -0
package/utils/dayjs.d.ts
CHANGED
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import dayjs from 'dayjs';
|
|
2
2
|
import { Moment } from 'moment';
|
|
3
|
-
export declare const RANGE_PICKER: {
|
|
4
|
-
readonly START_DATE: "startDate";
|
|
5
|
-
readonly END_DATE: "endDate";
|
|
6
|
-
};
|
|
7
3
|
export declare const TIME_UNITS: {
|
|
8
4
|
readonly UTC: "UTC";
|
|
9
5
|
readonly LOCAL: "local";
|
|
@@ -51,33 +47,8 @@ export declare const FORMAT_TOKENS: {
|
|
|
51
47
|
readonly DATETIME_LOCALIZED_LONG_TIME: "LLL";
|
|
52
48
|
readonly DATETIME_LOCALIZED_LONG_TIME_WEEKDAY: "LLLL";
|
|
53
49
|
};
|
|
54
|
-
export declare const MONTH_MAP: {
|
|
55
|
-
readonly 1: "Jan";
|
|
56
|
-
readonly 2: "Feb";
|
|
57
|
-
readonly 3: "Mar";
|
|
58
|
-
readonly 4: "Apr";
|
|
59
|
-
readonly 5: "May";
|
|
60
|
-
readonly 6: "Jun";
|
|
61
|
-
readonly 7: "Jul";
|
|
62
|
-
readonly 8: "Aug";
|
|
63
|
-
readonly 9: "Sep";
|
|
64
|
-
readonly 10: "Oct";
|
|
65
|
-
readonly 11: "Nov";
|
|
66
|
-
readonly 12: "Dec";
|
|
67
|
-
};
|
|
68
|
-
export declare const WEEKDAY_MAP: {
|
|
69
|
-
readonly 0: "Sun";
|
|
70
|
-
readonly 1: "Mon";
|
|
71
|
-
readonly 2: "Tue";
|
|
72
|
-
readonly 3: "Wed";
|
|
73
|
-
readonly 4: "Thu";
|
|
74
|
-
readonly 5: "Fri";
|
|
75
|
-
readonly 6: "Sat";
|
|
76
|
-
};
|
|
77
50
|
export type TimeUnit = (typeof TIME_UNITS)[keyof typeof TIME_UNITS];
|
|
78
51
|
export type FormatToken = (typeof FORMAT_TOKENS)[keyof typeof FORMAT_TOKENS];
|
|
79
|
-
export type Month = (typeof MONTH_MAP)[keyof typeof MONTH_MAP];
|
|
80
|
-
export type Weekday = (typeof WEEKDAY_MAP)[keyof typeof WEEKDAY_MAP];
|
|
81
52
|
export declare const DEFAULT_TIMEZONE = "Asia/Kolkata";
|
|
82
53
|
export declare function normalizeDateValue(isConsumerUsingMoment: boolean, parsedValue: dayjs.Dayjs | Moment | null | undefined): dayjs.Dayjs | Moment;
|
|
83
54
|
export declare function isDayjsObject(value: unknown): value is dayjs.Dayjs;
|
package/utils/dayjs.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dayjs.d.ts","sourceRoot":"","sources":["../../components/utils/dayjs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAqB1B,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAyIhC,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"dayjs.d.ts","sourceRoot":"","sources":["../../components/utils/dayjs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAqB1B,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAyIhC,eAAO,MAAM,UAAU;;;;;;;;;;;;CAYb,CAAC;AAEX,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0ChB,CAAC;AAEX,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,OAAO,UAAU,CAAC,CAAC;AACpE,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,OAAO,aAAa,CAAC,CAAC;AAE7E,eAAO,MAAM,gBAAgB,iBAAiB,CAAC;AAQ/C,wBAAgB,kBAAkB,CAChC,qBAAqB,EAAE,OAAO,EAC9B,WAAW,EAAE,KAAK,CAAC,KAAK,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,wBAKrD;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,KAAK,CAAC,KAAK,CAElE;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,MAAM,CAE9D;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAE/D;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAGH,wBAAgB,aAAa,CAC3B,KAAK,EAAE,MAAM,GAAG,KAAK,CAAC,KAAK,GAAG,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,SAAS,GAC7D,KAAK,CAAC,KAAK,GAAG,IAAI,CAoFpB;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,MAAM,GAAG,KAAK,CAAC,KAAK,GAAG,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,SAAS,EAC9D,QAAQ,EAAE,MAAM,GACf,KAAK,CAAC,KAAK,GAAG,IAAI,CASpB;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,KAAK,CAAC,KAAK,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,GAAG,IAAI,CAqD3F;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,iBAAiB,CAC/B,UAAU,EAAE,CAAC,KAAK,CAAC,KAAK,GAAG,MAAM,GAAG,IAAI,EAAE,KAAK,CAAC,KAAK,GAAG,MAAM,GAAG,IAAI,CAAC,GAAG,IAAI,GAAG,SAAS,GACxF,CAAC,KAAK,CAAC,KAAK,GAAG,IAAI,EAAE,KAAK,CAAC,KAAK,GAAG,IAAI,CAAC,GAAG,SAAS,CAGtD;AAED,eAAe,KAAK,CAAC"}
|
package/utils/dayjs.js
CHANGED
|
@@ -109,10 +109,6 @@ dayjs.extend(weekOfYear);
|
|
|
109
109
|
dayjs.extend(weekYear);
|
|
110
110
|
dayjs.extend(isoWeek);
|
|
111
111
|
dayjs.extend(localeData);
|
|
112
|
-
const RANGE_PICKER = {
|
|
113
|
-
START_DATE: "startDate",
|
|
114
|
-
END_DATE: "endDate"
|
|
115
|
-
};
|
|
116
112
|
const TIME_UNITS = {
|
|
117
113
|
UTC: "UTC",
|
|
118
114
|
LOCAL: "local",
|
|
@@ -165,29 +161,6 @@ const FORMAT_TOKENS = {
|
|
|
165
161
|
DATETIME_LOCALIZED_LONG_TIME: "LLL",
|
|
166
162
|
DATETIME_LOCALIZED_LONG_TIME_WEEKDAY: "LLLL"
|
|
167
163
|
};
|
|
168
|
-
const MONTH_MAP = {
|
|
169
|
-
1: "Jan",
|
|
170
|
-
2: "Feb",
|
|
171
|
-
3: "Mar",
|
|
172
|
-
4: "Apr",
|
|
173
|
-
5: "May",
|
|
174
|
-
6: "Jun",
|
|
175
|
-
7: "Jul",
|
|
176
|
-
8: "Aug",
|
|
177
|
-
9: "Sep",
|
|
178
|
-
10: "Oct",
|
|
179
|
-
11: "Nov",
|
|
180
|
-
12: "Dec"
|
|
181
|
-
};
|
|
182
|
-
const WEEKDAY_MAP = {
|
|
183
|
-
0: "Sun",
|
|
184
|
-
1: "Mon",
|
|
185
|
-
2: "Tue",
|
|
186
|
-
3: "Wed",
|
|
187
|
-
4: "Thu",
|
|
188
|
-
5: "Fri",
|
|
189
|
-
6: "Sat"
|
|
190
|
-
};
|
|
191
164
|
const DEFAULT_TIMEZONE = "Asia/Kolkata";
|
|
192
165
|
function logDevError(message, error) {
|
|
193
166
|
if (process.env.NODE_ENV === "development") {
|
|
@@ -312,10 +285,7 @@ function convertRangeValue(rangeValue) {
|
|
|
312
285
|
export {
|
|
313
286
|
DEFAULT_TIMEZONE,
|
|
314
287
|
FORMAT_TOKENS,
|
|
315
|
-
MONTH_MAP,
|
|
316
|
-
RANGE_PICKER,
|
|
317
288
|
TIME_UNITS,
|
|
318
|
-
WEEKDAY_MAP,
|
|
319
289
|
convertRangeValue,
|
|
320
290
|
dayjsToMoment,
|
|
321
291
|
default2 as default,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getCapThemeConfig.d.ts","sourceRoot":"","sources":["../../components/utils/getCapThemeConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAmEtC;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAGH,wBAAgB,iBAAiB,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,GAAG,WAAW,
|
|
1
|
+
{"version":3,"file":"getCapThemeConfig.d.ts","sourceRoot":"","sources":["../../components/utils/getCapThemeConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAmEtC;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAGH,wBAAgB,iBAAiB,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,GAAG,WAAW,CAyU7E"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { merge } from "lodash";
|
|
2
|
-
import { CAP_SECONDARY, CAP_PRIMARY, CAP_G09, CAP_WHITE, FONT_COLOR_01, CAP_G06, CAP_COLOR_08, CAP_G05,
|
|
2
|
+
import { CAP_SECONDARY, CAP_PRIMARY, CAP_G09, CAP_WHITE, FONT_COLOR_01, CAP_G07, CAP_G06, CAP_COLOR_08, CAP_G05, FONT_COLOR_04, FONT_WEIGHT_MEDIUM, BG_01, CAP_G08, CAP_G01, CAP_G11, CAP_G04, CAP_G03, CAP_G10, CAP_RED, FONT_COLOR_03, FONT_COLOR_02, CAP_COLOR_05, CAP_COLOR_03, CAP_COLOR_02, CAP_COLOR_10, CAP_COLOR_04, CAP_COLOR_11, CAP_COLOR_01, CAP_COLOR_06, FONT_FAMILY, CAP_COLOR_26, CAP_COLOR_15, CAP_COLOR_14, SPACING_32, FONT_SIZE_L, DEFAULT_LINE_HEIGHT, FONT_SIZE_M, SPACING_08, SPACING_24, RADIUS_04, SPACING_16, RADIUS_08, INPUT_HEIGHT, BUTTON_HEIGHT, FONT_SIZE_S, SPACING_12, FONT_SIZE_VL } from "../styles/_variables.js";
|
|
3
3
|
function getRootFontSize() {
|
|
4
4
|
if (typeof window === "undefined" || typeof document === "undefined") {
|
|
5
5
|
return 14;
|
|
@@ -323,6 +323,14 @@ function getCapThemeConfig(options) {
|
|
|
323
323
|
activeBorderColor: CAP_G06,
|
|
324
324
|
activeShadow: "transparent"
|
|
325
325
|
},
|
|
326
|
+
// Timeline component tokens (for CapTimeline)
|
|
327
|
+
Timeline: {
|
|
328
|
+
tailColor: CAP_G07,
|
|
329
|
+
tailWidth: 2,
|
|
330
|
+
dotBorderWidth: 1,
|
|
331
|
+
itemPaddingBottom: 0,
|
|
332
|
+
customDotTop: 20
|
|
333
|
+
},
|
|
326
334
|
// Tree component tokens (for CapTreeView)
|
|
327
335
|
Tree: {
|
|
328
336
|
colorText: FONT_COLOR_01,
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { DateRangeInputSelectorsProps, IntlShape } from './types';
|
|
3
|
-
declare const _default: React.ComponentType<Omit<DateRangeInputSelectorsProps & {
|
|
4
|
-
intl: IntlShape;
|
|
5
|
-
}, "intl">>;
|
|
6
|
-
export default _default;
|
|
7
|
-
//# sourceMappingURL=DateRangeInputSelectors.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DateRangeInputSelectors.d.ts","sourceRoot":"","sources":["../../components/CapMobileDateRangePicker/DateRangeInputSelectors.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAY1B,OAAO,KAAK,EAAE,4BAA4B,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;;UAIQ,SAAS;;AAuDxF,wBAAmD"}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import classNames from "classnames";
|
|
3
|
-
import moment from "moment";
|
|
4
|
-
import { injectIntl } from "react-intl";
|
|
5
|
-
import { RANGE_PICKER } from "../utils/dayjs.js";
|
|
6
|
-
import CapColumn from "../CapColumn/index.js";
|
|
7
|
-
import InputFinal from "../CapInput/index.js";
|
|
8
|
-
import CapLabelWithStatic from "../CapLabel/index.js";
|
|
9
|
-
import CapRow from "../CapRow/index.js";
|
|
10
|
-
import messages from "./messages.js";
|
|
11
|
-
import styles from "./styles.module.scss.js";
|
|
12
|
-
import { clsPrefix } from "./index.js";
|
|
13
|
-
const DateRangeInputSelectors = ({
|
|
14
|
-
intl: { formatMessage },
|
|
15
|
-
focusedInput,
|
|
16
|
-
startDate,
|
|
17
|
-
endDate,
|
|
18
|
-
dateDisplayFormat,
|
|
19
|
-
handleStartDateClick,
|
|
20
|
-
handleEndDateClick,
|
|
21
|
-
showPlaceholders = false
|
|
22
|
-
}) => {
|
|
23
|
-
return /* @__PURE__ */ jsxs(CapRow, { className: styles[`${clsPrefix}-inputs`], children: [
|
|
24
|
-
/* @__PURE__ */ jsxs(CapColumn, { span: 10, children: [
|
|
25
|
-
showPlaceholders && /* @__PURE__ */ jsx(CapLabelWithStatic, { className: styles[`${clsPrefix}-inputs-label`], children: formatMessage(messages.startDate) }),
|
|
26
|
-
/* @__PURE__ */ jsx(
|
|
27
|
-
InputFinal,
|
|
28
|
-
{
|
|
29
|
-
className: classNames({
|
|
30
|
-
[styles[`${clsPrefix}-inputs-focused`]]: focusedInput === RANGE_PICKER.START_DATE
|
|
31
|
-
}),
|
|
32
|
-
value: moment(startDate).format(dateDisplayFormat),
|
|
33
|
-
size: "middle",
|
|
34
|
-
readOnly: true,
|
|
35
|
-
onClick: handleStartDateClick
|
|
36
|
-
}
|
|
37
|
-
)
|
|
38
|
-
] }),
|
|
39
|
-
/* @__PURE__ */ jsx(
|
|
40
|
-
CapColumn,
|
|
41
|
-
{
|
|
42
|
-
className: classNames(styles[`${clsPrefix}-inputs-date-range-hyphen`], {
|
|
43
|
-
[styles[`${clsPrefix}-inputs-date-range-hyphen-vertical-align`]]: showPlaceholders
|
|
44
|
-
}),
|
|
45
|
-
children: "-"
|
|
46
|
-
}
|
|
47
|
-
),
|
|
48
|
-
/* @__PURE__ */ jsxs(CapColumn, { span: 10, children: [
|
|
49
|
-
showPlaceholders && /* @__PURE__ */ jsx(CapLabelWithStatic, { className: styles[`${clsPrefix}-inputs-label`], children: formatMessage(messages.endDate) }),
|
|
50
|
-
/* @__PURE__ */ jsx(
|
|
51
|
-
InputFinal,
|
|
52
|
-
{
|
|
53
|
-
className: classNames({
|
|
54
|
-
[styles[`${clsPrefix}-inputs-focused`]]: focusedInput === RANGE_PICKER.END_DATE
|
|
55
|
-
}),
|
|
56
|
-
value: moment(endDate).format(dateDisplayFormat),
|
|
57
|
-
size: "middle",
|
|
58
|
-
readOnly: true,
|
|
59
|
-
onClick: handleEndDateClick
|
|
60
|
-
}
|
|
61
|
-
)
|
|
62
|
-
] })
|
|
63
|
-
] });
|
|
64
|
-
};
|
|
65
|
-
const DateRangeInputSelectors_default = injectIntl(DateRangeInputSelectors);
|
|
66
|
-
export {
|
|
67
|
-
DateRangeInputSelectors_default as default
|
|
68
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export declare const scope = "app.commonUtils.capUiLibrary.CapMobileDateRangePicker";
|
|
2
|
-
declare const _default: {
|
|
3
|
-
startDate: {
|
|
4
|
-
id: string;
|
|
5
|
-
defaultMessage: string;
|
|
6
|
-
};
|
|
7
|
-
endDate: {
|
|
8
|
-
id: string;
|
|
9
|
-
defaultMessage: string;
|
|
10
|
-
};
|
|
11
|
-
datePicker: {
|
|
12
|
-
id: string;
|
|
13
|
-
defaultMessage: string;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
export default _default;
|
|
17
|
-
//# sourceMappingURL=messages.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../components/CapMobileDateRangePicker/messages.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,KAAK,0DAA0D,CAAC;;;;;;;;;;;;;;;AAE7E,wBAaG"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { defineMessages } from "react-intl";
|
|
2
|
-
const scope = "app.commonUtils.capUiLibrary.CapMobileDateRangePicker";
|
|
3
|
-
const messages = defineMessages({
|
|
4
|
-
startDate: {
|
|
5
|
-
id: `${scope}.startDate`,
|
|
6
|
-
defaultMessage: "Start Date"
|
|
7
|
-
},
|
|
8
|
-
endDate: {
|
|
9
|
-
id: `${scope}.endDate`,
|
|
10
|
-
defaultMessage: "End Date"
|
|
11
|
-
},
|
|
12
|
-
datePicker: {
|
|
13
|
-
id: `${scope}.datePicker`,
|
|
14
|
-
defaultMessage: "Date picker"
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
export {
|
|
18
|
-
messages as default,
|
|
19
|
-
scope
|
|
20
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import './styles.css';const styles = {
|
|
2
|
-
"cap-mobile-date-range-picker-modal-header": "cap-mobile-date-range-picker-modal-header",
|
|
3
|
-
"cap-mobile-date-range-picker-modal-footer": "cap-mobile-date-range-picker-modal-footer",
|
|
4
|
-
"cap-mobile-date-range-picker-modal-footer-cancel-button": "cap-mobile-date-range-picker-modal-footer-cancel-button",
|
|
5
|
-
"cap-mobile-date-range-picker-modal-footer-done-button": "cap-mobile-date-range-picker-modal-footer-done-button",
|
|
6
|
-
"cap-mobile-date-range-picker-divider": "cap-mobile-date-range-picker-divider",
|
|
7
|
-
"cap-mobile-date-range-picker-inputs": "cap-mobile-date-range-picker-inputs",
|
|
8
|
-
"cap-mobile-date-range-picker-inputs-date-range-hyphen": "cap-mobile-date-range-picker-inputs-date-range-hyphen",
|
|
9
|
-
"cap-mobile-date-range-picker-inputs-date-range-hyphen-vertical-align": "cap-mobile-date-range-picker-inputs-date-range-hyphen-vertical-align",
|
|
10
|
-
"cap-mobile-date-range-picker-inputs-label": "cap-mobile-date-range-picker-inputs-label",
|
|
11
|
-
"cap-mobile-date-range-picker-inputs-focused": "cap-mobile-date-range-picker-inputs-focused",
|
|
12
|
-
"cap-mobile-date-range-picker-reset-button": "cap-mobile-date-range-picker-reset-button",
|
|
13
|
-
"cap-mobile-date-range-picker-switch-label": "cap-mobile-date-range-picker-switch-label",
|
|
14
|
-
"cap-mobile-date-range-picker-calender-only": "cap-mobile-date-range-picker-calender-only",
|
|
15
|
-
"cap-mobile-date-range-picker-scroller-datepicker": "cap-mobile-date-range-picker-scroller-datepicker",
|
|
16
|
-
"cap-mobile-date-range-picker-compare-mobile-date-picker": "cap-mobile-date-range-picker-compare-mobile-date-picker",
|
|
17
|
-
"cap-mobile-date-range-picker-compare-mobile-date-range-picker": "cap-mobile-date-range-picker-compare-mobile-date-range-picker"
|
|
18
|
-
};
|
|
19
|
-
export {
|
|
20
|
-
styles as default
|
|
21
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import moment from 'moment';
|
|
2
|
-
import type { CapMobileDateRangePickerProps } from '../types';
|
|
3
|
-
export declare const mockDates: {
|
|
4
|
-
today: moment.Moment;
|
|
5
|
-
tomorrow: moment.Moment;
|
|
6
|
-
yesterday: moment.Moment;
|
|
7
|
-
nextWeek: moment.Moment;
|
|
8
|
-
lastWeek: moment.Moment;
|
|
9
|
-
minDate: moment.Moment;
|
|
10
|
-
maxDate: moment.Moment;
|
|
11
|
-
startDate: moment.Moment;
|
|
12
|
-
endDate: moment.Moment;
|
|
13
|
-
sameDate: moment.Moment;
|
|
14
|
-
beforeMin: moment.Moment;
|
|
15
|
-
afterMax: moment.Moment;
|
|
16
|
-
};
|
|
17
|
-
export declare const mockProps: Record<string, Partial<CapMobileDateRangePickerProps>>;
|
|
18
|
-
//# sourceMappingURL=CapMobileDateRangePicker.mockData.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CapMobileDateRangePicker.mockData.d.ts","sourceRoot":"","sources":["../../../components/CapMobileDateRangePicker/tests/CapMobileDateRangePicker.mockData.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,QAAQ,CAAC;AAE5B,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,UAAU,CAAC;AAE9D,eAAO,MAAM,SAAS;;;;;;;;;;;;;CAarB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,6BAA6B,CAAC,CAoD5E,CAAC"}
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import type { Moment } from 'moment';
|
|
2
|
-
import type { IntlShape } from 'react-intl';
|
|
3
|
-
export type { IntlShape };
|
|
4
|
-
export type FocusedInputType = 'startDate' | 'endDate';
|
|
5
|
-
export interface DateConfigItem {
|
|
6
|
-
format: string | ((value: Date) => string);
|
|
7
|
-
caption: string;
|
|
8
|
-
step: number;
|
|
9
|
-
}
|
|
10
|
-
export interface DateConfig {
|
|
11
|
-
date: DateConfigItem;
|
|
12
|
-
month: DateConfigItem;
|
|
13
|
-
year: DateConfigItem;
|
|
14
|
-
}
|
|
15
|
-
export interface DateRange {
|
|
16
|
-
start: Moment;
|
|
17
|
-
end: Moment;
|
|
18
|
-
}
|
|
19
|
-
export interface CapMobileDateRangePickerProps {
|
|
20
|
-
intl: IntlShape;
|
|
21
|
-
/**
|
|
22
|
-
* Text for the cancel action in the modal footer
|
|
23
|
-
*/
|
|
24
|
-
cancelText?: string;
|
|
25
|
-
/**
|
|
26
|
-
* Text for the reset action
|
|
27
|
-
*/
|
|
28
|
-
resetText?: string;
|
|
29
|
-
/**
|
|
30
|
-
* Display format for dates in the input fields
|
|
31
|
-
*/
|
|
32
|
-
dateDisplayFormat?: string;
|
|
33
|
-
/**
|
|
34
|
-
* Text for the OK button
|
|
35
|
-
*/
|
|
36
|
-
yesText?: string;
|
|
37
|
-
/**
|
|
38
|
-
* Text for the cancel button
|
|
39
|
-
*/
|
|
40
|
-
noText?: string;
|
|
41
|
-
/**
|
|
42
|
-
* Text for the done action in the modal footer
|
|
43
|
-
*/
|
|
44
|
-
doneText?: string;
|
|
45
|
-
/**
|
|
46
|
-
* Start date of the range (moment object)
|
|
47
|
-
*/
|
|
48
|
-
startDate: Moment;
|
|
49
|
-
/**
|
|
50
|
-
* End date of the range (moment object)
|
|
51
|
-
*/
|
|
52
|
-
endDate: Moment;
|
|
53
|
-
/**
|
|
54
|
-
* Minimum selectable date (moment object)
|
|
55
|
-
*/
|
|
56
|
-
minDate: Moment;
|
|
57
|
-
/**
|
|
58
|
-
* Maximum selectable date (moment object)
|
|
59
|
-
*/
|
|
60
|
-
maxDate: Moment;
|
|
61
|
-
/**
|
|
62
|
-
* Type of date picker ('compare' enables compare styling)
|
|
63
|
-
*/
|
|
64
|
-
type?: string;
|
|
65
|
-
/**
|
|
66
|
-
* Minimum number of nights for range selection
|
|
67
|
-
*/
|
|
68
|
-
minimumNights?: number;
|
|
69
|
-
/**
|
|
70
|
-
* Callback when the user confirms the date range
|
|
71
|
-
*/
|
|
72
|
-
onDone: (dateRange: DateRange) => void;
|
|
73
|
-
/**
|
|
74
|
-
* Text for switching to scroller view
|
|
75
|
-
*/
|
|
76
|
-
switchBackToScrollerText?: string;
|
|
77
|
-
/**
|
|
78
|
-
* Text for switching to calendar view
|
|
79
|
-
*/
|
|
80
|
-
switchBackToCalenderText?: string;
|
|
81
|
-
/**
|
|
82
|
-
* Title of the modal
|
|
83
|
-
*/
|
|
84
|
-
title?: string;
|
|
85
|
-
}
|
|
86
|
-
export interface DateRangeInputSelectorsProps {
|
|
87
|
-
focusedInput: string;
|
|
88
|
-
startDate: Moment;
|
|
89
|
-
endDate: Moment;
|
|
90
|
-
dateDisplayFormat: string;
|
|
91
|
-
handleStartDateClick: () => void;
|
|
92
|
-
handleEndDateClick: () => void;
|
|
93
|
-
showPlaceholders?: boolean;
|
|
94
|
-
}
|
|
95
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../components/CapMobileDateRangePicker/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AACrC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,YAAY,EAAE,SAAS,EAAE,CAAC;AAE1B,MAAM,MAAM,gBAAgB,GAAG,WAAW,GAAG,SAAS,CAAC;AAEvD,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,MAAM,GAAG,CAAC,CAAC,KAAK,EAAE,IAAI,KAAK,MAAM,CAAC,CAAC;IAC3C,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,cAAc,CAAC;IACrB,KAAK,EAAE,cAAc,CAAC;IACtB,IAAI,EAAE,cAAc,CAAC;CACtB;AAED,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,6BAA6B;IAC5C,IAAI,EAAE,SAAS,CAAC;IAEhB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,MAAM,EAAE,CAAC,SAAS,EAAE,SAAS,KAAK,IAAI,CAAC;IAEvC;;OAEG;IACH,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAElC;;OAEG;IACH,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAElC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,4BAA4B;IAC3C,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,oBAAoB,EAAE,MAAM,IAAI,CAAC;IACjC,kBAAkB,EAAE,MAAM,IAAI,CAAC;IAC/B,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export declare const getPaginatedOptions: (listingApiConfig: any, queryParams: any, transformOptions: any) => {
|
|
2
|
-
type: string;
|
|
3
|
-
listingApiConfig: any;
|
|
4
|
-
queryParams: any;
|
|
5
|
-
transformOptions: any;
|
|
6
|
-
};
|
|
7
|
-
export declare const getOptionById: (id: any, getByIdApiConfig: any, queryParams: any) => {
|
|
8
|
-
type: string;
|
|
9
|
-
id: any;
|
|
10
|
-
getByIdApiConfig: any;
|
|
11
|
-
queryParams: any;
|
|
12
|
-
};
|
|
13
|
-
export declare const clearDataOnUnmount: () => {
|
|
14
|
-
type: string;
|
|
15
|
-
};
|
|
16
|
-
//# sourceMappingURL=actions.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../components/CapVirtualSelect/actions.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,mBAAmB,GAAI,qBAAgB,EAAE,gBAAW,EAAE,qBAAgB;;;;;CAKjF,CAAC;AAGH,eAAO,MAAM,aAAa,GAAI,OAAE,EAAE,qBAAgB,EAAE,gBAAW;;;;;CAK7D,CAAC;AAGH,eAAO,MAAM,kBAAkB;;CAE7B,CAAC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { CLEAR_DATA_ON_UNMOUNT, GET_OPTION_BY_ID_REQUEST, GET_PAGINATED_OPTIONS_REQUEST } from "./constants.js";
|
|
2
|
-
const getPaginatedOptions = (listingApiConfig, queryParams, transformOptions) => ({
|
|
3
|
-
type: GET_PAGINATED_OPTIONS_REQUEST,
|
|
4
|
-
listingApiConfig,
|
|
5
|
-
queryParams,
|
|
6
|
-
transformOptions
|
|
7
|
-
});
|
|
8
|
-
const getOptionById = (id, getByIdApiConfig, queryParams) => ({
|
|
9
|
-
type: GET_OPTION_BY_ID_REQUEST,
|
|
10
|
-
id,
|
|
11
|
-
getByIdApiConfig,
|
|
12
|
-
queryParams
|
|
13
|
-
});
|
|
14
|
-
const clearDataOnUnmount = () => ({
|
|
15
|
-
type: CLEAR_DATA_ON_UNMOUNT
|
|
16
|
-
});
|
|
17
|
-
export {
|
|
18
|
-
clearDataOnUnmount,
|
|
19
|
-
getOptionById,
|
|
20
|
-
getPaginatedOptions
|
|
21
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export declare const GET_PAGINATED_OPTIONS_REQUEST = "CapVirtualSelect/GET_PAGINATED_OPTIONS_REQUEST";
|
|
2
|
-
export declare const GET_PAGINATED_OPTIONS_SUCCESS = "CapVirtualSelect/GET_PAGINATED_OPTIONS_SUCCESS";
|
|
3
|
-
export declare const GET_PAGINATED_OPTIONS_FAILURE = "CapVirtualSelect/GET_PAGINATED_OPTIONS_FAILURE";
|
|
4
|
-
export declare const GET_OPTION_BY_ID_REQUEST = "CapVirtualSelect/GET_OPTION_BY_ID_REQUEST";
|
|
5
|
-
export declare const GET_OPTION_BY_ID_SUCCESS = "CapVirtualSelect/GET_OPTION_BY_ID_SUCCESS";
|
|
6
|
-
export declare const GET_OPTION_BY_ID_FAILURE = "CapVirtualSelect/GET_OPTION_BY_ID_FAILURE";
|
|
7
|
-
export declare const CLEAR_DATA_ON_UNMOUNT = "CapVirtualSelect/CLEAR_DATA_ON_UNMOUNT";
|
|
8
|
-
export declare const REQUEST = "REQUEST";
|
|
9
|
-
export declare const SUCCESS = "SUCCESS";
|
|
10
|
-
export declare const FAILURE = "FAILURE";
|
|
11
|
-
export declare const dataTestIdPrefix = "cap-virtual-select";
|
|
12
|
-
export declare const defaultNamespace = "capVirtualSelect";
|
|
13
|
-
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../components/CapVirtualSelect/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,6BAA6B,mDAAmD,CAAC;AAC9F,eAAO,MAAM,6BAA6B,mDAAmD,CAAC;AAC9F,eAAO,MAAM,6BAA6B,mDAAmD,CAAC;AAE9F,eAAO,MAAM,wBAAwB,8CAA8C,CAAC;AACpF,eAAO,MAAM,wBAAwB,8CAA8C,CAAC;AACpF,eAAO,MAAM,wBAAwB,8CAA8C,CAAC;AAEpF,eAAO,MAAM,qBAAqB,2CAA2C,CAAC;AAE9E,eAAO,MAAM,OAAO,YAAY,CAAC;AACjC,eAAO,MAAM,OAAO,YAAY,CAAC;AACjC,eAAO,MAAM,OAAO,YAAY,CAAC;AAEjC,eAAO,MAAM,gBAAgB,uBAAuB,CAAC;AACrD,eAAO,MAAM,gBAAgB,qBAAqB,CAAC"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
const GET_PAGINATED_OPTIONS_REQUEST = "CapVirtualSelect/GET_PAGINATED_OPTIONS_REQUEST";
|
|
2
|
-
const GET_PAGINATED_OPTIONS_SUCCESS = "CapVirtualSelect/GET_PAGINATED_OPTIONS_SUCCESS";
|
|
3
|
-
const GET_PAGINATED_OPTIONS_FAILURE = "CapVirtualSelect/GET_PAGINATED_OPTIONS_FAILURE";
|
|
4
|
-
const GET_OPTION_BY_ID_REQUEST = "CapVirtualSelect/GET_OPTION_BY_ID_REQUEST";
|
|
5
|
-
const GET_OPTION_BY_ID_SUCCESS = "CapVirtualSelect/GET_OPTION_BY_ID_SUCCESS";
|
|
6
|
-
const GET_OPTION_BY_ID_FAILURE = "CapVirtualSelect/GET_OPTION_BY_ID_FAILURE";
|
|
7
|
-
const CLEAR_DATA_ON_UNMOUNT = "CapVirtualSelect/CLEAR_DATA_ON_UNMOUNT";
|
|
8
|
-
const REQUEST = "REQUEST";
|
|
9
|
-
const SUCCESS = "SUCCESS";
|
|
10
|
-
const FAILURE = "FAILURE";
|
|
11
|
-
const dataTestIdPrefix = "cap-virtual-select";
|
|
12
|
-
const defaultNamespace = "capVirtualSelect";
|
|
13
|
-
export {
|
|
14
|
-
CLEAR_DATA_ON_UNMOUNT,
|
|
15
|
-
FAILURE,
|
|
16
|
-
GET_OPTION_BY_ID_FAILURE,
|
|
17
|
-
GET_OPTION_BY_ID_REQUEST,
|
|
18
|
-
GET_OPTION_BY_ID_SUCCESS,
|
|
19
|
-
GET_PAGINATED_OPTIONS_FAILURE,
|
|
20
|
-
GET_PAGINATED_OPTIONS_REQUEST,
|
|
21
|
-
GET_PAGINATED_OPTIONS_SUCCESS,
|
|
22
|
-
REQUEST,
|
|
23
|
-
SUCCESS,
|
|
24
|
-
dataTestIdPrefix,
|
|
25
|
-
defaultNamespace
|
|
26
|
-
};
|
|
@@ -1,169 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*
|
|
3
|
-
* CapVirtualSelect
|
|
4
|
-
*
|
|
5
|
-
*/
|
|
6
|
-
import PropTypes from 'prop-types';
|
|
7
|
-
import React from 'react';
|
|
8
|
-
import './styles.scss';
|
|
9
|
-
export declare function CapVirtualSelect({ intl: { formatMessage: _formatMessage }, namespace: _namespace, listingApiConfig, getByIdApiConfig, selectedOption, isSearchable, searchDebounceTime, disabled, selectedOptionPlaceholderLabel, searchPlaceholderLabel, loadingOptionsPlaceholder, EmptyPlaceholder, EmptySearchPlaceholder, width, height, buttonProps, searchbarProps, virtuosoProps, onOptionClick, renderOptionRow, renderSelectedOptionRow, transformOptions, actions, paginatedOptions: { getPaginatedOptionsStatus, getPaginatedOptions, getUnTransformedPaginatedOptions, getPaginatedOptionsTotalCount, }, optionById: { getOptionByIdStatus, getOptionById }, }: {
|
|
10
|
-
intl: {
|
|
11
|
-
formatMessage: any;
|
|
12
|
-
};
|
|
13
|
-
namespace: any;
|
|
14
|
-
listingApiConfig: any;
|
|
15
|
-
getByIdApiConfig: any;
|
|
16
|
-
selectedOption: any;
|
|
17
|
-
isSearchable: any;
|
|
18
|
-
searchDebounceTime: any;
|
|
19
|
-
disabled: any;
|
|
20
|
-
selectedOptionPlaceholderLabel: any;
|
|
21
|
-
searchPlaceholderLabel: any;
|
|
22
|
-
loadingOptionsPlaceholder: any;
|
|
23
|
-
EmptyPlaceholder: any;
|
|
24
|
-
EmptySearchPlaceholder: any;
|
|
25
|
-
width: any;
|
|
26
|
-
height: any;
|
|
27
|
-
buttonProps: any;
|
|
28
|
-
searchbarProps: any;
|
|
29
|
-
virtuosoProps: any;
|
|
30
|
-
onOptionClick: any;
|
|
31
|
-
renderOptionRow: any;
|
|
32
|
-
renderSelectedOptionRow: any;
|
|
33
|
-
transformOptions: any;
|
|
34
|
-
actions: any;
|
|
35
|
-
paginatedOptions: {
|
|
36
|
-
getPaginatedOptionsStatus: any;
|
|
37
|
-
getPaginatedOptions: any;
|
|
38
|
-
getUnTransformedPaginatedOptions: any;
|
|
39
|
-
getPaginatedOptionsTotalCount: any;
|
|
40
|
-
};
|
|
41
|
-
optionById: {
|
|
42
|
-
getOptionByIdStatus: any;
|
|
43
|
-
getOptionById: any;
|
|
44
|
-
};
|
|
45
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
46
|
-
export declare namespace CapVirtualSelect {
|
|
47
|
-
var propTypes: {
|
|
48
|
-
intl: any;
|
|
49
|
-
namespace: PropTypes.Requireable<string>;
|
|
50
|
-
listingApiConfig: PropTypes.Requireable<{
|
|
51
|
-
[x: string]: PropTypes.InferProps<{
|
|
52
|
-
method: PropTypes.Requireable<(...args: any[]) => any>;
|
|
53
|
-
rpmLimit: PropTypes.Requireable<number>;
|
|
54
|
-
payloadPath: PropTypes.Requireable<{
|
|
55
|
-
[x: string]: PropTypes.InferProps<{
|
|
56
|
-
successStatus: PropTypes.Requireable<string>;
|
|
57
|
-
success: PropTypes.Requireable<string>;
|
|
58
|
-
error: PropTypes.Requireable<string>;
|
|
59
|
-
label: PropTypes.Requireable<string>;
|
|
60
|
-
value: PropTypes.Requireable<string>;
|
|
61
|
-
totalCount: PropTypes.Requireable<string>;
|
|
62
|
-
}>;
|
|
63
|
-
}>;
|
|
64
|
-
apiParamsMapper: PropTypes.Requireable<{
|
|
65
|
-
[x: string]: PropTypes.InferProps<PropTypes.ValidationMap<any>>;
|
|
66
|
-
}>;
|
|
67
|
-
}>;
|
|
68
|
-
}>;
|
|
69
|
-
getByIdApiConfig: PropTypes.Requireable<{
|
|
70
|
-
[x: string]: PropTypes.InferProps<{
|
|
71
|
-
method: PropTypes.Requireable<(...args: any[]) => any>;
|
|
72
|
-
rpmLimit: PropTypes.Requireable<number>;
|
|
73
|
-
payloadPath: PropTypes.Requireable<{
|
|
74
|
-
[x: string]: PropTypes.InferProps<{
|
|
75
|
-
successStatus: PropTypes.Requireable<string>;
|
|
76
|
-
success: PropTypes.Requireable<string>;
|
|
77
|
-
error: PropTypes.Requireable<string>;
|
|
78
|
-
value: PropTypes.Requireable<string>;
|
|
79
|
-
}>;
|
|
80
|
-
}>;
|
|
81
|
-
apiParamsMapper: PropTypes.Requireable<{
|
|
82
|
-
[x: string]: PropTypes.InferProps<PropTypes.ValidationMap<any>>;
|
|
83
|
-
}>;
|
|
84
|
-
}>;
|
|
85
|
-
}>;
|
|
86
|
-
selectedOption: PropTypes.Requireable<NonNullable<string | number | boolean>>;
|
|
87
|
-
isSearchable: PropTypes.Requireable<boolean>;
|
|
88
|
-
searchDebounceTime: PropTypes.Requireable<number>;
|
|
89
|
-
disabled: PropTypes.Requireable<boolean>;
|
|
90
|
-
selectedOptionPlaceholderLabel: PropTypes.Requireable<string>;
|
|
91
|
-
searchPlaceholderLabel: PropTypes.Requireable<string>;
|
|
92
|
-
loadingOptionsPlaceholder: PropTypes.Requireable<string>;
|
|
93
|
-
width: PropTypes.Requireable<number>;
|
|
94
|
-
height: PropTypes.Requireable<number>;
|
|
95
|
-
buttonProps: PropTypes.Requireable<object>;
|
|
96
|
-
searchbarProps: PropTypes.Requireable<object>;
|
|
97
|
-
virtuosoProps: PropTypes.Requireable<object>;
|
|
98
|
-
transformOptions: PropTypes.Requireable<(...args: any[]) => any>;
|
|
99
|
-
renderOptionRow: PropTypes.Requireable<(...args: any[]) => any>;
|
|
100
|
-
renderSelectedOptionRow: PropTypes.Requireable<(...args: any[]) => any>;
|
|
101
|
-
onOptionClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
102
|
-
EmptyPlaceholder: PropTypes.Requireable<NonNullable<((...args: any[]) => any) | PropTypes.ReactNodeLike>>;
|
|
103
|
-
EmptySearchPlaceholder: PropTypes.Requireable<NonNullable<((...args: any[]) => any) | PropTypes.ReactNodeLike>>;
|
|
104
|
-
};
|
|
105
|
-
var defaultProps: {
|
|
106
|
-
intl: any;
|
|
107
|
-
namespace: string;
|
|
108
|
-
listingApiConfig: {
|
|
109
|
-
method: () => Promise<any[]>;
|
|
110
|
-
rpmLimit: number;
|
|
111
|
-
payloadPath: {
|
|
112
|
-
successStatus: string;
|
|
113
|
-
success: string;
|
|
114
|
-
error: string;
|
|
115
|
-
label: string;
|
|
116
|
-
value: string;
|
|
117
|
-
totalCount: string;
|
|
118
|
-
};
|
|
119
|
-
apiParamsMapper: {
|
|
120
|
-
page: {
|
|
121
|
-
key: string;
|
|
122
|
-
value: number;
|
|
123
|
-
};
|
|
124
|
-
limit: {
|
|
125
|
-
key: string;
|
|
126
|
-
value: number;
|
|
127
|
-
};
|
|
128
|
-
search: {
|
|
129
|
-
key: string;
|
|
130
|
-
value: string;
|
|
131
|
-
};
|
|
132
|
-
};
|
|
133
|
-
};
|
|
134
|
-
getByIdApiConfig: {
|
|
135
|
-
method: () => Promise<any>;
|
|
136
|
-
rpmLimit: number;
|
|
137
|
-
payloadPath: {
|
|
138
|
-
successStatus: string;
|
|
139
|
-
success: string;
|
|
140
|
-
error: string;
|
|
141
|
-
value: string;
|
|
142
|
-
};
|
|
143
|
-
apiParamsMapper: {};
|
|
144
|
-
};
|
|
145
|
-
selectedOption: any;
|
|
146
|
-
isSearchable: boolean;
|
|
147
|
-
searchDebounceTime: number;
|
|
148
|
-
disabled: boolean;
|
|
149
|
-
selectedOptionPlaceholderLabel: string;
|
|
150
|
-
searchPlaceholderLabel: string;
|
|
151
|
-
loadingOptionsPlaceholder: string;
|
|
152
|
-
width: number;
|
|
153
|
-
height: number;
|
|
154
|
-
buttonProps: {};
|
|
155
|
-
searchbarProps: {};
|
|
156
|
-
virtuosoProps: {};
|
|
157
|
-
transformOptions: (options: any) => any;
|
|
158
|
-
onOptionClick: (option: any) => any;
|
|
159
|
-
renderOptionRow: (option: any) => import("react/jsx-runtime").JSX.Element;
|
|
160
|
-
renderSelectedOptionRow: (selectedOption: any, selectedOptionValue: any) => import("react/jsx-runtime").JSX.Element;
|
|
161
|
-
EmptyPlaceholder: () => import("react/jsx-runtime").JSX.Element;
|
|
162
|
-
EmptySearchPlaceholder: () => import("react/jsx-runtime").JSX.Element;
|
|
163
|
-
};
|
|
164
|
-
}
|
|
165
|
-
export declare const CapVirtualSelectInjected: (namespace?: string) => import("react-redux").ConnectedComponent<React.ComponentType<Omit<any, "intl">>, {
|
|
166
|
-
[x: string]: any;
|
|
167
|
-
}>;
|
|
168
|
-
export default CapVirtualSelectInjected;
|
|
169
|
-
//# sourceMappingURL=index.d.ts.map
|