@wavemaker/app-ng-runtime 11.4.0-next.24564 → 11.4.0-next.24565

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wavemaker/app-ng-runtime",
3
- "version": "11.4.0-next.24564",
3
+ "version": "11.4.0-next.24565",
4
4
  "description": "All modules required for a wavemaker application.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -3486,6 +3486,14 @@
3486
3486
  { type: core.AbstractHttpService }
3487
3487
  ]; };
3488
3488
 
3489
+ var Formatter = /** @class */ (function () {
3490
+ function Formatter() {
3491
+ }
3492
+ Formatter.prototype.format = function (value, format) {
3493
+ return exports.appManager.getPipe('date').transform(value, format);
3494
+ };
3495
+ return Formatter;
3496
+ }());
3489
3497
  var VariablesService = /** @class */ (function () {
3490
3498
  function VariablesService(httpService, metadataService, navigationService, routerService, toasterService, oAuthService, securityService, dialogService) {
3491
3499
  this.httpService = httpService;
@@ -3611,6 +3619,7 @@
3611
3619
  if (this.isVariableSeperated(variablesJson, variableName)) {
3612
3620
  this.processBinding(varInstance, scope, 'dataBinding', this.getBindSourceTarget(varInstance));
3613
3621
  varInstance.httpService = this.httpService;
3622
+ varInstance.dateFormatter = new Formatter();
3614
3623
  varInstance.subscribe('afterInvoke', function () { return core.$invokeWatchers(true); });
3615
3624
  if (varInstance.category === 'wm.LiveVariable' && varInstance.operation === 'read') {
3616
3625
  core.processFilterExpBindNode(varInstance._context, varInstance.filterExpressions, varInstance);
@@ -3705,6 +3714,7 @@
3705
3714
  exports.DB_CONSTANTS = DB_CONSTANTS;
3706
3715
  exports.DeviceVariableManager = DeviceVariableManager;
3707
3716
  exports.DeviceVariableService = DeviceVariableService;
3717
+ exports.Formatter = Formatter;
3708
3718
  exports.MetadataService = MetadataService;
3709
3719
  exports.SWAGGER_CONSTANTS = SWAGGER_CONSTANTS;
3710
3720
  exports.VARIABLE_CONSTANTS = VARIABLE_CONSTANTS;