superdesk-ui-framework 3.0.1-beta.9 → 3.0.1
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/fonts/sd_icons.eot +0 -0
- package/app/fonts/sd_icons.svg +1 -0
- package/app/fonts/sd_icons.ttf +0 -0
- package/app/fonts/sd_icons.woff +0 -0
- package/app/scripts/toggleBoxNext.js +1 -1
- package/app/styles/_big-icon-font.scss +1 -1
- package/app/styles/_buttons.scss +11 -6
- package/app/styles/_content-divider.scss +63 -8
- package/app/styles/_helpers.scss +24 -1
- package/app/styles/_icon-font.scss +11 -10
- package/app/styles/_labels.scss +0 -1
- package/app/styles/_master-desk.scss +5 -4
- package/app/styles/_modals.scss +7 -3
- package/app/styles/_normalize.scss +4 -0
- package/app/styles/_sd-tag-input.scss +56 -2
- package/app/styles/_simple-list.scss +0 -2
- package/app/styles/_table-list.scss +116 -12
- package/app/styles/app.scss +3 -0
- package/app/styles/components/_list-item.scss +23 -16
- package/app/styles/components/_sd-collapse-box.scss +6 -6
- package/app/styles/components/_sd-comment-box.scss +8 -4
- package/app/styles/components/_sd-editor-popup.scss +4 -4
- package/app/styles/components/_sd-media-carousel.scss +37 -2
- package/app/styles/components/_sd-pagination.scss +41 -0
- package/app/styles/components/_sd-photo-preview.scss +2 -2
- package/app/styles/components/_subnav.scss +470 -470
- package/app/styles/design-tokens/_new-colors.scss +29 -12
- package/app/styles/dropdowns/_basic-dropdown.scss +6 -0
- package/app/styles/form-elements/_input-wrap.scss +138 -0
- package/app/styles/form-elements/_inputs.scss +230 -61
- package/app/styles/grids/_grid-layout.scss +13 -14
- package/app/styles/interface-elements/_side-panel.scss +1 -1
- package/app/styles/layout/_editor.scss +6 -0
- package/app/styles/menus/_sd-sidebar-menu.scss +1 -1
- package/app/styles/primereact/_pr-datepicker.scss +16 -2
- package/app/styles/primereact/_pr-dialog.scss +9 -0
- package/app/styles/primereact/_pr-menu.scss +6 -5
- package/app/styles/variables/_colors.scss +47 -47
- package/app/template/search-handler.html +2 -2
- package/app-typescript/components/ContentDivider.tsx +3 -0
- package/app-typescript/components/DatePicker.tsx +8 -9
- package/app-typescript/components/Dropdown.tsx +127 -82
- package/app-typescript/components/DurationInput.tsx +39 -14
- package/app-typescript/components/Form/FormLabel.tsx +8 -1
- package/app-typescript/components/Form/InputBase.tsx +12 -2
- package/app-typescript/components/Input.tsx +4 -4
- package/app-typescript/components/Label.tsx +17 -1
- package/app-typescript/components/Layouts/AuthoringFrame.tsx +2 -1
- package/app-typescript/components/Layouts/AuthoringFrameRightBar.tsx +21 -2
- package/app-typescript/components/Layouts/AuthoringInnerHeader.tsx +1 -1
- package/app-typescript/components/Layouts/AuthoringMain.tsx +4 -2
- package/app-typescript/components/Layouts/CoreLayout.tsx +3 -1
- package/app-typescript/components/Layouts/CoreLayoutMain.tsx +10 -1
- package/app-typescript/components/Lists/ContentList.tsx +64 -30
- package/app-typescript/components/Lists/TableList.tsx +255 -53
- package/app-typescript/components/Menu.tsx +2 -2
- package/app-typescript/components/Modal.tsx +6 -2
- package/app-typescript/components/MultiSelect.tsx +1 -1
- package/app-typescript/components/NavButton.tsx +2 -1
- package/app-typescript/components/Navigation/SideBarMenu.tsx +30 -4
- package/app-typescript/components/SearchBar.tsx +11 -3
- package/app-typescript/components/Spacer.tsx +87 -0
- package/app-typescript/components/TimePicker.tsx +2 -13
- package/app-typescript/components/TreeSelect.tsx +286 -180
- package/app-typescript/index.ts +1 -0
- package/dist/examples.bundle.css +110 -71
- package/dist/examples.bundle.js +23848 -21661
- package/dist/playgrounds/react-playgrounds/CoreLayout.tsx +505 -2
- package/dist/playgrounds/react-playgrounds/Index.tsx +1 -0
- package/dist/playgrounds/react-playgrounds/Multiedit.tsx +321 -0
- package/dist/playgrounds/react-playgrounds/RundownEditor.tsx +17 -19
- package/dist/playgrounds/react-playgrounds/Rundowns.tsx +22 -23
- package/dist/playgrounds/react-playgrounds/TestGround.tsx +226 -25
- package/dist/react/ContentDivider.tsx +22 -18
- package/dist/react/ContentList.tsx +188 -12
- package/dist/react/DatePicker.tsx +50 -2
- package/dist/react/Dropdowns.tsx +580 -48
- package/dist/react/DurationInput.tsx +7 -3
- package/dist/react/Inputs.tsx +1 -7
- package/dist/react/Modal.tsx +154 -22
- package/dist/react/MultiSelect.tsx +5 -5
- package/dist/react/NavButtons.tsx +31 -1
- package/dist/react/TableList.tsx +52 -139
- package/dist/react/Togglebox.tsx +1 -1
- package/dist/react/TreeSelect.tsx +167 -176
- package/dist/sd_icons.eot +0 -0
- package/dist/sd_icons.svg +1 -0
- package/dist/sd_icons.ttf +0 -0
- package/dist/sd_icons.woff +0 -0
- package/dist/superdesk-ui.bundle.css +1100 -407
- package/dist/superdesk-ui.bundle.js +6591 -4035
- package/dist/vendor.bundle.js +27 -27
- package/examples/css/docs-page.css +4 -4
- package/examples/index.js +4 -0
- package/examples/pages/playgrounds/react-playgrounds/CoreLayout.tsx +505 -2
- package/examples/pages/playgrounds/react-playgrounds/Index.tsx +1 -0
- package/examples/pages/playgrounds/react-playgrounds/Multiedit.tsx +321 -0
- package/examples/pages/playgrounds/react-playgrounds/RundownEditor.tsx +17 -19
- package/examples/pages/playgrounds/react-playgrounds/Rundowns.tsx +22 -23
- package/examples/pages/playgrounds/react-playgrounds/TestGround.tsx +226 -25
- package/examples/pages/react/ContentDivider.tsx +22 -18
- package/examples/pages/react/ContentList.tsx +188 -12
- package/examples/pages/react/DatePicker.tsx +50 -2
- package/examples/pages/react/Dropdowns.tsx +580 -48
- package/examples/pages/react/DurationInput.tsx +7 -3
- package/examples/pages/react/Inputs.tsx +1 -7
- package/examples/pages/react/Modal.tsx +154 -22
- package/examples/pages/react/MultiSelect.tsx +5 -5
- package/examples/pages/react/NavButtons.tsx +31 -1
- package/examples/pages/react/TableList.tsx +52 -139
- package/examples/pages/react/Togglebox.tsx +1 -1
- package/examples/pages/react/TreeSelect.tsx +167 -176
- package/package.json +3 -5
- package/react/components/ContentDivider.d.ts +1 -0
- package/react/components/ContentDivider.js +2 -0
- package/react/components/DatePicker.d.ts +2 -2
- package/react/components/DatePicker.js +3 -3
- package/react/components/Dropdown.d.ts +6 -5
- package/react/components/Dropdown.js +57 -30
- package/react/components/DurationInput.d.ts +1 -1
- package/react/components/DurationInput.js +46 -17
- package/react/components/Form/FormLabel.d.ts +4 -1
- package/react/components/Form/FormLabel.js +9 -3
- package/react/components/Form/InputBase.d.ts +0 -1
- package/react/components/Form/InputBase.js +15 -1
- package/react/components/Input.d.ts +3 -3
- package/react/components/Input.js +2 -1
- package/react/components/Label.d.ts +1 -0
- package/react/components/Label.js +17 -2
- package/react/components/Layouts/AuthoringFrame.d.ts +1 -0
- package/react/components/Layouts/AuthoringFrame.js +1 -1
- package/react/components/Layouts/AuthoringFrameRightBar.d.ts +9 -2
- package/react/components/Layouts/AuthoringFrameRightBar.js +14 -3
- package/react/components/Layouts/AuthoringInnerHeader.js +1 -1
- package/react/components/Layouts/AuthoringMain.js +1 -1
- package/react/components/Layouts/CoreLayout.d.ts +2 -0
- package/react/components/Layouts/CoreLayout.js +1 -1
- package/react/components/Layouts/CoreLayoutMain.d.ts +2 -0
- package/react/components/Layouts/CoreLayoutMain.js +8 -1
- package/react/components/Lists/ContentList.d.ts +6 -0
- package/react/components/Lists/ContentList.js +42 -16
- package/react/components/Lists/TableList.d.ts +30 -8
- package/react/components/Lists/TableList.js +127 -24
- package/react/components/Menu.js +1 -1
- package/react/components/Modal.d.ts +2 -0
- package/react/components/Modal.js +3 -3
- package/react/components/MultiSelect.d.ts +40 -0
- package/react/components/MultiSelect.js +70 -0
- package/react/components/NavButton.d.ts +1 -1
- package/react/components/Navigation/SideBarMenu.d.ts +6 -0
- package/react/components/Navigation/SideBarMenu.js +19 -2
- package/react/components/SearchBar.d.ts +1 -1
- package/react/components/SearchBar.js +15 -7
- package/react/components/TimePicker.d.ts +1 -5
- package/react/components/TimePicker.js +3 -7
- package/react/components/TreeSelect.d.ts +12 -5
- package/react/components/TreeSelect.js +189 -116
- package/react/index.d.ts +1 -0
- package/react/index.js +3 -0
- package/patches/@superdesk+primereact+5.0.2-4.patch +0 -66
@@ -1,28 +1,23 @@
|
|
1
1
|
import * as React from 'react';
|
2
2
|
import * as Markup from '../../js/react';
|
3
|
-
import {
|
4
|
-
import {
|
5
|
-
import { ContentList, ContentListItem } from '../../../app-typescript/components/Lists/ContentList';
|
3
|
+
import { Prop, PropsList, Icon, IconButton, Label, Container, IconLabel } from '../../../app-typescript';
|
4
|
+
import { ContentList } from '../../../app-typescript/components/Lists/ContentList';
|
6
5
|
|
7
6
|
export default class ContentListDoc extends React.Component {
|
8
7
|
render() {
|
9
8
|
return (
|
10
9
|
<section className='docs-page__container'>
|
11
10
|
<h2 className='docs-page__h2'>ContentList</h2>
|
12
|
-
|
13
11
|
<Markup.ReactMarkupCodePreview>{`
|
14
12
|
<ContentList
|
15
13
|
items: [...]
|
16
14
|
/>
|
17
15
|
`}
|
18
16
|
</Markup.ReactMarkupCodePreview>
|
19
|
-
|
20
17
|
<p className="docs-page__paragraph">...</p>
|
21
|
-
|
22
18
|
<Markup.ReactMarkup>
|
23
19
|
<Markup.ReactMarkupPreview>
|
24
20
|
<p className="docs-page__paragraph">// basic</p>
|
25
|
-
|
26
21
|
<ContentList
|
27
22
|
items={[
|
28
23
|
{
|
@@ -61,7 +56,6 @@ export default class ContentListDoc extends React.Component {
|
|
61
56
|
}
|
62
57
|
],
|
63
58
|
action: <IconButton icon='dots-vertical' ariaValue='More actions' onClick={()=> false} />,
|
64
|
-
loading: true,
|
65
59
|
},
|
66
60
|
{
|
67
61
|
itemColum: [
|
@@ -98,8 +92,6 @@ export default class ContentListDoc extends React.Component {
|
|
98
92
|
fullwidth: true,
|
99
93
|
}
|
100
94
|
],
|
101
|
-
//locked: true,
|
102
|
-
selected: true,
|
103
95
|
action: <IconButton icon='dots-vertical' ariaValue='More actions' onClick={()=> false} />,
|
104
96
|
},
|
105
97
|
{
|
@@ -140,7 +132,141 @@ export default class ContentListDoc extends React.Component {
|
|
140
132
|
action: <IconButton icon='dots-vertical' ariaValue='More actions' onClick={()=> false} />,
|
141
133
|
},
|
142
134
|
]} />
|
135
|
+
</Markup.ReactMarkupPreview>
|
136
|
+
|
137
|
+
<Markup.ReactMarkupPreview>
|
138
|
+
<p className="docs-page__paragraph">// loading</p>
|
139
|
+
<ContentList
|
140
|
+
items={[
|
141
|
+
{
|
142
|
+
itemColum: [
|
143
|
+
{
|
144
|
+
itemRow: [{content:<>
|
145
|
+
<i className="icon-rundown"></i>
|
146
|
+
</>}],
|
147
|
+
border: true
|
148
|
+
},
|
149
|
+
{
|
150
|
+
itemRow: [
|
151
|
+
{
|
152
|
+
content:
|
153
|
+
<>
|
154
|
+
<span className="sd-list-item__slugline">19:00 – 19:45</span>
|
155
|
+
<IconLabel style='translucent' innerLabel='Duration:' text='00:38' size='small' type='warning' />
|
156
|
+
<IconLabel style='translucent' innerLabel='Planned Duration:'text='00:45' size='small' />
|
157
|
+
<time className='sd-margin-s--auto' title="June 01, 2022 11:08 AM">11:08, 01.06.2022</time>
|
158
|
+
</>
|
159
|
+
},
|
160
|
+
{
|
161
|
+
content:
|
162
|
+
<>
|
163
|
+
<Label text='Marker' color='blue--800'/>
|
164
|
+
<span className='sd-list-item__compound-text'>
|
165
|
+
<span className='sd-list-item__text-label'>Template:</span>
|
166
|
+
<span>Marker Daily</span>
|
167
|
+
</span>
|
168
|
+
<span className="sd-overflow-ellipsis sd-list-item--element-grow sd-list-item__headline">Marker // 01.06.2022</span>
|
169
|
+
<Label style='translucent' text='In Progress' type='warning' />
|
170
|
+
</>
|
171
|
+
},
|
172
|
+
],
|
173
|
+
fullwidth: true,
|
174
|
+
}
|
175
|
+
],
|
176
|
+
action: <IconButton icon='dots-vertical' ariaValue='More actions' onClick={()=> false} />,
|
177
|
+
loading: true
|
178
|
+
},
|
179
|
+
]} />
|
180
|
+
</Markup.ReactMarkupPreview>
|
143
181
|
|
182
|
+
<Markup.ReactMarkupPreview>
|
183
|
+
<p className="docs-page__paragraph">// selected</p>
|
184
|
+
<ContentList
|
185
|
+
items={[
|
186
|
+
{
|
187
|
+
itemColum: [
|
188
|
+
{
|
189
|
+
itemRow: [{content:<>
|
190
|
+
<i className="icon-rundown"></i>
|
191
|
+
</>}],
|
192
|
+
border: true
|
193
|
+
},
|
194
|
+
{
|
195
|
+
itemRow: [
|
196
|
+
{
|
197
|
+
content:
|
198
|
+
<>
|
199
|
+
<span className="sd-list-item__slugline">19:00 – 19:45</span>
|
200
|
+
<IconLabel style='translucent' innerLabel='Duration:' text='00:38' size='small' type='warning' />
|
201
|
+
<IconLabel style='translucent' innerLabel='Planned Duration:'text='00:45' size='small' />
|
202
|
+
<time className='sd-margin-s--auto' title="June 01, 2022 11:08 AM">11:08, 01.06.2022</time>
|
203
|
+
</>
|
204
|
+
},
|
205
|
+
{
|
206
|
+
content:
|
207
|
+
<>
|
208
|
+
<Label text='Marker' color='blue--800'/>
|
209
|
+
<span className='sd-list-item__compound-text'>
|
210
|
+
<span className='sd-list-item__text-label'>Template:</span>
|
211
|
+
<span>Marker Daily</span>
|
212
|
+
</span>
|
213
|
+
<span className="sd-overflow-ellipsis sd-list-item--element-grow sd-list-item__headline">Marker // 01.06.2022</span>
|
214
|
+
<Label style='translucent' text='In Progress' type='warning' />
|
215
|
+
</>
|
216
|
+
},
|
217
|
+
],
|
218
|
+
fullwidth: true,
|
219
|
+
}
|
220
|
+
],
|
221
|
+
action: <IconButton icon='dots-vertical' ariaValue='More actions' onClick={()=> false} />,
|
222
|
+
selected: true,
|
223
|
+
},
|
224
|
+
]} />
|
225
|
+
</Markup.ReactMarkupPreview>
|
226
|
+
|
227
|
+
<Markup.ReactMarkupPreview>
|
228
|
+
<p className="docs-page__paragraph">// locked</p>
|
229
|
+
<ContentList
|
230
|
+
items={[
|
231
|
+
{
|
232
|
+
itemColum: [
|
233
|
+
{
|
234
|
+
itemRow: [{content:<>
|
235
|
+
<i className="icon-rundown"></i>
|
236
|
+
</>}],
|
237
|
+
border: true
|
238
|
+
},
|
239
|
+
{
|
240
|
+
itemRow: [
|
241
|
+
{
|
242
|
+
content:
|
243
|
+
<>
|
244
|
+
<span className="sd-list-item__slugline">19:00 – 19:45</span>
|
245
|
+
<IconLabel style='translucent' innerLabel='Duration:' text='00:38' size='small' type='warning' />
|
246
|
+
<IconLabel style='translucent' innerLabel='Planned Duration:'text='00:45' size='small' />
|
247
|
+
<time className='sd-margin-s--auto' title="June 01, 2022 11:08 AM">11:08, 01.06.2022</time>
|
248
|
+
</>
|
249
|
+
},
|
250
|
+
{
|
251
|
+
content:
|
252
|
+
<>
|
253
|
+
<Label text='Marker' color='blue--800'/>
|
254
|
+
<span className='sd-list-item__compound-text'>
|
255
|
+
<span className='sd-list-item__text-label'>Template:</span>
|
256
|
+
<span>Marker Daily</span>
|
257
|
+
</span>
|
258
|
+
<span className="sd-overflow-ellipsis sd-list-item--element-grow sd-list-item__headline">Marker // 01.06.2022</span>
|
259
|
+
<Label style='translucent' text='In Progress' type='warning' />
|
260
|
+
</>
|
261
|
+
},
|
262
|
+
],
|
263
|
+
fullwidth: true,
|
264
|
+
}
|
265
|
+
],
|
266
|
+
action: <IconButton icon='dots-vertical' ariaValue='More actions' onClick={()=> false} />,
|
267
|
+
locked: true,
|
268
|
+
},
|
269
|
+
]} />
|
144
270
|
</Markup.ReactMarkupPreview>
|
145
271
|
<Markup.ReactMarkupCode>{`
|
146
272
|
<ContentList
|
@@ -258,10 +384,55 @@ export default class ContentListDoc extends React.Component {
|
|
258
384
|
action: <IconButton icon='dots-vertical' ariaValue='More actions' onClick={()=> false} />,
|
259
385
|
},
|
260
386
|
]} />
|
387
|
+
|
388
|
+
// loading, slected & locked
|
389
|
+
|
390
|
+
<ContentList
|
391
|
+
items={[
|
392
|
+
{
|
393
|
+
itemColum: [
|
394
|
+
{
|
395
|
+
itemRow: [{content:<>
|
396
|
+
<i className="icon-rundown"></i>
|
397
|
+
</>}],
|
398
|
+
border: true
|
399
|
+
},
|
400
|
+
{
|
401
|
+
itemRow: [
|
402
|
+
{
|
403
|
+
content:
|
404
|
+
<>
|
405
|
+
<span className="sd-list-item__slugline">19:00 – 19:45</span>
|
406
|
+
<IconLabel style='translucent' innerLabel='Duration:' text='00:38' size='small' type='warning' />
|
407
|
+
<IconLabel style='translucent' innerLabel='Planned Duration:'text='00:45' size='small' />
|
408
|
+
<time className='sd-margin-s--auto' title="June 01, 2022 11:08 AM">11:08, 01.06.2022</time>
|
409
|
+
</>
|
410
|
+
},
|
411
|
+
{
|
412
|
+
content:
|
413
|
+
<>
|
414
|
+
<Label text='Marker' color='blue--800'/>
|
415
|
+
<span className='sd-list-item__compound-text'>
|
416
|
+
<span className='sd-list-item__text-label'>Template:</span>
|
417
|
+
<span>Marker Daily</span>
|
418
|
+
</span>
|
419
|
+
<span className="sd-overflow-ellipsis sd-list-item--element-grow sd-list-item__headline">Marker // 01.06.2022</span>
|
420
|
+
<Label style='translucent' text='In Progress' type='warning' />
|
421
|
+
</>
|
422
|
+
},
|
423
|
+
],
|
424
|
+
fullwidth: true,
|
425
|
+
}
|
426
|
+
],
|
427
|
+
action: <IconButton icon='dots-vertical' ariaValue='More actions' onClick={()=> false} />,
|
428
|
+
loading: true,
|
429
|
+
selected: true,
|
430
|
+
locked: true,
|
431
|
+
},
|
432
|
+
]} />
|
261
433
|
`}
|
262
434
|
</Markup.ReactMarkupCode>
|
263
435
|
</Markup.ReactMarkup>
|
264
|
-
|
265
436
|
<h3 className="docs-page__h3">Props</h3>
|
266
437
|
<p className="docs-page__paragraph">ContentList</p>
|
267
438
|
<PropsList>
|
@@ -279,7 +450,12 @@ export default class ContentListDoc extends React.Component {
|
|
279
450
|
<Prop name='onClick' isRequired={false} type='function' default='/' description='onClick functionality.'/>
|
280
451
|
<Prop name='onDoubleClick' isRequired={false} type='function' default='/' description='onDoubleClick functionality.'/>
|
281
452
|
</PropsList>
|
282
|
-
|
453
|
+
<p className="docs-page__paragraph">itemColum:</p>
|
454
|
+
<PropsList>
|
455
|
+
<Prop name='itemRow' isRequired={true} type='Array<{content: any}>' default='ture' description='An array of objects for defining rows of individual items.'/>
|
456
|
+
<Prop name='border' isRequired={false} type='boolean' default='false' description='If is true, the individual item of list change style.'/>
|
457
|
+
<Prop name='fullwidth' isRequired={false} type='boolean' default='false' description='If is true, the individual item of list change style.'/>
|
458
|
+
</PropsList>
|
283
459
|
</section>
|
284
460
|
)
|
285
461
|
}
|
@@ -30,6 +30,13 @@ class DatePickerExample extends React.PureComponent<{}, {date: Date}> {
|
|
30
30
|
}
|
31
31
|
|
32
32
|
export default class DatePickerDoc extends React.Component {
|
33
|
+
constructor(props) {
|
34
|
+
super(props);
|
35
|
+
|
36
|
+
this.state = {
|
37
|
+
today: new Date(),
|
38
|
+
};
|
39
|
+
}
|
33
40
|
render() {
|
34
41
|
return (
|
35
42
|
<section className="docs-page__container">
|
@@ -120,14 +127,55 @@ export default class DatePickerDoc extends React.Component {
|
|
120
127
|
/>
|
121
128
|
`}</Markup.ReactMarkupCode>
|
122
129
|
</Markup.ReactMarkup>
|
130
|
+
<p className="docs-page__paragraph">DatePicker with headerButtonBar:</p>
|
131
|
+
<Markup.ReactMarkup>
|
132
|
+
<Markup.ReactMarkupPreview>
|
133
|
+
<div className='docs-page__content-row'>
|
134
|
+
<DatePicker
|
135
|
+
value={this.state.today}
|
136
|
+
dateFormat="YYYY-MM-DD"
|
137
|
+
onChange={(today) => {
|
138
|
+
this.setState({today});
|
139
|
+
}}
|
140
|
+
required
|
141
|
+
tabindex={1}
|
142
|
+
label={'This is Label'}
|
143
|
+
info={'This is info'}
|
144
|
+
error={'This is error'}
|
145
|
+
headerButtonBar={[{days: 0, label: 'today'}, {days: 1, label: 'tomorow'}, {days: 2, label: 'in 2 days'}]}
|
146
|
+
/>
|
147
|
+
</div>
|
148
|
+
</Markup.ReactMarkupPreview>
|
149
|
+
<Markup.ReactMarkupCode>{`
|
150
|
+
<DatePicker
|
151
|
+
value={this.state.date}
|
152
|
+
dateFormat="YYYY-MM-DD"
|
153
|
+
onChange={(date) => {
|
154
|
+
this.setState({date});
|
155
|
+
}}
|
156
|
+
required
|
157
|
+
tabindex={1}
|
158
|
+
label={'This is Label'}
|
159
|
+
info={'This is info'}
|
160
|
+
error={'This is error'}
|
161
|
+
headerButtonBar={[{days: 0, label: 'today'}, {days: 1, label: 'tomorow'}, {days: 2, label: 'in 2 days'}]}
|
162
|
+
/>
|
163
|
+
`}</Markup.ReactMarkupCode>
|
164
|
+
</Markup.ReactMarkup>
|
123
165
|
|
124
166
|
<h3 className='docs-page__h3'>Props</h3>
|
125
167
|
<PropsList>
|
126
168
|
<Prop name='value' isRequired={false} type='Date' default='/' description='Item value' />
|
127
|
-
<Prop name='disabled' isRequired={false} type='boolean' default='false' description='Mark field as disabled' />
|
128
169
|
<Prop name='dateFormat' isRequired={true} type='string' default='/' description='Date format to use, i.e. "MM/DD/YYYY"' />
|
129
|
-
<Prop name='shortcuts' isRequired={false} type='string' default='/' description='Shortcuts for calendar popup, i.e. [{label: "tomorrow", days: 1}]' />
|
130
170
|
<Prop name='locale' isRequired={false} type='string' default='/' description='see: https://primefaces.org/primereact/showcase/#/calendar' />
|
171
|
+
<Prop name='headerButtonBar' isRequired={false} type='Array' default='/' description='Aditional button in header, ex. [{label: "today", days: 0}, {label: "tomorrow", days: 1}]' />
|
172
|
+
<Prop name='label' isRequired={false} type='string' default='/' description='Input label'/>
|
173
|
+
<Prop name='info' isRequired={false} type='string' default='/' description='Hint text'/>
|
174
|
+
<Prop name='error' isRequired={false} type='string' default='/' description='Error text'/>
|
175
|
+
<Prop name='inlineLabel' isRequired={false} type='boolean' default='false' description='Position labels as inline'/>
|
176
|
+
<Prop name='required' isRequired={false} type='boolean' default='false' description='Mark field as required'/>
|
177
|
+
<Prop name='disabled' isRequired={false} type='boolean' default='false' description='Mark field as disabled'/>
|
178
|
+
<Prop name='invalid' isRequired={false} type='boolean' default='false' description='Mark field as invalid'/>
|
131
179
|
</PropsList>
|
132
180
|
|
133
181
|
<h3 className='docs-page__h3'>Events</h3>
|