Browse Source

auto upgrade version to 2.0.20210119093226

es6
data 4 years ago
parent
commit
78bf988c96
  1. 4
      dist/2.0/fineui.css
  2. 4
      dist/2.0/fineui.ie.min.js
  3. 2
      dist/2.0/fineui.ie.min.js.map
  4. 138
      dist/2.0/fineui.js
  5. 2
      dist/2.0/fineui.js.map
  6. 4
      dist/2.0/fineui.min.css
  7. 4
      dist/2.0/fineui.min.js
  8. 2
      dist/2.0/fineui.min.js.map
  9. 4
      dist/2.0/fineui_without_normalize.css
  10. 4
      dist/2.0/fineui_without_normalize.min.css
  11. 4
      dist/core.css
  12. 138
      dist/core.js
  13. 2
      dist/core.js.map
  14. 4
      dist/demo.css
  15. 138
      dist/demo.js
  16. 2
      dist/demo.js.map
  17. 4
      dist/fineui.css
  18. 4
      dist/fineui.ie.min.js
  19. 2
      dist/fineui.ie.min.js.map
  20. 138
      dist/fineui.js
  21. 2
      dist/fineui.js.map
  22. 4
      dist/fineui.min.css
  23. 4
      dist/fineui.min.js
  24. 2
      dist/fineui.min.js.map
  25. 138
      dist/fineui_without_jquery_polyfill.js
  26. 2
      dist/fineui_without_jquery_polyfill.js.map
  27. 2
      dist/font.css
  28. 2
      dist/resource.css
  29. 2
      dist/utils.js
  30. 2
      dist/utils.min.js
  31. 2
      package.json

4
dist/2.0/fineui.css vendored

File diff suppressed because one or more lines are too long

4
dist/2.0/fineui.ie.min.js vendored

File diff suppressed because one or more lines are too long

2
dist/2.0/fineui.ie.min.js.map vendored

File diff suppressed because one or more lines are too long

138
dist/2.0/fineui.js vendored

@ -1,4 +1,4 @@
/*! time: 2021-1-18 14:00:24 */ /*! time: 2021-1-19 09:30:24 */
/******/ (function(modules) { // webpackBootstrap /******/ (function(modules) { // webpackBootstrap
/******/ // The module cache /******/ // The module cache
/******/ var installedModules = {}; /******/ var installedModules = {};
@ -38535,7 +38535,7 @@ BI.shortcut("bi.linear_segment_button", BI.LinearSegmentButton);
BI.LinearSegment = BI.inherit(BI.Widget, { BI.LinearSegment = BI.inherit(BI.Widget, {
props: { props: {
baseCls: "bi-linear-segment bi-split-bottom", baseCls: "bi-linear-segment",
items: [], items: [],
layouts: [{ layouts: [{
type: "bi.center" type: "bi.center"
@ -41840,14 +41840,12 @@ BI.shortcut("bi.year_picker", BI.YearPicker);
* @extends BI.Widget * @extends BI.Widget
*/ */
BI.DateCalendarPopup = BI.inherit(BI.Widget, { BI.DateCalendarPopup = BI.inherit(BI.Widget, {
_defaultConfig: function () {
var conf = BI.DateCalendarPopup.superclass._defaultConfig.apply(this, arguments); props: {
return BI.extend(conf, {
baseCls: "bi-date-calendar-popup", baseCls: "bi-date-calendar-popup",
min: "1900-01-01", // 最小日期 min: "1900-01-01", // 最小日期
max: "2099-12-31", // 最大日期 max: "2099-12-31", // 最大日期
selectedTime: null selectedTime: null
});
}, },
_createNav: function (v) { _createNav: function (v) {
@ -41867,8 +41865,7 @@ BI.DateCalendarPopup = BI.inherit(BI.Widget, {
return calendar; return calendar;
}, },
_init: function () { render: function () {
BI.DateCalendarPopup.superclass._init.apply(this, arguments);
var self = this, var self = this,
o = this.options; o = this.options;
this.today = BI.getDate(); this.today = BI.getDate();
@ -41922,14 +41919,16 @@ BI.DateCalendarPopup = BI.inherit(BI.Widget, {
self.fireEvent(BI.DateCalendarPopup.EVENT_CHANGE); self.fireEvent(BI.DateCalendarPopup.EVENT_CHANGE);
}); });
BI.createWidget({ return [{
type: "bi.absolute", type: "bi.vertical",
element: this,
items: [{ items: [{
el: this.calendar, el: this.calendar,
left: 5, hgap: 5,
right: 5 bgap: 12
}]
}, { }, {
type: "bi.absolute",
items: [{
el: { el: {
type: "bi.layout", type: "bi.layout",
cls: "bi-split-top" cls: "bi-split-top"
@ -41939,7 +41938,7 @@ BI.DateCalendarPopup = BI.inherit(BI.Widget, {
left: 0, left: 0,
right: 0 right: 0
}] }]
}); }]
}, },
_checkMin: function () { _checkMin: function () {
@ -44564,7 +44563,8 @@ BI.DynamicDateCombo = BI.inherit(BI.Single, {
minDate: "1900-01-01", minDate: "1900-01-01",
maxDate: "2099-12-31", maxDate: "2099-12-31",
format: "", format: "",
allowEdit: true allowEdit: true,
supportDynamic: true,
}, },
@ -44686,6 +44686,7 @@ BI.DynamicDateCombo = BI.inherit(BI.Single, {
popup: { popup: {
el: { el: {
type: "bi.dynamic_date_popup", type: "bi.dynamic_date_popup",
supportDynamic: opts.supportDynamic,
behaviors: opts.behaviors, behaviors: opts.behaviors,
min: opts.minDate, min: opts.minDate,
max: opts.maxDate, max: opts.maxDate,
@ -45025,7 +45026,7 @@ BI.DynamicDatePopup = BI.inherit(BI.Widget, {
props: { props: {
baseCls: "bi-dynamic-date-popup", baseCls: "bi-dynamic-date-popup",
width: 248, width: 248,
height: 344 supportDynamic: true,
}, },
_init: function () { _init: function () {
@ -45034,7 +45035,7 @@ BI.DynamicDatePopup = BI.inherit(BI.Widget, {
this.storeValue = {type: BI.DynamicDateCombo.Static}; this.storeValue = {type: BI.DynamicDateCombo.Static};
BI.createWidget({ BI.createWidget({
element: this, element: this,
type: "bi.vtape", type: "bi.vertical",
items: [{ items: [{
el: this._getTabJson() el: this._getTabJson()
}, { }, {
@ -45079,9 +45080,9 @@ BI.DynamicDatePopup = BI.inherit(BI.Widget, {
self.fireEvent(BI.DynamicDatePopup.BUTTON_OK_EVENT_CHANGE); self.fireEvent(BI.DynamicDatePopup.BUTTON_OK_EVENT_CHANGE);
} }
}] }]
}]] }]],
},
height: 24 height: 24
},
}] }]
}); });
this.setValue(opts.value); this.setValue(opts.value);
@ -45091,11 +45092,15 @@ BI.DynamicDatePopup = BI.inherit(BI.Widget, {
var self = this, o = this.options; var self = this, o = this.options;
return { return {
type: "bi.tab", type: "bi.tab",
logic: {
dynamic: true
},
ref: function () { ref: function () {
self.dateTab = this; self.dateTab = this;
}, },
tab: { tab: {
type: "bi.linear_segment", type: "bi.linear_segment",
invisible: !o.supportDynamic,
cls: "bi-split-bottom", cls: "bi-split-bottom",
height: this.constants.tabHeight, height: this.constants.tabHeight,
items: BI.createItems([{ items: BI.createItems([{
@ -45113,6 +45118,7 @@ BI.DynamicDatePopup = BI.inherit(BI.Widget, {
case BI.DynamicDateCombo.Dynamic: case BI.DynamicDateCombo.Dynamic:
return { return {
type: "bi.dynamic_date_card", type: "bi.dynamic_date_card",
cls: "dynamic-date-pane",
listeners: [{ listeners: [{
eventName: "EVENT_CHANGE", eventName: "EVENT_CHANGE",
action: function () { action: function () {
@ -45634,7 +45640,8 @@ BI.DynamicDateTimeCombo = BI.inherit(BI.Single, {
minDate: "1900-01-01", minDate: "1900-01-01",
maxDate: "2099-12-31", maxDate: "2099-12-31",
format: "", format: "",
allowEdit: true allowEdit: true,
supportDynamic: true
}, },
@ -45761,6 +45768,7 @@ BI.DynamicDateTimeCombo = BI.inherit(BI.Single, {
popup: { popup: {
el: { el: {
type: "bi.dynamic_date_time_popup", type: "bi.dynamic_date_time_popup",
supportDynamic: opts.supportDynamic,
behaviors: opts.behaviors, behaviors: opts.behaviors,
min: opts.minDate, min: opts.minDate,
max: opts.maxDate, max: opts.maxDate,
@ -45964,7 +45972,7 @@ BI.DynamicDateTimePopup = BI.inherit(BI.Widget, {
props: { props: {
baseCls: "bi-dynamic-date-time-popup", baseCls: "bi-dynamic-date-time-popup",
width: 248, width: 248,
height: 385 supportDynamic: true,
}, },
_init: function () { _init: function () {
@ -45973,7 +45981,7 @@ BI.DynamicDateTimePopup = BI.inherit(BI.Widget, {
this.storeValue = {type: BI.DynamicDateCombo.Static}; this.storeValue = {type: BI.DynamicDateCombo.Static};
BI.createWidget({ BI.createWidget({
element: this, element: this,
type: "bi.vtape", type: "bi.vertical",
items: [{ items: [{
el: this._getTabJson() el: this._getTabJson()
}, { }, {
@ -46018,9 +46026,9 @@ BI.DynamicDateTimePopup = BI.inherit(BI.Widget, {
self.fireEvent(BI.DynamicDateTimePopup.BUTTON_OK_EVENT_CHANGE); self.fireEvent(BI.DynamicDateTimePopup.BUTTON_OK_EVENT_CHANGE);
} }
}] }]
}]] }]],
},
height: 24 height: 24
}
}] }]
}); });
this.setValue(opts.value); this.setValue(opts.value);
@ -46030,11 +46038,15 @@ BI.DynamicDateTimePopup = BI.inherit(BI.Widget, {
var self = this, o = this.options; var self = this, o = this.options;
return { return {
type: "bi.tab", type: "bi.tab",
logic: {
dynamic: true
},
ref: function () { ref: function () {
self.dateTab = this; self.dateTab = this;
}, },
tab: { tab: {
type: "bi.linear_segment", type: "bi.linear_segment",
invisible: !o.supportDynamic,
cls: "bi-split-bottom", cls: "bi-split-bottom",
height: this.constants.tabHeight, height: this.constants.tabHeight,
items: BI.createItems([{ items: BI.createItems([{
@ -46052,6 +46064,7 @@ BI.DynamicDateTimePopup = BI.inherit(BI.Widget, {
case BI.DynamicDateCombo.Dynamic: case BI.DynamicDateCombo.Dynamic:
return { return {
type: "bi.dynamic_date_card", type: "bi.dynamic_date_card",
cls: "dynamic-date-pane",
listeners: [{ listeners: [{
eventName: "EVENT_CHANGE", eventName: "EVENT_CHANGE",
action: function () { action: function () {
@ -46067,7 +46080,7 @@ BI.DynamicDateTimePopup = BI.inherit(BI.Widget, {
case BI.DynamicDateCombo.Static: case BI.DynamicDateCombo.Static:
default: default:
return { return {
type: "bi.vtape", type: "bi.vertical",
items: [{ items: [{
type: "bi.date_calendar_popup", type: "bi.date_calendar_popup",
behaviors: o.behaviors, behaviors: o.behaviors,
@ -46088,9 +46101,9 @@ BI.DynamicDateTimePopup = BI.inherit(BI.Widget, {
cls: "bi-split-top", cls: "bi-split-top",
ref: function () { ref: function () {
self.timeSelect = this; self.timeSelect = this;
}
}, },
height: 40 height: 40
}
}] }]
}; };
} }
@ -65669,7 +65682,8 @@ BI.DateInterval = BI.inherit(BI.Single, {
extraCls: "bi-date-interval", extraCls: "bi-date-interval",
minDate: "1900-01-01", minDate: "1900-01-01",
maxDate: "2099-12-31", maxDate: "2099-12-31",
height: 24 height: 24,
supportDynamic: true,
}); });
}, },
_init: function () { _init: function () {
@ -65722,6 +65736,7 @@ BI.DateInterval = BI.inherit(BI.Single, {
var self = this, o = this.options; var self = this, o = this.options;
var combo = BI.createWidget({ var combo = BI.createWidget({
type: "bi.dynamic_date_combo", type: "bi.dynamic_date_combo",
supportDynamic: o.supportDynamic,
minDate: o.minDate, minDate: o.minDate,
maxDate: o.maxDate, maxDate: o.maxDate,
behaviors: o.behaviors, behaviors: o.behaviors,
@ -65882,7 +65897,8 @@ BI.TimeInterval = BI.inherit(BI.Single, {
extraCls: "bi-time-interval", extraCls: "bi-time-interval",
minDate: "1900-01-01", minDate: "1900-01-01",
maxDate: "2099-12-31", maxDate: "2099-12-31",
height: 24 height: 24,
supportDynamic: true
}); });
}, },
_init: function () { _init: function () {
@ -65935,6 +65951,7 @@ BI.TimeInterval = BI.inherit(BI.Single, {
var self = this, o = this.options; var self = this, o = this.options;
var combo = BI.createWidget({ var combo = BI.createWidget({
type: "bi.dynamic_date_time_combo", type: "bi.dynamic_date_time_combo",
supportDynamic: o.supportDynamic,
minDate: o.minDate, minDate: o.minDate,
maxDate: o.maxDate, maxDate: o.maxDate,
behaviors: o.behaviors, behaviors: o.behaviors,
@ -66497,7 +66514,8 @@ BI.DynamicYearCombo = BI.inherit(BI.Widget, {
behaviors: {}, behaviors: {},
minDate: "1900-01-01", // 最小日期 minDate: "1900-01-01", // 最小日期
maxDate: "2099-12-31", // 最大日期 maxDate: "2099-12-31", // 最大日期
height: 22 height: 22,
supportDynamic: true,
}, },
_init: function () { _init: function () {
@ -66554,6 +66572,7 @@ BI.DynamicYearCombo = BI.inherit(BI.Widget, {
stopPropagation: false, stopPropagation: false,
el: { el: {
type: "bi.dynamic_year_popup", type: "bi.dynamic_year_popup",
supportDynamic: o.supportDynamic,
ref: function () { ref: function () {
self.popup = this; self.popup = this;
}, },
@ -66699,14 +66718,14 @@ BI.DynamicYearPopup = BI.inherit(BI.Widget, {
min: "1900-01-01", // 最小日期 min: "1900-01-01", // 最小日期
max: "2099-12-31", // 最大日期, max: "2099-12-31", // 最大日期,
width: 180, width: 180,
height: 240 supportDynamic: true,
}, },
render: function () { render: function () {
var self = this, opts = this.options, c = this.constants; var self = this, opts = this.options, c = this.constants;
this.storeValue = {type: BI.DynamicYearCombo.Static}; this.storeValue = {type: BI.DynamicYearCombo.Static};
return { return {
type: "bi.vtape", type: "bi.vertical",
items: [{ items: [{
el: this._getTabJson() el: this._getTabJson()
}, { }, {
@ -66751,9 +66770,9 @@ BI.DynamicYearPopup = BI.inherit(BI.Widget, {
self.fireEvent(BI.DynamicYearPopup.BUTTON_OK_EVENT_CHANGE); self.fireEvent(BI.DynamicYearPopup.BUTTON_OK_EVENT_CHANGE);
} }
}] }]
}]] }]],
},
height: 24 height: 24
},
}] }]
}; };
}, },
@ -66774,12 +66793,15 @@ BI.DynamicYearPopup = BI.inherit(BI.Widget, {
var self = this, o = this.options; var self = this, o = this.options;
return { return {
type: "bi.tab", type: "bi.tab",
logic: {
dynamic: true
},
ref: function () { ref: function () {
self.dateTab = this; self.dateTab = this;
}, },
tab: { tab: {
type: "bi.linear_segment", type: "bi.linear_segment",
cls: "bi-split-bottom", invisible: !o.supportDynamic,
height: this.constants.tabHeight, height: this.constants.tabHeight,
items: BI.createItems([{ items: BI.createItems([{
text: BI.i18nText("BI-Basic_Year_Fen"), text: BI.i18nText("BI-Basic_Year_Fen"),
@ -66796,6 +66818,7 @@ BI.DynamicYearPopup = BI.inherit(BI.Widget, {
case BI.DynamicYearCombo.Dynamic: case BI.DynamicYearCombo.Dynamic:
return { return {
type: "bi.dynamic_year_card", type: "bi.dynamic_year_card",
cls: "dynamic-year-pane",
min: self.options.min, min: self.options.min,
max: self.options.max, max: self.options.max,
listeners: [{ listeners: [{
@ -67278,6 +67301,7 @@ BI.StaticYearMonthCard = BI.inherit(BI.Widget, {
type: "bi.vertical", type: "bi.vertical",
items: [{ items: [{
type: "bi.year_picker", type: "bi.year_picker",
cls: "bi-split-bottom",
min: o.min, min: o.min,
max: o.max, max: o.max,
ref: function () { ref: function () {
@ -67297,8 +67321,8 @@ BI.StaticYearMonthCard = BI.inherit(BI.Widget, {
} }
}] }]
}, { }, {
el: {
type: "bi.button_group", type: "bi.button_group",
cls: "bi-split-top",
behaviors: o.behaviors, behaviors: o.behaviors,
ref: function () { ref: function () {
self.month = this; self.month = this;
@ -67325,6 +67349,8 @@ BI.StaticYearMonthCard = BI.inherit(BI.Widget, {
self.fireEvent(BI.StaticYearMonthCard.EVENT_CHANGE); self.fireEvent(BI.StaticYearMonthCard.EVENT_CHANGE);
} }
}] }]
},
vgap: 5
}] }]
}; };
}, },
@ -67405,7 +67431,8 @@ BI.DynamicYearMonthCombo = BI.inherit(BI.Single, {
behaviors: {}, behaviors: {},
minDate: "1900-01-01", // 最小日期 minDate: "1900-01-01", // 最小日期
maxDate: "2099-12-31", // 最大日期 maxDate: "2099-12-31", // 最大日期
height: 22 height: 22,
supportDynamic: true
}, },
_init: function () { _init: function () {
@ -67466,6 +67493,7 @@ BI.DynamicYearMonthCombo = BI.inherit(BI.Single, {
stopPropagation: false, stopPropagation: false,
el: { el: {
type: "bi.dynamic_year_month_popup", type: "bi.dynamic_year_month_popup",
supportDynamic: o.supportDynamic,
ref: function () { ref: function () {
self.popup = this; self.popup = this;
}, },
@ -67626,14 +67654,14 @@ BI.DynamicYearMonthPopup = BI.inherit(BI.Widget, {
min: "1900-01-01", // 最小日期 min: "1900-01-01", // 最小日期
max: "2099-12-31", // 最大日期, max: "2099-12-31", // 最大日期,
width: 180, width: 180,
height: 240 supportDynamic: true,
}, },
render: function () { render: function () {
var self = this, opts = this.options, c = this.constants; var self = this, opts = this.options, c = this.constants;
this.storeValue = {type: BI.DynamicYearMonthCombo.Static}; this.storeValue = {type: BI.DynamicYearMonthCombo.Static};
return { return {
type: "bi.vtape", type: "bi.vertical",
items: [{ items: [{
el: this._getTabJson() el: this._getTabJson()
}, { }, {
@ -67678,9 +67706,9 @@ BI.DynamicYearMonthPopup = BI.inherit(BI.Widget, {
self.fireEvent(BI.DynamicYearMonthPopup.BUTTON_OK_EVENT_CHANGE); self.fireEvent(BI.DynamicYearMonthPopup.BUTTON_OK_EVENT_CHANGE);
} }
}] }]
}]] }]],
},
height: 24 height: 24
},
}] }]
}; };
}, },
@ -67701,12 +67729,16 @@ BI.DynamicYearMonthPopup = BI.inherit(BI.Widget, {
var self = this, o = this.options; var self = this, o = this.options;
return { return {
type: "bi.tab", type: "bi.tab",
logic: {
dynamic: true
},
ref: function () { ref: function () {
self.dateTab = this; self.dateTab = this;
}, },
tab: { tab: {
type: "bi.linear_segment", type: "bi.linear_segment",
cls: "bi-split-bottom", cls: "bi-split-bottom",
invisible: !o.supportDynamic,
height: this.constants.tabHeight, height: this.constants.tabHeight,
items: BI.createItems([{ items: BI.createItems([{
text: BI.i18nText("BI-Basic_Year_Month"), text: BI.i18nText("BI-Basic_Year_Month"),
@ -67723,6 +67755,7 @@ BI.DynamicYearMonthPopup = BI.inherit(BI.Widget, {
case BI.DynamicYearCombo.Dynamic: case BI.DynamicYearCombo.Dynamic:
return { return {
type: "bi.dynamic_year_month_card", type: "bi.dynamic_year_month_card",
cls: "dynamic-year-month-pane",
min: self.options.min, min: self.options.min,
max: self.options.max, max: self.options.max,
listeners: [{ listeners: [{
@ -68127,7 +68160,8 @@ BI.YearMonthInterval = BI.inherit(BI.Single, {
props: { props: {
extraCls: "bi-year-month-interval", extraCls: "bi-year-month-interval",
minDate: "1900-01-01", minDate: "1900-01-01",
maxDate: "2099-12-31" maxDate: "2099-12-31",
supportDynamic: true,
}, },
_init: function () { _init: function () {
@ -68181,6 +68215,7 @@ BI.YearMonthInterval = BI.inherit(BI.Single, {
var self = this, o = this.options; var self = this, o = this.options;
var combo = BI.createWidget({ var combo = BI.createWidget({
type: "bi.dynamic_year_month_combo", type: "bi.dynamic_year_month_combo",
supportDynamic: o.supportDynamic,
minDate: o.minDate, minDate: o.minDate,
maxDate: o.maxDate, maxDate: o.maxDate,
behaviors: o.behaviors, behaviors: o.behaviors,
@ -68506,6 +68541,7 @@ BI.StaticYearQuarterCard = BI.inherit(BI.Widget, {
type: "bi.vertical", type: "bi.vertical",
items: [{ items: [{
type: "bi.year_picker", type: "bi.year_picker",
cls: "bi-split-bottom",
ref: function () { ref: function () {
self.yearPicker = this; self.yearPicker = this;
}, },
@ -68525,6 +68561,7 @@ BI.StaticYearQuarterCard = BI.inherit(BI.Widget, {
} }
}] }]
}, { }, {
el: {
type: "bi.button_group", type: "bi.button_group",
behaviors: o.behaviors, behaviors: o.behaviors,
ref: function () { ref: function () {
@ -68544,6 +68581,8 @@ BI.StaticYearQuarterCard = BI.inherit(BI.Widget, {
self.fireEvent(BI.StaticYearQuarterCard.EVENT_CHANGE); self.fireEvent(BI.StaticYearQuarterCard.EVENT_CHANGE);
} }
}] }]
},
vgap: 5
}] }]
}; };
}, },
@ -68621,7 +68660,8 @@ BI.DynamicYearQuarterCombo = BI.inherit(BI.Widget, {
behaviors: {}, behaviors: {},
minDate: "1900-01-01", // 最小日期 minDate: "1900-01-01", // 最小日期
maxDate: "2099-12-31", // 最大日期 maxDate: "2099-12-31", // 最大日期
height: 22 height: 22,
supportDynamic: true,
}, },
_init: function () { _init: function () {
@ -68677,6 +68717,7 @@ BI.DynamicYearQuarterCombo = BI.inherit(BI.Widget, {
stopPropagation: false, stopPropagation: false,
el: { el: {
type: "bi.dynamic_year_quarter_popup", type: "bi.dynamic_year_quarter_popup",
supportDynamic: o.supportDynamic,
ref: function () { ref: function () {
self.popup = this; self.popup = this;
}, },
@ -68815,14 +68856,14 @@ BI.DynamicYearQuarterPopup = BI.inherit(BI.Widget, {
min: "1900-01-01", // 最小日期 min: "1900-01-01", // 最小日期
max: "2099-12-31", // 最大日期, max: "2099-12-31", // 最大日期,
width: 180, width: 180,
height: 240 supportDynamic: true,
}, },
render: function () { render: function () {
var self = this, opts = this.options, c = this.constants; var self = this, opts = this.options, c = this.constants;
this.storeValue = {type: BI.DynamicYearQuarterCombo.Static}; this.storeValue = {type: BI.DynamicYearQuarterCombo.Static};
return { return {
type: "bi.vtape", type: "bi.vertical",
items: [{ items: [{
el: this._getTabJson() el: this._getTabJson()
}, { }, {
@ -68867,9 +68908,9 @@ BI.DynamicYearQuarterPopup = BI.inherit(BI.Widget, {
self.fireEvent(BI.DynamicYearQuarterPopup.BUTTON_OK_EVENT_CHANGE); self.fireEvent(BI.DynamicYearQuarterPopup.BUTTON_OK_EVENT_CHANGE);
} }
}] }]
}]] }]],
},
height: 24 height: 24
},
}] }]
}; };
}, },
@ -68890,12 +68931,16 @@ BI.DynamicYearQuarterPopup = BI.inherit(BI.Widget, {
var self = this, o = this.options; var self = this, o = this.options;
return { return {
type: "bi.tab", type: "bi.tab",
logic: {
dynamic: true
},
ref: function () { ref: function () {
self.dateTab = this; self.dateTab = this;
}, },
tab: { tab: {
type: "bi.linear_segment", type: "bi.linear_segment",
cls: "bi-split-bottom", cls: "bi-split-bottom",
invisible: !o.supportDynamic,
height: this.constants.tabHeight, height: this.constants.tabHeight,
items: BI.createItems([{ items: BI.createItems([{
text: BI.i18nText("BI-Basic_Year_Quarter"), text: BI.i18nText("BI-Basic_Year_Quarter"),
@ -68912,6 +68957,7 @@ BI.DynamicYearQuarterPopup = BI.inherit(BI.Widget, {
case BI.DynamicYearQuarterCombo.Dynamic: case BI.DynamicYearQuarterCombo.Dynamic:
return { return {
type: "bi.dynamic_year_quarter_card", type: "bi.dynamic_year_quarter_card",
cls: "dynamic-year-quarter-pane",
min: self.options.min, min: self.options.min,
max: self.options.max, max: self.options.max,
listeners: [{ listeners: [{

2
dist/2.0/fineui.js.map vendored

File diff suppressed because one or more lines are too long

4
dist/2.0/fineui.min.css vendored

File diff suppressed because one or more lines are too long

4
dist/2.0/fineui.min.js vendored

File diff suppressed because one or more lines are too long

2
dist/2.0/fineui.min.js.map vendored

File diff suppressed because one or more lines are too long

4
dist/2.0/fineui_without_normalize.css vendored

File diff suppressed because one or more lines are too long

4
dist/2.0/fineui_without_normalize.min.css vendored

File diff suppressed because one or more lines are too long

4
dist/core.css vendored

File diff suppressed because one or more lines are too long

138
dist/core.js vendored

@ -1,4 +1,4 @@
/*! time: 2021-1-18 14:00:24 */ /*! time: 2021-1-19 09:30:24 */
/******/ (function(modules) { // webpackBootstrap /******/ (function(modules) { // webpackBootstrap
/******/ // The module cache /******/ // The module cache
/******/ var installedModules = {}; /******/ var installedModules = {};
@ -38535,7 +38535,7 @@ BI.shortcut("bi.linear_segment_button", BI.LinearSegmentButton);
BI.LinearSegment = BI.inherit(BI.Widget, { BI.LinearSegment = BI.inherit(BI.Widget, {
props: { props: {
baseCls: "bi-linear-segment bi-split-bottom", baseCls: "bi-linear-segment",
items: [], items: [],
layouts: [{ layouts: [{
type: "bi.center" type: "bi.center"
@ -41840,14 +41840,12 @@ BI.shortcut("bi.year_picker", BI.YearPicker);
* @extends BI.Widget * @extends BI.Widget
*/ */
BI.DateCalendarPopup = BI.inherit(BI.Widget, { BI.DateCalendarPopup = BI.inherit(BI.Widget, {
_defaultConfig: function () {
var conf = BI.DateCalendarPopup.superclass._defaultConfig.apply(this, arguments); props: {
return BI.extend(conf, {
baseCls: "bi-date-calendar-popup", baseCls: "bi-date-calendar-popup",
min: "1900-01-01", // 最小日期 min: "1900-01-01", // 最小日期
max: "2099-12-31", // 最大日期 max: "2099-12-31", // 最大日期
selectedTime: null selectedTime: null
});
}, },
_createNav: function (v) { _createNav: function (v) {
@ -41867,8 +41865,7 @@ BI.DateCalendarPopup = BI.inherit(BI.Widget, {
return calendar; return calendar;
}, },
_init: function () { render: function () {
BI.DateCalendarPopup.superclass._init.apply(this, arguments);
var self = this, var self = this,
o = this.options; o = this.options;
this.today = BI.getDate(); this.today = BI.getDate();
@ -41922,14 +41919,16 @@ BI.DateCalendarPopup = BI.inherit(BI.Widget, {
self.fireEvent(BI.DateCalendarPopup.EVENT_CHANGE); self.fireEvent(BI.DateCalendarPopup.EVENT_CHANGE);
}); });
BI.createWidget({ return [{
type: "bi.absolute", type: "bi.vertical",
element: this,
items: [{ items: [{
el: this.calendar, el: this.calendar,
left: 5, hgap: 5,
right: 5 bgap: 12
}]
}, { }, {
type: "bi.absolute",
items: [{
el: { el: {
type: "bi.layout", type: "bi.layout",
cls: "bi-split-top" cls: "bi-split-top"
@ -41939,7 +41938,7 @@ BI.DateCalendarPopup = BI.inherit(BI.Widget, {
left: 0, left: 0,
right: 0 right: 0
}] }]
}); }]
}, },
_checkMin: function () { _checkMin: function () {
@ -44564,7 +44563,8 @@ BI.DynamicDateCombo = BI.inherit(BI.Single, {
minDate: "1900-01-01", minDate: "1900-01-01",
maxDate: "2099-12-31", maxDate: "2099-12-31",
format: "", format: "",
allowEdit: true allowEdit: true,
supportDynamic: true,
}, },
@ -44686,6 +44686,7 @@ BI.DynamicDateCombo = BI.inherit(BI.Single, {
popup: { popup: {
el: { el: {
type: "bi.dynamic_date_popup", type: "bi.dynamic_date_popup",
supportDynamic: opts.supportDynamic,
behaviors: opts.behaviors, behaviors: opts.behaviors,
min: opts.minDate, min: opts.minDate,
max: opts.maxDate, max: opts.maxDate,
@ -45025,7 +45026,7 @@ BI.DynamicDatePopup = BI.inherit(BI.Widget, {
props: { props: {
baseCls: "bi-dynamic-date-popup", baseCls: "bi-dynamic-date-popup",
width: 248, width: 248,
height: 344 supportDynamic: true,
}, },
_init: function () { _init: function () {
@ -45034,7 +45035,7 @@ BI.DynamicDatePopup = BI.inherit(BI.Widget, {
this.storeValue = {type: BI.DynamicDateCombo.Static}; this.storeValue = {type: BI.DynamicDateCombo.Static};
BI.createWidget({ BI.createWidget({
element: this, element: this,
type: "bi.vtape", type: "bi.vertical",
items: [{ items: [{
el: this._getTabJson() el: this._getTabJson()
}, { }, {
@ -45079,9 +45080,9 @@ BI.DynamicDatePopup = BI.inherit(BI.Widget, {
self.fireEvent(BI.DynamicDatePopup.BUTTON_OK_EVENT_CHANGE); self.fireEvent(BI.DynamicDatePopup.BUTTON_OK_EVENT_CHANGE);
} }
}] }]
}]] }]],
},
height: 24 height: 24
},
}] }]
}); });
this.setValue(opts.value); this.setValue(opts.value);
@ -45091,11 +45092,15 @@ BI.DynamicDatePopup = BI.inherit(BI.Widget, {
var self = this, o = this.options; var self = this, o = this.options;
return { return {
type: "bi.tab", type: "bi.tab",
logic: {
dynamic: true
},
ref: function () { ref: function () {
self.dateTab = this; self.dateTab = this;
}, },
tab: { tab: {
type: "bi.linear_segment", type: "bi.linear_segment",
invisible: !o.supportDynamic,
cls: "bi-split-bottom", cls: "bi-split-bottom",
height: this.constants.tabHeight, height: this.constants.tabHeight,
items: BI.createItems([{ items: BI.createItems([{
@ -45113,6 +45118,7 @@ BI.DynamicDatePopup = BI.inherit(BI.Widget, {
case BI.DynamicDateCombo.Dynamic: case BI.DynamicDateCombo.Dynamic:
return { return {
type: "bi.dynamic_date_card", type: "bi.dynamic_date_card",
cls: "dynamic-date-pane",
listeners: [{ listeners: [{
eventName: "EVENT_CHANGE", eventName: "EVENT_CHANGE",
action: function () { action: function () {
@ -45634,7 +45640,8 @@ BI.DynamicDateTimeCombo = BI.inherit(BI.Single, {
minDate: "1900-01-01", minDate: "1900-01-01",
maxDate: "2099-12-31", maxDate: "2099-12-31",
format: "", format: "",
allowEdit: true allowEdit: true,
supportDynamic: true
}, },
@ -45761,6 +45768,7 @@ BI.DynamicDateTimeCombo = BI.inherit(BI.Single, {
popup: { popup: {
el: { el: {
type: "bi.dynamic_date_time_popup", type: "bi.dynamic_date_time_popup",
supportDynamic: opts.supportDynamic,
behaviors: opts.behaviors, behaviors: opts.behaviors,
min: opts.minDate, min: opts.minDate,
max: opts.maxDate, max: opts.maxDate,
@ -45964,7 +45972,7 @@ BI.DynamicDateTimePopup = BI.inherit(BI.Widget, {
props: { props: {
baseCls: "bi-dynamic-date-time-popup", baseCls: "bi-dynamic-date-time-popup",
width: 248, width: 248,
height: 385 supportDynamic: true,
}, },
_init: function () { _init: function () {
@ -45973,7 +45981,7 @@ BI.DynamicDateTimePopup = BI.inherit(BI.Widget, {
this.storeValue = {type: BI.DynamicDateCombo.Static}; this.storeValue = {type: BI.DynamicDateCombo.Static};
BI.createWidget({ BI.createWidget({
element: this, element: this,
type: "bi.vtape", type: "bi.vertical",
items: [{ items: [{
el: this._getTabJson() el: this._getTabJson()
}, { }, {
@ -46018,9 +46026,9 @@ BI.DynamicDateTimePopup = BI.inherit(BI.Widget, {
self.fireEvent(BI.DynamicDateTimePopup.BUTTON_OK_EVENT_CHANGE); self.fireEvent(BI.DynamicDateTimePopup.BUTTON_OK_EVENT_CHANGE);
} }
}] }]
}]] }]],
},
height: 24 height: 24
}
}] }]
}); });
this.setValue(opts.value); this.setValue(opts.value);
@ -46030,11 +46038,15 @@ BI.DynamicDateTimePopup = BI.inherit(BI.Widget, {
var self = this, o = this.options; var self = this, o = this.options;
return { return {
type: "bi.tab", type: "bi.tab",
logic: {
dynamic: true
},
ref: function () { ref: function () {
self.dateTab = this; self.dateTab = this;
}, },
tab: { tab: {
type: "bi.linear_segment", type: "bi.linear_segment",
invisible: !o.supportDynamic,
cls: "bi-split-bottom", cls: "bi-split-bottom",
height: this.constants.tabHeight, height: this.constants.tabHeight,
items: BI.createItems([{ items: BI.createItems([{
@ -46052,6 +46064,7 @@ BI.DynamicDateTimePopup = BI.inherit(BI.Widget, {
case BI.DynamicDateCombo.Dynamic: case BI.DynamicDateCombo.Dynamic:
return { return {
type: "bi.dynamic_date_card", type: "bi.dynamic_date_card",
cls: "dynamic-date-pane",
listeners: [{ listeners: [{
eventName: "EVENT_CHANGE", eventName: "EVENT_CHANGE",
action: function () { action: function () {
@ -46067,7 +46080,7 @@ BI.DynamicDateTimePopup = BI.inherit(BI.Widget, {
case BI.DynamicDateCombo.Static: case BI.DynamicDateCombo.Static:
default: default:
return { return {
type: "bi.vtape", type: "bi.vertical",
items: [{ items: [{
type: "bi.date_calendar_popup", type: "bi.date_calendar_popup",
behaviors: o.behaviors, behaviors: o.behaviors,
@ -46088,9 +46101,9 @@ BI.DynamicDateTimePopup = BI.inherit(BI.Widget, {
cls: "bi-split-top", cls: "bi-split-top",
ref: function () { ref: function () {
self.timeSelect = this; self.timeSelect = this;
}
}, },
height: 40 height: 40
}
}] }]
}; };
} }
@ -65669,7 +65682,8 @@ BI.DateInterval = BI.inherit(BI.Single, {
extraCls: "bi-date-interval", extraCls: "bi-date-interval",
minDate: "1900-01-01", minDate: "1900-01-01",
maxDate: "2099-12-31", maxDate: "2099-12-31",
height: 24 height: 24,
supportDynamic: true,
}); });
}, },
_init: function () { _init: function () {
@ -65722,6 +65736,7 @@ BI.DateInterval = BI.inherit(BI.Single, {
var self = this, o = this.options; var self = this, o = this.options;
var combo = BI.createWidget({ var combo = BI.createWidget({
type: "bi.dynamic_date_combo", type: "bi.dynamic_date_combo",
supportDynamic: o.supportDynamic,
minDate: o.minDate, minDate: o.minDate,
maxDate: o.maxDate, maxDate: o.maxDate,
behaviors: o.behaviors, behaviors: o.behaviors,
@ -65882,7 +65897,8 @@ BI.TimeInterval = BI.inherit(BI.Single, {
extraCls: "bi-time-interval", extraCls: "bi-time-interval",
minDate: "1900-01-01", minDate: "1900-01-01",
maxDate: "2099-12-31", maxDate: "2099-12-31",
height: 24 height: 24,
supportDynamic: true
}); });
}, },
_init: function () { _init: function () {
@ -65935,6 +65951,7 @@ BI.TimeInterval = BI.inherit(BI.Single, {
var self = this, o = this.options; var self = this, o = this.options;
var combo = BI.createWidget({ var combo = BI.createWidget({
type: "bi.dynamic_date_time_combo", type: "bi.dynamic_date_time_combo",
supportDynamic: o.supportDynamic,
minDate: o.minDate, minDate: o.minDate,
maxDate: o.maxDate, maxDate: o.maxDate,
behaviors: o.behaviors, behaviors: o.behaviors,
@ -66497,7 +66514,8 @@ BI.DynamicYearCombo = BI.inherit(BI.Widget, {
behaviors: {}, behaviors: {},
minDate: "1900-01-01", // 最小日期 minDate: "1900-01-01", // 最小日期
maxDate: "2099-12-31", // 最大日期 maxDate: "2099-12-31", // 最大日期
height: 22 height: 22,
supportDynamic: true,
}, },
_init: function () { _init: function () {
@ -66554,6 +66572,7 @@ BI.DynamicYearCombo = BI.inherit(BI.Widget, {
stopPropagation: false, stopPropagation: false,
el: { el: {
type: "bi.dynamic_year_popup", type: "bi.dynamic_year_popup",
supportDynamic: o.supportDynamic,
ref: function () { ref: function () {
self.popup = this; self.popup = this;
}, },
@ -66699,14 +66718,14 @@ BI.DynamicYearPopup = BI.inherit(BI.Widget, {
min: "1900-01-01", // 最小日期 min: "1900-01-01", // 最小日期
max: "2099-12-31", // 最大日期, max: "2099-12-31", // 最大日期,
width: 180, width: 180,
height: 240 supportDynamic: true,
}, },
render: function () { render: function () {
var self = this, opts = this.options, c = this.constants; var self = this, opts = this.options, c = this.constants;
this.storeValue = {type: BI.DynamicYearCombo.Static}; this.storeValue = {type: BI.DynamicYearCombo.Static};
return { return {
type: "bi.vtape", type: "bi.vertical",
items: [{ items: [{
el: this._getTabJson() el: this._getTabJson()
}, { }, {
@ -66751,9 +66770,9 @@ BI.DynamicYearPopup = BI.inherit(BI.Widget, {
self.fireEvent(BI.DynamicYearPopup.BUTTON_OK_EVENT_CHANGE); self.fireEvent(BI.DynamicYearPopup.BUTTON_OK_EVENT_CHANGE);
} }
}] }]
}]] }]],
},
height: 24 height: 24
},
}] }]
}; };
}, },
@ -66774,12 +66793,15 @@ BI.DynamicYearPopup = BI.inherit(BI.Widget, {
var self = this, o = this.options; var self = this, o = this.options;
return { return {
type: "bi.tab", type: "bi.tab",
logic: {
dynamic: true
},
ref: function () { ref: function () {
self.dateTab = this; self.dateTab = this;
}, },
tab: { tab: {
type: "bi.linear_segment", type: "bi.linear_segment",
cls: "bi-split-bottom", invisible: !o.supportDynamic,
height: this.constants.tabHeight, height: this.constants.tabHeight,
items: BI.createItems([{ items: BI.createItems([{
text: BI.i18nText("BI-Basic_Year_Fen"), text: BI.i18nText("BI-Basic_Year_Fen"),
@ -66796,6 +66818,7 @@ BI.DynamicYearPopup = BI.inherit(BI.Widget, {
case BI.DynamicYearCombo.Dynamic: case BI.DynamicYearCombo.Dynamic:
return { return {
type: "bi.dynamic_year_card", type: "bi.dynamic_year_card",
cls: "dynamic-year-pane",
min: self.options.min, min: self.options.min,
max: self.options.max, max: self.options.max,
listeners: [{ listeners: [{
@ -67278,6 +67301,7 @@ BI.StaticYearMonthCard = BI.inherit(BI.Widget, {
type: "bi.vertical", type: "bi.vertical",
items: [{ items: [{
type: "bi.year_picker", type: "bi.year_picker",
cls: "bi-split-bottom",
min: o.min, min: o.min,
max: o.max, max: o.max,
ref: function () { ref: function () {
@ -67297,8 +67321,8 @@ BI.StaticYearMonthCard = BI.inherit(BI.Widget, {
} }
}] }]
}, { }, {
el: {
type: "bi.button_group", type: "bi.button_group",
cls: "bi-split-top",
behaviors: o.behaviors, behaviors: o.behaviors,
ref: function () { ref: function () {
self.month = this; self.month = this;
@ -67325,6 +67349,8 @@ BI.StaticYearMonthCard = BI.inherit(BI.Widget, {
self.fireEvent(BI.StaticYearMonthCard.EVENT_CHANGE); self.fireEvent(BI.StaticYearMonthCard.EVENT_CHANGE);
} }
}] }]
},
vgap: 5
}] }]
}; };
}, },
@ -67405,7 +67431,8 @@ BI.DynamicYearMonthCombo = BI.inherit(BI.Single, {
behaviors: {}, behaviors: {},
minDate: "1900-01-01", // 最小日期 minDate: "1900-01-01", // 最小日期
maxDate: "2099-12-31", // 最大日期 maxDate: "2099-12-31", // 最大日期
height: 22 height: 22,
supportDynamic: true
}, },
_init: function () { _init: function () {
@ -67466,6 +67493,7 @@ BI.DynamicYearMonthCombo = BI.inherit(BI.Single, {
stopPropagation: false, stopPropagation: false,
el: { el: {
type: "bi.dynamic_year_month_popup", type: "bi.dynamic_year_month_popup",
supportDynamic: o.supportDynamic,
ref: function () { ref: function () {
self.popup = this; self.popup = this;
}, },
@ -67626,14 +67654,14 @@ BI.DynamicYearMonthPopup = BI.inherit(BI.Widget, {
min: "1900-01-01", // 最小日期 min: "1900-01-01", // 最小日期
max: "2099-12-31", // 最大日期, max: "2099-12-31", // 最大日期,
width: 180, width: 180,
height: 240 supportDynamic: true,
}, },
render: function () { render: function () {
var self = this, opts = this.options, c = this.constants; var self = this, opts = this.options, c = this.constants;
this.storeValue = {type: BI.DynamicYearMonthCombo.Static}; this.storeValue = {type: BI.DynamicYearMonthCombo.Static};
return { return {
type: "bi.vtape", type: "bi.vertical",
items: [{ items: [{
el: this._getTabJson() el: this._getTabJson()
}, { }, {
@ -67678,9 +67706,9 @@ BI.DynamicYearMonthPopup = BI.inherit(BI.Widget, {
self.fireEvent(BI.DynamicYearMonthPopup.BUTTON_OK_EVENT_CHANGE); self.fireEvent(BI.DynamicYearMonthPopup.BUTTON_OK_EVENT_CHANGE);
} }
}] }]
}]] }]],
},
height: 24 height: 24
},
}] }]
}; };
}, },
@ -67701,12 +67729,16 @@ BI.DynamicYearMonthPopup = BI.inherit(BI.Widget, {
var self = this, o = this.options; var self = this, o = this.options;
return { return {
type: "bi.tab", type: "bi.tab",
logic: {
dynamic: true
},
ref: function () { ref: function () {
self.dateTab = this; self.dateTab = this;
}, },
tab: { tab: {
type: "bi.linear_segment", type: "bi.linear_segment",
cls: "bi-split-bottom", cls: "bi-split-bottom",
invisible: !o.supportDynamic,
height: this.constants.tabHeight, height: this.constants.tabHeight,
items: BI.createItems([{ items: BI.createItems([{
text: BI.i18nText("BI-Basic_Year_Month"), text: BI.i18nText("BI-Basic_Year_Month"),
@ -67723,6 +67755,7 @@ BI.DynamicYearMonthPopup = BI.inherit(BI.Widget, {
case BI.DynamicYearCombo.Dynamic: case BI.DynamicYearCombo.Dynamic:
return { return {
type: "bi.dynamic_year_month_card", type: "bi.dynamic_year_month_card",
cls: "dynamic-year-month-pane",
min: self.options.min, min: self.options.min,
max: self.options.max, max: self.options.max,
listeners: [{ listeners: [{
@ -68127,7 +68160,8 @@ BI.YearMonthInterval = BI.inherit(BI.Single, {
props: { props: {
extraCls: "bi-year-month-interval", extraCls: "bi-year-month-interval",
minDate: "1900-01-01", minDate: "1900-01-01",
maxDate: "2099-12-31" maxDate: "2099-12-31",
supportDynamic: true,
}, },
_init: function () { _init: function () {
@ -68181,6 +68215,7 @@ BI.YearMonthInterval = BI.inherit(BI.Single, {
var self = this, o = this.options; var self = this, o = this.options;
var combo = BI.createWidget({ var combo = BI.createWidget({
type: "bi.dynamic_year_month_combo", type: "bi.dynamic_year_month_combo",
supportDynamic: o.supportDynamic,
minDate: o.minDate, minDate: o.minDate,
maxDate: o.maxDate, maxDate: o.maxDate,
behaviors: o.behaviors, behaviors: o.behaviors,
@ -68506,6 +68541,7 @@ BI.StaticYearQuarterCard = BI.inherit(BI.Widget, {
type: "bi.vertical", type: "bi.vertical",
items: [{ items: [{
type: "bi.year_picker", type: "bi.year_picker",
cls: "bi-split-bottom",
ref: function () { ref: function () {
self.yearPicker = this; self.yearPicker = this;
}, },
@ -68525,6 +68561,7 @@ BI.StaticYearQuarterCard = BI.inherit(BI.Widget, {
} }
}] }]
}, { }, {
el: {
type: "bi.button_group", type: "bi.button_group",
behaviors: o.behaviors, behaviors: o.behaviors,
ref: function () { ref: function () {
@ -68544,6 +68581,8 @@ BI.StaticYearQuarterCard = BI.inherit(BI.Widget, {
self.fireEvent(BI.StaticYearQuarterCard.EVENT_CHANGE); self.fireEvent(BI.StaticYearQuarterCard.EVENT_CHANGE);
} }
}] }]
},
vgap: 5
}] }]
}; };
}, },
@ -68621,7 +68660,8 @@ BI.DynamicYearQuarterCombo = BI.inherit(BI.Widget, {
behaviors: {}, behaviors: {},
minDate: "1900-01-01", // 最小日期 minDate: "1900-01-01", // 最小日期
maxDate: "2099-12-31", // 最大日期 maxDate: "2099-12-31", // 最大日期
height: 22 height: 22,
supportDynamic: true,
}, },
_init: function () { _init: function () {
@ -68677,6 +68717,7 @@ BI.DynamicYearQuarterCombo = BI.inherit(BI.Widget, {
stopPropagation: false, stopPropagation: false,
el: { el: {
type: "bi.dynamic_year_quarter_popup", type: "bi.dynamic_year_quarter_popup",
supportDynamic: o.supportDynamic,
ref: function () { ref: function () {
self.popup = this; self.popup = this;
}, },
@ -68815,14 +68856,14 @@ BI.DynamicYearQuarterPopup = BI.inherit(BI.Widget, {
min: "1900-01-01", // 最小日期 min: "1900-01-01", // 最小日期
max: "2099-12-31", // 最大日期, max: "2099-12-31", // 最大日期,
width: 180, width: 180,
height: 240 supportDynamic: true,
}, },
render: function () { render: function () {
var self = this, opts = this.options, c = this.constants; var self = this, opts = this.options, c = this.constants;
this.storeValue = {type: BI.DynamicYearQuarterCombo.Static}; this.storeValue = {type: BI.DynamicYearQuarterCombo.Static};
return { return {
type: "bi.vtape", type: "bi.vertical",
items: [{ items: [{
el: this._getTabJson() el: this._getTabJson()
}, { }, {
@ -68867,9 +68908,9 @@ BI.DynamicYearQuarterPopup = BI.inherit(BI.Widget, {
self.fireEvent(BI.DynamicYearQuarterPopup.BUTTON_OK_EVENT_CHANGE); self.fireEvent(BI.DynamicYearQuarterPopup.BUTTON_OK_EVENT_CHANGE);
} }
}] }]
}]] }]],
},
height: 24 height: 24
},
}] }]
}; };
}, },
@ -68890,12 +68931,16 @@ BI.DynamicYearQuarterPopup = BI.inherit(BI.Widget, {
var self = this, o = this.options; var self = this, o = this.options;
return { return {
type: "bi.tab", type: "bi.tab",
logic: {
dynamic: true
},
ref: function () { ref: function () {
self.dateTab = this; self.dateTab = this;
}, },
tab: { tab: {
type: "bi.linear_segment", type: "bi.linear_segment",
cls: "bi-split-bottom", cls: "bi-split-bottom",
invisible: !o.supportDynamic,
height: this.constants.tabHeight, height: this.constants.tabHeight,
items: BI.createItems([{ items: BI.createItems([{
text: BI.i18nText("BI-Basic_Year_Quarter"), text: BI.i18nText("BI-Basic_Year_Quarter"),
@ -68912,6 +68957,7 @@ BI.DynamicYearQuarterPopup = BI.inherit(BI.Widget, {
case BI.DynamicYearQuarterCombo.Dynamic: case BI.DynamicYearQuarterCombo.Dynamic:
return { return {
type: "bi.dynamic_year_quarter_card", type: "bi.dynamic_year_quarter_card",
cls: "dynamic-year-quarter-pane",
min: self.options.min, min: self.options.min,
max: self.options.max, max: self.options.max,
listeners: [{ listeners: [{

2
dist/core.js.map vendored

File diff suppressed because one or more lines are too long

4
dist/demo.css vendored

File diff suppressed because one or more lines are too long

138
dist/demo.js vendored

@ -1,4 +1,4 @@
/*! time: 2021-1-18 14:00:24 */ /*! time: 2021-1-19 09:30:24 */
/******/ (function(modules) { // webpackBootstrap /******/ (function(modules) { // webpackBootstrap
/******/ // The module cache /******/ // The module cache
/******/ var installedModules = {}; /******/ var installedModules = {};
@ -38535,7 +38535,7 @@ BI.shortcut("bi.linear_segment_button", BI.LinearSegmentButton);
BI.LinearSegment = BI.inherit(BI.Widget, { BI.LinearSegment = BI.inherit(BI.Widget, {
props: { props: {
baseCls: "bi-linear-segment bi-split-bottom", baseCls: "bi-linear-segment",
items: [], items: [],
layouts: [{ layouts: [{
type: "bi.center" type: "bi.center"
@ -41840,14 +41840,12 @@ BI.shortcut("bi.year_picker", BI.YearPicker);
* @extends BI.Widget * @extends BI.Widget
*/ */
BI.DateCalendarPopup = BI.inherit(BI.Widget, { BI.DateCalendarPopup = BI.inherit(BI.Widget, {
_defaultConfig: function () {
var conf = BI.DateCalendarPopup.superclass._defaultConfig.apply(this, arguments); props: {
return BI.extend(conf, {
baseCls: "bi-date-calendar-popup", baseCls: "bi-date-calendar-popup",
min: "1900-01-01", // 最小日期 min: "1900-01-01", // 最小日期
max: "2099-12-31", // 最大日期 max: "2099-12-31", // 最大日期
selectedTime: null selectedTime: null
});
}, },
_createNav: function (v) { _createNav: function (v) {
@ -41867,8 +41865,7 @@ BI.DateCalendarPopup = BI.inherit(BI.Widget, {
return calendar; return calendar;
}, },
_init: function () { render: function () {
BI.DateCalendarPopup.superclass._init.apply(this, arguments);
var self = this, var self = this,
o = this.options; o = this.options;
this.today = BI.getDate(); this.today = BI.getDate();
@ -41922,14 +41919,16 @@ BI.DateCalendarPopup = BI.inherit(BI.Widget, {
self.fireEvent(BI.DateCalendarPopup.EVENT_CHANGE); self.fireEvent(BI.DateCalendarPopup.EVENT_CHANGE);
}); });
BI.createWidget({ return [{
type: "bi.absolute", type: "bi.vertical",
element: this,
items: [{ items: [{
el: this.calendar, el: this.calendar,
left: 5, hgap: 5,
right: 5 bgap: 12
}]
}, { }, {
type: "bi.absolute",
items: [{
el: { el: {
type: "bi.layout", type: "bi.layout",
cls: "bi-split-top" cls: "bi-split-top"
@ -41939,7 +41938,7 @@ BI.DateCalendarPopup = BI.inherit(BI.Widget, {
left: 0, left: 0,
right: 0 right: 0
}] }]
}); }]
}, },
_checkMin: function () { _checkMin: function () {
@ -44564,7 +44563,8 @@ BI.DynamicDateCombo = BI.inherit(BI.Single, {
minDate: "1900-01-01", minDate: "1900-01-01",
maxDate: "2099-12-31", maxDate: "2099-12-31",
format: "", format: "",
allowEdit: true allowEdit: true,
supportDynamic: true,
}, },
@ -44686,6 +44686,7 @@ BI.DynamicDateCombo = BI.inherit(BI.Single, {
popup: { popup: {
el: { el: {
type: "bi.dynamic_date_popup", type: "bi.dynamic_date_popup",
supportDynamic: opts.supportDynamic,
behaviors: opts.behaviors, behaviors: opts.behaviors,
min: opts.minDate, min: opts.minDate,
max: opts.maxDate, max: opts.maxDate,
@ -45025,7 +45026,7 @@ BI.DynamicDatePopup = BI.inherit(BI.Widget, {
props: { props: {
baseCls: "bi-dynamic-date-popup", baseCls: "bi-dynamic-date-popup",
width: 248, width: 248,
height: 344 supportDynamic: true,
}, },
_init: function () { _init: function () {
@ -45034,7 +45035,7 @@ BI.DynamicDatePopup = BI.inherit(BI.Widget, {
this.storeValue = {type: BI.DynamicDateCombo.Static}; this.storeValue = {type: BI.DynamicDateCombo.Static};
BI.createWidget({ BI.createWidget({
element: this, element: this,
type: "bi.vtape", type: "bi.vertical",
items: [{ items: [{
el: this._getTabJson() el: this._getTabJson()
}, { }, {
@ -45079,9 +45080,9 @@ BI.DynamicDatePopup = BI.inherit(BI.Widget, {
self.fireEvent(BI.DynamicDatePopup.BUTTON_OK_EVENT_CHANGE); self.fireEvent(BI.DynamicDatePopup.BUTTON_OK_EVENT_CHANGE);
} }
}] }]
}]] }]],
},
height: 24 height: 24
},
}] }]
}); });
this.setValue(opts.value); this.setValue(opts.value);
@ -45091,11 +45092,15 @@ BI.DynamicDatePopup = BI.inherit(BI.Widget, {
var self = this, o = this.options; var self = this, o = this.options;
return { return {
type: "bi.tab", type: "bi.tab",
logic: {
dynamic: true
},
ref: function () { ref: function () {
self.dateTab = this; self.dateTab = this;
}, },
tab: { tab: {
type: "bi.linear_segment", type: "bi.linear_segment",
invisible: !o.supportDynamic,
cls: "bi-split-bottom", cls: "bi-split-bottom",
height: this.constants.tabHeight, height: this.constants.tabHeight,
items: BI.createItems([{ items: BI.createItems([{
@ -45113,6 +45118,7 @@ BI.DynamicDatePopup = BI.inherit(BI.Widget, {
case BI.DynamicDateCombo.Dynamic: case BI.DynamicDateCombo.Dynamic:
return { return {
type: "bi.dynamic_date_card", type: "bi.dynamic_date_card",
cls: "dynamic-date-pane",
listeners: [{ listeners: [{
eventName: "EVENT_CHANGE", eventName: "EVENT_CHANGE",
action: function () { action: function () {
@ -45634,7 +45640,8 @@ BI.DynamicDateTimeCombo = BI.inherit(BI.Single, {
minDate: "1900-01-01", minDate: "1900-01-01",
maxDate: "2099-12-31", maxDate: "2099-12-31",
format: "", format: "",
allowEdit: true allowEdit: true,
supportDynamic: true
}, },
@ -45761,6 +45768,7 @@ BI.DynamicDateTimeCombo = BI.inherit(BI.Single, {
popup: { popup: {
el: { el: {
type: "bi.dynamic_date_time_popup", type: "bi.dynamic_date_time_popup",
supportDynamic: opts.supportDynamic,
behaviors: opts.behaviors, behaviors: opts.behaviors,
min: opts.minDate, min: opts.minDate,
max: opts.maxDate, max: opts.maxDate,
@ -45964,7 +45972,7 @@ BI.DynamicDateTimePopup = BI.inherit(BI.Widget, {
props: { props: {
baseCls: "bi-dynamic-date-time-popup", baseCls: "bi-dynamic-date-time-popup",
width: 248, width: 248,
height: 385 supportDynamic: true,
}, },
_init: function () { _init: function () {
@ -45973,7 +45981,7 @@ BI.DynamicDateTimePopup = BI.inherit(BI.Widget, {
this.storeValue = {type: BI.DynamicDateCombo.Static}; this.storeValue = {type: BI.DynamicDateCombo.Static};
BI.createWidget({ BI.createWidget({
element: this, element: this,
type: "bi.vtape", type: "bi.vertical",
items: [{ items: [{
el: this._getTabJson() el: this._getTabJson()
}, { }, {
@ -46018,9 +46026,9 @@ BI.DynamicDateTimePopup = BI.inherit(BI.Widget, {
self.fireEvent(BI.DynamicDateTimePopup.BUTTON_OK_EVENT_CHANGE); self.fireEvent(BI.DynamicDateTimePopup.BUTTON_OK_EVENT_CHANGE);
} }
}] }]
}]] }]],
},
height: 24 height: 24
}
}] }]
}); });
this.setValue(opts.value); this.setValue(opts.value);
@ -46030,11 +46038,15 @@ BI.DynamicDateTimePopup = BI.inherit(BI.Widget, {
var self = this, o = this.options; var self = this, o = this.options;
return { return {
type: "bi.tab", type: "bi.tab",
logic: {
dynamic: true
},
ref: function () { ref: function () {
self.dateTab = this; self.dateTab = this;
}, },
tab: { tab: {
type: "bi.linear_segment", type: "bi.linear_segment",
invisible: !o.supportDynamic,
cls: "bi-split-bottom", cls: "bi-split-bottom",
height: this.constants.tabHeight, height: this.constants.tabHeight,
items: BI.createItems([{ items: BI.createItems([{
@ -46052,6 +46064,7 @@ BI.DynamicDateTimePopup = BI.inherit(BI.Widget, {
case BI.DynamicDateCombo.Dynamic: case BI.DynamicDateCombo.Dynamic:
return { return {
type: "bi.dynamic_date_card", type: "bi.dynamic_date_card",
cls: "dynamic-date-pane",
listeners: [{ listeners: [{
eventName: "EVENT_CHANGE", eventName: "EVENT_CHANGE",
action: function () { action: function () {
@ -46067,7 +46080,7 @@ BI.DynamicDateTimePopup = BI.inherit(BI.Widget, {
case BI.DynamicDateCombo.Static: case BI.DynamicDateCombo.Static:
default: default:
return { return {
type: "bi.vtape", type: "bi.vertical",
items: [{ items: [{
type: "bi.date_calendar_popup", type: "bi.date_calendar_popup",
behaviors: o.behaviors, behaviors: o.behaviors,
@ -46088,9 +46101,9 @@ BI.DynamicDateTimePopup = BI.inherit(BI.Widget, {
cls: "bi-split-top", cls: "bi-split-top",
ref: function () { ref: function () {
self.timeSelect = this; self.timeSelect = this;
}
}, },
height: 40 height: 40
}
}] }]
}; };
} }
@ -65669,7 +65682,8 @@ BI.DateInterval = BI.inherit(BI.Single, {
extraCls: "bi-date-interval", extraCls: "bi-date-interval",
minDate: "1900-01-01", minDate: "1900-01-01",
maxDate: "2099-12-31", maxDate: "2099-12-31",
height: 24 height: 24,
supportDynamic: true,
}); });
}, },
_init: function () { _init: function () {
@ -65722,6 +65736,7 @@ BI.DateInterval = BI.inherit(BI.Single, {
var self = this, o = this.options; var self = this, o = this.options;
var combo = BI.createWidget({ var combo = BI.createWidget({
type: "bi.dynamic_date_combo", type: "bi.dynamic_date_combo",
supportDynamic: o.supportDynamic,
minDate: o.minDate, minDate: o.minDate,
maxDate: o.maxDate, maxDate: o.maxDate,
behaviors: o.behaviors, behaviors: o.behaviors,
@ -65882,7 +65897,8 @@ BI.TimeInterval = BI.inherit(BI.Single, {
extraCls: "bi-time-interval", extraCls: "bi-time-interval",
minDate: "1900-01-01", minDate: "1900-01-01",
maxDate: "2099-12-31", maxDate: "2099-12-31",
height: 24 height: 24,
supportDynamic: true
}); });
}, },
_init: function () { _init: function () {
@ -65935,6 +65951,7 @@ BI.TimeInterval = BI.inherit(BI.Single, {
var self = this, o = this.options; var self = this, o = this.options;
var combo = BI.createWidget({ var combo = BI.createWidget({
type: "bi.dynamic_date_time_combo", type: "bi.dynamic_date_time_combo",
supportDynamic: o.supportDynamic,
minDate: o.minDate, minDate: o.minDate,
maxDate: o.maxDate, maxDate: o.maxDate,
behaviors: o.behaviors, behaviors: o.behaviors,
@ -66497,7 +66514,8 @@ BI.DynamicYearCombo = BI.inherit(BI.Widget, {
behaviors: {}, behaviors: {},
minDate: "1900-01-01", // 最小日期 minDate: "1900-01-01", // 最小日期
maxDate: "2099-12-31", // 最大日期 maxDate: "2099-12-31", // 最大日期
height: 22 height: 22,
supportDynamic: true,
}, },
_init: function () { _init: function () {
@ -66554,6 +66572,7 @@ BI.DynamicYearCombo = BI.inherit(BI.Widget, {
stopPropagation: false, stopPropagation: false,
el: { el: {
type: "bi.dynamic_year_popup", type: "bi.dynamic_year_popup",
supportDynamic: o.supportDynamic,
ref: function () { ref: function () {
self.popup = this; self.popup = this;
}, },
@ -66699,14 +66718,14 @@ BI.DynamicYearPopup = BI.inherit(BI.Widget, {
min: "1900-01-01", // 最小日期 min: "1900-01-01", // 最小日期
max: "2099-12-31", // 最大日期, max: "2099-12-31", // 最大日期,
width: 180, width: 180,
height: 240 supportDynamic: true,
}, },
render: function () { render: function () {
var self = this, opts = this.options, c = this.constants; var self = this, opts = this.options, c = this.constants;
this.storeValue = {type: BI.DynamicYearCombo.Static}; this.storeValue = {type: BI.DynamicYearCombo.Static};
return { return {
type: "bi.vtape", type: "bi.vertical",
items: [{ items: [{
el: this._getTabJson() el: this._getTabJson()
}, { }, {
@ -66751,9 +66770,9 @@ BI.DynamicYearPopup = BI.inherit(BI.Widget, {
self.fireEvent(BI.DynamicYearPopup.BUTTON_OK_EVENT_CHANGE); self.fireEvent(BI.DynamicYearPopup.BUTTON_OK_EVENT_CHANGE);
} }
}] }]
}]] }]],
},
height: 24 height: 24
},
}] }]
}; };
}, },
@ -66774,12 +66793,15 @@ BI.DynamicYearPopup = BI.inherit(BI.Widget, {
var self = this, o = this.options; var self = this, o = this.options;
return { return {
type: "bi.tab", type: "bi.tab",
logic: {
dynamic: true
},
ref: function () { ref: function () {
self.dateTab = this; self.dateTab = this;
}, },
tab: { tab: {
type: "bi.linear_segment", type: "bi.linear_segment",
cls: "bi-split-bottom", invisible: !o.supportDynamic,
height: this.constants.tabHeight, height: this.constants.tabHeight,
items: BI.createItems([{ items: BI.createItems([{
text: BI.i18nText("BI-Basic_Year_Fen"), text: BI.i18nText("BI-Basic_Year_Fen"),
@ -66796,6 +66818,7 @@ BI.DynamicYearPopup = BI.inherit(BI.Widget, {
case BI.DynamicYearCombo.Dynamic: case BI.DynamicYearCombo.Dynamic:
return { return {
type: "bi.dynamic_year_card", type: "bi.dynamic_year_card",
cls: "dynamic-year-pane",
min: self.options.min, min: self.options.min,
max: self.options.max, max: self.options.max,
listeners: [{ listeners: [{
@ -67278,6 +67301,7 @@ BI.StaticYearMonthCard = BI.inherit(BI.Widget, {
type: "bi.vertical", type: "bi.vertical",
items: [{ items: [{
type: "bi.year_picker", type: "bi.year_picker",
cls: "bi-split-bottom",
min: o.min, min: o.min,
max: o.max, max: o.max,
ref: function () { ref: function () {
@ -67297,8 +67321,8 @@ BI.StaticYearMonthCard = BI.inherit(BI.Widget, {
} }
}] }]
}, { }, {
el: {
type: "bi.button_group", type: "bi.button_group",
cls: "bi-split-top",
behaviors: o.behaviors, behaviors: o.behaviors,
ref: function () { ref: function () {
self.month = this; self.month = this;
@ -67325,6 +67349,8 @@ BI.StaticYearMonthCard = BI.inherit(BI.Widget, {
self.fireEvent(BI.StaticYearMonthCard.EVENT_CHANGE); self.fireEvent(BI.StaticYearMonthCard.EVENT_CHANGE);
} }
}] }]
},
vgap: 5
}] }]
}; };
}, },
@ -67405,7 +67431,8 @@ BI.DynamicYearMonthCombo = BI.inherit(BI.Single, {
behaviors: {}, behaviors: {},
minDate: "1900-01-01", // 最小日期 minDate: "1900-01-01", // 最小日期
maxDate: "2099-12-31", // 最大日期 maxDate: "2099-12-31", // 最大日期
height: 22 height: 22,
supportDynamic: true
}, },
_init: function () { _init: function () {
@ -67466,6 +67493,7 @@ BI.DynamicYearMonthCombo = BI.inherit(BI.Single, {
stopPropagation: false, stopPropagation: false,
el: { el: {
type: "bi.dynamic_year_month_popup", type: "bi.dynamic_year_month_popup",
supportDynamic: o.supportDynamic,
ref: function () { ref: function () {
self.popup = this; self.popup = this;
}, },
@ -67626,14 +67654,14 @@ BI.DynamicYearMonthPopup = BI.inherit(BI.Widget, {
min: "1900-01-01", // 最小日期 min: "1900-01-01", // 最小日期
max: "2099-12-31", // 最大日期, max: "2099-12-31", // 最大日期,
width: 180, width: 180,
height: 240 supportDynamic: true,
}, },
render: function () { render: function () {
var self = this, opts = this.options, c = this.constants; var self = this, opts = this.options, c = this.constants;
this.storeValue = {type: BI.DynamicYearMonthCombo.Static}; this.storeValue = {type: BI.DynamicYearMonthCombo.Static};
return { return {
type: "bi.vtape", type: "bi.vertical",
items: [{ items: [{
el: this._getTabJson() el: this._getTabJson()
}, { }, {
@ -67678,9 +67706,9 @@ BI.DynamicYearMonthPopup = BI.inherit(BI.Widget, {
self.fireEvent(BI.DynamicYearMonthPopup.BUTTON_OK_EVENT_CHANGE); self.fireEvent(BI.DynamicYearMonthPopup.BUTTON_OK_EVENT_CHANGE);
} }
}] }]
}]] }]],
},
height: 24 height: 24
},
}] }]
}; };
}, },
@ -67701,12 +67729,16 @@ BI.DynamicYearMonthPopup = BI.inherit(BI.Widget, {
var self = this, o = this.options; var self = this, o = this.options;
return { return {
type: "bi.tab", type: "bi.tab",
logic: {
dynamic: true
},
ref: function () { ref: function () {
self.dateTab = this; self.dateTab = this;
}, },
tab: { tab: {
type: "bi.linear_segment", type: "bi.linear_segment",
cls: "bi-split-bottom", cls: "bi-split-bottom",
invisible: !o.supportDynamic,
height: this.constants.tabHeight, height: this.constants.tabHeight,
items: BI.createItems([{ items: BI.createItems([{
text: BI.i18nText("BI-Basic_Year_Month"), text: BI.i18nText("BI-Basic_Year_Month"),
@ -67723,6 +67755,7 @@ BI.DynamicYearMonthPopup = BI.inherit(BI.Widget, {
case BI.DynamicYearCombo.Dynamic: case BI.DynamicYearCombo.Dynamic:
return { return {
type: "bi.dynamic_year_month_card", type: "bi.dynamic_year_month_card",
cls: "dynamic-year-month-pane",
min: self.options.min, min: self.options.min,
max: self.options.max, max: self.options.max,
listeners: [{ listeners: [{
@ -68127,7 +68160,8 @@ BI.YearMonthInterval = BI.inherit(BI.Single, {
props: { props: {
extraCls: "bi-year-month-interval", extraCls: "bi-year-month-interval",
minDate: "1900-01-01", minDate: "1900-01-01",
maxDate: "2099-12-31" maxDate: "2099-12-31",
supportDynamic: true,
}, },
_init: function () { _init: function () {
@ -68181,6 +68215,7 @@ BI.YearMonthInterval = BI.inherit(BI.Single, {
var self = this, o = this.options; var self = this, o = this.options;
var combo = BI.createWidget({ var combo = BI.createWidget({
type: "bi.dynamic_year_month_combo", type: "bi.dynamic_year_month_combo",
supportDynamic: o.supportDynamic,
minDate: o.minDate, minDate: o.minDate,
maxDate: o.maxDate, maxDate: o.maxDate,
behaviors: o.behaviors, behaviors: o.behaviors,
@ -68506,6 +68541,7 @@ BI.StaticYearQuarterCard = BI.inherit(BI.Widget, {
type: "bi.vertical", type: "bi.vertical",
items: [{ items: [{
type: "bi.year_picker", type: "bi.year_picker",
cls: "bi-split-bottom",
ref: function () { ref: function () {
self.yearPicker = this; self.yearPicker = this;
}, },
@ -68525,6 +68561,7 @@ BI.StaticYearQuarterCard = BI.inherit(BI.Widget, {
} }
}] }]
}, { }, {
el: {
type: "bi.button_group", type: "bi.button_group",
behaviors: o.behaviors, behaviors: o.behaviors,
ref: function () { ref: function () {
@ -68544,6 +68581,8 @@ BI.StaticYearQuarterCard = BI.inherit(BI.Widget, {
self.fireEvent(BI.StaticYearQuarterCard.EVENT_CHANGE); self.fireEvent(BI.StaticYearQuarterCard.EVENT_CHANGE);
} }
}] }]
},
vgap: 5
}] }]
}; };
}, },
@ -68621,7 +68660,8 @@ BI.DynamicYearQuarterCombo = BI.inherit(BI.Widget, {
behaviors: {}, behaviors: {},
minDate: "1900-01-01", // 最小日期 minDate: "1900-01-01", // 最小日期
maxDate: "2099-12-31", // 最大日期 maxDate: "2099-12-31", // 最大日期
height: 22 height: 22,
supportDynamic: true,
}, },
_init: function () { _init: function () {
@ -68677,6 +68717,7 @@ BI.DynamicYearQuarterCombo = BI.inherit(BI.Widget, {
stopPropagation: false, stopPropagation: false,
el: { el: {
type: "bi.dynamic_year_quarter_popup", type: "bi.dynamic_year_quarter_popup",
supportDynamic: o.supportDynamic,
ref: function () { ref: function () {
self.popup = this; self.popup = this;
}, },
@ -68815,14 +68856,14 @@ BI.DynamicYearQuarterPopup = BI.inherit(BI.Widget, {
min: "1900-01-01", // 最小日期 min: "1900-01-01", // 最小日期
max: "2099-12-31", // 最大日期, max: "2099-12-31", // 最大日期,
width: 180, width: 180,
height: 240 supportDynamic: true,
}, },
render: function () { render: function () {
var self = this, opts = this.options, c = this.constants; var self = this, opts = this.options, c = this.constants;
this.storeValue = {type: BI.DynamicYearQuarterCombo.Static}; this.storeValue = {type: BI.DynamicYearQuarterCombo.Static};
return { return {
type: "bi.vtape", type: "bi.vertical",
items: [{ items: [{
el: this._getTabJson() el: this._getTabJson()
}, { }, {
@ -68867,9 +68908,9 @@ BI.DynamicYearQuarterPopup = BI.inherit(BI.Widget, {
self.fireEvent(BI.DynamicYearQuarterPopup.BUTTON_OK_EVENT_CHANGE); self.fireEvent(BI.DynamicYearQuarterPopup.BUTTON_OK_EVENT_CHANGE);
} }
}] }]
}]] }]],
},
height: 24 height: 24
},
}] }]
}; };
}, },
@ -68890,12 +68931,16 @@ BI.DynamicYearQuarterPopup = BI.inherit(BI.Widget, {
var self = this, o = this.options; var self = this, o = this.options;
return { return {
type: "bi.tab", type: "bi.tab",
logic: {
dynamic: true
},
ref: function () { ref: function () {
self.dateTab = this; self.dateTab = this;
}, },
tab: { tab: {
type: "bi.linear_segment", type: "bi.linear_segment",
cls: "bi-split-bottom", cls: "bi-split-bottom",
invisible: !o.supportDynamic,
height: this.constants.tabHeight, height: this.constants.tabHeight,
items: BI.createItems([{ items: BI.createItems([{
text: BI.i18nText("BI-Basic_Year_Quarter"), text: BI.i18nText("BI-Basic_Year_Quarter"),
@ -68912,6 +68957,7 @@ BI.DynamicYearQuarterPopup = BI.inherit(BI.Widget, {
case BI.DynamicYearQuarterCombo.Dynamic: case BI.DynamicYearQuarterCombo.Dynamic:
return { return {
type: "bi.dynamic_year_quarter_card", type: "bi.dynamic_year_quarter_card",
cls: "dynamic-year-quarter-pane",
min: self.options.min, min: self.options.min,
max: self.options.max, max: self.options.max,
listeners: [{ listeners: [{

2
dist/demo.js.map vendored

File diff suppressed because one or more lines are too long

4
dist/fineui.css vendored

File diff suppressed because one or more lines are too long

4
dist/fineui.ie.min.js vendored

File diff suppressed because one or more lines are too long

2
dist/fineui.ie.min.js.map vendored

File diff suppressed because one or more lines are too long

138
dist/fineui.js vendored

@ -1,4 +1,4 @@
/*! time: 2021-1-18 14:00:24 */ /*! time: 2021-1-19 09:30:24 */
/******/ (function(modules) { // webpackBootstrap /******/ (function(modules) { // webpackBootstrap
/******/ // The module cache /******/ // The module cache
/******/ var installedModules = {}; /******/ var installedModules = {};
@ -38535,7 +38535,7 @@ BI.shortcut("bi.linear_segment_button", BI.LinearSegmentButton);
BI.LinearSegment = BI.inherit(BI.Widget, { BI.LinearSegment = BI.inherit(BI.Widget, {
props: { props: {
baseCls: "bi-linear-segment bi-split-bottom", baseCls: "bi-linear-segment",
items: [], items: [],
layouts: [{ layouts: [{
type: "bi.center" type: "bi.center"
@ -41840,14 +41840,12 @@ BI.shortcut("bi.year_picker", BI.YearPicker);
* @extends BI.Widget * @extends BI.Widget
*/ */
BI.DateCalendarPopup = BI.inherit(BI.Widget, { BI.DateCalendarPopup = BI.inherit(BI.Widget, {
_defaultConfig: function () {
var conf = BI.DateCalendarPopup.superclass._defaultConfig.apply(this, arguments); props: {
return BI.extend(conf, {
baseCls: "bi-date-calendar-popup", baseCls: "bi-date-calendar-popup",
min: "1900-01-01", // 最小日期 min: "1900-01-01", // 最小日期
max: "2099-12-31", // 最大日期 max: "2099-12-31", // 最大日期
selectedTime: null selectedTime: null
});
}, },
_createNav: function (v) { _createNav: function (v) {
@ -41867,8 +41865,7 @@ BI.DateCalendarPopup = BI.inherit(BI.Widget, {
return calendar; return calendar;
}, },
_init: function () { render: function () {
BI.DateCalendarPopup.superclass._init.apply(this, arguments);
var self = this, var self = this,
o = this.options; o = this.options;
this.today = BI.getDate(); this.today = BI.getDate();
@ -41922,14 +41919,16 @@ BI.DateCalendarPopup = BI.inherit(BI.Widget, {
self.fireEvent(BI.DateCalendarPopup.EVENT_CHANGE); self.fireEvent(BI.DateCalendarPopup.EVENT_CHANGE);
}); });
BI.createWidget({ return [{
type: "bi.absolute", type: "bi.vertical",
element: this,
items: [{ items: [{
el: this.calendar, el: this.calendar,
left: 5, hgap: 5,
right: 5 bgap: 12
}]
}, { }, {
type: "bi.absolute",
items: [{
el: { el: {
type: "bi.layout", type: "bi.layout",
cls: "bi-split-top" cls: "bi-split-top"
@ -41939,7 +41938,7 @@ BI.DateCalendarPopup = BI.inherit(BI.Widget, {
left: 0, left: 0,
right: 0 right: 0
}] }]
}); }]
}, },
_checkMin: function () { _checkMin: function () {
@ -44564,7 +44563,8 @@ BI.DynamicDateCombo = BI.inherit(BI.Single, {
minDate: "1900-01-01", minDate: "1900-01-01",
maxDate: "2099-12-31", maxDate: "2099-12-31",
format: "", format: "",
allowEdit: true allowEdit: true,
supportDynamic: true,
}, },
@ -44686,6 +44686,7 @@ BI.DynamicDateCombo = BI.inherit(BI.Single, {
popup: { popup: {
el: { el: {
type: "bi.dynamic_date_popup", type: "bi.dynamic_date_popup",
supportDynamic: opts.supportDynamic,
behaviors: opts.behaviors, behaviors: opts.behaviors,
min: opts.minDate, min: opts.minDate,
max: opts.maxDate, max: opts.maxDate,
@ -45025,7 +45026,7 @@ BI.DynamicDatePopup = BI.inherit(BI.Widget, {
props: { props: {
baseCls: "bi-dynamic-date-popup", baseCls: "bi-dynamic-date-popup",
width: 248, width: 248,
height: 344 supportDynamic: true,
}, },
_init: function () { _init: function () {
@ -45034,7 +45035,7 @@ BI.DynamicDatePopup = BI.inherit(BI.Widget, {
this.storeValue = {type: BI.DynamicDateCombo.Static}; this.storeValue = {type: BI.DynamicDateCombo.Static};
BI.createWidget({ BI.createWidget({
element: this, element: this,
type: "bi.vtape", type: "bi.vertical",
items: [{ items: [{
el: this._getTabJson() el: this._getTabJson()
}, { }, {
@ -45079,9 +45080,9 @@ BI.DynamicDatePopup = BI.inherit(BI.Widget, {
self.fireEvent(BI.DynamicDatePopup.BUTTON_OK_EVENT_CHANGE); self.fireEvent(BI.DynamicDatePopup.BUTTON_OK_EVENT_CHANGE);
} }
}] }]
}]] }]],
},
height: 24 height: 24
},
}] }]
}); });
this.setValue(opts.value); this.setValue(opts.value);
@ -45091,11 +45092,15 @@ BI.DynamicDatePopup = BI.inherit(BI.Widget, {
var self = this, o = this.options; var self = this, o = this.options;
return { return {
type: "bi.tab", type: "bi.tab",
logic: {
dynamic: true
},
ref: function () { ref: function () {
self.dateTab = this; self.dateTab = this;
}, },
tab: { tab: {
type: "bi.linear_segment", type: "bi.linear_segment",
invisible: !o.supportDynamic,
cls: "bi-split-bottom", cls: "bi-split-bottom",
height: this.constants.tabHeight, height: this.constants.tabHeight,
items: BI.createItems([{ items: BI.createItems([{
@ -45113,6 +45118,7 @@ BI.DynamicDatePopup = BI.inherit(BI.Widget, {
case BI.DynamicDateCombo.Dynamic: case BI.DynamicDateCombo.Dynamic:
return { return {
type: "bi.dynamic_date_card", type: "bi.dynamic_date_card",
cls: "dynamic-date-pane",
listeners: [{ listeners: [{
eventName: "EVENT_CHANGE", eventName: "EVENT_CHANGE",
action: function () { action: function () {
@ -45634,7 +45640,8 @@ BI.DynamicDateTimeCombo = BI.inherit(BI.Single, {
minDate: "1900-01-01", minDate: "1900-01-01",
maxDate: "2099-12-31", maxDate: "2099-12-31",
format: "", format: "",
allowEdit: true allowEdit: true,
supportDynamic: true
}, },
@ -45761,6 +45768,7 @@ BI.DynamicDateTimeCombo = BI.inherit(BI.Single, {
popup: { popup: {
el: { el: {
type: "bi.dynamic_date_time_popup", type: "bi.dynamic_date_time_popup",
supportDynamic: opts.supportDynamic,
behaviors: opts.behaviors, behaviors: opts.behaviors,
min: opts.minDate, min: opts.minDate,
max: opts.maxDate, max: opts.maxDate,
@ -45964,7 +45972,7 @@ BI.DynamicDateTimePopup = BI.inherit(BI.Widget, {
props: { props: {
baseCls: "bi-dynamic-date-time-popup", baseCls: "bi-dynamic-date-time-popup",
width: 248, width: 248,
height: 385 supportDynamic: true,
}, },
_init: function () { _init: function () {
@ -45973,7 +45981,7 @@ BI.DynamicDateTimePopup = BI.inherit(BI.Widget, {
this.storeValue = {type: BI.DynamicDateCombo.Static}; this.storeValue = {type: BI.DynamicDateCombo.Static};
BI.createWidget({ BI.createWidget({
element: this, element: this,
type: "bi.vtape", type: "bi.vertical",
items: [{ items: [{
el: this._getTabJson() el: this._getTabJson()
}, { }, {
@ -46018,9 +46026,9 @@ BI.DynamicDateTimePopup = BI.inherit(BI.Widget, {
self.fireEvent(BI.DynamicDateTimePopup.BUTTON_OK_EVENT_CHANGE); self.fireEvent(BI.DynamicDateTimePopup.BUTTON_OK_EVENT_CHANGE);
} }
}] }]
}]] }]],
},
height: 24 height: 24
}
}] }]
}); });
this.setValue(opts.value); this.setValue(opts.value);
@ -46030,11 +46038,15 @@ BI.DynamicDateTimePopup = BI.inherit(BI.Widget, {
var self = this, o = this.options; var self = this, o = this.options;
return { return {
type: "bi.tab", type: "bi.tab",
logic: {
dynamic: true
},
ref: function () { ref: function () {
self.dateTab = this; self.dateTab = this;
}, },
tab: { tab: {
type: "bi.linear_segment", type: "bi.linear_segment",
invisible: !o.supportDynamic,
cls: "bi-split-bottom", cls: "bi-split-bottom",
height: this.constants.tabHeight, height: this.constants.tabHeight,
items: BI.createItems([{ items: BI.createItems([{
@ -46052,6 +46064,7 @@ BI.DynamicDateTimePopup = BI.inherit(BI.Widget, {
case BI.DynamicDateCombo.Dynamic: case BI.DynamicDateCombo.Dynamic:
return { return {
type: "bi.dynamic_date_card", type: "bi.dynamic_date_card",
cls: "dynamic-date-pane",
listeners: [{ listeners: [{
eventName: "EVENT_CHANGE", eventName: "EVENT_CHANGE",
action: function () { action: function () {
@ -46067,7 +46080,7 @@ BI.DynamicDateTimePopup = BI.inherit(BI.Widget, {
case BI.DynamicDateCombo.Static: case BI.DynamicDateCombo.Static:
default: default:
return { return {
type: "bi.vtape", type: "bi.vertical",
items: [{ items: [{
type: "bi.date_calendar_popup", type: "bi.date_calendar_popup",
behaviors: o.behaviors, behaviors: o.behaviors,
@ -46088,9 +46101,9 @@ BI.DynamicDateTimePopup = BI.inherit(BI.Widget, {
cls: "bi-split-top", cls: "bi-split-top",
ref: function () { ref: function () {
self.timeSelect = this; self.timeSelect = this;
}
}, },
height: 40 height: 40
}
}] }]
}; };
} }
@ -65669,7 +65682,8 @@ BI.DateInterval = BI.inherit(BI.Single, {
extraCls: "bi-date-interval", extraCls: "bi-date-interval",
minDate: "1900-01-01", minDate: "1900-01-01",
maxDate: "2099-12-31", maxDate: "2099-12-31",
height: 24 height: 24,
supportDynamic: true,
}); });
}, },
_init: function () { _init: function () {
@ -65722,6 +65736,7 @@ BI.DateInterval = BI.inherit(BI.Single, {
var self = this, o = this.options; var self = this, o = this.options;
var combo = BI.createWidget({ var combo = BI.createWidget({
type: "bi.dynamic_date_combo", type: "bi.dynamic_date_combo",
supportDynamic: o.supportDynamic,
minDate: o.minDate, minDate: o.minDate,
maxDate: o.maxDate, maxDate: o.maxDate,
behaviors: o.behaviors, behaviors: o.behaviors,
@ -65882,7 +65897,8 @@ BI.TimeInterval = BI.inherit(BI.Single, {
extraCls: "bi-time-interval", extraCls: "bi-time-interval",
minDate: "1900-01-01", minDate: "1900-01-01",
maxDate: "2099-12-31", maxDate: "2099-12-31",
height: 24 height: 24,
supportDynamic: true
}); });
}, },
_init: function () { _init: function () {
@ -65935,6 +65951,7 @@ BI.TimeInterval = BI.inherit(BI.Single, {
var self = this, o = this.options; var self = this, o = this.options;
var combo = BI.createWidget({ var combo = BI.createWidget({
type: "bi.dynamic_date_time_combo", type: "bi.dynamic_date_time_combo",
supportDynamic: o.supportDynamic,
minDate: o.minDate, minDate: o.minDate,
maxDate: o.maxDate, maxDate: o.maxDate,
behaviors: o.behaviors, behaviors: o.behaviors,
@ -66497,7 +66514,8 @@ BI.DynamicYearCombo = BI.inherit(BI.Widget, {
behaviors: {}, behaviors: {},
minDate: "1900-01-01", // 最小日期 minDate: "1900-01-01", // 最小日期
maxDate: "2099-12-31", // 最大日期 maxDate: "2099-12-31", // 最大日期
height: 22 height: 22,
supportDynamic: true,
}, },
_init: function () { _init: function () {
@ -66554,6 +66572,7 @@ BI.DynamicYearCombo = BI.inherit(BI.Widget, {
stopPropagation: false, stopPropagation: false,
el: { el: {
type: "bi.dynamic_year_popup", type: "bi.dynamic_year_popup",
supportDynamic: o.supportDynamic,
ref: function () { ref: function () {
self.popup = this; self.popup = this;
}, },
@ -66699,14 +66718,14 @@ BI.DynamicYearPopup = BI.inherit(BI.Widget, {
min: "1900-01-01", // 最小日期 min: "1900-01-01", // 最小日期
max: "2099-12-31", // 最大日期, max: "2099-12-31", // 最大日期,
width: 180, width: 180,
height: 240 supportDynamic: true,
}, },
render: function () { render: function () {
var self = this, opts = this.options, c = this.constants; var self = this, opts = this.options, c = this.constants;
this.storeValue = {type: BI.DynamicYearCombo.Static}; this.storeValue = {type: BI.DynamicYearCombo.Static};
return { return {
type: "bi.vtape", type: "bi.vertical",
items: [{ items: [{
el: this._getTabJson() el: this._getTabJson()
}, { }, {
@ -66751,9 +66770,9 @@ BI.DynamicYearPopup = BI.inherit(BI.Widget, {
self.fireEvent(BI.DynamicYearPopup.BUTTON_OK_EVENT_CHANGE); self.fireEvent(BI.DynamicYearPopup.BUTTON_OK_EVENT_CHANGE);
} }
}] }]
}]] }]],
},
height: 24 height: 24
},
}] }]
}; };
}, },
@ -66774,12 +66793,15 @@ BI.DynamicYearPopup = BI.inherit(BI.Widget, {
var self = this, o = this.options; var self = this, o = this.options;
return { return {
type: "bi.tab", type: "bi.tab",
logic: {
dynamic: true
},
ref: function () { ref: function () {
self.dateTab = this; self.dateTab = this;
}, },
tab: { tab: {
type: "bi.linear_segment", type: "bi.linear_segment",
cls: "bi-split-bottom", invisible: !o.supportDynamic,
height: this.constants.tabHeight, height: this.constants.tabHeight,
items: BI.createItems([{ items: BI.createItems([{
text: BI.i18nText("BI-Basic_Year_Fen"), text: BI.i18nText("BI-Basic_Year_Fen"),
@ -66796,6 +66818,7 @@ BI.DynamicYearPopup = BI.inherit(BI.Widget, {
case BI.DynamicYearCombo.Dynamic: case BI.DynamicYearCombo.Dynamic:
return { return {
type: "bi.dynamic_year_card", type: "bi.dynamic_year_card",
cls: "dynamic-year-pane",
min: self.options.min, min: self.options.min,
max: self.options.max, max: self.options.max,
listeners: [{ listeners: [{
@ -67278,6 +67301,7 @@ BI.StaticYearMonthCard = BI.inherit(BI.Widget, {
type: "bi.vertical", type: "bi.vertical",
items: [{ items: [{
type: "bi.year_picker", type: "bi.year_picker",
cls: "bi-split-bottom",
min: o.min, min: o.min,
max: o.max, max: o.max,
ref: function () { ref: function () {
@ -67297,8 +67321,8 @@ BI.StaticYearMonthCard = BI.inherit(BI.Widget, {
} }
}] }]
}, { }, {
el: {
type: "bi.button_group", type: "bi.button_group",
cls: "bi-split-top",
behaviors: o.behaviors, behaviors: o.behaviors,
ref: function () { ref: function () {
self.month = this; self.month = this;
@ -67325,6 +67349,8 @@ BI.StaticYearMonthCard = BI.inherit(BI.Widget, {
self.fireEvent(BI.StaticYearMonthCard.EVENT_CHANGE); self.fireEvent(BI.StaticYearMonthCard.EVENT_CHANGE);
} }
}] }]
},
vgap: 5
}] }]
}; };
}, },
@ -67405,7 +67431,8 @@ BI.DynamicYearMonthCombo = BI.inherit(BI.Single, {
behaviors: {}, behaviors: {},
minDate: "1900-01-01", // 最小日期 minDate: "1900-01-01", // 最小日期
maxDate: "2099-12-31", // 最大日期 maxDate: "2099-12-31", // 最大日期
height: 22 height: 22,
supportDynamic: true
}, },
_init: function () { _init: function () {
@ -67466,6 +67493,7 @@ BI.DynamicYearMonthCombo = BI.inherit(BI.Single, {
stopPropagation: false, stopPropagation: false,
el: { el: {
type: "bi.dynamic_year_month_popup", type: "bi.dynamic_year_month_popup",
supportDynamic: o.supportDynamic,
ref: function () { ref: function () {
self.popup = this; self.popup = this;
}, },
@ -67626,14 +67654,14 @@ BI.DynamicYearMonthPopup = BI.inherit(BI.Widget, {
min: "1900-01-01", // 最小日期 min: "1900-01-01", // 最小日期
max: "2099-12-31", // 最大日期, max: "2099-12-31", // 最大日期,
width: 180, width: 180,
height: 240 supportDynamic: true,
}, },
render: function () { render: function () {
var self = this, opts = this.options, c = this.constants; var self = this, opts = this.options, c = this.constants;
this.storeValue = {type: BI.DynamicYearMonthCombo.Static}; this.storeValue = {type: BI.DynamicYearMonthCombo.Static};
return { return {
type: "bi.vtape", type: "bi.vertical",
items: [{ items: [{
el: this._getTabJson() el: this._getTabJson()
}, { }, {
@ -67678,9 +67706,9 @@ BI.DynamicYearMonthPopup = BI.inherit(BI.Widget, {
self.fireEvent(BI.DynamicYearMonthPopup.BUTTON_OK_EVENT_CHANGE); self.fireEvent(BI.DynamicYearMonthPopup.BUTTON_OK_EVENT_CHANGE);
} }
}] }]
}]] }]],
},
height: 24 height: 24
},
}] }]
}; };
}, },
@ -67701,12 +67729,16 @@ BI.DynamicYearMonthPopup = BI.inherit(BI.Widget, {
var self = this, o = this.options; var self = this, o = this.options;
return { return {
type: "bi.tab", type: "bi.tab",
logic: {
dynamic: true
},
ref: function () { ref: function () {
self.dateTab = this; self.dateTab = this;
}, },
tab: { tab: {
type: "bi.linear_segment", type: "bi.linear_segment",
cls: "bi-split-bottom", cls: "bi-split-bottom",
invisible: !o.supportDynamic,
height: this.constants.tabHeight, height: this.constants.tabHeight,
items: BI.createItems([{ items: BI.createItems([{
text: BI.i18nText("BI-Basic_Year_Month"), text: BI.i18nText("BI-Basic_Year_Month"),
@ -67723,6 +67755,7 @@ BI.DynamicYearMonthPopup = BI.inherit(BI.Widget, {
case BI.DynamicYearCombo.Dynamic: case BI.DynamicYearCombo.Dynamic:
return { return {
type: "bi.dynamic_year_month_card", type: "bi.dynamic_year_month_card",
cls: "dynamic-year-month-pane",
min: self.options.min, min: self.options.min,
max: self.options.max, max: self.options.max,
listeners: [{ listeners: [{
@ -68127,7 +68160,8 @@ BI.YearMonthInterval = BI.inherit(BI.Single, {
props: { props: {
extraCls: "bi-year-month-interval", extraCls: "bi-year-month-interval",
minDate: "1900-01-01", minDate: "1900-01-01",
maxDate: "2099-12-31" maxDate: "2099-12-31",
supportDynamic: true,
}, },
_init: function () { _init: function () {
@ -68181,6 +68215,7 @@ BI.YearMonthInterval = BI.inherit(BI.Single, {
var self = this, o = this.options; var self = this, o = this.options;
var combo = BI.createWidget({ var combo = BI.createWidget({
type: "bi.dynamic_year_month_combo", type: "bi.dynamic_year_month_combo",
supportDynamic: o.supportDynamic,
minDate: o.minDate, minDate: o.minDate,
maxDate: o.maxDate, maxDate: o.maxDate,
behaviors: o.behaviors, behaviors: o.behaviors,
@ -68506,6 +68541,7 @@ BI.StaticYearQuarterCard = BI.inherit(BI.Widget, {
type: "bi.vertical", type: "bi.vertical",
items: [{ items: [{
type: "bi.year_picker", type: "bi.year_picker",
cls: "bi-split-bottom",
ref: function () { ref: function () {
self.yearPicker = this; self.yearPicker = this;
}, },
@ -68525,6 +68561,7 @@ BI.StaticYearQuarterCard = BI.inherit(BI.Widget, {
} }
}] }]
}, { }, {
el: {
type: "bi.button_group", type: "bi.button_group",
behaviors: o.behaviors, behaviors: o.behaviors,
ref: function () { ref: function () {
@ -68544,6 +68581,8 @@ BI.StaticYearQuarterCard = BI.inherit(BI.Widget, {
self.fireEvent(BI.StaticYearQuarterCard.EVENT_CHANGE); self.fireEvent(BI.StaticYearQuarterCard.EVENT_CHANGE);
} }
}] }]
},
vgap: 5
}] }]
}; };
}, },
@ -68621,7 +68660,8 @@ BI.DynamicYearQuarterCombo = BI.inherit(BI.Widget, {
behaviors: {}, behaviors: {},
minDate: "1900-01-01", // 最小日期 minDate: "1900-01-01", // 最小日期
maxDate: "2099-12-31", // 最大日期 maxDate: "2099-12-31", // 最大日期
height: 22 height: 22,
supportDynamic: true,
}, },
_init: function () { _init: function () {
@ -68677,6 +68717,7 @@ BI.DynamicYearQuarterCombo = BI.inherit(BI.Widget, {
stopPropagation: false, stopPropagation: false,
el: { el: {
type: "bi.dynamic_year_quarter_popup", type: "bi.dynamic_year_quarter_popup",
supportDynamic: o.supportDynamic,
ref: function () { ref: function () {
self.popup = this; self.popup = this;
}, },
@ -68815,14 +68856,14 @@ BI.DynamicYearQuarterPopup = BI.inherit(BI.Widget, {
min: "1900-01-01", // 最小日期 min: "1900-01-01", // 最小日期
max: "2099-12-31", // 最大日期, max: "2099-12-31", // 最大日期,
width: 180, width: 180,
height: 240 supportDynamic: true,
}, },
render: function () { render: function () {
var self = this, opts = this.options, c = this.constants; var self = this, opts = this.options, c = this.constants;
this.storeValue = {type: BI.DynamicYearQuarterCombo.Static}; this.storeValue = {type: BI.DynamicYearQuarterCombo.Static};
return { return {
type: "bi.vtape", type: "bi.vertical",
items: [{ items: [{
el: this._getTabJson() el: this._getTabJson()
}, { }, {
@ -68867,9 +68908,9 @@ BI.DynamicYearQuarterPopup = BI.inherit(BI.Widget, {
self.fireEvent(BI.DynamicYearQuarterPopup.BUTTON_OK_EVENT_CHANGE); self.fireEvent(BI.DynamicYearQuarterPopup.BUTTON_OK_EVENT_CHANGE);
} }
}] }]
}]] }]],
},
height: 24 height: 24
},
}] }]
}; };
}, },
@ -68890,12 +68931,16 @@ BI.DynamicYearQuarterPopup = BI.inherit(BI.Widget, {
var self = this, o = this.options; var self = this, o = this.options;
return { return {
type: "bi.tab", type: "bi.tab",
logic: {
dynamic: true
},
ref: function () { ref: function () {
self.dateTab = this; self.dateTab = this;
}, },
tab: { tab: {
type: "bi.linear_segment", type: "bi.linear_segment",
cls: "bi-split-bottom", cls: "bi-split-bottom",
invisible: !o.supportDynamic,
height: this.constants.tabHeight, height: this.constants.tabHeight,
items: BI.createItems([{ items: BI.createItems([{
text: BI.i18nText("BI-Basic_Year_Quarter"), text: BI.i18nText("BI-Basic_Year_Quarter"),
@ -68912,6 +68957,7 @@ BI.DynamicYearQuarterPopup = BI.inherit(BI.Widget, {
case BI.DynamicYearQuarterCombo.Dynamic: case BI.DynamicYearQuarterCombo.Dynamic:
return { return {
type: "bi.dynamic_year_quarter_card", type: "bi.dynamic_year_quarter_card",
cls: "dynamic-year-quarter-pane",
min: self.options.min, min: self.options.min,
max: self.options.max, max: self.options.max,
listeners: [{ listeners: [{

2
dist/fineui.js.map vendored

File diff suppressed because one or more lines are too long

4
dist/fineui.min.css vendored

File diff suppressed because one or more lines are too long

4
dist/fineui.min.js vendored

File diff suppressed because one or more lines are too long

2
dist/fineui.min.js.map vendored

File diff suppressed because one or more lines are too long

138
dist/fineui_without_jquery_polyfill.js vendored

@ -1,4 +1,4 @@
/*! time: 2021-1-18 14:00:24 */ /*! time: 2021-1-19 09:30:24 */
/******/ (function(modules) { // webpackBootstrap /******/ (function(modules) { // webpackBootstrap
/******/ // The module cache /******/ // The module cache
/******/ var installedModules = {}; /******/ var installedModules = {};
@ -34562,7 +34562,7 @@ BI.shortcut("bi.linear_segment_button", BI.LinearSegmentButton);
BI.LinearSegment = BI.inherit(BI.Widget, { BI.LinearSegment = BI.inherit(BI.Widget, {
props: { props: {
baseCls: "bi-linear-segment bi-split-bottom", baseCls: "bi-linear-segment",
items: [], items: [],
layouts: [{ layouts: [{
type: "bi.center" type: "bi.center"
@ -37867,14 +37867,12 @@ BI.shortcut("bi.year_picker", BI.YearPicker);
* @extends BI.Widget * @extends BI.Widget
*/ */
BI.DateCalendarPopup = BI.inherit(BI.Widget, { BI.DateCalendarPopup = BI.inherit(BI.Widget, {
_defaultConfig: function () {
var conf = BI.DateCalendarPopup.superclass._defaultConfig.apply(this, arguments); props: {
return BI.extend(conf, {
baseCls: "bi-date-calendar-popup", baseCls: "bi-date-calendar-popup",
min: "1900-01-01", // 最小日期 min: "1900-01-01", // 最小日期
max: "2099-12-31", // 最大日期 max: "2099-12-31", // 最大日期
selectedTime: null selectedTime: null
});
}, },
_createNav: function (v) { _createNav: function (v) {
@ -37894,8 +37892,7 @@ BI.DateCalendarPopup = BI.inherit(BI.Widget, {
return calendar; return calendar;
}, },
_init: function () { render: function () {
BI.DateCalendarPopup.superclass._init.apply(this, arguments);
var self = this, var self = this,
o = this.options; o = this.options;
this.today = BI.getDate(); this.today = BI.getDate();
@ -37949,14 +37946,16 @@ BI.DateCalendarPopup = BI.inherit(BI.Widget, {
self.fireEvent(BI.DateCalendarPopup.EVENT_CHANGE); self.fireEvent(BI.DateCalendarPopup.EVENT_CHANGE);
}); });
BI.createWidget({ return [{
type: "bi.absolute", type: "bi.vertical",
element: this,
items: [{ items: [{
el: this.calendar, el: this.calendar,
left: 5, hgap: 5,
right: 5 bgap: 12
}]
}, { }, {
type: "bi.absolute",
items: [{
el: { el: {
type: "bi.layout", type: "bi.layout",
cls: "bi-split-top" cls: "bi-split-top"
@ -37966,7 +37965,7 @@ BI.DateCalendarPopup = BI.inherit(BI.Widget, {
left: 0, left: 0,
right: 0 right: 0
}] }]
}); }]
}, },
_checkMin: function () { _checkMin: function () {
@ -40591,7 +40590,8 @@ BI.DynamicDateCombo = BI.inherit(BI.Single, {
minDate: "1900-01-01", minDate: "1900-01-01",
maxDate: "2099-12-31", maxDate: "2099-12-31",
format: "", format: "",
allowEdit: true allowEdit: true,
supportDynamic: true,
}, },
@ -40713,6 +40713,7 @@ BI.DynamicDateCombo = BI.inherit(BI.Single, {
popup: { popup: {
el: { el: {
type: "bi.dynamic_date_popup", type: "bi.dynamic_date_popup",
supportDynamic: opts.supportDynamic,
behaviors: opts.behaviors, behaviors: opts.behaviors,
min: opts.minDate, min: opts.minDate,
max: opts.maxDate, max: opts.maxDate,
@ -41052,7 +41053,7 @@ BI.DynamicDatePopup = BI.inherit(BI.Widget, {
props: { props: {
baseCls: "bi-dynamic-date-popup", baseCls: "bi-dynamic-date-popup",
width: 248, width: 248,
height: 344 supportDynamic: true,
}, },
_init: function () { _init: function () {
@ -41061,7 +41062,7 @@ BI.DynamicDatePopup = BI.inherit(BI.Widget, {
this.storeValue = {type: BI.DynamicDateCombo.Static}; this.storeValue = {type: BI.DynamicDateCombo.Static};
BI.createWidget({ BI.createWidget({
element: this, element: this,
type: "bi.vtape", type: "bi.vertical",
items: [{ items: [{
el: this._getTabJson() el: this._getTabJson()
}, { }, {
@ -41106,9 +41107,9 @@ BI.DynamicDatePopup = BI.inherit(BI.Widget, {
self.fireEvent(BI.DynamicDatePopup.BUTTON_OK_EVENT_CHANGE); self.fireEvent(BI.DynamicDatePopup.BUTTON_OK_EVENT_CHANGE);
} }
}] }]
}]] }]],
},
height: 24 height: 24
},
}] }]
}); });
this.setValue(opts.value); this.setValue(opts.value);
@ -41118,11 +41119,15 @@ BI.DynamicDatePopup = BI.inherit(BI.Widget, {
var self = this, o = this.options; var self = this, o = this.options;
return { return {
type: "bi.tab", type: "bi.tab",
logic: {
dynamic: true
},
ref: function () { ref: function () {
self.dateTab = this; self.dateTab = this;
}, },
tab: { tab: {
type: "bi.linear_segment", type: "bi.linear_segment",
invisible: !o.supportDynamic,
cls: "bi-split-bottom", cls: "bi-split-bottom",
height: this.constants.tabHeight, height: this.constants.tabHeight,
items: BI.createItems([{ items: BI.createItems([{
@ -41140,6 +41145,7 @@ BI.DynamicDatePopup = BI.inherit(BI.Widget, {
case BI.DynamicDateCombo.Dynamic: case BI.DynamicDateCombo.Dynamic:
return { return {
type: "bi.dynamic_date_card", type: "bi.dynamic_date_card",
cls: "dynamic-date-pane",
listeners: [{ listeners: [{
eventName: "EVENT_CHANGE", eventName: "EVENT_CHANGE",
action: function () { action: function () {
@ -41661,7 +41667,8 @@ BI.DynamicDateTimeCombo = BI.inherit(BI.Single, {
minDate: "1900-01-01", minDate: "1900-01-01",
maxDate: "2099-12-31", maxDate: "2099-12-31",
format: "", format: "",
allowEdit: true allowEdit: true,
supportDynamic: true
}, },
@ -41788,6 +41795,7 @@ BI.DynamicDateTimeCombo = BI.inherit(BI.Single, {
popup: { popup: {
el: { el: {
type: "bi.dynamic_date_time_popup", type: "bi.dynamic_date_time_popup",
supportDynamic: opts.supportDynamic,
behaviors: opts.behaviors, behaviors: opts.behaviors,
min: opts.minDate, min: opts.minDate,
max: opts.maxDate, max: opts.maxDate,
@ -41991,7 +41999,7 @@ BI.DynamicDateTimePopup = BI.inherit(BI.Widget, {
props: { props: {
baseCls: "bi-dynamic-date-time-popup", baseCls: "bi-dynamic-date-time-popup",
width: 248, width: 248,
height: 385 supportDynamic: true,
}, },
_init: function () { _init: function () {
@ -42000,7 +42008,7 @@ BI.DynamicDateTimePopup = BI.inherit(BI.Widget, {
this.storeValue = {type: BI.DynamicDateCombo.Static}; this.storeValue = {type: BI.DynamicDateCombo.Static};
BI.createWidget({ BI.createWidget({
element: this, element: this,
type: "bi.vtape", type: "bi.vertical",
items: [{ items: [{
el: this._getTabJson() el: this._getTabJson()
}, { }, {
@ -42045,9 +42053,9 @@ BI.DynamicDateTimePopup = BI.inherit(BI.Widget, {
self.fireEvent(BI.DynamicDateTimePopup.BUTTON_OK_EVENT_CHANGE); self.fireEvent(BI.DynamicDateTimePopup.BUTTON_OK_EVENT_CHANGE);
} }
}] }]
}]] }]],
},
height: 24 height: 24
}
}] }]
}); });
this.setValue(opts.value); this.setValue(opts.value);
@ -42057,11 +42065,15 @@ BI.DynamicDateTimePopup = BI.inherit(BI.Widget, {
var self = this, o = this.options; var self = this, o = this.options;
return { return {
type: "bi.tab", type: "bi.tab",
logic: {
dynamic: true
},
ref: function () { ref: function () {
self.dateTab = this; self.dateTab = this;
}, },
tab: { tab: {
type: "bi.linear_segment", type: "bi.linear_segment",
invisible: !o.supportDynamic,
cls: "bi-split-bottom", cls: "bi-split-bottom",
height: this.constants.tabHeight, height: this.constants.tabHeight,
items: BI.createItems([{ items: BI.createItems([{
@ -42079,6 +42091,7 @@ BI.DynamicDateTimePopup = BI.inherit(BI.Widget, {
case BI.DynamicDateCombo.Dynamic: case BI.DynamicDateCombo.Dynamic:
return { return {
type: "bi.dynamic_date_card", type: "bi.dynamic_date_card",
cls: "dynamic-date-pane",
listeners: [{ listeners: [{
eventName: "EVENT_CHANGE", eventName: "EVENT_CHANGE",
action: function () { action: function () {
@ -42094,7 +42107,7 @@ BI.DynamicDateTimePopup = BI.inherit(BI.Widget, {
case BI.DynamicDateCombo.Static: case BI.DynamicDateCombo.Static:
default: default:
return { return {
type: "bi.vtape", type: "bi.vertical",
items: [{ items: [{
type: "bi.date_calendar_popup", type: "bi.date_calendar_popup",
behaviors: o.behaviors, behaviors: o.behaviors,
@ -42115,9 +42128,9 @@ BI.DynamicDateTimePopup = BI.inherit(BI.Widget, {
cls: "bi-split-top", cls: "bi-split-top",
ref: function () { ref: function () {
self.timeSelect = this; self.timeSelect = this;
}
}, },
height: 40 height: 40
}
}] }]
}; };
} }
@ -61696,7 +61709,8 @@ BI.DateInterval = BI.inherit(BI.Single, {
extraCls: "bi-date-interval", extraCls: "bi-date-interval",
minDate: "1900-01-01", minDate: "1900-01-01",
maxDate: "2099-12-31", maxDate: "2099-12-31",
height: 24 height: 24,
supportDynamic: true,
}); });
}, },
_init: function () { _init: function () {
@ -61749,6 +61763,7 @@ BI.DateInterval = BI.inherit(BI.Single, {
var self = this, o = this.options; var self = this, o = this.options;
var combo = BI.createWidget({ var combo = BI.createWidget({
type: "bi.dynamic_date_combo", type: "bi.dynamic_date_combo",
supportDynamic: o.supportDynamic,
minDate: o.minDate, minDate: o.minDate,
maxDate: o.maxDate, maxDate: o.maxDate,
behaviors: o.behaviors, behaviors: o.behaviors,
@ -61909,7 +61924,8 @@ BI.TimeInterval = BI.inherit(BI.Single, {
extraCls: "bi-time-interval", extraCls: "bi-time-interval",
minDate: "1900-01-01", minDate: "1900-01-01",
maxDate: "2099-12-31", maxDate: "2099-12-31",
height: 24 height: 24,
supportDynamic: true
}); });
}, },
_init: function () { _init: function () {
@ -61962,6 +61978,7 @@ BI.TimeInterval = BI.inherit(BI.Single, {
var self = this, o = this.options; var self = this, o = this.options;
var combo = BI.createWidget({ var combo = BI.createWidget({
type: "bi.dynamic_date_time_combo", type: "bi.dynamic_date_time_combo",
supportDynamic: o.supportDynamic,
minDate: o.minDate, minDate: o.minDate,
maxDate: o.maxDate, maxDate: o.maxDate,
behaviors: o.behaviors, behaviors: o.behaviors,
@ -62524,7 +62541,8 @@ BI.DynamicYearCombo = BI.inherit(BI.Widget, {
behaviors: {}, behaviors: {},
minDate: "1900-01-01", // 最小日期 minDate: "1900-01-01", // 最小日期
maxDate: "2099-12-31", // 最大日期 maxDate: "2099-12-31", // 最大日期
height: 22 height: 22,
supportDynamic: true,
}, },
_init: function () { _init: function () {
@ -62581,6 +62599,7 @@ BI.DynamicYearCombo = BI.inherit(BI.Widget, {
stopPropagation: false, stopPropagation: false,
el: { el: {
type: "bi.dynamic_year_popup", type: "bi.dynamic_year_popup",
supportDynamic: o.supportDynamic,
ref: function () { ref: function () {
self.popup = this; self.popup = this;
}, },
@ -62726,14 +62745,14 @@ BI.DynamicYearPopup = BI.inherit(BI.Widget, {
min: "1900-01-01", // 最小日期 min: "1900-01-01", // 最小日期
max: "2099-12-31", // 最大日期, max: "2099-12-31", // 最大日期,
width: 180, width: 180,
height: 240 supportDynamic: true,
}, },
render: function () { render: function () {
var self = this, opts = this.options, c = this.constants; var self = this, opts = this.options, c = this.constants;
this.storeValue = {type: BI.DynamicYearCombo.Static}; this.storeValue = {type: BI.DynamicYearCombo.Static};
return { return {
type: "bi.vtape", type: "bi.vertical",
items: [{ items: [{
el: this._getTabJson() el: this._getTabJson()
}, { }, {
@ -62778,9 +62797,9 @@ BI.DynamicYearPopup = BI.inherit(BI.Widget, {
self.fireEvent(BI.DynamicYearPopup.BUTTON_OK_EVENT_CHANGE); self.fireEvent(BI.DynamicYearPopup.BUTTON_OK_EVENT_CHANGE);
} }
}] }]
}]] }]],
},
height: 24 height: 24
},
}] }]
}; };
}, },
@ -62801,12 +62820,15 @@ BI.DynamicYearPopup = BI.inherit(BI.Widget, {
var self = this, o = this.options; var self = this, o = this.options;
return { return {
type: "bi.tab", type: "bi.tab",
logic: {
dynamic: true
},
ref: function () { ref: function () {
self.dateTab = this; self.dateTab = this;
}, },
tab: { tab: {
type: "bi.linear_segment", type: "bi.linear_segment",
cls: "bi-split-bottom", invisible: !o.supportDynamic,
height: this.constants.tabHeight, height: this.constants.tabHeight,
items: BI.createItems([{ items: BI.createItems([{
text: BI.i18nText("BI-Basic_Year_Fen"), text: BI.i18nText("BI-Basic_Year_Fen"),
@ -62823,6 +62845,7 @@ BI.DynamicYearPopup = BI.inherit(BI.Widget, {
case BI.DynamicYearCombo.Dynamic: case BI.DynamicYearCombo.Dynamic:
return { return {
type: "bi.dynamic_year_card", type: "bi.dynamic_year_card",
cls: "dynamic-year-pane",
min: self.options.min, min: self.options.min,
max: self.options.max, max: self.options.max,
listeners: [{ listeners: [{
@ -63305,6 +63328,7 @@ BI.StaticYearMonthCard = BI.inherit(BI.Widget, {
type: "bi.vertical", type: "bi.vertical",
items: [{ items: [{
type: "bi.year_picker", type: "bi.year_picker",
cls: "bi-split-bottom",
min: o.min, min: o.min,
max: o.max, max: o.max,
ref: function () { ref: function () {
@ -63324,8 +63348,8 @@ BI.StaticYearMonthCard = BI.inherit(BI.Widget, {
} }
}] }]
}, { }, {
el: {
type: "bi.button_group", type: "bi.button_group",
cls: "bi-split-top",
behaviors: o.behaviors, behaviors: o.behaviors,
ref: function () { ref: function () {
self.month = this; self.month = this;
@ -63352,6 +63376,8 @@ BI.StaticYearMonthCard = BI.inherit(BI.Widget, {
self.fireEvent(BI.StaticYearMonthCard.EVENT_CHANGE); self.fireEvent(BI.StaticYearMonthCard.EVENT_CHANGE);
} }
}] }]
},
vgap: 5
}] }]
}; };
}, },
@ -63432,7 +63458,8 @@ BI.DynamicYearMonthCombo = BI.inherit(BI.Single, {
behaviors: {}, behaviors: {},
minDate: "1900-01-01", // 最小日期 minDate: "1900-01-01", // 最小日期
maxDate: "2099-12-31", // 最大日期 maxDate: "2099-12-31", // 最大日期
height: 22 height: 22,
supportDynamic: true
}, },
_init: function () { _init: function () {
@ -63493,6 +63520,7 @@ BI.DynamicYearMonthCombo = BI.inherit(BI.Single, {
stopPropagation: false, stopPropagation: false,
el: { el: {
type: "bi.dynamic_year_month_popup", type: "bi.dynamic_year_month_popup",
supportDynamic: o.supportDynamic,
ref: function () { ref: function () {
self.popup = this; self.popup = this;
}, },
@ -63653,14 +63681,14 @@ BI.DynamicYearMonthPopup = BI.inherit(BI.Widget, {
min: "1900-01-01", // 最小日期 min: "1900-01-01", // 最小日期
max: "2099-12-31", // 最大日期, max: "2099-12-31", // 最大日期,
width: 180, width: 180,
height: 240 supportDynamic: true,
}, },
render: function () { render: function () {
var self = this, opts = this.options, c = this.constants; var self = this, opts = this.options, c = this.constants;
this.storeValue = {type: BI.DynamicYearMonthCombo.Static}; this.storeValue = {type: BI.DynamicYearMonthCombo.Static};
return { return {
type: "bi.vtape", type: "bi.vertical",
items: [{ items: [{
el: this._getTabJson() el: this._getTabJson()
}, { }, {
@ -63705,9 +63733,9 @@ BI.DynamicYearMonthPopup = BI.inherit(BI.Widget, {
self.fireEvent(BI.DynamicYearMonthPopup.BUTTON_OK_EVENT_CHANGE); self.fireEvent(BI.DynamicYearMonthPopup.BUTTON_OK_EVENT_CHANGE);
} }
}] }]
}]] }]],
},
height: 24 height: 24
},
}] }]
}; };
}, },
@ -63728,12 +63756,16 @@ BI.DynamicYearMonthPopup = BI.inherit(BI.Widget, {
var self = this, o = this.options; var self = this, o = this.options;
return { return {
type: "bi.tab", type: "bi.tab",
logic: {
dynamic: true
},
ref: function () { ref: function () {
self.dateTab = this; self.dateTab = this;
}, },
tab: { tab: {
type: "bi.linear_segment", type: "bi.linear_segment",
cls: "bi-split-bottom", cls: "bi-split-bottom",
invisible: !o.supportDynamic,
height: this.constants.tabHeight, height: this.constants.tabHeight,
items: BI.createItems([{ items: BI.createItems([{
text: BI.i18nText("BI-Basic_Year_Month"), text: BI.i18nText("BI-Basic_Year_Month"),
@ -63750,6 +63782,7 @@ BI.DynamicYearMonthPopup = BI.inherit(BI.Widget, {
case BI.DynamicYearCombo.Dynamic: case BI.DynamicYearCombo.Dynamic:
return { return {
type: "bi.dynamic_year_month_card", type: "bi.dynamic_year_month_card",
cls: "dynamic-year-month-pane",
min: self.options.min, min: self.options.min,
max: self.options.max, max: self.options.max,
listeners: [{ listeners: [{
@ -64154,7 +64187,8 @@ BI.YearMonthInterval = BI.inherit(BI.Single, {
props: { props: {
extraCls: "bi-year-month-interval", extraCls: "bi-year-month-interval",
minDate: "1900-01-01", minDate: "1900-01-01",
maxDate: "2099-12-31" maxDate: "2099-12-31",
supportDynamic: true,
}, },
_init: function () { _init: function () {
@ -64208,6 +64242,7 @@ BI.YearMonthInterval = BI.inherit(BI.Single, {
var self = this, o = this.options; var self = this, o = this.options;
var combo = BI.createWidget({ var combo = BI.createWidget({
type: "bi.dynamic_year_month_combo", type: "bi.dynamic_year_month_combo",
supportDynamic: o.supportDynamic,
minDate: o.minDate, minDate: o.minDate,
maxDate: o.maxDate, maxDate: o.maxDate,
behaviors: o.behaviors, behaviors: o.behaviors,
@ -64533,6 +64568,7 @@ BI.StaticYearQuarterCard = BI.inherit(BI.Widget, {
type: "bi.vertical", type: "bi.vertical",
items: [{ items: [{
type: "bi.year_picker", type: "bi.year_picker",
cls: "bi-split-bottom",
ref: function () { ref: function () {
self.yearPicker = this; self.yearPicker = this;
}, },
@ -64552,6 +64588,7 @@ BI.StaticYearQuarterCard = BI.inherit(BI.Widget, {
} }
}] }]
}, { }, {
el: {
type: "bi.button_group", type: "bi.button_group",
behaviors: o.behaviors, behaviors: o.behaviors,
ref: function () { ref: function () {
@ -64571,6 +64608,8 @@ BI.StaticYearQuarterCard = BI.inherit(BI.Widget, {
self.fireEvent(BI.StaticYearQuarterCard.EVENT_CHANGE); self.fireEvent(BI.StaticYearQuarterCard.EVENT_CHANGE);
} }
}] }]
},
vgap: 5
}] }]
}; };
}, },
@ -64648,7 +64687,8 @@ BI.DynamicYearQuarterCombo = BI.inherit(BI.Widget, {
behaviors: {}, behaviors: {},
minDate: "1900-01-01", // 最小日期 minDate: "1900-01-01", // 最小日期
maxDate: "2099-12-31", // 最大日期 maxDate: "2099-12-31", // 最大日期
height: 22 height: 22,
supportDynamic: true,
}, },
_init: function () { _init: function () {
@ -64704,6 +64744,7 @@ BI.DynamicYearQuarterCombo = BI.inherit(BI.Widget, {
stopPropagation: false, stopPropagation: false,
el: { el: {
type: "bi.dynamic_year_quarter_popup", type: "bi.dynamic_year_quarter_popup",
supportDynamic: o.supportDynamic,
ref: function () { ref: function () {
self.popup = this; self.popup = this;
}, },
@ -64842,14 +64883,14 @@ BI.DynamicYearQuarterPopup = BI.inherit(BI.Widget, {
min: "1900-01-01", // 最小日期 min: "1900-01-01", // 最小日期
max: "2099-12-31", // 最大日期, max: "2099-12-31", // 最大日期,
width: 180, width: 180,
height: 240 supportDynamic: true,
}, },
render: function () { render: function () {
var self = this, opts = this.options, c = this.constants; var self = this, opts = this.options, c = this.constants;
this.storeValue = {type: BI.DynamicYearQuarterCombo.Static}; this.storeValue = {type: BI.DynamicYearQuarterCombo.Static};
return { return {
type: "bi.vtape", type: "bi.vertical",
items: [{ items: [{
el: this._getTabJson() el: this._getTabJson()
}, { }, {
@ -64894,9 +64935,9 @@ BI.DynamicYearQuarterPopup = BI.inherit(BI.Widget, {
self.fireEvent(BI.DynamicYearQuarterPopup.BUTTON_OK_EVENT_CHANGE); self.fireEvent(BI.DynamicYearQuarterPopup.BUTTON_OK_EVENT_CHANGE);
} }
}] }]
}]] }]],
},
height: 24 height: 24
},
}] }]
}; };
}, },
@ -64917,12 +64958,16 @@ BI.DynamicYearQuarterPopup = BI.inherit(BI.Widget, {
var self = this, o = this.options; var self = this, o = this.options;
return { return {
type: "bi.tab", type: "bi.tab",
logic: {
dynamic: true
},
ref: function () { ref: function () {
self.dateTab = this; self.dateTab = this;
}, },
tab: { tab: {
type: "bi.linear_segment", type: "bi.linear_segment",
cls: "bi-split-bottom", cls: "bi-split-bottom",
invisible: !o.supportDynamic,
height: this.constants.tabHeight, height: this.constants.tabHeight,
items: BI.createItems([{ items: BI.createItems([{
text: BI.i18nText("BI-Basic_Year_Quarter"), text: BI.i18nText("BI-Basic_Year_Quarter"),
@ -64939,6 +64984,7 @@ BI.DynamicYearQuarterPopup = BI.inherit(BI.Widget, {
case BI.DynamicYearQuarterCombo.Dynamic: case BI.DynamicYearQuarterCombo.Dynamic:
return { return {
type: "bi.dynamic_year_quarter_card", type: "bi.dynamic_year_quarter_card",
cls: "dynamic-year-quarter-pane",
min: self.options.min, min: self.options.min,
max: self.options.max, max: self.options.max,
listeners: [{ listeners: [{

2
dist/fineui_without_jquery_polyfill.js.map vendored

File diff suppressed because one or more lines are too long

2
dist/font.css vendored

File diff suppressed because one or more lines are too long

2
dist/resource.css vendored

File diff suppressed because one or more lines are too long

2
dist/utils.js vendored

@ -1,4 +1,4 @@
/*! time: 2021-1-18 14:00:24 */ /*! time: 2021-1-19 09:30:24 */
/******/ (function(modules) { // webpackBootstrap /******/ (function(modules) { // webpackBootstrap
/******/ // The module cache /******/ // The module cache
/******/ var installedModules = {}; /******/ var installedModules = {};

2
dist/utils.min.js vendored

File diff suppressed because one or more lines are too long

2
package.json

@ -1,6 +1,6 @@
{ {
"name": "fineui", "name": "fineui",
"version": "2.0.20210118140225", "version": "2.0.20210119093226",
"description": "fineui", "description": "fineui",
"main": "dist/fineui.min.js", "main": "dist/fineui.min.js",
"types": "dist/lib/index.d.ts", "types": "dist/lib/index.d.ts",

Loading…
Cancel
Save