inviton-powerduck 0.0.69 → 0.0.71

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.
@@ -48,162 +48,165 @@ import ModalSection from "../modal-wrap/modal-section";
48
48
 
49
49
  @Component
50
50
  class TestAllComponentsPageComponent extends PowerduckViewModelBase {
51
- name: string = null; //Needs to have =null suffixed so that TS compiler takes it into account
52
- boolValue: boolean = null;
53
- selectedOptions: any = null;
54
- timeViewType: string = "resourceTimeline";
55
- timeEvents: TimegridCalendarEvent[] = [];
56
- blockModal: boolean = false;
57
- color: string = "#FF00FF";
58
- numberVal: number = 1;
51
+ name: string = null; //Needs to have =null suffixed so that TS compiler takes it into account
52
+ boolValue: boolean = null;
53
+ selectedOptions: any = null;
54
+ timeViewType: string = "resourceTimeline";
55
+ timeEvents: TimegridCalendarEvent[] = [];
56
+ blockModal: boolean = false;
57
+ color: string = "#FF00FF";
58
+ numberVal: number = 1;
59
59
 
60
- protected get breadcrumbItems(): BreadcrumbItem[] {
61
- return [
62
- {
63
- text: "Home",
64
- url: "/",
65
- icon: "icon-direction",
66
- },
67
- {
68
- text: "Hello world",
69
- url: null,
70
- },
71
- ];
72
- }
60
+ protected get breadcrumbItems(): BreadcrumbItem[] {
61
+ return [
62
+ {
63
+ text: "Home",
64
+ url: "/",
65
+ icon: "icon-direction",
66
+ },
67
+ {
68
+ text: "Hello world",
69
+ url: null,
70
+ },
71
+ ];
72
+ }
73
73
 
74
- protected get menuItems(): AppMenuItem[] {
75
- return [];
76
- }
74
+ protected get menuItems(): AppMenuItem[] {
75
+ return [];
76
+ }
77
77
 
78
- mounted() {
79
- window["_helloInstance"] = this;
80
- }
78
+ mounted() {
79
+ window["_helloInstance"] = this;
80
+ }
81
81
 
82
- getLineChartHeaderOptions(): CardHeaderDropdownArgs[] {
83
- let retVal: CardHeaderDropdownArgs[] = [];
82
+ getLineChartHeaderOptions(): CardHeaderDropdownArgs[] {
83
+ let retVal: CardHeaderDropdownArgs[] = [];
84
84
 
85
- retVal.push({
86
- text: "Jedna moznosti",
87
- icon: "fas fa-download",
88
- clicked: () => alert("jedna"),
89
- });
85
+ retVal.push({
86
+ text: "Jedna moznosti",
87
+ icon: "fas fa-download",
88
+ clicked: () => alert("jedna"),
89
+ });
90
90
 
91
- retVal.push({
92
- text: "Dva moznostka",
93
- icon: "fas fa-sync-alt",
94
- clicked: () => alert("dva"),
95
- });
91
+ retVal.push({
92
+ text: "Dva moznostka",
93
+ icon: "fas fa-sync-alt",
94
+ clicked: () => alert("dva"),
95
+ });
96
96
 
97
- return retVal;
98
- }
97
+ return retVal;
98
+ }
99
99
 
100
- getDummyDropdownOptions(): DropdownListOption[] {
101
- return [
102
- { id: "1", text: "Moznost 1" },
103
- { id: "2", text: "Moznost 2" },
104
- ];
105
- }
100
+ getDummyDropdownOptions(): DropdownListOption[] {
101
+ return [
102
+ { id: "1", text: "Moznost 1" },
103
+ { id: "2", text: "Moznost 2" },
104
+ ];
105
+ }
106
106
 
107
- addTimeEvent(e: TimegridCalendarAddClickedArgs) {
108
- let startTime = DateWrapper.getCurrent();
109
- startTime.setDate(e.defaultDate.getDate());
110
- startTime.setMonth(e.defaultDate.getMonth());
111
- startTime.setFullYear(e.defaultDate.getFullYear());
112
- startTime.setHours(e.defaultDate.getHours());
113
- startTime.setMinutes(e.defaultDate.getMinutes());
107
+ addTimeEvent(e: TimegridCalendarAddClickedArgs) {
108
+ let startTime = DateWrapper.getCurrent();
109
+ startTime.setDate(e.defaultDate.getDate());
110
+ startTime.setMonth(e.defaultDate.getMonth());
111
+ startTime.setFullYear(e.defaultDate.getFullYear());
112
+ startTime.setHours(e.defaultDate.getHours());
113
+ startTime.setMinutes(e.defaultDate.getMinutes());
114
114
 
115
- let endTime = DateWrapper.getCurrent();
116
- endTime.setDate(e.defaultDate.getDate());
117
- endTime.setMonth(e.defaultDate.getMonth());
118
- endTime.setFullYear(e.defaultDate.getFullYear());
119
- endTime.setHours(e.defaultDate.getHours() + 1);
120
- endTime.setMinutes(e.defaultDate.getMinutes());
115
+ let endTime = DateWrapper.getCurrent();
116
+ endTime.setDate(e.defaultDate.getDate());
117
+ endTime.setMonth(e.defaultDate.getMonth());
118
+ endTime.setFullYear(e.defaultDate.getFullYear());
119
+ endTime.setHours(e.defaultDate.getHours() + 1);
120
+ endTime.setMinutes(e.defaultDate.getMinutes());
121
121
 
122
- this.timeEvents.push({
123
- id: "idd" + Math.random() * (999999999 - 1) + 1,
124
- dataRow: { jedna: "sdfsd", druha: "sdfsdfsd" },
125
- resourceId: e.resource != null ? e.resource.id : prompt("Room a or b?", "a"),
126
- title: "Event cislo " + this.timeEvents.length + 1,
127
- start: startTime,
128
- end: endTime,
129
- });
130
- }
122
+ this.timeEvents.push({
123
+ id: "idd" + Math.random() * (999999999 - 1) + 1,
124
+ dataRow: { jedna: "sdfsd", druha: "sdfsdfsd" },
125
+ resourceId: e.resource != null ? e.resource.id : prompt("Room a or b?", "a"),
126
+ title: "Event cislo " + this.timeEvents.length + 1,
127
+ start: startTime,
128
+ end: endTime,
129
+ });
130
+ }
131
131
 
132
- render(h) {
133
- return (
134
- <div>
135
- <p>Hello world from the boilerplate</p>
136
- <p>{`Your name is: ${this.name?.length > 0 ? this.name : "Not specified"}`}</p>
132
+ render(h) {
133
+ return (
134
+ <div>
135
+ <p>Hello world from the boilerplate</p>
136
+ <p>{`Your name is: ${this.name?.length > 0 ? this.name : "Not specified"}`}</p>
137
137
 
138
- <TextBox
139
- label={"Your name"}
140
- value={this.name}
141
- changed={(e) => {
142
- this.name = e;
143
- }}
144
- subtitle={"Some additional info about the field"}
145
- />
146
- <TextBox
147
- label={"Your name append"}
148
- value={this.name}
149
- changed={(e) => {
150
- this.name = e;
151
- }}
152
- appendIcon={"fas fa-user"}
153
- />
154
- <TextBox
155
- label={"Your name prepend"}
156
- value={this.name}
157
- changed={(e) => {
158
- this.name = e;
159
- }}
160
- prependIcon={"fas fa-user"}
161
- />
162
- <TextBox
163
- label={"With error"}
164
- value={null}
165
- changed={(e) => { }}
166
- validationState={{
167
- errorMessage: "Unable to proceed, error...",
168
- mandatory: true,
169
- valid: false,
170
- validationDeclaration: null,
171
- }}
172
- />
173
- <CheckBox
174
- label={"Do you agree?"}
175
- checkboxLabelHtml={"Additional checkbox label"}
176
- value={this.boolValue}
177
- changed={(e) => {
178
- this.boolValue = e;
179
- }}
180
- />
181
- <ColorPicker
182
- label={"Pick a color"}
183
- value={this.color}
184
- changed={(e) => {
185
- this.color = e;
186
- }}
187
- />
188
- <DaterangePicker label={"Range picker"} value={null} changed={(e) => { }} />
189
- <DatetimePicker label={"Pick a date"} value={null} showTime={true} changed={(e) => { }} />
190
- <NumericInput
191
- label={"Spinner number input"}
192
- value={this.numberVal}
193
- changed={(e) => {
194
- this.numberVal = e;
195
- }}
196
- />
197
- <NumericInput
198
- label={"Native number input"}
199
- mode={NumericInputMode.Clasic}
200
- value={this.numberVal}
201
- changed={(e) => {
202
- this.numberVal = e;
203
- }}
204
- />
205
- <WysiwigEditor label={"WYSIWIG"} value={null} changed={(e) => { }} />
206
- {/* <Tabs>
138
+ <TextBox
139
+ label={"Your name"}
140
+ value={this.name}
141
+ showClearValueButton={true}
142
+ changed={(e) => {
143
+ this.name = e;
144
+ }}
145
+ subtitle={"Some additional info about the field"}
146
+ />
147
+ <TextBox
148
+ label={"Your name append"}
149
+ value={this.name}
150
+ showClearValueButton={true}
151
+ changed={(e) => {
152
+ this.name = e;
153
+ }}
154
+ appendIcon={"fas fa-user"}
155
+ />
156
+ <TextBox
157
+ label={"Your name prepend"}
158
+ value={this.name}
159
+ showClearValueButton={true}
160
+ changed={(e) => {
161
+ this.name = e;
162
+ }}
163
+ prependIcon={"fas fa-user"}
164
+ />
165
+ <TextBox
166
+ label={"With error"}
167
+ value={null}
168
+ changed={(e) => { }}
169
+ validationState={{
170
+ errorMessage: "Unable to proceed, error...",
171
+ mandatory: true,
172
+ valid: false,
173
+ validationDeclaration: null,
174
+ }}
175
+ />
176
+ <CheckBox
177
+ label={"Do you agree?"}
178
+ checkboxLabelHtml={"Additional checkbox label"}
179
+ value={this.boolValue}
180
+ changed={(e) => {
181
+ this.boolValue = e;
182
+ }}
183
+ />
184
+ <ColorPicker
185
+ label={"Pick a color"}
186
+ value={this.color}
187
+ changed={(e) => {
188
+ this.color = e;
189
+ }}
190
+ />
191
+ <DaterangePicker label={"Range picker"} value={null} changed={(e) => { }} />
192
+ <DatetimePicker label={"Pick a date"} value={null} showTime={true} changed={(e) => { }} />
193
+ <NumericInput
194
+ label={"Spinner number input"}
195
+ value={this.numberVal}
196
+ changed={(e) => {
197
+ this.numberVal = e;
198
+ }}
199
+ />
200
+ <NumericInput
201
+ label={"Native number input"}
202
+ mode={NumericInputMode.Clasic}
203
+ value={this.numberVal}
204
+ changed={(e) => {
205
+ this.numberVal = e;
206
+ }}
207
+ />
208
+ <WysiwigEditor label={"WYSIWIG"} value={null} changed={(e) => { }} />
209
+ {/* <Tabs>
207
210
  <TabPage icon={"icon icon-user"} navCaption={"User"}>
208
211
  Tu je tab usera
209
212
  </TabPage>
@@ -219,9 +222,9 @@ class TestAllComponentsPageComponent extends PowerduckViewModelBase {
219
222
  Tu je tab settings
220
223
  </TabPage>
221
224
  </Tabs> */}
222
- <br />
223
- <br />
224
- {/* <Tabs renderMode={TabsRenderMode.SidePillsExtended}>
225
+ <br />
226
+ <br />
227
+ {/* <Tabs renderMode={TabsRenderMode.SidePillsExtended}>
225
228
  <TabPage icon={"icon icon-user"} navCaption={"User"}>
226
229
  Tu je tab usera
227
230
  </TabPage>
@@ -229,223 +232,223 @@ class TestAllComponentsPageComponent extends PowerduckViewModelBase {
229
232
  Tu je tab settings
230
233
  </TabPage>
231
234
  </Tabs> */}
232
- <br />
233
- <br />
234
- <BootstrapToggle
235
- label={"Toggle"}
236
- value={this.boolValue}
237
- changed={(e) => {
238
- this.boolValue = e;
239
- }}
240
- />
235
+ <br />
236
+ <br />
237
+ <BootstrapToggle
238
+ label={"Toggle"}
239
+ value={this.boolValue}
240
+ changed={(e) => {
241
+ this.boolValue = e;
242
+ }}
243
+ />
241
244
 
242
- <BootstrapToggle
243
- label={"Toggle"}
244
- value={this.boolValue}
245
- size={BootstrapToggleSize.Small}
246
- changed={(e) => {
247
- this.boolValue = e;
248
- }}
249
- />
250
- <Button
251
- text={"Click me"}
252
- layout={ButtonLayout.Primary}
253
- disabled={true}
254
- icon={"icon icon-people"}
255
- iconButton={false}
256
- round={true}
257
- size={ButtonSize.Regular}
258
- tooltip={"Sample tooltip"}
259
- clicked={(e) => {
260
- alert("you clicked me");
261
- }}
262
- />
263
- <Button
264
- text={"Show sample modal"}
265
- layout={ButtonLayout.Secondary}
266
- clicked={(e) => {
267
- this.blockModal = true;
268
- (this.$refs.sampleModal as typeof Modal.prototype).show();
269
- setTimeout(() => {
270
- this.blockModal = false;
271
- }, 3000);
272
- }}
273
- />
245
+ <BootstrapToggle
246
+ label={"Toggle"}
247
+ value={this.boolValue}
248
+ size={BootstrapToggleSize.Small}
249
+ changed={(e) => {
250
+ this.boolValue = e;
251
+ }}
252
+ />
253
+ <Button
254
+ text={"Click me"}
255
+ layout={ButtonLayout.Primary}
256
+ disabled={true}
257
+ icon={"icon icon-people"}
258
+ iconButton={false}
259
+ round={true}
260
+ size={ButtonSize.Regular}
261
+ tooltip={"Sample tooltip"}
262
+ clicked={(e) => {
263
+ alert("you clicked me");
264
+ }}
265
+ />
266
+ <Button
267
+ text={"Show sample modal"}
268
+ layout={ButtonLayout.Secondary}
269
+ clicked={(e) => {
270
+ this.blockModal = true;
271
+ (this.$refs.sampleModal as typeof Modal.prototype).show();
272
+ setTimeout(() => {
273
+ this.blockModal = false;
274
+ }, 3000);
275
+ }}
276
+ />
274
277
 
275
278
 
276
- <Button
277
- text={"Show sectionaed"}
278
- layout={ButtonLayout.Secondary}
279
- clicked={(e) => {
280
- this.blockModal = true;
281
- (this.$refs.sampleSectionedModal as typeof Modal.prototype).show();
282
- setTimeout(() => {
283
- this.blockModal = false;
284
- }, 3000);
285
- }}
286
- />
287
- <Modal size={ModalSize.Large} ref="sampleSectionedModal" title={"Sample modal"} blocked={this.blockModal}>
288
- <ModalBody>
289
- <ModalSectionWrapper ref={"modalSectionWrapper"}>
290
- <ModalSection icon="icon icon-settings" navCaption={"Settings1"}>
291
- <p>Some modal content1</p>
292
- </ModalSection>
293
- {this.boolValue == true &&
294
- <ModalSection icon="icon icon-settings" navCaption={"Settings2"}>
295
- <p>Some modal content2</p>
296
- </ModalSection>
297
- }
279
+ <Button
280
+ text={"Show sectionaed"}
281
+ layout={ButtonLayout.Secondary}
282
+ clicked={(e) => {
283
+ this.blockModal = true;
284
+ (this.$refs.sampleSectionedModal as typeof Modal.prototype).show();
285
+ setTimeout(() => {
286
+ this.blockModal = false;
287
+ }, 3000);
288
+ }}
289
+ />
290
+ <Modal size={ModalSize.Large} ref="sampleSectionedModal" title={"Sample modal"} blocked={this.blockModal}>
291
+ <ModalBody>
292
+ <ModalSectionWrapper ref={"modalSectionWrapper"}>
293
+ <ModalSection icon="icon icon-settings" navCaption={"Settings1"}>
294
+ <p>Some modal content1</p>
295
+ </ModalSection>
296
+ {this.boolValue == true &&
297
+ <ModalSection icon="icon icon-settings" navCaption={"Settings2"}>
298
+ <p>Some modal content2</p>
299
+ </ModalSection>
300
+ }
298
301
 
299
- <ModalSection icon="icon icon-settings" navCaption={"Settings4"}>
300
- <p>Some modal content4444</p>
301
- </ModalSection>
302
+ <ModalSection icon="icon icon-settings" navCaption={"Settings4"}>
303
+ <p>Some modal content4444</p>
304
+ </ModalSection>
302
305
 
303
- <ModalSection icon="icon icon-settings" navCaption={"Settings9"}>
304
- <p>Some modal content9999</p>
305
- </ModalSection>
306
+ <ModalSection icon="icon icon-settings" navCaption={"Settings9"}>
307
+ <p>Some modal content9999</p>
308
+ </ModalSection>
306
309
 
307
- <Button layout={ButtonLayout.Primary} text="OK" clicked={() => { }} />
308
- </ModalSectionWrapper>
309
- </ModalBody>
310
- </Modal>
310
+ <Button layout={ButtonLayout.Primary} text="OK" clicked={() => { }} />
311
+ </ModalSectionWrapper>
312
+ </ModalBody>
313
+ </Modal>
311
314
 
312
315
 
313
- <TextButton
314
- text="Click me for some news"
315
- icon={"icon icon-people"}
316
- clicked={(e) => {
317
- alert("you clicked me?");
318
- }}
319
- />
320
- <Card>
321
- <CardHeader title={"Vacsia titulka"} />
322
- <CardBody>jeden, dva</CardBody>
323
- </Card>
324
- <Card>
325
- <CardHeader smallTitle={"Graf vstupov"} />
326
- <CardBody>jeden, dva</CardBody>
327
- </Card>
328
- <br />
329
- <br />
330
- <Card renderMode={"inlined"}>
331
- <CardHeader title={"Inlajnova karta"} />
332
- <CardBody>jeden, dva</CardBody>
333
- </Card>
334
- <br />
335
- <br />
336
- <Card>
337
- <CardHeaderWithOptions smallTitle={"Graf vstupov"} dropdownOptions={this.getLineChartHeaderOptions()} />
338
- <CardBody>jeden, dva</CardBody>
339
- </Card>
340
- <DataTableStatic
341
- id={"tblTest"}
342
- topVisible={true}
343
- columns={[
344
- { id: "One", caption: "One" },
345
- { id: "Two", caption: "Two" },
346
- { id: "Three", caption: "Three" },
347
- ]}
348
- rows={[
349
- { One: "Row-1-1", Two: "Row-2-1", Three: "Row-3-1" },
350
- { One: "Row-1-2", Two: "Row-2-2", Three: "Row-3-2" },
351
- { One: "Row-1-3", Two: "Row-2-3", Three: "Row-3-3" },
352
- ]}
353
- />
354
- <DropdownList
355
- options={this.getDummyDropdownOptions()}
356
- selected={this.getDummyDropdownOptions().filter((p) => p.id == this.selectedOptions)[0]}
357
- label={"TODO: Upravit sablonou Vyber z dropdownu"}
358
- changed={(v) => {
359
- this.selectedOptions = v.id;
360
- }}
361
- />
362
- <DropdownButton layout={ButtonLayout.Default} size={ButtonSize.Regular} text={"Akcie"}>
363
- <DropdownButtonItem icon={"icon icon-settings"} text={'Edit'} clicked={() => alert("clicked me")} />
364
- <DropdownButtonSeparator />
365
- <DropdownButtonItem
366
- icon={"icon icon-notebook"}
367
- text={"History"}
368
- clicked={() => {
369
- alert("clicked history");
370
- }}
371
- />
372
- <DropdownButtonItem icon={"icon icon-trash"} text={"Delete"} clicked={() => confirm("You sure?")} />
373
- </DropdownButton>
374
- <br />
375
- Flex NOT collapsing on mobile
376
- <FlexContainer fullWidthOnMobile={false}>
377
- <FlexFormItem>Auto-wrap</FlexFormItem>
378
- <FlexFormItem>Auto-wrap</FlexFormItem>
379
- <FlexFormItem flexFill={false} width={100}>
380
- <div style="background-color:gray">100px</div>
381
- </FlexFormItem>
382
- <FlexFormItem flexFill={false} width={50}>
383
- <div style="background-color:gray">50px</div>
384
- </FlexFormItem>
385
- </FlexContainer>
386
- <br />
387
- Flex collapsing on mobile
388
- <FlexContainer fullWidthOnMobile={true}>
389
- <FlexFormItem>Auto-wrap</FlexFormItem>
390
- <FlexFormItem>Auto-wrap</FlexFormItem>
391
- <FlexFormItem flexFill={false} width={100}>
392
- <div style="background-color:gray">100px</div>
393
- </FlexFormItem>
394
- <FlexFormItem flexFill={false} width={50}>
395
- <div style="background-color:gray">50px</div>
396
- </FlexFormItem>
397
- </FlexContainer>
398
- <Fieldset caption={"Sample fields"}>Here is some inner content</Fieldset>
399
- <FooterButtons>
400
- <Button clicked={(e) => alert("cancel")} layout={ButtonLayout.Default} icon="fas fa-times" text={'Cancel'} />
401
- </FooterButtons>
402
- <Separator text="Separujem.." />
403
- <ValidationResultDisplayer
404
- validationState={{
405
- errorMessage: "Unable to proceed, error...",
406
- mandatory: true,
407
- valid: false,
408
- validationDeclaration: null,
409
- }}
410
- />
411
- <HtmlLiteral innerHTML={"Test of <b>HTML Literal</b>"} />
412
- <UploadImageAndCropButton
413
- text={"Upload image and crop"}
414
- icon={"icon icon-people"}
415
- layout={ButtonLayout.Danger}
416
- uploadArgs={null}
417
- targetBlobContainer={"dummy"}
418
- uploadComplete={(e) => { }}
419
- uploadUrl={"dummy"}
420
- />
421
- <br />
422
- <Accordion>
423
- <AccordionPage caption={"One"} badge={"0"}>
424
- <div>One</div>
425
- </AccordionPage>
426
- <AccordionPage caption={"Two"} badge={"3"} badgeStyle={"warning"}>
427
- <div>Two</div>
428
- </AccordionPage>
429
- <AccordionPage caption={"Three"} badge={"3"} badgeStyle={"danger"}>
430
- <div>Three</div>
431
- </AccordionPage>
432
- </Accordion>
433
- <br />
434
- <div>
435
- <FullCalendarDraggableEvent
436
- title={"Event druhaov"}
437
- dataRow={{ druha: "jedna" }}
438
- startDate={new DateWrapper(1900, 1, 1, 10, 0, 0, 0)}
439
- endDate={new DateWrapper(1900, 1, 1, 10, 45, 0, 0)}
440
- />
441
- <FullCalendarDraggableEvent
442
- title={"Ej bardzo dva"}
443
- dataRow={{ druha: "kurva" }}
444
- startDate={new DateWrapper(1900, 1, 1, 10, 0, 0, 0)}
445
- endDate={new DateWrapper(1900, 1, 1, 11, 30, 0, 0)}
446
- />
447
- </div>
448
- {/* <TimegridCalendar
316
+ <TextButton
317
+ text="Click me for some news"
318
+ icon={"icon icon-people"}
319
+ clicked={(e) => {
320
+ alert("you clicked me?");
321
+ }}
322
+ />
323
+ <Card>
324
+ <CardHeader title={"Vacsia titulka"} />
325
+ <CardBody>jeden, dva</CardBody>
326
+ </Card>
327
+ <Card>
328
+ <CardHeader smallTitle={"Graf vstupov"} />
329
+ <CardBody>jeden, dva</CardBody>
330
+ </Card>
331
+ <br />
332
+ <br />
333
+ <Card renderMode={"inlined"}>
334
+ <CardHeader title={"Inlajnova karta"} />
335
+ <CardBody>jeden, dva</CardBody>
336
+ </Card>
337
+ <br />
338
+ <br />
339
+ <Card>
340
+ <CardHeaderWithOptions smallTitle={"Graf vstupov"} dropdownOptions={this.getLineChartHeaderOptions()} />
341
+ <CardBody>jeden, dva</CardBody>
342
+ </Card>
343
+ <DataTableStatic
344
+ id={"tblTest"}
345
+ topVisible={true}
346
+ columns={[
347
+ { id: "One", caption: "One" },
348
+ { id: "Two", caption: "Two" },
349
+ { id: "Three", caption: "Three" },
350
+ ]}
351
+ rows={[
352
+ { One: "Row-1-1", Two: "Row-2-1", Three: "Row-3-1" },
353
+ { One: "Row-1-2", Two: "Row-2-2", Three: "Row-3-2" },
354
+ { One: "Row-1-3", Two: "Row-2-3", Three: "Row-3-3" },
355
+ ]}
356
+ />
357
+ <DropdownList
358
+ options={this.getDummyDropdownOptions()}
359
+ selected={this.getDummyDropdownOptions().filter((p) => p.id == this.selectedOptions)[0]}
360
+ label={"TODO: Upravit sablonou Vyber z dropdownu"}
361
+ changed={(v) => {
362
+ this.selectedOptions = v.id;
363
+ }}
364
+ />
365
+ <DropdownButton layout={ButtonLayout.Default} size={ButtonSize.Regular} text={"Akcie"}>
366
+ <DropdownButtonItem icon={"icon icon-settings"} text={'Edit'} clicked={() => alert("clicked me")} />
367
+ <DropdownButtonSeparator />
368
+ <DropdownButtonItem
369
+ icon={"icon icon-notebook"}
370
+ text={"History"}
371
+ clicked={() => {
372
+ alert("clicked history");
373
+ }}
374
+ />
375
+ <DropdownButtonItem icon={"icon icon-trash"} text={"Delete"} clicked={() => confirm("You sure?")} />
376
+ </DropdownButton>
377
+ <br />
378
+ Flex NOT collapsing on mobile
379
+ <FlexContainer fullWidthOnMobile={false}>
380
+ <FlexFormItem>Auto-wrap</FlexFormItem>
381
+ <FlexFormItem>Auto-wrap</FlexFormItem>
382
+ <FlexFormItem flexFill={false} width={100}>
383
+ <div style="background-color:gray">100px</div>
384
+ </FlexFormItem>
385
+ <FlexFormItem flexFill={false} width={50}>
386
+ <div style="background-color:gray">50px</div>
387
+ </FlexFormItem>
388
+ </FlexContainer>
389
+ <br />
390
+ Flex collapsing on mobile
391
+ <FlexContainer fullWidthOnMobile={true}>
392
+ <FlexFormItem>Auto-wrap</FlexFormItem>
393
+ <FlexFormItem>Auto-wrap</FlexFormItem>
394
+ <FlexFormItem flexFill={false} width={100}>
395
+ <div style="background-color:gray">100px</div>
396
+ </FlexFormItem>
397
+ <FlexFormItem flexFill={false} width={50}>
398
+ <div style="background-color:gray">50px</div>
399
+ </FlexFormItem>
400
+ </FlexContainer>
401
+ <Fieldset caption={"Sample fields"}>Here is some inner content</Fieldset>
402
+ <FooterButtons>
403
+ <Button clicked={(e) => alert("cancel")} layout={ButtonLayout.Default} icon="fas fa-times" text={'Cancel'} />
404
+ </FooterButtons>
405
+ <Separator text="Separujem.." />
406
+ <ValidationResultDisplayer
407
+ validationState={{
408
+ errorMessage: "Unable to proceed, error...",
409
+ mandatory: true,
410
+ valid: false,
411
+ validationDeclaration: null,
412
+ }}
413
+ />
414
+ <HtmlLiteral innerHTML={"Test of <b>HTML Literal</b>"} />
415
+ <UploadImageAndCropButton
416
+ text={"Upload image and crop"}
417
+ icon={"icon icon-people"}
418
+ layout={ButtonLayout.Danger}
419
+ uploadArgs={null}
420
+ targetBlobContainer={"dummy"}
421
+ uploadComplete={(e) => { }}
422
+ uploadUrl={"dummy"}
423
+ />
424
+ <br />
425
+ <Accordion>
426
+ <AccordionPage caption={"One"} badge={"0"}>
427
+ <div>One</div>
428
+ </AccordionPage>
429
+ <AccordionPage caption={"Two"} badge={"3"} badgeStyle={"warning"}>
430
+ <div>Two</div>
431
+ </AccordionPage>
432
+ <AccordionPage caption={"Three"} badge={"3"} badgeStyle={"danger"}>
433
+ <div>Three</div>
434
+ </AccordionPage>
435
+ </Accordion>
436
+ <br />
437
+ <div>
438
+ <FullCalendarDraggableEvent
439
+ title={"Event druhaov"}
440
+ dataRow={{ druha: "jedna" }}
441
+ startDate={new DateWrapper(1900, 1, 1, 10, 0, 0, 0)}
442
+ endDate={new DateWrapper(1900, 1, 1, 10, 45, 0, 0)}
443
+ />
444
+ <FullCalendarDraggableEvent
445
+ title={"Ej bardzo dva"}
446
+ dataRow={{ druha: "kurva" }}
447
+ startDate={new DateWrapper(1900, 1, 1, 10, 0, 0, 0)}
448
+ endDate={new DateWrapper(1900, 1, 1, 11, 30, 0, 0)}
449
+ />
450
+ </div>
451
+ {/* <TimegridCalendar
449
452
  minDate={new DateWrapper(2020, 2, 3)}
450
453
  maxDate={new DateWrapper(2020, 2, 7, 10, 0, 0)}
451
454
  viewType={this.timeViewType as any}
@@ -465,25 +468,25 @@ class TestAllComponentsPageComponent extends PowerduckViewModelBase {
465
468
  }, 3000);
466
469
  }}
467
470
  /> */}
468
- <br />
469
- <Modal size={ModalSize.Normal} ref="sampleModal" title={"Sample modal"} blocked={this.blockModal}>
470
- <ModalBody>
471
- <p>Some modal content</p>
472
- </ModalBody>
473
- <ModalFooter>
474
- <Button layout={ButtonLayout.Default} dismissModal={true} text={'Close'} clicked={() => { }} />
475
- <Button
476
- layout={ButtonLayout.Primary}
477
- text="OK"
478
- clicked={() => {
479
- alert("OK clicked...now click close");
480
- }}
481
- />
482
- </ModalFooter>
483
- </Modal>
484
- </div>
485
- );
486
- }
471
+ <br />
472
+ <Modal size={ModalSize.Normal} ref="sampleModal" title={"Sample modal"} blocked={this.blockModal}>
473
+ <ModalBody>
474
+ <p>Some modal content</p>
475
+ </ModalBody>
476
+ <ModalFooter>
477
+ <Button layout={ButtonLayout.Default} dismissModal={true} text={'Close'} clicked={() => { }} />
478
+ <Button
479
+ layout={ButtonLayout.Primary}
480
+ text="OK"
481
+ clicked={() => {
482
+ alert("OK clicked...now click close");
483
+ }}
484
+ />
485
+ </ModalFooter>
486
+ </Modal>
487
+ </div>
488
+ );
489
+ }
487
490
  }
488
491
 
489
492
  const TestAllComponentsPage = toNative(TestAllComponentsPageComponent)