Skip to content

Commit

Permalink
Added planmonitor wonen library + planmonitor models
Browse files Browse the repository at this point in the history
  • Loading branch information
geertplaisier committed Apr 12, 2024
1 parent 06aac36 commit 9e1d274
Show file tree
Hide file tree
Showing 37 changed files with 448 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .eslint-custom-rules.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
function getInvalidImportsRule(projectName, allowOpenLayers, allowAdmin) {
const rule = {
// node packages
paths: ["assert", "buffer", "child_process", "cluster", "crypto", "dgram", "dns", "domain", "events", "freelist", "fs", "http", "https", "module", "net", "os", "path", "punycode", "querystring", "readline", "repl", "smalloc", "stream", "string_decoder", "sys", "timers", "tls", "tracing", "tty", "url", "util", "vm", "zlib"],
patterns: [
// do not allow circular references to own project
{
"group": [projectName],
"message": "Invalid reference to own project"
},
{
"group": ["@angular/localize/init"],
"message": "Do not import $localize. This is provided by Angular and imported once in polyfills.ts"
}
]
};
return rule;
}

module.exports = {
getInvalidImportsRule: getInvalidImportsRule
};
31 changes: 31 additions & 0 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,37 @@
}
}
}
},
"planmonitor-wonen": {
"projectType": "library",
"root": "projects/planmonitor-wonen",
"sourceRoot": "projects/planmonitor-wonen/src",
"prefix": "lib",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:ng-packagr",
"options": {
"project": "projects/planmonitor-wonen/ng-package.json"
},
"configurations": {
"production": {
"tsConfig": "projects/planmonitor-wonen/tsconfig.lib.prod.json"
},
"development": {
"tsConfig": "projects/planmonitor-wonen/tsconfig.lib.json"
}
},
"defaultConfiguration": "production"
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "projects/planmonitor-wonen/src/test.ts",
"tsConfig": "projects/planmonitor-wonen/tsconfig.spec.json",
"karmaConfig": "projects/planmonitor-wonen/karma.conf.js"
}
}
}
}
}
}
16 changes: 16 additions & 0 deletions projects/planmonitor-wonen/.browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# This file is used by the build system to adjust CSS and JS output to support the specified browsers below.
# For additional information regarding the format and rule options, please see:
# https://github.com/browserslist/browserslist#queries

# For the full list of supported browsers by the Angular framework, please see:
# https://angular.io/guide/browser-support

# You can see what browsers were selected by your queries by running:
# npx browserslist

last 1 Chrome version
last 1 Firefox version
last 2 Edge major versions
last 2 Safari major versions
last 2 iOS major versions
Firefox ESR
33 changes: 33 additions & 0 deletions projects/planmonitor-wonen/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
const path = require('path');
const { getInvalidImportsRule } = require("../../.eslint-custom-rules");

module.exports = {
"extends": path.resolve(__dirname, "../../.eslintrc.json"),
"ignorePatterns": [
"!**/*",
],
"overrides": [
{
"files": [
"*.ts"
],
"parserOptions": {
"project": [
"tsconfig.lib.json",
"tsconfig.spec.json"
],
"createDefaultProgram": true,
"tsconfigRootDir": __dirname
},
"rules": {
"no-restricted-imports": ["error", getInvalidImportsRule("@b3p/planmonitor-wonen")]
}
},
{
"files": [
"*.html"
],
"rules": {}
}
]
}
5 changes: 5 additions & 0 deletions projects/planmonitor-wonen/jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
const baseConfig = require('../../jest.base.config');

module.exports = {
...baseConfig,
};
10 changes: 10 additions & 0 deletions projects/planmonitor-wonen/ng-package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
"dest": "../../dist/planmonitor-wonen",
"assets": [
"assets/**/*"
],
"lib": {
"entryFile": "src/public-api.ts"
}
}
16 changes: 16 additions & 0 deletions projects/planmonitor-wonen/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "@b3p/planmonitor-wonen",
"version": "0.0.1",
"peerDependencies": {
"@angular/common": "^17.0.0",
"@angular/core": "^17.0.0",
"@tailormap-viewer/shared": "^11.3.0",
"@tailormap-viewer/map": "^11.3.0",
"@tailormap-viewer/api": "^11.3.0",
"@tailormap-viewer/core": "^11.3.0",
"@tailormap-admin/admin-core": "^11.3.0"
},
"dependencies": {
"tslib": "^2.3.0"
}
}
1 change: 1 addition & 0 deletions projects/planmonitor-wonen/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './public-api';
13 changes: 13 additions & 0 deletions projects/planmonitor-wonen/src/lib/models/betaalbaarheid.enum.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
export enum BetaalbaarheidEnum {
HUUR_DURE_HUUR = 'Huur dure huur',
HUUR_GOEDKOPE_HUUR = 'Huur goedkope huur',
HUUR_MIDDENHUUR = 'Huur middenhuur',
HUUR_ONBEKEND = 'Huur onbekend',
HUUR_TOT_LIBERALISATIEGRENS = 'Huur tot liberalisatiegrens',
KOOP_BETAALBARE_KOOP = 'Koop betaalbare koop',
KOOP_GOEDKOPE_KOOP = 'Koop goedkope koop',
KOOP_ONBEKEND = 'Koop onbekend',
KOOP_TUSSEN_355_K_EN_5_K = 'Koop tussen € 355k en 5 k',
KOOP_VANAF_5_K = 'Koop vanaf 5 k',
ONBEKEND_KOOP_OF_HUUR = 'Onbekend koop of huur',
}
6 changes: 6 additions & 0 deletions projects/planmonitor-wonen/src/lib/models/bouwen.enum.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export enum BouwenEnum {
JA, minimale_aandacht = 'Ja, minimale aandacht',
JA_RUIME_AANDACHT = 'Ja, ruime aandacht',
NEE = 'Nee',
ONBEKEND = 'Onbekend',
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export enum ClassificatieEnum {
BOUW = 'Bouw',
SLOOP = 'Sloop',
}
10 changes: 10 additions & 0 deletions projects/planmonitor-wonen/src/lib/models/detailplanning.model.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
export interface DetailplanningModel {
Plancategorie_ID: string;
ID: string;
Created: string | Date;
Creator: string;
Editor: string;
Edited: string | Date;
Jaartal: number;
Aantal_Gepland: number;
}
6 changes: 6 additions & 0 deletions projects/planmonitor-wonen/src/lib/models/eigendom.enum.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export enum EigendomEnum {
KOOPWONING = 'Koopwoning',
HUURWONING_PARTICULIERE_VERHUURDER = 'Huurwoning particuliere verhuurder',
HUURWONING_WONINGCORPORATIE = 'Huurwoning woningcorporatie',
ONBEKEND = 'Onbekend',
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export enum GerealiseerdEnum {
JA = 'Ja',
NEE = 'Nee',
}
22 changes: 22 additions & 0 deletions projects/planmonitor-wonen/src/lib/models/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
export * from './betaalbaarheid.enum';
export * from './bouwen.enum';
export * from './classificatie.enum';
export * from './detailplanning.model';
export * from './eigendom.enum';
export * from './gerealiseerd.enum';
export * from './knelpunten-meerkeuze.enum';
export * from './knelpunten-plantype.enum';
export * from './levensloop.enum';
export * from './opdrachtgever.enum';
export * from './plancategorie.model';
export * from './planmonitor-wonen-component-id';
export * from './planregistratie.model';
export * from './plantype.enum';
export * from './projectstatus.enum';
export * from './realiseerbaarheid.enum';
export * from './status-planologisch.enum';
export * from './vertrouwelijkheid.enum';
export * from './woningtype.enum';
export * from './woonmilieu-abf5.enum';
export * from './woonmilieu-abf13.enum';
export * from './woonvisie.enum';
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
export enum KnelpuntenMeerkeuzeEnum {
AMBTELIJKE_CAPACITEIT = 'Ambtelijke capaciteit',
ANDERS = 'Anders',
BEREIKBAARHEID = 'Bereikbaarheid',
GELUIDSHINDER = 'Geluidshinder',
MAATSCHAPPELIJK_DRAAGVLAK = 'Maatschappelijk draagvlak',
ONRENDABELE_TOP = 'Onrendabele top',
STIKSTOF = 'Stikstof',
VERVUILDE_GROND = 'Vervuilde grond',
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
export enum KnelpuntenPlantypeEnum {
HERSTRUCTURERING = 'Herstructurering',
ONBEKEND = 'Onbekend',
TRANSFORMATIE_GEBIED = 'Transformatie gebied',
TRANSFORMATIE_GEBOUW = 'Transformatie gebouw',
UITBREIDING_OVERIG = 'Uitbreiding overig',
UITBREIDING_UITLEG = 'Uitbreiding uitleg',
VERDICHTING = 'Verdichting',
}
6 changes: 6 additions & 0 deletions projects/planmonitor-wonen/src/lib/models/levensloop.enum.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export enum LevensloopEnum {
GECLUSTERD = 'Geclusterd',
NULTREDEN = 'Nultreden',
ONBEKEND = 'Onbekend',
REGULIER = 'Regulier',
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
export enum OpdrachtgeverEnum {
ANDERS = 'Anders',
GEMEENTE = 'Gemeente',
MEERDERE_NAMELIJK = 'Meerdere namelijk',
NOG_ONBEKEND = 'Nog onbekend',
PARTICULIEREN = 'Particulieren',
PROJECTONTWIKKELAAR = 'Projectontwikkelaar',
WONINGBOUWCORPORATIE = 'Woningbouwcorporatie',
}
19 changes: 19 additions & 0 deletions projects/planmonitor-wonen/src/lib/models/plancategorie.model.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { BetaalbaarheidEnum } from './betaalbaarheid.enum';
import { WoningtypeEnum } from './woningtype.enum';
import { LevensloopEnum } from './levensloop.enum';
import { ClassificatieEnum } from './classificatie.enum';

export interface PlancategorieModel {
Planregistratie_ID: string;
ID: string;
Totaal_Gepland: number;
Totaal_Gerealiseerd: number;
Classificatie: ClassificatieEnum;
Levensloop_Bestendigheid: LevensloopEnum;
Created: string | Date;
Woningtype: WoningtypeEnum;
Betaalbaarheid: BetaalbaarheidEnum;
Creator: string;
Edited: string | Date;
Editor: string;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const PLANMONITOR_WONEN_COMPONENT_ID = 'b3p-planmonitor-wonen';
45 changes: 45 additions & 0 deletions projects/planmonitor-wonen/src/lib/models/planregistratie.model.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
import { VertrouwelijkheidEnum } from './vertrouwelijkheid.enum';
import { OpdrachtgeverEnum } from './opdrachtgever.enum';
import { PlantypeEnum } from './plantype.enum';
import { ProjectstatusEnum } from './projectstatus.enum';
import { KnelpuntenMeerkeuzeEnum } from './knelpunten-meerkeuze.enum';
import { KnelpuntenPlantypeEnum } from './knelpunten-plantype.enum';
import { StatusPlanologischEnum } from './status-planologisch.enum';
import { WoonmilieuABF5Enum } from './woonmilieu-abf5.enum';
import { WoonmilieuABF13Enum } from './woonmilieu-abf13.enum';
import { EigendomEnum } from './eigendom.enum';

export interface PlanregistratieModel {
ID: string;
GEOM: string;
Creator: string;
Created: string | Date;
Editor: string;
Edited: string | Date;
Plannaam: string;
Provincie: string;
Gemeente: string;
Regio: string;
Plaatsnaam: string;
Vertrouwelijkheid: VertrouwelijkheidEnum;
Opdrachtgever_Type: OpdrachtgeverEnum;
Opdrachtgever_Naam: string;
Jaar_Start_Project: number;
Oplevering_Eerste: number;
Oplevering_Laatste: number;
Opmerkingen: string;
Plantype: PlantypeEnum;
Bestemmingsplan: string;
Status_Project: ProjectstatusEnum;
Status_Planologisch: StatusPlanologischEnum;
Knelpunten_Meerkeuze: KnelpuntenMeerkeuzeEnum;
Regionale_Planlijst: EigendomEnum;
Toelichting_Knelpunten: KnelpuntenPlantypeEnum;
Flexwoningen: number;
Levensloopbestendig_Ja: number;
Levensloopbestendig_Nee: number;
Beoogd_Woonmilieu_ABF5: WoonmilieuABF5Enum;
Beoogd_Woonmilieu_ABF13: WoonmilieuABF13Enum;
Aantal_Studentenwoningen: number;
Toelichting_Kwalitatief: string;
}
8 changes: 8 additions & 0 deletions projects/planmonitor-wonen/src/lib/models/plantype.enum.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export enum PlantypeEnum {
PAND_TRANSFORMATIE = 'Pand Transformatie',
TRANSFORMATIEGEBIED = 'Transformatiegebied',
HERSTRUCTURERING = 'Herstructurering',
VERDICHTING = 'Verdichting',
UITBREIDING_UITLEG = 'Uitbreiding uitleg',
UITBREIDING_OVERIG = 'Uitbreiding overig',
}
14 changes: 14 additions & 0 deletions projects/planmonitor-wonen/src/lib/models/projectstatus.enum.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
export enum ProjectstatusEnum {
STUDIE = 'Studie',
START = 'Start',
INITIATIEF = 'Initiatief',
DEFINITIE = 'Definitie',
ONTWERP = 'Ontwerp',
VOORBEREIDING = 'Voorbereiding',
BOUWVOORBEREIDING = 'Bouwvoorbereiding',
REALISATIE_TOT_EERSTE_WONING = 'Realisatie tot eerste woning',
REALISATIE_TOT_LAATSTE_WONING = 'Realisatie tot laatste woning',
NAZORG = 'Nazorg',
AFGEROND = 'Afgerond',
ONBEKEND = 'Onbekend',
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export enum RealiseerbaarheidEnum {
20 = 20,
40 = 40,
60 = 60,
80 = 80,
100 = 100,
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
export enum StatusPlanologischEnum {
ONHERROEPELIJK = '1A. Onherroepelijk',
ONHERROEPELIJK_UITWERKINGSPLICHT = '1B. Onherroepelijk, uitwerkingsplicht',
ONHERROEPELIJK_WIJZIGINGSBEVOEGDHEID = '1C. Onherroepelijk, wijzigingsbevoegdheid',
VASTGESTELD = '2A. Vastgesteld',
VASTGESTELD_UITWERKINGSPLICHT = '2B. Vastgesteld, uitwerkingsplicht',
VASTGESTELD_WIJZIGINGSBEVOEGDHEID = '2C. Vastgesteld, wijzigingsbevoegdheid',
IN_VOORBEREIDING = '3. In voorbereiding',
VISIE = '4A. Visie',
OPTIE = '4B. Optie',
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export enum VertrouwelijkheidEnum {
GEMEENTE = 'Gemeente',
OPENBAAR = 'Openbaar',
PROVINCIE = 'Provincie',
}
5 changes: 5 additions & 0 deletions projects/planmonitor-wonen/src/lib/models/woningtype.enum.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export enum WoningtypeEnum {
EENGEZINS = 'Eengezins',
MEERGEZINS = 'Meergezins',
ONBEKEND = 'Onbekend',
}
15 changes: 15 additions & 0 deletions projects/planmonitor-wonen/src/lib/models/woonmilieu-abf13.enum.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
export enum WoonmilieuABF13Enum {
CENTRUM_DORPS = 'Centrum-dorps',
CENTRUM_KLEINSTEDELIJK = 'Centrum-kleinstedelijk',
CENTRUM_STEDELIJK = 'Centrum-stedelijk',
CENTRUM_STEDELIJK_PLUS = 'Centrum-stedelijk-plus',
DORPS = 'Dorps',
GROEN_KLEINSTEDELIJK = 'Groen-kleinstedelijk',
GROEN_STEDELIJK = 'Groen-stedelijk',
KLEINSTEDELIJK = 'Kleinstedelijk',
LANDELIJK_BEREIKBAAR = 'Landelijk bereikbaar',
LANDELIJK_PERIFEER = 'Landelijk perifeer',
STEDELIJK_NAOORLOGS_COMPACT = 'Stedelijk naoorlogs compact',
STEDELIJK_NAOORLOGS_GRONDGEBONDEN = 'Stedelijk naoorlogs grondgebonden',
STEDELIJK_VOOROORLOGS = 'Stedelijk vooroorlogs',
}
Loading

0 comments on commit 9e1d274

Please sign in to comment.