@budiauktioner/buildi-primitives 0.1.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.
- package/CHANGELOG.md +51 -0
- package/LICENSE +21 -0
- package/README.md +253 -0
- package/THIRD_PARTY_NOTICES.md +52 -0
- package/dist/banking/index.cjs +6491 -0
- package/dist/banking/index.cjs.map +1 -0
- package/dist/banking/index.d.cts +58 -0
- package/dist/banking/index.d.ts +58 -0
- package/dist/banking/index.js +6464 -0
- package/dist/banking/index.js.map +1 -0
- package/dist/contact/index.cjs +6678 -0
- package/dist/contact/index.cjs.map +1 -0
- package/dist/contact/index.d.cts +709 -0
- package/dist/contact/index.d.ts +709 -0
- package/dist/contact/index.js +6586 -0
- package/dist/contact/index.js.map +1 -0
- package/dist/country-BhD51LDL.d.cts +433 -0
- package/dist/country-p0n0EVQ9.d.ts +433 -0
- package/dist/finance/index.cjs +3592 -0
- package/dist/finance/index.cjs.map +1 -0
- package/dist/finance/index.d.cts +83 -0
- package/dist/finance/index.d.ts +83 -0
- package/dist/finance/index.js +3584 -0
- package/dist/finance/index.js.map +1 -0
- package/dist/geography/index.cjs +4227 -0
- package/dist/geography/index.cjs.map +1 -0
- package/dist/geography/index.d.cts +34 -0
- package/dist/geography/index.d.ts +34 -0
- package/dist/geography/index.js +4202 -0
- package/dist/geography/index.js.map +1 -0
- package/dist/index.cjs +14087 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +75 -0
- package/dist/index.d.ts +75 -0
- package/dist/index.js +13868 -0
- package/dist/index.js.map +1 -0
- package/dist/isin-EeVPpNWu.d.ts +39 -0
- package/dist/isin-ZlQLBVm8.d.cts +39 -0
- package/dist/organization/index.cjs +2376 -0
- package/dist/organization/index.cjs.map +1 -0
- package/dist/organization/index.d.cts +117 -0
- package/dist/organization/index.d.ts +117 -0
- package/dist/organization/index.js +2346 -0
- package/dist/organization/index.js.map +1 -0
- package/dist/person/index.cjs +1144 -0
- package/dist/person/index.cjs.map +1 -0
- package/dist/person/index.d.cts +60 -0
- package/dist/person/index.d.ts +60 -0
- package/dist/person/index.js +1125 -0
- package/dist/person/index.js.map +1 -0
- package/dist/person-full-name-Cmc9Ynuc.d.cts +82 -0
- package/dist/person-full-name-D6Hbsab6.d.ts +82 -0
- package/dist/phone-number-C24--ggy.d.ts +139 -0
- package/dist/phone-number-DZ-YxCQQ.d.cts +139 -0
- package/dist/property/index.cjs +487 -0
- package/dist/property/index.cjs.map +1 -0
- package/dist/property/index.d.cts +56 -0
- package/dist/property/index.d.ts +56 -0
- package/dist/property/index.js +480 -0
- package/dist/property/index.js.map +1 -0
- package/dist/sample-data/index.cjs +12310 -0
- package/dist/sample-data/index.cjs.map +1 -0
- package/dist/sample-data/index.d.cts +260 -0
- package/dist/sample-data/index.d.ts +260 -0
- package/dist/sample-data/index.js +12302 -0
- package/dist/sample-data/index.js.map +1 -0
- package/dist/swedish-address-DNC3ftRF.d.cts +297 -0
- package/dist/swedish-address-GMzjqgxb.d.ts +297 -0
- package/dist/swedish-bank-account-holder-name-BFJ8h1aO.d.cts +45 -0
- package/dist/swedish-bank-account-holder-name-CAAru07F.d.ts +45 -0
- package/dist/swedish-municipality-DlUS7g7h.d.cts +87 -0
- package/dist/swedish-municipality-nDRHYRAd.d.ts +87 -0
- package/dist/swedish-organization-name-D7NvERxA.d.cts +33 -0
- package/dist/swedish-organization-name-rR0Q836C.d.ts +33 -0
- package/dist/swedish-organization-number-Bcj7V_lh.d.cts +130 -0
- package/dist/swedish-organization-number-DM8dpXwR.d.ts +130 -0
- package/dist/swedish-organization-type-CZOdETwG.d.cts +29 -0
- package/dist/swedish-organization-type-CZOdETwG.d.ts +29 -0
- package/dist/swedish-personal-identity-number-BiIg4io3.d.ts +149 -0
- package/dist/swedish-personal-identity-number-Cp9Coz55.d.cts +149 -0
- package/dist/swedish-property-designation-BM-gdd9x.d.ts +46 -0
- package/dist/swedish-property-designation-BaHXufqV.d.cts +46 -0
- package/dist/swedish-sni-code-Ccsswpni.d.ts +53 -0
- package/dist/swedish-sni-code-CuJFyM6l.d.cts +53 -0
- package/dist/swedish-swish-number-CL6Gx_h3.d.cts +397 -0
- package/dist/swedish-swish-number-DDG3mNDg.d.ts +397 -0
- package/dist/text-candidate-qg2bD9PY.d.cts +110 -0
- package/dist/text-candidate-qg2bD9PY.d.ts +110 -0
- package/dist/text-scanning/index.cjs +10414 -0
- package/dist/text-scanning/index.cjs.map +1 -0
- package/dist/text-scanning/index.d.cts +153 -0
- package/dist/text-scanning/index.d.ts +153 -0
- package/dist/text-scanning/index.js +10406 -0
- package/dist/text-scanning/index.js.map +1 -0
- package/dist/validation/index.cjs +83 -0
- package/dist/validation/index.cjs.map +1 -0
- package/dist/validation/index.d.cts +63 -0
- package/dist/validation/index.d.ts +63 -0
- package/dist/validation/index.js +79 -0
- package/dist/validation/index.js.map +1 -0
- package/dist/web/index.cjs +3994 -0
- package/dist/web/index.cjs.map +1 -0
- package/dist/web/index.d.cts +203 -0
- package/dist/web/index.d.ts +203 -0
- package/dist/web/index.js +3987 -0
- package/dist/web/index.js.map +1 -0
- package/package.json +211 -0
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
export { P as PrimitiveTypeInfo, T as TextCandidate, a as TextCandidateCategory, b as TextMatchConfidence } from './text-candidate-qg2bD9PY.cjs';
|
|
2
|
+
export { ValidationErrorReason, ValidationIssue, ValidationResult } from './validation/index.cjs';
|
|
3
|
+
export { RegisteredScanner, TextScanFunction, TextScanResult, TextScanner, TextScannerOptions, defaultTextScanner, registerDefaultTextScanners } from './text-scanning/index.cjs';
|
|
4
|
+
export { C as Continent, a as Country, b as CountryCapital, c as CountryDistance, d as Currency, G as GeoCoordinate, L as Language, T as TextDirection, W as WritingScript, g as getCurrencyForCountry } from './country-BhD51LDL.cjs';
|
|
5
|
+
export { M as MunicipalityDistance, S as SwedishCounty, a as SwedishMunicipality } from './swedish-municipality-DlUS7g7h.cjs';
|
|
6
|
+
export { getAdjacentCounties, getAdjacentMunicipalities, getBorderingCountries, getCountries, getCountyGoogleMapsUrl, getCountyScbUrl, getCountyWikipediaUrl, getMunicipalities, getMunicipalityGoogleMapsUrl, getMunicipalityScbUrl, getMunicipalityWikipediaUrl, maskGeoCoordinate, maskLanguage, maskSwedishCounty, maskSwedishMunicipality } from './geography/index.cjs';
|
|
7
|
+
export { AustrianAddress, AustrianAddressZipCode, BelgianAddress, BelgianAddressZipCode, BritishAddress, BritishAddressZipCode, BulgarianAddress, BulgarianAddressZipCode, ContactAddress, ContactAddressBuilder, CroatianAddress, CroatianAddressZipCode, CypriotAddress, CypriotAddressZipCode, CzechAddress, CzechAddressZipCode, DanishAddress, DanishAddressZipCode, DutchAddress, DutchAddressZipCode, EstonianAddress, EstonianAddressZipCode, FinnishAddress, FinnishAddressZipCode, FrenchAddress, FrenchAddressZipCode, GermanAddress, GermanAddressZipCode, GreekAddress, GreekAddressZipCode, HungarianAddress, HungarianAddressZipCode, IcelandicAddress, IcelandicAddressZipCode, IrishAddress, IrishAddressZipCode, ItalianAddress, ItalianAddressZipCode, LatvianAddress, LatvianAddressZipCode, LiechtensteinAddress, LiechtensteinAddressZipCode, LithuanianAddress, LithuanianAddressZipCode, LuxembourgishAddress, LuxembourgishAddressZipCode, MalteseAddress, MalteseAddressZipCode, NorwegianAddress, NorwegianAddressZipCode, PhoneNumberTestData, PolishAddress, PolishAddressZipCode, PortugueseAddress, PortugueseAddressZipCode, RomanianAddress, RomanianAddressZipCode, SlovakAddress, SlovakAddressZipCode, SlovenianAddress, SlovenianAddressZipCode, SpanishAddress, SpanishAddressZipCode, SwissAddress, SwissAddressZipCode, getBingMapsUrl, getGoogleMapsUrl, getGoogleMapsUrlForAddress, getHittaUrl, getTelUri, maskAddress, maskAddressCity, maskAddressStreet, maskAddressZipCode, maskPhoneNumberDetailed, maskSwedishAddress, maskSwedishAddressZipCode, registerDefaultCountryAddresses } from './contact/index.cjs';
|
|
8
|
+
export { A as Address, a as AddressCity, b as AddressStreet, c as AddressZipCode, C as CountryAddressBase, d as CountryAddressZipCodeBase, I as ICountryAddress, e as ICountryAddressZipCode, S as SwedishAddress, f as SwedishAddressZipCode, m as maskZip, t as tryWrapCountryAddress } from './swedish-address-DNC3ftRF.cjs';
|
|
9
|
+
export { P as PhoneCallingCode, a as PhoneNumber, m as maskPhoneNumber } from './phone-number-DZ-YxCQQ.cjs';
|
|
10
|
+
export { P as PersonFamilyName, a as PersonFullName, b as PersonGivenName } from './person-full-name-Cmc9Ynuc.cjs';
|
|
11
|
+
export { FullNameMaskingOptions, PersonAge, PersonNameMaskingOptions, maskFamilyName, maskFullName, maskGivenName, maskPersonAge } from './person/index.cjs';
|
|
12
|
+
export { P as ParsedPin, a as PinKind, S as SwedishCoordinationNumber, b as SwedishPersonalIdentityNumber, m as maskCoordinationNumber, c as maskPersonalIdentityNumber, p as parsePin, d as pinAgeInYears, e as pinDateOfBirth, f as pinGender, g as pinTo10Digit, h as pinTo12Digit } from './swedish-personal-identity-number-Cp9Coz55.cjs';
|
|
13
|
+
export { S as SwedishOrganizationType } from './swedish-organization-type-CZOdETwG.cjs';
|
|
14
|
+
export { EuOrganizationName, SwedishCfarNumber, SwedishOrganizationIdentifier, SwedishOrganizationIdentifierParser, SwedishOrganizationIdentifierType, getAllabolagExternalUrl, getAllabolagUrl, getBolagsverketUrl, getGleifUrl, maskEuOrganizationName, maskSwedishCfarNumber, toCoordinationNumber, toEuVatNumber, toGleifUrl, toPersonalIdentityNumber, toSwedishOrganizationNumber, toViesUrl } from './organization/index.cjs';
|
|
15
|
+
export { S as SwedishOrganizationName, m as maskSwedishOrganizationName } from './swedish-organization-name-D7NvERxA.cjs';
|
|
16
|
+
export { D as DunsNumber, E as EuVatNumber, L as LeiCode, S as SwedishOrganizationNumber, a as SwedishOrganizationTypeHintResult, m as maskDunsNumber, b as maskEuVatNumber, c as maskLeiCode, d as maskSwedishOrganizationNumber } from './swedish-organization-number-Bcj7V_lh.cjs';
|
|
17
|
+
export { E as ElfCode, S as SwedishSniCode } from './swedish-sni-code-CuJFyM6l.cjs';
|
|
18
|
+
export { EmailAddress, PublicEmailProvider, Url, maskEmailAddress, maskUrl, toMailtoUri } from './web/index.cjs';
|
|
19
|
+
export { I as Isin, m as maskIsin } from './isin-ZlQLBVm8.cjs';
|
|
20
|
+
export { ExchangeRates, IExchangeRates, MoneyAmount, maskMoneyAmount } from './finance/index.cjs';
|
|
21
|
+
export { S as SwedishPropertyDesignation, g as getLantmaterietUrl, a as getPropertyHittaUrl, m as maskSwedishPropertyDesignation } from './swedish-property-designation-BaHXufqV.cjs';
|
|
22
|
+
export { SwedishPropertyTaxationCategory, SwedishPropertyTaxationCode } from './property/index.cjs';
|
|
23
|
+
export { B as Bic, I as Iban, O as OcrReferenceControlType, a as OcrReferenceOptions, S as SwedishBank, b as SwedishBankAccount, c as SwedishBankClearingNumber, d as SwedishBankgiroNumber, e as SwedishOcrReferenceNumber, f as SwedishPostgiroNumber, g as SwedishSwishNumber, h as getBankgirotUrl, m as maskBic, i as maskIban, j as maskSwedishBankAccount, k as maskSwedishBankClearingNumber, l as maskSwedishBankgiroNumber, n as maskSwedishOcrReferenceNumber, o as maskSwedishPostgiroNumber, p as maskSwedishSwishNumber } from './swedish-swish-number-CL6Gx_h3.cjs';
|
|
24
|
+
export { B as BankAccountHolderType, S as SwedishBankAccountHolderName, m as maskSwedishBankAccountHolderName } from './swedish-bank-account-holder-name-BFJ8h1aO.cjs';
|
|
25
|
+
export { SwedishBankingNumber, SwedishBankingNumberParser, SwedishBankingNumberType } from './banking/index.cjs';
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Configurable defaults that control locale-sensitive behaviour across all
|
|
29
|
+
* primitive types. When not explicitly set, values fall back to safe Swedish
|
|
30
|
+
* defaults (the .NET version derives them from `CultureInfo.CurrentCulture`,
|
|
31
|
+
* which has no direct equivalent in standard JavaScript).
|
|
32
|
+
*
|
|
33
|
+
* Set properties at application startup or override per-request as needed.
|
|
34
|
+
*/
|
|
35
|
+
/**
|
|
36
|
+
* Configurable global defaults for locale, UI language, and default country.
|
|
37
|
+
*
|
|
38
|
+
* These mirror the .NET `PrimitivesDefaults` static class. `culture` controls
|
|
39
|
+
* formatting and casing (Swedish-aware character handling for `Å`/`Ä`/`Ö`),
|
|
40
|
+
* `uiCulture` controls display-name language selection (Swedish vs English),
|
|
41
|
+
* and `countryAlpha2Code` is used as the default ISO 3166-1 alpha-2 country
|
|
42
|
+
* when no explicit country is supplied.
|
|
43
|
+
*/
|
|
44
|
+
declare const PrimitivesDefaults: {
|
|
45
|
+
/**
|
|
46
|
+
* BCP-47 locale tag used for casing and number formatting.
|
|
47
|
+
* Defaults to `'sv-SE'`.
|
|
48
|
+
*/
|
|
49
|
+
culture: string;
|
|
50
|
+
/**
|
|
51
|
+
* BCP-47 locale tag used for display-name language selection.
|
|
52
|
+
* Defaults to `'sv-SE'`.
|
|
53
|
+
*/
|
|
54
|
+
uiCulture: string;
|
|
55
|
+
/**
|
|
56
|
+
* Default ISO 3166-1 alpha-2 country code. Used by types like
|
|
57
|
+
* `PhoneNumber` and `SwedishOrganizationIdentifierParser` when no explicit
|
|
58
|
+
* country is supplied. Defaults to `'SE'`.
|
|
59
|
+
*/
|
|
60
|
+
countryAlpha2Code: string;
|
|
61
|
+
/**
|
|
62
|
+
* Default phone calling code (digits only, no `+`). Used by {@link PhoneNumber}
|
|
63
|
+
* for inputs without an explicit country prefix. Defaults to `'46'` (Sweden).
|
|
64
|
+
*/
|
|
65
|
+
defaultCallingCode: string;
|
|
66
|
+
/**
|
|
67
|
+
* `true` when {@link uiCulture} is Swedish (`sv` or `sv-*`).
|
|
68
|
+
* Types use this to select between localized and English display names.
|
|
69
|
+
*/
|
|
70
|
+
readonly useLocalizedDisplayNames: boolean;
|
|
71
|
+
/** Resets all overrides to the package defaults. */
|
|
72
|
+
reset(): void;
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
export { PrimitivesDefaults };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
export { P as PrimitiveTypeInfo, T as TextCandidate, a as TextCandidateCategory, b as TextMatchConfidence } from './text-candidate-qg2bD9PY.js';
|
|
2
|
+
export { ValidationErrorReason, ValidationIssue, ValidationResult } from './validation/index.js';
|
|
3
|
+
export { RegisteredScanner, TextScanFunction, TextScanResult, TextScanner, TextScannerOptions, defaultTextScanner, registerDefaultTextScanners } from './text-scanning/index.js';
|
|
4
|
+
export { C as Continent, a as Country, b as CountryCapital, c as CountryDistance, d as Currency, G as GeoCoordinate, L as Language, T as TextDirection, W as WritingScript, g as getCurrencyForCountry } from './country-p0n0EVQ9.js';
|
|
5
|
+
export { M as MunicipalityDistance, S as SwedishCounty, a as SwedishMunicipality } from './swedish-municipality-nDRHYRAd.js';
|
|
6
|
+
export { getAdjacentCounties, getAdjacentMunicipalities, getBorderingCountries, getCountries, getCountyGoogleMapsUrl, getCountyScbUrl, getCountyWikipediaUrl, getMunicipalities, getMunicipalityGoogleMapsUrl, getMunicipalityScbUrl, getMunicipalityWikipediaUrl, maskGeoCoordinate, maskLanguage, maskSwedishCounty, maskSwedishMunicipality } from './geography/index.js';
|
|
7
|
+
export { AustrianAddress, AustrianAddressZipCode, BelgianAddress, BelgianAddressZipCode, BritishAddress, BritishAddressZipCode, BulgarianAddress, BulgarianAddressZipCode, ContactAddress, ContactAddressBuilder, CroatianAddress, CroatianAddressZipCode, CypriotAddress, CypriotAddressZipCode, CzechAddress, CzechAddressZipCode, DanishAddress, DanishAddressZipCode, DutchAddress, DutchAddressZipCode, EstonianAddress, EstonianAddressZipCode, FinnishAddress, FinnishAddressZipCode, FrenchAddress, FrenchAddressZipCode, GermanAddress, GermanAddressZipCode, GreekAddress, GreekAddressZipCode, HungarianAddress, HungarianAddressZipCode, IcelandicAddress, IcelandicAddressZipCode, IrishAddress, IrishAddressZipCode, ItalianAddress, ItalianAddressZipCode, LatvianAddress, LatvianAddressZipCode, LiechtensteinAddress, LiechtensteinAddressZipCode, LithuanianAddress, LithuanianAddressZipCode, LuxembourgishAddress, LuxembourgishAddressZipCode, MalteseAddress, MalteseAddressZipCode, NorwegianAddress, NorwegianAddressZipCode, PhoneNumberTestData, PolishAddress, PolishAddressZipCode, PortugueseAddress, PortugueseAddressZipCode, RomanianAddress, RomanianAddressZipCode, SlovakAddress, SlovakAddressZipCode, SlovenianAddress, SlovenianAddressZipCode, SpanishAddress, SpanishAddressZipCode, SwissAddress, SwissAddressZipCode, getBingMapsUrl, getGoogleMapsUrl, getGoogleMapsUrlForAddress, getHittaUrl, getTelUri, maskAddress, maskAddressCity, maskAddressStreet, maskAddressZipCode, maskPhoneNumberDetailed, maskSwedishAddress, maskSwedishAddressZipCode, registerDefaultCountryAddresses } from './contact/index.js';
|
|
8
|
+
export { A as Address, a as AddressCity, b as AddressStreet, c as AddressZipCode, C as CountryAddressBase, d as CountryAddressZipCodeBase, I as ICountryAddress, e as ICountryAddressZipCode, S as SwedishAddress, f as SwedishAddressZipCode, m as maskZip, t as tryWrapCountryAddress } from './swedish-address-GMzjqgxb.js';
|
|
9
|
+
export { P as PhoneCallingCode, a as PhoneNumber, m as maskPhoneNumber } from './phone-number-C24--ggy.js';
|
|
10
|
+
export { P as PersonFamilyName, a as PersonFullName, b as PersonGivenName } from './person-full-name-D6Hbsab6.js';
|
|
11
|
+
export { FullNameMaskingOptions, PersonAge, PersonNameMaskingOptions, maskFamilyName, maskFullName, maskGivenName, maskPersonAge } from './person/index.js';
|
|
12
|
+
export { P as ParsedPin, a as PinKind, S as SwedishCoordinationNumber, b as SwedishPersonalIdentityNumber, m as maskCoordinationNumber, c as maskPersonalIdentityNumber, p as parsePin, d as pinAgeInYears, e as pinDateOfBirth, f as pinGender, g as pinTo10Digit, h as pinTo12Digit } from './swedish-personal-identity-number-BiIg4io3.js';
|
|
13
|
+
export { S as SwedishOrganizationType } from './swedish-organization-type-CZOdETwG.js';
|
|
14
|
+
export { EuOrganizationName, SwedishCfarNumber, SwedishOrganizationIdentifier, SwedishOrganizationIdentifierParser, SwedishOrganizationIdentifierType, getAllabolagExternalUrl, getAllabolagUrl, getBolagsverketUrl, getGleifUrl, maskEuOrganizationName, maskSwedishCfarNumber, toCoordinationNumber, toEuVatNumber, toGleifUrl, toPersonalIdentityNumber, toSwedishOrganizationNumber, toViesUrl } from './organization/index.js';
|
|
15
|
+
export { S as SwedishOrganizationName, m as maskSwedishOrganizationName } from './swedish-organization-name-rR0Q836C.js';
|
|
16
|
+
export { D as DunsNumber, E as EuVatNumber, L as LeiCode, S as SwedishOrganizationNumber, a as SwedishOrganizationTypeHintResult, m as maskDunsNumber, b as maskEuVatNumber, c as maskLeiCode, d as maskSwedishOrganizationNumber } from './swedish-organization-number-DM8dpXwR.js';
|
|
17
|
+
export { E as ElfCode, S as SwedishSniCode } from './swedish-sni-code-Ccsswpni.js';
|
|
18
|
+
export { EmailAddress, PublicEmailProvider, Url, maskEmailAddress, maskUrl, toMailtoUri } from './web/index.js';
|
|
19
|
+
export { I as Isin, m as maskIsin } from './isin-EeVPpNWu.js';
|
|
20
|
+
export { ExchangeRates, IExchangeRates, MoneyAmount, maskMoneyAmount } from './finance/index.js';
|
|
21
|
+
export { S as SwedishPropertyDesignation, g as getLantmaterietUrl, a as getPropertyHittaUrl, m as maskSwedishPropertyDesignation } from './swedish-property-designation-BM-gdd9x.js';
|
|
22
|
+
export { SwedishPropertyTaxationCategory, SwedishPropertyTaxationCode } from './property/index.js';
|
|
23
|
+
export { B as Bic, I as Iban, O as OcrReferenceControlType, a as OcrReferenceOptions, S as SwedishBank, b as SwedishBankAccount, c as SwedishBankClearingNumber, d as SwedishBankgiroNumber, e as SwedishOcrReferenceNumber, f as SwedishPostgiroNumber, g as SwedishSwishNumber, h as getBankgirotUrl, m as maskBic, i as maskIban, j as maskSwedishBankAccount, k as maskSwedishBankClearingNumber, l as maskSwedishBankgiroNumber, n as maskSwedishOcrReferenceNumber, o as maskSwedishPostgiroNumber, p as maskSwedishSwishNumber } from './swedish-swish-number-DDG3mNDg.js';
|
|
24
|
+
export { B as BankAccountHolderType, S as SwedishBankAccountHolderName, m as maskSwedishBankAccountHolderName } from './swedish-bank-account-holder-name-CAAru07F.js';
|
|
25
|
+
export { SwedishBankingNumber, SwedishBankingNumberParser, SwedishBankingNumberType } from './banking/index.js';
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Configurable defaults that control locale-sensitive behaviour across all
|
|
29
|
+
* primitive types. When not explicitly set, values fall back to safe Swedish
|
|
30
|
+
* defaults (the .NET version derives them from `CultureInfo.CurrentCulture`,
|
|
31
|
+
* which has no direct equivalent in standard JavaScript).
|
|
32
|
+
*
|
|
33
|
+
* Set properties at application startup or override per-request as needed.
|
|
34
|
+
*/
|
|
35
|
+
/**
|
|
36
|
+
* Configurable global defaults for locale, UI language, and default country.
|
|
37
|
+
*
|
|
38
|
+
* These mirror the .NET `PrimitivesDefaults` static class. `culture` controls
|
|
39
|
+
* formatting and casing (Swedish-aware character handling for `Å`/`Ä`/`Ö`),
|
|
40
|
+
* `uiCulture` controls display-name language selection (Swedish vs English),
|
|
41
|
+
* and `countryAlpha2Code` is used as the default ISO 3166-1 alpha-2 country
|
|
42
|
+
* when no explicit country is supplied.
|
|
43
|
+
*/
|
|
44
|
+
declare const PrimitivesDefaults: {
|
|
45
|
+
/**
|
|
46
|
+
* BCP-47 locale tag used for casing and number formatting.
|
|
47
|
+
* Defaults to `'sv-SE'`.
|
|
48
|
+
*/
|
|
49
|
+
culture: string;
|
|
50
|
+
/**
|
|
51
|
+
* BCP-47 locale tag used for display-name language selection.
|
|
52
|
+
* Defaults to `'sv-SE'`.
|
|
53
|
+
*/
|
|
54
|
+
uiCulture: string;
|
|
55
|
+
/**
|
|
56
|
+
* Default ISO 3166-1 alpha-2 country code. Used by types like
|
|
57
|
+
* `PhoneNumber` and `SwedishOrganizationIdentifierParser` when no explicit
|
|
58
|
+
* country is supplied. Defaults to `'SE'`.
|
|
59
|
+
*/
|
|
60
|
+
countryAlpha2Code: string;
|
|
61
|
+
/**
|
|
62
|
+
* Default phone calling code (digits only, no `+`). Used by {@link PhoneNumber}
|
|
63
|
+
* for inputs without an explicit country prefix. Defaults to `'46'` (Sweden).
|
|
64
|
+
*/
|
|
65
|
+
defaultCallingCode: string;
|
|
66
|
+
/**
|
|
67
|
+
* `true` when {@link uiCulture} is Swedish (`sv` or `sv-*`).
|
|
68
|
+
* Types use this to select between localized and English display names.
|
|
69
|
+
*/
|
|
70
|
+
readonly useLocalizedDisplayNames: boolean;
|
|
71
|
+
/** Resets all overrides to the package defaults. */
|
|
72
|
+
reset(): void;
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
export { PrimitivesDefaults };
|