@bbn/bbn 1.0.104 → 1.0.105

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/bundle.js CHANGED
@@ -3695,7 +3695,6 @@
3695
3695
  "use strict";
3696
3696
  Object.defineProperty(exports, "__esModule", { value: true });
3697
3697
  exports.calendar = void 0;
3698
- dayjs_min_js_1.default.extend(window['dayjs_plugin_calendar']);
3699
3698
  const calendar = function (d, wrong_result = false) {
3700
3699
  if (undefined === dayjs_min_js_1.default) {
3701
3700
  return (0, fdate_js_1.fdate)(d, wrong_result);
@@ -3704,14 +3703,7 @@
3704
3703
  if (!(0, isDate_js_5.isDate)(r)) {
3705
3704
  return wrong_result && (0, isString_js_8.isString)(wrong_result) ? wrong_result : '';
3706
3705
  }
3707
- return (0, dayjs_min_js_1.default)(r).calendar(null, {
3708
- sameDay: '[' + bbn._('Today') + ']',
3709
- nextDay: '[' + bbn._('Tomorrow') + ']',
3710
- nextWeek: 'ddd D',
3711
- lastDay: '[' + bbn._('Yesterday') + ']',
3712
- lastWeek: 'ddd D',
3713
- sameElse: 'L',
3714
- });
3706
+ return '';
3715
3707
  };
3716
3708
  exports.calendar = calendar;
3717
3709
  });
@@ -3,7 +3,6 @@ import { fdate } from "./fdate.js";
3
3
  import { date } from "./date.js";
4
4
  import { isDate } from "../type/isDate.js";
5
5
  import { isString } from "../type/isString.js";
6
- dayjs.extend(window['dayjs_plugin_calendar']);
7
6
  const calendar = function (d, wrong_result = false) {
8
7
  if (undefined === dayjs) {
9
8
  return fdate(d, wrong_result);
@@ -12,13 +11,6 @@ const calendar = function (d, wrong_result = false) {
12
11
  if (!isDate(r)) {
13
12
  return wrong_result && isString(wrong_result) ? wrong_result : '';
14
13
  }
15
- return dayjs(r).calendar(null, {
16
- sameDay: '[' + bbn._('Today') + ']',
17
- nextDay: '[' + bbn._('Tomorrow') + ']',
18
- nextWeek: 'ddd D',
19
- lastDay: '[' + bbn._('Yesterday') + ']',
20
- lastWeek: 'ddd D',
21
- sameElse: 'L',
22
- });
14
+ return '';
23
15
  };
24
16
  export { calendar };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbn/bbn",
3
- "version": "1.0.104",
3
+ "version": "1.0.105",
4
4
  "description": "Javascript toolkit",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",