1import {Controller} from "@hotwired/stimulus" 2import {generatePassword} from "@dsidata/packages-formsbundle/libs/password-generator.js" 3 4export default class extends Controller { 5 static targets = ["input"]; 6 static values = { 7 length: {type: Number, default: 12}, 8 uppercase: {type: Boolean, default: true}, 9 number: {type: Boolean, default: true}, 10 symbol: {type: Boolean, default: true}, 11 specialChars: {type: String, default: null}, 12 } 13 14 15 generate() { 16 this.inputTarget.value = generatePassword( 17 this.lengthValue, 18 this.uppercaseValue, 19 this.numberValue, 20 this.symbolValue, 21 this.specialCharsValue 22 ) 23 } 24 25}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.