@osovitny/anatoly 2.14.40 → 2.14.41
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/esm2020/lib/core/dom.mjs +1 -2
- package/esm2020/lib/core/subs.mjs +1 -1
- package/esm2020/lib/data/services/core-api.service.mjs +4 -7
- package/esm2020/lib/data/services/emails-api.service.mjs +3 -5
- package/fesm2015/osovitny-anatoly.mjs +14 -20
- package/fesm2015/osovitny-anatoly.mjs.map +1 -1
- package/fesm2020/osovitny-anatoly.mjs +14 -20
- package/fesm2020/osovitny-anatoly.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -18,7 +18,6 @@ import Swal from 'sweetalert2';
|
|
|
18
18
|
import { v4 } from 'uuid';
|
|
19
19
|
import * as i1$2 from 'ngx-toastr';
|
|
20
20
|
import * as i1$4 from '@angular/platform-browser';
|
|
21
|
-
import * as $$1 from 'jquery';
|
|
22
21
|
import * as i1$6 from '@angular/forms';
|
|
23
22
|
import { FormControl, Validators, ReactiveFormsModule, FormsModule } from '@angular/forms';
|
|
24
23
|
import * as i1$7 from 'angular-froala-wysiwyg';
|
|
@@ -1724,11 +1723,11 @@ class DOM {
|
|
|
1724
1723
|
return this.dir(elem, "parentNode", null, selector);
|
|
1725
1724
|
}
|
|
1726
1725
|
static findInDocument(selector) {
|
|
1727
|
-
let parent =
|
|
1728
|
-
return
|
|
1726
|
+
let parent = $(document);
|
|
1727
|
+
return $(parent).find(selector).get();
|
|
1729
1728
|
}
|
|
1730
1729
|
static find(elem, selector) {
|
|
1731
|
-
return
|
|
1730
|
+
return $(elem).find(selector).get();
|
|
1732
1731
|
}
|
|
1733
1732
|
static remove(nodes) {
|
|
1734
1733
|
if (nodes == null) {
|
|
@@ -1755,13 +1754,13 @@ class DOM {
|
|
|
1755
1754
|
this.remove(this.find(element, selector));
|
|
1756
1755
|
}
|
|
1757
1756
|
static show(elem) {
|
|
1758
|
-
|
|
1757
|
+
$(elem).show();
|
|
1759
1758
|
}
|
|
1760
1759
|
static hide(elem) {
|
|
1761
|
-
|
|
1760
|
+
$(elem).hide();
|
|
1762
1761
|
}
|
|
1763
1762
|
static each(selector, action) {
|
|
1764
|
-
let parent =
|
|
1763
|
+
let parent = $(document);
|
|
1765
1764
|
let elems = DOM.find(parent, selector);
|
|
1766
1765
|
for (let i = 0; i < elems.length; i++) {
|
|
1767
1766
|
let elem = elems[i];
|
|
@@ -1805,13 +1804,13 @@ class DOM {
|
|
|
1805
1804
|
}
|
|
1806
1805
|
*/
|
|
1807
1806
|
static addClass(elem, classNames) {
|
|
1808
|
-
|
|
1807
|
+
$(elem).addClass(classNames);
|
|
1809
1808
|
}
|
|
1810
1809
|
static removeClass(elem, classNames) {
|
|
1811
|
-
|
|
1810
|
+
$(elem).removeClass(classNames);
|
|
1812
1811
|
}
|
|
1813
1812
|
static hasClass(elem, className) {
|
|
1814
|
-
|
|
1813
|
+
$(elem).hasClass(className);
|
|
1815
1814
|
}
|
|
1816
1815
|
}
|
|
1817
1816
|
|
|
@@ -2155,14 +2154,12 @@ class EmailsApiService extends BaseApiService {
|
|
|
2155
2154
|
sendContactUs(captcha, name, email, topic, subject, message, success, error) {
|
|
2156
2155
|
return this.post('sendContactUs', { captcha, name, email, topic, subject, message }).subscribe({
|
|
2157
2156
|
next: (data) => {
|
|
2158
|
-
if (success)
|
|
2157
|
+
if (success)
|
|
2159
2158
|
success(data);
|
|
2160
|
-
}
|
|
2161
2159
|
},
|
|
2162
2160
|
error: (e) => {
|
|
2163
|
-
if (error)
|
|
2161
|
+
if (error)
|
|
2164
2162
|
error(e);
|
|
2165
|
-
}
|
|
2166
2163
|
}
|
|
2167
2164
|
});
|
|
2168
2165
|
}
|
|
@@ -2197,27 +2194,24 @@ class CoreApiService extends BaseApiService {
|
|
|
2197
2194
|
getTimezonesJsonFile(done) {
|
|
2198
2195
|
this.getExternalJsonFile('anatoly', 'timezones.json').subscribe({
|
|
2199
2196
|
next: (data) => {
|
|
2200
|
-
if (done)
|
|
2197
|
+
if (done)
|
|
2201
2198
|
done(data);
|
|
2202
|
-
}
|
|
2203
2199
|
}
|
|
2204
2200
|
});
|
|
2205
2201
|
}
|
|
2206
2202
|
getUSStatesJsonFile(done) {
|
|
2207
2203
|
this.getExternalJsonFile('anatoly', 'usStates.json').subscribe({
|
|
2208
2204
|
next: (data) => {
|
|
2209
|
-
if (done)
|
|
2205
|
+
if (done)
|
|
2210
2206
|
done(data);
|
|
2211
|
-
}
|
|
2212
2207
|
}
|
|
2213
2208
|
});
|
|
2214
2209
|
}
|
|
2215
2210
|
getCountriesJsonFile(done) {
|
|
2216
2211
|
this.getExternalJsonFile('anatoly', 'countries.json').subscribe({
|
|
2217
2212
|
next: (data) => {
|
|
2218
|
-
if (done)
|
|
2213
|
+
if (done)
|
|
2219
2214
|
done(data);
|
|
2220
|
-
}
|
|
2221
2215
|
}
|
|
2222
2216
|
});
|
|
2223
2217
|
}
|