superdesk-ui-framework 4.0.41 → 4.0.43
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/app-typescript/components/DatePicker.tsx +37 -27
- package/app-typescript/components/DurationInput.tsx +1 -1
- package/app-typescript/components/Form/InputWrapper.tsx +6 -2
- package/app-typescript/index.ts +1 -1
- package/app-typescript/localization.tsx +17 -0
- package/dist/examples.bundle.js +79384 -58003
- package/dist/superdesk-ui.bundle.js +76267 -55966
- package/dist/vendor.bundle.js +20 -20
- package/package.json +7 -5
- package/react/components/Alert.js +17 -7
- package/react/components/Autocomplete.js +18 -9
- package/react/components/Badge.js +17 -7
- package/react/components/Button.js +17 -7
- package/react/components/ButtonGroup.js +17 -7
- package/react/components/Card.js +17 -7
- package/react/components/Carousel.js +17 -7
- package/react/components/CheckButtonGroup.js +17 -7
- package/react/components/CheckGroup.js +17 -7
- package/react/components/Checkbox.js +17 -7
- package/react/components/CheckboxButton.js +17 -7
- package/react/components/ContentDivider.js +17 -7
- package/react/components/CreateButton.js +17 -7
- package/react/components/DatePicker.d.ts +4 -3
- package/react/components/DatePicker.js +48 -23
- package/react/components/DateTimePicker.js +17 -7
- package/react/components/Divider.js +17 -7
- package/react/components/DonutChart.js +17 -7
- package/react/components/DragHandle.js +17 -7
- package/react/components/DragHandleDots.js +17 -7
- package/react/components/DropZone.js +17 -7
- package/react/components/Dropdown.js +17 -7
- package/react/components/DropdownFirst.js +17 -7
- package/react/components/DurationInput.js +20 -10
- package/react/components/EmptyState.js +17 -7
- package/react/components/Form/FormGroup.js +17 -7
- package/react/components/Form/FormItem.js +17 -7
- package/react/components/Form/FormLabel.js +17 -7
- package/react/components/Form/FormRow.js +17 -7
- package/react/components/Form/FormRowNew.js +17 -7
- package/react/components/Form/FormText.js +17 -7
- package/react/components/Form/InputBase.js +18 -9
- package/react/components/Form/InputNew.js +18 -9
- package/react/components/Form/InputWrapper.d.ts +1 -0
- package/react/components/Form/InputWrapper.js +19 -10
- package/react/components/FormLabel.js +17 -7
- package/react/components/GridItem.js +17 -7
- package/react/components/GridList.js +17 -7
- package/react/components/HeadingText.js +17 -7
- package/react/components/HelloWorld.js +17 -7
- package/react/components/Icon.js +17 -7
- package/react/components/IconButton.js +17 -7
- package/react/components/IconLabel.js +17 -7
- package/react/components/IconPicker.js +17 -7
- package/react/components/IllustrationButton.js +17 -7
- package/react/components/Input.js +17 -7
- package/react/components/Label.js +17 -7
- package/react/components/Layouts/AuthorinInnerSideBar.js +17 -7
- package/react/components/Layouts/AuthoringContainer.js +17 -7
- package/react/components/Layouts/AuthoringFrame.js +17 -7
- package/react/components/Layouts/AuthoringFrameContainer.js +17 -7
- package/react/components/Layouts/AuthoringFrameLeftBar.js +17 -7
- package/react/components/Layouts/AuthoringFrameMain.js +17 -7
- package/react/components/Layouts/AuthoringFrameNavBar.js +17 -7
- package/react/components/Layouts/AuthoringFrameOverlay.js +17 -7
- package/react/components/Layouts/AuthoringFrameRightBar.js +17 -7
- package/react/components/Layouts/AuthoringFrameSidePanel.js +17 -7
- package/react/components/Layouts/AuthoringFrameSidePanelOverlay.js +17 -7
- package/react/components/Layouts/AuthoringInnerBody.js +17 -7
- package/react/components/Layouts/AuthoringInnerHeader.js +17 -7
- package/react/components/Layouts/AuthoringMain.js +17 -7
- package/react/components/Layouts/AuthoringMainContainer.js +17 -7
- package/react/components/Layouts/AuthoringMainContent.js +17 -7
- package/react/components/Layouts/AuthoringMainToolBar.js +17 -7
- package/react/components/Layouts/BottomBarAction.js +17 -7
- package/react/components/Layouts/Container.js +17 -7
- package/react/components/Layouts/ContentSplitter.js +17 -7
- package/react/components/Layouts/CoreLayout.js +17 -7
- package/react/components/Layouts/CoreLayoutContainer.js +17 -7
- package/react/components/Layouts/CoreLayoutFooter.js +17 -7
- package/react/components/Layouts/CoreLayoutMain.js +17 -7
- package/react/components/Layouts/CoreLayoutOverlay.js +17 -7
- package/react/components/Layouts/CoreLayoutSlideInMenu.js +17 -7
- package/react/components/Layouts/CoreLayoutTopMenu.js +17 -7
- package/react/components/Layouts/HamburgerButton.js +17 -7
- package/react/components/Layouts/HeaderPanel.js +17 -7
- package/react/components/Layouts/Layout.js +17 -7
- package/react/components/Layouts/LayoutContainer.js +17 -7
- package/react/components/Layouts/LeftPanel.js +17 -7
- package/react/components/Layouts/MainMenu.js +17 -7
- package/react/components/Layouts/MainPanel.js +17 -7
- package/react/components/Layouts/NotificationPanel.js +17 -7
- package/react/components/Layouts/OverlayPanel.js +17 -7
- package/react/components/Layouts/PageLayout.js +17 -7
- package/react/components/Layouts/Panel.js +17 -7
- package/react/components/Layouts/RightPanel.js +17 -7
- package/react/components/LeftMenu.js +17 -7
- package/react/components/ListItemLoader.js +17 -7
- package/react/components/Lists/BoxedList.js +17 -7
- package/react/components/Lists/CalendarWeekDayItem.js +17 -7
- package/react/components/Lists/ContentList.js +17 -7
- package/react/components/Lists/SimpleList.js +17 -7
- package/react/components/Lists/TableList.js +17 -7
- package/react/components/Loader.js +17 -7
- package/react/components/Menu.js +17 -7
- package/react/components/Modal.js +17 -7
- package/react/components/MultiSelect.js +17 -7
- package/react/components/NavButton.js +17 -7
- package/react/components/Navigation/BottomNav.js +17 -7
- package/react/components/Navigation/QuickNavBar.js +17 -7
- package/react/components/Navigation/SideBarMenu.js +17 -7
- package/react/components/Navigation/SideBarTabs.js +17 -7
- package/react/components/Popover.js +17 -7
- package/react/components/PropsList.js +17 -7
- package/react/components/RadioButtonGroup.js +17 -7
- package/react/components/RadioGroup.js +17 -7
- package/react/components/ResizablePanels.js +17 -7
- package/react/components/Rotate.js +17 -7
- package/react/components/SearchBar.js +17 -7
- package/react/components/Select.js +17 -7
- package/react/components/SelectGrid.js +17 -7
- package/react/components/SelectPreview.js +17 -7
- package/react/components/SelectWithTemplate.js +17 -7
- package/react/components/ShowPopup.js +19 -9
- package/react/components/SingleAndDoubleClickFunction.d.ts +0 -1
- package/react/components/SingleAndDoubleClickFunction.js +1 -2
- package/react/components/Skeleton.js +17 -7
- package/react/components/SlidingToolbar.js +17 -7
- package/react/components/Spinner.js +17 -7
- package/react/components/StrechBar.js +17 -7
- package/react/components/SubNav.js +17 -7
- package/react/components/SvgIconIllustration.js +17 -7
- package/react/components/Switch.js +17 -7
- package/react/components/SwitchGroup.js +17 -7
- package/react/components/TabCustom.js +17 -7
- package/react/components/TabList.js +17 -7
- package/react/components/Tag.js +17 -7
- package/react/components/TagInput.js +17 -7
- package/react/components/Text/Heading.js +17 -7
- package/react/components/Text/Text.js +17 -7
- package/react/components/Text/Time.js +17 -7
- package/react/components/ThemeSelector.js +17 -7
- package/react/components/TimePicker.js +17 -7
- package/react/components/TimePickerV2.js +17 -7
- package/react/components/Toast.js +17 -7
- package/react/components/ToastMessage.js +17 -7
- package/react/components/ToastText.js +17 -7
- package/react/components/ToastWrapper.js +17 -7
- package/react/components/ToggleBox/CustomHeaderToggleBox.js +18 -9
- package/react/components/ToggleBox/SimpleToggleBox.js +18 -9
- package/react/components/ToggleBox/index.js +17 -7
- package/react/components/Tooltip.js +17 -7
- package/react/components/TreeMenu.js +17 -7
- package/react/components/TreeSelect/TreeSelect.js +17 -7
- package/react/components/TreeSelect/TreeSelectItem.js +19 -9
- package/react/components/TreeSelect/TreeSelectPill.js +17 -7
- package/react/components/WithPagination.js +19 -9
- package/react/components/WithPopover.js +17 -7
- package/react/components/WithPortal.js +19 -9
- package/react/components/WithSizeObserver.js +17 -7
- package/react/components/_Positioner.js +17 -7
- package/react/components/avatar/avatar-action-add.js +17 -7
- package/react/components/avatar/avatar-group.js +17 -7
- package/react/components/avatar/avatar-image.js +17 -7
- package/react/components/avatar/avatar-number.js +17 -7
- package/react/components/avatar/avatar-placeholder.js +17 -7
- package/react/components/avatar/avatar-text.js +17 -7
- package/react/components/avatar/avatar-wrapper.js +17 -7
- package/react/components/avatar/avatar.js +17 -7
- package/react/helpers.js +3 -4
- package/react/index.d.ts +1 -1
- package/react/index.js +3 -1
- package/react/localization.d.ts +9 -0
- package/react/localization.js +13 -0
- package/react/zIndex.js +2 -2
@@ -14,17 +14,6 @@ var __extends = (this && this.__extends) || (function () {
|
|
14
14
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
15
15
|
};
|
16
16
|
})();
|
17
|
-
var __assign = (this && this.__assign) || function () {
|
18
|
-
__assign = Object.assign || function(t) {
|
19
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
20
|
-
s = arguments[i];
|
21
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
22
|
-
t[p] = s[p];
|
23
|
-
}
|
24
|
-
return t;
|
25
|
-
};
|
26
|
-
return __assign.apply(this, arguments);
|
27
|
-
};
|
28
17
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
29
18
|
if (k2 === undefined) k2 = k;
|
30
19
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
@@ -41,13 +30,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
41
30
|
}) : function(o, v) {
|
42
31
|
o["default"] = v;
|
43
32
|
});
|
44
|
-
var __importStar = (this && this.__importStar) || function (
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
};
|
33
|
+
var __importStar = (this && this.__importStar) || (function () {
|
34
|
+
var ownKeys = function(o) {
|
35
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
36
|
+
var ar = [];
|
37
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
38
|
+
return ar;
|
39
|
+
};
|
40
|
+
return ownKeys(o);
|
41
|
+
};
|
42
|
+
return function (mod) {
|
43
|
+
if (mod && mod.__esModule) return mod;
|
44
|
+
var result = {};
|
45
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
46
|
+
__setModuleDefault(result, mod);
|
47
|
+
return result;
|
48
|
+
};
|
49
|
+
})();
|
51
50
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
52
51
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
53
52
|
};
|
@@ -62,6 +61,9 @@ var lodash_1 = require("lodash");
|
|
62
61
|
var react_id_generator_1 = __importDefault(require("react-id-generator"));
|
63
62
|
var Form_1 = require("./Form");
|
64
63
|
var Button_1 = require("./Button");
|
64
|
+
var weekstart_1 = require("weekstart");
|
65
|
+
var common_1 = require("@sourcefabric/common");
|
66
|
+
var localization_1 = require("../localization");
|
65
67
|
var internalPrimereactClassnames = {
|
66
68
|
overlayVisible: 'p-input-overlay-visible',
|
67
69
|
};
|
@@ -84,6 +86,32 @@ function parseFromPrimeReactCalendarFormat(value) {
|
|
84
86
|
function parseToPrimeReactCalendarFormat(value) {
|
85
87
|
return value === null ? undefined : value;
|
86
88
|
}
|
89
|
+
function getDatePickerLocale(code) {
|
90
|
+
var localeCode = code !== null && code !== void 0 ? code : 'en-US';
|
91
|
+
var firstDayOfWeek = (0, weekstart_1.getWeekStartByLocale)(localeCode);
|
92
|
+
var dayNames = {
|
93
|
+
long: [],
|
94
|
+
short: [],
|
95
|
+
narrow: [],
|
96
|
+
};
|
97
|
+
for (var _i = 0, _a = (0, common_1.getWeekdayNames)(0, localeCode); _i < _a.length; _i++) {
|
98
|
+
var weekday = _a[_i];
|
99
|
+
dayNames.long.push(weekday.nameLong);
|
100
|
+
dayNames.short.push(weekday.nameShort);
|
101
|
+
dayNames.narrow.push(weekday.nameNarrow);
|
102
|
+
}
|
103
|
+
var locale = {
|
104
|
+
firstDayOfWeek: firstDayOfWeek,
|
105
|
+
dayNames: dayNames.long,
|
106
|
+
dayNamesShort: dayNames.short,
|
107
|
+
dayNamesMin: dayNames.short, // using short instead of narrow on purpose
|
108
|
+
monthNames: (0, common_1.getMonthNames)(localeCode, 'long'),
|
109
|
+
monthNamesShort: (0, common_1.getMonthNames)(localeCode, 'short'),
|
110
|
+
today: localization_1.localization.translations.today,
|
111
|
+
clear: localization_1.localization.translations.clear,
|
112
|
+
};
|
113
|
+
return locale;
|
114
|
+
}
|
87
115
|
var DatePicker = /** @class */ (function (_super) {
|
88
116
|
__extends(DatePicker, _super);
|
89
117
|
function DatePicker(props) {
|
@@ -125,10 +153,7 @@ var DatePicker = /** @class */ (function (_super) {
|
|
125
153
|
};
|
126
154
|
DatePicker.prototype.render = function () {
|
127
155
|
var _this = this;
|
128
|
-
var
|
129
|
-
if (this.props.locale != null) {
|
130
|
-
locale = __assign(__assign({}, this.props.locale), { today: 'today', clear: 'clear' });
|
131
|
-
}
|
156
|
+
var _a;
|
132
157
|
if (this.props.preview) {
|
133
158
|
return (
|
134
159
|
// We have to do type assertion here because we wrap primereact's component using
|
@@ -164,7 +189,7 @@ var DatePicker = /** @class */ (function (_super) {
|
|
164
189
|
// updating internal state so a user can continue typing and enter a valid value
|
165
190
|
_this.setState({ value: event.value, valid: false });
|
166
191
|
}
|
167
|
-
}, locale: locale, dateFormat: this.props.dateFormat.replace('YYYY', 'yy').replace('MM', 'mm').replace('DD', 'dd'), showIcon: true, icon: "icon-calendar", headerTemplate: function () { return _this.props.headerButtonBar == null ? null : (React.createElement("div", { className: "datepicker-header-toolbar" }, _this.props.headerButtonBar.map(function (_a, i) {
|
192
|
+
}, locale: getDatePickerLocale((_a = this.props.locale) === null || _a === void 0 ? void 0 : _a.code), dateFormat: this.props.dateFormat.replace('YYYY', 'yy').replace('MM', 'mm').replace('DD', 'dd'), showIcon: true, icon: "icon-calendar", headerTemplate: function () { return _this.props.headerButtonBar == null ? null : (React.createElement("div", { className: "datepicker-header-toolbar" }, _this.props.headerButtonBar.map(function (_a, i) {
|
168
193
|
var label = _a.label, days = _a.days;
|
169
194
|
return (React.createElement("button", { key: i, className: "btn btn--small", onClick: function () {
|
170
195
|
_this.props.onChange((0, addDays_1.default)(new Date(), days));
|
@@ -30,13 +30,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
30
30
|
}) : function(o, v) {
|
31
31
|
o["default"] = v;
|
32
32
|
});
|
33
|
-
var __importStar = (this && this.__importStar) || function (
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
};
|
33
|
+
var __importStar = (this && this.__importStar) || (function () {
|
34
|
+
var ownKeys = function(o) {
|
35
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
36
|
+
var ar = [];
|
37
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
38
|
+
return ar;
|
39
|
+
};
|
40
|
+
return ownKeys(o);
|
41
|
+
};
|
42
|
+
return function (mod) {
|
43
|
+
if (mod && mod.__esModule) return mod;
|
44
|
+
var result = {};
|
45
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
46
|
+
__setModuleDefault(result, mod);
|
47
|
+
return result;
|
48
|
+
};
|
49
|
+
})();
|
40
50
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
41
51
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
42
52
|
};
|
@@ -30,13 +30,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
30
30
|
}) : function(o, v) {
|
31
31
|
o["default"] = v;
|
32
32
|
});
|
33
|
-
var __importStar = (this && this.__importStar) || function (
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
};
|
33
|
+
var __importStar = (this && this.__importStar) || (function () {
|
34
|
+
var ownKeys = function(o) {
|
35
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
36
|
+
var ar = [];
|
37
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
38
|
+
return ar;
|
39
|
+
};
|
40
|
+
return ownKeys(o);
|
41
|
+
};
|
42
|
+
return function (mod) {
|
43
|
+
if (mod && mod.__esModule) return mod;
|
44
|
+
var result = {};
|
45
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
46
|
+
__setModuleDefault(result, mod);
|
47
|
+
return result;
|
48
|
+
};
|
49
|
+
})();
|
40
50
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
41
51
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
42
52
|
};
|
@@ -30,13 +30,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
30
30
|
}) : function(o, v) {
|
31
31
|
o["default"] = v;
|
32
32
|
});
|
33
|
-
var __importStar = (this && this.__importStar) || function (
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
};
|
33
|
+
var __importStar = (this && this.__importStar) || (function () {
|
34
|
+
var ownKeys = function(o) {
|
35
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
36
|
+
var ar = [];
|
37
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
38
|
+
return ar;
|
39
|
+
};
|
40
|
+
return ownKeys(o);
|
41
|
+
};
|
42
|
+
return function (mod) {
|
43
|
+
if (mod && mod.__esModule) return mod;
|
44
|
+
var result = {};
|
45
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
46
|
+
__setModuleDefault(result, mod);
|
47
|
+
return result;
|
48
|
+
};
|
49
|
+
})();
|
40
50
|
Object.defineProperty(exports, "__esModule", { value: true });
|
41
51
|
exports.DonutChart = void 0;
|
42
52
|
var React = __importStar(require("react"));
|
@@ -30,13 +30,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
30
30
|
}) : function(o, v) {
|
31
31
|
o["default"] = v;
|
32
32
|
});
|
33
|
-
var __importStar = (this && this.__importStar) || function (
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
};
|
33
|
+
var __importStar = (this && this.__importStar) || (function () {
|
34
|
+
var ownKeys = function(o) {
|
35
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
36
|
+
var ar = [];
|
37
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
38
|
+
return ar;
|
39
|
+
};
|
40
|
+
return ownKeys(o);
|
41
|
+
};
|
42
|
+
return function (mod) {
|
43
|
+
if (mod && mod.__esModule) return mod;
|
44
|
+
var result = {};
|
45
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
46
|
+
__setModuleDefault(result, mod);
|
47
|
+
return result;
|
48
|
+
};
|
49
|
+
})();
|
40
50
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
41
51
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
42
52
|
};
|
@@ -30,13 +30,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
30
30
|
}) : function(o, v) {
|
31
31
|
o["default"] = v;
|
32
32
|
});
|
33
|
-
var __importStar = (this && this.__importStar) || function (
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
};
|
33
|
+
var __importStar = (this && this.__importStar) || (function () {
|
34
|
+
var ownKeys = function(o) {
|
35
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
36
|
+
var ar = [];
|
37
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
38
|
+
return ar;
|
39
|
+
};
|
40
|
+
return ownKeys(o);
|
41
|
+
};
|
42
|
+
return function (mod) {
|
43
|
+
if (mod && mod.__esModule) return mod;
|
44
|
+
var result = {};
|
45
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
46
|
+
__setModuleDefault(result, mod);
|
47
|
+
return result;
|
48
|
+
};
|
49
|
+
})();
|
40
50
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
41
51
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
42
52
|
};
|
@@ -30,13 +30,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
30
30
|
}) : function(o, v) {
|
31
31
|
o["default"] = v;
|
32
32
|
});
|
33
|
-
var __importStar = (this && this.__importStar) || function (
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
};
|
33
|
+
var __importStar = (this && this.__importStar) || (function () {
|
34
|
+
var ownKeys = function(o) {
|
35
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
36
|
+
var ar = [];
|
37
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
38
|
+
return ar;
|
39
|
+
};
|
40
|
+
return ownKeys(o);
|
41
|
+
};
|
42
|
+
return function (mod) {
|
43
|
+
if (mod && mod.__esModule) return mod;
|
44
|
+
var result = {};
|
45
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
46
|
+
__setModuleDefault(result, mod);
|
47
|
+
return result;
|
48
|
+
};
|
49
|
+
})();
|
40
50
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
41
51
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
42
52
|
};
|
@@ -26,13 +26,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
26
26
|
}) : function(o, v) {
|
27
27
|
o["default"] = v;
|
28
28
|
});
|
29
|
-
var __importStar = (this && this.__importStar) || function (
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
};
|
29
|
+
var __importStar = (this && this.__importStar) || (function () {
|
30
|
+
var ownKeys = function(o) {
|
31
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
32
|
+
var ar = [];
|
33
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
34
|
+
return ar;
|
35
|
+
};
|
36
|
+
return ownKeys(o);
|
37
|
+
};
|
38
|
+
return function (mod) {
|
39
|
+
if (mod && mod.__esModule) return mod;
|
40
|
+
var result = {};
|
41
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
42
|
+
__setModuleDefault(result, mod);
|
43
|
+
return result;
|
44
|
+
};
|
45
|
+
})();
|
36
46
|
Object.defineProperty(exports, "__esModule", { value: true });
|
37
47
|
exports.Dropdown = void 0;
|
38
48
|
var React = __importStar(require("react"));
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
15
15
|
}) : function(o, v) {
|
16
16
|
o["default"] = v;
|
17
17
|
});
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
};
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
19
|
+
var ownKeys = function(o) {
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
21
|
+
var ar = [];
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
23
|
+
return ar;
|
24
|
+
};
|
25
|
+
return ownKeys(o);
|
26
|
+
};
|
27
|
+
return function (mod) {
|
28
|
+
if (mod && mod.__esModule) return mod;
|
29
|
+
var result = {};
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
31
|
+
__setModuleDefault(result, mod);
|
32
|
+
return result;
|
33
|
+
};
|
34
|
+
})();
|
25
35
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
26
36
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
27
37
|
};
|
@@ -30,18 +30,29 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
30
30
|
}) : function(o, v) {
|
31
31
|
o["default"] = v;
|
32
32
|
});
|
33
|
-
var __importStar = (this && this.__importStar) || function (
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
};
|
33
|
+
var __importStar = (this && this.__importStar) || (function () {
|
34
|
+
var ownKeys = function(o) {
|
35
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
36
|
+
var ar = [];
|
37
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
38
|
+
return ar;
|
39
|
+
};
|
40
|
+
return ownKeys(o);
|
41
|
+
};
|
42
|
+
return function (mod) {
|
43
|
+
if (mod && mod.__esModule) return mod;
|
44
|
+
var result = {};
|
45
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
46
|
+
__setModuleDefault(result, mod);
|
47
|
+
return result;
|
48
|
+
};
|
49
|
+
})();
|
40
50
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
41
51
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
42
52
|
};
|
43
53
|
Object.defineProperty(exports, "__esModule", { value: true });
|
44
|
-
exports.
|
54
|
+
exports.DurationInput = void 0;
|
55
|
+
exports.getDurationString = getDurationString;
|
45
56
|
var React = __importStar(require("react"));
|
46
57
|
var moment_1 = __importDefault(require("moment"));
|
47
58
|
var react_id_generator_1 = __importDefault(require("react-id-generator"));
|
@@ -111,7 +122,7 @@ var DurationInput = /** @class */ (function (_super) {
|
|
111
122
|
}
|
112
123
|
if (Number(this.minuteRef.current.value) < 0) {
|
113
124
|
this.setState({
|
114
|
-
hours: this.zeroPad(Number(this.state.hours)) > 0
|
125
|
+
hours: parseInt("".concat(this.zeroPad(Number(this.state.hours))), 10) > 0
|
115
126
|
? this.zeroPad(Number(this.state.hours) - 1)
|
116
127
|
: this.zeroPad(Number(this.state.hours)),
|
117
128
|
minutes: 59,
|
@@ -379,4 +390,3 @@ function getDurationString(seconds, minSections) {
|
|
379
390
|
}
|
380
391
|
}
|
381
392
|
}
|
382
|
-
exports.getDurationString = getDurationString;
|
@@ -30,13 +30,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
30
30
|
}) : function(o, v) {
|
31
31
|
o["default"] = v;
|
32
32
|
});
|
33
|
-
var __importStar = (this && this.__importStar) || function (
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
};
|
33
|
+
var __importStar = (this && this.__importStar) || (function () {
|
34
|
+
var ownKeys = function(o) {
|
35
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
36
|
+
var ar = [];
|
37
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
38
|
+
return ar;
|
39
|
+
};
|
40
|
+
return ownKeys(o);
|
41
|
+
};
|
42
|
+
return function (mod) {
|
43
|
+
if (mod && mod.__esModule) return mod;
|
44
|
+
var result = {};
|
45
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
46
|
+
__setModuleDefault(result, mod);
|
47
|
+
return result;
|
48
|
+
};
|
49
|
+
})();
|
40
50
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
41
51
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
42
52
|
};
|
@@ -30,13 +30,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
30
30
|
}) : function(o, v) {
|
31
31
|
o["default"] = v;
|
32
32
|
});
|
33
|
-
var __importStar = (this && this.__importStar) || function (
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
};
|
33
|
+
var __importStar = (this && this.__importStar) || (function () {
|
34
|
+
var ownKeys = function(o) {
|
35
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
36
|
+
var ar = [];
|
37
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
38
|
+
return ar;
|
39
|
+
};
|
40
|
+
return ownKeys(o);
|
41
|
+
};
|
42
|
+
return function (mod) {
|
43
|
+
if (mod && mod.__esModule) return mod;
|
44
|
+
var result = {};
|
45
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
46
|
+
__setModuleDefault(result, mod);
|
47
|
+
return result;
|
48
|
+
};
|
49
|
+
})();
|
40
50
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
41
51
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
42
52
|
};
|
@@ -30,13 +30,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
30
30
|
}) : function(o, v) {
|
31
31
|
o["default"] = v;
|
32
32
|
});
|
33
|
-
var __importStar = (this && this.__importStar) || function (
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
};
|
33
|
+
var __importStar = (this && this.__importStar) || (function () {
|
34
|
+
var ownKeys = function(o) {
|
35
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
36
|
+
var ar = [];
|
37
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
38
|
+
return ar;
|
39
|
+
};
|
40
|
+
return ownKeys(o);
|
41
|
+
};
|
42
|
+
return function (mod) {
|
43
|
+
if (mod && mod.__esModule) return mod;
|
44
|
+
var result = {};
|
45
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
46
|
+
__setModuleDefault(result, mod);
|
47
|
+
return result;
|
48
|
+
};
|
49
|
+
})();
|
40
50
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
41
51
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
42
52
|
};
|
@@ -30,13 +30,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
30
30
|
}) : function(o, v) {
|
31
31
|
o["default"] = v;
|
32
32
|
});
|
33
|
-
var __importStar = (this && this.__importStar) || function (
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
};
|
33
|
+
var __importStar = (this && this.__importStar) || (function () {
|
34
|
+
var ownKeys = function(o) {
|
35
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
36
|
+
var ar = [];
|
37
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
38
|
+
return ar;
|
39
|
+
};
|
40
|
+
return ownKeys(o);
|
41
|
+
};
|
42
|
+
return function (mod) {
|
43
|
+
if (mod && mod.__esModule) return mod;
|
44
|
+
var result = {};
|
45
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
46
|
+
__setModuleDefault(result, mod);
|
47
|
+
return result;
|
48
|
+
};
|
49
|
+
})();
|
40
50
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
41
51
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
42
52
|
};
|
@@ -30,13 +30,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
30
30
|
}) : function(o, v) {
|
31
31
|
o["default"] = v;
|
32
32
|
});
|
33
|
-
var __importStar = (this && this.__importStar) || function (
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
};
|
33
|
+
var __importStar = (this && this.__importStar) || (function () {
|
34
|
+
var ownKeys = function(o) {
|
35
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
36
|
+
var ar = [];
|
37
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
38
|
+
return ar;
|
39
|
+
};
|
40
|
+
return ownKeys(o);
|
41
|
+
};
|
42
|
+
return function (mod) {
|
43
|
+
if (mod && mod.__esModule) return mod;
|
44
|
+
var result = {};
|
45
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
46
|
+
__setModuleDefault(result, mod);
|
47
|
+
return result;
|
48
|
+
};
|
49
|
+
})();
|
40
50
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
41
51
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
42
52
|
};
|
@@ -30,13 +30,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
30
30
|
}) : function(o, v) {
|
31
31
|
o["default"] = v;
|
32
32
|
});
|
33
|
-
var __importStar = (this && this.__importStar) || function (
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
};
|
33
|
+
var __importStar = (this && this.__importStar) || (function () {
|
34
|
+
var ownKeys = function(o) {
|
35
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
36
|
+
var ar = [];
|
37
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
38
|
+
return ar;
|
39
|
+
};
|
40
|
+
return ownKeys(o);
|
41
|
+
};
|
42
|
+
return function (mod) {
|
43
|
+
if (mod && mod.__esModule) return mod;
|
44
|
+
var result = {};
|
45
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
46
|
+
__setModuleDefault(result, mod);
|
47
|
+
return result;
|
48
|
+
};
|
49
|
+
})();
|
40
50
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
41
51
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
42
52
|
};
|
@@ -30,13 +30,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
30
30
|
}) : function(o, v) {
|
31
31
|
o["default"] = v;
|
32
32
|
});
|
33
|
-
var __importStar = (this && this.__importStar) || function (
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
};
|
33
|
+
var __importStar = (this && this.__importStar) || (function () {
|
34
|
+
var ownKeys = function(o) {
|
35
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
36
|
+
var ar = [];
|
37
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
38
|
+
return ar;
|
39
|
+
};
|
40
|
+
return ownKeys(o);
|
41
|
+
};
|
42
|
+
return function (mod) {
|
43
|
+
if (mod && mod.__esModule) return mod;
|
44
|
+
var result = {};
|
45
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
46
|
+
__setModuleDefault(result, mod);
|
47
|
+
return result;
|
48
|
+
};
|
49
|
+
})();
|
40
50
|
Object.defineProperty(exports, "__esModule", { value: true });
|
41
51
|
exports.FormText = void 0;
|
42
52
|
var React = __importStar(require("react"));
|