@cnamts/synapse 0.0.6-alpha → 0.0.7-alpha

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 (36) hide show
  1. package/dist/design-system-v3.d.ts +8 -6
  2. package/dist/design-system-v3.js +19 -16
  3. package/dist/design-system-v3.umd.cjs +4 -4
  4. package/dist/style.css +1 -1
  5. package/package.json +1 -1
  6. package/src/components/BackBtn/BackBtn.stories.ts +4 -1
  7. package/src/components/BackToTopBtn/BackToTopBtn.stories.ts +3 -3
  8. package/src/components/CookieBanner/CookieBanner.stories.ts +2 -0
  9. package/src/components/CopyBtn/CopyBtn.stories.ts +5 -2
  10. package/src/components/Customs/SyBtnSelect/SyBtnSelect.stories.ts +11 -51
  11. package/src/components/Customs/SyInputSelect/SyInputSelect.mdx +4 -1
  12. package/src/components/Customs/SyInputSelect/SyInputSelect.stories.ts +19 -7
  13. package/src/components/Customs/SySelect/SySelect.mdx +1 -2
  14. package/src/components/Customs/SySelect/SySelect.stories.ts +0 -2
  15. package/src/components/DownloadBtn/DownloadBtn.mdx +3 -4
  16. package/src/components/DownloadBtn/DownloadBtn.stories.ts +20 -21
  17. package/src/components/ErrorPage/ErrorPage.vue +1 -1
  18. package/src/components/FooterBar/FooterBar.vue +6 -2
  19. package/src/components/FranceConnectBtn/FranceConnectBtn.stories.ts +2 -1
  20. package/src/components/HeaderBar/HeaderBar.stories.ts +19 -12
  21. package/src/components/HeaderBar/HeaderBar.vue +8 -3
  22. package/src/components/HeaderBar/HeaderBurgerMenu/HeaderBurgerMenu.vue +1 -0
  23. package/src/components/HeaderNavigationBar/HeaderNavigationBar.stories.ts +104 -32
  24. package/src/components/HeaderToolbar/HeaderToolbar.vue +23 -1
  25. package/src/components/NirField/NirField.mdx +1 -4
  26. package/src/components/NirField/NirField.stories.ts +65 -12
  27. package/src/components/NirField/NirField.vue +5 -2
  28. package/src/components/NirField/tests/NirField.spec.ts +1 -0
  29. package/src/components/PageContainer/PageContainer.stories.ts +5 -5
  30. package/src/components/PageContainer/PageContainer.vue +9 -4
  31. package/src/components/PageContainer/tests/PageContainer.spec.ts +1 -1
  32. package/src/components/SocialMediaLinks/SocialMediaLinks.vue +7 -1
  33. package/src/components/SocialMediaLinks/tests/__snapshots__/SocialMediaLinks.spec.ts.snap +2 -2
  34. package/src/components/SubHeader/SubHeader.stories.ts +6 -3
  35. package/src/components/SyAlert/SyAlert.vue +7 -0
  36. package/src/components/index.ts +1 -0
@@ -166,6 +166,7 @@ declare type __VLS_Props_20 = CustomizableOptions & {
166
166
  numberLabel?: string;
167
167
  keyLabel?: string;
168
168
  displayKey?: boolean;
169
+ showSuccessMessages?: boolean;
169
170
  customNumberRules?: any;
170
171
  customKeyRules?: any;
171
172
  };
@@ -177,8 +178,8 @@ declare type __VLS_Props_21 = CustomizableOptions & {
177
178
  };
178
179
 
179
180
  declare type __VLS_Props_22 = {
180
- size?: 'xl' | 'l' | 'm' | 's';
181
- spacing?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
181
+ size?: 'xl' | 'lg' | 'md' | 'sm' | 'xs';
182
+ spacing?: 'xl' | 'lg' | 'md' | 'sm' | 'xs';
182
183
  color?: string;
183
184
  };
184
185
 
@@ -1304,6 +1305,7 @@ keyTooltip: string;
1304
1305
  numberLabel: string;
1305
1306
  keyLabel: string;
1306
1307
  displayKey: boolean;
1308
+ showSuccessMessages: boolean;
1307
1309
  customNumberRules: any;
1308
1310
  customKeyRules: any;
1309
1311
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>, {
@@ -1340,7 +1342,7 @@ contentColor: string;
1340
1342
  smallCloseBtn: ComputedRef<boolean>;
1341
1343
  isVertical: ComputedRef<boolean>;
1342
1344
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_21> & Readonly<{}>, {
1343
- rounded: true | 0 | 1 | 2 | 3 | 4 | "circle" | "pill" | "xl" | "xs" | "sm" | "lg" | "shaped";
1345
+ rounded: true | 0 | 1 | 2 | 3 | 4 | "circle" | "pill" | "xl" | "lg" | "sm" | "xs" | "shaped";
1344
1346
  bottom: boolean;
1345
1347
  closeBtnText: string;
1346
1348
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>, {
@@ -1362,8 +1364,8 @@ spacingClass: ComputedRef<string>;
1362
1364
  containerSize: ComputedRef<number>;
1363
1365
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_22> & Readonly<{}>, {
1364
1366
  color: string;
1365
- size: "s" | "xl" | "l" | "m";
1366
- spacing: "xl" | "xs" | "sm" | "md" | "lg";
1367
+ size: "xl" | "lg" | "md" | "sm" | "xs";
1368
+ spacing: "xl" | "lg" | "md" | "sm" | "xs";
1367
1369
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>, {
1368
1370
  default?(_: {}): any;
1369
1371
  }>;
@@ -1881,7 +1883,7 @@ export declare function useFieldValidation(): {
1881
1883
  }>) => ValidationRule[];
1882
1884
  };
1883
1885
 
1884
- declare function useNotificationService(): {
1886
+ export declare function useNotificationService(): {
1885
1887
  notificationQueue: Ref< {
1886
1888
  id: string;
1887
1889
  message: string;
@@ -116,7 +116,7 @@ const y1 = /* @__PURE__ */ H({
116
116
  for (const [t, l] of e)
117
117
  n[t] = l;
118
118
  return n;
119
- }, q0 = /* @__PURE__ */ z(y1, [["__scopeId", "data-v-26444a7a"]]), k1 = {
119
+ }, q0 = /* @__PURE__ */ z(y1, [["__scopeId", "data-v-d21449f5"]]), k1 = {
120
120
  label: "Retour"
121
121
  }, w1 = /* @__PURE__ */ H({
122
122
  __name: "BackBtn",
@@ -1565,7 +1565,7 @@ const S2 = {
1565
1565
  }, I2 = /* @__PURE__ */ H({
1566
1566
  __name: "PageContainer",
1567
1567
  props: {
1568
- size: { default: "xl" },
1568
+ size: { default: void 0 },
1569
1569
  spacing: { default: void 0 },
1570
1570
  color: { default: "transparent" }
1571
1571
  },
@@ -1582,7 +1582,7 @@ const S2 = {
1582
1582
  md: 800,
1583
1583
  lg: 1280,
1584
1584
  xl: 1712
1585
- }, i = f(() => n.spacing ? `py-10 ${l[n.spacing]}` : `py-10 ${l[t.name.value]}`), s = f(() => o[t.name.value] ?? o[n.size ?? "xl"]);
1585
+ }, i = f(() => n.spacing ? `py-10 ${l[n.spacing]}` : `py-10 ${l[t.name.value]}`), s = f(() => n.size ? o[n.size] : o[t.name.value] ?? o.xl);
1586
1586
  return e({
1587
1587
  spacingClass: i,
1588
1588
  containerSize: s
@@ -1600,7 +1600,7 @@ const S2 = {
1600
1600
  }, 8, ["width", "color"])
1601
1601
  ], 2));
1602
1602
  }
1603
- }), B2 = /* @__PURE__ */ z(I2, [["__scopeId", "data-v-955c6758"]]), T2 = {
1603
+ }), B2 = /* @__PURE__ */ z(I2, [["__scopeId", "data-v-a1092a88"]]), T2 = {
1604
1604
  key: 0,
1605
1605
  class: "vd-code text-primary mb-4"
1606
1606
  }, O2 = { class: "d-sr-only" }, H2 = {
@@ -1619,7 +1619,7 @@ const S2 = {
1619
1619
  hideBtn: { type: Boolean, default: !1 }
1620
1620
  },
1621
1621
  setup(a) {
1622
- return (e, n) => (c(), L(B2, { size: "l" }, {
1622
+ return (e, n) => (c(), L(B2, { size: "md" }, {
1623
1623
  default: d(() => [
1624
1624
  M(yt, {
1625
1625
  elevation: 0,
@@ -1680,7 +1680,7 @@ const S2 = {
1680
1680
  _: 3
1681
1681
  }));
1682
1682
  }
1683
- }), va = /* @__PURE__ */ z(z2, [["__scopeId", "data-v-8c79b790"]]);
1683
+ }), va = /* @__PURE__ */ z(z2, [["__scopeId", "data-v-8a08901d"]]);
1684
1684
  /*!
1685
1685
  * vue-router v4.5.0
1686
1686
  * (c) 2024 Eduardo San Martin Morote
@@ -2305,7 +2305,7 @@ const en = ["fill", "aria-label", "width", "height", "viewBox", "aria-hidden"],
2305
2305
  }
2306
2306
  }), ln = {
2307
2307
  followUs: "Suivez-nous :"
2308
- }, rn = { class: "d-flex flex-column" }, sn = { class: "vd-social-media-links-label text-subtitle-2 text--primary" }, cn = { class: "d-flex max-width-none" }, un = /* @__PURE__ */ H({
2308
+ }, rn = { class: "d-flex flex-column" }, sn = { class: "vd-social-media-links-label text-subtitle-2 text--primary" }, cn = { class: "vd-social-media-links-content d-flex max-width-none" }, un = /* @__PURE__ */ H({
2309
2309
  __name: "SocialMediaLinks",
2310
2310
  props: {
2311
2311
  links: {
@@ -2345,7 +2345,7 @@ const en = ["fill", "aria-label", "width", "height", "viewBox", "aria-hidden"],
2345
2345
  ])
2346
2346
  ]));
2347
2347
  }
2348
- }), dn = /* @__PURE__ */ z(un, [["__scopeId", "data-v-82e1e286"]]), ot = {
2348
+ }), dn = /* @__PURE__ */ z(un, [["__scopeId", "data-v-14404215"]]), ot = {
2349
2349
  "non-compliant": "non-compliant",
2350
2350
  "partially-compliant": "partially-compliant",
2351
2351
  "fully-compliant": "fully-compliant"
@@ -2536,7 +2536,7 @@ const en = ["fill", "aria-label", "width", "height", "viewBox", "aria-hidden"],
2536
2536
  _: 3
2537
2537
  }, 16, ["color", "class"]));
2538
2538
  }
2539
- }), Q0 = /* @__PURE__ */ z(gn, [["__scopeId", "data-v-6d7fdd14"]]), Rt = {
2539
+ }), Q0 = /* @__PURE__ */ z(gn, [["__scopeId", "data-v-85a79e6b"]]), Rt = {
2540
2540
  btnLabel: (a) => `S’identifier avec FranceConnect${a ? "+" : ""}`,
2541
2541
  infoLinkLabel: (a) => `Qu’est-ce que FranceConnect${a ? "+" : ""} ?`
2542
2542
  }, yn = ["href", "aria-label"], kn = ["viewBox", "width"], wn = ["fill"], Ln = ["fill"], Mn = ["href"], _n = /* @__PURE__ */ H({
@@ -2854,7 +2854,7 @@ const jn = {
2854
2854
  ], 4)
2855
2855
  ], 4));
2856
2856
  }
2857
- }), Gn = /* @__PURE__ */ z(Wn, [["__scopeId", "data-v-0b978951"]]), Ke = {
2857
+ }), Gn = /* @__PURE__ */ z(Wn, [["__scopeId", "data-v-b4466b1f"]]), Ke = {
2858
2858
  closeMenu: "Fermer le menu",
2859
2859
  openMenu: "Ouvrir le menu"
2860
2860
  }, Yn = ["aria-label", "title"], Jn = /* @__PURE__ */ H({
@@ -2969,7 +2969,8 @@ const Qn = ["aria-label"], Xn = {
2969
2969
  return E && E(ct(h)), (k, T) => (c(), g("div", {
2970
2970
  role: "dialog",
2971
2971
  "aria-modal": "true",
2972
- "aria-label": u(Pt).mainMenu
2972
+ "aria-label": u(Pt).mainMenu,
2973
+ class: "menu mr-4"
2973
2974
  }, [
2974
2975
  w("div", {
2975
2976
  ref_key: "menuBtnWrapper",
@@ -3019,7 +3020,7 @@ const Qn = ["aria-label"], Xn = {
3019
3020
  ]))
3020
3021
  ], 8, Qn));
3021
3022
  }
3022
- }), no = /* @__PURE__ */ z(ao, [["__scopeId", "data-v-63b844d1"]]), oo = {}, lo = { class: "header-menu-item" };
3023
+ }), no = /* @__PURE__ */ z(ao, [["__scopeId", "data-v-78aeada6"]]), oo = {}, lo = { class: "header-menu-item" };
3023
3024
  function ro(a, e) {
3024
3025
  return c(), g("li", lo, [
3025
3026
  V(a.$slots, "default", {}, void 0, !0)
@@ -3530,7 +3531,7 @@ const io = /* @__PURE__ */ z(oo, [["render", ro], ["__scopeId", "data-v-753dd5aa
3530
3531
  ])
3531
3532
  ]));
3532
3533
  }
3533
- }), ar = /* @__PURE__ */ z(xo, [["__scopeId", "data-v-1708d64a"]]), Io = {
3534
+ }), ar = /* @__PURE__ */ z(xo, [["__scopeId", "data-v-469c119a"]]), Io = {
3534
3535
  label: "Choix de la langue. Actuellement"
3535
3536
  }, Bo = {
3536
3537
  aa: {
@@ -4928,6 +4929,7 @@ const Ue = {
4928
4929
  numberLabel: { default: "Numéro de sécurité sociale" },
4929
4930
  keyLabel: { default: "Clé" },
4930
4931
  displayKey: { type: Boolean, default: !0 },
4932
+ showSuccessMessages: { type: Boolean, default: !1 },
4931
4933
  customNumberRules: { default: [] },
4932
4934
  customKeyRules: { default: [] }
4933
4935
  },
@@ -5027,13 +5029,13 @@ const Ue = {
5027
5029
  M(ta, {
5028
5030
  ref: "vInput",
5029
5031
  class: K([{
5030
- "v-messages__message--success": y.value.length > 0,
5032
+ "v-messages__message--success": y.value.length > 0 && t.showSuccessMessages,
5031
5033
  "v-messages__message--error": p.value.length > 0
5032
5034
  }, "vd-nir-field__fields-wrapper multi-line"]),
5033
5035
  "error-messages": p.value,
5034
5036
  label: B.numberLabel,
5035
5037
  "max-errors": 3,
5036
- messages: y.value,
5038
+ messages: t.showSuccessMessages ? y.value : [],
5037
5039
  "model-value": [s.value, r.value],
5038
5040
  "validate-on": "blur lazy"
5039
5041
  }, {
@@ -5127,7 +5129,7 @@ const Ue = {
5127
5129
  }, 8, ["class", "error-messages", "label", "messages", "model-value"])
5128
5130
  ]));
5129
5131
  }
5130
- }), cr = /* @__PURE__ */ z(wl, [["__scopeId", "data-v-53a042d6"]]), ge = $([]);
5132
+ }), cr = /* @__PURE__ */ z(wl, [["__scopeId", "data-v-a1b2f672"]]), ge = $([]);
5131
5133
  function Va() {
5132
5134
  return {
5133
5135
  notificationQueue: ge,
@@ -6280,5 +6282,6 @@ export {
6280
6282
  pl as computeNIRKey,
6281
6283
  fl as isNIRKeyValid,
6282
6284
  ol as useFieldValidation,
6285
+ Va as useNotificationService,
6283
6286
  ma as useWidthable
6284
6287
  };