@mk-kit/ui 0.45.0 → 0.46.0

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": "@mk-kit/ui",
3
- "version": "0.45.0",
3
+ "version": "0.46.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -39,6 +39,7 @@
39
39
  "rxjs": "^7.8.0"
40
40
  },
41
41
  "dependencies": {
42
+ "@mk-kit/validators": "^0.1.0",
42
43
  "tslib": "^2.3.0"
43
44
  },
44
45
  "sideEffects": false,
@@ -3059,9 +3059,9 @@ declare class MkCurrencyInput implements ControlValueAccessor, Validator {
3059
3059
  type MkCardBrand = 'visa' | 'mastercard' | 'amex' | 'discover' | 'diners' | 'jcb';
3060
3060
  /** Human-readable names for the recognised brands. */
3061
3061
  declare const MK_CARD_BRAND_NAMES: Record<MkCardBrand, string>;
3062
- /** Detect the card network from the leading digits (IIN ranges). */
3062
+ /** Detect the card network from the leading digits `detectCardBrand` from `@mk-kit/validators`. */
3063
3063
  declare function mkDetectCardBrand(digits: string): MkCardBrand | null;
3064
- /** Luhn (mod 10) checksum over a digit string. */
3064
+ /** Luhn (mod 10) checksum over a digit string — `isLuhn` from `@mk-kit/validators`. */
3065
3065
  declare function mkLuhnCheck(digits: string): boolean;
3066
3066
  /**
3067
3067
  * CardNumberInput — a payment-card number field that groups digits with the
@@ -3144,14 +3144,18 @@ declare class MkCardNumberInput implements ControlValueAccessor, Validator {
3144
3144
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<MkCardNumberInput, "mk-card-number-input", ["mkCardNumberInput"], { "showBrand": { "alias": "showBrand"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "brandChange": "brandChange"; }, never, never, true, never>;
3145
3145
  }
3146
3146
 
3147
- /** IBAN length per ISO 13616 country code (SEPA + common others). */
3148
- declare const MK_IBAN_LENGTHS: Readonly<Record<string, number>>;
3149
3147
  /**
3150
- * ISO 13616 mod-97 check over a compact (no spaces, uppercase) IBAN.
3151
- * Assumes the shape `CC00…` has already been length-checked by the caller.
3148
+ * IBAN lengths per country re-exported from `@mk-kit/validators`
3149
+ * (`IBAN_LENGTHS`, the SWIFT registry).
3152
3150
  */
3151
+ declare const MK_IBAN_LENGTHS: Readonly<Record<string, number>>;
3152
+ /** ISO 7064 MOD 97-10 over a compact (uppercase, no separators) IBAN. */
3153
3153
  declare function mkIbanChecksum(compact: string): boolean;
3154
- /** Full IBAN validity: known country, exact length, mod-97 check. */
3154
+ /**
3155
+ * Shape, the registry length for the country and the checksum — delegates
3156
+ * to `isIban` from `@mk-kit/validators`. Unlike that function this one keeps
3157
+ * the input kit's stricter rule that the country must be in the table.
3158
+ */
3155
3159
  declare function mkIbanIsValid(compact: string): boolean;
3156
3160
  /**
3157
3161
  * Reactive-forms validator for an IBAN (any supported country). Empty values
@@ -3259,9 +3263,8 @@ interface MkTaxIdFormat {
3259
3263
  validate?: (compact: string) => boolean;
3260
3264
  }
3261
3265
  /**
3262
- * Polish NIP checksum: the weighted sum of the first nine digits modulo 11 is
3263
- * the tenth (check) digit. A remainder of 10 can never be a digit, so such a
3264
- * number is invalid whatever its last digit.
3266
+ * Polish NIP checksum delegates to `isNip` from `@mk-kit/validators`
3267
+ * (weights 6-5-7-2-3-4-5-6-7 mod 11; a remainder of 10 is invalid).
3265
3268
  */
3266
3269
  declare function mkNipChecksum(compact: string): boolean;
3267
3270
  /**