@dflat-core/web 1.7.2093 → 1.7.2095

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  import { CommonModule } from "@angular/common";
2
2
  import { HttpErrorResponse, HttpResponse, HttpResponseBase, provideHttpClient, withInterceptorsFromDi, withXhr } from "@angular/common/http";
3
3
  import * as i0 from "@angular/core";
4
- import { Injectable, NgModule, Optional, SkipSelf } from "@angular/core";
4
+ import { Injectable, InjectionToken, NgModule, Optional, SkipSelf } from "@angular/core";
5
5
  var EnsureModuleLoadedOnceGuard = class {
6
6
  constructor(targetModule) {
7
7
  if (targetModule) throw new Error(`${targetModule.constructor.name} has already been loaded. Import this module in the AppModule only.`);
@@ -669,6 +669,8 @@ i0.ɵɵngDeclareClassMetadata({
669
669
  type: Utilities,
670
670
  decorators: [{ type: Injectable }]
671
671
  });
672
+ const ACTION_DATA_SERVICE = new InjectionToken("ACTION_DATA_SERVICE");
673
+ const FILES_DATA_SERVICE = new InjectionToken("FILES_DATA_SERVICE");
672
674
  function nameof(f) {
673
675
  return f(new Proxy({}, { get: (target, key) => key }));
674
676
  }
@@ -695,6 +697,6 @@ function distinct(array) {
695
697
  }, []);
696
698
  }
697
699
  var EnvironmentBase = class {};
698
- export { CoreModule, DateUtils, EnsureModuleLoadedOnceGuard, EnvironmentBase, Utilities, distinct, groupBy, groupByFunc, isArray, isNumeric, nameof, sleep, sumOf };
700
+ export { ACTION_DATA_SERVICE, CoreModule, DateUtils, EnsureModuleLoadedOnceGuard, EnvironmentBase, FILES_DATA_SERVICE, Utilities, distinct, groupBy, groupByFunc, isArray, isNumeric, nameof, sleep, sumOf };
699
701
 
700
702
  //# sourceMappingURL=dflat-core-web-core.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"dflat-core-web-core.mjs","names":[],"sources":["../../core/src/lib/services/ensuremoduleloadedonceguard.ts","../../core/src/lib/core.module.ts","../../core/src/lib/services/date-utils.ts","../../core/src/lib/services/utilities.service.ts","../../core/src/lib/nameof.function.ts","../../core/src/lib/array.function.ts","../../core/src/lib/global/EnvironmentBase.ts"],"sourcesContent":["export class EnsureModuleLoadedOnceGuard {\r\n\r\n constructor(targetModule: any) {\r\n if (targetModule) {\r\n throw new Error(`${targetModule.constructor.name} has already been loaded. Import this module in the AppModule only.`);\r\n }\r\n }\r\n\r\n}","// IMPORTANT : DANS LE BUT DE FACILITER LES MERGE ET LA LECTURE DU CODE.\r\n\r\n// 1. TOUJOURS CONSERVER LE TRI SUR LES IMPORTS\r\n// UTILISER L'EXTENSION \"TypeScript Import Sorter\" DANS VSCODE.\r\n// CONFIGURER L'EXTENSION POUR ACTIVER LA MISE EN FORME AUTOMATIQUE A LA SAUVEGARDE \r\n\r\n// 2. UTILISER CTRL-SHIFT O POUR SUPPRIMER AUTOMATIQUEMENT LES IMPORTS INUTILES\r\n\r\n// 3. TRIER LES COMPOSANTS OU DEPENDANCES DANS LES DECLARATIONS (IMPORTS, EXPORTS)\r\n// SELECTION DU TEXTE PUIS CTRL-SHIFT P, \"Sort Lines Ascending\"\r\n// ON PEUT PARAMETRER DES RACCOURCIS CLAVIER DANS VSCODE\r\n// PAR EXEMPLE : CTRL-T UP (TRI CROISSANT) ou CTRL-T DOWN (TRI DECDROISSANT)\r\nimport { CommonModule } from '@angular/common';\r\nimport { provideHttpClient, withInterceptorsFromDi, withXhr } from '@angular/common/http';\r\nimport { NgModule, Optional, SkipSelf } from '@angular/core';\r\n\r\nimport { EnsureModuleLoadedOnceGuard } from './services/ensuremoduleloadedonceguard';\r\n\r\n@NgModule({ exports: [],\r\n declarations: [], imports: [CommonModule], providers: [provideHttpClient(withXhr(), withInterceptorsFromDi())] })\r\n// Ensure that CoreModule is only loaded into AppModule\r\nexport class CoreModule extends EnsureModuleLoadedOnceGuard {\r\n\r\n // Looks for the module in the parent injector to see if it's already been loaded (only want it loaded once)\r\n constructor( @Optional() @SkipSelf() parentModule: CoreModule) {\r\n super(parentModule);\r\n }\r\n}\r\n\r\n","/**\r\n * Dates du package, sans librairie (remplace moment) : lecture des valeurs de date reçues du serveur\r\n * (Date, chaîne ISO 8601, nombre de millisecondes) ou saisies (JJ/MM/AAAA), mise en forme par motif\r\n * (AAAA, MM, JJ, HH, mm, ss : `YYYY`, `MM`, `DD`, `HH`, `mm`, `ss`), en heure locale ou UTC.\r\n *\r\n * Une chaîne ISO sans fuseau (`2026-10-17`, `2026-10-17T08:30`) est lue en heure locale, comme\r\n * moment(...), ou en UTC (assumeUtc), comme moment.utc(...) ; avec `Z` ou un décalage, à l'instant\r\n * indiqué.\r\n */\r\nexport class DateUtils {\r\n private static readonly IsoPattern =\r\n /^(\\d{4})-(\\d{2})-(\\d{2})(?:[T ](\\d{2}):(\\d{2})(?::(\\d{2})(?:\\.(\\d{1,7}))?)?)?\\s*(Z|[+-]\\d{2}:?\\d{2})?$/i;\r\n\r\n private static readonly DayMonthYearPattern =\r\n /^(\\d{1,2})\\/(\\d{1,2})\\/(\\d{4})(?:\\s+(\\d{1,2}):(\\d{2})(?::(\\d{2}))?)?$/;\r\n\r\n /** Date valide, sinon null. */\r\n private static valid(date: Date): Date | null {\r\n return isNaN(date.getTime()) ? null : date;\r\n }\r\n\r\n /**\r\n * Valeur lue comme une date : Date valide, nombre de millisecondes, ou chaîne ISO 8601 ; null sinon\r\n * (chaîne quelconque, null, undefined).\r\n */\r\n static toDate(value: unknown, assumeUtc = false): Date | null {\r\n if (value instanceof Date)\r\n return DateUtils.valid(value);\r\n if (typeof value === 'number')\r\n return isFinite(value) ? DateUtils.valid(new Date(value)) : null;\r\n if (typeof value !== 'string')\r\n return null;\r\n return DateUtils.parseIso(value.trim(), assumeUtc);\r\n }\r\n\r\n /** Chaîne ISO 8601 (jour seul, avec heure, avec fuseau) ; null si elle n'en est pas une ou si la date n'existe pas. */\r\n static parseIso(text: string, assumeUtc = false): Date | null {\r\n const m = DateUtils.IsoPattern.exec(text ?? '');\r\n if (!m)\r\n return null;\r\n const [y, mo, d, h = '0', mi = '0', s = '0', frac = '0', zone] = m.slice(1);\r\n const ms = Math.round(Number('0.' + frac) * 1000);\r\n if (!DateUtils.isDay(+y, +mo, +d) || +h > 23 || +mi > 59 || +s > 59)\r\n return null;\r\n if (!zone && !assumeUtc)\r\n return DateUtils.valid(new Date(+y, +mo - 1, +d, +h, +mi, +s, ms));\r\n const utc = Date.UTC(+y, +mo - 1, +d, +h, +mi, +s, ms);\r\n if (!zone || zone.toUpperCase() === 'Z')\r\n return DateUtils.valid(new Date(utc));\r\n const sign = zone.startsWith('-') ? -1 : 1;\r\n const digits = zone.replace(/[+:-]/g, '');\r\n const offset = sign * (Number(digits.substring(0, 2)) * 60 + Number(digits.substring(2, 4)));\r\n return DateUtils.valid(new Date(utc - offset * 60000));\r\n }\r\n\r\n /** Saisie JJ/MM/AAAA, avec éventuellement HH:mm ou HH:mm:ss, en heure locale ; null sinon. */\r\n static parseDayMonthYear(text: string): Date | null {\r\n const m = DateUtils.DayMonthYearPattern.exec((text ?? '').trim());\r\n if (!m)\r\n return null;\r\n const [d, mo, y, h = '0', mi = '0', s = '0'] = m.slice(1);\r\n if (!DateUtils.isDay(+y, +mo, +d) || +h > 23 || +mi > 59 || +s > 59)\r\n return null;\r\n return new Date(+y, +mo - 1, +d, +h, +mi, +s);\r\n }\r\n\r\n /** Saisie d'une date dans une cellule ou un champ : JJ/MM/AAAA [HH:mm[:ss]], sinon ISO 8601 ; null sinon. */\r\n static parseInput(text: string): Date | null {\r\n const value = (text ?? '').trim();\r\n return DateUtils.parseDayMonthYear(value) ?? DateUtils.parseIso(value);\r\n }\r\n\r\n /** Indique si la valeur se lit comme une date (voir toDate). */\r\n static isValid(value: unknown): boolean {\r\n return DateUtils.toDate(value) !== null;\r\n }\r\n\r\n /** Indique si la valeur est une chaîne ISO 8601 de date (jour seul ou avec heure). */\r\n static isIsoString(value: unknown): value is string {\r\n return typeof value === 'string' && DateUtils.parseIso(value.trim()) !== null;\r\n }\r\n\r\n /**\r\n * Jour de la date, à minuit en heure locale, d'après ses composantes UTC (année, mois, jour) :\r\n * une date reçue à minuit UTC reste le même jour quel que soit le fuseau. Une chaîne JJ/MM/AAAA\r\n * donne ce jour. Null si la valeur n'est pas une date.\r\n */\r\n static toUtcDay(value: unknown): Date | null {\r\n if (typeof value === 'string' && value.includes('/')) {\r\n const d = DateUtils.parseDayMonthYear(value);\r\n return d ? new Date(d.getFullYear(), d.getMonth(), d.getDate()) : null;\r\n }\r\n const date = DateUtils.toDate(value, true);\r\n return date ? new Date(date.getUTCFullYear(), date.getUTCMonth(), date.getUTCDate()) : null;\r\n }\r\n\r\n /** Valeur mise en forme en heure locale (motif YYYY, MM, DD, HH, mm, ss) ; chaîne vide si ce n'est pas une date. */\r\n static format(value: unknown, pattern: string): string {\r\n const date = DateUtils.toDate(value);\r\n return date ? DateUtils.apply(pattern, date.getFullYear(), date.getMonth() + 1, date.getDate(),\r\n date.getHours(), date.getMinutes(), date.getSeconds()) : '';\r\n }\r\n\r\n /**\r\n * Valeur mise en forme en UTC (motif YYYY, MM, DD, HH, mm, ss), une chaîne sans fuseau étant lue en\r\n * UTC ; chaîne vide si ce n'est pas une date.\r\n */\r\n static formatUtc(value: unknown, pattern = 'YYYY-MM-DDTHH:mm:ss[Z]'): string {\r\n const date = DateUtils.toDate(value, true);\r\n return date ? DateUtils.apply(pattern, date.getUTCFullYear(), date.getUTCMonth() + 1, date.getUTCDate(),\r\n date.getUTCHours(), date.getUTCMinutes(), date.getUTCSeconds()) : '';\r\n }\r\n\r\n /**\r\n * Indique si deux valeurs désignent le même instant, à la seconde près (deux non-dates : faux) ;\r\n * assumeUtc : une chaîne sans fuseau est lue en UTC.\r\n */\r\n static isSameSecond(a: unknown, b: unknown, assumeUtc = false): boolean {\r\n const d1 = DateUtils.toDate(a, assumeUtc);\r\n const d2 = DateUtils.toDate(b, assumeUtc);\r\n return !!d1 && !!d2 && Math.floor(d1.getTime() / 1000) === Math.floor(d2.getTime() / 1000);\r\n }\r\n\r\n /** Indique si deux valeurs tombent le même jour, en heure locale (deux non-dates : faux). */\r\n static isSameDay(a: unknown, b: unknown): boolean {\r\n const d1 = DateUtils.format(a, 'YYYY-MM-DD');\r\n return d1 !== '' && d1 === DateUtils.format(b, 'YYYY-MM-DD');\r\n }\r\n\r\n private static isDay(y: number, m: number, d: number): boolean {\r\n if (m < 1 || m > 12 || d < 1)\r\n return false;\r\n return d <= new Date(y, m, 0).getDate();\r\n }\r\n\r\n /** Remplace les jetons du motif ; un texte entre crochets ([T], [Z]) est recopié tel quel. */\r\n private static apply(pattern: string, y: number, mo: number, d: number, h: number, mi: number, s: number): string {\r\n const two = (n: number) => String(n).padStart(2, '0');\r\n return pattern.replace(/\\[([^\\]]*)\\]|YYYY|MM|DD|HH|mm|ss/g, (token, literal) => {\r\n if (literal !== undefined) return literal;\r\n switch (token) {\r\n case 'YYYY': return String(y).padStart(4, '0');\r\n case 'MM': return two(mo);\r\n case 'DD': return two(d);\r\n case 'HH': return two(h);\r\n case 'mm': return two(mi);\r\n default: return two(s);\r\n }\r\n });\r\n }\r\n}\r\n","import { DateUtils } from './date-utils';\r\n\r\nimport { HttpErrorResponse, HttpResponse, HttpResponseBase } from '@angular/common/http';\r\nimport { Injectable } from '@angular/core';\r\n\r\nexport const isArray = Array.isArray || ((x) => x && typeof x.length === 'number');\r\nexport function isNumeric(val) {\r\n // parseFloat NaNs numeric-cast false positives (null|true|false|\"\")\r\n // ...but misinterprets leading-number strings, particularly hex literals (\"0x...\")\r\n // subtraction forces infinities to NaN\r\n // adding 1 corrects loss of precision from parseFloat (#15100)\r\n return !isArray(val) && (val - parseFloat(val) + 1) >= 0;\r\n}\r\nexport function sleep(ms) {\r\n return new Promise(resolve => setTimeout(resolve, ms));\r\n}\r\n\r\n@Injectable()\r\nexport class Utilities {\r\n static delay(arg0: number) {\r\n throw new Error(\"Method not implemented.\");\r\n }\r\n\r\n public static readonly captionAndMessageSeparator = \":\";\r\n public static readonly noNetworkMessageCaption = \"No Network\";\r\n public static readonly noNetworkMessageDetail = \"The server cannot be reached\";\r\n public static readonly accessDeniedMessageCaption = \"Access Denied!\";\r\n public static readonly accessDeniedMessageDetail = \"\";\r\n\r\n public static getHttpResponseMessage(data: HttpResponseBase | any): string[] {\r\n\r\n let responses: string[] = [];\r\n\r\n if (data instanceof HttpResponseBase) {\r\n\r\n if (this.checkNoNetwork(data)) {\r\n responses.push(`${this.noNetworkMessageCaption}${this.captionAndMessageSeparator} ${this.noNetworkMessageDetail}`);\r\n }\r\n else {\r\n let responseObject = this.getResponseBody(data);\r\n\r\n if (responseObject && (typeof responseObject === 'object' || responseObject instanceof Object)) {\r\n\r\n for (let key in responseObject) {\r\n if (key)\r\n responses.push(`${key}${this.captionAndMessageSeparator} ${responseObject[key]}`);\r\n else if (responseObject[key])\r\n responses.push(responseObject[key].toString());\r\n }\r\n }\r\n }\r\n\r\n if (!responses.length && this.getResponseBody(data))\r\n responses.push(`${data.statusText}: ${this.getResponseBody(data).toString()}`);\r\n }\r\n\r\n if (!responses.length)\r\n responses.push(data.toString());\r\n\r\n if (this.checkAccessDenied(data))\r\n responses.splice(0, 0, `${this.accessDeniedMessageCaption}${this.captionAndMessageSeparator} ${this.accessDeniedMessageDetail}`);\r\n\r\n\r\n return responses;\r\n }\r\n\r\n\r\n public static findHttpResponseMessage(messageToFind: string, data: HttpResponse<any> | any, seachInCaptionOnly = true, includeCaptionInResult = false): string {\r\n\r\n let searchString = messageToFind.toLowerCase();\r\n let httpMessages = this.getHttpResponseMessage(data);\r\n\r\n for (let message of httpMessages) {\r\n let fullMessage = Utilities.splitInTwo(message, this.captionAndMessageSeparator);\r\n\r\n if (fullMessage.firstPart && fullMessage.firstPart.toLowerCase().indexOf(searchString) != -1) {\r\n return includeCaptionInResult ? message : fullMessage.secondPart || fullMessage.firstPart;\r\n }\r\n }\r\n\r\n if (!seachInCaptionOnly) {\r\n for (let message of httpMessages) {\r\n\r\n if (message.toLowerCase().indexOf(searchString) != -1) {\r\n if (includeCaptionInResult) {\r\n return message;\r\n }\r\n else {\r\n let fullMessage = Utilities.splitInTwo(message, this.captionAndMessageSeparator);\r\n return fullMessage.secondPart || fullMessage.firstPart;\r\n }\r\n }\r\n }\r\n }\r\n\r\n return null;\r\n }\r\n\r\n\r\n public static getResponseBody(response: HttpResponseBase) {\r\n if (response instanceof HttpResponse)\r\n return response.body;\r\n\r\n if (response instanceof HttpErrorResponse)\r\n return response.error || response.message || response.statusText;\r\n }\r\n\r\n\r\n public static checkNoNetwork(response: HttpResponseBase) {\r\n if (response instanceof HttpResponseBase) {\r\n return response.status == 0;\r\n }\r\n\r\n return false;\r\n }\r\n\r\n public static checkAccessDenied(response: HttpResponseBase) {\r\n if (response instanceof HttpResponseBase) {\r\n return response.status == 403;\r\n }\r\n\r\n return false;\r\n }\r\n\r\n public static checkNotFound(response: HttpResponseBase) {\r\n if (response instanceof HttpResponseBase) {\r\n return response.status == 404;\r\n }\r\n\r\n return false;\r\n }\r\n\r\n public static checkIsLocalHost(url: string, base?: string) {\r\n if (url) {\r\n let location = new URL(url, base);\r\n return location.hostname === \"localhost\" || location.hostname === \"127.0.0.1\";\r\n }\r\n\r\n return false;\r\n }\r\n\r\n\r\n\r\n public static getQueryParamsFromString(paramString: string) {\r\n\r\n if (!paramString)\r\n return null;\r\n\r\n let params: { [key: string]: string } = {};\r\n\r\n for (let param of paramString.split(\"&\")) {\r\n let keyValue = Utilities.splitInTwo(param, \"=\");\r\n params[keyValue.firstPart] = keyValue.secondPart;\r\n }\r\n\r\n return params;\r\n }\r\n\r\n\r\n public static splitInTwo(text: string, separator: string): { firstPart: string, secondPart: string } {\r\n let separatorIndex = text.indexOf(separator);\r\n\r\n if (separatorIndex == -1)\r\n return { firstPart: text, secondPart: null };\r\n\r\n let part1 = text.substr(0, separatorIndex).trim();\r\n let part2 = text.substr(separatorIndex + 1).trim();\r\n\r\n return { firstPart: part1, secondPart: part2 };\r\n }\r\n\r\n\r\n public static safeStringify(object) {\r\n\r\n let result: string;\r\n\r\n try {\r\n result = JSON.stringify(object);\r\n return result;\r\n }\r\n catch (error) {\r\n\r\n }\r\n\r\n let simpleObject = {};\r\n\r\n for (let prop in object) {\r\n if (!object.hasOwnProperty(prop)) {\r\n continue;\r\n }\r\n if (typeof (object[prop]) == 'object') {\r\n continue;\r\n }\r\n if (typeof (object[prop]) == 'function') {\r\n continue;\r\n }\r\n simpleObject[prop] = object[prop];\r\n }\r\n\r\n result = \"[***Sanitized Object***]: \" + JSON.stringify(simpleObject);\r\n\r\n return result;\r\n }\r\n\r\n\r\n public static JSonTryParse(value: string) {\r\n try {\r\n return JSON.parse(value);\r\n }\r\n catch (e) {\r\n if (value === \"undefined\")\r\n return void 0;\r\n\r\n return value;\r\n }\r\n }\r\n\r\n public static isNonEmptyString(str: string) {\r\n return str && str.length > 0;\r\n }\r\n\r\n public static isEmptyString(str: string) {\r\n return Utilities.IsNil(str) || str.length === 0;\r\n }\r\n\r\n public static areValuesEqual (a: any, b: any) : boolean {\r\n if (a === b) return true;\r\n\r\n if (a instanceof Date && b instanceof Date) {\r\n return a.getTime() === b.getTime();\r\n }\r\n if (a?.valueOf && b?.valueOf) {\r\n return a.valueOf() === b.valueOf();\r\n }\r\n if (typeof a !== 'object' && typeof b !== 'object') {\r\n return a === b;\r\n }\r\n return JSON.stringify(a) === JSON.stringify(b);\r\n }\r\n\r\n public static TestIsObjectEmpty(obj: any) {\r\n for (let prop in obj) {\r\n if (obj.hasOwnProperty(prop)) {\r\n return false;\r\n }\r\n }\r\n\r\n return true;\r\n }\r\n\r\n\r\n public static IsUndefined(value: any) {\r\n return typeof value === 'undefined';\r\n }\r\n\r\n /**\r\n * Éléments du tableau sans doublon sur la propriété donnée (premier élément gardé, ordre conservé),\r\n * comme uniqBy de lodash ; tableau vide sans tableau.\r\n */\r\n public static uniqBy<T>(items: T[] | null | undefined, property: string): T[] {\r\n const seen = new Set<any>();\r\n return (items ?? []).filter(item => {\r\n const key = (item as any)?.[property];\r\n if (seen.has(key))\r\n return false;\r\n seen.add(key);\r\n return true;\r\n });\r\n }\r\n\r\n public static IsNil(value: any): boolean {\r\n return (value == null) || value === undefined || typeof value === 'undefined';\r\n }\r\n\r\n public static TestIsString(value: any) {\r\n return typeof value === 'string' || value instanceof String;\r\n }\r\n\r\n public static capitalizeFirstLetter(text: string) {\r\n if (text)\r\n return text.charAt(0).toUpperCase() + text.slice(1);\r\n else\r\n return text;\r\n }\r\n\r\n\r\n public static toTitleCase(text: string) {\r\n return text.replace(/\\w\\S*/g, (subString) => {\r\n return subString.charAt(0).toUpperCase() + subString.substr(1).toLowerCase();\r\n });\r\n }\r\n\r\n\r\n public static toLowerCase(items: string)\r\n public static toLowerCase(items: string[])\r\n public static toLowerCase(items: any): string | string[] {\r\n\r\n if (items instanceof Array) {\r\n let loweredRoles: string[] = [];\r\n\r\n for (let i = 0; i < items.length; i++) {\r\n loweredRoles[i] = items[i].toLowerCase();\r\n }\r\n\r\n return loweredRoles;\r\n }\r\n else if (typeof items === 'string' || items instanceof String) {\r\n return items.toLowerCase();\r\n }\r\n }\r\n\r\n\r\n public static uniqueId() {\r\n return this.randomNumber(1000000, 9000000).toString();\r\n }\r\n\r\n\r\n public static randomNumber(min: number, max: number) {\r\n return Math.floor(Math.random() * (max - min + 1) + min);\r\n }\r\n\r\n\r\n public static baseUrl() {\r\n let base = '';\r\n\r\n if (window.location.origin)\r\n base = window.location.origin;\r\n else\r\n base = window.location.protocol + \"//\" + window.location.hostname + (window.location.port ? ':' + window.location.port : '');\r\n\r\n return base.replace(/\\/$/, '');\r\n }\r\n\r\n\r\n public static printDateOnly(date: Date) {\r\n\r\n date = new Date(date);\r\n\r\n let dayNames = new Array(\"Sunday\", \"Monday\", \"Tuesday\", \"Wednesday\", \"Thursday\", \"Friday\", \"Saturday\");\r\n let monthNames = new Array(\"January\", \"February\", \"March\", \"April\", \"May\", \"June\", \"July\", \"August\", \"September\", \"October\", \"November\", \"December\");\r\n\r\n let dayOfWeek = date.getDay();\r\n let dayOfMonth = date.getDate();\r\n let sup = \"\";\r\n let month = date.getMonth();\r\n let year = date.getFullYear();\r\n\r\n if (dayOfMonth == 1 || dayOfMonth == 21 || dayOfMonth == 31) {\r\n sup = \"st\";\r\n }\r\n else if (dayOfMonth == 2 || dayOfMonth == 22) {\r\n sup = \"nd\";\r\n }\r\n else if (dayOfMonth == 3 || dayOfMonth == 23) {\r\n sup = \"rd\";\r\n }\r\n else {\r\n sup = \"th\";\r\n }\r\n\r\n let dateString = dayNames[dayOfWeek] + \", \" + dayOfMonth + sup + \" \" + monthNames[month] + \" \" + year;\r\n\r\n return dateString;\r\n }\r\n\r\n public static printTimeOnly(date: Date) {\r\n\r\n date = new Date(date);\r\n\r\n let period = \"\";\r\n let minute = date.getMinutes().toString();\r\n let hour = date.getHours();\r\n\r\n period = hour < 12 ? \"AM\" : \"PM\";\r\n\r\n if (hour == 0) {\r\n hour = 12;\r\n }\r\n if (hour > 12) {\r\n hour = hour - 12;\r\n }\r\n\r\n if (minute.length == 1) {\r\n minute = \"0\" + minute;\r\n }\r\n\r\n let timeString = hour + \":\" + minute + \" \" + period;\r\n\r\n\r\n return timeString;\r\n }\r\n\r\n public static printDate(date: Date, separator = \"at\") {\r\n return `${Utilities.printDateOnly(date)} ${separator} ${Utilities.printTimeOnly(date)}`;\r\n }\r\n\r\n\r\n public static printFriendlyDate(date: Date, separator = \"-\") {\r\n let today = new Date(); today.setHours(0, 0, 0, 0);\r\n let yesterday = new Date(today); yesterday.setDate(yesterday.getDate() - 1);\r\n let test = new Date(date.getFullYear(), date.getMonth(), date.getDate());\r\n\r\n if (test.toDateString() == today.toDateString())\r\n return `Today ${separator} ${Utilities.printTimeOnly(date)}`;\r\n if (test.toDateString() == yesterday.toDateString())\r\n return `Yesterday ${separator} ${Utilities.printTimeOnly(date)}`;\r\n else\r\n return Utilities.printDate(date, separator);\r\n }\r\n\r\n public static printShortDate(date: Date, separator = \"/\", dateTimeSeparator = \"-\") {\r\n\r\n var day = date.getDate().toString();\r\n var month = (date.getMonth() + 1).toString();\r\n var year = date.getFullYear();\r\n\r\n if (day.length == 1)\r\n day = \"0\" + day;\r\n\r\n if (month.length == 1)\r\n month = \"0\" + month;\r\n\r\n return `${month}${separator}${day}${separator}${year} ${dateTimeSeparator} ${Utilities.printTimeOnly(date)}`;\r\n }\r\n\r\n\r\n public static parseDate(date):Date {\r\n\r\n if (date) {\r\n\r\n if (date instanceof Date) {\r\n return date;\r\n }\r\n\r\n if (typeof date === 'string' || date instanceof String) {\r\n if (date.search(/[a-su-z+]/i) == -1)\r\n date = date + \"Z\";\r\n\r\n return new Date(date);\r\n }\r\n\r\n if (typeof date === 'number' || date instanceof Number) {\r\n return new Date(<any>date);\r\n }\r\n }\r\n }\r\n\r\n\r\n public static Format2Digits(n) {\r\n return n > 9 ? \"\" + n : \"0\" + n;\r\n }\r\n\r\n /**\r\n * Formate une date JavaScript pour un paramètre envoyé à l'API : date et heure locales, telles que saisies,\r\n * suivies de « Z » comme l'a toujours fait le socle. Une date sans heure (minuit local) donne donc\r\n * « AAAA-MM-JJT00:00:00.000Z », comme avant ; une date avec une heure garde désormais son heure\r\n * (avant, elle était ramenée à minuit).\r\n * @param date Date à formater.\r\n * @returns Texte ISO de la date et de l'heure locales.\r\n */\r\n public static formatDateParam(date: Date): string {\r\n const ms = date.getMilliseconds();\r\n const millis = ms < 10 ? '00' + ms : ms < 100 ? '0' + ms : '' + ms;\r\n return `${date.getFullYear()}-${Utilities.Format2Digits(date.getMonth() + 1)}-${Utilities.Format2Digits(date.getDate())}`\r\n + `T${Utilities.Format2Digits(date.getHours())}:${Utilities.Format2Digits(date.getMinutes())}:${Utilities.Format2Digits(date.getSeconds())}.${millis}Z`;\r\n }\r\n\r\n\r\n public static printDuration(start: Date, end: Date) {\r\n\r\n start = new Date(start);\r\n end = new Date(end);\r\n\r\n // get total seconds between the times\r\n let delta = Math.abs(start.valueOf() - end.valueOf()) / 1000;\r\n\r\n // calculate (and subtract) whole days\r\n let days = Math.floor(delta / 86400);\r\n delta -= days * 86400;\r\n\r\n // calculate (and subtract) whole hours\r\n let hours = Math.floor(delta / 3600) % 24;\r\n delta -= hours * 3600;\r\n\r\n // calculate (and subtract) whole minutes\r\n let minutes = Math.floor(delta / 60) % 60;\r\n delta -= minutes * 60;\r\n\r\n // what's left is seconds\r\n let seconds = delta % 60; // in theory the modulus is not required\r\n\r\n\r\n let printedDays = \"\";\r\n\r\n if (days)\r\n printedDays = `${days} days`;\r\n\r\n if (hours)\r\n printedDays += printedDays ? `, ${hours} hours` : `${hours} hours`;\r\n\r\n if (minutes)\r\n printedDays += printedDays ? `, ${minutes} minutes` : `${minutes} minutes`;\r\n\r\n if (seconds)\r\n printedDays += printedDays ? ` and ${seconds} seconds` : `${seconds} seconds`;\r\n\r\n\r\n if (!printedDays)\r\n printedDays = \"0\";\r\n\r\n return printedDays;\r\n }\r\n\r\n\r\n public static getAge(birthDate, otherDate) {\r\n birthDate = new Date(birthDate);\r\n otherDate = new Date(otherDate);\r\n\r\n let years = (otherDate.getFullYear() - birthDate.getFullYear());\r\n\r\n if (otherDate.getMonth() < birthDate.getMonth() ||\r\n otherDate.getMonth() == birthDate.getMonth() && otherDate.getDate() < birthDate.getDate()) {\r\n years--;\r\n }\r\n\r\n return years;\r\n }\r\n\r\n public static isDateAEarlierThanDateB(dateA: Date, dateB: Date)\r\n {\r\n return dateA.getFullYear() < dateB.getFullYear()\r\n ||(dateA.getFullYear() == dateB.getFullYear() && dateA.getMonth() < dateB.getMonth())\r\n ||(dateA.getMonth() == dateB.getMonth() && dateA.getDate() < dateB.getDate())\r\n }\r\n\r\n\r\n public static searchArray(searchTerm: string, caseSensitive: boolean, ...values: any[]) {\r\n\r\n if (!searchTerm)\r\n return true;\r\n\r\n\r\n if (!caseSensitive)\r\n searchTerm = searchTerm.toLowerCase();\r\n\r\n for (let value of values) {\r\n\r\n if (value != null) {\r\n let strValue = value.toString();\r\n\r\n if (!caseSensitive)\r\n strValue = strValue.toLowerCase();\r\n\r\n if (strValue.indexOf(searchTerm) !== -1)\r\n return true;\r\n }\r\n }\r\n\r\n return false;\r\n }\r\n\r\n\r\n public static moveArrayItem(array: any[], oldIndex, newIndex) {\r\n\r\n while (oldIndex < 0) {\r\n oldIndex += this.length;\r\n }\r\n\r\n while (newIndex < 0) {\r\n newIndex += this.length;\r\n }\r\n\r\n if (newIndex >= this.length) {\r\n var k = newIndex - this.length;\r\n while ((k--) + 1) {\r\n array.push(undefined);\r\n }\r\n }\r\n\r\n array.splice(newIndex, 0, array.splice(oldIndex, 1)[0]);\r\n }\r\n\r\n\r\n public static expandCamelCase(text: string) {\r\n\r\n if (!text)\r\n return text;\r\n\r\n return text.replace(/([A-Z][a-z]+)/g, \" $1\")\r\n .replace(/([A-Z][A-Z]+)/g, \" $1\")\r\n .replace(/([^A-Za-z ]+)/g, \" $1\");\r\n }\r\n\r\n\r\n public static testIsAbsoluteUrl(url: string) {\r\n\r\n let r = new RegExp('^(?:[a-z]+:)?//', 'i');\r\n return r.test(url);\r\n }\r\n\r\n\r\n public static convertToAbsoluteUrl(url: string) {\r\n\r\n return Utilities.testIsAbsoluteUrl(url) ? url : '//' + url;\r\n }\r\n\r\n\r\n\r\n public static removeNulls(obj) {\r\n let isArray = obj instanceof Array;\r\n\r\n for (let k in obj) {\r\n if (obj[k] === null) {\r\n isArray ? obj.splice(k, 1) : delete obj[k];\r\n }\r\n else if (typeof obj[k] == \"object\") {\r\n Utilities.removeNulls(obj[k]);\r\n }\r\n\r\n if (isArray && obj.length == k) {\r\n Utilities.removeNulls(obj);\r\n }\r\n }\r\n\r\n return obj;\r\n }\r\n\r\n\r\n public static debounce(func: (...args) => any, wait: number, immediate?: boolean) {\r\n var timeout;\r\n\r\n return function () {\r\n var context = this;\r\n var args_ = arguments;\r\n\r\n var later = function () {\r\n timeout = null;\r\n if (!immediate)\r\n func.apply(context, args_);\r\n };\r\n\r\n var callNow = immediate && !timeout;\r\n\r\n clearTimeout(timeout);\r\n timeout = setTimeout(later, wait);\r\n\r\n if (callNow)\r\n func.apply(context, args_);\r\n };\r\n }\r\n\r\n\r\n\r\n public static cookies = {\r\n getItem: (sKey) => {\r\n return decodeURIComponent(document.cookie.replace(new RegExp(\"(?:(?:^|.*;)\\\\s*\" + encodeURIComponent(sKey).replace(/[\\-\\.\\+\\*]/g, \"\\\\$&\") + \"\\\\s*\\\\=\\\\s*([^;]*).*$)|^.*$\"), \"$1\")) || null;\r\n },\r\n setItem: (sKey, sValue, vEnd, sPath, sDomain, bSecure) => {\r\n if (!sKey || /^(?:expires|max\\-age|path|domain|secure)$/i.test(sKey)) {\r\n return false;\r\n }\r\n\r\n var sExpires = \"\";\r\n\r\n if (vEnd) {\r\n switch (vEnd.constructor) {\r\n case Number:\r\n sExpires = vEnd === Infinity ? \"; expires=Fri, 31 Dec 9999 23:59:59 GMT\" : \"; max-age=\" + vEnd;\r\n break;\r\n case String:\r\n sExpires = \"; expires=\" + vEnd;\r\n break;\r\n case Date:\r\n sExpires = \"; expires=\" + vEnd.toUTCString();\r\n break;\r\n }\r\n }\r\n\r\n document.cookie = encodeURIComponent(sKey) + \"=\" + encodeURIComponent(sValue) + sExpires + (sDomain ? \"; domain=\" + sDomain : \"\") + (sPath ? \"; path=\" + sPath : \"\") + (bSecure ? \"; secure\" : \"\");\r\n return true;\r\n },\r\n removeItem: (sKey, sPath, sDomain) => {\r\n if (!sKey) {\r\n return false;\r\n }\r\n document.cookie = encodeURIComponent(sKey) + \"=; expires=Thu, 01 Jan 1970 00:00:00 GMT\" + (sDomain ? \"; domain=\" + sDomain : \"\") + (sPath ? \"; path=\" + sPath : \"\");\r\n return true;\r\n },\r\n hasItem: (sKey) => {\r\n return (new RegExp(\"(?:^|;\\\\s*)\" + encodeURIComponent(sKey).replace(/[\\-\\.\\+\\*]/g, \"\\\\$&\") + \"\\\\s*\\\\=\")).test(document.cookie);\r\n },\r\n keys: () => {\r\n var aKeys = document.cookie.replace(/((?:^|\\s*;)[^\\=]+)(?=;|$)|^\\s*|\\s*(?:\\=[^;]*)?(?:\\1|$)/g, \"\").split(/\\s*(?:\\=[^;]*)?;\\s*/);\r\n for (var nIdx = 0; nIdx < aKeys.length; nIdx++) { aKeys[nIdx] = decodeURIComponent(aKeys[nIdx]); }\r\n return aKeys;\r\n }\r\n }\r\n\r\n public static isNumber(field: any) {\r\n return (typeof field === 'number' || field instanceof Number);\r\n }\r\n\r\n public static changeName(item: any): string {\r\n if (item)\r\n return item.replace(/[&\\/\\\\#,+()$~%.'\":*?<>{}]/g, '');\r\n return item;\r\n }\r\n\r\n public static transform<T>(value: T, args: any[] = null): { key: keyof T, value: any }[] {\r\n return Object.keys(value).map(k => {\r\n return { key: k as keyof T, value: value[k] }\r\n });\r\n }\r\n\r\n public static GetChannel(entityTypeKey: string) {\r\n\r\n\r\n if ( this.IsNil(entityTypeKey))\r\n return entityTypeKey;\r\n\r\n let k: string = entityTypeKey.toLowerCase();\r\n\r\n switch (k) {\r\n case \"shipment\":\r\n return \"SHP\";\r\n case \"dataimport\":\r\n return \"INP\";\r\n case \"request\":\r\n return \"RQT\";\r\n case \"synchronizedcompany\":\r\n return \"CPY\";\r\n case \"sellingorder\":\r\n return \"ORD\";\r\n case \"purchaseorder\":\r\n return \"ORD\";\r\n default:\r\n return entityTypeKey;\r\n }\r\n }\r\n\r\n public static getProp<T, K extends keyof T>(object: T, property: K): T[K] {\r\n return object[property];\r\n }\r\n\r\n /**\r\n * static getCustomDvalue: stringate\r\n */\r\n public static getCustomDate(value: string) : Date {\r\n\r\n // Jour de la valeur (JJ/MM/AAAA, sinon ISO d'après ses composantes UTC), à minuit en heure locale.\r\n return DateUtils.toUtcDay(value);\r\n }\r\n\r\n public static isLowerThan(value1:string|Date,value2:string|Date): boolean{\r\n let d1,d2: Date;\r\n\r\n if(typeof value1 === 'string')\r\n d1= this.getCustomDate(value1)\r\n else\r\n d1 = value1;\r\n\r\n if(typeof value2 === 'string')\r\n d2= this.getCustomDate(value2)\r\n else d2 = value2;\r\n\r\n return d1 < d2;\r\n }\r\n\r\n public static getLogClass(log: string) {\r\n let regexInfo = /INFO/g;\r\n let regexData = /DATA/g;\r\n let regexError = /ERROR/g;\r\n let regexWarn = /WARNING/g;\r\n\r\n if (regexInfo.test(log)) {\r\n return \"log-info\";\r\n }\r\n\r\n if (regexData.test(log)) {\r\n return \"log-data\";\r\n }\r\n\r\n if (regexError.test(log)) {\r\n return \"log-error\";\r\n }\r\n\r\n if (regexWarn.test(log)) {\r\n return \"log-warning\";\r\n }\r\n\r\n return \"\";\r\n }\r\n\r\n\r\n public static deepCopy(obj) {\r\n var copy;\r\n\r\n // Handle the 3 simple types, and null or undefined\r\n if (null == obj || \"object\" != typeof obj) return obj;\r\n\r\n // Handle Date\r\n if (obj instanceof Date) {\r\n copy = new Date();\r\n copy.setTime(obj.getTime());\r\n return copy;\r\n }\r\n\r\n // Handle Array\r\n if (obj instanceof Array) {\r\n copy = [];\r\n for (var i = 0, len = obj.length; i < len; i++) {\r\n copy[i] = Utilities.deepCopy(obj[i]);\r\n }\r\n return copy;\r\n }\r\n\r\n // Handle Object\r\n if (obj instanceof Object) {\r\n copy = {};\r\n for (var attr in obj) {\r\n if (obj.hasOwnProperty(attr)) copy[attr] = Utilities.deepCopy(obj[attr]);\r\n }\r\n return copy;\r\n }\r\n\r\n throw new Error(\"Unable to copy obj! Its type isn't supported.\");\r\n }\r\n\r\n public static getCleanNumber(initial:string) : number {\r\n\r\n // Si la chaine est vide, on renvoie 0\r\n let value: string = initial.replace(',', '.');\r\n\r\n if( ! isNumeric(value) ) {\r\n // On supprime tous les caractères qui ne sont pas des chiffres.\r\n value = '';\r\n let hasSeparator: boolean = false;\r\n for (var i = 0; i < initial.length; i++) {\r\n let ch= initial[i];\r\n if ( isNumeric(ch) ) {\r\n value = value + ch;\r\n }\r\n else if (! hasSeparator && (ch == '.' || ch == ',')) {\r\n value = value + ch;\r\n hasSeparator = true;\r\n }\r\n }\r\n\r\n value = value.replace(',', '.');\r\n if ( ! isNumeric(value) )\r\n return 0;\r\n }\r\n\r\n let n = Number.parseFloat(value);\r\n return n;\r\n }\r\n\r\n public static addDays(date : Date, days : number) : Date{\r\n var date = new Date(date.valueOf());\r\n date.setDate(date.getDate() + days);\r\n return date;\r\n }\r\n\r\n public static getFormattedParams(params: any): any {\r\n\r\n // Dans le cas d'un tableau, parcours tous les éléments du tableau pour formatter les\r\n let result: any;\r\n\r\n\r\n if (Array.isArray(params)) {\r\n if (params.length > 0 && typeof (params[0]) === 'number')\r\n return JSON.stringify(params);\r\n\r\n result = [];\r\n params.forEach(entity => {\r\n result.push(this.getFormattedParams(entity));\r\n });\r\n return JSON.stringify(result);\r\n }\r\n result = {};\r\n for (let key in params) {\r\n if (params.hasOwnProperty(key)) {\r\n let val = params[key];\r\n if (val !== undefined && val !== null) {\r\n //Handle the Date javascript object\r\n if (val instanceof Date) {\r\n val = Utilities.formatDateParam(val);\r\n }\r\n result[key] = val;\r\n }\r\n }\r\n }\r\n return result;\r\n }\r\n}\r\n","export type valueOf<T> = T[keyof T];\r\nexport function nameof<T, V extends T[keyof T]>(f: (x: T) => V): valueOf<{ [K in keyof T]: T[K] extends V ? K : never }>;\r\nexport function nameof(f: (x: any) => any): keyof any {\r\n var p = new Proxy({}, {\r\n get: (target, key) => key\r\n })\r\n return f(p);\r\n}","// export function groupBy<TItem>(xs: TItem[], key: string) : {[key: string]: TItem[]}{\r\n// return xs.reduce(function(rv, x) {\r\n// (rv[x[key]] = rv[x[key]] || []).push(x);\r\n// return rv;\r\n// }, {});\r\n// };\r\n\r\n\r\n export function groupBy<TItem>(xs: TItem[], key: Extract<keyof TItem,string>) : {[key: string]: TItem[]}{\r\n return xs.reduce(function(rv, x) {\r\n (rv[x[key]as any] = rv[x[key]as any] || []).push(x);\r\n return rv;\r\n }, {});\r\n };\r\n\r\n export function groupByFunc<TItem,TKey>(xs: TItem[], func:((i:TItem)=>string)) : {[key: string]: TItem[]}{\r\n return xs.reduce(function(rv, x) {\r\n let k = func(x);\r\n (rv[k] = rv[k] || []).push(x);\r\n return rv;\r\n }, {});\r\n };\r\n\r\n export function sumOf<TItem>(xs:TItem[],func:((i:TItem)=>number)) : number{\r\n return xs.map(func).reduce((a,b)=>a+b);\r\n }\r\n\r\n // https://codereview.stackexchange.com/a/100843\r\n export function distinct(array:(number|string)[]) : (number|string)[]{\r\n return array.reduce(function(carry, item){\r\n if(item && !~carry.indexOf(item))\r\n carry.push(item);\r\n return carry;\r\n }, []);\r\n }\r\n ","export abstract class EnvironmentBase {\r\n abstract readonly production: boolean;\r\n abstract readonly fileUrl: string;\r\n abstract readonly baseUrl: string;\r\n abstract readonly apiUrl: string;\r\n abstract readonly hubUrl: string;\r\n\r\n /**\r\n * Nom de l'application, affiché dans la barre supérieure et sur la page d'accueil.\r\n * \"DFlat\" par défaut.\r\n */\r\n readonly appName?: string;\r\n\r\n /**\r\n * Logo affiché à côté du nom de l'application.\r\n * \"assets/images/dflat-icone-positif.svg\" (fourni par le package) par défaut.\r\n */\r\n readonly appLogoUrl?: string;\r\n\r\n /**\r\n * Logo affiché sur la page d'accueil, au-dessus de la barre de recherche.\r\n * \"assets/images/dflat-icone.svg\" (fourni par le package) par défaut.\r\n */\r\n readonly appHomeLogoUrl?: string;\r\n\r\n /**\r\n * Version affichée sur la page d'accueil, qui renvoie vers la page des nouveautés.\r\n * Masquée si elle n'est pas renseignée.\r\n */\r\n readonly appVersion?: string;\r\n};\r\n"],"mappings":";;;;AAAA,IAAa,8BAAb,MAAwC;CAEpC,YAAY,cAAiB;EACzB,IAAI,cACA,MAAM,IAAI,MAAM,GAAG,aAAa,YAAY,KAAI,oEAAqE;CAE7H;AAEH;ACaD,IAAa,aAAb,MAAa,mBAAmB,4BAA2B;CAGtD,YAAqC,cAAwB;EACzD,MAAM,YAAY;CACtB;CALQ;EAAA,KAAA,OAAA,GAAA,mBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAU,MAAA,CAAA;IAAA,OAAA;IAAA,UAAA;IAAA,UAAA;GA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MAAI;EACtC,IAAG,QAAQ,CAAC,CAAC,MAAM,QAAQ,IAAI,GAC7B,MAAM,KAAK,IAAI;EACjB,OAAO;CACT,GAAG,CAAA,CAAE;AACP;AClCF,IAAsB,kBAAtB,MAAqC,CA8BpC"}
1
+ {"version":3,"file":"dflat-core-web-core.mjs","names":[],"sources":["../../core/src/lib/services/ensuremoduleloadedonceguard.ts","../../core/src/lib/core.module.ts","../../core/src/lib/services/date-utils.ts","../../core/src/lib/services/utilities.service.ts","../../core/src/lib/services/data-service-tokens.ts","../../core/src/lib/nameof.function.ts","../../core/src/lib/array.function.ts","../../core/src/lib/global/EnvironmentBase.ts"],"sourcesContent":["export class EnsureModuleLoadedOnceGuard {\r\n\r\n constructor(targetModule: any) {\r\n if (targetModule) {\r\n throw new Error(`${targetModule.constructor.name} has already been loaded. Import this module in the AppModule only.`);\r\n }\r\n }\r\n\r\n}","// IMPORTANT : DANS LE BUT DE FACILITER LES MERGE ET LA LECTURE DU CODE.\r\n\r\n// 1. TOUJOURS CONSERVER LE TRI SUR LES IMPORTS\r\n// UTILISER L'EXTENSION \"TypeScript Import Sorter\" DANS VSCODE.\r\n// CONFIGURER L'EXTENSION POUR ACTIVER LA MISE EN FORME AUTOMATIQUE A LA SAUVEGARDE \r\n\r\n// 2. UTILISER CTRL-SHIFT O POUR SUPPRIMER AUTOMATIQUEMENT LES IMPORTS INUTILES\r\n\r\n// 3. TRIER LES COMPOSANTS OU DEPENDANCES DANS LES DECLARATIONS (IMPORTS, EXPORTS)\r\n// SELECTION DU TEXTE PUIS CTRL-SHIFT P, \"Sort Lines Ascending\"\r\n// ON PEUT PARAMETRER DES RACCOURCIS CLAVIER DANS VSCODE\r\n// PAR EXEMPLE : CTRL-T UP (TRI CROISSANT) ou CTRL-T DOWN (TRI DECDROISSANT)\r\nimport { CommonModule } from '@angular/common';\r\nimport { provideHttpClient, withInterceptorsFromDi, withXhr } from '@angular/common/http';\r\nimport { NgModule, Optional, SkipSelf } from '@angular/core';\r\n\r\nimport { EnsureModuleLoadedOnceGuard } from './services/ensuremoduleloadedonceguard';\r\n\r\n@NgModule({ exports: [],\r\n declarations: [], imports: [CommonModule], providers: [provideHttpClient(withXhr(), withInterceptorsFromDi())] })\r\n// Ensure that CoreModule is only loaded into AppModule\r\nexport class CoreModule extends EnsureModuleLoadedOnceGuard {\r\n\r\n // Looks for the module in the parent injector to see if it's already been loaded (only want it loaded once)\r\n constructor( @Optional() @SkipSelf() parentModule: CoreModule) {\r\n super(parentModule);\r\n }\r\n}\r\n\r\n","/**\r\n * Dates du package, sans librairie (remplace moment) : lecture des valeurs de date reçues du serveur\r\n * (Date, chaîne ISO 8601, nombre de millisecondes) ou saisies (JJ/MM/AAAA), mise en forme par motif\r\n * (AAAA, MM, JJ, HH, mm, ss : `YYYY`, `MM`, `DD`, `HH`, `mm`, `ss`), en heure locale ou UTC.\r\n *\r\n * Une chaîne ISO sans fuseau (`2026-10-17`, `2026-10-17T08:30`) est lue en heure locale, comme\r\n * moment(...), ou en UTC (assumeUtc), comme moment.utc(...) ; avec `Z` ou un décalage, à l'instant\r\n * indiqué.\r\n */\r\nexport class DateUtils {\r\n private static readonly IsoPattern =\r\n /^(\\d{4})-(\\d{2})-(\\d{2})(?:[T ](\\d{2}):(\\d{2})(?::(\\d{2})(?:\\.(\\d{1,7}))?)?)?\\s*(Z|[+-]\\d{2}:?\\d{2})?$/i;\r\n\r\n private static readonly DayMonthYearPattern =\r\n /^(\\d{1,2})\\/(\\d{1,2})\\/(\\d{4})(?:\\s+(\\d{1,2}):(\\d{2})(?::(\\d{2}))?)?$/;\r\n\r\n /** Date valide, sinon null. */\r\n private static valid(date: Date): Date | null {\r\n return isNaN(date.getTime()) ? null : date;\r\n }\r\n\r\n /**\r\n * Valeur lue comme une date : Date valide, nombre de millisecondes, ou chaîne ISO 8601 ; null sinon\r\n * (chaîne quelconque, null, undefined).\r\n */\r\n static toDate(value: unknown, assumeUtc = false): Date | null {\r\n if (value instanceof Date)\r\n return DateUtils.valid(value);\r\n if (typeof value === 'number')\r\n return isFinite(value) ? DateUtils.valid(new Date(value)) : null;\r\n if (typeof value !== 'string')\r\n return null;\r\n return DateUtils.parseIso(value.trim(), assumeUtc);\r\n }\r\n\r\n /** Chaîne ISO 8601 (jour seul, avec heure, avec fuseau) ; null si elle n'en est pas une ou si la date n'existe pas. */\r\n static parseIso(text: string, assumeUtc = false): Date | null {\r\n const m = DateUtils.IsoPattern.exec(text ?? '');\r\n if (!m)\r\n return null;\r\n const [y, mo, d, h = '0', mi = '0', s = '0', frac = '0', zone] = m.slice(1);\r\n const ms = Math.round(Number('0.' + frac) * 1000);\r\n if (!DateUtils.isDay(+y, +mo, +d) || +h > 23 || +mi > 59 || +s > 59)\r\n return null;\r\n if (!zone && !assumeUtc)\r\n return DateUtils.valid(new Date(+y, +mo - 1, +d, +h, +mi, +s, ms));\r\n const utc = Date.UTC(+y, +mo - 1, +d, +h, +mi, +s, ms);\r\n if (!zone || zone.toUpperCase() === 'Z')\r\n return DateUtils.valid(new Date(utc));\r\n const sign = zone.startsWith('-') ? -1 : 1;\r\n const digits = zone.replace(/[+:-]/g, '');\r\n const offset = sign * (Number(digits.substring(0, 2)) * 60 + Number(digits.substring(2, 4)));\r\n return DateUtils.valid(new Date(utc - offset * 60000));\r\n }\r\n\r\n /** Saisie JJ/MM/AAAA, avec éventuellement HH:mm ou HH:mm:ss, en heure locale ; null sinon. */\r\n static parseDayMonthYear(text: string): Date | null {\r\n const m = DateUtils.DayMonthYearPattern.exec((text ?? '').trim());\r\n if (!m)\r\n return null;\r\n const [d, mo, y, h = '0', mi = '0', s = '0'] = m.slice(1);\r\n if (!DateUtils.isDay(+y, +mo, +d) || +h > 23 || +mi > 59 || +s > 59)\r\n return null;\r\n return new Date(+y, +mo - 1, +d, +h, +mi, +s);\r\n }\r\n\r\n /** Saisie d'une date dans une cellule ou un champ : JJ/MM/AAAA [HH:mm[:ss]], sinon ISO 8601 ; null sinon. */\r\n static parseInput(text: string): Date | null {\r\n const value = (text ?? '').trim();\r\n return DateUtils.parseDayMonthYear(value) ?? DateUtils.parseIso(value);\r\n }\r\n\r\n /** Indique si la valeur se lit comme une date (voir toDate). */\r\n static isValid(value: unknown): boolean {\r\n return DateUtils.toDate(value) !== null;\r\n }\r\n\r\n /** Indique si la valeur est une chaîne ISO 8601 de date (jour seul ou avec heure). */\r\n static isIsoString(value: unknown): value is string {\r\n return typeof value === 'string' && DateUtils.parseIso(value.trim()) !== null;\r\n }\r\n\r\n /**\r\n * Jour de la date, à minuit en heure locale, d'après ses composantes UTC (année, mois, jour) :\r\n * une date reçue à minuit UTC reste le même jour quel que soit le fuseau. Une chaîne JJ/MM/AAAA\r\n * donne ce jour. Null si la valeur n'est pas une date.\r\n */\r\n static toUtcDay(value: unknown): Date | null {\r\n if (typeof value === 'string' && value.includes('/')) {\r\n const d = DateUtils.parseDayMonthYear(value);\r\n return d ? new Date(d.getFullYear(), d.getMonth(), d.getDate()) : null;\r\n }\r\n const date = DateUtils.toDate(value, true);\r\n return date ? new Date(date.getUTCFullYear(), date.getUTCMonth(), date.getUTCDate()) : null;\r\n }\r\n\r\n /** Valeur mise en forme en heure locale (motif YYYY, MM, DD, HH, mm, ss) ; chaîne vide si ce n'est pas une date. */\r\n static format(value: unknown, pattern: string): string {\r\n const date = DateUtils.toDate(value);\r\n return date ? DateUtils.apply(pattern, date.getFullYear(), date.getMonth() + 1, date.getDate(),\r\n date.getHours(), date.getMinutes(), date.getSeconds()) : '';\r\n }\r\n\r\n /**\r\n * Valeur mise en forme en UTC (motif YYYY, MM, DD, HH, mm, ss), une chaîne sans fuseau étant lue en\r\n * UTC ; chaîne vide si ce n'est pas une date.\r\n */\r\n static formatUtc(value: unknown, pattern = 'YYYY-MM-DDTHH:mm:ss[Z]'): string {\r\n const date = DateUtils.toDate(value, true);\r\n return date ? DateUtils.apply(pattern, date.getUTCFullYear(), date.getUTCMonth() + 1, date.getUTCDate(),\r\n date.getUTCHours(), date.getUTCMinutes(), date.getUTCSeconds()) : '';\r\n }\r\n\r\n /**\r\n * Indique si deux valeurs désignent le même instant, à la seconde près (deux non-dates : faux) ;\r\n * assumeUtc : une chaîne sans fuseau est lue en UTC.\r\n */\r\n static isSameSecond(a: unknown, b: unknown, assumeUtc = false): boolean {\r\n const d1 = DateUtils.toDate(a, assumeUtc);\r\n const d2 = DateUtils.toDate(b, assumeUtc);\r\n return !!d1 && !!d2 && Math.floor(d1.getTime() / 1000) === Math.floor(d2.getTime() / 1000);\r\n }\r\n\r\n /** Indique si deux valeurs tombent le même jour, en heure locale (deux non-dates : faux). */\r\n static isSameDay(a: unknown, b: unknown): boolean {\r\n const d1 = DateUtils.format(a, 'YYYY-MM-DD');\r\n return d1 !== '' && d1 === DateUtils.format(b, 'YYYY-MM-DD');\r\n }\r\n\r\n private static isDay(y: number, m: number, d: number): boolean {\r\n if (m < 1 || m > 12 || d < 1)\r\n return false;\r\n return d <= new Date(y, m, 0).getDate();\r\n }\r\n\r\n /** Remplace les jetons du motif ; un texte entre crochets ([T], [Z]) est recopié tel quel. */\r\n private static apply(pattern: string, y: number, mo: number, d: number, h: number, mi: number, s: number): string {\r\n const two = (n: number) => String(n).padStart(2, '0');\r\n return pattern.replace(/\\[([^\\]]*)\\]|YYYY|MM|DD|HH|mm|ss/g, (token, literal) => {\r\n if (literal !== undefined) return literal;\r\n switch (token) {\r\n case 'YYYY': return String(y).padStart(4, '0');\r\n case 'MM': return two(mo);\r\n case 'DD': return two(d);\r\n case 'HH': return two(h);\r\n case 'mm': return two(mi);\r\n default: return two(s);\r\n }\r\n });\r\n }\r\n}\r\n","import { DateUtils } from './date-utils';\r\n\r\nimport { HttpErrorResponse, HttpResponse, HttpResponseBase } from '@angular/common/http';\r\nimport { Injectable } from '@angular/core';\r\n\r\nexport const isArray = Array.isArray || ((x) => x && typeof x.length === 'number');\r\nexport function isNumeric(val) {\r\n // parseFloat NaNs numeric-cast false positives (null|true|false|\"\")\r\n // ...but misinterprets leading-number strings, particularly hex literals (\"0x...\")\r\n // subtraction forces infinities to NaN\r\n // adding 1 corrects loss of precision from parseFloat (#15100)\r\n return !isArray(val) && (val - parseFloat(val) + 1) >= 0;\r\n}\r\nexport function sleep(ms) {\r\n return new Promise(resolve => setTimeout(resolve, ms));\r\n}\r\n\r\n@Injectable()\r\nexport class Utilities {\r\n static delay(arg0: number) {\r\n throw new Error(\"Method not implemented.\");\r\n }\r\n\r\n public static readonly captionAndMessageSeparator = \":\";\r\n public static readonly noNetworkMessageCaption = \"No Network\";\r\n public static readonly noNetworkMessageDetail = \"The server cannot be reached\";\r\n public static readonly accessDeniedMessageCaption = \"Access Denied!\";\r\n public static readonly accessDeniedMessageDetail = \"\";\r\n\r\n public static getHttpResponseMessage(data: HttpResponseBase | any): string[] {\r\n\r\n let responses: string[] = [];\r\n\r\n if (data instanceof HttpResponseBase) {\r\n\r\n if (this.checkNoNetwork(data)) {\r\n responses.push(`${this.noNetworkMessageCaption}${this.captionAndMessageSeparator} ${this.noNetworkMessageDetail}`);\r\n }\r\n else {\r\n let responseObject = this.getResponseBody(data);\r\n\r\n if (responseObject && (typeof responseObject === 'object' || responseObject instanceof Object)) {\r\n\r\n for (let key in responseObject) {\r\n if (key)\r\n responses.push(`${key}${this.captionAndMessageSeparator} ${responseObject[key]}`);\r\n else if (responseObject[key])\r\n responses.push(responseObject[key].toString());\r\n }\r\n }\r\n }\r\n\r\n if (!responses.length && this.getResponseBody(data))\r\n responses.push(`${data.statusText}: ${this.getResponseBody(data).toString()}`);\r\n }\r\n\r\n if (!responses.length)\r\n responses.push(data.toString());\r\n\r\n if (this.checkAccessDenied(data))\r\n responses.splice(0, 0, `${this.accessDeniedMessageCaption}${this.captionAndMessageSeparator} ${this.accessDeniedMessageDetail}`);\r\n\r\n\r\n return responses;\r\n }\r\n\r\n\r\n public static findHttpResponseMessage(messageToFind: string, data: HttpResponse<any> | any, seachInCaptionOnly = true, includeCaptionInResult = false): string {\r\n\r\n let searchString = messageToFind.toLowerCase();\r\n let httpMessages = this.getHttpResponseMessage(data);\r\n\r\n for (let message of httpMessages) {\r\n let fullMessage = Utilities.splitInTwo(message, this.captionAndMessageSeparator);\r\n\r\n if (fullMessage.firstPart && fullMessage.firstPart.toLowerCase().indexOf(searchString) != -1) {\r\n return includeCaptionInResult ? message : fullMessage.secondPart || fullMessage.firstPart;\r\n }\r\n }\r\n\r\n if (!seachInCaptionOnly) {\r\n for (let message of httpMessages) {\r\n\r\n if (message.toLowerCase().indexOf(searchString) != -1) {\r\n if (includeCaptionInResult) {\r\n return message;\r\n }\r\n else {\r\n let fullMessage = Utilities.splitInTwo(message, this.captionAndMessageSeparator);\r\n return fullMessage.secondPart || fullMessage.firstPart;\r\n }\r\n }\r\n }\r\n }\r\n\r\n return null;\r\n }\r\n\r\n\r\n public static getResponseBody(response: HttpResponseBase) {\r\n if (response instanceof HttpResponse)\r\n return response.body;\r\n\r\n if (response instanceof HttpErrorResponse)\r\n return response.error || response.message || response.statusText;\r\n }\r\n\r\n\r\n public static checkNoNetwork(response: HttpResponseBase) {\r\n if (response instanceof HttpResponseBase) {\r\n return response.status == 0;\r\n }\r\n\r\n return false;\r\n }\r\n\r\n public static checkAccessDenied(response: HttpResponseBase) {\r\n if (response instanceof HttpResponseBase) {\r\n return response.status == 403;\r\n }\r\n\r\n return false;\r\n }\r\n\r\n public static checkNotFound(response: HttpResponseBase) {\r\n if (response instanceof HttpResponseBase) {\r\n return response.status == 404;\r\n }\r\n\r\n return false;\r\n }\r\n\r\n public static checkIsLocalHost(url: string, base?: string) {\r\n if (url) {\r\n let location = new URL(url, base);\r\n return location.hostname === \"localhost\" || location.hostname === \"127.0.0.1\";\r\n }\r\n\r\n return false;\r\n }\r\n\r\n\r\n\r\n public static getQueryParamsFromString(paramString: string) {\r\n\r\n if (!paramString)\r\n return null;\r\n\r\n let params: { [key: string]: string } = {};\r\n\r\n for (let param of paramString.split(\"&\")) {\r\n let keyValue = Utilities.splitInTwo(param, \"=\");\r\n params[keyValue.firstPart] = keyValue.secondPart;\r\n }\r\n\r\n return params;\r\n }\r\n\r\n\r\n public static splitInTwo(text: string, separator: string): { firstPart: string, secondPart: string } {\r\n let separatorIndex = text.indexOf(separator);\r\n\r\n if (separatorIndex == -1)\r\n return { firstPart: text, secondPart: null };\r\n\r\n let part1 = text.substr(0, separatorIndex).trim();\r\n let part2 = text.substr(separatorIndex + 1).trim();\r\n\r\n return { firstPart: part1, secondPart: part2 };\r\n }\r\n\r\n\r\n public static safeStringify(object) {\r\n\r\n let result: string;\r\n\r\n try {\r\n result = JSON.stringify(object);\r\n return result;\r\n }\r\n catch (error) {\r\n\r\n }\r\n\r\n let simpleObject = {};\r\n\r\n for (let prop in object) {\r\n if (!object.hasOwnProperty(prop)) {\r\n continue;\r\n }\r\n if (typeof (object[prop]) == 'object') {\r\n continue;\r\n }\r\n if (typeof (object[prop]) == 'function') {\r\n continue;\r\n }\r\n simpleObject[prop] = object[prop];\r\n }\r\n\r\n result = \"[***Sanitized Object***]: \" + JSON.stringify(simpleObject);\r\n\r\n return result;\r\n }\r\n\r\n\r\n public static JSonTryParse(value: string) {\r\n try {\r\n return JSON.parse(value);\r\n }\r\n catch (e) {\r\n if (value === \"undefined\")\r\n return void 0;\r\n\r\n return value;\r\n }\r\n }\r\n\r\n public static isNonEmptyString(str: string) {\r\n return str && str.length > 0;\r\n }\r\n\r\n public static isEmptyString(str: string) {\r\n return Utilities.IsNil(str) || str.length === 0;\r\n }\r\n\r\n public static areValuesEqual (a: any, b: any) : boolean {\r\n if (a === b) return true;\r\n\r\n if (a instanceof Date && b instanceof Date) {\r\n return a.getTime() === b.getTime();\r\n }\r\n if (a?.valueOf && b?.valueOf) {\r\n return a.valueOf() === b.valueOf();\r\n }\r\n if (typeof a !== 'object' && typeof b !== 'object') {\r\n return a === b;\r\n }\r\n return JSON.stringify(a) === JSON.stringify(b);\r\n }\r\n\r\n public static TestIsObjectEmpty(obj: any) {\r\n for (let prop in obj) {\r\n if (obj.hasOwnProperty(prop)) {\r\n return false;\r\n }\r\n }\r\n\r\n return true;\r\n }\r\n\r\n\r\n public static IsUndefined(value: any) {\r\n return typeof value === 'undefined';\r\n }\r\n\r\n /**\r\n * Éléments du tableau sans doublon sur la propriété donnée (premier élément gardé, ordre conservé),\r\n * comme uniqBy de lodash ; tableau vide sans tableau.\r\n */\r\n public static uniqBy<T>(items: T[] | null | undefined, property: string): T[] {\r\n const seen = new Set<any>();\r\n return (items ?? []).filter(item => {\r\n const key = (item as any)?.[property];\r\n if (seen.has(key))\r\n return false;\r\n seen.add(key);\r\n return true;\r\n });\r\n }\r\n\r\n public static IsNil(value: any): boolean {\r\n return (value == null) || value === undefined || typeof value === 'undefined';\r\n }\r\n\r\n public static TestIsString(value: any) {\r\n return typeof value === 'string' || value instanceof String;\r\n }\r\n\r\n public static capitalizeFirstLetter(text: string) {\r\n if (text)\r\n return text.charAt(0).toUpperCase() + text.slice(1);\r\n else\r\n return text;\r\n }\r\n\r\n\r\n public static toTitleCase(text: string) {\r\n return text.replace(/\\w\\S*/g, (subString) => {\r\n return subString.charAt(0).toUpperCase() + subString.substr(1).toLowerCase();\r\n });\r\n }\r\n\r\n\r\n public static toLowerCase(items: string)\r\n public static toLowerCase(items: string[])\r\n public static toLowerCase(items: any): string | string[] {\r\n\r\n if (items instanceof Array) {\r\n let loweredRoles: string[] = [];\r\n\r\n for (let i = 0; i < items.length; i++) {\r\n loweredRoles[i] = items[i].toLowerCase();\r\n }\r\n\r\n return loweredRoles;\r\n }\r\n else if (typeof items === 'string' || items instanceof String) {\r\n return items.toLowerCase();\r\n }\r\n }\r\n\r\n\r\n public static uniqueId() {\r\n return this.randomNumber(1000000, 9000000).toString();\r\n }\r\n\r\n\r\n public static randomNumber(min: number, max: number) {\r\n return Math.floor(Math.random() * (max - min + 1) + min);\r\n }\r\n\r\n\r\n public static baseUrl() {\r\n let base = '';\r\n\r\n if (window.location.origin)\r\n base = window.location.origin;\r\n else\r\n base = window.location.protocol + \"//\" + window.location.hostname + (window.location.port ? ':' + window.location.port : '');\r\n\r\n return base.replace(/\\/$/, '');\r\n }\r\n\r\n\r\n public static printDateOnly(date: Date) {\r\n\r\n date = new Date(date);\r\n\r\n let dayNames = new Array(\"Sunday\", \"Monday\", \"Tuesday\", \"Wednesday\", \"Thursday\", \"Friday\", \"Saturday\");\r\n let monthNames = new Array(\"January\", \"February\", \"March\", \"April\", \"May\", \"June\", \"July\", \"August\", \"September\", \"October\", \"November\", \"December\");\r\n\r\n let dayOfWeek = date.getDay();\r\n let dayOfMonth = date.getDate();\r\n let sup = \"\";\r\n let month = date.getMonth();\r\n let year = date.getFullYear();\r\n\r\n if (dayOfMonth == 1 || dayOfMonth == 21 || dayOfMonth == 31) {\r\n sup = \"st\";\r\n }\r\n else if (dayOfMonth == 2 || dayOfMonth == 22) {\r\n sup = \"nd\";\r\n }\r\n else if (dayOfMonth == 3 || dayOfMonth == 23) {\r\n sup = \"rd\";\r\n }\r\n else {\r\n sup = \"th\";\r\n }\r\n\r\n let dateString = dayNames[dayOfWeek] + \", \" + dayOfMonth + sup + \" \" + monthNames[month] + \" \" + year;\r\n\r\n return dateString;\r\n }\r\n\r\n public static printTimeOnly(date: Date) {\r\n\r\n date = new Date(date);\r\n\r\n let period = \"\";\r\n let minute = date.getMinutes().toString();\r\n let hour = date.getHours();\r\n\r\n period = hour < 12 ? \"AM\" : \"PM\";\r\n\r\n if (hour == 0) {\r\n hour = 12;\r\n }\r\n if (hour > 12) {\r\n hour = hour - 12;\r\n }\r\n\r\n if (minute.length == 1) {\r\n minute = \"0\" + minute;\r\n }\r\n\r\n let timeString = hour + \":\" + minute + \" \" + period;\r\n\r\n\r\n return timeString;\r\n }\r\n\r\n public static printDate(date: Date, separator = \"at\") {\r\n return `${Utilities.printDateOnly(date)} ${separator} ${Utilities.printTimeOnly(date)}`;\r\n }\r\n\r\n\r\n public static printFriendlyDate(date: Date, separator = \"-\") {\r\n let today = new Date(); today.setHours(0, 0, 0, 0);\r\n let yesterday = new Date(today); yesterday.setDate(yesterday.getDate() - 1);\r\n let test = new Date(date.getFullYear(), date.getMonth(), date.getDate());\r\n\r\n if (test.toDateString() == today.toDateString())\r\n return `Today ${separator} ${Utilities.printTimeOnly(date)}`;\r\n if (test.toDateString() == yesterday.toDateString())\r\n return `Yesterday ${separator} ${Utilities.printTimeOnly(date)}`;\r\n else\r\n return Utilities.printDate(date, separator);\r\n }\r\n\r\n public static printShortDate(date: Date, separator = \"/\", dateTimeSeparator = \"-\") {\r\n\r\n var day = date.getDate().toString();\r\n var month = (date.getMonth() + 1).toString();\r\n var year = date.getFullYear();\r\n\r\n if (day.length == 1)\r\n day = \"0\" + day;\r\n\r\n if (month.length == 1)\r\n month = \"0\" + month;\r\n\r\n return `${month}${separator}${day}${separator}${year} ${dateTimeSeparator} ${Utilities.printTimeOnly(date)}`;\r\n }\r\n\r\n\r\n public static parseDate(date):Date {\r\n\r\n if (date) {\r\n\r\n if (date instanceof Date) {\r\n return date;\r\n }\r\n\r\n if (typeof date === 'string' || date instanceof String) {\r\n if (date.search(/[a-su-z+]/i) == -1)\r\n date = date + \"Z\";\r\n\r\n return new Date(date);\r\n }\r\n\r\n if (typeof date === 'number' || date instanceof Number) {\r\n return new Date(<any>date);\r\n }\r\n }\r\n }\r\n\r\n\r\n public static Format2Digits(n) {\r\n return n > 9 ? \"\" + n : \"0\" + n;\r\n }\r\n\r\n /**\r\n * Formate une date JavaScript pour un paramètre envoyé à l'API : date et heure locales, telles que saisies,\r\n * suivies de « Z » comme l'a toujours fait le socle. Une date sans heure (minuit local) donne donc\r\n * « AAAA-MM-JJT00:00:00.000Z », comme avant ; une date avec une heure garde désormais son heure\r\n * (avant, elle était ramenée à minuit).\r\n * @param date Date à formater.\r\n * @returns Texte ISO de la date et de l'heure locales.\r\n */\r\n public static formatDateParam(date: Date): string {\r\n const ms = date.getMilliseconds();\r\n const millis = ms < 10 ? '00' + ms : ms < 100 ? '0' + ms : '' + ms;\r\n return `${date.getFullYear()}-${Utilities.Format2Digits(date.getMonth() + 1)}-${Utilities.Format2Digits(date.getDate())}`\r\n + `T${Utilities.Format2Digits(date.getHours())}:${Utilities.Format2Digits(date.getMinutes())}:${Utilities.Format2Digits(date.getSeconds())}.${millis}Z`;\r\n }\r\n\r\n\r\n public static printDuration(start: Date, end: Date) {\r\n\r\n start = new Date(start);\r\n end = new Date(end);\r\n\r\n // get total seconds between the times\r\n let delta = Math.abs(start.valueOf() - end.valueOf()) / 1000;\r\n\r\n // calculate (and subtract) whole days\r\n let days = Math.floor(delta / 86400);\r\n delta -= days * 86400;\r\n\r\n // calculate (and subtract) whole hours\r\n let hours = Math.floor(delta / 3600) % 24;\r\n delta -= hours * 3600;\r\n\r\n // calculate (and subtract) whole minutes\r\n let minutes = Math.floor(delta / 60) % 60;\r\n delta -= minutes * 60;\r\n\r\n // what's left is seconds\r\n let seconds = delta % 60; // in theory the modulus is not required\r\n\r\n\r\n let printedDays = \"\";\r\n\r\n if (days)\r\n printedDays = `${days} days`;\r\n\r\n if (hours)\r\n printedDays += printedDays ? `, ${hours} hours` : `${hours} hours`;\r\n\r\n if (minutes)\r\n printedDays += printedDays ? `, ${minutes} minutes` : `${minutes} minutes`;\r\n\r\n if (seconds)\r\n printedDays += printedDays ? ` and ${seconds} seconds` : `${seconds} seconds`;\r\n\r\n\r\n if (!printedDays)\r\n printedDays = \"0\";\r\n\r\n return printedDays;\r\n }\r\n\r\n\r\n public static getAge(birthDate, otherDate) {\r\n birthDate = new Date(birthDate);\r\n otherDate = new Date(otherDate);\r\n\r\n let years = (otherDate.getFullYear() - birthDate.getFullYear());\r\n\r\n if (otherDate.getMonth() < birthDate.getMonth() ||\r\n otherDate.getMonth() == birthDate.getMonth() && otherDate.getDate() < birthDate.getDate()) {\r\n years--;\r\n }\r\n\r\n return years;\r\n }\r\n\r\n public static isDateAEarlierThanDateB(dateA: Date, dateB: Date)\r\n {\r\n return dateA.getFullYear() < dateB.getFullYear()\r\n ||(dateA.getFullYear() == dateB.getFullYear() && dateA.getMonth() < dateB.getMonth())\r\n ||(dateA.getMonth() == dateB.getMonth() && dateA.getDate() < dateB.getDate())\r\n }\r\n\r\n\r\n public static searchArray(searchTerm: string, caseSensitive: boolean, ...values: any[]) {\r\n\r\n if (!searchTerm)\r\n return true;\r\n\r\n\r\n if (!caseSensitive)\r\n searchTerm = searchTerm.toLowerCase();\r\n\r\n for (let value of values) {\r\n\r\n if (value != null) {\r\n let strValue = value.toString();\r\n\r\n if (!caseSensitive)\r\n strValue = strValue.toLowerCase();\r\n\r\n if (strValue.indexOf(searchTerm) !== -1)\r\n return true;\r\n }\r\n }\r\n\r\n return false;\r\n }\r\n\r\n\r\n public static moveArrayItem(array: any[], oldIndex, newIndex) {\r\n\r\n while (oldIndex < 0) {\r\n oldIndex += this.length;\r\n }\r\n\r\n while (newIndex < 0) {\r\n newIndex += this.length;\r\n }\r\n\r\n if (newIndex >= this.length) {\r\n var k = newIndex - this.length;\r\n while ((k--) + 1) {\r\n array.push(undefined);\r\n }\r\n }\r\n\r\n array.splice(newIndex, 0, array.splice(oldIndex, 1)[0]);\r\n }\r\n\r\n\r\n public static expandCamelCase(text: string) {\r\n\r\n if (!text)\r\n return text;\r\n\r\n return text.replace(/([A-Z][a-z]+)/g, \" $1\")\r\n .replace(/([A-Z][A-Z]+)/g, \" $1\")\r\n .replace(/([^A-Za-z ]+)/g, \" $1\");\r\n }\r\n\r\n\r\n public static testIsAbsoluteUrl(url: string) {\r\n\r\n let r = new RegExp('^(?:[a-z]+:)?//', 'i');\r\n return r.test(url);\r\n }\r\n\r\n\r\n public static convertToAbsoluteUrl(url: string) {\r\n\r\n return Utilities.testIsAbsoluteUrl(url) ? url : '//' + url;\r\n }\r\n\r\n\r\n\r\n public static removeNulls(obj) {\r\n let isArray = obj instanceof Array;\r\n\r\n for (let k in obj) {\r\n if (obj[k] === null) {\r\n isArray ? obj.splice(k, 1) : delete obj[k];\r\n }\r\n else if (typeof obj[k] == \"object\") {\r\n Utilities.removeNulls(obj[k]);\r\n }\r\n\r\n if (isArray && obj.length == k) {\r\n Utilities.removeNulls(obj);\r\n }\r\n }\r\n\r\n return obj;\r\n }\r\n\r\n\r\n public static debounce(func: (...args) => any, wait: number, immediate?: boolean) {\r\n var timeout;\r\n\r\n return function () {\r\n var context = this;\r\n var args_ = arguments;\r\n\r\n var later = function () {\r\n timeout = null;\r\n if (!immediate)\r\n func.apply(context, args_);\r\n };\r\n\r\n var callNow = immediate && !timeout;\r\n\r\n clearTimeout(timeout);\r\n timeout = setTimeout(later, wait);\r\n\r\n if (callNow)\r\n func.apply(context, args_);\r\n };\r\n }\r\n\r\n\r\n\r\n public static cookies = {\r\n getItem: (sKey) => {\r\n return decodeURIComponent(document.cookie.replace(new RegExp(\"(?:(?:^|.*;)\\\\s*\" + encodeURIComponent(sKey).replace(/[\\-\\.\\+\\*]/g, \"\\\\$&\") + \"\\\\s*\\\\=\\\\s*([^;]*).*$)|^.*$\"), \"$1\")) || null;\r\n },\r\n setItem: (sKey, sValue, vEnd, sPath, sDomain, bSecure) => {\r\n if (!sKey || /^(?:expires|max\\-age|path|domain|secure)$/i.test(sKey)) {\r\n return false;\r\n }\r\n\r\n var sExpires = \"\";\r\n\r\n if (vEnd) {\r\n switch (vEnd.constructor) {\r\n case Number:\r\n sExpires = vEnd === Infinity ? \"; expires=Fri, 31 Dec 9999 23:59:59 GMT\" : \"; max-age=\" + vEnd;\r\n break;\r\n case String:\r\n sExpires = \"; expires=\" + vEnd;\r\n break;\r\n case Date:\r\n sExpires = \"; expires=\" + vEnd.toUTCString();\r\n break;\r\n }\r\n }\r\n\r\n document.cookie = encodeURIComponent(sKey) + \"=\" + encodeURIComponent(sValue) + sExpires + (sDomain ? \"; domain=\" + sDomain : \"\") + (sPath ? \"; path=\" + sPath : \"\") + (bSecure ? \"; secure\" : \"\");\r\n return true;\r\n },\r\n removeItem: (sKey, sPath, sDomain) => {\r\n if (!sKey) {\r\n return false;\r\n }\r\n document.cookie = encodeURIComponent(sKey) + \"=; expires=Thu, 01 Jan 1970 00:00:00 GMT\" + (sDomain ? \"; domain=\" + sDomain : \"\") + (sPath ? \"; path=\" + sPath : \"\");\r\n return true;\r\n },\r\n hasItem: (sKey) => {\r\n return (new RegExp(\"(?:^|;\\\\s*)\" + encodeURIComponent(sKey).replace(/[\\-\\.\\+\\*]/g, \"\\\\$&\") + \"\\\\s*\\\\=\")).test(document.cookie);\r\n },\r\n keys: () => {\r\n var aKeys = document.cookie.replace(/((?:^|\\s*;)[^\\=]+)(?=;|$)|^\\s*|\\s*(?:\\=[^;]*)?(?:\\1|$)/g, \"\").split(/\\s*(?:\\=[^;]*)?;\\s*/);\r\n for (var nIdx = 0; nIdx < aKeys.length; nIdx++) { aKeys[nIdx] = decodeURIComponent(aKeys[nIdx]); }\r\n return aKeys;\r\n }\r\n }\r\n\r\n public static isNumber(field: any) {\r\n return (typeof field === 'number' || field instanceof Number);\r\n }\r\n\r\n public static changeName(item: any): string {\r\n if (item)\r\n return item.replace(/[&\\/\\\\#,+()$~%.'\":*?<>{}]/g, '');\r\n return item;\r\n }\r\n\r\n public static transform<T>(value: T, args: any[] = null): { key: keyof T, value: any }[] {\r\n return Object.keys(value).map(k => {\r\n return { key: k as keyof T, value: value[k] }\r\n });\r\n }\r\n\r\n public static GetChannel(entityTypeKey: string) {\r\n\r\n\r\n if ( this.IsNil(entityTypeKey))\r\n return entityTypeKey;\r\n\r\n let k: string = entityTypeKey.toLowerCase();\r\n\r\n switch (k) {\r\n case \"shipment\":\r\n return \"SHP\";\r\n case \"dataimport\":\r\n return \"INP\";\r\n case \"request\":\r\n return \"RQT\";\r\n case \"synchronizedcompany\":\r\n return \"CPY\";\r\n case \"sellingorder\":\r\n return \"ORD\";\r\n case \"purchaseorder\":\r\n return \"ORD\";\r\n default:\r\n return entityTypeKey;\r\n }\r\n }\r\n\r\n public static getProp<T, K extends keyof T>(object: T, property: K): T[K] {\r\n return object[property];\r\n }\r\n\r\n /**\r\n * static getCustomDvalue: stringate\r\n */\r\n public static getCustomDate(value: string) : Date {\r\n\r\n // Jour de la valeur (JJ/MM/AAAA, sinon ISO d'après ses composantes UTC), à minuit en heure locale.\r\n return DateUtils.toUtcDay(value);\r\n }\r\n\r\n public static isLowerThan(value1:string|Date,value2:string|Date): boolean{\r\n let d1,d2: Date;\r\n\r\n if(typeof value1 === 'string')\r\n d1= this.getCustomDate(value1)\r\n else\r\n d1 = value1;\r\n\r\n if(typeof value2 === 'string')\r\n d2= this.getCustomDate(value2)\r\n else d2 = value2;\r\n\r\n return d1 < d2;\r\n }\r\n\r\n public static getLogClass(log: string) {\r\n let regexInfo = /INFO/g;\r\n let regexData = /DATA/g;\r\n let regexError = /ERROR/g;\r\n let regexWarn = /WARNING/g;\r\n\r\n if (regexInfo.test(log)) {\r\n return \"log-info\";\r\n }\r\n\r\n if (regexData.test(log)) {\r\n return \"log-data\";\r\n }\r\n\r\n if (regexError.test(log)) {\r\n return \"log-error\";\r\n }\r\n\r\n if (regexWarn.test(log)) {\r\n return \"log-warning\";\r\n }\r\n\r\n return \"\";\r\n }\r\n\r\n\r\n public static deepCopy(obj) {\r\n var copy;\r\n\r\n // Handle the 3 simple types, and null or undefined\r\n if (null == obj || \"object\" != typeof obj) return obj;\r\n\r\n // Handle Date\r\n if (obj instanceof Date) {\r\n copy = new Date();\r\n copy.setTime(obj.getTime());\r\n return copy;\r\n }\r\n\r\n // Handle Array\r\n if (obj instanceof Array) {\r\n copy = [];\r\n for (var i = 0, len = obj.length; i < len; i++) {\r\n copy[i] = Utilities.deepCopy(obj[i]);\r\n }\r\n return copy;\r\n }\r\n\r\n // Handle Object\r\n if (obj instanceof Object) {\r\n copy = {};\r\n for (var attr in obj) {\r\n if (obj.hasOwnProperty(attr)) copy[attr] = Utilities.deepCopy(obj[attr]);\r\n }\r\n return copy;\r\n }\r\n\r\n throw new Error(\"Unable to copy obj! Its type isn't supported.\");\r\n }\r\n\r\n public static getCleanNumber(initial:string) : number {\r\n\r\n // Si la chaine est vide, on renvoie 0\r\n let value: string = initial.replace(',', '.');\r\n\r\n if( ! isNumeric(value) ) {\r\n // On supprime tous les caractères qui ne sont pas des chiffres.\r\n value = '';\r\n let hasSeparator: boolean = false;\r\n for (var i = 0; i < initial.length; i++) {\r\n let ch= initial[i];\r\n if ( isNumeric(ch) ) {\r\n value = value + ch;\r\n }\r\n else if (! hasSeparator && (ch == '.' || ch == ',')) {\r\n value = value + ch;\r\n hasSeparator = true;\r\n }\r\n }\r\n\r\n value = value.replace(',', '.');\r\n if ( ! isNumeric(value) )\r\n return 0;\r\n }\r\n\r\n let n = Number.parseFloat(value);\r\n return n;\r\n }\r\n\r\n public static addDays(date : Date, days : number) : Date{\r\n var date = new Date(date.valueOf());\r\n date.setDate(date.getDate() + days);\r\n return date;\r\n }\r\n\r\n public static getFormattedParams(params: any): any {\r\n\r\n // Dans le cas d'un tableau, parcours tous les éléments du tableau pour formatter les\r\n let result: any;\r\n\r\n\r\n if (Array.isArray(params)) {\r\n if (params.length > 0 && typeof (params[0]) === 'number')\r\n return JSON.stringify(params);\r\n\r\n result = [];\r\n params.forEach(entity => {\r\n result.push(this.getFormattedParams(entity));\r\n });\r\n return JSON.stringify(result);\r\n }\r\n result = {};\r\n for (let key in params) {\r\n if (params.hasOwnProperty(key)) {\r\n let val = params[key];\r\n if (val !== undefined && val !== null) {\r\n //Handle the Date javascript object\r\n if (val instanceof Date) {\r\n val = Utilities.formatDateParam(val);\r\n }\r\n result[key] = val;\r\n }\r\n }\r\n }\r\n return result;\r\n }\r\n}\r\n","import { InjectionToken } from '@angular/core';\r\nimport { Observable } from 'rxjs';\r\n\r\n/**\r\n * Service de données des actions étendues, tel que les composants communs (core-ux) l'utilisent : lancement d'une\r\n * action et envoi de son fichier. Fourni par le module qui porte l'API des actions (system-ux, ActionDataService)\r\n * sous le jeton {@link ACTION_DATA_SERVICE} (Dépendances des modules, D.1).\r\n */\r\nexport interface IActionDataService<TContext = any, TUploadResult = any> {\r\n /** Lance l'action décrite par le contexte ; rend le contexte complété par le serveur. */\r\n run(context: TContext): Observable<TContext>;\r\n /** Envoie le fichier du formulaire de l'action. */\r\n uploadFile(file: File, correlationId: string, entityKey: string, entityId: number): Observable<TUploadResult>;\r\n}\r\n\r\n/** Jeton du service de données des actions ; optionnel : sans lui, les actions étendues sont désactivées. */\r\nexport const ACTION_DATA_SERVICE = new InjectionToken<IActionDataService>('ACTION_DATA_SERVICE');\r\n\r\n/** Fichier téléchargé : contenu et nom. */\r\nexport interface DownloadedFile {\r\n fileBlob: Blob;\r\n fileName: string;\r\n}\r\n\r\n/**\r\n * Service de données des fichiers, tel que les composants communs (core-ux) l'utilisent : téléchargement d'un\r\n * fichier. Fourni par le module qui porte les fichiers (meta-ux, FilesDataService) sous le jeton\r\n * {@link FILES_DATA_SERVICE} (Dépendances des modules, D.1).\r\n */\r\nexport interface IFilesDataService {\r\n /** Télécharge le fichier d'identifiant donné. */\r\n getFile(fileId: number): Observable<DownloadedFile>;\r\n}\r\n\r\n/** Jeton du service de données des fichiers ; optionnel : sans lui, le fichier produit par une action n'est pas téléchargé. */\r\nexport const FILES_DATA_SERVICE = new InjectionToken<IFilesDataService>('FILES_DATA_SERVICE');","export type valueOf<T> = T[keyof T];\r\nexport function nameof<T, V extends T[keyof T]>(f: (x: T) => V): valueOf<{ [K in keyof T]: T[K] extends V ? K : never }>;\r\nexport function nameof(f: (x: any) => any): keyof any {\r\n var p = new Proxy({}, {\r\n get: (target, key) => key\r\n })\r\n return f(p);\r\n}","// export function groupBy<TItem>(xs: TItem[], key: string) : {[key: string]: TItem[]}{\r\n// return xs.reduce(function(rv, x) {\r\n// (rv[x[key]] = rv[x[key]] || []).push(x);\r\n// return rv;\r\n// }, {});\r\n// };\r\n\r\n\r\n export function groupBy<TItem>(xs: TItem[], key: Extract<keyof TItem,string>) : {[key: string]: TItem[]}{\r\n return xs.reduce(function(rv, x) {\r\n (rv[x[key]as any] = rv[x[key]as any] || []).push(x);\r\n return rv;\r\n }, {});\r\n };\r\n\r\n export function groupByFunc<TItem,TKey>(xs: TItem[], func:((i:TItem)=>string)) : {[key: string]: TItem[]}{\r\n return xs.reduce(function(rv, x) {\r\n let k = func(x);\r\n (rv[k] = rv[k] || []).push(x);\r\n return rv;\r\n }, {});\r\n };\r\n\r\n export function sumOf<TItem>(xs:TItem[],func:((i:TItem)=>number)) : number{\r\n return xs.map(func).reduce((a,b)=>a+b);\r\n }\r\n\r\n // https://codereview.stackexchange.com/a/100843\r\n export function distinct(array:(number|string)[]) : (number|string)[]{\r\n return array.reduce(function(carry, item){\r\n if(item && !~carry.indexOf(item))\r\n carry.push(item);\r\n return carry;\r\n }, []);\r\n }\r\n ","export abstract class EnvironmentBase {\r\n abstract readonly production: boolean;\r\n abstract readonly fileUrl: string;\r\n abstract readonly baseUrl: string;\r\n abstract readonly apiUrl: string;\r\n abstract readonly hubUrl: string;\r\n\r\n /**\r\n * Nom de l'application, affiché dans la barre supérieure et sur la page d'accueil.\r\n * \"DFlat\" par défaut.\r\n */\r\n readonly appName?: string;\r\n\r\n /**\r\n * Logo affiché à côté du nom de l'application.\r\n * \"assets/images/dflat-icone-positif.svg\" (fourni par le package) par défaut.\r\n */\r\n readonly appLogoUrl?: string;\r\n\r\n /**\r\n * Logo affiché sur la page d'accueil, au-dessus de la barre de recherche.\r\n * \"assets/images/dflat-icone.svg\" (fourni par le package) par défaut.\r\n */\r\n readonly appHomeLogoUrl?: string;\r\n\r\n /**\r\n * Version affichée sur la page d'accueil, qui renvoie vers la page des nouveautés.\r\n * Masquée si elle n'est pas renseignée.\r\n */\r\n readonly appVersion?: string;\r\n};\r\n"],"mappings":";;;;AAAA,IAAa,8BAAb,MAAwC;CAEpC,YAAY,cAAiB;EACzB,IAAI,cACA,MAAM,IAAI,MAAM,GAAG,aAAa,YAAY,KAAI,oEAAqE;CAE7H;AAEH;ACaD,IAAa,aAAb,MAAa,mBAAmB,4BAA2B;CAGtD,YAAqC,cAAwB;EACzD,MAAM,YAAY;CACtB;CALQ;EAAA,KAAA,OAAA,GAAA,mBAAA;GAAA,YAAA;GAAA,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AEA,SAAgB,MAAa,IAAW,MAAwB;CAC5D,OAAO,GAAG,IAAI,IAAI,CAAC,CAAC,QAAQ,GAAE,MAAI,IAAE,CAAC;AACzC;AAGA,SAAgB,SAAS,OAAuB;CAC9C,OAAO,MAAM,OAAO,SAAS,OAAO,MAAI;EACtC,IAAG,QAAQ,CAAC,CAAC,MAAM,QAAQ,IAAI,GAC7B,MAAM,KAAK,IAAI;EACjB,OAAO;CACT,GAAG,CAAA,CAAE;AACP;AClCF,IAAsB,kBAAtB,MAAqC,CA8BpC"}
@@ -1 +1 @@
1
- {"version":3,"file":"dflat-core-web-meta-model.mjs","names":[],"sources":["../../meta-model/src/lib/meta-model.module.ts","../../meta-model/src/lib/model/interface.generated.ts"],"sourcesContent":["import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\n\r\n/**\r\n * Modèle de l'application : interfaces et énumérations générées par\r\n * \"dflat -g ts\" depuis les entités de Meta.Model.\r\n *\r\n * Le code généré est écrit dans src/lib et exporté par src/index.ts.\r\n */\r\n@NgModule({\r\n imports: [CommonModule]\r\n})\r\nexport class MetaModelModule {}\r\n","import { Dictionary } from '@dflat-core/web/core-model';\r\nimport { EntityFilterViewModel, EntityViewModel, ExtendedProperty, INode } from '@dflat-core/web/core-model';\r\n\r\nexport interface MetaEntityFormFieldView extends EntityViewModel {\r\n ButtonLabel? : string;\r\n CascadeDependency? : boolean;\r\n CascadeDependencyProperty? : string;\r\n ColumnIndex? : number;\r\n ConditioningBoolValue? : boolean;\r\n ConditioningMetaEntityFormFieldId? : number;\r\n ConditioningMetaEntityFormFieldPropertyName? : string;\r\n ConditioningValues? : string;\r\n CreatedBy? : string;\r\n CreationDate? : Date;\r\n DataMetaEntityEntityName? : string;\r\n DataMetaEntityId? : number;\r\n Description? : string;\r\n DisplayImage? : boolean;\r\n DisplayMember? : string;\r\n EnumMetaEntityEntityName? : string;\r\n EnumMetaEntityId? : number;\r\n ExportPropertyName? : string;\r\n FieldColumnSpan? : number;\r\n FieldConditionalResult? : number;\r\n FieldFilterType? : number;\r\n FilterDistinct? : boolean;\r\n HideSelected? : boolean;\r\n Highlight? : boolean;\r\n Id? : number;\r\n IncludeAllOption? : boolean;\r\n InputType? : string;\r\n IsClearable? : boolean;\r\n IsConditional? : boolean;\r\n IsConditioning? : boolean;\r\n IsExtendedProperty? : boolean;\r\n IsHidden? : boolean;\r\n IsReadOnly? : boolean;\r\n IsRequired? : boolean;\r\n IsStatic? : boolean;\r\n KeepPlace? : boolean;\r\n Label? : string;\r\n MaxLength? : number;\r\n MaxValue? : number;\r\n MetaEntityFieldFieldName? : string;\r\n MetaEntityFieldId? : number;\r\n MetaEntityFormSectionId? : number;\r\n MetaEntityFormSectionName? : string;\r\n MetaEntityViewFieldFieldName? : string;\r\n MetaEntityViewFieldId? : number;\r\n MinValue? : number;\r\n ModalEntityKey? : string;\r\n ModalOnly? : boolean;\r\n ModalPropertyName? : string;\r\n ModalPropertyValue? : string;\r\n ModalTitle? : string;\r\n ModalTriggerProperty? : string;\r\n ModalTriggerValue? : string;\r\n ModificationDate? : Date;\r\n ModifiedBy? : string;\r\n MultipleSelection? : boolean;\r\n NotDefaultRequired? : boolean;\r\n OrderNumber? : number;\r\n OrderRank? : number;\r\n PropertyName? : string;\r\n RowVersion? : string;\r\n ToolTip? : string;\r\n ValidatorTypes? : number;\r\n ValueMember? : string;\r\n}\r\n\r\nexport interface PresentationProfileItem extends EntityViewModel {\r\n BaseUrl? : string;\r\n CardSlot? : number;\r\n ColumnDisplayType? : number;\r\n ColumnKey? : string;\r\n ColumnSourceType? : number;\r\n ColumnSourceTypeLabel? : string;\r\n CompletingCharacter? : string;\r\n CreatedBy? : string;\r\n CreationDate? : Date;\r\n Currency? : string;\r\n CurrencyPropertyName? : string;\r\n CustomFieldId? : number;\r\n DisplayFormat? : string;\r\n DisplayWidth? : number;\r\n EnumEntityName? : string;\r\n GroupId? : number;\r\n GroupName? : string;\r\n HandleError? : boolean;\r\n Id? : number;\r\n IsAllowed? : boolean;\r\n IsLocked? : boolean;\r\n Label? : string;\r\n MaxFractionDigits? : number;\r\n MinFractionDigits? : number;\r\n MinIntegerDigits? : number;\r\n ModificationDate? : Date;\r\n ModifiedBy? : string;\r\n Multiplier? : number;\r\n NullCaseText? : string;\r\n OrderNumber? : number;\r\n PresentationProfileId? : number;\r\n RowVersion? : string;\r\n}\r\n\r\nexport interface Permission extends EntityViewModel {\r\n Childrens? : INode[];\r\n Code? : string;\r\n CreatedBy? : string;\r\n CreationDate? : Date;\r\n Description? : string;\r\n Id? : number;\r\n ModificationDate? : Date;\r\n ModifiedBy? : string;\r\n Module? : string;\r\n ParentId? : number;\r\n ParentName? : string;\r\n RowVersion? : string;\r\n UniqueName? : string;\r\n}\r\n\r\nexport interface MetaEntityFormSectionView extends EntityViewModel {\r\n CreatedBy? : string;\r\n CreationDate? : Date;\r\n DataMetaEntityEntityName? : string;\r\n DataMetaEntityId? : number;\r\n FilterPropertyName? : string;\r\n FormFields? : MetaEntityFormFieldView[];\r\n Id? : number;\r\n IsCustomFieldSection? : boolean;\r\n IsFileSection? : boolean;\r\n IsHidden? : boolean;\r\n IsTrackRecordSection? : boolean;\r\n MetaEntityFormCode? : string;\r\n MetaEntityFormId? : number;\r\n ModificationDate? : Date;\r\n ModifiedBy? : string;\r\n Name? : string;\r\n OrderNumber? : number;\r\n OrderRank? : number;\r\n RowVersion? : string;\r\n}\r\n\r\nexport interface CustomFieldGroupItemView extends EntityViewModel {\r\n CreatedBy? : string;\r\n CreationDate? : Date;\r\n CustomFieldGroupType? : number;\r\n CustomFieldId? : number;\r\n CustomFieldName? : string;\r\n CustomFieldType? : number;\r\n CustomFieldTypeLabel? : string;\r\n GroupDescription? : string;\r\n GroupId? : number;\r\n GroupLabel? : string;\r\n Id? : number;\r\n MetaEntityId? : number;\r\n ModificationDate? : Date;\r\n ModifiedBy? : string;\r\n OrderNumber? : number;\r\n OrderRank? : number;\r\n RowVersion? : string;\r\n SourceLabel? : string;\r\n}\r\n\r\nexport interface Version extends EntityViewModel {\r\n CreatedBy? : string;\r\n CreationDate? : Date;\r\n Id? : number;\r\n Major? : number;\r\n Minor? : number;\r\n ModificationDate? : Date;\r\n ModifiedBy? : string;\r\n Module? : string;\r\n Patch? : number;\r\n Release? : number;\r\n RowVersion? : string;\r\n UpdateDate? : Date;\r\n}\r\n\r\nexport interface ResourceTranslationView extends EntityViewModel {\r\n CreatedBy? : string;\r\n CreationDate? : Date;\r\n FileId? : number;\r\n FileName? : string;\r\n FilePath? : string;\r\n FileType? : number;\r\n Id? : number;\r\n Key? : string;\r\n LanguageCode? : string;\r\n LanguageLabel? : string;\r\n ModificationDate? : Date;\r\n ModifiedBy? : string;\r\n Module? : string;\r\n ResourceKeyId? : number;\r\n ResourceLanguageId? : number;\r\n RowVersion? : string;\r\n Value? : string;\r\n}\r\n\r\nexport interface ResourceLanguage extends EntityViewModel {\r\n Code? : string;\r\n CreatedBy? : string;\r\n CreationDate? : Date;\r\n Description? : string;\r\n Id? : number;\r\n Label? : string;\r\n ModificationDate? : Date;\r\n ModifiedBy? : string;\r\n RowVersion? : string;\r\n}\r\n\r\nexport interface ResourceKey extends EntityViewModel {\r\n CreatedBy? : string;\r\n CreationDate? : Date;\r\n Description? : string;\r\n Id? : number;\r\n Key? : string;\r\n Label? : string;\r\n ModificationDate? : Date;\r\n ModifiedBy? : string;\r\n Module? : string;\r\n RowVersion? : string;\r\n}\r\n\r\nexport interface PresentationProfileView extends EntityViewModel {\r\n CardPresentationProfileId? : number;\r\n CreatedBy? : string;\r\n CreationDate? : Date;\r\n FilterQuery? : string;\r\n Id? : number;\r\n IsCurrentView? : boolean;\r\n Items? : PresentationProfileItem[];\r\n Label? : string;\r\n MetaEntityEntityName? : string;\r\n MetaEntityKey? : string;\r\n MetaEntityLabel? : string;\r\n ModificationDate? : Date;\r\n ModifiedBy? : string;\r\n PresentationProfilePurpose? : number;\r\n PresentationProfilePurposeLabel? : string;\r\n PresentationProfileScope? : number;\r\n PresentationProfileScopeLabel? : string;\r\n RoleId? : number;\r\n RoleUniqueName? : string;\r\n RowVersion? : string;\r\n SortQuery? : string;\r\n UserAccountId? : number;\r\n UserAccountPseudo? : string;\r\n}\r\n\r\nexport interface PresentationProfileItemView extends EntityViewModel {\r\n BaseUrl? : string;\r\n CardSlot? : number;\r\n ColumnDisplayType? : number;\r\n ColumnDisplayTypeLabel? : string;\r\n ColumnKey? : string;\r\n ColumnSourceType? : number;\r\n ColumnSourceTypeLabel? : string;\r\n CompletingCharacter? : string;\r\n CreatedBy? : string;\r\n CreationDate? : Date;\r\n Currency? : string;\r\n CurrencyPropertyName? : string;\r\n CustomFieldId? : number;\r\n DisplayFormat? : string;\r\n DisplayWidth? : number;\r\n HandleError? : boolean;\r\n Id? : number;\r\n IsAllowed? : boolean;\r\n IsLocked? : boolean;\r\n Label? : string;\r\n MaxFractionDigits? : number;\r\n MinFractionDigits? : number;\r\n MinIntegerDigits? : number;\r\n ModificationDate? : Date;\r\n ModifiedBy? : string;\r\n Multiplier? : number;\r\n NullCaseText? : string;\r\n OrderNumber? : number;\r\n OrderRank? : number;\r\n PresentationProfileId? : number;\r\n RowVersion? : string;\r\n}\r\n\r\nexport interface PresentationProfile extends EntityViewModel {\r\n CardPresentationProfileId? : number;\r\n CreatedBy? : string;\r\n CreationDate? : Date;\r\n FilterQuery? : string;\r\n Id? : number;\r\n IsCurrentView? : boolean;\r\n Items? : PresentationProfileItem[];\r\n Label? : string;\r\n MetaEntityKey? : string;\r\n ModificationDate? : Date;\r\n ModifiedBy? : string;\r\n PresentationProfilePurpose? : number;\r\n PresentationProfileScope? : number;\r\n RoleId? : number;\r\n RowVersion? : string;\r\n SortQuery? : string;\r\n UserAccountId? : number;\r\n}\r\n\r\nexport interface PermissionView extends EntityViewModel {\r\n Code? : string;\r\n CreatedBy? : string;\r\n CreationDate? : Date;\r\n Description? : string;\r\n Id? : number;\r\n ModificationDate? : Date;\r\n ModifiedBy? : string;\r\n Module? : string;\r\n ParentId? : number;\r\n ParentName? : string;\r\n RowVersion? : string;\r\n UniqueName? : string;\r\n}\r\n\r\nexport interface ParameterView extends EntityViewModel {\r\n Code? : string;\r\n CreatedBy? : string;\r\n CreationDate? : Date;\r\n Description? : string;\r\n EntityId? : number;\r\n EntityKey? : string;\r\n Id? : number;\r\n Label? : string;\r\n ModificationDate? : Date;\r\n ModifiedBy? : string;\r\n OrderRank? : number;\r\n ParameterOrderNumber? : number;\r\n ParameterSectionCode? : string;\r\n ParameterSectionDescription? : string;\r\n ParameterSectionId? : number;\r\n ParameterSectionLabel? : string;\r\n ParameterSectionOrderNumber? : number;\r\n ParameterType? : number;\r\n RowVersion? : string;\r\n}\r\n\r\nexport interface ParameterValueView extends EntityViewModel {\r\n CreatedBy? : string;\r\n CreationDate? : Date;\r\n EntityId? : number;\r\n EntityKey? : string;\r\n Id? : number;\r\n ModificationDate? : Date;\r\n ModifiedBy? : string;\r\n ParameterCode? : string;\r\n ParameterDescription? : string;\r\n ParameterId? : number;\r\n ParameterLabel? : string;\r\n ParameterSectionCode? : string;\r\n ParameterSectionDescription? : string;\r\n ParameterSectionId? : number;\r\n ParameterSectionLabel? : string;\r\n ParameterSectionOrderNumber? : number;\r\n ParameterType? : number;\r\n RowVersion? : string;\r\n Value? : string;\r\n}\r\n\r\nexport interface ParameterSection extends EntityViewModel {\r\n Code? : string;\r\n CreatedBy? : string;\r\n CreationDate? : Date;\r\n Description? : string;\r\n EntityId? : number;\r\n EntityKey? : string;\r\n Id? : number;\r\n Label? : string;\r\n ModificationDate? : Date;\r\n ModifiedBy? : string;\r\n OrderNumber? : number;\r\n RowVersion? : string;\r\n}\r\n\r\nexport interface MetaEntityViewField extends EntityViewModel {\r\n CreatedBy? : string;\r\n CreationDate? : Date;\r\n Description? : string;\r\n Expression? : string;\r\n FieldName? : string;\r\n Id? : number;\r\n IsFilterEnabled? : boolean;\r\n IsNumericExpression? : boolean;\r\n Label? : string;\r\n MetaEntityFieldId? : number;\r\n MetaEntityId? : number;\r\n ModificationDate? : Date;\r\n ModifiedBy? : string;\r\n OrderNumber? : number;\r\n RowVersion? : string;\r\n TableAlias? : string;\r\n}\r\n\r\nexport interface MetaEntityTranslation extends EntityViewModel {\r\n CreatedBy? : string;\r\n CreationDate? : Date;\r\n EntityId? : number;\r\n Id? : number;\r\n MetaEntityFieldId? : number;\r\n ModificationDate? : Date;\r\n ModifiedBy? : string;\r\n ResourceLanguageId? : number;\r\n RowVersion? : string;\r\n Value? : string;\r\n}\r\n\r\nexport interface MetaEntityRelationDefinition extends EntityViewModel {\r\n CreatedBy? : string;\r\n CreationDate? : Date;\r\n Id? : number;\r\n MetaEntityFieldId? : number;\r\n MetaEntityId? : number;\r\n MetaEntityRelationId? : number;\r\n ModificationDate? : Date;\r\n ModifiedBy? : string;\r\n OrderNumber? : number;\r\n RowVersion? : string;\r\n}\r\n\r\nexport interface MetaEntityRelation extends EntityViewModel {\r\n CreatedBy? : string;\r\n CreationDate? : Date;\r\n ForeignMetaEntityId? : number;\r\n Id? : number;\r\n MetaEntityId? : number;\r\n MetaEntityRelationType? : number;\r\n ModificationDate? : Date;\r\n ModifiedBy? : string;\r\n RelationName? : string;\r\n RowVersion? : string;\r\n}\r\n\r\nexport interface MetaEntityKeyword extends EntityViewModel {\r\n CreatedBy? : string;\r\n CreationDate? : Date;\r\n EntityId? : number;\r\n EntityKey? : string;\r\n Id? : number;\r\n KeywordId? : number;\r\n ModificationDate? : Date;\r\n ModifiedBy? : string;\r\n RowVersion? : string;\r\n}\r\n\r\nexport interface MetaEntityFormView extends EntityViewModel {\r\n Code? : string;\r\n CreatedBy? : string;\r\n CreationDate? : Date;\r\n Description? : string;\r\n FormType? : number;\r\n Id? : number;\r\n IsDefault? : boolean;\r\n Label? : string;\r\n MetaEntityEntityKey? : string;\r\n MetaEntityEntityName? : string;\r\n MetaEntityId? : number;\r\n ModificationDate? : Date;\r\n ModifiedBy? : string;\r\n RowVersion? : string;\r\n Sections? : MetaEntityFormSectionView[];\r\n}\r\n\r\nexport interface MetaEntityField extends EntityViewModel {\r\n ClearFieldData? : boolean;\r\n CreatedBy? : string;\r\n CreationDate? : Date;\r\n CustomFieldId? : number;\r\n DefaultValue? : string;\r\n Description? : string;\r\n FieldName? : string;\r\n FieldSQLType? : string;\r\n Id? : number;\r\n Label? : string;\r\n MaxLength? : number;\r\n MaxValue? : string;\r\n MetaEntityFieldType? : number;\r\n MetaEntityKey? : string;\r\n MinValue? : string;\r\n ModificationDate? : Date;\r\n ModifiedBy? : string;\r\n RowVersion? : string;\r\n Scale? : number;\r\n}\r\n\r\nexport interface MetaEntity extends EntityViewModel {\r\n CreatedBy? : string;\r\n CreationDate? : Date;\r\n Description? : string;\r\n EntityKey? : string;\r\n EntityName? : string;\r\n Id? : number;\r\n IsChangeHistorized? : boolean;\r\n IsDeletionHistorized? : boolean;\r\n Label? : string;\r\n MetaEntityType? : number;\r\n ModificationDate? : Date;\r\n ModifiedBy? : string;\r\n Module? : string;\r\n ParentMetaEntityId? : number;\r\n RowVersion? : string;\r\n}\r\n\r\nexport interface Keyword extends EntityViewModel {\r\n CreatedBy? : string;\r\n CreationDate? : Date;\r\n Id? : number;\r\n Label? : string;\r\n ModificationDate? : Date;\r\n ModifiedBy? : string;\r\n RowVersion? : string;\r\n}\r\n\r\nexport enum FileTypes {\r\n Default = 0,\r\n Log = 1,\r\n Image = 2,\r\n DefaultImage = 3,\r\n ImageUrl = 4,\r\n}\r\n\r\nexport interface FilesView extends EntityViewModel {\r\n CreatedBy? : string;\r\n CreationDate? : Date;\r\n EntityFileId? : number;\r\n EntityId? : number;\r\n Exists? : boolean;\r\n Extension? : string;\r\n FileLength? : number;\r\n FileName? : string;\r\n FileType? : number;\r\n Id? : number;\r\n IsOperationalUrl? : boolean;\r\n ModificationDate? : Date;\r\n ModifiedBy? : string;\r\n Name? : string;\r\n OrderNumber? : number;\r\n OwnerUser? : string;\r\n OwnerUserId? : number;\r\n Path? : string;\r\n PhotoHash? : string;\r\n RowVersion? : string;\r\n Thumbnail? : number;\r\n Url? : string;\r\n}\r\n\r\nexport interface EntityFiles extends EntityViewModel {\r\n CreatedBy? : string;\r\n CreationDate? : Date;\r\n EntityId? : number;\r\n EntityKey? : string;\r\n FileId? : number;\r\n Id? : number;\r\n ModificationDate? : Date;\r\n ModifiedBy? : string;\r\n OrderNumber? : number;\r\n RowVersion? : string;\r\n}\r\n\r\nexport interface CustomFieldView extends EntityViewModel {\r\n CreatedBy? : string;\r\n CreationDate? : Date;\r\n CustomFieldType? : number;\r\n CustomFieldTypeLabel? : string;\r\n Description? : string;\r\n Id? : number;\r\n IsRequired? : boolean;\r\n Label? : string;\r\n Maximum? : string;\r\n MaxLength? : number;\r\n Minimum? : string;\r\n ModificationDate? : Date;\r\n ModifiedBy? : string;\r\n Name? : string;\r\n ParentCustomFieldId? : number;\r\n RowVersion? : string;\r\n}\r\n\r\nexport interface CustomFieldOptionsView extends EntityViewModel {\r\n CreatedBy? : string;\r\n CreationDate? : Date;\r\n CustomFieldId? : number;\r\n CustomFieldLabel? : string;\r\n DisplayValue? : string;\r\n Id? : number;\r\n IsDefault? : boolean;\r\n IsDefaultImage? : string;\r\n ModificationDate? : Date;\r\n ModifiedBy? : string;\r\n OrderNumber? : number;\r\n OrderRank? : number;\r\n RowVersion? : string;\r\n Value? : string;\r\n}\r\n\r\nexport interface CustomFieldGroupEntityView extends EntityViewModel {\r\n CreatedBy? : string;\r\n CreationDate? : Date;\r\n CustomFieldGroupId? : number;\r\n CustomFieldGroupItems? : CustomFieldGroupItemView[];\r\n CustomFieldGroupLabel? : string;\r\n EntityId? : number;\r\n EntityKey? : string;\r\n Fields? : string;\r\n Id? : number;\r\n MetaEntityLabel? : string;\r\n ModificationDate? : Date;\r\n ModifiedBy? : string;\r\n RowVersion? : string;\r\n}\r\n\r\nexport interface CustomFieldGroup extends EntityViewModel {\r\n CreatedBy? : string;\r\n CreationDate? : Date;\r\n CustomFieldGroupType? : number;\r\n Description? : string;\r\n Id? : number;\r\n Label? : string;\r\n MetaEntityId? : number;\r\n ModificationDate? : Date;\r\n ModifiedBy? : string;\r\n RowVersion? : string;\r\n Scopes? : string;\r\n}\r\n\r\nexport interface VersionFilterViewModel extends EntityFilterViewModel<Version> {\r\n Module? : string;\r\n}\r\n\r\nexport interface UploadFileResult {\r\n FileUrl? : string;\r\n}\r\n\r\nexport interface ResourceTranslationFilterViewModel extends EntityFilterViewModel<ResourceTranslationView> {\r\n Key? : string;\r\n LanguageCode? : string;\r\n Module? : string;\r\n ResourceKeyId? : number;\r\n ResourceLanguageId? : number;\r\n ResourceType? : number;\r\n}\r\n\r\nexport interface ResourceLanguageFilterViewModel extends EntityFilterViewModel<ResourceLanguage> {\r\n Code? : string;\r\n}\r\n\r\nexport interface ResourceKeyFilterViewModel extends EntityFilterViewModel<ResourceKey> {\r\n Key? : string;\r\n Module? : string;\r\n}\r\n\r\nexport interface PresentationViews {\r\n CanEditDefault? : boolean;\r\n DefaultId? : number;\r\n SelectedId? : number;\r\n Views? : PresentationProfile[];\r\n}\r\n\r\nexport interface PresentationViewRequest {\r\n FilterQuery? : string;\r\n Label? : string;\r\n MetaEntityKey? : string;\r\n PresentationProfileId? : number;\r\n PresentationProfilePurpose? : number;\r\n SortQuery? : string;\r\n}\r\n\r\nexport interface PresentationProfileItemFilterViewModel extends EntityFilterViewModel<PresentationProfileItemView> {\r\n ColumnKey? : string;\r\n ColumnSourceType? : number;\r\n CustomFieldId? : number;\r\n Label? : string;\r\n MetaEntityKey? : string;\r\n PresentationProfileId? : number;\r\n PresentationProfilePurpose? : number;\r\n PresentationProfileScope? : number;\r\n ScopeId? : number;\r\n}\r\n\r\nexport interface PresentationProfileFilterViewModel extends EntityFilterViewModel<PresentationProfileView> {\r\n Label? : string;\r\n MetaEntityKey? : string;\r\n PresentationProfilePurpose? : number;\r\n PresentationProfileScope? : number;\r\n RoleId? : number;\r\n UserAccountId? : number;\r\n}\r\n\r\nexport interface PresentationContext {\r\n Catalog? : PresentationProfileItem[];\r\n DefaultProfile? : PresentationProfile;\r\n GridViewId? : number;\r\n IsUserProfile? : boolean;\r\n Profile? : PresentationProfile;\r\n Resolved? : PresentationProfileItem[];\r\n UserProfile? : PresentationProfile;\r\n}\r\n\r\nexport interface PresentationCardView {\r\n CanLink? : boolean;\r\n Card? : PresentationProfile;\r\n Cards? : PresentationProfile[];\r\n GridViewId? : number;\r\n}\r\n\r\nexport interface PermissionFilterViewModel extends EntityFilterViewModel<PermissionView> {\r\n PermissionId? : number;\r\n RoleId? : number;\r\n UserAccountId? : number;\r\n}\r\n\r\nexport interface ParameterViewFilterViewModel extends EntityFilterViewModel<ParameterView> {\r\n Code? : string;\r\n EntityId? : number;\r\n EntityKey? : string;\r\n IsGlobal? : boolean;\r\n ParameterId? : number;\r\n ParameterSectionId? : number;\r\n}\r\n\r\nexport interface ParameterValueViewFilterViewModel extends EntityFilterViewModel<ParameterValueView> {\r\n EntityId? : number;\r\n EntityKey? : string;\r\n IsGlobal? : boolean;\r\n ParameterId? : number;\r\n}\r\n\r\nexport interface ParameterSectionFilterViewModel extends EntityFilterViewModel<ParameterSection> {\r\n EntityId? : number;\r\n EntityKey? : string;\r\n}\r\n\r\nexport interface MetaEntityViewFieldFilterViewModel extends EntityFilterViewModel<MetaEntityViewField> {\r\n MetaEntityFieldId? : number;\r\n MetaEntityId? : number;\r\n}\r\n\r\nexport interface MetaEntityTranslationFilterViewModel extends EntityFilterViewModel<MetaEntityTranslation> {\r\n EntityId? : number;\r\n MetaEntityFieldId? : number;\r\n ResourceLanguageId? : number;\r\n}\r\n\r\nexport interface MetaEntityRelationFilterViewModel extends EntityFilterViewModel<MetaEntityRelation> {\r\n ForeignMetaEntityId? : number;\r\n MetaEntityId? : number;\r\n}\r\n\r\nexport interface MetaEntityRelationDefinitionFilterViewModel extends EntityFilterViewModel<MetaEntityRelationDefinition> {\r\n MetaEntityFieldId? : number;\r\n MetaEntityId? : number;\r\n MetaEntityRelationId? : number;\r\n}\r\n\r\nexport interface MetaEntityKeywordFilterViewModel extends EntityFilterViewModel<MetaEntityKeyword> {\r\n EntityId? : number;\r\n EntityKey? : string;\r\n EntityType? : string;\r\n KeywordId? : number;\r\n}\r\n\r\nexport interface MetaEntityFormSectionFilterViewModel extends EntityFilterViewModel<MetaEntityFormSectionView> {\r\n DataMetaEntityId? : number;\r\n MetaEntityFormId? : number;\r\n}\r\n\r\nexport interface MetaEntityFormFilterViewModel extends EntityFilterViewModel<MetaEntityFormView> {\r\n FormType? : number;\r\n MetaEntityId? : number;\r\n}\r\n\r\nexport interface MetaEntityFormFieldFilterViewModel extends EntityFilterViewModel<MetaEntityFormFieldView> {\r\n ConditioningMetaEntityFormFieldId? : number;\r\n DataMetaEntityId? : number;\r\n EnumMetaEntityId? : number;\r\n MetaEntityFieldId? : number;\r\n MetaEntityFormSectionId? : number;\r\n MetaEntityViewFieldId? : number;\r\n}\r\n\r\nexport interface MetaEntityFilterViewModel extends EntityFilterViewModel<MetaEntity> {\r\n IsChangeHistorized? : boolean;\r\n IsDeletionHistorized? : boolean;\r\n MetaEntityKey? : string;\r\n MetaEntityKeyList? : string[];\r\n MetaEntityType? : number;\r\n}\r\n\r\nexport interface MetaEntityFieldFilterViewModel extends EntityFilterViewModel<MetaEntityField> {\r\n CustomFieldId? : number;\r\n FilterCustomField? : boolean;\r\n MetaEntityFieldId? : string;\r\n MetaEntityKey? : string;\r\n}\r\n\r\nexport interface KeywordFilterViewModel extends EntityFilterViewModel<Keyword> {\r\n KeywordId? : number;\r\n Label? : string;\r\n}\r\n\r\nexport interface GetFileDescriptorsViewModel {\r\n EntityIds? : number[];\r\n EntityKey? : string;\r\n FileType? : FileTypes;\r\n}\r\n\r\nexport interface FormEditorContext {\r\n Catalog? : MetaEntityFormFieldView[];\r\n Entities? : MetaEntity[];\r\n Form? : MetaEntityFormView;\r\n Sections? : MetaEntityFormSectionView[];\r\n}\r\n\r\nexport interface FilesFilterViewModel extends EntityFilterViewModel<FilesView> {\r\n EntityId? : number;\r\n EntityIds? : number[];\r\n EntityKey? : string;\r\n FileId? : number;\r\n FileName? : string;\r\n FileType? : number;\r\n}\r\n\r\nexport interface FileDescriptor {\r\n Extension? : string;\r\n FileId? : number;\r\n FileLength? : number;\r\n FileName? : string;\r\n FileType? : FileTypes;\r\n IsSelected? : boolean;\r\n LastModificationDate? : Date;\r\n LengthDescription? : string;\r\n OwnerUser? : string;\r\n}\r\n\r\nexport interface EntityFilesFilterViewModel extends EntityFilterViewModel<EntityFiles> {\r\n EntityId? : number;\r\n EntityIds? : number[];\r\n EntityKey? : string;\r\n FileId? : number;\r\n}\r\n\r\nexport interface CustomFieldOptionsFilterViewModel extends EntityFilterViewModel<CustomFieldOptionsView> {\r\n CustomFieldId? : number;\r\n FieldTypeId? : number;\r\n}\r\n\r\nexport interface CustomFieldGroupItemFilterViewModel extends EntityFilterViewModel<CustomFieldGroupItemView> {\r\n CustomFieldId? : number;\r\n GroupId? : number;\r\n GroupTypes? : number[];\r\n MetaEntityId? : number;\r\n}\r\n\r\nexport interface CustomFieldGroupFilterViewModel extends EntityFilterViewModel<CustomFieldGroup> {\r\n CustomFieldGroupType? : number;\r\n GroupId? : number;\r\n GroupTypes? : number[];\r\n MetaEntityId? : number;\r\n MetaEntityKey? : string;\r\n}\r\n\r\nexport interface CustomFieldGroupEntityFilterViewModel extends EntityFilterViewModel<CustomFieldGroupEntityView> {\r\n CustomFieldGroupId? : number;\r\n EntityId? : number;\r\n EntityKey? : string;\r\n GroupId? : number;\r\n}\r\n\r\nexport interface CustomFieldFilterViewModel extends EntityFilterViewModel<CustomFieldView> {\r\n CustomFieldType? : number;\r\n EntityIds? : number[];\r\n EntityKey? : string;\r\n FieldTypeId? : number;\r\n Name? : string;\r\n}\r\n\r\nexport enum PresentationProfileScopes {\r\n Default = 0,\r\n User = 1,\r\n Role = 2,\r\n Supplier = 3,\r\n}\r\n\r\nexport enum PresentationProfilePurposes {\r\n Grid = 0,\r\n Export = 1,\r\n Card = 2,\r\n}\r\n\r\nexport enum ParameterTypes {\r\n String = 0,\r\n Int = 1,\r\n Double = 2,\r\n Boolean = 3,\r\n DateTime = 4,\r\n StringArray = 5,\r\n IntArray = 6,\r\n DoubleArray = 7,\r\n BooleanArray = 8,\r\n DateTimeArray = 9,\r\n Password = 10,\r\n}\r\n\r\nexport enum MetaEntityTypes {\r\n Table = 0,\r\n SystemView = 1,\r\n UserView = 2,\r\n}\r\n\r\nexport enum MetaEntityRelationTypes {\r\n ForeignKey = 0,\r\n Index = 1,\r\n Unicity = 2,\r\n}\r\n\r\nexport enum MetaEntityFieldTypes {\r\n Column = 0,\r\n CustomField = 1,\r\n}\r\n\r\nexport enum FormTypes {\r\n Detail = 0,\r\n Filter = 1,\r\n}\r\n\r\nexport enum FieldFilterTypes {\r\n String = 0,\r\n Integer = 1,\r\n Date = 2,\r\n ComboBox = 3,\r\n CheckBox = 4,\r\n Email = 5,\r\n WeekNumber = 6,\r\n Text = 7,\r\n Custom = 8,\r\n RadioButton = 9,\r\n TextZoneWithButton = 10,\r\n HorizComboBox = 11,\r\n TextWithButton = 12,\r\n DropFileZone = 13,\r\n DateTime = 14,\r\n Password = 15,\r\n TreeSelector = 16,\r\n Decimal = 17,\r\n}\r\n\r\nexport enum FieldConditionalResults {\r\n Hide = 0,\r\n ReadOnly = 1,\r\n}\r\n\r\nexport enum FieldColumnSpans {\r\n Single = 0,\r\n Full = 1,\r\n}\r\n\r\nexport enum CustomFieldTypes {\r\n String = 0,\r\n Integer = 1,\r\n Date = 2,\r\n ComboBox = 3,\r\n Checkbox = 4,\r\n Email = 5,\r\n WeekNumber = 6,\r\n Text = 7,\r\n Custom = 8,\r\n Number = 9,\r\n}\r\n\r\nexport enum CustomFieldGroupTypes {\r\n Schema = 1,\r\n Extension = 2,\r\n Contextual = 3,\r\n}\r\n\r\nexport enum CoreError {\r\n FILE_ACCESS_ERROR = 1,\r\n INVALID_PARAMETER = 2,\r\n}\r\n\r\nexport enum ColumnSourceTypes {\r\n Table = 0,\r\n View = 1,\r\n CustomField = 2,\r\n EntityImage = 3,\r\n}\r\n\r\nexport enum ColumnDisplayTypes {\r\n Text = 0,\r\n Number = 1,\r\n Date = 2,\r\n DateTime = 3,\r\n Money = 4,\r\n Percent = 5,\r\n Boolean = 6,\r\n EnumImage = 7,\r\n WideEnumImage = 8,\r\n ImageFile = 9,\r\n Base64Image = 10,\r\n Url = 11,\r\n FixedSizeInteger = 12,\r\n}\r\n\r\nexport enum CardSlots {\r\n Title = 0,\r\n Text = 1,\r\n Detail = 2,\r\n Badge = 3,\r\n Image = 4,\r\n}\r\n\r\n"],"mappings":";;;AAYA,IAAa,kBAAb,MAAa,gBAAe;CAAf;EAAA,KAAA,OAAA,GAAA,mBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAe,MAAA,CAAA;GAAA,QAAA,GAAA,gBAAA;EAAA,CAAA;CAAA;CAAf;EAAA,KAAA,OAAA,GAAA,oBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAe,SAAA,CAFd,YAAY;EAAA,CAAA;CAAA;CAEb;EAAA,KAAA,OAAA,GAAA,oBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAe,SAAA,CAFd,YAAY;EAAA,CAAA;CAAA;;AAEb,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAe,YAAA,CAAA;EAH3B,MAAA;EAAS,MAAA,CAAA,EACN,SAAS,CAAC,YAAY,EACzB,CAAA;;;ACyfD,IAAY;CAAZ,SAAY,WAAS;CACjB,UAAA,UAAA,aAAA,KAAA;CACA,UAAA,UAAA,SAAA,KAAA;CACA,UAAA,UAAA,WAAA,KAAA;CACA,UAAA,UAAA,kBAAA,KAAA;CACA,UAAA,UAAA,cAAA,KAAA;AACJ,EAAA,CANY,cAAA,YAAS,CAAA,EAAA;AA2WrB,IAAY;CAAZ,SAAY,2BAAyB;CACjC,0BAAA,0BAAA,aAAA,KAAA;CACA,0BAAA,0BA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B,IAAY;CAAZ,SAAY,WAAS;CACjB,UAAA,UAAA,WAAA,KAAA;CACA,UAAA,UAAA,UAAA,KAAA;CACA,UAAA,UAAA,YAAA,KAAA;CACA,UAAA,UAAA,WAAA,KAAA;CACA,UAAA,UAAA,WAAA,KAAA;AACJ,EAAA,CANY,cAAA,YAAS,CAAA,EAAA"}
1
+ {"version":3,"file":"dflat-core-web-meta-model.mjs","names":[],"sources":["../../meta-model/src/lib/meta-model.module.ts","../../meta-model/src/lib/model/interface.generated.ts"],"sourcesContent":["import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\n\r\n/**\r\n * Modèle de l'application : interfaces et énumérations générées par\r\n * \"dflat -g ts\" depuis les entités de Meta.Model.\r\n *\r\n * Le code généré est écrit dans src/lib et exporté par src/index.ts.\r\n */\r\n@NgModule({\r\n imports: [CommonModule]\r\n})\r\nexport class MetaModelModule {}\r\n","import { Dictionary } from '@dflat-core/web/core-model';\r\nimport { EntityFilterViewModel, EntityViewModel, ExtendedProperty, INode } from '@dflat-core/web/core-model';\r\n\r\nexport interface MetaEntityFormFieldView extends EntityViewModel {\r\n ButtonLabel? : string;\r\n CascadeDependency? : boolean;\r\n CascadeDependencyProperty? : string;\r\n ColumnIndex? : number;\r\n ConditioningBoolValue? : boolean;\r\n ConditioningMetaEntityFormFieldId? : number;\r\n ConditioningMetaEntityFormFieldPropertyName? : string;\r\n ConditioningValues? : string;\r\n CreatedBy? : string;\r\n CreationDate? : Date;\r\n DataMetaEntityEntityName? : string;\r\n DataMetaEntityId? : number;\r\n Description? : string;\r\n DisplayImage? : boolean;\r\n DisplayMember? : string;\r\n EnumMetaEntityEntityName? : string;\r\n EnumMetaEntityId? : number;\r\n ExportPropertyName? : string;\r\n FieldColumnSpan? : number;\r\n FieldConditionalResult? : number;\r\n FieldFilterType? : number;\r\n FilterDistinct? : boolean;\r\n HideSelected? : boolean;\r\n Highlight? : boolean;\r\n Id? : number;\r\n IncludeAllOption? : boolean;\r\n InputType? : string;\r\n IsClearable? : boolean;\r\n IsConditional? : boolean;\r\n IsConditioning? : boolean;\r\n IsExtendedProperty? : boolean;\r\n IsHidden? : boolean;\r\n IsReadOnly? : boolean;\r\n IsRequired? : boolean;\r\n IsStatic? : boolean;\r\n KeepPlace? : boolean;\r\n Label? : string;\r\n MaxLength? : number;\r\n MaxValue? : number;\r\n MetaEntityFieldFieldName? : string;\r\n MetaEntityFieldId? : number;\r\n MetaEntityFormSectionId? : number;\r\n MetaEntityFormSectionName? : string;\r\n MetaEntityViewFieldFieldName? : string;\r\n MetaEntityViewFieldId? : number;\r\n MinValue? : number;\r\n ModalEntityKey? : string;\r\n ModalOnly? : boolean;\r\n ModalPropertyName? : string;\r\n ModalPropertyValue? : string;\r\n ModalTitle? : string;\r\n ModalTriggerProperty? : string;\r\n ModalTriggerValue? : string;\r\n ModificationDate? : Date;\r\n ModifiedBy? : string;\r\n MultipleSelection? : boolean;\r\n NotDefaultRequired? : boolean;\r\n OrderNumber? : number;\r\n OrderRank? : number;\r\n PropertyName? : string;\r\n RowVersion? : string;\r\n ToolTip? : string;\r\n ValidatorTypes? : number;\r\n ValueMember? : string;\r\n}\r\n\r\nexport interface PresentationProfileItem extends EntityViewModel {\r\n BaseUrl? : string;\r\n CardSlot? : number;\r\n ColumnDisplayType? : number;\r\n ColumnKey? : string;\r\n ColumnSourceType? : number;\r\n ColumnSourceTypeLabel? : string;\r\n CompletingCharacter? : string;\r\n CreatedBy? : string;\r\n CreationDate? : Date;\r\n Currency? : string;\r\n CurrencyPropertyName? : string;\r\n CustomFieldId? : number;\r\n DisplayFormat? : string;\r\n DisplayWidth? : number;\r\n EnumEntityName? : string;\r\n GroupId? : number;\r\n GroupName? : string;\r\n HandleError? : boolean;\r\n Id? : number;\r\n IsAllowed? : boolean;\r\n IsLocked? : boolean;\r\n Label? : string;\r\n MaxFractionDigits? : number;\r\n MinFractionDigits? : number;\r\n MinIntegerDigits? : number;\r\n ModificationDate? : Date;\r\n ModifiedBy? : string;\r\n Multiplier? : number;\r\n NullCaseText? : string;\r\n OrderNumber? : number;\r\n PresentationProfileId? : number;\r\n RowVersion? : string;\r\n}\r\n\r\nexport interface Permission extends EntityViewModel {\r\n Childrens? : INode[];\r\n Code? : string;\r\n CreatedBy? : string;\r\n CreationDate? : Date;\r\n Description? : string;\r\n Id? : number;\r\n ModificationDate? : Date;\r\n ModifiedBy? : string;\r\n Module? : string;\r\n ParentId? : number;\r\n ParentName? : string;\r\n RowVersion? : string;\r\n UniqueName? : string;\r\n}\r\n\r\nexport interface MetaEntityFormSectionView extends EntityViewModel {\r\n CreatedBy? : string;\r\n CreationDate? : Date;\r\n DataMetaEntityEntityName? : string;\r\n DataMetaEntityId? : number;\r\n FilterPropertyName? : string;\r\n FormFields? : MetaEntityFormFieldView[];\r\n Id? : number;\r\n IsCustomFieldSection? : boolean;\r\n IsFileSection? : boolean;\r\n IsHidden? : boolean;\r\n IsTrackRecordSection? : boolean;\r\n MetaEntityFormCode? : string;\r\n MetaEntityFormId? : number;\r\n ModificationDate? : Date;\r\n ModifiedBy? : string;\r\n Name? : string;\r\n OrderNumber? : number;\r\n OrderRank? : number;\r\n RowVersion? : string;\r\n}\r\n\r\nexport interface CustomFieldGroupItemView extends EntityViewModel {\r\n CreatedBy? : string;\r\n CreationDate? : Date;\r\n CustomFieldGroupType? : number;\r\n CustomFieldId? : number;\r\n CustomFieldName? : string;\r\n CustomFieldType? : number;\r\n CustomFieldTypeLabel? : string;\r\n GroupDescription? : string;\r\n GroupId? : number;\r\n GroupLabel? : string;\r\n Id? : number;\r\n MetaEntityId? : number;\r\n ModificationDate? : Date;\r\n ModifiedBy? : string;\r\n OrderNumber? : number;\r\n OrderRank? : number;\r\n RowVersion? : string;\r\n SourceLabel? : string;\r\n}\r\n\r\nexport interface Version extends EntityViewModel {\r\n CreatedBy? : string;\r\n CreationDate? : Date;\r\n Id? : number;\r\n Major? : number;\r\n Minor? : number;\r\n ModificationDate? : Date;\r\n ModifiedBy? : string;\r\n Module? : string;\r\n Patch? : number;\r\n Release? : number;\r\n RowVersion? : string;\r\n UpdateDate? : Date;\r\n}\r\n\r\nexport interface ResourceTranslationView extends EntityViewModel {\r\n CreatedBy? : string;\r\n CreationDate? : Date;\r\n FileId? : number;\r\n FileName? : string;\r\n FilePath? : string;\r\n FileType? : number;\r\n Id? : number;\r\n Key? : string;\r\n LanguageCode? : string;\r\n LanguageLabel? : string;\r\n ModificationDate? : Date;\r\n ModifiedBy? : string;\r\n Module? : string;\r\n ResourceKeyId? : number;\r\n ResourceLanguageId? : number;\r\n RowVersion? : string;\r\n Value? : string;\r\n}\r\n\r\nexport interface ResourceLanguage extends EntityViewModel {\r\n Code? : string;\r\n CreatedBy? : string;\r\n CreationDate? : Date;\r\n Description? : string;\r\n Id? : number;\r\n Label? : string;\r\n ModificationDate? : Date;\r\n ModifiedBy? : string;\r\n RowVersion? : string;\r\n}\r\n\r\nexport interface ResourceKey extends EntityViewModel {\r\n CreatedBy? : string;\r\n CreationDate? : Date;\r\n Description? : string;\r\n Id? : number;\r\n Key? : string;\r\n Label? : string;\r\n ModificationDate? : Date;\r\n ModifiedBy? : string;\r\n Module? : string;\r\n RowVersion? : string;\r\n}\r\n\r\nexport interface PresentationProfileView extends EntityViewModel {\r\n CardPresentationProfileId? : number;\r\n CreatedBy? : string;\r\n CreationDate? : Date;\r\n FilterQuery? : string;\r\n Id? : number;\r\n IsCurrentView? : boolean;\r\n Items? : PresentationProfileItem[];\r\n Label? : string;\r\n MetaEntityEntityName? : string;\r\n MetaEntityKey? : string;\r\n MetaEntityLabel? : string;\r\n ModificationDate? : Date;\r\n ModifiedBy? : string;\r\n PresentationProfilePurpose? : number;\r\n PresentationProfilePurposeLabel? : string;\r\n PresentationProfileScope? : number;\r\n PresentationProfileScopeLabel? : string;\r\n RoleId? : number;\r\n RoleUniqueName? : string;\r\n RowVersion? : string;\r\n SortQuery? : string;\r\n UserAccountId? : number;\r\n UserAccountPseudo? : string;\r\n}\r\n\r\nexport interface PresentationProfileItemView extends EntityViewModel {\r\n BaseUrl? : string;\r\n CardSlot? : number;\r\n ColumnDisplayType? : number;\r\n ColumnDisplayTypeLabel? : string;\r\n ColumnKey? : string;\r\n ColumnSourceType? : number;\r\n ColumnSourceTypeLabel? : string;\r\n CompletingCharacter? : string;\r\n CreatedBy? : string;\r\n CreationDate? : Date;\r\n Currency? : string;\r\n CurrencyPropertyName? : string;\r\n CustomFieldId? : number;\r\n DisplayFormat? : string;\r\n DisplayWidth? : number;\r\n HandleError? : boolean;\r\n Id? : number;\r\n IsAllowed? : boolean;\r\n IsLocked? : boolean;\r\n Label? : string;\r\n MaxFractionDigits? : number;\r\n MinFractionDigits? : number;\r\n MinIntegerDigits? : number;\r\n ModificationDate? : Date;\r\n ModifiedBy? : string;\r\n Multiplier? : number;\r\n NullCaseText? : string;\r\n OrderNumber? : number;\r\n OrderRank? : number;\r\n PresentationProfileId? : number;\r\n RowVersion? : string;\r\n}\r\n\r\nexport interface PresentationProfile extends EntityViewModel {\r\n CardPresentationProfileId? : number;\r\n CreatedBy? : string;\r\n CreationDate? : Date;\r\n FilterQuery? : string;\r\n Id? : number;\r\n IsCurrentView? : boolean;\r\n Items? : PresentationProfileItem[];\r\n Label? : string;\r\n MetaEntityKey? : string;\r\n ModificationDate? : Date;\r\n ModifiedBy? : string;\r\n PresentationProfilePurpose? : number;\r\n PresentationProfileScope? : number;\r\n RoleId? : number;\r\n RowVersion? : string;\r\n SortQuery? : string;\r\n UserAccountId? : number;\r\n}\r\n\r\nexport interface PermissionView extends EntityViewModel {\r\n Code? : string;\r\n CreatedBy? : string;\r\n CreationDate? : Date;\r\n Description? : string;\r\n Id? : number;\r\n ModificationDate? : Date;\r\n ModifiedBy? : string;\r\n Module? : string;\r\n ParentId? : number;\r\n ParentName? : string;\r\n RowVersion? : string;\r\n UniqueName? : string;\r\n}\r\n\r\nexport interface ParameterView extends EntityViewModel {\r\n Code? : string;\r\n CreatedBy? : string;\r\n CreationDate? : Date;\r\n Description? : string;\r\n EntityId? : number;\r\n EntityKey? : string;\r\n Id? : number;\r\n Label? : string;\r\n ModificationDate? : Date;\r\n ModifiedBy? : string;\r\n OrderRank? : number;\r\n ParameterOrderNumber? : number;\r\n ParameterSectionCode? : string;\r\n ParameterSectionDescription? : string;\r\n ParameterSectionId? : number;\r\n ParameterSectionLabel? : string;\r\n ParameterSectionOrderNumber? : number;\r\n ParameterType? : number;\r\n RowVersion? : string;\r\n}\r\n\r\nexport interface ParameterValueView extends EntityViewModel {\r\n CreatedBy? : string;\r\n CreationDate? : Date;\r\n EntityId? : number;\r\n EntityKey? : string;\r\n Id? : number;\r\n ModificationDate? : Date;\r\n ModifiedBy? : string;\r\n ParameterCode? : string;\r\n ParameterDescription? : string;\r\n ParameterId? : number;\r\n ParameterLabel? : string;\r\n ParameterSectionCode? : string;\r\n ParameterSectionDescription? : string;\r\n ParameterSectionId? : number;\r\n ParameterSectionLabel? : string;\r\n ParameterSectionOrderNumber? : number;\r\n ParameterType? : number;\r\n RowVersion? : string;\r\n Value? : string;\r\n}\r\n\r\nexport interface ParameterSection extends EntityViewModel {\r\n Code? : string;\r\n CreatedBy? : string;\r\n CreationDate? : Date;\r\n Description? : string;\r\n EntityId? : number;\r\n EntityKey? : string;\r\n Id? : number;\r\n Label? : string;\r\n ModificationDate? : Date;\r\n ModifiedBy? : string;\r\n OrderNumber? : number;\r\n RowVersion? : string;\r\n}\r\n\r\nexport interface MetaEntityViewField extends EntityViewModel {\r\n CreatedBy? : string;\r\n CreationDate? : Date;\r\n Description? : string;\r\n Expression? : string;\r\n FieldName? : string;\r\n Id? : number;\r\n IsFilterEnabled? : boolean;\r\n IsNumericExpression? : boolean;\r\n IsSortEnabled? : boolean;\r\n Label? : string;\r\n MetaEntityFieldId? : number;\r\n MetaEntityId? : number;\r\n ModificationDate? : Date;\r\n ModifiedBy? : string;\r\n OrderNumber? : number;\r\n RowVersion? : string;\r\n TableAlias? : string;\r\n}\r\n\r\nexport interface MetaEntityTranslation extends EntityViewModel {\r\n CreatedBy? : string;\r\n CreationDate? : Date;\r\n EntityId? : number;\r\n Id? : number;\r\n MetaEntityFieldId? : number;\r\n ModificationDate? : Date;\r\n ModifiedBy? : string;\r\n ResourceLanguageId? : number;\r\n RowVersion? : string;\r\n Value? : string;\r\n}\r\n\r\nexport interface MetaEntityRelationDefinition extends EntityViewModel {\r\n CreatedBy? : string;\r\n CreationDate? : Date;\r\n Id? : number;\r\n MetaEntityFieldId? : number;\r\n MetaEntityId? : number;\r\n MetaEntityRelationId? : number;\r\n ModificationDate? : Date;\r\n ModifiedBy? : string;\r\n OrderNumber? : number;\r\n RowVersion? : string;\r\n}\r\n\r\nexport interface MetaEntityRelation extends EntityViewModel {\r\n CreatedBy? : string;\r\n CreationDate? : Date;\r\n ForeignMetaEntityId? : number;\r\n Id? : number;\r\n MetaEntityId? : number;\r\n MetaEntityRelationType? : number;\r\n ModificationDate? : Date;\r\n ModifiedBy? : string;\r\n RelationName? : string;\r\n RowVersion? : string;\r\n}\r\n\r\nexport interface MetaEntityKeyword extends EntityViewModel {\r\n CreatedBy? : string;\r\n CreationDate? : Date;\r\n EntityId? : number;\r\n EntityKey? : string;\r\n Id? : number;\r\n KeywordId? : number;\r\n ModificationDate? : Date;\r\n ModifiedBy? : string;\r\n RowVersion? : string;\r\n}\r\n\r\nexport interface MetaEntityFormView extends EntityViewModel {\r\n Code? : string;\r\n CreatedBy? : string;\r\n CreationDate? : Date;\r\n Description? : string;\r\n FormType? : number;\r\n Id? : number;\r\n IsDefault? : boolean;\r\n Label? : string;\r\n MetaEntityEntityKey? : string;\r\n MetaEntityEntityName? : string;\r\n MetaEntityId? : number;\r\n ModificationDate? : Date;\r\n ModifiedBy? : string;\r\n RowVersion? : string;\r\n Sections? : MetaEntityFormSectionView[];\r\n}\r\n\r\nexport interface MetaEntityField extends EntityViewModel {\r\n ClearFieldData? : boolean;\r\n CreatedBy? : string;\r\n CreationDate? : Date;\r\n CustomFieldId? : number;\r\n DefaultValue? : string;\r\n Description? : string;\r\n FieldName? : string;\r\n FieldSQLType? : string;\r\n Id? : number;\r\n Label? : string;\r\n MaxLength? : number;\r\n MaxValue? : string;\r\n MetaEntityFieldType? : number;\r\n MetaEntityKey? : string;\r\n MinValue? : string;\r\n ModificationDate? : Date;\r\n ModifiedBy? : string;\r\n RowVersion? : string;\r\n Scale? : number;\r\n}\r\n\r\nexport interface MetaEntity extends EntityViewModel {\r\n CreatedBy? : string;\r\n CreationDate? : Date;\r\n Description? : string;\r\n EntityKey? : string;\r\n EntityName? : string;\r\n Id? : number;\r\n IsChangeHistorized? : boolean;\r\n IsDeletionHistorized? : boolean;\r\n Label? : string;\r\n MetaEntityType? : number;\r\n ModificationDate? : Date;\r\n ModifiedBy? : string;\r\n Module? : string;\r\n ParentMetaEntityId? : number;\r\n RowVersion? : string;\r\n}\r\n\r\nexport interface Keyword extends EntityViewModel {\r\n CreatedBy? : string;\r\n CreationDate? : Date;\r\n Id? : number;\r\n Label? : string;\r\n ModificationDate? : Date;\r\n ModifiedBy? : string;\r\n RowVersion? : string;\r\n}\r\n\r\nexport enum FileTypes {\r\n Default = 0,\r\n Log = 1,\r\n Image = 2,\r\n DefaultImage = 3,\r\n ImageUrl = 4,\r\n}\r\n\r\nexport interface FilesView extends EntityViewModel {\r\n CreatedBy? : string;\r\n CreationDate? : Date;\r\n EntityFileId? : number;\r\n EntityId? : number;\r\n Exists? : boolean;\r\n Extension? : string;\r\n FileLength? : number;\r\n FileName? : string;\r\n FileType? : number;\r\n Id? : number;\r\n IsOperationalUrl? : boolean;\r\n ModificationDate? : Date;\r\n ModifiedBy? : string;\r\n Name? : string;\r\n OrderNumber? : number;\r\n OwnerUser? : string;\r\n OwnerUserId? : number;\r\n Path? : string;\r\n PhotoHash? : string;\r\n RowVersion? : string;\r\n Thumbnail? : number;\r\n Url? : string;\r\n}\r\n\r\nexport interface EntityFiles extends EntityViewModel {\r\n CreatedBy? : string;\r\n CreationDate? : Date;\r\n EntityId? : number;\r\n EntityKey? : string;\r\n FileId? : number;\r\n Id? : number;\r\n ModificationDate? : Date;\r\n ModifiedBy? : string;\r\n OrderNumber? : number;\r\n RowVersion? : string;\r\n}\r\n\r\nexport interface CustomFieldView extends EntityViewModel {\r\n CreatedBy? : string;\r\n CreationDate? : Date;\r\n CustomFieldType? : number;\r\n CustomFieldTypeLabel? : string;\r\n Description? : string;\r\n Id? : number;\r\n IsRequired? : boolean;\r\n Label? : string;\r\n Maximum? : string;\r\n MaxLength? : number;\r\n Minimum? : string;\r\n ModificationDate? : Date;\r\n ModifiedBy? : string;\r\n Name? : string;\r\n ParentCustomFieldId? : number;\r\n RowVersion? : string;\r\n}\r\n\r\nexport interface CustomFieldOptionsView extends EntityViewModel {\r\n CreatedBy? : string;\r\n CreationDate? : Date;\r\n CustomFieldId? : number;\r\n CustomFieldLabel? : string;\r\n DisplayValue? : string;\r\n Id? : number;\r\n IsDefault? : boolean;\r\n IsDefaultImage? : string;\r\n ModificationDate? : Date;\r\n ModifiedBy? : string;\r\n OrderNumber? : number;\r\n OrderRank? : number;\r\n RowVersion? : string;\r\n Value? : string;\r\n}\r\n\r\nexport interface CustomFieldGroupEntityView extends EntityViewModel {\r\n CreatedBy? : string;\r\n CreationDate? : Date;\r\n CustomFieldGroupId? : number;\r\n CustomFieldGroupItems? : CustomFieldGroupItemView[];\r\n CustomFieldGroupLabel? : string;\r\n EntityId? : number;\r\n EntityKey? : string;\r\n Fields? : string;\r\n Id? : number;\r\n MetaEntityLabel? : string;\r\n ModificationDate? : Date;\r\n ModifiedBy? : string;\r\n RowVersion? : string;\r\n}\r\n\r\nexport interface CustomFieldGroup extends EntityViewModel {\r\n CreatedBy? : string;\r\n CreationDate? : Date;\r\n CustomFieldGroupType? : number;\r\n Description? : string;\r\n Id? : number;\r\n Label? : string;\r\n MetaEntityId? : number;\r\n ModificationDate? : Date;\r\n ModifiedBy? : string;\r\n RowVersion? : string;\r\n Scopes? : string;\r\n}\r\n\r\nexport interface VersionFilterViewModel extends EntityFilterViewModel<Version> {\r\n Module? : string;\r\n}\r\n\r\nexport interface UploadFileResult {\r\n FileUrl? : string;\r\n}\r\n\r\nexport interface ResourceTranslationFilterViewModel extends EntityFilterViewModel<ResourceTranslationView> {\r\n Key? : string;\r\n LanguageCode? : string;\r\n Module? : string;\r\n ResourceKeyId? : number;\r\n ResourceLanguageId? : number;\r\n ResourceType? : number;\r\n}\r\n\r\nexport interface ResourceLanguageFilterViewModel extends EntityFilterViewModel<ResourceLanguage> {\r\n Code? : string;\r\n}\r\n\r\nexport interface ResourceKeyFilterViewModel extends EntityFilterViewModel<ResourceKey> {\r\n Key? : string;\r\n Module? : string;\r\n}\r\n\r\nexport interface PresentationViews {\r\n CanEditDefault? : boolean;\r\n DefaultId? : number;\r\n SelectedId? : number;\r\n Views? : PresentationProfile[];\r\n}\r\n\r\nexport interface PresentationViewRequest {\r\n FilterQuery? : string;\r\n Label? : string;\r\n MetaEntityKey? : string;\r\n PresentationProfileId? : number;\r\n PresentationProfilePurpose? : number;\r\n SortQuery? : string;\r\n}\r\n\r\nexport interface PresentationProfileItemFilterViewModel extends EntityFilterViewModel<PresentationProfileItemView> {\r\n ColumnKey? : string;\r\n ColumnSourceType? : number;\r\n CustomFieldId? : number;\r\n Label? : string;\r\n MetaEntityKey? : string;\r\n PresentationProfileId? : number;\r\n PresentationProfilePurpose? : number;\r\n PresentationProfileScope? : number;\r\n ScopeId? : number;\r\n}\r\n\r\nexport interface PresentationProfileFilterViewModel extends EntityFilterViewModel<PresentationProfileView> {\r\n KeywordPresentationProfileIds? : number[];\r\n Label? : string;\r\n MetaEntityKey? : string;\r\n OwnedPresentationProfileIds? : number[];\r\n PresentationProfileIds? : number[];\r\n PresentationProfilePurpose? : number;\r\n PresentationProfileScope? : number;\r\n PresentationProfileScopes? : number[];\r\n RoleId? : number;\r\n UserAccountId? : number;\r\n}\r\n\r\nexport interface PresentationContext {\r\n Catalog? : PresentationProfileItem[];\r\n DefaultProfile? : PresentationProfile;\r\n GridViewId? : number;\r\n IsUserProfile? : boolean;\r\n Profile? : PresentationProfile;\r\n Resolved? : PresentationProfileItem[];\r\n UserProfile? : PresentationProfile;\r\n}\r\n\r\nexport interface PresentationCardView {\r\n CanLink? : boolean;\r\n Card? : PresentationProfile;\r\n Cards? : PresentationProfile[];\r\n GridViewId? : number;\r\n}\r\n\r\nexport interface PermissionFilterViewModel extends EntityFilterViewModel<PermissionView> {\r\n PermissionId? : number;\r\n PermissionIds? : number[];\r\n RoleId? : number;\r\n UserAccountId? : number;\r\n}\r\n\r\nexport interface ParameterViewFilterViewModel extends EntityFilterViewModel<ParameterView> {\r\n Code? : string;\r\n EntityId? : number;\r\n EntityKey? : string;\r\n IsGlobal? : boolean;\r\n ParameterId? : number;\r\n ParameterSectionId? : number;\r\n}\r\n\r\nexport interface ParameterValueViewFilterViewModel extends EntityFilterViewModel<ParameterValueView> {\r\n EntityId? : number;\r\n EntityKey? : string;\r\n IsGlobal? : boolean;\r\n ParameterId? : number;\r\n}\r\n\r\nexport interface ParameterSectionFilterViewModel extends EntityFilterViewModel<ParameterSection> {\r\n EntityId? : number;\r\n EntityKey? : string;\r\n}\r\n\r\nexport interface MetaEntityViewFieldFilterViewModel extends EntityFilterViewModel<MetaEntityViewField> {\r\n MetaEntityFieldId? : number;\r\n MetaEntityId? : number;\r\n}\r\n\r\nexport interface MetaEntityTranslationFilterViewModel extends EntityFilterViewModel<MetaEntityTranslation> {\r\n EntityId? : number;\r\n MetaEntityFieldId? : number;\r\n ResourceLanguageId? : number;\r\n}\r\n\r\nexport interface MetaEntityRelationFilterViewModel extends EntityFilterViewModel<MetaEntityRelation> {\r\n ForeignMetaEntityId? : number;\r\n MetaEntityId? : number;\r\n}\r\n\r\nexport interface MetaEntityRelationDefinitionFilterViewModel extends EntityFilterViewModel<MetaEntityRelationDefinition> {\r\n MetaEntityFieldId? : number;\r\n MetaEntityId? : number;\r\n MetaEntityRelationId? : number;\r\n}\r\n\r\nexport interface MetaEntityKeywordFilterViewModel extends EntityFilterViewModel<MetaEntityKeyword> {\r\n EntityId? : number;\r\n EntityKey? : string;\r\n EntityType? : string;\r\n KeywordId? : number;\r\n}\r\n\r\nexport interface MetaEntityFormSectionFilterViewModel extends EntityFilterViewModel<MetaEntityFormSectionView> {\r\n DataMetaEntityId? : number;\r\n MetaEntityFormId? : number;\r\n}\r\n\r\nexport interface MetaEntityFormFilterViewModel extends EntityFilterViewModel<MetaEntityFormView> {\r\n FormType? : number;\r\n MetaEntityId? : number;\r\n}\r\n\r\nexport interface MetaEntityFormFieldFilterViewModel extends EntityFilterViewModel<MetaEntityFormFieldView> {\r\n ConditioningMetaEntityFormFieldId? : number;\r\n DataMetaEntityId? : number;\r\n EnumMetaEntityId? : number;\r\n MetaEntityFieldId? : number;\r\n MetaEntityFormSectionId? : number;\r\n MetaEntityViewFieldId? : number;\r\n}\r\n\r\nexport interface MetaEntityFilterViewModel extends EntityFilterViewModel<MetaEntity> {\r\n IsChangeHistorized? : boolean;\r\n IsDeletionHistorized? : boolean;\r\n MetaEntityKey? : string;\r\n MetaEntityKeyList? : string[];\r\n MetaEntityType? : number;\r\n}\r\n\r\nexport interface MetaEntityFieldFilterViewModel extends EntityFilterViewModel<MetaEntityField> {\r\n CustomFieldId? : number;\r\n FilterCustomField? : boolean;\r\n MetaEntityFieldId? : string;\r\n MetaEntityKey? : string;\r\n}\r\n\r\nexport interface KeywordFilterViewModel extends EntityFilterViewModel<Keyword> {\r\n KeywordId? : number;\r\n Label? : string;\r\n}\r\n\r\nexport interface GetFileDescriptorsViewModel {\r\n EntityIds? : number[];\r\n EntityKey? : string;\r\n FileType? : FileTypes;\r\n}\r\n\r\nexport interface FormEditorContext {\r\n Catalog? : MetaEntityFormFieldView[];\r\n Entities? : MetaEntity[];\r\n Form? : MetaEntityFormView;\r\n Sections? : MetaEntityFormSectionView[];\r\n}\r\n\r\nexport interface FilesFilterViewModel extends EntityFilterViewModel<FilesView> {\r\n EntityId? : number;\r\n EntityIds? : number[];\r\n EntityKey? : string;\r\n FileId? : number;\r\n FileName? : string;\r\n FileType? : number;\r\n}\r\n\r\nexport interface FileDescriptor {\r\n Extension? : string;\r\n FileId? : number;\r\n FileLength? : number;\r\n FileName? : string;\r\n FileType? : FileTypes;\r\n IsSelected? : boolean;\r\n LastModificationDate? : Date;\r\n LengthDescription? : string;\r\n OwnerUser? : string;\r\n}\r\n\r\nexport interface EntityFilesFilterViewModel extends EntityFilterViewModel<EntityFiles> {\r\n EntityId? : number;\r\n EntityIds? : number[];\r\n EntityKey? : string;\r\n FileId? : number;\r\n}\r\n\r\nexport interface CustomFieldOptionsFilterViewModel extends EntityFilterViewModel<CustomFieldOptionsView> {\r\n CustomFieldId? : number;\r\n FieldTypeId? : number;\r\n}\r\n\r\nexport interface CustomFieldGroupItemFilterViewModel extends EntityFilterViewModel<CustomFieldGroupItemView> {\r\n CustomFieldId? : number;\r\n GroupId? : number;\r\n GroupTypes? : number[];\r\n MetaEntityId? : number;\r\n}\r\n\r\nexport interface CustomFieldGroupFilterViewModel extends EntityFilterViewModel<CustomFieldGroup> {\r\n CustomFieldGroupType? : number;\r\n GroupId? : number;\r\n GroupTypes? : number[];\r\n MetaEntityId? : number;\r\n MetaEntityKey? : string;\r\n}\r\n\r\nexport interface CustomFieldGroupEntityFilterViewModel extends EntityFilterViewModel<CustomFieldGroupEntityView> {\r\n CustomFieldGroupId? : number;\r\n EntityId? : number;\r\n EntityKey? : string;\r\n GroupId? : number;\r\n}\r\n\r\nexport interface CustomFieldFilterViewModel extends EntityFilterViewModel<CustomFieldView> {\r\n CustomFieldType? : number;\r\n EntityIds? : number[];\r\n EntityKey? : string;\r\n FieldTypeId? : number;\r\n Name? : string;\r\n}\r\n\r\nexport enum PresentationProfileScopes {\r\n Default = 0,\r\n User = 1,\r\n Role = 2,\r\n Supplier = 3,\r\n}\r\n\r\nexport enum PresentationProfilePurposes {\r\n Grid = 0,\r\n Export = 1,\r\n Card = 2,\r\n}\r\n\r\nexport enum ParameterTypes {\r\n String = 0,\r\n Int = 1,\r\n Double = 2,\r\n Boolean = 3,\r\n DateTime = 4,\r\n StringArray = 5,\r\n IntArray = 6,\r\n DoubleArray = 7,\r\n BooleanArray = 8,\r\n DateTimeArray = 9,\r\n Password = 10,\r\n}\r\n\r\nexport enum MetaEntityTypes {\r\n Table = 0,\r\n SystemView = 1,\r\n UserView = 2,\r\n}\r\n\r\nexport enum MetaEntityRelationTypes {\r\n ForeignKey = 0,\r\n Index = 1,\r\n Unicity = 2,\r\n}\r\n\r\nexport enum MetaEntityFieldTypes {\r\n Column = 0,\r\n CustomField = 1,\r\n}\r\n\r\nexport enum FormTypes {\r\n Detail = 0,\r\n Filter = 1,\r\n}\r\n\r\nexport enum FieldFilterTypes {\r\n String = 0,\r\n Integer = 1,\r\n Date = 2,\r\n ComboBox = 3,\r\n CheckBox = 4,\r\n Email = 5,\r\n WeekNumber = 6,\r\n Text = 7,\r\n Custom = 8,\r\n RadioButton = 9,\r\n TextZoneWithButton = 10,\r\n HorizComboBox = 11,\r\n TextWithButton = 12,\r\n DropFileZone = 13,\r\n DateTime = 14,\r\n Password = 15,\r\n TreeSelector = 16,\r\n Decimal = 17,\r\n}\r\n\r\nexport enum FieldConditionalResults {\r\n Hide = 0,\r\n ReadOnly = 1,\r\n}\r\n\r\nexport enum FieldColumnSpans {\r\n Single = 0,\r\n Full = 1,\r\n}\r\n\r\nexport enum CustomFieldTypes {\r\n String = 0,\r\n Integer = 1,\r\n Date = 2,\r\n ComboBox = 3,\r\n Checkbox = 4,\r\n Email = 5,\r\n WeekNumber = 6,\r\n Text = 7,\r\n Custom = 8,\r\n Number = 9,\r\n}\r\n\r\nexport enum CustomFieldGroupTypes {\r\n Schema = 1,\r\n Extension = 2,\r\n Contextual = 3,\r\n}\r\n\r\nexport enum CoreError {\r\n FILE_ACCESS_ERROR = 1,\r\n INVALID_PARAMETER = 2,\r\n}\r\n\r\nexport enum ColumnSourceTypes {\r\n Table = 0,\r\n View = 1,\r\n CustomField = 2,\r\n EntityImage = 3,\r\n}\r\n\r\nexport enum ColumnDisplayTypes {\r\n Text = 0,\r\n Number = 1,\r\n Date = 2,\r\n DateTime = 3,\r\n Money = 4,\r\n Percent = 5,\r\n Boolean = 6,\r\n EnumImage = 7,\r\n WideEnumImage = 8,\r\n ImageFile = 9,\r\n Base64Image = 10,\r\n Url = 11,\r\n FixedSizeInteger = 12,\r\n}\r\n\r\nexport enum CardSlots {\r\n Title = 0,\r\n Text = 1,\r\n Detail = 2,\r\n Badge = 3,\r\n Image = 4,\r\n}\r\n\r\n"],"mappings":";;;AAYA,IAAa,kBAAb,MAAa,gBAAe;CAAf;EAAA,KAAA,OAAA,GAAA,mBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAe,MAAA,CAAA;GAAA,QAAA,GAAA,gBAAA;EAAA,CAAA;CAAA;CAAf;EAAA,KAAA,OAAA,GAAA,oBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAe,SAAA,CAFd,YAAY;EAAA,CAAA;CAAA;CAEb;EAAA,KAAA,OAAA,GAAA,oBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAe,SAAA,CAFd,YAAY;EAAA,CAAA;CAAA;;AAEb,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAe,YAAA,CAAA;EAH3B,MAAA;EAAS,MAAA,CAAA,EACN,SAAS,CAAC,YAAY,EACzB,CAAA;;;AC0fD,IAAY;CAAZ,SAAY,WAAS;CACjB,UAAA,UAAA,aAAA,KAAA;CACA,UAAA,UAAA,SAAA,KAAA;CACA,UAAA,UAAA,WAAA,KAAA;CACA,UAAA,UAAA,kBAAA,KAAA;CACA,UAAA,UAAA,cAAA,KAAA;AACJ,EAAA,CANY,cAAA,YAAS,CAAA,EAAA;AAgXrB,IAAY;CAAZ,SAAY,2BAAyB;CACjC,0BAAA,0BAAA,aAAA,KAAA;CACA,0BAAA,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gB9B,IAAY;CAAZ,SAAY,WAAS;CACjB,UAAA,UAAA,WAAA,KAAA;CACA,UAAA,UAAA,UAAA,KAAA;CACA,UAAA,UAAA,YAAA,KAAA;CACA,UAAA,UAAA,WAAA,KAAA;CACA,UAAA,UAAA,WAAA,KAAA;AACJ,EAAA,CANY,cAAA,YAAS,CAAA,EAAA"}
@@ -16,9 +16,9 @@ import * as i1 from "@dflat-core/web/core-ux";
16
16
  import { Action, BaseComponent, BaseEditorComponent, BaseEntityEditor, CanDeactivateGuard, CoreUxModule, DialogComponent, DialogComponentParameter, DialogType, EntitySections, EntitySelectors, FilterEditorComponent, MessageSeverity, NewEditorComponent, PP_SERVICE, SelectionType, additionalQueryOf, downloadFile, filterFromId, parseViewQuery, toViewQuery } from "@dflat-core/web/core-ux";
17
17
  import * as i4 from "@dflat-core/web/meta-data";
18
18
  import { CustomFieldDataService, CustomFieldGroupDataService, CustomFieldGroupEntityDataService, CustomFieldGroupItemDataService, CustomFieldOptionsDataService, FilesDataService, KeywordDataService, MetaDataModule, MetaEntityDataService, MetaEntityFieldDataService, MetaEntityFormDataService, MetaEntityFormFieldDataService, MetaEntityFormSectionDataService, MetaEntityKeywordDataService, MetaEntityRelationDataService, MetaEntityRelationDefinitionDataService, MetaEntityTranslationDataService, MetaEntityViewFieldDataService, ParameterDataService, ParameterSectionDataService, ParameterValueDataService, PermissionDataService, PresentationProfileDataService, PresentationProfileItemDataService, ResourceKeyDataService, ResourceLanguageDataService, ResourceTranslationDataService, VersionDataService } from "@dflat-core/web/meta-data";
19
+ import { FILES_DATA_SERVICE, Utilities } from "@dflat-core/web/core";
19
20
  import { ColumnDisplayTypes, CustomFieldGroupTypes, FieldColumnSpans, FieldConditionalResults, FieldFilterTypes, FileTypes, MetaEntityTypes, MetaModelModule, PresentationProfilePurposes, PresentationProfileScopes } from "@dflat-core/web/meta-model";
20
21
  import { MetaEntityKeys, MetaMenuItemProvider, MetaPermissions, MetaRootModule } from "@dflat-core/web/meta-root";
21
- import { Utilities } from "@dflat-core/web/core";
22
22
  import * as i2$1 from "@angular/router";
23
23
  import { RouterModule } from "@angular/router";
24
24
  import { Observable, Subject, combineLatest, forkJoin, of, takeUntil } from "rxjs";
@@ -11437,7 +11437,11 @@ var MetaUxModule = class MetaUxModule {
11437
11437
  useExisting: PpFacadeService
11438
11438
  },
11439
11439
  CustomFieldActionService,
11440
- CustomFieldService
11440
+ CustomFieldService,
11441
+ {
11442
+ provide: FILES_DATA_SERVICE,
11443
+ useExisting: FilesDataService
11444
+ }
11441
11445
  ],
11442
11446
  imports: [
11443
11447
  DragDropModule,
@@ -11494,7 +11498,11 @@ i0.ɵɵngDeclareClassMetadata({
11494
11498
  useExisting: PpFacadeService
11495
11499
  },
11496
11500
  CustomFieldActionService,
11497
- CustomFieldService
11501
+ CustomFieldService,
11502
+ {
11503
+ provide: FILES_DATA_SERVICE,
11504
+ useExisting: FilesDataService
11505
+ }
11498
11506
  ]
11499
11507
  }]
11500
11508
  }],