persian-datepicker-element
Version:
A modern Jalali (Shamsi) Date Picker web component with shadcn-like styling
161 lines (160 loc) • 7.73 kB
JSON
{
"name": "persian-datepicker-element",
"version": "1.1.17",
"private": false,
"description": "A modern Jalali (Shamsi) Date Picker web component with shadcn-like styling",
"main": "dist/persian-datepicker-element.min.js",
"module": "dist/persian-datepicker-element.esm.js",
"unpkg": "dist/persian-datepicker-element.min.js",
"types": "dist/types/index.d.ts",
"files": [
"dist",
"dist/data/events.json"
],
"sideEffects": false,
"changelog": {
"1.1.2": [
"Added support for new input attributes: min-date, max-date, disabled-dates, range-mode, range-start, range-end, default-date",
"Updated documentation to reflect new input attributes",
"Added Persian labels for all input attributes"
],
"1.0.39": [
"Updated holiday event types to include Iran, Afghanistan, Ancient Iran, and International",
"Added support for 'all' option in holiday-types to display all available holiday types",
"Updated documentation to reflect new event types",
"Added Persian labels for all event types",
"Updated default holiday types configuration"
],
"1.0.29": [
"Enhanced dropdown usability by automatically scrolling to selected item when reopened",
"Added customizable scrollbar styling with support for light and dark themes",
"Added dark mode support for dropdown menus with proper color schemes",
"Fixed UMD wrapper code to ensure proper global object detection across environments",
"Improved TypeScript type declarations for better framework integration",
"Enhanced test suite to accommodate new dropdown scrolling functionality",
"Updated React, Vue, and Angular wrapper components to support new features"
],
"1.0.28": [
"Added specialized test suite for Hijri date conversion accuracy",
"Implemented robust tests for Hijri-to-Jalali calendar mapping",
"Added tests for proper religious event mapping to the Persian calendar",
"Fixed issues with event utility tests to properly handle religious events",
"Added flexible assertions for date conversion to handle implementation differences",
"Improved test reliability with conditional checks for event presence",
"Enhanced documentation with comprehensive testing information in TESTING.md",
"Added skipped test framework for year change event handling"
],
"1.0.25": [
"Fixed tooltip background color issue when losing focus",
"Improved mobile tooltip styling to match desktop version",
"Enhanced close button styling and interaction with better touch event handling",
"Added smooth animation when closing tooltips",
"Fixed tooltip text color consistency",
"Fixed tooltip display issues on both desktop and mobile",
"Restored click functionality for date selection",
"Improved tooltip visibility transitions",
"Fixed conflicting event handlers that were preventing tooltip display",
"Enhanced mobile tooltip interaction with proper touch event handling",
"Improved mobile tooltip display by showing it in the center of the screen",
"Added semi-transparent overlay behind tooltips on mobile for better visibility",
"Optimized tooltip width and height for mobile screen sizes",
"Enhanced tooltip scrolling for long content on mobile devices",
"Fixed tooltip positioning to be consistent across different mobile screen sizes",
"Fixed issue with tooltip text colors disappearing when calendar loses focus",
"Implemented persistent tooltip visibility class to maintain tooltip state",
"Fixed critical bug where Hijri (Islamic) calendar events were showing on incorrect Jalali dates",
"Implemented proper conversion between Hijri and Jalali calendars for accurate religious event dates",
"Added HijriUtils for accurate date conversions between calendar systems",
"Fixed issue where عاشورای حسینی and other religious events were showing on wrong days",
"Events now automatically update when year changes to show correct dates for religious holidays",
"Preserved original Hijri dates in event metadata for reference"
],
"1.0.24": [
"Major performance improvements for touch interactions",
"Fixed lag when calculating calendar position",
"Optimized month change animations",
"Added hardware acceleration for smoother transitions",
"Improved touch gesture recognition to prevent unwanted page scrolling",
"Fixed timing issues in touch event handling",
"Expanded touch detection area for more reliable gesture recognition"
],
"1.0.13": [
"Improved touch gesture handling to prevent unwanted page scrolling during calendar swipes",
"Added proper touch-action properties to all interactive elements",
"Fixed mobile swipe interactions to work more reliably",
"Improved touch event handling for smoother mobile experience"
],
"1.0.33": [
"Improved date format handling with better pattern support",
"Added validation for date formats to prevent invalid patterns",
"Enhanced format pattern handling with structured approach",
"Fixed weekday name display in Persian format",
"Improved empty date handling in format display",
"Added support for short month names in formats",
"Enhanced format pattern replacement logic"
]
},
"scripts": {
"build": "pnpm build:core && pnpm build:angular && pnpm build:react && pnpm build:vue",
"build:core": "node scripts/build/build.js",
"build:angular": "cd packages/angular/ngx-persian-datepicker-element && pnpm ng build ngx-persian-datepicker-element",
"build:react": "pnpm --filter react-persian-datepicker-element build",
"build:vue": "pnpm --filter vue-persian-datepicker-element build",
"build:angular:watch": "cd packages/angular/ngx-persian-datepicker-element && pnpm ng build ngx-persian-datepicker-element --watch",
"build:angular:test": "cd packages/angular/ngx-persian-datepicker-element && pnpm ng test",
"build:clean": "rimraf dist packages/*/dist",
"cleanup": "pnpm build:clean",
"dev": "pnpm -r dev",
"test": "jest",
"test:core": "jest",
"test:workspaces": "pnpm -r test",
"test:all": "pnpm test:core && pnpm test:workspaces",
"test:watch": "jest --watch",
"test:coverage": "jest --coverage",
"serve": "pnpm -r serve",
"prepublishOnly": "pnpm test:core && pnpm build:core"
},
"keywords": [
"jalali",
"shamsi",
"persian",
"date",
"datepicker",
"calendar",
"webcomponent",
"custom-element",
"rtl",
"persian-calendar",
"web-component",
"shadow-dom"
],
"author": "Ahmad Mehrabi",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/mehrabix/persian-datepicker-element.git"
},
"homepage": "https://github.com/mehrabix/persian-datepicker-element#readme",
"bugs": {
"url": "https://github.com/mehrabix/persian-datepicker-element/issues"
},
"devDependencies": {
"@rspack/cli": "^1.2.8",
"@rspack/core": "^1.2.8",
"@testing-library/dom": "^10.4.0",
"@testing-library/jest-dom": "^6.6.3",
"@types/jest": "^29.5.14",
"css-loader": "^7.1.2",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"serve": "^14.2.4",
"style-loader": "^4.0.0",
"terser": "^5.39.0",
"ts-jest": "^29.2.6",
"ts-loader": "^9.5.2",
"typescript": "^5.8.2"
},
"workspaces": [
"packages/*"
]
}