search-and-file-widget-test 1.3.7 → 1.3.8

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.
@@ -35516,6 +35516,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
35516
35516
  var httpResource, HttpResourceImpl;
35517
35517
  var init_http = __esm({
35518
35518
  "node_modules/@angular/common/fesm2022/http.mjs"() {
35519
+ init_module_JS82OH2B();
35519
35520
  init_module_JS82OH2B();
35520
35521
  init_core();
35521
35522
  httpResource = (() => {
@@ -56777,6 +56778,14 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
56777
56778
  useClass: handler
56778
56779
  };
56779
56780
  }
56781
+ function provideTranslateService(config2 = {}) {
56782
+ return defaultProviders(__spreadValues({
56783
+ compiler: provideTranslateCompiler(TranslateNoOpCompiler),
56784
+ parser: provideTranslateParser(TranslateDefaultParser),
56785
+ loader: provideTranslateLoader(TranslateNoOpLoader),
56786
+ missingTranslationHandler: provideMissingTranslationHandler(DefaultMissingTranslationHandler)
56787
+ }, config2), true);
56788
+ }
56780
56789
  function defaultProviders(config2 = {}, provideStore) {
56781
56790
  const providers = [];
56782
56791
  if (config2.loader) {
@@ -92177,6 +92186,61 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
92177
92186
  }
92178
92187
  });
92179
92188
 
92189
+ // node_modules/@ngx-translate/http-loader/fesm2022/ngx-translate-http-loader.mjs
92190
+ function provideTranslateHttpLoader(config2 = {}) {
92191
+ const useBackend = config2.useHttpBackend ?? false;
92192
+ return [{
92193
+ provide: TRANSLATE_HTTP_LOADER_CONFIG,
92194
+ useValue: config2
92195
+ }, {
92196
+ provide: TranslateLoader,
92197
+ useClass: TranslateHttpLoader,
92198
+ deps: [useBackend ? HttpBackend : HttpClient, TRANSLATE_HTTP_LOADER_CONFIG]
92199
+ }];
92200
+ }
92201
+ var TRANSLATE_HTTP_LOADER_CONFIG, TranslateHttpLoader;
92202
+ var init_ngx_translate_http_loader = __esm({
92203
+ "node_modules/@ngx-translate/http-loader/fesm2022/ngx-translate-http-loader.mjs"() {
92204
+ init_http();
92205
+ init_core();
92206
+ init_core();
92207
+ init_ngx_translate_core();
92208
+ TRANSLATE_HTTP_LOADER_CONFIG = new InjectionToken("TRANSLATE_HTTP_LOADER_CONFIG");
92209
+ TranslateHttpLoader = class _TranslateHttpLoader {
92210
+ http;
92211
+ config;
92212
+ constructor() {
92213
+ this.config = __spreadValues({
92214
+ prefix: "/assets/i18n/",
92215
+ suffix: ".json",
92216
+ enforceLoading: false,
92217
+ useHttpBackend: false
92218
+ }, inject(TRANSLATE_HTTP_LOADER_CONFIG));
92219
+ this.http = this.config.useHttpBackend ? new HttpClient(inject(HttpBackend)) : inject(HttpClient);
92220
+ }
92221
+ /**
92222
+ * Gets the translations from the server
92223
+ */
92224
+ getTranslation(lang) {
92225
+ const cacheBuster = this.config.enforceLoading ? `?enforceLoading=${Date.now()}` : "";
92226
+ return this.http.get(`${this.config.prefix}${lang}${this.config.suffix}${cacheBuster}`);
92227
+ }
92228
+ static \u0275fac = function TranslateHttpLoader_Factory(__ngFactoryType__) {
92229
+ return new (__ngFactoryType__ || _TranslateHttpLoader)();
92230
+ };
92231
+ static \u0275prov = /* @__PURE__ */ \u0275\u0275defineInjectable({
92232
+ token: _TranslateHttpLoader,
92233
+ factory: _TranslateHttpLoader.\u0275fac
92234
+ });
92235
+ };
92236
+ (() => {
92237
+ (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(TranslateHttpLoader, [{
92238
+ type: Injectable
92239
+ }], () => [], null);
92240
+ })();
92241
+ }
92242
+ });
92243
+
92180
92244
  // src/main.ts
92181
92245
  var require_main = __commonJS({
92182
92246
  "src/main.ts"(exports$1) {
@@ -92185,9 +92249,17 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
92185
92249
  init_filing_component();
92186
92250
  init_animations();
92187
92251
  init_core2();
92252
+ init_ngx_translate_core();
92253
+ init_ngx_translate_http_loader();
92254
+ init_http();
92188
92255
  (() => __async(null, null, function* () {
92189
92256
  const app = yield createApplication({
92190
- providers: [provideAnimations(), provideNativeDateAdapter()]
92257
+ providers: [provideAnimations(), provideNativeDateAdapter(), provideHttpClient(), provideTranslateService({
92258
+ loader: provideTranslateHttpLoader({
92259
+ prefix: "/assets/i18n/",
92260
+ suffix: ".json"
92261
+ })
92262
+ })]
92191
92263
  });
92192
92264
  const filingElement = createCustomElement(FilingComponent, {
92193
92265
  injector: app.injector
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "search-and-file-widget-test",
3
- "version": "1.3.7",
3
+ "version": "1.3.8",
4
4
  "description": "",
5
5
  "main": "dnd-filing-shell.js",
6
6
  "scripts": {