inviton-powerduck 0.0.63 → 0.0.65

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 (73) hide show
  1. package/common/resource-helper.ts +86 -0
  2. package/common/utils/date-localization-utils.ts +159 -159
  3. package/components/app/dynamic-component-container.tsx +1 -1
  4. package/components/app/root-dynamic-component-container.tsx +1 -1
  5. package/components/button/button.tsx +1 -1
  6. package/components/button/excel-upload-button.tsx +1 -1
  7. package/components/button/ladda-button.tsx +1 -1
  8. package/components/button/text-button.tsx +1 -1
  9. package/components/button/upload-button.tsx +1 -1
  10. package/components/card/card-body.tsx +1 -1
  11. package/components/card/card-header-with-options.tsx +1 -1
  12. package/components/card/card-header.tsx +1 -1
  13. package/components/card/card.tsx +1 -1
  14. package/components/collapse/index.tsx +1 -1
  15. package/components/contenteditable/index.tsx +1 -1
  16. package/components/context-menu/context-menu.tsx +1 -1
  17. package/components/counter/fetchdata.tsx +1 -1
  18. package/components/counter/index.tsx +1 -1
  19. package/components/datatable/col-vis-modal.tsx +1 -1
  20. package/components/datatable/export-excel-modal.tsx +1 -1
  21. package/components/datatable/filter-modal.tsx +1 -1
  22. package/components/dropdown/currency-code-picker.tsx +1 -1
  23. package/components/dropdown/image-dropdown.tsx +1 -1
  24. package/components/dropdown/language-picker.tsx +1 -1
  25. package/components/dropdown/timezone-picker.tsx +1 -1
  26. package/components/dropdown-button/dropdown-button-element.tsx +1 -1
  27. package/components/dropdown-button/dropdown-button-heading.tsx +1 -1
  28. package/components/dropdown-button/dropdown-button-item.tsx +1 -1
  29. package/components/dropdown-button/dropdown-button-separator.tsx +1 -1
  30. package/components/dropdown-button/language-dropdown-button.tsx +1 -1
  31. package/components/file-downloader/index.tsx +1 -1
  32. package/components/form/footer-buttons.tsx +1 -1
  33. package/components/form/form.tsx +1 -1
  34. package/components/form/separator.tsx +1 -1
  35. package/components/form/validation-result-displayer.tsx +1 -1
  36. package/components/fullcalendar/fullcalendar-draggable-event.tsx +1 -1
  37. package/components/fullcalendar/timegrid-calendar.tsx +1 -1
  38. package/components/google/maps.tsx +1 -1
  39. package/components/highlight-js/index.tsx +1 -1
  40. package/components/home/index.tsx +1 -1
  41. package/components/html-literal/html-literal.tsx +1 -1
  42. package/components/image-crop/image-cropping-modal.tsx +1 -1
  43. package/components/image-crop/upload-and-crop.tsx +1 -1
  44. package/components/input/checkbox-without-label.tsx +1 -1
  45. package/components/input/geo-json.tsx +1 -1
  46. package/components/input/gps-input.tsx +1 -1
  47. package/components/loading-indicator/index.tsx +1 -1
  48. package/components/modal/animation-error.tsx +1 -1
  49. package/components/modal/animation-success.tsx +1 -1
  50. package/components/modal/icon-question.tsx +1 -1
  51. package/components/modal/icon-warning.tsx +1 -1
  52. package/components/modal/modal-body.tsx +1 -1
  53. package/components/modal/modal-footer.tsx +1 -1
  54. package/components/modal-wrap/modal-section-wrapper.tsx +1 -1
  55. package/components/modal-wrap/modal-subtitle.tsx +1 -1
  56. package/components/progress-bar/index.tsx +1 -1
  57. package/components/rating/rating-displayer.tsx +1 -1
  58. package/components/rating/rating-picker.tsx +1 -1
  59. package/components/share/share-modal.tsx +1 -1
  60. package/components/share/share.tsx +1 -1
  61. package/components/sortable/sortable-container.tsx +1 -1
  62. package/components/sortable/sortable-item.tsx +1 -1
  63. package/components/spreadsheet/spreadsheet.tsx +1 -1
  64. package/components/summary-stats/summary-stats.tsx +1 -1
  65. package/components/swiper/swiper-gallery.tsx +1 -1
  66. package/components/swiper/swiper-slide.tsx +1 -1
  67. package/components/swiper/swiper.tsx +1 -1
  68. package/components/table-wrapper/table-wrapper.tsx +1 -1
  69. package/components/tilebox/tilebox.tsx +1 -1
  70. package/components/tooltip/index.tsx +1 -1
  71. package/components/transition/index.tsx +1 -1
  72. package/components/wizard/wizard-subtitle.tsx +1 -1
  73. package/package.json +1 -1
@@ -0,0 +1,86 @@
1
+ export default class ResourceHelper {
2
+ static loadResourcesDynamically(files: { src: string, type: 'js' | 'css', mode?: 'normal' | 'module' }[]): Promise<boolean> {
3
+ return new Promise((resolve) => {
4
+ const loadScript = (src: string, mode?: 'normal' | 'module', retries = 3) => {
5
+ return new Promise((resolve, reject) => {
6
+ const attemptLoad = (attempt) => {
7
+ const script = document.createElement("script");
8
+ script.src = src;
9
+ script.async = true;
10
+
11
+ if (mode == 'module') {
12
+ script.type = 'module';
13
+ }
14
+
15
+ script.onload = () => resolve(`Loaded: ${src}`);
16
+ script.onerror = () => {
17
+ if (attempt < retries) {
18
+ const delay = Math.floor(Math.random() * (1200 - 500 + 1)) + 500;
19
+ console.warn(`Retrying ${src} in ${delay}ms... (${attempt + 1}/${retries})`);
20
+ setTimeout(() => attemptLoad(attempt + 1), delay);
21
+ } else {
22
+ reject(new Error(`Failed to load: ${src}`));
23
+ }
24
+ };
25
+
26
+ document.head.appendChild(script);
27
+ };
28
+
29
+ attemptLoad(0);
30
+ });
31
+ };
32
+
33
+ const loadCSS = (href: string, retries = 3) => {
34
+ return new Promise((resolve, reject) => {
35
+ const attemptLoad = (attempt) => {
36
+ const link = document.createElement("link");
37
+ link.rel = "stylesheet";
38
+ link.href = href;
39
+
40
+ link.onload = () => resolve(`Loaded: ${href}`);
41
+ link.onerror = () => {
42
+ if (attempt < retries) {
43
+ const delay = Math.floor(Math.random() * (1200 - 500 + 1)) + 500;
44
+ console.warn(`Retrying ${href} in ${delay}ms... (${attempt + 1}/${retries})`);
45
+ setTimeout(() => attemptLoad(attempt + 1), delay);
46
+ } else {
47
+ reject(new Error(`Failed to load: ${href}`));
48
+ }
49
+ };
50
+
51
+ document.head.appendChild(link);
52
+ };
53
+
54
+ attemptLoad(0);
55
+ });
56
+ };
57
+
58
+ Promise.all(files.map(file => {
59
+ if (file.type == 'js') {
60
+ return loadScript(file.src, file.mode).then(
61
+ result => ({ status: "fulfilled", value: result }),
62
+ error => ({ status: "rejected", reason: error })
63
+ );
64
+ } else if (file.type == 'css') {
65
+ return loadCSS(file.src).then(
66
+ result => ({ status: "fulfilled", value: result }),
67
+ error => ({ status: "rejected", reason: error })
68
+ );
69
+ } else {
70
+ return Promise.resolve({ status: "rejected", reason: new Error(`Unsupported file type: ${file}`) });
71
+ }
72
+ })).then(results => {
73
+ let allOk = true;
74
+ results.forEach(result => {
75
+ if (result.status != "fulfilled") {
76
+ console.error((result as any).reason);
77
+ allOk = false;
78
+ }
79
+ });
80
+
81
+ resolve(allOk);
82
+ });
83
+ });
84
+ }
85
+
86
+ }
@@ -4,162 +4,162 @@ import { DateWrapper } from "../date-wrapper";
4
4
  import { capitalize } from "./capitalize-string";
5
5
 
6
6
  export default class DateLocalizationUtils {
7
- private static readonly DATE_FORMAT_FOR_RANGE_PICKER = (function () {
8
- const dummyDate = new Date(Date.UTC(2022, 11, 20));
9
- const formatted = dummyDate.toLocaleDateString(PowerduckState.getCurrentLanguageCode(), {
10
- day: '2-digit',
11
- month: '2-digit',
12
- year: "numeric",
13
- timeZone: 'UTC'
14
- });
15
-
16
- return formatted.replace('20', 'DD').replace('12', 'MM').replace('2022', 'YYYY');
17
- })();
18
-
19
- private static readonly MONTH_IS_FIRST: boolean = (function () {
20
- const dummyDate = new Date(Date.UTC(2024, 9, 20));
21
- try {
22
- const formatted = dummyDate.toLocaleDateString(PowerduckState.getCurrentLanguageCode(), {
23
- day: '2-digit',
24
- month: '2-digit',
25
- timeZone: 'UTC'
26
- });
27
-
28
- const monthIndex = formatted.indexOf('10');
29
- const dayIndex = formatted.indexOf('20');
30
- return monthIndex < dayIndex;
31
-
32
- } catch (error) {
33
- return false;
34
- }
35
- })();
36
-
37
- private static readonly PATTERN_WITHOUT_YEAR: string = (function () {
38
- const dummyDate = new Date(Date.UTC(2024, 9, 30));
39
- try {
40
- const monthName = dummyDate.toLocaleDateString(PowerduckState.getCurrentLanguageCode(), {
41
- day: '2-digit',
42
- month: 'long',
43
- timeZone: 'UTC'
44
- }).split('30').join('').split('.').join('').trim();
45
-
46
- const formatted = dummyDate.toLocaleDateString(PowerduckState.getCurrentLanguageCode(), {
47
- day: '2-digit',
48
- month: 'long',
49
- timeZone: 'UTC'
50
- });
51
-
52
- return formatted.replace(monthName, '{{month}}').replace('30', '{{day}}');
53
-
54
- } catch (error) {
55
- return '{{day}}. {{month}}'
56
- }
57
- })();
58
-
59
- private static readonly PATTERN_WITH_YEAR: string = (function () {
60
- const dummyDate = new Date(Date.UTC(2024, 9, 30));
61
- try {
62
- const monthName = dummyDate.toLocaleDateString(PowerduckState.getCurrentLanguageCode(), {
63
- day: '2-digit',
64
- month: 'long',
65
- timeZone: 'UTC'
66
- }).split('30').join('').split('.').join('').trim();
67
-
68
- const formatted = dummyDate.toLocaleDateString(PowerduckState.getCurrentLanguageCode(), {
69
- day: '2-digit',
70
- year: 'numeric',
71
- month: 'long',
72
- timeZone: 'UTC'
73
- });
74
-
75
- return formatted.replace(monthName, '{{month}}').replace('30', '{{day}}').replace('2024', '{{year}}');
76
-
77
- } catch (error) {
78
- return '{{day}}. {{month}}'
79
- }
80
- })();
81
-
82
- private static readonly PATTERN_PLACEHOLDERED: string = (function () {
83
- const dummyDate = new Date(Date.UTC(2024, 9, 30));
84
- try {
85
- const monthName = dummyDate.toLocaleDateString(PowerduckState.getCurrentLanguageCode(), {
86
- month: 'long',
87
- timeZone: 'UTC'
88
- });
89
-
90
- const formatted = dummyDate.toLocaleDateString(PowerduckState.getCurrentLanguageCode(), {
91
- year: 'numeric',
92
- month: 'long',
93
- timeZone: 'UTC'
94
- });
95
-
96
- return formatted.replace(monthName, '{{date}}').replace('30', '{{day}}').replace('2024', '{{year}}');
97
-
98
- } catch (error) {
99
- return '{{day}}. {{month}}'
100
- }
101
- })();
102
-
103
- static formatRange = (from: DateWrapper, to: DateWrapper): string => {
104
- if (from.getMonth() == to.getMonth()) {
105
- const convertDate = new Date(Date.UTC(from.getFullYear(), from.getMonth(), from.getDate()));
106
- convertDate.setDate(28);
107
-
108
- const monthName = convertDate.toLocaleDateString(PowerduckState.getCurrentLanguageCode(), {
109
- day: '2-digit',
110
- month: 'long',
111
- timeZone: 'UTC'
112
- }).split('28').join('').split('.').join('').trim();
113
-
114
- return this.PATTERN_WITH_YEAR
115
- .replace('{{day}}', `${from.getDate()} - ${to.getDate()}`)
116
- .replace('{{month}}', monthName)
117
- .replace('{{year}}', from.getFullYear().toString());
118
- } else if (from.getFullYear() == to.getFullYear()) {
119
- const fromDate = this.getFormatted(from, this.PATTERN_WITHOUT_YEAR, 'numeric', 'short');
120
- const toDate = this.getFormatted(to, this.PATTERN_WITHOUT_YEAR, 'numeric', 'short');
121
- const rangeVal = `${fromDate} - ${toDate}`
122
- return this.PATTERN_PLACEHOLDERED.replace('{{date}}', rangeVal).replace('{{year}}', to.getFullYear().toString());
123
- } else {
124
- const fromVal = this.getFormatted(from, this.PATTERN_WITH_YEAR, 'numeric', 'short', 'numeric');
125
- const toVal = this.getFormatted(to, this.PATTERN_WITH_YEAR, 'numeric', 'short', 'numeric');
126
- return `${fromVal} - ${toVal}`
127
- }
128
- }
129
-
130
- static getFormatedDateWithoutTime = (dte: DateWrapper, showYear: boolean, day: "numeric" | "2-digit" | undefined, month?: "numeric" | "2-digit" | "long" | "short" | "narrow" | undefined, year?: "numeric" | "2-digit" | undefined) => {
131
- if (showYear) {
132
- return this.getFormatted(dte, this.PATTERN_WITH_YEAR, day, month);
133
- } else {
134
- return this.getFormatted(dte, this.PATTERN_WITHOUT_YEAR, day, month);
135
- }
136
- }
137
-
138
- private static getFormatted = (dte: DateWrapper, pattern: string, day: "numeric" | "2-digit" | undefined, month?: "numeric" | "2-digit" | "long" | "short" | "narrow" | undefined, year?: "numeric" | "2-digit" | undefined): string => {
139
- let monthVal: string;
140
- try {
141
- monthVal = capitalize(dte.innerDate.toLocaleDateString(PowerduckState.getCurrentLanguageCode(), {
142
- month: month,
143
- timeZone: 'UTC'
144
- }));
145
- } catch (error) {
146
- monthVal = (dte.getMonth() + 1).toString();
147
- }
148
-
149
- let dayVal: string;
150
- if (day == '2-digit') {
151
- dayVal = dte.getDate().toString();
152
- if (dayVal.length == 1) {
153
- dayVal = '0' + dayVal
154
- }
155
- } else {
156
- dayVal = dte.getDate().toString();
157
- }
158
-
159
- if (year == null) {
160
- return pattern.replace('{{day}}', dayVal).replace('{{month}}', monthVal);
161
- } else {
162
- return pattern.replace('{{day}}', dayVal).replace('{{month}}', monthVal).replace('{{year}}', dte.getFullYear().toString());
163
- }
164
- }
165
- }
7
+ private static readonly DATE_FORMAT_FOR_RANGE_PICKER = (function () {
8
+ const dummyDate = new Date(Date.UTC(2022, 11, 20));
9
+ const formatted = dummyDate.toLocaleDateString(PowerduckState.getCurrentLanguageCode(), {
10
+ day: '2-digit',
11
+ month: '2-digit',
12
+ year: "numeric",
13
+ timeZone: 'UTC'
14
+ });
15
+
16
+ return formatted.replace('20', 'DD').replace('12', 'MM').replace('2022', 'YYYY');
17
+ })();
18
+
19
+ private static readonly MONTH_IS_FIRST: boolean = (function () {
20
+ const dummyDate = new Date(Date.UTC(2024, 9, 20));
21
+ try {
22
+ const formatted = dummyDate.toLocaleDateString(PowerduckState.getCurrentLanguageCode(), {
23
+ day: '2-digit',
24
+ month: '2-digit',
25
+ timeZone: 'UTC'
26
+ });
27
+
28
+ const monthIndex = formatted.indexOf('10');
29
+ const dayIndex = formatted.indexOf('20');
30
+ return monthIndex < dayIndex;
31
+
32
+ } catch (error) {
33
+ return false;
34
+ }
35
+ })();
36
+
37
+ private static readonly PATTERN_WITHOUT_YEAR: string = (function () {
38
+ const dummyDate = new Date(Date.UTC(2024, 9, 30));
39
+ try {
40
+ const monthName = dummyDate.toLocaleDateString(PowerduckState.getCurrentLanguageCode(), {
41
+ day: '2-digit',
42
+ month: 'long',
43
+ timeZone: 'UTC'
44
+ }).split('30').join('').split('.').join('').trim();
45
+
46
+ const formatted = dummyDate.toLocaleDateString(PowerduckState.getCurrentLanguageCode(), {
47
+ day: '2-digit',
48
+ month: 'long',
49
+ timeZone: 'UTC'
50
+ });
51
+
52
+ return formatted.replace(monthName, '{{month}}').replace('30', '{{day}}');
53
+
54
+ } catch (error) {
55
+ return '{{day}}. {{month}}'
56
+ }
57
+ })();
58
+
59
+ private static readonly PATTERN_WITH_YEAR: string = (function () {
60
+ const dummyDate = new Date(Date.UTC(2024, 9, 30));
61
+ try {
62
+ const monthName = dummyDate.toLocaleDateString(PowerduckState.getCurrentLanguageCode(), {
63
+ day: '2-digit',
64
+ month: 'long',
65
+ timeZone: 'UTC'
66
+ }).split('30').join('').split('.').join('').trim();
67
+
68
+ const formatted = dummyDate.toLocaleDateString(PowerduckState.getCurrentLanguageCode(), {
69
+ day: '2-digit',
70
+ year: 'numeric',
71
+ month: 'long',
72
+ timeZone: 'UTC'
73
+ });
74
+
75
+ return formatted.replace(monthName, '{{month}}').replace('30', '{{day}}').replace('2024', '{{year}}');
76
+
77
+ } catch (error) {
78
+ return '{{day}}. {{month}}'
79
+ }
80
+ })();
81
+
82
+ private static readonly PATTERN_PLACEHOLDERED: string = (function () {
83
+ const dummyDate = new Date(Date.UTC(2024, 9, 30));
84
+ try {
85
+ const monthName = dummyDate.toLocaleDateString(PowerduckState.getCurrentLanguageCode(), {
86
+ month: 'long',
87
+ timeZone: 'UTC'
88
+ });
89
+
90
+ const formatted = dummyDate.toLocaleDateString(PowerduckState.getCurrentLanguageCode(), {
91
+ year: 'numeric',
92
+ month: 'long',
93
+ timeZone: 'UTC'
94
+ });
95
+
96
+ return formatted.replace(monthName, '{{date}}').replace('30', '{{day}}').replace('2024', '{{year}}');
97
+
98
+ } catch (error) {
99
+ return '{{day}}. {{month}}'
100
+ }
101
+ })();
102
+
103
+ static formatRange = (from: DateWrapper, to: DateWrapper): string => {
104
+ if (from.getMonth() == to.getMonth()) {
105
+ const convertDate = new Date(Date.UTC(from.getFullYear(), from.getMonth(), from.getDate()));
106
+ convertDate.setDate(28);
107
+
108
+ const monthName = convertDate.toLocaleDateString(PowerduckState.getCurrentLanguageCode(), {
109
+ day: '2-digit',
110
+ month: 'long',
111
+ timeZone: 'UTC'
112
+ }).split('28').join('').split('.').join('').trim();
113
+
114
+ return this.PATTERN_WITH_YEAR
115
+ .replace('{{day}}', `${from.getDate()} - ${to.getDate()}`)
116
+ .replace('{{month}}', monthName)
117
+ .replace('{{year}}', from.getFullYear().toString());
118
+ } else if (from.getFullYear() == to.getFullYear()) {
119
+ const fromDate = this.getFormatted(from, this.PATTERN_WITHOUT_YEAR, 'numeric', 'short');
120
+ const toDate = this.getFormatted(to, this.PATTERN_WITHOUT_YEAR, 'numeric', 'short');
121
+ const rangeVal = `${fromDate} - ${toDate}`
122
+ return this.PATTERN_PLACEHOLDERED.replace('{{date}}', rangeVal).replace('{{year}}', to.getFullYear().toString());
123
+ } else {
124
+ const fromVal = this.getFormatted(from, this.PATTERN_WITH_YEAR, 'numeric', 'short', 'numeric');
125
+ const toVal = this.getFormatted(to, this.PATTERN_WITH_YEAR, 'numeric', 'short', 'numeric');
126
+ return `${fromVal} - ${toVal}`
127
+ }
128
+ }
129
+
130
+ static getFormatedDateWithoutTime = (dte: DateWrapper, showYear: boolean, day: "numeric" | "2-digit" | undefined, month?: "numeric" | "2-digit" | "long" | "short" | "narrow" | undefined, year?: "numeric" | "2-digit" | undefined) => {
131
+ if (showYear) {
132
+ return this.getFormatted(dte, this.PATTERN_WITH_YEAR, day, month, year);
133
+ } else {
134
+ return this.getFormatted(dte, this.PATTERN_WITHOUT_YEAR, day, month);
135
+ }
136
+ }
137
+
138
+ private static getFormatted = (dte: DateWrapper, pattern: string, day: "numeric" | "2-digit" | undefined, month?: "numeric" | "2-digit" | "long" | "short" | "narrow" | undefined, year?: "numeric" | "2-digit" | undefined): string => {
139
+ let monthVal: string;
140
+ try {
141
+ monthVal = capitalize(dte.innerDate.toLocaleDateString(PowerduckState.getCurrentLanguageCode(), {
142
+ month: month,
143
+ timeZone: 'UTC'
144
+ }));
145
+ } catch (error) {
146
+ monthVal = (dte.getMonth() + 1).toString();
147
+ }
148
+
149
+ let dayVal: string;
150
+ if (day == '2-digit') {
151
+ dayVal = dte.getDate().toString();
152
+ if (dayVal.length == 1) {
153
+ dayVal = '0' + dayVal
154
+ }
155
+ } else {
156
+ dayVal = dte.getDate().toString();
157
+ }
158
+
159
+ if (year == null) {
160
+ return pattern.replace('{{day}}', dayVal).replace('{{month}}', monthVal);
161
+ } else {
162
+ return pattern.replace('{{day}}', dayVal).replace('{{month}}', monthVal).replace('{{year}}', dte.getFullYear().toString());
163
+ }
164
+ }
165
+ }
@@ -85,5 +85,5 @@ class DynamicComponentContainerComponent extends Vue implements IDynamicComponen
85
85
  }
86
86
  }
87
87
 
88
- const DynamicComponentContainer = toNative(DynamicComponentContainerComponent)
88
+ const DynamicComponentContainer = toNative(DynamicComponentContainerComponent)
89
89
  export default DynamicComponentContainer
@@ -30,5 +30,5 @@ class RootDynamicComponentContainerComponent extends Vue implements IDynamicComp
30
30
  }
31
31
  }
32
32
 
33
- const RootDynamicComponentContainer = toNative(RootDynamicComponentContainerComponent)
33
+ const RootDynamicComponentContainer = toNative(RootDynamicComponentContainerComponent)
34
34
  export default RootDynamicComponentContainer
@@ -122,5 +122,5 @@ class ButtonComponent extends TsxComponent<ButtonArgs> implements ButtonArgs {
122
122
  }
123
123
  }
124
124
 
125
- const Button = toNative(ButtonComponent)
125
+ const Button = toNative(ButtonComponent)
126
126
  export default Button
@@ -55,5 +55,5 @@ class ExcelUploadButtonComponent extends TsxComponent<ExcelUploadButtonArgs> imp
55
55
  }
56
56
  }
57
57
 
58
- const ExcelUploadButton = toNative(ExcelUploadButtonComponent)
58
+ const ExcelUploadButton = toNative(ExcelUploadButtonComponent)
59
59
  export default ExcelUploadButton
@@ -61,5 +61,5 @@ class LaddaButtonComponent extends TsxComponent<LaddaButtonArgs> implements Ladd
61
61
  }
62
62
  }
63
63
 
64
- const LaddaButton = toNative(LaddaButtonComponent)
64
+ const LaddaButton = toNative(LaddaButtonComponent)
65
65
  export default LaddaButton
@@ -62,5 +62,5 @@ class TextButtonComponent extends TsxComponent<TextButtonArgs> implements TextBu
62
62
  }
63
63
  }
64
64
 
65
- const TextButton = toNative(TextButtonComponent)
65
+ const TextButton = toNative(TextButtonComponent)
66
66
  export default TextButton
@@ -176,5 +176,5 @@ class UploadButtonComponent extends TsxComponent<UploadButtonArgs> implements Up
176
176
  }
177
177
  }
178
178
 
179
- const UploadButton = toNative(UploadButtonComponent)
179
+ const UploadButton = toNative(UploadButtonComponent)
180
180
  export default UploadButton
@@ -9,5 +9,5 @@ class CardBodyComponent extends TsxComponent<CardBodyArgs> implements CardBodyAr
9
9
  }
10
10
  }
11
11
 
12
- const CardBody = toNative(CardBodyComponent)
12
+ const CardBody = toNative(CardBodyComponent)
13
13
  export default CardBody
@@ -54,5 +54,5 @@ class CardHeaderWithOptionsComponent extends TsxComponent<CardHeaderWithOptionsA
54
54
  }
55
55
  }
56
56
 
57
- const CardHeaderWithOptions = toNative(CardHeaderWithOptionsComponent)
57
+ const CardHeaderWithOptions = toNative(CardHeaderWithOptionsComponent)
58
58
  export default CardHeaderWithOptions
@@ -30,5 +30,5 @@ class CardHeaderComponent extends TsxComponent<CardHeaderArgs> implements CardHe
30
30
  }
31
31
  }
32
32
 
33
- const CardHeader = toNative(CardHeaderComponent)
33
+ const CardHeader = toNative(CardHeaderComponent)
34
34
  export default CardHeader
@@ -72,5 +72,5 @@ class CardComponent extends TsxComponent<CardArgs> implements CardArgs {
72
72
  }
73
73
  }
74
74
 
75
- const Card = toNative(CardComponent)
75
+ const Card = toNative(CardComponent)
76
76
  export default Card
@@ -39,5 +39,5 @@ class CollapseComponent extends TsxComponent<CollapseArgs> implements CollapseAr
39
39
  }
40
40
  }
41
41
 
42
- const Collapse = toNative(CollapseComponent)
42
+ const Collapse = toNative(CollapseComponent)
43
43
  export default Collapse
@@ -50,5 +50,5 @@ class ContentEditableComponent extends TsxComponent<ContentEditableArgs> impleme
50
50
  }
51
51
  }
52
52
 
53
- const ContentEditable = toNative(ContentEditableComponent)
53
+ const ContentEditable = toNative(ContentEditableComponent)
54
54
  export default ContentEditable
@@ -19,5 +19,5 @@ class ContextMenuComponent extends TsxComponent<ContextMenuArgs> implements Cont
19
19
  }
20
20
  }
21
21
 
22
- const ContextMenu = toNative(ContextMenuComponent)
22
+ const ContextMenu = toNative(ContextMenuComponent)
23
23
  export default ContextMenu
@@ -91,5 +91,5 @@ class FetchDataComponentComponent extends PowerduckViewModelBase {
91
91
  }
92
92
  }
93
93
 
94
- const FetchDataComponent = toNative(FetchDataComponentComponent)
94
+ const FetchDataComponent = toNative(FetchDataComponentComponent)
95
95
  export default FetchDataComponent
@@ -97,5 +97,5 @@ class CounterComponentComponent extends Vue {
97
97
  }
98
98
  }
99
99
 
100
- const CounterComponent = toNative(CounterComponentComponent)
100
+ const CounterComponent = toNative(CounterComponentComponent)
101
101
  export default CounterComponent
@@ -59,5 +59,5 @@ class ColVisModalComponent extends TsxComponent<ColVisModalArgs> implements ColV
59
59
  }
60
60
  }
61
61
 
62
- const ColVisModal = toNative(ColVisModalComponent)
62
+ const ColVisModal = toNative(ColVisModalComponent)
63
63
  export default ColVisModal
@@ -196,5 +196,5 @@ class TableExportModalComponent extends TsxComponent<TableExportModalBindingArgs
196
196
  }
197
197
  }
198
198
 
199
- const TableExportModal = toNative(TableExportModalComponent)
199
+ const TableExportModal = toNative(TableExportModalComponent)
200
200
  export default TableExportModal
@@ -168,5 +168,5 @@ class ColFilterModalComponent extends TsxComponent<ColFilterModalArgs> implement
168
168
  }
169
169
  }
170
170
 
171
- const ColFilterModal = toNative(ColFilterModalComponent)
171
+ const ColFilterModal = toNative(ColFilterModalComponent)
172
172
  export default ColFilterModal
@@ -57,5 +57,5 @@ class CurrencyCodePickerComponent extends TsxComponent<CurrencyCodePickerArgs> i
57
57
  }
58
58
  }
59
59
 
60
- const CurrencyCodePicker = toNative(CurrencyCodePickerComponent)
60
+ const CurrencyCodePicker = toNative(CurrencyCodePickerComponent)
61
61
  export default CurrencyCodePicker
@@ -237,5 +237,5 @@ class ImageDropdownComponent extends TsxComponent<ImageDropdownArgs> implements
237
237
  }
238
238
  }
239
239
 
240
- const ImageDropdown = toNative(ImageDropdownComponent)
240
+ const ImageDropdown = toNative(ImageDropdownComponent)
241
241
  export default ImageDropdown
@@ -76,5 +76,5 @@ class LanguagePickerComponent extends TsxComponent<LanguagePickerArgs> implement
76
76
  }
77
77
  }
78
78
 
79
- const LanguagePicker = toNative(LanguagePickerComponent)
79
+ const LanguagePicker = toNative(LanguagePickerComponent)
80
80
  export default LanguagePicker
@@ -289,5 +289,5 @@ class TimezonePickerComponent extends TsxComponent<TimezonePickerArgs> implement
289
289
  }
290
290
  }
291
291
 
292
- const TimezonePicker = toNative(TimezonePickerComponent)
292
+ const TimezonePicker = toNative(TimezonePickerComponent)
293
293
  export default TimezonePicker
@@ -75,5 +75,5 @@ class DropdownButtonElementComponent extends TsxComponent<DropdownButtonElementA
75
75
  }
76
76
  }
77
77
 
78
- const DropdownButtonElement = toNative(DropdownButtonElementComponent)
78
+ const DropdownButtonElement = toNative(DropdownButtonElementComponent)
79
79
  export default DropdownButtonElement
@@ -13,5 +13,5 @@ class DropdownButtonHeadingComponent extends TsxComponent<DropdownButtonHeadingA
13
13
  }
14
14
  }
15
15
 
16
- const DropdownButtonHeading = toNative(DropdownButtonHeadingComponent)
16
+ const DropdownButtonHeading = toNative(DropdownButtonHeadingComponent)
17
17
  export default DropdownButtonHeading
@@ -92,5 +92,5 @@ class DropdownButtonItemComponent extends TsxComponent<DropdownButtonItemArgs> i
92
92
  }
93
93
  }
94
94
 
95
- const DropdownButtonItem = toNative(DropdownButtonItemComponent)
95
+ const DropdownButtonItem = toNative(DropdownButtonItemComponent)
96
96
  export default DropdownButtonItem
@@ -9,5 +9,5 @@ class DropdownButtonSeparatorComponent extends TsxComponent<DropdownButtonItemAr
9
9
  }
10
10
  }
11
11
 
12
- const DropdownButtonSeparator = toNative(DropdownButtonSeparatorComponent)
12
+ const DropdownButtonSeparator = toNative(DropdownButtonSeparatorComponent)
13
13
  export default DropdownButtonSeparator
@@ -50,5 +50,5 @@ class LanguageDropdownButtonComponent extends TsxComponent<LanguageDropdownButto
50
50
  }
51
51
  }
52
52
 
53
- const LanguageDropdownButton = toNative(LanguageDropdownButtonComponent)
53
+ const LanguageDropdownButton = toNative(LanguageDropdownButtonComponent)
54
54
  export default LanguageDropdownButton
@@ -262,5 +262,5 @@ class FileDownloadDialogComponent extends TsxComponent<FileDownloadDialogBinding
262
262
  }
263
263
  }
264
264
 
265
- const FileDownloadDialog = toNative(FileDownloadDialogComponent)
265
+ const FileDownloadDialog = toNative(FileDownloadDialogComponent)
266
266
  export default FileDownloadDialog
@@ -13,5 +13,5 @@ class FooterButtonsComponent extends TsxComponent<FooterButtonsArgs> implements
13
13
  }
14
14
  }
15
15
 
16
- const FooterButtons = toNative(FooterButtonsComponent)
16
+ const FooterButtons = toNative(FooterButtonsComponent)
17
17
  export default FooterButtons
@@ -9,5 +9,5 @@ class FormComponent extends TsxComponent<FormArgs> implements FormArgs {
9
9
  }
10
10
  }
11
11
 
12
- const Form = toNative(FormComponent)
12
+ const Form = toNative(FormComponent)
13
13
  export default Form
@@ -15,5 +15,5 @@ class SeparatorComponent extends TsxComponent<SeparatorArgs> implements Separato
15
15
  }
16
16
  }
17
17
 
18
- const Separator = toNative(SeparatorComponent)
18
+ const Separator = toNative(SeparatorComponent)
19
19
  export default Separator
@@ -32,5 +32,5 @@ class ValidationResultDisplayerComponent extends TsxComponent<ValidationResultDi
32
32
  }
33
33
  }
34
34
 
35
- const ValidationResultDisplayer = toNative(ValidationResultDisplayerComponent)
35
+ const ValidationResultDisplayer = toNative(ValidationResultDisplayerComponent)
36
36
  export default ValidationResultDisplayer
@@ -82,5 +82,5 @@ class FullCalendarDraggableEventComponent extends TsxComponent<FullCalendarDragg
82
82
  }
83
83
  }
84
84
 
85
- const FullCalendarDraggableEvent = toNative(FullCalendarDraggableEventComponent)
85
+ const FullCalendarDraggableEvent = toNative(FullCalendarDraggableEventComponent)
86
86
  export default FullCalendarDraggableEvent
@@ -496,5 +496,5 @@ class TimegridCalendarComponent extends TsxComponent<TimegridCalendarArgs> imple
496
496
  }
497
497
  }
498
498
 
499
- const TimegridCalendar = toNative(TimegridCalendarComponent)
499
+ const TimegridCalendar = toNative(TimegridCalendarComponent)
500
500
  export default TimegridCalendar
@@ -153,5 +153,5 @@ class GoogleMapComponent extends TsxComponent<GoogleMapArgs> implements GoogleMa
153
153
  }
154
154
  }
155
155
 
156
- const GoogleMap = toNative(GoogleMapComponent)
156
+ const GoogleMap = toNative(GoogleMapComponent)
157
157
  export default GoogleMap
@@ -59,5 +59,5 @@ class HighlightJsComponent extends TsxComponent<HighlightJsArgs> implements High
59
59
  }
60
60
  }
61
61
 
62
- const HighlightJs = toNative(HighlightJsComponent)
62
+ const HighlightJs = toNative(HighlightJsComponent)
63
63
  export default HighlightJs
@@ -45,5 +45,5 @@ class HomeComponentComponent extends Vue {
45
45
  }
46
46
  }
47
47
 
48
- const HomeComponent = toNative(HomeComponentComponent)
48
+ const HomeComponent = toNative(HomeComponentComponent)
49
49
  export default HomeComponent
@@ -37,5 +37,5 @@ class HtmlLiteralComponent extends TsxComponent<HtmlLiteralArgs> implements Html
37
37
  }
38
38
  }
39
39
 
40
- const HtmlLiteral = toNative(HtmlLiteralComponent)
40
+ const HtmlLiteral = toNative(HtmlLiteralComponent)
41
41
  export default HtmlLiteral
@@ -308,5 +308,5 @@ class ImageCropModalComponent extends TsxComponent<ImageCropModalBindingArgs> im
308
308
  }
309
309
  }
310
310
 
311
- const ImageCropModal = toNative(ImageCropModalComponent)
311
+ const ImageCropModal = toNative(ImageCropModalComponent)
312
312
  export default ImageCropModal
@@ -175,5 +175,5 @@ class UploadImageAndCropButtonComponent extends TsxComponent<UploadImageAndCropB
175
175
  }
176
176
  }
177
177
 
178
- const UploadImageAndCropButton = toNative(UploadImageAndCropButtonComponent)
178
+ const UploadImageAndCropButton = toNative(UploadImageAndCropButtonComponent)
179
179
  export default UploadImageAndCropButton
@@ -62,5 +62,5 @@ class CheckBoxWithoutLabelComponent extends TsxComponent<CheckBoxArgs> implement
62
62
  }
63
63
  }
64
64
 
65
- const CheckBoxWithoutLabel = toNative(CheckBoxWithoutLabelComponent)
65
+ const CheckBoxWithoutLabel = toNative(CheckBoxWithoutLabelComponent)
66
66
  export default CheckBoxWithoutLabel
@@ -53,5 +53,5 @@ class GeoJsonEditorComponent extends TsxComponent<GeoJsonEditorArgs> implements
53
53
  }
54
54
  }
55
55
 
56
- const GeoJsonEditor = toNative(GeoJsonEditorComponent)
56
+ const GeoJsonEditor = toNative(GeoJsonEditorComponent)
57
57
  export default GeoJsonEditor
@@ -113,5 +113,5 @@ class GpsInputComponent extends TsxComponent<GpsInputArgs> implements GpsInputAr
113
113
  }
114
114
  }
115
115
 
116
- const GpsInput = toNative(GpsInputComponent)
116
+ const GpsInput = toNative(GpsInputComponent)
117
117
  export default GpsInput
@@ -36,5 +36,5 @@ class LoadingIndicatorComponent extends TsxComponent<LoadingIndicatorArgs> imple
36
36
  }
37
37
  }
38
38
 
39
- const LoadingIndicator = toNative(LoadingIndicatorComponent)
39
+ const LoadingIndicator = toNative(LoadingIndicatorComponent)
40
40
  export default LoadingIndicator
@@ -25,5 +25,5 @@ class ModalAnimationErrorComponent extends TsxComponent<ModalAnimationErrorArgs>
25
25
  }
26
26
  }
27
27
 
28
- const ModalAnimationError = toNative(ModalAnimationErrorComponent)
28
+ const ModalAnimationError = toNative(ModalAnimationErrorComponent)
29
29
  export default ModalAnimationError
@@ -27,5 +27,5 @@ class ModalAnimationSuccessComponent extends TsxComponent<ModalAnimationSuccessA
27
27
  }
28
28
  }
29
29
 
30
- const ModalAnimationSuccess = toNative(ModalAnimationSuccessComponent)
30
+ const ModalAnimationSuccess = toNative(ModalAnimationSuccessComponent)
31
31
  export default ModalAnimationSuccess
@@ -22,5 +22,5 @@ class ModalIconQuestionComponent extends TsxComponent<ModalIconQuestionArgs> imp
22
22
  }
23
23
  }
24
24
 
25
- const ModalIconQuestion = toNative(ModalIconQuestionComponent)
25
+ const ModalIconQuestion = toNative(ModalIconQuestionComponent)
26
26
  export default ModalIconQuestion
@@ -22,5 +22,5 @@ class ModalIconWarningComponent extends TsxComponent<ModalIconWarningArgs> imple
22
22
  }
23
23
  }
24
24
 
25
- const ModalIconWarning = toNative(ModalIconWarningComponent)
25
+ const ModalIconWarning = toNative(ModalIconWarningComponent)
26
26
  export default ModalIconWarning
@@ -13,5 +13,5 @@ class ModalBodyComponent extends TsxComponent<ModalBodyArgs> implements ModalBod
13
13
  }
14
14
  }
15
15
 
16
- const ModalBody = toNative(ModalBodyComponent)
16
+ const ModalBody = toNative(ModalBodyComponent)
17
17
  export default ModalBody
@@ -9,5 +9,5 @@ class ModalFooterComponent extends TsxComponent<ModalFooterArgs> implements Moda
9
9
  }
10
10
  }
11
11
 
12
- const ModalFooter = toNative(ModalFooterComponent)
12
+ const ModalFooter = toNative(ModalFooterComponent)
13
13
  export default ModalFooter
@@ -61,5 +61,5 @@ class ModalSectionWrapperComponent extends TsxComponent<ModalSectionWrapperArgs>
61
61
  }
62
62
  }
63
63
 
64
- const ModalSectionWrapper = toNative(ModalSectionWrapperComponent)
64
+ const ModalSectionWrapper = toNative(ModalSectionWrapperComponent)
65
65
  export default ModalSectionWrapper
@@ -15,5 +15,5 @@ class ModalSubtitleComponent extends TsxComponent<TabPageArgs> implements TabPag
15
15
  }
16
16
  }
17
17
 
18
- const ModalSubtitle = toNative(ModalSubtitleComponent)
18
+ const ModalSubtitle = toNative(ModalSubtitleComponent)
19
19
  export default ModalSubtitle
@@ -121,5 +121,5 @@ class ProgressBarComponent extends TsxComponent<ProgressBarArgs> implements Prog
121
121
  }
122
122
  }
123
123
 
124
- const ProgressBar = toNative(ProgressBarComponent)
124
+ const ProgressBar = toNative(ProgressBarComponent)
125
125
  export default ProgressBar
@@ -28,5 +28,5 @@ class RatingDisplayerComponent extends TsxComponent<RatingDisplayerArgs> impleme
28
28
  }
29
29
  }
30
30
 
31
- const RatingDisplayer = toNative(RatingDisplayerComponent)
31
+ const RatingDisplayer = toNative(RatingDisplayerComponent)
32
32
  export default RatingDisplayer
@@ -80,5 +80,5 @@ class RatingPickerComponent extends TsxComponent<RatingPickerArgs> implements Ra
80
80
  }
81
81
  }
82
82
 
83
- const RatingPicker = toNative(RatingPickerComponent)
83
+ const RatingPicker = toNative(RatingPickerComponent)
84
84
  export default RatingPicker
@@ -265,5 +265,5 @@ class ShareModalComponent extends TsxComponent<ShareComponentBindingArgs> implem
265
265
  }
266
266
  }
267
267
 
268
- const ShareModal = toNative(ShareModalComponent)
268
+ const ShareModal = toNative(ShareModalComponent)
269
269
  export default ShareModal
@@ -237,5 +237,5 @@ class ShareComponentComponent extends TsxComponent<ShareComponentArgs> implement
237
237
  }
238
238
  }
239
239
 
240
- const ShareComponent = toNative(ShareComponentComponent)
240
+ const ShareComponent = toNative(ShareComponentComponent)
241
241
  export default ShareComponent
@@ -59,5 +59,5 @@ class SortableContainerComponent extends TsxComponent<SortableContainerArgs> imp
59
59
  }
60
60
  }
61
61
 
62
- const SortableContainer = toNative(SortableContainerComponent)
62
+ const SortableContainer = toNative(SortableContainerComponent)
63
63
  export default SortableContainer
@@ -15,5 +15,5 @@ class SortableItemComponent extends TsxComponent<SortableItemArgs> implements So
15
15
  }
16
16
  }
17
17
 
18
- const SortableItem = toNative(SortableItemComponent)
18
+ const SortableItem = toNative(SortableItemComponent)
19
19
  export default SortableItem
@@ -132,5 +132,5 @@ class SpreadsheetComponent extends TsxComponent<SpreadsheetArgs> implements Spre
132
132
  }
133
133
  }
134
134
 
135
- const Spreadsheet = toNative(SpreadsheetComponent)
135
+ const Spreadsheet = toNative(SpreadsheetComponent)
136
136
  export default Spreadsheet
@@ -15,5 +15,5 @@ class SummaryStatsComponent extends TsxComponent<SummaryStatsArgs> implements Su
15
15
  }
16
16
  }
17
17
 
18
- const SummaryStats = toNative(SummaryStatsComponent)
18
+ const SummaryStats = toNative(SummaryStatsComponent)
19
19
  export default SummaryStats
@@ -86,5 +86,5 @@ class SwiperGalleryComponent extends TsxComponent<SwiperGalleryArgs> implements
86
86
  }
87
87
  }
88
88
 
89
- const SwiperGallery = toNative(SwiperGalleryComponent)
89
+ const SwiperGallery = toNative(SwiperGalleryComponent)
90
90
  export default SwiperGallery
@@ -9,5 +9,5 @@ class SwiperSlideComponent extends TsxComponent<SwiperSlideArgs> implements Swip
9
9
  }
10
10
  }
11
11
 
12
- const SwiperSlide = toNative(SwiperSlideComponent)
12
+ const SwiperSlide = toNative(SwiperSlideComponent)
13
13
  export default SwiperSlide
@@ -131,5 +131,5 @@ class SwiperComponent extends TsxComponent<SwiperArgs> implements SwiperArgs {
131
131
  }
132
132
  }
133
133
 
134
- const Swiper = toNative(SwiperComponent)
134
+ const Swiper = toNative(SwiperComponent)
135
135
  export default Swiper
@@ -23,5 +23,5 @@ class TableWrapperComponent extends TsxComponent<TableWrapperArgs> implements Ta
23
23
  }
24
24
  }
25
25
 
26
- const TableWrapper = toNative(TableWrapperComponent)
26
+ const TableWrapper = toNative(TableWrapperComponent)
27
27
  export default TableWrapper
@@ -77,5 +77,5 @@ class TileboxComponent extends TsxComponent<TileboxArgs> implements TileboxArgs
77
77
  }
78
78
  }
79
79
 
80
- const Tilebox = toNative(TileboxComponent)
80
+ const Tilebox = toNative(TileboxComponent)
81
81
  export default Tilebox
@@ -96,5 +96,5 @@ class TooltipContainerComponent extends TsxComponent<TooltipContainerArgs> imple
96
96
  }
97
97
  }
98
98
 
99
- const TooltipContainer = toNative(TooltipContainerComponent)
99
+ const TooltipContainer = toNative(TooltipContainerComponent)
100
100
  export default TooltipContainer
@@ -14,5 +14,5 @@ class TransitionHolderComponent extends TsxComponent<TransitionArgs> implements
14
14
  }
15
15
  }
16
16
 
17
- const TransitionHolder = toNative(TransitionHolderComponent)
17
+ const TransitionHolder = toNative(TransitionHolderComponent)
18
18
  export default TransitionHolder
@@ -9,5 +9,5 @@ class WizardSubtitleComponent extends TsxComponent<WizardSubtitleArgs> implement
9
9
  }
10
10
  }
11
11
 
12
- const WizardSubtitle = toNative(WizardSubtitleComponent)
12
+ const WizardSubtitle = toNative(WizardSubtitleComponent)
13
13
  export default WizardSubtitle
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "inviton-powerduck",
3
- "version": "0.0.63",
3
+ "version": "0.0.65",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "build": " vite build && vue-tsc --declaration --emitDeclarationOnly",