@tilde-nlp/ngx-common 8.0.1 → 8.0.3
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.
- package/fesm2022/tilde-nlp-ngx-common.mjs +11 -16
- package/fesm2022/tilde-nlp-ngx-common.mjs.map +1 -1
- package/index.d.ts +4 -5
- package/package.json +1 -1
- package/web-components/index.html +1 -1
- package/web-components/main.js +24 -24
- package/web-components/polyfills.js +4 -3
- package/web-components/styles.css +1 -1
|
@@ -1465,9 +1465,8 @@ class DateAgoPipe {
|
|
|
1465
1465
|
get localizationPrefix() { return this.settings?.localizationPrefix ?? this.defaultSettings.localizationPrefix; }
|
|
1466
1466
|
get justNowKey() { return this.settings?.justNowKey ?? this.defaultSettings.justNowKey; }
|
|
1467
1467
|
get justNowSeconds() { return this.settings?.justNowSeconds ?? this.defaultSettings.justNowSeconds; }
|
|
1468
|
-
constructor(translate,
|
|
1468
|
+
constructor(translate, settings) {
|
|
1469
1469
|
this.translate = translate;
|
|
1470
|
-
this._ref = _ref;
|
|
1471
1470
|
this.settings = settings;
|
|
1472
1471
|
this.defaultSettings = {
|
|
1473
1472
|
intervals: [
|
|
@@ -1522,8 +1521,7 @@ class DateAgoPipe {
|
|
|
1522
1521
|
if (!dateAgo) {
|
|
1523
1522
|
return "";
|
|
1524
1523
|
}
|
|
1525
|
-
|
|
1526
|
-
return translatePipe.transform(`${this.localizationPrefix}.${dateAgo.key}`, { value: dateAgo.howMany });
|
|
1524
|
+
return this.translate.instant(`${this.localizationPrefix}.${dateAgo.key}`, { value: dateAgo.howMany });
|
|
1527
1525
|
}
|
|
1528
1526
|
calculateDateAgo(value, enableMultiplePostfix) {
|
|
1529
1527
|
if (value) {
|
|
@@ -1549,7 +1547,7 @@ class DateAgoPipe {
|
|
|
1549
1547
|
}
|
|
1550
1548
|
return null;
|
|
1551
1549
|
}
|
|
1552
|
-
static { this.ɵfac = function DateAgoPipe_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || DateAgoPipe)(i0.ɵɵdirectiveInject(i1$1.TranslateService, 16), i0.ɵɵdirectiveInject(
|
|
1550
|
+
static { this.ɵfac = function DateAgoPipe_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || DateAgoPipe)(i0.ɵɵdirectiveInject(i1$1.TranslateService, 16), i0.ɵɵdirectiveInject(DateAgoSettingsToken, 24)); }; }
|
|
1553
1551
|
static { this.ɵpipe = /*@__PURE__*/ i0.ɵɵdefinePipe({ name: "dateAgo", type: DateAgoPipe, pure: false, standalone: false }); }
|
|
1554
1552
|
}
|
|
1555
1553
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DateAgoPipe, [{
|
|
@@ -1559,7 +1557,7 @@ class DateAgoPipe {
|
|
|
1559
1557
|
pure: false,
|
|
1560
1558
|
standalone: false
|
|
1561
1559
|
}]
|
|
1562
|
-
}], () => [{ type: i1$1.TranslateService }, { type:
|
|
1560
|
+
}], () => [{ type: i1$1.TranslateService }, { type: undefined, decorators: [{
|
|
1563
1561
|
type: Inject,
|
|
1564
1562
|
args: [DateAgoSettingsToken]
|
|
1565
1563
|
}, {
|
|
@@ -1569,8 +1567,7 @@ class DateAgoPipe {
|
|
|
1569
1567
|
class DateAgoModule {
|
|
1570
1568
|
static { this.ɵfac = function DateAgoModule_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || DateAgoModule)(); }; }
|
|
1571
1569
|
static { this.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: DateAgoModule }); }
|
|
1572
|
-
static { this.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule
|
|
1573
|
-
TranslateModule] }); }
|
|
1570
|
+
static { this.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule] }); }
|
|
1574
1571
|
}
|
|
1575
1572
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DateAgoModule, [{
|
|
1576
1573
|
type: NgModule,
|
|
@@ -1579,16 +1576,15 @@ class DateAgoModule {
|
|
|
1579
1576
|
DateAgoPipe
|
|
1580
1577
|
],
|
|
1581
1578
|
imports: [
|
|
1582
|
-
CommonModule
|
|
1583
|
-
TranslateModule
|
|
1579
|
+
CommonModule
|
|
1584
1580
|
],
|
|
1585
1581
|
exports: [
|
|
1586
1582
|
DateAgoPipe
|
|
1587
|
-
]
|
|
1583
|
+
],
|
|
1584
|
+
providers: []
|
|
1588
1585
|
}]
|
|
1589
1586
|
}], null, null); })();
|
|
1590
|
-
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(DateAgoModule, { declarations: [DateAgoPipe], imports: [CommonModule,
|
|
1591
|
-
TranslateModule], exports: [DateAgoPipe] }); })();
|
|
1587
|
+
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(DateAgoModule, { declarations: [DateAgoPipe], imports: [CommonModule], exports: [DateAgoPipe] }); })();
|
|
1592
1588
|
|
|
1593
1589
|
/**
|
|
1594
1590
|
* Pipe used to calculate the length of an object.
|
|
@@ -6704,7 +6700,6 @@ class TextToSpeechComponent {
|
|
|
6704
6700
|
type: Component,
|
|
6705
6701
|
args: [{ selector: 'lib-text-to-speech', imports: [
|
|
6706
6702
|
CommonModule,
|
|
6707
|
-
MatButton,
|
|
6708
6703
|
MatIconButton,
|
|
6709
6704
|
MatIcon,
|
|
6710
6705
|
FormsModule,
|
|
@@ -6720,7 +6715,7 @@ class TextToSpeechComponent {
|
|
|
6720
6715
|
}], voices: [{
|
|
6721
6716
|
type: Input
|
|
6722
6717
|
}] }); })();
|
|
6723
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TextToSpeechComponent, { className: "TextToSpeechComponent", filePath: "lib/text-to-speech/text-to-speech.component.ts", lineNumber:
|
|
6718
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TextToSpeechComponent, { className: "TextToSpeechComponent", filePath: "lib/text-to-speech/text-to-speech.component.ts", lineNumber: 33 }); })();
|
|
6724
6719
|
|
|
6725
6720
|
var LLMActions;
|
|
6726
6721
|
(function (LLMActions) {
|
|
@@ -7409,7 +7404,7 @@ class NewFeatureDialogWrapperComponent {
|
|
|
7409
7404
|
type: Component,
|
|
7410
7405
|
args: [{
|
|
7411
7406
|
selector: 'lib-new-feature-dialog-wrapper',
|
|
7412
|
-
imports: [CommonModule, MatDialogModule
|
|
7407
|
+
imports: [CommonModule, MatDialogModule],
|
|
7413
7408
|
template: ''
|
|
7414
7409
|
}]
|
|
7415
7410
|
}], null, { titleLocalizationKey: [{
|