inviton-powerduck 0.0.146 → 0.0.148

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.
Files changed (24) hide show
  1. package/common/css/ladda-themeless-zoomin.min.css +89 -89
  2. package/components/chart-js/thirdparty/flot/jquery.flot.categories.min.js +93 -93
  3. package/components/chart-js/thirdparty/flot/jquery.flot.crosshair.min.js +83 -83
  4. package/components/chart-js/thirdparty/flot/jquery.flot.navigate.min.js +270 -270
  5. package/components/chart-js/thirdparty/flot/jquery.flot.pie.min.js +507 -507
  6. package/components/chart-js/thirdparty/flot/jquery.flot.resize.min.js +147 -147
  7. package/components/chart-js/thirdparty/flot/jquery.flot.stack.min.js +104 -104
  8. package/components/counter/testall.tsx +79 -9
  9. package/components/dropdown/country-dropdown.tsx +11 -9
  10. package/components/dropdown/image-dropdown.tsx +45 -33
  11. package/components/dropdown/index.tsx +60 -39
  12. package/components/dropdown/language-dropdown.tsx +5 -13
  13. package/components/dropdown/mobile/legacy_fdd.ts +64 -50
  14. package/components/dropdown/ts/dropdownListHelper.ts +11 -0
  15. package/components/image-crop/vendor/jquery.Jcrop.min.css +344 -344
  16. package/components/import/import-mapper.tsx +231 -231
  17. package/components/input/checkbox.tsx +6 -8
  18. package/components/input/css/checkbox.css +109 -0
  19. package/components/input/css/radio-button-group.css +84 -2
  20. package/components/input/plugins/daterangepicker/daterangepicker.min.css +400 -400
  21. package/components/input/plugins/daterangepicker/jquery.daterangepicker.min.js +1903 -1903
  22. package/components/rating/rating-picker.tsx +57 -63
  23. package/components/svg/skilift-svg.tsx +6 -6
  24. package/package.json +1 -1
@@ -1,147 +1,147 @@
1
- /* Javascript plotting library for jQuery, version 0.8.3.
2
-
3
- Copyright (c) 2007-2014 IOLA and Ole Laursen.
4
- Licensed under the MIT license.
5
-
6
- */
7
- (function ($, e, t) {
8
- "$:nomunge";
9
- var i = [],
10
- n = ($.resize = $.extend($.resize, {})),
11
- a,
12
- r = false,
13
- s = "setTimeout",
14
- u = "resize",
15
- m = u + "-special-event",
16
- o = "pendingDelay",
17
- l = "activeDelay",
18
- f = "throttleWindow";
19
- n[o] = 200;
20
- n[l] = 20;
21
- n[f] = true;
22
- $.event.special[u] = {
23
- setup: function () {
24
- if (!n[f] && this[s]) {
25
- return false;
26
- }
27
- var e = $(this);
28
- i.push(this);
29
- e.data(m, { w: e.width(), h: e.height() });
30
- if (i.length === 1) {
31
- a = t;
32
- h();
33
- }
34
- },
35
- teardown: function () {
36
- if (!n[f] && this[s]) {
37
- return false;
38
- }
39
- var e = $(this);
40
- for (var t = i.length - 1; t >= 0; t--) {
41
- if (i[t] == this) {
42
- i.splice(t, 1);
43
- break;
44
- }
45
- }
46
- e.removeData(m);
47
- if (!i.length) {
48
- if (r) {
49
- cancelAnimationFrame(a);
50
- } else {
51
- clearTimeout(a);
52
- }
53
- a = null;
54
- }
55
- },
56
- add: function (e) {
57
- if (!n[f] && this[s]) {
58
- return false;
59
- }
60
- var i;
61
- function a(e, n, a) {
62
- var r = $(this),
63
- s = r.data(m) || {};
64
- s.w = n !== t ? n : r.width();
65
- s.h = a !== t ? a : r.height();
66
- i.apply(this, arguments);
67
- }
68
- if ($.isFunction(e)) {
69
- i = e;
70
- return a;
71
- } else {
72
- i = e.handler;
73
- e.handler = a;
74
- }
75
- },
76
- };
77
- function h(t) {
78
- if (r === true) {
79
- r = t || 1;
80
- }
81
- for (var s = i.length - 1; s >= 0; s--) {
82
- var l = $(i[s]);
83
- if (l[0] == e || l.is(":visible")) {
84
- var f = l.width(),
85
- c = l.height(),
86
- d = l.data(m);
87
- if (d && (f !== d.w || c !== d.h)) {
88
- l.trigger(u, [(d.w = f), (d.h = c)]);
89
- r = t || true;
90
- }
91
- } else {
92
- d = l.data(m);
93
- d.w = 0;
94
- d.h = 0;
95
- }
96
- }
97
- if (a !== null) {
98
- if (r && (t == null || t - r < 1e3)) {
99
- a = e.requestAnimationFrame(h);
100
- } else {
101
- a = setTimeout(h, n[o]);
102
- r = false;
103
- }
104
- }
105
- }
106
- if (!e.requestAnimationFrame) {
107
- e.requestAnimationFrame = (function () {
108
- return (
109
- e.webkitRequestAnimationFrame ||
110
- e.mozRequestAnimationFrame ||
111
- e.oRequestAnimationFrame ||
112
- e.msRequestAnimationFrame ||
113
- function (t, i) {
114
- return e.setTimeout(function () {
115
- t(new Date().getTime());
116
- }, n[l]);
117
- }
118
- );
119
- })();
120
- }
121
- if (!e.cancelAnimationFrame) {
122
- e.cancelAnimationFrame = (function () {
123
- return e.webkitCancelRequestAnimationFrame || e.mozCancelRequestAnimationFrame || e.oCancelRequestAnimationFrame || e.msCancelRequestAnimationFrame || clearTimeout;
124
- })();
125
- }
126
- })(jQuery, this);
127
- (function ($) {
128
- var options = {};
129
- function init(plot) {
130
- function onResize() {
131
- var placeholder = plot.getPlaceholder();
132
- if (placeholder.width() == 0 || placeholder.height() == 0) return;
133
- plot.resize();
134
- plot.setupGrid();
135
- plot.draw();
136
- }
137
- function bindEvents(plot, eventHolder) {
138
- plot.getPlaceholder().resize(onResize);
139
- }
140
- function shutdown(plot, eventHolder) {
141
- plot.getPlaceholder().unbind("resize", onResize);
142
- }
143
- plot.hooks.bindEvents.push(bindEvents);
144
- plot.hooks.shutdown.push(shutdown);
145
- }
146
- $.plot.plugins.push({ init: init, options: options, name: "resize", version: "1.0" });
147
- })(jQuery);
1
+ /* Javascript plotting library for jQuery, version 0.8.3.
2
+
3
+ Copyright (c) 2007-2014 IOLA and Ole Laursen.
4
+ Licensed under the MIT license.
5
+
6
+ */
7
+ (function ($, e, t) {
8
+ "$:nomunge";
9
+ var i = [],
10
+ n = ($.resize = $.extend($.resize, {})),
11
+ a,
12
+ r = false,
13
+ s = "setTimeout",
14
+ u = "resize",
15
+ m = u + "-special-event",
16
+ o = "pendingDelay",
17
+ l = "activeDelay",
18
+ f = "throttleWindow";
19
+ n[o] = 200;
20
+ n[l] = 20;
21
+ n[f] = true;
22
+ $.event.special[u] = {
23
+ setup: function () {
24
+ if (!n[f] && this[s]) {
25
+ return false;
26
+ }
27
+ var e = $(this);
28
+ i.push(this);
29
+ e.data(m, { w: e.width(), h: e.height() });
30
+ if (i.length === 1) {
31
+ a = t;
32
+ h();
33
+ }
34
+ },
35
+ teardown: function () {
36
+ if (!n[f] && this[s]) {
37
+ return false;
38
+ }
39
+ var e = $(this);
40
+ for (var t = i.length - 1; t >= 0; t--) {
41
+ if (i[t] == this) {
42
+ i.splice(t, 1);
43
+ break;
44
+ }
45
+ }
46
+ e.removeData(m);
47
+ if (!i.length) {
48
+ if (r) {
49
+ cancelAnimationFrame(a);
50
+ } else {
51
+ clearTimeout(a);
52
+ }
53
+ a = null;
54
+ }
55
+ },
56
+ add: function (e) {
57
+ if (!n[f] && this[s]) {
58
+ return false;
59
+ }
60
+ var i;
61
+ function a(e, n, a) {
62
+ var r = $(this),
63
+ s = r.data(m) || {};
64
+ s.w = n !== t ? n : r.width();
65
+ s.h = a !== t ? a : r.height();
66
+ i.apply(this, arguments);
67
+ }
68
+ if ($.isFunction(e)) {
69
+ i = e;
70
+ return a;
71
+ } else {
72
+ i = e.handler;
73
+ e.handler = a;
74
+ }
75
+ },
76
+ };
77
+ function h(t) {
78
+ if (r === true) {
79
+ r = t || 1;
80
+ }
81
+ for (var s = i.length - 1; s >= 0; s--) {
82
+ var l = $(i[s]);
83
+ if (l[0] == e || l.is(":visible")) {
84
+ var f = l.width(),
85
+ c = l.height(),
86
+ d = l.data(m);
87
+ if (d && (f !== d.w || c !== d.h)) {
88
+ l.trigger(u, [(d.w = f), (d.h = c)]);
89
+ r = t || true;
90
+ }
91
+ } else {
92
+ d = l.data(m);
93
+ d.w = 0;
94
+ d.h = 0;
95
+ }
96
+ }
97
+ if (a !== null) {
98
+ if (r && (t == null || t - r < 1e3)) {
99
+ a = e.requestAnimationFrame(h);
100
+ } else {
101
+ a = setTimeout(h, n[o]);
102
+ r = false;
103
+ }
104
+ }
105
+ }
106
+ if (!e.requestAnimationFrame) {
107
+ e.requestAnimationFrame = (function () {
108
+ return (
109
+ e.webkitRequestAnimationFrame ||
110
+ e.mozRequestAnimationFrame ||
111
+ e.oRequestAnimationFrame ||
112
+ e.msRequestAnimationFrame ||
113
+ function (t, i) {
114
+ return e.setTimeout(function () {
115
+ t(new Date().getTime());
116
+ }, n[l]);
117
+ }
118
+ );
119
+ })();
120
+ }
121
+ if (!e.cancelAnimationFrame) {
122
+ e.cancelAnimationFrame = (function () {
123
+ return e.webkitCancelRequestAnimationFrame || e.mozCancelRequestAnimationFrame || e.oCancelRequestAnimationFrame || e.msCancelRequestAnimationFrame || clearTimeout;
124
+ })();
125
+ }
126
+ })(jQuery, this);
127
+ (function ($) {
128
+ var options = {};
129
+ function init(plot) {
130
+ function onResize() {
131
+ var placeholder = plot.getPlaceholder();
132
+ if (placeholder.width() == 0 || placeholder.height() == 0) return;
133
+ plot.resize();
134
+ plot.setupGrid();
135
+ plot.draw();
136
+ }
137
+ function bindEvents(plot, eventHolder) {
138
+ plot.getPlaceholder().resize(onResize);
139
+ }
140
+ function shutdown(plot, eventHolder) {
141
+ plot.getPlaceholder().unbind("resize", onResize);
142
+ }
143
+ plot.hooks.bindEvents.push(bindEvents);
144
+ plot.hooks.shutdown.push(shutdown);
145
+ }
146
+ $.plot.plugins.push({ init: init, options: options, name: "resize", version: "1.0" });
147
+ })(jQuery);
@@ -1,104 +1,104 @@
1
- /* Javascript plotting library for jQuery, version 0.8.3.
2
-
3
- Copyright (c) 2007-2014 IOLA and Ole Laursen.
4
- Licensed under the MIT license.
5
-
6
- */
7
- (function ($) {
8
- var options = { series: { stack: null } };
9
- function init(plot) {
10
- function findMatchingSeries(s, allseries) {
11
- var res = null;
12
- for (var i = 0; i < allseries.length; ++i) {
13
- if (s == allseries[i]) break;
14
- if (allseries[i].stack == s.stack) res = allseries[i];
15
- }
16
- return res;
17
- }
18
- function stackData(plot, s, datapoints) {
19
- if (s.stack == null || s.stack === false) return;
20
- var other = findMatchingSeries(s, plot.getData());
21
- if (!other) return;
22
- var ps = datapoints.pointsize,
23
- points = datapoints.points,
24
- otherps = other.datapoints.pointsize,
25
- otherpoints = other.datapoints.points,
26
- newpoints = [],
27
- px,
28
- py,
29
- intery,
30
- qx,
31
- qy,
32
- bottom,
33
- withlines = s.lines.show,
34
- horizontal = s.bars.horizontal,
35
- withbottom = ps > 2 && (horizontal ? datapoints.format[2].x : datapoints.format[2].y),
36
- withsteps = withlines && s.lines.steps,
37
- fromgap = true,
38
- keyOffset = horizontal ? 1 : 0,
39
- accumulateOffset = horizontal ? 0 : 1,
40
- i = 0,
41
- j = 0,
42
- l,
43
- m;
44
- while (true) {
45
- if (i >= points.length) break;
46
- l = newpoints.length;
47
- if (points[i] == null) {
48
- for (m = 0; m < ps; ++m) newpoints.push(points[i + m]);
49
- i += ps;
50
- } else if (j >= otherpoints.length) {
51
- if (!withlines) {
52
- for (m = 0; m < ps; ++m) newpoints.push(points[i + m]);
53
- }
54
- i += ps;
55
- } else if (otherpoints[j] == null) {
56
- for (m = 0; m < ps; ++m) newpoints.push(null);
57
- fromgap = true;
58
- j += otherps;
59
- } else {
60
- px = points[i + keyOffset];
61
- py = points[i + accumulateOffset];
62
- qx = otherpoints[j + keyOffset];
63
- qy = otherpoints[j + accumulateOffset];
64
- bottom = 0;
65
- if (px == qx) {
66
- for (m = 0; m < ps; ++m) newpoints.push(points[i + m]);
67
- newpoints[l + accumulateOffset] += qy;
68
- bottom = qy;
69
- i += ps;
70
- j += otherps;
71
- } else if (px > qx) {
72
- if (withlines && i > 0 && points[i - ps] != null) {
73
- intery = py + ((points[i - ps + accumulateOffset] - py) * (qx - px)) / (points[i - ps + keyOffset] - px);
74
- newpoints.push(qx);
75
- newpoints.push(intery + qy);
76
- for (m = 2; m < ps; ++m) newpoints.push(points[i + m]);
77
- bottom = qy;
78
- }
79
- j += otherps;
80
- } else {
81
- if (fromgap && withlines) {
82
- i += ps;
83
- continue;
84
- }
85
- for (m = 0; m < ps; ++m) newpoints.push(points[i + m]);
86
- if (withlines && j > 0 && otherpoints[j - otherps] != null)
87
- bottom = qy + ((otherpoints[j - otherps + accumulateOffset] - qy) * (px - qx)) / (otherpoints[j - otherps + keyOffset] - qx);
88
- newpoints[l + accumulateOffset] += bottom;
89
- i += ps;
90
- }
91
- fromgap = false;
92
- if (l != newpoints.length && withbottom) newpoints[l + 2] += bottom;
93
- }
94
- if (withsteps && l != newpoints.length && l > 0 && newpoints[l] != null && newpoints[l] != newpoints[l - ps] && newpoints[l + 1] != newpoints[l - ps + 1]) {
95
- for (m = 0; m < ps; ++m) newpoints[l + ps + m] = newpoints[l + m];
96
- newpoints[l + 1] = newpoints[l - ps + 1];
97
- }
98
- }
99
- datapoints.points = newpoints;
100
- }
101
- plot.hooks.processDatapoints.push(stackData);
102
- }
103
- $.plot.plugins.push({ init: init, options: options, name: "stack", version: "1.2" });
104
- })(jQuery);
1
+ /* Javascript plotting library for jQuery, version 0.8.3.
2
+
3
+ Copyright (c) 2007-2014 IOLA and Ole Laursen.
4
+ Licensed under the MIT license.
5
+
6
+ */
7
+ (function ($) {
8
+ var options = { series: { stack: null } };
9
+ function init(plot) {
10
+ function findMatchingSeries(s, allseries) {
11
+ var res = null;
12
+ for (var i = 0; i < allseries.length; ++i) {
13
+ if (s == allseries[i]) break;
14
+ if (allseries[i].stack == s.stack) res = allseries[i];
15
+ }
16
+ return res;
17
+ }
18
+ function stackData(plot, s, datapoints) {
19
+ if (s.stack == null || s.stack === false) return;
20
+ var other = findMatchingSeries(s, plot.getData());
21
+ if (!other) return;
22
+ var ps = datapoints.pointsize,
23
+ points = datapoints.points,
24
+ otherps = other.datapoints.pointsize,
25
+ otherpoints = other.datapoints.points,
26
+ newpoints = [],
27
+ px,
28
+ py,
29
+ intery,
30
+ qx,
31
+ qy,
32
+ bottom,
33
+ withlines = s.lines.show,
34
+ horizontal = s.bars.horizontal,
35
+ withbottom = ps > 2 && (horizontal ? datapoints.format[2].x : datapoints.format[2].y),
36
+ withsteps = withlines && s.lines.steps,
37
+ fromgap = true,
38
+ keyOffset = horizontal ? 1 : 0,
39
+ accumulateOffset = horizontal ? 0 : 1,
40
+ i = 0,
41
+ j = 0,
42
+ l,
43
+ m;
44
+ while (true) {
45
+ if (i >= points.length) break;
46
+ l = newpoints.length;
47
+ if (points[i] == null) {
48
+ for (m = 0; m < ps; ++m) newpoints.push(points[i + m]);
49
+ i += ps;
50
+ } else if (j >= otherpoints.length) {
51
+ if (!withlines) {
52
+ for (m = 0; m < ps; ++m) newpoints.push(points[i + m]);
53
+ }
54
+ i += ps;
55
+ } else if (otherpoints[j] == null) {
56
+ for (m = 0; m < ps; ++m) newpoints.push(null);
57
+ fromgap = true;
58
+ j += otherps;
59
+ } else {
60
+ px = points[i + keyOffset];
61
+ py = points[i + accumulateOffset];
62
+ qx = otherpoints[j + keyOffset];
63
+ qy = otherpoints[j + accumulateOffset];
64
+ bottom = 0;
65
+ if (px == qx) {
66
+ for (m = 0; m < ps; ++m) newpoints.push(points[i + m]);
67
+ newpoints[l + accumulateOffset] += qy;
68
+ bottom = qy;
69
+ i += ps;
70
+ j += otherps;
71
+ } else if (px > qx) {
72
+ if (withlines && i > 0 && points[i - ps] != null) {
73
+ intery = py + ((points[i - ps + accumulateOffset] - py) * (qx - px)) / (points[i - ps + keyOffset] - px);
74
+ newpoints.push(qx);
75
+ newpoints.push(intery + qy);
76
+ for (m = 2; m < ps; ++m) newpoints.push(points[i + m]);
77
+ bottom = qy;
78
+ }
79
+ j += otherps;
80
+ } else {
81
+ if (fromgap && withlines) {
82
+ i += ps;
83
+ continue;
84
+ }
85
+ for (m = 0; m < ps; ++m) newpoints.push(points[i + m]);
86
+ if (withlines && j > 0 && otherpoints[j - otherps] != null)
87
+ bottom = qy + ((otherpoints[j - otherps + accumulateOffset] - qy) * (px - qx)) / (otherpoints[j - otherps + keyOffset] - qx);
88
+ newpoints[l + accumulateOffset] += bottom;
89
+ i += ps;
90
+ }
91
+ fromgap = false;
92
+ if (l != newpoints.length && withbottom) newpoints[l + 2] += bottom;
93
+ }
94
+ if (withsteps && l != newpoints.length && l > 0 && newpoints[l] != null && newpoints[l] != newpoints[l - ps] && newpoints[l + 1] != newpoints[l - ps + 1]) {
95
+ for (m = 0; m < ps; ++m) newpoints[l + ps + m] = newpoints[l + m];
96
+ newpoints[l + 1] = newpoints[l - ps + 1];
97
+ }
98
+ }
99
+ datapoints.points = newpoints;
100
+ }
101
+ plot.hooks.processDatapoints.push(stackData);
102
+ }
103
+ $.plot.plugins.push({ init: init, options: options, name: "stack", version: "1.2" });
104
+ })(jQuery);
@@ -4,8 +4,8 @@ import type { AppMenuItem } from '../app/menu';
4
4
  import type { CardHeaderDropdownArgs } from '../card/card-header-with-options';
5
5
  import type { DropdownListOption } from '../dropdown';
6
6
  import type { TimegridCalendarAddClickedArgs, TimegridCalendarEvent } from '../fullcalendar/timegrid-calendar';
7
- import { toNative } from 'vue-facing-decorator';
8
- import { Component } from '../../app/vuetsx';
7
+ import { Prop, toNative } from 'vue-facing-decorator';
8
+ import TsxComponent, { Component } from '../../app/vuetsx';
9
9
  import { PowerduckViewModelBase } from '../../common/base-component';
10
10
  import { DateWrapper } from '../../common/date-wrapper';
11
11
  import Accordion from '../accordion/accordion';
@@ -19,7 +19,7 @@ import CardBody from '../card/card-body';
19
19
  import CardHeader from '../card/card-header';
20
20
  import CardHeaderWithOptions from '../card/card-header-with-options';
21
21
  import DataTableStatic from '../datatable/datatable-static';
22
- import DropdownList from '../dropdown';
22
+ import DropdownList, { MultiselectMode } from '../dropdown';
23
23
  import DropdownButton from '../dropdown-button/dropdown-button';
24
24
  import DropdownButtonItem from '../dropdown-button/dropdown-button-item';
25
25
  import DropdownButtonSeparator from '../dropdown-button/dropdown-button-separator';
@@ -44,6 +44,8 @@ import ModalSectionWrapper from '../modal-wrap/modal-section-wrapper';
44
44
  import Modal, { ModalSize } from '../modal/modal';
45
45
  import ModalBody from '../modal/modal-body';
46
46
  import ModalFooter from '../modal/modal-footer';
47
+ import CountryDropdown from '../dropdown/country-dropdown';
48
+ import ImageDropdown, { ImageDropdownDataItem } from '../dropdown/image-dropdown';
47
49
 
48
50
  interface TagItem {
49
51
  id: string;
@@ -62,6 +64,8 @@ class TestAllComponentsPageComponent extends PowerduckViewModelBase {
62
64
  numberVal: number = 1;
63
65
  tags: TagItem[] = [];
64
66
  selectedTagIds: string[] = [];
67
+ count: number = 0;
68
+ selectedImageDropdownItems: ImageDropdownDataItem[] = null;
65
69
 
66
70
  protected get breadcrumbItems(): BreadcrumbItem[] {
67
71
  return [
@@ -105,7 +109,7 @@ class TestAllComponentsPageComponent extends PowerduckViewModelBase {
105
109
 
106
110
  getDummyDropdownOptions(): DropdownListOption[] {
107
111
  return [
108
- { id: '1', text: 'Moznost 1' },
112
+ { id: '1', someSpecific: true, text: 'Moznost 1' } as any,
109
113
  { id: '2', text: 'Moznost 2' },
110
114
  ];
111
115
  }
@@ -135,6 +139,13 @@ class TestAllComponentsPageComponent extends PowerduckViewModelBase {
135
139
  });
136
140
  }
137
141
 
142
+ getImageDropdownSource(): ImageDropdownDataItem[] {
143
+ return [
144
+ { id: 1, text: 'Kazuyoshi Funaki', subtitle: 'Nagano 98', imageUrl: 'https://upload.wikimedia.org/wikipedia/commons/6/69/Kazuyoshi_Funaki_%28JAP%29_2014.jpg' },
145
+ { id: 2, text: 'Masahiko Harada', subtitle: 'Nagano 98', imageUrl: 'https://img.olympics.com/images/image/private/t_1-1_300/f_auto/primary/kvwgfkitbetfq96l0jcd' }
146
+ ]
147
+ }
148
+
138
149
  getTagDropdown(): typeof DropdownList.prototype {
139
150
  return this.$refs.tagsDropdown as typeof DropdownList.prototype;
140
151
  }
@@ -312,11 +323,11 @@ class TestAllComponentsPageComponent extends PowerduckViewModelBase {
312
323
  <p>Some modal content1</p>
313
324
  </ModalSection>
314
325
  {this.boolValue == true
315
- && (
316
- <ModalSection icon="icon icon-settings" navCaption="Settings2">
317
- <p>Some modal content2</p>
318
- </ModalSection>
319
- )}
326
+ && (
327
+ <ModalSection icon="icon icon-settings" navCaption="Settings2">
328
+ <p>Some modal content2</p>
329
+ </ModalSection>
330
+ )}
320
331
 
321
332
  <ModalSection icon="icon icon-settings" navCaption="Settings4">
322
333
  <p>Some modal content4444</p>
@@ -380,6 +391,44 @@ class TestAllComponentsPageComponent extends PowerduckViewModelBase {
380
391
  this.selectedOptions = v.id;
381
392
  }}
382
393
  />
394
+ <DropdownList
395
+ options={this.getDummyDropdownOptions()}
396
+ selected={this.getDummyDropdownOptions().filter(p => p.id == this.selectedOptions)[0]}
397
+ label="Custom override"
398
+ multiselect={true}
399
+ multiselectMode={MultiselectMode.Checkboxes}
400
+ customRenderOption={(h, item, originator) => {
401
+ return (<CustomDropdownItem text={item.text} />)
402
+ }}
403
+ customRenderSelectionResult={(h, item, originator) => {
404
+ return (<CustomDropdownItem text={item.text} />)
405
+ }}
406
+ changed={(v) => {
407
+ this.selectedOptions = v.id;
408
+ }}
409
+ />
410
+
411
+ <CountryDropdown
412
+ label='krajina'
413
+ />
414
+
415
+ <ImageDropdown
416
+ options={this.getImageDropdownSource()}
417
+ buttons={[
418
+ {
419
+ iconCss: 'icon icon-pencil', clicked: (e) => {
420
+ console.log('it was clicked');
421
+ }
422
+ }
423
+ ]}
424
+ label={'Osoby'}
425
+ selected={this.selectedImageDropdownItems}
426
+ tagsAdded={(e) => {
427
+ console.log(JSON.stringify(e));
428
+ }}
429
+ changed={(e) => { this.selectedImageDropdownItems = e; }}
430
+ />
431
+
383
432
  <DropdownList
384
433
  ref="tagsDropdown"
385
434
  closeOnSelect={true}
@@ -570,5 +619,26 @@ class TestAllComponentsPageComponent extends PowerduckViewModelBase {
570
619
  }
571
620
  }
572
621
 
622
+ interface FormArgs {
623
+ text: string
624
+ }
625
+
626
+ @Component
627
+ class CustomDropdownItemComponent extends TsxComponent<FormArgs> implements FormArgs {
628
+ count: number = 0;
629
+ @Prop() text: string
630
+
631
+ render(h) {
632
+ return (<div><div onClick={(e) => {
633
+ //alert('wtf?');
634
+ this.count += 1;
635
+ }}>{this.text} dpc count {this.count}</div></div>)
636
+ }
637
+ }
638
+
639
+ const CustomDropdownItem = toNative(CustomDropdownItemComponent);
640
+
641
+
642
+
573
643
  const TestAllComponentsPage = toNative(TestAllComponentsPageComponent);
574
644
  export default TestAllComponentsPage;