@magmonium/one 0.4.28 → 0.4.30

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 (127) hide show
  1. package/assets/i18n/af.json +1 -0
  2. package/assets/i18n/am.json +1 -0
  3. package/assets/i18n/ar.json +1 -0
  4. package/assets/i18n/as.json +1 -0
  5. package/assets/i18n/az.json +1 -0
  6. package/assets/i18n/ba.json +1 -0
  7. package/assets/i18n/be.json +1 -0
  8. package/assets/i18n/bg.json +1 -0
  9. package/assets/i18n/bn.json +1 -0
  10. package/assets/i18n/br.json +1 -0
  11. package/assets/i18n/bs.json +1 -0
  12. package/assets/i18n/ca.json +1 -0
  13. package/assets/i18n/ceb.json +1 -0
  14. package/assets/i18n/cnr.json +1 -0
  15. package/assets/i18n/co.json +1 -0
  16. package/assets/i18n/cs.json +1 -0
  17. package/assets/i18n/cy.json +1 -0
  18. package/assets/i18n/da.json +1 -0
  19. package/assets/i18n/de.json +1 -0
  20. package/assets/i18n/doi.json +1 -0
  21. package/assets/i18n/el.json +1 -0
  22. package/assets/i18n/eo.json +1 -0
  23. package/assets/i18n/es.json +2 -1
  24. package/assets/i18n/et.json +1 -0
  25. package/assets/i18n/eu.json +1 -0
  26. package/assets/i18n/fa.json +1 -0
  27. package/assets/i18n/fi.json +1 -0
  28. package/assets/i18n/fr.json +1 -0
  29. package/assets/i18n/fy.json +1 -0
  30. package/assets/i18n/ga.json +1 -0
  31. package/assets/i18n/gd.json +1 -0
  32. package/assets/i18n/gl.json +1 -0
  33. package/assets/i18n/gu.json +1 -0
  34. package/assets/i18n/ha.json +1 -0
  35. package/assets/i18n/haw.json +1 -0
  36. package/assets/i18n/he.json +1 -0
  37. package/assets/i18n/hi.json +2 -1
  38. package/assets/i18n/hmn.json +1 -0
  39. package/assets/i18n/hr.json +1 -0
  40. package/assets/i18n/hu.json +1 -0
  41. package/assets/i18n/hy.json +1 -0
  42. package/assets/i18n/id.json +1 -0
  43. package/assets/i18n/ig.json +1 -0
  44. package/assets/i18n/ilo.json +1 -0
  45. package/assets/i18n/is.json +1 -0
  46. package/assets/i18n/it.json +1 -0
  47. package/assets/i18n/iw.json +1 -0
  48. package/assets/i18n/ja.json +1 -0
  49. package/assets/i18n/jw.json +1 -0
  50. package/assets/i18n/ka.json +1 -0
  51. package/assets/i18n/kk.json +1 -0
  52. package/assets/i18n/km.json +1 -0
  53. package/assets/i18n/kn.json +1 -0
  54. package/assets/i18n/ko.json +1 -0
  55. package/assets/i18n/kok.json +1 -0
  56. package/assets/i18n/ku.json +1 -0
  57. package/assets/i18n/ky.json +1 -0
  58. package/assets/i18n/la.json +1 -0
  59. package/assets/i18n/lb.json +1 -0
  60. package/assets/i18n/lo.json +1 -0
  61. package/assets/i18n/lt.json +1 -0
  62. package/assets/i18n/lv.json +1 -0
  63. package/assets/i18n/mai.json +1 -0
  64. package/assets/i18n/mg.json +1 -0
  65. package/assets/i18n/mi.json +1 -0
  66. package/assets/i18n/mk.json +1 -0
  67. package/assets/i18n/ml.json +1 -0
  68. package/assets/i18n/mn.json +1 -0
  69. package/assets/i18n/mr.json +1 -0
  70. package/assets/i18n/ms.json +1 -0
  71. package/assets/i18n/mt.json +1 -0
  72. package/assets/i18n/my.json +1 -0
  73. package/assets/i18n/ne.json +1 -0
  74. package/assets/i18n/nl.json +1 -0
  75. package/assets/i18n/no.json +1 -0
  76. package/assets/i18n/ny.json +1 -0
  77. package/assets/i18n/or.json +1 -0
  78. package/assets/i18n/pa.json +1 -0
  79. package/assets/i18n/pl.json +1 -0
  80. package/assets/i18n/ps.json +1 -0
  81. package/assets/i18n/pt.json +1 -0
  82. package/assets/i18n/ro.json +1 -0
  83. package/assets/i18n/ru.json +1 -0
  84. package/assets/i18n/sa.json +1 -0
  85. package/assets/i18n/sat.json +1 -0
  86. package/assets/i18n/sd.json +1 -0
  87. package/assets/i18n/si.json +1 -0
  88. package/assets/i18n/sk.json +1 -0
  89. package/assets/i18n/sl.json +1 -0
  90. package/assets/i18n/sm.json +1 -0
  91. package/assets/i18n/sn.json +1 -0
  92. package/assets/i18n/so.json +1 -0
  93. package/assets/i18n/sq.json +1 -0
  94. package/assets/i18n/sr.json +1 -0
  95. package/assets/i18n/st.json +1 -0
  96. package/assets/i18n/su.json +1 -0
  97. package/assets/i18n/sv.json +1 -0
  98. package/assets/i18n/sw.json +1 -0
  99. package/assets/i18n/ta.json +1 -0
  100. package/assets/i18n/te.json +1 -0
  101. package/assets/i18n/tg.json +1 -0
  102. package/assets/i18n/th.json +1 -0
  103. package/assets/i18n/tl.json +1 -0
  104. package/assets/i18n/tr.json +1 -0
  105. package/assets/i18n/uk.json +1 -0
  106. package/assets/i18n/ur.json +1 -0
  107. package/assets/i18n/uz.json +1 -0
  108. package/assets/i18n/vi.json +1 -0
  109. package/assets/i18n/xh.json +1 -0
  110. package/assets/i18n/yi.json +1 -0
  111. package/assets/i18n/yo.json +1 -0
  112. package/assets/i18n/zh.json +1 -0
  113. package/assets/i18n/zu.json +1 -0
  114. package/fesm2022/{magmonium-one-image-editor-C2cKCbhY.mjs → magmonium-one-image-editor-QPOy7XQt.mjs} +2 -2
  115. package/fesm2022/{magmonium-one-image-editor-C2cKCbhY.mjs.map → magmonium-one-image-editor-QPOy7XQt.mjs.map} +1 -1
  116. package/fesm2022/{magmonium-one-magmonium-one-DERXXaMX.mjs → magmonium-one-magmonium-one-BTi-rHpF.mjs} +36 -22
  117. package/fesm2022/magmonium-one-magmonium-one-BTi-rHpF.mjs.map +1 -0
  118. package/fesm2022/{magmonium-one-otp-DG6yeYVx.mjs → magmonium-one-otp-BcNCgGpz.mjs} +2 -2
  119. package/fesm2022/{magmonium-one-otp-DG6yeYVx.mjs.map → magmonium-one-otp-BcNCgGpz.mjs.map} +1 -1
  120. package/fesm2022/{magmonium-one-password-DwDSYeId.mjs → magmonium-one-password-BDcSzmV_.mjs} +2 -2
  121. package/fesm2022/{magmonium-one-password-DwDSYeId.mjs.map → magmonium-one-password-BDcSzmV_.mjs.map} +1 -1
  122. package/fesm2022/{magmonium-one-toggle-Q7xj4HMm.mjs → magmonium-one-toggle-bLWTwEHE.mjs} +2 -2
  123. package/fesm2022/{magmonium-one-toggle-Q7xj4HMm.mjs.map → magmonium-one-toggle-bLWTwEHE.mjs.map} +1 -1
  124. package/fesm2022/magmonium-one.mjs +1 -1
  125. package/package.json +1 -1
  126. package/types/magmonium-one.d.ts +14 -3
  127. package/fesm2022/magmonium-one-magmonium-one-DERXXaMX.mjs.map +0 -1
@@ -1,6 +1,6 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { signal, viewChildren, computed, inject, effect, afterRenderEffect, untracked, ChangeDetectionStrategy, Component } from '@angular/core';
3
- import { h as BaseTextInputComponent, k as IS_DESIGN_MODE, L as LabelComponent, j as TextOutputComponent } from './magmonium-one-magmonium-one-DERXXaMX.mjs';
3
+ import { h as BaseTextInputComponent, k as IS_DESIGN_MODE, L as LabelComponent, j as TextOutputComponent } from './magmonium-one-magmonium-one-BTi-rHpF.mjs';
4
4
  import { CommonModule } from '@angular/common';
5
5
 
6
6
  class OtpInputComponent extends BaseTextInputComponent {
@@ -198,4 +198,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
198
198
  }], ctorParameters: () => [], propDecorators: { otpInputs: [{ type: i0.ViewChildren, args: ['otpInput', { isSignal: true }] }] } });
199
199
 
200
200
  export { OtpInputComponent };
201
- //# sourceMappingURL=magmonium-one-otp-DG6yeYVx.mjs.map
201
+ //# sourceMappingURL=magmonium-one-otp-BcNCgGpz.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"magmonium-one-otp-DG6yeYVx.mjs","sources":["../../../../libs/one/src/lib/shared/ui/input/ui/text/otp.ts"],"sourcesContent":["import {\n afterRenderEffect,\n ChangeDetectionStrategy,\n Component,\n computed,\n effect,\n ElementRef,\n inject,\n signal,\n untracked,\n viewChildren,\n} from '@angular/core';\nimport { LabelComponent } from '../label';\nimport { TextOutputComponent } from '../../../text-output';\nimport { BaseTextInputComponent } from './base-text';\nimport { CommonModule } from '@angular/common';\nimport { OtpInput } from '../../model/input';\nimport { IS_DESIGN_MODE } from '../../../../config/tokens';\n\n@Component({\n selector: 'm-otp-input',\n template: `\n @if (otpConfig(); as otp) {\n <m-label\n [for]=\"otp.name\"\n [placeholder]=\"otp.label\"\n [params]=\"otp.params\"\n [required]=\"required()\"\n [disabled]=\"isDisabled()\"\n />\n <div class=\"otp-container\">\n @for (item of otpArray(); track $index) {\n <input\n [id]=\"$index === 0 ? (otp.name ?? '') : ''\"\n #otpInput\n type=\"text\"\n maxlength=\"1\"\n [class.error]=\"showErrors()\"\n [disabled]=\"isDisabled()\"\n [value]=\"otpValues()[$index] || ''\"\n (input)=\"onInput($event, $index)\"\n (keydown)=\"onKeyDown($event, $index)\"\n (paste)=\"onPaste($event)\"\n />\n }\n </div>\n @if (showErrors()) {\n @for (error of errors(); track $index) {\n <m-text-output\n variant=\"footer\"\n color=\"error\"\n [label]=\"error.message\"\n />\n }\n }\n }\n `,\n styleUrl: './otp.sass',\n imports: [LabelComponent, TextOutputComponent, CommonModule],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class OtpInputComponent extends BaseTextInputComponent<OtpInput> {\n otpValues = signal<string[]>([]);\n otpInputs = viewChildren<ElementRef<HTMLInputElement>>('otpInput');\n protected readonly otpConfig = computed(() => this.config() as OtpInput);\n otpArray = computed(() => {\n const length = this.otpConfig()?.length || 6;\n return Array(length).fill(0);\n });\n\n // Inert on the Canvas — other inputs stay idle because they never autofocus;\n // OTP used to steal focus and look live while composing (DesignMode).\n private readonly isDesignMode = !!inject(IS_DESIGN_MODE, { optional: true });\n protected readonly isDisabled = computed(\n () => this.isDesignMode || this.disabled()\n );\n\n // BaseText answers `focused` by focusing its `#inputElement`, and an OTP has\n // none — it has a row of boxes. Without this the caret never lands on an OTP\n // field, so the form that opens on one (login's verification step) reads as\n // dead until the User clicks it.\n private hasAutofocused = false;\n\n constructor() {\n super();\n effect(() => {\n const length = this.otpConfig()?.length || 6;\n this.otpValues.set(Array(length).fill(''));\n });\n\n afterRenderEffect(() => {\n const inputs = this.otpInputs();\n if (!this.focused() || !inputs.length || this.hasAutofocused) return;\n this.hasAutofocused = true;\n untracked(() => this.focusInput(0));\n });\n }\n\n onInput = (event: Event, index: number): void => {\n if (this.isDisabled()) return;\n const input = event.target as HTMLInputElement;\n let value = input.value;\n\n value = value.replace(/[^a-zA-Z0-9]/g, '');\n\n if (value.length > 1) {\n value = value.slice(-1);\n }\n\n input.value = value.toUpperCase();\n\n const newValues = [...this.otpValues()];\n newValues[index] = value.toUpperCase();\n this.otpValues.set(newValues);\n\n const length = this.otpConfig()?.length || 6;\n if (value && index < length - 1) {\n this.focusInput(index + 1);\n }\n this.updateValue();\n };\n\n onKeyDown = (event: KeyboardEvent, index: number): void => {\n if (this.isDisabled()) return;\n const input = event.target as HTMLInputElement;\n const length = this.otpConfig()?.length || 6;\n\n const isAlphaNumeric = /^[a-zA-Z0-9]$/.test(event.key);\n const isControlKey = [\n 'Backspace',\n 'Delete',\n 'ArrowLeft',\n 'ArrowRight',\n 'Tab',\n ].includes(event.key);\n\n if (!isAlphaNumeric && !isControlKey) {\n event.preventDefault();\n return;\n }\n\n if (event.key === 'Backspace') {\n if (!input.value && index > 0) {\n this.focusInput(index - 1);\n }\n }\n if (event.key === 'ArrowLeft' && index > 0) {\n event.preventDefault();\n this.focusInput(index - 1);\n }\n if (event.key === 'ArrowRight' && index < length - 1) {\n event.preventDefault();\n this.focusInput(index + 1);\n }\n };\n\n onPaste = (event: ClipboardEvent): void => {\n if (this.isDisabled()) return;\n event.preventDefault();\n event.stopPropagation();\n\n const length = this.otpConfig()?.length || 6;\n const pastedData = event.clipboardData?.getData('text') || '';\n\n const alphanumeric = pastedData\n .replace(/[^a-zA-Z0-9]/g, '')\n .slice(0, length);\n\n if (alphanumeric.length > 0) {\n const newValues = Array(length).fill('');\n alphanumeric.split('').forEach((char, index) => {\n if (index < length) {\n newValues[index] = char.toUpperCase();\n }\n });\n\n this.otpValues.set(newValues);\n this.updateValue();\n\n const focusIndex = Math.min(alphanumeric.length, length - 1);\n setTimeout(() => this.focusInput(focusIndex), 0);\n }\n };\n\n private focusInput(index: number): void {\n if (this.isDisabled()) return;\n const inputs = this.otpInputs();\n if (inputs[index]) {\n inputs[index].nativeElement.focus();\n }\n }\n\n private updateValue(): void {\n const otpValue = this.otpValues().join('');\n this.setValue(otpValue);\n }\n}\n"],"names":[],"mappings":";;;;;AA6DM,MAAO,iBAAkB,SAAQ,sBAAgC,CAAA;AACrE,IAAA,SAAS,GAAG,MAAM,CAAW,EAAE,gFAAC;AAChC,IAAA,SAAS,GAAG,YAAY,CAA+B,UAAU,gFAAC;IAC/C,SAAS,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,MAAM,EAAc,EAAA,IAAA,SAAA,GAAA,CAAA,EAAA,SAAA,EAAA,WAAA,EAAA,CAAA,8BAAA,EAAA,CAAA,CAAC;AACxE,IAAA,QAAQ,GAAG,QAAQ,CAAC,MAAK;QACvB,MAAM,MAAM,GAAG,IAAI,CAAC,SAAS,EAAE,EAAE,MAAM,IAAI,CAAC;QAC5C,OAAO,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;AAC9B,IAAA,CAAC,+EAAC;;;AAIe,IAAA,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC,cAAc,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AACzD,IAAA,UAAU,GAAG,QAAQ,CACtC,MAAM,IAAI,CAAC,YAAY,IAAI,IAAI,CAAC,QAAQ,EAAE,iFAC3C;;;;;IAMO,cAAc,GAAG,KAAK;AAE9B,IAAA,WAAA,GAAA;AACE,QAAA,KAAK,EAAE;QACP,MAAM,CAAC,MAAK;YACV,MAAM,MAAM,GAAG,IAAI,CAAC,SAAS,EAAE,EAAE,MAAM,IAAI,CAAC;AAC5C,YAAA,IAAI,CAAC,SAAS,CAAC,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,QAAA,CAAA,EAAA,OAAA,EAAA,CAAA,cAAA,EAAA,SAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAE,YAAY,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;2FAGhD,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBA1C7B,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,aAAa,EAAA,QAAA,EACb;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCT,EAAA,OAAA,EAEQ,CAAC,cAAc,EAAE,mBAAmB,EAAE,YAAY,CAAC,EAAA,eAAA,EAC3C,uBAAuB,CAAC,MAAM,EAAA,MAAA,EAAA,CAAA,+qEAAA,CAAA,EAAA;oGAIQ,UAAU,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;;;"}
1
+ {"version":3,"file":"magmonium-one-otp-BcNCgGpz.mjs","sources":["../../../../libs/one/src/lib/shared/ui/input/ui/text/otp.ts"],"sourcesContent":["import {\n afterRenderEffect,\n ChangeDetectionStrategy,\n Component,\n computed,\n effect,\n ElementRef,\n inject,\n signal,\n untracked,\n viewChildren,\n} from '@angular/core';\nimport { LabelComponent } from '../label';\nimport { TextOutputComponent } from '../../../text-output';\nimport { BaseTextInputComponent } from './base-text';\nimport { CommonModule } from '@angular/common';\nimport { OtpInput } from '../../model/input';\nimport { IS_DESIGN_MODE } from '../../../../config/tokens';\n\n@Component({\n selector: 'm-otp-input',\n template: `\n @if (otpConfig(); as otp) {\n <m-label\n [for]=\"otp.name\"\n [placeholder]=\"otp.label\"\n [params]=\"otp.params\"\n [required]=\"required()\"\n [disabled]=\"isDisabled()\"\n />\n <div class=\"otp-container\">\n @for (item of otpArray(); track $index) {\n <input\n [id]=\"$index === 0 ? (otp.name ?? '') : ''\"\n #otpInput\n type=\"text\"\n maxlength=\"1\"\n [class.error]=\"showErrors()\"\n [disabled]=\"isDisabled()\"\n [value]=\"otpValues()[$index] || ''\"\n (input)=\"onInput($event, $index)\"\n (keydown)=\"onKeyDown($event, $index)\"\n (paste)=\"onPaste($event)\"\n />\n }\n </div>\n @if (showErrors()) {\n @for (error of errors(); track $index) {\n <m-text-output\n variant=\"footer\"\n color=\"error\"\n [label]=\"error.message\"\n />\n }\n }\n }\n `,\n styleUrl: './otp.sass',\n imports: [LabelComponent, TextOutputComponent, CommonModule],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class OtpInputComponent extends BaseTextInputComponent<OtpInput> {\n otpValues = signal<string[]>([]);\n otpInputs = viewChildren<ElementRef<HTMLInputElement>>('otpInput');\n protected readonly otpConfig = computed(() => this.config() as OtpInput);\n otpArray = computed(() => {\n const length = this.otpConfig()?.length || 6;\n return Array(length).fill(0);\n });\n\n // Inert on the Canvas — other inputs stay idle because they never autofocus;\n // OTP used to steal focus and look live while composing (DesignMode).\n private readonly isDesignMode = !!inject(IS_DESIGN_MODE, { optional: true });\n protected readonly isDisabled = computed(\n () => this.isDesignMode || this.disabled()\n );\n\n // BaseText answers `focused` by focusing its `#inputElement`, and an OTP has\n // none — it has a row of boxes. Without this the caret never lands on an OTP\n // field, so the form that opens on one (login's verification step) reads as\n // dead until the User clicks it.\n private hasAutofocused = false;\n\n constructor() {\n super();\n effect(() => {\n const length = this.otpConfig()?.length || 6;\n this.otpValues.set(Array(length).fill(''));\n });\n\n afterRenderEffect(() => {\n const inputs = this.otpInputs();\n if (!this.focused() || !inputs.length || this.hasAutofocused) return;\n this.hasAutofocused = true;\n untracked(() => this.focusInput(0));\n });\n }\n\n onInput = (event: Event, index: number): void => {\n if (this.isDisabled()) return;\n const input = event.target as HTMLInputElement;\n let value = input.value;\n\n value = value.replace(/[^a-zA-Z0-9]/g, '');\n\n if (value.length > 1) {\n value = value.slice(-1);\n }\n\n input.value = value.toUpperCase();\n\n const newValues = [...this.otpValues()];\n newValues[index] = value.toUpperCase();\n this.otpValues.set(newValues);\n\n const length = this.otpConfig()?.length || 6;\n if (value && index < length - 1) {\n this.focusInput(index + 1);\n }\n this.updateValue();\n };\n\n onKeyDown = (event: KeyboardEvent, index: number): void => {\n if (this.isDisabled()) return;\n const input = event.target as HTMLInputElement;\n const length = this.otpConfig()?.length || 6;\n\n const isAlphaNumeric = /^[a-zA-Z0-9]$/.test(event.key);\n const isControlKey = [\n 'Backspace',\n 'Delete',\n 'ArrowLeft',\n 'ArrowRight',\n 'Tab',\n ].includes(event.key);\n\n if (!isAlphaNumeric && !isControlKey) {\n event.preventDefault();\n return;\n }\n\n if (event.key === 'Backspace') {\n if (!input.value && index > 0) {\n this.focusInput(index - 1);\n }\n }\n if (event.key === 'ArrowLeft' && index > 0) {\n event.preventDefault();\n this.focusInput(index - 1);\n }\n if (event.key === 'ArrowRight' && index < length - 1) {\n event.preventDefault();\n this.focusInput(index + 1);\n }\n };\n\n onPaste = (event: ClipboardEvent): void => {\n if (this.isDisabled()) return;\n event.preventDefault();\n event.stopPropagation();\n\n const length = this.otpConfig()?.length || 6;\n const pastedData = event.clipboardData?.getData('text') || '';\n\n const alphanumeric = pastedData\n .replace(/[^a-zA-Z0-9]/g, '')\n .slice(0, length);\n\n if (alphanumeric.length > 0) {\n const newValues = Array(length).fill('');\n alphanumeric.split('').forEach((char, index) => {\n if (index < length) {\n newValues[index] = char.toUpperCase();\n }\n });\n\n this.otpValues.set(newValues);\n this.updateValue();\n\n const focusIndex = Math.min(alphanumeric.length, length - 1);\n setTimeout(() => this.focusInput(focusIndex), 0);\n }\n };\n\n private focusInput(index: number): void {\n if (this.isDisabled()) return;\n const inputs = this.otpInputs();\n if (inputs[index]) {\n inputs[index].nativeElement.focus();\n }\n }\n\n private updateValue(): void {\n const otpValue = this.otpValues().join('');\n this.setValue(otpValue);\n }\n}\n"],"names":[],"mappings":";;;;;AA6DM,MAAO,iBAAkB,SAAQ,sBAAgC,CAAA;AACrE,IAAA,SAAS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,OAAA,EAEQ,CAAC,cAAc,EAAE,mBAAmB,EAAE,YAAY,CAAC,EAAA,eAAA,EAC3C,uBAAuB,CAAC,MAAM,EAAA,MAAA,EAAA,CAAA,+qEAAA,CAAA,EAAA;oGAIQ,UAAU,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;;;"}
@@ -1,6 +1,6 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { signal, computed, ChangeDetectionStrategy, Component } from '@angular/core';
3
- import { h as BaseTextInputComponent, L as LabelComponent, j as TextOutputComponent, B as ButtonComponent, T as TranslatePipe } from './magmonium-one-magmonium-one-DERXXaMX.mjs';
3
+ import { h as BaseTextInputComponent, L as LabelComponent, j as TextOutputComponent, B as ButtonComponent, T as TranslatePipe } from './magmonium-one-magmonium-one-BTi-rHpF.mjs';
4
4
 
5
5
  class PasswordInputComponent extends BaseTextInputComponent {
6
6
  isPassword = signal(true, ...(ngDevMode ? [{ debugName: "isPassword" }] : /* istanbul ignore next */ []));
@@ -102,4 +102,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
102
102
  }] });
103
103
 
104
104
  export { PasswordInputComponent };
105
- //# sourceMappingURL=magmonium-one-password-DwDSYeId.mjs.map
105
+ //# sourceMappingURL=magmonium-one-password-BDcSzmV_.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"magmonium-one-password-DwDSYeId.mjs","sources":["../../../../libs/one/src/lib/shared/ui/input/ui/text/password.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n computed,\n signal,\n} from '@angular/core';\nimport { LabelComponent } from '../label';\nimport { TextOutputComponent } from '../../../text-output';\nimport { BaseTextInputComponent } from './base-text';\nimport { ButtonComponent } from '../../../button/ui/button';\nimport { TranslatePipe } from '../../../../pipe';\n\n@Component({\n selector: 'm-password-input',\n template: `\n @if (config(); as text) {\n <m-label\n [for]=\"text.name\"\n [placeholder]=\"text.label\"\n [params]=\"text.params\"\n [required]=\"required()\"\n [disabled]=\"disabled()\"\n />\n <div class=\"input-wrapper\">\n <input\n [id]=\"text.name ?? ''\"\n [value]=\"value()\"\n #inputElement\n [class.error]=\"showErrors()\"\n [disabled]=\"disabled()\"\n [placeholder]=\"(text.placeholder ?? '') | translate: text.params\"\n (input)=\"onInput($event)\"\n (focus)=\"isFocused.set(true)\"\n (blur)=\"isFocused.set(false); touched.set(true)\"\n [type]=\"type()\"\n />\n <m-one-button\n type=\"button\"\n [disabled]=\"disabled()\"\n [name]=\"button()\"\n [color]=\"iconColor()\"\n (clicked)=\"toggleType()\"\n />\n </div>\n @if (showErrors()) {\n @for (error of errors(); track $index) {\n <m-text-output\n variant=\"footer\"\n color=\"error\"\n [label]=\"error.message\"\n />\n }\n }\n }\n `,\n imports: [LabelComponent, TextOutputComponent, ButtonComponent, TranslatePipe],\n styleUrl: './password.sass',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class PasswordInputComponent extends BaseTextInputComponent {\n isPassword = signal<boolean>(true);\n type = computed(() => (this.isPassword() ? 'password' : 'text'));\n button = computed(() => (!this.isPassword() ? 'eye' : 'eye_close'));\n\n protected toggleType() {\n this.isPassword.update((now) => !now);\n }\n\n protected onInput(event: Event): void {\n const target = event.target as HTMLInputElement;\n this.setValue(target?.value ?? '');\n }\n}\n"],"names":[],"mappings":";;;;AA2DM,MAAO,sBAAuB,SAAQ,sBAAsB,CAAA;AAChE,IAAA,UAAU,GAAG,MAAM,CAAU,IAAI,iFAAC;IAClC,IAAI,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,UAAU,EAAE,GAAG,UAAU,GAAG,MAAM,CAAC,EAAA,IAAA,SAAA,GAAA,CAAA,EAAA,SAAA,EAAA,MAAA,EAAA,CAAA,8BAAA,EAAA,CAAA,CAAC;IAChE,MAAM,GAAG,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE,GAAG,KAAK,GAAG,WAAW,CAA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A,EAAA,QAAA,CAAA,EAAA,OAAA,EAAA,CAAA,cAAA,EAAA,SAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAE,eAAe,4YAAE,aAAa,EAAA,IAAA,EAAA,WAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;2FAIlE,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBA/ClC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,kBAAkB,EAAA,QAAA,EAClB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwCT,EAAA,CAAA,EAAA,OAAA,EACQ,CAAC,cAAc,EAAE,mBAAmB,EAAE,eAAe,EAAE,aAAa,CAAC,EAAA,eAAA,EAE7D,uBAAuB,CAAC,MAAM,EAAA,MAAA,EAAA,CAAA,s8HAAA,CAAA,EAAA;;;;;"}
1
+ {"version":3,"file":"magmonium-one-password-BDcSzmV_.mjs","sources":["../../../../libs/one/src/lib/shared/ui/input/ui/text/password.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n computed,\n signal,\n} from '@angular/core';\nimport { LabelComponent } from '../label';\nimport { TextOutputComponent } from '../../../text-output';\nimport { BaseTextInputComponent } from './base-text';\nimport { ButtonComponent } from '../../../button/ui/button';\nimport { TranslatePipe } from '../../../../pipe';\n\n@Component({\n selector: 'm-password-input',\n template: `\n @if (config(); as text) {\n <m-label\n [for]=\"text.name\"\n [placeholder]=\"text.label\"\n [params]=\"text.params\"\n [required]=\"required()\"\n [disabled]=\"disabled()\"\n />\n <div class=\"input-wrapper\">\n <input\n [id]=\"text.name ?? ''\"\n [value]=\"value()\"\n #inputElement\n [class.error]=\"showErrors()\"\n [disabled]=\"disabled()\"\n [placeholder]=\"(text.placeholder ?? '') | translate: text.params\"\n (input)=\"onInput($event)\"\n (focus)=\"isFocused.set(true)\"\n (blur)=\"isFocused.set(false); touched.set(true)\"\n [type]=\"type()\"\n />\n <m-one-button\n type=\"button\"\n [disabled]=\"disabled()\"\n [name]=\"button()\"\n [color]=\"iconColor()\"\n (clicked)=\"toggleType()\"\n />\n </div>\n @if (showErrors()) {\n @for (error of errors(); track $index) {\n <m-text-output\n variant=\"footer\"\n color=\"error\"\n [label]=\"error.message\"\n />\n }\n }\n }\n `,\n imports: [LabelComponent, TextOutputComponent, ButtonComponent, TranslatePipe],\n styleUrl: './password.sass',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class PasswordInputComponent extends BaseTextInputComponent {\n isPassword = signal<boolean>(true);\n type = computed(() => (this.isPassword() ? 'password' : 'text'));\n button = computed(() => (!this.isPassword() ? 'eye' : 'eye_close'));\n\n protected toggleType() {\n this.isPassword.update((now) => !now);\n }\n\n protected onInput(event: Event): void {\n const target = event.target as HTMLInputElement;\n this.setValue(target?.value ?? '');\n }\n}\n"],"names":[],"mappings":";;;;AA2DM,MAAO,sBAAuB,SAAQ,sBAAsB,CAAA;AAChE,IAAA,UAAU,GAAG,MAAM,CAAU,IAAI,iFAAC;IAClC,IAAI,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,UAAU,EAAE,GAAG,UAAU,GAAG,MAAM,CAAC,EAAA,IAAA,SAAA,GAAA,CAAA,EAAA,SAAA,EAAA,MAAA,EAAA,CAAA,8BAAA,EAAA,CAAA,CAAC;IAChE,MAAM,GAAG,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE,GAAG,KAAK,GAAG,WAAW,CAAC,EAAA,IAAA,SAAA,GAAA,CAAA,EAAA,SAAA,EAAA,QAAA,EAAA,CAAA,8BAAA,EAAA,CAAA,CAAC;IAEzD,UAAU,GAAA;AAClB,QAAA,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,GAAG,KAAK,CAAC,GAAG,CAAC;IACvC;AAEU,IAAA,OAAO,CAAC,KAAY,EAAA;AAC5B,QAAA,MAAM,MAAM,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AAA,EAAA,CAAA;kBA/ClC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,kBAAkB,EAAA,QAAA,EAClB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwCT,EAAA,CAAA,EAAA,OAAA,EACQ,CAAC,cAAc,EAAE,mBAAmB,EAAE,eAAe,EAAE,aAAa,CAAC,EAAA,eAAA,EAE7D,uBAAuB,CAAC,MAAM,EAAA,MAAA,EAAA,CAAA,s8HAAA,CAAA,EAAA;;;;;"}
@@ -1,6 +1,6 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { model, input, computed, ChangeDetectionStrategy, Component } from '@angular/core';
3
- import { g as BaseInputComponent, T as TranslatePipe } from './magmonium-one-magmonium-one-DERXXaMX.mjs';
3
+ import { g as BaseInputComponent, T as TranslatePipe } from './magmonium-one-magmonium-one-BTi-rHpF.mjs';
4
4
 
5
5
  class ToggleInputComponent extends BaseInputComponent {
6
6
  value = undefined;
@@ -59,4 +59,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
59
59
  }], ctorParameters: () => [], propDecorators: { checked: [{ type: i0.Input, args: [{ isSignal: true, alias: "checked", required: false }] }, { type: i0.Output, args: ["checkedChange"] }], config: [{ type: i0.Input, args: [{ isSignal: true, alias: "config", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], touched: [{ type: i0.Input, args: [{ isSignal: true, alias: "touched", required: false }] }, { type: i0.Output, args: ["touchedChange"] }], focused: [{ type: i0.Input, args: [{ isSignal: true, alias: "focused", required: false }] }], errors: [{ type: i0.Input, args: [{ isSignal: true, alias: "errors", required: false }] }] } });
60
60
 
61
61
  export { ToggleInputComponent };
62
- //# sourceMappingURL=magmonium-one-toggle-Q7xj4HMm.mjs.map
62
+ //# sourceMappingURL=magmonium-one-toggle-bLWTwEHE.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"magmonium-one-toggle-Q7xj4HMm.mjs","sources":["../../../../libs/one/src/lib/shared/ui/input/ui/toggle/toggle.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n computed,\n input,\n model,\n ModelSignal,\n} from '@angular/core';\nimport { ToggleInput } from '../../model/input';\nimport { TranslatePipe } from '../../../../pipe/translate';\nimport {\n FormCheckboxControl,\n ValidationError,\n WithOptionalField,\n} from '@angular/forms/signals';\nimport { BaseInputComponent } from '../../lib/base-input';\n\n@Component({\n selector: 'm-toggle-input',\n template: `\n @if (config(); as toggle) {\n <div class=\"toggle\">\n <input\n [id]=\"toggle.name ?? ''\"\n [checked]=\"checked()\"\n (change)=\"onChange($event)\"\n type=\"checkbox\"\n />\n <label [attr.for]=\"toggle.name || null\">{{\n toggle.label | translate\n }}</label>\n </div>\n }\n `,\n imports: [TranslatePipe],\n styleUrl: './toggle.sass',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ToggleInputComponent\n extends BaseInputComponent<ToggleInput>\n implements FormCheckboxControl\n{\n public value = undefined;\n public checked = model<boolean>(false) as ModelSignal<boolean>;\n public override config = input<Partial<ToggleInput> | undefined>();\n public override required = input<boolean>(false);\n public override disabled = input<boolean>(false);\n public override invalid = input<boolean>(false);\n public override touched = model<boolean>(false);\n public override focused = input<boolean>(false);\n public override errors = input<readonly WithOptionalField<ValidationError>[]>(\n []\n );\n public override showErrors = computed(() => this.touched() && this.invalid());\n\n /** Required by FormCheckboxControl interface */\n // public readonly checked: ModelSignal<boolean> = this.value; // Already defined above\n\n constructor() {\n super();\n }\n\n protected onChange(event: Event): void {\n const target = event.target as HTMLInputElement;\n this.checked.set(target?.checked ?? false);\n }\n}\n"],"names":[],"mappings":";;;;AAsCM,MAAO,oBACX,SAAQ,kBAA+B,CAAA;IAGhC,KAAK,GAAG,SAAS;AACj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EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,+6GAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EACS,aAAa,EAAA,IAAA,EAAA,WAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;2FAIZ,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBArBhC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,gBAAgB,EAAA,QAAA,EAChB;;;;;;;;;;;;;;AAcT,EAAA,CAAA,EAAA,OAAA,EACQ,CAAC,aAAa,CAAC,EAAA,eAAA,EAEP,uBAAuB,CAAC,MAAM,EAAA,MAAA,EAAA,CAAA,+6GAAA,CAAA,EAAA;;;;;"}
1
+ {"version":3,"file":"magmonium-one-toggle-bLWTwEHE.mjs","sources":["../../../../libs/one/src/lib/shared/ui/input/ui/toggle/toggle.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n computed,\n input,\n model,\n ModelSignal,\n} from '@angular/core';\nimport { ToggleInput } from '../../model/input';\nimport { TranslatePipe } from '../../../../pipe/translate';\nimport {\n FormCheckboxControl,\n ValidationError,\n WithOptionalField,\n} from '@angular/forms/signals';\nimport { BaseInputComponent } from '../../lib/base-input';\n\n@Component({\n selector: 'm-toggle-input',\n template: `\n @if (config(); as toggle) {\n <div class=\"toggle\">\n <input\n [id]=\"toggle.name ?? ''\"\n [checked]=\"checked()\"\n (change)=\"onChange($event)\"\n type=\"checkbox\"\n />\n <label [attr.for]=\"toggle.name || null\">{{\n toggle.label | translate\n }}</label>\n </div>\n }\n `,\n imports: [TranslatePipe],\n styleUrl: './toggle.sass',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ToggleInputComponent\n extends BaseInputComponent<ToggleInput>\n implements FormCheckboxControl\n{\n public value = undefined;\n public checked = model<boolean>(false) as ModelSignal<boolean>;\n public override config = input<Partial<ToggleInput> | undefined>();\n public override required = input<boolean>(false);\n public override disabled = input<boolean>(false);\n public override invalid = input<boolean>(false);\n public override touched = model<boolean>(false);\n public override focused = input<boolean>(false);\n public override errors = input<readonly WithOptionalField<ValidationError>[]>(\n []\n );\n public override showErrors = computed(() => this.touched() && this.invalid());\n\n /** Required by FormCheckboxControl interface */\n // public readonly checked: ModelSignal<boolean> = this.value; // Already defined above\n\n constructor() {\n super();\n }\n\n protected onChange(event: Event): void {\n const target = event.target as HTMLInputElement;\n this.checked.set(target?.checked ?? false);\n }\n}\n"],"names":[],"mappings":";;;;AAsCM,MAAO,oBACX,SAAQ,kBAA+B,CAAA;IAGhC,KAAK,GAAG,SAAS;AACjB,IAAA,OAAO,GAAG,KAAK,CAAU,KAAK,CAAyB;IAC9C,MAAM,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA,EAAA,QAAA,EAAA,CAAA,8BAAA,EAAA,CAAA,CAAoC;AAClD,IAAA,QAAQ,GAAG,KAAK,CAAU,KAAK,+EAAC;AAChC,IAAA,QAAQ,GAAG,KAAK,CAAU,KAAK,+EAAC;AAChC,IAAA,OAAO,GAAG,KAAK,CAAU,KAAK,8EAAC;AAC/B,IAAA,OAAO,GAAG,KAAK,CAAU,KAAK,8EAAC;AAC/B,IAAA,OAAO,GAAG,KAAK,CAAU,KAAK,8EAAC;AAC/B,IAAA,MAAM,GAAG,KAAK,CAC5B,EAAE,6EACH;AACe,IAAA,UAAU,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,OAAO,EAAE,IAAI,IAAI,CAAC,OAAO,EAAE,iFAAC;;;AAK7E,IAAA,WAAA,GAAA;AACE,QAAA,KAAK,EAAE;IACT;AAEU,IAAA,QAAQ,CAAC,KAAY,EAAA;AAC7B,QAAA,MAAM,MAAM,GAAG,KAAK,CAAC,MAA0B;QAC/C,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,OAAO,I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A,EAAA,SAAA,EAAA,UAAA,EAAA,SAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,MAAA,EAAA,EAAA,iBAAA,EAAA,QAAA,EAAA,UAAA,EAAA,QAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,OAAA,EAAA,EAAA,OAAA,EAAA,eAAA,EAAA,OAAA,EAAA,eAAA,EAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAnBrB;;;;;;;;;;;;;;AAcT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,+6GAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EACS,aAAa,EAAA,IAAA,EAAA,WAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;2FAIZ,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBArBhC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,gBAAgB,EAAA,QAAA,EAChB;;;;;;;;;;;;;;AAcT,EAAA,CAAA,EAAA,OAAA,EACQ,CAAC,aAAa,CAAC,EAAA,eAAA,EAEP,uBAAuB,CAAC,MAAM,EAAA,MAAA,EAAA,CAAA,+6GAAA,CAAA,EAAA;;;;;"}
@@ -1,2 +1,2 @@
1
- export { A as ACCESS_DOMAINS, l as APP_CONTEXT_REF, m as APP_LINK, n as ASSET_BASE_URL, q as AccordionBodyDirective, s as AccordionComponent, t as AccordionGroupComponent, u as ActionComponent, v as AnimatedGraphsComponent, w as AppAvailability, x as AppCardComponent, y as AppRelationType, z as AppTileComponent, C as AssetStore, D as AssetUrlPipe, E as Assets, F as AuthActivityPageComponent, G as AuthApiService, J as AuthStore, K as AutosizeDirective, N as BadgeComponent, O as BandingComponent, P as BaseArrayInputComponent, Q as BaseRootWebComponent, S as BaseWebComponent, U as BrowserLocaleService, B as ButtonComponent, V as ButtonGroupComponent, W as CALLING_APP_HEADER, X as COMPONENT_INPUT_REGISTRY, Y as CardComponent, Z as CardWrapperComponent, _ as CarouselComponent, $ as ChartComponent, a0 as ChatBubbleComponent, a1 as CheckboxGroupComponent, a2 as CheckboxInputComponent, a3 as ClearableInputComponent, a4 as ClipboardService, a5 as ColComponent, a6 as ColorPickerInputComponent, a7 as CommentItemComponent, a8 as CommentsApiService, a9 as CommentsComponent, aa as CommentsStore, ab as CompactNumberPipe, ac as ComponentInputComponent, ad as ComponentStepperComponent, ae as ConfigComponent, af as ConfirmComponent, ag as ContextMenuComponent, ah as CustomIconClass, ai as CustomIconEditComponent, aj as DEFAULT_DENIAL, ak as DEFAULT_DOC_ALIGN, al as DEFAULT_DOC_DENSITY, am as DEFAULT_DOC_VARIANT, an as DEFAULT_FILTER_RANGE_MODE, ao as DEFAULT_FILTER_VARIANT, ap as DEFAULT_NAV_PARAM, aq as DEFAULT_NAV_SEGMENT, ar as DEFAULT_SIZE, as as DOCK_MIN_PAGE_REMAINDER, at as DOCS_FOLDER, au as DOC_ACTION_ICONS, av as DOC_ALIGNS, aw as DOC_DENSITIES, ax as DOC_EDIT_ACTIONS, ay as DOC_TOOLBAR_GROUPS, az as DOC_VARIANTS, aA as DashboardCardComponent, aB as DateInputComponent, aC as DatePickerComponent, aD as DeviceService, aE as DocComponent, aF as DocEditorComponent, aG as DomService, aH as Domain, aI as DotGridComponent, aJ as DragListDirective, aK as DragListItemDirective, aL as DraggableDirective, aM as DropdownInputComponent, aN as FILTER_GROUP_CONTEXT, aO as FILTER_RANGE_MODES, aP as FILTER_VARIANTS, aQ as FLEX_VARIANTS, aR as FOLDER_PICK_LISTENER, aS as FORM_ASSET_FOLDER, aT as FileService, aU as FileUploadDirective, aV as FileUploadInputComponent, aW as FlexComponent, aX as FlexItemComponent, aY as FormGroupComponent, aZ as FrameComponent, a_ as FreezeService, a$ as GRID_BREAKPOINTS, b0 as GetNavService, H as HeaderComponent, b1 as HighlightDirective, b2 as HttpService, b3 as ICON_SOURCE, k as IS_DESIGN_MODE, b4 as IS_SIDE_PANEL, b5 as IconComponent, b6 as ImgComponent, I as InputType, b7 as InstrumentScoreComponent, b8 as InterceptorObservables, b9 as JumbotronComponent, ba as KeyValueComponent, bb as LAYOUT_ASSET_FOLDER, bc as LOADING_ACTIONS_REF, bd as LOGIN_COMPONENT, be as LOGIN_STORE, bf as LanguageComponent, bg as ListComponent, bh as LogoComponent, bi as MAG_SOCKET_EVENT, bj as MHeroColorDirective, bk as MHeroComponent, M as MODAL_REF, bl as MODAL_STORE_REF, bm as MOUNT_STATIC_SEGMENT, bn as MOUNT_TOKEN, bo as MRefDirective, bp as MStepComponent, bq as MURL_PARAM, br as MURL_SEP, bs as ManifestEnrichmentService, bt as MarginDirective, bu as MenuComponent, bv as ModalDirective, bw as ModalRef, bx as ModalStore, by as MoneyPipe, bz as MultiRangeInputComponent, bA as MultiselectInputComponent, bB as MurlUrlSerializer, bC as NAV_DEFAULT_MURL, bD as NAV_ID_SEP, bE as NAV_MAIN_BUTTONS, bF as NAV_SEGMENT_RE, bG as NAV_STORE_REF, bH as NAV_WC_COMPONENTS, bI as NAV_WIDGET_MAP, bJ as NavComponent, bK as NavDetailsComponent, bL as NavHeaderComponent, bM as NavMenuComponent, bN as NavStore, bO as NavTrailComponent, bP as NothingComponent, bQ as NotificationElementComponent, bR as NotificationGroupComponent, bS as NotificationPopupComponent, bT as NotificationService, bU as NotificationStore, bV as NotificationType, bW as NotificationWidgetComponent, bX as ONE_ASSET_BASE_URL, bY as OPTIONS_SOURCE, bZ as OVERLAY_WIDGETS, b_ as OneApp, b$ as OptionsSourceDirective, c0 as OverlayBodyComponent, c1 as OverlayRef, c2 as OverlayService, c3 as PLATFORM_BUTTON_NAV_IDS, c4 as PLATFORM_EXTENSIBLE_NAV_IDS, c5 as PLATFORM_NAV_MAP, c6 as PLATFORM_ROOT_CHILDREN, c7 as PLUGIN_FALLBACK_LANG, c8 as PLUGIN_OUTPUT_EVENT, c9 as PLUGIN_SCREENS, ca as PaddingDirective, cb as PaginationComponent, cc as PanelComponent, cd as PercentagePipe, ce as PlaygroundComponent, cf as PluginComponent, cg as PluginInputComponent, ch as PluginOutputComponent, ci as PositionDirective, cj as PwaInstallComponent, ck as RECENT_SEARCH_LIMIT, cl as REMOTE_PAGE_RELOAD, cm as ROOT_NAV, cn as RadioGroupComponent, co as RadioInputComponent, R as RangeInputComponent, cp as RatingInputComponent, cq as ReactiveElementComponent, cr as RemoteComponent, cs as RemoteLoaderService, ct as ResizeElementComponent, cu as RouteContainer, cv as RowComponent, cw as SEARCH_QUERY, cx as SEARCH_RESULTS_EVENT, cy as SECTION_ACCORDION_GROUP, cz as SECTION_FORM_CONTEXT, cA as SECTION_TABLE_VARIANTS, cB as SHARED_ICONS, cC as SIZE_CONTEXT, cD as SPACING_INWARD, cE as ScoreComponent, cF as ScrollComponent, cG as ScrollService, cH as SearchPanelComponent, cI as SearchStore, cJ as SearchUserPanelComponent, cK as SectionAccordionDirective, cL as SectionAccordionGroupDirective, cM as SectionBackComponent, cN as SectionBadgesComponent, cO as SectionButtonGroupComponent, cP as SectionCardComponent, cQ as SectionCarouselComponent, cR as SectionComponent, cS as SectionFilterComponent, cT as SectionFilterGroupComponent, cU as SectionFilterMenuComponent, cV as SectionFilterPanelComponent, cW as SectionFilterRangePanelComponent, cX as SectionFooterComponent, cY as SectionFormComponent, cZ as SectionFormItemComponent, c_ as SectionHeaderComponent, c$ as SectionHeroComponent, d0 as SectionPaginationComponent, d1 as SectionSearchComponent, d2 as SectionStepperComponent, d3 as SectionTableCellComponent, d4 as SectionTableComponent, d5 as SectionTableRowComponent, d6 as SectionTableSortPipe, d7 as SectionTabsComponent, d8 as SectionToggleComponent, d9 as SectionToggleItemDirective, da as SelectableCardInputComponent, db as SelectorDirective, dc as SettingsSearchBarComponent, dd as SettingsSearchService, de as ShapeComponent, df as SharedStoreRegistry, dg as SidePanelDirective, dh as Size, di as SocketStore, dj as SortComponent, dk as StatComponent, dl as StepComponent, dm as StepperComponent, dn as StepsComponent, dp as StorageService, dq as StrokeLinecap, dr as StrokeLinejoin, ds as SummaryComponent, dt as SvgGeneratorComponent, du as SvgGeneratorService, dv as SvgService, dw as TOTAL_COLUMNS, dx as TRANSLATION_SOURCE, dy as TableComponent, dz as TechnicalMeterComponent, dA as TextInputComponent, j as TextOutputComponent, dB as TextareaInputComponent, dC as ThemeComponent, dD as ThemeDataService, dE as ThemeService, dF as ThemeStore, dG as TimeAgoPipe, dH as TimelineComponent, dI as ToggleButtonComponent, dJ as ToggleInputComponent, dK as ToggleRadioInputComponent, dL as ToolTipDirective, dM as TooltipComponent, T as TranslatePipe, dN as TranslateService, dO as TreeGridComponent, dP as URL_SEP, dQ as USER_STORE_REF, dR as USER_TAB_MAP, dS as UniverseComponent, dT as UserApiService, dU as UserAvatarComponent, dV as UserComponent, dW as UserNavComponent, dX as UserSettingsComponent, dY as UserStore, dZ as WC_BUNDLE, d_ as WC_NAVIGATE_EVENT, d$ as WC_ROUTE_CHANGED_EVENT, e0 as WC_SEARCH_GROUPS, e1 as WIN_USER_TAB_HOOK, e2 as WIN_USER_TAB_KEY, e3 as WatermarkComponent, e4 as WcRouterStore, e5 as WrapperInputComponent, e6 as allowedCodes, e7 as anchorNavId, e8 as applyColorsToElement, e9 as applyDocEdit, ea as assetOptions, eb as bootstrapMagApp, ec as bootstrapPwaInstall, ed as browserLocale, ee as buildWcBaseUrl, ef as calculateLuminance, eg as calculateRanks, eh as cellText, ei as checkDoc, ej as checkFilterCondition, ek as childNavId, el as claimDenial, em as classListSignal, en as coerceSize, eo as cornerEdge, ep as cornerSide, eq as createLoadingState, er as createMap, es as createPlatformNavMap, et as createPluginElement, eu as definePluginScreens, ev as definedWcTierOf, ew as deriveAvatarGradient, ex as deriveContrastColor, ey as deriveOppositeColor, ez as derivePropertyName, eA as docActionKey, eB as docAssetCandidates, eC as docProblemKey, eD as docRemotePath, eE as emailValidation, eF as evaluate, eG as evaluateBool, eH as exposeScreens, eI as exposedScreensOf, eJ as fieldBoolean, eK as fieldNumber, eL as fieldString, eM as filterHoldsList, eN as filterHoldsOneBound, eO as filterHoldsOptions, eP as filterHoldsRange, eQ as filterList, eR as filterNumber, eS as filterNumberList, eT as filterOne, eU as filterPanelOf, eV as filterPanelWidth, eW as filterRange, eX as filterTreeGridRows, eY as filterValueList, eZ as filterValues, e_ as flattenTreeGridRows, e$ as formatBadgeCount, f0 as fullName, f1 as generateClipPath, f2 as generateTransform, f3 as getClassList, f4 as getProperty, f5 as getScrollParent, f6 as getTierFromPreviewPath, f7 as getTreeGridRow, f8 as getUniqueId, f9 as getValue, fa as hasErrorComputed, fb as hexToRgb, fc as hslToRgb, fd as initMagmoniumApp, fe as initialNotificationState, ff as initialState, fg as initials, fh as injectAuthenticate, fi as injectDefaultDenial, fj as injectInstallApp, fk as injectParentSize, fl as injectScrollSticky, fm as isBootRedirect, fn as isButtonName, fo as isCancelledComputed, fp as isExtensiblePlatformNavId, fq as isJson, fr as isLoadingComputed, fs as isLocalhost, ft as isNavInstanceConfig, fu as isNavMenuConfig, fv as isNavRowsConfig, fw as isNavVisibilityConfig, fx as isPlatformNavId, fy as isSize, fz as isTierPreview, fA as isUrlLocalhost, fB as isValidNavId, fC as isValidNavSegment, fD as isWebComponent, fE as linkToId, fF as linkToNav, fG as loadingActions, fH as mInterceptor, fI as manualValidation, fJ as matchFieldValidation, fK as matchMount, fL as maxLengthValidation, fM as maxValidation, fN as mergePlatformNav, fO as mergeUnique, fP as mergeUniqueBy, fQ as mergeUniqueWith, fR as minAgeValidation, fS as minLengthValidation, fT as minValidation, fU as miniMarkToHtml, fV as mountFor, fW as mountPatternProblem, fX as mountPatternText, fY as mountSegmentOf, fZ as mountTokenOf, f_ as navIdChain, f$ as navIdFor, g0 as navIdSegment, g1 as navIdToRoutePath, g2 as navIdToSegments, g3 as navParamOf, g4 as navTailMatcher, g5 as navToId, g6 as navVisibilityGuard, g7 as nextSectionTableSort, g8 as normalizeAssetOptions, g9 as offsetOfLine, ga as parentNavId, gb as parseAddress, gc as parseColor, gd as parseMountPattern, ge as parsePatternNames, gf as patternValidation, gg as patternsValidation, gh as permissionRefusal, gi as pickSupportedLanguage, gj as platformNavWidgets, gk as pluginTag, gl as presetDefaultOption, gm as privateGuard, gn as processImageToSvg, go as provideAppContext, gp as provideMagAppConfig, gq as provideMagWcConfig, gr as provideMagWcRoutes, gs as provideModalComponents, gt as provideMurlUrlSerializer, gu as provideNavWidgets, gv as provideOverlayWidgets, gw as providePlatformNavWidgets, gx as providePluginRuntime, gy as provideSearch, gz as provideSizeContext, gA as provideUserTabs, gB as publicGuard, gC as readFieldPatterns, gD as recordDefinedWcTier, gE as remoteOutletRoute, gF as renderAddress, gG as renderDocument, gH as requiredValidation, gI as resolveConfigAsset, gJ as resolveIconSize, gK as resolvePallet, gL as resolvePatternRules, gM as resolveSize, gN as resolveSpacing, gO as rgbToHex, gP as rgbToHsl, gQ as rowHasChildren, gR as samePatterns, gS as sectionTableColumnId, gT as sectionTableColumnWidths, gU as sectionTableFrozenCount, gV as segmentsToNavId, gW as setProperty, gX as setTreeGridChildren, gY as setWcLocalPort, gZ as setWcTier, g_ as settingsWidgets, g$ as shouldShowBadge, h0 as sortSectionTableRows, h1 as splitNavId, h2 as splitOnMatch, h3 as stringToColor, h4 as tailRouteOf, h5 as toAttrBool, h6 as toAttrNumber, h7 as toCssLength, h8 as toHostNavId, h9 as toLength, ha as toLocalNavId, hb as toggleTreeGridRow, hc as unfetchedPlatformNav, hd as ungroupedDocActions, he as urlValidation, hf as wcLocalBaseOf, hg as wcTierOf } from './magmonium-one-magmonium-one-DERXXaMX.mjs';
1
+ export { A as ACCESS_DOMAINS, l as APP_CONTEXT_REF, m as APP_LINK, n as ASSET_BASE_URL, q as AccordionBodyDirective, s as AccordionComponent, t as AccordionGroupComponent, u as ActionComponent, v as AnimatedGraphsComponent, w as AppAvailability, x as AppCardComponent, y as AppRelationType, z as AppTileComponent, C as AssetStore, D as AssetUrlPipe, E as Assets, F as AuthActivityPageComponent, G as AuthApiService, J as AuthStore, K as AutosizeDirective, N as BadgeComponent, O as BandingComponent, P as BaseArrayInputComponent, Q as BaseRootWebComponent, S as BaseWebComponent, U as BrowserLocaleService, B as ButtonComponent, V as ButtonGroupComponent, W as CALLING_APP_HEADER, X as COMPONENT_INPUT_REGISTRY, Y as CardComponent, Z as CardWrapperComponent, _ as CarouselComponent, $ as ChartComponent, a0 as ChatBubbleComponent, a1 as CheckboxGroupComponent, a2 as CheckboxInputComponent, a3 as ClearableInputComponent, a4 as ClipboardService, a5 as ColComponent, a6 as ColorPickerInputComponent, a7 as CommentItemComponent, a8 as CommentsApiService, a9 as CommentsComponent, aa as CommentsStore, ab as CompactNumberPipe, ac as ComponentInputComponent, ad as ComponentStepperComponent, ae as ConfigComponent, af as ConfirmComponent, ag as ContextMenuComponent, ah as CustomIconClass, ai as CustomIconEditComponent, aj as DEFAULT_DENIAL, ak as DEFAULT_DOC_ALIGN, al as DEFAULT_DOC_DENSITY, am as DEFAULT_DOC_VARIANT, an as DEFAULT_FILTER_RANGE_MODE, ao as DEFAULT_FILTER_VARIANT, ap as DEFAULT_NAV_PARAM, aq as DEFAULT_NAV_SEGMENT, ar as DEFAULT_SIZE, as as DOCK_MIN_PAGE_REMAINDER, at as DOCS_FOLDER, au as DOC_ACTION_ICONS, av as DOC_ALIGNS, aw as DOC_DENSITIES, ax as DOC_EDIT_ACTIONS, ay as DOC_TOOLBAR_GROUPS, az as DOC_VARIANTS, aA as DashboardCardComponent, aB as DateInputComponent, aC as DatePickerComponent, aD as DeviceService, aE as DocComponent, aF as DocEditorComponent, aG as DomService, aH as Domain, aI as DotGridComponent, aJ as DragListDirective, aK as DragListItemDirective, aL as DraggableDirective, aM as DropdownInputComponent, aN as FILTER_GROUP_CONTEXT, aO as FILTER_RANGE_MODES, aP as FILTER_VARIANTS, aQ as FLEX_VARIANTS, aR as FOLDER_PICK_LISTENER, aS as FORM_ASSET_FOLDER, aT as FileService, aU as FileUploadDirective, aV as FileUploadInputComponent, aW as FlexComponent, aX as FlexItemComponent, aY as FormGroupComponent, aZ as FrameComponent, a_ as FreezeService, a$ as GRID_BREAKPOINTS, b0 as GetNavService, H as HeaderComponent, b1 as HighlightDirective, b2 as HttpService, b3 as ICON_SOURCE, k as IS_DESIGN_MODE, b4 as IS_SIDE_PANEL, b5 as IconComponent, b6 as ImgComponent, I as InputType, b7 as InstrumentScoreComponent, b8 as InterceptorObservables, b9 as JumbotronComponent, ba as KeyValueComponent, bb as LAYOUT_ASSET_FOLDER, bc as LOADING_ACTIONS_REF, bd as LOGIN_COMPONENT, be as LOGIN_STORE, bf as LanguageComponent, bg as ListComponent, bh as LogoComponent, bi as MAG_SOCKET_EVENT, bj as MHeroColorDirective, bk as MHeroComponent, M as MODAL_REF, bl as MODAL_STORE_REF, bm as MOUNT_STATIC_SEGMENT, bn as MOUNT_TOKEN, bo as MRefDirective, bp as MStepComponent, bq as MURL_PARAM, br as MURL_SEP, bs as ManifestEnrichmentService, bt as MarginDirective, bu as MenuComponent, bv as ModalDirective, bw as ModalRef, bx as ModalStore, by as MoneyPipe, bz as MultiRangeInputComponent, bA as MultiselectInputComponent, bB as MurlUrlSerializer, bC as NAV_DEFAULT_MURL, bD as NAV_ID_SEP, bE as NAV_MAIN_BUTTONS, bF as NAV_SEGMENT_RE, bG as NAV_STORE_REF, bH as NAV_WC_COMPONENTS, bI as NAV_WIDGET_MAP, bJ as NavComponent, bK as NavDetailsComponent, bL as NavHeaderComponent, bM as NavMenuComponent, bN as NavStore, bO as NavTrailComponent, bP as NothingComponent, bQ as NotificationElementComponent, bR as NotificationGroupComponent, bS as NotificationPopupComponent, bT as NotificationService, bU as NotificationStore, bV as NotificationType, bW as NotificationWidgetComponent, bX as ONE_ASSET_BASE_URL, bY as OPTIONS_SOURCE, bZ as OVERLAY_WIDGETS, b_ as OneApp, b$ as OptionsSourceDirective, c0 as OverlayBodyComponent, c1 as OverlayRef, c2 as OverlayService, c3 as PLATFORM_BUTTON_NAV_IDS, c4 as PLATFORM_EXTENSIBLE_NAV_IDS, c5 as PLATFORM_NAV_MAP, c6 as PLATFORM_ROOT_CHILDREN, c7 as PLUGIN_FALLBACK_LANG, c8 as PLUGIN_OUTPUT_EVENT, c9 as PLUGIN_SCREENS, ca as PaddingDirective, cb as PaginationComponent, cc as PanelComponent, cd as PercentagePipe, ce as PlaygroundComponent, cf as PluginComponent, cg as PluginInputComponent, ch as PluginOutputComponent, ci as PositionDirective, cj as PwaInstallComponent, ck as RECENT_SEARCH_LIMIT, cl as REMOTE_PAGE_RELOAD, cm as ROOT_NAV, cn as RadioGroupComponent, co as RadioInputComponent, R as RangeInputComponent, cp as RatingInputComponent, cq as ReactiveElementComponent, cr as RemoteComponent, cs as RemoteLoaderService, ct as ResizeElementComponent, cu as RouteContainer, cv as RowComponent, cw as SEARCH_QUERY, cx as SEARCH_RESULTS_EVENT, cy as SECTION_ACCORDION_GROUP, cz as SECTION_FORM_CONTEXT, cA as SECTION_TABLE_VARIANTS, cB as SHARED_ICONS, cC as SIZE_CONTEXT, cD as SPACING_INWARD, cE as ScoreComponent, cF as ScrollComponent, cG as ScrollService, cH as SearchPanelComponent, cI as SearchStore, cJ as SearchUserPanelComponent, cK as SectionAccordionDirective, cL as SectionAccordionGroupDirective, cM as SectionBackComponent, cN as SectionBadgesComponent, cO as SectionButtonGroupComponent, cP as SectionCardComponent, cQ as SectionCarouselComponent, cR as SectionComponent, cS as SectionFilterComponent, cT as SectionFilterGroupComponent, cU as SectionFilterMenuComponent, cV as SectionFilterPanelComponent, cW as SectionFilterRangePanelComponent, cX as SectionFooterComponent, cY as SectionFormComponent, cZ as SectionFormItemComponent, c_ as SectionHeaderComponent, c$ as SectionHeroComponent, d0 as SectionPaginationComponent, d1 as SectionSearchComponent, d2 as SectionStepperComponent, d3 as SectionTableCellComponent, d4 as SectionTableComponent, d5 as SectionTableRowComponent, d6 as SectionTableSortPipe, d7 as SectionTabsComponent, d8 as SectionToggleComponent, d9 as SectionToggleItemDirective, da as SelectableCardInputComponent, db as SelectorDirective, dc as SettingsSearchBarComponent, dd as SettingsSearchService, de as ShapeComponent, df as SharedStoreRegistry, dg as SidePanelDirective, dh as Size, di as SocketStore, dj as SortComponent, dk as StatComponent, dl as StepComponent, dm as StepperComponent, dn as StepsComponent, dp as StorageService, dq as StrokeLinecap, dr as StrokeLinejoin, ds as SummaryComponent, dt as SvgGeneratorComponent, du as SvgGeneratorService, dv as SvgService, dw as TOTAL_COLUMNS, dx as TRANSLATION_SOURCE, dy as TableComponent, dz as TechnicalMeterComponent, dA as TextInputComponent, j as TextOutputComponent, dB as TextareaInputComponent, dC as ThemeComponent, dD as ThemeDataService, dE as ThemeService, dF as ThemeStore, dG as TimeAgoPipe, dH as TimelineComponent, dI as ToggleButtonComponent, dJ as ToggleInputComponent, dK as ToggleRadioInputComponent, dL as ToolTipDirective, dM as TooltipComponent, T as TranslatePipe, dN as TranslateService, dO as TreeGridComponent, dP as URL_SEP, dQ as USER_STORE_REF, dR as USER_TAB_MAP, dS as UniverseComponent, dT as UserApiService, dU as UserAvatarComponent, dV as UserComponent, dW as UserNavComponent, dX as UserSettingsComponent, dY as UserStore, dZ as WC_BUNDLE, d_ as WC_NAVIGATE_EVENT, d$ as WC_ROUTE_CHANGED_EVENT, e0 as WC_SEARCH_GROUPS, e1 as WIN_USER_TAB_HOOK, e2 as WIN_USER_TAB_KEY, e3 as WatermarkComponent, e4 as WcRouterStore, e5 as WrapperInputComponent, e6 as allowedCodes, e7 as anchorNavId, e8 as applyColorsToElement, e9 as applyDocEdit, ea as assetOptions, eb as bootstrapMagApp, ec as bootstrapPwaInstall, ed as browserLocale, ee as buildWcBaseUrl, ef as calculateLuminance, eg as calculateRanks, eh as cellText, ei as checkDoc, ej as checkFilterCondition, ek as childNavId, el as claimDenial, em as classListSignal, en as coerceSize, eo as cornerEdge, ep as cornerSide, eq as createLoadingState, er as createMap, es as createPlatformNavMap, et as createPluginElement, eu as definePluginScreens, ev as definedWcTierOf, ew as deriveAvatarGradient, ex as deriveContrastColor, ey as deriveOppositeColor, ez as derivePropertyName, eA as docActionKey, eB as docAssetCandidates, eC as docProblemKey, eD as docRemotePath, eE as emailValidation, eF as evaluate, eG as evaluateBool, eH as exposeScreens, eI as exposedScreensOf, eJ as fieldBoolean, eK as fieldNumber, eL as fieldString, eM as filterHoldsList, eN as filterHoldsOneBound, eO as filterHoldsOptions, eP as filterHoldsRange, eQ as filterList, eR as filterNumber, eS as filterNumberList, eT as filterOne, eU as filterPanelOf, eV as filterPanelWidth, eW as filterRange, eX as filterTreeGridRows, eY as filterValueList, eZ as filterValues, e_ as flattenTreeGridRows, e$ as formatBadgeCount, f0 as fullName, f1 as generateClipPath, f2 as generateTransform, f3 as getClassList, f4 as getProperty, f5 as getScrollParent, f6 as getTierFromPreviewPath, f7 as getTreeGridRow, f8 as getUniqueId, f9 as getValue, fa as hasErrorComputed, fb as hexToRgb, fc as hslToRgb, fd as initMagmoniumApp, fe as initialNotificationState, ff as initialState, fg as initials, fh as injectAuthenticate, fi as injectDefaultDenial, fj as injectInstallApp, fk as injectParentSize, fl as injectScrollSticky, fm as isBootRedirect, fn as isButtonName, fo as isCancelledComputed, fp as isExtensiblePlatformNavId, fq as isJson, fr as isLoadingComputed, fs as isLocalhost, ft as isNavInstanceConfig, fu as isNavMenuConfig, fv as isNavRowsConfig, fw as isNavVisibilityConfig, fx as isPlatformNavId, fy as isSize, fz as isTierPreview, fA as isUrlLocalhost, fB as isValidNavId, fC as isValidNavSegment, fD as isWebComponent, fE as linkToId, fF as linkToNav, fG as loadingActions, fH as mInterceptor, fI as manualValidation, fJ as matchFieldValidation, fK as matchMount, fL as maxLengthValidation, fM as maxValidation, fN as mergePlatformNav, fO as mergeUnique, fP as mergeUniqueBy, fQ as mergeUniqueWith, fR as minAgeValidation, fS as minLengthValidation, fT as minValidation, fU as miniMarkToHtml, fV as mountFor, fW as mountPatternProblem, fX as mountPatternText, fY as mountSegmentOf, fZ as mountTokenOf, f_ as navIdChain, f$ as navIdFor, g0 as navIdSegment, g1 as navIdToRoutePath, g2 as navIdToSegments, g3 as navParamOf, g4 as navTailMatcher, g5 as navToId, g6 as navVisibilityGuard, g7 as nextSectionTableSort, g8 as normalizeAssetOptions, g9 as offsetOfLine, ga as parentNavId, gb as parseAddress, gc as parseColor, gd as parseMountPattern, ge as parsePatternNames, gf as patternValidation, gg as patternsValidation, gh as permissionRefusal, gi as pickSupportedLanguage, gj as platformNavWidgets, gk as pluginTag, gl as presetDefaultOption, gm as privateGuard, gn as processImageToSvg, go as provideAppContext, gp as provideMagAppConfig, gq as provideMagWcConfig, gr as provideMagWcRoutes, gs as provideModalComponents, gt as provideMurlUrlSerializer, gu as provideNavWidgets, gv as provideOverlayWidgets, gw as providePlatformNavWidgets, gx as providePluginRuntime, gy as provideSearch, gz as provideSizeContext, gA as provideUserTabs, gB as publicGuard, gC as readFieldPatterns, gD as recordDefinedWcTier, gE as remoteOutletRoute, gF as renderAddress, gG as renderDocument, gH as requiredValidation, gI as resolveConfigAsset, gJ as resolveIconSize, gK as resolvePallet, gL as resolvePatternRules, gM as resolveSize, gN as resolveSpacing, gO as rgbToHex, gP as rgbToHsl, gQ as rowHasChildren, gR as samePatterns, gS as sectionTableColumnId, gT as sectionTableColumnWidths, gU as sectionTableFrozenCount, gV as segmentsToNavId, gW as setProperty, gX as setTreeGridChildren, gY as setWcLocalPort, gZ as setWcTier, g_ as settingsWidgets, g$ as shouldShowBadge, h0 as sortSectionTableRows, h1 as splitNavId, h2 as splitOnMatch, h3 as stringToColor, h4 as tailRouteOf, h5 as toAttrBool, h6 as toAttrNumber, h7 as toCssLength, h8 as toHostNavId, h9 as toLength, ha as toLocalNavId, hb as toggleTreeGridRow, hc as unfetchedPlatformNav, hd as ungroupedDocActions, he as urlValidation, hf as wcLocalBaseOf, hg as wcTierOf } from './magmonium-one-magmonium-one-BTi-rHpF.mjs';
2
2
  //# sourceMappingURL=magmonium-one.mjs.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@magmonium/one",
3
- "version": "0.4.28",
3
+ "version": "0.4.30",
4
4
  "description": "Magmonium One — Angular design-system primitives for mm Apps",
5
5
  "author": "magmonium",
6
6
  "license": "MIT",
@@ -2998,6 +2998,8 @@ type RadioGroupInput = Input & {
2998
2998
  type CheckboxGroupInput = Input & {
2999
2999
  type: InputType.CHECKBOX_GROUP;
3000
3000
  vertical?: boolean;
3001
+ /** Name of a `mag_assets/options/<name>.yml` asset, read when no options are bound or placed. */
3002
+ optionsAsset?: string;
3001
3003
  };
3002
3004
  type DateInput = Input & {
3003
3005
  type: InputType.DATE;
@@ -5046,9 +5048,10 @@ type CheckboxGroupRow = {
5046
5048
  /**
5047
5049
  * The many-pick sibling of `m-radio-group` (CONTEXT.md CheckboxGroup). One
5048
5050
  * `m-checkbox` per option, its value the picked options' values in option
5049
- * order. Options are bound, never read from an asset (ADR 0039) — a
5050
- * SectionFormItem hands over the checkboxes placed between its tags as the
5051
- * same `options`.
5051
+ * order. Options are bound, placed or named (ADR 0039, ADR 0041): bound or
5052
+ * placed `options` win, and an OptionSet named by `optionsAsset` / `mOptions`
5053
+ * fills the group only when neither offers a row — the order a Dropdown reads
5054
+ * its own sources in.
5052
5055
  */
5053
5056
  declare class CheckboxGroupComponent extends BaseInputComponent<CheckboxGroupInput> implements FormValueControl<string[] | undefined> {
5054
5057
  readonly value: _angular_core.ModelSignal<string[] | undefined>;
@@ -5061,8 +5064,10 @@ declare class CheckboxGroupComponent extends BaseInputComponent<CheckboxGroupInp
5061
5064
  private readonly uid;
5062
5065
  protected readonly isVertical: Signal<boolean>;
5063
5066
  protected readonly isDisabled: Signal<boolean>;
5067
+ private readonly namedOptions;
5064
5068
  private readonly offered;
5065
5069
  protected readonly rows: Signal<CheckboxGroupRow[]>;
5070
+ constructor();
5066
5071
  private readonly picked;
5067
5072
  protected readonly isPicked: (value: string) => boolean;
5068
5073
  /**
@@ -5551,6 +5556,12 @@ declare class RadioGroupComponent extends BaseTextInputComponent<RadioGroupInput
5551
5556
 
5552
5557
  declare class ToggleRadioInputComponent extends BaseTextInputComponent<ToggleRadioInput> implements AfterViewInit, OnDestroy {
5553
5558
  readonly one: _angular_core.InputSignal<boolean>;
5559
+ /**
5560
+ * Unique per instance: a radio's `id` is what its label points at and its
5561
+ * `name` is its group, so two instances of one Field (a list of Rule Checks)
5562
+ * would otherwise steer each other.
5563
+ */
5564
+ protected readonly uid: string;
5554
5565
  protected radioOptions: _angular_core.WritableSignal<RadioInput[]>;
5555
5566
  protected visibleCount: _angular_core.WritableSignal<number>;
5556
5567
  private readonly assetStore;