@fctc/sme-widget-ui 1.4.4 → 1.4.6

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/widgets.js CHANGED
@@ -10281,9 +10281,9 @@ var IcEmptyTable = () => {
10281
10281
  {
10282
10282
  d: "M64.5 0V140",
10283
10283
  stroke: "#EEEFF1",
10284
- "stroke-width": "0.8",
10285
- "stroke-miterlimit": "10",
10286
- "stroke-dasharray": "3 3"
10284
+ strokeWidth: "0.8",
10285
+ strokeMiterlimit: "10",
10286
+ strokeDasharray: "3 3"
10287
10287
  }
10288
10288
  ),
10289
10289
  /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
@@ -10291,9 +10291,9 @@ var IcEmptyTable = () => {
10291
10291
  {
10292
10292
  d: "M151.5 0V140",
10293
10293
  stroke: "#EEEFF1",
10294
- "stroke-width": "0.8",
10295
- "stroke-miterlimit": "10",
10296
- "stroke-dasharray": "3 3"
10294
+ strokeWidth: "0.8",
10295
+ strokeMiterlimit: "10",
10296
+ strokeDasharray: "3 3"
10297
10297
  }
10298
10298
  ),
10299
10299
  /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
@@ -10301,9 +10301,9 @@ var IcEmptyTable = () => {
10301
10301
  {
10302
10302
  d: "M215.5 24H0.5",
10303
10303
  stroke: "#EEEFF1",
10304
- "stroke-width": "0.8",
10305
- "stroke-miterlimit": "10",
10306
- "stroke-dasharray": "3 3"
10304
+ strokeWidth: "0.8",
10305
+ strokeMiterlimit: "10",
10306
+ strokeDasharray: "3 3"
10307
10307
  }
10308
10308
  ),
10309
10309
  /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
@@ -10311,9 +10311,9 @@ var IcEmptyTable = () => {
10311
10311
  {
10312
10312
  d: "M215.5 50H0.5",
10313
10313
  stroke: "#EEEFF1",
10314
- "stroke-width": "0.8",
10315
- "stroke-miterlimit": "10",
10316
- "stroke-dasharray": "3 3"
10314
+ strokeWidth: "0.8",
10315
+ strokeMiterlimit: "10",
10316
+ strokeDasharray: "3 3"
10317
10317
  }
10318
10318
  ),
10319
10319
  /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
@@ -10321,9 +10321,9 @@ var IcEmptyTable = () => {
10321
10321
  {
10322
10322
  d: "M215.5 88H0.5",
10323
10323
  stroke: "#EEEFF1",
10324
- "stroke-width": "0.8",
10325
- "stroke-miterlimit": "10",
10326
- "stroke-dasharray": "3 3"
10324
+ strokeWidth: "0.8",
10325
+ strokeMiterlimit: "10",
10326
+ strokeDasharray: "3 3"
10327
10327
  }
10328
10328
  ),
10329
10329
  /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
@@ -10331,9 +10331,9 @@ var IcEmptyTable = () => {
10331
10331
  {
10332
10332
  d: "M215.5 114H0.5",
10333
10333
  stroke: "#EEEFF1",
10334
- "stroke-width": "0.8",
10335
- "stroke-miterlimit": "10",
10336
- "stroke-dasharray": "3 3"
10334
+ strokeWidth: "0.8",
10335
+ strokeMiterlimit: "10",
10336
+ strokeDasharray: "3 3"
10337
10337
  }
10338
10338
  ),
10339
10339
  /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
@@ -10341,8 +10341,8 @@ var IcEmptyTable = () => {
10341
10341
  {
10342
10342
  d: "M199.5 0V140",
10343
10343
  stroke: "#EEEFF1",
10344
- "stroke-width": "0.8",
10345
- "stroke-miterlimit": "10"
10344
+ strokeWidth: "0.8",
10345
+ strokeMiterlimit: "10"
10346
10346
  }
10347
10347
  ),
10348
10348
  /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
@@ -10350,8 +10350,8 @@ var IcEmptyTable = () => {
10350
10350
  {
10351
10351
  d: "M16.5 0V140",
10352
10352
  stroke: "#EEEFF1",
10353
- "stroke-width": "0.8",
10354
- "stroke-miterlimit": "10"
10353
+ strokeWidth: "0.8",
10354
+ strokeMiterlimit: "10"
10355
10355
  }
10356
10356
  ),
10357
10357
  /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
@@ -10359,8 +10359,8 @@ var IcEmptyTable = () => {
10359
10359
  {
10360
10360
  d: "M0.5 16H215.5",
10361
10361
  stroke: "#EEEFF1",
10362
- "stroke-width": "0.8",
10363
- "stroke-miterlimit": "10"
10362
+ strokeWidth: "0.8",
10363
+ strokeMiterlimit: "10"
10364
10364
  }
10365
10365
  ),
10366
10366
  /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
@@ -10368,8 +10368,8 @@ var IcEmptyTable = () => {
10368
10368
  {
10369
10369
  d: "M0.5 124H215.5",
10370
10370
  stroke: "#EEEFF1",
10371
- "stroke-width": "0.8",
10372
- "stroke-miterlimit": "10"
10371
+ strokeWidth: "0.8",
10372
+ strokeMiterlimit: "10"
10373
10373
  }
10374
10374
  ),
10375
10375
  /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
@@ -10378,9 +10378,9 @@ var IcEmptyTable = () => {
10378
10378
  opacity: "0.6",
10379
10379
  d: "M85.3696 59.4442L85.9782 60.2035C86.1008 60.3564 86.3827 60.1962 86.5084 59.9022L87.8918 56.6641",
10380
10380
  stroke: "#5C5E63",
10381
- "stroke-width": "0.6",
10382
- "stroke-linecap": "round",
10383
- "stroke-linejoin": "round"
10381
+ strokeWidth: "0.6",
10382
+ strokeLinecap: "round",
10383
+ strokeLinejoin: "round"
10384
10384
  }
10385
10385
  ),
10386
10386
  /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
@@ -10389,9 +10389,9 @@ var IcEmptyTable = () => {
10389
10389
  opacity: "0.6",
10390
10390
  d: "M115.636 39.734L94.1971 52.1117C93.5007 52.5139 92.936 53.4918 92.936 54.296V55.0242C92.936 55.8284 93.5007 56.1544 94.1971 55.7523L115.636 43.3745C116.333 42.9724 116.897 41.9944 116.897 41.1902V40.4621C116.897 39.6579 116.333 39.3319 115.636 39.734Z",
10391
10391
  stroke: "#5C5E63",
10392
- "stroke-width": "0.6",
10393
- "stroke-linecap": "round",
10394
- "stroke-linejoin": "round"
10392
+ strokeWidth: "0.6",
10393
+ strokeLinecap: "round",
10394
+ strokeLinejoin: "round"
10395
10395
  }
10396
10396
  ),
10397
10397
  /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
@@ -10400,9 +10400,9 @@ var IcEmptyTable = () => {
10400
10400
  opacity: "0.6",
10401
10401
  d: "M115.636 52.8395L94.1971 65.2172C93.5007 65.6193 92.936 66.5973 92.936 67.4015V68.1296C92.936 68.9339 93.5007 69.2598 94.1971 68.8577L115.636 56.48C116.333 56.0779 116.897 55.0999 116.897 54.2957V53.5676C116.897 52.7633 116.333 52.4373 115.636 52.8395Z",
10402
10402
  stroke: "#5C5E63",
10403
- "stroke-width": "0.6",
10404
- "stroke-linecap": "round",
10405
- "stroke-linejoin": "round"
10403
+ strokeWidth: "0.6",
10404
+ strokeLinecap: "round",
10405
+ strokeLinejoin: "round"
10406
10406
  }
10407
10407
  ),
10408
10408
  /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
@@ -10411,9 +10411,9 @@ var IcEmptyTable = () => {
10411
10411
  opacity: "0.6",
10412
10412
  d: "M115.636 65.9449L94.1971 78.3227C93.5007 78.7248 92.936 79.7027 92.936 80.507V81.2351C92.936 82.0393 93.5007 82.3653 94.1971 81.9632L115.636 69.5854C116.333 69.1833 116.897 68.2054 116.897 67.4011V66.673C116.897 65.8688 116.333 65.5428 115.636 65.9449Z",
10413
10413
  stroke: "#5C5E63",
10414
- "stroke-width": "0.6",
10415
- "stroke-linecap": "round",
10416
- "stroke-linejoin": "round"
10414
+ strokeWidth: "0.6",
10415
+ strokeLinecap: "round",
10416
+ strokeLinejoin: "round"
10417
10417
  }
10418
10418
  ),
10419
10419
  /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
@@ -10422,9 +10422,9 @@ var IcEmptyTable = () => {
10422
10422
  opacity: "0.6",
10423
10423
  d: "M115.636 79.0504L94.1971 91.4281C93.5007 91.8303 92.936 92.8082 92.936 93.6125V94.3406C92.936 95.1448 93.5007 95.4708 94.1971 95.0687L115.636 82.6909C116.333 82.2888 116.897 81.3108 116.897 80.5066V79.7785C116.897 78.9743 116.333 78.6483 115.636 79.0504Z",
10424
10424
  stroke: "#5C5E63",
10425
- "stroke-width": "0.6",
10426
- "stroke-linecap": "round",
10427
- "stroke-linejoin": "round"
10425
+ strokeWidth: "0.6",
10426
+ strokeLinecap: "round",
10427
+ strokeLinejoin: "round"
10428
10428
  }
10429
10429
  ),
10430
10430
  /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
@@ -10439,9 +10439,9 @@ var IcEmptyTable = () => {
10439
10439
  {
10440
10440
  d: "M85 50.5007L87.7503 52.132M132.081 26.7061C131.991 26.6565 131.887 26.6302 131.773 26.6289C131.503 26.6259 131.15 26.8298 130.444 27.2376L87.7502 52.0455L87.7503 114.001",
10441
10441
  stroke: "#9FA1A7",
10442
- "stroke-width": "0.6",
10443
- "stroke-linecap": "round",
10444
- "stroke-linejoin": "round"
10442
+ strokeWidth: "0.6",
10443
+ strokeLinecap: "round",
10444
+ strokeLinejoin: "round"
10445
10445
  }
10446
10446
  ),
10447
10447
  /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
@@ -10449,8 +10449,8 @@ var IcEmptyTable = () => {
10449
10449
  {
10450
10450
  d: "M132.285 26.7744C132.222 26.6683 132.14 26.5872 132.042 26.5334L129.519 25.0772C129.429 25.0276 129.325 25.0013 129.211 25C128.942 24.9971 128.588 25.201 127.882 25.6087L86.5178 49.4905C85.8115 49.8983 85.4583 50.1021 85.1886 50.4166C84.9513 50.6932 84.7584 51.0274 84.6375 51.3712C84.5 51.762 84.5 52.1698 84.5 52.9854V110.942C84.5 111.758 84.5 112.166 84.6375 112.398C84.7003 112.504 84.7827 112.585 84.8806 112.639L87.4028 114.095C87.4932 114.145 87.5969 114.171 87.7108 114.172C87.9806 114.175 88.3337 113.971 89.04 113.563L130.404 89.6817C131.111 89.2739 131.464 89.07 131.734 88.7556C131.971 88.479 132.164 88.1448 132.285 87.801C132.422 87.4102 132.422 87.0023 132.422 86.1868V28.2298C132.422 27.4143 132.422 27.0066 132.285 26.7744Z",
10451
10451
  stroke: "#5C5E63",
10452
- "stroke-linecap": "round",
10453
- "stroke-linejoin": "round"
10452
+ strokeLinecap: "round",
10453
+ strokeLinejoin: "round"
10454
10454
  }
10455
10455
  ),
10456
10456
  /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
@@ -10459,9 +10459,9 @@ var IcEmptyTable = () => {
10459
10459
  opacity: "0.6",
10460
10460
  d: "M96.6305 54.2962L96.6305 54.2962C94.541 55.5025 92.8472 58.4364 92.8472 60.8491V60.8491C92.8472 63.2618 94.541 64.2398 96.6305 63.0334L96.6305 63.0334C98.72 61.827 100.414 58.8932 100.414 56.4805V56.4805C100.414 54.0677 98.72 53.0898 96.6305 54.2962Z",
10461
10461
  stroke: "#5C5E63",
10462
- "stroke-width": "0.6",
10463
- "stroke-linecap": "round",
10464
- "stroke-linejoin": "round"
10462
+ strokeWidth: "0.6",
10463
+ strokeLinecap: "round",
10464
+ strokeLinejoin: "round"
10465
10465
  }
10466
10466
  ),
10467
10467
  /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
@@ -10470,9 +10470,9 @@ var IcEmptyTable = () => {
10470
10470
  opacity: "0.6",
10471
10471
  d: "M95.3696 59.4441L95.9782 60.2034C96.1008 60.3564 96.3827 60.1962 96.5084 59.9021L97.8918 56.6641",
10472
10472
  stroke: "#5C5E63",
10473
- "stroke-width": "0.6",
10474
- "stroke-linecap": "round",
10475
- "stroke-linejoin": "round"
10473
+ strokeWidth: "0.6",
10474
+ strokeLinecap: "round",
10475
+ strokeLinejoin: "round"
10476
10476
  }
10477
10477
  ),
10478
10478
  /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
@@ -10481,9 +10481,9 @@ var IcEmptyTable = () => {
10481
10481
  opacity: "0.6",
10482
10482
  d: "M96.6305 67.4016L96.6305 67.4016C94.541 68.608 92.8472 71.5418 92.8472 73.9545V73.9546C92.8472 76.3673 94.541 77.3452 96.6305 76.1389L96.6305 76.1389C98.72 74.9325 100.414 71.9987 100.414 69.5859V69.5859C100.414 67.1732 98.72 66.1953 96.6305 67.4016Z",
10483
10483
  stroke: "#5C5E63",
10484
- "stroke-width": "0.6",
10485
- "stroke-linecap": "round",
10486
- "stroke-linejoin": "round"
10484
+ strokeWidth: "0.6",
10485
+ strokeLinecap: "round",
10486
+ strokeLinejoin: "round"
10487
10487
  }
10488
10488
  ),
10489
10489
  /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
@@ -10492,9 +10492,9 @@ var IcEmptyTable = () => {
10492
10492
  opacity: "0.6",
10493
10493
  d: "M96.6305 80.5071L96.6305 80.5071C94.541 81.7135 92.8472 84.6473 92.8472 87.06V87.06C92.8472 89.4727 94.541 90.4507 96.6305 89.2443L96.6305 89.2443C98.72 88.038 100.414 85.1041 100.414 82.6914V82.6914C100.414 80.2787 98.72 79.3007 96.6305 80.5071Z",
10494
10494
  stroke: "#5C5E63",
10495
- "stroke-width": "0.6",
10496
- "stroke-linecap": "round",
10497
- "stroke-linejoin": "round"
10495
+ strokeWidth: "0.6",
10496
+ strokeLinecap: "round",
10497
+ strokeLinejoin: "round"
10498
10498
  }
10499
10499
  ),
10500
10500
  /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
@@ -10503,9 +10503,9 @@ var IcEmptyTable = () => {
10503
10503
  opacity: "0.6",
10504
10504
  d: "M96.6305 93.6126L96.6305 93.6126C94.541 94.8189 92.8472 97.7528 92.8472 100.165V100.165C92.8472 102.578 94.541 103.556 96.6305 102.35L96.6305 102.35C98.72 101.143 100.414 98.2096 100.414 95.7969V95.7969C100.414 93.3842 98.72 92.4062 96.6305 93.6126Z",
10505
10505
  stroke: "#5C5E63",
10506
- "stroke-width": "0.6",
10507
- "stroke-linecap": "round",
10508
- "stroke-linejoin": "round"
10506
+ strokeWidth: "0.6",
10507
+ strokeLinecap: "round",
10508
+ strokeLinejoin: "round"
10509
10509
  }
10510
10510
  ),
10511
10511
  /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
@@ -10514,9 +10514,9 @@ var IcEmptyTable = () => {
10514
10514
  opacity: "0.6",
10515
10515
  d: "M125.636 39.734L104.197 52.1117C103.501 52.5139 102.936 53.4918 102.936 54.296V55.0242C102.936 55.8284 103.501 56.1544 104.197 55.7523L125.636 43.3745C126.333 42.9724 126.897 41.9944 126.897 41.1902V40.4621C126.897 39.6579 126.333 39.3319 125.636 39.734Z",
10516
10516
  stroke: "#5C5E63",
10517
- "stroke-width": "0.6",
10518
- "stroke-linecap": "round",
10519
- "stroke-linejoin": "round"
10517
+ strokeWidth: "0.6",
10518
+ strokeLinecap: "round",
10519
+ strokeLinejoin: "round"
10520
10520
  }
10521
10521
  ),
10522
10522
  /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
@@ -10525,9 +10525,9 @@ var IcEmptyTable = () => {
10525
10525
  opacity: "0.6",
10526
10526
  d: "M125.636 52.8395L104.197 65.2172C103.501 65.6193 102.936 66.5973 102.936 67.4015V68.1296C102.936 68.9339 103.501 69.2598 104.197 68.8577L125.636 56.48C126.333 56.0779 126.897 55.0999 126.897 54.2957V53.5676C126.897 52.7633 126.333 52.4373 125.636 52.8395Z",
10527
10527
  stroke: "#5C5E63",
10528
- "stroke-width": "0.6",
10529
- "stroke-linecap": "round",
10530
- "stroke-linejoin": "round"
10528
+ strokeWidth: "0.6",
10529
+ strokeLinecap: "round",
10530
+ strokeLinejoin: "round"
10531
10531
  }
10532
10532
  ),
10533
10533
  /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
@@ -10536,9 +10536,9 @@ var IcEmptyTable = () => {
10536
10536
  opacity: "0.6",
10537
10537
  d: "M125.636 65.9449L104.197 78.3227C103.501 78.7248 102.936 79.7027 102.936 80.507V81.2351C102.936 82.0393 103.501 82.3653 104.197 81.9632L125.636 69.5854C126.333 69.1833 126.897 68.2054 126.897 67.4011V66.673C126.897 65.8688 126.333 65.5428 125.636 65.9449Z",
10538
10538
  stroke: "#5C5E63",
10539
- "stroke-width": "0.6",
10540
- "stroke-linecap": "round",
10541
- "stroke-linejoin": "round"
10539
+ strokeWidth: "0.6",
10540
+ strokeLinecap: "round",
10541
+ strokeLinejoin: "round"
10542
10542
  }
10543
10543
  ),
10544
10544
  /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
@@ -10547,9 +10547,9 @@ var IcEmptyTable = () => {
10547
10547
  opacity: "0.6",
10548
10548
  d: "M125.636 79.0504L104.197 91.4281C103.501 91.8303 102.936 92.8082 102.936 93.6125V94.3406C102.936 95.1448 103.501 95.4708 104.197 95.0687L125.636 82.6909C126.333 82.2888 126.897 81.3108 126.897 80.5066V79.7785C126.897 78.9743 126.333 78.6483 125.636 79.0504Z",
10549
10549
  stroke: "#5C5E63",
10550
- "stroke-width": "0.6",
10551
- "stroke-linecap": "round",
10552
- "stroke-linejoin": "round"
10550
+ strokeWidth: "0.6",
10551
+ strokeLinecap: "round",
10552
+ strokeLinejoin: "round"
10553
10553
  }
10554
10554
  ),
10555
10555
  /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
@@ -10573,9 +10573,9 @@ var IcEmptyTable = () => {
10573
10573
  {
10574
10574
  d: "M112.328 31.8616C112.788 32.1606 113.441 32.1362 114.165 31.718M114.165 31.718L117.318 29.8977M114.165 31.718C112.772 32.5222 111.643 31.8702 111.643 30.2617M117.318 29.8977C118.321 29.3186 119.233 29.2429 119.91 29.5874L117.387 28.1312C116.71 27.7867 115.799 27.8624 114.796 28.4415L111.643 30.2617M117.318 29.8977C119.407 28.6913 121.101 29.6693 121.101 32.082C121.101 32.4841 120.819 32.9731 120.471 33.1741L96.5097 47.0081C96.1614 47.2091 95.8791 47.0462 95.8791 46.644M111.643 30.2617C111.643 28.2512 110.231 27.4362 108.49 28.4415M95.8791 46.644C95.8791 46.8532 95.9554 46.9976 96.0777 47.0598L93.5555 45.6036C93.4332 45.5414 93.3569 45.397 93.3569 45.1878C93.3569 42.7751 95.0507 39.8413 97.1402 38.6349L100.293 36.8147C101.686 36.0104 102.815 34.0545 102.815 32.4461C102.815 30.4355 104.227 27.9906 105.968 26.9853C106.804 26.5027 107.563 26.4396 108.128 26.7267L110.65 28.183C110.086 27.8958 109.326 27.959 108.49 28.4415M95.8791 46.644C95.8791 44.2313 97.573 41.2975 99.6624 40.0911L102.815 38.2709C104.208 37.4666 105.337 35.5107 105.337 33.9023C105.337 31.8917 106.749 29.4468 108.49 28.4415M109.751 31.3539C109.751 32.1581 109.186 33.1361 108.49 33.5382C107.794 33.9403 107.229 33.6143 107.229 32.8101C107.229 32.0059 107.794 31.0279 108.49 30.6258C109.186 30.2237 109.751 30.5497 109.751 31.3539Z",
10575
10575
  stroke: "#9FA1A7",
10576
- "stroke-width": "0.6",
10577
- "stroke-linecap": "round",
10578
- "stroke-linejoin": "round"
10576
+ strokeWidth: "0.6",
10577
+ strokeLinecap: "round",
10578
+ strokeLinejoin: "round"
10579
10579
  }
10580
10580
  )
10581
10581
  ] }),
@@ -17743,6 +17743,7 @@ var BinaryField = (props) => {
17743
17743
  required = false,
17744
17744
  invisible = false,
17745
17745
  //hook return
17746
+ string,
17746
17747
  inputId,
17747
17748
  selectedImage,
17748
17749
  initialImage,
@@ -17759,6 +17760,9 @@ var BinaryField = (props) => {
17759
17760
  {
17760
17761
  name: name2 ?? "",
17761
17762
  control: methods.control,
17763
+ rules: {
17764
+ required: required && !invisible ? { value: true, message: `${string} ${i18n_default.t("must_required")}` } : false
17765
+ },
17762
17766
  render: ({ field }) => {
17763
17767
  const renderImage = initialImage || selectedImage;
17764
17768
  return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(