mn-angular-lib 1.0.6 → 1.0.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mn-angular-lib",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^21.1.3",
6
6
  "@angular/core": "^21.1.3"
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { InjectionToken, Provider, TemplateRef, OnInit, ElementRef, Type, ComponentRef, AfterViewInit, OnDestroy, ChangeDetectorRef, EventEmitter, QueryList, ViewContainerRef, DoCheck, OnChanges, SimpleChanges, PipeTransform } from '@angular/core';
2
+ import { InjectionToken, Provider, TemplateRef, OnInit, OnChanges, EventEmitter, ElementRef, Type, ComponentRef, AfterViewInit, OnDestroy, ChangeDetectorRef, QueryList, ViewContainerRef, DoCheck, SimpleChanges, PipeTransform } from '@angular/core';
3
3
  export { TemplateRef, Type } from '@angular/core';
4
4
  import * as tailwind_variants from 'tailwind-variants';
5
5
  import { VariantProps } from 'tailwind-variants';
@@ -1297,7 +1297,7 @@ declare const mnCheckboxVariants: tailwind_variants.TVReturnType<{
1297
1297
  md: string;
1298
1298
  lg: string;
1299
1299
  };
1300
- }, undefined, "accent-brand-500 cursor-pointer", {
1300
+ }, undefined, "checkbox checkbox-primary cursor-pointer", {
1301
1301
  size: {
1302
1302
  sm: string;
1303
1303
  md: string;
@@ -1323,7 +1323,7 @@ declare const mnCheckboxVariants: tailwind_variants.TVReturnType<{
1323
1323
  md: string;
1324
1324
  lg: string;
1325
1325
  };
1326
- }, undefined, "accent-brand-500 cursor-pointer", unknown, unknown, undefined>>;
1326
+ }, undefined, "checkbox checkbox-primary cursor-pointer", unknown, unknown, undefined>>;
1327
1327
  type MnCheckboxVariants = VariantProps<typeof mnCheckboxVariants>;
1328
1328
 
1329
1329
  type MnCheckboxErrorMessageData = string | ((args: any, errors: ValidationErrors) => string);
@@ -1363,10 +1363,14 @@ interface MnCheckboxUIConfig {
1363
1363
  }
1364
1364
 
1365
1365
  declare const MN_CHECKBOX_CONFIG: InjectionToken<MnCheckboxUIConfig>;
1366
- declare class MnCheckbox implements OnInit {
1366
+ declare class MnCheckbox implements OnInit, OnChanges {
1367
1367
  ngControl: NgControl;
1368
1368
  protected uiConfig: MnCheckboxUIConfig;
1369
1369
  props: MnCheckboxProps;
1370
+ /** Direct checked binding for non-form usage */
1371
+ checked?: boolean;
1372
+ /** Emits when checked state changes (for non-form usage) */
1373
+ checkedChange: EventEmitter<boolean>;
1370
1374
  private readonly configService;
1371
1375
  private readonly sectionPath;
1372
1376
  private readonly explicitInstanceId;
@@ -1381,6 +1385,8 @@ declare class MnCheckbox implements OnInit {
1381
1385
  ngOnInit(): void;
1382
1386
  private resolveConfig;
1383
1387
  writeValue(val: unknown): void;
1388
+ /** Sync value from checked input when not using forms */
1389
+ ngOnChanges(): void;
1384
1390
  registerOnChange(fn: any): void;
1385
1391
  registerOnTouched(fn: any): void;
1386
1392
  setDisabledState(isDisabled: boolean): void;
@@ -1397,7 +1403,7 @@ declare class MnCheckbox implements OnInit {
1397
1403
  get resolvedName(): string | null;
1398
1404
  get checkboxClasses(): string;
1399
1405
  static ɵfac: i0.ɵɵFactoryDeclaration<MnCheckbox, [{ optional: true; self: true; }]>;
1400
- static ɵcmp: i0.ɵɵComponentDeclaration<MnCheckbox, "mn-lib-checkbox", never, { "props": { "alias": "props"; "required": true; }; }, {}, never, never, true, never>;
1406
+ static ɵcmp: i0.ɵɵComponentDeclaration<MnCheckbox, "mn-lib-checkbox", never, { "props": { "alias": "props"; "required": true; }; "checked": { "alias": "checked"; "required": false; }; }, { "checkedChange": "checkedChange"; }, never, never, true, never>;
1401
1407
  }
1402
1408
 
1403
1409
  declare const mnDatetimeVariants: tailwind_variants.TVReturnType<{