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.
- package/components/counter/testall.tsx +377 -374
- package/components/dropdown/index.tsx +966 -962
- package/components/dropdown/mobile/legacy_fdd.ts +545 -540
- package/components/dropdown/ts/select2-multi-checkboxes.ts +4 -0
- package/components/form/css/form-item-wrapper.css +36 -0
- package/components/form/form-item-wrapper.tsx +235 -180
- package/components/google/places-autocomplete.tsx +2 -0
- package/components/input/currency-input.tsx +65 -64
- package/components/input/daterange-picker.tsx +26 -2
- package/components/input/datetime-picker.tsx +43 -41
- package/components/input/gps-input.tsx +5 -1
- package/components/input/image-upload.tsx +2 -0
- package/components/input/localized-string-input.tsx +2 -0
- package/components/input/localized-string-textarea.tsx +2 -0
- package/components/input/localized-string-wysiwyg.tsx +2 -0
- package/components/input/localized-url-input.tsx +2 -0
- package/components/input/numeric-input.tsx +3 -0
- package/components/input/textarea.tsx +2 -0
- package/components/input/textbox.tsx +2 -1
- package/components/input/wysiwig.tsx +2 -0
- package/package.json +1 -1
|
@@ -48,162 +48,165 @@ import ModalSection from "../modal-wrap/modal-section";
|
|
|
48
48
|
|
|
49
49
|
@Component
|
|
50
50
|
class TestAllComponentsPageComponent extends PowerduckViewModelBase {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
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
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
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
|
-
|
|
75
|
-
|
|
76
|
-
|
|
74
|
+
protected get menuItems(): AppMenuItem[] {
|
|
75
|
+
return [];
|
|
76
|
+
}
|
|
77
77
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
78
|
+
mounted() {
|
|
79
|
+
window["_helloInstance"] = this;
|
|
80
|
+
}
|
|
81
81
|
|
|
82
|
-
|
|
83
|
-
|
|
82
|
+
getLineChartHeaderOptions(): CardHeaderDropdownArgs[] {
|
|
83
|
+
let retVal: CardHeaderDropdownArgs[] = [];
|
|
84
84
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
85
|
+
retVal.push({
|
|
86
|
+
text: "Jedna moznosti",
|
|
87
|
+
icon: "fas fa-download",
|
|
88
|
+
clicked: () => alert("jedna"),
|
|
89
|
+
});
|
|
90
90
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
91
|
+
retVal.push({
|
|
92
|
+
text: "Dva moznostka",
|
|
93
|
+
icon: "fas fa-sync-alt",
|
|
94
|
+
clicked: () => alert("dva"),
|
|
95
|
+
});
|
|
96
96
|
|
|
97
|
-
|
|
98
|
-
|
|
97
|
+
return retVal;
|
|
98
|
+
}
|
|
99
99
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
100
|
+
getDummyDropdownOptions(): DropdownListOption[] {
|
|
101
|
+
return [
|
|
102
|
+
{ id: "1", text: "Moznost 1" },
|
|
103
|
+
{ id: "2", text: "Moznost 2" },
|
|
104
|
+
];
|
|
105
|
+
}
|
|
106
106
|
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
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
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
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
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
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
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
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
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
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
|
-
|
|
223
|
-
|
|
224
|
-
|
|
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
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
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
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
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
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
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
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
+
<ModalSection icon="icon icon-settings" navCaption={"Settings4"}>
|
|
303
|
+
<p>Some modal content4444</p>
|
|
304
|
+
</ModalSection>
|
|
302
305
|
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
+
<ModalSection icon="icon icon-settings" navCaption={"Settings9"}>
|
|
307
|
+
<p>Some modal content9999</p>
|
|
308
|
+
</ModalSection>
|
|
306
309
|
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
310
|
+
<Button layout={ButtonLayout.Primary} text="OK" clicked={() => { }} />
|
|
311
|
+
</ModalSectionWrapper>
|
|
312
|
+
</ModalBody>
|
|
313
|
+
</Modal>
|
|
311
314
|
|
|
312
315
|
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
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
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
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)
|