superdesk-ui-framework 4.0.49 → 4.0.51
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/styles/form-elements/_checkbox.scss +5 -5
- package/app-typescript/components/DateTimePicker.tsx +2 -0
- package/app-typescript/components/TimePicker.tsx +1 -1
- package/dist/examples.bundle.js +4 -4
- package/dist/superdesk-ui.bundle.css +4 -4
- package/dist/superdesk-ui.bundle.js +3 -3
- package/package.json +1 -1
- package/react/components/DateTimePicker.js +2 -2
- package/react/components/TimePicker.js +1 -1
|
@@ -61,7 +61,7 @@ $checkButtonBorderRadius: $border-radius__base--small;
|
|
|
61
61
|
background-color: var(--sd-colour-interactive--hover);
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
|
|
64
|
+
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
// Modifier for .sd-checkbox to create a radio button
|
|
@@ -295,7 +295,7 @@ $checkButtonBorderRadius: $border-radius__base--small;
|
|
|
295
295
|
.sd-check-new--disabled, .sd-check-new[disabled="disabled"] {
|
|
296
296
|
opacity: 0.40;
|
|
297
297
|
cursor: not-allowed !important;
|
|
298
|
-
|
|
298
|
+
|
|
299
299
|
&:hover {
|
|
300
300
|
color: $checkButtonTextColor;
|
|
301
301
|
border-color: $checkButtonBorderColor;
|
|
@@ -675,8 +675,8 @@ $checkButtonBorderRadius: $border-radius__base--small;
|
|
|
675
675
|
& ~ label {
|
|
676
676
|
opacity: 1;
|
|
677
677
|
color: $white;
|
|
678
|
-
background-color: var(--sd-colour-interactive
|
|
679
|
-
border-color: var(--sd-colour-interactive
|
|
678
|
+
background-color: var(--sd-colour-interactive);
|
|
679
|
+
border-color: var(--sd-colour-interactive);
|
|
680
680
|
border-top-color: var(--sd-colour-interactive--darken-20);
|
|
681
681
|
box-shadow: inset 0 2px 0 0 rgba(0, 0, 0, 0.2);
|
|
682
682
|
}
|
|
@@ -748,7 +748,7 @@ $checkButtonBorderRadius: $border-radius__base--small;
|
|
|
748
748
|
border-top-color: var(--sd-colour-interactive--darken-20);
|
|
749
749
|
box-shadow: inset 0 2px 0 0 hsla(0, 0%, 0%, 0.2);
|
|
750
750
|
color: $white;
|
|
751
|
-
|
|
751
|
+
|
|
752
752
|
&:hover {
|
|
753
753
|
color: $white;
|
|
754
754
|
border-color: var(--sd-colour-interactive--active);
|
|
@@ -160,6 +160,7 @@ export class DateTimePicker extends React.PureComponent<IProps> {
|
|
|
160
160
|
inlineLabel
|
|
161
161
|
labelHidden
|
|
162
162
|
fullWidth={this.props.fullWidth}
|
|
163
|
+
data-test-id="date-input"
|
|
163
164
|
/>
|
|
164
165
|
</div>
|
|
165
166
|
<div style={{flexGrow: 1}}>
|
|
@@ -175,6 +176,7 @@ export class DateTimePicker extends React.PureComponent<IProps> {
|
|
|
175
176
|
required={this.props.required}
|
|
176
177
|
headerTemplate={this.props.timeHeaderTemplate}
|
|
177
178
|
footerTemplate={this.props.timeFooterTemplate}
|
|
179
|
+
data-test-id="time-input"
|
|
178
180
|
/>
|
|
179
181
|
</div>
|
|
180
182
|
{this.props.preview !== true && (
|
|
@@ -83,7 +83,7 @@ export class TimePicker extends React.PureComponent<IProps, IState> {
|
|
|
83
83
|
cursor: 'pointer',
|
|
84
84
|
}}
|
|
85
85
|
ref={this.timeInputRef}
|
|
86
|
-
value={this.props.value ??
|
|
86
|
+
value={this.props.value ?? ''}
|
|
87
87
|
type="time"
|
|
88
88
|
onClick={(e) => {
|
|
89
89
|
// don't show default popup
|
package/dist/examples.bundle.js
CHANGED
|
@@ -61877,7 +61877,7 @@ var TimePicker = /** @class */ (function (_super) {
|
|
|
61877
61877
|
}, allowSeconds: this.props.allowSeconds, headerTemplate: this.props.headerTemplate, footerTemplate: this.props.footerTemplate }))),
|
|
61878
61878
|
React.createElement("input", { style: {
|
|
61879
61879
|
cursor: 'pointer',
|
|
61880
|
-
}, ref: this.timeInputRef, value: (_a = this.props.value) !== null && _a !== void 0 ? _a :
|
|
61880
|
+
}, ref: this.timeInputRef, value: (_a = this.props.value) !== null && _a !== void 0 ? _a : '', type: "time", onClick: function (e) {
|
|
61881
61881
|
// don't show default popup
|
|
61882
61882
|
e.preventDefault();
|
|
61883
61883
|
_this.setState({
|
|
@@ -127760,9 +127760,9 @@ var DateTimePicker = /** @class */ (function (_super) {
|
|
|
127760
127760
|
return (React.createElement(Form_1.InputWrapper, { label: this.props.label, error: this.props.error, invalid: this.props.error != null, required: this.props.required, disabled: this.props.disabled, info: this.props.info, inlineLabel: this.props.inlineLabel, labelHidden: this.props.labelHidden, htmlId: this.htmlId, tabindex: this.props.tabindex, fullWidth: this.props.fullWidth, inputWrapper: this.props.inputWrapper, "data-test-id": this.props['data-test-id'], ref: this.props.ref },
|
|
127761
127761
|
React.createElement(common_1.Spacer, { h: true, gap: "8", alignItems: "end", noWrap: true },
|
|
127762
127762
|
React.createElement("div", { style: { flexGrow: 1 } },
|
|
127763
|
-
React.createElement(DatePicker_1.DatePicker, { disabled: this.props.disabled, preview: this.props.preview, required: this.props.required, hideClearButton: true, value: dateValue, onChange: this.handleDateChange, dateFormat: this.props.dateFormat, inlineLabel: true, labelHidden: true, fullWidth: this.props.fullWidth })),
|
|
127763
|
+
React.createElement(DatePicker_1.DatePicker, { disabled: this.props.disabled, preview: this.props.preview, required: this.props.required, hideClearButton: true, value: dateValue, onChange: this.handleDateChange, dateFormat: this.props.dateFormat, inlineLabel: true, labelHidden: true, fullWidth: this.props.fullWidth, "data-test-id": "date-input" })),
|
|
127764
127764
|
React.createElement("div", { style: { flexGrow: 1 } },
|
|
127765
|
-
React.createElement(TimePicker_1.TimePicker, { disabled: this.props.disabled, preview: this.props.preview, value: timeValue, onChange: this.handleTimeChange, inlineLabel: true, labelHidden: true, allowSeconds: this.props.allowSeconds, fullWidth: this.props.fullWidth, required: this.props.required, headerTemplate: this.props.timeHeaderTemplate, footerTemplate: this.props.timeFooterTemplate })),
|
|
127765
|
+
React.createElement(TimePicker_1.TimePicker, { disabled: this.props.disabled, preview: this.props.preview, value: timeValue, onChange: this.handleTimeChange, inlineLabel: true, labelHidden: true, allowSeconds: this.props.allowSeconds, fullWidth: this.props.fullWidth, required: this.props.required, headerTemplate: this.props.timeHeaderTemplate, footerTemplate: this.props.timeFooterTemplate, "data-test-id": "time-input" })),
|
|
127766
127766
|
this.props.preview !== true && (React.createElement(IconButton_1.IconButton, { disabled: this.props.disabled, icon: "remove-sign", onClick: this.handleClear, ariaValue: "Clear" })))));
|
|
127767
127767
|
};
|
|
127768
127768
|
return DateTimePicker;
|
|
@@ -191060,7 +191060,7 @@ exports.ThreePaneLayoutPattern = ThreePaneLayoutPattern;
|
|
|
191060
191060
|
/* 959 */
|
|
191061
191061
|
/***/ (function(module, exports) {
|
|
191062
191062
|
|
|
191063
|
-
module.exports = {"name":"superdesk-ui-framework","version":"4.0.
|
|
191063
|
+
module.exports = {"name":"superdesk-ui-framework","version":"4.0.51","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":"tsc -p tsconfig.json --noEmit && webpack --config tasks/webpack.prod.js && tsc","build-ui":"webpack && tsc && npm run lint","playground-lint":"tsc -p examples/pages/playgrounds/react-playgrounds --noEmit","format-code":"npx prettier . --write","lint":"tsc -p tsconfig.json --noEmit && npx prettier . --check && eslint --parser=@typescript-eslint/parser app && tslint -c tslint.json 'app-typescript/**/*.{ts,tsx}' && npm run playground-lint","lint-fix":"tsc -p tsconfig.json --noEmit && tslint --fix -c tslint.json 'app-typescript/**/*.{ts,tsx}'","prepublishOnly":"npm run build","unit-test":"mocha","debug-unit-tests":"mocha --inspect-brk"},"devDependencies":{"@types/assert":"^1.5.6","@types/chart.js":"^2.9.24","@types/classnames":"^2.2.9","@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/lodash":"^4.14.161","@types/mocha":"^9.1.1","@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.58.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","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.7","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","jsdom":"20.0.3","jsdom-global":"3.0.2","lodash":"4.17.21","mocha":"^8.4.0","moment":"^2.29.3","node-sass":"6.0","prettier":"3.5.3","prismjs":"^1.28.0","prop-types":"^15.6.0","react":"16.8.6","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","ts-node":"^10.9.1","tslint":"^5.18.0","typescript":"^5.8.3","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":{"@popperjs/core":"^2.4.0","@sourcefabric/common":"0.0.63","@superdesk/primereact":"^5.0.2-13","@superdesk/react-resizable-panels":"0.0.39","chart.js":"^2.9.3","date-fns":"2.7.0","popper-max-size-modifier":"^0.2.0","popper.js":"1.14.4","primeicons":"2.0.0","react-beautiful-dnd":"^13.0.0","react-id-generator":"^3.0.0","react-scrollspy":"^3.4.3","tippy.js":"^6.3.7","weekstart":"^2.0.0"},"peerDependencies":{"moment":"*"},"volta":{"node":"14.21.3"}}
|
|
191064
191064
|
|
|
191065
191065
|
/***/ }),
|
|
191066
191066
|
/* 960 */
|
|
@@ -41236,8 +41236,8 @@ textarea.sd-media-carousel__media-title {
|
|
|
41236
41236
|
.sd-check-button .sd-check-button__input:checked ~ label {
|
|
41237
41237
|
opacity: 1;
|
|
41238
41238
|
color: white;
|
|
41239
|
-
background-color: var(--sd-colour-interactive
|
|
41240
|
-
border-color: var(--sd-colour-interactive
|
|
41239
|
+
background-color: var(--sd-colour-interactive);
|
|
41240
|
+
border-color: var(--sd-colour-interactive);
|
|
41241
41241
|
border-top-color: var(--sd-colour-interactive--darken-20);
|
|
41242
41242
|
box-shadow: inset 0 2px 0 0 rgba(0, 0, 0, 0.2); }
|
|
41243
41243
|
|
|
@@ -54329,8 +54329,8 @@ i.sd-sidetab-menu__helper-icon {
|
|
|
54329
54329
|
.sd-check-button .sd-check-button__input:checked ~ label {
|
|
54330
54330
|
opacity: 1;
|
|
54331
54331
|
color: white;
|
|
54332
|
-
background-color: var(--sd-colour-interactive
|
|
54333
|
-
border-color: var(--sd-colour-interactive
|
|
54332
|
+
background-color: var(--sd-colour-interactive);
|
|
54333
|
+
border-color: var(--sd-colour-interactive);
|
|
54334
54334
|
border-top-color: var(--sd-colour-interactive--darken-20);
|
|
54335
54335
|
box-shadow: inset 0 2px 0 0 rgba(0, 0, 0, 0.2); }
|
|
54336
54336
|
|
|
@@ -61356,7 +61356,7 @@ var TimePicker = /** @class */ (function (_super) {
|
|
|
61356
61356
|
}, allowSeconds: this.props.allowSeconds, headerTemplate: this.props.headerTemplate, footerTemplate: this.props.footerTemplate }))),
|
|
61357
61357
|
React.createElement("input", { style: {
|
|
61358
61358
|
cursor: 'pointer',
|
|
61359
|
-
}, ref: this.timeInputRef, value: (_a = this.props.value) !== null && _a !== void 0 ? _a :
|
|
61359
|
+
}, ref: this.timeInputRef, value: (_a = this.props.value) !== null && _a !== void 0 ? _a : '', type: "time", onClick: function (e) {
|
|
61360
61360
|
// don't show default popup
|
|
61361
61361
|
e.preventDefault();
|
|
61362
61362
|
_this.setState({
|
|
@@ -126856,9 +126856,9 @@ var DateTimePicker = /** @class */ (function (_super) {
|
|
|
126856
126856
|
return (React.createElement(Form_1.InputWrapper, { label: this.props.label, error: this.props.error, invalid: this.props.error != null, required: this.props.required, disabled: this.props.disabled, info: this.props.info, inlineLabel: this.props.inlineLabel, labelHidden: this.props.labelHidden, htmlId: this.htmlId, tabindex: this.props.tabindex, fullWidth: this.props.fullWidth, inputWrapper: this.props.inputWrapper, "data-test-id": this.props['data-test-id'], ref: this.props.ref },
|
|
126857
126857
|
React.createElement(common_1.Spacer, { h: true, gap: "8", alignItems: "end", noWrap: true },
|
|
126858
126858
|
React.createElement("div", { style: { flexGrow: 1 } },
|
|
126859
|
-
React.createElement(DatePicker_1.DatePicker, { disabled: this.props.disabled, preview: this.props.preview, required: this.props.required, hideClearButton: true, value: dateValue, onChange: this.handleDateChange, dateFormat: this.props.dateFormat, inlineLabel: true, labelHidden: true, fullWidth: this.props.fullWidth })),
|
|
126859
|
+
React.createElement(DatePicker_1.DatePicker, { disabled: this.props.disabled, preview: this.props.preview, required: this.props.required, hideClearButton: true, value: dateValue, onChange: this.handleDateChange, dateFormat: this.props.dateFormat, inlineLabel: true, labelHidden: true, fullWidth: this.props.fullWidth, "data-test-id": "date-input" })),
|
|
126860
126860
|
React.createElement("div", { style: { flexGrow: 1 } },
|
|
126861
|
-
React.createElement(TimePicker_1.TimePicker, { disabled: this.props.disabled, preview: this.props.preview, value: timeValue, onChange: this.handleTimeChange, inlineLabel: true, labelHidden: true, allowSeconds: this.props.allowSeconds, fullWidth: this.props.fullWidth, required: this.props.required, headerTemplate: this.props.timeHeaderTemplate, footerTemplate: this.props.timeFooterTemplate })),
|
|
126861
|
+
React.createElement(TimePicker_1.TimePicker, { disabled: this.props.disabled, preview: this.props.preview, value: timeValue, onChange: this.handleTimeChange, inlineLabel: true, labelHidden: true, allowSeconds: this.props.allowSeconds, fullWidth: this.props.fullWidth, required: this.props.required, headerTemplate: this.props.timeHeaderTemplate, footerTemplate: this.props.timeFooterTemplate, "data-test-id": "time-input" })),
|
|
126862
126862
|
this.props.preview !== true && (React.createElement(IconButton_1.IconButton, { disabled: this.props.disabled, icon: "remove-sign", onClick: this.handleClear, ariaValue: "Clear" })))));
|
|
126863
126863
|
};
|
|
126864
126864
|
return DateTimePicker;
|
package/package.json
CHANGED
|
@@ -158,9 +158,9 @@ var DateTimePicker = /** @class */ (function (_super) {
|
|
|
158
158
|
return (React.createElement(Form_1.InputWrapper, { label: this.props.label, error: this.props.error, invalid: this.props.error != null, required: this.props.required, disabled: this.props.disabled, info: this.props.info, inlineLabel: this.props.inlineLabel, labelHidden: this.props.labelHidden, htmlId: this.htmlId, tabindex: this.props.tabindex, fullWidth: this.props.fullWidth, inputWrapper: this.props.inputWrapper, "data-test-id": this.props['data-test-id'], ref: this.props.ref },
|
|
159
159
|
React.createElement(common_1.Spacer, { h: true, gap: "8", alignItems: "end", noWrap: true },
|
|
160
160
|
React.createElement("div", { style: { flexGrow: 1 } },
|
|
161
|
-
React.createElement(DatePicker_1.DatePicker, { disabled: this.props.disabled, preview: this.props.preview, required: this.props.required, hideClearButton: true, value: dateValue, onChange: this.handleDateChange, dateFormat: this.props.dateFormat, inlineLabel: true, labelHidden: true, fullWidth: this.props.fullWidth })),
|
|
161
|
+
React.createElement(DatePicker_1.DatePicker, { disabled: this.props.disabled, preview: this.props.preview, required: this.props.required, hideClearButton: true, value: dateValue, onChange: this.handleDateChange, dateFormat: this.props.dateFormat, inlineLabel: true, labelHidden: true, fullWidth: this.props.fullWidth, "data-test-id": "date-input" })),
|
|
162
162
|
React.createElement("div", { style: { flexGrow: 1 } },
|
|
163
|
-
React.createElement(TimePicker_1.TimePicker, { disabled: this.props.disabled, preview: this.props.preview, value: timeValue, onChange: this.handleTimeChange, inlineLabel: true, labelHidden: true, allowSeconds: this.props.allowSeconds, fullWidth: this.props.fullWidth, required: this.props.required, headerTemplate: this.props.timeHeaderTemplate, footerTemplate: this.props.timeFooterTemplate })),
|
|
163
|
+
React.createElement(TimePicker_1.TimePicker, { disabled: this.props.disabled, preview: this.props.preview, value: timeValue, onChange: this.handleTimeChange, inlineLabel: true, labelHidden: true, allowSeconds: this.props.allowSeconds, fullWidth: this.props.fullWidth, required: this.props.required, headerTemplate: this.props.timeHeaderTemplate, footerTemplate: this.props.timeFooterTemplate, "data-test-id": "time-input" })),
|
|
164
164
|
this.props.preview !== true && (React.createElement(IconButton_1.IconButton, { disabled: this.props.disabled, icon: "remove-sign", onClick: this.handleClear, ariaValue: "Clear" })))));
|
|
165
165
|
};
|
|
166
166
|
return DateTimePicker;
|
|
@@ -88,7 +88,7 @@ var TimePicker = /** @class */ (function (_super) {
|
|
|
88
88
|
}, allowSeconds: this.props.allowSeconds, headerTemplate: this.props.headerTemplate, footerTemplate: this.props.footerTemplate }))),
|
|
89
89
|
React.createElement("input", { style: {
|
|
90
90
|
cursor: 'pointer',
|
|
91
|
-
}, ref: this.timeInputRef, value: (_a = this.props.value) !== null && _a !== void 0 ? _a :
|
|
91
|
+
}, ref: this.timeInputRef, value: (_a = this.props.value) !== null && _a !== void 0 ? _a : '', type: "time", onClick: function (e) {
|
|
92
92
|
// don't show default popup
|
|
93
93
|
e.preventDefault();
|
|
94
94
|
_this.setState({
|