|
|
@ -1,4 +1,4 @@ |
|
|
|
/*! time: 2021-3-24 09:40:25 */ |
|
|
|
/*! time: 2021-3-24 16:40:27 */ |
|
|
|
/******/ (function(modules) { // webpackBootstrap
|
|
|
|
/******/ (function(modules) { // webpackBootstrap
|
|
|
|
/******/ // The module cache
|
|
|
|
/******/ // The module cache
|
|
|
|
/******/ var installedModules = {}; |
|
|
|
/******/ var installedModules = {}; |
|
|
@ -66538,6 +66538,10 @@ BI.DynamicYearCard = BI.inherit(BI.Widget, { |
|
|
|
}; |
|
|
|
}; |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getInputValue: function () { |
|
|
|
|
|
|
|
return this._getValue(); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
getValue: function () { |
|
|
|
getValue: function () { |
|
|
|
return this.checkValidation() ? this._getValue() : {}; |
|
|
|
return this.checkValidation() ? this._getValue() : {}; |
|
|
|
}, |
|
|
|
}, |
|
|
@ -66551,7 +66555,7 @@ BI.DynamicYearCard = BI.inherit(BI.Widget, { |
|
|
|
invalid = !this._checkDate(this._getValue()); |
|
|
|
invalid = !this._checkDate(this._getValue()); |
|
|
|
errorText = this._getErrorText(); |
|
|
|
errorText = this._getErrorText(); |
|
|
|
} |
|
|
|
} |
|
|
|
invalid && show && BI.Bubbles.show("dynamic-year-error", errorText, this.wrapper); |
|
|
|
invalid && show && BI.Bubbles.show("dynamic-year-error", errorText, this.item); |
|
|
|
|
|
|
|
|
|
|
|
return !invalid; |
|
|
|
return !invalid; |
|
|
|
}, |
|
|
|
}, |
|
|
@ -67068,7 +67072,7 @@ BI.DynamicYearPopup = BI.inherit(BI.Widget, { |
|
|
|
this.yearButton.setValue(BI.i18nText("BI-Basic_Current_Year")); |
|
|
|
this.yearButton.setValue(BI.i18nText("BI-Basic_Current_Year")); |
|
|
|
this.yearButton.setEnable(!this._checkYearValid()); |
|
|
|
this.yearButton.setEnable(!this._checkYearValid()); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
var date = BI.DynamicDateHelper.getCalculation(this.dynamicPane.getValue()); |
|
|
|
var date = BI.DynamicDateHelper.getCalculation(this.dynamicPane.getInputValue()); |
|
|
|
date = BI.print(date, "%Y"); |
|
|
|
date = BI.print(date, "%Y"); |
|
|
|
this.yearButton.setValue(date); |
|
|
|
this.yearButton.setValue(date); |
|
|
|
this.yearButton.setEnable(false); |
|
|
|
this.yearButton.setEnable(false); |
|
|
@ -67656,47 +67660,53 @@ BI.DynamicYearMonthCard = BI.inherit(BI.Widget, { |
|
|
|
var self = this; |
|
|
|
var self = this; |
|
|
|
return { |
|
|
|
return { |
|
|
|
type: "bi.vertical", |
|
|
|
type: "bi.vertical", |
|
|
|
ref: function (_ref) { |
|
|
|
|
|
|
|
self.wrapper = _ref; |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
items: [{ |
|
|
|
items: [{ |
|
|
|
type: "bi.label", |
|
|
|
type: "bi.label", |
|
|
|
text: BI.i18nText("BI-Multi_Date_Relative_Current_Time"), |
|
|
|
text: BI.i18nText("BI-Multi_Date_Relative_Current_Time"), |
|
|
|
textAlign: "left", |
|
|
|
textAlign: "left", |
|
|
|
height: 24 |
|
|
|
height: 24 |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
type: "bi.dynamic_date_param_item", |
|
|
|
type: "bi.vertical", |
|
|
|
validationChecker: BI.bind(self._checkDate, self), |
|
|
|
ref: function (_ref) { |
|
|
|
ref: function () { |
|
|
|
self.wrapper = _ref; |
|
|
|
self.year = this; |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
listeners: [{ |
|
|
|
|
|
|
|
eventName: "EVENT_CHANGE", |
|
|
|
|
|
|
|
action: function () { |
|
|
|
|
|
|
|
self.fireEvent("EVENT_CHANGE"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, { |
|
|
|
|
|
|
|
eventName: "EVENT_INPUT_CHANGE", |
|
|
|
|
|
|
|
action: function () { |
|
|
|
|
|
|
|
BI.Bubbles.hide("dynamic-year-month-error"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}] |
|
|
|
|
|
|
|
}, { |
|
|
|
|
|
|
|
type: "bi.dynamic_date_param_item", |
|
|
|
|
|
|
|
dateType: BI.DynamicDateCard.TYPE.MONTH, |
|
|
|
|
|
|
|
ref: function () { |
|
|
|
|
|
|
|
self.month = this; |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
listeners: [{ |
|
|
|
items: [{ |
|
|
|
eventName: "EVENT_CHANGE", |
|
|
|
el: { |
|
|
|
action: function () { |
|
|
|
type: "bi.dynamic_date_param_item", |
|
|
|
self.fireEvent("EVENT_CHANGE"); |
|
|
|
validationChecker: BI.bind(self._checkDate, self), |
|
|
|
} |
|
|
|
ref: function () { |
|
|
|
|
|
|
|
self.year = this; |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
listeners: [{ |
|
|
|
|
|
|
|
eventName: "EVENT_CHANGE", |
|
|
|
|
|
|
|
action: function () { |
|
|
|
|
|
|
|
self.fireEvent("EVENT_CHANGE"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, { |
|
|
|
|
|
|
|
eventName: "EVENT_INPUT_CHANGE", |
|
|
|
|
|
|
|
action: function () { |
|
|
|
|
|
|
|
BI.Bubbles.hide("dynamic-year-month-error"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}] |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
bgap: 10, |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
eventName: "EVENT_INPUT_CHANGE", |
|
|
|
type: "bi.dynamic_date_param_item", |
|
|
|
action: function () { |
|
|
|
dateType: BI.DynamicDateCard.TYPE.MONTH, |
|
|
|
BI.Bubbles.hide("dynamic-year-month-error"); |
|
|
|
ref: function () { |
|
|
|
} |
|
|
|
self.month = this; |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
listeners: [{ |
|
|
|
|
|
|
|
eventName: "EVENT_CHANGE", |
|
|
|
|
|
|
|
action: function () { |
|
|
|
|
|
|
|
self.fireEvent("EVENT_CHANGE"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, { |
|
|
|
|
|
|
|
eventName: "EVENT_INPUT_CHANGE", |
|
|
|
|
|
|
|
action: function () { |
|
|
|
|
|
|
|
BI.Bubbles.hide("dynamic-year-month-error"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}] |
|
|
|
}] |
|
|
|
}] |
|
|
|
}], |
|
|
|
}], |
|
|
|
vgap: 10, |
|
|
|
vgap: 10, |
|
|
@ -67773,6 +67783,10 @@ BI.DynamicYearMonthCard = BI.inherit(BI.Widget, { |
|
|
|
}; |
|
|
|
}; |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getInputValue: function () { |
|
|
|
|
|
|
|
return this._getValue(); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
getValue: function () { |
|
|
|
getValue: function () { |
|
|
|
return this.checkValidation() ? this._getValue() : {}; |
|
|
|
return this.checkValidation() ? this._getValue() : {}; |
|
|
|
}, |
|
|
|
}, |
|
|
@ -68289,7 +68303,7 @@ BI.DynamicYearMonthPopup = BI.inherit(BI.Widget, { |
|
|
|
this.textButton.setValue(BI.i18nText("BI-Basic_Current_Month")); |
|
|
|
this.textButton.setValue(BI.i18nText("BI-Basic_Current_Month")); |
|
|
|
this.textButton.setEnable(!this._checkTodayValid()); |
|
|
|
this.textButton.setEnable(!this._checkTodayValid()); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
var date = BI.DynamicDateHelper.getCalculation(this.dynamicPane.getValue()); |
|
|
|
var date = BI.DynamicDateHelper.getCalculation(this.dynamicPane.getInputValue()); |
|
|
|
date = BI.print(date, "%Y-%x"); |
|
|
|
date = BI.print(date, "%Y-%x"); |
|
|
|
this.textButton.setValue(date); |
|
|
|
this.textButton.setValue(date); |
|
|
|
this.textButton.setEnable(false); |
|
|
|
this.textButton.setEnable(false); |
|
|
@ -68954,47 +68968,53 @@ BI.DynamicYearQuarterCard = BI.inherit(BI.Widget, { |
|
|
|
var self = this; |
|
|
|
var self = this; |
|
|
|
return { |
|
|
|
return { |
|
|
|
type: "bi.vertical", |
|
|
|
type: "bi.vertical", |
|
|
|
ref: function (_ref) { |
|
|
|
|
|
|
|
self.wrapper = _ref; |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
items: [{ |
|
|
|
items: [{ |
|
|
|
type: "bi.label", |
|
|
|
type: "bi.label", |
|
|
|
text: BI.i18nText("BI-Multi_Date_Relative_Current_Time"), |
|
|
|
text: BI.i18nText("BI-Multi_Date_Relative_Current_Time"), |
|
|
|
textAlign: "left", |
|
|
|
textAlign: "left", |
|
|
|
height: 24 |
|
|
|
height: 24 |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
type: "bi.dynamic_date_param_item", |
|
|
|
type: "bi.vertical", |
|
|
|
validationChecker: BI.bind(self._checkDate, self), |
|
|
|
ref: function (_ref) { |
|
|
|
ref: function () { |
|
|
|
self.wrapper = _ref; |
|
|
|
self.year = this; |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
listeners: [{ |
|
|
|
|
|
|
|
eventName: "EVENT_CHANGE", |
|
|
|
|
|
|
|
action: function () { |
|
|
|
|
|
|
|
self.fireEvent("EVENT_CHANGE"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, { |
|
|
|
|
|
|
|
eventName: "EVENT_INPUT_CHANGE", |
|
|
|
|
|
|
|
action: function () { |
|
|
|
|
|
|
|
BI.Bubbles.hide("dynamic-year-quarter-error"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}] |
|
|
|
|
|
|
|
}, { |
|
|
|
|
|
|
|
type: "bi.dynamic_date_param_item", |
|
|
|
|
|
|
|
dateType: BI.DynamicDateCard.TYPE.QUARTER, |
|
|
|
|
|
|
|
ref: function () { |
|
|
|
|
|
|
|
self.quarter = this; |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
listeners: [{ |
|
|
|
items: [{ |
|
|
|
eventName: "EVENT_CHANGE", |
|
|
|
el: { |
|
|
|
action: function () { |
|
|
|
type: "bi.dynamic_date_param_item", |
|
|
|
self.fireEvent("EVENT_CHANGE"); |
|
|
|
validationChecker: BI.bind(self._checkDate, self), |
|
|
|
} |
|
|
|
ref: function () { |
|
|
|
|
|
|
|
self.year = this; |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
listeners: [{ |
|
|
|
|
|
|
|
eventName: "EVENT_CHANGE", |
|
|
|
|
|
|
|
action: function () { |
|
|
|
|
|
|
|
self.fireEvent("EVENT_CHANGE"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, { |
|
|
|
|
|
|
|
eventName: "EVENT_INPUT_CHANGE", |
|
|
|
|
|
|
|
action: function () { |
|
|
|
|
|
|
|
BI.Bubbles.hide("dynamic-year-quarter-error"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}] |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
bgap: 10 |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
eventName: "EVENT_INPUT_CHANGE", |
|
|
|
type: "bi.dynamic_date_param_item", |
|
|
|
action: function () { |
|
|
|
dateType: BI.DynamicDateCard.TYPE.QUARTER, |
|
|
|
BI.Bubbles.hide("dynamic-year-quarter-error"); |
|
|
|
ref: function () { |
|
|
|
} |
|
|
|
self.quarter = this; |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
listeners: [{ |
|
|
|
|
|
|
|
eventName: "EVENT_CHANGE", |
|
|
|
|
|
|
|
action: function () { |
|
|
|
|
|
|
|
self.fireEvent("EVENT_CHANGE"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, { |
|
|
|
|
|
|
|
eventName: "EVENT_INPUT_CHANGE", |
|
|
|
|
|
|
|
action: function () { |
|
|
|
|
|
|
|
BI.Bubbles.hide("dynamic-year-quarter-error"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}] |
|
|
|
}] |
|
|
|
}] |
|
|
|
}], |
|
|
|
}], |
|
|
|
vgap: 10, |
|
|
|
vgap: 10, |
|
|
@ -69071,6 +69091,10 @@ BI.DynamicYearQuarterCard = BI.inherit(BI.Widget, { |
|
|
|
}; |
|
|
|
}; |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getInputValue: function () { |
|
|
|
|
|
|
|
return this._getValue(); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
getValue: function () { |
|
|
|
getValue: function () { |
|
|
|
return this.checkValidation() ? this._getValue() : {}; |
|
|
|
return this.checkValidation() ? this._getValue() : {}; |
|
|
|
}, |
|
|
|
}, |
|
|
@ -69568,7 +69592,7 @@ BI.DynamicYearQuarterPopup = BI.inherit(BI.Widget, { |
|
|
|
this.textButton.setValue(BI.i18nText("BI-Basic_Current_Quarter")); |
|
|
|
this.textButton.setValue(BI.i18nText("BI-Basic_Current_Quarter")); |
|
|
|
this.textButton.setEnable(!this._checkTodayValid()); |
|
|
|
this.textButton.setEnable(!this._checkTodayValid()); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
var date = BI.DynamicDateHelper.getCalculation(this.dynamicPane.getValue()); |
|
|
|
var date = BI.DynamicDateHelper.getCalculation(this.dynamicPane.getInputValue()); |
|
|
|
date = BI.print(date, "%Y-%Q"); |
|
|
|
date = BI.print(date, "%Y-%Q"); |
|
|
|
this.textButton.setValue(date); |
|
|
|
this.textButton.setValue(date); |
|
|
|
this.textButton.setEnable(false); |
|
|
|
this.textButton.setEnable(false); |
|
|
|