guy 6 years ago
parent
commit
547612eb47
  1. 28
      dist/bundle.js
  2. 66
      dist/bundle.min.js
  3. 28
      dist/core.js
  4. 30
      dist/fineui.js
  5. 66
      dist/fineui.min.js
  6. 28
      dist/fineui_without_jquery_polyfill.js
  7. 2
      dist/polyfill.js
  8. 22
      dist/utils.js
  9. 8
      dist/utils.min.js
  10. 544
      package-lock.json
  11. 2
      src/core/foundation.js
  12. 2
      src/core/proto/date.i18n.js
  13. 20
      src/core/proto/date.js
  14. 4
      src/core/shortcut.js

28
dist/bundle.js vendored

@ -15,7 +15,7 @@ if (typeof window !== "undefined") {
_global = this; _global = this;
} }
if (_global.BI == null) { if (_global.BI == null) {
_global.BI = {}; _global.BI = {prepares: []};
}/*! }/*!
* jQuery JavaScript Library v1.9.1 * jQuery JavaScript Library v1.9.1
* http://jquery.com/ * http://jquery.com/
@ -21882,6 +21882,10 @@ _.extend(BI.OB.prototype, {
}; };
BI.createWidget = function (item, options, context) { BI.createWidget = function (item, options, context) {
// 先把准备环境准备好
while(BI.prepares && BI.prepares.length > 0) {
BI.prepares.shift()();
}
var el, w; var el, w;
item || (item = {}); item || (item = {});
if (BI.isWidget(options)) { if (BI.isWidget(options)) {
@ -28854,7 +28858,7 @@ _.extend(Array.prototype, {
} }
} }
}); });
_global.$ && $(function () { BI.prepares.push(function () {
// 牵扯到国际化这些常量在页面加载后再生效 // 牵扯到国际化这些常量在页面加载后再生效
// full day names // full day names
Date._DN = [BI.i18nText("BI-Basic_Sunday"), Date._DN = [BI.i18nText("BI-Basic_Sunday"),
@ -29057,25 +29061,7 @@ Date.prototype.getWeekEndDate = function () {
return this.getOffsetDate(Date._OFFSET[w < startOfWeek ? (7 + w - startOfWeek) : (w - startOfWeek)] + 6); return this.getOffsetDate(Date._OFFSET[w < startOfWeek ? (7 + w - startOfWeek) : (w - startOfWeek)] + 6);
}; };
/** Checks date and time equality */ // 格式化打印日期
Date.prototype.equalsTo = function (date) {
return ((this.getFullYear() == date.getFullYear()) &&
(this.getMonth() == date.getMonth()) &&
(this.getDate() == date.getDate()) &&
(this.getHours() == date.getHours()) &&
(this.getMinutes() == date.getMinutes()) &&
(this.getSeconds() == date.getSeconds()));
};
/** Set only the year, month, date parts (keep existing time) */
Date.prototype.setDateOnly = function (date) {
var tmp = BI.getDate(date);
this.setDate(1);
this.setFullYear(tmp.getFullYear());
this.setMonth(tmp.getMonth());
this.setDate(tmp.getDate());
};
/** Prints the date in a string according to the given format. */
Date.prototype.print = function (str) { Date.prototype.print = function (str) {
var m = this.getMonth(); var m = this.getMonth();
var d = this.getDate(); var d = this.getDate();

66
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

28
dist/core.js vendored

@ -15,7 +15,7 @@ if (typeof window !== "undefined") {
_global = this; _global = this;
} }
if (_global.BI == null) { if (_global.BI == null) {
_global.BI = {}; _global.BI = {prepares: []};
}/*! }/*!
* jQuery JavaScript Library v1.9.1 * jQuery JavaScript Library v1.9.1
* http://jquery.com/ * http://jquery.com/
@ -21882,6 +21882,10 @@ _.extend(BI.OB.prototype, {
}; };
BI.createWidget = function (item, options, context) { BI.createWidget = function (item, options, context) {
// 先把准备环境准备好
while(BI.prepares && BI.prepares.length > 0) {
BI.prepares.shift()();
}
var el, w; var el, w;
item || (item = {}); item || (item = {});
if (BI.isWidget(options)) { if (BI.isWidget(options)) {
@ -28854,7 +28858,7 @@ _.extend(Array.prototype, {
} }
} }
}); });
_global.$ && $(function () { BI.prepares.push(function () {
// 牵扯到国际化这些常量在页面加载后再生效 // 牵扯到国际化这些常量在页面加载后再生效
// full day names // full day names
Date._DN = [BI.i18nText("BI-Basic_Sunday"), Date._DN = [BI.i18nText("BI-Basic_Sunday"),
@ -29057,25 +29061,7 @@ Date.prototype.getWeekEndDate = function () {
return this.getOffsetDate(Date._OFFSET[w < startOfWeek ? (7 + w - startOfWeek) : (w - startOfWeek)] + 6); return this.getOffsetDate(Date._OFFSET[w < startOfWeek ? (7 + w - startOfWeek) : (w - startOfWeek)] + 6);
}; };
/** Checks date and time equality */ // 格式化打印日期
Date.prototype.equalsTo = function (date) {
return ((this.getFullYear() == date.getFullYear()) &&
(this.getMonth() == date.getMonth()) &&
(this.getDate() == date.getDate()) &&
(this.getHours() == date.getHours()) &&
(this.getMinutes() == date.getMinutes()) &&
(this.getSeconds() == date.getSeconds()));
};
/** Set only the year, month, date parts (keep existing time) */
Date.prototype.setDateOnly = function (date) {
var tmp = BI.getDate(date);
this.setDate(1);
this.setFullYear(tmp.getFullYear());
this.setMonth(tmp.getMonth());
this.setDate(tmp.getDate());
};
/** Prints the date in a string according to the given format. */
Date.prototype.print = function (str) { Date.prototype.print = function (str) {
var m = this.getMonth(); var m = this.getMonth();
var d = this.getDate(); var d = this.getDate();

30
dist/fineui.js vendored

@ -15,7 +15,7 @@ if (typeof window !== "undefined") {
_global = this; _global = this;
} }
if (_global.BI == null) { if (_global.BI == null) {
_global.BI = {}; _global.BI = {prepares: []};
}// Production steps of ECMA-262, Edition 5, 15.4.4.14 }// Production steps of ECMA-262, Edition 5, 15.4.4.14
// Reference: http://es5.github.io/#x15.4.4.14 // Reference: http://es5.github.io/#x15.4.4.14
if (!Array.prototype.indexOf) { if (!Array.prototype.indexOf) {
@ -254,7 +254,7 @@ if (typeof window !== "undefined") {
_global = this; _global = this;
} }
if (_global.BI == null) { if (_global.BI == null) {
_global.BI = {}; _global.BI = {prepares: []};
}/*! }/*!
* jQuery JavaScript Library v1.9.1 * jQuery JavaScript Library v1.9.1
* http://jquery.com/ * http://jquery.com/
@ -22121,6 +22121,10 @@ _.extend(BI.OB.prototype, {
}; };
BI.createWidget = function (item, options, context) { BI.createWidget = function (item, options, context) {
// 先把准备环境准备好
while(BI.prepares && BI.prepares.length > 0) {
BI.prepares.shift()();
}
var el, w; var el, w;
item || (item = {}); item || (item = {});
if (BI.isWidget(options)) { if (BI.isWidget(options)) {
@ -29093,7 +29097,7 @@ _.extend(Array.prototype, {
} }
} }
}); });
_global.$ && $(function () { BI.prepares.push(function () {
// 牵扯到国际化这些常量在页面加载后再生效 // 牵扯到国际化这些常量在页面加载后再生效
// full day names // full day names
Date._DN = [BI.i18nText("BI-Basic_Sunday"), Date._DN = [BI.i18nText("BI-Basic_Sunday"),
@ -29296,25 +29300,7 @@ Date.prototype.getWeekEndDate = function () {
return this.getOffsetDate(Date._OFFSET[w < startOfWeek ? (7 + w - startOfWeek) : (w - startOfWeek)] + 6); return this.getOffsetDate(Date._OFFSET[w < startOfWeek ? (7 + w - startOfWeek) : (w - startOfWeek)] + 6);
}; };
/** Checks date and time equality */ // 格式化打印日期
Date.prototype.equalsTo = function (date) {
return ((this.getFullYear() == date.getFullYear()) &&
(this.getMonth() == date.getMonth()) &&
(this.getDate() == date.getDate()) &&
(this.getHours() == date.getHours()) &&
(this.getMinutes() == date.getMinutes()) &&
(this.getSeconds() == date.getSeconds()));
};
/** Set only the year, month, date parts (keep existing time) */
Date.prototype.setDateOnly = function (date) {
var tmp = BI.getDate(date);
this.setDate(1);
this.setFullYear(tmp.getFullYear());
this.setMonth(tmp.getMonth());
this.setDate(tmp.getDate());
};
/** Prints the date in a string according to the given format. */
Date.prototype.print = function (str) { Date.prototype.print = function (str) {
var m = this.getMonth(); var m = this.getMonth();
var d = this.getDate(); var d = this.getDate();

66
dist/fineui.min.js vendored

File diff suppressed because one or more lines are too long

28
dist/fineui_without_jquery_polyfill.js vendored

@ -15,7 +15,7 @@ if (typeof window !== "undefined") {
_global = this; _global = this;
} }
if (_global.BI == null) { if (_global.BI == null) {
_global.BI = {}; _global.BI = {prepares: []};
}/** }/**
* @license * @license
* Lodash (Custom Build) <https://lodash.com/> * Lodash (Custom Build) <https://lodash.com/>
@ -12267,6 +12267,10 @@ _.extend(BI.OB.prototype, {
}; };
BI.createWidget = function (item, options, context) { BI.createWidget = function (item, options, context) {
// 先把准备环境准备好
while(BI.prepares && BI.prepares.length > 0) {
BI.prepares.shift()();
}
var el, w; var el, w;
item || (item = {}); item || (item = {});
if (BI.isWidget(options)) { if (BI.isWidget(options)) {
@ -18648,7 +18652,7 @@ _.extend(Array.prototype, {
} }
} }
}); });
_global.$ && $(function () { BI.prepares.push(function () {
// 牵扯到国际化这些常量在页面加载后再生效 // 牵扯到国际化这些常量在页面加载后再生效
// full day names // full day names
Date._DN = [BI.i18nText("BI-Basic_Sunday"), Date._DN = [BI.i18nText("BI-Basic_Sunday"),
@ -18851,25 +18855,7 @@ Date.prototype.getWeekEndDate = function () {
return this.getOffsetDate(Date._OFFSET[w < startOfWeek ? (7 + w - startOfWeek) : (w - startOfWeek)] + 6); return this.getOffsetDate(Date._OFFSET[w < startOfWeek ? (7 + w - startOfWeek) : (w - startOfWeek)] + 6);
}; };
/** Checks date and time equality */ // 格式化打印日期
Date.prototype.equalsTo = function (date) {
return ((this.getFullYear() == date.getFullYear()) &&
(this.getMonth() == date.getMonth()) &&
(this.getDate() == date.getDate()) &&
(this.getHours() == date.getHours()) &&
(this.getMinutes() == date.getMinutes()) &&
(this.getSeconds() == date.getSeconds()));
};
/** Set only the year, month, date parts (keep existing time) */
Date.prototype.setDateOnly = function (date) {
var tmp = BI.getDate(date);
this.setDate(1);
this.setFullYear(tmp.getFullYear());
this.setMonth(tmp.getMonth());
this.setDate(tmp.getDate());
};
/** Prints the date in a string according to the given format. */
Date.prototype.print = function (str) { Date.prototype.print = function (str) {
var m = this.getMonth(); var m = this.getMonth();
var d = this.getDate(); var d = this.getDate();

2
dist/polyfill.js vendored

@ -15,7 +15,7 @@ if (typeof window !== "undefined") {
_global = this; _global = this;
} }
if (_global.BI == null) { if (_global.BI == null) {
_global.BI = {}; _global.BI = {prepares: []};
}// Production steps of ECMA-262, Edition 5, 15.4.4.14 }// Production steps of ECMA-262, Edition 5, 15.4.4.14
// Reference: http://es5.github.io/#x15.4.4.14 // Reference: http://es5.github.io/#x15.4.4.14
if (!Array.prototype.indexOf) { if (!Array.prototype.indexOf) {

22
dist/utils.js vendored

@ -15,7 +15,7 @@ if (typeof window !== "undefined") {
_global = this; _global = this;
} }
if (_global.BI == null) { if (_global.BI == null) {
_global.BI = {}; _global.BI = {prepares: []};
}/** }/**
* @license * @license
* Lodash (Custom Build) <https://lodash.com/> * Lodash (Custom Build) <https://lodash.com/>
@ -10828,25 +10828,7 @@ Date.prototype.getWeekEndDate = function () {
return this.getOffsetDate(Date._OFFSET[w < startOfWeek ? (7 + w - startOfWeek) : (w - startOfWeek)] + 6); return this.getOffsetDate(Date._OFFSET[w < startOfWeek ? (7 + w - startOfWeek) : (w - startOfWeek)] + 6);
}; };
/** Checks date and time equality */ // 格式化打印日期
Date.prototype.equalsTo = function (date) {
return ((this.getFullYear() == date.getFullYear()) &&
(this.getMonth() == date.getMonth()) &&
(this.getDate() == date.getDate()) &&
(this.getHours() == date.getHours()) &&
(this.getMinutes() == date.getMinutes()) &&
(this.getSeconds() == date.getSeconds()));
};
/** Set only the year, month, date parts (keep existing time) */
Date.prototype.setDateOnly = function (date) {
var tmp = BI.getDate(date);
this.setDate(1);
this.setFullYear(tmp.getFullYear());
this.setMonth(tmp.getMonth());
this.setDate(tmp.getDate());
};
/** Prints the date in a string according to the given format. */
Date.prototype.print = function (str) { Date.prototype.print = function (str) {
var m = this.getMonth(); var m = this.getMonth();
var d = this.getDate(); var d = this.getDate();

8
dist/utils.min.js vendored

File diff suppressed because one or more lines are too long

544
package-lock.json generated

File diff suppressed because it is too large Load Diff

2
src/core/foundation.js vendored

@ -15,5 +15,5 @@ if (typeof window !== "undefined") {
_global = this; _global = this;
} }
if (_global.BI == null) { if (_global.BI == null) {
_global.BI = {}; _global.BI = {prepares: []};
} }

2
src/core/proto/date.i18n.js

@ -1,4 +1,4 @@
_global.$ && $(function () { BI.prepares.push(function () {
// 牵扯到国际化这些常量在页面加载后再生效 // 牵扯到国际化这些常量在页面加载后再生效
// full day names // full day names
Date._DN = [BI.i18nText("BI-Basic_Sunday"), Date._DN = [BI.i18nText("BI-Basic_Sunday"),

20
src/core/proto/date.js

@ -137,25 +137,7 @@ Date.prototype.getWeekEndDate = function () {
return this.getOffsetDate(Date._OFFSET[w < startOfWeek ? (7 + w - startOfWeek) : (w - startOfWeek)] + 6); return this.getOffsetDate(Date._OFFSET[w < startOfWeek ? (7 + w - startOfWeek) : (w - startOfWeek)] + 6);
}; };
/** Checks date and time equality */ // 格式化打印日期
Date.prototype.equalsTo = function (date) {
return ((this.getFullYear() == date.getFullYear()) &&
(this.getMonth() == date.getMonth()) &&
(this.getDate() == date.getDate()) &&
(this.getHours() == date.getHours()) &&
(this.getMinutes() == date.getMinutes()) &&
(this.getSeconds() == date.getSeconds()));
};
/** Set only the year, month, date parts (keep existing time) */
Date.prototype.setDateOnly = function (date) {
var tmp = BI.getDate(date);
this.setDate(1);
this.setFullYear(tmp.getFullYear());
this.setMonth(tmp.getMonth());
this.setDate(tmp.getDate());
};
/** Prints the date in a string according to the given format. */
Date.prototype.print = function (str) { Date.prototype.print = function (str) {
var m = this.getMonth(); var m = this.getMonth();
var d = this.getDate(); var d = this.getDate();

4
src/core/shortcut.js

@ -18,6 +18,10 @@
}; };
BI.createWidget = function (item, options, context) { BI.createWidget = function (item, options, context) {
// 先把准备环境准备好
while(BI.prepares && BI.prepares.length > 0) {
BI.prepares.shift()();
}
var el, w; var el, w;
item || (item = {}); item || (item = {});
if (BI.isWidget(options)) { if (BI.isWidget(options)) {

Loading…
Cancel
Save