duck-dev-lib 0.0.55 → 0.0.56

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.
@@ -167,6 +167,11 @@ var notifications = {
167
167
  tip: {
168
168
  clickToClose: "Tip: click a notification to close it."
169
169
  },
170
+ defaultTitles: {
171
+ success: "Success",
172
+ warning: "Warning",
173
+ error: "Error"
174
+ },
170
175
  snippets: {
171
176
  titleSuccess: "Success",
172
177
  sampleMessage: "Operation completed successfully"
@@ -882,4 +887,4 @@ var en = {
882
887
  };
883
888
 
884
889
  export { accordionDoc, badgeDoc, buttons, cardDoc, en as default, directivesDoc, documentationStyleTabs, inputComponent, loaders, modalDoc, notifications, progressDoc, quickStart, segmentDoc, slider, speakerBubbleDoc, svgComponent, tabs, tabsComponent, tooltipDoc };
885
- //# sourceMappingURL=duck-dev-lib-en-DX70nkSP.mjs.map
890
+ //# sourceMappingURL=duck-dev-lib-en-CvAeAe4f.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"duck-dev-lib-en-DX70nkSP.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -133,6 +133,11 @@ var notifications = {
133
133
  tip: {
134
134
  clickToClose: "Подсказка: кликните по уведомлению, чтобы закрыть."
135
135
  },
136
+ defaultTitles: {
137
+ success: "Успех",
138
+ warning: "Предупреждение",
139
+ error: "Ошибка"
140
+ },
136
141
  snippets: {
137
142
  titleSuccess: "Успех",
138
143
  sampleMessage: "Операция успешно выполнена"
@@ -837,4 +842,4 @@ var ru = {
837
842
  };
838
843
 
839
844
  export { accordionDoc, badgeDoc, buttons, cardDoc, ru as default, directivesDoc, documentationStyleTabs, inputComponent, loaders, modalDoc, notifications, progressDoc, quickStart, segmentDoc, slider, speakerBubbleDoc, svgComponent, tabs, tabsComponent };
840
- //# sourceMappingURL=duck-dev-lib-ru-BiVnCmCN.mjs.map
845
+ //# sourceMappingURL=duck-dev-lib-ru-DFVsk_sA.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"duck-dev-lib-ru-BiVnCmCN.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -4008,6 +4008,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.1", ngImpor
4008
4008
  }], propDecorators: { form: [{ type: i0.Input, args: [{ isSignal: true, alias: "form", required: true }] }], controlName: [{ type: i0.Input, args: [{ isSignal: true, alias: "controlName", required: true }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: true }] }], description: [{ type: i0.Input, args: [{ isSignal: true, alias: "description", required: false }] }], offLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "offLabel", required: true }] }], onLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "onLabel", required: true }] }], errorMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "errorMessage", required: false }] }] } });
4009
4009
 
4010
4010
  class DuckDevNotificationService {
4011
+ transloco = inject(TranslocoService);
4011
4012
  seq = 1;
4012
4013
  timers = new Map();
4013
4014
  items = signal([], { ...(ngDevMode ? { debugName: "items" } : {}) });
@@ -4049,14 +4050,7 @@ class DuckDevNotificationService {
4049
4050
  this.items().forEach((i) => this.remove(i.id));
4050
4051
  }
4051
4052
  defaultTitle(type) {
4052
- switch (type) {
4053
- case 'success':
4054
- return 'Success';
4055
- case 'warning':
4056
- return 'Warning';
4057
- case 'error':
4058
- return 'Error';
4059
- }
4053
+ return this.transloco.translate(`notifications.defaultTitles.${type}`);
4060
4054
  }
4061
4055
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.1", ngImport: i0, type: DuckDevNotificationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4062
4056
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.1", ngImport: i0, type: DuckDevNotificationService, providedIn: 'root' });
@@ -6074,8 +6068,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.1", ngImpor
6074
6068
  }] });
6075
6069
 
6076
6070
  const DuckDevLibTranslations = {
6077
- en: import('./duck-dev-lib-en-DX70nkSP.mjs'),
6078
- ru: import('./duck-dev-lib-ru-BiVnCmCN.mjs'),
6071
+ en: import('./duck-dev-lib-en-CvAeAe4f.mjs'),
6072
+ ru: import('./duck-dev-lib-ru-DFVsk_sA.mjs'),
6079
6073
  };
6080
6074
 
6081
6075
  /*