react-table-edit 0.8.0 → 0.8.2

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.js CHANGED
@@ -30,6 +30,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
30
30
  // index.ts
31
31
  var Table_edit_exports = {};
32
32
  __export(Table_edit_exports, {
33
+ InputStyleComponent: () => InputStyleComponent,
33
34
  SelectTable: () => SelectTable,
34
35
  TabsMenuComponent: () => TabsMenuComponent,
35
36
  default: () => Table_edit_default,
@@ -2471,11 +2472,14 @@ var TableEdit = (0, import_react16.forwardRef)((props, ref) => {
2471
2472
  }
2472
2473
  }
2473
2474
  }
2474
- changeDataSource(dataSource);
2475
2475
  if (dataSourceChange) {
2476
2476
  dataSourceChange(dataSource);
2477
2477
  }
2478
2478
  }
2479
+ } else {
2480
+ if (dataSourceChange) {
2481
+ dataSourceChange(dataSource);
2482
+ }
2479
2483
  }
2480
2484
  };
2481
2485
  const handleKeyPress = (e) => {
@@ -2577,7 +2581,7 @@ var TableEdit = (0, import_react16.forwardRef)((props, ref) => {
2577
2581
  optionsSelect = col.selectSettings?.options ? col.selectSettings?.validateOption ? col.selectSettings?.options.filter((item) => col.selectSettings?.validateOption(item, row)) : col.selectSettings?.options : [];
2578
2582
  }
2579
2583
  if (col.selectSettings?.isMulti) {
2580
- valueSelect = !isNullOrUndefined(row[col.field]) && row[col.field]?.length > 0 ? optionsSelect?.filter((val) => row[col.field]?.includes(val[col.selectSettings?.fieldValue ?? "value"])) : [];
2584
+ valueSelect = row[col.field];
2581
2585
  } else {
2582
2586
  valueSelect = !isNullOrUndefined(row[col.field]) && row[col.field] !== "" ? optionsSelect?.find((val) => val[col.selectSettings?.fieldValue ?? "value"] === row[col.field]) : "";
2583
2587
  }
@@ -3815,12 +3819,990 @@ var import_becoxy_icons8 = require("becoxy-icons");
3815
3819
  var import_reactstrap13 = require("reactstrap");
3816
3820
  var import_classnames16 = __toESM(require("classnames"));
3817
3821
  var import_react18 = require("react");
3822
+
3823
+ // test-app/src/component/input-style/fonts.ts
3824
+ var OptionFont = [
3825
+ {
3826
+ value: 1,
3827
+ label: "Times New Roman"
3828
+ },
3829
+ {
3830
+ value: 2,
3831
+ label: "Arial"
3832
+ },
3833
+ {
3834
+ value: 3,
3835
+ label: "Arial Black"
3836
+ },
3837
+ {
3838
+ value: 4,
3839
+ label: "Calibri"
3840
+ },
3841
+ {
3842
+ value: 5,
3843
+ label: "Cambria"
3844
+ },
3845
+ {
3846
+ value: 6,
3847
+ label: "Candara"
3848
+ },
3849
+ {
3850
+ value: 7,
3851
+ label: "Comic Sans MS"
3852
+ },
3853
+ {
3854
+ value: 8,
3855
+ label: "Consolas"
3856
+ },
3857
+ {
3858
+ value: 9,
3859
+ label: "Courier New"
3860
+ },
3861
+ {
3862
+ value: 10,
3863
+ label: "Georgia"
3864
+ },
3865
+ {
3866
+ value: 11,
3867
+ label: "Impact"
3868
+ },
3869
+ {
3870
+ value: 12,
3871
+ label: "Lucida Console"
3872
+ },
3873
+ {
3874
+ value: 13,
3875
+ label: "Lucida Sans Unicode"
3876
+ },
3877
+ {
3878
+ value: 14,
3879
+ label: "Palatino Linotype"
3880
+ },
3881
+ {
3882
+ value: 15,
3883
+ label: "Segoe UI"
3884
+ },
3885
+ {
3886
+ value: 16,
3887
+ label: "Tahoma"
3888
+ },
3889
+ {
3890
+ value: 17,
3891
+ label: "Trebuchet MS"
3892
+ },
3893
+ {
3894
+ value: 18,
3895
+ label: "Verdana"
3896
+ },
3897
+ {
3898
+ value: 19,
3899
+ label: "Book Antiqua"
3900
+ },
3901
+ {
3902
+ value: 20,
3903
+ label: "Garamond"
3904
+ },
3905
+ {
3906
+ value: 21,
3907
+ label: "Gill Sans"
3908
+ },
3909
+ {
3910
+ value: 22,
3911
+ label: "Helvetica"
3912
+ },
3913
+ {
3914
+ value: 23,
3915
+ label: "Franklin Gothic Medium"
3916
+ },
3917
+ {
3918
+ value: 24,
3919
+ label: "Futura"
3920
+ },
3921
+ {
3922
+ value: 25,
3923
+ label: "Baskerville"
3924
+ },
3925
+ {
3926
+ value: 26,
3927
+ label: "Brush Script MT"
3928
+ },
3929
+ {
3930
+ value: 27,
3931
+ label: "Rockwell"
3932
+ },
3933
+ {
3934
+ value: 28,
3935
+ label: "Century Gothic"
3936
+ },
3937
+ {
3938
+ value: 29,
3939
+ label: "Perpetua"
3940
+ },
3941
+ {
3942
+ value: 30,
3943
+ label: "Didot"
3944
+ },
3945
+ {
3946
+ value: 31,
3947
+ label: "Arial Narrow"
3948
+ },
3949
+ {
3950
+ value: 32,
3951
+ label: "Arial Rounded MT Bold"
3952
+ },
3953
+ {
3954
+ value: 33,
3955
+ label: "Calibri Light"
3956
+ },
3957
+ {
3958
+ value: 34,
3959
+ label: "Cambria Math"
3960
+ },
3961
+ {
3962
+ value: 35,
3963
+ label: "Century"
3964
+ },
3965
+ {
3966
+ value: 36,
3967
+ label: "Charter"
3968
+ },
3969
+ {
3970
+ value: 37,
3971
+ label: "Cochin"
3972
+ },
3973
+ {
3974
+ value: 40,
3975
+ label: "Frank Ruhl"
3976
+ },
3977
+ {
3978
+ value: 43,
3979
+ label: "Lucida Bright"
3980
+ },
3981
+ {
3982
+ value: 44,
3983
+ label: "Lucida Handwriting"
3984
+ },
3985
+ {
3986
+ value: 45,
3987
+ label: "Mongolian Baiti"
3988
+ },
3989
+ {
3990
+ value: 46,
3991
+ label: "Miriam"
3992
+ },
3993
+ {
3994
+ value: 47,
3995
+ label: "MS Gothic"
3996
+ },
3997
+ {
3998
+ value: 48,
3999
+ label: "MS Mincho"
4000
+ },
4001
+ {
4002
+ value: 49,
4003
+ label: "MS PMincho"
4004
+ },
4005
+ {
4006
+ value: 50,
4007
+ label: "MS PGothic"
4008
+ },
4009
+ {
4010
+ value: 51,
4011
+ label: "MT Extra"
4012
+ },
4013
+ {
4014
+ value: 52,
4015
+ label: "Palatino"
4016
+ },
4017
+ {
4018
+ value: 53,
4019
+ label: "Tisa"
4020
+ },
4021
+ {
4022
+ value: 54,
4023
+ label: "Vivaldi"
4024
+ },
4025
+ {
4026
+ value: 55,
4027
+ label: "WST_Gothic"
4028
+ },
4029
+ {
4030
+ value: 56,
4031
+ label: "Andalus"
4032
+ },
4033
+ {
4034
+ value: 57,
4035
+ label: "Angsana New"
4036
+ },
4037
+ {
4038
+ value: 58,
4039
+ label: "Arabic Typesetting"
4040
+ },
4041
+ {
4042
+ value: 59,
4043
+ label: "Avenir"
4044
+ },
4045
+ {
4046
+ value: 60,
4047
+ label: "Browallia New"
4048
+ },
4049
+ {
4050
+ value: 63,
4051
+ label: "Iris"
4052
+ },
4053
+ {
4054
+ value: 64,
4055
+ label: "Jasmine"
4056
+ },
4057
+ {
4058
+ value: 65,
4059
+ label: "Mistral"
4060
+ },
4061
+ {
4062
+ value: 66,
4063
+ label: "Myriad Pro"
4064
+ },
4065
+ {
4066
+ value: 68,
4067
+ label: "Vladimir Script"
4068
+ },
4069
+ {
4070
+ value: 69,
4071
+ label: "Algerian"
4072
+ },
4073
+ {
4074
+ value: 70,
4075
+ label: "Berlin Sans FB"
4076
+ },
4077
+ {
4078
+ value: 71,
4079
+ label: "Bodoni MT"
4080
+ },
4081
+ {
4082
+ value: 72,
4083
+ label: "Bookman Old Style"
4084
+ },
4085
+ {
4086
+ value: 73,
4087
+ label: "Copperplate Gothic"
4088
+ },
4089
+ {
4090
+ value: 74,
4091
+ label: "Elephant"
4092
+ },
4093
+ {
4094
+ value: 75,
4095
+ label: "FangSong"
4096
+ },
4097
+ {
4098
+ value: 76,
4099
+ label: "Garamond Premr"
4100
+ },
4101
+ {
4102
+ value: 77,
4103
+ label: "Jokerman"
4104
+ },
4105
+ {
4106
+ value: 78,
4107
+ label: "Kaiti"
4108
+ },
4109
+ {
4110
+ value: 79,
4111
+ label: "MingLiU"
4112
+ },
4113
+ {
4114
+ value: 80,
4115
+ label: "Myriad"
4116
+ },
4117
+ {
4118
+ value: 81,
4119
+ label: "Oklahoma"
4120
+ },
4121
+ {
4122
+ value: 82,
4123
+ label: "Papyrus"
4124
+ },
4125
+ {
4126
+ value: 83,
4127
+ label: "Perpetua Titling MT"
4128
+ },
4129
+ {
4130
+ value: 84,
4131
+ label: "Rockwell Extra Bold"
4132
+ },
4133
+ {
4134
+ value: 85,
4135
+ label: "Script MT Bold"
4136
+ },
4137
+ {
4138
+ value: 86,
4139
+ label: "Snap ITC"
4140
+ },
4141
+ {
4142
+ value: 88,
4143
+ label: "Viner Hand ITC"
4144
+ },
4145
+ {
4146
+ value: 89,
4147
+ label: "Wingdings"
4148
+ },
4149
+ {
4150
+ value: 90,
4151
+ label: "Zapf Dingbats"
4152
+ },
4153
+ {
4154
+ value: 91,
4155
+ label: "Apple Chancery"
4156
+ },
4157
+ {
4158
+ value: 92,
4159
+ label: "Avant Garde"
4160
+ },
4161
+ {
4162
+ value: 93,
4163
+ label: "Big Caslon"
4164
+ },
4165
+ {
4166
+ value: 94,
4167
+ label: "Bodoni 72"
4168
+ },
4169
+ {
4170
+ value: 95,
4171
+ label: "Caslon"
4172
+ },
4173
+ {
4174
+ value: 96,
4175
+ label: "Chaparral Pro"
4176
+ },
4177
+ {
4178
+ value: 97,
4179
+ label: "Clarendon"
4180
+ },
4181
+ {
4182
+ value: 98,
4183
+ label: "Coolvetica"
4184
+ },
4185
+ {
4186
+ value: 99,
4187
+ label: "Doulos SIL"
4188
+ },
4189
+ {
4190
+ value: 100,
4191
+ label: "Fira Sans"
4192
+ },
4193
+ {
4194
+ value: 101,
4195
+ label: "Frutiger"
4196
+ },
4197
+ {
4198
+ value: 102,
4199
+ label: "Georgia Pro"
4200
+ },
4201
+ {
4202
+ value: 103,
4203
+ label: "Goudy Old Style"
4204
+ },
4205
+ {
4206
+ value: 104,
4207
+ label: "ITC Garamond"
4208
+ },
4209
+ {
4210
+ value: 105,
4211
+ label: "ITC Officina Sans"
4212
+ },
4213
+ {
4214
+ value: 106,
4215
+ label: "Janson Text"
4216
+ },
4217
+ {
4218
+ value: 108,
4219
+ label: "Kabel"
4220
+ },
4221
+ {
4222
+ value: 109,
4223
+ label: "Lato"
4224
+ },
4225
+ {
4226
+ value: 110,
4227
+ label: "Lora"
4228
+ },
4229
+ {
4230
+ value: 111,
4231
+ label: "Mangal"
4232
+ },
4233
+ {
4234
+ value: 112,
4235
+ label: "Marlett"
4236
+ },
4237
+ {
4238
+ value: 113,
4239
+ label: "Minion Pro"
4240
+ },
4241
+ {
4242
+ value: 114,
4243
+ label: "Modern No. 20"
4244
+ },
4245
+ {
4246
+ value: 115,
4247
+ label: "Neutraface"
4248
+ },
4249
+ {
4250
+ value: 116,
4251
+ label: "Noto Sans"
4252
+ },
4253
+ {
4254
+ value: 117,
4255
+ label: "Open Sans"
4256
+ },
4257
+ {
4258
+ value: 118,
4259
+ label: "Orator"
4260
+ },
4261
+ {
4262
+ value: 119,
4263
+ label: "Oswald"
4264
+ },
4265
+ {
4266
+ value: 120,
4267
+ label: "Playfair Display"
4268
+ },
4269
+ {
4270
+ value: 121,
4271
+ label: "Quicksand"
4272
+ },
4273
+ {
4274
+ value: 122,
4275
+ label: "Roboto"
4276
+ },
4277
+ {
4278
+ value: 124,
4279
+ label: "Sabon"
4280
+ },
4281
+ {
4282
+ value: 125,
4283
+ label: "Segoe Print"
4284
+ },
4285
+ {
4286
+ value: 126,
4287
+ label: "Segoe Script"
4288
+ },
4289
+ {
4290
+ value: 128,
4291
+ label: "TeX Gyre Adventor"
4292
+ },
4293
+ {
4294
+ value: 129,
4295
+ label: "TeX Gyre Bonum"
4296
+ },
4297
+ {
4298
+ value: 130,
4299
+ label: "TeX Gyre Chorus"
4300
+ },
4301
+ {
4302
+ value: 131,
4303
+ label: "TeX Gyre Cursor"
4304
+ },
4305
+ {
4306
+ value: 132,
4307
+ label: "TeX Gyre Heros"
4308
+ },
4309
+ {
4310
+ value: 133,
4311
+ label: "TeX Gyre Pagella"
4312
+ },
4313
+ {
4314
+ value: 134,
4315
+ label: "TeX Gyre Schola"
4316
+ },
4317
+ {
4318
+ value: 135,
4319
+ label: "TeX Gyre Termes"
4320
+ },
4321
+ {
4322
+ value: 136,
4323
+ label: "Trajan Pro"
4324
+ },
4325
+ {
4326
+ value: 137,
4327
+ label: "Univers"
4328
+ },
4329
+ {
4330
+ value: 138,
4331
+ label: "Verdana Pro"
4332
+ },
4333
+ {
4334
+ value: 140,
4335
+ label: "Zapf Calligraphic"
4336
+ },
4337
+ {
4338
+ value: 141,
4339
+ label: "Zapf Chancery"
4340
+ },
4341
+ {
4342
+ value: 143,
4343
+ label: "Abadi MT Condensed"
4344
+ },
4345
+ {
4346
+ value: 144,
4347
+ label: "Albertus"
4348
+ },
4349
+ {
4350
+ value: 146,
4351
+ label: "Aldine"
4352
+ },
4353
+ {
4354
+ value: 147,
4355
+ label: "American Typewriter"
4356
+ },
4357
+ {
4358
+ value: 148,
4359
+ label: "Andale Mono"
4360
+ },
4361
+ {
4362
+ value: 149,
4363
+ label: "Apple Gothic"
4364
+ },
4365
+ {
4366
+ value: 150,
4367
+ label: "Apple Symbols"
4368
+ },
4369
+ {
4370
+ value: 151,
4371
+ label: "Arial Unicode MS"
4372
+ },
4373
+ {
4374
+ value: 153,
4375
+ label: "Bernhard Fashion"
4376
+ },
4377
+ {
4378
+ value: 154,
4379
+ label: "Bernhard Gothic"
4380
+ },
4381
+ {
4382
+ value: 155,
4383
+ label: "Bernhard Modern"
4384
+ },
4385
+ {
4386
+ value: 157,
4387
+ label: "Blackadder ITC"
4388
+ },
4389
+ {
4390
+ value: 158,
4391
+ label: "Bodoni MT Condensed"
4392
+ },
4393
+ {
4394
+ value: 160,
4395
+ label: "Bookman"
4396
+ },
4397
+ {
4398
+ value: 162,
4399
+ label: "Bradley Hand ITC"
4400
+ },
4401
+ {
4402
+ value: 163,
4403
+ label: "Brush Script Std"
4404
+ },
4405
+ {
4406
+ value: 164,
4407
+ label: "Calisto MT"
4408
+ },
4409
+ {
4410
+ value: 165,
4411
+ label: "Castle"
4412
+ },
4413
+ {
4414
+ value: 166,
4415
+ label: "Chalkboard SE"
4416
+ },
4417
+ {
4418
+ value: 167,
4419
+ label: "Chalkduster"
4420
+ },
4421
+ {
4422
+ value: 168,
4423
+ label: "Cheltenham"
4424
+ },
4425
+ {
4426
+ value: 170,
4427
+ label: "Copperplate"
4428
+ },
4429
+ {
4430
+ value: 171,
4431
+ label: "Courier"
4432
+ },
4433
+ {
4434
+ value: 172,
4435
+ label: "Creepster"
4436
+ },
4437
+ {
4438
+ value: 173,
4439
+ label: "Crimson Text"
4440
+ },
4441
+ {
4442
+ value: 177,
4443
+ label: "Freestyle Script"
4444
+ },
4445
+ {
4446
+ value: 180,
4447
+ label: "Gill Sans MT"
4448
+ },
4449
+ {
4450
+ value: 181,
4451
+ label: "Gotham"
4452
+ },
4453
+ {
4454
+ value: 182,
4455
+ label: "Harlow Solid Italic"
4456
+ },
4457
+ {
4458
+ value: 183,
4459
+ label: "Harrington"
4460
+ },
4461
+ {
4462
+ value: 184,
4463
+ label: "Hobo Std"
4464
+ },
4465
+ {
4466
+ value: 185,
4467
+ label: "Hoefler Text"
4468
+ },
4469
+ {
4470
+ value: 186,
4471
+ label: "Humin"
4472
+ },
4473
+ {
4474
+ value: 187,
4475
+ label: "Inconsolata"
4476
+ },
4477
+ {
4478
+ value: 189,
4479
+ label: "Kaiti SC"
4480
+ },
4481
+ {
4482
+ value: 190,
4483
+ label: "Klavika"
4484
+ },
4485
+ {
4486
+ value: 191,
4487
+ label: "Kozuka Gothic"
4488
+ },
4489
+ {
4490
+ value: 192,
4491
+ label: "Kozuka Mincho"
4492
+ },
4493
+ {
4494
+ value: 193,
4495
+ label: "Lucida Grande"
4496
+ },
4497
+ {
4498
+ value: 194,
4499
+ label: "Lucida Sans"
4500
+ },
4501
+ {
4502
+ value: 195,
4503
+ label: "Lucida Sans Typewriter"
4504
+ },
4505
+ {
4506
+ value: 196,
4507
+ label: "Merryweather"
4508
+ },
4509
+ {
4510
+ value: 198,
4511
+ label: "Monaco"
4512
+ },
4513
+ {
4514
+ value: 200,
4515
+ label: "Noto Serif"
4516
+ },
4517
+ {
4518
+ value: 201,
4519
+ label: "Odin Rounded"
4520
+ },
4521
+ {
4522
+ value: 202,
4523
+ label: "Open Sans Condensed"
4524
+ },
4525
+ {
4526
+ value: 203,
4527
+ label: "Optima"
4528
+ },
4529
+ {
4530
+ value: 205,
4531
+ label: "Parchment"
4532
+ },
4533
+ {
4534
+ value: 208,
4535
+ label: "PT Serif"
4536
+ },
4537
+ {
4538
+ value: 210,
4539
+ label: "Ravie"
4540
+ },
4541
+ {
4542
+ value: 212,
4543
+ label: "Ruge Boogie"
4544
+ },
4545
+ {
4546
+ value: 214,
4547
+ label: "Segoe MDL2 Assets"
4548
+ },
4549
+ {
4550
+ value: 217,
4551
+ label: "Shonar Bangla"
4552
+ },
4553
+ {
4554
+ value: 218,
4555
+ label: "Simplified Arabic"
4556
+ },
4557
+ {
4558
+ value: 219,
4559
+ label: "Sitka"
4560
+ },
4561
+ {
4562
+ value: 220,
4563
+ label: "Stencil"
4564
+ },
4565
+ {
4566
+ value: 221,
4567
+ label: "Swis721 BT"
4568
+ },
4569
+ {
4570
+ value: 230,
4571
+ label: "Adobe Caslon Pro"
4572
+ },
4573
+ {
4574
+ value: 231,
4575
+ label: "Adobe Garamond Pro"
4576
+ },
4577
+ {
4578
+ value: 232,
4579
+ label: "Avenir Next"
4580
+ },
4581
+ {
4582
+ value: 233,
4583
+ label: "Baskerville Old Face"
4584
+ },
4585
+ {
4586
+ value: 234,
4587
+ label: "Bebas Neue"
4588
+ },
4589
+ {
4590
+ value: 235,
4591
+ label: "Bembo"
4592
+ },
4593
+ {
4594
+ value: 238,
4595
+ label: "Bodoni MT Poster Compressed"
4596
+ },
4597
+ {
4598
+ value: 239,
4599
+ label: "Braggadocio"
4600
+ },
4601
+ {
4602
+ value: 241,
4603
+ label: "Castellar"
4604
+ },
4605
+ {
4606
+ value: 242,
4607
+ label: "Chiller"
4608
+ },
4609
+ {
4610
+ value: 244,
4611
+ label: "Edwardian Script ITC"
4612
+ },
4613
+ {
4614
+ value: 245,
4615
+ label: "Exo"
4616
+ },
4617
+ {
4618
+ value: 246,
4619
+ label: "Fira Code"
4620
+ },
4621
+ {
4622
+ value: 251,
4623
+ label: "Helvetica Neue"
4624
+ },
4625
+ {
4626
+ value: 252,
4627
+ label: "Karla"
4628
+ },
4629
+ {
4630
+ value: 254,
4631
+ label: "Merriweather"
4632
+ },
4633
+ {
4634
+ value: 255,
4635
+ label: "Montserrat"
4636
+ },
4637
+ {
4638
+ value: 257,
4639
+ label: "Old English Text MT"
4640
+ },
4641
+ {
4642
+ value: 258,
4643
+ label: "Oxygen"
4644
+ },
4645
+ {
4646
+ value: 261,
4647
+ label: "Roboto Condensed"
4648
+ },
4649
+ {
4650
+ value: 262,
4651
+ label: "Source Sans Pro"
4652
+ },
4653
+ {
4654
+ value: 263,
4655
+ label: "Space Mono"
4656
+ },
4657
+ {
4658
+ value: 264,
4659
+ label: "Spectral"
4660
+ },
4661
+ {
4662
+ value: 265,
4663
+ label: "Titan One"
4664
+ },
4665
+ {
4666
+ value: 266,
4667
+ label: "Ubuntu"
4668
+ },
4669
+ {
4670
+ value: 267,
4671
+ label: "Ubuntu Condensed"
4672
+ },
4673
+ {
4674
+ value: 268,
4675
+ label: "Varela Round"
4676
+ }
4677
+ ];
4678
+
4679
+ // test-app/src/component/input-style/index.tsx
3818
4680
  var import_jsx_runtime18 = require("react/jsx-runtime");
4681
+ var InputStyleComponent = (props) => {
4682
+ const { value, onChange, disabled } = props;
4683
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_react18.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "d-flex align-items-center", children: [
4684
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
4685
+ SelectTable,
4686
+ {
4687
+ options: OptionFont,
4688
+ isDisabled: disabled,
4689
+ noHeader: true,
4690
+ value: value.fontFamily ? OptionFont.find((x) => x.label === value.fontFamily) : null,
4691
+ onChange: (val) => {
4692
+ onChange({ ...value, fontFamily: val.label });
4693
+ },
4694
+ fieldValue: "label",
4695
+ columns: [
4696
+ {
4697
+ field: "label",
4698
+ headerText: "",
4699
+ template: (row) => {
4700
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { style: { fontFamily: row.label }, children: row.label });
4701
+ }
4702
+ }
4703
+ ],
4704
+ formatOptionLabel: (props2) => {
4705
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("p", { style: {
4706
+ paddingLeft: 3,
4707
+ borderRadius: 2,
4708
+ fontFamily: value.fontFamily,
4709
+ fontWeight: value.bold ? "bold" : "normal",
4710
+ fontStyle: value.italic ? "italic" : "normal",
4711
+ textDecoration: value.underline ? "underline" : "normal",
4712
+ backgroundColor: value.backgroundColor ?? "#ffffff",
4713
+ color: value.color ?? "#000000"
4714
+ }, children: props2.label });
4715
+ }
4716
+ }
4717
+ ),
4718
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "ms-25", style: { width: 60 }, children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
4719
+ SelectTable,
4720
+ {
4721
+ options: Array.from({ length: 100 }, (_, i) => ({ value: i + 1, label: i + 1 })),
4722
+ noHeader: true,
4723
+ isDisabled: disabled,
4724
+ value: value.fontSize ? { value: value.fontSize, label: value.fontSize } : null,
4725
+ onChange: (val) => {
4726
+ onChange({ ...value, fontSize: val.value });
4727
+ }
4728
+ }
4729
+ ) }),
4730
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
4731
+ "div",
4732
+ {
4733
+ className: (0, import_classnames16.default)("btn-input-style", { "active-custom": value.bold }),
4734
+ onClick: () => {
4735
+ if (!disabled) {
4736
+ onChange({ ...value, bold: !value.bold });
4737
+ }
4738
+ },
4739
+ children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_becoxy_icons8.Bold, { fontSize: 18 })
4740
+ }
4741
+ ),
4742
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
4743
+ "div",
4744
+ {
4745
+ className: (0, import_classnames16.default)("btn-input-style", { "active-custom": value.italic }),
4746
+ onClick: () => {
4747
+ if (!disabled) {
4748
+ onChange({ ...value, italic: !value.italic });
4749
+ }
4750
+ },
4751
+ children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_becoxy_icons8.Italic, { fontSize: 18 })
4752
+ }
4753
+ ),
4754
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
4755
+ "div",
4756
+ {
4757
+ className: (0, import_classnames16.default)("btn-input-style", { "active-custom": value.underline }),
4758
+ onClick: () => {
4759
+ if (!disabled) {
4760
+ onChange({ ...value, underline: !value.underline });
4761
+ }
4762
+ },
4763
+ children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_becoxy_icons8.Underline, { fontSize: 18 })
4764
+ }
4765
+ ),
4766
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_reactstrap13.Button, { tag: "label", color: "none", className: "btn-input-style", children: [
4767
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_becoxy_icons8.Type, { stroke: value.color ?? "#000000", fontSize: 18 }),
4768
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
4769
+ "input",
4770
+ {
4771
+ type: "color",
4772
+ id: "color",
4773
+ disabled,
4774
+ value: value.color,
4775
+ style: { color: "#FFF", border: "none", height: 0, width: 0, outline: "none", padding: 0 },
4776
+ onChange: (e) => {
4777
+ onChange({ ...value, color: e.target.value });
4778
+ }
4779
+ }
4780
+ )
4781
+ ] }),
4782
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_reactstrap13.Button, { tag: "label", color: "none", className: "btn-input-style", children: [
4783
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_becoxy_icons8.Droplet, { fill: value.backgroundColor ?? "#ffffff", fontSize: 18 }),
4784
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
4785
+ import_reactstrap13.Input,
4786
+ {
4787
+ id: "backgroundColor",
4788
+ type: "color",
4789
+ disabled,
4790
+ style: { color: "#FFF", border: "none", height: 0, width: 0, outline: "none", padding: 0 },
4791
+ value: value.backgroundColor,
4792
+ onChange: (e) => {
4793
+ onChange({ ...value, backgroundColor: e.target.value });
4794
+ }
4795
+ }
4796
+ )
4797
+ ] })
4798
+ ] }) });
4799
+ };
3819
4800
 
3820
4801
  // index.ts
3821
4802
  var Table_edit_default = table_default;
3822
4803
  // Annotate the CommonJS export names for ESM import in node:
3823
4804
  0 && (module.exports = {
4805
+ InputStyleComponent,
3824
4806
  SelectTable,
3825
4807
  TabsMenuComponent,
3826
4808
  formartNumberic,