inviton-powerduck 0.0.90 → 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/common/utils/country-utils.ts +28 -0
- 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
|
@@ -62,6 +62,34 @@ export default class CountryUtils {
|
|
|
62
62
|
static buildBasicCountryCodeArr(): Array<Array<string>> {
|
|
63
63
|
return [["AFG", "AF", "Afghanistan"], ["ALA", "AX", "Åland Islands"], ["ALB", "AL", "Albania"], ["DZA", "DZ", "Algeria"], ["ASM", "AS", "American Samoa"], ["AND", "AD", "Andorra"], ["AGO", "AO", "Angola"], ["AIA", "AI", "Anguilla"], ["ATA", "AQ", "Antarctica"], ["ATG", "AG", "Antigua and Barbuda"], ["ARG", "AR", "Argentina"], ["ARM", "AM", "Armenia"], ["ABW", "AW", "Aruba"], ["AUS", "AU", "Australia"], ["AUT", "AT", "Austria"], ["AZE", "AZ", "Azerbaijan"], ["BHS", "BS", "Bahamas"], ["BHR", "BH", "Bahrain"], ["BGD", "BD", "Bangladesh"], ["BRB", "BB", "Barbados"], ["BLR", "BY", "Belarus"], ["BEL", "BE", "Belgium"], ["BLZ", "BZ", "Belize"], ["BEN", "BJ", "Benin"], ["BMU", "BM", "Bermuda"], ["BTN", "BT", "Bhutan"], ["BO", "Plurinational State of", "Bolivia"], ["BOL", "BO", "Bolivia"], ["BQ", "Sint Eustatius and Saba", "Bonaire"], ["BIH", "BA", "Bosnia and Herzegovina"], ["BWA", "BW", "Botswana"], ["BVT", "BV", "Bouvet Island"], ["BRA", "BR", "Brazil"], ["IOT", "IO", "British Indian Ocean Territory"], ["BRN", "BN", "Brunei Darussalam"], ["BRN", "BN", "Brunei"], ["BGR", "BG", "Bulgaria"], ["BFA", "BF", "Burkina Faso"], ["MMR", "MM", "Burma"], ["BDI", "BI", "Burundi"], ["KHM", "KH", "Cambodia"], ["CMR", "CM", "Cameroon"], ["CAN", "CA", "Canada"], ["CPV", "CV", "Cape Verde"], ["CYM", "KY", "Cayman Islands"], ["CAF", "CF", "Central African Republic"], ["TCD", "TD", "Chad"], ["CHL", "CL", "Chile"], ["CHN", "CN", "China"], ["CXR", "CX", "Christmas Island"], ["CCK", "CC", "Cocos (Keeling) Islands"], ["COL", "CO", "Colombia"], ["COM", "KM", "Comoros"], ["CD", "the Democratic Republic of the", "Congo"], ["COG", "CG", "Congo"], ["COK", "CK", "Cook Islands"], ["CRI", "CR", "Costa Rica"], ["CIV", "CI", "Côte d'Ivoire"], ["HRV", "HR", "Croatia"], ["CUB", "CU", "Cuba"], ["CUW", "CW", "Curaçao"], ["CYP", "CY", "Cyprus"], ["CZE", "CZ", "Czech Republic"], ["DNK", "DK", "Denmark"], ["DJI", "DJ", "Djibouti"], ["DMA", "DM", "Dominica"], ["DOM", "DO", "Dominican Republic"], ["ECU", "EC", "Ecuador"], ["EGY", "EG", "Egypt"], ["SLV", "SV", "El Salvador"], ["GNQ", "GQ", "Equatorial Guinea"], ["ERI", "ER", "Eritrea"], ["EST", "EE", "Estonia"], ["ETH", "ET", "Ethiopia"], ["FLK", "FK", "Falkland Islands (Malvinas)"], ["FRO", "FO", "Faroe Islands"], ["FJI", "FJ", "Fiji"], ["FIN", "FI", "Finland"], ["FRA", "FR", "France"], ["GUF", "GF", "French Guiana"], ["PYF", "PF", "French Polynesia"], ["ATF", "TF", "French Southern Territories"], ["GAB", "GA", "Gabon"], ["GMB", "GM", "Gambia"], ["GEO", "GE", "Georgia"], ["DEU", "DE", "Germany"], ["GHA", "GH", "Ghana"], ["GIB", "GI", "Gibraltar"], ["GRC", "GR", "Greece"], ["GRL", "GL", "Greenland"], ["GRD", "GD", "Grenada"], ["GLP", "GP", "Guadeloupe"], ["GUM", "GU", "Guam"], ["GTM", "GT", "Guatemala"], ["GGY", "GG", "Guernsey"], ["GNB", "GW", "Guinea-Bissau"], ["GIN", "GN", "Guinea"], ["GUY", "GY", "Guyana"], ["HTI", "HT", "Haiti"], ["HMD", "HM", "Heard Island and McDonald Islands"], ["VAT", "VA", "Holy See (Vatican City State)"], ["HND", "HN", "Honduras"], ["HKG", "HK", "Hong Kong"], ["HUN", "HU", "Hungary"], ["ISL", "IS", "Iceland"], ["IND", "IN", "India"], ["IDN", "ID", "Indonesia"], ["IR", "Islamic Republic of", "Iran"], ["IRQ", "IQ", "Iraq"], ["IRL", "IE", "Ireland"], ["IMN", "IM", "Isle of Man"], ["ISR", "IL", "Israel"], ["ITA", "IT", "Italy"], ["CIV", "CI", "Ivory Coast"], ["JAM", "JM", "Jamaica"], ["JPN", "JP", "Japan"], ["JEY", "JE", "Jersey"], ["JOR", "JO", "Jordan"], ["KAZ", "KZ", "Kazakhstan"], ["KEN", "KE", "Kenya"], ["KIR", "KI", "Kiribati"], ["KP", "Democratic People's Republic of", "Korea"], ["KR", "Republic of", "Korea"], ["XKX", "XK", "Kosovo"], ["KWT", "KW", "Kuwait"], ["KGZ", "KG", "Kyrgyzstan"], ["LAO", "LA", "Lao People's Democratic Republic"], ["LVA", "LV", "Latvia"], ["LBN", "LB", "Lebanon"], ["LSO", "LS", "Lesotho"], ["LBR", "LR", "Liberia"], ["LBY", "LY", "Libya"], ["LBY", "LY", "Libyan Arab Jamahiriya"], ["LIE", "LI", "Liechtenstein"], ["LTU", "LT", "Lithuania"], ["LUX", "LU", "Luxembourg"], ["MAC", "MO", "Macao"], ["MK", "the former Yugoslav Republic of", "Macedonia"], ["MDG", "MG", "Madagascar"], ["MWI", "MW", "Malawi"], ["MYS", "MY", "Malaysia"], ["MDV", "MV", "Maldives"], ["MLI", "ML", "Mali"], ["MLT", "MT", "Malta"], ["MHL", "MH", "Marshall Islands"], ["MTQ", "MQ", "Martinique"], ["MRT", "MR", "Mauritania"], ["MUS", "MU", "Mauritius"], ["MYT", "YT", "Mayotte"], ["MEX", "MX", "Mexico"], ["FM", "Federated States of", "Micronesia"], ["MD", "Republic of", "Moldova"], ["MCO", "MC", "Monaco"], ["MNG", "MN", "Mongolia"], ["MNE", "ME", "Montenegro"], ["MSR", "MS", "Montserrat"], ["MAR", "MA", "Morocco"], ["MOZ", "MZ", "Mozambique"], ["MMR", "MM", "Myanmar"], ["NAM", "NA", "Namibia"], ["NRU", "NR", "Nauru"], ["NPL", "NP", "Nepal"], ["ANT", "AN", "Netherlands Antilles"], ["NLD", "NL", "Netherlands"], ["NCL", "NC", "New Caledonia"], ["NZL", "NZ", "New Zealand"], ["NIC", "NI", "Nicaragua"], ["NER", "NE", "Niger"], ["NGA", "NG", "Nigeria"], ["NIU", "NU", "Niue"], ["NFK", "NF", "Norfolk Island"], ["MNP", "MP", "Northern Mariana Islands"], ["NOR", "NO", "Norway"], ["OMN", "OM", "Oman"], ["PAK", "PK", "Pakistan"], ["PLW", "PW", "Palau"], ["PS", "Occupied", "Palestinian Territory"], ["PAN", "PA", "Panama"], ["PNG", "PG", "Papua New Guinea"], ["PRY", "PY", "Paraguay"], ["PER", "PE", "Peru"], ["PHL", "PH", "Philippines"], ["PCN", "PN", "Pitcairn"], ["POL", "PL", "Poland"], ["PRT", "PT", "Portugal"], ["PRI", "PR", "Puerto Rico"], ["QAT", "QA", "Qatar"], ["REU", "RE", "Réunion"], ["ROU", "RO", "Romania"], ["RUS", "RU", "Russia"], ["RUS", "RU", "Russian Federation"], ["RWA", "RW", "Rwanda"], ["BLM", "BL", "Saint Barthélemy"], ["SH", "Ascension and Tristan da Cunha", "Saint Helena"], ["KNA", "KN", "Saint Kitts and Nevis"], ["LCA", "LC", "Saint Lucia"], ["MAF", "MF", "Saint Martin (French part)"], ["SPM", "PM", "Saint Pierre and Miquelon"], ["VCT", "VC", "Saint Vincent & the Grenadines"], ["VCT", "VC", "Saint Vincent and the Grenadines"], ["WSM", "WS", "Samoa"], ["SMR", "SM", "San Marino"], ["STP", "ST", "Sao Tome and Principe"], ["SAU", "SA", "Saudi Arabia"], ["SEN", "SN", "Senegal"], ["SRB", "RS", "Serbia"], ["SYC", "SC", "Seychelles"], ["SLE", "SL", "Sierra Leone"], ["SGP", "SG", "Singapore"], ["SXM", "SX", "Sint Maarten (Dutch part)"], ["SVK", "SK", "Slovakia"], ["SVN", "SI", "Slovenia"], ["SLB", "SB", "Solomon Islands"], ["SOM", "SO", "Somalia"], ["ZAF", "ZA", "South Africa"], ["SGS", "GS", "South Georgia and the South Sandwich Islands"], ["KOR", "KR", "South Korea"], ["SSD", "SS", "South Sudan"], ["ESP", "ES", "Spain"], ["LKA", "LK", "Sri Lanka"], ["VCT", "VC", "St. Vincent and the Grenadines"], ["SDN", "SD", "Sudan"], ["SUR", "SR", "Suriname"], ["SJM", "SJ", "Svalbard and Jan Mayen"], ["SWZ", "SZ", "Swaziland"], ["SWE", "SE", "Sweden"], ["CHE", "CH", "Switzerland"], ["SYR", "SY", "Syrian Arab Republic"], ["TWN", "TW", "Taiwan"], ["TJK", "TJ", "Tajikistan"], ["TZ", "United Republic of", "Tanzania"], ["THA", "TH", "Thailand"], ["TLS", "TL", "Timor-Leste"], ["TGO", "TG", "Togo"], ["TKL", "TK", "Tokelau"], ["TON", "TO", "Tonga"], ["TTO", "TT", "Trinidad and Tobago"], ["TUN", "TN", "Tunisia"], ["TUR", "TR", "Turkey"], ["TKM", "TM", "Turkmenistan"], ["TCA", "TC", "Turks and Caicos Islands"], ["TUV", "TV", "Tuvalu"], ["UGA", "UG", "Uganda"], ["UKR", "UA", "Ukraine"], ["ARE", "AE", "United Arab Emirates"], ["GBR", "GB", "United Kingdom"], ["UMI", "UM", "United States Minor Outlying Islands"], ["USA", "US", "United States"], ["URY", "UY", "Uruguay"], ["UZB", "UZ", "Uzbekistan"], ["VUT", "VU", "Vanuatu"], ["VE", "Bolivarian Republic of", "Venezuela"], ["VEN", "VE", "Venezuela"], ["VNM", "VN", "Viet Nam"], ["VNM", "VN", "Vietnam"], ["VG", "British", "Virgin Islands"], ["VI", "U.S.", "Virgin Islands"], ["WLF", "WF", "Wallis and Futuna"], ["ESH", "EH", "Western Sahara"], ["YEM", "YE", "Yemen"], ["ZMB", "ZM", "Zambia"], ["ZWE", "ZW", "Zimbabwe"]];
|
|
64
64
|
}
|
|
65
|
+
|
|
66
|
+
static getByThreeLetterCode(threeLetterCode: string): CountryData {
|
|
67
|
+
if (threeLetterCode == null) {
|
|
68
|
+
return null;
|
|
69
|
+
} else {
|
|
70
|
+
threeLetterCode = threeLetterCode.toUpperCase();
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
return CountryUtils.getCountryCodeArr().find(p => p.id == threeLetterCode);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
static getByTwoLetterCode(twoLetterCode: string): CountryData {
|
|
77
|
+
if (twoLetterCode == null) {
|
|
78
|
+
return null;
|
|
79
|
+
} else {
|
|
80
|
+
twoLetterCode = twoLetterCode.toUpperCase();
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
return CountryUtils.getCountryCodeArr().find(p => p.twoLetters == twoLetterCode);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
static getTwoLetterCodeFromThreeLetterCode(threeLetterCode: string): string {
|
|
87
|
+
return CountryUtils.getByThreeLetterCode(threeLetterCode)?.twoLetters;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
static getThreeLetterCodeFromTwoLetterCode(twoLetterCode: string): string {
|
|
91
|
+
return CountryUtils.getByTwoLetterCode(twoLetterCode)?.id;
|
|
92
|
+
}
|
|
65
93
|
}
|
|
66
94
|
|
|
67
95
|
|
|
@@ -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",
|