@firestitch/filter 12.7.0 → 12.7.1
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.
|
@@ -2002,9 +2002,11 @@
|
|
|
2002
2002
|
};
|
|
2003
2003
|
WeekItem.prototype._validateModel = function () { };
|
|
2004
2004
|
WeekItem.prototype._setModel = function (value) {
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2005
|
+
if (value) {
|
|
2006
|
+
value.from = parseDate(value.from);
|
|
2007
|
+
value.to = parseDate(value.to);
|
|
2008
|
+
value.period = parseInt(value.period, 10) || null;
|
|
2009
|
+
}
|
|
2008
2010
|
_super.prototype._setModel.call(this, value);
|
|
2009
2011
|
};
|
|
2010
2012
|
WeekItem.prototype._parseConfig = function (item) {
|
|
@@ -2014,7 +2016,7 @@
|
|
|
2014
2016
|
WeekItem.prototype._init = function () { };
|
|
2015
2017
|
WeekItem.prototype._clearValue = function (defaultValue) {
|
|
2016
2018
|
if (defaultValue === void 0) { defaultValue = undefined; }
|
|
2017
|
-
this.model = defaultValue !== null && defaultValue !== void 0 ? defaultValue :
|
|
2019
|
+
this.model = defaultValue !== null && defaultValue !== void 0 ? defaultValue : undefined;
|
|
2018
2020
|
};
|
|
2019
2021
|
return WeekItem;
|
|
2020
2022
|
}(BaseItem));
|