From 21d694be02b92226b6b19fad01d1132a08058d7e Mon Sep 17 00:00:00 2001 From: Mahmut Gundogdu Date: Mon, 24 Jun 2024 16:19:08 +0000 Subject: [PATCH 1/9] add registerLocale function that supported esbuild --- .../core/locale/src/utils/register-locale.ts | 66 +++++++++++++++++++ 1 file changed, 66 insertions(+) diff --git a/npm/ng-packs/packages/core/locale/src/utils/register-locale.ts b/npm/ng-packs/packages/core/locale/src/utils/register-locale.ts index 97a49066ec..25a87e6f62 100644 --- a/npm/ng-packs/packages/core/locale/src/utils/register-locale.ts +++ b/npm/ng-packs/packages/core/locale/src/utils/register-locale.ts @@ -15,6 +15,72 @@ export interface RegisterLocaleData { errorHandlerFn?: (data: LocaleErrorHandlerData) => any; } + +function loadLocale(locale: string) { + // hard coded list works with esbuild. Source https://github.com/angular/angular-cli/issues/26904#issuecomment-1903596563 + + var list = { + 'ar': () => import('@angular/common/locales/ar'), + 'cs': () => import('@angular/common/locales/cs'), + 'en': () => import('@angular/common/locales/en'), + 'en-GB': () => import('@angular/common/locales/en-GB'), + 'es': () => import('@angular/common/locales/es'), + 'de': () => import('@angular/common/locales/de'), + 'fi': () => import('@angular/common/locales/fi'), + 'fr': () => import('@angular/common/locales/fr'), + 'hi': () => import('@angular/common/locales/hi'), + 'hu': () => import('@angular/common/locales/hu'), + 'is': () => import('@angular/common/locales/is'), + 'it': () => import('@angular/common/locales/it'), + 'pt': () => import('@angular/common/locales/pt'), + 'tr': () => import('@angular/common/locales/tr'), + 'ru': () => import('@angular/common/locales/ru'), + 'ro': () => import('@angular/common/locales/ro'), + 'sk': () => import('@angular/common/locales/sk'), + 'sl': () => import('@angular/common/locales/sl'), + 'zh-Hans': () => import('@angular/common/locales/zh-Hans'), + 'zh-Hant': () => import('@angular/common/locales/zh-Hant') + } + return list[locale](); +} + +export function registerLocaleForEsBuild( + { + cultureNameLocaleFileMap = {}, + errorHandlerFn = defaultLocalErrorHandlerFn, + } = {} as RegisterLocaleData, +) { + return (locale: string): Promise => { + localeMap = { ...differentLocales, ...cultureNameLocaleFileMap }; + const l = localeMap[locale] || locale; + var localeSupportList = "ar|cs|en|en-GB|es|de|fi|fr|hi|hu|is|it|pt|tr|ru|ro|sk|sl|zh-Hans|zh-Hant".split("|"); + + if (localeSupportList.indexOf(locale) == -1) { + return; + } + return new Promise((resolve, reject) => { + return loadLocale(l) + .then(val => { + let module = val; + while (module.default) { + module = module.default; + } + resolve({ default: module }); + }) + .catch(error => { + errorHandlerFn({ + resolve, + reject, + error, + locale, + }); + }); + }); + }; +} + + + export function registerLocale( { cultureNameLocaleFileMap = {}, From 3a4e9a3cddadb55cd4ec77c3e09d93634ea04d60 Mon Sep 17 00:00:00 2001 From: maliming Date: Fri, 12 Jul 2024 14:51:03 +0800 Subject: [PATCH 2/9] Add Google Search feature to docs module. --- .../docs/app/VoloDocs.Web/VoloDocsWebModule.cs | 8 +++++--- ...lationOptions.cs => DocsWebGoogleOptions.cs} | 14 ++++++++++---- .../Pages/Documents/Project/Index.cshtml | 17 +++++++++++++---- .../Pages/Documents/Project/index.css | 6 ++++++ .../Pages/Documents/Project/index.min.css | 2 +- 5 files changed, 35 insertions(+), 12 deletions(-) rename modules/docs/src/Volo.Docs.Web/{DocsWebGoogleTranslationOptions.cs => DocsWebGoogleOptions.cs} (73%) diff --git a/modules/docs/app/VoloDocs.Web/VoloDocsWebModule.cs b/modules/docs/app/VoloDocs.Web/VoloDocsWebModule.cs index ff50ee3247..2b2fe4d33f 100644 --- a/modules/docs/app/VoloDocs.Web/VoloDocsWebModule.cs +++ b/modules/docs/app/VoloDocs.Web/VoloDocsWebModule.cs @@ -85,7 +85,7 @@ namespace VoloDocs.Web Configure(options => { - options.Enable = true; + options.Enable = false; }); Configure(options => @@ -164,9 +164,11 @@ namespace VoloDocs.Web options.Conventions.AddPageRoute("/Error", "error/{statusCode}"); }); - Configure(options => + Configure(options => { - options.UseGoogleTranslation = true; + options.EnableGoogleTranslation = true; + options.EnableGoogleProgrammableSearchEngine = true; + options.GoogleSearchEngineId = "77c7266532da1427f"; }); } diff --git a/modules/docs/src/Volo.Docs.Web/DocsWebGoogleTranslationOptions.cs b/modules/docs/src/Volo.Docs.Web/DocsWebGoogleOptions.cs similarity index 73% rename from modules/docs/src/Volo.Docs.Web/DocsWebGoogleTranslationOptions.cs rename to modules/docs/src/Volo.Docs.Web/DocsWebGoogleOptions.cs index a970cdbf98..c2614decce 100644 --- a/modules/docs/src/Volo.Docs.Web/DocsWebGoogleTranslationOptions.cs +++ b/modules/docs/src/Volo.Docs.Web/DocsWebGoogleOptions.cs @@ -4,9 +4,9 @@ using System.Globalization; namespace Volo.Docs; -public class DocsWebGoogleTranslationOptions +public class DocsWebGoogleOptions { - public bool UseGoogleTranslation { get; set; } + public bool EnableGoogleTranslation { get; set; } /// /// https://cloud.google.com/translate/docs/languages @@ -15,9 +15,13 @@ public class DocsWebGoogleTranslationOptions public Func GetCultureLanguageCode { get; set; } - public DocsWebGoogleTranslationOptions() + public bool EnableGoogleProgrammableSearchEngine { get; set; } + + public string GoogleSearchEngineId { get; set; } + + public DocsWebGoogleOptions() { - UseGoogleTranslation = false; + EnableGoogleTranslation = false; IncludedLanguages = [ "en", @@ -47,5 +51,7 @@ public class DocsWebGoogleTranslationOptions _ => culture.TwoLetterISOLanguageName }; }; + + EnableGoogleProgrammableSearchEngine = false; } } diff --git a/modules/docs/src/Volo.Docs.Web/Pages/Documents/Project/Index.cshtml b/modules/docs/src/Volo.Docs.Web/Pages/Documents/Project/Index.cshtml index b7a8c2d321..116facfd26 100644 --- a/modules/docs/src/Volo.Docs.Web/Pages/Documents/Project/Index.cshtml +++ b/modules/docs/src/Volo.Docs.Web/Pages/Documents/Project/Index.cshtml @@ -22,7 +22,7 @@ @inject IThemeManager ThemeManager @inject IPageLayout PageLayout @inject IHtmlLocalizer L -@inject IOptions DocsWebOptions +@inject IOptions DocsWebOptions @model IndexModel @{ @@ -58,7 +58,7 @@ - if (DocsWebOptions.Value.UseGoogleTranslation) + if (DocsWebOptions.Value.EnableGoogleTranslation) { } + if (DocsWebOptions.Value.EnableGoogleProgrammableSearchEngine) + { + + } } else { @@ -214,7 +218,7 @@ } - @if (DocsWebOptions.Value.UseGoogleTranslation) + @if (DocsWebOptions.Value.EnableGoogleTranslation) {
@L["GoogleTranslate"] @@ -318,6 +322,11 @@
} + + @if (DocsWebOptions.Value.EnableGoogleProgrammableSearchEngine) + { + + } @{ var showContributors = Model.Document.Contributors != null && Model.Document.Contributors.Count > 0; diff --git a/modules/docs/src/Volo.Docs.Web/Pages/Documents/Project/index.css b/modules/docs/src/Volo.Docs.Web/Pages/Documents/Project/index.css index e8d0a035a0..b68e468eb6 100644 --- a/modules/docs/src/Volo.Docs.Web/Pages/Documents/Project/index.css +++ b/modules/docs/src/Volo.Docs.Web/Pages/Documents/Project/index.css @@ -45,4 +45,10 @@ body { outline: none; } +.gsc-control-cse { + background-color: #fbfbfb !important; + border: none !important; + padding: 0 !important; +} + /*# sourceMappingURL=Index.css.map */ diff --git a/modules/docs/src/Volo.Docs.Web/Pages/Documents/Project/index.min.css b/modules/docs/src/Volo.Docs.Web/Pages/Documents/Project/index.min.css index 6fc6088aca..9a8fd5e803 100644 --- a/modules/docs/src/Volo.Docs.Web/Pages/Documents/Project/index.min.css +++ b/modules/docs/src/Volo.Docs.Web/Pages/Documents/Project/index.min.css @@ -1 +1 @@ -.code-toolbar .line-highlight{margin-top:1.5em !important;background:rgba(233,237,241,0.34) !important;padding:1px !important;}.input-group .input-group-text{background-color:transparent !important;}.navigation .next-link .desc,.navigation .prev-link .desc{color:#0D6EFD;}.navigation .next-link .desc .fa,.navigation .prev-link .desc .fa{font-size:12px;}.navigation .next-link .title,.navigation .prev-link .title{font-weight:600;font-size:18px;color:#0B1621;}body{top:0px !important;}.skiptranslate iframe{display:none !important;}.google_translate_text{color:#aaa;font-family:var(--bs-body-font-family);font-size:10pt;margin-left:2px;font-weight:500;}.goog-te-gadget{white-space:break-spaces !important;}.goog-te-combo:focus-visible{border:0px;outline:none;}/*# sourceMappingURL=Index.min.css.map */ \ No newline at end of file +.code-toolbar .line-highlight{margin-top:1.5em !important;background:rgba(233,237,241,0.34) !important;padding:1px !important;}.input-group .input-group-text{background-color:transparent !important;}.navigation .next-link .desc,.navigation .prev-link .desc{color:#0D6EFD;}.navigation .next-link .desc .fa,.navigation .prev-link .desc .fa{font-size:12px;}.navigation .next-link .title,.navigation .prev-link .title{font-weight:600;font-size:18px;color:#0B1621;}body{top:0px !important;}.skiptranslate iframe{display:none !important;}.google_translate_text{color:#aaa;font-family:var(--bs-body-font-family);font-size:10pt;margin-left:2px;font-weight:500;}.goog-te-gadget{white-space:break-spaces !important;}.goog-te-combo:focus-visible{border:0px;outline:none;}.gsc-control-cse{background-color:#fbfbfb !important;border:none !important;padding:0 !important;}/*# sourceMappingURL=Index.min.css.map */ \ No newline at end of file From 9023e30b83ce859b39ce0a48a6ecb57a70965f66 Mon Sep 17 00:00:00 2001 From: maliming Date: Fri, 12 Jul 2024 15:01:20 +0800 Subject: [PATCH 3/9] Rename `EnableGoogleTranslation` to `EnableGoogleTranslate`. --- .../docs/app/VoloDocs.Web/VoloDocsWebModule.cs | 2 +- .../src/Volo.Docs.Web/DocsWebGoogleOptions.cs | 4 ++-- .../Pages/Documents/Project/Index.cshtml | 16 ++++++++-------- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/modules/docs/app/VoloDocs.Web/VoloDocsWebModule.cs b/modules/docs/app/VoloDocs.Web/VoloDocsWebModule.cs index 2b2fe4d33f..8651c0d3fd 100644 --- a/modules/docs/app/VoloDocs.Web/VoloDocsWebModule.cs +++ b/modules/docs/app/VoloDocs.Web/VoloDocsWebModule.cs @@ -166,7 +166,7 @@ namespace VoloDocs.Web Configure(options => { - options.EnableGoogleTranslation = true; + options.EnableGoogleTranslate = true; options.EnableGoogleProgrammableSearchEngine = true; options.GoogleSearchEngineId = "77c7266532da1427f"; }); diff --git a/modules/docs/src/Volo.Docs.Web/DocsWebGoogleOptions.cs b/modules/docs/src/Volo.Docs.Web/DocsWebGoogleOptions.cs index c2614decce..8342061a9b 100644 --- a/modules/docs/src/Volo.Docs.Web/DocsWebGoogleOptions.cs +++ b/modules/docs/src/Volo.Docs.Web/DocsWebGoogleOptions.cs @@ -6,7 +6,7 @@ namespace Volo.Docs; public class DocsWebGoogleOptions { - public bool EnableGoogleTranslation { get; set; } + public bool EnableGoogleTranslate { get; set; } /// /// https://cloud.google.com/translate/docs/languages @@ -21,7 +21,7 @@ public class DocsWebGoogleOptions public DocsWebGoogleOptions() { - EnableGoogleTranslation = false; + EnableGoogleTranslate = false; IncludedLanguages = [ "en", diff --git a/modules/docs/src/Volo.Docs.Web/Pages/Documents/Project/Index.cshtml b/modules/docs/src/Volo.Docs.Web/Pages/Documents/Project/Index.cshtml index 116facfd26..b60ad9507f 100644 --- a/modules/docs/src/Volo.Docs.Web/Pages/Documents/Project/Index.cshtml +++ b/modules/docs/src/Volo.Docs.Web/Pages/Documents/Project/Index.cshtml @@ -22,7 +22,7 @@ @inject IThemeManager ThemeManager @inject IPageLayout PageLayout @inject IHtmlLocalizer L -@inject IOptions DocsWebOptions +@inject IOptions DocsWebGoogleOptions @model IndexModel @{ @@ -58,15 +58,15 @@ - if (DocsWebOptions.Value.EnableGoogleTranslation) + if (DocsWebGoogleOptions.Value.EnableGoogleTranslate) { } - if (DocsWebOptions.Value.EnableGoogleProgrammableSearchEngine) + if (DocsWebGoogleOptions.Value.EnableGoogleProgrammableSearchEngine) { - + } } else @@ -218,7 +218,7 @@ } - @if (DocsWebOptions.Value.EnableGoogleTranslation) + @if (DocsWebGoogleOptions.Value.EnableGoogleTranslate) {
@L["GoogleTranslate"] @@ -323,7 +323,7 @@
} - @if (DocsWebOptions.Value.EnableGoogleProgrammableSearchEngine) + @if (DocsWebGoogleOptions.Value.EnableGoogleProgrammableSearchEngine) { } From efc6541fa8a8a30756a2cbf349de4f4b7c502305 Mon Sep 17 00:00:00 2001 From: maliming Date: Fri, 12 Jul 2024 16:30:31 +0800 Subject: [PATCH 4/9] Remove `.gsc-control-cse` styles. --- .../src/Volo.Docs.Web/Pages/Documents/Project/index.css | 6 ------ .../src/Volo.Docs.Web/Pages/Documents/Project/index.min.css | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/modules/docs/src/Volo.Docs.Web/Pages/Documents/Project/index.css b/modules/docs/src/Volo.Docs.Web/Pages/Documents/Project/index.css index b68e468eb6..e8d0a035a0 100644 --- a/modules/docs/src/Volo.Docs.Web/Pages/Documents/Project/index.css +++ b/modules/docs/src/Volo.Docs.Web/Pages/Documents/Project/index.css @@ -45,10 +45,4 @@ body { outline: none; } -.gsc-control-cse { - background-color: #fbfbfb !important; - border: none !important; - padding: 0 !important; -} - /*# sourceMappingURL=Index.css.map */ diff --git a/modules/docs/src/Volo.Docs.Web/Pages/Documents/Project/index.min.css b/modules/docs/src/Volo.Docs.Web/Pages/Documents/Project/index.min.css index 9a8fd5e803..6fc6088aca 100644 --- a/modules/docs/src/Volo.Docs.Web/Pages/Documents/Project/index.min.css +++ b/modules/docs/src/Volo.Docs.Web/Pages/Documents/Project/index.min.css @@ -1 +1 @@ -.code-toolbar .line-highlight{margin-top:1.5em !important;background:rgba(233,237,241,0.34) !important;padding:1px !important;}.input-group .input-group-text{background-color:transparent !important;}.navigation .next-link .desc,.navigation .prev-link .desc{color:#0D6EFD;}.navigation .next-link .desc .fa,.navigation .prev-link .desc .fa{font-size:12px;}.navigation .next-link .title,.navigation .prev-link .title{font-weight:600;font-size:18px;color:#0B1621;}body{top:0px !important;}.skiptranslate iframe{display:none !important;}.google_translate_text{color:#aaa;font-family:var(--bs-body-font-family);font-size:10pt;margin-left:2px;font-weight:500;}.goog-te-gadget{white-space:break-spaces !important;}.goog-te-combo:focus-visible{border:0px;outline:none;}.gsc-control-cse{background-color:#fbfbfb !important;border:none !important;padding:0 !important;}/*# sourceMappingURL=Index.min.css.map */ \ No newline at end of file +.code-toolbar .line-highlight{margin-top:1.5em !important;background:rgba(233,237,241,0.34) !important;padding:1px !important;}.input-group .input-group-text{background-color:transparent !important;}.navigation .next-link .desc,.navigation .prev-link .desc{color:#0D6EFD;}.navigation .next-link .desc .fa,.navigation .prev-link .desc .fa{font-size:12px;}.navigation .next-link .title,.navigation .prev-link .title{font-weight:600;font-size:18px;color:#0B1621;}body{top:0px !important;}.skiptranslate iframe{display:none !important;}.google_translate_text{color:#aaa;font-family:var(--bs-body-font-family);font-size:10pt;margin-left:2px;font-weight:500;}.goog-te-gadget{white-space:break-spaces !important;}.goog-te-combo:focus-visible{border:0px;outline:none;}/*# sourceMappingURL=Index.min.css.map */ \ No newline at end of file From 411ae1449fd62f28af6b47b2e0d4748b0fbee469 Mon Sep 17 00:00:00 2001 From: Engincan VESKE <43685404+EngincanV@users.noreply.github.com> Date: Fri, 12 Jul 2024 16:17:54 +0300 Subject: [PATCH 5/9] Update bookstore tutorials for blazor changes. --- docs/en/Tutorials/Part-1.md | 2 +- docs/en/Tutorials/Part-10.md | 2 +- docs/en/Tutorials/Part-2.md | 4 ++-- docs/en/Tutorials/Part-3.md | 4 ++-- docs/en/Tutorials/Part-5.md | 4 ++-- docs/en/Tutorials/Part-9.md | 8 ++++---- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/docs/en/Tutorials/Part-1.md b/docs/en/Tutorials/Part-1.md index 96b39066e9..b98395d6ac 100644 --- a/docs/en/Tutorials/Part-1.md +++ b/docs/en/Tutorials/Part-1.md @@ -82,7 +82,7 @@ abp install-libs `abp bundle` command offers bundling and minification support for client-side resources (JavaScript and CSS files) for Blazor projects. This command automatically run when you create a new solution with the [ABP CLI](../CLI.md). -However, sometimes you might need to run this command manually. To update script & style references without worrying about dependencies, ordering, etc. in a project, you can run this command in the directory of your blazor application: +However, sometimes you might need to run this command manually. To update script & style references without worrying about dependencies, ordering, etc. in a project, you can run this command in the directory of your `Blazor.Client` project: ```bash abp bundle diff --git a/docs/en/Tutorials/Part-10.md b/docs/en/Tutorials/Part-10.md index 2c5accb6c0..91476b8cd8 100644 --- a/docs/en/Tutorials/Part-10.md +++ b/docs/en/Tutorials/Part-10.md @@ -1105,7 +1105,7 @@ That's all. Just run the application and try to create or edit an author. ### The Book List -It is very easy to show the *Author Name* in the book list. Open the `/Pages/Books.razor` file in the `Acme.BookStore.Blazor` project and add the following `DataGridColumn` definition just after the `Name` (book name) column: +It is very easy to show the *Author Name* in the book list. Open the `/Pages/Books.razor` file in the `Acme.BookStore.Blazor.Client` project and add the following `DataGridColumn` definition just after the `Name` (book name) column: ````xml (); @@ -1218,7 +1218,7 @@ You will need to declare a `using Acme.BookStore.Authors;` statement to the begi ### Add to the Main Menu -Open the `BookStoreMenuContributor.cs` in the `Acme.BookStore.Blazor` project and add the following code to the end of the `ConfigureMainMenuAsync` method: +Open the `BookStoreMenuContributor.cs` in the `Acme.BookStore.Blazor.Client` project and add the following code to the end of the `ConfigureMainMenuAsync` method: ````csharp if (await context.IsGrantedAsync(BookStorePermissions.Authors.Default)) From 57fcded80cb8f3fc285d54f7e16b61052aa0de77 Mon Sep 17 00:00:00 2001 From: sumeyyeKurtulus Date: Tue, 16 Jul 2024 15:37:39 +0300 Subject: [PATCH 6/9] update: revert the proxy generation condition to cover enum cases --- npm/ng-packs/packages/schematics/src/utils/model.ts | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/npm/ng-packs/packages/schematics/src/utils/model.ts b/npm/ng-packs/packages/schematics/src/utils/model.ts index 3d8e233d89..20055a96c3 100644 --- a/npm/ng-packs/packages/schematics/src/utils/model.ts +++ b/npm/ng-packs/packages/schematics/src/utils/model.ts @@ -91,16 +91,8 @@ export function createImportRefsToModelReducer(params: ModelGeneratorParams) { if (propType.isEnum) { toBeImported.push({ type: ref, isEnum: true }); - } - - if (parseNamespace(solution, ref) !== model.namespace) { - const isEnumImportAvailable = toBeImported.some(importValue => { - return importValue.isEnum && importValue.type === ref; - }); - - if (!isEnumImportAvailable) { - toBeImported.push({ type: ref, isEnum: false }); - } + } else if (parseNamespace(solution, ref) !== model.namespace) { + toBeImported.push({ type: ref, isEnum: false }); } }); }); From 6ac1ca5ca27ce8a624eb60ccf4b5666143a5d812 Mon Sep 17 00:00:00 2001 From: Engincan VESKE <43685404+EngincanV@users.noreply.github.com> Date: Wed, 17 Jul 2024 11:33:46 +0300 Subject: [PATCH 7/9] Cli: Fix mvc project's build error when the theme is selected as Lepton theme on creation. --- .../Cli/ProjectBuilding/Building/Steps/ChangeThemeStep.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/Building/Steps/ChangeThemeStep.cs b/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/Building/Steps/ChangeThemeStep.cs index 5a8a9d534f..48ce8a06f4 100644 --- a/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/Building/Steps/ChangeThemeStep.cs +++ b/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/Building/Steps/ChangeThemeStep.cs @@ -289,6 +289,13 @@ public class ChangeThemeStep : ProjectBuildPipelineStep moduleFile.Name, "Volo.Abp.LeptonX.Shared;" ); + + AddNamespaces( + context, + moduleFile.Name, + "using Volo.Abp.AspNetCore.Mvc.UI.Theme.Lepton;", + "using Volo.Abp.AspNetCore.Mvc.UI.Theme.Lepton.Bundling;" + ); } } From 4c0b56fe2c4fcef4d2c3b3ff033c71977e1db104 Mon Sep 17 00:00:00 2001 From: masumulu28 Date: Wed, 17 Jul 2024 15:58:55 +0300 Subject: [PATCH 8/9] remove: check icon from feat-management-modal button --- .../feature-management.component.html | 59 +++++++++---------- 1 file changed, 29 insertions(+), 30 deletions(-) diff --git a/npm/ng-packs/packages/feature-management/src/lib/components/feature-management/feature-management.component.html b/npm/ng-packs/packages/feature-management/src/lib/components/feature-management/feature-management.component.html index f1bc85ac3d..a74255a73c 100644 --- a/npm/ng-packs/packages/feature-management/src/lib/components/feature-management/feature-management.component.html +++ b/npm/ng-packs/packages/feature-management/src/lib/components/feature-management/feature-management.component.html @@ -69,35 +69,35 @@ } @case (valueTypes.SelectionStringValueType) { @if (feature.valueType.itemSource?.items?.length) { -
- - - -
+
+ + + +
} } @default { @@ -136,7 +136,6 @@ @if (groups.length) { Date: Thu, 18 Jul 2024 09:24:18 +0300 Subject: [PATCH 9/9] Update register-locale.ts --- .../packages/core/locale/src/utils/register-locale.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/npm/ng-packs/packages/core/locale/src/utils/register-locale.ts b/npm/ng-packs/packages/core/locale/src/utils/register-locale.ts index 25a87e6f62..5d6ae52645 100644 --- a/npm/ng-packs/packages/core/locale/src/utils/register-locale.ts +++ b/npm/ng-packs/packages/core/locale/src/utils/register-locale.ts @@ -19,7 +19,7 @@ export interface RegisterLocaleData { function loadLocale(locale: string) { // hard coded list works with esbuild. Source https://github.com/angular/angular-cli/issues/26904#issuecomment-1903596563 - var list = { + const list = { 'ar': () => import('@angular/common/locales/ar'), 'cs': () => import('@angular/common/locales/cs'), 'en': () => import('@angular/common/locales/en'), @@ -53,7 +53,7 @@ export function registerLocaleForEsBuild( return (locale: string): Promise => { localeMap = { ...differentLocales, ...cultureNameLocaleFileMap }; const l = localeMap[locale] || locale; - var localeSupportList = "ar|cs|en|en-GB|es|de|fi|fr|hi|hu|is|it|pt|tr|ru|ro|sk|sl|zh-Hans|zh-Hant".split("|"); + const localeSupportList = "ar|cs|en|en-GB|es|de|fi|fr|hi|hu|is|it|pt|tr|ru|ro|sk|sl|zh-Hans|zh-Hant".split("|"); if (localeSupportList.indexOf(locale) == -1) { return;