Browse Source

BI-19983

es6
windy 7 years ago
parent
commit
3a13391a90
  1. 30
      dist/_fineui.min.js
  2. 54
      dist/bundle.js
  3. 30
      dist/bundle.min.js
  4. 54
      dist/fineui.js
  5. 30
      dist/fineui.min.js
  6. 54
      dist/widget.js
  7. 12
      src/widget/datepane/datepane.js
  8. 12
      src/widget/datetimepane/datetimepane.js
  9. 15
      src/widget/dynamicdate/dynamicdate.combo.js
  10. 15
      src/widget/dynamicdatetime/dynamicdatetime.combo.js

30
dist/_fineui.min.js vendored

File diff suppressed because one or more lines are too long

54
dist/bundle.js vendored

@ -88861,8 +88861,10 @@ BI.shortcut("bi.static_date_pane_card", BI.StaticDatePaneCard);BI.DynamicDatePan
listeners: [{ listeners: [{
eventName: "EVENT_CHANGE", eventName: "EVENT_CHANGE",
action: function () { action: function () {
if(self._checkValue(self.getValue())) {
self.fireEvent("EVENT_CHANGE"); self.fireEvent("EVENT_CHANGE");
} }
}
}], }],
ref: function () { ref: function () {
self.dynamicPane = this; self.dynamicPane = this;
@ -88882,6 +88884,16 @@ BI.shortcut("bi.static_date_pane_card", BI.StaticDatePaneCard);BI.DynamicDatePan
return BI.isNull(value) || BI.isEmptyObject(value) || BI.isEmptyString(value); return BI.isNull(value) || BI.isEmptyObject(value) || BI.isEmptyString(value);
}, },
_checkValue: function (v) {
switch (v.type) {
case BI.DynamicDateCombo.Dynamic:
return BI.isNotEmptyObject(v.value);
case BI.DynamicDateCombo.Static:
default:
return true;
}
},
setValue: function (v) { setValue: function (v) {
v = v || {}; v = v || {};
var type = v.type || BI.DynamicDateCombo.Static; var type = v.type || BI.DynamicDateCombo.Static;
@ -89617,8 +89629,10 @@ BI.shortcut("bi.static_date_time_pane_card", BI.StaticDateTimePaneCard);BI.Dynam
listeners: [{ listeners: [{
eventName: "EVENT_CHANGE", eventName: "EVENT_CHANGE",
action: function () { action: function () {
if(self._checkValue(self.getValue())) {
self.fireEvent("EVENT_CHANGE"); self.fireEvent("EVENT_CHANGE");
} }
}
}], }],
ref: function () { ref: function () {
self.dynamicPane = this; self.dynamicPane = this;
@ -89638,6 +89652,16 @@ BI.shortcut("bi.static_date_time_pane_card", BI.StaticDateTimePaneCard);BI.Dynam
return BI.isNull(value) || BI.isEmptyObject(value) || BI.isEmptyString(value); return BI.isNull(value) || BI.isEmptyObject(value) || BI.isEmptyString(value);
}, },
_checkValue: function (v) {
switch (v.type) {
case BI.DynamicDateCombo.Dynamic:
return BI.isNotEmptyObject(v.value);
case BI.DynamicDateCombo.Static:
default:
return true;
}
},
setValue: function (v) { setValue: function (v) {
v = v || {}; v = v || {};
var type = v.type || BI.DynamicDateTimePane.Static; var type = v.type || BI.DynamicDateTimePane.Static;
@ -90830,7 +90854,10 @@ BI.extend(BI.DynamicDateCard, {
}, { }, {
eventName: BI.DynamicDatePopup.BUTTON_OK_EVENT_CHANGE, eventName: BI.DynamicDatePopup.BUTTON_OK_EVENT_CHANGE,
action: function () { action: function () {
self.setValue(self.popup.getValue()); var value = self.popup.getValue();
if(self._checkValue(value)) {
self.setValue(value);
}
self.combo.hideView(); self.combo.hideView();
self.fireEvent(BI.DynamicDateCombo.EVENT_CONFIRM); self.fireEvent(BI.DynamicDateCombo.EVENT_CONFIRM);
} }
@ -90907,6 +90934,16 @@ BI.extend(BI.DynamicDateCard, {
} }
}, },
_checkValue: function (v) {
switch (v.type) {
case BI.DynamicDateCombo.Dynamic:
return BI.isNotEmptyObject(v.value);
case BI.DynamicDateCombo.Static:
default:
return true;
}
},
setValue: function (v) { setValue: function (v) {
this.storeValue = v; this.storeValue = v;
this.trigger.setValue(v); this.trigger.setValue(v);
@ -91690,7 +91727,10 @@ BI.shortcut("bi.dynamic_date_trigger", BI.DynamicDateTrigger);BI.DynamicDateTime
}, { }, {
eventName: BI.DynamicDateTimePopup.BUTTON_OK_EVENT_CHANGE, eventName: BI.DynamicDateTimePopup.BUTTON_OK_EVENT_CHANGE,
action: function () { action: function () {
self.setValue(self.popup.getValue()); var value = self.popup.getValue();
if(self._checkValue(value)) {
self.setValue(value);
}
self.combo.hideView(); self.combo.hideView();
self.fireEvent(BI.DynamicDateTimeCombo.EVENT_CONFIRM); self.fireEvent(BI.DynamicDateTimeCombo.EVENT_CONFIRM);
} }
@ -91767,6 +91807,16 @@ BI.shortcut("bi.dynamic_date_trigger", BI.DynamicDateTrigger);BI.DynamicDateTime
} }
}, },
_checkValue: function (v) {
switch (v.type) {
case BI.DynamicDateCombo.Dynamic:
return BI.isNotEmptyObject(v.value);
case BI.DynamicDateCombo.Static:
default:
return true;
}
},
setValue: function (v) { setValue: function (v) {
this.storeValue = v; this.storeValue = v;
this.trigger.setValue(v); this.trigger.setValue(v);

30
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

54
dist/fineui.js vendored

@ -89104,8 +89104,10 @@ BI.shortcut("bi.static_date_pane_card", BI.StaticDatePaneCard);BI.DynamicDatePan
listeners: [{ listeners: [{
eventName: "EVENT_CHANGE", eventName: "EVENT_CHANGE",
action: function () { action: function () {
if(self._checkValue(self.getValue())) {
self.fireEvent("EVENT_CHANGE"); self.fireEvent("EVENT_CHANGE");
} }
}
}], }],
ref: function () { ref: function () {
self.dynamicPane = this; self.dynamicPane = this;
@ -89125,6 +89127,16 @@ BI.shortcut("bi.static_date_pane_card", BI.StaticDatePaneCard);BI.DynamicDatePan
return BI.isNull(value) || BI.isEmptyObject(value) || BI.isEmptyString(value); return BI.isNull(value) || BI.isEmptyObject(value) || BI.isEmptyString(value);
}, },
_checkValue: function (v) {
switch (v.type) {
case BI.DynamicDateCombo.Dynamic:
return BI.isNotEmptyObject(v.value);
case BI.DynamicDateCombo.Static:
default:
return true;
}
},
setValue: function (v) { setValue: function (v) {
v = v || {}; v = v || {};
var type = v.type || BI.DynamicDateCombo.Static; var type = v.type || BI.DynamicDateCombo.Static;
@ -89860,8 +89872,10 @@ BI.shortcut("bi.static_date_time_pane_card", BI.StaticDateTimePaneCard);BI.Dynam
listeners: [{ listeners: [{
eventName: "EVENT_CHANGE", eventName: "EVENT_CHANGE",
action: function () { action: function () {
if(self._checkValue(self.getValue())) {
self.fireEvent("EVENT_CHANGE"); self.fireEvent("EVENT_CHANGE");
} }
}
}], }],
ref: function () { ref: function () {
self.dynamicPane = this; self.dynamicPane = this;
@ -89881,6 +89895,16 @@ BI.shortcut("bi.static_date_time_pane_card", BI.StaticDateTimePaneCard);BI.Dynam
return BI.isNull(value) || BI.isEmptyObject(value) || BI.isEmptyString(value); return BI.isNull(value) || BI.isEmptyObject(value) || BI.isEmptyString(value);
}, },
_checkValue: function (v) {
switch (v.type) {
case BI.DynamicDateCombo.Dynamic:
return BI.isNotEmptyObject(v.value);
case BI.DynamicDateCombo.Static:
default:
return true;
}
},
setValue: function (v) { setValue: function (v) {
v = v || {}; v = v || {};
var type = v.type || BI.DynamicDateTimePane.Static; var type = v.type || BI.DynamicDateTimePane.Static;
@ -91073,7 +91097,10 @@ BI.extend(BI.DynamicDateCard, {
}, { }, {
eventName: BI.DynamicDatePopup.BUTTON_OK_EVENT_CHANGE, eventName: BI.DynamicDatePopup.BUTTON_OK_EVENT_CHANGE,
action: function () { action: function () {
self.setValue(self.popup.getValue()); var value = self.popup.getValue();
if(self._checkValue(value)) {
self.setValue(value);
}
self.combo.hideView(); self.combo.hideView();
self.fireEvent(BI.DynamicDateCombo.EVENT_CONFIRM); self.fireEvent(BI.DynamicDateCombo.EVENT_CONFIRM);
} }
@ -91150,6 +91177,16 @@ BI.extend(BI.DynamicDateCard, {
} }
}, },
_checkValue: function (v) {
switch (v.type) {
case BI.DynamicDateCombo.Dynamic:
return BI.isNotEmptyObject(v.value);
case BI.DynamicDateCombo.Static:
default:
return true;
}
},
setValue: function (v) { setValue: function (v) {
this.storeValue = v; this.storeValue = v;
this.trigger.setValue(v); this.trigger.setValue(v);
@ -91933,7 +91970,10 @@ BI.shortcut("bi.dynamic_date_trigger", BI.DynamicDateTrigger);BI.DynamicDateTime
}, { }, {
eventName: BI.DynamicDateTimePopup.BUTTON_OK_EVENT_CHANGE, eventName: BI.DynamicDateTimePopup.BUTTON_OK_EVENT_CHANGE,
action: function () { action: function () {
self.setValue(self.popup.getValue()); var value = self.popup.getValue();
if(self._checkValue(value)) {
self.setValue(value);
}
self.combo.hideView(); self.combo.hideView();
self.fireEvent(BI.DynamicDateTimeCombo.EVENT_CONFIRM); self.fireEvent(BI.DynamicDateTimeCombo.EVENT_CONFIRM);
} }
@ -92010,6 +92050,16 @@ BI.shortcut("bi.dynamic_date_trigger", BI.DynamicDateTrigger);BI.DynamicDateTime
} }
}, },
_checkValue: function (v) {
switch (v.type) {
case BI.DynamicDateCombo.Dynamic:
return BI.isNotEmptyObject(v.value);
case BI.DynamicDateCombo.Static:
default:
return true;
}
},
setValue: function (v) { setValue: function (v) {
this.storeValue = v; this.storeValue = v;
this.trigger.setValue(v); this.trigger.setValue(v);

30
dist/fineui.min.js vendored

File diff suppressed because one or more lines are too long

54
dist/widget.js vendored

@ -1294,8 +1294,10 @@ BI.shortcut("bi.static_date_pane_card", BI.StaticDatePaneCard);BI.DynamicDatePan
listeners: [{ listeners: [{
eventName: "EVENT_CHANGE", eventName: "EVENT_CHANGE",
action: function () { action: function () {
if(self._checkValue(self.getValue())) {
self.fireEvent("EVENT_CHANGE"); self.fireEvent("EVENT_CHANGE");
} }
}
}], }],
ref: function () { ref: function () {
self.dynamicPane = this; self.dynamicPane = this;
@ -1315,6 +1317,16 @@ BI.shortcut("bi.static_date_pane_card", BI.StaticDatePaneCard);BI.DynamicDatePan
return BI.isNull(value) || BI.isEmptyObject(value) || BI.isEmptyString(value); return BI.isNull(value) || BI.isEmptyObject(value) || BI.isEmptyString(value);
}, },
_checkValue: function (v) {
switch (v.type) {
case BI.DynamicDateCombo.Dynamic:
return BI.isNotEmptyObject(v.value);
case BI.DynamicDateCombo.Static:
default:
return true;
}
},
setValue: function (v) { setValue: function (v) {
v = v || {}; v = v || {};
var type = v.type || BI.DynamicDateCombo.Static; var type = v.type || BI.DynamicDateCombo.Static;
@ -2050,8 +2062,10 @@ BI.shortcut("bi.static_date_time_pane_card", BI.StaticDateTimePaneCard);BI.Dynam
listeners: [{ listeners: [{
eventName: "EVENT_CHANGE", eventName: "EVENT_CHANGE",
action: function () { action: function () {
if(self._checkValue(self.getValue())) {
self.fireEvent("EVENT_CHANGE"); self.fireEvent("EVENT_CHANGE");
} }
}
}], }],
ref: function () { ref: function () {
self.dynamicPane = this; self.dynamicPane = this;
@ -2071,6 +2085,16 @@ BI.shortcut("bi.static_date_time_pane_card", BI.StaticDateTimePaneCard);BI.Dynam
return BI.isNull(value) || BI.isEmptyObject(value) || BI.isEmptyString(value); return BI.isNull(value) || BI.isEmptyObject(value) || BI.isEmptyString(value);
}, },
_checkValue: function (v) {
switch (v.type) {
case BI.DynamicDateCombo.Dynamic:
return BI.isNotEmptyObject(v.value);
case BI.DynamicDateCombo.Static:
default:
return true;
}
},
setValue: function (v) { setValue: function (v) {
v = v || {}; v = v || {};
var type = v.type || BI.DynamicDateTimePane.Static; var type = v.type || BI.DynamicDateTimePane.Static;
@ -3263,7 +3287,10 @@ BI.extend(BI.DynamicDateCard, {
}, { }, {
eventName: BI.DynamicDatePopup.BUTTON_OK_EVENT_CHANGE, eventName: BI.DynamicDatePopup.BUTTON_OK_EVENT_CHANGE,
action: function () { action: function () {
self.setValue(self.popup.getValue()); var value = self.popup.getValue();
if(self._checkValue(value)) {
self.setValue(value);
}
self.combo.hideView(); self.combo.hideView();
self.fireEvent(BI.DynamicDateCombo.EVENT_CONFIRM); self.fireEvent(BI.DynamicDateCombo.EVENT_CONFIRM);
} }
@ -3340,6 +3367,16 @@ BI.extend(BI.DynamicDateCard, {
} }
}, },
_checkValue: function (v) {
switch (v.type) {
case BI.DynamicDateCombo.Dynamic:
return BI.isNotEmptyObject(v.value);
case BI.DynamicDateCombo.Static:
default:
return true;
}
},
setValue: function (v) { setValue: function (v) {
this.storeValue = v; this.storeValue = v;
this.trigger.setValue(v); this.trigger.setValue(v);
@ -4123,7 +4160,10 @@ BI.shortcut("bi.dynamic_date_trigger", BI.DynamicDateTrigger);BI.DynamicDateTime
}, { }, {
eventName: BI.DynamicDateTimePopup.BUTTON_OK_EVENT_CHANGE, eventName: BI.DynamicDateTimePopup.BUTTON_OK_EVENT_CHANGE,
action: function () { action: function () {
self.setValue(self.popup.getValue()); var value = self.popup.getValue();
if(self._checkValue(value)) {
self.setValue(value);
}
self.combo.hideView(); self.combo.hideView();
self.fireEvent(BI.DynamicDateTimeCombo.EVENT_CONFIRM); self.fireEvent(BI.DynamicDateTimeCombo.EVENT_CONFIRM);
} }
@ -4200,6 +4240,16 @@ BI.shortcut("bi.dynamic_date_trigger", BI.DynamicDateTrigger);BI.DynamicDateTime
} }
}, },
_checkValue: function (v) {
switch (v.type) {
case BI.DynamicDateCombo.Dynamic:
return BI.isNotEmptyObject(v.value);
case BI.DynamicDateCombo.Static:
default:
return true;
}
},
setValue: function (v) { setValue: function (v) {
this.storeValue = v; this.storeValue = v;
this.trigger.setValue(v); this.trigger.setValue(v);

12
src/widget/datepane/datepane.js

@ -79,8 +79,10 @@ BI.DynamicDatePane = BI.inherit(BI.Widget, {
listeners: [{ listeners: [{
eventName: "EVENT_CHANGE", eventName: "EVENT_CHANGE",
action: function () { action: function () {
if(self._checkValue(self.getValue())) {
self.fireEvent("EVENT_CHANGE"); self.fireEvent("EVENT_CHANGE");
} }
}
}], }],
ref: function () { ref: function () {
self.dynamicPane = this; self.dynamicPane = this;
@ -100,6 +102,16 @@ BI.DynamicDatePane = BI.inherit(BI.Widget, {
return BI.isNull(value) || BI.isEmptyObject(value) || BI.isEmptyString(value); return BI.isNull(value) || BI.isEmptyObject(value) || BI.isEmptyString(value);
}, },
_checkValue: function (v) {
switch (v.type) {
case BI.DynamicDateCombo.Dynamic:
return BI.isNotEmptyObject(v.value);
case BI.DynamicDateCombo.Static:
default:
return true;
}
},
setValue: function (v) { setValue: function (v) {
v = v || {}; v = v || {};
var type = v.type || BI.DynamicDateCombo.Static; var type = v.type || BI.DynamicDateCombo.Static;

12
src/widget/datetimepane/datetimepane.js

@ -79,8 +79,10 @@ BI.DynamicDateTimePane = BI.inherit(BI.Widget, {
listeners: [{ listeners: [{
eventName: "EVENT_CHANGE", eventName: "EVENT_CHANGE",
action: function () { action: function () {
if(self._checkValue(self.getValue())) {
self.fireEvent("EVENT_CHANGE"); self.fireEvent("EVENT_CHANGE");
} }
}
}], }],
ref: function () { ref: function () {
self.dynamicPane = this; self.dynamicPane = this;
@ -100,6 +102,16 @@ BI.DynamicDateTimePane = BI.inherit(BI.Widget, {
return BI.isNull(value) || BI.isEmptyObject(value) || BI.isEmptyString(value); return BI.isNull(value) || BI.isEmptyObject(value) || BI.isEmptyString(value);
}, },
_checkValue: function (v) {
switch (v.type) {
case BI.DynamicDateCombo.Dynamic:
return BI.isNotEmptyObject(v.value);
case BI.DynamicDateCombo.Static:
default:
return true;
}
},
setValue: function (v) { setValue: function (v) {
v = v || {}; v = v || {};
var type = v.type || BI.DynamicDateTimePane.Static; var type = v.type || BI.DynamicDateTimePane.Static;

15
src/widget/dynamicdate/dynamicdate.combo.js

@ -156,7 +156,10 @@ BI.DynamicDateCombo = BI.inherit(BI.Single, {
}, { }, {
eventName: BI.DynamicDatePopup.BUTTON_OK_EVENT_CHANGE, eventName: BI.DynamicDatePopup.BUTTON_OK_EVENT_CHANGE,
action: function () { action: function () {
self.setValue(self.popup.getValue()); var value = self.popup.getValue();
if(self._checkValue(value)) {
self.setValue(value);
}
self.combo.hideView(); self.combo.hideView();
self.fireEvent(BI.DynamicDateCombo.EVENT_CONFIRM); self.fireEvent(BI.DynamicDateCombo.EVENT_CONFIRM);
} }
@ -233,6 +236,16 @@ BI.DynamicDateCombo = BI.inherit(BI.Single, {
} }
}, },
_checkValue: function (v) {
switch (v.type) {
case BI.DynamicDateCombo.Dynamic:
return BI.isNotEmptyObject(v.value);
case BI.DynamicDateCombo.Static:
default:
return true;
}
},
setValue: function (v) { setValue: function (v) {
this.storeValue = v; this.storeValue = v;
this.trigger.setValue(v); this.trigger.setValue(v);

15
src/widget/dynamicdatetime/dynamicdatetime.combo.js

@ -159,7 +159,10 @@ BI.DynamicDateTimeCombo = BI.inherit(BI.Single, {
}, { }, {
eventName: BI.DynamicDateTimePopup.BUTTON_OK_EVENT_CHANGE, eventName: BI.DynamicDateTimePopup.BUTTON_OK_EVENT_CHANGE,
action: function () { action: function () {
self.setValue(self.popup.getValue()); var value = self.popup.getValue();
if(self._checkValue(value)) {
self.setValue(value);
}
self.combo.hideView(); self.combo.hideView();
self.fireEvent(BI.DynamicDateTimeCombo.EVENT_CONFIRM); self.fireEvent(BI.DynamicDateTimeCombo.EVENT_CONFIRM);
} }
@ -236,6 +239,16 @@ BI.DynamicDateTimeCombo = BI.inherit(BI.Single, {
} }
}, },
_checkValue: function (v) {
switch (v.type) {
case BI.DynamicDateCombo.Dynamic:
return BI.isNotEmptyObject(v.value);
case BI.DynamicDateCombo.Static:
default:
return true;
}
},
setValue: function (v) { setValue: function (v) {
this.storeValue = v; this.storeValue = v;
this.trigger.setValue(v); this.trigger.setValue(v);

Loading…
Cancel
Save