siesa-ui-kit 1.0.82 → 1.0.85
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/ui/button.d.ts +1 -1
- package/dist/components/DynamicEntities/admin/CatalogManager.d.ts.map +1 -1
- package/dist/components/DynamicEntities/admin/DynamicEntitiesAdmin.d.ts +3 -0
- package/dist/components/DynamicEntities/admin/DynamicEntitiesAdmin.d.ts.map +1 -0
- package/dist/components/DynamicEntities/admin/EntityEditor.d.ts.map +1 -1
- package/dist/components/DynamicEntities/admin/FeatureEditor.d.ts.map +1 -1
- package/dist/components/DynamicEntities/admin/FeatureList.d.ts +7 -1
- package/dist/components/DynamicEntities/admin/FeatureList.d.ts.map +1 -1
- package/dist/components/DynamicEntities/admin/FieldDesigner.d.ts +1 -0
- package/dist/components/DynamicEntities/admin/FieldDesigner.d.ts.map +1 -1
- package/dist/components/DynamicEntities/admin/FieldEditor.d.ts +2 -0
- package/dist/components/DynamicEntities/admin/FieldEditor.d.ts.map +1 -1
- package/dist/components/DynamicEntities/admin/RuleEditor.d.ts.map +1 -1
- package/dist/components/DynamicEntities/admin/layout/LayoutContent.d.ts +10 -0
- package/dist/components/DynamicEntities/admin/layout/LayoutContent.d.ts.map +1 -0
- package/dist/components/DynamicEntities/admin/services/FeatureService.d.ts +2 -0
- package/dist/components/DynamicEntities/admin/services/FeatureService.d.ts.map +1 -1
- package/dist/components/DynamicEntities/core/DynamicEntitiesProvider.d.ts +3 -2
- package/dist/components/DynamicEntities/core/DynamicEntitiesProvider.d.ts.map +1 -1
- package/dist/components/DynamicEntities/core/api/DynamicEntitiesApi.d.ts +4 -3
- package/dist/components/DynamicEntities/core/api/DynamicEntitiesApi.d.ts.map +1 -1
- package/dist/components/DynamicEntities/core/types/DynamicEntity.types.d.ts +2 -0
- package/dist/components/DynamicEntities/core/types/DynamicEntity.types.d.ts.map +1 -1
- package/dist/components/DynamicEntities/core/types/DynamicField.types.d.ts +2 -0
- package/dist/components/DynamicEntities/core/types/DynamicField.types.d.ts.map +1 -1
- package/dist/components/DynamicEntities/index.d.ts +2 -0
- package/dist/components/DynamicEntities/index.d.ts.map +1 -1
- package/dist/components/DynamicEntities/ui/DynamicEntities.d.ts +3 -1
- package/dist/components/DynamicEntities/ui/DynamicEntities.d.ts.map +1 -1
- package/dist/components/DynamicEntities/ui/DynamicEntityGrid.d.ts +2 -1
- package/dist/components/DynamicEntities/ui/DynamicEntityGrid.d.ts.map +1 -1
- package/dist/components/DynamicEntities/ui/DynamicEntityMultiRecord.d.ts +11 -0
- package/dist/components/DynamicEntities/ui/DynamicEntityMultiRecord.d.ts.map +1 -0
- package/dist/components/DynamicEntities/ui/DynamicFeatureOrchestrator.d.ts +9 -2
- package/dist/components/DynamicEntities/ui/DynamicFeatureOrchestrator.d.ts.map +1 -1
- package/dist/components/DynamicEntities/ui/DynamicFieldRenderer.d.ts.map +1 -1
- package/dist/components/FileUploader/FileUploader.types.d.ts +3 -1
- package/dist/components/FileUploader/FileUploader.types.d.ts.map +1 -1
- package/dist/components/GenericEntities/GenericEntities.d.ts +4 -0
- package/dist/components/GenericEntities/GenericEntities.d.ts.map +1 -0
- package/dist/components/GenericEntities/GenericEntities.types.d.ts +50 -0
- package/dist/components/GenericEntities/GenericEntities.types.d.ts.map +1 -0
- package/dist/components/GenericEntities/GenericEntityCreateModal.d.ts +8 -0
- package/dist/components/GenericEntities/GenericEntityCreateModal.d.ts.map +1 -0
- package/dist/components/GenericEntities/GenericEntityEditor.d.ts +11 -0
- package/dist/components/GenericEntities/GenericEntityEditor.d.ts.map +1 -0
- package/dist/components/GenericEntities/index.d.ts +5 -0
- package/dist/components/GenericEntities/index.d.ts.map +1 -0
- package/dist/components/LayoutContent/LayoutContent.d.ts +31 -0
- package/dist/components/LayoutContent/LayoutContent.d.ts.map +1 -0
- package/dist/components/LayoutContent/LayoutContent.types.d.ts +61 -0
- package/dist/components/LayoutContent/LayoutContent.types.d.ts.map +1 -0
- package/dist/components/LayoutContent/index.d.ts +3 -0
- package/dist/components/LayoutContent/index.d.ts.map +1 -0
- package/dist/components/MasterCrud/MasterCrud.d.ts +1 -1
- package/dist/components/MasterCrud/MasterCrud.d.ts.map +1 -1
- package/dist/components/MasterCrud/MasterCrud.types.d.ts +18 -0
- package/dist/components/MasterCrud/MasterCrud.types.d.ts.map +1 -1
- package/dist/components/MasterCrud/MasterCrudDynamicEntities.d.ts +13 -0
- package/dist/components/MasterCrud/MasterCrudDynamicEntities.d.ts.map +1 -0
- package/dist/components/MasterCrud/MasterCrudForm.d.ts.map +1 -1
- package/dist/components/MasterCrud/index.d.ts +1 -0
- package/dist/components/MasterCrud/index.d.ts.map +1 -1
- package/dist/index.d.ts +13 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/siesa-ui-kit.cjs +234 -196
- package/dist/siesa-ui-kit.cjs.map +1 -1
- package/dist/siesa-ui-kit.mjs +15335 -14136
- package/dist/siesa-ui-kit.mjs.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { type VariantProps } from "class-variance-authority";
|
|
3
3
|
declare const buttonVariants: (props?: ({
|
|
4
|
-
variant?: "secondary" | "default" | "outline" | "link" | "
|
|
4
|
+
variant?: "secondary" | "default" | "outline" | "link" | "destructive" | "ghost" | null | undefined;
|
|
5
5
|
size?: "default" | "xs" | "sm" | "icon" | "lg" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
|
|
6
6
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
7
|
declare function Button({ className, variant, size, asChild, ...props }: React.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CatalogManager.d.ts","sourceRoot":"","sources":["../../../../src/components/DynamicEntities/admin/CatalogManager.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"CatalogManager.d.ts","sourceRoot":"","sources":["../../../../src/components/DynamicEntities/admin/CatalogManager.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAsBnD,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAmRlC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DynamicEntitiesAdmin.d.ts","sourceRoot":"","sources":["../../../../src/components/DynamicEntities/admin/DynamicEntitiesAdmin.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAOxC,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAkGxC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EntityEditor.d.ts","sourceRoot":"","sources":["../../../../src/components/DynamicEntities/admin/EntityEditor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"EntityEditor.d.ts","sourceRoot":"","sources":["../../../../src/components/DynamicEntities/admin/EntityEditor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAWnD,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,CAoSpD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FeatureEditor.d.ts","sourceRoot":"","sources":["../../../../src/components/DynamicEntities/admin/FeatureEditor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"FeatureEditor.d.ts","sourceRoot":"","sources":["../../../../src/components/DynamicEntities/admin/FeatureEditor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AA0BnD,UAAU,kBAAkB;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,IAAI,CAAC;CACtB;AA8DD,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAoStD,CAAC"}
|
|
@@ -1,3 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
2
|
+
import type { Feature } from './services/FeatureService';
|
|
3
|
+
export interface FeatureListProps {
|
|
4
|
+
onSelectFeature?: (id: string) => void;
|
|
5
|
+
onCreatePlansAndCriteria?: (feature: Feature) => void;
|
|
6
|
+
searchTerm?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const FeatureList: React.FC<FeatureListProps>;
|
|
3
9
|
//# sourceMappingURL=FeatureList.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FeatureList.d.ts","sourceRoot":"","sources":["../../../../src/components/DynamicEntities/admin/FeatureList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"FeatureList.d.ts","sourceRoot":"","sources":["../../../../src/components/DynamicEntities/admin/FeatureList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAI5D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AAGzD,MAAM,WAAW,gBAAgB;IAC7B,eAAe,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,wBAAwB,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACtD,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CA0GlD,CAAC"}
|
|
@@ -5,6 +5,7 @@ export interface FieldDesignerProps {
|
|
|
5
5
|
onChange: (fields: DynamicField[]) => void;
|
|
6
6
|
onEdit: (field: DynamicField) => void;
|
|
7
7
|
onAdd: () => void;
|
|
8
|
+
isPlansAndCriteria?: boolean;
|
|
8
9
|
}
|
|
9
10
|
export declare const FieldDesigner: React.FC<FieldDesignerProps>;
|
|
10
11
|
//# sourceMappingURL=FieldDesigner.d.ts.map
|
|
@@ -1 +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;
|
|
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;AA+DrE,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;IAClB,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAChC;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CA+EtD,CAAC"}
|
|
@@ -1 +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;
|
|
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;AAYrE,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,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,EAAE,MAAM,IAAI,CAAC;CACxB;AAoBD,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAuOlD,CAAC"}
|
|
@@ -1 +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,
|
|
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,CAkKhD,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
export interface LayoutContentProps {
|
|
3
|
+
title: string;
|
|
4
|
+
onBack?: () => void;
|
|
5
|
+
actionLabel?: string;
|
|
6
|
+
onAction?: () => void;
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
}
|
|
9
|
+
export declare const LayoutContent: React.FC<LayoutContentProps>;
|
|
10
|
+
//# sourceMappingURL=LayoutContent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LayoutContent.d.ts","sourceRoot":"","sources":["../../../../../src/components/DynamicEntities/admin/layout/LayoutContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIzC,MAAM,WAAW,kBAAkB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,QAAQ,EAAE,SAAS,CAAC;CACvB;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CA+CtD,CAAC"}
|
|
@@ -8,6 +8,7 @@ export interface Feature {
|
|
|
8
8
|
description?: string;
|
|
9
9
|
type: 'Master' | 'Document' | 'Transaction';
|
|
10
10
|
active: boolean;
|
|
11
|
+
allowsPlansAndCriteria: boolean;
|
|
11
12
|
createdAt?: string;
|
|
12
13
|
updatedAt?: string;
|
|
13
14
|
featureEntities?: FeatureEntity[];
|
|
@@ -27,6 +28,7 @@ export declare class FeatureService implements CrudService<Feature> {
|
|
|
27
28
|
getAll(params: GetAllParams): Promise<GetAllResponse<Feature>>;
|
|
28
29
|
getById(id: string | number): Promise<Feature>;
|
|
29
30
|
getByCode(code: string): Promise<Feature>;
|
|
31
|
+
getByPath(path: string): Promise<Feature>;
|
|
30
32
|
create(data: Partial<Feature>): Promise<Feature>;
|
|
31
33
|
update(id: string | number, feature: Partial<Feature>): Promise<Feature>;
|
|
32
34
|
delete(id: string | number): Promise<void>;
|
|
@@ -1 +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,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,aAAa,EAAE,OAAO,CAAC,aAAa,CAAC,GAAG,OAAO,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"}
|
|
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,sBAAsB,EAAE,OAAO,CAAC;IAChC,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,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,CAAC,SAAS,EAAE,MAAM,EAAE,aAAa,EAAE,OAAO,CAAC,aAAa,CAAC,GAAG,OAAO,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"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
interface DynamicEntitiesContextType {
|
|
2
|
+
export interface DynamicEntitiesContextType {
|
|
3
3
|
baseUrl: string;
|
|
4
4
|
onError?: (error: Error) => void;
|
|
5
5
|
}
|
|
6
|
+
export declare const DynamicEntitiesContext: React.Context<DynamicEntitiesContextType | undefined>;
|
|
6
7
|
export interface DynamicEntitiesProviderProps {
|
|
7
8
|
baseUrl: string;
|
|
8
9
|
onError?: (error: Error) => void;
|
|
@@ -10,5 +11,5 @@ export interface DynamicEntitiesProviderProps {
|
|
|
10
11
|
}
|
|
11
12
|
export declare const DynamicEntitiesProvider: React.FC<DynamicEntitiesProviderProps>;
|
|
12
13
|
export declare const useDynamicEntitiesContext: () => DynamicEntitiesContextType;
|
|
13
|
-
export
|
|
14
|
+
export declare const useOptionalDynamicEntitiesContext: () => DynamicEntitiesContextType | undefined;
|
|
14
15
|
//# sourceMappingURL=DynamicEntitiesProvider.d.ts.map
|
|
@@ -1 +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,
|
|
1
|
+
{"version":3,"file":"DynamicEntitiesProvider.d.ts","sourceRoot":"","sources":["../../../../src/components/DynamicEntities/core/DynamicEntitiesProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoC,MAAM,OAAO,CAAC;AAEzD,MAAM,WAAW,0BAA0B;IACvC,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;CACpC;AAED,eAAO,MAAM,sBAAsB,uDAAmE,CAAC;AAEvG,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;AAEF,eAAO,MAAM,iCAAiC,QAAO,0BAA0B,GAAG,SAEjF,CAAC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type { DynamicEntityDefinition, SaveEavValuesDto } from '../types/DynamicEntity.types';
|
|
2
2
|
export declare const DynamicEntitiesApi: {
|
|
3
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>;
|
|
4
|
+
saveValues: (baseUrl: string, featureCode: string, entityCode: string, recordId: string, values: SaveEavValuesDto, idEntityMultiple?: string) => Promise<void>;
|
|
5
|
+
getValues: (baseUrl: string, featureCode: string, entityCode: string, recordId: string, idEntityMultiple?: string) => Promise<SaveEavValuesDto>;
|
|
6
|
+
deleteRecord: (baseUrl: string, featureCode: string, recordId: string, idEntityMultiple?: string) => Promise<void>;
|
|
7
|
+
getMultipleRecords: (baseUrl: string, featureCode: string, entityCode: string, recordId: string) => Promise<SaveEavValuesDto[]>;
|
|
7
8
|
};
|
|
8
9
|
//# sourceMappingURL=DynamicEntitiesApi.d.ts.map
|
|
@@ -1 +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;
|
|
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;0BAOrF,MAAM,eAAe,MAAM,cAAc,MAAM,YAAY,MAAM,UAAU,gBAAgB,qBAAqB,MAAM,KAAG,OAAO,CAAC,IAAI,CAAC;yBAYvI,MAAM,eAAe,MAAM,cAAc,MAAM,YAAY,MAAM,qBAAqB,MAAM,KAAG,OAAO,CAAC,gBAAgB,CAAC;4BASrH,MAAM,eAAe,MAAM,YAAY,MAAM,qBAAqB,MAAM,KAAG,OAAO,CAAC,IAAI,CAAC;kCAUlF,MAAM,eAAe,MAAM,cAAc,MAAM,YAAY,MAAM,KAAG,OAAO,CAAC,gBAAgB,EAAE,CAAC;CAKtI,CAAC"}
|
|
@@ -17,6 +17,7 @@ export interface DynamicEntity {
|
|
|
17
17
|
multiRecord: boolean;
|
|
18
18
|
isReadonly: boolean;
|
|
19
19
|
isDisabled: boolean;
|
|
20
|
+
isPlansAndCriteria: boolean;
|
|
20
21
|
}
|
|
21
22
|
export type RuleConditionType = 'Equals' | 'NotEquals' | 'In' | 'Greater' | 'Less' | 'GreaterThan' | 'LessThan' | 'Contains';
|
|
22
23
|
export type RuleActionType = 'Hide' | 'Show' | 'Disable' | 'Enable' | 'Require';
|
|
@@ -35,6 +36,7 @@ export interface DynamicEntityDefinition {
|
|
|
35
36
|
multiRecord: boolean;
|
|
36
37
|
isReadonly: boolean;
|
|
37
38
|
isDisabled: boolean;
|
|
39
|
+
isPlansAndCriteria: boolean;
|
|
38
40
|
fields: DynamicField[];
|
|
39
41
|
lists: GenericList[];
|
|
40
42
|
rules?: DynamicFieldRule[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DynamicEntity.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/DynamicEntities/core/types/DynamicEntity.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEzD,MAAM,WAAW,eAAe;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,WAAW;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,eAAe,EAAE,CAAC;CAC5B;AAED,MAAM,WAAW,aAAa;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,OAAO,CAAC;IACrB,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"DynamicEntity.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/DynamicEntities/core/types/DynamicEntity.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEzD,MAAM,WAAW,eAAe;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,WAAW;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,eAAe,EAAE,CAAC;CAC5B;AAED,MAAM,WAAW,aAAa;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,OAAO,CAAC;IACrB,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;IACpB,kBAAkB,EAAE,OAAO,CAAC;CAC/B;AAGD,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GAAG,WAAW,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,GAAG,aAAa,GAAG,UAAU,GAAG,UAAU,CAAC;AAE7H,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,CAAC;AAEhF,MAAM,WAAW,gBAAgB;IAC7B,EAAE,EAAE,MAAM,CAAC;IAGX,gBAAgB,EAAE,MAAM,CAAC;IACzB,SAAS,EAAE,iBAAiB,CAAC;IAC7B,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAGrB,cAAc,EAAE,MAAM,CAAC;IACvB,MAAM,EAAE,cAAc,CAAC;CAC1B;AAED,MAAM,WAAW,uBAAuB;IACpC,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,OAAO,CAAC;IACrB,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;IACpB,kBAAkB,EAAE,OAAO,CAAC;IAE5B,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"}
|
|
@@ -13,6 +13,7 @@ export declare const DynamicFieldType: {
|
|
|
13
13
|
readonly Multiselect: "Multiselect";
|
|
14
14
|
readonly Lookup: "Lookup";
|
|
15
15
|
readonly Switch: "Switch";
|
|
16
|
+
readonly GenericEntity: "GenericEntity";
|
|
16
17
|
};
|
|
17
18
|
export type DynamicFieldType = (typeof DynamicFieldType)[keyof typeof DynamicFieldType];
|
|
18
19
|
export interface DynamicField {
|
|
@@ -34,6 +35,7 @@ export interface DynamicField {
|
|
|
34
35
|
defaultNumeric?: number;
|
|
35
36
|
defaultDate?: string;
|
|
36
37
|
genericListId?: string;
|
|
38
|
+
genericEntityId?: string;
|
|
37
39
|
layouts?: DynamicFieldLayout[];
|
|
38
40
|
}
|
|
39
41
|
export interface DynamicFieldLayout {
|
|
@@ -1 +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
|
|
1
|
+
{"version":3,"file":"DynamicField.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/DynamicEntities/core/types/Dynamic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6
6
|
export * from './core/logic/RuleEngine';
|
|
7
7
|
export * from './ui/DynamicFieldRenderer';
|
|
8
8
|
export * from './ui/DynamicEntities';
|
|
9
|
+
export * from './ui/DynamicEntityMultiRecord';
|
|
9
10
|
export * from './ui/DynamicEntityGrid';
|
|
10
11
|
export * from './ui/DynamicFeatureOrchestrator';
|
|
11
12
|
export * from './admin/FeatureList';
|
|
12
13
|
export * from './admin/FeatureEditor';
|
|
13
14
|
export * from './admin/CatalogManager';
|
|
14
15
|
export * from './admin/services/FeatureService';
|
|
16
|
+
export * from './admin/DynamicEntitiesAdmin';
|
|
15
17
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +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"}
|
|
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,+BAA+B,CAAC;AAC9C,cAAc,wBAAwB,CAAC;AACvC,cAAc,iCAAiC,CAAC;AAChD,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,iCAAiC,CAAC;AAChD,cAAc,8BAA8B,CAAC"}
|
|
@@ -3,12 +3,14 @@ export interface DynamicEntitiesProps {
|
|
|
3
3
|
featureCode: string;
|
|
4
4
|
entityCode: string;
|
|
5
5
|
recordId: string;
|
|
6
|
+
idEntityMultiple?: string;
|
|
6
7
|
onSaved?: () => void;
|
|
7
8
|
className?: string;
|
|
8
9
|
hideSubmitButton?: boolean;
|
|
10
|
+
hideTitle?: boolean;
|
|
9
11
|
}
|
|
10
12
|
export interface DynamicEntitiesRef {
|
|
11
|
-
save: () => Promise<boolean>;
|
|
13
|
+
save: (overrideRecordId?: string) => Promise<boolean>;
|
|
12
14
|
}
|
|
13
15
|
export declare const DynamicEntities: React.ForwardRefExoticComponent<DynamicEntitiesProps & React.RefAttributes<DynamicEntitiesRef>>;
|
|
14
16
|
//# sourceMappingURL=DynamicEntities.d.ts.map
|
|
@@ -1 +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;
|
|
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,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,SAAS,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,MAAM,WAAW,kBAAkB;IAC/B,IAAI,EAAE,CAAC,gBAAgB,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;CACzD;AAED,eAAO,MAAM,eAAe,iGA0L1B,CAAC"}
|
|
@@ -2,7 +2,8 @@ import React from 'react';
|
|
|
2
2
|
interface DynamicEntityGridProps {
|
|
3
3
|
featureCode: string;
|
|
4
4
|
entityCode: string;
|
|
5
|
-
|
|
5
|
+
masterRecordId: string;
|
|
6
|
+
onEdit?: (idEntityMultiple: string) => void;
|
|
6
7
|
onCreate?: () => void;
|
|
7
8
|
className?: string;
|
|
8
9
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DynamicEntityGrid.d.ts","sourceRoot":"","sources":["../../../../src/components/DynamicEntities/ui/DynamicEntityGrid.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"DynamicEntityGrid.d.ts","sourceRoot":"","sources":["../../../../src/components/DynamicEntities/ui/DynamicEntityGrid.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAKnD,UAAU,sBAAsB;IAC5B,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,CAAC,gBAAgB,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5C,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CA+G9D,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type DynamicEntitiesRef } from './DynamicEntities';
|
|
3
|
+
import type { DynamicEntityDefinition } from '../core/types/DynamicEntity.types';
|
|
4
|
+
export interface DynamicEntityMultiRecordProps {
|
|
5
|
+
featureCode: string;
|
|
6
|
+
entityCode: string;
|
|
7
|
+
recordId: string;
|
|
8
|
+
definition: DynamicEntityDefinition;
|
|
9
|
+
}
|
|
10
|
+
export declare const DynamicEntityMultiRecord: React.ForwardRefExoticComponent<DynamicEntityMultiRecordProps & React.RefAttributes<DynamicEntitiesRef>>;
|
|
11
|
+
//# sourceMappingURL=DynamicEntityMultiRecord.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DynamicEntityMultiRecord.d.ts","sourceRoot":"","sources":["../../../../src/components/DynamicEntities/ui/DynamicEntityMultiRecord.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AACxC,OAAO,EAAmB,KAAK,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAE7E,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAEjF,MAAM,WAAW,6BAA6B;IAC1C,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,uBAAuB,CAAC;CACvC;AAED,eAAO,MAAM,wBAAwB,0GAuEnC,CAAC"}
|
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
2
|
+
import { type DynamicEntitiesRef } from './DynamicEntities';
|
|
3
|
+
export interface DynamicFeatureOrchestratorProps {
|
|
3
4
|
featureCode: string;
|
|
4
5
|
recordId?: string;
|
|
5
6
|
className?: string;
|
|
6
7
|
}
|
|
8
|
+
export declare const EntityContainer: React.ForwardRefExoticComponent<{
|
|
9
|
+
featureCode: string;
|
|
10
|
+
entityCode: string;
|
|
11
|
+
recordId?: string;
|
|
12
|
+
hideTitle?: boolean;
|
|
13
|
+
hideSubmitButton?: boolean;
|
|
14
|
+
} & React.RefAttributes<DynamicEntitiesRef>>;
|
|
7
15
|
export declare const DynamicFeatureOrchestrator: React.FC<DynamicFeatureOrchestratorProps>;
|
|
8
|
-
export {};
|
|
9
16
|
//# sourceMappingURL=DynamicFeatureOrchestrator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DynamicFeatureOrchestrator.d.ts","sourceRoot":"","sources":["../../../../src/components/DynamicEntities/ui/DynamicFeatureOrchestrator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"DynamicFeatureOrchestrator.d.ts","sourceRoot":"","sources":["../../../../src/components/DynamicEntities/ui/DynamicFeatureOrchestrator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAKnD,OAAO,EAAmB,KAAK,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAK7E,MAAM,WAAW,+BAA+B;IAC5C,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,eAAe;iBACX,MAAM;gBACP,MAAM;eACP,MAAM;gBACL,OAAO;uBACA,OAAO;4CAoC5B,CAAC;AAEH,eAAO,MAAM,0BAA0B,EAAE,KAAK,CAAC,EAAE,CAAC,+BAA+B,CA0IhF,CAAC"}
|
|
@@ -1 +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;
|
|
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;AAerE,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,CAyOpE,CAAC"}
|
|
@@ -43,10 +43,12 @@ export interface FileUploaderProps {
|
|
|
43
43
|
variant?: 'dropzone' | 'button' | 'minimal';
|
|
44
44
|
/**
|
|
45
45
|
* Label text for the dropzone.
|
|
46
|
+
* @default 'Arrastra y suelta archivos aquí'
|
|
46
47
|
*/
|
|
47
48
|
label?: string;
|
|
48
49
|
/**
|
|
49
|
-
* Text for the dropzone sub-label
|
|
50
|
+
* Text for the dropzone sub-label.
|
|
51
|
+
* @default 'o haz clic para explorar'
|
|
50
52
|
*/
|
|
51
53
|
subLabel?: string;
|
|
52
54
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileUploader.types.d.ts","sourceRoot":"","sources":["../../../src/components/FileUploader/FileUploader.types.ts"],"names":[],"mappings":"AAEA;;GAEG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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 @@
|
|
|
1
|
+
{"version":3,"file":"GenericEntities.d.ts","sourceRoot":"","sources":["../../../src/components/GenericEntities/GenericEntities.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAExC,OAAO,KAAK,EAAE,oBAAoB,EAAoC,MAAM,yBAAyB,CAAC;AAUtG,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CA6I1D,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
export interface GenericEntity {
|
|
2
|
+
id: string;
|
|
3
|
+
code: string;
|
|
4
|
+
description: string;
|
|
5
|
+
isActive: boolean;
|
|
6
|
+
}
|
|
7
|
+
export interface GenericEntityItem {
|
|
8
|
+
id: string;
|
|
9
|
+
genericEntityId: string;
|
|
10
|
+
code: string;
|
|
11
|
+
value: string;
|
|
12
|
+
sortOrder: number;
|
|
13
|
+
isActive: boolean;
|
|
14
|
+
}
|
|
15
|
+
export interface GenericEntitiesProps {
|
|
16
|
+
/**
|
|
17
|
+
* Título principal del componente
|
|
18
|
+
*/
|
|
19
|
+
title?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Datos de las entidades genéricas
|
|
22
|
+
*/
|
|
23
|
+
entities?: GenericEntity[];
|
|
24
|
+
/**
|
|
25
|
+
* Estado de carga general
|
|
26
|
+
*/
|
|
27
|
+
isLoading?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Evento disparado al seleccionar una entidad para ver sus items
|
|
30
|
+
*/
|
|
31
|
+
onSelectEntity?: (entity: GenericEntity) => void;
|
|
32
|
+
/**
|
|
33
|
+
* Evento al guardar una creación en el modal
|
|
34
|
+
*/
|
|
35
|
+
onCreateEntity?: (entity: Partial<GenericEntity>) => void;
|
|
36
|
+
/**
|
|
37
|
+
* Evento al guardar en el editor
|
|
38
|
+
*/
|
|
39
|
+
onSaveEntity?: (entity: GenericEntity, items: GenericEntityItem[]) => void;
|
|
40
|
+
/**
|
|
41
|
+
* Callback para cargar los items de una entidad al entrar en modo edición.
|
|
42
|
+
* Debe retornar un arreglo de GenericEntityItem.
|
|
43
|
+
*/
|
|
44
|
+
onLoadItems?: (entity: GenericEntity) => Promise<GenericEntityItem[]>;
|
|
45
|
+
/**
|
|
46
|
+
* Clases opcionales de CSS (Tailwind)
|
|
47
|
+
*/
|
|
48
|
+
className?: string;
|
|
49
|
+
}
|
|
50
|
+
//# sourceMappingURL=GenericEntities.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GenericEntities.types.d.ts","sourceRoot":"","sources":["../../../src/components/GenericEntities/GenericEntities.types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,WAAW,iBAAiB;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,eAAe,EAAE,MAAM,CAAC;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,WAAW,oBAAoB;IACjC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,QAAQ,CAAC,EAAE,aAAa,EAAE,CAAC;IAE3B;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,aAAa,KAAK,IAAI,CAAC;IAEjD;;OAEG;IACH,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC,aAAa,CAAC,KAAK,IAAI,CAAC;IAE1D;;OAEG;IACH,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,aAAa,EAAE,KAAK,EAAE,iBAAiB,EAAE,KAAK,IAAI,CAAC;IAE3E;;;OAGG;IACH,WAAW,CAAC,EAAE,CAAC,MAAM,EAAE,aAAa,KAAK,OAAO,CAAC,iBAAiB,EAAE,CAAC,CAAC;IAEtE;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { GenericEntity } from './GenericEntities.types';
|
|
3
|
+
export interface GenericEntityCreateModalProps {
|
|
4
|
+
onClose: () => void;
|
|
5
|
+
onSave: (entity: Partial<GenericEntity>) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const GenericEntityCreateModal: React.FC<GenericEntityCreateModalProps>;
|
|
8
|
+
//# sourceMappingURL=GenericEntityCreateModal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GenericEntityCreateModal.d.ts","sourceRoot":"","sources":["../../../src/components/GenericEntities/GenericEntityCreateModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAIxC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAE7D,MAAM,WAAW,6BAA6B;IAC1C,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC,aAAa,CAAC,KAAK,IAAI,CAAC;CACpD;AAED,eAAO,MAAM,wBAAwB,EAAE,KAAK,CAAC,EAAE,CAAC,6BAA6B,CA8D5E,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { GenericEntity, GenericEntityItem } from './GenericEntities.types';
|
|
3
|
+
export interface GenericEntityEditorProps {
|
|
4
|
+
entity: GenericEntity;
|
|
5
|
+
initialItems?: GenericEntityItem[];
|
|
6
|
+
onBack: () => void;
|
|
7
|
+
onSave: (entity: GenericEntity, items: GenericEntityItem[]) => void;
|
|
8
|
+
isLoading?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const GenericEntityEditor: React.FC<GenericEntityEditorProps>;
|
|
11
|
+
//# sourceMappingURL=GenericEntityEditor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GenericEntityEditor.d.ts","sourceRoot":"","sources":["../../../src/components/GenericEntities/GenericEntityEditor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAIxC,OAAO,KAAK,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAEhF,MAAM,WAAW,wBAAwB;IACrC,MAAM,EAAE,aAAa,CAAC;IACtB,YAAY,CAAC,EAAE,iBAAiB,EAAE,CAAC;IACnC,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,MAAM,EAAE,CAAC,MAAM,EAAE,aAAa,EAAE,KAAK,EAAE,iBAAiB,EAAE,KAAK,IAAI,CAAC;IACpE,SAAS,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CA6GlE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/GenericEntities/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { LayoutContentProps } from './LayoutContent.types';
|
|
3
|
+
/**
|
|
4
|
+
* Componente LayoutContent del sistema de diseño Siesa
|
|
5
|
+
*
|
|
6
|
+
* Estructura de layout que envuelve una vista completa. Incluye una cabecera
|
|
7
|
+
* superior (Toolbar) pegajosa con título, opción de retorno y botón de acción,
|
|
8
|
+
* junto con un área de contenido principal.
|
|
9
|
+
*
|
|
10
|
+
* Implementa mejores prácticas:
|
|
11
|
+
* - Soporte completo para modo oscuro (dark mode)
|
|
12
|
+
* - Diseño pixel-perfect basado en Figma
|
|
13
|
+
* - Uso estricto de tokens de color del sistema
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* <LayoutContent
|
|
18
|
+
* title="Entidades Dinámicas"
|
|
19
|
+
* onBack={() => history.back()}
|
|
20
|
+
* primaryAction={{
|
|
21
|
+
* label: "Nuevo",
|
|
22
|
+
* onClick: () => openModal(),
|
|
23
|
+
* icon: <PlusIcon />
|
|
24
|
+
* }}
|
|
25
|
+
* >
|
|
26
|
+
* <p>Contenido principal aquí</p>
|
|
27
|
+
* </LayoutContent>
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
export declare const LayoutContent: React.FC<LayoutContentProps>;
|
|
31
|
+
//# sourceMappingURL=LayoutContent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LayoutContent.d.ts","sourceRoot":"","sources":["../../../src/components/LayoutContent/LayoutContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAEhE;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAuGtD,CAAC"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { ButtonType } from '../Button/Button.types';
|
|
3
|
+
/**
|
|
4
|
+
* Configuración para el botón de acción principal del Toolbar
|
|
5
|
+
*/
|
|
6
|
+
export interface LayoutActionConfig {
|
|
7
|
+
/**
|
|
8
|
+
* Texto a mostrar en el botón
|
|
9
|
+
*/
|
|
10
|
+
label: string;
|
|
11
|
+
/**
|
|
12
|
+
* Función a ejecutar al hacer clic
|
|
13
|
+
*/
|
|
14
|
+
onClick: () => void;
|
|
15
|
+
/**
|
|
16
|
+
* Icono opcional a mostrar a la izquierda del texto
|
|
17
|
+
*/
|
|
18
|
+
icon?: ReactNode;
|
|
19
|
+
/**
|
|
20
|
+
* Tipo de botón (por defecto será 'default' - primario)
|
|
21
|
+
* @default 'default'
|
|
22
|
+
*/
|
|
23
|
+
type?: ButtonType;
|
|
24
|
+
/**
|
|
25
|
+
* Si el botón está deshabilitado
|
|
26
|
+
* @default false
|
|
27
|
+
*/
|
|
28
|
+
disabled?: boolean;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Propiedades del componente LayoutContent
|
|
32
|
+
*/
|
|
33
|
+
export interface LayoutContentProps {
|
|
34
|
+
/**
|
|
35
|
+
* Título principal a mostrar en la cabecera (Toolbar)
|
|
36
|
+
*/
|
|
37
|
+
title: string;
|
|
38
|
+
/**
|
|
39
|
+
* Contenido principal que se renderizará debajo de la cabecera
|
|
40
|
+
*/
|
|
41
|
+
children: ReactNode;
|
|
42
|
+
/**
|
|
43
|
+
* Función opcional a ejecutar al hacer clic en el botón de retroceso.
|
|
44
|
+
* Si no se provee, el botón de retroceso no se renderizará.
|
|
45
|
+
*/
|
|
46
|
+
onBack?: () => void;
|
|
47
|
+
/**
|
|
48
|
+
* Configuración del botón de acción principal ubicado a la derecha de la cabecera.
|
|
49
|
+
*/
|
|
50
|
+
primaryAction?: LayoutActionConfig;
|
|
51
|
+
/**
|
|
52
|
+
* Contenido personalizado a renderizar a la derecha del Toolbar.
|
|
53
|
+
* Si se proporciona, reemplaza el renderizado automático de `primaryAction`.
|
|
54
|
+
*/
|
|
55
|
+
toolbarEndContent?: ReactNode;
|
|
56
|
+
/**
|
|
57
|
+
* Clases CSS opcionales para extender el contenedor principal
|
|
58
|
+
*/
|
|
59
|
+
className?: string;
|
|
60
|
+
}
|
|
61
|
+
//# sourceMappingURL=LayoutContent.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LayoutContent.types.d.ts","sourceRoot":"","sources":["../../../src/components/LayoutContent/LayoutContent.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEzD;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;;OAGG;IACH,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IAEpB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IAEpB;;OAEG;IACH,aAAa,CAAC,EAAE,kBAAkB,CAAC;IAEnC;;;OAGG;IACH,iBAAiB,CAAC,EAAE,SAAS,CAAC;IAE9B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/LayoutContent/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,YAAY,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC"}
|