UNPKG

@progress/kendo-angular-inputs

Version:

Kendo UI for Angular Inputs Package - Everything you need to build professional form functionality (Checkbox, ColorGradient, ColorPalette, ColorPicker, FlatColorPicker, FormField, MaskedTextBox, NumericTextBox, RadioButton, RangeSlider, Slider, Switch, Te

44 lines (43 loc) 1.18 kB
/**----------------------------------------------------------------------------------------- * Copyright © 2025 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the project root for more information *-------------------------------------------------------------------------------------------*/ /** * @hidden */ export class Stream { input; control; inputCursor = 0; controlCursor = 0; constructor(input = [], control = []) { this.input = input; this.control = control; } eof() { return this.inputCursor >= this.input.length; } // Get the first value from the input. next() { return { char: this.input[this.inputCursor++], control: this.control[this.controlCursor++] }; } peek() { return { char: this.input[this.inputCursor], control: this.control[this.controlCursor] }; } eat_input() { this.inputCursor++; } eat_control() { this.controlCursor++; } eat() { this.inputCursor++; this.controlCursor++; } }