@itwin/components-react 4.1.0-dev.0 → 4.1.0-dev.1

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 (1087) hide show
  1. package/CHANGELOG.md +36 -6
  2. package/lib/cjs/components-react/UiComponents.d.ts +1 -1
  3. package/lib/cjs/components-react/UiComponents.d.ts.map +1 -1
  4. package/lib/cjs/components-react/UiComponents.js.map +1 -1
  5. package/lib/cjs/components-react/_target.scss +9 -9
  6. package/lib/cjs/components-react/common/DateUtils.js.map +1 -1
  7. package/lib/cjs/components-react/common/DelayedSpinner.d.ts +1 -1
  8. package/lib/cjs/components-react/common/DelayedSpinner.d.ts.map +1 -1
  9. package/lib/cjs/components-react/common/DelayedSpinner.js +3 -2
  10. package/lib/cjs/components-react/common/DelayedSpinner.js.map +1 -1
  11. package/lib/cjs/components-react/common/HighlightedText.js.map +1 -1
  12. package/lib/cjs/components-react/common/HighlightingComponentProps.js.map +1 -1
  13. package/lib/cjs/components-react/common/IImageLoader.js.map +1 -1
  14. package/lib/cjs/components-react/common/ImageRenderer.d.ts +1 -1
  15. package/lib/cjs/components-react/common/ImageRenderer.d.ts.map +1 -1
  16. package/lib/cjs/components-react/common/ImageRenderer.js.map +1 -1
  17. package/lib/cjs/components-react/common/Links.js.map +1 -1
  18. package/lib/cjs/components-react/common/PageOptions.js.map +1 -1
  19. package/lib/cjs/components-react/common/SubscriptionScheduler.d.ts +1 -1
  20. package/lib/cjs/components-react/common/SubscriptionScheduler.d.ts.map +1 -1
  21. package/lib/cjs/components-react/common/SubscriptionScheduler.js.map +1 -1
  22. package/lib/cjs/components-react/common/UseAsyncValue.js.map +1 -1
  23. package/lib/cjs/components-react/common/UseContextWithMandatoryProvider.js.map +1 -1
  24. package/lib/cjs/components-react/common/UseDebouncedAsyncValue.js +2 -1
  25. package/lib/cjs/components-react/common/UseDebouncedAsyncValue.js.map +1 -1
  26. package/lib/cjs/components-react/common/UseRerender.js.map +1 -1
  27. package/lib/cjs/components-react/common/countMatchesInString.js.map +1 -1
  28. package/lib/cjs/components-react/common/selection/SelectionHandler.js.map +1 -1
  29. package/lib/cjs/components-react/common/selection/SelectionModes.js.map +1 -1
  30. package/lib/cjs/components-react/converters/BooleanTypeConverter.d.ts +1 -1
  31. package/lib/cjs/components-react/converters/BooleanTypeConverter.d.ts.map +1 -1
  32. package/lib/cjs/components-react/converters/BooleanTypeConverter.js.map +1 -1
  33. package/lib/cjs/components-react/converters/CompositeTypeConverter.d.ts +1 -1
  34. package/lib/cjs/components-react/converters/CompositeTypeConverter.d.ts.map +1 -1
  35. package/lib/cjs/components-react/converters/CompositeTypeConverter.js.map +1 -1
  36. package/lib/cjs/components-react/converters/DateTimeTypeConverter.d.ts +5 -3
  37. package/lib/cjs/components-react/converters/DateTimeTypeConverter.d.ts.map +1 -1
  38. package/lib/cjs/components-react/converters/DateTimeTypeConverter.js.map +1 -1
  39. package/lib/cjs/components-react/converters/EnumTypeConverter.d.ts +1 -1
  40. package/lib/cjs/components-react/converters/EnumTypeConverter.d.ts.map +1 -1
  41. package/lib/cjs/components-react/converters/EnumTypeConverter.js.map +1 -1
  42. package/lib/cjs/components-react/converters/HexadecimalTypeConverter.d.ts +1 -1
  43. package/lib/cjs/components-react/converters/HexadecimalTypeConverter.d.ts.map +1 -1
  44. package/lib/cjs/components-react/converters/HexadecimalTypeConverter.js.map +1 -1
  45. package/lib/cjs/components-react/converters/NavigationPropertyTypeConverter.d.ts +1 -1
  46. package/lib/cjs/components-react/converters/NavigationPropertyTypeConverter.d.ts.map +1 -1
  47. package/lib/cjs/components-react/converters/NavigationPropertyTypeConverter.js.map +1 -1
  48. package/lib/cjs/components-react/converters/NumericTypeConverter.d.ts +3 -2
  49. package/lib/cjs/components-react/converters/NumericTypeConverter.d.ts.map +1 -1
  50. package/lib/cjs/components-react/converters/NumericTypeConverter.js +4 -2
  51. package/lib/cjs/components-react/converters/NumericTypeConverter.js.map +1 -1
  52. package/lib/cjs/components-react/converters/PointTypeConverter.d.ts +2 -2
  53. package/lib/cjs/components-react/converters/PointTypeConverter.d.ts.map +1 -1
  54. package/lib/cjs/components-react/converters/PointTypeConverter.js.map +1 -1
  55. package/lib/cjs/components-react/converters/StringTypeConverter.d.ts +1 -1
  56. package/lib/cjs/components-react/converters/StringTypeConverter.d.ts.map +1 -1
  57. package/lib/cjs/components-react/converters/StringTypeConverter.js.map +1 -1
  58. package/lib/cjs/components-react/converters/TypeConverter.d.ts +2 -2
  59. package/lib/cjs/components-react/converters/TypeConverter.d.ts.map +1 -1
  60. package/lib/cjs/components-react/converters/TypeConverter.js +2 -2
  61. package/lib/cjs/components-react/converters/TypeConverter.js.map +1 -1
  62. package/lib/cjs/components-react/converters/TypeConverterManager.d.ts +1 -1
  63. package/lib/cjs/components-react/converters/TypeConverterManager.d.ts.map +1 -1
  64. package/lib/cjs/components-react/converters/TypeConverterManager.js.map +1 -1
  65. package/lib/cjs/components-react/converters/valuetypes/ConvertedTypes.d.ts +1 -1
  66. package/lib/cjs/components-react/converters/valuetypes/ConvertedTypes.d.ts.map +1 -1
  67. package/lib/cjs/components-react/converters/valuetypes/ConvertedTypes.js.map +1 -1
  68. package/lib/cjs/components-react/datepicker/DateField.d.ts +3 -2
  69. package/lib/cjs/components-react/datepicker/DateField.d.ts.map +1 -1
  70. package/lib/cjs/components-react/datepicker/DateField.js.map +1 -1
  71. package/lib/cjs/components-react/datepicker/DateField.scss +22 -22
  72. package/lib/cjs/components-react/datepicker/DatePicker.js.map +1 -1
  73. package/lib/cjs/components-react/datepicker/DatePicker.scss +176 -176
  74. package/lib/cjs/components-react/datepicker/DatePickerPopupButton.d.ts +2 -2
  75. package/lib/cjs/components-react/datepicker/DatePickerPopupButton.d.ts.map +1 -1
  76. package/lib/cjs/components-react/datepicker/DatePickerPopupButton.js.map +1 -1
  77. package/lib/cjs/components-react/datepicker/DatePickerPopupButton.scss +57 -57
  78. package/lib/cjs/components-react/datepicker/IntlFormatter.d.ts +1 -1
  79. package/lib/cjs/components-react/datepicker/IntlFormatter.d.ts.map +1 -1
  80. package/lib/cjs/components-react/datepicker/IntlFormatter.js.map +1 -1
  81. package/lib/cjs/components-react/datepicker/TimeField.d.ts +1 -1
  82. package/lib/cjs/components-react/datepicker/TimeField.d.ts.map +1 -1
  83. package/lib/cjs/components-react/datepicker/TimeField.js.map +1 -1
  84. package/lib/cjs/components-react/datepicker/TimeField.scss +76 -76
  85. package/lib/cjs/components-react/editors/BooleanEditor.d.ts +2 -2
  86. package/lib/cjs/components-react/editors/BooleanEditor.d.ts.map +1 -1
  87. package/lib/cjs/components-react/editors/BooleanEditor.js.map +1 -1
  88. package/lib/cjs/components-react/editors/BooleanEditor.scss +22 -22
  89. package/lib/cjs/components-react/editors/CustomNumberEditor.d.ts +2 -2
  90. package/lib/cjs/components-react/editors/CustomNumberEditor.d.ts.map +1 -1
  91. package/lib/cjs/components-react/editors/CustomNumberEditor.js +4 -2
  92. package/lib/cjs/components-react/editors/CustomNumberEditor.js.map +1 -1
  93. package/lib/cjs/components-react/editors/CustomNumberEditor.scss +20 -20
  94. package/lib/cjs/components-react/editors/DateTimeEditor.d.ts +4 -3
  95. package/lib/cjs/components-react/editors/DateTimeEditor.d.ts.map +1 -1
  96. package/lib/cjs/components-react/editors/DateTimeEditor.js +3 -2
  97. package/lib/cjs/components-react/editors/DateTimeEditor.js.map +1 -1
  98. package/lib/cjs/components-react/editors/DateTimeEditor.scss +9 -9
  99. package/lib/cjs/components-react/editors/EditorContainer.d.ts +2 -2
  100. package/lib/cjs/components-react/editors/EditorContainer.d.ts.map +1 -1
  101. package/lib/cjs/components-react/editors/EditorContainer.js.map +1 -1
  102. package/lib/cjs/components-react/editors/EditorContainer.scss +6 -6
  103. package/lib/cjs/components-react/editors/EnumButtonGroupEditor.d.ts +2 -2
  104. package/lib/cjs/components-react/editors/EnumButtonGroupEditor.d.ts.map +1 -1
  105. package/lib/cjs/components-react/editors/EnumButtonGroupEditor.js.map +1 -1
  106. package/lib/cjs/components-react/editors/EnumButtonGroupEditor.scss +141 -141
  107. package/lib/cjs/components-react/editors/EnumEditor.d.ts +3 -3
  108. package/lib/cjs/components-react/editors/EnumEditor.d.ts.map +1 -1
  109. package/lib/cjs/components-react/editors/EnumEditor.js.map +1 -1
  110. package/lib/cjs/components-react/editors/EnumEditor.scss +22 -22
  111. package/lib/cjs/components-react/editors/IconEditor.d.ts +2 -2
  112. package/lib/cjs/components-react/editors/IconEditor.d.ts.map +1 -1
  113. package/lib/cjs/components-react/editors/IconEditor.js.map +1 -1
  114. package/lib/cjs/components-react/editors/IconEditor.scss +16 -16
  115. package/lib/cjs/components-react/editors/ImageCheckBoxEditor.d.ts +2 -2
  116. package/lib/cjs/components-react/editors/ImageCheckBoxEditor.d.ts.map +1 -1
  117. package/lib/cjs/components-react/editors/ImageCheckBoxEditor.js.map +1 -1
  118. package/lib/cjs/components-react/editors/ImageCheckBoxEditor.scss +24 -24
  119. package/lib/cjs/components-react/editors/NumericInputEditor.d.ts +2 -2
  120. package/lib/cjs/components-react/editors/NumericInputEditor.d.ts.map +1 -1
  121. package/lib/cjs/components-react/editors/NumericInputEditor.js.map +1 -1
  122. package/lib/cjs/components-react/editors/NumericInputEditor.scss +16 -16
  123. package/lib/cjs/components-react/editors/PopupButton.d.ts +1 -1
  124. package/lib/cjs/components-react/editors/PopupButton.d.ts.map +1 -1
  125. package/lib/cjs/components-react/editors/PopupButton.js +4 -3
  126. package/lib/cjs/components-react/editors/PopupButton.js.map +1 -1
  127. package/lib/cjs/components-react/editors/PopupButton.scss +116 -116
  128. package/lib/cjs/components-react/editors/PropertyEditorManager.d.ts +1 -1
  129. package/lib/cjs/components-react/editors/PropertyEditorManager.d.ts.map +1 -1
  130. package/lib/cjs/components-react/editors/PropertyEditorManager.js.map +1 -1
  131. package/lib/cjs/components-react/editors/SliderEditor.d.ts +2 -2
  132. package/lib/cjs/components-react/editors/SliderEditor.d.ts.map +1 -1
  133. package/lib/cjs/components-react/editors/SliderEditor.js.map +1 -1
  134. package/lib/cjs/components-react/editors/SliderEditor.scss +13 -13
  135. package/lib/cjs/components-react/editors/TextEditor.d.ts +2 -2
  136. package/lib/cjs/components-react/editors/TextEditor.d.ts.map +1 -1
  137. package/lib/cjs/components-react/editors/TextEditor.js +4 -2
  138. package/lib/cjs/components-react/editors/TextEditor.js.map +1 -1
  139. package/lib/cjs/components-react/editors/TextEditor.scss +20 -20
  140. package/lib/cjs/components-react/editors/TextareaEditor.d.ts +2 -2
  141. package/lib/cjs/components-react/editors/TextareaEditor.d.ts.map +1 -1
  142. package/lib/cjs/components-react/editors/TextareaEditor.js.map +1 -1
  143. package/lib/cjs/components-react/editors/TextareaEditor.scss +14 -14
  144. package/lib/cjs/components-react/editors/ToggleEditor.d.ts +2 -2
  145. package/lib/cjs/components-react/editors/ToggleEditor.d.ts.map +1 -1
  146. package/lib/cjs/components-react/editors/ToggleEditor.js.map +1 -1
  147. package/lib/cjs/components-react/editors/ToggleEditor.scss +23 -23
  148. package/lib/cjs/components-react/editors/variables.scss +7 -7
  149. package/lib/cjs/components-react/favorite/FavoritePropertiesRenderer.d.ts +2 -2
  150. package/lib/cjs/components-react/favorite/FavoritePropertiesRenderer.d.ts.map +1 -1
  151. package/lib/cjs/components-react/favorite/FavoritePropertiesRenderer.js.map +1 -1
  152. package/lib/cjs/components-react/favorite/FavoritePropertyList.d.ts +1 -1
  153. package/lib/cjs/components-react/favorite/FavoritePropertyList.d.ts.map +1 -1
  154. package/lib/cjs/components-react/favorite/FavoritePropertyList.js +3 -2
  155. package/lib/cjs/components-react/favorite/FavoritePropertyList.js.map +1 -1
  156. package/lib/cjs/components-react/filter-builder/FilterBuilder.d.ts +4 -4
  157. package/lib/cjs/components-react/filter-builder/FilterBuilder.d.ts.map +1 -1
  158. package/lib/cjs/components-react/filter-builder/FilterBuilder.js.map +1 -1
  159. package/lib/cjs/components-react/filter-builder/FilterBuilderContext.d.ts +4 -4
  160. package/lib/cjs/components-react/filter-builder/FilterBuilderContext.d.ts.map +1 -1
  161. package/lib/cjs/components-react/filter-builder/FilterBuilderContext.js.map +1 -1
  162. package/lib/cjs/components-react/filter-builder/FilterBuilderRule.d.ts +1 -1
  163. package/lib/cjs/components-react/filter-builder/FilterBuilderRule.d.ts.map +1 -1
  164. package/lib/cjs/components-react/filter-builder/FilterBuilderRule.js.map +1 -1
  165. package/lib/cjs/components-react/filter-builder/FilterBuilderRule.scss +38 -38
  166. package/lib/cjs/components-react/filter-builder/FilterBuilderRuleGroup.d.ts +1 -1
  167. package/lib/cjs/components-react/filter-builder/FilterBuilderRuleGroup.d.ts.map +1 -1
  168. package/lib/cjs/components-react/filter-builder/FilterBuilderRuleGroup.js.map +1 -1
  169. package/lib/cjs/components-react/filter-builder/FilterBuilderRuleGroup.scss +68 -68
  170. package/lib/cjs/components-react/filter-builder/FilterBuilderRuleOperator.d.ts +2 -2
  171. package/lib/cjs/components-react/filter-builder/FilterBuilderRuleOperator.d.ts.map +1 -1
  172. package/lib/cjs/components-react/filter-builder/FilterBuilderRuleOperator.js +2 -1
  173. package/lib/cjs/components-react/filter-builder/FilterBuilderRuleOperator.js.map +1 -1
  174. package/lib/cjs/components-react/filter-builder/FilterBuilderRuleProperty.d.ts +1 -1
  175. package/lib/cjs/components-react/filter-builder/FilterBuilderRuleProperty.d.ts.map +1 -1
  176. package/lib/cjs/components-react/filter-builder/FilterBuilderRuleProperty.js +3 -3
  177. package/lib/cjs/components-react/filter-builder/FilterBuilderRuleProperty.js.map +1 -1
  178. package/lib/cjs/components-react/filter-builder/FilterBuilderRuleValue.d.ts +1 -1
  179. package/lib/cjs/components-react/filter-builder/FilterBuilderRuleValue.d.ts.map +1 -1
  180. package/lib/cjs/components-react/filter-builder/FilterBuilderRuleValue.js +1 -1
  181. package/lib/cjs/components-react/filter-builder/FilterBuilderRuleValue.js.map +1 -1
  182. package/lib/cjs/components-react/filter-builder/FilterBuilderState.d.ts +4 -3
  183. package/lib/cjs/components-react/filter-builder/FilterBuilderState.d.ts.map +1 -1
  184. package/lib/cjs/components-react/filter-builder/FilterBuilderState.js.map +1 -1
  185. package/lib/cjs/components-react/filter-builder/Operators.d.ts +1 -1
  186. package/lib/cjs/components-react/filter-builder/Operators.d.ts.map +1 -1
  187. package/lib/cjs/components-react/filter-builder/Operators.js.map +1 -1
  188. package/lib/cjs/components-react/filter-builder/Types.d.ts +2 -2
  189. package/lib/cjs/components-react/filter-builder/Types.d.ts.map +1 -1
  190. package/lib/cjs/components-react/filter-builder/Types.js.map +1 -1
  191. package/lib/cjs/components-react/filtering/FilteringInput.d.ts +2 -2
  192. package/lib/cjs/components-react/filtering/FilteringInput.d.ts.map +1 -1
  193. package/lib/cjs/components-react/filtering/FilteringInput.js.map +1 -1
  194. package/lib/cjs/components-react/filtering/FilteringInput.scss +58 -58
  195. package/lib/cjs/components-react/filtering/ResultSelector.d.ts +1 -1
  196. package/lib/cjs/components-react/filtering/ResultSelector.d.ts.map +1 -1
  197. package/lib/cjs/components-react/filtering/ResultSelector.js.map +1 -1
  198. package/lib/cjs/components-react/filtering/ResultSelector.scss +68 -68
  199. package/lib/cjs/components-react/iconpicker/IconPickerButton.d.ts +1 -1
  200. package/lib/cjs/components-react/iconpicker/IconPickerButton.d.ts.map +1 -1
  201. package/lib/cjs/components-react/iconpicker/IconPickerButton.js.map +1 -1
  202. package/lib/cjs/components-react/iconpicker/IconPickerButton.scss +75 -75
  203. package/lib/cjs/components-react/inputs/ParsedInput.d.ts +2 -2
  204. package/lib/cjs/components-react/inputs/ParsedInput.d.ts.map +1 -1
  205. package/lib/cjs/components-react/inputs/ParsedInput.js.map +1 -1
  206. package/lib/cjs/components-react/inputs/ParsedInput.scss +23 -23
  207. package/lib/cjs/components-react/properties/ItemStyle.d.ts +1 -1
  208. package/lib/cjs/components-react/properties/ItemStyle.d.ts.map +1 -1
  209. package/lib/cjs/components-react/properties/ItemStyle.js.map +1 -1
  210. package/lib/cjs/components-react/properties/LinkHandler.d.ts +1 -1
  211. package/lib/cjs/components-react/properties/LinkHandler.d.ts.map +1 -1
  212. package/lib/cjs/components-react/properties/LinkHandler.js.map +1 -1
  213. package/lib/cjs/components-react/properties/ValueRendererManager.d.ts +3 -3
  214. package/lib/cjs/components-react/properties/ValueRendererManager.d.ts.map +1 -1
  215. package/lib/cjs/components-react/properties/ValueRendererManager.js.map +1 -1
  216. package/lib/cjs/components-react/properties/renderers/ActionButtonList.d.ts +2 -2
  217. package/lib/cjs/components-react/properties/renderers/ActionButtonList.d.ts.map +1 -1
  218. package/lib/cjs/components-react/properties/renderers/ActionButtonList.js.map +1 -1
  219. package/lib/cjs/components-react/properties/renderers/ActionButtonList.scss +25 -25
  220. package/lib/cjs/components-react/properties/renderers/ActionButtonRenderer.d.ts +2 -2
  221. package/lib/cjs/components-react/properties/renderers/ActionButtonRenderer.d.ts.map +1 -1
  222. package/lib/cjs/components-react/properties/renderers/ActionButtonRenderer.js.map +1 -1
  223. package/lib/cjs/components-react/properties/renderers/CommonPropertyRenderer.d.ts +2 -2
  224. package/lib/cjs/components-react/properties/renderers/CommonPropertyRenderer.d.ts.map +1 -1
  225. package/lib/cjs/components-react/properties/renderers/CommonPropertyRenderer.js +4 -3
  226. package/lib/cjs/components-react/properties/renderers/CommonPropertyRenderer.js.map +1 -1
  227. package/lib/cjs/components-react/properties/renderers/NonPrimitivePropertyRenderer.d.ts +1 -1
  228. package/lib/cjs/components-react/properties/renderers/NonPrimitivePropertyRenderer.d.ts.map +1 -1
  229. package/lib/cjs/components-react/properties/renderers/NonPrimitivePropertyRenderer.js +1 -1
  230. package/lib/cjs/components-react/properties/renderers/NonPrimitivePropertyRenderer.js.map +1 -1
  231. package/lib/cjs/components-react/properties/renderers/NonPrimitivePropertyRenderer.scss +17 -17
  232. package/lib/cjs/components-react/properties/renderers/PrimitivePropertyRenderer.d.ts +2 -2
  233. package/lib/cjs/components-react/properties/renderers/PrimitivePropertyRenderer.d.ts.map +1 -1
  234. package/lib/cjs/components-react/properties/renderers/PrimitivePropertyRenderer.js +3 -2
  235. package/lib/cjs/components-react/properties/renderers/PrimitivePropertyRenderer.js.map +1 -1
  236. package/lib/cjs/components-react/properties/renderers/PropertyGridColumns.js.map +1 -1
  237. package/lib/cjs/components-react/properties/renderers/PropertyRenderer.d.ts +7 -7
  238. package/lib/cjs/components-react/properties/renderers/PropertyRenderer.d.ts.map +1 -1
  239. package/lib/cjs/components-react/properties/renderers/PropertyRenderer.js.map +1 -1
  240. package/lib/cjs/components-react/properties/renderers/PropertyView.d.ts +1 -1
  241. package/lib/cjs/components-react/properties/renderers/PropertyView.d.ts.map +1 -1
  242. package/lib/cjs/components-react/properties/renderers/PropertyView.js.map +1 -1
  243. package/lib/cjs/components-react/properties/renderers/PropertyView.scss +111 -106
  244. package/lib/cjs/components-react/properties/renderers/label/NonPrimitivePropertyLabelRenderer.d.ts +1 -1
  245. package/lib/cjs/components-react/properties/renderers/label/NonPrimitivePropertyLabelRenderer.d.ts.map +1 -1
  246. package/lib/cjs/components-react/properties/renderers/label/NonPrimitivePropertyLabelRenderer.js.map +1 -1
  247. package/lib/cjs/components-react/properties/renderers/label/PrimitivePropertyLabelRenderer.d.ts +1 -1
  248. package/lib/cjs/components-react/properties/renderers/label/PrimitivePropertyLabelRenderer.d.ts.map +1 -1
  249. package/lib/cjs/components-react/properties/renderers/label/PrimitivePropertyLabelRenderer.js.map +1 -1
  250. package/lib/cjs/components-react/properties/renderers/label/PropertyLabelRenderer.js +2 -1
  251. package/lib/cjs/components-react/properties/renderers/label/PropertyLabelRenderer.js.map +1 -1
  252. package/lib/cjs/components-react/properties/renderers/label/PropertyLabelRenderer.scss +88 -88
  253. package/lib/cjs/components-react/properties/renderers/value/ArrayPropertyValueRenderer.d.ts +2 -2
  254. package/lib/cjs/components-react/properties/renderers/value/ArrayPropertyValueRenderer.d.ts.map +1 -1
  255. package/lib/cjs/components-react/properties/renderers/value/ArrayPropertyValueRenderer.js.map +1 -1
  256. package/lib/cjs/components-react/properties/renderers/value/DoublePropertyValueRenderer.d.ts +2 -2
  257. package/lib/cjs/components-react/properties/renderers/value/DoublePropertyValueRenderer.d.ts.map +1 -1
  258. package/lib/cjs/components-react/properties/renderers/value/DoublePropertyValueRenderer.js +2 -1
  259. package/lib/cjs/components-react/properties/renderers/value/DoublePropertyValueRenderer.js.map +1 -1
  260. package/lib/cjs/components-react/properties/renderers/value/MergedPropertyValueRenderer.d.ts +2 -2
  261. package/lib/cjs/components-react/properties/renderers/value/MergedPropertyValueRenderer.d.ts.map +1 -1
  262. package/lib/cjs/components-react/properties/renderers/value/MergedPropertyValueRenderer.js.map +1 -1
  263. package/lib/cjs/components-react/properties/renderers/value/MultilineTextPropertyValueRenderer.d.ts +2 -2
  264. package/lib/cjs/components-react/properties/renderers/value/MultilineTextPropertyValueRenderer.d.ts.map +1 -1
  265. package/lib/cjs/components-react/properties/renderers/value/MultilineTextPropertyValueRenderer.js +18 -17
  266. package/lib/cjs/components-react/properties/renderers/value/MultilineTextPropertyValueRenderer.js.map +1 -1
  267. package/lib/cjs/components-react/properties/renderers/value/NavigationPropertyValueRenderer.d.ts +2 -2
  268. package/lib/cjs/components-react/properties/renderers/value/NavigationPropertyValueRenderer.d.ts.map +1 -1
  269. package/lib/cjs/components-react/properties/renderers/value/NavigationPropertyValueRenderer.js +2 -1
  270. package/lib/cjs/components-react/properties/renderers/value/NavigationPropertyValueRenderer.js.map +1 -1
  271. package/lib/cjs/components-react/properties/renderers/value/PrimitivePropertyValueRenderer.d.ts +2 -2
  272. package/lib/cjs/components-react/properties/renderers/value/PrimitivePropertyValueRenderer.d.ts.map +1 -1
  273. package/lib/cjs/components-react/properties/renderers/value/PrimitivePropertyValueRenderer.js +7 -4
  274. package/lib/cjs/components-react/properties/renderers/value/PrimitivePropertyValueRenderer.js.map +1 -1
  275. package/lib/cjs/components-react/properties/renderers/value/StructPropertyValueRenderer.d.ts +2 -2
  276. package/lib/cjs/components-react/properties/renderers/value/StructPropertyValueRenderer.d.ts.map +1 -1
  277. package/lib/cjs/components-react/properties/renderers/value/StructPropertyValueRenderer.js.map +1 -1
  278. package/lib/cjs/components-react/properties/renderers/value/UrlPropertyValueRenderer.d.ts +2 -2
  279. package/lib/cjs/components-react/properties/renderers/value/UrlPropertyValueRenderer.d.ts.map +1 -1
  280. package/lib/cjs/components-react/properties/renderers/value/UrlPropertyValueRenderer.js.map +1 -1
  281. package/lib/cjs/components-react/properties/renderers/value/WithContextStyle.d.ts +1 -1
  282. package/lib/cjs/components-react/properties/renderers/value/WithContextStyle.d.ts.map +1 -1
  283. package/lib/cjs/components-react/properties/renderers/value/WithContextStyle.js.map +1 -1
  284. package/lib/cjs/components-react/properties/renderers/value/table/ArrayValueRenderer.d.ts +1 -1
  285. package/lib/cjs/components-react/properties/renderers/value/table/ArrayValueRenderer.d.ts.map +1 -1
  286. package/lib/cjs/components-react/properties/renderers/value/table/ArrayValueRenderer.js.map +1 -1
  287. package/lib/cjs/components-react/properties/renderers/value/table/NonPrimitiveValueRenderer.d.ts +3 -3
  288. package/lib/cjs/components-react/properties/renderers/value/table/NonPrimitiveValueRenderer.d.ts.map +1 -1
  289. package/lib/cjs/components-react/properties/renderers/value/table/NonPrimitiveValueRenderer.js.map +1 -1
  290. package/lib/cjs/components-react/properties/renderers/value/table/StructValueRenderer.d.ts +1 -1
  291. package/lib/cjs/components-react/properties/renderers/value/table/StructValueRenderer.d.ts.map +1 -1
  292. package/lib/cjs/components-react/properties/renderers/value/table/StructValueRenderer.js.map +1 -1
  293. package/lib/cjs/components-react/propertygrid/PropertyCategoryRendererManager.d.ts +3 -3
  294. package/lib/cjs/components-react/propertygrid/PropertyCategoryRendererManager.d.ts.map +1 -1
  295. package/lib/cjs/components-react/propertygrid/PropertyCategoryRendererManager.js +2 -1
  296. package/lib/cjs/components-react/propertygrid/PropertyCategoryRendererManager.js.map +1 -1
  297. package/lib/cjs/components-react/propertygrid/PropertyDataProvider.d.ts +1 -1
  298. package/lib/cjs/components-react/propertygrid/PropertyDataProvider.d.ts.map +1 -1
  299. package/lib/cjs/components-react/propertygrid/PropertyDataProvider.js.map +1 -1
  300. package/lib/cjs/components-react/propertygrid/SimplePropertyDataProvider.d.ts +6 -1
  301. package/lib/cjs/components-react/propertygrid/SimplePropertyDataProvider.d.ts.map +1 -1
  302. package/lib/cjs/components-react/propertygrid/SimplePropertyDataProvider.js +17 -4
  303. package/lib/cjs/components-react/propertygrid/SimplePropertyDataProvider.js.map +1 -1
  304. package/lib/cjs/components-react/propertygrid/component/ColumnResizingPropertyListPropsSupplier.d.ts +1 -1
  305. package/lib/cjs/components-react/propertygrid/component/ColumnResizingPropertyListPropsSupplier.d.ts.map +1 -1
  306. package/lib/cjs/components-react/propertygrid/component/ColumnResizingPropertyListPropsSupplier.js.map +1 -1
  307. package/lib/cjs/components-react/propertygrid/component/FlatItemNestedBorderWrapper.js.map +1 -1
  308. package/lib/cjs/components-react/propertygrid/component/PropertyCategoryBlock.d.ts +3 -3
  309. package/lib/cjs/components-react/propertygrid/component/PropertyCategoryBlock.d.ts.map +1 -1
  310. package/lib/cjs/components-react/propertygrid/component/PropertyCategoryBlock.js +2 -1
  311. package/lib/cjs/components-react/propertygrid/component/PropertyCategoryBlock.js.map +1 -1
  312. package/lib/cjs/components-react/propertygrid/component/PropertyGrid.scss +73 -73
  313. package/lib/cjs/components-react/propertygrid/component/PropertyGridCommons.d.ts +9 -8
  314. package/lib/cjs/components-react/propertygrid/component/PropertyGridCommons.d.ts.map +1 -1
  315. package/lib/cjs/components-react/propertygrid/component/PropertyGridCommons.js +2 -2
  316. package/lib/cjs/components-react/propertygrid/component/PropertyGridCommons.js.map +1 -1
  317. package/lib/cjs/components-react/propertygrid/component/PropertyGridEventsRelatedPropsSupplier.d.ts +2 -2
  318. package/lib/cjs/components-react/propertygrid/component/PropertyGridEventsRelatedPropsSupplier.d.ts.map +1 -1
  319. package/lib/cjs/components-react/propertygrid/component/PropertyGridEventsRelatedPropsSupplier.js.map +1 -1
  320. package/lib/cjs/components-react/propertygrid/component/PropertyList.d.ts +8 -7
  321. package/lib/cjs/components-react/propertygrid/component/PropertyList.d.ts.map +1 -1
  322. package/lib/cjs/components-react/propertygrid/component/PropertyList.js.map +1 -1
  323. package/lib/cjs/components-react/propertygrid/component/VirtualizedPropertyGrid.d.ts +12 -11
  324. package/lib/cjs/components-react/propertygrid/component/VirtualizedPropertyGrid.d.ts.map +1 -1
  325. package/lib/cjs/components-react/propertygrid/component/VirtualizedPropertyGrid.js +51 -46
  326. package/lib/cjs/components-react/propertygrid/component/VirtualizedPropertyGrid.js.map +1 -1
  327. package/lib/cjs/components-react/propertygrid/component/VirtualizedPropertyGrid.scss +101 -101
  328. package/lib/cjs/components-react/propertygrid/component/VirtualizedPropertyGridWithDataProvider.d.ts +3 -3
  329. package/lib/cjs/components-react/propertygrid/component/VirtualizedPropertyGridWithDataProvider.d.ts.map +1 -1
  330. package/lib/cjs/components-react/propertygrid/component/VirtualizedPropertyGridWithDataProvider.js.map +1 -1
  331. package/lib/cjs/components-react/propertygrid/dataproviders/FilteringDataProvider.d.ts +5 -4
  332. package/lib/cjs/components-react/propertygrid/dataproviders/FilteringDataProvider.d.ts.map +1 -1
  333. package/lib/cjs/components-react/propertygrid/dataproviders/FilteringDataProvider.js +13 -11
  334. package/lib/cjs/components-react/propertygrid/dataproviders/FilteringDataProvider.js.map +1 -1
  335. package/lib/cjs/components-react/propertygrid/dataproviders/filterers/CompositePropertyDataFilterer.d.ts +4 -3
  336. package/lib/cjs/components-react/propertygrid/dataproviders/filterers/CompositePropertyDataFilterer.d.ts.map +1 -1
  337. package/lib/cjs/components-react/propertygrid/dataproviders/filterers/CompositePropertyDataFilterer.js +2 -2
  338. package/lib/cjs/components-react/propertygrid/dataproviders/filterers/CompositePropertyDataFilterer.js.map +1 -1
  339. package/lib/cjs/components-react/propertygrid/dataproviders/filterers/DisplayValuePropertyDataFilterer.d.ts +3 -2
  340. package/lib/cjs/components-react/propertygrid/dataproviders/filterers/DisplayValuePropertyDataFilterer.d.ts.map +1 -1
  341. package/lib/cjs/components-react/propertygrid/dataproviders/filterers/DisplayValuePropertyDataFilterer.js +2 -1
  342. package/lib/cjs/components-react/propertygrid/dataproviders/filterers/DisplayValuePropertyDataFilterer.js.map +1 -1
  343. package/lib/cjs/components-react/propertygrid/dataproviders/filterers/LabelPropertyDataFilterer.d.ts +3 -2
  344. package/lib/cjs/components-react/propertygrid/dataproviders/filterers/LabelPropertyDataFilterer.d.ts.map +1 -1
  345. package/lib/cjs/components-react/propertygrid/dataproviders/filterers/LabelPropertyDataFilterer.js.map +1 -1
  346. package/lib/cjs/components-react/propertygrid/dataproviders/filterers/PropertyCategoryLabelFilterer.d.ts +3 -2
  347. package/lib/cjs/components-react/propertygrid/dataproviders/filterers/PropertyCategoryLabelFilterer.d.ts.map +1 -1
  348. package/lib/cjs/components-react/propertygrid/dataproviders/filterers/PropertyCategoryLabelFilterer.js.map +1 -1
  349. package/lib/cjs/components-react/propertygrid/dataproviders/filterers/PropertyDataFiltererBase.d.ts +2 -2
  350. package/lib/cjs/components-react/propertygrid/dataproviders/filterers/PropertyDataFiltererBase.d.ts.map +1 -1
  351. package/lib/cjs/components-react/propertygrid/dataproviders/filterers/PropertyDataFiltererBase.js.map +1 -1
  352. package/lib/cjs/components-react/propertygrid/internal/PropertyGridEventHandler.d.ts +1 -1
  353. package/lib/cjs/components-react/propertygrid/internal/PropertyGridEventHandler.d.ts.map +1 -1
  354. package/lib/cjs/components-react/propertygrid/internal/PropertyGridEventHandler.js.map +1 -1
  355. package/lib/cjs/components-react/propertygrid/internal/PropertyGridHooks.d.ts +4 -3
  356. package/lib/cjs/components-react/propertygrid/internal/PropertyGridHooks.d.ts.map +1 -1
  357. package/lib/cjs/components-react/propertygrid/internal/PropertyGridHooks.js.map +1 -1
  358. package/lib/cjs/components-react/propertygrid/internal/PropertyGridModel.d.ts +4 -4
  359. package/lib/cjs/components-react/propertygrid/internal/PropertyGridModel.d.ts.map +1 -1
  360. package/lib/cjs/components-react/propertygrid/internal/PropertyGridModel.js.map +1 -1
  361. package/lib/cjs/components-react/propertygrid/internal/PropertyGridModelChangeEvent.js.map +1 -1
  362. package/lib/cjs/components-react/propertygrid/internal/PropertyGridModelSource.d.ts +3 -3
  363. package/lib/cjs/components-react/propertygrid/internal/PropertyGridModelSource.d.ts.map +1 -1
  364. package/lib/cjs/components-react/propertygrid/internal/PropertyGridModelSource.js.map +1 -1
  365. package/lib/cjs/components-react/propertygrid/internal/flat-items/FlatGridItem.d.ts +3 -3
  366. package/lib/cjs/components-react/propertygrid/internal/flat-items/FlatGridItem.d.ts.map +1 -1
  367. package/lib/cjs/components-react/propertygrid/internal/flat-items/FlatGridItem.js.map +1 -1
  368. package/lib/cjs/components-react/propertygrid/internal/flat-items/MutableCategorizedArrayProperty.d.ts +4 -3
  369. package/lib/cjs/components-react/propertygrid/internal/flat-items/MutableCategorizedArrayProperty.d.ts.map +1 -1
  370. package/lib/cjs/components-react/propertygrid/internal/flat-items/MutableCategorizedArrayProperty.js.map +1 -1
  371. package/lib/cjs/components-react/propertygrid/internal/flat-items/MutableCategorizedPrimitiveProperty.d.ts +3 -2
  372. package/lib/cjs/components-react/propertygrid/internal/flat-items/MutableCategorizedPrimitiveProperty.d.ts.map +1 -1
  373. package/lib/cjs/components-react/propertygrid/internal/flat-items/MutableCategorizedPrimitiveProperty.js.map +1 -1
  374. package/lib/cjs/components-react/propertygrid/internal/flat-items/MutableCategorizedStructProperty.d.ts +4 -3
  375. package/lib/cjs/components-react/propertygrid/internal/flat-items/MutableCategorizedStructProperty.d.ts.map +1 -1
  376. package/lib/cjs/components-react/propertygrid/internal/flat-items/MutableCategorizedStructProperty.js.map +1 -1
  377. package/lib/cjs/components-react/propertygrid/internal/flat-items/MutableCustomGridCategory.d.ts +5 -4
  378. package/lib/cjs/components-react/propertygrid/internal/flat-items/MutableCustomGridCategory.d.ts.map +1 -1
  379. package/lib/cjs/components-react/propertygrid/internal/flat-items/MutableCustomGridCategory.js +2 -1
  380. package/lib/cjs/components-react/propertygrid/internal/flat-items/MutableCustomGridCategory.js.map +1 -1
  381. package/lib/cjs/components-react/propertygrid/internal/flat-items/MutableFlatGridItem.d.ts +1 -1
  382. package/lib/cjs/components-react/propertygrid/internal/flat-items/MutableFlatGridItem.d.ts.map +1 -1
  383. package/lib/cjs/components-react/propertygrid/internal/flat-items/MutableFlatGridItem.js +2 -2
  384. package/lib/cjs/components-react/propertygrid/internal/flat-items/MutableFlatGridItem.js.map +1 -1
  385. package/lib/cjs/components-react/propertygrid/internal/flat-items/MutableGridCategory.d.ts +5 -4
  386. package/lib/cjs/components-react/propertygrid/internal/flat-items/MutableGridCategory.d.ts.map +1 -1
  387. package/lib/cjs/components-react/propertygrid/internal/flat-items/MutableGridCategory.js +3 -2
  388. package/lib/cjs/components-react/propertygrid/internal/flat-items/MutableGridCategory.js.map +1 -1
  389. package/lib/cjs/components-react/propertygrid/internal/flat-items/MutableGridItemFactory.d.ts +4 -4
  390. package/lib/cjs/components-react/propertygrid/internal/flat-items/MutableGridItemFactory.d.ts.map +1 -1
  391. package/lib/cjs/components-react/propertygrid/internal/flat-items/MutableGridItemFactory.js +1 -8
  392. package/lib/cjs/components-react/propertygrid/internal/flat-items/MutableGridItemFactory.js.map +1 -1
  393. package/lib/cjs/components-react/propertygrid/internal/flat-properties/FlatNonPrimitivePropertyRenderer.d.ts +1 -1
  394. package/lib/cjs/components-react/propertygrid/internal/flat-properties/FlatNonPrimitivePropertyRenderer.d.ts.map +1 -1
  395. package/lib/cjs/components-react/propertygrid/internal/flat-properties/FlatNonPrimitivePropertyRenderer.js +1 -1
  396. package/lib/cjs/components-react/propertygrid/internal/flat-properties/FlatNonPrimitivePropertyRenderer.js.map +1 -1
  397. package/lib/cjs/components-react/propertygrid/internal/flat-properties/FlatPropertyRenderer.d.ts +5 -5
  398. package/lib/cjs/components-react/propertygrid/internal/flat-properties/FlatPropertyRenderer.d.ts.map +1 -1
  399. package/lib/cjs/components-react/propertygrid/internal/flat-properties/FlatPropertyRenderer.js +7 -5
  400. package/lib/cjs/components-react/propertygrid/internal/flat-properties/FlatPropertyRenderer.js.map +1 -1
  401. package/lib/cjs/components-react/selectable-content/SelectableContent.d.ts.map +1 -1
  402. package/lib/cjs/components-react/selectable-content/SelectableContent.js +3 -2
  403. package/lib/cjs/components-react/selectable-content/SelectableContent.js.map +1 -1
  404. package/lib/cjs/components-react/selectable-content/SelectableContent.scss +20 -20
  405. package/lib/cjs/components-react/toolbar/Item.d.ts +1 -1
  406. package/lib/cjs/components-react/toolbar/Item.d.ts.map +1 -1
  407. package/lib/cjs/components-react/toolbar/Item.js.map +1 -1
  408. package/lib/cjs/components-react/toolbar/Item.scss +91 -91
  409. package/lib/cjs/components-react/toolbar/ItemWrapper.d.ts +1 -1
  410. package/lib/cjs/components-react/toolbar/ItemWrapper.d.ts.map +1 -1
  411. package/lib/cjs/components-react/toolbar/ItemWrapper.js.map +1 -1
  412. package/lib/cjs/components-react/toolbar/ItemWrapper.scss +10 -10
  413. package/lib/cjs/components-react/toolbar/Items.d.ts +2 -2
  414. package/lib/cjs/components-react/toolbar/Items.d.ts.map +1 -1
  415. package/lib/cjs/components-react/toolbar/Items.js.map +1 -1
  416. package/lib/cjs/components-react/toolbar/Items.scss +96 -96
  417. package/lib/cjs/components-react/toolbar/Overflow.d.ts +1 -1
  418. package/lib/cjs/components-react/toolbar/Overflow.d.ts.map +1 -1
  419. package/lib/cjs/components-react/toolbar/Overflow.js.map +1 -1
  420. package/lib/cjs/components-react/toolbar/Overflow.scss +57 -57
  421. package/lib/cjs/components-react/toolbar/OverflowPanel.d.ts +1 -1
  422. package/lib/cjs/components-react/toolbar/OverflowPanel.d.ts.map +1 -1
  423. package/lib/cjs/components-react/toolbar/OverflowPanel.js.map +1 -1
  424. package/lib/cjs/components-react/toolbar/OverflowPanel.scss +37 -37
  425. package/lib/cjs/components-react/toolbar/PopupItem.d.ts +2 -2
  426. package/lib/cjs/components-react/toolbar/PopupItem.d.ts.map +1 -1
  427. package/lib/cjs/components-react/toolbar/PopupItem.js.map +1 -1
  428. package/lib/cjs/components-react/toolbar/PopupItem.scss +88 -88
  429. package/lib/cjs/components-react/toolbar/PopupItemWithDrag.d.ts +3 -2
  430. package/lib/cjs/components-react/toolbar/PopupItemWithDrag.d.ts.map +1 -1
  431. package/lib/cjs/components-react/toolbar/PopupItemWithDrag.js.map +1 -1
  432. package/lib/cjs/components-react/toolbar/PopupItemsPanel.d.ts +1 -1
  433. package/lib/cjs/components-react/toolbar/PopupItemsPanel.d.ts.map +1 -1
  434. package/lib/cjs/components-react/toolbar/PopupItemsPanel.js.map +1 -1
  435. package/lib/cjs/components-react/toolbar/Toolbar.d.ts +2 -2
  436. package/lib/cjs/components-react/toolbar/Toolbar.d.ts.map +1 -1
  437. package/lib/cjs/components-react/toolbar/Toolbar.js.map +1 -1
  438. package/lib/cjs/components-react/toolbar/Toolbar.scss +18 -18
  439. package/lib/cjs/components-react/toolbar/ToolbarWithOverflow.d.ts +2 -2
  440. package/lib/cjs/components-react/toolbar/ToolbarWithOverflow.d.ts.map +1 -1
  441. package/lib/cjs/components-react/toolbar/ToolbarWithOverflow.js +8 -4
  442. package/lib/cjs/components-react/toolbar/ToolbarWithOverflow.js.map +1 -1
  443. package/lib/cjs/components-react/toolbar/_variables.scss +34 -34
  444. package/lib/cjs/components-react/toolbar/groupPanel/BackArrow.d.ts +1 -1
  445. package/lib/cjs/components-react/toolbar/groupPanel/BackArrow.d.ts.map +1 -1
  446. package/lib/cjs/components-react/toolbar/groupPanel/BackArrow.js.map +1 -1
  447. package/lib/cjs/components-react/toolbar/groupPanel/BackArrow.scss +44 -44
  448. package/lib/cjs/components-react/toolbar/groupPanel/Column.d.ts +1 -1
  449. package/lib/cjs/components-react/toolbar/groupPanel/Column.d.ts.map +1 -1
  450. package/lib/cjs/components-react/toolbar/groupPanel/Column.js.map +1 -1
  451. package/lib/cjs/components-react/toolbar/groupPanel/Column.scss +9 -9
  452. package/lib/cjs/components-react/toolbar/groupPanel/Columns.d.ts +1 -1
  453. package/lib/cjs/components-react/toolbar/groupPanel/Columns.d.ts.map +1 -1
  454. package/lib/cjs/components-react/toolbar/groupPanel/Columns.js.map +1 -1
  455. package/lib/cjs/components-react/toolbar/groupPanel/Columns.scss +10 -10
  456. package/lib/cjs/components-react/toolbar/groupPanel/Panel.d.ts +1 -1
  457. package/lib/cjs/components-react/toolbar/groupPanel/Panel.d.ts.map +1 -1
  458. package/lib/cjs/components-react/toolbar/groupPanel/Panel.js.map +1 -1
  459. package/lib/cjs/components-react/toolbar/groupPanel/Panel.scss +15 -15
  460. package/lib/cjs/components-react/toolbar/groupPanel/Title.d.ts +1 -1
  461. package/lib/cjs/components-react/toolbar/groupPanel/Title.d.ts.map +1 -1
  462. package/lib/cjs/components-react/toolbar/groupPanel/Title.js.map +1 -1
  463. package/lib/cjs/components-react/toolbar/groupPanel/Title.scss +33 -33
  464. package/lib/cjs/components-react/toolbar/groupPanel/_variables.scss +16 -16
  465. package/lib/cjs/components-react/toolbar/groupPanel/tool/Expander.d.ts +2 -2
  466. package/lib/cjs/components-react/toolbar/groupPanel/tool/Expander.d.ts.map +1 -1
  467. package/lib/cjs/components-react/toolbar/groupPanel/tool/Expander.js.map +1 -1
  468. package/lib/cjs/components-react/toolbar/groupPanel/tool/Expander.scss +29 -29
  469. package/lib/cjs/components-react/toolbar/groupPanel/tool/Tool.d.ts +2 -2
  470. package/lib/cjs/components-react/toolbar/groupPanel/tool/Tool.d.ts.map +1 -1
  471. package/lib/cjs/components-react/toolbar/groupPanel/tool/Tool.js +3 -1
  472. package/lib/cjs/components-react/toolbar/groupPanel/tool/Tool.js.map +1 -1
  473. package/lib/cjs/components-react/toolbar/groupPanel/tool/Tool.scss +117 -117
  474. package/lib/cjs/components-react/toolbar/groupPanel/tool/_variables.scss +12 -12
  475. package/lib/cjs/components-react/toolbar/useDragInteraction.js.map +1 -1
  476. package/lib/cjs/components-react/toolbar/utilities/Direction.js.map +1 -1
  477. package/lib/cjs/components-react/tree/HighlightingEngine.js.map +1 -1
  478. package/lib/cjs/components-react/tree/HighlightingEngine.scss +7 -7
  479. package/lib/cjs/components-react/tree/ImageLoader.d.ts +2 -2
  480. package/lib/cjs/components-react/tree/ImageLoader.d.ts.map +1 -1
  481. package/lib/cjs/components-react/tree/ImageLoader.js.map +1 -1
  482. package/lib/cjs/components-react/tree/SimpleTreeDataProvider.d.ts +2 -2
  483. package/lib/cjs/components-react/tree/SimpleTreeDataProvider.d.ts.map +1 -1
  484. package/lib/cjs/components-react/tree/SimpleTreeDataProvider.js.map +1 -1
  485. package/lib/cjs/components-react/tree/TreeComponentTestId.js.map +1 -1
  486. package/lib/cjs/components-react/tree/TreeDataProvider.d.ts +4 -4
  487. package/lib/cjs/components-react/tree/TreeDataProvider.d.ts.map +1 -1
  488. package/lib/cjs/components-react/tree/TreeDataProvider.js.map +1 -1
  489. package/lib/cjs/components-react/tree/controlled/Observable.js.map +1 -1
  490. package/lib/cjs/components-react/tree/controlled/TreeActions.d.ts +1 -1
  491. package/lib/cjs/components-react/tree/controlled/TreeActions.d.ts.map +1 -1
  492. package/lib/cjs/components-react/tree/controlled/TreeActions.js.map +1 -1
  493. package/lib/cjs/components-react/tree/controlled/TreeEventDispatcher.d.ts +6 -6
  494. package/lib/cjs/components-react/tree/controlled/TreeEventDispatcher.d.ts.map +1 -1
  495. package/lib/cjs/components-react/tree/controlled/TreeEventDispatcher.js.map +1 -1
  496. package/lib/cjs/components-react/tree/controlled/TreeEventHandler.d.ts +6 -6
  497. package/lib/cjs/components-react/tree/controlled/TreeEventHandler.d.ts.map +1 -1
  498. package/lib/cjs/components-react/tree/controlled/TreeEventHandler.js.map +1 -1
  499. package/lib/cjs/components-react/tree/controlled/TreeEvents.d.ts +3 -3
  500. package/lib/cjs/components-react/tree/controlled/TreeEvents.d.ts.map +1 -1
  501. package/lib/cjs/components-react/tree/controlled/TreeEvents.js.map +1 -1
  502. package/lib/cjs/components-react/tree/controlled/TreeHooks.d.ts +4 -3
  503. package/lib/cjs/components-react/tree/controlled/TreeHooks.d.ts.map +1 -1
  504. package/lib/cjs/components-react/tree/controlled/TreeHooks.js.map +1 -1
  505. package/lib/cjs/components-react/tree/controlled/TreeModel.d.ts +3 -3
  506. package/lib/cjs/components-react/tree/controlled/TreeModel.d.ts.map +1 -1
  507. package/lib/cjs/components-react/tree/controlled/TreeModel.js +7 -4
  508. package/lib/cjs/components-react/tree/controlled/TreeModel.js.map +1 -1
  509. package/lib/cjs/components-react/tree/controlled/TreeModelSource.d.ts +2 -1
  510. package/lib/cjs/components-react/tree/controlled/TreeModelSource.d.ts.map +1 -1
  511. package/lib/cjs/components-react/tree/controlled/TreeModelSource.js.map +1 -1
  512. package/lib/cjs/components-react/tree/controlled/TreeNodeLoader.d.ts +5 -5
  513. package/lib/cjs/components-react/tree/controlled/TreeNodeLoader.d.ts.map +1 -1
  514. package/lib/cjs/components-react/tree/controlled/TreeNodeLoader.js +8 -6
  515. package/lib/cjs/components-react/tree/controlled/TreeNodeLoader.js.map +1 -1
  516. package/lib/cjs/components-react/tree/controlled/component/ControlledTree.d.ts +7 -7
  517. package/lib/cjs/components-react/tree/controlled/component/ControlledTree.d.ts.map +1 -1
  518. package/lib/cjs/components-react/tree/controlled/component/ControlledTree.js.map +1 -1
  519. package/lib/cjs/components-react/tree/controlled/component/ControlledTree.scss +102 -102
  520. package/lib/cjs/components-react/tree/controlled/component/NodeContent.d.ts +5 -5
  521. package/lib/cjs/components-react/tree/controlled/component/NodeContent.d.ts.map +1 -1
  522. package/lib/cjs/components-react/tree/controlled/component/NodeContent.js.map +1 -1
  523. package/lib/cjs/components-react/tree/controlled/component/NodeContent.scss +27 -27
  524. package/lib/cjs/components-react/tree/controlled/component/TreeNodeEditor.d.ts +1 -1
  525. package/lib/cjs/components-react/tree/controlled/component/TreeNodeEditor.d.ts.map +1 -1
  526. package/lib/cjs/components-react/tree/controlled/component/TreeNodeEditor.js.map +1 -1
  527. package/lib/cjs/components-react/tree/controlled/component/TreeNodeRenderer.d.ts +6 -6
  528. package/lib/cjs/components-react/tree/controlled/component/TreeNodeRenderer.d.ts.map +1 -1
  529. package/lib/cjs/components-react/tree/controlled/component/TreeNodeRenderer.js.map +1 -1
  530. package/lib/cjs/components-react/tree/controlled/component/TreeRenderer.d.ts +5 -5
  531. package/lib/cjs/components-react/tree/controlled/component/TreeRenderer.d.ts.map +1 -1
  532. package/lib/cjs/components-react/tree/controlled/component/TreeRenderer.js +3 -23
  533. package/lib/cjs/components-react/tree/controlled/component/TreeRenderer.js.map +1 -1
  534. package/lib/cjs/components-react/tree/controlled/internal/SparseTree.js +2 -1
  535. package/lib/cjs/components-react/tree/controlled/internal/SparseTree.js.map +1 -1
  536. package/lib/cjs/components-react/tree/controlled/internal/TreeModelMutator.d.ts +6 -6
  537. package/lib/cjs/components-react/tree/controlled/internal/TreeModelMutator.d.ts.map +1 -1
  538. package/lib/cjs/components-react/tree/controlled/internal/TreeModelMutator.js.map +1 -1
  539. package/lib/cjs/components-react/tree/controlled/internal/TreeSelectionManager.d.ts +4 -4
  540. package/lib/cjs/components-react/tree/controlled/internal/TreeSelectionManager.d.ts.map +1 -1
  541. package/lib/cjs/components-react/tree/controlled/internal/TreeSelectionManager.js +4 -2
  542. package/lib/cjs/components-react/tree/controlled/internal/TreeSelectionManager.js.map +1 -1
  543. package/lib/cjs/components-react.js.map +1 -1
  544. package/lib/esm/components-react/UiComponents.d.ts +1 -1
  545. package/lib/esm/components-react/UiComponents.d.ts.map +1 -1
  546. package/lib/esm/components-react/UiComponents.js.map +1 -1
  547. package/lib/esm/components-react/_target.scss +9 -9
  548. package/lib/esm/components-react/common/DateUtils.js.map +1 -1
  549. package/lib/esm/components-react/common/DelayedSpinner.d.ts +1 -1
  550. package/lib/esm/components-react/common/DelayedSpinner.d.ts.map +1 -1
  551. package/lib/esm/components-react/common/DelayedSpinner.js +3 -2
  552. package/lib/esm/components-react/common/DelayedSpinner.js.map +1 -1
  553. package/lib/esm/components-react/common/HighlightedText.js.map +1 -1
  554. package/lib/esm/components-react/common/HighlightingComponentProps.js.map +1 -1
  555. package/lib/esm/components-react/common/IImageLoader.js.map +1 -1
  556. package/lib/esm/components-react/common/ImageRenderer.d.ts +1 -1
  557. package/lib/esm/components-react/common/ImageRenderer.d.ts.map +1 -1
  558. package/lib/esm/components-react/common/ImageRenderer.js.map +1 -1
  559. package/lib/esm/components-react/common/Links.js.map +1 -1
  560. package/lib/esm/components-react/common/PageOptions.js.map +1 -1
  561. package/lib/esm/components-react/common/SubscriptionScheduler.d.ts +1 -1
  562. package/lib/esm/components-react/common/SubscriptionScheduler.d.ts.map +1 -1
  563. package/lib/esm/components-react/common/SubscriptionScheduler.js.map +1 -1
  564. package/lib/esm/components-react/common/UseAsyncValue.js.map +1 -1
  565. package/lib/esm/components-react/common/UseContextWithMandatoryProvider.js.map +1 -1
  566. package/lib/esm/components-react/common/UseDebouncedAsyncValue.js +2 -1
  567. package/lib/esm/components-react/common/UseDebouncedAsyncValue.js.map +1 -1
  568. package/lib/esm/components-react/common/UseRerender.js.map +1 -1
  569. package/lib/esm/components-react/common/countMatchesInString.js.map +1 -1
  570. package/lib/esm/components-react/common/selection/SelectionHandler.js.map +1 -1
  571. package/lib/esm/components-react/common/selection/SelectionModes.js.map +1 -1
  572. package/lib/esm/components-react/converters/BooleanTypeConverter.d.ts +1 -1
  573. package/lib/esm/components-react/converters/BooleanTypeConverter.d.ts.map +1 -1
  574. package/lib/esm/components-react/converters/BooleanTypeConverter.js.map +1 -1
  575. package/lib/esm/components-react/converters/CompositeTypeConverter.d.ts +1 -1
  576. package/lib/esm/components-react/converters/CompositeTypeConverter.d.ts.map +1 -1
  577. package/lib/esm/components-react/converters/CompositeTypeConverter.js.map +1 -1
  578. package/lib/esm/components-react/converters/DateTimeTypeConverter.d.ts +5 -3
  579. package/lib/esm/components-react/converters/DateTimeTypeConverter.d.ts.map +1 -1
  580. package/lib/esm/components-react/converters/DateTimeTypeConverter.js.map +1 -1
  581. package/lib/esm/components-react/converters/EnumTypeConverter.d.ts +1 -1
  582. package/lib/esm/components-react/converters/EnumTypeConverter.d.ts.map +1 -1
  583. package/lib/esm/components-react/converters/EnumTypeConverter.js.map +1 -1
  584. package/lib/esm/components-react/converters/HexadecimalTypeConverter.d.ts +1 -1
  585. package/lib/esm/components-react/converters/HexadecimalTypeConverter.d.ts.map +1 -1
  586. package/lib/esm/components-react/converters/HexadecimalTypeConverter.js.map +1 -1
  587. package/lib/esm/components-react/converters/NavigationPropertyTypeConverter.d.ts +1 -1
  588. package/lib/esm/components-react/converters/NavigationPropertyTypeConverter.d.ts.map +1 -1
  589. package/lib/esm/components-react/converters/NavigationPropertyTypeConverter.js.map +1 -1
  590. package/lib/esm/components-react/converters/NumericTypeConverter.d.ts +3 -2
  591. package/lib/esm/components-react/converters/NumericTypeConverter.d.ts.map +1 -1
  592. package/lib/esm/components-react/converters/NumericTypeConverter.js +4 -2
  593. package/lib/esm/components-react/converters/NumericTypeConverter.js.map +1 -1
  594. package/lib/esm/components-react/converters/PointTypeConverter.d.ts +2 -2
  595. package/lib/esm/components-react/converters/PointTypeConverter.d.ts.map +1 -1
  596. package/lib/esm/components-react/converters/PointTypeConverter.js.map +1 -1
  597. package/lib/esm/components-react/converters/StringTypeConverter.d.ts +1 -1
  598. package/lib/esm/components-react/converters/StringTypeConverter.d.ts.map +1 -1
  599. package/lib/esm/components-react/converters/StringTypeConverter.js.map +1 -1
  600. package/lib/esm/components-react/converters/TypeConverter.d.ts +2 -2
  601. package/lib/esm/components-react/converters/TypeConverter.d.ts.map +1 -1
  602. package/lib/esm/components-react/converters/TypeConverter.js +2 -2
  603. package/lib/esm/components-react/converters/TypeConverter.js.map +1 -1
  604. package/lib/esm/components-react/converters/TypeConverterManager.d.ts +1 -1
  605. package/lib/esm/components-react/converters/TypeConverterManager.d.ts.map +1 -1
  606. package/lib/esm/components-react/converters/TypeConverterManager.js.map +1 -1
  607. package/lib/esm/components-react/converters/valuetypes/ConvertedTypes.d.ts +1 -1
  608. package/lib/esm/components-react/converters/valuetypes/ConvertedTypes.d.ts.map +1 -1
  609. package/lib/esm/components-react/converters/valuetypes/ConvertedTypes.js.map +1 -1
  610. package/lib/esm/components-react/datepicker/DateField.d.ts +3 -2
  611. package/lib/esm/components-react/datepicker/DateField.d.ts.map +1 -1
  612. package/lib/esm/components-react/datepicker/DateField.js.map +1 -1
  613. package/lib/esm/components-react/datepicker/DateField.scss +22 -22
  614. package/lib/esm/components-react/datepicker/DatePicker.js.map +1 -1
  615. package/lib/esm/components-react/datepicker/DatePicker.scss +176 -176
  616. package/lib/esm/components-react/datepicker/DatePickerPopupButton.d.ts +2 -2
  617. package/lib/esm/components-react/datepicker/DatePickerPopupButton.d.ts.map +1 -1
  618. package/lib/esm/components-react/datepicker/DatePickerPopupButton.js.map +1 -1
  619. package/lib/esm/components-react/datepicker/DatePickerPopupButton.scss +57 -57
  620. package/lib/esm/components-react/datepicker/IntlFormatter.d.ts +1 -1
  621. package/lib/esm/components-react/datepicker/IntlFormatter.d.ts.map +1 -1
  622. package/lib/esm/components-react/datepicker/IntlFormatter.js.map +1 -1
  623. package/lib/esm/components-react/datepicker/TimeField.d.ts +1 -1
  624. package/lib/esm/components-react/datepicker/TimeField.d.ts.map +1 -1
  625. package/lib/esm/components-react/datepicker/TimeField.js.map +1 -1
  626. package/lib/esm/components-react/datepicker/TimeField.scss +76 -76
  627. package/lib/esm/components-react/editors/BooleanEditor.d.ts +2 -2
  628. package/lib/esm/components-react/editors/BooleanEditor.d.ts.map +1 -1
  629. package/lib/esm/components-react/editors/BooleanEditor.js.map +1 -1
  630. package/lib/esm/components-react/editors/BooleanEditor.scss +22 -22
  631. package/lib/esm/components-react/editors/CustomNumberEditor.d.ts +2 -2
  632. package/lib/esm/components-react/editors/CustomNumberEditor.d.ts.map +1 -1
  633. package/lib/esm/components-react/editors/CustomNumberEditor.js +4 -2
  634. package/lib/esm/components-react/editors/CustomNumberEditor.js.map +1 -1
  635. package/lib/esm/components-react/editors/CustomNumberEditor.scss +20 -20
  636. package/lib/esm/components-react/editors/DateTimeEditor.d.ts +4 -3
  637. package/lib/esm/components-react/editors/DateTimeEditor.d.ts.map +1 -1
  638. package/lib/esm/components-react/editors/DateTimeEditor.js +3 -2
  639. package/lib/esm/components-react/editors/DateTimeEditor.js.map +1 -1
  640. package/lib/esm/components-react/editors/DateTimeEditor.scss +9 -9
  641. package/lib/esm/components-react/editors/EditorContainer.d.ts +2 -2
  642. package/lib/esm/components-react/editors/EditorContainer.d.ts.map +1 -1
  643. package/lib/esm/components-react/editors/EditorContainer.js.map +1 -1
  644. package/lib/esm/components-react/editors/EditorContainer.scss +6 -6
  645. package/lib/esm/components-react/editors/EnumButtonGroupEditor.d.ts +2 -2
  646. package/lib/esm/components-react/editors/EnumButtonGroupEditor.d.ts.map +1 -1
  647. package/lib/esm/components-react/editors/EnumButtonGroupEditor.js.map +1 -1
  648. package/lib/esm/components-react/editors/EnumButtonGroupEditor.scss +141 -141
  649. package/lib/esm/components-react/editors/EnumEditor.d.ts +3 -3
  650. package/lib/esm/components-react/editors/EnumEditor.d.ts.map +1 -1
  651. package/lib/esm/components-react/editors/EnumEditor.js.map +1 -1
  652. package/lib/esm/components-react/editors/EnumEditor.scss +22 -22
  653. package/lib/esm/components-react/editors/IconEditor.d.ts +2 -2
  654. package/lib/esm/components-react/editors/IconEditor.d.ts.map +1 -1
  655. package/lib/esm/components-react/editors/IconEditor.js.map +1 -1
  656. package/lib/esm/components-react/editors/IconEditor.scss +16 -16
  657. package/lib/esm/components-react/editors/ImageCheckBoxEditor.d.ts +2 -2
  658. package/lib/esm/components-react/editors/ImageCheckBoxEditor.d.ts.map +1 -1
  659. package/lib/esm/components-react/editors/ImageCheckBoxEditor.js.map +1 -1
  660. package/lib/esm/components-react/editors/ImageCheckBoxEditor.scss +24 -24
  661. package/lib/esm/components-react/editors/NumericInputEditor.d.ts +2 -2
  662. package/lib/esm/components-react/editors/NumericInputEditor.d.ts.map +1 -1
  663. package/lib/esm/components-react/editors/NumericInputEditor.js.map +1 -1
  664. package/lib/esm/components-react/editors/NumericInputEditor.scss +16 -16
  665. package/lib/esm/components-react/editors/PopupButton.d.ts +1 -1
  666. package/lib/esm/components-react/editors/PopupButton.d.ts.map +1 -1
  667. package/lib/esm/components-react/editors/PopupButton.js +4 -3
  668. package/lib/esm/components-react/editors/PopupButton.js.map +1 -1
  669. package/lib/esm/components-react/editors/PopupButton.scss +116 -116
  670. package/lib/esm/components-react/editors/PropertyEditorManager.d.ts +1 -1
  671. package/lib/esm/components-react/editors/PropertyEditorManager.d.ts.map +1 -1
  672. package/lib/esm/components-react/editors/PropertyEditorManager.js.map +1 -1
  673. package/lib/esm/components-react/editors/SliderEditor.d.ts +2 -2
  674. package/lib/esm/components-react/editors/SliderEditor.d.ts.map +1 -1
  675. package/lib/esm/components-react/editors/SliderEditor.js.map +1 -1
  676. package/lib/esm/components-react/editors/SliderEditor.scss +13 -13
  677. package/lib/esm/components-react/editors/TextEditor.d.ts +2 -2
  678. package/lib/esm/components-react/editors/TextEditor.d.ts.map +1 -1
  679. package/lib/esm/components-react/editors/TextEditor.js +4 -2
  680. package/lib/esm/components-react/editors/TextEditor.js.map +1 -1
  681. package/lib/esm/components-react/editors/TextEditor.scss +20 -20
  682. package/lib/esm/components-react/editors/TextareaEditor.d.ts +2 -2
  683. package/lib/esm/components-react/editors/TextareaEditor.d.ts.map +1 -1
  684. package/lib/esm/components-react/editors/TextareaEditor.js.map +1 -1
  685. package/lib/esm/components-react/editors/TextareaEditor.scss +14 -14
  686. package/lib/esm/components-react/editors/ToggleEditor.d.ts +2 -2
  687. package/lib/esm/components-react/editors/ToggleEditor.d.ts.map +1 -1
  688. package/lib/esm/components-react/editors/ToggleEditor.js.map +1 -1
  689. package/lib/esm/components-react/editors/ToggleEditor.scss +23 -23
  690. package/lib/esm/components-react/editors/variables.scss +7 -7
  691. package/lib/esm/components-react/favorite/FavoritePropertiesRenderer.d.ts +2 -2
  692. package/lib/esm/components-react/favorite/FavoritePropertiesRenderer.d.ts.map +1 -1
  693. package/lib/esm/components-react/favorite/FavoritePropertiesRenderer.js.map +1 -1
  694. package/lib/esm/components-react/favorite/FavoritePropertyList.d.ts +1 -1
  695. package/lib/esm/components-react/favorite/FavoritePropertyList.d.ts.map +1 -1
  696. package/lib/esm/components-react/favorite/FavoritePropertyList.js +3 -2
  697. package/lib/esm/components-react/favorite/FavoritePropertyList.js.map +1 -1
  698. package/lib/esm/components-react/filter-builder/FilterBuilder.d.ts +4 -4
  699. package/lib/esm/components-react/filter-builder/FilterBuilder.d.ts.map +1 -1
  700. package/lib/esm/components-react/filter-builder/FilterBuilder.js.map +1 -1
  701. package/lib/esm/components-react/filter-builder/FilterBuilderContext.d.ts +4 -4
  702. package/lib/esm/components-react/filter-builder/FilterBuilderContext.d.ts.map +1 -1
  703. package/lib/esm/components-react/filter-builder/FilterBuilderContext.js.map +1 -1
  704. package/lib/esm/components-react/filter-builder/FilterBuilderRule.d.ts +1 -1
  705. package/lib/esm/components-react/filter-builder/FilterBuilderRule.d.ts.map +1 -1
  706. package/lib/esm/components-react/filter-builder/FilterBuilderRule.js.map +1 -1
  707. package/lib/esm/components-react/filter-builder/FilterBuilderRule.scss +38 -38
  708. package/lib/esm/components-react/filter-builder/FilterBuilderRuleGroup.d.ts +1 -1
  709. package/lib/esm/components-react/filter-builder/FilterBuilderRuleGroup.d.ts.map +1 -1
  710. package/lib/esm/components-react/filter-builder/FilterBuilderRuleGroup.js.map +1 -1
  711. package/lib/esm/components-react/filter-builder/FilterBuilderRuleGroup.scss +68 -68
  712. package/lib/esm/components-react/filter-builder/FilterBuilderRuleOperator.d.ts +2 -2
  713. package/lib/esm/components-react/filter-builder/FilterBuilderRuleOperator.d.ts.map +1 -1
  714. package/lib/esm/components-react/filter-builder/FilterBuilderRuleOperator.js +2 -1
  715. package/lib/esm/components-react/filter-builder/FilterBuilderRuleOperator.js.map +1 -1
  716. package/lib/esm/components-react/filter-builder/FilterBuilderRuleProperty.d.ts +1 -1
  717. package/lib/esm/components-react/filter-builder/FilterBuilderRuleProperty.d.ts.map +1 -1
  718. package/lib/esm/components-react/filter-builder/FilterBuilderRuleProperty.js +3 -3
  719. package/lib/esm/components-react/filter-builder/FilterBuilderRuleProperty.js.map +1 -1
  720. package/lib/esm/components-react/filter-builder/FilterBuilderRuleValue.d.ts +1 -1
  721. package/lib/esm/components-react/filter-builder/FilterBuilderRuleValue.d.ts.map +1 -1
  722. package/lib/esm/components-react/filter-builder/FilterBuilderRuleValue.js +1 -1
  723. package/lib/esm/components-react/filter-builder/FilterBuilderRuleValue.js.map +1 -1
  724. package/lib/esm/components-react/filter-builder/FilterBuilderState.d.ts +4 -3
  725. package/lib/esm/components-react/filter-builder/FilterBuilderState.d.ts.map +1 -1
  726. package/lib/esm/components-react/filter-builder/FilterBuilderState.js.map +1 -1
  727. package/lib/esm/components-react/filter-builder/Operators.d.ts +1 -1
  728. package/lib/esm/components-react/filter-builder/Operators.d.ts.map +1 -1
  729. package/lib/esm/components-react/filter-builder/Operators.js.map +1 -1
  730. package/lib/esm/components-react/filter-builder/Types.d.ts +2 -2
  731. package/lib/esm/components-react/filter-builder/Types.d.ts.map +1 -1
  732. package/lib/esm/components-react/filter-builder/Types.js.map +1 -1
  733. package/lib/esm/components-react/filtering/FilteringInput.d.ts +2 -2
  734. package/lib/esm/components-react/filtering/FilteringInput.d.ts.map +1 -1
  735. package/lib/esm/components-react/filtering/FilteringInput.js.map +1 -1
  736. package/lib/esm/components-react/filtering/FilteringInput.scss +58 -58
  737. package/lib/esm/components-react/filtering/ResultSelector.d.ts +1 -1
  738. package/lib/esm/components-react/filtering/ResultSelector.d.ts.map +1 -1
  739. package/lib/esm/components-react/filtering/ResultSelector.js.map +1 -1
  740. package/lib/esm/components-react/filtering/ResultSelector.scss +68 -68
  741. package/lib/esm/components-react/iconpicker/IconPickerButton.d.ts +1 -1
  742. package/lib/esm/components-react/iconpicker/IconPickerButton.d.ts.map +1 -1
  743. package/lib/esm/components-react/iconpicker/IconPickerButton.js.map +1 -1
  744. package/lib/esm/components-react/iconpicker/IconPickerButton.scss +75 -75
  745. package/lib/esm/components-react/inputs/ParsedInput.d.ts +2 -2
  746. package/lib/esm/components-react/inputs/ParsedInput.d.ts.map +1 -1
  747. package/lib/esm/components-react/inputs/ParsedInput.js.map +1 -1
  748. package/lib/esm/components-react/inputs/ParsedInput.scss +23 -23
  749. package/lib/esm/components-react/properties/ItemStyle.d.ts +1 -1
  750. package/lib/esm/components-react/properties/ItemStyle.d.ts.map +1 -1
  751. package/lib/esm/components-react/properties/ItemStyle.js.map +1 -1
  752. package/lib/esm/components-react/properties/LinkHandler.d.ts +1 -1
  753. package/lib/esm/components-react/properties/LinkHandler.d.ts.map +1 -1
  754. package/lib/esm/components-react/properties/LinkHandler.js.map +1 -1
  755. package/lib/esm/components-react/properties/ValueRendererManager.d.ts +3 -3
  756. package/lib/esm/components-react/properties/ValueRendererManager.d.ts.map +1 -1
  757. package/lib/esm/components-react/properties/ValueRendererManager.js.map +1 -1
  758. package/lib/esm/components-react/properties/renderers/ActionButtonList.d.ts +2 -2
  759. package/lib/esm/components-react/properties/renderers/ActionButtonList.d.ts.map +1 -1
  760. package/lib/esm/components-react/properties/renderers/ActionButtonList.js.map +1 -1
  761. package/lib/esm/components-react/properties/renderers/ActionButtonList.scss +25 -25
  762. package/lib/esm/components-react/properties/renderers/ActionButtonRenderer.d.ts +2 -2
  763. package/lib/esm/components-react/properties/renderers/ActionButtonRenderer.d.ts.map +1 -1
  764. package/lib/esm/components-react/properties/renderers/ActionButtonRenderer.js.map +1 -1
  765. package/lib/esm/components-react/properties/renderers/CommonPropertyRenderer.d.ts +2 -2
  766. package/lib/esm/components-react/properties/renderers/CommonPropertyRenderer.d.ts.map +1 -1
  767. package/lib/esm/components-react/properties/renderers/CommonPropertyRenderer.js +4 -3
  768. package/lib/esm/components-react/properties/renderers/CommonPropertyRenderer.js.map +1 -1
  769. package/lib/esm/components-react/properties/renderers/NonPrimitivePropertyRenderer.d.ts +1 -1
  770. package/lib/esm/components-react/properties/renderers/NonPrimitivePropertyRenderer.d.ts.map +1 -1
  771. package/lib/esm/components-react/properties/renderers/NonPrimitivePropertyRenderer.js +1 -1
  772. package/lib/esm/components-react/properties/renderers/NonPrimitivePropertyRenderer.js.map +1 -1
  773. package/lib/esm/components-react/properties/renderers/NonPrimitivePropertyRenderer.scss +17 -17
  774. package/lib/esm/components-react/properties/renderers/PrimitivePropertyRenderer.d.ts +2 -2
  775. package/lib/esm/components-react/properties/renderers/PrimitivePropertyRenderer.d.ts.map +1 -1
  776. package/lib/esm/components-react/properties/renderers/PrimitivePropertyRenderer.js +3 -2
  777. package/lib/esm/components-react/properties/renderers/PrimitivePropertyRenderer.js.map +1 -1
  778. package/lib/esm/components-react/properties/renderers/PropertyGridColumns.js.map +1 -1
  779. package/lib/esm/components-react/properties/renderers/PropertyRenderer.d.ts +7 -7
  780. package/lib/esm/components-react/properties/renderers/PropertyRenderer.d.ts.map +1 -1
  781. package/lib/esm/components-react/properties/renderers/PropertyRenderer.js.map +1 -1
  782. package/lib/esm/components-react/properties/renderers/PropertyView.d.ts +1 -1
  783. package/lib/esm/components-react/properties/renderers/PropertyView.d.ts.map +1 -1
  784. package/lib/esm/components-react/properties/renderers/PropertyView.js.map +1 -1
  785. package/lib/esm/components-react/properties/renderers/PropertyView.scss +111 -106
  786. package/lib/esm/components-react/properties/renderers/label/NonPrimitivePropertyLabelRenderer.d.ts +1 -1
  787. package/lib/esm/components-react/properties/renderers/label/NonPrimitivePropertyLabelRenderer.d.ts.map +1 -1
  788. package/lib/esm/components-react/properties/renderers/label/NonPrimitivePropertyLabelRenderer.js.map +1 -1
  789. package/lib/esm/components-react/properties/renderers/label/PrimitivePropertyLabelRenderer.d.ts +1 -1
  790. package/lib/esm/components-react/properties/renderers/label/PrimitivePropertyLabelRenderer.d.ts.map +1 -1
  791. package/lib/esm/components-react/properties/renderers/label/PrimitivePropertyLabelRenderer.js.map +1 -1
  792. package/lib/esm/components-react/properties/renderers/label/PropertyLabelRenderer.js +2 -1
  793. package/lib/esm/components-react/properties/renderers/label/PropertyLabelRenderer.js.map +1 -1
  794. package/lib/esm/components-react/properties/renderers/label/PropertyLabelRenderer.scss +88 -88
  795. package/lib/esm/components-react/properties/renderers/value/ArrayPropertyValueRenderer.d.ts +2 -2
  796. package/lib/esm/components-react/properties/renderers/value/ArrayPropertyValueRenderer.d.ts.map +1 -1
  797. package/lib/esm/components-react/properties/renderers/value/ArrayPropertyValueRenderer.js.map +1 -1
  798. package/lib/esm/components-react/properties/renderers/value/DoublePropertyValueRenderer.d.ts +2 -2
  799. package/lib/esm/components-react/properties/renderers/value/DoublePropertyValueRenderer.d.ts.map +1 -1
  800. package/lib/esm/components-react/properties/renderers/value/DoublePropertyValueRenderer.js +2 -1
  801. package/lib/esm/components-react/properties/renderers/value/DoublePropertyValueRenderer.js.map +1 -1
  802. package/lib/esm/components-react/properties/renderers/value/MergedPropertyValueRenderer.d.ts +2 -2
  803. package/lib/esm/components-react/properties/renderers/value/MergedPropertyValueRenderer.d.ts.map +1 -1
  804. package/lib/esm/components-react/properties/renderers/value/MergedPropertyValueRenderer.js.map +1 -1
  805. package/lib/esm/components-react/properties/renderers/value/MultilineTextPropertyValueRenderer.d.ts +2 -2
  806. package/lib/esm/components-react/properties/renderers/value/MultilineTextPropertyValueRenderer.d.ts.map +1 -1
  807. package/lib/esm/components-react/properties/renderers/value/MultilineTextPropertyValueRenderer.js +16 -18
  808. package/lib/esm/components-react/properties/renderers/value/MultilineTextPropertyValueRenderer.js.map +1 -1
  809. package/lib/esm/components-react/properties/renderers/value/NavigationPropertyValueRenderer.d.ts +2 -2
  810. package/lib/esm/components-react/properties/renderers/value/NavigationPropertyValueRenderer.d.ts.map +1 -1
  811. package/lib/esm/components-react/properties/renderers/value/NavigationPropertyValueRenderer.js +2 -1
  812. package/lib/esm/components-react/properties/renderers/value/NavigationPropertyValueRenderer.js.map +1 -1
  813. package/lib/esm/components-react/properties/renderers/value/PrimitivePropertyValueRenderer.d.ts +2 -2
  814. package/lib/esm/components-react/properties/renderers/value/PrimitivePropertyValueRenderer.d.ts.map +1 -1
  815. package/lib/esm/components-react/properties/renderers/value/PrimitivePropertyValueRenderer.js +7 -4
  816. package/lib/esm/components-react/properties/renderers/value/PrimitivePropertyValueRenderer.js.map +1 -1
  817. package/lib/esm/components-react/properties/renderers/value/StructPropertyValueRenderer.d.ts +2 -2
  818. package/lib/esm/components-react/properties/renderers/value/StructPropertyValueRenderer.d.ts.map +1 -1
  819. package/lib/esm/components-react/properties/renderers/value/StructPropertyValueRenderer.js.map +1 -1
  820. package/lib/esm/components-react/properties/renderers/value/UrlPropertyValueRenderer.d.ts +2 -2
  821. package/lib/esm/components-react/properties/renderers/value/UrlPropertyValueRenderer.d.ts.map +1 -1
  822. package/lib/esm/components-react/properties/renderers/value/UrlPropertyValueRenderer.js.map +1 -1
  823. package/lib/esm/components-react/properties/renderers/value/WithContextStyle.d.ts +1 -1
  824. package/lib/esm/components-react/properties/renderers/value/WithContextStyle.d.ts.map +1 -1
  825. package/lib/esm/components-react/properties/renderers/value/WithContextStyle.js.map +1 -1
  826. package/lib/esm/components-react/properties/renderers/value/table/ArrayValueRenderer.d.ts +1 -1
  827. package/lib/esm/components-react/properties/renderers/value/table/ArrayValueRenderer.d.ts.map +1 -1
  828. package/lib/esm/components-react/properties/renderers/value/table/ArrayValueRenderer.js.map +1 -1
  829. package/lib/esm/components-react/properties/renderers/value/table/NonPrimitiveValueRenderer.d.ts +3 -3
  830. package/lib/esm/components-react/properties/renderers/value/table/NonPrimitiveValueRenderer.d.ts.map +1 -1
  831. package/lib/esm/components-react/properties/renderers/value/table/NonPrimitiveValueRenderer.js.map +1 -1
  832. package/lib/esm/components-react/properties/renderers/value/table/StructValueRenderer.d.ts +1 -1
  833. package/lib/esm/components-react/properties/renderers/value/table/StructValueRenderer.d.ts.map +1 -1
  834. package/lib/esm/components-react/properties/renderers/value/table/StructValueRenderer.js.map +1 -1
  835. package/lib/esm/components-react/propertygrid/PropertyCategoryRendererManager.d.ts +3 -3
  836. package/lib/esm/components-react/propertygrid/PropertyCategoryRendererManager.d.ts.map +1 -1
  837. package/lib/esm/components-react/propertygrid/PropertyCategoryRendererManager.js +2 -1
  838. package/lib/esm/components-react/propertygrid/PropertyCategoryRendererManager.js.map +1 -1
  839. package/lib/esm/components-react/propertygrid/PropertyDataProvider.d.ts +1 -1
  840. package/lib/esm/components-react/propertygrid/PropertyDataProvider.d.ts.map +1 -1
  841. package/lib/esm/components-react/propertygrid/PropertyDataProvider.js.map +1 -1
  842. package/lib/esm/components-react/propertygrid/SimplePropertyDataProvider.d.ts +6 -1
  843. package/lib/esm/components-react/propertygrid/SimplePropertyDataProvider.d.ts.map +1 -1
  844. package/lib/esm/components-react/propertygrid/SimplePropertyDataProvider.js +17 -4
  845. package/lib/esm/components-react/propertygrid/SimplePropertyDataProvider.js.map +1 -1
  846. package/lib/esm/components-react/propertygrid/component/ColumnResizingPropertyListPropsSupplier.d.ts +1 -1
  847. package/lib/esm/components-react/propertygrid/component/ColumnResizingPropertyListPropsSupplier.d.ts.map +1 -1
  848. package/lib/esm/components-react/propertygrid/component/ColumnResizingPropertyListPropsSupplier.js.map +1 -1
  849. package/lib/esm/components-react/propertygrid/component/FlatItemNestedBorderWrapper.js.map +1 -1
  850. package/lib/esm/components-react/propertygrid/component/PropertyCategoryBlock.d.ts +3 -3
  851. package/lib/esm/components-react/propertygrid/component/PropertyCategoryBlock.d.ts.map +1 -1
  852. package/lib/esm/components-react/propertygrid/component/PropertyCategoryBlock.js +2 -1
  853. package/lib/esm/components-react/propertygrid/component/PropertyCategoryBlock.js.map +1 -1
  854. package/lib/esm/components-react/propertygrid/component/PropertyGrid.scss +73 -73
  855. package/lib/esm/components-react/propertygrid/component/PropertyGridCommons.d.ts +9 -8
  856. package/lib/esm/components-react/propertygrid/component/PropertyGridCommons.d.ts.map +1 -1
  857. package/lib/esm/components-react/propertygrid/component/PropertyGridCommons.js +2 -2
  858. package/lib/esm/components-react/propertygrid/component/PropertyGridCommons.js.map +1 -1
  859. package/lib/esm/components-react/propertygrid/component/PropertyGridEventsRelatedPropsSupplier.d.ts +2 -2
  860. package/lib/esm/components-react/propertygrid/component/PropertyGridEventsRelatedPropsSupplier.d.ts.map +1 -1
  861. package/lib/esm/components-react/propertygrid/component/PropertyGridEventsRelatedPropsSupplier.js.map +1 -1
  862. package/lib/esm/components-react/propertygrid/component/PropertyList.d.ts +8 -7
  863. package/lib/esm/components-react/propertygrid/component/PropertyList.d.ts.map +1 -1
  864. package/lib/esm/components-react/propertygrid/component/PropertyList.js.map +1 -1
  865. package/lib/esm/components-react/propertygrid/component/VirtualizedPropertyGrid.d.ts +12 -11
  866. package/lib/esm/components-react/propertygrid/component/VirtualizedPropertyGrid.d.ts.map +1 -1
  867. package/lib/esm/components-react/propertygrid/component/VirtualizedPropertyGrid.js +51 -46
  868. package/lib/esm/components-react/propertygrid/component/VirtualizedPropertyGrid.js.map +1 -1
  869. package/lib/esm/components-react/propertygrid/component/VirtualizedPropertyGrid.scss +101 -101
  870. package/lib/esm/components-react/propertygrid/component/VirtualizedPropertyGridWithDataProvider.d.ts +3 -3
  871. package/lib/esm/components-react/propertygrid/component/VirtualizedPropertyGridWithDataProvider.d.ts.map +1 -1
  872. package/lib/esm/components-react/propertygrid/component/VirtualizedPropertyGridWithDataProvider.js.map +1 -1
  873. package/lib/esm/components-react/propertygrid/dataproviders/FilteringDataProvider.d.ts +5 -4
  874. package/lib/esm/components-react/propertygrid/dataproviders/FilteringDataProvider.d.ts.map +1 -1
  875. package/lib/esm/components-react/propertygrid/dataproviders/FilteringDataProvider.js +13 -11
  876. package/lib/esm/components-react/propertygrid/dataproviders/FilteringDataProvider.js.map +1 -1
  877. package/lib/esm/components-react/propertygrid/dataproviders/filterers/CompositePropertyDataFilterer.d.ts +4 -3
  878. package/lib/esm/components-react/propertygrid/dataproviders/filterers/CompositePropertyDataFilterer.d.ts.map +1 -1
  879. package/lib/esm/components-react/propertygrid/dataproviders/filterers/CompositePropertyDataFilterer.js +2 -2
  880. package/lib/esm/components-react/propertygrid/dataproviders/filterers/CompositePropertyDataFilterer.js.map +1 -1
  881. package/lib/esm/components-react/propertygrid/dataproviders/filterers/DisplayValuePropertyDataFilterer.d.ts +3 -2
  882. package/lib/esm/components-react/propertygrid/dataproviders/filterers/DisplayValuePropertyDataFilterer.d.ts.map +1 -1
  883. package/lib/esm/components-react/propertygrid/dataproviders/filterers/DisplayValuePropertyDataFilterer.js +2 -1
  884. package/lib/esm/components-react/propertygrid/dataproviders/filterers/DisplayValuePropertyDataFilterer.js.map +1 -1
  885. package/lib/esm/components-react/propertygrid/dataproviders/filterers/LabelPropertyDataFilterer.d.ts +3 -2
  886. package/lib/esm/components-react/propertygrid/dataproviders/filterers/LabelPropertyDataFilterer.d.ts.map +1 -1
  887. package/lib/esm/components-react/propertygrid/dataproviders/filterers/LabelPropertyDataFilterer.js.map +1 -1
  888. package/lib/esm/components-react/propertygrid/dataproviders/filterers/PropertyCategoryLabelFilterer.d.ts +3 -2
  889. package/lib/esm/components-react/propertygrid/dataproviders/filterers/PropertyCategoryLabelFilterer.d.ts.map +1 -1
  890. package/lib/esm/components-react/propertygrid/dataproviders/filterers/PropertyCategoryLabelFilterer.js.map +1 -1
  891. package/lib/esm/components-react/propertygrid/dataproviders/filterers/PropertyDataFiltererBase.d.ts +2 -2
  892. package/lib/esm/components-react/propertygrid/dataproviders/filterers/PropertyDataFiltererBase.d.ts.map +1 -1
  893. package/lib/esm/components-react/propertygrid/dataproviders/filterers/PropertyDataFiltererBase.js.map +1 -1
  894. package/lib/esm/components-react/propertygrid/internal/PropertyGridEventHandler.d.ts +1 -1
  895. package/lib/esm/components-react/propertygrid/internal/PropertyGridEventHandler.d.ts.map +1 -1
  896. package/lib/esm/components-react/propertygrid/internal/PropertyGridEventHandler.js.map +1 -1
  897. package/lib/esm/components-react/propertygrid/internal/PropertyGridHooks.d.ts +4 -3
  898. package/lib/esm/components-react/propertygrid/internal/PropertyGridHooks.d.ts.map +1 -1
  899. package/lib/esm/components-react/propertygrid/internal/PropertyGridHooks.js.map +1 -1
  900. package/lib/esm/components-react/propertygrid/internal/PropertyGridModel.d.ts +4 -4
  901. package/lib/esm/components-react/propertygrid/internal/PropertyGridModel.d.ts.map +1 -1
  902. package/lib/esm/components-react/propertygrid/internal/PropertyGridModel.js.map +1 -1
  903. package/lib/esm/components-react/propertygrid/internal/PropertyGridModelChangeEvent.js.map +1 -1
  904. package/lib/esm/components-react/propertygrid/internal/PropertyGridModelSource.d.ts +3 -3
  905. package/lib/esm/components-react/propertygrid/internal/PropertyGridModelSource.d.ts.map +1 -1
  906. package/lib/esm/components-react/propertygrid/internal/PropertyGridModelSource.js.map +1 -1
  907. package/lib/esm/components-react/propertygrid/internal/flat-items/FlatGridItem.d.ts +3 -3
  908. package/lib/esm/components-react/propertygrid/internal/flat-items/FlatGridItem.d.ts.map +1 -1
  909. package/lib/esm/components-react/propertygrid/internal/flat-items/FlatGridItem.js.map +1 -1
  910. package/lib/esm/components-react/propertygrid/internal/flat-items/MutableCategorizedArrayProperty.d.ts +4 -3
  911. package/lib/esm/components-react/propertygrid/internal/flat-items/MutableCategorizedArrayProperty.d.ts.map +1 -1
  912. package/lib/esm/components-react/propertygrid/internal/flat-items/MutableCategorizedArrayProperty.js.map +1 -1
  913. package/lib/esm/components-react/propertygrid/internal/flat-items/MutableCategorizedPrimitiveProperty.d.ts +3 -2
  914. package/lib/esm/components-react/propertygrid/internal/flat-items/MutableCategorizedPrimitiveProperty.d.ts.map +1 -1
  915. package/lib/esm/components-react/propertygrid/internal/flat-items/MutableCategorizedPrimitiveProperty.js.map +1 -1
  916. package/lib/esm/components-react/propertygrid/internal/flat-items/MutableCategorizedStructProperty.d.ts +4 -3
  917. package/lib/esm/components-react/propertygrid/internal/flat-items/MutableCategorizedStructProperty.d.ts.map +1 -1
  918. package/lib/esm/components-react/propertygrid/internal/flat-items/MutableCategorizedStructProperty.js.map +1 -1
  919. package/lib/esm/components-react/propertygrid/internal/flat-items/MutableCustomGridCategory.d.ts +5 -4
  920. package/lib/esm/components-react/propertygrid/internal/flat-items/MutableCustomGridCategory.d.ts.map +1 -1
  921. package/lib/esm/components-react/propertygrid/internal/flat-items/MutableCustomGridCategory.js +2 -1
  922. package/lib/esm/components-react/propertygrid/internal/flat-items/MutableCustomGridCategory.js.map +1 -1
  923. package/lib/esm/components-react/propertygrid/internal/flat-items/MutableFlatGridItem.d.ts +1 -1
  924. package/lib/esm/components-react/propertygrid/internal/flat-items/MutableFlatGridItem.d.ts.map +1 -1
  925. package/lib/esm/components-react/propertygrid/internal/flat-items/MutableFlatGridItem.js +2 -2
  926. package/lib/esm/components-react/propertygrid/internal/flat-items/MutableFlatGridItem.js.map +1 -1
  927. package/lib/esm/components-react/propertygrid/internal/flat-items/MutableGridCategory.d.ts +5 -4
  928. package/lib/esm/components-react/propertygrid/internal/flat-items/MutableGridCategory.d.ts.map +1 -1
  929. package/lib/esm/components-react/propertygrid/internal/flat-items/MutableGridCategory.js +3 -2
  930. package/lib/esm/components-react/propertygrid/internal/flat-items/MutableGridCategory.js.map +1 -1
  931. package/lib/esm/components-react/propertygrid/internal/flat-items/MutableGridItemFactory.d.ts +4 -4
  932. package/lib/esm/components-react/propertygrid/internal/flat-items/MutableGridItemFactory.d.ts.map +1 -1
  933. package/lib/esm/components-react/propertygrid/internal/flat-items/MutableGridItemFactory.js +1 -8
  934. package/lib/esm/components-react/propertygrid/internal/flat-items/MutableGridItemFactory.js.map +1 -1
  935. package/lib/esm/components-react/propertygrid/internal/flat-properties/FlatNonPrimitivePropertyRenderer.d.ts +1 -1
  936. package/lib/esm/components-react/propertygrid/internal/flat-properties/FlatNonPrimitivePropertyRenderer.d.ts.map +1 -1
  937. package/lib/esm/components-react/propertygrid/internal/flat-properties/FlatNonPrimitivePropertyRenderer.js +1 -1
  938. package/lib/esm/components-react/propertygrid/internal/flat-properties/FlatNonPrimitivePropertyRenderer.js.map +1 -1
  939. package/lib/esm/components-react/propertygrid/internal/flat-properties/FlatPropertyRenderer.d.ts +5 -5
  940. package/lib/esm/components-react/propertygrid/internal/flat-properties/FlatPropertyRenderer.d.ts.map +1 -1
  941. package/lib/esm/components-react/propertygrid/internal/flat-properties/FlatPropertyRenderer.js +7 -5
  942. package/lib/esm/components-react/propertygrid/internal/flat-properties/FlatPropertyRenderer.js.map +1 -1
  943. package/lib/esm/components-react/selectable-content/SelectableContent.d.ts.map +1 -1
  944. package/lib/esm/components-react/selectable-content/SelectableContent.js +3 -2
  945. package/lib/esm/components-react/selectable-content/SelectableContent.js.map +1 -1
  946. package/lib/esm/components-react/selectable-content/SelectableContent.scss +20 -20
  947. package/lib/esm/components-react/toolbar/Item.d.ts +1 -1
  948. package/lib/esm/components-react/toolbar/Item.d.ts.map +1 -1
  949. package/lib/esm/components-react/toolbar/Item.js.map +1 -1
  950. package/lib/esm/components-react/toolbar/Item.scss +91 -91
  951. package/lib/esm/components-react/toolbar/ItemWrapper.d.ts +1 -1
  952. package/lib/esm/components-react/toolbar/ItemWrapper.d.ts.map +1 -1
  953. package/lib/esm/components-react/toolbar/ItemWrapper.js.map +1 -1
  954. package/lib/esm/components-react/toolbar/ItemWrapper.scss +10 -10
  955. package/lib/esm/components-react/toolbar/Items.d.ts +2 -2
  956. package/lib/esm/components-react/toolbar/Items.d.ts.map +1 -1
  957. package/lib/esm/components-react/toolbar/Items.js.map +1 -1
  958. package/lib/esm/components-react/toolbar/Items.scss +96 -96
  959. package/lib/esm/components-react/toolbar/Overflow.d.ts +1 -1
  960. package/lib/esm/components-react/toolbar/Overflow.d.ts.map +1 -1
  961. package/lib/esm/components-react/toolbar/Overflow.js.map +1 -1
  962. package/lib/esm/components-react/toolbar/Overflow.scss +57 -57
  963. package/lib/esm/components-react/toolbar/OverflowPanel.d.ts +1 -1
  964. package/lib/esm/components-react/toolbar/OverflowPanel.d.ts.map +1 -1
  965. package/lib/esm/components-react/toolbar/OverflowPanel.js.map +1 -1
  966. package/lib/esm/components-react/toolbar/OverflowPanel.scss +37 -37
  967. package/lib/esm/components-react/toolbar/PopupItem.d.ts +2 -2
  968. package/lib/esm/components-react/toolbar/PopupItem.d.ts.map +1 -1
  969. package/lib/esm/components-react/toolbar/PopupItem.js.map +1 -1
  970. package/lib/esm/components-react/toolbar/PopupItem.scss +88 -88
  971. package/lib/esm/components-react/toolbar/PopupItemWithDrag.d.ts +3 -2
  972. package/lib/esm/components-react/toolbar/PopupItemWithDrag.d.ts.map +1 -1
  973. package/lib/esm/components-react/toolbar/PopupItemWithDrag.js.map +1 -1
  974. package/lib/esm/components-react/toolbar/PopupItemsPanel.d.ts +1 -1
  975. package/lib/esm/components-react/toolbar/PopupItemsPanel.d.ts.map +1 -1
  976. package/lib/esm/components-react/toolbar/PopupItemsPanel.js.map +1 -1
  977. package/lib/esm/components-react/toolbar/Toolbar.d.ts +2 -2
  978. package/lib/esm/components-react/toolbar/Toolbar.d.ts.map +1 -1
  979. package/lib/esm/components-react/toolbar/Toolbar.js.map +1 -1
  980. package/lib/esm/components-react/toolbar/Toolbar.scss +18 -18
  981. package/lib/esm/components-react/toolbar/ToolbarWithOverflow.d.ts +2 -2
  982. package/lib/esm/components-react/toolbar/ToolbarWithOverflow.d.ts.map +1 -1
  983. package/lib/esm/components-react/toolbar/ToolbarWithOverflow.js +8 -4
  984. package/lib/esm/components-react/toolbar/ToolbarWithOverflow.js.map +1 -1
  985. package/lib/esm/components-react/toolbar/_variables.scss +34 -34
  986. package/lib/esm/components-react/toolbar/groupPanel/BackArrow.d.ts +1 -1
  987. package/lib/esm/components-react/toolbar/groupPanel/BackArrow.d.ts.map +1 -1
  988. package/lib/esm/components-react/toolbar/groupPanel/BackArrow.js.map +1 -1
  989. package/lib/esm/components-react/toolbar/groupPanel/BackArrow.scss +44 -44
  990. package/lib/esm/components-react/toolbar/groupPanel/Column.d.ts +1 -1
  991. package/lib/esm/components-react/toolbar/groupPanel/Column.d.ts.map +1 -1
  992. package/lib/esm/components-react/toolbar/groupPanel/Column.js.map +1 -1
  993. package/lib/esm/components-react/toolbar/groupPanel/Column.scss +9 -9
  994. package/lib/esm/components-react/toolbar/groupPanel/Columns.d.ts +1 -1
  995. package/lib/esm/components-react/toolbar/groupPanel/Columns.d.ts.map +1 -1
  996. package/lib/esm/components-react/toolbar/groupPanel/Columns.js.map +1 -1
  997. package/lib/esm/components-react/toolbar/groupPanel/Columns.scss +10 -10
  998. package/lib/esm/components-react/toolbar/groupPanel/Panel.d.ts +1 -1
  999. package/lib/esm/components-react/toolbar/groupPanel/Panel.d.ts.map +1 -1
  1000. package/lib/esm/components-react/toolbar/groupPanel/Panel.js.map +1 -1
  1001. package/lib/esm/components-react/toolbar/groupPanel/Panel.scss +15 -15
  1002. package/lib/esm/components-react/toolbar/groupPanel/Title.d.ts +1 -1
  1003. package/lib/esm/components-react/toolbar/groupPanel/Title.d.ts.map +1 -1
  1004. package/lib/esm/components-react/toolbar/groupPanel/Title.js.map +1 -1
  1005. package/lib/esm/components-react/toolbar/groupPanel/Title.scss +33 -33
  1006. package/lib/esm/components-react/toolbar/groupPanel/_variables.scss +16 -16
  1007. package/lib/esm/components-react/toolbar/groupPanel/tool/Expander.d.ts +2 -2
  1008. package/lib/esm/components-react/toolbar/groupPanel/tool/Expander.d.ts.map +1 -1
  1009. package/lib/esm/components-react/toolbar/groupPanel/tool/Expander.js.map +1 -1
  1010. package/lib/esm/components-react/toolbar/groupPanel/tool/Expander.scss +29 -29
  1011. package/lib/esm/components-react/toolbar/groupPanel/tool/Tool.d.ts +2 -2
  1012. package/lib/esm/components-react/toolbar/groupPanel/tool/Tool.d.ts.map +1 -1
  1013. package/lib/esm/components-react/toolbar/groupPanel/tool/Tool.js +3 -1
  1014. package/lib/esm/components-react/toolbar/groupPanel/tool/Tool.js.map +1 -1
  1015. package/lib/esm/components-react/toolbar/groupPanel/tool/Tool.scss +117 -117
  1016. package/lib/esm/components-react/toolbar/groupPanel/tool/_variables.scss +12 -12
  1017. package/lib/esm/components-react/toolbar/useDragInteraction.js.map +1 -1
  1018. package/lib/esm/components-react/toolbar/utilities/Direction.js.map +1 -1
  1019. package/lib/esm/components-react/tree/HighlightingEngine.js.map +1 -1
  1020. package/lib/esm/components-react/tree/HighlightingEngine.scss +7 -7
  1021. package/lib/esm/components-react/tree/ImageLoader.d.ts +2 -2
  1022. package/lib/esm/components-react/tree/ImageLoader.d.ts.map +1 -1
  1023. package/lib/esm/components-react/tree/ImageLoader.js.map +1 -1
  1024. package/lib/esm/components-react/tree/SimpleTreeDataProvider.d.ts +2 -2
  1025. package/lib/esm/components-react/tree/SimpleTreeDataProvider.d.ts.map +1 -1
  1026. package/lib/esm/components-react/tree/SimpleTreeDataProvider.js.map +1 -1
  1027. package/lib/esm/components-react/tree/TreeComponentTestId.js.map +1 -1
  1028. package/lib/esm/components-react/tree/TreeDataProvider.d.ts +4 -4
  1029. package/lib/esm/components-react/tree/TreeDataProvider.d.ts.map +1 -1
  1030. package/lib/esm/components-react/tree/TreeDataProvider.js.map +1 -1
  1031. package/lib/esm/components-react/tree/controlled/Observable.js.map +1 -1
  1032. package/lib/esm/components-react/tree/controlled/TreeActions.d.ts +1 -1
  1033. package/lib/esm/components-react/tree/controlled/TreeActions.d.ts.map +1 -1
  1034. package/lib/esm/components-react/tree/controlled/TreeActions.js.map +1 -1
  1035. package/lib/esm/components-react/tree/controlled/TreeEventDispatcher.d.ts +6 -6
  1036. package/lib/esm/components-react/tree/controlled/TreeEventDispatcher.d.ts.map +1 -1
  1037. package/lib/esm/components-react/tree/controlled/TreeEventDispatcher.js.map +1 -1
  1038. package/lib/esm/components-react/tree/controlled/TreeEventHandler.d.ts +6 -6
  1039. package/lib/esm/components-react/tree/controlled/TreeEventHandler.d.ts.map +1 -1
  1040. package/lib/esm/components-react/tree/controlled/TreeEventHandler.js.map +1 -1
  1041. package/lib/esm/components-react/tree/controlled/TreeEvents.d.ts +3 -3
  1042. package/lib/esm/components-react/tree/controlled/TreeEvents.d.ts.map +1 -1
  1043. package/lib/esm/components-react/tree/controlled/TreeEvents.js.map +1 -1
  1044. package/lib/esm/components-react/tree/controlled/TreeHooks.d.ts +4 -3
  1045. package/lib/esm/components-react/tree/controlled/TreeHooks.d.ts.map +1 -1
  1046. package/lib/esm/components-react/tree/controlled/TreeHooks.js.map +1 -1
  1047. package/lib/esm/components-react/tree/controlled/TreeModel.d.ts +3 -3
  1048. package/lib/esm/components-react/tree/controlled/TreeModel.d.ts.map +1 -1
  1049. package/lib/esm/components-react/tree/controlled/TreeModel.js +7 -4
  1050. package/lib/esm/components-react/tree/controlled/TreeModel.js.map +1 -1
  1051. package/lib/esm/components-react/tree/controlled/TreeModelSource.d.ts +2 -1
  1052. package/lib/esm/components-react/tree/controlled/TreeModelSource.d.ts.map +1 -1
  1053. package/lib/esm/components-react/tree/controlled/TreeModelSource.js.map +1 -1
  1054. package/lib/esm/components-react/tree/controlled/TreeNodeLoader.d.ts +5 -5
  1055. package/lib/esm/components-react/tree/controlled/TreeNodeLoader.d.ts.map +1 -1
  1056. package/lib/esm/components-react/tree/controlled/TreeNodeLoader.js +8 -6
  1057. package/lib/esm/components-react/tree/controlled/TreeNodeLoader.js.map +1 -1
  1058. package/lib/esm/components-react/tree/controlled/component/ControlledTree.d.ts +7 -7
  1059. package/lib/esm/components-react/tree/controlled/component/ControlledTree.d.ts.map +1 -1
  1060. package/lib/esm/components-react/tree/controlled/component/ControlledTree.js.map +1 -1
  1061. package/lib/esm/components-react/tree/controlled/component/ControlledTree.scss +102 -102
  1062. package/lib/esm/components-react/tree/controlled/component/NodeContent.d.ts +5 -5
  1063. package/lib/esm/components-react/tree/controlled/component/NodeContent.d.ts.map +1 -1
  1064. package/lib/esm/components-react/tree/controlled/component/NodeContent.js.map +1 -1
  1065. package/lib/esm/components-react/tree/controlled/component/NodeContent.scss +27 -27
  1066. package/lib/esm/components-react/tree/controlled/component/TreeNodeEditor.d.ts +1 -1
  1067. package/lib/esm/components-react/tree/controlled/component/TreeNodeEditor.d.ts.map +1 -1
  1068. package/lib/esm/components-react/tree/controlled/component/TreeNodeEditor.js.map +1 -1
  1069. package/lib/esm/components-react/tree/controlled/component/TreeNodeRenderer.d.ts +6 -6
  1070. package/lib/esm/components-react/tree/controlled/component/TreeNodeRenderer.d.ts.map +1 -1
  1071. package/lib/esm/components-react/tree/controlled/component/TreeNodeRenderer.js.map +1 -1
  1072. package/lib/esm/components-react/tree/controlled/component/TreeRenderer.d.ts +5 -5
  1073. package/lib/esm/components-react/tree/controlled/component/TreeRenderer.d.ts.map +1 -1
  1074. package/lib/esm/components-react/tree/controlled/component/TreeRenderer.js +3 -23
  1075. package/lib/esm/components-react/tree/controlled/component/TreeRenderer.js.map +1 -1
  1076. package/lib/esm/components-react/tree/controlled/internal/SparseTree.js +2 -1
  1077. package/lib/esm/components-react/tree/controlled/internal/SparseTree.js.map +1 -1
  1078. package/lib/esm/components-react/tree/controlled/internal/TreeModelMutator.d.ts +6 -6
  1079. package/lib/esm/components-react/tree/controlled/internal/TreeModelMutator.d.ts.map +1 -1
  1080. package/lib/esm/components-react/tree/controlled/internal/TreeModelMutator.js.map +1 -1
  1081. package/lib/esm/components-react/tree/controlled/internal/TreeSelectionManager.d.ts +4 -4
  1082. package/lib/esm/components-react/tree/controlled/internal/TreeSelectionManager.d.ts.map +1 -1
  1083. package/lib/esm/components-react/tree/controlled/internal/TreeSelectionManager.js +4 -2
  1084. package/lib/esm/components-react/tree/controlled/internal/TreeSelectionManager.js.map +1 -1
  1085. package/lib/esm/components-react.js.map +1 -1
  1086. package/lib/public/locales/en/UiComponents.json +139 -139
  1087. package/package.json +11 -6
@@ -1 +1 @@
1
- {"version":3,"file":"TimeField.js","sourceRoot":"","sources":["../../../../src/components-react/datepicker/TimeField.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,6CAA+B;AAC/B,wDAA6C;AAC7C,0DAAgE;AAChE,kDAA+C;AAC/C,4BAA0B;AAsB1B,SAAS,WAAW,CAAC,OAAe,EAAE,GAAW,EAAE,GAAW,EAAE,YAAoB;IAClF,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AAQ,EAAE,IAAI,EAAC,OAAO,GAAG,CAC9L;QAEJ,aAAa;YACZ,oBAAC,qBAAK,IAAC,SAAS,EAAC,8BAA8B,EAAC,SAAS,EAAE,wBAAwB,EAAE,MAAM,EAAE,qBAAqB,EAAE,QAAQ,EAAE,qBAAqB,EAAE,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAC,OAAO,GAAG,CAE5M,CAAC;AACT,CAAC;AAvMD,8BAuMC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Date\r\n */\r\n\r\nimport * as React from \"react\";\r\nimport { Input } from \"@itwin/itwinui-react\";\r\nimport { SpecialKey, TimeDisplay } from \"@itwin/appui-abstract\";\r\nimport { UiComponents } from \"../UiComponents\";\r\nimport \"./TimeField.scss\";\r\n\r\n/** Interface used to hold 24 hour time in\r\n * hours, minutes, and seconds.\r\n * @internal\r\n */\r\nexport interface TimeSpec {\r\n hours: number;\r\n minutes: number;\r\n seconds: number;\r\n}\r\n\r\n/** Interface for props used by [[TimeField]] component.\r\n * @internal\r\n */\r\nexport interface TimeFieldProps {\r\n time: TimeSpec;\r\n timeDisplay: TimeDisplay;\r\n onTimeChange?: (time: TimeSpec) => void;\r\n readOnly?: boolean;\r\n}\r\n\r\nfunction getValidInt(intText: string, min: number, max: number, defaultValue: number) {\r\n try {\r\n const newValue = parseInt(intText, 10);\r\n if (newValue >= min && newValue <= max)\r\n return newValue;\r\n } catch (_e) {\r\n // istanbul ignore next\r\n return defaultValue;\r\n }\r\n return defaultValue;\r\n}\r\n\r\nfunction isSameTime(a: TimeSpec, b: TimeSpec) {\r\n return a.hours === b.hours && a.minutes === b.minutes && a.seconds === b.seconds;\r\n}\r\n\r\n/** Field used to set the Hour:Minutes:Seconds in the [[DatePicker]] Popup panel. The user may key-in the value or use up/down keys to\r\n * change the time.\r\n * @internal\r\n */\r\nexport function TimeField({ time, timeDisplay, readOnly, onTimeChange }: TimeFieldProps) {\r\n const initialDateRef = React.useRef(time);\r\n const amLabelRef = React.useRef(UiComponents.translate(\"timepicker.day-period-am\"));\r\n const pmLabelRef = React.useRef(UiComponents.translate(\"timepicker.day-period-pm\"));\r\n const [timeSpec, setTimeSpec] = React.useState(time);\r\n const { hours, minutes, seconds } = timeSpec;\r\n const showDayPeriod = -1 !== (timeDisplay as string).search(\"aa\");\r\n\r\n const getDisplayHours = React.useCallback((timeHours: number) => {\r\n if (!showDayPeriod) {\r\n return timeHours;\r\n }\r\n const outHours = (0 === timeHours) ? 12 : timeHours > 12 ? timeHours - 12 : timeHours;\r\n return outHours;\r\n }, [showDayPeriod]);\r\n\r\n // See if new initialDate props have changed since component mounted\r\n React.useEffect(() => {\r\n if (!isSameTime(time, initialDateRef.current)) {\r\n setTimeSpec(time);\r\n initialDateRef.current = time;\r\n }\r\n }, [time]);\r\n\r\n const displayHour = getDisplayHours(hours);\r\n const [dayPeriodText, setDayPeriodText] = React.useState(showDayPeriod ? (hours >= 12 ? pmLabelRef.current : amLabelRef.current) : undefined);\r\n const [hoursText, setHoursText] = React.useState(displayHour.toString().padStart(2, \"0\"));\r\n const [minutesText, setMinutesText] = React.useState(minutes.toString().padStart(2, \"0\"));\r\n const [secondsText, setSecondsText] = React.useState(seconds.toString().padStart(2, \"0\"));\r\n\r\n const updateTimeSpec = React.useCallback((newTime: TimeSpec) => {\r\n if (newTime.hours !== timeSpec.hours || newTime.minutes !== timeSpec.minutes || newTime.seconds !== timeSpec.seconds) {\r\n setTimeSpec(newTime);\r\n onTimeChange && onTimeChange(newTime);\r\n }\r\n }, [onTimeChange, timeSpec.hours, timeSpec.minutes, timeSpec.seconds]);\r\n\r\n const handleHoursChange = React.useCallback((event: React.ChangeEvent<HTMLInputElement>) => {\r\n setHoursText(event.currentTarget.value);\r\n }, []);\r\n\r\n const handleMinutesChange = React.useCallback((event: React.ChangeEvent<HTMLInputElement>) => {\r\n setMinutesText(event.currentTarget.value);\r\n }, []);\r\n const handleSecondsChange = React.useCallback((event: React.ChangeEvent<HTMLInputElement>) => {\r\n setSecondsText(event.currentTarget.value);\r\n }, []);\r\n const handleDayPeriodChange = React.useCallback((event: React.ChangeEvent<HTMLInputElement>) => {\r\n setDayPeriodText(event.currentTarget.value);\r\n }, []);\r\n\r\n const handleHoursOnBlur = React.useCallback(() => {\r\n const newHours = getValidInt(hoursText, 0, 24, hours);\r\n setHoursText(getDisplayHours(newHours).toString().padStart(2, \"0\"));\r\n updateTimeSpec({ ...timeSpec, hours: newHours });\r\n showDayPeriod && setDayPeriodText(newHours >= 12 ? pmLabelRef.current : amLabelRef.current);\r\n }, [getDisplayHours, hours, hoursText, showDayPeriod, timeSpec, updateTimeSpec]);\r\n const handleMinutesOnBlur = React.useCallback(() => {\r\n const newMinutes = getValidInt(minutesText, 0, 59, minutes);\r\n setMinutesText(newMinutes.toString().padStart(2, \"0\"));\r\n updateTimeSpec({ ...timeSpec, minutes: newMinutes });\r\n }, [minutes, minutesText, timeSpec, updateTimeSpec]);\r\n const handleSecondsOnBlur = React.useCallback(() => {\r\n const newSeconds = getValidInt(secondsText, 0, 59, seconds);\r\n setSecondsText(newSeconds.toString().padStart(2, \"0\"));\r\n updateTimeSpec({ ...timeSpec, seconds: newSeconds });\r\n }, [seconds, secondsText, timeSpec, updateTimeSpec]);\r\n const handleDayPeriodOnBlur = React.useCallback(() => {\r\n let newPeriodText: string | undefined;\r\n // istanbul ignore else\r\n if (dayPeriodText === \"AM\" || dayPeriodText === \"am\" || dayPeriodText === amLabelRef.current)\r\n newPeriodText = amLabelRef.current;\r\n else if (dayPeriodText === \"PM\" || dayPeriodText === \"pm\" || dayPeriodText === pmLabelRef.current)\r\n newPeriodText = pmLabelRef.current;\r\n\r\n // istanbul ignore else\r\n if (undefined !== newPeriodText) {\r\n setDayPeriodText(newPeriodText);\r\n if (newPeriodText === amLabelRef.current && hours > 12) {\r\n updateTimeSpec({ ...timeSpec, hours: hours - 12 });\r\n } else if (newPeriodText === pmLabelRef.current && hours <= 11) {\r\n updateTimeSpec({ ...timeSpec, hours: hours + 12 });\r\n }\r\n }\r\n\r\n }, [dayPeriodText, hours, timeSpec, updateTimeSpec]);\r\n\r\n const handleHoursOnKeyDown = React.useCallback((event: React.KeyboardEvent<HTMLInputElement>) => {\r\n // istanbul ignore else\r\n if (event.key === SpecialKey.ArrowDown || event.key === SpecialKey.ArrowUp) {\r\n let newHours = hours + (event.key === SpecialKey.ArrowDown ? -1 : 1);\r\n if (newHours < 0) newHours = 24;\r\n if (newHours > 24 || (newHours > 23 && ((minutes + seconds) > 0))) newHours = 0;\r\n setHoursText(getDisplayHours(newHours).toString().padStart(2, \"0\"));\r\n updateTimeSpec({ ...timeSpec, hours: newHours });\r\n showDayPeriod && setDayPeriodText(newHours >= 12 ? pmLabelRef.current : amLabelRef.current);\r\n event.preventDefault();\r\n } else if (event.key === SpecialKey.Enter) {\r\n const newHours = getValidInt(hoursText, 0, 24, hours);\r\n setHoursText(getDisplayHours(newHours).toString().padStart(2, \"0\"));\r\n updateTimeSpec({ ...timeSpec, hours: newHours });\r\n showDayPeriod && setDayPeriodText(newHours >= 12 ? pmLabelRef.current : amLabelRef.current);\r\n event.preventDefault();\r\n }\r\n }, [getDisplayHours, hours, hoursText, minutes, seconds, showDayPeriod, timeSpec, updateTimeSpec]);\r\n\r\n const handleMinutesOnKeyDown = React.useCallback((event: React.KeyboardEvent<HTMLInputElement>) => {\r\n if (event.key === SpecialKey.ArrowDown) {\r\n const newMinutes = minutes === 0 ? 59 : minutes - 1;\r\n setMinutesText(newMinutes.toString().padStart(2, \"0\"));\r\n updateTimeSpec({ ...timeSpec, minutes: newMinutes });\r\n event.preventDefault();\r\n } else if (event.key === SpecialKey.ArrowUp) {\r\n const newMinutes = minutes === 59 ? 0 : minutes + 1;\r\n setMinutesText(newMinutes.toString().padStart(2, \"0\"));\r\n updateTimeSpec({ ...timeSpec, minutes: newMinutes });\r\n event.preventDefault();\r\n } else if (event.key === SpecialKey.Home || event.key === SpecialKey.End) {\r\n const newMinutes = event.key === SpecialKey.Home ? 0 : 59;\r\n setMinutesText(newMinutes.toString().padStart(2, \"0\"));\r\n updateTimeSpec({ ...timeSpec, minutes: newMinutes });\r\n event.preventDefault();\r\n } else /* istanbul ignore next */ if (event.key === SpecialKey.Enter) {\r\n const newMinutes = getValidInt(minutesText, 0, 59, minutes);\r\n setMinutesText(newMinutes.toString().padStart(2, \"0\"));\r\n updateTimeSpec({ ...timeSpec, minutes: newMinutes });\r\n event.preventDefault();\r\n }\r\n }, [minutesText, minutes, timeSpec, updateTimeSpec]);\r\n\r\n const handleSecondsOnKeyDown = React.useCallback((event: React.KeyboardEvent<HTMLInputElement>) => {\r\n // istanbul ignore else\r\n if (event.key === SpecialKey.ArrowDown) {\r\n const newSeconds = seconds === 0 ? 59 : seconds - 1;\r\n setSecondsText(newSeconds.toString().padStart(2, \"0\"));\r\n updateTimeSpec({ ...timeSpec, seconds: newSeconds });\r\n event.preventDefault();\r\n } else if (event.key === SpecialKey.ArrowUp) {\r\n const newSeconds = seconds === 59 ? 0 : seconds + 1;\r\n setSecondsText(newSeconds.toString().padStart(2, \"0\"));\r\n updateTimeSpec({ ...timeSpec, seconds: newSeconds });\r\n event.preventDefault();\r\n } else if (event.key === SpecialKey.Home || event.key === SpecialKey.End) {\r\n const newSeconds = event.key === SpecialKey.Home ? 0 : 59;\r\n setSecondsText(newSeconds.toString().padStart(2, \"0\"));\r\n updateTimeSpec({ ...timeSpec, seconds: newSeconds });\r\n event.preventDefault();\r\n } else if (event.key === SpecialKey.Enter) {\r\n const newSeconds = getValidInt(secondsText, 0, 59, seconds);\r\n setSecondsText(newSeconds.toString().padStart(2, \"0\"));\r\n updateTimeSpec({ ...timeSpec, seconds: newSeconds });\r\n event.preventDefault();\r\n }\r\n }, [seconds, secondsText, timeSpec, updateTimeSpec]);\r\n\r\n const handleDayPeriodOnKeyDown = React.useCallback((event: React.KeyboardEvent<HTMLInputElement>) => {\r\n let newPeriodText: string | undefined;\r\n // istanbul ignore else\r\n if (event.key === SpecialKey.ArrowDown || event.key === SpecialKey.Home || event.key === \"a\" || event.key === \"A\") {\r\n newPeriodText = amLabelRef.current;\r\n event.preventDefault();\r\n } else if (event.key === SpecialKey.ArrowUp || event.key === SpecialKey.End || event.key === \"p\" || event.key === \"P\") {\r\n newPeriodText = pmLabelRef.current;\r\n event.preventDefault();\r\n } else if (event.key === SpecialKey.Enter) {\r\n if (dayPeriodText === \"AM\" || dayPeriodText === \"am\" || dayPeriodText === amLabelRef.current)\r\n newPeriodText = amLabelRef.current;\r\n else if (dayPeriodText === \"PM\" || dayPeriodText === \"pm\" || dayPeriodText === pmLabelRef.current)\r\n newPeriodText = pmLabelRef.current;\r\n event.preventDefault();\r\n }\r\n // istanbul ignore else\r\n if (undefined !== newPeriodText) {\r\n setDayPeriodText(newPeriodText);\r\n /* istanbul ignore else */\r\n if (newPeriodText === amLabelRef.current && hours > 12) {\r\n updateTimeSpec({ ...timeSpec, hours: hours - 12 });\r\n } else if (newPeriodText === pmLabelRef.current && hours <= 11) {\r\n updateTimeSpec({ ...timeSpec, hours: hours + 12 });\r\n }\r\n }\r\n }, [dayPeriodText, hours, timeSpec, updateTimeSpec]);\r\n\r\n const showSeconds = -1 !== (timeDisplay as string).search(\":ss\");\r\n\r\n return <div data-testid=\"components-time-input\" className=\"components-time\">\r\n <Input className=\"components-time-input\" onKeyDown={handleHoursOnKeyDown} onBlur={handleHoursOnBlur} onChange={handleHoursChange} value={hoursText} disabled={readOnly} size=\"small\" />\r\n <span className=\"component-time-separator\">:</span>\r\n <Input className=\"components-time-input\" onKeyDown={handleMinutesOnKeyDown} onBlur={handleMinutesOnBlur} onChange={handleMinutesChange} value={minutesText} disabled={readOnly} size=\"small\" />\r\n {showSeconds &&\r\n <>\r\n <span className=\"component-time-separator\">:</span>\r\n <Input className=\"components-time-input\" onKeyDown={handleSecondsOnKeyDown} onBlur={handleSecondsOnBlur} onChange={handleSecondsChange} value={secondsText} disabled={readOnly} size=\"small\" />\r\n </>\r\n }\r\n {dayPeriodText &&\r\n <Input className=\"components-time-period-input\" onKeyDown={handleDayPeriodOnKeyDown} onBlur={handleDayPeriodOnBlur} onChange={handleDayPeriodChange} value={dayPeriodText} disabled={readOnly} size=\"small\" />\r\n }\r\n </div>;\r\n}\r\n"]}
1
+ {"version":3,"file":"TimeField.js","sourceRoot":"","sources":["../../../../src/components-react/datepicker/TimeField.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,6CAA+B;AAC/B,wDAA6C;AAE7C,0DAAmD;AACnD,kDAA+C;AAC/C,4BAA0B;AAsB1B,SAAS,WAAW,CAAC,OAAe,EAAE,GAAW,EAAE,GAAW,EAAE,YAAoB;IAClF,IAAI;QACF,MAAM,QAAQ,GAAG,QAAQ,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;QACvC,IAAI,QAAQ,IAAI,GAAG,IAAI,QAAQ,IAAI,GAAG;YACpC,OAAO,QAAQ,CAAC;KACnB;IAAC,OAAO,EAAE,EAAE;QACX,uBAAuB;QACvB,OAAO,YAAY,CAAC;KACrB;IACD,OAAO,YAAY,CAAC;AACtB,CAAC;AAED,SAAS,UAAU,CAAC,CAAW,EAAE,CAAW;IAC1C,OAAO,CAAC,CAAC,KAAK,KAAK,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,OAAO,KAAK,CAAC,CAAC,OAAO,IAAI,CAAC,CAAC,OAAO,KAAK,CAAC,CAAC,OAAO,CAAC;AACnF,CAAC;AAED;;;GAGG;AACH,SAAgB,SAAS,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,YAAY,EAAkB;IACrF,MAAM,cAAc,GAAG,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IAC1C,MAAM,UA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,QAAQ,EAAE,iBAAiB,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAC,OAAO,GAAG;QACvL,8BAAM,SAAS,EAAC,0BAA0B,QAAS;QACnD,oBAAC,qBAAK,IAAC,SAAS,EAAC,uBAAuB,EAAC,SAAS,EAAE,sBAAsB,EAAE,MAAM,EAAE,mBAAmB,EAAE,QAAQ,EAAE,mBAAmB,EAAE,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAC,OAAO,GAAG;QAC9L,WAAW;YACV;gBACE,8BAAM,SAAS,EAAC,0BAA0B,QAAS;gBACnD,oBAAC,qBAAK,IAAC,SAAS,EAAC,uBAAuB,EAAC,SAAS,EAAE,sBAAsB,EAAE,MAAM,EAAE,mBAAmB,EAAE,QAAQ,EAAE,mBAAmB,EAAE,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAC,OAAO,GAAG,CAC9L;QAEJ,aAAa;YACZ,oBAAC,qBAAK,IAAC,SAAS,EAAC,8BAA8B,EAAC,SAAS,EAAE,wBAAwB,EAAE,MAAM,EAAE,qBAAqB,EAAE,QAAQ,EAAE,qBAAqB,EAAE,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAC,OAAO,GAAG,CAE5M,CAAC;AACT,CAAC;AAvMD,8BAuMC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Date\n */\n\nimport * as React from \"react\";\nimport { Input } from \"@itwin/itwinui-react\";\nimport type { TimeDisplay } from \"@itwin/appui-abstract\";\nimport { SpecialKey } from \"@itwin/appui-abstract\";\nimport { UiComponents } from \"../UiComponents\";\nimport \"./TimeField.scss\";\n\n/** Interface used to hold 24 hour time in\n * hours, minutes, and seconds.\n * @internal\n */\nexport interface TimeSpec {\n hours: number;\n minutes: number;\n seconds: number;\n}\n\n/** Interface for props used by [[TimeField]] component.\n * @internal\n */\nexport interface TimeFieldProps {\n time: TimeSpec;\n timeDisplay: TimeDisplay;\n onTimeChange?: (time: TimeSpec) => void;\n readOnly?: boolean;\n}\n\nfunction getValidInt(intText: string, min: number, max: number, defaultValue: number) {\n try {\n const newValue = parseInt(intText, 10);\n if (newValue >= min && newValue <= max)\n return newValue;\n } catch (_e) {\n // istanbul ignore next\n return defaultValue;\n }\n return defaultValue;\n}\n\nfunction isSameTime(a: TimeSpec, b: TimeSpec) {\n return a.hours === b.hours && a.minutes === b.minutes && a.seconds === b.seconds;\n}\n\n/** Field used to set the Hour:Minutes:Seconds in the [[DatePicker]] Popup panel. The user may key-in the value or use up/down keys to\n * change the time.\n * @internal\n */\nexport function TimeField({ time, timeDisplay, readOnly, onTimeChange }: TimeFieldProps) {\n const initialDateRef = React.useRef(time);\n const amLabelRef = React.useRef(UiComponents.translate(\"timepicker.day-period-am\"));\n const pmLabelRef = React.useRef(UiComponents.translate(\"timepicker.day-period-pm\"));\n const [timeSpec, setTimeSpec] = React.useState(time);\n const { hours, minutes, seconds } = timeSpec;\n const showDayPeriod = -1 !== (timeDisplay as string).search(\"aa\");\n\n const getDisplayHours = React.useCallback((timeHours: number) => {\n if (!showDayPeriod) {\n return timeHours;\n }\n const outHours = (0 === timeHours) ? 12 : timeHours > 12 ? timeHours - 12 : timeHours;\n return outHours;\n }, [showDayPeriod]);\n\n // See if new initialDate props have changed since component mounted\n React.useEffect(() => {\n if (!isSameTime(time, initialDateRef.current)) {\n setTimeSpec(time);\n initialDateRef.current = time;\n }\n }, [time]);\n\n const displayHour = getDisplayHours(hours);\n const [dayPeriodText, setDayPeriodText] = React.useState(showDayPeriod ? (hours >= 12 ? pmLabelRef.current : amLabelRef.current) : undefined);\n const [hoursText, setHoursText] = React.useState(displayHour.toString().padStart(2, \"0\"));\n const [minutesText, setMinutesText] = React.useState(minutes.toString().padStart(2, \"0\"));\n const [secondsText, setSecondsText] = React.useState(seconds.toString().padStart(2, \"0\"));\n\n const updateTimeSpec = React.useCallback((newTime: TimeSpec) => {\n if (newTime.hours !== timeSpec.hours || newTime.minutes !== timeSpec.minutes || newTime.seconds !== timeSpec.seconds) {\n setTimeSpec(newTime);\n onTimeChange && onTimeChange(newTime);\n }\n }, [onTimeChange, timeSpec.hours, timeSpec.minutes, timeSpec.seconds]);\n\n const handleHoursChange = React.useCallback((event: React.ChangeEvent<HTMLInputElement>) => {\n setHoursText(event.currentTarget.value);\n }, []);\n\n const handleMinutesChange = React.useCallback((event: React.ChangeEvent<HTMLInputElement>) => {\n setMinutesText(event.currentTarget.value);\n }, []);\n const handleSecondsChange = React.useCallback((event: React.ChangeEvent<HTMLInputElement>) => {\n setSecondsText(event.currentTarget.value);\n }, []);\n const handleDayPeriodChange = React.useCallback((event: React.ChangeEvent<HTMLInputElement>) => {\n setDayPeriodText(event.currentTarget.value);\n }, []);\n\n const handleHoursOnBlur = React.useCallback(() => {\n const newHours = getValidInt(hoursText, 0, 24, hours);\n setHoursText(getDisplayHours(newHours).toString().padStart(2, \"0\"));\n updateTimeSpec({ ...timeSpec, hours: newHours });\n showDayPeriod && setDayPeriodText(newHours >= 12 ? pmLabelRef.current : amLabelRef.current);\n }, [getDisplayHours, hours, hoursText, showDayPeriod, timeSpec, updateTimeSpec]);\n const handleMinutesOnBlur = React.useCallback(() => {\n const newMinutes = getValidInt(minutesText, 0, 59, minutes);\n setMinutesText(newMinutes.toString().padStart(2, \"0\"));\n updateTimeSpec({ ...timeSpec, minutes: newMinutes });\n }, [minutes, minutesText, timeSpec, updateTimeSpec]);\n const handleSecondsOnBlur = React.useCallback(() => {\n const newSeconds = getValidInt(secondsText, 0, 59, seconds);\n setSecondsText(newSeconds.toString().padStart(2, \"0\"));\n updateTimeSpec({ ...timeSpec, seconds: newSeconds });\n }, [seconds, secondsText, timeSpec, updateTimeSpec]);\n const handleDayPeriodOnBlur = React.useCallback(() => {\n let newPeriodText: string | undefined;\n // istanbul ignore else\n if (dayPeriodText === \"AM\" || dayPeriodText === \"am\" || dayPeriodText === amLabelRef.current)\n newPeriodText = amLabelRef.current;\n else if (dayPeriodText === \"PM\" || dayPeriodText === \"pm\" || dayPeriodText === pmLabelRef.current)\n newPeriodText = pmLabelRef.current;\n\n // istanbul ignore else\n if (undefined !== newPeriodText) {\n setDayPeriodText(newPeriodText);\n if (newPeriodText === amLabelRef.current && hours > 12) {\n updateTimeSpec({ ...timeSpec, hours: hours - 12 });\n } else if (newPeriodText === pmLabelRef.current && hours <= 11) {\n updateTimeSpec({ ...timeSpec, hours: hours + 12 });\n }\n }\n\n }, [dayPeriodText, hours, timeSpec, updateTimeSpec]);\n\n const handleHoursOnKeyDown = React.useCallback((event: React.KeyboardEvent<HTMLInputElement>) => {\n // istanbul ignore else\n if (event.key === SpecialKey.ArrowDown || event.key === SpecialKey.ArrowUp) {\n let newHours = hours + (event.key === SpecialKey.ArrowDown ? -1 : 1);\n if (newHours < 0) newHours = 24;\n if (newHours > 24 || (newHours > 23 && ((minutes + seconds) > 0))) newHours = 0;\n setHoursText(getDisplayHours(newHours).toString().padStart(2, \"0\"));\n updateTimeSpec({ ...timeSpec, hours: newHours });\n showDayPeriod && setDayPeriodText(newHours >= 12 ? pmLabelRef.current : amLabelRef.current);\n event.preventDefault();\n } else if (event.key === SpecialKey.Enter) {\n const newHours = getValidInt(hoursText, 0, 24, hours);\n setHoursText(getDisplayHours(newHours).toString().padStart(2, \"0\"));\n updateTimeSpec({ ...timeSpec, hours: newHours });\n showDayPeriod && setDayPeriodText(newHours >= 12 ? pmLabelRef.current : amLabelRef.current);\n event.preventDefault();\n }\n }, [getDisplayHours, hours, hoursText, minutes, seconds, showDayPeriod, timeSpec, updateTimeSpec]);\n\n const handleMinutesOnKeyDown = React.useCallback((event: React.KeyboardEvent<HTMLInputElement>) => {\n if (event.key === SpecialKey.ArrowDown) {\n const newMinutes = minutes === 0 ? 59 : minutes - 1;\n setMinutesText(newMinutes.toString().padStart(2, \"0\"));\n updateTimeSpec({ ...timeSpec, minutes: newMinutes });\n event.preventDefault();\n } else if (event.key === SpecialKey.ArrowUp) {\n const newMinutes = minutes === 59 ? 0 : minutes + 1;\n setMinutesText(newMinutes.toString().padStart(2, \"0\"));\n updateTimeSpec({ ...timeSpec, minutes: newMinutes });\n event.preventDefault();\n } else if (event.key === SpecialKey.Home || event.key === SpecialKey.End) {\n const newMinutes = event.key === SpecialKey.Home ? 0 : 59;\n setMinutesText(newMinutes.toString().padStart(2, \"0\"));\n updateTimeSpec({ ...timeSpec, minutes: newMinutes });\n event.preventDefault();\n } else /* istanbul ignore next */ if (event.key === SpecialKey.Enter) {\n const newMinutes = getValidInt(minutesText, 0, 59, minutes);\n setMinutesText(newMinutes.toString().padStart(2, \"0\"));\n updateTimeSpec({ ...timeSpec, minutes: newMinutes });\n event.preventDefault();\n }\n }, [minutesText, minutes, timeSpec, updateTimeSpec]);\n\n const handleSecondsOnKeyDown = React.useCallback((event: React.KeyboardEvent<HTMLInputElement>) => {\n // istanbul ignore else\n if (event.key === SpecialKey.ArrowDown) {\n const newSeconds = seconds === 0 ? 59 : seconds - 1;\n setSecondsText(newSeconds.toString().padStart(2, \"0\"));\n updateTimeSpec({ ...timeSpec, seconds: newSeconds });\n event.preventDefault();\n } else if (event.key === SpecialKey.ArrowUp) {\n const newSeconds = seconds === 59 ? 0 : seconds + 1;\n setSecondsText(newSeconds.toString().padStart(2, \"0\"));\n updateTimeSpec({ ...timeSpec, seconds: newSeconds });\n event.preventDefault();\n } else if (event.key === SpecialKey.Home || event.key === SpecialKey.End) {\n const newSeconds = event.key === SpecialKey.Home ? 0 : 59;\n setSecondsText(newSeconds.toString().padStart(2, \"0\"));\n updateTimeSpec({ ...timeSpec, seconds: newSeconds });\n event.preventDefault();\n } else if (event.key === SpecialKey.Enter) {\n const newSeconds = getValidInt(secondsText, 0, 59, seconds);\n setSecondsText(newSeconds.toString().padStart(2, \"0\"));\n updateTimeSpec({ ...timeSpec, seconds: newSeconds });\n event.preventDefault();\n }\n }, [seconds, secondsText, timeSpec, updateTimeSpec]);\n\n const handleDayPeriodOnKeyDown = React.useCallback((event: React.KeyboardEvent<HTMLInputElement>) => {\n let newPeriodText: string | undefined;\n // istanbul ignore else\n if (event.key === SpecialKey.ArrowDown || event.key === SpecialKey.Home || event.key === \"a\" || event.key === \"A\") {\n newPeriodText = amLabelRef.current;\n event.preventDefault();\n } else if (event.key === SpecialKey.ArrowUp || event.key === SpecialKey.End || event.key === \"p\" || event.key === \"P\") {\n newPeriodText = pmLabelRef.current;\n event.preventDefault();\n } else if (event.key === SpecialKey.Enter) {\n if (dayPeriodText === \"AM\" || dayPeriodText === \"am\" || dayPeriodText === amLabelRef.current)\n newPeriodText = amLabelRef.current;\n else if (dayPeriodText === \"PM\" || dayPeriodText === \"pm\" || dayPeriodText === pmLabelRef.current)\n newPeriodText = pmLabelRef.current;\n event.preventDefault();\n }\n // istanbul ignore else\n if (undefined !== newPeriodText) {\n setDayPeriodText(newPeriodText);\n /* istanbul ignore else */\n if (newPeriodText === amLabelRef.current && hours > 12) {\n updateTimeSpec({ ...timeSpec, hours: hours - 12 });\n } else if (newPeriodText === pmLabelRef.current && hours <= 11) {\n updateTimeSpec({ ...timeSpec, hours: hours + 12 });\n }\n }\n }, [dayPeriodText, hours, timeSpec, updateTimeSpec]);\n\n const showSeconds = -1 !== (timeDisplay as string).search(\":ss\");\n\n return <div data-testid=\"components-time-input\" className=\"components-time\">\n <Input className=\"components-time-input\" onKeyDown={handleHoursOnKeyDown} onBlur={handleHoursOnBlur} onChange={handleHoursChange} value={hoursText} disabled={readOnly} size=\"small\" />\n <span className=\"component-time-separator\">:</span>\n <Input className=\"components-time-input\" onKeyDown={handleMinutesOnKeyDown} onBlur={handleMinutesOnBlur} onChange={handleMinutesChange} value={minutesText} disabled={readOnly} size=\"small\" />\n {showSeconds &&\n <>\n <span className=\"component-time-separator\">:</span>\n <Input className=\"components-time-input\" onKeyDown={handleSecondsOnKeyDown} onBlur={handleSecondsOnBlur} onChange={handleSecondsChange} value={secondsText} disabled={readOnly} size=\"small\" />\n </>\n }\n {dayPeriodText &&\n <Input className=\"components-time-period-input\" onKeyDown={handleDayPeriodOnKeyDown} onBlur={handleDayPeriodOnBlur} onChange={handleDayPeriodChange} value={dayPeriodText} disabled={readOnly} size=\"small\" />\n }\n </div>;\n}\n"]}
@@ -1,76 +1,76 @@
1
- /*---------------------------------------------------------------------------------------------
2
- * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
- * See LICENSE.md in the project root for license terms and full copyright notice.
4
- *--------------------------------------------------------------------------------------------*/
5
- @import "~@itwin/core-react/lib/cjs/core-react/inputs/variables";
6
- @import "~@itwin/core-react/lib/cjs/core-react/style/themecolors";
7
-
8
- .components-time {
9
- display: inline-flex;
10
- flex-direction: row;
11
- align-items: center;
12
- justify-content: flex-start;
13
- background-color: $buic-background-control;
14
- border: 1px solid var(--iui-color-border-foreground);
15
- border-radius: var(--iui-border-radius-1);
16
- box-shadow: var(--buic-inputs-boxshadow) 0px 1px 1px inset;
17
- box-sizing: border-box;
18
-
19
- &.has-error {
20
- color: var(--iui-color-text-negative);
21
- }
22
-
23
- .components-time-input {
24
- box-sizing: border-box;
25
- width: 2em;
26
- text-align: center;
27
- border: none;
28
- box-shadow: none;
29
- margin: 0;
30
-
31
- &.iui-input {
32
- padding-left: 0;
33
- padding-right: 0;
34
- }
35
-
36
- &:focus {
37
- outline: 0px;
38
- border: 1px solid var(--iui-color-border-foreground);
39
- border-radius: var(--iui-border-radius-1);
40
- border-color: var(--buic-foreground-focus-border);
41
- box-shadow: var(--buic-focus-boxshadow-gradient1) 0px 1px 1px,
42
- var(--buic-focus-boxshadow-gradient2) 0px 0px 0px 2px;
43
- z-index: 1;
44
- /* bump z-index so drop shadow in not cut off by AM/PM */
45
- }
46
- }
47
-
48
- .components-time-period-input {
49
- box-sizing: border-box;
50
- width: 3em;
51
- text-align: center;
52
- border: none;
53
- padding-left: 0;
54
- padding-right: 0;
55
- box-shadow: none;
56
- margin: 0;
57
-
58
- &:focus {
59
- outline: 0px;
60
- border: 1px solid var(--iui-color-border-foreground);
61
- border-radius: var(--iui-border-radius-1);
62
- border-color: var(--buic-foreground-focus-border);
63
- box-shadow: var(--buic-focus-boxshadow-gradient1) 0px 1px 1px,
64
- var(--buic-focus-boxshadow-gradient2) 0px 0px 0px 2px;
65
- }
66
- }
67
-
68
- .component-time-separator {
69
- margin: 0;
70
- padding: 0 1px;
71
- }
72
-
73
- .iui-input {
74
- padding: $uicore-iui-input-padding;
75
- }
76
- }
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
+ * See LICENSE.md in the project root for license terms and full copyright notice.
4
+ *--------------------------------------------------------------------------------------------*/
5
+ @import "~@itwin/core-react/lib/cjs/core-react/inputs/variables";
6
+ @import "~@itwin/core-react/lib/cjs/core-react/style/themecolors";
7
+
8
+ .components-time {
9
+ display: inline-flex;
10
+ flex-direction: row;
11
+ align-items: center;
12
+ justify-content: flex-start;
13
+ background-color: $buic-background-control;
14
+ border: 1px solid var(--iui-color-border-foreground);
15
+ border-radius: var(--iui-border-radius-1);
16
+ box-shadow: var(--buic-inputs-boxshadow) 0px 1px 1px inset;
17
+ box-sizing: border-box;
18
+
19
+ &.has-error {
20
+ color: var(--iui-color-text-negative);
21
+ }
22
+
23
+ .components-time-input {
24
+ box-sizing: border-box;
25
+ width: 2em;
26
+ text-align: center;
27
+ border: none;
28
+ box-shadow: none;
29
+ margin: 0;
30
+
31
+ &.iui-input {
32
+ padding-left: 0;
33
+ padding-right: 0;
34
+ }
35
+
36
+ &:focus {
37
+ outline: 0px;
38
+ border: 1px solid var(--iui-color-border-foreground);
39
+ border-radius: var(--iui-border-radius-1);
40
+ border-color: var(--buic-foreground-focus-border);
41
+ box-shadow: var(--buic-focus-boxshadow-gradient1) 0px 1px 1px,
42
+ var(--buic-focus-boxshadow-gradient2) 0px 0px 0px 2px;
43
+ z-index: 1;
44
+ /* bump z-index so drop shadow in not cut off by AM/PM */
45
+ }
46
+ }
47
+
48
+ .components-time-period-input {
49
+ box-sizing: border-box;
50
+ width: 3em;
51
+ text-align: center;
52
+ border: none;
53
+ padding-left: 0;
54
+ padding-right: 0;
55
+ box-shadow: none;
56
+ margin: 0;
57
+
58
+ &:focus {
59
+ outline: 0px;
60
+ border: 1px solid var(--iui-color-border-foreground);
61
+ border-radius: var(--iui-border-radius-1);
62
+ border-color: var(--buic-foreground-focus-border);
63
+ box-shadow: var(--buic-focus-boxshadow-gradient1) 0px 1px 1px,
64
+ var(--buic-focus-boxshadow-gradient2) 0px 0px 0px 2px;
65
+ }
66
+ }
67
+
68
+ .component-time-separator {
69
+ margin: 0;
70
+ padding: 0 1px;
71
+ }
72
+
73
+ .iui-input {
74
+ padding: $uicore-iui-input-padding;
75
+ }
76
+ }
@@ -3,8 +3,8 @@
3
3
  */
4
4
  import "./BooleanEditor.scss";
5
5
  import * as React from "react";
6
- import { PropertyValue } from "@itwin/appui-abstract";
7
- import { PropertyEditorProps, TypeEditor } from "./EditorContainer";
6
+ import type { PropertyValue } from "@itwin/appui-abstract";
7
+ import type { PropertyEditorProps, TypeEditor } from "./EditorContainer";
8
8
  import { PropertyEditorBase } from "./PropertyEditorManager";
9
9
  /** @internal */
10
10
  interface BooleanEditorState {
@@ -1 +1 @@
1
- {"version":3,"file":"BooleanEditor.d.ts","sourceRoot":"","sources":["../../../../src/components-react/editors/BooleanEditor.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,sBAAsB,CAAC;AAE9B,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,aAAa,EAA0C,MAAM,uBAAuB,CAAC;AAE9F,OAAO,EAAE,mBAAmB,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACpE,OAAO,EAAE,kBAAkB,EAAyB,MAAM,yBAAyB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,MAAM,SAAS,GAAG,IAAA,oBAAU,EAAC,wBAAwB,EAAE,2BAA2B,EAAE,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;QAC1G,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC;QACzC,MAAM,UAAU,GAAG,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC;QAE3C,OAAO,CACL,oBAAC,wBAAQ,IACP,GAAG,EAAE,IAAI,CAAC,aAAa,EACvB,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,EACzB,SAAS,EAAE,SAAS,EACpB,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,EACvB,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,IAAI,CAAC,oBAAoB,EACnC,QAAQ,EAAE,IAAI,CAAC,KAAK,CAAC,QAAQ,EAC7B,QAAQ,EAAE,UAAU,iBACR,4BAA4B,GAC/B,CACZ,CAAC;IACJ,CAAC;CACF;AApHD,sCAoHC;AAED;;;GAGG;AACH,MAAa,qBAAsB,SAAQ,0CAAkB;IAC3D,uBAAuB;IACvB,IAAoB,oBAAoB;QACtC,OAAO,KAAK,CAAC;IACf,CAAC;IAED,IAAW,SAAS;QAClB,OAAO,oBAAC,aAAa,OAAG,CAAC;IAC3B,CAAC;CACF;AATD,sDASC;AAED,6CAAqB,CAAC,cAAc,CAAC,kCAAiB,CAAC,IAAI,EAAE,qBAAqB,CAAC,CAAC;AACpF,6CAAqB,CAAC,cAAc,CAAC,kCAAiB,CAAC,OAAO,EAAE,qBAAqB,CAAC,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module PropertyEditors\r\n */\r\n\r\nimport \"./BooleanEditor.scss\";\r\nimport classnames from \"classnames\";\r\nimport * as React from \"react\";\r\nimport { PropertyValue, PropertyValueFormat, StandardTypeNames } from \"@itwin/appui-abstract\";\r\nimport { Checkbox } from \"@itwin/itwinui-react\";\r\nimport { PropertyEditorProps, TypeEditor } from \"./EditorContainer\";\r\nimport { PropertyEditorBase, PropertyEditorManager } from \"./PropertyEditorManager\";\r\n\r\n/** @internal */\r\ninterface BooleanEditorState {\r\n checkboxValue: boolean;\r\n isDisabled?: boolean;\r\n}\r\n\r\n/** BooleanEditor React component that is a property editor with checkbox input\r\n * @public\r\n */\r\nexport class BooleanEditor extends React.PureComponent<PropertyEditorProps, BooleanEditorState> implements TypeEditor {\r\n private _isMounted = false;\r\n private _inputElement = React.createRef<HTMLInputElement>();\r\n\r\n /** @internal */\r\n public override readonly state: Readonly<BooleanEditorState> = {\r\n checkboxValue: false,\r\n isDisabled: false,\r\n };\r\n\r\n public async getPropertyValue(): Promise<PropertyValue | undefined> {\r\n return this.getPropertyValueSync();\r\n }\r\n\r\n private getPropertyValueSync(): PropertyValue | undefined {\r\n const record = this.props.propertyRecord;\r\n let propertyValue: PropertyValue | undefined;\r\n\r\n // istanbul ignore else\r\n if (record && record.value.valueFormat === PropertyValueFormat.Primitive) {\r\n propertyValue = {\r\n valueFormat: PropertyValueFormat.Primitive,\r\n value: this.state.checkboxValue,\r\n displayValue: \"\",\r\n };\r\n }\r\n\r\n return propertyValue;\r\n }\r\n\r\n public get htmlElement(): HTMLElement | null {\r\n return this._inputElement.current;\r\n }\r\n\r\n public get hasFocus(): boolean {\r\n return document.activeElement === this._inputElement.current;\r\n }\r\n\r\n private _updateCheckboxValue = (e: React.ChangeEvent<HTMLInputElement>) => {\r\n // istanbul ignore else\r\n if (this._isMounted) {\r\n const checkboxValue = !!e.target.checked;\r\n\r\n this.setState({\r\n checkboxValue,\r\n }, () => {\r\n // istanbul ignore else\r\n if (this.props.propertyRecord && this.props.onCommit) {\r\n const propertyValue = this.getPropertyValueSync();\r\n // istanbul ignore else\r\n if (propertyValue !== undefined) {\r\n this.props.onCommit({ propertyRecord: this.props.propertyRecord, newValue: propertyValue });\r\n }\r\n }\r\n });\r\n }\r\n };\r\n\r\n /** @internal */\r\n public override componentDidMount() {\r\n this._isMounted = true;\r\n this.setStateFromProps();\r\n }\r\n\r\n /** @internal */\r\n public override componentWillUnmount() {\r\n this._isMounted = false;\r\n }\r\n\r\n /** @internal */\r\n public override componentDidUpdate(prevProps: PropertyEditorProps) {\r\n if (this.props.propertyRecord !== prevProps.propertyRecord) {\r\n this.setStateFromProps();\r\n }\r\n }\r\n\r\n private setStateFromProps() {\r\n const { propertyRecord } = this.props;\r\n let checkboxValue = false;\r\n let isDisabled = false;\r\n\r\n // istanbul ignore else\r\n if (propertyRecord && propertyRecord.value.valueFormat === PropertyValueFormat.Primitive) {\r\n const primitiveValue = propertyRecord.value.value;\r\n checkboxValue = primitiveValue as boolean;\r\n }\r\n\r\n // istanbul ignore else\r\n if (propertyRecord && propertyRecord.isDisabled)\r\n isDisabled = propertyRecord.isDisabled;\r\n\r\n // istanbul ignore else\r\n if (this._isMounted)\r\n this.setState({ checkboxValue, isDisabled });\r\n }\r\n\r\n /** @internal */\r\n public override render() {\r\n const className = classnames(\"components-cell-editor\", \"components-boolean-editor\", this.props.className);\r\n const checked = this.state.checkboxValue;\r\n const isDisabled = !!this.state.isDisabled;\r\n\r\n return (\r\n <Checkbox\r\n ref={this._inputElement}\r\n onBlur={this.props.onBlur}\r\n className={className}\r\n style={this.props.style}\r\n checked={checked}\r\n onChange={this._updateCheckboxValue}\r\n setFocus={this.props.setFocus}\r\n disabled={isDisabled}\r\n data-testid=\"components-checkbox-editor\">\r\n </Checkbox>\r\n );\r\n }\r\n}\r\n\r\n/** Boolean Property Editor registered for the \"bool\" and \"boolean\" type names.\r\n * It uses the [[BooleanEditor]] React component.\r\n * @public\r\n */\r\nexport class BooleanPropertyEditor extends PropertyEditorBase {\r\n // istanbul ignore next\r\n public override get containerHandlesBlur(): boolean {\r\n return false;\r\n }\r\n\r\n public get reactNode(): React.ReactNode {\r\n return <BooleanEditor />;\r\n }\r\n}\r\n\r\nPropertyEditorManager.registerEditor(StandardTypeNames.Bool, BooleanPropertyEditor);\r\nPropertyEditorManager.registerEditor(StandardTypeNames.Boolean, BooleanPropertyEditor);\r\n"]}
1
+ {"version":3,"file":"BooleanEditor.js","sourceRoot":"","sources":["../../../../src/components-react/editors/BooleanEditor.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,gCAA8B;AAC9B,4DAAoC;AACpC,6CAA+B;AAE/B,0DAA+E;AAC/E,wDAAgD;AAEhD,mEAAoF;AAQpF;;GAEG;AACH,MAAa,aAAc,SAAQ,KAAK,CAAC,aAAsD;IAA/F;;QACU,eAAU,GAAG,KAAK,CAAC;QACnB,kBAAa,GAAG,KAAK,CAAC,SAAS,EAAoB,CAAC;QAE5D,gBAAgB;QACS,UAAK,GAAiC;YAC7D,aAAa,EAAE,KAAK;YACpB,UAAU,EAAE,KAAK;SAClB,CAAC;QA8BM,yBAAoB,GAAG,CAAC,CAAsC,EAAE,EAAE;YACxE,uBAAuB;YACvB,IAAI,IAAI,CAAC,UAAU,EAAE;gBACnB,MAAM,aAAa,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC;gBAEzC,IAAI,CAAC,QAAQ,CAAC;oBACZ,aAAa;iBACd,EAAE,GAAG,EAAE;oBACN,uBAAuB;oBACvB,IAAI,IAAI,CAAC,KAAK,CAAC,cAAc,IAAI,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE;wBACpD,MAAM,aAAa,GAAG,IAAI,CAAC,oBAAoB,EAAE,CAAC;wBAClD,uBAAuB;wBACvB,IAAI,aAAa,KAAK,SAAS,EAAE;4BAC/B,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,cAAc,EAAE,IAAI,CAAC,KAAK,CAAC,cAAc,EAAE,QAAQ,EAAE,aAAa,EAAE,CA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AK,CAAC;IACf,CAAC;IAED,IAAW,SAAS;QAClB,OAAO,oBAAC,aAAa,OAAG,CAAC;IAC3B,CAAC;CACF;AATD,sDASC;AAED,6CAAqB,CAAC,cAAc,CAAC,kCAAiB,CAAC,IAAI,EAAE,qBAAqB,CAAC,CAAC;AACpF,6CAAqB,CAAC,cAAc,CAAC,kCAAiB,CAAC,OAAO,EAAE,qBAAqB,CAAC,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module PropertyEditors\n */\n\nimport \"./BooleanEditor.scss\";\nimport classnames from \"classnames\";\nimport * as React from \"react\";\nimport type { PropertyValue} from \"@itwin/appui-abstract\";\nimport { PropertyValueFormat, StandardTypeNames } from \"@itwin/appui-abstract\";\nimport { Checkbox } from \"@itwin/itwinui-react\";\nimport type { PropertyEditorProps, TypeEditor } from \"./EditorContainer\";\nimport { PropertyEditorBase, PropertyEditorManager } from \"./PropertyEditorManager\";\n\n/** @internal */\ninterface BooleanEditorState {\n checkboxValue: boolean;\n isDisabled?: boolean;\n}\n\n/** BooleanEditor React component that is a property editor with checkbox input\n * @public\n */\nexport class BooleanEditor extends React.PureComponent<PropertyEditorProps, BooleanEditorState> implements TypeEditor {\n private _isMounted = false;\n private _inputElement = React.createRef<HTMLInputElement>();\n\n /** @internal */\n public override readonly state: Readonly<BooleanEditorState> = {\n checkboxValue: false,\n isDisabled: false,\n };\n\n public async getPropertyValue(): Promise<PropertyValue | undefined> {\n return this.getPropertyValueSync();\n }\n\n private getPropertyValueSync(): PropertyValue | undefined {\n const record = this.props.propertyRecord;\n let propertyValue: PropertyValue | undefined;\n\n // istanbul ignore else\n if (record && record.value.valueFormat === PropertyValueFormat.Primitive) {\n propertyValue = {\n valueFormat: PropertyValueFormat.Primitive,\n value: this.state.checkboxValue,\n displayValue: \"\",\n };\n }\n\n return propertyValue;\n }\n\n public get htmlElement(): HTMLElement | null {\n return this._inputElement.current;\n }\n\n public get hasFocus(): boolean {\n return document.activeElement === this._inputElement.current;\n }\n\n private _updateCheckboxValue = (e: React.ChangeEvent<HTMLInputElement>) => {\n // istanbul ignore else\n if (this._isMounted) {\n const checkboxValue = !!e.target.checked;\n\n this.setState({\n checkboxValue,\n }, () => {\n // istanbul ignore else\n if (this.props.propertyRecord && this.props.onCommit) {\n const propertyValue = this.getPropertyValueSync();\n // istanbul ignore else\n if (propertyValue !== undefined) {\n this.props.onCommit({ propertyRecord: this.props.propertyRecord, newValue: propertyValue });\n }\n }\n });\n }\n };\n\n /** @internal */\n public override componentDidMount() {\n this._isMounted = true;\n this.setStateFromProps();\n }\n\n /** @internal */\n public override componentWillUnmount() {\n this._isMounted = false;\n }\n\n /** @internal */\n public override componentDidUpdate(prevProps: PropertyEditorProps) {\n if (this.props.propertyRecord !== prevProps.propertyRecord) {\n this.setStateFromProps();\n }\n }\n\n private setStateFromProps() {\n const { propertyRecord } = this.props;\n let checkboxValue = false;\n let isDisabled = false;\n\n // istanbul ignore else\n if (propertyRecord && propertyRecord.value.valueFormat === PropertyValueFormat.Primitive) {\n const primitiveValue = propertyRecord.value.value;\n checkboxValue = primitiveValue as boolean;\n }\n\n // istanbul ignore else\n if (propertyRecord && propertyRecord.isDisabled)\n isDisabled = propertyRecord.isDisabled;\n\n // istanbul ignore else\n if (this._isMounted)\n this.setState({ checkboxValue, isDisabled });\n }\n\n /** @internal */\n public override render() {\n const className = classnames(\"components-cell-editor\", \"components-boolean-editor\", this.props.className);\n const checked = this.state.checkboxValue;\n const isDisabled = !!this.state.isDisabled;\n\n return (\n <Checkbox\n ref={this._inputElement}\n onBlur={this.props.onBlur}\n className={className}\n style={this.props.style}\n checked={checked}\n onChange={this._updateCheckboxValue}\n setFocus={this.props.setFocus}\n disabled={isDisabled}\n data-testid=\"components-checkbox-editor\">\n </Checkbox>\n );\n }\n}\n\n/** Boolean Property Editor registered for the \"bool\" and \"boolean\" type names.\n * It uses the [[BooleanEditor]] React component.\n * @public\n */\nexport class BooleanPropertyEditor extends PropertyEditorBase {\n // istanbul ignore next\n public override get containerHandlesBlur(): boolean {\n return false;\n }\n\n public get reactNode(): React.ReactNode {\n return <BooleanEditor />;\n }\n}\n\nPropertyEditorManager.registerEditor(StandardTypeNames.Bool, BooleanPropertyEditor);\nPropertyEditorManager.registerEditor(StandardTypeNames.Boolean, BooleanPropertyEditor);\n"]}
@@ -1,22 +1,22 @@
1
- /*---------------------------------------------------------------------------------------------
2
- * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
- * See LICENSE.md in the project root for license terms and full copyright notice.
4
- *--------------------------------------------------------------------------------------------*/
5
-
6
- $checkbox-size: calc(var(--iui-font-size-1) * 1.2);
7
-
8
- .components-boolean-editor {
9
- height: $checkbox-size;
10
- width: $checkbox-size;
11
- margin-left: 0px;
12
-
13
- &.components-cell-editor {
14
- border: none;
15
- }
16
- }
17
-
18
- .components-property-list--horizontal {
19
- .components-boolean-editor {
20
- margin-left: var(--iui-size-xs); // Clear the resizer in the PropertyGrid
21
- }
22
- }
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
+ * See LICENSE.md in the project root for license terms and full copyright notice.
4
+ *--------------------------------------------------------------------------------------------*/
5
+
6
+ $checkbox-size: calc(var(--iui-font-size-1) * 1.2);
7
+
8
+ .components-boolean-editor {
9
+ height: $checkbox-size;
10
+ width: $checkbox-size;
11
+ margin-left: 0px;
12
+
13
+ &.components-cell-editor {
14
+ border: none;
15
+ }
16
+ }
17
+
18
+ .components-property-list--horizontal {
19
+ .components-boolean-editor {
20
+ margin-left: var(--iui-size-xs); // Clear the resizer in the PropertyGrid
21
+ }
22
+ }
@@ -3,8 +3,8 @@
3
3
  */
4
4
  import "./CustomNumberEditor.scss";
5
5
  import * as React from "react";
6
- import { PropertyValue } from "@itwin/appui-abstract";
7
- import { PropertyEditorProps, TypeEditor } from "./EditorContainer";
6
+ import type { PropertyValue } from "@itwin/appui-abstract";
7
+ import type { PropertyEditorProps, TypeEditor } from "./EditorContainer";
8
8
  import { PropertyEditorBase } from "./PropertyEditorManager";
9
9
  /** @internal */
10
10
  interface CustomNumberEditorState {
@@ -1 +1 @@
1
- {"version":3,"file":"CustomNumberEditor.d.ts","sourceRoot":"","sources":["../../../../src/components-react/editors/CustomNumberEditor.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAIH,OAAO,2BAA2B,CAAC;AAEnC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAEW,aAAa,EAC9B,MAAM,uBAAuB,CAAC;AAK/B,OAAO,EAAE,mBAAmB,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACpE,OAAO,EAAE,kBAAkB,EAAyB,MAAM,yBAAyB,CAAC;AAEpF,gBAAgB;AAChB,UAAU,uBAAuB;IAC/B,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,qBAAa,kBAAmB,SAAQ,KAAK,CAAC,aAAa,CAAC,mBAAmB,EAAE,uBAAuB,CAAE,YAAW,UAAU;IAC7H,OAAO,CAAC,UAAU,CAAS;IAC3B,OAAO,CAAC,aAAa,CAA0C;IAC/D,OAAO,CAAC,aAAa,CAAuC;IAC5D,OAAO,CAAC,eAAe,CAA4B;IAEnD,gBAAgB;IAChB,SAAyB,KAAK,EAAE,QAAQ,CAAC,uBAAuB,CAAC,CAE/D;IAEW,gBAAgB,IAAI,OAAO,CAAC,aAAa,GAAG,SAAS,CAAC;IAiDnE,IAAW,WAAW,IAAI,WAAW,GAAG,IAAI,CAE3C;IAED,IAAW,QAAQ,IAAI,OAAO,CAE7B;IAED,OAAO,CAAC,cAAc;IAWtB,OAAO,CAAC,kBAAkB;IA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C;IAC5D,OAAO,CAAC,eAAe,CAA4B;IAEnD,gBAAgB;IAChB,SAAyB,KAAK,EAAE,QAAQ,CAAC,uBAAuB,CAAC,CAE/D;IAEW,gBAAgB,IAAI,OAAO,CAAC,aAAa,GAAG,SAAS,CAAC;IAiDnE,IAAW,WAAW,IAAI,WAAW,GAAG,IAAI,CAE3C;IAED,IAAW,QAAQ,IAAI,OAAO,CAE7B;IAED,OAAO,CAAC,cAAc;IAWtB,OAAO,CAAC,kBAAkB;IAe1B,OAAO,CAAC,iBAAiB,CAEvB;IAEF,gBAAgB;IACA,iBAAiB;IAKjC,gBAAgB;IACA,oBAAoB;IAIpC,gBAAgB;IACA,kBAAkB,CAAC,SAAS,EAAE,mBAAmB;IAMjE,OAAO,CAAC,uBAAuB;YAqBjB,iBAAiB;IAuD/B,OAAO,CAAC,6BAA6B;IAKrC,OAAO,CAAC,WAAW,CAmBjB;IAGF,OAAO,CAAC,QAAQ,CAEd;IAEF,gBAAgB;IACA,MAAM,IAAI,KAAK,CAAC,SAAS;CAqD1C;AAED;;;GAGG;AACH,qBAAa,0BAA2B,SAAQ,kBAAkB;IAChE,IAAW,SAAS,IAAI,KAAK,CAAC,SAAS,CAEtC;IACD,IAAoB,sBAAsB,IAAI,OAAO,CAEpD;CACF"}
@@ -60,9 +60,10 @@ class CustomNumberEditor extends React.PureComponent {
60
60
  this._applyUpdatedValue(e.target.value);
61
61
  };
62
62
  this._onKeyPress = (e) => {
63
+ var _a;
63
64
  // istanbul ignore else
64
65
  if (e.key === appui_abstract_1.SpecialKey.Escape) {
65
- const initialDisplayValue = (this._lastValidValue && this._lastValidValue.displayValue) ?? ( /* istanbul ignore next */this._getInitialDisplayValue());
66
+ const initialDisplayValue = (_a = (this._lastValidValue && this._lastValidValue.displayValue)) !== null && _a !== void 0 ? _a : ( /* istanbul ignore next */this._getInitialDisplayValue());
66
67
  if (initialDisplayValue !== this.state.inputValue) {
67
68
  e.preventDefault();
68
69
  e.stopPropagation();
@@ -240,7 +241,8 @@ class CustomNumberEditor extends React.PureComponent {
240
241
  this.setState({ inputValue: initialDisplayValue, size, maxLength, iconSpec });
241
242
  }
242
243
  _resetToLastValidDisplayValue() {
243
- const initialDisplayValue = (this._lastValidValue && this._lastValidValue.displayValue) ?? ( /* istanbul ignore next */this._getInitialDisplayValue());
244
+ var _a;
245
+ const initialDisplayValue = (_a = (this._lastValidValue && this._lastValidValue.displayValue)) !== null && _a !== void 0 ? _a : ( /* istanbul ignore next */this._getInitialDisplayValue());
244
246
  this.setState({ inputValue: initialDisplayValue });
245
247
  }
246
248
  /** @internal */
@@ -1 +1 @@
1
- {"version":3,"file":"CustomNumberEditor.js","sourceRoot":"","sources":["../../../../src/components-react/editors/CustomNumberEditor.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,oCAAoC;AAEpC,qCAAmC;AACnC,4DAAoC;AACpC,6CAA+B;AAC/B,sDAA6C;AAC7C,0DAG+B;AAC/B,kDAAoD;AACpD,wDAAyD;AAEzD,kDAA+C;AAE/C,mEAAoF;AAUpF;;GAEG;AACH,MAAa,kBAAmB,SAAQ,KAAK,CAAC,aAA2D;IAAzG;;QACU,eAAU,GAAG,KAAK,CAAC;QAEnB,kBAAa,GAAG,KAAK,CAAC,SAAS,EAAoB,CAAC;QAG5D,gBAAgB;QACS,UAAK,GAAsC;YAClE,UAAU,EAAE,EAAE;SACf,CAAC;QAqFM,sBAAiB,GAAG,CAAC,CAAsC,EAAE,EAAE;YACrE,IAAI,CAAC,kBAAkB,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QAC1C,CAAC,CAAC;QAqGM,gBAAW,GAAG,CAAC,CAAwC,EAAE,EAAE;YACjE,uBAAuB;YACvB,IAAI,CAAC,CAAC,GAAG,KAAK,2BAAU,CAAC,MAAM,EAAE;gBAC/B,MAAM,mBAAmB,GAAG,CAAC,IAAI,CAAC,eAAe,IAAK,I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AAI,CAAC,iBAAiB;YAChC,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM;YACzB,OAAO,EAAE,IAAI,CAAC,QAAQ;YACtB,QAAQ,EAAE,IAAI,CAAC,cAAc,EAAE;YAC/B,SAAS,EAAE,IAAI,CAAC,WAAW;SAC5B,CAAC;QAEF,IAAI,SAA0B,CAAC;QAC/B,IAAI,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE;YACvB,MAAM,IAAI,GAAG,oBAAC,iBAAI,IAAC,QAAQ,EAAE,IAAI,CAAC,KAAK,CAAC,QAAQ,GAAI,CAAC;YACrD,SAAS,GAAG,CACV,oBAAC,sBAAS,OACJ,UAAU,EACd,GAAG,EAAE,IAAI,CAAC,aAAa,EACvB,IAAI,EAAE,IAAI,iBACE,gCAAgC,GAC5C,CACH,CAAC;SACH;aAAM;YACL,uFAAuF;YACvF,SAAS,GAAG,CACV,oBAAC,qBAAK,OACA,UAAU,EACd,GAAG,EAAE,IAAI,CAAC,aAAa,iBACX,gCAAgC,EAC5C,IAAI,EAAC,OAAO,GACZ,CACH,CAAC;SACH;QAED,OAAO,SAAS,CAAC;IACnB,CAAC;CACF;AArRD,gDAqRC;AAED;;;GAGG;AACH,MAAa,0BAA2B,SAAQ,0CAAkB;IAChE,IAAW,SAAS;QAClB,OAAO,oBAAC,kBAAkB,OAAG,CAAC;IAChC,CAAC;IACD,IAAoB,sBAAsB;QACxC,OAAO,KAAK,CAAC;IACf,CAAC;CACF;AAPD,gEAOC;AACD,6CAAqB,CAAC,cAAc,CAAC,kCAAiB,CAAC,MAAM,EAAE,0BAA0B,EAAE,oCAAmB,CAAC,YAAY,CAAC,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module PropertyEditors\r\n */\r\n\r\n// cSpell:ignore customnumber testid\r\n\r\nimport \"./CustomNumberEditor.scss\";\r\nimport classnames from \"classnames\";\r\nimport * as React from \"react\";\r\nimport { Logger } from \"@itwin/core-bentley\";\r\nimport {\r\n CustomFormattedNumberParams, IconEditorParams, InputEditorSizeParams, MessageSeverity, PrimitiveValue, PropertyEditorParams, PropertyEditorParamTypes,\r\n PropertyRecord, PropertyValue, PropertyValueFormat, SpecialKey, StandardEditorNames, StandardTypeNames, UiAdmin,\r\n} from \"@itwin/appui-abstract\";\r\nimport { Icon, IconInput } from \"@itwin/core-react\";\r\nimport { Input, InputProps } from \"@itwin/itwinui-react\";\r\n\r\nimport { UiComponents } from \"../UiComponents\";\r\nimport { PropertyEditorProps, TypeEditor } from \"./EditorContainer\";\r\nimport { PropertyEditorBase, PropertyEditorManager } from \"./PropertyEditorManager\";\r\n\r\n/** @internal */\r\ninterface CustomNumberEditorState {\r\n inputValue: string;\r\n size?: number;\r\n maxLength?: number;\r\n iconSpec?: string;\r\n}\r\n\r\n/** CustomNumberEditor is a React component that is a property editor for numbers that specify custom formatting and parsing functions.\r\n * @alpha\r\n */\r\nexport class CustomNumberEditor extends React.PureComponent<PropertyEditorProps, CustomNumberEditorState> implements TypeEditor {\r\n private _isMounted = false;\r\n private _formatParams: CustomFormattedNumberParams | undefined;\r\n private _inputElement = React.createRef<HTMLInputElement>();\r\n private _lastValidValue: PropertyValue | undefined;\r\n\r\n /** @internal */\r\n public override readonly state: Readonly<CustomNumberEditorState> = {\r\n inputValue: \"\",\r\n };\r\n\r\n public async getPropertyValue(): Promise<PropertyValue | undefined> {\r\n const record = this.props.propertyRecord as PropertyRecord;\r\n let propertyValue: PropertyValue | undefined;\r\n\r\n if (record.isReadonly) {\r\n return {\r\n valueFormat: PropertyValueFormat.Primitive,\r\n value: (record.value as PrimitiveValue).value,\r\n displayValue: (record.value as PrimitiveValue).displayValue,\r\n };\r\n }\r\n\r\n // istanbul ignore else\r\n if (record && record.value.valueFormat === PropertyValueFormat.Primitive) {\r\n const parseResults = (this._formatParams as CustomFormattedNumberParams).parseFunction(this.state.inputValue);\r\n if (!parseResults.parseError && undefined !== parseResults.value) {\r\n const newDisplayValue = (this._formatParams as CustomFormattedNumberParams).formatFunction(parseResults.value as number);\r\n propertyValue = {\r\n valueFormat: PropertyValueFormat.Primitive,\r\n value: parseResults.value,\r\n displayValue: newDisplayValue,\r\n };\r\n this._lastValidValue = { ...propertyValue };\r\n // make sure the text in the input item matches the latest formatted text... this could get out if the input string say 1.5 === the display string of 1'-6\"\r\n // istanbul ignore else\r\n if (newDisplayValue !== this.state.inputValue) {\r\n this.setState({ inputValue: newDisplayValue });\r\n }\r\n } else {\r\n // istanbul ignore else\r\n if (this.htmlElement) {\r\n UiAdmin.messagePresenter.displayInputFieldMessage(this.htmlElement, MessageSeverity.Error, parseResults.parseError ? parseResults.parseError : /* istanbul ignore next */ UiComponents.translate(\"errors.unable-to-parse-quantity\"));\r\n this.htmlElement.focus();\r\n } else {\r\n UiAdmin.messagePresenter.displayMessage(MessageSeverity.Error, parseResults.parseError ? parseResults.parseError : /* istanbul ignore next */ UiComponents.translate(\"errors.unable-to-parse-quantity\"));\r\n }\r\n\r\n const displayValue = (record.value.displayValue && record.value.displayValue.length > 0) ? record.value.displayValue : /* istanbul ignore next */ (this._formatParams as CustomFormattedNumberParams).formatFunction(record.value.value as number);\r\n propertyValue = this._lastValidValue ? { ...this._lastValidValue } : /* istanbul ignore next */ {\r\n valueFormat: PropertyValueFormat.Primitive,\r\n value: record.value.value,\r\n displayValue,\r\n };\r\n }\r\n }\r\n\r\n return propertyValue;\r\n }\r\n\r\n public get htmlElement(): HTMLElement | null {\r\n return this._inputElement.current;\r\n }\r\n\r\n public get hasFocus(): boolean {\r\n return document.activeElement === this._inputElement.current;\r\n }\r\n\r\n private shouldSetFocus(): boolean {\r\n if (!this.props.setFocus)\r\n return false;\r\n\r\n const record = this.props.propertyRecord as PropertyRecord;\r\n const disabled = (record && !record.isDisabled) ? false : true;\r\n const readonly = (record && !record.isReadonly) ? false : true;\r\n\r\n return (!disabled && !readonly);\r\n }\r\n\r\n private _applyUpdatedValue(userInput: string) {\r\n const record = this.props.propertyRecord as PropertyRecord;\r\n const readonly = (record && !record.isReadonly) ? false : true;\r\n const disabled = (record && !record.isDisabled) ? false : true;\r\n\r\n if (readonly || disabled)\r\n return;\r\n\r\n // istanbul ignore else\r\n if (this._isMounted)\r\n this.setState({\r\n inputValue: userInput,\r\n });\r\n }\r\n\r\n private _updateInputValue = (e: React.ChangeEvent<HTMLInputElement>) => {\r\n this._applyUpdatedValue(e.target.value);\r\n };\r\n\r\n /** @internal */\r\n public override componentDidMount() {\r\n this._isMounted = true;\r\n this.setStateFromProps(); // eslint-disable-line @typescript-eslint/no-floating-promises\r\n }\r\n\r\n /** @internal */\r\n public override componentWillUnmount() {\r\n this._isMounted = false;\r\n }\r\n\r\n /** @internal */\r\n public override componentDidUpdate(prevProps: PropertyEditorProps) {\r\n if (this.props.propertyRecord !== prevProps.propertyRecord) {\r\n this.setStateFromProps(); // eslint-disable-line @typescript-eslint/no-floating-promises\r\n }\r\n }\r\n\r\n private _getInitialDisplayValue(): string {\r\n const record = this.props.propertyRecord;\r\n let initialDisplayValue = \"\";\r\n let numberValue = 0;\r\n // istanbul ignore else\r\n if (record) {\r\n // istanbul ignore else\r\n if (record.value.valueFormat === PropertyValueFormat.Primitive) {\r\n const primitiveValue = record.value;\r\n numberValue = (undefined !== primitiveValue.value) ? primitiveValue.value as number : /* istanbul ignore next */ 0;\r\n // istanbul ignore else\r\n if (primitiveValue.displayValue)\r\n initialDisplayValue = primitiveValue.displayValue;\r\n else\r\n initialDisplayValue = (this._formatParams as CustomFormattedNumberParams).formatFunction(numberValue);\r\n }\r\n }\r\n\r\n return initialDisplayValue;\r\n }\r\n\r\n private async setStateFromProps() {\r\n const record = this.props.propertyRecord;\r\n // istanbul ignore next\r\n if (!record || !record.property) {\r\n Logger.logError(UiComponents.loggerCategory(this), \"PropertyRecord must be defined to use CustomNumberPropertyEditor\");\r\n // eslint-disable-next-line no-console\r\n // console.log(\"PropertyRecord must be defined to use CustomNumberPropertyEditor\");\r\n return;\r\n }\r\n // istanbul ignore else\r\n if (record.property && record.property.editor && record.property.editor.params) {\r\n this._formatParams = record.property.editor.params.find((param: PropertyEditorParams) => param.type === PropertyEditorParamTypes.CustomFormattedNumber) as CustomFormattedNumberParams;\r\n }\r\n\r\n if (!this._formatParams) {\r\n Logger.logError(UiComponents.loggerCategory(this), `CustomFormattedNumberParams must be defined for property ${record.property.name}`);\r\n // eslint-disable-next-line no-console\r\n // console.log(`CustomFormattedNumberParams must be defined for property ${record!.property!.name}`);\r\n return;\r\n }\r\n\r\n const initialDisplayValue = this._getInitialDisplayValue();\r\n this._lastValidValue = {\r\n valueFormat: PropertyValueFormat.Primitive,\r\n value: (record.value as PrimitiveValue).value,\r\n displayValue: initialDisplayValue,\r\n };\r\n let size: number | undefined;\r\n let maxLength: number | undefined;\r\n let iconSpec: string | undefined;\r\n\r\n // istanbul ignore else\r\n if (record.property && record.property.editor && record.property.editor.params) {\r\n const editorSizeParams = record.property.editor.params.find((param: PropertyEditorParams) => param.type === PropertyEditorParamTypes.InputEditorSize) as InputEditorSizeParams;\r\n // istanbul ignore else\r\n if (editorSizeParams) {\r\n // istanbul ignore else\r\n if (editorSizeParams.size)\r\n size = editorSizeParams.size;\r\n // istanbul ignore else\r\n if (editorSizeParams.maxLength)\r\n maxLength = editorSizeParams.maxLength;\r\n }\r\n\r\n const iconParams = record.property.editor.params.find((param: PropertyEditorParams) => param.type === PropertyEditorParamTypes.Icon) as IconEditorParams;\r\n if (iconParams) {\r\n iconSpec = iconParams.definition.iconSpec;\r\n }\r\n }\r\n\r\n // istanbul ignore else\r\n if (this._isMounted)\r\n this.setState({ inputValue: initialDisplayValue, size, maxLength, iconSpec });\r\n }\r\n\r\n private _resetToLastValidDisplayValue() {\r\n const initialDisplayValue = (this._lastValidValue && (this._lastValidValue as PrimitiveValue).displayValue) ?? (/* istanbul ignore next */ this._getInitialDisplayValue());\r\n this.setState({ inputValue: initialDisplayValue });\r\n }\r\n\r\n private _onKeyPress = (e: React.KeyboardEvent<HTMLInputElement>) => {\r\n // istanbul ignore else\r\n if (e.key === SpecialKey.Escape) {\r\n const initialDisplayValue = (this._lastValidValue && (this._lastValidValue as PrimitiveValue).displayValue) ?? (/* istanbul ignore next */ this._getInitialDisplayValue());\r\n if (initialDisplayValue !== this.state.inputValue) {\r\n e.preventDefault();\r\n e.stopPropagation();\r\n this._resetToLastValidDisplayValue();\r\n } else {\r\n // istanbul ignore else\r\n if (this.props.onCancel)\r\n this.props.onCancel();\r\n }\r\n }\r\n\r\n // istanbul ignore else\r\n if (e.key !== SpecialKey.Enter) {\r\n UiAdmin.messagePresenter.closeInputFieldMessage();\r\n }\r\n };\r\n\r\n // istanbul ignore next\r\n private _onFocus = (e: React.FocusEvent<HTMLInputElement>) => {\r\n e.target.select();\r\n };\r\n\r\n /** @internal */\r\n public override render(): React.ReactNode {\r\n const minSize = this.state.size ? this.state.size : 8;\r\n const minWidthStyle: React.CSSProperties = {\r\n minWidth: `${minSize * 0.75}em`,\r\n };\r\n const record = this.props.propertyRecord as PropertyRecord;\r\n if (!record || !this._formatParams)\r\n return null;\r\n\r\n const readOnly = !record.isReadonly ? false : true;\r\n const disabled = !record.isDisabled ? false : true;\r\n\r\n const className = classnames(\"components-cell-editor\", \"components-customnumber-editor\", this.props.className);\r\n\r\n const inputProps: Omit<InputProps, \"size\"> = { // eslint-disable-line deprecation/deprecation\r\n className,\r\n style: this.props.style ? this.props.style : minWidthStyle,\r\n readOnly,\r\n disabled,\r\n maxLength: this.state.maxLength,\r\n value: this.state.inputValue,\r\n onChange: this._updateInputValue,\r\n onBlur: this.props.onBlur,\r\n onFocus: this._onFocus,\r\n setFocus: this.shouldSetFocus(),\r\n onKeyDown: this._onKeyPress,\r\n };\r\n\r\n let reactNode: React.ReactNode;\r\n if (this.state.iconSpec) {\r\n const icon = <Icon iconSpec={this.state.iconSpec} />;\r\n reactNode = (\r\n <IconInput\r\n {...inputProps}\r\n ref={this._inputElement}\r\n icon={icon}\r\n data-testid=\"components-customnumber-editor\"\r\n />\r\n );\r\n } else {\r\n // NEEDSWORK: still using core-react Input component because of `nativeKeyHandler` prop\r\n reactNode = (\r\n <Input\r\n {...inputProps}\r\n ref={this._inputElement}\r\n data-testid=\"components-customnumber-editor\"\r\n size=\"small\"\r\n />\r\n );\r\n }\r\n\r\n return reactNode;\r\n }\r\n}\r\n\r\n/** Custom Property Editor registered for the \"number\" type name and the \"number-custom\" editor name.\r\n * It uses the [[CustomNumberEditor]] React component.\r\n * @alpha\r\n */\r\nexport class CustomNumberPropertyEditor extends PropertyEditorBase {\r\n public get reactNode(): React.ReactNode {\r\n return <CustomNumberEditor />;\r\n }\r\n public override get containerHandlesEscape(): boolean {\r\n return false;\r\n }\r\n}\r\nPropertyEditorManager.registerEditor(StandardTypeNames.Number, CustomNumberPropertyEditor, StandardEditorNames.NumberCustom);\r\n"]}
1
+ {"version":3,"file":"CustomNumberEditor.js","sourceRoot":"","sources":["../../../../src/components-react/editors/CustomNumberEditor.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,oCAAoC;AAEpC,qCAAmC;AACnC,4DAAoC;AACpC,6CAA+B;AAC/B,sDAA6C;AAI7C,0DAC+B;AAC/B,kDAAoD;AAEpD,wDAA6C;AAE7C,kDAA+C;AAE/C,mEAAoF;AAUpF;;GAEG;AACH,MAAa,kBAAmB,SAAQ,KAAK,CAAC,aAA2D;IAAzG;;QACU,eAAU,GAAG,KAAK,CAAC;QAEnB,kBAAa,GAAG,KAAK,CAAC,SAAS,EAAoB,CAAC;QAG5D,gBAAgB;QACS,UAAK,GAAsC;YAClE,UAAU,EAAE,EAAE;SACf,CAAC;QAqFM,sBAAiB,GAAG,CAAC,CAAsC,EAAE,EAAE;YACrE,IAAI,CAAC,kBAAkB,CAAC,CAAC,CAAC,MAAM,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AA0B,EAAE,oCAAmB,CAAC,YAAY,CAAC,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module PropertyEditors\n */\n\n// cSpell:ignore customnumber testid\n\nimport \"./CustomNumberEditor.scss\";\nimport classnames from \"classnames\";\nimport * as React from \"react\";\nimport { Logger } from \"@itwin/core-bentley\";\nimport type {\n CustomFormattedNumberParams, IconEditorParams, InputEditorSizeParams, PrimitiveValue, PropertyEditorParams,\n PropertyRecord, PropertyValue} from \"@itwin/appui-abstract\";\nimport { MessageSeverity, PropertyEditorParamTypes, PropertyValueFormat, SpecialKey, StandardEditorNames, StandardTypeNames, UiAdmin,\n} from \"@itwin/appui-abstract\";\nimport { Icon, IconInput } from \"@itwin/core-react\";\nimport type { InputProps } from \"@itwin/itwinui-react\";\nimport { Input } from \"@itwin/itwinui-react\";\n\nimport { UiComponents } from \"../UiComponents\";\nimport type { PropertyEditorProps, TypeEditor } from \"./EditorContainer\";\nimport { PropertyEditorBase, PropertyEditorManager } from \"./PropertyEditorManager\";\n\n/** @internal */\ninterface CustomNumberEditorState {\n inputValue: string;\n size?: number;\n maxLength?: number;\n iconSpec?: string;\n}\n\n/** CustomNumberEditor is a React component that is a property editor for numbers that specify custom formatting and parsing functions.\n * @alpha\n */\nexport class CustomNumberEditor extends React.PureComponent<PropertyEditorProps, CustomNumberEditorState> implements TypeEditor {\n private _isMounted = false;\n private _formatParams: CustomFormattedNumberParams | undefined;\n private _inputElement = React.createRef<HTMLInputElement>();\n private _lastValidValue: PropertyValue | undefined;\n\n /** @internal */\n public override readonly state: Readonly<CustomNumberEditorState> = {\n inputValue: \"\",\n };\n\n public async getPropertyValue(): Promise<PropertyValue | undefined> {\n const record = this.props.propertyRecord as PropertyRecord;\n let propertyValue: PropertyValue | undefined;\n\n if (record.isReadonly) {\n return {\n valueFormat: PropertyValueFormat.Primitive,\n value: (record.value as PrimitiveValue).value,\n displayValue: (record.value as PrimitiveValue).displayValue,\n };\n }\n\n // istanbul ignore else\n if (record && record.value.valueFormat === PropertyValueFormat.Primitive) {\n const parseResults = (this._formatParams as CustomFormattedNumberParams).parseFunction(this.state.inputValue);\n if (!parseResults.parseError && undefined !== parseResults.value) {\n const newDisplayValue = (this._formatParams as CustomFormattedNumberParams).formatFunction(parseResults.value as number);\n propertyValue = {\n valueFormat: PropertyValueFormat.Primitive,\n value: parseResults.value,\n displayValue: newDisplayValue,\n };\n this._lastValidValue = { ...propertyValue };\n // make sure the text in the input item matches the latest formatted text... this could get out if the input string say 1.5 === the display string of 1'-6\"\n // istanbul ignore else\n if (newDisplayValue !== this.state.inputValue) {\n this.setState({ inputValue: newDisplayValue });\n }\n } else {\n // istanbul ignore else\n if (this.htmlElement) {\n UiAdmin.messagePresenter.displayInputFieldMessage(this.htmlElement, MessageSeverity.Error, parseResults.parseError ? parseResults.parseError : /* istanbul ignore next */ UiComponents.translate(\"errors.unable-to-parse-quantity\"));\n this.htmlElement.focus();\n } else {\n UiAdmin.messagePresenter.displayMessage(MessageSeverity.Error, parseResults.parseError ? parseResults.parseError : /* istanbul ignore next */ UiComponents.translate(\"errors.unable-to-parse-quantity\"));\n }\n\n const displayValue = (record.value.displayValue && record.value.displayValue.length > 0) ? record.value.displayValue : /* istanbul ignore next */ (this._formatParams as CustomFormattedNumberParams).formatFunction(record.value.value as number);\n propertyValue = this._lastValidValue ? { ...this._lastValidValue } : /* istanbul ignore next */ {\n valueFormat: PropertyValueFormat.Primitive,\n value: record.value.value,\n displayValue,\n };\n }\n }\n\n return propertyValue;\n }\n\n public get htmlElement(): HTMLElement | null {\n return this._inputElement.current;\n }\n\n public get hasFocus(): boolean {\n return document.activeElement === this._inputElement.current;\n }\n\n private shouldSetFocus(): boolean {\n if (!this.props.setFocus)\n return false;\n\n const record = this.props.propertyRecord as PropertyRecord;\n const disabled = (record && !record.isDisabled) ? false : true;\n const readonly = (record && !record.isReadonly) ? false : true;\n\n return (!disabled && !readonly);\n }\n\n private _applyUpdatedValue(userInput: string) {\n const record = this.props.propertyRecord as PropertyRecord;\n const readonly = (record && !record.isReadonly) ? false : true;\n const disabled = (record && !record.isDisabled) ? false : true;\n\n if (readonly || disabled)\n return;\n\n // istanbul ignore else\n if (this._isMounted)\n this.setState({\n inputValue: userInput,\n });\n }\n\n private _updateInputValue = (e: React.ChangeEvent<HTMLInputElement>) => {\n this._applyUpdatedValue(e.target.value);\n };\n\n /** @internal */\n public override componentDidMount() {\n this._isMounted = true;\n this.setStateFromProps(); // eslint-disable-line @typescript-eslint/no-floating-promises\n }\n\n /** @internal */\n public override componentWillUnmount() {\n this._isMounted = false;\n }\n\n /** @internal */\n public override componentDidUpdate(prevProps: PropertyEditorProps) {\n if (this.props.propertyRecord !== prevProps.propertyRecord) {\n this.setStateFromProps(); // eslint-disable-line @typescript-eslint/no-floating-promises\n }\n }\n\n private _getInitialDisplayValue(): string {\n const record = this.props.propertyRecord;\n let initialDisplayValue = \"\";\n let numberValue = 0;\n // istanbul ignore else\n if (record) {\n // istanbul ignore else\n if (record.value.valueFormat === PropertyValueFormat.Primitive) {\n const primitiveValue = record.value;\n numberValue = (undefined !== primitiveValue.value) ? primitiveValue.value as number : /* istanbul ignore next */ 0;\n // istanbul ignore else\n if (primitiveValue.displayValue)\n initialDisplayValue = primitiveValue.displayValue;\n else\n initialDisplayValue = (this._formatParams as CustomFormattedNumberParams).formatFunction(numberValue);\n }\n }\n\n return initialDisplayValue;\n }\n\n private async setStateFromProps() {\n const record = this.props.propertyRecord;\n // istanbul ignore next\n if (!record || !record.property) {\n Logger.logError(UiComponents.loggerCategory(this), \"PropertyRecord must be defined to use CustomNumberPropertyEditor\");\n // eslint-disable-next-line no-console\n // console.log(\"PropertyRecord must be defined to use CustomNumberPropertyEditor\");\n return;\n }\n // istanbul ignore else\n if (record.property && record.property.editor && record.property.editor.params) {\n this._formatParams = record.property.editor.params.find((param: PropertyEditorParams) => param.type === PropertyEditorParamTypes.CustomFormattedNumber) as CustomFormattedNumberParams;\n }\n\n if (!this._formatParams) {\n Logger.logError(UiComponents.loggerCategory(this), `CustomFormattedNumberParams must be defined for property ${record.property.name}`);\n // eslint-disable-next-line no-console\n // console.log(`CustomFormattedNumberParams must be defined for property ${record!.property!.name}`);\n return;\n }\n\n const initialDisplayValue = this._getInitialDisplayValue();\n this._lastValidValue = {\n valueFormat: PropertyValueFormat.Primitive,\n value: (record.value as PrimitiveValue).value,\n displayValue: initialDisplayValue,\n };\n let size: number | undefined;\n let maxLength: number | undefined;\n let iconSpec: string | undefined;\n\n // istanbul ignore else\n if (record.property && record.property.editor && record.property.editor.params) {\n const editorSizeParams = record.property.editor.params.find((param: PropertyEditorParams) => param.type === PropertyEditorParamTypes.InputEditorSize) as InputEditorSizeParams;\n // istanbul ignore else\n if (editorSizeParams) {\n // istanbul ignore else\n if (editorSizeParams.size)\n size = editorSizeParams.size;\n // istanbul ignore else\n if (editorSizeParams.maxLength)\n maxLength = editorSizeParams.maxLength;\n }\n\n const iconParams = record.property.editor.params.find((param: PropertyEditorParams) => param.type === PropertyEditorParamTypes.Icon) as IconEditorParams;\n if (iconParams) {\n iconSpec = iconParams.definition.iconSpec;\n }\n }\n\n // istanbul ignore else\n if (this._isMounted)\n this.setState({ inputValue: initialDisplayValue, size, maxLength, iconSpec });\n }\n\n private _resetToLastValidDisplayValue() {\n const initialDisplayValue = (this._lastValidValue && (this._lastValidValue as PrimitiveValue).displayValue) ?? (/* istanbul ignore next */ this._getInitialDisplayValue());\n this.setState({ inputValue: initialDisplayValue });\n }\n\n private _onKeyPress = (e: React.KeyboardEvent<HTMLInputElement>) => {\n // istanbul ignore else\n if (e.key === SpecialKey.Escape) {\n const initialDisplayValue = (this._lastValidValue && (this._lastValidValue as PrimitiveValue).displayValue) ?? (/* istanbul ignore next */ this._getInitialDisplayValue());\n if (initialDisplayValue !== this.state.inputValue) {\n e.preventDefault();\n e.stopPropagation();\n this._resetToLastValidDisplayValue();\n } else {\n // istanbul ignore else\n if (this.props.onCancel)\n this.props.onCancel();\n }\n }\n\n // istanbul ignore else\n if (e.key !== SpecialKey.Enter) {\n UiAdmin.messagePresenter.closeInputFieldMessage();\n }\n };\n\n // istanbul ignore next\n private _onFocus = (e: React.FocusEvent<HTMLInputElement>) => {\n e.target.select();\n };\n\n /** @internal */\n public override render(): React.ReactNode {\n const minSize = this.state.size ? this.state.size : 8;\n const minWidthStyle: React.CSSProperties = {\n minWidth: `${minSize * 0.75}em`,\n };\n const record = this.props.propertyRecord as PropertyRecord;\n if (!record || !this._formatParams)\n return null;\n\n const readOnly = !record.isReadonly ? false : true;\n const disabled = !record.isDisabled ? false : true;\n\n const className = classnames(\"components-cell-editor\", \"components-customnumber-editor\", this.props.className);\n\n const inputProps: Omit<InputProps, \"size\"> = { // eslint-disable-line deprecation/deprecation\n className,\n style: this.props.style ? this.props.style : minWidthStyle,\n readOnly,\n disabled,\n maxLength: this.state.maxLength,\n value: this.state.inputValue,\n onChange: this._updateInputValue,\n onBlur: this.props.onBlur,\n onFocus: this._onFocus,\n setFocus: this.shouldSetFocus(),\n onKeyDown: this._onKeyPress,\n };\n\n let reactNode: React.ReactNode;\n if (this.state.iconSpec) {\n const icon = <Icon iconSpec={this.state.iconSpec} />;\n reactNode = (\n <IconInput\n {...inputProps}\n ref={this._inputElement}\n icon={icon}\n data-testid=\"components-customnumber-editor\"\n />\n );\n } else {\n // NEEDSWORK: still using core-react Input component because of `nativeKeyHandler` prop\n reactNode = (\n <Input\n {...inputProps}\n ref={this._inputElement}\n data-testid=\"components-customnumber-editor\"\n size=\"small\"\n />\n );\n }\n\n return reactNode;\n }\n}\n\n/** Custom Property Editor registered for the \"number\" type name and the \"number-custom\" editor name.\n * It uses the [[CustomNumberEditor]] React component.\n * @alpha\n */\nexport class CustomNumberPropertyEditor extends PropertyEditorBase {\n public get reactNode(): React.ReactNode {\n return <CustomNumberEditor />;\n }\n public override get containerHandlesEscape(): boolean {\n return false;\n }\n}\nPropertyEditorManager.registerEditor(StandardTypeNames.Number, CustomNumberPropertyEditor, StandardEditorNames.NumberCustom);\n"]}
@@ -1,21 +1,21 @@
1
- /*---------------------------------------------------------------------------------------------
2
- * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
- * See LICENSE.md in the project root for license terms and full copyright notice.
4
- *--------------------------------------------------------------------------------------------*/
5
- @import "./variables";
6
-
7
- .components-customnumber-editor {
8
- width: 100%;
9
- height: 100%;
10
- margin: 0;
11
- }
12
-
13
- .components-smallEditor-host {
14
- .components-customnumber-editor {
15
- &.iui-input {
16
- min-height: $editor-component-height-small !important;
17
- padding-top: 1px !important;
18
- padding-bottom: 1px !important;
19
- }
20
- }
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
+ * See LICENSE.md in the project root for license terms and full copyright notice.
4
+ *--------------------------------------------------------------------------------------------*/
5
+ @import "./variables";
6
+
7
+ .components-customnumber-editor {
8
+ width: 100%;
9
+ height: 100%;
10
+ margin: 0;
11
+ }
12
+
13
+ .components-smallEditor-host {
14
+ .components-customnumber-editor {
15
+ &.iui-input {
16
+ min-height: $editor-component-height-small !important;
17
+ padding-top: 1px !important;
18
+ padding-bottom: 1px !important;
19
+ }
20
+ }
21
21
  }
@@ -3,10 +3,11 @@
3
3
  */
4
4
  import "./DateTimeEditor.scss";
5
5
  import * as React from "react";
6
- import { PropertyValue, TimeDisplay } from "@itwin/appui-abstract";
7
- import { PropertyEditorProps, TypeEditor } from "./EditorContainer";
6
+ import type { PropertyValue } from "@itwin/appui-abstract";
7
+ import { TimeDisplay } from "@itwin/appui-abstract";
8
+ import type { PropertyEditorProps, TypeEditor } from "./EditorContainer";
8
9
  import { PropertyEditorBase } from "./PropertyEditorManager";
9
- import { TypeConverter } from "../converters/TypeConverter";
10
+ import type { TypeConverter } from "../converters/TypeConverter";
10
11
  /** @internal */
11
12
  interface DateTimeEditorState {
12
13
  value: Date;
@@ -1 +1 @@
1
- {"version":3,"file":"DateTimeEditor.d.ts","sourceRoot":"","sources":["../../../../src/components-react/editors/DateTimeEditor.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,uBAAuB,CAAC;AAE/B,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EACiB,aAAa,EAA0C,WAAW,EACzF,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,mBAAmB,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACpE,OAAO,EAAE,kBAAkB,EAAyB,MAAM,yBAAyB,CAAC;AAGpF,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAS5D,gBAAgB;AAChB,UAAU,mBAAmB;IAC3B,KAAK,EAAE,IAAI,CAAC;IACZ,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,SAAS,EAAE,OAAO,CAAC;CACpB;AAED,gBAAgB;AAChB,UAAU,mBAAoB,SAAQ,mBAAmB;IACvD,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;GAEG;AACH,qBAAa,cAAe,SAAQ,KAAK,CAAC,aAAa,CAAC,mBAAmB,EAAE,mBAAmB,CAAE,YAAW,UAAU;IACrH,OAAO,CAAC,UAAU,CAAS;IAC3B,OAAO,CAAC,SAAS,CAAS;IAC1B,OAAO,CAAC,WAAW,CAAqC;IAExD,gBAAgB;IAChB,SAAyB,KAAK,EAAE,QAAQ,CAAC,mBAAmB,CAAC,CAG3D;IAEW,gBAAgB,IAAI,OAAO,CAAC,aAAa,GAAG,SAAS,CAAC;IAgBnE,IAAW,WAAW,IAAI,WAAW,GAAG,IAAI,CAE3C;IAED,IAAW,QAAQ,IAAI,OAAO,CAM7B;IAEY,iBAAiB,CAAC,aAAa,EA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