@bbn/bbn 1.0.102 → 1.0.103
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 +3 -3
- package/dist/fn/datetime/calendar.js +1 -1
- package/package.json +1 -1
package/dist/bundle.js
CHANGED
|
@@ -3695,16 +3695,16 @@
|
|
|
3695
3695
|
"use strict";
|
|
3696
3696
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3697
3697
|
exports.calendar = void 0;
|
|
3698
|
-
dayjs_min_js_1.
|
|
3698
|
+
dayjs_min_js_1.default.extend(window['dayjs_plugin_calendar']);
|
|
3699
3699
|
const calendar = function (d, wrong_result = false) {
|
|
3700
|
-
if (undefined === dayjs_min_js_1.
|
|
3700
|
+
if (undefined === dayjs_min_js_1.default) {
|
|
3701
3701
|
return (0, fdate_js_1.fdate)(d, wrong_result);
|
|
3702
3702
|
}
|
|
3703
3703
|
let r = (0, date_js_3.date)(d);
|
|
3704
3704
|
if (!(0, isDate_js_5.isDate)(r)) {
|
|
3705
3705
|
return wrong_result && (0, isString_js_8.isString)(wrong_result) ? wrong_result : '';
|
|
3706
3706
|
}
|
|
3707
|
-
return (0, dayjs_min_js_1.
|
|
3707
|
+
return (0, dayjs_min_js_1.default)(r).calendar(null, {
|
|
3708
3708
|
sameDay: '[' + bbn._('Today') + ']',
|
|
3709
3709
|
nextDay: '[' + bbn._('Tomorrow') + ']',
|
|
3710
3710
|
nextWeek: 'ddd D',
|
|
@@ -2,7 +2,7 @@ import { fdate } from "./fdate.js";
|
|
|
2
2
|
import { date } from "./date.js";
|
|
3
3
|
import { isDate } from "../type/isDate.js";
|
|
4
4
|
import { isString } from "../type/isString.js";
|
|
5
|
-
import
|
|
5
|
+
import dayjs from '../../../node_modules/dayjs/dayjs.min.js';
|
|
6
6
|
dayjs.extend(window['dayjs_plugin_calendar']);
|
|
7
7
|
const calendar = function (d, wrong_result = false) {
|
|
8
8
|
if (undefined === dayjs) {
|