@kirbydesign/extensions-angular 1.1.0 → 1.3.0

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.
Files changed (40) hide show
  1. package/README.md +3 -4
  2. package/fesm2022/kirbydesign-extensions-angular-image-banner.mjs +10 -9
  3. package/fesm2022/kirbydesign-extensions-angular-image-banner.mjs.map +1 -1
  4. package/fesm2022/kirbydesign-extensions-angular-localization.mjs +419 -0
  5. package/fesm2022/kirbydesign-extensions-angular-localization.mjs.map +1 -0
  6. package/fesm2022/kirbydesign-extensions-angular-skeleton-loader.mjs +42 -0
  7. package/fesm2022/kirbydesign-extensions-angular-skeleton-loader.mjs.map +1 -0
  8. package/image-banner/image-banner.component.d.ts +4 -1
  9. package/localization/account-number/account-number-service-formatter.d.ts +2 -0
  10. package/localization/account-number/account-number.model.d.ts +4 -0
  11. package/localization/account-number/account-number.pipe.d.ts +16 -0
  12. package/localization/account-number/index.d.ts +3 -0
  13. package/localization/amount/amount-service-formatter.d.ts +32 -0
  14. package/localization/amount/amount.model.d.ts +14 -0
  15. package/localization/amount/amount.pipe.d.ts +31 -0
  16. package/localization/amount/amount.service.d.ts +18 -0
  17. package/localization/amount/index.d.ts +4 -0
  18. package/localization/date-time/abstract-timezone-compensating.pipe.d.ts +13 -0
  19. package/localization/date-time/date-formats.d.ts +8 -0
  20. package/localization/date-time/date-only/date-only.pipe.d.ts +11 -0
  21. package/localization/date-time/index.d.ts +4 -0
  22. package/localization/date-time/time-only/time-only.pipe.d.ts +18 -0
  23. package/localization/date-time/time-or-date/time-or-date.pipe.d.ts +16 -0
  24. package/localization/di-tokens.d.ts +28 -0
  25. package/localization/index.d.ts +6 -0
  26. package/localization/number/format-number.pipe.d.ts +10 -0
  27. package/localization/number/format-number.service.d.ts +8 -0
  28. package/localization/number/index.d.ts +2 -0
  29. package/localization/phone-number/index.d.ts +3 -0
  30. package/localization/phone-number/phone-number.d.ts +4 -0
  31. package/localization/phone-number/phone-number.pipe.d.ts +18 -0
  32. package/localization/phone-number/phone-number.service.d.ts +10 -0
  33. package/package.json +17 -13
  34. package/skeleton-loader/index.d.ts +1 -0
  35. package/skeleton-loader/skeleton-loader.component.d.ts +14 -0
  36. package/esm2022/image-banner/image-banner.component.mjs +0 -62
  37. package/esm2022/image-banner/index.mjs +0 -2
  38. package/esm2022/image-banner/kirbydesign-extensions-angular-image-banner.mjs +0 -5
  39. package/esm2022/index.mjs +0 -5
  40. package/esm2022/kirbydesign-extensions-angular.mjs +0 -5
@@ -0,0 +1 @@
1
+ {"version":3,"file":"kirbydesign-extensions-angular-localization.mjs","sources":["../../localization/src/date-time/date-formats.ts","../../localization/src/di-tokens.ts","../../localization/src/date-time/abstract-timezone-compensating.pipe.ts","../../localization/src/date-time/date-only/date-only.pipe.ts","../../localization/src/date-time/time-only/time-only.pipe.ts","../../localization/src/date-time/time-or-date/time-or-date.pipe.ts","../../localization/src/number/format-number.service.ts","../../localization/src/number/format-number.pipe.ts","../../localization/src/amount/amount-service-formatter.ts","../../localization/src/amount/amount.service.ts","../../localization/src/amount/amount.pipe.ts","../../localization/src/account-number/account-number-service-formatter.ts","../../localization/src/account-number/account-number.pipe.ts","../../localization/src/phone-number/phone-number.service.ts","../../localization/src/phone-number/phone-number.pipe.ts","../../localization/src/kirbydesign-extensions-angular-localization.ts"],"sourcesContent":["export class DateFormats {\n static readonly SHORT_DATE_FORMAT = 'dd.MM.yyyy';\n static readonly MEDIUM_DATE_FORMAT = 'd. MMMM y';\n static readonly MEDIUM_LETTER_DATE_FORMAT = 'dd. MMM yyyy';\n static readonly SHORT_TIME_FORMAT = 'HH:mm';\n static readonly MEDIUM_TIME_FORMAT = 'HH:mm:ss';\n static readonly SHORT_DATE_MEDIUM_TIME_FORMAT = `${DateFormats.SHORT_DATE_FORMAT} ${DateFormats.MEDIUM_TIME_FORMAT}`;\n}\n","import { InjectionToken } from '@angular/core';\n\nexport const KIRBY_EXTENSIONS_LOCALIZATION_TOKEN =\n new InjectionToken<KirbyExtensionsLocalizationToken>('KIRBY_EXTENSIONS_LOCALIZATION_TOKEN');\n\nexport function provideKirbyExtensionsLocalizationToken(\n factory: () => KirbyExtensionsLocalizationToken\n) {\n return {\n provide: KIRBY_EXTENSIONS_LOCALIZATION_TOKEN,\n useFactory: factory,\n };\n}\n\ninterface KirbyExtensionsLocalizationToken {\n /**\n * @example 'DKK | kr. | EUR'\n */\n nativeCurrency: string;\n /**\n * Default language for the application. Used to determine if the phone number country code should be shown, if not specified as input, based on the locale.\n * @example 'da'\n */\n defaultLang: string;\n /**\n * Default phone country code\n * @example '+45'\n */\n countryCode: string;\n /**\n * Default timezone for the application\n * @example 'Europe/Copenhagen'\n */\n timeZone: string;\n}\n","import { inject, LOCALE_ID, PipeTransform } from '@angular/core';\nimport { KIRBY_EXTENSIONS_LOCALIZATION_TOKEN } from '../di-tokens';\nimport { DateFormats } from './date-formats';\n\n/**\n * Abstract implementation of pipe that should format dates, and compensate for time-zone offset.\n *\n * This class provides tools for formatting dates (and timestamps) in a time zone\n */\nexport abstract class AbstractTimezoneCompensatingPipe implements PipeTransform {\n private config = inject(KIRBY_EXTENSIONS_LOCALIZATION_TOKEN);\n private locale = inject(LOCALE_ID);\n\n abstract transform(value: unknown, ...args: unknown[]): unknown;\n\n protected format(time: number | Date, formatPattern: string): string {\n if (!time) {\n return '';\n }\n\n const date = typeof time === 'number' ? new Date(time) : time;\n\n const timeZone = this.config.timeZone;\n const options = this.getIntlOptions(formatPattern);\n\n const formatter = new Intl.DateTimeFormat(this.locale, { ...options, timeZone });\n let formattedDate = formatter.format(date);\n\n // Capitalize month abbreviation and remove trailing period for `MEDIUM_LETTER_DATE_FORMAT`\n if (formatPattern === DateFormats.MEDIUM_LETTER_DATE_FORMAT) {\n formattedDate = formattedDate.replace(\n /(\\d{2}\\.\\s)(\\w+)\\.(\\s\\d{4})/,\n (_, day, month, year) => {\n return `${day}${month.charAt(0).toUpperCase()}${month.slice(1)}${year}`;\n }\n );\n }\n\n if (\n formatPattern === DateFormats.SHORT_TIME_FORMAT ||\n formatPattern === DateFormats.MEDIUM_TIME_FORMAT\n ) {\n formattedDate = formattedDate.replace(/\\./g, ':');\n }\n\n return formattedDate;\n }\n\n private getIntlOptions(formatPattern: string): Intl.DateTimeFormatOptions {\n switch (formatPattern) {\n case DateFormats.SHORT_DATE_FORMAT:\n return { year: 'numeric', month: '2-digit', day: '2-digit' };\n\n case DateFormats.MEDIUM_DATE_FORMAT:\n return { year: 'numeric', month: 'long', day: 'numeric' };\n\n case DateFormats.MEDIUM_LETTER_DATE_FORMAT:\n return {\n year: 'numeric',\n month: 'short',\n day: '2-digit',\n };\n\n case DateFormats.SHORT_TIME_FORMAT:\n return { hour: '2-digit', minute: '2-digit', hour12: false };\n\n case DateFormats.MEDIUM_TIME_FORMAT:\n return { hour: '2-digit', minute: '2-digit', second: '2-digit', hour12: false };\n\n case DateFormats.SHORT_DATE_MEDIUM_TIME_FORMAT:\n return {\n year: 'numeric',\n month: '2-digit',\n day: '2-digit',\n hour: '2-digit',\n minute: '2-digit',\n second: '2-digit',\n hour12: false,\n };\n\n default:\n throw new Error(`Unsupported format pattern: ${formatPattern}`);\n }\n }\n}\n","import { Pipe, PipeTransform } from '@angular/core';\n\nimport { AbstractTimezoneCompensatingPipe } from '../abstract-timezone-compensating.pipe';\nimport { DateFormats } from '../date-formats';\n\n/**\n * Formats a given timestamp as a date.\n */\n@Pipe({\n name: 'dateOnly',\n standalone: true,\n})\nexport class DateOnlyPipe extends AbstractTimezoneCompensatingPipe implements PipeTransform {\n transform(input: number | Date): string {\n return this.format(input, DateFormats.SHORT_DATE_FORMAT);\n }\n}\n","import { Pipe, PipeTransform } from '@angular/core';\n\nimport { AbstractTimezoneCompensatingPipe } from '../abstract-timezone-compensating.pipe';\nimport { DateFormats } from '../date-formats';\n\nexport type TimeOnlyFormat = 'short' | 'medium';\n\n/**\n * Formats a given timestamp as a time.\n *\n * Timestamps can be formatted as 2 variants:\n * - 'short' being 'HH:mm' (hours and minutes)\n * - 'medium' being 'HH:mm:ss' (as above, but with seconds appended)\n *\n */\n@Pipe({\n name: 'timeOnly',\n standalone: true,\n})\nexport class TimeOnlyPipe extends AbstractTimezoneCompensatingPipe implements PipeTransform {\n transform(input: number | Date, format: TimeOnlyFormat = 'short'): string {\n return this.format(input, this.getFormat(format));\n }\n\n private getFormat(format: TimeOnlyFormat): string {\n switch (format) {\n case 'short':\n return DateFormats.SHORT_TIME_FORMAT;\n case 'medium':\n return DateFormats.MEDIUM_TIME_FORMAT;\n default:\n throw new Error(`Unable to derive format from \"${format}\"`);\n }\n }\n}\n","import { Pipe, PipeTransform } from '@angular/core';\n\nimport { AbstractTimezoneCompensatingPipe } from '../abstract-timezone-compensating.pipe';\nimport { DateFormats } from '../date-formats';\n\n/**\n * Formats a given timestamp so that:\n * - If timestamp is of \"today\", it's formatted as time with hours and minutes (eg. 23:56)\n * - If timestamp is different from \"today\", it's formatted as date with \"day of month\", month and year (eg. 28.02.2020)\n *\n * All formatting and parsing is expect to be handled in \"Europe/Copenhagen\" time zone and with\n * the locale provided by `LOCALE_ID`.\n */\n\n@Pipe({\n name: 'timeOrDate',\n standalone: true,\n})\nexport class TimeOrDatePipe extends AbstractTimezoneCompensatingPipe implements PipeTransform {\n transform(\n time: number | Date,\n showSeconds = false,\n formatMonth: 'month-as-digits' | 'month-as-letters' = 'month-as-digits'\n ): string {\n if (!time) {\n return '';\n }\n\n const date = typeof time === 'number' ? new Date(time) : time;\n\n const today = new Date();\n const sameDay =\n date.getFullYear() === today.getFullYear() &&\n date.getMonth() === today.getMonth() &&\n date.getDate() === today.getDate();\n\n let format = DateFormats.SHORT_DATE_FORMAT;\n\n if (formatMonth === 'month-as-letters') {\n format = DateFormats.MEDIUM_LETTER_DATE_FORMAT;\n }\n\n if (sameDay) {\n format = showSeconds ? DateFormats.MEDIUM_TIME_FORMAT : DateFormats.SHORT_TIME_FORMAT;\n }\n\n return this.format(date, format);\n }\n}\n","import { formatNumber } from '@angular/common';\nimport { Inject, Injectable, LOCALE_ID } from '@angular/core';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class FormatNumberService {\n constructor(@Inject(LOCALE_ID) private localeId: string) {}\n\n public formatNumber(value: number, digitsInfo: string) {\n if (value == null) {\n return '';\n }\n\n return formatNumber(value, this.localeId, digitsInfo);\n }\n}\n","import { Pipe, PipeTransform } from '@angular/core';\n\nimport { FormatNumberService } from './format-number.service';\n\n@Pipe({\n name: 'formatNumber',\n standalone: true,\n})\nexport class FormatNumberPipe implements PipeTransform {\n constructor(private formatNumberService: FormatNumberService) {}\n\n transform(value: number, digitsInfo = '1.2-2') {\n return this.formatNumberService.formatNumber(value, digitsInfo);\n }\n}\n","import { formatNumber } from '@angular/common';\n\nimport { Amount } from './amount.model';\n\nexport function formatAmount(\n amount: Amount,\n amountServiceConfiguration: AmountServiceConfiguration,\n locale: string,\n nativeCurrency: string\n) {\n const config = deriveConfiguration(amountServiceConfiguration);\n\n let formattedAmount = formatNumber(amount && amount.amount, locale, config.digitsInfo);\n\n if (config.stripSign) {\n formattedAmount = formattedAmount.replace('-', '').trim();\n }\n\n const currencyCodeToAppend = deriveCurrencyCode(config, amount, nativeCurrency);\n\n if (!currencyCodeToAppend) {\n return formattedAmount;\n }\n if (config.currencyCodePosition === 'postfix') {\n return formattedAmount + ' ' + currencyCodeToAppend;\n } else {\n return currencyCodeToAppend + ' ' + formattedAmount;\n }\n}\n\nexport function deriveCurrencyCode(\n config: AmountServiceConfiguration,\n amount: Amount,\n nativeCurrency: string\n) {\n let currencyCodeToAppend;\n\n if (config.showCurrencyCode) {\n if (config.showCurrencyCode === 'alwaysShowCurrency') {\n currencyCodeToAppend = amount && amount.currencyCode;\n } else if (config.showCurrencyCode === 'showForeignCurrency') {\n currencyCodeToAppend =\n amount && amount.currencyCode !== nativeCurrency ? amount.currencyCode : '';\n }\n }\n\n return currencyCodeToAppend || '';\n}\n\nexport function deriveConfiguration(configuration: AmountServiceConfiguration) {\n const config: AmountServiceConfiguration = {\n showCurrencyCode: '',\n digitsInfo: '1.2-2',\n stripSign: false,\n };\n\n return Object.assign({}, config, configuration);\n}\n\nexport type ShowCurrencyCode = '' | 'alwaysShowCurrency' | 'showForeignCurrency';\nexport type CurrencyCodePosition = '' | 'prefix' | 'postfix';\n\nexport interface AmountServiceConfiguration {\n /**\n * - '' - don't output CurrencyCode\n * - 'alwaysShowCurrency' - always shows CurrencyCode, regardless of presentation currency\n * - 'showForeignCurrency' - only show CurrencyCode if it differs from the presentation currency\n */\n showCurrencyCode: ShowCurrencyCode;\n /**\n * The position of the currency code in the formatted amount\n * - 'postfix' - output CurrencyCode after the formatted amount, eg. 1.234,56 EUR\n * - 'prefix' - output CurrencyCode before the formatted amount, eg. DKK 1.234,56\n */\n currencyCodePosition?: CurrencyCodePosition;\n /**\n * A string that represents the format of the number. Learn more about the format here: https://angular.io/api/common/DecimalPipe#parameters\n */\n digitsInfo?: string;\n /**\n * Remove the minus sign from the formatted amount and trim any leading or trailing whitespace.\n */\n stripSign?: boolean;\n /**\n * The string to return if the amount is empty\n */\n returnValueOnEmptyAmount?: string;\n}\n","import { inject, Injectable, LOCALE_ID } from '@angular/core';\n\nimport { KIRBY_EXTENSIONS_LOCALIZATION_TOKEN } from '../di-tokens';\nimport { Amount } from './amount.model';\nimport {\n AmountServiceConfiguration,\n deriveConfiguration,\n formatAmount,\n} from './amount-service-formatter';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class AmountService {\n private config = inject(KIRBY_EXTENSIONS_LOCALIZATION_TOKEN);\n private locale = inject(LOCALE_ID);\n /**\n * Applies the transformation logic, by taking the `amount`-argument, and a configuration object - {@link AmountServiceConfiguration}\n *\n * The number is always formatted according to Angular LOCALE_ID\n *\n * @param amount the {@link Amount} to configure\n * @param amountServiceConfiguration\n */\n\n formatAmount(amount: Amount, amountServiceConfiguration: AmountServiceConfiguration) {\n if (amount == undefined) {\n const config = deriveConfiguration(amountServiceConfiguration);\n if (config.returnValueOnEmptyAmount) {\n return config.returnValueOnEmptyAmount;\n }\n amount = {\n amount: 0.0,\n currencyCode: '',\n };\n }\n\n return formatAmount(\n amount,\n amountServiceConfiguration,\n this.locale,\n this.config.nativeCurrency\n );\n }\n}\n","import { Pipe, PipeTransform } from '@angular/core';\n\nimport { Amount } from './amount.model';\nimport { AmountService } from './amount.service';\nimport { AmountServiceConfiguration } from './amount-service-formatter';\n\n/**\n * Configuration object for the amount-pipe. The configuration object can be used to control\n * the formatting of the amount, and can be passed as an argument to the amount-pipe when used on an {@link Amount}.\n * - `showCurrencyCode`: Controls whether the currency code should be displayed or not.\n * - `''`: Don't output currency code\n * - `alwaysShowCurrency`: Always show currency code, regardless of presentation currency\n * - `showForeignCurrency`: Only show currency code if it differs from the presentation currency\n * - `digitsInfo`: A string that represents the format of the number. Learn more about the format here: https://angular.io/api/common/DecimalPipe#parameters\n * - `stripSign`: Controls whether the minus sign should be stripped from a negative amount.\n * - `currencyCodePosition`: Controls the position of the currency code in the formatted amount.\n * - `postfix`: Output currency code after the formatted amount, e.g. 1.234,56 EUR\n * - `prefix`: Output currency code before the formatted amount, e.g. DKK 1.234,56\n */\n@Pipe({\n name: 'amount',\n standalone: true,\n})\nexport class AmountPipe implements PipeTransform {\n constructor(private amountService: AmountService) {}\n\n /**\n * Applies the transformation logic, by taking the `amount`-argument, and a configuration object - {@link AmountServiceConfiguration} (or a number of arguments, for backwards compatibility).\n *\n * @param amount the {@link Amount} to configure\n * @param amountServiceConfiguration\n */\n transform(amount: Amount, amountServiceConfiguration: AmountServiceConfiguration) {\n return this.amountService.formatAmount(amount, amountServiceConfiguration);\n }\n}\n","import { AccountNumber } from './account-number.model';\n\nexport function formatAccountNumber(value: AccountNumber): string {\n return `${value.regNo.padStart(4, '0')} ${value.accountNo.replace(/^0+/, '')}`;\n}\n","import { Pipe, PipeTransform } from '@angular/core';\n\nimport { AccountNumber } from './account-number.model';\nimport { formatAccountNumber } from './account-number-service-formatter';\n\n/**\n * Pipe that formats a {@link AccountNumber}-object to a common format.\n */\n@Pipe({\n name: 'accountNumber',\n standalone: true,\n})\nexport class AccountNumberPipe implements PipeTransform {\n /**\n * Formats the {@link AccountNumber} to a common format.\n *\n * @param value the {@link AccountNumber} to format\n */\n transform(value: AccountNumber): string | undefined {\n return formatAccountNumber(value);\n }\n}\n","import { inject, Injectable, LOCALE_ID } from '@angular/core';\n\nimport { KIRBY_EXTENSIONS_LOCALIZATION_TOKEN } from '../di-tokens';\nimport { PhoneNumber } from './phone-number';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class PhoneNumberService {\n private config = inject(KIRBY_EXTENSIONS_LOCALIZATION_TOKEN);\n private locale = inject(LOCALE_ID);\n\n private static chunkUpPhoneNumber(str: string, chunk: number): string {\n return str.match(new RegExp(`.{1,${chunk}}`, 'g'))?.join(' ') ?? '';\n }\n\n formatPhoneNumber(\n phoneNumber: PhoneNumber | string,\n chunk = 2,\n showCountryCode?: boolean\n ): string | undefined {\n const countryCode =\n typeof phoneNumber === 'string' ? this.config.countryCode : phoneNumber.countryCode;\n const number = typeof phoneNumber === 'string' ? phoneNumber : phoneNumber.number;\n\n if (!/^\\d+$/.test(number)) {\n return;\n }\n\n if (showCountryCode === undefined) {\n showCountryCode = !this.locale.match(`${this.config.defaultLang}.*`);\n }\n\n const formattedNumber = PhoneNumberService.chunkUpPhoneNumber(number, chunk);\n\n if (showCountryCode) {\n return `${countryCode} ${formattedNumber}`;\n } else {\n return formattedNumber;\n }\n }\n}\n","import { Pipe, PipeTransform } from '@angular/core';\n\nimport { PhoneNumber } from './phone-number';\nimport { PhoneNumberService } from './phone-number.service';\n\n@Pipe({\n name: 'phoneNumber',\n standalone: true,\n})\nexport class PhoneNumberPipe implements PipeTransform {\n constructor(private phoneNumberService: PhoneNumberService) {}\n\n /**\n * Transforms a phone number, chunked up with spaces between the chunks and the country code in front, if desired.\n *\n * @param phoneNumber A PhoneNumber or a string representation of a phone number\n * @param chunk The chunk size used to split up the phone number with spaces\n * @param showCountryCode Show the country code in front of the phone number. If a string representation is supplied, the KIRBY_EXTENSIONS_LOCALIZATION_TOKEN.countryCode is used.\n */\n transform(\n phoneNumber: PhoneNumber | string,\n chunk = 2,\n showCountryCode?: boolean\n ): string | undefined {\n return this.phoneNumberService.formatPhoneNumber(phoneNumber, chunk, showCountryCode);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1.FormatNumberService","i1.AmountService","i1.PhoneNumberService"],"mappings":";;;;MAAa,WAAW,CAAA;aACN,IAAiB,CAAA,iBAAA,GAAG,YAAY,CAAC;aACjC,IAAkB,CAAA,kBAAA,GAAG,WAAW,CAAC;aACjC,IAAyB,CAAA,yBAAA,GAAG,cAAc,CAAC;aAC3C,IAAiB,CAAA,iBAAA,GAAG,OAAO,CAAC;aAC5B,IAAkB,CAAA,kBAAA,GAAG,UAAU,CAAC;aAChC,IAA6B,CAAA,6BAAA,GAAG,CAAG,EAAA,WAAW,CAAC,iBAAiB,IAAI,WAAW,CAAC,kBAAkB,CAAA,CAAE,CAAC;;;MCJ1G,mCAAmC,GAC9C,IAAI,cAAc,CAAmC,qCAAqC;AAEtF,SAAU,uCAAuC,CACrD,OAA+C,EAAA;IAE/C,OAAO;AACL,QAAA,OAAO,EAAE,mCAAmC;AAC5C,QAAA,UAAU,EAAE,OAAO;KACpB;AACH;;ACRA;;;;AAIG;MACmB,gCAAgC,CAAA;AAAtD,IAAA,WAAA,GAAA;AACU,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,mCAAmC,CAAC;AACpD,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,SAAS,CAAC;;IAIxB,MAAM,CAAC,IAAmB,EAAE,aAAqB,EAAA;QACzD,IAAI,CAAC,IAAI,EAAE;AACT,YAAA,OAAO,EAAE;;AAGX,QAAA,MAAM,IAAI,GAAG,OAAO,IAAI,KAAK,QAAQ,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,GAAG,IAAI;AAE7D,QAAA,MAAM,QA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lB,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,kBAAkB,cAFjB,MAAM,EAAA,CAAA,CAAA;;2FAEP,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAH9B,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE,MAAM;AACnB,iBAAA;;;MCEY,eAAe,CAAA;AAC1B,IAAA,WAAA,CAAoB,kBAAsC,EAAA;QAAtC,IAAkB,CAAA,kBAAA,GAAlB,kBAAkB;;AAEtC;;;;;;AAMG;AACH,IAAA,SAAS,CACP,WAAiC,EACjC,KAAK,GAAG,CAAC,EACT,eAAyB,EAAA;AAEzB,QAAA,OAAO,IAAI,CAAC,kBAAkB,CAAC,iBAAiB,CAAC,WAAW,EAAE,KAAK,EAAE,eAAe,CAAC;;8GAf5E,eAAe,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAAC,kBAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;4GAAf,eAAe,EAAA,YAAA,EAAA,IAAA,EAAA,IAAA,EAAA,aAAA,EAAA,CAAA,CAAA;;2FAAf,eAAe,EAAA,UAAA,EAAA,CAAA;kBAJ3B,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACJ,oBAAA,IAAI,EAAE,aAAa;AACnB,oBAAA,UAAU,EAAE,IAAI;AACjB,iBAAA;;;ACRD;;AAEG;;;;"}
@@ -0,0 +1,42 @@
1
+ import { CommonModule } from '@angular/common';
2
+ import * as i0 from '@angular/core';
3
+ import { Component, Input, HostBinding } from '@angular/core';
4
+ import { CardModule } from '@kirbydesign/designsystem/card';
5
+ import { IconModule } from '@kirbydesign/designsystem/icon';
6
+ import { IonSkeletonText } from '@ionic/angular/standalone';
7
+
8
+ class SkeletonLoaderComponent {
9
+ constructor() {
10
+ /**
11
+ * The theme for the skeleton loader to use for gradient color. Theme is automatically set when used inside a themed kirby-card.
12
+ */
13
+ this.theme = 'light';
14
+ /**
15
+ * The shape of the skeleton loader.
16
+ */
17
+ this.shape = 'rectangle';
18
+ }
19
+ get _cssClass() {
20
+ return [this.theme, this.shape].filter((cssClass) => !!cssClass);
21
+ }
22
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: SkeletonLoaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
23
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.5", type: SkeletonLoaderComponent, isStandalone: true, selector: "kirby-x-skeleton-loader", inputs: { theme: "theme", shape: "shape" }, host: { properties: { "class": "this._cssClass" } }, ngImport: i0, template: "<ion-skeleton-text animated=\"true\"></ion-skeleton-text>\n", styles: [":host{overflow:hidden;display:flex;justify-content:center;align-items:center;height:var(--kirby-font-size-n)}:host.rectangle{border-radius:var(--kirby-border-radius-xs)}:host.circle{border-radius:var(--kirby-border-radius-circle)}:host.pill{border-radius:var(--kirby-border-radius-pill)}:host.dark ion-skeleton-text{background-image:linear-gradient(to right,#ffffff29,#ffffff47,#ffffff29 50%)}:host.light ion-skeleton-text{background-image:linear-gradient(to right,#2828280f,#2828281f,#2828280f 50%)}:host-context(.kirby-color-brightness-white) ion-skeleton-text,:host-context(.kirby-color-brightness-light) ion-skeleton-text{background-image:linear-gradient(to right,#2828280f,#2828281f,#2828280f 50%)}:host-context(.kirby-color-brightness-dark) ion-skeleton-text{background-image:linear-gradient(to right,#ffffff29,#ffffff47,#ffffff29 50%)}ion-skeleton-text{position:relative;margin:0;animation-duration:1.5s;background-clip:border-box}\n"], dependencies: [{ kind: "ngmodule", type: CardModule }, { kind: "ngmodule", type: IconModule }, { kind: "ngmodule", type: CommonModule }, { kind: "component", type: IonSkeletonText, selector: "ion-skeleton-text", inputs: ["animated"] }] }); }
24
+ }
25
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: SkeletonLoaderComponent, decorators: [{
26
+ type: Component,
27
+ args: [{ selector: 'kirby-x-skeleton-loader', standalone: true, imports: [CardModule, IconModule, CommonModule, IonSkeletonText], template: "<ion-skeleton-text animated=\"true\"></ion-skeleton-text>\n", styles: [":host{overflow:hidden;display:flex;justify-content:center;align-items:center;height:var(--kirby-font-size-n)}:host.rectangle{border-radius:var(--kirby-border-radius-xs)}:host.circle{border-radius:var(--kirby-border-radius-circle)}:host.pill{border-radius:var(--kirby-border-radius-pill)}:host.dark ion-skeleton-text{background-image:linear-gradient(to right,#ffffff29,#ffffff47,#ffffff29 50%)}:host.light ion-skeleton-text{background-image:linear-gradient(to right,#2828280f,#2828281f,#2828280f 50%)}:host-context(.kirby-color-brightness-white) ion-skeleton-text,:host-context(.kirby-color-brightness-light) ion-skeleton-text{background-image:linear-gradient(to right,#2828280f,#2828281f,#2828280f 50%)}:host-context(.kirby-color-brightness-dark) ion-skeleton-text{background-image:linear-gradient(to right,#ffffff29,#ffffff47,#ffffff29 50%)}ion-skeleton-text{position:relative;margin:0;animation-duration:1.5s;background-clip:border-box}\n"] }]
28
+ }], propDecorators: { theme: [{
29
+ type: Input
30
+ }], shape: [{
31
+ type: Input
32
+ }], _cssClass: [{
33
+ type: HostBinding,
34
+ args: ['class']
35
+ }] } });
36
+
37
+ /**
38
+ * Generated bundle index. Do not edit.
39
+ */
40
+
41
+ export { SkeletonLoaderComponent };
42
+ //# sourceMappingURL=kirbydesign-extensions-angular-skeleton-loader.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"kirbydesign-extensions-angular-skeleton-loader.mjs","sources":["../../skeleton-loader/src/skeleton-loader.component.ts","../../skeleton-loader/src/skeleton-loader.component.html","../../skeleton-loader/src/kirbydesign-extensions-angular-skeleton-loader.ts"],"sourcesContent":["import { CommonModule } from '@angular/common';\nimport { Component, HostBinding, Input } from '@angular/core';\nimport { CardModule } from '@kirbydesign/designsystem/card';\nimport { IconModule } from '@kirbydesign/designsystem/icon';\nimport { IonSkeletonText } from '@ionic/angular/standalone';\n\n@Component({\n selector: 'kirby-x-skeleton-loader',\n standalone: true,\n imports: [CardModule, IconModule, CommonModule, IonSkeletonText],\n templateUrl: './skeleton-loader.component.html',\n styleUrl: './skeleton-loader.component.scss',\n})\nexport class SkeletonLoaderComponent {\n /**\n * The theme for the skeleton loader to use for gradient color. Theme is automatically set when used inside a themed kirby-card.\n */\n @Input()\n theme: 'light' | 'dark' = 'light';\n\n /**\n * The shape of the skeleton loader.\n */\n @Input()\n shape: 'rectangle' | 'circle' | 'pill' = 'rectangle';\n\n @HostBinding('class')\n get _cssClass() {\n return [this.theme, this.shape].filter((cssClass) => !!cssClass);\n }\n}\n","<ion-skeleton-text animated=\"true\"></ion-skeleton-text>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;MAaa,uBAAuB,CAAA;AAPpC,IAAA,WAAA,GAAA;AAQE;;AAEG;QAEH,IAAK,CAAA,KAAA,GAAqB,OAAO;AAEjC;;AAEG;QAEH,IAAK,CAAA,KAAA,GAAoC,WAAW;AAMrD;AAJC,IAAA,IACI,SAAS,GAAA;QACX,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,QAAQ,CAAC;;8GAfvD,uBAAuB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAAvB,uBAAuB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,yBAAA,EAAA,MAAA,EAAA,EAAA,KAAA,EAAA,OAAA,EAAA,KAAA,EAAA,OAAA,EAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,OAAA,EAAA,gBAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECbpC,6DACA,EDQY,MAAA,EAAA,CAAA,86BAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,UAAU,8BAAE,UAAU,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAE,YAAY,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAE,eAAe,EAAA,QAAA,EAAA,mBAAA,EAAA,MAAA,EAAA,CAAA,UAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;2FAIpD,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBAPnC,SAAS;+BACE,yBAAyB,EAAA,UAAA,EACvB,IAAI,EAAA,OAAA,EACP,CAAC,UAAU,EAAE,UAAU,EAAE,YAAY,EAAE,eAAe,CAAC,EAAA,QAAA,EAAA,6DAAA,EAAA,MAAA,EAAA,CAAA,86BAAA,CAAA,EAAA;8BAShE,KAAK,EAAA,CAAA;sBADJ;gBAOD,KAAK,EAAA,CAAA;sBADJ;gBAIG,SAAS,EAAA,CAAA;sBADZ,WAAW;uBAAC,OAAO;;;AE1BtB;;AAEG;;;;"}
@@ -1,6 +1,8 @@
1
1
  import { EventEmitter } from '@angular/core';
2
+ import { TranslationService } from '@kirbydesign/designsystem/shared';
2
3
  import * as i0 from "@angular/core";
3
4
  export declare class ImageBannerComponent {
5
+ translations: TranslationService;
4
6
  /**
5
7
  * The title placed inside the image banners header.
6
8
  */
@@ -33,8 +35,9 @@ export declare class ImageBannerComponent {
33
35
  * If subscribed to, a dismiss button will be shown. Emitted every time the dismiss button is activated by click and keyboard interaction.
34
36
  */
35
37
  dismissClick: EventEmitter<Event>;
38
+ constructor(translations: TranslationService);
36
39
  bannerClicked(event: Event): void;
37
40
  dismissClicked(event: Event): void;
38
41
  static ɵfac: i0.ɵɵFactoryDeclaration<ImageBannerComponent, never>;
39
- static ɵcmp: i0.ɵɵComponentDeclaration<ImageBannerComponent, "kirby-x-image-banner", never, { "title": { "alias": "title"; "required": false; }; "imagePath": { "alias": "imagePath"; "required": false; }; "bodyText": { "alias": "bodyText"; "required": false; }; "actionButtonText": { "alias": "actionButtonText"; "required": false; }; "externalLink": { "alias": "externalLink"; "required": false; }; "backgroundBlur": { "alias": "backgroundBlur"; "required": false; }; }, { "bannerClick": "bannerClick"; "dismissClick": "dismissClick"; }, never, never, true, never>;
42
+ static ɵcmp: i0.ɵɵComponentDeclaration<ImageBannerComponent, "kirby-x-image-banner", never, { "title": { "alias": "title"; "required": false; }; "imagePath": { "alias": "imagePath"; "required": false; }; "bodyText": { "alias": "bodyText"; "required": false; }; "actionButtonText": { "alias": "actionButtonText"; "required": false; }; "externalLink": { "alias": "externalLink"; "required": false; }; "backgroundBlur": { "alias": "backgroundBlur"; "required": false; }; }, { "bannerClick": "bannerClick"; "dismissClick": "dismissClick"; }, never, ["[title]", "[bodyText]"], true, never>;
40
43
  }
@@ -0,0 +1,2 @@
1
+ import { AccountNumber } from './account-number.model';
2
+ export declare function formatAccountNumber(value: AccountNumber): string;
@@ -0,0 +1,4 @@
1
+ export interface AccountNumber {
2
+ regNo: string;
3
+ accountNo: string;
4
+ }
@@ -0,0 +1,16 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { AccountNumber } from './account-number.model';
3
+ import * as i0 from "@angular/core";
4
+ /**
5
+ * Pipe that formats a {@link AccountNumber}-object to a common format.
6
+ */
7
+ export declare class AccountNumberPipe implements PipeTransform {
8
+ /**
9
+ * Formats the {@link AccountNumber} to a common format.
10
+ *
11
+ * @param value the {@link AccountNumber} to format
12
+ */
13
+ transform(value: AccountNumber): string | undefined;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<AccountNumberPipe, never>;
15
+ static ɵpipe: i0.ɵɵPipeDeclaration<AccountNumberPipe, "accountNumber", true>;
16
+ }
@@ -0,0 +1,3 @@
1
+ export * from './account-number.model';
2
+ export * from './account-number.pipe';
3
+ export * from './account-number-service-formatter';
@@ -0,0 +1,32 @@
1
+ import { Amount } from './amount.model';
2
+ export declare function formatAmount(amount: Amount, amountServiceConfiguration: AmountServiceConfiguration, locale: string, nativeCurrency: string): string;
3
+ export declare function deriveCurrencyCode(config: AmountServiceConfiguration, amount: Amount, nativeCurrency: string): string;
4
+ export declare function deriveConfiguration(configuration: AmountServiceConfiguration): AmountServiceConfiguration;
5
+ export type ShowCurrencyCode = '' | 'alwaysShowCurrency' | 'showForeignCurrency';
6
+ export type CurrencyCodePosition = '' | 'prefix' | 'postfix';
7
+ export interface AmountServiceConfiguration {
8
+ /**
9
+ * - '' - don't output CurrencyCode
10
+ * - 'alwaysShowCurrency' - always shows CurrencyCode, regardless of presentation currency
11
+ * - 'showForeignCurrency' - only show CurrencyCode if it differs from the presentation currency
12
+ */
13
+ showCurrencyCode: ShowCurrencyCode;
14
+ /**
15
+ * The position of the currency code in the formatted amount
16
+ * - 'postfix' - output CurrencyCode after the formatted amount, eg. 1.234,56 EUR
17
+ * - 'prefix' - output CurrencyCode before the formatted amount, eg. DKK 1.234,56
18
+ */
19
+ currencyCodePosition?: CurrencyCodePosition;
20
+ /**
21
+ * A string that represents the format of the number. Learn more about the format here: https://angular.io/api/common/DecimalPipe#parameters
22
+ */
23
+ digitsInfo?: string;
24
+ /**
25
+ * Remove the minus sign from the formatted amount and trim any leading or trailing whitespace.
26
+ */
27
+ stripSign?: boolean;
28
+ /**
29
+ * The string to return if the amount is empty
30
+ */
31
+ returnValueOnEmptyAmount?: string;
32
+ }
@@ -0,0 +1,14 @@
1
+ export interface Amount {
2
+ /**
3
+ * The monetary value
4
+ * @min -999999999
5
+ * @max 999999999
6
+ * @example [100]
7
+ */
8
+ amount: number;
9
+ /**
10
+ * The currency in which the value is denominated
11
+ * @example [DKK]
12
+ */
13
+ currencyCode: string;
14
+ }
@@ -0,0 +1,31 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { Amount } from './amount.model';
3
+ import { AmountService } from './amount.service';
4
+ import { AmountServiceConfiguration } from './amount-service-formatter';
5
+ import * as i0 from "@angular/core";
6
+ /**
7
+ * Configuration object for the amount-pipe. The configuration object can be used to control
8
+ * the formatting of the amount, and can be passed as an argument to the amount-pipe when used on an {@link Amount}.
9
+ * - `showCurrencyCode`: Controls whether the currency code should be displayed or not.
10
+ * - `''`: Don't output currency code
11
+ * - `alwaysShowCurrency`: Always show currency code, regardless of presentation currency
12
+ * - `showForeignCurrency`: Only show currency code if it differs from the presentation currency
13
+ * - `digitsInfo`: A string that represents the format of the number. Learn more about the format here: https://angular.io/api/common/DecimalPipe#parameters
14
+ * - `stripSign`: Controls whether the minus sign should be stripped from a negative amount.
15
+ * - `currencyCodePosition`: Controls the position of the currency code in the formatted amount.
16
+ * - `postfix`: Output currency code after the formatted amount, e.g. 1.234,56 EUR
17
+ * - `prefix`: Output currency code before the formatted amount, e.g. DKK 1.234,56
18
+ */
19
+ export declare class AmountPipe implements PipeTransform {
20
+ private amountService;
21
+ constructor(amountService: AmountService);
22
+ /**
23
+ * Applies the transformation logic, by taking the `amount`-argument, and a configuration object - {@link AmountServiceConfiguration} (or a number of arguments, for backwards compatibility).
24
+ *
25
+ * @param amount the {@link Amount} to configure
26
+ * @param amountServiceConfiguration
27
+ */
28
+ transform(amount: Amount, amountServiceConfiguration: AmountServiceConfiguration): string;
29
+ static ɵfac: i0.ɵɵFactoryDeclaration<AmountPipe, never>;
30
+ static ɵpipe: i0.ɵɵPipeDeclaration<AmountPipe, "amount", true>;
31
+ }
@@ -0,0 +1,18 @@
1
+ import { Amount } from './amount.model';
2
+ import { AmountServiceConfiguration } from './amount-service-formatter';
3
+ import * as i0 from "@angular/core";
4
+ export declare class AmountService {
5
+ private config;
6
+ private locale;
7
+ /**
8
+ * Applies the transformation logic, by taking the `amount`-argument, and a configuration object - {@link AmountServiceConfiguration}
9
+ *
10
+ * The number is always formatted according to Angular LOCALE_ID
11
+ *
12
+ * @param amount the {@link Amount} to configure
13
+ * @param amountServiceConfiguration
14
+ */
15
+ formatAmount(amount: Amount, amountServiceConfiguration: AmountServiceConfiguration): string;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<AmountService, never>;
17
+ static ɵprov: i0.ɵɵInjectableDeclaration<AmountService>;
18
+ }
@@ -0,0 +1,4 @@
1
+ export * from './amount.model';
2
+ export * from './amount.pipe';
3
+ export * from './amount.service';
4
+ export * from './amount-service-formatter';
@@ -0,0 +1,13 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ /**
3
+ * Abstract implementation of pipe that should format dates, and compensate for time-zone offset.
4
+ *
5
+ * This class provides tools for formatting dates (and timestamps) in a time zone
6
+ */
7
+ export declare abstract class AbstractTimezoneCompensatingPipe implements PipeTransform {
8
+ private config;
9
+ private locale;
10
+ abstract transform(value: unknown, ...args: unknown[]): unknown;
11
+ protected format(time: number | Date, formatPattern: string): string;
12
+ private getIntlOptions;
13
+ }
@@ -0,0 +1,8 @@
1
+ export declare class DateFormats {
2
+ static readonly SHORT_DATE_FORMAT = "dd.MM.yyyy";
3
+ static readonly MEDIUM_DATE_FORMAT = "d. MMMM y";
4
+ static readonly MEDIUM_LETTER_DATE_FORMAT = "dd. MMM yyyy";
5
+ static readonly SHORT_TIME_FORMAT = "HH:mm";
6
+ static readonly MEDIUM_TIME_FORMAT = "HH:mm:ss";
7
+ static readonly SHORT_DATE_MEDIUM_TIME_FORMAT: string;
8
+ }
@@ -0,0 +1,11 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { AbstractTimezoneCompensatingPipe } from '../abstract-timezone-compensating.pipe';
3
+ import * as i0 from "@angular/core";
4
+ /**
5
+ * Formats a given timestamp as a date.
6
+ */
7
+ export declare class DateOnlyPipe extends AbstractTimezoneCompensatingPipe implements PipeTransform {
8
+ transform(input: number | Date): string;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<DateOnlyPipe, never>;
10
+ static ɵpipe: i0.ɵɵPipeDeclaration<DateOnlyPipe, "dateOnly", true>;
11
+ }
@@ -0,0 +1,4 @@
1
+ export * from './date-formats';
2
+ export * from './date-only/date-only.pipe';
3
+ export * from './time-only/time-only.pipe';
4
+ export * from './time-or-date/time-or-date.pipe';
@@ -0,0 +1,18 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { AbstractTimezoneCompensatingPipe } from '../abstract-timezone-compensating.pipe';
3
+ import * as i0 from "@angular/core";
4
+ export type TimeOnlyFormat = 'short' | 'medium';
5
+ /**
6
+ * Formats a given timestamp as a time.
7
+ *
8
+ * Timestamps can be formatted as 2 variants:
9
+ * - 'short' being 'HH:mm' (hours and minutes)
10
+ * - 'medium' being 'HH:mm:ss' (as above, but with seconds appended)
11
+ *
12
+ */
13
+ export declare class TimeOnlyPipe extends AbstractTimezoneCompensatingPipe implements PipeTransform {
14
+ transform(input: number | Date, format?: TimeOnlyFormat): string;
15
+ private getFormat;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<TimeOnlyPipe, never>;
17
+ static ɵpipe: i0.ɵɵPipeDeclaration<TimeOnlyPipe, "timeOnly", true>;
18
+ }
@@ -0,0 +1,16 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { AbstractTimezoneCompensatingPipe } from '../abstract-timezone-compensating.pipe';
3
+ import * as i0 from "@angular/core";
4
+ /**
5
+ * Formats a given timestamp so that:
6
+ * - If timestamp is of "today", it's formatted as time with hours and minutes (eg. 23:56)
7
+ * - If timestamp is different from "today", it's formatted as date with "day of month", month and year (eg. 28.02.2020)
8
+ *
9
+ * All formatting and parsing is expect to be handled in "Europe/Copenhagen" time zone and with
10
+ * the locale provided by `LOCALE_ID`.
11
+ */
12
+ export declare class TimeOrDatePipe extends AbstractTimezoneCompensatingPipe implements PipeTransform {
13
+ transform(time: number | Date, showSeconds?: boolean, formatMonth?: 'month-as-digits' | 'month-as-letters'): string;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<TimeOrDatePipe, never>;
15
+ static ɵpipe: i0.ɵɵPipeDeclaration<TimeOrDatePipe, "timeOrDate", true>;
16
+ }
@@ -0,0 +1,28 @@
1
+ import { InjectionToken } from '@angular/core';
2
+ export declare const KIRBY_EXTENSIONS_LOCALIZATION_TOKEN: InjectionToken<KirbyExtensionsLocalizationToken>;
3
+ export declare function provideKirbyExtensionsLocalizationToken(factory: () => KirbyExtensionsLocalizationToken): {
4
+ provide: InjectionToken<KirbyExtensionsLocalizationToken>;
5
+ useFactory: () => KirbyExtensionsLocalizationToken;
6
+ };
7
+ interface KirbyExtensionsLocalizationToken {
8
+ /**
9
+ * @example 'DKK | kr. | EUR'
10
+ */
11
+ nativeCurrency: string;
12
+ /**
13
+ * Default language for the application. Used to determine if the phone number country code should be shown, if not specified as input, based on the locale.
14
+ * @example 'da'
15
+ */
16
+ defaultLang: string;
17
+ /**
18
+ * Default phone country code
19
+ * @example '+45'
20
+ */
21
+ countryCode: string;
22
+ /**
23
+ * Default timezone for the application
24
+ * @example 'Europe/Copenhagen'
25
+ */
26
+ timeZone: string;
27
+ }
28
+ export {};
@@ -0,0 +1,6 @@
1
+ export { TimeOrDatePipe, DateOnlyPipe, TimeOnlyPipe, DateFormats, TimeOnlyFormat, } from './date-time';
2
+ export { FormatNumberPipe, FormatNumberService } from './number';
3
+ export { AmountPipe, Amount, AmountServiceConfiguration, AmountService, formatAmount, } from './amount';
4
+ export { AccountNumberPipe, AccountNumber, formatAccountNumber } from './account-number';
5
+ export { PhoneNumberPipe, PhoneNumber, PhoneNumberService } from './phone-number';
6
+ export { KIRBY_EXTENSIONS_LOCALIZATION_TOKEN, provideKirbyExtensionsLocalizationToken, } from './di-tokens';
@@ -0,0 +1,10 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { FormatNumberService } from './format-number.service';
3
+ import * as i0 from "@angular/core";
4
+ export declare class FormatNumberPipe implements PipeTransform {
5
+ private formatNumberService;
6
+ constructor(formatNumberService: FormatNumberService);
7
+ transform(value: number, digitsInfo?: string): string;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormatNumberPipe, never>;
9
+ static ɵpipe: i0.ɵɵPipeDeclaration<FormatNumberPipe, "formatNumber", true>;
10
+ }
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class FormatNumberService {
3
+ private localeId;
4
+ constructor(localeId: string);
5
+ formatNumber(value: number, digitsInfo: string): string;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormatNumberService, never>;
7
+ static ɵprov: i0.ɵɵInjectableDeclaration<FormatNumberService>;
8
+ }
@@ -0,0 +1,2 @@
1
+ export * from './format-number.pipe';
2
+ export * from './format-number.service';
@@ -0,0 +1,3 @@
1
+ export * from './phone-number';
2
+ export * from './phone-number.pipe';
3
+ export * from './phone-number.service';
@@ -0,0 +1,4 @@
1
+ export interface PhoneNumber {
2
+ countryCode: string;
3
+ number: string;
4
+ }
@@ -0,0 +1,18 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { PhoneNumber } from './phone-number';
3
+ import { PhoneNumberService } from './phone-number.service';
4
+ import * as i0 from "@angular/core";
5
+ export declare class PhoneNumberPipe implements PipeTransform {
6
+ private phoneNumberService;
7
+ constructor(phoneNumberService: PhoneNumberService);
8
+ /**
9
+ * Transforms a phone number, chunked up with spaces between the chunks and the country code in front, if desired.
10
+ *
11
+ * @param phoneNumber A PhoneNumber or a string representation of a phone number
12
+ * @param chunk The chunk size used to split up the phone number with spaces
13
+ * @param showCountryCode Show the country code in front of the phone number. If a string representation is supplied, the KIRBY_EXTENSIONS_LOCALIZATION_TOKEN.countryCode is used.
14
+ */
15
+ transform(phoneNumber: PhoneNumber | string, chunk?: number, showCountryCode?: boolean): string | undefined;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<PhoneNumberPipe, never>;
17
+ static ɵpipe: i0.ɵɵPipeDeclaration<PhoneNumberPipe, "phoneNumber", true>;
18
+ }
@@ -0,0 +1,10 @@
1
+ import { PhoneNumber } from './phone-number';
2
+ import * as i0 from "@angular/core";
3
+ export declare class PhoneNumberService {
4
+ private config;
5
+ private locale;
6
+ private static chunkUpPhoneNumber;
7
+ formatPhoneNumber(phoneNumber: PhoneNumber | string, chunk?: number, showCountryCode?: boolean): string | undefined;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<PhoneNumberService, never>;
9
+ static ɵprov: i0.ɵɵInjectableDeclaration<PhoneNumberService>;
10
+ }
package/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@kirbydesign/extensions-angular",
3
- "version": "1.1.0",
3
+ "version": "1.3.0",
4
4
  "peerDependencies": {
5
- "@angular/common": "^18.0.0",
6
- "@angular/compiler": "^18.0.0",
7
- "@angular/core": "^18.0.0",
8
- "@angular/forms": "^18.0.0",
9
- "@angular/platform-browser": "^18.0.0",
10
- "@angular/platform-browser-dynamic": "^18.0.0",
11
- "@angular/router": "^18.0.0",
5
+ "@angular/common": "^18.0.0 || ^19.0.0",
6
+ "@angular/compiler": "^18.0.0 || ^19.0.0",
7
+ "@angular/core": "^18.0.0 || ^19.0.0",
8
+ "@angular/forms": "^18.0.0 || ^19.0.0",
9
+ "@angular/platform-browser": "^18.0.0 || ^19.0.0",
10
+ "@angular/platform-browser-dynamic": "^18.0.0 || ^19.0.0",
11
+ "@angular/router": "^18.0.0 || ^19.0.0",
12
12
  "@kirbydesign/designsystem": "^10.0.0",
13
13
  "rxjs": "~7.8.0",
14
- "zone.js": "~0.14.0"
14
+ "zone.js": "^0.14.3 || ~0.15.0"
15
15
  },
16
16
  "dependencies": {
17
17
  "tslib": "^2.3.0"
@@ -25,15 +25,19 @@
25
25
  },
26
26
  ".": {
27
27
  "types": "./index.d.ts",
28
- "esm2022": "./esm2022/kirbydesign-extensions-angular.mjs",
29
- "esm": "./esm2022/kirbydesign-extensions-angular.mjs",
30
28
  "default": "./fesm2022/kirbydesign-extensions-angular.mjs"
31
29
  },
32
30
  "./image-banner": {
33
31
  "types": "./image-banner/index.d.ts",
34
- "esm2022": "./esm2022/image-banner/kirbydesign-extensions-angular-image-banner.mjs",
35
- "esm": "./esm2022/image-banner/kirbydesign-extensions-angular-image-banner.mjs",
36
32
  "default": "./fesm2022/kirbydesign-extensions-angular-image-banner.mjs"
33
+ },
34
+ "./localization": {
35
+ "types": "./localization/index.d.ts",
36
+ "default": "./fesm2022/kirbydesign-extensions-angular-localization.mjs"
37
+ },
38
+ "./skeleton-loader": {
39
+ "types": "./skeleton-loader/index.d.ts",
40
+ "default": "./fesm2022/kirbydesign-extensions-angular-skeleton-loader.mjs"
37
41
  }
38
42
  }
39
43
  }
@@ -0,0 +1 @@
1
+ export { SkeletonLoaderComponent } from './skeleton-loader.component';
@@ -0,0 +1,14 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class SkeletonLoaderComponent {
3
+ /**
4
+ * The theme for the skeleton loader to use for gradient color. Theme is automatically set when used inside a themed kirby-card.
5
+ */
6
+ theme: 'light' | 'dark';
7
+ /**
8
+ * The shape of the skeleton loader.
9
+ */
10
+ shape: 'rectangle' | 'circle' | 'pill';
11
+ get _cssClass(): ("light" | "dark" | "rectangle" | "circle" | "pill")[];
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<SkeletonLoaderComponent, never>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<SkeletonLoaderComponent, "kirby-x-skeleton-loader", never, { "theme": { "alias": "theme"; "required": false; }; "shape": { "alias": "shape"; "required": false; }; }, {}, never, never, true, never>;
14
+ }