nuxeo-development-framework 0.7.1 → 0.7.2
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/bundles/nuxeo-development-framework.umd.js +10 -4
- package/bundles/nuxeo-development-framework.umd.js.map +1 -1
- package/esm2015/lib/components/dynamic-view/date-viewer/date-viewer.component.js +15 -9
- package/fesm2015/nuxeo-development-framework.js +9 -4
- package/fesm2015/nuxeo-development-framework.js.map +1 -1
- package/lib/components/dynamic-view/date-viewer/date-viewer.component.d.ts +6 -1
- package/package.json +1 -1
|
@@ -13023,15 +13023,21 @@
|
|
|
13023
13023
|
}] } });
|
|
13024
13024
|
|
|
13025
13025
|
var DateViewerComponent = /** @class */ (function () {
|
|
13026
|
-
function DateViewerComponent(appConfig) {
|
|
13026
|
+
function DateViewerComponent(appConfig, translation) {
|
|
13027
|
+
var _this = this;
|
|
13027
13028
|
this.appConfig = appConfig;
|
|
13029
|
+
this.translation = translation;
|
|
13028
13030
|
this.label = '';
|
|
13029
13031
|
this.value = '';
|
|
13030
13032
|
this.vertical = false;
|
|
13031
13033
|
this.formate = "EEEE, MMMM d, y";
|
|
13032
13034
|
this.hijri = false;
|
|
13033
13035
|
this.withOutLabel = false;
|
|
13036
|
+
this.isArabic = false;
|
|
13034
13037
|
this.formate = this.appConfig.myConfiguration['dateFormate'];
|
|
13038
|
+
this.langSubscription = this.translation.isArabic.subscribe(function (res) {
|
|
13039
|
+
_this.isArabic = res;
|
|
13040
|
+
});
|
|
13035
13041
|
}
|
|
13036
13042
|
DateViewerComponent.prototype.ngOnInit = function () {
|
|
13037
13043
|
// if(this.hijri){
|
|
@@ -13042,8 +13048,8 @@
|
|
|
13042
13048
|
};
|
|
13043
13049
|
return DateViewerComponent;
|
|
13044
13050
|
}());
|
|
13045
|
-
DateViewerComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0__namespace, type: DateViewerComponent, deps: [{ token: AppConfigService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
13046
|
-
DateViewerComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.4", type: DateViewerComponent, selector: "cts-date-viewer", inputs: { label: "label", value: "value", vertical: "vertical", formate: "formate", hijri: "hijri", withOutLabel: "withOutLabel" }, ngImport: i0__namespace, template: "<div class=\"my-dynamic-viewer\" [ngClass]=\"{'vertical' : vertical === true , 'with-out-label': withOutLabel}\">\r\n <div class=\"my-label\"
|
|
13051
|
+
DateViewerComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0__namespace, type: DateViewerComponent, deps: [{ token: AppConfigService }, { token: TranslationService$1 }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
13052
|
+
DateViewerComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.4", type: DateViewerComponent, selector: "cts-date-viewer", inputs: { label: "label", value: "value", vertical: "vertical", formate: "formate", hijri: "hijri", withOutLabel: "withOutLabel" }, ngImport: i0__namespace, template: "<div class=\"my-dynamic-viewer\" [ngClass]=\"{'vertical' : vertical === true , 'with-out-label': withOutLabel}\">\r\n <div class=\"my-label\" *ngIf=\"!withOutLabel\">{{label | translate}}</div>\r\n <div class=\"my-value\" *ngIf=\"!hijri\"> {{value | localizedDate:format:(isArabic? 'ar-AR' : 'en-US')}}</div>\r\n <div class=\"my-value\" *ngIf=\"hijri\">{{value | hijriDate}}</div>\r\n</div>", styles: [""], directives: [{ type: i3__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "translate": i1__namespace$1.TranslatePipe, "localizedDate": LocalizedDatePipe, "hijriDate": HijriDatePipe } });
|
|
13047
13053
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0__namespace, type: DateViewerComponent, decorators: [{
|
|
13048
13054
|
type: i0.Component,
|
|
13049
13055
|
args: [{
|
|
@@ -13051,7 +13057,7 @@
|
|
|
13051
13057
|
templateUrl: './date-viewer.component.html',
|
|
13052
13058
|
styleUrls: ['./date-viewer.component.scss']
|
|
13053
13059
|
}]
|
|
13054
|
-
}], ctorParameters: function () { return [{ type: AppConfigService }]; }, propDecorators: { label: [{
|
|
13060
|
+
}], ctorParameters: function () { return [{ type: AppConfigService }, { type: TranslationService$1 }]; }, propDecorators: { label: [{
|
|
13055
13061
|
type: i0.Input
|
|
13056
13062
|
}], value: [{
|
|
13057
13063
|
type: i0.Input
|