inviton-powerduck 0.0.91 → 0.0.92
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/app/dynamic-component-container.tsx +1 -1
- package/components/app/root-dynamic-component-container.tsx +1 -1
- package/components/button/button.tsx +1 -1
- package/components/button/excel-upload-button.tsx +1 -1
- package/components/button/ladda-button.tsx +1 -1
- package/components/button/text-button.tsx +1 -1
- package/components/button/upload-button.tsx +1 -1
- package/components/card/card-body.tsx +1 -1
- package/components/card/card-header-with-options.tsx +1 -1
- package/components/card/card-header.tsx +1 -1
- package/components/card/card.tsx +1 -1
- package/components/collapse/index.tsx +1 -1
- package/components/contenteditable/index.tsx +1 -1
- package/components/context-menu/context-menu.tsx +1 -1
- package/components/counter/fetchdata.tsx +1 -1
- package/components/counter/index.tsx +1 -1
- package/components/datatable/col-vis-modal.tsx +1 -1
- package/components/datatable/filter-modal.tsx +1 -1
- package/components/dropdown/index.tsx +4 -3
- package/components/dropdown/ts/select2-multi-checkboxes.ts +41 -41
- package/components/dropdown-button/dropdown-button-element.tsx +1 -1
- package/components/dropdown-button/dropdown-button-heading.tsx +1 -1
- package/components/dropdown-button/dropdown-button-item.tsx +1 -1
- package/components/dropdown-button/dropdown-button-separator.tsx +1 -1
- package/components/dropdown-button/language-dropdown-button.tsx +1 -1
- package/components/file-downloader/index.tsx +1 -1
- package/components/form/footer-buttons.tsx +1 -1
- package/components/form/form.tsx +1 -1
- package/components/form/separator.tsx +1 -1
- package/components/form/validation-result-displayer.tsx +1 -1
- package/components/fullcalendar/fullcalendar-draggable-event.tsx +1 -1
- package/components/fullcalendar/timegrid-calendar.tsx +1 -1
- package/components/google/maps.tsx +1 -1
- package/components/highlight-js/index.tsx +1 -1
- package/components/home/index.tsx +1 -1
- package/components/html-literal/html-literal.tsx +1 -1
- package/components/image-crop/image-cropping-modal.tsx +1 -1
- package/components/image-crop/upload-and-crop.tsx +1 -1
- package/components/input/checkbox-without-label.tsx +1 -1
- package/components/input/geo-json.tsx +1 -1
- package/components/loading-indicator/index.tsx +1 -1
- package/components/modal/animation-error.tsx +1 -1
- package/components/modal/animation-success.tsx +1 -1
- package/components/modal/icon-question.tsx +1 -1
- package/components/modal/icon-warning.tsx +1 -1
- package/components/modal/modal-body.tsx +1 -1
- package/components/modal/modal-footer.tsx +1 -1
- package/components/modal-wrap/modal-section-wrapper.tsx +1 -1
- package/components/modal-wrap/modal-subtitle.tsx +1 -1
- package/components/progress-bar/index.tsx +1 -1
- package/components/rating/rating-displayer.tsx +1 -1
- package/components/rating/rating-picker.tsx +1 -1
- package/components/share/share-modal.tsx +1 -1
- package/components/share/share.tsx +1 -1
- package/components/sortable/sortable-container.tsx +1 -1
- package/components/sortable/sortable-item.tsx +1 -1
- package/components/spreadsheet/spreadsheet.tsx +1 -1
- package/components/summary-stats/summary-stats.tsx +1 -1
- package/components/swiper/swiper-gallery.tsx +1 -1
- package/components/swiper/swiper-slide.tsx +1 -1
- package/components/swiper/swiper.tsx +1 -1
- package/components/table-wrapper/table-wrapper.tsx +1 -1
- package/components/tilebox/tilebox.tsx +1 -1
- package/components/tooltip/index.tsx +1 -1
- package/components/transition/index.tsx +1 -1
- package/components/wizard/wizard-subtitle.tsx +1 -1
- package/package.json +2 -2
|
@@ -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
|
|
@@ -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
|
package/components/card/card.tsx
CHANGED
|
@@ -106,9 +106,10 @@ export interface DropdownTrailingButtonArgs {
|
|
|
106
106
|
clicked: (row: any) => void;
|
|
107
107
|
}
|
|
108
108
|
|
|
109
|
+
const s2Utils = ($ as any).fn.select2.amd.require('select2/utils');
|
|
109
110
|
class DropdownSelect2Helper {
|
|
110
111
|
static getSelect2Instance(s2Elem: JQuery<Element>): any {
|
|
111
|
-
return
|
|
112
|
+
return s2Utils.GetData(s2Elem[0], "select2");
|
|
112
113
|
}
|
|
113
114
|
}
|
|
114
115
|
|
|
@@ -597,7 +598,7 @@ class DropdownListComponent extends TsxComponent<DropdownListArgs> implements Dr
|
|
|
597
598
|
$selection.on("click", ".dll-clickable-button", function (e) {
|
|
598
599
|
let $this = $(this);
|
|
599
600
|
let buttonIndex = $this.attr("data-index");
|
|
600
|
-
let selectionData = $this.parent().parent().parent()
|
|
601
|
+
let selectionData = s2Utils.GetData($this.parent().parent().parent()[0], "data");
|
|
601
602
|
let opts = self.getOptions();
|
|
602
603
|
let dataItem = opts.filter((p) => p.id == selectionData.id)[0];
|
|
603
604
|
|
|
@@ -895,7 +896,7 @@ class DropdownListComponent extends TsxComponent<DropdownListArgs> implements Dr
|
|
|
895
896
|
s2Elem[s2Constructor](s2Args);
|
|
896
897
|
|
|
897
898
|
if (this.containerCssClass?.length > 0) {
|
|
898
|
-
|
|
899
|
+
DropdownSelect2Helper.getSelect2Instance(s2Elem).$dropdown.addClass(this.containerCssClass);
|
|
899
900
|
}
|
|
900
901
|
|
|
901
902
|
if (s2Args.tags) {
|
|
@@ -11,9 +11,10 @@ import { PortalUtils } from "../../../common/utils/utils";
|
|
|
11
11
|
* License : MIT
|
|
12
12
|
*/
|
|
13
13
|
(function ($) {
|
|
14
|
+
const s2Utils = ($ as any).fn.select2.amd.require('select2/utils');
|
|
14
15
|
var exclusiveBinder = function (jqElem, s2Instance) {
|
|
15
16
|
var uuid = PortalUtils.randomString(10);
|
|
16
|
-
var ctx =
|
|
17
|
+
var ctx = s2Utils.GetData(jqElem[0], "select2").$dropdown.find(".s2-cb-btn");
|
|
17
18
|
|
|
18
19
|
if (!ctx.hasClass("s2-incl-excl")) {
|
|
19
20
|
ctx.addClass("s2-incl-excl").prepend(
|
|
@@ -57,6 +58,7 @@ import { PortalUtils } from "../../../common/utils/utils";
|
|
|
57
58
|
var self = this;
|
|
58
59
|
self.options = options;
|
|
59
60
|
self.$element = $(element);
|
|
61
|
+
|
|
60
62
|
var values = self.$element.val();
|
|
61
63
|
var getSelected = () => {
|
|
62
64
|
let retArr = [];
|
|
@@ -80,45 +82,44 @@ import { PortalUtils } from "../../../common/utils/utils";
|
|
|
80
82
|
|
|
81
83
|
self.$element.removeAttr("multiple");
|
|
82
84
|
self.currentData = options.data;
|
|
83
|
-
self.select2
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
templateSelection
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
templateResult
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
}
|
|
85
|
+
self.$element.select2({
|
|
86
|
+
allowClear: true,
|
|
87
|
+
ajax: {
|
|
88
|
+
transport: function (params, success, failure) {
|
|
89
|
+
success({ results: self.currentData });
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
language: options.language,
|
|
93
|
+
dropdownAutoWidth: options.dropdownAutoWidth == true,
|
|
94
|
+
minimumResultsForSearch: options.minimumResultsForSearch,
|
|
95
|
+
placeholder: options.placeholder,
|
|
96
|
+
closeOnSelect: false,
|
|
97
|
+
templateSelection: function () {
|
|
98
|
+
return self.options.templateSelection(
|
|
99
|
+
getSelected(),
|
|
100
|
+
self.currentData,
|
|
101
|
+
self.$element
|
|
102
|
+
);
|
|
103
|
+
},
|
|
104
|
+
templateResult: function (result) {
|
|
105
|
+
if (options.templateResult != null) {
|
|
106
|
+
return options.templateResult(result);
|
|
107
|
+
}
|
|
107
108
|
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
.data("select2");
|
|
109
|
+
if (result.loading !== undefined) return result.text;
|
|
110
|
+
return $("<div>").text(result.text).addClass(self.options.wrapClass);
|
|
111
|
+
},
|
|
112
|
+
matcher: function (params, data) {
|
|
113
|
+
var original_matcher = $.fn["select2"].defaults.defaults.matcher;
|
|
114
|
+
var result = original_matcher(params, data);
|
|
115
|
+
if (result && self.options.searchMatchOptGroups && data.children && result.children && data.children.length != result.children.length) {
|
|
116
|
+
result.children = data.children;
|
|
117
|
+
}
|
|
118
|
+
return result;
|
|
119
|
+
},
|
|
120
|
+
});
|
|
121
121
|
|
|
122
|
+
self.select2 = s2Utils.GetData(self.$element[0], 'select2');
|
|
122
123
|
if (self.initialSelect2 == null) {
|
|
123
124
|
self.initialSelect2 = self.select2;
|
|
124
125
|
}
|
|
@@ -136,7 +137,7 @@ import { PortalUtils } from "../../../common/utils/utils";
|
|
|
136
137
|
self.$element.on("select2:opening", function (this: any, e) {
|
|
137
138
|
if (options.allowExclusiveSearch == true) {
|
|
138
139
|
let jqElem = $(this);
|
|
139
|
-
let openingSelect2 =
|
|
140
|
+
let openingSelect2 = s2Utils.GetData(this, "select2");
|
|
140
141
|
exclusiveBinder(jqElem, openingSelect2);
|
|
141
142
|
}
|
|
142
143
|
});
|
|
@@ -148,8 +149,7 @@ import { PortalUtils } from "../../../common/utils/utils";
|
|
|
148
149
|
(function (mySelf) {
|
|
149
150
|
return function (this: any, evt) {
|
|
150
151
|
var $this = $(this);
|
|
151
|
-
|
|
152
|
-
var data = $this.data("data");
|
|
152
|
+
var data = s2Utils.GetData(this, 'data');
|
|
153
153
|
|
|
154
154
|
if ($this.attr("aria-selected") === "true") {
|
|
155
155
|
if (self.currentData != null) {
|
|
@@ -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
|
package/components/form/form.tsx
CHANGED
|
@@ -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
|
|
@@ -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
|
|
@@ -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
|
|
@@ -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
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "inviton-powerduck",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.92",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": " vite build && vue-tsc --declaration --emitDeclarationOnly",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"mark.js": "8.11.1",
|
|
45
45
|
"moment": "^2.30.1",
|
|
46
46
|
"nprogress": "0.2.0",
|
|
47
|
-
"select2": "4.0.
|
|
47
|
+
"select2": "4.0.13",
|
|
48
48
|
"simple-line-icons": "2.5.5",
|
|
49
49
|
"sortablejs": "1.15.3",
|
|
50
50
|
"sweetalert2": "11.14.5",
|