Updated generator API

`GenerateElementRangeComponent` and `generateCharOffsetRangeComponent` with generateRangeComponent