superdesk-ui-framework 3.0.1-beta.19 → 3.0.1-beta.20
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.
@@ -365,7 +365,7 @@ export class DurationInput extends React.PureComponent<IProps, IState> {
|
|
365
365
|
}
|
366
366
|
}
|
367
367
|
|
368
|
-
export function getDurationString(seconds: number, minSections: 1 | 2 | 3) {
|
368
|
+
export function getDurationString(seconds: number, minSections: 1 | 2 | 3 = 1) {
|
369
369
|
function zeroPad(value: number | string) {
|
370
370
|
if (value.toString().length === 1 || value === 0) {
|
371
371
|
return `0${value}`;
|
package/dist/examples.bundle.js
CHANGED
@@ -40809,6 +40809,7 @@ var DurationInput = /** @class */ (function (_super) {
|
|
40809
40809
|
}(React.PureComponent));
|
40810
40810
|
exports.DurationInput = DurationInput;
|
40811
40811
|
function getDurationString(seconds, minSections) {
|
40812
|
+
if (minSections === void 0) { minSections = 1; }
|
40812
40813
|
function zeroPad(value) {
|
40813
40814
|
if (value.toString().length === 1 || value === 0) {
|
40814
40815
|
return "0".concat(value);
|
@@ -137910,7 +137911,7 @@ exports.WithSizeObserverDocs = WithSizeObserverDocs;
|
|
137910
137911
|
/* 649 */
|
137911
137912
|
/***/ (function(module, exports) {
|
137912
137913
|
|
137913
|
-
module.exports = {"name":"superdesk-ui-framework","version":"3.0.1-beta.
|
137914
|
+
module.exports = {"name":"superdesk-ui-framework","version":"3.0.1-beta.20","license":"AGPL-3.0","repository":{"type":"git","url":"https://github.com/superdesk/superdesk-ui-framework.git"},"main":"dist/superdesk-ui.bundle.js","types":"react/index.d.ts","contributors":["Nemanja Pavlovic","Vladimir Stefanovic","Darko Tomic","Aleksandar Jelicic","Tomas Kikutis","Dragana Zivkovic"],"scripts":{"start":"webpack-dev-server --config tasks/webpack.dev.js","server":"webpack --watch --config tasks/webpack.prod.js && tsc-watch","build":"webpack --config tasks/webpack.prod.js && tsc","build-ui":"webpack && tsc && npm run lint","lint":"eslint --parser=@typescript-eslint/parser app && tslint -c tslint.json 'app-typescript/**/*.{ts,tsx}'","lint-fix":"tsc -p tsconfig.json --noEmit && tslint --fix -c tslint.json 'app-typescript/**/*.{ts,tsx}'","prepublishOnly":"npm run build"},"devDependencies":{"@types/chart.js":"^2.9.24","@types/classnames":"^2.2.9","@types/lodash":"^4.14.161","@types/react":"16.8.23","@types/react-beautiful-dnd":"^13.1.2","@types/react-dom":"16.8.0","@types/react-router-dom":"^5.1.2","@types/react-scrollspy":"^3.3.5","@typescript-eslint/parser":"5.14.0","angular":"^1.7.9","angular-animate":"^1.7.9","angular-route":"^1.7.9","babel-core":"^6.26.0","babel-loader":"^7.1.2","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-preset-es2015":"^6.24.1","babel-preset-react":"^6.24.1","classnames":"^2.2.5","clean-webpack-plugin":"^1.0.0","code-prettify":"^0.1.0","copy-webpack-plugin":"^4.6.0","css-loader":"^2.1.1","eslint":"^4.6.1","eslint-loader":"^1.9.0","eslint-plugin-angular":"^3.1.1","eslint-plugin-react":"^7.3.0","extract-text-webpack-plugin":"^3.0.2","file-loader":"^0.11.2","html-loader":"^0.5.1","html-webpack-plugin":"^2.30.1","jquery":"^3.1.1","jquery-ui":"^1.12.1","lodash":"4.17.21","node-sass":"6.0","prismjs":"^1.28.0","prop-types":"^15.6.0","react":"16.8.6","react-bootstrap":"^0.31.2","react-dom":"16.8.6","react-redux":"^5.0.6","react-router-dom":"^5.1.2","redux":"^3.7.2","redux-form":"^7.0.4","sass-loader":"^6.0.6","style-loader":"^0.18.2","superdesk-code-style":"^1.1.2","ts-loader":"^6.0.2","tslint":"^5.18.0","typescript":"4.5.2","url-loader":"^1.1.2","webpack":"^3.5.5","webpack-cli":"3.3.10","webpack-dev-server":"2.11.1","webpack-merge":"^4.2.1"},"dependencies":{"@material-ui/lab":"^4.0.0-alpha.56","@popperjs/core":"^2.4.0","@superdesk/primereact":"^5.0.2-6","@types/node":"^14.10.2","chart.js":"^2.9.3","date-fns":"2.7.0","moment":"^2.29.3","popper.js":"1.14.4","primeicons":"2.0.0","react-beautiful-dnd":"^13.0.0","react-id-generator":"^3.0.0","react-popper":"^2.2.3","react-scrollspy":"^3.4.3"}}
|
137914
137915
|
|
137915
137916
|
/***/ }),
|
137916
137917
|
/* 650 */
|
@@ -40453,6 +40453,7 @@ var DurationInput = /** @class */ (function (_super) {
|
|
40453
40453
|
}(React.PureComponent));
|
40454
40454
|
exports.DurationInput = DurationInput;
|
40455
40455
|
function getDurationString(seconds, minSections) {
|
40456
|
+
if (minSections === void 0) { minSections = 1; }
|
40456
40457
|
function zeroPad(value) {
|
40457
40458
|
if (value.toString().length === 1 || value === 0) {
|
40458
40459
|
return "0".concat(value);
|
package/package.json
CHANGED
@@ -38,5 +38,5 @@ export declare class DurationInput extends React.PureComponent<IProps, IState> {
|
|
38
38
|
handleFocusOnKeyUp(event: React.KeyboardEvent<HTMLInputElement>, ref: HTMLInputElement | null): void;
|
39
39
|
render(): JSX.Element;
|
40
40
|
}
|
41
|
-
export declare function getDurationString(seconds: number, minSections
|
41
|
+
export declare function getDurationString(seconds: number, minSections?: 1 | 2 | 3): string;
|
42
42
|
export {};
|
@@ -323,6 +323,7 @@ var DurationInput = /** @class */ (function (_super) {
|
|
323
323
|
}(React.PureComponent));
|
324
324
|
exports.DurationInput = DurationInput;
|
325
325
|
function getDurationString(seconds, minSections) {
|
326
|
+
if (minSections === void 0) { minSections = 1; }
|
326
327
|
function zeroPad(value) {
|
327
328
|
if (value.toString().length === 1 || value === 0) {
|
328
329
|
return "0".concat(value);
|