@teamco/ischeduler-core 2.0.1 → 2.0.9

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.
Files changed (3) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +52 -0
  3. package/package.json +1 -1
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 ischeduler contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,52 @@
1
+ # @teamco/ischeduler-core
2
+
3
+ Headless core for **iScheduler** — provides types, utilities, handlers, i18n, and the `SchedulerProvider`.
4
+
5
+ This package is intended to be used alongside one of the UI adapter packages:
6
+ - [`@teamco/ischeduler-antd`](https://www.npmjs.com/package/@teamco/ischeduler-antd)
7
+ - [`@teamco/ischeduler-mui`](https://www.npmjs.com/package/@teamco/ischeduler-mui)
8
+ - [`@teamco/ischeduler-shadcn`](https://www.npmjs.com/package/@teamco/ischeduler-shadcn)
9
+
10
+ ## Features
11
+
12
+ - **`SchedulerProvider` / `useSchedulerContext`** — Centralized state, CRUD callbacks, and permissions management.
13
+ - **Types** — Standardized `IScheduler`, `TSchedulerDuration`, `TSchedulerRepeat`, and `TSchedulerRange`.
14
+ - **Handlers** — Logic for duration value changes, start date formatting, and generating recurrence text (weekly/monthly/yearly).
15
+ - **i18n** — 90+ translation keys with template variable support, fully customizable via the provider.
16
+
17
+ ## Installation
18
+
19
+ ```bash
20
+ npm install @teamco/ischeduler-core
21
+ npm install react react-dom dayjs
22
+ ```
23
+
24
+ ## Usage
25
+
26
+ The core package provides the context that wraps your scheduling components:
27
+
28
+ ```tsx
29
+ import { SchedulerProvider, ESchedulerPrefix } from '@teamco/ischeduler-core';
30
+
31
+ function App() {
32
+ return (
33
+ <SchedulerProvider
34
+ schedulers={/* your schedulers state */}
35
+ onCreate={/* create callback */}
36
+ onUpdate={/* update callback */}
37
+ onDelete={/* delete callback */}
38
+ permissions={{ canCreate: true, canUpdate: true, canDelete: true }}
39
+ >
40
+ {/* Add your chosen UI adapter components here */}
41
+ </SchedulerProvider>
42
+ );
43
+ }
44
+ ```
45
+
46
+ ## Documentation
47
+
48
+ For full documentation and examples, visit the [main repository](https://github.com/teamco/ischeduler).
49
+
50
+ ## License
51
+
52
+ [MIT](../../LICENSE)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teamco/ischeduler-core",
3
- "version": "2.0.1",
3
+ "version": "2.0.9",
4
4
  "description": "Headless core for iScheduler — types, utils, handlers, i18n, provider",
5
5
  "license": "MIT",
6
6
  "repository": {