siesa-ui-kit 1.0.55 → 1.0.57
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/dist/components/ContactManager/ContactManager.d.ts +3 -0
- package/dist/components/ContactManager/ContactManager.d.ts.map +1 -0
- package/dist/components/ContactManager/__stories__/mockData.d.ts +15 -0
- package/dist/components/ContactManager/__stories__/mockData.d.ts.map +1 -0
- package/dist/components/ContactManager/__tests__/__mocks__/lookup-field-mock.d.ts +7 -0
- package/dist/components/ContactManager/__tests__/__mocks__/lookup-field-mock.d.ts.map +1 -0
- package/dist/components/ContactManager/__tests__/__mocks__/setup.d.ts +2 -0
- package/dist/components/ContactManager/__tests__/__mocks__/setup.d.ts.map +1 -0
- package/dist/components/ContactManager/__tests__/contact.schema.test.d.ts +2 -0
- package/dist/components/ContactManager/__tests__/contact.schema.test.d.ts.map +1 -0
- package/dist/components/ContactManager/__tests__/enum.types.test.d.ts +2 -0
- package/dist/components/ContactManager/__tests__/enum.types.test.d.ts.map +1 -0
- package/dist/components/ContactManager/__tests__/mergeTranslations.test.d.ts +2 -0
- package/dist/components/ContactManager/__tests__/mergeTranslations.test.d.ts.map +1 -0
- package/dist/components/ContactManager/__tests__/useContactStore.test.d.ts +2 -0
- package/dist/components/ContactManager/__tests__/useContactStore.test.d.ts.map +1 -0
- package/dist/components/ContactManager/__tests__/utils.test.d.ts +2 -0
- package/dist/components/ContactManager/__tests__/utils.test.d.ts.map +1 -0
- package/dist/components/ContactManager/hooks/useMediaQuery.d.ts +2 -0
- package/dist/components/ContactManager/hooks/useMediaQuery.d.ts.map +1 -0
- package/dist/components/ContactManager/i18n/defaultTranslations.d.ts +3 -0
- package/dist/components/ContactManager/i18n/defaultTranslations.d.ts.map +1 -0
- package/dist/components/ContactManager/i18n/englishTranslations.d.ts +3 -0
- package/dist/components/ContactManager/i18n/englishTranslations.d.ts.map +1 -0
- package/dist/components/ContactManager/i18n/mergeTranslations.d.ts +7 -0
- package/dist/components/ContactManager/i18n/mergeTranslations.d.ts.map +1 -0
- package/dist/components/ContactManager/i18n/translations.types.d.ts +183 -0
- package/dist/components/ContactManager/i18n/translations.types.d.ts.map +1 -0
- package/dist/components/ContactManager/index.d.ts +14 -0
- package/dist/components/ContactManager/index.d.ts.map +1 -0
- package/dist/components/ContactManager/parts/ContactGrid.d.ts +18 -0
- package/dist/components/ContactManager/parts/ContactGrid.d.ts.map +1 -0
- package/dist/components/ContactManager/parts/ContactGridEmptyState.d.ts +7 -0
- package/dist/components/ContactManager/parts/ContactGridEmptyState.d.ts.map +1 -0
- package/dist/components/ContactManager/parts/ContactGridSkeleton.d.ts +7 -0
- package/dist/components/ContactManager/parts/ContactGridSkeleton.d.ts.map +1 -0
- package/dist/components/ContactManager/parts/ContactModal.d.ts +23 -0
- package/dist/components/ContactManager/parts/ContactModal.d.ts.map +1 -0
- package/dist/components/ContactManager/parts/ContactRowActions.d.ts +13 -0
- package/dist/components/ContactManager/parts/ContactRowActions.d.ts.map +1 -0
- package/dist/components/ContactManager/parts/DefaultConfirmationDialog.d.ts +9 -0
- package/dist/components/ContactManager/parts/DefaultConfirmationDialog.d.ts.map +1 -0
- package/dist/components/ContactManager/parts/DeleteDefaultConfirmationDialog.d.ts +9 -0
- package/dist/components/ContactManager/parts/DeleteDefaultConfirmationDialog.d.ts.map +1 -0
- package/dist/components/ContactManager/parts/PillEmailInput.d.ts +11 -0
- package/dist/components/ContactManager/parts/PillEmailInput.d.ts.map +1 -0
- package/dist/components/ContactManager/parts/ResponsiveContactCard.d.ts +19 -0
- package/dist/components/ContactManager/parts/ResponsiveContactCard.d.ts.map +1 -0
- package/dist/components/ContactManager/parts/UnifiedPhoneInput.d.ts +18 -0
- package/dist/components/ContactManager/parts/UnifiedPhoneInput.d.ts.map +1 -0
- package/dist/components/ContactManager/parts/UseForTagSelector.d.ts +10 -0
- package/dist/components/ContactManager/parts/UseForTagSelector.d.ts.map +1 -0
- package/dist/components/ContactManager/parts/contactGridUtils.d.ts +15 -0
- package/dist/components/ContactManager/parts/contactGridUtils.d.ts.map +1 -0
- package/dist/components/ContactManager/providers/ContactServiceProvider.d.ts +14 -0
- package/dist/components/ContactManager/providers/ContactServiceProvider.d.ts.map +1 -0
- package/dist/components/ContactManager/schemas/contact.schema.d.ts +68 -0
- package/dist/components/ContactManager/schemas/contact.schema.d.ts.map +1 -0
- package/dist/components/ContactManager/store/useContactStore.d.ts +26 -0
- package/dist/components/ContactManager/store/useContactStore.d.ts.map +1 -0
- package/dist/components/ContactManager/types/adapter.types.d.ts +27 -0
- package/dist/components/ContactManager/types/adapter.types.d.ts.map +1 -0
- package/dist/components/ContactManager/types/component.types.d.ts +10 -0
- package/dist/components/ContactManager/types/component.types.d.ts.map +1 -0
- package/dist/components/ContactManager/types/contact.types.d.ts +26 -0
- package/dist/components/ContactManager/types/contact.types.d.ts.map +1 -0
- package/dist/components/ContactManager/types/enum.types.d.ts +8 -0
- package/dist/components/ContactManager/types/enum.types.d.ts.map +1 -0
- package/dist/components/ContactManager/ui/alert-dialog.d.ts +15 -0
- package/dist/components/ContactManager/ui/alert-dialog.d.ts.map +1 -0
- package/dist/components/ContactManager/ui/button.d.ts +11 -0
- package/dist/components/ContactManager/ui/button.d.ts.map +1 -0
- package/dist/components/ContactManager/ui/dialog.d.ts +18 -0
- package/dist/components/ContactManager/ui/dialog.d.ts.map +1 -0
- package/dist/components/ContactManager/utils/cn.d.ts +3 -0
- package/dist/components/ContactManager/utils/cn.d.ts.map +1 -0
- package/dist/components/ContactManager/utils/tagColors.d.ts +11 -0
- package/dist/components/ContactManager/utils/tagColors.d.ts.map +1 -0
- package/dist/components/DynamicEntities/admin/CatalogManager.d.ts +3 -0
- package/dist/components/DynamicEntities/admin/CatalogManager.d.ts.map +1 -0
- package/dist/components/DynamicEntities/admin/EntityEditor.d.ts +11 -0
- package/dist/components/DynamicEntities/admin/EntityEditor.d.ts.map +1 -0
- package/dist/components/DynamicEntities/admin/FeatureEditor.d.ts +8 -0
- package/dist/components/DynamicEntities/admin/FeatureEditor.d.ts.map +1 -0
- package/dist/components/DynamicEntities/admin/FeatureList.d.ts +3 -0
- package/dist/components/DynamicEntities/admin/FeatureList.d.ts.map +1 -0
- package/dist/components/DynamicEntities/admin/FieldDesigner.d.ts +10 -0
- package/dist/components/DynamicEntities/admin/FieldDesigner.d.ts.map +1 -0
- package/dist/components/DynamicEntities/admin/FieldEditor.d.ts +11 -0
- package/dist/components/DynamicEntities/admin/FieldEditor.d.ts.map +1 -0
- package/dist/components/DynamicEntities/admin/RuleEditor.d.ts +11 -0
- package/dist/components/DynamicEntities/admin/RuleEditor.d.ts.map +1 -0
- package/dist/components/DynamicEntities/admin/services/FeatureService.d.ts +42 -0
- package/dist/components/DynamicEntities/admin/services/FeatureService.d.ts.map +1 -0
- package/dist/components/DynamicEntities/core/DynamicEntitiesProvider.d.ts +14 -0
- package/dist/components/DynamicEntities/core/DynamicEntitiesProvider.d.ts.map +1 -0
- package/dist/components/DynamicEntities/core/api/DynamicEntitiesApi.d.ts +8 -0
- package/dist/components/DynamicEntities/core/api/DynamicEntitiesApi.d.ts.map +1 -0
- package/dist/components/DynamicEntities/core/hooks/useDynamicDefinition.d.ts +10 -0
- package/dist/components/DynamicEntities/core/hooks/useDynamicDefinition.d.ts.map +1 -0
- package/dist/components/DynamicEntities/core/logic/RuleEngine.d.ts +13 -0
- package/dist/components/DynamicEntities/core/logic/RuleEngine.d.ts.map +1 -0
- package/dist/components/DynamicEntities/core/types/DynamicEntity.types.d.ts +45 -0
- package/dist/components/DynamicEntities/core/types/DynamicEntity.types.d.ts.map +1 -0
- package/dist/components/DynamicEntities/core/types/DynamicField.types.d.ts +48 -0
- package/dist/components/DynamicEntities/core/types/DynamicField.types.d.ts.map +1 -0
- package/dist/components/DynamicEntities/index.d.ts +15 -0
- package/dist/components/DynamicEntities/index.d.ts.map +1 -0
- package/dist/components/DynamicEntities/ui/DynamicEntities.d.ts +14 -0
- package/dist/components/DynamicEntities/ui/DynamicEntities.d.ts.map +1 -0
- package/dist/components/DynamicEntities/ui/DynamicEntityGrid.d.ts +11 -0
- package/dist/components/DynamicEntities/ui/DynamicEntityGrid.d.ts.map +1 -0
- package/dist/components/DynamicEntities/ui/DynamicFeatureOrchestrator.d.ts +9 -0
- package/dist/components/DynamicEntities/ui/DynamicFeatureOrchestrator.d.ts.map +1 -0
- package/dist/components/DynamicEntities/ui/DynamicFieldRenderer.d.ts +15 -0
- package/dist/components/DynamicEntities/ui/DynamicFieldRenderer.d.ts.map +1 -0
- package/dist/components/FileUploader/FilePreview.d.ts +16 -0
- package/dist/components/FileUploader/FilePreview.d.ts.map +1 -0
- package/dist/components/FileUploader/FileUploader.d.ts +4 -0
- package/dist/components/FileUploader/FileUploader.d.ts.map +1 -0
- package/dist/components/FileUploader/FileUploader.types.d.ts +117 -0
- package/dist/components/FileUploader/FileUploader.types.d.ts.map +1 -0
- package/dist/components/FileUploader/icons.d.ts +3 -0
- package/dist/components/FileUploader/icons.d.ts.map +1 -0
- package/dist/components/FileUploader/index.d.ts +4 -0
- package/dist/components/FileUploader/index.d.ts.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/siesa-ui-kit.cjs +313 -246
- package/dist/siesa-ui-kit.cjs.map +1 -1
- package/dist/siesa-ui-kit.mjs +16620 -8067
- package/dist/siesa-ui-kit.mjs.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +33 -4
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { ContactManagerProps } from './types/component.types';
|
|
2
|
+
export declare function ContactManager({ recordId, mode, useForOptions: useForOptionsProp, phoneCategoryOptions, onContactsChange, }: ContactManagerProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
//# sourceMappingURL=ContactManager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContactManager.d.ts","sourceRoot":"","sources":["../../../src/components/ContactManager/ContactManager.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAA;AAWlE,wBAAgB,cAAc,CAAC,EAC7B,QAAQ,EACR,IAAa,EACb,aAAa,EAAE,iBAAiB,EAChC,oBAAoB,EACpB,gBAAgB,GACjB,EAAE,mBAAmB,2CA2SrB"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Contact } from '../types/contact.types';
|
|
2
|
+
import type { EnumOption } from '../types/enum.types';
|
|
3
|
+
import type { IContactServiceAdapter, LookupConfig } from '../types/adapter.types';
|
|
4
|
+
import type { Fetcher } from '../../LookupField/services/api.types';
|
|
5
|
+
export declare const MOCK_CONTACTS: Contact[];
|
|
6
|
+
export declare const MOCK_MANY_CONTACTS: Contact[];
|
|
7
|
+
export declare const MOCK_USE_FOR_OPTIONS: EnumOption[];
|
|
8
|
+
export declare const MOCK_PHONE_CATEGORIES: EnumOption[];
|
|
9
|
+
export declare const mswHandlers: import("msw").HttpHandler[];
|
|
10
|
+
export declare const mockFetcher: Fetcher;
|
|
11
|
+
export declare const MOCK_LOOKUP_CONFIG: LookupConfig;
|
|
12
|
+
export declare function createMockAdapter(contacts?: Contact[], options?: {
|
|
13
|
+
loadDelay?: number;
|
|
14
|
+
}): IContactServiceAdapter;
|
|
15
|
+
//# sourceMappingURL=mockData.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mockData.d.ts","sourceRoot":"","sources":["../../../../src/components/ContactManager/__stories__/mockData.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAA;AACrD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AACrD,OAAO,KAAK,EAAE,sBAAsB,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AAClF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sCAAsC,CAAA;AAInE,eAAO,MAAM,aAAa,EAAE,OAAO,EAuDlC,CAAA;AAED,eAAO,MAAM,kBAAkB,EAAE,OAAO,EAkBvC,CAAA;AAID,eAAO,MAAM,oBAAoB,EAAE,UAAU,EAK5C,CAAA;AAED,eAAO,MAAM,qBAAqB,EAAE,UAAU,EAK7C,CAAA;AAiED,eAAO,MAAM,WAAW,6BAIvB,CAAA;AAID,eAAO,MAAM,WAAW,EAAE,OASzB,CAAA;AAID,eAAO,MAAM,kBAAkB,EAAE,YAchC,CAAA;AAID,wBAAgB,iBAAiB,CAC/B,QAAQ,GAAE,OAAO,EAAkB,EACnC,OAAO,CAAC,EAAE;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,GAC/B,sBAAsB,CAcxB"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare function LookupFieldMock({ entity, value, onChange, label, disabled, readOnly, error, errorText, ...rest }: Record<string, unknown>): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare function createFetcherMock(): () => Promise<{
|
|
3
|
+
data: never[];
|
|
4
|
+
page: number;
|
|
5
|
+
pageSize: number;
|
|
6
|
+
}>;
|
|
7
|
+
//# sourceMappingURL=lookup-field-mock.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lookup-field-mock.d.ts","sourceRoot":"","sources":["../../../../../src/components/ContactManager/__tests__/__mocks__/lookup-field-mock.tsx"],"names":[],"mappings":"AAAA,wBAAgB,eAAe,CAAC,EAC9B,MAAM,EACN,KAAK,EACL,QAAQ,EACR,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,KAAK,EACL,SAAS,EACT,GAAG,IAAI,EACR,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,2CAyBzB;AAED,wBAAgB,iBAAiB;;;;GAEhC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setup.d.ts","sourceRoot":"","sources":["../../../../../src/components/ContactManager/__tests__/__mocks__/setup.ts"],"names":[],"mappings":"AAAA,OAAO,kCAAkC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contact.schema.test.d.ts","sourceRoot":"","sources":["../../../../src/components/ContactManager/__tests__/contact.schema.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enum.types.test.d.ts","sourceRoot":"","sources":["../../../../src/components/ContactManager/__tests__/enum.types.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mergeTranslations.test.d.ts","sourceRoot":"","sources":["../../../../src/components/ContactManager/__tests__/mergeTranslations.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useContactStore.test.d.ts","sourceRoot":"","sources":["../../../../src/components/ContactManager/__tests__/useContactStore.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.test.d.ts","sourceRoot":"","sources":["../../../../src/components/ContactManager/__tests__/utils.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useMediaQuery.d.ts","sourceRoot":"","sources":["../../../../src/components/ContactManager/hooks/useMediaQuery.ts"],"names":[],"mappings":"AAEA,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAiBpD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"defaultTranslations.d.ts","sourceRoot":"","sources":["../../../../src/components/ContactManager/i18n/defaultTranslations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAE/D,eAAO,MAAM,mBAAmB,EAAE,mBAmLjC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"englishTranslations.d.ts","sourceRoot":"","sources":["../../../../src/components/ContactManager/i18n/englishTranslations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAE/D,eAAO,MAAM,mBAAmB,EAAE,mBAmLjC,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ContactTranslations } from './translations.types';
|
|
2
|
+
export type DeepPartial<T> = {
|
|
3
|
+
[K in keyof T]?: T[K] extends (...args: infer A) => infer R ? (...args: A) => R : T[K] extends object ? DeepPartial<T[K]> : T[K];
|
|
4
|
+
};
|
|
5
|
+
export type PartialTranslations = DeepPartial<ContactTranslations>;
|
|
6
|
+
export declare function mergeTranslations(defaults: ContactTranslations, overrides?: PartialTranslations): ContactTranslations;
|
|
7
|
+
//# sourceMappingURL=mergeTranslations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mergeTranslations.d.ts","sourceRoot":"","sources":["../../../../src/components/ContactManager/i18n/mergeTranslations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAE/D,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI;KAC1B,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC,KAAK,MAAM,CAAC,GACvD,CAAC,GAAG,IAAI,EAAE,CAAC,KAAK,CAAC,GACjB,CAAC,CAAC,CAAC,CAAC,SAAS,MAAM,GACjB,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GACjB,CAAC,CAAC,CAAC,CAAC;CACX,CAAA;AAED,MAAM,MAAM,mBAAmB,GAAG,WAAW,CAAC,mBAAmB,CAAC,CAAA;AAElE,wBAAgB,iBAAiB,CAC/B,QAAQ,EAAE,mBAAmB,EAC7B,SAAS,CAAC,EAAE,mBAAmB,GAC9B,mBAAmB,CA4BrB"}
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
export interface ContactTranslations {
|
|
2
|
+
schema: {
|
|
3
|
+
name: {
|
|
4
|
+
required: string;
|
|
5
|
+
maxLength: string;
|
|
6
|
+
};
|
|
7
|
+
email: {
|
|
8
|
+
invalidFormat: string;
|
|
9
|
+
maxLength: string;
|
|
10
|
+
};
|
|
11
|
+
address: {
|
|
12
|
+
maxLength: string;
|
|
13
|
+
};
|
|
14
|
+
phone: {
|
|
15
|
+
areaCodeMaxLength: string;
|
|
16
|
+
numberRequired: string;
|
|
17
|
+
numberMaxLength: string;
|
|
18
|
+
extensionMaxLength: string;
|
|
19
|
+
};
|
|
20
|
+
socialNetwork: {
|
|
21
|
+
typeRequired: string;
|
|
22
|
+
urlRequired: string;
|
|
23
|
+
urlMaxLength: string;
|
|
24
|
+
};
|
|
25
|
+
useFor: {
|
|
26
|
+
required: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
modal: {
|
|
30
|
+
title: {
|
|
31
|
+
create: string;
|
|
32
|
+
edit: string;
|
|
33
|
+
view: string;
|
|
34
|
+
};
|
|
35
|
+
description: string;
|
|
36
|
+
button: {
|
|
37
|
+
save: string;
|
|
38
|
+
update: string;
|
|
39
|
+
cancel: string;
|
|
40
|
+
close: string;
|
|
41
|
+
addPhone: string;
|
|
42
|
+
addSocialNetwork: string;
|
|
43
|
+
};
|
|
44
|
+
label: {
|
|
45
|
+
name: string;
|
|
46
|
+
nameRequired: string;
|
|
47
|
+
email: string;
|
|
48
|
+
address: string;
|
|
49
|
+
description: string;
|
|
50
|
+
classification: string;
|
|
51
|
+
country: string;
|
|
52
|
+
state: string;
|
|
53
|
+
city: string;
|
|
54
|
+
neighborhood: string;
|
|
55
|
+
category: string;
|
|
56
|
+
phoneNumber: string;
|
|
57
|
+
socialType: string;
|
|
58
|
+
socialUrl: string;
|
|
59
|
+
};
|
|
60
|
+
placeholder: {
|
|
61
|
+
name: string;
|
|
62
|
+
address: string;
|
|
63
|
+
description: string;
|
|
64
|
+
select: string;
|
|
65
|
+
loading: string;
|
|
66
|
+
socialUrl: string;
|
|
67
|
+
};
|
|
68
|
+
section: {
|
|
69
|
+
location: string;
|
|
70
|
+
phones: string;
|
|
71
|
+
socialNetworks: string;
|
|
72
|
+
};
|
|
73
|
+
error: {
|
|
74
|
+
preventRemoval: string;
|
|
75
|
+
transferBlocked: string;
|
|
76
|
+
neighborhoodMismatch: string;
|
|
77
|
+
catalogsPhone: string;
|
|
78
|
+
catalogsSocial: string;
|
|
79
|
+
};
|
|
80
|
+
aria: {
|
|
81
|
+
phoneCategory: (index: number) => string;
|
|
82
|
+
phoneCountry: (index: number) => string;
|
|
83
|
+
removePhone: (index: number) => string;
|
|
84
|
+
socialType: (index: number) => string;
|
|
85
|
+
socialUrl: (index: number) => string;
|
|
86
|
+
removeSocial: (index: number) => string;
|
|
87
|
+
country: string;
|
|
88
|
+
state: string;
|
|
89
|
+
city: string;
|
|
90
|
+
neighborhood: string;
|
|
91
|
+
};
|
|
92
|
+
defaultCategory: string;
|
|
93
|
+
};
|
|
94
|
+
grid: {
|
|
95
|
+
button: {
|
|
96
|
+
addContact: string;
|
|
97
|
+
};
|
|
98
|
+
aria: {
|
|
99
|
+
table: string;
|
|
100
|
+
};
|
|
101
|
+
column: {
|
|
102
|
+
name: string;
|
|
103
|
+
email: string;
|
|
104
|
+
classification: string;
|
|
105
|
+
phone: string;
|
|
106
|
+
actions: string;
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
actions: {
|
|
110
|
+
pendingDelete: string;
|
|
111
|
+
undo: string;
|
|
112
|
+
viewDetail: string;
|
|
113
|
+
edit: string;
|
|
114
|
+
delete: string;
|
|
115
|
+
};
|
|
116
|
+
emptyState: {
|
|
117
|
+
noContacts: string;
|
|
118
|
+
addHint: string;
|
|
119
|
+
addButton: string;
|
|
120
|
+
};
|
|
121
|
+
pillEmail: {
|
|
122
|
+
error: {
|
|
123
|
+
invalidFormat: string;
|
|
124
|
+
duplicate: string;
|
|
125
|
+
};
|
|
126
|
+
placeholder: string;
|
|
127
|
+
aria: {
|
|
128
|
+
list: string;
|
|
129
|
+
emailLabel: (email: string) => string;
|
|
130
|
+
removeEmail: (email: string) => string;
|
|
131
|
+
addEmail: string;
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
phoneInput: {
|
|
135
|
+
placeholder: {
|
|
136
|
+
area: string;
|
|
137
|
+
number: string;
|
|
138
|
+
extension: string;
|
|
139
|
+
};
|
|
140
|
+
aria: {
|
|
141
|
+
group: string;
|
|
142
|
+
areaCode: string;
|
|
143
|
+
number: string;
|
|
144
|
+
extension: string;
|
|
145
|
+
};
|
|
146
|
+
};
|
|
147
|
+
tagSelector: {
|
|
148
|
+
aria: {
|
|
149
|
+
group: string;
|
|
150
|
+
option: (label: string) => string;
|
|
151
|
+
};
|
|
152
|
+
};
|
|
153
|
+
manager: {
|
|
154
|
+
defaultLabel: string;
|
|
155
|
+
};
|
|
156
|
+
dialog: {
|
|
157
|
+
default: {
|
|
158
|
+
title: string;
|
|
159
|
+
message: (currentName: string, newName: string) => string;
|
|
160
|
+
cancel: string;
|
|
161
|
+
confirm: string;
|
|
162
|
+
};
|
|
163
|
+
deleteDefault: {
|
|
164
|
+
title: string;
|
|
165
|
+
message: (defaultName: string, newDefaultName: string) => string;
|
|
166
|
+
cancel: string;
|
|
167
|
+
confirm: string;
|
|
168
|
+
};
|
|
169
|
+
};
|
|
170
|
+
skeleton: {
|
|
171
|
+
column: {
|
|
172
|
+
name: string;
|
|
173
|
+
email: string;
|
|
174
|
+
phone: string;
|
|
175
|
+
actions: string;
|
|
176
|
+
};
|
|
177
|
+
};
|
|
178
|
+
enums: {
|
|
179
|
+
useFor: Record<number, string>;
|
|
180
|
+
phoneCategory: Record<number, string>;
|
|
181
|
+
};
|
|
182
|
+
}
|
|
183
|
+
//# sourceMappingURL=translations.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"translations.types.d.ts","sourceRoot":"","sources":["../../../../src/components/ContactManager/i18n/translations.types.ts"],"names":[],"mapp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ChB,MAAM,EAAE,MAAM,CAAA;YACd,SAAS,EAAE,MAAM,CAAA;SAClB,CAAA;KACF,CAAA;IACD,WAAW,EAAE;QACX,IAAI,EAAE;YACJ,KAAK,EAAE,MAAM,CAAA;YACb,MAAM,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAA;SAClC,CAAA;KACF,CAAA;IACD,OAAO,EAAE;QACP,YAAY,EAAE,MAAM,CAAA;KACrB,CAAA;IACD,MAAM,EAAE;QACN,OAAO,EAAE;YACP,KAAK,EAAE,MAAM,CAAA;YACb,OAAO,EAAE,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,KAAK,MAAM,CAAA;YACzD,MAAM,EAAE,MAAM,CAAA;YACd,OAAO,EAAE,MAAM,CAAA;SAChB,CAAA;QACD,aAAa,EAAE;YACb,KAAK,EAAE,MAAM,CAAA;YACb,OAAO,EAAE,CAAC,WAAW,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,KAAK,MAAM,CAAA;YAChE,MAAM,EAAE,MAAM,CAAA;YACd,OAAO,EAAE,MAAM,CAAA;SAChB,CAAA;KACF,CAAA;IACD,QAAQ,EAAE;QACR,MAAM,EAAE;YACN,IAAI,EAAE,MAAM,CAAA;YACZ,KAAK,EAAE,MAAM,CAAA;YACb,KAAK,EAAE,MAAM,CAAA;YACb,OAAO,EAAE,MAAM,CAAA;SAChB,CAAA;KACF,CAAA;IACD,KAAK,EAAE;QACL,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;QAC9B,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;KACtC,CAAA;CACF"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export { ContactManager } from './ContactManager';
|
|
2
|
+
export { ContactServiceProvider, useContactServiceAdapter, useTranslations } from './providers/ContactServiceProvider';
|
|
3
|
+
export { useContactStore } from './store/useContactStore';
|
|
4
|
+
export type { ContactManagerProps } from './types/component.types';
|
|
5
|
+
export type { IContactServiceAdapter, CatalogItem, LookupEntityConfig, LookupConfig } from './types/adapter.types';
|
|
6
|
+
export type { Contact, ContactPhone, ContactSocialNetwork } from './types/contact.types';
|
|
7
|
+
export type { EnumOption } from './types/enum.types';
|
|
8
|
+
export { DEFAULT_VALUE, buildEnumOptions } from './types/enum.types';
|
|
9
|
+
export type { ContactStoreState, ContactStoreActions, PendingChangesPayload } from './store/useContactStore';
|
|
10
|
+
export type { ContactTranslations } from './i18n/translations.types';
|
|
11
|
+
export type { PartialTranslations } from './i18n/mergeTranslations';
|
|
12
|
+
export { defaultTranslations } from './i18n/defaultTranslations';
|
|
13
|
+
export { englishTranslations } from './i18n/englishTranslations';
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ContactManager/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,EAAE,sBAAsB,EAAE,wBAAwB,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAA;AAGtH,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAA;AAGzD,YAAY,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAA;AAClE,YAAY,EAAE,sBAAsB,EAAE,WAAW,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAClH,YAAY,EAAE,OAAO,EAAE,YAAY,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAA;AACxF,YAAY,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AACpD,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AACpE,YAAY,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAG5G,YAAY,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAA;AACpE,YAAY,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAA;AACnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAA;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { EnumOption } from '../types/enum.types';
|
|
2
|
+
import type { CatalogItem } from '../types/adapter.types';
|
|
3
|
+
interface ContactGridProps {
|
|
4
|
+
recordId: string;
|
|
5
|
+
mode: 'edit' | 'view';
|
|
6
|
+
useForOptions?: EnumOption[];
|
|
7
|
+
phoneCategoryOptions?: EnumOption[];
|
|
8
|
+
socialNetworkTypes?: CatalogItem[];
|
|
9
|
+
isLoading?: boolean;
|
|
10
|
+
onAddContact: () => void;
|
|
11
|
+
onEditContact: (id: string) => void;
|
|
12
|
+
onViewContact: (id: string) => void;
|
|
13
|
+
onDeleteContact: (id: string) => void;
|
|
14
|
+
onRestoreContact: (id: string) => void;
|
|
15
|
+
}
|
|
16
|
+
export declare function ContactGrid({ recordId, mode, useForOptions, phoneCategoryOptions, socialNetworkTypes, isLoading, onAddContact, onEditContact, onViewContact, onDeleteContact, onRestoreContact, }: ContactGridProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=ContactGrid.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContactGrid.d.ts","sourceRoot":"","sources":["../../../../src/components/ContactManager/parts/ContactGrid.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AACrD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AAGzD,UAAU,gBAAgB;IACxB,QAAQ,EAAE,MAAM,CAAA;IAChB,IAAI,EAAE,MAAM,GAAG,MAAM,CAAA;IACrB,aAAa,CAAC,EAAE,UAAU,EAAE,CAAA;IAC5B,oBAAoB,CAAC,EAAE,UAAU,EAAE,CAAA;IACnC,kBAAkB,CAAC,EAAE,WAAW,EAAE,CAAA;IAClC,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,YAAY,EAAE,MAAM,IAAI,CAAA;IACxB,aAAa,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;IACnC,aAAa,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;IACnC,eAAe,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;IACrC,gBAAgB,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;CACvC;AA2CD,wBAAgB,WAAW,CAAC,EAC1B,QAAQ,EACR,IAAI,EACJ,aAAa,EACb,oBAAoB,EACpB,kBAAkB,EAClB,SAAiB,EACjB,YAAY,EACZ,aAAa,EACb,aAAa,EACb,eAAe,EACf,gBAAgB,GACjB,EAAE,gBAAgB,2CA8MlB"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
interface ContactGridEmptyStateProps {
|
|
2
|
+
mode: 'edit' | 'view';
|
|
3
|
+
onAddContact: () => void;
|
|
4
|
+
}
|
|
5
|
+
export declare function ContactGridEmptyState({ mode, onAddContact }: ContactGridEmptyStateProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export {};
|
|
7
|
+
//# sourceMappingURL=ContactGridEmptyState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContactGridEmptyState.d.ts","sourceRoot":"","sources":["../../../../src/components/ContactManager/parts/ContactGridEmptyState.tsx"],"names":[],"mappings":"AAGA,UAAU,0BAA0B;IAClC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAA;IACrB,YAAY,EAAE,MAAM,IAAI,CAAA;CACzB;AAED,wBAAgB,qBAAqB,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,EAAE,0BAA0B,2CAkBvF"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import 'react-loading-skeleton/dist/skeleton.css';
|
|
2
|
+
interface ContactGridSkeletonProps {
|
|
3
|
+
layout?: 'table' | 'card';
|
|
4
|
+
}
|
|
5
|
+
export declare function ContactGridSkeleton({ layout }: ContactGridSkeletonProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export {};
|
|
7
|
+
//# sourceMappingURL=ContactGridSkeleton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContactGridSkeleton.d.ts","sourceRoot":"","sources":["../../../../src/components/ContactManager/parts/ContactGridSkeleton.tsx"],"names":[],"mappings":"AACA,OAAO,0CAA0C,CAAA;AAKjD,UAAU,wBAAwB;IAChC,MAAM,CAAC,EAAE,OAAO,GAAG,MAAM,CAAA;CAC1B;AAED,wBAAgB,mBAAmB,CAAC,EAAE,MAAgB,EAAE,EAAE,wBAAwB,2CAuCjF"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { createContactSchema } from '../schemas/contact.schema';
|
|
2
|
+
import type { Contact } from '../types/contact.types';
|
|
3
|
+
import type { LookupConfig } from '../types/adapter.types';
|
|
4
|
+
import type { EnumOption } from '../types/enum.types';
|
|
5
|
+
import type { z } from 'zod';
|
|
6
|
+
export type ContactModalMode = 'create' | 'edit' | 'view';
|
|
7
|
+
export interface ContactModalProps {
|
|
8
|
+
open: boolean;
|
|
9
|
+
mode: ContactModalMode;
|
|
10
|
+
contact: Contact | null;
|
|
11
|
+
lookupConfig: LookupConfig;
|
|
12
|
+
useForOptions?: EnumOption[];
|
|
13
|
+
phoneCategoryOptions?: EnumOption[];
|
|
14
|
+
isFirstContact?: boolean;
|
|
15
|
+
currentDefaultContactName?: string;
|
|
16
|
+
isOnlyDefault?: boolean;
|
|
17
|
+
currentDefaultOnlyHasDefault?: boolean;
|
|
18
|
+
onSave: (data: ContactModalFormData) => void;
|
|
19
|
+
onClose: () => void;
|
|
20
|
+
}
|
|
21
|
+
export type ContactModalFormData = z.infer<ReturnType<typeof createContactSchema>>;
|
|
22
|
+
export declare function ContactModal({ open, mode, contact, lookupConfig, useForOptions, phoneCategoryOptions, isFirstContact, currentDefaultContactName, isOnlyDefault, currentDefaultOnlyHasDefault, onSave, onClose, }: ContactModalProps): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
//# sourceMappingURL=ContactModal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContactModal.d.ts","sourceRoot":"","sources":["../../../../src/components/ContactManager/parts/ContactModal.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAA;AAgB/D,OAAO,KAAK,EAAE,OAAO,EAAwB,MAAM,wBAAwB,CAAA;AAC3E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AAC1D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAErD,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAE5B,MAAM,MAAM,gBAAgB,GAAG,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAA;AAEzD,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,OAAO,CAAA;IACb,IAAI,EAAE,gBAAgB,CAAA;IACtB,OAAO,EAAE,OAAO,GAAG,IAAI,CAAA;IACvB,YAAY,EAAE,YAAY,CAAA;IAC1B,aAAa,CAAC,EAAE,UAAU,EAAE,CAAA;IAC5B,oBAAoB,CAAC,EAAE,UAAU,EAAE,CAAA;IACnC,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,yBAAyB,CAAC,EAAE,MAAM,CAAA;IAClC,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,4BAA4B,CAAC,EAAE,OAAO,CAAA;IACtC,MAAM,EAAE,CAAC,IAAI,EAAE,oBAAoB,KAAK,IAAI,CAAA;IAC5C,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB;AAOD,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC,CAAA;AAElF,wBAAgB,YAAY,CAAC,EAC3B,IAAI,EACJ,IAAI,EACJ,OAAO,EACP,YAAY,EACZ,aAAa,EACb,oBAAoB,EACpB,cAAc,EACd,yBAAyB,EACzB,aAAa,EACb,4BAA4B,EAC5B,MAAM,EACN,OAAO,GACR,EAAE,iBAAiB,2CAorBnB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
interface ContactRowActionsProps {
|
|
2
|
+
contactId: string;
|
|
3
|
+
mode: 'edit' | 'view';
|
|
4
|
+
isPendingDelete: boolean;
|
|
5
|
+
isDesktop: boolean;
|
|
6
|
+
onEdit: (id: string) => void;
|
|
7
|
+
onView: (id: string) => void;
|
|
8
|
+
onDelete: (id: string) => void;
|
|
9
|
+
onRestore: (id: string) => void;
|
|
10
|
+
}
|
|
11
|
+
export declare function ContactRowActions({ contactId, mode, isPendingDelete, isDesktop, onEdit, onView, onDelete, onRestore, }: ContactRowActionsProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=ContactRowActions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContactRowActions.d.ts","sourceRoot":"","sources":["../../../../src/components/ContactManager/parts/ContactRowActions.tsx"],"names":[],"mappings":"AAIA,UAAU,sBAAsB;IAC9B,SAAS,EAAE,MAAM,CAAA;IACjB,IAAI,EAAE,MAAM,GAAG,MAAM,CAAA;IACrB,eAAe,EAAE,OAAO,CAAA;IACxB,SAAS,EAAE,OAAO,CAAA;IAClB,MAAM,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;IAC5B,MAAM,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;IAC5B,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;IAC9B,SAAS,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;CAChC;AAED,wBAAgB,iBAAiB,CAAC,EAChC,SAAS,EACT,IAAI,EACJ,eAAe,EACf,SAAS,EACT,MAAM,EACN,MAAM,EACN,QAAQ,EACR,SAAS,GACV,EAAE,sBAAsB,2CA2DxB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface DefaultConfirmationDialogProps {
|
|
2
|
+
open: boolean;
|
|
3
|
+
currentDefaultName: string;
|
|
4
|
+
newDefaultName: string;
|
|
5
|
+
onConfirm: () => void;
|
|
6
|
+
onCancel: () => void;
|
|
7
|
+
}
|
|
8
|
+
export declare function DefaultConfirmationDialog({ open, currentDefaultName, newDefaultName, onConfirm, onCancel, }: DefaultConfirmationDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
//# sourceMappingURL=DefaultConfirmationDialog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DefaultConfirmationDialog.d.ts","sourceRoot":"","sources":["../../../../src/components/ContactManager/parts/DefaultConfirmationDialog.tsx"],"names":[],"mappings":"AAaA,MAAM,WAAW,8BAA8B;IAC7C,IAAI,EAAE,OAAO,CAAA;IACb,kBAAkB,EAAE,MAAM,CAAA;IAC1B,cAAc,EAAE,MAAM,CAAA;IACtB,SAAS,EAAE,MAAM,IAAI,CAAA;IACrB,QAAQ,EAAE,MAAM,IAAI,CAAA;CACrB;AAED,wBAAgB,yBAAyB,CAAC,EACxC,IAAI,EACJ,kBAAkB,EAClB,cAAc,EACd,SAAS,EACT,QAAQ,GACT,EAAE,8BAA8B,2CA0BhC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface DeleteDefaultConfirmationDialogProps {
|
|
2
|
+
open: boolean;
|
|
3
|
+
defaultContactName: string;
|
|
4
|
+
newDefaultName: string;
|
|
5
|
+
onConfirm: () => void;
|
|
6
|
+
onCancel: () => void;
|
|
7
|
+
}
|
|
8
|
+
export declare function DeleteDefaultConfirmationDialog({ open, defaultContactName, newDefaultName, onConfirm, onCancel, }: DeleteDefaultConfirmationDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
//# sourceMappingURL=DeleteDefaultConfirmationDialog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DeleteDefaultConfirmationDialog.d.ts","sourceRoot":"","sources":["../../../../src/components/ContactManager/parts/DeleteDefaultConfirmationDialog.tsx"],"names":[],"mappings":"AAaA,MAAM,WAAW,oCAAoC;IACnD,IAAI,EAAE,OAAO,CAAA;IACb,kBAAkB,EAAE,MAAM,CAAA;IAC1B,cAAc,EAAE,MAAM,CAAA;IACtB,SAAS,EAAE,MAAM,IAAI,CAAA;IACrB,QAAQ,EAAE,MAAM,IAAI,CAAA;CACrB;AAED,wBAAgB,+BAA+B,CAAC,EAC9C,IAAI,EACJ,kBAAkB,EAClB,cAAc,EACd,SAAS,EACT,QAAQ,GACT,EAAE,oCAAoC,2CA0BtC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface PillEmailInputProps {
|
|
2
|
+
value: string[];
|
|
3
|
+
onChange: (emails: string[]) => void;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
hasError?: boolean;
|
|
6
|
+
id?: string;
|
|
7
|
+
'aria-invalid'?: boolean;
|
|
8
|
+
'aria-describedby'?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare function PillEmailInput({ value, onChange, disabled, hasError, id, 'aria-invalid': ariaInvalid, 'aria-describedby': ariaDescribedBy, }: PillEmailInputProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
//# sourceMappingURL=PillEmailInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PillEmailInput.d.ts","sourceRoot":"","sources":["../../../../src/components/ContactManager/parts/PillEmailInput.tsx"],"names":[],"mappings":"AAKA,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,EAAE,CAAA;IACf,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,IAAI,CAAA;IACpC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,kBAAkB,CAAC,EAAE,MAAM,CAAA;CAC5B;AAID,wBAAgB,cAAc,CAAC,EAC7B,KAAK,EACL,QAAQ,EACR,QAAgB,EAChB,QAAgB,EAChB,EAAE,EACF,cAAc,EAAE,WAAW,EAC3B,kBAAkB,EAAE,eAAe,GACpC,EAAE,mBAAmB,2CAiJrB"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { Contact } from '../types/contact.types';
|
|
2
|
+
import type { EnumOption } from '../types/enum.types';
|
|
3
|
+
import type { CatalogItem } from '../types/adapter.types';
|
|
4
|
+
import type { ContactState } from './contactGridUtils';
|
|
5
|
+
interface ResponsiveContactCardProps {
|
|
6
|
+
contact: Contact;
|
|
7
|
+
state: ContactState;
|
|
8
|
+
mode: 'edit' | 'view';
|
|
9
|
+
useForOptions?: EnumOption[];
|
|
10
|
+
phoneCategoryOptions?: EnumOption[];
|
|
11
|
+
socialNetworkTypes?: CatalogItem[];
|
|
12
|
+
onEdit: (id: string) => void;
|
|
13
|
+
onView: (id: string) => void;
|
|
14
|
+
onDelete: (id: string) => void;
|
|
15
|
+
onRestore: (id: string) => void;
|
|
16
|
+
}
|
|
17
|
+
export declare function ResponsiveContactCard({ contact, state, mode, useForOptions, phoneCategoryOptions, socialNetworkTypes, onEdit, onView, onDelete, onRestore, }: ResponsiveContactCardProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export {};
|
|
19
|
+
//# sourceMappingURL=ResponsiveContactCard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ResponsiveContactCard.d.ts","sourceRoot":"","sources":["../../../../src/components/ContactManager/parts/ResponsiveContactCard.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAA;AACrD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AACrD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AACzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAKtD,UAAU,0BAA0B;IAClC,OAAO,EAAE,OAAO,CAAA;IAChB,KAAK,EAAE,YAAY,CAAA;IACnB,IAAI,EAAE,MAAM,GAAG,MAAM,CAAA;IACrB,aAAa,CAAC,EAAE,UAAU,EAAE,CAAA;IAC5B,oBAAoB,CAAC,EAAE,UAAU,EAAE,CAAA;IACnC,kBAAkB,CAAC,EAAE,WAAW,EAAE,CAAA;IAClC,MAAM,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;IAC5B,MAAM,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;IAC5B,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;IAC9B,SAAS,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;CAChC;AAED,wBAAgB,qBAAqB,CAAC,EACpC,OAAO,EACP,KAAK,EACL,IAAI,EACJ,aAAa,EACb,oBAAoB,EACpB,kBAAkB,EAClB,MAAM,EACN,MAAM,EACN,QAAQ,EACR,SAAS,GACV,EAAE,0BAA0B,2CAuF5B"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface UnifiedPhoneInputProps {
|
|
2
|
+
value: {
|
|
3
|
+
areaCode: string;
|
|
4
|
+
number: string;
|
|
5
|
+
extension: string;
|
|
6
|
+
};
|
|
7
|
+
onChange: (value: {
|
|
8
|
+
areaCode: string;
|
|
9
|
+
number: string;
|
|
10
|
+
extension: string;
|
|
11
|
+
}) => void;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
hasError?: boolean;
|
|
14
|
+
id?: string;
|
|
15
|
+
'aria-describedby'?: string;
|
|
16
|
+
}
|
|
17
|
+
export declare function UnifiedPhoneInput({ value, onChange, disabled, hasError, id, 'aria-describedby': ariaDescribedBy, }: UnifiedPhoneInputProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
//# sourceMappingURL=UnifiedPhoneInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UnifiedPhoneInput.d.ts","sourceRoot":"","sources":["../../../../src/components/ContactManager/parts/UnifiedPhoneInput.tsx"],"names":[],"mappings":"AAIA,MAAM,WAAW,sBAAsB;IACrC,KAAK,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,CAAA;IAC9D,QAAQ,EAAE,CAAC,KAAK,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAA;IAClF,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,kBAAkB,CAAC,EAAE,MAAM,CAAA;CAC5B;AAMD,wBAAgB,iBAAiB,CAAC,EAChC,KAAK,EACL,QAAQ,EACR,QAAgB,EAChB,QAAgB,EAChB,EAAE,EACF,kBAAkB,EAAE,eAAe,GACpC,EAAE,sBAAsB,2CAuJxB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { EnumOption } from '../types/enum.types';
|
|
2
|
+
interface UseForTagSelectorProps {
|
|
3
|
+
value: number[];
|
|
4
|
+
options: EnumOption[];
|
|
5
|
+
onChange: (selected: number[]) => void;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare function UseForTagSelector({ value, options, onChange, disabled, }: UseForTagSelectorProps): import("react/jsx-runtime").JSX.Element | null;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=UseForTagSelector.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UseForTagSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/ContactManager/parts/UseForTagSelector.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAGrD,UAAU,sBAAsB;IAC9B,KAAK,EAAE,MAAM,EAAE,CAAA;IACf,OAAO,EAAE,UAAU,EAAE,CAAA;IACrB,QAAQ,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,IAAI,CAAA;IACtC,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED,wBAAgB,iBAAiB,CAAC,EAChC,KAAK,EACL,OAAO,EACP,QAAQ,EACR,QAAgB,GACjB,EAAE,sBAAsB,kDAsDxB"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Contact, ContactPhone, ContactSocialNetwork } from '../types/contact.types';
|
|
2
|
+
export type ContactState = 'new' | 'modified' | 'deleted' | null;
|
|
3
|
+
export declare const STATE_BORDER_CLASS: Record<string, string>;
|
|
4
|
+
export declare function getContactState(contact: Contact, pendingAdds: Contact[], pendingEdits: Map<string, Contact>, pendingDeletes: Set<string>): ContactState;
|
|
5
|
+
export declare function formatPhoneForGrid(phone: ContactPhone, categoryLabelMap?: Map<number, string>): string;
|
|
6
|
+
export declare function formatSocialForGrid(sn: ContactSocialNetwork, socialNetworkLabelMap?: Map<string, string>): string;
|
|
7
|
+
export type SubRowItem = {
|
|
8
|
+
type: 'phone';
|
|
9
|
+
data: ContactPhone;
|
|
10
|
+
} | {
|
|
11
|
+
type: 'social';
|
|
12
|
+
data: ContactSocialNetwork;
|
|
13
|
+
};
|
|
14
|
+
export declare function getSubRows(contact: Contact): SubRowItem[];
|
|
15
|
+
//# sourceMappingURL=contactGridUtils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contactGridUtils.d.ts","sourceRoot":"","sources":["../../../../src/components/ContactManager/parts/contactGridUtils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAEzF,MAAM,MAAM,YAAY,GAAG,KAAK,GAAG,UAAU,GAAG,SAAS,GAAG,IAAI,CAAA;AAEhE,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAIrD,CAAA;AAED,wBAAgB,eAAe,CAC7B,OAAO,EAAE,OAAO,EAChB,WAAW,EAAE,OAAO,EAAE,EACtB,YAAY,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,EAClC,cAAc,EAAE,GAAG,CAAC,MAAM,CAAC,GAC1B,YAAY,CAKd;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,YAAY,EAAE,gBAAgB,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,CAStG;AAED,wBAAgB,mBAAmB,CAAC,EAAE,EAAE,oBAAoB,EAAE,qBAAqB,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,CAIjH;AAED,MAAM,MAAM,UAAU,GAClB;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,IAAI,EAAE,YAAY,CAAA;CAAE,GACrC;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,IAAI,EAAE,oBAAoB,CAAA;CAAE,CAAA;AAElD,wBAAgB,UAAU,CAAC,OAAO,EAAE,OAAO,GAAG,UAAU,EAAE,CAMzD"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import type { IContactServiceAdapter } from '../types/adapter.types';
|
|
3
|
+
import type { ContactTranslations } from '../i18n/translations.types';
|
|
4
|
+
import type { PartialTranslations } from '../i18n/mergeTranslations';
|
|
5
|
+
export declare function useContactServiceAdapter(): IContactServiceAdapter;
|
|
6
|
+
export declare function useTranslations(): ContactTranslations;
|
|
7
|
+
interface ContactServiceProviderProps {
|
|
8
|
+
adapter: IContactServiceAdapter;
|
|
9
|
+
translations?: PartialTranslations;
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
}
|
|
12
|
+
export declare function ContactServiceProvider({ adapter, translations, children }: ContactServiceProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=ContactServiceProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContactServiceProvider.d.ts","sourceRoot":"","sources":["../../../../src/components/ContactManager/providers/ContactServiceProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAsC,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAC1E,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAA;AACpE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAA;AACrE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAA;AAOpE,wBAAgB,wBAAwB,IAAI,sBAAsB,CAMjE;AAED,wBAAgB,eAAe,IAAI,mBAAmB,CAErD;AAED,UAAU,2BAA2B;IACnC,OAAO,EAAE,sBAAsB,CAAA;IAC/B,YAAY,CAAC,EAAE,mBAAmB,CAAA;IAClC,QAAQ,EAAE,SAAS,CAAA;CACpB;AAED,wBAAgB,sBAAsB,CAAC,EAAE,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,EAAE,2BAA2B,2CAatG"}
|