Skip to content

Commit

Permalink
Merge pull request #354 from OnroerendErfgoed/develop
Browse files Browse the repository at this point in the history
release 0.28.1
  • Loading branch information
cedrikv authored Aug 23, 2023
2 parents 4a1a27f + 6ce4427 commit 7281a16
Show file tree
Hide file tree
Showing 27 changed files with 357 additions and 317 deletions.
17 changes: 7 additions & 10 deletions dist/commonjs/adres-crab/adres-crab.d.ts
Original file line number Diff line number Diff line change
@@ -1,29 +1,23 @@
import { BindingEngine } from 'aurelia-framework';
import { ValidationController, ValidationControllerFactory } from 'aurelia-validation';
import { AdresregisterService } from '../services/adresregister.api-service';
import { IAdresCrabConfig } from './types/adres-crab-config';
import { IAdresregisterAdres, ICrabAdres, IGemeente, ILand, IPostcode, IStraat } from '../models/public-models';
import { ICrabAdres, ILand } from '../models/public-models';
export declare class AdresCrab {
controller: ValidationController;
private controllerFactory;
private adresregisterService;
private bindingEngine;
disabled: boolean;
data: ICrabAdres;
config: IAdresCrabConfig;
copiedAdres: ICrabAdres;
copyAvailable: boolean;
landen: ILand[];
gemeente: IGemeente;
postcode: IPostcode;
straat: IStraat;
adres: IAdresregisterAdres;
private vlaamseProvinciesNiscodes;
private suggest;
constructor(controller: ValidationController, controllerFactory: ValidationControllerFactory, adresregisterService: AdresregisterService, bindingEngine: BindingEngine);
private vrijAdres;
constructor(controller: ValidationController, controllerFactory: ValidationControllerFactory, adresregisterService: AdresregisterService);
bind(): void;
parseField(value: any, property: any): void;
landChanged(nv: ILand, ov: ILand): void;
landChanged(): void;
gemeenteChanged(): void;
straatChanged(): void;
copyAdres(): void;
Expand All @@ -38,4 +32,7 @@ export declare class AdresCrab {
private filterPostcodes;
private filterHuisnummers;
private filterBusnummers;
private resetAdres;
private landCodeMatcher;
private isVlaamseProvincie;
}
2 changes: 1 addition & 1 deletion dist/commonjs/adres-crab/adres-crab.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/commonjs/adres-crab/adres-crab.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<template><require from="./styles/adres-crab.css"></require><div class="adres-crab"><div class="row" if.bind="copyAvailable"><div class="small-2 columns"><label>Adres</label></div><div class="small-10 columns"><div class="right"><button class="clipboard-button copy-button button tiny" title="Kopiëren" click.delegate="copyAdres()"><i class="fa fa-copy"></i></button> <button class="${!copiedAdres ? 'disabled' : '' } clipboard-button paste-button button tiny" title="Plakken" click.delegate="pasteAdres()"><i class="fa fa-paste"></i></button></div></div></div><div class="row"><div class="small-push-2 small-10 columns"><div class="placeholder-container ${ disabled ? 'placeholder-disabled' : '' }"><label>Land</label> <select value.bind="data.land" disabled.bind="disabled"><option repeat.for="land of landen" model.bind="land"> ${land.naam} </option></select></div></div></div><div class="row"><div class="small-push-2 small-10 columns"><div if.bind="data.land.code === 'BE'"><div class="placeholder-container ${ !data.land || disabled ? 'placeholder-disabled' : '' }"><label>Gemeente <span title="Opgelet, enkel de hoofdgemeenten (en niet de deelgemeenten) kunnen ingevuld worden.">(?)</span></label><autocomplete service.bind="suggest.gemeenten" value.bind="data.gemeente & validate" label="naam" placeholder="gemeente" disabled.bind="!data.land || disabled" change.delegate="gemeenteChanged()"><template replace-part="suggestion"> ${suggestion.naam} </template></autocomplete></div><div class="placeholder-container ${ !data.gemeente || disabled ? 'placeholder-disabled' : '' }"><label>Postcode</label><autocomplete service.bind="suggest.postcodes" value.bind="data.postcode & validate" label="nummer" placeholder="postcode" disabled.bind="!data.gemeente || disabled" field="postcode" type.bind="config.postcode.autocompleteType"><template replace-part="suggestion"> ${suggestion.nummer} </template></autocomplete></div><div class="placeholder-container ${ !data.gemeente || disabled ? 'placeholder-disabled' : '' }"><label>Straat</label><autocomplete service.bind="suggest.straten" value.bind="data.straat & validate" label="naam" placeholder="straat" disabled.bind="!data.gemeente || disabled" field="straat" type.bind="config.straat.autocompleteType" change.delegate="straatChanged()"><template replace-part="suggestion"> ${suggestion.naam} </template></autocomplete></div><div class="placeholder-container ${ !data.straat || disabled ? 'placeholder-disabled' : '' }"><label>Huisnummer</label><autocomplete service.bind="suggest.huisnummers" label="huisnummer" placeholder="huisnummer" minlength="1" disabled.bind="!data.straat || disabled" value.bind="data.adres & validate" type.bind="config.huisnummer.autocompleteType" field="huisnummer"><template replace-part="suggestion"> ${suggestion.huisnummer} </template></autocomplete></div></div><div if.bind="data.land.code !== 'BE'"><div class="placeholder-container ${ disabled ? 'placeholder-disabled' : '' }"><label>Gemeente <span title="Opgelet, enkel de hoofdgemeenten (en niet de deelgemeenten) kunnen ingevuld worden.">(?)</span></label> <input type="text" value.bind="gemeente & validate" placeholder="gemeente" change.delegate="parseField(gemeente, 'gemeente')" disabled.bind="disabled"></div><div class="placeholder-container ${ disabled ? 'placeholder-disabled' : '' }"><label>Postcode</label> <input type="text" value.bind="postcode & validate" placeholder="postcode" change.delegate="parseField(postcode, 'postcode')" disabled.bind="disabled"></div><div class="placeholder-container ${ disabled ? 'placeholder-disabled' : '' }"><label>Straat</label> <input type="text" value.bind="straat & validate" placeholder="straat" change.delegate="parseField(straat, 'straat')" disabled.bind="disabled"></div><div class="placeholder-container ${ disabled ? 'placeholder-disabled' : '' }"><label>Huisnummer</label> <input type="text" value.bind="huisnummer & validate" placeholder="huisnummer" change.delegate="parseField(huisnummer, 'huisnummer')" disabled.bind="disabled"></div></div></div></div><div class="row"><div class="small-push-2 small-10 columns"><div class="placeholder-container ${(!freeBusnummerSearch && !data.adres.huisnummer) || disabled ? 'placeholder-disabled' : '' }"><label>Busnr.</label><autocomplete service.bind="suggest.busnummers" label="busnummer" placeholder="busnummer" minlength="1" disabled.bind="!data.adres || disabled" value.bind="data.adres & validate" type.bind="config.busnummer.autocompleteType" huisnummer.bind="data.adres.huisnummer" field="busnummer"><template replace-part="suggestion"> ${suggestion.busnummer} </template></autocomplete></div></div></div></div></template>
<template><require from="./styles/adres-crab.css"></require><div class="adres-crab"><div class="row" if.bind="copyAvailable"><div class="small-2 columns"><label>Adres</label></div><div class="small-10 columns"><div class="right"><button class="clipboard-button copy-button button tiny" title="Kopiëren" click.delegate="copyAdres()"><i class="fa fa-copy"></i></button> <button class="${!copiedAdres ? 'disabled' : '' } clipboard-button paste-button button tiny" title="Plakken" click.delegate="pasteAdres()"><i class="fa fa-paste"></i></button></div></div></div><div class="row"><div class="small-push-2 small-10 columns"><div class="placeholder-container ${ disabled ? 'placeholder-disabled' : '' }"><label>Land</label> <select value.bind="data.land" matcher.bind="landCodeMatcher" disabled.bind="disabled" change.delegate="landChanged()"><option repeat.for="land of landen" model.bind="land"> ${land.naam} </option></select></div></div></div><div class="row"><div class="small-push-2 small-10 columns"><div if.bind="data.land.code === 'BE'"><div class="placeholder-container ${ !data.land || disabled ? 'placeholder-disabled' : '' }"><label>Gemeente <span title="Opgelet, enkel de hoofdgemeenten (en niet de deelgemeenten) kunnen ingevuld worden.">(?)</span></label><autocomplete service.bind="suggest.gemeenten" value.bind="data.gemeente & validate" label="naam" placeholder="gemeente" disabled.bind="!data.land || disabled" change.delegate="gemeenteChanged()"><template replace-part="suggestion"> ${suggestion.naam} </template></autocomplete></div><div class="placeholder-container ${ !data.gemeente || disabled ? 'placeholder-disabled' : '' }"><label>Postcode</label><autocomplete service.bind="suggest.postcodes" value.bind="data.postcode & validate" label="nummer" placeholder="postcode" disabled.bind="!data.gemeente || disabled" field="postcode" type.bind="config.postcode.autocompleteType"><template replace-part="suggestion"> ${suggestion.nummer} </template></autocomplete></div><div class="placeholder-container ${ !data.gemeente || disabled ? 'placeholder-disabled' : '' }"><label>Straat</label><autocomplete service.bind="suggest.straten" value.bind="data.straat & validate" label="naam" placeholder="straat" disabled.bind="!data.gemeente || disabled" field="straat" type.bind="config.straat.autocompleteType" change.delegate="straatChanged()"><template replace-part="suggestion"> ${suggestion.naam} </template></autocomplete></div><div class="placeholder-container ${ !data.straat || disabled ? 'placeholder-disabled' : '' }"><label>Huisnummer</label><autocomplete service.bind="suggest.huisnummers" label="huisnummer" placeholder="huisnummer" minlength="1" disabled.bind="!data.straat || disabled" value.bind="data.adres & validate" type.bind="config.huisnummer.autocompleteType" field="huisnummer"><template replace-part="suggestion"> ${suggestion.huisnummer} </template></autocomplete></div><div class="placeholder-container ${!data.adres.huisnummer || disabled ? 'placeholder-disabled' : '' }"><label>Busnummer</label><autocomplete service.bind="suggest.busnummers" label="busnummer" placeholder="busnummer" minlength="1" disabled.bind="!data.adres.huisnummer || disabled" value.bind="data.adres & validate" type.bind="config.busnummer.autocompleteType" huisnummer.bind="data.adres.huisnummer" field="busnummer"><template replace-part="suggestion"> ${suggestion.busnummer} </template></autocomplete></div></div><div if.bind="data.land.code !== 'BE'"><div class="placeholder-container ${ disabled ? 'placeholder-disabled' : '' }"><label>Gemeente <span title="Opgelet, enkel de hoofdgemeenten (en niet de deelgemeenten) kunnen ingevuld worden.">(?)</span></label> <input type="text" value.bind="data.gemeente.naam & validate" placeholder="gemeente" disabled.bind="disabled"></div><div class="placeholder-container ${ disabled ? 'placeholder-disabled' : '' }"><label>Postcode</label> <input type="text" value.bind="data.postcode.nummer & validate" placeholder="postcode" disabled.bind="disabled"></div><div class="placeholder-container ${ disabled ? 'placeholder-disabled' : '' }"><label>Straat</label> <input type="text" value.bind="data.straat.naam & validate" placeholder="straat" disabled.bind="disabled"></div><div class="placeholder-container ${ disabled ? 'placeholder-disabled' : '' }"><label>Huisnummer</label> <input type="text" value.bind="data.adres.huisnummer & validate" placeholder="huisnummer" disabled.bind="disabled"></div><div class="placeholder-container ${ disabled ? 'placeholder-disabled' : '' }"><label>Busnummer</label> <input type="text" value.bind="data.adres.busnummer & validate" placeholder="busnummer" disabled.bind="disabled"></div></div></div></div></div></template>
Loading

0 comments on commit 7281a16

Please sign in to comment.