@osovitny/anatoly 3.19.40 → 3.19.42
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.
|
@@ -4213,6 +4213,9 @@ class Utils {
|
|
|
4213
4213
|
static generateRandom(start, end) {
|
|
4214
4214
|
return Math.floor(Math.random() * (end - start + 1)) + start;
|
|
4215
4215
|
}
|
|
4216
|
+
static sortArray(items) {
|
|
4217
|
+
return items?.slice().sort((a, b) => a.name.toLowerCase().localeCompare(b.name.toLowerCase()));
|
|
4218
|
+
}
|
|
4216
4219
|
}
|
|
4217
4220
|
|
|
4218
4221
|
/*
|
|
@@ -7246,7 +7249,7 @@ class CountryDropdownlist extends EditComponentBase {
|
|
|
7246
7249
|
setValues() {
|
|
7247
7250
|
this.appContext.jsonFilesLoaded$.subscribe({
|
|
7248
7251
|
next: () => {
|
|
7249
|
-
this.items = this.appContext.countries
|
|
7252
|
+
this.items = Utils.sortArray(this.appContext.countries);
|
|
7250
7253
|
}
|
|
7251
7254
|
});
|
|
7252
7255
|
if (this.isNgModelBased) {
|
|
@@ -7267,7 +7270,7 @@ class CountryDropdownlist extends EditComponentBase {
|
|
|
7267
7270
|
type: Component,
|
|
7268
7271
|
args: [{ selector: 'anatoly-country-dropdownlist', standalone: false, template: "<div *ngIf='isNgModelBased'>\r\n</div>\r\n\r\n<div *ngIf='!isNgModelBased' [formGroup]='formGroup'>\r\n <kendo-label text=\"{{ title }}\" *ngIf='isTitleVisible'></kendo-label>\r\n <select [formControlName]='controlName' class='form-select'>\r\n <option *ngFor='let item of items' [value]='item.code'>\r\n {{ item.name }}\r\n </option>\r\n </select>\r\n</div>\r\n" }]
|
|
7269
7272
|
}], () => [{ type: AppContextService }], null); })();
|
|
7270
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CountryDropdownlist, { className: "CountryDropdownlist", filePath: "lib/ui/components/dropdownlists/country/country.dropdownlist.ts", lineNumber:
|
|
7273
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CountryDropdownlist, { className: "CountryDropdownlist", filePath: "lib/ui/components/dropdownlists/country/country.dropdownlist.ts", lineNumber: 29 }); })();
|
|
7271
7274
|
|
|
7272
7275
|
/*
|
|
7273
7276
|
<file>
|
|
@@ -7315,7 +7318,7 @@ class LanguageDropdownlist extends EditComponentBase {
|
|
|
7315
7318
|
ngOnInit() {
|
|
7316
7319
|
this.appContext.jsonFilesLoaded$.subscribe({
|
|
7317
7320
|
next: () => {
|
|
7318
|
-
this.items = this.appContext.languages
|
|
7321
|
+
this.items = Utils.sortArray(this.appContext.languages);
|
|
7319
7322
|
}
|
|
7320
7323
|
});
|
|
7321
7324
|
}
|
|
@@ -7332,7 +7335,7 @@ class LanguageDropdownlist extends EditComponentBase {
|
|
|
7332
7335
|
type: Component,
|
|
7333
7336
|
args: [{ selector: 'anatoly-language-dropdownlist', standalone: false, template: "<div *ngIf='isNgModelBased'>\r\n</div>\r\n\r\n<div *ngIf='!isNgModelBased' [formGroup]='formGroup'>\r\n <kendo-label text=\"{{ title }}\" *ngIf='isTitleVisible'></kendo-label>\r\n <kendo-dropdownlist [data]='items'\r\n valueField=\"code\"\r\n textField=\"name\"\r\n [valuePrimitive]='true'\r\n [formControlName]='controlName' />\r\n</div>\r\n" }]
|
|
7334
7337
|
}], () => [{ type: AppContextService }], null); })();
|
|
7335
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LanguageDropdownlist, { className: "LanguageDropdownlist", filePath: "lib/ui/components/dropdownlists/language/language.dropdownlist.ts", lineNumber:
|
|
7338
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LanguageDropdownlist, { className: "LanguageDropdownlist", filePath: "lib/ui/components/dropdownlists/language/language.dropdownlist.ts", lineNumber: 30 }); })();
|
|
7336
7339
|
|
|
7337
7340
|
/*
|
|
7338
7341
|
<file>
|
|
@@ -7724,7 +7727,7 @@ class TimezoneDropdownlist extends EditComponentBase {
|
|
|
7724
7727
|
setValues() {
|
|
7725
7728
|
this.appContext.jsonFilesLoaded$.subscribe({
|
|
7726
7729
|
next: () => {
|
|
7727
|
-
this.items = this.appContext.timezones
|
|
7730
|
+
this.items = Utils.sortArray(this.appContext.timezones);
|
|
7728
7731
|
}
|
|
7729
7732
|
});
|
|
7730
7733
|
if (this.isNgModelBased) {
|
|
@@ -7764,7 +7767,7 @@ class TimezoneDropdownlist extends EditComponentBase {
|
|
|
7764
7767
|
}], () => [{ type: AppContextService }], { disabled: [{
|
|
7765
7768
|
type: Input
|
|
7766
7769
|
}] }); })();
|
|
7767
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TimezoneDropdownlist, { className: "TimezoneDropdownlist", filePath: "lib/ui/components/dropdownlists/timezone/timezone.dropdownlist.ts", lineNumber:
|
|
7770
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TimezoneDropdownlist, { className: "TimezoneDropdownlist", filePath: "lib/ui/components/dropdownlists/timezone/timezone.dropdownlist.ts", lineNumber: 30 }); })();
|
|
7768
7771
|
|
|
7769
7772
|
/*
|
|
7770
7773
|
<file>
|
|
@@ -9773,8 +9776,8 @@ class AddressComponent extends EditComponentBase {
|
|
|
9773
9776
|
ngOnInit() {
|
|
9774
9777
|
this.appContext.jsonFilesLoaded$.subscribe({
|
|
9775
9778
|
next: () => {
|
|
9776
|
-
this.countryData = this.appContext.countries
|
|
9777
|
-
this.usStateData = this.appContext.usStates
|
|
9779
|
+
this.countryData = Utils.sortArray(this.appContext.countries);
|
|
9780
|
+
this.usStateData = Utils.sortArray(this.appContext.usStates);
|
|
9778
9781
|
}
|
|
9779
9782
|
});
|
|
9780
9783
|
this.createFormGroup();
|
|
@@ -9905,7 +9908,7 @@ class AddressComponent extends EditComponentBase {
|
|
|
9905
9908
|
}], change: [{
|
|
9906
9909
|
type: Output
|
|
9907
9910
|
}] }); })();
|
|
9908
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(AddressComponent, { className: "AddressComponent", filePath: "lib/ui/forms/components/address/address.component.ts", lineNumber:
|
|
9911
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(AddressComponent, { className: "AddressComponent", filePath: "lib/ui/forms/components/address/address.component.ts", lineNumber: 37 }); })();
|
|
9909
9912
|
|
|
9910
9913
|
/*
|
|
9911
9914
|
<file>
|