bn-calendar 1.2.1 → 1.2.3

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.
@@ -1,4 +1,20 @@
1
- import { a as NumberRange, c as Repeat, n as BanglaDigit, o as DateFormatToken, s as LooseLiteral, t as $BnOnes } from "./types-CCT6pdoz.cjs";
1
+ /**
2
+ * Copyright 2026 - present Nazmul Hassan
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ import { a as NumberRange, c as Repeat, n as BanglaDigit, o as DateFormatToken, s as LooseLiteral, t as $BnOnes } from "./types-DNIQWvTX.mjs";
2
18
 
3
19
  //#region src/constants.d.ts
4
20
  /** Bangla month days table for different variants */
@@ -1,3 +1,19 @@
1
+ /**
2
+ * Copyright 2026 - present Nazmul Hassan
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
1
17
  //#region node_modules/.pnpm/nhb-toolbox@4.30.1/node_modules/nhb-toolbox/dist/dts/utils/types.d.ts
2
18
  /**
3
19
  * * Broadens a literal union (typically `string` or `number`) to also accept any other value of the base type, without losing IntelliSense autocomplete for the provided literals.
@@ -1,3 +1,19 @@
1
+ /**
2
+ * Copyright 2026 - present Nazmul Hassan
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
1
17
  //#region node_modules/.pnpm/nhb-toolbox@4.30.1/node_modules/nhb-toolbox/dist/dts/utils/types.d.ts
2
18
  /**
3
19
  * * Broadens a literal union (typically `string` or `number`) to also accept any other value of the base type, without losing IntelliSense autocomplete for the provided literals.
@@ -1,4 +1,20 @@
1
- import { a as NumberRange, c as Repeat, n as BanglaDigit, o as DateFormatToken, s as LooseLiteral, t as $BnOnes } from "./types-dBV02J9_.mjs";
1
+ /**
2
+ * Copyright 2026 - present Nazmul Hassan
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ import { a as NumberRange, c as Repeat, n as BanglaDigit, o as DateFormatToken, s as LooseLiteral, t as $BnOnes } from "./types-D3WdI9_e.cjs";
2
18
 
3
19
  //#region src/constants.d.ts
4
20
  /** Bangla month days table for different variants */
package/dist/types.cjs CHANGED
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Copyright 2026 - present Nazmul Hassan
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
package/dist/types.d.cts CHANGED
@@ -1,2 +1,18 @@
1
- import { C as MSToken, D as TimeToken, E as SecondToken, O as YearToken, S as HourToken, T as MonthToken, _ as BnCalendarConfig, a as $BnEn, b as DateWithSeasonToken, c as BanglaDate, d as BanglaDateOptions, f as BanglaDayName, g as BanglaYear, h as BanglaSeasonName, i as $BnDatePadded, l as BanglaDateFormat, m as BanglaMonthName, n as $BanglaMonthDate, o as $BnMonthPadded, p as BanglaMonth, r as $BanglaYear, s as $BnYearPadded, t as $BanglaMonth, u as BanglaDateObject, v as BnCalendarVariant, w as MinuteToken, x as DayToken, y as DateToken } from "./types-x2X_wAiB.cjs";
1
+ /**
2
+ * Copyright 2026 - present Nazmul Hassan
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ import { C as MSToken, D as TimeToken, E as SecondToken, O as YearToken, S as HourToken, T as MonthToken, _ as BnCalendarConfig, a as $BnEn, b as DateWithSeasonToken, c as BanglaDate, d as BanglaDateOptions, f as BanglaDayName, g as BanglaYear, h as BanglaSeasonName, i as $BnDatePadded, l as BanglaDateFormat, m as BanglaMonthName, n as $BanglaMonthDate, o as $BnMonthPadded, p as BanglaMonth, r as $BanglaYear, s as $BnYearPadded, t as $BanglaMonth, u as BanglaDateObject, v as BnCalendarVariant, w as MinuteToken, x as DayToken, y as DateToken } from "./types-L7OC1yyG.cjs";
2
18
  export { $BanglaMonth, $BanglaMonthDate, $BanglaYear, $BnDatePadded, $BnEn, $BnMonthPadded, $BnYearPadded, BanglaDate, BanglaDateFormat, BanglaDateObject, BanglaDateOptions, BanglaDayName, BanglaMonth, BanglaMonthName, BanglaSeasonName, BanglaYear, BnCalendarConfig, BnCalendarVariant, DateToken, DateWithSeasonToken, DayToken, HourToken, MSToken, MinuteToken, MonthToken, SecondToken, TimeToken, YearToken };
package/dist/types.d.mts CHANGED
@@ -1,2 +1,18 @@
1
- import { C as MSToken, D as TimeToken, E as SecondToken, O as YearToken, S as HourToken, T as MonthToken, _ as BnCalendarConfig, a as $BnEn, b as DateWithSeasonToken, c as BanglaDate, d as BanglaDateOptions, f as BanglaDayName, g as BanglaYear, h as BanglaSeasonName, i as $BnDatePadded, l as BanglaDateFormat, m as BanglaMonthName, n as $BanglaMonthDate, o as $BnMonthPadded, p as BanglaMonth, r as $BanglaYear, s as $BnYearPadded, t as $BanglaMonth, u as BanglaDateObject, v as BnCalendarVariant, w as MinuteToken, x as DayToken, y as DateToken } from "./types-DuIqPJJ1.mjs";
1
+ /**
2
+ * Copyright 2026 - present Nazmul Hassan
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ import { C as MSToken, D as TimeToken, E as SecondToken, O as YearToken, S as HourToken, T as MonthToken, _ as BnCalendarConfig, a as $BnEn, b as DateWithSeasonToken, c as BanglaDate, d as BanglaDateOptions, f as BanglaDayName, g as BanglaYear, h as BanglaSeasonName, i as $BnDatePadded, l as BanglaDateFormat, m as BanglaMonthName, n as $BanglaMonthDate, o as $BnMonthPadded, p as BanglaMonth, r as $BanglaYear, s as $BnYearPadded, t as $BanglaMonth, u as BanglaDateObject, v as BnCalendarVariant, w as MinuteToken, x as DayToken, y as DateToken } from "./types-B8dz3JYA.mjs";
2
18
  export { $BanglaMonth, $BanglaMonthDate, $BanglaYear, $BnDatePadded, $BnEn, $BnMonthPadded, $BnYearPadded, BanglaDate, BanglaDateFormat, BanglaDateObject, BanglaDateOptions, BanglaDayName, BanglaMonth, BanglaMonthName, BanglaSeasonName, BanglaYear, BnCalendarConfig, BnCalendarVariant, DateToken, DateWithSeasonToken, DayToken, HourToken, MSToken, MinuteToken, MonthToken, SecondToken, TimeToken, YearToken };
package/dist/types.mjs CHANGED
@@ -1 +1,17 @@
1
- export{};
1
+ /**
2
+ * Copyright 2026 - present Nazmul Hassan
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ export { };
package/dist/utils.cjs CHANGED
@@ -1 +1,21 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./convert-3jw8Rx7e.cjs`);exports.banglaToDigit=e.t,exports.digitToBangla=e.n;
1
+ /**
2
+ * Copyright 2026 - present Nazmul Hassan
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
18
+ const require_convert = require('./convert-CuE2E2-u.cjs');
19
+
20
+ exports.banglaToDigit = require_convert.banglaToDigit;
21
+ exports.digitToBangla = require_convert.digitToBangla;
package/dist/utils.d.cts CHANGED
@@ -1,4 +1,20 @@
1
- import { r as BnDigitResult } from "./types-CCT6pdoz.cjs";
1
+ /**
2
+ * Copyright 2026 - present Nazmul Hassan
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ import { r as BnDigitResult } from "./types-D3WdI9_e.cjs";
2
18
 
3
19
  //#region node_modules/.pnpm/nhb-toolbox@4.30.1/node_modules/nhb-toolbox/dist/dts/string/types.d.ts
4
20
  declare global {
package/dist/utils.d.mts CHANGED
@@ -1,4 +1,20 @@
1
- import { r as BnDigitResult } from "./types-dBV02J9_.mjs";
1
+ /**
2
+ * Copyright 2026 - present Nazmul Hassan
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ import { r as BnDigitResult } from "./types-DNIQWvTX.mjs";
2
18
 
3
19
  //#region node_modules/.pnpm/nhb-toolbox@4.30.1/node_modules/nhb-toolbox/dist/dts/string/types.d.ts
4
20
  declare global {
package/dist/utils.mjs CHANGED
@@ -1 +1,19 @@
1
- import{n as e,t}from"./convert-Byg6yAIU.mjs";export{t as banglaToDigit,e as digitToBangla};
1
+ /**
2
+ * Copyright 2026 - present Nazmul Hassan
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ import { n as digitToBangla, t as banglaToDigit } from "./convert-B3CETM-p.mjs";
18
+
19
+ export { banglaToDigit, digitToBangla };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bn-calendar",
3
- "version": "1.2.1",
3
+ "version": "1.2.3",
4
4
  "description": "Comprehensive Bengali calendar system library built for any JavaScript and TypeScript environment.",
5
5
  "main": "./dist/index.cjs",
6
6
  "type": "module",
@@ -10,6 +10,9 @@
10
10
  "bangla-calendar",
11
11
  "bengali-calendar",
12
12
  "date",
13
+ "nhb",
14
+ "nazmul-nhb",
15
+ "nhb-toolbox",
13
16
  "calendar",
14
17
  "bangla",
15
18
  "bengali",
@@ -1 +0,0 @@
1
- function e(e){return typeof e==`number`&&Number.isFinite(e)}function t(e){return typeof e==`string`}function n(t){return e(t)&&Number.isInteger(t)}function r(e){return t(e)&&e?.length>0}function i(e){return Array.isArray(e)}function a(e){return typeof e==`object`&&!!e&&!i(e)}function o(e,t){return a(e)&&t?.every(t=>t in e)}function s(e){return t(e)&&!isNaN(Date.parse(e))}function c(e){return t(e)&&e?.trim()!==``&&Number.isFinite(Number(e))}const l=Object.freeze({"০":0,"১":1,"২":2,"৩":3,"৪":4,"৫":5,"৬":6,"৭":7,"৮":8,"৯":9});function u(t){return e(t)?t:c(t)?Number(t):void 0}function d(e,t=!0){if(!r(e))return t?NaN:``;let n=e.replace(/[০১২৩৪৫৬৭৮৯]/g,e=>String(l[e]));return t?Number(n.split(``).filter(e=>!isNaN(Number(e))).join(``)):n}function f(t,n=!0){let i=Object.keys(l),a=e=>e.replace(/\d/g,e=>i[Number(e)]);if(e(t))return a(String(t));if(r(t)){let e=a(t);return n||c(t)?e:e.split(``).filter(e=>i.includes(e)).join(``)}return``}Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,`c`,{enumerable:!0,get:function(){return e}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return n}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,`s`,{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return d}});
@@ -1 +0,0 @@
1
- function e(e){return typeof e==`number`&&Number.isFinite(e)}function t(e){return typeof e==`string`}function n(t){return e(t)&&Number.isInteger(t)}function r(e){return t(e)&&e?.length>0}function i(e){return Array.isArray(e)}function a(e){return typeof e==`object`&&!!e&&!i(e)}function o(e,t){return a(e)&&t?.every(t=>t in e)}function s(e){return t(e)&&!isNaN(Date.parse(e))}function c(e){return t(e)&&e?.trim()!==``&&Number.isFinite(Number(e))}const l=Object.freeze({"০":0,"১":1,"২":2,"৩":3,"৪":4,"৫":5,"৬":6,"৭":7,"৮":8,"৯":9});function u(t){return e(t)?t:c(t)?Number(t):void 0}function d(e,t=!0){if(!r(e))return t?NaN:``;let n=e.replace(/[০১২৩৪৫৬৭৮৯]/g,e=>String(l[e]));return t?Number(n.split(``).filter(e=>!isNaN(Number(e))).join(``)):n}function f(t,n=!0){let i=Object.keys(l),a=e=>e.replace(/\d/g,e=>i[Number(e)]);if(e(t))return a(String(t));if(r(t)){let e=a(t);return n||c(t)?e:e.split(``).filter(e=>i.includes(e)).join(``)}return``}export{o as a,e as c,s as i,f as n,n as o,u as r,r as s,d as t};