fds-vue-core 8.6.2 → 8.6.3

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.
@@ -90,7 +90,7 @@ const en = {
90
90
  "FdsPhonenumber.invalidPhone": "Enter a valid phone number",
91
91
  "FdsPhonenumber.noCountryResults": "No country matches your search",
92
92
  "FdsPhonenumber.phoneNumber": "Phone number",
93
- "FdsSsn.invalidSsn": "Enter a valid personal identity number",
93
+ "FdsSsn.invalidSsn": "Enter a valid Swedish personal identity number or coordination number",
94
94
  "FdsSsn.label": "Personal identity number",
95
95
  "FdsSearchSelectPro.loadingMore": "Loading more...",
96
96
  "FdsSearchSelectPro.showMore": "Show more",
@@ -166,7 +166,7 @@ const sv = {
166
166
  "FdsPhonenumber.invalidPhone": "Ange ett giltigt telefonnummer",
167
167
  "FdsPhonenumber.noCountryResults": "Inget land matchar sökningen",
168
168
  "FdsPhonenumber.phoneNumber": "Telefonnummer",
169
- "FdsSsn.invalidSsn": "Ange ett giltigt personnummer",
169
+ "FdsSsn.invalidSsn": "Ange ett giltigt personnummer eller samordningsnummer",
170
170
  "FdsSsn.label": "Personnummer",
171
171
  "FdsSearchSelectPro.loadingMore": "Hämtar fler...",
172
172
  "FdsSearchSelectPro.showMore": "Visa fler",
@@ -10586,7 +10586,7 @@ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
10586
10586
  isInvalid.value ? (vue.openBlock(), vue.createBlock(_sfc_main$P, {
10587
10587
  key: 1,
10588
10588
  name: "alert",
10589
- class: "fill-red-700"
10589
+ class: "fill-red-600"
10590
10590
  })) : vue.createCommentVNode("", true),
10591
10591
  isValid2.value ? (vue.openBlock(), vue.createBlock(_sfc_main$P, {
10592
10592
  key: 2,
@@ -19987,20 +19987,6 @@ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
19987
19987
  };
19988
19988
  }
19989
19989
  });
19990
- const SSN_MASK = "000000000000";
19991
- const SSN_INTERIM_MASK = "XXXXXXXXXXXX";
19992
- const SSN_INTERIM_MASK_OPTIONS = {
19993
- lazy: true,
19994
- definitions: {
19995
- X: /[0-9A-Za-z]/
19996
- }
19997
- };
19998
- function getSsnMask(allowInterimNumber) {
19999
- return allowInterimNumber ? SSN_INTERIM_MASK : SSN_MASK;
20000
- }
20001
- function getSsnMaskOptions(allowInterimNumber) {
20002
- return allowInterimNumber ? SSN_INTERIM_MASK_OPTIONS : { lazy: true };
20003
- }
20004
19990
  var PersonnummerError = class extends Error {
20005
19991
  constructor() {
20006
19992
  super("Invalid swedish personal identity number");
@@ -20303,7 +20289,7 @@ const INVALID_RESULT = {
20303
20289
  };
20304
20290
  const DEFAULT_SSN_VALIDATION_OPTIONS = {
20305
20291
  allowCoordinationNumber: true,
20306
- allowInterimNumber: true
20292
+ allowInterimNumber: false
20307
20293
  };
20308
20294
  function resolveSsnValidationOptions(options) {
20309
20295
  return {
@@ -20335,6 +20321,20 @@ function getSsnValidationState(value, options) {
20335
20321
  }
20336
20322
  return validateSsn(value, options);
20337
20323
  }
20324
+ const SSN_MASK = "000000000000";
20325
+ const SSN_INTERIM_MASK = "XXXXXXXXXXXX";
20326
+ const SSN_INTERIM_MASK_OPTIONS = {
20327
+ lazy: true,
20328
+ definitions: {
20329
+ X: /[0-9A-Za-z]/
20330
+ }
20331
+ };
20332
+ function getSsnMask(allowInterimNumber) {
20333
+ return allowInterimNumber ? SSN_INTERIM_MASK : SSN_MASK;
20334
+ }
20335
+ function getSsnMaskOptions(allowInterimNumber) {
20336
+ return allowInterimNumber ? SSN_INTERIM_MASK_OPTIONS : { lazy: true };
20337
+ }
20338
20338
  const _hoisted_1$4 = { class: "w-full" };
20339
20339
  const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
20340
20340
  ...{
@@ -20588,7 +20588,7 @@ const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
20588
20588
  size: 24,
20589
20589
  class: vue.normalizeClass({
20590
20590
  "fill-gray-500": vue.unref(disabled),
20591
- "fill-red-500": isInvalid.value && !vue.unref(disabled),
20591
+ "fill-red-600": isInvalid.value && !vue.unref(disabled),
20592
20592
  "fill-blue-500": !vue.unref(disabled) && !isInvalid.value
20593
20593
  })
20594
20594
  }, null, 8, ["class"])