Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • May 26 19:38
    sozzzzz commented #542
  • May 26 19:38
    sozzzzz commented #542
  • May 12 10:17
    tamyfabius commented #542
  • May 09 15:02
    mikerentmeister commented #542
  • May 09 14:25
    mikerentmeister commented #542
  • May 09 13:38

    ajayojha on v2.1.7

    (compare)

  • May 09 13:27
    ajayojha closed #551
  • May 09 13:27
    ajayojha commented #551
  • May 09 13:24
    ajayojha closed #518
  • May 09 13:24
    ajayojha commented #518
  • May 09 13:16
    ajayojha closed #549
  • May 09 13:16
    ajayojha commented #549
  • May 09 13:15
    ajayojha closed #404
  • May 09 13:15
    ajayojha commented #404
  • May 09 13:14
    ajayojha commented #542
  • May 09 13:10
    dependabot[bot] labeled #578
  • May 09 13:10
    dependabot[bot] opened #578
  • May 09 13:10

    dependabot[bot] on npm_and_yarn

    chore(deps): bump async Bumps … (compare)

  • May 09 13:10
    dependabot[bot] labeled #577
  • May 09 13:10
    dependabot[bot] labeled #576
Tarun Lalwani
@tarunlalwani
Hi Everyone, is there a way for me to use datetime-local type on control in my dynamic form config while using https://www.npmjs.com/package/@rxweb/reactive-dynamic-forms
I looking a way to have a datetime calendar control needed for my app
Ajay Ojha
@ajayojha
@tarunlalwani and @bcskishan will share with you the example, maybe tomorrow :(.
Tarun Lalwani
@tarunlalwani
@ajayojha , did you get a chance?
rodrigo-infomagnus
@rodrigo-infomagnus

Hi,

I am using the mask decorator for a date property. The default placeholder for the mask is '//__' is there a way to change that to a custom value like 'mm/dd/yyyy', I have a requirement that when the user starts typing the mask should be like this, for example if the user types 3 digits it would be '12/3d/yyyy'.

If there is no way to configure this, is there a place on rxweb code that I can change/inherit to implement this functionality.

Thanks for the amazing software (rxweb is core of our ionic app and made forms validation so much simpler and standardized)

Bibinthayyil
@Bibinthayyil
Hi All,
If anyone know kindly reply. Thank you.
when i add a dynamic event for Change for the input control it is working fine, but other events like keyup, focus that all are not working. kindly see the below example.
https://stackblitz.com/edit/angular-yskdw4-3ycqdh?file=src%2Fapp%2Fdynamicfile-complete.component.ts
14 replies
hermannv
@hermannv
I dont see answer to Autocomplete request, its so dumb to ask for this ? O there is another reason for this, because this is today most used form text helpers. Thanks in advance for your answers.
Ajay Ojha
@ajayojha
@hermannv would like to know, which autocomplete request you are highlighting.
rodrigo-infomagnus
@rodrigo-infomagnus
@ajayojha can you give me some guidance on where in the code I can find the mask functionality described above, I can spend some time trying to implement it, than I can send it back in a PR... Thanks for rxweb, is such a good tool.
Ajay Ojha
@ajayojha

@ajayojha can you give me some guidance on where in the code I can find the mask functionality described above, I can spend some time trying to implement it, than I can send it back in a PR... Thanks for rxweb, is such a good tool.

Great @rodrigo-infomagnus , Please refer to this file : https://github.com/rxweb/rxweb/blob/master/client-side/angular/packages/reactive-form-validators/domain/element-processor/mask.provider.ts

rodrigo-infomagnus
@rodrigo-infomagnus

@ajayojha
Hey I did the changes for the mask and created an issue for the feature and a PR at:
rxweb/rxweb#539
rxweb/rxweb#540

Please let me know if that looks good or if there is anything that needs changing. It's the first time I am contributing to rxweb, hopefully it looks ok.

Thanks again for the great product.

Ajay Ojha
@ajayojha
I am on leave, will update you tomorrow
@rodrigo-infomagnus thanks , will review and update you the same
Michael Teismann
@michael.teismann_gitlab
Hi, I am playing with the model-based (decorator) approach for defining formGroups. Is it possible to initialize a formControl disabled/readonly state?
Denis-olegovich
@Denis-olegovich
hello, angular 8 , version 2.1.6, gives an error when building, what are the solutions to this problem, bugs have been fixed for working with minDate
alt
with version 2.1.0 everything is built correctly
Gajendra-FrontEnd
@Gajendra-FrontEnd

Hi, I am building multilingual application. In that I am using "." and "," as decimal separator. When I am using comma "@range()" decorator not working properly. It always throwing validation error.

@range({ minimumNumber: -30, maximumNumber: 20 })
temp_1 = '-10.0';

For example - If user type "20.5" range validation showing validation error. (This is correct ), but if user type 20,5 then range validation not showing any error.

Let me know how to deal with comma. Can I add method which will replace "," to "." and then range decorator can perform validation.

Ajay Ojha
@ajayojha

Hi, I am playing with the model-based (decorator) approach for defining formGroups. Is it possible to initialize a formControl disabled/readonly state?

@michael.teismann_gitlab please use disabled decorator?

Hi, I am building multilingual application. In that I am using "." and "," as decimal separator. When I am using comma "@range()" decorator not working properly. It always throwing validation error.

@range({ minimumNumber: -30, maximumNumber: 20 })
temp_1 = '-10.0';

For example - If user type "20.5" range validation showing validation error. (This is correct ), but if user type 20,5 then range validation not showing any error.

Let me know how to deal with comma. Can I add method which will replace "," to "." and then range decorator can perform validation.

@Gajendra-FrontEnd will check the same

hello, angular 8 , version 2.1.6, gives an error when building, what are the solutions to this problem, bugs have been fixed for working with minDate
alt
with version 2.1.0 everything is built correctly

@Denis-olegovich may be build package copy is not supported.

chandan192
@chandan192

Hi,
unique validator is not working for formcontrol that takes array type values.e.g. multiselect or chips input ([1,2,3,1,2]).
It is perfectly working good with formarray.[{value:1}, value:2}, {value:3}, {value:1}].

Can you please tell me how to handle the first case as rxWebValidators.unique() not working.

Ajay Ojha
@ajayojha
@chandan192 unique validator is not supported other than FormArray instanced value.
dharmik0070
@dharmik0070
How does rxweb supports localization and globalization on .net core side? and specific steps or example? please share link @ajayojha
Ajay Ojha
@ajayojha
@dharmik0070 are you using the project template of rxweb or its standard .net core web app template?
Ajay Ojha
@ajayojha
@dharmik0070 Sorry, the Independent localization package is not available from rxweb.
vishal bcs
@vishalbcs.stackdeveloper_gitlab

@ajayojha
commit() is not working properly in array value

form.controls.names.setValue(['abc','def']);
form.commit();
form.controls.names.setValue(['abc','def','efg']);

when i try to get form.isModified so it's return false but should be true

when i set ['abc','def','efg'] then this value set in _baseValue why i just commit first time

Dharti Koladiya
@DhartiKoladiya_twitter
@ajayojha hello sir,
My issue is not regarding rx packages, its in nodejs application.
Can you please help me?
Ajay Ojha
@ajayojha
@DhartiKoladiya_twitter share the issue detail
@vishalbcs.stackdeveloper_gitlab if possible then please share the stackblitz example for a quicker solution/fix :)
eddiefrank
@eddiefrank
Angular 13 + Jest unit test TypeError: Class constructor FormControl cannot be invoked without 'new'
  at new RxFormControl (packages/reactive-form-validators/services/form-control.ts:80:9)
  at packages/reactive-form-validators/services/rx-form-builder.ts:459:62
      at Array.forEach (<anonymous>)
  at RxFormBuilder.Object.<anonymous>.RxFormBuilder.formGroup (packages/reactive-form-validators/services/rx-form-builder.ts:429:38)
  at RxFormBuilder.Object.<anonymous>.RxFormBuilder.group (packages/reactive-form-validators/services/rx-form-builder.ts:242:30)
Andrey
@Xambey
@Ajay Ojha there are now discussions of new typed forms and there is still an opportunity to offer something, I think it's relevant for you https://github.com/angular/angular/discussions/44513
Andrey
@Xambey
@ajayojha
Ajay Ojha
@ajayojha
Thanks @Xambey
Maximilien Zimmermann
@maximilien0405
Hey everyone, do you guys have an idea on how to set the global languageCode based on the user's browser language ?
Ajay Ojha
@ajayojha
Resolve the translateservice in app component and call method of changelanguage with respective language code
nostromo
@wuithschick

Hi, i have the same TypeError as @eddiefrank

:point_up: 14. Dezember 2021 18:32.

I have created a new Angular 13 project with the latest Jest version. The test fails when creating a RxFormGroup. Does @rxweb/reactive-form-validators support Angular 13 with Jest currently?
If I see it correctly, rxweb still uses angular 12.

Ajay Ojha
@ajayojha
Would be great if you share the sample issue code repo
nostromo
@wuithschick
Hi @ajayojha, here is my sample project (angular 13, jest, rxweb): https://github.com/wuithschick/angular_13_jest_rxweb
Ajay Ojha
@ajayojha
Thanks, tomorrow will update here
hemanth Kona
@HemanthKona
Hi @ajayojha - I'm trying to disable a property in a FormArray but its not working. I have an example here in stackblitz. If you see the console logs - you will find that the required decorator is working but disable decorator conditional function is not being called.
Ex Error replication: https://stackblitz.com/edit/rxweb-formarray-push-example-c2fjzp?file=src%2Fapp%2Fuser.model.ts
parth
@bcskishan
Hi @ajayojha this code issue is form build group in array not working
commit() is not working properly in array value
https://stackblitz.com/edit/angular-jvpsc2?file=src%2Fapp%2Fapp.module.ts
Viru chauhan
@viral1920:matrix.org
[m]
How to use this.storagedata.local onResponse = (response: HttpResponse) => {
let authorization = this.storagedata.local.get("auth",false)
if (authorization !== null && authorization !== undefined){
this.storagedata.local.save("xSession",new Date())
}
return response;
}
Viru chauhan
@viral1920:matrix.org
[m]
i have used @xhrFilter([{ model: AuthFilter,isInMemory:true,args:[]}])

export class AuthFilter extends AbstractRequestFilter {
constructor(private bStorage:BrowserStorage){
super()
}
onRequest = (context: XhrContext) => {

console.log(this);

//bStorage undefined

console.log(this.bStorage.local);
// context.request.headers["authorization"] = Bearer ${this.paramFilter?.token};
//context.request.headers["request_identity"] = "";
this.onRequestExecuting(context);
}
}

Angular 13 version
@ajayojha Pl update ASP we are working Live project
stingers
@stingers

Hello everyone! need help to disabled input field conditionally: I have A, B, C, D input fields if the user fill input A , C must be disabled, if B is filled D must be disabled. everyone have Idea ??
I tried something like that :
@required({disableExpression: (x, y) => { return x.accountCredit == true }})
accountDebit: number;

@required({disableExpression: (x, y) => { return x.accountDebit == true }})
accountCredit: number;
but that not work

Pranav
@MarcusCS
ERROR in Tried to overwrite C:/Users/prana/Downloads/rxweb/client-side/angular/dist/@rxweb/reactive-form-validators/services/rx-form-builder.d.ts.__ivy_ngcc_bak with an ngcc back up file, which is disallowed.
Any help?
Ajay Ojha
@ajayojha
@MarcusCS please share the package json information.
De Giovanni
@tamyfabius

I have created a new Angular 13 project with the latest Jest version and The test fails when creating a RxFormGroup. I seen a discussion about this error, I don't know there are a fix about this:

==> TypeError: Class constructor FormControl cannot be invoked without 'new'