Giter Site home page Giter Site logo

materialjalalimomentadapter's People

Contributors

peymanebrahimi avatar w1ldworm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

materialjalalimomentadapter's Issues

Incompatible with Angular material 11

 Response timeout while trying to fetch https://registry.npmjs.org/ts-node (over 300000ms)
                  Package "material-jalali-moment-adapter" has an incompatible peer dependency to "@angular/material" (requires "^10.1.3", would install "11.2.6").
                  Package "@angular/material-moment-adapter" has a missing peer dependency of "moment" @ "^2.18.1".
                  Package "material-jalali-moment-adapter" has an incompatible peer dependency to "@angular/material-moment-adapter" (requires "^10.1.3", would install "11.2.6").
× Migration failed: Incompatible peer dependencies found.
Peer dependency warnings when installing dependencies means that those dependencies might not work correctly together.
You can use the '--force' option to ignore incompatible peer dependencies and instead address these warnings later.

Parse Input to String Value

Hi,

Is there anyway to parse input dates as string values instead of date objects?
For example 1400-10-10 would be '1400-10-10'.

Thanks

ver 2.2.0 and ver 3.0.0 issues

version 2.2.0 issue: Datepicker wrong dates(i.e. showing just 30 days in khordad 1400 and so on).
version 3.0.0 issue:

Error: node_modules/material-jalali-moment-adapter/node_modules/@angular/material/core/common-behaviors/constructor.d.ts:14:55 - error TS2304: Cannot find name 'abstract'.
14 export declare type AbstractConstructor<T = object> = abstract new (...args: any[]) => T;
Error: node_modules/material-jalali-moment-adapter/node_modules/@angular/material/core/common-behaviors/constructor.d.ts:14:64 - error TS1005: ';' expected.
14 export declare type AbstractConstructor<T = object> = abstract new (...args: any[]) => T;
Error: node_modules/material-jalali-moment-adapter/node_modules/@angular/material/core/common-behaviors/constructor.d.ts:14:69 - error TS1109: Expression expected.
14 export declare type AbstractConstructor<T = object> = abstract new (...args: any[]) => T;
Error: node_modules/material-jalali-moment-adapter/node_modules/@angular/material/core/common-behaviors/constructor.d.ts:14:78 - error TS2693: 'any' only refers to a type, but is being used as a value 
here.
14 export declare type AbstractConstructor<T = object> = abstract new (...args: any[]) => T;
Error: node_modules/material-jalali-moment-adapter/node_modules/@angular/material/core/common-behaviors/constructor.d.ts:14:82 - error TS1011: An element access expression should take an argument.     
14 export declare type AbstractConstructor<T = object> = abstract new (...args: any[]) => T;
Error: node_modules/material-jalali-moment-adapter/node_modules/@angular/material/core/common-behaviors/constructor.d.ts:14:83 - error TS1005: ';' expected.
14 export declare type AbstractConstructor<T = object> = abstract new (...args: any[]) => T;
Error: node_modules/material-jalali-moment-adapter/node_modules/@angular/material/core/common-behaviors/constructor.d.ts:14:85 - error TS1128: Declaration or statement expected.
14 export declare type AbstractConstructor<T = object> = abstract new (...args: any[]) => T;
Error: node_modules/material-jalali-moment-adapter/node_modules/@angular/material/core/common-behaviors/constructor.d.ts:14:88 - error TS2304: Cannot find name 'T'.
14 export declare type AbstractConstructor<T = object> = abstract new (...args: any[]) => T;
Error: node_modules/material-jalali-moment-adapter/node_modules/@angular/material/core/option/optgroup.d.ts:17:22 - error TS2420: Class '_MatOptgroupBase' incorrectly implements interface 'CanDisable'.  Property 'disabled' is missing in type '_MatOptgroupBase' but required in type 'CanDisable'.
17 export declare class _MatOptgroupBase extends _MatOptgroupMixinBase implements CanDisable {
  node_modules/material-jalali-moment-adapter/node_modules/@angular/material/core/common-behaviors/disabled.d.ts:12:5
    12     disabled: boolean;
    'disabled' is declared here.

ساعت و دقیقه

با سلام و تشکر ، این کامپوننت ساعت و دقیقه نداره؟

Angular 13 Two Calendar Init Problem

با سلام و خسته نباشید
در ابتدا میخواستم ازتون تشکر کنم بابت این پروژه .
فقط یک مشکل مهمی که واسه من پیش اومده اینه که من تو صفحه 2 تا دیت پیکر(DatePicker) گذاشتم و وقتی میخوام مقدار اولیه بدم به هر کدوم از این دیت پیکر(DatePicker) ها هردو یک مقدار رو نشون میدن ولی بعدش تو انتخاب تاریخ و اینا مشکلی پیش نمیاد.
ts File :

    from: moment("2022-11-05", "YYYY-MM-DD").toDate()
    to: moment("2022-11-06", "YYYY-MM-DD").toDate()

html File :

<div class="row">
                    <div class="col-md-3 col-sm-6 col-sm-12 date-main-div">
                        <mat-form-field>
                            <input matInput [matDatepicker]="picker1" [(ngModel)]="filter.from">
                            <mat-datepicker-toggle matSuffix [for]="picker1"></mat-datepicker-toggle>
                            <mat-datepicker [dir]="currentDir" #picker1></mat-datepicker>
                        </mat-form-field>
                    </div>
                    <div class="col-md-3 col-sm-6 col-sm-12 date-main-div">
                        <mat-form-field>
                            <input matInput [matDatepicker]="picker2" [(ngModel)]="filter.to">
                            <mat-datepicker-toggle matSuffix [for]="picker2"></mat-datepicker-toggle>
                            <mat-datepicker [dir]="currentDir" #picker2></mat-datepicker>
                        </mat-form-field>
                    </div>
                </div>


d

اسلش به جای دش

با سلام و تشکر ، چه جوری به جای دش - بین اعداد اسل/ نمایش بدیم؟

تبدیل تقویم شمسی به میلادی و بالعس

سلام خسته نباشیدو ممنون بابت پکیج کاربردیتون
آیا راهی برای تبدیل تقویم شمسی به میلادی و بالعکس به صورت رانتایم هست؟؟؟برای برنامه دو زبانه به همچین قابلیتی نیاز داشتم و با تغییر لوکال فقط اسمها فارسی میشن خود تقویم تبدیل نمیشه، ممنون میشم راهنمایی بفرمایید که برای حل این مشکل بهترین راه حل چی میتونه باشه؟؟؟ @peymanebrahimi

Runtime change calendar type

Hi, Could you please tell me a way to change calendar type from Jalali to Gregorian or even vice versa in runtime?
because of angular module will compile one moment in each runtime, and if I want to change language of app, material DatePicker can't detect changes to apply adapter or remove it.

مشکل با انگولار 12

salam vaght bekheyr tebghe document neveshtid ke faghat MaterialJalaliMomentAdapterModule tuye app.module import beshe ba anjam in kar datepicker farsi nashod tebghe usage be multicalendar.module JalaliMomentDateModule, ro ezafe kardid ke man ham ezafe kardam bazam farsi nashod aya baraye demo az hamin estefade shode?

not work for me!

This not work for me!
I use angular 11. Just translate month and other to farsi. but date (31-days) can not work!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.