@forcecalendar/core 0.2.0
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/LICENSE +21 -0
- package/README.md +13 -0
- package/core/index.js +25 -0
- package/package.json +80 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Nirmala Rao Dhanawada
|
|
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
package/core/index.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Force Calendar Core - Main entry point
|
|
3
|
+
* A modern, lightweight, framework-agnostic calendar library
|
|
4
|
+
* Optimized for Salesforce and Locker Service
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
// Core exports
|
|
8
|
+
export { Calendar } from './calendar/Calendar.js';
|
|
9
|
+
export { Event } from './events/Event.js';
|
|
10
|
+
export { EventStore } from './events/EventStore.js';
|
|
11
|
+
export { StateManager } from './state/StateManager.js';
|
|
12
|
+
export { DateUtils } from './calendar/DateUtils.js';
|
|
13
|
+
|
|
14
|
+
// ICS Import/Export
|
|
15
|
+
export { ICSParser } from './ics/ICSParser.js';
|
|
16
|
+
export { ICSHandler } from './ics/ICSHandler.js';
|
|
17
|
+
|
|
18
|
+
// Search and Filtering
|
|
19
|
+
export { EventSearch } from './search/EventSearch.js';
|
|
20
|
+
|
|
21
|
+
// Version
|
|
22
|
+
export const VERSION = '0.2.0';
|
|
23
|
+
|
|
24
|
+
// Default export
|
|
25
|
+
export { Calendar as default } from './calendar/Calendar.js';
|
package/package.json
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@forcecalendar/core",
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"private": false,
|
|
6
|
+
"description": "A modern, lightweight, framework-agnostic calendar engine optimized for Salesforce",
|
|
7
|
+
"main": "core/index.js",
|
|
8
|
+
"module": "core/index.js",
|
|
9
|
+
"types": "core/types.js",
|
|
10
|
+
"sideEffects": false,
|
|
11
|
+
"scripts": {
|
|
12
|
+
"test": "node tests/run-all.js",
|
|
13
|
+
"test:ics": "node tests/integration/test-ics.js",
|
|
14
|
+
"test:search": "node tests/integration/test-search.js"
|
|
15
|
+
},
|
|
16
|
+
"exports": {
|
|
17
|
+
".": {
|
|
18
|
+
"import": "./dist/index.esm.js",
|
|
19
|
+
"require": "./dist/index.cjs.js"
|
|
20
|
+
},
|
|
21
|
+
"./month-view": "./dist/views/month.esm.js",
|
|
22
|
+
"./week-view": "./dist/views/week.esm.js",
|
|
23
|
+
"./day-view": "./dist/views/day.esm.js"
|
|
24
|
+
},
|
|
25
|
+
"repository": {
|
|
26
|
+
"type": "git",
|
|
27
|
+
"url": "git+https://github.com/ForceCalendar/force-calendar-core.git"
|
|
28
|
+
},
|
|
29
|
+
"keywords": [
|
|
30
|
+
"calendar",
|
|
31
|
+
"salesforce",
|
|
32
|
+
"force",
|
|
33
|
+
"apex",
|
|
34
|
+
"lwc",
|
|
35
|
+
"locker-service",
|
|
36
|
+
"accessible",
|
|
37
|
+
"lightweight",
|
|
38
|
+
"scheduler"
|
|
39
|
+
],
|
|
40
|
+
"author": "",
|
|
41
|
+
"license": "MIT",
|
|
42
|
+
"bugs": {
|
|
43
|
+
"url": "https://github.com/ForceCalendar/force-calendar-core/issues"
|
|
44
|
+
},
|
|
45
|
+
"homepage": "https://github.com/ForceCalendar/force-calendar-core#readme",
|
|
46
|
+
"devDependencies": {
|
|
47
|
+
"@babel/core": "^7.23.0",
|
|
48
|
+
"@babel/preset-env": "^7.23.0",
|
|
49
|
+
"@rollup/plugin-babel": "^6.0.4",
|
|
50
|
+
"@rollup/plugin-node-resolve": "^15.3.1",
|
|
51
|
+
"@rollup/plugin-terser": "^0.4.4",
|
|
52
|
+
"eslint": "^8.50.0",
|
|
53
|
+
"jest": "^29.7.0",
|
|
54
|
+
"jest-environment-jsdom": "^29.7.0",
|
|
55
|
+
"lerna": "^9.0.3",
|
|
56
|
+
"prettier": "^3.0.3",
|
|
57
|
+
"rollup": "^4.54.0",
|
|
58
|
+
"vite": "^5.0.0"
|
|
59
|
+
},
|
|
60
|
+
"jest": {
|
|
61
|
+
"testEnvironment": "jsdom",
|
|
62
|
+
"collectCoverageFrom": [
|
|
63
|
+
"src/**/*.js",
|
|
64
|
+
"!src/**/*.test.js"
|
|
65
|
+
],
|
|
66
|
+
"coverageThreshold": {
|
|
67
|
+
"global": {
|
|
68
|
+
"branches": 90,
|
|
69
|
+
"functions": 90,
|
|
70
|
+
"lines": 90,
|
|
71
|
+
"statements": 90
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
"files": [
|
|
76
|
+
"dist",
|
|
77
|
+
"README.md",
|
|
78
|
+
"LICENSE"
|
|
79
|
+
]
|
|
80
|
+
}
|