@magmonium/one 0.4.100 → 0.4.102
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/fesm2022/{magmonium-one-attribute-value-CPh-lJPV.mjs → magmonium-one-attribute-value-BXEWw7xP.mjs} +3 -3
- package/fesm2022/{magmonium-one-attribute-value-CPh-lJPV.mjs.map → magmonium-one-attribute-value-BXEWw7xP.mjs.map} +1 -1
- package/fesm2022/{magmonium-one-base-checkbox-LdM6dqF_.mjs → magmonium-one-base-checkbox-CIUMxkzu.mjs} +2 -2
- package/fesm2022/{magmonium-one-base-checkbox-LdM6dqF_.mjs.map → magmonium-one-base-checkbox-CIUMxkzu.mjs.map} +1 -1
- package/fesm2022/{magmonium-one-base-dropdown-xhoyZ8I5.mjs → magmonium-one-base-dropdown-BMsV5USo.mjs} +9 -11
- package/fesm2022/magmonium-one-base-dropdown-BMsV5USo.mjs.map +1 -0
- package/fesm2022/{magmonium-one-size-converter-BqkALIWA.mjs → magmonium-one-base-input-BeyBAbV4.mjs} +190 -3
- package/fesm2022/magmonium-one-base-input-BeyBAbV4.mjs.map +1 -0
- package/fesm2022/{magmonium-one-base-text-ChjG3GNw.mjs → magmonium-one-base-text-BBeMl8XM.mjs} +2 -2
- package/fesm2022/{magmonium-one-base-text-ChjG3GNw.mjs.map → magmonium-one-base-text-BBeMl8XM.mjs.map} +1 -1
- package/fesm2022/{magmonium-one-button-BPIU6Ww0.mjs → magmonium-one-button-DC_fLy-J.mjs} +7 -7
- package/fesm2022/{magmonium-one-button-BPIU6Ww0.mjs.map → magmonium-one-button-DC_fLy-J.mjs.map} +1 -1
- package/fesm2022/{magmonium-one-checkbox-BXNvtkzo.mjs → magmonium-one-checkbox-C85FEuTs.mjs} +5 -6
- package/fesm2022/magmonium-one-checkbox-C85FEuTs.mjs.map +1 -0
- package/fesm2022/{magmonium-one-color-utl-BA51l-Rw.mjs → magmonium-one-color-utl-DMLkkE-z.mjs} +2 -2
- package/fesm2022/{magmonium-one-color-utl-BA51l-Rw.mjs.map → magmonium-one-color-utl-DMLkkE-z.mjs.map} +1 -1
- package/fesm2022/{magmonium-one-directives-hJ7wkmQn.mjs → magmonium-one-directives-CJK7xDPK.mjs} +4 -4
- package/fesm2022/{magmonium-one-directives-hJ7wkmQn.mjs.map → magmonium-one-directives-CJK7xDPK.mjs.map} +1 -1
- package/fesm2022/{magmonium-one-group-mOaqnb5q.mjs → magmonium-one-group-qu3xLiI8.mjs} +7 -7
- package/fesm2022/{magmonium-one-group-mOaqnb5q.mjs.map → magmonium-one-group-qu3xLiI8.mjs.map} +1 -1
- package/fesm2022/{magmonium-one-header-Cz3oggF7.mjs → magmonium-one-header-BC-74GOn.mjs} +4 -4
- package/fesm2022/{magmonium-one-header-Cz3oggF7.mjs.map → magmonium-one-header-BC-74GOn.mjs.map} +1 -1
- package/fesm2022/{magmonium-one-icon-CH-g8CUR.mjs → magmonium-one-icon-CXFTG4mD.mjs} +4 -4
- package/fesm2022/{magmonium-one-icon-CH-g8CUR.mjs.map → magmonium-one-icon-CXFTG4mD.mjs.map} +1 -1
- package/fesm2022/{magmonium-one-image-editor-D40RzxsY.mjs → magmonium-one-image-editor-BAF7cdC2.mjs} +4 -4
- package/fesm2022/{magmonium-one-image-editor-D40RzxsY.mjs.map → magmonium-one-image-editor-BAF7cdC2.mjs.map} +1 -1
- package/fesm2022/{magmonium-one-label-D-wnA_Fl.mjs → magmonium-one-label-BNxbDSwc.mjs} +2 -2
- package/fesm2022/{magmonium-one-label-D-wnA_Fl.mjs.map → magmonium-one-label-BNxbDSwc.mjs.map} +1 -1
- package/fesm2022/{magmonium-one-m-ref-DLIAzywu.mjs → magmonium-one-m-ref-CoK96ogW.mjs} +2 -2
- package/fesm2022/{magmonium-one-m-ref-DLIAzywu.mjs.map → magmonium-one-m-ref-CoK96ogW.mjs.map} +1 -1
- package/fesm2022/{magmonium-one-menu-eSnsKCez.mjs → magmonium-one-menu-D_HAqfel.mjs} +6 -6
- package/fesm2022/{magmonium-one-menu-eSnsKCez.mjs.map → magmonium-one-menu-D_HAqfel.mjs.map} +1 -1
- package/fesm2022/{magmonium-one-multi-range-C0S7udf5.mjs → magmonium-one-multi-range-DqtW4U_x.mjs} +5 -4
- package/fesm2022/magmonium-one-multi-range-DqtW4U_x.mjs.map +1 -0
- package/fesm2022/{magmonium-one-options-asset-BNd1hbLw.mjs → magmonium-one-options-asset-DWjdYQe0.mjs} +2 -2
- package/fesm2022/{magmonium-one-options-asset-BNd1hbLw.mjs.map → magmonium-one-options-asset-DWjdYQe0.mjs.map} +1 -1
- package/fesm2022/{magmonium-one-otp-CeSz8ZZ2.mjs → magmonium-one-otp-DOPvjYJz.mjs} +5 -5
- package/fesm2022/{magmonium-one-otp-CeSz8ZZ2.mjs.map → magmonium-one-otp-DOPvjYJz.mjs.map} +1 -1
- package/fesm2022/{magmonium-one-password-CSNZtS__.mjs → magmonium-one-password-BqdyEDF6.mjs} +6 -6
- package/fesm2022/{magmonium-one-password-CSNZtS__.mjs.map → magmonium-one-password-BqdyEDF6.mjs.map} +1 -1
- package/fesm2022/{magmonium-one-radio-DlS31qJG.mjs → magmonium-one-radio-DGTbRRXb.mjs} +3 -3
- package/fesm2022/{magmonium-one-radio-DlS31qJG.mjs.map → magmonium-one-radio-DGTbRRXb.mjs.map} +1 -1
- package/fesm2022/{magmonium-one-range-CR8go24u.mjs → magmonium-one-range-Dw4YACtP.mjs} +4 -4
- package/fesm2022/{magmonium-one-range-CR8go24u.mjs.map → magmonium-one-range-Dw4YACtP.mjs.map} +1 -1
- package/fesm2022/{magmonium-one-selector-BK48N5us.mjs → magmonium-one-selector-QB49Ju9l.mjs} +4 -4
- package/fesm2022/{magmonium-one-selector-BK48N5us.mjs.map → magmonium-one-selector-QB49Ju9l.mjs.map} +1 -1
- package/fesm2022/{magmonium-one-text-4zWYsKpH.mjs → magmonium-one-text-CMULvvAr.mjs} +6 -7
- package/fesm2022/{magmonium-one-text-4zWYsKpH.mjs.map → magmonium-one-text-CMULvvAr.mjs.map} +1 -1
- package/fesm2022/{magmonium-one-text-output-E6pe3IOL.mjs → magmonium-one-text-output-DiA4R1pw.mjs} +4 -4
- package/fesm2022/{magmonium-one-text-output-E6pe3IOL.mjs.map → magmonium-one-text-output-DiA4R1pw.mjs.map} +1 -1
- package/fesm2022/magmonium-one-theme-DEgFM1wD.mjs +1 -0
- package/fesm2022/{magmonium-one-toggle-BPInV6K-.mjs → magmonium-one-toggle-sUSXzxMl.mjs} +3 -5
- package/fesm2022/magmonium-one-toggle-sUSXzxMl.mjs.map +1 -0
- package/fesm2022/magmonium-one.mjs +40 -43
- package/fesm2022/magmonium-one.mjs.map +1 -1
- package/package.json +1 -1
- package/types/magmonium-one.d.ts +5 -5
- package/fesm2022/magmonium-one-base-dropdown-xhoyZ8I5.mjs.map +0 -1
- package/fesm2022/magmonium-one-base-input-B92NOmxz.mjs +0 -183
- package/fesm2022/magmonium-one-base-input-B92NOmxz.mjs.map +0 -1
- package/fesm2022/magmonium-one-checkbox-BXNvtkzo.mjs.map +0 -1
- package/fesm2022/magmonium-one-multi-range-C0S7udf5.mjs.map +0 -1
- package/fesm2022/magmonium-one-size-converter-BqkALIWA.mjs.map +0 -1
- package/fesm2022/magmonium-one-theme-BtQyLRdQ.mjs +0 -1
- package/fesm2022/magmonium-one-toggle-BPInV6K-.mjs.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"magmonium-one-text-output-E6pe3IOL.mjs","names":[],"sources":["../../../../libs/one/src/lib/shared/ui/text-output/ui/text-output.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n computed,\n inject,\n input,\n model,\n output,\n} from '@angular/core';\nimport { TranslateService } from '../../../services/translate';\nimport { ConfigComponent } from '../../../lib/components/config-component';\nimport { Config } from '../../../type/config/config-type';\nimport { LAYOUT_ASSET_FOLDER } from '../../../enum';\nimport { toAttrBool } from '../../../functions/config/attribute-value';\nimport { resolvePallet } from '../../../lib/theme/lib/color-utl';\n\nexport type TextOutputAlign = 'left' | 'right' | 'center';\n\n// Variants are roles, not styles: each one says what the text is doing on the\n// page, and the Section it sits in decides how big that role renders. Every\n// size below is therefore an `em` multiple of the inherited Section font-size\n// — a `lead` in a compact Section stays proportionally a lead — which is the\n// one rule the plain (undefined) variant keeps by inheriting outright.\n//\n// - `lead` opening paragraph that introduces the block under it\n// - `big` one-line statement — a number, a verdict, a headline that is\n// not a SectionHeader\n// - `bold` emphasis at body size, for the line that must be read first\n// - `footer` annotation under the thing it describes — a field's validation\n// message, a caption, a disclaimer; 0.75 of body, body colour\n// - `footnote` aside the reader may skip — source, legal line, small print;\n// 0.6 of body, body colour\n// - `link` text that goes somewhere on click — an affordance rather than\n// a size, so it is the one role that stays inline, takes focus,\n// and emits `clicked`\n// - `link-small` the same affordance for a link that trails the content it\n// belongs to rather than carrying a line of its own — a \"see\n// all\", an \"edit\" beside a field; body size like `link`\nexport type TextOutputVariant =\n | 'lead'\n | 'big'\n | 'bold'\n | 'footer'\n | 'footnote'\n | 'link'\n | 'link-small';\n\n// Weight tokens of the type scale. Applied after the variant, so it overrides\n// the weight a role implies (`lead` light, `big` semibold, `bold` bold).\nexport type TextOutputFontWeight =\n | 'light'\n | 'normal'\n | 'medium'\n | 'semibold'\n | 'bold';\n\nexport interface TextOutputConfig extends Config {\n label?: string;\n noTranslate?: boolean;\n align?: TextOutputAlign;\n variant?: TextOutputVariant;\n color?: string;\n fontWeight?: TextOutputFontWeight;\n}\n\n@Component({\n selector: 'm-text-output',\n imports: [],\n template: `\n <div\n class=\"m-text-output\"\n [style.color]=\"resolvedColorPallet().color\"\n [innerHTML]=\"html()\"\n ></div>\n `,\n styleUrl: './text-output.sass',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'm-text-output-host',\n '[class.is-design-mode]': 'isDesignMode',\n '[class.align-left]': 'resolvedAlign() === \"left\"',\n '[class.align-right]': 'resolvedAlign() === \"right\"',\n '[class.align-center]': 'resolvedAlign() === \"center\"',\n '[class.variant-lead]': 'resolvedVariant() === \"lead\"',\n '[class.variant-big]': 'resolvedVariant() === \"big\"',\n '[class.variant-bold]': 'resolvedVariant() === \"bold\"',\n '[class.variant-footer]': 'resolvedVariant() === \"footer\"',\n '[class.variant-footnote]': 'resolvedVariant() === \"footnote\"',\n '[class.variant-link]': 'resolvedVariant() === \"link\"',\n '[class.variant-link-small]': 'resolvedVariant() === \"link-small\"',\n '[class.weight-light]': 'resolvedFontWeight() === \"light\"',\n '[class.weight-normal]': 'resolvedFontWeight() === \"normal\"',\n '[class.weight-medium]': 'resolvedFontWeight() === \"medium\"',\n '[class.weight-semibold]': 'resolvedFontWeight() === \"semibold\"',\n '[class.weight-bold]': 'resolvedFontWeight() === \"bold\"',\n '[class.has-color]': '!!(color() ?? config()?.color)',\n '[class.is-truncated]': '!!truncate()',\n // Only a link is reachable and announced as one. Every other variant is a\n // size, and a focus stop on plain text is a tab stop that does nothing.\n '[attr.role]': 'isLink() ? \"link\" : null',\n '[attr.tabindex]': 'isLink() ? 0 : null',\n '(click)': 'onClick()',\n '(keydown.enter)': 'onClick()',\n '[style.--m-text-output-color]': 'resolvedColorPallet().color',\n '[style.--m-text-output-color-contrast]': 'resolvedColorPallet().contrastColor',\n '[style.--m-text-output-color-opposite]': 'resolvedColorPallet().oppositeColor',\n },\n})\nexport class TextOutputComponent extends ConfigComponent<TextOutputConfig> {\n override subFolder = LAYOUT_ASSET_FOLDER.text_output;\n override config = model<Partial<TextOutputConfig>>();\n private readonly translateService = inject(TranslateService);\n\n readonly align = input<TextOutputAlign | undefined>(undefined);\n readonly variant = input<TextOutputVariant | undefined>(undefined);\n // A theme colour key (`error`, `warning`, `success`, …) or a raw CSS colour,\n // resolved the same way an Icon's or a Logo's is so a token follows the\n // active theme instead of freezing one theme's hex into a template.\n readonly color = input<string | undefined>(undefined);\n readonly fontWeight = input<TextOutputFontWeight | undefined>(undefined);\n // `label` is the text itself, so a one-off TextOutput needs no asset behind\n // it (ADR 0010). Numeric display values are stringified before entering the\n // text and translation pipeline.\n readonly label = input<string | number | undefined>(undefined);\n readonly noTranslate = input<boolean | string | undefined>(undefined);\n // Values for the message's `<name>` / `<$name>` placeholders. An input and\n // deliberately not a TextOutputConfig key: an asset is resolved by name and\n // shared across every Control that names it, and these differ per render\n // (ADR 0020). The query-string form (`min_length?len=6`) still works and\n // still loses to this on a shared placeholder, that being the precedence\n // TranslateService already had. Bind a named member — an object literal in a\n // template is refused by `no-inline-config` (ADR 0010).\n readonly params = input<Record<string, string> | undefined>(undefined);\n // One line, cut with an ellipsis at the box's edge rather than wrapping or\n // spilling into a neighbour. For text whose length says nothing about the\n // layout — a bound path drawn as `{store.a.b.c}` on the design Canvas.\n readonly truncate = input<boolean | undefined>(undefined);\n\n readonly resolvedAlign = computed<TextOutputAlign>(\n () => this.align() ?? this.config()?.align ?? 'left'\n );\n\n protected readonly resolvedVariant = computed<TextOutputVariant | undefined>(\n () => this.variant() ?? this.config()?.variant\n );\n\n protected readonly resolvedFontWeight = computed<\n TextOutputFontWeight | undefined\n >(() => this.fontWeight() ?? this.config()?.fontWeight);\n\n // Both link roles are the same affordance, so both take the focus stop, the\n // `role=\"link\"` and the `clicked` output; only their size differs.\n protected readonly isLink = computed(() => {\n const variant = this.resolvedVariant();\n return variant === 'link' || variant === 'link-small';\n });\n\n /**\n * Fired by a `link` variant and by nothing else. A text that is not a link\n * draws no affordance and takes no focus, so a click on it is a click on\n * prose — emitting there would be a control only a mouse could find.\n *\n * Where the link goes to a route instead, the caller attaches `routerLink`\n * and binds nothing here: one click means one thing.\n */\n readonly clicked = output<void>();\n\n protected onClick(): void {\n if (this.isLink()) this.clicked.emit();\n }\n\n protected readonly resolvedColorPallet = computed(() =>\n resolvePallet(\n this.color() ?? this.config()?.color ?? this.defaultColor,\n this.themeStore.color()\n )\n );\n\n protected override resolveComponentOverrides(): Partial<TextOutputConfig> {\n const overrides: Partial<TextOutputConfig> = {};\n const align = this.align();\n if (align !== undefined) overrides.align = align;\n const label = this.label();\n if (label !== undefined) overrides.label = String(label);\n const noTranslate = toAttrBool(this.noTranslate());\n if (noTranslate !== undefined) overrides.noTranslate = noTranslate;\n const variant = this.variant();\n if (variant !== undefined) overrides.variant = variant;\n const color = this.color();\n if (color !== undefined) overrides.color = color;\n const fontWeight = this.fontWeight();\n if (fontWeight !== undefined) overrides.fontWeight = fontWeight;\n return overrides;\n }\n\n protected readonly resolvedLabel = computed(() => this.config()?.label);\n protected readonly shouldTranslate = computed(\n () => !this.config()?.noTranslate\n );\n protected readonly html = computed(() => {\n const label = this.resolvedLabel();\n return this.shouldTranslate()\n ? this.translateService.translateToHtml(label, this.params())\n : this.translateService.toSafeHtml(label);\n });\n}\n"],"mappings":";;;;;AA4GA,IAAa,sBAAb,MAAa,4BAA4B,gBAAiC;CAC/D,YAAY,oBAAoB;CAChC,SAAS,MAAkC,GAAA,YAAA,CAAA,QAAA,EAAA,WAAA,SAAA,CAAA,+BAAA,CAAA,CAAA;CACnC,mBAAmB,OAAO,gBAAgB;CAElD,QAAQ,MAAmC,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;CACrD,UAAU,MAAqC,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,UAAA,CAAA,+BAAA,CAAA,CAAA;CAIzD,QAAQ,MAA0B,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;CAC5C,aAAa,MAAwC,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,aAAA,CAAA,+BAAA,CAAA,CAAA;CAI/D,QAAQ,MAAmC,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;CACrD,cAAc,MAAoC,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,cAAA,CAAA,+BAAA,CAAA,CAAA;CAQ5D,SAAS,MAA0C,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,SAAA,CAAA,+BAA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wB;IACxB,wBAAwB;IACxB,uBAAuB;IACvB,wBAAwB;IACxB,0BAA0B;IAC1B,4BAA4B;IAC5B,wBAAwB;IACxB,8BAA8B;IAC9B,wBAAwB;IACxB,yBAAyB;IACzB,yBAAyB;IACzB,2BAA2B;IAC3B,uBAAuB;IACvB,qBAAqB;IACrB,wBAAwB;IAGxB,eAAe;IACf,mBAAmB;IACnB,WAAW;IACX,mBAAmB;IACnB,iCAAiC;IACjC,0CAA0C;IAC1C,0CAA0C;GAC3C;GAAA,QAAA,CAAA,ogKAAA;EAAA,CAAA"}
|
|
1
|
+
{"version":3,"file":"magmonium-one-text-output-DiA4R1pw.mjs","names":[],"sources":["../../../../libs/one/src/lib/shared/ui/text-output/ui/text-output.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n computed,\n inject,\n input,\n model,\n output,\n} from '@angular/core';\nimport { TranslateService } from '../../../services/translate';\nimport { ConfigComponent } from '../../../lib/components/config-component';\nimport { Config } from '../../../type/config/config-type';\nimport { LAYOUT_ASSET_FOLDER } from '../../../enum';\nimport { toAttrBool } from '../../../functions/config/attribute-value';\nimport { resolvePallet } from '../../../lib/theme/lib/color-utl';\n\nexport type TextOutputAlign = 'left' | 'right' | 'center';\n\n// Variants are roles, not styles: each one says what the text is doing on the\n// page, and the Section it sits in decides how big that role renders. Every\n// size below is therefore an `em` multiple of the inherited Section font-size\n// — a `lead` in a compact Section stays proportionally a lead — which is the\n// one rule the plain (undefined) variant keeps by inheriting outright.\n//\n// - `lead` opening paragraph that introduces the block under it\n// - `big` one-line statement — a number, a verdict, a headline that is\n// not a SectionHeader\n// - `bold` emphasis at body size, for the line that must be read first\n// - `footer` annotation under the thing it describes — a field's validation\n// message, a caption, a disclaimer; 0.75 of body, body colour\n// - `footnote` aside the reader may skip — source, legal line, small print;\n// 0.6 of body, body colour\n// - `link` text that goes somewhere on click — an affordance rather than\n// a size, so it is the one role that stays inline, takes focus,\n// and emits `clicked`\n// - `link-small` the same affordance for a link that trails the content it\n// belongs to rather than carrying a line of its own — a \"see\n// all\", an \"edit\" beside a field; body size like `link`\nexport type TextOutputVariant =\n | 'lead'\n | 'big'\n | 'bold'\n | 'footer'\n | 'footnote'\n | 'link'\n | 'link-small';\n\n// Weight tokens of the type scale. Applied after the variant, so it overrides\n// the weight a role implies (`lead` light, `big` semibold, `bold` bold).\nexport type TextOutputFontWeight =\n | 'light'\n | 'normal'\n | 'medium'\n | 'semibold'\n | 'bold';\n\nexport interface TextOutputConfig extends Config {\n label?: string;\n noTranslate?: boolean;\n align?: TextOutputAlign;\n variant?: TextOutputVariant;\n color?: string;\n fontWeight?: TextOutputFontWeight;\n}\n\n@Component({\n selector: 'm-text-output',\n imports: [],\n template: `\n <div\n class=\"m-text-output\"\n [style.color]=\"resolvedColorPallet().color\"\n [innerHTML]=\"html()\"\n ></div>\n `,\n styleUrl: './text-output.sass',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'm-text-output-host',\n '[class.is-design-mode]': 'isDesignMode',\n '[class.align-left]': 'resolvedAlign() === \"left\"',\n '[class.align-right]': 'resolvedAlign() === \"right\"',\n '[class.align-center]': 'resolvedAlign() === \"center\"',\n '[class.variant-lead]': 'resolvedVariant() === \"lead\"',\n '[class.variant-big]': 'resolvedVariant() === \"big\"',\n '[class.variant-bold]': 'resolvedVariant() === \"bold\"',\n '[class.variant-footer]': 'resolvedVariant() === \"footer\"',\n '[class.variant-footnote]': 'resolvedVariant() === \"footnote\"',\n '[class.variant-link]': 'resolvedVariant() === \"link\"',\n '[class.variant-link-small]': 'resolvedVariant() === \"link-small\"',\n '[class.weight-light]': 'resolvedFontWeight() === \"light\"',\n '[class.weight-normal]': 'resolvedFontWeight() === \"normal\"',\n '[class.weight-medium]': 'resolvedFontWeight() === \"medium\"',\n '[class.weight-semibold]': 'resolvedFontWeight() === \"semibold\"',\n '[class.weight-bold]': 'resolvedFontWeight() === \"bold\"',\n '[class.has-color]': '!!(color() ?? config()?.color)',\n '[class.is-truncated]': '!!truncate()',\n // Only a link is reachable and announced as one. Every other variant is a\n // size, and a focus stop on plain text is a tab stop that does nothing.\n '[attr.role]': 'isLink() ? \"link\" : null',\n '[attr.tabindex]': 'isLink() ? 0 : null',\n '(click)': 'onClick()',\n '(keydown.enter)': 'onClick()',\n '[style.--m-text-output-color]': 'resolvedColorPallet().color',\n '[style.--m-text-output-color-contrast]': 'resolvedColorPallet().contrastColor',\n '[style.--m-text-output-color-opposite]': 'resolvedColorPallet().oppositeColor',\n },\n})\nexport class TextOutputComponent extends ConfigComponent<TextOutputConfig> {\n override subFolder = LAYOUT_ASSET_FOLDER.text_output;\n override config = model<Partial<TextOutputConfig>>();\n private readonly translateService = inject(TranslateService);\n\n readonly align = input<TextOutputAlign | undefined>(undefined);\n readonly variant = input<TextOutputVariant | undefined>(undefined);\n // A theme colour key (`error`, `warning`, `success`, …) or a raw CSS colour,\n // resolved the same way an Icon's or a Logo's is so a token follows the\n // active theme instead of freezing one theme's hex into a template.\n readonly color = input<string | undefined>(undefined);\n readonly fontWeight = input<TextOutputFontWeight | undefined>(undefined);\n // `label` is the text itself, so a one-off TextOutput needs no asset behind\n // it (ADR 0010). Numeric display values are stringified before entering the\n // text and translation pipeline.\n readonly label = input<string | number | undefined>(undefined);\n readonly noTranslate = input<boolean | string | undefined>(undefined);\n // Values for the message's `<name>` / `<$name>` placeholders. An input and\n // deliberately not a TextOutputConfig key: an asset is resolved by name and\n // shared across every Control that names it, and these differ per render\n // (ADR 0020). The query-string form (`min_length?len=6`) still works and\n // still loses to this on a shared placeholder, that being the precedence\n // TranslateService already had. Bind a named member — an object literal in a\n // template is refused by `no-inline-config` (ADR 0010).\n readonly params = input<Record<string, string> | undefined>(undefined);\n // One line, cut with an ellipsis at the box's edge rather than wrapping or\n // spilling into a neighbour. For text whose length says nothing about the\n // layout — a bound path drawn as `{store.a.b.c}` on the design Canvas.\n readonly truncate = input<boolean | undefined>(undefined);\n\n readonly resolvedAlign = computed<TextOutputAlign>(\n () => this.align() ?? this.config()?.align ?? 'left'\n );\n\n protected readonly resolvedVariant = computed<TextOutputVariant | undefined>(\n () => this.variant() ?? this.config()?.variant\n );\n\n protected readonly resolvedFontWeight = computed<\n TextOutputFontWeight | undefined\n >(() => this.fontWeight() ?? this.config()?.fontWeight);\n\n // Both link roles are the same affordance, so both take the focus stop, the\n // `role=\"link\"` and the `clicked` output; only their size differs.\n protected readonly isLink = computed(() => {\n const variant = this.resolvedVariant();\n return variant === 'link' || variant === 'link-small';\n });\n\n /**\n * Fired by a `link` variant and by nothing else. A text that is not a link\n * draws no affordance and takes no focus, so a click on it is a click on\n * prose — emitting there would be a control only a mouse could find.\n *\n * Where the link goes to a route instead, the caller attaches `routerLink`\n * and binds nothing here: one click means one thing.\n */\n readonly clicked = output<void>();\n\n protected onClick(): void {\n if (this.isLink()) this.clicked.emit();\n }\n\n protected readonly resolvedColorPallet = computed(() =>\n resolvePallet(\n this.color() ?? this.config()?.color ?? this.defaultColor,\n this.themeStore.color()\n )\n );\n\n protected override resolveComponentOverrides(): Partial<TextOutputConfig> {\n const overrides: Partial<TextOutputConfig> = {};\n const align = this.align();\n if (align !== undefined) overrides.align = align;\n const label = this.label();\n if (label !== undefined) overrides.label = String(label);\n const noTranslate = toAttrBool(this.noTranslate());\n if (noTranslate !== undefined) overrides.noTranslate = noTranslate;\n const variant = this.variant();\n if (variant !== undefined) overrides.variant = variant;\n const color = this.color();\n if (color !== undefined) overrides.color = color;\n const fontWeight = this.fontWeight();\n if (fontWeight !== undefined) overrides.fontWeight = fontWeight;\n return overrides;\n }\n\n protected readonly resolvedLabel = computed(() => this.config()?.label);\n protected readonly shouldTranslate = computed(\n () => !this.config()?.noTranslate\n );\n protected readonly html = computed(() => {\n const label = this.resolvedLabel();\n return this.shouldTranslate()\n ? this.translateService.translateToHtml(label, this.params())\n : this.translateService.toSafeHtml(label);\n });\n}\n"],"mappings":";;;;;AA4GA,IAAa,sBAAb,MAAa,4BAA4B,gBAAiC;CAC/D,YAAY,oB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-input-B92NOmxz.mjs";
|
|
1
|
+
import { t as BaseInputComponent, u as TranslatePipe } from "./magmonium-one-base-input-BeyBAbV4.mjs";
|
|
3
2
|
import * as i0 from "@angular/core";
|
|
4
|
-
import { ChangeDetectionStrategy, Component,
|
|
3
|
+
import { ChangeDetectionStrategy, Component, input, model } from "@angular/core";
|
|
5
4
|
var ToggleInputComponent = class ToggleInputComponent extends BaseInputComponent {
|
|
6
5
|
value = void 0;
|
|
7
6
|
checked = model(false);
|
|
@@ -12,7 +11,6 @@ var ToggleInputComponent = class ToggleInputComponent extends BaseInputComponent
|
|
|
12
11
|
touched = model(false, ...ngDevMode ? [{ debugName: "touched" }] : /* istanbul ignore next */ []);
|
|
13
12
|
focused = input(false, ...ngDevMode ? [{ debugName: "focused" }] : /* istanbul ignore next */ []);
|
|
14
13
|
errors = input([], ...ngDevMode ? [{ debugName: "errors" }] : /* istanbul ignore next */ []);
|
|
15
|
-
showErrors = computed(() => this.touched() && this.invalid(), ...ngDevMode ? [{ debugName: "showErrors" }] : /* istanbul ignore next */ []);
|
|
16
14
|
constructor() {
|
|
17
15
|
super();
|
|
18
16
|
}
|
|
@@ -228,4 +226,4 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
228
226
|
});
|
|
229
227
|
export { ToggleInputComponent };
|
|
230
228
|
|
|
231
|
-
//# sourceMappingURL=magmonium-one-toggle-
|
|
229
|
+
//# sourceMappingURL=magmonium-one-toggle-sUSXzxMl.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"magmonium-one-toggle-sUSXzxMl.mjs","names":[],"sources":["../../../../libs/one/src/lib/shared/ui/input/ui/toggle/toggle.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\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 WithOptionalFieldTree,\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 WithOptionalFieldTree<ValidationError>[]>(\n []\n );\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"],"mappings":";;;AAqCA,IAAa,uBAAb,MAAa,6BACH,mBAA+B;CAGhC,QAAQ;CACR,UAAU,MAAe,KAAK;CACrB,SAAS,MAAyC,GAAA,YAAA,CAAA,QAAA,EAAA,WAAA,SAAA,CAAA,+BAAA,CAAA,CAAA;CAClD,WAAW,MAAe,OAAM,GAAA,YAAA,CAAA,EAAA,WAAA,WAAA,CAAA,+BAAA,CAAA,CAAA;CAChC,WAAW,MAAe,OAAM,GAAA,YAAA,CAAA,EAAA,WAAA,WAAA,CAAA,+BAAA,CAAA,CAAA;CAChC,UAAU,MAAe,OAAM,GAAA,YAAA,CAAA,EAAA,WAAA,UAAA,CAAA,+BAAA,CAAA,CAAA;CAC/B,UAAU,MAAe,OAAM,GAAA,YAAA,CAAA,EAAA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EAAA,SAAA;GAAA,SAAA;GAAA,SAAA;EAAA;EAAA,iBAAA;EAAA,UAAA;EAAA,UAnBrB;;;;;;;;;;;;;;;EAcT,UAAA;EAAA,QAAA,CAAA,+6GAAA;EAAA,cAAA,CAAA;GAAA,MAAA;GAAA,MACS;GAAa,MAAA;EAAA,CAAA;EAAA,iBAAA,GAAA,wBAAA;CAAA,CAAA;;AAIZ,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAoB,YAAA,CAAA;EArBhC,MAAA;EACW,MAAA,CAAA;GAAA,UAAA;GAAgB,UAChB;;;;;;;;;;;;;;;GAcT,SACQ,CAAC,aAAa;GAAC,iBAEP,wBAAwB;GAAM,QAAA,CAAA,+6GAAA;EAAA,CAAA"}
|
|
@@ -1,30 +1,29 @@
|
|
|
1
1
|
import { t as __exportAll } from "./magmonium-one-rolldown-runtime-DpJrqANO.mjs";
|
|
2
|
-
import { $ as
|
|
3
|
-
import { a as OverlayService, c as DeviceService, i as OverlayRef, n as Direction, o as ScrollService, r as ThemeService, s as DomService, t as SelectorDirective } from "./magmonium-one-selector-
|
|
2
|
+
import { $ as OPTIONS_SOURCE, A as wcTierOf, B as AppRelationType, C as buildWcBaseUrl, D as setWcLocalPort, E as recordDefinedWcTier, F as isWebComponent, G as IS_DESIGN_MODE, H as FOLDER_PICK_LISTENER, I as APP_CONTEXT_REF, J as LOGIN_COMPONENT, K as IS_SIDE_PANEL, L as APP_LINK, M as isLocalhost, N as isTierPreview, O as setWcTier, P as isUrlLocalhost, Q as ONE_ASSET_BASE_URL, R as ASSET_BASE_URL, S as HttpService, T as definedWcTierOf, U as HOST_SESSION, V as COMPONENT_INPUT_REGISTRY, W as ICON_SOURCE, X as MODAL_STORE_REF, Y as LOGIN_STORE, Z as NAV_STORE_REF, _ as AssetStore, a as resolveIconSize, at as WC_SEARCH_GROUPS, b as isJson, c as toCssLength, ct as Assets, d as TranslateService, et as SEARCH_QUERY, f as BrowserLocaleService, g as miniMarkToHtml, h as miniMarkInlineToHtml, i as isSize, it as WC_BUNDLE, j as getTierFromPreviewPath, k as wcLocalBaseOf, l as toLength, lt as DEFAULT_SIZE, m as escapeHtml, nt as TRANSLATION_SOURCE, o as resolveSize, ot as FORM_ASSET_FOLDER, p as browserLocale, q as LOADING_ACTIONS_REF, r as coerceSize, rt as USER_STORE_REF, s as resolveSpacing, st as LAYOUT_ASSET_FOLDER, t as BaseInputComponent, tt as SEARCH_RESULTS_EVENT, u as TranslatePipe, ut as Size, v as SharedStoreRegistry, w as definedWcBundleOf, x as ACCESS_DOMAINS, y as StorageService, z as AppAvailability } from "./magmonium-one-base-input-BeyBAbV4.mjs";
|
|
3
|
+
import { a as OverlayService, c as DeviceService, i as OverlayRef, n as Direction, o as ScrollService, r as ThemeService, s as DomService, t as SelectorDirective } from "./magmonium-one-selector-QB49Ju9l.mjs";
|
|
4
4
|
import { t as FileService } from "./magmonium-one-file.service-D39FjShR.mjs";
|
|
5
|
-
import { C as isLightAppColor, D as readableAppColor, E as normalizeAppColor, O as rebuildLogoGlyph, S as appLogoShadowColor, T as logoGlyphMaskUrl, _ as AppLogoState, a as calculateLuminance, b as LOGO_GLYPH_MAX_BYTES, c as hexToRgb, d as derivePropertyName, f as getProperty, g as APP_THEME_COLOR, h as APP_LOGO_SOURCE, i as deriveOppositeColor, k as ThemeDataService, l as hslToRgb, m as ThemeStore, n as resolvePallet, o as rgbToHex, p as setProperty, r as deriveContrastColor, s as rgbToHsl, t as applyColorsToElement, u as parseColor, v as appThemeColorFactory, w as isReadableOn, x as appColorBrand, y as paintAppColor } from "./magmonium-one-color-utl-
|
|
6
|
-
import "./magmonium-one-theme-
|
|
7
|
-
import { _ as TimeAgoPipe, a as nextSectionTableSort, c as sectionTableFrozenCount, d as SectionTableSortDirection, f as AssetUrlPipe, g as MoneyPipe, h as PercentagePipe, i as defaultSectionTableSort, l as sortSectionTableRows, m as SignColorPipe, n as ToListPipe, o as sectionTableColumnId, p as CompactNumberPipe, r as SectionTableSortPipe, s as sectionTableColumnWidths, t as LabelComponent, u as SECTION_TABLE_VARIANTS } from "./magmonium-one-label-
|
|
8
|
-
import { a as SIZE_CONTEXT, c as SHARED_ICONS, i as APP_LOGO_ICON, n as CustomIconClass, o as injectParentSize, r as IconComponent, s as provideSizeContext, t as CustomIconEditComponent } from "./magmonium-one-icon-
|
|
9
|
-
import { i as resolveConfigAsset, n as toAttrNumber, r as ConfigComponent, t as toAttrBool } from "./magmonium-one-attribute-value-
|
|
10
|
-
import { a as ACTION_BUTTON_HOST, c as isButtonName, d as BadgeComponent, f as formatBadgeCount, i as BUTTON_GROUP_HOST, l as enumValue, n as SECTION_FORM_CONTEXT, p as shouldShowBadge, r as ImgComponent, s as actionName, t as ButtonComponent, u as ReactiveElementComponent } from "./magmonium-one-button-
|
|
11
|
-
import { t as MRefDirective } from "./magmonium-one-m-ref-
|
|
12
|
-
import { i as OptionsSourceDirective, n as normalizeAssetOptions, r as presetDefaultOption, t as assetOptions } from "./magmonium-one-options-asset-
|
|
5
|
+
import { C as isLightAppColor, D as readableAppColor, E as normalizeAppColor, O as rebuildLogoGlyph, S as appLogoShadowColor, T as logoGlyphMaskUrl, _ as AppLogoState, a as calculateLuminance, b as LOGO_GLYPH_MAX_BYTES, c as hexToRgb, d as derivePropertyName, f as getProperty, g as APP_THEME_COLOR, h as APP_LOGO_SOURCE, i as deriveOppositeColor, k as ThemeDataService, l as hslToRgb, m as ThemeStore, n as resolvePallet, o as rgbToHex, p as setProperty, r as deriveContrastColor, s as rgbToHsl, t as applyColorsToElement, u as parseColor, v as appThemeColorFactory, w as isReadableOn, x as appColorBrand, y as paintAppColor } from "./magmonium-one-color-utl-DMLkkE-z.mjs";
|
|
6
|
+
import "./magmonium-one-theme-DEgFM1wD.mjs";
|
|
7
|
+
import { _ as TimeAgoPipe, a as nextSectionTableSort, c as sectionTableFrozenCount, d as SectionTableSortDirection, f as AssetUrlPipe, g as MoneyPipe, h as PercentagePipe, i as defaultSectionTableSort, l as sortSectionTableRows, m as SignColorPipe, n as ToListPipe, o as sectionTableColumnId, p as CompactNumberPipe, r as SectionTableSortPipe, s as sectionTableColumnWidths, t as LabelComponent, u as SECTION_TABLE_VARIANTS } from "./magmonium-one-label-BNxbDSwc.mjs";
|
|
8
|
+
import { a as SIZE_CONTEXT, c as SHARED_ICONS, i as APP_LOGO_ICON, n as CustomIconClass, o as injectParentSize, r as IconComponent, s as provideSizeContext, t as CustomIconEditComponent } from "./magmonium-one-icon-CXFTG4mD.mjs";
|
|
9
|
+
import { i as resolveConfigAsset, n as toAttrNumber, r as ConfigComponent, t as toAttrBool } from "./magmonium-one-attribute-value-BXEWw7xP.mjs";
|
|
10
|
+
import { a as ACTION_BUTTON_HOST, c as isButtonName, d as BadgeComponent, f as formatBadgeCount, i as BUTTON_GROUP_HOST, l as enumValue, n as SECTION_FORM_CONTEXT, p as shouldShowBadge, r as ImgComponent, s as actionName, t as ButtonComponent, u as ReactiveElementComponent } from "./magmonium-one-button-DC_fLy-J.mjs";
|
|
11
|
+
import { t as MRefDirective } from "./magmonium-one-m-ref-CoK96ogW.mjs";
|
|
12
|
+
import { i as OptionsSourceDirective, n as normalizeAssetOptions, r as presetDefaultOption, t as assetOptions } from "./magmonium-one-options-asset-DWjdYQe0.mjs";
|
|
13
13
|
import { t as InputType } from "./magmonium-one-input-DqHPorA1.mjs";
|
|
14
|
-
import { r as PLACED_CHECKBOX, t as CheckboxInputComponent } from "./magmonium-one-checkbox-
|
|
15
|
-
import { a as ToolTipDirective, c as DragListItemDirective, d as MarginDirective, f as PaddingDirective, i as PositionDirective, l as DragListDirective, n as stringToColor, o as FileUploadDirective, p as SPACING_INWARD, r as HighlightDirective, s as AutosizeDirective, t as MHeroColorDirective, u as DraggableDirective } from "./magmonium-one-directives-
|
|
16
|
-
import { t as HeaderComponent } from "./magmonium-one-header-
|
|
17
|
-
import { i as mergeUniqueWith, n as mergeUnique, r as mergeUniqueBy, t as ButtonGroupComponent } from "./magmonium-one-group-
|
|
18
|
-
import { n as ContextMenuBoxComponent, r as MenuComponent, t as ContextMenuComponent } from "./magmonium-one-menu-
|
|
19
|
-
import { t as
|
|
20
|
-
import {
|
|
21
|
-
import { t as
|
|
22
|
-
import { t as
|
|
23
|
-
import { t as
|
|
24
|
-
import { t as
|
|
25
|
-
import {
|
|
26
|
-
import { t as
|
|
27
|
-
import { n as DROPDOWN_IMPORTS, r as DROPDOWN_TEMPLATE, t as BaseDropdownComponent } from "./magmonium-one-base-dropdown-xhoyZ8I5.mjs";
|
|
14
|
+
import { r as PLACED_CHECKBOX, t as CheckboxInputComponent } from "./magmonium-one-checkbox-C85FEuTs.mjs";
|
|
15
|
+
import { a as ToolTipDirective, c as DragListItemDirective, d as MarginDirective, f as PaddingDirective, i as PositionDirective, l as DragListDirective, n as stringToColor, o as FileUploadDirective, p as SPACING_INWARD, r as HighlightDirective, s as AutosizeDirective, t as MHeroColorDirective, u as DraggableDirective } from "./magmonium-one-directives-CJK7xDPK.mjs";
|
|
16
|
+
import { t as HeaderComponent } from "./magmonium-one-header-BC-74GOn.mjs";
|
|
17
|
+
import { i as mergeUniqueWith, n as mergeUnique, r as mergeUniqueBy, t as ButtonGroupComponent } from "./magmonium-one-group-qu3xLiI8.mjs";
|
|
18
|
+
import { n as ContextMenuBoxComponent, r as MenuComponent, t as ContextMenuComponent } from "./magmonium-one-menu-D_HAqfel.mjs";
|
|
19
|
+
import { i as getScrollParent, n as activeElementWithin, r as classListSignal, t as BaseTextInputComponent } from "./magmonium-one-base-text-BBeMl8XM.mjs";
|
|
20
|
+
import { t as TextOutputComponent } from "./magmonium-one-text-output-DiA4R1pw.mjs";
|
|
21
|
+
import { t as BaseCheckboxInputComponent } from "./magmonium-one-base-checkbox-CIUMxkzu.mjs";
|
|
22
|
+
import { t as RadioInputComponent } from "./magmonium-one-radio-DGTbRRXb.mjs";
|
|
23
|
+
import { t as TextInputComponent } from "./magmonium-one-text-CMULvvAr.mjs";
|
|
24
|
+
import { r as BaseArrayInputComponent, t as MultiRangeInputComponent } from "./magmonium-one-multi-range-DqtW4U_x.mjs";
|
|
25
|
+
import { t as RangeInputComponent } from "./magmonium-one-range-Dw4YACtP.mjs";
|
|
26
|
+
import { n as DROPDOWN_IMPORTS, r as DROPDOWN_TEMPLATE, t as BaseDropdownComponent } from "./magmonium-one-base-dropdown-BMsV5USo.mjs";
|
|
28
27
|
import { o as isEditableImage, s as outputSize } from "./magmonium-one-image-frame-BTSaUSAi.mjs";
|
|
29
28
|
import * as i0 from "@angular/core";
|
|
30
29
|
import { ApplicationRef, CUSTOM_ELEMENTS_SCHEMA, ChangeDetectionStrategy, ChangeDetectorRef, Component, ContentChild, DOCUMENT, DestroyRef, Directive, ElementRef, EventEmitter, HostAttributeToken, HostBinding, HostListener, Injectable, InjectionToken, Injector, Input, LOCALE_ID, Output, TemplateRef, ViewChild, ViewContainerRef, ViewEncapsulation, afterEveryRender, afterNextRender, afterRenderEffect, booleanAttribute, computed, contentChild, contentChildren, createComponent, effect, forwardRef, inject, input, inputBinding, linkedSignal, makeEnvironmentProviders, model, numberAttribute, output, outputBinding, provideAppInitializer, provideBrowserGlobalErrorListeners, provideZonelessChangeDetection, reflectComponentType, runInInjectionContext, signal, twoWayBinding, untracked, viewChild, viewChildren } from "@angular/core";
|
|
@@ -744,12 +743,12 @@ var SectionFormItemComponent = class SectionFormItemComponent extends ConfigComp
|
|
|
744
743
|
try {
|
|
745
744
|
switch (type) {
|
|
746
745
|
case InputType.RADIO: {
|
|
747
|
-
const { RadioInputComponent } = await import("./magmonium-one-radio-
|
|
746
|
+
const { RadioInputComponent } = await import("./magmonium-one-radio-DGTbRRXb.mjs").then((n) => n.n);
|
|
748
747
|
this.createDynamicComponent(seq, RadioInputComponent);
|
|
749
748
|
break;
|
|
750
749
|
}
|
|
751
750
|
case InputType.TOGGLE: {
|
|
752
|
-
const { ToggleInputComponent } = await import("./magmonium-one-toggle-
|
|
751
|
+
const { ToggleInputComponent } = await import("./magmonium-one-toggle-sUSXzxMl.mjs");
|
|
753
752
|
this.createDynamicComponent(seq, ToggleInputComponent, [], true);
|
|
754
753
|
break;
|
|
755
754
|
}
|
|
@@ -759,12 +758,12 @@ var SectionFormItemComponent = class SectionFormItemComponent extends ConfigComp
|
|
|
759
758
|
break;
|
|
760
759
|
}
|
|
761
760
|
case InputType.PASSWORD: {
|
|
762
|
-
const { PasswordInputComponent } = await import("./magmonium-one-password-
|
|
761
|
+
const { PasswordInputComponent } = await import("./magmonium-one-password-BqdyEDF6.mjs");
|
|
763
762
|
this.createDynamicComponent(seq, PasswordInputComponent);
|
|
764
763
|
break;
|
|
765
764
|
}
|
|
766
765
|
case InputType.OTP: {
|
|
767
|
-
const { OtpInputComponent } = await import("./magmonium-one-otp-
|
|
766
|
+
const { OtpInputComponent } = await import("./magmonium-one-otp-DOPvjYJz.mjs");
|
|
768
767
|
this.createDynamicComponent(seq, OtpInputComponent);
|
|
769
768
|
break;
|
|
770
769
|
}
|
|
@@ -774,7 +773,7 @@ var SectionFormItemComponent = class SectionFormItemComponent extends ConfigComp
|
|
|
774
773
|
break;
|
|
775
774
|
}
|
|
776
775
|
case InputType.CHECKBOX: {
|
|
777
|
-
const { CheckboxInputComponent } = await import("./magmonium-one-checkbox-
|
|
776
|
+
const { CheckboxInputComponent } = await import("./magmonium-one-checkbox-C85FEuTs.mjs").then((n) => n.n);
|
|
778
777
|
this.createDynamicComponent(seq, CheckboxInputComponent, [], true);
|
|
779
778
|
break;
|
|
780
779
|
}
|
|
@@ -789,12 +788,12 @@ var SectionFormItemComponent = class SectionFormItemComponent extends ConfigComp
|
|
|
789
788
|
break;
|
|
790
789
|
}
|
|
791
790
|
case InputType.RANGE: {
|
|
792
|
-
const { RangeInputComponent } = await import("./magmonium-one-range-
|
|
791
|
+
const { RangeInputComponent } = await import("./magmonium-one-range-Dw4YACtP.mjs").then((n) => n.n);
|
|
793
792
|
this.createDynamicComponent(seq, RangeInputComponent);
|
|
794
793
|
break;
|
|
795
794
|
}
|
|
796
795
|
case InputType.MULTI_RANGE: {
|
|
797
|
-
const { MultiRangeInputComponent } = await import("./magmonium-one-multi-range-
|
|
796
|
+
const { MultiRangeInputComponent } = await import("./magmonium-one-multi-range-DqtW4U_x.mjs").then((n) => n.n);
|
|
798
797
|
this.createDynamicComponent(seq, MultiRangeInputComponent);
|
|
799
798
|
break;
|
|
800
799
|
}
|
|
@@ -845,7 +844,7 @@ var SectionFormItemComponent = class SectionFormItemComponent extends ConfigComp
|
|
|
845
844
|
break;
|
|
846
845
|
}
|
|
847
846
|
default: {
|
|
848
|
-
const { TextInputComponent } = await import("./magmonium-one-text-
|
|
847
|
+
const { TextInputComponent } = await import("./magmonium-one-text-CMULvvAr.mjs").then((n) => n.n);
|
|
849
848
|
this.createDynamicComponent(seq, TextInputComponent);
|
|
850
849
|
break;
|
|
851
850
|
}
|
|
@@ -3855,7 +3854,6 @@ var ClearableInputComponent = class ClearableInputComponent extends BaseTextInpu
|
|
|
3855
3854
|
focused = input(false, ...ngDevMode ? [{ debugName: "focused" }] : /* istanbul ignore next */ []);
|
|
3856
3855
|
touched = model(false, ...ngDevMode ? [{ debugName: "touched" }] : /* istanbul ignore next */ []);
|
|
3857
3856
|
errors = input([], ...ngDevMode ? [{ debugName: "errors" }] : /* istanbul ignore next */ []);
|
|
3858
|
-
showErrors = computed(() => this.touched() && this.invalid(), ...ngDevMode ? [{ debugName: "showErrors" }] : /* istanbul ignore next */ []);
|
|
3859
3857
|
icon = input(...ngDevMode ? [void 0, { debugName: "icon" }] : /* istanbul ignore next */ []);
|
|
3860
3858
|
placeholder = input("", ...ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []);
|
|
3861
3859
|
type = input("text", ...ngDevMode ? [{ debugName: "type" }] : /* istanbul ignore next */ []);
|
|
@@ -24005,12 +24003,12 @@ var WrapperInputComponent = class WrapperInputComponent extends ConfigComponent
|
|
|
24005
24003
|
const seq = ++this.dynamicSeq;
|
|
24006
24004
|
switch (this.config()?.type) {
|
|
24007
24005
|
case InputType.RADIO: {
|
|
24008
|
-
const { RadioInputComponent } = await import("./magmonium-one-radio-
|
|
24006
|
+
const { RadioInputComponent } = await import("./magmonium-one-radio-DGTbRRXb.mjs").then((n) => n.n);
|
|
24009
24007
|
this.createDynamicComponent(seq, RadioInputComponent);
|
|
24010
24008
|
break;
|
|
24011
24009
|
}
|
|
24012
24010
|
case InputType.TOGGLE: {
|
|
24013
|
-
const { ToggleInputComponent } = await import("./magmonium-one-toggle-
|
|
24011
|
+
const { ToggleInputComponent } = await import("./magmonium-one-toggle-sUSXzxMl.mjs");
|
|
24014
24012
|
this.createDynamicComponent(seq, ToggleInputComponent, [], true);
|
|
24015
24013
|
break;
|
|
24016
24014
|
}
|
|
@@ -24020,12 +24018,12 @@ var WrapperInputComponent = class WrapperInputComponent extends ConfigComponent
|
|
|
24020
24018
|
break;
|
|
24021
24019
|
}
|
|
24022
24020
|
case InputType.PASSWORD: {
|
|
24023
|
-
const { PasswordInputComponent } = await import("./magmonium-one-password-
|
|
24021
|
+
const { PasswordInputComponent } = await import("./magmonium-one-password-BqdyEDF6.mjs");
|
|
24024
24022
|
this.createDynamicComponent(seq, PasswordInputComponent);
|
|
24025
24023
|
break;
|
|
24026
24024
|
}
|
|
24027
24025
|
case InputType.OTP: {
|
|
24028
|
-
const { OtpInputComponent } = await import("./magmonium-one-otp-
|
|
24026
|
+
const { OtpInputComponent } = await import("./magmonium-one-otp-DOPvjYJz.mjs");
|
|
24029
24027
|
this.createDynamicComponent(seq, OtpInputComponent);
|
|
24030
24028
|
break;
|
|
24031
24029
|
}
|
|
@@ -24035,7 +24033,7 @@ var WrapperInputComponent = class WrapperInputComponent extends ConfigComponent
|
|
|
24035
24033
|
break;
|
|
24036
24034
|
}
|
|
24037
24035
|
case InputType.CHECKBOX: {
|
|
24038
|
-
const { CheckboxInputComponent } = await import("./magmonium-one-checkbox-
|
|
24036
|
+
const { CheckboxInputComponent } = await import("./magmonium-one-checkbox-C85FEuTs.mjs").then((n) => n.n);
|
|
24039
24037
|
this.createDynamicComponent(seq, CheckboxInputComponent, [], true);
|
|
24040
24038
|
break;
|
|
24041
24039
|
}
|
|
@@ -24050,12 +24048,12 @@ var WrapperInputComponent = class WrapperInputComponent extends ConfigComponent
|
|
|
24050
24048
|
break;
|
|
24051
24049
|
}
|
|
24052
24050
|
case InputType.RANGE: {
|
|
24053
|
-
const { RangeInputComponent } = await import("./magmonium-one-range-
|
|
24051
|
+
const { RangeInputComponent } = await import("./magmonium-one-range-Dw4YACtP.mjs").then((n) => n.n);
|
|
24054
24052
|
this.createDynamicComponent(seq, RangeInputComponent);
|
|
24055
24053
|
break;
|
|
24056
24054
|
}
|
|
24057
24055
|
case InputType.MULTI_RANGE: {
|
|
24058
|
-
const { MultiRangeInputComponent } = await import("./magmonium-one-multi-range-
|
|
24056
|
+
const { MultiRangeInputComponent } = await import("./magmonium-one-multi-range-DqtW4U_x.mjs").then((n) => n.n);
|
|
24059
24057
|
this.createDynamicComponent(seq, MultiRangeInputComponent);
|
|
24060
24058
|
break;
|
|
24061
24059
|
}
|
|
@@ -24106,7 +24104,7 @@ var WrapperInputComponent = class WrapperInputComponent extends ConfigComponent
|
|
|
24106
24104
|
break;
|
|
24107
24105
|
}
|
|
24108
24106
|
default: {
|
|
24109
|
-
const { TextInputComponent } = await import("./magmonium-one-text-
|
|
24107
|
+
const { TextInputComponent } = await import("./magmonium-one-text-CMULvvAr.mjs").then((n) => n.n);
|
|
24110
24108
|
this.createDynamicComponent(seq, TextInputComponent);
|
|
24111
24109
|
break;
|
|
24112
24110
|
}
|
|
@@ -25600,7 +25598,6 @@ var RatingInputComponent = class RatingInputComponent extends BaseInputComponent
|
|
|
25600
25598
|
touched = model(false, ...ngDevMode ? [{ debugName: "touched" }] : /* istanbul ignore next */ []);
|
|
25601
25599
|
focused = input(false, ...ngDevMode ? [{ debugName: "focused" }] : /* istanbul ignore next */ []);
|
|
25602
25600
|
errors = input([], ...ngDevMode ? [{ debugName: "errors" }] : /* istanbul ignore next */ []);
|
|
25603
|
-
showErrors = computed(() => this.touched() && this.invalid(), ...ngDevMode ? [{ debugName: "showErrors" }] : /* istanbul ignore next */ []);
|
|
25604
25601
|
themeStore = inject(ThemeStore);
|
|
25605
25602
|
stars = STARS;
|
|
25606
25603
|
filledColor = computed(() => {
|
|
@@ -26498,7 +26495,7 @@ var FileUploadInputComponent = class FileUploadInputComponent extends BaseInputC
|
|
|
26498
26495
|
openEditor = async (file, size) => {
|
|
26499
26496
|
const modalStore = this.modalStore;
|
|
26500
26497
|
if (!modalStore) return void 0;
|
|
26501
|
-
const { ImageEditorComponent } = await import("./magmonium-one-image-editor-
|
|
26498
|
+
const { ImageEditorComponent } = await import("./magmonium-one-image-editor-BAF7cdC2.mjs");
|
|
26502
26499
|
const ratio = String(this.config()?.ratio ?? "");
|
|
26503
26500
|
return new Promise((resolve) => {
|
|
26504
26501
|
const modalRef = new ModalRef();
|