@dataclouder/ngx-core 0.1.53 → 0.2.0

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.
@@ -60,7 +60,7 @@ class EmptyStateComponent {
60
60
  constructor() {
61
61
  this.headingText = input('No existe el recurso que buscas', ...(ngDevMode ? [{ debugName: "headingText" }] : []));
62
62
  this.subHeadingText = input('Intenta más tarde', ...(ngDevMode ? [{ debugName: "subHeadingText" }] : []));
63
- this.mainIconSrcString = input('assets/img/empty-states/empty-box.png', ...(ngDevMode ? [{ debugName: "mainIconSrcString" }] : []));
63
+ this.mainIconSrcString = input('img/empty-states/empty-box.png', ...(ngDevMode ? [{ debugName: "mainIconSrcString" }] : []));
64
64
  }
65
65
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.2", ngImport: i0, type: EmptyStateComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
66
66
  static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.1.2", type: EmptyStateComponent, isStandalone: true, selector: "dc-empty-state", inputs: { headingText: { classPropertyName: "headingText", publicName: "headingText", isSignal: true, isRequired: false, transformFunction: null }, subHeadingText: { classPropertyName: "subHeadingText", publicName: "subHeadingText", isSignal: true, isRequired: false, transformFunction: null }, mainIconSrcString: { classPropertyName: "mainIconSrcString", publicName: "mainIconSrcString", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div class=\"empty-state-container\">\n @if (headingText()) {\n <h5 class=\"text-center\">{{ headingText() }}</h5>\n }\n <img width=\"180px\" class=\"image-empty-state\" [src]=\"mainIconSrcString()\" />\n @if (subHeadingText()) {\n <h6 class=\"text-center\">{{ subHeadingText() }}</h6>\n }\n <ng-content></ng-content>\n</div>\n", styles: [":host{display:block;width:100%;height:100%}.empty-state-container{padding:20px;text-align:center;height:100%;flex-direction:column;display:flex;align-items:center}.empty-state-container .image-empty-state{filter:grayscale(40%);margin:15px 0}.empty-state-container h5{margin-bottom:10px}.empty-state-container h6{color:var(--text-color-secondary);margin-top:0}\n"] }); }
@@ -1848,7 +1848,7 @@ const LANGUAGES = {
1848
1848
  en: {
1849
1849
  nativeName: 'English',
1850
1850
  flag: '🇺🇸', // Using US flag as a primary example
1851
- flagImg: 'assets/flags/us.svg',
1851
+ flagImg: 'flags/us.svg',
1852
1852
  code: 'en',
1853
1853
  defaultLocale: 'en-US',
1854
1854
  i: 1,
@@ -1864,7 +1864,7 @@ const LANGUAGES = {
1864
1864
  es: {
1865
1865
  nativeName: 'Español',
1866
1866
  flag: '🇪🇸', // Using Spain flag as a primary example
1867
- flagImg: 'assets/flags/es.svg',
1867
+ flagImg: 'flags/es.svg',
1868
1868
  code: 'es',
1869
1869
  defaultLocale: 'es-ES',
1870
1870
  i: 2,
@@ -1901,7 +1901,7 @@ const LANGUAGES = {
1901
1901
  de: {
1902
1902
  nativeName: 'Deutsch',
1903
1903
  flag: '🇩🇪',
1904
- flagImg: 'assets/flags/de.svg',
1904
+ flagImg: 'flags/de.svg',
1905
1905
  code: 'de',
1906
1906
  defaultLocale: 'de-DE',
1907
1907
  i: 3,
@@ -1917,7 +1917,7 @@ const LANGUAGES = {
1917
1917
  fr: {
1918
1918
  nativeName: 'Français',
1919
1919
  flag: '🇫🇷',
1920
- flagImg: 'assets/flags/fr.svg',
1920
+ flagImg: 'flags/fr.svg',
1921
1921
  code: 'fr',
1922
1922
  defaultLocale: 'fr-FR',
1923
1923
  i: 4,
@@ -1933,7 +1933,7 @@ const LANGUAGES = {
1933
1933
  it: {
1934
1934
  nativeName: 'Italiano',
1935
1935
  flag: '🇮🇹',
1936
- flagImg: 'assets/flags/it.svg',
1936
+ flagImg: 'flags/it.svg',
1937
1937
  code: 'it',
1938
1938
  defaultLocale: 'it-IT',
1939
1939
  i: 6,
@@ -1949,7 +1949,7 @@ const LANGUAGES = {
1949
1949
  pt: {
1950
1950
  nativeName: 'Português',
1951
1951
  flag: '🇧🇷',
1952
- flagImg: 'assets/flags/br.svg',
1952
+ flagImg: 'flags/br.svg',
1953
1953
  code: 'pt',
1954
1954
  defaultLocale: 'pt-BR',
1955
1955
  i: 7,
@@ -1965,7 +1965,7 @@ const LANGUAGES = {
1965
1965
  ja: {
1966
1966
  nativeName: '日本語 (Nihongo)',
1967
1967
  flag: '🇯🇵',
1968
- flagImg: 'assets/flags/jp.svg',
1968
+ flagImg: 'flags/jp.svg',
1969
1969
  code: 'ja',
1970
1970
  defaultLocale: 'ja-JP',
1971
1971
  i: 8,
@@ -1981,7 +1981,7 @@ const LANGUAGES = {
1981
1981
  nl: {
1982
1982
  nativeName: 'Nederlands',
1983
1983
  flag: '🇳🇱',
1984
- flagImg: 'assets/flags/nl.svg',
1984
+ flagImg: 'flags/nl.svg',
1985
1985
  code: 'nl',
1986
1986
  defaultLocale: 'nl-NL',
1987
1987
  i: 9,
@@ -1998,7 +1998,7 @@ const LANGUAGES = {
1998
1998
  zh: {
1999
1999
  nativeName: '中文 (Zhōngwén)',
2000
2000
  flag: '🇨🇳',
2001
- flagImg: 'assets/flags/cn.svg',
2001
+ flagImg: 'flags/cn.svg',
2002
2002
  code: 'zh',
2003
2003
  defaultLocale: 'zh-CN',
2004
2004
  i: 5,
@@ -2015,7 +2015,7 @@ const LANGUAGES = {
2015
2015
  ru: {
2016
2016
  nativeName: 'Русский (Russkiy)',
2017
2017
  flag: '🇷🇺',
2018
- flagImg: 'assets/flags/ru.svg',
2018
+ flagImg: 'flags/ru.svg',
2019
2019
  code: 'ru',
2020
2020
  defaultLocale: 'ru-RU',
2021
2021
  i: 10, // Adjusted index
@@ -2032,7 +2032,7 @@ const LANGUAGES = {
2032
2032
  ko: {
2033
2033
  nativeName: '한국어 (Hangugeo)',
2034
2034
  flag: '🇰🇷',
2035
- flagImg: 'assets/flags/kr.svg',
2035
+ flagImg: 'flags/kr.svg',
2036
2036
  code: 'ko',
2037
2037
  defaultLocale: 'ko-KR',
2038
2038
  i: 11,
@@ -2049,7 +2049,7 @@ const LANGUAGES = {
2049
2049
  pl: {
2050
2050
  nativeName: 'Polski',
2051
2051
  flag: '🇵🇱',
2052
- flagImg: 'assets/flags/pl.svg',
2052
+ flagImg: 'flags/pl.svg',
2053
2053
  code: 'pl',
2054
2054
  defaultLocale: 'pl-PL',
2055
2055
  i: 12,
@@ -2066,7 +2066,7 @@ const LANGUAGES = {
2066
2066
  sv: {
2067
2067
  nativeName: 'Svenska',
2068
2068
  flag: '🇸🇪',
2069
- flagImg: 'assets/flags/se.svg',
2069
+ flagImg: 'flags/se.svg',
2070
2070
  code: 'sv',
2071
2071
  defaultLocale: 'sv-SE',
2072
2072
  i: 13,
@@ -2083,7 +2083,7 @@ const LANGUAGES = {
2083
2083
  tr: {
2084
2084
  nativeName: 'Türkçe',
2085
2085
  flag: '🇹🇷',
2086
- flagImg: 'assets/flags/tr.svg',
2086
+ flagImg: 'flags/tr.svg',
2087
2087
  code: 'tr',
2088
2088
  defaultLocale: 'tr-TR',
2089
2089
  i: 14,
@@ -2100,7 +2100,7 @@ const LANGUAGES = {
2100
2100
  ar: {
2101
2101
  nativeName: 'العربية (Al-Arabiyyah)',
2102
2102
  flag: '🇸🇦',
2103
- flagImg: 'assets/flags/sa.svg',
2103
+ flagImg: 'flags/sa.svg',
2104
2104
  code: 'ar',
2105
2105
  defaultLocale: 'ar-SA',
2106
2106
  i: 15,
@@ -2143,7 +2143,7 @@ const LANGUAGES = {
2143
2143
  vi: {
2144
2144
  nativeName: 'Tiếng Việt',
2145
2145
  flag: '🇻🇳',
2146
- flagImg: 'assets/flags/vn.svg',
2146
+ flagImg: 'flags/vn.svg',
2147
2147
  code: 'vi',
2148
2148
  defaultLocale: 'vi-VN',
2149
2149
  i: 16,
@@ -2160,7 +2160,7 @@ const LANGUAGES = {
2160
2160
  id: {
2161
2161
  nativeName: 'Bahasa Indonesia',
2162
2162
  flag: '🇮🇩',
2163
- flagImg: 'assets/flags/id.svg',
2163
+ flagImg: 'flags/id.svg',
2164
2164
  code: 'id',
2165
2165
  defaultLocale: 'id-ID',
2166
2166
  i: 17,
@@ -2177,7 +2177,7 @@ const LANGUAGES = {
2177
2177
  da: {
2178
2178
  nativeName: 'Dansk',
2179
2179
  flag: '🇩🇰',
2180
- flagImg: 'assets/flags/dk.svg',
2180
+ flagImg: 'flags/dk.svg',
2181
2181
  code: 'da',
2182
2182
  defaultLocale: 'da-DK',
2183
2183
  i: 18,
@@ -2194,7 +2194,7 @@ const LANGUAGES = {
2194
2194
  no: {
2195
2195
  nativeName: 'Norsk',
2196
2196
  flag: '🇳🇴',
2197
- flagImg: 'assets/flags/no.svg',
2197
+ flagImg: 'flags/no.svg',
2198
2198
  code: 'no',
2199
2199
  defaultLocale: 'no-NO',
2200
2200
  i: 19,
@@ -2211,7 +2211,7 @@ const LANGUAGES = {
2211
2211
  fi: {
2212
2212
  nativeName: 'Suomi',
2213
2213
  flag: '🇫🇮',
2214
- flagImg: 'assets/flags/fi.svg',
2214
+ flagImg: 'flags/fi.svg',
2215
2215
  code: 'fi',
2216
2216
  defaultLocale: 'fi-FI',
2217
2217
  i: 20,
@@ -2228,7 +2228,7 @@ const LANGUAGES = {
2228
2228
  cs: {
2229
2229
  nativeName: 'Čeština',
2230
2230
  flag: '🇨🇿',
2231
- flagImg: 'assets/flags/cz.svg',
2231
+ flagImg: 'flags/cz.svg',
2232
2232
  code: 'cs',
2233
2233
  defaultLocale: 'cs-CZ',
2234
2234
  i: 21,
@@ -2245,7 +2245,7 @@ const LANGUAGES = {
2245
2245
  el: {
2246
2246
  nativeName: 'Ελληνικά (Elliniká)',
2247
2247
  flag: '🇬🇷',
2248
- flagImg: 'assets/flags/gr.svg',
2248
+ flagImg: 'flags/gr.svg',
2249
2249
  code: 'el',
2250
2250
  defaultLocale: 'el-GR',
2251
2251
  i: 22,
@@ -2262,7 +2262,7 @@ const LANGUAGES = {
2262
2262
  hu: {
2263
2263
  nativeName: 'Magyar',
2264
2264
  flag: '🇭🇺',
2265
- flagImg: 'assets/flags/hu.svg',
2265
+ flagImg: 'flags/hu.svg',
2266
2266
  code: 'hu',
2267
2267
  defaultLocale: 'hu-HU',
2268
2268
  i: 23,
@@ -2279,7 +2279,7 @@ const LANGUAGES = {
2279
2279
  ro: {
2280
2280
  nativeName: 'Română',
2281
2281
  flag: '🇷🇴',
2282
- flagImg: 'assets/flags/ro.svg',
2282
+ flagImg: 'flags/ro.svg',
2283
2283
  code: 'ro',
2284
2284
  defaultLocale: 'ro-RO',
2285
2285
  i: 24,
@@ -2296,7 +2296,7 @@ const LANGUAGES = {
2296
2296
  uk: {
2297
2297
  nativeName: 'Українська (Ukrainska)',
2298
2298
  flag: '🇺🇦',
2299
- flagImg: 'assets/flags/ua.svg',
2299
+ flagImg: 'flags/ua.svg',
2300
2300
  code: 'uk',
2301
2301
  defaultLocale: 'uk-UA',
2302
2302
  i: 25,
@@ -2313,7 +2313,7 @@ const LANGUAGES = {
2313
2313
  he: {
2314
2314
  nativeName: 'עברית (Ivrit)',
2315
2315
  flag: '🇮🇱',
2316
- flagImg: 'assets/flags/il.svg',
2316
+ flagImg: 'flags/il.svg',
2317
2317
  code: 'he',
2318
2318
  defaultLocale: 'he-IL',
2319
2319
  i: 26,
@@ -2330,7 +2330,7 @@ const LANGUAGES = {
2330
2330
  th: {
2331
2331
  nativeName: 'ภาษาไทย (Phasa Thai)',
2332
2332
  flag: '🇹🇭',
2333
- flagImg: 'assets/flags/th.svg',
2333
+ flagImg: 'flags/th.svg',
2334
2334
  code: 'th',
2335
2335
  defaultLocale: 'th-TH',
2336
2336
  i: 27,
@@ -2347,7 +2347,7 @@ const LANGUAGES = {
2347
2347
  hi: {
2348
2348
  nativeName: 'हिन्दी (Hindī)',
2349
2349
  flag: '🇮🇳',
2350
- flagImg: 'assets/flags/in.svg',
2350
+ flagImg: 'flags/in.svg',
2351
2351
  code: 'hi',
2352
2352
  defaultLocale: 'hi-IN',
2353
2353
  i: 28,
@@ -2364,7 +2364,7 @@ const LANGUAGES = {
2364
2364
  ca: {
2365
2365
  nativeName: 'Català',
2366
2366
  flag: '🇪🇸',
2367
- flagImg: 'assets/flags/es.svg',
2367
+ flagImg: 'flags/es.svg',
2368
2368
  code: 'ca',
2369
2369
  defaultLocale: 'ca-ES',
2370
2370
  i: 29,
@@ -2381,7 +2381,7 @@ const LANGUAGES = {
2381
2381
  bg: {
2382
2382
  nativeName: 'Български (Balgarski)',
2383
2383
  flag: '🇧🇬',
2384
- flagImg: 'assets/flags/bg.svg',
2384
+ flagImg: 'flags/bg.svg',
2385
2385
  code: 'bg',
2386
2386
  defaultLocale: 'bg-BG',
2387
2387
  i: 30,
@@ -2398,7 +2398,7 @@ const LANGUAGES = {
2398
2398
  eo: {
2399
2399
  nativeName: 'Esperanto',
2400
2400
  flag: '🇺🇳', // Usando la bandera de la ONU por su naturaleza internacional
2401
- flagImg: 'assets/flags/eo.svg',
2401
+ flagImg: 'flags/eo.svg',
2402
2402
  code: 'eo',
2403
2403
  defaultLocale: 'eo',
2404
2404
  i: 59,
@@ -2415,7 +2415,7 @@ const LANGUAGES = {
2415
2415
  ia: {
2416
2416
  nativeName: 'Interlingua',
2417
2417
  flag: '🇺🇳', // Usando la bandera de la ONU por su naturaleza internacional
2418
- flagImg: 'assets/flags/ia.svg',
2418
+ flagImg: 'flags/ia.svg',
2419
2419
  code: 'ia',
2420
2420
  defaultLocale: 'ia',
2421
2421
  i: 60,
@@ -2432,7 +2432,7 @@ const LANGUAGES = {
2432
2432
  hr: {
2433
2433
  nativeName: 'Hrvatski',
2434
2434
  flag: '🇭🇷',
2435
- flagImg: 'assets/flags/hr.svg',
2435
+ flagImg: 'flags/hr.svg',
2436
2436
  code: 'hr',
2437
2437
  defaultLocale: 'hr-HR',
2438
2438
  i: 31,
@@ -2449,7 +2449,7 @@ const LANGUAGES = {
2449
2449
  sk: {
2450
2450
  nativeName: 'Slovenčina',
2451
2451
  flag: '🇸🇰',
2452
- flagImg: 'assets/flags/sk.svg',
2452
+ flagImg: 'flags/sk.svg',
2453
2453
  code: 'sk',
2454
2454
  defaultLocale: 'sk-SK',
2455
2455
  i: 32,
@@ -2466,7 +2466,7 @@ const LANGUAGES = {
2466
2466
  fil: {
2467
2467
  nativeName: 'Filipino',
2468
2468
  flag: '🇵🇭',
2469
- flagImg: 'assets/flags/ph.svg',
2469
+ flagImg: 'flags/ph.svg',
2470
2470
  code: 'fil',
2471
2471
  defaultLocale: 'fil-PH',
2472
2472
  i: 33,
@@ -2484,7 +2484,7 @@ const LANGUAGES = {
2484
2484
  // Tagalog often used as base for Filipino, but distinct ISO code
2485
2485
  nativeName: 'Tagalog',
2486
2486
  flag: '🇵🇭',
2487
- flagImg: 'assets/flags/ph.svg',
2487
+ flagImg: 'flags/ph.svg',
2488
2488
  code: 'tl',
2489
2489
  defaultLocale: 'tl-PH',
2490
2490
  i: 34,
@@ -2501,7 +2501,7 @@ const LANGUAGES = {
2501
2501
  lt: {
2502
2502
  nativeName: 'Lietuvių',
2503
2503
  flag: '🇱🇹',
2504
- flagImg: 'assets/flags/lt.svg',
2504
+ flagImg: 'flags/lt.svg',
2505
2505
  code: 'lt',
2506
2506
  defaultLocale: 'lt-LT',
2507
2507
  i: 35,
@@ -2518,7 +2518,7 @@ const LANGUAGES = {
2518
2518
  lv: {
2519
2519
  nativeName: 'Latviešu',
2520
2520
  flag: '🇱🇻',
2521
- flagImg: 'assets/flags/lv.svg',
2521
+ flagImg: 'flags/lv.svg',
2522
2522
  code: 'lv',
2523
2523
  defaultLocale: 'lv-LV',
2524
2524
  i: 36,
@@ -2535,7 +2535,7 @@ const LANGUAGES = {
2535
2535
  sl: {
2536
2536
  nativeName: 'Slovenščina',
2537
2537
  flag: '🇸🇮',
2538
- flagImg: 'assets/flags/si.svg',
2538
+ flagImg: 'flags/si.svg',
2539
2539
  code: 'sl',
2540
2540
  defaultLocale: 'sl-SI',
2541
2541
  i: 37,
@@ -2552,7 +2552,7 @@ const LANGUAGES = {
2552
2552
  et: {
2553
2553
  nativeName: 'Eesti',
2554
2554
  flag: '🇪🇪',
2555
- flagImg: 'assets/flags/ee.svg',
2555
+ flagImg: 'flags/ee.svg',
2556
2556
  code: 'et',
2557
2557
  defaultLocale: 'et-EE',
2558
2558
  i: 38,
@@ -2569,7 +2569,7 @@ const LANGUAGES = {
2569
2569
  ms: {
2570
2570
  nativeName: 'Bahasa Melayu',
2571
2571
  flag: '🇲🇾',
2572
- flagImg: 'assets/flags/my.svg',
2572
+ flagImg: 'flags/my.svg',
2573
2573
  code: 'ms',
2574
2574
  defaultLocale: 'ms-MY',
2575
2575
  i: 39,
@@ -2586,7 +2586,7 @@ const LANGUAGES = {
2586
2586
  sw: {
2587
2587
  nativeName: 'Kiswahili',
2588
2588
  flag: '🇹🇿',
2589
- flagImg: 'assets/flags/tz.svg',
2589
+ flagImg: 'flags/tz.svg',
2590
2590
  code: 'sw',
2591
2591
  defaultLocale: 'sw-TZ',
2592
2592
  i: 40,
@@ -2603,7 +2603,7 @@ const LANGUAGES = {
2603
2603
  fa: {
2604
2604
  nativeName: 'فارسی (Fārsī)',
2605
2605
  flag: '🇮🇷',
2606
- flagImg: 'assets/flags/ir.svg',
2606
+ flagImg: 'flags/ir.svg',
2607
2607
  code: 'fa',
2608
2608
  defaultLocale: 'fa-IR',
2609
2609
  i: 41,
@@ -2620,7 +2620,7 @@ const LANGUAGES = {
2620
2620
  bn: {
2621
2621
  nativeName: 'বাংলা (Bangla)',
2622
2622
  flag: '🇧🇩',
2623
- flagImg: 'assets/flags/bd.svg',
2623
+ flagImg: 'flags/bd.svg',
2624
2624
  code: 'bn',
2625
2625
  defaultLocale: 'bn-BD',
2626
2626
  i: 42,
@@ -2636,7 +2636,7 @@ const LANGUAGES = {
2636
2636
  ur: {
2637
2637
  nativeName: 'اردو (Urdū)',
2638
2638
  flag: '🇵🇰',
2639
- flagImg: 'assets/flags/pk.svg',
2639
+ flagImg: 'flags/pk.svg',
2640
2640
  code: 'ur',
2641
2641
  defaultLocale: 'ur-PK',
2642
2642
  i: 43,
@@ -2652,7 +2652,7 @@ const LANGUAGES = {
2652
2652
  sr: {
2653
2653
  nativeName: 'Српски (Srpski)',
2654
2654
  flag: '🇷🇸',
2655
- flagImg: 'assets/flags/rs.svg',
2655
+ flagImg: 'flags/rs.svg',
2656
2656
  code: 'sr',
2657
2657
  defaultLocale: 'sr-RS',
2658
2658
  i: 44,
@@ -2668,7 +2668,7 @@ const LANGUAGES = {
2668
2668
  is: {
2669
2669
  nativeName: 'Íslenska',
2670
2670
  flag: '🇮🇸',
2671
- flagImg: 'assets/flags/is.svg',
2671
+ flagImg: 'flags/is.svg',
2672
2672
  code: 'is',
2673
2673
  defaultLocale: 'is-IS',
2674
2674
  i: 45,
@@ -2684,7 +2684,7 @@ const LANGUAGES = {
2684
2684
  ta: {
2685
2685
  nativeName: 'தமிழ் (Tamiḻ)',
2686
2686
  flag: '🇱🇰',
2687
- flagImg: 'assets/flags/lk.svg',
2687
+ flagImg: 'flags/lk.svg',
2688
2688
  code: 'ta',
2689
2689
  defaultLocale: 'ta-LK',
2690
2690
  i: 46,
@@ -2700,7 +2700,7 @@ const LANGUAGES = {
2700
2700
  mr: {
2701
2701
  nativeName: 'मराठी (Marāṭhī)',
2702
2702
  flag: '🇮🇳',
2703
- flagImg: 'assets/flags/in.svg',
2703
+ flagImg: 'flags/in.svg',
2704
2704
  code: 'mr',
2705
2705
  defaultLocale: 'mr-IN',
2706
2706
  i: 47,
@@ -2716,7 +2716,7 @@ const LANGUAGES = {
2716
2716
  my: {
2717
2717
  nativeName: 'မြန်မာဘာသာ (Myanmar)',
2718
2718
  flag: '🇲🇲',
2719
- flagImg: 'assets/flags/mm.svg',
2719
+ flagImg: 'flags/mm.svg',
2720
2720
  code: 'my',
2721
2721
  defaultLocale: 'my-MM',
2722
2722
  i: 48,
@@ -2732,7 +2732,7 @@ const LANGUAGES = {
2732
2732
  cy: {
2733
2733
  nativeName: 'Cymraeg',
2734
2734
  flag: '🏴󠁧󠁢󠁷󠁬󠁳󠁿',
2735
- flagImg: 'assets/flags/cy.svg',
2735
+ flagImg: 'flags/cy.svg',
2736
2736
  code: 'cy',
2737
2737
  defaultLocale: 'cy-GB',
2738
2738
  i: 49,
@@ -2748,7 +2748,7 @@ const LANGUAGES = {
2748
2748
  ha: {
2749
2749
  nativeName: 'Hausa',
2750
2750
  flag: '🇳🇬',
2751
- flagImg: 'assets/flags/ng.svg',
2751
+ flagImg: 'flags/ng.svg',
2752
2752
  code: 'ha',
2753
2753
  defaultLocale: 'ha-NG',
2754
2754
  i: 50,
@@ -2764,7 +2764,7 @@ const LANGUAGES = {
2764
2764
  eu: {
2765
2765
  nativeName: 'Euskara',
2766
2766
  flag: '🇪🇸',
2767
- flagImg: 'assets/flags/es.svg',
2767
+ flagImg: 'flags/es.svg',
2768
2768
  code: 'eu',
2769
2769
  defaultLocale: 'eu-ES',
2770
2770
  i: 51,
@@ -2780,7 +2780,7 @@ const LANGUAGES = {
2780
2780
  ga: {
2781
2781
  nativeName: 'Gaeilge',
2782
2782
  flag: '🇮🇪',
2783
- flagImg: 'assets/flags/ie.svg',
2783
+ flagImg: 'flags/ie.svg',
2784
2784
  code: 'ga',
2785
2785
  defaultLocale: 'ga-IE',
2786
2786
  i: 52,
@@ -2796,7 +2796,7 @@ const LANGUAGES = {
2796
2796
  sd: {
2797
2797
  nativeName: 'سنڌي (Sindhī)',
2798
2798
  flag: '🇵🇰',
2799
- flagImg: 'assets/flags/pk.svg',
2799
+ flagImg: 'flags/pk.svg',
2800
2800
  code: 'sd',
2801
2801
  defaultLocale: 'sd-PK',
2802
2802
  i: 53,
@@ -2812,7 +2812,7 @@ const LANGUAGES = {
2812
2812
  am: {
2813
2813
  nativeName: 'አማርኛ (Amarəñña)',
2814
2814
  flag: '🇪🇹',
2815
- flagImg: 'assets/flags/et.svg',
2815
+ flagImg: 'flags/et.svg',
2816
2816
  code: 'am',
2817
2817
  defaultLocale: 'am-ET',
2818
2818
  i: 54,
@@ -2828,7 +2828,7 @@ const LANGUAGES = {
2828
2828
  jv: {
2829
2829
  nativeName: 'Basa Jawa',
2830
2830
  flag: '🇮🇩',
2831
- flagImg: 'assets/flags/id.svg',
2831
+ flagImg: 'flags/id.svg',
2832
2832
  code: 'jv',
2833
2833
  defaultLocale: 'jv-ID',
2834
2834
  i: 55,
@@ -2844,7 +2844,7 @@ const LANGUAGES = {
2844
2844
  km: {
2845
2845
  nativeName: 'ភាសាខ្មែរ (Phéasa Khmér)',
2846
2846
  flag: '🇰🇭',
2847
- flagImg: 'assets/flags/kh.svg',
2847
+ flagImg: 'flags/kh.svg',
2848
2848
  code: 'km',
2849
2849
  defaultLocale: 'km-KH',
2850
2850
  i: 56,
@@ -2860,7 +2860,7 @@ const LANGUAGES = {
2860
2860
  yo: {
2861
2861
  nativeName: 'Yorùbá',
2862
2862
  flag: '🇳🇬',
2863
- flagImg: 'assets/flags/ng.svg',
2863
+ flagImg: 'flags/ng.svg',
2864
2864
  code: 'yo',
2865
2865
  defaultLocale: 'yo-NG',
2866
2866
  i: 57,
@@ -2876,7 +2876,7 @@ const LANGUAGES = {
2876
2876
  gl: {
2877
2877
  nativeName: 'Galego',
2878
2878
  flag: '🇪🇸',
2879
- flagImg: 'assets/flags/es.svg',
2879
+ flagImg: 'flags/es.svg',
2880
2880
  code: 'gl',
2881
2881
  defaultLocale: 'gl-ES',
2882
2882
  i: 58,
@@ -3659,58 +3659,70 @@ class EntityCommunicationService {
3659
3659
  this.httpService = inject(HttpCoreService);
3660
3660
  // this.customHost = customHost;
3661
3661
  }
3662
+ findAll(query = {}) {
3663
+ // return this.httpService.getHttp<T[]>({ service: `api/${this.serviceName}`, host: this.customHost });
3664
+ return this.operation({ action: 'find', query });
3665
+ }
3662
3666
  /**
3663
- * @deprecated Use operation({ action: 'find', query: {} }) instead.
3667
+ * @deprecated Use findAll(query) instead.
3664
3668
  */
3665
- findAll() {
3666
- return this.httpService.getHttp({ service: `api/${this.serviceName}`, host: this.customHost });
3667
- }
3668
3669
  findAllOperation(query = {}) {
3669
- return this.operation({ action: 'find', query });
3670
- }
3671
- findOne(id) {
3672
- return this.httpService.getHttp({ service: `api/${this.serviceName}/${id}`, host: this.customHost });
3670
+ return this.findAll(query);
3673
3671
  }
3674
- findOneOperation(id, projection) {
3672
+ findOne(id, projection) {
3673
+ // return this.httpService.getHttp<T>({ service: `api/${this.serviceName}/${id}`, host: this.customHost });
3675
3674
  return this.operation({ action: 'findOne', query: { _id: id }, projection });
3676
3675
  }
3677
3676
  /**
3678
- * @deprecated Use operation({ action: 'findOne', query, projection }) instead.
3677
+ * @deprecated Use findOne(id, projection) instead.
3679
3678
  */
3679
+ findOneOperation(id, projection) {
3680
+ return this.findOne(id, projection);
3681
+ }
3680
3682
  findOneByQuery(query, projection) {
3681
- // Can find only one with query and projection, query can be id. { id: 'id' }
3682
- return this.httpService.postHttp({ service: `api/${this.serviceName}/find-one`, data: { query, projection }, host: this.customHost });
3683
+ // return this.httpService.postHttp<T>({ service: `api/${this.serviceName}/find-one`, data: { query, projection }, host: this.customHost });
3684
+ return this.operation({ action: 'findOne', query, projection });
3683
3685
  }
3684
3686
  createOrUpdate(entity) {
3685
- // if Id is present then in object, then Update all props in the object
3686
- return this.httpService.postHttp({ service: `api/${this.serviceName}`, data: entity, host: this.customHost });
3687
+ // return this.httpService.postHttp<T>({ service: `api/${this.serviceName}`, data: entity, host: this.customHost });
3688
+ const id = entity._id || entity.id;
3689
+ if (id) {
3690
+ return this.operation({ action: 'updateOne', query: { _id: id }, payload: entity });
3691
+ }
3692
+ return this.operation({ action: 'create', payload: entity });
3687
3693
  }
3694
+ /**
3695
+ * @deprecated Use createOrUpdate(payload) instead.
3696
+ */
3688
3697
  createOperation(payload) {
3689
- return this.operation({ action: 'create', payload });
3698
+ return this.createOrUpdate(payload);
3690
3699
  }
3691
3700
  query(filterConfig) {
3692
3701
  return this.httpService.postHttp({ service: `api/${this.serviceName}/query`, data: filterConfig, host: this.customHost });
3693
3702
  }
3694
3703
  /**
3695
- * @deprecated Use operation({ action: 'updateOne', query: { _id: id }, payload: update }) instead.
3704
+ * @deprecated Use createOrUpdate instead.
3696
3705
  */
3697
3706
  update(id, update) {
3698
- // NEW METHOD, i'm not used yet.
3699
- // Este método da más control porque no esta validado, puede actualizar por ejemplo un objeto anidado 'assets.motions' o creo que tambien mandando el update de mongo {$push...}
3700
- return this.httpService.putHttp({ service: `api/${this.serviceName}/${id}`, data: update, host: this.customHost });
3707
+ return this.operation({ action: 'updateOne', query: { _id: id }, payload: update });
3701
3708
  }
3709
+ /**
3710
+ * @deprecated Use createOrUpdate or updateOne instead.
3711
+ */
3702
3712
  updateOneOperation(id, payload) {
3703
- return this.operation({ action: 'updateOne', query: { _id: id }, payload });
3713
+ return this.update(id, payload);
3704
3714
  }
3705
3715
  partialUpdate(id, partialUpdates) {
3706
- // In backend object is flattened, so Convert nested objects to dot notation eg. { "video.captions.remotion": captions.captions }
3707
- return this.httpService.putHttp({ service: `api/${this.serviceName}/${id}`, data: partialUpdates, host: this.customHost });
3716
+ return this.operation({ action: 'updateOne', query: { _id: id }, payload: partialUpdates });
3708
3717
  }
3709
3718
  async remove(id) {
3710
- await this.httpService.deleteHttp({ service: `api/${this.serviceName}/${id}`, host: this.customHost });
3719
+ return this.operation({ action: 'deleteOne', query: { _id: id } });
3711
3720
  }
3721
+ /**
3722
+ * @deprecated Use remove(id) instead.
3723
+ */
3712
3724
  removeOperation(id) {
3713
- return this.operation({ action: 'deleteOne', query: { _id: id } });
3725
+ return this.remove(id);
3714
3726
  }
3715
3727
  clone(id, overrides = {}) {
3716
3728
  return this.httpService.postHttp({ service: `api/${this.serviceName}/${id}/clone`, data: overrides });
@@ -3805,7 +3817,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.2", ngImpor
3805
3817
 
3806
3818
  class AudioNotificationService {
3807
3819
  playFinishNotification() {
3808
- const audio = new Audio('assets/sounds/accomplished.mp3');
3820
+ const audio = new Audio('sounds/accomplished.mp3');
3809
3821
  audio.load();
3810
3822
  audio.play();
3811
3823
  }