@gerege-systems/eid-mongolia-sdk 0.29.0 → 0.29.2

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/dist/button.cjs CHANGED
@@ -395,8 +395,8 @@ var T = {
395
395
  mn: {
396
396
  button: "eID-\u044D\u044D\u0440 \u043D\u044D\u0432\u0442\u0440\u044D\u0445",
397
397
  title: "eID-\u044D\u044D\u0440 \u043D\u044D\u0432\u0442\u0440\u044D\u0445",
398
- // Лого «e-ID» гэж бичигддэг тул логотой үед «eID»-г давтахгүй: [лого]-ээр нэвтрэх.
399
- withLogo: ["", "-\u044D\u044D\u0440 \u043D\u044D\u0432\u0442\u0440\u044D\u0445"],
398
+ // Лого «e-ID» гэж бичигддэг тул логотой үед «eID»-г давтахгүй, зураасгүй: [лого] нэвтрэх.
399
+ withLogo: ["", "\u043D\u044D\u0432\u0442\u0440\u044D\u0445"],
400
400
  close: "\u0425\u0430\u0430\u0445",
401
401
  loading: "\u0410\u0447\u0430\u0430\u043B\u0436 \u0431\u0430\u0439\u043D\u0430",
402
402
  qrAlt: "\u041D\u044D\u0432\u0442\u0440\u044D\u0445 QR \u043A\u043E\u0434 \u2014 \u0443\u0442\u0441\u0430\u043D \u0434\u044D\u044D\u0440\u0445 eID Mongolia \u0430\u043F\u043F\u0430\u0430\u0440 \u0443\u043D\u0448\u0443\u0443\u043B\u043D\u0430",
@@ -537,7 +537,6 @@ h2, p, ol { margin: 0; }
537
537
  .btn-sm { width: auto; min-height: 36px; padding: 0 14px; font-size: 0.8125rem; }
538
538
  .trigger { width: auto; }
539
539
  .brand { display: inline-flex; align-items: center; gap: 6px; }
540
- .brand.tight { gap: 2px; }
541
540
  .logo { display: block; flex: none; height: 16px; width: auto; aspect-ratio: 3840 / 1372; fill: var(--_eid-logo); }
542
541
  .trigger.icon-only .logo { height: 12px; }
543
542
  .trigger.icon-only { width: 44px; height: 44px; padding: 0; }
@@ -721,16 +720,16 @@ var EidLoginButton = class extends Base {
721
720
  }
722
721
  this.trigger.replaceChildren(...nodes);
723
722
  this.trigger.classList.toggle("icon-only", iconOnly);
724
- const aria = this.getAttribute("aria-label") || (iconOnly ? text : null);
723
+ const aria = this.getAttribute("aria-label") || (iconOnly || brand ? text : null);
725
724
  if (aria) this.trigger.setAttribute("aria-label", aria);
726
725
  else this.trigger.removeAttribute("aria-label");
727
726
  }
728
- /** Лого + i18n-ийн өмнөх/дараах текст. Лого aria-hidden тул уншигчид sr-only «eID» — нэр нь бүтэн «eID-ээр нэвтрэх». */
727
+ /** Лого + i18n-ийн өмнөх/дараах текст. Лого aria-hidden — дуудагч бүтэн нэрийг aria-label-аар өгнө. */
729
728
  brand(logoAttrs = {}, textAttrs = {}) {
730
729
  const [pre, post] = this.t.withLogo;
731
- const box = el("span", { class: post && !pre ? "brand tight" : "brand" });
730
+ const box = el("span", { class: "brand" });
732
731
  if (pre) box.append(el("span", textAttrs, pre));
733
- box.append(logo(logoAttrs), el("span", { class: "sr-only" }, "eID"));
732
+ box.append(logo(logoAttrs));
734
733
  if (post) box.append(el("span", textAttrs, post));
735
734
  return box;
736
735
  }
@@ -781,7 +780,7 @@ var EidLoginButton = class extends Base {
781
780
  const head = el("div", { class: "head" });
782
781
  const x = el("button", { type: "button", class: "x", "aria-label": this.t.close }, "\xD7");
783
782
  x.addEventListener("click", () => this.close());
784
- const h2 = el("h2", { id: "eid-title" });
783
+ const h2 = el("h2", { id: "eid-title", "aria-label": this.t.title });
785
784
  h2.append(this.brand());
786
785
  head.append(h2, x);
787
786
  this.body = el("div");
package/dist/button.d.cts CHANGED
@@ -75,7 +75,7 @@ declare class EidLoginButton extends Base {
75
75
  attributeChangedCallback(name: string): void;
76
76
  /** Trigger-ийн агуулга: label / icon / variant / aria-label-аас. Хоосон товч хэзээ ч үүсгэхгүй. */
77
77
  private renderTrigger;
78
- /** Лого + i18n-ийн өмнөх/дараах текст. Лого aria-hidden тул уншигчид sr-only «eID» — нэр нь бүтэн «eID-ээр нэвтрэх». */
78
+ /** Лого + i18n-ийн өмнөх/дараах текст. Лого aria-hidden — дуудагч бүтэн нэрийг aria-label-аар өгнө. */
79
79
  private brand;
80
80
  disconnectedCallback(): void;
81
81
  /** Одоогийн бодит схем (`theme` + auto үед хуудас/OS). */
package/dist/button.d.ts CHANGED
@@ -75,7 +75,7 @@ declare class EidLoginButton extends Base {
75
75
  attributeChangedCallback(name: string): void;
76
76
  /** Trigger-ийн агуулга: label / icon / variant / aria-label-аас. Хоосон товч хэзээ ч үүсгэхгүй. */
77
77
  private renderTrigger;
78
- /** Лого + i18n-ийн өмнөх/дараах текст. Лого aria-hidden тул уншигчид sr-only «eID» — нэр нь бүтэн «eID-ээр нэвтрэх». */
78
+ /** Лого + i18n-ийн өмнөх/дараах текст. Лого aria-hidden — дуудагч бүтэн нэрийг aria-label-аар өгнө. */
79
79
  private brand;
80
80
  disconnectedCallback(): void;
81
81
  /** Одоогийн бодит схем (`theme` + auto үед хуудас/OS). */
package/dist/button.js CHANGED
@@ -366,8 +366,8 @@ var T = {
366
366
  mn: {
367
367
  button: "eID-\u044D\u044D\u0440 \u043D\u044D\u0432\u0442\u0440\u044D\u0445",
368
368
  title: "eID-\u044D\u044D\u0440 \u043D\u044D\u0432\u0442\u0440\u044D\u0445",
369
- // Лого «e-ID» гэж бичигддэг тул логотой үед «eID»-г давтахгүй: [лого]-ээр нэвтрэх.
370
- withLogo: ["", "-\u044D\u044D\u0440 \u043D\u044D\u0432\u0442\u0440\u044D\u0445"],
369
+ // Лого «e-ID» гэж бичигддэг тул логотой үед «eID»-г давтахгүй, зураасгүй: [лого] нэвтрэх.
370
+ withLogo: ["", "\u043D\u044D\u0432\u0442\u0440\u044D\u0445"],
371
371
  close: "\u0425\u0430\u0430\u0445",
372
372
  loading: "\u0410\u0447\u0430\u0430\u043B\u0436 \u0431\u0430\u0439\u043D\u0430",
373
373
  qrAlt: "\u041D\u044D\u0432\u0442\u0440\u044D\u0445 QR \u043A\u043E\u0434 \u2014 \u0443\u0442\u0441\u0430\u043D \u0434\u044D\u044D\u0440\u0445 eID Mongolia \u0430\u043F\u043F\u0430\u0430\u0440 \u0443\u043D\u0448\u0443\u0443\u043B\u043D\u0430",
@@ -508,7 +508,6 @@ h2, p, ol { margin: 0; }
508
508
  .btn-sm { width: auto; min-height: 36px; padding: 0 14px; font-size: 0.8125rem; }
509
509
  .trigger { width: auto; }
510
510
  .brand { display: inline-flex; align-items: center; gap: 6px; }
511
- .brand.tight { gap: 2px; }
512
511
  .logo { display: block; flex: none; height: 16px; width: auto; aspect-ratio: 3840 / 1372; fill: var(--_eid-logo); }
513
512
  .trigger.icon-only .logo { height: 12px; }
514
513
  .trigger.icon-only { width: 44px; height: 44px; padding: 0; }
@@ -692,16 +691,16 @@ var EidLoginButton = class extends Base {
692
691
  }
693
692
  this.trigger.replaceChildren(...nodes);
694
693
  this.trigger.classList.toggle("icon-only", iconOnly);
695
- const aria = this.getAttribute("aria-label") || (iconOnly ? text : null);
694
+ const aria = this.getAttribute("aria-label") || (iconOnly || brand ? text : null);
696
695
  if (aria) this.trigger.setAttribute("aria-label", aria);
697
696
  else this.trigger.removeAttribute("aria-label");
698
697
  }
699
- /** Лого + i18n-ийн өмнөх/дараах текст. Лого aria-hidden тул уншигчид sr-only «eID» — нэр нь бүтэн «eID-ээр нэвтрэх». */
698
+ /** Лого + i18n-ийн өмнөх/дараах текст. Лого aria-hidden — дуудагч бүтэн нэрийг aria-label-аар өгнө. */
700
699
  brand(logoAttrs = {}, textAttrs = {}) {
701
700
  const [pre, post] = this.t.withLogo;
702
- const box = el("span", { class: post && !pre ? "brand tight" : "brand" });
701
+ const box = el("span", { class: "brand" });
703
702
  if (pre) box.append(el("span", textAttrs, pre));
704
- box.append(logo(logoAttrs), el("span", { class: "sr-only" }, "eID"));
703
+ box.append(logo(logoAttrs));
705
704
  if (post) box.append(el("span", textAttrs, post));
706
705
  return box;
707
706
  }
@@ -752,7 +751,7 @@ var EidLoginButton = class extends Base {
752
751
  const head = el("div", { class: "head" });
753
752
  const x = el("button", { type: "button", class: "x", "aria-label": this.t.close }, "\xD7");
754
753
  x.addEventListener("click", () => this.close());
755
- const h2 = el("h2", { id: "eid-title" });
754
+ const h2 = el("h2", { id: "eid-title", "aria-label": this.t.title });
756
755
  h2.append(this.brand());
757
756
  head.append(h2, x);
758
757
  this.body = el("div");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gerege-systems/eid-mongolia-sdk",
3
- "version": "0.29.0",
3
+ "version": "0.29.2",
4
4
  "description": "e-ID Mongolia Relying Party SDK — иргэнээр утсаар нь нэвтрэлт ба хууль ёсны цахим гарын үсэг (RP-API v3, Smart-ID нийцтэй).",
5
5
  "license": "MIT",
6
6
  "type": "module",