superdesk-ui-framework 4.0.42 → 4.0.44
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 +51 -26
- package/app-typescript/components/DurationInput.tsx +1 -1
- package/app-typescript/index.ts +1 -1
- package/app-typescript/localization.tsx +17 -0
- package/dist/examples.bundle.js +78790 -57384
- package/dist/superdesk-ui.bundle.js +76325 -55999
- 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 +7 -2
- package/react/components/DatePicker.js +61 -11
- 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.js +18 -9
- 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
@@ -41,13 +41,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
41
41
|
}) : function(o, v) {
|
42
42
|
o["default"] = v;
|
43
43
|
});
|
44
|
-
var __importStar = (this && this.__importStar) || function (
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
};
|
44
|
+
var __importStar = (this && this.__importStar) || (function () {
|
45
|
+
var ownKeys = function(o) {
|
46
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
47
|
+
var ar = [];
|
48
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
49
|
+
return ar;
|
50
|
+
};
|
51
|
+
return ownKeys(o);
|
52
|
+
};
|
53
|
+
return function (mod) {
|
54
|
+
if (mod && mod.__esModule) return mod;
|
55
|
+
var result = {};
|
56
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
57
|
+
__setModuleDefault(result, mod);
|
58
|
+
return result;
|
59
|
+
};
|
60
|
+
})();
|
51
61
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
52
62
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
53
63
|
};
|
@@ -62,6 +72,10 @@ var lodash_1 = require("lodash");
|
|
62
72
|
var react_id_generator_1 = __importDefault(require("react-id-generator"));
|
63
73
|
var Form_1 = require("./Form");
|
64
74
|
var Button_1 = require("./Button");
|
75
|
+
var weekstart_1 = require("weekstart");
|
76
|
+
var common_1 = require("@sourcefabric/common");
|
77
|
+
var localization_1 = require("../localization");
|
78
|
+
var helpers_1 = require("../helpers");
|
65
79
|
var internalPrimereactClassnames = {
|
66
80
|
overlayVisible: 'p-input-overlay-visible',
|
67
81
|
};
|
@@ -84,6 +98,32 @@ function parseFromPrimeReactCalendarFormat(value) {
|
|
84
98
|
function parseToPrimeReactCalendarFormat(value) {
|
85
99
|
return value === null ? undefined : value;
|
86
100
|
}
|
101
|
+
function getDatePickerLocale(code) {
|
102
|
+
var localeCode = code !== null && code !== void 0 ? code : 'en-US';
|
103
|
+
var firstDayOfWeek = (0, weekstart_1.getWeekStartByLocale)(localeCode);
|
104
|
+
var dayNames = {
|
105
|
+
long: [],
|
106
|
+
short: [],
|
107
|
+
narrow: [],
|
108
|
+
};
|
109
|
+
for (var _i = 0, _a = (0, common_1.getWeekdayNames)(0, localeCode); _i < _a.length; _i++) {
|
110
|
+
var weekday = _a[_i];
|
111
|
+
dayNames.long.push(weekday.nameLong);
|
112
|
+
dayNames.short.push(weekday.nameShort);
|
113
|
+
dayNames.narrow.push(weekday.nameNarrow);
|
114
|
+
}
|
115
|
+
var locale = {
|
116
|
+
firstDayOfWeek: firstDayOfWeek,
|
117
|
+
dayNames: dayNames.long,
|
118
|
+
dayNamesShort: dayNames.short,
|
119
|
+
dayNamesMin: dayNames.short, // using short instead of narrow on purpose
|
120
|
+
monthNames: (0, common_1.getMonthNames)(localeCode, 'long'),
|
121
|
+
monthNamesShort: (0, common_1.getMonthNames)(localeCode, 'short'),
|
122
|
+
today: localization_1.localization.translations.today,
|
123
|
+
clear: localization_1.localization.translations.clear,
|
124
|
+
};
|
125
|
+
return locale;
|
126
|
+
}
|
87
127
|
var DatePicker = /** @class */ (function (_super) {
|
88
128
|
__extends(DatePicker, _super);
|
89
129
|
function DatePicker(props) {
|
@@ -125,10 +165,6 @@ var DatePicker = /** @class */ (function (_super) {
|
|
125
165
|
};
|
126
166
|
DatePicker.prototype.render = function () {
|
127
167
|
var _this = this;
|
128
|
-
var locale;
|
129
|
-
if (this.props.locale != null) {
|
130
|
-
locale = __assign(__assign({}, this.props.locale), { today: 'today', clear: 'clear' });
|
131
|
-
}
|
132
168
|
if (this.props.preview) {
|
133
169
|
return (
|
134
170
|
// We have to do type assertion here because we wrap primereact's component using
|
@@ -137,6 +173,20 @@ var DatePicker = /** @class */ (function (_super) {
|
|
137
173
|
React.createElement("div", null,
|
138
174
|
React.createElement("span", null, (0, moment_1.default)(this.state.value).format(this.props.dateFormat))));
|
139
175
|
}
|
176
|
+
var locale = (function () {
|
177
|
+
if (_this.props.locale == null) {
|
178
|
+
return undefined;
|
179
|
+
}
|
180
|
+
else if (_this.props.locale.type === 'code-only') {
|
181
|
+
return getDatePickerLocale(_this.props.locale.code);
|
182
|
+
}
|
183
|
+
else if (_this.props.locale.type === 'full') {
|
184
|
+
return __assign(__assign({}, _this.props.locale.payload), { today: localization_1.localization.translations.today, clear: localization_1.localization.translations.clear });
|
185
|
+
}
|
186
|
+
else {
|
187
|
+
return (0, helpers_1.assertNever)(_this.props.locale);
|
188
|
+
}
|
189
|
+
})();
|
140
190
|
var showClearButton = this.props.required === true
|
141
191
|
? false
|
142
192
|
: this.props.hideClearButton !== true;
|
@@ -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"));
|