@hulkapps/app-manager-vue 2.2.3 → 2.2.4

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.
@@ -22052,6 +22052,13 @@ axios_1.default = _default;var axios = axios_1;var script$R = {
22052
22052
  methods: {
22053
22053
  dismissBanner: function dismissBanner(key) {
22054
22054
  this.staticContent[this.banner_type].splice(key, 1);
22055
+ },
22056
+ date_compare: function date_compare(published_on) {
22057
+ var published_on_obj = published_on.split('/');
22058
+ var now = new Date();
22059
+ var compareDate = new Date(published_on_obj[2] + '/' + published_on_obj[0] + '/' + published_on_obj[1]);
22060
+ var isShow = now.getTime() >= compareDate.getTime();
22061
+ return isShow;
22055
22062
  }
22056
22063
  },
22057
22064
  mounted: function mounted() {
@@ -22103,7 +22110,7 @@ var __vue_render__$P = function __vue_render__() {
22103
22110
  var _c = _vm._self._c || _h;
22104
22111
 
22105
22112
  return _vm.mappedStaticContentHeaders && _vm.mappedStaticContentHeaders.length ? _c('PLayoutSection', _vm._l(_vm.mappedStaticContentHeaders, function (header, key) {
22106
- return _c('PBanner', {
22113
+ return _vm.date_compare(header.published_on) && (header.expired_on == null || !_vm.date_compare(header.expired_on)) ? _c('PBanner', {
22107
22114
  key: key,
22108
22115
  attrs: {
22109
22116
  "id": "static-content-header-" + key,
@@ -22119,7 +22126,7 @@ var __vue_render__$P = function __vue_render__() {
22119
22126
  domProps: {
22120
22127
  "innerHTML": _vm._s(header.content)
22121
22128
  }
22122
- })]);
22129
+ })]) : _vm._e();
22123
22130
  }), 1) : _vm._e();
22124
22131
  };
22125
22132
 
@@ -22129,10 +22136,10 @@ var __vue_staticRenderFns__$P = [];
22129
22136
  var __vue_inject_styles__$R = undefined;
22130
22137
  /* scoped */
22131
22138
 
22132
- var __vue_scope_id__$R = "data-v-5bb9ba8a";
22139
+ var __vue_scope_id__$R = "data-v-f6317514";
22133
22140
  /* module identifier */
22134
22141
 
22135
- var __vue_module_identifier__$R = "data-v-5bb9ba8a";
22142
+ var __vue_module_identifier__$R = "data-v-f6317514";
22136
22143
  /* functional template */
22137
22144
 
22138
22145
  var __vue_is_functional_template__$R = false;
@@ -1,4 +1,4 @@
1
- /*! PolarisVue v2.2.3 | MIT License | github.com/hulkapps/polaris-vue */
1
+ /*! PolarisVue v2.2.4 | MIT License | github.com/hulkapps/polaris-vue */
2
2
  @charset "UTF-8";
3
3
  .app-manager {
4
4
  /*---------- Variable for basic ----------;*/