@steroidsjs/core 3.0.56 → 3.0.59

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 (69) hide show
  1. package/actions/router.d.ts +1 -0
  2. package/actions/router.js +3 -2
  3. package/components/MetaComponent.js +17 -16
  4. package/docs-autogen-result.json +707 -1612
  5. package/en.json +6 -0
  6. package/enums/FieldEnum.d.ts +68 -0
  7. package/enums/FieldEnum.js +96 -0
  8. package/enums/index.d.ts +3 -0
  9. package/enums/index.js +8 -0
  10. package/hooks/index.d.ts +2 -1
  11. package/hooks/index.js +3 -1
  12. package/hooks/useDataSelect.js +1 -0
  13. package/hooks/useListField.d.ts +32 -0
  14. package/hooks/useListField.js +103 -0
  15. package/package.json +1 -1
  16. package/ui/content/Calendar/Calendar.d.ts +6 -2
  17. package/ui/content/Calendar/Calendar.js +5 -3
  18. package/ui/form/AutoCompleteField/AutoCompleteField.js +2 -1
  19. package/ui/form/BlankField/BlankField.js +2 -1
  20. package/ui/form/Button/Button.js +13 -4
  21. package/ui/form/CheckboxField/CheckboxField.d.ts +5 -5
  22. package/ui/form/CheckboxField/CheckboxField.js +11 -5
  23. package/ui/form/CheckboxListField/CheckboxListField.d.ts +2 -1
  24. package/ui/form/CheckboxListField/CheckboxListField.js +16 -93
  25. package/ui/form/CheckboxTreeField/CheckboxTreeField.js +2 -1
  26. package/ui/form/DateField/DateField.js +7 -4
  27. package/ui/form/DateField/useDateRange.js +2 -0
  28. package/ui/form/DateRangeField/DateRangeField.d.ts +27 -11
  29. package/ui/form/DateRangeField/DateRangeField.js +33 -13
  30. package/ui/form/DateRangeField/useOnDayClick.d.ts +10 -0
  31. package/ui/form/DateRangeField/useOnDayClick.js +41 -0
  32. package/ui/form/DateTimeField/DateTimeField.js +6 -3
  33. package/ui/form/DateTimeRangeField/DateTimeRangeField.d.ts +15 -12
  34. package/ui/form/DateTimeRangeField/DateTimeRangeField.js +10 -5
  35. package/ui/form/DropDownField/DropDownField.d.ts +10 -1
  36. package/ui/form/DropDownField/DropDownField.js +14 -12
  37. package/ui/form/EmailField/EmailField.js +2 -1
  38. package/ui/form/Field/Field.js +2 -1
  39. package/ui/form/Field/fieldWrapper.d.ts +2 -1
  40. package/ui/form/FieldList/FieldList.js +4 -3
  41. package/ui/form/FileField/FileField.js +2 -1
  42. package/ui/form/Form/Form.js +37 -22
  43. package/ui/form/HtmlField/HtmlField.js +2 -1
  44. package/ui/form/ImageField/ImageField.js +2 -1
  45. package/ui/form/InputField/InputField.js +2 -1
  46. package/ui/form/InputField/hooks/useInputFieldWarningByType.js +16 -14
  47. package/ui/form/NavField/NavField.js +2 -1
  48. package/ui/form/NumberField/NumberField.js +10 -19
  49. package/ui/form/NumberField/hooks/useInputTypeNumber.d.ts +1 -1
  50. package/ui/form/NumberField/hooks/useInputTypeNumber.js +12 -3
  51. package/ui/form/PasswordField/PasswordField.js +2 -1
  52. package/ui/form/RadioField/RadioField.d.ts +3 -26
  53. package/ui/form/RadioField/RadioField.js +9 -53
  54. package/ui/form/RadioListField/RadioListField.d.ts +3 -42
  55. package/ui/form/RadioListField/RadioListField.js +8 -83
  56. package/ui/form/RateField/RateField.js +2 -1
  57. package/ui/form/ReCaptchaField/ReCaptchaField.js +2 -1
  58. package/ui/form/SliderField/SliderField.js +2 -1
  59. package/ui/form/SwitcherField/SwitcherField.d.ts +3 -39
  60. package/ui/form/SwitcherField/SwitcherField.js +4 -80
  61. package/ui/form/SwitcherListField/SwitcherListField.d.ts +3 -0
  62. package/ui/form/SwitcherListField/SwitcherListField.js +22 -0
  63. package/ui/form/SwitcherListField/index.d.ts +2 -0
  64. package/ui/form/SwitcherListField/index.js +7 -0
  65. package/ui/form/TextField/TextField.js +2 -1
  66. package/ui/form/TimeField/TimeField.js +2 -1
  67. package/ui/form/TimeRangeField/TimeRangeField.js +2 -1
  68. package/ui/form/index.d.ts +7 -5
  69. package/ui/form/index.js +8 -5
@@ -6969,6 +6969,7 @@
6969
6969
  "defaultProps": {
6970
6970
  "numberOfMonths": "1",
6971
6971
  "showFooter": "true",
6972
+ "showTodayButton": "true",
6972
6973
  "valueFormat": "'YYYY-MM-DD'"
6973
6974
  },
6974
6975
  "extends": [
@@ -6999,7 +7000,7 @@
6999
7000
  "description": "Свойства для компонента DayPickerInput",
7000
7001
  "required": false,
7001
7002
  "type": "any",
7002
- "example": "{\n dayPickerProps: {\n showWeekNumbers: true\n }\n}",
7003
+ "example": "{\n showWeekNumbers: true\n}",
7003
7004
  "defaultValue": null
7004
7005
  },
7005
7006
  {
@@ -7011,6 +7012,15 @@
7011
7012
  "example": null,
7012
7013
  "defaultValue": "true"
7013
7014
  },
7015
+ {
7016
+ "name": "showTodayButton",
7017
+ "decorators": [],
7018
+ "description": "Нужно ли отображать кнопку \"сегодня\" под календарем.",
7019
+ "required": false,
7020
+ "type": "boolean",
7021
+ "example": null,
7022
+ "defaultValue": "true"
7023
+ },
7014
7024
  {
7015
7025
  "name": "style",
7016
7026
  "decorators": [],
@@ -7171,7 +7181,7 @@
7171
7181
  "description": "Свойства для компонента DayPickerInput",
7172
7182
  "required": false,
7173
7183
  "type": "any",
7174
- "example": "{\n dayPickerProps: {\n showWeekNumbers: true\n }\n}"
7184
+ "example": "{\n showWeekNumbers: true\n}"
7175
7185
  },
7176
7186
  {
7177
7187
  "name": "selectedDates",
@@ -7189,6 +7199,14 @@
7189
7199
  "type": "boolean",
7190
7200
  "example": null
7191
7201
  },
7202
+ {
7203
+ "name": "showTodayButton",
7204
+ "decorators": [],
7205
+ "description": "Нужно ли отображать кнопку \"сегодня\" под календарем.",
7206
+ "required": false,
7207
+ "type": "boolean",
7208
+ "example": null
7209
+ },
7192
7210
  {
7193
7211
  "name": "style",
7194
7212
  "decorators": [],
@@ -16065,7 +16083,7 @@
16065
16083
  ]
16066
16084
  },
16067
16085
  {
16068
- "name": "renderCheckbox",
16086
+ "name": "renderItem",
16069
16087
  "decorators": [],
16070
16088
  "description": "",
16071
16089
  "required": false,
@@ -17353,6 +17371,61 @@
17353
17371
  }
17354
17372
  ]
17355
17373
  },
17374
+ "IDateRangeButton": {
17375
+ "name": "IDateRangeButton",
17376
+ "moduleName": "ui/form/DateRangeField/DateRangeField",
17377
+ "title": "",
17378
+ "description": "",
17379
+ "tags": {},
17380
+ "defaultProps": null,
17381
+ "extends": [],
17382
+ "properties": [
17383
+ {
17384
+ "name": "label",
17385
+ "decorators": [],
17386
+ "description": "",
17387
+ "required": true,
17388
+ "type": "string",
17389
+ "example": null
17390
+ }
17391
+ ],
17392
+ "methods": [
17393
+ {
17394
+ "name": "onClick",
17395
+ "decorators": [],
17396
+ "description": "",
17397
+ "required": false,
17398
+ "type": "void",
17399
+ "example": null,
17400
+ "parameters": [
17401
+ {
17402
+ "name": "locale",
17403
+ "decorators": [],
17404
+ "description": "",
17405
+ "required": true,
17406
+ "type": "ILocaleComponent",
17407
+ "example": null
17408
+ },
17409
+ {
17410
+ "name": "changeFrom",
17411
+ "decorators": [],
17412
+ "description": "",
17413
+ "required": true,
17414
+ "type": "{}",
17415
+ "example": null
17416
+ },
17417
+ {
17418
+ "name": "changeTo",
17419
+ "decorators": [],
17420
+ "description": "",
17421
+ "required": true,
17422
+ "type": "{}",
17423
+ "example": null
17424
+ }
17425
+ ]
17426
+ }
17427
+ ]
17428
+ },
17356
17429
  "IDateRangeFieldProps": {
17357
17430
  "name": "IDateRangeFieldProps",
17358
17431
  "moduleName": "ui/form/DateRangeField/DateRangeField",
@@ -17574,15 +17647,6 @@
17574
17647
  "example": "{\n attributes: [\n {\n attribute: 'category',\n field: 'DropDownField'\n }\n ]\n}",
17575
17648
  "defaultValue": null
17576
17649
  },
17577
- {
17578
- "name": "pickerProps",
17579
- "decorators": [],
17580
- "description": "Свойства для компонента DayPickerInput",
17581
- "required": false,
17582
- "type": "any",
17583
- "example": "{\n dayPickerProps: {\n showWeekNumbers: true\n }\n}",
17584
- "defaultValue": null
17585
- },
17586
17650
  {
17587
17651
  "name": "placeholder",
17588
17652
  "decorators": [],
@@ -17601,6 +17665,15 @@
17601
17665
  "example": null,
17602
17666
  "defaultValue": null
17603
17667
  },
17668
+ {
17669
+ "name": "rangeButtonsPosition",
17670
+ "decorators": [],
17671
+ "description": "Положение дополнительных кнопок (сегодня, вчера и прочие)\nЕсли указано в формате 'position1-position2', то 'position1' будет на устройствах > $tablet-width, а 'position2' на остальных.",
17672
+ "required": false,
17673
+ "type": "\"top\" | \"right\" | \"left\" | \"bottom\" | \"top-right\" | \"bottom-right\" | \"top-left\" | \"bottom-left\" | \"top-bottom\" | \"bottom-top\" | \"left-top\" | \"left-bottom\" | \"left-right\" | \"right-top\" | \"right-bottom\" | \"right-left\"",
17674
+ "example": null,
17675
+ "defaultValue": null
17676
+ },
17604
17677
  {
17605
17678
  "name": "required",
17606
17679
  "decorators": [],
@@ -17646,6 +17719,15 @@
17646
17719
  "example": "true",
17647
17720
  "defaultValue": null
17648
17721
  },
17722
+ {
17723
+ "name": "useSmartRangeReset",
17724
+ "decorators": [],
17725
+ "description": "Активирует логику:\n- Если кликнули по дате начала или конца диапазона, то позволяем её изменить следующим кликом\n- Если клик не на дату конца или начала диапазона, а диапазон есть, то сбрасываем его\n- Если клик не на дату конца или начала диапазона, а диапазона нет, то устанавливаем кликнутую дату в поле from",
17726
+ "required": false,
17727
+ "type": "boolean",
17728
+ "example": "true",
17729
+ "defaultValue": null
17730
+ },
17649
17731
  {
17650
17732
  "name": "useUTC",
17651
17733
  "decorators": [],
@@ -17681,6 +17763,15 @@
17681
17763
  "type": "React.ReactNode | {}",
17682
17764
  "example": "MyCustomView",
17683
17765
  "defaultValue": null
17766
+ },
17767
+ {
17768
+ "name": "withRangeButtons",
17769
+ "decorators": [],
17770
+ "description": "Добавляет дополнительные кнопки к календарю\ntrue - будут отображены кнопки по-умолчанию\nсписок:\n string - одна из кнопок по-умолчанию\n object - кастомная кнопка",
17771
+ "required": false,
17772
+ "type": "boolean | IDateRangeButton[]",
17773
+ "example": null,
17774
+ "defaultValue": null
17684
17775
  }
17685
17776
  ],
17686
17777
  "methods": [
@@ -17716,7 +17807,7 @@
17716
17807
  "Omit<IFieldWrapperOutputProps",
17717
17808
  "'input'>",
17718
17809
  "Pick<IDateRangeFieldProps",
17719
- "'size' | 'icon' | 'errors' | 'showRemove' | 'calendarProps' | 'className' | 'disabled'\n | 'noBorder' | 'style'>"
17810
+ "'size' | 'icon' | 'errors' | 'showRemove' | 'calendarProps' | 'className' | 'disabled'\n | 'noBorder' | 'style' | 'withRangeButtons' | 'rangeButtonsPosition' | 'displayFormat'>"
17720
17811
  ],
17721
17812
  "properties": [
17722
17813
  {
@@ -17751,6 +17842,14 @@
17751
17842
  "type": "boolean",
17752
17843
  "example": "true"
17753
17844
  },
17845
+ {
17846
+ "name": "displayFormat",
17847
+ "decorators": [],
17848
+ "description": "Формат даты показываемый пользователю",
17849
+ "required": false,
17850
+ "type": "string",
17851
+ "example": "DD.MM.YYYY"
17852
+ },
17754
17853
  {
17755
17854
  "name": "errors",
17756
17855
  "decorators": [],
@@ -17847,6 +17946,14 @@
17847
17946
  "type": "{}",
17848
17947
  "example": null
17849
17948
  },
17949
+ {
17950
+ "name": "rangeButtonsPosition",
17951
+ "decorators": [],
17952
+ "description": "Положение дополнительных кнопок (сегодня, вчера и прочие)\nЕсли указано в формате 'position1-position2', то 'position1' будет на устройствах > $tablet-width, а 'position2' на остальных.",
17953
+ "required": false,
17954
+ "type": "\"top\" | \"right\" | \"left\" | \"bottom\" | \"top-right\" | \"bottom-right\" | \"top-left\" | \"bottom-left\" | \"top-bottom\" | \"bottom-top\" | \"left-top\" | \"left-bottom\" | \"left-right\" | \"right-top\" | \"right-bottom\" | \"right-left\"",
17955
+ "example": null
17956
+ },
17850
17957
  {
17851
17958
  "name": "showRemove",
17852
17959
  "decorators": [],
@@ -17870,6 +17977,14 @@
17870
17977
  "required": false,
17871
17978
  "type": "CSSProperties",
17872
17979
  "example": "{width: '45%'}"
17980
+ },
17981
+ {
17982
+ "name": "withRangeButtons",
17983
+ "decorators": [],
17984
+ "description": "Добавляет дополнительные кнопки к календарю\ntrue - будут отображены кнопки по-умолчанию\nсписок:\n string - одна из кнопок по-умолчанию\n object - кастомная кнопка",
17985
+ "required": false,
17986
+ "type": "boolean | IDateRangeButton[]",
17987
+ "example": null
17873
17988
  }
17874
17989
  ],
17875
17990
  "methods": [
@@ -18410,12 +18525,12 @@
18410
18525
  "defaultValue": null
18411
18526
  },
18412
18527
  {
18413
- "name": "pickerProps",
18528
+ "name": "rangeButtonsPosition",
18414
18529
  "decorators": [],
18415
- "description": "Свойства для компонента DayPickerInput",
18530
+ "description": "Положение дополнительных кнопок (сегодня, вчера и прочие)\nЕсли указано в формате 'position1-position2', то 'position1' будет на устройствах > $tablet-width, а 'position2' на остальных.",
18416
18531
  "required": false,
18417
- "type": "any",
18418
- "example": "{\n dayPickerProps: {\n showWeekNumbers: true\n }\n}",
18532
+ "type": "\"top\" | \"right\" | \"left\" | \"bottom\" | \"top-right\" | \"bottom-right\" | \"top-left\" | \"bottom-left\" | \"top-bottom\" | \"bottom-top\" | \"left-top\" | \"left-bottom\" | \"left-right\" | \"right-top\" | \"right-bottom\" | \"right-left\"",
18533
+ "example": null,
18419
18534
  "defaultValue": null
18420
18535
  },
18421
18536
  {
@@ -18444,6 +18559,15 @@
18444
18559
  "type": "React.ReactNode | {}",
18445
18560
  "example": "MyCustomView",
18446
18561
  "defaultValue": null
18562
+ },
18563
+ {
18564
+ "name": "withRangeButtons",
18565
+ "decorators": [],
18566
+ "description": "Добавляет дополнительные кнопки к календарю\ntrue - будут отображены кнопки по-умолчанию\nсписок:\n string - одна из кнопок по-умолчанию\n object - кастомная кнопка",
18567
+ "required": false,
18568
+ "type": "boolean | IDateRangeButton[]",
18569
+ "example": null,
18570
+ "defaultValue": null
18447
18571
  }
18448
18572
  ],
18449
18573
  "methods": []
@@ -18460,7 +18584,7 @@
18460
18584
  "Omit<IFieldWrapperOutputProps",
18461
18585
  "'input'>",
18462
18586
  "Pick<IDateRangeFieldProps",
18463
- "'size' | 'icon' | 'errors' | 'showRemove' | 'calendarProps' | 'className' | 'disabled'\n | 'noBorder' | 'style'>"
18587
+ "'size' | 'icon' | 'errors' | 'showRemove' | 'calendarProps' | 'className' | 'disabled' | 'withRangeButtons' | 'rangeButtonsPosition'\n | 'noBorder' | 'style'| 'displayFormat'>"
18464
18588
  ],
18465
18589
  "properties": [
18466
18590
  {
@@ -18495,6 +18619,14 @@
18495
18619
  "type": "boolean",
18496
18620
  "example": "true"
18497
18621
  },
18622
+ {
18623
+ "name": "displayFormat",
18624
+ "decorators": [],
18625
+ "description": "Формат даты показываемый пользователю",
18626
+ "required": false,
18627
+ "type": "string",
18628
+ "example": "DD.MM.YYYY"
18629
+ },
18498
18630
  {
18499
18631
  "name": "errors",
18500
18632
  "decorators": [],
@@ -18575,6 +18707,14 @@
18575
18707
  "type": "boolean",
18576
18708
  "example": null
18577
18709
  },
18710
+ {
18711
+ "name": "rangeButtonsPosition",
18712
+ "decorators": [],
18713
+ "description": "Положение дополнительных кнопок (сегодня, вчера и прочие)\nЕсли указано в формате 'position1-position2', то 'position1' будет на устройствах > $tablet-width, а 'position2' на остальных.",
18714
+ "required": false,
18715
+ "type": "\"top\" | \"right\" | \"left\" | \"bottom\" | \"top-right\" | \"bottom-right\" | \"top-left\" | \"bottom-left\" | \"top-bottom\" | \"bottom-top\" | \"left-top\" | \"left-bottom\" | \"left-right\" | \"right-top\" | \"right-bottom\" | \"right-left\"",
18716
+ "example": null
18717
+ },
18578
18718
  {
18579
18719
  "name": "showRemove",
18580
18720
  "decorators": [],
@@ -18606,6 +18746,14 @@
18606
18746
  "required": false,
18607
18747
  "type": "any",
18608
18748
  "example": null
18749
+ },
18750
+ {
18751
+ "name": "withRangeButtons",
18752
+ "decorators": [],
18753
+ "description": "Добавляет дополнительные кнопки к календарю\ntrue - будут отображены кнопки по-умолчанию\nсписок:\n string - одна из кнопок по-умолчанию\n object - кастомная кнопка",
18754
+ "required": false,
18755
+ "type": "boolean | IDateRangeButton[]",
18756
+ "example": null
18609
18757
  }
18610
18758
  ],
18611
18759
  "methods": [
@@ -19068,6 +19216,15 @@
19068
19216
  "example": "true",
19069
19217
  "defaultValue": null
19070
19218
  },
19219
+ {
19220
+ "name": "dropDownProps",
19221
+ "decorators": [],
19222
+ "description": "Свойства, которые напрямую передаются в DropDown компонент",
19223
+ "required": false,
19224
+ "type": "IDropDownProps",
19225
+ "example": null,
19226
+ "defaultValue": null
19227
+ },
19071
19228
  {
19072
19229
  "name": "errors",
19073
19230
  "decorators": [],
@@ -19194,6 +19351,15 @@
19194
19351
  "example": "'Visible'",
19195
19352
  "defaultValue": null
19196
19353
  },
19354
+ {
19355
+ "name": "maxHeight",
19356
+ "decorators": [],
19357
+ "description": "Число в пикселях, больше которого не может быть выпадающее меню",
19358
+ "required": false,
19359
+ "type": "number",
19360
+ "example": null,
19361
+ "defaultValue": null
19362
+ },
19197
19363
  {
19198
19364
  "name": "model",
19199
19365
  "decorators": [],
@@ -19523,6 +19689,14 @@
19523
19689
  "type": "boolean",
19524
19690
  "example": "true"
19525
19691
  },
19692
+ {
19693
+ "name": "dropDownProps",
19694
+ "decorators": [],
19695
+ "description": "Свойства, которые напрямую передаются в DropDown компонент",
19696
+ "required": false,
19697
+ "type": "IDropDownProps",
19698
+ "example": null
19699
+ },
19526
19700
  {
19527
19701
  "name": "errors",
19528
19702
  "decorators": [],
@@ -19539,14 +19713,6 @@
19539
19713
  "type": "string",
19540
19714
  "example": null
19541
19715
  },
19542
- {
19543
- "name": "forwardedRef",
19544
- "decorators": [],
19545
- "description": "",
19546
- "required": true,
19547
- "type": "any",
19548
- "example": null
19549
- },
19550
19716
  {
19551
19717
  "name": "groupAttribute",
19552
19718
  "decorators": [],
@@ -19691,6 +19857,14 @@
19691
19857
  "type": "any",
19692
19858
  "example": "'Visible'"
19693
19859
  },
19860
+ {
19861
+ "name": "maxHeight",
19862
+ "decorators": [],
19863
+ "description": "Число в пикселях, больше которого не может быть выпадающее меню",
19864
+ "required": false,
19865
+ "type": "number",
19866
+ "example": null
19867
+ },
19694
19868
  {
19695
19869
  "name": "model",
19696
19870
  "decorators": [],
@@ -19886,16 +20060,7 @@
19886
20060
  "required": false,
19887
20061
  "type": "void",
19888
20062
  "example": null,
19889
- "parameters": [
19890
- {
19891
- "name": "selectedIds",
19892
- "decorators": [],
19893
- "description": "",
19894
- "required": true,
19895
- "type": "PrimaryKey[]",
19896
- "example": null
19897
- }
19898
- ]
20063
+ "parameters": []
19899
20064
  },
19900
20065
  {
19901
20066
  "name": "onItemRemove",
@@ -27394,11 +27559,39 @@
27394
27559
  }
27395
27560
  ]
27396
27561
  },
27397
- "IRadioFieldProps": {
27398
- "name": "IRadioFieldProps",
27399
- "moduleName": "ui/form/RadioField/RadioField",
27400
- "title": "RadioField",
27401
- "description": "\nКомпонент RadioField представляет собой элемент выбора типа \"radio\". Он позволяет пользователю выбрать один вариант из нескольких предложенных.\n",
27562
+ "IRateFieldItem": {
27563
+ "name": "IRateFieldItem",
27564
+ "moduleName": "ui/form/RateField/RateField",
27565
+ "title": "",
27566
+ "description": "",
27567
+ "tags": {},
27568
+ "defaultProps": null,
27569
+ "extends": [],
27570
+ "properties": [
27571
+ {
27572
+ "name": "id",
27573
+ "decorators": [],
27574
+ "description": "",
27575
+ "required": true,
27576
+ "type": "number",
27577
+ "example": null
27578
+ },
27579
+ {
27580
+ "name": "value",
27581
+ "decorators": [],
27582
+ "description": "",
27583
+ "required": true,
27584
+ "type": "number",
27585
+ "example": null
27586
+ }
27587
+ ],
27588
+ "methods": []
27589
+ },
27590
+ "IRateFieldProps": {
27591
+ "name": "IRateFieldProps",
27592
+ "moduleName": "ui/form/RateField/RateField",
27593
+ "title": "RateField",
27594
+ "description": "\nПоле для проставления рейтинга\n",
27402
27595
  "tags": {},
27403
27596
  "defaultProps": null,
27404
27597
  "extends": [
@@ -27406,6 +27599,15 @@
27406
27599
  "IUiComponent"
27407
27600
  ],
27408
27601
  "properties": [
27602
+ {
27603
+ "name": "allowClear",
27604
+ "decorators": [],
27605
+ "description": "Возможность полностью сбрасывать рейтинг, при повторном нажатии на звезду",
27606
+ "required": false,
27607
+ "type": "boolean",
27608
+ "example": "false",
27609
+ "defaultValue": null
27610
+ },
27409
27611
  {
27410
27612
  "name": "attribute",
27411
27613
  "decorators": [],
@@ -27416,12 +27618,12 @@
27416
27618
  "defaultValue": null
27417
27619
  },
27418
27620
  {
27419
- "name": "checked",
27621
+ "name": "badge",
27420
27622
  "decorators": [],
27421
- "description": "Флаг определяющий включен ли элемент",
27623
+ "description": "Значок (бэйдж) с заголовком.",
27422
27624
  "required": false,
27423
- "type": "boolean",
27424
- "example": "{'true'}",
27625
+ "type": "{title: string}",
27626
+ "example": null,
27425
27627
  "defaultValue": null
27426
27628
  },
27427
27629
  {
@@ -27442,6 +27644,15 @@
27442
27644
  "example": null,
27443
27645
  "defaultValue": null
27444
27646
  },
27647
+ {
27648
+ "name": "defaultValue",
27649
+ "decorators": [],
27650
+ "description": "Количество звезд по умолчанию",
27651
+ "required": false,
27652
+ "type": "number",
27653
+ "example": "4",
27654
+ "defaultValue": null
27655
+ },
27445
27656
  {
27446
27657
  "name": "disabled",
27447
27658
  "decorators": [],
@@ -27490,10 +27701,10 @@
27490
27701
  {
27491
27702
  "name": "inputProps",
27492
27703
  "decorators": [],
27493
- "description": "Свойства для элемента input",
27704
+ "description": "",
27494
27705
  "required": false,
27495
- "type": "any",
27496
- "example": "{onKeyDown: ...}",
27706
+ "type": "{}",
27707
+ "example": null,
27497
27708
  "defaultValue": null
27498
27709
  },
27499
27710
  {
@@ -27503,975 +27714,15 @@
27503
27714
  "required": false,
27504
27715
  "type": "boolean",
27505
27716
  "example": null,
27506
- "defaultValue": null
27507
- },
27508
- {
27509
- "name": "label",
27510
- "decorators": [],
27511
- "description": "Название поля либо отмена отображение поля (false)",
27512
- "required": false,
27513
- "type": "any",
27514
- "example": "'Visible'",
27515
- "defaultValue": null
27516
- },
27517
- {
27518
- "name": "model",
27519
- "decorators": [],
27520
- "description": "Модель с полями формы",
27521
- "required": false,
27522
- "type": "any",
27523
- "example": "{\n attributes: [\n {\n attribute: 'category',\n field: 'DropDownField'\n }\n ]\n}",
27524
- "defaultValue": null
27525
- },
27526
- {
27527
- "name": "placeholder",
27528
- "decorators": [],
27529
- "description": "Подсказка для поля",
27530
- "required": false,
27531
- "type": "string",
27532
- "example": "Your text...",
27533
- "defaultValue": null
27534
- },
27535
- {
27536
- "name": "prefix",
27537
- "decorators": [],
27538
- "description": "Префикс, который добавится к аттрибуту (названию) поля в форме",
27539
- "required": false,
27540
- "type": "string | boolean",
27541
- "example": null,
27542
- "defaultValue": null
27543
- },
27544
- {
27545
- "name": "required",
27546
- "decorators": [],
27547
- "description": "Обязательное ли поле? Если true, то к названию будет добавлен\nмодификатор 'required' - красная звездочка (по умолчанию)",
27548
- "required": false,
27549
- "type": "boolean",
27550
- "example": "true",
27551
- "defaultValue": null
27552
- },
27553
- {
27554
- "name": "size",
27555
- "decorators": [],
27556
- "description": "Размер поля",
27557
- "required": false,
27558
- "type": "string",
27559
- "example": null,
27560
- "defaultValue": null
27561
- },
27562
- {
27563
- "name": "style",
27564
- "decorators": [],
27565
- "description": "Объект CSS стилей",
27566
- "required": false,
27567
- "type": "CSSProperties",
27568
- "example": "{width: '45%'}",
27569
- "defaultValue": null
27570
- },
27571
- {
27572
- "name": "value",
27573
- "decorators": [],
27574
- "description": "Значение для поля",
27575
- "required": false,
27576
- "type": "any",
27577
- "example": null,
27578
- "defaultValue": null
27579
- },
27580
- {
27581
- "name": "view",
27582
- "decorators": [],
27583
- "description": "Переопределение view React компонента для кастомизации отображения",
27584
- "required": false,
27585
- "type": "React.ReactNode | {}",
27586
- "example": "MyCustomView",
27587
- "defaultValue": null
27588
- }
27589
- ],
27590
- "methods": [
27591
- {
27592
- "name": "onChange",
27593
- "decorators": [],
27594
- "description": "Callback-функция, которая вызывается при изменении данных",
27595
- "required": false,
27596
- "type": "any",
27597
- "example": null,
27598
- "parameters": [
27599
- {
27600
- "name": "args",
27601
- "decorators": [],
27602
- "description": "",
27603
- "required": true,
27604
- "type": "any[]",
27605
- "example": null
27606
- }
27607
- ]
27608
- }
27609
- ]
27610
- },
27611
- "IRadioFieldViewProps": {
27612
- "name": "IRadioFieldViewProps",
27613
- "moduleName": "ui/form/RadioField/RadioField",
27614
- "title": "",
27615
- "description": "",
27616
- "tags": {},
27617
- "defaultProps": null,
27618
- "extends": [
27619
- "IRadioFieldProps",
27620
- "IFieldWrapperOutputProps"
27621
- ],
27622
- "properties": [
27623
- {
27624
- "name": "attribute",
27625
- "decorators": [],
27626
- "description": "Аттрибут (название) поля в форме",
27627
- "required": false,
27628
- "type": "string",
27629
- "example": "'isVisible'"
27630
- },
27631
- {
27632
- "name": "checked",
27633
- "decorators": [],
27634
- "description": "Флаг определяющий включен ли элемент",
27635
- "required": false,
27636
- "type": "boolean",
27637
- "example": "{'true'}"
27638
- },
27639
- {
27640
- "name": "className",
27641
- "decorators": [],
27642
- "description": "Дополнительный CSS-класс для элемента отображения",
27643
- "required": false,
27644
- "type": "string",
27645
- "example": null
27646
- },
27647
- {
27648
- "name": "componentId",
27649
- "decorators": [],
27650
- "description": "Id компонента",
27651
- "required": false,
27652
- "type": "string",
27653
- "example": null
27654
- },
27655
- {
27656
- "name": "date",
27657
- "decorators": [],
27658
- "description": "",
27659
- "required": false,
27660
- "type": "any",
27661
- "example": null
27662
- },
27663
- {
27664
- "name": "disabled",
27665
- "decorators": [],
27666
- "description": "Переводит элемент в состояние \"не активен\"",
27667
- "required": false,
27668
- "type": "boolean",
27669
- "example": "true"
27670
- },
27671
- {
27672
- "name": "errors",
27673
- "decorators": [],
27674
- "description": "Ошибки в поле",
27675
- "required": false,
27676
- "type": "string[]",
27677
- "example": "['Error text']"
27678
- },
27679
- {
27680
- "name": "fieldLayoutClassName",
27681
- "decorators": [],
27682
- "description": "Дополнительный CSS-класс для обертки FieldLayout",
27683
- "required": false,
27684
- "type": "string",
27685
- "example": null
27686
- },
27687
- {
27688
- "name": "formId",
27689
- "decorators": [],
27690
- "description": "Id формы",
27691
- "required": false,
27692
- "type": "string",
27693
- "example": null
27694
- },
27695
- {
27696
- "name": "hint",
27697
- "decorators": [],
27698
- "description": "Подсказка, которая отобразится рядом с полем",
27699
- "required": false,
27700
- "type": "string",
27701
- "example": "'Only english letters'"
27702
- },
27703
- {
27704
- "name": "id",
27705
- "decorators": [],
27706
- "description": "Input ID для связи поля с label",
27707
- "required": false,
27708
- "type": "string",
27709
- "example": null
27710
- },
27711
- {
27712
- "name": "input",
27713
- "decorators": [],
27714
- "description": "Параметры для input элемента",
27715
- "required": false,
27716
- "type": "IInputParams",
27717
- "example": null
27718
- },
27719
- {
27720
- "name": "inputProps",
27721
- "decorators": [],
27722
- "description": "Свойства для элемента input",
27723
- "required": true,
27724
- "type": "{checked: boolean, disabled: boolean, name: string, type: string, onChange: null}",
27725
- "example": null
27726
- },
27727
- {
27728
- "name": "isRenderWithoutFieldLayout",
27729
- "decorators": [],
27730
- "description": "Возможность отрендерить поле без обертки в компонент FieldLayout",
27731
- "required": false,
27732
- "type": "boolean",
27733
- "example": null
27734
- },
27735
- {
27736
- "name": "label",
27737
- "decorators": [],
27738
- "description": "Название поля либо отмена отображение поля (false)",
27739
- "required": false,
27740
- "type": "any",
27741
- "example": "'Visible'"
27742
- },
27743
- {
27744
- "name": "model",
27745
- "decorators": [],
27746
- "description": "Модель с полями формы",
27747
- "required": false,
27748
- "type": "any",
27749
- "example": "{\n attributes: [\n {\n attribute: 'category',\n field: 'DropDownField'\n }\n ]\n}"
27750
- },
27751
- {
27752
- "name": "placeholder",
27753
- "decorators": [],
27754
- "description": "Подсказка для поля",
27755
- "required": false,
27756
- "type": "string",
27757
- "example": "Your text..."
27758
- },
27759
- {
27760
- "name": "prefix",
27761
- "decorators": [],
27762
- "description": "Префикс, который добавится к аттрибуту (названию) поля в форме",
27763
- "required": false,
27764
- "type": "string | boolean",
27765
- "example": null
27766
- },
27767
- {
27768
- "name": "required",
27769
- "decorators": [],
27770
- "description": "Обязательное ли поле? Если true, то к названию будет добавлен\nмодификатор 'required' - красная звездочка (по умолчанию)",
27771
- "required": false,
27772
- "type": "boolean",
27773
- "example": "true"
27774
- },
27775
- {
27776
- "name": "size",
27777
- "decorators": [],
27778
- "description": "Размер поля",
27779
- "required": false,
27780
- "type": "string",
27781
- "example": null
27782
- },
27783
- {
27784
- "name": "style",
27785
- "decorators": [],
27786
- "description": "Объект CSS стилей",
27787
- "required": false,
27788
- "type": "CSSProperties",
27789
- "example": "{width: '45%'}"
27790
- },
27791
- {
27792
- "name": "value",
27793
- "decorators": [],
27794
- "description": "Значение для поля",
27795
- "required": false,
27796
- "type": "any",
27797
- "example": null
27798
- },
27799
- {
27800
- "name": "view",
27801
- "decorators": [],
27802
- "description": "Переопределение view React компонента для кастомизации отображения",
27803
- "required": false,
27804
- "type": "React.ReactNode | {}",
27805
- "example": "MyCustomView"
27806
- }
27807
- ],
27808
- "methods": [
27809
- {
27810
- "name": "onChange",
27811
- "decorators": [],
27812
- "description": "Callback-функция, которая вызывается при изменении данных",
27813
- "required": false,
27814
- "type": "any",
27815
- "example": null,
27816
- "parameters": [
27817
- {
27818
- "name": "args",
27819
- "decorators": [],
27820
- "description": "",
27821
- "required": true,
27822
- "type": "any[]",
27823
- "example": null
27824
- }
27825
- ]
27826
- }
27827
- ]
27828
- },
27829
- "IRadioListFieldProps": {
27830
- "name": "IRadioListFieldProps",
27831
- "moduleName": "ui/form/RadioListField/RadioListField",
27832
- "title": "RadioListField",
27833
- "description": "Список с радиокнопками. Используется в формах для выбора одного значения.",
27834
- "tags": {},
27835
- "defaultProps": null,
27836
- "extends": [
27837
- "IFieldWrapperInputProps",
27838
- "IDataProviderConfig",
27839
- "Omit<IDataSelectConfig",
27840
- "'items'>",
27841
- "IUiComponent"
27842
- ],
27843
- "properties": [
27844
- {
27845
- "name": "attribute",
27846
- "decorators": [],
27847
- "description": "Аттрибут (название) поля в форме",
27848
- "required": false,
27849
- "type": "string",
27850
- "example": "'isVisible'",
27851
- "defaultValue": null
27852
- },
27853
- {
27854
- "name": "autoComplete",
27855
- "decorators": [],
27856
- "description": "Настройки поиска",
27857
- "required": false,
27858
- "type": "boolean | IAutoCompleteConfig",
27859
- "example": "{\n enable: true,\n minLength: 2,\n delay: 100\n}",
27860
- "defaultValue": null
27861
- },
27862
- {
27863
- "name": "autoCompleteInputRef",
27864
- "decorators": [],
27865
- "description": " Ref autocomplete поиска",
27866
- "required": false,
27867
- "type": "MutableRefObject",
27868
- "example": null,
27869
- "defaultValue": null
27870
- },
27871
- {
27872
- "name": "autoFetch",
27873
- "decorators": [],
27874
- "description": "Загрузка данных после любого изменения запроса.\nЕсли включен autoFetch, то настройки autoComplete не применятся.",
27875
- "required": false,
27876
- "type": "boolean",
27877
- "example": "true",
27878
- "defaultValue": null
27879
- },
27880
- {
27881
- "name": "className",
27882
- "decorators": [],
27883
- "description": "Дополнительный CSS-класс для элемента отображения",
27884
- "required": false,
27885
- "type": "string",
27886
- "example": null,
27887
- "defaultValue": null
27888
- },
27889
- {
27890
- "name": "dataProvider",
27891
- "decorators": [],
27892
- "description": "Конфигурация для подгрузки данных извне.\nЕсли dataProvider не передан, то поиск данных по запросу происходит локально.",
27893
- "required": false,
27894
- "type": "IDataProvider",
27895
- "example": null,
27896
- "defaultValue": null
27897
- },
27898
- {
27899
- "name": "date",
27900
- "decorators": [],
27901
- "description": "",
27902
- "required": false,
27903
- "type": "any",
27904
- "example": null,
27905
- "defaultValue": null
27906
- },
27907
- {
27908
- "name": "disabled",
27909
- "decorators": [],
27910
- "description": "Переводит элемент в состояние \"не активен\"",
27911
- "required": false,
27912
- "type": "boolean",
27913
- "example": "true",
27914
- "defaultValue": null
27915
- },
27916
- {
27917
- "name": "errors",
27918
- "decorators": [],
27919
- "description": "Ошибки в поле",
27920
- "required": false,
27921
- "type": "string[]",
27922
- "example": "['Error text']",
27923
- "defaultValue": null
27924
- },
27925
- {
27926
- "name": "fieldLayoutClassName",
27927
- "decorators": [],
27928
- "description": "Дополнительный CSS-класс для обертки FieldLayout",
27929
- "required": false,
27930
- "type": "string",
27931
- "example": null,
27932
- "defaultValue": null
27933
- },
27934
- {
27935
- "name": "groupAttribute",
27936
- "decorators": [],
27937
- "description": "Атрибут, в котором должны лежать дочерние элементы списка (для группировки)\nЕсли аттрибут не задан - группировка не производится",
27938
- "required": false,
27939
- "type": "string",
27940
- "example": "items",
27941
- "defaultValue": null
27942
- },
27943
- {
27944
- "name": "hint",
27945
- "decorators": [],
27946
- "description": "Подсказка, которая отобразится рядом с полем",
27947
- "required": false,
27948
- "type": "string",
27949
- "example": "'Only english letters'",
27950
- "defaultValue": null
27951
- },
27952
- {
27953
- "name": "id",
27954
- "decorators": [],
27955
- "description": "Input ID для связи поля с label",
27956
- "required": false,
27957
- "type": "string",
27958
- "example": null,
27959
- "defaultValue": null
27960
- },
27961
- {
27962
- "name": "initialSelectedIds",
27963
- "decorators": [],
27964
- "description": "Идентификаторы выбранных значений, которые необходимо подгрузить при `autoFetch` режиме.\nНа бекенд будут переданы идентификаторы в параметре `ids`, которые необходимо вернуть.\nИспользуется только при `autoFetch = true`",
27965
- "required": false,
27966
- "type": "number[]",
27967
- "example": "[1, 22]",
27968
- "defaultValue": null
27969
- },
27970
- {
27971
- "name": "inputProps",
27972
- "decorators": [],
27973
- "description": "Свойства для элемента input",
27974
- "required": false,
27975
- "type": "any",
27976
- "example": "{onKeyDown: ...}",
27977
- "defaultValue": null
27978
- },
27979
- {
27980
- "name": "inputValue",
27981
- "decorators": [],
27982
- "description": "Значение поля в форме",
27983
- "required": false,
27984
- "type": "any",
27985
- "example": null,
27986
- "defaultValue": null
27987
- },
27988
- {
27989
- "name": "isRenderWithoutFieldLayout",
27990
- "decorators": [],
27991
- "description": "Возможность отрендерить поле без обертки в компонент FieldLayout",
27992
- "required": false,
27993
- "type": "boolean",
27994
- "example": null,
27995
- "defaultValue": null
27996
- },
27997
- {
27998
- "name": "items",
27999
- "decorators": [],
28000
- "description": "Коллекция элементов",
28001
- "required": false,
28002
- "type": "string | {} | string | number | {id: string | number | boolean, label: string | Record | number}[]",
28003
- "example": "[\n {\n id: 1,\n label: 'Krasnoyarsk'\n },\n {\n id: 2,\n label: 'Moscow'\n }\n]",
28004
- "defaultValue": null
28005
- },
28006
- {
28007
- "name": "label",
28008
- "decorators": [],
28009
- "description": "Название поля либо отмена отображение поля (false)",
28010
- "required": false,
28011
- "type": "any",
28012
- "example": "'Visible'",
28013
- "defaultValue": null
28014
- },
28015
- {
28016
- "name": "model",
28017
- "decorators": [],
28018
- "description": "Модель с полями формы",
28019
- "required": false,
28020
- "type": "any",
28021
- "example": "{\n attributes: [\n {\n attribute: 'category',\n field: 'DropDownField'\n }\n ]\n}",
28022
- "defaultValue": null
28023
- },
28024
- {
28025
- "name": "multiple",
28026
- "decorators": [],
28027
- "description": "Возможность множественного выбора",
28028
- "required": false,
28029
- "type": "boolean",
28030
- "example": "true",
28031
- "defaultValue": null
28032
- },
28033
- {
28034
- "name": "orientation",
28035
- "decorators": [],
28036
- "description": "Ориентация списка",
28037
- "required": false,
28038
- "type": "string",
28039
- "example": null,
28040
- "defaultValue": null
28041
- },
28042
- {
28043
- "name": "placeholder",
28044
- "decorators": [],
28045
- "description": "Подсказка для поля",
28046
- "required": false,
28047
- "type": "string",
28048
- "example": "Your text...",
28049
- "defaultValue": null
28050
- },
28051
- {
28052
- "name": "prefix",
28053
- "decorators": [],
28054
- "description": "Префикс, который добавится к аттрибуту (названию) поля в форме",
28055
- "required": false,
28056
- "type": "string | boolean",
28057
- "example": null,
28058
- "defaultValue": null
28059
- },
28060
- {
28061
- "name": "primaryKey",
28062
- "decorators": [],
28063
- "description": "Первичный ключ для item",
28064
- "required": false,
28065
- "type": "string",
28066
- "example": "id",
28067
- "defaultValue": null
28068
- },
28069
- {
28070
- "name": "query",
28071
- "decorators": [],
28072
- "description": "Текст запроса",
28073
- "required": false,
28074
- "type": "string",
28075
- "example": "'some text'",
28076
- "defaultValue": null
28077
- },
28078
- {
28079
- "name": "required",
28080
- "decorators": [],
28081
- "description": "Обязательное ли поле? Если true, то к названию будет добавлен\nмодификатор 'required' - красная звездочка (по умолчанию)",
28082
- "required": false,
28083
- "type": "boolean",
28084
- "example": "true",
28085
- "defaultValue": null
28086
- },
28087
- {
28088
- "name": "selectFirst",
28089
- "decorators": [],
28090
- "description": "Сделать активным первый элемент в списке",
28091
- "required": false,
28092
- "type": "boolean",
28093
- "example": "true",
28094
- "defaultValue": null
28095
- },
28096
- {
28097
- "name": "selectedIds",
28098
- "decorators": [],
28099
- "description": "Список с идентификаторами выбранных элементов",
28100
- "required": false,
28101
- "type": "any",
28102
- "example": "[1, 4]",
28103
- "defaultValue": null
28104
- },
28105
- {
28106
- "name": "size",
28107
- "decorators": [],
28108
- "description": "Размер поля",
28109
- "required": false,
28110
- "type": "string",
28111
- "example": null,
28112
- "defaultValue": null
28113
- },
28114
- {
28115
- "name": "sourceItems",
28116
- "decorators": [],
28117
- "description": " Список со всеми элементами",
28118
- "required": false,
28119
- "type": "IDataSelectItem[]",
28120
- "example": null,
28121
- "defaultValue": null
28122
- },
28123
- {
28124
- "name": "style",
28125
- "decorators": [],
28126
- "description": "Объект CSS стилей",
28127
- "required": false,
28128
- "type": "CSSProperties",
28129
- "example": "{width: '45%'}",
28130
- "defaultValue": null
28131
- },
28132
- {
28133
- "name": "value",
28134
- "decorators": [],
28135
- "description": "Значение для поля",
28136
- "required": false,
28137
- "type": "any",
28138
- "example": null,
28139
- "defaultValue": null
28140
- },
28141
- {
28142
- "name": "view",
28143
- "decorators": [],
28144
- "description": "Переопределение view React компонента для кастомизации отображения",
28145
- "required": false,
28146
- "type": "React.ReactNode | {}",
28147
- "example": "MyCustomView",
28148
- "defaultValue": null
28149
- }
28150
- ],
28151
- "methods": [
28152
- {
28153
- "name": "onChange",
28154
- "decorators": [],
28155
- "description": "Callback-функция, которая вызывается при изменении данных",
28156
- "required": false,
28157
- "type": "any",
28158
- "example": null,
28159
- "parameters": [
28160
- {
28161
- "name": "args",
28162
- "decorators": [],
28163
- "description": "",
28164
- "required": true,
28165
- "type": "any[]",
28166
- "example": null
28167
- }
28168
- ]
28169
- }
28170
- ]
28171
- },
28172
- "IRadioListFieldViewProps": {
28173
- "name": "IRadioListFieldViewProps",
28174
- "moduleName": "ui/form/RadioListField/RadioListField",
28175
- "title": "",
28176
- "description": "",
28177
- "tags": {},
28178
- "defaultProps": null,
28179
- "extends": [
28180
- "IFieldWrapperOutputProps"
28181
- ],
28182
- "properties": [
28183
- {
28184
- "name": "className",
28185
- "decorators": [],
28186
- "description": "",
28187
- "required": false,
28188
- "type": "string",
28189
- "example": null
28190
- },
28191
- {
28192
- "name": "componentId",
28193
- "decorators": [],
28194
- "description": "Id компонента",
28195
- "required": false,
28196
- "type": "string",
28197
- "example": null
28198
- },
28199
- {
28200
- "name": "disabled",
28201
- "decorators": [],
28202
- "description": "",
28203
- "required": false,
28204
- "type": "boolean",
28205
- "example": null
28206
- },
28207
- {
28208
- "name": "errors",
28209
- "decorators": [],
28210
- "description": "Коллекция ошибок",
28211
- "required": false,
28212
- "type": "string[]",
28213
- "example": null
28214
- },
28215
- {
28216
- "name": "formId",
28217
- "decorators": [],
28218
- "description": "Id формы",
28219
- "required": false,
28220
- "type": "string",
28221
- "example": null
28222
- },
28223
- {
28224
- "name": "input",
28225
- "decorators": [],
28226
- "description": "Параметры для input элемента",
28227
- "required": false,
28228
- "type": "IInputParams",
28229
- "example": null
28230
- },
28231
- {
28232
- "name": "inputProps",
28233
- "decorators": [],
28234
- "description": "",
28235
- "required": true,
28236
- "type": "{disabled: boolean, name: string, type: string, onChange: null}",
28237
- "example": null
28238
- },
28239
- {
28240
- "name": "items",
28241
- "decorators": [],
28242
- "description": "",
28243
- "required": true,
28244
- "type": "{disabled: boolean, id: string | number | boolean, isHovered: boolean, isSelected: boolean, label: string, required: boolean, size: string}[]",
28245
- "example": null
28246
- },
28247
- {
28248
- "name": "orientation",
28249
- "decorators": [],
28250
- "description": "",
28251
- "required": false,
28252
- "type": "string",
28253
- "example": null
28254
- },
28255
- {
28256
- "name": "selectedIds",
28257
- "decorators": [],
28258
- "description": "",
28259
- "required": true,
28260
- "type": "any[]",
28261
- "example": null
28262
- },
28263
- {
28264
- "name": "size",
28265
- "decorators": [],
28266
- "description": "",
28267
- "required": false,
28268
- "type": "string",
28269
- "example": null
28270
- }
28271
- ],
28272
- "methods": [
28273
- {
28274
- "name": "onItemSelect",
28275
- "decorators": [],
28276
- "description": "",
28277
- "required": false,
28278
- "type": "void",
28279
- "example": null,
28280
- "parameters": [
28281
- {
28282
- "name": "id",
28283
- "decorators": [],
28284
- "description": "",
28285
- "required": true,
28286
- "type": "any",
28287
- "example": null
28288
- }
28289
- ]
28290
- },
28291
- {
28292
- "name": "renderRadio",
28293
- "decorators": [],
28294
- "description": "",
28295
- "required": false,
28296
- "type": "Element",
28297
- "example": null,
28298
- "parameters": [
28299
- {
28300
- "name": "radioProps",
28301
- "decorators": [],
28302
- "description": "",
28303
- "required": true,
28304
- "type": "IRadioFieldViewProps",
28305
- "example": null
28306
- }
28307
- ]
28308
- }
28309
- ]
28310
- },
28311
- "IRateFieldItem": {
28312
- "name": "IRateFieldItem",
28313
- "moduleName": "ui/form/RateField/RateField",
28314
- "title": "",
28315
- "description": "",
28316
- "tags": {},
28317
- "defaultProps": null,
28318
- "extends": [],
28319
- "properties": [
28320
- {
28321
- "name": "id",
28322
- "decorators": [],
28323
- "description": "",
28324
- "required": true,
28325
- "type": "number",
28326
- "example": null
28327
- },
28328
- {
28329
- "name": "value",
28330
- "decorators": [],
28331
- "description": "",
28332
- "required": true,
28333
- "type": "number",
28334
- "example": null
28335
- }
28336
- ],
28337
- "methods": []
28338
- },
28339
- "IRateFieldProps": {
28340
- "name": "IRateFieldProps",
28341
- "moduleName": "ui/form/RateField/RateField",
28342
- "title": "RateField",
28343
- "description": "\nПоле для проставления рейтинга\n",
28344
- "tags": {},
28345
- "defaultProps": null,
28346
- "extends": [
28347
- "IFieldWrapperInputProps",
28348
- "IUiComponent"
28349
- ],
28350
- "properties": [
28351
- {
28352
- "name": "allowClear",
28353
- "decorators": [],
28354
- "description": "Возможность полностью сбрасывать рейтинг, при повторном нажатии на звезду",
28355
- "required": false,
28356
- "type": "boolean",
28357
- "example": "false",
28358
- "defaultValue": null
28359
- },
28360
- {
28361
- "name": "attribute",
28362
- "decorators": [],
28363
- "description": "Аттрибут (название) поля в форме",
28364
- "required": false,
28365
- "type": "string",
28366
- "example": "'isVisible'",
28367
- "defaultValue": null
28368
- },
28369
- {
28370
- "name": "badge",
28371
- "decorators": [],
28372
- "description": "Значок (бэйдж) с заголовком.",
28373
- "required": false,
28374
- "type": "{title: string}",
28375
- "example": null,
28376
- "defaultValue": null
28377
- },
28378
- {
28379
- "name": "className",
28380
- "decorators": [],
28381
- "description": "Дополнительный CSS-класс для элемента отображения",
28382
- "required": false,
28383
- "type": "string",
28384
- "example": null,
28385
- "defaultValue": null
28386
- },
28387
- {
28388
- "name": "date",
28389
- "decorators": [],
28390
- "description": "",
28391
- "required": false,
28392
- "type": "any",
28393
- "example": null,
28394
- "defaultValue": null
28395
- },
28396
- {
28397
- "name": "defaultValue",
28398
- "decorators": [],
28399
- "description": "Количество звезд по умолчанию",
28400
- "required": false,
28401
- "type": "number",
28402
- "example": "4",
28403
- "defaultValue": null
28404
- },
28405
- {
28406
- "name": "disabled",
28407
- "decorators": [],
28408
- "description": "Переводит элемент в состояние \"не активен\"",
28409
- "required": false,
28410
- "type": "boolean",
28411
- "example": "true",
28412
- "defaultValue": null
28413
- },
28414
- {
28415
- "name": "errors",
28416
- "decorators": [],
28417
- "description": "Ошибки в поле",
28418
- "required": false,
28419
- "type": "string[]",
28420
- "example": "['Error text']",
28421
- "defaultValue": null
28422
- },
28423
- {
28424
- "name": "fieldLayoutClassName",
28425
- "decorators": [],
28426
- "description": "Дополнительный CSS-класс для обертки FieldLayout",
28427
- "required": false,
28428
- "type": "string",
28429
- "example": null,
28430
- "defaultValue": null
28431
- },
28432
- {
28433
- "name": "hint",
28434
- "decorators": [],
28435
- "description": "Подсказка, которая отобразится рядом с полем",
28436
- "required": false,
28437
- "type": "string",
28438
- "example": "'Only english letters'",
28439
- "defaultValue": null
28440
- },
28441
- {
28442
- "name": "id",
28443
- "decorators": [],
28444
- "description": "Input ID для связи поля с label",
28445
- "required": false,
28446
- "type": "string",
28447
- "example": null,
28448
- "defaultValue": null
28449
- },
28450
- {
28451
- "name": "inputProps",
28452
- "decorators": [],
28453
- "description": "",
28454
- "required": false,
28455
- "type": "{}",
28456
- "example": null,
28457
- "defaultValue": null
28458
- },
28459
- {
28460
- "name": "isRenderWithoutFieldLayout",
28461
- "decorators": [],
28462
- "description": "Возможность отрендерить поле без обертки в компонент FieldLayout",
28463
- "required": false,
28464
- "type": "boolean",
28465
- "example": null,
28466
- "defaultValue": null
28467
- },
28468
- {
28469
- "name": "itemsCount",
28470
- "decorators": [],
28471
- "description": "Максимальное количество звезд",
28472
- "required": false,
28473
- "type": "number",
28474
- "example": "5",
27717
+ "defaultValue": null
27718
+ },
27719
+ {
27720
+ "name": "itemsCount",
27721
+ "decorators": [],
27722
+ "description": "Максимальное количество звезд",
27723
+ "required": false,
27724
+ "type": "number",
27725
+ "example": "5",
28475
27726
  "defaultValue": null
28476
27727
  },
28477
27728
  {
@@ -29732,319 +28983,16 @@
29732
28983
  }
29733
28984
  ]
29734
28985
  },
29735
- "ISliderFieldViewProps": {
29736
- "name": "ISliderFieldViewProps",
29737
- "moduleName": "ui/form/SliderField/SliderField",
29738
- "title": "",
29739
- "description": "",
29740
- "tags": {},
29741
- "defaultProps": null,
29742
- "extends": [
29743
- "ISliderFieldProps",
29744
- "IFieldWrapperOutputProps"
29745
- ],
29746
- "properties": [
29747
- {
29748
- "name": "attribute",
29749
- "decorators": [],
29750
- "description": "Аттрибут (название) поля в форме",
29751
- "required": false,
29752
- "type": "string",
29753
- "example": "'isVisible'"
29754
- },
29755
- {
29756
- "name": "className",
29757
- "decorators": [],
29758
- "description": "Дополнительный CSS-класс для элемента отображения",
29759
- "required": false,
29760
- "type": "string",
29761
- "example": null
29762
- },
29763
- {
29764
- "name": "componentId",
29765
- "decorators": [],
29766
- "description": "Id компонента",
29767
- "required": false,
29768
- "type": "string",
29769
- "example": null
29770
- },
29771
- {
29772
- "name": "date",
29773
- "decorators": [],
29774
- "description": "",
29775
- "required": false,
29776
- "type": "any",
29777
- "example": null
29778
- },
29779
- {
29780
- "name": "defaultValue",
29781
- "decorators": [],
29782
- "description": "Значение по-умолчанию при первом рендере. Для isRange=false используется number, для isRange=true - number[]",
29783
- "required": false,
29784
- "type": "number | number[]",
29785
- "example": "1"
29786
- },
29787
- {
29788
- "name": "disabled",
29789
- "decorators": [],
29790
- "description": "Переводит элемент в состояние \"не активен\"",
29791
- "required": false,
29792
- "type": "boolean",
29793
- "example": "true"
29794
- },
29795
- {
29796
- "name": "errors",
29797
- "decorators": [],
29798
- "description": "Ошибки в поле",
29799
- "required": false,
29800
- "type": "string[]",
29801
- "example": "['Error text']"
29802
- },
29803
- {
29804
- "name": "fieldLayoutClassName",
29805
- "decorators": [],
29806
- "description": "Дополнительный CSS-класс для обертки FieldLayout",
29807
- "required": false,
29808
- "type": "string",
29809
- "example": null
29810
- },
29811
- {
29812
- "name": "formId",
29813
- "decorators": [],
29814
- "description": "Id формы",
29815
- "required": false,
29816
- "type": "string",
29817
- "example": null
29818
- },
29819
- {
29820
- "name": "hint",
29821
- "decorators": [],
29822
- "description": "Подсказка, которая отобразится рядом с полем",
29823
- "required": false,
29824
- "type": "string",
29825
- "example": "'Only english letters'"
29826
- },
29827
- {
29828
- "name": "id",
29829
- "decorators": [],
29830
- "description": "Input ID для связи поля с label",
29831
- "required": false,
29832
- "type": "string",
29833
- "example": null
29834
- },
29835
- {
29836
- "name": "input",
29837
- "decorators": [],
29838
- "description": "Параметры для input элемента",
29839
- "required": false,
29840
- "type": "IInputParams",
29841
- "example": null
29842
- },
29843
- {
29844
- "name": "isRange",
29845
- "decorators": [],
29846
- "description": "Делает слайдер с двумя значениями",
29847
- "required": false,
29848
- "type": "boolean",
29849
- "example": "true"
29850
- },
29851
- {
29852
- "name": "isRenderWithoutFieldLayout",
29853
- "decorators": [],
29854
- "description": "Возможность отрендерить поле без обертки в компонент FieldLayout",
29855
- "required": false,
29856
- "type": "boolean",
29857
- "example": null
29858
- },
29859
- {
29860
- "name": "label",
29861
- "decorators": [],
29862
- "description": "Название поля либо отмена отображение поля (false)",
29863
- "required": false,
29864
- "type": "any",
29865
- "example": "'Visible'"
29866
- },
29867
- {
29868
- "name": "marks",
29869
- "decorators": [],
29870
- "description": "Метки на ползунке. В объекте '{'key: value'}' key определяет положение, а value определяет, что будет отображаться.\nЕсли вы хотите задать стиль определенной точки метки, значением должен быть объект,\nсодержащий свойства style и label.",
29871
- "required": false,
29872
- "type": "Record",
29873
- "example": "{\n min: 20,\n 40: 40,\n max: 100\n}"
29874
- },
29875
- {
29876
- "name": "max",
29877
- "decorators": [],
29878
- "description": "Максимальное значение в слайдере",
29879
- "required": false,
29880
- "type": "number",
29881
- "example": "100"
29882
- },
29883
- {
29884
- "name": "min",
29885
- "decorators": [],
29886
- "description": "Минимальное значение в слайдере",
29887
- "required": false,
29888
- "type": "number",
29889
- "example": "0"
29890
- },
29891
- {
29892
- "name": "model",
29893
- "decorators": [],
29894
- "description": "Модель с полями формы",
29895
- "required": false,
29896
- "type": "any",
29897
- "example": "{\n attributes: [\n {\n attribute: 'category',\n field: 'DropDownField'\n }\n ]\n}"
29898
- },
29899
- {
29900
- "name": "placeholder",
29901
- "decorators": [],
29902
- "description": "Подсказка для поля",
29903
- "required": false,
29904
- "type": "string",
29905
- "example": "Your text..."
29906
- },
29907
- {
29908
- "name": "prefix",
29909
- "decorators": [],
29910
- "description": "Префикс, который добавится к аттрибуту (названию) поля в форме",
29911
- "required": false,
29912
- "type": "string | boolean",
29913
- "example": null
29914
- },
29915
- {
29916
- "name": "rangeDefaultValue",
29917
- "decorators": [],
29918
- "description": "",
29919
- "required": false,
29920
- "type": "number[]",
29921
- "example": null
29922
- },
29923
- {
29924
- "name": "required",
29925
- "decorators": [],
29926
- "description": "Обязательное ли поле? Если true, то к названию будет добавлен\nмодификатор 'required' - красная звездочка (по умолчанию)",
29927
- "required": false,
29928
- "type": "boolean",
29929
- "example": "true"
29930
- },
29931
- {
29932
- "name": "size",
29933
- "decorators": [],
29934
- "description": "Размер поля",
29935
- "required": false,
29936
- "type": "string",
29937
- "example": null
29938
- },
29939
- {
29940
- "name": "sliderDefaultValue",
29941
- "decorators": [],
29942
- "description": "",
29943
- "required": false,
29944
- "type": "number",
29945
- "example": null
29946
- },
29947
- {
29948
- "name": "sliderProps",
29949
- "decorators": [],
29950
- "description": "Свойства для компонента слайдера",
29951
- "required": false,
29952
- "type": "any",
29953
- "example": null
29954
- },
29955
- {
29956
- "name": "step",
29957
- "decorators": [],
29958
- "description": "Длина шага слайдера",
29959
- "required": false,
29960
- "type": "number",
29961
- "example": "10"
29962
- },
29963
- {
29964
- "name": "style",
29965
- "decorators": [],
29966
- "description": "Объект CSS стилей",
29967
- "required": false,
29968
- "type": "CSSProperties",
29969
- "example": "{width: '45%'}"
29970
- },
29971
- {
29972
- "name": "value",
29973
- "decorators": [],
29974
- "description": "Значение для поля",
29975
- "required": false,
29976
- "type": "any",
29977
- "example": null
29978
- },
29979
- {
29980
- "name": "valuePostfix",
29981
- "decorators": [],
29982
- "description": "Любое строковое значение после значения состояния слайдера в всплывающем окошке.",
29983
- "required": false,
29984
- "type": "string",
29985
- "example": "'%'"
29986
- },
29987
- {
29988
- "name": "view",
29989
- "decorators": [],
29990
- "description": "Переопределение view React компонента для кастомизации отображения",
29991
- "required": false,
29992
- "type": "React.ReactNode | {}",
29993
- "example": "MyCustomView"
29994
- }
29995
- ],
29996
- "methods": [
29997
- {
29998
- "name": "onAfterChange",
29999
- "decorators": [],
30000
- "description": "Функция, вызываемая после отпускания tip'а у слайдера (при событии onmouseup)",
30001
- "required": false,
30002
- "type": "void",
30003
- "example": "{\n () => console.log('Slider handler is released')\n}",
30004
- "parameters": [
30005
- {
30006
- "name": "value",
30007
- "decorators": [],
30008
- "description": "",
30009
- "required": true,
30010
- "type": "any",
30011
- "example": null
30012
- }
30013
- ]
30014
- },
30015
- {
30016
- "name": "onChange",
30017
- "decorators": [],
30018
- "description": "Функция, вызываемая в момент перетаскивания tip'а у слайдера",
30019
- "required": false,
30020
- "type": "void",
30021
- "example": "{\n () => console.log('Slider is moving')\n}",
30022
- "parameters": [
30023
- {
30024
- "name": "value",
30025
- "decorators": [],
30026
- "description": "",
30027
- "required": true,
30028
- "type": "any",
30029
- "example": null
30030
- }
30031
- ]
30032
- }
30033
- ]
30034
- },
30035
- "ISwitcherFieldProps": {
30036
- "name": "ISwitcherFieldProps",
30037
- "moduleName": "ui/form/SwitcherField/SwitcherField",
30038
- "title": "SwitcherField",
30039
- "description": "Список с кнопками. Используется для выбора одного значения.",
28986
+ "ISliderFieldViewProps": {
28987
+ "name": "ISliderFieldViewProps",
28988
+ "moduleName": "ui/form/SliderField/SliderField",
28989
+ "title": "",
28990
+ "description": "",
30040
28991
  "tags": {},
30041
28992
  "defaultProps": null,
30042
28993
  "extends": [
30043
- "IFieldWrapperInputProps",
30044
- "IDataProviderConfig",
30045
- "Omit<IDataSelectConfig",
30046
- "'items'>",
30047
- "IUiComponent"
28994
+ "ISliderFieldProps",
28995
+ "IFieldWrapperOutputProps"
30048
28996
  ],
30049
28997
  "properties": [
30050
28998
  {
@@ -30053,35 +29001,7 @@
30053
29001
  "description": "Аттрибут (название) поля в форме",
30054
29002
  "required": false,
30055
29003
  "type": "string",
30056
- "example": "'isVisible'",
30057
- "defaultValue": null
30058
- },
30059
- {
30060
- "name": "autoComplete",
30061
- "decorators": [],
30062
- "description": "Настройки поиска",
30063
- "required": false,
30064
- "type": "boolean | IAutoCompleteConfig",
30065
- "example": "{\n enable: true,\n minLength: 2,\n delay: 100\n}",
30066
- "defaultValue": null
30067
- },
30068
- {
30069
- "name": "autoCompleteInputRef",
30070
- "decorators": [],
30071
- "description": " Ref autocomplete поиска",
30072
- "required": false,
30073
- "type": "MutableRefObject",
30074
- "example": null,
30075
- "defaultValue": null
30076
- },
30077
- {
30078
- "name": "autoFetch",
30079
- "decorators": [],
30080
- "description": "Загрузка данных после любого изменения запроса.\nЕсли включен autoFetch, то настройки autoComplete не применятся.",
30081
- "required": false,
30082
- "type": "boolean",
30083
- "example": "true",
30084
- "defaultValue": null
29004
+ "example": "'isVisible'"
30085
29005
  },
30086
29006
  {
30087
29007
  "name": "className",
@@ -30089,17 +29009,15 @@
30089
29009
  "description": "Дополнительный CSS-класс для элемента отображения",
30090
29010
  "required": false,
30091
29011
  "type": "string",
30092
- "example": null,
30093
- "defaultValue": null
29012
+ "example": null
30094
29013
  },
30095
29014
  {
30096
- "name": "dataProvider",
29015
+ "name": "componentId",
30097
29016
  "decorators": [],
30098
- "description": "Конфигурация для подгрузки данных извне.\nЕсли dataProvider не передан, то поиск данных по запросу происходит локально.",
29017
+ "description": "Id компонента",
30099
29018
  "required": false,
30100
- "type": "IDataProvider",
30101
- "example": null,
30102
- "defaultValue": null
29019
+ "type": "string",
29020
+ "example": null
30103
29021
  },
30104
29022
  {
30105
29023
  "name": "date",
@@ -30107,8 +29025,15 @@
30107
29025
  "description": "",
30108
29026
  "required": false,
30109
29027
  "type": "any",
30110
- "example": null,
30111
- "defaultValue": null
29028
+ "example": null
29029
+ },
29030
+ {
29031
+ "name": "defaultValue",
29032
+ "decorators": [],
29033
+ "description": "Значение по-умолчанию при первом рендере. Для isRange=false используется number, для isRange=true - number[]",
29034
+ "required": false,
29035
+ "type": "number | number[]",
29036
+ "example": "1"
30112
29037
  },
30113
29038
  {
30114
29039
  "name": "disabled",
@@ -30116,8 +29041,7 @@
30116
29041
  "description": "Переводит элемент в состояние \"не активен\"",
30117
29042
  "required": false,
30118
29043
  "type": "boolean",
30119
- "example": "true",
30120
- "defaultValue": null
29044
+ "example": "true"
30121
29045
  },
30122
29046
  {
30123
29047
  "name": "errors",
@@ -30125,8 +29049,7 @@
30125
29049
  "description": "Ошибки в поле",
30126
29050
  "required": false,
30127
29051
  "type": "string[]",
30128
- "example": "['Error text']",
30129
- "defaultValue": null
29052
+ "example": "['Error text']"
30130
29053
  },
30131
29054
  {
30132
29055
  "name": "fieldLayoutClassName",
@@ -30134,17 +29057,15 @@
30134
29057
  "description": "Дополнительный CSS-класс для обертки FieldLayout",
30135
29058
  "required": false,
30136
29059
  "type": "string",
30137
- "example": null,
30138
- "defaultValue": null
29060
+ "example": null
30139
29061
  },
30140
29062
  {
30141
- "name": "groupAttribute",
29063
+ "name": "formId",
30142
29064
  "decorators": [],
30143
- "description": "Атрибут, в котором должны лежать дочерние элементы списка (для группировки)\nЕсли аттрибут не задан - группировка не производится",
29065
+ "description": "Id формы",
30144
29066
  "required": false,
30145
29067
  "type": "string",
30146
- "example": "items",
30147
- "defaultValue": null
29068
+ "example": null
30148
29069
  },
30149
29070
  {
30150
29071
  "name": "hint",
@@ -30152,8 +29073,7 @@
30152
29073
  "description": "Подсказка, которая отобразится рядом с полем",
30153
29074
  "required": false,
30154
29075
  "type": "string",
30155
- "example": "'Only english letters'",
30156
- "defaultValue": null
29076
+ "example": "'Only english letters'"
30157
29077
  },
30158
29078
  {
30159
29079
  "name": "id",
@@ -30161,80 +29081,71 @@
30161
29081
  "description": "Input ID для связи поля с label",
30162
29082
  "required": false,
30163
29083
  "type": "string",
30164
- "example": null,
30165
- "defaultValue": null
29084
+ "example": null
30166
29085
  },
30167
29086
  {
30168
- "name": "initialSelectedIds",
29087
+ "name": "input",
30169
29088
  "decorators": [],
30170
- "description": "Идентификаторы выбранных значений, которые необходимо подгрузить при `autoFetch` режиме.\nНа бекенд будут переданы идентификаторы в параметре `ids`, которые необходимо вернуть.\nИспользуется только при `autoFetch = true`",
29089
+ "description": "Параметры для input элемента",
30171
29090
  "required": false,
30172
- "type": "number[]",
30173
- "example": "[1, 22]",
30174
- "defaultValue": null
29091
+ "type": "IInputParams",
29092
+ "example": null
30175
29093
  },
30176
29094
  {
30177
- "name": "inputProps",
29095
+ "name": "isRange",
30178
29096
  "decorators": [],
30179
- "description": "Свойства для элемента input",
29097
+ "description": "Делает слайдер с двумя значениями",
30180
29098
  "required": false,
30181
- "type": "any",
30182
- "example": "{onKeyDown: ...}",
30183
- "defaultValue": null
29099
+ "type": "boolean",
29100
+ "example": "true"
30184
29101
  },
30185
29102
  {
30186
- "name": "inputValue",
29103
+ "name": "isRenderWithoutFieldLayout",
30187
29104
  "decorators": [],
30188
- "description": "Значение поля в форме",
29105
+ "description": "Возможность отрендерить поле без обертки в компонент FieldLayout",
30189
29106
  "required": false,
30190
- "type": "any",
30191
- "example": null,
30192
- "defaultValue": null
29107
+ "type": "boolean",
29108
+ "example": null
30193
29109
  },
30194
29110
  {
30195
- "name": "isRenderWithoutFieldLayout",
29111
+ "name": "label",
30196
29112
  "decorators": [],
30197
- "description": "Возможность отрендерить поле без обертки в компонент FieldLayout",
29113
+ "description": "Название поля либо отмена отображение поля (false)",
30198
29114
  "required": false,
30199
- "type": "boolean",
30200
- "example": null,
30201
- "defaultValue": null
29115
+ "type": "any",
29116
+ "example": "'Visible'"
30202
29117
  },
30203
29118
  {
30204
- "name": "items",
29119
+ "name": "marks",
30205
29120
  "decorators": [],
30206
- "description": "Коллекция элементов",
29121
+ "description": "Метки на ползунке. В объекте '{'key: value'}' key определяет положение, а value определяет, что будет отображаться.\nЕсли вы хотите задать стиль определенной точки метки, значением должен быть объект,\nсодержащий свойства style и label.",
30207
29122
  "required": false,
30208
- "type": "string | {} | string | number | {id: string | number | boolean, label: string | Record | number}[]",
30209
- "example": "[\n {\n id: 1,\n label: 'Krasnoyarsk'\n },\n {\n id: 2,\n label: 'Moscow'\n }\n]",
30210
- "defaultValue": null
29123
+ "type": "Record",
29124
+ "example": "{\n min: 20,\n 40: 40,\n max: 100\n}"
30211
29125
  },
30212
29126
  {
30213
- "name": "label",
29127
+ "name": "max",
30214
29128
  "decorators": [],
30215
- "description": "Название поля либо отмена отображение поля (false)",
29129
+ "description": "Максимальное значение в слайдере",
30216
29130
  "required": false,
30217
- "type": "any",
30218
- "example": "'Visible'",
30219
- "defaultValue": null
29131
+ "type": "number",
29132
+ "example": "100"
30220
29133
  },
30221
29134
  {
30222
- "name": "model",
29135
+ "name": "min",
30223
29136
  "decorators": [],
30224
- "description": "Модель с полями формы",
29137
+ "description": "Минимальное значение в слайдере",
30225
29138
  "required": false,
30226
- "type": "any",
30227
- "example": "{\n attributes: [\n {\n attribute: 'category',\n field: 'DropDownField'\n }\n ]\n}",
30228
- "defaultValue": null
29139
+ "type": "number",
29140
+ "example": "0"
30229
29141
  },
30230
29142
  {
30231
- "name": "multiple",
29143
+ "name": "model",
30232
29144
  "decorators": [],
30233
- "description": "Возможность множественного выбора",
29145
+ "description": "Модель с полями формы",
30234
29146
  "required": false,
30235
- "type": "boolean",
30236
- "example": "true",
30237
- "defaultValue": null
29147
+ "type": "any",
29148
+ "example": "{\n attributes: [\n {\n attribute: 'category',\n field: 'DropDownField'\n }\n ]\n}"
30238
29149
  },
30239
29150
  {
30240
29151
  "name": "placeholder",
@@ -30242,8 +29153,7 @@
30242
29153
  "description": "Подсказка для поля",
30243
29154
  "required": false,
30244
29155
  "type": "string",
30245
- "example": "Your text...",
30246
- "defaultValue": null
29156
+ "example": "Your text..."
30247
29157
  },
30248
29158
  {
30249
29159
  "name": "prefix",
@@ -30251,26 +29161,15 @@
30251
29161
  "description": "Префикс, который добавится к аттрибуту (названию) поля в форме",
30252
29162
  "required": false,
30253
29163
  "type": "string | boolean",
30254
- "example": null,
30255
- "defaultValue": null
30256
- },
30257
- {
30258
- "name": "primaryKey",
30259
- "decorators": [],
30260
- "description": "Первичный ключ для item",
30261
- "required": false,
30262
- "type": "string",
30263
- "example": "id",
30264
- "defaultValue": null
29164
+ "example": null
30265
29165
  },
30266
29166
  {
30267
- "name": "query",
29167
+ "name": "rangeDefaultValue",
30268
29168
  "decorators": [],
30269
- "description": "Текст запроса",
29169
+ "description": "",
30270
29170
  "required": false,
30271
- "type": "string",
30272
- "example": "'some text'",
30273
- "defaultValue": null
29171
+ "type": "number[]",
29172
+ "example": null
30274
29173
  },
30275
29174
  {
30276
29175
  "name": "required",
@@ -30278,44 +29177,39 @@
30278
29177
  "description": "Обязательное ли поле? Если true, то к названию будет добавлен\nмодификатор 'required' - красная звездочка (по умолчанию)",
30279
29178
  "required": false,
30280
29179
  "type": "boolean",
30281
- "example": "true",
30282
- "defaultValue": null
29180
+ "example": "true"
30283
29181
  },
30284
29182
  {
30285
- "name": "selectFirst",
29183
+ "name": "size",
30286
29184
  "decorators": [],
30287
- "description": "Сделать активным первый элемент в списке",
29185
+ "description": "Размер поля",
30288
29186
  "required": false,
30289
- "type": "boolean",
30290
- "example": "true",
30291
- "defaultValue": null
29187
+ "type": "string",
29188
+ "example": null
30292
29189
  },
30293
29190
  {
30294
- "name": "selectedIds",
29191
+ "name": "sliderDefaultValue",
30295
29192
  "decorators": [],
30296
- "description": "Список с идентификаторами выбранных элементов",
29193
+ "description": "",
30297
29194
  "required": false,
30298
- "type": "any",
30299
- "example": "[1, 4]",
30300
- "defaultValue": null
29195
+ "type": "number",
29196
+ "example": null
30301
29197
  },
30302
29198
  {
30303
- "name": "size",
29199
+ "name": "sliderProps",
30304
29200
  "decorators": [],
30305
- "description": "Размер поля",
29201
+ "description": "Свойства для компонента слайдера",
30306
29202
  "required": false,
30307
- "type": "string",
30308
- "example": null,
30309
- "defaultValue": null
29203
+ "type": "any",
29204
+ "example": null
30310
29205
  },
30311
29206
  {
30312
- "name": "sourceItems",
29207
+ "name": "step",
30313
29208
  "decorators": [],
30314
- "description": " Список со всеми элементами",
29209
+ "description": "Длина шага слайдера",
30315
29210
  "required": false,
30316
- "type": "IDataSelectItem[]",
30317
- "example": null,
30318
- "defaultValue": null
29211
+ "type": "number",
29212
+ "example": "10"
30319
29213
  },
30320
29214
  {
30321
29215
  "name": "style",
@@ -30323,8 +29217,7 @@
30323
29217
  "description": "Объект CSS стилей",
30324
29218
  "required": false,
30325
29219
  "type": "CSSProperties",
30326
- "example": "{width: '45%'}",
30327
- "defaultValue": null
29220
+ "example": "{width: '45%'}"
30328
29221
  },
30329
29222
  {
30330
29223
  "name": "value",
@@ -30332,137 +29225,36 @@
30332
29225
  "description": "Значение для поля",
30333
29226
  "required": false,
30334
29227
  "type": "any",
30335
- "example": null,
30336
- "defaultValue": null
30337
- },
30338
- {
30339
- "name": "view",
30340
- "decorators": [],
30341
- "description": "Переопределение view React компонента для кастомизации отображения",
30342
- "required": false,
30343
- "type": "React.ReactNode | {}",
30344
- "example": "MyCustomView",
30345
- "defaultValue": null
30346
- }
30347
- ],
30348
- "methods": [
30349
- {
30350
- "name": "onChange",
30351
- "decorators": [],
30352
- "description": "Callback-функция, которая вызывается при изменении данных",
30353
- "required": false,
30354
- "type": "any",
30355
- "example": null,
30356
- "parameters": [
30357
- {
30358
- "name": "args",
30359
- "decorators": [],
30360
- "description": "",
30361
- "required": true,
30362
- "type": "any[]",
30363
- "example": null
30364
- }
30365
- ]
30366
- }
30367
- ]
30368
- },
30369
- "ISwitcherFieldViewProps": {
30370
- "name": "ISwitcherFieldViewProps",
30371
- "moduleName": "ui/form/SwitcherField/SwitcherField",
30372
- "title": "",
30373
- "description": "",
30374
- "tags": {},
30375
- "defaultProps": null,
30376
- "extends": [
30377
- "IFieldWrapperOutputProps",
30378
- "Omit<ISwitcherFieldProps",
30379
- "'items'>"
30380
- ],
30381
- "properties": [
30382
- {
30383
- "name": "buttonProps",
30384
- "decorators": [],
30385
- "description": "",
30386
- "required": false,
30387
- "type": "any",
30388
- "example": null
30389
- },
30390
- {
30391
- "name": "componentId",
30392
- "decorators": [],
30393
- "description": "Id компонента",
30394
- "required": false,
30395
- "type": "string",
30396
- "example": null
30397
- },
30398
- {
30399
- "name": "errors",
30400
- "decorators": [],
30401
- "description": "Коллекция ошибок",
30402
- "required": false,
30403
- "type": "string[]",
30404
29228
  "example": null
30405
29229
  },
30406
29230
  {
30407
- "name": "formId",
29231
+ "name": "valuePostfix",
30408
29232
  "decorators": [],
30409
- "description": "Id формы",
29233
+ "description": "Любое строковое значение после значения состояния слайдера в всплывающем окошке.",
30410
29234
  "required": false,
30411
29235
  "type": "string",
30412
- "example": null
30413
- },
30414
- {
30415
- "name": "hoveredId",
30416
- "decorators": [],
30417
- "description": "",
30418
- "required": true,
30419
- "type": "any",
30420
- "example": null
29236
+ "example": "'%'"
30421
29237
  },
30422
29238
  {
30423
- "name": "input",
29239
+ "name": "view",
30424
29240
  "decorators": [],
30425
- "description": "Параметры для input элемента",
29241
+ "description": "Переопределение view React компонента для кастомизации отображения",
30426
29242
  "required": false,
30427
- "type": "IInputParams",
30428
- "example": null
30429
- },
30430
- {
30431
- "name": "inputProps",
30432
- "decorators": [],
30433
- "description": "",
30434
- "required": true,
30435
- "type": "{disabled: boolean, name: string, type: string, onChange: null}",
30436
- "example": null
30437
- },
30438
- {
30439
- "name": "items",
30440
- "decorators": [],
30441
- "description": "",
30442
- "required": true,
30443
- "type": "ISwitcherItem[]",
30444
- "example": null
30445
- },
30446
- {
30447
- "name": "selectedIds",
30448
- "decorators": [],
30449
- "description": "",
30450
- "required": true,
30451
- "type": "any[]",
30452
- "example": null
29243
+ "type": "React.ReactNode | {}",
29244
+ "example": "MyCustomView"
30453
29245
  }
30454
29246
  ],
30455
29247
  "methods": [
30456
29248
  {
30457
- "name": "onItemHover",
29249
+ "name": "onAfterChange",
30458
29250
  "decorators": [],
30459
- "description": "",
29251
+ "description": "Функция, вызываемая после отпускания tip'а у слайдера (при событии onmouseup)",
30460
29252
  "required": false,
30461
29253
  "type": "void",
30462
- "example": null,
29254
+ "example": "{\n () => console.log('Slider handler is released')\n}",
30463
29255
  "parameters": [
30464
29256
  {
30465
- "name": "id",
29257
+ "name": "value",
30466
29258
  "decorators": [],
30467
29259
  "description": "",
30468
29260
  "required": true,
@@ -30472,15 +29264,15 @@
30472
29264
  ]
30473
29265
  },
30474
29266
  {
30475
- "name": "onItemSelect",
29267
+ "name": "onChange",
30476
29268
  "decorators": [],
30477
- "description": "",
29269
+ "description": "Функция, вызываемая в момент перетаскивания tip'а у слайдера",
30478
29270
  "required": false,
30479
29271
  "type": "void",
30480
- "example": null,
29272
+ "example": "{\n () => console.log('Slider is moving')\n}",
30481
29273
  "parameters": [
30482
29274
  {
30483
- "name": "id",
29275
+ "name": "value",
30484
29276
  "decorators": [],
30485
29277
  "description": "",
30486
29278
  "required": true,
@@ -30491,34 +29283,6 @@
30491
29283
  }
30492
29284
  ]
30493
29285
  },
30494
- "ISwitcherItem": {
30495
- "name": "ISwitcherItem",
30496
- "moduleName": "ui/form/SwitcherField/SwitcherField",
30497
- "title": "",
30498
- "description": "",
30499
- "tags": {},
30500
- "defaultProps": null,
30501
- "extends": [],
30502
- "properties": [
30503
- {
30504
- "name": "id",
30505
- "decorators": [],
30506
- "description": "",
30507
- "required": true,
30508
- "type": "string | number | boolean",
30509
- "example": null
30510
- },
30511
- {
30512
- "name": "label",
30513
- "decorators": [],
30514
- "description": "",
30515
- "required": false,
30516
- "type": "string | {checked: string, unchecked: string}",
30517
- "example": null
30518
- }
30519
- ],
30520
- "methods": []
30521
- },
30522
29286
  "ITextFieldProps": {
30523
29287
  "name": "ITextFieldProps",
30524
29288
  "moduleName": "ui/form/TextField/TextField",
@@ -41539,6 +40303,13 @@
41539
40303
  }
41540
40304
  },
41541
40305
  "declarations": {
40306
+ "FieldEnumType": {
40307
+ "name": "FieldEnumType",
40308
+ "decorators": [],
40309
+ "description": "",
40310
+ "required": true,
40311
+ "example": null
40312
+ },
41542
40313
  "PositionType": {
41543
40314
  "name": "PositionType",
41544
40315
  "decorators": [],
@@ -44107,6 +42878,337 @@
44107
42878
  "properties": [],
44108
42879
  "methods": []
44109
42880
  },
42881
+ "enums/FieldEnum": {
42882
+ "name": "default",
42883
+ "moduleName": "enums/FieldEnum",
42884
+ "title": "",
42885
+ "description": "",
42886
+ "tags": {},
42887
+ "properties": [
42888
+ {
42889
+ "name": "AUTO_COMPLETE_FIELD",
42890
+ "decorators": [],
42891
+ "description": "",
42892
+ "required": true,
42893
+ "type": "\"AutoCompleteField\"",
42894
+ "example": null
42895
+ },
42896
+ {
42897
+ "name": "BLANK_FIELD",
42898
+ "decorators": [],
42899
+ "description": "",
42900
+ "required": true,
42901
+ "type": "\"BlankField\"",
42902
+ "example": null
42903
+ },
42904
+ {
42905
+ "name": "CHECKBOX_FIELD",
42906
+ "decorators": [],
42907
+ "description": "",
42908
+ "required": true,
42909
+ "type": "\"CheckboxField\"",
42910
+ "example": null
42911
+ },
42912
+ {
42913
+ "name": "CHECKBOX_LIST_FIELD",
42914
+ "decorators": [],
42915
+ "description": "",
42916
+ "required": true,
42917
+ "type": "\"CheckboxListField\"",
42918
+ "example": null
42919
+ },
42920
+ {
42921
+ "name": "CHECKBOX_TREE_FIELD",
42922
+ "decorators": [],
42923
+ "description": "",
42924
+ "required": true,
42925
+ "type": "\"CheckboxTreeField\"",
42926
+ "example": null
42927
+ },
42928
+ {
42929
+ "name": "DATE_FIELD",
42930
+ "decorators": [],
42931
+ "description": "",
42932
+ "required": true,
42933
+ "type": "\"DateField\"",
42934
+ "example": null
42935
+ },
42936
+ {
42937
+ "name": "DATE_RANGE_FIELD",
42938
+ "decorators": [],
42939
+ "description": "",
42940
+ "required": true,
42941
+ "type": "\"DateRangeField\"",
42942
+ "example": null
42943
+ },
42944
+ {
42945
+ "name": "DATE_TIME_FIELD",
42946
+ "decorators": [],
42947
+ "description": "",
42948
+ "required": true,
42949
+ "type": "\"DateTimeField\"",
42950
+ "example": null
42951
+ },
42952
+ {
42953
+ "name": "DATE_TIME_RANGE_FIELD",
42954
+ "decorators": [],
42955
+ "description": "",
42956
+ "required": true,
42957
+ "type": "\"DateTimeRangeField\"",
42958
+ "example": null
42959
+ },
42960
+ {
42961
+ "name": "DROPDOWN_FIELD",
42962
+ "decorators": [],
42963
+ "description": "",
42964
+ "required": true,
42965
+ "type": "\"DropDownField\"",
42966
+ "example": null
42967
+ },
42968
+ {
42969
+ "name": "EMAIL_FIELD",
42970
+ "decorators": [],
42971
+ "description": "",
42972
+ "required": true,
42973
+ "type": "\"EmailField\"",
42974
+ "example": null
42975
+ },
42976
+ {
42977
+ "name": "FIELD",
42978
+ "decorators": [],
42979
+ "description": "",
42980
+ "required": true,
42981
+ "type": "\"Field\"",
42982
+ "example": null
42983
+ },
42984
+ {
42985
+ "name": "FIELD_LIST",
42986
+ "decorators": [],
42987
+ "description": "",
42988
+ "required": true,
42989
+ "type": "\"FieldList\"",
42990
+ "example": null
42991
+ },
42992
+ {
42993
+ "name": "FIELD_SET",
42994
+ "decorators": [],
42995
+ "description": "",
42996
+ "required": true,
42997
+ "type": "\"FieldSet\"",
42998
+ "example": null
42999
+ },
43000
+ {
43001
+ "name": "FILE_FIELD",
43002
+ "decorators": [],
43003
+ "description": "",
43004
+ "required": true,
43005
+ "type": "\"FileField\"",
43006
+ "example": null
43007
+ },
43008
+ {
43009
+ "name": "HTML_FIELD",
43010
+ "decorators": [],
43011
+ "description": "",
43012
+ "required": true,
43013
+ "type": "\"HtmlField\"",
43014
+ "example": null
43015
+ },
43016
+ {
43017
+ "name": "IMAGE_FIELD",
43018
+ "decorators": [],
43019
+ "description": "",
43020
+ "required": true,
43021
+ "type": "\"ImageField\"",
43022
+ "example": null
43023
+ },
43024
+ {
43025
+ "name": "INPUT_FIELD",
43026
+ "decorators": [],
43027
+ "description": "",
43028
+ "required": true,
43029
+ "type": "\"InputField\"",
43030
+ "example": null
43031
+ },
43032
+ {
43033
+ "name": "MASK_FIELD",
43034
+ "decorators": [],
43035
+ "description": "",
43036
+ "required": true,
43037
+ "type": "\"MaskField\"",
43038
+ "example": null
43039
+ },
43040
+ {
43041
+ "name": "NAV_FIELD",
43042
+ "decorators": [],
43043
+ "description": "",
43044
+ "required": true,
43045
+ "type": "\"NavField\"",
43046
+ "example": null
43047
+ },
43048
+ {
43049
+ "name": "NUMBER_FIELD",
43050
+ "decorators": [],
43051
+ "description": "",
43052
+ "required": true,
43053
+ "type": "\"NumberField\"",
43054
+ "example": null
43055
+ },
43056
+ {
43057
+ "name": "PASSWORD_FIELD",
43058
+ "decorators": [],
43059
+ "description": "",
43060
+ "required": true,
43061
+ "type": "\"PasswordField\"",
43062
+ "example": null
43063
+ },
43064
+ {
43065
+ "name": "RADIO_FIELD",
43066
+ "decorators": [],
43067
+ "description": "",
43068
+ "required": true,
43069
+ "type": "\"RadioField\"",
43070
+ "example": null
43071
+ },
43072
+ {
43073
+ "name": "RADIO_LIST_FIELD",
43074
+ "decorators": [],
43075
+ "description": "",
43076
+ "required": true,
43077
+ "type": "\"RadioListField\"",
43078
+ "example": null
43079
+ },
43080
+ {
43081
+ "name": "RATE_FIELD",
43082
+ "decorators": [],
43083
+ "description": "",
43084
+ "required": true,
43085
+ "type": "\"RateField\"",
43086
+ "example": null
43087
+ },
43088
+ {
43089
+ "name": "RE_CAPTCHA_FIELD",
43090
+ "decorators": [],
43091
+ "description": "",
43092
+ "required": true,
43093
+ "type": "\"ReCaptchaField\"",
43094
+ "example": null
43095
+ },
43096
+ {
43097
+ "name": "SLIDER_FIELD",
43098
+ "decorators": [],
43099
+ "description": "",
43100
+ "required": true,
43101
+ "type": "\"SliderField\"",
43102
+ "example": null
43103
+ },
43104
+ {
43105
+ "name": "SWITCHER_FIELD",
43106
+ "decorators": [],
43107
+ "description": "",
43108
+ "required": true,
43109
+ "type": "\"SwitcherField\"",
43110
+ "example": null
43111
+ },
43112
+ {
43113
+ "name": "TEXT_FIELD",
43114
+ "decorators": [],
43115
+ "description": "",
43116
+ "required": true,
43117
+ "type": "\"TextField\"",
43118
+ "example": null
43119
+ },
43120
+ {
43121
+ "name": "TIME_FIELD",
43122
+ "decorators": [],
43123
+ "description": "",
43124
+ "required": true,
43125
+ "type": "\"TimeField\"",
43126
+ "example": null
43127
+ },
43128
+ {
43129
+ "name": "TIME_RANGE_FIELD",
43130
+ "decorators": [],
43131
+ "description": "",
43132
+ "required": true,
43133
+ "type": "\"TimeRangeField\"",
43134
+ "example": null
43135
+ }
43136
+ ],
43137
+ "methods": [
43138
+ {
43139
+ "name": "getCssClass",
43140
+ "decorators": [],
43141
+ "description": "",
43142
+ "required": false,
43143
+ "type": "any",
43144
+ "example": null,
43145
+ "parameters": [
43146
+ {
43147
+ "name": "id",
43148
+ "decorators": [],
43149
+ "description": "",
43150
+ "required": true,
43151
+ "type": "any",
43152
+ "example": null
43153
+ }
43154
+ ]
43155
+ },
43156
+ {
43157
+ "name": "getCssClasses",
43158
+ "decorators": [],
43159
+ "description": "",
43160
+ "required": false,
43161
+ "type": "{}",
43162
+ "example": null,
43163
+ "parameters": []
43164
+ },
43165
+ {
43166
+ "name": "getDropdownItems",
43167
+ "decorators": [],
43168
+ "description": "",
43169
+ "required": false,
43170
+ "type": "{id: string, label: string}[]",
43171
+ "example": null,
43172
+ "parameters": []
43173
+ },
43174
+ {
43175
+ "name": "getKeys",
43176
+ "decorators": [],
43177
+ "description": "",
43178
+ "required": false,
43179
+ "type": "string[]",
43180
+ "example": null,
43181
+ "parameters": []
43182
+ },
43183
+ {
43184
+ "name": "getLabel",
43185
+ "decorators": [],
43186
+ "description": "",
43187
+ "required": false,
43188
+ "type": "string",
43189
+ "example": null,
43190
+ "parameters": [
43191
+ {
43192
+ "name": "id",
43193
+ "decorators": [],
43194
+ "description": "",
43195
+ "required": true,
43196
+ "type": "any",
43197
+ "example": null
43198
+ }
43199
+ ]
43200
+ },
43201
+ {
43202
+ "name": "getLabels",
43203
+ "decorators": [],
43204
+ "description": "",
43205
+ "required": false,
43206
+ "type": "{AutoCompleteField: string, BlankField: string, CheckboxField: string, CheckboxListField: string, CheckboxTreeField: string, DateField: string, DateRangeField: string, DateTimeField: string, DateTimeRangeField: string, DropDownField: string, EmailField: string, Field: string, FieldList: string, FieldSet: string, FileField: string, HtmlField: string, ImageField: string, InputField: string, MaskField: string, NavField: string, NumberField: string, PasswordField: string, RadioField: string, RadioListField: string, RateField: string, ReCaptchaField: string, SliderField: string, SwitcherField: string, TextField: string, TimeField: string, TimeRangeField: string}",
43207
+ "example": null,
43208
+ "parameters": []
43209
+ }
43210
+ ]
43211
+ },
44110
43212
  "providers/ComponentsProvider": {
44111
43213
  "name": "default",
44112
43214
  "moduleName": "providers/ComponentsProvider",
@@ -45169,13 +44271,6 @@
45169
44271
  "description": "",
45170
44272
  "tags": {}
45171
44273
  },
45172
- "ui/form/SwitcherField/SwitcherField": {
45173
- "name": "default",
45174
- "moduleName": "ui/form/SwitcherField/SwitcherField",
45175
- "title": "",
45176
- "description": "",
45177
- "tags": {}
45178
- },
45179
44274
  "ui/form/TextField/TextField": {
45180
44275
  "name": "default",
45181
44276
  "moduleName": "ui/form/TextField/TextField",