@opens/widget-ui 1.7.2 → 1.7.3

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.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app-text-input.vue.d.ts","sourceRoot":"","sources":["../src/components/inputs/app-text-input.vue"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,kHAAkH,CAAC;AACzI,cAAc,kHAAkH,CAAC;AACjI,eAAe,SAAS,CAAC"}
@@ -28,8 +28,9 @@ export declare function useIdentificationPage(rule: MaybeRefOrGetter<Rule>, emit
28
28
  };
29
29
  fieldLabel: (field: IdentificationRuleFieldComponent) => string;
30
30
  fieldPlaceholder: (field: IdentificationRuleFieldComponent) => string;
31
- fieldType: (name: string) => "email" | "text" | "tel";
31
+ fieldType: (name: string) => "email" | "tel" | "text";
32
32
  fieldMask: (name: string) => MaskFunction | undefined;
33
+ fieldMaxLength: (name: string) => number | undefined;
33
34
  fieldIcon: (name: string) => "email" | "call" | "person" | "receipt" | "badge";
34
35
  isFieldInvalid: (field: IdentificationRuleFieldComponent) => boolean;
35
36
  fieldFeedback: (field: IdentificationRuleFieldComponent) => string | null;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app-article-page.vue.d.ts","sourceRoot":"","sources":["../../src/components/pages/app-article-page.vue"],"names":[],"mappings":"AACA,cAAc,mHAAmH,CAAC;AAClI,OAAO,gIAAgI,CAAC;AACxI,OAAO,gHAAgH,CAAC;;AAExH,wBAA0F"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app-identification-page.vue.d.ts","sourceRoot":"","sources":["../../src/components/pages/app-identification-page.vue"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,0HAA0H,CAAC;AACjJ,cAAc,0HAA0H,CAAC;AACzI,eAAe,SAAS,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app-screen-page.vue.d.ts","sourceRoot":"","sources":["../../src/components/pages/app-screen-page.vue"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,kHAAkH,CAAC;AACzI,cAAc,kHAAkH,CAAC;AACjI,eAAe,SAAS,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app-service-page.vue.d.ts","sourceRoot":"","sources":["../../src/components/pages/app-service-page.vue"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,mHAAmH,CAAC;AAC1I,cAAc,mHAAmH,CAAC;AAClI,eAAe,SAAS,CAAC"}
@@ -0,0 +1,8 @@
1
+ export type IdentificationFieldKind = 'name' | 'email' | 'phone' | 'cpf' | 'order' | 'other';
2
+ /** Maps configured field names (incl. PT/ES aliases) to a known kind for mask, type and validation. */
3
+ export declare const getIdentificationFieldKind: (name: string) => IdentificationFieldKind;
4
+ export declare const isNameFieldName: (name: string) => boolean;
5
+ export declare const isEmailFieldName: (name: string) => boolean;
6
+ export declare const isPhoneFieldName: (name: string) => boolean;
7
+ export declare const isCpfFieldName: (name: string) => boolean;
8
+ export declare const isOrderFieldName: (name: string) => boolean;
@@ -20,6 +20,7 @@ export type IdentificationPageCopy = {
20
20
  invalidEmail: string;
21
21
  invalidPhone: string;
22
22
  incompleteCpf: string;
23
+ invalidCpf: string;
23
24
  back: string;
24
25
  continue: string;
25
26
  finish: string;
@@ -1,8 +1,12 @@
1
1
  import { WidgetLanguage } from '@opens/gateways/chat-config';
2
2
  /** Empty values are valid; only filled values are checked (same as client-v2 contact-form). */
3
3
  export declare const getIsEmailInvalid: (address: string) => boolean;
4
- /** Empty CPF is valid; incomplete digit count is invalid (same as client-v2 isCpfIncomplete). */
4
+ /**
5
+ * Empty CPF is valid. Incomplete digit count is invalid.
6
+ * Full 11-digit values must also pass Brazilian check digits (rejects overflow and fake sequences).
7
+ */
5
8
  export declare const getIsCpfInvalid: (value: string) => boolean;
9
+ export declare const getIsCpfIncomplete: (value: string) => boolean;
6
10
  /**
7
11
  * Empty phone is valid. Filled phones are checked with libphonenumber for any country
8
12
  * (same "only validate when typed" behavior as client-v2 contact-form).