@dartech/arsenal-ui 1.3.72 → 1.3.73

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 (2) hide show
  1. package/index.js +2 -78
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -3429,83 +3429,6 @@ const EntityAdditionalFields = ({
3429
3429
  };
3430
3430
  var EntityAdditionalFields$1 = EntityAdditionalFields;
3431
3431
 
3432
- const sources = [{
3433
- label: 'Arsenal',
3434
- value: 'ARSENAL'
3435
- }, {
3436
- label: 'Scalend',
3437
- value: 'SCALEND'
3438
- }];
3439
- const modules = [{
3440
- label: 'Customers',
3441
- value: 'CUSTOMERS'
3442
- }, {
3443
- label: 'Products',
3444
- value: 'PRODUCTS'
3445
- }, {
3446
- label: 'Pledges',
3447
- value: 'PLEDGES'
3448
- }];
3449
- const EntityReferencePropertyFields = ({
3450
- propertyFieldName
3451
- }) => {
3452
- const {
3453
- control
3454
- } = useFormContext();
3455
- const source = useWatch({
3456
- control,
3457
- name: `${propertyFieldName}.source`
3458
- });
3459
- return jsxs(Fragment, {
3460
- children: [jsx(Grid, {
3461
- children: jsx(ControlSelect, {
3462
- required: true,
3463
- control: control,
3464
- name: `${propertyFieldName}.source`,
3465
- label: "Source",
3466
- options: sources
3467
- })
3468
- }), source && jsx(Grid, {
3469
- children: source === 'ARSENAL' ? jsx(ControlInput, {
3470
- required: true,
3471
- control: control,
3472
- name: `${propertyFieldName}.definitionCode`,
3473
- label: "Definition Code"
3474
- }) : jsx(ControlSelect, {
3475
- required: true,
3476
- control: control,
3477
- name: `${propertyFieldName}.definitionCode`,
3478
- label: "Definition Code",
3479
- valueKey: "value",
3480
- options: modules
3481
- })
3482
- }), jsx(Grid, {
3483
- children: jsx(ControlInput, {
3484
- required: true,
3485
- control: control,
3486
- name: `${propertyFieldName}.definitionVersion`,
3487
- label: "Definition Version",
3488
- defaultValue: 1
3489
- })
3490
- }), jsx(Grid, {
3491
- children: jsx(ControlInput, {
3492
- required: true,
3493
- control: control,
3494
- name: `${propertyFieldName}.labelPropertyCode`,
3495
- label: "Label Property Code"
3496
- })
3497
- }), jsx(Grid, {
3498
- children: jsx(ControlInput, {
3499
- required: true,
3500
- control: control,
3501
- name: `${propertyFieldName}.valuePropertyCode`,
3502
- label: "Value Property Code"
3503
- })
3504
- })]
3505
- });
3506
- };
3507
- var EntityReferencePropertyFields$1 = EntityReferencePropertyFields;
3508
-
3509
3432
  const StringPropertyFields = ({
3510
3433
  propertyFieldName
3511
3434
  }) => {
@@ -3632,7 +3555,8 @@ const PropertyAdditionalFields = ({
3632
3555
  defaultValue: DATE_TIME_DEFAULT_FORMAT
3633
3556
  });
3634
3557
  case PropertyType.ENTITY_REFERENCE:
3635
- return jsx(EntityReferencePropertyFields$1, {
3558
+ // return <EntityReferencePropertyFields propertyFieldName={propertyFieldName} />;
3559
+ return jsx(StringPropertyFields$1, {
3636
3560
  propertyFieldName: propertyFieldName
3637
3561
  });
3638
3562
  case PropertyType.ENTITY:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dartech/arsenal-ui",
3
- "version": "1.3.72",
3
+ "version": "1.3.73",
4
4
  "author": "DAR",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"