superdesk-ui-framework 3.0.1-beta.17 → 3.0.1-beta.19
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/.vscode/settings.json +5 -0
- package/app/styles/_content-divider.scss +58 -3
- package/app-typescript/components/ContentDivider.tsx +3 -0
- package/app-typescript/components/Dropdown.tsx +6 -2
- package/app-typescript/components/DurationInput.tsx +32 -17
- package/app-typescript/components/Spacer.tsx +87 -0
- package/app-typescript/dist/components/Alert.d.ts +16 -0
- package/app-typescript/dist/components/Autocomplete.d.ts +48 -0
- package/app-typescript/dist/components/Avatar.d.ts +33 -0
- package/app-typescript/dist/components/Badge.d.ts +13 -0
- package/app-typescript/dist/components/Button.d.ts +23 -0
- package/app-typescript/dist/components/ButtonGroup.d.ts +12 -0
- package/app-typescript/dist/components/CheckButtonGroup.d.ts +11 -0
- package/app-typescript/dist/components/CheckGroup.d.ts +9 -0
- package/app-typescript/dist/components/Checkbox.d.ts +19 -0
- package/app-typescript/dist/components/CheckboxButton.d.ts +19 -0
- package/app-typescript/dist/components/DatePicker.d.ts +37 -0
- package/app-typescript/dist/components/Divider.d.ts +9 -0
- package/app-typescript/dist/components/DonutChart.d.ts +12 -0
- package/app-typescript/dist/components/Dropdown.d.ts +28 -0
- package/app-typescript/dist/components/DropdownFirst.d.ts +42 -0
- package/app-typescript/dist/components/EmptyState.d.ts +11 -0
- package/app-typescript/dist/components/FormLabel.d.ts +9 -0
- package/app-typescript/dist/components/Genie.d.ts +13 -0
- package/app-typescript/dist/components/GridItem.d.ts +69 -0
- package/app-typescript/dist/components/GridList.d.ts +14 -0
- package/app-typescript/dist/components/HeadingText.d.ts +10 -0
- package/app-typescript/dist/components/HelloWorld.d.ts +8 -0
- package/app-typescript/dist/components/Icon.d.ts +12 -0
- package/app-typescript/dist/components/IconButton.d.ts +12 -0
- package/app-typescript/dist/components/IconLabel.d.ts +11 -0
- package/app-typescript/dist/components/Input.d.ts +24 -0
- package/app-typescript/dist/components/Label.d.ts +15 -0
- package/app-typescript/dist/components/LeftMenu.d.ts +26 -0
- package/app-typescript/dist/components/Loader.d.ts +8 -0
- package/app-typescript/dist/components/NavButton.d.ts +15 -0
- package/app-typescript/dist/components/Popover.d.ts +13 -0
- package/app-typescript/dist/components/PropsList.d.ts +15 -0
- package/app-typescript/dist/components/Radio.d.ts +19 -0
- package/app-typescript/dist/components/RadioButton.d.ts +20 -0
- package/app-typescript/dist/components/Select.d.ts +29 -0
- package/app-typescript/dist/components/SelectWithTemplate.d.ts +32 -0
- package/app-typescript/dist/components/SlidingToolbar.d.ts +8 -0
- package/app-typescript/dist/components/StrechBar.d.ts +4 -0
- package/app-typescript/dist/components/SubNav.d.ts +10 -0
- package/app-typescript/dist/components/Switch.d.ts +12 -0
- package/app-typescript/dist/components/TabCustom.d.ts +25 -0
- package/app-typescript/dist/components/TabList.d.ts +22 -0
- package/app-typescript/dist/components/Tag.d.ts +9 -0
- package/app-typescript/dist/components/TagInput.d.ts +7 -0
- package/app-typescript/dist/components/TagInputTest.d.ts +18 -0
- package/app-typescript/dist/components/TimePicker.d.ts +11 -0
- package/app-typescript/dist/components/Tooltip.d.ts +11 -0
- package/app-typescript/dist/components/_Positioner.d.ts +27 -0
- package/app-typescript/dist/index.d.ts +56 -0
- package/dist/examples.bundle.js +184 -42
- package/dist/react/ContentDivider.tsx +18 -14
- package/dist/react/ContentList.tsx +187 -3
- package/dist/react/DurationInput.tsx +7 -3
- package/dist/react/TableList.tsx +21 -4
- package/dist/superdesk-ui.bundle.css +41 -3
- package/dist/superdesk-ui.bundle.js +43 -22
- package/examples/pages/react/ContentDivider.tsx +18 -14
- package/examples/pages/react/ContentList.tsx +187 -3
- package/examples/pages/react/DurationInput.tsx +7 -3
- package/examples/pages/react/TableList.tsx +21 -4
- package/package.json +1 -1
- package/react/components/ContentDivider.d.ts +1 -0
- package/react/components/ContentDivider.js +2 -0
- package/react/components/Dropdown.js +6 -2
- package/react/components/DurationInput.d.ts +1 -1
- package/react/components/DurationInput.js +35 -20
- package/yarn-error.log +111 -0
@@ -0,0 +1,56 @@
|
|
1
|
+
export { HelloWorld } from './components/HelloWorld';
|
2
|
+
export { Button } from './components/Button';
|
3
|
+
export { Input } from './components/Input';
|
4
|
+
export { Select, Option } from './components/Select';
|
5
|
+
export { SelectWithTemplate } from './components/SelectWithTemplate';
|
6
|
+
export { Popover } from './components/Popover';
|
7
|
+
export { Label } from './components/Label';
|
8
|
+
export { Badge } from './components/Badge';
|
9
|
+
export { Alert } from './components/Alert';
|
10
|
+
export { AvatarWrapper } from './components/Avatar';
|
11
|
+
export { AvatarContentText } from './components/Avatar';
|
12
|
+
export { AvatarContentImage } from './components/Avatar';
|
13
|
+
export { IconButton } from './components/IconButton';
|
14
|
+
export { IconLabel } from './components/IconLabel';
|
15
|
+
export { Tooltip } from './components/Tooltip';
|
16
|
+
export { DatePicker } from './components/DatePicker';
|
17
|
+
export { DatePickerISO } from './components/DatePicker';
|
18
|
+
export { DatePickerLocaleSettings } from './components/DatePicker';
|
19
|
+
export { TimePicker } from './components/TimePicker';
|
20
|
+
export { FormLabel } from './components/FormLabel';
|
21
|
+
export { Switch } from './components/Switch';
|
22
|
+
export { ButtonGroup } from './components/ButtonGroup';
|
23
|
+
export { Loader } from './components/Loader';
|
24
|
+
export { Radio } from './components/Radio';
|
25
|
+
export { Checkbox } from './components/Checkbox';
|
26
|
+
export { RadioButton } from './components/RadioButton';
|
27
|
+
export { CheckboxButton } from './components/CheckboxButton';
|
28
|
+
export { CheckGroup } from './components/CheckGroup';
|
29
|
+
export { CheckButtonGroup } from './components/CheckButtonGroup';
|
30
|
+
export { NavButton } from './components/NavButton';
|
31
|
+
export { Tab, TabList } from './components/TabList';
|
32
|
+
export { LeftMenu } from './components/LeftMenu';
|
33
|
+
export { SubNav } from './components/SubNav';
|
34
|
+
export { SlidingToolbar } from './components/SlidingToolbar';
|
35
|
+
export { StrechBar } from './components/StrechBar';
|
36
|
+
export { PropsList, Prop } from './components/PropsList';
|
37
|
+
export { Icon } from './components/Icon';
|
38
|
+
export { Divider } from './components/Divider';
|
39
|
+
export { HeadingText } from './components/HeadingText';
|
40
|
+
export { DropdownFirst } from './components/DropdownFirst';
|
41
|
+
export { DropdownItem } from './components/DropdownFirst';
|
42
|
+
export { DropdownLabel } from './components/DropdownFirst';
|
43
|
+
export { DropdownDivider } from './components/DropdownFirst';
|
44
|
+
export { Dropdown } from './components/Dropdown';
|
45
|
+
export { Tag } from './components/Tag';
|
46
|
+
export { TabLabel, TabPanel, TabContent, Tabs } from './components/TabCustom';
|
47
|
+
export { EmptyState } from './components/EmptyState';
|
48
|
+
export { Autocomplete } from './components/Autocomplete';
|
49
|
+
export { DonutChart } from './components/DonutChart';
|
50
|
+
export { TagInput } from './components/TagInput';
|
51
|
+
export { TagInputTest } from './components/TagInputTest';
|
52
|
+
export { Genie } from './components/Genie';
|
53
|
+
export { GridList } from './components/GridList';
|
54
|
+
export { GridItem, GridItemContent, GridItemMedia, GridItemFooter, GridItemContentBlock, GridItemTime, GridItemTitle, GridItemText, GridItemSlug, GridItemFooterBlock, GridItemFooterActions, GridItemTopActions, GridItemCheckWrapper } from './components/GridItem';
|
55
|
+
export declare const ToggleBoxNext: any;
|
56
|
+
export declare const reactToAngular1: any;
|
package/dist/examples.bundle.js
CHANGED
@@ -40627,14 +40627,18 @@ var DurationInput = /** @class */ (function (_super) {
|
|
40627
40627
|
}, 500);
|
40628
40628
|
}
|
40629
40629
|
}
|
40630
|
-
if (
|
40631
|
-
|
40632
|
-
|
40633
|
-
this.
|
40634
|
-
|
40635
|
-
|
40636
|
-
|
40637
|
-
|
40630
|
+
if (this.hourRef.current.value.length === 2
|
40631
|
+
&& this.minuteRef.current.value.length === 2
|
40632
|
+
&& this.secondRef.current.value.length === 2) {
|
40633
|
+
if ((this.props.hours !== prevProps.hours)
|
40634
|
+
|| (this.props.minutes !== prevProps.minutes)
|
40635
|
+
|| (this.props.seconds !== prevProps.seconds)) {
|
40636
|
+
this.setState({
|
40637
|
+
hours: this.stateUpdate('hours', this.props.hours, this.props.minutes, this.props.seconds),
|
40638
|
+
minutes: this.stateUpdate('minutes', this.props.minutes, this.props.seconds),
|
40639
|
+
seconds: this.stateUpdate('seconds', this.props.seconds),
|
40640
|
+
});
|
40641
|
+
}
|
40638
40642
|
}
|
40639
40643
|
};
|
40640
40644
|
DurationInput.prototype.valueUpdate = function () {
|
@@ -40738,12 +40742,15 @@ var DurationInput = /** @class */ (function (_super) {
|
|
40738
40742
|
};
|
40739
40743
|
DurationInput.prototype.handleChange = function (event, state) {
|
40740
40744
|
var stateClone = {};
|
40741
|
-
if (event.target.value.length
|
40742
|
-
if (event.target.selectionStart === 1
|
40743
|
-
stateClone[state] = event.target.value.slice(0, 1)
|
40745
|
+
if (event.target.value.length > 2) {
|
40746
|
+
if (event.target.selectionStart === 1) {
|
40747
|
+
stateClone[state] = event.target.value.slice(0, 1);
|
40748
|
+
}
|
40749
|
+
else if (event.target.selectionStart === 2) {
|
40750
|
+
stateClone[state] = event.target.value.slice(1, 2);
|
40744
40751
|
}
|
40745
40752
|
else {
|
40746
|
-
stateClone[state] = event.target.value.slice(
|
40753
|
+
stateClone[state] = event.target.value.slice(2, 3);
|
40747
40754
|
}
|
40748
40755
|
}
|
40749
40756
|
else {
|
@@ -40779,19 +40786,19 @@ var DurationInput = /** @class */ (function (_super) {
|
|
40779
40786
|
var InputClasses = (0, classnames_1.default)('sd-input__duration-input');
|
40780
40787
|
return (React.createElement(Form_1.InputWrapper, { label: this.props.label, error: this.props.error, required: this.props.required, disabled: this.props.disabled, invalid: this.props.invalid, info: this.props.info, inlineLabel: this.props.inlineLabel, labelHidden: this.props.labelHidden, fullWidth: this.props.fullWidth, htmlId: this.htmlId, tabindex: this.props.tabindex },
|
40781
40788
|
React.createElement("div", { className: InputClasses },
|
40782
|
-
React.createElement("input", { className: "duration-input ".concat(this.state.blink === 'hour' ? 'blink_me' : ''), type: 'text', id: 'hours', max: 99, min: 0, ref: this.hourRef, value: this.state.hours, disabled: this.props.disabled, onKeyDown: function (event) { return _this.handleKeyDown(event); }, onKeyUp: function (event) { return _this.handleFocusOnKeyUp(event, _this.minuteRef.current); }, onChange: function (event) { _this.handleChange(event, 'hours'); }, onBlur: function (event) { return _this.setState({ hours: _this.zeroPad(event.target.value) }); }, onKeyPress: function (event) {
|
40789
|
+
React.createElement("input", { className: "duration-input ".concat(this.state.blink === 'hour' ? 'blink_me' : ''), type: 'text', id: 'hours', autoComplete: "off", max: 99, min: 0, ref: this.hourRef, value: this.state.hours, disabled: this.props.disabled, onKeyDown: function (event) { return _this.handleKeyDown(event); }, onKeyUp: function (event) { return _this.handleFocusOnKeyUp(event, _this.minuteRef.current); }, onChange: function (event) { _this.handleChange(event, 'hours'); }, onBlur: function (event) { return _this.setState({ hours: _this.zeroPad(event.target.value) }); }, onKeyPress: function (event) {
|
40783
40790
|
if (!/[0-9]/.test(event.key)) {
|
40784
40791
|
event.preventDefault();
|
40785
40792
|
}
|
40786
40793
|
} }),
|
40787
40794
|
React.createElement("span", { className: 'sd-input__suffix' }, "h"),
|
40788
|
-
React.createElement("input", { className: "duration-input ".concat(this.state.blink === 'minute' ? 'blink_me' : ''), type: 'text', id: 'minutes', ref: this.minuteRef, value: this.state.minutes, disabled: this.props.disabled, onKeyDown: function (event) { return _this.handleKeyDown(event); }, onKeyUp: function (event) { return _this.handleFocusOnKeyUp(event, _this.secondRef.current); }, onChange: function (event) { _this.handleChange(event, 'minutes'); }, onBlur: function (event) { return _this.setState({ minutes: _this.zeroPad(event.target.value) }); }, onKeyPress: function (event) {
|
40795
|
+
React.createElement("input", { className: "duration-input ".concat(this.state.blink === 'minute' ? 'blink_me' : ''), type: 'text', id: 'minutes', autoComplete: "off", ref: this.minuteRef, value: this.state.minutes, disabled: this.props.disabled, onKeyDown: function (event) { return _this.handleKeyDown(event); }, onKeyUp: function (event) { return _this.handleFocusOnKeyUp(event, _this.secondRef.current); }, onChange: function (event) { _this.handleChange(event, 'minutes'); }, onBlur: function (event) { return _this.setState({ minutes: _this.zeroPad(event.target.value) }); }, onKeyPress: function (event) {
|
40789
40796
|
if (!/[0-9]/.test(event.key)) {
|
40790
40797
|
event.preventDefault();
|
40791
40798
|
}
|
40792
40799
|
} }),
|
40793
40800
|
React.createElement("span", { className: 'sd-input__suffix' }, "m"),
|
40794
|
-
React.createElement("input", { className: 'duration-input', type: 'text', id: 'seconds', ref: this.secondRef, value: this.state.seconds, disabled: this.props.disabled, onKeyDown: function (event) { return _this.handleKeyDown(event); }, onKeyUp: function (event) { return _this.handleFocusOnKeyUp(event, _this.hourRef.current); }, onChange: function (event) { _this.handleChange(event, 'seconds'); }, onBlur: function (event) { return _this.setState({ seconds: _this.zeroPad(event.target.value) }); }, onKeyPress: function (event) {
|
40801
|
+
React.createElement("input", { className: 'duration-input', type: 'text', id: 'seconds', autoComplete: "off", ref: this.secondRef, value: this.state.seconds, disabled: this.props.disabled, onKeyDown: function (event) { return _this.handleKeyDown(event); }, onKeyUp: function (event) { return _this.handleFocusOnKeyUp(event, _this.hourRef.current); }, onChange: function (event) { _this.handleChange(event, 'seconds'); }, onBlur: function (event) { return _this.setState({ seconds: _this.zeroPad(event.target.value) }); }, onKeyPress: function (event) {
|
40795
40802
|
if (!/[0-9]/.test(event.key)) {
|
40796
40803
|
event.preventDefault();
|
40797
40804
|
}
|
@@ -40801,7 +40808,7 @@ var DurationInput = /** @class */ (function (_super) {
|
|
40801
40808
|
return DurationInput;
|
40802
40809
|
}(React.PureComponent));
|
40803
40810
|
exports.DurationInput = DurationInput;
|
40804
|
-
function getDurationString(seconds,
|
40811
|
+
function getDurationString(seconds, minSections) {
|
40805
40812
|
function zeroPad(value) {
|
40806
40813
|
if (value.toString().length === 1 || value === 0) {
|
40807
40814
|
return "0".concat(value);
|
@@ -40816,16 +40823,24 @@ function getDurationString(seconds, zero) {
|
|
40816
40823
|
var hour = zeroPad(Math.floor(seconds / 3600));
|
40817
40824
|
var minute = zeroPad(Math.floor((seconds % 3600) / 60));
|
40818
40825
|
var second = zeroPad(Math.floor(seconds % 60));
|
40819
|
-
if (
|
40826
|
+
if (minSections === 3) {
|
40820
40827
|
return "".concat(hour, "h ").concat(minute, "m ").concat(second, "s");
|
40821
40828
|
}
|
40822
|
-
else {
|
40823
|
-
if (Number(hour)
|
40829
|
+
else if (minSections === 2) {
|
40830
|
+
if (Number(hour) > 0) {
|
40831
|
+
return "".concat(hour, "h ").concat(minute, "m ").concat(second, "s");
|
40832
|
+
}
|
40833
|
+
else {
|
40824
40834
|
return "".concat(minute, "m ").concat(second, "s");
|
40825
40835
|
}
|
40826
|
-
|
40836
|
+
}
|
40837
|
+
else {
|
40838
|
+
if (Number(hour) === 0 && Number(minute) === 0) {
|
40827
40839
|
return "".concat(second, "s");
|
40828
40840
|
}
|
40841
|
+
else if (Number(hour) === 0 && Number(minute) > 0) {
|
40842
|
+
return "".concat(minute, "m ").concat(second, "s");
|
40843
|
+
}
|
40829
40844
|
else {
|
40830
40845
|
return "".concat(hour, "h ").concat(minute, "m ").concat(second, "s");
|
40831
40846
|
}
|
@@ -57582,7 +57597,9 @@ var DropdownItem = function (_a) {
|
|
57582
57597
|
var label = _a.label, icon = _a.icon, active = _a.active, onSelect = _a.onSelect, onChange = _a.onChange;
|
57583
57598
|
return (React.createElement("li", { role: 'none', className: active ? 'dropdown__menu-item--active' : '' },
|
57584
57599
|
React.createElement("button", { tabIndex: 0, role: 'menuitem', onClick: function () {
|
57585
|
-
|
57600
|
+
setTimeout(function () {
|
57601
|
+
onSelect();
|
57602
|
+
});
|
57586
57603
|
if (onChange) {
|
57587
57604
|
onChange();
|
57588
57605
|
}
|
@@ -57617,7 +57634,9 @@ var DropdownItemWithSubmenu = function (_a) {
|
|
57617
57634
|
React.createElement("div", { className: 'dropdown', onMouseLeave: function () { return setOpen(false); } },
|
57618
57635
|
React.createElement("button", { className: 'dropdown__toggle dropdown-toggle', "aria-haspopup": "menu", tabIndex: 0, onClick: function () {
|
57619
57636
|
if (item.onSelect) {
|
57620
|
-
|
57637
|
+
setTimeout(function () {
|
57638
|
+
item.onSelect();
|
57639
|
+
});
|
57621
57640
|
}
|
57622
57641
|
if (onChange) {
|
57623
57642
|
onChange();
|
@@ -77108,6 +77127,8 @@ var ContentDivider = /** @class */ (function (_super) {
|
|
77108
77127
|
_a["sd-content-divider--".concat(this.props.type)] = this.props.type || this.props.type !== undefined,
|
77109
77128
|
_a["sd-content-divider--text-".concat(this.props.align)] = this.props.align || this.props.align !== undefined,
|
77110
77129
|
_a["sd-content-divider--".concat(this.props.orientation)] = this.props.orientation || this.props.orientation !== undefined,
|
77130
|
+
_a['sd-content-divider--margin-medium'] = this.props.margin === undefined,
|
77131
|
+
_a["sd-content-divider--margin-".concat(this.props.margin)] = this.props.margin || this.props.margin !== undefined,
|
77111
77132
|
_a));
|
77112
77133
|
if (this.props.children) {
|
77113
77134
|
return (React.createElement("div", { className: "sd-content-divider--with-text " + classes, role: "separator" },
|
@@ -131066,9 +131087,10 @@ var ContentDividerDoc = /** @class */ (function (_super) {
|
|
131066
131087
|
React.createElement("p", null, "Vestibulum id ligula porta felis euismod semper. Integer posuere erat a ante venenatis dapibus posuere velit aliquet. Aenean lacinia bibendum nulla sed consectetur. Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Lorem ipsum dolor sit amet, consectetur adipiscing elit."),
|
131067
131088
|
React.createElement(app_typescript_1.ContentDivider, { type: "dashed" }),
|
131068
131089
|
React.createElement("p", null, "Donec ullamcorper nulla non metus auctor fringilla. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam quis risus eget urna mollis ornare vel eu leo. Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Cras mattis consectetur purus sit amet fermentum. Nulla vitae elit libero, a pharetra augue."),
|
131069
|
-
React.createElement(app_typescript_1.ContentDivider, { type: "dotted" }),
|
131070
|
-
React.createElement("p", null, "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Donec id elit non mi porta gravida at eget metus. Cras justo odio, dapibus ac facilisis in, egestas eget quam.")
|
131071
|
-
|
131090
|
+
React.createElement(app_typescript_1.ContentDivider, { type: "dotted", margin: 'x-small' }),
|
131091
|
+
React.createElement("p", null, "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Donec id elit non mi porta gravida at eget metus. Cras justo odio, dapibus ac facilisis in, egestas eget quam."),
|
131092
|
+
React.createElement(app_typescript_1.ContentDivider, { type: "dotted", margin: 'x-small' }))),
|
131093
|
+
React.createElement(Markup.ReactMarkupCode, null, "\n <p>Maecenas sed diam eget risus varius...</p>\n\n <ContentDivider />\n\n <p>Vestibulum id ligula porta felis euismod...</p>\n\n <ContentDivider type=\"dashed\" />\n\n <p>Donec ullamcorper nulla non metus auctor fringilla...</p>\n\n <ContentDivider type=\"dotted\" margin='x-small' />\n\n <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit...</p>\n\n <ContentDivider type=\"dotted\" margin='x-small' />\n ")),
|
131072
131094
|
React.createElement("h3", { className: "docs-page__h3" }, "With text"),
|
131073
131095
|
React.createElement("p", { className: "docs-page__paragraph" }),
|
131074
131096
|
React.createElement(Markup.ReactMarkup, null,
|
@@ -131076,11 +131098,11 @@ var ContentDividerDoc = /** @class */ (function (_super) {
|
|
131076
131098
|
React.createElement("div", { className: 'docs-page__content-row' },
|
131077
131099
|
React.createElement(app_typescript_1.ContentDivider, null, "Centered (default)"),
|
131078
131100
|
React.createElement("p", null, "Maecenas sed diam eget risus varius blandit sit amet non magna. Maecenas faucibus mollis interdum. Donec ullamcorper nulla non metus auctor fringilla. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum."),
|
131079
|
-
React.createElement(app_typescript_1.ContentDivider, { align: "left" }, "Left aligned"),
|
131101
|
+
React.createElement(app_typescript_1.ContentDivider, { margin: 'small', align: "left" }, "Left aligned, small margin"),
|
131080
131102
|
React.createElement("p", null, "Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Cras mattis consectetur purus sit amet fermentum. Etiam porta sem malesuada magna mollis euismod. Cras mattis consectetur purus sit amet fermentum."),
|
131081
|
-
React.createElement(app_typescript_1.ContentDivider, { align: "right", type: "dotted" }, "Right aligned"),
|
131103
|
+
React.createElement(app_typescript_1.ContentDivider, { align: "right", type: "dotted" }, "Right aligned, dotted"),
|
131082
131104
|
React.createElement("p", null, "Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Etiam porta sem malesuada magna mollis euismod. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Morbi leo risus, porta ac consectetur ac, vestibulum at eros."))),
|
131083
|
-
React.createElement(Markup.ReactMarkupCode, null, "\n <ContentDivider>\n Centered (default)\n </ContentDivider>\n\n <p>Maecenas sed diam eget...</p>\n\n <ContentDivider align=\"left\">\n Left aligned\n </ContentDivider>\n\n <p>Maecenas sed diam eget risus...</p>\n\n <ContentDivider align=\"right\" type=\"dotted\">\n Right aligned\n </ContentDivider>\n\n <p>Praesent commodo cursus magna...</p>\n ")),
|
131105
|
+
React.createElement(Markup.ReactMarkupCode, null, "\n <ContentDivider>\n Centered (default)\n </ContentDivider>\n\n <p>Maecenas sed diam eget...</p>\n\n <ContentDivider margin='small' align=\"left\">\n Left aligned, small margin\n </ContentDivider>\n\n <p>Maecenas sed diam eget risus...</p>\n\n <ContentDivider align=\"right\" type=\"dotted\">\n Right aligned, dotted\n </ContentDivider>\n\n <p>Praesent commodo cursus magna...</p>\n ")),
|
131084
131106
|
React.createElement("h3", { className: "docs-page__h3" }, "Vertical"),
|
131085
131107
|
React.createElement("p", { className: "docs-page__paragraph" }),
|
131086
131108
|
React.createElement(Markup.ReactMarkup, null,
|
@@ -131088,23 +131110,24 @@ var ContentDividerDoc = /** @class */ (function (_super) {
|
|
131088
131110
|
React.createElement("p", { className: "docs-page__paragraph" }, "// Basic"),
|
131089
131111
|
React.createElement("div", { className: 'docs-page__content-row' },
|
131090
131112
|
React.createElement("span", null, "Option one"),
|
131091
|
-
React.createElement(app_typescript_1.ContentDivider, { orientation: "vertical", type: "dotted" }),
|
131113
|
+
React.createElement(app_typescript_1.ContentDivider, { margin: 'small', orientation: "vertical", type: "dotted" }),
|
131092
131114
|
React.createElement("span", null, "Option two"),
|
131093
|
-
React.createElement(app_typescript_1.ContentDivider, { orientation: "vertical", type: "dotted" }),
|
131115
|
+
React.createElement(app_typescript_1.ContentDivider, { margin: 'small', orientation: "vertical", type: "dotted" }),
|
131094
131116
|
React.createElement("span", null, "Option three")),
|
131095
131117
|
React.createElement("p", { className: "docs-page__paragraph " }, "// With text"),
|
131096
131118
|
React.createElement("p", { className: "docs-page__paragraph--small sd-margin-b--3" }, "Inside a flex container (flex-direction: column;)."),
|
131097
131119
|
React.createElement("div", { className: 'docs-page__content-row sd-display--flex' },
|
131098
131120
|
React.createElement("div", { style: { width: '100%' } }, "Cras justo odio, dapibus ac facilisis in, egestas eget quam. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Maecenas sed diam eget risus varius blandit sit amet. Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Aenean lacinia bibendum nulla sed consectetur. Vivamus sagittis lacus vel augue."),
|
131099
|
-
React.createElement(app_typescript_1.ContentDivider, { orientation: "vertical" }, "or"),
|
131121
|
+
React.createElement(app_typescript_1.ContentDivider, { orientation: "vertical", margin: 'large' }, "or"),
|
131100
131122
|
React.createElement("div", { style: { width: '100%' } }, "Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Donec id elit non mi porta gravida at eget metus. Cras mattis consectetur purus sit amet fermentum. Maecenas sed diam eget risus varius blandit sit amet non magna. Nullam id dolor id nibh ultricies vehicula ut id elit. Donec sed odio dui. Nulla vitae elit libero, a pharetra augue."))),
|
131101
|
-
React.createElement(Markup.ReactMarkupCode, null, "\n // Basic\n\n <span>Option one</span>\n <ContentDivider orientation=\"vertical\" type=\"dotted\" />\n <span>Option two</span>\n <ContentDivider orientation=\"vertical\" type=\"dotted\" />\n <span>Option three</span>\n\n // With text\n\n <div>\n Cras justo odio, dapibus ac facilisis in, egestas eget quam...\n </div>\n\n <ContentDivider orientation=\"vertical\">\n or\n </ContentDivider>\n\n <div>\n Praesent commodo cursus magna, vel scelerisque nisl consectetur et...\n </div>\n ")),
|
131123
|
+
React.createElement(Markup.ReactMarkupCode, null, "\n // Basic\n\n <span>Option one</span>\n <ContentDivider margin='small' orientation=\"vertical\" type=\"dotted\" />\n <span>Option two</span>\n <ContentDivider margin='small' orientation=\"vertical\" type=\"dotted\" />\n <span>Option three</span>\n\n // With text\n\n <div>\n Cras justo odio, dapibus ac facilisis in, egestas eget quam...\n </div>\n\n <ContentDivider orientation=\"vertical\" margin='large'>\n or\n </ContentDivider>\n\n <div>\n Praesent commodo cursus magna, vel scelerisque nisl consectetur et...\n </div>\n ")),
|
131102
131124
|
React.createElement("h3", { className: "docs-page__h3" }, "Props"),
|
131103
131125
|
React.createElement(app_typescript_1.PropsList, null,
|
131104
131126
|
React.createElement(app_typescript_1.Prop, { name: 'type', isRequired: false, type: 'dashed | dotted | solid', default: 'solid', description: 'Border style of the divider.' }),
|
131105
131127
|
React.createElement(app_typescript_1.Prop, { name: 'orientation', isRequired: false, type: 'horizontal | vertical', default: 'horizontal', description: 'Defines if the divider is horizontal or vertical. Default is horizontal.' }),
|
131106
131128
|
React.createElement(app_typescript_1.Prop, { name: 'align', isRequired: false, type: 'center | left | right', default: 'right', description: 'Text alignment inside the divider. Should not be used without any text inside the divider. The vertical divider has no alignment options.' }),
|
131107
|
-
React.createElement(app_typescript_1.Prop, { name: 'border', isRequired: false, type: 'boolean', default: 'true', description: 'Removes the border if set to true. Should be generally avoided especially if there is textual content. It can be used to add space between elements if there is no other option.' })
|
131129
|
+
React.createElement(app_typescript_1.Prop, { name: 'border', isRequired: false, type: 'boolean', default: 'true', description: 'Removes the border if set to true. Should be generally avoided especially if there is textual content. It can be used to add space between elements if there is no other option.' }),
|
131130
|
+
React.createElement(app_typescript_1.Prop, { name: 'margin', isRequired: false, type: 'x-small | small | medium | large | none', default: 'medium', description: 'Vertical or horizontal margins (depending on the orientation) of the ContentDivider. Default to medium if not set.' }))));
|
131108
131131
|
};
|
131109
131132
|
return ContentDividerDoc;
|
131110
131133
|
}(React.Component));
|
@@ -131896,7 +131919,12 @@ var TableListDoc = /** @class */ (function (_super) {
|
|
131896
131919
|
TableListDoc.prototype.render = function () {
|
131897
131920
|
return (React.createElement("section", { className: 'docs-page__container' },
|
131898
131921
|
React.createElement("h2", { className: 'docs-page__h2' }, "TableList"),
|
131899
|
-
React.createElement(Markup.ReactMarkupCodePreview, null, "\n <TableList\n dragAndDrop\n addItem\n array={this.state.array}\n itemsDropdown={(index) => [\n { label: <Label style='translucent' type='primary' text='aacc' />, onSelect: () =>
|
131922
|
+
React.createElement(Markup.ReactMarkupCodePreview, null, "\n <TableList\n dragAndDrop\n addItem\n array={this.state.array}\n itemsDropdown={(index) => [\n { label: <Label style='translucent' type='primary' text='aacc' />, onSelect: () => false },\n { label: <Label style='translucent' text='prlg' />, onSelect: () => false },\n { label: <Label style='translucent' type='primary' text='prlg' />, onSelect: () => false },\n ]} />\n "),
|
131923
|
+
React.createElement("p", { className: "docs-page__paragraph" }, "Simple list without drag and drop functionality and without functionality for adding item in list:"),
|
131924
|
+
React.createElement(Markup.ReactMarkup, null,
|
131925
|
+
React.createElement(Markup.ReactMarkupPreview, null,
|
131926
|
+
React.createElement(TableList_1.TableList, { array: this.state.array })),
|
131927
|
+
React.createElement(Markup.ReactMarkupCode, null, "\n <TableList\n array={this.state.array}\n />\n ")),
|
131900
131928
|
React.createElement("p", { className: "docs-page__paragraph" }, "With drag and drop functionality:"),
|
131901
131929
|
React.createElement(Markup.ReactMarkup, null,
|
131902
131930
|
React.createElement(Markup.ReactMarkupPreview, null,
|
@@ -131924,7 +131952,9 @@ var TableListDoc = /** @class */ (function (_super) {
|
|
131924
131952
|
React.createElement(app_typescript_1.Prop, { name: 'center', isRequired: false, type: 'React.ReactNode', default: 'false', description: 'Column of individual items of list.' }),
|
131925
131953
|
React.createElement(app_typescript_1.Prop, { name: 'end', isRequired: false, type: 'React.ReactNode', default: 'false', description: 'Column of individual items of list.' }),
|
131926
131954
|
React.createElement(app_typescript_1.Prop, { name: 'action', isRequired: false, type: 'React.ReactNode', default: 'false', description: 'Column of individual list items that is displayed on hover.' }),
|
131927
|
-
React.createElement(app_typescript_1.Prop, { name: 'hexColor', isRequired: false, type: 'string', default: 'false', description: '' }),
|
131955
|
+
React.createElement(app_typescript_1.Prop, { name: 'hexColor', isRequired: false, type: 'string', default: 'false', description: 'Color of left border for item status.' }),
|
131956
|
+
React.createElement(app_typescript_1.Prop, { name: 'locked', isRequired: false, type: 'function', default: 'false', description: 'If is true, the individual item of list change state and change style (border).' }),
|
131957
|
+
React.createElement(app_typescript_1.Prop, { name: 'positionLocked', isRequired: false, type: 'function', default: 'false', description: 'Work in progress...' }),
|
131928
131958
|
React.createElement(app_typescript_1.Prop, { name: 'onClick', isRequired: false, type: 'function', default: 'false', description: 'onClick functionality.' }),
|
131929
131959
|
React.createElement(app_typescript_1.Prop, { name: 'onDoubleClick', isRequired: false, type: 'function', default: 'false', description: 'onDoubleClick functionality.' }))));
|
131930
131960
|
};
|
@@ -132022,7 +132052,6 @@ var ContentListDoc = /** @class */ (function (_super) {
|
|
132022
132052
|
}
|
132023
132053
|
],
|
132024
132054
|
action: React.createElement(app_typescript_1.IconButton, { icon: 'dots-vertical', ariaValue: 'More actions', onClick: function () { return false; } }),
|
132025
|
-
loading: true,
|
132026
132055
|
},
|
132027
132056
|
{
|
132028
132057
|
itemColum: [
|
@@ -132053,8 +132082,6 @@ var ContentListDoc = /** @class */ (function (_super) {
|
|
132053
132082
|
fullwidth: true,
|
132054
132083
|
}
|
132055
132084
|
],
|
132056
|
-
//locked: true,
|
132057
|
-
selected: true,
|
132058
132085
|
action: React.createElement(app_typescript_1.IconButton, { icon: 'dots-vertical', ariaValue: 'More actions', onClick: function () { return false; } }),
|
132059
132086
|
},
|
132060
132087
|
{
|
@@ -132089,7 +132116,115 @@ var ContentListDoc = /** @class */ (function (_super) {
|
|
132089
132116
|
action: React.createElement(app_typescript_1.IconButton, { icon: 'dots-vertical', ariaValue: 'More actions', onClick: function () { return false; } }),
|
132090
132117
|
},
|
132091
132118
|
] })),
|
132092
|
-
React.createElement(Markup.
|
132119
|
+
React.createElement(Markup.ReactMarkupPreview, null,
|
132120
|
+
React.createElement("p", { className: "docs-page__paragraph" }, "// loading"),
|
132121
|
+
React.createElement(ContentList_1.ContentList, { items: [
|
132122
|
+
{
|
132123
|
+
itemColum: [
|
132124
|
+
{
|
132125
|
+
itemRow: [{ content: React.createElement(React.Fragment, null,
|
132126
|
+
React.createElement("i", { className: "icon-rundown" })) }],
|
132127
|
+
border: true
|
132128
|
+
},
|
132129
|
+
{
|
132130
|
+
itemRow: [
|
132131
|
+
{
|
132132
|
+
content: React.createElement(React.Fragment, null,
|
132133
|
+
React.createElement("span", { className: "sd-list-item__slugline" }, "19:00 \u2013 19:45"),
|
132134
|
+
React.createElement(app_typescript_1.IconLabel, { style: 'translucent', innerLabel: 'Duration:', text: '00:38', size: 'small', type: 'warning' }),
|
132135
|
+
React.createElement(app_typescript_1.IconLabel, { style: 'translucent', innerLabel: 'Planned Duration:', text: '00:45', size: 'small' }),
|
132136
|
+
React.createElement("time", { className: 'sd-margin-s--auto', title: "June 01, 2022 11:08 AM" }, "11:08, 01.06.2022"))
|
132137
|
+
},
|
132138
|
+
{
|
132139
|
+
content: React.createElement(React.Fragment, null,
|
132140
|
+
React.createElement(app_typescript_1.Label, { text: 'Marker', color: 'blue--800' }),
|
132141
|
+
React.createElement("span", { className: 'sd-list-item__compound-text' },
|
132142
|
+
React.createElement("span", { className: 'sd-list-item__text-label' }, "Template:"),
|
132143
|
+
React.createElement("span", null, "Marker Daily")),
|
132144
|
+
React.createElement("span", { className: "sd-overflow-ellipsis sd-list-item--element-grow sd-list-item__headline" }, "Marker // 01.06.2022"),
|
132145
|
+
React.createElement(app_typescript_1.Label, { style: 'translucent', text: 'In Progress', type: 'warning' }))
|
132146
|
+
},
|
132147
|
+
],
|
132148
|
+
fullwidth: true,
|
132149
|
+
}
|
132150
|
+
],
|
132151
|
+
action: React.createElement(app_typescript_1.IconButton, { icon: 'dots-vertical', ariaValue: 'More actions', onClick: function () { return false; } }),
|
132152
|
+
loading: true
|
132153
|
+
},
|
132154
|
+
] })),
|
132155
|
+
React.createElement(Markup.ReactMarkupPreview, null,
|
132156
|
+
React.createElement("p", { className: "docs-page__paragraph" }, "// selected"),
|
132157
|
+
React.createElement(ContentList_1.ContentList, { items: [
|
132158
|
+
{
|
132159
|
+
itemColum: [
|
132160
|
+
{
|
132161
|
+
itemRow: [{ content: React.createElement(React.Fragment, null,
|
132162
|
+
React.createElement("i", { className: "icon-rundown" })) }],
|
132163
|
+
border: true
|
132164
|
+
},
|
132165
|
+
{
|
132166
|
+
itemRow: [
|
132167
|
+
{
|
132168
|
+
content: React.createElement(React.Fragment, null,
|
132169
|
+
React.createElement("span", { className: "sd-list-item__slugline" }, "19:00 \u2013 19:45"),
|
132170
|
+
React.createElement(app_typescript_1.IconLabel, { style: 'translucent', innerLabel: 'Duration:', text: '00:38', size: 'small', type: 'warning' }),
|
132171
|
+
React.createElement(app_typescript_1.IconLabel, { style: 'translucent', innerLabel: 'Planned Duration:', text: '00:45', size: 'small' }),
|
132172
|
+
React.createElement("time", { className: 'sd-margin-s--auto', title: "June 01, 2022 11:08 AM" }, "11:08, 01.06.2022"))
|
132173
|
+
},
|
132174
|
+
{
|
132175
|
+
content: React.createElement(React.Fragment, null,
|
132176
|
+
React.createElement(app_typescript_1.Label, { text: 'Marker', color: 'blue--800' }),
|
132177
|
+
React.createElement("span", { className: 'sd-list-item__compound-text' },
|
132178
|
+
React.createElement("span", { className: 'sd-list-item__text-label' }, "Template:"),
|
132179
|
+
React.createElement("span", null, "Marker Daily")),
|
132180
|
+
React.createElement("span", { className: "sd-overflow-ellipsis sd-list-item--element-grow sd-list-item__headline" }, "Marker // 01.06.2022"),
|
132181
|
+
React.createElement(app_typescript_1.Label, { style: 'translucent', text: 'In Progress', type: 'warning' }))
|
132182
|
+
},
|
132183
|
+
],
|
132184
|
+
fullwidth: true,
|
132185
|
+
}
|
132186
|
+
],
|
132187
|
+
action: React.createElement(app_typescript_1.IconButton, { icon: 'dots-vertical', ariaValue: 'More actions', onClick: function () { return false; } }),
|
132188
|
+
selected: true,
|
132189
|
+
},
|
132190
|
+
] })),
|
132191
|
+
React.createElement(Markup.ReactMarkupPreview, null,
|
132192
|
+
React.createElement("p", { className: "docs-page__paragraph" }, "// locked"),
|
132193
|
+
React.createElement(ContentList_1.ContentList, { items: [
|
132194
|
+
{
|
132195
|
+
itemColum: [
|
132196
|
+
{
|
132197
|
+
itemRow: [{ content: React.createElement(React.Fragment, null,
|
132198
|
+
React.createElement("i", { className: "icon-rundown" })) }],
|
132199
|
+
border: true
|
132200
|
+
},
|
132201
|
+
{
|
132202
|
+
itemRow: [
|
132203
|
+
{
|
132204
|
+
content: React.createElement(React.Fragment, null,
|
132205
|
+
React.createElement("span", { className: "sd-list-item__slugline" }, "19:00 \u2013 19:45"),
|
132206
|
+
React.createElement(app_typescript_1.IconLabel, { style: 'translucent', innerLabel: 'Duration:', text: '00:38', size: 'small', type: 'warning' }),
|
132207
|
+
React.createElement(app_typescript_1.IconLabel, { style: 'translucent', innerLabel: 'Planned Duration:', text: '00:45', size: 'small' }),
|
132208
|
+
React.createElement("time", { className: 'sd-margin-s--auto', title: "June 01, 2022 11:08 AM" }, "11:08, 01.06.2022"))
|
132209
|
+
},
|
132210
|
+
{
|
132211
|
+
content: React.createElement(React.Fragment, null,
|
132212
|
+
React.createElement(app_typescript_1.Label, { text: 'Marker', color: 'blue--800' }),
|
132213
|
+
React.createElement("span", { className: 'sd-list-item__compound-text' },
|
132214
|
+
React.createElement("span", { className: 'sd-list-item__text-label' }, "Template:"),
|
132215
|
+
React.createElement("span", null, "Marker Daily")),
|
132216
|
+
React.createElement("span", { className: "sd-overflow-ellipsis sd-list-item--element-grow sd-list-item__headline" }, "Marker // 01.06.2022"),
|
132217
|
+
React.createElement(app_typescript_1.Label, { style: 'translucent', text: 'In Progress', type: 'warning' }))
|
132218
|
+
},
|
132219
|
+
],
|
132220
|
+
fullwidth: true,
|
132221
|
+
}
|
132222
|
+
],
|
132223
|
+
action: React.createElement(app_typescript_1.IconButton, { icon: 'dots-vertical', ariaValue: 'More actions', onClick: function () { return false; } }),
|
132224
|
+
locked: true,
|
132225
|
+
},
|
132226
|
+
] })),
|
132227
|
+
React.createElement(Markup.ReactMarkupCode, null, "\n <ContentList\n items={[\n {\n itemColum: [\n {\n itemRow: [{content:<>\n <i className=\"icon-rundown\"></i>\n </>}], \n border: true\n },\n {\n itemRow: [\n {\n content: \n <>\n <span className=\"sd-list-item__slugline\">19:00 \u2013 19:45</span>\n <IconLabel style='translucent' innerLabel='Duration:' text='00:38' size='small' type='warning' />\n <IconLabel style='translucent' innerLabel='Planned Duration:'text='00:45' size='small' />\n <time className='sd-margin-s--auto' title=\"June 01, 2022 11:08 AM\">11:08, 01.06.2022</time>\n </>\n },\n {\n content: \n <>\n <Label text='Marker' color='blue--800'/>\n <span className='sd-list-item__compound-text'>\n <span className='sd-list-item__text-label'>Template:</span>\n <span>Marker Daily</span>\n </span>\n <span className=\"sd-overflow-ellipsis sd-list-item--element-grow sd-list-item__headline\">Marker // 01.06.2022</span> \n <Label style='translucent' text='In Progress' type='warning' />\n </>\n },\n ],\n fullwidth: true,\n }\n ],\n action: <IconButton icon='dots-vertical' ariaValue='More actions' onClick={()=> false} />,\n },\n {\n itemColum: [\n {\n itemRow: [{content:<>\n <i className=\"icon-rundown\"></i>\n </>}], \n border: true\n },\n {\n itemRow: [\n {\n content: \n <>\n <span className=\"sd-list-item__slugline\">19:00 \u2013 19:45</span>\n <IconLabel style='translucent' innerLabel='Duration:' text='00:38' size='small' type='warning' />\n <IconLabel style='translucent' innerLabel='Planned Duration:'text='00:45' size='small' />\n <time className='sd-margin-s--auto' title=\"June 01, 2022 11:08 AM\">11:08, 01.06.2022</time>\n </>\n },\n {\n content: \n <>\n <Label text='Marker' color='blue--800'/>\n <span className='sd-list-item__compound-text'>\n <span className='sd-list-item__text-label'>Template:</span>\n <span>Marker Daily</span>\n </span>\n <span className=\"sd-overflow-ellipsis sd-list-item--element-grow sd-list-item__headline\">Marker // 01.06.2022</span> \n <Label style='translucent' text='In Progress' type='warning' />\n </>\n },\n ],\n fullwidth: true,\n }\n ],\n locked: true,\n action: <IconButton icon='dots-vertical' ariaValue='More actions' onClick={()=> false} />,\n },\n {\n itemColum: [\n {\n itemRow: [{content:<>\n <i className=\"icon-rundown\"></i>\n </>}], \n border: true\n },\n {\n itemRow: [\n {\n content:\n <>\n <span className=\"sd-list-item__slugline\">19:00 \u2013 19:45</span>\n <IconLabel style='translucent' innerLabel='Duration:' text='00:38' size='small' type='warning' />\n <IconLabel style='translucent' innerLabel='Planned Duration:'text='00:45' size='small' />\n <time className='sd-margin-s--auto' title=\"June 01, 2022 11:08 AM\">11:08, 01.06.2022</time>\n </>\n },\n {\n content:\n <>\n <Label text='Marker' color='blue--800'/>\n <span className='sd-list-item__compound-text'>\n <span className='sd-list-item__text-label'>Template:</span>\n <span>Marker Daily</span>\n </span>\n <span className=\"sd-overflow-ellipsis sd-list-item--element-grow sd-list-item__headline\">Marker // 01.06.2022</span> \n <Label style='translucent' text='In Progress' type='warning' />\n </>\n },\n ],\n fullwidth: true,\n }\n ],\n action: <IconButton icon='dots-vertical' ariaValue='More actions' onClick={()=> false} />,\n },\n ]} />\n\n // loading, slected & locked\n\n <ContentList\n items={[\n {\n itemColum: [\n {\n itemRow: [{content:<>\n <i className=\"icon-rundown\"></i>\n </>}],\n border: true\n },\n {\n itemRow: [\n {\n content:\n <>\n <span className=\"sd-list-item__slugline\">19:00 \u2013 19:45</span>\n <IconLabel style='translucent' innerLabel='Duration:' text='00:38' size='small' type='warning' />\n <IconLabel style='translucent' innerLabel='Planned Duration:'text='00:45' size='small' />\n <time className='sd-margin-s--auto' title=\"June 01, 2022 11:08 AM\">11:08, 01.06.2022</time>\n </>\n },\n {\n content:\n <>\n <Label text='Marker' color='blue--800'/>\n <span className='sd-list-item__compound-text'>\n <span className='sd-list-item__text-label'>Template:</span>\n <span>Marker Daily</span>\n </span>\n <span className=\"sd-overflow-ellipsis sd-list-item--element-grow sd-list-item__headline\">Marker // 01.06.2022</span> \n <Label style='translucent' text='In Progress' type='warning' />\n </>\n },\n ],\n fullwidth: true,\n }\n ],\n action: <IconButton icon='dots-vertical' ariaValue='More actions' onClick={()=> false} />,\n loading: true,\n selected: true,\n locked: true,\n },\n ]} />\n ")),
|
132093
132228
|
React.createElement("h3", { className: "docs-page__h3" }, "Props"),
|
132094
132229
|
React.createElement("p", { className: "docs-page__paragraph" }, "ContentList"),
|
132095
132230
|
React.createElement(app_typescript_1.PropsList, null,
|
@@ -132104,7 +132239,12 @@ var ContentListDoc = /** @class */ (function (_super) {
|
|
132104
132239
|
React.createElement(app_typescript_1.Prop, { name: 'archived', isRequired: false, type: 'boolean', default: 'false', description: 'If is true, the individual item of list change state and change style.' }),
|
132105
132240
|
React.createElement(app_typescript_1.Prop, { name: 'loading', isRequired: false, type: 'boolean', default: 'false', description: 'If is true, the individual item of list change state and change style.' }),
|
132106
132241
|
React.createElement(app_typescript_1.Prop, { name: 'onClick', isRequired: false, type: 'function', default: '/', description: 'onClick functionality.' }),
|
132107
|
-
React.createElement(app_typescript_1.Prop, { name: 'onDoubleClick', isRequired: false, type: 'function', default: '/', description: 'onDoubleClick functionality.' }))
|
132242
|
+
React.createElement(app_typescript_1.Prop, { name: 'onDoubleClick', isRequired: false, type: 'function', default: '/', description: 'onDoubleClick functionality.' })),
|
132243
|
+
React.createElement("p", { className: "docs-page__paragraph" }, "itemColum:"),
|
132244
|
+
React.createElement(app_typescript_1.PropsList, null,
|
132245
|
+
React.createElement(app_typescript_1.Prop, { name: 'itemRow', isRequired: true, type: 'Array<{content: any}>', default: 'ture', description: 'An array of objects for defining rows of individual items.' }),
|
132246
|
+
React.createElement(app_typescript_1.Prop, { name: 'border', isRequired: false, type: 'boolean', default: 'false', description: 'If is true, the individual item of list change style.' }),
|
132247
|
+
React.createElement(app_typescript_1.Prop, { name: 'fullwidth', isRequired: false, type: 'boolean', default: 'false', description: 'If is true, the individual item of list change style.' }))));
|
132108
132248
|
};
|
132109
132249
|
return ContentListDoc;
|
132110
132250
|
}(React.Component));
|
@@ -137432,6 +137572,7 @@ var DurationInputDoc = /** @class */ (function (_super) {
|
|
137432
137572
|
required: true,
|
137433
137573
|
disabled: false,
|
137434
137574
|
invalid: false,
|
137575
|
+
value: 3661,
|
137435
137576
|
};
|
137436
137577
|
return _this;
|
137437
137578
|
}
|
@@ -137451,7 +137592,8 @@ var DurationInputDoc = /** @class */ (function (_super) {
|
|
137451
137592
|
React.createElement(app_typescript_1.Checkbox, { checked: this.state.invalid, label: { text: 'Invalid input' }, onChange: function (value) { _this.setState({ invalid: value }); } }),
|
137452
137593
|
React.createElement(app_typescript_1.Checkbox, { checked: this.state.inlineLabel, label: { text: 'Label positioned inline' }, onChange: function (value) { _this.setState({ inlineLabel: value }); } }))),
|
137453
137594
|
React.createElement("div", { className: 'form__row' },
|
137454
|
-
React.createElement(DurationInput_1.DurationInput, { label: 'Label', info: 'info message', disabled: this.state.disabled, required: this.state.required, invalid: this.state.invalid, inlineLabel: this.state.inlineLabel, onChange: function (e) {
|
137595
|
+
React.createElement(DurationInput_1.DurationInput, { label: 'Label', info: 'info message', disabled: this.state.disabled, required: this.state.required, invalid: this.state.invalid, inlineLabel: this.state.inlineLabel, seconds: this.state.value, onChange: function (e) {
|
137596
|
+
_this.setState({ value: e });
|
137455
137597
|
console.log(e);
|
137456
137598
|
} })))),
|
137457
137599
|
React.createElement(Markup.ReactMarkupCode, null, "\n <DurationInput\n label='Label'\n info='info message'\n disabled={this.state.disabled}\n required={this.state.required}\n invalid={this.state.invalid}\n inlineLabel={this.state.inlineLabel}\n onChange={(e) => {\n console.log(e)\n }}\n />\n ")),
|
@@ -137768,7 +137910,7 @@ exports.WithSizeObserverDocs = WithSizeObserverDocs;
|
|
137768
137910
|
/* 649 */
|
137769
137911
|
/***/ (function(module, exports) {
|
137770
137912
|
|
137771
|
-
module.exports = {"name":"superdesk-ui-framework","version":"3.0.1-beta.
|
137913
|
+
module.exports = {"name":"superdesk-ui-framework","version":"3.0.1-beta.19","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"}}
|
137772
137914
|
|
137773
137915
|
/***/ }),
|
137774
137916
|
/* 650 */
|