inviton-powerduck 0.0.106 → 0.0.108
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.
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
export interface CountryData {
|
|
2
|
+
id: string,
|
|
3
|
+
twoLetters: string,
|
|
4
|
+
text: string
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
export default class CountryUtilsBase {
|
|
8
|
+
static getCountryCodeArr(langCode: string): CountryData[] {
|
|
9
|
+
let localizedCountryList: CountryData[] = [];
|
|
10
|
+
let countryNamesLocalizer: any;
|
|
11
|
+
|
|
12
|
+
try {
|
|
13
|
+
countryNamesLocalizer = new (Intl as any).DisplayNames([langCode], { type: 'region' });
|
|
14
|
+
} catch (error) {
|
|
15
|
+
countryNamesLocalizer = null;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
for (const item of CountryUtilsBase.buildBasicCountryCodeArr()) {
|
|
19
|
+
let countryName: string = null;
|
|
20
|
+
if (countryNamesLocalizer != null) {
|
|
21
|
+
try {
|
|
22
|
+
countryName = countryNamesLocalizer.of(item[1]);
|
|
23
|
+
} catch (error) {
|
|
24
|
+
countryName = null;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
if (countryName == null || countryName.length == 0) {
|
|
29
|
+
countryName = item[2];
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
if (item[1] == 'US') {
|
|
33
|
+
countryName += ' (USA)';
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
localizedCountryList.push({
|
|
37
|
+
id: item[0],
|
|
38
|
+
twoLetters: item[1].toLowerCase(),
|
|
39
|
+
text: countryName
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
try {
|
|
44
|
+
const collator = new Intl.Collator(langCode, { numeric: true, sensitivity: "base" });
|
|
45
|
+
localizedCountryList = [...localizedCountryList].sort((a, b) => collator.compare(a.text, b.text));
|
|
46
|
+
} catch (error) {
|
|
47
|
+
localizedCountryList = [...localizedCountryList].sort((a, b) => a.text.localeCompare(b.text));
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
return localizedCountryList;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
static buildBasicCountryCodeArr(): Array<Array<string>> {
|
|
54
|
+
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"]];
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
static getByThreeLetterCode(threeLetterCode: string, langCode: string): CountryData {
|
|
58
|
+
if (threeLetterCode == null) {
|
|
59
|
+
return null;
|
|
60
|
+
} else {
|
|
61
|
+
threeLetterCode = threeLetterCode.toUpperCase();
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
return CountryUtilsBase.getCountryCodeArr(langCode).find(p => p.id == threeLetterCode);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
static getByTwoLetterCode(twoLetterCode: string, langCode: string): CountryData {
|
|
68
|
+
if (twoLetterCode == null) {
|
|
69
|
+
return null;
|
|
70
|
+
} else {
|
|
71
|
+
twoLetterCode = twoLetterCode.toLowerCase();
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
return CountryUtilsBase.getCountryCodeArr(langCode).find(p => p.twoLetters == twoLetterCode);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
static getTwoLetterCodeFromThreeLetterCode(threeLetterCode: string, langCode: string): string {
|
|
78
|
+
return CountryUtilsBase.getByThreeLetterCode(threeLetterCode, langCode)?.twoLetters;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
static getThreeLetterCodeFromTwoLetterCode(twoLetterCode: string, langCode: string): string {
|
|
82
|
+
return CountryUtilsBase.getByTwoLetterCode(twoLetterCode, langCode)?.id;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
|
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
import PowerduckState from "../../app/powerduck-state";
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export interface CountryData {
|
|
5
|
-
id: string,
|
|
6
|
-
twoLetters: string,
|
|
7
|
-
text: string
|
|
8
|
-
};
|
|
2
|
+
import CountryUtilsBase, { CountryData as CountryDataBase } from "./base/country-utils-base";
|
|
9
3
|
|
|
4
|
+
export interface CountryData extends CountryDataBase { };
|
|
10
5
|
let localizedCountryList: CountryData[] = null;
|
|
11
6
|
|
|
12
7
|
export default class CountryUtils {
|
|
@@ -15,80 +10,28 @@ export default class CountryUtils {
|
|
|
15
10
|
return localizedCountryList;
|
|
16
11
|
}
|
|
17
12
|
|
|
18
|
-
localizedCountryList =
|
|
19
|
-
let countryNamesLocalizer: any;
|
|
20
|
-
|
|
21
|
-
try {
|
|
22
|
-
countryNamesLocalizer = new (Intl as any).DisplayNames([PowerduckState.getCurrentLanguage()], { type: 'region' });
|
|
23
|
-
} catch (error) {
|
|
24
|
-
countryNamesLocalizer = null;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
for (const item of CountryUtils.buildBasicCountryCodeArr()) {
|
|
28
|
-
let countryName: string = null;
|
|
29
|
-
if (countryNamesLocalizer != null) {
|
|
30
|
-
try {
|
|
31
|
-
countryName = countryNamesLocalizer.of(item[1]);
|
|
32
|
-
} catch (error) {
|
|
33
|
-
countryName = null;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
if (countryName == null || countryName.length == 0) {
|
|
38
|
-
countryName = item[2];
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
if (item[1] == 'US') {
|
|
42
|
-
countryName += ' (USA)';
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
localizedCountryList.push({
|
|
46
|
-
id: item[0],
|
|
47
|
-
twoLetters: item[1].toLowerCase(),
|
|
48
|
-
text: countryName
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
try {
|
|
53
|
-
const collator = new Intl.Collator(PowerduckState.getCurrentLanguage(), { numeric: true, sensitivity: "base" });
|
|
54
|
-
localizedCountryList = [...localizedCountryList].sort((a, b) => collator.compare(a.text, b.text));
|
|
55
|
-
} catch (error) {
|
|
56
|
-
localizedCountryList = arraySort([...localizedCountryList], p => p.text);
|
|
57
|
-
}
|
|
58
|
-
|
|
13
|
+
localizedCountryList = CountryUtilsBase.getCountryCodeArr(PowerduckState.getCurrentLanguage());
|
|
59
14
|
return localizedCountryList;
|
|
60
15
|
}
|
|
61
16
|
|
|
62
17
|
static buildBasicCountryCodeArr(): Array<Array<string>> {
|
|
63
|
-
return
|
|
18
|
+
return CountryUtilsBase.buildBasicCountryCodeArr();
|
|
64
19
|
}
|
|
65
20
|
|
|
66
21
|
static getByThreeLetterCode(threeLetterCode: string): CountryData {
|
|
67
|
-
|
|
68
|
-
return null;
|
|
69
|
-
} else {
|
|
70
|
-
threeLetterCode = threeLetterCode.toUpperCase();
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
return CountryUtils.getCountryCodeArr().find(p => p.id == threeLetterCode);
|
|
22
|
+
return CountryUtilsBase.getByThreeLetterCode(threeLetterCode, PowerduckState.getCurrentLanguage());
|
|
74
23
|
}
|
|
75
24
|
|
|
76
25
|
static getByTwoLetterCode(twoLetterCode: string): CountryData {
|
|
77
|
-
|
|
78
|
-
return null;
|
|
79
|
-
} else {
|
|
80
|
-
twoLetterCode = twoLetterCode.toLowerCase();
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
return CountryUtils.getCountryCodeArr().find(p => p.twoLetters == twoLetterCode);
|
|
26
|
+
return CountryUtilsBase.getByTwoLetterCode(twoLetterCode, PowerduckState.getCurrentLanguage());
|
|
84
27
|
}
|
|
85
28
|
|
|
86
29
|
static getTwoLetterCodeFromThreeLetterCode(threeLetterCode: string): string {
|
|
87
|
-
return
|
|
30
|
+
return CountryUtilsBase.getTwoLetterCodeFromThreeLetterCode(threeLetterCode, PowerduckState.getCurrentLanguage());
|
|
88
31
|
}
|
|
89
32
|
|
|
90
33
|
static getThreeLetterCodeFromTwoLetterCode(twoLetterCode: string): string {
|
|
91
|
-
return
|
|
34
|
+
return CountryUtilsBase.getThreeLetterCodeFromTwoLetterCode(twoLetterCode, PowerduckState.getCurrentLanguage());
|
|
92
35
|
}
|
|
93
36
|
}
|
|
94
37
|
|
|
@@ -829,6 +829,43 @@ class DropdownListComponent extends TsxComponent<DropdownListArgs> implements Dr
|
|
|
829
829
|
};
|
|
830
830
|
|
|
831
831
|
if (!this.useMultiCheckboxes()) {
|
|
832
|
+
const DIACRITICS = ($ as any).fn.select2.amd.require('select2/diacritics');
|
|
833
|
+
const normalizeForSearch = (text: string) => {
|
|
834
|
+
if (text == null) {
|
|
835
|
+
return null;
|
|
836
|
+
}
|
|
837
|
+
|
|
838
|
+
return stripDiacritics(text).toUpperCase();
|
|
839
|
+
};
|
|
840
|
+
const stripDiacritics = (text: string) => {
|
|
841
|
+
function match(a) {
|
|
842
|
+
return DIACRITICS[a] || a;
|
|
843
|
+
}
|
|
844
|
+
|
|
845
|
+
return text.replace(/[^\u0000-\u007E]/g, match);
|
|
846
|
+
};
|
|
847
|
+
const getMatchingChildren = (term: string, dataSet: any) => {
|
|
848
|
+
const retVal: any[] = [];
|
|
849
|
+
for (const item of dataSet) {
|
|
850
|
+
if (item.children?.length > 0) {
|
|
851
|
+
const subData = getMatchingChildren(term, item.children);
|
|
852
|
+
if (subData.length > 0) {
|
|
853
|
+
retVal.push({
|
|
854
|
+
...item,
|
|
855
|
+
children: subData
|
|
856
|
+
})
|
|
857
|
+
}
|
|
858
|
+
} else {
|
|
859
|
+
const normalized = normalizeForSearch(item.text);
|
|
860
|
+
if (normalized.indexOf(term) > -1) {
|
|
861
|
+
retVal.push(item);
|
|
862
|
+
}
|
|
863
|
+
}
|
|
864
|
+
}
|
|
865
|
+
|
|
866
|
+
return retVal;
|
|
867
|
+
};
|
|
868
|
+
|
|
832
869
|
s2Args.data = null
|
|
833
870
|
s2Args.ajax = {
|
|
834
871
|
transport: function (params, success, failure) {
|
|
@@ -840,7 +877,15 @@ class DropdownListComponent extends TsxComponent<DropdownListArgs> implements Dr
|
|
|
840
877
|
resData = opts;
|
|
841
878
|
}
|
|
842
879
|
|
|
843
|
-
|
|
880
|
+
const data = (params?.data || {});
|
|
881
|
+
const query = normalizeForSearch(data.q ?? data.term)?.trim();
|
|
882
|
+
|
|
883
|
+
if (query == null || query.length == 0) {
|
|
884
|
+
success({ results: resData });
|
|
885
|
+
return;
|
|
886
|
+
}
|
|
887
|
+
|
|
888
|
+
success({ results: getMatchingChildren(query, resData) });
|
|
844
889
|
}
|
|
845
890
|
};
|
|
846
891
|
}
|