npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

ng-jalaali-flat-datepicker

v1.0.2

Published

Angular.js Datepicker built with Moment.js for Jalaali Calendar

Downloads

33

Readme

ng-flat-jalaali-datepicker

یک دایرکتیو دیت پیکر جلالی ساده برای انگولار که از مومنت.جی اس استفاده می‌کند

ng-flat-jalaali-datepicker screenshot

پیش‌نمایش

پیش‌نمایشی ببینید

امکانات

  • فرمت تاریخ قابل سفارشی سازی خروجی به صورت متن یا ابجکت تاریخ جاوا اسکریپت
  • قابلیت محدود کردن کمترین تاریخ قابل انتخاب و بیشترین تاریخ قابل انتخاب
  • امکان فعال/غیرفعال کردن تاریخی در آینده
  • انتخاب سریع ماه و سال
  • قابلیت ارائه تاریخ انتخاب شده بر مبنای میلادی و جلالی بصورت همزمان

پیش‌نیازها

  • Angularjs >=1.2
  • Moment.js
  • Moment-jalaali.js >=0.4.0

نصب

  1. npm install --save ng-flat-jalaali-datepicker
  2. متصل کردن فایل /dist/ng-flat-jalaali-datepicker.js و /dist/ng-flat-jalaali-datepicker.css
  3. اضافه کردن ماجول 'ngFlatjalaaliDatepicker' بعنوان دپندنسی به ماجول انگولار مورد نظر

نحوه استفاده

این دایرکتیو فقط به صورت اتریبیوت قابل استفاده است

<input type="text" ng-model="date" ng-flat-jalaali-datepicker>
<button ng-model="date" ng-flat-jalaali-datepicker>Pick a date</button>

آپشن‌ها

اتریبیوت‌ها:

  • datepicker-config: Object - ابجکت پیکربندی
  • gregorian-formatted-picked-date: String - تاریخ انتخاب شده به مبنای میلادی
  • gregorian-picked-date: Object - تاریخ انتخاب شده به صورت یک شی moment.js
<input type="text" ng-model="date" datepicker-config="yourCustomConf" gregorian-formatted-picked-date="gfdate" gregorian-picked-date="gdate"  ng-flat-jalaali-datepicker>Pick a date</button>
picked date is {{gfdate}}

خصوصیات قابل تعریف در شئ پیکربندی

  • dateFormat: String - فرمت moment-jalaali.js تاریخی که در ng-model. اگر فرمتی تعریف نشود فرمت پیش فرض تاریخ جاوا اسکریپت در نظر گرفته می‌شود: Eg:'jDD/jMM/jYYYY'

  • gregorianDateFormat: String - فرمت نمایش تاریخ میلادی. اگر تعریف نشده باشد معادل همان dateFormat در نظر گرفته می‌شود

  • minDate: Object - مشخص کننده کمترین تاریخ قابل انتخاب توسط کاربر. حتمن می‌بایست یک شئ moment.js باشد

  • dropDownYears: Number - تعداد سال‌هایی که در لیست پایین افتادنی می‌بایست ظاهر شوند. مقدار پیش فرض ۱۰ عدد است

  • maxDate: Object - مشخص کننده بیشترین تاریخ قابل انتخاب توسط کاربر. حتمن می‌بایست یک شئ moment.js باشد

  • allowFuture: Boolean - اجازه انتخاب روزهای آینده (بعد از فردا) را ممکن می‌کند

مشارکت

برای مشارکت در بهبود این کد پیش‌نیازهای لازم را نصب نموده و سپس دستور زیر را وارد نمایید.

gulp watch

تقدیر و سپاس

  • «رمی چاناود» بخاطر کد پروژه اصلی: RemiAWE
  • «بهرنگ نوروزی نیا» بخاطر پروژه تقویم جلالی بر مبنای مومنت: behrang