siesa-ui-kit 1.0.55 → 1.0.56

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.
Files changed (56) hide show
  1. package/dist/components/DynamicEntities/admin/CatalogManager.d.ts +3 -0
  2. package/dist/components/DynamicEntities/admin/CatalogManager.d.ts.map +1 -0
  3. package/dist/components/DynamicEntities/admin/EntityEditor.d.ts +11 -0
  4. package/dist/components/DynamicEntities/admin/EntityEditor.d.ts.map +1 -0
  5. package/dist/components/DynamicEntities/admin/FeatureEditor.d.ts +8 -0
  6. package/dist/components/DynamicEntities/admin/FeatureEditor.d.ts.map +1 -0
  7. package/dist/components/DynamicEntities/admin/FeatureList.d.ts +3 -0
  8. package/dist/components/DynamicEntities/admin/FeatureList.d.ts.map +1 -0
  9. package/dist/components/DynamicEntities/admin/FieldDesigner.d.ts +10 -0
  10. package/dist/components/DynamicEntities/admin/FieldDesigner.d.ts.map +1 -0
  11. package/dist/components/DynamicEntities/admin/FieldEditor.d.ts +11 -0
  12. package/dist/components/DynamicEntities/admin/FieldEditor.d.ts.map +1 -0
  13. package/dist/components/DynamicEntities/admin/RuleEditor.d.ts +11 -0
  14. package/dist/components/DynamicEntities/admin/RuleEditor.d.ts.map +1 -0
  15. package/dist/components/DynamicEntities/admin/services/FeatureService.d.ts +42 -0
  16. package/dist/components/DynamicEntities/admin/services/FeatureService.d.ts.map +1 -0
  17. package/dist/components/DynamicEntities/core/DynamicEntitiesProvider.d.ts +14 -0
  18. package/dist/components/DynamicEntities/core/DynamicEntitiesProvider.d.ts.map +1 -0
  19. package/dist/components/DynamicEntities/core/api/DynamicEntitiesApi.d.ts +8 -0
  20. package/dist/components/DynamicEntities/core/api/DynamicEntitiesApi.d.ts.map +1 -0
  21. package/dist/components/DynamicEntities/core/hooks/useDynamicDefinition.d.ts +10 -0
  22. package/dist/components/DynamicEntities/core/hooks/useDynamicDefinition.d.ts.map +1 -0
  23. package/dist/components/DynamicEntities/core/logic/RuleEngine.d.ts +13 -0
  24. package/dist/components/DynamicEntities/core/logic/RuleEngine.d.ts.map +1 -0
  25. package/dist/components/DynamicEntities/core/types/DynamicEntity.types.d.ts +45 -0
  26. package/dist/components/DynamicEntities/core/types/DynamicEntity.types.d.ts.map +1 -0
  27. package/dist/components/DynamicEntities/core/types/DynamicField.types.d.ts +48 -0
  28. package/dist/components/DynamicEntities/core/types/DynamicField.types.d.ts.map +1 -0
  29. package/dist/components/DynamicEntities/index.d.ts +15 -0
  30. package/dist/components/DynamicEntities/index.d.ts.map +1 -0
  31. package/dist/components/DynamicEntities/ui/DynamicEntities.d.ts +14 -0
  32. package/dist/components/DynamicEntities/ui/DynamicEntities.d.ts.map +1 -0
  33. package/dist/components/DynamicEntities/ui/DynamicEntityGrid.d.ts +11 -0
  34. package/dist/components/DynamicEntities/ui/DynamicEntityGrid.d.ts.map +1 -0
  35. package/dist/components/DynamicEntities/ui/DynamicFeatureOrchestrator.d.ts +9 -0
  36. package/dist/components/DynamicEntities/ui/DynamicFeatureOrchestrator.d.ts.map +1 -0
  37. package/dist/components/DynamicEntities/ui/DynamicFieldRenderer.d.ts +15 -0
  38. package/dist/components/DynamicEntities/ui/DynamicFieldRenderer.d.ts.map +1 -0
  39. package/dist/components/FileUploader/FilePreview.d.ts +16 -0
  40. package/dist/components/FileUploader/FilePreview.d.ts.map +1 -0
  41. package/dist/components/FileUploader/FileUploader.d.ts +4 -0
  42. package/dist/components/FileUploader/FileUploader.d.ts.map +1 -0
  43. package/dist/components/FileUploader/FileUploader.types.d.ts +117 -0
  44. package/dist/components/FileUploader/FileUploader.types.d.ts.map +1 -0
  45. package/dist/components/FileUploader/icons.d.ts +3 -0
  46. package/dist/components/FileUploader/icons.d.ts.map +1 -0
  47. package/dist/components/FileUploader/index.d.ts +4 -0
  48. package/dist/components/FileUploader/index.d.ts.map +1 -0
  49. package/dist/index.d.ts +3 -0
  50. package/dist/index.d.ts.map +1 -1
  51. package/dist/siesa-ui-kit.cjs +211 -194
  52. package/dist/siesa-ui-kit.cjs.map +1 -1
  53. package/dist/siesa-ui-kit.mjs +12075 -7279
  54. package/dist/siesa-ui-kit.mjs.map +1 -1
  55. package/dist/style.css +1 -1
  56. package/package.json +2 -1
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ export declare const CatalogManager: React.FC;
3
+ //# sourceMappingURL=CatalogManager.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CatalogManager.d.ts","sourceRoot":"","sources":["../../../../src/components/DynamicEntities/admin/CatalogManager.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAqBnD,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAqKlC,CAAC"}
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ interface EntityEditorProps {
3
+ entityId: string;
4
+ featureId?: string;
5
+ featureEntityId?: string;
6
+ initialRenderMode?: 'tab' | 'inline' | 'modal';
7
+ onBack: () => void;
8
+ }
9
+ export declare const EntityEditor: React.FC<EntityEditorProps>;
10
+ export {};
11
+ //# sourceMappingURL=EntityEditor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EntityEditor.d.ts","sourceRoot":"","sources":["../../../../src/components/DynamicEntities/admin/EntityEditor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AASnD,UAAU,iBAAiB;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,iBAAiB,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,OAAO,CAAC;IAC/C,MAAM,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAkNpD,CAAC"}
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ interface FeatureEditorProps {
3
+ featureId: string;
4
+ onBack: () => void;
5
+ }
6
+ export declare const FeatureEditor: React.FC<FeatureEditorProps>;
7
+ export {};
8
+ //# sourceMappingURL=FeatureEditor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FeatureEditor.d.ts","sourceRoot":"","sources":["../../../../src/components/DynamicEntities/admin/FeatureEditor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAwBnD,UAAU,kBAAkB;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,IAAI,CAAC;CACtB;AAiDD,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAmRtD,CAAC"}
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ export declare const FeatureList: React.FC;
3
+ //# sourceMappingURL=FeatureList.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FeatureList.d.ts","sourceRoot":"","sources":["../../../../src/components/DynamicEntities/admin/FeatureList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAQ5D,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EA+H/B,CAAC"}
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import type { DynamicField } from '../core/types/DynamicField.types';
3
+ export interface FieldDesignerProps {
4
+ fields: DynamicField[];
5
+ onChange: (fields: DynamicField[]) => void;
6
+ onEdit: (field: DynamicField) => void;
7
+ onAdd: () => void;
8
+ }
9
+ export declare const FieldDesigner: React.FC<FieldDesignerProps>;
10
+ //# sourceMappingURL=FieldDesigner.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FieldDesigner.d.ts","sourceRoot":"","sources":["../../../../src/components/DynamicEntities/admin/FieldDesigner.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAkB1B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAiDrE,MAAM,WAAW,kBAAkB;IAC/B,MAAM,EAAE,YAAY,EAAE,CAAC;IACvB,QAAQ,EAAE,CAAC,MAAM,EAAE,YAAY,EAAE,KAAK,IAAI,CAAC;IAC3C,MAAM,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK,IAAI,CAAC;IACtC,KAAK,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CA6DtD,CAAC"}
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import type { DynamicField } from '../core/types/DynamicField.types';
3
+ interface FieldEditorProps {
4
+ field: DynamicField;
5
+ genericLists?: any[];
6
+ onSave: (field: DynamicField) => void;
7
+ onCancel: () => void;
8
+ }
9
+ export declare const FieldEditor: React.FC<FieldEditorProps>;
10
+ export {};
11
+ //# sourceMappingURL=FieldEditor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FieldEditor.d.ts","sourceRoot":"","sources":["../../../../src/components/DynamicEntities/admin/FieldEditor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AASrE,UAAU,gBAAgB;IACtB,KAAK,EAAE,YAAY,CAAC;IACpB,YAAY,CAAC,EAAE,GAAG,EAAE,CAAC;IACrB,MAAM,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK,IAAI,CAAC;IACtC,QAAQ,EAAE,MAAM,IAAI,CAAC;CACxB;AAED,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CA6HlD,CAAC"}
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import type { DynamicField } from '../core/types/DynamicField.types';
3
+ import type { DynamicFieldRule } from '../core/types/DynamicEntity.types';
4
+ interface RuleEditorProps {
5
+ fields: DynamicField[];
6
+ rules: DynamicFieldRule[];
7
+ onSave: (rules: DynamicFieldRule[]) => void;
8
+ }
9
+ export declare const RuleEditor: React.FC<RuleEditorProps>;
10
+ export {};
11
+ //# sourceMappingURL=RuleEditor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RuleEditor.d.ts","sourceRoot":"","sources":["../../../../src/components/DynamicEntities/admin/RuleEditor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AACxC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,KAAK,EAAE,gBAAgB,EAAqC,MAAM,mCAAmC,CAAC;AAK7G,UAAU,eAAe;IACrB,MAAM,EAAE,YAAY,EAAE,CAAC;IACvB,KAAK,EAAE,gBAAgB,EAAE,CAAC;IAC1B,MAAM,EAAE,CAAC,KAAK,EAAE,gBAAgB,EAAE,KAAK,IAAI,CAAC;CAC/C;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAqIhD,CAAC"}
@@ -0,0 +1,42 @@
1
+ import type { CrudService, GetAllParams, GetAllResponse } from '../../../MasterCrud';
2
+ import type { DynamicField } from '../../core/types/DynamicField.types';
3
+ import type { DynamicEntity } from '../../core/types/DynamicEntity.types';
4
+ export interface Feature {
5
+ id: string;
6
+ code: string;
7
+ name: string;
8
+ description?: string;
9
+ type: 'Master' | 'Document' | 'Transaction';
10
+ active: boolean;
11
+ createdAt?: string;
12
+ updatedAt?: string;
13
+ featureEntities?: FeatureEntity[];
14
+ }
15
+ export interface FeatureEntity {
16
+ id: string;
17
+ featureId: string;
18
+ dynamicEntityId: string;
19
+ renderMode: 'tab' | 'modal' | 'inline';
20
+ order: number;
21
+ properties?: Record<string, any>;
22
+ dynamicEntity?: DynamicEntity;
23
+ }
24
+ export declare class FeatureService implements CrudService<Feature> {
25
+ private baseUrl;
26
+ constructor(baseUrl: string);
27
+ getAll(params: GetAllParams): Promise<GetAllResponse<Feature>>;
28
+ getById(id: string | number): Promise<Feature>;
29
+ getByCode(code: string): Promise<Feature>;
30
+ create(data: Partial<Feature>): Promise<Feature>;
31
+ update(id: string | number, feature: Partial<Feature>): Promise<Feature>;
32
+ delete(id: string | number): Promise<void>;
33
+ createEntity(entity: Partial<DynamicEntity>): Promise<DynamicEntity>;
34
+ updateEntity(id: string, entity: Partial<DynamicEntity>): Promise<void>;
35
+ deleteEntity(id: string): Promise<void>;
36
+ addFeatureEntity(featureId: string, featureEntity: Partial<FeatureEntity>): Promise<FeatureEntity>;
37
+ updateFeatureEntity(featureId: string, dynamicEntityId: string, featureEntity: Partial<FeatureEntity>): Promise<void>;
38
+ removeFeatureEntity(featureId: string, dynamicEntityId: string): Promise<void>;
39
+ saveFields(entityId: string, fields: DynamicField[]): Promise<void>;
40
+ saveRules(entityId: string, rules: any[]): Promise<void>;
41
+ }
42
+ //# sourceMappingURL=FeatureService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FeatureService.d.ts","sourceRoot":"","sources":["../../../../../src/components/DynamicEntities/admin/services/FeatureService.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AACxE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AAI1E,MAAM,WAAW,OAAO;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,QAAQ,GAAG,UAAU,GAAG,aAAa,CAAC;IAC5C,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,aAAa,EAAE,CAAC;CACrC;AAED,MAAM,WAAW,aAAa;IAC1B,EAAE,EAAE,MAAM,CAA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O,CAAC,aAAa,CAAC;IAUlG,mBAAmB,CAAC,SAAS,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,EAAE,aAAa,EAAE,OAAO,CAAC,aAAa,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;IASrH,mBAAmB,CAAC,SAAS,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAQ9E,UAAU,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,YAAY,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAcnE,SAAS,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;CAYjE"}
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ interface DynamicEntitiesContextType {
3
+ baseUrl: string;
4
+ onError?: (error: Error) => void;
5
+ }
6
+ export interface DynamicEntitiesProviderProps {
7
+ baseUrl: string;
8
+ onError?: (error: Error) => void;
9
+ children: React.ReactNode;
10
+ }
11
+ export declare const DynamicEntitiesProvider: React.FC<DynamicEntitiesProviderProps>;
12
+ export declare const useDynamicEntitiesContext: () => DynamicEntitiesContextType;
13
+ export {};
14
+ //# sourceMappingURL=DynamicEntitiesProvider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DynamicEntitiesProvider.d.ts","sourceRoot":"","sources":["../../../../src/components/DynamicEntities/core/DynamicEntitiesProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoC,MAAM,OAAO,CAAC;AAEzD,UAAU,0BAA0B;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;CACpC;AAID,MAAM,WAAW,4BAA4B;IACzC,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACjC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC7B;AAED,eAAO,MAAM,uBAAuB,EAAE,KAAK,CAAC,EAAE,CAAC,4BAA4B,CAM1E,CAAC;AAEF,eAAO,MAAM,yBAAyB,QAAO,0BAM5C,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { DynamicEntityDefinition, SaveEavValuesDto } from '../types/DynamicEntity.types';
2
+ export declare const DynamicEntitiesApi: {
3
+ getDefinition: (baseUrl: string, featureCode: string, entityCode: string) => Promise<DynamicEntityDefinition>;
4
+ saveValues: (baseUrl: string, featureCode: string, entityCode: string, recordId: string, values: SaveEavValuesDto) => Promise<void>;
5
+ getValues: (baseUrl: string, featureCode: string, entityCode: string, recordId: string) => Promise<SaveEavValuesDto>;
6
+ deleteRecord: (baseUrl: string, featureCode: string, recordId: string) => Promise<void>;
7
+ };
8
+ //# sourceMappingURL=DynamicEntitiesApi.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DynamicEntitiesApi.d.ts","sourceRoot":"","sources":["../../../../../src/components/DynamicEntities/core/api/DynamicEntitiesApi.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAE9F,eAAO,MAAM,kBAAkB;6BACI,MAAM,eAAe,MAAM,cAAc,MAAM,KAAG,OAAO,CAAC,uBAAuB,CAAC;0BAMrF,MAAM,eAAe,MAAM,cAAc,MAAM,YAAY,MAAM,UAAU,gBAAgB,KAAG,OAAO,CAAC,IAAI,CAAC;yBAS5G,MAAM,eAAe,MAAM,cAAc,MAAM,YAAY,MAAM,KAAG,OAAO,CAAC,gBAAgB,CAAC;4BAM1F,MAAM,eAAe,MAAM,YAAY,MAAM,KAAG,OAAO,CAAC,IAAI,CAAC;CAM9F,CAAC"}
@@ -0,0 +1,10 @@
1
+ import type { DynamicEntityDefinition } from '../types/DynamicEntity.types';
2
+ interface UseDynamicDefinitionResult {
3
+ definition: DynamicEntityDefinition | null;
4
+ loading: boolean;
5
+ error: Error | null;
6
+ reload: () => void;
7
+ }
8
+ export declare const useDynamicDefinition: (featureCode: string, entityCode: string) => UseDynamicDefinitionResult;
9
+ export {};
10
+ //# sourceMappingURL=useDynamicDefinition.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDynamicDefinition.d.ts","sourceRoot":"","sources":["../../../../../src/components/DynamicEntities/core/hooks/useDynamicDefinition.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAI5E,UAAU,0BAA0B;IAChC,UAAU,EAAE,uBAAuB,GAAG,IAAI,CAAC;IAC3C,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;IACpB,MAAM,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,eAAO,MAAM,oBAAoB,GAAI,aAAa,MAAM,EAAE,YAAY,MAAM,KAAG,0BAmC9E,CAAC"}
@@ -0,0 +1,13 @@
1
+ import type { DynamicEntityDefinition } from '../types/DynamicEntity.types';
2
+ export interface RuleEffects {
3
+ hiddenFields: Set<string>;
4
+ disabledFields: Set<string>;
5
+ requiredFields: Set<string>;
6
+ }
7
+ export declare class RuleEngine {
8
+ static evaluate(definition: DynamicEntityDefinition, values: Record<string, any>): RuleEffects;
9
+ private static checkCondition;
10
+ private static applyAction;
11
+ private static applyReverseAction;
12
+ }
13
+ //# sourceMappingURL=RuleEngine.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RuleEngine.d.ts","sourceRoot":"","sources":["../../../../../src/components/DynamicEntities/core/logic/RuleEngine.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAqC,MAAM,8BAA8B,CAAC;AAE/G,MAAM,WAAW,WAAW;IACxB,YAAY,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC1B,cAAc,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC5B,cAAc,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;CAC/B;AAED,qBAAa,UAAU;IACnB,MAAM,CAAC,QAAQ,CAAC,UAAU,EAAE,uBAAuB,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,WAAW;IAuC9F,OAAO,CAAC,MAAM,CAAC,cAAc;IAuB7B,OAAO,CAAC,MAAM,CAAC,WAAW;IAoB1B,OAAO,CAAC,MAAM,CAAC,kBAAkB;CAmBpC"}
@@ -0,0 +1,45 @@
1
+ import type { DynamicField } from './DynamicField.types';
2
+ export interface GenericListItem {
3
+ id: string;
4
+ value: string;
5
+ label: string;
6
+ order: number;
7
+ }
8
+ export interface GenericList {
9
+ id: string;
10
+ code: string;
11
+ items: GenericListItem[];
12
+ }
13
+ export interface DynamicEntity {
14
+ id: string;
15
+ code: string;
16
+ description?: string;
17
+ multiRecord: boolean;
18
+ isReadonly: boolean;
19
+ isDisabled: boolean;
20
+ }
21
+ export type RuleConditionType = 'Equals' | 'NotEquals' | 'In' | 'Greater' | 'Less' | 'GreaterThan' | 'LessThan' | 'Contains';
22
+ export type RuleActionType = 'Hide' | 'Show' | 'Disable' | 'Enable' | 'Require';
23
+ export interface DynamicFieldRule {
24
+ id: string;
25
+ dependsOnFieldId: string;
26
+ condition: RuleConditionType;
27
+ value: string | null;
28
+ dynamicFieldId: string;
29
+ action: RuleActionType;
30
+ }
31
+ export interface DynamicEntityDefinition {
32
+ entityId: string;
33
+ entityCode: string;
34
+ description?: string;
35
+ multiRecord: boolean;
36
+ isReadonly: boolean;
37
+ isDisabled: boolean;
38
+ fields: DynamicField[];
39
+ lists: GenericList[];
40
+ rules?: DynamicFieldRule[];
41
+ }
42
+ export interface SaveEavValuesDto {
43
+ values: Record<string, any>;
44
+ }
45
+ //# sourceMappingURL=DynamicEntity.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DynamicEntity.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/DynamicEntities/core/types/Dyn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AAO,CAAC;IAEpB,MAAM,EAAE,YAAY,EAAE,CAAC;IACvB,KAAK,EAAE,WAAW,EAAE,CAAC;IACrB,KAAK,CAAC,EAAE,gBAAgB,EAAE,CAAC;CAC9B;AAED,MAAM,WAAW,gBAAgB;IAC7B,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC/B"}
@@ -0,0 +1,48 @@
1
+ export declare const DynamicFieldType: {
2
+ readonly Text: "Text";
3
+ readonly TextArea: "TextArea";
4
+ readonly NumberInteger: "NumberInteger";
5
+ readonly NumberDecimal: "NumberDecimal";
6
+ readonly Currency: "Currency";
7
+ readonly Date: "Date";
8
+ readonly Time: "Time";
9
+ readonly DateTime: "DateTime";
10
+ readonly Checkbox: "Checkbox";
11
+ readonly Select: "Select";
12
+ readonly Radio: "Radio";
13
+ readonly Multiselect: "Multiselect";
14
+ readonly Lookup: "Lookup";
15
+ readonly Switch: "Switch";
16
+ };
17
+ export type DynamicFieldType = (typeof DynamicFieldType)[keyof typeof DynamicFieldType];
18
+ export interface DynamicField {
19
+ id: string;
20
+ code: string;
21
+ type: DynamicFieldType;
22
+ labels: Record<string, string>;
23
+ order: number;
24
+ required: boolean;
25
+ readonly: boolean;
26
+ disabled: boolean;
27
+ visible: boolean;
28
+ isUnique: boolean;
29
+ regex?: string;
30
+ mask?: string;
31
+ minValue?: number;
32
+ maxValue?: number;
33
+ defaultText?: string;
34
+ defaultNumeric?: number;
35
+ defaultDate?: string;
36
+ genericListId?: string;
37
+ layouts?: DynamicFieldLayout[];
38
+ }
39
+ export interface DynamicFieldLayout {
40
+ id?: string;
41
+ dynamicFieldId?: string;
42
+ colSpan: number;
43
+ rowSpan: number;
44
+ colStart: number;
45
+ rowStart: number;
46
+ breakpoint: string;
47
+ }
48
+ //# sourceMappingURL=DynamicField.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DynamicField.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/DynamicEntities/core/types/DynamicField.types.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;CAenB,CAAC;AAEX,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,OAAO,gBAAgB,CAAC,CAAC;AAExF,MAAM,WAAW,YAAY;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,gBAAgB,CAAC;IACvB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAE/B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC;IAElB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB,OAAO,CAAC,EAAE,kBAAkB,EAAE,CAAC;CAClC;AAED,MAAM,WAAW,kBAAkB;IAC/B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;CACtB"}
@@ -0,0 +1,15 @@
1
+ export * from './core/DynamicEntitiesProvider';
2
+ export * from './core/hooks/useDynamicDefinition';
3
+ export * from './core/types/DynamicEntity.types';
4
+ export * from './core/types/DynamicField.types';
5
+ export * from './core/api/DynamicEntitiesApi';
6
+ export * from './core/logic/RuleEngine';
7
+ export * from './ui/DynamicFieldRenderer';
8
+ export * from './ui/DynamicEntities';
9
+ export * from './ui/DynamicEntityGrid';
10
+ export * from './ui/DynamicFeatureOrchestrator';
11
+ export * from './admin/FeatureList';
12
+ export * from './admin/FeatureEditor';
13
+ export * from './admin/CatalogManager';
14
+ export * from './admin/services/FeatureService';
15
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/DynamicEntities/index.ts"],"names":[],"mappings":"AAAA,cAAc,gCAAgC,CAAC;AAC/C,cAAc,mCAAmC,CAAC;AAClD,cAAc,kCAAkC,CAAC;AACjD,cAAc,iCAAiC,CAAC;AAChD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,iCAAiC,CAAC;AAChD,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,iCAAiC,CAAC"}
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ export interface DynamicEntitiesProps {
3
+ featureCode: string;
4
+ entityCode: string;
5
+ recordId: string;
6
+ onSaved?: () => void;
7
+ className?: string;
8
+ hideSubmitButton?: boolean;
9
+ }
10
+ export interface DynamicEntitiesRef {
11
+ save: () => Promise<boolean>;
12
+ }
13
+ export declare const DynamicEntities: React.ForwardRefExoticComponent<DynamicEntitiesProps & React.RefAttributes<DynamicEntitiesRef>>;
14
+ //# sourceMappingURL=DynamicEntities.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DynamicEntities.d.ts","sourceRoot":"","sources":["../../../../src/components/DynamicEntities/ui/DynamicEntities.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AASjF,MAAM,WAAW,oBAAoB;IACjC,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC9B;AAED,MAAM,WAAW,kBAAkB;IAC/B,IAAI,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC;CAChC;AAED,eAAO,MAAM,eAAe,iGA6K1B,CAAC"}
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ interface DynamicEntityGridProps {
3
+ featureCode: string;
4
+ entityCode: string;
5
+ onEdit?: (recordId: string) => void;
6
+ onCreate?: () => void;
7
+ className?: string;
8
+ }
9
+ export declare const DynamicEntityGrid: React.FC<DynamicEntityGridProps>;
10
+ export {};
11
+ //# sourceMappingURL=DynamicEntityGrid.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DynamicEntityGrid.d.ts","sourceRoot":"","sources":["../../../../src/components/DynamicEntities/ui/DynamicEntityGrid.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AASnD,UAAU,sBAAsB;IAC5B,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CAsH9D,CAAC"}
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ interface DynamicFeatureOrchestratorProps {
3
+ featureCode: string;
4
+ recordId?: string;
5
+ className?: string;
6
+ }
7
+ export declare const DynamicFeatureOrchestrator: React.FC<DynamicFeatureOrchestratorProps>;
8
+ export {};
9
+ //# sourceMappingURL=DynamicFeatureOrchestrator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DynamicFeatureOrchestrator.d.ts","sourceRoot":"","sources":["../../../../src/components/DynamicEntities/ui/DynamicFeatureOrchestrator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AASnD,UAAU,+BAA+B;IACrC,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAgFD,eAAO,MAAM,0BAA0B,EAAE,KAAK,CAAC,EAAE,CAAC,+BAA+B,CAsIhF,CAAC"}
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ import type { DynamicField } from '../core/types/DynamicField.types';
3
+ interface DynamicFieldRendererProps {
4
+ field: DynamicField;
5
+ value: any;
6
+ onChange: (value: any) => void;
7
+ error?: string;
8
+ options?: {
9
+ label: string;
10
+ value: string | number;
11
+ }[];
12
+ }
13
+ export declare const DynamicFieldRenderer: React.FC<DynamicFieldRendererProps>;
14
+ export {};
15
+ //# sourceMappingURL=DynamicFieldRenderer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DynamicFieldRenderer.d.ts","sourceRoot":"","sources":["../../../../src/components/DynamicEntities/ui/DynamicFieldRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAarE,UAAU,yBAAyB;IAC/B,KAAK,EAAE,YAAY,CAAC;IACpB,KAAK,EAAE,GAAG,CAAC;IACX,QAAQ,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,EAAE,CAAC;CACzD;AAED,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,yBAAyB,CAuKpE,CAAC"}
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import type { UploadedFile } from './FileUploader.types';
3
+ interface FilePreviewProps {
4
+ file: UploadedFile;
5
+ onRemove: (id: string) => void;
6
+ disabled?: boolean;
7
+ dictionary?: {
8
+ errorUploading?: string;
9
+ retryTooltip?: string;
10
+ uploadingCancel?: string;
11
+ remove?: string;
12
+ };
13
+ }
14
+ export declare const FilePreview: React.FC<FilePreviewProps>;
15
+ export {};
16
+ //# sourceMappingURL=FilePreview.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FilePreview.d.ts","sourceRoot":"","sources":["../../../src/components/FileUploader/FilePreview.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAUzD,UAAU,gBAAgB;IACtB,IAAI,EAAE,YAAY,CAAC;IACnB,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE;QACT,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,eAAe,CAAC,EAAE,MAAM,CAAC;QACzB,MAAM,CAAC,EAAE,MAAM,CAAC;KACnB,CAAC;CACL;AAED,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAkGlD,CAAC"}
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import type { FileUploaderProps } from './FileUploader.types';
3
+ export declare const FileUploader: React.FC<FileUploaderProps>;
4
+ //# sourceMappingURL=FileUploader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FileUploader.d.ts","sourceRoot":"","sources":["../../../src/components/FileUploader/FileUploader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2C,MAAM,OAAO,CAAC;AAGhE,OAAO,KAAK,EAAE,iBAAiB,EAAgB,MAAM,sBAAsB,CAAC;AAI5E,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CA+MpD,CAAC"}
@@ -0,0 +1,117 @@
1
+ /**
2
+ * Interface defining the properties for the FileUploader component.
3
+ */
4
+ export interface FileUploaderProps {
5
+ /**
6
+ * Accepted file types (e.g., "image/*, .pdf").
7
+ * Passed directly to react-dropzone's `accept` prop.
8
+ */
9
+ accept?: Record<string, string[]> | string;
10
+ /**
11
+ * Maximum file size in bytes.
12
+ */
13
+ maxSize?: number;
14
+ /**
15
+ * Allow multiple file selection.
16
+ * @default true
17
+ */
18
+ multiple?: boolean;
19
+ /**
20
+ * Function to handle file upload.
21
+ * Should return a Promise that resolves with the file URL or object.
22
+ * @param file The file to upload.
23
+ * @param onProgress Callback to report upload progress (0-100).
24
+ */
25
+ uploadFunction: (file: File, onProgress: (progress: number) => void) => Promise<string | {
26
+ url: string;
27
+ [key: string]: any;
28
+ }>;
29
+ /**
30
+ * Optional initial files to display (useful for edit mode).
31
+ */
32
+ initialFiles?: Array<{
33
+ id: string;
34
+ url: string;
35
+ name: string;
36
+ size?: number;
37
+ type?: string;
38
+ }>;
39
+ /**
40
+ * Visual variant of the uploader.
41
+ * @default 'dropzone'
42
+ */
43
+ variant?: 'dropzone' | 'button' | 'minimal';
44
+ /**
45
+ * Label text for the dropzone.
46
+ */
47
+ label?: string;
48
+ /**
49
+ * Text for the dropzone sub-label (e.g. "SVG, PNG, JPG or GIF (max. 800x400px)").
50
+ */
51
+ subLabel?: string;
52
+ /**
53
+ * Callback when files are added/removed/uploaded.
54
+ * Useful for parent form state management.
55
+ */
56
+ onFilesChange?: (files: UploadedFile[]) => void;
57
+ /**
58
+ * Custom class name for the container.
59
+ */
60
+ className?: string;
61
+ /**
62
+ * Whether the uploader is disabled.
63
+ */
64
+ disabled?: boolean;
65
+ /**
66
+ * Whether to upload files immediately after selection.
67
+ * @default true
68
+ */
69
+ autoUpload?: boolean;
70
+ /**
71
+ * Custom error messages for validation errors.
72
+ * Keys are react-dropzone error codes (e.g. 'file-invalid-type', 'file-too-large').
73
+ */
74
+ errorMessages?: Record<string, string>;
75
+ /**
76
+ * Dictionary for internationalization (i18n) of hardcoded texts.
77
+ */
78
+ dictionary?: {
79
+ hasErrors?: string;
80
+ uploadFailed?: string;
81
+ uploadPendingButton?: string;
82
+ uploadingCancel?: string;
83
+ remove?: string;
84
+ errorUploading?: string;
85
+ retryTooltip?: string;
86
+ };
87
+ /**
88
+ * Custom icon to display in the dropzone area.
89
+ * Replaces the default CloudArrowUpIcon.
90
+ */
91
+ icon?: React.ReactNode;
92
+ /**
93
+ * Custom classNames to override internal structural styling.
94
+ */
95
+ classNames?: {
96
+ dropzoneActive?: string;
97
+ dropzoneInactive?: string;
98
+ submitButton?: string;
99
+ };
100
+ }
101
+ /**
102
+ * Internal state representation of a file in the uploader.
103
+ */
104
+ export interface UploadedFile {
105
+ id: string;
106
+ file?: File;
107
+ name: string;
108
+ size?: number;
109
+ type?: string;
110
+ status: 'pending' | 'uploading' | 'completed' | 'error';
111
+ progress: number;
112
+ url?: string;
113
+ error?: string;
114
+ preview?: string;
115
+ abortController?: AbortController;
116
+ }
117
+ //# sourceMappingURL=FileUploader.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FileUploader.types.d.ts","sourceRoot":"","sources":["../../../src/components/FileUploader/FileUploader.types.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,GAAG,MAAM,CAAC;IAE3C;;OAEG;IACH,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CAAC,EAAE,MAAM,CAAC;QAChB,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB,YAAY,CAAC,EAAE,MAAM,CAAC;KACzB,CAAC;IAEF;;;OAGG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAEvB;;OAEG;IACH,UAAU,CAAC,EAAE;QACT,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;KACzB,CAAC;CACL;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,SAAS,GAAG,WAAW,GAAG,WAAW,GAAG,OAAO,CAAC;IACxD,QAAQ,EAAE,MAAM,CAAC;IACjB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,eAAe,CAAC,EAAE,eAAe,CAAC;CACrC"}
@@ -0,0 +1,3 @@
1
+ import { CloudArrowUpIcon, DocumentIcon, PhotoIcon, XMarkIcon, TrashIcon, CheckCircleIcon, ExclamationCircleIcon, PaperClipIcon } from '@heroicons/react/24/outline';
2
+ export { CloudArrowUpIcon, DocumentIcon, PhotoIcon, XMarkIcon, TrashIcon, CheckCircleIcon, ExclamationCircleIcon, PaperClipIcon, };
3
+ //# sourceMappingURL=icons.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../../src/components/FileUploader/icons.tsx"],"names":[],"mappings":"AACA,OAAO,EACH,gBAAgB,EAChB,YAAY,EACZ,SAAS,EACT,SAAS,EACT,SAAS,EACT,eAAe,EACf,qBAAqB,EACrB,aAAa,EAChB,MAAM,6BAA6B,CAAC;AAGrC,OAAO,EACH,gBAAgB,EAChB,YAAY,EACZ,SAAS,EACT,SAAS,EACT,SAAS,EACT,eAAe,EACf,qBAAqB,EACrB,aAAa,GAChB,CAAC"}
@@ -0,0 +1,4 @@
1
+ export * from './FileUploader';
2
+ export * from './FileUploader.types';
3
+ export * from './FilePreview';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/FileUploader/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC"}
package/dist/index.d.ts CHANGED
@@ -100,4 +100,7 @@ export type { SignUpViewProps as SignUpViewPageProps } from './views/SignUpView/
100
100
  export { TableLayoutView } from './views/TableLayoutView/TableLayoutView';
101
101
  export type { TableLayoutViewProps } from './views/TableLayoutView/TableLayoutView.types';
102
102
  export { ThemeProvider, useTheme, type Theme } from './context';
103
+ export { FileUploader } from './components/FileUploader/FileUploader';
104
+ export type { FileUploaderProps, UploadedFile } from './components/FileUploader/FileUploader.types';
105
+ export * from './components/DynamicEntities';
103
106
  //# sourceMappingURL=index.d.ts.map