sy-form-components 0.2.7 → 0.2.9

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/index.d.mts CHANGED
@@ -542,6 +542,7 @@ interface FormInstanceData {
542
542
  formUuid: string;
543
543
  appType: string;
544
544
  title?: string;
545
+ instanceTitle?: string;
545
546
  data: Record<string, any>;
546
547
  creator?: {
547
548
  userId: string;
@@ -549,6 +550,10 @@ interface FormInstanceData {
549
550
  avatar?: string;
550
551
  department?: string;
551
552
  };
553
+ createdBy?: string;
554
+ createdByName?: string;
555
+ createdByDepartmentId?: string;
556
+ createdByDepartmentName?: string;
552
557
  createdAt: string;
553
558
  updatedAt?: string;
554
559
  }
@@ -1374,6 +1379,7 @@ interface StickyActionBarProps {
1374
1379
  layoutMode?: 'default' | 'approval';
1375
1380
  inDrawer?: boolean;
1376
1381
  maxWidth?: number | string;
1382
+ position?: 'sticky' | 'fixed' | 'inline';
1377
1383
  }
1378
1384
  declare const StickyActionBar: React__default.FC<StickyActionBarProps>;
1379
1385
 
@@ -1437,6 +1443,10 @@ type DetailRenderer = (props: {
1437
1443
  formInstanceId?: string;
1438
1444
  onClose: () => void;
1439
1445
  }) => React__default.ReactNode;
1446
+ type DetailPageUrlBuilder = (props: {
1447
+ record: any;
1448
+ formInstanceId: string;
1449
+ }) => string | undefined;
1440
1450
  type SubmitRenderer = (props: {
1441
1451
  onClose: () => void;
1442
1452
  onSubmitted: () => void;
@@ -1456,6 +1466,7 @@ interface DataManagementListProps {
1456
1466
  configScope?: DataManagementConfigScope;
1457
1467
  title?: string;
1458
1468
  detailRenderer?: DetailRenderer;
1469
+ detailPageUrlBuilder?: DetailPageUrlBuilder;
1459
1470
  submitRenderer?: SubmitRenderer;
1460
1471
  requestOverride?: FormRuntimeApi['request'] | FormRuntimeApiConfig;
1461
1472
  rowActions?: DataManagementRowAction[];
package/dist/index.d.ts CHANGED
@@ -542,6 +542,7 @@ interface FormInstanceData {
542
542
  formUuid: string;
543
543
  appType: string;
544
544
  title?: string;
545
+ instanceTitle?: string;
545
546
  data: Record<string, any>;
546
547
  creator?: {
547
548
  userId: string;
@@ -549,6 +550,10 @@ interface FormInstanceData {
549
550
  avatar?: string;
550
551
  department?: string;
551
552
  };
553
+ createdBy?: string;
554
+ createdByName?: string;
555
+ createdByDepartmentId?: string;
556
+ createdByDepartmentName?: string;
552
557
  createdAt: string;
553
558
  updatedAt?: string;
554
559
  }
@@ -1374,6 +1379,7 @@ interface StickyActionBarProps {
1374
1379
  layoutMode?: 'default' | 'approval';
1375
1380
  inDrawer?: boolean;
1376
1381
  maxWidth?: number | string;
1382
+ position?: 'sticky' | 'fixed' | 'inline';
1377
1383
  }
1378
1384
  declare const StickyActionBar: React__default.FC<StickyActionBarProps>;
1379
1385
 
@@ -1437,6 +1443,10 @@ type DetailRenderer = (props: {
1437
1443
  formInstanceId?: string;
1438
1444
  onClose: () => void;
1439
1445
  }) => React__default.ReactNode;
1446
+ type DetailPageUrlBuilder = (props: {
1447
+ record: any;
1448
+ formInstanceId: string;
1449
+ }) => string | undefined;
1440
1450
  type SubmitRenderer = (props: {
1441
1451
  onClose: () => void;
1442
1452
  onSubmitted: () => void;
@@ -1456,6 +1466,7 @@ interface DataManagementListProps {
1456
1466
  configScope?: DataManagementConfigScope;
1457
1467
  title?: string;
1458
1468
  detailRenderer?: DetailRenderer;
1469
+ detailPageUrlBuilder?: DetailPageUrlBuilder;
1459
1470
  submitRenderer?: SubmitRenderer;
1460
1471
  requestOverride?: FormRuntimeApi['request'] | FormRuntimeApiConfig;
1461
1472
  rowActions?: DataManagementRowAction[];